diff --git a/Contrib/AlfredUniv/AUCI/chapter5/lesson4/criticalpoint.pg b/Contrib/AlfredUniv/AUCI/chapter5/lesson4/criticalpoint.pg index 6321f1fb2c..1d942f774c 100644 --- a/Contrib/AlfredUniv/AUCI/chapter5/lesson4/criticalpoint.pg +++ b/Contrib/AlfredUniv/AUCI/chapter5/lesson4/criticalpoint.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# +# # ENDDESCRIPTION ## DBsubject('Calculus') @@ -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; @@ -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() ); diff --git a/Contrib/AlfredUniv/AUCI/chapter5/lesson4/criticalpoint1pet.pg b/Contrib/AlfredUniv/AUCI/chapter5/lesson4/criticalpoint1pet.pg index 10efd3fab6..406ec9b98d 100644 --- a/Contrib/AlfredUniv/AUCI/chapter5/lesson4/criticalpoint1pet.pg +++ b/Contrib/AlfredUniv/AUCI/chapter5/lesson4/criticalpoint1pet.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# +# # ENDDESCRIPTION ## DBsubject('Calculus') @@ -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; @@ -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\}. diff --git a/Contrib/AlfredUniv/diffeq/laplace/operationalproperties/DEdirac.pg b/Contrib/AlfredUniv/diffeq/laplace/operationalproperties/DEdirac.pg index d42633569e..bcee59e5db 100644 --- a/Contrib/AlfredUniv/diffeq/laplace/operationalproperties/DEdirac.pg +++ b/Contrib/AlfredUniv/diffeq/laplace/operationalproperties/DEdirac.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserFunction.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -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 diff --git a/Contrib/BCIT/OpenHomeworkSystemsProjectBCcampus/BCIT_chyn.pg b/Contrib/BCIT/OpenHomeworkSystemsProjectBCcampus/BCIT_chyn.pg index 25376d9730..1b3421d568 100644 --- a/Contrib/BCIT/OpenHomeworkSystemsProjectBCcampus/BCIT_chyn.pg +++ b/Contrib/BCIT/OpenHomeworkSystemsProjectBCcampus/BCIT_chyn.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# WeBWorK problem written by Stefan Lukits +# WeBWorK problem written by Stefan Lukits # # DBsubject(Calculus - single variable) # DBchapter(Applications of differentiation) @@ -16,7 +16,7 @@ loadMacros( "PGchoicemacros.pl", "MathObjects.pl", "PGgraphmacros.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "PGcourse.pl", "RserveClient.pl" @@ -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) diff --git a/Contrib/BCIT/OpenHomeworkSystemsProjectBCcampus/BCIT_ehqw.pg b/Contrib/BCIT/OpenHomeworkSystemsProjectBCcampus/BCIT_ehqw.pg index a13fb66b3c..1f0a91cf16 100644 --- a/Contrib/BCIT/OpenHomeworkSystemsProjectBCcampus/BCIT_ehqw.pg +++ b/Contrib/BCIT/OpenHomeworkSystemsProjectBCcampus/BCIT_ehqw.pg @@ -14,13 +14,13 @@ ########################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PGgraphmacros.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "PGcourse.pl" ); @@ -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)"); @@ -97,7 +97,7 @@ $w->color('darkorange'); $w->weight('2'); ########################## -# Main Text +# Main Text Context()->texStrings; BEGIN_TEXT @@ -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 diff --git a/Contrib/BentleyUniversity/MathematicsOfComputerGraphics/setMoCG-Ch5/5-1-ConvertToHomogeneous.pg b/Contrib/BentleyUniversity/MathematicsOfComputerGraphics/setMoCG-Ch5/5-1-ConvertToHomogeneous.pg index 3c79d8acc3..72e86298a9 100644 --- a/Contrib/BentleyUniversity/MathematicsOfComputerGraphics/setMoCG-Ch5/5-1-ConvertToHomogeneous.pg +++ b/Contrib/BentleyUniversity/MathematicsOfComputerGraphics/setMoCG-Ch5/5-1-ConvertToHomogeneous.pg @@ -21,7 +21,7 @@ loadMacros( "MathObjects.pl", "PGML.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + ); Context("Matrix"); @@ -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 ] @@ -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 diff --git a/Contrib/BentleyUniversity/MathematicsOfComputerGraphics/setMoCG-Ch5/5-10-MatrixMultiplicationWithVariables.pg b/Contrib/BentleyUniversity/MathematicsOfComputerGraphics/setMoCG-Ch5/5-10-MatrixMultiplicationWithVariables.pg index 6f1a2f8106..ff5062d1b2 100644 --- a/Contrib/BentleyUniversity/MathematicsOfComputerGraphics/setMoCG-Ch5/5-10-MatrixMultiplicationWithVariables.pg +++ b/Contrib/BentleyUniversity/MathematicsOfComputerGraphics/setMoCG-Ch5/5-10-MatrixMultiplicationWithVariables.pg @@ -21,7 +21,7 @@ loadMacros( "MathObjects.pl", "PGML.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "PGessaymacros.pl", ); @@ -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( [ @@ -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 diff --git a/Contrib/BentleyUniversity/MathematicsOfComputerGraphics/setMoCG-Ch5/5-11-ApplyAffineTransformationMatrices.pg b/Contrib/BentleyUniversity/MathematicsOfComputerGraphics/setMoCG-Ch5/5-11-ApplyAffineTransformationMatrices.pg index b5850baa4d..bd79762a36 100644 --- a/Contrib/BentleyUniversity/MathematicsOfComputerGraphics/setMoCG-Ch5/5-11-ApplyAffineTransformationMatrices.pg +++ b/Contrib/BentleyUniversity/MathematicsOfComputerGraphics/setMoCG-Ch5/5-11-ApplyAffineTransformationMatrices.pg @@ -21,7 +21,7 @@ loadMacros( "MathObjects.pl", "PGML.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "PGessaymacros.pl", ); @@ -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") @]* ----- @@ -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") @]* ----- @@ -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 diff --git a/Contrib/BentleyUniversity/MathematicsOfComputerGraphics/setMoCG-Ch5/5-12-ApplyTransformationMatrices3D.pg b/Contrib/BentleyUniversity/MathematicsOfComputerGraphics/setMoCG-Ch5/5-12-ApplyTransformationMatrices3D.pg index 940347e6b9..8cf32744e7 100644 --- a/Contrib/BentleyUniversity/MathematicsOfComputerGraphics/setMoCG-Ch5/5-12-ApplyTransformationMatrices3D.pg +++ b/Contrib/BentleyUniversity/MathematicsOfComputerGraphics/setMoCG-Ch5/5-12-ApplyTransformationMatrices3D.pg @@ -21,15 +21,15 @@ 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 ] ] ); @@ -37,15 +37,15 @@ $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) ], @@ -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 diff --git a/Contrib/BentleyUniversity/MathematicsOfComputerGraphics/setMoCG-Ch5/5-14-TranformationsIntoMatrices.pg b/Contrib/BentleyUniversity/MathematicsOfComputerGraphics/setMoCG-Ch5/5-14-TranformationsIntoMatrices.pg index 42b0a236d7..b3b999b6fc 100644 --- a/Contrib/BentleyUniversity/MathematicsOfComputerGraphics/setMoCG-Ch5/5-14-TranformationsIntoMatrices.pg +++ b/Contrib/BentleyUniversity/MathematicsOfComputerGraphics/setMoCG-Ch5/5-14-TranformationsIntoMatrices.pg @@ -21,7 +21,7 @@ loadMacros( "MathObjects.pl", "PGML.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + ); Context("Matrix"); diff --git a/Contrib/BentleyUniversity/MathematicsOfComputerGraphics/setMoCG-Ch5/5-17-MatrixEfficiencyInHardware.pg b/Contrib/BentleyUniversity/MathematicsOfComputerGraphics/setMoCG-Ch5/5-17-MatrixEfficiencyInHardware.pg index ada2e6101d..e7dd291351 100644 --- a/Contrib/BentleyUniversity/MathematicsOfComputerGraphics/setMoCG-Ch5/5-17-MatrixEfficiencyInHardware.pg +++ b/Contrib/BentleyUniversity/MathematicsOfComputerGraphics/setMoCG-Ch5/5-17-MatrixEfficiencyInHardware.pg @@ -21,7 +21,7 @@ loadMacros( "MathObjects.pl", "PGML.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + ); Context("Matrix"); diff --git a/Contrib/BentleyUniversity/MathematicsOfComputerGraphics/setMoCG-Ch5/5-4-WriteTransformationMatrices.pg b/Contrib/BentleyUniversity/MathematicsOfComputerGraphics/setMoCG-Ch5/5-4-WriteTransformationMatrices.pg index 8852331bcb..32342ac57b 100644 --- a/Contrib/BentleyUniversity/MathematicsOfComputerGraphics/setMoCG-Ch5/5-4-WriteTransformationMatrices.pg +++ b/Contrib/BentleyUniversity/MathematicsOfComputerGraphics/setMoCG-Ch5/5-4-WriteTransformationMatrices.pg @@ -21,7 +21,7 @@ loadMacros( "MathObjects.pl", "PGML.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + ); Context("Matrix"); @@ -51,13 +51,13 @@ if ( $sz < 0 ) { $strz = sprintf("%d",$sz); } $ans1 = Matrix( [ - [ 1, 0, 0, $tx ], + [ 1, 0, 0, $tx ], [ 0, 1, 0, $ty ], [ 0, 0, 1, $tz ], [ 0, 0, 0, 1 ] ] ); $ans2 = Matrix( [ - [ $sx, 0, 0, 0 ], + [ $sx, 0, 0, 0 ], [ 0, $sy, 0, 0 ], [ 0, 0, $sz, 0 ], [ 0, 0, 0, 1 ] @@ -67,11 +67,11 @@ TEXT(beginproblem()); BEGIN_PGML Express the transformation [`T_{[$tx],[$ty],[$tz]}`] in matrix form. -[_____]*{$ans1} [@ AnswerFormatHelp("matrices") @]* +[_____]*{$ans1} [@ helpLink("matrices") @]* Express the transformation [`S_{[$strx],[$stry],[$strz]}`] in matrix form. -[_____]*{$ans2} [@ AnswerFormatHelp("matrices") @]* +[_____]*{$ans2} [@ helpLink("matrices") @]* END_PGML BEGIN_PGML_SOLUTION diff --git a/Contrib/BentleyUniversity/MathematicsOfComputerGraphics/setMoCG-Ch5/5-6-ApplyTransformationMatrices.pg b/Contrib/BentleyUniversity/MathematicsOfComputerGraphics/setMoCG-Ch5/5-6-ApplyTransformationMatrices.pg index f4a55b907c..490ced919c 100644 --- a/Contrib/BentleyUniversity/MathematicsOfComputerGraphics/setMoCG-Ch5/5-6-ApplyTransformationMatrices.pg +++ b/Contrib/BentleyUniversity/MathematicsOfComputerGraphics/setMoCG-Ch5/5-6-ApplyTransformationMatrices.pg @@ -21,13 +21,13 @@ 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) ], + [ non_zero_random(-5,5), 0, non_zero_random(-5,5) ], [ 0, non_zero_random(-5,5), non_zero_random(-5,5) ], [ 0, 0, 1 ] ] ); @@ -36,10 +36,10 @@ $CV1 = Matrix( [ [ $easy ], [ $easy ], [ 1 ] ] ); $M2 = Matrix( [ [ 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), non_zero_random(-1,10,0.01), - non_zero_random(-1,10,0.01) ], + non_zero_random(-1,10,0.01) ], [ 0, 0, 1 ] ] ); $CV2 = Matrix( [ [ non_zero_random(-1,10,0.01) ], @@ -50,9 +50,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 diff --git a/Contrib/BentleyUniversity/MathematicsOfComputerGraphics/setMoCG-Ch5/5-7-IsMatrixMultiplicationCommutative.pg b/Contrib/BentleyUniversity/MathematicsOfComputerGraphics/setMoCG-Ch5/5-7-IsMatrixMultiplicationCommutative.pg index d9268ea61f..b3b248260e 100644 --- a/Contrib/BentleyUniversity/MathematicsOfComputerGraphics/setMoCG-Ch5/5-7-IsMatrixMultiplicationCommutative.pg +++ b/Contrib/BentleyUniversity/MathematicsOfComputerGraphics/setMoCG-Ch5/5-7-IsMatrixMultiplicationCommutative.pg @@ -21,7 +21,7 @@ loadMacros( "MathObjects.pl", "PGML.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "PGessaymacros.pl", ); @@ -29,12 +29,12 @@ Context("Matrix"); $showPartialCorrectAnswers = 1; # the positive random numbers and later the +1/-1's ensure that ML != LM $M = Matrix( [ - [ random(0,9), random(0,9), random(0,9) ], + [ random(0,9), random(0,9), random(0,9) ], [ random(0,9), random(-9,9), random(-9,9) ], [ random(0,9), random(-9,9), random(-9,9) ] ] ); $L = Matrix( [ - [ $M->element(1,1), $M->element(1,2)+1, $M->element(1,3)+1 ], + [ $M->element(1,1), $M->element(1,2)+1, $M->element(1,3)+1 ], [ $M->element(2,1)-1, random(-9,9), random(-9,9) ], [ $M->element(3,1)-1, random(-9,9), random(-9,9) ] ] ); @@ -47,11 +47,11 @@ Let [`L`] and [`M`] be the matrices defined below. Compute [`LM`]. -Answer: [_____]*{$L*$M} [@ AnswerFormatHelp("matrices") @]* +Answer: [_____]*{$L*$M} [@ helpLink("matrices") @]* Compute [`ML`]. -Answer: [_____]*{$M*$L} [@ AnswerFormatHelp("matrices") @]* +Answer: [_____]*{$M*$L} [@ helpLink("matrices") @]* Based on your results above, is matrix multiplication commutative? Explain how you know. diff --git a/Contrib/BentleyUniversity/MathematicsOfComputerGraphics/setMoCG-Ch5/5-8-IsMatrixMultiplicationAssociative.pg b/Contrib/BentleyUniversity/MathematicsOfComputerGraphics/setMoCG-Ch5/5-8-IsMatrixMultiplicationAssociative.pg index 967f6fb8d5..5536ce1cf3 100644 --- a/Contrib/BentleyUniversity/MathematicsOfComputerGraphics/setMoCG-Ch5/5-8-IsMatrixMultiplicationAssociative.pg +++ b/Contrib/BentleyUniversity/MathematicsOfComputerGraphics/setMoCG-Ch5/5-8-IsMatrixMultiplicationAssociative.pg @@ -21,24 +21,24 @@ loadMacros( "MathObjects.pl", "PGML.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "PGessaymacros.pl", ); Context("Matrix"); $showPartialCorrectAnswers = 1; $L = Matrix( [ - [ random(-9,9), random(-9,9), random(-9,9) ], + [ random(-9,9), random(-9,9), random(-9,9) ], [ 0, random(-9,9), random(-9,9) ], [ random(-9,9), 0, random(-9,9) ] ] ); $M = Matrix( [ - [ 0, random(-9,9), random(-9,9) ], + [ 0, random(-9,9), random(-9,9) ], [ random(-9,9), 0, random(-9,9) ], [ random(-9,9), random(-9,9), random(-9,9) ] ] ); $N = Matrix( [ - [ random(-9,9), 0, random(-9,9) ], + [ random(-9,9), 0, random(-9,9) ], [ random(-9,9), random(-9,9), random(-9,9) ], [ 0, random(-9,9), random(-9,9) ] ] ); @@ -51,11 +51,11 @@ Let [`L`], [`M`], and [`N`] be the matrices defined below. Compute [`(LM)N`]. -Answer: [_____]*{($L*$M)*$N} [@ AnswerFormatHelp("matrices") @]* +Answer: [_____]*{($L*$M)*$N} [@ helpLink("matrices") @]* Compute [`L(MN)`]. -Answer: [_____]*{$L*($M*$N)} [@ AnswerFormatHelp("matrices") @]* +Answer: [_____]*{$L*($M*$N)} [@ helpLink("matrices") @]* Based on your results above, can you conclude that matrix multiplication associative? Explain your answer. diff --git a/Contrib/BentleyUniversity/MathematicsOfComputerGraphics/setMoCG-Ch5/5-9-InvestigatingIdentityMatrix.pg b/Contrib/BentleyUniversity/MathematicsOfComputerGraphics/setMoCG-Ch5/5-9-InvestigatingIdentityMatrix.pg index ce666e67c5..303e0a6432 100644 --- a/Contrib/BentleyUniversity/MathematicsOfComputerGraphics/setMoCG-Ch5/5-9-InvestigatingIdentityMatrix.pg +++ b/Contrib/BentleyUniversity/MathematicsOfComputerGraphics/setMoCG-Ch5/5-9-InvestigatingIdentityMatrix.pg @@ -21,7 +21,7 @@ loadMacros( "MathObjects.pl", "PGML.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "PGessaymacros.pl", ); @@ -29,12 +29,12 @@ Context("Matrix"); $showPartialCorrectAnswers = 1; $I = Value::Matrix->I(3); $M = Matrix( [ - [ random(-6,6), random(-6,6), random(-6,6) ], + [ random(-6,6), random(-6,6), random(-6,6) ], [ random(-6,6), random(-6,6), random(-6,6) ], [ random(-6,6), random(-6,6), random(-6,6) ] ] ); $L = $M + Matrix( [ - [ random(1,3), random(1,3), random(1,3) ], + [ random(1,3), random(1,3), random(1,3) ], [ random(1,3), random(1,3), random(1,3) ], [ random(1,3), random(1,3), random(1,3) ] ] ); @@ -50,23 +50,23 @@ Let [`I`], [`M`], and [`L`] be the matrices shown below. Compute [`IM`]. -Answer: [_____]*{$M} [@ AnswerFormatHelp("matrices") @]* +Answer: [_____]*{$M} [@ helpLink("matrices") @]* Compute [`MI`]. -Answer: [_____]*{$M} [@ AnswerFormatHelp("matrices") @]* +Answer: [_____]*{$M} [@ helpLink("matrices") @]* Without computing [`IL`] or [`LI`], what do you think they would be? Answer: -[`IL=`][_____]*{$L} [@ AnswerFormatHelp("matrices") @]* +[`IL=`][_____]*{$L} [@ helpLink("matrices") @]* -[`LI=`][_____]*{$L} [@ AnswerFormatHelp("matrices") @]* +[`LI=`][_____]*{$L} [@ helpLink("matrices") @]* What [`4\times 4`] matrix has the same special behavior as [`I`]? -Answer: [_____]*{$I4} [@ AnswerFormatHelp("matrices") @]* +Answer: [_____]*{$I4} [@ helpLink("matrices") @]* END_PGML BEGIN_PGML_SOLUTION diff --git a/Contrib/Berkeley/StewCalcET7e/1.1/1-1-x01.pg b/Contrib/Berkeley/StewCalcET7e/1.1/1-1-x01.pg index 3b3e7850fb..61922798df 100644 --- a/Contrib/Berkeley/StewCalcET7e/1.1/1-1-x01.pg +++ b/Contrib/Berkeley/StewCalcET7e/1.1/1-1-x01.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "contextFraction.pl", "PGpolynomialmacros.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); diff --git a/Contrib/Berkeley/StewCalcET7e/1.6/1-6-x01.pg b/Contrib/Berkeley/StewCalcET7e/1.6/1-6-x01.pg index dd7e7e0ca7..967287495f 100644 --- a/Contrib/Berkeley/StewCalcET7e/1.6/1-6-x01.pg +++ b/Contrib/Berkeley/StewCalcET7e/1.6/1-6-x01.pg @@ -22,7 +22,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); diff --git a/Contrib/Berkeley/StewCalcET7e/5.3/5-3-61.pg b/Contrib/Berkeley/StewCalcET7e/5.3/5-3-61.pg index f1a6169790..f2ae1be90a 100644 --- a/Contrib/Berkeley/StewCalcET7e/5.3/5-3-61.pg +++ b/Contrib/Berkeley/StewCalcET7e/5.3/5-3-61.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -65,7 +65,7 @@ concave ${upordown}ward? $PAR Answer (in interval notation): \{ ans_rule(15) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} END_TEXT diff --git a/Contrib/Bridgew/LinearAlgebra/linear-transformations-DomainRange-T.pg b/Contrib/Bridgew/LinearAlgebra/linear-transformations-DomainRange-T.pg index 5170392185..40c19bcefb 100644 --- a/Contrib/Bridgew/LinearAlgebra/linear-transformations-DomainRange-T.pg +++ b/Contrib/Bridgew/LinearAlgebra/linear-transformations-DomainRange-T.pg @@ -1,5 +1,5 @@ ##DESCRIPTION -## +## ##ENDDESCRIPTION ##KEYWORDS('linear transformations', 'domain', 'range') @@ -18,12 +18,12 @@ ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", # Standard macros for PG language "MathObjects.pl", - "AnswerFormatHelp.pl", + #"source.pl", # allows code to be displayed on certain sites. #"PGcourse.pl", # Customization file for the course ); @@ -68,9 +68,9 @@ $basis= List($u,$v); Context()->texStrings; BEGIN_TEXT -Define a transformation \(T : \mathbb{R}^n\rightarrow \mathbb{R}^m\) by +Define a transformation \(T : \mathbb{R}^n\rightarrow \mathbb{R}^m\) by -\(T(\vec{x}) = A\cdot\vec{x}\), where \(A\) is the matrix +\(T(\vec{x}) = A\cdot\vec{x}\), where \(A\) is the matrix \[A=\begin{bmatrix} $a11 & $a21 \\ $a12 & $a22 \\ $a13 & $a23 \\ $a14 & $a24 \end{bmatrix} \] @@ -81,14 +81,14 @@ $PAR $PAR -3. $BBOLD First $EBOLD find the Range of \(T\) by rewriting the set builder notation one step at a time. +3. $BBOLD First $EBOLD find the Range of \(T\) by rewriting the set builder notation one step at a time. $BR -$BBOLD Then $EBOLD enter the vectors that generate the Range of \(T\) using a $BITALIC comma separated list$EITALIC of vectors. +$BBOLD Then $EBOLD enter the vectors that generate the Range of \(T\) using a $BITALIC comma separated list$EITALIC of vectors. $PAR Range\((T)\) = Span{\{ans_rule\}} $PAR -$BBOLD Note: $EBOLD To write the vector \(\begin{bmatrix} 1 \\ 2 \\ 3 \\ 4 \end{bmatrix}\), enter \(< 1,2,3,4 >\). +$BBOLD Note: $EBOLD To write the vector \(\begin{bmatrix} 1 \\ 2 \\ 3 \\ 4 \end{bmatrix}\), enter \(< 1,2,3,4 >\). END_TEXT @@ -107,4 +107,4 @@ ANS(List("$u,$v")->cmp); # default tolerance is .01 or one percent. -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/Contrib/CCCS/AlgebraicLiteracy/Algebraic_Expressions/Evaluate_1.pg b/Contrib/CCCS/AlgebraicLiteracy/Algebraic_Expressions/Evaluate_1.pg index 6be6a1f7b9..a67ba35a67 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Algebraic_Expressions/Evaluate_1.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Algebraic_Expressions/Evaluate_1.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -54,7 +54,7 @@ BEGIN_PGML Evaluate the expression [`[$a]x+{y}^{[$b]}`] for [`x=[$c]`] and `y=[$d]`. -[`[$a]x+{y}^{[$b]}=`][_______________]{$ans} +[`[$a]x+{y}^{[$b]}=`][_______________]{$ans} END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Algebraic_Expressions/Evaluate_2.pg b/Contrib/CCCS/AlgebraicLiteracy/Algebraic_Expressions/Evaluate_2.pg index a313ad3de2..1445ba0aae 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Algebraic_Expressions/Evaluate_2.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Algebraic_Expressions/Evaluate_2.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -57,7 +57,7 @@ BEGIN_PGML Evaluate the expression [`\dfrac{[$a]x+y}{[$b]y}`] for [`x=[$x]`] and [`y=[$y]`]. Give your answer as an integer or reduced fraction. -[`\dfrac{[$a]x+y}{[$b]y}=`][_______________]{$ans} +[`\dfrac{[$a]x+y}{[$b]y}=`][_______________]{$ans} END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Algebraic_Expressions/Simplify_Expressions_1.pg b/Contrib/CCCS/AlgebraicLiteracy/Algebraic_Expressions/Simplify_Expressions_1.pg index 55298d2820..215323bce9 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Algebraic_Expressions/Simplify_Expressions_1.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Algebraic_Expressions/Simplify_Expressions_1.pg @@ -20,7 +20,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", -"AnswerFormatHelp.pl", + "PCCmacros.pl", "contextFraction.pl", "contextLimitedPolynomial.pl", @@ -58,7 +58,7 @@ BEGIN_PGML Simplify the expression, [`` [$f] ``]. -[_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Algebraic_Expressions/Simplify_Expressions_10.pg b/Contrib/CCCS/AlgebraicLiteracy/Algebraic_Expressions/Simplify_Expressions_10.pg index 067962b9fa..352fbfc5b5 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Algebraic_Expressions/Simplify_Expressions_10.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Algebraic_Expressions/Simplify_Expressions_10.pg @@ -20,7 +20,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", -"AnswerFormatHelp.pl", + "PCCmacros.pl", "contextFraction.pl", "contextLimitedPolynomial.pl", @@ -56,7 +56,7 @@ BEGIN_PGML Simplify the expression, [`` [$f] ``]. -[_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Algebraic_Expressions/Simplify_Expressions_11.pg b/Contrib/CCCS/AlgebraicLiteracy/Algebraic_Expressions/Simplify_Expressions_11.pg index 072b49344b..64d4358917 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Algebraic_Expressions/Simplify_Expressions_11.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Algebraic_Expressions/Simplify_Expressions_11.pg @@ -20,7 +20,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", -"AnswerFormatHelp.pl", + "PCCmacros.pl", "contextFraction.pl", "contextLimitedPolynomial.pl", @@ -55,7 +55,7 @@ BEGIN_PGML Simplify the expression, [`` [$f] ``]. -[_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Algebraic_Expressions/Simplify_Expressions_12.pg b/Contrib/CCCS/AlgebraicLiteracy/Algebraic_Expressions/Simplify_Expressions_12.pg index b101c5f373..926b2fdd64 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Algebraic_Expressions/Simplify_Expressions_12.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Algebraic_Expressions/Simplify_Expressions_12.pg @@ -20,7 +20,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", -"AnswerFormatHelp.pl", + "PCCmacros.pl", "contextFraction.pl", "contextLimitedPolynomial.pl", @@ -60,7 +60,7 @@ BEGIN_PGML Simplify the expression, [`` [$f] ``]. -[_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Algebraic_Expressions/Simplify_Expressions_13.pg b/Contrib/CCCS/AlgebraicLiteracy/Algebraic_Expressions/Simplify_Expressions_13.pg index ce06bb9920..d53c3f9443 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Algebraic_Expressions/Simplify_Expressions_13.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Algebraic_Expressions/Simplify_Expressions_13.pg @@ -20,7 +20,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", -"AnswerFormatHelp.pl", + "PCCmacros.pl", "contextFraction.pl", "contextLimitedPolynomial.pl", @@ -57,7 +57,7 @@ BEGIN_PGML Simplify the expression, [`` [$f] ``]. -[_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Algebraic_Expressions/Simplify_Expressions_14.pg b/Contrib/CCCS/AlgebraicLiteracy/Algebraic_Expressions/Simplify_Expressions_14.pg index 8ecf0ca81c..9bb3f33708 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Algebraic_Expressions/Simplify_Expressions_14.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Algebraic_Expressions/Simplify_Expressions_14.pg @@ -20,7 +20,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", -"AnswerFormatHelp.pl", + "PCCmacros.pl", "contextFraction.pl", "contextLimitedPolynomial.pl", @@ -59,7 +59,7 @@ BEGIN_PGML Simplify the expression, [`` [$f] ``]. -[_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Algebraic_Expressions/Simplify_Expressions_2.pg b/Contrib/CCCS/AlgebraicLiteracy/Algebraic_Expressions/Simplify_Expressions_2.pg index 3d9635a92f..adb0cbad27 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Algebraic_Expressions/Simplify_Expressions_2.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Algebraic_Expressions/Simplify_Expressions_2.pg @@ -20,7 +20,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", -"AnswerFormatHelp.pl", + "PCCmacros.pl", "contextLimitedPolynomial.pl", "contextFraction.pl", @@ -64,7 +64,7 @@ BEGIN_PGML Simplify the expression, [`` [$f] ``]. -[_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Algebraic_Expressions/Simplify_Expressions_3.pg b/Contrib/CCCS/AlgebraicLiteracy/Algebraic_Expressions/Simplify_Expressions_3.pg index 85bb11f9e3..226d8ba19e 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Algebraic_Expressions/Simplify_Expressions_3.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Algebraic_Expressions/Simplify_Expressions_3.pg @@ -20,7 +20,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", -"AnswerFormatHelp.pl", + "PCCmacros.pl", "contextFraction.pl", "contextLimitedPolynomial.pl", @@ -71,7 +71,7 @@ BEGIN_PGML Use the distributive property to multiply, [`` [$f] ``]. -[_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Algebraic_Expressions/Simplify_Expressions_4.pg b/Contrib/CCCS/AlgebraicLiteracy/Algebraic_Expressions/Simplify_Expressions_4.pg index 39774dd8b6..552a3dd7cf 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Algebraic_Expressions/Simplify_Expressions_4.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Algebraic_Expressions/Simplify_Expressions_4.pg @@ -20,7 +20,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", -"AnswerFormatHelp.pl", + "PCCmacros.pl", "contextFraction.pl", "contextLimitedPolynomial.pl", @@ -64,7 +64,7 @@ BEGIN_PGML Simplify the expression, [`` [$f] ``]. -[_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Algebraic_Expressions/Simplify_Expressions_5.pg b/Contrib/CCCS/AlgebraicLiteracy/Algebraic_Expressions/Simplify_Expressions_5.pg index afdda4c4f1..955b9b36ef 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Algebraic_Expressions/Simplify_Expressions_5.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Algebraic_Expressions/Simplify_Expressions_5.pg @@ -20,7 +20,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", -"AnswerFormatHelp.pl", + "PCCmacros.pl", "contextFraction.pl", "contextLimitedPolynomial.pl", @@ -65,7 +65,7 @@ BEGIN_PGML Simplify the expression, [`` [$f] ``]. -[_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Algebraic_Expressions/Simplify_Expressions_6.pg b/Contrib/CCCS/AlgebraicLiteracy/Algebraic_Expressions/Simplify_Expressions_6.pg index 9900f2a869..7627b04369 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Algebraic_Expressions/Simplify_Expressions_6.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Algebraic_Expressions/Simplify_Expressions_6.pg @@ -20,7 +20,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", -"AnswerFormatHelp.pl", + "PCCmacros.pl", "contextFraction.pl", "contextLimitedPolynomial.pl", @@ -64,7 +64,7 @@ BEGIN_PGML Simplify the expression, [`` [$f] ``]. -[_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Algebraic_Expressions/Simplify_Expressions_7.pg b/Contrib/CCCS/AlgebraicLiteracy/Algebraic_Expressions/Simplify_Expressions_7.pg index 11bc0543cb..d606b45f69 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Algebraic_Expressions/Simplify_Expressions_7.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Algebraic_Expressions/Simplify_Expressions_7.pg @@ -20,7 +20,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", -"AnswerFormatHelp.pl", + "PCCmacros.pl", "contextFraction.pl", "contextLimitedPolynomial.pl", @@ -69,7 +69,7 @@ BEGIN_PGML Simplify the expression, [`` [$f] ``]. -[_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Algebraic_Expressions/Simplify_Expressions_8.pg b/Contrib/CCCS/AlgebraicLiteracy/Algebraic_Expressions/Simplify_Expressions_8.pg index 46c09207dc..12fcfbb0f8 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Algebraic_Expressions/Simplify_Expressions_8.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Algebraic_Expressions/Simplify_Expressions_8.pg @@ -20,7 +20,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", -"AnswerFormatHelp.pl", + "PCCmacros.pl", "contextFraction.pl", "contextLimitedPolynomial.pl", @@ -64,7 +64,7 @@ BEGIN_PGML Simplify the expression, [`` [$f] ``]. -[_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Algebraic_Expressions/Simplify_Expressions_9.pg b/Contrib/CCCS/AlgebraicLiteracy/Algebraic_Expressions/Simplify_Expressions_9.pg index 327fa4d901..a43f7b06cd 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Algebraic_Expressions/Simplify_Expressions_9.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Algebraic_Expressions/Simplify_Expressions_9.pg @@ -20,7 +20,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", -"AnswerFormatHelp.pl", + "PCCmacros.pl", "contextFraction.pl", "contextLimitedPolynomial.pl", @@ -53,7 +53,7 @@ BEGIN_PGML Simplify the expression, [`` [$f] ``]. -[_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Applications_Linear/Application_1.pg b/Contrib/CCCS/AlgebraicLiteracy/Applications_Linear/Application_1.pg index 0632bd9fcf..138d4f7a6d 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Applications_Linear/Application_1.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Applications_Linear/Application_1.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -33,7 +33,7 @@ $showPartialCorrectAnswers = 1; ########################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", @@ -62,7 +62,7 @@ $ml = new_match_list(); $ml->rf_print_q(~~&pop_up_list_print_q); $ml->ra_pop_up_list([ "No answer" => "?", -"A" => "A", "B" => "B", "C" => "C", +"A" => "A", "B" => "B", "C" => "C", "D" => "D", "E" => "E", "F" => "F", "G" => "G", "H" => "H", "I" => "I", ]); @@ -88,7 +88,7 @@ $ml->extra( "`$a/x`", ); $ml->choose_extra(1); - + $ml->makeLast("None of the above"); @@ -119,7 +119,7 @@ $ENV{'grader_message'} = "You can earn " . # # All or nothing grader -# +# #install_problem_grader(~~&std_problem_grader); # ANS( str_cmp( $ml->ra_correct_ans ) ); diff --git a/Contrib/CCCS/AlgebraicLiteracy/Applications_Linear/Application_10.pg b/Contrib/CCCS/AlgebraicLiteracy/Applications_Linear/Application_10.pg index 1fe547f368..4a17214e5a 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Applications_Linear/Application_10.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Applications_Linear/Application_10.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); diff --git a/Contrib/CCCS/AlgebraicLiteracy/Applications_Linear/Application_11.pg b/Contrib/CCCS/AlgebraicLiteracy/Applications_Linear/Application_11.pg index f9e543f28b..a462ac24e9 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Applications_Linear/Application_11.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Applications_Linear/Application_11.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserImplicitEquation.pl", diff --git a/Contrib/CCCS/AlgebraicLiteracy/Applications_Linear/Application_12.pg b/Contrib/CCCS/AlgebraicLiteracy/Applications_Linear/Application_12.pg index a532d459b7..244c9ab92d 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Applications_Linear/Application_12.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Applications_Linear/Application_12.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserImplicitEquation.pl", diff --git a/Contrib/CCCS/AlgebraicLiteracy/Applications_Linear/Application_2.pg b/Contrib/CCCS/AlgebraicLiteracy/Applications_Linear/Application_2.pg index d33c91d842..997ad81e9a 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Applications_Linear/Application_2.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Applications_Linear/Application_2.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserImplicitEquation.pl", @@ -47,7 +47,7 @@ BEGIN_PGML The difference of twice a number and [`[$a]`] is [`[$b]`] Find the number. -[`x = `] [_________________]{$ans} +[`x = `] [_________________]{$ans} END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Applications_Linear/Application_3.pg b/Contrib/CCCS/AlgebraicLiteracy/Applications_Linear/Application_3.pg index 54e93dba66..4a337fd23d 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Applications_Linear/Application_3.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Applications_Linear/Application_3.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserImplicitEquation.pl", @@ -47,7 +47,7 @@ BEGIN_PGML The product of a number and [`[$a]`] is the sum of the number and [`[$b]`] Find the number. -[`x = `] [_________________]{$ans} +[`x = `] [_________________]{$ans} END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Applications_Linear/Application_4.pg b/Contrib/CCCS/AlgebraicLiteracy/Applications_Linear/Application_4.pg index 62d8f01c22..fe8e75cc65 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Applications_Linear/Application_4.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Applications_Linear/Application_4.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -57,7 +57,7 @@ BEGIN_PGML A salesperson sold a computer system and software for [`$[$total]`], receiving [$factor] times as much money for the computer system as for the software. Find the price of each. -Computer System Price = $ [___________]{$comp} +Computer System Price = $ [___________]{$comp} Software Price = $ [___________]{$sw} diff --git a/Contrib/CCCS/AlgebraicLiteracy/Applications_Linear/Application_5.pg b/Contrib/CCCS/AlgebraicLiteracy/Applications_Linear/Application_5.pg index 089dc4aad4..97bd94e807 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Applications_Linear/Application_5.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Applications_Linear/Application_5.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -49,7 +49,7 @@ BEGIN_PGML The Memorial Spartans scored [$pts] points more than the West Regents in a basketball game. Together, both teams scored a total of [$total] points. How many points did the Spartans score during this game? -Number points = [_________________]{$spartans} +Number points = [_________________]{$spartans} END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Applications_Linear/Application_6.pg b/Contrib/CCCS/AlgebraicLiteracy/Applications_Linear/Application_6.pg index 62559ad5c6..70155694dc 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Applications_Linear/Application_6.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Applications_Linear/Application_6.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserImplicitEquation.pl", diff --git a/Contrib/CCCS/AlgebraicLiteracy/Applications_Linear/Application_7.pg b/Contrib/CCCS/AlgebraicLiteracy/Applications_Linear/Application_7.pg index 31398a9fbe..adc82e049d 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Applications_Linear/Application_7.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Applications_Linear/Application_7.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserImplicitEquation.pl", diff --git a/Contrib/CCCS/AlgebraicLiteracy/Applications_Linear/Application_8.pg b/Contrib/CCCS/AlgebraicLiteracy/Applications_Linear/Application_8.pg index 6fd1001a07..7471d1fb2d 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Applications_Linear/Application_8.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Applications_Linear/Application_8.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextCurrency.pl", @@ -37,7 +37,7 @@ $showPartialCorrectAnswers = 1; #This puts commas into numbers when displayed. package my::Real; our @ISA = ('Value::Real'); # subclass of this Value::Real - + sub string { my $self = shift; my $x = $self->SUPER::string(@_); # get the original string output my ($n,@rest) = split(/([.E])/,$x,1); # break it into the integer part and the rest @@ -45,16 +45,16 @@ package my::Real; {$n =~ s/([0-9])([0-9]{3})(,|$)/$1,$2$3/} return join("",$n,@rest); # return the final string } - + sub TeX { my $self = shift; my $n = $self->SUPER::TeX(@_); # original TeX uses string(), so commas are already there $n =~ s/,/{,}/g; # just make sure they have the correct spacing return $n; } - + package main; # end of package my::Real; - + Context()->{value}{Real} = "my::Real"; # make the Context use my::Real rather then Value::Real Context()->{format}{number} = "%f#"; # format using "f" rather than "g", so no exponential notation diff --git a/Contrib/CCCS/AlgebraicLiteracy/Applications_Linear/Application_9.pg b/Contrib/CCCS/AlgebraicLiteracy/Applications_Linear/Application_9.pg index 7ed8b2218c..553c62d908 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Applications_Linear/Application_9.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Applications_Linear/Application_9.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserImplicitEquation.pl", diff --git a/Contrib/CCCS/AlgebraicLiteracy/Applications_Linear/Expression_1.pg b/Contrib/CCCS/AlgebraicLiteracy/Applications_Linear/Expression_1.pg index 3353e4c4c3..bf9363fad8 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Applications_Linear/Expression_1.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Applications_Linear/Expression_1.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -49,7 +49,7 @@ Write an alebraic expression for the following phrase. Use [`x`] to respresent [`[$n]`] less than a [$phrase[$i]] times a number. -[_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[_________________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/AlgebraicLiteracy/Applications_Linear/Expression_2.pg b/Contrib/CCCS/AlgebraicLiteracy/Applications_Linear/Expression_2.pg index 095e6c4df4..55cadd673c 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Applications_Linear/Expression_2.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Applications_Linear/Expression_2.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -52,13 +52,13 @@ $ans4 = Formula("x - $a4")->reduce; BEGIN_PGML Write an alebraic expression for each of the following phrases. Use [`x`] to respresent the unknonwn number. -[`[$a1]`] more than a number. [_________________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +[`[$a1]`] more than a number. [_________________]{$ans1} [@ helpLink("numbers") @]* -The product of [`[$a2]`] and a number. [_________________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +The product of [`[$a2]`] and a number. [_________________]{$ans2} [@ helpLink("numbers") @]* -The difference of [`[$a3]`] and a number. [_________________]{$ans3} [@ AnswerFormatHelp("numbers") @]* +The difference of [`[$a3]`] and a number. [_________________]{$ans3} [@ helpLink("numbers") @]* -A number decreased by [`[$a4]`]. [_________________]{$ans4} [@ AnswerFormatHelp("numbers") @]* +A number decreased by [`[$a4]`]. [_________________]{$ans4} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Applications_Linear/Expression_3.pg b/Contrib/CCCS/AlgebraicLiteracy/Applications_Linear/Expression_3.pg index fe693b1db2..2058610a30 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Applications_Linear/Expression_3.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Applications_Linear/Expression_3.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -56,9 +56,9 @@ $ans2 = Formula("$a2*x + $n2")->reduce; BEGIN_PGML Write an alebraic expression for each of the following phrases. Use [`x`] to respresent the unknonwn number. -[$phrase1] times the sum of a number and [`[$n1]`]. [_________________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +[$phrase1] times the sum of a number and [`[$n1]`]. [_________________]{$ans1} [@ helpLink("numbers") @]* -The sum of [$phrase2] times a number and [`[$n2]`]. [_________________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +The sum of [$phrase2] times a number and [`[$n2]`]. [_________________]{$ans2} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Application_1.pg b/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Application_1.pg index cb803a8485..4f794bde73 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Application_1.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Application_1.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) ## DBsection(Applications and models) @@ -10,17 +10,17 @@ ## Institution(Red Rocks Community College) ## Author(Martha Stevens) ## MO(1) - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,10 +29,10 @@ loadMacros( "parserPopUp.pl", "parserAssignment.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric")->variables->add(y=>"Real"); @@ -54,23 +54,23 @@ $ans =Formula("$slope(x)+$yint"); $LHS = Formula("$slope*x + $slope*$bikes1"); - + ########################### # Main text - + BEGIN_PGML It cost a bicycle company [`$[$cost1]`] to make [`[$bikes1]`] bikes in its first month of operation and [`$[$cost2]`] to make [`[$bikes2]`] bikes during its second month. Find a linear equation to express the company's monthly production cost, [`y`], in terms of the number, [`x`] of bikes it makes. -[`y = `][____]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`y = `][____]{$ans} [@ helpLink("formulas") @]* + - END_PGML - + ############################ # Solution - + BEGIN_PGML_SOLUTION Let x = number of bicycles and y = the company's monthly production cost. @@ -94,7 +94,7 @@ and we can use the point-slope equation to get: END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Application_2.pg b/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Application_2.pg index 69b14617ef..5c9a690869 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Application_2.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Application_2.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) ## DBsection(Applications and models) @@ -10,17 +10,17 @@ ## Institution(Red Rocks Community College) ## Author(Martha Stevens) ## MO(1) - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextCurrency.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,10 +29,10 @@ loadMacros( "parserPopUp.pl", "parserAssignment.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric")->variables->add(y=>"Real"); @@ -59,28 +59,28 @@ $n = $i + $i2; - + ########################### # Main text - + BEGIN_PGML -George bought a car for [`$[$value1]`] in [`[$year1]`]. In [`[$year2]`], the car was worth [`$[$value2]`]. +George bought a car for [`$[$value1]`] in [`[$year1]`]. In [`[$year2]`], the car was worth [`$[$value2]`]. Express the value, [`y`], of the car in terms of the number of years, [`x`] after it was purchased. -[`y = `][____]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`y = `][____]{$ans} [@ helpLink("formulas") @]* Use your formula to predict the value of the car in [`[$year3]`]. [_____]{$value3} - + END_PGML - + ############################ # Solution - + BEGIN_PGML_SOLUTION Let x = years since [$year1] and y = the value of the car. @@ -107,7 +107,7 @@ To find the car's value in [$year3], plug [$n] into the above equation. ([$year [`y = [$value3]`] END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Application_3.pg b/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Application_3.pg index dc34b6d503..417971eb71 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Application_3.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Application_3.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) ## DBsection(Applications and models) @@ -10,17 +10,17 @@ ## Institution(Red Rocks Community College) ## Author(Martha Stevens) ## MO(1) - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,10 +29,10 @@ loadMacros( "parserPopUp.pl", "parserAssignment.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric")->variables->add(y=>"Real"); @@ -50,22 +50,22 @@ $y2 = $yint + $slope*$n; $ans =Formula("$slope(x)+$yint"); - + ########################### # Main text - + BEGIN_PGML The number of acres in the National Park system has grown from [`[$yint]`] million acres in [`[$year1]`] to [`[$y2]`] million acres in [`[$year2]`]. Let y represent the number of acres, in millions, in the system and x the number of years after [`[$year1]`]. Find a linear equation that fits the data. -[`y = `][____]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`y = `][____]{$ans} [@ helpLink("formulas") @]* + - END_PGML - + ############################ # Solution - + BEGIN_PGML_SOLUTION Let x = years since [$year1] and y = millions of acres in the NPS. @@ -86,7 +86,7 @@ and use the point-slope formula to find the equation: [`y = [$slope]x + [$yint]`] END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Application_4.pg b/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Application_4.pg index b0889866e9..d66da03879 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Application_4.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Application_4.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) ## DBsection(Applications and models) @@ -10,17 +10,17 @@ ## Institution(Red Rocks Community College) ## Author(Martha Stevens) ## MO(1) - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,10 +29,10 @@ loadMacros( "parserPopUp.pl", "parserAssignment.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric")->variables->add(y=>"Real"); @@ -54,28 +54,28 @@ $ans =Formula("$slope(x)+$yint"); $ans2 = Compute("$slope*$j + $yint"); - + ########################### # Main text - + BEGIN_PGML In [`[$year1]`], U.S. families spent, on average, [`$[$yint]`] for back-to-school supplies. The number rose to [`$[$y2]`] in [`[$year2]`]. Let y represent the average amount of back-to-school spending and x the number years since [`[$year1]`]. Find a linear equation that fits the data and use your equation to predict the back-to-school spending in [`[$year3]`]. -[`y = `][____]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`y = `][____]{$ans} [@ helpLink("formulas") @]* In [`[$year3]`], families will spend [______]{$ans2} - + END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Equation_of_Lines_1.pg b/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Equation_of_Lines_1.pg index d82a92103c..67d191b9af 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Equation_of_Lines_1.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Equation_of_Lines_1.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) ## DBsection(Equations of lines: general) @@ -11,17 +11,17 @@ ## Author(Michael Sulock, Edited: Steven Wray, 7/22/17, Edited: Martha Stevens, 6/18/2018) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -30,10 +30,10 @@ loadMacros( "parserPopUp.pl", "parserAssignment.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Fraction"); @@ -56,25 +56,25 @@ $n = Compute("$slope*$x1"); $RHS = Formula("$slope*x - $n")->reduce; $LHS = Formula("y - $y1")->reduce; - + ########################### # Main text - + BEGIN_PGML Find a linear equation satisfying the following conditions: Passes through the points [`([$x1],[$y1])`] and [`([$x2],[$y2])`] -[`y = `][____]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`y = `][____]{$ans} [@ helpLink("formulas") @]* + - END_PGML - + ############################ # Solution - + BEGIN_PGML_SOLUTION We are given two points: @@ -106,7 +106,7 @@ To put the equation in slope-intercept form, distribute [$slope] and then add [$ END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Equation_of_Lines_2.pg b/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Equation_of_Lines_2.pg index b80fe4bfae..f7a76e6789 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Equation_of_Lines_2.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Equation_of_Lines_2.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) ## DBsection(Equations of lines: slope-intercept form) @@ -10,17 +10,17 @@ ## Institution(Red Rocks Community College) ## Author(Martha Stevens) ## MO(1) - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,10 +29,10 @@ loadMacros( "parserPopUp.pl", "parserAssignment.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("LimitedFraction"); @@ -63,10 +63,10 @@ $dx = Compute("$x2 - $x1"); $LHS = Formula("y - $y1"); $RHS = Formula("$slope*x - $slope*$x1")->reduce; - + ########################### # Main text - + BEGIN_PGML Find a linear equation satisfying the following conditions: @@ -74,15 +74,15 @@ Passes through the points [`([$x1],[$y1])`] and [`([$x2],[$y2])`] Write your answer using integers or fractions. -[`y = `][____]{$slope}[`x + `][____]{$yint} [@ AnswerFormatHelp("formulas") @]* +[`y = `][____]{$slope}[`x + `][____]{$yint} [@ helpLink("formulas") @]* + - END_PGML - + ############################ # Solution - + BEGIN_PGML_SOLUTION We are given two points: @@ -117,7 +117,7 @@ Note: To multiply fractions, we multiply straight across. For example [`\frac{ To add or subtract fractions we need a least common denominator (LCD). For example, [`\frac{2}{5} - 3 = \frac{2}{5} - \frac{3}{1} = \frac{2}{5} - \frac{15}{5} = -\frac{13}{5}`]. END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Equation_of_Lines_4.pg b/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Equation_of_Lines_4.pg index a8cbe34335..a9b1a7c723 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Equation_of_Lines_4.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Equation_of_Lines_4.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ##Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) ## DBsection(Parallel and perpendicular lines) @@ -10,17 +10,17 @@ ## Institution(Red Rocks Community College) ## Author(Martha Stevens) ## MO(1) - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,10 +29,10 @@ loadMacros( "parserPopUp.pl", "contextLimitedPolynomial.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Fraction"); @@ -65,22 +65,22 @@ Parser::Number::NoDecimals; $ans = Formula("$slope(x)+$ansYint")-> reduce; - + ########################### # Main text - + BEGIN_PGML Write an equation for the line parallel to [`y = [$line]`] and passing through the point [`([$xCord], [$yCord])`]. Put your answer in slope-intercept form using fractions and/or integers. - -[`y = `] [______]{$ans} [@ AnswerFormatHelp("formulas") @]* + +[`y = `] [______]{$ans} [@ helpLink("formulas") @]* END_PGML - + ############################ # Solution - + BEGIN_PGML_SOLUTION Parallel lines have the same slope. The slope of [`y = [$line]`] is [`m = [$slope]`]. This is also the slope of the line we are trying to write. @@ -106,8 +106,8 @@ To put the equation in slope-intercept form, distribute [$slope] and then add [$ END_PGML_SOLUTION - - + + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Equation_of_Lines_5.pg b/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Equation_of_Lines_5.pg index 7fdd48707c..d28b4258bc 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Equation_of_Lines_5.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Equation_of_Lines_5.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ##Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) ## DBsection(Parallel and perpendicular lines) @@ -10,17 +10,17 @@ ## Institution(Red Rocks Community College) ## Author(Martha Stevens) ## MO(1) - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,10 +29,10 @@ loadMacros( "parserPopUp.pl", "contextLimitedPolynomial.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Fraction"); @@ -66,22 +66,22 @@ Parser::Number::NoDecimals; $ans = Formula("$ansslope(x)+$ansYint")-> reduce; - + ########################### # Main text - + BEGIN_PGML Write an equation for the line perpendicular to [`y = [$line]`] and passing through the point [`([$xCord], [$yCord])`]. Put your answer in slope-intercept form using fractions and/or integers. - -[`y = `] [______]{$ans} [@ AnswerFormatHelp("formulas") @]* + +[`y = `] [______]{$ans} [@ helpLink("formulas") @]* END_PGML - + ############################ # Solution - + BEGIN_PGML_SOLUTION Perpendicular lines have slopes that are negative reciprocals. The slope of [`y = [$line]`] is [`m = [$slope]`]. So the slope of the line we are trying to find is [`m = [$ansslope]`]. @@ -107,7 +107,7 @@ To put the equation in slope-intercept form, distribute [$slope] and then add [$ END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Equation_of_Lines_6.pg b/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Equation_of_Lines_6.pg index 72617b26f0..e2032f4b76 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Equation_of_Lines_6.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Equation_of_Lines_6.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) ## DBsection(Equations of lines: general) @@ -11,33 +11,33 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", "PGcourse.pl", "contextLimitedPoint.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup -# +# Context("Numeric"); @@ -57,7 +57,7 @@ texsize=>300, ); -add_functions($gr, "($slope(x)+$intercept) for x in <-$limit,$limit>" . +add_functions($gr, "($slope(x)+$intercept) for x in <-$limit,$limit>" . " using color:blue and weight:2"); Context("Numeric"); @@ -66,23 +66,23 @@ $ans = Formula(" $slope(x) +$intercept")->reduce; ########################### # Main text - + BEGIN_PGML -Find the equation of the graphed line. +Find the equation of the graphed line. >> [@ image(insertGraph($gr), tex_size=>16000, width=>400, height=>400), @]* << -[`y = `] [______]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`y = `] [______]{$ans} [@ helpLink("formulas") @]* END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Equation_of_Lines_7.pg b/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Equation_of_Lines_7.pg index 5e427aeb1d..4d859190df 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Equation_of_Lines_7.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Equation_of_Lines_7.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) ## DBsection(Equations of lines: general) @@ -10,19 +10,19 @@ ## Institution(Red Rocks Community College) ## Author(Martha Stevens) ## MO(1) - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -30,15 +30,15 @@ loadMacros( "contextLimitedPoint.pl", "parserImplicitEquation.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup # -Context ("Numeric"); +Context ("Numeric"); $limit = 5; @@ -55,7 +55,7 @@ texsize=>300, $chooser = random(0,1); if ( $chooser == 0) { - add_functions($gr, "($intercept) for x in <-$limit,$limit>" . + add_functions($gr, "($intercept) for x in <-$limit,$limit>" . " using color:blue and weight:2"); $popup = PopUp(["?","y", "x"], "y"); @@ -74,23 +74,23 @@ $popup = PopUp(["?","y", "x"], "x"); ########################### # Main text - + BEGIN_PGML -Find the equation of the graphed line. +Find the equation of the graphed line. >> [@ image(insertGraph($gr), tex_size=>16000, width=>400, height=>400), @]* << [_____]{$popup}[`=`][_____]{$intercept} END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Equation_of_Lines_8.pg b/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Equation_of_Lines_8.pg index 5fc64a4929..ef5f09bd60 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Equation_of_Lines_8.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Equation_of_Lines_8.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ##Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) ## DBsection(Equations of lines: slope-intercept form) @@ -10,17 +10,17 @@ ## Institution(Red Rocks Community College) ## Author(Martha Stevens) ## MO(1) - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,10 +29,10 @@ loadMacros( "parserPopUp.pl", "contextLimitedPolynomial.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("LimitedFraction"); @@ -59,22 +59,22 @@ $ans = Formula("$slope(x)+$ansYint")-> reduce; #For solution $n = $slope*$xCord; - + ########################### # Main text - + BEGIN_PGML Write an equation of the line with a slope of [`m = [$slope]`] that passes through the point [`([$xCord], [$yCord])`]. Put your answer in slope-intercept form using fractions and/or integers. - -[`y = `] [______]{$ans} [@ AnswerFormatHelp("formulas") @]* + +[`y = `] [______]{$ans} [@ helpLink("formulas") @]* END_PGML - + ############################ # Solution - + BEGIN_PGML_SOLUTION We can use the point-slope formula to write the equation of this line: @@ -106,7 +106,7 @@ Note: To multiply fractions, we multiply straight across. For example [`\frac{ To add or subtract fractions we need a least common denominator (LCD). For example, [`\frac{2}{5} - 3 = \frac{2}{5} - \frac{3}{1} = \frac{2}{5} - \frac{15}{5} = -\frac{13}{5}`]. END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Equations_of_Lines_3.pg b/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Equations_of_Lines_3.pg index 7228736cd8..ed6f8194fb 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Equations_of_Lines_3.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Equations_of_Lines_3.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## Algebra ## ENDDESCRIPTION - - + + ## DBsubject() ## DBchapter() ## DBsection() @@ -11,17 +11,17 @@ ## Author(Martha Stevens) ## MO(1) ## KEYWORDS() - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -30,10 +30,10 @@ loadMacros( "answerHints.pl", "parserAssignment.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -62,29 +62,29 @@ ANS(Formula("$slope(x)+$yint")->cmp->withPostFilter(AnswerHints( } => "Rounding error? Round decimals after you have done all computations." ))); - + ########################### # Main text - + BEGIN_PGML Find a linear equation satisfying the following conditions: -Passes through the points [`([$x1],[$y1])`] and [`([$x2],[$y2])`]. Decimals must be accurate to the nearest hundredth. +Passes through the points [`([$x1],[$y1])`] and [`([$x2],[$y2])`]. Decimals must be accurate to the nearest hundredth. + +[`y = `][____]{$ans} [@ helpLink("formulas") @]* -[`y = `][____]{$ans} [@ AnswerFormatHelp("formulas") @]* - END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Intercepts_1.pg b/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Intercepts_1.pg index fb152d2e32..3d35f85a75 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Intercepts_1.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Intercepts_1.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) ## DBsection(Linear equations) @@ -10,17 +10,17 @@ ## Institution(Red Rocks Community College) ## Author(Martha Stevens) ## MO(1) - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -28,10 +28,10 @@ loadMacros( "PGcourse.pl", "parserPopUp.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Point"); @@ -50,30 +50,30 @@ $xintP = Point($xint, 0); $f = Compute("$A*x + $B*y")->reduce; - + ########################### # Main text - + BEGIN_PGML Give the coordinates of the x and y intercepts of the following equation [`[$f]=[$C]`] -x intercept is [______]{$xintP} [@ AnswerFormatHelp("points") @]* +x intercept is [______]{$xintP} [@ helpLink("points") @]* + +y intercept is [______]{$yintP} [@ helpLink("points") @]* -y intercept is [______]{$yintP} [@ AnswerFormatHelp("points") @]* - END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Intercepts_2.pg b/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Intercepts_2.pg index 25b019bab2..5d61b80d8f 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Intercepts_2.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Intercepts_2.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) ## DBsection(Linear equations) @@ -10,17 +10,17 @@ ## Institution(Red Rocks Community College) ## Author(Martha Stevens) ## MO(1) - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -28,10 +28,10 @@ loadMacros( "PGcourse.pl", "parserPopUp.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Point"); @@ -50,30 +50,30 @@ $yintP = Point(0, $yint); $xintP = Point($xint, 0); - + ########################### # Main text - + BEGIN_PGML Give the coordinates of the x and y intercepts of the following equation [`[$line] = [$C]`] -x intercept is [______]{$xintP} [@ AnswerFormatHelp("points") @]* +x intercept is [______]{$xintP} [@ helpLink("points") @]* + +y intercept is [______]{$yintP} [@ helpLink("points") @]* -y intercept is [______]{$yintP} [@ AnswerFormatHelp("points") @]* - END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Parallel_Perp_1.pg b/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Parallel_Perp_1.pg index 339263d243..7582a95340 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Parallel_Perp_1.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Parallel_Perp_1.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) ## DBsection(Parallel and perpendicular lines) @@ -10,17 +10,17 @@ ## Institution(Red Rocks Community College) ## Author(Martha Stevens) ## MO(1) - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -28,10 +28,10 @@ loadMacros( "PGcourse.pl", "parserPopUp.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup #Add context and y as a variable. @@ -81,7 +81,7 @@ $b2 = Compute("$C2/$B2"); ########################### # Main text - + BEGIN_PGML Are the lines parallel, perpendicular, or neither? @@ -89,14 +89,14 @@ Are the lines parallel, perpendicular, or neither? [`[$eqn2]=[$C2]`] -[____]{$popup} - +[____]{$popup} + END_PGML - + ############################ # Solution - + BEGIN_PGML_SOLUTION Parallel lines have the same slope and perpendicular lines have slopes that are negative reciprocals. @@ -129,7 +129,7 @@ The slopes are [$compare], so the lines are [$answer]. _Note: If you have to divide by a fraction, you can multiply by its reciprocal. For example [`3 \div \frac{4}{5} = 3 \cdot \frac{5}{4} = \frac{15}{4}`]._ END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/SlopeIntercept_1.pg b/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/SlopeIntercept_1.pg index 835b46994e..3999d6d613 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/SlopeIntercept_1.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/SlopeIntercept_1.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject() ## DBchapter() ## DBsection() @@ -11,17 +11,17 @@ ## Author(Martha Stevens) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -30,10 +30,10 @@ loadMacros( "parserPopUp.pl", "parserAssignment.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Fraction"); @@ -56,25 +56,25 @@ $n = Compute("$slope*$x1"); $RHS = Formula("$slope*x - $n")->reduce; $LHS = Formula("y - $y1")->reduce; - + ########################### # Main text - + BEGIN_PGML Find a linear equation satisfying the following conditions: Passes through the points [`([$x1],[$y1])`] and [`([$x2],[$y2])`] -[`y = `][____]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`y = `][____]{$ans} [@ helpLink("formulas") @]* + - END_PGML - + ############################ # Solution - + BEGIN_PGML_SOLUTION We are given two points: @@ -106,7 +106,7 @@ To put the equation in slope-intercept form, distribute [$slope] and then add [$ END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Slope_1.pg b/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Slope_1.pg index 671c3cfa74..512192b8ba 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Slope_1.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Slope_1.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) ## DBsection(Finding the slope) @@ -11,17 +11,17 @@ ## Author(Michael Sulock, Edited: Steven Wray, 7/22/17, Edited: Martha Stevens, 6/18/2017) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,10 +29,10 @@ loadMacros( "PGcourse.pl", "parserPopUp.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("LimitedFraction"); @@ -51,10 +51,10 @@ $ans = Fraction($y1-$y2,$x1-$x2); #For solution $dy = $y2 - $y1; $dx = $x2 - $x1; - + ########################### # Main text - + BEGIN_PGML Find the slope of the line that passes through the following points @@ -63,14 +63,14 @@ Find the slope of the line that passes through the following points Write your answer as an integer or fraction. -[____]{$ans} [@ AnswerFormatHelp("numbers") @]* - +[____]{$ans} [@ helpLink("numbers") @]* + END_PGML - + ############################ # Solution - + BEGIN_PGML_SOLUTION Slope can be computed by taking the change in y divided by the change in x: @@ -87,7 +87,7 @@ I am going to let [`x_1 = [$x1]`], [`y_1 = [$y1]`], [`x_2 = [$x2]`], and [`y_2 = _Note: I might have reduced my answer._ END_PGML_SOLUTION - -COMMENT('MathObject version. Uses PGML.'); - + +COMMENT('MathObject version. Uses PGML.'); + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Slope_2.pg b/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Slope_2.pg index 861a85a71e..a3ec5052d4 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Slope_2.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Slope_2.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) ## DBsection(Finding the slope) @@ -11,33 +11,33 @@ ## Author(Michael Sulock; Edited: Martha Stevens 6/21/2108 (RRCC)) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", "PGcourse.pl", "contextLimitedPoint.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup -# +# Context("Numeric"); $limit = 5; @@ -57,9 +57,9 @@ texsize=>300, ); -add_functions($gr, "($slope(x)+$intercept) for x in <-$limit,$limit>" . +add_functions($gr, "($slope(x)+$intercept) for x in <-$limit,$limit>" . " using color:blue and weight:2"); - + #For Solution $x1 = 0; $y1 = $intercept; @@ -86,21 +86,21 @@ $d = $den; ########################### # Main text - + BEGIN_PGML -Find the slope of the graphed line. +Find the slope of the graphed line. >> [@ image(insertGraph($gr), tex_size=>16000, width=>400, height=>400), @]* << -The slope is [______]{$slope} [@ AnswerFormatHelp("numbers") @]* +The slope is [______]{$slope} [@ helpLink("numbers") @]* END_PGML - + ############################ # Solution - + BEGIN_PGML_SOLUTION Slope can be computed by taking the change in y divided by the change in x. This can also be thought of as: @@ -112,7 +112,7 @@ I notice the y-intercept is located at: To get to another point on the graph, I have to either: * Move [$dx1] [$d] units and [$dy1] [$n] units, or -* Move [$dx2] [$d] units and [$dy2] [$n] units. +* Move [$dx2] [$d] units and [$dy2] [$n] units. That makes the slope, @@ -122,7 +122,7 @@ That makes the slope, _Note: I might have reduced my answer._ END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Slope_3.pg b/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Slope_3.pg index 949dc58880..5c5255b1cf 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Slope_3.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Slope_3.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ##Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) ## DBsection(Finding the slope) @@ -10,17 +10,17 @@ ## Institution(Red Rocks Community College) ## Author(Martha Stevens) ## MO(1) - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,10 +29,10 @@ loadMacros( "parserPopUp.pl", "contextFraction.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Fraction"); @@ -53,21 +53,21 @@ $int = Compute("$C/$B"); ########################### # Main text - + BEGIN_PGML -Find the slope of the line: +Find the slope of the line: + +[`[$line]=[$C]`] -[`[$line]=[$C]`] - [`m = `] [______]{$ans} END_PGML - + ############################ # Solution - + BEGIN_PGML_SOLUTION If the equation of a line is in slope-intercept form, then the slope is coefficient of the x-term. If other words, if we can solve the equation for y and put it in [`y = mx + b`] form, then slope is the number in front of the x. @@ -86,7 +86,7 @@ Then divide both sides by [$B]: [`m = [$ans]`] END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Solution_Check_1.pg b/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Solution_Check_1.pg index f59ab54cd9..a255644905 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Solution_Check_1.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Solution_Check_1.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) ## DBsection(Linear equations) @@ -10,17 +10,17 @@ ## Institution(Red Rocks Community College) ## Author(Martha Stevens) ## MO(1) - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -28,10 +28,10 @@ loadMacros( "PGcourse.pl", "parserPopUp.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup #Add context and y as a variable. @@ -54,27 +54,27 @@ if ( $chooser == 0) { $popup = PopUp(["?","yes", "no"], "no"); } - + ########################### # Main text - + BEGIN_PGML Is the ordered pair [`([$x], [$y])`] a solution to the equation? [`[$A]x+[$B]y=[$C]`] -[____]{$popup} - +[____]{$popup} + END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); diff --git a/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Table_of_Values_1.pg b/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Table_of_Values_1.pg index 120c73aa46..e200364ce2 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Table_of_Values_1.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Table_of_Values_1.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGgraders.pl" @@ -55,7 +55,7 @@ $ans3 = Compute("($y3-$b)/$m"); $table = $BCENTER.begintable(5) . row( "\(x \)", $x0, $x1, $x2, ans_rule(5) ) . row( "\(y \)", ans_rule(5), ans_rule(5), ans_rule(5),$y3 ) . -endtable().$ECENTER; +endtable().$ECENTER; ########################### @@ -63,7 +63,7 @@ endtable().$ECENTER; BEGIN_PGML Complete the table of values for [` y = [$f] `]. -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* [@ $table @]*** END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Table_of_Values_2.pg b/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Table_of_Values_2.pg index 9385a2741f..5f3c69e5b2 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Table_of_Values_2.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Equations_of_Lines/Table_of_Values_2.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGgraders.pl" @@ -35,7 +35,7 @@ TEXT(beginproblem()); # Setup Context("Numeric"); -Context()->variables->add(y => "Real"); +Context()->variables->add(y => "Real"); $a = non_zero_random(-6, 6); $b = non_zero_random(-6, 6); @@ -59,7 +59,7 @@ $ans3 = Compute("($c-$b*$y3)/$a")->reduce; $table = $BCENTER.begintable(5) . row( "\(x \)", $x0, $x1, $x2, ans_rule(5) ) . row( "\(y \)", ans_rule(5), ans_rule(5), ans_rule(5),$y3 ) . -endtable().$ECENTER; +endtable().$ECENTER; ########################### @@ -67,7 +67,7 @@ endtable().$ECENTER; BEGIN_PGML Complete the table of values for [` [$left] = [$c] `]. -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* [@ $table @]*** END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Fractions/Add_Fractions_1.pg b/Contrib/CCCS/AlgebraicLiteracy/Fractions/Add_Fractions_1.pg index 0f05af8769..e3f1b162dd 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Fractions/Add_Fractions_1.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Fractions/Add_Fractions_1.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -54,7 +54,7 @@ Add the fractions. Make sure your answer is reduced to lowest terms. [`` \frac{[$a]}{[$b]} + \frac{[$c]}{[$d]}= ``] - Answer: [_______________]{$ans} [@ AnswerFormatHelp("numeric") @]* + Answer: [_______________]{$ans} [@ helpLink("numeric") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Fractions/Add_Fractions_2.pg b/Contrib/CCCS/AlgebraicLiteracy/Fractions/Add_Fractions_2.pg index e15c6b0c9e..9eaa2ea640 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Fractions/Add_Fractions_2.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Fractions/Add_Fractions_2.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -54,7 +54,7 @@ Add the fractions. Make sure your answer is reduced to lowest terms. [`` \frac{[$a]}{[$b]} + \frac{[$c]}{[$d]}= ``] - Answer: [_______________]{$ans} [@ AnswerFormatHelp("numeric") @]* + Answer: [_______________]{$ans} [@ helpLink("numeric") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Fractions/Add_Fractions_3.pg b/Contrib/CCCS/AlgebraicLiteracy/Fractions/Add_Fractions_3.pg index ecfb21ad1a..87dbda503d 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Fractions/Add_Fractions_3.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Fractions/Add_Fractions_3.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextRationalFunction.pl", @@ -64,7 +64,7 @@ Perform the indicated operation. Note that the denominators are different. Simpl >> [`` \frac{[$f1]}{[$f2]} + \frac{[$g1]}{[$g2]} ``] << -Answer: [_______________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +Answer: [_______________________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Fractions/Add_Fractions_4.pg b/Contrib/CCCS/AlgebraicLiteracy/Fractions/Add_Fractions_4.pg index 18ae819d83..db673f99aa 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Fractions/Add_Fractions_4.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Fractions/Add_Fractions_4.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextRationalFunction.pl", @@ -64,7 +64,7 @@ Perform the indicated operation. Note that the denominators are different. Simpl >> [`` \frac{[$f1]}{[$f2]} + \frac{[$g1]}{[$g2]} ``] << -Answer: [_______________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +Answer: [_______________________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Fractions/Divide_Fractions_1.pg b/Contrib/CCCS/AlgebraicLiteracy/Fractions/Divide_Fractions_1.pg index 7b18cc4ac5..246a67e768 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Fractions/Divide_Fractions_1.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Fractions/Divide_Fractions_1.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -54,7 +54,7 @@ Divide the fractions. Make sure your answer is reduced to lowest terms. [`` \frac{[$a]}{[$b]} \div \frac{[$c]}{[$d]}= ``] - Answer: [_______________]{$ans} [@ AnswerFormatHelp("numeric") @]* + Answer: [_______________]{$ans} [@ helpLink("numeric") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Fractions/Divide_Fractions_2.pg b/Contrib/CCCS/AlgebraicLiteracy/Fractions/Divide_Fractions_2.pg index 47d6d453cc..1ad218d1d0 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Fractions/Divide_Fractions_2.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Fractions/Divide_Fractions_2.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -54,7 +54,7 @@ Divide the fractions. Make sure your answer is reduced to lowest terms. [`` \frac{\dfrac{[$a]}{[$b]}}{\dfrac{[$c]}{[$d]}}= ``] - Answer: [_______________]{$ans} [@ AnswerFormatHelp("numeric") @]* + Answer: [_______________]{$ans} [@ helpLink("numeric") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Fractions/Divide_Fractions_3.pg b/Contrib/CCCS/AlgebraicLiteracy/Fractions/Divide_Fractions_3.pg index 8325c15eaf..7c226d047f 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Fractions/Divide_Fractions_3.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Fractions/Divide_Fractions_3.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -53,7 +53,7 @@ Divide. Make sure your answer is reduced to lowest terms. [`` \frac{[$c]}{\frac{[$a]}{[$b]}}= ``] - Answer: [_______________]{$ans} [@ AnswerFormatHelp("numeric") @]* + Answer: [_______________]{$ans} [@ helpLink("numeric") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Fractions/Divide_Fractions_4.pg b/Contrib/CCCS/AlgebraicLiteracy/Fractions/Divide_Fractions_4.pg index bb912e9974..eaffb4546f 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Fractions/Divide_Fractions_4.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Fractions/Divide_Fractions_4.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -54,7 +54,7 @@ Divide. Make sure your answer is reduced to lowest terms. [`` \frac{\frac{[$a]}{[$b]}}{[$c]}= ``] - Answer: [_______________]{$ans} [@ AnswerFormatHelp("numeric") @]* + Answer: [_______________]{$ans} [@ helpLink("numeric") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Fractions/Least_Common_Denom_1.pg b/Contrib/CCCS/AlgebraicLiteracy/Fractions/Least_Common_Denom_1.pg index 62391e09b5..59d4e52969 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Fractions/Least_Common_Denom_1.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Fractions/Least_Common_Denom_1.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -54,11 +54,11 @@ $ans=Compute("y*(y-$a)*(y+$a)"); BEGIN_PGML -Find the least common denominator (LCD) of the rational expressions: +Find the least common denominator (LCD) of the rational expressions: >> [`` \frac{[$f1]}{[$f2]}``] and [`` \frac{[$g1]}{[$g2]} ``] << -Answer: [_______________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +Answer: [_______________________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Fractions/Multiply_Fractions_1.pg b/Contrib/CCCS/AlgebraicLiteracy/Fractions/Multiply_Fractions_1.pg index 94e3476232..d8186a04e4 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Fractions/Multiply_Fractions_1.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Fractions/Multiply_Fractions_1.pg @@ -22,7 +22,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -55,7 +55,7 @@ Multiply the fractions. Make sure your answer is reduced to lowest terms. [`` \frac{[$a]}{[$b]} \cdot \frac{[$c]}{[$d]}= ``] - Answer: [_______________]{$ans} [@ AnswerFormatHelp("numeric") @]* + Answer: [_______________]{$ans} [@ helpLink("numeric") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Fractions/Multiply_Fractions_2.pg b/Contrib/CCCS/AlgebraicLiteracy/Fractions/Multiply_Fractions_2.pg index cfeb9398ec..c4416c813c 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Fractions/Multiply_Fractions_2.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Fractions/Multiply_Fractions_2.pg @@ -22,7 +22,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -59,7 +59,7 @@ Multiply the fractions. Make sure your answer is reduced to lowest terms. [`` \frac{[$e]}{[$b]} \times \frac{[$c]}{[$f]}= ``] - Answer: [_______________]{$ans} [@ AnswerFormatHelp("numeric") @]* + Answer: [_______________]{$ans} [@ helpLink("numeric") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Fractions/Multiply_Fractions_3.pg b/Contrib/CCCS/AlgebraicLiteracy/Fractions/Multiply_Fractions_3.pg index b89d96be53..6b4406792b 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Fractions/Multiply_Fractions_3.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Fractions/Multiply_Fractions_3.pg @@ -22,7 +22,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -61,7 +61,7 @@ Multiply the fractions. Make sure your answer is reduced to lowest terms. [`` \Big( \frac{[$a]}{[$e]} \Big) \Big( \frac{[$f]}{[$d]} \Big)= ``] - Answer: [_______________]{$ans} [@ AnswerFormatHelp("numeric") @]* + Answer: [_______________]{$ans} [@ helpLink("numeric") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Fractions/Multiply_Fractions_4.pg b/Contrib/CCCS/AlgebraicLiteracy/Fractions/Multiply_Fractions_4.pg index d70467c1e7..fec14046f7 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Fractions/Multiply_Fractions_4.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Fractions/Multiply_Fractions_4.pg @@ -22,7 +22,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -55,7 +55,7 @@ Multiply. Make sure your answer is reduced to lowest terms. [`` [$c] \Big( \frac{[$a]}{[$b]} \Big)= ``] - Answer: [_______________]{$ans} [@ AnswerFormatHelp("numeric") @]* + Answer: [_______________]{$ans} [@ helpLink("numeric") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Fractions/Simplify_Fractions_1.pg b/Contrib/CCCS/AlgebraicLiteracy/Fractions/Simplify_Fractions_1.pg index 8a959d059a..2591d22dea 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Fractions/Simplify_Fractions_1.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Fractions/Simplify_Fractions_1.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -58,7 +58,7 @@ Reduce the fraction to lowest terms. [`` \frac{[$e]}{[$f]}= ``] - Reduced Fraction: [_______________]{$ans} [@ AnswerFormatHelp("numeric") @]* + Reduced Fraction: [_______________]{$ans} [@ helpLink("numeric") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Fractions/Simplify_Fractions_2.pg b/Contrib/CCCS/AlgebraicLiteracy/Fractions/Simplify_Fractions_2.pg index 202431e47e..ec2e7c38f2 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Fractions/Simplify_Fractions_2.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Fractions/Simplify_Fractions_2.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -58,7 +58,7 @@ Reduce the fraction to lowest terms. [`` \frac{[$e]}{[$f]}= ``] - Reduced Fraction: [_______________]{$ans} [@ AnswerFormatHelp("numeric") @]* + Reduced Fraction: [_______________]{$ans} [@ helpLink("numeric") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Fractions/Simplify_Fractions_3.pg b/Contrib/CCCS/AlgebraicLiteracy/Fractions/Simplify_Fractions_3.pg index ce5244aacd..80db3c7f8a 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Fractions/Simplify_Fractions_3.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Fractions/Simplify_Fractions_3.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -58,7 +58,7 @@ Reduce the fraction to lowest terms. [`` \frac{[$e]}{[$f]}= ``] - Reduced Fraction: [_______________]{$ans} [@ AnswerFormatHelp("numeric") @]* + Reduced Fraction: [_______________]{$ans} [@ helpLink("numeric") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Fractions/Simplify_Fractions_4.pg b/Contrib/CCCS/AlgebraicLiteracy/Fractions/Simplify_Fractions_4.pg index c0328ad122..688fb05688 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Fractions/Simplify_Fractions_4.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Fractions/Simplify_Fractions_4.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -57,7 +57,7 @@ Reduce the fraction to lowest terms. [`` \frac{[$e]}{[$f]}= ``] - Reduced Fraction: [_______________]{$ans} [@ AnswerFormatHelp("numeric") @]* + Reduced Fraction: [_______________]{$ans} [@ helpLink("numeric") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Fractions/Simplify_Fractions_5.pg b/Contrib/CCCS/AlgebraicLiteracy/Fractions/Simplify_Fractions_5.pg index d0bc54b1bf..f6492c8ffc 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Fractions/Simplify_Fractions_5.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Fractions/Simplify_Fractions_5.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -58,7 +58,7 @@ Reduce the fraction to lowest terms. [`` \frac{[$e]}{[$f]}= ``] - Reduced Fraction: [_______________]{$ans} [@ AnswerFormatHelp("numeric") @]* + Reduced Fraction: [_______________]{$ans} [@ helpLink("numeric") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Fractions/Subtract_Fractions_1.pg b/Contrib/CCCS/AlgebraicLiteracy/Fractions/Subtract_Fractions_1.pg index bf3076aea7..dfab278b92 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Fractions/Subtract_Fractions_1.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Fractions/Subtract_Fractions_1.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -54,7 +54,7 @@ Subtract the fractions. Make sure your answer is reduced to lowest terms. [`` \frac{[$a]}{[$b]} - \frac{[$c]}{[$d]}= ``] - Answer: [_______________]{$ans} [@ AnswerFormatHelp("numeric") @]* + Answer: [_______________]{$ans} [@ helpLink("numeric") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Fractions/Subtract_Fractions_2.pg b/Contrib/CCCS/AlgebraicLiteracy/Fractions/Subtract_Fractions_2.pg index a893ec7820..b3c02446db 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Fractions/Subtract_Fractions_2.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Fractions/Subtract_Fractions_2.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -54,7 +54,7 @@ Subtract the fractions. Make sure your answer is reduced to lowest terms. [`` \frac{[$a]}{[$b]} - \frac{[$c]}{[$d]}= ``] - Answer: [_______________]{$ans} [@ AnswerFormatHelp("numeric") @]* + Answer: [_______________]{$ans} [@ helpLink("numeric") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_2.4/OpenStax_IA_2.4_244.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_2.4/OpenStax_IA_2.4_244.pg index 0d9db62bda..73164d900d 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_2.4/OpenStax_IA_2.4_244.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_2.4/OpenStax_IA_2.4_244.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextCurrency.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -53,9 +53,9 @@ BEGIN_PGML Liliana has [`[$t]`] in nickels and quarters in her backpack. She has [`[$e]`] more nickels than quarters. How many coins of each type does she have? -Number of nickels: [_________________]{$n} [@ AnswerFormatHelp("numbers") @]* +Number of nickels: [_________________]{$n} [@ helpLink("numbers") @]* -Number of quarters: [_________________]{$q} [@ AnswerFormatHelp("numbers") @]* +Number of quarters: [_________________]{$q} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_2.4/OpenStax_IA_2.4_248.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_2.4/OpenStax_IA_2.4_248.pg index 6996800093..777f6bc02a 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_2.4/OpenStax_IA_2.4_248.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_2.4/OpenStax_IA_2.4_248.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextCurrency.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -54,9 +54,9 @@ BEGIN_PGML Alison has [`[$t]`] in dimes and quarters. The number of quarters is [`[$e]`] more than [`4`] times the number of dimes. How many of each coin does she have? -Number of dimes: [_________________]{$d} [@ AnswerFormatHelp("numbers") @]* +Number of dimes: [_________________]{$d} [@ helpLink("numbers") @]* -Number of quarters: [_________________]{$q} [@ AnswerFormatHelp("numbers") @]* +Number of quarters: [_________________]{$q} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_2.4/OpenStax_IA_2.4_252.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_2.4/OpenStax_IA_2.4_252.pg index 76a96c9d0e..7842163f56 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_2.4/OpenStax_IA_2.4_252.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_2.4/OpenStax_IA_2.4_252.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextCurrency.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -55,9 +55,9 @@ BEGIN_PGML At the movie theater, the total value of tickets sold was [`[$t]`]. Adult tickets sold for [`$10`] each and senior/child tickets sold for [`$7.50`] each. The number of senior/child tickets sold was [`[$l]`] less than twice the number of adult tickets sold. How many senior/child tickets and how many adult tickets were sold? -Number of senior/child tickets: [_________________]{$s} [@ AnswerFormatHelp("numbers") @]* +Number of senior/child tickets: [_________________]{$s} [@ helpLink("numbers") @]* -Number of adult tickets: [_________________]{$a} [@ AnswerFormatHelp("numbers") @]* +Number of adult tickets: [_________________]{$a} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_2.4/OpenStax_IA_2.4_262.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_2.4/OpenStax_IA_2.4_262.pg index e9c9ace052..227c604280 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_2.4/OpenStax_IA_2.4_262.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_2.4/OpenStax_IA_2.4_262.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextCurrency.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -53,9 +53,9 @@ BEGIN_PGML Carmen wants to tile the floor of his house. He will need [$t] square feet of tile. He will do most of the floor with a tile that costs $1.50 per square foot, but also wants to use an accent tile that costs $9.00 per square foot. How many square feet of each tile should he plan to use if he wants the overall cost to be $3 per square foot? -Sqaure feet of majority: [_________________]{$m} [@ AnswerFormatHelp("numbers") @]* +Sqaure feet of majority: [_________________]{$m} [@ helpLink("numbers") @]* -Square feet of accent: [_________________]{$a} [@ AnswerFormatHelp("numbers") @]* +Square feet of accent: [_________________]{$a} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_2.4/OpenStax_IA_2.4_264.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_2.4/OpenStax_IA_2.4_264.pg index 1505264084..532fc29b43 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_2.4/OpenStax_IA_2.4_264.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_2.4/OpenStax_IA_2.4_264.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextCurrency.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -54,11 +54,11 @@ $n = Currency("$n"); BEGIN_PGML -Vartan was paid [$t] for a cell phone app that he wrote and wants to invest it to save for his son’s education. He wants to put some of the money into a bond that pays 4% annual interest and the rest into stocks that pay 9% annual interest. If he wants to earn 7.4% annual interest on the total amount, how much money should he invest in each account? Be sure to include the dollar sign in your answer. +Vartan was paid [$t] for a cell phone app that he wrote and wants to invest it to save for his son’s education. He wants to put some of the money into a bond that pays 4% annual interest and the rest into stocks that pay 9% annual interest. If he wants to earn 7.4% annual interest on the total amount, how much money should he invest in each account? Be sure to include the dollar sign in your answer. -Amount in 4% bond: [_________________]{$f} [@ AnswerFormatHelp("numbers") @]* +Amount in 4% bond: [_________________]{$f} [@ helpLink("numbers") @]* -Amount in 9% stocks: [_________________]{$n} [@ AnswerFormatHelp("numbers") @]* +Amount in 9% stocks: [_________________]{$n} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_2.4/OpenStax_IA_2.4_266.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_2.4/OpenStax_IA_2.4_266.pg index b7d05eecd7..19cd71c28a 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_2.4/OpenStax_IA_2.4_266.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_2.4/OpenStax_IA_2.4_266.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextCurrency.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -58,9 +58,9 @@ $y = Currency("$y"); BEGIN_PGML -Dominic pays [$a]% interest on his [$x] college loan and [$b]% interest on his [$y] car loan. What average interest rate does he pay on the total [$t] he owes? (Round your answer to the nearest hundredth of a percent.) +Dominic pays [$a]% interest on his [$x] college loan and [$b]% interest on his [$y] car loan. What average interest rate does he pay on the total [$t] he owes? (Round your answer to the nearest hundredth of a percent.) -Average interest rate: [_________________]{$av} % [@ AnswerFormatHelp("numbers") @]* +Average interest rate: [_________________]{$av} % [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_2.7/OpenStax_IA_2.7_438.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_2.7/OpenStax_IA_2.7_438.pg index c70d76e38e..e157fb2b79 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_2.7/OpenStax_IA_2.7_438.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_2.7/OpenStax_IA_2.7_438.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -57,10 +57,10 @@ $m2 = -$n - $d; # Main text BEGIN_PGML -Solve [`[$f]=[$a] `]. If there is more than one correct answer, enter a comma +Solve [`[$f]=[$a] `]. If there is more than one correct answer, enter a comma separated list. If there is no solution, enter NONE. -[`x=`] [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_________________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_2.7/OpenStax_IA_2.7_441.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_2.7/OpenStax_IA_2.7_441.pg index 120b05d9a1..ce2847fb73 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_2.7/OpenStax_IA_2.7_441.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_2.7/OpenStax_IA_2.7_441.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl" @@ -58,10 +58,10 @@ $m2 = $n - $d; # Main text BEGIN_PGML -Solve [`[$f]=[$a] `]. If there is more than one correct answer, enter a comma +Solve [`[$f]=[$a] `]. If there is more than one correct answer, enter a comma separated list. If there is no solution, enter NONE. -[`x=`] [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_________________]{$ans} [@ helpLink("numbers") @]* @@ -80,7 +80,7 @@ Both -[$n] and [$n] have an absolute value of [$n], so there are two solutions. [`[$c]x + [$d] = -[$n]`] and [`[$c]x + [$d] = [$n]`] -Subtract [$d] from both sides and divide by [$c]. +Subtract [$d] from both sides and divide by [$c]. [`[$c]x = [$m1]`] and [`[$c]x = [$m2]`] diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_2.7/OpenStax_IA_2.7_443.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_2.7/OpenStax_IA_2.7_443.pg index 2c39c643e6..1ccc33b8ca 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_2.7/OpenStax_IA_2.7_443.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_2.7/OpenStax_IA_2.7_443.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl" @@ -58,10 +58,10 @@ $RHS2 = $m - $c; # Main text BEGIN_PGML -Solve [`[$f]=[$e] `]. If there is more than one correct answer, enter a comma +Solve [`[$f]=[$e] `]. If there is more than one correct answer, enter a comma separated list. If there is no solution, enter NONE. -[`x=`] [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_________________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_2.7/OpenStax_IA_2.7_447.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_2.7/OpenStax_IA_2.7_447.pg index ac052723f8..42a33f2b4b 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_2.7/OpenStax_IA_2.7_447.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_2.7/OpenStax_IA_2.7_447.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl" @@ -58,10 +58,10 @@ $RHS2 = $m - $c; # Main text BEGIN_PGML -Solve [`[$f]=[$e] `]. If there is more than one correct answer, enter a comma +Solve [`[$f]=[$e] `]. If there is more than one correct answer, enter a comma separated list. If there is no solution, enter NONE. -[`x=`] [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_________________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_2.7/OpenStax_IA_2.7_449.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_2.7/OpenStax_IA_2.7_449.pg index 04c037af6a..9eb1a7dbc1 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_2.7/OpenStax_IA_2.7_449.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_2.7/OpenStax_IA_2.7_449.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -53,10 +53,10 @@ $RHS = $a - $b; # Main text BEGIN_PGML -Solve [`[$f]=[$a] `]. If there is more than one correct answer, enter a comma +Solve [`[$f]=[$a] `]. If there is more than one correct answer, enter a comma separated list. If there is no solution, enter NONE. -[`x=`] [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_________________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_2.7/OpenStax_IA_2.7_451.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_2.7/OpenStax_IA_2.7_451.pg index a90f793c0a..a8f4593079 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_2.7/OpenStax_IA_2.7_451.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_2.7/OpenStax_IA_2.7_451.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -49,10 +49,10 @@ $RHS = $a - $b; # Main text BEGIN_PGML -Solve [`\mid \frac{1}{[$c]}x + [$d] \mid + [$b] =[$a] `]. If there is more than one correct answer, enter a comma +Solve [`\mid \frac{1}{[$c]}x + [$d] \mid + [$b] =[$a] `]. If there is more than one correct answer, enter a comma separated list. If there is no solution, enter NONE. -[`x=`] [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_________________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_3.5/OpenStax_IA_3.5_330.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_3.5/OpenStax_IA_3.5_330.pg index 69d82edadb..0f37d1e49a 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_3.5/OpenStax_IA_3.5_330.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_3.5/OpenStax_IA_3.5_330.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGchoicemacros.pl", diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_3.5/OpenStax_IA_3.5_331.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_3.5/OpenStax_IA_3.5_331.pg index ef103c9c6e..b3c948a6dc 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_3.5/OpenStax_IA_3.5_331.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_3.5/OpenStax_IA_3.5_331.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGchoicemacros.pl", @@ -64,7 +64,7 @@ The daily cost to the printing company to print a book is modeled by the functio [`C([$i]) = `][______]{$ans2} -Explain your results by writing two sentences: one to explain what [`C(0)`] is telling you and the other to explain what [`C([$i])`] is telling you: +Explain your results by writing two sentences: one to explain what [`C(0)`] is telling you and the other to explain what [`C([$i])`] is telling you: [@ essay_box(8,60) @]* diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_3.5/OpenStax_IA_3.5_Functions1.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_3.5/OpenStax_IA_3.5_Functions1.pg index 230191b26f..2b3814ce52 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_3.5/OpenStax_IA_3.5_Functions1.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_3.5/OpenStax_IA_3.5_Functions1.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -69,15 +69,15 @@ $ans5=Formula("$b*(a+$k)**2+$c")->reduce; BEGIN_PGML Evaluate [`f(x)=[$f]`] at the following values: -+ [`f([$d])=`] [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* ++ [`f([$d])=`] [_______________]{$ans1} [@ helpLink("numbers") @]* -+ [`f([$e])=`] [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* ++ [`f([$e])=`] [_______________]{$ans2} [@ helpLink("numbers") @]* -+ [`f(a)=`] [_______________]{$ans3} [@ AnswerFormatHelp("formulas") @]* ++ [`f(a)=`] [_______________]{$ans3} [@ helpLink("formulas") @]* -+ [`f([$k]a)=`] [_______________]{$ans4} [@ AnswerFormatHelp("formulas") @]* ++ [`f([$k]a)=`] [_______________]{$ans4} [@ helpLink("formulas") @]* -+ [`f(a + [$k])=`] [_______________]{$ans5} [@ AnswerFormatHelp("formulas") @]* ++ [`f(a + [$k])=`] [_______________]{$ans5} [@ helpLink("formulas") @]* END_PGML @@ -103,7 +103,7 @@ BEGIN_PGML_SOLUTION [`= [$ans2]`] -+ [`f(a)=`] ++ [`f(a)=`] [`=[$ans3]`] diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_3.5/OpenStax_IA_3.5_Functions2.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_3.5/OpenStax_IA_3.5_Functions2.pg index 2ac2ca7c41..86ed69cbad 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_3.5/OpenStax_IA_3.5_Functions2.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_3.5/OpenStax_IA_3.5_Functions2.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -59,11 +59,11 @@ $ans3 = Formula("-$b*p**2 + $c*p")->reduce; BEGIN_PGML Evaluate [`f(x)=[$f]`] at the following values: -+ [`f([$d])=`] [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* ++ [`f([$d])=`] [_______________]{$ans1} [@ helpLink("numbers") @]* -+ [`f([$e])=`] [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* ++ [`f([$e])=`] [_______________]{$ans2} [@ helpLink("numbers") @]* -+ [`f(p)=`] [_______________]{$ans3} [@ AnswerFormatHelp("formulas") @]* ++ [`f(p)=`] [_______________]{$ans3} [@ helpLink("formulas") @]* END_PGML @@ -90,7 +90,7 @@ BEGIN_PGML_SOLUTION [`= [$ans2]`] -+ [`f(p)=`] ++ [`f(p)=`] [`=[$ans3]`] diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_3.6/OpenStax_IA_3.6_341.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_3.6/OpenStax_IA_3.6_341.pg index 7057ac592a..85db3adf5d 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_3.6/OpenStax_IA_3.6_341.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_3.6/OpenStax_IA_3.6_341.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -49,9 +49,9 @@ BEGIN_PGML Find the domain and range of [` f(x)=[$f] `]. Enter your solution in interval notation. -Domain: [_______________]{$ans} [@ AnswerFormatHelp("intervals") @]* +Domain: [_______________]{$ans} [@ helpLink("intervals") @]* -Range: [_______________]{$ans} [@ AnswerFormatHelp("intervals") @]* +Range: [_______________]{$ans} [@ helpLink("intervals") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_3.6/OpenStax_IA_3.6_373.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_3.6/OpenStax_IA_3.6_373.pg index e362f2174e..1683bfe94b 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_3.6/OpenStax_IA_3.6_373.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_3.6/OpenStax_IA_3.6_373.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -49,7 +49,7 @@ BEGIN_PGML Find the domain of [` f(x)=[$f] `]. Enter your solution in interval notation. -[_______________]{$ans} [@ AnswerFormatHelp("intervals") @]* +[_______________]{$ans} [@ helpLink("intervals") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_3.6/OpenStax_IA_3.6_379.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_3.6/OpenStax_IA_3.6_379.pg index 22ba071d09..eb8083e883 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_3.6/OpenStax_IA_3.6_379.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_3.6/OpenStax_IA_3.6_379.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserPopUp.pl", "PGML.pl", @@ -90,7 +90,7 @@ BEGIN_TEXT $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>400,height=>400,tex_size=>800 ) \} $BR (Click on graph to enlarge) @@ -103,15 +103,15 @@ Context()->normalStrings; BEGIN_PGML Use the graph to find the following. Give the domain and range in interval notation. -(a) [`f([$x1]) = `] [_______________]{$y1} [@ AnswerFormatHelp("numbers") @]* +(a) [`f([$x1]) = `] [_______________]{$y1} [@ helpLink("numbers") @]* -(b) [`f([$x2]) = `] [_______________]{$y2} [@ AnswerFormatHelp("numbers") @]* +(b) [`f([$x2]) = `] [_______________]{$y2} [@ helpLink("numbers") @]* -(c) [`f([$x3]) = `] [_______________]{$y3} [@ AnswerFormatHelp("numbers") @]* +(c) [`f([$x3]) = `] [_______________]{$y3} [@ helpLink("numbers") @]* -(d) Find the domain. Write it in interval notation. [________]{$domain} [@ AnswerFormatHelp("intervals") @]* +(d) Find the domain. Write it in interval notation. [________]{$domain} [@ helpLink("intervals") @]* -(e) Find the range. Write it in interval notation. [________]{$range} [@ AnswerFormatHelp("intervals") @]* +(e) Find the range. Write it in interval notation. [________]{$range} [@ helpLink("intervals") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_3.6/OpenStax_IA_3.6_383.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_3.6/OpenStax_IA_3.6_383.pg index 68558e2d6e..f91bb9e84b 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_3.6/OpenStax_IA_3.6_383.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_3.6/OpenStax_IA_3.6_383.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserPopUp.pl", "PGML.pl", @@ -83,7 +83,7 @@ BEGIN_TEXT $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>400,height=>400,tex_size=>800 ) \} $BR (Click on graph to enlarge) @@ -94,13 +94,13 @@ END_TEXT Context()->normalStrings; BEGIN_PGML -Use the graph to find the following. +Use the graph to find the following. -(a) [`f(0) = `] [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +(a) [`f(0) = `] [_______________]{$ans1} [@ helpLink("numbers") @]* -(b) [`f([$a2]) = `] [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +(b) [`f([$a2]) = `] [_______________]{$ans2} [@ helpLink("numbers") @]* -(c) [`f([$a3]) = `] [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +(c) [`f([$a3]) = `] [_______________]{$ans2} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_3.6/OpenStax_IA_3.6_385.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_3.6/OpenStax_IA_3.6_385.pg index 7955215483..5bf2bd8ec2 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_3.6/OpenStax_IA_3.6_385.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_3.6/OpenStax_IA_3.6_385.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserPopUp.pl", "PGML.pl", @@ -80,7 +80,7 @@ BEGIN_TEXT $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>400,height=>400,tex_size=>800 ) \} $BR (Click on graph to enlarge) @@ -93,15 +93,15 @@ Context()->normalStrings; BEGIN_PGML Use the graph to find the following. Give the domain and range in interval notation. -(a) [`f(0) = `] [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +(a) [`f(0) = `] [_______________]{$ans1} [@ helpLink("numbers") @]* -(b) [`f(-[$a]) = `] [_______________]{$b} [@ AnswerFormatHelp("numbers") @]* +(b) [`f(-[$a]) = `] [_______________]{$b} [@ helpLink("numbers") @]* -(c) [`f([$a]) = `] [_______________]{$b} [@ AnswerFormatHelp("numbers") @]* +(c) [`f([$a]) = `] [_______________]{$b} [@ helpLink("numbers") @]* -(d) Find the domain. Write it in interval notation. [________]{$domain} [@ AnswerFormatHelp("intervals") @]* +(d) Find the domain. Write it in interval notation. [________]{$domain} [@ helpLink("intervals") @]* -(e) Find the range. Write it in interval notation. [________]{$range} [@ AnswerFormatHelp("intervals") @]* +(e) Find the range. Write it in interval notation. [________]{$range} [@ helpLink("intervals") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_4.1/OpenStax_IA_4.1_30.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_4.1/OpenStax_IA_4.1_30.pg index 6014d662b9..5f857c5f3a 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_4.1/OpenStax_IA_4.1_30.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_4.1/OpenStax_IA_4.1_30.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -79,11 +79,11 @@ $Combine = Formula("$Coeff*y +$m*$d")->reduce; # Main text BEGIN_PGML -Solve the system using the substitution method. +Solve the system using the substitution method. ->>[` [$f] = [$d] `]<< +>>[` [$f] = [$d] `]<< >>[` [$g] = [$p] `]<< - + Select the number of solutions. If there is one solution, enter it as a point (a, b), in the answer blank. [@ $radio->buttons() @]* diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_4.1/OpenStax_IA_4.1_31.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_4.1/OpenStax_IA_4.1_31.pg index 934d717226..73adca2568 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_4.1/OpenStax_IA_4.1_31.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_4.1/OpenStax_IA_4.1_31.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -85,11 +85,11 @@ $LHS = Compute("$p - $n*$d/$c"); # Main text BEGIN_PGML -Solve the system using the substitution method. +Solve the system using the substitution method. ->>[` [$f] = [$d] `]<< +>>[` [$f] = [$d] `]<< >>[` [$g] = [$p] `]<< - + Select the number of solutions. If there is one solution, enter it as a point (a, b), in the answer blank. [@ $radio->buttons() @]* diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_4.1/OpenStax_IA_4.1_32.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_4.1/OpenStax_IA_4.1_32.pg index bcf713f725..7cdaf74a52 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_4.1/OpenStax_IA_4.1_32.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_4.1/OpenStax_IA_4.1_32.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -87,11 +87,11 @@ $LHS = Compute("$p - $n*$d/$c"); # Main text BEGIN_PGML -Solve the system using the substitution method. +Solve the system using the substitution method. ->>[` [$f] = [$d] `]<< +>>[` [$f] = [$d] `]<< >>[` [$g] = [$p] `]<< - + Select the number of solutions. If there is one solution, enter it as a point (a, b), in the answer blank. [@ $radio->buttons() @]* diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_4.1/OpenStax_IA_4.1_33.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_4.1/OpenStax_IA_4.1_33.pg index 35171ff575..8f5f5ba1d5 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_4.1/OpenStax_IA_4.1_33.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_4.1/OpenStax_IA_4.1_33.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -84,11 +84,11 @@ $LHS = Compute("$p - $n*$d"); # Main text BEGIN_PGML -Solve the system using the substitution method. +Solve the system using the substitution method. ->>[` [$f] = [$d] `]<< +>>[` [$f] = [$d] `]<< >>[` [$g] = [$p] `]<< - + Select the number of solutions. If there is one solution, enter it as a point (a, b), in the answer blank. [@ $radio->buttons() @]* diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_4.1/OpenStax_IA_4.1_34.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_4.1/OpenStax_IA_4.1_34.pg index b902cc4077..687758f20c 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_4.1/OpenStax_IA_4.1_34.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_4.1/OpenStax_IA_4.1_34.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -85,11 +85,11 @@ $LHS = Compute("$p - $n*$d"); # Main text BEGIN_PGML -Solve the system using the substitution method. +Solve the system using the substitution method. ->>[` y = [$f] `]<< +>>[` y = [$f] `]<< >>[` [$g] = [$p] `]<< - + Select the number of solutions. If there is one solution, enter it as a point (a, b), in the answer blank. [@ $radio->buttons() @]* diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_4.1/OpenStax_IA_4.1_40.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_4.1/OpenStax_IA_4.1_40.pg index 45299dc111..be73bef356 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_4.1/OpenStax_IA_4.1_40.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_4.1/OpenStax_IA_4.1_40.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -71,12 +71,12 @@ last => ["There is one solution at"], # can be a list # Main text BEGIN_PGML -Solve the system using the substitution method. +Solve the system using the substitution method. ->>[`` \frac{[$r]}{3}x+\frac{[$c]}{3}y = [$d] ``]<< +>>[`` \frac{[$r]}{3}x+\frac{[$c]}{3}y = [$d] ``]<< >>[`` \frac{[$m]}{5}x+\frac{[$n]}{5}y = [$p] ``]<< - + Select the number of solutions. If there is one solution, enter it as a point (a, b), in the answer blank. [@ $radio->buttons() @]* diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_4.1/OpenStax_IA_4.1_41.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_4.1/OpenStax_IA_4.1_41.pg index e3ebe2cbf5..334e6f06a5 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_4.1/OpenStax_IA_4.1_41.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_4.1/OpenStax_IA_4.1_41.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -67,8 +67,8 @@ $ans = String(""); BEGIN_PGML Solve the system using the method of substitution. - ->>[`` \frac{[$a]}{2}x-\frac{[$b]}{2}y = [$c2] ``]<< + +>>[`` \frac{[$a]}{2}x-\frac{[$b]}{2}y = [$c2] ``]<< >>[`` -\frac{[$da]}{4}x+\frac{[$db]}{4}y = -[$dc] ``]<< diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_4.1/OpenStax_IA_4.1_44.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_4.1/OpenStax_IA_4.1_44.pg index ad79f0e667..7e7db71d3d 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_4.1/OpenStax_IA_4.1_44.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_4.1/OpenStax_IA_4.1_44.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -66,12 +66,12 @@ $ans = String(""); # Main text BEGIN_PGML -Solve the system using the substitution method. +Solve the system using the substitution method. ->>[` [$f] = [$c] `]<< +>>[` [$f] = [$c] `]<< >>[` [$g] = [$multc] `]<< - + Select the number of solutions. If there is one solution, enter it as a point (a, b), in the answer blank. [___]{$radio} diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_4.1/OpenStax_IA_4.1_47.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_4.1/OpenStax_IA_4.1_47.pg index 7c555152a1..655e1977b5 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_4.1/OpenStax_IA_4.1_47.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_4.1/OpenStax_IA_4.1_47.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -73,11 +73,11 @@ last => ["There is one solution at"], # can be a list # Main text BEGIN_PGML -Solve the system using the elimination method. +Solve the system using the elimination method. ->>[` [$f] = [$d] `]<< +>>[` [$f] = [$d] `]<< >>[` [$g] = [$p] `]<< - + Select the number of solutions. If there is one solution, enter it as a point (a, b), in the answer blank. [@ $radio->buttons() @]* diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_4.1/OpenStax_IA_4.1_48.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_4.1/OpenStax_IA_4.1_48.pg index 8e3bd7802a..f8d054874e 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_4.1/OpenStax_IA_4.1_48.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_4.1/OpenStax_IA_4.1_48.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -74,11 +74,11 @@ last => ["There is one solution at"], # can be a list # Main text BEGIN_PGML -Solve the system using the elimination method. +Solve the system using the elimination method. ->>[` [$f] = [$d] `]<< +>>[` [$f] = [$d] `]<< >>[` [$g] = [$p] `]<< - + Select the number of solutions. If there is one solution, enter it as a point (a, b), in the answer blank. [@ $radio->buttons() @]* diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_4.1/OpenStax_IA_4.1_49.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_4.1/OpenStax_IA_4.1_49.pg index b7d4496fe2..895f6209ed 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_4.1/OpenStax_IA_4.1_49.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_4.1/OpenStax_IA_4.1_49.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -74,11 +74,11 @@ last => ["There is one solution at"], # can be a list # Main text BEGIN_PGML -Solve the system using the elimination method. +Solve the system using the elimination method. ->>[` [$f] = [$d] `]<< +>>[` [$f] = [$d] `]<< >>[` [$g] = [$p] `]<< - + Select the number of solutions. If there is one solution, enter it as a point (a, b), in the answer blank. [@ $radio->buttons() @]* diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_4.1/OpenStax_IA_4.1_5.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_4.1/OpenStax_IA_4.1_5.pg index 446076606c..13c583cdcb 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_4.1/OpenStax_IA_4.1_5.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_4.1/OpenStax_IA_4.1_5.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -81,7 +81,7 @@ BEGIN_TEXT $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>400,height=>400,tex_size=>800 ) \} $BR (Click on graph to enlarge) @@ -96,7 +96,7 @@ Context()->normalStrings; BEGIN_PGML A linear system is shown in the graph above. Use the graph to find the solution of the system. -The solution to the system is: [_______________]{$ans} [@ AnswerFormatHelp("points") @]* +The solution to the system is: [_______________]{$ans} [@ helpLink("points") @]* diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_4.1/OpenStax_IA_4.1_50.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_4.1/OpenStax_IA_4.1_50.pg index 47f1827369..b199b2e625 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_4.1/OpenStax_IA_4.1_50.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_4.1/OpenStax_IA_4.1_50.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -74,11 +74,11 @@ last => ["There is one solution at"], # can be a list # Main text BEGIN_PGML -Solve the system using the elimination method. +Solve the system using the elimination method. ->>[` [$f] = [$d] `]<< +>>[` [$f] = [$d] `]<< >>[` [$g] = [$p] `]<< - + Select the number of solutions. If there is one solution, enter it as a point (a, b), in the answer blank. [@ $radio->buttons() @]* diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_4.1/OpenStax_IA_4.1_51.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_4.1/OpenStax_IA_4.1_51.pg index 53a2e6aa5b..a7e48526a5 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_4.1/OpenStax_IA_4.1_51.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_4.1/OpenStax_IA_4.1_51.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -76,11 +76,11 @@ last => ["There is one solution at"], # can be a list # Main text BEGIN_PGML -Solve the system using the elimination method. +Solve the system using the elimination method. ->>[` [$f] = [$d] `]<< +>>[` [$f] = [$d] `]<< >>[` [$g] = [$p] `]<< - + Select the number of solutions. If there is one solution, enter it as a point (a, b), in the answer blank. [@ $radio->buttons() @]* diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_4.1/OpenStax_IA_4.1_56.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_4.1/OpenStax_IA_4.1_56.pg index e59877f77f..f7b44818d9 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_4.1/OpenStax_IA_4.1_56.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_4.1/OpenStax_IA_4.1_56.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -86,14 +86,14 @@ last => ["There is one solution at"], # can be a list # Main text BEGIN_PGML -Solve the system using the elimination method. +Solve the system using the elimination method. ->>[`` [$a1]x+[$b1]y = [$c1] ``]<< +>>[`` [$a1]x+[$b1]y = [$c1] ``]<< >>[` [$g] = [$p] `]<< - + Select the number of solutions. If there is one solution, enter it as a point (a, b), in the answer blank. [@ $radio->buttons() @]* diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_4.1/OpenStax_IA_4.1_57.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_4.1/OpenStax_IA_4.1_57.pg index 87e722f0f6..ca63a7deb2 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_4.1/OpenStax_IA_4.1_57.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_4.1/OpenStax_IA_4.1_57.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -66,12 +66,12 @@ $ans = String(""); # Main text BEGIN_PGML -Solve the system using the elimination method. +Solve the system using the elimination method. ->>[` [$f] = [$c] `]<< +>>[` [$f] = [$c] `]<< >>[` [$g] = [$multc] `]<< - + Select the number of solutions. If there is one solution, enter it as a point (a, b), in the answer blank. [____]{$radio} diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_4.1/OpenStax_IA_4.1_6.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_4.1/OpenStax_IA_4.1_6.pg index 1fa9c21b30..197076ebee 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_4.1/OpenStax_IA_4.1_6.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_4.1/OpenStax_IA_4.1_6.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -83,7 +83,7 @@ add_functions($gr[3], for $i (0..3) { - plot_functions( $gr[$i], $f[$i]); + plot_functions( $gr[$i], $f[$i]); $fig[$i]=image(insertGraph($gr[$i]), width=>200,height=>200,tex_size=>450); } @@ -105,7 +105,7 @@ row( A, B) . row( $fig[0], $fig[1]) . row( C, D) . row($fig[2], $fig[3]) . -endtable().$ECENTER; +endtable().$ECENTER; #done with graphs @@ -121,7 +121,7 @@ $ans = List( Point("($a,$b)")); BEGIN_PGML Solve the system by graphing. ->>[` [$h] = [$d] `]<< +>>[` [$h] = [$d] `]<< >>[` [$g] = [$p] `]<< Select the image that best matches your graph the system. @@ -130,7 +130,7 @@ Select the image that best matches your graph the system. The image that matches my graphs is: [_____]{$popup} -The solution to the system is: [_______________]{$ans} [@ AnswerFormatHelp("points") @]* +The solution to the system is: [_______________]{$ans} [@ helpLink("points") @]* diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_4.1/OpenStax_IA_4.1_61.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_4.1/OpenStax_IA_4.1_61.pg index ab2a04bd20..686dfc4e82 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_4.1/OpenStax_IA_4.1_61.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_4.1/OpenStax_IA_4.1_61.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -68,12 +68,12 @@ $ans = ""; # Main text BEGIN_PGML -Solve the system using the elimination method. +Solve the system using the elimination method. ->>[` [$f] = [$c] `]<< +>>[` [$f] = [$c] `]<< >>[` [$g] = [$dc] `]<< - + Select the number of solutions. If there is one solution, enter it as a point (a, b), in the answer blank. [____]{$radio} diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_4.2/OpenStax_IA_4.2_109.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_4.2/OpenStax_IA_4.2_109.pg index fe4391d6f5..cf88c34c43 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_4.2/OpenStax_IA_4.2_109.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_4.2/OpenStax_IA_4.2_109.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,9 +51,9 @@ $RHS = $total + $n; BEGIN_PGML Darrin is hanging [`[$total]`] feet of holiday garland on the three sides of fencing that enclose his front yard. The length is [`[$n]`] feet less than three times the width. Find the length and width of his yard. -Width: [_______________]{$ans1} feet [@ AnswerFormatHelp("numbers") @]* +Width: [_______________]{$ans1} feet [@ helpLink("numbers") @]* -Length: [_______________]{$ans2} feet [@ AnswerFormatHelp("numbers") @]* +Length: [_______________]{$ans2} feet [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_4.2/OpenStax_IA_4.2_112.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_4.2/OpenStax_IA_4.2_112.pg index a4263fb131..3d37bf9288 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_4.2/OpenStax_IA_4.2_112.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_4.2/OpenStax_IA_4.2_112.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl" @@ -60,7 +60,7 @@ $RHS = $n*$s1; BEGIN_PGML Sarah left Minneapolis heading east on the interstate at a speed of [`[$s1]`] mph. Her sister followed her on the same route, leaving [`[$n]`] hours later and driving at a rate of [`[$s2]`] mph. How long will it take for Sarah's sister to catch up to Sarah? (Round to the nearest tenth.) -Time needed to catch up: [_______________]{$ans1} hours [@ AnswerFormatHelp("numbers") @]* +Time needed to catch up: [_______________]{$ans1} hours [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_4.2/OpenStax_IA_4.2_116.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_4.2/OpenStax_IA_4.2_116.pg index f4dd32993a..66ab21fb11 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_4.2/OpenStax_IA_4.2_116.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_4.2/OpenStax_IA_4.2_116.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -55,9 +55,9 @@ $RHS = 5*$m; BEGIN_PGML The Jones family took a [`[$m]`] mile canoe ride down the Indian river in two hours. After lunch the return trip back up the river took three hours. Find the rate of the canoe in still water and the rate of the current. -Rate of the canoe in still water: [_______________]{$ans1} mph [@ AnswerFormatHelp("numbers") @]* +Rate of the canoe in still water: [_______________]{$ans1} mph [@ helpLink("numbers") @]* -Rate of the current: [_______________]{$ans2} mph [@ AnswerFormatHelp("numbers") @]* +Rate of the current: [_______________]{$ans2} mph [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_4.2/OpenStax_IA_4.2_120.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_4.2/OpenStax_IA_4.2_120.pg index 83f1dedaf8..98adc1a7d1 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_4.2/OpenStax_IA_4.2_120.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_4.2/OpenStax_IA_4.2_120.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -55,9 +55,9 @@ $RHS = $miles1 + $miles2; BEGIN_PGML A small jet can fly [`[$miles1]`] miles in [`[$t]`] hours with a tailwind but only [`[$miles2]`] miles into a headwind. Find the speed of the jet in still air and the speed of the wind. -Speed of the jet in still air: [_______________]{$jet} mph [@ AnswerFormatHelp("numbers") @]* +Speed of the jet in still air: [_______________]{$jet} mph [@ helpLink("numbers") @]* -Speed of the wind: [_______________]{$wind} mph [@ AnswerFormatHelp("numbers") @]* +Speed of the wind: [_______________]{$wind} mph [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_4.2/OpenStax_IA_4.2_73.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_4.2/OpenStax_IA_4.2_73.pg index 10abadf3f5..4a292a7f88 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_4.2/OpenStax_IA_4.2_73.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_4.2/OpenStax_IA_4.2_73.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,9 +50,9 @@ $RHS = Compute("$sum + $n"); # Main text BEGIN_PGML -The sum of two numbers is [`[$sum]`]. One number is [`[$n]`] less than the other number. Enter the numbers as a comma separated list. +The sum of two numbers is [`[$sum]`]. One number is [`[$n]`] less than the other number. Enter the numbers as a comma separated list. -Numbers: [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +Numbers: [_______________]{$ans1} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_4.2/OpenStax_IA_4.2_81.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_4.2/OpenStax_IA_4.2_81.pg index 9280704f84..92f9642ae9 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_4.2/OpenStax_IA_4.2_81.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_4.2/OpenStax_IA_4.2_81.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -58,7 +58,7 @@ $RHS = Compute("$base2 - $base1"); BEGIN_PGML Jackie has been offered positions by two cable companies. The first company pays a salary of [`$[$base1]`] and a commission of [`$[$comm1]`] for each cable package sold. The second pays a salary of [`$[$base2]`] plus a commission of [`$[$comm2]`] for each package sold. How many cable packages would need to be sold to make the total pay the same? -Number of Cable Packages: [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +Number of Cable Packages: [_______________]{$ans1} [@ helpLink("numbers") @]* @@ -69,7 +69,7 @@ END_PGML # Solution BEGIN_PGML_SOLUTION -Let y = total salary and x = number of cable packages sold. +Let y = total salary and x = number of cable packages sold. Then the first company's salary with x packages sold is: diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_4.2/OpenStax_IA_4.2_85.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_4.2/OpenStax_IA_4.2_85.pg index 3e50f55256..69de2e1042 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_4.2/OpenStax_IA_4.2_85.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_4.2/OpenStax_IA_4.2_85.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,9 +51,9 @@ $Coeff = $n + 1; BEGIN_PGML June needs [`[$total]`] gallons of punch for a party and has two different coolers to carry it in. The bigger coolers is [`[$n]`] times larger than the smaller cooler. How many gallons can each cooler hold? -Number of gallons in smaller cooler: [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +Number of gallons in smaller cooler: [_______________]{$ans1} [@ helpLink("numbers") @]* -Number of gallons in larger cooler: [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +Number of gallons in larger cooler: [_______________]{$ans2} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_4.2/OpenStax_IA_4.2_86.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_4.2/OpenStax_IA_4.2_86.pg index afb37d81dc..09c17f4e45 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_4.2/OpenStax_IA_4.2_86.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_4.2/OpenStax_IA_4.2_86.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -73,9 +73,9 @@ $RHS = Compute("$j1*$cal1 + $j2*$cal2"); BEGIN_PGML Shelly spent [`[$jog1]`] minutes jogging and [`[$bike1]`] minutes cycling and burned [`[$cal1]`] calories. The next day, she spent [`[$jog2]`] minutes jogging and [`[$bike2]`] minutes cycling and burned [`[$cal2]`] calories. How many calories were burned for each minute of jogging and how many for each minute of cycling? -Number of cal/min burned jogging: [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +Number of cal/min burned jogging: [_______________]{$ans1} [@ helpLink("numbers") @]* -Number of cal/min burned cycling: [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +Number of cal/min burned cycling: [_______________]{$ans2} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_4.2/OpenStax_IA_4.2_88.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_4.2/OpenStax_IA_4.2_88.pg index eadf45c1c8..c4c99f8174 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_4.2/OpenStax_IA_4.2_88.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_4.2/OpenStax_IA_4.2_88.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -70,9 +70,9 @@ $RHS = Compute("$Lthumb*$Ttotal - $Tthumb*$Ltotal"); BEGIN_PGML Troy and Lisa were shopping for school supplies. Troy bought [`[$Tnote]`] notebooks and [`[$Tthumb]`] thumb drives for [`$[$Ttotal]`]. Lisa bought [`[$Lnote]`] notebooks and [`[$Lthumb]`] thumb drives for [`$[$Ltotal]`]. Find the cost of each notebook and the cost of each thumb drive. -Cost of a notebook: $[_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +Cost of a notebook: $[_______________]{$ans1} [@ helpLink("numbers") @]* -Cost of a thumb drive: $[_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +Cost of a thumb drive: $[_______________]{$ans2} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_4.2/OpenStax_IA_4.2_92.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_4.2/OpenStax_IA_4.2_92.pg index 7138825c08..8ce5f85ca1 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_4.2/OpenStax_IA_4.2_92.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_4.2/OpenStax_IA_4.2_92.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -70,7 +70,7 @@ $RHS = Compute("$c2*$T1 - $T2*$c1"); BEGIN_PGML The total amount of sodium in [`[$h1]`] hot dogs and [`[$c1]`] cups of cottage cheese is [`[$T1]`] mg. The amount in [`[$h2]`] hot dogs and [`[$c2]`] cups of cottage cheese is [`[$T2]`] mg. How much sodium is in a hot dog? -Amount of sodium in a hot dog: [_______________]{$ans1}mg [@ AnswerFormatHelp("numbers") @]* +Amount of sodium in a hot dog: [_______________]{$ans1}mg [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_4.2/OpenStax_IA_4.2_95.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_4.2/OpenStax_IA_4.2_95.pg index 5e76c84411..0825e90bf5 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_4.2/OpenStax_IA_4.2_95.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_4.2/OpenStax_IA_4.2_95.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -66,11 +66,11 @@ $Coeff = $n + 1; # Main text BEGIN_PGML -Owen is making lemonade from concentrate. The number of quarts of water he needs is [`[$n]`] times the quarts of concentrate. How many quarts of water and how many quarts of concentrate will he need to make [`[$total]`] quarts of lemonade. Round to the nearest hundredth. +Owen is making lemonade from concentrate. The number of quarts of water he needs is [`[$n]`] times the quarts of concentrate. How many quarts of water and how many quarts of concentrate will he need to make [`[$total]`] quarts of lemonade. Round to the nearest hundredth. -Number of quarts of water: [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +Number of quarts of water: [_______________]{$ans1} [@ helpLink("numbers") @]* -Number of quarts of concentrate: [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +Number of quarts of concentrate: [_______________]{$ans2} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_4.2/OpenStax_IA_4.3_126.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_4.2/OpenStax_IA_4.3_126.pg index 1f60b9ab43..fbc6c167e1 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_4.2/OpenStax_IA_4.3_126.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_4.2/OpenStax_IA_4.3_126.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -58,9 +58,9 @@ $Coeff = $a - $c; BEGIN_PGML Tickets to a Broadway show cost [`$[$a]`] for adults and [`$[$c]`] for children. The total receipts for [`[$n]`] tickets at one performance were [`$[$total]`]. How many adult and child tickets were sold? -Number of Adult tickets: [_______________]{$adult} [@ AnswerFormatHelp("numbers") @]* +Number of Adult tickets: [_______________]{$adult} [@ helpLink("numbers") @]* -Number of Child tickets: [_______________]{$child} [@ AnswerFormatHelp("numbers") @]* +Number of Child tickets: [_______________]{$child} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_4.2/OpenStax_IA_4.3_132.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_4.2/OpenStax_IA_4.3_132.pg index e92c458fda..7d318aad19 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_4.2/OpenStax_IA_4.3_132.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_4.2/OpenStax_IA_4.3_132.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -61,9 +61,9 @@ $RHS = $value + $constant; BEGIN_PGML Brandon has a cup of quarters and dimes with a total value of [`$[$value]`]. The number of quarters is [`[$n]`] less than [$word[$i]] times the number of dimes. How many quarters and how many dimes does Brandon have? -Number of quarters: [_______________]{$q} [@ AnswerFormatHelp("numbers") @]* +Number of quarters: [_______________]{$q} [@ helpLink("numbers") @]* -Number of dimes: [_______________]{$d} [@ AnswerFormatHelp("numbers") @]* +Number of dimes: [_______________]{$d} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_4.2/OpenStax_IA_4.3_136.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_4.2/OpenStax_IA_4.3_136.pg index 1e7bf28267..c08ddd06a5 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_4.2/OpenStax_IA_4.3_136.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_4.2/OpenStax_IA_4.3_136.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -59,9 +59,9 @@ $RHS = $value - $b1*$n; BEGIN_PGML A cashier has [`[$n]`] bills, all of which are [`$[$b1]`] or [`$[$b2]`] bills. The total value of the money is [`$[$value]`]. How many of each type of bill does the cashier have? -Number of [`$[$b1]`] bills: [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +Number of [`$[$b1]`] bills: [_______________]{$ans1} [@ helpLink("numbers") @]* -Number of [`$[$b2]`] bills: [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +Number of [`$[$b2]`] bills: [_______________]{$ans2} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_4.2/OpenStax_IA_4.3_150.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_4.2/OpenStax_IA_4.3_150.pg index 5e124764e0..22e79ad6d9 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_4.2/OpenStax_IA_4.3_150.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_4.2/OpenStax_IA_4.3_150.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -62,9 +62,9 @@ $RHS = $interest + $RHS1; BEGIN_PGML Hattie had [`$[$total]`] to invest and wants to earn [`$[$interest]`] in interest this year. She will put some of the money into an account that earns [`[$i1]%`] per year and the rest into an account that pays [`[$i2]%`] per year. How much money should she put into each account? -Amount in [`[$i1]%`] account: $[_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +Amount in [`[$i1]%`] account: $[_______________]{$ans1} [@ helpLink("numbers") @]* -Amount in [`[$i2]%`] account: $[_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +Amount in [`[$i2]%`] account: $[_______________]{$ans2} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_4.2/OpenStax_IA_4.3_154.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_4.2/OpenStax_IA_4.3_154.pg index a63bf2cab2..793d68d2e2 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_4.2/OpenStax_IA_4.3_154.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_4.2/OpenStax_IA_4.3_154.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -60,9 +60,9 @@ $RHS = $interest + $RHS1; BEGIN_PGML After four years in college Josie owes [`$[$total]`] in student loans. The interest rate on the federal loans is [`[$i1]%`] and the rate on the private loans is [`[$i2]%`]. The total interest she owes for one year was [`$[$interest]`]. What is the amount of each loan? -Amount of federal loan: $[_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +Amount of federal loan: $[_______________]{$ans1} [@ helpLink("numbers") @]* -Amount of private loan: $[_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +Amount of private loan: $[_______________]{$ans2} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_5.4/OpenStax_IA_5.4_304.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_5.4/OpenStax_IA_5.4_304.pg index 202fc3bd73..6d5b75b2cf 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_5.4/OpenStax_IA_5.4_304.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_5.4/OpenStax_IA_5.4_304.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,11 +50,11 @@ $ans2= 0; # Main text BEGIN_PGML -Use long division to perform the division [`([$f])/(x+[$a])`]. Find the quotient and remainder. +Use long division to perform the division [`([$f])/(x+[$a])`]. Find the quotient and remainder. -+ Quotient: [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* ++ Quotient: [_______________]{$ans1} [@ helpLink("formulas") @]* -+ Remainder: [_______________]{$ans2} [@ AnswerFormatHelp("formulas") @]* ++ Remainder: [_______________]{$ans2} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_5.4/OpenStax_IA_5.4_307.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_5.4/OpenStax_IA_5.4_307.pg index b37196e675..2e67d21524 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_5.4/OpenStax_IA_5.4_307.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_5.4/OpenStax_IA_5.4_307.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,11 +50,11 @@ $ans2= $c + $n*($b + $a*$n); # Main text BEGIN_PGML -Use long division to perform the division [`([$f])/(x-[$n])`]. Find the quotient and remainder. +Use long division to perform the division [`([$f])/(x-[$n])`]. Find the quotient and remainder. -+ Quotient: [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* ++ Quotient: [_______________]{$ans1} [@ helpLink("formulas") @]* -+ Remainder: [_______________]{$ans2} [@ AnswerFormatHelp("formulas") @]* ++ Remainder: [_______________]{$ans2} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_5.4/OpenStax_IA_5.4_311.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_5.4/OpenStax_IA_5.4_311.pg index 81dd1e0ec0..d5f24eb711 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_5.4/OpenStax_IA_5.4_311.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_5.4/OpenStax_IA_5.4_311.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,11 +50,11 @@ $ans2= $c + $a*$n**3 + $b*$n; # Main text BEGIN_PGML -Use long division to perform the division [`([$f])/(x-[$n])`]. Find the quotient and remainder. +Use long division to perform the division [`([$f])/(x-[$n])`]. Find the quotient and remainder. -+ Quotient: [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* ++ Quotient: [_______________]{$ans1} [@ helpLink("formulas") @]* -+ Remainder: [_______________]{$ans2} [@ AnswerFormatHelp("formulas") @]* ++ Remainder: [_______________]{$ans2} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_5.4/OpenStax_IA_5.4_314.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_5.4/OpenStax_IA_5.4_314.pg index 5b456c6f3f..630eccb6d7 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_5.4/OpenStax_IA_5.4_314.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_5.4/OpenStax_IA_5.4_314.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -49,11 +49,11 @@ $ans2= 0; # Main text BEGIN_PGML -Use long division to perform the division [`([$f])/(x+[$a])`]. Find the quotient and remainder. +Use long division to perform the division [`([$f])/(x+[$a])`]. Find the quotient and remainder. -+ Quotient: [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* ++ Quotient: [_______________]{$ans1} [@ helpLink("formulas") @]* -+ Remainder: [_______________]{$ans2} [@ AnswerFormatHelp("formulas") @]* ++ Remainder: [_______________]{$ans2} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_6.5/OpenStax_IA_6.5_283.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_6.5/OpenStax_IA_6.5_283.pg index dd50c7b5e4..34773750f5 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_6.5/OpenStax_IA_6.5_283.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_6.5/OpenStax_IA_6.5_283.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -61,11 +61,11 @@ $bc = $b*$c; # Main text BEGIN_PGML -Solve the quadratic equation [`[$right]=[$left] `] by factoring. If there is more -than one correct answer, enter a comma +Solve the quadratic equation [`[$right]=[$left] `] by factoring. If there is more +than one correct answer, enter a comma separated list. -[`x=`] [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_________________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_6.5/OpenStax_IA_6.5_285.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_6.5/OpenStax_IA_6.5_285.pg index 374a2964a5..b73ff6e413 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_6.5/OpenStax_IA_6.5_285.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_6.5/OpenStax_IA_6.5_285.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -62,11 +62,11 @@ $bc = $b*$c; # Main text BEGIN_PGML -Solve the quadratic equation [`[$right]=[$left] `] by factoring. If there is more -than one correct answer, enter a comma +Solve the quadratic equation [`[$right]=[$left] `] by factoring. If there is more +than one correct answer, enter a comma separated list. -[`x=`] [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_________________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_6.5/OpenStax_IA_6.5_289.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_6.5/OpenStax_IA_6.5_289.pg index 21bffbb5b6..72ef5ab92e 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_6.5/OpenStax_IA_6.5_289.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_6.5/OpenStax_IA_6.5_289.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl" @@ -58,11 +58,11 @@ $ans = List( $ans1, $ans2 ); # Main text BEGIN_PGML -Solve the quadratic equation [`[$right]=[$left] `] by factoring. If there is more -than one correct answer, enter a comma +Solve the quadratic equation [`[$right]=[$left] `] by factoring. If there is more +than one correct answer, enter a comma separated list. -[`x=`] [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_________________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_6.5/OpenStax_IA_6.5_295.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_6.5/OpenStax_IA_6.5_295.pg index a36b57a271..c55bfd467e 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_6.5/OpenStax_IA_6.5_295.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_6.5/OpenStax_IA_6.5_295.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -70,11 +70,11 @@ $LHS = Formula("x^2 + ($n+$m)*x + $n*$m")->reduce; # Main text BEGIN_PGML -Solve the quadratic equation [`[$right]=[$left] `] by factoring. If there is more -than one correct answer, enter a comma +Solve the quadratic equation [`[$right]=[$left] `] by factoring. If there is more +than one correct answer, enter a comma separated list. -[`x=`] [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_________________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_6.5/OpenStax_IA_6.5_296.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_6.5/OpenStax_IA_6.5_296.pg index a5d8037e7d..0e095d387a 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_6.5/OpenStax_IA_6.5_296.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_6.5/OpenStax_IA_6.5_296.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -64,11 +64,11 @@ $ans = List( -$a, ,-$b ); # Main text BEGIN_PGML -Solve the quadratic equation [`[$right]=[$left] `] by factoring. If there is more -than one correct answer, enter a comma +Solve the quadratic equation [`[$right]=[$left] `] by factoring. If there is more +than one correct answer, enter a comma separated list. -[`x=`] [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_________________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_6.5/OpenStax_IA_6.5_297.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_6.5/OpenStax_IA_6.5_297.pg index 4ff3197e3a..a4d456e439 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_6.5/OpenStax_IA_6.5_297.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_6.5/OpenStax_IA_6.5_297.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl" @@ -71,11 +71,11 @@ $prod = $first*$last; # Main text BEGIN_PGML -Solve the quadratic equation [`[$right]=[$left] `] by factoring. If there is more -than one correct answer, enter a comma +Solve the quadratic equation [`[$right]=[$left] `] by factoring. If there is more +than one correct answer, enter a comma separated list. -[`x=`] [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_________________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_6.5/OpenStax_IA_6.5_307.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_6.5/OpenStax_IA_6.5_307.pg index a253e2fb00..d0f5227b89 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_6.5/OpenStax_IA_6.5_307.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_6.5/OpenStax_IA_6.5_307.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl" @@ -63,11 +63,11 @@ $bc = $b*$c; # Main text BEGIN_PGML -Solve the quadratic equation [`[$right]=[$left] `] by factoring. If there is more -than one correct answer, enter a comma +Solve the quadratic equation [`[$right]=[$left] `] by factoring. If there is more +than one correct answer, enter a comma separated list. -[`x=`] [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_________________]{$ans} [@ helpLink("numbers") @]* @@ -82,7 +82,7 @@ Set one side to zero: [`[$first]x^3 + [$middle]x^2 + [$last]x = 0`] -Now we can solve by factoring. +Now we can solve by factoring. There is a GCF of [`x`]: diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_6.5/OpenStax_IA_6.5_308.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_6.5/OpenStax_IA_6.5_308.pg index 64500a6d1b..af9fa870fb 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_6.5/OpenStax_IA_6.5_308.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_6.5/OpenStax_IA_6.5_308.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -59,11 +59,11 @@ $ans = List( -$a, -$b, 0); # Main text BEGIN_PGML -Solve the quadratic equation [`[$right]=[$left] `] by factoring. If there is more -than one correct answer, enter a comma +Solve the quadratic equation [`[$right]=[$left] `] by factoring. If there is more +than one correct answer, enter a comma separated list. -[`x=`] [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_________________]{$ans} [@ helpLink("numbers") @]* @@ -78,7 +78,7 @@ Set one side to zero: [`[$equation] = 0`] -Now we can solve by factoring. +Now we can solve by factoring. There is a GCF of [`[$gcf]`] diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_6.5/OpenStax_IA_6.5_313.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_6.5/OpenStax_IA_6.5_313.pg index 13136fa6c7..6b7e3b9212 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_6.5/OpenStax_IA_6.5_313.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_6.5/OpenStax_IA_6.5_313.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextLimitedPoint.pl", @@ -71,11 +71,11 @@ For the function, [`f(x) = [$right]`] (a) Find when [`f(x) = [$c]`]. -[`x=`] [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_________________]{$ans} [@ helpLink("numbers") @]* (b) Use this information to find two points that lie on the graph of the function. Enter the points as a comma separated list of ordered pairs of the form (a, b). -[___________]{$points} [@ AnswerFormatHelp("points") @]* +[___________]{$points} [@ helpLink("points") @]* diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_6.5/OpenStax_IA_6.5_317.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_6.5/OpenStax_IA_6.5_317.pg index d5bc4294a5..0fc5f5b395 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_6.5/OpenStax_IA_6.5_317.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_6.5/OpenStax_IA_6.5_317.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "contextLimitedPoint.pl", "PGcourse.pl", @@ -72,15 +72,15 @@ For the function, (a) Find all zeros. If there is more than one zero, enter them as a comma separated list. -[`x=`] [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_________________]{$ans} [@ helpLink("numbers") @]* (b) Find all x-intercepts. If there is more than one, enter them as comma separated ordered pairs of the form (a, b), (c, d). -[`x`]-intercept(s): [_________________]{$xint} [@ AnswerFormatHelp("points") @]* +[`x`]-intercept(s): [_________________]{$xint} [@ helpLink("points") @]* (c) Find all y-intercepts. If there is more than one, enter them as comma separated ordered pairs of the for (a, b), (c, d). -[`y`]-intercept(s): [_________________]{$yint} [@ AnswerFormatHelp("points") @]* +[`y`]-intercept(s): [_________________]{$yint} [@ helpLink("points") @]* diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_6.5/OpenStax_IA_6.5_329.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_6.5/OpenStax_IA_6.5_329.pg index ce408a3976..b2bf27180a 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_6.5/OpenStax_IA_6.5_329.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_6.5/OpenStax_IA_6.5_329.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -62,7 +62,7 @@ $last = $end/2; BEGIN_PGML A pennant is shaped like a right triangle with hypotenuse [`[$h[$i]]`] feet. The length of one side of the pennant is [`[$n[$i]]`] feet longer than the length of the other side. Find the length of the two sides (legs) of the pennant. Enter your answers as a comma separated list. -Sides: [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +Sides: [_________________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_6.5/OpenStax_IA_6.5_333.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_6.5/OpenStax_IA_6.5_333.pg index d1183105da..31cc451d6c 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_6.5/OpenStax_IA_6.5_333.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_6.5/OpenStax_IA_6.5_333.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -71,11 +71,11 @@ Juli is going to launch a model rocket in her back yard. When she launches the (a) When will the rocket hit the ground? -[`t =`] [_________________]{$ans1}seconds [@ AnswerFormatHelp("numbers") @]* +[`t =`] [_________________]{$ans1}seconds [@ helpLink("numbers") @]* (b) When will the rocket be [`[$height]`] feet above the ground? -[`t =`] [_________________]{$ans2}seconds [@ AnswerFormatHelp("numbers") @]* +[`t =`] [_________________]{$ans2}seconds [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_7.1/OpenStax_IA_7.1_1.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_7.1/OpenStax_IA_7.1_1.pg index 9c8c4f4193..ff081aac29 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_7.1/OpenStax_IA_7.1_1.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_7.1/OpenStax_IA_7.1_1.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_7.1/OpenStax_IA_7.1_2.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_7.1/OpenStax_IA_7.1_2.pg index 66c9899362..8c815150d4 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_7.1/OpenStax_IA_7.1_2.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_7.1/OpenStax_IA_7.1_2.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_7.1/OpenStax_IA_7.1_3.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_7.1/OpenStax_IA_7.1_3.pg index 658582bb60..b18c929eb9 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_7.1/OpenStax_IA_7.1_3.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_7.1/OpenStax_IA_7.1_3.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl" @@ -104,7 +104,7 @@ PART B: You can't the square root of a negative number, so this equation has no solution. There are no values of x that make this expression undefined. -In other words, when you square a number, you will always get a positive answer. There is no number that can be squared to give -[$asq]. +In other words, when you square a number, you will always get a positive answer. There is no number that can be squared to give -[$asq]. END_PGML_SOLUTION diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_7.1/OpenStax_IA_7.1_domain.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_7.1/OpenStax_IA_7.1_domain.pg index 4332d1e813..4e15dba85d 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_7.1/OpenStax_IA_7.1_domain.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_7.1/OpenStax_IA_7.1_domain.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -84,7 +84,7 @@ END_PGML # Solution BEGIN_PGML_SOLUTION -Division by zero is undefined, so to determine where a rational expression is undefined set the denominator = 0. +Division by zero is undefined, so to determine where a rational expression is undefined set the denominator = 0. For [`f(x)`]: diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_7.1/OpenStax_IA_7.1_domain2.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_7.1/OpenStax_IA_7.1_domain2.pg index c8d63fe66d..c633c21ec0 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_7.1/OpenStax_IA_7.1_domain2.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_7.1/OpenStax_IA_7.1_domain2.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -87,7 +87,7 @@ END_PGML # Solution BEGIN_PGML_SOLUTION -Division by zero is undefined, so to determine where a rational expression is undefined set the denominator = 0. +Division by zero is undefined, so to determine where a rational expression is undefined set the denominator = 0. For [`f(x)`]: diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_197.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_197.pg index bb43db1d53..5a6f0e6c60 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_197.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_197.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "parserPopUp.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,7 +48,7 @@ if ($b-$a*$a == 0) {$ans1 = NONE; } elsif ( $ans==($b*$a)/($b-$a*$a)) {$ans1=($b*$a)/($b-$a*$a); -} +} Context("Fraction-NoDecimals"); @@ -64,7 +64,7 @@ Solve the rational equation. Enter the answer as a reduced fraction. If there [`\dfrac{1}{a}+\dfrac{[$a]}{[$b]}=\dfrac{1}{[$a]}`] -[`a`] = [_________________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +[`a`] = [_________________]{$ans2} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_199.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_199.pg index ea2d63431e..cedbfbef9e 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_199.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_199.pg @@ -23,7 +23,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,7 +48,7 @@ if ($a*$a+$b== 0) {$ans1 = NONE; } elsif ( $ans=($a*$b*$c)/($a*$a+$b)) {$ans1=($a*$b*$c)/($a*$a+$b); -} +} $lcd = Formula("$b*$a*v")->reduce; $left1 = Formula("$a*$a*v + $b*v")->reduce; @@ -66,9 +66,9 @@ BEGIN_PGML Solve the rational equation. Enter the answer as a reduced fraction. If there is more than one correct answer, enter a comma separated list. If there is no answer, enter "NONE". -[`\dfrac{[$a]}{[$b]}+\dfrac{1}{[$a]}=\dfrac{[$c]}{v}`] +[`\dfrac{[$a]}{[$b]}+\dfrac{1}{[$a]}=\dfrac{[$c]}{v}`] -[`v`] = [_________________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +[`v`] = [_________________]{$ans2} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_203.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_203.pg index 78952aac83..3bfcc0ee28 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_203.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_203.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,7 +51,7 @@ Solve the rational equation. If there is more than one correct answer, enter a 1+[`\dfrac{[$c]}{p}=-\dfrac{[$d]}{p^2}`] -[`p`] = [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`p`] = [_________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_209.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_209.pg index d7417498eb..9491d4fd2a 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_209.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_209.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -51,7 +51,7 @@ $rhs = 5 - $a*$c - $b*$c; if ($ans == -$c) {$ans1 = NONE; -} +} elsif ($ans == $c) {$ans1 = NONE; } @@ -68,12 +68,12 @@ $ans2=Fraction($ans1); BEGIN_PGML -Solve the rational equation. Enter the answer as a reduced fraction. If there is more than one correct answer, enter a comma separated list. If there is no answer, enter "NONE". +Solve the rational equation. Enter the answer as a reduced fraction. If there is more than one correct answer, enter a comma separated list. If there is no answer, enter "NONE". [`\dfrac{[$a]}{z-[$c]}-\dfrac{[$b]}{z+[$c]}=\dfrac{5}{z^2-[$d]}`] -[`z`] = [_________________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +[`z`] = [_________________]{$ans2} [@ helpLink("numbers") @]* END_PGML @@ -83,14 +83,14 @@ END_PGML # Solution BEGIN_PGML_HINT -Clear the fractions by multiplying every term by the LCD. +Clear the fractions by multiplying every term by the LCD. The LCD is [`(z - [$c])(z + [$c])`] END_PGML_HINT BEGIN_PGML_SOLUTION -Clear the fractions by multiplying every term by the LCD. +Clear the fractions by multiplying every term by the LCD. The LCD is [`(z - [$c])(z + [$c])`] diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_213.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_213.pg index 8d8be87dad..4b88cfe635 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_213.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_213.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -57,7 +57,7 @@ $coeff = 1 - $d + $e; $ans=($a-$d*$c+$e*$b)/(1-$d+$e); if ($ans == $b) {$ans1 = NONE;} -elsif ($ans == $c) {$ans1 = NONE;} +elsif ($ans == $c) {$ans1 = NONE;} elsif ( $ans ==($a-$d*$c+$e*$b)/(1-$d+$e)) {$ans1=($a-$d*$c+$e*$b)/(1-$d+$e);} ########################### @@ -65,14 +65,14 @@ elsif ( $ans ==($a-$d*$c+$e*$b)/(1-$d+$e)) {$ans1=($a-$d*$c+$e*$b)/(1-$d+$e);} BEGIN_PGML -Solve the rational equation. If there is more than one correct answer, enter a comma separated list. If there is no answer, enter "NONE". +Solve the rational equation. If there is more than one correct answer, enter a comma separated list. If there is no answer, enter "NONE". [`\dfrac{v-[$a]}{v^2-[$f]*v+[$g]} = \dfrac{[$d]}{v-[$b]} - \dfrac{[$e]}{v-[$c]}`] -[`v`] = [_________________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +[`v`] = [_________________]{$ans1} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_217.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_217.pg index 55552df45a..ece8dceada 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_217.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_217.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -49,11 +49,11 @@ BEGIN_PGML Solve the rational equation. If there is more than one correct answer, enter a comma separated list. If there is no answer, enter "NONE". -[`\dfrac{b+[$a]}{[$a]b}+\dfrac{b}{[$c]}=\dfrac{1}{b}`] +[`\dfrac{b+[$a]}{[$a]b}+\dfrac{b}{[$c]}=\dfrac{1}{b}`] -[`b`] = [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`b`] = [_________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_219.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_219.pg index aad6a23713..b8e149f170 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_219.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_219.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -39,35 +39,35 @@ $chooser=random(1,5,1); if ( $chooser ==1) {$eqn=Formula("x/(x+6)-(180)/(x^2-36)-7"); -} +} elsif ( $chooser ==2) {$eqn=Formula("x/(x+3)-(18)/(x^2-9)-4"); -} +} elsif ( $chooser ==3) {$eqn=Formula("x/(x+5)-(50)/(x^2-25)-6"); -} +} elsif ( $chooser ==4) {$eqn=Formula("x/(x+5)+(130)/(x^2-25)-6"); -} +} elsif ( $chooser ==5) {$eqn=Formula("x/(x-4)-(18)/(x^2-16)-3"); -} +} if ( $chooser ==1) {$ans=List(-4,3); -} +} elsif ( $chooser ==2) {$ans=2; -} +} elsif ( $chooser ==3) {$ans=4; -} +} elsif ( $chooser ==4) {$ans=List(7,-8); -} +} elsif ( $chooser ==5) {$ans=List(-3,5); -} +} @@ -82,7 +82,7 @@ Solve the rational equation. If there is more than one correct answer, enter a -[`x`] = [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x`] = [_________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_235.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_235.pg index 4b4e6ac1be..9fbdb4b6a0 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_235.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_235.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -43,26 +43,26 @@ Context("Numeric"); $chooser=random(1,2,1); if ( $chooser ==1) {$eqn1=Formula("C/r"); -} +} elsif ( $chooser ==2) {$eqn1=Formula("I/r"); -} +} if ( $chooser ==1) {$eqn2=Formula("2*pi"); -} +} elsif ( $chooser ==2) {$eqn2=Formula("P"); -} +} if ( $chooser ==1) {$ans=Formula("C/(2*pi)"); -} +} elsif ( $chooser ==2) {$ans=Formula("I/P"); -} +} @@ -79,7 +79,7 @@ Solve the following equation for [`r`]. -[`r`] = [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`r`] = [_________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_239.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_239.pg index e662c28d30..e9426b332b 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_239.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_239.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "PGcourse.pl", @@ -44,45 +44,45 @@ Context("Numeric"); $chooser=random(1,4,1); if ( $chooser ==1) {$eqn1=Formula("c"); -} +} elsif ( $chooser ==2) {$eqn1=Formula("(b+3)/(w-2)"); -} +} elsif ( $chooser ==3) {$eqn1=Formula("(a+3)/(w-1)"); -} +} elsif ( $chooser ==4) {$eqn1=Formula("(a+5)/(2-w)"); -} +} if ( $chooser ==1) {$eqn2=Formula("w/(2-w)"); -} +} elsif ( $chooser ==2) {$eqn2=Formula("a"); -} +} elsif ( $chooser ==3) {$eqn2=("1/2"); -} +} elsif ( $chooser ==4) {$eqn2=("4/3"); -} +} if ( $chooser ==1) {$ans=Formula("2c/(c+1)"); -} +} elsif ( $chooser ==2) {$ans=Formula("(b+3+2a)/a"); -} +} elsif ( $chooser ==3) {$ans=Formula("2a+7"); -} +} elsif ( $chooser ==4) {$ans=Formula("(3a+7)/-4"); -} +} @@ -99,7 +99,7 @@ Solve the following equation for [`w`]. -[`w`] = [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`w`] = [_________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_241.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_241.pg index 4cf8f11f9f..097af4fd22 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_241.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_241.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "PGcourse.pl", @@ -40,52 +40,52 @@ Context("Numeric"); $chooser=random(1,5,1); if ( $chooser ==1) {$eqn1=Formula("1/p+2/q"); -} +} elsif ( $chooser ==2) {$eqn1=Formula("3/p+1/q"); -} +} elsif ( $chooser ==3) {$eqn1=("2/q+1/5"); -} +} elsif ( $chooser ==4) {$eqn1=("6/q+2/3"); -} +} elsif ( $chooser ==5) {$eqn1=Formula("(q+3)/(p-2)"); -} +} if ( $chooser ==1) {$eqn2=("4"); -} +} elsif ( $chooser ==2) {$eqn2=("2"); -} +} elsif ( $chooser ==3) {$eqn2=Formula("3/p"); -} +} elsif ( $chooser ==4) {$eqn2=Formula("1/p"); -} +} elsif ( $chooser ==5) {$eqn2=("4/5"); -} +} if ( $chooser ==1) {$ans=Formula("q/(4q-2)"); -} +} elsif ( $chooser ==2) {$ans=Formula("3q/(2q-1)"); -} +} elsif ( $chooser ==3) {$ans=Formula("15q/(10+q)"); -} +} elsif ( $chooser ==4) {$ans=Formula("3q/(18+2q)"); -} +} elsif ( $chooser ==5) {$ans=Formula("(5q+23)/4"); -} +} @@ -101,7 +101,7 @@ Solve the following equation for [`p`]. -[`p`] = [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`p`] = [_________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_7.4/OpenStax_IA_7.4_201.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_7.4/OpenStax_IA_7.4_201.pg index 80026766f1..df22285ca7 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_7.4/OpenStax_IA_7.4_201.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_7.4/OpenStax_IA_7.4_201.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -55,7 +55,7 @@ Solve the rational equation. If there is more than one correct answer, enter a [`1+\dfrac{[$middle]}{[$var]}=-\dfrac{[$last]}{[$var]^2}`] -[`[$var]`] = [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`[$var]`] = [_________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_7.4/OpenStax_IA_7.4_Eqn.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_7.4/OpenStax_IA_7.4_Eqn.pg index 5b5bd64ff9..48706a84d1 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_7.4/OpenStax_IA_7.4_Eqn.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_7.4/OpenStax_IA_7.4_Eqn.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -65,7 +65,7 @@ Solve the rational equation. If there is more than one correct answer, enter a [`[$f1] = [$f2]`] -[`[$var]`] = [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`[$var]`] = [_________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_7.5/OpenStax_IA_7.5_285.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_7.5/OpenStax_IA_7.5_285.pg index 7c179a206e..07446efe6c 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_7.5/OpenStax_IA_7.5_285.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_7.5/OpenStax_IA_7.5_285.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -54,7 +54,7 @@ $const = -$dw*$w - $da*$w; BEGIN_PGML Mary takes a sightseeing tour on a helicopter that can fly [`[$da]`] miles against a [`[$w]`]-mph headwind in the same amount of time it can [`[$dw]`] miles with a [`[$w]`]-mph tailwind. Find the speed of the helicopter. -Speed: [_______________]{$a}mph [@ AnswerFormatHelp("numbers") @]* +Speed: [_______________]{$a}mph [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_7.5/OpenStax_IA_7.5_287.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_7.5/OpenStax_IA_7.5_287.pg index 5f3610d937..12b9e3c9ed 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_7.5/OpenStax_IA_7.5_287.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_7.5/OpenStax_IA_7.5_287.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -54,7 +54,7 @@ $const = -$dw*$w - $da*$w; BEGIN_PGML A boat travels [`[$dw]`] miles downstream in the same time as it travels [`[$da]`] miles upstream. The speed of the current is [`[$w]`] mph. What is the speed of the boat? -Speed: [_______________]{$a}mph [@ AnswerFormatHelp("numbers") @]* +Speed: [_______________]{$a}mph [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_7.5/OpenStax_IA_7.5_298.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_7.5/OpenStax_IA_7.5_298.pg index 1d858a26fa..64ab5c2689 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_7.5/OpenStax_IA_7.5_298.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_7.5/OpenStax_IA_7.5_298.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -54,7 +54,7 @@ $const = -$dw*$w - $da*$w; BEGIN_PGML Jim's speedboat can travel [`[$da]`] miles upstream against a [`[$w]`]-mph current in the same amount of time it travels [`[$dw]`] miles downstream with a [`[$w]`]-mph current speed. Find the speed of Jim's boat. -Speed: [_______________]{$a}mph [@ AnswerFormatHelp("numbers") @]* +Speed: [_______________]{$a}mph [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_7.5/OpenStax_IA_7.5_306.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_7.5/OpenStax_IA_7.5_306.pg index da2c693a8c..0b6fa7ab92 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_7.5/OpenStax_IA_7.5_306.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_7.5/OpenStax_IA_7.5_306.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -57,7 +57,7 @@ $ans = Compute("($t1*$t2)/($t1 + $t2)"); BEGIN_PGML It takes Sam [`[$t1]`] hours to rake the front lawn while his brother, Dave, can rake the lawn in [`[$t2]`] hours. How long will it take them to rake the lawn working together? Round to the nearest tenth. -Time: [_______________]{$ans}hours [@ AnswerFormatHelp("numbers") @]* +Time: [_______________]{$ans}hours [@ helpLink("numbers") @]* @@ -68,7 +68,7 @@ END_PGML # Solution BEGIN_PGML_SOLUTION -x = time it takes them working together +x = time it takes them working together In x hours, Sam will complete [`\frac{x}{[$t1]}`]-th of the job. diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_7.5/OpenStax_IA_7.5_309.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_7.5/OpenStax_IA_7.5_309.pg index e4543ef579..681f9a6436 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_7.5/OpenStax_IA_7.5_309.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_7.5/OpenStax_IA_7.5_309.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -57,7 +57,7 @@ $coeff = $t1 - $T; BEGIN_PGML Josephine can corect her students test papers in [`[$t1]`] hours, but if her teacher's assistant helps, it would take them [`[$T]`] hours. How long would it take the assistant to do the job alone? Round to the nearest tenth of an hour. -Time: [_______________]{$t2}hours [@ AnswerFormatHelp("numbers") @]* +Time: [_______________]{$t2}hours [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_7.5/OpenStax_IA_7.5_311.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_7.5/OpenStax_IA_7.5_311.pg index a527103dc1..3fb2020d08 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_7.5/OpenStax_IA_7.5_311.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_7.5/OpenStax_IA_7.5_311.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -57,7 +57,7 @@ $ans = Compute("($t1*$t2)/($t1 + $t2)"); BEGIN_PGML At the end of the day Dodie can clean her hair salon in [`[$t1]`] minutes. Ann, who works with her, can clean the salon in [`[$t2]`] minutes. How long would it take them to clean the shop if they work together? Round to the nearest tenth. -Time: [_______________]{$ans}minutes [@ AnswerFormatHelp("numbers") @]* +Time: [_______________]{$ans}minutes [@ helpLink("numbers") @]* @@ -68,7 +68,7 @@ END_PGML # Solution BEGIN_PGML_SOLUTION -x = time it takes them working together +x = time it takes them working together In x hours, Dodie will complete [`\frac{x}{[$t1]}`]-th of the job. diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_7.5/OpenStax_IA_7.5_312.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_7.5/OpenStax_IA_7.5_312.pg index f3d455ac95..16b8857942 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_7.5/OpenStax_IA_7.5_312.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_7.5/OpenStax_IA_7.5_312.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -57,7 +57,7 @@ $coeff = $t1 - $T; BEGIN_PGML Ronald can shovel the driveway in [`[$t1]`] minutes, but if his brother Donald helps it would take [`[$T]`] minutes. How long would it take Donald to shovel the driveway alone? Round to the nearest tenth. -Time: [_______________]{$t2}minutes [@ AnswerFormatHelp("numbers") @]* +Time: [_______________]{$t2}minutes [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_8.1/OpenStax_IA_8.1_13.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_8.1/OpenStax_IA_8.1_13.pg index 3d5289a366..e3e592bc56 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_8.1/OpenStax_IA_8.1_13.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_8.1/OpenStax_IA_8.1_13.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_8.1/OpenStax_IA_8.1_15.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_8.1/OpenStax_IA_8.1_15.pg index 8cc0014283..91388363fa 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_8.1/OpenStax_IA_8.1_15.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_8.1/OpenStax_IA_8.1_15.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_8.1/OpenStax_IA_8.1_31.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_8.1/OpenStax_IA_8.1_31.pg index 342cbde6fa..9e287ec336 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_8.1/OpenStax_IA_8.1_31.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_8.1/OpenStax_IA_8.1_31.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextLimitedPolynomial.pl", diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_8.1/OpenStax_IA_8.1_35.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_8.1/OpenStax_IA_8.1_35.pg index bc77be3ca7..cd367ccda2 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_8.1/OpenStax_IA_8.1_35.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_8.1/OpenStax_IA_8.1_35.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextLimitedPolynomial.pl", diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_8.1/OpenStax_IA_8.1_39.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_8.1/OpenStax_IA_8.1_39.pg index 8caabe1564..15940a31c8 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_8.1/OpenStax_IA_8.1_39.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_8.1/OpenStax_IA_8.1_39.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextLimitedPolynomial.pl", diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_8.1/OpenStax_IA_8.1_49.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_8.1/OpenStax_IA_8.1_49.pg index 16ee8b18eb..7fd5527b46 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_8.1/OpenStax_IA_8.1_49.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_8.1/OpenStax_IA_8.1_49.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextLimitedPolynomial.pl", diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_8.6/OpenStax_IA_8.6_287.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_8.6/OpenStax_IA_8.6_287.pg index 47a9c37201..d5ba728d78 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_8.6/OpenStax_IA_8.6_287.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_8.6/OpenStax_IA_8.6_287.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -49,13 +49,13 @@ $rhs = $c**2-$b; # Main text BEGIN_PGML -Solve the radical equation. Be sure to check for extraneous solutions. +Solve the radical equation. Be sure to check for extraneous solutions. If you find more than one solution, give your answer as a comma-separated list. If there is no solution enter "NONE". [`` [$f]=[$c] ``]. -[`[$var] =`] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`[$var] =`] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_8.6/OpenStax_IA_8.6_289.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_8.6/OpenStax_IA_8.6_289.pg index c3b95d2b6e..901efcb860 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_8.6/OpenStax_IA_8.6_289.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_8.6/OpenStax_IA_8.6_289.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -49,13 +49,13 @@ $ans = "NONE"; # Main text BEGIN_PGML -Solve the radical equation. Be sure to check for extraneous solutions. +Solve the radical equation. Be sure to check for extraneous solutions. If you find more than one solution, give your answer as a comma-separated list. If there is no solution enter "NONE". [`` [$f]=[$c] ``]. -[`[$var] =`] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`[$var] =`] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_8.6/OpenStax_IA_8.6_291.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_8.6/OpenStax_IA_8.6_291.pg index 611986902e..c5f97b4438 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_8.6/OpenStax_IA_8.6_291.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_8.6/OpenStax_IA_8.6_291.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,13 +48,13 @@ $rhs = $c**3 - $b; # Main text BEGIN_PGML -Solve the radical equation. Be sure to check for extraneous solutions. +Solve the radical equation. Be sure to check for extraneous solutions. If you find more than one solution, give your answer as a comma-separated list. If there is no solution enter "NONE". [`` \sqrt[3]{[$a][$var]+[$b]}=[$c] ``]. -[`[$var] =`] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`[$var] =`] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_8.6/OpenStax_IA_8.6_299.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_8.6/OpenStax_IA_8.6_299.pg index b40f36ac61..d109f749d3 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_8.6/OpenStax_IA_8.6_299.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_8.6/OpenStax_IA_8.6_299.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,13 +50,13 @@ $num = $rhs/$a; # Main text BEGIN_PGML -Solve the radical equation. Be sure to check for extraneous solutions. +Solve the radical equation. Be sure to check for extraneous solutions. If you find more than one solution, give your answer as a comma-separated list. If there is no solution enter "NONE". [`` [$f]=0 ``]. -[`[$var] =`] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`[$var] =`] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_8.6/OpenStax_IA_8.6_301.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_8.6/OpenStax_IA_8.6_301.pg index f7ab8ee2ca..a85d41f76a 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_8.6/OpenStax_IA_8.6_301.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_8.6/OpenStax_IA_8.6_301.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,13 +48,13 @@ $quad = Formula("$var^2 + (-2*$a-1)*$var + ($a**2+$a)")->reduce; # Main text BEGIN_PGML -Solve the radical equation. Be sure to check for extraneous solutions. +Solve the radical equation. Be sure to check for extraneous solutions. If you find more than one solution, give your answer as a comma-separated list. If there is no solution enter "NONE". [`` [$f]=[$var] ``]. -[`[$var] =`] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`[$var] =`] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_8.6/OpenStax_IA_8.6_307.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_8.6/OpenStax_IA_8.6_307.pg index 145f580bc2..c88c3731c2 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_8.6/OpenStax_IA_8.6_307.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_8.6/OpenStax_IA_8.6_307.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -53,13 +53,13 @@ $rhs = $cube - $b; # Main text BEGIN_PGML -Solve the radical equation. Be sure to check for extraneous solutions. +Solve the radical equation. Be sure to check for extraneous solutions. If you find more than one solution, give your answer as a comma-separated list. If there is no solution enter "NONE". [`` \sqrt[3]{[$f]}+[$c]=[$d] ``]. -[`[$var] =`] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`[$var] =`] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_8.6/OpenStax_IA_8.6_309.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_8.6/OpenStax_IA_8.6_309.pg index 97abaaa5e8..23db3ebadd 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_8.6/OpenStax_IA_8.6_309.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_8.6/OpenStax_IA_8.6_309.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -53,13 +53,13 @@ $rhs = $sq - $b; # Main text BEGIN_PGML -Solve the radical equation. Be sure to check for extraneous solutions. +Solve the radical equation. Be sure to check for extraneous solutions. If you find more than one solution, give your answer as a comma-separated list. If there is no solution enter "NONE". [`` {([$f])}^{\frac{1}{2}} + [$c] = [$d] ``]. -[`[$var] =`] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`[$var] =`] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_8.6/OpenStax_IA_8.6_311.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_8.6/OpenStax_IA_8.6_311.pg index c731604f65..307850a97f 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_8.6/OpenStax_IA_8.6_311.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_8.6/OpenStax_IA_8.6_311.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -53,13 +53,13 @@ $rhs = $cube -$b; # Main text BEGIN_PGML -Solve the radical equation. Be sure to check for extraneous solutions. +Solve the radical equation. Be sure to check for extraneous solutions. If you find more than one solution, give your answer as a comma-separated list. If there is no solution enter "NONE". [`` {([$f])}^{\frac{1}{3}} + [$c] = [$d] ``]. -[`[$var] =`] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`[$var] =`] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_8.6/OpenStax_IA_8.6_313.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_8.6/OpenStax_IA_8.6_313.pg index ac449e3627..ef7596d2a3 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_8.6/OpenStax_IA_8.6_313.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_8.6/OpenStax_IA_8.6_313.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -52,13 +52,13 @@ $rhs = $sq -$b; # Main text BEGIN_PGML -Solve the radical equation. Be sure to check for extraneous solutions. +Solve the radical equation. Be sure to check for extraneous solutions. If you find more than one solution, give your answer as a comma-separated list. If there is no solution enter "NONE". [`` {([$f])}^{\frac{1}{4}} + [$c] = [$d] ``]. -[`[$var] =`] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`[$var] =`] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_8.6/OpenStax_IA_8.6_319.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_8.6/OpenStax_IA_8.6_319.pg index b07f00d035..d848b9ccb4 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_8.6/OpenStax_IA_8.6_319.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_8.6/OpenStax_IA_8.6_319.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -53,13 +53,13 @@ $rhs = $s**2-$b; # Main text BEGIN_PGML -Solve the radical equation. Be sure to check for extraneous solutions. +Solve the radical equation. Be sure to check for extraneous solutions. If you find more than one solution, give your answer as a comma-separated list. If there is no solution enter "NONE". [`` [$f] = [$e] ``]. -[`[$var] =`] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`[$var] =`] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_8.8/OpenStax_IA_8.8_411.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_8.8/OpenStax_IA_8.8_411.pg index 6e323013a5..392523a49c 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_8.8/OpenStax_IA_8.8_411.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_8.8/OpenStax_IA_8.8_411.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextLimitedRadical.pl", @@ -53,9 +53,9 @@ BEGIN_PGML Write each expression in terms of [`i`] and simplify if possible. (a) [`\sqrt{-[$asq]} = `][____________]{$ans1} - + (b) [`\sqrt{-[$b]} = `][____________]{$ans2} - + (c) [`\sqrt{-[$rad]} = `][____________]{$ans3} END_PGML @@ -66,9 +66,9 @@ END_PGML BEGIN_PGML_SOLUTION (a) [`\sqrt{-[$asq]} = [$ans1]`] - + (b) [`\sqrt{-[$b]} = [$ans2]`] - + (c) [`\sqrt{-[$rad]} = [$ans3]`] END_PGML_SOLUTION diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_8.8/OpenStax_IA_8.8_413.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_8.8/OpenStax_IA_8.8_413.pg index 9c38becb61..9a20feb2c5 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_8.8/OpenStax_IA_8.8_413.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_8.8/OpenStax_IA_8.8_413.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextLimitedRadical.pl", diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_9.1/OpenStax_IA_9.1_11.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_9.1/OpenStax_IA_9.1_11.pg index f61ef6a573..98e7aae2a0 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_9.1/OpenStax_IA_9.1_11.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_9.1/OpenStax_IA_9.1_11.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,12 +51,12 @@ $answer = List($ans1, $ans2); # Main text BEGIN_PGML -Solve the equation using the square root property. If there is more +Solve the equation using the square root property. If there is more than one correct answer, enter a comma separated list. If the solution is not real, write it as a complex number. [``[$f] = 0``] -[`[$var] =`] [_________________]{$answer} [@ AnswerFormatHelp("numbers") @]* +[`[$var] =`] [_________________]{$answer} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_9.1/OpenStax_IA_9.1_15.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_9.1/OpenStax_IA_9.1_15.pg index 78c264bd34..4dd90a31a2 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_9.1/OpenStax_IA_9.1_15.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_9.1/OpenStax_IA_9.1_15.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextLimitedRadical.pl", @@ -64,7 +64,7 @@ Solve the equation using the square root property. If there is more than one cor [``[$f] = [$a]``] -[`[$var] =`] [_________________]{$answer} [@ AnswerFormatHelp("numbers") @]* +[`[$var] =`] [_________________]{$answer} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_9.1/OpenStax_IA_9.1_27.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_9.1/OpenStax_IA_9.1_27.pg index f6e7aa8251..bc1bc49498 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_9.1/OpenStax_IA_9.1_27.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_9.1/OpenStax_IA_9.1_27.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl" @@ -55,12 +55,12 @@ $ans = List($a1, $a2); # Main text BEGIN_PGML -Solve the equation using the square root property. If there is more +Solve the equation using the square root property. If there is more than one correct answer, enter a comma separated list. If the solution is not real, write it as a complex number. [``[$f]=[$frac2] ``] -[`[$var]=`] [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`[$var]=`] [_________________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_9.1/OpenStax_IA_9.1_31.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_9.1/OpenStax_IA_9.1_31.pg index 3011d0bdd7..3781c6fede 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_9.1/OpenStax_IA_9.1_31.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_9.1/OpenStax_IA_9.1_31.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl" @@ -54,12 +54,12 @@ $diff = $a-$b; # Main text BEGIN_PGML -Solve the equation using the square root property. If there is more +Solve the equation using the square root property. If there is more than one correct answer, enter a comma separated list. If the solution is not real, write it as a complex number. [``[$f]=[$a] ``] -[`[$var]=`] [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`[$var]=`] [_________________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_9.1/OpenStax_IA_9.1_33.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_9.1/OpenStax_IA_9.1_33.pg index cd3c0c7e33..ca78c5709a 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_9.1/OpenStax_IA_9.1_33.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_9.1/OpenStax_IA_9.1_33.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl" @@ -55,12 +55,12 @@ $div = $sum/$a; # Main text BEGIN_PGML -Solve the equation using the square root property. If there is more +Solve the equation using the square root property. If there is more than one correct answer, enter a comma separated list. If the solution is not real, write it as a complex number. [``[$a][$f] - [$c] =[$d] ``] -[`[$var]=`] [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`[$var]=`] [_________________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_9.1/OpenStax_IA_9.1_35.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_9.1/OpenStax_IA_9.1_35.pg index 7202c653c3..24a9db3c15 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_9.1/OpenStax_IA_9.1_35.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_9.1/OpenStax_IA_9.1_35.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -53,12 +53,12 @@ $answer = List($ans1, $ans2); # Main text BEGIN_PGML -Solve the equation using the square root property. If there is more +Solve the equation using the square root property. If there is more than one correct answer, enter a comma separated list. If the solution is not real, write it as a complex number. [``[$f] = -[$a2]``] -[`[$var] =`] [_________________]{$answer} [@ AnswerFormatHelp("numbers") @]* +[`[$var] =`] [_________________]{$answer} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_9.1/OpenStax_IA_9.1_9.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_9.1/OpenStax_IA_9.1_9.pg index 76bddda4d8..b63d60b172 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_9.1/OpenStax_IA_9.1_9.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_9.1/OpenStax_IA_9.1_9.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl" @@ -51,12 +51,12 @@ $ans = List( $a, -$a ); # Main text BEGIN_PGML -Solve the equation using the square root property. If there is more +Solve the equation using the square root property. If there is more than one correct answer, enter a comma separated list. If the solution is not real, write it as a complex number. [`\frac{[$n]}{[$d]}{x}^{2}=[$c] `] -[`x=`] [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_________________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_9.2/OpenStax_IA_9.2_CompleteSq_1.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_9.2/OpenStax_IA_9.2_CompleteSq_1.pg index a4d5fe4d41..da78101e12 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_9.2/OpenStax_IA_9.2_CompleteSq_1.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_9.2/OpenStax_IA_9.2_CompleteSq_1.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "contextLimitedFactor.pl", "PGML.pl", @@ -60,7 +60,7 @@ $RHS = Fraction($b**2 - 4*$c,4)->reduce; # Main text BEGIN_PGML -Solve [`[$equation]= 0`] by completing the square. +Solve [`[$equation]= 0`] by completing the square. Step 1: Move the constant to the right side: @@ -76,7 +76,7 @@ Step 3: Factor the left side: Step 4: Solve for x. If there is more than one answer, separate them with a comma. -[`x=`] [_________________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_________________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_9.2/OpenStax_IA_9.2_CompleteSq_2.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_9.2/OpenStax_IA_9.2_CompleteSq_2.pg index 03409948db..786efb1c1b 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_9.2/OpenStax_IA_9.2_CompleteSq_2.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_9.2/OpenStax_IA_9.2_CompleteSq_2.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "contextLimitedFactor.pl", "bizarroArithmetic.pl", @@ -76,7 +76,7 @@ $RHS = Fraction(($b)**2 - 4*$c,4)->reduce; # Main text BEGIN_PGML -Solve [`[$equation]= 0`] by completing the square. Do not use decimals in any of your answers. +Solve [`[$equation]= 0`] by completing the square. Do not use decimals in any of your answers. Step 1: Move the constant to the right side: @@ -92,7 +92,7 @@ Step 3: Factor the left side: Step 4: Solve for x. If there is more than one answer, separate them with a comma. -[`x=`] [_________________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_________________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_9.2/OpenStax_IA_9.2_CompleteSq_3.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_9.2/OpenStax_IA_9.2_CompleteSq_3.pg index 1c82a1df46..23c6522a1b 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_9.2/OpenStax_IA_9.2_CompleteSq_3.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_9.2/OpenStax_IA_9.2_CompleteSq_3.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "contextLimitedFactor.pl", "bizarroArithmetic.pl", @@ -63,7 +63,7 @@ BEGIN_PGML Solve [`[$equation]= 0`] by completing the square. Do not use decimals in your answers. Use commas to separate answers. If there is no real solution enter NONE. -[`x=`] [_________________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_________________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_9.2/OpenStax_IA_9.2_CompleteSq_4.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_9.2/OpenStax_IA_9.2_CompleteSq_4.pg index bd0f705bc3..bf22bc6cb5 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_9.2/OpenStax_IA_9.2_CompleteSq_4.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_9.2/OpenStax_IA_9.2_CompleteSq_4.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "contextLimitedFactor.pl", "bizarroArithmetic.pl", @@ -63,7 +63,7 @@ BEGIN_PGML Solve [`[$equation]= 0`] by completing the square. Do not use decimals in your answers. Use commas to separate answers. If there is no real solution enter NONE. -[`x=`] [_________________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_________________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_9.2/OpenStax_IA_9.2_CompleteSq_5.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_9.2/OpenStax_IA_9.2_CompleteSq_5.pg index 21dae3c02d..01f4f4ff3f 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_9.2/OpenStax_IA_9.2_CompleteSq_5.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_9.2/OpenStax_IA_9.2_CompleteSq_5.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "contextLimitedFactor.pl", "bizarroArithmetic.pl", @@ -63,7 +63,7 @@ BEGIN_PGML Solve [`[$equation]= 0`] by completing the square. Do not use decimals in your answers. Use commas to separate answers. If there is no real solution enter NONE. -[`x=`] [_________________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_________________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_9.2/OpenStax_IA_9.2_CompleteSq_6.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_9.2/OpenStax_IA_9.2_CompleteSq_6.pg index 4fca25edc7..25f370dc45 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_9.2/OpenStax_IA_9.2_CompleteSq_6.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_9.2/OpenStax_IA_9.2_CompleteSq_6.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "contextLimitedFactor.pl", "bizarroArithmetic.pl", @@ -63,7 +63,7 @@ BEGIN_PGML Solve [`[$equation]= 0`] by completing the square. Do not use decimals in your answers. Use commas to separate answers. If there is no real solution enter NONE. -[`x=`] [_________________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_________________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_9.2/OpenStax_IA_9.2_CompleteSq_7.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_9.2/OpenStax_IA_9.2_CompleteSq_7.pg index 698e8ac044..1f1346dafe 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_9.2/OpenStax_IA_9.2_CompleteSq_7.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_9.2/OpenStax_IA_9.2_CompleteSq_7.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "contextLimitedFactor.pl", "bizarroArithmetic.pl", @@ -61,7 +61,7 @@ BEGIN_PGML Solve [`[$equation]= 0`] by completing the square. Do not use decimals in your answers. Use commas to separate answers. If there is no real solution enter NONE. -[`x=`] [_________________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_________________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_9.3/OpenStax_IA_9.3_135.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_9.3/OpenStax_IA_9.3_135.pg index 053d511701..886e356ee4 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_9.3/OpenStax_IA_9.3_135.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_9.3/OpenStax_IA_9.3_135.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -67,7 +67,7 @@ Solve the equation using the quadratic formula. If there is more than one correc [``[$f] = [$d]``] -[`[$var] =`] [________________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`[$var] =`] [________________________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_9.3/OpenStax_IA_9.3_137.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_9.3/OpenStax_IA_9.3_137.pg index d987b72f0b..613964f8ec 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_9.3/OpenStax_IA_9.3_137.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_9.3/OpenStax_IA_9.3_137.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -64,7 +64,7 @@ Solve the equation using the quadratic formula. If there is more than one correc [``\frac{1}{[$d1]}{[$var]}^{2} + \frac{1}{[$d3]}[$var] = \frac{1}{[$d2]}``] -[`[$var] =`] [________________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`[$var] =`] [________________________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_9.5/OpenStax_IA_9.5_195.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_9.5/OpenStax_IA_9.5_195.pg index 1e6465b0b8..18ce2f52f7 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_9.5/OpenStax_IA_9.5_195.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_9.5/OpenStax_IA_9.5_195.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -49,7 +49,7 @@ BEGIN_PGML The product of two consecutive positive odd numbers is [`[$prod]`]. Find the numbers. Enter your answers as a comma separated list. -[__________]{$ans}[@ AnswerFormatHelp("numbers") @]* +[__________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_9.5/OpenStax_IA_9.5_201.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_9.5/OpenStax_IA_9.5_201.pg index f4ec33d33d..bb8c2b250b 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_9.5/OpenStax_IA_9.5_201.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_9.5/OpenStax_IA_9.5_201.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -57,7 +57,7 @@ Base = [_______________]{$base}inches Height = [_______________]{$height}inches -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_9.5/OpenStax_IA_9.5_203.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_9.5/OpenStax_IA_9.5_203.pg index 82dc0167b7..2b90a83520 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_9.5/OpenStax_IA_9.5_203.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_9.5/OpenStax_IA_9.5_203.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -70,7 +70,7 @@ Height = [_______________]{$heightr}feet Base = [_______________]{$baser}feet -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_9.5/OpenStax_IA_9.5_207.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_9.5/OpenStax_IA_9.5_207.pg index def3e4bdf0..148b27c1bb 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_9.5/OpenStax_IA_9.5_207.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_9.5/OpenStax_IA_9.5_207.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -56,7 +56,7 @@ Width = [_______________]{$width}feet Length = [_______________]{$length}feet -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_9.5/OpenStax_IA_9.5_209.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_9.5/OpenStax_IA_9.5_209.pg index 0330e9b557..770708dc9f 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_9.5/OpenStax_IA_9.5_209.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_9.5/OpenStax_IA_9.5_209.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -74,7 +74,7 @@ The hypotenuse of a right triangle is [$number[$i]] times the length of one of i [_______________]{$ans}feet -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_9.5/OpenStax_IA_9.5_213.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_9.5/OpenStax_IA_9.5_213.pg index e2db352374..d5c30b9de8 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_9.5/OpenStax_IA_9.5_213.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_9.5/OpenStax_IA_9.5_213.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); diff --git a/Contrib/CCCS/AlgebraicLiteracy/IA_9.5/OpenStax_IA_9.5_216.pg b/Contrib/CCCS/AlgebraicLiteracy/IA_9.5/OpenStax_IA_9.5_216.pg index 31ebb771dc..3a4f894c32 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/IA_9.5/OpenStax_IA_9.5_216.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/IA_9.5/OpenStax_IA_9.5_216.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -62,7 +62,7 @@ When will the arrow hit the ground? Round to the nearest hundredth of a second. [_______________]{$t}seconds -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Linear_Inequalities/Inequality_1.pg b/Contrib/CCCS/AlgebraicLiteracy/Linear_Inequalities/Inequality_1.pg index ab8a9578bd..fc4b31a668 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Linear_Inequalities/Inequality_1.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Linear_Inequalities/Inequality_1.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextInequalities.pl", @@ -53,9 +53,9 @@ $ans = Compute(" x >= $n "); BEGIN_PGML -Solve [`` [$f] \ge [$c] ``]. +Solve [`` [$f] \ge [$c] ``]. -[_______________]{$ans} +[_______________]{$ans} Use >= for `\ge` and <= for `\le` diff --git a/Contrib/CCCS/AlgebraicLiteracy/Linear_Inequalities/Inequality_2.pg b/Contrib/CCCS/AlgebraicLiteracy/Linear_Inequalities/Inequality_2.pg index 3f8e862dec..c8feb261d1 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Linear_Inequalities/Inequality_2.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Linear_Inequalities/Inequality_2.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextInequalities.pl", @@ -53,9 +53,9 @@ $ans = Compute(" x < $n "); BEGIN_PGML -Solve [`` [$f] > [$c] ``]. +Solve [`` [$f] > [$c] ``]. -[_______________]{$ans} +[_______________]{$ans} Use >= for `\ge` and <= for `\le` diff --git a/Contrib/CCCS/AlgebraicLiteracy/Linear_Inequalities/Inequality_3.pg b/Contrib/CCCS/AlgebraicLiteracy/Linear_Inequalities/Inequality_3.pg index cd6dd4a7c4..a68db4997b 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Linear_Inequalities/Inequality_3.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Linear_Inequalities/Inequality_3.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextInequalities.pl", @@ -60,9 +60,9 @@ if($coef>0){$ans=Compute("x<=$n");} else{$ans=Compute("x>=$n");} BEGIN_PGML -Solve the inequality, [`` [$f] \le [$g] ``]. +Solve the inequality, [`` [$f] \le [$g] ``]. -[_______________]{$ans} +[_______________]{$ans} Use >= for `\ge` and <= for `\le` diff --git a/Contrib/CCCS/AlgebraicLiteracy/Linear_Inequalities/Inequality_4.pg b/Contrib/CCCS/AlgebraicLiteracy/Linear_Inequalities/Inequality_4.pg index 6d49225759..433ab4f957 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Linear_Inequalities/Inequality_4.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Linear_Inequalities/Inequality_4.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextInequalities.pl", @@ -60,9 +60,9 @@ if($coef>0){$ans=Compute("x>$n");} else{$ans=Compute("x<$n");} BEGIN_PGML -Solve the inequality, [`` [$f] > [$g] ``]. +Solve the inequality, [`` [$f] > [$g] ``]. -[_______________]{$ans} +[_______________]{$ans} Use >= for `\ge` and <= for `\le` diff --git a/Contrib/CCCS/AlgebraicLiteracy/Linear_Inequalities/Inequality_5.pg b/Contrib/CCCS/AlgebraicLiteracy/Linear_Inequalities/Inequality_5.pg index fa5ec37406..08e1250204 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Linear_Inequalities/Inequality_5.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Linear_Inequalities/Inequality_5.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextInequalities.pl", @@ -64,7 +64,7 @@ BEGIN_PGML Solve the inequality, [`` [$f] < [$g] ``]. Enter your answer using fractions or integers. -[_______________]{$ans} +[_______________]{$ans} Use >= for `\ge` and <= for `\le` diff --git a/Contrib/CCCS/AlgebraicLiteracy/Linear_Inequalities/Inequality_6.pg b/Contrib/CCCS/AlgebraicLiteracy/Linear_Inequalities/Inequality_6.pg index 2d393ec05c..878a4a291e 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Linear_Inequalities/Inequality_6.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Linear_Inequalities/Inequality_6.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextInequalities.pl", @@ -66,7 +66,7 @@ BEGIN_PGML Solve the inequality, [`` [$f] \le [$G] ``]. Enter your answer using fractions or integers. -[_______________]{$ans} +[_______________]{$ans} Use >= for `\ge` and <= for `\le` diff --git a/Contrib/CCCS/AlgebraicLiteracy/Linear_Inequalities/Inequality_7.pg b/Contrib/CCCS/AlgebraicLiteracy/Linear_Inequalities/Inequality_7.pg index f9d099f308..9cdd6bf029 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Linear_Inequalities/Inequality_7.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Linear_Inequalities/Inequality_7.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextInequalities.pl", @@ -56,9 +56,9 @@ if($a>0){$ans=Compute("x<$n");} else{$ans=Compute("x>$n");} BEGIN_PGML -Solve the inequality, [`` [$c] > [$f] ``]. +Solve the inequality, [`` [$c] > [$f] ``]. -[_______________]{$ans} +[_______________]{$ans} Use >= for `\ge` and <= for `\le` diff --git a/Contrib/CCCS/AlgebraicLiteracy/Linear_Inequalities/Inequality_Fraction_1.pg b/Contrib/CCCS/AlgebraicLiteracy/Linear_Inequalities/Inequality_Fraction_1.pg index bb31f7aea6..a99a09b88d 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Linear_Inequalities/Inequality_Fraction_1.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Linear_Inequalities/Inequality_Fraction_1.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextInequalities.pl", @@ -65,7 +65,7 @@ BEGIN_PGML Solve the inequality, [`` [$f] \ge [$c] ``]. Enter your answer using fractions or integers. -[_______________]{$ans} +[_______________]{$ans} Use >= for `\ge` and <= for `\le` diff --git a/Contrib/CCCS/AlgebraicLiteracy/Linear_Inequalities/Inequality_Fraction_2.pg b/Contrib/CCCS/AlgebraicLiteracy/Linear_Inequalities/Inequality_Fraction_2.pg index 9f78f9887c..9bb1f16335 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Linear_Inequalities/Inequality_Fraction_2.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Linear_Inequalities/Inequality_Fraction_2.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextInequalities.pl", @@ -70,7 +70,7 @@ BEGIN_PGML Solve the inequality, [`` [$f] < [$C] ``]. Enter your answer using fractions or integers. -[_______________]{$ans} +[_______________]{$ans} Use >= for `\ge` and <= for `\le` diff --git a/Contrib/CCCS/AlgebraicLiteracy/Linear_Inequalities/Inequality_Fraction_3.pg b/Contrib/CCCS/AlgebraicLiteracy/Linear_Inequalities/Inequality_Fraction_3.pg index e4ffe98041..d70cbf965a 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Linear_Inequalities/Inequality_Fraction_3.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Linear_Inequalities/Inequality_Fraction_3.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextInequalities.pl", @@ -65,7 +65,7 @@ BEGIN_PGML Solve the inequality, [`` [$f] < [$d] ``]. Write your answer using fractions or integers. -[_______________]{$ans} +[_______________]{$ans} Use >= for `\ge` and <= for `\le` diff --git a/Contrib/CCCS/AlgebraicLiteracy/Linear_Inequalities/Number_Line_1.pg b/Contrib/CCCS/AlgebraicLiteracy/Linear_Inequalities/Number_Line_1.pg index 2888db7194..61d1579728 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Linear_Inequalities/Number_Line_1.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Linear_Inequalities/Number_Line_1.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -15,14 +15,14 @@ ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", # Standard macros for PG language "MathObjects.pl", "PGgraphmacros.pl", "contextInequalities.pl", - "AnswerFormatHelp.pl", + "problemRandomize.pl", "contextFraction.pl", "PGML.pl", @@ -84,7 +84,7 @@ Express the region shaded on the number line as an inequality. >> [@ image(insertGraph($gr), tex_size=>16000, width=>800, height=>100), @]* << -[_______________]{$ans} +[_______________]{$ans} Use >= for [`\ge`] and <= for [`\le`]. diff --git a/Contrib/CCCS/AlgebraicLiteracy/Linear_Inequalities/Number_Line_2.pg b/Contrib/CCCS/AlgebraicLiteracy/Linear_Inequalities/Number_Line_2.pg index dcaae5e0c6..b4d6cf14fb 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Linear_Inequalities/Number_Line_2.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Linear_Inequalities/Number_Line_2.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -15,14 +15,14 @@ ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", # Standard macros for PG language "MathObjects.pl", "PGgraphmacros.pl", "contextInequalities.pl", - "AnswerFormatHelp.pl", + "problemRandomize.pl", "contextFraction.pl", "PGML.pl", @@ -84,7 +84,7 @@ Express the region shaded on the number line as an inequality. >> [@ image(insertGraph($gr), tex_size=>16000, width=>800, height=>100), @]* << -[_______________]{$ans} +[_______________]{$ans} Use >= for [`\ge`] and <= for [`\le`]. diff --git a/Contrib/CCCS/AlgebraicLiteracy/Percents/Convert_Percents_1.pg b/Contrib/CCCS/AlgebraicLiteracy/Percents/Convert_Percents_1.pg index 94796114a2..97ec18389e 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Percents/Convert_Percents_1.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Percents/Convert_Percents_1.pg @@ -24,7 +24,7 @@ loadMacros( "PGML.pl", "PGgraphmacros.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + ); ############################################## @@ -46,9 +46,9 @@ BEGIN_PGML Convert the following percent to a decimal: -[` [$a]%= `] [________]{$ans} [@ AnswerFormatHelp("numeric") @]* +[` [$a]%= `] [________]{$ans} [@ helpLink("numeric") @]* + - END_PGML ############################################## diff --git a/Contrib/CCCS/AlgebraicLiteracy/Percents/Convert_Percents_10.pg b/Contrib/CCCS/AlgebraicLiteracy/Percents/Convert_Percents_10.pg index 0538f5153a..ff60c01eb9 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Percents/Convert_Percents_10.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Percents/Convert_Percents_10.pg @@ -24,12 +24,12 @@ loadMacros( "PGML.pl", "PGgraphmacros.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + ); ############################################## -#Convert a decimal to a percent +#Convert a decimal to a percent Context("LimitedNumeric"); @@ -46,11 +46,11 @@ TEXT(beginproblem()); BEGIN_PGML -Convert the following decimal to a percent. +Convert the following decimal to a percent. + +[` [$b]= `] [________]{$ans}`%` -[` [$b]= `] [________]{$ans}`%` - END_PGML ############################################## diff --git a/Contrib/CCCS/AlgebraicLiteracy/Percents/Convert_Percents_11.pg b/Contrib/CCCS/AlgebraicLiteracy/Percents/Convert_Percents_11.pg index 441e06aaa8..f1e321950e 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Percents/Convert_Percents_11.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Percents/Convert_Percents_11.pg @@ -24,12 +24,12 @@ loadMacros( "PGML.pl", "PGgraphmacros.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + ); ############################################## -#Convert a decimal to a percent +#Convert a decimal to a percent Context("LimitedNumeric"); @@ -46,11 +46,11 @@ TEXT(beginproblem()); BEGIN_PGML -Convert the following decimal to a percent. +Convert the following decimal to a percent. + +[` [$b]= `] [________]{$ans}`%` -[` [$b]= `] [________]{$ans}`%` - END_PGML ############################################## diff --git a/Contrib/CCCS/AlgebraicLiteracy/Percents/Convert_Percents_2.pg b/Contrib/CCCS/AlgebraicLiteracy/Percents/Convert_Percents_2.pg index 5938690c87..3e40a256af 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Percents/Convert_Percents_2.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Percents/Convert_Percents_2.pg @@ -24,7 +24,7 @@ loadMacros( "PGML.pl", "PGgraphmacros.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + ); ############################################## @@ -46,9 +46,9 @@ BEGIN_PGML Convert the following percent to a decimal: -[` [$a]%= `] [________]{$ans} [@ AnswerFormatHelp("numeric") @]* +[` [$a]%= `] [________]{$ans} [@ helpLink("numeric") @]* + - END_PGML ############################################## diff --git a/Contrib/CCCS/AlgebraicLiteracy/Percents/Convert_Percents_3.pg b/Contrib/CCCS/AlgebraicLiteracy/Percents/Convert_Percents_3.pg index 5cdea7dafe..34257e42a2 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Percents/Convert_Percents_3.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Percents/Convert_Percents_3.pg @@ -24,7 +24,7 @@ loadMacros( "PGML.pl", "PGgraphmacros.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + ); ############################################## @@ -46,9 +46,9 @@ BEGIN_PGML Convert the following percent to a decimal: -[` [$a]%= `] [________]{$ans} [@ AnswerFormatHelp("numeric") @]* +[` [$a]%= `] [________]{$ans} [@ helpLink("numeric") @]* + - END_PGML ############################################## diff --git a/Contrib/CCCS/AlgebraicLiteracy/Percents/Convert_Percents_4.pg b/Contrib/CCCS/AlgebraicLiteracy/Percents/Convert_Percents_4.pg index 6e990075ea..6a91d267fa 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Percents/Convert_Percents_4.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Percents/Convert_Percents_4.pg @@ -24,13 +24,13 @@ loadMacros( "PGML.pl", "PGgraphmacros.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "fixedPrecision.pl", ); ############################################## -#Convert a fraction to a percent +#Convert a fraction to a percent Context("LimitedNumeric"); Context()->{format}{number} = "%.1f"; @@ -59,9 +59,9 @@ BEGIN_PGML Convert the following fraction to a percent without using a calculator. Round your answer to the nearest tenth of a percent. -[` [$a]/[$b]= `] [________]{$ans}`%` +[` [$a]/[$b]= `] [________]{$ans}`%` + - END_PGML ############################################## diff --git a/Contrib/CCCS/AlgebraicLiteracy/Percents/Convert_Percents_5.pg b/Contrib/CCCS/AlgebraicLiteracy/Percents/Convert_Percents_5.pg index 44edb63e06..ebdbcac147 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Percents/Convert_Percents_5.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Percents/Convert_Percents_5.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -45,7 +45,7 @@ BEGIN_PGML Convert the following percent to a fraction. Make sure to reduce your fraction to lowest terms. - [`` [$a]%= ``] [_______________]{$ans} [@ AnswerFormatHelp("numeric") @]* + [`` [$a]%= ``] [_______________]{$ans} [@ helpLink("numeric") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Percents/Convert_Percents_6.pg b/Contrib/CCCS/AlgebraicLiteracy/Percents/Convert_Percents_6.pg index e67d3c7a95..df80f9926d 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Percents/Convert_Percents_6.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Percents/Convert_Percents_6.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -45,7 +45,7 @@ BEGIN_PGML Convert the following percent to a fraction. Make sure to reduce your fraction to lowest terms. - [`` [$a]%= ``] [_______________]{$ans} [@ AnswerFormatHelp("numeric") @]* + [`` [$a]%= ``] [_______________]{$ans} [@ helpLink("numeric") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Percents/Convert_Percents_7.pg b/Contrib/CCCS/AlgebraicLiteracy/Percents/Convert_Percents_7.pg index 88cb8e3383..9afc60e3cd 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Percents/Convert_Percents_7.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Percents/Convert_Percents_7.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -45,7 +45,7 @@ BEGIN_PGML Convert the following percent to a fraction. Make sure to reduce your fraction to lowest terms. - [`` [$a]%= ``] [_______________]{$ans} [@ AnswerFormatHelp("numeric") @]* + [`` [$a]%= ``] [_______________]{$ans} [@ helpLink("numeric") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Percents/Convert_Percents_8.pg b/Contrib/CCCS/AlgebraicLiteracy/Percents/Convert_Percents_8.pg index 6b7f3f26ab..0dbd8c0b13 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Percents/Convert_Percents_8.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Percents/Convert_Percents_8.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -47,7 +47,7 @@ BEGIN_PGML Convert the following percent to a fraction. Make sure to reduce your fraction to lowest terms. - [`` [$a]%= ``] [_______________]{$ans} [@ AnswerFormatHelp("numeric") @]* + [`` [$a]%= ``] [_______________]{$ans} [@ helpLink("numeric") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Percents/Convert_Percents_9.pg b/Contrib/CCCS/AlgebraicLiteracy/Percents/Convert_Percents_9.pg index 4d335f307d..1acec4465b 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Percents/Convert_Percents_9.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Percents/Convert_Percents_9.pg @@ -24,12 +24,12 @@ loadMacros( "PGML.pl", "PGgraphmacros.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + ); ############################################## -#Convert a decimal to a percent +#Convert a decimal to a percent Context("LimitedNumeric"); @@ -46,11 +46,11 @@ TEXT(beginproblem()); BEGIN_PGML -Convert the following decimal to a percent. +Convert the following decimal to a percent. + +[` [$b]= `] [________]{$ans}`%` -[` [$b]= `] [________]{$ans}`%` - END_PGML ############################################## diff --git a/Contrib/CCCS/AlgebraicLiteracy/Percents/Convert_Percents_Table_1.pg b/Contrib/CCCS/AlgebraicLiteracy/Percents/Convert_Percents_Table_1.pg index 3e55075d4b..7053f85047 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Percents/Convert_Percents_Table_1.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Percents/Convert_Percents_Table_1.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGgraders.pl", @@ -66,7 +66,7 @@ row( '\(40\)','\(2/5\)' , '\(.4\)' ) . row( "\($a\)", ans_rule(5), ans_rule(5) ) . row( ans_rule(5), "$e", ans_rule(5) ) . row( ans_rule(5), ans_rule(5) , "\($d\)" ) . -endtable().$ECENTER; +endtable().$ECENTER; ########################### @@ -75,7 +75,7 @@ endtable().$ECENTER; BEGIN_PGML Complete the table of values. -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* [@ $table @]*** END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Percents/Convert_Percents_Table_2.pg b/Contrib/CCCS/AlgebraicLiteracy/Percents/Convert_Percents_Table_2.pg index 7b658538ac..68732534be 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Percents/Convert_Percents_Table_2.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Percents/Convert_Percents_Table_2.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGgraders.pl", @@ -66,7 +66,7 @@ row( '\(40\)','\(2/5\)' , '\(.4\)' ) . row( "\($a\)", ans_rule(5), ans_rule(5) ) . row( ans_rule(5), "$e", ans_rule(5) ) . row( ans_rule(5), ans_rule(5) , "\($d\)" ) . -endtable().$ECENTER; +endtable().$ECENTER; ########################### @@ -75,7 +75,7 @@ endtable().$ECENTER; BEGIN_PGML Complete the table of values. -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* [@ $table @]*** END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Percents/Convert_Percents_Table_3.pg b/Contrib/CCCS/AlgebraicLiteracy/Percents/Convert_Percents_Table_3.pg index b8e65d872c..4aa98f2455 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Percents/Convert_Percents_Table_3.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Percents/Convert_Percents_Table_3.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGgraders.pl", @@ -66,7 +66,7 @@ row( '\(40\)','\(2/5\)' , '\(.4\)' ) . row( "\($a\)", ans_rule(5), ans_rule(5) ) . row( ans_rule(5), "$e", ans_rule(5) ) . row( ans_rule(5), ans_rule(5) , "\($d\)" ) . -endtable().$ECENTER; +endtable().$ECENTER; ########################### @@ -75,7 +75,7 @@ endtable().$ECENTER; BEGIN_PGML Complete the table of values. -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* [@ $table @]*** END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Percents/Percent_Application_1.pg b/Contrib/CCCS/AlgebraicLiteracy/Percents/Percent_Application_1.pg index 17c311788c..aa558de753 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Percents/Percent_Application_1.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Percents/Percent_Application_1.pg @@ -24,13 +24,13 @@ loadMacros( "PGML.pl", "PGgraphmacros.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "fixedPrecision.pl", ); ############################################## -#Percent word problem +#Percent word problem Context("LimitedNumeric"); Context()->{format}{number} = "%.1f"; @@ -58,7 +58,7 @@ One serving of wheat square cereal has [$a] grams of fiber, which is [$b]% of th [________]{$ans} g of fiber - + END_PGML ############################################## diff --git a/Contrib/CCCS/AlgebraicLiteracy/Percents/Percent_Application_2.pg b/Contrib/CCCS/AlgebraicLiteracy/Percents/Percent_Application_2.pg index 24f69bf2f5..de7e9ce503 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Percents/Percent_Application_2.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Percents/Percent_Application_2.pg @@ -24,13 +24,13 @@ loadMacros( "PGML.pl", "PGgraphmacros.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "fixedPrecision.pl", ); ############################################## -#Percent word problem +#Percent word problem Context("LimitedNumeric"); Context()->{format}{number} = "%.1f"; @@ -56,9 +56,9 @@ BEGIN_PGML Mitzi received some gourmet brownies as a gift. The wrapper said each brownie was [$a] calories, and had [$b] calories of fat. What percent of the total calories in each brownie comes from fat? (Round your answer to the nearest tenth of a percent.) - [________]{$ans}`%` + [________]{$ans}`%` + - END_PGML ############################################## diff --git a/Contrib/CCCS/AlgebraicLiteracy/Percents/Percent_Application_3.pg b/Contrib/CCCS/AlgebraicLiteracy/Percents/Percent_Application_3.pg index 05449404f1..bac66cbdcf 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Percents/Percent_Application_3.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Percents/Percent_Application_3.pg @@ -24,13 +24,13 @@ loadMacros( "PGML.pl", "PGgraphmacros.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "fixedPrecision.pl", ); ############################################## -#Percent word problem +#Percent word problem Context("LimitedNumeric"); Context()->{format}{number} = "%.0f"; @@ -58,7 +58,7 @@ If [$a]% of all music downloads from an online music store are country music, ho [________]{$ans} country songs - + END_PGML ############################################## diff --git a/Contrib/CCCS/AlgebraicLiteracy/Percents/Percent_Application_4.pg b/Contrib/CCCS/AlgebraicLiteracy/Percents/Percent_Application_4.pg index 903e4f0437..c6f5c7a86f 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Percents/Percent_Application_4.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Percents/Percent_Application_4.pg @@ -24,13 +24,13 @@ loadMacros( "PGML.pl", "PGgraphmacros.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "fixedPrecision.pl", ); ############################################## -#Percent word problem +#Percent word problem Context("LimitedNumeric"); Context()->{format}{number} = "%.1f"; @@ -56,9 +56,9 @@ BEGIN_PGML Evelyn bought a new smartphone for $[$a] plus tax. She was surprised when she got the receipt and saw that the tax was $[$b]. What was the sales tax rate for this purchase? (Round your answer to the nearest tenth of a percent.) - [________]{$ans}`%` + [________]{$ans}`%` + - END_PGML ############################################## diff --git a/Contrib/CCCS/AlgebraicLiteracy/Percents/Percent_Application_5.pg b/Contrib/CCCS/AlgebraicLiteracy/Percents/Percent_Application_5.pg index 42615ae5f7..2d432f3bae 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Percents/Percent_Application_5.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Percents/Percent_Application_5.pg @@ -24,13 +24,13 @@ loadMacros( "PGML.pl", "PGgraphmacros.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "fixedPrecision.pl", ); ############################################## -#Percent word problem +#Percent word problem Context("LimitedNumeric"); Context()->{format}{number} = "%.0f"; @@ -56,9 +56,9 @@ BEGIN_PGML Helene is a realtor. She receives [$a]% commission when she sells a house. How much commission will she receive for selling a house that costs $[$b]k? (Round your answer to the nearest dollar.) -$[________]{$ans} +$[________]{$ans} + - END_PGML ############################################## diff --git a/Contrib/CCCS/AlgebraicLiteracy/Percents/Percent_Application_6.pg b/Contrib/CCCS/AlgebraicLiteracy/Percents/Percent_Application_6.pg index bd5c6d8324..5f178c3783 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Percents/Percent_Application_6.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Percents/Percent_Application_6.pg @@ -24,13 +24,13 @@ loadMacros( "PGML.pl", "PGgraphmacros.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "fixedPrecision.pl", ); ############################################## -#Percent word problem +#Percent word problem Context("LimitedNumeric"); Context()->{format}{number} = "%.1f"; @@ -56,9 +56,9 @@ BEGIN_PGML Homer received $[$b] commission when he sold a car for $[$a]. What rate of commission did he get? (Round your answer to the nearest tenth of a percent.) - [________]{$ans}`%` + [________]{$ans}`%` + - END_PGML ############################################## diff --git a/Contrib/CCCS/AlgebraicLiteracy/Percents/Percent_Decrease_1.pg b/Contrib/CCCS/AlgebraicLiteracy/Percents/Percent_Decrease_1.pg index 1b1a86e819..01b81a7ca9 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Percents/Percent_Decrease_1.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Percents/Percent_Decrease_1.pg @@ -24,13 +24,13 @@ loadMacros( "PGML.pl", "PGgraphmacros.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "fixedPrecision.pl", ); ############################################## -#Percent word problem +#Percent word problem Context("LimitedNumeric"); Context()->{format}{number} = "%.1f"; @@ -56,9 +56,9 @@ BEGIN_PGML The average price of a gallon of gas in one city in June 2014 was $[$b]. The average price in that city in July was $[$a]. Find the percent decrease. (Round your answer to the nearest tenth of a percent.) - [________]{$ans}`%` + [________]{$ans}`%` + - END_PGML ############################################## diff --git a/Contrib/CCCS/AlgebraicLiteracy/Percents/Percent_Decrease_2.pg b/Contrib/CCCS/AlgebraicLiteracy/Percents/Percent_Decrease_2.pg index 0218ca5582..a23f5b58cb 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Percents/Percent_Decrease_2.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Percents/Percent_Decrease_2.pg @@ -24,13 +24,13 @@ loadMacros( "PGML.pl", "PGgraphmacros.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "fixedPrecision.pl", ); ############################################## -#Percent word problem +#Percent word problem Context("LimitedNumeric"); Context()->{format}{number} = "%.1f"; @@ -56,9 +56,9 @@ BEGIN_PGML The population of a town in Wyoming was [$b] in 2010. The population of the same town is projected to be about [$a] in 2020. Find the projected percent decrease. (Round your answer to the nearest tenth of a percent.) - [________]{$ans}`%` + [________]{$ans}`%` + - END_PGML ############################################## diff --git a/Contrib/CCCS/AlgebraicLiteracy/Percents/Percent_Decrease_3.pg b/Contrib/CCCS/AlgebraicLiteracy/Percents/Percent_Decrease_3.pg index 15c397e31b..88f186ba47 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Percents/Percent_Decrease_3.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Percents/Percent_Decrease_3.pg @@ -24,13 +24,13 @@ loadMacros( "PGML.pl", "PGgraphmacros.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "fixedPrecision.pl", ); ############################################## -#Percent word problem +#Percent word problem Context("LimitedNumeric"); Context()->{format}{number} = "%.1f"; @@ -56,9 +56,9 @@ BEGIN_PGML A shirt is marked down from $[$b] to $[$a]. What is the percent discount? (Round your answer to the nearest tenth of a percent.) - [________]{$ans}`%` + [________]{$ans}`%` + - END_PGML ############################################## diff --git a/Contrib/CCCS/AlgebraicLiteracy/Percents/Percent_Increase_1.pg b/Contrib/CCCS/AlgebraicLiteracy/Percents/Percent_Increase_1.pg index 6247290346..b961fe1a44 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Percents/Percent_Increase_1.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Percents/Percent_Increase_1.pg @@ -24,13 +24,13 @@ loadMacros( "PGML.pl", "PGgraphmacros.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "fixedPrecision.pl", ); ############################################## -#Percent word problem +#Percent word problem Context("LimitedNumeric"); Context()->{format}{number} = "%.1f"; @@ -56,9 +56,9 @@ BEGIN_PGML In 2017, the California governor proposed raising community college fees from $[$a] per unit to $[$b] per unit. Find the percent increase. (Round your answer to the nearest tenth of a percent.) - [________]{$ans}`%` + [________]{$ans}`%` + - END_PGML ############################################## diff --git a/Contrib/CCCS/AlgebraicLiteracy/Percents/Percent_Increase_2.pg b/Contrib/CCCS/AlgebraicLiteracy/Percents/Percent_Increase_2.pg index ce31f1e185..69344fdc40 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Percents/Percent_Increase_2.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Percents/Percent_Increase_2.pg @@ -24,13 +24,13 @@ loadMacros( "PGML.pl", "PGgraphmacros.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "fixedPrecision.pl", ); ############################################## -#Percent word problem +#Percent word problem Context("LimitedNumeric"); Context()->{format}{number} = "%.1f"; @@ -56,9 +56,9 @@ BEGIN_PGML In 2011, the IRS increased the deductible mileage cost to [$b] cents from [$a] cents. Find the percent increase. (Round your answer to the nearest tenth of a percent.) - [________]{$ans}`%` + [________]{$ans}`%` + - END_PGML ############################################## diff --git a/Contrib/CCCS/AlgebraicLiteracy/Percents/Percent_Increase_3.pg b/Contrib/CCCS/AlgebraicLiteracy/Percents/Percent_Increase_3.pg index 7b0ee5663c..5963a15a43 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Percents/Percent_Increase_3.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Percents/Percent_Increase_3.pg @@ -24,13 +24,13 @@ loadMacros( "PGML.pl", "PGgraphmacros.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "fixedPrecision.pl", ); ############################################## -#Percent word problem +#Percent word problem Context("LimitedNumeric"); Context()->{format}{number} = "%.1f"; @@ -56,9 +56,9 @@ BEGIN_PGML In 2016, Sally's salary increased from $[$a]k to $[$b]k. Find the percent increase. (Round your answer to the nearest tenth of a percent.) - [________]{$ans}`%` + [________]{$ans}`%` + - END_PGML ############################################## diff --git a/Contrib/CCCS/AlgebraicLiteracy/Percents/Percent_Increase_4.pg b/Contrib/CCCS/AlgebraicLiteracy/Percents/Percent_Increase_4.pg index 018284d950..e3301319c3 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Percents/Percent_Increase_4.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Percents/Percent_Increase_4.pg @@ -24,13 +24,13 @@ loadMacros( "PGML.pl", "PGgraphmacros.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "fixedPrecision.pl", ); ############################################## -#Percent word problem +#Percent word problem Context("LimitedNumeric"); Context()->{format}{number} = "%.1f"; @@ -56,9 +56,9 @@ BEGIN_PGML At the campus coffee cart, a medium coffee costs $[$a]. MaryAnne brings $[$b] with her when she buys a cup of coffee and leaves the change as a tip. What percent tip does she leave? (Round your answer to the nearest tenth of a percent.) - [________]{$ans}`%` + [________]{$ans}`%` + - END_PGML ############################################## diff --git a/Contrib/CCCS/AlgebraicLiteracy/Percents/Percent_Word_Problem_1.pg b/Contrib/CCCS/AlgebraicLiteracy/Percents/Percent_Word_Problem_1.pg index 5d9e1ac15c..083f19c934 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Percents/Percent_Word_Problem_1.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Percents/Percent_Word_Problem_1.pg @@ -24,13 +24,13 @@ loadMacros( "PGML.pl", "PGgraphmacros.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "fixedPrecision.pl", ); ############################################## -#Percent word problem +#Percent word problem Context("LimitedNumeric"); Context()->{format}{number} = "%.1f"; @@ -56,9 +56,9 @@ BEGIN_PGML What percent of [$a] is [$b]? (Round your answer to the nearest tenth of a percent.) - [________]{$ans}`%` + [________]{$ans}`%` + - END_PGML ############################################## diff --git a/Contrib/CCCS/AlgebraicLiteracy/Percents/Percent_Word_Problem_2.pg b/Contrib/CCCS/AlgebraicLiteracy/Percents/Percent_Word_Problem_2.pg index 5a7012b44b..25fa47f0c8 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Percents/Percent_Word_Problem_2.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Percents/Percent_Word_Problem_2.pg @@ -24,13 +24,13 @@ loadMacros( "PGML.pl", "PGgraphmacros.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "fixedPrecision.pl", ); ############################################## -#Percent word problem +#Percent word problem Context("LimitedNumeric"); Context()->{format}{number} = "%.1f"; @@ -58,7 +58,7 @@ BEGIN_PGML [________]{$ans} - + END_PGML ############################################## diff --git a/Contrib/CCCS/AlgebraicLiteracy/Percents/Percent_Word_Problem_3.pg b/Contrib/CCCS/AlgebraicLiteracy/Percents/Percent_Word_Problem_3.pg index d8c1377832..cf4407598f 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Percents/Percent_Word_Problem_3.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Percents/Percent_Word_Problem_3.pg @@ -24,13 +24,13 @@ loadMacros( "PGML.pl", "PGgraphmacros.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "fixedPrecision.pl", ); ############################################## -#Percent word problem +#Percent word problem Context("LimitedNumeric"); Context()->{format}{number} = "%.1f"; @@ -58,7 +58,7 @@ BEGIN_PGML [________]{$ans} - + END_PGML ############################################## diff --git a/Contrib/CCCS/AlgebraicLiteracy/Percents/Percent_Word_Problem_4.pg b/Contrib/CCCS/AlgebraicLiteracy/Percents/Percent_Word_Problem_4.pg index 2c07587abd..b2f02fb5d8 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Percents/Percent_Word_Problem_4.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Percents/Percent_Word_Problem_4.pg @@ -24,13 +24,13 @@ loadMacros( "PGML.pl", "PGgraphmacros.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "fixedPrecision.pl", ); ############################################## -#Percent word problem +#Percent word problem Context("LimitedNumeric"); Context()->{format}{number} = "%.1f"; @@ -56,9 +56,9 @@ BEGIN_PGML [$b] is what percent of [$a]? (Round your answer to the nearest tenth of a percent.) - [________]{$ans}`%` + [________]{$ans}`%` + - END_PGML ############################################## diff --git a/Contrib/CCCS/AlgebraicLiteracy/Percents/Percent_Word_Problem_5.pg b/Contrib/CCCS/AlgebraicLiteracy/Percents/Percent_Word_Problem_5.pg index 7fe797767d..6d09ffba36 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Percents/Percent_Word_Problem_5.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Percents/Percent_Word_Problem_5.pg @@ -24,13 +24,13 @@ loadMacros( "PGML.pl", "PGgraphmacros.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "fixedPrecision.pl", ); ############################################## -#Percent word problem +#Percent word problem Context("LimitedNumeric"); Context()->{format}{number} = "%.1f"; @@ -58,7 +58,7 @@ What is [$a]% of [$b]? (Round your answer to the nearest tenth.) [________]{$ans} - + END_PGML ############################################## diff --git a/Contrib/CCCS/AlgebraicLiteracy/Percents/Percent_Word_Problem_6.pg b/Contrib/CCCS/AlgebraicLiteracy/Percents/Percent_Word_Problem_6.pg index 62a9b263e6..23857f30ad 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Percents/Percent_Word_Problem_6.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Percents/Percent_Word_Problem_6.pg @@ -24,13 +24,13 @@ loadMacros( "PGML.pl", "PGgraphmacros.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "fixedPrecision.pl", ); ############################################## -#Percent word problem +#Percent word problem Context("LimitedNumeric"); Context()->{format}{number} = "%.1f"; @@ -58,7 +58,7 @@ BEGIN_PGML [________]{$ans} - + END_PGML ############################################## diff --git a/Contrib/CCCS/AlgebraicLiteracy/Percents/Simple_Interest_1.pg b/Contrib/CCCS/AlgebraicLiteracy/Percents/Simple_Interest_1.pg index 7a62a0d6dd..9343795234 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Percents/Simple_Interest_1.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Percents/Simple_Interest_1.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -46,7 +46,7 @@ $ans = $P*$r*$t/100; BEGIN_PGML Find the simple interest earned after [$t] years on $[$P] at an interest rate of [$r]%. -[_________________]{$ans} +[_________________]{$ans} *Hint: I = PRT* diff --git a/Contrib/CCCS/AlgebraicLiteracy/Percents/Simple_Interest_2.pg b/Contrib/CCCS/AlgebraicLiteracy/Percents/Simple_Interest_2.pg index 0841cac762..57f4c01b3f 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Percents/Simple_Interest_2.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Percents/Simple_Interest_2.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -46,7 +46,7 @@ $ans = $P*$r/100*$t/12; BEGIN_PGML Find the simple interest earned after [$t] months on $[$P] at an interest rate of [$r]%. -[_________________]{$ans} +[_________________]{$ans} *Hint: I = PRT* diff --git a/Contrib/CCCS/AlgebraicLiteracy/Percents/Simple_Interest_3.pg b/Contrib/CCCS/AlgebraicLiteracy/Percents/Simple_Interest_3.pg index a5a9cab10c..bbb5572f2e 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Percents/Simple_Interest_3.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Percents/Simple_Interest_3.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -46,7 +46,7 @@ $I = $P*$r/100*$t; BEGIN_PGML Find the principal invested if [`$[$I]`] interest was earned in [$t] years at an interest rate of [$r]%. -[_________________]{$P} +[_________________]{$P} *Hint: I = PRT* diff --git a/Contrib/CCCS/AlgebraicLiteracy/Percents/Simple_Interest_4.pg b/Contrib/CCCS/AlgebraicLiteracy/Percents/Simple_Interest_4.pg index ff6dbb9a16..a781e18d7b 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Percents/Simple_Interest_4.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Percents/Simple_Interest_4.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); diff --git a/Contrib/CCCS/AlgebraicLiteracy/Polynomials/Add_1.pg b/Contrib/CCCS/AlgebraicLiteracy/Polynomials/Add_1.pg index 4f8b7c10e9..5005c4012c 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Polynomials/Add_1.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Polynomials/Add_1.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserImplicitEquation.pl", @@ -62,7 +62,7 @@ Add the polynomials: [`([$f1]) + ([$f2])`] -[_________________]{$ans} +[_________________]{$ans} END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Polynomials/Intro_1.pg b/Contrib/CCCS/AlgebraicLiteracy/Polynomials/Intro_1.pg index b7d250f068..79de3125dc 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Polynomials/Intro_1.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Polynomials/Intro_1.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserImplicitEquation.pl", @@ -50,7 +50,7 @@ BEGIN_PGML What is the degrees of the polynomial, [`[$f]`]? -degree = [_________________]{$n} +degree = [_________________]{$n} END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Polynomials/Subtract_1.pg b/Contrib/CCCS/AlgebraicLiteracy/Polynomials/Subtract_1.pg index 4ea6957bd3..4e2d44c1b3 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Polynomials/Subtract_1.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Polynomials/Subtract_1.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserImplicitEquation.pl", @@ -65,7 +65,7 @@ Subtract the polynomials: [`([$f1]) - ([$f2])`] -[_________________]{$ans} +[_________________]{$ans} END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Rational_Equations/Rational_Equations_1.pg b/Contrib/CCCS/AlgebraicLiteracy/Rational_Equations/Rational_Equations_1.pg index 87c6dfba8e..1be60bbdb2 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Rational_Equations/Rational_Equations_1.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Rational_Equations/Rational_Equations_1.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -59,12 +59,12 @@ $ans2=Fraction($ans1); BEGIN_PGML -Solve the rational equation. Enter the answer as a reduced fraction. If there is no answer, enter "NONE". +Solve the rational equation. Enter the answer as a reduced fraction. If there is no answer, enter "NONE". [`\dfrac{[$a]}{x+[$b]} + \dfrac{[$c]}{x+[$d]}=0`] -[`x`] = [_________________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +[`x`] = [_________________]{$ans2} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Rational_Equations/Rational_Equations_2.pg b/Contrib/CCCS/AlgebraicLiteracy/Rational_Equations/Rational_Equations_2.pg index 4d0333bc7a..0d40af6640 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Rational_Equations/Rational_Equations_2.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Rational_Equations/Rational_Equations_2.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -60,12 +60,12 @@ $ans2=Fraction($ans1); BEGIN_PGML -Solve the rational equation. Enter the answer as a reduced fraction. If there is no answer, enter "NONE". +Solve the rational equation. Enter the answer as a reduced fraction. If there is no answer, enter "NONE". [`\dfrac{[$a]}{x+[$b]} = \dfrac{[$c]}{x+[$d]}`] -[`x`] = [_________________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +[`x`] = [_________________]{$ans2} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Rational_Equations/Rational_Equations_3.pg b/Contrib/CCCS/AlgebraicLiteracy/Rational_Equations/Rational_Equations_3.pg index 190468366d..6cbd3db9e5 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Rational_Equations/Rational_Equations_3.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Rational_Equations/Rational_Equations_3.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -58,12 +58,12 @@ $ans2=Fraction($ans1); BEGIN_PGML -Solve the rational equation. Enter the answer as a reduced fraction. If there is no answer, enter "NONE". +Solve the rational equation. Enter the answer as a reduced fraction. If there is no answer, enter "NONE". [`\dfrac{[$a]}{x^2} + \dfrac{[$c]}{[$b]x} + \dfrac{[$d]}{[$e]x} = 0`] -[`x`] = [_________________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +[`x`] = [_________________]{$ans2} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Rational_Equations/Rational_Equations_4.pg b/Contrib/CCCS/AlgebraicLiteracy/Rational_Equations/Rational_Equations_4.pg index 1a5448cac9..b82d38242f 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Rational_Equations/Rational_Equations_4.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Rational_Equations/Rational_Equations_4.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -67,12 +67,12 @@ $ans2=Fraction($ans1); BEGIN_PGML -Solve the rational equation. Enter the answer as a reduced fraction. If there is no answer, enter "NONE". +Solve the rational equation. Enter the answer as a reduced fraction. If there is no answer, enter "NONE". [`\dfrac{[$c]}{x+[$a]} + \dfrac{[$d]}{x+[$b]} = \dfrac{[$e]}{x^2+[$aplusb]x+[$ab]}`] -[`x`] = [_________________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +[`x`] = [_________________]{$ans2} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Rational_Equations/Rational_Equations_5.pg b/Contrib/CCCS/AlgebraicLiteracy/Rational_Equations/Rational_Equations_5.pg index 0dc2bc7802..257c391151 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Rational_Equations/Rational_Equations_5.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Rational_Equations/Rational_Equations_5.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -65,12 +65,12 @@ $ans2=Fraction($ans1); BEGIN_PGML -Solve the rational equation. Enter the answer as a reduced fraction. If there is no answer, enter "NONE". +Solve the rational equation. Enter the answer as a reduced fraction. If there is no answer, enter "NONE". [`\dfrac{[$c]}{x+[$a]} - \dfrac{[$d]}{x+[$b]} = \dfrac{[$e]x}{x^2+[$aplusb]x+[$ab]}`] -[`x`] = [_________________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +[`x`] = [_________________]{$ans2} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Rational_Equations/Rational_Equations_6.pg b/Contrib/CCCS/AlgebraicLiteracy/Rational_Equations/Rational_Equations_6.pg index f9286b8398..3c385c05ba 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Rational_Equations/Rational_Equations_6.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Rational_Equations/Rational_Equations_6.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -66,12 +66,12 @@ $ans2=Fraction($ans1); BEGIN_PGML -Solve the rational equation. Enter the answer as a reduced fraction. If there is no answer, enter "NONE". +Solve the rational equation. Enter the answer as a reduced fraction. If there is no answer, enter "NONE". [`\dfrac{[$c]}{x} + \dfrac{[$d]}{x+[$b]} = \dfrac{[$e]}{x^2+[$aplusb]x}`] -[`x`] = [_________________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +[`x`] = [_________________]{$ans2} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Rational_Equations/Rational_Equations_7.pg b/Contrib/CCCS/AlgebraicLiteracy/Rational_Equations/Rational_Equations_7.pg index 569be8f75f..c0e2e876fb 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Rational_Equations/Rational_Equations_7.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Rational_Equations/Rational_Equations_7.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -59,12 +59,12 @@ $ans2=Fraction($ans1); BEGIN_PGML -Solve the rational equation. Enter the answer as a reduced fraction. If there is no answer, enter "NONE". +Solve the rational equation. Enter the answer as a reduced fraction. If there is no answer, enter "NONE". [`\dfrac{[$c]}{x+[$a]} + \dfrac{[$d]}{x+[$b]} = \dfrac{[$e]}{x^2+[$aplusb]x+[$ab]}`] -[`x`] = [_________________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +[`x`] = [_________________]{$ans2} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Rational_Equations/Rational_Equations_8.pg b/Contrib/CCCS/AlgebraicLiteracy/Rational_Equations/Rational_Equations_8.pg index 62033b2569..c505f04090 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Rational_Equations/Rational_Equations_8.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Rational_Equations/Rational_Equations_8.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -59,12 +59,12 @@ $ans2=Fraction($ans1); BEGIN_PGML -Solve the rational equation. Enter the answer as a reduced fraction. If there is no answer, enter "NONE". +Solve the rational equation. Enter the answer as a reduced fraction. If there is no answer, enter "NONE". [`\dfrac{[$c]}{x+[$a]} - \dfrac{[$e]}{x^2+[$aplusb]x+[$ab]} = \dfrac{[$d]}{x+[$b]} `] -[`x`] = [_________________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +[`x`] = [_________________]{$ans2} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Rational_Equations/Rational_Equations_9.pg b/Contrib/CCCS/AlgebraicLiteracy/Rational_Equations/Rational_Equations_9.pg index 8769c93601..0b3d8ad890 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Rational_Equations/Rational_Equations_9.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Rational_Equations/Rational_Equations_9.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -56,12 +56,12 @@ $ans2=Fraction($ans1); BEGIN_PGML -Solve the rational equation. Enter the answer as a reduced fraction. If there is no answer, enter "NONE". +Solve the rational equation. Enter the answer as a reduced fraction. If there is no answer, enter "NONE". [`\dfrac{[$c]}{x+[$a]} - \dfrac{[$e]x}{x^2+[$aplusb]x+[$ab]} = \dfrac{[$d]}{x+[$b]} `] -[`x`] = [_________________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +[`x`] = [_________________]{$ans2} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Ratios_and_Conversions/Proportions_1.pg b/Contrib/CCCS/AlgebraicLiteracy/Ratios_and_Conversions/Proportions_1.pg index 838fc5217a..547df4edd2 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Ratios_and_Conversions/Proportions_1.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Ratios_and_Conversions/Proportions_1.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -55,7 +55,7 @@ Solve the following proportion. [`` \frac{[$a]}{[$b]}= \frac{y}{[$c]}``] - `y=` [_______________]{$ans} [@ AnswerFormatHelp("numeric") @]* + `y=` [_______________]{$ans} [@ helpLink("numeric") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Ratios_and_Conversions/Proportions_2.pg b/Contrib/CCCS/AlgebraicLiteracy/Ratios_and_Conversions/Proportions_2.pg index b4af94af7c..c307a83751 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Ratios_and_Conversions/Proportions_2.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Ratios_and_Conversions/Proportions_2.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -59,7 +59,7 @@ Solve the following proportion. [`` \frac{[$f]}{[$e]}= \frac{[$g]}{x}``] - `x=` [_______________]{$ans} [@ AnswerFormatHelp("numeric") @]* + `x=` [_______________]{$ans} [@ helpLink("numeric") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Ratios_and_Conversions/Proportions_3.pg b/Contrib/CCCS/AlgebraicLiteracy/Ratios_and_Conversions/Proportions_3.pg index aacbce1e20..54a3a1f47f 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Ratios_and_Conversions/Proportions_3.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Ratios_and_Conversions/Proportions_3.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -54,7 +54,7 @@ Solve the following proportion. Reduce your final answer. [`` \frac{\frac{[$c]}{[$a]}}{n}= \frac{[$d]}{[$b]}``] - `n=` [_______________]{$ans} [@ AnswerFormatHelp("numeric") @]* + `n=` [_______________]{$ans} [@ helpLink("numeric") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Ratios_and_Conversions/Proportions_4.pg b/Contrib/CCCS/AlgebraicLiteracy/Ratios_and_Conversions/Proportions_4.pg index 161363fffa..96e34fcc5a 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Ratios_and_Conversions/Proportions_4.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Ratios_and_Conversions/Proportions_4.pg @@ -12,7 +12,7 @@ ## MO(1) ## KEYWORDS('elementary algebra') -#solve a proportion involving a fraction. This involves dividing fractions. +#solve a proportion involving a fraction. This involves dividing fractions. ########################### # Initialization @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -50,11 +50,11 @@ $ans=Fraction($c*$b*$d,$a); BEGIN_PGML -Solve the following proportion. +Solve the following proportion. [`` \frac{w}{[$c]}= \frac{[$b]}{\frac{[$a]}{[$d]}}``] - `w=` [_______________]{$ans} [@ AnswerFormatHelp("numeric") @]* + `w=` [_______________]{$ans} [@ helpLink("numeric") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Ratios_and_Conversions/Ratios_1.pg b/Contrib/CCCS/AlgebraicLiteracy/Ratios_and_Conversions/Ratios_1.pg index 566f8dabbe..2ddc04dbd0 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Ratios_and_Conversions/Ratios_1.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Ratios_and_Conversions/Ratios_1.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -58,7 +58,7 @@ Write the given ratio as a fraction in simplest form. `[$e]` to `[$f]=` - Reduced Fraction: [_______________]{$ans} [@ AnswerFormatHelp("numeric") @]* + Reduced Fraction: [_______________]{$ans} [@ helpLink("numeric") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Ratios_and_Conversions/Ratios_2.pg b/Contrib/CCCS/AlgebraicLiteracy/Ratios_and_Conversions/Ratios_2.pg index ef380251bf..688bb147bd 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Ratios_and_Conversions/Ratios_2.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Ratios_and_Conversions/Ratios_2.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -58,7 +58,7 @@ Write the given ratio as a fraction in simplest form. `[$e]` : `[$f]=` - Reduced Fraction: [_______________]{$ans} [@ AnswerFormatHelp("numeric") @]* + Reduced Fraction: [_______________]{$ans} [@ helpLink("numeric") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Formula_1.pg b/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Formula_1.pg index 95faf42925..3dd5d6df9e 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Formula_1.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Formula_1.pg @@ -1,6 +1,6 @@ ##DESCRIPTION ## Solving a formula for a variable -## +## ##ENDDESCRIPTION ## DBsubject() ## DBchapter() @@ -20,7 +20,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -52,7 +52,7 @@ Solve the formula for [`[$B]`]. [`[$A] = \frac{1}{[$denom]}[$B][$C]`]; -[`[$B]=`][_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`[$B]=`][_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Formula_2.pg b/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Formula_2.pg index 2d3fb506ec..4788704afd 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Formula_2.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Formula_2.pg @@ -1,6 +1,6 @@ ##DESCRIPTION ## Solving a formula for a variable -## +## ##ENDDESCRIPTION ## DBsubject() ## DBchapter() @@ -20,7 +20,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -54,7 +54,7 @@ Solve the formula for [`[$x]`]. [`[$B][$y]+[$A][$x] = [$C]`]; -[`[$x]=`][_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`[$x]=`][_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Formula_3.pg b/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Formula_3.pg index 2626ad3a64..c913ad4403 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Formula_3.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Formula_3.pg @@ -1,6 +1,6 @@ ##DESCRIPTION ## Solving a formula for a variable -## +## ##ENDDESCRIPTION ## DBsubject() ## DBchapter() @@ -20,7 +20,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -53,7 +53,7 @@ Solve the formula for [`[$x]`]. [`[$B]{[$y]}^{[$exp]}+[$A][$x]=[$C]`]; -[`[$x]=`][_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`[$x]=`][_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Formula_4.pg b/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Formula_4.pg index 2a0d37c4f3..fa36d05cf5 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Formula_4.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Formula_4.pg @@ -1,6 +1,6 @@ ##DESCRIPTION ## Solving a formula for a variable -## +## ##ENDDESCRIPTION ## DBsubject() ## DBchapter() @@ -20,7 +20,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -53,7 +53,7 @@ Solve the formula for [`[$x]`]. [`[$A] = [$a]([$x]+[$n])+[$b]`]; -[`[$x]=`][_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`[$x]=`][_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Formula_5.pg b/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Formula_5.pg index c79ce8c05a..6aaf757092 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Formula_5.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Formula_5.pg @@ -1,6 +1,6 @@ ##DESCRIPTION ## Solving a formula for a variable -## +## ##ENDDESCRIPTION ## DBsubject() ## DBchapter() @@ -20,7 +20,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -52,7 +52,7 @@ Solve the formula for [`[$B]`]. [`[$A] = \frac{1}{[$denom]}[$B][$C]`]; -[`[$B]=`][_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`[$B]=`][_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_1.pg b/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_1.pg index 2b8572efa5..a597bfe313 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_1.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_1.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,9 +50,9 @@ $ans = $b-$a; # Main text BEGIN_PGML -Solve the equation [`[$x]+[$a]=[$b]`]. +Solve the equation [`[$x]+[$a]=[$b]`]. -[`[$x]=`] [_________________]{$ans} +[`[$x]=`] [_________________]{$ans} END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_10.pg b/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_10.pg index a71255dadb..11086c297d 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_10.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_10.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -57,9 +57,9 @@ Context("LimitedNumeric"); # Main text BEGIN_PGML -Solve the equation [`[$eqnleft]=[$b]+[$c]`]. +Solve the equation [`[$eqnleft]=[$b]+[$c]`]. -[`[$x]=`] [_________________]{$ans} +[`[$x]=`] [_________________]{$ans} END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_11.pg b/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_11.pg index d7b476667b..a72f3dd044 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_11.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_11.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -58,9 +58,9 @@ Context("LimitedNumeric"); # Main text BEGIN_PGML -Solve the equation [`[$equation]=[$c]`]. +Solve the equation [`[$equation]=[$c]`]. -[`[$x]=`] [_________________]{$ans} +[`[$x]=`] [_________________]{$ans} END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_12.pg b/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_12.pg index 0f8996480c..edf0a276bc 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_12.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_12.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -50,9 +50,9 @@ Context("LimitedNumeric"); # Main text BEGIN_PGML -Solve the equation [`[$equation]=[$x]`]. +Solve the equation [`[$equation]=[$x]`]. -[`[$x]=`] [_________________]{$ans} +[`[$x]=`] [_________________]{$ans} END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_13.pg b/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_13.pg index a4a04b2ea1..3657ff3dd5 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_13.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_13.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -58,9 +58,9 @@ Context("LimitedNumeric"); # Main text BEGIN_PGML -Solve the equation [`[$eqnleft]=[$eqnright]`]. +Solve the equation [`[$eqnleft]=[$eqnright]`]. -[`[$x]=`] [_________________]{$ans} +[`[$x]=`] [_________________]{$ans} END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_14.pg b/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_14.pg index f6a17bb130..cda91d323f 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_14.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_14.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -64,7 +64,7 @@ $ans = Fraction($d-$c*$a,$a+$b); BEGIN_PGML Solve the equation [`[$left]=[$d]`]. Write your answer as an integer or fraction. -[`[$x]=`] [_________________]{$ans} +[`[$x]=`] [_________________]{$ans} END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_15.pg b/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_15.pg index 5f9a1d151f..880facb9ad 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_15.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_15.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -77,7 +77,7 @@ $ans = Fraction($d*$f+$g-$c*$a,-$h-$sum); BEGIN_PGML Solve the equation [`[$left]=[$right]`]. Write your answer as an integer or fraction. -[`[$x]=`] [_________________]{$ans} +[`[$x]=`] [_________________]{$ans} END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_2.pg b/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_2.pg index 4475f3a685..40a9212ab3 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_2.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_2.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -52,9 +52,9 @@ Context("LimitedNumeric"); # Main text BEGIN_PGML -Solve the equation [`[$equation]=[$b]`]. +Solve the equation [`[$equation]=[$b]`]. -[`[$x]=`] [_________________]{$ans} +[`[$x]=`] [_________________]{$ans} END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_3.pg b/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_3.pg index 03e700cc21..2e819bd580 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_3.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_3.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -52,9 +52,9 @@ Context("LimitedNumeric"); # Main text BEGIN_PGML -Solve the equation [`\dfrac{[$x]}{[$a]}=[$b]`]. +Solve the equation [`\dfrac{[$x]}{[$a]}=[$b]`]. -[`[$x]=`] [_________________]{$ans} +[`[$x]=`] [_________________]{$ans} END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_4.pg b/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_4.pg index 01c1f42c26..0007c01afc 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_4.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_4.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -65,7 +65,7 @@ $ans = Fraction($d-$c,$a-$b); BEGIN_PGML Solve the equation [`[$left]=[$right]`]. Write your answer as an integer or fraction. -[`[$x]=`] [_________________]{$ans} +[`[$x]=`] [_________________]{$ans} END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_5.pg b/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_5.pg index c274030e15..449ebf31f3 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_5.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_5.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswers = 1; # Setup Context("LimitedNumeric"); -loadMacros("fixedPrecision.pl"); +loadMacros("fixedPrecision.pl"); $x = list_random('a', 'b', 'c', 'd', 'm', 'n', 'p' , 'q', 'r', 'x','y','z'); Context()->variables->are($x => "Real"); @@ -61,13 +61,13 @@ ANS(Compute(FixedPrecision($answer,2))->cmp->withPostFilter(AnswerHints( # Main text BEGIN_PGML -Solve the equation +Solve the equation [`\dfrac{[$a][$x]+[$b]}{[$c]} = [$d]`] Write your answer as a decimal, rounded to the nearest hundredth. -[`[$x]=`] [_________________]{$ans} +[`[$x]=`] [_________________]{$ans} END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_6.pg b/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_6.pg index cadaab7de6..133a86c55f 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_6.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_6.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -67,7 +67,7 @@ $ans = Fraction($num,$den); BEGIN_PGML Solve the equation [`[$a]-[$b]([$x]+[$c])=[$d][$x]+[$e]([$f][$x]+[$g])`]. Write your answer as an integer or fraction. -[`[$x]=`] [_________________]{$ans} +[`[$x]=`] [_________________]{$ans} END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_8.pg b/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_8.pg index d5c0e1bc2f..8e19625548 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_8.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_8.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -52,9 +52,9 @@ Context("LimitedNumeric"); # Main text BEGIN_PGML -Solve the equation [`[$b]=[$equation]`]. +Solve the equation [`[$b]=[$equation]`]. -[`[$x]=`] [_________________]{$ans} +[`[$x]=`] [_________________]{$ans} END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_9.pg b/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_9.pg index df77cb0a51..7df6552377 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_9.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_9.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -57,9 +57,9 @@ Context("LimitedNumeric"); # Main text BEGIN_PGML -Solve the equation [`[$lefteqn]=[$righteqn]`]. +Solve the equation [`[$lefteqn]=[$righteqn]`]. -[`[$x]=`] [_________________]{$ans} +[`[$x]=`] [_________________]{$ans} END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_Decimal_1.pg b/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_Decimal_1.pg index 21e9a8003a..ee023f1359 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_Decimal_1.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_Decimal_1.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -57,9 +57,9 @@ Context("LimitedNumeric"); # Main text BEGIN_PGML -Solve the equation [`[$lefteqn]=[$righteqn]`]. +Solve the equation [`[$lefteqn]=[$righteqn]`]. -[`[$x]=`] [_________________]{$ans} +[`[$x]=`] [_________________]{$ans} END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_Decimal_2.pg b/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_Decimal_2.pg index fb578ab00e..8281d5b8ba 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_Decimal_2.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_Decimal_2.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -65,11 +65,11 @@ $ans = ($B - $A)/($C + 1); # Main text BEGIN_PGML -Solve the equation +Solve the equation [`[$lefteqn]=[$righteqn]`] -[`[$x]=`] [_________________]{$ans} +[`[$x]=`] [_________________]{$ans} END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_Decimal_3.pg b/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_Decimal_3.pg index 2df5c825a8..9f4d870360 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_Decimal_3.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_Decimal_3.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -59,9 +59,9 @@ Context("LimitedNumeric"); # Main text BEGIN_PGML -Solve the equation [`[$eqnleft]=[$eqnright]`]. +Solve the equation [`[$eqnleft]=[$eqnright]`]. -[`[$x]=`] [_________________]{$ans} +[`[$x]=`] [_________________]{$ans} END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_Fraction_1.pg b/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_Fraction_1.pg index 624ebac39d..b81c90e953 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_Fraction_1.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_Fraction_1.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -61,7 +61,7 @@ $ans = Fraction($num2*$den1 - $num1*$den2, $den1*$den2); BEGIN_PGML Solve the equation [`[$x]+[$a]=[$b]`]. Write your answer as an integer or fraction. -[`[$x]=`] [_________________]{$ans} +[`[$x]=`] [_________________]{$ans} END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_Fraction_2.pg b/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_Fraction_2.pg index ee3d1f05cc..9cc4da55b6 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_Fraction_2.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_Fraction_2.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -61,7 +61,7 @@ $ans = Fraction($num2*$den1,$den2*$num1); BEGIN_PGML Solve the equation [`[$a][$x]=[$b]`]. Write your answer as an integer or fraction. -[`[$x]=`] [_________________]{$ans} +[`[$x]=`] [_________________]{$ans} END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_Fraction_3.pg b/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_Fraction_3.pg index 77d3ca9e01..28a7efeb82 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_Fraction_3.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_Fraction_3.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -69,7 +69,7 @@ $ans = Fraction($num4*$factor*$A-$num2*$B*$A,$B*$num1-$num3*$A); BEGIN_PGML Solve the equation [`[$a][$x]+[$b]=[$c][$x]+[$d]`]. Write your answer as an integer or fraction. -[`[$x]=`] [_________________]{$ans} +[`[$x]=`] [_________________]{$ans} END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_Fraction_4.pg b/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_Fraction_4.pg index 9fc8704e0f..077cfc6f50 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_Fraction_4.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_Fraction_4.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -63,13 +63,13 @@ $ans = Fraction($C*$den,$num); # Main text BEGIN_PGML -Solve the equation +Solve the equation [``\frac{[$x]}{\frac{[$num]}{[$den]}}=[$C]``] Write your answer as an integer or fraction. -[`[$x]=`] [_________________]{$ans} +[`[$x]=`] [_________________]{$ans} END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_Fraction_5.pg b/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_Fraction_5.pg index d0216393b8..aa72d7ad56 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_Fraction_5.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_Fraction_5.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -64,7 +64,7 @@ $ans = Fraction($a*$b*$factor2-$a,$b*$b); BEGIN_PGML Solve the equation [`[$A][$x]+[$B]=[$C]`]. Write your answer as an integer or fraction. -[`[$x]=`] [_________________]{$ans} +[`[$x]=`] [_________________]{$ans} END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_Fraction_6.pg b/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_Fraction_6.pg index bef4386e15..b9c7ec692f 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_Fraction_6.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_Fraction_6.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -66,7 +66,7 @@ Solve the equation: Write your answer as an integer or fraction. -[`[$x]=`] [_________________]{$ans} +[`[$x]=`] [_________________]{$ans} END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_Fraction_7.pg b/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_Fraction_7.pg index b4246e3281..fd54ad5285 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_Fraction_7.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_Fraction_7.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -61,7 +61,7 @@ $ans = Fraction($C-$A*$B, $A**2*$F); BEGIN_PGML Solve the equation [`\frac{1}{[$F]}([$a][$x]+[$B])=\frac{[$C]}{[$a]}`]. Write your answer as an integer or fraction. -[`[$x]=`] [_________________]{$ans} +[`[$x]=`] [_________________]{$ans} END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_Fraction_8.pg b/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_Fraction_8.pg index 66da22d972..651541a3d7 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_Fraction_8.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Linear_Equation_Fraction_8.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -58,7 +58,7 @@ $ans = Fraction($den*$a - $num, $den*$b); BEGIN_PGML Solve the equation [`[$a] =[$b][$x]+\frac{[$num]}{[$den]}`]. Write your answer as an integer or fraction. -[`[$x]=`] [_________________]{$ans} +[`[$x]=`] [_________________]{$ans} END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Power_Function_1.pg b/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Power_Function_1.pg index 97fe07a59d..d99ef3e520 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Power_Function_1.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Power_Function_1.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -34,7 +34,7 @@ $showPartialCorrectAnswers = 1; # Setup Context("LimitedNumeric"); -loadMacros("fixedPrecision.pl"); +loadMacros("fixedPrecision.pl"); $a = random(1,20); $b = random(1,200); @@ -56,7 +56,7 @@ ANS(Compute(FixedPrecision($answer,3))->cmp->withPostFilter(AnswerHints( BEGIN_PGML Find all positive solutions to the equation [`[$a]{x}^{[$e]}=[$b]`]. Enter your answer as a decimal rounded to the nearest thousandth. -[`x=`] [_________________]{$ans} Make sure you enter an answer with exactly 3 digits after the decimal! +[`x=`] [_________________]{$ans} Make sure you enter an answer with exactly 3 digits after the decimal! END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Power_Function_2.pg b/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Power_Function_2.pg index a1e0389bc0..52a3bd819a 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Power_Function_2.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Power_Function_2.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -34,7 +34,7 @@ $showPartialCorrectAnswers = 1; # Setup Context("LimitedNumeric"); -loadMacros("fixedPrecision.pl"); +loadMacros("fixedPrecision.pl"); $a = random(1,20); $b = random(1,5,0.1); @@ -58,7 +58,7 @@ ANS(Compute(FixedPrecision($answer,3))->cmp->withPostFilter(AnswerHints( BEGIN_PGML Find all positive solutions to the equation [`[$a]({[$b]x+[$c]})^{[$e]}=[$d]`]. Enter your answer as a decimal rounded to the nearest thousandth. -[`x=`] [_________________]{$ans} Make sure you enter an answer with exactly 3 digits after the decimal! +[`x=`] [_________________]{$ans} Make sure you enter an answer with exactly 3 digits after the decimal! END_PGML diff --git a/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Special_Case_1.pg b/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Special_Case_1.pg index 0f9d1047b4..2f9771cb31 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Special_Case_1.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Special_Case_1.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## Algebra ## ENDDESCRIPTION - - + + ## DBsubject() ## DBchapter() ## DBsection() @@ -11,17 +11,17 @@ ## Author(Martha Stevens) ## MO(1) ## KEYWORDS() - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,10 +29,10 @@ loadMacros( "PGcourse.pl", "parserPopUp.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup #Add context and y as a variable. @@ -66,27 +66,27 @@ if ( $chooser == 0) { $eqnleft = Formula("$a*$x+$b")->reduce; $eqnright = Formula("$c*$x+$d+$e*$x")->reduce; - + ########################### # Main text - + BEGIN_PGML How many solutions does the equation have? [`[$eqnleft] = [$eqnright]`] -[____]{$popup} - +[____]{$popup} + END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); diff --git a/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Special_Case_2.pg b/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Special_Case_2.pg index 0bdc0b5de6..960c6cace3 100644 --- a/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Special_Case_2.pg +++ b/Contrib/CCCS/AlgebraicLiteracy/Solving_Equations/Special_Case_2.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## Algebra ## ENDDESCRIPTION - - + + ## DBsubject() ## DBchapter() ## DBsection() @@ -11,17 +11,17 @@ ## Author(Martha Stevens) ## MO(1) ## KEYWORDS() - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,10 +29,10 @@ loadMacros( "PGcourse.pl", "parserPopUp.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup #Add context and y as a variable. @@ -64,27 +64,27 @@ if ( $chooser == 0) { $eqnleft = Formula("$a($x+$b)")->reduce; $eqnright = Formula("$c($x)-1($x+$d)")->reduce; - + ########################### # Main text - + BEGIN_PGML How many solutions does the equation have? [`[$eqnleft] = [$eqnright]`] -[____]{$popup} - +[____]{$popup} + END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); diff --git a/Contrib/CCCS/CalculusOne/02.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_02_1_13_15.pg b/Contrib/CCCS/CalculusOne/02.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_02_1_13_15.pg index a638575015..3206210267 100644 --- a/Contrib/CCCS/CalculusOne/02.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_02_1_13_15.pg +++ b/Contrib/CCCS/CalculusOne/02.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_02_1_13_15.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserAssignment.pl", @@ -67,7 +67,7 @@ foreach my $i (1..4) { $d = non_zero_random(-2, 2, 1); # the formula for the function -$f = Formula("1/x+$d")->reduce(); +$f = Formula("1/x+$d")->reduce(); # the y-value in the ordered pairs P(x, y) $y0 = $f->eval(x=>$x0); @@ -104,7 +104,7 @@ row( "\($seq[1]\)", "\(f($seq[1])\)", ans_rule(8)). row("\($seq[2]\)", "\(f($seq[2])\)", ans_rule(8)). row("\($seq[3]\)", "\(f($seq[3])\)", ans_rule(8)). row("\($seq[4]\)", "\(f($seq[4])\)", ans_rule(8)). -endtable().$ECENTER; +endtable().$ECENTER; # the derivative of the function evaluated at x0 $answer[5]=$df_x0; @@ -141,7 +141,7 @@ size=>[600,600] ); # this is always the correct graph -add_functions($gr1, "$f for x in <-8,8>" . +add_functions($gr1, "$f for x in <-8,8>" . " using color:blue and weight:2"); add_functions($gr1, "$tanline for x in <-8,8>" . @@ -194,7 +194,7 @@ $yint_temp=$y0_temp-$df_x0_temp*$x0; # the equation of the line tangent at the point P(x, y) $tanline_temp=Formula("$df_x0_temp*x+$yint_temp"); -add_functions($gr3, "$f_temp for x in <-8, 8>" . +add_functions($gr3, "$f_temp for x in <-8, 8>" . " using color:blue and weight:2"); add_functions($gr3, "$tanline_temp for x in <-8, 8>" . @@ -219,10 +219,10 @@ $yint_temp=$y0_temp-$df_x0_temp*$x0; # the equation of the line tangent at the point P(x, y) $tanline_temp=Formula("$df_x0_temp*x+$yint_temp"); -add_functions($gr4, "$f_temp for x in <-8, 8>" . +add_functions($gr4, "$f_temp for x in <-8, 8>" . " using color:blue and weight:2"); -add_functions($gr4, "$tanline_temp for x in <-8,8>" . +add_functions($gr4, "$tanline_temp for x in <-8,8>" . " using color:black and weight:2"); @@ -243,7 +243,7 @@ Section::Begin("Part 1 - 1 point"); BEGIN_PGML The points [`P([$x0],[$y0])`] and [` Q(x,y)`] are on the graph of the function [` f(x) = [$f] `]. Complete the table with the values for the slope of the secant line passing through points [`P`] and [`Q`]. Do not round until the end of your calculations, then round to 5 decimal places. -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* [@ $table @]*** @@ -262,7 +262,7 @@ In this case, the point [`P(a,b)`] is [`P([$x0],[$y0])`]. END_PGML_HINT ############################ -# Part 1 Answer evaluation +# Part 1 Answer evaluation for $i (1..4) { WEIGHTED_ANS( ($answer[$i])->cmp(), 25/12 ); @@ -277,7 +277,7 @@ Section::Begin("Part 2 - 1 point"); BEGIN_PGML -Using the values in the right column of the table, the estimated value of the slope of the line tangent to [`f`] at [`x=[$x0]`] is `m_{tan}=` [_________] [@ AnswerFormatHelp("numbers") @]* +Using the values in the right column of the table, the estimated value of the slope of the line tangent to [`f`] at [`x=[$x0]`] is `m_{tan}=` [_________] [@ helpLink("numbers") @]* END_PGML @@ -305,7 +305,7 @@ Section::Begin("Part 3 - 1 point"); BEGIN_PGML -The equation of the tangent line at the point [`P([$x0],[$y0])`] is [`y=`] [_________] [@ AnswerFormatHelp("formulas") @]* +The equation of the tangent line at the point [`P([$x0],[$y0])`] is [`y=`] [_________] [@ helpLink("formulas") @]* END_PGML @@ -332,11 +332,11 @@ Section::End(); Section::Begin("Part 4 - 1 point"); BEGIN_PGML - -Which of the following graphs represents the graph of [`f(x)`] and the tangent line at the point [`P([$x0],[$y0])`]? [@ $popup->menu() @]* + +Which of the following graphs represents the graph of [`f(x)`] and the tangent line at the point [`P([$x0],[$y0])`]? [@ $popup->menu() @]* ->>A. [@ image(insertGraph($gr1), width=>200, height=>200), @]* B. [@ image(insertGraph($gr4), width=>200, height=>200), @]* << +>>A. [@ image(insertGraph($gr1), width=>200, height=>200), @]* B. [@ image(insertGraph($gr4), width=>200, height=>200), @]* << >>C. [@ image(insertGraph($gr2), width=>200, height=>200), @]* D. [@ image(insertGraph($gr3), width=>200, height=>200), @]* << @@ -357,7 +357,7 @@ Scaffold::End(); # Solution #BEGIN_PGML_SOLUTION - + #END_PGML_SOLUTION COMMENT('MathObject version. Uses PGML.'); diff --git a/Contrib/CCCS/CalculusOne/02.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_02_1_1_3.pg b/Contrib/CCCS/CalculusOne/02.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_02_1_1_3.pg index 8077e35e12..ab4b9fea2e 100644 --- a/Contrib/CCCS/CalculusOne/02.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_02_1_1_3.pg +++ b/Contrib/CCCS/CalculusOne/02.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_02_1_1_3.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserAssignment.pl", @@ -62,7 +62,7 @@ foreach my $i (1..4) { $d = random(1, 5, 1); # the formula for the function -$f = Formula("x^2+$d")->reduce(); +$f = Formula("x^2+$d")->reduce(); # the y-value in the ordered pairs P(x, y) $y0 = $f->eval(x=>$x0); @@ -97,7 +97,7 @@ row( "\($seq[1]\)", "\(f($seq[1])\)", ans_rule(8)). row("\($seq[2]\)", "\(f($seq[2])\)", ans_rule(8)). row("\($seq[3]\)", "\(f($seq[3])\)", ans_rule(8)). row("\($seq[4]\)", "\(f($seq[4])\)", ans_rule(8)). -endtable().$ECENTER; +endtable().$ECENTER; # the derivative of the function evaluated at x0 $answer[5]=$df_x0; @@ -133,7 +133,7 @@ size=>[600,600] ); # this is always the correct graph -add_functions($gr1, "$f for x in <-8,8>" . +add_functions($gr1, "$f for x in <-8,8>" . " using color:blue and weight:2"); add_functions($gr1, "$tanline for x in <-8,8>" . @@ -185,7 +185,7 @@ $yint_temp=$y0_temp-$df_x0_temp*$x0; # the equation of the line tangent at the point P(x, y) $tanline_temp=Formula("$df_x0_temp*x+$yint_temp"); -add_functions($gr3, "$f_temp for x in <-8,8>" . +add_functions($gr3, "$f_temp for x in <-8,8>" . " using color:blue and weight:2"); add_functions($gr3, "$tanline_temp for x in <-8,8>" . @@ -210,10 +210,10 @@ $yint_temp=$y0_temp-$df_x0_temp*$x0; # the equation of the line tangent at the point P(x, y) $tanline_temp=Formula("$df_x0_temp*x+$yint_temp"); -add_functions($gr4, "$f_temp for x in <-8,8>" . +add_functions($gr4, "$f_temp for x in <-8,8>" . " using color:blue and weight:2"); -add_functions($gr4, "$tanline_temp for x in <-8,8>" . +add_functions($gr4, "$tanline_temp for x in <-8,8>" . " using color:black and weight:2"); $popup = PopUp( @@ -231,9 +231,9 @@ Section::Begin("Part 1 - 1 point"); BEGIN_PGML -The points [`P([$x0],[$y0])`] and [` Q(x,y)`] are on the graph of the function [` f(x) = [$f] `]. Complete the table with the values for the slope of the secant line passing through points [`P`] and [`Q`]. Do not round until the end of your calculations, then round to 4 decimal places. [@ AnswerFormatHelp("numbers") @]* +The points [`P([$x0],[$y0])`] and [` Q(x,y)`] are on the graph of the function [` f(x) = [$f] `]. Complete the table with the values for the slope of the secant line passing through points [`P`] and [`Q`]. Do not round until the end of your calculations, then round to 4 decimal places. [@ helpLink("numbers") @]* -[@ $table @]*** +[@ $table @]*** END_PGML @@ -251,7 +251,7 @@ In this case, the point [`P(a,b)`] is [`P([$x0],[$y0])`]. END_PGML_HINT ############################ -# Part 1 Answer evaluation +# Part 1 Answer evaluation for $i (1..4) { WEIGHTED_ANS( ($answer[$i])->cmp(), 25/12 ); @@ -267,7 +267,7 @@ Section::Begin("Part 2 - 1 point"); BEGIN_PGML -Using the values in the right column of the table, the estimated value of the slope of the line tangent to [`f`] at [`x=[$x0]`] is `m_{tan}=`[_________] [@ AnswerFormatHelp("numbers") @]* +Using the values in the right column of the table, the estimated value of the slope of the line tangent to [`f`] at [`x=[$x0]`] is `m_{tan}=`[_________] [@ helpLink("numbers") @]* END_PGML @@ -295,7 +295,7 @@ Section::Begin("Part 3 - 1 point"); BEGIN_PGML -The equation of the tangent line at point [`P([$x0],[$y0])`] is [`y=`] [_________] [@ AnswerFormatHelp("formulas") @]* +The equation of the tangent line at point [`P([$x0],[$y0])`] is [`y=`] [_________] [@ helpLink("formulas") @]* END_PGML @@ -323,11 +323,11 @@ Section::End(); Section::Begin("Part 4 - 1 point"); BEGIN_PGML - -Which of the following graphs represents the graph of [`f(x)`] and the equation of the tangent line at point [`P`]? [@ $popup->menu() @]* + +Which of the following graphs represents the graph of [`f(x)`] and the equation of the tangent line at point [`P`]? [@ $popup->menu() @]* ->>A. [@ image(insertGraph($gr4), width=>200, height=>200), @]* B. [@ image(insertGraph($gr3), width=>200, height=>200), @]* << +>>A. [@ image(insertGraph($gr4), width=>200, height=>200), @]* B. [@ image(insertGraph($gr3), width=>200, height=>200), @]* << >>C. [@ image(insertGraph($gr2), width=>200, height=>200), @]* D. [@ image(insertGraph($gr1), width=>200, height=>200), @]* << @@ -349,7 +349,7 @@ Scaffold::End(); # Solution #BEGIN_PGML_SOLUTION - + #END_PGML_SOLUTION COMMENT('MathObject version. Uses PGML.'); diff --git a/Contrib/CCCS/CalculusOne/02.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_02_1_20_21.pg b/Contrib/CCCS/CalculusOne/02.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_02_1_20_21.pg index 927d145b4e..fe79939276 100644 --- a/Contrib/CCCS/CalculusOne/02.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_02_1_20_21.pg +++ b/Contrib/CCCS/CalculusOne/02.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_02_1_20_21.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserAssignment.pl", @@ -46,9 +46,9 @@ Context("Numeric"); #Context()->flags->set(tolerance => 0.01); # having answers to 4 decimal places AND reduced -#Context()->{format}{number} = "%.4f#"; +#Context()->{format}{number} = "%.4f#"; -# adding t as a variable +# adding t as a variable Context()->variables->add(t => 'Real'); $a = random(300,600,1100); @@ -57,7 +57,7 @@ $b = random(70,80,0.1); $t0 = random(7, 10, 1); # the formula for the function -$f = Formula("$a+$b*t-4.9*t^2")->reduce(); +$f = Formula("$a+$b*t-4.9*t^2")->reduce(); # formula evaluated at t0 $y0 = $f->eval(t=>$t0); @@ -74,7 +74,7 @@ $t2 = $t0 + 0.01; $t3 = $t0 + 0.001; $t4 = $t0 - 0.001; -# the answers of the table as an array. +# the answers of the table as an array. @answer = (); for $i (0..3) { # the first interval @@ -83,7 +83,7 @@ for $i (0..3) { $y2 = $f->eval(t=>$t2); $delta_y_temp = $y1 - $y2; $delta_x_temp = $t0 - $t2; - $answer[$i] = $delta_y_temp / $delta_x_temp; + $answer[$i] = $delta_y_temp / $delta_x_temp; } elsif ($i == 1) { $y1 = $f->eval(t=>$t3); $y2 = $f->eval(t=>$t0); @@ -115,7 +115,7 @@ row( "[$t0, $t2]", ans_rule(8)). row("[$t0, $t3]", ans_rule(8)). row("[$t1, $t0]", ans_rule(8)). row("[$t4, $t0]", ans_rule(8)). -endtable().$ECENTER; +endtable().$ECENTER; ########################### @@ -129,8 +129,8 @@ BEGIN_PGML Consider a projectile shot into the air that then returns to Earth. The height of the rocket in meters is given by [` f(t) = [$f] `] where [`t`] is measured in seconds. -For the given time intervals, complete the table with the appropriate values for average velocity of the projectile. Don't round until the end of your calculations, then round to four decimal places. -[@ AnswerFormatHelp("numbers") @]* +For the given time intervals, complete the table with the appropriate values for average velocity of the projectile. Don't round until the end of your calculations, then round to four decimal places. +[@ helpLink("numbers") @]* [@ $table @]*** @@ -149,7 +149,7 @@ The average velocity over the time interval [`[a,b]`] is the slope of the secant END_PGML_HINT ############################ -# Part 1 Answer evaluation +# Part 1 Answer evaluation for $i (0..3) { WEIGHTED_ANS( ($answer[$i])->cmp(), 50/4 ); diff --git a/Contrib/CCCS/CalculusOne/02.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_02_1_22_23.pg b/Contrib/CCCS/CalculusOne/02.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_02_1_22_23.pg index c74ba8631f..2a3bc18b37 100644 --- a/Contrib/CCCS/CalculusOne/02.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_02_1_22_23.pg +++ b/Contrib/CCCS/CalculusOne/02.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_02_1_22_23.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserAssignment.pl", @@ -46,9 +46,9 @@ Context("Numeric"); #Context()->flags->set(tolerance => 0.01); # having answers to 4 decimal places AND reduced -#Context()->{format}{number} = "%.4f#"; +#Context()->{format}{number} = "%.4f#"; -# adding t as a variable +# adding t as a variable Context()->variables->add(t => 'Real'); $a = random(2,6,1); @@ -57,7 +57,7 @@ $b = random(1,5,1); $t0 = random(0.5, 3, 0.5); # the formula for the function -$f = Formula("t^3/$a+$b*t")->reduce(); +$f = Formula("t^3/$a+$b*t")->reduce(); # formula evaluated at t0 $y0 = $f->eval(t=>$t0); @@ -74,7 +74,7 @@ $t2 = $t0 + 0.05; $t3 = $t0 + 0.005; $t4 = $t0 - 0.005; -# the answers of the table as an array. +# the answers of the table as an array. @answer = (); for $i (0..3) { # the first interval @@ -83,7 +83,7 @@ for $i (0..3) { $y2 = $f->eval(t=>$t2); $delta_y_temp = $y1 - $y2; $delta_x_temp = $t0 - $t2; - $answer[$i] = $delta_y_temp / $delta_x_temp; + $answer[$i] = $delta_y_temp / $delta_x_temp; } elsif ($i == 1) { $y1 = $f->eval(t=>$t3); $y2 = $f->eval(t=>$t0); @@ -115,7 +115,7 @@ row( "[$t0, $t2]", ans_rule(8)). row("[$t0, $t3]", ans_rule(8)). row("[$t1, $t0]", ans_rule(8)). row("[$t4, $t0]", ans_rule(8)). -endtable().$ECENTER; +endtable().$ECENTER; ########################### @@ -129,8 +129,8 @@ BEGIN_PGML Consider an athlete running a 40 meter dash. The position of the athlete is given by [` d(t) = [$f] `] where [`d`] is the position in meters and [`t`] is the time elapsed, measured in seconds. -For the given time intervals, complete the table with the appropriate values for average velocity of the runner. Don't round until the end of your calculations, then round to four decimal places. -[@ AnswerFormatHelp("numbers") @]* +For the given time intervals, complete the table with the appropriate values for average velocity of the runner. Don't round until the end of your calculations, then round to four decimal places. +[@ helpLink("numbers") @]* [@ $table @]*** @@ -149,7 +149,7 @@ The average velocity over the time interval [`[a,b]`] is the slope of the secant END_PGML_HINT ############################ -# Part 1 Answer evaluation +# Part 1 Answer evaluation for $i (0..3) { WEIGHTED_ANS( ($answer[$i])->cmp(), 50/4 ); diff --git a/Contrib/CCCS/CalculusOne/02.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_02_1_7_9.pg b/Contrib/CCCS/CalculusOne/02.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_02_1_7_9.pg index c2619e872b..de51feed6c 100644 --- a/Contrib/CCCS/CalculusOne/02.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_02_1_7_9.pg +++ b/Contrib/CCCS/CalculusOne/02.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_02_1_7_9.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserAssignment.pl", @@ -59,7 +59,7 @@ foreach my $i (1..4) { $d = non_zero_random(-3, 3, 1); # the formula for the function -$f = Formula("sqrt(x)+$d")->reduce(); +$f = Formula("sqrt(x)+$d")->reduce(); # the y-value in the ordered pairs P(x, y) $y0 = $f->eval(x=>$x0); @@ -95,7 +95,7 @@ row( "\($seq[1]\)", "\(f($seq[1])\)", ans_rule(8)). row("\($seq[2]\)", "\(f($seq[2])\)", ans_rule(8)). row("\($seq[3]\)", "\(f($seq[3])\)", ans_rule(8)). row("\($seq[4]\)", "\(f($seq[4])\)", ans_rule(8)). -endtable().$ECENTER; +endtable().$ECENTER; # the derivative of the function evaluated at x0 $answer[5]=$df_x0; @@ -132,7 +132,7 @@ size=>[600,600] # this is always the correct graph -add_functions($gr1, "$f for x in <-8,8>" . +add_functions($gr1, "$f for x in <-8,8>" . " using color:blue and weight:2"); add_functions($gr1, "$tanline for x in <-8,8>" . @@ -184,7 +184,7 @@ $yint_temp=$y0_temp-$df_x0_temp*$x0; # the equation of the line tangent at the point P(x, y) $tanline_temp=Formula("$df_x0_temp*x+$yint_temp"); -add_functions($gr3, "$f_temp for x in <-8,8>" . +add_functions($gr3, "$f_temp for x in <-8,8>" . " using color:blue and weight:2"); add_functions($gr3, "$tanline_temp for x in <-8,8>" . @@ -209,10 +209,10 @@ $yint_temp=$y0_temp-$df_x0_temp*$x0; # the equation of the line tangent at the point P(x, y) $tanline_temp=Formula("$df_x0_temp*x+$yint_temp"); -add_functions($gr4, "$f_temp for x in <-8,8>" . +add_functions($gr4, "$f_temp for x in <-8,8>" . " using color:blue and weight:2"); -add_functions($gr4, "$tanline_temp for x in <-8,8>" . +add_functions($gr4, "$tanline_temp for x in <-8,8>" . " using color:black and weight:2"); $popup = PopUp( @@ -232,7 +232,7 @@ Section::Begin("Part 1 - 1 point"); BEGIN_PGML The points [`P([$x0],[$y0])`] and [` Q(x,y)`] are on the graph of the function [` f(x) = [$f] `]. Complete the table with the values for the slope of the secant line passing through points [`P`] and [`Q`]. Do not round until the end of your calculations, then round to 5 decimal places. -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* [@ $table @]*** @@ -252,7 +252,7 @@ In this case, the point [`P(a,b)`] is [`P([$x0],[$y0])`]. END_PGML_HINT ############################ -# Part 1 Answer evaluation +# Part 1 Answer evaluation for $i (1..4) { WEIGHTED_ANS( ($answer[$i])->cmp(), 25/12 ); @@ -267,7 +267,7 @@ Section::Begin("Part 2 - 1 point"); BEGIN_PGML -Using the values in the right column of the table, the estimated value of the slope of the line tangent to [`f`] at [`x=[$x0]`] is `m_{tan}=`[_________] +Using the values in the right column of the table, the estimated value of the slope of the line tangent to [`f`] at [`x=[$x0]`] is `m_{tan}=`[_________] END_PGML @@ -295,7 +295,7 @@ Section::Begin("Part 3 - 1 point"); BEGIN_PGML -The equation of the tangent line at the point [`P([$x0],[$y0])`] is [`y=`] [_________] +The equation of the tangent line at the point [`P([$x0],[$y0])`] is [`y=`] [_________] END_PGML @@ -322,11 +322,11 @@ Section::End(); Section::Begin("Part 4 - 1 point"); BEGIN_PGML - -Which of the following graphs represents the graph of [`f(x)`] and the tangent line at the point [`P([$x0],[$y0])`]? [@ $popup->menu() @]* + +Which of the following graphs represents the graph of [`f(x)`] and the tangent line at the point [`P([$x0],[$y0])`]? [@ $popup->menu() @]* ->>A. [@ image(insertGraph($gr4), width=>200, height=>200), @]* B. [@ image(insertGraph($gr3), width=>200, height=>200), @]* << +>>A. [@ image(insertGraph($gr4), width=>200, height=>200), @]* B. [@ image(insertGraph($gr3), width=>200, height=>200), @]* << >>C. [@ image(insertGraph($gr1), width=>200, height=>200), @]* D. [@ image(insertGraph($gr2), width=>200, height=>200), @]* << @@ -347,7 +347,7 @@ Scaffold::End(); # Solution #BEGIN_PGML_SOLUTION - + #END_PGML_SOLUTION COMMENT('MathObject version. Uses PGML.'); diff --git a/Contrib/CCCS/CalculusOne/02.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_02_2_30_31.pg b/Contrib/CCCS/CalculusOne/02.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_02_2_30_31.pg index f805dba180..3f3f43df5d 100644 --- a/Contrib/CCCS/CalculusOne/02.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_02_2_30_31.pg +++ b/Contrib/CCCS/CalculusOne/02.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_02_2_30_31.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserAssignment.pl", @@ -49,7 +49,7 @@ Context("Numeric"); Context()->flags->set(tolerance => 0.00001); # having answers to 4 decimal places AND reduced -#Context()->{format}{number} = "%.4f#"; +#Context()->{format}{number} = "%.4f#"; # the initial x-value in the ordered pairs P(x, y) $x0 = random ( 1, 5, 1); @@ -68,10 +68,10 @@ foreach my $i (1..4) { # the formula for the function -$f = Formula("(x^2-$x0^2)/abs(x-$x0)")->reduce(); +$f = Formula("(x^2-$x0^2)/abs(x-$x0)")->reduce(); -# the answers of the table as an array. Tables are filled left to right, top to bottom. +# the answers of the table as an array. Tables are filled left to right, top to bottom. # This is set up for 5x4 answer table (top row is titles, row 1 and two are filled with left or right # of x0) which is why it's mod 2 ($i % 2 == 0 or 1) @answer = (); foreach my $i (0..7) { @@ -80,7 +80,7 @@ foreach my $i (0..7) { $k = $i/2+1; $answer[$i] = $f->eval(x=>$Lseq[$k]); } else { -# second column where the answer is f(Rseq[k]) +# second column where the answer is f(Rseq[k]) $k = ($i+1)/2; $answer[$i] = $f->eval(x=>$Rseq[$k]); } @@ -94,7 +94,7 @@ row( "$Lseq[1]", ans_rule(8), "$Rseq[1]", ans_rule(8)). row("$Lseq[2]", ans_rule(8), "$Rseq[2]", ans_rule(8)). row("$Lseq[3]", ans_rule(8), "$Rseq[3]", ans_rule(8)). row("$Lseq[4]", ans_rule(8), "$Rseq[4]", ans_rule(8)). -endtable().$ECENTER; +endtable().$ECENTER; # setting up the limit @@ -123,7 +123,7 @@ Section::Begin("Part 1 - 1 point"); BEGIN_PGML -Consider the function [`` f(x) = [$f] ``]. Complete the table with the appropriate values for [`f(x)`]. Round to four decimal places where needed. [@ AnswerFormatHelp("numbers") @]* +Consider the function [`` f(x) = [$f] ``]. Complete the table with the appropriate values for [`f(x)`]. Round to four decimal places where needed. [@ helpLink("numbers") @]* [@ $table @]*** @@ -140,7 +140,7 @@ Plug each [`x`] value into the function [` f(x) = [$f] `]. Notice that only the END_PGML_HINT ############################ -# Part 1 Answer evaluation +# Part 1 Answer evaluation for $i (0..7) { WEIGHTED_ANS( ($answer[$i])->cmp(), 34/8 ); @@ -156,7 +156,7 @@ Section::Begin("Part 2 - 1 point"); BEGIN_PGML -The results in from the table indicate the two-sided limit of `\lim_{x \to [$x0]} [$f]` is [__________] (if the two-sided limit does not exist, type in DNE). [@ AnswerFormatHelp("limits") @]* +The results in from the table indicate the two-sided limit of `\lim_{x \to [$x0]} [$f]` is [__________] (if the two-sided limit does not exist, type in DNE). [@ helpLink("limits") @]* END_PGML @@ -167,7 +167,7 @@ BEGIN_PGML_HINT Recall, the two sided limit exists if and only if both one sided limits exist and are equal. In other words, - [``\lim_{x\rightarrow a} f(x)``] exists and is equal to [`L`] if and only if [``\lim_{x\rightarrow a^+} f(x)=\lim_{x\rightarrow a^-} f(x) = L``] + [``\lim_{x\rightarrow a} f(x)``] exists and is equal to [`L`] if and only if [``\lim_{x\rightarrow a^+} f(x)=\lim_{x\rightarrow a^-} f(x) = L``] END_PGML_HINT @@ -207,7 +207,7 @@ Scaffold::End(); # Solution #BEGIN_PGML_SOLUTION - + #END_PGML_SOLUTION COMMENT('MathObject version. Uses PGML.'); diff --git a/Contrib/CCCS/CalculusOne/02.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_02_2_35.pg b/Contrib/CCCS/CalculusOne/02.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_02_2_35.pg index 26d22c311f..bb9a155a51 100644 --- a/Contrib/CCCS/CalculusOne/02.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_02_2_35.pg +++ b/Contrib/CCCS/CalculusOne/02.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_02_2_35.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserAssignment.pl", @@ -53,9 +53,9 @@ Context("Numeric"); Context()->flags->set(tolerance => 0.00001); # having answers to 4 decimal places AND reduced -#Context()->{format}{number} = "%.4f#"; +#Context()->{format}{number} = "%.4f#"; -# adding k as a variable +# adding k as a variable Context()->variables->add(k => 'Real'); # as x approaches for the limit @@ -78,11 +78,11 @@ foreach my $i (1..4) { # the formula for the function -$f = Formula("sin($a*x)/x")->reduce(); +$f = Formula("sin($a*x)/x")->reduce(); -# the answers of the table as an array. Tables are filled left to right, top to bottom. -# This is set up for 5x4 answer table (top row is titles, row 1 and two are filled +# the answers of the table as an array. Tables are filled left to right, top to bottom. +# This is set up for 5x4 answer table (top row is titles, row 1 and two are filled # with left or right # of x0) which is why it's mod 2 ($i % 2 == 0 or 1) @answer = (); foreach my $i (0..5) { @@ -91,7 +91,7 @@ foreach my $i (0..5) { $k = $i/2+1; $answer[$i] = $f->eval(x=>$Lseq[$k]); } else { -# second column where the answer is f(Rseq[k]) +# second column where the answer is f(Rseq[k]) $k = ($i+1)/2; $answer[$i] = $f->eval(x=>$Rseq[$k]); } @@ -103,7 +103,7 @@ $R_lim = $f->eval(x=>$Rseq[4]); # the limit at x->x0 right # checking the two sided limit #if ($L_lim == $R_lim ) { - + $answer[6] = $a; # } else { @@ -121,7 +121,7 @@ row( "$Lseq[1]", ans_rule(12), "$Rseq[1]", ans_rule(12)). row("$Lseq[2]", ans_rule(12), "$Rseq[2]", ans_rule(12)). row("$Lseq[3]", ans_rule(12), "$Rseq[3]", ans_rule(12)). #row("$Lseq[4]", ans_rule(12), "$Rseq[4]", ans_rule(12)). -endtable().$ECENTER; +endtable().$ECENTER; ########################### @@ -133,9 +133,9 @@ Section::Begin("Part 1 - 1 point"); BEGIN_PGML -Note: `x` is measured in radians. +Note: `x` is measured in radians. -Consider the function [`` f(x) = [$f] ``]. Complete the table with the appropriate values for [`f(x)`]. Round to five decimal places where needed. [@ AnswerFormatHelp("numbers") @]* +Consider the function [`` f(x) = [$f] ``]. Complete the table with the appropriate values for [`f(x)`]. Round to five decimal places where needed. [@ helpLink("numbers") @]* [@ $table @]*** @@ -151,7 +151,7 @@ Plug each [`x`] value into the function [`` f(x) = [$f] ``]. Be sure the calcula END_PGML_HINT ############################ -# Part 1 Answer evaluation +# Part 1 Answer evaluation for $i (0..5) { WEIGHTED_ANS( ($answer[$i])->cmp(), 34/8 ); @@ -166,7 +166,7 @@ Section::Begin("Part 2 - 1 point"); BEGIN_PGML -The results from the table indicate the two-sided limit of [`\displaystyle \lim_{x \to [$x0]} [$f]`] is [__________] (if the two-sided limit does not exist, type in DNE). [@ AnswerFormatHelp("limits") @]* +The results from the table indicate the two-sided limit of [`\displaystyle \lim_{x \to [$x0]} [$f]`] is [__________] (if the two-sided limit does not exist, type in DNE). [@ helpLink("limits") @]* END_PGML @@ -177,7 +177,7 @@ BEGIN_PGML_HINT Recall, the two sided limit exists if and only if both one sided limits exist and are equal. In other words, - [``\lim_{x\rightarrow a} f(x)``] exists and is equal to [`L`] if and only if [``\lim_{x\rightarrow a^+} f(x)=\lim_{x\rightarrow a^-} f(x) = L``] + [``\lim_{x\rightarrow a} f(x)``] exists and is equal to [`L`] if and only if [``\lim_{x\rightarrow a^+} f(x)=\lim_{x\rightarrow a^-} f(x) = L``] END_PGML_HINT @@ -217,7 +217,7 @@ Scaffold::End(); # Solution #BEGIN_PGML_SOLUTION - + #END_PGML_SOLUTION COMMENT('MathObject version. Uses PGML.'); diff --git a/Contrib/CCCS/CalculusOne/02.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_02_2_38.pg b/Contrib/CCCS/CalculusOne/02.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_02_2_38.pg index a9ba71c622..9d674798d2 100644 --- a/Contrib/CCCS/CalculusOne/02.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_02_2_38.pg +++ b/Contrib/CCCS/CalculusOne/02.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_02_2_38.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserAssignment.pl", @@ -51,9 +51,9 @@ Context("Numeric"); Context()->flags->set(tolerance => 0.000005, tolType => "absolute",); # having answers to 4 decimal places AND reduced -#Context()->{format}{number} = "%.4f#"; +#Context()->{format}{number} = "%.4f#"; -# adding k as a variable +# adding k as a variable Context()->variables->add(k => 'Real'); @@ -79,11 +79,11 @@ foreach my $i (1..4) { # the formula for the function -$f = Formula("(x^2-$a^2)/(x^2 +($c-$a)*x -$a*$c)")->reduce(); +$f = Formula("(x^2-$a^2)/(x^2 +($c-$a)*x -$a*$c)")->reduce(); -# the answers of the table as an array. Tables are filled left to right, top to bottom. -# This is set up for 5x4 answer table (top row is titles, row 1 and two are filled +# the answers of the table as an array. Tables are filled left to right, top to bottom. +# This is set up for 5x4 answer table (top row is titles, row 1 and two are filled # with left or right # of x0) which is why it's mod 2 ($i % 2 == 0 or 1) @answer = (); foreach my $i (0..7) { @@ -92,7 +92,7 @@ foreach my $i (0..7) { $k = $i/2+1; $answer[$i] = $f->eval(x=>$Lseq[$k]); } else { -# second column where the answer is f(Rseq[k]) +# second column where the answer is f(Rseq[k]) $k = ($i+1)/2; $answer[$i] = $f->eval(x=>$Rseq[$k]); } @@ -105,7 +105,7 @@ $R_lim = $f->eval(x=>$Rseq[4]); # the limit at x->x0 right # checking the two sided limit #if ($L_lim == $R_lim ) { - $lim = Formula("(x + $a)/(x+$c)")->reduce(); + $lim = Formula("(x + $a)/(x+$c)")->reduce(); $answer[6] = $lim->eval(x=>$x0); #} else { @@ -124,7 +124,7 @@ row( "$Lseq[1]", ans_rule(12), "$Rseq[1]", ans_rule(12)). row("$Lseq[2]", ans_rule(12), "$Rseq[2]", ans_rule(12)). row("$Lseq[3]", ans_rule(12), "$Rseq[3]", ans_rule(12)). #row("$Lseq[4]", ans_rule(12), "$Rseq[4]", ans_rule(12)). -endtable().$ECENTER; +endtable().$ECENTER; ########################### @@ -136,7 +136,7 @@ Section::Begin("Part 1 - 1 point"); BEGIN_PGML -Consider the function [`` f(x) = [$f] ``] . Complete the table with the appropriate values for [`f(x)`]. Round to five decimal places where needed. [@ AnswerFormatHelp("numbers") @]* +Consider the function [`` f(x) = [$f] ``] . Complete the table with the appropriate values for [`f(x)`]. Round to five decimal places where needed. [@ helpLink("numbers") @]* [@ $table @]*** @@ -152,7 +152,7 @@ Plug each [`x`] value into the function [`` f(x) = [$f] ``]. It might be easier END_PGML_HINT ############################ -# Part 1 Answer evaluation +# Part 1 Answer evaluation for $i (0..5) { WEIGHTED_ANS( ($answer[$i])->cmp(), 50/8 ); @@ -167,7 +167,7 @@ Section::Begin("Part 2 - 1 point"); BEGIN_PGML -Your results from the table indicate the two-sided limit of [`` \lim_{x \to [$x0]} \left([$f]\right)``] is [__________] (if the two-sided limit does not exist, type in DNE). [@ AnswerFormatHelp("limits") @]* +Your results from the table indicate the two-sided limit of [`` \lim_{x \to [$x0]} \left([$f]\right)``] is [__________] (if the two-sided limit does not exist, type in DNE). [@ helpLink("limits") @]* END_PGML @@ -178,7 +178,7 @@ BEGIN_PGML_HINT Recall, the two sided limit exists if and only if both one sided limits exist and are equal. In other words, - [``\lim_{x\rightarrow a} f(x)``] exists and is equal to [`L`] if and only if [``\lim_{x\rightarrow a^+} f(x)=\lim_{x\rightarrow a^-} f(x) = L``] + [``\lim_{x\rightarrow a} f(x)``] exists and is equal to [`L`] if and only if [``\lim_{x\rightarrow a^+} f(x)=\lim_{x\rightarrow a^-} f(x) = L``] END_PGML_HINT @@ -196,7 +196,7 @@ Scaffold::End(); # Solution #BEGIN_PGML_SOLUTION - + #END_PGML_SOLUTION COMMENT('MathObject version. Uses PGML.'); diff --git a/Contrib/CCCS/CalculusOne/02.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_02_2_39.pg b/Contrib/CCCS/CalculusOne/02.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_02_2_39.pg index ffa471703d..413df39558 100644 --- a/Contrib/CCCS/CalculusOne/02.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_02_2_39.pg +++ b/Contrib/CCCS/CalculusOne/02.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_02_2_39.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserAssignment.pl", @@ -51,9 +51,9 @@ Context("Numeric"); Context()->flags->set(tolerance => 0.0001); # having answers to 4 decimal places AND reduced -#Context()->{format}{number} = "%.4f#"; +#Context()->{format}{number} = "%.4f#"; -# adding k as a variable +# adding k as a variable Context()->variables->add(k => 'Real'); # constant @@ -77,10 +77,10 @@ foreach my $i (1..4) { } # the formula for the function -$f = Formula("$a-$c*x")->reduce(); +$f = Formula("$a-$c*x")->reduce(); -# the answers of the table as an array. Tables are filled left to right, top to bottom. -# This is set up for 5x4 answer table (top row is titles, row 1 and two are filled +# the answers of the table as an array. Tables are filled left to right, top to bottom. +# This is set up for 5x4 answer table (top row is titles, row 1 and two are filled # with left or right # of x0) which is why it's mod 2 ($i % 2 == 0 or 1) @answer = (); foreach my $i (0..5) { @@ -89,7 +89,7 @@ foreach my $i (0..5) { $k = $i/2+1; $answer[$i] = $f->eval(x=>$Lseq[$k]); } else { -# second column where the answer is f(Rseq[k]) +# second column where the answer is f(Rseq[k]) $k = ($i+1)/2; $answer[$i] = $f->eval(x=>$Rseq[$k]); } @@ -101,7 +101,7 @@ $R_lim = $f->eval(x=>$Rseq[4]); # the limit at x->x0 right # checking the two sided limit #if ($L_lim == $R_lim ) { - $lim = $f->eval(x=>$x0); + $lim = $f->eval(x=>$x0); $answer[6] = $lim; #} else { # $answer[6]=List("DNE"); @@ -118,7 +118,7 @@ row( "$Lseq[1]", ans_rule(12), "$Rseq[1]", ans_rule(12)). row("$Lseq[2]", ans_rule(12), "$Rseq[2]", ans_rule(12)). row("$Lseq[3]", ans_rule(12), "$Rseq[3]", ans_rule(12)). #row("$Lseq[4]", ans_rule(12), "$Rseq[4]", ans_rule(12)). -endtable().$ECENTER; +endtable().$ECENTER; ########################### # Main text @@ -129,7 +129,7 @@ Section::Begin("Part 1 - 1 point"); BEGIN_PGML -Consider the function [`` f(x) = [$f] ``]. Complete the table with the appropriate values for [`f(x)`]. Round to four decimal places. [@ AnswerFormatHelp("numbers") @]* +Consider the function [`` f(x) = [$f] ``]. Complete the table with the appropriate values for [`f(x)`]. Round to four decimal places. [@ helpLink("numbers") @]* [@ $table @]*** @@ -138,7 +138,7 @@ END_PGML ############################ -# Part 1 Answer evaluation +# Part 1 Answer evaluation for $i (0..5) { WEIGHTED_ANS( ($answer[$i])->cmp(), 50/8 ); @@ -153,7 +153,7 @@ Section::Begin("Part 2 - 1 point"); BEGIN_PGML -The results from the table indicate the two-sided limit of [`` \lim_{x \to [$x0]} [$f]``] is [__________] (if the two-sided limit does not exist, type in DNE). [@ AnswerFormatHelp("limits") @]* +The results from the table indicate the two-sided limit of [`` \lim_{x \to [$x0]} [$f]``] is [__________] (if the two-sided limit does not exist, type in DNE). [@ helpLink("limits") @]* END_PGML @@ -163,7 +163,7 @@ BEGIN_PGML_HINT Recall, the two sided limit exists if and only if both one sided limits exist and are equal. In other words, - [``\lim_{x\rightarrow a} f(x)``] exists and is equal to [`L`] if and only if [``\lim_{x\rightarrow a^+} f(x)=\lim_{x\rightarrow a^-} f(x) = L``] + [``\lim_{x\rightarrow a} f(x)``] exists and is equal to [`L`] if and only if [``\lim_{x\rightarrow a^+} f(x)=\lim_{x\rightarrow a^-} f(x) = L``] END_PGML_HINT @@ -181,7 +181,7 @@ Scaffold::End(); # Solution #BEGIN_PGML_SOLUTION - + #END_PGML_SOLUTION COMMENT('MathObject version. Uses PGML.'); diff --git a/Contrib/CCCS/CalculusOne/02.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_02_2_40.pg b/Contrib/CCCS/CalculusOne/02.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_02_2_40.pg index 9b63d085d0..9faf62e740 100644 --- a/Contrib/CCCS/CalculusOne/02.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_02_2_40.pg +++ b/Contrib/CCCS/CalculusOne/02.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_02_2_40.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserAssignment.pl", @@ -51,9 +51,9 @@ Context("Numeric"); Context()->flags->set(tolerance => 0.001); # having answers to 4 decimal places AND reduced -#Context()->{format}{number} = "%.4f#"; +#Context()->{format}{number} = "%.4f#"; -# adding k as a variable +# adding k as a variable Context()->variables->add(k => 'Real'); # as x approaches for the limit @@ -78,10 +78,10 @@ foreach my $i (1..4) { } # the formula for the function -$f = Formula("$a/(1 - e^(1/x))")->reduce(); +$f = Formula("$a/(1 - e^(1/x))")->reduce(); -# the answers of the table as an array. Tables are filled left to right, top to bottom. -# This is set up for 5x4 answer table (top row is titles, row 1 and two are filled +# the answers of the table as an array. Tables are filled left to right, top to bottom. +# This is set up for 5x4 answer table (top row is titles, row 1 and two are filled # with left or right # of x0) which is why it's mod 2 ($i % 2 == 0 or 1) @answer = (); foreach my $i (0..5) { @@ -90,7 +90,7 @@ foreach my $i (0..5) { $k = $i/2+1; $answer[$i] = $f->eval(x=>$Lseq[$k]); } else { -# second column where the answer is f(Rseq[k]) +# second column where the answer is f(Rseq[k]) $k = ($i+1)/2; $answer[$i] = $f->eval(x=>$Rseq[$k]); } @@ -115,7 +115,7 @@ row( "$Lseq[1]", ans_rule(12), "$Rseq[1]", ans_rule(12)). row("$Lseq[2]", ans_rule(12), "$Rseq[2]", ans_rule(12)). row("$Lseq[3]", ans_rule(12), "$Rseq[3]", ans_rule(12)). #row("$Lseq[4]", ans_rule(12), "$Rseq[4]", ans_rule(12)). -endtable().$ECENTER; +endtable().$ECENTER; ########################### # Main text @@ -126,7 +126,7 @@ Section::Begin("Part 1 - 1 point"); BEGIN_PGML -Consider the function [`` f(x) = [$f] ``] . Complete the table with the appropriate values for [`f(x)`]. Round to seven decimal places. [@ AnswerFormatHelp("numbers") @]* +Consider the function [`` f(x) = [$f] ``] . Complete the table with the appropriate values for [`f(x)`]. Round to seven decimal places. [@ helpLink("numbers") @]* [@ $table @]*** @@ -141,7 +141,7 @@ Plug each [`x`] value into the function [`` f(x) = [$f] ``]. Depending on what c END_PGML_HINT ############################ -# Part 1 Answer evaluation +# Part 1 Answer evaluation for $i (0..5) { WEIGHTED_ANS( ($answer[$i])->cmp(), 50/8 ); @@ -156,7 +156,7 @@ Section::Begin("Part 2 - 1 point"); BEGIN_PGML -The results from the table indicate the two-sided limit of [`` \lim_{x \to [$x0]} \left([$f]\right)``] is [__________] (if the two-sided limit does not exist, type in DNE). [@ AnswerFormatHelp("limits") @]* +The results from the table indicate the two-sided limit of [`` \lim_{x \to [$x0]} \left([$f]\right)``] is [__________] (if the two-sided limit does not exist, type in DNE). [@ helpLink("limits") @]* END_PGML @@ -167,7 +167,7 @@ BEGIN_PGML_HINT Recall, the two sided limit exists if and only if both one sided limits exist and are equal. In other words, - [``\lim_{x\rightarrow a} f(x)``] exists and is equal to [`L`] if and only if [``\lim_{x\rightarrow a^+} f(x)=\lim_{x\rightarrow a^-} f(x) = L``] + [``\lim_{x\rightarrow a} f(x)``] exists and is equal to [`L`] if and only if [``\lim_{x\rightarrow a^+} f(x)=\lim_{x\rightarrow a^-} f(x) = L``] END_PGML_HINT @@ -185,7 +185,7 @@ Scaffold::End(); # Solution #BEGIN_PGML_SOLUTION - + #END_PGML_SOLUTION COMMENT('MathObject version. Uses PGML.'); diff --git a/Contrib/CCCS/CalculusOne/02.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_02_2_41.pg b/Contrib/CCCS/CalculusOne/02.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_02_2_41.pg index 8a475fceba..50b777d49e 100644 --- a/Contrib/CCCS/CalculusOne/02.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_02_2_41.pg +++ b/Contrib/CCCS/CalculusOne/02.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_02_2_41.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserAssignment.pl", @@ -51,9 +51,9 @@ Context("Numeric"); Context()->flags->set(tolerance => 0.0001); # having answers to 4 decimal places AND reduced -#Context()->{format}{number} = "%.4f#"; +#Context()->{format}{number} = "%.4f#"; -# adding k as a variable +# adding k as a variable Context()->variables->add(k => 'Real'); # constant in the numerator @@ -77,10 +77,10 @@ foreach my $i (1..4) { } # the formula for the function -$f = Formula("(x-$a)/((x^2)*(x-$c))")->reduce(); +$f = Formula("(x-$a)/((x^2)*(x-$c))")->reduce(); -# the answers of the table as an array. Tables are filled left to right, top to bottom. -# This is set up for 5x4 answer table (top row is titles, row 1 and two are filled +# the answers of the table as an array. Tables are filled left to right, top to bottom. +# This is set up for 5x4 answer table (top row is titles, row 1 and two are filled # with left or right # of x0) which is why it's mod 2 ($i % 2 == 0 or 1) @answer = (); foreach my $i (0..5) { @@ -89,7 +89,7 @@ foreach my $i (0..5) { $k = $i/2+1; $answer[$i] = $f->eval(x=>$Lseq[$k]); } else { -# second column where the answer is f(Rseq[k]) +# second column where the answer is f(Rseq[k]) $k = ($i+1)/2; $answer[$i] = $f->eval(x=>$Rseq[$k]); } @@ -104,7 +104,7 @@ if ( $L_lim>0) { $answer[6] = Infinity; } elsif ( $L_lim<0) { $answer[6] = -(Infinity); - } + } Context()->strings->add( "Does Not Exist"=>{alias=>"DNE"} @@ -118,7 +118,7 @@ row( "$Lseq[1]", ans_rule(14), "$Rseq[1]", ans_rule(14)). row("$Lseq[2]", ans_rule(14), "$Rseq[2]", ans_rule(14)). row("$Lseq[3]", ans_rule(14), "$Rseq[3]", ans_rule(14)). #row("$Lseq[4]", ans_rule(14), "$Rseq[4]", ans_rule(14)). -endtable().$ECENTER; +endtable().$ECENTER; ########################### # Main text @@ -129,14 +129,14 @@ Section::Begin("Part 1 - 1 point"); BEGIN_PGML -Consider the function [`` f(x) = [$f] ``] . Complete the table with the appropriate values for [`f(x)`]. Round to four decimal places. [@ AnswerFormatHelp("numbers") @]* +Consider the function [`` f(x) = [$f] ``] . Complete the table with the appropriate values for [`f(x)`]. Round to four decimal places. [@ helpLink("numbers") @]* [@ $table @]*** END_PGML ############################ -# Part 1 Answer evaluation +# Part 1 Answer evaluation for $i (0..5) { WEIGHTED_ANS( ($answer[$i])->cmp(), 50/8 ); @@ -151,7 +151,7 @@ Section::Begin("Part 2 - 1 point"); BEGIN_PGML -The results from the table indicate the two-sided limit of [`` \lim_{x \to [$x0]} \left([$f]\right)``] is [__________] (if the two-sided limit does not exist, type in DNE). [@ AnswerFormatHelp("limits") @]* +The results from the table indicate the two-sided limit of [`` \lim_{x \to [$x0]} \left([$f]\right)``] is [__________] (if the two-sided limit does not exist, type in DNE). [@ helpLink("limits") @]* END_PGML @@ -161,7 +161,7 @@ BEGIN_PGML_HINT Recall, the two sided limit exists if and only if both one sided limits exist and are equal. In other words, - [``\lim_{x\rightarrow a} f(x)``] exists and is equal to [`L`] if and only if [``\lim_{x\rightarrow a^+} f(x)=\lim_{x\rightarrow a^-} f(x) = L``] + [``\lim_{x\rightarrow a} f(x)``] exists and is equal to [`L`] if and only if [``\lim_{x\rightarrow a^+} f(x)=\lim_{x\rightarrow a^-} f(x) = L``] END_PGML_HINT @@ -181,7 +181,7 @@ Scaffold::End(); # Solution #BEGIN_PGML_SOLUTION - + #END_PGML_SOLUTION COMMENT('MathObject version. Uses PGML.'); diff --git a/Contrib/CCCS/CalculusOne/02.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_02_2_42.pg b/Contrib/CCCS/CalculusOne/02.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_02_2_42.pg index db1d7ee86a..662bc0999a 100644 --- a/Contrib/CCCS/CalculusOne/02.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_02_2_42.pg +++ b/Contrib/CCCS/CalculusOne/02.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_02_2_42.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserAssignment.pl", @@ -53,9 +53,9 @@ Context("Numeric"); Context()->flags->set(tolerance => 0.001); # having answers to 4 decimal places AND reduced -#Context()->{format}{number} = "%.4f#"; +#Context()->{format}{number} = "%.4f#"; -# adding k as a variable +# adding k as a variable Context()->variables->add(k => 'Real'); # as x approaches for the limit @@ -78,11 +78,11 @@ foreach my $i (1..4) { # the formula for the function -$f = Formula("cos($a*x)/x")->reduce(); +$f = Formula("cos($a*x)/x")->reduce(); -# the answers of the table as an array. Tables are filled left to right, top to bottom. -# This is set up for 5x4 answer table (top row is titles, row 1 and two are filled +# the answers of the table as an array. Tables are filled left to right, top to bottom. +# This is set up for 5x4 answer table (top row is titles, row 1 and two are filled # with left or right # of x0) which is why it's mod 2 ($i % 2 == 0 or 1) @answer = (); foreach my $i (0..5) { @@ -91,7 +91,7 @@ foreach my $i (0..5) { $k = $i/2+1; $answer[$i] = $f->eval(x=>$Lseq[$k]); } else { -# second column where the answer is f(Rseq[k]) +# second column where the answer is f(Rseq[k]) $k = ($i+1)/2; $answer[$i] = $f->eval(x=>$Rseq[$k]); } @@ -119,7 +119,7 @@ row( "$Lseq[1]", ans_rule(12), "$Rseq[1]", ans_rule(12)). row("$Lseq[2]", ans_rule(12), "$Rseq[2]", ans_rule(12)). row("$Lseq[3]", ans_rule(12), "$Rseq[3]", ans_rule(12)). #row("$Lseq[4]", ans_rule(12), "$Rseq[4]", ans_rule(12)). -endtable().$ECENTER; +endtable().$ECENTER; ########################### @@ -131,9 +131,9 @@ Section::Begin("Part 1 - 1 point"); BEGIN_PGML -Note: `x` is measured in radians. +Note: `x` is measured in radians. -Consider the function [` f(x) = [$f] `]. Complete the table with the appropriate values for [`f(x)`]. Round to four decimal places. [@ AnswerFormatHelp("numbers") @]* +Consider the function [` f(x) = [$f] `]. Complete the table with the appropriate values for [`f(x)`]. Round to four decimal places. [@ helpLink("numbers") @]* [@ $table @]*** @@ -141,7 +141,7 @@ Consider the function [` f(x) = [$f] `]. Complete the table with the appropriate END_PGML ############################ -# Part 1 Answer evaluation +# Part 1 Answer evaluation for $i (0..5) { WEIGHTED_ANS( ($answer[$i])->cmp(), 34/8 ); @@ -156,7 +156,7 @@ Section::Begin("Part 2 - 1 point"); BEGIN_PGML -The results from the table indicate the two-sided limit of [`\displaystyle \lim_{x \to [$x0]} \left([$f]\right)`] is [__________] (if the two-sided limit does not exist, type in DNE). [@ AnswerFormatHelp("limits") @]* +The results from the table indicate the two-sided limit of [`\displaystyle \lim_{x \to [$x0]} \left([$f]\right)`] is [__________] (if the two-sided limit does not exist, type in DNE). [@ helpLink("limits") @]* END_PGML @@ -198,7 +198,7 @@ Scaffold::End(); # Solution #BEGIN_PGML_SOLUTION - + #END_PGML_SOLUTION COMMENT('MathObject version. Uses PGML.'); diff --git a/Contrib/CCCS/CalculusOne/02.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_02_2_43.pg b/Contrib/CCCS/CalculusOne/02.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_02_2_43.pg index 78867c4066..ea7a406a18 100644 --- a/Contrib/CCCS/CalculusOne/02.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_02_2_43.pg +++ b/Contrib/CCCS/CalculusOne/02.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_02_2_43.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserAssignment.pl", @@ -49,7 +49,7 @@ Context("Numeric"); # allowing answers that are within 1% Context()->flags->set(tolerance => 0.01); -# adding k as a variable +# adding k as a variable Context()->variables->add(k => 'Real'); # constant of a/x in the numerator and a factor of the denominator difference of squares @@ -60,7 +60,7 @@ $x0 = $a; # the formula for the function -$f = Formula("(1-$a/x)/(x^2 -$a^2)")->reduce(); +$f = Formula("(1-$a/x)/(x^2 -$a^2)")->reduce(); Context()->strings->add( @@ -77,7 +77,7 @@ BEGIN_PGML Create a table of values to find the two-sided limit of [`` \lim_{x \to [$x0]} \left([$f]\right)``]. -The two-sided limit of [`` \lim_{x \to [$x0]} \left([$f]\right)``] is [__________]{0.5/($a*$a)} (if the two-sided limit does not exist, type in DNE). [@ AnswerFormatHelp("limits") @]* +The two-sided limit of [`` \lim_{x \to [$x0]} \left([$f]\right)``] is [__________]{0.5/($a*$a)} (if the two-sided limit does not exist, type in DNE). [@ helpLink("limits") @]* END_PGML @@ -92,7 +92,7 @@ BEGIN_PGML_HINT * Recall, the two sided limit exists if and only if both one sided limits exist and are equal. In other words, - [``\hspace{0.3in} \lim_{x\rightarrow a} f(x)``] exists and is equal to [`L`] if and only if [``\lim_{x\rightarrow a^+} f(x)=\lim_{x\rightarrow a^-} f(x) = L``] + [``\hspace{0.3in} \lim_{x\rightarrow a} f(x)``] exists and is equal to [`L`] if and only if [``\lim_{x\rightarrow a^+} f(x)=\lim_{x\rightarrow a^-} f(x) = L``] END_PGML_HINT @@ -101,7 +101,7 @@ END_PGML_HINT # Solution #BEGIN_PGML_SOLUTION - + #END_PGML_SOLUTION COMMENT('MathObject version. Uses PGML.'); diff --git a/Contrib/CCCS/CalculusOne/02.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_02_2_50_54.pg b/Contrib/CCCS/CalculusOne/02.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_02_2_50_54.pg index 3728394fd5..94e6f0950d 100644 --- a/Contrib/CCCS/CalculusOne/02.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_02_2_50_54.pg +++ b/Contrib/CCCS/CalculusOne/02.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_02_2_50_54.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserAssignment.pl", @@ -47,17 +47,17 @@ Context("Numeric"); Context()->flags->set(tolerance => 0.01); # having answers to 4 decimal places AND reduced -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; # the leftside of the piecewise function $m = non_zero_random(-4,4,1); #slope $b = non_zero_random(-4,4,1); #intercept -$f_left = Formula("$m*x+$b")->reduce(); +$f_left = Formula("$m*x+$b")->reduce(); # the rightside of the piecewise function $a = non_zero_random (-1, 1, 1); # leading coefficient $d = non_zero_random(-4, 4, 1); # vertical translation -$f_right = Formula("$a*x^2+$d")->reduce(); +$f_right = Formula("$a*x^2+$d")->reduce(); # $c is the break in the piecewise function $c = random (-1, 1, 1); @@ -164,7 +164,7 @@ Use the figure below, which gives a graph of the function `f(x)`, to give values for the indicated limits. If a limit does not exist, enter DNE. -[@ image(insertGraph($gr), width=>400, height=>400), @]* +[@ image(insertGraph($gr), width=>400, height=>400), @]* END_PGML @@ -180,7 +180,7 @@ BEGIN_PGML (a) -`\lim_{x \to [$c]^-} f(x)` = [________] [@ AnswerFormatHelp("limits") @]* +`\lim_{x \to [$c]^-} f(x)` = [________] [@ helpLink("limits") @]* (b) `\lim_{x \to [$c]^+} f(x)` = [________] @@ -197,7 +197,7 @@ BEGIN_PGML END_PGML ############################ -# Answer evaluation +# Answer evaluation Context()->normalStrings; diff --git a/Contrib/CCCS/CalculusOne/02.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_02_2_59_64.pg b/Contrib/CCCS/CalculusOne/02.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_02_2_59_64.pg index 8ed6c76537..3b4f080796 100644 --- a/Contrib/CCCS/CalculusOne/02.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_02_2_59_64.pg +++ b/Contrib/CCCS/CalculusOne/02.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_02_2_59_64.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserAssignment.pl", @@ -47,21 +47,21 @@ Context("Numeric"); Context()->flags->set(tolerance => 0.01); # having answers to 4 decimal places AND reduced -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; # the leftside of the piecewise function $m1 = non_zero_random(-4,4,1); #slope $b1 = non_zero_random(-4,4,1); #intercept -$f_left = Formula("$m1*x+$b1")->reduce(); +$f_left = Formula("$m1*x+$b1")->reduce(); # the middle of the piecewise function $m2 = non_zero_random(-4,4,1); #slope -$f_middle = Formula("$m2*x")->reduce(); +$f_middle = Formula("$m2*x")->reduce(); # the rightside of the piecewise function $m3 = non_zero_random(-4,4,1); #slope $b3 = non_zero_random(-4,4,1); #intercept -$f_right = Formula("$m3*x+$b3")->reduce(); +$f_right = Formula("$m3*x+$b3")->reduce(); # $c1 is the break in the piecewise function $c1 = random (-2, 0, 1); @@ -171,7 +171,7 @@ Use the figure below, which gives a graph of the function `f(x)`, to give values for the indicated limits. If a limit does not exist, enter DNE. -[@ image(insertGraph($gr), width=>400, height=>400), @]* +[@ image(insertGraph($gr), width=>400, height=>400), @]* END_PGML @@ -187,7 +187,7 @@ BEGIN_PGML (a) -`\lim_{x \to [$c1]^-} f(x)` = [________] [@ AnswerFormatHelp("limits") @]* +`\lim_{x \to [$c1]^-} f(x)` = [________] [@ helpLink("limits") @]* (b) `\lim_{x \to [$c1]^+} f(x)` = [________] @@ -207,7 +207,7 @@ BEGIN_PGML END_PGML ############################ -# Answer evaluation +# Answer evaluation Context()->normalStrings; diff --git a/Contrib/CCCS/CalculusOne/02.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_02_2_71_75.pg b/Contrib/CCCS/CalculusOne/02.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_02_2_71_75.pg index 9f950850f3..fc22a1bb6c 100644 --- a/Contrib/CCCS/CalculusOne/02.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_02_2_71_75.pg +++ b/Contrib/CCCS/CalculusOne/02.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_02_2_71_75.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserAssignment.pl", @@ -46,18 +46,18 @@ Context("Numeric"); Context()->flags->set(tolerance => 0.01); # having answers to 4 decimal places AND reduced -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; # the leftside of the piecewise function $m = non_zero_random(-4,4,1); #slope $b = non_zero_random(-4,4,1); #intercept -$f_left = Formula("$m*x+$b")->reduce(); +$f_left = Formula("$m*x+$b")->reduce(); # the rightside of the piecewise function -$a = non_zero_random (-1, 1, 1); # vertical reflection -$h = non_zero_random (-1, 1, 1); # horizontal translation +$a = non_zero_random (-1, 1, 1); # vertical reflection +$h = non_zero_random (-1, 1, 1); # horizontal translation $d = non_zero_random(-4, 4, 1); # vertical translation -$f_right = Formula("$a*(x - $h)^2 +$d")->reduce(); +$f_right = Formula("$a*(x - $h)^2 +$d")->reduce(); # $c is the break in the piecewise function @@ -83,7 +83,7 @@ $x_2 = non_zero_random(-2, 2, 1); if ($c == $x_2) { $x_2 = $x_2-1; } - + # setting up the min/max y-value for the graph setting $L_eval = $f_left->eval(x=>$c); $R_eval = $f_right->eval(x=>$c); @@ -193,7 +193,7 @@ to give values for the indicated limits. If a limit does not exist, enter DNE. -[@ image(insertGraph($gr), width=>400, height=>400), @]* +[@ image(insertGraph($gr), width=>400, height=>400), @]* END_PGML @@ -208,7 +208,7 @@ END_TEXT BEGIN_PGML (a) -`\lim_{x \to [$c]^-} f(x)` = [________] [@ AnswerFormatHelp("limits") @]* +`\lim_{x \to [$c]^-} f(x)` = [________] [@ helpLink("limits") @]* (b) `\lim_{x \to [$c]^+} f(x)` = [________] @@ -227,7 +227,7 @@ END_PGML #`\lim_{x \to [$x_2]} f(x)` = [________] ############################ -# Answer evaluation +# Answer evaluation Context()->normalStrings; diff --git a/Contrib/CCCS/CalculusOne/02.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_02_2_76.pg b/Contrib/CCCS/CalculusOne/02.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_02_2_76.pg index d88ed9f616..1e2b18e0bc 100644 --- a/Contrib/CCCS/CalculusOne/02.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_02_2_76.pg +++ b/Contrib/CCCS/CalculusOne/02.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_02_2_76.pg @@ -22,8 +22,8 @@ loadMacros( "parserPopUp.pl", "MathObjects.pl", "PGgraphmacros.pl", - "PGcourse.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", + "PGML.pl", "PGcourse.pl", "parserAssignment.pl", @@ -44,20 +44,20 @@ $showPartialCorrectAnswers = 1; Context("Numeric"); # having answers to 1 decimal places AND reduced -Context()->{format}{number} = "%.1f#"; +Context()->{format}{number} = "%.1f#"; $choice = random(1,4,1); # the leftside of the piecewise function -$a = non_zero_random (-3, 3, 1); # vertical reflection -$h = non_zero_random (-1, 1, 1); # horizontal translation +$a = non_zero_random (-3, 3, 1); # vertical reflection +$h = non_zero_random (-1, 1, 1); # horizontal translation $d = non_zero_random(-4, 4, 1); # vertical translation -$f_left = Formula("((x - $h)^2)/$a +$d")->reduce(); +$f_left = Formula("((x - $h)^2)/$a +$d")->reduce(); # the rightside of the piecewise function $b = non_zero_random(-4,4,1); #yint of line -$f_right = Formula("x+$b")->reduce(); +$f_right = Formula("x+$b")->reduce(); # $x is the x for the limit that exists - want to keep the vertex of the quadratic shown on the graph and want to have the quadratic and line not be equal here, otherwise two of the graphs appear the same to the student. do{$x = $h + random(0, 3, 1);}until((($x - $h)**2)/$a +$d !=$x+$b); @@ -108,7 +108,7 @@ $xmax = $xsorted[2]+2; $xgrid = $xmax - $xmin; -# This is always the answer +# This is always the answer $graph1 = init_graph($xmin,$ymin,$xmax,$ymax, axes=>[0,0], grid=>[$xgrid, $ygrid], @@ -170,8 +170,8 @@ if ($choice == 1) { ############################################################### BEGIN_PGML - -Which of the following graphs represents the graph of [`y = f(x)`] with properites `i` through `iv`? [@ $popup1->menu() @]* + +Which of the following graphs represents the graph of [`y = f(x)`] with properites `i` through `iv`? [@ $popup1->menu() @]* `i.` `\lim_{x \to [$x]} f(x) = [$L_x]` @@ -187,7 +187,7 @@ END_PGML if ($choice == 1) { BEGIN_PGML ->>A. [@ image(insertGraph($graph4), width=>300, height=>300), @]* B. [@ image(insertGraph($graph3), width=>300, height=>300), @]* << +>>A. [@ image(insertGraph($graph4), width=>300, height=>300), @]* B. [@ image(insertGraph($graph3), width=>300, height=>300), @]* << >>C. [@ image(insertGraph($graph2), width=>300, height=>300), @]* D. [@ image(insertGraph($graph1), width=>300, height=>300), @]* << END_PGML @@ -195,7 +195,7 @@ END_PGML } elsif ($choice == 2) { BEGIN_PGML ->>A. [@ image(insertGraph($graph3), width=>300, height=>300), @]* B. [@ image(insertGraph($graph2), width=>300, height=>300), @]* << +>>A. [@ image(insertGraph($graph3), width=>300, height=>300), @]* B. [@ image(insertGraph($graph2), width=>300, height=>300), @]* << >>C. [@ image(insertGraph($graph1), width=>300, height=>300), @]* D. [@ image(insertGraph($graph4), width=>300, height=>300), @]* << END_PGML @@ -203,14 +203,14 @@ END_PGML } elsif ($choice == 3) { BEGIN_PGML ->>A. [@ image(insertGraph($graph1), width=>300, height=>300), @]* B. [@ image(insertGraph($graph2), width=>300, height=>300), @]* << +>>A. [@ image(insertGraph($graph1), width=>300, height=>300), @]* B. [@ image(insertGraph($graph2), width=>300, height=>300), @]* << >>C. [@ image(insertGraph($graph4), width=>300, height=>300), @]* D. [@ image(insertGraph($graph3), width=>300, height=>300), @]* << END_PGML } else { BEGIN_PGML ->>A. [@ image(insertGraph($graph3), width=>300, height=>300), @]* B. [@ image(insertGraph($graph1), width=>300, height=>300), @]* << +>>A. [@ image(insertGraph($graph3), width=>300, height=>300), @]* B. [@ image(insertGraph($graph1), width=>300, height=>300), @]* << >>C. [@ image(insertGraph($graph4), width=>300, height=>300), @]* D. [@ image(insertGraph($graph2), width=>300, height=>300), @]* << END_PGML diff --git a/Contrib/CCCS/CalculusOne/02.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_02_2_77.pg b/Contrib/CCCS/CalculusOne/02.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_02_2_77.pg index df836af5b0..4497af7319 100644 --- a/Contrib/CCCS/CalculusOne/02.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_02_2_77.pg +++ b/Contrib/CCCS/CalculusOne/02.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_02_2_77.pg @@ -22,8 +22,8 @@ loadMacros( "parserPopUp.pl", "MathObjects.pl", "PGgraphmacros.pl", - "PGcourse.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", + "PGML.pl", "PGcourse.pl", "parserAssignment.pl", @@ -44,14 +44,14 @@ $showPartialCorrectAnswers = 1; Context("Numeric"); # having answers to 1 decimal places AND reduced -Context()->{format}{number} = "%.1f#"; +Context()->{format}{number} = "%.1f#"; $choice = random(1,4,1); # the leftside of the piecewise function $a = non_zero_random (1, 2, 1); # vertical asym -$f1 = Formula("1/(x^2+1)"); +$f1 = Formula("1/(x^2+1)"); $f2 = Formula("(2*x-$a)/(x-$a)"); $f2_alt = Formula("(x/2-$a)/(x-$a)"); $c = random(3, 4, 1); @@ -68,7 +68,7 @@ $f3_alt = Formula("x + $b_alt"); -# This is always the answer +# This is always the answer $graph1 = init_graph(-8,-8,8,8, axes=>[0,0], grid=>[16, 16], size=>[350,350]); $p1 = FEQ("$f1 for x in <-8,0] using color:blue weight:2"); @@ -138,8 +138,8 @@ $graph4->gifName($graph4->gifName()."$in"); ############################################################### BEGIN_PGML - -Which of the following graphs represents the graph of [`y = f(x)`] with properites `i` through `v`? [@ $popup1->menu() @]* + +Which of the following graphs represents the graph of [`y = f(x)`] with properites `i` through `v`? [@ $popup1->menu() @]* `i.` `\lim_{x \to -infty} f(x) = 0` @@ -156,7 +156,7 @@ END_PGML if ($choice == 1) { BEGIN_PGML ->>A. [@ image(insertGraph($graph4), width=>200, height=>200), @]* B. [@ image(insertGraph($graph3), width=>200, height=>200), @]* << +>>A. [@ image(insertGraph($graph4), width=>200, height=>200), @]* B. [@ image(insertGraph($graph3), width=>200, height=>200), @]* << >>C. [@ image(insertGraph($graph2), width=>200, height=>200), @]* D. [@ image(insertGraph($graph1), width=>200, height=>200), @]* << END_PGML @@ -164,7 +164,7 @@ END_PGML } elsif ($choice == 2) { BEGIN_PGML ->>A. [@ image(insertGraph($graph3), width=>200, height=>200), @]* B. [@ image(insertGraph($graph2), width=>200, height=>200), @]* << +>>A. [@ image(insertGraph($graph3), width=>200, height=>200), @]* B. [@ image(insertGraph($graph2), width=>200, height=>200), @]* << >>C. [@ image(insertGraph($graph1), width=>200, height=>200), @]* D. [@ image(insertGraph($graph4), width=>200, height=>200), @]* << END_PGML @@ -172,14 +172,14 @@ END_PGML } elsif ($choice == 3) { BEGIN_PGML ->>A. [@ image(insertGraph($graph1), width=>200, height=>200), @]* B. [@ image(insertGraph($graph2), width=>200, height=>200), @]* << +>>A. [@ image(insertGraph($graph1), width=>200, height=>200), @]* B. [@ image(insertGraph($graph2), width=>200, height=>200), @]* << >>C. [@ image(insertGraph($graph4), width=>200, height=>200), @]* D. [@ image(insertGraph($graph3), width=>200, height=>200), @]* << END_PGML } else { BEGIN_PGML ->>A. [@ image(insertGraph($graph4), width=>200, height=>200), @]* B. [@ image(insertGraph($graph1), width=>200, height=>200), @]* << +>>A. [@ image(insertGraph($graph4), width=>200, height=>200), @]* B. [@ image(insertGraph($graph1), width=>200, height=>200), @]* << >>C. [@ image(insertGraph($graph3), width=>200, height=>200), @]* D. [@ image(insertGraph($graph2), width=>200, height=>200), @]* << END_PGML diff --git a/Contrib/CCCS/CalculusOne/02.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_03_103_106.pg b/Contrib/CCCS/CalculusOne/02.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_03_103_106.pg index 8fcfac7caf..077af57205 100644 --- a/Contrib/CCCS/CalculusOne/02.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_03_103_106.pg +++ b/Contrib/CCCS/CalculusOne/02.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_03_103_106.pg @@ -19,7 +19,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserAssignment.pl", @@ -45,7 +45,7 @@ $d_n = non_zero_random(3, 5, 1); $a2_n = $a_n*$c_n; $a1_n = $a_n*$d_n+$b_n*$c_n; $a0_n = $b_n*$d_n; -$f_num = Formula("$a2_n*x^2 +[$a1_n]*x+$a0_n")->reduce(); +$f_num = Formula("$a2_n*x^2 +[$a1_n]*x+$a0_n")->reduce(); # denominator function $a_d = non_zero_random(-5, -1, 1); @@ -54,7 +54,7 @@ $x1 = -$a_d; $x2 = -$b_d; $a1_d = $a_d+$b_d; $a0_d = $a_d*$b_d; -$f_denom = Formula("x^2 +$a1_d*x+$a0_d")->reduce(); +$f_denom = Formula("x^2 +$a1_d*x+$a0_d")->reduce(); $f = Formula("$f_num/$f_denom"); @@ -113,19 +113,19 @@ BEGIN_PGML Evaluate each limit. Give exact answers. (a) -[`\displaystyle \lim_{x \to [$x1]^-} \left([$f]\right)`]=[_________] [@ AnswerFormatHelp("Limits") @]* +[`\displaystyle \lim_{x \to [$x1]^-} \left([$f]\right)`]=[_________] [@ helpLink("Limits") @]* (b) -[`\displaystyle \lim_{x \to [$x1]^+} \left([$f]\right)`]=[_________] +[`\displaystyle \lim_{x \to [$x1]^+} \left([$f]\right)`]=[_________] (c) -[`\displaystyle \lim_{x \to [$x2]^-} \left([$f]\right)`]=[_________] +[`\displaystyle \lim_{x \to [$x2]^-} \left([$f]\right)`]=[_________] (d) -[`\displaystyle \lim_{x \to [$x2]^+} \left([$f]\right)`]=[_________] +[`\displaystyle \lim_{x \to [$x2]^+} \left([$f]\right)`]=[_________] END_PGML diff --git a/Contrib/CCCS/CalculusOne/02.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_03_107_112.pg b/Contrib/CCCS/CalculusOne/02.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_03_107_112.pg index 3f481e359a..609b719725 100644 --- a/Contrib/CCCS/CalculusOne/02.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_03_107_112.pg +++ b/Contrib/CCCS/CalculusOne/02.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_03_107_112.pg @@ -19,7 +19,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserAssignment.pl", @@ -55,7 +55,7 @@ BEGIN_PGML Assume that `\lim_{x \to [$x]} f(x) = [$a]`, `\lim_{x \to [$x]} g(x) = [$b]`, and `\lim_{x \to [$x]} h(x) = [$c]`. Use these facts and the limit laws to evaluate each limit. Give exact answers. (a) -`\lim_{x \to [$x]} 2f(x)g(x) = ` [_________] [@ AnswerFormatHelp("Limits") @]* +`\lim_{x \to [$x]} 2f(x)g(x) = ` [_________] [@ helpLink("Limits") @]* (b) `\lim_{x \to [$x]} (g(x)-1)/f(x) = `[_________] diff --git a/Contrib/CCCS/CalculusOne/02.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_03_118_120.pg b/Contrib/CCCS/CalculusOne/02.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_03_118_120.pg index 8416685682..a0ce26f1ac 100644 --- a/Contrib/CCCS/CalculusOne/02.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_03_118_120.pg +++ b/Contrib/CCCS/CalculusOne/02.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_03_118_120.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserAssignment.pl", @@ -46,19 +46,19 @@ Context("Fraction-NoDecimals"); # the leftside of the piecewise function $m = non_zero_random(-4,4,1); #slope $b = non_zero_random(-4,4,1); #intercept -$f_left = Formula("$m*x+$b")->reduce(); +$f_left = Formula("$m*x+$b")->reduce(); # the rightside of the piecewise function -$a = non_zero_random (-1, 1, 1); # vertical reflection -$h = non_zero_random (-1, 1, 1); # horizontal translation +$a = non_zero_random (-1, 1, 1); # vertical reflection +$h = non_zero_random (-1, 1, 1); # horizontal translation $d = non_zero_random(-4, 4, 1); # vertical translation -$f_right = Formula("$a*(x - $h)^2 +$d")->reduce(); +$f_right = Formula("$a*(x - $h)^2 +$d")->reduce(); ########## second set of graphs ############## # the leftside of the piecewise function $m1 = non_zero_random(-4,4,1); #slope $b1 = non_zero_random(-4,4,1); #intercept -$f_left1 = Formula("$m1*x+$b1")->reduce(); +$f_left1 = Formula("$m1*x+$b1")->reduce(); # the leftside of the piecewise function $m2 = non_zero_random(-4,4,1); #slope @@ -69,7 +69,7 @@ $b2 = non_zero_random(-4,4,1); #intercept if ($b2 ==$b1) { $b2 = $b1 +1; #making sure y-intercepts are not equal } -$f_right1 = Formula("$m2*x+$b2")->reduce(); +$f_right1 = Formula("$m2*x+$b2")->reduce(); # $c is the break in the piecewise function $c = random (-3, 3, 1); @@ -253,7 +253,7 @@ Use the figures below, which gives a graph of the function `f(x)` and `g(x)`, and the limit laws to evaluate each limit. Give exact answers. - `f(x):` [@ image(insertGraph($gr), width=>300, height=>300), @]* `g(x):` [@ image(insertGraph($gr1), width=>300, height=>300), @]* + `f(x):` [@ image(insertGraph($gr), width=>300, height=>300), @]* `g(x):` [@ image(insertGraph($gr1), width=>300, height=>300), @]* END_PGML @@ -268,7 +268,7 @@ END_TEXT BEGIN_PGML (a) -`\lim_{x \to [$c]^+} (f(x)+g(x))` = [________] [@ AnswerFormatHelp("limits") @]* +`\lim_{x \to [$c]^+} (f(x)+g(x))` = [________] [@ helpLink("limits") @]* (b) `\lim_{x \to [$c]^-} (f(x)-3g(x))` = [________] @@ -280,7 +280,7 @@ BEGIN_PGML END_PGML ############################ -# Answer evaluation +# Answer evaluation Context()->normalStrings; diff --git a/Contrib/CCCS/CalculusOne/02.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_03_126.pg b/Contrib/CCCS/CalculusOne/02.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_03_126.pg index 58b95d2796..e3b8db3a97 100644 --- a/Contrib/CCCS/CalculusOne/02.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_03_126.pg +++ b/Contrib/CCCS/CalculusOne/02.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_03_126.pg @@ -19,7 +19,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserAssignment.pl", @@ -41,13 +41,13 @@ Context("Numeric"); $a2 = non_zero_random (-6, 6, 1); # leading coefficient $a1 = non_zero_random (-6, 6, 1); # coeff on x $a0 = non_zero_random (-6, 6, 1); # constant -$f = Formula("$a2*x**2 +$a1*x + $a0") ->reduce(); +$f = Formula("$a2*x**2 +$a1*x + $a0") ->reduce(); # the left function is linear and here we start with a point on the function $f_left # then find the slope of the tangent at the point, then find the equation of the tangent -$x0 = non_zero_random(-3,3,1); -$y0 = $f->eval(x=>$x0); +$x0 = non_zero_random(-3,3,1); +$y0 = $f->eval(x=>$x0); $df = $f->D('x'); # finding the derivative of $f $df_x0=$df->eval(x=>$x0); # the derivative of the function evaluated at x0 @@ -59,7 +59,7 @@ $popup = PopUp( ["?","True","False"], "True", ); -#[@ $popup->menu() @]* +#[@ $popup->menu() @]* ########################### # Main text @@ -89,7 +89,7 @@ where [`L`] is a real number, then [``\lim_{x\rightarrow a} g(x) = L``]. END_PGML_HINT ############################ -# Answer evaluation +# Answer evaluation #ANS( $popup->cmp()); @@ -98,7 +98,7 @@ END_PGML_HINT # Solution #BEGIN_PGML_SOLUTION - + #END_PGML_SOLUTION COMMENT('MathObject version. Uses PGML.'); diff --git a/Contrib/CCCS/CalculusOne/02.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_03_127.pg b/Contrib/CCCS/CalculusOne/02.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_03_127.pg index 7ae8e1f274..12f2f96130 100644 --- a/Contrib/CCCS/CalculusOne/02.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_03_127.pg +++ b/Contrib/CCCS/CalculusOne/02.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_03_127.pg @@ -19,7 +19,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserAssignment.pl", @@ -48,7 +48,7 @@ if ($a == 0) { BEGIN_PGML -Evaluate the limit using the squeeze theorem. Use a calculator to graph `f(x)` , `g(x)`, and `h(x)` when possible. +Evaluate the limit using the squeeze theorem. Use a calculator to graph `f(x)` , `g(x)`, and `h(x)` when possible. [`\displaystyle \lim_{\theta \to 0} \theta^2 \cos\left(\frac{1}{\theta}\right)`]= [________] @@ -71,7 +71,7 @@ where [`L`] is a real number, then [``\lim_{x\rightarrow a} g(x) = L``]. END_PGML_HINT ############################ -# Answer evaluation +# Answer evaluation ANS( $answer->cmp()); @@ -80,7 +80,7 @@ ANS( $answer->cmp()); BEGIN_PGML -Evaluate the limit using the squeeze theorem. Use a calculator to graph `f(x)` , `g(x)`, and `h(x)` when possible. +Evaluate the limit using the squeeze theorem. Use a calculator to graph `f(x)` , `g(x)`, and `h(x)` when possible. [` \displaystyle \lim_{\theta \to 0} \theta^2 \sin\left(\frac{1}{\theta}\right)`]= [________] @@ -103,7 +103,7 @@ where [`L`] is a real number, then [``\lim_{x\rightarrow a} g(x) = L``]. END_PGML_HINT ############################ -# Answer evaluation +# Answer evaluation ANS( $answer->cmp()); @@ -115,7 +115,7 @@ ANS( $answer->cmp()); # Solution #BEGIN_PGML_SOLUTION - + #END_PGML_SOLUTION COMMENT('MathObject version. Uses PGML.'); diff --git a/Contrib/CCCS/CalculusOne/02.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_03_85.pg b/Contrib/CCCS/CalculusOne/02.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_03_85.pg index 9f6b6b377e..26669ed84d 100644 --- a/Contrib/CCCS/CalculusOne/02.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_03_85.pg +++ b/Contrib/CCCS/CalculusOne/02.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_03_85.pg @@ -19,7 +19,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserAssignment.pl", @@ -43,7 +43,7 @@ $c = non_zero_random(0, 6, 1); $x = random(1, 3, 1); # making sure $f is positive -$f = Compute("x^2 +$b*x+$c")->reduce(); +$f = Compute("x^2 +$b*x+$c")->reduce(); $f_eval = $f->eval(x=>$x); if ($f_eval < 0) { @@ -53,7 +53,7 @@ if ($f_eval < 0) { $popup1 = PopUp( ["?", "Sum law for limits", "Difference law for limits", -"Constant multiple law for limits", "Product law for limits", "Quotient law for limits", +"Constant multiple law for limits", "Product law for limits", "Quotient law for limits", "Power law for limits", "Root law for limits"], "Root law for limits", ); @@ -66,7 +66,7 @@ Determine which limit law justifies the step(s) then evaluate the limit. Give e [`\displaystyle \lim_{x \to [$x]} \sqrt{[$f]} = \sqrt{\lim_{x \to [$x]} ([$f])}`] [@ $popup1->menu() @]* -[`\displaystyle \lim_{x \to [$x]} \sqrt{[$f]} `]=[_________] [@ AnswerFormatHelp("numbers") @]* +[`\displaystyle \lim_{x \to [$x]} \sqrt{[$f]} `]=[_________] [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CalculusOne/02.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_03_88_92.pg b/Contrib/CCCS/CalculusOne/02.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_03_88_92.pg index 78ccb18285..9f94f66695 100644 --- a/Contrib/CCCS/CalculusOne/02.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_03_88_92.pg +++ b/Contrib/CCCS/CalculusOne/02.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_03_88_92.pg @@ -19,7 +19,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserAssignment.pl", @@ -36,13 +36,13 @@ Parser::Number::NoDecimals(); # Setup Context("Fraction-NoDecimals"); -# first function +# first function $a = non_zero_random(-3, 3, 1); $b = non_zero_random(-3, 3, 1); $c = non_zero_random(-6, 6, 1); $x1 = random(-3, 3, 1); -$f1 = Formula("x^2 +$b*x+$c")->reduce(); +$f1 = Formula("x^2 +$b*x+$c")->reduce(); $answer[1] = $f1->eval(x=>$x1); #second function @@ -54,7 +54,7 @@ if ($x1 == $x2) { $x2 = -($x2); # making sure as x goes to is different } -$f2 = Formula("e^($b*x - $a*x^2)")->reduce(); +$f2 = Formula("e^($b*x - $a*x^2)")->reduce(); $answer[2] = $f2->eval(x=>$x2); # third function @@ -65,7 +65,7 @@ if ($x2 == $x3) { $x3 = $x3+1; # making sure as x goes to is different } -$f3 = Formula("ln(e^($a*x))")->reduce(); +$f3 = Formula("ln(e^($a*x))")->reduce(); $answer[3] = $f3->eval(x=>$x3); @@ -74,16 +74,16 @@ BEGIN_PGML Use direct substitution to evaluate each limit. Give exact answers. (a) - [`\displaystyle \lim_{x \to [$x1]} \left([$f1]\right)`] =[_________] [@ AnswerFormatHelp("numbers") @]* + [`\displaystyle \lim_{x \to [$x1]} \left([$f1]\right)`] =[_________] [@ helpLink("numbers") @]* (b) - [`\displaystyle \lim_{x \to [$x2]} \left([$f2]\right)`]=[_________] + [`\displaystyle \lim_{x \to [$x2]} \left([$f2]\right)`]=[_________] (c) -[`\displaystyle \lim_{x \to [$x3]} \left([$f3]\right)`]=[_________] +[`\displaystyle \lim_{x \to [$x3]} \left([$f3]\right)`]=[_________] END_PGML diff --git a/Contrib/CCCS/CalculusOne/02.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_03_93_102.pg b/Contrib/CCCS/CalculusOne/02.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_03_93_102.pg index 30c31da4a2..bed84e1103 100644 --- a/Contrib/CCCS/CalculusOne/02.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_03_93_102.pg +++ b/Contrib/CCCS/CalculusOne/02.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_03_93_102.pg @@ -19,7 +19,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserAssignment.pl", @@ -39,7 +39,7 @@ Context("Fraction-NoDecimals"); # first function which is a difference of squares over one of the factors $a1 = non_zero_random(-5, 5, 1); -$f1 = Formula("(x^2 -$a1*$a1)/(x-$a1)")->reduce(); +$f1 = Formula("(x^2 -$a1*$a1)/(x-$a1)")->reduce(); $f1_Lim_eval = Compute("x+$a1"); $answer[1] = $f1_Lim_eval->eval(x=>$a1); @@ -51,16 +51,16 @@ $f2_Lim_eval = Compute("1/x"); $answer[2] = $f2_Lim_eval->eval(x=>$a2); -# third function which is a difference of squares of the form x - 4 over divided +# third function which is a difference of squares of the form x - 4 over divided # by a factor of the form sqrt(x) +- 2 $a3 = random(1, 5, 1); -$f3 = Formula("(x -$a3*$a3)/(sqrt(x)-$a3)")->reduce(); +$f3 = Formula("(x -$a3*$a3)/(sqrt(x)-$a3)")->reduce(); $f3_Lim_eval = Compute("sqrt(x)+$a3"); $x3 = $a3*$a3; $answer[3] = $f3_Lim_eval->eval(x=>$x3); -# fourth function must multiply by the conjugate of the numerator to reduce with +# fourth function must multiply by the conjugate of the numerator to reduce with # the denomiator $a4 = non_zero_random(-5, 5, 1); $b = non_zero_random(-5, 5, 1); @@ -69,7 +69,7 @@ $b = non_zero_random(-5, 5, 1); #$a4 = -($a4); #making sure there is not a negative under the square root #} -#$f4 = Formula("(sqrt(x +$a4)-$b) /(x+($a4-$b*$b))")->reduce(); +#$f4 = Formula("(sqrt(x +$a4)-$b) /(x+($a4-$b*$b))")->reduce(); #$f4_Lim_eval = Compute("1/(sqrt(x+$a4) +$b)"); #$c = -($a4-$b*$b); @@ -80,15 +80,15 @@ BEGIN_PGML Evaluate each limit. Give exact answers. (a) -[`\displaystyle \lim_{x \to [$a1]} \left([$f1]\right)`]=[_________] [@ AnswerFormatHelp("numbers") @]* +[`\displaystyle \lim_{x \to [$a1]} \left([$f1]\right)`]=[_________] [@ helpLink("numbers") @]* (b) -[`\displaystyle \lim_{x \to [$a2]} \left([$f2]\right)`]=[_________] +[`\displaystyle \lim_{x \to [$a2]} \left([$f2]\right)`]=[_________] (c) -[`\displaystyle \lim_{x \to [$x3]} \left([$f3]\right)`]=[_________] +[`\displaystyle \lim_{x \to [$x3]} \left([$f3]\right)`]=[_________] END_PGML diff --git a/Contrib/CCCS/CalculusOne/02.4/CCD_CCCS_Openstax_Calc1_C1-2016-002_04_133.pg b/Contrib/CCCS/CalculusOne/02.4/CCD_CCCS_Openstax_Calc1_C1-2016-002_04_133.pg index 7fcd12c934..961a7bb775 100644 --- a/Contrib/CCCS/CalculusOne/02.4/CCD_CCCS_Openstax_Calc1_C1-2016-002_04_133.pg +++ b/Contrib/CCCS/CalculusOne/02.4/CCD_CCCS_Openstax_Calc1_C1-2016-002_04_133.pg @@ -22,8 +22,8 @@ loadMacros( "parserPopUp.pl", "MathObjects.pl", "PGgraphmacros.pl", - "PGcourse.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", + "PGML.pl", "PGcourse.pl", "parserAssignment.pl", @@ -54,7 +54,7 @@ $x1 = non_zero_random(-3,3,1); $f = Formula("x/(x^2 - $x1*x)")->reduce; $no_disc = Real(4); -# types of discontinuity +# types of discontinuity if ($x1 < $x0) { $popup1 = PopUp(['?','removable', 'jump', 'infinite'],'infinite'); $popup2 = PopUp(['?','removable', 'jump', 'infinite'],'removable'); @@ -81,9 +81,9 @@ Context()->texStrings; # setting up the scaffold so students must answer the first question before students # can answer the next part and so on. Scaffold::Begin( - can_open => "when_previous_correct", - is_open => "first_incorrect", - instructor_can_open => "always", + can_open => "when_previous_correct", + is_open => "first_incorrect", + instructor_can_open => "always", after_AnswerDate_can_open => "always" ); @@ -96,7 +96,7 @@ Consider the function [`f(x)=[$f]`]. List all [`x`] values for which the function is discontinuous. Separate values by a comma. -[`x=`] [____________][@ AnswerFormatHelp("numbers") @]* +[`x=`] [____________][@ helpLink("numbers") @]* END_PGML @@ -131,9 +131,9 @@ BEGIN_PGML For each [`x`] value where [`f(x)`] is discontinuous, classify the type of discontinuity. -At [`x=[$ans2]`], the classification is: [@ $popup1->menu() @]*. +At [`x=[$ans2]`], the classification is: [@ $popup1->menu() @]*. -At [`x=[$ans3]`], the classification: [@ $popup2->menu() @]* . +At [`x=[$ans3]`], the classification: [@ $popup2->menu() @]* . END_PGML diff --git a/Contrib/CCCS/CalculusOne/02.4/CCD_CCCS_Openstax_Calc1_C1-2016-002_04_134.pg b/Contrib/CCCS/CalculusOne/02.4/CCD_CCCS_Openstax_Calc1_C1-2016-002_04_134.pg index 2e03e48184..d574862213 100644 --- a/Contrib/CCCS/CalculusOne/02.4/CCD_CCCS_Openstax_Calc1_C1-2016-002_04_134.pg +++ b/Contrib/CCCS/CalculusOne/02.4/CCD_CCCS_Openstax_Calc1_C1-2016-002_04_134.pg @@ -22,8 +22,8 @@ loadMacros( "parserPopUp.pl", "MathObjects.pl", "PGgraphmacros.pl", - "PGcourse.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", + "PGML.pl", "PGcourse.pl", "parserAssignment.pl", @@ -54,7 +54,7 @@ $x0 = Real(0); $x1 = non_zero_random(-3,3,1); $f = Formula("t^{-1} + $x1")->reduce; -# types of discontinuity +# types of discontinuity $popup1 = PopUp(['?','removable', 'jump', 'infinite'],'infinite'); @@ -70,9 +70,9 @@ Context()->texStrings; # setting up the scaffold so students must answer the first question before students # can answer the next part and so on. Scaffold::Begin( - can_open => "when_previous_correct", - is_open => "first_incorrect", - instructor_can_open => "always", + can_open => "when_previous_correct", + is_open => "first_incorrect", + instructor_can_open => "always", after_AnswerDate_can_open => "always" ); @@ -87,7 +87,7 @@ Consider the function [`f(t)=[$f]`] List all [`t`] values for which the function is discontinuous. Separate values by a comma. -[`t=`] [_________][@ AnswerFormatHelp("numbers") @]* +[`t=`] [_________][@ helpLink("numbers") @]* END_PGML @@ -122,7 +122,7 @@ BEGIN_PGML For each [`t`] value where [`f(t)`] is discontinuous, classify the type of discontinuity. -At [`t=[$x0]`], the classification is: [@ $popup1->menu() @]*. +At [`t=[$x0]`], the classification is: [@ $popup1->menu() @]*. END_PGML diff --git a/Contrib/CCCS/CalculusOne/02.4/CCD_CCCS_Openstax_Calc1_C1-2016-002_04_135.pg b/Contrib/CCCS/CalculusOne/02.4/CCD_CCCS_Openstax_Calc1_C1-2016-002_04_135.pg index f835697eb1..8971407e85 100644 --- a/Contrib/CCCS/CalculusOne/02.4/CCD_CCCS_Openstax_Calc1_C1-2016-002_04_135.pg +++ b/Contrib/CCCS/CalculusOne/02.4/CCD_CCCS_Openstax_Calc1_C1-2016-002_04_135.pg @@ -22,8 +22,8 @@ loadMacros( "parserPopUp.pl", "MathObjects.pl", "PGgraphmacros.pl", - "PGcourse.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", + "PGML.pl", "PGcourse.pl", "parserAssignment.pl", @@ -56,7 +56,7 @@ $b = random(1,5,1); $f = Formula("$a/(e^x-$b)")->reduce; $x0 = Formula("ln($b)"); -# types of discontinuity +# types of discontinuity $popup1 = PopUp(['?','removable', 'jump', 'infinite'],'infinite'); $ans2 = Compute($x0); @@ -78,9 +78,9 @@ Context()->texStrings; # setting up the scaffold so students must answer the first question before students # can answer the next part and so on. Scaffold::Begin( - can_open => "when_previous_correct", - is_open => "first_incorrect", - instructor_can_open => "always", + can_open => "when_previous_correct", + is_open => "first_incorrect", + instructor_can_open => "always", after_AnswerDate_can_open => "always" ); @@ -94,7 +94,7 @@ Consider the function [`f(x)=[$f]`]. List all [`x`] values for which the function is discontinuous. Separate values by a comma. Give exact answers. -[`x=`] [__________] [@ AnswerFormatHelp("numbers") @]* +[`x=`] [__________] [@ helpLink("numbers") @]* END_PGML ############################ @@ -128,7 +128,7 @@ BEGIN_PGML For each [`x`] value where [`f(x)`] is discontinuous, classify the type of discontinuity. -At [`x=\ln([$b])`], the classification is: [@ $popup1->menu() @]*. +At [`x=\ln([$b])`], the classification is: [@ $popup1->menu() @]*. END_PGML diff --git a/Contrib/CCCS/CalculusOne/02.4/CCD_CCCS_Openstax_Calc1_C1-2016-002_04_136.pg b/Contrib/CCCS/CalculusOne/02.4/CCD_CCCS_Openstax_Calc1_C1-2016-002_04_136.pg index 509f129838..bd6f58b25c 100644 --- a/Contrib/CCCS/CalculusOne/02.4/CCD_CCCS_Openstax_Calc1_C1-2016-002_04_136.pg +++ b/Contrib/CCCS/CalculusOne/02.4/CCD_CCCS_Openstax_Calc1_C1-2016-002_04_136.pg @@ -22,8 +22,8 @@ loadMacros( "parserPopUp.pl", "MathObjects.pl", "PGgraphmacros.pl", - "PGcourse.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", + "PGML.pl", "PGcourse.pl", "parserAssignment.pl", @@ -55,7 +55,7 @@ $x0 = non_zero_random(-3,3,1); $f = Formula("(abs(x-$x0))/(x-$x0)")->reduce; -# types of discontinuity +# types of discontinuity $popup1 = PopUp(['?','removable', 'jump', 'infinite'],'jump'); $ans2 = Compute($x0); @@ -77,9 +77,9 @@ Context()->texStrings; # setting up the scaffold so students must answer the first question before students # can answer the next part and so on. Scaffold::Begin( - can_open => "when_previous_correct", - is_open => "first_incorrect", - instructor_can_open => "always", + can_open => "when_previous_correct", + is_open => "first_incorrect", + instructor_can_open => "always", after_AnswerDate_can_open => "always" ); @@ -92,7 +92,7 @@ Consider the function [`f(x)=[$f]`]. List all [`x`] values for which the function is discontinuous. Separate values by a comma. -[`x=`] [_________] [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_________] [@ helpLink("numbers") @]* END_PGML @@ -127,7 +127,7 @@ BEGIN_PGML For each [`x`] value where [`f(x)`] is discontinuous, classify the type of discontinuity. -At [`x=[$x0]`], the classification is: [@ $popup1->menu() @]*. +At [`x=[$x0]`], the classification is: [@ $popup1->menu() @]*. END_PGML diff --git a/Contrib/CCCS/CalculusOne/02.4/CCD_CCCS_Openstax_Calc1_C1-2016-002_04_138.pg b/Contrib/CCCS/CalculusOne/02.4/CCD_CCCS_Openstax_Calc1_C1-2016-002_04_138.pg index ca652d45f9..f975c17b49 100644 --- a/Contrib/CCCS/CalculusOne/02.4/CCD_CCCS_Openstax_Calc1_C1-2016-002_04_138.pg +++ b/Contrib/CCCS/CalculusOne/02.4/CCD_CCCS_Openstax_Calc1_C1-2016-002_04_138.pg @@ -22,8 +22,8 @@ loadMacros( "parserPopUp.pl", "MathObjects.pl", "PGgraphmacros.pl", - "PGcourse.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", + "PGML.pl", "PGcourse.pl", "parserAssignment.pl", @@ -57,9 +57,9 @@ $x = non_zero_random(-6, 6, 1); do{$x0 = non_zero_random(-6, 6, 1);} until($x0 !=$x); $num = Formula("t+$x")->reduce; $denom = Formula("t^2 + ($x+$x0)*t+$x*$x0")->reduce; -$f_1 = Formula("$num/$denom"); +$f_1 = Formula("$num/$denom"); -# types of discontinuity +# types of discontinuity if ($x > $x0) { $popup1 = PopUp(['?','removable', 'jump', 'infinite'],'removable'); $popup2 = PopUp(['?','removable', 'jump', 'infinite'],'infinite'); @@ -91,9 +91,9 @@ Context()->texStrings; # setting up the scaffold so students must answer the first question before students # can answer the next part and so on. Scaffold::Begin( - can_open => "when_previous_correct", - is_open => "first_incorrect", - instructor_can_open => "always", + can_open => "when_previous_correct", + is_open => "first_incorrect", + instructor_can_open => "always", after_AnswerDate_can_open => "always" ); @@ -109,7 +109,7 @@ Consider the function [`f(t)=[$f_1]`]. List all [`t`] values for which the function is discontinuous in ascending order (smallest to largest). Give exact answers. Separate values with a comma. -[`t=`] [___________][@ AnswerFormatHelp("numbers") @]* +[`t=`] [___________][@ helpLink("numbers") @]* END_PGML @@ -144,8 +144,8 @@ BEGIN_PGML For each [`t`] value, classify each point of discontinuity. -At [`t=[$ans2]`], the classification is: [@ $popup1->menu() @]*. -At [`t=[$ans3]`], the classification is: [@ $popup2->menu() @]*. +At [`t=[$ans2]`], the classification is: [@ $popup1->menu() @]*. +At [`t=[$ans3]`], the classification is: [@ $popup2->menu() @]*. END_PGML diff --git a/Contrib/CCCS/CalculusOne/02.4/CCD_CCCS_Openstax_Calc1_C1-2016-002_04_139_143.pg b/Contrib/CCCS/CalculusOne/02.4/CCD_CCCS_Openstax_Calc1_C1-2016-002_04_139_143.pg index ee0757a48d..43abde2cff 100644 --- a/Contrib/CCCS/CalculusOne/02.4/CCD_CCCS_Openstax_Calc1_C1-2016-002_04_139_143.pg +++ b/Contrib/CCCS/CalculusOne/02.4/CCD_CCCS_Openstax_Calc1_C1-2016-002_04_139_143.pg @@ -19,7 +19,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserAssignment.pl", @@ -46,7 +46,7 @@ $x0 = non_zero_random(-6, 6, 1); $b = $x+$x0; $num = Formula("x^2 + $b*x+$x*$x0")->reduce; $denom = Formula("x+$x")->reduce; -$f_1 = Formula("$num/$denom")->reduce; +$f_1 = Formula("$num/$denom")->reduce; #answers for first function $popup1 = PopUp( @@ -67,7 +67,7 @@ $b2 = non_zero_random(-4, 4, 1); $c = non_zero_random(-6, 6, 1); $num1 = Formula("$a1*$a2*x^2 + ($a1*$b2+$a2*$b1)*x + $b1*$b2")->reduce; $denom1 = Formula("$a1*x+$b1")->reduce; -$f_2 = Formula("$num1/$denom1")->reduce; +$f_2 = Formula("$num1/$denom1")->reduce; $f_2simp = Formula("$a2*x+$b2")->reduce; $x_frac = Compute("-$b1/$a1"); @@ -94,11 +94,11 @@ $a = random(0, 1, 1); if ($a ==0) { $num2 = Formula("sin(pi*x)"); $denom2= Formula("tan(pi*x)")->reduce; - $f_3 = Formula("$num2/$denom2"); + $f_3 = Formula("$num2/$denom2"); } else { $num2 = Formula("cos(pi/2*x)"); $denom2= Formula("cot(pi/2*x)")->reduce; - $f_3 = Formula("$num2/$denom2"); + $f_3 = Formula("$num2/$denom2"); } # Answers for the Third function $popup5 = PopUp( @@ -109,7 +109,7 @@ $popup6 = PopUp( "Infinite", "Other", "Continuous"], "Removable", ); -# Fourth function of the form piecewise +# Fourth function of the form piecewise Context("Fraction-NoDecimals"); $a3 = non_zero_random(1, 3, 1); $a4 = non_zero_random(1, 3, 1); @@ -153,19 +153,19 @@ if ($aa == 1) { BEGIN_PGML (a) -[``f(x)=[$f_1]``] ; at `x=[$nx]`; the function is: [@ $popup1->menu() @]* Classification: [@ $popup2->menu() @]* +[``f(x)=[$f_1]``] ; at `x=[$nx]`; the function is: [@ $popup1->menu() @]* Classification: [@ $popup2->menu() @]* (b) - [` f(x)=[$fun] `] ; at `x=[$x_frac]` the function is: [@ $popup3->menu() @]* Classification: [@ $popup4->menu() @]* + [` f(x)=[$fun] `] ; at `x=[$x_frac]` the function is: [@ $popup3->menu() @]* Classification: [@ $popup4->menu() @]* (c) - [`` f(x)=[$f_3] ``] ; at `x=1` the function is: [@ $popup5->menu() @]* Classification: [@ $popup6->menu() @]* + [`` f(x)=[$f_3] ``] ; at `x=1` the function is: [@ $popup5->menu() @]* Classification: [@ $popup6->menu() @]* (d) - [` f(x)=[$fun2] `] ; at `x=0` the function is: [@ $popup7->menu() @]* Classification: [@ $popup8->menu() @]* + [` f(x)=[$fun2] `] ; at `x=0` the function is: [@ $popup7->menu() @]* Classification: [@ $popup8->menu() @]* END_PGML @@ -188,19 +188,19 @@ BEGIN_PGML (a) - [` f(x)=[$fun] `] ; at `x=[$x_frac]` the function is: [@ $popup3->menu() @]* Classification: [@ $popup4->menu() @]* + [` f(x)=[$fun] `] ; at `x=[$x_frac]` the function is: [@ $popup3->menu() @]* Classification: [@ $popup4->menu() @]* (b) - [`` f(x)=[$f_3] ``] ; at `x=1` the function is: [@ $popup5->menu() @]* Classification: [@ $popup6->menu() @]* + [`` f(x)=[$f_3] ``] ; at `x=1` the function is: [@ $popup5->menu() @]* Classification: [@ $popup6->menu() @]* (c) -[``f(x)=[$f_1]``] ; at `x=[$nx]` the function is: [@ $popup1->menu() @]* Classification: [@ $popup2->menu() @]* +[``f(x)=[$f_1]``] ; at `x=[$nx]` the function is: [@ $popup1->menu() @]* Classification: [@ $popup2->menu() @]* (d) - [` f(x)=[$fun2] `] ; at `x=0` the function is: [@ $popup7->menu() @]* Classification: [@ $popup8->menu() @]* + [` f(x)=[$fun2] `] ; at `x=0` the function is: [@ $popup7->menu() @]* Classification: [@ $popup8->menu() @]* END_PGML @@ -223,19 +223,19 @@ ANS( $popup8->cmp()); BEGIN_PGML (a) - [` f(x)=[$fun2] `] ; at `x=0` the function is: [@ $popup7->menu() @]* Classification: [@ $popup8->menu() @]* + [` f(x)=[$fun2] `] ; at `x=0` the function is: [@ $popup7->menu() @]* Classification: [@ $popup8->menu() @]* (b) - [`` f(x)=[$f_3] ``] ; at `x=1` the function is: [@ $popup5->menu() @]* Classification: [@ $popup6->menu() @]* + [`` f(x)=[$f_3] ``] ; at `x=1` the function is: [@ $popup5->menu() @]* Classification: [@ $popup6->menu() @]* (c) -[``f(x)=[$f_1]``] ; at `x=[$nx]` the function is: [@ $popup1->menu() @]* Classification: [@ $popup2->menu() @]* +[``f(x)=[$f_1]``] ; at `x=[$nx]` the function is: [@ $popup1->menu() @]* Classification: [@ $popup2->menu() @]* (d) - [` f(x)=[$fun] `] ; at `x=[$x_frac]` the function is: [@ $popup3->menu() @]* Classification: [@ $popup4->menu() @]* + [` f(x)=[$fun] `] ; at `x=[$x_frac]` the function is: [@ $popup3->menu() @]* Classification: [@ $popup4->menu() @]* @@ -259,19 +259,19 @@ ANS( $popup4->cmp()); BEGIN_PGML (a) - [` f(x)=[$fun] `] ; at `x=[$x_frac]` the function is: [@ $popup3->menu() @]* Classification: [@ $popup4->menu() @]* + [` f(x)=[$fun] `] ; at `x=[$x_frac]` the function is: [@ $popup3->menu() @]* Classification: [@ $popup4->menu() @]* (b) -[``f(x)=[$f_1]``] ; at `x=[$nx]` the function is: [@ $popup1->menu() @]* Classification: [@ $popup2->menu() @]* +[``f(x)=[$f_1]``] ; at `x=[$nx]` the function is: [@ $popup1->menu() @]* Classification: [@ $popup2->menu() @]* (c) - [` f(x)=[$fun2] `] ; at `x=0` the function is: [@ $popup7->menu() @]* Classification: [@ $popup8->menu() @]* + [` f(x)=[$fun2] `] ; at `x=0` the function is: [@ $popup7->menu() @]* Classification: [@ $popup8->menu() @]* (d) - [`` f(x)=[$f_3] ``] ; at `x=1` the function is: [@ $popup5->menu() @]* Classification: [@ $popup6->menu() @]* + [`` f(x)=[$f_3] ``] ; at `x=1` the function is: [@ $popup5->menu() @]* Classification: [@ $popup6->menu() @]* END_PGML @@ -285,7 +285,7 @@ ANS( $popup4->cmp()); ANS( $popup1->cmp()); ANS( $popup2->cmp()); ANS( $popup7->cmp()); -ANS( $popup8->cmp()); +ANS( $popup8->cmp()); ANS( $popup5->cmp()); ANS( $popup6->cmp()); } diff --git a/Contrib/CCCS/CalculusOne/02.4/CCD_CCCS_Openstax_Calc1_C1-2016-002_04_145_147.pg b/Contrib/CCCS/CalculusOne/02.4/CCD_CCCS_Openstax_Calc1_C1-2016-002_04_145_147.pg index bb4ab2be99..2907967b93 100644 --- a/Contrib/CCCS/CalculusOne/02.4/CCD_CCCS_Openstax_Calc1_C1-2016-002_04_145_147.pg +++ b/Contrib/CCCS/CalculusOne/02.4/CCD_CCCS_Openstax_Calc1_C1-2016-002_04_145_147.pg @@ -19,7 +19,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserAssignment.pl", @@ -61,7 +61,7 @@ $b2 = non_zero_random(-4, 4, 1); $c = non_zero_random(-6, 6, 1); $num1 = Formula("$a1*$a2*x^2 + ($a1*$b2+$a2*$b1)*x + $b1*$b2")->reduce; $denom1 = Formula("$a1*x+$b1")->reduce; -$f_3 = Formula("$num1/$denom1")->reduce; +$f_3 = Formula("$num1/$denom1")->reduce; $f_3simp = Formula("$a2*x+$b2"); $x_frac = Compute("-$b1/$a1"); @@ -77,12 +77,12 @@ BEGIN_PGML Find the value(s) of `k` that makes each function continuous everywhere. Give exact answers. -(a) +(a) [`f(x) = \begin{cases} [$f_1], &x < k\\ [$f_2], &k \le x <\infty\\ \end{cases} -`] ; [`\hspace{.15in}`] `k =` [__________] [@ AnswerFormatHelp("numbers") @]* +`] ; [`\hspace{.15in}`] `k =` [__________] [@ helpLink("numbers") @]* (b) [`g(x) = \begin{cases} diff --git a/Contrib/CCCS/CalculusOne/02.4/CCD_CCCS_Openstax_Calc1_C1-2016-002_04_153.pg b/Contrib/CCCS/CalculusOne/02.4/CCD_CCCS_Openstax_Calc1_C1-2016-002_04_153.pg index a41abb224f..cfd9a280fe 100644 --- a/Contrib/CCCS/CalculusOne/02.4/CCD_CCCS_Openstax_Calc1_C1-2016-002_04_153.pg +++ b/Contrib/CCCS/CalculusOne/02.4/CCD_CCCS_Openstax_Calc1_C1-2016-002_04_153.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserAssignment.pl", diff --git a/Contrib/CCCS/CalculusOne/02.4/CCD_CCCS_Openstax_Calc1_C1-2016-002_04_154.pg b/Contrib/CCCS/CalculusOne/02.4/CCD_CCCS_Openstax_Calc1_C1-2016-002_04_154.pg index 6f7877cd86..673d6501e1 100644 --- a/Contrib/CCCS/CalculusOne/02.4/CCD_CCCS_Openstax_Calc1_C1-2016-002_04_154.pg +++ b/Contrib/CCCS/CalculusOne/02.4/CCD_CCCS_Openstax_Calc1_C1-2016-002_04_154.pg @@ -22,8 +22,8 @@ loadMacros( "parserPopUp.pl", "MathObjects.pl", "PGgraphmacros.pl", - "PGcourse.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", + "PGML.pl", "PGcourse.pl", "parserAssignment.pl", @@ -53,14 +53,14 @@ $a = random(1,3,1); $no_disc = Real(4); if ($a==1){ -# types of discontinuity +# types of discontinuity $popup1 = PopUp(['?','removable', 'jump', 'infinite'],'infinite'); $popup2 = PopUp(['?','removable', 'jump', 'infinite'],'removable'); $popup3 = PopUp(['?','removable', 'jump', 'infinite'],'removable'); $popup4 = PopUp(['?','removable', 'jump', 'infinite'],'jump'); -# which part of the definition is not satisfied -$popup5 = PopUp(['?','i only', 'ii only', 'iii only', 'i and ii', 'i and iii', 'ii and iii', +# which part of the definition is not satisfied +$popup5 = PopUp(['?','i only', 'ii only', 'iii only', 'i and ii', 'i and iii', 'ii and iii', 'i, ii and iii'],'ii and iii'); $popup6 = PopUp(['?','i only', 'ii only', 'iii only', 'i and ii', 'i and iii', 'ii and iii', 'i, ii and iii'],'i and iii'); @@ -91,15 +91,15 @@ $p7 = FEQ("(x-4)^2-2 for x in (4,8] using color:blue weight:2"); ############################################################### if ($a==2){ -# types of discontinuity +# types of discontinuity $popup1 = PopUp(['?','removable', 'jump', 'infinite'],'jump'); $popup2 = PopUp(['?','removable', 'jump', 'infinite'],'removable'); $popup3 = PopUp(['?','removable', 'jump', 'infinite'],'removable'); $popup4 = PopUp(['?','removable', 'jump', 'infinite'],'infinite'); -# which part of the definition is not satisfied -$popup5 = PopUp(['?','i only', 'ii only', 'iii only', 'i and ii', 'i and iii', 'ii and iii', +# which part of the definition is not satisfied +$popup5 = PopUp(['?','i only', 'ii only', 'iii only', 'i and ii', 'i and iii', 'ii and iii', 'i, ii and iii'],'ii and iii'); $popup6 = PopUp(['?','i only', 'ii only', 'iii only', 'i and ii', 'i and iii', 'ii and iii', 'i, ii and iii'],'iii only'); @@ -131,13 +131,13 @@ $p7 = FEQ("-1/(x-4)^2 for x in <4.01,8] using color:blue weight:2"); ############################################################### if ($a==3){ -# types of discontinuity +# types of discontinuity $popup1 = PopUp(['?','removable', 'jump', 'infinite'],'jump'); $popup2 = PopUp(['?','removable', 'jump', 'infinite'],'infinite'); $popup3 = PopUp(['?','removable', 'jump', 'infinite'],'jump'); $popup4 = PopUp(['?','removable', 'jump', 'infinite'],'removable'); -# which part of the definition is not satisfied +# which part of the definition is not satisfied $popup5 = PopUp(['?','i only', 'ii only', 'iii only', 'i and ii', 'i and iii', 'ii and iii', 'i, ii and iii'],'i, ii and iii'); $popup6 = PopUp(['?','i only', 'ii only', 'iii only', 'i and ii', 'i and iii', 'ii and iii', @@ -176,17 +176,17 @@ Context()->texStrings; # setting up the scaffold so students must answer the first question before students # can answer the next part and so on. Scaffold::Begin( - can_open => "when_previous_correct", - is_open => "first_incorrect", - instructor_can_open => "always", + can_open => "when_previous_correct", + is_open => "first_incorrect", + instructor_can_open => "always", after_AnswerDate_can_open => "always" ); BEGIN_PGML Consider the graph of the function [`y = f(x)`] ->>[@ image(insertGraph($graph1), width=>$w,height=>$w,tex_size=>$tw), - @]* << +>>[@ image(insertGraph($graph1), width=>$w,height=>$w,tex_size=>$tw), + @]* << END_PGML @@ -221,9 +221,9 @@ Section::Begin("Part 2: 1 point"); BEGIN_PGML -List all [`x-`]values for which the function is discontinous in ascending order (smallest to largest). +List all [`x-`]values for which the function is discontinous in ascending order (smallest to largest). -[`x=`] [______], [`x=`] [______], [`x=`] [______], [`x=`] [______] +[`x=`] [______], [`x=`] [______], [`x=`] [______], [`x=`] [______] END_PGML @@ -248,15 +248,15 @@ DEFINITION: a function [`f(x)`] is continuous at a point [`a`] if and only if th [`ii`]. `\lim_{x \to a} f(x)` exists -[`iii`]. `\lim_{x \to a} f(x) = f(a)` +[`iii`]. `\lim_{x \to a} f(x) = f(a)` For each [`x-`]value, determine which condition(s) of the formal definition is not satisfied at each point of discontinuity. -[`x=[$x1]`] Condition(s): [@ $popup5->menu() @]* ; -[`x=[$x2]`] Condition(s): [@ $popup6->menu() @]* ; -[`x=[$x3]`] Condition(s): [@ $popup7->menu() @]* ; -[`x=[$x4]`] Condition(s): [@ $popup8->menu() @]* ; +[`x=[$x1]`] Condition(s): [@ $popup5->menu() @]* ; +[`x=[$x2]`] Condition(s): [@ $popup6->menu() @]* ; +[`x=[$x3]`] Condition(s): [@ $popup7->menu() @]* ; +[`x=[$x4]`] Condition(s): [@ $popup8->menu() @]* ; END_PGML @@ -278,11 +278,11 @@ BEGIN_PGML For each [`x-`]value, classify each point of discontinuity. -[`x=[$x1]`] Classification: [@ $popup1->menu() @]* ; -[`x=[$x2]`] Classification: [@ $popup2->menu() @]* ; +[`x=[$x1]`] Classification: [@ $popup1->menu() @]* ; +[`x=[$x2]`] Classification: [@ $popup2->menu() @]* ; -[`x=[$x3]`] Classification: [@ $popup3->menu() @]* ; -[`x=[$x4]`] Classification: [@ $popup4->menu() @]* ; +[`x=[$x3]`] Classification: [@ $popup3->menu() @]* ; +[`x=[$x4]`] Classification: [@ $popup4->menu() @]* ; END_PGML diff --git a/Contrib/CCCS/CalculusOne/02.4/CCD_CCCS_Openstax_Calc1_C1-2016-002_04_157.pg b/Contrib/CCCS/CalculusOne/02.4/CCD_CCCS_Openstax_Calc1_C1-2016-002_04_157.pg index d1771f9f04..1cb364649f 100644 --- a/Contrib/CCCS/CalculusOne/02.4/CCD_CCCS_Openstax_Calc1_C1-2016-002_04_157.pg +++ b/Contrib/CCCS/CalculusOne/02.4/CCD_CCCS_Openstax_Calc1_C1-2016-002_04_157.pg @@ -22,8 +22,8 @@ loadMacros( "parserPopUp.pl", "MathObjects.pl", "PGgraphmacros.pl", - "PGcourse.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", + "PGML.pl", "PGcourse.pl", "parserAssignment.pl", @@ -55,7 +55,7 @@ $f = Formula("x^3/(6*x*(x-$x0))"); $y = $f ->eval(x=>$x2); $m = 2; # slope -# This is the answer +# This is the answer $graph1 = init_graph(-8,-8,8,8,'axes'=>[0,0],'ticks'=>[16,16],'grid'=>[16,16],'size'=>[400,400]); $xL = $x0 - 0.000001; @@ -120,8 +120,8 @@ $graph4->gifName($graph4->gifName()."$in"); ############################################################### BEGIN_PGML - -Which of the following graphs represents the graph of [`y = f(x)`] with properites `i` through `vii`? [@ $popup1->menu() @]* + +Which of the following graphs represents the graph of [`y = f(x)`] with properites `i` through `vii`? [@ $popup1->menu() @]* `i.` The domain of `f` is [`(-\infty, \infty)`]. @@ -138,7 +138,7 @@ Which of the following graphs represents the graph of [`y = f(x)`] with properit `vii.` `\lim_{x \to -infty} f(x) = -infty` and `\lim_{x \to infty} f(x) = infty`. ->>A. [@ image(insertGraph($graph4), width=>200, height=>200), @]* B. [@ image(insertGraph($graph3), width=>200, height=>200), @]* << +>>A. [@ image(insertGraph($graph4), width=>200, height=>200), @]* B. [@ image(insertGraph($graph3), width=>200, height=>200), @]* << >>C. [@ image(insertGraph($graph2), width=>200, height=>200), @]* D. [@ image(insertGraph($graph1), width=>200, height=>200), @]* << END_PGML diff --git a/Contrib/CCCS/CalculusOne/02.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_05_180_181.pg b/Contrib/CCCS/CalculusOne/02.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_05_180_181.pg index 011ef8ee6c..85e07d96f5 100644 --- a/Contrib/CCCS/CalculusOne/02.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_05_180_181.pg +++ b/Contrib/CCCS/CalculusOne/02.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_05_180_181.pg @@ -22,7 +22,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserAssignment.pl", @@ -48,15 +48,15 @@ Context("Numeric"); Context()->flags->set(tolerance => 0.1); # having answers to 4 decimal places AND reduced -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; -# adding d as a variable +# adding d as a variable Context()->variables->add(d => 'Real'); # building the function $a1 = random(0.5, 1, 0.5); #coefficient on x^2 -$funct = Formula("$a1*x^2")->reduce; +$funct = Formula("$a1*x^2")->reduce; $a = non_zero_random(1,4,1); # value for x, as x goes to a $x_minus_a = Formula("x - $a")->reduce(); @@ -98,7 +98,7 @@ BEGIN_PGML The graph of the function `f(x) = [$funct]` satisfies `\lim_{x \to [$a]} f(x) = [$L]`. -[@ image(insertGraph($gr), width=>400, height=>400), @]* +[@ image(insertGraph($gr), width=>400, height=>400), @]* END_PGML @@ -113,10 +113,10 @@ END_TEXT BEGIN_PGML -Determine a value `delta > 0` that satisfy each statement. +Determine a value `delta > 0` that satisfy each statement. (a) -if `0 < abs([$x_minus_a])normalStrings; diff --git a/Contrib/CCCS/CalculusOne/02.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_05_182_183.pg b/Contrib/CCCS/CalculusOne/02.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_05_182_183.pg index d2076d91eb..04fa45e452 100644 --- a/Contrib/CCCS/CalculusOne/02.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_05_182_183.pg +++ b/Contrib/CCCS/CalculusOne/02.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_05_182_183.pg @@ -22,7 +22,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserAssignment.pl", @@ -48,16 +48,16 @@ Context("Numeric"); Context()->flags->set(tolerance => 0.01); # having answers to 4 decimal places AND reduced -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; -# adding d as a variable +# adding d as a variable Context()->variables->add(d => 'Real'); # building the function $m = random(-3,-1,1); #slope $b = non_zero_random(-4,4,1); #intercept -$funct = Formula("$m*x+$b")->reduce(); +$funct = Formula("$m*x+$b")->reduce(); $a = non_zero_random(-4,4,1); # value for x, as x goes to a $x_minus_a = Formula("x - $a")->reduce(); @@ -119,7 +119,7 @@ BEGIN_PGML The graph of the function `f` satisfies `\lim_{x \to [$a]} f(x) = [$L]`. -[@ image(insertGraph($gr), width=>400, height=>400), @]* +[@ image(insertGraph($gr), width=>400, height=>400), @]* END_PGML @@ -135,10 +135,10 @@ if ($L< 0) { BEGIN_PGML -Determine a value `delta > 0` that satisfy each statement. +Determine a value `delta > 0` that satisfy each statement. (a) -if `0 < abs([$x_minus_a]) 0` that satisfy each statement. +Determine a value `delta > 0` that satisfy each statement. (a) -if `0 < abs([$x_minus_a])normalStrings; diff --git a/Contrib/CCCS/CalculusOne/02.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_05_184_185.pg b/Contrib/CCCS/CalculusOne/02.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_05_184_185.pg index ebd0029898..32c1231b87 100644 --- a/Contrib/CCCS/CalculusOne/02.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_05_184_185.pg +++ b/Contrib/CCCS/CalculusOne/02.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_05_184_185.pg @@ -22,7 +22,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserAssignment.pl", @@ -49,16 +49,16 @@ Context()->reduce('x-(-y)'); Context()->flags->set(tolerance => 0.01); # having answers to 4 decimal places AND reduced -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; -# adding f as a variable +# adding f as a variable Context()->variables->add(f => 'Real'); # building the function $m = random(1,3,1); #slope $b = non_zero_random(-2,2,1); #intercept -$funct = Formula("$m*x+$b")->reduce(); +$funct = Formula("$m*x+$b")->reduce(); $a = non_zero_random(-2,1,1); # value for x, as x goes to a $x_minus_a = Formula("x - $a")->reduce(); @@ -103,7 +103,7 @@ BEGIN_PGML The graph of the function `f` satisfies [`\displaystyle \lim_{x \to [$a]} [$funct] = [$L]`]. -[@ image(insertGraph($gr), width=>400, height=>400), @]* +[@ image(insertGraph($gr), width=>400, height=>400), @]* END_PGML @@ -121,7 +121,7 @@ BEGIN_PGML Determine a value `delta > 0` that would satisfy the definition of the limit. (a) -If `epsilon = [$epsilon1]`, a good value would be `delta le` [________] [@ AnswerFormatHelp("numbers") @]* +If `epsilon = [$epsilon1]`, a good value would be `delta le` [________] [@ helpLink("numbers") @]* (b) If `epsilon = [$epsilon2]`, a good value would be `delta le` [________] @@ -132,7 +132,7 @@ END_PGML ############################ -# Answer evaluation +# Answer evaluation Context()->normalStrings; diff --git a/Contrib/CCCS/CalculusOne/02.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_05_188.pg b/Contrib/CCCS/CalculusOne/02.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_05_188.pg index cfb482c7e1..fc57f23789 100644 --- a/Contrib/CCCS/CalculusOne/02.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_05_188.pg +++ b/Contrib/CCCS/CalculusOne/02.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_05_188.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserAssignment.pl", @@ -74,7 +74,7 @@ BEGIN_PGML Complete the proof that `\lim_{x \to [$a]}`[`([$f]) = [$L]`] by filling in the blanks. Use "e" for `epsilon` and "d" for `delta`. -Let `epsilon > 0`. +Let `epsilon > 0`. Choose `delta = ` [__________]{$delta}. diff --git a/Contrib/CCCS/CalculusOne/03.1/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_1_1.pg b/Contrib/CCCS/CalculusOne/03.1/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_1_1.pg index b90bf5add0..4ce6416177 100644 --- a/Contrib/CCCS/CalculusOne/03.1/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_1_1.pg +++ b/Contrib/CCCS/CalculusOne/03.1/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_1_1.pg @@ -19,7 +19,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -39,11 +39,11 @@ $ans = Formula("((4*$b+7)-(4*$a+7))/($b-$a)")->reduce; # Main text BEGIN_PGML -Recall that the formula for the slope of a secant line to `f(x)` between `x_1` and `x_2` is `m_(sec) = (f(x_2)-f(x_1))/(x_2-x_1)`. +Recall that the formula for the slope of a secant line to `f(x)` between `x_1` and `x_2` is `m_(sec) = (f(x_2)-f(x_1))/(x_2-x_1)`. Given [`f(x)=4x+7`], find the slope of the secant line to `f(x)` between `x_1=[$a]` and `x_2=[$b]`. - `m_(sec)=`[_______________]{$ans } -[@ AnswerFormatHelp("numbers") @]* + `m_(sec)=`[_______________]{$ans } +[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/03.1/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_1_11.pg b/Contrib/CCCS/CalculusOne/03.1/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_1_11.pg index 1e8b36d5f5..2a601e1f2c 100644 --- a/Contrib/CCCS/CalculusOne/03.1/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_1_11.pg +++ b/Contrib/CCCS/CalculusOne/03.1/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_1_11.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -41,14 +41,14 @@ $ans2 = Formula("-4*x+3")->reduce; # Main text BEGIN_PGML -The slope of the tangent line to `f(x)` at `x=a` can be found by evaluating the limit `m_(tan) = \lim_{h \to 0} (f(a+h)-f(a))/h` provided the limit exists. +The slope of the tangent line to `f(x)` at `x=a` can be found by evaluating the limit `m_(tan) = \lim_{h \to 0} (f(a+h)-f(a))/h` provided the limit exists. Given [`f(x)=3-4x`], find the slope of the tangent line to `f(x)` at `x=[$a]` using the above definition. Then find the equation of the tangent line to `f(x)` at `x=[$a]`. -a. `m_(tan)=`[_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +a. `m_(tan)=`[_______________]{$ans1} [@ helpLink("numbers") @]* -b. The tangent line to `f(x)` at `x=[$a]` in slope intercept form is `y=`[________________]{$ans2} [@ AnswerFormatHelp("formulas") @]* +b. The tangent line to `f(x)` at `x=[$a]` in slope intercept form is `y=`[________________]{$ans2} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/03.1/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_1_13.pg b/Contrib/CCCS/CalculusOne/03.1/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_1_13.pg index b1b466322b..3347ae7682 100644 --- a/Contrib/CCCS/CalculusOne/03.1/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_1_13.pg +++ b/Contrib/CCCS/CalculusOne/03.1/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_1_13.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -42,14 +42,14 @@ $ans2 = Formula("$ans1*x+$yint")->reduce; # Main text BEGIN_PGML -The slope of the tangent line to `f(x)` at `x=a` can be found by evaluating the limit `m_(tan) = \lim_{h \to 0} (f(a+h)-f(a))/h` provided the limit exists. +The slope of the tangent line to `f(x)` at `x=a` can be found by evaluating the limit `m_(tan) = \lim_{h \to 0} (f(a+h)-f(a))/h` provided the limit exists. Given [`f(x)=x^2+x`], find the slope of the tangent line to `f(x)` at `x=[$a]` using the above definition. Then find the equation of the tangent line to `f(x)` at `x=[$a]`. -a. `m_(tan)=`[_______________]{$ans1}[@ AnswerFormatHelp("numbers") @]* +a. `m_(tan)=`[_______________]{$ans1}[@ helpLink("numbers") @]* -b. The equation of the tangent line to `f(x)` at `x=[$a]` in slope intercept form is `y=`[________________]{$ans2}[@ AnswerFormatHelp("formulas") @]* +b. The equation of the tangent line to `f(x)` at `x=[$a]` in slope intercept form is `y=`[________________]{$ans2}[@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/03.1/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_1_15.pg b/Contrib/CCCS/CalculusOne/03.1/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_1_15.pg index caaf8f5e3f..2186445b7d 100644 --- a/Contrib/CCCS/CalculusOne/03.1/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_1_15.pg +++ b/Contrib/CCCS/CalculusOne/03.1/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_1_15.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -42,14 +42,14 @@ $ans2 = Formula("$ans1*x+$yint")->reduce; # Main text BEGIN_PGML -The slope of the tangent line to `f(x)` at `x=a` can be found by evaluating the limit `m_(tan) = \lim_{h \to 0} (f(a+h)-f(a))/h` provided the limit exists. +The slope of the tangent line to `f(x)` at `x=a` can be found by evaluating the limit `m_(tan) = \lim_{h \to 0} (f(a+h)-f(a))/h` provided the limit exists. Given [`f(x)=\dfrac{7}{x}`] , find the slope of the tangent line to `f(x)` at `x=[$a]` using the above definition. Then find the equation of the tangent line to `f(x)` at `x=[$a]`. -a. `m_(tan)=`[_______________]{$ans1}[@ AnswerFormatHelp("numbers") @]* +a. `m_(tan)=`[_______________]{$ans1}[@ helpLink("numbers") @]* -b. The equation of the tangent line to `f(x)` at `x=[$a]` in slope intercept form is `y=`[________________]{$ans2}[@ AnswerFormatHelp("formulas") @]* +b. The equation of the tangent line to `f(x)` at `x=[$a]` in slope intercept form is `y=`[________________]{$ans2}[@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/03.1/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_1_16.pg b/Contrib/CCCS/CalculusOne/03.1/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_1_16.pg index 67183dbf59..ee3f3bd3ad 100644 --- a/Contrib/CCCS/CalculusOne/03.1/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_1_16.pg +++ b/Contrib/CCCS/CalculusOne/03.1/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_1_16.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -42,14 +42,14 @@ $ans2 = Formula("$ans1*x+$yint"); # Main text BEGIN_PGML -The slope of the tangent line to `f(x)` at `x=a` can be found by evaluating the limit `m_(tan) = \lim_{h \to 0} (f(a+h)-f(a))/h` provided the limit exists. +The slope of the tangent line to `f(x)` at `x=a` can be found by evaluating the limit `m_(tan) = \lim_{h \to 0} (f(a+h)-f(a))/h` provided the limit exists. -Given [`f(x)=\sqrt{x+8}`] , find the slope of the tangent line to `f(x)` at `x=[$a]` using the above definition. Then find the equation of the tangent line to `f(x)` at `x=[$a]`. +Given [`f(x)=\sqrt{x+8}`] , find the slope of the tangent line to `f(x)` at `x=[$a]` using the above definition. Then find the equation of the tangent line to `f(x)` at `x=[$a]`. -a. `m_(tan)=`[_______________]{$ans1}[@ AnswerFormatHelp("numbers") @]* +a. `m_(tan)=`[_______________]{$ans1}[@ helpLink("numbers") @]* -b. The equation of the tangent line to `f(x)` at `x=[$a]` in slope intercept form is `y=`[________________]{$ans2}[@ AnswerFormatHelp("formulas") @]* +b. The equation of the tangent line to `f(x)` at `x=[$a]` in slope intercept form is `y=`[________________]{$ans2}[@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/03.1/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_1_21.pg b/Contrib/CCCS/CalculusOne/03.1/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_1_21.pg index 1dfd877dc7..532ba04b78 100644 --- a/Contrib/CCCS/CalculusOne/03.1/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_1_21.pg +++ b/Contrib/CCCS/CalculusOne/03.1/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_1_21.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -40,11 +40,11 @@ $ans1 = 5; # Main text BEGIN_PGML -The slope of the tangent line to `f(x)` at `x=a` can be found by evaluating the limit `f^\prime(a)=m_(tan) = \lim_{x \to a} (f(x)-f(a))/(x-a)` provided the limit exists. - Use this limit to find `f^\prime([$a])` given [`f(x)=5x+4`]. +The slope of the tangent line to `f(x)` at `x=a` can be found by evaluating the limit `f^\prime(a)=m_(tan) = \lim_{x \to a} (f(x)-f(a))/(x-a)` provided the limit exists. + Use this limit to find `f^\prime([$a])` given [`f(x)=5x+4`]. - `f^\prime([$a])=`[_______________]{$ans1}[@ AnswerFormatHelp("numbers") @]* + `f^\prime([$a])=`[_______________]{$ans1}[@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CalculusOne/03.1/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_1_23.pg b/Contrib/CCCS/CalculusOne/03.1/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_1_23.pg index 78faf49e03..8ec2dfafc0 100644 --- a/Contrib/CCCS/CalculusOne/03.1/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_1_23.pg +++ b/Contrib/CCCS/CalculusOne/03.1/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_1_23.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -40,11 +40,11 @@ $ans1 = 2*$a+9; # Main text BEGIN_PGML -The slope of the tangent line to `f(x)` at `x=a` can be found by evaluating the limit `f^\prime(a)=m_(tan) = \lim_{x \to a} (f(x)-f(a))/(x-a)` provided the limit exists. - Use this limit to find `f^\prime([$a])` given [`f(x)=x^2+9x`]. +The slope of the tangent line to `f(x)` at `x=a` can be found by evaluating the limit `f^\prime(a)=m_(tan) = \lim_{x \to a} (f(x)-f(a))/(x-a)` provided the limit exists. + Use this limit to find `f^\prime([$a])` given [`f(x)=x^2+9x`]. -`f^\prime([$a])=`[_______________]{$ans1}[@ AnswerFormatHelp("numbers") @]* +`f^\prime([$a])=`[_______________]{$ans1}[@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CalculusOne/03.1/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_1_26.pg b/Contrib/CCCS/CalculusOne/03.1/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_1_26.pg index 9b5902c169..8b7bb87df3 100644 --- a/Contrib/CCCS/CalculusOne/03.1/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_1_26.pg +++ b/Contrib/CCCS/CalculusOne/03.1/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_1_26.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -40,11 +40,11 @@ $ans1 = 1/(2*sqrt($a-2)); # Main text BEGIN_PGML -The slope of the tangent line to `f(x)` at `x=a` can be found by evaluating the limit `f^\prime(a)=m_(tan) = \lim_{x \to a} (f(x)-f(a))/(x-a)` provided the limit exists. +The slope of the tangent line to `f(x)` at `x=a` can be found by evaluating the limit `f^\prime(a)=m_(tan) = \lim_{x \to a} (f(x)-f(a))/(x-a)` provided the limit exists. Use this limit to find `f^\prime([$a])` given [`f(x)=\sqrt{x-2}`]. - `f^\prime([$a])=`[_______________]{$ans1}[@ AnswerFormatHelp("numbers") @]* + `f^\prime([$a])=`[_______________]{$ans1}[@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CalculusOne/03.1/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_1_28.pg b/Contrib/CCCS/CalculusOne/03.1/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_1_28.pg index 5943d42364..cf6e8adccc 100644 --- a/Contrib/CCCS/CalculusOne/03.1/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_1_28.pg +++ b/Contrib/CCCS/CalculusOne/03.1/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_1_28.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -41,11 +41,11 @@ $ans1 = -1/(($b-3)**2); # Main text BEGIN_PGML -The slope of the tangent line to `f(x)` at `x=a` can be found by evaluating the limit `f^\prime(a)=m_(tan) = \lim_{x \to a} (f(x)-f(a))/(x-a)` provided the limit exists. - Use this limit to find `f^\prime([$b])` given [`f(x)=\frac{1}{x-3}`]. +The slope of the tangent line to `f(x)` at `x=a` can be found by evaluating the limit `f^\prime(a)=m_(tan) = \lim_{x \to a} (f(x)-f(a))/(x-a)` provided the limit exists. + Use this limit to find `f^\prime([$b])` given [`f(x)=\frac{1}{x-3}`]. -Find `f^\prime([$b])=`[_______________]{$ans1}[@ AnswerFormatHelp("numbers") @]* +Find `f^\prime([$b])=`[_______________]{$ans1}[@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CalculusOne/03.1/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_1_3.pg b/Contrib/CCCS/CalculusOne/03.1/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_1_3.pg index bb0203f72a..d078d37b20 100644 --- a/Contrib/CCCS/CalculusOne/03.1/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_1_3.pg +++ b/Contrib/CCCS/CalculusOne/03.1/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_1_3.pg @@ -19,7 +19,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -39,12 +39,12 @@ $ans = Formula("((($b)**2+2*$b+1)-(($a)**2+2*$a+1))/($b-$a)")->reduce; # Main text BEGIN_PGML -Recall that the formula for the slope of a secant line to `f(x)` between `x_1` and `x_2` is `m_(sec) = (f(x_2)-f(x_1))/(x_2-x_1)`. -Given [`f(x)=x^2+2x+1`], find the slope of the secant line to `f(x)` between `x_1=[$a]` and `x_2=[$b]`. +Recall that the formula for the slope of a secant line to `f(x)` between `x_1` and `x_2` is `m_(sec) = (f(x_2)-f(x_1))/(x_2-x_1)`. +Given [`f(x)=x^2+2x+1`], find the slope of the secant line to `f(x)` between `x_1=[$a]` and `x_2=[$b]`. -`m_(sec)=`[_______________]{$ans } -[@ AnswerFormatHelp("numbers") @]* +`m_(sec)=`[_______________]{$ans } +[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/03.1/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_1_31.pg b/Contrib/CCCS/CalculusOne/03.1/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_1_31.pg index 4104c77626..4caf31be41 100644 --- a/Contrib/CCCS/CalculusOne/03.1/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_1_31.pg +++ b/Contrib/CCCS/CalculusOne/03.1/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_1_31.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGauxiliaryFunctions.pl", @@ -75,7 +75,7 @@ BEGIN_PGML Let [`f(x)=[$f]`], the point `P(1,[$fone])` be on the graph of `f(x)`, and `Q(x,f(x))` be the point determined by the following values of `x`. Then answer the following questions. (Do not round until the end of your calculations, then round to five decimal places.) -a. If [`x=[$b1]`], [`f(x)=`][_______________]{ $f->eval(x=>$b1)} Find the slope of the secant line [`m_{PQ}=`][_______________]{($fone-$fb1) / (1-$b1)} +a. If [`x=[$b1]`], [`f(x)=`][_______________]{ $f->eval(x=>$b1)} Find the slope of the secant line [`m_{PQ}=`][_______________]{($fone-$fb1) / (1-$b1)} b. If [`x=[$b2]`], [`f(x)=`][_______________]{ $f->eval(x=>$b2)} Find the slope of the secant line [`m_{PQ}=`][_______________]{($fone-$fb2) / (1-$b2)} @@ -84,10 +84,10 @@ b. If [`x=[$b2]`], [`f(x)=`][_______________]{ $f->eval(x=>$b2)} Find the slop c. If [`x=[$a2]`], [`f(x)=`][_______________]{ $f->eval(x=>$a2)} Find the slope of the secant line [`m_{PQ}=`][_______________]{($fone-$fa2) / (1-$a2)} -d. If [`x=[$a1]`], [`f(x)=`][_______________]{ $f->eval(x=>$a1)} Find the slope of the secant line [`m_{PQ}=`][_______________]{($fone-$fa1) / (1-$a1)} +d. If [`x=[$a1]`], [`f(x)=`][_______________]{ $f->eval(x=>$a1)} Find the slope of the secant line [`m_{PQ}=`][_______________]{($fone-$fa1) / (1-$a1)} -e. Use the previous parts to estimate the slope of the tangent line at P. [`m_{tan}=`][_______________]{ $df->eval(x=>1)} +e. Use the previous parts to estimate the slope of the tangent line at P. [`m_{tan}=`][_______________]{ $df->eval(x=>1)} f. Find the equation of the tangent line to `f(x)` at P in slope intercept form. [`y=`][_______________]{$ans} diff --git a/Contrib/CCCS/CalculusOne/03.1/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_1_32.pg b/Contrib/CCCS/CalculusOne/03.1/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_1_32.pg index 66e152b7b1..454922b1f1 100644 --- a/Contrib/CCCS/CalculusOne/03.1/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_1_32.pg +++ b/Contrib/CCCS/CalculusOne/03.1/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_1_32.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGauxiliaryFunctions.pl", @@ -67,19 +67,19 @@ BEGIN_PGML Let `f(x)=\frac{x+[$a]}{x^2-[$as]}`, the point `P(0,[$fzero])` be on the graph of `f(x)`, and `Q(x,f(x))` be the point determined by the following values of x. Then answer the following questions. (Round to four decimal places.) -a. If [`x=[$b1]`], [`f(x)=`][_______________]{ $f->eval(x=>$b1)} Find the slope of the secant line [`m_{PQ}=`][_______________]{($fzero-$fb1) / (0-$b1)} +a. If [`x=[$b1]`], [`f(x)=`][_______________]{ $f->eval(x=>$b1)} Find the slope of the secant line [`m_{PQ}=`][_______________]{($fzero-$fb1) / (0-$b1)} -b. If [`x=[$b2]`], [`f(x)=`][_______________]{ $f->eval(x=>$b2)} Find the slope of the secant line [`m_{PQ}=`][_______________]{($fzero-$fb2) / (0-$b2)} +b. If [`x=[$b2]`], [`f(x)=`][_______________]{ $f->eval(x=>$b2)} Find the slope of the secant line [`m_{PQ}=`][_______________]{($fzero-$fb2) / (0-$b2)} -c. If [`x=[$a2]`], [`f(x)=`][_______________]{ $f->eval(x=>$a2)} Find the slope of the secant line [`m_{PQ}=`][_______________]{($fzero-$fa2) / (0-$a2)} +c. If [`x=[$a2]`], [`f(x)=`][_______________]{ $f->eval(x=>$a2)} Find the slope of the secant line [`m_{PQ}=`][_______________]{($fzero-$fa2) / (0-$a2)} -d. If [`x=[$a1]`], [`f(x)=`][_______________]{ $f->eval(x=>$a1)} Find the slope of the secant line [`m_{PQ}=`][_______________]{($fzero-$fa1) / (0-$a1)} +d. If [`x=[$a1]`], [`f(x)=`][_______________]{ $f->eval(x=>$a1)} Find the slope of the secant line [`m_{PQ}=`][_______________]{($fzero-$fa1) / (0-$a1)} -e. Use the previous parts to estimate the slope of the tangent line at P. [`m_{tan}=`][_______________]{ $df->eval(x=>0)} +e. Use the previous parts to estimate the slope of the tangent line at P. [`m_{tan}=`][_______________]{ $df->eval(x=>0)} f. Find the equation of the tangent line to `f(x)` at P in slope intercept form. [`y=`][_______________]{$ans} diff --git a/Contrib/CCCS/CalculusOne/03.1/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_1_36.pg b/Contrib/CCCS/CalculusOne/03.1/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_1_36.pg index 42a866a0cb..f36483d3fa 100644 --- a/Contrib/CCCS/CalculusOne/03.1/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_1_36.pg +++ b/Contrib/CCCS/CalculusOne/03.1/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_1_36.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGauxiliaryFunctions.pl", @@ -42,7 +42,7 @@ $a3=1.00001; $f = Formula("x^2-$a0*x")->reduce; $ave=Formula("h+4-$a0")->reduce; - + $avea1 = $ave->eval(h=>$a1); $avea2 = $ave->eval(h=>$a2); @@ -54,16 +54,16 @@ BEGIN_PGML The position of an object after t seconds is given by `s(t)=t^2-[$a0]t` were `s` is in feet. -a. The simplified expression for the average velocity from `t=2` to `t=2+h` is [_______________]{ $ave} [@ AnswerFormatHelp("formulas") @]* +a. The simplified expression for the average velocity from `t=2` to `t=2+h` is [_______________]{ $ave} [@ helpLink("formulas") @]* -b. If [`h=[$a1]`], the average velocity between `t=2` and `t=2+h` is [_______________]{$avea1} ft/s. [@ AnswerFormatHelp("numbers") @]* +b. If [`h=[$a1]`], the average velocity between `t=2` and `t=2+h` is [_______________]{$avea1} ft/s. [@ helpLink("numbers") @]* -c. If [`h=[$a2]`], the average velocity between `t=2` and `t=2+h` is [_______________]{$avea2} ft/s.[@ AnswerFormatHelp("numbers") @]* +c. If [`h=[$a2]`], the average velocity between `t=2` and `t=2+h` is [_______________]{$avea2} ft/s.[@ helpLink("numbers") @]* -d. Based on the previous parts, the instantaneous velocity at `t=2` is [_______________]{4-$a0} ft/s. [@ AnswerFormatHelp("numbers") @]* +d. Based on the previous parts, the instantaneous velocity at `t=2` is [_______________]{4-$a0} ft/s. [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/03.1/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_1_5.pg b/Contrib/CCCS/CalculusOne/03.1/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_1_5.pg index 91aadef71f..ed25d10547 100644 --- a/Contrib/CCCS/CalculusOne/03.1/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_1_5.pg +++ b/Contrib/CCCS/CalculusOne/03.1/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_1_5.pg @@ -19,7 +19,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -39,12 +39,12 @@ $ans = Formula("( (4/(3*$b-1))-(4/(3*$a-1)) )/($b-$a)")->reduce; # Main text BEGIN_PGML -Recall that the formula for the slope of a secant line to `f(x)` between `x_1` and `x_2` is `m_(sec) = (f(x_2)-f(x_1))/(x_2-x_1)`. +Recall that the formula for the slope of a secant line to `f(x)` between `x_1` and `x_2` is `m_(sec) = (f(x_2)-f(x_1))/(x_2-x_1)`. Given [`f(x)=\dfrac{4}{3x-1}`], find the slope of the secant line to `f(x)` between `x_1=[$a]` and `x_2=[$b]`. -`m_(sec)=`[_______________]{$ans } -[@ AnswerFormatHelp("numbers") @]* +`m_(sec)=`[_______________]{$ans } +[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/03.1/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_1_Dummy.pg b/Contrib/CCCS/CalculusOne/03.1/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_1_Dummy.pg index b19fc748fe..dc38908d50 100644 --- a/Contrib/CCCS/CalculusOne/03.1/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_1_Dummy.pg +++ b/Contrib/CCCS/CalculusOne/03.1/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_1_Dummy.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -46,7 +46,7 @@ foreach my $i (1..4) { # Main text BEGIN_PGML -Given `f(x)=x^2+3x+4` and the point `P(1,8)` on the graph of f(x). +Given `f(x)=x^2+3x+4` and the point `P(1,8)` on the graph of f(x). Find the slope of the secant line `PQ` for each `Q(x,f(x))` in the following table. END_PGML @@ -57,14 +57,14 @@ BEGIN_TEXT $PAR $BCENTER -\{ +\{ begintable(5) . row( "\(x = \)", "[ 1 ]", "[ 2 ]", "[ 3 ]", "[ 4 ]" ) . row( "\(f(x) = \)", "3", "5", "-2", "0" ) . row( "\(g(x) = \)", "2", "3", "-4", "6" ) . row( "\(f'(x) = \)", "-1", "7", "8", "-3" ) . row( "\(g'(x) = \)", "-4", "1", "2", "9" ) . -endtable(); +endtable(); \} $ECENTER END_TEXT diff --git a/Contrib/CCCS/CalculusOne/03.2/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_2_55.pg b/Contrib/CCCS/CalculusOne/03.2/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_2_55.pg index eaf98efc67..c561e42db8 100644 --- a/Contrib/CCCS/CalculusOne/03.2/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_2_55.pg +++ b/Contrib/CCCS/CalculusOne/03.2/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_2_55.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGauxiliaryFunctions.pl", @@ -47,11 +47,11 @@ $fp = $f->D; # Main text BEGIN_PGML - + Use the definition of the derivative, `f^\prime(x) = \lim_{h \to 0} (f(x+h)-f(x))/h`, to find the derivative of [`\displaystyle f(x)=[$f]`]. -`f^\prime(x)=`[_______________]{$fp} [@ AnswerFormatHelp("formulas") @]* +`f^\prime(x)=`[_______________]{$fp} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/03.2/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_2_57.pg b/Contrib/CCCS/CalculusOne/03.2/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_2_57.pg index 219ffa343f..768c4e73ea 100644 --- a/Contrib/CCCS/CalculusOne/03.2/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_2_57.pg +++ b/Contrib/CCCS/CalculusOne/03.2/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_2_57.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGauxiliaryFunctions.pl", @@ -48,11 +48,11 @@ $fp=Formula("$fp")->reduce; # Main text BEGIN_PGML - + Use the definition of the derivative, `f^\prime(x) = \lim_{h \to 0} (f(x+h)-f(x))/h`, to find the derivative of [`\displaystyle f(x)=[$f]`]. -`f^\prime(x)=`[_______________]{$fp} [@ AnswerFormatHelp("formulas") @]* +`f^\prime(x)=`[_______________]{$fp} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/03.2/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_2_59.pg b/Contrib/CCCS/CalculusOne/03.2/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_2_59.pg index 148bb8a727..c8b6d9fbcb 100644 --- a/Contrib/CCCS/CalculusOne/03.2/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_2_59.pg +++ b/Contrib/CCCS/CalculusOne/03.2/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_2_59.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGauxiliaryFunctions.pl", @@ -46,11 +46,11 @@ $fp = $f->D('x')->with(limits=>[1,4]); # Main text BEGIN_PGML - -Use the definition of the derivative, `f^\prime(x) = \lim_{h \to 0} (f(x+h)-f(x))/h`, to find the derivative of [`\displaystyle f(x)=[$f]`]. + +Use the definition of the derivative, `f^\prime(x) = \lim_{h \to 0} (f(x+h)-f(x))/h`, to find the derivative of [`\displaystyle f(x)=[$f]`]. -`f^\prime(x)=`[_______________]{$fp} [@ AnswerFormatHelp("formulas") @]* +`f^\prime(x)=`[_______________]{$fp} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/03.2/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_2_61.pg b/Contrib/CCCS/CalculusOne/03.2/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_2_61.pg index 64a1b0a919..4b07f92eb5 100644 --- a/Contrib/CCCS/CalculusOne/03.2/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_2_61.pg +++ b/Contrib/CCCS/CalculusOne/03.2/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_2_61.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGauxiliaryFunctions.pl", @@ -48,11 +48,11 @@ $fp=Formula("$fp")->reduce; # Main text BEGIN_PGML - -Use the definition of the derivative, `f^\prime(x) = \lim_{h \to 0} (f(x+h)-f(x))/h`, to find the derivative of `f(x)=[$f]` + +Use the definition of the derivative, `f^\prime(x) = \lim_{h \to 0} (f(x+h)-f(x))/h`, to find the derivative of `f(x)=[$f]` -`f^\prime(x)=`[_______________]{$fp} [@ AnswerFormatHelp("formulas") @]* +`f^\prime(x)=`[_______________]{$fp} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/03.2/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_2_64.pg b/Contrib/CCCS/CalculusOne/03.2/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_2_64.pg index 3d71aadd74..3116236dac 100644 --- a/Contrib/CCCS/CalculusOne/03.2/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_2_64.pg +++ b/Contrib/CCCS/CalculusOne/03.2/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_2_64.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -86,19 +86,19 @@ grid=>[8,8], size=>[600,600] ); -add_functions($gr0, "$f for x in <-8,8>" . +add_functions($gr0, "$f for x in <-8,8>" . " using color:blue and weight:3"); -add_functions($gr1, "$a*x for x in <-8,8>" . +add_functions($gr1, "$a*x for x in <-8,8>" . " using color:blue and weight:3"); -add_functions($gr2, "$fp for x in <-8,8>" . +add_functions($gr2, "$fp for x in <-8,8>" . " using color:blue and weight:3"); -add_functions($gr3, "-$a^(-x) for x in <-8,8>" . +add_functions($gr3, "-$a^(-x) for x in <-8,8>" . " using color:blue and weight:3"); -add_functions($gr4, "$a*(x**2)+$c*(x)+$d for x in <-8,8>" . +add_functions($gr4, "$a*(x**2)+$c*(x)+$d for x in <-8,8>" . " using color:blue and weight:3"); ($gr0->fn)[0]->steps(200); @@ -133,10 +133,10 @@ The graph of [`f(x)`] is given below (click on graph to enlarge): -Which of the following graphs represents the graph of [`f^\prime(x)`]? [_________________]{$popup1} +Which of the following graphs represents the graph of [`f^\prime(x)`]? [_________________]{$popup1} ->>A. [@ image(insertGraph($gr1), width=>200, height=>200), @]* B. [@ image(insertGraph($gr2), width=>200, height=>200), @]* << +>>A. [@ image(insertGraph($gr1), width=>200, height=>200), @]* B. [@ image(insertGraph($gr2), width=>200, height=>200), @]* << >>C. [@ image(insertGraph($gr4), width=>200, height=>200), @]* D. [@ image(insertGraph($gr3), width=>200, height=>200), @]* << diff --git a/Contrib/CCCS/CalculusOne/03.2/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_2_65.pg b/Contrib/CCCS/CalculusOne/03.2/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_2_65.pg index f29e765234..caaeedbad2 100644 --- a/Contrib/CCCS/CalculusOne/03.2/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_2_65.pg +++ b/Contrib/CCCS/CalculusOne/03.2/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_2_65.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -87,19 +87,19 @@ grid=>[8,8], size=>[600,600] ); -add_functions($gr0, "$f for x in <-8,8>" . +add_functions($gr0, "$f for x in <-8,8>" . " using color:blue and weight:3"); -add_functions($gr1, "-4*(x**3)+3*(x**2)+3*x+.5 for x in <-8,8>" . +add_functions($gr1, "-4*(x**3)+3*(x**2)+3*x+.5 for x in <-8,8>" . " using color:blue and weight:3"); -add_functions($gr2, "3*(x**2)-8*(x)+3for x in <-8,8>" . +add_functions($gr2, "3*(x**2)-8*(x)+3for x in <-8,8>" . " using color:blue and weight:3"); -add_functions($gr3, "2^(-x) for x in <-8,8>" . +add_functions($gr3, "2^(-x) for x in <-8,8>" . " using color:blue and weight:3"); -add_functions($gr4, "$fp for x in <-8,8>" . +add_functions($gr4, "$fp for x in <-8,8>" . " using color:blue and weight:3"); @@ -139,10 +139,10 @@ The graph of [`f(x)`] is given below (click on graph to enlarge): -Which of the following graphs represents the graph of [`f^\prime(x)`]? [_________________]{$popup1} +Which of the following graphs represents the graph of [`f^\prime(x)`]? [_________________]{$popup1} ->>A. [@ image(insertGraph($gr1), width=>200, height=>200), @]* B. [@ image(insertGraph($gr2), width=>200, height=>200), @]* << +>>A. [@ image(insertGraph($gr1), width=>200, height=>200), @]* B. [@ image(insertGraph($gr2), width=>200, height=>200), @]* << >>C. [@ image(insertGraph($gr4), width=>200, height=>200), @]* D. [@ image(insertGraph($gr3), width=>200, height=>200), @]* << diff --git a/Contrib/CCCS/CalculusOne/03.2/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_2_66.pg b/Contrib/CCCS/CalculusOne/03.2/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_2_66.pg index a4dd703531..720750e20f 100644 --- a/Contrib/CCCS/CalculusOne/03.2/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_2_66.pg +++ b/Contrib/CCCS/CalculusOne/03.2/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_2_66.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -83,19 +83,19 @@ grid=>[8,8], size=>[600,600] ); -add_functions($gr0, "$f for x in <-8,8>" . +add_functions($gr0, "$f for x in <-8,8>" . " using color:blue and weight:3"); -add_functions($gr1, "$fp for x in <-8,8>" . +add_functions($gr1, "$fp for x in <-8,8>" . " using color:blue and weight:3"); -add_functions($gr2, "$c*(x**2)+$d*(x)+3for x in <-8,8>" . +add_functions($gr2, "$c*(x**2)+$d*(x)+3for x in <-8,8>" . " using color:blue and weight:3"); -add_functions($gr3, "$a^(-x) for x in <-8,8>" . +add_functions($gr3, "$a^(-x) for x in <-8,8>" . " using color:blue and weight:3"); -add_functions($gr4, "(x**3)+$b*(x**2)+$c*x+$d for x in <-8,8>" . +add_functions($gr4, "(x**3)+$b*(x**2)+$c*x+$d for x in <-8,8>" . " using color:blue and weight:3"); @@ -135,10 +135,10 @@ The graph of [`f(x)`] is given below (click on graph to enlarge): -Which of the following graphs represents the graph of [`f^\prime(x)`]? [_________________]{$popup1} +Which of the following graphs represents the graph of [`f^\prime(x)`]? [_________________]{$popup1} ->>A. [@ image(insertGraph($gr1), width=>200, height=>200), @]* B. [@ image(insertGraph($gr2), width=>200, height=>200), @]* << +>>A. [@ image(insertGraph($gr1), width=>200, height=>200), @]* B. [@ image(insertGraph($gr2), width=>200, height=>200), @]* << >>C. [@ image(insertGraph($gr4), width=>200, height=>200), @]* D. [@ image(insertGraph($gr3), width=>200, height=>200), @]* << diff --git a/Contrib/CCCS/CalculusOne/03.2/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_2_68.pg b/Contrib/CCCS/CalculusOne/03.2/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_2_68.pg index 18058e43be..1984c2da7f 100644 --- a/Contrib/CCCS/CalculusOne/03.2/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_2_68.pg +++ b/Contrib/CCCS/CalculusOne/03.2/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_2_68.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedRadical.pl", "PGML.pl", "PGcourse.pl", @@ -51,13 +51,13 @@ $f = Formula("x**($b)")->with(limits=>[1,4]); # Main text BEGIN_PGML - -The limit `\lim_{h \to 0} (([$a]+h)^(2/3)-[$a]^(2/3))/h` is the derivative of some function `f(x)` evaluated at `x=a`. Find the function `f(x)` and the value of `a`. - -a. `f(x)=`[_______________]{$f} [@ AnswerFormatHelp("formulas") @]* +The limit `\lim_{h \to 0} (([$a]+h)^(2/3)-[$a]^(2/3))/h` is the derivative of some function `f(x)` evaluated at `x=a`. Find the function `f(x)` and the value of `a`. + + +a. `f(x)=`[_______________]{$f} [@ helpLink("formulas") @]* -b. `a=`[_______________]{$a} [@ AnswerFormatHelp("numbers") @]* +b. `a=`[_______________]{$a} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CalculusOne/03.2/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_2_70.pg b/Contrib/CCCS/CalculusOne/03.2/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_2_70.pg index e600899d9d..ee23e07a08 100644 --- a/Contrib/CCCS/CalculusOne/03.2/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_2_70.pg +++ b/Contrib/CCCS/CalculusOne/03.2/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_2_70.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGauxiliaryFunctions.pl", @@ -47,11 +47,11 @@ $num = Formula("cos($a*pi+h)-$f_a")->reduce; # Main text BEGIN_PGML - + The limit `\lim_{h \to 0} ([$num])/h` is the derivative of some function `f(x)` evaluated at `x=a`. Find the function `f(x)` and the value of `a`. - -a. `f(x)=`[_______________]{$f} [@ AnswerFormatHelp("formulas") @]* -b. `a=`[_______________]{$ansa} [@ AnswerFormatHelp("numbers") @]* + +a. `f(x)=`[_______________]{$f} [@ helpLink("formulas") @]* +b. `a=`[_______________]{$ansa} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CalculusOne/03.2/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_2_78.pg b/Contrib/CCCS/CalculusOne/03.2/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_2_78.pg index f930ff99f0..2b5bc072bb 100644 --- a/Contrib/CCCS/CalculusOne/03.2/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_2_78.pg +++ b/Contrib/CCCS/CalculusOne/03.2/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_2_78.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -85,9 +85,9 @@ The graph of [`f(x)`] is given below (click on graph to enlarge): >>[@ image(insertGraph($gr0), width=>300, height=>300), @]*<< -Determine for which values of `x=a` the limit `\lim_{x \to a}f(x)` exists but `f` is not continuous at `x=a`. +Determine for which values of `x=a` the limit `\lim_{x \to a}f(x)` exists but `f` is not continuous at `x=a`. -`a=`[_______________]{$ans1} (enter a comma separated list) [@ AnswerFormatHelp("numbers") @]* +`a=`[_______________]{$ans1} (enter a comma separated list) [@ helpLink("numbers") @]* END_PGML @@ -101,7 +101,7 @@ BEGIN_PGML Determine for which values of `x=a` the function is continuous but not differentiable at `x=a`. - `a=`[_______________]{$ans2} (enter a comma separated list) [@ AnswerFormatHelp("numbers") @]* + `a=`[_______________]{$ans2} (enter a comma separated list) [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/03.2/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_2_80.pg b/Contrib/CCCS/CalculusOne/03.2/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_2_80.pg index 3c4ae98214..818fcb0f65 100644 --- a/Contrib/CCCS/CalculusOne/03.2/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_2_80.pg +++ b/Contrib/CCCS/CalculusOne/03.2/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_2_80.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -69,19 +69,19 @@ Below is a graph of [`f(x)`]. Use this graph to find the following derivative va (click on graph to enlarge) -a. [`f^\prime(-2.5)`]=[_______________]{1} [@ AnswerFormatHelp("numbers") @]* +a. [`f^\prime(-2.5)`]=[_______________]{1} [@ helpLink("numbers") @]* -b. [`f^\prime(0)`]=[_______________]{DNE} +b. [`f^\prime(0)`]=[_______________]{DNE} -c. [`f^\prime(1)`]=[_______________]{-1} +c. [`f^\prime(1)`]=[_______________]{-1} -d. [`f^\prime([$b])`]=[_______________]{DNE} +d. [`f^\prime([$b])`]=[_______________]{DNE} -e. [`f^\prime(6)`]=[_______________]{2} +e. [`f^\prime(6)`]=[_______________]{2} END_PGML diff --git a/Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_106.pg b/Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_106.pg index f2ffefbc0a..cf2cad8799 100644 --- a/Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_106.pg +++ b/Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_106.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGauxiliaryFunctions.pl", @@ -49,11 +49,11 @@ $fp=Formula("$fp")->reduce; # Main text BEGIN_PGML - + Given [` \displaystyle f(x)=[$f] `], find `f^\prime (x)`. -`f^\prime (x)=`[_______________]{$fp} [@ AnswerFormatHelp("formulas") @]* +`f^\prime (x)=`[_______________]{$fp} [@ helpLink("formulas") @]* END_PGML @@ -64,7 +64,7 @@ BEGIN_PGML_HINT Some Derivative Rules: -* Power Rule: [`\frac{d}{dx}(x^n) = nx^{n-1}`] +* Power Rule: [`\frac{d}{dx}(x^n) = nx^{n-1}`] * Sum Rule: [`\frac{d}{dx} (f(x) + g(x)) = \frac{d}{dx}(f(x))+\frac{d}{dx}(g(x))`] * Constant Multiple Rule: [`\frac{d}{dx}(cf(x)) = c\frac{d}{dx}(f(x))`] * Constant Rule: [`\frac{d}{dx}(c) = 0`] diff --git a/Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_107.pg b/Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_107.pg index 53f0133f81..4982a6df1f 100644 --- a/Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_107.pg +++ b/Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_107.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGauxiliaryFunctions.pl", @@ -49,11 +49,11 @@ $fp=Formula("$fp")->reduce; # Main text BEGIN_PGML - + Given [`\displaystyle f(x)=[$f]`] , find `f^\prime (x)`. -`f^\prime (x)=`[_______________]{$fp} [@ AnswerFormatHelp("formulas") @]* +`f^\prime (x)=`[_______________]{$fp} [@ helpLink("formulas") @]* END_PGML @@ -64,7 +64,7 @@ BEGIN_PGML_HINT Some Derivative Rules: -* Power Rule: [`\frac{d}{dx}(x^n) = nx^{n-1}`] +* Power Rule: [`\frac{d}{dx}(x^n) = nx^{n-1}`] * Sum Rule: [`\frac{d}{dx} (f(x) + g(x)) = \frac{d}{dx}(f(x))+\frac{d}{dx}(g(x))`] * Constant Multiple Rule: [`\frac{d}{dx}(cf(x)) = c\frac{d}{dx}(f(x))`] * Constant Rule: [`\frac{d}{dx}(c) = 0`] diff --git a/Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_109.pg b/Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_109.pg index 2338589202..506448ef02 100644 --- a/Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_109.pg +++ b/Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_109.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGauxiliaryFunctions.pl", @@ -50,11 +50,11 @@ $fp=Formula("$fp")->reduce; # Main text BEGIN_PGML - + Given [`\displaystyle f(x)=[$f]`], find `f^\prime (x)`. -`f^\prime (x)=`[_______________]{$fp} [@ AnswerFormatHelp("formulas") @]* +`f^\prime (x)=`[_______________]{$fp} [@ helpLink("formulas") @]* END_PGML @@ -65,7 +65,7 @@ BEGIN_PGML_HINT Some Derivative Rules: -* Power Rule: [`\frac{d}{dx}(x^n) = nx^{n-1}`] +* Power Rule: [`\frac{d}{dx}(x^n) = nx^{n-1}`] * Sum Rule: [`\frac{d}{dx} (f(x) + g(x)) = \frac{d}{dx}(f(x))+\frac{d}{dx}(g(x))`] * Constant Multiple Rule: [`\frac{d}{dx}(cf(x)) = c\frac{d}{dx}(f(x))`] * Constant Rule: [`\frac{d}{dx}(c) = 0`] diff --git a/Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_110.pg b/Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_110.pg index 84bfb5eb79..9fd0ed9fa5 100644 --- a/Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_110.pg +++ b/Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_110.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGauxiliaryFunctions.pl", @@ -49,11 +49,11 @@ $fp = $f->D; # Main text BEGIN_PGML - + Given `g(x)=[$f]`, find `g^\prime (x)`. -`g^\prime (x)=`[_______________]{$fp} [@ AnswerFormatHelp("formulas") @]* +`g^\prime (x)=`[_______________]{$fp} [@ helpLink("formulas") @]* END_PGML @@ -64,7 +64,7 @@ BEGIN_PGML_HINT Some Derivative Rules: -* Power Rule: [`\frac{d}{dx}(x^n) = nx^{n-1}`] +* Power Rule: [`\frac{d}{dx}(x^n) = nx^{n-1}`] * Sum Rule: [`\frac{d}{dx} (f(x) + g(x)) = \frac{d}{dx}(f(x))+\frac{d}{dx}(g(x))`] * Constant Multiple Rule: [`\frac{d}{dx}(cf(x)) = c\frac{d}{dx}(f(x))`] * Constant Rule: [`\frac{d}{dx}(c) = 0`] diff --git a/Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_111.pg b/Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_111.pg index c66bda92bf..63b29030d0 100644 --- a/Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_111.pg +++ b/Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_111.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGauxiliaryFunctions.pl", @@ -52,11 +52,11 @@ $fp=Formula("$fp")->reduce; # Main text BEGIN_PGML - + Given [`\displaystyle f(x)=[$f]`], find `f^\prime (x)`. -`f^\prime (x)=`[_______________]{$fp} [@ AnswerFormatHelp("formulas") @]* +`f^\prime (x)=`[_______________]{$fp} [@ helpLink("formulas") @]* END_PGML @@ -67,7 +67,7 @@ BEGIN_PGML_HINT Some Derivative Rules: -* Power Rule: [`\frac{d}{dx}(x^n) = nx^{n-1}`] +* Power Rule: [`\frac{d}{dx}(x^n) = nx^{n-1}`] * Sum Rule: [`\frac{d}{dx} (f(x) + g(x)) = \frac{d}{dx}(f(x))+\frac{d}{dx}(g(x))`] * Constant Multiple Rule: [`\frac{d}{dx}(cf(x)) = c\frac{d}{dx}(f(x))`] * Constant Rule: [`\frac{d}{dx}(c) = 0`] diff --git a/Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_112.pg b/Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_112.pg index 2a9c244a59..4501ca9851 100644 --- a/Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_112.pg +++ b/Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_112.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGauxiliaryFunctions.pl", @@ -51,11 +51,11 @@ $fp = $f->D; # Main text BEGIN_PGML - + Given [`\displaystyle f(x)=[$f]`], find `f^\prime (x)`. -`f^\prime (x)=`[_______________]{$fp} [@ AnswerFormatHelp("formulas") @]* +`f^\prime (x)=`[_______________]{$fp} [@ helpLink("formulas") @]* END_PGML @@ -66,7 +66,7 @@ BEGIN_PGML_HINT Some Derivative Rules: -* Power Rule: [`\frac{d}{dx}(x^n) = nx^{n-1}`] +* Power Rule: [`\frac{d}{dx}(x^n) = nx^{n-1}`] * Sum Rule: [`\frac{d}{dx} (f(x) + g(x)) = \frac{d}{dx}(f(x))+\frac{d}{dx}(g(x))`] * Constant Multiple Rule: [`\frac{d}{dx}(cf(x)) = c\frac{d}{dx}(f(x))`] * Constant Rule: [`\frac{d}{dx}(c) = 0`] diff --git a/Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_115.pg b/Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_115.pg index 521ea6fa31..8d8d0903f0 100644 --- a/Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_115.pg +++ b/Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_115.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGauxiliaryFunctions.pl", @@ -51,11 +51,11 @@ $fp = $f->D; # Main text BEGIN_PGML - + Given [`\displaystyle h(x)=[$f]`], find `h^\prime (x)`. -`h^\prime (x)=`[_______________]{$fp} [@ AnswerFormatHelp("formulas") @]* +`h^\prime (x)=`[_______________]{$fp} [@ helpLink("formulas") @]* END_PGML @@ -66,7 +66,7 @@ BEGIN_PGML_HINT Some Derivative Rules: -* Power Rule: [`\frac{d}{dx}(x^n) = nx^{n-1}`] +* Power Rule: [`\frac{d}{dx}(x^n) = nx^{n-1}`] * Sum Rule: [`\frac{d}{dx} (f(x) + g(x)) = \frac{d}{dx}(f(x))+\frac{d}{dx}(g(x))`] * Constant Multiple Rule: [`\frac{d}{dx}(cf(x)) = c\frac{d}{dx}(f(x))`] * Constant Rule: [`\frac{d}{dx}(c) = 0`] diff --git a/Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_116.pg b/Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_116.pg index 30417902f1..fc777e2b58 100644 --- a/Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_116.pg +++ b/Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_116.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGauxiliaryFunctions.pl", @@ -51,11 +51,11 @@ $fp = $f->D; # Main text BEGIN_PGML - + Given `f(x)=[$f]`, find [`f^\prime(x)`]. -`f^\prime (x)=`[_______________________]{$fp} [@ AnswerFormatHelp("formulas") @]* +`f^\prime (x)=`[_______________________]{$fp} [@ helpLink("formulas") @]* END_PGML @@ -66,7 +66,7 @@ BEGIN_PGML_HINT Some Derivative Rules: -* Power Rule: [`\frac{d}{dx}(x^n) = nx^{n-1}`] +* Power Rule: [`\frac{d}{dx}(x^n) = nx^{n-1}`] * Sum Rule: [`\frac{d}{dx} (f(x) + g(x)) = \frac{d}{dx}(f(x))+\frac{d}{dx}(g(x))`] * Constant Multiple Rule: [`\frac{d}{dx}(cf(x)) = c\frac{d}{dx}(f(x))`] * Constant Rule: [`\frac{d}{dx}(c) = 0`] diff --git a/Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_117.pg b/Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_117.pg index e34cca81ad..4303f064c8 100644 --- a/Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_117.pg +++ b/Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_117.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGauxiliaryFunctions.pl", @@ -51,11 +51,11 @@ $fp = $f->D; # Main text BEGIN_PGML - + Given [`\displaystyle f(x)=[$f]`], find `f^\prime (x)`. -`f^\prime (x)=`[________________________]{$fp} [@ AnswerFormatHelp("formulas") @]* +`f^\prime (x)=`[________________________]{$fp} [@ helpLink("formulas") @]* END_PGML @@ -66,7 +66,7 @@ BEGIN_PGML_HINT Some Derivative Rules: -* Power Rule: [`\frac{d}{dx}(x^n) = nx^{n-1}`] +* Power Rule: [`\frac{d}{dx}(x^n) = nx^{n-1}`] * Sum Rule: [`\frac{d}{dx} (f(x) + g(x)) = \frac{d}{dx}(f(x))+\frac{d}{dx}(g(x))`] * Constant Multiple Rule: [`\frac{d}{dx}(cf(x)) = c\frac{d}{dx}(f(x))`] * Constant Rule: [`\frac{d}{dx}(c) = 0`] diff --git a/Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_118.pg b/Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_118.pg index fadc7fd7d9..00d7943db5 100644 --- a/Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_118.pg +++ b/Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_118.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -58,7 +58,7 @@ Context()->noreduce('(-x)-y','(-x)+y'); $f = Formula("$a*x**(2)+$b*x+$c")->reduce; $fp = $f->D('x'); -##y-coord of P(x,y) on graph of f(x), slope of tan line at P(x,y), y-int of tan line## +##y-coord of P(x,y) on graph of f(x), slope of tan line at P(x,y), y-int of tan line## $y0 = $f->eval(x=>$x0); $fp_x0=$fp->eval(x=>$x0); $yint=$y0-$fp_x0*$x0; @@ -99,7 +99,7 @@ size=>[600,600] ## This is the CORRECT GHRAPH## -add_functions($gr0, "$f for x in <-8,8>" . +add_functions($gr0, "$f for x in <-8,8>" . " using color:blue and weight:3"); add_functions($gr0, "$tanline for x in <-8,8>" . @@ -156,7 +156,7 @@ $yint_temp=$y0_temp-$df_x0_temp*$x0; ##the equation of the line tangent at the point P(x, y)## $tanline_temp=Formula("$df_x0_temp*x+$yint_temp"); -add_functions($gr2, "$f_temp for x in <-8,8>" . +add_functions($gr2, "$f_temp for x in <-8,8>" . " using color:blue and weight:3"); add_functions($gr2, "$tanline_temp for x in <-8,8>" . @@ -181,10 +181,10 @@ $yint_temp=$y0_temp-$df_x0_temp*$x0; ##the equation of the line tangent at the point P(x, y)## $tanline_temp=Formula("$df_x0_temp*x+$yint_temp"); -add_functions($gr3, "$f_temp for x in <-8,8>" . +add_functions($gr3, "$f_temp for x in <-8,8>" . " using color:blue and weight:3"); -add_functions($gr3, "$tanline_temp for x in <-8,8>" . +add_functions($gr3, "$tanline_temp for x in <-8,8>" . " using color:black and weight:3"); $popup = PopUp( @@ -204,7 +204,7 @@ BEGIN_PGML Given the function [`\displaystyle f(x)=[$f]`] and the point [`P([$x0],[$y0])`], which lies on the graph of `f(x)`, determine the equation of the tangent line to `f(x)` at `P`. -The equation of the tangent line to `f(x)` at `P` is [`y=`] [_______________]{$tanline} [@ AnswerFormatHelp("formulas") @]* +The equation of the tangent line to `f(x)` at `P` is [`y=`] [_______________]{$tanline} [@ helpLink("formulas") @]* END_PGML @@ -225,12 +225,12 @@ Section::Begin("Part 2 - 1 point"); BEGIN_PGML Use a graphing utility to determine which of the following graphs represents the graph of [`f(x)`] and the graph of the tangent line at point [`P`]. -[@ $popup->menu() @]* +[@ $popup->menu() @]* ->>A. [@ image(insertGraph($gr3), width=>200, height=>200), @]* B. [@ image(insertGraph($gr2), width=>200, height=>200), @]* << +>>A. [@ image(insertGraph($gr3), width=>200, height=>200), @]* B. [@ image(insertGraph($gr2), width=>200, height=>200), @]* << ->>C. [@ image(insertGraph($gr1), width=>200, height=>200), @]* D. [@ image(insertGraph($gr0), width=>200, height=>200), @]* << +>>C. [@ image(insertGraph($gr1), width=>200, height=>200), @]* D. [@ image(insertGraph($gr0), width=>200, height=>200), @]* << diff --git a/Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_119.pg b/Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_119.pg index 70add8c832..dd15bc96f9 100644 --- a/Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_119.pg +++ b/Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_119.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -58,7 +58,7 @@ Context()->noreduce('(-x)-y','(-x)+y'); $f = Formula("$a*sqrt(x)+$b")->reduce; $fp = $f->D('x'); -##y-coord of P(x,y) on graph of f(x), slope of tan line at P(x,y), y-int of tan line## +##y-coord of P(x,y) on graph of f(x), slope of tan line at P(x,y), y-int of tan line## $y0 = $f->eval(x=>$x0); $fp_x0=$fp->eval(x=>$x0); $yint=$y0-$fp_x0*$x0; @@ -93,7 +93,7 @@ size=>[600,600] ## This is the CORRECT GHRAPH## -add_functions($gr0, "$f for x in <-8,8>" . +add_functions($gr0, "$f for x in <-8,8>" . " using color:blue and weight:3"); add_functions($gr0, "$tanline for x in <-8,8>" . @@ -149,7 +149,7 @@ $yint_temp=$y0_temp-$df_x0_temp*$x0; ##the equation of the line tangent at the point P(x, y)## $tanline_temp=Formula("$df_x0_temp*x+$yint_temp"); -add_functions($gr2, "$f_temp for x in <-12,12>" . +add_functions($gr2, "$f_temp for x in <-12,12>" . " using color:blue and weight:3"); add_functions($gr2, "$tanline_temp for x in <-12,12>" . @@ -174,10 +174,10 @@ $yint_temp=$y0_temp-$df_x0_temp*$x0; ##the equation of the line tangent at the point P(x, y)## $tanline_temp=Formula("$df_x0_temp*x+$yint_temp"); -add_functions($gr3, "$f_temp for x in <-8,8>" . +add_functions($gr3, "$f_temp for x in <-8,8>" . " using color:blue and weight:3"); -add_functions($gr3, "$tanline_temp for x in <-8,8>" . +add_functions($gr3, "$tanline_temp for x in <-8,8>" . " using color:black and weight:3"); $popup = PopUp( @@ -204,7 +204,7 @@ BEGIN_PGML Given the function [`\displaystyle f(x)=[$f]`] and the point [`P([$x0],[$y0])`], which lies on the graph of `f(x)`, determine the equation of the tangent line to `f(x)` at `P`. -The equation of the tangent line to `f(x)` at `P` is [`y=`] [_______________]{$tanline} [@ AnswerFormatHelp("formulas") @]* +The equation of the tangent line to `f(x)` at `P` is [`y=`] [_______________]{$tanline} [@ helpLink("formulas") @]* END_PGML @@ -225,12 +225,12 @@ Section::Begin("Part 2 - 1 point"); BEGIN_PGML Use a graphing utility to determine which of the following graphs represents the graph of [`f(x)`] and the graph of the tangent line at point [`P`]? -[@ $popup->menu() @]* +[@ $popup->menu() @]* ->>A. [@ image(insertGraph($gr3), width=>200, height=>200), @]* B. [@ image(insertGraph($gr0), width=>200, height=>200), @]* << +>>A. [@ image(insertGraph($gr3), width=>200, height=>200), @]* B. [@ image(insertGraph($gr0), width=>200, height=>200), @]* << ->>C. [@ image(insertGraph($gr1), width=>200, height=>200), @]* D. [@ image(insertGraph($gr2), width=>200, height=>200), @]* << +>>C. [@ image(insertGraph($gr1), width=>200, height=>200), @]* D. [@ image(insertGraph($gr2), width=>200, height=>200), @]* << diff --git a/Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_121.pg b/Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_121.pg index 36772e73f9..0b97e663d7 100644 --- a/Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_121.pg +++ b/Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_121.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "contextFraction.pl", @@ -59,7 +59,7 @@ Context()->noreduce('(-x)-y','(-x)+y'); $f = Formula("($a/x)-($b/x**(2))")->reduce; $fp = $f->D('x'); -##y-coord of P(x,y) on graph of f(x), slope of tan line at P(x,y), y-int of tan line## +##y-coord of P(x,y) on graph of f(x), slope of tan line at P(x,y), y-int of tan line## $y0 = $f->eval(x=>$x0); $fp_x0=$fp->eval(x=>$x0); $yint=$y0-$fp_x0*$x0; @@ -95,7 +95,7 @@ size=>[600,600] ## This is the CORRECT GHRAPH## -add_functions($gr0, "$f for x in <-8,8>" . +add_functions($gr0, "$f for x in <-8,8>" . " using color:blue and weight:3"); add_functions($gr0, "$tanline for x in <-8,8>" . @@ -150,7 +150,7 @@ $yint_temp2=$y0_temp2-$df_x0_temp2*$x0; ##the equation of the line tangent at the point P(x, y)## $tanline_temp2=Formula("$df_x0_temp2*x+$yint_temp2"); -add_functions($gr2, "$f_temp2 for x in <-8,8>" . +add_functions($gr2, "$f_temp2 for x in <-8,8>" . " using color:blue and weight:3"); add_functions($gr2, "$tanline_temp2 for x in <-8,8>" . @@ -175,10 +175,10 @@ $yint_temp3=$y0_temp3-$df_x0_temp3*$x0; ##the equation of the line tangent at the point P(x, y)## $tanline_temp3=Formula("$df_x0_temp3*x+$yint_temp3"); -add_functions($gr3, "$f_temp3 for x in <-8,8>" . +add_functions($gr3, "$f_temp3 for x in <-8,8>" . " using color:blue and weight:3"); -add_functions($gr3, "$tanline_temp3 for x in <-8,8>" . +add_functions($gr3, "$tanline_temp3 for x in <-8,8>" . " using color:black and weight:3"); $popup = PopUp( @@ -200,7 +200,7 @@ BEGIN_PGML Given the function `f(x)=[$f]` and the point [`P([$x0],[$w])`], which lies on the graph of `f(x)`, determine the equation of the tangent line to `f(x)` at `P`. -The equation of the tangent line to `f(x)` at `P` is [`y=`] [_______________]{$tanline} [@ AnswerFormatHelp("formulas") @]* +The equation of the tangent line to `f(x)` at `P` is [`y=`] [_______________]{$tanline} [@ helpLink("formulas") @]* END_PGML @@ -221,12 +221,12 @@ Section::Begin("Part 2 - 1 point"); BEGIN_PGML Use a graphing utility to determine which of the following graphs represents the graph of [`f(x)`] and the graph of the tangent line at point [`P`]? -[@ $popup->menu() @]* +[@ $popup->menu() @]* ->>A. [@ image(insertGraph($gr0), width=>200, height=>200), @]* B. [@ image(insertGraph($gr3), width=>200, height=>200), @]* << +>>A. [@ image(insertGraph($gr0), width=>200, height=>200), @]* B. [@ image(insertGraph($gr3), width=>200, height=>200), @]* << ->>C. [@ image(insertGraph($gr1), width=>200, height=>200), @]* D. [@ image(insertGraph($gr2), width=>200, height=>200), @]* << +>>C. [@ image(insertGraph($gr1), width=>200, height=>200), @]* D. [@ image(insertGraph($gr2), width=>200, height=>200), @]* << diff --git a/Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_122.pg b/Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_122.pg index 09bbdb010e..d70680af3a 100644 --- a/Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_122.pg +++ b/Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_122.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", @@ -41,7 +41,7 @@ $showPartialCorrectAnswers = 1; Context("Numeric"); parser::FunctionPrime->Enable(); -#these are arbitrary functions that students won't see in this question. We just need it to be something that is not equal to its own derivative, if it is equal to its own derivative then a student can write the answer without prime notation and be marked correct, which would be misleading. +#these are arbitrary functions that students won't see in this question. We just need it to be something that is not equal to its own derivative, if it is equal to its own derivative then a student can write the answer without prime notation and be marked correct, which would be misleading. parserFunction("f(x)" => "sin(x)"); parserFunction("g(x)" => "x^52"); @@ -62,7 +62,7 @@ Assume that `f(x)` and `g(x)` are differentiable for all `x`. Let [`\displaystyle h(x)=[$h]`], find `h^\prime (x)`. -`h^\prime (x)=`[____________] [@ AnswerFormatHelp("formulas") @]* +`h^\prime (x)=`[____________] [@ helpLink("formulas") @]* END_PGML @@ -73,7 +73,7 @@ BEGIN_PGML_HINT Some Derivative Rules: -* Power Rule: [`\frac{d}{dx}(x^n) = nx^{n-1}`] +* Power Rule: [`\frac{d}{dx}(x^n) = nx^{n-1}`] * Sum Rule: [`\frac{d}{dx} (f(x) + g(x)) = \frac{d}{dx}(f(x))+\frac{d}{dx}(g(x))`] * Constant Multiple Rule: [`\frac{d}{dx}(cf(x)) = c\frac{d}{dx}(f(x))`] * Constant Rule: [`\frac{d}{dx}(c) = 0`] diff --git a/Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_123.pg b/Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_123.pg index ef88a6a3be..88c3061c4a 100644 --- a/Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_123.pg +++ b/Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_123.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", @@ -42,7 +42,7 @@ Context("Numeric"); parser::FunctionPrime->Enable(); -parserFunction("f(x)" => "x^5"); #this is an arbitrary function that students won't see in this question. We just need it to be something that is not equal to its own derivative, if it is equal to its own derivative then a student can write the answer without prime notation and be marked correct, which would be misleading. +parserFunction("f(x)" => "x^5"); #this is an arbitrary function that students won't see in this question. We just need it to be something that is not equal to its own derivative, if it is equal to its own derivative then a student can write the answer without prime notation and be marked correct, which would be misleading. $a=random(1,6,1); Context()->noreduce('(-x)-y','(-x)+y'); @@ -59,7 +59,7 @@ Assume that `f(x)` and `g(x)` are differentiable for all `x`. Let [`\displaystyle h(x)=[$h]`], find `h^\prime (x)`. -`h^\prime (x)=`[_____________________] [@ AnswerFormatHelp("formulas") @]* +`h^\prime (x)=`[_____________________] [@ helpLink("formulas") @]* END_PGML @@ -69,7 +69,7 @@ BEGIN_PGML_HINT Some Derivative Rules: -* Power Rule: [`\frac{d}{dx}(x^n) = nx^{n-1}`] +* Power Rule: [`\frac{d}{dx}(x^n) = nx^{n-1}`] * Sum Rule: [`\frac{d}{dx} (f(x) + g(x)) = \frac{d}{dx}(f(x))+\frac{d}{dx}(g(x))`] * Constant Multiple Rule: [`\frac{d}{dx}(cf(x)) = c\frac{d}{dx}(f(x))`] * Constant Rule: [`\frac{d}{dx}(c) = 0`] diff --git a/Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_124.pg b/Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_124.pg index 3619f044d7..c0a1fbea69 100644 --- a/Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_124.pg +++ b/Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_124.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", @@ -41,7 +41,7 @@ $showPartialCorrectAnswers = 1; Context("Numeric"); parser::FunctionPrime->Enable(); -#these are arbitrary functions that students won't see in this question. We just need it to be something that is not equal to its own derivative, if it is equal to its own derivative then a student can write the answer without prime notation and be marked correct, which would be misleading. +#these are arbitrary functions that students won't see in this question. We just need it to be something that is not equal to its own derivative, if it is equal to its own derivative then a student can write the answer without prime notation and be marked correct, which would be misleading. parserFunction("f(x)" => "cos(x)"); parserFunction("g(x)" => "x^15"); @@ -61,7 +61,7 @@ Assume that `f(x)` and `g(x)` are differentiable for all `x`. Let [`\displaystyle h(x)=[$h]`], find `h^\prime (x)`. -`h^\prime (x)=`[_____________________] [@ AnswerFormatHelp("formulas") @]* +`h^\prime (x)=`[_____________________] [@ helpLink("formulas") @]* END_PGML @@ -71,7 +71,7 @@ BEGIN_PGML_HINT Some Derivative Rules: -* Power Rule: [`\frac{d}{dx}(x^n) = nx^{n-1}`] +* Power Rule: [`\frac{d}{dx}(x^n) = nx^{n-1}`] * Sum Rule: [`\frac{d}{dx} (f(x) + g(x)) = \frac{d}{dx}(f(x))+\frac{d}{dx}(g(x))`] * Constant Multiple Rule: [`\frac{d}{dx}(cf(x)) = c\frac{d}{dx}(f(x))`] * Constant Rule: [`\frac{d}{dx}(c) = 0`] diff --git a/Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_125.pg b/Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_125.pg index b4afd9c720..65b4338d36 100644 --- a/Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_125.pg +++ b/Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_125.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", @@ -42,7 +42,7 @@ Context("Numeric"); parser::FunctionPrime->Enable(); -#these are arbitrary functions that students won't see in this question. We just need it to be something that is not equal to its own derivative, if it is equal to its own derivative then a student can write the answer without prime notation and be marked correct, which would be misleading. +#these are arbitrary functions that students won't see in this question. We just need it to be something that is not equal to its own derivative, if it is equal to its own derivative then a student can write the answer without prime notation and be marked correct, which would be misleading. parserFunction("f(x)" => "sin(x)"); parserFunction("g(x)" => "x^12"); @@ -63,7 +63,7 @@ Assume that `f(x)` and `g(x)` are differentiable for all `x`. Let [`\displaystyle h(x)=[$h]`], find `h^\prime (x)`. -`h^\prime (x)=`[_________________________] [@ AnswerFormatHelp("formulas") @]* +`h^\prime (x)=`[_________________________] [@ helpLink("formulas") @]* END_PGML @@ -73,7 +73,7 @@ BEGIN_PGML_HINT Some Derivative Rules: -* Power Rule: [`\frac{d}{dx}(x^n) = nx^{n-1}`] +* Power Rule: [`\frac{d}{dx}(x^n) = nx^{n-1}`] * Sum Rule: [`\frac{d}{dx} (f(x) + g(x)) = \frac{d}{dx}(f(x))+\frac{d}{dx}(g(x))`] * Constant Multiple Rule: [`\frac{d}{dx}(cf(x)) = c\frac{d}{dx}(f(x))`] * Constant Rule: [`\frac{d}{dx}(c) = 0`] diff --git a/Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_126_129.pg b/Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_126_129.pg index 6437fb3285..3efbb5c3e9 100644 --- a/Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_126_129.pg +++ b/Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_126_129.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -74,7 +74,7 @@ $ans4=Compute(" (-1/16) + (($gp_4*$f_4)-($g_4*$fp_4))/(($f_4)**2) ")->reduce; BEGIN_PGML -Use the following table to answer parts 1-4 below. +Use the following table to answer parts 1-4 below. [@ LayoutTable( [ @@ -95,7 +95,7 @@ Context()->texStrings; #BEGIN_TEXT #$PAR #$BCENTER -#\{ +#\{ #begintable(5) . #row( "\(x = \)", " 1 ", " 2 ", " 3 ", " 4 " ) . #row( "\(f(x) = \)", "$f_1", "$f_2", "$f_3", "$f_4" ) . @@ -103,7 +103,7 @@ Context()->texStrings; #row( "\(f'(x) = \)", "$fp_1", "$fp_2", "$fp_3", "$fp_4" ) . #row( "\(g'(x) = \)", "$gp_1", "$gp_2", "$gp_3", "$gp_4" ) . #row( "_____", "_____","_____","_____","_____" ) . -#endtable(); +#endtable(); #\} #$ECENTER #END_TEXT @@ -116,7 +116,7 @@ BEGIN_PGML If `h(x) = xf(x)+4g(x)`, -`h^\prime (1) = `[______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* (Enter DNE if derivative does not exist) +`h^\prime (1) = `[______________]{$ans1} [@ helpLink("numbers") @]* (Enter DNE if derivative does not exist) END_PGML ############################ @@ -137,7 +137,7 @@ BEGIN_PGML If `h(x) = \frac{f(x)}{g(x)}`, -`h^\prime (2)= `[______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* (Enter DNE if derivative does not exist) +`h^\prime (2)= `[______________]{$ans2} [@ helpLink("numbers") @]* (Enter DNE if derivative does not exist) END_PGML @@ -160,7 +160,7 @@ BEGIN_PGML If `h(x) = 2x+f(x)g(x)`, -`h^\prime (3)= `[______________]{$ans3} [@ AnswerFormatHelp("numbers") @]* (Enter DNE if derivative does not exist) +`h^\prime (3)= `[______________]{$ans3} [@ helpLink("numbers") @]* (Enter DNE if derivative does not exist) END_PGML ############################ @@ -181,7 +181,7 @@ BEGIN_PGML If `h(x) = \frac{1}{x} +\frac{g(x)}{f(x)}`, -`h^\prime (4) = `[______________]{$ans4}[@ AnswerFormatHelp("numbers") @]* (Enter DNE if derivative does not exist) +`h^\prime (4) = `[______________]{$ans4}[@ helpLink("numbers") @]* (Enter DNE if derivative does not exist) END_PGML diff --git a/Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_130.pg b/Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_130.pg index c83102d716..666f56fdde 100644 --- a/Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_130.pg +++ b/Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_130.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -82,7 +82,7 @@ BEGIN_PGML If `h(x) = f(x)+g(x)`, -`h^\prime (1) = `[______________]{0} [@ AnswerFormatHelp("numbers") @]* (Enter DNE if derivative does not exist) +`h^\prime (1) = `[______________]{0} [@ helpLink("numbers") @]* (Enter DNE if derivative does not exist) END_PGML @@ -104,7 +104,7 @@ BEGIN_PGML If `h(x) = f(x)g(x)`, -`h^\prime (3) = `[______________]{DNE} [@ AnswerFormatHelp("numbers") @]* (Enter DNE if derivative does not exist) +`h^\prime (3) = `[______________]{DNE} [@ helpLink("numbers") @]* (Enter DNE if derivative does not exist) END_PGML @@ -128,7 +128,7 @@ BEGIN_PGML If `h(x) = \frac{f(x)}{g(x)}`, -`h^\prime (4) = `[______________]{2/5} [@ AnswerFormatHelp("numbers") @]* (Enter DNE if derivative does not exist) +`h^\prime (4) = `[______________]{2/5} [@ helpLink("numbers") @]* (Enter DNE if derivative does not exist) END_PGML diff --git a/Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_137.pg b/Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_137.pg index 0b860704f0..2f1ab7e845 100644 --- a/Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_137.pg +++ b/Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_137.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextLimitedPoint.pl", @@ -54,7 +54,7 @@ Context()->noreduce('(-x)-y','(-x)+y'); $f = Formula("$a*x**(3)+$b*x**(2)-$c*x-$d")->reduce; $fp = $f->D('x'); -##y-coord of P(x,y) on graph of f(x), slope of tan line at P(x,y), y-int of tan line## +##y-coord of P(x,y) on graph of f(x), slope of tan line at P(x,y), y-int of tan line## $y0 = $f->eval(x=>$x0); $fp_x0=$fp->eval(x=>$x0); $yint=$y0-$fp_x0*$x0; @@ -69,7 +69,7 @@ BEGIN_PGML Find the equation of the tangent line to the graph of [`\displaystyle f(x)=[$f]`] at `x=[$x0]`. -[`y=`] [_______________]{$tanline} [@ AnswerFormatHelp("formulas") @]* +[`y=`] [_______________]{$tanline} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_138.pg b/Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_138.pg index 77610863bb..772cf8dbe6 100644 --- a/Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_138.pg +++ b/Contrib/CCCS/CalculusOne/03.3/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_3_138.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextLimitedPoint.pl", @@ -51,7 +51,7 @@ Context()->noreduce('(-x)-y','(-x)+y'); $f = Formula("x**(2)+($a/x)-$b")->reduce; $fp = $f->D('x'); -##y-coord of P(x,y) on graph of f(x), slope of tan line at P(x,y), y-int of tan line## +##y-coord of P(x,y) on graph of f(x), slope of tan line at P(x,y), y-int of tan line## $y0 = $f->eval(x=>$x0); $fp_x0=$fp->eval(x=>$x0); $yint=$y0-$fp_x0*$x0; @@ -66,7 +66,7 @@ BEGIN_PGML Find the equation of the line tangent to the graph of [`\displaystyle f(x)=[$f]`] at `x=[$x0]`. -[`y=`] [_______________]{$tanline} [@ AnswerFormatHelp("formulas") @]* +[`y=`] [_______________]{$tanline} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/03.4/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_4_151.pg b/Contrib/CCCS/CalculusOne/03.4/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_4_151.pg index d8dbc54d45..c8ed236e93 100644 --- a/Contrib/CCCS/CalculusOne/03.4/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_4_151.pg +++ b/Contrib/CCCS/CalculusOne/03.4/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_4_151.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserAssignment.pl", @@ -46,15 +46,15 @@ Context("Numeric"); Context()->flags->set(tolerance => 0.01); # having answers to 4 decimal places AND reduced -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; -# adding t as a variable +# adding t as a variable Context()->variables->add(t => 'Real'); $a=random(1,11,1); # the formula for position function -$s = Formula("2*(t^3)-15*(t^2)-36*t -$a")->reduce(); +$s = Formula("2*(t^3)-15*(t^2)-36*t -$a")->reduce(); # the derivative of the position function or velocity $sp = $s->D('t'); @@ -92,9 +92,9 @@ BEGIN_PGML Find the velocity and acceleration functions associated with [`s(t)=[$s]`]. -`v(t)=`[_______________]{$sp} [@ AnswerFormatHelp("formulas") @]* +`v(t)=`[_______________]{$sp} [@ helpLink("formulas") @]* -`a(t)=`[_______________]{$spp} [@ AnswerFormatHelp("formulas") @]* +`a(t)=`[_______________]{$spp} [@ helpLink("formulas") @]* END_PGML @@ -116,9 +116,9 @@ BEGIN_PGML Determine the time intervals when the object is: -speeding up [_______________]{$speedingup} [@ AnswerFormatHelp("intervals") @]* +speeding up [_______________]{$speedingup} [@ helpLink("intervals") @]* -slowing down [_______________]{$slowingdown} [@ AnswerFormatHelp("intervals") @]* +slowing down [_______________]{$slowingdown} [@ helpLink("intervals") @]* Use interval notation to enter answers. diff --git a/Contrib/CCCS/CalculusOne/03.4/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_4_153.pg b/Contrib/CCCS/CalculusOne/03.4/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_4_153.pg index d864703c77..e11993fcd8 100644 --- a/Contrib/CCCS/CalculusOne/03.4/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_4_153.pg +++ b/Contrib/CCCS/CalculusOne/03.4/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_4_153.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## Calculus 1, given the position function of a rocket find the velocity and acceleration of rocket at a specific time t. +## Calculus 1, given the position function of a rocket find the velocity and acceleration of rocket at a specific time t. ## ENDDESCRIPTION @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserAssignment.pl", @@ -46,9 +46,9 @@ Context("Numeric"); Context()->flags->set(tolerance => 0.01); # having answers to 4 decimal places AND reduced -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; -# adding t as a variable +# adding t as a variable Context()->variables->add(t => 'Real'); $a=random(-17,-15,1); @@ -57,7 +57,7 @@ $c=random(1,4,1); # the formula for position function Context()->noreduce('(-x)-y','(-x)+y'); -$s = Formula("$a*(t^2)+$b*t")->reduce(); +$s = Formula("$a*(t^2)+$b*t")->reduce(); # the derivative of the position function or velocity $sp = $s->D('t'); @@ -74,17 +74,17 @@ $acc = $spp->eval(t=>$c); BEGIN_PGML -A rocket is fired vertically upward from the ground. -The distance `s` in feet that the rocket travels from the ground after `t` seconds is given by +A rocket is fired vertically upward from the ground. +The distance `s` in feet that the rocket travels from the ground after `t` seconds is given by [` s(t) = [$s] `]. Find the velocity and acceleration of the rocket `[$c]` seconds after being fired. The velocity of the rocket `[$c]` seconds after being fired is -[_______________]{$velo} [`ft/s`]. [@ AnswerFormatHelp("numbers") @]* +[_______________]{$velo} [`ft/s`]. [@ helpLink("numbers") @]* The acceleration of the rocket `[$c]` seconds after being fired is -[_______________]{$acc} [`ft/s^2`]. [@ AnswerFormatHelp("numbers") @]* +[_______________]{$acc} [`ft/s^2`]. [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/03.4/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_4_154.pg b/Contrib/CCCS/CalculusOne/03.4/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_4_154.pg index ee579cc088..00582b0ce6 100644 --- a/Contrib/CCCS/CalculusOne/03.4/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_4_154.pg +++ b/Contrib/CCCS/CalculusOne/03.4/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_4_154.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## Calculus 1, given the position function of a ball that has been thrown downward find the time and velocity at which the ball hits the ground . +## Calculus 1, given the position function of a ball that has been thrown downward find the time and velocity at which the ball hits the ground . ## ENDDESCRIPTION @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserAssignment.pl", @@ -46,9 +46,9 @@ Context("Numeric"); Context()->flags->set(tolerance => 0.01); # having answers to 4 decimal places AND reduced -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; -# adding t as a variable +# adding t as a variable Context()->variables->add(t => 'Real'); # constant coeffs @@ -58,7 +58,7 @@ $c=random(24,100,1); # the formula for position function Context()->noreduce('(-x)-y','(-x)+y'); -$s = Formula("$a*(t^2)+$b*t+$c")->reduce(); +$s = Formula("$a*(t^2)+$b*t+$c")->reduce(); # the derivative of the position function or velocity $sp = $s->D('t'); @@ -74,7 +74,7 @@ $ans2=$sp->eval(t=>$ans1); BEGIN_PGML -A ball is thrown downward with a speed of `[$b]` ft/s from the top of a `[$c]` ft tall building. After `t` seconds, its height above the ground is given by +A ball is thrown downward with a speed of `[$b]` ft/s from the top of a `[$c]` ft tall building. After `t` seconds, its height above the ground is given by [` s(t) = [$s] `] END_PGML @@ -88,14 +88,14 @@ Section::Begin("Part 1 - 1 point"); BEGIN_PGML Determine how long it takes for the ball to hit the ground. -[_______________]{$ans1} seconds. [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans1} seconds. [@ helpLink("numbers") @]* END_PGML ################# BEGIN_PGML_HINT -The object hits the ground when its position function is equal to zero. +The object hits the ground when its position function is equal to zero. END_PGML_HINT ################# @@ -109,7 +109,7 @@ Section::Begin("Part 2 - 1 point"); BEGIN_PGML Determine the velocity of the ball when it hits the ground. -[_______________]{$ans2} ft/sec. [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans2} ft/sec. [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/03.4/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_4_155.pg b/Contrib/CCCS/CalculusOne/03.4/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_4_155.pg index 81d7ba1234..2112e2c8a4 100644 --- a/Contrib/CCCS/CalculusOne/03.4/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_4_155.pg +++ b/Contrib/CCCS/CalculusOne/03.4/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_4_155.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## Calculus 1, given the position function of the back of a vehicle that is pulling out of a garage and backing out a driveway, +## Calculus 1, given the position function of the back of a vehicle that is pulling out of a garage and backing out a driveway, ## ENDDESCRIPTION @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserAssignment.pl", @@ -46,9 +46,9 @@ Context("Numeric"); Context()->flags->set(tolerance => 0.01); # having answers to 4 decimal places AND reduced -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; -# adding t as a variable +# adding t as a variable Context()->variables->add(t => 'Real'); #random coefficients @@ -63,7 +63,7 @@ $f=Compute(abs($d)); # the formula for position function Context()->noreduce('(-x)-y','(-x)+y'); -$s = Formula("(t^2)+($c*t)+$d")->reduce(); +$s = Formula("(t^2)+($c*t)+$d")->reduce(); # the derivative of the position function or velocity $sp = $s->D('t'); @@ -93,7 +93,7 @@ BEGIN_PGML Determine the velocity of the car when `s(t)=0`. -[_______________]{$ans1} ft/sec. [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans1} ft/sec. [@ helpLink("numbers") @]* END_PGML @@ -107,7 +107,7 @@ BEGIN_PGML Determine the velocity of the car when `s(t)=14`. -[_______________]{$ans2} ft/sec. [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans2} ft/sec. [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/03.4/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_4_158.pg b/Contrib/CCCS/CalculusOne/03.4/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_4_158.pg index e9b0ce7a93..f872fcd173 100644 --- a/Contrib/CCCS/CalculusOne/03.4/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_4_158.pg +++ b/Contrib/CCCS/CalculusOne/03.4/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_4_158.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## Calculus 1, given the position function of a freight train determine the direction at given times and determine intervals when the train is speeding up ##and slowing down, +## Calculus 1, given the position function of a freight train determine the direction at given times and determine intervals when the train is speeding up ##and slowing down, ## ENDDESCRIPTION @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserAssignment.pl", @@ -46,7 +46,7 @@ Context("Numeric"); #allows radicals to be displayed Context("LimitedRadical"); -# adding t as a variable +# adding t as a variable Context()->variables->add(t => 'Real'); #random coefficient @@ -59,7 +59,7 @@ else{$d=Formula("1+$a*sqrt($a)");} # the formula for position function Context()->noreduce('(-x)-y','(-x)+y'); -$s = Formula("((t-1)^3)-$b*(t-1)")->reduce(); +$s = Formula("((t-1)^3)-$b*(t-1)")->reduce(); #answer to part 1 $ans1 = List(1,1+sqrt($b)); @@ -102,18 +102,18 @@ BEGIN_PGML Determine the direction the train is traveling when [`s(t)=0`]. The direction the train is traveling when [`t=1`] is -[_______________]{"west"} (enter "east", "west" or "neither") +[_______________]{"west"} (enter "east", "west" or "neither") The direction the train is traveling when [`t=[$d]`] is -[_______________]{"east"} (enter "east", "west" or "neither") +[_______________]{"east"} (enter "east", "west" or "neither") END_PGML ################# BEGIN_PGML_HINT -The direction of travel for an object at a specific time is determined by the sign of the velocity at that time. +The direction of travel for an object at a specific time is determined by the sign of the velocity at that time. END_PGML_HINT ################# @@ -134,7 +134,7 @@ END_PGML ################# BEGIN_PGML_HINT -The direction of travel for an object at a specific time is determined by the sign of the velocity at that time. +The direction of travel for an object at a specific time is determined by the sign of the velocity at that time. END_PGML_HINT ################# @@ -159,10 +159,10 @@ BEGIN_PGML Determine the time intervals when the train is slowing down or speeding up. -The train is speeding up on the interval(s): [_______________]{$speedingup} [@ AnswerFormatHelp("intervals") @]* +The train is speeding up on the interval(s): [_______________]{$speedingup} [@ helpLink("intervals") @]* -The train is slowing down on the interval(s): [_______________]{$slowingdown} [@ AnswerFormatHelp("intervals") @]* +The train is slowing down on the interval(s): [_______________]{$slowingdown} [@ helpLink("intervals") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/03.4/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_4_159.pg b/Contrib/CCCS/CalculusOne/03.4/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_4_159.pg index 0837b11649..8f49724029 100644 --- a/Contrib/CCCS/CalculusOne/03.4/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_4_159.pg +++ b/Contrib/CCCS/CalculusOne/03.4/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_4_159.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -189,11 +189,11 @@ BEGIN_PGML Use the graph of [`s(t)`] to determine the time intervals when the velocity is positive, negative, or zero -Velocity is positive on [_______________]{$vpos} [@ AnswerFormatHelp("intervals") @]* +Velocity is positive on [_______________]{$vpos} [@ helpLink("intervals") @]* -Velocity is negative on [_______________]{$vneg} [@ AnswerFormatHelp("intervals") @]* +Velocity is negative on [_______________]{$vneg} [@ helpLink("intervals") @]* -Velocity is zero on [_______________]{$vzero->cmp(studentsMustReduceUnions => 0)} [@ AnswerFormatHelp("intervals") @]* +Velocity is zero on [_______________]{$vzero->cmp(studentsMustReduceUnions => 0)} [@ helpLink("intervals") @]* Use interval notation for your answer. Remember that a single value, such as 3, can be notated with curly brackets as {3} in interval notation. @@ -216,10 +216,10 @@ Section::Begin("Part 2 - 1 point"); BEGIN_PGML -Which of the following graphs represents the graph of [`v(t)`]? [_________________]{$popup1} +Which of the following graphs represents the graph of [`v(t)`]? [_________________]{$popup1} ->>A. [@ image(insertGraph($gr1), width=>200, height=>200), @]* B. [@ image(insertGraph($gr2), width=>200, height=>200), @]* << +>>A. [@ image(insertGraph($gr1), width=>200, height=>200), @]* B. [@ image(insertGraph($gr2), width=>200, height=>200), @]* << >>C. [@ image(insertGraph($gr4), width=>200, height=>200), @]* D. [@ image(insertGraph($gr3), width=>200, height=>200), @]* << @@ -237,11 +237,11 @@ BEGIN_PGML Use the graph of [`v(t)`] to determine the time intervals when the acceleration is positive, negative, or zero -Acceleration is positive on [_______________]{$apos} [@ AnswerFormatHelp("intervals") @]* +Acceleration is positive on [_______________]{$apos} [@ helpLink("intervals") @]* -Acceleration is negative on [_______________]{$aneg} [@ AnswerFormatHelp("intervals") @]* +Acceleration is negative on [_______________]{$aneg} [@ helpLink("intervals") @]* -Acceleration is zero on [_______________]{$azero} [@ AnswerFormatHelp("intervals") @]* +Acceleration is zero on [_______________]{$azero} [@ helpLink("intervals") @]* Use interval notation to enter answers. @@ -263,9 +263,9 @@ BEGIN_PGML Determine the time intervals when the object is speeding up or slowing down -The object is speeding up on [_______________]{$speedup} [@ AnswerFormatHelp("intervals") @]* +The object is speeding up on [_______________]{$speedup} [@ helpLink("intervals") @]* -The object is slowing down on [_______________]{$slowdown} [@ AnswerFormatHelp("intervals") @]* +The object is slowing down on [_______________]{$slowdown} [@ helpLink("intervals") @]* Use interval notation to enter answers. diff --git a/Contrib/CCCS/CalculusOne/03.4/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_4_160.pg b/Contrib/CCCS/CalculusOne/03.4/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_4_160.pg index 732cde2624..3cdcbab0f8 100644 --- a/Contrib/CCCS/CalculusOne/03.4/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_4_160.pg +++ b/Contrib/CCCS/CalculusOne/03.4/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_4_160.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -51,23 +51,23 @@ $C = Formula("$a+($b/x)+((x^2)/$b)")->reduce; #Marginal cost $MC = $C->D('x'); -#Actual cost of manufacturing 13 widgets +#Actual cost of manufacturing 13 widgets $C_13=$C->eval(x=>13); -#Actual cost of manufacturing 12 widgets +#Actual cost of manufacturing 12 widgets $C_12=$C->eval(x=>12); #cost of only thirteenth food processor $ans2=Compute($C_13-$C_12); -#Marginal cost of manufacturing 12 widgets +#Marginal cost of manufacturing 12 widgets $ans1=$MC->eval(x=>12); ########################### # Main text BEGIN_PGML - + The cost function, in dollars, of a company that manufactures food processors is given by [` C(x) = [$C] `], where `x` is the number of food processors manufactured. END_PGML @@ -80,7 +80,7 @@ Section::Begin("Part 1 - 1 point"); BEGIN_PGML -The marginal cost function is `=`[_______________]{$MC} +The marginal cost function is `=`[_______________]{$MC} END_PGML diff --git a/Contrib/CCCS/CalculusOne/03.4/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_4_166.pg b/Contrib/CCCS/CalculusOne/03.4/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_4_166.pg index 3e18b9c0c4..da27f31c2a 100644 --- a/Contrib/CCCS/CalculusOne/03.4/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_4_166.pg +++ b/Contrib/CCCS/CalculusOne/03.4/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_4_166.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -48,7 +48,7 @@ $b=random(13,14,0.01); # radius distance $c=random(100,200,10); -# adding r, m and v as a variables +# adding r, m and v as a variables Context()->variables->add(r => 'Real'); Context()->variables->add(m => 'Real'); Context()->variables->add(v => 'Real'); @@ -60,7 +60,7 @@ $F = Formula("(m*(v^2))/r")->reduce; #Marginal cost $Fpr = $F->D('r'); -#Actual cost of manufacturing 13 widgets +#Actual cost of manufacturing 13 widgets $ans=$Fpr->eval(m=>$a, v=>$b, r=>$c); @@ -68,7 +68,7 @@ $ans=$Fpr->eval(m=>$a, v=>$b, r=>$c); # Main text BEGIN_PGML - + The centripetal force of an object of mass `m` is given by [` F(r) = [$F] `], where `v` is the speed of rotation and `r` is the distance from the center of rotation. END_PGML @@ -83,7 +83,7 @@ BEGIN_PGML Find the rate of change of centripetal force with respect to the distance from the center of rotation. - ` F^\prime (r)=`[_______________]{$Fpr } + ` F^\prime (r)=`[_______________]{$Fpr } END_PGML diff --git a/Contrib/CCCS/CalculusOne/03.5/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_5_175.pg b/Contrib/CCCS/CalculusOne/03.5/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_5_175.pg index 02217cd255..03f5b536a3 100644 --- a/Contrib/CCCS/CalculusOne/03.5/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_5_175.pg +++ b/Contrib/CCCS/CalculusOne/03.5/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_5_175.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGauxiliaryFunctions.pl", @@ -48,11 +48,11 @@ $fp = $f->D('x'); # Main text BEGIN_PGML - + Given [` \displaystyle f(x)=[$f] `], find `f^\prime (x)`. -`f^\prime (x)=`[__________________________]{$fp} [@ AnswerFormatHelp("formulas") @]* +`f^\prime (x)=`[__________________________]{$fp} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/03.5/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_5_176.pg b/Contrib/CCCS/CalculusOne/03.5/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_5_176.pg index 92138b6c15..3f57c3e443 100644 --- a/Contrib/CCCS/CalculusOne/03.5/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_5_176.pg +++ b/Contrib/CCCS/CalculusOne/03.5/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_5_176.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGauxiliaryFunctions.pl", @@ -54,7 +54,7 @@ BEGIN_PGML Given [` \displaystyle f(x)=[$f] `], find `f^\prime (x)`. -`f^\prime (x)=`[__________________________]{$fp} [@ AnswerFormatHelp("formulas") @]* +`f^\prime (x)=`[__________________________]{$fp} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/03.5/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_5_177.pg b/Contrib/CCCS/CalculusOne/03.5/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_5_177.pg index ce638626ec..ac6d72e8da 100644 --- a/Contrib/CCCS/CalculusOne/03.5/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_5_177.pg +++ b/Contrib/CCCS/CalculusOne/03.5/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_5_177.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGauxiliaryFunctions.pl", @@ -47,11 +47,11 @@ $fp = $f->D('x'); # Main text BEGIN_PGML - + Given [` \displaystyle f(x)=[$f] `], find `f^\prime (x)`. -`f^\prime (x)=`[__________________________]{$fp} [@ AnswerFormatHelp("formulas") @]* +`f^\prime (x)=`[__________________________]{$fp} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/03.5/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_5_178.pg b/Contrib/CCCS/CalculusOne/03.5/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_5_178.pg index c3829912c0..575e946e1f 100644 --- a/Contrib/CCCS/CalculusOne/03.5/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_5_178.pg +++ b/Contrib/CCCS/CalculusOne/03.5/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_5_178.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGauxiliaryFunctions.pl", @@ -53,7 +53,7 @@ BEGIN_PGML Given [` \displaystyle f(x)=[$f] `], find `f^\prime (x)`. -`f^\prime (x)=`[__________________________]{$fp} [@ AnswerFormatHelp("formulas") @]* +`f^\prime (x)=`[__________________________]{$fp} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/03.5/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_5_179.pg b/Contrib/CCCS/CalculusOne/03.5/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_5_179.pg index 7eb43ab483..314ee98188 100644 --- a/Contrib/CCCS/CalculusOne/03.5/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_5_179.pg +++ b/Contrib/CCCS/CalculusOne/03.5/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_5_179.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGauxiliaryFunctions.pl", @@ -48,11 +48,11 @@ $fp = $f->D('x'); # Main text BEGIN_PGML - + Given [` \displaystyle f(x)=[$f] `], find `f^\prime (x)`. -`f^\prime (x)=`[__________________________]{$fp} [@ AnswerFormatHelp("formulas") @]* +`f^\prime (x)=`[__________________________]{$fp} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/03.5/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_5_180.pg b/Contrib/CCCS/CalculusOne/03.5/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_5_180.pg index 61eb9e4ca7..b31318d810 100644 --- a/Contrib/CCCS/CalculusOne/03.5/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_5_180.pg +++ b/Contrib/CCCS/CalculusOne/03.5/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_5_180.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGauxiliaryFunctions.pl", @@ -46,11 +46,11 @@ $fp = $f->D('x'); # Main text BEGIN_PGML - + Given [` \displaystyle f(x)=[$f] `], find `f^\prime (x)`. -`f^\prime (x)=`[__________________________]{$fp} [@ AnswerFormatHelp("formulas") @]* +`f^\prime (x)=`[__________________________]{$fp} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/03.5/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_5_183.pg b/Contrib/CCCS/CalculusOne/03.5/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_5_183.pg index a7381f974e..7ae374b5c2 100644 --- a/Contrib/CCCS/CalculusOne/03.5/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_5_183.pg +++ b/Contrib/CCCS/CalculusOne/03.5/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_5_183.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGauxiliaryFunctions.pl", @@ -48,11 +48,11 @@ $fp = $f->D('x'); # Main text BEGIN_PGML - + Given [` \displaystyle f(x)=[$f] `], find `f^\prime (x)`. -`f^\prime (x)=`[__________________________]{$fp} [@ AnswerFormatHelp("formulas") @]* +`f^\prime (x)=`[__________________________]{$fp} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/03.5/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_5_185.pg b/Contrib/CCCS/CalculusOne/03.5/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_5_185.pg index 82823ec128..407171077f 100644 --- a/Contrib/CCCS/CalculusOne/03.5/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_5_185.pg +++ b/Contrib/CCCS/CalculusOne/03.5/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_5_185.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -56,7 +56,7 @@ Context()->noreduce('(-x)-y','(-x)+y'); $f = Formula("-$a*sin(x)")->reduce; $fp = $f->D('x'); -##y-coord of P(x,y) on graph of f(x), slope of tan line at P(x,y), y-int of tan line## +##y-coord of P(x,y) on graph of f(x), slope of tan line at P(x,y), y-int of tan line## $y0 = $f->eval(x=>$x0); $fp_x0=$fp->eval(x=>$x0); $yint=$y0-$fp_x0*$x0; @@ -97,7 +97,7 @@ size=>[600,600] ## This is the CORRECT GHRAPH## -add_functions($gr0, "$f for x in <-8,8>" . +add_functions($gr0, "$f for x in <-8,8>" . " using color:blue and weight:2"); add_functions($gr0, "$tanline for x in <-8,8>" . @@ -154,7 +154,7 @@ $yint_temp=$y0_temp-$df_x0_temp*$x0; ##the equation of the line tangent at the point P(x, y)## $tanline_temp=Formula("$df_x0_temp*x+$yint_temp"); -add_functions($gr2, "$f_temp for x in <-8,8>" . +add_functions($gr2, "$f_temp for x in <-8,8>" . " using color:blue and weight:2"); add_functions($gr2, "$tanline_temp for x in <-8,8>" . @@ -179,10 +179,10 @@ $yint_temp=$y0_temp-$df_x0_temp*$x0; ##the equation of the line tangent at the point P(x, y)## $tanline_temp=Formula("$df_x0_temp*x+$yint_temp"); -add_functions($gr3, "$f_temp for x in <-8,8>" . +add_functions($gr3, "$f_temp for x in <-8,8>" . " using color:blue and weight:2"); -add_functions($gr3, "$tanline_temp for x in <-8,8>" . +add_functions($gr3, "$tanline_temp for x in <-8,8>" . " using color:black and weight:2"); $popup = PopUp( @@ -199,11 +199,11 @@ Scaffold::Begin(); Section::Begin("Part 1 - 1 point"); BEGIN_PGML - + Find the equation of the tangent line to [` \displaystyle f(x)=[$f] `] at `x=[$x0]`. -[`y=`] [_______________]{$tanline} [@ AnswerFormatHelp("formulas") @]* +[`y=`] [_______________]{$tanline} [@ helpLink("formulas") @]* END_PGML @@ -225,12 +225,12 @@ Section::Begin("Part 2 - 1 point"); BEGIN_PGML Which of the following graphs represents the graph of [` \displaystyle f(x)=[$f] `] and the graph of the tangent line at `x=[$x0]`? -[@ $popup->menu() @]* +[@ $popup->menu() @]* ->>A. [@ image(insertGraph($gr3), width=>200, height=>200), @]* B. [@ image(insertGraph($gr2), width=>200, height=>200), @]* << +>>A. [@ image(insertGraph($gr3), width=>200, height=>200), @]* B. [@ image(insertGraph($gr2), width=>200, height=>200), @]* << ->>C. [@ image(insertGraph($gr1), width=>200, height=>200), @]* D. [@ image(insertGraph($gr0), width=>200, height=>200), @]* << +>>C. [@ image(insertGraph($gr1), width=>200, height=>200), @]* D. [@ image(insertGraph($gr0), width=>200, height=>200), @]* << diff --git a/Contrib/CCCS/CalculusOne/03.5/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_5_186.pg b/Contrib/CCCS/CalculusOne/03.5/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_5_186.pg index a0ae25dce3..28bb304949 100644 --- a/Contrib/CCCS/CalculusOne/03.5/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_5_186.pg +++ b/Contrib/CCCS/CalculusOne/03.5/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_5_186.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -59,7 +59,7 @@ Context()->noreduce('(-x)-y','(-x)+y'); $f = Formula("$a*csc(x)")->reduce; $fp = $f->D('x'); -##y-coord of P(x,y) on graph of f(x), slope of tan line at P(x,y), y-int of tan line## +##y-coord of P(x,y) on graph of f(x), slope of tan line at P(x,y), y-int of tan line## $y0 = $f->eval(x=>$x0); $fp_x0=$fp->eval(x=>$x0); $yint=$y0-$fp_x0*$x0; @@ -100,13 +100,13 @@ size=>[600,600] ## This is the CORRECT GHRAPH## -add_functions($gr0, "$f for x in <0.1,3.1>" . +add_functions($gr0, "$f for x in <0.1,3.1>" . " using color:blue and weight:2"); -add_functions($gr0, "$f for x in <-3.1,-0.1>" . +add_functions($gr0, "$f for x in <-3.1,-0.1>" . " using color:blue and weight:2"); -add_functions($gr0, "$f for x in <3.2,6.2>" . +add_functions($gr0, "$f for x in <3.2,6.2>" . " using color:blue and weight:2"); -add_functions($gr0, "$f for x in <-6.2,-3.2>" . +add_functions($gr0, "$f for x in <-6.2,-3.2>" . " using color:blue and weight:2"); add_functions($gr0, "$tanline for x in <-8,8>" . " using color:black and weight:2"); @@ -171,13 +171,13 @@ $yint_temp2=$y0_temp2-$df_x0_temp2*$x0; ##the equation of the line tangent at the point P(x, y)## $tanline_temp2=Formula("$df_x0_temp2*x+$yint_temp2"); -add_functions($gr2, "$f_temp2 for x in <-6.2,-3.2>" . +add_functions($gr2, "$f_temp2 for x in <-6.2,-3.2>" . " using color:blue and weight:2"); -add_functions($gr2, "$f_temp2 for x in <-3.1,-0.1>" . +add_functions($gr2, "$f_temp2 for x in <-3.1,-0.1>" . " using color:blue and weight:2"); -add_functions($gr2, "$f_temp2 for x in <0.1,3.1>" . +add_functions($gr2, "$f_temp2 for x in <0.1,3.1>" . " using color:blue and weight:2"); -add_functions($gr2, "$f_temp2 for x in <3.2,6.2>" . +add_functions($gr2, "$f_temp2 for x in <3.2,6.2>" . " using color:blue and weight:2"); add_functions($gr2, "$tanline_temp2 for x in <-8,8>" . " using color:black and weight:2"); @@ -203,9 +203,9 @@ $yint_temp3=$y0_temp3-$df_x0_temp3*$x0; ##the equation of the line tangent at the point P(x, y)## $tanline_temp3=Formula("$df_x0_temp3*x+$yint_temp3"); -add_functions($gr3, "$f_temp3 for x in <-8,8>" . +add_functions($gr3, "$f_temp3 for x in <-8,8>" . " using color:blue and weight:2"); -add_functions($gr3, "$tanline_temp3 for x in <-8,8>" . +add_functions($gr3, "$tanline_temp3 for x in <-8,8>" . " using color:black and weight:2"); $in=time(); $gr3->gifName($gr3->gifName()."$in"); @@ -227,7 +227,7 @@ BEGIN_PGML Find the equation of the tangent line to [` \displaystyle f(x)=[$f] `] at `x=(\pi)/2`. -[`y=`] [_______________]{$tanline} [@ AnswerFormatHelp("formulas") @]* +[`y=`] [_______________]{$tanline} [@ helpLink("formulas") @]* END_PGML @@ -249,12 +249,12 @@ Section::Begin("Part 2 - 1 point"); BEGIN_PGML Which of the following graphs represents the graph of [` \displaystyle f(x)=[$f] `] and the graph of the tangent line at `x=(\pi)/2`? -[@ $popup->menu() @]* +[@ $popup->menu() @]* ->>A. [@ image(insertGraph($gr3), width=>200, height=>200), @]* B. [@ image(insertGraph($gr0), width=>200, height=>200), @]* << +>>A. [@ image(insertGraph($gr3), width=>200, height=>200), @]* B. [@ image(insertGraph($gr0), width=>200, height=>200), @]* << ->>C. [@ image(insertGraph($gr1), width=>200, height=>200), @]* D. [@ image(insertGraph($gr2), width=>200, height=>200), @]* << +>>C. [@ image(insertGraph($gr1), width=>200, height=>200), @]* D. [@ image(insertGraph($gr2), width=>200, height=>200), @]* << diff --git a/Contrib/CCCS/CalculusOne/03.5/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_5_188.pg b/Contrib/CCCS/CalculusOne/03.5/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_5_188.pg index 217e8c3fe0..fd0fcbc04a 100644 --- a/Contrib/CCCS/CalculusOne/03.5/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_5_188.pg +++ b/Contrib/CCCS/CalculusOne/03.5/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_5_188.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -57,7 +57,7 @@ Context()->noreduce('(-x)-y','(-x)+y'); $f = Formula("$a*sec(x)")->reduce; $fp = $f->D('x'); -##y-coord of P(x,y) on graph of f(x), slope of tan line at P(x,y), y-int of tan line## +##y-coord of P(x,y) on graph of f(x), slope of tan line at P(x,y), y-int of tan line## $y0 = $f->eval(x=>$x0); $fp_x0=$fp->eval(x=>$x0); $yint=$y0-$fp_x0*$x0; @@ -98,15 +98,15 @@ size=>[600,600] ## This is the CORRECT GHRAPH## -add_functions($gr0, "$f for x in <-7.8,-4.8>" . +add_functions($gr0, "$f for x in <-7.8,-4.8>" . " using color:blue and weight:2"); -add_functions($gr0, "$f for x in <-4.7,-1.6>" . +add_functions($gr0, "$f for x in <-4.7,-1.6>" . " using color:blue and weight:2"); -add_functions($gr0, "$f for x in <-1.5,1.5>" . +add_functions($gr0, "$f for x in <-1.5,1.5>" . " using color:blue and weight:2"); -add_functions($gr0, "$f for x in <1.6,4.7>" . +add_functions($gr0, "$f for x in <1.6,4.7>" . " using color:blue and weight:2"); -add_functions($gr0, "$f for x in <4.8,7.8>" . +add_functions($gr0, "$f for x in <4.8,7.8>" . " using color:blue and weight:2"); add_functions($gr0, "$tanline for x in <-8,8>" . " using color:black and weight:2"); @@ -173,15 +173,15 @@ $yint_temp=$y0_temp-$df_x0_temp*$x0; ##the equation of the line tangent at the point P(x, y)## $tanline_temp=Formula("$df_x0_temp*x+$yint_temp"); -add_functions($gr2, "$f_temp for x in <-7.8,-4.8>" . +add_functions($gr2, "$f_temp for x in <-7.8,-4.8>" . " using color:blue and weight:2"); -add_functions($gr2, "$f_temp for x in <-4.7,-1.6>" . +add_functions($gr2, "$f_temp for x in <-4.7,-1.6>" . " using color:blue and weight:2"); -add_functions($gr2, "$f_temp for x in <-1.5,1.5>" . +add_functions($gr2, "$f_temp for x in <-1.5,1.5>" . " using color:blue and weight:2"); -add_functions($gr2, "$f_temp for x in <1.6,4.7>" . +add_functions($gr2, "$f_temp for x in <1.6,4.7>" . " using color:blue and weight:2"); -add_functions($gr2, "$f_temp for x in <4.8,7.8>" . +add_functions($gr2, "$f_temp for x in <4.8,7.8>" . " using color:blue and weight:2"); add_functions($gr2, "$tanline_temp for x in <-8,8>" . " using color:black and weight:2"); @@ -208,17 +208,17 @@ $yint_temp=$y0_temp-$df_x0_temp*$x0; ##the equation of the line tangent at the point P(x, y)## $tanline_temp=Formula("$df_x0_temp*x+$yint_temp"); -add_functions($gr3, "$f_temp for x in <-7.8,-4.8>" . +add_functions($gr3, "$f_temp for x in <-7.8,-4.8>" . " using color:blue and weight:2"); -add_functions($gr3, "$f_temp for x in <-4.7,-1.6>" . +add_functions($gr3, "$f_temp for x in <-4.7,-1.6>" . " using color:blue and weight:2"); -add_functions($gr3, "$f_temp for x in <-1.5,1.5>" . +add_functions($gr3, "$f_temp for x in <-1.5,1.5>" . " using color:blue and weight:2"); -add_functions($gr3, "$f_temp for x in <1.6,4.7>" . +add_functions($gr3, "$f_temp for x in <1.6,4.7>" . " using color:blue and weight:2"); -add_functions($gr3, "$f_temp for x in <4.8,7.8>" . +add_functions($gr3, "$f_temp for x in <4.8,7.8>" . " using color:blue and weight:2"); -add_functions($gr3, "$tanline_temp for x in <-8,8>" . +add_functions($gr3, "$tanline_temp for x in <-8,8>" . " using color:black and weight:2"); $in=time(); $gr3->gifName($gr3->gifName()."$in"); @@ -241,7 +241,7 @@ BEGIN_PGML Find the equation of the tangent line to `f(x)=[$f]` at `x=(\pi)/4`. -[`y=`] [_______________]{$tanline} [@ AnswerFormatHelp("formulas") @]* +[`y=`] [_______________]{$tanline} [@ helpLink("formulas") @]* END_PGML @@ -263,12 +263,12 @@ Section::Begin("Part 2 - 1 point"); BEGIN_PGML Which of the following graphs represents the graph of `f(x)=[$f]` and the graph of the tangent line at `x=(\pi)/4`? -[@ $popup->menu() @]* +[@ $popup->menu() @]* ->>A. [@ image(insertGraph($gr3), width=>200, height=>200), @]* B. [@ image(insertGraph($gr1), width=>200, height=>200), @]* << +>>A. [@ image(insertGraph($gr3), width=>200, height=>200), @]* B. [@ image(insertGraph($gr1), width=>200, height=>200), @]* << ->>C. [@ image(insertGraph($gr0), width=>200, height=>200), @]* D. [@ image(insertGraph($gr2), width=>200, height=>200), @]* << +>>C. [@ image(insertGraph($gr0), width=>200, height=>200), @]* D. [@ image(insertGraph($gr2), width=>200, height=>200), @]* << diff --git a/Contrib/CCCS/CalculusOne/03.5/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_5_189.pg b/Contrib/CCCS/CalculusOne/03.5/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_5_189.pg index 4597edb19a..d5fa407ca1 100644 --- a/Contrib/CCCS/CalculusOne/03.5/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_5_189.pg +++ b/Contrib/CCCS/CalculusOne/03.5/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_5_189.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -57,7 +57,7 @@ Context()->noreduce('(-x)-y','(-x)+y'); $f = Formula("$a*x^2-tan(x)")->reduce; $fp = $f->D('x'); -##y-coord of P(x,y) on graph of f(x), slope of tan line at P(x,y), y-int of tan line## +##y-coord of P(x,y) on graph of f(x), slope of tan line at P(x,y), y-int of tan line## $y0 = $f->eval(x=>$x0); $fp_x0=$fp->eval(x=>$x0); $yint=$y0-$fp_x0*$x0; @@ -99,7 +99,7 @@ size=>[600,600] ## This is the CORRECT GHRAPH## -add_functions($gr0, "$f for x in <-8,8>" . +add_functions($gr0, "$f for x in <-8,8>" . " using color:blue and weight:2"); add_functions($gr0, "$tanline for x in <-8,8>" . @@ -154,7 +154,7 @@ $yint_temp=$y0_temp-$df_x0_temp*$x0; ##the equation of the line tangent at the point P(x, y)## $tanline_temp=Formula("$df_x0_temp*x+$yint_temp"); -add_functions($gr2, "$f_temp for x in <-8,8>" . +add_functions($gr2, "$f_temp for x in <-8,8>" . " using color:blue and weight:2"); add_functions($gr2, "$tanline_temp for x in <-8,8>" . @@ -179,10 +179,10 @@ $yint_temp=$y0_temp-$df_x0_temp*$x0; ##the equation of the line tangent at the point P(x, y)## $tanline_temp=Formula("$df_x0_temp*x+$yint_temp"); -add_functions($gr3, "$f_temp for x in <-8,8>" . +add_functions($gr3, "$f_temp for x in <-8,8>" . " using color:blue and weight:2"); -add_functions($gr3, "$tanline_temp for x in <-8,8>" . +add_functions($gr3, "$tanline_temp for x in <-8,8>" . " using color:black and weight:2"); $popup = PopUp( @@ -202,7 +202,7 @@ BEGIN_PGML Find the equation of the tangent line to [` \displaystyle f(x)=[$f] `] at `x=0`. -[`y=`] [_______________]{$tanline} [@ AnswerFormatHelp("formulas") @]* +[`y=`] [_______________]{$tanline} [@ helpLink("formulas") @]* END_PGML @@ -224,12 +224,12 @@ Section::Begin("Part 2 - 1 point"); BEGIN_PGML Which of the following graphs represents the graph of [` \displaystyle f(x)=[$f] `] and the graph of the tangent line at `x=0`? -[@ $popup->menu() @]* +[@ $popup->menu() @]* ->>A. [@ image(insertGraph($gr0), width=>200, height=>200), @]* B. [@ image(insertGraph($gr1), width=>200, height=>200), @]* << +>>A. [@ image(insertGraph($gr0), width=>200, height=>200), @]* B. [@ image(insertGraph($gr1), width=>200, height=>200), @]* << ->>C. [@ image(insertGraph($gr3), width=>200, height=>200), @]* D. [@ image(insertGraph($gr2), width=>200, height=>200), @]* << +>>C. [@ image(insertGraph($gr3), width=>200, height=>200), @]* D. [@ image(insertGraph($gr2), width=>200, height=>200), @]* << diff --git a/Contrib/CCCS/CalculusOne/03.5/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_5_191.pg b/Contrib/CCCS/CalculusOne/03.5/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_5_191.pg index ea2b5ef078..7770206c6f 100644 --- a/Contrib/CCCS/CalculusOne/03.5/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_5_191.pg +++ b/Contrib/CCCS/CalculusOne/03.5/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_5_191.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGauxiliaryFunctions.pl", @@ -48,11 +48,11 @@ $fpp = $fp->D('x'); # Main text BEGIN_PGML - + Given [` \displaystyle y=[$f] `], find `\frac{d^2y}{dx^2}`. -`\frac{d^2y}{dx^2}=`[__________________________]{$fpp} [@ AnswerFormatHelp("formulas") @]* +`\frac{d^2y}{dx^2}=`[__________________________]{$fpp} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/03.5/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_5_192.pg b/Contrib/CCCS/CalculusOne/03.5/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_5_192.pg index d1c5c958eb..95891f934d 100644 --- a/Contrib/CCCS/CalculusOne/03.5/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_5_192.pg +++ b/Contrib/CCCS/CalculusOne/03.5/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_5_192.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGauxiliaryFunctions.pl", @@ -48,11 +48,11 @@ $fpp = $fp->D('x'); # Main text BEGIN_PGML - + Given [` \displaystyle y=[$f] `], find `\frac{d^2y}{dx^2}`. -`\frac{d^2y}{dx^2}=`[__________________________]{$fpp} [@ AnswerFormatHelp("formulas") @]* +`\frac{d^2y}{dx^2}=`[__________________________]{$fpp} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/03.5/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_5_194.pg b/Contrib/CCCS/CalculusOne/03.5/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_5_194.pg index 96025c50ef..99121e5791 100644 --- a/Contrib/CCCS/CalculusOne/03.5/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_5_194.pg +++ b/Contrib/CCCS/CalculusOne/03.5/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_5_194.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGauxiliaryFunctions.pl", @@ -48,11 +48,11 @@ $fpp = $fp->D('x'); # Main text BEGIN_PGML - + Given [` \displaystyle y=[$f] `], find `\frac{d^2y}{dx^2}`. -`\frac{d^2y}{dx^2}=`[__________________________]{$fpp} [@ AnswerFormatHelp("formulas") @]* +`\frac{d^2y}{dx^2}=`[__________________________]{$fpp} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/03.5/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_5_196.pg b/Contrib/CCCS/CalculusOne/03.5/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_5_196.pg index 52861038a6..b7422cd975 100644 --- a/Contrib/CCCS/CalculusOne/03.5/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_5_196.pg +++ b/Contrib/CCCS/CalculusOne/03.5/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_5_196.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGauxiliaryFunctions.pl", @@ -48,11 +48,11 @@ $fpp = $fp->D('x'); # Main text BEGIN_PGML - + Given [` \displaystyle f=[$f] `], find `\frac{d^2f}{dx^2}`. -`\frac{d^2f}{dx^2}=`[__________________________]{$fpp} [@ AnswerFormatHelp("formulas") @]* +`\frac{d^2f}{dx^2}=`[__________________________]{$fpp} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/03.5/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_5_197.pg b/Contrib/CCCS/CalculusOne/03.5/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_5_197.pg index 71543fc560..ae1198cd59 100644 --- a/Contrib/CCCS/CalculusOne/03.5/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_5_197.pg +++ b/Contrib/CCCS/CalculusOne/03.5/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_5_197.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGauxiliaryFunctions.pl", @@ -46,11 +46,11 @@ $ans=List(pi/4,(3*pi)/4,(5*pi)/4,(7*pi)/4); # Main text BEGIN_PGML - -Find all `x` values on the graph of [` \displaystyle f(x)=[$f] `], for `0variables->add(t => 'Real'); #random coeff for s(t) @@ -69,9 +69,9 @@ BEGIN_PGML A mass on a spring bounces up and down in simple harmonic motion, modeled by the function [` \displaystyle s(t)=[$s] `] where `s` is measured in inches and `t` is measured in seconds. -Find the rate at which the spring is oscillating at [` t = [$b] `] seconds. +Find the rate at which the spring is oscillating at [` t = [$b] `] seconds. -`v([$b])=`[_______________]{$sp_b} in/s. [@ AnswerFormatHelp("numbers") @]* +`v([$b])=`[_______________]{$sp_b} in/s. [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/03.5/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_5_209.pg b/Contrib/CCCS/CalculusOne/03.5/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_5_209.pg index 2297c70a89..8fb49e4b38 100644 --- a/Contrib/CCCS/CalculusOne/03.5/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_5_209.pg +++ b/Contrib/CCCS/CalculusOne/03.5/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_5_209.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGauxiliaryFunctions.pl", @@ -50,11 +50,11 @@ $fppp = $fpp->D('x'); # Main text BEGIN_PGML - -Given [` \displaystyle y=[$f] `]. + +Given [` \displaystyle y=[$f] `]. -`\frac{d^3y}{dx^3}=`[__________________________]{$fppp} +`\frac{d^3y}{dx^3}=`[__________________________]{$fppp} END_PGML diff --git a/Contrib/CCCS/CalculusOne/03.5/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_5_212.pg b/Contrib/CCCS/CalculusOne/03.5/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_5_212.pg index b6aea7b82c..4078672358 100644 --- a/Contrib/CCCS/CalculusOne/03.5/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_5_212.pg +++ b/Contrib/CCCS/CalculusOne/03.5/CCD_CCCS_Openstax_Calculus_C1-2016-002_3_5_212.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGauxiliaryFunctions.pl", @@ -51,11 +51,11 @@ $fppp = $fpp->D('x'); # Main text BEGIN_PGML - + Given [` \displaystyle y=[$f] `], find `\frac{d^2y}{dx^2}`. -`\frac{d^2y}{dx^2}=`[____________________________________]{$fpp} [@ AnswerFormatHelp("formulas") @]* +`\frac{d^2y}{dx^2}=`[____________________________________]{$fpp} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_214.pg b/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_214.pg index 8229993ee6..d2e209ab73 100644 --- a/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_214.pg +++ b/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_214.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,7 +50,7 @@ BEGIN_PGML For [`\displaystyle y = [$polya]`] and [`\displaystyle u=[$polyb]`], find`frac{dy}{dx}` using Leibniz's notation for the chain rule: `\frac{dy}{dx}=\frac{dy}{du}\frac{du}{dx}`. -`\frac{dy}{dx}=`[_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +`\frac{dy}{dx}=`[_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_216.pg b/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_216.pg index f44d9043c8..845efd0520 100644 --- a/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_216.pg +++ b/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_216.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -49,7 +49,7 @@ BEGIN_PGML For [`y = [$thesin]`] and [`u=[$polya]`], find`frac{dy}{dx}` using Leibniz's notation for the chain rule: `\frac{dy}{dx}=\frac{dy}{du}\frac{du}{dx}`. -[`\frac{dy}{dx}=`][_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`\frac{dy}{dx}=`][_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_219.pg b/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_219.pg index ee1593c057..95c9843c4e 100644 --- a/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_219.pg +++ b/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_219.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,7 +51,7 @@ BEGIN_PGML For [`y = \sqrt{[$a] u-[$b]}`] and [`u=[$c] x^2+[$d] x`], find`frac{dy}{dx}` using Leibniz's notation for the chain rule: `\frac{dy}{dx}=\frac{dy}{du}\frac{du}{dx}`. -[`\frac{dy}{dx}=`][_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`\frac{dy}{dx}=`][_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_220.pg b/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_220.pg index 40ea76901b..40c5c1f4df 100644 --- a/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_220.pg +++ b/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_220.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGauxiliaryFunctions.pl", @@ -53,11 +53,11 @@ BEGIN_PGML Decompose [`\displaystyle y=[$f]`] into two functions [`y=f(u)`] and [`u=g(x)`] such that [`y=f(g(x))`]. Then find `\frac{dy}{dx}`. -[`f(u)=`][_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* +[`f(u)=`][_______________]{$ans1} [@ helpLink("formulas") @]* -[`g(x)=`][_______________]{$ans2} [@ AnswerFormatHelp("formulas") @]* +[`g(x)=`][_______________]{$ans2} [@ helpLink("formulas") @]* -`\frac{dy}{dx}=`[_______________]{$ans3} [@ AnswerFormatHelp("formulas") @]* +`\frac{dy}{dx}=`[_______________]{$ans3} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_221.pg b/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_221.pg index 0033752899..33c6ba5187 100644 --- a/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_221.pg +++ b/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_221.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGauxiliaryFunctions.pl", @@ -50,13 +50,13 @@ $ans3=Formula("$c*($quadpoly)^($c-1)*(2*$a x)")->reduce; ##I hope you get [`[$ans]`] BEGIN_PGML -Decompose [`\displaystyle y=[$f]`] into two functions [`y=f(u)`] and [`u=g(x)`] such that [`y=f(g(x))`]. Then find `\frac{dy}{dx}`. +Decompose [`\displaystyle y=[$f]`] into two functions [`y=f(u)`] and [`u=g(x)`] such that [`y=f(g(x))`]. Then find `\frac{dy}{dx}`. -[`f(u)=`][_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* +[`f(u)=`][_______________]{$ans1} [@ helpLink("formulas") @]* -[`g(x)=`][_______________]{$ans2} [@ AnswerFormatHelp("formulas") @]* +[`g(x)=`][_______________]{$ans2} [@ helpLink("formulas") @]* -`\frac{dy}{dx}=`[_______________]{$ans3} [@ AnswerFormatHelp("formulas") @]* +`\frac{dy}{dx}=`[_______________]{$ans3} [@ helpLink("formulas") @]* diff --git a/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_222.pg b/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_222.pg index cfea2ead00..bbdd6c360b 100644 --- a/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_222.pg +++ b/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_222.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,11 +51,11 @@ BEGIN_PGML Decompose [`\displaystyle y=[$f]`] into two functions [`y=f(u)`] and [`u=g(x)`] such that [`y=f(g(x))`]. Then find `\frac{dy}{dx}`. -[`f(u)=`][_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* +[`f(u)=`][_______________]{$ans1} [@ helpLink("formulas") @]* -[`g(x)=`][_______________]{$ans2} [@ AnswerFormatHelp("formulas") @]* +[`g(x)=`][_______________]{$ans2} [@ helpLink("formulas") @]* -`\frac{dy}{dx}=`[_______________]{$ans3} [@ AnswerFormatHelp("formulas") @]* +`\frac{dy}{dx}=`[_______________]{$ans3} [@ helpLink("formulas") @]* diff --git a/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_223.pg b/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_223.pg index e1f128df03..59c556647a 100644 --- a/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_223.pg +++ b/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_223.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -53,11 +53,11 @@ BEGIN_PGML Decompose [`\displaystyle y=[$f]`] into two functions [`y=f(u)`] and [`u=g(x)`] such that [`y=f(g(x))`]. Then find `\frac{dy}{dx}`. -[`f(u)=`][_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* +[`f(u)=`][_______________]{$ans1} [@ helpLink("formulas") @]* -[`g(x)=`][_______________]{$ans2} [@ AnswerFormatHelp("formulas") @]* +[`g(x)=`][_______________]{$ans2} [@ helpLink("formulas") @]* -`\frac{dy}{dx}=`[_______________]{$ans3} [@ AnswerFormatHelp("formulas") @]* +`\frac{dy}{dx}=`[_______________]{$ans3} [@ helpLink("formulas") @]* diff --git a/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_224.pg b/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_224.pg index e58d3ea29e..af0103560d 100644 --- a/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_224.pg +++ b/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_224.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerComposition.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -53,16 +53,16 @@ BEGIN_PGML Decompose [`\displaystyle y=[$f]`] into two functions [`y=f(u)`] and [`u=g(x)`] such that [`y=f(g(x))`]. Then find `\frac{dy}{dx}`. -[`f(u)=`][_______________] [@ AnswerFormatHelp("formulas") @]* +[`f(u)=`][_______________] [@ helpLink("formulas") @]* -[`g(x)=`][_______________] [@ AnswerFormatHelp("formulas") @]* +[`g(x)=`][_______________] [@ helpLink("formulas") @]* END_PGML COMPOSITION_ANS( $ans1, $ans2, vars=>['u','x'], showVariableHints=>1); BEGIN_PGML -`\frac{dy}{dx}=`[_______________]{$ans3} [@ AnswerFormatHelp("formulas") @]* +`\frac{dy}{dx}=`[_______________]{$ans3} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_225.pg b/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_225.pg index 6739dd790e..27c7dbf7a5 100644 --- a/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_225.pg +++ b/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_225.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,11 +51,11 @@ BEGIN_PGML Decompose [`\displaystyle y=[$f]`] into two functions [`y=f(u)`] and [`u=g(x)`] such that [`y=f(g(x))`]. Then find `\frac{dy}{dx}`. -[`f(u)=`][_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* +[`f(u)=`][_______________]{$ans1} [@ helpLink("formulas") @]* -[`g(x)=`][_______________]{$ans2} [@ AnswerFormatHelp("formulas") @]* +[`g(x)=`][_______________]{$ans2} [@ helpLink("formulas") @]* -`\frac{dy}{dx}=`[_______________]{$ans3} [@ AnswerFormatHelp("formulas") @]* +`\frac{dy}{dx}=`[_______________]{$ans3} [@ helpLink("formulas") @]* diff --git a/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_226.pg b/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_226.pg index 63877d1a0c..457afe0d47 100644 --- a/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_226.pg +++ b/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_226.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,11 +51,11 @@ BEGIN_PGML Decompose [`\displaystyle y=[$f]`] into two functions [`y=f(u)`] and [`u=g(x)`] such that [`y=f(g(x))`]. Then find `\frac{dy}{dx}`. -[`f(u)=`][_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* +[`f(u)=`][_______________]{$ans1} [@ helpLink("formulas") @]* -[`g(x)=`][_______________]{$ans2} [@ AnswerFormatHelp("formulas") @]* +[`g(x)=`][_______________]{$ans2} [@ helpLink("formulas") @]* -`\frac{dy}{dx}=`[_______________]{$ans3} [@ AnswerFormatHelp("formulas") @]* +`\frac{dy}{dx}=`[_______________]{$ans3} [@ helpLink("formulas") @]* diff --git a/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_227.pg b/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_227.pg index d813ed2647..623e90c514 100644 --- a/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_227.pg +++ b/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_227.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -52,11 +52,11 @@ BEGIN_PGML Decompose [`\displaystyle y=[$f]`] into two functions [`y=f(u)`] and [`u=g(x)`] such that [`y=f(g(x))`]. Then find `\frac{dy}{dx}`. -[`f(u)=`][_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* +[`f(u)=`][_______________]{$ans1} [@ helpLink("formulas") @]* -[`g(x)=`][_______________]{$ans2} [@ AnswerFormatHelp("formulas") @]* +[`g(x)=`][_______________]{$ans2} [@ helpLink("formulas") @]* -`\frac{dy}{dx}=`[_______________]{$ans3} [@ AnswerFormatHelp("formulas") @]* +`\frac{dy}{dx}=`[_______________]{$ans3} [@ helpLink("formulas") @]* diff --git a/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_228.pg b/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_228.pg index 5d2f8e2d5e..9f10f13f3d 100644 --- a/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_228.pg +++ b/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_228.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -56,7 +56,7 @@ BEGIN_PGML Find `\frac{dy}{dx}` if [`y=[$f]`]. -`\frac{dy}{dx}=`[_______________________________]{$ans3} [@ AnswerFormatHelp("formulas") @]* +`\frac{dy}{dx}=`[_______________________________]{$ans3} [@ helpLink("formulas") @]* diff --git a/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_229.pg b/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_229.pg index 1b9ab490ba..5eb1887646 100644 --- a/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_229.pg +++ b/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_229.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -54,7 +54,7 @@ BEGIN_PGML Find `\frac{dy}{dx}` if [`y=[$f]`]. -[`\frac{dy}{dx}=`][_______________]{$ans3} [@ AnswerFormatHelp("formulas") @]* +[`\frac{dy}{dx}=`][_______________]{$ans3} [@ helpLink("formulas") @]* diff --git a/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_232.pg b/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_232.pg index 75ac53e179..d6a4c7efcc 100644 --- a/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_232.pg +++ b/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_232.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -54,7 +54,7 @@ BEGIN_PGML Find [`\frac{dy}{dx}`] if [`y= [$f]`]. -[`\frac{dy}{dx}=`][___________________]{$ans3} [@ AnswerFormatHelp("formulas") @]* +[`\frac{dy}{dx}=`][___________________]{$ans3} [@ helpLink("formulas") @]* diff --git a/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_234.pg b/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_234.pg index 7e11814533..a4b51345d6 100644 --- a/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_234.pg +++ b/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_234.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -47,7 +47,7 @@ BEGIN_PGML Find `\frac{dy}{dx}` if [`y=[$f]`]. -`\frac{dy}{dx}=`[________________________________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +`\frac{dy}{dx}=`[________________________________________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_235.pg b/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_235.pg index 84ce869fa4..59bb577fe2 100644 --- a/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_235.pg +++ b/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_235.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -47,7 +47,7 @@ BEGIN_PGML Find `\frac{dy}{dx}` if [`y=[$f]`]. -[`\frac{dy}{dx}=`][___________________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`\frac{dy}{dx}=`][___________________________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_237.pg b/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_237.pg index ba0a47200e..7a16aeae82 100644 --- a/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_237.pg +++ b/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_237.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -45,9 +45,9 @@ $ans=Formula("-$a ($b) csc^2($b x+$c)cot^($a-1) ($b x+$c)"); BEGIN_PGML -Find `\frac{dy}{dx}` if [`y=[$f]`]. +Find `\frac{dy}{dx}` if [`y=[$f]`]. -`dy/dx=`[_________________________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +`dy/dx=`[_________________________________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_238.pg b/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_238.pg index f048e25ee3..418e59ecb0 100644 --- a/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_238.pg +++ b/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_238.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,7 +48,7 @@ BEGIN_PGML Let [`y = f(x)^[$a]`] and suppose that [`f'([$b])=[$c]`] and [`\frac{dy}{dx}`] is [$d] for [`x=[$b]`]. Find [`f([$b])`]. - [`f([$b])=`][_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* + [`f([$b])=`][_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_242.pg b/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_242.pg index 8d68adbf9a..8fe73b2690 100644 --- a/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_242.pg +++ b/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_242.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserAssignment.pl", @@ -57,7 +57,7 @@ BEGIN_PGML Find the equation of the tangent line to [`y = [$f]`] at [`([$c],[$d])`]. Remember to include 'y=' in your answer. -[_______________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[_______________________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_248.pg b/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_248.pg index 99be985c8b..e1f2c99aa2 100644 --- a/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_248.pg +++ b/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_248.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra, use substitution to reduce an equation to a quadratic form ## ENDDESCRIPTION - - + + ## DBsubject(Calculus - single variable) ## DBchapter(Differentiation) ## DBsection(Derivatives involving multiple rules (all rules)) @@ -11,97 +11,97 @@ ## Author(Eric Fleming) ## MO(1) ## KEYWORDS('chain rule', 'polynomial equations','substitution') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "niceTables.pl", ); - + TEXT(beginproblem()); $showPartialCorrectAnswers = 1; - + ########################### # Setup - + Context("Numeric"); Context()->variables->add(y => 'Real'); - - + + $a=random(0,3,1); - + $b=random(-5,5,1); $c=random(0,1,1); $d=random(-5,5,1); $e=random(-5,5,1); - + $f=random(-5,5,1); $g=random(-5,5,1); $h=random(-5,5,1); $i=random(-5,5,1); - + $j=non_zero_random(-5,5,1); $k=non_zero_random(-5,5,1); $l=non_zero_random(-5,5,1); $m=non_zero_random(-5,5,1); - + $n=random(1,5,1); $o=random(1,5,1); $p=random(1,5,1); $q=random(1,5,1); - + $z=random(2,5,1); - + $r=random(2,5,1); - + ##$polya=Formula("[$a] u-[$b]"); ##$polyb=Formula("[$c] x^[$d]")->reduce; - + if($a==0){ @ansarray1=( $b, $f, $j, $n) ; @ansarray2=( $j, $n) ; } - + elsif($a==1){ @ansarray1=( $c, $g, $k, $o ); @ansarray2=( $k, $o) ; } - + elsif($a==2){ @ansarray1=( $d, $h, $l, $p ); @ansarray2=( $l, $p) ; } - + else{ @ansarray1=( $e, $i, $m, $q ); @ansarray2=( $m, $q) ; } - - - + + + if ($c==0) {$a1=$p; } else{$a1=$q; } - - + + $ans1=$z*($ansarray1[0]/$ansarray1[2])**($z-1)*(($ansarray1[1]*$ansarray1[2]-$ansarray1[3]*$ansarray1[0])/($ansarray1[2])**2); $ans2=$r*(1+$ansarray1[2])**($r-1)*$ansarray1[3]; $ans3=$g*2*$a1; ########################### # Main text - + BEGIN_PGML - + Given that [`h(x)=\left(\frac{f(x)}{g(x)}\right)^[$z]`], `k(x)=(1+g(x))^[$r]`, and `r(x)=g(2+f(x^2))`, use the table below to determine [`h'([$a])`], [`k'([$a])`], and [`r'(1)`]. [@ LayoutTable( [ @@ -114,15 +114,15 @@ Given that [`h(x)=\left(\frac{f(x)}{g(x)}\right)^[$z]`], `k(x)=(1+g(x))^[$r]`, a midrules => 1, align => '|c|c|c|c|c|', )@]* - -[`h'([$a])=`][_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* - -[`k'([$a])=`][_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* - -[`r'(1)=`][_______________]{$ans3} [@ AnswerFormatHelp("numbers") @]* - - - + +[`h'([$a])=`][_______________]{$ans1} [@ helpLink("numbers") @]* + +[`k'([$a])=`][_______________]{$ans2} [@ helpLink("numbers") @]* + +[`r'(1)=`][_______________]{$ans3} [@ helpLink("numbers") @]* + + + END_PGML ########################### @@ -132,15 +132,15 @@ First use the chain rule and other differentiation rules to find [`h'(x), k'(x)` END_PGML_HINT ############################ - - + + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_254.pg b/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_254.pg index 1ef4051bee..4c1b4e3900 100644 --- a/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_254.pg +++ b/Contrib/CCCS/CalculusOne/03.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_6_254.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "niceTables.pl", @@ -52,9 +52,9 @@ BEGIN_PGML A mass hanging from a vertical spring is in simple harmonic motion as given by the following position function, where [`t`] is measured in seconds and [`s`] is in inches: [` \displaystyle s(t)=[$f]`]. Determine the position and the velocity of the spring at [`t=[$c]`] seconds. -The position at [`t=[$c]`] is [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +The position at [`t=[$c]`] is [_______________]{$ans1} [@ helpLink("numbers") @]* -The velocity at [`t=[$c]`] is [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +The velocity at [`t=[$c]`] is [_______________]{$ans2} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/03.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_7_264.pg b/Contrib/CCCS/CalculusOne/03.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_7_264.pg index 1b8c9f45d1..bb6d82e94f 100644 --- a/Contrib/CCCS/CalculusOne/03.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_7_264.pg +++ b/Contrib/CCCS/CalculusOne/03.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_7_264.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "niceTables.pl", @@ -53,18 +53,18 @@ BEGIN_PGML For [`\displaystyle y=[$f]`] find `frac{dy}{dx}` at `x=[$c]`, the inverse function `x=f^(-1)(y)`, and `frac{df^(-1)}{dy}` at `y=f([$c])`. -`frac{dy}{dx}` at `x=[$c]` is [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +`frac{dy}{dx}` at `x=[$c]` is [_______________]{$ans1} [@ helpLink("numbers") @]* -`x=f^(-1)(y)=` [_______________]{$ans2} [@ AnswerFormatHelp("formulas") @]* +`x=f^(-1)(y)=` [_______________]{$ans2} [@ helpLink("formulas") @]* -`frac{df^(-1)}{dy}` at `y=f([$c])` is [_______________]{$ans3} [@ AnswerFormatHelp("numbers") @]* +`frac{df^(-1)}{dy}` at `y=f([$c])` is [_______________]{$ans3} [@ helpLink("numbers") @]* END_PGML ########################### BEGIN_PGML_HINT -Let [`f(x)`] be a function that is both invertible and differentiable. If [`y=f^{-1}(x)`] is the inverse of [`f(x)`] then +Let [`f(x)`] be a function that is both invertible and differentiable. If [`y=f^{-1}(x)`] is the inverse of [`f(x)`] then [` \begin{aligned} diff --git a/Contrib/CCCS/CalculusOne/03.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_7_265.pg b/Contrib/CCCS/CalculusOne/03.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_7_265.pg index 9680073008..6bad52212a 100644 --- a/Contrib/CCCS/CalculusOne/03.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_7_265.pg +++ b/Contrib/CCCS/CalculusOne/03.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_7_265.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -67,11 +67,11 @@ BEGIN_PGML For [`\displaystyle f(x)=[$f]`] find `frac{df}{dx}` at `x=[$c]`, the inverse function `x=f^(-1)(y)`, and `frac{df^(-1)}{dy}` at `y=f([$c])`. -`frac{df}{dx}` at `x=[$c]` is [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +`frac{df}{dx}` at `x=[$c]` is [_______________]{$ans1} [@ helpLink("numbers") @]* -`x=f^(-1)(y)=` [_______________]{$ans2} [@ AnswerFormatHelp("formulas") @]* +`x=f^(-1)(y)=` [_______________]{$ans2} [@ helpLink("formulas") @]* -`frac{df^(-1)}{dy}` at `y=f([$c])` is [_______________]{$ans3} [@ AnswerFormatHelp("numbers") @]* +`frac{df^(-1)}{dy}` at `y=f([$c])` is [_______________]{$ans3} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/03.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_7_269.pg b/Contrib/CCCS/CalculusOne/03.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_7_269.pg index ed4152c8fb..bba4a4ad36 100644 --- a/Contrib/CCCS/CalculusOne/03.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_7_269.pg +++ b/Contrib/CCCS/CalculusOne/03.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_7_269.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "niceTables.pl", @@ -60,7 +60,7 @@ BEGIN_PGML For [`f(x)=[$f]`], find `(f^{-1})^\prime([$out])`. -`(f^{-1})^\prime([$out])=` [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +`(f^{-1})^\prime([$out])=` [_______________]{$ans1} [@ helpLink("numbers") @]* END_PGML @@ -68,7 +68,7 @@ END_PGML ########################### BEGIN_PGML_HINT -Let [`f(x)`] be a function that is both invertible and differentiable. If [`y=f^{-1}(x)`] is the inverse of [`f(x)`] then +Let [`f(x)`] be a function that is both invertible and differentiable. If [`y=f^{-1}(x)`] is the inverse of [`f(x)`] then [`\left(f^{-1}\right)'(x)=\frac{1}{f'(f^{-1}(x))}`] diff --git a/Contrib/CCCS/CalculusOne/03.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_7_270.pg b/Contrib/CCCS/CalculusOne/03.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_7_270.pg index d897674973..25c1f9d50c 100644 --- a/Contrib/CCCS/CalculusOne/03.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_7_270.pg +++ b/Contrib/CCCS/CalculusOne/03.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_7_270.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "niceTables.pl", @@ -57,7 +57,7 @@ BEGIN_PGML For [`f(x)=[$f]`], find `(f^{-1})^\prime([$out])`. -`(f^{-1})^\prime([$out])=` [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +`(f^{-1})^\prime([$out])=` [_______________]{$ans1} [@ helpLink("numbers") @]* END_PGML @@ -65,7 +65,7 @@ END_PGML ########################### BEGIN_PGML_HINT -Let [`f(x)`] be a function that is both invertible and differentiable. If [`y=f^{-1}(x)`] is the inverse of [`f(x)`] then +Let [`f(x)`] be a function that is both invertible and differentiable. If [`y=f^{-1}(x)`] is the inverse of [`f(x)`] then [`\left(f^{-1}\right)'(x)=\frac{1}{f'(f^{-1}(x))}`] diff --git a/Contrib/CCCS/CalculusOne/03.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_7_271.pg b/Contrib/CCCS/CalculusOne/03.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_7_271.pg index 7a25f578ad..124f6c6688 100644 --- a/Contrib/CCCS/CalculusOne/03.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_7_271.pg +++ b/Contrib/CCCS/CalculusOne/03.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_7_271.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "niceTables.pl", @@ -53,7 +53,7 @@ BEGIN_PGML For [`f(x)=[$f]`], `x<0`, find `(f^{-1})^\prime([$out])`. -`(f^{-1})^\prime([$out])=` [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +`(f^{-1})^\prime([$out])=` [_______________]{$ans1} [@ helpLink("numbers") @]* END_PGML @@ -61,7 +61,7 @@ END_PGML ########################### BEGIN_PGML_HINT -Let [`f(x)`] be a function that is both invertible and differentiable. If [`y=f^{-1}(x)`] is the inverse of [`f(x)`] then +Let [`f(x)`] be a function that is both invertible and differentiable. If [`y=f^{-1}(x)`] is the inverse of [`f(x)`] then [`\left(f^{-1}\right)'(x)=\frac{1}{f'(f^{-1}(x))}`] diff --git a/Contrib/CCCS/CalculusOne/03.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_7_272.pg b/Contrib/CCCS/CalculusOne/03.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_7_272.pg index d0330babfa..b0a6edc6c4 100644 --- a/Contrib/CCCS/CalculusOne/03.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_7_272.pg +++ b/Contrib/CCCS/CalculusOne/03.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_7_272.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "niceTables.pl", @@ -61,7 +61,7 @@ Consider the function [`f(x)=[$f]`] for [`-\frac{\pi}{2}\leq x\leq \frac{\pi}{2} Find `(f^{-1})^\prime([$b])`. -`(f^{-1})^\prime([$b])=` [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +`(f^{-1})^\prime([$b])=` [_______________]{$ans1} [@ helpLink("numbers") @]* END_PGML @@ -69,7 +69,7 @@ END_PGML ########################### BEGIN_PGML_HINT -Let [`f(x)`] be a function that is both invertible and differentiable. If [`y=f^{-1}(x)`] is the inverse of [`f(x)`] then +Let [`f(x)`] be a function that is both invertible and differentiable. If [`y=f^{-1}(x)`] is the inverse of [`f(x)`] then [`\left(f^{-1}\right)'(x)=\frac{1}{f'(f^{-1}(x))}`] diff --git a/Contrib/CCCS/CalculusOne/03.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_7_277.pg b/Contrib/CCCS/CalculusOne/03.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_7_277.pg index 11c5e4a8e2..0356e6a4aa 100644 --- a/Contrib/CCCS/CalculusOne/03.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_7_277.pg +++ b/Contrib/CCCS/CalculusOne/03.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_7_277.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "niceTables.pl", @@ -57,16 +57,16 @@ $ans2=Formula("y=$ans1(x-$y1)+$b"); BEGIN_PGML Consider the function [`f(x)=[$f]`] and the point `([$b],[$y1])` on the graph of [`f(x)`]. Find the slope of the tangent line to its inverse function `f^(-1)(x)` at the corresponding point and find the equation of the tangent line to `f^(-1)(x)` at the corresponding point. -The slope of the tangent line to its inverse function `f^(-1)(x)` is [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +The slope of the tangent line to its inverse function `f^(-1)(x)` is [_______________]{$ans1} [@ helpLink("numbers") @]* -The equation of the tangent line to the graph of `f^(-1)(x)` is [____________________]{$ans2} (remember to include `"y="` in your answer) [@ AnswerFormatHelp("equations") @]* +The equation of the tangent line to the graph of `f^(-1)(x)` is [____________________]{$ans2} (remember to include `"y="` in your answer) [@ helpLink("equations") @]* END_PGML ########################### BEGIN_PGML_HINT -* Let [`f(x)`] be a function that is both invertible and differentiable. If [`y=f^{-1}(x)`] is the inverse of [`f(x)`] then +* Let [`f(x)`] be a function that is both invertible and differentiable. If [`y=f^{-1}(x)`] is the inverse of [`f(x)`] then [`\hspace{1in} \left(f^{-1}\right)'(x)=\frac{1}{f'(f^{-1}(x))}`] diff --git a/Contrib/CCCS/CalculusOne/03.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_7_279.pg b/Contrib/CCCS/CalculusOne/03.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_7_279.pg index 889d6d5926..ccff4ad47b 100644 --- a/Contrib/CCCS/CalculusOne/03.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_7_279.pg +++ b/Contrib/CCCS/CalculusOne/03.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_7_279.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "niceTables.pl", @@ -48,7 +48,7 @@ BEGIN_PGML Find `frac{dy}{dx}` for [`y=[$f]`] -`frac{dy}{dx}=`[______________________]{$ans1} [@ AnswerFormatHelp("formulas") @]* +`frac{dy}{dx}=`[______________________]{$ans1} [@ helpLink("formulas") @]* diff --git a/Contrib/CCCS/CalculusOne/03.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_7_280.pg b/Contrib/CCCS/CalculusOne/03.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_7_280.pg index aa26e9f4e2..271ab11909 100644 --- a/Contrib/CCCS/CalculusOne/03.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_7_280.pg +++ b/Contrib/CCCS/CalculusOne/03.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_7_280.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "niceTables.pl", @@ -46,7 +46,7 @@ BEGIN_PGML Find `frac{dy}{dx}` for [`y=\cos^{-1}(x^{1/[$a]})`]. -`frac{dy}{dx}=`[_______________________]{$ans1} [@ AnswerFormatHelp("formulas") @]* +`frac{dy}{dx}=`[_______________________]{$ans1} [@ helpLink("formulas") @]* diff --git a/Contrib/CCCS/CalculusOne/03.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_7_281.pg b/Contrib/CCCS/CalculusOne/03.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_7_281.pg index 7bfa6ce043..d6e098c0cb 100644 --- a/Contrib/CCCS/CalculusOne/03.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_7_281.pg +++ b/Contrib/CCCS/CalculusOne/03.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_7_281.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra, use substitution to reduce an equation to a quadratic form ## ENDDESCRIPTION - - + + ## DBsubject(Calculus - single variable) ## DBchapter(Differentiation) ## DBsection(Derivatives of inverse trigonometric functions) @@ -11,58 +11,58 @@ ## Author(Eric Fleming) ## MO(1) ## KEYWORDS('inverse functions', 'derivative','inverse derivative','arcsec','sec','inverse secant') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "niceTables.pl", ); - + TEXT(beginproblem()); $showPartialCorrectAnswers = 1; - + ########################### # Setup - + Context("Numeric"); Context()->variables->add(t => 'Real'); - - + + $a=non_zero_random(-5,5,1); $b=non_zero_random(1,5,1); $f=Formula("sec^(-1)(($a)/(x**$b))")->reduce; - + $ans1=Formula("($a*$b*(-1))/(x**($b+1))/((abs(($a)/(x**$b)))sqrt((($a)/(x**$b))**2-1))")->reduce; ########################### # Main text - + BEGIN_PGML - + Find `frac{dy}{dx}` for [`y=[$f]`] - -`frac{dy}{dx}=`[_______________________________________________]{$ans1} [@ AnswerFormatHelp("formulas") @]* - - - + +`frac{dy}{dx}=`[_______________________________________________]{$ans1} [@ helpLink("formulas") @]* + + + END_PGML - - + + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/CalculusOne/03.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_7_283.pg b/Contrib/CCCS/CalculusOne/03.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_7_283.pg index 972eb42861..350f5b841f 100644 --- a/Contrib/CCCS/CalculusOne/03.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_7_283.pg +++ b/Contrib/CCCS/CalculusOne/03.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_7_283.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "niceTables.pl", @@ -53,7 +53,7 @@ BEGIN_PGML Find `frac{dy}{dx}` for [`y=[$f]`] -`frac{dy}{dx}=`[_______________________________________________]{$ans1} [@ AnswerFormatHelp("formulas") @]* +`frac{dy}{dx}=`[_______________________________________________]{$ans1} [@ helpLink("formulas") @]* diff --git a/Contrib/CCCS/CalculusOne/03.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_7_284.pg b/Contrib/CCCS/CalculusOne/03.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_7_284.pg index d33fbeb91e..153dd3e006 100644 --- a/Contrib/CCCS/CalculusOne/03.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_7_284.pg +++ b/Contrib/CCCS/CalculusOne/03.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_7_284.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "niceTables.pl", @@ -52,7 +52,7 @@ $ans1=$f1->with(limits=>[[-1/17,1/17]]); BEGIN_PGML Find `frac{dy}{dx}` for [`y=[$f]`] -`frac{dy}{dx}=`[________________________________________________________]{$ans1} [@ AnswerFormatHelp("formulas") @]* +`frac{dy}{dx}=`[________________________________________________________]{$ans1} [@ helpLink("formulas") @]* diff --git a/Contrib/CCCS/CalculusOne/03.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_7_288.pg b/Contrib/CCCS/CalculusOne/03.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_7_288.pg index fb07605f7a..1b920bf9b8 100644 --- a/Contrib/CCCS/CalculusOne/03.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_7_288.pg +++ b/Contrib/CCCS/CalculusOne/03.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_7_288.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "niceTables.pl", @@ -49,7 +49,7 @@ BEGIN_PGML Find `frac{dy}{dx}` for [`y=[$f]`] -`frac{dy}{dx}=`[_________________________________________]{$ans1} [@ AnswerFormatHelp("formulas") @]* +`frac{dy}{dx}=`[_________________________________________]{$ans1} [@ helpLink("formulas") @]* diff --git a/Contrib/CCCS/CalculusOne/03.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_7_296.pg b/Contrib/CCCS/CalculusOne/03.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_7_296.pg index 40441f5523..b04953dd9e 100644 --- a/Contrib/CCCS/CalculusOne/03.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_7_296.pg +++ b/Contrib/CCCS/CalculusOne/03.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_7_296.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "niceTables.pl", @@ -45,15 +45,15 @@ $ans1=(-1*$a)/($b**2+$a**2); BEGIN_PGML -A building that is [$a] feet tall casts a shadow of various lengths [`x`] as the day goes by. An angle of elevation [`\theta`] is formed by lines from the top and bottom of the building to the tip of the shadow, as seen in the following figure. Find the rate of change of the angle of elevation `frac{d \theta}{dx}` when `x=[$b]`. +A building that is [$a] feet tall casts a shadow of various lengths [`x`] as the day goes by. An angle of elevation [`\theta`] is formed by lines from the top and bottom of the building to the tip of the shadow, as seen in the following figure. Find the rate of change of the angle of elevation `frac{d \theta}{dx}` when `x=[$b]`. ->>[@ image("3.7.296.png", - width=>246, - height=>221, - extra_html_tags=>'alt="a picture of a building"') +>>[@ image("3.7.296.png", + width=>246, + height=>221, + extra_html_tags=>'alt="a picture of a building"') @]*<< -`frac{d \theta}{dx}` when `x=[$b]` is [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +`frac{d \theta}{dx}` when `x=[$b]` is [_______________]{$ans1} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/03.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_7_297.pg b/Contrib/CCCS/CalculusOne/03.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_7_297.pg index 6e76ceb048..3d6a7cc629 100644 --- a/Contrib/CCCS/CalculusOne/03.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_7_297.pg +++ b/Contrib/CCCS/CalculusOne/03.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_7_297.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "niceTables.pl", @@ -48,14 +48,14 @@ $ans1=(-1*$a/($b**2))/(sqrt(1-($a/$b)**2)); BEGIN_PGML -A pole stands [$a] feet tall. An angle [`\theta`] is formed when wires of various length [`x`] feet are attached from the ground to the top of the pole, as shown in the following figure. Find the rate of change of the angle `frac{d \theta}{dx}` when a wire of length `[$b]` feet is attached. ->>[@ image("3.7.297.png", - width=>211, - height=>249, - extra_html_tags=>'alt="a picture of a pole"') +A pole stands [$a] feet tall. An angle [`\theta`] is formed when wires of various length [`x`] feet are attached from the ground to the top of the pole, as shown in the following figure. Find the rate of change of the angle `frac{d \theta}{dx}` when a wire of length `[$b]` feet is attached. +>>[@ image("3.7.297.png", + width=>211, + height=>249, + extra_html_tags=>'alt="a picture of a pole"') @]*<< -`frac{d \theta}{dx}` when `x=[$b]` is [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +`frac{d \theta}{dx}` when `x=[$b]` is [_______________]{$ans1} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/03.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_8_300.pg b/Contrib/CCCS/CalculusOne/03.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_8_300.pg index f94739d27f..321786e2bf 100644 --- a/Contrib/CCCS/CalculusOne/03.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_8_300.pg +++ b/Contrib/CCCS/CalculusOne/03.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_8_300.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserAssignment.pl", @@ -50,7 +50,7 @@ BEGIN_PGML Use implicit differentiation to find `dy/dx` for `[$f]=[$a**2]` -`frac{dy}{dx}=` [_____________________]{$ans1} [@ AnswerFormatHelp("formulas") @]* +`frac{dy}{dx}=` [_____________________]{$ans1} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/03.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_8_301.pg b/Contrib/CCCS/CalculusOne/03.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_8_301.pg index 4d5f8d159a..98293bd5f2 100644 --- a/Contrib/CCCS/CalculusOne/03.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_8_301.pg +++ b/Contrib/CCCS/CalculusOne/03.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_8_301.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserAssignment.pl", @@ -53,7 +53,7 @@ BEGIN_PGML Use implicit differentiation to find `dy/dx` for [`\displaystyle [$f]=[$a**2]`] -`frac{dy}{dx}=`[_____________________]{$ans1} [@ AnswerFormatHelp("formulas") @]* +`frac{dy}{dx}=`[_____________________]{$ans1} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/03.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_8_302.pg b/Contrib/CCCS/CalculusOne/03.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_8_302.pg index fb92875ac4..6bcf9678cf 100644 --- a/Contrib/CCCS/CalculusOne/03.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_8_302.pg +++ b/Contrib/CCCS/CalculusOne/03.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_8_302.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserAssignment.pl", @@ -53,7 +53,7 @@ BEGIN_PGML Use implicit differentiation to find `dy/dx` for [`\displaystyle [$f]=y-[$c]`] -`frac{dy}{dx}=` [___________________________]{$ans1} [@ AnswerFormatHelp("formulas") @]* +`frac{dy}{dx}=` [___________________________]{$ans1} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/03.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_8_304.pg b/Contrib/CCCS/CalculusOne/03.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_8_304.pg index aa87266f46..cc18fc7a9e 100644 --- a/Contrib/CCCS/CalculusOne/03.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_8_304.pg +++ b/Contrib/CCCS/CalculusOne/03.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_8_304.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "niceTables.pl", @@ -56,7 +56,7 @@ BEGIN_PGML Use implicit differentiation to find `dy/dx` for [`\displaystyle [$f]=[$c]`] -`frac{dy}{dx}=` [________________________________________]{$ans1} [@ AnswerFormatHelp("formulas") @]* +`frac{dy}{dx}=` [________________________________________]{$ans1} [@ helpLink("formulas") @]* END_PGML ############################ diff --git a/Contrib/CCCS/CalculusOne/03.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_8_306.pg b/Contrib/CCCS/CalculusOne/03.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_8_306.pg index 7bfe44f7bd..255bc8f6e9 100644 --- a/Contrib/CCCS/CalculusOne/03.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_8_306.pg +++ b/Contrib/CCCS/CalculusOne/03.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_8_306.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "niceTables.pl", @@ -57,7 +57,7 @@ BEGIN_PGML Use implicit differentiation to find `dy/dx` for [`\displaystyle [$f]=[$g]`] -`frac{dy}{dx}=` [__________________________]{$ans1} [@ AnswerFormatHelp("formulas") @]* +`frac{dy}{dx}=` [__________________________]{$ans1} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/03.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_8_307.pg b/Contrib/CCCS/CalculusOne/03.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_8_307.pg index d9cd072475..2fb055c838 100644 --- a/Contrib/CCCS/CalculusOne/03.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_8_307.pg +++ b/Contrib/CCCS/CalculusOne/03.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_8_307.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "niceTables.pl", @@ -55,7 +55,7 @@ BEGIN_PGML Use implicit differentiation to find `dy/dx` for [`\displaystyle [$f]=[$g]`]. -`frac{dy}{dx}=` [______________________________________]{$ans1} [@ AnswerFormatHelp("formulas") @]* +`frac{dy}{dx}=` [______________________________________]{$ans1} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/03.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_8_308.pg b/Contrib/CCCS/CalculusOne/03.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_8_308.pg index 4888120625..a4dbf6c6cb 100644 --- a/Contrib/CCCS/CalculusOne/03.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_8_308.pg +++ b/Contrib/CCCS/CalculusOne/03.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_8_308.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "niceTables.pl", @@ -55,7 +55,7 @@ BEGIN_PGML Use implicit differentiation to find `dy/dx` for [`\displaystyle [$f]=[$g]`]. -`frac{dy}{dx}=` [__________________________________]{$ans1} [@ AnswerFormatHelp("formulas") @]* +`frac{dy}{dx}=` [__________________________________]{$ans1} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/03.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_8_309.pg b/Contrib/CCCS/CalculusOne/03.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_8_309.pg index 26d3320430..a360ccba4a 100644 --- a/Contrib/CCCS/CalculusOne/03.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_8_309.pg +++ b/Contrib/CCCS/CalculusOne/03.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_8_309.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "niceTables.pl", @@ -58,7 +58,7 @@ BEGIN_PGML Use implicit differentiation to find `dy/dx` for [`\displaystyle [$f]=[$c]`]. -`frac{dy}{dx}=` [__________________________________________]{$ans1} [@ AnswerFormatHelp("formulas") @]* +`frac{dy}{dx}=` [__________________________________________]{$ans1} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/03.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_8_310.pg b/Contrib/CCCS/CalculusOne/03.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_8_310.pg index 042f8a2be0..650043d078 100644 --- a/Contrib/CCCS/CalculusOne/03.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_8_310.pg +++ b/Contrib/CCCS/CalculusOne/03.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_8_310.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "niceTables.pl", @@ -63,7 +63,7 @@ BEGIN_PGML Find the equation of the tangent line to the graph of [`\displaystyle [$f]=[$feval]`] at `([$i],[$o])`. (Remember to include "y=" in your answer) -The equation of the tangent line is [____________________]{$ans1} [@ AnswerFormatHelp("formulas") @]* +The equation of the tangent line is [____________________]{$ans1} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/03.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_8_311.pg b/Contrib/CCCS/CalculusOne/03.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_8_311.pg index a8db9020ff..741dcb5c43 100644 --- a/Contrib/CCCS/CalculusOne/03.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_8_311.pg +++ b/Contrib/CCCS/CalculusOne/03.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_8_311.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "niceTables.pl", @@ -59,7 +59,7 @@ BEGIN_PGML Find the equation of the tangent line to the graph of [`\displaystyle [$f]=[$e]`] at `([$i],[$o])`. (Remember to include "y=" in your answer) -The equation of the tangent line is [_____________________]{$ans1} [@ AnswerFormatHelp("formulas") @]* +The equation of the tangent line is [_____________________]{$ans1} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/03.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_8_312.pg b/Contrib/CCCS/CalculusOne/03.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_8_312.pg index 08996b7839..bab4bc9afe 100644 --- a/Contrib/CCCS/CalculusOne/03.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_8_312.pg +++ b/Contrib/CCCS/CalculusOne/03.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_8_312.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserAssignment.pl", @@ -63,7 +63,7 @@ BEGIN_PGML Find the equation of the tangent line to the graph of [`\displaystyle [$a][$f]=[$a] y`] at `(pi/4,1)`. (Remember to include "y=" in your answer) -The equation of the tangent line is [_____________________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +The equation of the tangent line is [_____________________]{$ans1} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/03.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_8_320.pg b/Contrib/CCCS/CalculusOne/03.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_8_320.pg index f0882fc810..be68d04bf9 100644 --- a/Contrib/CCCS/CalculusOne/03.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_8_320.pg +++ b/Contrib/CCCS/CalculusOne/03.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_8_320.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserAssignment.pl", @@ -62,7 +62,7 @@ BEGIN_PGML Find the equation of the tangent line to the graph of the equation [`[$f]=\frac{\pi}{[$a]}`] at the point `([$i],[$o])`. (Remember to include "y=" in your answer) -The equation of the tangent line is [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +The equation of the tangent line is [_______________]{$ans1} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/03.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_8_322.pg b/Contrib/CCCS/CalculusOne/03.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_8_322.pg index e5c6fa9429..e7746217e7 100644 --- a/Contrib/CCCS/CalculusOne/03.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_8_322.pg +++ b/Contrib/CCCS/CalculusOne/03.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_8_322.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "niceTables.pl", @@ -64,9 +64,9 @@ BEGIN_PGML Find [`y'`] and [`y''`] for [`[$f]=[$e]`]. Simplify. -[`y'=`] [__________________________]{$ans1} [@ AnswerFormatHelp("formulas") @]* +[`y'=`] [__________________________]{$ans1} [@ helpLink("formulas") @]* -[`y''=`] [__________________________]{$ans2} [@ AnswerFormatHelp("formulas") @]* +[`y''=`] [__________________________]{$ans2} [@ helpLink("formulas") @]* END_PGML ############################ @@ -85,7 +85,7 @@ Example: Find [`y'`] and [`y''`] if [`x^2+y^2=8`]. `] Now we want to find [`y''`], and to do this we will take the derivative of [`y'= -x y^{-1}`] using the product rule within implicit differentiation. -[` +[` \begin{aligned} \frac{d}{dx}(y' & = -x y^{-1})\\ y'' & = -x(-y^{-2}\cdot y') + -1\cdot y^{-1} \\ diff --git a/Contrib/CCCS/CalculusOne/03.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_8_326.pg b/Contrib/CCCS/CalculusOne/03.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_8_326.pg index a8c39e04b0..43798438e1 100644 --- a/Contrib/CCCS/CalculusOne/03.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_8_326.pg +++ b/Contrib/CCCS/CalculusOne/03.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_8_326.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "niceTables.pl", @@ -56,9 +56,9 @@ BEGIN_PGML Consider a closed rectangular box with a square base with side length `x` and height `y`. Find the surface area formula, `S(x,y)`. If the surface area remains constant, then find `dy/dx` when [`x=[$a]`] and [`y=[$b]`]. -`S(x,y)=` [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* +`S(x,y)=` [_______________]{$ans1} [@ helpLink("formulas") @]* -If the surface area remains constant, then when [`x=[$a]`] and [`y=[$b]`], `dy/dx=`[________________]{$ans2}[@ AnswerFormatHelp("numbers") @]* +If the surface area remains constant, then when [`x=[$a]`] and [`y=[$b]`], `dy/dx=`[________________]{$ans2}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_331.pg b/Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_331.pg index c03f0afd2a..aaad8f4b28 100644 --- a/Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_331.pg +++ b/Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_331.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -54,7 +54,7 @@ BEGIN_PGML Find `f^\prime(x)` for [`f(x)=[$f]`]. -`f^\prime(x)=`[_______________________________]{$ans3} [@ AnswerFormatHelp("formulas") @]* +`f^\prime(x)=`[_______________________________]{$ans3} [@ helpLink("formulas") @]* @@ -62,7 +62,7 @@ END_PGML ############################ BEGIN_PGML_HINT -Example: +Example: If [`f(x) = 3x^2e^x`] diff --git a/Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_332.pg b/Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_332.pg index 9377f55733..e36ea473e5 100644 --- a/Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_332.pg +++ b/Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_332.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,7 +50,7 @@ BEGIN_PGML Find `f^\prime(x)` for [``f(x)=[$f]``]. -`f^\prime(x)=`[_______________________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +`f^\prime(x)=`[_______________________________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_333.pg b/Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_333.pg index 2aaf28e072..5353b012f2 100644 --- a/Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_333.pg +++ b/Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_333.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,7 +50,7 @@ BEGIN_PGML Find `f^\prime(x)` for [`` f(x)=e^{([$f])}``]. -`f^\prime(x)=`[_______________________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +`f^\prime(x)=`[_______________________________]{$ans} [@ helpLink("formulas") @]* diff --git a/Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_334.pg b/Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_334.pg index d85116aaba..f3168cbcdd 100644 --- a/Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_334.pg +++ b/Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_334.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,7 +50,7 @@ BEGIN_PGML Find `f^\prime(x)` for [`f(x)=[$f]`]. -`f^\prime(x)=`[_______________________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +`f^\prime(x)=`[_______________________________]{$ans} [@ helpLink("formulas") @]* diff --git a/Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_335.pg b/Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_335.pg index d48a15f93c..5bec6b3661 100644 --- a/Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_335.pg +++ b/Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_335.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -55,7 +55,7 @@ BEGIN_PGML Find `f^\prime(x)` for [``f(x)=[$f]``]. -`f^\prime(x)=`[_________________________________]{$ans3} [@ AnswerFormatHelp("formulas") @]* +`f^\prime(x)=`[_________________________________]{$ans3} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_336.pg b/Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_336.pg index 10fa912405..5229735139 100644 --- a/Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_336.pg +++ b/Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_336.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -49,7 +49,7 @@ BEGIN_PGML Find `f^\prime(x)` for [``f(x)=\frac{[$f]}{\ln([$a])}``]. -`f^\prime(x)=`[________________________]{$ans3} [@ AnswerFormatHelp("formulas") @]* +`f^\prime(x)=`[________________________]{$ans3} [@ helpLink("formulas") @]* diff --git a/Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_337.pg b/Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_337.pg index f9c5f43446..37e286ebc6 100644 --- a/Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_337.pg +++ b/Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_337.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -53,7 +53,7 @@ BEGIN_PGML Find `f^\prime(x)` for [`f(x)=[$f]`]. -`f^\prime(x)=`[_______________________________]{$ans3} [@ AnswerFormatHelp("formulas") @]* +`f^\prime(x)=`[_______________________________]{$ans3} [@ helpLink("formulas") @]* diff --git a/Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_338.pg b/Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_338.pg index 93f6a4f975..e78b067992 100644 --- a/Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_338.pg +++ b/Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_338.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -54,7 +54,7 @@ BEGIN_PGML Find `f^\prime(x)` for [``f(x)=[$f]``]. -`f^\prime(x)=`[_______________________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +`f^\prime(x)=`[_______________________________]{$ans} [@ helpLink("formulas") @]* diff --git a/Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_339.pg b/Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_339.pg index 8fb85282e8..24f5a1f471 100644 --- a/Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_339.pg +++ b/Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_339.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -49,7 +49,7 @@ BEGIN_PGML Find `f^\prime(x)` for [`f(x)=[$f]`]. -`f^\prime(x)=`[_______________________________]{$ans3} [@ AnswerFormatHelp("formulas") @]* +`f^\prime(x)=`[_______________________________]{$ans3} [@ helpLink("formulas") @]* diff --git a/Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_340.pg b/Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_340.pg index ba48da1091..eb31776bb5 100644 --- a/Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_340.pg +++ b/Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_340.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -54,7 +54,7 @@ BEGIN_PGML Find `f^\prime(x)` for [`\displaystyle f(x)=[$f]`]. -`f^\prime(x)=`[_______________________________]{$ans3} [@ AnswerFormatHelp("formulas") @]* +`f^\prime(x)=`[_______________________________]{$ans3} [@ helpLink("formulas") @]* @@ -62,7 +62,7 @@ END_PGML ############################ BEGIN_PGML_HINT -[`\frac{d}{dx}(\ln(x)) = \frac{1}{x}`] +[`\frac{d}{dx}(\ln(x)) = \frac{1}{x}`] or, more generally: [`\frac{d}{dx}(\ln(g(x))) = \frac{1}{g(x)}\cdot g'(x)`] (chain rule) diff --git a/Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_342.pg b/Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_342.pg index 8f2c1b1287..ad81da63a7 100644 --- a/Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_342.pg +++ b/Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_342.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,7 +51,7 @@ BEGIN_PGML Find `f^\prime(x)` for [``f(x)=[$f]``]. -`f^\prime(x)=`[_______________________________]{$ans3} [@ AnswerFormatHelp("formulas") @]* +`f^\prime(x)=`[_______________________________]{$ans3} [@ helpLink("formulas") @]* diff --git a/Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_344.pg b/Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_344.pg index 66bbcb3e02..6dda0aaa0d 100644 --- a/Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_344.pg +++ b/Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_344.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,7 +50,7 @@ BEGIN_PGML Find `f^\prime(x)` for [``f(x)=\log_{[$a]}\left(\left([$f]\right)^[$e]\right)``]. -`f^\prime(x)=`[_______________________________]{$ans3} [@ AnswerFormatHelp("formulas") @]* +`f^\prime(x)=`[_______________________________]{$ans3} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_345.pg b/Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_345.pg index 04d353b238..60b968676d 100644 --- a/Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_345.pg +++ b/Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_345.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -52,7 +52,7 @@ BEGIN_PGML Find `f^\prime(x)` for [``f(x)=[$g] \cdot \log_{[$b]}([$f])``]. -`f^\prime(x)=`[_______________________________]{$ans3} [@ AnswerFormatHelp("formulas") @]* +`f^\prime(x)=`[_______________________________]{$ans3} [@ helpLink("formulas") @]* 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)}``]. diff --git a/Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_346.pg b/Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_346.pg index 51f393cb89..3bd7d1aaa4 100644 --- a/Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_346.pg +++ b/Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_346.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,7 +50,7 @@ BEGIN_PGML Use logrithmic differentiation to find `\frac{dy}{dx}` for [``y=[$f]``]. -`\frac{dy}{dx}=`[_______________________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +`\frac{dy}{dx}=`[_______________________________]{$ans} [@ helpLink("formulas") @]* diff --git a/Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_347.pg b/Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_347.pg index 1c91dd89a4..1fb9a78546 100644 --- a/Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_347.pg +++ b/Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_347.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,7 +51,7 @@ BEGIN_PGML Use logrithmic differentiation to find `\frac{dy}{dx}` for [`y=[$f]`]. -`\frac{dy}{dx}=`[_______________________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +`\frac{dy}{dx}=`[_______________________________]{$ans} [@ helpLink("formulas") @]* diff --git a/Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_350.pg b/Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_350.pg index 8a3a698b62..ca03f218f5 100644 --- a/Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_350.pg +++ b/Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_350.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -41,7 +41,7 @@ if($a<0){Context()->variables->set(x=>{limits=>[0.1,0.9]});} elsif($a>0){Context()->variables->set(x=>{limits=>[1.1,10]});} $f=Formula("(x^$a-1)^(ln (x))"); - + $ans=Formula("(x^$a-1)^ln(x)(ln(x^$a-1)/x+ln(x)($a*x^($a-1)/(x^$a-1)))")->reduce; ########################### @@ -50,7 +50,7 @@ BEGIN_PGML Use logarithmic differentiation to find `\frac{dy}{dx}` for [``y=[$f]``]. -`\frac{dy}{dx}=`[________________________________________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +`\frac{dy}{dx}=`[________________________________________________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_352.pg b/Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_352.pg index e9f0135118..dcc6bbe74a 100644 --- a/Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_352.pg +++ b/Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_352.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,7 +51,7 @@ BEGIN_PGML Use logrithmic differentiation to find `\frac{dy}{dx}` for [``y=\frac{[$f]}{([$g])^{\frac{1}{[$d]}}}``]. -`\frac{dy}{dx}=`[________________________________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +`\frac{dy}{dx}=`[________________________________________]{$ans} [@ helpLink("formulas") @]* diff --git a/Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_353.pg b/Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_353.pg index f9e50bebf9..e6a66764dc 100644 --- a/Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_353.pg +++ b/Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_353.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -55,7 +55,7 @@ $exp3 = Compute("$h"); Context()->noreduce('(-x)-y','(-x)+y', 'x^(-a)'); $fun = Formula("x**{$exp1}*(x**$b+$c)**{$exp2}*($f*x+$g)**$h")->reduce; $ans=Formula("(1/($a*x)+($exp2*$b*x**($b-1))/(x**$b+$c)+($h*$f)/($f*x+$g))*x**{$exp1}*(x**$b+$c)**{$exp2}*($f*x+$g)**$h")->reduce->with(limits=>[9,10]); - + ########################### # Main text @@ -64,7 +64,7 @@ BEGIN_PGML Use logarithmic differentiation to find `\frac{dy}{dx}` for [`\displaystyle y= [$fun]`]. -`\frac{dy}{dx}=`[______________________________________________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +`\frac{dy}{dx}=`[______________________________________________________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_356.pg b/Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_356.pg index 4564fd6686..ffc2183810 100644 --- a/Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_356.pg +++ b/Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_356.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -60,7 +60,7 @@ BEGIN_PGML Find the equation of the line tangent to the graph of [`\displaystyle [$f]=[$linearpoly]`] at the point `([$a],1)`. -`y=`[_______________________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +`y=`[_______________________________]{$ans} [@ helpLink("formulas") @]* diff --git a/Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_357.pg b/Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_357.pg index 964103b120..64d5a2a92a 100644 --- a/Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_357.pg +++ b/Contrib/CCCS/CalculusOne/03.9/CCD_CCCS_Openstax_Calc1_C1-2016-002_3_9_357.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -53,11 +53,11 @@ BEGIN_PGML For [``y=x^{[$a]/x}``], find the point(s) where the tangent line is horizontal and determine where `y^\prime>0` and `y^\prime<0`. -The tangent line is horizontal at the point [____________]{$ans1} [@ AnswerFormatHelp("points") @]* +The tangent line is horizontal at the point [____________]{$ans1} [@ helpLink("points") @]* -`y^\prime<0` on [_______________________________]{$ans2} [@ AnswerFormatHelp("intervals") @]* +`y^\prime<0` on [_______________________________]{$ans2} [@ helpLink("intervals") @]* -`y^\prime>0` on [_______________________________]{$ans3} [@AnswerFormatHelp("intervals") @]* +`y^\prime>0` on [_______________________________]{$ans3} [@helpLink("intervals") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/04.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_1_11.pg b/Contrib/CCCS/CalculusOne/04.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_1_11.pg index 403acd16f4..a1362f6a5c 100644 --- a/Contrib/CCCS/CalculusOne/04.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_1_11.pg +++ b/Contrib/CCCS/CalculusOne/04.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_1_11.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -49,14 +49,14 @@ BEGIN_PGML A [$a] foot tall person walks away from a [$b] foot tall lamppost at a constant rate of [$c] feet per second. -(a) What is the rate that the tip of the shadow moves away from the person when the person is [$d] feet away from the pole? ``[_______________________________]{$ansperson} ft/sec [@ AnswerFormatHelp("numbers") @]* +(a) What is the rate that the tip of the shadow moves away from the person when the person is [$d] feet away from the pole? ``[_______________________________]{$ansperson} ft/sec [@ helpLink("numbers") @]* -(b) What is the rate that the tip of the shadow moves away from the lamppost when the person is [$d] feet away from the pole? ``[_______________________________]{$anspost} ft/sec [@ AnswerFormatHelp("numbers") @]* +(b) What is the rate that the tip of the shadow moves away from the lamppost when the person is [$d] feet away from the pole? ``[_______________________________]{$anspost} ft/sec [@ helpLink("numbers") @]* ->>[@ image("4.1.11.png", - width=>461, - height=>255, - extra_html_tags=>'alt="a picture of a person walking away from a lamppost"') +>>[@ image("4.1.11.png", + width=>461, + height=>255, + extra_html_tags=>'alt="a picture of a person walking away from a lamppost"') @]*<< diff --git a/Contrib/CCCS/CalculusOne/04.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_1_14.pg b/Contrib/CCCS/CalculusOne/04.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_1_14.pg index d9c9a0686b..90ba7767c9 100644 --- a/Contrib/CCCS/CalculusOne/04.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_1_14.pg +++ b/Contrib/CCCS/CalculusOne/04.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_1_14.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,7 +48,7 @@ BEGIN_PGML A helicopter starting on the ground is rising directly into the air at a rate of [$a] feet per second. You are running on the ground starting directly under the helicopter at a rate of [$b] feet per second. Find the rate of change of the distance between the helicopter and yourself after [$c] seconds. -``[_______________________________]{$ans} ft/sec [@ AnswerFormatHelp("numbers") @]* +``[_______________________________]{$ans} ft/sec [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CalculusOne/04.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_1_15.pg b/Contrib/CCCS/CalculusOne/04.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_1_15.pg index a3c6bdab4c..85ec34684a 100644 --- a/Contrib/CCCS/CalculusOne/04.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_1_15.pg +++ b/Contrib/CCCS/CalculusOne/04.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_1_15.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -56,7 +56,7 @@ BEGIN_PGML A helicopter starting on the ground is rising directly into the air at a rate of [$a] feet per second. You are running on the ground starting directly under the helicopter at a rate of [$b] feet per second. Find the rate of change of the distance between the helicopter and yourself when the helicopter has risen to a height of [$c] feet in the air, assuming that, initially, it was [$d] feet above you? -``[_______________________________]{$ans} ft/sec [@ AnswerFormatHelp("numbers") @]* +``[_______________________________]{$ans} ft/sec [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CalculusOne/04.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_1_17.pg b/Contrib/CCCS/CalculusOne/04.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_1_17.pg index 7b51ffc185..bad492d0df 100644 --- a/Contrib/CCCS/CalculusOne/04.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_1_17.pg +++ b/Contrib/CCCS/CalculusOne/04.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_1_17.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,7 +51,7 @@ BEGIN_PGML The volume of a cube decreases at a rate of [$a] meters[`^3`] per second. Find the rate at which the side of the cube changes when the side of the cube is [$b] meters. -``[_______________________________]{$ans} m/sec [@ AnswerFormatHelp("numbers") @]* +``[_______________________________]{$ans} m/sec [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CalculusOne/04.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_1_19.pg b/Contrib/CCCS/CalculusOne/04.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_1_19.pg index 836de7176d..33d7e20a28 100644 --- a/Contrib/CCCS/CalculusOne/04.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_1_19.pg +++ b/Contrib/CCCS/CalculusOne/04.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_1_19.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -47,7 +47,7 @@ BEGIN_PGML The radius of a sphere decreases at a rate of [$a] meters per second. Find the rate at which the surface area changes when the radius is [$b] m. -``[_______________________________]{$ans} [`m^2`]/sec [@ AnswerFormatHelp("numbers") @]* +``[_______________________________]{$ans} [`m^2`]/sec [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CalculusOne/04.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_1_21.pg b/Contrib/CCCS/CalculusOne/04.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_1_21.pg index 3a2cb3cdce..eab8be7315 100644 --- a/Contrib/CCCS/CalculusOne/04.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_1_21.pg +++ b/Contrib/CCCS/CalculusOne/04.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_1_21.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -46,7 +46,7 @@ BEGIN_PGML The radius of a sphere increases at a rate of [$a] centimeters per second. Find the radius of the sphere when the volume and the radius are increasing at the same numerical rate. -The radius is [_______________________________]{$ans} cm. [@ AnswerFormatHelp("numbers") @]* +The radius is [_______________________________]{$ans} cm. [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/04.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_1_23.pg b/Contrib/CCCS/CalculusOne/04.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_1_23.pg index 04b763e004..ef495df12f 100644 --- a/Contrib/CCCS/CalculusOne/04.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_1_23.pg +++ b/Contrib/CCCS/CalculusOne/04.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_1_23.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -49,7 +49,7 @@ BEGIN_PGML A triangle has two constant sides of length [$a] feet and [$b] feet. The angle between these two sides is increasing at a rate of [$c] radians per second. Find the rate at which the area of the triangle is changing when the angle between the two sides is `frac{pi}{[$d]}`. -``[_______________________________]{$ans} `ft^2`/sec [@ AnswerFormatHelp("numbers") @]* +``[_______________________________]{$ans} `ft^2`/sec [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CalculusOne/04.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_1_25.pg b/Contrib/CCCS/CalculusOne/04.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_1_25.pg index 70642e14bd..0b21e1113e 100644 --- a/Contrib/CCCS/CalculusOne/04.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_1_25.pg +++ b/Contrib/CCCS/CalculusOne/04.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_1_25.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -52,7 +52,7 @@ BEGIN_PGML A right conical tank with the point oriented down, a height of [$a] feet, and a radius of [$b] feet has sprung a leak. How fast does the depth of water change when the water is [$c] feet high if the cone leaks water at a rate of [$d] cubic feet per minute? -``[_______________________________]{$ans} ft/min [@ AnswerFormatHelp("numbers") @]* +``[_______________________________]{$ans} ft/min [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CalculusOne/04.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_1_27.pg b/Contrib/CCCS/CalculusOne/04.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_1_27.pg index 12905f766e..0d45dc20ec 100644 --- a/Contrib/CCCS/CalculusOne/04.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_1_27.pg +++ b/Contrib/CCCS/CalculusOne/04.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_1_27.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,7 +50,7 @@ BEGIN_PGML A right conical tank with the point oriented down, a height of [$a] feet, and a radius of [$b] feet has sprung a leak. How fast is the volume of water in the tank changing when the water is [$c] feet high and the water level changes at a rate of [$d] inches per minute? -``[_______________________________]{$ans} [`ft^3`]/min [@ AnswerFormatHelp("numbers") @]* +``[_______________________________]{$ans} [`ft^3`]/min [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CalculusOne/04.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_1_29.pg b/Contrib/CCCS/CalculusOne/04.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_1_29.pg index 56c3112eb8..c454c33d00 100644 --- a/Contrib/CCCS/CalculusOne/04.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_1_29.pg +++ b/Contrib/CCCS/CalculusOne/04.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_1_29.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -49,7 +49,7 @@ $ans=-1*pi*($b**2*$c/100); BEGIN_PGML A cylinder is leaking water at an unknown rate. The cylinder has a height of [$a] meters and a radius of [$b] meters. Find the rate at which the volume of water in the tank is changing if the rate at which the height is decreasing is [$c] centimeters per minute when the height is [$d] meters. -``[_______________________________]{$ans} [`m^3`]/min [@ AnswerFormatHelp("formulas") @]* +``[_______________________________]{$ans} [`m^3`]/min [@ helpLink("formulas") @]* diff --git a/Contrib/CCCS/CalculusOne/04.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_1_3.pg b/Contrib/CCCS/CalculusOne/04.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_1_3.pg index f72876482f..a362e88b9d 100644 --- a/Contrib/CCCS/CalculusOne/04.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_1_3.pg +++ b/Contrib/CCCS/CalculusOne/04.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_1_3.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -53,7 +53,7 @@ BEGIN_PGML Find `\frac{dz}{dt}` at [`(x,y)=([$a],[$b])`] for [`[$f]=[$g]`] if [`\frac{dx}{dt}=[$c]`], [`\frac{dy}{dt}=[$d]`], and `z>0`. -`\frac{dz}{dt}=`[_______________________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +`\frac{dz}{dt}=`[_______________________________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CalculusOne/04.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_1_30.pg b/Contrib/CCCS/CalculusOne/04.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_1_30.pg index 7ff291ad93..6625546918 100644 --- a/Contrib/CCCS/CalculusOne/04.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_1_30.pg +++ b/Contrib/CCCS/CalculusOne/04.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_1_30.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -55,13 +55,13 @@ BEGIN_PGML A trough has ends shaped like isosceles triangles, with width of `w=[$a]` meters and height `h=[$b]` meters, and the trough is `L=[$c]` meters long. Water is being pumped into the trough at a rate of [$d] cubic meters per minute. At what rate does the height of the water change when the water is [$e] meters deep? ->>[@ image("4.1.30.png", - width=>465, - height=>275, - extra_html_tags=>'alt="a picture of a triangular trough"') +>>[@ image("4.1.30.png", + width=>465, + height=>275, + extra_html_tags=>'alt="a picture of a triangular trough"') @]*<< -``[_______________________________]{$ans} m/min. [@ AnswerFormatHelp("numbers") @]* +``[_______________________________]{$ans} m/min. [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CalculusOne/04.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_1_33.pg b/Contrib/CCCS/CalculusOne/04.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_1_33.pg index b3690cbac2..aa75ecde43 100644 --- a/Contrib/CCCS/CalculusOne/04.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_1_33.pg +++ b/Contrib/CCCS/CalculusOne/04.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_1_33.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -52,7 +52,7 @@ BEGIN_PGML A pool shaped like the bottom half of a sphere is being filled at a rate of [$a] cubic feet per minute. The radius of the pool is [$b] feet. Find the rate at which the depth of water is changing when the water has a depth of [$c] feet. (Hint: The volume for the cap of a sphere is [`V=\frac{1}{3}\pi h^2(3R-h)`] where [`R`] is the radius of the sphere and [`h`] is the depth of the cap.) -``[_______________________________]{$ans} ft/min [@ AnswerFormatHelp("numbers") @]* +``[_______________________________]{$ans} ft/min [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CalculusOne/04.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_1_35.pg b/Contrib/CCCS/CalculusOne/04.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_1_35.pg index 98f328a0fe..2cccac3629 100644 --- a/Contrib/CCCS/CalculusOne/04.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_1_35.pg +++ b/Contrib/CCCS/CalculusOne/04.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_1_35.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,7 +48,7 @@ BEGIN_PGML Gravel is being unloaded from a truck and falls into a pile shaped like a cone at a rate of [$a] cubic feet per minute. The radius of the cone base is [$b] times the height of the cone. Find the rate at which the height of the gravel changes when the pile has a height of [$c] feet. -[_______________________________]{$ans} ft/min. [@ AnswerFormatHelp("numbers") @]* +[_______________________________]{$ans} ft/min. [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CalculusOne/04.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_1_37.pg b/Contrib/CCCS/CalculusOne/04.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_1_37.pg index 7e95ce47e0..992b0271c8 100644 --- a/Contrib/CCCS/CalculusOne/04.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_1_37.pg +++ b/Contrib/CCCS/CalculusOne/04.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_1_37.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,7 +50,7 @@ BEGIN_PGML You are stationary on the ground and are watching a bird fly by horizontally at a rate of [$a] m/sec. The bird is located [$b] m above your head. How fast does the angle of elevation change when the horizontal distance between you and the bird is [$c]m? -[_______________________________]{$ans} rad/sec [@ AnswerFormatHelp("numbers") @]* +[_______________________________]{$ans} rad/sec [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CalculusOne/04.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_1_43.pg b/Contrib/CCCS/CalculusOne/04.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_1_43.pg index fdd398a6bf..a551eeb941 100644 --- a/Contrib/CCCS/CalculusOne/04.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_1_43.pg +++ b/Contrib/CCCS/CalculusOne/04.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_1_43.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -54,13 +54,13 @@ BEGIN_PGML A batter hits a ball toward second base at [$a] ft/sec and runs toward first base at a rate of [$b] ft/sec. At what rate does the distance between the ball and the batter change when the batter has run [$c] feet? (Hint: recall, the law of cosines.) ->>[@ image("4.1.43-45.png", - width=>389, - height=>378, - extra_html_tags=>'alt="a picture of baseball diamond"') +>>[@ image("4.1.43-45.png", + width=>389, + height=>378, + extra_html_tags=>'alt="a picture of baseball diamond"') @]*<< -``[_______________________________]{$ans} ft/sec [@ AnswerFormatHelp("numbers") @]* +``[_______________________________]{$ans} ft/sec [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CalculusOne/04.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_1_45.pg b/Contrib/CCCS/CalculusOne/04.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_1_45.pg index 8cea473fe2..aaff25fad2 100644 --- a/Contrib/CCCS/CalculusOne/04.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_1_45.pg +++ b/Contrib/CCCS/CalculusOne/04.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_1_45.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,15 +48,15 @@ $ans=($b**2-90*$a+$a**2)/sqrt($b**2+(90-$a)**2); BEGIN_PGML -Runners start at first and second base, which are 90ft apart. When the ball is hit, the runner at first base runs at a speed of [$a] ft/sec toward second base and the runner at second base runs at a speed of [$b] ft/sec toward third base how fast is the distance between the runners changing one second after the ball is hit? +Runners start at first and second base, which are 90ft apart. When the ball is hit, the runner at first base runs at a speed of [$a] ft/sec toward second base and the runner at second base runs at a speed of [$b] ft/sec toward third base how fast is the distance between the runners changing one second after the ball is hit? ->>[@ image("4.1.43-45.png", - width=>389, - height=>378, - extra_html_tags=>'alt="a picture of baseball diamond"') +>>[@ image("4.1.43-45.png", + width=>389, + height=>378, + extra_html_tags=>'alt="a picture of baseball diamond"') @]*<< -``[_______________________________]{$ans} ft/sec [@ AnswerFormatHelp("formulas") @]* +``[_______________________________]{$ans} ft/sec [@ helpLink("formulas") @]* diff --git a/Contrib/CCCS/CalculusOne/04.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_1_5.pg b/Contrib/CCCS/CalculusOne/04.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_1_5.pg index f5312d5be3..4f09a0dccb 100644 --- a/Contrib/CCCS/CalculusOne/04.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_1_5.pg +++ b/Contrib/CCCS/CalculusOne/04.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_1_5.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -53,13 +53,13 @@ BEGIN_PGML A `[$a]` foot ladder is leaning against a wall. If the top of the ladder slides down the wall at a rate of `[$b]` feet per second, how fast is the bottom moving along the ground when the bottom of the ladder is `[$c]` feet from the wall? ->>[@ image("4.1.5.png", - width=>461, - height=>435, - extra_html_tags=>'alt="a picture of a ladder against a wall"') +>>[@ image("4.1.5.png", + width=>461, + height=>435, + extra_html_tags=>'alt="a picture of a ladder against a wall"') @]*<< -``[_______________________________]{$ans} ft/sec [@ AnswerFormatHelp("numbers") @]* +``[_______________________________]{$ans} ft/sec [@ helpLink("numbers") @]* @@ -77,7 +77,7 @@ Some good steps to follow for related rate problems: For this particular ladder problem: -Label the sides that have changing lengths with variables, say `x` and `y`. Then use Pythagorean theorem to relate the rates. +Label the sides that have changing lengths with variables, say `x` and `y`. Then use Pythagorean theorem to relate the rates. [`x^2+y^2 = [$a$]^2`] diff --git a/Contrib/CCCS/CalculusOne/04.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_1_7.pg b/Contrib/CCCS/CalculusOne/04.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_1_7.pg index c73bca9f4d..b49712530f 100644 --- a/Contrib/CCCS/CalculusOne/04.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_1_7.pg +++ b/Contrib/CCCS/CalculusOne/04.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_1_7.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -52,7 +52,7 @@ BEGIN_PGML Two airplanes are flying in the air at the same height. Airplane A is flying east at [$a] mi/h and airplane B is flying north at [$b] mi/h. If they are both heading to the same airport, located [$c] miles east of airplane A and [$d] miles north of airplane B, at what rate is the distance between the airplanes changing? -``[_______________________________]{$ans} mph [@ AnswerFormatHelp("numbers") @]* +``[_______________________________]{$ans} mph [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CalculusOne/04.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_1_9.pg b/Contrib/CCCS/CalculusOne/04.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_1_9.pg index 44300bbc74..c6224e367d 100644 --- a/Contrib/CCCS/CalculusOne/04.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_1_9.pg +++ b/Contrib/CCCS/CalculusOne/04.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_1_9.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -49,13 +49,13 @@ BEGIN_PGML Two buses are driving in opposite directions along parallel freeways that are [`d =[$a]`] miles apart. Assuming that each bus drives at a constant [$b] miles per hour, find the rate at which the distance between the buses is changing when the distance between them is [`z =[$c]`] miles, heading toward each other. ->>[@ image("4.1.4.png", - width=>461, - height=>255, - extra_html_tags=>'alt="a picture showing the movement of the buses"') +>>[@ image("4.1.4.png", + width=>461, + height=>255, + extra_html_tags=>'alt="a picture showing the movement of the buses"') @]*<< -``[_______________________________]{$ans} mph [@ AnswerFormatHelp("numbers") @]* +``[_______________________________]{$ans} mph [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CalculusOne/04.10/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_10_470.pg b/Contrib/CCCS/CalculusOne/04.10/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_10_470.pg index 8bd43d5eba..ec222dfda6 100644 --- a/Contrib/CCCS/CalculusOne/04.10/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_10_470.pg +++ b/Contrib/CCCS/CalculusOne/04.10/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_10_470.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -51,11 +51,11 @@ $ans=$F->cmp->withPostFilter(sub { # Main text BEGIN_PGML -Find the family of antiderivatives of the function [``f(x)=[$f]``]. +Find the family of antiderivatives of the function [``f(x)=[$f]``]. -[`` F(x) =``][________________________]{$ans }[@ AnswerFormatHelp("formulas") @]* +[`` F(x) =``][________________________]{$ans }[@ helpLink("formulas") @]* _You can use "C" for any needed constant in your answer._ diff --git a/Contrib/CCCS/CalculusOne/04.10/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_10_471.pg b/Contrib/CCCS/CalculusOne/04.10/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_10_471.pg index f5c685c675..5718fe7266 100644 --- a/Contrib/CCCS/CalculusOne/04.10/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_10_471.pg +++ b/Contrib/CCCS/CalculusOne/04.10/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_10_471.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -48,11 +48,11 @@ $ans=$F; BEGIN_PGML Find the family of antiderivatives of the function - [``f(x)=[$f]``]. + [``f(x)=[$f]``]. -[`` F(x) =``][_____________________________]{$ans }[@ AnswerFormatHelp("formulas") @]* +[`` F(x) =``][_____________________________]{$ans }[@ helpLink("formulas") @]* @@ -60,7 +60,7 @@ END_PGML ############################ BEGIN_PGML_HINT -Recall, +Recall, [``\frac{d}{dx}(e^{3x}) =3 e^{3x} \Rightarrow \int e^{3x}dx = \frac{1}{3}e^{3x}+C``] diff --git a/Contrib/CCCS/CalculusOne/04.10/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_10_476.pg b/Contrib/CCCS/CalculusOne/04.10/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_10_476.pg index c84be727fa..6815c6bb4f 100644 --- a/Contrib/CCCS/CalculusOne/04.10/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_10_476.pg +++ b/Contrib/CCCS/CalculusOne/04.10/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_10_476.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -46,11 +46,11 @@ $ans=$F; BEGIN_PGML Find the family of antiderivatives of the function -[``f(x)=[$f]``]. +[``f(x)=[$f]``]. -[`` F(x) =``][________________________]{$ans }[@ AnswerFormatHelp("formulas") @]* +[`` F(x) =``][________________________]{$ans }[@ helpLink("formulas") @]* diff --git a/Contrib/CCCS/CalculusOne/04.10/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_10_478.pg b/Contrib/CCCS/CalculusOne/04.10/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_10_478.pg index 8097d00a15..0ce61c1b42 100644 --- a/Contrib/CCCS/CalculusOne/04.10/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_10_478.pg +++ b/Contrib/CCCS/CalculusOne/04.10/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_10_478.pg @@ -22,10 +22,10 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", -"AnswerFormatHelp.pl", + "parserFormulaUpToConstant.pl", ); @@ -49,10 +49,10 @@ $ans=FormulaUpToConstant("{$p}/{$q}x^{$q/$p} +{$p}/{$r}({$a }x)^{$q/$p}+C"); BEGIN_PGML Find the family of antiderivatives of the function -[``f(x)=x^{[$k]/[$p]}+([$a]x)^{[$k]/[$p]}``]. +[``f(x)=x^{[$k]/[$p]}+([$a]x)^{[$k]/[$p]}``]. -[`` F(x) =``][_____________________________]{$ans }[@ AnswerFormatHelp("formulas") @]* +[`` F(x) =``][_____________________________]{$ans }[@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/04.10/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_10_479.pg b/Contrib/CCCS/CalculusOne/04.10/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_10_479.pg index 402aad25c3..f68cee0a1e 100644 --- a/Contrib/CCCS/CalculusOne/04.10/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_10_479.pg +++ b/Contrib/CCCS/CalculusOne/04.10/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_10_479.pg @@ -22,10 +22,10 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", -"AnswerFormatHelp.pl", + "parserFormulaUpToConstant.pl", ); @@ -49,10 +49,10 @@ $ans->{limits} = [1,5]; BEGIN_PGML Find the family of antiderivatives of the function -[``f(x)=\dfrac{x^{[$m]/[$k]}}{x^{[$n]/[$k]}}``]. +[``f(x)=\dfrac{x^{[$m]/[$k]}}{x^{[$n]/[$k]}}``]. -[`` F(x) =``][____________________]{$ans }[@ AnswerFormatHelp("formulas") @]* +[`` F(x) =``][____________________]{$ans }[@ helpLink("formulas") @]* diff --git a/Contrib/CCCS/CalculusOne/04.10/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_10_482.pg b/Contrib/CCCS/CalculusOne/04.10/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_10_482.pg index 03396897c6..38404ff3d5 100644 --- a/Contrib/CCCS/CalculusOne/04.10/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_10_482.pg +++ b/Contrib/CCCS/CalculusOne/04.10/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_10_482.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -46,18 +46,18 @@ $ans=$F; BEGIN_PGML Find the family of antiderivatives of the function -[``f(x)=[$f]``]. +[``f(x)=[$f]``]. -[`` F(x) =``][_______________________________]{$ans }[@ AnswerFormatHelp("formulas") @]* +[`` F(x) =``][_______________________________]{$ans }[@ helpLink("formulas") @]* END_PGML ############################ BEGIN_PGML_HINT -This can be done by first simplifying the function using a trig identity, or this can be done by using a u-substitution. +This can be done by first simplifying the function using a trig identity, or this can be done by using a u-substitution. diff --git a/Contrib/CCCS/CalculusOne/04.10/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_10_484.pg b/Contrib/CCCS/CalculusOne/04.10/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_10_484.pg index b96514e807..db85e4ffe0 100644 --- a/Contrib/CCCS/CalculusOne/04.10/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_10_484.pg +++ b/Contrib/CCCS/CalculusOne/04.10/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_10_484.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -45,11 +45,11 @@ $ans=$F; BEGIN_PGML Find the family of antiderivatives of the function -[``f(x)=[$f]``]. +[``f(x)=[$f]``]. -[`` F(x) =``][_______________]{$ans }[@ AnswerFormatHelp("formulas") @]* +[`` F(x) =``][_______________]{$ans }[@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/04.10/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_10_488.pg b/Contrib/CCCS/CalculusOne/04.10/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_10_488.pg index 7f62b42a54..2462400982 100644 --- a/Contrib/CCCS/CalculusOne/04.10/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_10_488.pg +++ b/Contrib/CCCS/CalculusOne/04.10/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_10_488.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -47,11 +47,11 @@ $ans=$F; BEGIN_PGML Find the family of antiderivatives of the function -[``f(x)=[$f]``]. +[``f(x)=[$f]``]. -[`` F(x) =``][___________________________________]{$ans }[@ AnswerFormatHelp("formulas") @]* +[`` F(x) =``][___________________________________]{$ans }[@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/04.10/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_10_489.pg b/Contrib/CCCS/CalculusOne/04.10/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_10_489.pg index fc82d3dc4c..2a40304769 100644 --- a/Contrib/CCCS/CalculusOne/04.10/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_10_489.pg +++ b/Contrib/CCCS/CalculusOne/04.10/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_10_489.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -47,11 +47,11 @@ $ans=$F; BEGIN_PGML Find the family of antiderivatives of the function -[``f(x)=[$f]``]. +[``f(x)=[$f]``]. -[`` F(x) =``][__________________________]{$ans }[@ AnswerFormatHelp("formulas") @]* +[`` F(x) =``][__________________________]{$ans }[@ helpLink("formulas") @]* diff --git a/Contrib/CCCS/CalculusOne/04.10/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_10_493.pg b/Contrib/CCCS/CalculusOne/04.10/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_10_493.pg index 31e7e3a5b4..20fc6aab5d 100644 --- a/Contrib/CCCS/CalculusOne/04.10/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_10_493.pg +++ b/Contrib/CCCS/CalculusOne/04.10/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_10_493.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -45,11 +45,11 @@ $ans=$F; # Main text BEGIN_PGML -Evaluate the integral [``\int [$f] dx``]. +Evaluate the integral [``\int [$f] dx``]. -[`` \int [$f] dx =``][________________________]{$ans }[@ AnswerFormatHelp("formulas") @]* +[`` \int [$f] dx =``][________________________]{$ans }[@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/04.10/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_10_496.pg b/Contrib/CCCS/CalculusOne/04.10/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_10_496.pg index bdc63fb710..3f51db6f41 100644 --- a/Contrib/CCCS/CalculusOne/04.10/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_10_496.pg +++ b/Contrib/CCCS/CalculusOne/04.10/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_10_496.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -47,11 +47,11 @@ $ans=$F; # Main text BEGIN_PGML -Evaluate the integral [``\int([$a]x^{-[$k]/[$p]}+[$b]x^{[$k]/[$p]}) dx``]. +Evaluate the integral [``\int([$a]x^{-[$k]/[$p]}+[$b]x^{[$k]/[$p]}) dx``]. -[``\int ([$a]x^{-[$k]/[$p]}+[$b]x^{[$k]/[$p]}) dx=``][__________________________]{$ans }[@ AnswerFormatHelp("formulas") @]* +[``\int ([$a]x^{-[$k]/[$p]}+[$b]x^{[$k]/[$p]}) dx=``][__________________________]{$ans }[@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/04.10/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_10_500.pg b/Contrib/CCCS/CalculusOne/04.10/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_10_500.pg index f34e0e7feb..5328ac119f 100644 --- a/Contrib/CCCS/CalculusOne/04.10/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_10_500.pg +++ b/Contrib/CCCS/CalculusOne/04.10/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_10_500.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -48,11 +48,11 @@ $ans=$f->with(limits=>[1,2]); BEGIN_PGML Find a function `f(x)` satisfying the conditions -[``f'(x)=[$df], \quad f(0)=[$p]``]. +[``f'(x)=[$df], \quad f(0)=[$p]``]. -[`` f(x) =``][___________________________]{$ans }[@ AnswerFormatHelp("formulas") @]* +[`` f(x) =``][___________________________]{$ans }[@ helpLink("formulas") @]* diff --git a/Contrib/CCCS/CalculusOne/04.10/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_10_507.pg b/Contrib/CCCS/CalculusOne/04.10/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_10_507.pg index 3b95b21f02..d4e25d199b 100644 --- a/Contrib/CCCS/CalculusOne/04.10/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_10_507.pg +++ b/Contrib/CCCS/CalculusOne/04.10/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_10_507.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -51,20 +51,20 @@ $ans2=Formula("-$k*sin(x)+.5*$b*x**2+($c+$k)*x+$a")->reduce;; BEGIN_PGML (a) Find a function `f(x)` satisfying the conditions -[``f'''(x)=[$f3], \quad f(0)=[$c],\quad f'(0)=[$b],\quad f''(0)=[$a] ``]. +[``f'''(x)=[$f3], \quad f(0)=[$c],\quad f'(0)=[$b],\quad f''(0)=[$a] ``]. -[`` f(x) =``][_______________________]{$ans1 }[@ AnswerFormatHelp("formulas") @]* +[`` f(x) =``][_______________________]{$ans1 }[@ helpLink("formulas") @]* (b) Find a function `f(x)` satisfying the conditions -[``f'''(x)=[$f3], \quad f(0)=[$a],\quad f'(0)=[$c],\quad f''(0)=[$b] ``]. +[``f'''(x)=[$f3], \quad f(0)=[$a],\quad f'(0)=[$c],\quad f''(0)=[$b] ``]. -[`` f(x) =``][_______________________]{$ans2 }[@ AnswerFormatHelp("formulas") @]* +[`` f(x) =``][_______________________]{$ans2 }[@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/04.10/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_10_511.pg b/Contrib/CCCS/CalculusOne/04.10/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_10_511.pg index 5f95b79e0c..2b731538f8 100644 --- a/Contrib/CCCS/CalculusOne/04.10/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_10_511.pg +++ b/Contrib/CCCS/CalculusOne/04.10/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_10_511.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -44,10 +44,10 @@ $ans=Formula("$v1/$a"); # in sec BEGIN_PGML A car is merging onto a freeway (beginning at rest), accelerating at a constant rate of ` [$a] \text{ft/sec}^{2}`. -How long does it take to reach merging speed at `[$v] \text{mph }`? +How long does it take to reach merging speed at `[$v] \text{mph }`? - [`` \text{Time in seconds} =``][_______________]{$ans } [@ AnswerFormatHelp("numbers") @]* + [`` \text{Time in seconds} =``][_______________]{$ans } [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/04.10/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_10_512.pg b/Contrib/CCCS/CalculusOne/04.10/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_10_512.pg index 4511d4c8d6..b1a5135031 100644 --- a/Contrib/CCCS/CalculusOne/04.10/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_10_512.pg +++ b/Contrib/CCCS/CalculusOne/04.10/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_10_512.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -45,10 +45,10 @@ BEGIN_PGML A car is merging onto a freeway (beginning at rest), accelerating at a constant rate of ` [$a] \text{ft/sec}^{2}`. -How far does the car travel to reach merging speed of `[$v] \text{mph}`?. +How far does the car travel to reach merging speed of `[$v] \text{mph}`?. - [`` \text{Distance in feet} =``][_______________]{$ans } [@ AnswerFormatHelp("numbers") @]* + [`` \text{Distance in feet} =``][_______________]{$ans } [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/04.10/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_10_517.pg b/Contrib/CCCS/CalculusOne/04.10/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_10_517.pg index 724006658f..12c6de4b8a 100644 --- a/Contrib/CCCS/CalculusOne/04.10/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_10_517.pg +++ b/Contrib/CCCS/CalculusOne/04.10/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_10_517.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -48,11 +48,11 @@ $ans=$F; BEGIN_PGML Find the anditerivative of the function `f` with the given condition -[``f(x)=[$f] \text{ and } F(0)=[$c]``]. +[``f(x)=[$f] \text{ and } F(0)=[$c]``]. -[`` F(x) =``][_______________________]{$ans }[@ AnswerFormatHelp("formulas") @]* +[`` F(x) =``][_______________________]{$ans }[@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/04.10/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_10_520.pg b/Contrib/CCCS/CalculusOne/04.10/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_10_520.pg index 0fd0b7237f..0e675c6943 100644 --- a/Contrib/CCCS/CalculusOne/04.10/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_10_520.pg +++ b/Contrib/CCCS/CalculusOne/04.10/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_10_520.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -47,11 +47,11 @@ $ans=$F; BEGIN_PGML Find the anditerivative of the function `f` with the given condition -[``f(x)=[$f] \text{ and } F(0)=[$c]``]. +[``f(x)=[$f] \text{ and } F(0)=[$c]``]. -[`` F(x) =``][__________________________]{$ans }[@ AnswerFormatHelp("formulas") @]* +[`` F(x) =``][__________________________]{$ans }[@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/04.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_2_46.pg b/Contrib/CCCS/CalculusOne/04.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_2_46.pg index 34908dca0e..2b20ca8a18 100644 --- a/Contrib/CCCS/CalculusOne/04.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_2_46.pg +++ b/Contrib/CCCS/CalculusOne/04.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_2_46.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserAssignment.pl", @@ -45,9 +45,9 @@ $ans=Formula("m*x+b"); ## I hope you get [`[$ans1]`], [`[$ans2]`], and [`[$ans3]`]. BEGIN_PGML -What is the linear approximation for any generic linear function `y=mx+b`? +What is the linear approximation for any generic linear function `y=mx+b`? -[`L(x)=`][_______________________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`L(x)=`][_______________________________]{$ans} [@ helpLink("formulas") @]* diff --git a/Contrib/CCCS/CalculusOne/04.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_2_51.pg b/Contrib/CCCS/CalculusOne/04.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_2_51.pg index 2b2e0bb384..b12e465c42 100644 --- a/Contrib/CCCS/CalculusOne/04.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_2_51.pg +++ b/Contrib/CCCS/CalculusOne/04.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_2_51.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserAssignment.pl", @@ -58,7 +58,7 @@ BEGIN_PGML Find the linear approximation `L(x)` to `y=[$f]` at `x=[$a]`. -`L(x)=`[_______________________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +`L(x)=`[_______________________________]{$ans} [@ helpLink("formulas") @]* diff --git a/Contrib/CCCS/CalculusOne/04.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_2_55.pg b/Contrib/CCCS/CalculusOne/04.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_2_55.pg index b9e95eb3dc..bb59beaf29 100644 --- a/Contrib/CCCS/CalculusOne/04.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_2_55.pg +++ b/Contrib/CCCS/CalculusOne/04.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_2_55.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserAssignment.pl", @@ -58,7 +58,7 @@ BEGIN_PGML Find the linear approximation `L(x)` to [`\displaystyle y=[$f]`] at `x=[$a]`. -`L(x)=`[_______________________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +`L(x)=`[_______________________________]{$ans} [@ helpLink("formulas") @]* diff --git a/Contrib/CCCS/CalculusOne/04.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_2_57.pg b/Contrib/CCCS/CalculusOne/04.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_2_57.pg index 5087c14b00..3434e90a85 100644 --- a/Contrib/CCCS/CalculusOne/04.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_2_57.pg +++ b/Contrib/CCCS/CalculusOne/04.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_2_57.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -57,7 +57,7 @@ BEGIN_PGML Estimate `sin([$a])` using an appropriate linear approximation [`L(x)=f(a)+f'(a)(x-a)`]. -[`\sin([$a]) \approx`][_______________________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`\sin([$a]) \approx`][_______________________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/04.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_2_59.pg b/Contrib/CCCS/CalculusOne/04.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_2_59.pg index c751fb9afe..820928dbb6 100644 --- a/Contrib/CCCS/CalculusOne/04.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_2_59.pg +++ b/Contrib/CCCS/CalculusOne/04.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_2_59.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -59,7 +59,7 @@ BEGIN_PGML Estimate `([$c])^[$b]` by using an appropriate linear approximation [`L(x)=f(a)+f'(a)(x-a)`]. -`([$c])^[$b] \approx`[_______________________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +`([$c])^[$b] \approx`[_______________________________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CalculusOne/04.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_2_63.pg b/Contrib/CCCS/CalculusOne/04.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_2_63.pg index d0ccf9ec5d..1c45315146 100644 --- a/Contrib/CCCS/CalculusOne/04.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_2_63.pg +++ b/Contrib/CCCS/CalculusOne/04.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_2_63.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -59,11 +59,11 @@ BEGIN_PGML Identify the appropriate `f(x)` and `a` in order to estimate the value of `([$c])^[$b]` using a linear approximation [`L(x)=f(a)+f'(a)(x-a)`]. Then estimate `([$c])^[$b]` using that linear approximation. -`f(x)=`[_______________________________]{$ans1} [@ AnswerFormatHelp("formulas") @]* +`f(x)=`[_______________________________]{$ans1} [@ helpLink("formulas") @]* -`a=`[_______________________________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +`a=`[_______________________________]{$ans2} [@ helpLink("numbers") @]* -`([$c])^[$b] \approx`[_______________________________]{$ans3} [@ AnswerFormatHelp("numbers") @]* +`([$c])^[$b] \approx`[_______________________________]{$ans3} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/04.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_2_65.pg b/Contrib/CCCS/CalculusOne/04.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_2_65.pg index 56efc7c399..5ea44322ce 100644 --- a/Contrib/CCCS/CalculusOne/04.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_2_65.pg +++ b/Contrib/CCCS/CalculusOne/04.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_2_65.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -58,11 +58,11 @@ BEGIN_PGML Identify the appropriate `f(x)` and `a` in order to estimate the value of `sin([$a])` using an appropriate linear approximation `L(x)=f(a)+f'(a)(x-a)`. Then estimate `sin([$a])` using that linear approximation. -`f(x)=`[_______________________________]{$ans1} [@ AnswerFormatHelp("formulas") @]* +`f(x)=`[_______________________________]{$ans1} [@ helpLink("formulas") @]* -`a=`[_______________________________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +`a=`[_______________________________]{$ans2} [@ helpLink("numbers") @]* -`sin([$a])\approx`[_______________________________]{$ans3} [@ AnswerFormatHelp("numbers") @]* +`sin([$a])\approx`[_______________________________]{$ans3} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CalculusOne/04.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_2_69.pg b/Contrib/CCCS/CalculusOne/04.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_2_69.pg index 4a75d6366e..a1b25a2644 100644 --- a/Contrib/CCCS/CalculusOne/04.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_2_69.pg +++ b/Contrib/CCCS/CalculusOne/04.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_2_69.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -52,7 +52,7 @@ BEGIN_PGML Calculate the differential of [`\displaystyle y=[$f]`]. -`dy=`[_______________________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +`dy=`[_______________________________]{$ans} [@ helpLink("formulas") @]* diff --git a/Contrib/CCCS/CalculusOne/04.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_2_71.pg b/Contrib/CCCS/CalculusOne/04.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_2_71.pg index b31719b42c..54a0f6c92d 100644 --- a/Contrib/CCCS/CalculusOne/04.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_2_71.pg +++ b/Contrib/CCCS/CalculusOne/04.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_2_71.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -52,7 +52,7 @@ BEGIN_PGML Calculate the differential of `y=[$f]`. -`dy=`[_______________________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +`dy=`[_______________________________]{$ans} [@ helpLink("formulas") @]* diff --git a/Contrib/CCCS/CalculusOne/04.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_2_75.pg b/Contrib/CCCS/CalculusOne/04.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_2_75.pg index 1d4b14e645..84cbf2ad8a 100644 --- a/Contrib/CCCS/CalculusOne/04.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_2_75.pg +++ b/Contrib/CCCS/CalculusOne/04.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_2_75.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -58,9 +58,9 @@ BEGIN_PGML Calculate the differential of [`\displaystyle y=[$f]`]. Evaluate the differential when `x=[$evalat]` and `dx=[$dx]`. -`dy=`[_______________________________]{$ans1} [@ AnswerFormatHelp("Formulas") @]* +`dy=`[_______________________________]{$ans1} [@ helpLink("Formulas") @]* -The value of `dy` when `x=[$evalat]` and `dx=[$dx]` is [_______________________________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +The value of `dy` when `x=[$evalat]` and `dx=[$dx]` is [_______________________________]{$ans2} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/04.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_2_79.pg b/Contrib/CCCS/CalculusOne/04.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_2_79.pg index 8f912c2453..b21c1043b9 100644 --- a/Contrib/CCCS/CalculusOne/04.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_2_79.pg +++ b/Contrib/CCCS/CalculusOne/04.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_2_79.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -46,7 +46,7 @@ BEGIN_PGML Find `dA`, the change in surface area, of a cube if the sides of the cube change from `x` to `x+dx`. -`dA=`[_______________________________]{$ans} [@ AnswerFormatHelp("Formulas") @]* +`dA=`[_______________________________]{$ans} [@ helpLink("Formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/04.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_2_83.pg b/Contrib/CCCS/CalculusOne/04.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_2_83.pg index 56262f4e16..b95fc83b61 100644 --- a/Contrib/CCCS/CalculusOne/04.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_2_83.pg +++ b/Contrib/CCCS/CalculusOne/04.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_2_83.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,7 +48,7 @@ BEGIN_PGML Find `dV`, the change in volume, of a right circular cylinder if `r=[$r]` and the height goes from `h=[$h]` to `h=[$newh]`. -`dV=`[_______________________________]{$ans} [@ AnswerFormatHelp("Numbers") @]* +`dV=`[_______________________________]{$ans} [@ helpLink("Numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/04.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_2_85.pg b/Contrib/CCCS/CalculusOne/04.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_2_85.pg index 155a2a5e59..e077c6d618 100644 --- a/Contrib/CCCS/CalculusOne/04.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_2_85.pg +++ b/Contrib/CCCS/CalculusOne/04.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_2_85.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -54,9 +54,9 @@ BEGIN_PGML Use the differential to estimate the maximum and relative error in the volume of a rectangular pool with a base of [$a]ft by [$b]ft and a height of []ft if it is only filled with [$c]ft of water. -The maximum error is [_______________________________]{$ans1} [@ AnswerFormatHelp("Numbers") @]* +The maximum error is [_______________________________]{$ans1} [@ helpLink("Numbers") @]* -The relative error is [_______________________________]{$ans2} [@ AnswerFormatHelp("Numbers") @]* +The relative error is [_______________________________]{$ans2} [@ helpLink("Numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/04.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_3_103.pg b/Contrib/CCCS/CalculusOne/04.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_3_103.pg index 7de6b295ef..ba079b9fe5 100644 --- a/Contrib/CCCS/CalculusOne/04.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_3_103.pg +++ b/Contrib/CCCS/CalculusOne/04.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_3_103.pg @@ -24,7 +24,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -79,7 +79,7 @@ $gr->stamps( closed_circle(6,$f6,'blue') ); $gr->stamps( closed_circle(-4,$fn4,'blue') ); #add function to graph -add_functions($gr, ".1((x^4)/4 - (($a+2+$c)*x^3)/3 +(($a*2+$a*$c+2*$c)*x^2)/2-($a)*(2)*($c)* x) for x in <-4,6>" . +add_functions($gr, ".1((x^4)/4 - (($a+2+$c)*x^3)/3 +(($a*2+$a*$c+2*$c)*x^2)/2-($a)*(2)*($c)* x) for x in <-4,6>" . " using color:blue and weight:3"); @@ -100,13 +100,13 @@ Determine where the local and absolute maxima and minima occur on the following (Use a comma to separate answers. Enter 'NONE' if the extrema does not exist.) -a) Local minimum at `x=` [_________________]{$lmin} [@ AnswerFormatHelp("numbers") @]* +a) Local minimum at `x=` [_________________]{$lmin} [@ helpLink("numbers") @]* -b) Local maximum at `x=` [__________________]{2} [@ AnswerFormatHelp("numbers") @]* +b) Local maximum at `x=` [__________________]{2} [@ helpLink("numbers") @]* -c) Absolute minimum at `x=` [_________________]{$amin} [@ AnswerFormatHelp("numbers") @]* +c) Absolute minimum at `x=` [_________________]{$amin} [@ helpLink("numbers") @]* -d) Absolute maximum at `x=` [_________________]{$amax} [@ AnswerFormatHelp("numbers") @]* +d) Absolute maximum at `x=` [_________________]{$amax} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/04.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_3_103test.pg b/Contrib/CCCS/CalculusOne/04.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_3_103test.pg index 94ac0f69d1..c5dfd1672c 100644 --- a/Contrib/CCCS/CalculusOne/04.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_3_103test.pg +++ b/Contrib/CCCS/CalculusOne/04.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_3_103test.pg @@ -24,7 +24,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -84,13 +84,13 @@ Determine where the local and absolute maxima and minima occur on the following (Use comma to separate answers. Enter 'NONE' if the extrema does not exist.) -a) Local minimum at `x=` [_________________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +a) Local minimum at `x=` [_________________]{$ans1} [@ helpLink("numbers") @]* -b) Local maximum at `x=` [__________________]{2} [@ AnswerFormatHelp("numbers") @]* +b) Local maximum at `x=` [__________________]{2} [@ helpLink("numbers") @]* -c) Absolute minimum at `x=` [_________________]{$a} [@ AnswerFormatHelp("numbers") @]* +c) Absolute minimum at `x=` [_________________]{$a} [@ helpLink("numbers") @]* -d) Absolute maximum at `x=` [_________________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +d) Absolute maximum at `x=` [_________________]{$ans2} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/04.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_3_104.pg b/Contrib/CCCS/CalculusOne/04.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_3_104.pg index aa6a5e0ac8..d79923e45a 100644 --- a/Contrib/CCCS/CalculusOne/04.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_3_104.pg +++ b/Contrib/CCCS/CalculusOne/04.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_3_104.pg @@ -24,7 +24,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -91,16 +91,16 @@ $gr4->stamps( closed_circle($bm1,$c-1,'blue') ); $gr4->stamps( closed_circle($bp1,$c-1,'blue') ); -add_functions($gr1, "-$a((x-$b)^5+2(x-$b)^4-3(x-$b)^2)+$c for x in <$bm1,$bp1>". +add_functions($gr1, "-$a((x-$b)^5+2(x-$b)^4-3(x-$b)^2)+$c for x in <$bm1,$bp1>". " using color:blue and weight:3"); -add_functions($gr2, "(x-$b)^3-x+$c for x in <$bm1,$bp3>" . +add_functions($gr2, "(x-$b)^3-x+$c for x in <$bm1,$bp3>" . " using color:blue and weight:3"); -add_functions($gr3, "$a((x-$b)^5+2(x-$b)^4-3(x-$b)^2)+$c for x in <$bm1,$bp1>" . +add_functions($gr3, "$a((x-$b)^5+2(x-$b)^4-3(x-$b)^2)+$c for x in <$bm1,$bp1>" . " using color:blue and weight:3"); -add_functions($gr4, "-(x-$b)^2+$c for x in <$bm1,$bp1>" . +add_functions($gr4, "-(x-$b)^2+$c for x in <$bm1,$bp1>" . " using color:blue and weight:3"); if ( $a > 0 ){ @@ -133,10 +133,10 @@ BEGIN_PGML -Which of the following graphs has [$que1] at [`x=[$b], [$bp1]`], [$que2] at [`x=[$bp7]`], and [$que3] at [`x=[$bm1]`] [_________________]{$popup1} +Which of the following graphs has [$que1] at [`x=[$b], [$bp1]`], [$que2] at [`x=[$bp7]`], and [$que3] at [`x=[$bm1]`] [_________________]{$popup1} ->>A. [@ image(insertGraph($gr1), width=>200, height=>200), @]* B. [@ image(insertGraph($gr2), width=>200, height=>200), @]* << +>>A. [@ image(insertGraph($gr1), width=>200, height=>200), @]* B. [@ image(insertGraph($gr2), width=>200, height=>200), @]* << >>C. [@ image(insertGraph($gr3), width=>200, height=>200), @]* D. [@ image(insertGraph($gr4), width=>200, height=>200), @]* << diff --git a/Contrib/CCCS/CalculusOne/04.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_3_106.pg b/Contrib/CCCS/CalculusOne/04.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_3_106.pg index f4f63f5582..3b8aa17ee5 100644 --- a/Contrib/CCCS/CalculusOne/04.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_3_106.pg +++ b/Contrib/CCCS/CalculusOne/04.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_3_106.pg @@ -24,7 +24,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -67,18 +67,18 @@ grid=>[10,10], size=>[600,600] ); -add_functions($gr1, "(1/8)*(1/4x^4-($b/3)*x^3-(2/3)*$a*x^3+$a*$b*x^2+(1/2)*($a)^2*x^2-$a^2*$b*x) for x in <-10,10>". +add_functions($gr1, "(1/8)*(1/4x^4-($b/3)*x^3-(2/3)*$a*x^3+$a*$b*x^2+(1/2)*($a)^2*x^2-$a^2*$b*x) for x in <-10,10>". " using color:blue and weight:3"); -add_functions($gr2, "-(1/8)*(1/4x^4-($b/3)*x^3-(2/3)*$a*x^3+$a*$b*x^2+(1/2)*($a)^2*x^2-$a^2*$b*x) for x in <-10,10>" . +add_functions($gr2, "-(1/8)*(1/4x^4-($b/3)*x^3-(2/3)*$a*x^3+$a*$b*x^2+(1/2)*($a)^2*x^2-$a^2*$b*x) for x in <-10,10>" . " using color:blue and weight:3"); -add_functions($gr3, "-.3(x-$b)^3+3 for x in <-10,10>" . +add_functions($gr3, "-.3(x-$b)^3+3 for x in <-10,10>" . " using color:blue and weight:3"); -add_functions($gr4, "-(x-$b)^4+2(x-$b)^2 for x in <-10,10>" . +add_functions($gr4, "-(x-$b)^4+2(x-$b)^2 for x in <-10,10>" . " using color:blue and weight:3"); - + ($gr1->fn)[0]->steps(200); ($gr2->fn)[0]->steps(200); ($gr3->fn)[0]->steps(200); @@ -103,10 +103,10 @@ BEGIN_PGML -Which of the following graphs has an absolute minimum at [`x=[$b]`] and a critical point that is not a maximum or minimum at [`x=[$a]`] [_________________]{$popup1} +Which of the following graphs has an absolute minimum at [`x=[$b]`] and a critical point that is not a maximum or minimum at [`x=[$a]`] [_________________]{$popup1} ->>A. [@ image(insertGraph($gr1), width=>200, height=>200), @]* B. [@ image(insertGraph($gr2), width=>200, height=>200), @]* << +>>A. [@ image(insertGraph($gr1), width=>200, height=>200), @]* B. [@ image(insertGraph($gr2), width=>200, height=>200), @]* << >>C. [@ image(insertGraph($gr4), width=>200, height=>200), @]* D. [@ image(insertGraph($gr3), width=>200, height=>200), @]* << diff --git a/Contrib/CCCS/CalculusOne/04.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_3_111.pg b/Contrib/CCCS/CalculusOne/04.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_3_111.pg index 9c00bd400f..bcb8ff163d 100644 --- a/Contrib/CCCS/CalculusOne/04.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_3_111.pg +++ b/Contrib/CCCS/CalculusOne/04.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_3_111.pg @@ -24,7 +24,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -53,9 +53,9 @@ BEGIN_PGML Find the domain and all critical points in the domain of [`y=\ln(x-[$a])`]. -a) Domain of [`y=\ln(x-[$a])`] is [________________]{($ans)}[@ AnswerFormatHelp("intervals") @]* +a) Domain of [`y=\ln(x-[$a])`] is [________________]{($ans)}[@ helpLink("intervals") @]* -b) Critical point(s) of [`y=\ln(x-[$a])`] on its domain are [__________________]{(NONE)} (use a comma to separate answers, enter "NONE" if there are no critical points in the domain) [@ AnswerFormatHelp("numbers") @]* +b) Critical point(s) of [`y=\ln(x-[$a])`] on its domain are [__________________]{(NONE)} (use a comma to separate answers, enter "NONE" if there are no critical points in the domain) [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/04.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_3_113.pg b/Contrib/CCCS/CalculusOne/04.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_3_113.pg index 2c2fa5b071..c8a3c0ffe8 100644 --- a/Contrib/CCCS/CalculusOne/04.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_3_113.pg +++ b/Contrib/CCCS/CalculusOne/04.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_3_113.pg @@ -24,7 +24,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -53,9 +53,9 @@ BEGIN_PGML Find the domain and all critical points in the domain of [`y=\sqrt{[$a]-x^2}`]. -a) Domain of [`y=\sqrt{[$a]-x^2}`] is [________________]{($ans)}[@ AnswerFormatHelp("intervals") @]* +a) Domain of [`y=\sqrt{[$a]-x^2}`] is [________________]{($ans)}[@ helpLink("intervals") @]* -b) Critical point(s) of [`y=\sqrt{[$a]-x^2}`] on its domain are [`x=`] [__________________]{(0)} (use a comma to separate answers, enter "NONE" if there are no critical points in the domain) [@ AnswerFormatHelp("numbers") @]* +b) Critical point(s) of [`y=\sqrt{[$a]-x^2}`] on its domain are [`x=`] [__________________]{(0)} (use a comma to separate answers, enter "NONE" if there are no critical points in the domain) [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/04.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_3_116.pg b/Contrib/CCCS/CalculusOne/04.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_3_116.pg index cb541197ed..9c20310a1c 100644 --- a/Contrib/CCCS/CalculusOne/04.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_3_116.pg +++ b/Contrib/CCCS/CalculusOne/04.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_3_116.pg @@ -24,7 +24,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -55,11 +55,11 @@ BEGIN_PGML Find the domain of [`y=[$a] \sin^2(x)`]. Then find the critical points of [`y=[$a] \sin^2(x)`] that lie in the interval [`(0, 2\pi)`]. -a) Domain of [`y=[$a] \sin^2(x)`] is [________________]{($ans2)}[@ AnswerFormatHelp("intervals") @]* +a) Domain of [`y=[$a] \sin^2(x)`] is [________________]{($ans2)}[@ helpLink("intervals") @]* -b) [`\frac{dy}{dx} = `] [__________________]{($ans1)} [@ AnswerFormatHelp("formulas") @]* +b) [`\frac{dy}{dx} = `] [__________________]{($ans1)} [@ helpLink("formulas") @]* -c) Critical point(s) of [`y=[$a] \sin^2(x)`] on the interval [`(0, 2\pi)`] are [`x=`] [__________________]{($ans3)} [@ AnswerFormatHelp("numbers") @]* (Use a comma to separate answers, enter "NONE" if there are no critical points in the domain) +c) Critical point(s) of [`y=[$a] \sin^2(x)`] on the interval [`(0, 2\pi)`] are [`x=`] [__________________]{($ans3)} [@ helpLink("numbers") @]* (Use a comma to separate answers, enter "NONE" if there are no critical points in the domain) END_PGML diff --git a/Contrib/CCCS/CalculusOne/04.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_3_119.pg b/Contrib/CCCS/CalculusOne/04.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_3_119.pg index 95398dd537..64dee4b6cb 100644 --- a/Contrib/CCCS/CalculusOne/04.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_3_119.pg +++ b/Contrib/CCCS/CalculusOne/04.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_3_119.pg @@ -24,7 +24,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -57,9 +57,9 @@ BEGIN_PGML Find all absolute maxima and minima values for the function [`y= x^2 + \frac{[$a]}{x}`] on the interval [`[1, [$endpoint]]`]. -a) Absolute maximum is [________________]{$f1} (enter 'NONE' if there are none) [@ AnswerFormatHelp("numbers") @]* +a) Absolute maximum is [________________]{$f1} (enter 'NONE' if there are none) [@ helpLink("numbers") @]* -b) Absolute minimum is [________________]{$f3} (enter 'NONE' if there are none) [@ AnswerFormatHelp("numbers") @]* +b) Absolute minimum is [________________]{$f3} (enter 'NONE' if there are none) [@ helpLink("numbers") @]* @@ -71,7 +71,7 @@ To find the absolute extrema of a function `y=f(x)` on the closed interval [`[a, Example: Find all absolute maxima and minima for the function [`f(x)= x^2 + 2x`] on the interval [`[-2, 3]`]. -Solution: +Solution: [`f(-2) = 0`] and [`f(3) = 15`] diff --git a/Contrib/CCCS/CalculusOne/04.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_3_123.pg b/Contrib/CCCS/CalculusOne/04.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_3_123.pg index 8a80a3e041..37d7d496a9 100644 --- a/Contrib/CCCS/CalculusOne/04.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_3_123.pg +++ b/Contrib/CCCS/CalculusOne/04.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_3_123.pg @@ -24,7 +24,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -52,9 +52,9 @@ BEGIN_PGML Find all absolute maxima and minima for the function [`y= x +\sin(x)`] on the interval [`[0, 2 \pi]`]. -a) Absolute maximum is [`y = `][________]{2pi} and occurs at [`x=`][________]{2pi} (enter 'NONE' if there are none) [@ AnswerFormatHelp("numbers") @]* +a) Absolute maximum is [`y = `][________]{2pi} and occurs at [`x=`][________]{2pi} (enter 'NONE' if there are none) [@ helpLink("numbers") @]* -b) Absolute minimum is [`y = `][________]{0} and occurs at [`x=`][________]{0} (enter 'NONE' if there are none) [@ AnswerFormatHelp("numbers") @]* +b) Absolute minimum is [`y = `][________]{0} and occurs at [`x=`][________]{0} (enter 'NONE' if there are none) [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CalculusOne/04.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_3_131.pg b/Contrib/CCCS/CalculusOne/04.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_3_131.pg index b1f958a132..4e5746dcaa 100644 --- a/Contrib/CCCS/CalculusOne/04.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_3_131.pg +++ b/Contrib/CCCS/CalculusOne/04.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_3_131.pg @@ -24,7 +24,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -63,13 +63,13 @@ BEGIN_PGML Find all points of local and absolute extrema for the function [`y=3x^4 +[$p1]x^3+[$p0]x^2`] on the interval [`(-\infty, \infty)`]. -a) Point(s) of absolute maximum [________________]{(NONE)} (enter ordered pair(s) or 'NONE') [@ AnswerFormatHelp("points") @]* +a) Point(s) of absolute maximum [________________]{(NONE)} (enter ordered pair(s) or 'NONE') [@ helpLink("points") @]* -b) Point(s) of absolute minimum [________________]{$ans2} (enter ordered pair(s) or 'NONE') [@ AnswerFormatHelp("points") @]* +b) Point(s) of absolute minimum [________________]{$ans2} (enter ordered pair(s) or 'NONE') [@ helpLink("points") @]* -c) Point(s) of local maximum [________________]{$ans1} (enter ordered pair(s) or 'NONE') [@ AnswerFormatHelp("points") @]* +c) Point(s) of local maximum [________________]{$ans1} (enter ordered pair(s) or 'NONE') [@ helpLink("points") @]* -d) Point(s) of local minimum [________________]{$ans4} (enter ordered pair(s) or 'NONE') [@ AnswerFormatHelp("points") @]* +d) Point(s) of local minimum [________________]{$ans4} (enter ordered pair(s) or 'NONE') [@ helpLink("points") @]* diff --git a/Contrib/CCCS/CalculusOne/04.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_3_134.pg b/Contrib/CCCS/CalculusOne/04.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_3_134.pg index 7cc35d2c41..85476c241f 100644 --- a/Contrib/CCCS/CalculusOne/04.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_3_134.pg +++ b/Contrib/CCCS/CalculusOne/04.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_3_134.pg @@ -24,7 +24,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -52,13 +52,13 @@ BEGIN_PGML Find all points of local and absolute extrema for the function [``y=\frac{x^2-[$b]}{x-[$a]}``] on the interval [`(-\infty, \infty)`]. -a) Point(s) of absolute maximum [________________] (enter ordered pair(s) or 'NONE') [@ AnswerFormatHelp("points") @]* +a) Point(s) of absolute maximum [________________] (enter ordered pair(s) or 'NONE') [@ helpLink("points") @]* -b) Point(s) of absolute minimum [________________] (enter ordered pair(s) or 'NONE') [@ AnswerFormatHelp("points") @]* +b) Point(s) of absolute minimum [________________] (enter ordered pair(s) or 'NONE') [@ helpLink("points") @]* -c) Point(s) of local maximum [________________] (enter ordered pair(s) or 'NONE') [@ AnswerFormatHelp("points") @]* +c) Point(s) of local maximum [________________] (enter ordered pair(s) or 'NONE') [@ helpLink("points") @]* -d) Point(s) of local minimum [________________] (enter ordered pair(s) or 'NONE') [@ AnswerFormatHelp("points") @]* +d) Point(s) of local minimum [________________] (enter ordered pair(s) or 'NONE') [@ helpLink("points") @]* diff --git a/Contrib/CCCS/CalculusOne/04.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_3_136.pg b/Contrib/CCCS/CalculusOne/04.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_3_136.pg index 92ca6ffdef..170ddb4786 100644 --- a/Contrib/CCCS/CalculusOne/04.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_3_136.pg +++ b/Contrib/CCCS/CalculusOne/04.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_3_136.pg @@ -22,7 +22,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "AppletObjects.pl", "unionTables.pl", "parserNumberWithUnits.pl", @@ -47,7 +47,7 @@ HEADER_TEXT(MODES( )); $desmos_div = MODES( - HTML=>qq(
), + HTML=>qq(
), TeX=>'Interactive graph best viewed online' ); @@ -59,15 +59,15 @@ $desmos_div = MODES( BEGIN_PGML -The graphing tool provided below may help determine the points of absolute and local extrema of the function [`y=x+\sin(x)`]. Determine the points of absolute and local extrema of [`y=x+\sin(x)`] on the interval [`(-\infty, \infty)`]. +The graphing tool provided below may help determine the points of absolute and local extrema of the function [`y=x+\sin(x)`]. Determine the points of absolute and local extrema of [`y=x+\sin(x)`] on the interval [`(-\infty, \infty)`]. -a) Point(s) of absolute maximum [________________] (enter ordered pair(s) or 'NONE') [@ AnswerFormatHelp("points") @]* +a) Point(s) of absolute maximum [________________] (enter ordered pair(s) or 'NONE') [@ helpLink("points") @]* -b) Point(s) of absolute minimum [________________] (enter ordered pair(s) or 'NONE') [@ AnswerFormatHelp("points") @]* +b) Point(s) of absolute minimum [________________] (enter ordered pair(s) or 'NONE') [@ helpLink("points") @]* -c) Point(s) of local maximum [________________] (enter ordered pair(s) or 'NONE') [@ AnswerFormatHelp("points") @]* +c) Point(s) of local maximum [________________] (enter ordered pair(s) or 'NONE') [@ helpLink("points") @]* -d) Point(s) of local minimum [________________] (enter ordered pair(s) or 'NONE') [@ AnswerFormatHelp("points") @]* +d) Point(s) of local minimum [________________] (enter ordered pair(s) or 'NONE') [@ helpLink("points") @]* @@ -101,10 +101,10 @@ TEXT( MODES(TeX=>'', HTML=><qq(
), + HTML=>qq(
), TeX=>'Interactive graph best viewed online' ); @@ -64,13 +64,13 @@ BEGIN_PGML The graphing tool provided below may help determine the absolute and local extrema of the function [`f(x)=12x^5+45x^4+20x^3-90x^2-120x+3`]. Determine the absolute and local maxima and minima of [`f(x)`] on the interval [`(-\infty, \infty)`]. (enter 'NONE' if there are none) -a) Absolute maximum is [`y=`][___________]{(NONE)} and occurs at [`x=`][___________]{(NONE)} [@ AnswerFormatHelp("numbers") @]* +a) Absolute maximum is [`y=`][___________]{(NONE)} and occurs at [`x=`][___________]{(NONE)} [@ helpLink("numbers") @]* -b) Absolute minimum is [`y=`][___________]{(NONE)} and occurs at [`x=`][___________]{(NONE)} [@ AnswerFormatHelp("numbers") @]* +b) Absolute minimum is [`y=`][___________]{(NONE)} and occurs at [`x=`][___________]{(NONE)} [@ helpLink("numbers") @]* -c) Local maximum is [`y=`][___________]{59} and occurs at [`x=`][___________]{-2} [@ AnswerFormatHelp("numbers") @]* +c) Local maximum is [`y=`][___________]{59} and occurs at [`x=`][___________]{-2} [@ helpLink("numbers") @]* -d) Local minimum is [`y=`][___________]{-130} and occurs at [`x=`][___________]{1} [@ AnswerFormatHelp("numbers") @]* +d) Local minimum is [`y=`][___________]{-130} and occurs at [`x=`][___________]{1} [@ helpLink("numbers") @]* @@ -101,10 +101,10 @@ TEXT( MODES(TeX=>'', HTML=><0` then `f(x)` is [_________________]{$popup2} on the interval `(-\infty, -b/(2a))` and [_________________]{$popup1} on the interval `(-b/(2a), \infty)`. 4. If `a<0` then `f(x)` is [_________________]{$popup1} on the interval `(-\infty, -b/(2a))` and [_________________]{$popup2} on the interval `(-b/(2a), \infty)`. -5. Therefore, the position of the maximum/minimum of the quadratic function `f(x) = ax^2+bx+c` is `x=`[________]{-b/(2a)} [@ AnswerFormatHelp("formulas") @]* +5. Therefore, the position of the maximum/minimum of the quadratic function `f(x) = ax^2+bx+c` is `x=`[________]{-b/(2a)} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/04.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_3_91.pg b/Contrib/CCCS/CalculusOne/04.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_3_91.pg index a1cdac1124..fceb94560a 100644 --- a/Contrib/CCCS/CalculusOne/04.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_3_91.pg +++ b/Contrib/CCCS/CalculusOne/04.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_3_91.pg @@ -21,14 +21,14 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", "parserPopUp.pl", "PGstandard.pl", "PGgraphmacros.pl", -"AnswerFormatHelp.pl", + "MathObjects.pl" # Math Object Macro ); Context()->variables->add(a => "Real"); @@ -99,16 +99,16 @@ $gr4->stamps( closed_circle(1,$g4right,'blue') ); #add functions to graphs -add_functions($gr1, "cos(x) for x in <-2,1>". +add_functions($gr1, "cos(x) for x in <-2,1>". " using color:blue and weight:3"); -add_functions($gr2, "x^3+x^2-2x+1 for x in <-2,1>" . +add_functions($gr2, "x^3+x^2-2x+1 for x in <-2,1>" . " using color:blue and weight:3"); -add_functions($gr3, "-(1/4)x^4-x^3+x-1 for x in <-2,1>" . +add_functions($gr3, "-(1/4)x^4-x^3+x-1 for x in <-2,1>" . " using color:blue and weight:3"); -add_functions($gr4, "-x^3-x^2+2x+2 for x in <-2,1>" . +add_functions($gr4, "-x^3-x^2+2x+2 for x in <-2,1>" . " using color:blue and weight:3"); $in=time(); @@ -131,16 +131,16 @@ $popup2 = PopUp( BEGIN_PGML -a) If you are finding an absolute minimum over an interval [`[a,b]`], why do you need to check the endpoints? -[_______________]{$radio} +a) If you are finding an absolute minimum over an interval [`[a,b]`], why do you need to check the endpoints? +[_______________]{$radio} -b) Which of the following graphs, all of which are graphed on the interval [`[-2,1]`], shows an absolute minimum occurring on an endpoint?[_________________]{$popup1} +b) Which of the following graphs, all of which are graphed on the interval [`[-2,1]`], shows an absolute minimum occurring on an endpoint?[_________________]{$popup1} -c) Which of the following graphs, all of which are graphed on the interval [`[-2,1]`], shows an absolute maximum occurring on an endpoint?[_________________]{$popup2} +c) Which of the following graphs, all of which are graphed on the interval [`[-2,1]`], shows an absolute maximum occurring on an endpoint?[_________________]{$popup2} ->>A. [@ image(insertGraph($gr1), width=>200, height=>200), @]* B. [@ image(insertGraph($gr2), width=>200, height=>200), @]* << +>>A. [@ image(insertGraph($gr1), width=>200, height=>200), @]* B. [@ image(insertGraph($gr2), width=>200, height=>200), @]* << >>C. [@ image(insertGraph($gr4), width=>200, height=>200), @]* D. [@ image(insertGraph($gr3), width=>200, height=>200), @]* << diff --git a/Contrib/CCCS/CalculusOne/04.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_3_92.pg b/Contrib/CCCS/CalculusOne/04.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_3_92.pg index 8ffcf4a114..0c3d2b5d89 100644 --- a/Contrib/CCCS/CalculusOne/04.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_3_92.pg +++ b/Contrib/CCCS/CalculusOne/04.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_3_92.pg @@ -24,7 +24,7 @@ loadMacros( "PGanswermacros.pl", "Parser.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", diff --git a/Contrib/CCCS/CalculusOne/04.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_3_93.pg b/Contrib/CCCS/CalculusOne/04.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_3_93.pg index a72345c719..6227cd26b9 100644 --- a/Contrib/CCCS/CalculusOne/04.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_3_93.pg +++ b/Contrib/CCCS/CalculusOne/04.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_3_93.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGessaymacros.pl", "PGML.pl", "parserRadioButtons.pl", @@ -46,11 +46,11 @@ $radio = RadioButtons( # Main text BEGIN_PGML -Answer the following true/false question and then explain your reasoning. +Answer the following true/false question and then explain your reasoning. True or false? "When you are checking for critical points, you also need to determine points where `f^\prime (x)` is undefined. " - [_________________]{$radio} + [_________________]{$radio} Please explain your reasoning in the answer box below. diff --git a/Contrib/CCCS/CalculusOne/04.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_3_94.pg b/Contrib/CCCS/CalculusOne/04.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_3_94.pg index f507e5acb8..352e1488b1 100644 --- a/Contrib/CCCS/CalculusOne/04.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_3_94.pg +++ b/Contrib/CCCS/CalculusOne/04.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_3_94.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGessaymacros.pl", "PGML.pl", "PGcourse.pl", @@ -49,7 +49,7 @@ $radio2 = RadioButtons( # Main text BEGIN_PGML -Answer the following questions and then explain your reasoning for each. +Answer the following questions and then explain your reasoning for each. (a) Can you have a finite absolute maximum for [`y=ax^2+bx+c`] over the interval [`(-\infty, \infty)`] assuming `a` is nonzero? diff --git a/Contrib/CCCS/CalculusOne/04.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_3_98.pg b/Contrib/CCCS/CalculusOne/04.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_3_98.pg index ef0d7e0d2e..938c38ab20 100644 --- a/Contrib/CCCS/CalculusOne/04.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_3_98.pg +++ b/Contrib/CCCS/CalculusOne/04.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_3_98.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGessaymacros.pl", "PGML.pl", "PGcourse.pl", @@ -50,11 +50,11 @@ BEGIN_PGML -Is it possible to have no absolute minimum or maximum for a function? +Is it possible to have no absolute minimum or maximum for a function? [_________________]{$radio} -If so, construct such a function and write the function in the box below. If not, explain why it is not possible in the answer box below. +If so, construct such a function and write the function in the box below. If not, explain why it is not possible in the answer box below. [@ ANS(essay_cmp); essay_box(5,50) @]* diff --git a/Contrib/CCCS/CalculusOne/04.4/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_4_153.pg b/Contrib/CCCS/CalculusOne/04.4/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_4_153.pg index a027baf9c9..bebfa4d110 100644 --- a/Contrib/CCCS/CalculusOne/04.4/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_4_153.pg +++ b/Contrib/CCCS/CalculusOne/04.4/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_4_153.pg @@ -25,7 +25,7 @@ loadMacros( "PGchoicemacros.pl",, "contextLimitedRadical.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -61,7 +61,7 @@ BEGIN_PGML Determine over what intervals (if any) the Mean Value Theorem applies to the function [`f(x)=[$f1]`]. -The intervals over which the Mean Value Theorem applies to [`f(x)`] are [________________]{$ans} [@ AnswerFormatHelp("intervals") @]* +The intervals over which the Mean Value Theorem applies to [`f(x)`] are [________________]{$ans} [@ helpLink("intervals") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/04.4/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_4_157.pg b/Contrib/CCCS/CalculusOne/04.4/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_4_157.pg index 7ab9a11b3c..df4fa3099d 100644 --- a/Contrib/CCCS/CalculusOne/04.4/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_4_157.pg +++ b/Contrib/CCCS/CalculusOne/04.4/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_4_157.pg @@ -25,7 +25,7 @@ loadMacros( "PGchoicemacros.pl",, "contextLimitedRadical.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + "AppletObjects.pl", "PGML.pl", "PGgraphmacros.pl", @@ -55,7 +55,7 @@ HEADER_TEXT(MODES( )); $desmos_div = MODES( - HTML=>qq(
), + HTML=>qq(
), TeX=>'Interactive graph best viewed online' ); @@ -76,10 +76,10 @@ $f2=Formula("($a+$b)*x+$c")->reduce; BEGIN_PGML -Below is the graph [``f(x)=[$f1]``] and the secant line connecting the endpoints over the interval [`[a,b]=[-1,1]`]. Determine the number of points [`c`] that satisfy the conclusion of the Mean Value Theorem, [``f'(c) = \frac{f(b)-f(a)}{b-a}``]. +Below is the graph [``f(x)=[$f1]``] and the secant line connecting the endpoints over the interval [`[a,b]=[-1,1]`]. Determine the number of points [`c`] that satisfy the conclusion of the Mean Value Theorem, [``f'(c) = \frac{f(b)-f(a)}{b-a}``]. -The number of points [`c`] such that [``f'(c) = \frac{f(b)-f(a)}{b-a}``] is [________________]{2} [@ AnswerFormatHelp("numbers") @]* +The number of points [`c`] such that [``f'(c) = \frac{f(b)-f(a)}{b-a}``] is [________________]{2} [@ helpLink("numbers") @]* END_PGML @@ -120,10 +120,10 @@ TEXT( MODES(TeX=>'', HTML=><stamps( closed_circle(-1,0,'blue') ); $gr->stamps( closed_circle(-$a,0,'blue') ); #add function to graph -add_functions($gr, "(x+$a)(x+1)x(x-1)(x+1) for x in <-5,5>" . +add_functions($gr, "(x+$a)(x+1)x(x-1)(x+1) for x in <-5,5>" . " using color:blue and weight:3"); ($gr->fn)[0]->steps(200); @@ -125,9 +125,9 @@ The graph of [`f'(x)`] is given below. Use this graph to determine the intervals >>[@ image(insertGraph($gr), width=>300, height=>300), @]*<< -a) Interval(s) where [`f(x)`] is increasing: [_________________]{$ans1} [@ AnswerFormatHelp("intervals") @]* +a) Interval(s) where [`f(x)`] is increasing: [_________________]{$ans1} [@ helpLink("intervals") @]* -b) Interval(s) where [`f(x)`] is decreasing: [_________________]{$ans2} [@ AnswerFormatHelp("intervals") @]* +b) Interval(s) where [`f(x)`] is decreasing: [_________________]{$ans2} [@ helpLink("intervals") @]* diff --git a/Contrib/CCCS/CalculusOne/04.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_5_210.pg b/Contrib/CCCS/CalculusOne/04.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_5_210.pg index b1e2202ba9..0ac9cc5a22 100644 --- a/Contrib/CCCS/CalculusOne/04.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_5_210.pg +++ b/Contrib/CCCS/CalculusOne/04.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_5_210.pg @@ -24,7 +24,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -60,15 +60,15 @@ $int8=Compute("(-infinity,0)"); if ( $a == -2 ){ $inc = Union($int1, $int2); $dec= Union($int3, $int4); -} +} elsif ( $a ==-1 ){ $inc = Union($int5, $int2); $dec= Union($int6, $int4); -} +} else { $inc = Union ($int4, $int2); $dec = $int8; -} +} $gr = init_graph(-4,-4,4,4, axes=>[0,0], @@ -89,14 +89,14 @@ foreach my $i (-4..4) { } -#add points on graph +#add points on graph $gr->stamps( closed_circle(0,0,'blue') ); $gr->stamps( closed_circle(1,0,'blue') ); -add_functions($gr, "$f1 for x in <-4,1>". +add_functions($gr, "$f1 for x in <-4,1>". " using color:blue and weight:3"); -add_functions($gr, "0.5*(x-1) for x in <1,4>". +add_functions($gr, "0.5*(x-1) for x in <1,4>". " using color:blue and weight:3"); @@ -107,7 +107,7 @@ $gr->gifName($gr->gifName()."$in"); # define custom answer checker $incChecker = sub { - my ($correct,$student,$ansHash) = @_; + my ($correct,$student,$ansHash) = @_; # students often find intervals of increasing/decreasing for the function they see, not realizing they are looking at the derivative function and not the original function. @@ -117,7 +117,7 @@ return ($student == $inc ? 1 : 0); # return 1 if correct, 0 otherwise }; $decChecker = sub { - my ($correct,$student,$ansHash) = @_; + my ($correct,$student,$ansHash) = @_; # students often find intervals of increasing/decreasing for the function they see, not realizing they are looking at the derivative function and not the original function. @@ -139,9 +139,9 @@ The graph of [`f'(x)`] is given below. Use this graph to determine the intervals -a. Interval(s) where [`f(x)`] is increasing: [_________________]{$inc}[@ AnswerFormatHelp("intervals") @]* +a. Interval(s) where [`f(x)`] is increasing: [_________________]{$inc}[@ helpLink("intervals") @]* -b. Interval(s) where [`f(x)`] is decreasing: [_________________]{$dec} [@ AnswerFormatHelp("intervals") @]* +b. Interval(s) where [`f(x)`] is decreasing: [_________________]{$dec} [@ helpLink("intervals") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/04.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_5_213.pg b/Contrib/CCCS/CalculusOne/04.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_5_213.pg index e076313094..93761ca177 100644 --- a/Contrib/CCCS/CalculusOne/04.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_5_213.pg +++ b/Contrib/CCCS/CalculusOne/04.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_5_213.pg @@ -24,7 +24,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -54,13 +54,13 @@ if ( $a <0 ){ $dec= $int1; $winc = String("None"); $wdec = Interval("(-infinity, infinity)"); -} +} elsif ( $a >0 ){ $inc = $int1; $dec= $int2; $winc = Interval("(-infinity, infinity)"); $wdec = String("None"); -} +} $gr = init_graph(-5,-5,5,5, axes=>[0,0], @@ -82,7 +82,7 @@ foreach my $i (-5..5) { $gr->stamps( closed_circle($b,0,'blue') ); -add_functions($gr, "$a*(x-$b)^3 for x in <-5,5>" . +add_functions($gr, "$a*(x-$b)^3 for x in <-5,5>" . " using color:blue and weight:3"); @@ -94,7 +94,7 @@ $gr->gifName($gr->gifName()."$in"); # define custom answer checker $incChecker = sub { - my ($correct,$student,$ansHash) = @_; + my ($correct,$student,$ansHash) = @_; # students often find intervals of increasing/decreasing for the function they see, not realizing they are looking at the derivative function and not the original function. @@ -104,7 +104,7 @@ return ($student == $inc ? 1 : 0); # return 1 if correct, 0 otherwise }; $decChecker = sub { - my ($correct,$student,$ansHash) = @_; + my ($correct,$student,$ansHash) = @_; # students often find intervals of increasing/decreasing for the function they see, not realizing they are looking at the derivative function and not the original function. @@ -126,9 +126,9 @@ The graph of [`f'(x)`] is given below. Use this graph to determine the intervals >>[@ image(insertGraph($gr), width=>300, height=>300), @]*<< -a. Interval(s) where [`f(x)`] is increasing: [_________________] [@ AnswerFormatHelp("intervals") @]* +a. Interval(s) where [`f(x)`] is increasing: [_________________] [@ helpLink("intervals") @]* -b. Interval(s) where [`f(x)`] is decreasing: [_________________] [@ AnswerFormatHelp("intervals") @]* +b. Interval(s) where [`f(x)`] is decreasing: [_________________] [@ helpLink("intervals") @]* diff --git a/Contrib/CCCS/CalculusOne/04.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_5_214.pg b/Contrib/CCCS/CalculusOne/04.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_5_214.pg index 71a13fae0c..5a90102fc6 100644 --- a/Contrib/CCCS/CalculusOne/04.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_5_214.pg +++ b/Contrib/CCCS/CalculusOne/04.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_5_214.pg @@ -24,7 +24,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -53,7 +53,7 @@ $inc=Compute("(-infinity,$b)"); #correct intervals of increasing/decreasing $dec=Compute("($b,$c) U ($c, infinity)"); $winc=Compute("($b+1,$c)"); #wrong intervals of increasing/decreasing $wdec=Compute("(-infinity, $b+1)U($c, infinity)"); -} +} else{ Context("Interval"); $inc=Compute("($b,$c)U($c, infinity)");#correct intervals of increasing/decreasing @@ -80,7 +80,7 @@ foreach my $i (-5..5) { $gr->lb( new Label(-0.1,2*$i, 2*$i, 'black', 'right', 'middle')); } -add_functions($gr, "$a*(x-$b)*(x-$c)*(x-$c) for x in <-10,10>" . +add_functions($gr, "$a*(x-$b)*(x-$c)*(x-$c) for x in <-10,10>" . " using color:blue and weight:3"); @@ -92,7 +92,7 @@ $gr->gifName($gr->gifName()."$in"); # define custom answer checker #$incChecker = sub { - #my ($correct,$student,$ansHash) = @_; + #my ($correct,$student,$ansHash) = @_; # students often find intervals of increasing/decreasing for the function they see, not realizing they are looking at the derivative function and not the original function. @@ -102,7 +102,7 @@ $gr->gifName($gr->gifName()."$in"); #}; #$decChecker = sub { -# my ($correct,$student,$ansHash) = @_; +# my ($correct,$student,$ansHash) = @_; # students often find intervals of increasing/decreasing for the function they see, not realizing they are looking at the derivative function and not the original function. @@ -125,9 +125,9 @@ The graph of [`f'(x)`] is given below. Use this graph to determine the intervals -a. Interval(s) where [`f(x)`] is increasing: [_________________]{$inc} [@ AnswerFormatHelp("intervals") @]* +a. Interval(s) where [`f(x)`] is increasing: [_________________]{$inc} [@ helpLink("intervals") @]* -b. Interval(s) where [`f(x)`] is decreasing: [_________________]{$dec} [@ AnswerFormatHelp("intervals") @]* +b. Interval(s) where [`f(x)`] is decreasing: [_________________]{$dec} [@ helpLink("intervals") @]* diff --git a/Contrib/CCCS/CalculusOne/04.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_5_217.pg b/Contrib/CCCS/CalculusOne/04.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_5_217.pg index ec1a2217a2..0908b395ab 100644 --- a/Contrib/CCCS/CalculusOne/04.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_5_217.pg +++ b/Contrib/CCCS/CalculusOne/04.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_5_217.pg @@ -21,14 +21,14 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", "parserPopUp.pl", "PGstandard.pl", "PGgraphmacros.pl", -"AnswerFormatHelp.pl", + "MathObjects.pl" # Math Object Macro ); Context()->variables->add(a => "Real"); @@ -69,7 +69,7 @@ grid=>[6,6], size=>[600,600] ); -###add points on graph +###add points on graph $gr1->stamps( closed_circle($b, .2*($b-$a)*($b-$a),'blue') ); $gr1->stamps( closed_circle($c, .2*($c-$a)*($c-$a),'blue') ); $gr1->stamps( closed_circle($d, .5*($d-$a-3)+1.8 ,'blue') ); @@ -87,24 +87,24 @@ $dgr4=Compute("-(($d-$a-3.5)^2)+0.85"); $gr4->stamps( closed_circle($d, $dgr4,'blue') ); ### -add_functions($gr1, ".2*(x-$a)^2 for x in <$b,$c>". +add_functions($gr1, ".2*(x-$a)^2 for x in <$b,$c>". " using color:blue and weight:3"); -add_functions($gr1, ".5(x-$a-3)+1.8 for x in <$c,$d>". +add_functions($gr1, ".5(x-$a-3)+1.8 for x in <$c,$d>". " using color:blue and weight:3"); -add_functions($gr2, "-.4*(x-$a)^2+2 for x in <$b,$c>". +add_functions($gr2, "-.4*(x-$a)^2+2 for x in <$b,$c>". " using color:blue and weight:3"); -add_functions($gr2, "2.8^(x-$a-2.8)-2.8 for x in <$c,$d>". +add_functions($gr2, "2.8^(x-$a-2.8)-2.8 for x in <$c,$d>". " using color:blue and weight:3"); -add_functions($gr3, "-.4(x-$a)^2+2 for x in <$b,$c>". +add_functions($gr3, "-.4(x-$a)^2+2 for x in <$b,$c>". " using color:blue and weight:3"); -add_functions($gr3, "ln(x-$a-2.8) for x in <$c,$d>". +add_functions($gr3, "ln(x-$a-2.8) for x in <$c,$d>". " using color:blue and weight:3"); -add_functions($gr4, ".4(x-$a)^2-3 for x in <$b,$c>". +add_functions($gr4, ".4(x-$a)^2-3 for x in <$b,$c>". " using color:blue and weight:3"); -add_functions($gr4, "-((x-$a-3.5)^2)+0.85 for x in <$c,$d>". +add_functions($gr4, "-((x-$a-3.5)^2)+0.85 for x in <$c,$d>". " using color:blue and weight:3"); @@ -134,13 +134,13 @@ Draw a graph of a function, [`f(x)`], that satisfies the following specification [`f''(x)<0`] for all [`x \neq [$c]`] -Which of the following graphs is a graph of [`f(x)`] that satisfies the given specifications on the interval [`[[$b],[$d]]`]? [_________________]{$popup1} +Which of the following graphs is a graph of [`f(x)`] that satisfies the given specifications on the interval [`[[$b],[$d]]`]? [_________________]{$popup1} ->>A. [@ image(insertGraph($gr1), width=>200, height=>200), @]* B. [@ image(insertGraph($gr2), width=>200, height=>200), @]* << +>>A. [@ image(insertGraph($gr1), width=>200, height=>200), @]* B. [@ image(insertGraph($gr2), width=>200, height=>200), @]* << >>C. [@ image(insertGraph($gr3), width=>200, height=>200), @]* D. [@ image(insertGraph($gr4), width=>200, height=>200), @]* << diff --git a/Contrib/CCCS/CalculusOne/04.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_5_218.pg b/Contrib/CCCS/CalculusOne/04.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_5_218.pg index 128827f12e..f96fe2dad7 100644 --- a/Contrib/CCCS/CalculusOne/04.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_5_218.pg +++ b/Contrib/CCCS/CalculusOne/04.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_5_218.pg @@ -21,14 +21,14 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", "parserPopUp.pl", "PGstandard.pl", "PGgraphmacros.pl", -"AnswerFormatHelp.pl", + "MathObjects.pl" # Math Object Macro ); Context()->variables->add(a => "Real"); @@ -64,28 +64,28 @@ grid=>[4,4], size=>[600,600] ); -add_functions($gr1, "(x+2)^2 for x in <-3,-1>". +add_functions($gr1, "(x+2)^2 for x in <-3,-1>". " using color:blue and weight:3"); -add_functions($gr1, "-x^2+2 for x in <-1,1>". +add_functions($gr1, "-x^2+2 for x in <-1,1>". " using color:blue and weight:3"); -add_functions($gr1, "(x-2)^2 for x in <1,3>". +add_functions($gr1, "(x-2)^2 for x in <1,3>". " using color:blue and weight:3"); -add_functions($gr2, "-(x+2)^2 for x in <-3,-1>". +add_functions($gr2, "-(x+2)^2 for x in <-3,-1>". " using color:blue and weight:3"); -add_functions($gr2, "x^2-2 for x in <-1,1>". +add_functions($gr2, "x^2-2 for x in <-1,1>". " using color:blue and weight:3"); -add_functions($gr2, "-(x-2)^2 for x in <1,3>". +add_functions($gr2, "-(x-2)^2 for x in <1,3>". " using color:blue and weight:3"); -add_functions($gr3, "-(x+2)^2+2 for x in <-3,-1>". +add_functions($gr3, "-(x+2)^2+2 for x in <-3,-1>". " using color:blue and weight:3"); -add_functions($gr3, "-x^2+2 for x in <-1,1>". +add_functions($gr3, "-x^2+2 for x in <-1,1>". " using color:blue and weight:3"); -add_functions($gr3, "-(x-2)^2+2 for x in <1,3>". +add_functions($gr3, "-(x-2)^2+2 for x in <1,3>". " using color:blue and weight:3"); -add_functions($gr4, "sin(x) for x in <-3,3>". +add_functions($gr4, "sin(x) for x in <-3,3>". " using color:blue and weight:3"); @@ -118,13 +118,13 @@ Local maximum at [`x=0`] Local minimum at [`x=2`], and [` x=-2`] -Which of the following graphs satisfies the given specifications on the interval [`[-3,3]`]? [_________________]{$popup1} +Which of the following graphs satisfies the given specifications on the interval [`[-3,3]`]? [_________________]{$popup1} ->>A. [@ image(insertGraph($gr2), width=>200, height=>200), @]* B. [@ image(insertGraph($gr3), width=>200, height=>200), @]* << +>>A. [@ image(insertGraph($gr2), width=>200, height=>200), @]* B. [@ image(insertGraph($gr3), width=>200, height=>200), @]* << >>C. [@ image(insertGraph($gr4), width=>200, height=>200), @]* D. [@ image(insertGraph($gr1), width=>200, height=>200), @]* << diff --git a/Contrib/CCCS/CalculusOne/04.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_5_226.pg b/Contrib/CCCS/CalculusOne/04.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_5_226.pg index 42cb2e75fa..4315ec74b6 100644 --- a/Contrib/CCCS/CalculusOne/04.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_5_226.pg +++ b/Contrib/CCCS/CalculusOne/04.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_5_226.pg @@ -24,7 +24,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -113,24 +113,24 @@ $gr1->gifName($gr1->gifName()."$in"); BEGIN_PGML -For the function [`f(x)= [$f1]`], find intervals where [`f(x)`] is increasing or decreasing, points of local maxima and minima of [`f(x)`], intervals where [`f(x)`] is concave up or concave down, and the inflection points of [`f(x)`]. +For the function [`f(x)= [$f1]`], find intervals where [`f(x)`] is increasing or decreasing, points of local maxima and minima of [`f(x)`], intervals where [`f(x)`] is concave up or concave down, and the inflection points of [`f(x)`]. (Use a comma to separate points. Enter 'NONE' if there are none.) -a. Interval(s) where [`f(x)`] is increasing: [_________________]{$inc} [@ AnswerFormatHelp("intervals") @]* +a. Interval(s) where [`f(x)`] is increasing: [_________________]{$inc} [@ helpLink("intervals") @]* -b. Interval(s) where [`f(x)`] is decreasing: [_________________]{$dec} [@ AnswerFormatHelp("intervals") @]* +b. Interval(s) where [`f(x)`] is decreasing: [_________________]{$dec} [@ helpLink("intervals") @]* -c. Point(s) of local maxima of [`f(x)`]: [_________________]{("NONE")} [@ AnswerFormatHelp("points") @]* +c. Point(s) of local maxima of [`f(x)`]: [_________________]{("NONE")} [@ helpLink("points") @]* -d. Point(s) of local minima of [`f(x)`]: [_________________]{$min} [@ AnswerFormatHelp("points") @]* +d. Point(s) of local minima of [`f(x)`]: [_________________]{$min} [@ helpLink("points") @]* -e. Interval(s) where [`f(x)`] is concave up: [_________________]{$conup} [@ AnswerFormatHelp("intervals") @]* +e. Interval(s) where [`f(x)`] is concave up: [_________________]{$conup} [@ helpLink("intervals") @]* -f. Interval(s) where [`f(x)`] is concave down: [_________________]{$condown} [@ AnswerFormatHelp("intervals") @]* +f. Interval(s) where [`f(x)`] is concave down: [_________________]{$condown} [@ helpLink("intervals") @]* -g. Inflection point(s) of [`f(x)`]: [_________________]{$infpoints} [@ AnswerFormatHelp("points") @]* +g. Inflection point(s) of [`f(x)`]: [_________________]{$infpoints} [@ helpLink("points") @]* @@ -138,7 +138,7 @@ END_PGML ################################# BEGIN_PGML_HINT -Example: For the function [`f(x)= \frac{1}{3}x^3-4x`], find intervals where [`f(x)`] is increasing or decreasing, points of local maxima and minima of [`f(x)`], intervals where [`f(x)`] is concave up or concave down, and the inflection points of [`f(x)`]. +Example: For the function [`f(x)= \frac{1}{3}x^3-4x`], find intervals where [`f(x)`] is increasing or decreasing, points of local maxima and minima of [`f(x)`], intervals where [`f(x)`] is concave up or concave down, and the inflection points of [`f(x)`]. Solution: diff --git a/Contrib/CCCS/CalculusOne/04.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_5_228.pg b/Contrib/CCCS/CalculusOne/04.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_5_228.pg index 6cbab74247..7ec5438a96 100644 --- a/Contrib/CCCS/CalculusOne/04.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_5_228.pg +++ b/Contrib/CCCS/CalculusOne/04.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_5_228.pg @@ -24,7 +24,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -89,19 +89,19 @@ For the function [`f(x)= [$f1]`], find intervals where [`f(x)`] is increasing or (Use a comma to separate points. Enter 'NONE' if there are none.) -a. Interval(s) where [`f(x)`] is increasing: [_________________]{$inc} [@ AnswerFormatHelp("intervals") @]* +a. Interval(s) where [`f(x)`] is increasing: [_________________]{$inc} [@ helpLink("intervals") @]* -b. Interval(s) where [`f(x)`] is decreasing: [_________________]{$dec} [@ AnswerFormatHelp("intervals") @]* +b. Interval(s) where [`f(x)`] is decreasing: [_________________]{$dec} [@ helpLink("intervals") @]* -c. Point(s) of local maxima of [`f(x)`]: [_________________]{$max} [@ AnswerFormatHelp("points") @]* +c. Point(s) of local maxima of [`f(x)`]: [_________________]{$max} [@ helpLink("points") @]* -d. Point(s) of local minima of [`f(x)`]: [_________________]{$min} [@ AnswerFormatHelp("points") @]* +d. Point(s) of local minima of [`f(x)`]: [_________________]{$min} [@ helpLink("points") @]* -e. Interval(s) where [`f(x)`] is concave up: [_________________]{$conup} [@ AnswerFormatHelp("intervals") @]* +e. Interval(s) where [`f(x)`] is concave up: [_________________]{$conup} [@ helpLink("intervals") @]* -f. Intervals where [`f(x)`] is concave down: [_________________]{$condown} [@ AnswerFormatHelp("intervals") @]* +f. Intervals where [`f(x)`] is concave down: [_________________]{$condown} [@ helpLink("intervals") @]* -g. Inflection point(s) of [`f(x)`]: [_________________]{$infpoints} [@ AnswerFormatHelp("points") @]* +g. Inflection point(s) of [`f(x)`]: [_________________]{$infpoints} [@ helpLink("points") @]* diff --git a/Contrib/CCCS/CalculusOne/04.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_5_234.pg b/Contrib/CCCS/CalculusOne/04.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_5_234.pg index 741992261a..9b2822d711 100644 --- a/Contrib/CCCS/CalculusOne/04.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_5_234.pg +++ b/Contrib/CCCS/CalculusOne/04.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_5_234.pg @@ -24,7 +24,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -83,19 +83,19 @@ For the function [`f(x)= [$f1]`], find intervals where [`f(x)`] is increasing or (Use a comma to separate points. Enter 'NONE' if there are none.) -a. Intervals where [`f(x)`] is increasing: [_________________]{$inc} [@ AnswerFormatHelp("intervals") @]* +a. Intervals where [`f(x)`] is increasing: [_________________]{$inc} [@ helpLink("intervals") @]* -b. Intervals where [`f(x)`] is decreasing: [_________________]{$dec} [@ AnswerFormatHelp("intervals") @]* +b. Intervals where [`f(x)`] is decreasing: [_________________]{$dec} [@ helpLink("intervals") @]* -c. Point(s) of local maxima of [`f(x)`]: [_________________]{$max} [@ AnswerFormatHelp("points") @]* +c. Point(s) of local maxima of [`f(x)`]: [_________________]{$max} [@ helpLink("points") @]* -d. Point(s) of local minima of [`f(x)`]: [_________________]{$min} [@ AnswerFormatHelp("points") @]* +d. Point(s) of local minima of [`f(x)`]: [_________________]{$min} [@ helpLink("points") @]* -e. Intervals where [`f(x)`] is concave up: [________________________________]{$conup} [@ AnswerFormatHelp("intervals") @]* +e. Intervals where [`f(x)`] is concave up: [________________________________]{$conup} [@ helpLink("intervals") @]* -f. Intervals where [`f(x)`] is concave down: [________________________________]{$condown} [@ AnswerFormatHelp("intervals") @]* +f. Intervals where [`f(x)`] is concave down: [________________________________]{$condown} [@ helpLink("intervals") @]* -g. Inflection point(s) of [`f(x)`]: [________________________________]{$infpoints} [@ AnswerFormatHelp("points") @]* +g. Inflection point(s) of [`f(x)`]: [________________________________]{$infpoints} [@ helpLink("points") @]* diff --git a/Contrib/CCCS/CalculusOne/04.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_5_241.pg b/Contrib/CCCS/CalculusOne/04.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_5_241.pg index 4ff17a5977..ada431a983 100644 --- a/Contrib/CCCS/CalculusOne/04.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_5_241.pg +++ b/Contrib/CCCS/CalculusOne/04.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_5_241.pg @@ -24,7 +24,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserRadioButtons.pl", @@ -57,7 +57,7 @@ BEGIN_PGML Interpret the following sentence in terms of [`f, f'`], and [`f''`]. -"The population is growing more slowly." Here [`f`] is the population. +"The population is growing more slowly." Here [`f`] is the population. [_________]{$ans} diff --git a/Contrib/CCCS/CalculusOne/04.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_5_246_250.pg b/Contrib/CCCS/CalculusOne/04.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_5_246_250.pg index 2d64cc2437..2f4f6c1615 100644 --- a/Contrib/CCCS/CalculusOne/04.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_5_246_250.pg +++ b/Contrib/CCCS/CalculusOne/04.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_5_246_250.pg @@ -24,7 +24,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -87,7 +87,7 @@ $ans5=$false->cmp() ->withPostFilter(AnswerHints( BEGIN_PGML -Consider a third degree polynomial [`f(x)`], which has the properties that [`f'(1)=0`] and [`f'(3)=0`]. Determine whether the following statements must be true or false. Type 'T' for true and type 'F' for false. +Consider a third degree polynomial [`f(x)`], which has the properties that [`f'(1)=0`] and [`f'(3)=0`]. Determine whether the following statements must be true or false. Type 'T' for true and type 'F' for false. a) "`f(x)=0` for some `1 \leq x \leq 3`." [_________]{$ans1} diff --git a/Contrib/CCCS/CalculusOne/04.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_6_254.pg b/Contrib/CCCS/CalculusOne/04.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_6_254.pg index 9570139826..fdd285ffed 100644 --- a/Contrib/CCCS/CalculusOne/04.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_6_254.pg +++ b/Contrib/CCCS/CalculusOne/04.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_6_254.pg @@ -24,7 +24,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -38,7 +38,7 @@ loadMacros( "extraAnswerEvaluators.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + ); TEXT(beginproblem()); @@ -110,7 +110,7 @@ Examine the graph of [`f(x)`] shown below. Identify where the vertical asymptote -The vertical asymptote(s) are located at [`x=`][_________________]{$ans} (use a comma to separate answers). +The vertical asymptote(s) are located at [`x=`][_________________]{$ans} (use a comma to separate answers). diff --git a/Contrib/CCCS/CalculusOne/04.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_6_259.pg b/Contrib/CCCS/CalculusOne/04.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_6_259.pg index 23cb03b046..21c3af785d 100644 --- a/Contrib/CCCS/CalculusOne/04.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_6_259.pg +++ b/Contrib/CCCS/CalculusOne/04.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_6_259.pg @@ -24,7 +24,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "parserPopUp.pl", "PGML.pl", diff --git a/Contrib/CCCS/CalculusOne/04.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_6_264.pg b/Contrib/CCCS/CalculusOne/04.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_6_264.pg index 912bcddab8..12b2978bfa 100644 --- a/Contrib/CCCS/CalculusOne/04.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_6_264.pg +++ b/Contrib/CCCS/CalculusOne/04.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_6_264.pg @@ -24,7 +24,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", @@ -56,19 +56,19 @@ $bottom=Formula("$c*x^2+$d*x+$e")->reduce; if ( $a <0 and $c<0 ){ $ans=$ninf, $ans1=$inf -} +} elsif ( $a <0 and $c>0 ){ $ans=$inf, $ans1=$ninf -} +} elsif ( $a >0 and $c>0 ){ $ans=$ninf, $ans1=$inf -} +} elsif ( $a >0 and $c<0 ){ $ans=$inf, $ans1=$ninf -} +} @@ -77,13 +77,13 @@ elsif ( $a >0 and $c<0 ){ BEGIN_PGML -Evaluate the following limits. (Enter "DNE" if the limit does not exist) +Evaluate the following limits. (Enter "DNE" if the limit does not exist) -a. [`\displaystyle \lim_{x\rightarrow \infty}\frac{[$top]}{[$bottom]} = `][________________]{$ans1}[@ AnswerFormatHelp("numbers") @]* +a. [`\displaystyle \lim_{x\rightarrow \infty}\frac{[$top]}{[$bottom]} = `][________________]{$ans1}[@ helpLink("numbers") @]* -b. [`\displaystyle \lim_{x\rightarrow -\infty}\frac{[$top]}{[$bottom]} = `][________________]{$ans}[@ AnswerFormatHelp("numbers") @]* +b. [`\displaystyle \lim_{x\rightarrow -\infty}\frac{[$top]}{[$bottom]} = `][________________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/04.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_6_265.pg b/Contrib/CCCS/CalculusOne/04.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_6_265.pg index 2489dcbbaa..2a6e27a7cb 100644 --- a/Contrib/CCCS/CalculusOne/04.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_6_265.pg +++ b/Contrib/CCCS/CalculusOne/04.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_6_265.pg @@ -24,7 +24,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", @@ -61,10 +61,10 @@ BEGIN_PGML Evaluate the following limits. (Enter "DNE" if the limit does not exist) -a. [`\displaystyle \lim_{x\rightarrow \infty}\frac{[$top]}{[$bottom]} = `][________________]{$ans}[@ AnswerFormatHelp("numbers") @]* +a. [`\displaystyle \lim_{x\rightarrow \infty}\frac{[$top]}{[$bottom]} = `][________________]{$ans}[@ helpLink("numbers") @]* -b. [`\displaystyle \lim_{x\rightarrow -\infty}\frac{[$top]}{[$bottom]} = `][________________]{$ans}[@ AnswerFormatHelp("numbers") @]* +b. [`\displaystyle \lim_{x\rightarrow -\infty}\frac{[$top]}{[$bottom]} = `][________________]{$ans}[@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CalculusOne/04.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_6_267.pg b/Contrib/CCCS/CalculusOne/04.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_6_267.pg index 5b1ea039bf..37312e5847 100644 --- a/Contrib/CCCS/CalculusOne/04.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_6_267.pg +++ b/Contrib/CCCS/CalculusOne/04.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_6_267.pg @@ -24,7 +24,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", @@ -59,11 +59,11 @@ BEGIN_PGML Evaluate the following limits. (Enter "DNE" if the limit does not exist) -a. [`\displaystyle \lim_{x\rightarrow \infty}\frac{[$top]}{[$bottom]} = `][________________]{$ans1}[@ AnswerFormatHelp("numbers") @]* +a. [`\displaystyle \lim_{x\rightarrow \infty}\frac{[$top]}{[$bottom]} = `][________________]{$ans1}[@ helpLink("numbers") @]* -b. [`\displaystyle \lim_{x\rightarrow -\infty}\frac{[$top]}{[$bottom]} = `][________________]{$ans2}[@ AnswerFormatHelp("numbers") @]* +b. [`\displaystyle \lim_{x\rightarrow -\infty}\frac{[$top]}{[$bottom]} = `][________________]{$ans2}[@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CalculusOne/04.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_6_270.pg b/Contrib/CCCS/CalculusOne/04.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_6_270.pg index cf0eefc365..a804fb8aa9 100644 --- a/Contrib/CCCS/CalculusOne/04.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_6_270.pg +++ b/Contrib/CCCS/CalculusOne/04.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_6_270.pg @@ -24,7 +24,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextLimitedPoint.pl", @@ -62,11 +62,11 @@ BEGIN_PGML Evaluate the following limits. (Enter "DNE" if the limit does not exist) -a. [`\displaystyle \lim_{x\rightarrow \infty}\frac{[$top]}{[$bottom]} = `][________________]{$ans1}[@ AnswerFormatHelp("numbers") @]* +a. [`\displaystyle \lim_{x\rightarrow \infty}\frac{[$top]}{[$bottom]} = `][________________]{$ans1}[@ helpLink("numbers") @]* -b. [`\displaystyle \lim_{x\rightarrow -\infty}\frac{[$top]}{[$bottom]} = `][________________]{$ans2}[@ AnswerFormatHelp("numbers") @]* +b. [`\displaystyle \lim_{x\rightarrow -\infty}\frac{[$top]}{[$bottom]} = `][________________]{$ans2}[@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CalculusOne/04.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_6_272.pg b/Contrib/CCCS/CalculusOne/04.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_6_272.pg index 71832d62d7..76b65f8a47 100644 --- a/Contrib/CCCS/CalculusOne/04.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_6_272.pg +++ b/Contrib/CCCS/CalculusOne/04.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_6_272.pg @@ -24,7 +24,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "parserPopUp.pl", "PGML.pl", @@ -61,9 +61,9 @@ BEGIN_PGML For the function [``f(x) = \frac{1}{[$bottom]}``], find the horizontal and vertical asymptotes. If there are more than one, enter a comma separated list. If there are none enter 'NONE'. -a. The horizontal asymptotes of [`f(x)`] are [`y=`] [________________]{$ansh}[@ AnswerFormatHelp("numbers") @]* +a. The horizontal asymptotes of [`f(x)`] are [`y=`] [________________]{$ansh}[@ helpLink("numbers") @]* -b. The vertical asymptotes of [`f(x)`] are [`x=`] [________________]{$ansv}[@ AnswerFormatHelp("numbers") @]* +b. The vertical asymptotes of [`f(x)`] are [`x=`] [________________]{$ansv}[@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CalculusOne/04.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_6_273.pg b/Contrib/CCCS/CalculusOne/04.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_6_273.pg index f90615eb1c..2490eb69b9 100644 --- a/Contrib/CCCS/CalculusOne/04.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_6_273.pg +++ b/Contrib/CCCS/CalculusOne/04.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_6_273.pg @@ -24,7 +24,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "parserPopUp.pl", "PGML.pl", @@ -62,9 +62,9 @@ BEGIN_PGML For the function [``f(x) = \frac{x^3}{[$bottom]}``], find the horizontal and vertical asymptotes. If there are more than one, enter a comma separated list. If there are none enter 'NONE'. -a. The horizontal asymptotes of [`f(x)`] are [`y=`] [________________]{$ansh}[@ AnswerFormatHelp("numbers") @]* +a. The horizontal asymptotes of [`f(x)`] are [`y=`] [________________]{$ansh}[@ helpLink("numbers") @]* -b. The vertical asymptotes of [`f(x)`] are [`x=`] [________________]{$ansv}[@ AnswerFormatHelp("numbers") @]* +b. The vertical asymptotes of [`f(x)`] are [`x=`] [________________]{$ansv}[@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CalculusOne/04.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_6_274.pg b/Contrib/CCCS/CalculusOne/04.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_6_274.pg index 9e78e08317..dfec57db4f 100644 --- a/Contrib/CCCS/CalculusOne/04.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_6_274.pg +++ b/Contrib/CCCS/CalculusOne/04.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_6_274.pg @@ -24,7 +24,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "parserPopUp.pl", "PGML.pl", @@ -65,9 +65,9 @@ BEGIN_PGML For the function [``f(x) = \frac{[$top]}{[$bottom]}``], find the horizontal and vertical asymptotes. If there are more than one, enter a comma separated list. If there are none enter 'NONE'. -a. The horizontal asymptotes of [`f(x)`] are [`y=`] [________________]{$ansh}[@ AnswerFormatHelp("numbers") @]* +a. The horizontal asymptotes of [`f(x)`] are [`y=`] [________________]{$ansh}[@ helpLink("numbers") @]* -b. The vertical asymptotes of [`f(x)`] are [`x=`] [________________]{$ansv}[@ AnswerFormatHelp("numbers") @]* +b. The vertical asymptotes of [`f(x)`] are [`x=`] [________________]{$ansv}[@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CalculusOne/04.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_6_284.pg b/Contrib/CCCS/CalculusOne/04.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_6_284.pg index ee91a45375..882e0a9fc0 100644 --- a/Contrib/CCCS/CalculusOne/04.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_6_284.pg +++ b/Contrib/CCCS/CalculusOne/04.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_6_284.pg @@ -24,7 +24,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "parserPopUp.pl", "PGML.pl", @@ -65,9 +65,9 @@ BEGIN_PGML For the function [``g(x) = \frac{[$a]}{x} - \sqrt{x}``], find the horizontal and vertical asymptotes. If there are more than one, enter a comma separated list. If there are none enter 'NONE'. -a. The horizontal asymptotes of [`g(x)`] are [`y=`] [________________]{$ansh}[@ AnswerFormatHelp("numbers") @]* +a. The horizontal asymptotes of [`g(x)`] are [`y=`] [________________]{$ansh}[@ helpLink("numbers") @]* -b. The vertical asymptotes of [`g(x)`] are [`x=`] [________________]{$ansv}[@ AnswerFormatHelp("numbers") @]* +b. The vertical asymptotes of [`g(x)`] are [`x=`] [________________]{$ansv}[@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CalculusOne/04.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_6_287.pg b/Contrib/CCCS/CalculusOne/04.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_6_287.pg index f4c2c9ad2e..5b40821c3c 100644 --- a/Contrib/CCCS/CalculusOne/04.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_6_287.pg +++ b/Contrib/CCCS/CalculusOne/04.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_6_287.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -72,11 +72,11 @@ Construct the following rational functions. a. Construct a rational function whose only asymptotes are `y=[$a]` and `x=[$b]`, and whose `x` intercept is `([$axint],0)` and `y` intercept is `(0,[$ayint])`. -`f(x)=`[________________]{$ans1}[@ AnswerFormatHelp("formulas") @]* +`f(x)=`[________________]{$ans1}[@ helpLink("formulas") @]* - b. Construct a rational function whose only asymptotes are `y=0, x=[$d]`, and `x=[$e]`, and whose `x` intercept is `([$bxint],0)` and whose `y` intercept is `(0, [$byint])`. + b. Construct a rational function whose only asymptotes are `y=0, x=[$d]`, and `x=[$e]`, and whose `x` intercept is `([$bxint],0)` and whose `y` intercept is `(0, [$byint])`. -`f(x)=`[________________]{$ans2}[@ AnswerFormatHelp("formulas") @]* +`f(x)=`[________________]{$ans2}[@ helpLink("formulas") @]* diff --git a/Contrib/CCCS/CalculusOne/04.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_6_293.pg b/Contrib/CCCS/CalculusOne/04.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_6_293.pg index 1494c26ead..54eae433e7 100644 --- a/Contrib/CCCS/CalculusOne/04.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_6_293.pg +++ b/Contrib/CCCS/CalculusOne/04.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_6_293.pg @@ -24,7 +24,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "AppletObjects.pl", "PGcourse.pl", @@ -50,7 +50,7 @@ HEADER_TEXT(MODES( )); $desmos_div = MODES( - HTML=>qq(
), + HTML=>qq(
), TeX=>'Interactive graph best viewed online' ); @@ -76,7 +76,7 @@ BEGIN_PGML Use the graphing calculator below to graph the function [``f(x) = \frac{[$top]}{[$bottom]}``] and use the graph to evaluate [`` \lim_{x\rightarrow \infty}\frac{[$top]}{[$bottom]}``]. - [``\lim_{x\rightarrow \infty}\frac{[$top]}{[$bottom]}= ``][________________]{$ans1}[@ AnswerFormatHelp("numbers") @]* + [``\lim_{x\rightarrow \infty}\frac{[$top]}{[$bottom]}= ``][________________]{$ans1}[@ helpLink("numbers") @]* @@ -107,10 +107,10 @@ TEXT( MODES(TeX=>'', HTML=><[8,8], size=>[600,600] ); -add_functions($gr1, "-x^3+$a*x^2+$b for x in <-8,8>". +add_functions($gr1, "-x^3+$a*x^2+$b for x in <-8,8>". " using color:blue and weight:3"); -add_functions($gr2, "x^2+$a for x in <-8,8>" . +add_functions($gr2, "x^2+$a for x in <-8,8>" . " using color:blue and weight:3"); -add_functions($gr3, "$a*x^3+$b for x in <-8,8>" . +add_functions($gr3, "$a*x^3+$b for x in <-8,8>" . " using color:blue and weight:3"); -add_functions($gr4, "x^3-$a*x^2+$b for x in <-8,8>" . +add_functions($gr4, "x^3-$a*x^2+$b for x in <-8,8>" . " using color:blue and weight:3"); Context("Numeric"); @@ -132,26 +132,26 @@ BEGIN_PGML For the function [`f(x) = [$fun]`], identify extrema, intervals of increasing and decreasing, intervals of concavity, inflection points, and asymptotes. Then sketch a graph of the function [`f(x)`]. -a. Local maximum is at the point(s) [________________]{$max} (enter ordered pair(s) or 'NONE') [@ AnswerFormatHelp("points") @]* +a. Local maximum is at the point(s) [________________]{$max} (enter ordered pair(s) or 'NONE') [@ helpLink("points") @]* -b. Local minimum is at the point(s) [________________]{$min} (enter ordered pair(s) or 'NONE') [@ AnswerFormatHelp("points") @]* +b. Local minimum is at the point(s) [________________]{$min} (enter ordered pair(s) or 'NONE') [@ helpLink("points") @]* -c. Interval(s) of increasing [________________]{$inc} (enter interval(s) or 'NONE') [@ AnswerFormatHelp("intervals") @]* +c. Interval(s) of increasing [________________]{$inc} (enter interval(s) or 'NONE') [@ helpLink("intervals") @]* -d. Interval(s) of decreasing [________________]{$dec} (enter interval(s) or 'NONE') [@ AnswerFormatHelp("intervals") @]* +d. Interval(s) of decreasing [________________]{$dec} (enter interval(s) or 'NONE') [@ helpLink("intervals") @]* -e. Interval(s) of concave up [________________]{$conup} (enter interval(s) or 'NONE') [@ AnswerFormatHelp("intervals") @]* +e. Interval(s) of concave up [________________]{$conup} (enter interval(s) or 'NONE') [@ helpLink("intervals") @]* -f. Interval(s) of concave down [________________]{$condown} (enter interval(s) or 'NONE') [@ AnswerFormatHelp("intervals") @]* +f. Interval(s) of concave down [________________]{$condown} (enter interval(s) or 'NONE') [@ helpLink("intervals") @]* -g. Horizontal asymptote(s) are [`y=`] [________________]{$asymp} (enter a comma separated list or 'NONE') [@ AnswerFormatHelp("numbers") @]* +g. Horizontal asymptote(s) are [`y=`] [________________]{$asymp} (enter a comma separated list or 'NONE') [@ helpLink("numbers") @]* -h. Vertical asymptote(s) are [`x=`] [________________]{$asymp} (enter a comma separated list or 'NONE') [@ AnswerFormatHelp("numbers") @]* +h. Vertical asymptote(s) are [`x=`] [________________]{$asymp} (enter a comma separated list or 'NONE') [@ helpLink("numbers") @]* -i. Which of the following is a graph of [`f(x)`]? [_________________]{$popup1} +i. Which of the following is a graph of [`f(x)`]? [_________________]{$popup1} ->>A. [@ image(insertGraph($gr1), width=>200, height=>200), @]* B. [@ image(insertGraph($gr2), width=>200, height=>200), @]* << +>>A. [@ image(insertGraph($gr1), width=>200, height=>200), @]* B. [@ image(insertGraph($gr2), width=>200, height=>200), @]* << >>C. [@ image(insertGraph($gr3), width=>200, height=>200), @]* D. [@ image(insertGraph($gr4), width=>200, height=>200), @]* << diff --git a/Contrib/CCCS/CalculusOne/04.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_6_301.pg b/Contrib/CCCS/CalculusOne/04.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_6_301.pg index edfa502453..9a64e639c1 100644 --- a/Contrib/CCCS/CalculusOne/04.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_6_301.pg +++ b/Contrib/CCCS/CalculusOne/04.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_6_301.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "parserPopUp.pl", "PGML.pl", @@ -92,16 +92,16 @@ grid=>[6,6], size=>[600,600] ); -add_functions($gr1, "cos(x)/($a*x) for x in <-8,8>". +add_functions($gr1, "cos(x)/($a*x) for x in <-8,8>". " using color:blue and weight:3"); -add_functions($gr2, "2/($a*x) for x in <-8,8>" . +add_functions($gr2, "2/($a*x) for x in <-8,8>" . " using color:blue and weight:3"); -add_functions($gr3, "sin(x)/($a*x) for x in <-8,8>" . +add_functions($gr3, "sin(x)/($a*x) for x in <-8,8>" . " using color:blue and weight:3"); -add_functions($gr4, "-2/($a*x)+$b for x in <-8,8>" . +add_functions($gr4, "-2/($a*x)+$b for x in <-8,8>" . " using color:blue and weight:3"); Context("Numeric"); @@ -126,16 +126,16 @@ $gr4->gifName($gr4->gifName()."$in"); BEGIN_PGML -For the function [``f(x) = [$fun]``], identify all asymptotes and then sketch a graph of the function [`f(x)`]. +For the function [``f(x) = [$fun]``], identify all asymptotes and then sketch a graph of the function [`f(x)`]. -a. Horizontal asymptote(s) are [`y=`] [________________]{$asymp} (enter a comma separated list or 'NONE') [@ AnswerFormatHelp("numbers") @]* +a. Horizontal asymptote(s) are [`y=`] [________________]{$asymp} (enter a comma separated list or 'NONE') [@ helpLink("numbers") @]* -b. Vertical asymptote(s) are [`x=`] [________________]{$asymp} (enter a comma separated list or 'NONE') [@ AnswerFormatHelp("numbers") @]* +b. Vertical asymptote(s) are [`x=`] [________________]{$asymp} (enter a comma separated list or 'NONE') [@ helpLink("numbers") @]* -c. Which of the following is a graph of [`f(x)`]? [_________________]{$popup1} +c. Which of the following is a graph of [`f(x)`]? [_________________]{$popup1} ->>A. [@ image(insertGraph($gr1), width=>200, height=>200), @]* B. [@ image(insertGraph($gr2), width=>200, height=>200), @]* << +>>A. [@ image(insertGraph($gr1), width=>200, height=>200), @]* B. [@ image(insertGraph($gr2), width=>200, height=>200), @]* << >>C. [@ image(insertGraph($gr3), width=>200, height=>200), @]* D. [@ image(insertGraph($gr4), width=>200, height=>200), @]* << diff --git a/Contrib/CCCS/CalculusOne/04.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_6_302.pg b/Contrib/CCCS/CalculusOne/04.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_6_302.pg index 1256770ad0..cdda6b6edd 100644 --- a/Contrib/CCCS/CalculusOne/04.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_6_302.pg +++ b/Contrib/CCCS/CalculusOne/04.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_6_302.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -37,7 +37,7 @@ loadMacros( "extraAnswerEvaluators.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + ); @@ -131,14 +131,14 @@ BEGIN_PGML For the function [``f(x) = [$fun]``], identify asymptotic behavior and then sketch a graph of the function [`f(x)`]. -a) Horizontal asymptote(s) are [`y=`] [________________]{0} (enter comma separated list or 'NONE') [@ AnswerFormatHelp("numbers") @]* +a) Horizontal asymptote(s) are [`y=`] [________________]{0} (enter comma separated list or 'NONE') [@ helpLink("numbers") @]* -b) Vertical asymptote(s) are [`x=`] [________________]{$a} (enter comma separated list or 'NONE') [@ AnswerFormatHelp("numbers") @]* +b) Vertical asymptote(s) are [`x=`] [________________]{$a} (enter comma separated list or 'NONE') [@ helpLink("numbers") @]* -c) Which of the following is a graph of [`f(x)`]? [_________________]{$popup1} +c) Which of the following is a graph of [`f(x)`]? [_________________]{$popup1} ->>A. [@ image(insertGraph($gr1), width=>200, height=>200), @]* B. [@ image(insertGraph($gr2), width=>200, height=>200), @]* << +>>A. [@ image(insertGraph($gr1), width=>200, height=>200), @]* B. [@ image(insertGraph($gr2), width=>200, height=>200), @]* << >>C. [@ image(insertGraph($gr3), width=>200, height=>200), @]* D. [@ image(insertGraph($gr4), width=>200, height=>200), @]* << diff --git a/Contrib/CCCS/CalculusOne/04.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_6_310.pg b/Contrib/CCCS/CalculusOne/04.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_6_310.pg index 0ac541a242..a276224d8d 100644 --- a/Contrib/CCCS/CalculusOne/04.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_6_310.pg +++ b/Contrib/CCCS/CalculusOne/04.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_6_310.pg @@ -24,7 +24,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", @@ -56,7 +56,7 @@ BEGIN_PGML Is the following statement true or false? Explain your reasoning. -"Every ratio of polynomial functions has vertical asymptotes." +"Every ratio of polynomial functions has vertical asymptotes." [_________________]{$radio} diff --git a/Contrib/CCCS/CalculusOne/04.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_7_313.pg b/Contrib/CCCS/CalculusOne/04.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_7_313.pg index 78cf14b47f..b8c46d727d 100644 --- a/Contrib/CCCS/CalculusOne/04.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_7_313.pg +++ b/Contrib/CCCS/CalculusOne/04.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_7_313.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGessaymacros.pl", "PGML.pl", "parserRadioButtons.pl", @@ -49,7 +49,7 @@ BEGIN_PGML True or false? "For every continuous nonlinear function, you can find the value of `x` that maximizes the function. " - [_________________]{$radio} + [_________________]{$radio} END_PGML diff --git a/Contrib/CCCS/CalculusOne/04.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_7_314.pg b/Contrib/CCCS/CalculusOne/04.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_7_314.pg index f021c012c0..aac526d4ec 100644 --- a/Contrib/CCCS/CalculusOne/04.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_7_314.pg +++ b/Contrib/CCCS/CalculusOne/04.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_7_314.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGessaymacros.pl", "PGML.pl", "parserRadioButtons.pl", @@ -50,7 +50,7 @@ BEGIN_PGML True or false? "For every continuous nonconstant function on a closed, finite domain, there exists at least one `x` that minimizes or maximizes the function." - [_________________]{$radio} + [_________________]{$radio} END_PGML diff --git a/Contrib/CCCS/CalculusOne/04.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_7_315.pg b/Contrib/CCCS/CalculusOne/04.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_7_315.pg index c2cc63466e..6ec794f0f6 100644 --- a/Contrib/CCCS/CalculusOne/04.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_7_315.pg +++ b/Contrib/CCCS/CalculusOne/04.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_7_315.pg @@ -21,11 +21,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGstandard.pl", -"MathObjects.pl" +"MathObjects.pl" ); Context()->variables->add(h => "Real"); Context()->variables->add(i => "Real"); @@ -52,9 +52,9 @@ BEGIN_PGML To carry a suitcase on an airplane, the length+width+height of the box must be less than or equal to [$a] inches. (a) Assuming the height is fixed, what is the maximum volume of the box in terms of the height, [`h`]? (b) What height allows you to have the maximum volume? -a. Assuming the height is fixed, the maximum volume of the box in terms of [`h`] is [`V=`] [____________________]{$ans1} [`in^3`]. [@ AnswerFormatHelp("formulas") @]* +a. Assuming the height is fixed, the maximum volume of the box in terms of [`h`] is [`V=`] [____________________]{$ans1} [`in^3`]. [@ helpLink("formulas") @]* -b. The height that allows the maximum volume is [`h=`] [____________]{$ans2} inches. [@ AnswerFormatHelp("numbers") @]* +b. The height that allows the maximum volume is [`h=`] [____________]{$ans2} inches. [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/04.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_7_316.pg b/Contrib/CCCS/CalculusOne/04.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_7_316.pg index 9a6db7f95b..59c5ae4c73 100644 --- a/Contrib/CCCS/CalculusOne/04.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_7_316.pg +++ b/Contrib/CCCS/CalculusOne/04.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_7_316.pg @@ -21,11 +21,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGstandard.pl", -"MathObjects.pl" +"MathObjects.pl" ); @@ -53,7 +53,7 @@ BEGIN_PGML You are constructing a box from a piece of cardboard with dimensions [$a] by [$a+2] meters. You cut equal-size squares from each corner of the cardboard so you may fold the edges to construct the open top box. What are the dimensions of the box with the largest volume? -The dimensions of the box with the largest volume are [______________]{$ans} meters. (Enter the answer as a list separated by commas.) [@ AnswerFormatHelp("numbers") @]* +The dimensions of the box with the largest volume are [______________]{$ans} meters. (Enter the answer as a list separated by commas.) [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/04.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_7_318.pg b/Contrib/CCCS/CalculusOne/04.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_7_318.pg index a95c2ceb8a..ff92b13063 100644 --- a/Contrib/CCCS/CalculusOne/04.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_7_318.pg +++ b/Contrib/CCCS/CalculusOne/04.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_7_318.pg @@ -21,11 +21,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGstandard.pl", -"MathObjects.pl" +"MathObjects.pl" ); @@ -50,9 +50,9 @@ BEGIN_PGML Find two positive integers such that their sum is [$a], and (a) maximize and (b) minimize the sum of their squares. -The two positive integers that maximize the sum of their squares are [______________]{$max} [@ AnswerFormatHelp("numbers") @]* +The two positive integers that maximize the sum of their squares are [______________]{$max} [@ helpLink("numbers") @]* -The two positive integers that minimize the sum of their squares are [______________]{$min} [@ AnswerFormatHelp("numbers") @]* +The two positive integers that minimize the sum of their squares are [______________]{$min} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CalculusOne/04.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_7_319.pg b/Contrib/CCCS/CalculusOne/04.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_7_319.pg index 5457338643..26a9c0c576 100644 --- a/Contrib/CCCS/CalculusOne/04.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_7_319.pg +++ b/Contrib/CCCS/CalculusOne/04.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_7_319.pg @@ -21,11 +21,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGstandard.pl", -"MathObjects.pl" +"MathObjects.pl" ); @@ -49,7 +49,7 @@ BEGIN_PGML You have [$a] feet of fencing to construct a rectangular pen for cattle. What are the dimensions of the pen that maximize the area? -The dimensions that maximize the area are [______________]{$ans} feet. (Enter the answer as a list separated by commas.) [@ AnswerFormatHelp("numbers") @]* +The dimensions that maximize the area are [______________]{$ans} feet. (Enter the answer as a list separated by commas.) [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/04.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_7_320.pg b/Contrib/CCCS/CalculusOne/04.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_7_320.pg index e727548df0..e22bd162e8 100644 --- a/Contrib/CCCS/CalculusOne/04.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_7_320.pg +++ b/Contrib/CCCS/CalculusOne/04.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_7_320.pg @@ -21,11 +21,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGstandard.pl", -"MathObjects.pl" +"MathObjects.pl" ); @@ -47,9 +47,9 @@ $ans=List("$a/4, $a/2"); BEGIN_PGML -You have [$a] feet of fencing to construct a rectangular pen for hogs. If you have a river on one side of your property (and don't need a fence there), what are the dimensions of the rectangular pen that maximizes the area? +You have [$a] feet of fencing to construct a rectangular pen for hogs. If you have a river on one side of your property (and don't need a fence there), what are the dimensions of the rectangular pen that maximizes the area? -The dimensions that maximize the area are [______________]{$ans} feet. (Enter the answer as a comma separated list.) [@ AnswerFormatHelp("numbers") @]* +The dimensions that maximize the area are [______________]{$ans} feet. (Enter the answer as a comma separated list.) [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/04.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_7_329.pg b/Contrib/CCCS/CalculusOne/04.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_7_329.pg index e3c71e21b9..9fb50efb38 100644 --- a/Contrib/CCCS/CalculusOne/04.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_7_329.pg +++ b/Contrib/CCCS/CalculusOne/04.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_7_329.pg @@ -21,11 +21,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGstandard.pl", -"MathObjects.pl" +"MathObjects.pl" ); Context()->variables->add(a => "Real"); @@ -52,7 +52,7 @@ BEGIN_PGML A truck uses gas as [`g(v)=av+\frac{b}{v}`], where [`v`] represents the speed of the truck, [`g`] represents the gallons of fuel per mile, and [`a`] and [`b`] are constants. At what speed is fuel consumption minimized? -Fuel consumption is minimized when [`v=`] [______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +Fuel consumption is minimized when [`v=`] [______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/04.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_7_332_334.pg b/Contrib/CCCS/CalculusOne/04.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_7_332_334.pg index 89904c268c..2a38dd8c3b 100644 --- a/Contrib/CCCS/CalculusOne/04.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_7_332_334.pg +++ b/Contrib/CCCS/CalculusOne/04.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_7_332_334.pg @@ -21,12 +21,12 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGstandard.pl", -"MathObjects.pl", -"scaffold.pl" +"MathObjects.pl", +"scaffold.pl" ); Context()->variables->add(a => "Real"); @@ -67,7 +67,7 @@ Scaffold::Begin(); BEGIN_PGML -Consider a pizzeria that sell pizzas for a revenue of [`R(x)=ax`] and total cost of [`C(x)=b+cx+dx^2`], where [`x`] represents the number of pizzas sold. +Consider a pizzeria that sell pizzas for a revenue of [`R(x)=ax`] and total cost of [`C(x)=b+cx+dx^2`], where [`x`] represents the number of pizzas sold. END_PGML @@ -77,9 +77,9 @@ BEGIN_PGML Find the profit function for the pizzeria and find how many pizzas will give the largest profit. -a. The profit function is [`P(x)=`] [_____________________]{$ans1} [@ AnswerFormatHelp("formulas") @]* +a. The profit function is [`P(x)=`] [_____________________]{$ans1} [@ helpLink("formulas") @]* -b. The number of pizzas that will give the largest profit is [`x=`][_____________]{$ans2} [@ AnswerFormatHelp("formulas") @]* +b. The number of pizzas that will give the largest profit is [`x=`][_____________]{$ans2} [@ helpLink("formulas") @]* END_PGML @@ -92,7 +92,7 @@ BEGIN_PGML Assume that [`R(x) = [$rev1]`] and [`C(x)=[$cost1]`]. How many pizzas sold maximizes the profit? -Profit is maximized when the pizzeria sells [`x=`][_______________]{$ans3} pizzas. [@ AnswerFormatHelp("numbers") @]* +Profit is maximized when the pizzeria sells [`x=`][_______________]{$ans3} pizzas. [@ helpLink("numbers") @]* END_PGML @@ -104,7 +104,7 @@ BEGIN_PGML Assume that [`R(x) = [$rev2]`] and [`C(x)=[$cost2]`]. How many pizzas sold maximizes the profit? -Profit is maximized when the pizzeria sells [`x=`][_______________]{$ans4} pizzas. [@ AnswerFormatHelp("numbers") @]* +Profit is maximized when the pizzeria sells [`x=`][_______________]{$ans4} pizzas. [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/04.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_7_339.pg b/Contrib/CCCS/CalculusOne/04.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_7_339.pg index 8a560a39f9..5b4e86e12d 100644 --- a/Contrib/CCCS/CalculusOne/04.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_7_339.pg +++ b/Contrib/CCCS/CalculusOne/04.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_7_339.pg @@ -21,11 +21,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGstandard.pl", -"MathObjects.pl" +"MathObjects.pl" ); Context()->variables->add(a => "Real"); @@ -50,14 +50,14 @@ $ans2=$a-1; BEGIN_PGML -Consider two positive numbers [`x`] and [`y`] such that [`x+y=[$a]`]. Maximize and minimize the quantity [`y-\frac{1}{x}`]. +Consider two positive numbers [`x`] and [`y`] such that [`x+y=[$a]`]. Maximize and minimize the quantity [`y-\frac{1}{x}`]. [`y-\frac{1}{x}`] is minimized when [`x`] is [____________]{"NONE"} and [`y`] is [____________]{"NONE"}. [`y-\frac{1}{x}`] is maximized when [`x`] is [____________]{$ans1} and [`y`] is [____________]{$ans2} - (Enter a number or enter "NONE" if there is no solution.) [@ AnswerFormatHelp("numbers") @]* + (Enter a number or enter "NONE" if there is no solution.) [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/04.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_7_343.pg b/Contrib/CCCS/CalculusOne/04.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_7_343.pg index a15e359211..90a4ac8f9e 100644 --- a/Contrib/CCCS/CalculusOne/04.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_7_343.pg +++ b/Contrib/CCCS/CalculusOne/04.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_7_343.pg @@ -21,11 +21,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGstandard.pl", -"MathObjects.pl" +"MathObjects.pl" ); Context()->variables->add(y => "Real"); @@ -52,7 +52,7 @@ BEGIN_PGML Find the area of the largest rectangle that fits into the triangle in quandrant one with sides `x=0, y=0`, and `[$fun]=1`. -The largest rectangle is when `x=` [____________]{$xvalue} and when `y=`[_____________]{$yvalue} and the area of the largest rectangle is [_____________]{$area} `units^2`. [@ AnswerFormatHelp("numbers") @]* +The largest rectangle is when `x=` [____________]{$xvalue} and when `y=`[_____________]{$yvalue} and the area of the largest rectangle is [_____________]{$area} `units^2`. [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/04.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_7_348.pg b/Contrib/CCCS/CalculusOne/04.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_7_348.pg index 617e067899..c6e37e12df 100644 --- a/Contrib/CCCS/CalculusOne/04.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_7_348.pg +++ b/Contrib/CCCS/CalculusOne/04.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_7_348.pg @@ -21,11 +21,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGstandard.pl", -"MathObjects.pl" +"MathObjects.pl" ); Context()->variables->add(y => "Real"); @@ -57,9 +57,9 @@ BEGIN_PGML Find where the line [`\displaystyle y=[$fun]`] is closest to the point `(0,0)` and then find where the line [`\displaystyle y=[$fun]`] is closest to the point `(1,1)`. (Hint: You can minimize/maximize the square of the distance.) -a. The line [`\displaystyle y=[$fun]`] is closest to the point `(0,0)` at the point [____________]{$ans1} (enter an ordered pair) [@ AnswerFormatHelp("points") @]* +a. The line [`\displaystyle y=[$fun]`] is closest to the point `(0,0)` at the point [____________]{$ans1} (enter an ordered pair) [@ helpLink("points") @]* -b. The line [`\displaystyle y=[$fun]`] is closest to the point `(1,1)` at the point [____________]{$ans2} (enter an ordered pair) [@ AnswerFormatHelp("points") @]* +b. The line [`\displaystyle y=[$fun]`] is closest to the point `(1,1)` at the point [____________]{$ans2} (enter an ordered pair) [@ helpLink("points") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/04.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_7_351.pg b/Contrib/CCCS/CalculusOne/04.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_7_351.pg index de539bd40c..af855300a8 100644 --- a/Contrib/CCCS/CalculusOne/04.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_7_351.pg +++ b/Contrib/CCCS/CalculusOne/04.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_7_351.pg @@ -19,12 +19,12 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "imageChoice.pl", "PGstandard.pl", -"MathObjects.pl" +"MathObjects.pl" ); Context()->variables->add(y => "Real"); @@ -51,15 +51,15 @@ BEGIN_PGML A window is composed of a semicircle placed on top of a rectangle. If you have [$a] feet of window-framing materials for the frame (all around the rectangle and all around the semicircle as pictured below), what is the maximum size of the window you can create? ->>[@ image("CCD_CCCS_Openstax_Calc1_C1-2016-002_4_7_351_diagram.jpg", width=>188, height=>352) +>>[@ image("CCD_CCCS_Openstax_Calc1_C1-2016-002_4_7_351_diagram.jpg", width=>188, height=>352) @]*<< - -a. The radius of the semicircle portion of the maximum size window is `r=` [____________]{$radius} feet. [@ AnswerFormatHelp("numbers") @]* -b. The dimensions of the rectangular portion of the maximum size window are [_________________________]{$dimensions} feet. (enter a comma separated list) [@ AnswerFormatHelp("numbers") @]* +a. The radius of the semicircle portion of the maximum size window is `r=` [____________]{$radius} feet. [@ helpLink("numbers") @]* + +b. The dimensions of the rectangular portion of the maximum size window are [_________________________]{$dimensions} feet. (enter a comma separated list) [@ helpLink("numbers") @]* -c. The area of the maximum size window is `A=` [_________________________]{$area} square feet. [@ AnswerFormatHelp("numbers") @]* +c. The area of the maximum size window is `A=` [_________________________]{$area} square feet. [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/04.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_7_353.pg b/Contrib/CCCS/CalculusOne/04.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_7_353.pg index f8d803c728..b81a744809 100644 --- a/Contrib/CCCS/CalculusOne/04.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_7_353.pg +++ b/Contrib/CCCS/CalculusOne/04.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_7_353.pg @@ -21,12 +21,12 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "imageChoice.pl", "PGstandard.pl", -"MathObjects.pl" +"MathObjects.pl" ); Context()->variables->add(y => "Real"); @@ -51,9 +51,9 @@ $dimensions=List("$side, $side, $height"); BEGIN_PGML -You are constructing an open top box for your cat to sleep in. The plush material for the square bottom of the box costs `\$[$a]`/`ft^2` and the material for the sides costs `\$[$b]`/`ft^2`. You need a box with volume `[$c]ft^3`. Find the dimensions of the box that will minimize the cost. - -The dimensions of the box that will minimize the cost are [____________]{$dimensions} feet. (enter a comma separated list) [@ AnswerFormatHelp("numbers") @]* +You are constructing an open top box for your cat to sleep in. The plush material for the square bottom of the box costs `\$[$a]`/`ft^2` and the material for the sides costs `\$[$b]`/`ft^2`. You need a box with volume `[$c]ft^3`. Find the dimensions of the box that will minimize the cost. + +The dimensions of the box that will minimize the cost are [____________]{$dimensions} feet. (enter a comma separated list) [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/04.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_7_354.pg b/Contrib/CCCS/CalculusOne/04.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_7_354.pg index a5fb8ae787..0be6431328 100644 --- a/Contrib/CCCS/CalculusOne/04.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_7_354.pg +++ b/Contrib/CCCS/CalculusOne/04.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_7_354.pg @@ -21,12 +21,12 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "imageChoice.pl", "PGstandard.pl", -"MathObjects.pl" +"MathObjects.pl" ); Context()->variables->add(y => "Real"); @@ -50,12 +50,12 @@ BEGIN_PGML You are building five identical pens adjacent to each other with a total area of `[$a]m^2`, as shown in the figure below. What dimensions should you use to minimize the amount of fencing? ->>[@ image("CCD_CCCS_Openstax_Calc1_C1-2016-002_4_7_354_diagram.jpg", width=>385, height=>180) +>>[@ image("CCD_CCCS_Openstax_Calc1_C1-2016-002_4_7_354_diagram.jpg", width=>385, height=>180) @]*<< - -The dimensions that will minimize the amount of fencing are `x=`[____________]{$x} meters and `y=`[____________]{$y} meters. [@ AnswerFormatHelp("numbers") @]* + +The dimensions that will minimize the amount of fencing are `x=`[____________]{$x} meters and `y=`[____________]{$y} meters. [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CalculusOne/04.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_357.pg b/Contrib/CCCS/CalculusOne/04.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_357.pg index 3ab1b025a9..ccb9d8acc4 100644 --- a/Contrib/CCCS/CalculusOne/04.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_357.pg +++ b/Contrib/CCCS/CalculusOne/04.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_357.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -42,10 +42,10 @@ $ans =$a; # Main text BEGIN_PGML -Evaluate the limit [``\lim_{x\to [$a]} [$f]``]. +Evaluate the limit [``\lim_{x\to [$a]} [$f]``]. -[``\lim_{x\to [$a]} [$f]=``][_______________]{$ans }(Enter a number, `\infty,-\infty,` or "DNE".) [@ AnswerFormatHelp("numbers") @]* +[``\lim_{x\to [$a]} [$f]=``][_______________]{$ans }(Enter a number, `\infty,-\infty,` or "DNE".) [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/04.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_359.pg b/Contrib/CCCS/CalculusOne/04.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_359.pg index df7516898a..74ccc3f69f 100644 --- a/Contrib/CCCS/CalculusOne/04.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_359.pg +++ b/Contrib/CCCS/CalculusOne/04.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_359.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -41,10 +41,10 @@ $ans =Formula("1/(2*$a )")->reduce; # Main text BEGIN_PGML -Evaluate the limit [``\lim_{x\to [$a]}[$f]``]. +Evaluate the limit [``\lim_{x\to [$a]}[$f]``]. - [``\lim_{x\to [$a]}[$f]=``][_______________]{$ans }(Enter a number, `\infty,-\infty,` or "DNE".) [@ AnswerFormatHelp("numbers") @]* + [``\lim_{x\to [$a]}[$f]=``][_______________]{$ans }(Enter a number, `\infty,-\infty,` or "DNE".) [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/04.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_362.pg b/Contrib/CCCS/CalculusOne/04.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_362.pg index df32a28651..bd29ba758c 100644 --- a/Contrib/CCCS/CalculusOne/04.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_362.pg +++ b/Contrib/CCCS/CalculusOne/04.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_362.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -39,43 +39,43 @@ $ans = 0; $radio1 = RadioButtons( ["L'Hopital's rule can be applied directly because the limit is an indeterminate of the form \(\infty/\infty\)", - "L'Hopital's rule can be applied directly because the limit is an indeterminate of the form \(0/0\)", - "L'Hopital's rule can't be applied directly because the limit is an indeterminate of the form \(0\cdot\infty\)"], + "L'Hopital's rule can be applied directly because the limit is an indeterminate of the form \(0/0\)", + "L'Hopital's rule can't be applied directly because the limit is an indeterminate of the form \(0\cdot\infty\)"], "L'Hopital's rule can't be applied directly because the limit is an indeterminate of the form \(0\cdot\infty\)" ); $radio2 = RadioButtons( ["Rewrite the original function as \(x^{$a x}/\ln(x)\)", - "Rewrite the original function as \(\ln(x)/{(1/x^{$a}) }\)", - "Rewrite the original function as \(\ln(x)/{x^{$a }}\)"], - "Rewrite the original function as \(\ln(x)/{(1/x^{$a}) }\)" + "Rewrite the original function as \(\ln(x)/{(1/x^{$a}) }\)", + "Rewrite the original function as \(\ln(x)/{x^{$a }}\)"], + "Rewrite the original function as \(\ln(x)/{(1/x^{$a}) }\)" ); - + ########################### # Main text BEGIN_PGML -Consider the limit +Consider the limit -[``\lim_{x\to 0^+}[$f]``]. +[``\lim_{x\to 0^+}[$f]``]. Determine whether l'Hopital's rule can be applied directly. Explain why or why not. - [_______________]{$radio1 } + [_______________]{$radio1 } Indicate if there is some way to alter the limit so that l'Hopital's rule can be applied - [_______________]{$radio2 } + [_______________]{$radio2 } Evaluate the limit -[``\lim_{x\to 0^+}[$f]=``][_______________]{$ans } [@ AnswerFormatHelp("formulas") @]* +[``\lim_{x\to 0^+}[$f]=``][_______________]{$ans } [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/04.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_363.pg b/Contrib/CCCS/CalculusOne/04.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_363.pg index 0d3b4d900c..15dc41ff32 100644 --- a/Contrib/CCCS/CalculusOne/04.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_363.pg +++ b/Contrib/CCCS/CalculusOne/04.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_363.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -40,16 +40,16 @@ $ans = 1; $radio1 = RadioButtons( ["L'Hopital's rule can't be applied directly because the limit is an indeterminate of the form \(\infty^0\)", - "L'Hopital's rule can be applied directly because the limit is an indeterminate of the form \(\infty/\infty\)", - "L'Hopital's rule can be applied directly because the limit is an indeterminate of the form \(0/0\)"], + "L'Hopital's rule can be applied directly because the limit is an indeterminate of the form \(\infty/\infty\)", + "L'Hopital's rule can be applied directly because the limit is an indeterminate of the form \(0/0\)"], "L'Hopital's rule can't be applied directly because the limit is an indeterminate of the form \(\infty^0\)" ); $radio2 = RadioButtons( ["Rewrite the original function as \($a x\ln(x)\)", - "Rewrite the original function as \(e^{$a \ln(x)/x}\)", - "Rewrite the original function as \($a \ln(x)/x\)"], + "Rewrite the original function as \(e^{$a \ln(x)/x}\)", + "Rewrite the original function as \($a \ln(x)/x\)"], "Rewrite the original function as \(e^{$a \ln(x)/x}\)" ); @@ -58,16 +58,16 @@ $radio2 = RadioButtons( # Main text BEGIN_PGML -Consider the limit +Consider the limit -[``\lim_{x\to [$b]}[$f]``]. +[``\lim_{x\to [$b]}[$f]``]. Determine whether l'Hopital's rule can be applied directly. Explain why or why not. - [_______________]{$radio1 } + [_______________]{$radio1 } Indicate if there is some way to alter the limit so that l'Hopital's rule can be applied @@ -78,7 +78,7 @@ Indicate if there is some way to alter the limit so that l'Hopital's rule can be Evaluate the limit -[``\lim_{x\to [$b]}[$f]=``][_______________]{$ans } [@ AnswerFormatHelp("formulas") @]* +[``\lim_{x\to [$b]}[$f]=``][_______________]{$ans } [@ helpLink("formulas") @]* END_PGML ############################ @@ -86,7 +86,7 @@ BEGIN_PGML_HINT Example: Evaluate the limit [``\lim_{x\rightarrow 0^+} x^{\sin(x)}``] -This limit is of the form [`0^0`], which is indeterminate but it is not one of the indeterminate forms that we can directly apply L'Hopital's Rule to. So we need to rewrite the limit. +This limit is of the form [`0^0`], which is indeterminate but it is not one of the indeterminate forms that we can directly apply L'Hopital's Rule to. So we need to rewrite the limit. (Recall, [`x^y = e^{y\ln(x)}`].) diff --git a/Contrib/CCCS/CalculusOne/04.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_364.pg b/Contrib/CCCS/CalculusOne/04.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_364.pg index 0d0306c210..076a094296 100644 --- a/Contrib/CCCS/CalculusOne/04.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_364.pg +++ b/Contrib/CCCS/CalculusOne/04.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_364.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -40,16 +40,16 @@ $ans = 0; $radio1 = RadioButtons( ["L'Hopital's rule can be applied directly because the limit is an indeterminate of the form \(\infty/\infty\)", - "L'Hopital's rule can be applied directly because the limit is an indeterminate of the form \(0/0\)", - "L'Hopital's rule can't be applied directly because the limit is not an indeterminate"], + "L'Hopital's rule can be applied directly because the limit is an indeterminate of the form \(0/0\)", + "L'Hopital's rule can't be applied directly because the limit is not an indeterminate"], "L'Hopital's rule can't be applied directly because the limit is not an indeterminate" ); $radio2 = RadioButtons( ["Rewrite the original function as \($a x\ln(x)\)", - "Rewrite the original function as \($a \ln(x)/x\)", - "L'Hopital's rule does not apply"], + "Rewrite the original function as \($a \ln(x)/x\)", + "L'Hopital's rule does not apply"], "L'Hopital's rule does not apply" ); @@ -58,16 +58,16 @@ $radio2 = RadioButtons( # Main text BEGIN_PGML -Consider the limit +Consider the limit -[``\lim_{x\to 0^+}[$f]``]. +[``\lim_{x\to 0^+}[$f]``]. Determine whether l'Hopital's rule can be applied directly. Explain why or why not. - [_______________]{$radio1 } + [_______________]{$radio1 } Indicate if there is some way to alter the limit so that l'Hopital's rule can be applied @@ -78,7 +78,7 @@ Indicate if there is some way to alter the limit so that l'Hopital's rule can be Evaluate the limit -[``\lim_{x\to 0^+}[$f]=``][_______________]{$ans } [@ AnswerFormatHelp("formulas") @]* +[``\lim_{x\to 0^+}[$f]=``][_______________]{$ans } [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/04.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_367.pg b/Contrib/CCCS/CalculusOne/04.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_367.pg index e78ade3c2f..3dc7742938 100644 --- a/Contrib/CCCS/CalculusOne/04.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_367.pg +++ b/Contrib/CCCS/CalculusOne/04.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_367.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -46,7 +46,7 @@ Evaluate the limit, [``\lim_{x\to [$a]}[$f]``] , using either l'Hopital's Rule o -[``\lim_{x\to [$a]}[$f]=``][_______________]{$ans }(Enter a number, `\infty,-\infty,` or "DNE".) [@ AnswerFormatHelp("numbers") @]* +[``\lim_{x\to [$a]}[$f]=``][_______________]{$ans }(Enter a number, `\infty,-\infty,` or "DNE".) [@ helpLink("numbers") @]* END_PGML ############################ BEGIN_PGML_HINT diff --git a/Contrib/CCCS/CalculusOne/04.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_371.pg b/Contrib/CCCS/CalculusOne/04.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_371.pg index 0cbe4cd4e7..56c1738594 100644 --- a/Contrib/CCCS/CalculusOne/04.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_371.pg +++ b/Contrib/CCCS/CalculusOne/04.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_371.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -45,7 +45,7 @@ BEGIN_PGML Evaluate the limit,[``\lim_{x\to [$b]}[$f]``], using either l'Hopital's Rule or previously learned methods. -[``\lim_{x\to [$a]\pi}[$f]=``][_______________]{$ans } (Enter a number, `\infty,-\infty,` or "DNE".) [@ AnswerFormatHelp("numbers") @]* +[``\lim_{x\to [$a]\pi}[$f]=``][_______________]{$ans } (Enter a number, `\infty,-\infty,` or "DNE".) [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/04.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_376.pg b/Contrib/CCCS/CalculusOne/04.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_376.pg index d0ff4a6422..885556757a 100644 --- a/Contrib/CCCS/CalculusOne/04.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_376.pg +++ b/Contrib/CCCS/CalculusOne/04.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_376.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -47,7 +47,7 @@ Evaluate the limit, [``\lim_{x\to 0}[$f]``], using either l'Hopital's rule or pr -[``\lim_{x\to 0}[$f]=``][_______________]{$ans } (Enter a number, `\infty,-\infty,` or "DNE".) [@ AnswerFormatHelp("numbers") @]* +[``\lim_{x\to 0}[$f]=``][_______________]{$ans } (Enter a number, `\infty,-\infty,` or "DNE".) [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/04.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_382.pg b/Contrib/CCCS/CalculusOne/04.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_382.pg index bedfb21f84..22b2b74d40 100644 --- a/Contrib/CCCS/CalculusOne/04.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_382.pg +++ b/Contrib/CCCS/CalculusOne/04.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_382.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -45,7 +45,7 @@ Evaluate the limit, [``\lim_{x\to 0^{+}}[$f]``], using either l'Hopital's rule o -[``\lim_{x\to 0^{+}}[$f]=``][_______________]{$ans } (Enter a number, `\infty,-\infty,` or "DNE".) [@ AnswerFormatHelp("numbers") @]* +[``\lim_{x\to 0^{+}}[$f]=``][_______________]{$ans } (Enter a number, `\infty,-\infty,` or "DNE".) [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/04.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_383.pg b/Contrib/CCCS/CalculusOne/04.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_383.pg index 5ed47806e1..82813bdf18 100644 --- a/Contrib/CCCS/CalculusOne/04.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_383.pg +++ b/Contrib/CCCS/CalculusOne/04.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_383.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -45,10 +45,10 @@ BEGIN_PGML Evaluate the limit, [``\lim_{x\to \infty}[$f]``], using either l'Hopital's Rule or previously learned methods. - -[``\lim_{x\to \infty}[$f]=``][_______________]{$ans }(Enter a number, `\infty,-\infty,` or "DNE".) [@ AnswerFormatHelp("numbers") @]* + +[``\lim_{x\to \infty}[$f]=``][_______________]{$ans }(Enter a number, `\infty,-\infty,` or "DNE".) [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/04.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_386.pg b/Contrib/CCCS/CalculusOne/04.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_386.pg index 85cc2b9366..76e6d79a4a 100644 --- a/Contrib/CCCS/CalculusOne/04.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_386.pg +++ b/Contrib/CCCS/CalculusOne/04.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_386.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -45,10 +45,10 @@ $ans=Compute("-infinity"); BEGIN_PGML Evaluate the limit, [``\lim_{x\to\infty}([$f])``], using either l'Hopital's rule or previously learned methods - -[``\lim_{x\to\infty}([$f])=``][_______________]{$ans } (Enter a number, `\infty,-\infty,` or "DNE".) [@ AnswerFormatHelp("numbers") @]* + +[``\lim_{x\to\infty}([$f])=``][_______________]{$ans } (Enter a number, `\infty,-\infty,` or "DNE".) [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/04.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_391.pg b/Contrib/CCCS/CalculusOne/04.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_391.pg index 7efb791a16..bc2e3af327 100644 --- a/Contrib/CCCS/CalculusOne/04.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_391.pg +++ b/Contrib/CCCS/CalculusOne/04.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_391.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -50,7 +50,7 @@ Evaluate the limit, [``\lim_{x\to \infty}[$f]``], using either l'Hopital's rule - [``\lim_{x\to \infty}[$f]=``][_______________]{$ans } (Enter a number, `\infty,-\infty,` or "DNE".) [@ AnswerFormatHelp("numbers") @]* + [``\lim_{x\to \infty}[$f]=``][_______________]{$ans } (Enter a number, `\infty,-\infty,` or "DNE".) [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/04.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_392.pg b/Contrib/CCCS/CalculusOne/04.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_392.pg index 2bb099f178..d5d31cf771 100644 --- a/Contrib/CCCS/CalculusOne/04.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_392.pg +++ b/Contrib/CCCS/CalculusOne/04.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_392.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -45,7 +45,7 @@ Evaluate the limit, [``\lim_{x\to 0^+}x^{\left(\dfrac{[$a]}{\cos(x)}\right)}``], -[``\lim_{x\to 0^+}x^{\left(\dfrac{[$a]}{\cos(x)}\right)}=``][_______________]{$ans } (Enter a number, `\infty,-\infty,` or "DNE".) [@ AnswerFormatHelp("numbers") @]* +[``\lim_{x\to 0^+}x^{\left(\dfrac{[$a]}{\cos(x)}\right)}=``][_______________]{$ans } (Enter a number, `\infty,-\infty,` or "DNE".) [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CalculusOne/04.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_395.pg b/Contrib/CCCS/CalculusOne/04.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_395.pg index d43ba32fe0..c45636ce69 100644 --- a/Contrib/CCCS/CalculusOne/04.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_395.pg +++ b/Contrib/CCCS/CalculusOne/04.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_395.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -46,7 +46,7 @@ Evaluate the limit, [``\lim_{x\to \infty}[$f]``], using either l'Hopital's rule -[``\lim_{x\to \infty}[$f]=``][_______________]{$ans } (Enter a number, `\infty,-\infty,` or "DNE".) [@ AnswerFormatHelp("numbers") @]* +[``\lim_{x\to \infty}[$f]=``][_______________]{$ans } (Enter a number, `\infty,-\infty,` or "DNE".) [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/04.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_396.pg b/Contrib/CCCS/CalculusOne/04.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_396.pg index b691316dc6..45e6661f54 100644 --- a/Contrib/CCCS/CalculusOne/04.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_396.pg +++ b/Contrib/CCCS/CalculusOne/04.8/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_396.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -41,19 +41,19 @@ $ans =$a; # Main text BEGIN_PGML -Consider the function +Consider the function [``f(x)=[$f]``]. -Use a calculator to graph the function [`f`] and estimate the value of the limit [`\displaystyle \lim_{x\to 0}f(x)`]. +Use a calculator to graph the function [`f`] and estimate the value of the limit [`\displaystyle \lim_{x\to 0}f(x)`]. -[``\lim_{x\to 0}[$f]\approx``][_______________]{$ans } [@ AnswerFormatHelp("numbers") @]* +[``\lim_{x\to 0}[$f]\approx``][_______________]{$ans } [@ helpLink("numbers") @]* Then use l'Hopital's rule to find the previous limit directly -[``\lim_{x\to 0}[$f]=``][_______________]{$ans } [@ AnswerFormatHelp("numbers") @]* +[``\lim_{x\to 0}[$f]=``][_______________]{$ans } [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/05.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_1_1.pg b/Contrib/CCCS/CalculusOne/05.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_1_1.pg index a19084ab67..9245549329 100644 --- a/Contrib/CCCS/CalculusOne/05.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_1_1.pg +++ b/Contrib/CCCS/CalculusOne/05.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_1_1.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", diff --git a/Contrib/CCCS/CalculusOne/05.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_1_10.pg b/Contrib/CCCS/CalculusOne/05.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_1_10.pg index e6f7802bfb..e8e1c57d0b 100644 --- a/Contrib/CCCS/CalculusOne/05.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_1_10.pg +++ b/Contrib/CCCS/CalculusOne/05.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_1_10.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -51,7 +51,7 @@ BEGIN_PGML Use summation properties and formulas to rewrite and evaluate the sum [``\sum_{j=1}^{[$n]}([$s])``]. -[``\sum_{j=1}^{[$n]}([$s])=``][_________________]{$ans }[@ AnswerFormatHelp("numbers") @]* +[``\sum_{j=1}^{[$n]}([$s])=``][_________________]{$ans }[@ helpLink("numbers") @]* END_PGML ############################ diff --git a/Contrib/CCCS/CalculusOne/05.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_1_11.pg b/Contrib/CCCS/CalculusOne/05.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_1_11.pg index 7b471d79a5..043ea3e7f1 100644 --- a/Contrib/CCCS/CalculusOne/05.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_1_11.pg +++ b/Contrib/CCCS/CalculusOne/05.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_1_11.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -52,7 +52,7 @@ BEGIN_PGML Use summation properties and formulas to rewrite and evaluate the sum [``\sum_{k=1}^{[$n]}([$s])``]. -[``\sum_{k=1}^{[$n]}([$s])=``][_________________]{$ans }[@ AnswerFormatHelp("numbers") @]* +[``\sum_{k=1}^{[$n]}([$s])=``][_________________]{$ans }[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/05.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_1_13.pg b/Contrib/CCCS/CalculusOne/05.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_1_13.pg index d250cb227b..1f70abe1fe 100644 --- a/Contrib/CCCS/CalculusOne/05.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_1_13.pg +++ b/Contrib/CCCS/CalculusOne/05.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_1_13.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -50,7 +50,7 @@ Given the function [`f(x)=[$f]`], compute the right-endpoint (Riemann) sum using [`[$I]`]. -[`` R_{[$n]} =``][_______________]{$ans }[@ AnswerFormatHelp("numbers") @]* +[`` R_{[$n]} =``][_______________]{$ans }[@ helpLink("numbers") @]* END_PGML @@ -58,7 +58,7 @@ END_PGML BEGIN_PGML_HINT Right-Endpoint Approximation (Right Riemann Sum): -To use a right-endpoint approximation to estimate the area under a curve [`y=f(x)`] on an interval [`[a,b]`] with `n` subintervals, we need to first identify a regular partition of the interval. +To use a right-endpoint approximation to estimate the area under a curve [`y=f(x)`] on an interval [`[a,b]`] with `n` subintervals, we need to first identify a regular partition of the interval. With [`\Delta x = \frac{b-a}{n}`] we can create a regular partition of subintervals of the form [` [x_0,x_1], [x_1,x_2],...,[x_{n-1},x_n]`] where [`x_0=a, x_n=b`] and [`x_i = x_0+i\Delta x`]. diff --git a/Contrib/CCCS/CalculusOne/05.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_1_17.pg b/Contrib/CCCS/CalculusOne/05.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_1_17.pg index cb2e7da62d..314bc955df 100644 --- a/Contrib/CCCS/CalculusOne/05.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_1_17.pg +++ b/Contrib/CCCS/CalculusOne/05.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_1_17.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -62,7 +62,7 @@ BEGIN_PGML Given the function [`f(x)=[$f]`], compute the left-endpoint (Riemann) sum using [`n=[$n]`] on the interval [`[$I]`]. -[`` L_{[$n]} =``][_______________]{$ans }[@ AnswerFormatHelp("numbers") @]* +[`` L_{[$n]} =``][_______________]{$ans }[@ helpLink("numbers") @]* END_PGML @@ -70,7 +70,7 @@ END_PGML BEGIN_PGML_HINT Left-Endpoint Approximation (Left Riemann Sum): -To use a left-endpoint approximation to estimate the area under a curve [`y=f(x)`] on an interval [`[a,b]`] with `n` subintervals, we need to first identify a regular partition of the interval. +To use a left-endpoint approximation to estimate the area under a curve [`y=f(x)`] on an interval [`[a,b]`] with `n` subintervals, we need to first identify a regular partition of the interval. With [`\Delta x = \frac{b-a}{n}`] we can create a regular partition of subintervals of the form [` [x_0,x_1], [x_1,x_2],...,[x_{n-1},x_n]`] where [`x_0=a, x_n=b`] and [`x_i = x_0+i\Delta x`]. diff --git a/Contrib/CCCS/CalculusOne/05.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_1_20.pg b/Contrib/CCCS/CalculusOne/05.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_1_20.pg index ebb3e52aa4..2f6c6cc012 100644 --- a/Contrib/CCCS/CalculusOne/05.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_1_20.pg +++ b/Contrib/CCCS/CalculusOne/05.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_1_20.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -68,19 +68,19 @@ Consider the function [`f(x)=[$f]`] defined on [`[$I]`]. (a) Compute the left Riemann sum [`L_{[$n]}`]. -[`` L_{[$n]} =``][_______________]{$S }[@ AnswerFormatHelp("numbers") @]* +[`` L_{[$n]} =``][_______________]{$S }[@ helpLink("numbers") @]* (b) Compute the right Riemann sum [`R_{[$n]}`]. -[`` R_{[$n]} =``][_______________]{$S }[@ AnswerFormatHelp("numbers") @]* +[`` R_{[$n]} =``][_______________]{$S }[@ helpLink("numbers") @]* -(c) Compute the average value of [`L_{[$n]}`] and [`R_{[$n]}`]. +(c) Compute the average value of [`L_{[$n]}`] and [`R_{[$n]}`]. -[`` \text{Average value} =``][_______________]{$S }[@ AnswerFormatHelp("numbers") @]* +[`` \text{Average value} =``][_______________]{$S }[@ helpLink("numbers") @]* (d) Compute the area under the graph of f. -[`` \text{Area} =``][_______________]{$ans2 }[@ AnswerFormatHelp("numbers") @]* +[`` \text{Area} =``][_______________]{$ans2 }[@ helpLink("numbers") @]* (e) Compare the two values found in (c) and (d). diff --git a/Contrib/CCCS/CalculusOne/05.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_1_23.pg b/Contrib/CCCS/CalculusOne/05.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_1_23.pg index aa84632307..170b46e8e4 100644 --- a/Contrib/CCCS/CalculusOne/05.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_1_23.pg +++ b/Contrib/CCCS/CalculusOne/05.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_1_23.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -104,11 +104,11 @@ Consider the function [`f(x)=[$f]`] defined on [`[$I]`]. (a) Compute the left Riemann sum [`L_{[$n]}`]. -[`` L_{[$n]} =``][_______________]{$L }[@ AnswerFormatHelp("numbers") @]* +[`` L_{[$n]} =``][_______________]{$L }[@ helpLink("numbers") @]* (b) Compute the right Riemann sum [`R_{[$n]}`]. -[`` R_{[$n]} =``][_______________]{$R }[@ AnswerFormatHelp("numbers") @]* +[`` R_{[$n]} =``][_______________]{$R }[@ helpLink("numbers") @]* (c) Compare the two values found in (a) and (b). diff --git a/Contrib/CCCS/CalculusOne/05.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_1_34.pg b/Contrib/CCCS/CalculusOne/05.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_1_34.pg index 840ed65013..696a6b8890 100644 --- a/Contrib/CCCS/CalculusOne/05.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_1_34.pg +++ b/Contrib/CCCS/CalculusOne/05.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_1_34.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", diff --git a/Contrib/CCCS/CalculusOne/05.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_1_4.pg b/Contrib/CCCS/CalculusOne/05.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_1_4.pg index 460bd1ea24..f5489094de 100644 --- a/Contrib/CCCS/CalculusOne/05.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_1_4.pg +++ b/Contrib/CCCS/CalculusOne/05.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_1_4.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -55,10 +55,10 @@ Suppose that [``\sum_{i=[$k]}^{[$n]}a_{i}=[$s1]``] and [``\sum_{i=[$k]}^{[$n]}b Compute the following sums. -(a) [``\sum_{i=[$k]}^{[$n]}(a_{i}+b_{i})=``][_________________]{$ans1 }[@ AnswerFormatHelp("numbers") @]* +(a) [``\sum_{i=[$k]}^{[$n]}(a_{i}+b_{i})=``][_________________]{$ans1 }[@ helpLink("numbers") @]* -(b) [``\sum_{i=[$k]}^{[$n]}([$p]a_{i}+[$q]b_{i})=``][_________________]{$ans2 }[@ AnswerFormatHelp("numbers") @]* +(b) [``\sum_{i=[$k]}^{[$n]}([$p]a_{i}+[$q]b_{i})=``][_________________]{$ans2 }[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/05.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_1_42.pg b/Contrib/CCCS/CalculusOne/05.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_1_42.pg index 4e898670ab..568e9ad7d1 100644 --- a/Contrib/CCCS/CalculusOne/05.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_1_42.pg +++ b/Contrib/CCCS/CalculusOne/05.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_1_42.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -53,22 +53,22 @@ grid=>[15,10], size=>[600,600] ); -add_functions($gr, "$f1 for x in <0,5>" . +add_functions($gr, "$f1 for x in <0,5>" . " using color:blue and weight:2"); -add_functions($gr, "$f2 for x in <5,7>" . +add_functions($gr, "$f2 for x in <5,7>" . " using color:blue and weight:2"); -add_functions($gr, "$f3 for x in <7,12>" . +add_functions($gr, "$f3 for x in <7,12>" . " using color:blue and weight:3"); -$gr->new_color("lightgreen",187,255,153); +$gr->new_color("lightgreen",187,255,153); $gr->moveTo(0,0); -$gr->lineTo(0,1.1,"black",2); +$gr->lineTo(0,1.1,"black",2); $gr->moveTo(12,0); -$gr->lineTo(12,1.1,"black",2); +$gr->lineTo(12,1.1,"black",2); $gr->moveTo(0,0); -$gr->lineTo(12,0,"black",2); +$gr->lineTo(12,0,"black",2); $gr->fillRegion([5,0.5,"lightgreen"]); ########################### @@ -82,7 +82,7 @@ Estimate the area below the shown curve on the interval [`[0,12]`] (the shaded r -[`` L_{[$n]} =``][_______________]{$ans }[@ AnswerFormatHelp("numbers") @]* +[`` L_{[$n]} =``][_______________]{$ans }[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/05.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_1_44.pg b/Contrib/CCCS/CalculusOne/05.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_1_44.pg index 595ea6fdb4..f590e20d8d 100644 --- a/Contrib/CCCS/CalculusOne/05.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_1_44.pg +++ b/Contrib/CCCS/CalculusOne/05.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_1_44.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -64,28 +64,28 @@ grid=>[9,9], size=>[600,600] ); -add_functions($gr, "$f1 for x in <0,1>" . +add_functions($gr, "$f1 for x in <0,1>" . " using color:blue and weight:2"); -add_functions($gr, "$f2 for x in <1,2>" . +add_functions($gr, "$f2 for x in <1,2>" . " using color:blue and weight:2"); -add_functions($gr, "$f3 for x in <2,3>" . +add_functions($gr, "$f3 for x in <2,3>" . " using color:blue and weight:2"); -add_functions($gr, "$f4 for x in <3,4>" . +add_functions($gr, "$f4 for x in <3,4>" . " using color:blue and weight:2"); -add_functions($gr, "$f5 for x in <4,5>" . +add_functions($gr, "$f5 for x in <4,5>" . " using color:blue and weight:2"); -add_functions($gr, "$f6 for x in <5,6>" . +add_functions($gr, "$f6 for x in <5,6>" . " using color:blue and weight:2"); -add_functions($gr, "$f7 for x in <6,7>" . +add_functions($gr, "$f7 for x in <6,7>" . " using color:blue and weight:2"); -add_functions($gr, "$f8 for x in <7,8>" . +add_functions($gr, "$f8 for x in <7,8>" . " using color:blue and weight:2"); ########################### # Main text @@ -98,7 +98,7 @@ Estimate the areas under the curve by computing the left Riemann sum [`L_{8}`]. -[`` L_{8} =``][_______________]{$ans }[@ AnswerFormatHelp("numbers") @]* +[`` L_{8} =``][_______________]{$ans }[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/05.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_1_57.pg b/Contrib/CCCS/CalculusOne/05.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_1_57.pg index cb23a7c6b7..c482689705 100644 --- a/Contrib/CCCS/CalculusOne/05.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_1_57.pg +++ b/Contrib/CCCS/CalculusOne/05.1/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_1_57.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGchoicemacros.pl",, diff --git a/Contrib/CCCS/CalculusOne/05.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_2_100.pg b/Contrib/CCCS/CalculusOne/05.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_2_100.pg index a9c2c76221..bc38792e9b 100644 --- a/Contrib/CCCS/CalculusOne/05.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_2_100.pg +++ b/Contrib/CCCS/CalculusOne/05.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_2_100.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -60,16 +60,16 @@ $ans3=Formula("$b3*$a-($m3*$a^4)/4")->reduce; BEGIN_PGML Given that -[``\int_{0}^{[$a]}x dx=[$s1], \int_{0}^{[$a]}x^2 dx=\frac{[$s2]}{3}, \text{ and } \int_{0}^{[$a]}x^3 dx= [$s3]``], compute the following integrals. - +[``\int_{0}^{[$a]}x dx=[$s1], \int_{0}^{[$a]}x^2 dx=\frac{[$s2]}{3}, \text{ and } \int_{0}^{[$a]}x^3 dx= [$s3]``], compute the following integrals. + -(a)[``\int_{0}^{[$a]}[$f1] dx=``][_____________]{$ans1 }[@ AnswerFormatHelp("numbers") @]* +(a)[``\int_{0}^{[$a]}[$f1] dx=``][_____________]{$ans1 }[@ helpLink("numbers") @]* -(b) [``\int_{0}^{[$a]}[$f2] dx=``][_____________]{$ans2 }[@ AnswerFormatHelp("numbers") @]* +(b) [``\int_{0}^{[$a]}[$f2] dx=``][_____________]{$ans2 }[@ helpLink("numbers") @]* -(c) [``\int_{0}^{[$a]}[$f3] dx=``][_____________]{$ans3 }[@ AnswerFormatHelp("numbers") @]* +(c) [``\int_{0}^{[$a]}[$f3] dx=``][_____________]{$ans3 }[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/05.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_2_104.pg b/Contrib/CCCS/CalculusOne/05.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_2_104.pg index a690484812..d84b271680 100644 --- a/Contrib/CCCS/CalculusOne/05.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_2_104.pg +++ b/Contrib/CCCS/CalculusOne/05.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_2_104.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", diff --git a/Contrib/CCCS/CalculusOne/05.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_2_105.pg b/Contrib/CCCS/CalculusOne/05.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_2_105.pg index 24e8b4e605..63bd349816 100644 --- a/Contrib/CCCS/CalculusOne/05.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_2_105.pg +++ b/Contrib/CCCS/CalculusOne/05.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_2_105.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", diff --git a/Contrib/CCCS/CalculusOne/05.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_2_106.pg b/Contrib/CCCS/CalculusOne/05.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_2_106.pg index 9b0c3570ab..ceac54f639 100644 --- a/Contrib/CCCS/CalculusOne/05.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_2_106.pg +++ b/Contrib/CCCS/CalculusOne/05.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_2_106.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", diff --git a/Contrib/CCCS/CalculusOne/05.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_2_112.pg b/Contrib/CCCS/CalculusOne/05.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_2_112.pg index 2d7be3981c..f6b27117d1 100644 --- a/Contrib/CCCS/CalculusOne/05.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_2_112.pg +++ b/Contrib/CCCS/CalculusOne/05.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_2_112.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -59,18 +59,18 @@ BEGIN_PGML (a) Find the average value, [`f_{ave}`], of [`f(x)=[$f]`] between [$a] and [$b]. -[``f_{ave}=``][____________________]{$ans1 } [@ AnswerFormatHelp("numbers") @]* +[``f_{ave}=``][____________________]{$ans1 } [@ helpLink("numbers") @]* (b) Find the point(s), [`c`], where [`f(c)=f_{ave}`]. -[``c=``][____________________]{$ans2 } [@ AnswerFormatHelp("numbers") @]* +[``c=``][____________________]{$ans2 } [@ helpLink("numbers") @]* END_PGML ############################ BEGIN_PGML_HINT -If`f(x)` is continuous over the interval [`[a,b]`] then, the *average value of the function* `f(x)` on [`[a,b]`] is given by +If`f(x)` is continuous over the interval [`[a,b]`] then, the *average value of the function* `f(x)` on [`[a,b]`] is given by [``f_{ave} = \frac{1}{b-a}\int_a^bf(x)dx``] diff --git a/Contrib/CCCS/CalculusOne/05.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_2_113.pg b/Contrib/CCCS/CalculusOne/05.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_2_113.pg index 01106f148b..06e43cf5f7 100644 --- a/Contrib/CCCS/CalculusOne/05.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_2_113.pg +++ b/Contrib/CCCS/CalculusOne/05.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_2_113.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -58,12 +58,12 @@ BEGIN_PGML (a) Find the average value [`f_{ave}`] of [`f(x)=[$f]`] between [$a] and [$b]. -[``f_{ave}=``][____________________]{$ans1 } [@ AnswerFormatHelp("numbers") @]* +[``f_{ave}=``][____________________]{$ans1 } [@ helpLink("numbers") @]* (b) Find all point(s), [`c`], where [`f(c)=f_{ave}`]. -[``c=``][____________________]{$ans2 } [@ AnswerFormatHelp("numbers") @]* +[``c=``][____________________]{$ans2 } [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/05.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_2_138.pg b/Contrib/CCCS/CalculusOne/05.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_2_138.pg index 3d03749505..85177bfda4 100644 --- a/Contrib/CCCS/CalculusOne/05.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_2_138.pg +++ b/Contrib/CCCS/CalculusOne/05.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_2_138.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -75,8 +75,8 @@ if($k==4){$ans=$c4;} BEGIN_PGML If [``\int_{[$a]}^{[$b]}[$ft] dt=[$ans]``], what is [``\int_{[$a]}^{[$b]}[$fu] du``]? - -[``\int_{[$a]}^{[$b]}[$fu] du=``][____________]{$ans } [@ AnswerFormatHelp("numbers") @]* + +[``\int_{[$a]}^{[$b]}[$fu] du=``][____________]{$ans } [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/05.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_2_139.pg b/Contrib/CCCS/CalculusOne/05.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_2_139.pg index fea9a9a89c..cd00bc0a79 100644 --- a/Contrib/CCCS/CalculusOne/05.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_2_139.pg +++ b/Contrib/CCCS/CalculusOne/05.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_2_139.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -56,25 +56,25 @@ $ans5=PopUp(["?","equal to","less than","greater than"],"equal to"); BEGIN_PGML Estimate [``\int_{[$a]}^{[$c]}[$f] dt``] using the left and right endpoint -sums, each with a single rectangle. +sums, each with a single rectangle. -(a) Find the left endpoint [`\text{L}`] sum +(a) Find the left endpoint [`\text{L}`] sum -[``\text{L}=``][____________]{$L}[@ AnswerFormatHelp("numbers") @]* +[``\text{L}=``][____________]{$L}[@ helpLink("numbers") @]* -(b) Find the right endpoint [`\text{R}`] sum +(b) Find the right endpoint [`\text{R}`] sum -[``\text{R}=``][____________]{$R}[@ AnswerFormatHelp("numbers") @]* +[``\text{R}=``][____________]{$R}[@ helpLink("numbers") @]* -(c) Find the average of [`\text{L}`] and [`\text{R}`] +(c) Find the average of [`\text{L}`] and [`\text{R}`] -[``\dfrac{\text{L}+\text{R}}{2}=``][_____________]{$AV}[@ AnswerFormatHelp("numbers") @]* +[``\dfrac{\text{L}+\text{R}}{2}=``][_____________]{$AV}[@ helpLink("numbers") @]* (d) Find the value of the integral [``\int_{[$a]}^{[$c]}[$f] dt``] - - [``\int_{[$a]}^{[$c]}[$f] dt=``][_____________]{$AV }[@ AnswerFormatHelp("numbers") @]* + + [``\int_{[$a]}^{[$c]}[$f] dt=``][_____________]{$AV }[@ helpLink("numbers") @]* How does the average of these left and right endpoint sums compare with the diff --git a/Contrib/CCCS/CalculusOne/05.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_2_140.pg b/Contrib/CCCS/CalculusOne/05.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_2_140.pg index f5ed42f079..28fe499f35 100644 --- a/Contrib/CCCS/CalculusOne/05.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_2_140.pg +++ b/Contrib/CCCS/CalculusOne/05.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_2_140.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -57,14 +57,14 @@ Estimate [``\int_{[$a]}^{[$c]}[$f] dt``] by comparison with the area (M) of a single rectangle with height equal to the value of [`[$f]`] at the midpoint of the interval [`[0, [$c]]`]. -(a) Find the midpoint estimate [`\text{M}`] +(a) Find the midpoint estimate [`\text{M}`] -[``\text{M}=``][____________]{$M}[@ AnswerFormatHelp("numbers") @]* +[``\text{M}=``][____________]{$M}[@ helpLink("numbers") @]* (b) Find the value of the integral [``\int_{[$a]}^{[$c]}[$f] dt``] - - [``\int_{[$a]}^{[$c]}[$f] dt=``][_____________]{$M }[@ AnswerFormatHelp("numbers") @]* + + [``\int_{[$a]}^{[$c]}[$f] dt=``][_____________]{$M }[@ helpLink("numbers") @]* How does the midpoint estimate compare with the diff --git a/Contrib/CCCS/CalculusOne/05.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_2_141.pg b/Contrib/CCCS/CalculusOne/05.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_2_141.pg index 101821aac7..9579dcab82 100644 --- a/Contrib/CCCS/CalculusOne/05.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_2_141.pg +++ b/Contrib/CCCS/CalculusOne/05.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_2_141.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -53,7 +53,7 @@ BEGIN_PGML Consider the function [``f(x)=\sin([$k]\pi x)``]. - + (a) Explain why [``\int_{[$x1]}^{[$x2]}\sin([$k]\pi t) dt=0``] [@ ANS(essay_cmp); essay_box(5,50) @]* diff --git a/Contrib/CCCS/CalculusOne/05.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_2_71.pg b/Contrib/CCCS/CalculusOne/05.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_2_71.pg index f61af16b2e..4a78968461 100644 --- a/Contrib/CCCS/CalculusOne/05.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_2_71.pg +++ b/Contrib/CCCS/CalculusOne/05.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_2_71.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -61,13 +61,13 @@ grid=>[15,8], size=>[600,600] ); -add_functions($gr, "$f1 for x in <0,$a>" . +add_functions($gr, "$f1 for x in <0,$a>" . " using color:blue and weight:3"); -add_functions($gr, "$f2 for x in <$a,$b>" . +add_functions($gr, "$f2 for x in <$a,$b>" . " using color:blue and weight:3"); -add_functions($gr, "$f3 for x in <$b,$c>" . +add_functions($gr, "$f3 for x in <$b,$c>" . " using color:blue and weight:3"); $in=time(); @@ -83,7 +83,7 @@ Evaluate the integral of the function graphed using the formula for areas of tri -[`` \int_{0}^{[$c]} f(x) dx=``][_______________]{$ans }[@ AnswerFormatHelp("numbers") @]* +[`` \int_{0}^{[$c]} f(x) dx=``][_______________]{$ans }[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/05.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_2_72.pg b/Contrib/CCCS/CalculusOne/05.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_2_72.pg index b950662510..eabdda0ccb 100644 --- a/Contrib/CCCS/CalculusOne/05.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_2_72.pg +++ b/Contrib/CCCS/CalculusOne/05.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_2_72.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGchoicemacros.pl",, @@ -59,13 +59,13 @@ grid=>[18,18], size=>[600,600] ); -add_functions($gr, "$f1 for x in <0,$a>" . +add_functions($gr, "$f1 for x in <0,$a>" . " using color:blue and weight:3"); -add_functions($gr, "$f2 for x in <$a,$b>" . +add_functions($gr, "$f2 for x in <$a,$b>" . " using color:blue and weight:3"); -add_functions($gr, "$f3 for x in <$b,$c>" . +add_functions($gr, "$f3 for x in <$b,$c>" . " using color:blue and weight:3"); $in=time(); @@ -83,7 +83,7 @@ and circles, and subtracting the areas below the x-axis. -[`` \int_{0}^{[$c]} f(x) dx=``][_______________]{$ans }[@ AnswerFormatHelp("numbers") @]* +[`` \int_{0}^{[$c]} f(x) dx=``][_______________]{$ans }[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/05.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_2_77.pg b/Contrib/CCCS/CalculusOne/05.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_2_77.pg index 499e07caef..162ffb9f0d 100644 --- a/Contrib/CCCS/CalculusOne/05.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_2_77.pg +++ b/Contrib/CCCS/CalculusOne/05.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_2_77.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGunion.pl", "answerHints.pl", "PGML.pl", @@ -33,18 +33,18 @@ $showPartialCorrectAnswers = 1; ################################ # Setup - + Context("Numeric"); Context()->variables->are( -x=>"Real", i=>"Real", n=>"Real"); +x=>"Real", i=>"Real", n=>"Real"); $a=non_zero_random(-10,10); $k=random(1,10); $b=$a+$k; $m=non_zero_random(-10,10); $p=random(-10,10); -$f=Formula("$m*x+$p")->reduce(); -$ans=Formula(".5*$m*(($b)^2-($a)^2)+$p*$k")->reduce(); +$f=Formula("$m*x+$p")->reduce(); +$ans=Formula(".5*$m*(($b)^2-($a)^2)+$p*$k")->reduce(); @@ -55,7 +55,7 @@ BEGIN_PGML Evaluate the integral, [``\int_{[$a]}^{[$b]}[$f] \; dx``], using area formulas. -[``\int_{[$a]}^{[$b]}[$f]dx=``][____________________]{$ans }[@ AnswerFormatHelp("numbers") @]* +[``\int_{[$a]}^{[$b]}[$f]dx=``][____________________]{$ans }[@ helpLink("numbers") @]* END_PGML ##################################### diff --git a/Contrib/CCCS/CalculusOne/05.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_2_79.pg b/Contrib/CCCS/CalculusOne/05.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_2_79.pg index f3a4f5c014..05ea234cd4 100644 --- a/Contrib/CCCS/CalculusOne/05.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_2_79.pg +++ b/Contrib/CCCS/CalculusOne/05.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_2_79.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGunion.pl", -"AnswerFormatHelp.pl", + "answerHints.pl", "PGML.pl", "PGcourse.pl" @@ -34,15 +34,15 @@ TEXT(beginproblem()); ################################ # Setup - + $a=non_zero_random(-10,10); $k=random(1,10); $b=$a+$k; $p=random(-10,10); $m=$a+$k/2; -$f=Formula("$p-abs(x-$m)")->reduce(); -$ans=Formula("$p*$k-($k/2)^2")->reduce(); +$f=Formula("$p-abs(x-$m)")->reduce(); +$ans=Formula("$p*$k-($k/2)^2")->reduce(); @@ -53,7 +53,7 @@ BEGIN_PGML Evaluate the integral [``\int_{[$a]}^{[$b]}([$f])dx``] using area formulas. -[``\int_{[$a]}^{[$b]}([$f])dx=``][____________]{$ans }[@ AnswerFormatHelp("numbers") @]* +[``\int_{[$a]}^{[$b]}([$f])dx=``][____________]{$ans }[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/05.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_2_82.pg b/Contrib/CCCS/CalculusOne/05.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_2_82.pg index b5130f402c..b8c923986d 100644 --- a/Contrib/CCCS/CalculusOne/05.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_2_82.pg +++ b/Contrib/CCCS/CalculusOne/05.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_2_82.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -48,9 +48,9 @@ $ans=Formula("$k*(pi*$c)/4")->reduce; BEGIN_PGML -Evaluate the integral[``\int_{0}^{[$b]}[$f] dx``] using area formulas. +Evaluate the integral[``\int_{0}^{[$b]}[$f] dx``] using area formulas. -[``\int_{0}^{[$b]}[$f] dx=``][_________________]{$ans }[@ AnswerFormatHelp("numbers") @]* +[``\int_{0}^{[$b]}[$f] dx=``][_________________]{$ans }[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/05.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_2_84.pg b/Contrib/CCCS/CalculusOne/05.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_2_84.pg index 1cd0cb028c..8ed758878f 100644 --- a/Contrib/CCCS/CalculusOne/05.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_2_84.pg +++ b/Contrib/CCCS/CalculusOne/05.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_2_84.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -78,9 +78,9 @@ $ans3=$AV; BEGIN_PGML -Consider the piecewise linear function with lines connecting the following list of points on the given interval. +Consider the piecewise linear function with lines connecting the following list of points on the given interval. -(a) Estimate the area under the graph by using the left (L) endpoints for each of the pieces (notice the subintervals are not always equal length) to create five rectangles and find their total area. +(a) Estimate the area under the graph by using the left (L) endpoints for each of the pieces (notice the subintervals are not always equal length) to create five rectangles and find their total area. (b) Estimate the area under the graph by using the right (R) endpoints for each of the pieces (notice the subintervals are not always equal length) to create five rectangles and find their total area. @@ -91,13 +91,13 @@ Consider the piecewise linear function with lines connecting the following list -(a) [``L=``] [_________________]{$ans1}[@ AnswerFormatHelp("numbers") @]* +(a) [``L=``] [_________________]{$ans1}[@ helpLink("numbers") @]* -(b) [``R=``] [_________________]{$ans2}[@ AnswerFormatHelp("numbers") @]* +(b) [``R=``] [_________________]{$ans2}[@ helpLink("numbers") @]* -(c) [``\dfrac{L+R}{2}=``] [_________________]{$ans3}[@ AnswerFormatHelp("numbers") @]* +(c) [``\dfrac{L+R}{2}=``] [_________________]{$ans3}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/05.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_2_88.pg b/Contrib/CCCS/CalculusOne/05.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_2_88.pg index 652d68a0e2..ec0ba8c0ff 100644 --- a/Contrib/CCCS/CalculusOne/05.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_2_88.pg +++ b/Contrib/CCCS/CalculusOne/05.2/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_2_88.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -59,20 +59,20 @@ $ans3=Formula("$c1*($s1+$s2)-$c2*($t1+$t2)")->reduce(); BEGIN_PGML Suppose -[``\int_{[$a]}^{[$b]}f(x) dx=[$s1] \text{ and } \int_{[$b]}^{[$c]}f(x) dx=[$s2]``], +[``\int_{[$a]}^{[$b]}f(x) dx=[$s1] \text{ and } \int_{[$b]}^{[$c]}f(x) dx=[$s2]``], [``\int_{[$a]}^{[$b]}g(x) dx=[$t1] \text{ and } \int_{[$b]}^{[$c]}g(x) dx=[$t2]``]. Compute the following integrals. -(a) [``\int_{[$a]}^{[$c]}(f(x)+g(x)) dx=``][_________________]{$ans1 }[@ AnswerFormatHelp("numbers") @]* +(a) [``\int_{[$a]}^{[$c]}(f(x)+g(x)) dx=``][_________________]{$ans1 }[@ helpLink("numbers") @]* -(b) [``\int_{[$a]}^{[$c]}(f(x)-g(x)) dx=``][_________________]{$ans2 }[@ AnswerFormatHelp("numbers") @]* +(b) [``\int_{[$a]}^{[$c]}(f(x)-g(x)) dx=``][_________________]{$ans2 }[@ helpLink("numbers") @]* -(c) [``\int_{[$a]}^{[$c]}([$c1]f(x)-[$c2]g(x)) dx=``][_________________]{$ans3 }[@ AnswerFormatHelp("numbers") @]* +(c) [``\int_{[$a]}^{[$c]}([$c1]f(x)-[$c2]g(x)) dx=``][_________________]{$ans3 }[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/05.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_3_144.pg b/Contrib/CCCS/CalculusOne/05.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_3_144.pg index d29b413c95..771be7f4fb 100644 --- a/Contrib/CCCS/CalculusOne/05.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_3_144.pg +++ b/Contrib/CCCS/CalculusOne/05.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_3_144.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGessaymacros.pl", @@ -48,8 +48,8 @@ install_problem_grader(~~&std_problem_grader); BEGIN_PGML -Consider two athletes running at variable speeds [`v_{1}(t)`] and [`v_{2}(t)`]. -The runners start and finish a race at exactly the same time. +Consider two athletes running at variable speeds [`v_{1}(t)`] and [`v_{2}(t)`]. +The runners start and finish a race at exactly the same time. Explain why the two runners must be going the same speed at some point. diff --git a/Contrib/CCCS/CalculusOne/05.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_3_146.pg b/Contrib/CCCS/CalculusOne/05.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_3_146.pg index e816d2ae30..fac3e3315b 100644 --- a/Contrib/CCCS/CalculusOne/05.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_3_146.pg +++ b/Contrib/CCCS/CalculusOne/05.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_3_146.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGessaymacros.pl", @@ -48,7 +48,7 @@ install_problem_grader(~~&std_problem_grader); BEGIN_PGML -To get on a certain toll road a driver has to take a card that list the mile entrance point. The card also has a timestamp. +To get on a certain toll road a driver has to take a card that list the mile entrance point. The card also has a timestamp. When going to pay the toll at the exit, the driver is surprised to receive a speeding ticket along with the toll. Explain how this can happen. diff --git a/Contrib/CCCS/CalculusOne/05.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_3_149.pg b/Contrib/CCCS/CalculusOne/05.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_3_149.pg index 9dc7389a56..b16bdfc363 100644 --- a/Contrib/CCCS/CalculusOne/05.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_3_149.pg +++ b/Contrib/CCCS/CalculusOne/05.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_3_149.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -55,7 +55,7 @@ BEGIN_PGML Use the Fundamental Theorem of Calculus, Part 1, to find the following derivative. -[``\dfrac{d}{dx}\int_{[$a]}^{[$g]}e^{\cos(t)} dt=``][_________________]{$ans } [@ AnswerFormatHelp("formulas") @]* +[``\dfrac{d}{dx}\int_{[$a]}^{[$g]}e^{\cos(t)} dt=``][_________________]{$ans } [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/05.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_3_153.pg b/Contrib/CCCS/CalculusOne/05.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_3_153.pg index bcb5dc17bd..89c2d79554 100644 --- a/Contrib/CCCS/CalculusOne/05.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_3_153.pg +++ b/Contrib/CCCS/CalculusOne/05.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_3_153.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -53,7 +53,7 @@ $ans=Formula("$dg*$g")->reduce; BEGIN_PGML Use the Fundamental Theorem of Calculus, Part 1, to find the following derivative. -[``\dfrac{d}{dx}\int_{[$a]}^{[$g]}tdt=``][_________________]{$ans } [@ AnswerFormatHelp("formulas") @]* +[``\dfrac{d}{dx}\int_{[$a]}^{[$g]}tdt=``][_________________]{$ans } [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/05.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_3_155.pg b/Contrib/CCCS/CalculusOne/05.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_3_155.pg index d4c5cd1e2c..6dd58a4559 100644 --- a/Contrib/CCCS/CalculusOne/05.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_3_155.pg +++ b/Contrib/CCCS/CalculusOne/05.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_3_155.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -54,7 +54,7 @@ $ans=Formula("-$dg*sqrt($r-($g)^2)")->reduce; BEGIN_PGML Use the Fundamental Theorem of Calculus, Part 1, to find the following derivative. -[``\dfrac{d}{dx}\int_{[$g]}^{[$a]}\sqrt{[$r]-t^2} dt=``][______________________]{$ans } [@ AnswerFormatHelp("formulas") @]* +[``\dfrac{d}{dx}\int_{[$g]}^{[$a]}\sqrt{[$r]-t^2} dt=``][______________________]{$ans } [@ helpLink("formulas") @]* END_PGML @@ -67,7 +67,7 @@ If `f(x)` is continous over an interval [`[a,b]`] then [`` \frac{d}{dx} \int_a^x f(t)dt = f(x)``] for `x` in [`[a,b]`]. -For this problem, rewrite the integral so that the variable is in the top bound, and then use the Fundamental Theorem of Calculus and the chain rule where needed. +For this problem, rewrite the integral so that the variable is in the top bound, and then use the Fundamental Theorem of Calculus and the chain rule where needed. Example: diff --git a/Contrib/CCCS/CalculusOne/05.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_3_160.pg b/Contrib/CCCS/CalculusOne/05.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_3_160.pg index 46784e137c..b100e5c521 100644 --- a/Contrib/CCCS/CalculusOne/05.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_3_160.pg +++ b/Contrib/CCCS/CalculusOne/05.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_3_160.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -73,8 +73,8 @@ $ans1=Union($I1,$I4); # where f is positive $ans2=Union($I2,$I6); #where f is negative $ans3=$I5; #where f is zero -#average value of f is 1/(b-a)\int_a^bf(t)dt = (1/6)\int_0^6f(t)dt = (1/6)y(6), which is one sixth the y value from the graph at x=6. -$ans4=Formula("($m-$h3)/(6)")->reduce(); +#average value of f is 1/(b-a)\int_a^bf(t)dt = (1/6)\int_0^6f(t)dt = (1/6)y(6), which is one sixth the y value from the graph at x=6. +$ans4=Formula("($m-$h3)/(6)")->reduce(); #setting up the graph $gr = init_graph(-1,-1,8,8, @@ -93,22 +93,22 @@ foreach my $i (-10..10) { $gr->lb( new Label($i,0, $i, 'black', 'center', 'top')); $gr->lb( new Label(-0.1,$i, $i, 'black', 'right', 'middle')); } -add_functions($gr, "$f1 for x in <0,1>" . +add_functions($gr, "$f1 for x in <0,1>" . " using color:blue and weight:2"); -add_functions($gr, "$f2 for x in <1,2>" . +add_functions($gr, "$f2 for x in <1,2>" . " using color:blue and weight:2"); -add_functions($gr, "$f3 for x in <2,3>" . +add_functions($gr, "$f3 for x in <2,3>" . " using color:blue and weight:2"); -add_functions($gr, "$f4 for x in <3,4>" . +add_functions($gr, "$f4 for x in <3,4>" . " using color:blue and weight:2"); -add_functions($gr, "$f5 for x in <4,5>" . +add_functions($gr, "$f5 for x in <4,5>" . " using color:blue and weight:2"); -add_functions($gr, "$f6 for x in <5,6>" . +add_functions($gr, "$f6 for x in <5,6>" . " using color:blue and weight:2"); $in=time(); @@ -128,32 +128,32 @@ The graph of [``y=\int_{0}^{x}f(t) dt``], where [`f`] is a piecewise constant fu (a) Over which interval is [`f`] positive? -[``f>0``] over [_____________]{$ans1} [@ AnswerFormatHelp("intervals") @]* +[``f>0``] over [_____________]{$ans1} [@ helpLink("intervals") @]* (b) Over which interval is [`f`] negative? -[``f<0``] over [_____________]{$ans2} [@ AnswerFormatHelp("intervals") @]* +[``f<0``] over [_____________]{$ans2} [@ helpLink("intervals") @]* (c) Over which interval is [`f`] equal to zero? -[``f=0``] over [_____________]{$ans3 } [@ AnswerFormatHelp("intervals") @]* +[``f=0``] over [_____________]{$ans3 } [@ helpLink("intervals") @]* (d) What is the maximum value of [`f`]? -The maximum value is [__________]{$max }[@ AnswerFormatHelp("numbers") @]* +The maximum value is [__________]{$max }[@ helpLink("numbers") @]* (e) What is the minimum value of [`f`]? -The minimum value is [__________]{$min }[@ AnswerFormatHelp("numbers") @]* +The minimum value is [__________]{$min }[@ helpLink("numbers") @]* (f) What is the average value of [`f`] over the interval [`[0, 6]`]? -The average value is [__________]{$ans4 }[@ AnswerFormatHelp("numbers") @]* +The average value is [__________]{$ans4 }[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/05.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_3_173.pg b/Contrib/CCCS/CalculusOne/05.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_3_173.pg index 5799619a0a..32534fb5e4 100644 --- a/Contrib/CCCS/CalculusOne/05.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_3_173.pg +++ b/Contrib/CCCS/CalculusOne/05.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_3_173.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -60,7 +60,7 @@ BEGIN_PGML Evaluate [``\int_{[$c]}^{[$d]}[$f] dt``] using the Fundamental Theorem of Calculus, Part 2. Enter only exact answers. -[``\int_{[$c]}^{[$d]}[$f] dt=``][_________________]{$ans }[@ AnswerFormatHelp("numbers") @]* +[``\int_{[$c]}^{[$d]}[$f] dt=``][_________________]{$ans }[@ helpLink("numbers") @]* END_PGML @@ -69,7 +69,7 @@ BEGIN_PGML_HINT The Fundamental Theorem of Calculus, Part II: -If `f` is continuous over the interval [`[a,b]`] and `F(x)` is any antiderivative of `f(x)`, then +If `f` is continuous over the interval [`[a,b]`] and `F(x)` is any antiderivative of `f(x)`, then [``\int_a^b f(x)dx = F(b)-F(a)``] Example: diff --git a/Contrib/CCCS/CalculusOne/05.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_3_176.pg b/Contrib/CCCS/CalculusOne/05.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_3_176.pg index bc458fd666..407ff66e24 100644 --- a/Contrib/CCCS/CalculusOne/05.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_3_176.pg +++ b/Contrib/CCCS/CalculusOne/05.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_3_176.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -55,7 +55,7 @@ Evaluate [``\int_{[$c]}^{[$d]}\left([$a]t^{[$p]/2}-[$b]t^{[$q]/2}\right) dt``] u -[``\int_{[$c]}^{[$d]}\left([$a]t^{[$p]/2}-[$b]t^{[$q]/2}\right) dt=``][_________________]{$ans }[@ AnswerFormatHelp("numbers") @]* +[``\int_{[$c]}^{[$d]}\left([$a]t^{[$p]/2}-[$b]t^{[$q]/2}\right) dt=``][_________________]{$ans }[@ helpLink("numbers") @]* END_PGML @@ -64,7 +64,7 @@ BEGIN_PGML_HINT The Fundamental Theorem of Calculus, Part II: -If `f` is continuous over the interval [`[a,b]`] and `F(x)` is any antiderivative of `f(x)`, then +If `f` is continuous over the interval [`[a,b]`] and `F(x)` is any antiderivative of `f(x)`, then [``\int_a^b f(x)dx = F(b)-F(a)``] diff --git a/Contrib/CCCS/CalculusOne/05.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_3_179.pg b/Contrib/CCCS/CalculusOne/05.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_3_179.pg index 3ccc6f69f8..844925300c 100644 --- a/Contrib/CCCS/CalculusOne/05.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_3_179.pg +++ b/Contrib/CCCS/CalculusOne/05.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_3_179.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -57,7 +57,7 @@ Evaluate [``\int_{[$a]}^{[$b]}[$f] dx``] using the Fundamental Theorem of Calcul -[``\int_{[$a]}^{[$b]}[$f] dx=``][_________________]{$ans }[@ AnswerFormatHelp("numbers") @]* +[``\int_{[$a]}^{[$b]}[$f] dx=``][_________________]{$ans }[@ helpLink("numbers") @]* END_PGML @@ -66,7 +66,7 @@ BEGIN_PGML_HINT The Fundamental Theorem of Calculus, Part II: -If `f` is continuous over the interval [`[a,b]`] and `F(x)` is any antiderivative of `f(x)`, then +If `f` is continuous over the interval [`[a,b]`] and `F(x)` is any antiderivative of `f(x)`, then [``\int_a^b f(x)dx = F(b)-F(a)``] diff --git a/Contrib/CCCS/CalculusOne/05.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_3_180.pg b/Contrib/CCCS/CalculusOne/05.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_3_180.pg index 099291a7ba..b849926b05 100644 --- a/Contrib/CCCS/CalculusOne/05.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_3_180.pg +++ b/Contrib/CCCS/CalculusOne/05.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_3_180.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -62,7 +62,7 @@ Evaluate [``\int_{[$a]}^{[$b]}[$f] dt``] using the Fundamental Theorem of Calcul -[``\int_{[$a]}^{[$b]}[$f] dt=``][_________________]{$ans }[@ AnswerFormatHelp("numbers") @]* +[``\int_{[$a]}^{[$b]}[$f] dt=``][_________________]{$ans }[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/05.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_3_182.pg b/Contrib/CCCS/CalculusOne/05.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_3_182.pg index 655ea72bed..091f7adbc5 100644 --- a/Contrib/CCCS/CalculusOne/05.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_3_182.pg +++ b/Contrib/CCCS/CalculusOne/05.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_3_182.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -51,10 +51,10 @@ $ans2=Compute("$a*$k*sin(2*pi/$k)"); BEGIN_PGML Evaluate the following integrals using the Fundamental Theorem of Calculus, Part 2. -(a) [``\int_{0}^{[$k]\pi}[$a]\cos(\theta) d\theta=``][_________________]{$ans1 }[@ AnswerFormatHelp("numbers") @]* +(a) [``\int_{0}^{[$k]\pi}[$a]\cos(\theta) d\theta=``][_________________]{$ans1 }[@ helpLink("numbers") @]* -(b) [``\int_{0}^{2\pi}[$a]\cos\left(\dfrac{\theta}{[$k]}\right) d\theta=``][_________________]{$ans2 }[@ AnswerFormatHelp("numbers") @]* +(b) [``\int_{0}^{2\pi}[$a]\cos\left(\dfrac{\theta}{[$k]}\right) d\theta=``][_________________]{$ans2 }[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/05.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_3_185.pg b/Contrib/CCCS/CalculusOne/05.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_3_185.pg index 6fbfab2c13..a840a6c58c 100644 --- a/Contrib/CCCS/CalculusOne/05.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_3_185.pg +++ b/Contrib/CCCS/CalculusOne/05.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_3_185.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -63,7 +63,7 @@ Evaluate [``\int_{0}^{\pi/[$k]}[$a]\sec(\theta)\tan(\theta) d\theta``] using the -[``\int_{0}^{\pi/[$k]}[$a]\sec(\theta)\tan(\theta) d\theta=``][_________________]{$ans }[@ AnswerFormatHelp("numbers") @]* +[``\int_{0}^{\pi/[$k]}[$a]\sec(\theta)\tan(\theta) d\theta=``][_________________]{$ans }[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/05.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_3_189.pg b/Contrib/CCCS/CalculusOne/05.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_3_189.pg index 6638937ecd..2c96a39216 100644 --- a/Contrib/CCCS/CalculusOne/05.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_3_189.pg +++ b/Contrib/CCCS/CalculusOne/05.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_3_189.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -69,7 +69,7 @@ Evaluate [``\int_{[$a]}^{[$b]}\left([$f]\right) dt``] using the Fundamental Theo -[``\int_{[$a]}^{[$b]}\left([$f]\right) dt=``][_________________]{$ans }[@ AnswerFormatHelp("numbers") @]* +[``\int_{[$a]}^{[$b]}\left([$f]\right) dt=``][_________________]{$ans }[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/05.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_3_191.pg b/Contrib/CCCS/CalculusOne/05.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_3_191.pg index 54737d60ef..63f8c48744 100644 --- a/Contrib/CCCS/CalculusOne/05.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_3_191.pg +++ b/Contrib/CCCS/CalculusOne/05.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_3_191.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -58,7 +58,7 @@ Use the evaluation theorem to express [``\int_{[$a]}^{x} [$f] dt``] as a functio -[``\int_{[$a]}^{x} [$f] dt=F(x)=``][_________________]{$ans }[@ AnswerFormatHelp("formulas") @]* +[``\int_{[$a]}^{x} [$f] dt=F(x)=``][_________________]{$ans }[@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/05.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_3_195.pg b/Contrib/CCCS/CalculusOne/05.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_3_195.pg index 636069ed31..60fb36eff8 100644 --- a/Contrib/CCCS/CalculusOne/05.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_3_195.pg +++ b/Contrib/CCCS/CalculusOne/05.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_3_195.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -63,15 +63,15 @@ $ans2=Formula("(2*$k^(3))/3+$p*($k^(2))+($p^(3))/6")->reduce(); BEGIN_PGML -Identify the roots of the integrand in [``\int_{[$c]}^{[$d]} [$f] dt``] to remove the absolute value, then evaluate the integral using the Fundamental Theorem of Calculus, Part 2. +Identify the roots of the integrand in [``\int_{[$c]}^{[$d]} [$f] dt``] to remove the absolute value, then evaluate the integral using the Fundamental Theorem of Calculus, Part 2. -[``\text{The roots of the integrand are:}``][__________]{$ans1 } (Use a comma to separate roots) [@ AnswerFormatHelp("numbers") @]* +[``\text{The roots of the integrand are:}``][__________]{$ans1 } (Use a comma to separate roots) [@ helpLink("numbers") @]* -[``\int_{[$c]}^{[$d]} [$f] dt=``][_________________]{$ans2 } [@ AnswerFormatHelp("numbers") @]* +[``\int_{[$c]}^{[$d]} [$f] dt=``][_________________]{$ans2 } [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/05.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_3_200.pg b/Contrib/CCCS/CalculusOne/05.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_3_200.pg index 06eb5d445f..9b715c8be4 100644 --- a/Contrib/CCCS/CalculusOne/05.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_3_200.pg +++ b/Contrib/CCCS/CalculusOne/05.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_3_200.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGessaymacros.pl", diff --git a/Contrib/CCCS/CalculusOne/05.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_3_sup1.pg b/Contrib/CCCS/CalculusOne/05.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_3_sup1.pg index ec0043deee..1cae3e8500 100644 --- a/Contrib/CCCS/CalculusOne/05.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_3_sup1.pg +++ b/Contrib/CCCS/CalculusOne/05.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_3_sup1.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); diff --git a/Contrib/CCCS/CalculusOne/05.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_3_sup2.pg b/Contrib/CCCS/CalculusOne/05.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_3_sup2.pg index c8083ecaec..73d920442c 100644 --- a/Contrib/CCCS/CalculusOne/05.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_3_sup2.pg +++ b/Contrib/CCCS/CalculusOne/05.3/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_3_sup2.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); diff --git a/Contrib/CCCS/CalculusOne/05.4/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_4_207.pg b/Contrib/CCCS/CalculusOne/05.4/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_4_207.pg index 3c74c68fe4..6d576a6957 100644 --- a/Contrib/CCCS/CalculusOne/05.4/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_4_207.pg +++ b/Contrib/CCCS/CalculusOne/05.4/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_4_207.pg @@ -22,7 +22,7 @@ loadMacros( "PGML.pl", "PGchoicemacros.pl", "PGanswermacros.pl", -"AnswerFormatHelp.pl", + "PGauxiliaryFunctions.pl", "parserFormulaUpToConstant.pl" ); @@ -38,7 +38,7 @@ BEGIN_PGML Evaluate the following indefinite integral. -[`` \displaystyle \int \left(\frac{[$b]}{\sqrt[3]{x}} - [$a] \sqrt[3]{x}\right) \, dx =``][___________________________]{$func} [@ AnswerFormatHelp("formulas") @]* +[`` \displaystyle \int \left(\frac{[$b]}{\sqrt[3]{x}} - [$a] \sqrt[3]{x}\right) \, dx =``][___________________________]{$func} [@ helpLink("formulas") @]* _You can use "C" for any arbitrary constant in your answer._ diff --git a/Contrib/CCCS/CalculusOne/05.4/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_4_208.pg b/Contrib/CCCS/CalculusOne/05.4/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_4_208.pg index 71e54c3ebe..7fdbe15b7d 100644 --- a/Contrib/CCCS/CalculusOne/05.4/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_4_208.pg +++ b/Contrib/CCCS/CalculusOne/05.4/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_4_208.pg @@ -19,7 +19,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserFormulaUpToConstant.pl" @@ -38,7 +38,7 @@ BEGIN_PGML Evaluate the following indefinite integral. -[``\displaystyle \int \frac{e^{x/[$b]}}{[$a]} - e^{[$c] x} \, dx =``][______________________]{$func} [@ AnswerFormatHelp("formulas") @]* +[``\displaystyle \int \frac{e^{x/[$b]}}{[$a]} - e^{[$c] x} \, dx =``][______________________]{$func} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/05.4/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_4_210.pg b/Contrib/CCCS/CalculusOne/05.4/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_4_210.pg index 601b2ca561..d6dd78af3e 100644 --- a/Contrib/CCCS/CalculusOne/05.4/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_4_210.pg +++ b/Contrib/CCCS/CalculusOne/05.4/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_4_210.pg @@ -21,7 +21,7 @@ loadMacros( "PGML.pl", "PGchoicemacros.pl", "PGanswermacros.pl", -"AnswerFormatHelp.pl", + "PGauxiliaryFunctions.pl", "parserFormulaUpToConstant.pl" ); @@ -37,7 +37,7 @@ BEGIN_PGML Evaluate the following indefinite integral. -[`` \displaystyle \int \frac{[$a] x-[$b]}{x^2} \, dx =``][___________________________]{$func}[@ AnswerFormatHelp("formulas") @]* +[`` \displaystyle \int \frac{[$a] x-[$b]}{x^2} \, dx =``][___________________________]{$func}[@ helpLink("formulas") @]* diff --git a/Contrib/CCCS/CalculusOne/05.4/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_4_211.pg b/Contrib/CCCS/CalculusOne/05.4/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_4_211.pg index 54469673f8..2d0b7aad88 100644 --- a/Contrib/CCCS/CalculusOne/05.4/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_4_211.pg +++ b/Contrib/CCCS/CalculusOne/05.4/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_4_211.pg @@ -14,12 +14,12 @@ ########################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserFormulaUpToConstant.pl" @@ -48,10 +48,10 @@ $ans = $f->eval(x=>$a,y=>$b); BEGIN_PGML Evaluate the following definite integral. -[`` \int_{ \pi/2 } ^ { \pi } [$a] \sin(x) - [$b] \cos(x) \, dx= ``][________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`` \int_{ \pi/2 } ^ { \pi } [$a] \sin(x) - [$b] \cos(x) \, dx= ``][________________]{$ans} [@ helpLink("numbers") @]* -END_PGML +END_PGML ############################ @@ -65,4 +65,4 @@ END_PGML COMMENT('MathObject version. Uses PGML.'); -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/CalculusOne/05.4/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_4_212.pg b/Contrib/CCCS/CalculusOne/05.4/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_4_212.pg index ae1e22168f..709c54f39c 100644 --- a/Contrib/CCCS/CalculusOne/05.4/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_4_212.pg +++ b/Contrib/CCCS/CalculusOne/05.4/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_4_212.pg @@ -14,12 +14,12 @@ ########################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGbasicmacros.pl", "PGanswermacros.pl", -"AnswerFormatHelp.pl", + "PGauxiliaryFunctions.pl", "MathObjects.pl", "PGcourse.pl", @@ -50,18 +50,18 @@ $ans = $f->eval(x=>$a,y=>$b); BEGIN_PGML Evaluate the following definite integral. -[`` \int_{ 0 } ^ { \pi/2 } [$a] x - [$b] \sin(x) dx = ``][_____________________]{$ans } [@ AnswerFormatHelp("numbers") @]* +[`` \int_{ 0 } ^ { \pi/2 } [$a] x - [$b] \sin(x) dx = ``][_____________________]{$ans } [@ helpLink("numbers") @]* -END_PGML +END_PGML ############################ # Solution - + #BEGIN_PGML_SOLUTION @@ -69,12 +69,11 @@ END_PGML #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); - \ No newline at end of file diff --git a/Contrib/CCCS/CalculusOne/05.4/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_4_226.pg b/Contrib/CCCS/CalculusOne/05.4/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_4_226.pg index 518f617f34..22da2cc455 100644 --- a/Contrib/CCCS/CalculusOne/05.4/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_4_226.pg +++ b/Contrib/CCCS/CalculusOne/05.4/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_4_226.pg @@ -13,12 +13,12 @@ ########################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGbasicmacros.pl", @@ -48,11 +48,11 @@ Suppose that a particle moves along a straight line with acceleration defined by total distance = [_________________________________]{$ans} meters. END_PGML - -ENDDOCUMENT(); + +ENDDOCUMENT(); diff --git a/Contrib/CCCS/CalculusOne/05.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_5_256.pg b/Contrib/CCCS/CalculusOne/05.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_5_256.pg index fb87fe6a7d..a4c5750393 100644 --- a/Contrib/CCCS/CalculusOne/05.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_5_256.pg +++ b/Contrib/CCCS/CalculusOne/05.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_5_256.pg @@ -20,7 +20,7 @@ loadMacros( "PG.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGbasicmacros.pl", "PGchoicemacros.pl", "PGanswermacros.pl", @@ -36,11 +36,11 @@ TEXT(EV2(<{limits} = [1,3]; BEGIN_PGML Use a suitable change of variables (i.e., substitution) to evaluate the following integral. -[`` \int [$func1]*[$func2] dx = ``] [_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`` \int [$func1]*[$func2] dx = ``] [_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/05.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_5_276.pg b/Contrib/CCCS/CalculusOne/05.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_5_276.pg index 0420c4ee2c..e05dddee77 100644 --- a/Contrib/CCCS/CalculusOne/05.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_5_276.pg +++ b/Contrib/CCCS/CalculusOne/05.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_5_276.pg @@ -19,7 +19,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserFormulaUpToConstant.pl" @@ -37,7 +37,7 @@ $ans = FormulaUpToConstant("$a/($b+1) * (sin^($b+1) (x))"); BEGIN_PGML Use a suitable change of variables (i.e., substitution) to evaluate the following integral. -[``\int [$func] dx = ``] [_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[``\int [$func] dx = ``] [_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/05.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_5_278.pg b/Contrib/CCCS/CalculusOne/05.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_5_278.pg index 2bb279c26c..b4539f9bfa 100644 --- a/Contrib/CCCS/CalculusOne/05.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_5_278.pg +++ b/Contrib/CCCS/CalculusOne/05.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_5_278.pg @@ -19,7 +19,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserFormulaUpToConstant.pl" @@ -37,7 +37,7 @@ BEGIN_PGML Use a suitable change of variables (i.e., substitution) to evaluate the following integral. Hint: [` \sin^2(\theta)+\cos^2(\theta) = 1 `] -[` \int [$func] dx = `] [_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[` \int [$func] dx = `] [_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/05.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_5_279.pg b/Contrib/CCCS/CalculusOne/05.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_5_279.pg index 84969c07b0..cfe2a16eb1 100644 --- a/Contrib/CCCS/CalculusOne/05.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_5_279.pg +++ b/Contrib/CCCS/CalculusOne/05.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_5_279.pg @@ -19,7 +19,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserFormulaUpToConstant.pl" @@ -38,7 +38,7 @@ $ans = FormulaUpToConstant("($a*(sin(t**2*$b**2))**2)/(4*$b**2)"); BEGIN_PGML Use a suitable change of variables (i.e., substitution) to evaluate the following integral. -[`` \int [$func] dt = ``] [_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`` \int [$func] dt = ``] [_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/05.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_5_284.pg b/Contrib/CCCS/CalculusOne/05.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_5_284.pg index 5a2c0024e7..9390d3b8e1 100644 --- a/Contrib/CCCS/CalculusOne/05.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_5_284.pg +++ b/Contrib/CCCS/CalculusOne/05.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_5_284.pg @@ -19,7 +19,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserFormulaUpToConstant.pl" @@ -37,7 +37,7 @@ $ans = FormulaUpToConstant("($b/($a+1))*($b-cos(x))^($a+1) - (1/($a+2))*($b-cos( BEGIN_PGML Use a suitable change of variables (i.e., substitution) to evaluate the following integral. -[`` \int [$func] dx = ``] [_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`` \int [$func] dx = ``] [_______________]{$ans} [@ helpLink("formulas") @]* END_PGML ENDDOCUMENT(); diff --git a/Contrib/CCCS/CalculusOne/05.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_5_296.pg b/Contrib/CCCS/CalculusOne/05.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_5_296.pg index 20d8f20b79..db6367fd0f 100644 --- a/Contrib/CCCS/CalculusOne/05.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_5_296.pg +++ b/Contrib/CCCS/CalculusOne/05.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_5_296.pg @@ -14,12 +14,12 @@ ########################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGbasicmacros.pl", "PGanswermacros.pl", "PGauxiliaryFunctions.pl", -"AnswerFormatHelp.pl", + "MathObjects.pl", "PGcourse.pl", "PGstandard.pl", @@ -53,12 +53,12 @@ $ans=$f->eval(x=>$a,y=>$b); # Main text BEGIN_PGML -Use a change of variable (i.e., substitution) to evaluate the following definite integral. +Use a change of variable (i.e., substitution) to evaluate the following definite integral. -[`` \int_{ 0 } ^ { \pi/4} [$a] \sec^2 (x) \tan^{[$b]} (x) \, dx= ``][_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`` \int_{ 0 } ^ { \pi/4} [$a] \sec^2 (x) \tan^{[$b]} (x) \, dx= ``][_________________]{$ans} [@ helpLink("numbers") @]* -END_PGML +END_PGML ############################ @@ -68,12 +68,11 @@ END_PGML #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); - \ No newline at end of file diff --git a/Contrib/CCCS/CalculusOne/05.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_5_306.pg b/Contrib/CCCS/CalculusOne/05.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_5_306.pg index dbc49deba2..473a223855 100644 --- a/Contrib/CCCS/CalculusOne/05.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_5_306.pg +++ b/Contrib/CCCS/CalculusOne/05.5/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_5_306.pg @@ -14,13 +14,13 @@ ########################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PG.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGbasicmacros.pl", "PGanswermacros.pl", "PGauxiliaryFunctions.pl" @@ -33,9 +33,9 @@ $a = random(2,9,.5); $b = random(2,20,2); BEGIN_TEXT -Use a change of variable (i.e., substitution) to evaluate the following definite integral. +Use a change of variable (i.e., substitution) to evaluate the following definite integral. $BR$BR -\(\displaystyle \int_{ 0 } ^ { \pi } $a \cos^2 ($b x) \sin ($b x) \, dx= \) \{ans_rule(30) \} \{ AnswerFormatHelp("numbers") \}$BR $BR +\(\displaystyle \int_{ 0 } ^ { \pi } $a \cos^2 ($b x) \sin ($b x) \, dx= \) \{ans_rule(30) \} \{ helpLink("numbers") \}$BR $BR END_TEXT @@ -43,4 +43,4 @@ END_TEXT $ans = "0"; ANS(num_cmp($ans)); -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_320.pg b/Contrib/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_320.pg index c3592bf642..d00ddfbd4b 100644 --- a/Contrib/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_320.pg +++ b/Contrib/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_320.pg @@ -18,7 +18,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserFormulaUpToConstant.pl" @@ -36,7 +36,7 @@ BEGIN_PGML Evaluate the following indefinite integral. -[``\displaystyle \int ([$a] e^{[$b] x} + [$c])\, dx =``][______________________]{$func} [@ AnswerFormatHelp("formulas") @]* +[``\displaystyle \int ([$a] e^{[$b] x} + [$c])\, dx =``][______________________]{$func} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_322.pg b/Contrib/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_322.pg index cee9e62c74..2f9ac9b446 100644 --- a/Contrib/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_322.pg +++ b/Contrib/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_322.pg @@ -18,10 +18,10 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", -"AnswerFormatHelp.pl", + "parserFormulaUpToConstant.pl", "PGanswermacros.pl", "PGauxiliaryFunctions.pl" @@ -49,7 +49,7 @@ END_PGML BEGIN_PGML_HINT -[`\displaystyle \int b^x dx = \frac{b^x}{\ln(b)} +C `] +[`\displaystyle \int b^x dx = \frac{b^x}{\ln(b)} +C `] END_PGML_HINT ############################ diff --git a/Contrib/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_324.pg b/Contrib/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_324.pg index 96aec200f4..24eaa43386 100644 --- a/Contrib/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_324.pg +++ b/Contrib/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_324.pg @@ -18,7 +18,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserFormulaUpToConstant.pl" @@ -36,7 +36,7 @@ BEGIN_PGML Evaluate the following indefinite integral. -[``\displaystyle \int ([$a]^{-[$b] x} + [$c] x) \, dx =``][_____________________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[``\displaystyle \int ([$a]^{-[$b] x} + [$c] x) \, dx =``][_____________________________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_330.pg b/Contrib/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_330.pg index be70dfd419..1218e1d1ff 100644 --- a/Contrib/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_330.pg +++ b/Contrib/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_330.pg @@ -18,7 +18,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserFormulaUpToConstant.pl" @@ -37,7 +37,7 @@ BEGIN_PGML Evaluate the following indefinite integral. -[`` \displaystyle \int \frac{[$a]}{ [$b] x (\ln(x))^[$c]} \, dx =``][______________________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`` \displaystyle \int \frac{[$a]}{ [$b] x (\ln(x))^[$c]} \, dx =``][______________________________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_333.pg b/Contrib/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_333.pg index 1fb42aad6d..abc4c402de 100644 --- a/Contrib/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_333.pg +++ b/Contrib/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_333.pg @@ -18,7 +18,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserFormulaUpToConstant.pl" @@ -35,7 +35,7 @@ BEGIN_PGML Evaluate the following indefinite integral. -[`` \displaystyle \int \frac{[$a] (\cos(x) - x\sin(x))}{[$b] x \cos(x)} \, dx =``][____________________________________]{$func} [@ AnswerFormatHelp("formulas") @]* +[`` \displaystyle \int \frac{[$a] (\cos(x) - x\sin(x))}{[$b] x \cos(x)} \, dx =``][____________________________________]{$func} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_340.pg b/Contrib/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_340.pg index b22952e974..3ef4166ed9 100644 --- a/Contrib/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_340.pg +++ b/Contrib/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_340.pg @@ -18,7 +18,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserFormulaUpToConstant.pl" @@ -36,7 +36,7 @@ BEGIN_PGML Evaluate the following indefinite integral. -[``\displaystyle \int \frac{[$a]^{\ln(x)}}{[$b] x} \, dx =``][___________________________________]{$func} [@ AnswerFormatHelp("formulas") @]* +[``\displaystyle \int \frac{[$a]^{\ln(x)}}{[$b] x} \, dx =``][___________________________________]{$func} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_340_a.pg b/Contrib/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_340_a.pg index 47273f75b1..1c2315dda1 100644 --- a/Contrib/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_340_a.pg +++ b/Contrib/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_340_a.pg @@ -18,7 +18,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserFormulaUpToConstant.pl" @@ -35,7 +35,7 @@ BEGIN_PGML Evaluate the following indefinite integral. -[``\displaystyle \int \frac{[$a] e^{\ln(x)}}{[$b] x} \, dx =``][_____________________________]{$func} [@ AnswerFormatHelp("formulas") @]* +[``\displaystyle \int \frac{[$a] e^{\ln(x)}}{[$b] x} \, dx =``][_____________________________]{$func} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_350.pg b/Contrib/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_350.pg index 389db42537..87f3c36422 100644 --- a/Contrib/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_350.pg +++ b/Contrib/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_350.pg @@ -18,7 +18,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserFormulaUpToConstant.pl" @@ -37,7 +37,7 @@ BEGIN_PGML Evaluate the following indefinite integral. -[`` \displaystyle \int \frac{[$a] x^{[$d]} \sin(x^[$c])}{[$b] \cos(x^[$c])} \, dx =``][_______________________________]{$func} [@ AnswerFormatHelp("formulas") @]* +[`` \displaystyle \int \frac{[$a] x^{[$d]} \sin(x^[$c])}{[$b] \cos(x^[$c])} \, dx =``][_______________________________]{$func} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_359.pg b/Contrib/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_359.pg index b4ef00a3ae..ca72fdf6f4 100644 --- a/Contrib/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_359.pg +++ b/Contrib/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_359.pg @@ -18,7 +18,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -36,7 +36,7 @@ BEGIN_PGML Evaluate the following definite integral. Enter an exact value. -[``\displaystyle \int_{\pi/3}^{\pi/4}([$a] \cot(x) - [$b]) \, dx =``][_______________________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[``\displaystyle \int_{\pi/3}^{\pi/4}([$a] \cot(x) - [$b]) \, dx =``][_______________________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_360.pg b/Contrib/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_360.pg index c074be75a8..6bfc9b6614 100644 --- a/Contrib/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_360.pg +++ b/Contrib/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_360.pg @@ -18,7 +18,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserFormulaUpToConstant.pl" @@ -36,7 +36,7 @@ BEGIN_PGML Evaluate the following indefinite integral. -[`` \displaystyle \int \frac {[$a] x}{[$b] - x} \, dx =``][__________________________________]{$func} [@ AnswerFormatHelp("formulas") @]* +[`` \displaystyle \int \frac {[$a] x}{[$b] - x} \, dx =``][__________________________________]{$func} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_362.pg b/Contrib/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_362.pg index 2b5da19364..9829445b5f 100644 --- a/Contrib/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_362.pg +++ b/Contrib/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_362.pg @@ -18,7 +18,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserFormulaUpToConstant.pl" @@ -35,7 +35,7 @@ BEGIN_PGML Evaluate the following indefinite integral. -[`` \displaystyle \int \frac{1 - x^{[$b]}}{[$a] x - x^{[$a]}} \, dx =``][______________________]{$func} [@ AnswerFormatHelp("formulas") @]* +[`` \displaystyle \int \frac{1 - x^{[$b]}}{[$a] x - x^{[$a]}} \, dx =``][______________________]{$func} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_372.pg b/Contrib/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_372.pg index 30e497f58e..c5937a329a 100644 --- a/Contrib/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_372.pg +++ b/Contrib/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_372.pg @@ -18,7 +18,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -43,7 +43,7 @@ Find the area under the graph of [`f(x) = \frac{\log_{[$a]} x}{[$b] x} `] and Answers must be exact. You do not need to simplify your final answer. -Area = [__________________________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +Area = [__________________________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_374.pg b/Contrib/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_374.pg index de93ad038e..8bed85187b 100644 --- a/Contrib/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_374.pg +++ b/Contrib/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_374.pg @@ -18,7 +18,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -44,12 +44,12 @@ $ans=Compute("$f2*(1/ln($c))")->reduce; BEGIN_PGML -Find the area under the graph of [`f(x) = [$func] `] and above the graph of [`f(x) = 0`] for [`x `] in [`[[$a], [$b]]`] by integrating. +Find the area under the graph of [`f(x) = [$func] `] and above the graph of [`f(x) = 0`] for [`x `] in [`[[$a], [$b]]`] by integrating. Answers should be exact. You do not need to simplify your final answer. -Area = [__________________________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +Area = [__________________________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/05.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_7_391.pg b/Contrib/CCCS/CalculusOne/05.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_7_391.pg index 7e8c22014b..3484b9370c 100644 --- a/Contrib/CCCS/CalculusOne/05.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_7_391.pg +++ b/Contrib/CCCS/CalculusOne/05.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_7_391.pg @@ -18,7 +18,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -39,11 +39,11 @@ $ans = Compute("$c*(arcsin($b) - arcsin($a))"); BEGIN_PGML -Evaluate the following definite integral. +Evaluate the following definite integral. Your answer must be exact. You do not need to simplify your final answer. -[``\displaystyle \int_{[$a]}^{[$b]} \frac{[$c]}{\sqrt{1 - x^2}} \, dx =``][_________________________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[``\displaystyle \int_{[$a]}^{[$b]} \frac{[$c]}{\sqrt{1 - x^2}} \, dx =``][_________________________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/05.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_7_394.pg b/Contrib/CCCS/CalculusOne/05.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_7_394.pg index f8323d896d..8cbd9641c8 100644 --- a/Contrib/CCCS/CalculusOne/05.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_7_394.pg +++ b/Contrib/CCCS/CalculusOne/05.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_7_394.pg @@ -18,7 +18,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -39,11 +39,11 @@ $ans = Compute("(1/$c)*(arctan $b - arctan $a)")-> reduce; BEGIN_PGML -Evaluate the following definite integral. +Evaluate the following definite integral. -Your answer must be exact. +Your answer must be exact. -[`` \displaystyle \int_{[$a]}^{[$b]} \frac{1}{[$c]+[$c] x^2} \, dx =``][______________________________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`` \displaystyle \int_{[$a]}^{[$b]} \frac{1}{[$c]+[$c] x^2} \, dx =``][______________________________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/05.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_7_398.pg b/Contrib/CCCS/CalculusOne/05.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_7_398.pg index 4ad4758553..4444ceebbe 100644 --- a/Contrib/CCCS/CalculusOne/05.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_7_398.pg +++ b/Contrib/CCCS/CalculusOne/05.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_7_398.pg @@ -18,7 +18,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserFormulaUpToConstant.pl", @@ -36,7 +36,7 @@ $ans=FormulaUpToConstant("$b/sqrt($a)asin(sqrt($a)*x)+C")->reduce()->with(limits BEGIN_PGML Evaluate the following indefinite integral. -[`` \int \frac{[$b]}{\sqrt{1-[$a] x^2}} \, dx =``][______________________]{$ans } [@ AnswerFormatHelp("formulas") @]* +[`` \int \frac{[$b]}{\sqrt{1-[$a] x^2}} \, dx =``][______________________]{$ans } [@ helpLink("formulas") @]* diff --git a/Contrib/CCCS/CalculusOne/05.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_7_399.pg b/Contrib/CCCS/CalculusOne/05.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_7_399.pg index a97a6b2080..7e7fb4177c 100644 --- a/Contrib/CCCS/CalculusOne/05.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_7_399.pg +++ b/Contrib/CCCS/CalculusOne/05.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_7_399.pg @@ -18,7 +18,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -34,9 +34,9 @@ $b = random(1,25,1); $ans = FormulaUpToConstant("($b/sqrt $a)*arctan(x/sqrt $a) + C"); BEGIN_PGML -Evaluate the following indefinite integral. +Evaluate the following indefinite integral. -[``\displaystyle \int \frac{[$b]}{[$a] + x^2} \, dx =``][_________________________________]{$ans}[@ AnswerFormatHelp("formulas") @]* +[``\displaystyle \int \frac{[$b]}{[$a] + x^2} \, dx =``][_________________________________]{$ans}[@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/05.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_7_412.pg b/Contrib/CCCS/CalculusOne/05.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_7_412.pg index 67bbc68bd9..b4289b3a02 100644 --- a/Contrib/CCCS/CalculusOne/05.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_7_412.pg +++ b/Contrib/CCCS/CalculusOne/05.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_7_412.pg @@ -18,7 +18,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -39,7 +39,7 @@ BEGIN_PGML Evaluate the following indefinite integral. -[``\displaystyle \int \frac{[$a]}{\sin^{-1} t\sqrt{[$b]- [$b] t^2}} \, dt =``][______________________________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[``\displaystyle \int \frac{[$a]}{\sin^{-1} t\sqrt{[$b]- [$b] t^2}} \, dt =``][______________________________________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/05.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_7_413.pg b/Contrib/CCCS/CalculusOne/05.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_7_413.pg index 14f4c05a33..38c6c4b73a 100644 --- a/Contrib/CCCS/CalculusOne/05.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_7_413.pg +++ b/Contrib/CCCS/CalculusOne/05.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_7_413.pg @@ -18,7 +18,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -36,9 +36,9 @@ $ans = FormulaUpToConstant("(1/(2*$a))*(arctan($a*t))**2 + C"); BEGIN_PGML -Evaluate the following indefinite integral. +Evaluate the following indefinite integral. -[`` \displaystyle \int \frac{\tan^{-1} ([$a] t)}{1 + [$b] t^2} \, dt =``][______________________________]{$ans}[@ AnswerFormatHelp("formulas") @]* +[`` \displaystyle \int \frac{\tan^{-1} ([$a] t)}{1 + [$b] t^2} \, dt =``][______________________________]{$ans}[@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/05.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_7_424.pg b/Contrib/CCCS/CalculusOne/05.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_7_424.pg index d484346b80..1df13e89b5 100644 --- a/Contrib/CCCS/CalculusOne/05.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_7_424.pg +++ b/Contrib/CCCS/CalculusOne/05.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_7_424.pg @@ -15,7 +15,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -37,7 +37,7 @@ BEGIN_PGML Evaluate the following indefinite integral. -[``\displaystyle \int \frac{e^{[$a] y}}{[$c] + e^{[$b] y}} \, dy =``][______________________________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[``\displaystyle \int \frac{e^{[$a] y}}{[$c] + e^{[$b] y}} \, dy =``][______________________________________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/05.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_7_426.pg b/Contrib/CCCS/CalculusOne/05.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_7_426.pg index fa887dfe7d..fc8dabe0f5 100644 --- a/Contrib/CCCS/CalculusOne/05.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_7_426.pg +++ b/Contrib/CCCS/CalculusOne/05.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_7_426.pg @@ -15,7 +15,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -35,7 +35,7 @@ $ans = FormulaUpToConstant("((1/($a))*arctan(ln($c*s))) + C"); BEGIN_PGML Evaluate the following indefinite integral. -[``\displaystyle \int \frac{1}{[$a] s (1 + (\ln([$c] s))^2)} \, ds =``][______________________________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[``\displaystyle \int \frac{1}{[$a] s (1 + (\ln([$c] s))^2)} \, ds =``][______________________________________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/05.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_7_427.pg b/Contrib/CCCS/CalculusOne/05.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_7_427.pg index a82b6e17eb..f2cc53ae10 100644 --- a/Contrib/CCCS/CalculusOne/05.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_7_427.pg +++ b/Contrib/CCCS/CalculusOne/05.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_7_427.pg @@ -15,7 +15,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -38,7 +38,7 @@ BEGIN_PGML Evaluate the following indefinite integral. -[``\displaystyle \int \frac{[$c] \arccos ([$a] x)}{\sqrt{1- [$b] x^2}} \, dx =``][______________________________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[``\displaystyle \int \frac{[$c] \arccos ([$a] x)}{\sqrt{1- [$b] x^2}} \, dx =``][______________________________________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusOne/05.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_7_430.pg b/Contrib/CCCS/CalculusOne/05.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_7_430.pg index e07c0a2dc8..80ee5b9303 100644 --- a/Contrib/CCCS/CalculusOne/05.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_7_430.pg +++ b/Contrib/CCCS/CalculusOne/05.7/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_7_430.pg @@ -18,7 +18,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -36,9 +36,9 @@ $ans = FormulaUpToConstant("(1/$a)*ln|($a*t)|+C"); BEGIN_PGML -Evaluate the following indefinite integral. +Evaluate the following indefinite integral. -[``\displaystyle \int \frac{\tan(\arccos([$a] t))}{\sqrt{1-([$a] t)^2}} \, dt =``][______________________________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[``\displaystyle \int \frac{\tan(\arccos([$a] t))}{\sqrt{1-([$a] t)^2}} \, dt =``][______________________________________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/02.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_101.pg b/Contrib/CCCS/CalculusTwo/02.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_101.pg index 3f9baefe55..d754966d81 100644 --- a/Contrib/CCCS/CalculusTwo/02.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_101.pg +++ b/Contrib/CCCS/CalculusTwo/02.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_101.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -39,8 +39,8 @@ $showPartialCorrectAnswers = 1; Context("Numeric"); Context()->variables->add(y=>"Real"); # integrating about y-axis -$a = random(2, 4, 1); #vertical stretch -$f1 = Formula("e^(2*y)"); +$a = random(2, 4, 1); #vertical stretch +$f1 = Formula("e^(2*y)"); $up_b = ln($a); #upper bound $f_int = Formula("pi(e^(4*x)/4 - x^5/5)"); # integrate pi($f2)^2-pi(y^2)^2 $f_up = $f_int ->eval(x=>$up_b); #f_int eval at upper bound @@ -56,10 +56,10 @@ $ans = $f_up - $f_low; #now adding upper and lower BEGIN_PGML -Draw the region bounded by the curves [`x=[$f1]`], [`x=y^2`], [`y=0`], and [`y=\ln([$a])`]. Find the volume when the region is rotated around the [`y`]-axis. +Draw the region bounded by the curves [`x=[$f1]`], [`x=y^2`], [`y=0`], and [`y=\ln([$a])`]. Find the volume when the region is rotated around the [`y`]-axis. -Volume: [_______________]{$ans} units cubed. [@ AnswerFormatHelp("numbers") @]* +Volume: [_______________]{$ans} units cubed. [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/02.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_103.pg b/Contrib/CCCS/CalculusTwo/02.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_103.pg index c607bc83ef..6e450db768 100644 --- a/Contrib/CCCS/CalculusTwo/02.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_103.pg +++ b/Contrib/CCCS/CalculusTwo/02.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_103.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGgraphmacros.pl", "PGML.pl", "PGcourse.pl" @@ -44,7 +44,7 @@ Context()->variables->add(m => "Real"); $f = Formula("1/m*x"); -$ans = Formula("pi/3*m^2*(b^3-a^3)") ->reduce; #volume +$ans = Formula("pi/3*m^2*(b^3-a^3)") ->reduce; #volume ########################### # Main text @@ -53,12 +53,12 @@ BEGIN_PGML Yogurt containers can be shaped like frustums. Rotate the line [`y=[$f]`] around the [`y`]-axis between [`y=a`] and [`y=b`] to find the volume of the frustum created. ->>[@ image("Yogurt.jpg", - width=>293, - height=>292) +>>[@ image("Yogurt.jpg", + width=>293, + height=>292) @]*<< -Volume: [_______________]{$ans} units cubed [@ AnswerFormatHelp("numbers") @]* +Volume: [_______________]{$ans} units cubed [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/02.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_106.pg b/Contrib/CCCS/CalculusTwo/02.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_106.pg index 458acb9f84..7881e09e0a 100644 --- a/Contrib/CCCS/CalculusTwo/02.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_106.pg +++ b/Contrib/CCCS/CalculusTwo/02.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_106.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -48,12 +48,12 @@ $ans = pi**2/2; #volume BEGIN_PGML A good approximation of the volume of a football is given by the solid that comes from rotating [`y=[$f]`] around the [`x`]-axis from [`x=0`] to [`x=\pi`]. What is the volume of this football approximation seen here? ->>[@ image("Football.jpg", - width=>338, - height=>238) +>>[@ image("Football.jpg", + width=>338, + height=>238) @]*<< -Volume: [_______________]{$ans} units cubed. [@ AnswerFormatHelp("numbers") @]* +Volume: [_______________]{$ans} units cubed. [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/02.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_63.pg b/Contrib/CCCS/CalculusTwo/02.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_63.pg index dc2a4d6639..91702604f9 100644 --- a/Contrib/CCCS/CalculusTwo/02.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_63.pg +++ b/Contrib/CCCS/CalculusTwo/02.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_63.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -49,7 +49,7 @@ BEGIN_PGML Draw an outline of the solid and then draw a typical slice for a right pyramid with height [`[$h]`] units and a square base of side [`[$b]`] units. Find the volume using the slicing method. -Volume: [_______________]{$ans} units cubed. [@ AnswerFormatHelp("numbers") @]* +Volume: [_______________]{$ans} units cubed. [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/02.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_68.pg b/Contrib/CCCS/CalculusTwo/02.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_68.pg index 2653a3443e..2bbf620fca 100644 --- a/Contrib/CCCS/CalculusTwo/02.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_68.pg +++ b/Contrib/CCCS/CalculusTwo/02.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_68.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -46,9 +46,9 @@ $ans = Formula("16/3*a^3") ->reduce; #volume of a semi-circle BEGIN_PGML -Draw an outline of the solid whose base is a circle of radius [`a`] units and the slices perpendicular to the base are squares. Then find the volume, in terms of [`a`], using the slicing method. +Draw an outline of the solid whose base is a circle of radius [`a`] units and the slices perpendicular to the base are squares. Then find the volume, in terms of [`a`], using the slicing method. -Volume: [_______________]{$ans} units cubed. [@ AnswerFormatHelp("formulas") @]* +Volume: [_______________]{$ans} units cubed. [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/02.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_69.pg b/Contrib/CCCS/CalculusTwo/02.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_69.pg index 3c64c8c1a3..ff29f93475 100644 --- a/Contrib/CCCS/CalculusTwo/02.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_69.pg +++ b/Contrib/CCCS/CalculusTwo/02.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_69.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -39,7 +39,7 @@ $showPartialCorrectAnswers = 1; Context("Numeric"); $b = random(1, 4, 1); #vertices value -$ans = Formula("($b^3*pi)/24") ->reduce; #volume +$ans = Formula("($b^3*pi)/24") ->reduce; #volume ########################### # Main text @@ -48,7 +48,7 @@ BEGIN_PGML Draw an outline of the solid and then find the volume using the slicing method. The base is a triangle with vertices [`(0,0)`], [`([$b], 0)`], and [`(0, [$b])`]. The slices perpendicular to the [`xy`]-plane and parallel to the [`y`]-axis are semicircles. -Volume: [_______________]{$ans} units cubed [@ AnswerFormatHelp("numbers") @]* +Volume: [_______________]{$ans} units cubed [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/02.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_70.pg b/Contrib/CCCS/CalculusTwo/02.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_70.pg index 07b55326be..26215091d8 100644 --- a/Contrib/CCCS/CalculusTwo/02.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_70.pg +++ b/Contrib/CCCS/CalculusTwo/02.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_70.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -40,9 +40,9 @@ Context("Numeric"); $b = random(1, 4, 1); #vertical translation $f = Formula("$b - x^2"); -$f_int = Formula("$b^2*x - 2/3*$b*x^3 + x^5/5") ->reduce; #integrated $f^2 +$f_int = Formula("$b^2*x - 2/3*$b*x^3 + x^5/5") ->reduce; #integrated $f^2 $b_sqrt = sqrt($b); -$ans = $f_int->eval(x=>$b_sqrt); #$f_int eval from 0 to sqrt($b) +$ans = $f_int->eval(x=>$b_sqrt); #$f_int eval from 0 to sqrt($b) ########################### # Main text @@ -51,7 +51,7 @@ BEGIN_PGML Draw an outline of the solid and then find the volume using the slicing method. The base is the region under the parabola [`y=[$f]`] in the first quadrant. The slices perpendicular to the [`xy`]-plane and parallel to the [`y`]-axis are squares. -Volume: [_______________]{$ans} units cubed. [@ AnswerFormatHelp("numbers") @]* +Volume: [_______________]{$ans} units cubed. [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/02.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_72.pg b/Contrib/CCCS/CalculusTwo/02.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_72.pg index 9f830d55fe..d2b818e939 100644 --- a/Contrib/CCCS/CalculusTwo/02.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_72.pg +++ b/Contrib/CCCS/CalculusTwo/02.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_72.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -41,8 +41,8 @@ Context("Numeric"); $b = random(2, 4, 1); # point of intersection for y=$b^2 and y=x^2 $b2 = $b*$b; # for the line y = $b^2 $f = Formula("$b2 - x^2"); # upper - lower function -$f_int = Formula("$b2^2*x - 2/3*$b2*x^3 + x^5/5") ->reduce; #integrated $f^2 -$ans = $f_int->eval(x=>$b); #$f eval from 0 to $b +$f_int = Formula("$b2^2*x - 2/3*$b2*x^3 + x^5/5") ->reduce; #integrated $f^2 +$ans = $f_int->eval(x=>$b); #$f eval from 0 to $b ########################### # Main text @@ -51,7 +51,7 @@ BEGIN_PGML Draw an outline of the solid and then find the volume using the slicing method. The base is the region enclosed by [`y=x^2`] and [`y=[$b2]`]. The slices perpendicular to the [`xy`]-plane and perpendicular to the [`x`]-axis are right isosceles triangles with one of the legs on the [`xy`]-plane. -Volume: [_______________]{$ans} units cubed [@ AnswerFormatHelp("numbers") @]* +Volume: [_______________]{$ans} units cubed [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/02.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_75.pg b/Contrib/CCCS/CalculusTwo/02.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_75.pg index 33bda5aa0e..238fc925ae 100644 --- a/Contrib/CCCS/CalculusTwo/02.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_75.pg +++ b/Contrib/CCCS/CalculusTwo/02.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_75.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -40,17 +40,17 @@ Context("Numeric"); $b = random(2, 5, 1); # upper bound $a = random(2, 4, 1); #leading coefficient -$f_int = Formula("$a^2*x^5/5*pi") ->reduce; #integrated pi($a*x^2)^2 -$ans = $f_int->eval(x=>$b); #$f eval from 0 to $b +$f_int = Formula("$a^2*x^5/5*pi") ->reduce; #integrated pi($a*x^2)^2 +$ans = $f_int->eval(x=>$b); #$f eval from 0 to $b ########################### # Main text BEGIN_PGML -Draw the region bounded by the curves [`y=[$a]*x^2`], [`x=0`], [`x=[$b]`], and [`y=0`] . Use the disk method to find the volume when the region is rotated around the [`x`]-axis. +Draw the region bounded by the curves [`y=[$a]*x^2`], [`x=0`], [`x=[$b]`], and [`y=0`] . Use the disk method to find the volume when the region is rotated around the [`x`]-axis. -Volume: [_______________]{$ans} units cubed [@ AnswerFormatHelp("numbers") @]* +Volume: [_______________]{$ans} units cubed [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/02.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_76.pg b/Contrib/CCCS/CalculusTwo/02.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_76.pg index 84b84f8fc0..787e0abb29 100644 --- a/Contrib/CCCS/CalculusTwo/02.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_76.pg +++ b/Contrib/CCCS/CalculusTwo/02.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_76.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -40,17 +40,17 @@ Context("Numeric"); $b = random(1, 5, 1); # upper bound $f = Formula("e^x+1"); -$f_int = Formula("(e^(2*x)/2+2*e^x+x - 5/2)pi") ->reduce; #integrated pi($f)^2 -$ans = $f_int->eval(x=>$b); #$f eval from 0 to $b +$f_int = Formula("(e^(2*x)/2+2*e^x+x - 5/2)pi") ->reduce; #integrated pi($f)^2 +$ans = $f_int->eval(x=>$b); #$f eval from 0 to $b ########################### # Main text BEGIN_PGML -Draw the region bounded by the curves [`y=[$f]`], [`x=0`], [`x=[$b]`], and [`y=0`] . Use the disk method to find the volume when the region is rotated around the [`x`]-axis. +Draw the region bounded by the curves [`y=[$f]`], [`x=0`], [`x=[$b]`], and [`y=0`] . Use the disk method to find the volume when the region is rotated around the [`x`]-axis. -Volume: [_______________]{$ans} units cubed [@ AnswerFormatHelp("numbers") @]* +Volume: [_______________]{$ans} units cubed [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/02.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_79.pg b/Contrib/CCCS/CalculusTwo/02.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_79.pg index b6f5eda7a0..e173b14869 100644 --- a/Contrib/CCCS/CalculusTwo/02.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_79.pg +++ b/Contrib/CCCS/CalculusTwo/02.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_79.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -52,9 +52,9 @@ $c=4*$a; BEGIN_PGML -Draw the region bounded by the curves [`y=[$f1]`] and [`y=[$f2]`] for [`0\leq x \leq \pi/[$c]`]. Use the disk method to find the volume when the region is rotated around the [`x`]-axis. +Draw the region bounded by the curves [`y=[$f1]`] and [`y=[$f2]`] for [`0\leq x \leq \pi/[$c]`]. Use the disk method to find the volume when the region is rotated around the [`x`]-axis. -Volume: [_______________]{$ans} units cubed. [@ AnswerFormatHelp("numbers") @]* +Volume: [_______________]{$ans} units cubed. [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/02.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_81.pg b/Contrib/CCCS/CalculusTwo/02.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_81.pg index c07b8a18c7..82227fbcd3 100644 --- a/Contrib/CCCS/CalculusTwo/02.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_81.pg +++ b/Contrib/CCCS/CalculusTwo/02.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_81.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -38,9 +38,9 @@ $showPartialCorrectAnswers = 1; Context("Numeric"); #need to integrate the line y=-x+$b from 0 to where the hyperbola crosses the x-axis -$a = random(2, 4, 1); #first upper bound for the hyperbola -$b = $a*$a; -$f1 = Formula("pi/3*(x - $b)^3"); #integrated pi(-x+$b)^2 +$a = random(2, 4, 1); #first upper bound for the hyperbola +$b = $a*$a; +$f1 = Formula("pi/3*(x - $b)^3"); #integrated pi(-x+$b)^2 $f1_up = $f1 ->eval(x=>$a); #f1 eval at upper bound $f1_low = $f1 ->eval(x=>Real(0)); #f1 eval at lower bound @@ -60,9 +60,9 @@ $ans = $f1_up - $f1_low + $f2_up - $f2_low; #now adding all the volumes together BEGIN_PGML -Draw the region bounded by the curves [`x^2-y^2=[$b]`], [`x+y=[$b]`], [`y=0`] and [`x=0`] . Use the disk method to find the volume when the region is rotated around the [`x`]-axis. +Draw the region bounded by the curves [`x^2-y^2=[$b]`], [`x+y=[$b]`], [`y=0`] and [`x=0`] . Use the disk method to find the volume when the region is rotated around the [`x`]-axis. -Volume: [_______________]{$ans} units cubed. [@ AnswerFormatHelp("numbers") @]* +Volume: [_______________]{$ans} units cubed. [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/02.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_84.pg b/Contrib/CCCS/CalculusTwo/02.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_84.pg index 0cd50bfffb..ea6693bcdd 100644 --- a/Contrib/CCCS/CalculusTwo/02.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_84.pg +++ b/Contrib/CCCS/CalculusTwo/02.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_84.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -39,7 +39,7 @@ $showPartialCorrectAnswers = 1; Context("Numeric"); # integrating about y-axis $a = random(2, 4, 1); #coeff on x^2 -$f1 = Formula("$a*x^2"); +$f1 = Formula("$a*x^2"); $f2 = Formula("pi/(2*$a)*x^2"); #solved for y and integrated for volume around y-axis $f2_up = $f2 ->eval(x=>$a); #f2 eval at upper bound $f2_low = $f2 ->eval(x=>Real(0)); #f2 eval at lower bound @@ -54,9 +54,9 @@ $ans = $f2_up - $f2_low; #now adding upper and lower BEGIN_PGML -Draw the region bounded by the curves [`y=[$f1]`], [`y=[$a]`] and [`x=0`] . Use the disk method to find the volume when the region is rotated around the [`y`]-axis. +Draw the region bounded by the curves [`y=[$f1]`], [`y=[$a]`] and [`x=0`] . Use the disk method to find the volume when the region is rotated around the [`y`]-axis. -Volume: [_______________]{$ans} units cubed [@ AnswerFormatHelp("numbers") @]* +Volume: [_______________]{$ans} units cubed [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CalculusTwo/02.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_85.pg b/Contrib/CCCS/CalculusTwo/02.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_85.pg index 48b3e16672..fb3c85d578 100644 --- a/Contrib/CCCS/CalculusTwo/02.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_85.pg +++ b/Contrib/CCCS/CalculusTwo/02.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_85.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -39,14 +39,14 @@ $showPartialCorrectAnswers = 1; Context("Numeric"); # integrating about y-axis $a = random(2, 4, 1); #coeff on x^2 -$f1 = Formula("sqrt($a*$a-x^2)"); +$f1 = Formula("sqrt($a*$a-x^2)"); $f2 = Formula("pi($a*$a*x - 1/3*x^3)"); #solved for y and integrated for volume around y-axis $f2_up = $f2 ->eval(x=>$a); #f2 eval at upper bound $f2_low = $f2 ->eval(x=>Real(0)); #f2 eval at lower bound #now add it all together -$ans = $f2_up - $f2_low; +$ans = $f2_up - $f2_low; ########################### @@ -54,9 +54,9 @@ $ans = $f2_up - $f2_low; BEGIN_PGML -Draw the region bounded by the curves [`y=[$f1]`], [`y=0`] and [`x=0`] in the first quadrant. Find the volume when the region is rotated around the [`y`]-axis. +Draw the region bounded by the curves [`y=[$f1]`], [`y=0`] and [`x=0`] in the first quadrant. Find the volume when the region is rotated around the [`y`]-axis. -Volume: [_______________]{$ans} units cubed. [@ AnswerFormatHelp("numbers") @]* +Volume: [_______________]{$ans} units cubed. [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CalculusTwo/02.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_88.pg b/Contrib/CCCS/CalculusTwo/02.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_88.pg index 0ca90ed059..02e6e1c19f 100644 --- a/Contrib/CCCS/CalculusTwo/02.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_88.pg +++ b/Contrib/CCCS/CalculusTwo/02.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_88.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -42,7 +42,7 @@ Context()->variables->add(r => "Real"); # integrating about y-axis $a = random(1, 3, 1); #upper x-value and will be the radius of the disk -$f1 = Formula("1/(x+1)"); +$f1 = Formula("1/(x+1)"); $y_l = $f1 ->eval(x=>$a); #lower bound for y $f2 = Formula("pi(-y**(-1) - 2*ln(y)+y)"); #solved for y and integrated for volume around y-axis $f2_up = $f2 ->eval(y=>Real(1)); #f2 eval at upper bound @@ -61,9 +61,9 @@ $ans = $f2_up - $f2_low + $f_disk_vol; #now adding upper and lower BEGIN_PGML -Draw the region bounded by the curves [`y=[$f1]`], [`y=0`], [`x=0`] and [`x=[$a]`] . Find the volume when the region is rotated around the [`y`]-axis. +Draw the region bounded by the curves [`y=[$f1]`], [`y=0`], [`x=0`] and [`x=[$a]`] . Find the volume when the region is rotated around the [`y`]-axis. -Volume: [_______________]{$ans} units cubed. [@ AnswerFormatHelp("numbers") @]* +Volume: [_______________]{$ans} units cubed. [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CalculusTwo/02.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_90.pg b/Contrib/CCCS/CalculusTwo/02.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_90.pg index 5791b50db6..9853fe780c 100644 --- a/Contrib/CCCS/CalculusTwo/02.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_90.pg +++ b/Contrib/CCCS/CalculusTwo/02.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_90.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -38,12 +38,12 @@ $showPartialCorrectAnswers = 1; Context("Numeric"); # integrating about y-axis -$a = random(2, 4, 1); #vertical shift +$a = random(2, 4, 1); #vertical shift $b = random(2, 5, 1); #upper bound if ($b==$a) { $b=$b+1}; #just want a different upper bound than $a -$f1 = Formula("x+$a"); -$f2 = Formula("x+2*$a"); +$f1 = Formula("x+$a"); +$f2 = Formula("x+2*$a"); $f_int = Formula("pi($a*x^2+3*$a*$a*x)"); # integrate pi($f2)^2-pi($f1)^2 $f_up = $f_int ->eval(x=>$b); #f_int eval at upper bound $f_low = $f_int ->eval(x=>Real(0)); #f_int eval at lower bound @@ -58,9 +58,9 @@ $ans = $f_up - $f_low; #now adding upper and lower BEGIN_PGML -Draw the region bounded by the curves [`y=[$f1]`], [`y=[$f2]`], [`x=0`], and [`x=[$b]`]. Find the volume when the region is rotated around the [`x`]-axis. +Draw the region bounded by the curves [`y=[$f1]`], [`y=[$f2]`], [`x=0`], and [`x=[$b]`]. Find the volume when the region is rotated around the [`x`]-axis. -Volume: [_______________]{$ans} units cubed [@ AnswerFormatHelp("numbers") @]* +Volume: [_______________]{$ans} units cubed [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CalculusTwo/02.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_92.pg b/Contrib/CCCS/CalculusTwo/02.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_92.pg index 73373c79d7..5824d9d698 100644 --- a/Contrib/CCCS/CalculusTwo/02.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_92.pg +++ b/Contrib/CCCS/CalculusTwo/02.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_92.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -37,16 +37,16 @@ $showPartialCorrectAnswers = 1; Context("Numeric"); Parser::Number::NoDecimals; -$a = random(1, 2, 1); +$a = random(1, 2, 1); if($a==1){ -$f1 = Formula("x^2"); -$f2 = Formula("x^3"); -$ans = Compute("5/28*pi"); +$f1 = Formula("x^2"); +$f2 = Formula("x^3"); +$ans = Compute("5/28*pi"); } else{ -$f1 = Formula("x"); -$f2 = Formula("x^3"); -$ans = Compute("7/20*pi"); +$f1 = Formula("x"); +$f2 = Formula("x^3"); +$ans = Compute("7/20*pi"); } @@ -57,7 +57,7 @@ BEGIN_PGML Draw the region bounded by the curves [`y^3=[$f1]`] and [`y^2=[$f2]`]. Find the volume when the region is rotated around the [`x`]-axis. Enter exact values only. -Volume: [_______________]{$ans} units cubed [@ AnswerFormatHelp("numbers") @]* +Volume: [_______________]{$ans} units cubed [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CalculusTwo/02.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_96.pg b/Contrib/CCCS/CalculusTwo/02.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_96.pg index 207cd8db26..363c7b5201 100644 --- a/Contrib/CCCS/CalculusTwo/02.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_96.pg +++ b/Contrib/CCCS/CalculusTwo/02.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_96.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -41,9 +41,9 @@ Context("Numeric"); Context("Fraction-NoDecimals"); # integrating about y-axis -$a = random(2, 4, 1); #vertical stretch -$f1 = Formula("sin(x)"); -$f2 = Formula("$a*sin(x)"); +$a = random(2, 4, 1); #vertical stretch +$f1 = Formula("sin(x)"); +$f2 = Formula("$a*sin(x)"); $f_int = Formula("pi($a**2 - 1)/2*(x - 1/2sin(2*x))"); # integrate pi($f2)^2-pi($f1)^2 $f_up = $f_int ->eval(x=>Real(pi)); #f_int eval at upper bound $f_low = $f_int ->eval(x=>Real(0)); #f_int eval at lower bound @@ -58,11 +58,11 @@ $ans = $f_up - $f_low; #now adding upper and lower BEGIN_PGML -Draw the region bounded by the curves [`y=[$f1]`], [`y=[$f2]`], [`x=0`], and [`x=\pi`]. Find the volume when the region is rotated around the [`x`]-axis. +Draw the region bounded by the curves [`y=[$f1]`], [`y=[$f2]`], [`x=0`], and [`x=\pi`]. Find the volume when the region is rotated around the [`x`]-axis. -Volume: [_______________]{$ans} units cubed [@ AnswerFormatHelp("numbers") @]* +Volume: [_______________]{$ans} units cubed [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CalculusTwo/02.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_99.pg b/Contrib/CCCS/CalculusTwo/02.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_99.pg index 07a2bb10d0..d37e96b9ca 100644 --- a/Contrib/CCCS/CalculusTwo/02.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_99.pg +++ b/Contrib/CCCS/CalculusTwo/02.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_99.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -47,14 +47,14 @@ $b = random(-3, -1, 1); #y-intercept of the upper function $f2 = Formula("2*x+$b") ->reduce; #upper function solved for y #first find the volume using the upper function from 0 to y-intercept of the lower function -#$f1y_int = Formula("pi/4*(y^3/3 + $b*y^2 + $b**2*y)"); #solved for y and integrated for #volume +#$f1y_int = Formula("pi/4*(y^3/3 + $b*y^2 + $b**2*y)"); #solved for y and integrated for #volume #$f1y_up = $f1y_int ->eval(y=>$a); # eval upper function with upper bound for $f1y #$f1y_l = $f1y_int ->eval(y=>Real(0)); #eval lower function with lower bound for $f1y -#$vol_1 = $f1y_up - $f1y_l; #volume of the first region +#$vol_1 = $f1y_up - $f1y_l; #volume of the first region #find the y-value of the intersection of the two lines for the upper bound #$x = $a + $b; -#$y_up = $f1 ->eval(x=>$x); +#$y_up = $f1 ->eval(x=>$x); #find the volume of the second region #$f2y_int = Formula("pi*(-1/4*y^3 + ($b - $a)*y^2 + ($b**2 - $a**2)*y)"); #solved for y and #integrated for volume @@ -72,9 +72,9 @@ $ans=Compute("2*pi(-($a-$b)^3/3+$a($a-$b)^2/2-$b($a-$b)^2/2)"); BEGIN_PGML -Draw the region bounded by the curves [`y=[$f1]`], [`y=[$f2]`] and [`x=0`]. Find the volume when the region is rotated around the [`y`]-axis. +Draw the region bounded by the curves [`y=[$f1]`], [`y=[$f2]`] and [`x=0`]. Find the volume when the region is rotated around the [`y`]-axis. -Volume: [_______________]{$ans} units cubed. [@ AnswerFormatHelp("numbers") @]* +Volume: [_______________]{$ans} units cubed. [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CalculusTwo/02.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_3_115_116.pg b/Contrib/CCCS/CalculusTwo/02.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_3_115_116.pg index 938c4089a4..35be521cc6 100644 --- a/Contrib/CCCS/CalculusTwo/02.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_3_115_116.pg +++ b/Contrib/CCCS/CalculusTwo/02.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_3_115_116.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -41,7 +41,7 @@ Context()->variables->add(y => "Real"); # integrating about y-axis and x-axis $a = random(2, 4, 1); #coeff on x -$f1 = Formula("$a*x"); +$f1 = Formula("$a*x"); #first around the y-axis $int1=Formula("2*pi*$a*x^2"); #shell method integrand @@ -70,21 +70,21 @@ BEGIN_PGML (a) Find the volume generated when the region bounded by the curves [`y=[$f1]`], [`x=[$a]`], and [`y=0`] is rotated around the [`y`]-axis. Set up the integrals using both the shell and the washer method. -Using the shell method, [` \displaystyle V=\int_0^{[$a]}`][_________]{$int1}[` dx `] [@ AnswerFormatHelp("formulas") @]* +Using the shell method, [` \displaystyle V=\int_0^{[$a]}`][_________]{$int1}[` dx `] [@ helpLink("formulas") @]* -Using the washer method, [` \displaystyle V=\int_0^{[$up]}`][_________]{$int2} [`dy `] [@ AnswerFormatHelp("formulas") @]* +Using the washer method, [` \displaystyle V=\int_0^{[$up]}`][_________]{$int2} [`dy `] [@ helpLink("formulas") @]* -Both integrals give the volume of [`V=`] [_______________]{$ans1} units cubed. [@ AnswerFormatHelp("numbers") @]* +Both integrals give the volume of [`V=`] [_______________]{$ans1} units cubed. [@ helpLink("numbers") @]* (b) Find the volume generated when the region bounded by the curves [`y=[$f1]`], [`y=[$a]`], and [`x=0`] is rotated around the [`x`]-axis. Set up the integrals using both the shell and the washer method. -Using the shell method, [` \displaystyle V=\int_0^{[$a]}`][_________]{$int3}[` dy `] [@ AnswerFormatHelp("formulas") @]* +Using the shell method, [` \displaystyle V=\int_0^{[$a]}`][_________]{$int3}[` dy `] [@ helpLink("formulas") @]* -Using the washer method, [` \displaystyle V=\int_0^1`][_________]{$int4} [`dx `] [@ AnswerFormatHelp("formulas") @]* +Using the washer method, [` \displaystyle V=\int_0^1`][_________]{$int4} [`dx `] [@ helpLink("formulas") @]* -Both integrals give the volume of [`V=`] [_______________]{$ans2} units cubed. [@ AnswerFormatHelp("numbers") @]* +Both integrals give the volume of [`V=`] [_______________]{$ans2} units cubed. [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/02.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_3_118_119.pg b/Contrib/CCCS/CalculusTwo/02.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_3_118_119.pg index 9c9c1971d9..04ba1d2f60 100644 --- a/Contrib/CCCS/CalculusTwo/02.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_3_118_119.pg +++ b/Contrib/CCCS/CalculusTwo/02.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_3_118_119.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -40,7 +40,7 @@ Context()->variables->add(y => "Real"); # integrating about y-axis and x-axis $a = random(2, 4, 1); #coeff on x -$f1 = Formula("$a*x^3"); +$f1 = Formula("$a*x^3"); #first around the y-axis $int1 = Formula("2*pi*$a*x^4"); #shell method integrand @@ -69,21 +69,21 @@ BEGIN_PGML (a) Find the volume generated when the region bounded by the curves [`y=[$f1]`], [`x=[$a]`], and [`y=0`] is rotated around the [`y`]-axis. Set up the integrals using both the shell and the washer method. -Using the shell method, [` \displaystyle V=\int_0^{[$a]}`][________________]{$int1}[` dx `] [@ AnswerFormatHelp("formulas") @]* +Using the shell method, [` \displaystyle V=\int_0^{[$a]}`][________________]{$int1}[` dx `] [@ helpLink("formulas") @]* -Using the washer method, [` \displaystyle V=\int_0^{[$up]}`][________________]{$int2} [`dy `] [@ AnswerFormatHelp("formulas") @]* +Using the washer method, [` \displaystyle V=\int_0^{[$up]}`][________________]{$int2} [`dy `] [@ helpLink("formulas") @]* -Both integrals give the volume of [`V=`] [_______________]{$ans1} units cubed. [@ AnswerFormatHelp("numbers") @]* +Both integrals give the volume of [`V=`] [_______________]{$ans1} units cubed. [@ helpLink("numbers") @]* (b) Find the volume generated when the region bounded by the curves [`y=[$f1]`], [`y=[$a]`], and [`x=0`] is rotated around the [`x`]-axis. Set up the integrals using both the shell and the washer method. -Using the shell method, [` \displaystyle V=\int_0^{[$a]}`][_________]{$int3}[` dy `] [@ AnswerFormatHelp("formulas") @]* +Using the shell method, [` \displaystyle V=\int_0^{[$a]}`][_________]{$int3}[` dy `] [@ helpLink("formulas") @]* -Using the washer method, [` \displaystyle V=\int_0^{1}`][_________]{$int4} [`dx `] [@ AnswerFormatHelp("formulas") @]* +Using the washer method, [` \displaystyle V=\int_0^{1}`][_________]{$int4} [`dx `] [@ helpLink("formulas") @]* -Both integrals give the volume of [`V=`] [_______________]{$ans2} units cubed. [@ AnswerFormatHelp("numbers") @]* +Both integrals give the volume of [`V=`] [_______________]{$ans2} units cubed. [@ helpLink("numbers") @]* END_PGML ############################ diff --git a/Contrib/CCCS/CalculusTwo/02.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_3_121.pg b/Contrib/CCCS/CalculusTwo/02.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_3_121.pg index 3016d5a8fa..77514c55a7 100644 --- a/Contrib/CCCS/CalculusTwo/02.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_3_121.pg +++ b/Contrib/CCCS/CalculusTwo/02.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_3_121.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -40,7 +40,7 @@ Context("Numeric"); # integrating about y-axis $a = random(2, 5, 1); #coeff on x $b = random(1, 2, 1); #upper bound -$f1 = Formula("$a*x^3"); +$f1 = Formula("$a*x^3"); $f1_int = Formula("2*pi*$a*x^5/5"); #integrated for volume around y-axis $f2_up = $f1_int ->eval(x=>$b); #f2 eval at upper bound $f2_low = $f1_int ->eval(x=>Real(0)); #f2 eval at lower bound @@ -56,7 +56,7 @@ BEGIN_PGML Use the shell method to find the volume generated when the region bounded by [`y=[$f1]`] and the [`x`]-axis between [`x=0`] and [`x=[$b]`] is rotated around the [`y`]-axis. -Volume: [_______________]{$ans} units cubed [@ AnswerFormatHelp("numbers") @]* +Volume: [_______________]{$ans} units cubed [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/02.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_3_123.pg b/Contrib/CCCS/CalculusTwo/02.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_3_123.pg index 1c464a169d..d216db599d 100644 --- a/Contrib/CCCS/CalculusTwo/02.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_3_123.pg +++ b/Contrib/CCCS/CalculusTwo/02.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_3_123.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -41,7 +41,7 @@ Context()->variables->add(y => "Real"); # set up circle graph $a = random(1, 4, 1); #radius of the circle -$f1 = Formula("sqrt($a**2-x^2)"); +$f1 = Formula("sqrt($a**2-x^2)"); $ans = 2*pi*$a*$a*$a/3; @@ -50,9 +50,9 @@ $ans = 2*pi*$a*$a*$a/3; BEGIN_PGML -Use the shell method to find the volume generated when the region bounded by [`y=[$f1]`] and the [`x`]-axis between [`x=0`] and [`x=[$a]`] is rotated around the [`y`]-axis. +Use the shell method to find the volume generated when the region bounded by [`y=[$f1]`] and the [`x`]-axis between [`x=0`] and [`x=[$a]`] is rotated around the [`y`]-axis. -Volume: [_______________]{$ans} units cubed [@ AnswerFormatHelp("numbers") @]* +Volume: [_______________]{$ans} units cubed [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/02.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_3_126.pg b/Contrib/CCCS/CalculusTwo/02.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_3_126.pg index 78abf90950..4d0d659605 100644 --- a/Contrib/CCCS/CalculusTwo/02.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_3_126.pg +++ b/Contrib/CCCS/CalculusTwo/02.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_3_126.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "PGcourse.pl" @@ -43,7 +43,7 @@ Context("Fraction-NoDecimals"); # integrating about y-axis $a = random(1, 4, 1); #radius $b = Fraction("(2*$a - 1)/2"); #upper bound -$f1 = Formula("1/sqrt($a**2-x^2)"); +$f1 = Formula("1/sqrt($a**2-x^2)"); $f1_int = Formula("-2*pi*sqrt($a**2 - x^2)"); #solved for y and integrated for volume around y-axis $f2_up = $f1_int ->eval(x=>$b); #f2 eval at upper bound $f2_low = $f1_int ->eval(x=>Real(0)); #f2 eval at lower bound @@ -60,7 +60,7 @@ BEGIN_PGML Use the shell method to find the volume generated by the curves between [`y=[$f1]`] and the [`x`]-axis between [`x=0`] and [`x=[$b]`] and rotated around the [`y`]-axis. Enter an exact answer. -Volume: [_______________]{$ans} units cubed [@ AnswerFormatHelp("numbers") @]* +Volume: [_______________]{$ans} units cubed [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/02.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_3_130.pg b/Contrib/CCCS/CalculusTwo/02.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_3_130.pg index 35199b3764..31406f8cc2 100644 --- a/Contrib/CCCS/CalculusTwo/02.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_3_130.pg +++ b/Contrib/CCCS/CalculusTwo/02.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_3_130.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -40,7 +40,7 @@ Context("Numeric"); Context()->variables->add(y => "Real"); $a = random(1, 4, 1); #radius of the circle -$f1 = Formula("sqrt($a**2-x^2)"); +$f1 = Formula("sqrt($a**2-x^2)"); $ans = 2/3*pi*$a*$a*$a; ########################### @@ -48,9 +48,9 @@ $ans = 2/3*pi*$a*$a*$a; BEGIN_PGML -Use the shell method to find the volume generated when the region bounded by [`y=[$f1]`] and the [`x`]-axis between [`x=0`] and [`x=[$a]`] is rotated around the [`x`]-axis. +Use the shell method to find the volume generated when the region bounded by [`y=[$f1]`] and the [`x`]-axis between [`x=0`] and [`x=[$a]`] is rotated around the [`x`]-axis. -Volume: [_______________]{$ans} units cubed [@ AnswerFormatHelp("numbers") @]* +Volume: [_______________]{$ans} units cubed [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/02.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_3_132.pg b/Contrib/CCCS/CalculusTwo/02.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_3_132.pg index cd849235d3..098f923546 100644 --- a/Contrib/CCCS/CalculusTwo/02.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_3_132.pg +++ b/Contrib/CCCS/CalculusTwo/02.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_3_132.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -39,7 +39,7 @@ $showPartialCorrectAnswers = 1; Context("Numeric"); # integrating about y-axis $a = random(1, 5, 1); #upper bound -$f1 = Formula("e**x"); +$f1 = Formula("e**x"); $f2 = Formula("pi/2*(e^(2x))"); #solved for y and integrated for volume around x-axis $f2_up = $f2 ->eval(x=>$a); #f2 eval at upper bound $f2_low = $f2 ->eval(x=>Real(0)); #f2 eval at lower bound @@ -55,7 +55,7 @@ BEGIN_PGML Use any method to find the volume generated when the region bounded by the curves [`y=[$f1]`], [`y=0`], [`x=0`] and [`x=[$a]`] is rotated around the [`x`]-axis. -Volume: [_______________]{$ans} units cubed [@ AnswerFormatHelp("numbers") @]* +Volume: [_______________]{$ans} units cubed [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/02.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_3_133.pg b/Contrib/CCCS/CalculusTwo/02.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_3_133.pg index 5d45f61595..907e983b5e 100644 --- a/Contrib/CCCS/CalculusTwo/02.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_3_133.pg +++ b/Contrib/CCCS/CalculusTwo/02.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_3_133.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -41,7 +41,7 @@ Context()->variables->add(y => "Real"); $a = random(1, 4, 1); #coeff on ln (upper bound) -$f1 = Formula("$a*ln(x)") ->reduce; +$f1 = Formula("$a*ln(x)") ->reduce; $ans = Formula("y(e-e^(y/$a))"); #integrand for shell method @@ -54,7 +54,7 @@ BEGIN_PGML Set up an integral, using the shell method, that would find the volume generated when the region bounded by the curves [`y=[$f1]`], [`y=0`], [`x=1`], and [`x=e`] is rotated around the [`x`]-axis. -Volume = [` 2\pi\displaystyle \int_0^{[$a]}`] [_______________]{$ans}[`dy`] units cubed [@ AnswerFormatHelp("formulas") @]* +Volume = [` 2\pi\displaystyle \int_0^{[$a]}`] [_______________]{$ans}[`dy`] units cubed [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/02.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_3_136.pg b/Contrib/CCCS/CalculusTwo/02.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_3_136.pg index f7c7e484b8..e9c7071e4f 100644 --- a/Contrib/CCCS/CalculusTwo/02.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_3_136.pg +++ b/Contrib/CCCS/CalculusTwo/02.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_3_136.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -41,7 +41,7 @@ Context()->variables->add(y=>"Real"); $a = random(1, 5, 1); #multiplier on the angle $b = 2*$a; -$f1 = Formula("cos($a*y)")->reduce; +$f1 = Formula("cos($a*y)")->reduce; $ans = Formula("y*cos($a*y)")->reduce; @@ -51,10 +51,10 @@ $ans = Formula("y*cos($a*y)")->reduce; BEGIN_PGML -Set up an integral, using the shell method, that would find the volume generated when the region bounded by the curves [`x=[$f1]`], [`x=0`], [`y=0`], and [`y=\frac{\pi}{[$b]}`] is rotated around the [`x`]-axis. +Set up an integral, using the shell method, that would find the volume generated when the region bounded by the curves [`x=[$f1]`], [`x=0`], [`y=0`], and [`y=\frac{\pi}{[$b]}`] is rotated around the [`x`]-axis. -Volume = [` 2\pi\displaystyle \int_0^{\pi/[$b]}`] [_______________]{$ans}[`dy`] units cubed [@ AnswerFormatHelp("formulas") @]* +Volume = [` 2\pi\displaystyle \int_0^{\pi/[$b]}`] [_______________]{$ans}[`dy`] units cubed [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/02.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_3_141.pg b/Contrib/CCCS/CalculusTwo/02.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_3_141.pg index d197250f0b..4a09aea802 100644 --- a/Contrib/CCCS/CalculusTwo/02.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_3_141.pg +++ b/Contrib/CCCS/CalculusTwo/02.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_3_141.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -40,9 +40,9 @@ Context("Numeric"); Context()->variables->add(y=>"Real"); # integrating about y-axis -$a = random(1, 3, 1); +$a = random(1, 3, 1); $b = $a**3; #upper bound -$f1 = Formula("x^3"); +$f1 = Formula("x^3"); $f2 = Formula("2*pi*($a**3 x^2/2 -x^5/5)"); #solved for y and integrated for volume around y-axis $f2_up = $f2 ->eval(x=>$a); #f2 eval at upper bound $f2_low = $f2 ->eval(x=>Real(0)); #f2 eval at lower bound @@ -58,7 +58,7 @@ BEGIN_PGML Use the shell method to find the volume generated when the region bounded by the curves [`y=[$f1]`], [`x=0`], and [`y=[$b]`] and rotated around the [`y`]-axis. -Volume: [_______________]{$ans} units cubed [@ AnswerFormatHelp("numbers") @]* +Volume: [_______________]{$ans} units cubed [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/02.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_3_143.pg b/Contrib/CCCS/CalculusTwo/02.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_3_143.pg index ee5c4c5796..3fb5bec04c 100644 --- a/Contrib/CCCS/CalculusTwo/02.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_3_143.pg +++ b/Contrib/CCCS/CalculusTwo/02.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_3_143.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -43,7 +43,7 @@ Context()->variables->add(y=>"Real"); $a = random(1, 3, 1); #upper bound $a = $a*$a; $b = $a**2+1; #line of rotation -$f1 = Formula("sqrt(x)"); +$f1 = Formula("sqrt(x)"); $f1_int = Formula("2*pi*($b*2/3*x^(3/2) - 2/5*x^(5/2))"); #integrated for volume around x=$b $f2_up = $f1_int ->eval(x=>$a); #f2 eval at upper bound $f2_low = $f1_int ->eval(x=>Real(0)); #f2 eval at lower bound @@ -59,7 +59,7 @@ BEGIN_PGML Use the shell method to find the volume generated when the region bounded by the curves [`y=[$f1]`], [`x=0`], [`y=0`], and [`x=[$a]`] is rotated around the line [`x=[$b]`]. -Volume: [_______________]{$ans} units cubed [@ AnswerFormatHelp("numbers") @]* +Volume: [_______________]{$ans} units cubed [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/02.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_3_146.pg b/Contrib/CCCS/CalculusTwo/02.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_3_146.pg index af532b6ce1..136b0da42f 100644 --- a/Contrib/CCCS/CalculusTwo/02.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_3_146.pg +++ b/Contrib/CCCS/CalculusTwo/02.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_3_146.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -41,7 +41,7 @@ Context()->variables->add(y=>"Real"); # integrating about y-axis $b = random(1, 3, 1); #line of rotation -$f1 = Formula("sqrt(x)"); +$f1 = Formula("sqrt(x)"); $f2 = Formula("x^2"); $f_int = Formula("pi*(1/5*y^5 - 2*$b/3*y^3 - 1/2*y^2+4*$b/3*y^(3/2))"); #solved for y and integrated for volume around x=$b $f2_up = $f_int ->eval(y=>Real(1)); #f_int eval at upper bound @@ -58,7 +58,7 @@ BEGIN_PGML Use the shell method to find the volume generated when the region bounded by the curves [`y=[$f1]`] and [`y=[$f2]`] is rotated around the line [`x=[$b]`]. -Volume: [_______________]{$ans} units cubed [@ AnswerFormatHelp("numbers") @]* +Volume: [_______________]{$ans} units cubed [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/02.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_3_148.pg b/Contrib/CCCS/CalculusTwo/02.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_3_148.pg index e747344a1a..461488af09 100644 --- a/Contrib/CCCS/CalculusTwo/02.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_3_148.pg +++ b/Contrib/CCCS/CalculusTwo/02.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_3_148.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -41,7 +41,7 @@ Context()->variables->add(y=>"Real"); # integrating about line y=$b $b = random(1, 3, 1); #line of rotation -$f1 = Formula("y^2"); +$f1 = Formula("y^2"); $f2 = Formula("y"); $f_int = Formula("pi*(1/3*x^3 - (2*$b + 1)/2*x^2 + 4*$b/3*x^(2/3))"); #solved for x and integrated for volume around y=$b $f2_up = $f_int ->eval(x=>Real(1)); #f_int eval at upper bound @@ -58,7 +58,7 @@ BEGIN_PGML Use the shell method to find the volume generated when the region bounded by the curves [`x=[$f1]`] and [`x=[$f2]`] is rotated around the line [`y=[$b]`]. -Volume: [_______________]{$ans} units cubed [@ AnswerFormatHelp("numbers") @]* +Volume: [_______________]{$ans} units cubed [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/02.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_3_151.pg b/Contrib/CCCS/CalculusTwo/02.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_3_151.pg index c7e51c90a2..b7238ff971 100644 --- a/Contrib/CCCS/CalculusTwo/02.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_3_151.pg +++ b/Contrib/CCCS/CalculusTwo/02.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_3_151.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "AppletObjects.pl", "PGML.pl", "contextFraction.pl", @@ -49,7 +49,7 @@ HEADER_TEXT(MODES( )); $desmos_div = MODES( - HTML=>qq(
), + HTML=>qq(
), TeX=>'Interactive graph best viewed online' ); @@ -57,10 +57,10 @@ Context("Numeric"); # integrating about y-axis $p = random(1, 3, 1); #period change -$a = ($p*4); +$a = ($p*4); -$f1 = Formula("cos($p*pi*x)")->reduce; +$f1 = Formula("cos($p*pi*x)")->reduce; $f2 = Formula("sin($p*pi*x)")->reduce; $ans = Formula("x*(sin($p*pi*x) - cos($p*pi*x))")->reduce; @@ -73,9 +73,9 @@ BEGIN_PGML The graphing calculator provided below can be used to graph the region given. -Consider the region bounded by [`y=[$f1]`], [`y=[$f2]`], [`x=\frac{1}{[$a]}`], and [`x=\frac{5}{[$a]}`]. Set up an integral, using the shell method, that would find the volume of the solid generated when the region is revolved about the [`y`] axis. +Consider the region bounded by [`y=[$f1]`], [`y=[$f2]`], [`x=\frac{1}{[$a]}`], and [`x=\frac{5}{[$a]}`]. Set up an integral, using the shell method, that would find the volume of the solid generated when the region is revolved about the [`y`] axis. -Volume [` = \displaystyle 2\pi \int_{1/[$a]}^{5/[$a]} `][_______________]{$ans} [`dx`] units cubed [@ AnswerFormatHelp("formulas") @]* +Volume [` = \displaystyle 2\pi \int_{1/[$a]}^{5/[$a]} `][_______________]{$ans} [`dx`] units cubed [@ helpLink("formulas") @]* END_PGML @@ -107,10 +107,10 @@ TEXT( MODES(TeX=>'', HTML=><variables->add(y=>"Real"); # integrating about y-axis $a = random(1, 3, 1); #lower bound $b = $a+2; #upper bound -$f1 = Formula("x^2-$a*x")->reduce; +$f1 = Formula("x^2-$a*x")->reduce; $f_int = Formula("2*pi*(x^4/4 - $a/3*x^3)"); #integrated for volume around y-axis $f2_up = $f_int ->eval(x=>$b); #f_int eval at upper bound $f2_low = $f_int ->eval(x=>$a); #f_int eval at lower bound @@ -58,7 +58,7 @@ BEGIN_PGML Consider the region bounded by [`y=[$f1]`], [`y=0`], [`x=[$a]`], and [`x=[$b]`]. Determine which method you think would be easiest to use to calculate the volume generated when the region is rotated around the [`y`]-axis. Then use your chosen method to find the volume. -Volume: [_______________]{$ans} units cubed [@ AnswerFormatHelp("numbers") @]* +Volume: [_______________]{$ans} units cubed [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/02.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_3_154.pg b/Contrib/CCCS/CalculusTwo/02.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_3_154.pg index e27fab3146..4d32c0d123 100644 --- a/Contrib/CCCS/CalculusTwo/02.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_3_154.pg +++ b/Contrib/CCCS/CalculusTwo/02.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_3_154.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -41,7 +41,7 @@ Context()->variables->add(y=>"Real"); # integrating about x-axis $a = random(2, 4, 1); #upper bound -$f1 = Formula("3*x^3 - 2")->reduce; +$f1 = Formula("3*x^3 - 2")->reduce; $f_int = Formula("pi*(9/7*x^7 - 3*x^4 - 1/3*x^3 + 4*x)"); #integrated for volume around x-axis $f2_up = $f_int ->eval(x=>$a); #f_int eval at upper bound $f2_low = $f_int ->eval(x=>Real(1)); #f_int eval at lower bound @@ -57,7 +57,7 @@ BEGIN_PGML Consider the region generated by the curves [`y=[$f1]`], [`y=x`], and [`x=[$a]`]. Determine which method you think would be easiest to use to calculate the volume generated when the region is rotated around the [`x`]-axis. Then use your chosen method to find the volume. -Volume: [_______________]{$ans} units cubed [@ AnswerFormatHelp("numbers") @]* +Volume: [_______________]{$ans} units cubed [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/02.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_4_166.pg b/Contrib/CCCS/CalculusTwo/02.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_4_166.pg index e318f6c487..b6c444fedd 100644 --- a/Contrib/CCCS/CalculusTwo/02.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_4_166.pg +++ b/Contrib/CCCS/CalculusTwo/02.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_4_166.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "PGcourse.pl" @@ -45,7 +45,7 @@ Context("Fraction-NoDecimals"); $a = random(1, 3, 1); #lower bound $b = $a+3; #upper bound of rotation $c = random(20, 25, 1); #vertical shift -$f1 = Formula("-1/2*x+$c")->reduce; +$f1 = Formula("-1/2*x+$c")->reduce; $f_int = Formula("sqrt(5)/2*x"); #integrated for arc length $f2_up = $f_int ->eval(x=>$b); #f_int eval at upper bound $f2_low = $f_int ->eval(x=>$a); #f_int eval at lower bound @@ -59,9 +59,9 @@ $ans = $f2_up - $f2_low; #now adding upper and lower BEGIN_PGML -Find the length of the function [`f(x)=[$f1]`] from [`x=[$a]`], and [`x=[$b]`]. Enter your answer as an exact value. +Find the length of the function [`f(x)=[$f1]`] from [`x=[$a]`], and [`x=[$b]`]. Enter your answer as an exact value. -Length: [_______________]{$ans} units [@ AnswerFormatHelp("numbers") @]* +Length: [_______________]{$ans} units [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/02.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_4_167.pg b/Contrib/CCCS/CalculusTwo/02.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_4_167.pg index 5715109ee7..600b1882f3 100644 --- a/Contrib/CCCS/CalculusTwo/02.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_4_167.pg +++ b/Contrib/CCCS/CalculusTwo/02.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_4_167.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -44,7 +44,7 @@ $a = random(-5, -1, 1); #lower bound $b = -$a; #upper bound $m = random(2, 5, 1); #slope of the line -$f1 = Formula("$m*y")->reduce; +$f1 = Formula("$m*y")->reduce; $f_int = Formula("sqrt(1 + $m^2)*y"); #integrated for arc length $f2_up = $f_int ->eval(y=>$b); #f_int eval at upper bound $f2_low = $f_int ->eval(y=>$a); #f_int eval at lower bound @@ -58,9 +58,9 @@ $ans = $f2_up - $f2_low; #now adding upper and lower BEGIN_PGML -Find the length of the function [`f(y)=[$f1]`] from [`y=[$a]`], and [`y=[$b]`]. +Find the length of the function [`f(y)=[$f1]`] from [`y=[$a]`], and [`y=[$b]`]. -Length: [_______________]{$ans} units [@ AnswerFormatHelp("numbers") @]* +Length: [_______________]{$ans} units [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/02.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_4_169.pg b/Contrib/CCCS/CalculusTwo/02.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_4_169.pg index 581a62de19..dbde84f6d3 100644 --- a/Contrib/CCCS/CalculusTwo/02.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_4_169.pg +++ b/Contrib/CCCS/CalculusTwo/02.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_4_169.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -42,7 +42,7 @@ Context()->variables->add(y=>"Real"); # surface about x-axis $y = random(2, 4, 1); #y part of the ordered pair $b = $y*$y; #upper bound -$f1 = Formula("sqrt(x)")->reduce; +$f1 = Formula("sqrt(x)")->reduce; $f_int = Formula("pi/6*(4*x+1)^(3/2)"); #integrated for surface area around x-axis $f2_up = $f_int ->eval(x=>$b); #f_int eval at upper bound $f2_low = $f_int ->eval(x=>Real(1)); #f_int eval at lower bound @@ -56,10 +56,10 @@ $ans = $f2_up - $f2_low; #now adding upper and lower BEGIN_PGML -Find the surface area of the surface generated when the curve [`y=[$f1]`] revolves around the [`x`]-axis from [`(1, 1)`] to [`([$b], [$y])`]. +Find the surface area of the surface generated when the curve [`y=[$f1]`] revolves around the [`x`]-axis from [`(1, 1)`] to [`([$b], [$y])`]. -Surface Area: [_______________]{$ans} square units [@ AnswerFormatHelp("numbers") @]* +Surface Area: [_______________]{$ans} square units [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/02.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_4_170.pg b/Contrib/CCCS/CalculusTwo/02.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_4_170.pg index 0a95732dff..3e4fa4205b 100644 --- a/Contrib/CCCS/CalculusTwo/02.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_4_170.pg +++ b/Contrib/CCCS/CalculusTwo/02.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_4_170.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -41,7 +41,7 @@ Context()->variables->add(y=>"Real"); # surface about y-axis $x = random(2, 4, 1); #x part of the ordered pair -$f1 = Formula("x^2"); +$f1 = Formula("x^2"); $y = $f1 ->eval(x=>$x); #y part of the ordered pair $f_int = Formula("pi/6*(4*y+1)^(3/2)"); #integrated for surface area around y-axis $f2_up = $f_int ->eval(y=>$y); #f_int eval at upper bound @@ -57,7 +57,7 @@ BEGIN_PGML Find the surface area of the surface generated when the curve [`y=[$f1]`] revolves around the [`y`]-axis from [`(1, 1)`] to [`([$x], [$y])`]. -Surface Area: [_______________]{$ans} square units [@ AnswerFormatHelp("numbers") @]* +Surface Area: [_______________]{$ans} square units [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/02.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_4_172.pg b/Contrib/CCCS/CalculusTwo/02.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_4_172.pg index 82dba37d78..6cf9008234 100644 --- a/Contrib/CCCS/CalculusTwo/02.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_4_172.pg +++ b/Contrib/CCCS/CalculusTwo/02.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_4_172.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "PGcourse.pl" @@ -42,10 +42,10 @@ Context()->variables->add(y=>"Real"); #Context("Fraction-NoDecimals"); # surface area about x-axis -$a = random(2, 4, 1); +$a = random(2, 4, 1); $x = $a**3; #x part of the ordered pair and upper bound -$f1 = Formula("x^(2/3)"); -$y = $f1 ->eval(x=>$x); #y part of the ordered pair +$f1 = Formula("x^(2/3)"); +$y = $f1 ->eval(x=>$x); #y part of the ordered pair $f_int = Formula("1/27*(9*x^(2/3)+4)^(3/2)"); #integrated for arc length around x-axis $f2_up = $f_int ->eval(x=>$x); #f_int eval at upper bound @@ -63,7 +63,7 @@ BEGIN_PGML Find the length of the function [`y=x^{2/3}`] from [`(1, 1)`] to [`([$x], [$y])`]. If you cannot evaluate the integral exactly, use technology to approximate it. -Length: [_______________]{$ans} units [@ AnswerFormatHelp("numbers") @]* +Length: [_______________]{$ans} units [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/02.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_4_175.pg b/Contrib/CCCS/CalculusTwo/02.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_4_175.pg index 4bfb328fba..fbd20c2240 100644 --- a/Contrib/CCCS/CalculusTwo/02.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_4_175.pg +++ b/Contrib/CCCS/CalculusTwo/02.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_4_175.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -41,7 +41,7 @@ Context()->variables->add(y=>"Real"); # integrating about y-axis $a = random(1, 3, 1); #upper bound -$f1 = Formula("e^x"); +$f1 = Formula("e^x"); $f_int = Formula("sqrt(e^(2*x)+1) + 1/2*ln(sqrt(e^(2*x)+1) - 1) - 1/2*ln(sqrt(e^(2*x)+1)+1)"); # integrated for arc length around x-axis $f2_up = $f_int ->eval(x=>$a); #f_int eval at upper bound $f2_low = $f_int ->eval(x=>Real(0)); #f_int eval at lower bound @@ -57,7 +57,7 @@ BEGIN_PGML Find the length of the function [`y=[$f1]`] from [`x=0`] to [`x=[$a]`]. If you cannot evaluate the integral exactly, use technology to approximate it. -Length: [_______________]{$ans} units [@ AnswerFormatHelp("numbers") @]* +Length: [_______________]{$ans} units [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/02.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_4_176.pg b/Contrib/CCCS/CalculusTwo/02.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_4_176.pg index 8712c7ece0..a4526e981c 100644 --- a/Contrib/CCCS/CalculusTwo/02.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_4_176.pg +++ b/Contrib/CCCS/CalculusTwo/02.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_4_176.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -43,7 +43,7 @@ Context()->variables->add(y=>"Real"); # integrating about y-axis $a = Real(1); #lower bound $b = random(2, 4, 1); #upper bound -$f1 = Formula("x^3/3+1/(4*x)"); +$f1 = Formula("x^3/3+1/(4*x)"); $f_int = Formula("x^3/3 - 1/(4*x)"); # integrated for arc length around x-axis $f2_up = $f_int ->eval(x=>$b); #f_int eval at upper bound $f2_low = $f_int ->eval(x=>$a); #f_int eval at lower bound @@ -60,7 +60,7 @@ BEGIN_PGML Find the length of the function [`y=[$f1]`] from [`x=[$a]`] to [`x=[$b]`]. Enter exact values only. -Length: [_______________]{$ans} units [@ AnswerFormatHelp("numbers") @]* +Length: [_______________]{$ans} units [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/02.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_4_180.pg b/Contrib/CCCS/CalculusTwo/02.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_4_180.pg index fd1dccde71..81b2fbeba2 100644 --- a/Contrib/CCCS/CalculusTwo/02.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_4_180.pg +++ b/Contrib/CCCS/CalculusTwo/02.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_4_180.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -41,7 +41,7 @@ Context()->variables->add(y=>"Real"); # integrating about y-axis $a = random(1,2,1); -$f1 = Formula("$a*sin(x)")->reduce; +$f1 = Formula("$a*sin(x)")->reduce; $ans = Formula("sqrt(1+$a**2*cos^2(x))")->reduce; @@ -52,10 +52,10 @@ $ans = Formula("sqrt(1+$a**2*cos^2(x))")->reduce; BEGIN_PGML -Set up an integral that would find the length of the function [`y=[$f1]`] from [`x=0`] to [`x=\pi`]. +Set up an integral that would find the length of the function [`y=[$f1]`] from [`x=0`] to [`x=\pi`]. -Length = [` \displaystyle \int_0^{\pi}`][_______________]{$ans} [`dx`] [@ AnswerFormatHelp("formulas") @]* +Length = [` \displaystyle \int_0^{\pi}`][_______________]{$ans} [`dx`] [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/02.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_4_181.pg b/Contrib/CCCS/CalculusTwo/02.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_4_181.pg index f78796c154..45b6c30ab6 100644 --- a/Contrib/CCCS/CalculusTwo/02.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_4_181.pg +++ b/Contrib/CCCS/CalculusTwo/02.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_4_181.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -41,7 +41,7 @@ Context()->variables->add(y=>"Real"); # integrating about y-axis $b = random(2, 4, 1); #upper bound -$f1 = Formula("(5-3*x)/4"); +$f1 = Formula("(5-3*x)/4"); $f_int = Formula("5/3*y"); #integrated for arc length around y-axis $f2_up = $f_int ->eval(y=>$b); #f_int eval at upper bound $f2_low = $f_int ->eval(y=>Real(0)); #f_int eval at lower bound @@ -58,7 +58,7 @@ BEGIN_PGML Find the length of the curve [`y=[$f1]`] from [`y=0`] to [`y=[$b]`]. If you cannot evaluate the integral exactly, use technology to approximate it. -Length: [_______________]{$ans} units [@ AnswerFormatHelp("numbers") @]* +Length: [_______________]{$ans} units [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/02.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_4_184.pg b/Contrib/CCCS/CalculusTwo/02.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_4_184.pg index 1e66aa69ec..81868887ef 100644 --- a/Contrib/CCCS/CalculusTwo/02.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_4_184.pg +++ b/Contrib/CCCS/CalculusTwo/02.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_4_184.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -41,7 +41,7 @@ Context()->variables->add(y=>"Real"); # integrating about y-axis $b = random(1, 4, 1); #upper bound -$f1 = Formula("y^2"); +$f1 = Formula("y^2"); $f_int = Formula("y/2*sqrt(4*y^2+1) + 1/4*ln(sqrt(4*y^2+1) + 2*y)"); #integrated for arc length around y-axis $f2_up = $f_int ->eval(y=>$b); #f_int eval at upper bound $f2_low = $f_int ->eval(y=>Real(0)); #f_int eval at lower bound @@ -58,7 +58,7 @@ BEGIN_PGML Find the length of the function of [`y`], [`x=[$f1]`], from [`y=0`] to [`y=[$b]`]. If you cannot evaluate the integral exactly, use technology to approximate it. -Length: [_______________]{$ans} units [@ AnswerFormatHelp("numbers") @]* +Length: [_______________]{$ans} units [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/02.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_4_185.pg b/Contrib/CCCS/CalculusTwo/02.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_4_185.pg index 99ecefa3cb..340f1d940b 100644 --- a/Contrib/CCCS/CalculusTwo/02.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_4_185.pg +++ b/Contrib/CCCS/CalculusTwo/02.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_4_185.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -42,7 +42,7 @@ Context()->variables->add(y=>"Real"); # integrating about y-axis $a = random(1, 5, 1); $b = $a*$a; #upper bound -$f1 = Formula("sqrt(y)"); +$f1 = Formula("sqrt(y)"); $f_int = Formula("1/8*(4*y*sqrt(1/y + 4) + ln(4*y*sqrt(1/y + 4) + 8*y + 1))"); #integrated for arc length around y-axis $f2_up = $f_int ->eval(y=>$b); #f_int eval at upper bound $f2_low = $f_int ->eval(y=>Real(0.0000001)); #f_int eval at lower bound @@ -59,7 +59,7 @@ BEGIN_PGML Find the length of the function of [`y`], [`x=[$f1]`], from [`y=0`] to [`y=[$b]`]. If you cannot evaluate the integral exactly, use technology to approximate it. -Length: [_______________]{$ans} units [@ AnswerFormatHelp("numbers") @]* +Length: [_______________]{$ans} units [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/02.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_4_190.pg b/Contrib/CCCS/CalculusTwo/02.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_4_190.pg index 0b8bd007d3..a6173ef532 100644 --- a/Contrib/CCCS/CalculusTwo/02.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_4_190.pg +++ b/Contrib/CCCS/CalculusTwo/02.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_4_190.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -41,10 +41,10 @@ Context()->variables->add(y=>"Real"); # integrating about y-axis $a = random(1, 4, 1); -$c = Real(e); +$c = Real(e); $b = $c*$a; #upper bound $low = 1/$c; -$f1 = Formula("ln(y)"); +$f1 = Formula("ln(y)"); $f_int = Formula("y*sqrt(1/y^2+1)/sqrt(y^2+1)*(sqrt(y^2+1) - ln(sqrt(y^2+1)+1) + ln(y))"); # integrated for arc length around y-axis $f2_up = $f_int ->eval(y=>$b); #f_int eval at upper bound $f2_low = $f_int ->eval(y=>$low); #f_int eval at lower bound @@ -61,7 +61,7 @@ BEGIN_PGML Find the length of the function of [`y`], [`x=[$f1]`], from [`y=1/e`] to [`y=[$a]*e`]. If you cannot evaluate the integral exactly, use technology to approximate it. -Length: [_______________]{$ans} units [@ AnswerFormatHelp("numbers") @]* +Length: [_______________]{$ans} units [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/02.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_4_192.pg b/Contrib/CCCS/CalculusTwo/02.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_4_192.pg index 569536f3f7..b8df758e2a 100644 --- a/Contrib/CCCS/CalculusTwo/02.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_4_192.pg +++ b/Contrib/CCCS/CalculusTwo/02.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_4_192.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -41,7 +41,7 @@ Context()->variables->add(y=>"Real"); # integrating about y-axis $b = random(1, 3, 1); #upper bound -$f1 = Formula("x^3"); +$f1 = Formula("x^3"); $f_int = Formula("pi/27*(1 + 9*x^4)^(3/2)"); #integrated for surface area around x-axis $f2_up = $f_int ->eval(x=>$b); #f_int eval at upper bound $f2_low = $f_int ->eval(x=>Real(0)); #f_int eval at lower bound @@ -58,7 +58,7 @@ BEGIN_PGML Find the surface area of the solid generated when the curve [`y=[$f1]`], from [`x=0`] to [`x=[$b]`], revolves around the [`x`]-axis. If you cannot evaluate the integral exactly, use technology to approximate it. -Surface Area: [_______________]{$ans} units squared. [@ AnswerFormatHelp("numbers") @]* +Surface Area: [_______________]{$ans} units squared. [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/02.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_4_194.pg b/Contrib/CCCS/CalculusTwo/02.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_4_194.pg index b28cde3fb9..b3b40518cb 100644 --- a/Contrib/CCCS/CalculusTwo/02.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_4_194.pg +++ b/Contrib/CCCS/CalculusTwo/02.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_4_194.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -39,7 +39,7 @@ $showPartialCorrectAnswers = 1; Context("Numeric"); Context()->variables->add(y=>"Real"); -$f1 = Formula("1/x^2"); +$f1 = Formula("1/x^2"); $ans = Real(5.5169365); @@ -52,7 +52,7 @@ BEGIN_PGML Find the surface area of the solid generated when the curve [`y=[$f1]`], from [`x=1`] to [`x=3`], revolves around the [`x`]-axis. If you cannot evaluate the integral exactly, use technology to approximate it. -Surface Area: [_______________]{$ans} units squared. [@ AnswerFormatHelp("numbers") @]* +Surface Area: [_______________]{$ans} units squared. [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/02.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_4_200.pg b/Contrib/CCCS/CalculusTwo/02.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_4_200.pg index c80beadf1e..f5670dfd64 100644 --- a/Contrib/CCCS/CalculusTwo/02.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_4_200.pg +++ b/Contrib/CCCS/CalculusTwo/02.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_4_200.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "PGcourse.pl" @@ -44,7 +44,7 @@ Context()->variables->add(y=>"Real"); # integrating about y-axis $x = random(1, 3, 1); #x - value for the upper bound -$f1 = Formula("1/2*x^2+1/2"); +$f1 = Formula("1/2*x^2+1/2"); $b = $f1 ->eval(x=>$x); #upper bound for y $f_int = Formula("4*sqrt(2)*pi/3*y^(3/2)"); #integrated for surface area around y-axis $f2_up = $f_int ->eval(y=>$b); #f_int eval at upper bound @@ -59,10 +59,10 @@ $ans = $f2_up - $f2_low; #now adding upper and lower BEGIN_PGML -Find the surface area of the solid generated when the curve [`y=[$f1]`], from [`x=0`] to [`x=[$x]`], revolves around the [`y`]-axis. Enter exact answers only. +Find the surface area of the solid generated when the curve [`y=[$f1]`], from [`x=0`] to [`x=[$x]`], revolves around the [`y`]-axis. Enter exact answers only. -Surface Area: [_______________]{$ans} units squared. [@ AnswerFormatHelp("numbers") @]* +Surface Area: [_______________]{$ans} units squared. [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/02.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_4_202.pg b/Contrib/CCCS/CalculusTwo/02.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_4_202.pg index 96fbd06d92..2574a18f04 100644 --- a/Contrib/CCCS/CalculusTwo/02.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_4_202.pg +++ b/Contrib/CCCS/CalculusTwo/02.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_4_202.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -43,10 +43,10 @@ Context()->variables->add(y=>"Real"); $xd = random(2, 3, 1); #denom of lower bound for x $xl = 1/$xd; #lower bound for x $xu = random(1, 3, 1); #upper bound for x -$f1 = Formula("1/x"); +$f1 = Formula("1/x"); $a = $f1 ->eval(x=>$xl); #upper bound for y $b = $f1 ->eval(x=>$xu); #lower bound for y - + $f_int = Formula("pi/y^2*(y^2*arcsinh(y^2)-sqrt(y^4+1))"); #integrated for surface area around y-axis $f2_up = $f_int ->eval(y=>$a); #f_int eval at upper bound $f2_low = $f_int ->eval(y=>$b); #f_int eval at lower bound @@ -63,7 +63,7 @@ BEGIN_PGML Find the surface area of the solid generated when the curve [`y=[$f1]`], from [`x=1/[$xd]`] to [`x=[$xu]`], revolves around the [`y`]-axis. If you cannot evaluate the integral exactly, use technology to approximate it. -Surface Area: [_______________]{$ans} units squared. [@ AnswerFormatHelp("numbers") @]* +Surface Area: [_______________]{$ans} units squared. [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/02.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_4_206.pg b/Contrib/CCCS/CalculusTwo/02.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_4_206.pg index 956c247871..7482d3f0e1 100644 --- a/Contrib/CCCS/CalculusTwo/02.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_4_206.pg +++ b/Contrib/CCCS/CalculusTwo/02.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_4_206.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -41,7 +41,7 @@ Context()->variables->add(y=>"Real"); # integrating about y-axis #$a = random(1, 3, 1); #lower bound -$f1 = Formula("cos(x)"); +$f1 = Formula("cos(x)"); #$f_int = Formula("x^2"); #integrated for surface area around y-axis #$f2_up = $f_int ->eval(x=>$a); #f_int eval at upper bound #$f2_low = $f_int ->eval(x=>Real(0)); #f_int eval at lower bound @@ -58,7 +58,7 @@ BEGIN_PGML Find the surface area of the solid generated when the curve [`y=[$f1]`], from [`x=0`] to [`x=\pi/2`], revolves around the [`y`]-axis. If you cannot evaluate the integral exactly, use technology to approximate it. -Surface Area: [_______________]{$ans} units squared. [@ AnswerFormatHelp("numbers") @]* +Surface Area: [_______________]{$ans} units squared. [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/02.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_4_209.pg b/Contrib/CCCS/CalculusTwo/02.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_4_209.pg index ffbf847092..cbbb02c42b 100644 --- a/Contrib/CCCS/CalculusTwo/02.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_4_209.pg +++ b/Contrib/CCCS/CalculusTwo/02.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_4_209.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -41,7 +41,7 @@ Context()->variables->add(y=>"Real"); # integrating about y-axis $b = random(2, 3, 1); #Upper bound -$f1 = Formula("1/x"); +$f1 = Formula("1/x"); $f2 = Formula("sin(pi*x)"); $f_int = Formula("pi/x^2*(x^2*sinh^-1(x^2)-sqrt(x^4+1))"); #integrated for surface area around x-axis $f2_up = $f_int ->eval(x=>$b); #f_int eval at upper bound @@ -59,7 +59,7 @@ BEGIN_PGML A lampshade is constructed by rotating [`y=[$f1]`] around the [`x`]-axis from [`x=1`] to [`x=[$b]`]. Determine how much material you would need to construct this lampshade - that is, the surface area. If you cannot evaluate the integral exactly, use technology to approximate it. -Area: [_______________]{$ans} units squared [@ AnswerFormatHelp("numbers") @]* +Area: [_______________]{$ans} units squared [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/02.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_4_211.pg b/Contrib/CCCS/CalculusTwo/02.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_4_211.pg index 4cbcf6df78..a58a04e932 100644 --- a/Contrib/CCCS/CalculusTwo/02.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_4_211.pg +++ b/Contrib/CCCS/CalculusTwo/02.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_4_211.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -39,9 +39,9 @@ $showPartialCorrectAnswers = 1; Context("Numeric"); Context()->variables->add(y=>"Real"); -$f1 = Formula("5*abs(sin(pi/5*x))"); +$f1 = Formula("5*abs(sin(pi/5*x))"); -$ans = Real(23); +$ans = Real(23); ########################### # Main text @@ -51,7 +51,7 @@ BEGIN_PGML You are building a bridge to span 10 feet. You intend to add decorative rope in the shape of [`y=[$f1]`], where [`x`] is the distance in feet from one end of the bridge. Determine how much rope you would need to purchase, rounded to the nearest foot. If you cannot evaluate the integral exactly, use technology to approximate it. -Length: [_______________]{$ans} feet [@ AnswerFormatHelp("numbers") @]* +Length: [_______________]{$ans} feet [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/02.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_5_218.pg b/Contrib/CCCS/CalculusTwo/02.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_5_218.pg index 93f17b4b0d..82c5af24da 100644 --- a/Contrib/CCCS/CalculusTwo/02.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_5_218.pg +++ b/Contrib/CCCS/CalculusTwo/02.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_5_218.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "PGcourse.pl" @@ -58,9 +58,9 @@ $ans = $f2_up - $f2_low; #now adding upper and lower BEGIN_PGML -Find the work done when a constant force [`F=[$c]`] pounds (lb) moves a chair from [`x=[$a]`], to [`x=[$b]`] feet (ft). +Find the work done when a constant force [`F=[$c]`] pounds (lb) moves a chair from [`x=[$a]`], to [`x=[$b]`] feet (ft). -Work: [_______________]{$ans} ft-lb [@ AnswerFormatHelp("numbers") @]* +Work: [_______________]{$ans} ft-lb [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/02.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_5_220.pg b/Contrib/CCCS/CalculusTwo/02.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_5_220.pg index c1624f404d..ed95bf5a1c 100644 --- a/Contrib/CCCS/CalculusTwo/02.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_5_220.pg +++ b/Contrib/CCCS/CalculusTwo/02.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_5_220.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "PGcourse.pl" @@ -59,7 +59,7 @@ BEGIN_PGML Find the work done lifting a [`[$c]`] kilogram (kg) child from the floor to a height of [`[$b]`] meters (m). (Note that [`1`] kg mass exerts approximately [`9.8`] N of force on planet earth.) -Work: [_______________]{$ans} Joules [@ AnswerFormatHelp("numbers") @]* +Work: [_______________]{$ans} Joules [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/02.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_5_222.pg b/Contrib/CCCS/CalculusTwo/02.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_5_222.pg index 297b7cdc12..f19dd9e397 100644 --- a/Contrib/CCCS/CalculusTwo/02.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_5_222.pg +++ b/Contrib/CCCS/CalculusTwo/02.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_5_222.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "PGcourse.pl" @@ -45,8 +45,8 @@ Context()->variables->add(y=>"Real"); $a = random(1, 5, 1); #lower bound $b = $a+2; #upper bound $c = random(10, 15, 1); #constant -$f1 = Formula("$c/x^2")->reduce; -$f_int = Formula("-$c/x"); #work +$f1 = Formula("$c/x^2")->reduce; +$f_int = Formula("-$c/x"); #work $f2_up = $f_int ->eval(x=>$b); #f_int eval at upper bound $f2_low = $f_int ->eval(x=>$a); #f_int eval at lower bound @@ -59,9 +59,9 @@ $ans = $f2_up - $f2_low; #now adding upper and lower BEGIN_PGML -Find the work done for a force [`F=[$f1]`] N from [`x=[$a]`], to [`x=[$b]`] m. +Find the work done for a force [`F=[$f1]`] N from [`x=[$a]`], to [`x=[$b]`] m. -Work: [_______________]{$ans} Joules [@ AnswerFormatHelp("numbers") @]* +Work: [_______________]{$ans} Joules [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/02.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_5_224.pg b/Contrib/CCCS/CalculusTwo/02.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_5_224.pg index ab77e7b804..a6a27eb792 100644 --- a/Contrib/CCCS/CalculusTwo/02.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_5_224.pg +++ b/Contrib/CCCS/CalculusTwo/02.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_5_224.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "PGcourse.pl" @@ -43,7 +43,7 @@ Context()->variables->add(y=>"Real"); # integrating about y-axis $b = random(2, 4, 1); #upper bound -$f1 = Formula("x^2+2*x")->reduce; +$f1 = Formula("x^2+2*x")->reduce; $f_int = Formula("x^3/3+x^2"); #mass of metal rod x long $f2_up = $f_int ->eval(x=>$b); #f_int eval at upper bound $f2_low = $f_int ->eval(x=>Real(0)); #f_int eval at lower bound @@ -60,7 +60,7 @@ BEGIN_PGML Find the mass of a one-dimensional wire that is [`[$b]`] ft long (starting at [`x=0`]) and has a desnity of [`\rho (x)=[$f1]`] lb/ft. -Mass: [_______________]{$ans} lbs. [@ AnswerFormatHelp("numbers") @]* +Mass: [_______________]{$ans} lbs. [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/02.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_5_226.pg b/Contrib/CCCS/CalculusTwo/02.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_5_226.pg index 37810fb3ed..99dddfbbc6 100644 --- a/Contrib/CCCS/CalculusTwo/02.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_5_226.pg +++ b/Contrib/CCCS/CalculusTwo/02.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_5_226.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "PGcourse.pl" @@ -44,7 +44,7 @@ Context()->variables->add(y=>"Real"); # integrating about y-axis $b = random(2, 4, 1); #upper bound $l = random(4, 10, 2); #length of the rod -$f1 = Formula("e^(1/2*x)")->reduce; +$f1 = Formula("e^(1/2*x)")->reduce; $f_int = Formula("2*e^(1/2*x)"); #mass of metal rod $f2_up = $f_int ->eval(x=>$l); #f_int eval at upper bound $f2_low = $f_int ->eval(x=>Real(0)); #f_int eval at lower bound @@ -61,7 +61,7 @@ BEGIN_PGML Find the mass of a one-dimensional metal rod that is [`[$l]`] in long (starting at [`x=0`]) and has a desnity of [`\rho(x)=e^{\frac{1}{2}x}`] lb/in. -Mass: [_______________]{$ans} lbs. [@ AnswerFormatHelp("numbers") @]* +Mass: [_______________]{$ans} lbs. [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/02.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_5_227.pg b/Contrib/CCCS/CalculusTwo/02.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_5_227.pg index d854fb2a52..46f47be6e3 100644 --- a/Contrib/CCCS/CalculusTwo/02.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_5_227.pg +++ b/Contrib/CCCS/CalculusTwo/02.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_5_227.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "PGcourse.pl" @@ -44,7 +44,7 @@ Context()->variables->add(y=>"Real"); # integrating about y-axis $a = random(2, 4, 1); #lower bound $b = $a+2; #upper bound -$f1 = Formula("5/x")->reduce; +$f1 = Formula("5/x")->reduce; $f_int = Formula("5*ln(x)"); #mass of pencil from $a to $b $f2_up = $f_int ->eval(x=>$a+$b); #f_int eval at upper bound $f2_low = $f_int ->eval(x=>$a); #f_int eval at lower bound @@ -61,7 +61,7 @@ BEGIN_PGML Find the mass of a one-dimensional pencil that is [`[$b]`] in. long (starting at [`x=[$a]`] inches) and has a density of [`\rho (x)=[$f1]`] where [`x`] is measured in inches and [`\rho(x)`] is measured in oz/in. -Mass: [_______________]{$ans} oz. [@ AnswerFormatHelp("numbers") @]* +Mass: [_______________]{$ans} oz. [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/02.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_5_229.pg b/Contrib/CCCS/CalculusTwo/02.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_5_229.pg index c5652b6a9f..e5ed0cb655 100644 --- a/Contrib/CCCS/CalculusTwo/02.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_5_229.pg +++ b/Contrib/CCCS/CalculusTwo/02.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_5_229.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "PGcourse.pl" @@ -43,7 +43,7 @@ Context()->variables->add(y=>"Real"); # integrating about y-axis $r = random(2, 3, .1); #radius of the puck -$f1 = Formula("x^3-2*x+5")->reduce; +$f1 = Formula("x^3-2*x+5")->reduce; $f_int = Formula("2*pi*(x^5/5-2/3*x^3+5*x^2/2)"); #mass of the puck $f2_up = $f_int ->eval(x=>$r); #f_int eval at upper bound $f2_low = $f_int ->eval(x=>Real(0)); #f_int eval at lower bound @@ -57,10 +57,10 @@ $ans = $f2_up - $f2_low; #now adding upper and lower BEGIN_PGML -Find the mass of a two-dimensional, centered at the origin, oversized hockey puck of radius [`[$r]`] in. with a radial density of [`\rho (x)=[$f1]`] lb/in^2, where [`x`] is the radial distance from the origin to any point on the puck. +Find the mass of a two-dimensional, centered at the origin, oversized hockey puck of radius [`[$r]`] in. with a radial density of [`\rho (x)=[$f1]`] lb/in^2, where [`x`] is the radial distance from the origin to any point on the puck. -Mass: [_______________]{$ans} lbs. [@ AnswerFormatHelp("numbers") @]* +Mass: [_______________]{$ans} lbs. [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/02.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_5_231.pg b/Contrib/CCCS/CalculusTwo/02.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_5_231.pg index 1ad55fc250..d20738ce64 100644 --- a/Contrib/CCCS/CalculusTwo/02.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_5_231.pg +++ b/Contrib/CCCS/CalculusTwo/02.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_5_231.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "PGcourse.pl" @@ -43,7 +43,7 @@ Context("Fraction-NoDecimals"); # integrating about y-axis $r = random(10, 14, 2); #upper bound -$f1 = Formula("1+cos(pi*x)")->reduce; +$f1 = Formula("1+cos(pi*x)")->reduce; $f_int = Formula("pi*x^2+2*pi*x*sin(pi*x)+2*cos(pi*x)/pi"); #mass of plate radius $r $f2_up = $f_int ->eval(x=>$r); #f_int eval at upper bound $f2_low = $f_int ->eval(x=>Real(0)); #f_int eval at lower bound @@ -60,7 +60,7 @@ BEGIN_PGML Find the mass of a two-dimensional, centered at the origin, plate of radius [`[$r]`] in. with a radial density of [`\rho (x)=[$f1]`] lb/ft. -Mass: [_______________]{$ans} units [@ AnswerFormatHelp("numbers") @]* +Mass: [_______________]{$ans} units [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/02.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_5_233.pg b/Contrib/CCCS/CalculusTwo/02.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_5_233.pg index 48d1ce4b34..7049514869 100644 --- a/Contrib/CCCS/CalculusTwo/02.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_5_233.pg +++ b/Contrib/CCCS/CalculusTwo/02.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_5_233.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "PGcourse.pl" @@ -44,7 +44,7 @@ Context("Fraction-NoDecimals"); # integrating about y-axis $c = random(2, 4, 1); #constant multiplier $r = random(3, 6, 1); #radius -$f1 = Formula("sqrt($c*x)")->reduce; +$f1 = Formula("sqrt($c*x)")->reduce; $f_int = Formula("4*pi*sqrt($c)/5*x^(5/2)"); #mass of disk with radius $r and density of $f1 $f2_up = $f_int ->eval(x=>$r); #f_int eval at upper bound $f2_low = $f_int ->eval(x=>Real(0)); #f_int eval at lower bound @@ -61,7 +61,7 @@ BEGIN_PGML Find the mass of a two-dimensional, centered at the origin, disk of radius [`[$r]`] cm with a density of [`\rho (x)=[$f1]`]. -Mass: [_______________]{$ans} units [@ AnswerFormatHelp("numbers") @]* +Mass: [_______________]{$ans} units [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/02.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_5_236.pg b/Contrib/CCCS/CalculusTwo/02.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_5_236.pg index a5bbf000d7..af5fc59f7f 100644 --- a/Contrib/CCCS/CalculusTwo/02.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_5_236.pg +++ b/Contrib/CCCS/CalculusTwo/02.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_5_236.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "PGcourse.pl" @@ -60,10 +60,10 @@ BEGIN_PGML A [`1`]-m spring requires [`[$w1]`] J to stretch the spring to [`1.1`] m in length (See image below. This means that x is going from 0 to 0.1 for the spring to stretch from 1 meter in length to 1.1 meters in length). How much work would it take to stretch the spring from [`1`] meter in length to [`[$l]`] meters in length? ->>[@ image("Calc2_2_5_236_image.jpg", width=>219, height=>242) +>>[@ image("Calc2_2_5_236_image.jpg", width=>219, height=>242) @]*<< -Work: [_______________]{$ans} Joules [@ AnswerFormatHelp("numbers") @]* +Work: [_______________]{$ans} Joules [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/02.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_5_238.pg b/Contrib/CCCS/CalculusTwo/02.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_5_238.pg index 80c85132e4..23343ca015 100644 --- a/Contrib/CCCS/CalculusTwo/02.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_5_238.pg +++ b/Contrib/CCCS/CalculusTwo/02.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_5_238.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "PGcourse.pl" @@ -54,7 +54,7 @@ BEGIN_PGML A shock absorber is compressed [`1`] in. by a weight of [`[$w]`] ton. What is the spring constant? (Note [`1`] ton is [`2000`] lbs). -Constant: [_______________]{$ans} lbs/ft [@ AnswerFormatHelp("numbers") @]* +Constant: [_______________]{$ans} lbs/ft [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/02.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_5_239.pg b/Contrib/CCCS/CalculusTwo/02.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_5_239.pg index bf41ef6e1b..3b273b667c 100644 --- a/Contrib/CCCS/CalculusTwo/02.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_5_239.pg +++ b/Contrib/CCCS/CalculusTwo/02.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_5_239.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "PGcourse.pl" @@ -43,7 +43,7 @@ Context("Fraction-NoDecimals"); # integrating about y-axis $b = random(2, 4, 1); #upper bound -$f1 = Formula("20*x-x^3")->reduce; +$f1 = Formula("20*x-x^3")->reduce; $f_int = Formula("10*x^2-x^4/4"); #work to stretch spring from x=0 to x=$b $f2_up = $f_int ->eval(x=>$b); #f_int eval at upper bound $f2_low = $f_int ->eval(x=>Real(0)); #f_int eval at lower bound @@ -60,7 +60,7 @@ BEGIN_PGML A force of [`F=[$f1] N`] stretches a nonlinear spring by [`x`] meters. What work is required to stretch the spring from [`x=0`] to [`x=[$b] m`]? -Work: [_______________]{$ans} Joules [@ AnswerFormatHelp("numbers") @]* +Work: [_______________]{$ans} Joules [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/02.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_5_246.pg b/Contrib/CCCS/CalculusTwo/02.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_5_246.pg index 898fc4453f..f9350d09b9 100644 --- a/Contrib/CCCS/CalculusTwo/02.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_5_246.pg +++ b/Contrib/CCCS/CalculusTwo/02.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_5_246.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "contextScientificNotation.pl", @@ -55,7 +55,7 @@ BEGIN_PGML The force of gravity on a mass [`m`] is [`F=-( (GMm)/x^2)`] newtons. For a rocket of mass [`m=[$m]`] kg, compute the work to lift the rocket from [`x=6400`] to [`x=\infty`] km. (Note [`G=6.67`] x [`10^{-11} N m^2/kg^2`] and [`M=5.97`] x [`10^{24} kg`]). -The magnitude of the work: [_______________]{$ans} Joules [@ AnswerFormatHelp("numbers") @]* +The magnitude of the work: [_______________]{$ans} Joules [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/02.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_5_248.pg b/Contrib/CCCS/CalculusTwo/02.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_5_248.pg index 8233b03b54..8bd15c745a 100644 --- a/Contrib/CCCS/CalculusTwo/02.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_5_248.pg +++ b/Contrib/CCCS/CalculusTwo/02.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_5_248.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "PGcourse.pl" @@ -43,7 +43,7 @@ Context("Fraction-NoDecimals"); # integrating about y-axis $b = random(175, 250, 25); #upper bound and height of the cylinder -$r = random(5, 10, 10); #radius of the cylinder +$r = random(5, 10, 10); #radius of the cylinder $f_int = Formula("pi*$r^2*62*($b*x - x^2/2)"); #work to pump water out of the cylinder $f2_up = $f_int ->eval(x=>$b); #f_int eval at upper bound $f2_low = $f_int ->eval(x=>Real(0)); #f_int eval at lower bound @@ -60,7 +60,7 @@ BEGIN_PGML Find the work required to pump all the water out from the top of a cylinder that has a circular base of radius [`[$r] ft`] and a height of [`[$b] ft`]. Use the fact that the weight-density of water is [`62`] [`lb/ft^3`]. -Work: [_______________]{$ans} ft-lb [@ AnswerFormatHelp("numbers") @]* +Work: [_______________]{$ans} ft-lb [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/02.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_5_250.pg b/Contrib/CCCS/CalculusTwo/02.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_5_250.pg index b6c1745d46..dc5dd80038 100644 --- a/Contrib/CCCS/CalculusTwo/02.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_5_250.pg +++ b/Contrib/CCCS/CalculusTwo/02.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_5_250.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "PGcourse.pl" @@ -44,7 +44,7 @@ Context("Fraction-NoDecimals"); # integrating about y-axis $b = random(4, 6, 1); #upper bound and depth of the water $a = random(500, 1000, 100); #cross sectional area of the pool -$f1 = Formula("x^3-$a*x+5")->reduce; +$f1 = Formula("x^3-$a*x+5")->reduce; $f_int = Formula("62*$a*(($b+1)*x - x^2/2)"); #work to pump water out of the pool $f2_up = $f_int ->eval(x=>$b); #f_int eval at upper bound $f2_low = $f_int ->eval(x=>Real(0)); #f_int eval at lower bound @@ -61,7 +61,7 @@ BEGIN_PGML How much work is required to pump out a swimming pool if the area of the base is [`[$a] ft^2`], the water is [`[$b] ft`] deep, and the top is [`1 ft`] above the water level? Assume the water density is [`62`] [`lb/ft^3`]. -Work: [_______________]{$ans} ft-lb [@ AnswerFormatHelp("numbers") @]* +Work: [_______________]{$ans} ft-lb [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/02.6/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_6_255.pg b/Contrib/CCCS/CalculusTwo/02.6/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_6_255.pg index 772d585c15..344c91693c 100644 --- a/Contrib/CCCS/CalculusTwo/02.6/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_6_255.pg +++ b/Contrib/CCCS/CalculusTwo/02.6/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_6_255.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "PGcourse.pl" @@ -42,7 +42,7 @@ Context("Numeric"); # finding x bar $m1 = random(1, 3, 1); #first mass $m2 = $m1+2; #second mass -$m = $m1 + $m2; #sum of the masses +$m = $m1 + $m2; #sum of the masses $x1 = random(-2, 1, 1); #first x $x2 = $x1+2; #second x $my = $m1*$x1 + $m2*$x2; @@ -55,10 +55,10 @@ $ans = $my/$m; #x bar BEGIN_PGML -Calculate the center of mass, or balancing point, for the collection of single point masses [`m_1 = [$m1]`] at [`x_1 = [$x1]`] and [`m_2 = [$m2]`] at [`x_2 = [$x2]`]. +Calculate the center of mass, or balancing point, for the collection of single point masses [`m_1 = [$m1]`] at [`x_1 = [$x1]`] and [`m_2 = [$m2]`] at [`x_2 = [$x2]`]. -Center of mass: [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +Center of mass: [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/02.6/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_6_258.pg b/Contrib/CCCS/CalculusTwo/02.6/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_6_258.pg index a9d36d9a1b..c4b7d07e5a 100644 --- a/Contrib/CCCS/CalculusTwo/02.6/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_6_258.pg +++ b/Contrib/CCCS/CalculusTwo/02.6/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_6_258.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "contextLimitedPoint.pl", @@ -43,7 +43,7 @@ Context("Numeric"); # finding x bar $m1 = random(1, 3, 1); #first mass $m2 = $m1+3; #second mass -$m = $m1 + $m2; #sum of the masses +$m = $m1 + $m2; #sum of the masses #the ordered pairs are (1, 0) and (0, 1) $my = $m1; @@ -60,10 +60,10 @@ $ans = Point("($my/$m)", "($mx/$m)"); #x bar BEGIN_PGML -Calculate the center of mass, or balancing point, for the collection of single point masses [`m_1 = [$m1]`] at [`(1, 0)`] and [`m_2 = [$m2]`] at [`x_2 = (0, 1)`] +Calculate the center of mass, or balancing point, for the collection of single point masses [`m_1 = [$m1]`] at [`(1, 0)`] and [`m_2 = [$m2]`] at [`x_2 = (0, 1)`] -Center of mass, as an ordered pair: [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +Center of mass, as an ordered pair: [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/02.6/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_6_261.pg b/Contrib/CCCS/CalculusTwo/02.6/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_6_261.pg index cd7104cda7..7669208a6f 100644 --- a/Contrib/CCCS/CalculusTwo/02.6/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_6_261.pg +++ b/Contrib/CCCS/CalculusTwo/02.6/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_6_261.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "PGcourse.pl" @@ -43,7 +43,7 @@ Context()->variables->add(L => 'Real'); # finding x bar for x element (0, L) $a = random(1, 3, 1); #coefficient on x^2 $rho = Formula("$a*x^2")->reduce; #rho -$m = Formula("$a*L^3/3"); #integrating rho to find m +$m = Formula("$a*L^3/3"); #integrating rho to find m $my = Formula("$a*L^4/4"); #integrating x*rho to find my @@ -54,10 +54,10 @@ $ans = $my/$m; #x bar BEGIN_PGML -Calculate the center of mass, [`\overline{x}`], of a thin wire that lies on the [`x`] axis for [`x \in (0,L)`] where [`L`] is a positive real number and the density function is [`\rho(x) = [$rho]`]. +Calculate the center of mass, [`\overline{x}`], of a thin wire that lies on the [`x`] axis for [`x \in (0,L)`] where [`L`] is a positive real number and the density function is [`\rho(x) = [$rho]`]. -[`\overline{x}=`] [_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`\overline{x}=`] [_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/02.6/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_6_265.pg b/Contrib/CCCS/CalculusTwo/02.6/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_6_265.pg index 53431e338d..3382150e47 100644 --- a/Contrib/CCCS/CalculusTwo/02.6/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_6_265.pg +++ b/Contrib/CCCS/CalculusTwo/02.6/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_6_265.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "PGcourse.pl" @@ -44,8 +44,8 @@ Context("Numeric"); $b = random(1, 3, 1); #upper bound $rho = Formula("e^x")->reduce; #rho -#integrating rho to find m -$m_up = $rho->eval(x=>$b); +#integrating rho to find m +$m_up = $rho->eval(x=>$b); $m_low = $rho->eval(x=>Real(0)); $m = $m_up - $m_low; @@ -62,9 +62,9 @@ BEGIN_PGML Evaluate the mass and then set up an integral that would find the center of mass, [`\overline{x}`], of a thin wire that lies on the [`x`] axis for [`x \in (0, [$b])`] when the density function is [`\rho(x) = [$rho]`]. -Mass [`=`][________________]{$m} [@ AnswerFormatHelp("numbers") @]* +Mass [`=`][________________]{$m} [@ helpLink("numbers") @]* -[`\overline{x}= \displaystyle \int_0^{[$b]}`] [_______________]{$integrand} [`dx`] [@ AnswerFormatHelp("formulas") @]* +[`\overline{x}= \displaystyle \int_0^{[$b]}`] [_______________]{$integrand} [`dx`] [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/02.6/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_6_272.pg b/Contrib/CCCS/CalculusTwo/02.6/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_6_272.pg index ae560af01b..94906818e1 100644 --- a/Contrib/CCCS/CalculusTwo/02.6/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_6_272.pg +++ b/Contrib/CCCS/CalculusTwo/02.6/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_6_272.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "contextLimitedPoint.pl", @@ -59,7 +59,7 @@ BEGIN_PGML Find the center of mass, [`(\overline{x}, \overline{y})`], of a thin plate on the [`xy`] plane bounded by [`y=\cos(x)`], [`y=-\cos(x)`], [`x=-\frac{\pi}{2}`], and [`x=\frac{\pi}{2}`] when the plate has a constant density of [`\rho = [$rho]`]. Use symmetry to help locate the center of mass when possible. -Center of Mass, as an ordered pair: [_______________]{$ans} [@ AnswerFormatHelp("points") @]* +Center of Mass, as an ordered pair: [_______________]{$ans} [@ helpLink("points") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/02.6/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_6_275.pg b/Contrib/CCCS/CalculusTwo/02.6/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_6_275.pg index af6605cee1..32b8305aed 100644 --- a/Contrib/CCCS/CalculusTwo/02.6/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_6_275.pg +++ b/Contrib/CCCS/CalculusTwo/02.6/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_6_275.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "contextLimitedPoint.pl", @@ -42,25 +42,25 @@ Context("Numeric"); Context("Fraction-NoDecimals"); # setting up the function -$num = random(2, 5, 1); +$num = random(2, 5, 1); if ($num == 2 or $num ==4) { $den = Real(9); } else { $den = Real(4); } -$f = Formula("$num/$den*x^2")->reduce; +$f = Formula("$num/$den*x^2")->reduce; $b = sqrt($den); #upper bound $a = -sqrt($den); #lower bound -#integrating $f to find m +#integrating $f to find m $f_int = Formula("$num/($den*3)*x^3 - $num*x"); -$m_up = $f_int->eval(x=>$b); +$m_up = $f_int->eval(x=>$b); $m_low = $f_int->eval(x=>$a); $m = $m_up - $m_low; #integrating 1/2(f(x)^2 - g(x)^2) to find mx -$mx_int = Formula("($num^2/($den^2*5)*x^5-$num^2*x)/2"); +$mx_int = Formula("($num^2/($den^2*5)*x^5-$num^2*x)/2"); $mx_up = $mx_int->eval(x=>$b); $mx_low = $mx_int->eval(x=>$a); $mx = $mx_up - $mx_low; @@ -79,7 +79,7 @@ BEGIN_PGML Draw the region bounded by [`y=[$f]`] and [`y=[$num]`], then compute the center of mass for the region assuming the region has a constant density. Use symmetry to help locate the center of mass when possible. -Center of Mass, as an ordered pair: [_______________]{$ans} [@ AnswerFormatHelp("points") @]* +Center of Mass, as an ordered pair: [_______________]{$ans} [@ helpLink("points") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/02.6/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_6_279.pg b/Contrib/CCCS/CalculusTwo/02.6/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_6_279.pg index 9c55537cc3..eec4f255c2 100644 --- a/Contrib/CCCS/CalculusTwo/02.6/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_6_279.pg +++ b/Contrib/CCCS/CalculusTwo/02.6/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_6_279.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "contextLimitedPoint.pl", @@ -42,21 +42,21 @@ Context("Numeric"); Context("Fraction-NoDecimals"); # setting up the function -$c = random(1, 5, 1); -$f_up = Formula("$c*x^2")->reduce; +$c = random(1, 5, 1); +$f_up = Formula("$c*x^2")->reduce; $f_low = Formula("$c*x^4")->reduce; $b = Real(1); #upper bound $a = Real(0); #lower bound -#integrating $f_up - $f_low to find m +#integrating $f_up - $f_low to find m $f_int = Formula("$c/3*x^3 - $c/5*x^5"); -$m_up = $f_int->eval(x=>$b); +$m_up = $f_int->eval(x=>$b); $m_low = $f_int->eval(x=>$a); $m = $m_up - $m_low; #integrating 1/2(f(x)^2 - g(x)^2) to find mx -$mx_int = Formula("($c^2/5*x^5-$c^2/9*x^9)/2"); +$mx_int = Formula("($c^2/5*x^5-$c^2/9*x^9)/2"); $mx_up = $mx_int->eval(x=>$b); $mx_low = $mx_int->eval(x=>$a); $mx = $mx_up - $mx_low; @@ -78,7 +78,7 @@ BEGIN_PGML Draw the region between [`y=[$f_up]`] and [`y=[$f_low]`] in the first quadrant, then compute the center of mass of the region assuming the region has constant density. Use symmetry to help locate the center of mass when possible. -Center of Mass, as an ordered pair: [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +Center of Mass, as an ordered pair: [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/02.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_7_296.pg b/Contrib/CCCS/CalculusTwo/02.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_7_296.pg index 5d2ab36304..96af8328e5 100644 --- a/Contrib/CCCS/CalculusTwo/02.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_7_296.pg +++ b/Contrib/CCCS/CalculusTwo/02.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_7_296.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "PGcourse.pl", @@ -48,7 +48,7 @@ parser::Assignment->Function("f"); # derivative $a = random(2, 6, 1); #coefficent on x -$f = Formula("$a*x+1")->reduce; +$f = Formula("$a*x+1")->reduce; @@ -63,7 +63,7 @@ BEGIN_PGML Find the derivative, [`\frac{dy}{dx}`], for [`y=\ln([$f])`] -[`\frac{dy}{dx}`]= [_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`\frac{dy}{dx}`]= [_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/02.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_7_297.pg b/Contrib/CCCS/CalculusTwo/02.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_7_297.pg index 86f4688b6d..10b25db9ea 100644 --- a/Contrib/CCCS/CalculusTwo/02.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_7_297.pg +++ b/Contrib/CCCS/CalculusTwo/02.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_7_297.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "PGcourse.pl", @@ -49,7 +49,7 @@ parser::Assignment->Function("f"); $a = random(1, 6, 1); #coefficient on the function # -$ans = Formula("-$a/(x*ln(x)^2)"); +$ans = Formula("-$a/(x*ln(x)^2)"); ########################### # Main text @@ -59,7 +59,7 @@ BEGIN_PGML Find the derivative, [`\frac{dy}{dx}`], for [`y=\frac{[$a]}{\ln(x)}`] -[`\frac{dy}{dx}`]= [_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`\frac{dy}{dx}`]= [_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/02.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_7_300.pg b/Contrib/CCCS/CalculusTwo/02.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_7_300.pg index 7cfe6b7cac..80d468385f 100644 --- a/Contrib/CCCS/CalculusTwo/02.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_7_300.pg +++ b/Contrib/CCCS/CalculusTwo/02.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_7_300.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserAssignment.pl", @@ -36,7 +36,7 @@ parser::Assignment->Allow; parser::Assignment->Function("f"); $a = random(4, 6, 1); #coefficient on x -$f = Formula("$a*x"); #denominator +$f = Formula("$a*x"); #denominator #derivative @@ -51,7 +51,7 @@ Find the derivative, [``\frac{dy}{dx}``], for [``y=\frac{\ln(x)}{[$f]}``] -[``\frac{dy}{dx}``]= [_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[``\frac{dy}{dx}``]= [_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/02.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_7_302.pg b/Contrib/CCCS/CalculusTwo/02.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_7_302.pg index 9d2d8fed9c..9572d556c4 100644 --- a/Contrib/CCCS/CalculusTwo/02.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_7_302.pg +++ b/Contrib/CCCS/CalculusTwo/02.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_7_302.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserAssignment.pl", @@ -41,7 +41,7 @@ parser::Assignment->Function("f"); $b = random(2, 10, 1); #base -#derivative +#derivative $ans = Formula("1/(x*ln($b))"); ########################### @@ -53,7 +53,7 @@ Find the derivative, [`\frac{dy}{dx}`], for [`y=\log_{[$b]}(x)`] -[`\frac{dy}{dx}`]= [_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`\frac{dy}{dx}`]= [_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/02.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_7_304.pg b/Contrib/CCCS/CalculusTwo/02.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_7_304.pg index b1ed065b2a..217082057a 100644 --- a/Contrib/CCCS/CalculusTwo/02.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_7_304.pg +++ b/Contrib/CCCS/CalculusTwo/02.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_7_304.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserAssignment.pl", @@ -40,7 +40,7 @@ parser::Assignment->Function("f"); $b = random(1, 6, 1); #coefficient on x $f = Formula("$b*x")->reduce; -#derivative +#derivative $ans = Formula("1/(x*ln($b*x))")->reduce; ########################### @@ -52,7 +52,7 @@ Find the derivative, [`\frac{dy}{dx}`], for [`y=\ln(\ln([$f]))`] -[`\frac{dy}{dx}=`] [_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`\frac{dy}{dx}=`] [_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/02.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_7_306.pg b/Contrib/CCCS/CalculusTwo/02.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_7_306.pg index cbc2eb359f..b3fba8561d 100644 --- a/Contrib/CCCS/CalculusTwo/02.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_7_306.pg +++ b/Contrib/CCCS/CalculusTwo/02.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_7_306.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserAssignment.pl", @@ -40,11 +40,11 @@ parser::Assignment->Function("f"); $b = random(2, 6, 1); #coefficient on x $p = random(2, 8, 1); #power -$f = Formula("($b*x)^$p")->reduce; +$f = Formula("($b*x)^$p")->reduce; -#derivative +#derivative $ans = Formula("$p/x"); ########################### @@ -56,7 +56,7 @@ Find the derivative, [`\frac{dy}{dx}`], for [`y=\ln([$f])`] -[`\frac{dy}{dx}=`] [_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`\frac{dy}{dx}=`] [_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/02.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_7_308.pg b/Contrib/CCCS/CalculusTwo/02.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_7_308.pg index 0c39818503..133d3dc1ac 100644 --- a/Contrib/CCCS/CalculusTwo/02.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_7_308.pg +++ b/Contrib/CCCS/CalculusTwo/02.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_7_308.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserAssignment.pl", @@ -53,7 +53,7 @@ Find the derivative, [`\frac{dy}{dx}`], for [`y=\ln(\tan([$f]))`] -[`\frac{dy}{dx}=`] [_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`\frac{dy}{dx}=`] [_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/02.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_7_311.pg b/Contrib/CCCS/CalculusTwo/02.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_7_311.pg index 4858ee64a6..15a539ddca 100644 --- a/Contrib/CCCS/CalculusTwo/02.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_7_311.pg +++ b/Contrib/CCCS/CalculusTwo/02.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_7_311.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "PGcourse.pl" @@ -41,9 +41,9 @@ Context()->variables->add(y=>"Real"); Context("Fraction-NoDecimals"); -$b = random(2, 6, 1); #upper bound +$b = random(2, 6, 1); #upper bound $c = random(2, 6, 1); #constant -$f = Formula("$c+2*x")->reduce; +$f = Formula("$c+2*x")->reduce; $f_int = Formula("1/2*ln($c+2*x)"); #integrated $f2_up = $f_int ->eval(x=>$b); #f_int eval at upper bound $f2_low = $f_int ->eval(x=>Real(0)); #f_int eval at lower bound @@ -59,7 +59,7 @@ BEGIN_PGML Evaluate the definite integral. [` \displaystyle \int_{0}^{[$b]} \frac{dx}{[$f]}`]. Enter only exact values. -[` \displaystyle \int_{0}^{[$b]} \frac{dx}{[$f]}=`] [_______________] [@ AnswerFormatHelp("numbers") @]* +[` \displaystyle \int_{0}^{[$b]} \frac{dx}{[$f]}=`] [_______________] [@ helpLink("numbers") @]* @@ -68,11 +68,11 @@ END_PGML ############################ ANS($answer->cmp()->withPostFilter( - sub { - my $ans = shift; - $ans->{ans_message} = "You should enter exact values only. Use fractions and 'ln' where needed, not decimals." + sub { + my $ans = shift; + $ans->{ans_message} = "You should enter exact values only. Use fractions and 'ln' where needed, not decimals." if $ans->{ans_message} eq "You are only allowed to enter fractions, not decimal numbers"; - return $ans; + return $ans; } )); diff --git a/Contrib/CCCS/CalculusTwo/02.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_7_315.pg b/Contrib/CCCS/CalculusTwo/02.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_7_315.pg index c0825f90c0..3455ded8f3 100644 --- a/Contrib/CCCS/CalculusTwo/02.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_7_315.pg +++ b/Contrib/CCCS/CalculusTwo/02.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_7_315.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "PGcourse.pl" @@ -42,7 +42,7 @@ Context()->variables->add(y=>"Real"); Context("Fraction-NoDecimals"); $b = Real(e); #upper bound -$c = random(1, 3, 1); #coefficient on x +$c = random(1, 3, 1); #coefficient on x $f = Formula("$c*x")->reduce; $f_int = Formula("-1/($c*ln(x))"); #integrated $f2_up = $f_int ->eval(x=>$b); #f_int eval at upper bound @@ -59,8 +59,8 @@ BEGIN_PGML Evaluate the definite integral [` \displaystyle \int_{2}^{e} \frac{dx}{[$f](\ln(x))^2}`]. Enter only exact values. - -[` \displaystyle \int_{2}^{e} \frac{dx}{[$f](\ln(x))^2}=`] [_______________] [@ AnswerFormatHelp("numbers") @]* + +[` \displaystyle \int_{2}^{e} \frac{dx}{[$f](\ln(x))^2}=`] [_______________] [@ helpLink("numbers") @]* END_PGML @@ -68,11 +68,11 @@ END_PGML ############################ ANS($answer->cmp()->withPostFilter( - sub { - my $ans = shift; - $ans->{ans_message} = "You should enter exact values only. Use fractions and 'ln' where needed, not decimals." + sub { + my $ans = shift; + $ans->{ans_message} = "You should enter exact values only. Use fractions and 'ln' where needed, not decimals." if $ans->{ans_message} eq "You are only allowed to enter fractions, not decimal numbers"; - return $ans; + return $ans; } )); diff --git a/Contrib/CCCS/CalculusTwo/02.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_7_318.pg b/Contrib/CCCS/CalculusTwo/02.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_7_318.pg index 85d7fd2035..54b418e9b8 100644 --- a/Contrib/CCCS/CalculusTwo/02.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_7_318.pg +++ b/Contrib/CCCS/CalculusTwo/02.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_7_318.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -41,7 +41,7 @@ Context("Numeric"); Context()->variables->add(y=>"Real"); $c = random(2, 6, 1); #coefficient on x -$f = Formula("$c*x")->reduce; +$f = Formula("$c*x")->reduce; $F=FormulaUpToConstant("1/$c*ln(sin($c*x))+C")->reduce; @@ -54,7 +54,7 @@ BEGIN_PGML Find the indefinite integral [`\displaystyle \int \cot([$f])dx`]. -[`\displaystyle \int \cot([$f])dx=`] [_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`\displaystyle \int \cot([$f])dx=`] [_______________]{$ans} [@ helpLink("formulas") @]* Use a capital "C" for any needed constant in your answer. diff --git a/Contrib/CCCS/CalculusTwo/02.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_7_322.pg b/Contrib/CCCS/CalculusTwo/02.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_7_322.pg index 5c9e289719..db61f8b253 100644 --- a/Contrib/CCCS/CalculusTwo/02.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_7_322.pg +++ b/Contrib/CCCS/CalculusTwo/02.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_7_322.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserAssignment.pl", @@ -52,11 +52,11 @@ if ($b == 0) { BEGIN_PGML -Find the derivative, [`\frac{dy}{dx}`], for [`y=e^{[$f]}`] by differentiating [`\ln(y)`]. +Find the derivative, [`\frac{dy}{dx}`], for [`y=e^{[$f]}`] by differentiating [`\ln(y)`]. -[`\frac{dy}{dx}=`] [_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`\frac{dy}{dx}=`] [_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/02.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_7_326.pg b/Contrib/CCCS/CalculusTwo/02.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_7_326.pg index dbd850b2dc..69465857a1 100644 --- a/Contrib/CCCS/CalculusTwo/02.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_7_326.pg +++ b/Contrib/CCCS/CalculusTwo/02.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_7_326.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserAssignment.pl", @@ -47,11 +47,11 @@ $ans = Formula("$c*e*x^(e*x)*(ln(x)+1)"); BEGIN_PGML -Find the derivative, [`\frac{dy}{dx}`], for [`y=[$f]`] by differentiating [`\ln(y)`]. +Find the derivative, [`\frac{dy}{dx}`], for [`y=[$f]`] by differentiating [`\ln(y)`]. -[`\frac{dy}{dx}=`] [_________________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`\frac{dy}{dx}=`] [_________________________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/02.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_7_328.pg b/Contrib/CCCS/CalculusTwo/02.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_7_328.pg index 75497d07d6..500c4522bd 100644 --- a/Contrib/CCCS/CalculusTwo/02.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_7_328.pg +++ b/Contrib/CCCS/CalculusTwo/02.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_7_328.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "PGcourse.pl" @@ -50,11 +50,11 @@ $ans = Real(0); BEGIN_PGML -Find the derivative, [`\frac{dy}{dx}`], for [`y=x^{-1/\ln(x)}`] by differentiating [`\ln(y)`]. +Find the derivative, [`\frac{dy}{dx}`], for [`y=x^{-1/\ln(x)}`] by differentiating [`\ln(y)`]. -[`\frac{dy}{dx}=`] [_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`\frac{dy}{dx}=`] [_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/02.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_7_332.pg b/Contrib/CCCS/CalculusTwo/02.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_7_332.pg index 798d6e78b6..4fb41d3307 100644 --- a/Contrib/CCCS/CalculusTwo/02.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_7_332.pg +++ b/Contrib/CCCS/CalculusTwo/02.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_7_332.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserAssignment.pl", @@ -38,7 +38,7 @@ parser::Assignment->Function("f"); $a = random(1,5,1); $b= random(1,5,1); $den = Formula("$b*t")->reduce; -$ans = Formula("-1/($b*x)"); +$ans = Formula("-1/($b*x)"); ########################### # Main text @@ -48,7 +48,7 @@ BEGIN_PGML Evaluate [`\displaystyle \frac{d}{dx}\int_{x}^{[$a]} \frac{dt}{[$den]}`]. -[`\displaystyle \frac{d}{dx}\int_{x}^{[$a]} \frac{dt}{[$den]}=`][_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`\displaystyle \frac{d}{dx}\int_{x}^{[$a]} \frac{dt}{[$den]}=`][_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/02.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_7_334.pg b/Contrib/CCCS/CalculusTwo/02.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_7_334.pg index 605ae6b377..17d971e13f 100644 --- a/Contrib/CCCS/CalculusTwo/02.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_7_334.pg +++ b/Contrib/CCCS/CalculusTwo/02.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_7_334.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserAssignment.pl", @@ -43,9 +43,9 @@ $ans = Formula("sec(x)"); BEGIN_PGML Evaluate [`\frac{d}{dx}\left(\ln(\sec(x)+\tan(x))\right)`] . - -[`\frac{d}{dx}\left(\ln(\sec(x)+\tan(x))\right)=`][_______________________]{$ans} [@ AnswerFormatHelp("formulas") @]* + +[`\frac{d}{dx}\left(\ln(\sec(x)+\tan(x))\right)=`][_______________________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_107 b/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_107 index e26eba72e4..3766399020 100644 --- a/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_107 +++ b/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_107 @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -49,12 +49,12 @@ BEGIN_PGML What is the volume of the Bundt cake that comes from rotating [`y=[$f]`] around the [`y`]-axis from [`x=0`] to [`x=\pi`]? ->>[@ image("Bundt.jpg", - width=>603, - height=>277) +>>[@ image("Bundt.jpg", + width=>603, + height=>277) @]*<< -Volume = [_______________]{$ans} units cubed. [@ AnswerFormatHelp("numbers") @]* +Volume = [_______________]{$ans} units cubed. [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_107.pg b/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_107.pg index 547396444a..31a6e9ea24 100644 --- a/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_107.pg +++ b/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_2_2_107.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -49,12 +49,12 @@ BEGIN_PGML What is the volume of the Bundt cake that comes from rotating [`y=[$f]`] around the [`y`]-axis from [`x=0`] to [`x=\pi`]? ->>[@ image("Bundt.jpg", - width=>603, - height=>277) +>>[@ image("Bundt.jpg", + width=>603, + height=>277) @]*<< -Volume = [_______________]{$ans} units cubed. [@ AnswerFormatHelp("numbers") @]* +Volume = [_______________]{$ans} units cubed. [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_1_10.pg b/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_1_10.pg index 392c537985..efe9e929cd 100644 --- a/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_1_10.pg +++ b/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_1_10.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -41,7 +41,7 @@ Context("Numeric"); Context()->variables->add(y=>"Real"); $a = random(1, 5, 1); #coefficient on x -$f = Formula("$a*x")->reduce; +$f = Formula("$a*x")->reduce; $F=FormulaUpToConstant("x^2*e^($f)/$a - 2*x*e^($f)/($a**2) + 2*e^($f)/($a**3)+C")->reduce; @@ -54,7 +54,7 @@ BEGIN_PGML Find the indefinite integral [`\displaystyle \int x^2 e^{[$f]} dx`]. -[`\displaystyle \int x^2 e^{[$f]} dx=`] [____________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`\displaystyle \int x^2 e^{[$f]} dx=`] [____________________]{$ans} [@ helpLink("formulas") @]* Use a capital "C" for any needed constant in your answer. diff --git a/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_1_13.pg b/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_1_13.pg index 5a54d67635..bbb0d86035 100644 --- a/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_1_13.pg +++ b/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_1_13.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -41,7 +41,7 @@ Context("Numeric"); Context()->variables->add(y=>"Real"); $a = random(2, 6, 1); #coefficient on x -$f = Formula("-$a*x")->reduce; +$f = Formula("-$a*x")->reduce; $F=FormulaUpToConstant("-1/$a*x*e^(-$a*x) -1/($a**2) e^(-$a*x)+C")->reduce; @@ -54,7 +54,7 @@ BEGIN_PGML Find the indefinite integral [`\displaystyle \int x e^{[$f]} dx`]. -[`\displaystyle \int x e^{[$f]} dx=`] [_______________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`\displaystyle \int x e^{[$f]} dx=`] [_______________________]{$ans} [@ helpLink("formulas") @]* Use a capital "C" for any needed constant in your answer. diff --git a/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_1_16.pg b/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_1_16.pg index 3740c80249..435b05db56 100644 --- a/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_1_16.pg +++ b/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_1_16.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -40,9 +40,9 @@ $showPartialCorrectAnswers = 1; Context("Numeric"); Context()->variables->add(y=>"Real"); -$a = random(2, 6, 1); -$b = random(2, 6, 1); -$f = Formula("x**$a*ln($b*x)")->reduce; +$a = random(2, 6, 1); +$b = random(2, 6, 1); +$f = Formula("x**$a*ln($b*x)")->reduce; $F=FormulaUpToConstant("1/($a+1)*x^($a+1)*ln($b*x) - 1/(($a+1)^2)*x^($a+1) +C")->reduce; @@ -55,7 +55,7 @@ BEGIN_PGML Find the indefinite integral [`\displaystyle \int [$f] dx`]. - [`\displaystyle \int [$f] dx=`] [______________________]{$ans} [@ AnswerFormatHelp("formulas") @]* + [`\displaystyle \int [$f] dx=`] [______________________]{$ans} [@ helpLink("formulas") @]* Use a capital "C" for any needed constant in your answer. diff --git a/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_1_2.pg b/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_1_2.pg index 1a9d640c72..75050cd918 100644 --- a/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_1_2.pg +++ b/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_1_2.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "PGcourse.pl", @@ -46,7 +46,7 @@ parser::Assignment->Allow; parser::Assignment->Function("f"); $a = random(2, 6, 1); #exponent on x -$f = Formula("x^$a*ln(x)")->reduce; +$f = Formula("x^$a*ln(x)")->reduce; $ans = Formula("ln(x)"); @@ -60,7 +60,7 @@ Use the guidelines in this section to choose [`u`] that should be used in integr [`\displaystyle \int [$f] dx`] -[`u=`] [_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`u=`] [_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_1_20.pg b/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_1_20.pg index 7db2b93178..d6f8c86c29 100644 --- a/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_1_20.pg +++ b/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_1_20.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -41,7 +41,7 @@ Context("Numeric"); Context()->variables->add(y=>"Real"); $a = random(2, 6, 1); #coefficient on x -$f = Formula("$a*x")->reduce; +$f = Formula("$a*x")->reduce; $F=FormulaUpToConstant("$a/($a**2+1)e^($a*x)cos(x)+1/($a**2+1)e^($a*x)sin(x)+C")->reduce; @@ -54,7 +54,7 @@ BEGIN_PGML Find the indefinite integral [`\displaystyle \int e^{[$f]} \cos(x) dx`]. -[`\displaystyle \int e^{[$f]} \cos(x) dx=`] [______________________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`\displaystyle \int e^{[$f]} \cos(x) dx=`] [______________________________]{$ans} [@ helpLink("formulas") @]* Use a capital "C" for any needed constant in your answer. diff --git a/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_1_22.pg b/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_1_22.pg index 654f9a3037..a99cc266a9 100644 --- a/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_1_22.pg +++ b/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_1_22.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -44,7 +44,7 @@ $a = random(1, 6, 1); #coefficient on x $b = random(1,5,1); #coefficient on function $f = Formula(" $b*x^2/e^($a*x)")->reduce; - + $F=FormulaUpToConstant("-$b*x^2/$a*e^(-$a*x) - 2*$b*x/$a**2*e^(-$a*x) - 2*$b/($a**3)*e^(-$a*x)+C")->reduce; @@ -57,7 +57,7 @@ BEGIN_PGML Find the indefinite integral [`\displaystyle \int [$f] dx`]. -[`\displaystyle \int [$f] dx=`] [___________________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`\displaystyle \int [$f] dx=`] [___________________________]{$ans} [@ helpLink("formulas") @]* Use a capital "C" for any needed constant in your answer. diff --git a/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_1_25.pg b/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_1_25.pg index 25b14668f1..d3e1bbc789 100644 --- a/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_1_25.pg +++ b/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_1_25.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -41,7 +41,7 @@ Context("Numeric"); Context()->variables->add(y=>"Real"); $a = random(1, 6, 1); #coefficient on x -$f = Formula("$a*x")->reduce; +$f = Formula("$a*x")->reduce; $F=FormulaUpToConstant("x*(ln($a*x))^2 - 2*x*ln($a*x) + 2x +C")->reduce; @@ -54,7 +54,7 @@ BEGIN_PGML Find the indefinite integral [`\displaystyle \int (\ln([$f]))^2 dx`]. -[`\displaystyle \int (\ln([$f]))^2 dx=`] [__________________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`\displaystyle \int (\ln([$f]))^2 dx=`] [__________________________]{$ans} [@ helpLink("formulas") @]* Use a capital "C" for any needed constant in your answer. diff --git a/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_1_26.pg b/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_1_26.pg index 38ab43890c..66fd301465 100644 --- a/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_1_26.pg +++ b/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_1_26.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -41,7 +41,7 @@ Context("Numeric"); Context()->variables->add(y=>"Real"); $a = random(1, 6, 1); #coefficient on x -$f = Formula("$a*x**2")->reduce; +$f = Formula("$a*x**2")->reduce; $F=FormulaUpToConstant("x*ln($a*x^2) - 2*x +C")->reduce; @@ -54,7 +54,7 @@ BEGIN_PGML Find the indefinite integral [`\displaystyle \int \ln([$f]) dx`]. -[`\displaystyle \int \ln([$f]) dx=`] [____________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`\displaystyle \int \ln([$f]) dx=`] [____________________]{$ans} [@ helpLink("formulas") @]* Use a capital "C" for any needed constant in your answer. diff --git a/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_1_30.pg b/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_1_30.pg index 0b1fb1fa1d..8f006dd324 100644 --- a/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_1_30.pg +++ b/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_1_30.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -41,7 +41,7 @@ Context("Numeric"); Context()->variables->add(y=>"Real"); $a = random(1, 6, 1); #coefficient on x -$f = Formula("$a*x")->reduce; +$f = Formula("$a*x")->reduce; $F=FormulaUpToConstant("$a*(1/2*x^2*arctan(x) - x/2 + 1/2*arctan(x)+C)")->reduce; @@ -54,7 +54,7 @@ BEGIN_PGML Find the indefinite integral [`\displaystyle \int [$f] \arctan(x) dx`]. -[`\displaystyle \int [$f] \arctan(x) dx=`] [___________________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`\displaystyle \int [$f] \arctan(x) dx=`] [___________________________]{$ans} [@ helpLink("formulas") @]* Use a capital "C" for any needed constant in your answer. diff --git a/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_1_31.pg b/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_1_31.pg index 453133e460..5fd8822dcb 100644 --- a/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_1_31.pg +++ b/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_1_31.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -40,10 +40,10 @@ $showPartialCorrectAnswers = 1; Context("Numeric"); Context()->variables->add(y=>"Real"); -$a = random(1, 6, 1); +$a = random(1, 6, 1); $b = random(1,6,1); -$f = Formula("$a*x**2sin($b*x)")->reduce; +$f = Formula("$a*x**2sin($b*x)")->reduce; @@ -57,7 +57,7 @@ BEGIN_PGML Find the indefinite integral [`\displaystyle \int [$f] dx`]. -[`\displaystyle \int [$f] dx=`] [________________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`\displaystyle \int [$f] dx=`] [________________________]{$ans} [@ helpLink("formulas") @]* Use a capital "C" for any needed constant in your answer. diff --git a/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_1_36.pg b/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_1_36.pg index 8ee09dcdac..146c31f731 100644 --- a/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_1_36.pg +++ b/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_1_36.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -40,9 +40,9 @@ $showPartialCorrectAnswers = 1; Context("Numeric"); Context()->variables->add(y=>"Real"); -$a = random(1, 5, 1); +$a = random(1, 5, 1); $b = random(1, 5, 1); -$f = Formula("$a*x*sec^2($b*x)")->reduce; +$f = Formula("$a*x*sec^2($b*x)")->reduce; $F=FormulaUpToConstant("$a*(x/$b*tan($b*x)-1/($b**2)ln|sec($b*x)|)+C")->reduce; @@ -55,7 +55,7 @@ BEGIN_PGML Find the indefinite integral [` \displaystyle \int [$f] dx`]. -[` \displaystyle \int [$f] dx=`] [_____________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[` \displaystyle \int [$f] dx=`] [_____________________]{$ans} [@ helpLink("formulas") @]* Use a capital "C" for any needed constant in your answer. diff --git a/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_1_39.pg b/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_1_39.pg index dd13d6f8df..44c72b1fce 100644 --- a/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_1_39.pg +++ b/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_1_39.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "PGcourse.pl" @@ -55,7 +55,7 @@ BEGIN_PGML Compute the definite integral [`\displaystyle \int_{0}^{[$b]} [$f]dx`]. -[`\displaystyle \int_{0}^{[$b]} [$f] dx=`] [________________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`\displaystyle \int_{0}^{[$b]} [$f] dx=`] [________________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_1_4.pg b/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_1_4.pg index de5c0979a0..828064cb3b 100644 --- a/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_1_4.pg +++ b/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_1_4.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "PGcourse.pl", @@ -47,7 +47,7 @@ parser::Assignment->Function("f"); $a = random(2, 6, 1); #exponent on x -$f = Formula("x^$a*arctan(x)")->reduce; +$f = Formula("x^$a*arctan(x)")->reduce; $ans = Formula("arctan(x)"); @@ -61,7 +61,7 @@ Use the guidelines in this section to choose [`u`] that should be used in integr [`\displaystyle \int [$f] dx`] -[`u=`] [_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`u=`] [_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_1_40.pg b/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_1_40.pg index 7c4b2344d5..6f9497bc36 100644 --- a/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_1_40.pg +++ b/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_1_40.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "PGcourse.pl" @@ -54,7 +54,7 @@ BEGIN_PGML Compute the definite integral [`\displaystyle \int_{0}^{[$b2]} e^{[$f]}dx`]. -[`\displaystyle \int_{0}^{[$b2]} e^{[$f]}dx=`] [_____________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`\displaystyle \int_{0}^{[$b2]} e^{[$f]}dx=`] [_____________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_1_45.pg b/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_1_45.pg index 4acfbe3fcf..a4d0828b46 100644 --- a/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_1_45.pg +++ b/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_1_45.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "PGcourse.pl" @@ -52,7 +52,7 @@ BEGIN_PGML Compute the definite integral [`\displaystyle \int_{0}^{\pi} x^2 \sin([$f])dx`]. Enter exact values only. -[`\displaystyle \int_{0}^{\pi} x^2 \sin([$f])dx=`] [_________________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`\displaystyle \int_{0}^{\pi} x^2 \sin([$f])dx=`] [_________________________]{$ans} [@ helpLink("numbers") @]* END_PGML @@ -63,7 +63,7 @@ BEGIN_PGML Compute the definite integral [`\displaystyle \int_{0}^{\pi/[$a2]} x^2 \sin([$f])dx`]. Enter exact values only. -[`\displaystyle \int_{0}^{\pi/[$a2]} x^2 \sin([$f])dx=`] [_________________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`\displaystyle \int_{0}^{\pi/[$a2]} x^2 \sin([$f])dx=`] [_________________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_1_60.pg b/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_1_60.pg index 9ff3eca74b..95602227f6 100644 --- a/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_1_60.pg +++ b/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_1_60.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "PGcourse.pl" @@ -51,7 +51,7 @@ BEGIN_PGML Find the volume of the solid generated by rotating the region bounded by [`y=\sin x`], [`y=0`], [`x=[$a]\pi`], [`x=[$b]\pi`] about the [`y`]-axis. -Volume [`=`] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +Volume [`=`] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_1_61.pg b/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_1_61.pg index 25749dc7c7..7230c2e063 100644 --- a/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_1_61.pg +++ b/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_1_61.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "PGcourse.pl" @@ -48,9 +48,9 @@ $ans = Compute("2*pi*(-$b+1+($b-$a-1)*e^(-$a))"); BEGIN_PGML -Find the volume of the solid generated by rotating the region bounded by [`y=e^{- x}`], [`y=0`], [`x=[$a]`], [`x=0`] about the line [`x=[$b]`]. +Find the volume of the solid generated by rotating the region bounded by [`y=e^{- x}`], [`y=0`], [`x=[$a]`], [`x=0`] about the line [`x=[$b]`]. -Volume [`=`][____________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +Volume [`=`][____________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_1_7.pg b/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_1_7.pg index 5d63fd2ecd..abd2d8dd2a 100644 --- a/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_1_7.pg +++ b/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_1_7.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -41,7 +41,7 @@ Context("Numeric"); Context()->variables->add(y=>"Real"); $a = random(2, 6, 1); #coefficient on x -$f = Formula("$a*x")->reduce; +$f = Formula("$a*x")->reduce; $F=FormulaUpToConstant("x*ln($a*x)-x+C")->reduce; @@ -54,7 +54,7 @@ BEGIN_PGML Find the indefinite integral [`\displaystyle \int \ln([$f]) dx`]. -[`\displaystyle \int \ln([$f]) dx=`] [____________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`\displaystyle \int \ln([$f]) dx=`] [____________________]{$ans} [@ helpLink("formulas") @]* Use a capital "C" for any needed constant in your answer. diff --git a/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_1_8.pg b/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_1_8.pg index ef0846a630..2240d2baf7 100644 --- a/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_1_8.pg +++ b/Contrib/CCCS/CalculusTwo/03.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_1_8.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -40,9 +40,9 @@ $showPartialCorrectAnswers = 1; Context("Numeric"); Context()->variables->add(y=>"Real"); -$a = random(2, 6, 1); -$b = random(2, 6, 1); -$f = Formula("$a*x*cos($b*x)")->reduce; +$a = random(2, 6, 1); +$b = random(2, 6, 1); +$f = Formula("$a*x*cos($b*x)")->reduce; $F=FormulaUpToConstant("$a/($b)*x*sin($b*x)+$a/($b**2)cos($b*x)+C")->reduce; @@ -55,7 +55,7 @@ BEGIN_PGML Find the indefinite integral [`\displaystyle \int [$f] dx`]. -[`\displaystyle \int [$f] dx=`] [____________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`\displaystyle \int [$f] dx=`] [____________________]{$ans} [@ helpLink("formulas") @]* Use a capital "C" for any needed constant in your answer. diff --git a/Contrib/CCCS/CalculusTwo/03.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_2_100.pg b/Contrib/CCCS/CalculusTwo/03.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_2_100.pg index 828e4d76c5..13dcc7ee2e 100644 --- a/Contrib/CCCS/CalculusTwo/03.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_2_100.pg +++ b/Contrib/CCCS/CalculusTwo/03.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_2_100.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -41,7 +41,7 @@ Context("Numeric"); Context()->variables->add(y=>"Real"); $a = random(1, 4, 1); #coefficient on x -$f = Formula("$a*x")->reduce; +$f = Formula("$a*x")->reduce; $F=FormulaUpToConstant("x/8 -(1/(32*$a))*sin (4*$a*x) + C")->reduce; @@ -52,9 +52,9 @@ $ans=$F; BEGIN_PGML -Evaluate [`\displaystyle \int \sin^2 ([$f]) \cos^2 ([$f]) dx`]. +Evaluate [`\displaystyle \int \sin^2 ([$f]) \cos^2 ([$f]) dx`]. - [`\displaystyle \int \sin^2 ([$f]) \cos^2 ([$f]) dx=`][________________________________]{$ans} [@ AnswerFormatHelp("formulas") @]* + [`\displaystyle \int \sin^2 ([$f]) \cos^2 ([$f]) dx=`][________________________________]{$ans} [@ helpLink("formulas") @]* Use a capital "C" for any needed constant in your answer. diff --git a/Contrib/CCCS/CalculusTwo/03.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_2_103.pg b/Contrib/CCCS/CalculusTwo/03.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_2_103.pg index 2909c00d8e..b5496dc593 100644 --- a/Contrib/CCCS/CalculusTwo/03.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_2_103.pg +++ b/Contrib/CCCS/CalculusTwo/03.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_2_103.pg @@ -22,7 +22,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "PGcourse.pl" @@ -49,7 +49,7 @@ BEGIN_PGML Evaluate the definite integral [`\displaystyle \int_{0}^{\pi} [$f] dx`]. Enter exact values only. -[`\displaystyle \int_{0}^{\pi} [$f] dx=`] [________________________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`\displaystyle \int_{0}^{\pi} [$f] dx=`] [________________________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/03.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_2_108.pg b/Contrib/CCCS/CalculusTwo/03.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_2_108.pg index 58661cad68..95536910a6 100644 --- a/Contrib/CCCS/CalculusTwo/03.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_2_108.pg +++ b/Contrib/CCCS/CalculusTwo/03.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_2_108.pg @@ -22,7 +22,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "PGcourse.pl" @@ -52,7 +52,7 @@ BEGIN_PGML Evaluate the definite integral [`\displaystyle \int_{0}^{[$a]\pi} \cos \left([$f]\right) \sin\left([$f]\right) dx`]. Enter exact values only. - [`\displaystyle \int_{0}^{[$a]\pi} \cos \left([$f]\right) \sin\left([$f]\right) dx=`] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* + [`\displaystyle \int_{0}^{[$a]\pi} \cos \left([$f]\right) \sin\left([$f]\right) dx=`] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/03.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_2_110.pg b/Contrib/CCCS/CalculusTwo/03.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_2_110.pg index 34d13aed0a..a6757bcba9 100644 --- a/Contrib/CCCS/CalculusTwo/03.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_2_110.pg +++ b/Contrib/CCCS/CalculusTwo/03.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_2_110.pg @@ -22,7 +22,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "PGcourse.pl" @@ -51,11 +51,11 @@ $ans = Compute("$a*ln(4)"); BEGIN_PGML -Evaluate the definite integral [`\displaystyle \int_{-\pi/3}^{\pi/3} \sqrt{[$f]}\;\; dx`]. Enter exact values only. +Evaluate the definite integral [`\displaystyle \int_{-\pi/3}^{\pi/3} \sqrt{[$f]}\;\; dx`]. Enter exact values only. (Hint: Use symmetry to find only half the integral and then double that answer.) -[`\displaystyle \int_{-\pi/3}^{\pi/3} \sqrt{[$f]}\;\; dx=`] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`\displaystyle \int_{-\pi/3}^{\pi/3} \sqrt{[$f]}\;\; dx=`] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/03.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_2_119.pg b/Contrib/CCCS/CalculusTwo/03.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_2_119.pg index 7bcc5c3a26..5cbcda74f7 100644 --- a/Contrib/CCCS/CalculusTwo/03.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_2_119.pg +++ b/Contrib/CCCS/CalculusTwo/03.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_2_119.pg @@ -22,7 +22,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "PGcourse.pl" @@ -63,7 +63,7 @@ BEGIN_PGML Find the length of the curve [`y=\ln([$f])`], for [`\frac{\pi}{[$a]} \le x \le \frac{\pi}{[$b]}`] -Length = [_______________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +Length = [_______________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/03.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_2_69.pg b/Contrib/CCCS/CalculusTwo/03.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_2_69.pg index 660ab7472f..1e56787dda 100644 --- a/Contrib/CCCS/CalculusTwo/03.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_2_69.pg +++ b/Contrib/CCCS/CalculusTwo/03.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_2_69.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "PGcourse.pl", @@ -56,14 +56,14 @@ BEGIN_PGML Fill in the blank to make a true statement. -[`\cos^2 x + `] [_______________]{$ans} [`= 1`] +[`\cos^2 x + `] [_______________]{$ans} [`= 1`] -[@ AnswerFormatHelp("formulas") @]* +[@ helpLink("formulas") @]* END_PGML -############################ +############################ diff --git a/Contrib/CCCS/CalculusTwo/03.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_2_70.pg b/Contrib/CCCS/CalculusTwo/03.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_2_70.pg index 71933c5574..76c5e72679 100644 --- a/Contrib/CCCS/CalculusTwo/03.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_2_70.pg +++ b/Contrib/CCCS/CalculusTwo/03.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_2_70.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "PGcourse.pl", @@ -55,12 +55,12 @@ BEGIN_PGML Fill in the blank to make a true statement. -[`\sec^2 x - 1=`] [_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`\sec^2 x - 1=`] [_______________]{$ans} [@ helpLink("formulas") @]* END_PGML -############################ +############################ diff --git a/Contrib/CCCS/CalculusTwo/03.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_2_74.pg b/Contrib/CCCS/CalculusTwo/03.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_2_74.pg index 30a4355e95..ff751781bd 100644 --- a/Contrib/CCCS/CalculusTwo/03.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_2_74.pg +++ b/Contrib/CCCS/CalculusTwo/03.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_2_74.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -53,7 +53,7 @@ BEGIN_PGML Evaluate [`\displaystyle \int \sqrt[[$a]]{\cos x} \;\sin x \; dx`] by using the substitution method. - [`\displaystyle \int \sqrt[[$a]]{\cos x} \;\sin x \; dx=`] [________________________________]{$ans} [@ AnswerFormatHelp("formulas") @]* + [`\displaystyle \int \sqrt[[$a]]{\cos x} \;\sin x \; dx=`] [________________________________]{$ans} [@ helpLink("formulas") @]* Use a capital "C" for any needed constant in your answer. diff --git a/Contrib/CCCS/CalculusTwo/03.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_2_76.pg b/Contrib/CCCS/CalculusTwo/03.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_2_76.pg index 0206789de3..2e819129b9 100644 --- a/Contrib/CCCS/CalculusTwo/03.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_2_76.pg +++ b/Contrib/CCCS/CalculusTwo/03.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_2_76.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -55,7 +55,7 @@ BEGIN_PGML Evaluate [`\displaystyle \int \sin^{[$p]}([$f]) \cos ([$f]) dx`]. - [`\displaystyle \int \sin^{[$p]}([$f]) \cos ([$f]) dx = `][________________________________]{$ans} [@ AnswerFormatHelp("formulas") @]* + [`\displaystyle \int \sin^{[$p]}([$f]) \cos ([$f]) dx = `][________________________________]{$ans} [@ helpLink("formulas") @]* Use a capital "C" for any needed constant in your answer. diff --git a/Contrib/CCCS/CalculusTwo/03.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_2_77.pg b/Contrib/CCCS/CalculusTwo/03.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_2_77.pg index 83fbf7456b..97d6395544 100644 --- a/Contrib/CCCS/CalculusTwo/03.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_2_77.pg +++ b/Contrib/CCCS/CalculusTwo/03.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_2_77.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -39,7 +39,7 @@ $showPartialCorrectAnswers = 1; Context("Numeric"); -$a = random(2, 6, 1); +$a = random(2, 6, 1); $F=FormulaUpToConstant("($a/2)*tan^2 (x/$a) + C")->reduce; $ans=$F; @@ -51,7 +51,7 @@ BEGIN_PGML Evaluate [` \displaystyle \int \tan \left(\frac {x}{[$a]}\right) \sec^2 \left(\frac {x}{[$a]}\right) dx`]. - [` \displaystyle \int \tan \left(\frac {x}{[$a]}\right) \sec^2 \left(\frac {x}{[$a]}\right) dx=`] [________________________________]{$ans} [@ AnswerFormatHelp("formulas") @]* + [` \displaystyle \int \tan \left(\frac {x}{[$a]}\right) \sec^2 \left(\frac {x}{[$a]}\right) dx=`] [________________________________]{$ans} [@ helpLink("formulas") @]* Use a capital "C" for any needed constant in your answer. diff --git a/Contrib/CCCS/CalculusTwo/03.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_2_80.pg b/Contrib/CCCS/CalculusTwo/03.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_2_80.pg index 976b337b69..3a0a1fc7f3 100644 --- a/Contrib/CCCS/CalculusTwo/03.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_2_80.pg +++ b/Contrib/CCCS/CalculusTwo/03.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_2_80.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -43,12 +43,12 @@ $c = random(1, 2, 1); #random choice of sine cubed or cosine cubed $a = non_zero_random(-3,3,1); #constant multiple for both choices if($c==1){ -$f = Formula("$a*sin^3(x)")->reduce; +$f = Formula("$a*sin^3(x)")->reduce; $ans = FormulaUpToConstant("$a*(-cos(x)+1/3cos^3(x))+C")->reduce; } else { -$f = Formula("$a*cos^3(x)")->reduce; -$ans = FormulaUpToConstant("$a*(sin(x)-1/3sin^3(x))+C")->reduce; +$f = Formula("$a*cos^3(x)")->reduce; +$ans = FormulaUpToConstant("$a*(sin(x)-1/3sin^3(x))+C")->reduce; } ########################### @@ -56,9 +56,9 @@ $ans = FormulaUpToConstant("$a*(sin(x)-1/3sin^3(x))+C")->reduce; BEGIN_PGML -Evaluate [`\displaystyle \int [$f] dx`]. +Evaluate [`\displaystyle \int [$f] dx`]. - [`\displaystyle \int [$f] dx=`] [________________________________]{$ans} [@ AnswerFormatHelp("formulas") @]* + [`\displaystyle \int [$f] dx=`] [________________________________]{$ans} [@ helpLink("formulas") @]* Use a capital "C" for any needed constant in your answer. diff --git a/Contrib/CCCS/CalculusTwo/03.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_2_83.pg b/Contrib/CCCS/CalculusTwo/03.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_2_83.pg index e99fe770e3..ec84f27bb3 100644 --- a/Contrib/CCCS/CalculusTwo/03.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_2_83.pg +++ b/Contrib/CCCS/CalculusTwo/03.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_2_83.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -41,7 +41,7 @@ Context("Numeric"); $a = random(3, 5, 2); #power of sine function - + if($a==3){ $ans=FormulaUpToConstant("-1/3cos^3 x+1/5cos^5 x + C")->reduce; } @@ -57,9 +57,9 @@ $ans=FormulaUpToConstant("-1/3cos^3 x+2/5cos^5 x -1/7cos^7 x + C")->reduce; BEGIN_PGML -Evaluate [`\displaystyle \int \sin^{[$a]}(x) \cos^2(x)\; dx`]. +Evaluate [`\displaystyle \int \sin^{[$a]}(x) \cos^2(x)\; dx`]. -[`\displaystyle\int \sin^{[$a]}(x) \cos^2(x)\; dx=`] [_________________________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`\displaystyle\int \sin^{[$a]}(x) \cos^2(x)\; dx=`] [_________________________________]{$ans} [@ helpLink("formulas") @]* Use a capital "C" for any needed constant in your answer. diff --git a/Contrib/CCCS/CalculusTwo/03.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_2_84.pg b/Contrib/CCCS/CalculusTwo/03.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_2_84.pg index d1461b1d7f..ae8038f8bd 100644 --- a/Contrib/CCCS/CalculusTwo/03.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_2_84.pg +++ b/Contrib/CCCS/CalculusTwo/03.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_2_84.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -40,9 +40,9 @@ $showPartialCorrectAnswers = 1; Context("Numeric"); Context()->variables->add(y=>"Real"); -$a = random(1, 6, 1); +$a = random(1, 6, 1); $b = random(1, 6, 1); -$f = Formula("$b*sin^3($a*x)*cos^3($a*x)")->reduce; +$f = Formula("$b*sin^3($a*x)*cos^3($a*x)")->reduce; $ans=FormulaUpToConstant("($b/$a)*(1/4sin^4($a*x)-1/6sin^6($a*x)) + C")->reduce; @@ -52,9 +52,9 @@ $ans=FormulaUpToConstant("($b/$a)*(1/4sin^4($a*x)-1/6sin^6($a*x)) + C")->reduce; BEGIN_PGML -Evaluate [`\displaystyle \int [$f] dx`]. +Evaluate [`\displaystyle \int [$f] dx`]. - [`\displaystyle \int [$f] dx=`] [________________________________]{$ans} [@ AnswerFormatHelp("Formulas") @]* + [`\displaystyle \int [$f] dx=`] [________________________________]{$ans} [@ helpLink("Formulas") @]* Use a capital "C" for any needed constant in your answer. diff --git a/Contrib/CCCS/CalculusTwo/03.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_2_87.pg b/Contrib/CCCS/CalculusTwo/03.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_2_87.pg index 610855c81f..b58f196bcc 100644 --- a/Contrib/CCCS/CalculusTwo/03.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_2_87.pg +++ b/Contrib/CCCS/CalculusTwo/03.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_2_87.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -41,7 +41,7 @@ Context("Numeric"); Context()->variables->add(y=>"Real"); $a = random(2, 6, 1); #coefficient on x -$f = Formula("$a*x")->reduce; +$f = Formula("$a*x")->reduce; $F=FormulaUpToConstant("1/$a*sec($f)+ C")->reduce; @@ -52,9 +52,9 @@ $ans=$F; BEGIN_PGML -Evaluate [`\displaystyle \int \frac{\tan([$f])}{\cos([$f])} \; dx`]. +Evaluate [`\displaystyle \int \frac{\tan([$f])}{\cos([$f])} \; dx`]. -[`\displaystyle \int \frac{\tan([$f])}{\cos([$f])} \; dx=`] [________________________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`\displaystyle \int \frac{\tan([$f])}{\cos([$f])} \; dx=`] [________________________________]{$ans} [@ helpLink("formulas") @]* Use a capital "C" for any needed constant in your answer. diff --git a/Contrib/CCCS/CalculusTwo/03.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_2_89.pg b/Contrib/CCCS/CalculusTwo/03.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_2_89.pg index e63ab20e8c..4ebcba67cc 100644 --- a/Contrib/CCCS/CalculusTwo/03.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_2_89.pg +++ b/Contrib/CCCS/CalculusTwo/03.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_2_89.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -41,7 +41,7 @@ Context("Numeric"); Context()->variables->add(y=>"Real"); $a = random(1, 3, 1); #coefficient on x -$f = Formula("$a*x")->reduce; +$f = Formula("$a*x")->reduce; $F=FormulaUpToConstant("1/(2*$a)*sec($a*x)*tan($a*x) - 1/(2*$a)*ln|sec($a*x) + tan($a*x)| + C")->reduce; @@ -54,7 +54,7 @@ BEGIN_PGML Evaluate [`\displaystyle \int \tan^2([$f]) \sec([$f]) \;dx`]. - [`\displaystyle \int \tan^2([$f]) \sec([$f]) \;dx=`] [________________________________]{$ans} [@ AnswerFormatHelp("formulas") @]* + [`\displaystyle \int \tan^2([$f]) \sec([$f]) \;dx=`] [________________________________]{$ans} [@ helpLink("formulas") @]* Use a capital "C" for any needed constant in your answer. diff --git a/Contrib/CCCS/CalculusTwo/03.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_2_90.pg b/Contrib/CCCS/CalculusTwo/03.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_2_90.pg index ea1472b4f5..d6254c3798 100644 --- a/Contrib/CCCS/CalculusTwo/03.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_2_90.pg +++ b/Contrib/CCCS/CalculusTwo/03.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_2_90.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -53,9 +53,9 @@ $ans2=FormulaUpToConstant("(1/$b)*sec^$b(x) + C")->reduce; BEGIN_PGML -(a) Evaluate [`\displaystyle \int \tan(x) \sec^{[$a]}(x) \; dx=`] [________________________________]{$ans1} [@ AnswerFormatHelp("formulas") @]* +(a) Evaluate [`\displaystyle \int \tan(x) \sec^{[$a]}(x) \; dx=`] [________________________________]{$ans1} [@ helpLink("formulas") @]* -(b) Evaluate [`\displaystyle \int \tan(x) \sec^{[$b]}(x) \; dx=`] [________________________________]{$ans2} [@ AnswerFormatHelp("formulas") @]* +(b) Evaluate [`\displaystyle \int \tan(x) \sec^{[$b]}(x) \; dx=`] [________________________________]{$ans2} [@ helpLink("formulas") @]* Use a capital "C" for any needed constant in your answer. diff --git a/Contrib/CCCS/CalculusTwo/03.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_2_99.pg b/Contrib/CCCS/CalculusTwo/03.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_2_99.pg index f28a95310d..2e0ba71fd8 100644 --- a/Contrib/CCCS/CalculusTwo/03.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_2_99.pg +++ b/Contrib/CCCS/CalculusTwo/03.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_2_99.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -42,7 +42,7 @@ Context("Numeric"); $a = random(2, 6, 1); #coefficient on x $b = random(1, 6, 1); #constant multiple -$f = Formula("$b*cos^2($a*x)")->reduce; +$f = Formula("$b*cos^2($a*x)")->reduce; $F=FormulaUpToConstant("$b*(x/2 +1/(4*$a)*sin (2*$a*x)) + C")->reduce; @@ -55,7 +55,7 @@ BEGIN_PGML Evaluate [`\displaystyle \int [$f] dx`]. -[`\displaystyle \int [$f] dx=`] [________________________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`\displaystyle \int [$f] dx=`] [________________________________]{$ans} [@ helpLink("formulas") @]* Use a capital "C" for any needed constant in your answer. diff --git a/Contrib/CCCS/CalculusTwo/03.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_3_126.pg b/Contrib/CCCS/CalculusTwo/03.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_3_126.pg index 29f422d07a..51f1f4e7db 100644 --- a/Contrib/CCCS/CalculusTwo/03.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_3_126.pg +++ b/Contrib/CCCS/CalculusTwo/03.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_3_126.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -53,7 +53,7 @@ Simplify the expression [``[$f1]``] by writing it using a single trigonometric function. Choose the right answer [____________]{$radio} - + END_PGML diff --git a/Contrib/CCCS/CalculusTwo/03.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_3_127.pg b/Contrib/CCCS/CalculusTwo/03.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_3_127.pg index 8e8f7b3121..a99eafd639 100644 --- a/Contrib/CCCS/CalculusTwo/03.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_3_127.pg +++ b/Contrib/CCCS/CalculusTwo/03.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_3_127.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", diff --git a/Contrib/CCCS/CalculusTwo/03.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_3_132.pg b/Contrib/CCCS/CalculusTwo/03.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_3_132.pg index 68df98f520..b813389474 100644 --- a/Contrib/CCCS/CalculusTwo/03.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_3_132.pg +++ b/Contrib/CCCS/CalculusTwo/03.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_3_132.pg @@ -21,8 +21,8 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", -"contextFraction.pl", + +"contextFraction.pl", "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", diff --git a/Contrib/CCCS/CalculusTwo/03.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_3_134.pg b/Contrib/CCCS/CalculusTwo/03.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_3_134.pg index 6f530da8d2..760ca75ced 100644 --- a/Contrib/CCCS/CalculusTwo/03.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_3_134.pg +++ b/Contrib/CCCS/CalculusTwo/03.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_3_134.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserFormulaUpToConstant.pl", @@ -46,7 +46,7 @@ BEGIN_PGML Integrate using the method of trigonometric substitution. Express the final answer in terms of the original variable. -[``\int [$f] dx=``][________________________________]{$ans }[@ AnswerFormatHelp("formulas") @]* +[``\int [$f] dx=``][________________________________]{$ans }[@ helpLink("formulas") @]* Use a capital "C" for any needed constant in your answer. diff --git a/Contrib/CCCS/CalculusTwo/03.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_3_135.pg b/Contrib/CCCS/CalculusTwo/03.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_3_135.pg index 2fa57d7833..ff692f6dd6 100644 --- a/Contrib/CCCS/CalculusTwo/03.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_3_135.pg +++ b/Contrib/CCCS/CalculusTwo/03.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_3_135.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserFormulaUpToConstant.pl", @@ -47,32 +47,32 @@ FormulaUpToConstant("ln(x+sqrt(x**2-$a**2))+C")->with(limits=>[[4,10]]) => "Are Context()->variables->add(a => "Real"); #adding the variable a to the context for the second piece of this problem $fa=Formula("1/sqrt(x^2-a^2)")->reduce(); #answer with test points to include both pieces of the domain to ensure students are marked wrong if they forget the absolute value. -$ans2=FormulaUpToConstant("ln(abs(x+sqrt(x**2-a**2)))+C")->with(limits => [[1,-6],[1,-2]], test_at => [[1,2],[1,6]])->reduce(); +$ans2=FormulaUpToConstant("ln(abs(x+sqrt(x**2-a**2)))+C")->with(limits => [[1,-6],[1,-2]], test_at => [[1,2],[1,6]])->reduce(); #$ans3 is the another form of the correct answer that we need to define because WW is seeing a as a variable but we are asking students to treat a as a constant. -$ans3=FormulaUpToConstant("ln(abs(x/a+sqrt(x**2-a**2)/a))+C")->with(limits => [[1,-6],[1,-2]], test_at => [[1,2],[1,6]])->reduce(); -#test_at => [[1,-2],[1,-6]])->reduce(); +$ans3=FormulaUpToConstant("ln(abs(x/a+sqrt(x**2-a**2)/a))+C")->with(limits => [[1,-6],[1,-2]], test_at => [[1,2],[1,6]])->reduce(); +#test_at => [[1,-2],[1,-6]])->reduce(); #$ans2 = $ans2->cmp()->withPostFilter(AnswerHints( FormulaUpToConstant("ln(x+sqrt(x**2-a**2))+C")->with(limits=>[[1,6],[4,10]]) => "Are you missing an absolute value somewhere?" )); #$ans2->cmp( checker => sub { # my ( $correct, $student, $self ) = @_; # return ($correct == $student || $ans3 == $student); -#}), +#}), ########################### # Main text BEGIN_PGML -Integrate the following using the method of trigonometric substitution. +Integrate the following using the method of trigonometric substitution. Express the final answer in terms of the original variable. -a. [``\int [$f] dx=``][________________________________]{$ans1}[@ AnswerFormatHelp("formulas") @]* +a. [``\int [$f] dx=``][________________________________]{$ans1}[@ helpLink("formulas") @]* b. [``\int [$fa] dx=``][________________________________]{$ans2->cmp( checker => sub { my ( $correct, $student, $self ) = @_; return ($correct == $student || $ans3 == $student); -}), }(for [`a`] being any real number) [@ AnswerFormatHelp("formulas") @]* +}), }(for [`a`] being any real number) [@ helpLink("formulas") @]* Use a capital C for any needed constant in your answer diff --git a/Contrib/CCCS/CalculusTwo/03.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_3_137.pg b/Contrib/CCCS/CalculusTwo/03.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_3_137.pg index 90bbdafaa3..278fe6bf05 100644 --- a/Contrib/CCCS/CalculusTwo/03.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_3_137.pg +++ b/Contrib/CCCS/CalculusTwo/03.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_3_137.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserFormulaUpToConstant.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswers = 1; ########################### # Setup $a=random(1,10); -$f =Formula("1/sqrt(($a)^2+x^2)")->reduce(); +$f =Formula("1/sqrt(($a)^2+x^2)")->reduce(); $ans=FormulaUpToConstant("ln(x+sqrt(($a)^2+x^2))+C")->reduce(); @@ -47,7 +47,7 @@ BEGIN_PGML Integrate using the method of trigonometric substitution. Express the final answer in terms of the original variable. -[``\int [$f] dx=``][________________________________]{$ans }[@ AnswerFormatHelp("formulas") @]* +[``\int [$f] dx=``][________________________________]{$ans }[@ helpLink("formulas") @]* Use a capital C for any needed constant in your answer diff --git a/Contrib/CCCS/CalculusTwo/03.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_3_139.pg b/Contrib/CCCS/CalculusTwo/03.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_3_139.pg index b0c40886c1..990491cf6b 100644 --- a/Contrib/CCCS/CalculusTwo/03.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_3_139.pg +++ b/Contrib/CCCS/CalculusTwo/03.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_3_139.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserFormulaUpToConstant.pl", @@ -48,7 +48,7 @@ BEGIN_PGML Integrate using the method of trigonometric substitution. Express the final answer in terms of the original variable. -[``\int [$f] dx=``][________________________________]{$ans }[@ AnswerFormatHelp("formulas") @]* +[``\int [$f] dx=``][________________________________]{$ans }[@ helpLink("formulas") @]* Use a capital C for any needed constant in your answer diff --git a/Contrib/CCCS/CalculusTwo/03.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_3_146.pg b/Contrib/CCCS/CalculusTwo/03.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_3_146.pg index 7cc613f614..86c198f92c 100644 --- a/Contrib/CCCS/CalculusTwo/03.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_3_146.pg +++ b/Contrib/CCCS/CalculusTwo/03.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_3_146.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserFormulaUpToConstant.pl", @@ -48,7 +48,7 @@ BEGIN_PGML Integrate using the method of trigonometric substitution. Express the final answer in terms of the original variable. -[``\int\frac{1}{([$fun])^{3/2}} dx=``][________________________________]{$ans }[@ AnswerFormatHelp("formulas") @]* +[``\int\frac{1}{([$fun])^{3/2}} dx=``][________________________________]{$ans }[@ helpLink("formulas") @]* Use a capital C for any needed constant in your answer diff --git a/Contrib/CCCS/CalculusTwo/03.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_3_150.pg b/Contrib/CCCS/CalculusTwo/03.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_3_150.pg index 2bc8176311..c0e42eb368 100644 --- a/Contrib/CCCS/CalculusTwo/03.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_3_150.pg +++ b/Contrib/CCCS/CalculusTwo/03.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_3_150.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserFormulaUpToConstant.pl", @@ -48,7 +48,7 @@ BEGIN_PGML Integrate using the method of trigonometric substitution. Express the final answer in terms of the original variable. -[``\int[$f] dx=``][________________________________]{$ans}[@ AnswerFormatHelp("formulas") @]* +[``\int[$f] dx=``][________________________________]{$ans}[@ helpLink("formulas") @]* Use a capital C for any needed constant in your answer diff --git a/Contrib/CCCS/CalculusTwo/03.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_3_153.pg b/Contrib/CCCS/CalculusTwo/03.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_3_153.pg index 2a009952dc..a67ae01596 100644 --- a/Contrib/CCCS/CalculusTwo/03.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_3_153.pg +++ b/Contrib/CCCS/CalculusTwo/03.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_3_153.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserFormulaUpToConstant.pl", @@ -51,7 +51,7 @@ BEGIN_PGML Integrate using the method of trigonometric substitution. -[``\int_{-[$b]}^{[$b]}([$f])^{3/2} dx=``][________________________________]{$ans}[@ AnswerFormatHelp("numbers") @]* +[``\int_{-[$b]}^{[$b]}([$f])^{3/2} dx=``][________________________________]{$ans}[@ helpLink("numbers") @]* Use a capital C for any needed constant in your answer diff --git a/Contrib/CCCS/CalculusTwo/03.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_3_160.pg b/Contrib/CCCS/CalculusTwo/03.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_3_160.pg index 6d6e74039d..6acd5515ae 100644 --- a/Contrib/CCCS/CalculusTwo/03.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_3_160.pg +++ b/Contrib/CCCS/CalculusTwo/03.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_3_160.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserFormulaUpToConstant.pl", @@ -54,7 +54,7 @@ Use the technique of completing the square or the method of partial fractions to [``\int [$f]dx=``][___________________]{$ans->cmp( checker => sub { my ( $correct, $student, $self ) = @_; return ($correct == $student || $ans1 == $student); -}), } [@ AnswerFormatHelp("formulas") @]* +}), } [@ helpLink("formulas") @]* Use a capital C for any needed constant in your answer diff --git a/Contrib/CCCS/CalculusTwo/03.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_3_164.pg b/Contrib/CCCS/CalculusTwo/03.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_3_164.pg index ef91fb7b4e..ea48cd83d4 100644 --- a/Contrib/CCCS/CalculusTwo/03.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_3_164.pg +++ b/Contrib/CCCS/CalculusTwo/03.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_3_164.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserFormulaUpToConstant.pl", @@ -48,7 +48,7 @@ $ans=FormulaUpToConstant("ln(abs(x+$a+sqrt(x^2+2($a)x+$p)))+C")->with(limits => BEGIN_PGML Use the technique of completing the square to evaluate the integral -[``\int [$f]dx=``][________________________________]{$ans }[@ AnswerFormatHelp("formulas") @]* +[``\int [$f]dx=``][________________________________]{$ans }[@ helpLink("formulas") @]* Use a capital C for any needed constant in your answer diff --git a/Contrib/CCCS/CalculusTwo/03.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_3_165.pg b/Contrib/CCCS/CalculusTwo/03.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_3_165.pg index 5fd4571a27..ced55818f6 100644 --- a/Contrib/CCCS/CalculusTwo/03.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_3_165.pg +++ b/Contrib/CCCS/CalculusTwo/03.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_3_165.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserFormulaUpToConstant.pl", @@ -45,7 +45,7 @@ $ans=Formula("pi*($r^2)/2")->reduce(); BEGIN_PGML Evaluate the integral without using calculus -[``\int_{-[$r]}^{[$r]} [$f]dx=``][_____________]{$ans }[@ AnswerFormatHelp("numbers") @]* +[``\int_{-[$r]}^{[$r]} [$f]dx=``][_____________]{$ans }[@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CalculusTwo/03.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_3_172.pg b/Contrib/CCCS/CalculusTwo/03.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_3_172.pg index 9e7184e187..260e64df68 100644 --- a/Contrib/CCCS/CalculusTwo/03.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_3_172.pg +++ b/Contrib/CCCS/CalculusTwo/03.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_3_172.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserFormulaUpToConstant.pl", @@ -46,7 +46,7 @@ $ans=0; BEGIN_PGML Evaluate the integral -[``\int_{-[$b]}^{[$b]} [$f]dx=``][_____________]{$ans }[@ AnswerFormatHelp("numbers") @]* +[``\int_{-[$b]}^{[$b]} [$f]dx=``][_____________]{$ans }[@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CalculusTwo/03.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_3_175.pg b/Contrib/CCCS/CalculusTwo/03.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_3_175.pg index 7ff80b3003..00ddb72c12 100644 --- a/Contrib/CCCS/CalculusTwo/03.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_3_175.pg +++ b/Contrib/CCCS/CalculusTwo/03.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_3_175.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserFormulaUpToConstant.pl", @@ -50,7 +50,7 @@ The region bounded by the graph of [``f(x)=[$f]``], and the x-axis between [`x=[ Find the volume of the solid that is generated. -[``V=``][_____________]{$ans }[@ AnswerFormatHelp("numbers") @]* +[``V=``][_____________]{$ans }[@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CalculusTwo/03.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_3_176.pg b/Contrib/CCCS/CalculusTwo/03.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_3_176.pg index f23c23c879..d4c62a91c8 100644 --- a/Contrib/CCCS/CalculusTwo/03.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_3_176.pg +++ b/Contrib/CCCS/CalculusTwo/03.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_3_176.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserFormulaUpToConstant.pl", @@ -48,7 +48,7 @@ Solve the initial value problem for [`y`] as a function of [`x`]. [``([$f])\frac{dy}{dx}=[$k], \qquad y([$a])=0``] -[``y(x)=``][_____________]{$ans }[@ AnswerFormatHelp("formulas") @]* +[``y(x)=``][_____________]{$ans }[@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/03.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_3_179.pg b/Contrib/CCCS/CalculusTwo/03.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_3_179.pg index 9fdca24017..5443b01e98 100644 --- a/Contrib/CCCS/CalculusTwo/03.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_3_179.pg +++ b/Contrib/CCCS/CalculusTwo/03.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_3_179.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserFormulaUpToConstant.pl", @@ -51,7 +51,7 @@ An oil storage tank can be described as the volume generated by revolving the ar about the x-axis. Find the volume of the tank (in cubic meters). -[``V=``][_____________]{$ans }[@ AnswerFormatHelp("numbers") @]* +[``V=``][_____________]{$ans }[@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CalculusTwo/03.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_4_183.pg b/Contrib/CCCS/CalculusTwo/03.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_4_183.pg index 1b686c59dc..a24cd45f7e 100644 --- a/Contrib/CCCS/CalculusTwo/03.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_4_183.pg +++ b/Contrib/CCCS/CalculusTwo/03.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_4_183.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", diff --git a/Contrib/CCCS/CalculusTwo/03.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_4_184.pg b/Contrib/CCCS/CalculusTwo/03.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_4_184.pg index 6c423babc6..ba5214c71e 100644 --- a/Contrib/CCCS/CalculusTwo/03.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_4_184.pg +++ b/Contrib/CCCS/CalculusTwo/03.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_4_184.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", diff --git a/Contrib/CCCS/CalculusTwo/03.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_4_186.pg b/Contrib/CCCS/CalculusTwo/03.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_4_186.pg index e507aff497..a68ec78808 100644 --- a/Contrib/CCCS/CalculusTwo/03.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_4_186.pg +++ b/Contrib/CCCS/CalculusTwo/03.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_4_186.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -47,7 +47,7 @@ $den2=Formula("x^2+$a")->reduce; $f1=Formula("($a*x^2)/(x^2+$b)")->reduce(); $f2=Formula("$a*$b+$b/(x^2+$a)")->reduce(); $f3=Formula("$b-($a*$b)/(x^2+$b)")->reduce(); -$f4=Formula("$a-($a*$b)/(x^2+$b)")->reduce(); +$f4=Formula("$a-($a*$b)/(x^2+$b)")->reduce(); $radio=RadioButtons([["\(\frac{$num1}{$den1}\)","\($num2 + \frac{$b}{$den2}\)","\($b-\frac{$num2}{$den1}\)","\($a+\frac{$num2}{$den1}\)"]],"\($a+\frac{$num2}{$den1}\)"); @@ -57,7 +57,7 @@ $radio=RadioButtons([["\(\frac{$num1}{$den1}\)","\($num2 + \frac{$b}{$den2}\)"," BEGIN_PGML -Express the rational function [``[$f1]``] as a sum or difference of +Express the rational function [``[$f1]``] as a sum or difference of two simpler rational expressions. Select the right answer below. [_____________]{$radio } diff --git a/Contrib/CCCS/CalculusTwo/03.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_4_188.pg b/Contrib/CCCS/CalculusTwo/03.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_4_188.pg index f358294fac..8cbba6fbe3 100644 --- a/Contrib/CCCS/CalculusTwo/03.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_4_188.pg +++ b/Contrib/CCCS/CalculusTwo/03.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_4_188.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -58,7 +58,7 @@ $radio=RadioButtons([["\(\frac{1}{$den1}\)","\(\frac{1}{$den2}+\frac{1}{$den3}\) BEGIN_PGML -Express the rational function [``[$f1]``] as a sum or difference of +Express the rational function [``[$f1]``] as a sum or difference of two simpler rational expressions. Choose the right answer [_____________]{$radio } diff --git a/Contrib/CCCS/CalculusTwo/03.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_4_194.pg b/Contrib/CCCS/CalculusTwo/03.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_4_194.pg index 26a1fd09ac..1ecc76bdf3 100644 --- a/Contrib/CCCS/CalculusTwo/03.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_4_194.pg +++ b/Contrib/CCCS/CalculusTwo/03.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_4_194.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -51,7 +51,7 @@ $radio=RadioButtons(["\(\frac{6}{$den1}+\frac{$B}{$den2}\)","\(\frac{$a}{$den1}+ BEGIN_PGML -Express the rational function [``[$f1]``] as a sum or difference of +Express the rational function [``[$f1]``] as a sum or difference of two simpler rational expressions. Choose the right answer [__________]{$radio} diff --git a/Contrib/CCCS/CalculusTwo/03.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_4_201.pg b/Contrib/CCCS/CalculusTwo/03.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_4_201.pg index 8a26f89f7c..93dcb9ca4a 100644 --- a/Contrib/CCCS/CalculusTwo/03.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_4_201.pg +++ b/Contrib/CCCS/CalculusTwo/03.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_4_201.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserFormulaUpToConstant.pl", @@ -53,7 +53,7 @@ BEGIN_PGML Use the method of partial fractions to evaluate the following integral. -[``\int [$f]dx=``][____________________________________________]{$ans }[@ AnswerFormatHelp("formulas") @]* +[``\int [$f]dx=``][____________________________________________]{$ans }[@ helpLink("formulas") @]* Use a capital C for any needed constant in your answer diff --git a/Contrib/CCCS/CalculusTwo/03.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_4_203.pg b/Contrib/CCCS/CalculusTwo/03.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_4_203.pg index 3f894e9c40..83978f084f 100644 --- a/Contrib/CCCS/CalculusTwo/03.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_4_203.pg +++ b/Contrib/CCCS/CalculusTwo/03.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_4_203.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserFormulaUpToConstant.pl", @@ -49,7 +49,7 @@ BEGIN_PGML Use the method of partial fractions to evaluate the following integral. -[``\int [$f]dx=``][________________________________]{$ans }[@ AnswerFormatHelp("formulas") @]* +[``\int [$f]dx=``][________________________________]{$ans }[@ helpLink("formulas") @]* Use a capital C for any needed constant in your answer diff --git a/Contrib/CCCS/CalculusTwo/03.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_4_205.pg b/Contrib/CCCS/CalculusTwo/03.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_4_205.pg index fe9a7cc965..c20269baf4 100644 --- a/Contrib/CCCS/CalculusTwo/03.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_4_205.pg +++ b/Contrib/CCCS/CalculusTwo/03.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_4_205.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserFormulaUpToConstant.pl", @@ -50,7 +50,7 @@ BEGIN_PGML Use the method of partial fractions to evaluate the following integral. -[``\int [$f]dx=``][_____________________________________]{$ans }[@ AnswerFormatHelp("formulas") @]* +[``\int [$f]dx=``][_____________________________________]{$ans }[@ helpLink("formulas") @]* Use a capital C for any needed constant in your answer diff --git a/Contrib/CCCS/CalculusTwo/03.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_4_209.pg b/Contrib/CCCS/CalculusTwo/03.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_4_209.pg index a278af3c6a..27061af5d3 100644 --- a/Contrib/CCCS/CalculusTwo/03.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_4_209.pg +++ b/Contrib/CCCS/CalculusTwo/03.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_4_209.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserFormulaUpToConstant.pl", @@ -48,9 +48,9 @@ $ans=FormulaUpToConstant("x-($b+$h)/(($a)x)+[$b/$a-($b+$h)/($a^2)]ln(abs(x))+[$b BEGIN_PGML -Evaluate the following integral. +Evaluate the following integral. -[``\int [$f]dx=``][___________________________________________]{$ans }[@ AnswerFormatHelp("formulas") @]* +[``\int [$f]dx=``][___________________________________________]{$ans }[@ helpLink("formulas") @]* Use a capital C for any needed constant in your answer diff --git a/Contrib/CCCS/CalculusTwo/03.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_4_211.pg b/Contrib/CCCS/CalculusTwo/03.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_4_211.pg index cb70d796a4..29361bd64b 100644 --- a/Contrib/CCCS/CalculusTwo/03.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_4_211.pg +++ b/Contrib/CCCS/CalculusTwo/03.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_4_211.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserFormulaUpToConstant.pl", @@ -46,9 +46,9 @@ $ans=FormulaUpToConstant("(1/2)ln(abs(x^2+$b^2))-ln(abs(x-$a))+C")->reduce(); BEGIN_PGML -Evaluate the following integral. +Evaluate the following integral. -[``\int [$f]dx=``][___________________________________]{$ans }[@ AnswerFormatHelp("formulas") @]* +[``\int [$f]dx=``][___________________________________]{$ans }[@ helpLink("formulas") @]* Use a capital C for any needed constant in your answer diff --git a/Contrib/CCCS/CalculusTwo/03.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_4_216.pg b/Contrib/CCCS/CalculusTwo/03.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_4_216.pg index d6b3879074..50cdc41b38 100644 --- a/Contrib/CCCS/CalculusTwo/03.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_4_216.pg +++ b/Contrib/CCCS/CalculusTwo/03.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_4_216.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserFormulaUpToConstant.pl", @@ -45,9 +45,9 @@ $ans=FormulaUpToConstant("(1/$a)ln(abs(tan($a*x/2)))+C")->reduce(); BEGIN_PGML -Evaluate the following integral. +Evaluate the following integral. -[``\int [$f]dx=``][_______________________________________]{$ans }[@ AnswerFormatHelp("formulas") @]* +[``\int [$f]dx=``][_______________________________________]{$ans }[@ helpLink("formulas") @]* Use a capital C for any needed constant in your answer diff --git a/Contrib/CCCS/CalculusTwo/03.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_4_221.pg b/Contrib/CCCS/CalculusTwo/03.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_4_221.pg index 0774ad0fe7..b2a9bd1cc0 100644 --- a/Contrib/CCCS/CalculusTwo/03.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_4_221.pg +++ b/Contrib/CCCS/CalculusTwo/03.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_4_221.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserFormulaUpToConstant.pl", @@ -44,9 +44,9 @@ $ans=FormulaUpToConstant("2(sqrt(x+$a))-(2*$b)ln(abs($b+sqrt(x+$a)))+C")->reduce BEGIN_PGML -Use substitution to convert the given integral to an integral of a rational function.Then use partial fractions to evaluate the integral. +Use substitution to convert the given integral to an integral of a rational function.Then use partial fractions to evaluate the integral. -[``\int [$f]dx=``][______________________________________]{$ans }[@ AnswerFormatHelp("formulas") @]* +[``\int [$f]dx=``][______________________________________]{$ans }[@ helpLink("formulas") @]* Use a capital C for any needed constant in your answer diff --git a/Contrib/CCCS/CalculusTwo/03.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_4_232.pg b/Contrib/CCCS/CalculusTwo/03.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_4_232.pg index 036101f833..3ef48bba4c 100644 --- a/Contrib/CCCS/CalculusTwo/03.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_4_232.pg +++ b/Contrib/CCCS/CalculusTwo/03.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_4_232.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserFormulaUpToConstant.pl", @@ -52,7 +52,7 @@ The velocity of a particle moving along a line is a function of time given by Find the distance, [`d`], that the particle has traveled after [`t=[$t0]`] sec. -[``d=``][_____________]{$ans } meters. [@ AnswerFormatHelp("numbers") @]* +[``d=``][_____________]{$ans } meters. [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CalculusTwo/03.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_4_237.pg b/Contrib/CCCS/CalculusTwo/03.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_4_237.pg index 0bc49417a7..841d738e99 100644 --- a/Contrib/CCCS/CalculusTwo/03.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_4_237.pg +++ b/Contrib/CCCS/CalculusTwo/03.4/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_4_237.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -53,7 +53,7 @@ Find the volume generated by revolving the area bounded by [``y=[$f]``], [`x=[$x1]`], [`x=[$x2]`] and [`y=0`] around the [`y`]-axis. -[``V=``][_____________]{$ans }[@ AnswerFormatHelp("numbers") @]* +[``V=``][_____________]{$ans }[@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CalculusTwo/03.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_5_244.pg b/Contrib/CCCS/CalculusTwo/03.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_5_244.pg index bc405e023e..c8fb9aa41d 100644 --- a/Contrib/CCCS/CalculusTwo/03.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_5_244.pg +++ b/Contrib/CCCS/CalculusTwo/03.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_5_244.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserFormulaUpToConstant.pl", @@ -50,9 +50,9 @@ $ans=FormulaUpToConstant("2*$c/(3*$b**2)($b*x-2*$a)($a+$b*x)**(1/2)+C")->reduce; BEGIN_PGML Evaluate the integral using a table of integrals. -[``\int [$f]dx=``][______________________________]{$ans}[@ AnswerFormatHelp("formulas") @]* +[``\int [$f]dx=``][______________________________]{$ans}[@ helpLink("formulas") @]* ->>[@ image("table1.png", width=>364, height=>518) +>>[@ image("table1.png", width=>364, height=>518) @]*<< Use a capital C for any needed constant in your answer. diff --git a/Contrib/CCCS/CalculusTwo/03.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_5_247.pg b/Contrib/CCCS/CalculusTwo/03.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_5_247.pg index 5b5d179be1..cdff2cccdb 100644 --- a/Contrib/CCCS/CalculusTwo/03.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_5_247.pg +++ b/Contrib/CCCS/CalculusTwo/03.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_5_247.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserFormulaUpToConstant.pl", @@ -50,9 +50,9 @@ $ans=FormulaUpToConstant("$a*ln|(x+$b/2)+sqrt(x**2+$b*x)|+C")->reduce; BEGIN_PGML Evaluate the integral. You may need to use substitution, complete the square, or some other method first before you can use the given table of integrals. -[``\int [$f]dx=``][______________________________]{$ans}[@ AnswerFormatHelp("formulas") @]* +[``\int [$f]dx=``][______________________________]{$ans}[@ helpLink("formulas") @]* ->>[@ image("table2.png", width=>446, height=>390) +>>[@ image("table2.png", width=>446, height=>390) @]*<< Use a capital C for any needed constant in your answer. diff --git a/Contrib/CCCS/CalculusTwo/03.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_5_263.pg b/Contrib/CCCS/CalculusTwo/03.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_5_263.pg index d0d624641f..a00dece085 100644 --- a/Contrib/CCCS/CalculusTwo/03.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_5_263.pg +++ b/Contrib/CCCS/CalculusTwo/03.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_5_263.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -52,7 +52,7 @@ $ans=Formula("ln[abs($P/$Q)]/($r)-ln[abs(($r-$b)/$a)]/($r)")->reduce(); BEGIN_PGML Evaluate the integral. Tables of integrals can be used to check the answer. -[``\int_{0}^{t}[$f] dx=``][_______________________]{$ans }[@ AnswerFormatHelp("formulas") @]* +[``\int_{0}^{t}[$f] dx=``][_______________________]{$ans }[@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/03.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_5_268.pg b/Contrib/CCCS/CalculusTwo/03.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_5_268.pg index fa623e8319..30407f478b 100644 --- a/Contrib/CCCS/CalculusTwo/03.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_5_268.pg +++ b/Contrib/CCCS/CalculusTwo/03.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_5_268.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserFormulaUpToConstant.pl", @@ -48,9 +48,9 @@ $ans=FormulaUpToConstant("x^2*sqrt(x^4-($a^2))/4-($a^2)*ln(sqrt(x^4-($a^2))+x^2) BEGIN_PGML Evaluate the integral. You may need to use substitution, complete the square, or some other method first before you can use the given table of integrals. -[``\int [$f]dx=``][______________________________]{$ans }[@ AnswerFormatHelp("formulas") @]* +[``\int [$f]dx=``][______________________________]{$ans }[@ helpLink("formulas") @]* ->>[@ image("table4.png", width=>458, height=>369) +>>[@ image("table4.png", width=>458, height=>369) @]*<< diff --git a/Contrib/CCCS/CalculusTwo/03.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_5_275.pg b/Contrib/CCCS/CalculusTwo/03.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_5_275.pg index a1d540ce73..60ce62ca01 100644 --- a/Contrib/CCCS/CalculusTwo/03.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_5_275.pg +++ b/Contrib/CCCS/CalculusTwo/03.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_5_275.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,7 +48,7 @@ $ans=Formula("$a(sqrt(($k)^2+($b)^2)-abs($b))")->reduce(); BEGIN_PGML Evaluate the integral -[``\int_{0}^{[$k]}[$f] dx=``][_____________]{$ans }[@ AnswerFormatHelp("numbers") @]* +[``\int_{0}^{[$k]}[$f] dx=``][_____________]{$ans }[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/03.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_5_287.pg b/Contrib/CCCS/CalculusTwo/03.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_5_287.pg index e92899b2bb..7ca285510e 100644 --- a/Contrib/CCCS/CalculusTwo/03.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_5_287.pg +++ b/Contrib/CCCS/CalculusTwo/03.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_5_287.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserFormulaUpToConstant.pl", @@ -48,7 +48,7 @@ $ans=FormulaUpToConstant("-(1/$a)(cot($a*x)+csc($a*x))+C")->reduce(); BEGIN_PGML Evaluate the following integral. -[``\int [$f] dx=``][_____________]{$ans }[@ AnswerFormatHelp("formulas") @]* +[``\int [$f] dx=``][_____________]{$ans }[@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/03.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_5_298.pg b/Contrib/CCCS/CalculusTwo/03.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_5_298.pg index ecddc20670..3824c49748 100644 --- a/Contrib/CCCS/CalculusTwo/03.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_5_298.pg +++ b/Contrib/CCCS/CalculusTwo/03.5/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_5_298.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,9 +48,9 @@ $ans=Formula("$h*sqrt(1+($h^2))/2+ln($h+sqrt(1+($h^2)))/2")->reduce(); BEGIN_PGML Evaluate the arc length [`L`] of the curve [`y=[$f]`] over the interval [`[$I]`]. The table of integrals given may be useful. -[``L=``][_____________]{$ans }[@ AnswerFormatHelp("numbers") @]* +[``L=``][_____________]{$ans }[@ helpLink("numbers") @]* ->>[@ image("table3.png", width=>465, height=>406) +>>[@ image("table3.png", width=>465, height=>406) @]*<< END_PGML diff --git a/Contrib/CCCS/CalculusTwo/03.6/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_6_300.pg b/Contrib/CCCS/CalculusTwo/03.6/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_6_300.pg index ab6484a017..604c08640f 100644 --- a/Contrib/CCCS/CalculusTwo/03.6/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_6_300.pg +++ b/Contrib/CCCS/CalculusTwo/03.6/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_6_300.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserFormulaUpToConstant.pl", @@ -68,7 +68,7 @@ else{$ans=$T10;} BEGIN_PGML Approximate the integral using the trapezoid rule with [`n=[$k]`] subintervals. -[``\int_{0}^{[$b]} [$f] dx\approx``][_________________]{$ans }[@ AnswerFormatHelp("numbers") @]* +[``\int_{0}^{[$b]} [$f] dx\approx``][_________________]{$ans }[@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CalculusTwo/03.6/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_6_301.pg b/Contrib/CCCS/CalculusTwo/03.6/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_6_301.pg index decace0cd3..576849d201 100644 --- a/Contrib/CCCS/CalculusTwo/03.6/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_6_301.pg +++ b/Contrib/CCCS/CalculusTwo/03.6/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_6_301.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserFormulaUpToConstant.pl", @@ -64,7 +64,7 @@ else{$ans=$S8;} BEGIN_PGML Approximate the integral using the Simpson rule with [`n=[$n]`] subintervals. -[``\int_{0}^{[$b]} [$f] dx\approx``][_____________]{$ans }[@ AnswerFormatHelp("numbers") @]* +[``\int_{0}^{[$b]} [$f] dx\approx``][_____________]{$ans }[@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CalculusTwo/03.6/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_6_304.pg b/Contrib/CCCS/CalculusTwo/03.6/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_6_304.pg index 3b691a627a..fac58126c7 100644 --- a/Contrib/CCCS/CalculusTwo/03.6/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_6_304.pg +++ b/Contrib/CCCS/CalculusTwo/03.6/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_6_304.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserFormulaUpToConstant.pl", @@ -49,7 +49,7 @@ $ans=Formula("($h)[($a+$h/2)^2+(($n^2)-1)($k^2)/(12)]")->reduce(); BEGIN_PGML Approximate the integral using the midpoint rule with [`n=[$n]`] subintervals. -[``\int_{[$a]}^{[$b]}[$f] dx \approx``][_____________]{$ans}[@ AnswerFormatHelp("numbers") @]* +[``\int_{[$a]}^{[$b]}[$f] dx \approx``][_____________]{$ans}[@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CalculusTwo/03.6/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_6_306.pg b/Contrib/CCCS/CalculusTwo/03.6/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_6_306.pg index 571d1f3c63..ed8d1b03b7 100644 --- a/Contrib/CCCS/CalculusTwo/03.6/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_6_306.pg +++ b/Contrib/CCCS/CalculusTwo/03.6/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_6_306.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserFormulaUpToConstant.pl", @@ -49,12 +49,12 @@ $ans2=Formula("($a^2+$b^2)($k/2)+(1-1/$n)($h)[($a+$h/2)^2+($h^2)($n-2)/(12*$n)]" BEGIN_PGML (a) Find the exact value the integral -[``\int_{[$a]}^{[$b]} [$f]\,dx=``][__________]{$ans1}[@ AnswerFormatHelp("numbers") @]* +[``\int_{[$a]}^{[$b]} [$f]\,dx=``][__________]{$ans1}[@ helpLink("numbers") @]* (b) Approximate the integral using the trapezoid rule with [`n=[$n]`] subintervals. -[``\int_{[$a]}^{[$b]}[$f] dx \approx``][_____________]{$ans2}[@ AnswerFormatHelp("numbers") @]* +[``\int_{[$a]}^{[$b]}[$f] dx \approx``][_____________]{$ans2}[@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CalculusTwo/03.6/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_6_308.pg b/Contrib/CCCS/CalculusTwo/03.6/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_6_308.pg index cabfda1a18..d0d09a259e 100644 --- a/Contrib/CCCS/CalculusTwo/03.6/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_6_308.pg +++ b/Contrib/CCCS/CalculusTwo/03.6/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_6_308.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserFormulaUpToConstant.pl", @@ -64,7 +64,7 @@ BEGIN_PGML Approximate the integral using the trapezoid rule with [`n=[$n]`] subintervals. -[``\int_{0}^{[$b]}[$f] dx \approx``][_____________]{$ans}[@ AnswerFormatHelp("numbers") @]* +[``\int_{0}^{[$b]}[$f] dx \approx``][_____________]{$ans}[@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CalculusTwo/03.6/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_6_309.pg b/Contrib/CCCS/CalculusTwo/03.6/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_6_309.pg index 746ff472c1..5a8d9d2f5f 100644 --- a/Contrib/CCCS/CalculusTwo/03.6/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_6_309.pg +++ b/Contrib/CCCS/CalculusTwo/03.6/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_6_309.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserFormulaUpToConstant.pl", @@ -68,7 +68,7 @@ else{$ans=$S7;} BEGIN_PGML Approximate the integral using the Simpson rule with [`n=[$n]`] subintervals. -[``\int_{0}^{[$b]} [$f] dx\approx``][_____________]{$ans }[@ AnswerFormatHelp("numbers") @]* +[``\int_{0}^{[$b]} [$f] dx\approx``][_____________]{$ans }[@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CalculusTwo/03.6/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_6_317.pg b/Contrib/CCCS/CalculusTwo/03.6/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_6_317.pg index 03074f17ff..952961b39c 100644 --- a/Contrib/CCCS/CalculusTwo/03.6/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_6_317.pg +++ b/Contrib/CCCS/CalculusTwo/03.6/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_6_317.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserFormulaUpToConstant.pl", @@ -78,7 +78,7 @@ else{$ans=$M10;} BEGIN_PGML Approximate the integral using the midpoint rule with [`n=[$n]`] subintervals. -[``\int_{[$a]}^{[$b]}[$f] dx \approx``][_____________]{$ans}[@ AnswerFormatHelp("numbers") @]* +[``\int_{[$a]}^{[$b]}[$f] dx \approx``][_____________]{$ans}[@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CalculusTwo/03.6/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_6_329.pg b/Contrib/CCCS/CalculusTwo/03.6/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_6_329.pg index d3e33b1906..bc0fce2d43 100644 --- a/Contrib/CCCS/CalculusTwo/03.6/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_6_329.pg +++ b/Contrib/CCCS/CalculusTwo/03.6/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_6_329.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserFormulaUpToConstant.pl", @@ -57,7 +57,7 @@ Find the minimum number, [`n`], of subintervals needed to approximate the integr with an error less than [`[$err]`] using the trapezoid rule. -[``n \geq``][_____________]{$ans} (enter a whole number only) [@ AnswerFormatHelp("numbers") @]* +[``n \geq``][_____________]{$ans} (enter a whole number only) [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/03.6/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_6_330.pg b/Contrib/CCCS/CalculusTwo/03.6/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_6_330.pg index 6b2a46444f..178e94572f 100644 --- a/Contrib/CCCS/CalculusTwo/03.6/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_6_330.pg +++ b/Contrib/CCCS/CalculusTwo/03.6/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_6_330.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserFormulaUpToConstant.pl", @@ -59,7 +59,7 @@ will approximate with an error of no more than [`[$err]`] . -[``n \geq``][_____________]{$ans} (enter a whole number only) [@ AnswerFormatHelp("numbers") @]* +[``n \geq``][_____________]{$ans} (enter a whole number only) [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/03.6/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_6_342.pg b/Contrib/CCCS/CalculusTwo/03.6/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_6_342.pg index 2f27618b7c..92041ddd62 100644 --- a/Contrib/CCCS/CalculusTwo/03.6/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_6_342.pg +++ b/Contrib/CCCS/CalculusTwo/03.6/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_6_342.pg @@ -24,7 +24,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGessaymacros.pl", diff --git a/Contrib/CCCS/CalculusTwo/03.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_7_348.pg b/Contrib/CCCS/CalculusTwo/03.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_7_348.pg index a61d3f3633..084c8a3c53 100644 --- a/Contrib/CCCS/CalculusTwo/03.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_7_348.pg +++ b/Contrib/CCCS/CalculusTwo/03.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_7_348.pg @@ -25,7 +25,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -59,7 +59,7 @@ divergent, enter "divergent" END_PGML -ANS($ans->cmp()->withPostFilter(AnswerHints( +ANS($ans->cmp()->withPostFilter(AnswerHints( String("divergent") => "Try again. It looks like this one is actually convergent.", ))); diff --git a/Contrib/CCCS/CalculusTwo/03.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_7_349.pg b/Contrib/CCCS/CalculusTwo/03.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_7_349.pg index 995dc88d21..9b1c792ba6 100644 --- a/Contrib/CCCS/CalculusTwo/03.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_7_349.pg +++ b/Contrib/CCCS/CalculusTwo/03.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_7_349.pg @@ -25,7 +25,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -59,7 +59,7 @@ divergent, enter "divergent" END_PGML -ANS($ans->cmp()->withPostFilter(AnswerHints( +ANS($ans->cmp()->withPostFilter(AnswerHints( String("divergent") => "Try again. It looks like this one is actually convergent.", ))); diff --git a/Contrib/CCCS/CalculusTwo/03.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_7_350.pg b/Contrib/CCCS/CalculusTwo/03.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_7_350.pg index 778aa52a25..da2b40e8c6 100644 --- a/Contrib/CCCS/CalculusTwo/03.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_7_350.pg +++ b/Contrib/CCCS/CalculusTwo/03.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_7_350.pg @@ -24,7 +24,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); diff --git a/Contrib/CCCS/CalculusTwo/03.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_7_358.pg b/Contrib/CCCS/CalculusTwo/03.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_7_358.pg index 1c0e8dd383..c0095723e9 100644 --- a/Contrib/CCCS/CalculusTwo/03.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_7_358.pg +++ b/Contrib/CCCS/CalculusTwo/03.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_7_358.pg @@ -25,7 +25,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -59,7 +59,7 @@ Determine whether the improper integral converges or diverges. If possible, dete END_PGML -ANS($answer->cmp()->withPostFilter(AnswerHints( +ANS($answer->cmp()->withPostFilter(AnswerHints( String("divergent") => "Try again. It looks like this one is actually convergent.", ))); diff --git a/Contrib/CCCS/CalculusTwo/03.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_7_363.pg b/Contrib/CCCS/CalculusTwo/03.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_7_363.pg index 85d482c7bc..cee06843b9 100644 --- a/Contrib/CCCS/CalculusTwo/03.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_7_363.pg +++ b/Contrib/CCCS/CalculusTwo/03.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_7_363.pg @@ -24,7 +24,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); diff --git a/Contrib/CCCS/CalculusTwo/03.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_7_367.pg b/Contrib/CCCS/CalculusTwo/03.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_7_367.pg index 344ee5e642..ce5abec54e 100644 --- a/Contrib/CCCS/CalculusTwo/03.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_7_367.pg +++ b/Contrib/CCCS/CalculusTwo/03.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_7_367.pg @@ -24,7 +24,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); diff --git a/Contrib/CCCS/CalculusTwo/03.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_7_371.pg b/Contrib/CCCS/CalculusTwo/03.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_7_371.pg index b896f718fa..c82fcce0bd 100644 --- a/Contrib/CCCS/CalculusTwo/03.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_7_371.pg +++ b/Contrib/CCCS/CalculusTwo/03.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_7_371.pg @@ -24,7 +24,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); diff --git a/Contrib/CCCS/CalculusTwo/03.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_7_372.pg b/Contrib/CCCS/CalculusTwo/03.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_7_372.pg index 7614b25970..1fcefa20c6 100644 --- a/Contrib/CCCS/CalculusTwo/03.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_7_372.pg +++ b/Contrib/CCCS/CalculusTwo/03.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_7_372.pg @@ -24,7 +24,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserPopUp.pl", diff --git a/Contrib/CCCS/CalculusTwo/03.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_7_375.pg b/Contrib/CCCS/CalculusTwo/03.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_7_375.pg index 078d37fa1b..93eb392da3 100644 --- a/Contrib/CCCS/CalculusTwo/03.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_7_375.pg +++ b/Contrib/CCCS/CalculusTwo/03.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_7_375.pg @@ -24,7 +24,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); diff --git a/Contrib/CCCS/CalculusTwo/03.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_7_378.pg b/Contrib/CCCS/CalculusTwo/03.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_7_378.pg index 3756e98eef..79a98eb434 100644 --- a/Contrib/CCCS/CalculusTwo/03.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_7_378.pg +++ b/Contrib/CCCS/CalculusTwo/03.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_7_378.pg @@ -24,7 +24,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); diff --git a/Contrib/CCCS/CalculusTwo/03.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_7_381.pg b/Contrib/CCCS/CalculusTwo/03.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_7_381.pg index a57995dabe..98aff389ab 100644 --- a/Contrib/CCCS/CalculusTwo/03.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_7_381.pg +++ b/Contrib/CCCS/CalculusTwo/03.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_7_381.pg @@ -24,7 +24,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); diff --git a/Contrib/CCCS/CalculusTwo/03.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_7_386.pg b/Contrib/CCCS/CalculusTwo/03.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_7_386.pg index 390fa24972..f653002830 100644 --- a/Contrib/CCCS/CalculusTwo/03.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_7_386.pg +++ b/Contrib/CCCS/CalculusTwo/03.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_7_386.pg @@ -24,7 +24,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); diff --git a/Contrib/CCCS/CalculusTwo/03.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_7_387.pg b/Contrib/CCCS/CalculusTwo/03.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_7_387.pg index bf7c00032d..a552e549cf 100644 --- a/Contrib/CCCS/CalculusTwo/03.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_7_387.pg +++ b/Contrib/CCCS/CalculusTwo/03.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_7_387.pg @@ -24,7 +24,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); diff --git a/Contrib/CCCS/CalculusTwo/03.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_7_398.pg b/Contrib/CCCS/CalculusTwo/03.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_7_398.pg index 59b0617a1d..f9c4339448 100644 --- a/Contrib/CCCS/CalculusTwo/03.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_7_398.pg +++ b/Contrib/CCCS/CalculusTwo/03.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_7_398.pg @@ -24,7 +24,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -56,7 +56,7 @@ BEGIN_PGML Find the volume [``V``] of the solid generated by revolving about the x-axis the region under the curve [``y=[$f]``] from [``x=[$a]``] to [``x=\infty``]. -[``V=``][_____________]{$ans }[@ AnswerFormatHelp("numbers") @]* +[``V=``][_____________]{$ans }[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/03.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_7_399.pg b/Contrib/CCCS/CalculusTwo/03.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_7_399.pg index 659cb5f7eb..61a4382728 100644 --- a/Contrib/CCCS/CalculusTwo/03.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_7_399.pg +++ b/Contrib/CCCS/CalculusTwo/03.7/CCD_CCCS_Openstax_Calc2_C2-2016-002_3_7_399.pg @@ -24,7 +24,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -56,7 +56,7 @@ BEGIN_PGML Find the volume [``V``] of the solid generated by revolving about the [`y`]-axis the region under the curve [``y=[$f]``] in the first quadrant. -[``V=``][_____________]{$ans }[@ AnswerFormatHelp("numbers") @]* +[``V=``][_____________]{$ans }[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/04.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_1_1.pg b/Contrib/CCCS/CalculusTwo/04.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_1_1.pg index 6a844c144a..00a713cdf0 100644 --- a/Contrib/CCCS/CalculusTwo/04.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_1_1.pg +++ b/Contrib/CCCS/CalculusTwo/04.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_1_1.pg @@ -24,7 +24,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); diff --git a/Contrib/CCCS/CalculusTwo/04.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_1_11.pg b/Contrib/CCCS/CalculusTwo/04.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_1_11.pg index e32c403234..13ce382fba 100644 --- a/Contrib/CCCS/CalculusTwo/04.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_1_11.pg +++ b/Contrib/CCCS/CalculusTwo/04.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_1_11.pg @@ -24,7 +24,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -59,7 +59,7 @@ BEGIN_PGML Verify that the function [``y=[$f]``] is a solution to the differential equation [``y'=[$g]``]. -[``y'=``][_____________]{$ans }[@ AnswerFormatHelp("formulas") @]* +[``y'=``][_____________]{$ans }[@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/04.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_1_13.pg b/Contrib/CCCS/CalculusTwo/04.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_1_13.pg index bcc5f2d6de..e3df903a95 100644 --- a/Contrib/CCCS/CalculusTwo/04.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_1_13.pg +++ b/Contrib/CCCS/CalculusTwo/04.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_1_13.pg @@ -24,7 +24,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -59,7 +59,7 @@ BEGIN_PGML Verify that the function [``y=[$f]``] is a solution to the differential equation [``xy'=[$k]``]. -[``y'=``][_____________]{$ans }[@ AnswerFormatHelp("formulas") @]* +[``y'=``][_____________]{$ans }[@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/04.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_1_15.pg b/Contrib/CCCS/CalculusTwo/04.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_1_15.pg index 75176da969..a25c20d8a8 100644 --- a/Contrib/CCCS/CalculusTwo/04.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_1_15.pg +++ b/Contrib/CCCS/CalculusTwo/04.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_1_15.pg @@ -24,7 +24,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -62,7 +62,7 @@ BEGIN_PGML Verify that the function [``y=[$f]``] is a solution to the differential equation [``y'=[$g]``]. -[``y'=``][_____________]{$ans}[@ AnswerFormatHelp("formulas") @]* +[``y'=``][_____________]{$ans}[@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/04.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_1_17.pg b/Contrib/CCCS/CalculusTwo/04.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_1_17.pg index 98c88d3353..2d3c2f88b1 100644 --- a/Contrib/CCCS/CalculusTwo/04.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_1_17.pg +++ b/Contrib/CCCS/CalculusTwo/04.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_1_17.pg @@ -24,7 +24,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -59,7 +59,7 @@ BEGIN_PGML Verify that the function [``y=[$f]``] is a solution to the differential equation [``y'=[$g]``]. -[``y'=``][_____________]{$ans }[@ AnswerFormatHelp("formulas") @]* +[``y'=``][_____________]{$ans }[@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/04.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_1_19.pg b/Contrib/CCCS/CalculusTwo/04.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_1_19.pg index 091f13785d..30d3dc0907 100644 --- a/Contrib/CCCS/CalculusTwo/04.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_1_19.pg +++ b/Contrib/CCCS/CalculusTwo/04.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_1_19.pg @@ -24,7 +24,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -59,7 +59,7 @@ BEGIN_PGML Find the particular solution to the differential equation [``y'=[$f]``] that passes through the point [``([$p],[$q])``]. -[``y=``][_____________]{$ans }[@ AnswerFormatHelp("formulas") @]* +[``y=``][_____________]{$ans }[@ helpLink("formulas") @]* diff --git a/Contrib/CCCS/CalculusTwo/04.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_1_21.pg b/Contrib/CCCS/CalculusTwo/04.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_1_21.pg index 3ca6fc9547..11bb0a6365 100644 --- a/Contrib/CCCS/CalculusTwo/04.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_1_21.pg +++ b/Contrib/CCCS/CalculusTwo/04.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_1_21.pg @@ -24,7 +24,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -60,7 +60,7 @@ BEGIN_PGML Find the particular solution to the differential equation [``y'=[$f]*y``] that passes through the point [``([$p],[$q])``] given that the general solution is [`` y=[$g]``]. -[``y=``][_____________]{$ans }[@ AnswerFormatHelp("formulas") @]* +[``y=``][_____________]{$ans }[@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/04.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_1_23.pg b/Contrib/CCCS/CalculusTwo/04.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_1_23.pg index 03985a9ad2..3971fcab63 100644 --- a/Contrib/CCCS/CalculusTwo/04.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_1_23.pg +++ b/Contrib/CCCS/CalculusTwo/04.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_1_23.pg @@ -24,7 +24,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -61,7 +61,7 @@ BEGIN_PGML Find the particular solution to the differential equation [``[$f]*y'=[$b]y``] that passes through the point [``([$p],[$q])``] given that the general solution is [``y=[$g]``]. -[``y=``][_____________]{$ans }[@ AnswerFormatHelp("formulas") @]* +[``y=``][_____________]{$ans }[@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/04.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_1_25.pg b/Contrib/CCCS/CalculusTwo/04.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_1_25.pg index 3a89607859..0ee93f5d08 100644 --- a/Contrib/CCCS/CalculusTwo/04.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_1_25.pg +++ b/Contrib/CCCS/CalculusTwo/04.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_1_25.pg @@ -24,7 +24,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -55,7 +55,7 @@ BEGIN_PGML Find the particular solution to the differential equation [``\frac{dy}{dt}=\tan(y)``] that passes through the point [``([$p],\pi/2)``] given that the general solution is [``y=\sin^{-1}(e^{t+C})``]. -[``y=``][_________________]{$ans }[@ AnswerFormatHelp("formulas") @]* +[``y=``][_________________]{$ans }[@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/04.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_1_3.pg b/Contrib/CCCS/CalculusTwo/04.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_1_3.pg index 240915f96c..067e176563 100644 --- a/Contrib/CCCS/CalculusTwo/04.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_1_3.pg +++ b/Contrib/CCCS/CalculusTwo/04.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_1_3.pg @@ -24,7 +24,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); diff --git a/Contrib/CCCS/CalculusTwo/04.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_1_30.pg b/Contrib/CCCS/CalculusTwo/04.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_1_30.pg index 15ed2d5073..8c5779b28c 100644 --- a/Contrib/CCCS/CalculusTwo/04.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_1_30.pg +++ b/Contrib/CCCS/CalculusTwo/04.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_1_30.pg @@ -24,7 +24,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserFormulaUpToConstant.pl", @@ -58,7 +58,7 @@ BEGIN_PGML Find the general solution to the differential equation [``y'=[$f]``] . -[``y=``][___________________]{$ans }[@ AnswerFormatHelp("formulas") @]* +[``y=``][___________________]{$ans }[@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/04.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_1_32.pg b/Contrib/CCCS/CalculusTwo/04.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_1_32.pg index 3f0310def0..2a46d01087 100644 --- a/Contrib/CCCS/CalculusTwo/04.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_1_32.pg +++ b/Contrib/CCCS/CalculusTwo/04.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_1_32.pg @@ -24,7 +24,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserFormulaUpToConstant.pl", @@ -60,9 +60,9 @@ BEGIN_PGML Find the general solution to the differential equation [``y'=[$f]``] . -[``y=``][_________________________]{$ans }[@ AnswerFormatHelp("formulas") @]* +[``y=``][_________________________]{$ans }[@ helpLink("formulas") @]* -Use a capital "C" for any needed constant in your answer. +Use a capital "C" for any needed constant in your answer. END_PGML diff --git a/Contrib/CCCS/CalculusTwo/04.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_1_35.pg b/Contrib/CCCS/CalculusTwo/04.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_1_35.pg index c4a1dac654..5f4b79e5c4 100644 --- a/Contrib/CCCS/CalculusTwo/04.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_1_35.pg +++ b/Contrib/CCCS/CalculusTwo/04.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_1_35.pg @@ -24,7 +24,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserFormulaUpToConstant.pl", @@ -57,7 +57,7 @@ BEGIN_PGML Find the general solution to the differential equation [``x'=[$f]``] . -[``x=``][_______________________________]{$ans }[@ AnswerFormatHelp("formulas") @]* +[``x=``][_______________________________]{$ans }[@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/04.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_1_39.pg b/Contrib/CCCS/CalculusTwo/04.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_1_39.pg index 049f12cd95..3ba8b5ef19 100644 --- a/Contrib/CCCS/CalculusTwo/04.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_1_39.pg +++ b/Contrib/CCCS/CalculusTwo/04.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_1_39.pg @@ -25,7 +25,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserPopUp.pl", @@ -54,10 +54,10 @@ $f0=Formula("$a*t")->reduce(); $f1=Formula(" ($a/2)*t^2+$p")->reduce(); $f2=Formula(" ($a/2)*t^2+$q")->reduce(); -$g1=Formula(" ($a/2)*x^2+$p")->reduce(); ### -$g2=Formula(" ($a/2)*x^2+$q")->reduce(); ### -$g3=Formula("-($a/2)*x^2+$p")->reduce(); ### -$g4=Formula("-($a/2)*x^2+$q")->reduce(); ### +$g1=Formula(" ($a/2)*x^2+$p")->reduce(); ### +$g2=Formula(" ($a/2)*x^2+$q")->reduce(); ### +$g3=Formula("-($a/2)*x^2+$p")->reduce(); ### +$g4=Formula("-($a/2)*x^2+$q")->reduce(); ### $gr1 = init_graph(-10,-10,10,10, @@ -84,28 +84,28 @@ grid=>[20,20], size=>[600,600] ); -add_functions($gr1, "$g1 for x in <-10,10>" . +add_functions($gr1, "$g1 for x in <-10,10>" . " using color:blue and weight:2"); -add_functions($gr1, "$g3 for x in <-10,10>" . +add_functions($gr1, "$g3 for x in <-10,10>" . " using color:blue and weight:2"); -add_functions($gr2, "$g2 for x in <-10,10>" . +add_functions($gr2, "$g2 for x in <-10,10>" . " using color:blue and weight:2"); -add_functions($gr2, "$g4 for x in <-10,10>" . +add_functions($gr2, "$g4 for x in <-10,10>" . " using color:blue and weight:2"); -add_functions($gr3, "$g1 for x in <-10,10>" . +add_functions($gr3, "$g1 for x in <-10,10>" . " using color:blue and weight:2"); -add_functions($gr3, "$g2 for x in <-10,10>" . +add_functions($gr3, "$g2 for x in <-10,10>" . " using color:blue and weight:2"); -add_functions($gr4, "$g3 for x in <-10,10>" . +add_functions($gr4, "$g3 for x in <-10,10>" . " using color:blue and weight:2"); -add_functions($gr4, "$g4 for x in <-10,10>" . +add_functions($gr4, "$g4 for x in <-10,10>" . " using color:blue and weight:2"); $popup = PopUp(["?", "A", "B","C","D"], "B"); @@ -115,23 +115,23 @@ $popup = PopUp(["?", "A", "B","C","D"], "B"); BEGIN_PGML -(a) Solve the initial-value problem +(a) Solve the initial-value problem [``\frac{dy}{dt}=[$f0], \qquad y(0)=[$p]``] -[``y=``][_____]{$f1}[@ AnswerFormatHelp("formulas") @]* +[``y=``][_____]{$f1}[@ helpLink("formulas") @]* -(b) Solve the initial-value problem +(b) Solve the initial-value problem [``\frac{dy}{dt}=[$f0], \qquad y(0)=[$q]``] -[``y=``][_____]{$f2}[@ AnswerFormatHelp("formulas") @]* +[``y=``][_____]{$f2}[@ helpLink("formulas") @]* -(c) Graph the two solutions found in (a) and (b). [______]{$popup} +(c) Graph the two solutions found in (a) and (b). [______]{$popup} ->>A. [@ image(insertGraph($gr1), width=>200, height=>200), @]* B. [@ image(insertGraph($gr3), width=>200, height=>200), @]*<< +>>A. [@ image(insertGraph($gr1), width=>200, height=>200), @]* B. [@ image(insertGraph($gr3), width=>200, height=>200), @]*<< >>C. [@ image(insertGraph($gr2), width=>200, height=>200), @]* D. [@ image(insertGraph($gr4), width=>200, height=>200), @]*<< END_PGML diff --git a/Contrib/CCCS/CalculusTwo/04.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_1_42.pg b/Contrib/CCCS/CalculusTwo/04.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_1_42.pg index 08ee2b2d6a..164e557b64 100644 --- a/Contrib/CCCS/CalculusTwo/04.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_1_42.pg +++ b/Contrib/CCCS/CalculusTwo/04.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_1_42.pg @@ -25,7 +25,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserPopUp.pl", @@ -53,10 +53,10 @@ $q=list_random(0.5,1,1.5,2,2.5,3,3.5,4); $f1=Formula(" $a*t+$p")->reduce(); $f2=Formula(" $a*t+$q")->reduce(); -$g1=Formula(" $a*x+$p")->reduce(); ### -$g2=Formula(" $a*x+$q")->reduce(); ### -$g3=Formula("-$a*x+$p")->reduce(); ### -$g4=Formula("-$a*x+$q")->reduce(); ### +$g1=Formula(" $a*x+$p")->reduce(); ### +$g2=Formula(" $a*x+$q")->reduce(); ### +$g3=Formula("-$a*x+$p")->reduce(); ### +$g4=Formula("-$a*x+$q")->reduce(); ### $gr1 = init_graph(-10,-10,10,10, @@ -83,28 +83,28 @@ grid=>[20,20], size=>[600,600] ); -add_functions($gr1, "$g1 for x in <-10,10>" . +add_functions($gr1, "$g1 for x in <-10,10>" . " using color:blue and weight:2"); -add_functions($gr1, "$g3 for x in <-10,10>" . +add_functions($gr1, "$g3 for x in <-10,10>" . " using color:blue and weight:2"); -add_functions($gr2, "$g2 for x in <-10,10>" . +add_functions($gr2, "$g2 for x in <-10,10>" . " using color:blue and weight:2"); -add_functions($gr2, "$g4 for x in <-10,10>" . +add_functions($gr2, "$g4 for x in <-10,10>" . " using color:blue and weight:2"); -add_functions($gr3, "$g1 for x in <-10,10>" . +add_functions($gr3, "$g1 for x in <-10,10>" . " using color:blue and weight:2"); -add_functions($gr3, "$g2 for x in <-10,10>" . +add_functions($gr3, "$g2 for x in <-10,10>" . " using color:blue and weight:2"); -add_functions($gr4, "$g3 for x in <-10,10>" . +add_functions($gr4, "$g3 for x in <-10,10>" . " using color:blue and weight:2"); -add_functions($gr4, "$g4 for x in <-10,10>" . +add_functions($gr4, "$g4 for x in <-10,10>" . " using color:blue and weight:2"); $popup = PopUp(["?", "A", "B","C","D"], "C"); @@ -114,23 +114,23 @@ $popup = PopUp(["?", "A", "B","C","D"], "C"); BEGIN_PGML -(a) Solve the initial-value problem +(a) Solve the initial-value problem [``\frac{dy}{dt}=[$a], \qquad y(0)=[$p]``] -[``y=``][_____]{$f1}[@ AnswerFormatHelp("formulas") @]* +[``y=``][_____]{$f1}[@ helpLink("formulas") @]* -(b) Solve the initial-value problem +(b) Solve the initial-value problem [``\frac{dy}{dt}=[$a], \qquad y(0)=[$q]``] -[``y=``][_____]{$f2}[@ AnswerFormatHelp("formulas") @]* +[``y=``][_____]{$f2}[@ helpLink("formulas") @]* -(c) Graph the two solutions found in (a) and (b). [______]{$popup} +(c) Graph the two solutions found in (a) and (b). [______]{$popup} ->>A. [@ image(insertGraph($gr1), width=>200, height=>200), @]* B. [@ image(insertGraph($gr2), width=>200, height=>200), @]*<< +>>A. [@ image(insertGraph($gr1), width=>200, height=>200), @]* B. [@ image(insertGraph($gr2), width=>200, height=>200), @]*<< >>C. [@ image(insertGraph($gr3), width=>200, height=>200), @]* D. [@ image(insertGraph($gr4), width=>200, height=>200), @]*<< END_PGML diff --git a/Contrib/CCCS/CalculusTwo/04.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_1_47.pg b/Contrib/CCCS/CalculusTwo/04.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_1_47.pg index a78772cf93..89ac343c82 100644 --- a/Contrib/CCCS/CalculusTwo/04.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_1_47.pg +++ b/Contrib/CCCS/CalculusTwo/04.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_1_47.pg @@ -24,7 +24,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserPopUp.pl", @@ -58,17 +58,17 @@ $popup=PopUp(["?","equals to $h","equals to $k"],"equals to $k"); BEGIN_PGML -(a) Solve the initial-value problem. +(a) Solve the initial-value problem. [``\frac{dy}{dt}=[$f], \qquad y_0=[$b]``] -[``y(t)= ``] [_____]{$ans1}[@ AnswerFormatHelp("formulas") @]* +[``y(t)= ``] [_____]{$ans1}[@ helpLink("formulas") @]* (b) The function [`y(t)`] either equals [$h] or equals [$k] at some point, but not both. For what value of [`t`] does this happen? -[`y`][__________]{$popup } at [``t=``][______]{$ans2}[@ AnswerFormatHelp("numbers") @]* +[`y`][__________]{$popup } at [``t=``][______]{$ans2}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/04.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_1_6.pg b/Contrib/CCCS/CalculusTwo/04.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_1_6.pg index ec4efb34b5..43bf176492 100644 --- a/Contrib/CCCS/CalculusTwo/04.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_1_6.pg +++ b/Contrib/CCCS/CalculusTwo/04.1/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_1_6.pg @@ -24,7 +24,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -56,7 +56,7 @@ $ans=$p; BEGIN_PGML -Determine the order, [``n``], of the differential equation +Determine the order, [``n``], of the differential equation [``\frac{dy}{dx}+[$a]\frac{d^{[$p]}y}{dx^{[$p]}}=[$f]``]. diff --git a/Contrib/CCCS/CalculusTwo/04.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_2_66_67_68_69.pg b/Contrib/CCCS/CalculusTwo/04.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_2_66_67_68_69.pg index 00d5cd0943..82452efef9 100644 --- a/Contrib/CCCS/CalculusTwo/04.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_2_66_67_68_69.pg +++ b/Contrib/CCCS/CalculusTwo/04.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_2_66_67_68_69.pg @@ -25,7 +25,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserPopUp.pl", @@ -62,9 +62,9 @@ $fn->rf_arrow_length( sub{ } ); -$g1=Formula("-$p*e**($a*x)")->reduce(); -$g2=Formula("$p*e**($a*x)")->reduce(); -$g3=Formula("-$p*e**(-1*$a*x)")->reduce(); +$g1=Formula("-$p*e**($a*x)")->reduce(); +$g2=Formula("$p*e**($a*x)")->reduce(); +$g3=Formula("-$p*e**(-1*$a*x)")->reduce(); $g4=Formula("$p*e**(-1*$a*x)")->reduce(); @@ -92,16 +92,16 @@ grid=>[16,16], size=>[500,500] ); -add_functions($gr1, "$g1 for x in <-8,8>" . +add_functions($gr1, "$g1 for x in <-8,8>" . " using color:blue and weight:3"); -add_functions($gr2, "$g2 for x in <-8,8>" . +add_functions($gr2, "$g2 for x in <-8,8>" . " using color:blue and weight:3"); -add_functions($gr3, "$g3 for x in <-8,8>" . +add_functions($gr3, "$g3 for x in <-8,8>" . " using color:blue and weight:3"); -add_functions($gr4, "$g4 for x in <-8,8>" . +add_functions($gr4, "$g4 for x in <-8,8>" . " using color:blue and weight:3"); $in=time(); @@ -126,15 +126,15 @@ $popup2 = PopUp(["?", "asymptotically stable", "asymptotically unstable","asympt BEGIN_PGML -Consider the direction field from the differential equation [``y'= [$f]``] +Consider the direction field from the differential equation [``y'= [$f]``] ->>[@ image(insertGraph($gr), width=>400, height=>400), @]* << +>>[@ image(insertGraph($gr), width=>400, height=>400), @]* << -(a) Use the direction field above to sketch the graph of the solution with initial condition [`` y(0)=[$p]``][______]{$popup1} +(a) Use the direction field above to sketch the graph of the solution with initial condition [`` y(0)=[$p]``][______]{$popup1} ->>A. [@ image(insertGraph($gr1), width=>200, height=>200), @]* B. [@ image(insertGraph($gr2), width=>200, height=>200), @]*<< +>>A. [@ image(insertGraph($gr1), width=>200, height=>200), @]* B. [@ image(insertGraph($gr2), width=>200, height=>200), @]*<< >>C. [@ image(insertGraph($gr3), width=>200, height=>200), @]* D. [@ image(insertGraph($gr4), width=>200, height=>200), @]*<< (b) Are there any equilibria? What are their stabilities? diff --git a/Contrib/CCCS/CalculusTwo/04.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_2_75.pg b/Contrib/CCCS/CalculusTwo/04.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_2_75.pg index 6525a739db..5d4bf5f75d 100644 --- a/Contrib/CCCS/CalculusTwo/04.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_2_75.pg +++ b/Contrib/CCCS/CalculusTwo/04.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_2_75.pg @@ -25,7 +25,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserPopUp.pl", @@ -95,10 +95,10 @@ $fn->rf_arrow_length( sub{ } ); -$g1=Formula(" x^2 ")->reduce(); -$g2=Formula(" e^(x) ")->reduce(); -$g3=Formula(" -e^(-x) ")->reduce(); -$g4=Formula(" x^3 ")->reduce(); +$g1=Formula(" x^2 ")->reduce(); +$g2=Formula(" e^(x) ")->reduce(); +$g3=Formula(" -e^(-x) ")->reduce(); +$g4=Formula(" x^3 ")->reduce(); $gr5= init_graph(-10,-10,10,10,axes=>[0,0],grid=>[20,20],size=>[500,500]); @@ -152,16 +152,16 @@ $fn->rf_arrow_length( sub{ -add_functions($gr5, "$g1 for x in <-10,10>" . +add_functions($gr5, "$g1 for x in <-10,10>" . " using color:blue and weight:2"); -add_functions($gr6, "$g2 for x in <-10,10>" . +add_functions($gr6, "$g2 for x in <-10,10>" . " using color:blue and weight:2"); -add_functions($gr7, "$g3 for x in <-10,10>" . +add_functions($gr7, "$g3 for x in <-10,10>" . " using color:blue and weight:2"); -add_functions($gr8, "$g4 for x in <-10,10>" . +add_functions($gr8, "$g4 for x in <-10,10>" . " using color:blue and weight:2"); @@ -195,18 +195,18 @@ Consider the differential equation [``y'=e^t``]. (a) Draw its direction field. [_____]{$popup1} ->>A. [@ image(insertGraph($gr1), width=>200, height=>200), @]* B. [@ image(insertGraph($gr2), width=>200, height=>200), @]*<< +>>A. [@ image(insertGraph($gr1), width=>200, height=>200), @]* B. [@ image(insertGraph($gr2), width=>200, height=>200), @]*<< >>C. [@ image(insertGraph($gr3), width=>200, height=>200), @]* D. [@ image(insertGraph($gr4), width=>200, height=>200), @]*<< (b) Find a general solution to the differential equation -[``y=``][_____]{$ans }[@ AnswerFormatHelp("formulas") @]* +[``y=``][_____]{$ans }[@ helpLink("formulas") @]* -(c) Draw a solution on top of the direction field. [______]{$popup2} +(c) Draw a solution on top of the direction field. [______]{$popup2} ->>A. [@ image(insertGraph($gr5), width=>200, height=>200), @]* B. [@ image(insertGraph($gr6), width=>200, height=>200), @]*<< +>>A. [@ image(insertGraph($gr5), width=>200, height=>200), @]* B. [@ image(insertGraph($gr6), width=>200, height=>200), @]*<< >>C. [@ image(insertGraph($gr7), width=>200, height=>200), @]* D. [@ image(insertGraph($gr8), width=>200, height=>200), @]*<< diff --git a/Contrib/CCCS/CalculusTwo/04.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_2_84_85_86_87_88.pg b/Contrib/CCCS/CalculusTwo/04.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_2_84_85_86_87_88.pg index 3f3dd27bcd..aecd40e402 100644 --- a/Contrib/CCCS/CalculusTwo/04.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_2_84_85_86_87_88.pg +++ b/Contrib/CCCS/CalculusTwo/04.2/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_2_84_85_86_87_88.pg @@ -25,7 +25,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserPopUp.pl", @@ -126,9 +126,9 @@ BEGIN_PGML Match the direction field with the given differential equations ->>A. [@ image(insertGraph($gr1), width=>200, height=>200), @]* B. [@ image(insertGraph($gr2), width=>200, height=>200), @]*<< +>>A. [@ image(insertGraph($gr1), width=>200, height=>200), @]* B. [@ image(insertGraph($gr2), width=>200, height=>200), @]*<< >>C. [@ image(insertGraph($gr3), width=>200, height=>200), @]* D. [@ image(insertGraph($gr4), width=>200, height=>200), @]*<< ->>E. [@ image(insertGraph($gr5), width=>200, height=>200), @]* << +>>E. [@ image(insertGraph($gr5), width=>200, height=>200), @]* << (1) [``y'=-3y``] and [___]{$popup1} diff --git a/Contrib/CCCS/CalculusTwo/04.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_3_122.pg b/Contrib/CCCS/CalculusTwo/04.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_3_122.pg index f3e75f8410..aecb179b6e 100644 --- a/Contrib/CCCS/CalculusTwo/04.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_3_122.pg +++ b/Contrib/CCCS/CalculusTwo/04.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_3_122.pg @@ -25,7 +25,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserPopUp.pl", @@ -67,29 +67,29 @@ $gr3= init_graph(-10,-10,10,10,axes=>[0,0],grid=>[20,20],size=>[600,600]); $gr4= init_graph(-10,-10,10,10,axes=>[0,0],grid=>[20,20],size=>[600,600]); if($a<0){ -add_functions($gr1, "$g3 for x in <$km,10>" . +add_functions($gr1, "$g3 for x in <$km,10>" . " using color:blue and weight:3"); -add_functions($gr2, "$g2 for x in <-10,$kp>" . +add_functions($gr2, "$g2 for x in <-10,$kp>" . " using color:blue and weight:3"); -add_functions($gr3, "$g1 for x in <$km,10>" . +add_functions($gr3, "$g1 for x in <$km,10>" . " using color:blue and weight:3"); -add_functions($gr4, "$g4 for x in <$km,10>" . +add_functions($gr4, "$g4 for x in <$km,10>" . " using color:blue and weight:3"); } else{ -add_functions($gr1, "$g3 for x in <-10,$kp>" . +add_functions($gr1, "$g3 for x in <-10,$kp>" . " using color:blue and weight:3"); -add_functions($gr2, "$g2 for x in <$km,10>" . +add_functions($gr2, "$g2 for x in <$km,10>" . " using color:blue and weight:3"); -add_functions($gr3, "$g1 for x in <-10,$kp>" . +add_functions($gr3, "$g1 for x in <-10,$kp>" . " using color:blue and weight:3"); -add_functions($gr4, "$g4 for x in <-10,$kp>" . +add_functions($gr4, "$g4 for x in <-10,$kp>" . " using color:blue and weight:3"); } @@ -109,18 +109,18 @@ $popup = PopUp(["?", "A", "B","C","D"], "C"); BEGIN_PGML -(a) Solve the initial-value problem +(a) Solve the initial-value problem [``y'=[$f], \quad y([$k])=0``] -[``y=``][___________________]{$g1 } [@ AnswerFormatHelp("formulas") @]* +[``y=``][___________________]{$g1 } [@ helpLink("formulas") @]* (b) Graph the solution. [______]{$popup} ->>A. [@ image(insertGraph($gr1), width=>200, height=>200), @]* B. [@ image(insertGraph($gr2), width=>200, height=>200), @]*<< +>>A. [@ image(insertGraph($gr1), width=>200, height=>200), @]* B. [@ image(insertGraph($gr2), width=>200, height=>200), @]*<< >>C. [@ image(insertGraph($gr3), width=>200, height=>200), @]* D. [@ image(insertGraph($gr4), width=>200, height=>200), @]*<< diff --git a/Contrib/CCCS/CalculusTwo/04.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_3_124.pg b/Contrib/CCCS/CalculusTwo/04.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_3_124.pg index fb79de1a66..ac1bd7763b 100644 --- a/Contrib/CCCS/CalculusTwo/04.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_3_124.pg +++ b/Contrib/CCCS/CalculusTwo/04.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_3_124.pg @@ -25,7 +25,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "answerHints.pl", @@ -61,13 +61,13 @@ Find the general solution to the differential equation [``y'=[$f]``] -[``y=``][_______________________] [@ AnswerFormatHelp("formulas") @]* +[``y=``][_______________________] [@ helpLink("formulas") @]* Use the letter "C" for any constant of integration. END_PGML -ANS($answer->cmp()->withPostFilter(AnswerHints( +ANS($answer->cmp()->withPostFilter(AnswerHints( Formula("asin(e^(x^($k+1)/($k+1)+C))") => ["You are close, try to simplify the exponential.", replaceMessage=>1], ))); diff --git a/Contrib/CCCS/CalculusTwo/04.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_3_129.pg b/Contrib/CCCS/CalculusTwo/04.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_3_129.pg index 054c5b4b21..401a11be1e 100644 --- a/Contrib/CCCS/CalculusTwo/04.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_3_129.pg +++ b/Contrib/CCCS/CalculusTwo/04.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_3_129.pg @@ -25,7 +25,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "answerHints.pl", @@ -66,13 +66,13 @@ Find the general solution to the differential equation [``([$f1])y'=[$f2]``] -[``y=``][_______________________] [@ AnswerFormatHelp("formulas") @]* +[``y=``][_______________________] [@ helpLink("formulas") @]* Use the letter "C" for any constant of integration. END_PGML -ANS($answer->cmp()->withPostFilter(AnswerHints( +ANS($answer->cmp()->withPostFilter(AnswerHints( Formula("(x+$a)^($h)e^(x+C)-$k") => ["You are close, try to simplify the exponential.", replaceMessage=>1], ))); diff --git a/Contrib/CCCS/CalculusTwo/04.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_3_132.pg b/Contrib/CCCS/CalculusTwo/04.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_3_132.pg index e3f40d823b..d187d2a717 100644 --- a/Contrib/CCCS/CalculusTwo/04.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_3_132.pg +++ b/Contrib/CCCS/CalculusTwo/04.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_3_132.pg @@ -25,7 +25,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserPopUp.pl", @@ -65,7 +65,7 @@ Find the general solution to the differential equation [``y'=[$f]``] -[``y=``][____________________________]{$g } [@ AnswerFormatHelp("formulas") @]* +[``y=``][____________________________]{$g } [@ helpLink("formulas") @]* Use the letter "C" for any constant of integration. diff --git a/Contrib/CCCS/CalculusTwo/04.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_3_135.pg b/Contrib/CCCS/CalculusTwo/04.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_3_135.pg index 9c25f63b91..3b70846894 100644 --- a/Contrib/CCCS/CalculusTwo/04.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_3_135.pg +++ b/Contrib/CCCS/CalculusTwo/04.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_3_135.pg @@ -25,7 +25,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserPopUp.pl", @@ -76,7 +76,7 @@ Find the solution to the initial-value problem [``\frac{dy}{dx}=[$f],\quad y(0)=[$k]``] -[``y=``][___________________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[``y=``][___________________________]{$ans} [@ helpLink("formulas") @]* diff --git a/Contrib/CCCS/CalculusTwo/04.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_3_136.pg b/Contrib/CCCS/CalculusTwo/04.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_3_136.pg index 6dd8306e73..33bda82186 100644 --- a/Contrib/CCCS/CalculusTwo/04.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_3_136.pg +++ b/Contrib/CCCS/CalculusTwo/04.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_3_136.pg @@ -25,7 +25,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserPopUp.pl", @@ -51,7 +51,7 @@ $b=non_zero_random(1,6); $k=non_zero_random(-6,6); $f=Formula("y^(2)e^($a*x)sin($b*x)")->reduce; -$ans=Formula("($k)(($a)^2+($b)^2)/[(($a)^2+($b)^2-$k*$b)-($k)e^($a*x)($a*sin($b*x)-$b*cos($b*x))]")->reduce; +$ans=Formula("($k)(($a)^2+($b)^2)/[(($a)^2+($b)^2-$k*$b)-($k)e^($a*x)($a*sin($b*x)-$b*cos($b*x))]")->reduce; @@ -65,7 +65,7 @@ Find the solution to the initial-value problem [``\frac{dy}{dx}=[$f],\quad y(0)=[$k]``] -[``y=``][________________________________________]{$ans } [@ AnswerFormatHelp("formulas") @]* +[``y=``][________________________________________]{$ans } [@ helpLink("formulas") @]* diff --git a/Contrib/CCCS/CalculusTwo/04.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_3_138.pg b/Contrib/CCCS/CalculusTwo/04.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_3_138.pg index 482bb88404..871785a6f3 100644 --- a/Contrib/CCCS/CalculusTwo/04.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_3_138.pg +++ b/Contrib/CCCS/CalculusTwo/04.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_3_138.pg @@ -25,7 +25,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserPopUp.pl", @@ -49,7 +49,7 @@ $b=random(1,6); $k=random(1,10); $f=Formula(" ($a*x*y)($b+y) ")->reduce(); -$ans=Formula("$k*$b/[($b+$k)*e^(-0.5*$a*$b*x^2)-$k]")->reduce; +$ans=Formula("$k*$b/[($b+$k)*e^(-0.5*$a*$b*x^2)-$k]")->reduce; @@ -63,7 +63,7 @@ Find the solution to the initial-value problem [``\frac{dy}{dx}=[$f],\quad y(0)=[$k]``] -[``y=``][___________________________________]{$ans } [@ AnswerFormatHelp("formulas") @]* +[``y=``][___________________________________]{$ans } [@ helpLink("formulas") @]* diff --git a/Contrib/CCCS/CalculusTwo/04.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_3_141.pg b/Contrib/CCCS/CalculusTwo/04.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_3_141.pg index 6a043f1bc4..4b734cf288 100644 --- a/Contrib/CCCS/CalculusTwo/04.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_3_141.pg +++ b/Contrib/CCCS/CalculusTwo/04.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_3_141.pg @@ -25,7 +25,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserPopUp.pl", @@ -48,7 +48,7 @@ $a=random(2,6); $b=non_zero_random(-6,6); $f=Formula("e^($b*y)($a)^x")->reduce(); -$ans=Formula("(-1/$b)ln[($b)(1-($a)^x)/(ln($a))+(ln($a))^(-$b)]")->reduce; +$ans=Formula("(-1/$b)ln[($b)(1-($a)^x)/(ln($a))+(ln($a))^(-$b)]")->reduce; @@ -62,7 +62,7 @@ Find the solution to the initial-value problem [``\frac{dy}{dx}=[$f],\quad y(0)=\ln(\ln([$a]))``] -[``y=``][________________________]{$ans } [@ AnswerFormatHelp("formulas") @]* +[``y=``][________________________]{$ans } [@ helpLink("formulas") @]* diff --git a/Contrib/CCCS/CalculusTwo/04.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_3_149.pg b/Contrib/CCCS/CalculusTwo/04.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_3_149.pg index 7986b5d3a5..6390bcb30c 100644 --- a/Contrib/CCCS/CalculusTwo/04.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_3_149.pg +++ b/Contrib/CCCS/CalculusTwo/04.3/CCD_CCCS_Openstax_Calc2_C2-2016-002_4_3_149.pg @@ -25,7 +25,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserPopUp.pl", @@ -50,7 +50,7 @@ Context()->variables->add(k=>"Real"); $f=Formula("r-ky")->reduce(); -$ans=Formula("(r/k)[1-e^(-kt)]")->reduce; +$ans=Formula("(r/k)[1-e^(-kt)]")->reduce; @@ -69,7 +69,7 @@ proportional to the amount of drug still present in the body, [`k`], where [`k>0 (b) Solve the differential equation -[``y(t)=``][______________________]{$ans } [@ AnswerFormatHelp("formulas") @]* +[``y(t)=``][______________________]{$ans } [@ helpLink("formulas") @]* diff --git a/Contrib/CCCS/CalculusTwo/05.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_1_1.pg b/Contrib/CCCS/CalculusTwo/05.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_1_1.pg index 6bfedd1217..6698916996 100644 --- a/Contrib/CCCS/CalculusTwo/05.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_1_1.pg +++ b/Contrib/CCCS/CalculusTwo/05.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_1_1.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "parserPopUp.pl", "PGcourse.pl", @@ -62,17 +62,17 @@ Find the first six terms of the following sequence. [`a_n=[$a]+[$b](-1)^n`], for [`n\geq 1`]. -[`a_1=`][_________]{$a1} [@ AnswerFormatHelp("numbers") @]* +[`a_1=`][_________]{$a1} [@ helpLink("numbers") @]* -[`a_2=`][_________]{$a2} [@ AnswerFormatHelp("numbers") @]* +[`a_2=`][_________]{$a2} [@ helpLink("numbers") @]* -[`a_3=`][_________]{$a3} [@ AnswerFormatHelp("numbers") @]* +[`a_3=`][_________]{$a3} [@ helpLink("numbers") @]* -[`a_4=`][_________]{$a4} [@ AnswerFormatHelp("numbers") @]* +[`a_4=`][_________]{$a4} [@ helpLink("numbers") @]* -[`a_5=`][_________]{$a5} [@ AnswerFormatHelp("numbers") @]* +[`a_5=`][_________]{$a5} [@ helpLink("numbers") @]* -[`a_6=`][_________]{$a6} [@ AnswerFormatHelp("numbers") @]* +[`a_6=`][_________]{$a6} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CalculusTwo/05.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_1_12-13.pg b/Contrib/CCCS/CalculusTwo/05.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_1_12-13.pg index bac692e432..e3aead249f 100644 --- a/Contrib/CCCS/CalculusTwo/05.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_1_12-13.pg +++ b/Contrib/CCCS/CalculusTwo/05.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_1_12-13.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "parserPopUp.pl", "PGcourse.pl", @@ -85,15 +85,15 @@ $ans2->{test_points} = [[1],[2],[3],[4],[5],[6]]; BEGIN_PGML -For the following sequences, [`\{a_n\}_{n=1}^{\infty}`], find a formula for the general term `a_n`. +For the following sequences, [`\{a_n\}_{n=1}^{\infty}`], find a formula for the general term `a_n`. (a) `\{a_n\}=\{[$a1],[$a2],[$a3],[$a4],[$a5],[$a6],[$a7],[$a8],...\}` (Hint: think of where `sin(x)` takes on those values.) -`a_n=`[______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* +`a_n=`[______________]{$ans1} [@ helpLink("formulas") @]* (b) `\{a_n\}=\{[$b], -[$b]/3, [$b]/5, -[$b]/7,...\}` -`a_n=`[______________]{$ans2} [@ AnswerFormatHelp("formulas") @]* +`a_n=`[______________]{$ans2} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/05.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_1_15.pg b/Contrib/CCCS/CalculusTwo/05.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_1_15.pg index 0261056859..d0c2daac41 100644 --- a/Contrib/CCCS/CalculusTwo/05.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_1_15.pg +++ b/Contrib/CCCS/CalculusTwo/05.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_1_15.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "parserPopUp.pl", "PGcourse.pl", @@ -51,7 +51,7 @@ Find a function, `f(n)`, that identifies the `n`th term of the following recursi -`f(n)=`[______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* +`f(n)=`[______________]{$ans1} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/05.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_1_17.pg b/Contrib/CCCS/CalculusTwo/05.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_1_17.pg index 618b21b62d..f8f7d7f7e2 100644 --- a/Contrib/CCCS/CalculusTwo/05.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_1_17.pg +++ b/Contrib/CCCS/CalculusTwo/05.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_1_17.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "parserPopUp.pl", "PGcourse.pl", @@ -51,7 +51,7 @@ Find a function, `f(n)`, that identifies the `n`th term of the following recursi -`f(n)=`[______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* +`f(n)=`[______________]{$ans1} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/05.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_1_27.pg b/Contrib/CCCS/CalculusTwo/05.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_1_27.pg index 9686fa6cee..fc1440fb52 100644 --- a/Contrib/CCCS/CalculusTwo/05.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_1_27.pg +++ b/Contrib/CCCS/CalculusTwo/05.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_1_27.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "parserPopUp.pl", "PGcourse.pl", @@ -50,7 +50,7 @@ Find the limit of the sequence `\{a_n\} = \{\frac{[$a]n}{[$b]^n}\}`. -`\lim_{n \to \infty} a_n=`[______________]{0} [@ AnswerFormatHelp("numbers") @]* +`\lim_{n \to \infty} a_n=`[______________]{0} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/05.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_1_29.pg b/Contrib/CCCS/CalculusTwo/05.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_1_29.pg index 612a640f09..938af2dd9e 100644 --- a/Contrib/CCCS/CalculusTwo/05.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_1_29.pg +++ b/Contrib/CCCS/CalculusTwo/05.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_1_29.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "parserPopUp.pl", "PGcourse.pl", @@ -55,7 +55,7 @@ BEGIN_PGML Find the limit of the sequence `\{a_n\} = \{\frac{\sqrt{[$a]n}}{\sqrt{[$b]n+[$c]}}\}`. Enter as an exact value. -`\lim_{n \to \infty} a_n=`[______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +`\lim_{n \to \infty} a_n=`[______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/05.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_1_3.pg b/Contrib/CCCS/CalculusTwo/05.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_1_3.pg index 3329c91c17..f44cd1d4da 100644 --- a/Contrib/CCCS/CalculusTwo/05.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_1_3.pg +++ b/Contrib/CCCS/CalculusTwo/05.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_1_3.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "parserPopUp.pl", "PGcourse.pl", @@ -58,19 +58,19 @@ Find the next six terms of the following sequence. [`a_n=a_{n-1}+[$a]n`], [`a_1=[$b]`]. -[`a_1=`][_________]{$a1} [@ AnswerFormatHelp("numbers") @]* +[`a_1=`][_________]{$a1} [@ helpLink("numbers") @]* -[`a_2=`][_________]{$a2} [@ AnswerFormatHelp("numbers") @]* +[`a_2=`][_________]{$a2} [@ helpLink("numbers") @]* -[`a_3=`][_________]{$a3} [@ AnswerFormatHelp("numbers") @]* +[`a_3=`][_________]{$a3} [@ helpLink("numbers") @]* -[`a_4=`][_________]{$a4} [@ AnswerFormatHelp("numbers") @]* +[`a_4=`][_________]{$a4} [@ helpLink("numbers") @]* -[`a_5=`][_________]{$a5} [@ AnswerFormatHelp("numbers") @]* +[`a_5=`][_________]{$a5} [@ helpLink("numbers") @]* -[`a_6=`][_________]{$a6} [@ AnswerFormatHelp("numbers") @]* +[`a_6=`][_________]{$a6} [@ helpLink("numbers") @]* -[`a_7=`][_________]{$a7} [@ AnswerFormatHelp("numbers") @]* +[`a_7=`][_________]{$a7} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CalculusTwo/05.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_1_33.pg b/Contrib/CCCS/CalculusTwo/05.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_1_33.pg index 6bc0069d30..2d0866b705 100644 --- a/Contrib/CCCS/CalculusTwo/05.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_1_33.pg +++ b/Contrib/CCCS/CalculusTwo/05.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_1_33.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "parserPopUp.pl", "PGcourse.pl", @@ -52,7 +52,7 @@ $popup2 = PopUp( BEGIN_PGML -For the sequence `\{a_n\} = \{[$a]\sin(n)\}`, determine whether the sequence is bounded and whether it is eventually monotone increasing, monotone decreasing, or not monotone. +For the sequence `\{a_n\} = \{[$a]\sin(n)\}`, determine whether the sequence is bounded and whether it is eventually monotone increasing, monotone decreasing, or not monotone. `\{a_n\} = \{[$a]\sin(n)\}` [___]{$popup1} bounded. diff --git a/Contrib/CCCS/CalculusTwo/05.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_1_35.pg b/Contrib/CCCS/CalculusTwo/05.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_1_35.pg index 3f4de7f381..dcffef037a 100644 --- a/Contrib/CCCS/CalculusTwo/05.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_1_35.pg +++ b/Contrib/CCCS/CalculusTwo/05.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_1_35.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "parserPopUp.pl", "PGcourse.pl", @@ -52,7 +52,7 @@ $popup2 = PopUp( BEGIN_PGML -For the sequence [`\{a_n\} = \{n^{([$a]/n)}\}`], for `n\geq 3`, determine whether the sequence is bounded and whether it is eventually monotone increasing, monotone decreasing, or not monotone. +For the sequence [`\{a_n\} = \{n^{([$a]/n)}\}`], for `n\geq 3`, determine whether the sequence is bounded and whether it is eventually monotone increasing, monotone decreasing, or not monotone. [`\{a_n\} = \{n^{([$a]/n)}\}`] [___]{$popup1} bounded. diff --git a/Contrib/CCCS/CalculusTwo/05.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_1_37.pg b/Contrib/CCCS/CalculusTwo/05.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_1_37.pg index 8ae2b2eceb..2930a12020 100644 --- a/Contrib/CCCS/CalculusTwo/05.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_1_37.pg +++ b/Contrib/CCCS/CalculusTwo/05.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_1_37.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "parserPopUp.pl", "PGcourse.pl", @@ -61,7 +61,7 @@ $popup4 = PopUp( BEGIN_PGML -For the sequences `\{a_n\} = \{[$a]\tan(n)\}` and `\{b_n\} = \{[$a]\tan^(-1)(n)\}`, determine whether the sequence is bounded and whether it is eventually monotone increasing, monotone decreasing, or not monotone. +For the sequences `\{a_n\} = \{[$a]\tan(n)\}` and `\{b_n\} = \{[$a]\tan^(-1)(n)\}`, determine whether the sequence is bounded and whether it is eventually monotone increasing, monotone decreasing, or not monotone. `\{a_n\} = \{[$a]\tan(n)\}` [___]{$popup1} bounded. diff --git a/Contrib/CCCS/CalculusTwo/05.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_1_4.pg b/Contrib/CCCS/CalculusTwo/05.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_1_4.pg index 42a18db44f..8cde4d775c 100644 --- a/Contrib/CCCS/CalculusTwo/05.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_1_4.pg +++ b/Contrib/CCCS/CalculusTwo/05.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_1_4.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "parserPopUp.pl", "PGcourse.pl", @@ -60,21 +60,21 @@ Find the next six terms of the following sequence. [`a_{n+2}=a_{n+1}+[$b]a_n`], [`a_1=[$a1], a_2=[$a2]`]. -[`a_1=`][_________]{$a1} [@ AnswerFormatHelp("numbers") @]* +[`a_1=`][_________]{$a1} [@ helpLink("numbers") @]* -[`a_2=`][_________]{$a2} [@ AnswerFormatHelp("numbers") @]* +[`a_2=`][_________]{$a2} [@ helpLink("numbers") @]* -[`a_3=`][_________]{$a3} [@ AnswerFormatHelp("numbers") @]* +[`a_3=`][_________]{$a3} [@ helpLink("numbers") @]* -[`a_4=`][_________]{$a4} [@ AnswerFormatHelp("numbers") @]* +[`a_4=`][_________]{$a4} [@ helpLink("numbers") @]* -[`a_5=`][_________]{$a5} [@ AnswerFormatHelp("numbers") @]* +[`a_5=`][_________]{$a5} [@ helpLink("numbers") @]* -[`a_6=`][_________]{$a6} [@ AnswerFormatHelp("numbers") @]* +[`a_6=`][_________]{$a6} [@ helpLink("numbers") @]* -[`a_7=`][_________]{$a7} [@ AnswerFormatHelp("numbers") @]* +[`a_7=`][_________]{$a7} [@ helpLink("numbers") @]* -[`a_8=`][_________]{$a8} [@ AnswerFormatHelp("numbers") @]* +[`a_8=`][_________]{$a8} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CalculusTwo/05.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_1_47.pg b/Contrib/CCCS/CalculusTwo/05.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_1_47.pg index 2acf3b7306..a9acf4a987 100644 --- a/Contrib/CCCS/CalculusTwo/05.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_1_47.pg +++ b/Contrib/CCCS/CalculusTwo/05.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_1_47.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "parserPopUp.pl", "PGcourse.pl", @@ -46,7 +46,7 @@ BEGIN_PGML Find the limit of the sequence `\{a_n\} = \{([$a]n)^(1/n)-n^(1/n)\}`. -`\lim_{n \to \infty} a_n=`[______________]{0} [@ AnswerFormatHelp("numbers") @]* +`\lim_{n \to \infty} a_n=`[______________]{0} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/05.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_1_50.pg b/Contrib/CCCS/CalculusTwo/05.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_1_50.pg index c43f44c0f2..f4f3e18a39 100644 --- a/Contrib/CCCS/CalculusTwo/05.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_1_50.pg +++ b/Contrib/CCCS/CalculusTwo/05.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_1_50.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "parserPopUp.pl", "PGcourse.pl", @@ -48,7 +48,7 @@ BEGIN_PGML Find the limit of the sequence [`\{a_n\} = \left\{\ln\left(\frac{n+[$a]}{[$b]n^2-[$c]}\right)\right\}`]. -`\lim_{n \to \infty} a_n=`[______________]{-infinity} [@ AnswerFormatHelp("numbers") @]* +`\lim_{n \to \infty} a_n=`[______________]{-infinity} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/05.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_2_102.pg b/Contrib/CCCS/CalculusTwo/05.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_2_102.pg index 7b7ace97dd..40daebab08 100644 --- a/Contrib/CCCS/CalculusTwo/05.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_2_102.pg +++ b/Contrib/CCCS/CalculusTwo/05.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_2_102.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", @@ -54,9 +54,9 @@ BEGIN_PGML For telescoping series [` \displaystyle \sum_{n=1}^{\infty} \frac{1}{n^{[$a]}} - \frac{1}{(n+1)^{[$a]}}`], find a formula for the [`k`]th partial sum and evaluate the series or state that it diverges. -a. The formula for the [`k`]th partial sum is [`S_k =`] [___________________]{$ans}[@ AnswerFormatHelp("formulas") @]* +a. The formula for the [`k`]th partial sum is [`S_k =`] [___________________]{$ans}[@ helpLink("formulas") @]* -b. [` \displaystyle \sum_{n=1}^{\infty} \frac{1}{n^{[$a]}} - \frac{1}{(n+1)^{[$a]}} = `][__________________]{1} (Enter 'diverges' if the series diverges) +b. [` \displaystyle \sum_{n=1}^{\infty} \frac{1}{n^{[$a]}} - \frac{1}{(n+1)^{[$a]}} = `][__________________]{1} (Enter 'diverges' if the series diverges) diff --git a/Contrib/CCCS/CalculusTwo/05.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_2_104.pg b/Contrib/CCCS/CalculusTwo/05.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_2_104.pg index 6ef43b49e6..cff2fa136e 100644 --- a/Contrib/CCCS/CalculusTwo/05.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_2_104.pg +++ b/Contrib/CCCS/CalculusTwo/05.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_2_104.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "contextArbitraryString.pl", "PGML.pl", @@ -53,9 +53,9 @@ BEGIN_PGML For telescoping series [` \displaystyle \sum_{n=1}^{\infty} [$a]\sin(n) - [$a]\sin(n+1)`], find a formula for the [`k`]th partial sum and evaluate the series or state that it diverges. -a. The formula for the [`k`]th partial sum is [`S_k =`] [___________________]{$ans}[@ AnswerFormatHelp("formulas") @]* +a. The formula for the [`k`]th partial sum is [`S_k =`] [___________________]{$ans}[@ helpLink("formulas") @]* -b. [` \displaystyle \sum_{n=1}^{\infty} [$a]\sin(n) - [$a]\sin(n+1) = `][__________________]{"diverges"} (Enter 'diverges' if the series diverges) +b. [` \displaystyle \sum_{n=1}^{\infty} [$a]\sin(n) - [$a]\sin(n+1) = `][__________________]{"diverges"} (Enter 'diverges' if the series diverges) diff --git a/Contrib/CCCS/CalculusTwo/05.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_2_105.pg b/Contrib/CCCS/CalculusTwo/05.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_2_105.pg index d99744f808..e94f4ff37e 100644 --- a/Contrib/CCCS/CalculusTwo/05.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_2_105.pg +++ b/Contrib/CCCS/CalculusTwo/05.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_2_105.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "contextArbitraryString.pl", "PGML.pl", @@ -56,9 +56,9 @@ BEGIN_PGML For the telescoping series [` \displaystyle \sum_{n=1}^{\infty}[$a]\ln\left(\frac{n}{n+1}\right)`], find the formula for its [`k`]th partial sum then evaluate the sum or state that it diverges. -a. The formula for the [`k`]th partial sum is [`S_k =`] [___________________]{$ans}[@ AnswerFormatHelp("formulas") @]* +a. The formula for the [`k`]th partial sum is [`S_k =`] [___________________]{$ans}[@ helpLink("formulas") @]* -b. [` \displaystyle \sum_{n=1}^{\infty} [$a]\ln\left(\frac{n}{n+1}\right) = `][__________________]{"diverges"} (Enter 'diverges' if the series diverges) +b. [` \displaystyle \sum_{n=1}^{\infty} [$a]\ln\left(\frac{n}{n+1}\right) = `][__________________]{"diverges"} (Enter 'diverges' if the series diverges) diff --git a/Contrib/CCCS/CalculusTwo/05.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_2_67.pg b/Contrib/CCCS/CalculusTwo/05.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_2_67.pg index e75beff883..b4767eb46e 100644 --- a/Contrib/CCCS/CalculusTwo/05.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_2_67.pg +++ b/Contrib/CCCS/CalculusTwo/05.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_2_67.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -39,7 +39,7 @@ $showPartialCorrectAnswers = 1; Context("Numeric"); Context()->variables->are( -n=>"Real"); +n=>"Real"); $a = random(1,10,1); $f0=Formula("$a/(n+1)"); @@ -51,13 +51,13 @@ $f1=Formula("$a/n"); BEGIN_PGML -Using sigma notation, write the following expression as an infinite series in two ways, one with the index starting at 0 and one with the index starting at 1. +Using sigma notation, write the following expression as an infinite series in two ways, one with the index starting at 0 and one with the index starting at 1. -(a) [`\displaystyle [$a] + \frac{[$a]}{2} +\frac{[$a]}{3}+\frac{[$a]}{4}+\frac{[$a]}{5}+...=\sum_{n=0}^{\infty}`][____________]{$f0} [@ AnswerFormatHelp("formulas") @]* +(a) [`\displaystyle [$a] + \frac{[$a]}{2} +\frac{[$a]}{3}+\frac{[$a]}{4}+\frac{[$a]}{5}+...=\sum_{n=0}^{\infty}`][____________]{$f0} [@ helpLink("formulas") @]* -(b) [`\displaystyle [$a] + \frac{[$a]}{2} +\frac{[$a]}{3}+\frac{[$a]}{4}+\frac{[$a]}{5}+...=\sum_{n=1}^{\infty}`][____________]{$f1} [@ AnswerFormatHelp("formulas") @]* +(b) [`\displaystyle [$a] + \frac{[$a]}{2} +\frac{[$a]}{3}+\frac{[$a]}{4}+\frac{[$a]}{5}+...=\sum_{n=1}^{\infty}`][____________]{$f1} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/05.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_2_68.pg b/Contrib/CCCS/CalculusTwo/05.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_2_68.pg index fb68debb68..4998f4fb39 100644 --- a/Contrib/CCCS/CalculusTwo/05.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_2_68.pg +++ b/Contrib/CCCS/CalculusTwo/05.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_2_68.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGunion.pl", "answerHints.pl", "PGML.pl", @@ -71,12 +71,12 @@ $f2->{test_points} = [[1],[2],[3],[4],[5],[6]]; BEGIN_PGML -Using sigma notation, write the expression [` [$a1] + [$a2] + [$a3] + [$a4] + [$a5] + [$a6] +...`] as an infinite series in two ways, one with the index starting at 0 and one with the index starting at 1. +Using sigma notation, write the expression [` [$a1] + [$a2] + [$a3] + [$a4] + [$a5] + [$a6] +...`] as an infinite series in two ways, one with the index starting at 0 and one with the index starting at 1. -(a) [`\displaystyle [$a1] +[$a2]+ [$a3] +[$a4]+ [$a5] +[$a6]+...=\sum_{n=0}^{\infty}a_n, \text{ where } a_n=`][________________]{$f1}[@ AnswerFormatHelp("formulas") @]* +(a) [`\displaystyle [$a1] +[$a2]+ [$a3] +[$a4]+ [$a5] +[$a6]+...=\sum_{n=0}^{\infty}a_n, \text{ where } a_n=`][________________]{$f1}[@ helpLink("formulas") @]* -(b) [`\displaystyle [$a1] +[$a2]+ [$a3] +[$a4]+ [$a5] +[$a6]+...=\sum_{n=1}^{\infty}b_n, \text{ where } b_n=`][________________]{$f2}[@ AnswerFormatHelp("formulas") @]* +(b) [`\displaystyle [$a1] +[$a2]+ [$a3] +[$a4]+ [$a5] +[$a6]+...=\sum_{n=1}^{\infty}b_n, \text{ where } b_n=`][________________]{$f2}[@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/05.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_2_72.pg b/Contrib/CCCS/CalculusTwo/05.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_2_72.pg index ffa05ca07c..87e2d40193 100644 --- a/Contrib/CCCS/CalculusTwo/05.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_2_72.pg +++ b/Contrib/CCCS/CalculusTwo/05.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_2_72.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl" @@ -62,13 +62,13 @@ BEGIN_PGML Compute the first four partial sums for the series [`\displaystyle \sum_{n=1}^{\infty} \frac{[$a]}{n}`]. Enter answers as exact values. -[`S_1=`][________________]{$S1}[@ AnswerFormatHelp("numbers") @]* +[`S_1=`][________________]{$S1}[@ helpLink("numbers") @]* -[`S_2=`][________________]{$S2}[@ AnswerFormatHelp("numbers") @]* +[`S_2=`][________________]{$S2}[@ helpLink("numbers") @]* -[`S_3=`][________________]{$S3}[@ AnswerFormatHelp("numbers") @]* +[`S_3=`][________________]{$S3}[@ helpLink("numbers") @]* -[`S_4=`][________________]{$S4}[@ AnswerFormatHelp("numbers") @]* +[`S_4=`][________________]{$S4}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/05.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_2_73.pg b/Contrib/CCCS/CalculusTwo/05.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_2_73.pg index 7cae063744..0e1e9dcd31 100644 --- a/Contrib/CCCS/CalculusTwo/05.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_2_73.pg +++ b/Contrib/CCCS/CalculusTwo/05.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_2_73.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl" @@ -63,13 +63,13 @@ BEGIN_PGML Compute the first four partial sums for the series [`\displaystyle \sum_{n=[$a]}^{\infty} [$b]\sin\left(\frac{n\pi}{2}\right)`]. Enter answers as exact values. -[`S_1=`][________________]{$S1}[@ AnswerFormatHelp("numbers") @]* +[`S_1=`][________________]{$S1}[@ helpLink("numbers") @]* -[`S_2=`][________________]{$S2}[@ AnswerFormatHelp("numbers") @]* +[`S_2=`][________________]{$S2}[@ helpLink("numbers") @]* -[`S_3=`][________________]{$S3}[@ AnswerFormatHelp("numbers") @]* +[`S_3=`][________________]{$S3}[@ helpLink("numbers") @]* -[`S_4=`][________________]{$S4}[@ AnswerFormatHelp("numbers") @]* +[`S_4=`][________________]{$S4}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/05.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_2_75.pg b/Contrib/CCCS/CalculusTwo/05.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_2_75.pg index 5279d3aa1c..a6b73cdf21 100644 --- a/Contrib/CCCS/CalculusTwo/05.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_2_75.pg +++ b/Contrib/CCCS/CalculusTwo/05.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_2_75.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserPopUp.pl", @@ -56,7 +56,7 @@ BEGIN_PGML An infinite series [`\displaystyle \sum_{n=1}^{\infty}a_n`] has partial sum [`S_n=[$a]-\frac{[$a]}{n+1}`]. Find the general term, [`a_n`], for the series and if the sequence of partial sums converge find its limit [`S`]. -(a) [`a_n=`][________________]{$f}[@ AnswerFormatHelp("formulas") @]* +(a) [`a_n=`][________________]{$f}[@ helpLink("formulas") @]* (b) The sequence of partial sums, [`S_n`], [_____]{$popup1} diff --git a/Contrib/CCCS/CalculusTwo/05.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_2_77.pg b/Contrib/CCCS/CalculusTwo/05.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_2_77.pg index 66651df2b4..b94cf78c74 100644 --- a/Contrib/CCCS/CalculusTwo/05.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_2_77.pg +++ b/Contrib/CCCS/CalculusTwo/05.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_2_77.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserPopUp.pl", @@ -56,7 +56,7 @@ BEGIN_PGML An infinite series [`\displaystyle \sum_{n=1}^{\infty}a_n`] has partial sum [`S_n=[$a]\sqrt{n}`]. Find the general term, [`a_n`], for the series and if the sequence of partial sums converge find its limit [`S`]. -(a) [`a_n=`][________________]{$f}[@ AnswerFormatHelp("formulas") @]* +(a) [`a_n=`][________________]{$f}[@ helpLink("formulas") @]* (b) The sequence of partial sums, [`S_n`], [_____]{$popup1} diff --git a/Contrib/CCCS/CalculusTwo/05.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_2_79.pg b/Contrib/CCCS/CalculusTwo/05.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_2_79.pg index 2294334b3e..7a8acb1199 100644 --- a/Contrib/CCCS/CalculusTwo/05.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_2_79.pg +++ b/Contrib/CCCS/CalculusTwo/05.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_2_79.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserPopUp.pl", @@ -59,15 +59,15 @@ $popup1 = PopUp( BEGIN_PGML -For the series [`\displaystyle \sum_{n=1}^{\infty} \frac{[$a]n}{n+[$a]}`], use the sequence of partial sums to determine if the series converges or diverges. Enter answers as exact values. +For the series [`\displaystyle \sum_{n=1}^{\infty} \frac{[$a]n}{n+[$a]}`], use the sequence of partial sums to determine if the series converges or diverges. Enter answers as exact values. -(a) [`S_1=`][________________]{$S1}[@ AnswerFormatHelp("numbers") @]* +(a) [`S_1=`][________________]{$S1}[@ helpLink("numbers") @]* -[`S_2=`][________________]{$S2}[@ AnswerFormatHelp("numbers") @]* +[`S_2=`][________________]{$S2}[@ helpLink("numbers") @]* -[`S_3=`][________________]{$S3}[@ AnswerFormatHelp("numbers") @]* +[`S_3=`][________________]{$S3}[@ helpLink("numbers") @]* -[`S_4=`][________________]{$S4}[@ AnswerFormatHelp("numbers") @]* +[`S_4=`][________________]{$S4}[@ helpLink("numbers") @]* (b) The sequence of partial sums, [`S_n`], [_____]{$popup1} diff --git a/Contrib/CCCS/CalculusTwo/05.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_2_81.pg b/Contrib/CCCS/CalculusTwo/05.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_2_81.pg index 33bcd43e43..2d86c8c18b 100644 --- a/Contrib/CCCS/CalculusTwo/05.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_2_81.pg +++ b/Contrib/CCCS/CalculusTwo/05.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_2_81.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserPopUp.pl", @@ -62,17 +62,17 @@ $popup1 = PopUp( BEGIN_PGML -For the series [`\displaystyle \sum_{n=1}^{\infty} \frac{[$a]}{(n+1)(n+2)}`], use the sequence of partial sums to determine if the series converges or diverges. (Hint: Use partial fraction decomposition.) Enter answers as exact values. +For the series [`\displaystyle \sum_{n=1}^{\infty} \frac{[$a]}{(n+1)(n+2)}`], use the sequence of partial sums to determine if the series converges or diverges. (Hint: Use partial fraction decomposition.) Enter answers as exact values. -(a) [`S_1=`][________________]{$S1}[@ AnswerFormatHelp("numbers") @]* +(a) [`S_1=`][________________]{$S1}[@ helpLink("numbers") @]* -[`S_2=`][________________]{$S2}[@ AnswerFormatHelp("numbers") @]* +[`S_2=`][________________]{$S2}[@ helpLink("numbers") @]* -[`S_3=`][________________]{$S3}[@ AnswerFormatHelp("numbers") @]* +[`S_3=`][________________]{$S3}[@ helpLink("numbers") @]* -[`S_4=`][________________]{$S4}[@ AnswerFormatHelp("numbers") @]* +[`S_4=`][________________]{$S4}[@ helpLink("numbers") @]* -(b) The general term for the sequence of partial sums is [`S_n=`][_________________]{$Sn}[@ AnswerFormatHelp("numbers") @]* +(b) The general term for the sequence of partial sums is [`S_n=`][_________________]{$Sn}[@ helpLink("numbers") @]* (c) The sequence of partial sums, [`S_n`], [_____]{$popup1} diff --git a/Contrib/CCCS/CalculusTwo/05.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_2_83-86.pg b/Contrib/CCCS/CalculusTwo/05.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_2_83-86.pg index 56b401abee..71208781ad 100644 --- a/Contrib/CCCS/CalculusTwo/05.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_2_83-86.pg +++ b/Contrib/CCCS/CalculusTwo/05.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_2_83-86.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserPopUp.pl", @@ -61,13 +61,13 @@ BEGIN_PGML Given that [`\displaystyle \sum_{n=1}^{\infty}a_n=[$a], \sum_{n=1}^{\infty}b_n=[$b], a_1=[$a1]`], and [`b_1=[$b1]`], find the values of the following series. - [`\displaystyle \sum_{n=1}^{\infty} (a_n+b_n)=`][________________]{$ans1}[@ AnswerFormatHelp("numbers") @]* + [`\displaystyle \sum_{n=1}^{\infty} (a_n+b_n)=`][________________]{$ans1}[@ helpLink("numbers") @]* - [`\displaystyle \sum_{n=1}^{\infty} (a_n-[$c]*b_n)=`][________________]{$ans2}[@ AnswerFormatHelp("numbers") @]* + [`\displaystyle \sum_{n=1}^{\infty} (a_n-[$c]*b_n)=`][________________]{$ans2}[@ helpLink("numbers") @]* - [`\displaystyle \sum_{n=2}^{\infty} (a_n-b_n)=`][________________]{$ans3}[@ AnswerFormatHelp("numbers") @]* + [`\displaystyle \sum_{n=2}^{\infty} (a_n-b_n)=`][________________]{$ans3}[@ helpLink("numbers") @]* - [`\displaystyle \sum_{n=1}^{\infty} ([$c]*a_{n+1}-[$d]*b_{n+1})=`][________________]{$ans4}[@ AnswerFormatHelp("numbers") @]* + [`\displaystyle \sum_{n=1}^{\infty} ([$c]*a_{n+1}-[$d]*b_{n+1})=`][________________]{$ans4}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/05.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_2_87.pg b/Contrib/CCCS/CalculusTwo/05.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_2_87.pg index 37163da8e1..2ca4a470fa 100644 --- a/Contrib/CCCS/CalculusTwo/05.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_2_87.pg +++ b/Contrib/CCCS/CalculusTwo/05.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_2_87.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", diff --git a/Contrib/CCCS/CalculusTwo/05.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_2_89.pg b/Contrib/CCCS/CalculusTwo/05.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_2_89.pg index b419e8dcac..e578dec7d7 100644 --- a/Contrib/CCCS/CalculusTwo/05.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_2_89.pg +++ b/Contrib/CCCS/CalculusTwo/05.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_2_89.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", @@ -72,7 +72,7 @@ BEGIN_PGML Does the geometric series [`[$a]+ \frac{[$a]}{[$b]}+\frac{[$a]}{[$b2]}+\frac{[$a]}{[$b3]}+\frac{[$a]}{[$b4]}+...`] converge or diverge? If it does converge, find its value. Enter answers as exact values. -(a) The series can be written as [`\displaystyle [$a]+ \frac{[$a]}{[$b]}+\frac{[$a]}{[$b2]}+\frac{[$a]}{[$b3]}+\frac{[$a]}{[$b4]}+...=\sum_{n=0}^{\infty} a_n \text{ where } a_n=`][___________________]{$an} +(a) The series can be written as [`\displaystyle [$a]+ \frac{[$a]}{[$b]}+\frac{[$a]}{[$b2]}+\frac{[$a]}{[$b3]}+\frac{[$a]}{[$b4]}+...=\sum_{n=0}^{\infty} a_n \text{ where } a_n=`][___________________]{$an} (b) The ratio for this geometric series is [`r=`][_______]{$r} and [`r`] is [___]{$popup2}, so this series [_____]{$popup1}. diff --git a/Contrib/CCCS/CalculusTwo/05.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_2_91.pg b/Contrib/CCCS/CalculusTwo/05.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_2_91.pg index f186316304..09860d5e69 100644 --- a/Contrib/CCCS/CalculusTwo/05.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_2_91.pg +++ b/Contrib/CCCS/CalculusTwo/05.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_2_91.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", @@ -61,7 +61,7 @@ BEGIN_PGML Does the geometric series [`[$a]+ \frac{[$a] \pi}{e}+\frac{[$a] \pi^2}{e^2}+\frac{[$a]\pi^3}{e^3}+\frac{[$a]\pi^4}{e^4}+...`] converge or diverge? If it does converge, find its value. Enter answers as exact values. -(a) The series can be written as [`\displaystyle [$a]+ \frac{[$a] \pi}{e}+\frac{[$a] \pi^2}{e^2}+\frac{[$a]\pi^3}{e^3}+\frac{[$a]\pi^4}{e^4}+...=\sum_{n=0}^{\infty} a_n \text{ where } a_n=`][____________]{$an} +(a) The series can be written as [`\displaystyle [$a]+ \frac{[$a] \pi}{e}+\frac{[$a] \pi^2}{e^2}+\frac{[$a]\pi^3}{e^3}+\frac{[$a]\pi^4}{e^4}+...=\sum_{n=0}^{\infty} a_n \text{ where } a_n=`][____________]{$an} (b) The ratio for this geometric series is [`r=`][_______]{$r} and [`r`] is [___]{$popup2}, so this series [_____]{$popup1} @@ -90,7 +90,7 @@ BEGIN_PGML Does the geometric series [`[$a]+ \frac{[$a] e}{\pi}+\frac{[$a] e^2}{\pi^2}+\frac{[$a]e^3}{\pi^3}+\frac{[$a]e^4}{\pi^4}+...`] converge or diverge? If it does converge, find its value. Enter answers as exact values. -(a) The series can be written as [`\displaystyle [$a]+ \frac{[$a] e}{\pi}+\frac{[$a] e^2}{\pi^2}+\frac{[$a]e^3}{\pi^3}+\frac{[$a]e^4}{\pi^4}+....=\sum_{n=0}^{\infty} a_n \text{ where } a_n=`][____________]{$an} +(a) The series can be written as [`\displaystyle [$a]+ \frac{[$a] e}{\pi}+\frac{[$a] e^2}{\pi^2}+\frac{[$a]e^3}{\pi^3}+\frac{[$a]e^4}{\pi^4}+....=\sum_{n=0}^{\infty} a_n \text{ where } a_n=`][____________]{$an} (b) The ratio for this geometric series is [`r=`][_______]{$r} and [`r`] is [___]{$popup2}, so this series [_____]{$popup1} diff --git a/Contrib/CCCS/CalculusTwo/05.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_2_94.pg b/Contrib/CCCS/CalculusTwo/05.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_2_94.pg index 4ad2bf1692..1f8202af27 100644 --- a/Contrib/CCCS/CalculusTwo/05.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_2_94.pg +++ b/Contrib/CCCS/CalculusTwo/05.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_2_94.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", @@ -55,7 +55,7 @@ Context("Fraction-NoDecimals"); BEGIN_PGML -Consider the series [`\displaystyle \sum_{n=1}^{\infty}a_n`] where [`a_1=[$b]`] and [`\frac{a_n}{a_{n+1}}=\frac{1}{[$a]} `] for [`n \geq 1`]. Write the sum [`\displaystyle \sum_{n=1}^{\infty}a_n`] as a geometric series in the form [`\displaystyle \sum_{n=1}^{\infty}ar^n`]. Then state whether the series converges or diverges. If the series does converge, find its value. +Consider the series [`\displaystyle \sum_{n=1}^{\infty}a_n`] where [`a_1=[$b]`] and [`\frac{a_n}{a_{n+1}}=\frac{1}{[$a]} `] for [`n \geq 1`]. Write the sum [`\displaystyle \sum_{n=1}^{\infty}a_n`] as a geometric series in the form [`\displaystyle \sum_{n=1}^{\infty}ar^n`]. Then state whether the series converges or diverges. If the series does converge, find its value. (a) [`\displaystyle \sum_{n=1}^{\infty}a_n = \sum_{n=1}^{\infty} `][__________________]{$ans} diff --git a/Contrib/CCCS/CalculusTwo/05.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_2_96.pg b/Contrib/CCCS/CalculusTwo/05.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_2_96.pg index 3331b8e4a4..bef47caebb 100644 --- a/Contrib/CCCS/CalculusTwo/05.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_2_96.pg +++ b/Contrib/CCCS/CalculusTwo/05.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_2_96.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", @@ -57,7 +57,7 @@ $ans2=Compute("1/($a(1+$r))")->reduce; BEGIN_PGML -Consider the series [`\displaystyle \sum_{n=1}^{\infty}a_n`] where [`a_1=\frac{1}{[$a]}`] and [`\frac{a_n}{a_{n+1}}=-[$a] `] for [`n \geq 1`]. Write the sum [`\displaystyle \sum_{n=1}^{\infty}a_n`] as a geometric series in the form [`\displaystyle \sum_{n=1}^{\infty}ar^n`]. Then state whether the series converges or diverges. If the series does converge, find its value. +Consider the series [`\displaystyle \sum_{n=1}^{\infty}a_n`] where [`a_1=\frac{1}{[$a]}`] and [`\frac{a_n}{a_{n+1}}=-[$a] `] for [`n \geq 1`]. Write the sum [`\displaystyle \sum_{n=1}^{\infty}a_n`] as a geometric series in the form [`\displaystyle \sum_{n=1}^{\infty}ar^n`]. Then state whether the series converges or diverges. If the series does converge, find its value. (a) [`\displaystyle \sum_{n=1}^{\infty}a_n = \sum_{n=1}^{\infty} `][__________________]{$ans} diff --git a/Contrib/CCCS/CalculusTwo/05.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_2_97.pg b/Contrib/CCCS/CalculusTwo/05.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_2_97.pg index c98d3021ee..560d325ecd 100644 --- a/Contrib/CCCS/CalculusTwo/05.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_2_97.pg +++ b/Contrib/CCCS/CalculusTwo/05.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_2_97.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", @@ -58,9 +58,9 @@ $ans2=Compute("1/($a(1+$r))")->reduce; BEGIN_PGML -Use the identity [`\displaystyle \frac{1}{1-y} = \sum_{n=0}^{\infty} y^n, \text{ for } |y|<1`] to express the function [`\frac{[$a]x}{1+x}`] as a geometric series. +Use the identity [`\displaystyle \frac{1}{1-y} = \sum_{n=0}^{\infty} y^n, \text{ for } |y|<1`] to express the function [`\frac{[$a]x}{1+x}`] as a geometric series. - [`\displaystyle \frac{[$a]x}{1+x} = \sum_{n=1}^{\infty} `][__________________]{$ans}[@ AnswerFormatHelp("formulas") @]* + [`\displaystyle \frac{[$a]x}{1+x} = \sum_{n=1}^{\infty} `][__________________]{$ans}[@ helpLink("formulas") @]* diff --git a/Contrib/CCCS/CalculusTwo/05.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_2_98.pg b/Contrib/CCCS/CalculusTwo/05.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_2_98.pg index de046c8e12..de13fb9180 100644 --- a/Contrib/CCCS/CalculusTwo/05.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_2_98.pg +++ b/Contrib/CCCS/CalculusTwo/05.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_2_98.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", @@ -32,7 +32,7 @@ loadMacros( ); #Context()->variables->are(n => "Real",x => "Real"); -Context()->variables->add(n => ['Real', limits=>[1,20], +Context()->variables->add(n => ['Real', limits=>[1,20], resolution=>1]); TEXT(beginproblem()); $showPartialCorrectAnswers = 1; @@ -59,9 +59,9 @@ $ans2=Compute("1/($a(1+$r))")->reduce; BEGIN_PGML -Use the identity [`\displaystyle \frac{1}{1-y} = \sum_{n=0}^{\infty} y^n, \text{ for } |y|<1`] to express the function [`\frac{[$a]\sqrt{x}}{1-x^{3/2}}`] as a geometric series. +Use the identity [`\displaystyle \frac{1}{1-y} = \sum_{n=0}^{\infty} y^n, \text{ for } |y|<1`] to express the function [`\frac{[$a]\sqrt{x}}{1-x^{3/2}}`] as a geometric series. - [`\displaystyle \frac{[$a]\sqrt{x}}{1-x^{3/2}} = \sum_{n=0}^{\infty} `][__________________]{$ans}[@ AnswerFormatHelp("formulas") @]* + [`\displaystyle \frac{[$a]\sqrt{x}}{1-x^{3/2}} = \sum_{n=0}^{\infty} `][__________________]{$ans}[@ helpLink("formulas") @]* diff --git a/Contrib/CCCS/CalculusTwo/05.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_2_99.pg b/Contrib/CCCS/CalculusTwo/05.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_2_99.pg index 7bdc3af4cd..f7db04a023 100644 --- a/Contrib/CCCS/CalculusTwo/05.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_2_99.pg +++ b/Contrib/CCCS/CalculusTwo/05.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_2_99.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", @@ -32,9 +32,9 @@ loadMacros( ); #Context()->variables->are(n => "Real",x => "Real"); -Context()->variables->add(n => ['Real', limits=>[1,20], +Context()->variables->add(n => ['Real', limits=>[1,20], resolution=>1]); - + TEXT(beginproblem()); $showPartialCorrectAnswers = 1; @@ -60,9 +60,9 @@ $ans2=Compute("1/($a(1+$r))")->reduce; BEGIN_PGML -Use the identity [`\displaystyle \frac{1}{1-y} = \sum_{n=0}^{\infty} y^n, \text{ for } |y|<1`] to express the function [`\frac{[$a]}{1+\sin^2(x)}`] as a geometric series. +Use the identity [`\displaystyle \frac{1}{1-y} = \sum_{n=0}^{\infty} y^n, \text{ for } |y|<1`] to express the function [`\frac{[$a]}{1+\sin^2(x)}`] as a geometric series. - [`\displaystyle \frac{[$a]}{1+\sin^2(x)} = \sum_{n=0}^{\infty} `][__________________]{$ans}[@ AnswerFormatHelp("formulas") @]* + [`\displaystyle \frac{[$a]}{1+\sin^2(x)} = \sum_{n=0}^{\infty} `][__________________]{$ans}[@ helpLink("formulas") @]* diff --git a/Contrib/CCCS/CalculusTwo/05.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_3_139.pg b/Contrib/CCCS/CalculusTwo/05.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_3_139.pg index ebe8a94d6c..162aeab885 100644 --- a/Contrib/CCCS/CalculusTwo/05.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_3_139.pg +++ b/Contrib/CCCS/CalculusTwo/05.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_3_139.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", diff --git a/Contrib/CCCS/CalculusTwo/05.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_3_140.pg b/Contrib/CCCS/CalculusTwo/05.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_3_140.pg index 3dc1ef1cc0..034a4a6772 100644 --- a/Contrib/CCCS/CalculusTwo/05.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_3_140.pg +++ b/Contrib/CCCS/CalculusTwo/05.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_3_140.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", diff --git a/Contrib/CCCS/CalculusTwo/05.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_3_145.pg b/Contrib/CCCS/CalculusTwo/05.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_3_145.pg index 9f6b4b5de4..34f1c74a8c 100644 --- a/Contrib/CCCS/CalculusTwo/05.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_3_145.pg +++ b/Contrib/CCCS/CalculusTwo/05.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_3_145.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", diff --git a/Contrib/CCCS/CalculusTwo/05.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_3_146.pg b/Contrib/CCCS/CalculusTwo/05.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_3_146.pg index 3de3d5a690..531e6670ac 100644 --- a/Contrib/CCCS/CalculusTwo/05.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_3_146.pg +++ b/Contrib/CCCS/CalculusTwo/05.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_3_146.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", diff --git a/Contrib/CCCS/CalculusTwo/05.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_3_153.pg b/Contrib/CCCS/CalculusTwo/05.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_3_153.pg index f95b620a11..bb8227b99e 100644 --- a/Contrib/CCCS/CalculusTwo/05.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_3_153.pg +++ b/Contrib/CCCS/CalculusTwo/05.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_3_153.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", @@ -64,9 +64,9 @@ $popup1 = PopUp( BEGIN_PGML -Does the p-series [`\displaystyle \sum_{n=1}^{\infty} [$an]`] converge or diverge? +Does the p-series [`\displaystyle \sum_{n=1}^{\infty} [$an]`] converge or diverge? -[`p=`][___________]{$p}[@ AnswerFormatHelp("numbers") @]* +[`p=`][___________]{$p}[@ helpLink("numbers") @]* [`\displaystyle \sum_{n=1}^{\infty} [$an]`] [_____]{$popup1} diff --git a/Contrib/CCCS/CalculusTwo/05.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_3_155.pg b/Contrib/CCCS/CalculusTwo/05.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_3_155.pg index 36c84187c3..d3d6bf3edd 100644 --- a/Contrib/CCCS/CalculusTwo/05.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_3_155.pg +++ b/Contrib/CCCS/CalculusTwo/05.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_3_155.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", @@ -63,7 +63,7 @@ $popup1 = PopUp( BEGIN_PGML -Does the p-series [`\displaystyle \sum_{n=1}^{\infty} \frac{1}{\sqrt[[$b]]{n^[$a]}}`] converge or diverge? +Does the p-series [`\displaystyle \sum_{n=1}^{\infty} \frac{1}{\sqrt[[$b]]{n^[$a]}}`] converge or diverge? [`p=`][___________]{$p} diff --git a/Contrib/CCCS/CalculusTwo/05.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_3_156.pg b/Contrib/CCCS/CalculusTwo/05.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_3_156.pg index 85b2f80da3..a6f4a8a617 100644 --- a/Contrib/CCCS/CalculusTwo/05.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_3_156.pg +++ b/Contrib/CCCS/CalculusTwo/05.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_3_156.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", @@ -51,7 +51,7 @@ $popup1 = PopUp( BEGIN_PGML -Does the p-series [`\displaystyle \sum_{n=1}^{\infty} \frac{n^e}{n^\pi}`] converge or diverge? +Does the p-series [`\displaystyle \sum_{n=1}^{\infty} \frac{n^e}{n^\pi}`] converge or diverge? [`p=`][___________]{pi-e} @@ -72,7 +72,7 @@ $popup1 = PopUp( BEGIN_PGML -Does the p-series [`\displaystyle \sum_{n=1}^{\infty} \frac{n^e}{n^{\pi+2}}`] converge or diverge? +Does the p-series [`\displaystyle \sum_{n=1}^{\infty} \frac{n^e}{n^{\pi+2}}`] converge or diverge? [`p=`][___________]{pi+2-e} diff --git a/Contrib/CCCS/CalculusTwo/05.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_3_159.pg b/Contrib/CCCS/CalculusTwo/05.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_3_159.pg index 579d0a8b44..2d3f6f77ec 100644 --- a/Contrib/CCCS/CalculusTwo/05.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_3_159.pg +++ b/Contrib/CCCS/CalculusTwo/05.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_3_159.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", @@ -56,7 +56,7 @@ $popup1 = PopUp( BEGIN_PGML -Use the integral test to determine if the series [`\displaystyle \sum_{n=1}^{\infty} \frac{1}{\sqrt[[$a]]{n+[$b]}}`] converges or diverges. +Use the integral test to determine if the series [`\displaystyle \sum_{n=1}^{\infty} \frac{1}{\sqrt[[$a]]{n+[$b]}}`] converges or diverges. [`\displaystyle \int_1^{\infty} \frac{1}{\sqrt[[$a]]{x+[$b]}}dx = `][_________]{infinity} (Enter a number, [`\infty`], or [`-\infty`].) diff --git a/Contrib/CCCS/CalculusTwo/05.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_3_162.pg b/Contrib/CCCS/CalculusTwo/05.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_3_162.pg index e7f6c97c93..3c1e4b6581 100644 --- a/Contrib/CCCS/CalculusTwo/05.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_3_162.pg +++ b/Contrib/CCCS/CalculusTwo/05.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_3_162.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", @@ -56,7 +56,7 @@ $ans=Compute("pi/($a4)"); BEGIN_PGML -Use the integral test to determine if the series [`\displaystyle \sum_{n=0}^{\infty}\frac{e^{[$a]n}}{1+e^{[$a2]n}}`] converges or diverges. +Use the integral test to determine if the series [`\displaystyle \sum_{n=0}^{\infty}\frac{e^{[$a]n}}{1+e^{[$a2]n}}`] converges or diverges. [`\displaystyle \int_0^{\infty} \frac{e^{[$a]x}}{1+e^{[$a2]x}}dx = `][_________________]{$ans} (Enter a number, [`\infty`], or [`-\infty`].) diff --git a/Contrib/CCCS/CalculusTwo/05.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_3_163.pg b/Contrib/CCCS/CalculusTwo/05.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_3_163.pg index f195bb728c..52db280c44 100644 --- a/Contrib/CCCS/CalculusTwo/05.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_3_163.pg +++ b/Contrib/CCCS/CalculusTwo/05.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_3_163.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", @@ -55,7 +55,7 @@ $ans=Compute("pi/4"); BEGIN_PGML -Use the integral test to determine if the series [`\displaystyle \sum_{n=0}^{\infty}\frac{[$a]n}{[$as]+n^4}`] converges or diverges. +Use the integral test to determine if the series [`\displaystyle \sum_{n=0}^{\infty}\frac{[$a]n}{[$as]+n^4}`] converges or diverges. [`\displaystyle \int_0^{\infty} \frac{[$a]x}{[$as]+x^4}dx = `][_________________]{$ans} (Enter a number, [`\infty`], or [`-\infty`].) diff --git a/Contrib/CCCS/CalculusTwo/05.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_3_164.pg b/Contrib/CCCS/CalculusTwo/05.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_3_164.pg index af4e0d7646..40d76316f6 100644 --- a/Contrib/CCCS/CalculusTwo/05.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_3_164.pg +++ b/Contrib/CCCS/CalculusTwo/05.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_3_164.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", @@ -65,7 +65,7 @@ $ans=Compute("(ln(2))^(-$a+1)/($a-1)"); BEGIN_PGML -Use the integral test to determine if the series [`\displaystyle \sum_{n=2}^{\infty}[$fun]`] converges or diverges. +Use the integral test to determine if the series [`\displaystyle \sum_{n=2}^{\infty}[$fun]`] converges or diverges. [`\displaystyle \int_2^{\infty} [$funx] dx = `][_________________]{$ans} (Enter a number, [`\infty`], or [`-\infty`].) diff --git a/Contrib/CCCS/CalculusTwo/05.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_3_165.pg b/Contrib/CCCS/CalculusTwo/05.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_3_165.pg index d01fa10221..d986476167 100644 --- a/Contrib/CCCS/CalculusTwo/05.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_3_165.pg +++ b/Contrib/CCCS/CalculusTwo/05.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_3_165.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", diff --git a/Contrib/CCCS/CalculusTwo/05.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_3_169.pg b/Contrib/CCCS/CalculusTwo/05.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_3_169.pg index eed419edfb..f968748491 100644 --- a/Contrib/CCCS/CalculusTwo/05.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_3_169.pg +++ b/Contrib/CCCS/CalculusTwo/05.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_3_169.pg @@ -22,7 +22,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", diff --git a/Contrib/CCCS/CalculusTwo/05.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_3_171.pg b/Contrib/CCCS/CalculusTwo/05.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_3_171.pg index 27922ef47d..b8d25d2867 100644 --- a/Contrib/CCCS/CalculusTwo/05.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_3_171.pg +++ b/Contrib/CCCS/CalculusTwo/05.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_3_171.pg @@ -22,7 +22,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", diff --git a/Contrib/CCCS/CalculusTwo/05.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_4_196.pg b/Contrib/CCCS/CalculusTwo/05.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_4_196.pg index 4e222a8356..7a591a5c0d 100644 --- a/Contrib/CCCS/CalculusTwo/05.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_4_196.pg +++ b/Contrib/CCCS/CalculusTwo/05.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_4_196.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", diff --git a/Contrib/CCCS/CalculusTwo/05.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_4_198.pg b/Contrib/CCCS/CalculusTwo/05.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_4_198.pg index e1797e9568..3ab805726b 100644 --- a/Contrib/CCCS/CalculusTwo/05.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_4_198.pg +++ b/Contrib/CCCS/CalculusTwo/05.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_4_198.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", diff --git a/Contrib/CCCS/CalculusTwo/05.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_4_201.pg b/Contrib/CCCS/CalculusTwo/05.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_4_201.pg index 016650f8b6..a034c61ad0 100644 --- a/Contrib/CCCS/CalculusTwo/05.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_4_201.pg +++ b/Contrib/CCCS/CalculusTwo/05.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_4_201.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", diff --git a/Contrib/CCCS/CalculusTwo/05.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_4_206.pg b/Contrib/CCCS/CalculusTwo/05.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_4_206.pg index 87adcb3db2..7af12efee9 100644 --- a/Contrib/CCCS/CalculusTwo/05.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_4_206.pg +++ b/Contrib/CCCS/CalculusTwo/05.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_4_206.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", @@ -66,7 +66,7 @@ $p=Compute("13/12"); BEGIN_PGML -Use the comparison test to determine if the series [`\displaystyle \sum_{n=1}^{\infty} \frac{\sqrt[4]{n}}{\sqrt[3]{n^4+n^2}}`] converges or diverges. +Use the comparison test to determine if the series [`\displaystyle \sum_{n=1}^{\infty} \frac{\sqrt[4]{n}}{\sqrt[3]{n^4+n^2}}`] converges or diverges. Compare [`\displaystyle \sum_{n=1}^{\infty} \frac{\sqrt[4]{n}}{\sqrt[3]{n^4+n^2}}`] to a [`p`] series with [`p=`][________________]{$p}. diff --git a/Contrib/CCCS/CalculusTwo/05.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_4_210.pg b/Contrib/CCCS/CalculusTwo/05.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_4_210.pg index ff322edb0b..9338502d6d 100644 --- a/Contrib/CCCS/CalculusTwo/05.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_4_210.pg +++ b/Contrib/CCCS/CalculusTwo/05.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_4_210.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", @@ -71,7 +71,7 @@ $popup2 = PopUp( BEGIN_PGML -Use the limit comparison test to determine if the series [`\displaystyle \sum_{n=1}^{\infty}a_n = \sum_{n=1}^{\infty} \ln\left(1 + \frac{[$L]}{[$d]}\right)`] converges or diverges. +Use the limit comparison test to determine if the series [`\displaystyle \sum_{n=1}^{\infty}a_n = \sum_{n=1}^{\infty} \ln\left(1 + \frac{[$L]}{[$d]}\right)`] converges or diverges. (a) Compare to a [`p`] series, [`\displaystyle \sum_{n=1}^{\infty}b_n =\sum_{n=1}^{\infty}\frac{1}{n^p}`], where [`p=`][________________]{$p}, which [_____]{$popup1}. diff --git a/Contrib/CCCS/CalculusTwo/05.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_4_212.pg b/Contrib/CCCS/CalculusTwo/05.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_4_212.pg index 6659bc9cbb..90a3d6ef47 100644 --- a/Contrib/CCCS/CalculusTwo/05.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_4_212.pg +++ b/Contrib/CCCS/CalculusTwo/05.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_4_212.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", @@ -60,7 +60,7 @@ $popup2 = PopUp( BEGIN_PGML -Use the limit comparison test to determine if the series [`\displaystyle \sum_{n=1}^{\infty}a_n = \sum_{n=1}^{\infty} \frac{[$L]}{[$d]}`] converges or diverges. +Use the limit comparison test to determine if the series [`\displaystyle \sum_{n=1}^{\infty}a_n = \sum_{n=1}^{\infty} \frac{[$L]}{[$d]}`] converges or diverges. Compare to a [`p`] series, [`\displaystyle \sum_{n=1}^{\infty}b_n =\sum_{n=1}^{\infty}\frac{1}{n^p}`], where [`p=`] [________________]{$p}, which [_____]{$popup1}. diff --git a/Contrib/CCCS/CalculusTwo/05.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_4_215.pg b/Contrib/CCCS/CalculusTwo/05.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_4_215.pg index c72bd22030..f41227c6e4 100644 --- a/Contrib/CCCS/CalculusTwo/05.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_4_215.pg +++ b/Contrib/CCCS/CalculusTwo/05.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_4_215.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", @@ -56,7 +56,7 @@ $popup2 = PopUp( BEGIN_PGML -Use the limit comparison test to determine if the series [`\displaystyle \sum_{n=1}^{\infty}a_n = \sum_{n=1}^{\infty} \frac{[$L]}{n^{1+\frac{1}{n}}}`] converges or diverges. +Use the limit comparison test to determine if the series [`\displaystyle \sum_{n=1}^{\infty}a_n = \sum_{n=1}^{\infty} \frac{[$L]}{n^{1+\frac{1}{n}}}`] converges or diverges. Compare to the harmonic series, [`\displaystyle \sum_{n=1}^{\infty}b_n =\sum_{n=1}^{\infty}\frac{1}{n}`], which [_____]{$popup1}. diff --git a/Contrib/CCCS/CalculusTwo/05.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_4_217.pg b/Contrib/CCCS/CalculusTwo/05.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_4_217.pg index 211b896d62..b407ccafdb 100644 --- a/Contrib/CCCS/CalculusTwo/05.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_4_217.pg +++ b/Contrib/CCCS/CalculusTwo/05.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_4_217.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", @@ -57,7 +57,7 @@ $popup2 = PopUp( BEGIN_PGML -Use the limit comparison test to determine if the series [`\displaystyle \sum_{n=1}^{\infty}a_n = \sum_{n=1}^{\infty} \frac{[$L]}{[$a]^{(1+\frac{1}{n})}n^{(1+\frac{1}{n})}}`] converges or diverges. +Use the limit comparison test to determine if the series [`\displaystyle \sum_{n=1}^{\infty}a_n = \sum_{n=1}^{\infty} \frac{[$L]}{[$a]^{(1+\frac{1}{n})}n^{(1+\frac{1}{n})}}`] converges or diverges. Compare to the harmonic series, [`\displaystyle \sum_{n=1}^{\infty}b_n =\sum_{n=1}^{\infty}\frac{1}{n}`], which [_____]{$popup1}. diff --git a/Contrib/CCCS/CalculusTwo/05.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_4_218.pg b/Contrib/CCCS/CalculusTwo/05.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_4_218.pg index 7771082e03..f031567a1b 100644 --- a/Contrib/CCCS/CalculusTwo/05.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_4_218.pg +++ b/Contrib/CCCS/CalculusTwo/05.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_4_218.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", @@ -58,7 +58,7 @@ $popup2 = PopUp( BEGIN_PGML -Use the limit comparison test to determine if the series [`\displaystyle \sum_{n=1}^{\infty}a_n = \sum_{n=1}^{\infty} [$L]\left(1-\cos\left(\frac{1}{n}\right) \right)`] converges or diverges. +Use the limit comparison test to determine if the series [`\displaystyle \sum_{n=1}^{\infty}a_n = \sum_{n=1}^{\infty} [$L]\left(1-\cos\left(\frac{1}{n}\right) \right)`] converges or diverges. Compare to a [`p`] series, [`\displaystyle \sum_{n=1}^{\infty}b_n =\sum_{n=1}^{\infty}\frac{1}{n^p}`], where [`p=`] [________________]{2}, which [_____]{$popup1}. diff --git a/Contrib/CCCS/CalculusTwo/05.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_4_219.pg b/Contrib/CCCS/CalculusTwo/05.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_4_219.pg index bce5b95d82..aaad668587 100644 --- a/Contrib/CCCS/CalculusTwo/05.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_4_219.pg +++ b/Contrib/CCCS/CalculusTwo/05.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_4_219.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", @@ -65,7 +65,7 @@ $popup2 = PopUp( BEGIN_PGML -Use the limit comparison test to determine if the series [`\displaystyle \sum_{n=1}^{\infty}a_n = \sum_{n=1}^{\infty} [$d]\left(\tan^{-1}(n)-\frac{\pi}{2}\right)`] converges or diverges. +Use the limit comparison test to determine if the series [`\displaystyle \sum_{n=1}^{\infty}a_n = \sum_{n=1}^{\infty} [$d]\left(\tan^{-1}(n)-\frac{\pi}{2}\right)`] converges or diverges. Compare to a [`p`] series, [`\displaystyle \sum_{n=1}^{\infty}b_n =\sum_{n=1}^{\infty}\frac{1}{n^p}`], where [`p=`] [________________]{$p}, which [_____]{$popup1}. diff --git a/Contrib/CCCS/CalculusTwo/05.5/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_5_251.pg b/Contrib/CCCS/CalculusTwo/05.5/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_5_251.pg index f493fb5075..0f851f0a6c 100644 --- a/Contrib/CCCS/CalculusTwo/05.5/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_5_251.pg +++ b/Contrib/CCCS/CalculusTwo/05.5/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_5_251.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", diff --git a/Contrib/CCCS/CalculusTwo/05.5/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_5_253.pg b/Contrib/CCCS/CalculusTwo/05.5/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_5_253.pg index 23b77d8a3b..ac60ba9903 100644 --- a/Contrib/CCCS/CalculusTwo/05.5/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_5_253.pg +++ b/Contrib/CCCS/CalculusTwo/05.5/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_5_253.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "scaffold.pl", diff --git a/Contrib/CCCS/CalculusTwo/05.5/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_5_254.pg b/Contrib/CCCS/CalculusTwo/05.5/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_5_254.pg index 04ef83e84d..fe580c3fc0 100644 --- a/Contrib/CCCS/CalculusTwo/05.5/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_5_254.pg +++ b/Contrib/CCCS/CalculusTwo/05.5/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_5_254.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", diff --git a/Contrib/CCCS/CalculusTwo/05.5/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_5_257.pg b/Contrib/CCCS/CalculusTwo/05.5/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_5_257.pg index b44170317e..d538a22098 100644 --- a/Contrib/CCCS/CalculusTwo/05.5/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_5_257.pg +++ b/Contrib/CCCS/CalculusTwo/05.5/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_5_257.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "scaffold.pl", diff --git a/Contrib/CCCS/CalculusTwo/05.5/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_5_258.pg b/Contrib/CCCS/CalculusTwo/05.5/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_5_258.pg index 452b8d3650..a044256c90 100644 --- a/Contrib/CCCS/CalculusTwo/05.5/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_5_258.pg +++ b/Contrib/CCCS/CalculusTwo/05.5/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_5_258.pg @@ -21,7 +21,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "scaffold.pl", diff --git a/Contrib/CCCS/CalculusTwo/05.5/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_5_260.pg b/Contrib/CCCS/CalculusTwo/05.5/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_5_260.pg index f7e89d42c5..ea89406af9 100644 --- a/Contrib/CCCS/CalculusTwo/05.5/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_5_260.pg +++ b/Contrib/CCCS/CalculusTwo/05.5/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_5_260.pg @@ -21,7 +21,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "scaffold.pl", diff --git a/Contrib/CCCS/CalculusTwo/05.5/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_5_264.pg b/Contrib/CCCS/CalculusTwo/05.5/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_5_264.pg index c0ba13e7ed..d15dfbeaa0 100644 --- a/Contrib/CCCS/CalculusTwo/05.5/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_5_264.pg +++ b/Contrib/CCCS/CalculusTwo/05.5/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_5_264.pg @@ -21,7 +21,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "scaffold.pl", diff --git a/Contrib/CCCS/CalculusTwo/05.5/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_5_276.pg b/Contrib/CCCS/CalculusTwo/05.5/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_5_276.pg index 7ea20d2c69..e9cc325bfd 100644 --- a/Contrib/CCCS/CalculusTwo/05.5/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_5_276.pg +++ b/Contrib/CCCS/CalculusTwo/05.5/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_5_276.pg @@ -21,7 +21,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "scaffold.pl", diff --git a/Contrib/CCCS/CalculusTwo/05.5/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_5_278.pg b/Contrib/CCCS/CalculusTwo/05.5/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_5_278.pg index 9dbc48a1b0..937b00f40a 100644 --- a/Contrib/CCCS/CalculusTwo/05.5/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_5_278.pg +++ b/Contrib/CCCS/CalculusTwo/05.5/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_5_278.pg @@ -21,7 +21,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "scaffold.pl", @@ -41,7 +41,7 @@ $showPartialCorrectAnswers = 1; $choice=non_zero_random(-1,1,1); $a=random(1,3,2); if($choice==-1){ -$bn = Formula("sin(pi*n/2)/n")->reduce; +$bn = Formula("sin(pi*n/2)/n")->reduce; $pn=Formula("1/(2n-1)"); $popup1 = PopUp( ["?","Converges.", "Diverges."], "Diverges.",); diff --git a/Contrib/CCCS/CalculusTwo/05.5/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_5_280.pg b/Contrib/CCCS/CalculusTwo/05.5/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_5_280.pg index 0794f9a37b..d279f58ed7 100644 --- a/Contrib/CCCS/CalculusTwo/05.5/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_5_280.pg +++ b/Contrib/CCCS/CalculusTwo/05.5/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_5_280.pg @@ -21,7 +21,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", diff --git a/Contrib/CCCS/CalculusTwo/05.5/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_5_283.pg b/Contrib/CCCS/CalculusTwo/05.5/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_5_283.pg index b229a35524..9dd6b0bb91 100644 --- a/Contrib/CCCS/CalculusTwo/05.5/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_5_283.pg +++ b/Contrib/CCCS/CalculusTwo/05.5/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_5_283.pg @@ -21,7 +21,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", diff --git a/Contrib/CCCS/CalculusTwo/05.5/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_5_295-296.pg b/Contrib/CCCS/CalculusTwo/05.5/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_5_295-296.pg index c1e42ee537..f41ae4468a 100644 --- a/Contrib/CCCS/CalculusTwo/05.5/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_5_295-296.pg +++ b/Contrib/CCCS/CalculusTwo/05.5/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_5_295-296.pg @@ -21,7 +21,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", diff --git a/Contrib/CCCS/CalculusTwo/05.6/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_6_317.pg b/Contrib/CCCS/CalculusTwo/05.6/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_6_317.pg index 527677b277..4ad55591d6 100644 --- a/Contrib/CCCS/CalculusTwo/05.6/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_6_317.pg +++ b/Contrib/CCCS/CalculusTwo/05.6/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_6_317.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", @@ -53,7 +53,7 @@ $popup = PopUp( ["?","The series converges because 0<= r<1.", "The series diver BEGIN_PGML -Use the ratio test to determine if [`\displaystyle \sum_{n=1}^{\infty} \frac{1}{(n+[$a])!}`] converges, diverges, or if the ratio test is inconclusive. +Use the ratio test to determine if [`\displaystyle \sum_{n=1}^{\infty} \frac{1}{(n+[$a])!}`] converges, diverges, or if the ratio test is inconclusive. Using the ratio test, the ratio is [`r=`][________]{$r} so [_]{$popup} diff --git a/Contrib/CCCS/CalculusTwo/05.6/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_6_319.pg b/Contrib/CCCS/CalculusTwo/05.6/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_6_319.pg index 4a10fb9de2..7fa44ab0a9 100644 --- a/Contrib/CCCS/CalculusTwo/05.6/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_6_319.pg +++ b/Contrib/CCCS/CalculusTwo/05.6/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_6_319.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", @@ -53,7 +53,7 @@ $popup = PopUp( ["?","The series converges because 0<= r<1.", "The series diver BEGIN_PGML -Use the ratio test to determine if [`\displaystyle \sum_{n=1}^{\infty} \frac{n^{[$a]}}{[$a]^n}`] converges, diverges, or if the ratio test is inconclusive. +Use the ratio test to determine if [`\displaystyle \sum_{n=1}^{\infty} \frac{n^{[$a]}}{[$a]^n}`] converges, diverges, or if the ratio test is inconclusive. Using the ratio test, the ratio is [`r=`][________]{$r} so [_]{$popup} diff --git a/Contrib/CCCS/CalculusTwo/05.6/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_6_321.pg b/Contrib/CCCS/CalculusTwo/05.6/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_6_321.pg index 4e31287a89..9219b69da2 100644 --- a/Contrib/CCCS/CalculusTwo/05.6/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_6_321.pg +++ b/Contrib/CCCS/CalculusTwo/05.6/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_6_321.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", @@ -54,7 +54,7 @@ $popup = PopUp( ["?","The series converges because 0<= r<1.", "The series diver BEGIN_PGML -Use the ratio test to determine if [`\displaystyle \sum_{n=1}^{\infty} \frac{(n!)^{[$a]}}{([$a]n)!}`] converges, diverges, or if the ratio test is inconclusive. +Use the ratio test to determine if [`\displaystyle \sum_{n=1}^{\infty} \frac{(n!)^{[$a]}}{([$a]n)!}`] converges, diverges, or if the ratio test is inconclusive. Using the ratio test, [`r=`][________]{$r} so [_]{$popup} diff --git a/Contrib/CCCS/CalculusTwo/05.6/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_6_323.pg b/Contrib/CCCS/CalculusTwo/05.6/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_6_323.pg index 8733ab99fa..227e9b2b91 100644 --- a/Contrib/CCCS/CalculusTwo/05.6/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_6_323.pg +++ b/Contrib/CCCS/CalculusTwo/05.6/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_6_323.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", @@ -58,7 +58,7 @@ $popup = PopUp( ["?","The series converges because 0<= r<1.", "The series diver BEGIN_PGML -Use the ratio test to determine if [`\displaystyle \sum_{n=1}^{\infty} \frac{([$a]n)!}{n^{[$a]n}}`] converges, diverges, or if the ratio test is inconclusive. +Use the ratio test to determine if [`\displaystyle \sum_{n=1}^{\infty} \frac{([$a]n)!}{n^{[$a]n}}`] converges, diverges, or if the ratio test is inconclusive. Using the ratio test, [`r=`][________]{$r} so [_]{$popup} diff --git a/Contrib/CCCS/CalculusTwo/05.6/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_6_325.pg b/Contrib/CCCS/CalculusTwo/05.6/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_6_325.pg index 44355e73cc..dbc434e56a 100644 --- a/Contrib/CCCS/CalculusTwo/05.6/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_6_325.pg +++ b/Contrib/CCCS/CalculusTwo/05.6/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_6_325.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", @@ -50,7 +50,7 @@ $popup = PopUp( ["?","The series converges because 0<= r<1.", "The series diver BEGIN_PGML -Use the ratio test to determine if [`\displaystyle \sum_{n=1}^{\infty} \frac{n!}{(n/e)^n}`] converges, diverges, or if the ratio test is inconclusive. +Use the ratio test to determine if [`\displaystyle \sum_{n=1}^{\infty} \frac{n!}{(n/e)^n}`] converges, diverges, or if the ratio test is inconclusive. Using the ratio test, [`r=`][________]{$r} so [_]{$popup} @@ -67,7 +67,7 @@ $popup = PopUp( ["?","The series converges because 0<= r<1.", "The series diver BEGIN_PGML -Use the ratio test to determine if [`\displaystyle \sum_{n=1}^{\infty} \frac{n!}{(n/\pi)^n}`] converges, diverges, or if the ratio test is inconclusive. +Use the ratio test to determine if [`\displaystyle \sum_{n=1}^{\infty} \frac{n!}{(n/\pi)^n}`] converges, diverges, or if the ratio test is inconclusive. Using the ratio test, [`r=`][________]{$r} so [_]{$popup} diff --git a/Contrib/CCCS/CalculusTwo/05.6/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_6_329.pg b/Contrib/CCCS/CalculusTwo/05.6/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_6_329.pg index 309f2673ca..aacb3210ef 100644 --- a/Contrib/CCCS/CalculusTwo/05.6/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_6_329.pg +++ b/Contrib/CCCS/CalculusTwo/05.6/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_6_329.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", @@ -65,7 +65,7 @@ $popup = PopUp( ["?","The series converges because 0<= p<1.", "The series diver BEGIN_PGML -Use the root test to determine if [`\displaystyle \sum_{n=1}^{\infty} \left(\frac{[$a]n^2-1}{[$b]n^2+[$c]}\right)^n`] converges, diverges, or if the root test is inconclusive. +Use the root test to determine if [`\displaystyle \sum_{n=1}^{\infty} \left(\frac{[$a]n^2-1}{[$b]n^2+[$c]}\right)^n`] converges, diverges, or if the root test is inconclusive. Using the root test, [`\rho=`][________]{$r} so [_]{$popup} diff --git a/Contrib/CCCS/CalculusTwo/05.6/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_6_330.pg b/Contrib/CCCS/CalculusTwo/05.6/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_6_330.pg index f7118cc5e2..ce9063e173 100644 --- a/Contrib/CCCS/CalculusTwo/05.6/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_6_330.pg +++ b/Contrib/CCCS/CalculusTwo/05.6/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_6_330.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", @@ -52,7 +52,7 @@ $popup = PopUp( ["?","The series converges because 0<= p<1.", "The series diver BEGIN_PGML -Use the root test to determine if [`\displaystyle \sum_{n=1}^{\infty} \frac{(\ln(n))^{[$a]n}}{n^n}`] converges, diverges, or if the root test is inconclusive. +Use the root test to determine if [`\displaystyle \sum_{n=1}^{\infty} \frac{(\ln(n))^{[$a]n}}{n^n}`] converges, diverges, or if the root test is inconclusive. Using the root test, [`\rho=`][________]{$r} so [_]{$popup} diff --git a/Contrib/CCCS/CalculusTwo/05.6/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_6_333.pg b/Contrib/CCCS/CalculusTwo/05.6/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_6_333.pg index b3a82c3940..368711c649 100644 --- a/Contrib/CCCS/CalculusTwo/05.6/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_6_333.pg +++ b/Contrib/CCCS/CalculusTwo/05.6/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_6_333.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", @@ -62,7 +62,7 @@ $popup = PopUp( ["?","The series converges because 0<= p<1.", "The series diver BEGIN_PGML -Use the root test to determine if [`\displaystyle \sum_{n=1}^{\infty} [$fun]`] converges, diverges, or if the root test is inconclusive. +Use the root test to determine if [`\displaystyle \sum_{n=1}^{\infty} [$fun]`] converges, diverges, or if the root test is inconclusive. Using the root test, [`\rho=`][________]{$r} so [_]{$popup} diff --git a/Contrib/CCCS/CalculusTwo/05.6/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_6_334.pg b/Contrib/CCCS/CalculusTwo/05.6/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_6_334.pg index c265f9e5fc..fb7e3fbcd8 100644 --- a/Contrib/CCCS/CalculusTwo/05.6/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_6_334.pg +++ b/Contrib/CCCS/CalculusTwo/05.6/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_6_334.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", @@ -62,7 +62,7 @@ $popup = PopUp( ["?","The series converges because 0<= p<1.", "The series diver BEGIN_PGML -Use the root test to determine if [`\displaystyle \sum_{n=1}^{\infty} [$fun]`] converges, diverges, or if the root test is inconclusive. +Use the root test to determine if [`\displaystyle \sum_{n=1}^{\infty} [$fun]`] converges, diverges, or if the root test is inconclusive. Using the root test, [`\rho=`][________]{$r} so [_]{$popup} diff --git a/Contrib/CCCS/CalculusTwo/05.6/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_6_336.pg b/Contrib/CCCS/CalculusTwo/05.6/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_6_336.pg index 6f908902aa..6cf9fd28c6 100644 --- a/Contrib/CCCS/CalculusTwo/05.6/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_6_336.pg +++ b/Contrib/CCCS/CalculusTwo/05.6/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_6_336.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", @@ -51,7 +51,7 @@ $popup = PopUp( ["?","The series converges because 0<= p<1.", "The series diver BEGIN_PGML -Use the root test to determine if [`\displaystyle \sum_{n=1}^{\infty} \frac{1}{([$a]+\ln(n))^{[$b]n}}`] converges, diverges, or if the root test is inconclusive. +Use the root test to determine if [`\displaystyle \sum_{n=1}^{\infty} \frac{1}{([$a]+\ln(n))^{[$b]n}}`] converges, diverges, or if the root test is inconclusive. Using the root test, [`\rho=`][________]{$r} so [_]{$popup} diff --git a/Contrib/CCCS/CalculusTwo/05.6/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_6_341.pg b/Contrib/CCCS/CalculusTwo/05.6/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_6_341.pg index 4b5a9f8159..7d57a79ddd 100644 --- a/Contrib/CCCS/CalculusTwo/05.6/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_6_341.pg +++ b/Contrib/CCCS/CalculusTwo/05.6/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_6_341.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", @@ -65,7 +65,7 @@ $popup3 = PopUp( ["?","the series converges.", "the series diverges."], BEGIN_PGML -Use the ratio or root test to determine if [`\displaystyle \sum_{n=1}^{\infty} \left(1+\frac{[$a]}{n}\right)^{n^2}`] converges or diverges. +Use the ratio or root test to determine if [`\displaystyle \sum_{n=1}^{\infty} \left(1+\frac{[$a]}{n}\right)^{n^2}`] converges or diverges. Using the [_]{$popup1} with [_]{$popup2} [`=`][________]{$r} we can conclude [_]{$popup3} diff --git a/Contrib/CCCS/CalculusTwo/05.6/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_6_344.pg b/Contrib/CCCS/CalculusTwo/05.6/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_6_344.pg index ccdc42c73f..ce99b6f9e5 100644 --- a/Contrib/CCCS/CalculusTwo/05.6/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_6_344.pg +++ b/Contrib/CCCS/CalculusTwo/05.6/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_6_344.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", @@ -56,7 +56,7 @@ $popup3 = PopUp( ["?","the series converges.", "the series diverges."], BEGIN_PGML -Use the ratio or root test to determine if [`\displaystyle \sum_{n=1}^{\infty} (n^{(1/n)}-[$a])^n`] converges or diverges. +Use the ratio or root test to determine if [`\displaystyle \sum_{n=1}^{\infty} (n^{(1/n)}-[$a])^n`] converges or diverges. Using the [_]{$popup1} with [_]{$popup2} [`=`][________]{$r} we can conclude [_]{$popup3} diff --git a/Contrib/CCCS/CalculusTwo/05.6/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_6_345.pg b/Contrib/CCCS/CalculusTwo/05.6/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_6_345.pg index 9a34863610..6c6409f9ca 100644 --- a/Contrib/CCCS/CalculusTwo/05.6/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_6_345.pg +++ b/Contrib/CCCS/CalculusTwo/05.6/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_6_345.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", @@ -59,7 +59,7 @@ $popup3 = PopUp( ["?","the series converges.", "the series diverges."], BEGIN_PGML -Use the ratio or root test to determine if [`\displaystyle \sum_{n=1}^{\infty} \frac{[$a]^{n^2}}{[$b]^{n^3}}`] converges or diverges. +Use the ratio or root test to determine if [`\displaystyle \sum_{n=1}^{\infty} \frac{[$a]^{n^2}}{[$b]^{n^3}}`] converges or diverges. Using the [_]{$popup1} with [_]{$popup2} [`=`][________]{$r} we can conclude [_]{$popup3} diff --git a/Contrib/CCCS/CalculusTwo/05.6/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_6_346.pg b/Contrib/CCCS/CalculusTwo/05.6/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_6_346.pg index 0f80f5bd89..590e9ad80f 100644 --- a/Contrib/CCCS/CalculusTwo/05.6/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_6_346.pg +++ b/Contrib/CCCS/CalculusTwo/05.6/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_6_346.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", @@ -59,7 +59,7 @@ $popup3 = PopUp( ["?","the series converges.", "the series diverges."], BEGIN_PGML -Use the ratio or root test to determine if [`\displaystyle \sum_{n=1}^{\infty} \frac{[$a]^{n^2}}{n^n n!}`] converges or diverges. +Use the ratio or root test to determine if [`\displaystyle \sum_{n=1}^{\infty} \frac{[$a]^{n^2}}{n^n n!}`] converges or diverges. Using the [_]{$popup1} with [_]{$popup2} [`=`][________]{$r} we can conclude [_]{$popup3} diff --git a/Contrib/CCCS/CalculusTwo/05.6/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_6_348.pg b/Contrib/CCCS/CalculusTwo/05.6/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_6_348.pg index 372424fda8..4acaea5976 100644 --- a/Contrib/CCCS/CalculusTwo/05.6/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_6_348.pg +++ b/Contrib/CCCS/CalculusTwo/05.6/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_6_348.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", @@ -69,7 +69,7 @@ $popup3 = PopUp( ["?","the series converges.", "the series diverges."], BEGIN_PGML -Use an appropriate test to determine if [`\displaystyle \sum_{n=1}^{\infty} \frac{[$a]n+[$c]}{[$b]n^{[$p]} +[$d]n +1}`] converges or diverges. +Use an appropriate test to determine if [`\displaystyle \sum_{n=1}^{\infty} \frac{[$a]n+[$c]}{[$b]n^{[$p]} +[$d]n +1}`] converges or diverges. Using the [_]{$popup1} we can conclude [_]{$popup3} diff --git a/Contrib/CCCS/CalculusTwo/05.6/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_6_351.pg b/Contrib/CCCS/CalculusTwo/05.6/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_6_351.pg index d8f457f6e8..52b99e46b1 100644 --- a/Contrib/CCCS/CalculusTwo/05.6/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_6_351.pg +++ b/Contrib/CCCS/CalculusTwo/05.6/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_6_351.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", @@ -61,7 +61,7 @@ $popup3 = PopUp( ["?","the series converges.", "the series diverges."], BEGIN_PGML -Use an appropriate test to determine if [`\displaystyle \sum_{n=1}^{\infty} \frac{(n-[$c])^n}{(n+[$c])^n}`] converges or diverges. +Use an appropriate test to determine if [`\displaystyle \sum_{n=1}^{\infty} \frac{(n-[$c])^n}{(n+[$c])^n}`] converges or diverges. Using the [_]{$popup1} we can conclude [_]{$popup3} diff --git a/Contrib/CCCS/CalculusTwo/05.6/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_6_353.pg b/Contrib/CCCS/CalculusTwo/05.6/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_6_353.pg index 72f118e646..475d7acf7d 100644 --- a/Contrib/CCCS/CalculusTwo/05.6/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_6_353.pg +++ b/Contrib/CCCS/CalculusTwo/05.6/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_6_353.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", @@ -62,7 +62,7 @@ $popup3 = PopUp( ["?","the series converges.", "the series diverges."], BEGIN_PGML -Use an appropriate test to determine if [`\displaystyle \sum_{n=1}^{\infty} \frac{[$a]}{[$b]^{\sin^2(n)}}`] converges or diverges. +Use an appropriate test to determine if [`\displaystyle \sum_{n=1}^{\infty} \frac{[$a]}{[$b]^{\sin^2(n)}}`] converges or diverges. Using the [_]{$popup1} we can conclude [_]{$popup3} diff --git a/Contrib/CCCS/CalculusTwo/05.6/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_6_364.pg b/Contrib/CCCS/CalculusTwo/05.6/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_6_364.pg index afe3efbf1e..e7cf8fdf65 100644 --- a/Contrib/CCCS/CalculusTwo/05.6/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_6_364.pg +++ b/Contrib/CCCS/CalculusTwo/05.6/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_6_364.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", @@ -51,7 +51,7 @@ BEGIN_PGML Consider the series [`\displaystyle \sum_{k=1}^{\infty} \frac{x^k}{k^{[$a]}}`]. Use the ratio test to find the interval of [`x`] values for which the series converges. Be sure to test the endpoints. -The interval for which the series converges is [_______________]{$ans} [@ AnswerFormatHelp("intervals") @]* +The interval for which the series converges is [_______________]{$ans} [@ helpLink("intervals") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/05.6/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_6_367.pg b/Contrib/CCCS/CalculusTwo/05.6/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_6_367.pg index 1dfbf3d975..7509381403 100644 --- a/Contrib/CCCS/CalculusTwo/05.6/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_6_367.pg +++ b/Contrib/CCCS/CalculusTwo/05.6/CCD_CCCS_Openstax_Calc2_C1-2016-002_5_6_367.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", @@ -50,7 +50,7 @@ BEGIN_PGML Consider the series [`\displaystyle \sum_{k=1}^{\infty} \frac{[$f]^k}{k!}`]. Use the ratio test to determine the interval of [`x`] values for which the series converges. Be sure to test the endpoints. -The interval of [`x`] values for which the series converges is [_______________]{$ans} [@ AnswerFormatHelp("intervals") @]* +The interval of [`x`] values for which the series converges is [_______________]{$ans} [@ helpLink("intervals") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/06.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_1_1-2.pg b/Contrib/CCCS/CalculusTwo/06.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_1_1-2.pg index c6f2b05a06..c190e9fa0d 100644 --- a/Contrib/CCCS/CalculusTwo/06.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_1_1-2.pg +++ b/Contrib/CCCS/CalculusTwo/06.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_1_1-2.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", diff --git a/Contrib/CCCS/CalculusTwo/06.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_1_11.pg b/Contrib/CCCS/CalculusTwo/06.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_1_11.pg index 7b850764ce..298c7d28c7 100644 --- a/Contrib/CCCS/CalculusTwo/06.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_1_11.pg +++ b/Contrib/CCCS/CalculusTwo/06.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_1_11.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", @@ -51,7 +51,7 @@ BEGIN_PGML Suppose that [`\left|\frac{a_{n+1}}{a_n} \right| \rightarrow 1`] as [`n \rightarrow \infty`] for the series [` \displaystyle \sum_{n=0}^{\infty} \frac{(-1)^na_nx^n}{[$a]^n}`]. What is the radius of convergence of the series? -Radius of convergence is [`R=`][____________]{$R} [@ AnswerFormatHelp("numbers") @]* +Radius of convergence is [`R=`][____________]{$R} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/06.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_1_13.pg b/Contrib/CCCS/CalculusTwo/06.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_1_13.pg index 72f0d69853..b4526eaa7b 100644 --- a/Contrib/CCCS/CalculusTwo/06.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_1_13.pg +++ b/Contrib/CCCS/CalculusTwo/06.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_1_13.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", @@ -44,7 +44,7 @@ $a=random(2,7,1); $R=1/$a; Context("Interval"); -$int = Interval("[-1/$a,1/$a)"); +$int = Interval("[-1/$a,1/$a)"); @@ -53,11 +53,11 @@ $int = Interval("[-1/$a,1/$a)"); BEGIN_PGML -Find the radius of convergence and the interval of convergence for the series [` \displaystyle \sum_{n=1}^{\infty} \frac{([$a]x)^n}{n}`]. +Find the radius of convergence and the interval of convergence for the series [` \displaystyle \sum_{n=1}^{\infty} \frac{([$a]x)^n}{n}`]. -Radius of convergence is [`R=`][____________]{$R} [@ AnswerFormatHelp("numbers") @]* +Radius of convergence is [`R=`][____________]{$R} [@ helpLink("numbers") @]* -Interval of convergence is [_________]{$int} [@ AnswerFormatHelp("intervals") @]* +Interval of convergence is [_________]{$int} [@ helpLink("intervals") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/06.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_1_17.pg b/Contrib/CCCS/CalculusTwo/06.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_1_17.pg index 6c82dda326..f69889335b 100644 --- a/Contrib/CCCS/CalculusTwo/06.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_1_17.pg +++ b/Contrib/CCCS/CalculusTwo/06.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_1_17.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", @@ -44,7 +44,7 @@ $a=random(2,7,1); $R=$a; Context("Interval"); -$int = Interval("(-$a,$a)"); +$int = Interval("(-$a,$a)"); @@ -53,11 +53,11 @@ $int = Interval("(-$a,$a)"); BEGIN_PGML -Find the radius of convergence and the interval of convergence for the series [` \displaystyle \sum_{n=1}^{\infty} \frac{n^2x^n}{[$a]^n}`]. +Find the radius of convergence and the interval of convergence for the series [` \displaystyle \sum_{n=1}^{\infty} \frac{n^2x^n}{[$a]^n}`]. -Radius of convergence is [`R=`][____________]{$R} [@ AnswerFormatHelp("numbers") @]* +Radius of convergence is [`R=`][____________]{$R} [@ helpLink("numbers") @]* -Interval of convergence is [_________]{$int} [@ AnswerFormatHelp("intervals") @]* +Interval of convergence is [_________]{$int} [@ helpLink("intervals") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/06.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_1_18.pg b/Contrib/CCCS/CalculusTwo/06.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_1_18.pg index 6bacff7819..ac11fa28a8 100644 --- a/Contrib/CCCS/CalculusTwo/06.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_1_18.pg +++ b/Contrib/CCCS/CalculusTwo/06.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_1_18.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", @@ -44,7 +44,7 @@ $a=random(2,7, 0.5); $R=$a; Context("Interval"); -$int = Interval("(-$a,$a)"); +$int = Interval("(-$a,$a)"); @@ -53,11 +53,11 @@ $int = Interval("(-$a,$a)"); BEGIN_PGML -Find the radius of convergence and the interval of convergence for the series [` \displaystyle \sum_{k=1}^{\infty} \frac{k^{[$a]}x^k}{[$a]^k}`]. +Find the radius of convergence and the interval of convergence for the series [` \displaystyle \sum_{k=1}^{\infty} \frac{k^{[$a]}x^k}{[$a]^k}`]. -Radius of convergence is [`R=`][____________]{$R} [@ AnswerFormatHelp("numbers") @]* +Radius of convergence is [`R=`][____________]{$R} [@ helpLink("numbers") @]* -Interval of convergence is [_________]{$int} [@ AnswerFormatHelp("intervals") @]* +Interval of convergence is [_________]{$int} [@ helpLink("intervals") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/06.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_1_20.pg b/Contrib/CCCS/CalculusTwo/06.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_1_20.pg index 5f64249fe0..2e0f5fe33a 100644 --- a/Contrib/CCCS/CalculusTwo/06.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_1_20.pg +++ b/Contrib/CCCS/CalculusTwo/06.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_1_20.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", @@ -44,7 +44,7 @@ $a=random(2,7, 1); $R=infinity; Context("Interval"); -$int = Interval("(-infinity,infinity)"); +$int = Interval("(-infinity,infinity)"); @@ -53,11 +53,11 @@ $int = Interval("(-infinity,infinity)"); BEGIN_PGML -Find the radius of convergence and the interval of convergence for the series [` \displaystyle \sum_{k=1}^{\infty} \frac{[$a]^kx^k}{k!}`]. +Find the radius of convergence and the interval of convergence for the series [` \displaystyle \sum_{k=1}^{\infty} \frac{[$a]^kx^k}{k!}`]. -Radius of convergence is [`R=`][____________]{$R} [@ AnswerFormatHelp("numbers") @]* +Radius of convergence is [`R=`][____________]{$R} [@ helpLink("numbers") @]* -Interval of convergence is [_________]{$int} [@ AnswerFormatHelp("intervals") @]* +Interval of convergence is [_________]{$int} [@ helpLink("intervals") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/06.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_1_23.pg b/Contrib/CCCS/CalculusTwo/06.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_1_23.pg index 5e21091f89..63cbb1f16c 100644 --- a/Contrib/CCCS/CalculusTwo/06.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_1_23.pg +++ b/Contrib/CCCS/CalculusTwo/06.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_1_23.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", @@ -45,7 +45,7 @@ if($a==2){$R=4;} else{$R=27;} Context("Interval"); -$int = Interval("(-infinity,infinity)"); +$int = Interval("(-infinity,infinity)"); @@ -54,9 +54,9 @@ $int = Interval("(-infinity,infinity)"); BEGIN_PGML -Find the radius of convergence for the series [` \displaystyle \sum_{k=1}^{\infty} \frac{(k!)^{[$a]}x^k}{([$a]k)!}`]. +Find the radius of convergence for the series [` \displaystyle \sum_{k=1}^{\infty} \frac{(k!)^{[$a]}x^k}{([$a]k)!}`]. -Radius of convergence is [`R=`][____________]{$R} [@ AnswerFormatHelp("numbers") @]* +Radius of convergence is [`R=`][____________]{$R} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CalculusTwo/06.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_1_28.pg b/Contrib/CCCS/CalculusTwo/06.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_1_28.pg index 4165398b6e..d06ee0ed8a 100644 --- a/Contrib/CCCS/CalculusTwo/06.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_1_28.pg +++ b/Contrib/CCCS/CalculusTwo/06.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_1_28.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", @@ -42,25 +42,25 @@ $showPartialCorrectAnswers = 1; $a=random(1,2,1); $R=1; Context("Interval"); -$int = Interval("(-infinity,infinity)"); +$int = Interval("(-infinity,infinity)"); ########################### # Main text if($a==1){ BEGIN_PGML -Find the radius of convergence for the series [` \displaystyle \sum_{k=1}^{\infty} \sin^2(k)x^k`]. +Find the radius of convergence for the series [` \displaystyle \sum_{k=1}^{\infty} \sin^2(k)x^k`]. -Radius of convergence is [`R=`][____________]{$R} [@ AnswerFormatHelp("numbers") @]* +Radius of convergence is [`R=`][____________]{$R} [@ helpLink("numbers") @]* END_PGML } else{ BEGIN_PGML -Find the radius of convergence for the series [` \displaystyle \sum_{k=1}^{\infty} \cos^2(k)x^k`]. +Find the radius of convergence for the series [` \displaystyle \sum_{k=1}^{\infty} \cos^2(k)x^k`]. -Radius of convergence is [`R=`][____________]{$R} [@ AnswerFormatHelp("numbers") @]* +Radius of convergence is [`R=`][____________]{$R} [@ helpLink("numbers") @]* END_PGML } diff --git a/Contrib/CCCS/CalculusTwo/06.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_1_30.pg b/Contrib/CCCS/CalculusTwo/06.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_1_30.pg index aeffbda239..c6109f3308 100644 --- a/Contrib/CCCS/CalculusTwo/06.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_1_30.pg +++ b/Contrib/CCCS/CalculusTwo/06.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_1_30.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", @@ -44,7 +44,7 @@ $a=random(2,7, 1); $R=Compute("27/($a^3)"); Context("Interval"); -$int = Interval("(-infinity,infinity)"); +$int = Interval("(-infinity,infinity)"); @@ -53,9 +53,9 @@ $int = Interval("(-infinity,infinity)"); BEGIN_PGML -Find the radius of convergence for the series [` \displaystyle \sum_{n=1}^{\infty} \frac{[$a]^{3n}(n!)^3}{(3n)!}x^n`]. +Find the radius of convergence for the series [` \displaystyle \sum_{n=1}^{\infty} \frac{[$a]^{3n}(n!)^3}{(3n)!}x^n`]. -Radius of convergence is [`R=`][____________]{$R} [@ AnswerFormatHelp("numbers") @]* +Radius of convergence is [`R=`][____________]{$R} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CalculusTwo/06.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_1_32.pg b/Contrib/CCCS/CalculusTwo/06.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_1_32.pg index 4659be0f21..90c9543538 100644 --- a/Contrib/CCCS/CalculusTwo/06.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_1_32.pg +++ b/Contrib/CCCS/CalculusTwo/06.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_1_32.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", @@ -46,7 +46,7 @@ if($a==1){$R=e;} else{$R=Compute("e^2/4");} Context("Interval"); -$int = Interval("(-infinity,infinity)"); +$int = Interval("(-infinity,infinity)"); @@ -55,9 +55,9 @@ $int = Interval("(-infinity,infinity)"); BEGIN_PGML -Find the radius of convergence for the series [` \displaystyle \sum_{n=1}^{\infty} \frac{([$f])!}{n^{[$f]}}x^n`]. +Find the radius of convergence for the series [` \displaystyle \sum_{n=1}^{\infty} \frac{([$f])!}{n^{[$f]}}x^n`]. -Radius of convergence is [`R=`][____________]{$R} [@ AnswerFormatHelp("numbers") @]* +Radius of convergence is [`R=`][____________]{$R} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CalculusTwo/06.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_1_34.pg b/Contrib/CCCS/CalculusTwo/06.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_1_34.pg index 276988c5cd..6c2e97ae58 100644 --- a/Contrib/CCCS/CalculusTwo/06.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_1_34.pg +++ b/Contrib/CCCS/CalculusTwo/06.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_1_34.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", @@ -44,7 +44,7 @@ $f=Formula("x^($a*n)")->reduce; Context("Interval"); -$int = Interval("(-1,1)"); +$int = Interval("(-1,1)"); @@ -55,9 +55,9 @@ BEGIN_PGML Given that [` \displaystyle \frac{1}{1-x} = \sum_{n=0}^{\infty}x^n`], which converges for [`x`] in [`(-1,1)`], find the power series representation for the function [`f(x) =\frac{1}{1-x^{[$a]}}`] centered at [`a = 0`] and find its interval of convergence. -The power series for the function is [`\displaystyle f(x) =\frac{1}{1-x^{[$a]}}=\sum_{n=0}^{\infty} `][____]{$f} [@ AnswerFormatHelp("formulas") @]* +The power series for the function is [`\displaystyle f(x) =\frac{1}{1-x^{[$a]}}=\sum_{n=0}^{\infty} `][____]{$f} [@ helpLink("formulas") @]* -Interval of convergence is [____________]{$int} [@ AnswerFormatHelp("Intervals") @]* +Interval of convergence is [____________]{$int} [@ helpLink("Intervals") @]* diff --git a/Contrib/CCCS/CalculusTwo/06.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_1_35.pg b/Contrib/CCCS/CalculusTwo/06.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_1_35.pg index f6743816f0..95bba2f3f4 100644 --- a/Contrib/CCCS/CalculusTwo/06.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_1_35.pg +++ b/Contrib/CCCS/CalculusTwo/06.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_1_35.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", @@ -45,7 +45,7 @@ $f=Formula("x^($a*n +1)")->reduce; $f->{test_points} = [[1,1],[2,2],[3,2],[4,3],[5,4],[6,5]]; Context("Interval"); -$int = Interval("(-1,1)"); +$int = Interval("(-1,1)"); @@ -56,9 +56,9 @@ BEGIN_PGML Given that [` \displaystyle \frac{1}{1-x} = \sum_{n=0}^{\infty}x^n`], which converges for [`x`] in [`(-1,1)`], find the power series representation for the function [`f(x) =\frac{x}{1-x^{[$a]}}`] centered at [`a=0`] and find its interval of convergence. -The power series for the function is [`\displaystyle f(x) =\frac{x}{1-x^{[$a]}}=\sum_{n=0}^{\infty} `][____]{$f} [@ AnswerFormatHelp("formulas") @]* +The power series for the function is [`\displaystyle f(x) =\frac{x}{1-x^{[$a]}}=\sum_{n=0}^{\infty} `][____]{$f} [@ helpLink("formulas") @]* -Interval of convergence is [____________]{$int} [@ AnswerFormatHelp("Intervals") @]* +Interval of convergence is [____________]{$int} [@ helpLink("Intervals") @]* diff --git a/Contrib/CCCS/CalculusTwo/06.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_1_38.pg b/Contrib/CCCS/CalculusTwo/06.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_1_38.pg index 7f6e0499ef..c6df6b35ac 100644 --- a/Contrib/CCCS/CalculusTwo/06.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_1_38.pg +++ b/Contrib/CCCS/CalculusTwo/06.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_1_38.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", @@ -46,7 +46,7 @@ $f=Formula("(x-$am1)^n")->reduce; $f->{test_points} = [[1,1],[2,2],[3,2],[4,3],[5,4],[6,5]]; Context("Interval"); -$int = Interval("($am1-1,$am1+1)"); +$int = Interval("($am1-1,$am1+1)"); @@ -57,9 +57,9 @@ BEGIN_PGML Given that [` \displaystyle \frac{1}{1-x} = \sum_{n=0}^{\infty}x^n`], which converges for [`x`] in [`(-1,1)`], find the power series representation for the function [`f(x) =\frac{1}{[$a]-x}`] centered at [`a=[$am1]`] and find its interval of convergence. -The power series for the function is [`\displaystyle f(x) =\frac{1}{[$a]-x}=\sum_{n=0}^{\infty} `][____]{$f} [@ AnswerFormatHelp("formulas") @]* +The power series for the function is [`\displaystyle f(x) =\frac{1}{[$a]-x}=\sum_{n=0}^{\infty} `][____]{$f} [@ helpLink("formulas") @]* -Interval of convergence is [____________]{$int} [@ AnswerFormatHelp("Intervals") @]* +Interval of convergence is [____________]{$int} [@ helpLink("Intervals") @]* diff --git a/Contrib/CCCS/CalculusTwo/06.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_1_39.pg b/Contrib/CCCS/CalculusTwo/06.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_1_39.pg index 2948532c3d..07372735a2 100644 --- a/Contrib/CCCS/CalculusTwo/06.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_1_39.pg +++ b/Contrib/CCCS/CalculusTwo/06.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_1_39.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", @@ -46,7 +46,7 @@ $f=Formula("($a*x)^n")->reduce; $f->{test_points} = [[1,1],[2,2],[3,2],[4,3],[5,4],[6,5]]; Context("Interval"); -$int = Interval("(-1/$a,1/$a)"); +$int = Interval("(-1/$a,1/$a)"); @@ -57,9 +57,9 @@ BEGIN_PGML Given that [` \displaystyle \frac{1}{1-x} = \sum_{n=0}^{\infty}x^n`], which converges for [`x`] in [`(-1,1)`], find the power series representation for the function [`f(x) =\frac{1}{1-[$a]x}`] centered at [`a=0`] and find its interval of convergence. -The power series for the function is [`\displaystyle f(x) =\frac{1}{1-[$a]x}=\sum_{n=0}^{\infty} `][____]{$f} [@ AnswerFormatHelp("formulas") @]* +The power series for the function is [`\displaystyle f(x) =\frac{1}{1-[$a]x}=\sum_{n=0}^{\infty} `][____]{$f} [@ helpLink("formulas") @]* -Interval of convergence is [____________]{$int} [@ AnswerFormatHelp("Intervals") @]* +Interval of convergence is [____________]{$int} [@ helpLink("Intervals") @]* diff --git a/Contrib/CCCS/CalculusTwo/06.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_1_41.pg b/Contrib/CCCS/CalculusTwo/06.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_1_41.pg index 4bfce5fbbf..d4c0ef70bd 100644 --- a/Contrib/CCCS/CalculusTwo/06.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_1_41.pg +++ b/Contrib/CCCS/CalculusTwo/06.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_1_41.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", @@ -46,7 +46,7 @@ $f=Formula("($a^n*x^(2*n+2))")->reduce; $f->{test_points} = [[1,1],[2,2],[3,2],[4,3],[5,4],[6,5]]; Context("Interval"); -$int = Interval("(-1/sqrt($a),1/sqrt($a))"); +$int = Interval("(-1/sqrt($a),1/sqrt($a))"); @@ -57,9 +57,9 @@ BEGIN_PGML Given that [` \displaystyle \frac{1}{1-x} = \sum_{n=0}^{\infty}x^n`], which converges for [`x`] in [`(-1,1)`], find the power series representation for the function [`f(x) =\frac{x^2}{1-[$a]x^2}`] centered at [`a=0`] and find its interval of convergence. -The power series for the function is [`\displaystyle f(x) =\frac{x^2}{1-[$a]x^2}=\sum_{n=0}^{\infty} `][____]{$f} [@ AnswerFormatHelp("formulas") @]* +The power series for the function is [`\displaystyle f(x) =\frac{x^2}{1-[$a]x^2}=\sum_{n=0}^{\infty} `][____]{$f} [@ helpLink("formulas") @]* -Interval of convergence is [____________]{$int} [@ AnswerFormatHelp("Intervals") @]* +Interval of convergence is [____________]{$int} [@ helpLink("Intervals") @]* diff --git a/Contrib/CCCS/CalculusTwo/06.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_1_8.pg b/Contrib/CCCS/CalculusTwo/06.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_1_8.pg index 7489fb977e..607d321ba5 100644 --- a/Contrib/CCCS/CalculusTwo/06.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_1_8.pg +++ b/Contrib/CCCS/CalculusTwo/06.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_1_8.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", @@ -50,7 +50,7 @@ BEGIN_PGML Suppose that [`\left|\frac{a_{n+1}}{a_n} \right| \rightarrow 1`] as [`n \rightarrow \infty`] for the series [` \displaystyle \sum_{n=0}^{\infty} \frac{a_nx^n}{[$a]^n}`]. What is the radius of convergence of the series? -Radius of convergence is [`R=`][____________]{$R} [@ AnswerFormatHelp("numbers") @]* +Radius of convergence is [`R=`][____________]{$R} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CalculusTwo/06.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_1_9.pg b/Contrib/CCCS/CalculusTwo/06.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_1_9.pg index c6667e9bc0..ece56df782 100644 --- a/Contrib/CCCS/CalculusTwo/06.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_1_9.pg +++ b/Contrib/CCCS/CalculusTwo/06.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_1_9.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGunion.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", @@ -56,7 +56,7 @@ BEGIN_PGML Suppose that [`\left|\frac{a_{n+1}}{a_n} \right| \rightarrow 1`] as [`n \rightarrow \infty`] for the series [` \displaystyle \sum_{n=0}^{\infty} a_n[$f]x^n`]. What is the radius of convergence of the series? -Radius of convergence is [`R=`][____________]{$R} [@ AnswerFormatHelp("numbers") @]* +Radius of convergence is [`R=`][____________]{$R} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CalculusTwo/06.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_2_65.pg b/Contrib/CCCS/CalculusTwo/06.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_2_65.pg index 4d8fd482c6..151d9a0a11 100644 --- a/Contrib/CCCS/CalculusTwo/06.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_2_65.pg +++ b/Contrib/CCCS/CalculusTwo/06.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_2_65.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGauxiliaryFunctions.pl", @@ -54,12 +54,12 @@ $ans->{test_points} = [[0,-1],[1,-.5],[3,.5],[4,1]]; BEGIN_PGML -Use partial fraction decomposition to find the power series representation of +Use partial fraction decomposition to find the power series representation of [`\displaystyle f(x)=[$f] `]. -The power series representation for [`f(x)`] is [`` \sum_{n=0}^{\infty}``][__________________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +The power series representation for [`f(x)`] is [`` \sum_{n=0}^{\infty}``][__________________________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/06.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_2_67.pg b/Contrib/CCCS/CalculusTwo/06.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_2_67.pg index 155763a2a1..c36aa955ae 100644 --- a/Contrib/CCCS/CalculusTwo/06.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_2_67.pg +++ b/Contrib/CCCS/CalculusTwo/06.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_2_67.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGauxiliaryFunctions.pl", @@ -60,7 +60,7 @@ Use partial fraction decomposition to find the power series representation of [` (Hint: Perform partial fraction decomposition in the following manner `\frac{A}{x^2+4} + \frac{B}{x^2-1}`.) -The power series representation of [`f(x)`] is [``\sum_{n=0}^{\infty}``][_____________________________________]{$ans}[@ AnswerFormatHelp("formulas") @]* +The power series representation of [`f(x)`] is [``\sum_{n=0}^{\infty}``][_____________________________________]{$ans}[@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/06.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_2_70.pg b/Contrib/CCCS/CalculusTwo/06.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_2_70.pg index 3bb2c4c55d..1d57edb6cd 100644 --- a/Contrib/CCCS/CalculusTwo/06.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_2_70.pg +++ b/Contrib/CCCS/CalculusTwo/06.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_2_70.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGauxiliaryFunctions.pl", @@ -58,7 +58,7 @@ Hint: Pay attention to the summation index. -[`f(x)`] =[_____________________________________]{$ans}[@ AnswerFormatHelp("formulas") @]* +[`f(x)`] =[_____________________________________]{$ans}[@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/06.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_2_74.pg b/Contrib/CCCS/CalculusTwo/06.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_2_74.pg index e9b46fbfcc..1fc1bf9a85 100644 --- a/Contrib/CCCS/CalculusTwo/06.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_2_74.pg +++ b/Contrib/CCCS/CalculusTwo/06.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_2_74.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGauxiliaryFunctions.pl", @@ -48,12 +48,12 @@ $ans3=Compute("$a/(0.07)"); BEGIN_PGML -Calculate the present values `P` of annuities in which $`[$a]` is to be paid out annually perpetually, assuming the following interest rates: +Calculate the present values `P` of annuities in which $`[$a]` is to be paid out annually perpetually, assuming the following interest rates: [`r=0.03`] -[`P`] =[___________________________]{$ans1}[@ AnswerFormatHelp("numbers") @]* +[`P`] =[___________________________]{$ans1}[@ helpLink("numbers") @]* [`r=0.05`] diff --git a/Contrib/CCCS/CalculusTwo/06.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_2_79.pg b/Contrib/CCCS/CalculusTwo/06.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_2_79.pg index 8742b9f8b4..2bfdc49741 100644 --- a/Contrib/CCCS/CalculusTwo/06.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_2_79.pg +++ b/Contrib/CCCS/CalculusTwo/06.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_2_79.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGauxiliaryFunctions.pl", @@ -56,7 +56,7 @@ Use geometric series to express the sum as a rational function. Hint: Group powers `x^(3k-2)`, `x^(3k-1)`, `x^(3k)` and factor. -`f(x)` =[_____________________________________]{$ans}[@ AnswerFormatHelp("formulas") @]* +`f(x)` =[_____________________________________]{$ans}[@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/06.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_2_83.pg b/Contrib/CCCS/CalculusTwo/06.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_2_83.pg index 2d05bf3bfd..d0107b9859 100644 --- a/Contrib/CCCS/CalculusTwo/06.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_2_83.pg +++ b/Contrib/CCCS/CalculusTwo/06.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_2_83.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGauxiliaryFunctions.pl", @@ -45,7 +45,7 @@ $summ1 = Compute("$a*(x^n)")->reduce; $summ2 = Compute("n*(x^n)")->reduce; ##answer -$ans = Formula("$a*(n*(n+1))/2*x^n")->reduce; +$ans = Formula("$a*(n*(n+1))/2*x^n")->reduce; ########################### # Main text @@ -58,7 +58,7 @@ Find the power series representation of the product [`f(x)g(x)`] if -[``f(x)g(x) =\sum_{n=0}^{\infty}``][______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[``f(x)g(x) =\sum_{n=0}^{\infty}``][______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/06.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_2_87.pg b/Contrib/CCCS/CalculusTwo/06.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_2_87.pg index 0b22e54c4d..0ed4b19824 100644 --- a/Contrib/CCCS/CalculusTwo/06.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_2_87.pg +++ b/Contrib/CCCS/CalculusTwo/06.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_2_87.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGauxiliaryFunctions.pl", @@ -42,14 +42,14 @@ Context()->variables->add(n => 'Real'); ##summand $summ1 = Compute("($a*x)^n")->reduce; -##corresponding function +##corresponding function $f = Compute("1/(1-($a*x))")->reduce; ##derivative of function - $df = $f->D('x'); + $df = $f->D('x'); ##answer -$ans = Compute("(($a)^(n+1)) *(n+1)*(x^n)")->reduce; +$ans = Compute("(($a)^(n+1)) *(n+1)*(x^n)")->reduce; ##test points for variable x and n, NOTE that test points are in alphabetical order ##[n,x], radius of convergence of x is [-1,1] @@ -68,7 +68,7 @@ Given the following function, differentiate it term by term to obtain the power series for the derivative. -[``f^\prime(x) = [$df] =\sum_{n=0}^{\infty}``][__________________________]{$ans}[@ AnswerFormatHelp("formulas") @]* +[``f^\prime(x) = [$df] =\sum_{n=0}^{\infty}``][__________________________]{$ans}[@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/06.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_2_89.pg b/Contrib/CCCS/CalculusTwo/06.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_2_89.pg index 7bc50e3588..2afdcf7e33 100644 --- a/Contrib/CCCS/CalculusTwo/06.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_2_89.pg +++ b/Contrib/CCCS/CalculusTwo/06.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_2_89.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGauxiliaryFunctions.pl", @@ -41,14 +41,14 @@ Context()->variables->add(n => 'Real'); ##summand $summ1 = Compute("((-1)^n)*(2*n)*(x^(2*n-1))")->reduce; -##corresponding function +##corresponding function $f = Compute("(2*x)/[(1+(x^2))^2]")->reduce; ##antiderivative of $f - $int_f = Compute("1/(1+(x^2))")->reduce; + $int_f = Compute("1/(1+(x^2))")->reduce; ##answer -$ans = Compute("( (-1)^(n)*(x^(2*n)) )")->reduce; +$ans = Compute("( (-1)^(n)*(x^(2*n)) )")->reduce; ##test points for variable x and n, NOTE that test points are in alphabetical order ##[n,x], radius of convergence of x is [-1,1] @@ -67,7 +67,7 @@ Given the following function, integrate it term by term to obtain a power series for the indefinite integral. -[``\int f(x) dx = [$int_f] =\sum_{n=0}^{\infty}``] [__________________________]{$ans}[@ AnswerFormatHelp("formulas") @]* +[``\int f(x) dx = [$int_f] =\sum_{n=0}^{\infty}``] [__________________________]{$ans}[@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/06.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_2_91.pg b/Contrib/CCCS/CalculusTwo/06.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_2_91.pg index 4c37da23e1..f3b321365a 100644 --- a/Contrib/CCCS/CalculusTwo/06.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_2_91.pg +++ b/Contrib/CCCS/CalculusTwo/06.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_2_91.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGauxiliaryFunctions.pl", @@ -43,25 +43,25 @@ $b=Compute(1/$a); Context()->variables->add(n => 'Real'); ##summand of series to be evaluated -$summ1 = Compute("n/($a^n)")->reduce; +$summ1 = Compute("n/($a^n)")->reduce; ##summand of geometric series -$summ2 = Compute("x^n")->reduce; +$summ2 = Compute("x^n")->reduce; ##summand of derivative of geom series for hint -$summ3 = Compute("n*(x^(n-1))")->reduce; +$summ3 = Compute("n*(x^(n-1))")->reduce; ##function corresponding to geometric series -$f = Formula("1/(1-x)")->reduce; +$f = Formula("1/(1-x)")->reduce; ##Derivative of $f for hint -$df = $f->D('x'); +$df = $f->D('x'); ##$df evaluated at $b -$c = $df->eval(x=>$b); +$c = $df->eval(x=>$b); ##answer -$ans = Compute("(1/$a)*$c")->reduce; +$ans = Compute("(1/$a)*$c")->reduce; ########################### @@ -75,7 +75,7 @@ Evaluate [`\displaystyle \sum_{n=1}^{\infty} [$summ1]`] using [`f^\prime \left( Hint: [`\displaystyle f^\prime(x) = [$df]= \sum_{n=1}^{\infty} [$summ3]`]. -[`\displaystyle \sum_{n=1}^{\infty} [$summ1]`] = [________________]{$ans}[@ AnswerFormatHelp("numbers") @]* +[`\displaystyle \sum_{n=1}^{\infty} [$summ1]`] = [________________]{$ans}[@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CalculusTwo/06.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_2_93.pg b/Contrib/CCCS/CalculusTwo/06.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_2_93.pg index 092004e34b..71e88658cf 100644 --- a/Contrib/CCCS/CalculusTwo/06.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_2_93.pg +++ b/Contrib/CCCS/CalculusTwo/06.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_2_93.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGauxiliaryFunctions.pl", @@ -41,26 +41,26 @@ $b=Compute(1/$a)->reduce; Context()->variables->add(n => 'Real'); ##summand of series to be evaluated -$summ1 = Compute("(n*(n-1))/($a^n)")->reduce; +$summ1 = Compute("(n*(n-1))/($a^n)")->reduce; ##summand of geometric series -$summ2 = Compute("x^n")->reduce; +$summ2 = Compute("x^n")->reduce; ##summand of derivative of geom series for hint -$summ3 = Compute("n*(n-1)*(x^(n-2))")->reduce; +$summ3 = Compute("n*(n-1)*(x^(n-2))")->reduce; ##function corresponding to geometric series -$f = Formula("1/(1-x)")->reduce; +$f = Formula("1/(1-x)")->reduce; ##Second derivative of $f for hint -$df = $f->D('x'); +$df = $f->D('x'); $ddf = $df->D('x'); ##$ddf evaluated at $b -$c = $ddf->eval(x=>$b); +$c = $ddf->eval(x=>$b); ##answer -$ans = Compute("(1/($a^2))*$c")->reduce; +$ans = Compute("(1/($a^2))*$c")->reduce; ########################### @@ -74,7 +74,7 @@ Evaluate [`\displaystyle \sum_{n=2}^{\infty} [$summ1]`] using [`f^{\prime\prime Hint: [`\displaystyle f^{\prime\prime}(x) = \frac{2}{(1-x)^3}= \sum_{n=2}^{\infty} [$summ3]`]. -[`\displaystyle \sum_{n=2}^{\infty} [$summ1]`] = [________________]{$ans}[@ AnswerFormatHelp("numbers") @]* +[`\displaystyle \sum_{n=2}^{\infty} [$summ1]`] = [________________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/06.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_2_96.pg b/Contrib/CCCS/CalculusTwo/06.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_2_96.pg index 747b509581..ffd81354e8 100644 --- a/Contrib/CCCS/CalculusTwo/06.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_2_96.pg +++ b/Contrib/CCCS/CalculusTwo/06.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_2_96.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGauxiliaryFunctions.pl", @@ -60,12 +60,12 @@ $ans->{test_points} = [[0,-1],[1,-.5],[3,.5],[4,1]]; if($a==1){ BEGIN_PGML -Given that [` \displaystyle \sum_{n=0}^{\infty}\ x^n = [$gs] `], use term by term differentiation or integration to find the power series for +Given that [` \displaystyle \sum_{n=0}^{\infty}\ x^n = [$gs] `], use term by term differentiation or integration to find the power series for [` \displaystyle f(x)=[$f] `] centered at [`x=0`]. -The power series for [`f(x)`] centered at 0 is [``-\sum_{n=0}^{\infty}``] [__________________________]{$ans}[@ AnswerFormatHelp("formulas") @]* +The power series for [`f(x)`] centered at 0 is [``-\sum_{n=0}^{\infty}``] [__________________________]{$ans}[@ helpLink("formulas") @]* END_PGML @@ -73,12 +73,12 @@ END_PGML else{ BEGIN_PGML -Given that [` \displaystyle \sum_{n=0}^{\infty}\ x^n = [$gs] `], use term by term differentiation or integration to find the power series for +Given that [` \displaystyle \sum_{n=0}^{\infty}\ x^n = [$gs] `], use term by term differentiation or integration to find the power series for [` \displaystyle f(x)=[$f] `] centered at [`x=0`]. -The power series for [`f(x)`] centered at 0 is [`\ln([$a])`][``-\sum_{n=0}^{\infty}``] [__________________________]{$ans}[@ AnswerFormatHelp("formulas") @]* +The power series for [`f(x)`] centered at 0 is [`\ln([$a])`][``-\sum_{n=0}^{\infty}``] [__________________________]{$ans}[@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/06.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_2_98.pg b/Contrib/CCCS/CalculusTwo/06.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_2_98.pg index 7dfff13eaa..24b5e0a4ee 100644 --- a/Contrib/CCCS/CalculusTwo/06.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_2_98.pg +++ b/Contrib/CCCS/CalculusTwo/06.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_2_98.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGauxiliaryFunctions.pl", @@ -66,7 +66,7 @@ use term by term differentiation or integration to find the power series for [` \displaystyle f(x)=[$f] `] centered at [`x=0`]. -The power series representation for [`f(x)`] is [``\sum_{n=0}^{\infty}``][__________________________]{$ans}[@ AnswerFormatHelp("formulas") @]* +The power series representation for [`f(x)`] is [``\sum_{n=0}^{\infty}``][__________________________]{$ans}[@ helpLink("formulas") @]* (Hint: A power series must have all nonnegative integers as the exponenets for the variable, so you may need to reindex the power series you find after differentiating.) diff --git a/Contrib/CCCS/CalculusTwo/06.2/CCD_CCCS_Openstax_Isaias_dummy_test.pg b/Contrib/CCCS/CalculusTwo/06.2/CCD_CCCS_Openstax_Isaias_dummy_test.pg index 454d45e91e..2bed965a5a 100644 --- a/Contrib/CCCS/CalculusTwo/06.2/CCD_CCCS_Openstax_Isaias_dummy_test.pg +++ b/Contrib/CCCS/CalculusTwo/06.2/CCD_CCCS_Openstax_Isaias_dummy_test.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGauxiliaryFunctions.pl", diff --git a/Contrib/CCCS/CalculusTwo/06.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_3_117.pg b/Contrib/CCCS/CalculusTwo/06.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_3_117.pg index dbd87062ef..29d6a06f8f 100644 --- a/Contrib/CCCS/CalculusTwo/06.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_3_117.pg +++ b/Contrib/CCCS/CalculusTwo/06.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_3_117.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGauxiliaryFunctions.pl", @@ -64,11 +64,11 @@ $ans = Formula("($f_a) + [($df_a)*(x-$a)] + [($ddf_a)/($c)*((x-$a)^2)]")->reduce BEGIN_PGML -Find the Taylor polynomial of degree 2 centered at `a=[$a]` that approximates +Find the Taylor polynomial of degree 2 centered at `a=[$a]` that approximates [`f(x) = [$f]`]. -[`P_2(x)`] =[____________________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`P_2(x)`] =[____________________________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/06.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_3_118.pg b/Contrib/CCCS/CalculusTwo/06.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_3_118.pg index 4b0a561d79..6634bc19c8 100644 --- a/Contrib/CCCS/CalculusTwo/06.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_3_118.pg +++ b/Contrib/CCCS/CalculusTwo/06.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_3_118.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGauxiliaryFunctions.pl", @@ -64,11 +64,11 @@ $ans = Formula("($f_a) + [($df_a)*(x-$a)] + [($ddf_a)/($c)*((x-$a)^2)]")->reduce BEGIN_PGML -Find the Taylor polynomial of degree 2 centered at `a=\pi` that approximates +Find the Taylor polynomial of degree 2 centered at `a=\pi` that approximates [`f(x) = [$f]`]. -[`P_2(x)`] =[____________________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`P_2(x)`] =[____________________________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/06.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_3_121.pg b/Contrib/CCCS/CalculusTwo/06.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_3_121.pg index 2ac03c0847..9f87f102dd 100644 --- a/Contrib/CCCS/CalculusTwo/06.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_3_121.pg +++ b/Contrib/CCCS/CalculusTwo/06.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_3_121.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGauxiliaryFunctions.pl", @@ -64,11 +64,11 @@ $ans = Formula("($f_a) + [($df_a)*(x-$a)] + [($ddf_a)/($c)*((x-$a)^2)]")->reduce BEGIN_PGML -Find the Taylor polynomial of degree 2 centered at `a=[$a]` that approximates +Find the Taylor polynomial of degree 2 centered at `a=[$a]` that approximates [`f(x) = [$f]`]. -[`P_2(x)`] =[____________________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`P_2(x)`] =[____________________________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/06.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_3_123.pg b/Contrib/CCCS/CalculusTwo/06.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_3_123.pg index 295e9c48a3..59b141a84c 100644 --- a/Contrib/CCCS/CalculusTwo/06.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_3_123.pg +++ b/Contrib/CCCS/CalculusTwo/06.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_3_123.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGauxiliaryFunctions.pl", @@ -65,11 +65,11 @@ $ans = Formula("($f_a) + [($df_a)*(x-$a)] + [($ddf_a)/($c)*((x-$a)^2)]")->reduce BEGIN_PGML -Find the Taylor polynomial of degree 2 centered at `a=[$a]` that approximates +Find the Taylor polynomial of degree 2 centered at `a=[$a]` that approximates [`f(x) = [$f]`]. -[`P_2(x)`] =[____________________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`P_2(x)`] =[____________________________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/06.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_3_140.pg b/Contrib/CCCS/CalculusTwo/06.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_3_140.pg index ff92879822..6986ecfed6 100644 --- a/Contrib/CCCS/CalculusTwo/06.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_3_140.pg +++ b/Contrib/CCCS/CalculusTwo/06.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_3_140.pg @@ -16,11 +16,11 @@ ########################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "scaffold.pl", @@ -71,7 +71,7 @@ BEGIN_PGML Choose the correct Taylor series centered at `a=-1` for [`f(x)= [$f]`]. - [_______________]{$radio1} + [_______________]{$radio1} END_PGML diff --git a/Contrib/CCCS/CalculusTwo/06.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_3_140_a.pg b/Contrib/CCCS/CalculusTwo/06.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_3_140_a.pg index 0ce0d1dfda..525ca05d81 100644 --- a/Contrib/CCCS/CalculusTwo/06.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_3_140_a.pg +++ b/Contrib/CCCS/CalculusTwo/06.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_3_140_a.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGauxiliaryFunctions.pl", @@ -63,7 +63,7 @@ BEGIN_PGML Find the Taylor series of [` \displaystyle f(x)=[$f] `] centered at [`a=[$a]`]. -[``\sum_{n=0}^{\infty}``][______________________________]{$ans}[@ AnswerFormatHelp("formulas") @]* +[``\sum_{n=0}^{\infty}``][______________________________]{$ans}[@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/06.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_3_142.pg b/Contrib/CCCS/CalculusTwo/06.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_3_142.pg index f1569b8b8d..5d1c61b5f3 100644 --- a/Contrib/CCCS/CalculusTwo/06.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_3_142.pg +++ b/Contrib/CCCS/CalculusTwo/06.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_3_142.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGauxiliaryFunctions.pl", @@ -46,9 +46,9 @@ $f = Formula("sin(x)")->reduce; ##conditional for determining which value the Taylor series is centered about if ( $a == 0 ) { - + $ans = Compute("((-1)^n)*(x^(2n+1))/ ((2*n+1)!) ")->reduce; - + ##test points for variable x and n, test points are in alphabetical order ##[n,x] x values near 0 $ans->{test_points} = [[0,.5],[1,.1],[3,.01],[4,.001]]; @@ -59,11 +59,11 @@ BEGIN_PGML Find the Taylor series of [` \displaystyle f(x)=[$f] `] centered at [`a=[$a]`]. -[``\sum_{n=0}^{\infty}``][_______________________________]{$ans}[@ AnswerFormatHelp("formulas") @]* +[``\sum_{n=0}^{\infty}``][_______________________________]{$ans}[@ helpLink("formulas") @]* END_PGML } else { - + $ans = Compute("((-1)^(n-1))*( (x-$a)^(2n+1) ) / ((2*n+1)!) ")->reduce; ##test points for variable x and n, test points are in alphabetical order @@ -76,7 +76,7 @@ BEGIN_PGML Find the Taylor series of [` \displaystyle f(x)=[$f] `] centered at [`a=\pi`]. -[``\sum_{n=0}^{\infty}``] [_______________________________]{$ans}[@ AnswerFormatHelp("formulas") @]* +[``\sum_{n=0}^{\infty}``] [_______________________________]{$ans}[@ helpLink("formulas") @]* END_PGML } diff --git a/Contrib/CCCS/CalculusTwo/06.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_3_145.pg b/Contrib/CCCS/CalculusTwo/06.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_3_145.pg index 8d46b2dbf8..51cb627602 100644 --- a/Contrib/CCCS/CalculusTwo/06.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_3_145.pg +++ b/Contrib/CCCS/CalculusTwo/06.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_3_145.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGauxiliaryFunctions.pl", @@ -46,9 +46,9 @@ $f = Formula("cos(x)")->reduce; ##conditional for determining which value the Taylor series is centered about if ( $a == pi/2 ) { - + $ans = Compute("((-1)^(n+1))*((x-(pi/2))^(2n+1))/ ((2*n+1)!) ")->reduce; - + ##test points for variable x and n, test points are in alphabetical order ##[n,x] x values near pi/2 $ans->{test_points} = [[0,1.5],[1,1.57],[3,1.5707],[4,1.57079]]; @@ -59,11 +59,11 @@ BEGIN_PGML Find the Taylor series of [` \displaystyle f(x)=[$f] `] centered at \`a =\frac{\pi}{2}`\. -[``\sum_{n=0}^{\infty}``][_______________________________]{$ans}[@ AnswerFormatHelp("formulas") @]* +[``\sum_{n=0}^{\infty}``][_______________________________]{$ans}[@ helpLink("formulas") @]* END_PGML } else { - + $ans = Compute("((-1)^n)*( (x-(3*pi/2))^(2n+1) ) / ((2*n+1)!) ")->reduce; ##test points for variable x and n, test points are in alphabetical order @@ -76,7 +76,7 @@ BEGIN_PGML Find the Taylor series of [` \displaystyle f(x)=[$f] `] centered at \`a =\frac{3\pi}{2}`\. -[``\sum_{n=0}^{\infty}``][_______________________________]{$ans}[@ AnswerFormatHelp("formulas") @]* +[``\sum_{n=0}^{\infty}``][_______________________________]{$ans}[@ helpLink("formulas") @]* END_PGML } diff --git a/Contrib/CCCS/CalculusTwo/06.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_3_147.pg b/Contrib/CCCS/CalculusTwo/06.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_3_147.pg index 9cfc15ba68..1b8f322ba2 100644 --- a/Contrib/CCCS/CalculusTwo/06.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_3_147.pg +++ b/Contrib/CCCS/CalculusTwo/06.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_3_147.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGauxiliaryFunctions.pl", @@ -46,9 +46,9 @@ $f = Formula("e^x")->reduce; ##conditional for determining which value the Taylor series is centered about if ( $a == -1 ) { - + $ans = Compute("(1/e)*((x+1)^n)/((n)!)")->reduce; - + ##test points for variable x and n, test points are in alphabetical order ##[n,x] x values near -1 $ans->{test_points} = [[0,-.5],[1,-.9],[3,-.99],[4,-.999]]; @@ -59,11 +59,11 @@ BEGIN_PGML Find the Taylor series of [` \displaystyle f(x)=[$f] `] centered at \`a =-1`\. -[``\sum_{n=0}^{\infty}``][_______________________________]{$ans}[@ AnswerFormatHelp("formulas") @]* +[``\sum_{n=0}^{\infty}``][_______________________________]{$ans}[@ helpLink("formulas") @]* END_PGML } else { - + $ans = Compute("(e)*((x-1)^n)/((n)!)")->reduce; ##test points for variable x and n, test points are in alphabetical order @@ -76,7 +76,7 @@ BEGIN_PGML Find the Taylor series of [` \displaystyle f(x)=[$f] `] centered at \`a =1`\. -[``\sum_{n=0}^{\infty}``][_______________________________]{$ans}[@ AnswerFormatHelp("formulas") @]* +[``\sum_{n=0}^{\infty}``][_______________________________]{$ans}[@ helpLink("formulas") @]* END_PGML } diff --git a/Contrib/CCCS/CalculusTwo/06.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_3_148.pg b/Contrib/CCCS/CalculusTwo/06.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_3_148.pg index 926789fd17..424060b0a0 100644 --- a/Contrib/CCCS/CalculusTwo/06.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_3_148.pg +++ b/Contrib/CCCS/CalculusTwo/06.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_3_148.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGauxiliaryFunctions.pl", @@ -49,9 +49,9 @@ $f = Formula("1/(x-1)^$a")->reduce; ##conditional for determining which value the Taylor series is centered about if ( $a == 2 ) { - + $ans = Compute("(n+1)*(x^n)")->reduce; - + ##test points for variable x and n, test points are in alphabetical order ##[n,x] x values near 0 $ans->{test_points} = [[0,.5],[1,.1],[2,.01],[3,.001]]; @@ -66,11 +66,11 @@ Find the Taylor series of [` \displaystyle f(x)=[$f] `] centered at \`a =0`\. is `\sum_{n=0}^{infty} x^n\`, differentiate `g(x)`.) -[``\sum_{n=0}^{\infty}``][_______________________________]{$ans}[@ AnswerFormatHelp("formulas") @]* +[``\sum_{n=0}^{\infty}``][_______________________________]{$ans}[@ helpLink("formulas") @]* END_PGML } else { - + $ans = Compute("(-1/2)*(n+1)*(n+2)*(x^n)")->reduce; ##test points for variable x and n, test points are in alphabetical order @@ -87,7 +87,7 @@ is `\sum_{n=0}^{infty} x^n\`, differentiate `g(x)`.) -[``\sum_{n=0}^{\infty}``][_______________________________]{$ans}[@ AnswerFormatHelp("formulas") @]* +[``\sum_{n=0}^{\infty}``][_______________________________]{$ans}[@ helpLink("formulas") @]* END_PGML } diff --git a/Contrib/CCCS/CalculusTwo/06.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_4_175.pg b/Contrib/CCCS/CalculusTwo/06.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_4_175.pg index ad909787f0..ac875690c3 100644 --- a/Contrib/CCCS/CalculusTwo/06.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_4_175.pg +++ b/Contrib/CCCS/CalculusTwo/06.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_4_175.pg @@ -16,11 +16,11 @@ ########################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "scaffold.pl", @@ -86,7 +86,7 @@ BEGIN_PGML Find the sixth Maclaurin polynomial for [`f(x)`]. -[`P_6(x)`]=[_________________________________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`P_6(x)`]=[_________________________________________]{$ans} [@ helpLink("formulas") @]* END_PGML @@ -99,7 +99,7 @@ Section::Begin("Part 2 - 1 point"); BEGIN_PGML -Choose the correct Maclaurin series for [`f(x)= ([$f])^{-1/3}`]. [_______________]{$popup1} +Choose the correct Maclaurin series for [`f(x)= ([$f])^{-1/3}`]. [_______________]{$popup1} A. [`\displaystyle \sum_{k=0}^{\infty} {-1/3\choose k} x^{[$a]k}`] diff --git a/Contrib/CCCS/CalculusTwo/06.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_4_180.pg b/Contrib/CCCS/CalculusTwo/06.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_4_180.pg index 2f3360da5f..a3b83dabd5 100644 --- a/Contrib/CCCS/CalculusTwo/06.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_4_180.pg +++ b/Contrib/CCCS/CalculusTwo/06.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_4_180.pg @@ -16,11 +16,11 @@ ########################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "scaffold.pl", @@ -47,15 +47,15 @@ $a=list_random(2,3); ##original function and first three derivatives $f=Formula("sqrt(x+$a)"); -$fp=$f->D('x'); +$fp=$f->D('x'); $fpp=$fp->D('x'); -$fppp=$fpp->D('x'); +$fppp=$fpp->D('x'); ##first three derivatives evaluated at a=1 $f_1 = $f->eval(x=>1); -$fp_1 = $fp->eval(x=>1); +$fp_1 = $fp->eval(x=>1); $fpp_1 = $fpp->eval(x=>1); -$fppp_1 = $fppp->eval(x=>1); +$fppp_1 = $fppp->eval(x=>1); ##answer for part 1 third, i.e. third Taylor polynomial $ans=Formula("[$f_1]+[$fp_1*(x-1)]+[($fpp_1/2)*(x-1)^2]+[($fppp_1/6)*(x-1)^3]")->reduce; @@ -99,7 +99,7 @@ BEGIN_PGML Find the third Taylor polynomial for [`f(x)=[$f]`] centered at [`a=1`] . -[`P_3(x)`]=[_________________________________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`P_3(x)`]=[_________________________________________]{$ans} [@ helpLink("formulas") @]* END_PGML @@ -112,7 +112,7 @@ Section::Begin("Part 2 - 1 point"); BEGIN_PGML -Choose the correct Taylor series for [`f(x)=[$f]`] centered at [`a=1`]. [_______________]{$popup1} +Choose the correct Taylor series for [`f(x)=[$f]`] centered at [`a=1`]. [_______________]{$popup1} (Hint: Use the substitution [`\displaystyle (b+x)^{r} = (b+a)^{r}(1+\frac{x-a}{b+a})^{r} `] where [`a=1`].) diff --git a/Contrib/CCCS/CalculusTwo/06.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_4_184.pg b/Contrib/CCCS/CalculusTwo/06.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_4_184.pg index 9ed10a4d45..f441ccfa0f 100644 --- a/Contrib/CCCS/CalculusTwo/06.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_4_184.pg +++ b/Contrib/CCCS/CalculusTwo/06.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_4_184.pg @@ -16,11 +16,11 @@ ########################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "scaffold.pl", @@ -42,23 +42,23 @@ Context("Numeric"); ##index of summation k-var Context()->variables->add(k => 'Real'); -##Taylor series center at +##Taylor series center at $a=list_random(1,27); ##original function and first three derivatives $f=Formula("x^(1/3)"); -$fp=$f->D('x'); +$fp=$f->D('x'); $fpp=$fp->D('x'); -$fppp=$fpp->D('x'); +$fppp=$fpp->D('x'); ##conditional for changing the value at which the series is centered if ( $a == 1 ) { ##first three derivatives evaluated at a=$a $f_1 = $f->eval(x=>$a); -$fp_1 = $fp->eval(x=>$a); +$fp_1 = $fp->eval(x=>$a); $fpp_1 = $fpp->eval(x=>$a); -$fppp_1 = $fppp->eval(x=>$a); +$fppp_1 = $fppp->eval(x=>$a); ##answer for part 1 third, i.e. third Taylor polynomial $ans=Formula("[$f_1]+[$fp_1*(x-$a)]+[($fpp_1/2)*(x-$a)^2]+[($fppp_1/6)*(x-$a)^3]")->reduce; @@ -97,7 +97,7 @@ BEGIN_PGML Find the third Taylor polynomial for [`f(x)= x^{\frac{1}{3}}`] centered at [`a=[$a]`] . -[`P_3(x)`]=[_________________________________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`P_3(x)`]=[_________________________________________]{$ans} [@ helpLink("formulas") @]* END_PGML @@ -110,7 +110,7 @@ Section::Begin("Part 2 - 1 point"); BEGIN_PGML -Choose the correct Taylor series for [`f(x)= x^{\frac{1}{3}}`] centered at [`a=[$a]`]. [_______________]{$popup1} +Choose the correct Taylor series for [`f(x)= x^{\frac{1}{3}}`] centered at [`a=[$a]`]. [_______________]{$popup1} (Hint: Use the substitution [`\displaystyle (b+x)^{r} = (b+a)^{r}(1+\frac{x-a}{b+a})^{r} `] where [`a=[$a]`].) @@ -134,9 +134,9 @@ Scaffold::End(); ##first three derivatives evaluated at a=$a $f_1 = $f->eval(x=>$a); -$fp_1 = $fp->eval(x=>$a); +$fp_1 = $fp->eval(x=>$a); $fpp_1 = $fpp->eval(x=>$a); -$fppp_1 = $fppp->eval(x=>$a); +$fppp_1 = $fppp->eval(x=>$a); ##answer for part 1 third, i.e. third Taylor polynomial $ans=Formula("[$f_1]+[$fp_1*(x-$a)]+[($fpp_1/2)*(x-$a)^2]+[($fppp_1/6)*(x-$a)^3]")->reduce; @@ -175,7 +175,7 @@ BEGIN_PGML Find the third Taylor polynomial for [`f(x)= x^{\frac{1}{3}}`] centered at [`a=[$a]`] . -[`P_3(x)`]=[_________________________________________]{$ans} +[`P_3(x)`]=[_________________________________________]{$ans} END_PGML @@ -200,7 +200,7 @@ C. [`\displaystyle \sum_{k=0}^{\infty} \binom{\frac{1}{3}}{k}(x-27)^{k}(3)^{1-3k D. [`\displaystyle \sum_{k=0}^{\infty} \binom{\frac{-1}{3}}{k}(x-27)^{-k}(3)^{3-2k}`] - [_______________]{$radio1} + [_______________]{$radio1} END_PGML diff --git a/Contrib/CCCS/CalculusTwo/06.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_4_202.pg b/Contrib/CCCS/CalculusTwo/06.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_4_202.pg index 7a3ca1e3a2..74ed564333 100644 --- a/Contrib/CCCS/CalculusTwo/06.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_4_202.pg +++ b/Contrib/CCCS/CalculusTwo/06.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_4_202.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGauxiliaryFunctions.pl", @@ -46,9 +46,9 @@ $g=Formula("e^x")->reduce; ##function whose Taylor series at $a needs to be found. $f = Formula("x*(e)^($a*x)")->reduce; -##answer summand +##answer summand $ans = Compute("(($a^n)*(x^(n+1)))/n!")->reduce; - + ##test points for variable x and n, test points are in alphabetical order ##[n,x] x values near 0 $ans->{test_points} = [[0,.5],[1,.1],[2,.01],[3,.001]]; @@ -63,7 +63,7 @@ Hint: The Maclaurin series of [` \displaystyle g(x)=[$g] `] is `\sum_{n=0}^{infty} \frac{x^n}{n!}\` -The Maclaurin series of `f(x)` is ` \sum_{n=0}^{infty}\` [_______________________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +The Maclaurin series of `f(x)` is ` \sum_{n=0}^{infty}\` [_______________________________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/06.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_4_204.pg b/Contrib/CCCS/CalculusTwo/06.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_4_204.pg index 676043ff0f..d129367001 100644 --- a/Contrib/CCCS/CalculusTwo/06.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_4_204.pg +++ b/Contrib/CCCS/CalculusTwo/06.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_4_204.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGauxiliaryFunctions.pl", @@ -37,15 +37,15 @@ Context("Numeric"); ##index of summation n-var, only allowed to be integers between 0 and 7 Context()->variables->add(n => ['Real', limits=>[0,7], resolution=>1]); - + ##function whose Taylor series at $a needs to be found. $f = Formula("sin(x)/x")->reduce; ##answer summand $ans = Compute("((-1)^(n))*((x)^(2n))/ ((2*n+1)!) ")->reduce; - + ##test points for variable x and n, test points are in alphabetical order - ##[n,x] + ##[n,x] $ans->{test_points} = [[0,1.5],[1,1.57],[3,1.5707],[4,1.57079]]; ########################### @@ -56,7 +56,7 @@ Find the Maclaurin series of [` \displaystyle f(x)=[$f] `]. Hint: `\g(x) = \sin(x) = \sum_{n=0}^{infty}\(-1)^{n} frac{x^{2n+1}}{(2n+1)!} \` -The Maclaurin series of `f(x)` is `\sum_{n=0}^{infty}\` [_______________________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +The Maclaurin series of `f(x)` is `\sum_{n=0}^{infty}\` [_______________________________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/06.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_4_207.pg b/Contrib/CCCS/CalculusTwo/06.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_4_207.pg index f629ac1515..eb336f6a47 100644 --- a/Contrib/CCCS/CalculusTwo/06.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_4_207.pg +++ b/Contrib/CCCS/CalculusTwo/06.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_4_207.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGauxiliaryFunctions.pl", @@ -44,15 +44,15 @@ $a=list_random(2, 5); ##conditional for determining which random function if ( $a == 2) { - + ##function whose Maclaurin series needs to be found $f = Formula("e^(x^($a))")->reduce; ##answer summand $ans = Compute("((x)^(2n))/(n)! ")->reduce; - + ##test points for variable x and n, test points are in alphabetical order - ##[n,x] + ##[n,x] $ans->{test_points} = [[0,1.5],[1,1.57],[3,1.5707],[4,1.57079]]; ########################### @@ -63,19 +63,19 @@ Find the Maclaurin series of [` \displaystyle f(x)=[$f] `]. Hint: `\g(x) = e^x = \sum_{n=0}^{infty}\ \frac{x^{n}}{n!} \` -`f(x) = \sum_{n=0}^{infty}\` [_______________________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +`f(x) = \sum_{n=0}^{infty}\` [_______________________________]{$ans} [@ helpLink("formulas") @]* END_PGML } else { - + ##function whose Taylor series at $a needs to be found. $f = Formula("e^(x^($a))")->reduce; ##answer summand $ans = Compute("((x)^(5n))/(n)! ")->reduce; - + ##test points for variable x and n, test points are in alphabetical order - ##[n,x] + ##[n,x] $ans->{test_points} = [[0,1.5],[1,1.57],[3,1.5707],[4,1.57079]]; ########################### @@ -86,7 +86,7 @@ Find the Maclaurin series of [` \displaystyle f(x)=[$f] `]. Hint: `\g(x) = e^x = \sum_{n=0}^{infty}\ \frac{x^{n}}{n!} \` -`f(x) = \sum_{n=0}^{infty}\` [_______________________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +`f(x) = \sum_{n=0}^{infty}\` [_______________________________]{$ans} [@ helpLink("formulas") @]* END_PGML } diff --git a/Contrib/CCCS/CalculusTwo/06.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_4_208.pg b/Contrib/CCCS/CalculusTwo/06.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_4_208.pg index 072431dc0a..939c2eae96 100644 --- a/Contrib/CCCS/CalculusTwo/06.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_4_208.pg +++ b/Contrib/CCCS/CalculusTwo/06.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_4_208.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGauxiliaryFunctions.pl", @@ -44,15 +44,15 @@ $a=list_random(-1, 1); ##conditional for determining which value the Taylor series is centered about if ( $a == -1) { - + ##function whose Taylor series at $a needs to be found. $f = Formula("(sin(x))^2")->reduce; ##answer summand $ans = Compute("((-1)^(n))*(2^(2n-1))*((x)^(2n))/ ((2*n)!) ")->reduce; - + ##test points for variable x and n, test points are in alphabetical order - ##[n,x] + ##[n,x] $ans->{test_points} = [[0,1.5],[1,1.57],[3,1.5707],[4,1.57079]]; ########################### @@ -63,11 +63,11 @@ Find the Maclaurin series of [` \displaystyle f(x)=[$f] `]. Hint: Power reducing identity `\ \sin^2x = \frac{1}{2}-\frac{1}{2}\cos(2x) \` -The Maclaurin series of `f(x)` is `-\sum_{n=1}^{infty}\`[_______________________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +The Maclaurin series of `f(x)` is `-\sum_{n=1}^{infty}\`[_______________________________]{$ans} [@ helpLink("formulas") @]* END_PGML } else { - + ##function whose Maclaurin series needs to be found. $f = Formula("(cos(x))^2")->reduce; @@ -75,7 +75,7 @@ END_PGML $ans = Compute(" (-1)^(n)*(2^(2*n-1))*(x)^(2*n) / (2*n)! ")->reduce; ##test points for variable x and n, test points are in alphabetical order - ##[n,x] + ##[n,x] $ans->{test_points} = [[0,4.5],[1,4.712],[3,4.7123],[4,4.71238]]; ########################### @@ -86,7 +86,7 @@ Find the Maclaurin series of [` \displaystyle f(x)=[$f] `]. Hint: Power reducing identity `\ \cos^2x = \frac{1}{2}+\frac{1}{2}\cos(2x) \` -The Maclaurin series of `f(x)` is `1+\sum_{n=1}^{infty}\` [_______________________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +The Maclaurin series of `f(x)` is `1+\sum_{n=1}^{infty}\` [_______________________________]{$ans} [@ helpLink("formulas") @]* END_PGML } diff --git a/Contrib/CCCS/CalculusTwo/06.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_4_210.pg b/Contrib/CCCS/CalculusTwo/06.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_4_210.pg index e62ad21fdc..a93cefb7d6 100644 --- a/Contrib/CCCS/CalculusTwo/06.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_4_210.pg +++ b/Contrib/CCCS/CalculusTwo/06.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_4_210.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGauxiliaryFunctions.pl", @@ -44,15 +44,15 @@ $a=list_random(-1, 1); ##conditional for determining which function to integrate if ( $a == -1) { - + ##function whose Taylor series at $a n $f = Formula("e^($a*x^(2))")->reduce; $fun = Formula("$a*t^2")->reduce; ##answer summand $ans = Compute("((-1)^n)*( x^(2n+1))/ ((2n+1)*(n)!) ")->reduce; - + ##test points for variable x and n, test points are in alphabetical order - ##[n,t,x] + ##[n,t,x] $ans->{test_points} = [[0,1,1.5],[1,2,1.57],[3,1,1.5707],[4,2,1.57079]]; ########################### @@ -63,19 +63,19 @@ Find a power series for ` F(x)=\int_{0}^{x}e^{[$fun]}dt `. Hint: `\f(x) = [$f] = \sum_{n=0}^{infty}\ (-1)^n \frac{x^{2n}}{n!} \`, integrate term by term. -`F(x) = \sum_{n=0}^{infty}\` [_______________________________]{$ans}[@ AnswerFormatHelp("formulas") @]* +`F(x) = \sum_{n=0}^{infty}\` [_______________________________]{$ans}[@ helpLink("formulas") @]* END_PGML } else { - + ##function whose Taylor series at $a n $f = Formula("e^($a*x^(2))")->reduce; $fun = Formula("$a*t^2")->reduce; ##answer summand $ans = Compute("(x^(2n+1))/ ((2n+1)*(n)!) ")->reduce; - + ##test points for variable x and n, test points are in alphabetical order - ##[n,t,x] + ##[n,t,x] $ans->{test_points} = [[0,1,0.1],[1,2,0.01],[3,1,0.001],[4,2,0.0001]]; ########################### @@ -86,7 +86,7 @@ Find a power series for `F(x)=\int_{0}^{x}e^{[$fun]}dt `. Hint: `\f(x) = [$f] = \sum_{n=0}^{infty}\ \frac{x^{2n}}{n!} \`, integrate term by term. -`F(x) = \sum_{n=0}^{infty}\` [_______________________________]{$ans}[@ AnswerFormatHelp("formulas") @]* +`F(x) = \sum_{n=0}^{infty}\` [_______________________________]{$ans}[@ helpLink("formulas") @]* END_PGML } diff --git a/Contrib/CCCS/CalculusTwo/06.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_4_213.pg b/Contrib/CCCS/CalculusTwo/06.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_4_213.pg index 21fb7d6466..e3ca36c0e2 100644 --- a/Contrib/CCCS/CalculusTwo/06.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_4_213.pg +++ b/Contrib/CCCS/CalculusTwo/06.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_4_213.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGauxiliaryFunctions.pl", @@ -44,15 +44,15 @@ $a=list_random(-1, 1); ##conditional for determining which function to integrate if ( $a == -1) { - + #formula whose integral's Maclaurin series needs to be found $d_f = Formula("1/(1+(x^2))")->reduce; ##answer summand $ans = Formula("((-1)^n)*( x^(2n+1))/ (2n+1) ")->reduce; - + ##test points for variable x and n, test points are in alphabetical order - ##[n,x] + ##[n,x] $ans->{test_points} = [[0,0.2],[1,0.1],[3,0.01],[4,0.001]]; ########################### @@ -63,19 +63,19 @@ Find a power series for `F(x)= \arctan(x) = \int_{0}^{x}\frac{1}{1+t^{2}}dt `. Hint: `\f(x) = [$d_f] = \sum_{n=0}^{infty}\ (-1)^n x^{2n} \`, integrate term by term. -`F(x)=\sum_{n=0}^{infty}\` [_______________________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +`F(x)=\sum_{n=0}^{infty}\` [_______________________________]{$ans} [@ helpLink("formulas") @]* END_PGML } else { - + #formula whose integral's Maclaurin series needs to be found $d_f = Formula("(-1)/(1+(x^2))")->reduce; ##answer summand $ans = Formula("((-1)^(n+1))*( x^(2n+1))/ (2n+1)")->reduce; - + ##test points for variable x and n, test points are in alphabetical order - ##[n,x] + ##[n,x] $ans->{test_points} = [[0,0.2],[1,0.1],[3,0.01],[4,0.001]]; ########################### @@ -87,7 +87,7 @@ Find a power series for `F(x)= \cot^{-1}(x) -\frac{\pi}{2}= Hint: `\f(x) = [$d_f] = \sum_{n=0}^{infty}\ (-1)^(n+1) x^{2n} \`, integrate term by term. -`F(x)=\sum_{n=0}^{infty}\` [_______________________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +`F(x)=\sum_{n=0}^{infty}\` [_______________________________]{$ans} [@ helpLink("formulas") @]* END_PGML } diff --git a/Contrib/CCCS/CalculusTwo/06.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_4_220.pg b/Contrib/CCCS/CalculusTwo/06.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_4_220.pg index a4a31a0784..30550302e2 100644 --- a/Contrib/CCCS/CalculusTwo/06.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_4_220.pg +++ b/Contrib/CCCS/CalculusTwo/06.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_4_220.pg @@ -16,11 +16,11 @@ ########################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "scaffold.pl", @@ -57,7 +57,7 @@ BEGIN_PGML Find the first three nonzero terms of the Maclaurin series for [`f(x) = [$f]`]. - [_________________________________________]{$ans} [@ AnswerFormatHelp("formulas") @]* + [_________________________________________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/06.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_4_222.pg b/Contrib/CCCS/CalculusTwo/06.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_4_222.pg index 2a5f3245b5..93a1724c4b 100644 --- a/Contrib/CCCS/CalculusTwo/06.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_4_222.pg +++ b/Contrib/CCCS/CalculusTwo/06.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_4_222.pg @@ -16,11 +16,11 @@ ########################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "scaffold.pl", @@ -60,7 +60,7 @@ BEGIN_PGML Find the first three nonzero terms of the Maclaurin series for [`f(x) = [$f]`]. -[_________________________________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[_________________________________________]{$ans} [@ helpLink("formulas") @]* END_PGML @@ -79,7 +79,7 @@ BEGIN_PGML Find the first three nonzero terms of the Maclaurin series for [`f(x) = [$f]`]. -[_________________________________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[_________________________________________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/06.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_4_227.pg b/Contrib/CCCS/CalculusTwo/06.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_4_227.pg index 5dff909f91..dfaade56c1 100644 --- a/Contrib/CCCS/CalculusTwo/06.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_4_227.pg +++ b/Contrib/CCCS/CalculusTwo/06.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_4_227.pg @@ -16,11 +16,11 @@ ########################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "scaffold.pl", @@ -56,9 +56,9 @@ $f=Formula("1/($a*x-$b)")->reduce; ##index of summation n-var Context()->variables->add(n => 'Real'); -##answer summand +##answer summand $ans1 = Compute("(($a/$b)^n)*x^n")->reduce; - + ##test points for variable x and n, test points are in alphabetical order ##[n,x] x values near 0 $ans1->{test_points} = [[0,.5],[1,.1],[2,.01],[3,.001]]; @@ -82,7 +82,7 @@ BEGIN_PGML Find the Maclaurin series of [` \displaystyle f(x)=[$f] `]. -The Maclaurin series of `f(x)` is `\frac{-1}{[$b]}\sum_{n=0}^{infty}\` [_______________________________]{$ans1} [@ AnswerFormatHelp("formulas") @]* +The Maclaurin series of `f(x)` is `\frac{-1}{[$b]}\sum_{n=0}^{infty}\` [_______________________________]{$ans1} [@ helpLink("formulas") @]* END_PGML @@ -96,7 +96,7 @@ BEGIN_PGML Find the radius of convergence, R, of the Maclaurin series you found in the first part. -`R=`[_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +`R=`[_______________]{$ans2} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/06.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_4_229.pg b/Contrib/CCCS/CalculusTwo/06.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_4_229.pg index 769539b10f..9cdd352c91 100644 --- a/Contrib/CCCS/CalculusTwo/06.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_4_229.pg +++ b/Contrib/CCCS/CalculusTwo/06.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_4_229.pg @@ -16,11 +16,11 @@ ########################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "scaffold.pl", @@ -47,13 +47,13 @@ $f=Formula("ln(1+x^($a))")->reduce; ##index of summation n-var Context()->variables->add(n => 'Real'); -##answer summand +##answer summand $ans1 = Compute("((-1)^(n+1))*((x^($a*n))/n)")->reduce; ##answer radius of convergence $ans2 = 1; - + ##test points for variable x and n, test points are in alphabetical order ##[n,x] x values near 0 $ans1->{test_points} = [[1,.5],[2,.1],[3,.01],[4,.001]]; @@ -77,7 +77,7 @@ BEGIN_PGML Find the Maclaurin series of [` \displaystyle f(x)=[$f] `]. -The Maclaurin series of `f(x)` is `\sum_{n=1}^{infty}\` [_______________________________]{$ans1} [@ AnswerFormatHelp("formulas") @]* +The Maclaurin series of `f(x)` is `\sum_{n=1}^{infty}\` [_______________________________]{$ans1} [@ helpLink("formulas") @]* END_PGML @@ -91,7 +91,7 @@ BEGIN_PGML Find the radius of convergence of the Maclaurin series you found in part one. -`R=`[_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +`R=`[_______________]{$ans2} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/06.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_4_Bad_Questions1.pg b/Contrib/CCCS/CalculusTwo/06.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_4_Bad_Questions1.pg index d70a92259c..cccd733a89 100644 --- a/Contrib/CCCS/CalculusTwo/06.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_4_Bad_Questions1.pg +++ b/Contrib/CCCS/CalculusTwo/06.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_4_Bad_Questions1.pg @@ -16,11 +16,11 @@ ########################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "scaffold.pl", @@ -97,7 +97,7 @@ BEGIN_PGML Find the fourth Maclaurin polynomial for [`f(x)`]. -[`P_4(x)`]=[_________________________________________]{$ans} +[`P_4(x)`]=[_________________________________________]{$ans} END_PGML @@ -112,7 +112,7 @@ BEGIN_PGML Choose the correct Maclaurin series for [`f(x)= [$f]`]. - [_______________]{$radio1} + [_______________]{$radio1} END_PGML diff --git a/Contrib/CCCS/CalculusTwo/06.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_4_Bad_Questions2.pg b/Contrib/CCCS/CalculusTwo/06.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_4_Bad_Questions2.pg index 93667750b9..39e900b71c 100644 --- a/Contrib/CCCS/CalculusTwo/06.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_4_Bad_Questions2.pg +++ b/Contrib/CCCS/CalculusTwo/06.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_4_Bad_Questions2.pg @@ -16,11 +16,11 @@ ########################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "scaffold.pl", @@ -97,7 +97,7 @@ BEGIN_PGML Find the fourth Taylor polynomial for [`f(x)`] centered at [`a=1`]. -[`P_4(x)`]=[____________________________________________________________]{$ans} +[`P_4(x)`]=[____________________________________________________________]{$ans} END_PGML @@ -112,7 +112,7 @@ BEGIN_PGML Choose the correct Maclaurin series for [`f(x)= [$f]`]. - [_______________]{$radio1} + [_______________]{$radio1} END_PGML diff --git a/Contrib/CCCS/CalculusTwo/06.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_4_Bad_Questions3.pg b/Contrib/CCCS/CalculusTwo/06.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_4_Bad_Questions3.pg index bae9565f6e..3e379096fc 100644 --- a/Contrib/CCCS/CalculusTwo/06.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_4_Bad_Questions3.pg +++ b/Contrib/CCCS/CalculusTwo/06.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_6_4_Bad_Questions3.pg @@ -16,11 +16,11 @@ ########################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "scaffold.pl", @@ -95,7 +95,7 @@ BEGIN_PGML Find the fourth Taylor polynomial for [`f(x)`] centered at [`a=[$a]`]. -[`P_4(x)`]=[____________________________________________________________]{$ans} +[`P_4(x)`]=[____________________________________________________________]{$ans} END_PGML @@ -110,7 +110,7 @@ BEGIN_PGML Choose the correct Maclaurin series for [`f(x)= [$f]`]. - [_______________]{$radio1} + [_______________]{$radio1} END_PGML diff --git a/Contrib/CCCS/CalculusTwo/07.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_1_10.pg b/Contrib/CCCS/CalculusTwo/07.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_1_10.pg index d463d406d0..ba4a6a102e 100644 --- a/Contrib/CCCS/CalculusTwo/07.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_1_10.pg +++ b/Contrib/CCCS/CalculusTwo/07.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_1_10.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## Calculus 2, Match the parametric curve that corresponds to the parametric equations by eliminating the parameter and state the orientation of the curve. +## Calculus 2, Match the parametric curve that corresponds to the parametric equations by eliminating the parameter and state the orientation of the curve. ## ENDDESCRIPTION @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -100,7 +100,7 @@ $y_t=Formula("e^{$a*t}+1")->reduce; ##PART 2## -##Parametric equations added to the grids## +##Parametric equations added to the grids## ## (x_0=e^t, y_0=e^$at) ## CORRECT PLOT## $x_0 = sub { my $t = shift(); @@ -187,12 +187,12 @@ Section::Begin("Part 2 - 1 point"); BEGIN_PGML Which of the following plots represents the graph of [` \displaystyle x(t)=[$x_t], \hspace{.25cm} y(t)=[$y_t]`]? -[@ $popup->menu() @]* +[@ $popup->menu() @]* ->>A. [@ image(insertGraph($gr_3), width=>200, height=>200), @]* B. [@ image(insertGraph($gr_0), width=>200, height=>200), @]* << +>>A. [@ image(insertGraph($gr_3), width=>200, height=>200), @]* B. [@ image(insertGraph($gr_0), width=>200, height=>200), @]* << ->>C. [@ image(insertGraph($gr_1), width=>200, height=>200), @]* D. [@ image(insertGraph($gr_2), width=>200, height=>200), @]* << +>>C. [@ image(insertGraph($gr_1), width=>200, height=>200), @]* D. [@ image(insertGraph($gr_2), width=>200, height=>200), @]* << END_PGML diff --git a/Contrib/CCCS/CalculusTwo/07.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_1_13.pg b/Contrib/CCCS/CalculusTwo/07.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_1_13.pg index 0e80887b5b..99275a5881 100644 --- a/Contrib/CCCS/CalculusTwo/07.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_1_13.pg +++ b/Contrib/CCCS/CalculusTwo/07.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_1_13.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## Calculus 2, Match the parametric curve that corresponds to the parametric equations by eliminating the parameter and determine any asymptotes. +## Calculus 2, Match the parametric curve that corresponds to the parametric equations by eliminating the parameter and determine any asymptotes. ## ENDDESCRIPTION @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -72,7 +72,7 @@ size=>[600,600] ##Random variables for changing parametric plots## ##$b and $d not equal to 1 to avoid circle -$a=non_zero_random(-3,2,1); +$a=non_zero_random(-3,2,1); $b=list_random(-2, 2, 3); $c=non_zero_random(-3,2,1); $d=list_random(-2,2,3); @@ -86,7 +86,7 @@ $ex_2=Compute($a-$b)->reduce; ## Expressions for part 1 ##removing parameter ##correct expression $f_0 = Compute("((x-$a)^2)/(($b)^2) + ((y-$c)^2)/(($d)^2)")->reduce; -##incorrect expressions +##incorrect expressions $f_1 = Compute("((x-$b)^2)/(($a)^2) + ((y-$d)^2)/(($a)^2)")->reduce; $f_2 = Compute("((x-$a)^2)/(($b)^2) - ((y-$c)^2)/(($d)^2)")->reduce; $f_3 = Compute("((x+$a)^2)/(($b)^2) + ((y+$c)^2)/(($d)^2)")->reduce; @@ -131,7 +131,7 @@ $y_t=Formula("$c+$d*sin(t)")->reduce; ##PART 2## -##Parametric equations added to the grids## +##Parametric equations added to the grids## ## ## INCORRECT PLOT## $x_0 = sub { my $t = shift(); @@ -201,12 +201,12 @@ Section::Begin("Part 2 - 1 point"); BEGIN_PGML Which of the following plots represents the graph of [` \displaystyle x(t)=[$x_t], \hspace{.25cm} y(t)=[$y_t], \hspace{.3cm} 0\leq t<2\pi`]? -[@ $popup->menu() @]* +[@ $popup->menu() @]* ->>A. [@ image(insertGraph($gr_3), width=>200, height=>200), @]* B. [@ image(insertGraph($gr_0), width=>200, height=>200), @]* << +>>A. [@ image(insertGraph($gr_3), width=>200, height=>200), @]* B. [@ image(insertGraph($gr_0), width=>200, height=>200), @]* << ->>C. [@ image(insertGraph($gr_1), width=>200, height=>200), @]* D. [@ image(insertGraph($gr_2), width=>200, height=>200), @]* << +>>C. [@ image(insertGraph($gr_1), width=>200, height=>200), @]* D. [@ image(insertGraph($gr_2), width=>200, height=>200), @]* << END_PGML diff --git a/Contrib/CCCS/CalculusTwo/07.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_1_15.pg b/Contrib/CCCS/CalculusTwo/07.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_1_15.pg index 4b020c0f3f..ed9c23ee92 100644 --- a/Contrib/CCCS/CalculusTwo/07.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_1_15.pg +++ b/Contrib/CCCS/CalculusTwo/07.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_1_15.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## Calculus 2, Match the parametric curve that corresponds to the parametric equations by eliminating the parameter and state the orientation of the curve. +## Calculus 2, Match the parametric curve that corresponds to the parametric equations by eliminating the parameter and state the orientation of the curve. ## ENDDESCRIPTION @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -100,7 +100,7 @@ $y_t=Formula("tan(t)")->reduce; ##PART 2## -##Parametric equations added to the grids## +##Parametric equations added to the grids## ## ## INCORRECT PLOT## # $x_0 = sub { my $t = shift(); @@ -110,9 +110,9 @@ $y_t=Formula("tan(t)")->reduce; #$f_0 = new Fun( $x_0, $y_0, $gr_0); #$f_0->domain(0,6.2832); -add_functions($gr_0, "sqrt((x-2)^2-1) for x in <-8,1> using color:blue and weight:3", +add_functions($gr_0, "sqrt((x-2)^2-1) for x in <-8,1> using color:blue and weight:3", "-sqrt((x-2)^2-1) for x in <-8,1> using color:blue and weight:3", -"sqrt((x-2)^2-1) for x in <3,8> using color:blue and weight:3", +"sqrt((x-2)^2-1) for x in <3,8> using color:blue and weight:3", "-sqrt((x-2)^2-1) for x in <3,8> using color:blue and weight:3"); ## (sec(t), tan(t)) ## CORRECT PLOT## @@ -123,9 +123,9 @@ add_functions($gr_0, "sqrt((x-2)^2-1) for x in <-8,1> using color:blue and weigh #$f_1 = new Fun( $x_1, $y_1, $gr_1); #$f_1->domain(0,6.28318 ); -add_functions($gr_1, "sqrt((x)^2-1) for x in <-8,-1> using color:blue and weight:3", +add_functions($gr_1, "sqrt((x)^2-1) for x in <-8,-1> using color:blue and weight:3", "-sqrt((x)^2-1) for x in <-8,-1> using color:blue and weight:3", -"sqrt((x)^2-1) for x in <1,8> using color:blue and weight:3", +"sqrt((x)^2-1) for x in <1,8> using color:blue and weight:3", "-sqrt((x)^2-1) for x in <1,8> using color:blue and weight:3"); ($gr_1->fn)[0]->steps(300); ($gr_1->fn)[1]->steps(300); @@ -147,7 +147,7 @@ add_functions($gr_2, "sqrt(x^2+1) for x in <-8,8> using color:blue and weight:3" #$f_3 = new Fun( $x_3, $y_3, $gr_3); #$f_3->domain(0,6.28318); -add_functions($gr_3, "sqrt((x-3)^2+1) for x in <-8,8> using color:blue and weight:3", +add_functions($gr_3, "sqrt((x-3)^2+1) for x in <-8,8> using color:blue and weight:3", "-sqrt((x-3)^2+1) for x in <-8,8> using color:blue and weight:3"); @@ -209,12 +209,12 @@ Section::Begin("Part 2 - 1 point"); BEGIN_PGML Which of the following plots represents the graph of [` \displaystyle x(t)=[$x_t], \hspace{.25cm} y(t)=[$y_t], \hspace{.3cm} 0\leq t<2\pi`]? -[@ $popup->menu() @]* +[@ $popup->menu() @]* ->>A. [@ image(insertGraph($gr_3), width=>200, height=>200), @]* B. [@ image(insertGraph($gr_0), width=>200, height=>200), @]* << +>>A. [@ image(insertGraph($gr_3), width=>200, height=>200), @]* B. [@ image(insertGraph($gr_0), width=>200, height=>200), @]* << ->>C. [@ image(insertGraph($gr_1), width=>200, height=>200), @]* D. [@ image(insertGraph($gr_2), width=>200, height=>200), @]* << +>>C. [@ image(insertGraph($gr_1), width=>200, height=>200), @]* D. [@ image(insertGraph($gr_2), width=>200, height=>200), @]* << END_PGML @@ -263,7 +263,7 @@ $y_t=Formula("sec(t)")->reduce; ##PART 2## -##Parametric equations added to the grids## +##Parametric equations added to the grids## ## ## INCORRECT PLOT## $x_0 = sub { my $t = shift(); @@ -348,12 +348,12 @@ Section::Begin("Part 2 - 1 point"); BEGIN_PGML Which of the following plots represents the graph of [` \displaystyle x(t)=[$x_t], \hspace{.25cm} y(t)=[$y_t], \hspace{.3cm} 0\leq t<2\pi`]? -[@ $popup->menu() @]* +[@ $popup->menu() @]* ->>A. [@ image(insertGraph($gr_3), width=>200, height=>200), @]* B. [@ image(insertGraph($gr_0), width=>200, height=>200), @]* << +>>A. [@ image(insertGraph($gr_3), width=>200, height=>200), @]* B. [@ image(insertGraph($gr_0), width=>200, height=>200), @]* << ->>C. [@ image(insertGraph($gr_1), width=>200, height=>200), @]* D. [@ image(insertGraph($gr_2), width=>200, height=>200), @]* << +>>C. [@ image(insertGraph($gr_1), width=>200, height=>200), @]* D. [@ image(insertGraph($gr_2), width=>200, height=>200), @]* << END_PGML diff --git a/Contrib/CCCS/CalculusTwo/07.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_1_18.pg b/Contrib/CCCS/CalculusTwo/07.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_1_18.pg index bf5ee18a68..51183ac72e 100644 --- a/Contrib/CCCS/CalculusTwo/07.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_1_18.pg +++ b/Contrib/CCCS/CalculusTwo/07.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_1_18.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## Calculus 2, Match the parametric curve that corresponds to the parametric equations by eliminating the parameter and state the orientation of the curve and any asymptotes. +## Calculus 2, Match the parametric curve that corresponds to the parametric equations by eliminating the parameter and state the orientation of the curve and any asymptotes. ## ENDDESCRIPTION @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -103,7 +103,7 @@ $y_t=Formula("e^{$b*t}")->reduce; ##PART 2## -##Parametric equations added to the grids## +##Parametric equations added to the grids## ## ## INCORRECT PLOT## $x_0 = sub { my $t = shift(); @@ -190,12 +190,12 @@ Section::Begin("Part 2 - 1 point"); BEGIN_PGML Which of the following plots represents the graph of [` \displaystyle x(t)=[$x_t], \hspace{.25cm} y(t)=[$y_t]`]? -[@ $popup->menu() @]* +[@ $popup->menu() @]* ->>A. [@ image(insertGraph($gr_3), width=>200, height=>200), @]* B. [@ image(insertGraph($gr_0), width=>200, height=>200), @]* << +>>A. [@ image(insertGraph($gr_3), width=>200, height=>200), @]* B. [@ image(insertGraph($gr_0), width=>200, height=>200), @]* << ->>C. [@ image(insertGraph($gr_1), width=>200, height=>200), @]* D. [@ image(insertGraph($gr_2), width=>200, height=>200), @]* << +>>C. [@ image(insertGraph($gr_1), width=>200, height=>200), @]* D. [@ image(insertGraph($gr_2), width=>200, height=>200), @]* << END_PGML diff --git a/Contrib/CCCS/CalculusTwo/07.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_1_19.pg b/Contrib/CCCS/CalculusTwo/07.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_1_19.pg index 7f9e024a51..b8de08b035 100644 --- a/Contrib/CCCS/CalculusTwo/07.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_1_19.pg +++ b/Contrib/CCCS/CalculusTwo/07.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_1_19.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## Calculus 2, Match the parametric curve that corresponds to the parametric equations by eliminating the parameter and state the orientation of the curve and any asymptotes. +## Calculus 2, Match the parametric curve that corresponds to the parametric equations by eliminating the parameter and state the orientation of the curve and any asymptotes. ## ENDDESCRIPTION @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -97,22 +97,22 @@ $y_t=Formula("$a*ln{t}")->reduce; ##PART 2## -##Parametric equations added to the grids (NON PARAMETRIC)## +##Parametric equations added to the grids (NON PARAMETRIC)## ##CORRECT PLOT -add_functions($gr_0, "ln(x) for x in <0.002,4>" . +add_functions($gr_0, "ln(x) for x in <0.002,4>" . " using color:blue and weight:3"); ##INCORRECT PLOT -add_functions($gr_1, "-ln(x) for x in <0.002,4>" . +add_functions($gr_1, "-ln(x) for x in <0.002,4>" . " using color:blue and weight:3"); ##INCORRECT PLOT -add_functions($gr_2, "-ln(-x) for x in <-4,-0.002>" . +add_functions($gr_2, "-ln(-x) for x in <-4,-0.002>" . " using color:blue and weight:3"); ##INCORRECT PLOT -add_functions($gr_3, "ln(-x) for x in <-4,-0.002>" . +add_functions($gr_3, "ln(-x) for x in <-4,-0.002>" . " using color:blue and weight:3"); $in=time(); @@ -176,12 +176,12 @@ Section::Begin("Part 2 - 1 point"); BEGIN_PGML Which of the following plots represents the graph of [` \displaystyle x(t)=[$x_t], \hspace{.25cm} y(t)=[$y_t]`]? -[@ $popup->menu() @]* +[@ $popup->menu() @]* ->>A. [@ image(insertGraph($gr_3), width=>200, height=>200), @]* B. [@ image(insertGraph($gr_0), width=>200, height=>200), @]* << +>>A. [@ image(insertGraph($gr_3), width=>200, height=>200), @]* B. [@ image(insertGraph($gr_0), width=>200, height=>200), @]* << ->>C. [@ image(insertGraph($gr_1), width=>200, height=>200), @]* D. [@ image(insertGraph($gr_2), width=>200, height=>200), @]* << +>>C. [@ image(insertGraph($gr_1), width=>200, height=>200), @]* D. [@ image(insertGraph($gr_2), width=>200, height=>200), @]* << END_PGML diff --git a/Contrib/CCCS/CalculusTwo/07.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_1_2.pg b/Contrib/CCCS/CalculusTwo/07.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_1_2.pg index f1f2278294..9a1a029216 100644 --- a/Contrib/CCCS/CalculusTwo/07.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_1_2.pg +++ b/Contrib/CCCS/CalculusTwo/07.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_1_2.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## Calculus 2, Match the parametric curve that corresponds to the parametric equations by eliminating the parameter and state the orientation of the curve. +## Calculus 2, Match the parametric curve that corresponds to the parametric equations by eliminating the parameter and state the orientation of the curve. ## ENDDESCRIPTION @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -73,7 +73,7 @@ size=>[600,600] ); ##Random variables for changing parametric plots## -$a=random(2,6,2); +$a=random(2,6,2); do{$b=random(3,5,1)}until($a !=$b); $c=random(3,5,1); @@ -117,7 +117,7 @@ $y_t=Formula("$a*sin(t)")->reduce; ##PART 2## -##Parametric equations added to the grids## +##Parametric equations added to the grids## ## ( x_0(t)=$acos(t), y_0(t)=$asin(t) ), 0<= t <= 2pi ## CORRECT PLOT## $x_0 = sub { my $t = shift(); @@ -189,12 +189,12 @@ Section::Begin("Part 2 - 1 point"); BEGIN_PGML Which of the following plots represents the graph of [` \displaystyle x(t)=[$x_t], \hspace{.25cm} y(t)=[$y_t] \hspace{.25cm} 0menu() @]* +[@ $popup->menu() @]* ->>A. [@ image(insertGraph($gr_3), width=>200, height=>200), @]* B. [@ image(insertGraph($gr_0), width=>200, height=>200), @]* << +>>A. [@ image(insertGraph($gr_3), width=>200, height=>200), @]* B. [@ image(insertGraph($gr_0), width=>200, height=>200), @]* << ->>C. [@ image(insertGraph($gr_1), width=>200, height=>200), @]* D. [@ image(insertGraph($gr_2), width=>200, height=>200), @]* << +>>C. [@ image(insertGraph($gr_1), width=>200, height=>200), @]* D. [@ image(insertGraph($gr_2), width=>200, height=>200), @]* << END_PGML diff --git a/Contrib/CCCS/CalculusTwo/07.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_1_25.pg b/Contrib/CCCS/CalculusTwo/07.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_1_25.pg index 99eb8f55da..b90e02d354 100644 --- a/Contrib/CCCS/CalculusTwo/07.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_1_25.pg +++ b/Contrib/CCCS/CalculusTwo/07.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_1_25.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## Calculus 2, Convert the parametric equations to rectangular form and state the domain of the rectangular form. +## Calculus 2, Convert the parametric equations to rectangular form and state the domain of the rectangular form. ## ENDDESCRIPTION @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -52,7 +52,7 @@ $c=list_random(5,6,7); #$d=list_random(5,6,7); do{$d=list_random(5,6,7);}until($d!=-$c*(1-$b)/$a); #this is making sure that $m will not equal to $n so that there are two different slope options in the selections for part 1 -##constant for Cartesian equation## +##constant for Cartesian equation## $n=Compute("$c/$a")->reduce; $m=Compute("(($c*$b)/$a)-$d")->reduce; diff --git a/Contrib/CCCS/CalculusTwo/07.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_1_27.pg b/Contrib/CCCS/CalculusTwo/07.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_1_27.pg index 5e26762461..d80deabdd9 100644 --- a/Contrib/CCCS/CalculusTwo/07.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_1_27.pg +++ b/Contrib/CCCS/CalculusTwo/07.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_1_27.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## Calculus 2, Convert the parametric equations to rectangular form and state the domain of the rectangular form. +## Calculus 2, Convert the parametric equations to rectangular form and state the domain of the rectangular form. ## ENDDESCRIPTION @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -48,7 +48,7 @@ Context("Numeric")->variables->are(x=>"Real", t=>"Real"); $a=list_random(1,2,3); $b=list_random(4,5,6); -##Constants for domain +##Constants for domain $c=Compute($a-1)->reduce; $d=Compute($a+1)->reduce; diff --git a/Contrib/CCCS/CalculusTwo/07.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_1_28.pg b/Contrib/CCCS/CalculusTwo/07.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_1_28.pg index 71bcd3b39c..0c4b926232 100644 --- a/Contrib/CCCS/CalculusTwo/07.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_1_28.pg +++ b/Contrib/CCCS/CalculusTwo/07.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_1_28.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## Calculus 2, Convert the parametric equations to rectangular form and state the domain of the rectangular form. +## Calculus 2, Convert the parametric equations to rectangular form and state the domain of the rectangular form. ## ENDDESCRIPTION @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", diff --git a/Contrib/CCCS/CalculusTwo/07.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_1_3.pg b/Contrib/CCCS/CalculusTwo/07.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_1_3.pg index 518eefaf8a..ebba10bb6f 100644 --- a/Contrib/CCCS/CalculusTwo/07.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_1_3.pg +++ b/Contrib/CCCS/CalculusTwo/07.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_1_3.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## Calculus 2, Match the parametric curve that corresponds to the parametric equations by eliminating the parameter and state the orientation of the curve. +## Calculus 2, Match the parametric curve that corresponds to the parametric equations by eliminating the parameter and state the orientation of the curve. ## ENDDESCRIPTION @@ -24,7 +24,7 @@ loadMacros( "PGchoicemacros.pl", "parserImplicitEquation.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -74,23 +74,23 @@ size=>[600,600] ); ##Random variables for changing parametric plots## -$a=random(2,6,2); +$a=random(2,6,2); $b=random(2,5,1); $c=non_zero_random(-2,-1,1); #For Part3 -##Coordinates for determining orientation +##Coordinates for determining orientation ##t=-1 -$xneg1 = Compute("$a*(-1)+$b")->reduce; +$xneg1 = Compute("$a*(-1)+$b")->reduce; $yneg1 = Compute("(-1)+$c")->reduce; ##t=1 -$xpos1 = Compute("$a+$b")->reduce; +$xpos1 = Compute("$a+$b")->reduce; $ypos1 = Compute("1+$c")->reduce; #For Part1 -##Correct constant for Cartesian equation ##display purpose +##Correct constant for Cartesian equation ##display purpose $d = Compute("($a*$c-$b)/$a")->reduce; -##Incorrect constant for Cartesian equation ##display purpose +##Incorrect constant for Cartesian equation ##display purpose $e = Compute("($a*$b-$c)/$b")->reduce; ##PART 1 @@ -132,7 +132,7 @@ $y_t=Formula("t+$c")->reduce; ##PART 2## -##Parametric equations added to the grids## +##Parametric equations added to the grids## ## ( x_0(t)=$at+$b, y_0(t)=t+$c) ) ## CORRECT PLOT## $x_0 = sub { my $t = shift(); @@ -204,12 +204,12 @@ Section::Begin("Part 2 - 1 point"); BEGIN_PGML Which of the following plots represents the graph of [` \displaystyle x(t)=[$x_t], \hspace{.25cm} y(t)=[$y_t]`]? -[@ $popup->menu() @]* +[@ $popup->menu() @]* ->>A. [@ image(insertGraph($gr_3), width=>200, height=>200), @]* B. [@ image(insertGraph($gr_0), width=>200, height=>200), @]* << +>>A. [@ image(insertGraph($gr_3), width=>200, height=>200), @]* B. [@ image(insertGraph($gr_0), width=>200, height=>200), @]* << ->>C. [@ image(insertGraph($gr_1), width=>200, height=>200), @]* D. [@ image(insertGraph($gr_2), width=>200, height=>200), @]* << +>>C. [@ image(insertGraph($gr_1), width=>200, height=>200), @]* D. [@ image(insertGraph($gr_2), width=>200, height=>200), @]* << END_PGML diff --git a/Contrib/CCCS/CalculusTwo/07.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_1_32.pg b/Contrib/CCCS/CalculusTwo/07.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_1_32.pg index 0a4e553222..e603d07454 100644 --- a/Contrib/CCCS/CalculusTwo/07.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_1_32.pg +++ b/Contrib/CCCS/CalculusTwo/07.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_1_32.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## Calculus 2, Convert the parametric equations to rectangular form and state the domain of the rectangular form. +## Calculus 2, Convert the parametric equations to rectangular form and state the domain of the rectangular form. ## ENDDESCRIPTION @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", diff --git a/Contrib/CCCS/CalculusTwo/07.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_1_33.pg b/Contrib/CCCS/CalculusTwo/07.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_1_33.pg index 7e8d110e63..b8d4bb5361 100644 --- a/Contrib/CCCS/CalculusTwo/07.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_1_33.pg +++ b/Contrib/CCCS/CalculusTwo/07.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_1_33.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## Calculus 2, Convert the parametric equations to rectangular form and state the domain of the rectangular form. +## Calculus 2, Convert the parametric equations to rectangular form and state the domain of the rectangular form. ## ENDDESCRIPTION @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", diff --git a/Contrib/CCCS/CalculusTwo/07.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_1_40.pg b/Contrib/CCCS/CalculusTwo/07.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_1_40.pg index 0407f970fb..ac7623354c 100644 --- a/Contrib/CCCS/CalculusTwo/07.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_1_40.pg +++ b/Contrib/CCCS/CalculusTwo/07.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_1_40.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## Calculus 2, Convert the parametric equations to rectangular form and state the domain of the rectangular form. +## Calculus 2, Convert the parametric equations to rectangular form and state the domain of the rectangular form. ## ENDDESCRIPTION @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", diff --git a/Contrib/CCCS/CalculusTwo/07.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_1_41.pg b/Contrib/CCCS/CalculusTwo/07.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_1_41.pg index bd6ea41a98..cfebdc8ca6 100644 --- a/Contrib/CCCS/CalculusTwo/07.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_1_41.pg +++ b/Contrib/CCCS/CalculusTwo/07.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_1_41.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## Calculus 2, Convert the parametric equations to rectangular form and state the domain of the rectangular form. +## Calculus 2, Convert the parametric equations to rectangular form and state the domain of the rectangular form. ## ENDDESCRIPTION @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", diff --git a/Contrib/CCCS/CalculusTwo/07.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_1_43.pg b/Contrib/CCCS/CalculusTwo/07.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_1_43.pg index a6af039985..02bc1686b9 100644 --- a/Contrib/CCCS/CalculusTwo/07.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_1_43.pg +++ b/Contrib/CCCS/CalculusTwo/07.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_1_43.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## Calculus 2, Convert the parametric equations to rectangular form and state the domain of the rectangular form. +## Calculus 2, Convert the parametric equations to rectangular form and state the domain of the rectangular form. ## ENDDESCRIPTION @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", diff --git a/Contrib/CCCS/CalculusTwo/07.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_1_46.pg b/Contrib/CCCS/CalculusTwo/07.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_1_46.pg index 95fe4f9db5..b5b15e2af8 100644 --- a/Contrib/CCCS/CalculusTwo/07.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_1_46.pg +++ b/Contrib/CCCS/CalculusTwo/07.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_1_46.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## Calculus 2, Convert the parametric equations to rectangular form and state the domain of the rectangular form. +## Calculus 2, Convert the parametric equations to rectangular form and state the domain of the rectangular form. ## ENDDESCRIPTION @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", diff --git a/Contrib/CCCS/CalculusTwo/07.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_1_5.pg b/Contrib/CCCS/CalculusTwo/07.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_1_5.pg index b7db7ecba5..663d647166 100644 --- a/Contrib/CCCS/CalculusTwo/07.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_1_5.pg +++ b/Contrib/CCCS/CalculusTwo/07.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_1_5.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## Calculus 2, Match the parametric curve that corresponds to the parametric equations by eliminating the parameter and state the orientation of the curve. +## Calculus 2, Match the parametric curve that corresponds to the parametric equations by eliminating the parameter and state the orientation of the curve. ## ENDDESCRIPTION @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -72,13 +72,13 @@ size=>[600,600] ); ##Random variables for changing parametric plots## -$a=random(2,4,2); +$a=random(2,4,2); $b=non_zero_random(-1,1,1); #For Part1 -##Correct constant for Cartesian equation ##display purpose +##Correct constant for Cartesian equation ##display purpose $c = Compute("$a^{2}")->reduce; $ac=Compute("$a*$c")->reduce; @@ -109,7 +109,7 @@ $y_t=Formula("t^4+$b")->reduce; ##PART 2## -##Parametric equations added to the grids## +##Parametric equations added to the grids## ## ( x_0(t)=$at+$b, y_0(t)=t+$c) ) ## INCORRECT PLOT## $x_0 = sub { my $t = shift(); @@ -181,12 +181,12 @@ Section::Begin("Part 2 - 1 point"); BEGIN_PGML Which of the following plots represents the graph of [` \displaystyle x(t)=[$x_t], \hspace{.25cm} y(t)=[$y_t]`]? -[@ $popup->menu() @]* +[@ $popup->menu() @]* ->>A. [@ image(insertGraph($gr_3), width=>200, height=>200), @]* B. [@ image(insertGraph($gr_0), width=>200, height=>200), @]* << +>>A. [@ image(insertGraph($gr_3), width=>200, height=>200), @]* B. [@ image(insertGraph($gr_0), width=>200, height=>200), @]* << ->>C. [@ image(insertGraph($gr_1), width=>200, height=>200), @]* D. [@ image(insertGraph($gr_2), width=>200, height=>200), @]* << +>>C. [@ image(insertGraph($gr_1), width=>200, height=>200), @]* D. [@ image(insertGraph($gr_2), width=>200, height=>200), @]* << END_PGML diff --git a/Contrib/CCCS/CalculusTwo/07.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_1_7.pg b/Contrib/CCCS/CalculusTwo/07.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_1_7.pg index 37850c388d..a305b0ffad 100644 --- a/Contrib/CCCS/CalculusTwo/07.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_1_7.pg +++ b/Contrib/CCCS/CalculusTwo/07.1/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_1_7.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## Calculus 2, Match the parametric curve that corresponds to the parametric equations by eliminating the parameter and state the orientation of the curve. +## Calculus 2, Match the parametric curve that corresponds to the parametric equations by eliminating the parameter and state the orientation of the curve. ## ENDDESCRIPTION @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -76,10 +76,10 @@ $b=random(2,6,2); ##Setting up Euler's constant e weird $e=2.718281; - + #For Part1 -##Correct constant for Cartesian equation ##display purpose +##Correct constant for Cartesian equation ##display purpose $c = Compute("$b*$a")->reduce; @@ -105,7 +105,7 @@ $y_t=Formula("e^{$b*t}-1")->reduce; ##PART 2## -##Parametric equations added to the grids## +##Parametric equations added to the grids## ## ## INCORRECT PLOT## $x_0 = sub { my $t = shift(); @@ -177,12 +177,12 @@ Section::Begin("Part 2 - 1 point"); BEGIN_PGML Which of the following plots represents the graph of [` \displaystyle x(t)=[$x_t], \hspace{.25cm} y(t)=[$y_t]`]? -[@ $popup->menu() @]* +[@ $popup->menu() @]* ->>A. [@ image(insertGraph($gr_3), width=>200, height=>200), @]* B. [@ image(insertGraph($gr_0), width=>200, height=>200), @]* << +>>A. [@ image(insertGraph($gr_3), width=>200, height=>200), @]* B. [@ image(insertGraph($gr_0), width=>200, height=>200), @]* << ->>C. [@ image(insertGraph($gr_1), width=>200, height=>200), @]* D. [@ image(insertGraph($gr_2), width=>200, height=>200), @]* << +>>C. [@ image(insertGraph($gr_1), width=>200, height=>200), @]* D. [@ image(insertGraph($gr_2), width=>200, height=>200), @]* << END_PGML diff --git a/Contrib/CCCS/CalculusTwo/07.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_2_114.pg b/Contrib/CCCS/CalculusTwo/07.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_2_114.pg index 221fc5b028..7ee2e38775 100644 --- a/Contrib/CCCS/CalculusTwo/07.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_2_114.pg +++ b/Contrib/CCCS/CalculusTwo/07.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_2_114.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -60,14 +60,14 @@ $ans=Compute(8*$a)->reduce; ##Main text## BEGIN_PGML -A cycloid is given parametrically by +A cycloid is given parametrically by [` \displaystyle x(t)=[$x_t], \hspace{.25cm} y(t)=[$y_t]`]. -Find the arc length, [`s`], of a single arch of the cycloid. (This means the length from [` 0 \leq t \leq 2\pi `]). +Find the arc length, [`s`], of a single arch of the cycloid. (This means the length from [` 0 \leq t \leq 2\pi `]). -[`s =`] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`s =`] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/07.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_2_122.pg b/Contrib/CCCS/CalculusTwo/07.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_2_122.pg index a959e3f136..0ac856d7d0 100644 --- a/Contrib/CCCS/CalculusTwo/07.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_2_122.pg +++ b/Contrib/CCCS/CalculusTwo/07.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_2_122.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -74,9 +74,9 @@ Given the parametric curve [` \displaystyle x(t)=[$x_t], \hspace{.25cm} y(t)=[$y_t], \hspace{.25cm} 0 \leq t \leq 1`]. -Find the surface area [`S`] obtained by rotating the curve about the y-axis. +Find the surface area [`S`] obtained by rotating the curve about the y-axis. -[`S =`] [_______________]{$SAy} [@ AnswerFormatHelp("numbers") @]* +[`S =`] [_______________]{$SAy} [@ helpLink("numbers") @]* END_PGML @@ -91,9 +91,9 @@ Given the parametric curve [` \displaystyle x(t)=[$x_t], \hspace{.25cm} y(t)=[$y_t], \hspace{.25cm} 0 \leq t \leq 1`]. -Find the surface area [`S`] obtained by rotating the curve about the x-axis. +Find the surface area [`S`] obtained by rotating the curve about the x-axis. -[`S =`] [_______________]{$SAx} +[`S =`] [_______________]{$SAx} END_PGML diff --git a/Contrib/CCCS/CalculusTwo/07.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_2_63.pg b/Contrib/CCCS/CalculusTwo/07.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_2_63.pg index cdaf55cac7..4bc345b5cb 100644 --- a/Contrib/CCCS/CalculusTwo/07.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_2_63.pg +++ b/Contrib/CCCS/CalculusTwo/07.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_2_63.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## Calculus 2, Given a pair of parametric equations representing a line, find the slope of the line by finding dy/dx. +## Calculus 2, Given a pair of parametric equations representing a line, find the slope of the line by finding dy/dx. ## ENDDESCRIPTION @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", diff --git a/Contrib/CCCS/CalculusTwo/07.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_2_65.pg b/Contrib/CCCS/CalculusTwo/07.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_2_65.pg index d783db1fa5..48fca34f08 100644 --- a/Contrib/CCCS/CalculusTwo/07.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_2_65.pg +++ b/Contrib/CCCS/CalculusTwo/07.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_2_65.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## Calculus 2, Given a pair of parametric equations representing a line, find the slope of the line by finding dy/dx. +## Calculus 2, Given a pair of parametric equations representing a line, find the slope of the line by finding dy/dx. ## ENDDESCRIPTION @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", diff --git a/Contrib/CCCS/CalculusTwo/07.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_2_67.pg b/Contrib/CCCS/CalculusTwo/07.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_2_67.pg index 22df4eabd6..5bfb1047a2 100644 --- a/Contrib/CCCS/CalculusTwo/07.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_2_67.pg +++ b/Contrib/CCCS/CalculusTwo/07.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_2_67.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## Calculus 2, Given a pair of parametric equations, find the slope of the tangent line at some point t=a. Also find the equation of the tangent line. +## Calculus 2, Given a pair of parametric equations, find the slope of the tangent line at some point t=a. Also find the equation of the tangent line. ## ENDDESCRIPTION @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -73,7 +73,7 @@ $x_ta=$x_t->eval(t=>((pi)/$a)); ##Y-COORD## $y_ta=$y_t->eval(t=>((pi)/$a)); -##y-intercept of tan line## +##y-intercept of tan line## $yint=Compute("$y_ta-$m*$x_ta")->reduce; ##Folrmula for tangent line at the point determined by t=a/pi## @@ -83,7 +83,7 @@ $tanline=Formula("$m*x+$yint"); ##Main text## BEGIN_PGML -Given the parametric curve and value of t +Given the parametric curve and value of t [` \displaystyle x(t)=[$x_t], \hspace{.25cm} y(t)=[$y_t], \hspace{.25cm} t=\frac{\pi}{[$a]} `] @@ -98,7 +98,7 @@ BEGIN_PGML Determine the slope of the tangent line at [`t=\frac{\pi}{[$a]}`]. - [`slope=`] [_______________]{$m} [@ AnswerFormatHelp("numbers") @]* + [`slope=`] [_______________]{$m} [@ helpLink("numbers") @]* END_PGML @@ -112,7 +112,7 @@ Section::Begin("Part 2 - 1 point"); BEGIN_PGML Find the equation of the tangent line at [`t=\frac{\pi}{[$a]}`]. -[`y=`] [_______________]{$tanline} [@ AnswerFormatHelp("formulas") @]* +[`y=`] [_______________]{$tanline} [@ helpLink("formulas") @]* END_PGML @@ -147,7 +147,7 @@ $x_ta=$x_t->eval(t=>((pi)/$a)); ##Y-COORD## $y_ta=$y_t->eval(t=>((pi)/$a)); -##y-intercept of tan line## +##y-intercept of tan line## $yint=Compute("$y_ta-$m*$x_ta")->reduce; ##Folrmula for tangent line at the point determined by t=a/pi## @@ -157,7 +157,7 @@ $tanline=Formula("$m*x+$yint"); ##Main text## BEGIN_PGML -Given the parametric curve and value of t +Given the parametric curve and value of t [` \displaystyle x(t)=[$x_t], \hspace{.25cm} y(t)=[$y_t], \hspace{.25cm} t=\frac{\pi}{[$a]} `] @@ -172,7 +172,7 @@ BEGIN_PGML Determine the slope of the tangent line at [`t=\frac{\pi}{[$a]}`]. - [`slope=`] [_______________]{$m} [@ AnswerFormatHelp("numbers") @]* + [`slope=`] [_______________]{$m} [@ helpLink("numbers") @]* END_PGML @@ -186,7 +186,7 @@ Section::Begin("Part 2 - 1 point"); BEGIN_PGML Find the equation of the tangent line at [`t=\frac{\pi}{[$a]}`]. -[`y=`] [_______________]{$tanline} [@ AnswerFormatHelp("formulas") @]* +[`y=`] [_______________]{$tanline} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/07.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_2_68.pg b/Contrib/CCCS/CalculusTwo/07.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_2_68.pg index da60f36781..237a3897bc 100644 --- a/Contrib/CCCS/CalculusTwo/07.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_2_68.pg +++ b/Contrib/CCCS/CalculusTwo/07.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_2_68.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## Calculus 2, Given a pair of parametric equations, find the slope of the tangent line at some point t=a. Also find the equation of the tangent line. +## Calculus 2, Given a pair of parametric equations, find the slope of the tangent line at some point t=a. Also find the equation of the tangent line. ## ENDDESCRIPTION @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -73,7 +73,7 @@ $x_ta=$x_t->eval(t=>$a); ##Y-COORD## $y_ta=$y_t->eval(t=>$a); -##y-intercept of tan line## +##y-intercept of tan line## $yint=Compute("$y_ta-$m*$x_ta")->reduce; ##Folrmula for tangent line at the point determined by t=a/pi## @@ -83,7 +83,7 @@ $tanline=Formula("$m*x+$yint"); ##Main text## BEGIN_PGML -Given the parametric curve and value of t +Given the parametric curve and value of t [` \displaystyle x(t)=[$x_t], \hspace{.25cm} y(t)=[$y_t], \hspace{.25cm} t=[$a] `] @@ -98,7 +98,7 @@ BEGIN_PGML Determine the slope of the tangent line at [`t=[$a]`]. - [`slope=`] [_______________]{$m} [@ AnswerFormatHelp("numbers") @]* + [`slope=`] [_______________]{$m} [@ helpLink("numbers") @]* END_PGML @@ -112,7 +112,7 @@ Section::Begin("Part 2 - 1 point"); BEGIN_PGML Find the equation of the tangent line at [`t=[$a]`]. -[`y=`] [_______________]{$tanline} [@ AnswerFormatHelp("formulas") @]* +[`y=`] [_______________]{$tanline} [@ helpLink("formulas") @]* END_PGML @@ -147,7 +147,7 @@ $x_ta=$x_t->eval(t=>$a); ##Y-COORD## $y_ta=$y_t->eval(t=>$a); -##y-intercept of tan line## +##y-intercept of tan line## $yint=Compute("$y_ta-$m*$x_ta")->reduce; ##Folrmula for tangent line at the point determined by t=a/pi## @@ -157,7 +157,7 @@ $tanline=Formula("$m*x+$yint"); ##Main text## BEGIN_PGML -Given the parametric curve and value of t +Given the parametric curve and value of t [` \displaystyle x(t)=[$x_t], \hspace{.25cm} y(t)=[$y_t], \hspace{.25cm} t=[$a] `] @@ -172,7 +172,7 @@ BEGIN_PGML Determine the slope of the tangent line at [`t=[$a]`]. - [`slope=`] [_______________]{$m} [@ AnswerFormatHelp("numbers") @]* + [`slope=`] [_______________]{$m} [@ helpLink("numbers") @]* END_PGML @@ -186,7 +186,7 @@ Section::Begin("Part 2 - 1 point"); BEGIN_PGML Find the equation of the tangent line at [`t=[$a]`]. -[`y=`] [_______________]{$tanline} [@ AnswerFormatHelp("formulas") @]* +[`y=`] [_______________]{$tanline} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/07.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_2_70.pg b/Contrib/CCCS/CalculusTwo/07.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_2_70.pg index e1bf5b9ae2..f37fa119e0 100644 --- a/Contrib/CCCS/CalculusTwo/07.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_2_70.pg +++ b/Contrib/CCCS/CalculusTwo/07.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_2_70.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## Calculus 2, Given a pair of parametric equations, find the slope of the tangent line at some point t=a. Also find the equation of the tangent line. +## Calculus 2, Given a pair of parametric equations, find the slope of the tangent line at some point t=a. Also find the equation of the tangent line. ## ENDDESCRIPTION @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -73,7 +73,7 @@ $x_ta=$x_t->eval(t=>$a); ##Y-COORD## $y_ta=$y_t->eval(t=>$a); -##y-intercept of tan line## +##y-intercept of tan line## $yint=Compute("$y_ta-$m*$x_ta")->reduce; ##Folrmula for tangent line at the point determined by t=a## @@ -83,7 +83,7 @@ $tanline=Formula("$m*x+$yint"); ##Main text## BEGIN_PGML -Given the parametric curve and value of t +Given the parametric curve and value of t [` \displaystyle x(t)=[$x_t], \hspace{.25cm} y(t)=[$y_t], \hspace{.25cm} t=[$a] `] @@ -98,7 +98,7 @@ BEGIN_PGML Determine the slope of the tangent line at [`t=[$a]`]. - [`slope=`] [_______________]{$m} [@ AnswerFormatHelp("numbers") @]* + [`slope=`] [_______________]{$m} [@ helpLink("numbers") @]* END_PGML @@ -112,7 +112,7 @@ Section::Begin("Part 2 - 1 point"); BEGIN_PGML Find the equation of the tangent line at [`t=[$a]`]. -[`y=`] [_______________]{$tanline} [@ AnswerFormatHelp("formulas") @]* +[`y=`] [_______________]{$tanline} [@ helpLink("formulas") @]* END_PGML @@ -147,7 +147,7 @@ $x_ta=$x_t->eval(t=>$a); ##Y-COORD## $y_ta=$y_t->eval(t=>$a); -##y-intercept of tan line## +##y-intercept of tan line## $yint=Compute("$y_ta-$m*$x_ta")->reduce; ##Folrmula for tangent line at the point determined by t=a## @@ -157,7 +157,7 @@ $tanline=Formula("$m*x+$yint"); ##Main text## BEGIN_PGML -Given the parametric curve and value of t +Given the parametric curve and value of t [` \displaystyle x(t)=[$x_t], \hspace{.25cm} y(t)=[$y_t], \hspace{.25cm} t=[$a] `] @@ -172,7 +172,7 @@ BEGIN_PGML Determine the slope of the tangent line at [`t=[$a]`]. - [`slope=`] [_______________]{$m} [@ AnswerFormatHelp("numbers") @]* + [`slope=`] [_______________]{$m} [@ helpLink("numbers") @]* END_PGML @@ -186,7 +186,7 @@ Section::Begin("Part 2 - 1 point"); BEGIN_PGML Find the equation of the tangent line at [`t=[$a]`]. -[`y=`] [_______________]{$tanline} [@ AnswerFormatHelp("formulas") @]* +[`y=`] [_______________]{$tanline} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/07.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_2_72.pg b/Contrib/CCCS/CalculusTwo/07.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_2_72.pg index c60139ccb2..a6103eb6a5 100644 --- a/Contrib/CCCS/CalculusTwo/07.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_2_72.pg +++ b/Contrib/CCCS/CalculusTwo/07.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_2_72.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -55,14 +55,14 @@ Context()->noreduce('(-x)-y','(-x)+y'); $x_t=Formula("$b*cos(t)")->reduce; $y_t=Formula("$c*sin(t)")->reduce; -##Finding the value of t=d at which the slope of tangent line to the point corresponding to t=d is a +##Finding the value of t=d at which the slope of tangent line to the point corresponding to t=d is a $d=Compute("arctan(-$c/($b*$a))")->reduce; ##X-COORD AND Y-COORD of point of interest $x_td=$x_t->eval(t=>$d); $y_td=$y_t->eval(t=>$d); -##points at which slope is $a +##points at which slope is $a Context("LimitedPoint"); #$p1 = Point($x_td,$y_td); #$p2 = Point(-$x_td,-$y_td); @@ -74,17 +74,17 @@ $L = List(Point("($x_td,$y_td)"), Point("(-$x_td,-$y_td)")); ##Main text## BEGIN_PGML -Given the parametric curve +Given the parametric curve [` \displaystyle x(t)=[$x_t], \hspace{.25cm} y(t)=[$y_t] `]. Find all the points on the curve at which the slope of the tangent line is [`m=[$a] `]. -Enter your solution as a comma separated list of ordered pairs [`(a,b)`] or if there are no points on the curve at which the slope of the tangent line is the given slope enter NONE. +Enter your solution as a comma separated list of ordered pairs [`(a,b)`] or if there are no points on the curve at which the slope of the tangent line is the given slope enter NONE. (Hint: The [`arctan`] function in your calculator is useful, make sure the calculator's mode is in radian.) - [_______________________________]{$L} [@ AnswerFormatHelp("points") @]* + [_______________________________]{$L} [@ helpLink("points") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/07.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_2_73.pg b/Contrib/CCCS/CalculusTwo/07.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_2_73.pg index d0c5ffeb38..234d874155 100644 --- a/Contrib/CCCS/CalculusTwo/07.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_2_73.pg +++ b/Contrib/CCCS/CalculusTwo/07.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_2_73.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextLimitedPoint.pl", @@ -57,15 +57,15 @@ $blank = Point("(1,2)"); ##Main text## BEGIN_PGML -Given the parametric curve +Given the parametric curve [` \displaystyle x(t)=[$x_t], \hspace{.25cm} y(t)=[$y_t] `]. Find all the points on the curve at which the slope of the tangent line is [`m=[$a] `]. -Enter your solution as a comma separated list of ordered pairs [`(x,y)`] or if there are no points on the curve at which the slope of the tangent line is the given slope enter NONE. +Enter your solution as a comma separated list of ordered pairs [`(x,y)`] or if there are no points on the curve at which the slope of the tangent line is the given slope enter NONE. - [_______________________________] [@ AnswerFormatHelp("points") @]* + [_______________________________] [@ helpLink("points") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/07.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_2_76.pg b/Contrib/CCCS/CalculusTwo/07.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_2_76.pg index 303d1d5cf7..6e105c6c8e 100644 --- a/Contrib/CCCS/CalculusTwo/07.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_2_76.pg +++ b/Contrib/CCCS/CalculusTwo/07.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_2_76.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## Calculus 2, Given a pair of parametric equations, find the equation of the tangent line at the point that corresponds to t=a. +## Calculus 2, Given a pair of parametric equations, find the equation of the tangent line at the point that corresponds to t=a. ## ENDDESCRIPTION @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -71,7 +71,7 @@ $x_ta=$x_t->eval(t=>$a); ##Y-COORD## $y_ta=$y_t->eval(t=>$a); -##y-intercept of tan line## +##y-intercept of tan line## $yint=Compute("$y_ta-$m*$x_ta")->reduce; ##Folrmula for tangent line at the point determined by t=a## @@ -81,7 +81,7 @@ $tanline=Formula("$m*x+$yint"); ##Main text## BEGIN_PGML -Consider the parametric curve and value of t +Consider the parametric curve and value of t [` \displaystyle x(t)=[$x_t], \hspace{.25cm} y(t)=[$y_t], \hspace{.25cm} t=[$a] `] @@ -89,7 +89,7 @@ Consider the parametric curve and value of t What is the equation of the tangent line at [`t=[$a]`]? -[`y=`] [_______________]{$tanline} [@ AnswerFormatHelp("formulas") @]* +[`y=`] [_______________]{$tanline} [@ helpLink("formulas") @]* END_PGML @@ -116,7 +116,7 @@ $x_ta=$x_t->eval(t=>$a); ##Y-COORD## $y_ta=$y_t->eval(t=>$a); -##y-intercept of tan line## +##y-intercept of tan line## $yint=Compute("$y_ta-$m*$x_ta")->reduce; ##Folrmula for tangent line at the point determined by t=a## @@ -126,7 +126,7 @@ $tanline=Formula("$m*x+$yint"); ##Main text## BEGIN_PGML -Consider the parametric curve and value of t +Consider the parametric curve and value of t [` \displaystyle x(t)=[$x_t], \hspace{.25cm} y(t)=[$y_t], \hspace{.25cm} t=[$a] `] @@ -134,7 +134,7 @@ Consider the parametric curve and value of t What is the equation of the tangent line at [`t=[$a]`]? -[`y=`] [_______________]{$tanline} [@ AnswerFormatHelp("formulas") @]* +[`y=`] [_______________]{$tanline} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/07.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_2_78-79.pg b/Contrib/CCCS/CalculusTwo/07.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_2_78-79.pg index 3775154946..0fa716644e 100644 --- a/Contrib/CCCS/CalculusTwo/07.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_2_78-79.pg +++ b/Contrib/CCCS/CalculusTwo/07.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_2_78-79.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## Calculus 2, Given a pair of parametric equations, find the values of t for which the horizontal and vertical tangent lines exist. +## Calculus 2, Given a pair of parametric equations, find the values of t for which the horizontal and vertical tangent lines exist. ## ENDDESCRIPTION @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -75,7 +75,7 @@ Find all values of [`t`] at which a horizontal tangent line exists. Enter your solution as a comma separated list or if there are no horizontal tangent lines enter NONE. -[_______________________________]{$L1} [@ AnswerFormatHelp("numbers") @]* +[_______________________________]{$L1} [@ helpLink("numbers") @]* END_PGML @@ -90,7 +90,7 @@ Find all values of [`t`] at which a vertical tangent line exists. Enter your solution as a comma separated list or if there are no vertical tangent lines enter NONE. -[_______________________________]{$L2} [@ AnswerFormatHelp("numbers") @]* +[_______________________________]{$L2} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/07.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_2_81-82.pg b/Contrib/CCCS/CalculusTwo/07.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_2_81-82.pg index e6022648e7..5a1b1a5104 100644 --- a/Contrib/CCCS/CalculusTwo/07.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_2_81-82.pg +++ b/Contrib/CCCS/CalculusTwo/07.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_2_81-82.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## Calculus 2, Given a pair of parametric equations find dy/dx, find the slope of the tangent line at some point t=a and find the equation of the tangent line. +## Calculus 2, Given a pair of parametric equations find dy/dx, find the slope of the tangent line at some point t=a and find the equation of the tangent line. ## ENDDESCRIPTION @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -76,9 +76,9 @@ $y_ta=$y_t->eval(t=>$b); Context()->flags->set( tolType => 'absolute', tolerance => 0.0005, -); +); -##y-intercept of tan line## +##y-intercept of tan line## $yint=Compute("$y_ta-$m*$x_ta")->reduce; #$yint=Formula("$yint"); @@ -89,7 +89,7 @@ $tanline=Formula("$m*x+$yint"); ##Main text## BEGIN_PGML -Consider the parametric curve. +Consider the parametric curve. [` \displaystyle x(t)=[$x_t], \hspace{.25cm} y(t)=[$y_t]`] @@ -103,7 +103,7 @@ Section::Begin("Part 1 - 1 point"); BEGIN_PGML -Find [`\frac{dy}{dx}=`] [____________________________]{$dy_dx} [@ AnswerFormatHelp("formulas") @]* +Find [`\frac{dy}{dx}=`] [____________________________]{$dy_dx} [@ helpLink("formulas") @]* END_PGML @@ -117,7 +117,7 @@ Section::Begin("Part 2 - 1 point"); BEGIN_PGML Find the equation of the tangent line at [`t=\frac{\pi}{4}`]. -[`y=`] [_______________]{$tanline} [@ AnswerFormatHelp("formulas") @]* +[`y=`] [_______________]{$tanline} [@ helpLink("formulas") @]* END_PGML @@ -153,7 +153,7 @@ $x_ta=$x_t->eval(t=>$b); ##Y-COORD## $y_ta=$y_t->eval(t=>$b); -##y-intercept of tan line## +##y-intercept of tan line## $yint=Compute("$y_ta-$m*$x_ta")->reduce; ##Folrmula for tangent line at the point determined by t=$a*pi/4## @@ -176,7 +176,7 @@ Section::Begin("Part 1 - 1 point"); BEGIN_PGML -Find [`\frac{dy}{dx}=`] [____________________________]{$dy_dx} [@ AnswerFormatHelp("formulas") @]* +Find [`\frac{dy}{dx}=`] [____________________________]{$dy_dx} [@ helpLink("formulas") @]* END_PGML @@ -190,7 +190,7 @@ BEGIN_PGML Find the equation of the tangent line at [`t=\frac{[$a]\pi}{4}`]. -[`y=`] [_______________]{$tanline} [@ AnswerFormatHelp("formulas") @]* +[`y=`] [_______________]{$tanline} [@ helpLink("formulas") @]* diff --git a/Contrib/CCCS/CalculusTwo/07.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_2_85.pg b/Contrib/CCCS/CalculusTwo/07.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_2_85.pg index cd66b06fbb..348d588e94 100644 --- a/Contrib/CCCS/CalculusTwo/07.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_2_85.pg +++ b/Contrib/CCCS/CalculusTwo/07.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_2_85.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -94,7 +94,7 @@ $radio = RadioButtons([ ##Main text## BEGIN_PGML -Given the parametric curve and value of t +Given the parametric curve and value of t [` \displaystyle x(t)=[$x_t], \hspace{.25cm} y(t)=[$y_t], \hspace{.25cm} t=\frac{\pi}{[$a]} `] @@ -109,7 +109,7 @@ BEGIN_PGML Determine the slope of the tangent line at [`t=\frac{\pi}{[$a]}`]. - [`slope=`] [_______________]{$m} [@ AnswerFormatHelp("numbers") @]* + [`slope=`] [_______________]{$m} [@ helpLink("numbers") @]* END_PGML @@ -124,7 +124,7 @@ BEGIN_PGML Determine the value of [`\frac{d^{2}y}{dx^{2}}`] at [`t=\frac{\pi}{[$a]}`]. -[`{ \frac{d^{2}y}{dx^{2}} }\Bigr\rvert_{t=\frac{\pi}{[$a]}} =`] [_______________]{$c} [@ AnswerFormatHelp("numbers") @]* +[`{ \frac{d^{2}y}{dx^{2}} }\Bigr\rvert_{t=\frac{\pi}{[$a]}} =`] [_______________]{$c} [@ helpLink("numbers") @]* END_PGML @@ -192,7 +192,7 @@ $radio = RadioButtons([ ##Main text## BEGIN_PGML -Given the parametric curve and value of t +Given the parametric curve and value of t [` \displaystyle x(t)=[$x_t], \hspace{.25cm} y(t)=[$y_t], \hspace{.25cm} t=\frac{\pi}{[$a]} `] @@ -207,7 +207,7 @@ BEGIN_PGML Determine the slope of the tangent line at [`t=\frac{\pi}{[$a]}`]. - [`slope=`] [_______________]{$m} [@ AnswerFormatHelp("numbers") @]* + [`slope=`] [_______________]{$m} [@ helpLink("numbers") @]* END_PGML @@ -222,7 +222,7 @@ BEGIN_PGML Determine the value of [`\frac{d^{2}y}{dx^{2}}`] at [`t=\frac{\pi}{[$a]}`]. -[`{ \frac{d^{2}y}{dx^{2}} }\Bigr\rvert_{t=\frac{\pi}{[$a]}} =`] [_______________]{$c} [@ AnswerFormatHelp("numbers") @]* +[`{ \frac{d^{2}y}{dx^{2}} }\Bigr\rvert_{t=\frac{\pi}{[$a]}} =`] [_______________]{$c} [@ helpLink("numbers") @]* END_PGML Section::End(); diff --git a/Contrib/CCCS/CalculusTwo/07.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_2_86.pg b/Contrib/CCCS/CalculusTwo/07.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_2_86.pg index 95a5ac8383..258fc47e23 100644 --- a/Contrib/CCCS/CalculusTwo/07.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_2_86.pg +++ b/Contrib/CCCS/CalculusTwo/07.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_2_86.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## Calculus 2, Given a pair of parametric equations, find the values of t and corresponding points for which the horizontal and vertical tangent lines exist. +## Calculus 2, Given a pair of parametric equations, find the values of t and corresponding points for which the horizontal and vertical tangent lines exist. ## ENDDESCRIPTION @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -56,7 +56,7 @@ $x_t=Formula("t+$a")->reduce; $y_t=Formula("t^(3)-$b*t")->reduce; ##For this problem dy/dx= (3t^2-b)/1=3t^2-b## -##Values of t for which slope is 0, i.e, 3t^2-b=0 +##Values of t for which slope is 0, i.e, 3t^2-b=0 $t1=Compute(sqrt($b/3))->reduce; $t2=Compute(-sqrt($b/3))->reduce; @@ -67,7 +67,7 @@ $x_t2=$x_t->eval(t=>$t2); $y_t2=$y_t->eval(t=>$t2); Context("LimitedPoint"); -##Points where the slope of tan line is 0 +##Points where the slope of tan line is 0 $p1 = Point($x_t1,$y_t1); $p2 = Point($x_t2,$y_t2); @@ -95,9 +95,9 @@ BEGIN_PGML Find all the points on the curve at which a horizontal tangent line exists. -Enter your solution as a comma separated list of ordered pairs [`(a,b)`] or if there are no points on the curve with a horizontal tangent line enter NONE. +Enter your solution as a comma separated list of ordered pairs [`(a,b)`] or if there are no points on the curve with a horizontal tangent line enter NONE. -[_______________________________] [@ AnswerFormatHelp("points") @]* +[_______________________________] [@ helpLink("points") @]* END_PGML @@ -111,9 +111,9 @@ BEGIN_PGML Find all the points on the curve at which a vertical tangent line exists. -Enter your solution as a comma separated list of ordered pairs [`(a,b)`] or if there are no points on the curve with a vertical tangent line enter NONE. +Enter your solution as a comma separated list of ordered pairs [`(a,b)`] or if there are no points on the curve with a vertical tangent line enter NONE. -[_______________________________] [@ AnswerFormatHelp("points") @]* +[_______________________________] [@ helpLink("points") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/07.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_2_89.pg b/Contrib/CCCS/CalculusTwo/07.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_2_89.pg index 78b54ba5de..5a380a9f88 100644 --- a/Contrib/CCCS/CalculusTwo/07.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_2_89.pg +++ b/Contrib/CCCS/CalculusTwo/07.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_2_89.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -63,7 +63,7 @@ $yp_t = $y_t->D('t'); ##formula for dy/dx## $dy_dx =Formula("($yp_t)/($xp_t)")->reduce; -##derivative of $dy_dx with respect to t to find the second derivative +##derivative of $dy_dx with respect to t to find the second derivative $dy_dx_dt = $dy_dx->D('t'); ##formula for d^(2)y/dx^(2) second derivative## @@ -73,12 +73,12 @@ $d2y_dx2 =Formula("($dy_dx_dt)/($xp_t)")->reduce; ##Main text## BEGIN_PGML -Given the parametric curve +Given the parametric curve [` \displaystyle x(t)=[$x_t], \hspace{.25cm} y(t)=[$y_t]`] -Find [`\frac{d^{2}y}{dx^{2}}=`] [____________________________]{$d2y_dx2} [@ AnswerFormatHelp("formulas") @]* +Find [`\frac{d^{2}y}{dx^{2}}=`] [____________________________]{$d2y_dx2} [@ helpLink("formulas") @]* END_PGML @@ -100,7 +100,7 @@ $yp_t = $y_t->D('t'); ##formula for dy/dx## $dy_dx =Formula("($yp_t)/($xp_t)")->reduce; -##derivative of $dy_dx with respect to t to find the second derivative +##derivative of $dy_dx with respect to t to find the second derivative $dy_dx_dt = $dy_dx->D('t'); ##formula for d^(2)y/dx^(2) second derivative## @@ -110,12 +110,12 @@ $d2y_dx2 =Formula("($dy_dx_dt)/($xp_t)")->reduce; ##Main text## BEGIN_PGML -Given the parametric curve +Given the parametric curve [` \displaystyle x(t)=[$x_t], \hspace{.25cm} y(t)=[$y_t]`]. -Find [`\frac{d^{2}y}{dx^{2}}=`] [____________________________]{$d2y_dx2} [@ AnswerFormatHelp("formulas") @]* +Find [`\frac{d^{2}y}{dx^{2}}=`] [____________________________]{$d2y_dx2} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/07.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_2_91.pg b/Contrib/CCCS/CalculusTwo/07.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_2_91.pg index 56d2800ac4..dc04d22a3c 100644 --- a/Contrib/CCCS/CalculusTwo/07.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_2_91.pg +++ b/Contrib/CCCS/CalculusTwo/07.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_2_91.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## Calculus 2, Given a pair of parametric equations, find the values of t and corresponding points for which the horizontal and vertical tangent lines exist. +## Calculus 2, Given a pair of parametric equations, find the values of t and corresponding points for which the horizontal and vertical tangent lines exist. ## ENDDESCRIPTION @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -64,7 +64,7 @@ $x_th=$x_t->eval(t=>$thoriz); $y_th=$y_t->eval(t=>$thoriz); Context("LimitedPoint"); -##Points where the slope of tan line is 0 +##Points where the slope of tan line is 0 $ph1 = Point($x_th,$y_th); ##Answers for horizontal tan line @@ -82,7 +82,7 @@ $y_tv1=$y_t->eval(t=>$tvert1); $x_tv2=$x_t->eval(t=>$tvert2); $y_tv2=$y_t->eval(t=>$tvert2); -##Points where the slope of tan line is undefined +##Points where the slope of tan line is undefined Context("LimitedPoint"); $pv1 = Point($x_tv1,$y_tv1); $pv2 = Point($x_tv2,$y_tv2); @@ -109,9 +109,9 @@ BEGIN_PGML Find all the points on the curve at which a horizontal tangent line exists. -Enter your solution as a comma separated list of ordered pairs [`(a,b)`] or if there are no points on the curve with a horizontal tangent line enter NONE. +Enter your solution as a comma separated list of ordered pairs [`(a,b)`] or if there are no points on the curve with a horizontal tangent line enter NONE. -[_______________________________]{$L1} [@ AnswerFormatHelp("points") @]* +[_______________________________]{$L1} [@ helpLink("points") @]* END_PGML @@ -125,9 +125,9 @@ BEGIN_PGML Find all the points on the curve at which a vertical tangent line exists. -Enter your solution as a comma separated list of ordered pairs [`(a,b)`] or if there are no points on the curve with a vertical tangent line enter NONE. +Enter your solution as a comma separated list of ordered pairs [`(a,b)`] or if there are no points on the curve with a vertical tangent line enter NONE. -[_______________________________]{$L2} [@ AnswerFormatHelp("points") @]* +[_______________________________]{$L2} [@ helpLink("points") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/07.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_2_94.pg b/Contrib/CCCS/CalculusTwo/07.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_2_94.pg index 2759d0a7ff..87a730167c 100644 --- a/Contrib/CCCS/CalculusTwo/07.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_2_94.pg +++ b/Contrib/CCCS/CalculusTwo/07.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_2_94.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## Calculus 2, Given a pair of parametric equations, find the slope of the tangent line at some point t=a. +## Calculus 2, Given a pair of parametric equations, find the slope of the tangent line at some point t=a. ## ENDDESCRIPTION @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -72,14 +72,14 @@ $m=$dy_dx->eval(t=>$a); ##Main text## BEGIN_PGML -Given the parametric curve and value of t +Given the parametric curve and value of t [` \displaystyle x(t)=[$x_t], \hspace{.25cm} y(t)=[$y_t]`] Find [`\frac{dy}{dx}`] at [`t=[$a]`] - -[`{ \frac{dy}{dx} }\Bigr\rvert_{t=[$a]} =`] [_______________]{$m} [@ AnswerFormatHelp("numbers") @]* + +[`{ \frac{dy}{dx} }\Bigr\rvert_{t=[$a]} =`] [_______________]{$m} [@ helpLink("numbers") @]* END_PGML @@ -108,14 +108,14 @@ $m=$dy_dx->eval(t=>$a); ##Main text## BEGIN_PGML -Given the parametric curve and value of t +Given the parametric curve and value of t [` \displaystyle x(t)=[$x_t], \hspace{.25cm} y(t)=[$y_t]`] Find [`\frac{dy}{dx}`] at [`t=[$a]`] - -[`{ \frac{dy}{dx} }\Bigr\rvert_{t=[$a]} =`] [_______________]{$m} [@ AnswerFormatHelp("numbers") @]* + +[`{ \frac{dy}{dx} }\Bigr\rvert_{t=[$a]} =`] [_______________]{$m} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/07.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_2_99.pg b/Contrib/CCCS/CalculusTwo/07.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_2_99.pg index 45b4659ba1..20419250e7 100644 --- a/Contrib/CCCS/CalculusTwo/07.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_2_99.pg +++ b/Contrib/CCCS/CalculusTwo/07.2/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_2_99.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -70,7 +70,7 @@ $d2y_dx2 =Formula("($dy_dx_dt)/($xp_t)")->reduce; ##Part2 ##dy/dx=(at-1)/(at+1) -##d^(2)y/dx^(2) =(2at)/((at+1)^3) +##d^(2)y/dx^(2) =(2at)/((at+1)^3) ##d^(2)y/dx^(2)=0 at t=0, d^(2)y/dx^(2)=undefined at t=-1/a @@ -95,7 +95,7 @@ $radio = RadioButtons([ ##Main text## BEGIN_PGML -Given the parametric curve +Given the parametric curve [` \displaystyle x(t)=[$x_t], \hspace{.25cm} y(t)=[$y_t]`] @@ -110,7 +110,7 @@ BEGIN_PGML Determine [`\frac{d^{2}y}{dx^{2}}`] as a function of [`t`]. -[`\frac{d^{2}y}{dx^{2}}=`] [_______________]{$d2y_dx2} [@ AnswerFormatHelp("formulas") @]* +[`\frac{d^{2}y}{dx^{2}}=`] [_______________]{$d2y_dx2} [@ helpLink("formulas") @]* END_PGML @@ -120,7 +120,7 @@ Section::Begin("Part 2 - 1 point"); BEGIN_PGML -Determine the values of [`t`] where the curve is concave up or concave down. +Determine the values of [`t`] where the curve is concave up or concave down. A. [` concave \hspace{.2cm} up\hspace{.2cm} for \hspace{.2cm} t>0, \hspace{.2cm} concave \hspace{.2cm} down \hspace{.2cm} for \hspace{.2cm} no \hspace{.2cm} values \hspace{.2cm} of \hspace{.2cm} t `] diff --git a/Contrib/CCCS/CalculusTwo/07.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_3_126-130.pg b/Contrib/CCCS/CalculusTwo/07.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_3_126-130.pg index 222f41eb69..4e8859cddf 100644 --- a/Contrib/CCCS/CalculusTwo/07.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_3_126-130.pg +++ b/Contrib/CCCS/CalculusTwo/07.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_3_126-130.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## Calculus 2, Identify the graph that contains the polar points given. +## Calculus 2, Identify the graph that contains the polar points given. ## ENDDESCRIPTION @@ -22,7 +22,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -66,7 +66,7 @@ $x4=Compute("$dp*cos($d)")->reduce; $y4=Compute("$dp*sin($d)")->reduce; #####Polar points are ($ap, $a), ($bp,$b), ($cp, $c), ($dp, $d)####### -################Corresponding Rectangular Points############## +################Corresponding Rectangular Points############## ##Context("Point"); ##$Rectang1 = Point($x1, $y1); ##$Rectang2 = Point($x2, $y2); @@ -141,11 +141,11 @@ BEGIN_PGML Consider the polar points [`A([$ap],\frac{5\pi}{3}),\hspace{.1cm} B([$bp],\frac{7\pi}{6}),\hspace{.1cm} C([$cp], \frac{5\pi}{6}),\hspace{.1cm} D([$dp], \frac{\pi}{2}) `] -Choose the graph that contains the polar points given [_________________]{$popup1} +Choose the graph that contains the polar points given [_________________]{$popup1} -(Click on graphs to enlarge, click on enlarged graph to zoom in.) +(Click on graphs to enlarge, click on enlarged graph to zoom in.) ->>I. [@ image(insertGraph($gr_0), width=>200, height=>200), @]* II. [@ image(insertGraph($gr_1), width=>200, height=>200), @]* << +>>I. [@ image(insertGraph($gr_0), width=>200, height=>200), @]* II. [@ image(insertGraph($gr_1), width=>200, height=>200), @]* << >>III. [@ image(insertGraph($gr_2), width=>200, height=>200), @]* IV. [@ image(insertGraph($gr_3), width=>200, height=>200), @]* << diff --git a/Contrib/CCCS/CalculusTwo/07.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_3_132-135.pg b/Contrib/CCCS/CalculusTwo/07.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_3_132-135.pg index cbe9219a58..22fd0c0638 100644 --- a/Contrib/CCCS/CalculusTwo/07.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_3_132-135.pg +++ b/Contrib/CCCS/CalculusTwo/07.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_3_132-135.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## Calculus 2, Given a polar graph with points on it, find polar coordinates for the points. +## Calculus 2, Given a polar graph with points on it, find polar coordinates for the points. ## ENDDESCRIPTION ## DBsubject(Calculus - single variable) @@ -26,7 +26,7 @@ loadMacros( "PGgraphmacros.pl", "PGessaymacros.pl", "parserRadioButtons.pl", - "AnswerFormatHelp.pl", + ); TEXT(beginproblem()); @@ -53,16 +53,16 @@ Give a set of polar coordinates for each point. Use radians for [`\theta, \hspace{.25cm} 0< \theta \leq 2\pi`]. ->>[@ image("Question_2_Polar_Points.png", width=>500, height=>500) +>>[@ image("Question_2_Polar_Points.png", width=>500, height=>500) @]*<< -[`A=`][____________________]{$a}[@ AnswerFormatHelp("points") @]* +[`A=`][____________________]{$a}[@ helpLink("points") @]* -[`B=`][____________________]{$b}[@ AnswerFormatHelp("points") @]* +[`B=`][____________________]{$b}[@ helpLink("points") @]* -[`C=`][____________________]{$c}[@ AnswerFormatHelp("points") @]* +[`C=`][____________________]{$c}[@ helpLink("points") @]* -[`D=`][____________________]{$d}[@ AnswerFormatHelp("points") @]* +[`D=`][____________________]{$d}[@ helpLink("points") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/07.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_3_137_139_141.pg b/Contrib/CCCS/CalculusTwo/07.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_3_137_139_141.pg index fc88c58bb5..6c0b8f0893 100644 --- a/Contrib/CCCS/CalculusTwo/07.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_3_137_139_141.pg +++ b/Contrib/CCCS/CalculusTwo/07.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_3_137_139_141.pg @@ -26,7 +26,7 @@ loadMacros( "PGgraphmacros.pl", "PGessaymacros.pl", "parserRadioButtons.pl", - "AnswerFormatHelp.pl", + ); TEXT(beginproblem()); @@ -123,14 +123,14 @@ For each of the following rectangular points find two sets of polar points with Use radians for [`\theta`] and round to three decimal places. -[` A=([$ax],[$ay]), \hspace{.5cm} B=([$bx],[$by]), \hspace{.5cm} C=([$cx],-\sqrt{3})`] - +[` A=([$ax],[$ay]), \hspace{.5cm} B=([$bx],[$by]), \hspace{.5cm} C=([$cx],-\sqrt{3})`] + -[`A=`][______________________]{$L1}(enter a comma separated list of ordered pairs)[@ AnswerFormatHelp("points") @]* +[`A=`][______________________]{$L1}(enter a comma separated list of ordered pairs)[@ helpLink("points") @]* -[`B=`][______________________]{$L2}(enter a comma separated list of ordered pairs)[@ AnswerFormatHelp("points") @]* +[`B=`][______________________]{$L2}(enter a comma separated list of ordered pairs)[@ helpLink("points") @]* -[`C=`][______________________]{$L3}(enter a comma separated list of ordered pairs)[@ AnswerFormatHelp("points") @]* +[`C=`][______________________]{$L3}(enter a comma separated list of ordered pairs)[@ helpLink("points") @]* END_PGML @@ -142,14 +142,14 @@ For each of the following rectangular points find two sets of polar points with Use radians for [`\theta`] and round to three decimal places. -[` A=([$ax],[$ay]), \hspace{.5cm} B=([$bx],[$by]), \hspace{.5cm} C=([$cx],\sqrt{3})`] - +[` A=([$ax],[$ay]), \hspace{.5cm} B=([$bx],[$by]), \hspace{.5cm} C=([$cx],\sqrt{3})`] + -[`A=`][______________________]{$L1}(enter a comma separated list of ordered pairs)[@ AnswerFormatHelp("points") @]* +[`A=`][______________________]{$L1}(enter a comma separated list of ordered pairs)[@ helpLink("points") @]* -[`B=`][______________________]{$L2}(enter a comma separated list of ordered pairs)[@ AnswerFormatHelp("points") @]* +[`B=`][______________________]{$L2}(enter a comma separated list of ordered pairs)[@ helpLink("points") @]* -[`C=`][______________________]{$L3}(enter a comma separated list of ordered pairs)[@ AnswerFormatHelp("points") @]* +[`C=`][______________________]{$L3}(enter a comma separated list of ordered pairs)[@ helpLink("points") @]* END_PGML } diff --git a/Contrib/CCCS/CalculusTwo/07.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_3_143_145_147.pg b/Contrib/CCCS/CalculusTwo/07.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_3_143_145_147.pg index ab811024af..529a12fe14 100644 --- a/Contrib/CCCS/CalculusTwo/07.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_3_143_145_147.pg +++ b/Contrib/CCCS/CalculusTwo/07.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_3_143_145_147.pg @@ -26,7 +26,7 @@ loadMacros( "PGgraphmacros.pl", "PGessaymacros.pl", "parserRadioButtons.pl", - "AnswerFormatHelp.pl", + ); TEXT(beginproblem()); @@ -78,14 +78,14 @@ BEGIN_PGML For each of the following polar points find equivalent rectangular coordinates. -[` A=([$r1],\frac{[$a1]\pi}{6}), \hspace{.5cm} B=([$r2],\frac{[$a2]\pi}{3}), \hspace{.5cm} C=([$r3],\frac{[$a3]\pi}{2})`] - +[` A=([$r1],\frac{[$a1]\pi}{6}), \hspace{.5cm} B=([$r2],\frac{[$a2]\pi}{3}), \hspace{.5cm} C=([$r3],\frac{[$a3]\pi}{2})`] + -[`A=`][______________________]{$p1}(enter an ordered pair)[@ AnswerFormatHelp("points") @]* +[`A=`][______________________]{$p1}(enter an ordered pair)[@ helpLink("points") @]* -[`B=`][______________________]{$p2}(enter an ordered pair)[@ AnswerFormatHelp("points") @]* +[`B=`][______________________]{$p2}(enter an ordered pair)[@ helpLink("points") @]* -[`C=`][______________________]{$p3}(enter an ordered pair)[@ AnswerFormatHelp("points") @]* +[`C=`][______________________]{$p3}(enter an ordered pair)[@ helpLink("points") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/07.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_3_154.pg b/Contrib/CCCS/CalculusTwo/07.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_3_154.pg index 25eafd7167..e1e45a58af 100644 --- a/Contrib/CCCS/CalculusTwo/07.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_3_154.pg +++ b/Contrib/CCCS/CalculusTwo/07.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_3_154.pg @@ -22,7 +22,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -102,7 +102,7 @@ BEGIN_PGML Match the polar equation with its corresponding rectangular equation. - [__________________]{$radio1} + [__________________]{$radio1} END_PGML @@ -116,7 +116,7 @@ Section::Begin("Part 2 - 1 point"); BEGIN_PGML Describe the graph of [`r=[$a]`] -[__________________]{$radio2} +[__________________]{$radio2} END_PGML diff --git a/Contrib/CCCS/CalculusTwo/07.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_3_155.pg b/Contrib/CCCS/CalculusTwo/07.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_3_155.pg index 93e3f52fa4..5db988bba5 100644 --- a/Contrib/CCCS/CalculusTwo/07.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_3_155.pg +++ b/Contrib/CCCS/CalculusTwo/07.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_3_155.pg @@ -22,7 +22,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -102,7 +102,7 @@ BEGIN_PGML Match the polar equation with its corresponding rectangular equation. - [__________________]{$radio1} + [__________________]{$radio1} END_PGML @@ -116,7 +116,7 @@ Section::Begin("Part 2 - 1 point"); BEGIN_PGML Describe the graph of [`\theta = \frac{\pi}{[$a]}`] -[__________________]{$radio2} +[__________________]{$radio2} END_PGML diff --git a/Contrib/CCCS/CalculusTwo/07.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_3_158.pg b/Contrib/CCCS/CalculusTwo/07.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_3_158.pg index 31f221b609..abb45cf1e8 100644 --- a/Contrib/CCCS/CalculusTwo/07.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_3_158.pg +++ b/Contrib/CCCS/CalculusTwo/07.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_3_158.pg @@ -22,7 +22,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -75,7 +75,7 @@ $sqrt3=Compute("sqrt(3)"); $sqrt6=Compute("sqrt(6)"); $sqrt8=Compute("sqrt(8)"); -$a=list_random($sqrt2,2); +$a=list_random($sqrt2,2); $b=list_random(1,$sqrt6); $c=list_random($sqrt3, $sqrt8); @@ -96,7 +96,7 @@ $asquared=Compute("$a**2"); #); ##PART 2## -##Parametric equations added to the grids## +##Parametric equations added to the grids## ## ( x_0(t)=$bcos(t), y_0(t)=$bsin(t) ), 0<= t <= 2pi ## INCORRECT PLOT## $x_0 = sub { my $t = shift(); @@ -157,7 +157,7 @@ Given the rectangular equation [`x^{2}+y^{2}=2`] -answer the following questions. +answer the following questions. END_PGML Scaffold::Begin(); @@ -169,7 +169,7 @@ BEGIN_PGML Match the rectangular equation with its corresponding polar equation. - [__________________]{$radio1} + [__________________]{$radio1} END_PGML @@ -183,12 +183,12 @@ Section::Begin("Part 2 - 1 point"); BEGIN_PGML Which of the following plots represents the graph of [`r=\sqrt{2}`] ? -[@ $popup->menu() @]* +[@ $popup->menu() @]* ->>A. [@ image(insertGraph($gr_3), width=>200, height=>200), @]* B. [@ image(insertGraph($gr_0), width=>200, height=>200), @]* << +>>A. [@ image(insertGraph($gr_3), width=>200, height=>200), @]* B. [@ image(insertGraph($gr_0), width=>200, height=>200), @]* << ->>C. [@ image(insertGraph($gr_1), width=>200, height=>200), @]* D. [@ image(insertGraph($gr_2), width=>200, height=>200), @]* << +>>C. [@ image(insertGraph($gr_1), width=>200, height=>200), @]* D. [@ image(insertGraph($gr_2), width=>200, height=>200), @]* << END_PGML @@ -235,7 +235,7 @@ BEGIN_PGML Match the rectangular equation with its corresponding polar equation. - [__________________]{$radio1} + [__________________]{$radio1} END_PGML @@ -249,12 +249,12 @@ Section::Begin("Part 2 - 1 point"); BEGIN_PGML Which of the following plots represents the graph of [`r=[$a]`] ? -[@ $popup->menu() @]* +[@ $popup->menu() @]* ->>A. [@ image(insertGraph($gr_3), width=>200, height=>200), @]* B. [@ image(insertGraph($gr_0), width=>200, height=>200), @]* << +>>A. [@ image(insertGraph($gr_3), width=>200, height=>200), @]* B. [@ image(insertGraph($gr_0), width=>200, height=>200), @]* << ->>C. [@ image(insertGraph($gr_1), width=>200, height=>200), @]* D. [@ image(insertGraph($gr_2), width=>200, height=>200), @]* << +>>C. [@ image(insertGraph($gr_1), width=>200, height=>200), @]* D. [@ image(insertGraph($gr_2), width=>200, height=>200), @]* << END_PGML diff --git a/Contrib/CCCS/CalculusTwo/07.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_3_160.pg b/Contrib/CCCS/CalculusTwo/07.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_3_160.pg index c183cb2c97..ce7e31e392 100644 --- a/Contrib/CCCS/CalculusTwo/07.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_3_160.pg +++ b/Contrib/CCCS/CalculusTwo/07.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_3_160.pg @@ -22,7 +22,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -69,8 +69,8 @@ size=>[600,600] ); ##Random variables for changing parametric plots## -$a=list_random(2,3,4,5); -$b=list_random(-2,-3,-4,-5); +$a=list_random(2,3,4,5); +$b=list_random(-2,-3,-4,-5); ####rectangular equation is the horizontal line x=$a ##### @@ -92,7 +92,7 @@ $radio1 = RadioButtons([ ); ##PART 2## -##Parametric equations added to the grids## +##Parametric equations added to the grids## ## ## INCORRECT PLOT## $x_0 = sub { my $t = shift(); @@ -151,7 +151,7 @@ BEGIN_PGML Match the rectangular equation with its corresponding polar equation. - [__________________]{$radio1} + [__________________]{$radio1} END_PGML @@ -165,12 +165,12 @@ Section::Begin("Part 2 - 1 point"); BEGIN_PGML Which of the following plots represents the graph of [`r=[$a]\sec\theta`] ? -[@ $popup->menu() @]* +[@ $popup->menu() @]* ->>A. [@ image(insertGraph($gr_3), width=>200, height=>200), @]* B. [@ image(insertGraph($gr_0), width=>200, height=>200), @]* << +>>A. [@ image(insertGraph($gr_3), width=>200, height=>200), @]* B. [@ image(insertGraph($gr_0), width=>200, height=>200), @]* << ->>C. [@ image(insertGraph($gr_1), width=>200, height=>200), @]* D. [@ image(insertGraph($gr_2), width=>200, height=>200), @]* << +>>C. [@ image(insertGraph($gr_1), width=>200, height=>200), @]* D. [@ image(insertGraph($gr_2), width=>200, height=>200), @]* << END_PGML diff --git a/Contrib/CCCS/CalculusTwo/07.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_3_161.pg b/Contrib/CCCS/CalculusTwo/07.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_3_161.pg index d9dc64a770..15421169b8 100644 --- a/Contrib/CCCS/CalculusTwo/07.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_3_161.pg +++ b/Contrib/CCCS/CalculusTwo/07.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_3_161.pg @@ -22,7 +22,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -69,8 +69,8 @@ size=>[600,600] ); ##Random variables for changing parametric plots## -$a=list_random(3,5); -$b=list_random(2,4); +$a=list_random(3,5); +$b=list_random(2,4); ####rectangular equation is the horizontal line $ax-y=$b ##### @@ -92,7 +92,7 @@ $radio1 = RadioButtons([ ); ##PART 2## -##Parametric equations added to the grids## +##Parametric equations added to the grids## ## ## INCORRECT PLOT## $x_0 = sub { my $t = shift(); @@ -163,7 +163,7 @@ Match the rectangular equation with its corresponding polar equation. [`D. r=\frac{[$b]}{[$a]\sin\theta - \cos\theta}`] - [__________________]{$radio1} + [__________________]{$radio1} END_PGML @@ -177,12 +177,12 @@ Section::Begin("Part 2 - 1 point"); BEGIN_PGML Which of the following plots represents the graph of [`r=\frac{[$b]}{[$a]\cos\theta - \sin\theta}`] ? -[@ $popup->menu() @]* +[@ $popup->menu() @]* ->>A. [@ image(insertGraph($gr_3), width=>200, height=>200), @]* B. [@ image(insertGraph($gr_0), width=>200, height=>200), @]* << +>>A. [@ image(insertGraph($gr_3), width=>200, height=>200), @]* B. [@ image(insertGraph($gr_0), width=>200, height=>200), @]* << ->>C. [@ image(insertGraph($gr_1), width=>200, height=>200), @]* D. [@ image(insertGraph($gr_2), width=>200, height=>200), @]* << +>>C. [@ image(insertGraph($gr_1), width=>200, height=>200), @]* D. [@ image(insertGraph($gr_2), width=>200, height=>200), @]* << END_PGML diff --git a/Contrib/CCCS/CalculusTwo/07.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_3_164.pg b/Contrib/CCCS/CalculusTwo/07.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_3_164.pg index d41cc610a8..c10763c138 100644 --- a/Contrib/CCCS/CalculusTwo/07.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_3_164.pg +++ b/Contrib/CCCS/CalculusTwo/07.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_3_164.pg @@ -22,7 +22,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -69,15 +69,15 @@ size=>[600,600] ); ##Random variables for changing parametric plots## -$a=list_random(-1,1); -$b=list_random(4,6); +$a=list_random(-1,1); +$b=list_random(4,6); $c=Compute("$b/2")->reduce; $csquared=Compute("$c**2")->reduce; ####polar equation is either circle r=$bcos(t) if $a=1 or r=$bsin(t) if $a=-1 ##### -if ( $a == -1 ) { +if ( $a == -1 ) { ##PART 1 $radio1 = RadioButtons([ @@ -113,7 +113,7 @@ $radio1 = RadioButtons([ ##PART 2## -##Parametric equations added to the grids## +##Parametric equations added to the grids## ## ## INCORRECT PLOT## $x_0 = sub { my $t = shift(); @@ -194,7 +194,7 @@ Match the polar equation with its corresponding rectangular equation. [`D. x^{2} + y^{2} = [$csquared]`] - [__________________]{$radio1} + [__________________]{$radio1} END_PGML @@ -211,9 +211,9 @@ Which of the following plots represents the graph of [`x^{2} + (y-[$c])^{2} = [$ [@ $popup->menu() @]* (click on graphs to enlarge) ->>A. [@ image(insertGraph($gr_3), width=>200, height=>200), @]* B. [@ image(insertGraph($gr_0), width=>200, height=>200), @]* << +>>A. [@ image(insertGraph($gr_3), width=>200, height=>200), @]* B. [@ image(insertGraph($gr_0), width=>200, height=>200), @]* << ->>C. [@ image(insertGraph($gr_1), width=>200, height=>200), @]* D. [@ image(insertGraph($gr_2), width=>200, height=>200), @]* << +>>C. [@ image(insertGraph($gr_1), width=>200, height=>200), @]* D. [@ image(insertGraph($gr_2), width=>200, height=>200), @]* << END_PGML @@ -257,7 +257,7 @@ Match the polar equation with its corresponding rectangular equation. [`D. x^{2} + y^{2} = [$csquared]`] - [__________________]{$radio1} + [__________________]{$radio1} END_PGML @@ -274,9 +274,9 @@ Which of the following plots represents the graph of [`(x-[$c])^{2} + y^{2} = [$ [@ $popup->menu() @]* (click on graphs to enlarge) ->>A. [@ image(insertGraph($gr_3), width=>200, height=>200), @]* B. [@ image(insertGraph($gr_0), width=>200, height=>200), @]* << +>>A. [@ image(insertGraph($gr_3), width=>200, height=>200), @]* B. [@ image(insertGraph($gr_0), width=>200, height=>200), @]* << ->>C. [@ image(insertGraph($gr_1), width=>200, height=>200), @]* D. [@ image(insertGraph($gr_2), width=>200, height=>200), @]* << +>>C. [@ image(insertGraph($gr_1), width=>200, height=>200), @]* D. [@ image(insertGraph($gr_2), width=>200, height=>200), @]* << END_PGML @@ -288,7 +288,7 @@ Section::End(); Scaffold::End(); -} +} ################################# # Solution diff --git a/Contrib/CCCS/CalculusTwo/07.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_3_166.pg b/Contrib/CCCS/CalculusTwo/07.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_3_166.pg index 3e82581d5e..6ad8681163 100644 --- a/Contrib/CCCS/CalculusTwo/07.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_3_166.pg +++ b/Contrib/CCCS/CalculusTwo/07.3/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_3_166.pg @@ -22,7 +22,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -69,11 +69,11 @@ size=>[600,600] ); ##Random variables for changing parametric plots## -$a=list_random(-1,1); +$a=list_random(-1,1); ####polar equation is either parabola r=cot(t)csc(t) if $a=-1 or r=tan(t)sec(t) if $a=1 ##### -if ( $a == 1 ) { +if ( $a == 1 ) { ##PART 1 $radio1 = RadioButtons([ @@ -109,7 +109,7 @@ $radio1 = RadioButtons([ ##PART 2## -##Parametric equations added to the grids## +##Parametric equations added to the grids## ## ## INCORRECT PLOT## $x_0 = sub { my $t = shift(); @@ -190,7 +190,7 @@ Match the polar equation with its corresponding rectangular equation. [`D. x^{2}=y-1`] - [__________________]{$radio1} + [__________________]{$radio1} END_PGML @@ -207,9 +207,9 @@ Which of the following plots represents the graph of [`y^{2}=x`] ? [@ $popup->menu() @]* (click on graphs to enlarge) ->>A. [@ image(insertGraph($gr_3), width=>200, height=>200), @]* B. [@ image(insertGraph($gr_0), width=>200, height=>200), @]* << +>>A. [@ image(insertGraph($gr_3), width=>200, height=>200), @]* B. [@ image(insertGraph($gr_0), width=>200, height=>200), @]* << ->>C. [@ image(insertGraph($gr_1), width=>200, height=>200), @]* D. [@ image(insertGraph($gr_2), width=>200, height=>200), @]* << +>>C. [@ image(insertGraph($gr_1), width=>200, height=>200), @]* D. [@ image(insertGraph($gr_2), width=>200, height=>200), @]* << END_PGML @@ -253,7 +253,7 @@ Match the polar equation with its corresponding rectangular equation. [`D. x^{2}=y-1`] - [__________________]{$radio1} + [__________________]{$radio1} END_PGML @@ -270,9 +270,9 @@ Which of the following plots represents the graph of [`x^{2}=y`] ? [@ $popup->menu() @]* (click on graphs to enlarge) ->>A. [@ image(insertGraph($gr_3), width=>200, height=>200), @]* B. [@ image(insertGraph($gr_0), width=>200, height=>200), @]* << +>>A. [@ image(insertGraph($gr_3), width=>200, height=>200), @]* B. [@ image(insertGraph($gr_0), width=>200, height=>200), @]* << ->>C. [@ image(insertGraph($gr_1), width=>200, height=>200), @]* D. [@ image(insertGraph($gr_2), width=>200, height=>200), @]* << +>>C. [@ image(insertGraph($gr_1), width=>200, height=>200), @]* D. [@ image(insertGraph($gr_2), width=>200, height=>200), @]* << END_PGML @@ -284,7 +284,7 @@ Section::End(); Scaffold::End(); -} +} ################################# # Solution diff --git a/Contrib/CCCS/CalculusTwo/07.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_4_189.pg b/Contrib/CCCS/CalculusTwo/07.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_4_189.pg index fd1a36926f..c5beb9043f 100644 --- a/Contrib/CCCS/CalculusTwo/07.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_4_189.pg +++ b/Contrib/CCCS/CalculusTwo/07.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_4_189.pg @@ -21,7 +21,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -44,7 +44,7 @@ $refreshCaschedImages = 1; Context("Numeric"); ##Random variables ## -$a=list_random(2,4); +$a=list_random(2,4); ##bounds of integration $alpha=(0); @@ -62,11 +62,11 @@ $integrand=(2); BEGIN_PGML Determine a definite integral that represents the area of the region enclosed by the polar curve [`r=[$a]`]. -[`\hspace{3cm }\displaystyle A = \int_{\alpha}^{\beta} g(\theta) d\theta`] +[`\hspace{3cm }\displaystyle A = \int_{\alpha}^{\beta} g(\theta) d\theta`] -[`\alpha=`][_____________]{$alpha},[@ AnswerFormatHelp("numbers") @]* -[`\beta=`][_____________]{$beta},[@ AnswerFormatHelp("numbers") @]* -[`g(\theta)=`][_____________]{$integrand}[@ AnswerFormatHelp("formulas") @]*(Type in theta for [`\theta`]). +[`\alpha=`][_____________]{$alpha},[@ helpLink("numbers") @]* +[`\beta=`][_____________]{$beta},[@ helpLink("numbers") @]* +[`g(\theta)=`][_____________]{$integrand}[@ helpLink("formulas") @]*(Type in theta for [`\theta`]). END_PGML } else { @@ -80,11 +80,11 @@ $integrand=(8); BEGIN_PGML Determine a definite integral that represents the area of the region enclosed by the polar curve [`r=[$a]`]. -[` \hspace{3cm }\displaystyle \int_{\alpha}^{\beta} g(\theta) d\theta`] +[` \hspace{3cm }\displaystyle \int_{\alpha}^{\beta} g(\theta) d\theta`] -[`\alpha=`][_____________]{$alpha},[@ AnswerFormatHelp("numbers") @]* -[`\beta=`][_____________]{$beta},[@ AnswerFormatHelp("numbers") @]* -[`g(\theta)=`][_____________]{$integrand}[@ AnswerFormatHelp("formulas") @]*(Type in theta for [`\theta`]). +[`\alpha=`][_____________]{$alpha},[@ helpLink("numbers") @]* +[`\beta=`][_____________]{$beta},[@ helpLink("numbers") @]* +[`g(\theta)=`][_____________]{$integrand}[@ helpLink("formulas") @]*(Type in theta for [`\theta`]). END_PGML } diff --git a/Contrib/CCCS/CalculusTwo/07.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_4_190.pg b/Contrib/CCCS/CalculusTwo/07.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_4_190.pg index 22ce76cda9..5fc8211dd8 100644 --- a/Contrib/CCCS/CalculusTwo/07.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_4_190.pg +++ b/Contrib/CCCS/CalculusTwo/07.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_4_190.pg @@ -21,7 +21,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -45,9 +45,9 @@ Context("Numeric"); Context()->variables->add(theta => 'Real'); ##Random variables ## -$a=list_random(-1,1); +$a=list_random(-1,1); -##Conditional to change problem, if $a=-1 r=1+sin(theta), else, r=1-sin(theta) +##Conditional to change problem, if $a=-1 r=1+sin(theta), else, r=1-sin(theta) if ( $a == -1) { @@ -65,11 +65,11 @@ BEGIN_PGML Determine a definite integral that represents the area of the region in the first quadrant and within the cardioid [`r=1 +\sin(\theta)`]. -[` \hspace{3cm }\displaystyle A= \int_{\alpha}^{\beta} g(\theta) d\theta`] +[` \hspace{3cm }\displaystyle A= \int_{\alpha}^{\beta} g(\theta) d\theta`] -[`\alpha=`][_____________]{$alpha},[@ AnswerFormatHelp("numbers") @]* -[`\beta=`][_____________]{$beta},[@ AnswerFormatHelp("numbers") @]* -[`g(\theta)=`][_____________]{$integrand}[@ AnswerFormatHelp("formulas") @]*(Type in theta for [`\theta`]). +[`\alpha=`][_____________]{$alpha},[@ helpLink("numbers") @]* +[`\beta=`][_____________]{$beta},[@ helpLink("numbers") @]* +[`g(\theta)=`][_____________]{$integrand}[@ helpLink("formulas") @]*(Type in theta for [`\theta`]). END_PGML } else { @@ -88,7 +88,7 @@ BEGIN_PGML Determine a definite integral that represents the area of the region in the fourth quadrant and within the cardioid [`r=1 -\sin(\theta)`]. -[` \hspace{3cm }\displaystyle A= \int_{\alpha}^{\beta} g(\theta) d\theta`] +[` \hspace{3cm }\displaystyle A= \int_{\alpha}^{\beta} g(\theta) d\theta`] [`\alpha=`][_____________]{$alpha}, [`\beta=`][_____________]{$beta}, diff --git a/Contrib/CCCS/CalculusTwo/07.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_4_192.pg b/Contrib/CCCS/CalculusTwo/07.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_4_192.pg index 92f664d353..7b26b00aa0 100644 --- a/Contrib/CCCS/CalculusTwo/07.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_4_192.pg +++ b/Contrib/CCCS/CalculusTwo/07.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_4_192.pg @@ -21,7 +21,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -45,9 +45,9 @@ Context("Numeric"); Context()->variables->add(theta => 'Real'); ##Random variables ## -$a=list_random(-1,1); +$a=list_random(-1,1); -##Conditional to change problem, if $a=-1 r=cos(3(theta)), else, r=cos(5(theta)) +##Conditional to change problem, if $a=-1 r=cos(3(theta)), else, r=cos(5(theta)) if ( $a == -1) { @@ -64,11 +64,11 @@ $integrand=Formula("1/2*cos(3(theta))^2")->reduce; BEGIN_PGML Determine a definite integral that represents the area of the petal of [`r=\cos(3\theta)`] in the third quadrant. -[`` \hspace{3cm }A= \int_{\alpha}^{\beta} g(\theta) d\theta``] +[`` \hspace{3cm }A= \int_{\alpha}^{\beta} g(\theta) d\theta``] -[`\alpha=`][_____________]{$alpha},[@ AnswerFormatHelp("numbers") @]* -[`\beta=`][_____________]{$beta},[@ AnswerFormatHelp("numbers") @]* -[`g(\theta)=`][_____________]{$integrand}[@ AnswerFormatHelp("formulas") @]* (Type in theta for [`\theta`]) +[`\alpha=`][_____________]{$alpha},[@ helpLink("numbers") @]* +[`\beta=`][_____________]{$beta},[@ helpLink("numbers") @]* +[`g(\theta)=`][_____________]{$integrand}[@ helpLink("formulas") @]* (Type in theta for [`\theta`]) END_PGML } else { @@ -86,11 +86,11 @@ $integrand=Formula("1/2*cos(5(theta))^2")->reduce; BEGIN_PGML Determine a definite integral that represents the area of the petal of [`r=\cos(5\theta)`] in the third quadrant. -[``A= \hspace{3cm } \int_{\alpha}^{\beta} g(\theta) d\theta``] +[``A= \hspace{3cm } \int_{\alpha}^{\beta} g(\theta) d\theta``] -[`\alpha=`][_____________]{$alpha},[@ AnswerFormatHelp("numbers") @]* -[`\beta=`][_____________]{$beta},[@ AnswerFormatHelp("numbers") @]* -[`g(\theta)=`][_____________]{$integrand}[@ AnswerFormatHelp("formulas") @]*(Type in theta for [`\theta`]). +[`\alpha=`][_____________]{$alpha},[@ helpLink("numbers") @]* +[`\beta=`][_____________]{$beta},[@ helpLink("numbers") @]* +[`g(\theta)=`][_____________]{$integrand}[@ helpLink("formulas") @]*(Type in theta for [`\theta`]). END_PGML } diff --git a/Contrib/CCCS/CalculusTwo/07.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_4_196.pg b/Contrib/CCCS/CalculusTwo/07.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_4_196.pg index 8e563599cb..058672fdf7 100644 --- a/Contrib/CCCS/CalculusTwo/07.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_4_196.pg +++ b/Contrib/CCCS/CalculusTwo/07.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_4_196.pg @@ -21,7 +21,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -45,7 +45,7 @@ Context("Numeric"); Context()->variables->add(theta => 'Real'); ##Random variables ## -$a=list_random(-1,1); +$a=list_random(-1,1); ##Conditional to change problem, if $a=-1 r=3-4cos(theta), else, r=1-3cos(theta) @@ -64,11 +64,11 @@ $integrand=Formula("(3-4*cos(theta))^2")->reduce; BEGIN_PGML Determine a definite integral that represents the area of the region enclosed by the inner loop of [`r=3-4\cos(\theta)`]. -[` \hspace{3cm }\displaystyle \int_{\alpha}^{\beta} f(\theta) d\theta`] +[` \hspace{3cm }\displaystyle \int_{\alpha}^{\beta} f(\theta) d\theta`] -[`\alpha=`][_____________]{$alpha},[@ AnswerFormatHelp("numbers") @]* -[`\beta=`][_____________]{$beta},[@ AnswerFormatHelp("numbers") @]* -[`f(\theta)=`][_____________]{$integrand}.[@ AnswerFormatHelp("formulas") @]* (Type in theta for [`\theta`]) +[`\alpha=`][_____________]{$alpha},[@ helpLink("numbers") @]* +[`\beta=`][_____________]{$beta},[@ helpLink("numbers") @]* +[`f(\theta)=`][_____________]{$integrand}.[@ helpLink("formulas") @]* (Type in theta for [`\theta`]) END_PGML } else { @@ -86,11 +86,11 @@ $integrand=Formula("(1-3*cos(theta))^2")->reduce; BEGIN_PGML Determine a definite integral that represents the area of the region enclosed by the inner loop of [`r=1-3\cos(\theta)`]. -[` \hspace{3cm }\displaystyle \int_{\alpha}^{\beta} f(\theta) d\theta`] +[` \hspace{3cm }\displaystyle \int_{\alpha}^{\beta} f(\theta) d\theta`] -[`\alpha=`][_____________]{$alpha},[@ AnswerFormatHelp("numbers") @]* -[`\beta=`][_____________]{$beta},[@ AnswerFormatHelp("numbers") @]* -[`f(\theta)=`][_____________]{$integrand}.[@ AnswerFormatHelp("formulas") @]*(Type in theta for [`\theta`]) +[`\alpha=`][_____________]{$alpha},[@ helpLink("numbers") @]* +[`\beta=`][_____________]{$beta},[@ helpLink("numbers") @]* +[`f(\theta)=`][_____________]{$integrand}.[@ helpLink("formulas") @]*(Type in theta for [`\theta`]) END_PGML } diff --git a/Contrib/CCCS/CalculusTwo/07.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_4_198.pg b/Contrib/CCCS/CalculusTwo/07.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_4_198.pg index 293848869a..285907fe05 100644 --- a/Contrib/CCCS/CalculusTwo/07.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_4_198.pg +++ b/Contrib/CCCS/CalculusTwo/07.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_4_198.pg @@ -21,7 +21,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -45,7 +45,7 @@ Context("Numeric"); Context()->variables->add(theta => 'Real'); ##Random variables ## -$a=list_random(-1,1); +$a=list_random(-1,1); ##Conditional to change problem, if $a=-1, the region in common to r=3sin(theta) and r=2-sin(theta) @@ -69,13 +69,13 @@ BEGIN_PGML Determine a definite integral that represents the area of the region common to [`f(\theta)=r=3\sin(\theta)`] and [`g(\theta)=r=2-\sin(\theta)`] and in the first quadrant. -[` \hspace{3cm }\displaystyle \int_{\alpha_1}^{\beta_1} \frac{1}{2}(f(\theta))^{2} d\theta +\int_{\alpha_2}^{\beta_2} \frac{1}{2}(g(\theta))^{2} d\theta`] +[` \hspace{3cm }\displaystyle \int_{\alpha_1}^{\beta_1} \frac{1}{2}(f(\theta))^{2} d\theta +\int_{\alpha_2}^{\beta_2} \frac{1}{2}(g(\theta))^{2} d\theta`] -[`\alpha_1=`][_____________]{$alpha1},[@ AnswerFormatHelp("numbers") @]* -[`\beta_1=`][_____________]{$beta1},[@ AnswerFormatHelp("numbers") @]* +[`\alpha_1=`][_____________]{$alpha1},[@ helpLink("numbers") @]* +[`\beta_1=`][_____________]{$beta1},[@ helpLink("numbers") @]* -[`\alpha_2=`][_____________]{$alpha2},[@ AnswerFormatHelp("numbers") @]* -[`\beta_2=`][_____________]{$beta2},[@ AnswerFormatHelp("numbers") @]* +[`\alpha_2=`][_____________]{$alpha2},[@ helpLink("numbers") @]* +[`\beta_2=`][_____________]{$beta2},[@ helpLink("numbers") @]* END_PGML @@ -96,13 +96,13 @@ $integrand2=Formula("(sqrt(2)+sin(theta))^2")->reduce; BEGIN_PGML Determine a definite integral that represents the area of the region common to [`f(\theta)=r=3\sin(\theta)`] and [`g(\theta)=r=\sqrt{2}+\sin(\theta)`] and in the first quadrant. -[` \hspace{3cm }\displaystyle \int_{\alpha_1}^{\beta_1} \frac{1}{2}(f(\theta))^{2} d\theta +\int_{\alpha_2}^{\beta_2} \frac{1}{2}(g(\theta))^{2} d\theta`] +[` \hspace{3cm }\displaystyle \int_{\alpha_1}^{\beta_1} \frac{1}{2}(f(\theta))^{2} d\theta +\int_{\alpha_2}^{\beta_2} \frac{1}{2}(g(\theta))^{2} d\theta`] -[`\alpha_1=`][_____________]{$alpha1},[@ AnswerFormatHelp("numbers") @]* -[`\beta_1=`][_____________]{$beta1},[@ AnswerFormatHelp("numbers") @]* +[`\alpha_1=`][_____________]{$alpha1},[@ helpLink("numbers") @]* +[`\beta_1=`][_____________]{$beta1},[@ helpLink("numbers") @]* -[`\alpha_2=`][_____________]{$alpha2},[@ AnswerFormatHelp("numbers") @]* -[`\beta_2=`][_____________]{$beta2},[@ AnswerFormatHelp("numbers") @]* +[`\alpha_2=`][_____________]{$alpha2},[@ helpLink("numbers") @]* +[`\beta_2=`][_____________]{$beta2},[@ helpLink("numbers") @]* END_PGML } diff --git a/Contrib/CCCS/CalculusTwo/07.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_4_207.pg b/Contrib/CCCS/CalculusTwo/07.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_4_207.pg index 71ecb18899..a35c695437 100644 --- a/Contrib/CCCS/CalculusTwo/07.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_4_207.pg +++ b/Contrib/CCCS/CalculusTwo/07.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_4_207.pg @@ -21,7 +21,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -45,7 +45,7 @@ Context("Numeric"); Context()->variables->add(theta => 'Real'); ##Random variables ## -$a=list_random(-1,1); +$a=list_random(-1,1); ##Conditional to change problem, if $a=-1, the area enclosed by the inner loop of r=3+6cos(theta) @@ -62,7 +62,7 @@ BEGIN_PGML Determine the area enclosed by the inner loop of [`r=3+6\cos(\theta)`]. -Area [`=`][__________________________________]{$ans}[@ AnswerFormatHelp("numbers") @]* +Area [`=`][__________________________________]{$ans}[@ helpLink("numbers") @]* END_PGML @@ -80,7 +80,7 @@ BEGIN_PGML Determine the area enclosed by the inner loop of [`r=\sqrt{2}+2\cos(\theta)`]. -Area [`=`][__________________________________]{$ans}[@ AnswerFormatHelp("numbers") @]* +Area [`=`][__________________________________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/07.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_4_208.pg b/Contrib/CCCS/CalculusTwo/07.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_4_208.pg index 8b215a5acd..993b0d1388 100644 --- a/Contrib/CCCS/CalculusTwo/07.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_4_208.pg +++ b/Contrib/CCCS/CalculusTwo/07.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_4_208.pg @@ -21,7 +21,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -45,7 +45,7 @@ Context("Numeric"); Context()->variables->add(theta => 'Real'); ##Random variables ## -$a=list_random(-1,1); +$a=list_random(-1,1); ##Conditional to change problem, if $a=-1, the area enclosed by the inner loop of r=2+4cos(theta) but outside the inner loop @@ -62,7 +62,7 @@ BEGIN_PGML Determine the area enclosed by [`r=2+4\cos(\theta)`] and outside the inner loop. -Area [`=`][__________________________________]{$ans}[@ AnswerFormatHelp("numbers") @]* +Area [`=`][__________________________________]{$ans}[@ helpLink("numbers") @]* END_PGML @@ -80,7 +80,7 @@ BEGIN_PGML Determine the area enclosed by [`r=\sqrt{2}-2\cos(\theta)`] and outside the inner loop. -Area [`=`][__________________________________]{$ans}[@ AnswerFormatHelp("numbers") @]* +Area [`=`][__________________________________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/07.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_4_210.pg b/Contrib/CCCS/CalculusTwo/07.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_4_210.pg index 407ea719ee..beabf13892 100644 --- a/Contrib/CCCS/CalculusTwo/07.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_4_210.pg +++ b/Contrib/CCCS/CalculusTwo/07.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_4_210.pg @@ -21,7 +21,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -45,7 +45,7 @@ Context("Numeric"); Context()->variables->add(theta => 'Real'); ##Random variables ## -$a=list_random(-1,1); +$a=list_random(-1,1); ##Conditional to change problem, if $a=-1, the area common to r=3-2sin(theta) and r=-3+2sin(theta) @@ -62,7 +62,7 @@ BEGIN_PGML Determine the area of the common interior of [`r=3-2\sin(\theta)`] and [`r=-3+2\sin(\theta)`]. -Area [`=`][__________________________________]{$ans}[@ AnswerFormatHelp("numbers") @]* +Area [`=`][__________________________________]{$ans}[@ helpLink("numbers") @]* END_PGML @@ -80,7 +80,7 @@ BEGIN_PGML Determine the area of the common interior of [`r=3-2\cos(\theta)`] and [`r=-3+2\cos(\theta)`]. -Area [`=`][__________________________________]{$ans}[@ AnswerFormatHelp("numbers") @]* +Area [`=`][__________________________________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/07.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_4_213.pg b/Contrib/CCCS/CalculusTwo/07.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_4_213.pg index 7746eea766..e438c75be5 100644 --- a/Contrib/CCCS/CalculusTwo/07.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_4_213.pg +++ b/Contrib/CCCS/CalculusTwo/07.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_4_213.pg @@ -21,7 +21,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -45,7 +45,7 @@ Context("Numeric"); Context()->variables->add(theta => 'Real'); ##Random variables ## -$a=list_random(-1,1); +$a=list_random(-1,1); ##Conditional to change problem, if $a=-1, the area common to r=2sin(theta) and r=2+2cos(theta) @@ -62,7 +62,7 @@ BEGIN_PGML Determine the area of the common interior of [`r=2\sin(\theta)`] and [`r=2+2\cos(\theta)`]. -Area [`=`][__________________________________]{$ans}[@ AnswerFormatHelp("numbers") @]* +Area [`=`][__________________________________]{$ans}[@ helpLink("numbers") @]* END_PGML @@ -80,7 +80,7 @@ BEGIN_PGML Determine the area of the common interior of [`r=3\sin(\theta)`] and [`r=3-3\cos(\theta)`]. -Area [`=`][__________________________________]{$ans}[@ AnswerFormatHelp("numbers") @]* +Area [`=`][__________________________________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/07.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_4_215.pg b/Contrib/CCCS/CalculusTwo/07.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_4_215.pg index 6f839b1ce2..fd0ffcab9c 100644 --- a/Contrib/CCCS/CalculusTwo/07.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_4_215.pg +++ b/Contrib/CCCS/CalculusTwo/07.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_4_215.pg @@ -21,7 +21,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -45,11 +45,11 @@ Context("Numeric"); Context()->variables->add(theta => 'Real'); ##Random variables ## -$a=list_random(-1,1); +$a=list_random(-1,1); ##Conditional to change problem -## If a=-1 find arc length of r=1+sin(theta) from 0 to 2pi +## If a=-1 find arc length of r=1+sin(theta) from 0 to 2pi if ( $a == -1 ) { ##bounds of integration @@ -65,13 +65,13 @@ $integrand=Formula("sqrt( (1+sin(theta))^2 + (cos(theta))^2 )")->reduce; BEGIN_PGML Determine a definite integral that represents the arc length of the polar curve [`r=1+\sin(\theta)`] on the interval [`0\leq\theta\leq 2\pi`]. -[` \hspace{3cm }\displaystyle \int_{\alpha}^{\beta} f(\theta) d\theta`] +[` \hspace{3cm }\displaystyle \int_{\alpha}^{\beta} f(\theta) d\theta`] -[`\alpha=`][_____________]{$alpha}[@ AnswerFormatHelp("numbers") @]*, -[`\beta=`][_____________]{$beta}[@ AnswerFormatHelp("numbers") @]*, +[`\alpha=`][_____________]{$alpha}[@ helpLink("numbers") @]*, +[`\beta=`][_____________]{$beta}[@ helpLink("numbers") @]*, -[`f(\theta)=`][___________________________]{$integrand}[@ AnswerFormatHelp("formulas") @]*. +[`f(\theta)=`][___________________________]{$integrand}[@ helpLink("formulas") @]*. END_PGML } else { @@ -89,13 +89,13 @@ $integrand=Formula("sqrt( (1+cos(theta))^2 + (-sin(theta))^2 )")->reduce; BEGIN_PGML Determine a definite integral that represents the arc length of the polar curve [`r=1+\cos(\theta)`] on the interval [`0\leq\theta\leq \pi`]. -[` \hspace{3cm }\displaystyle \int_{\alpha}^{\beta} f(\theta) d\theta`] +[` \hspace{3cm }\displaystyle \int_{\alpha}^{\beta} f(\theta) d\theta`] -[`\alpha=`][_____________]{$alpha}[@ AnswerFormatHelp("numbers") @]*, -[`\beta=`][_____________]{$beta}[@ AnswerFormatHelp("numbers") @]*, +[`\alpha=`][_____________]{$alpha}[@ helpLink("numbers") @]*, +[`\beta=`][_____________]{$beta}[@ helpLink("numbers") @]*, -[`f(\theta)=`][_______________________________]{$integrand}[@ AnswerFormatHelp("formulas") @]*. +[`f(\theta)=`][_______________________________]{$integrand}[@ helpLink("formulas") @]*. END_PGML diff --git a/Contrib/CCCS/CalculusTwo/07.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_4_219.pg b/Contrib/CCCS/CalculusTwo/07.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_4_219.pg index 36ccc52c69..9d76b10cc1 100644 --- a/Contrib/CCCS/CalculusTwo/07.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_4_219.pg +++ b/Contrib/CCCS/CalculusTwo/07.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_4_219.pg @@ -21,7 +21,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -45,7 +45,7 @@ Context("Numeric"); Context()->variables->add(theta => 'Real'); ##Random variables ## -$a=list_random(-1,1); +$a=list_random(-1,1); ##Conditional to change problem, if $a=-1, arc length of r=e^(3(theta)) on interval 0 to 2 @@ -62,7 +62,7 @@ BEGIN_PGML Determine the length of the polar curve [`r=e^{3\theta}`] on the interval [`0\leq\theta\leq2`]. -Length [`=`][__________________________________]{$ans}[@ AnswerFormatHelp("numbers") @]* +Length [`=`][__________________________________]{$ans}[@ helpLink("numbers") @]* END_PGML @@ -80,7 +80,7 @@ BEGIN_PGML Determine the length of the polar curve [`r=e^{2\theta}`] on the interval [`0\leq\theta\leq1`]. -Length [`=`][__________________________________]{$ans}[@ AnswerFormatHelp("numbers") @]* +Length [`=`][__________________________________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/07.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_4_228.pg b/Contrib/CCCS/CalculusTwo/07.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_4_228.pg index bb4862cd50..fe2bebc0ae 100644 --- a/Contrib/CCCS/CalculusTwo/07.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_4_228.pg +++ b/Contrib/CCCS/CalculusTwo/07.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_4_228.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## Calculus 2, Find the area of the region enclosed by a polar equation on a specific interval. +## Calculus 2, Find the area of the region enclosed by a polar equation on a specific interval. ## ENDDESCRIPTION @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -88,7 +88,7 @@ BEGIN_PGML Match the polar equation with its corresponding rectangular equation. - [__________________]{$radio1} + [__________________]{$radio1} END_PGML @@ -103,7 +103,7 @@ BEGIN_PGML Use the fact that for a circle [`Area=\pi r^{2}`] to evaluate the definite integral that represents the area enclosed by [`r =[$a]\sin(\theta)`] on the interval [`0\leq\theta\leq\pi`]. -[` \hspace{3cm }\displaystyle \frac{1}{2}\int_{0}^{\pi} ([$a]\sin(\theta))^{2} d\theta =`] [______________________]{$ans}[@ AnswerFormatHelp("numbers") @]* +[` \hspace{3cm }\displaystyle \frac{1}{2}\int_{0}^{\pi} ([$a]\sin(\theta))^{2} d\theta =`] [______________________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/07.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_4_232.pg b/Contrib/CCCS/CalculusTwo/07.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_4_232.pg index d4a45bc6ed..6192e08c22 100644 --- a/Contrib/CCCS/CalculusTwo/07.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_4_232.pg +++ b/Contrib/CCCS/CalculusTwo/07.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_4_232.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## Calculus 2, Find the arc length of a polar curve on a specific interval. +## Calculus 2, Find the arc length of a polar curve on a specific interval. ## ENDDESCRIPTION @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -98,7 +98,7 @@ BEGIN_PGML Match the polar equation with its corresponding rectangular equation. - [__________________]{$radio1} + [__________________]{$radio1} END_PGML @@ -113,7 +113,7 @@ BEGIN_PGML Use the fact that for a circle [`Circumference=2\pi r`] to evaluate the definite integral that represents the arc length of [`r =[$f]`] on the interval [`0\leq\theta\leq\pi`]. -[`\displaystyle \hspace{3cm }\displaystyle \int_{0}^{\pi} \sqrt{ r^{2} +\left(\frac{dr}{d\theta}\right)^{2} }d\theta =`] [______________________]{$ans}[@ AnswerFormatHelp("numbers") @]* +[`\displaystyle \hspace{3cm }\displaystyle \int_{0}^{\pi} \sqrt{ r^{2} +\left(\frac{dr}{d\theta}\right)^{2} }d\theta =`] [______________________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/07.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_4_246.pg b/Contrib/CCCS/CalculusTwo/07.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_4_246.pg index 688a3dab5c..d1a62e841e 100644 --- a/Contrib/CCCS/CalculusTwo/07.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_4_246.pg +++ b/Contrib/CCCS/CalculusTwo/07.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_4_246.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## Calculus 2, Find the slope of a tangent curve to a polar curve. +## Calculus 2, Find the slope of a tangent curve to a polar curve. ## ENDDESCRIPTION @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -55,7 +55,7 @@ $dr=$r->D('theta'); $dy_dx=Formula("($dr*sin(theta)+$r*cos(theta))/($dr*cos(theta)-$r*sin(theta)) ")->reduce; -$ans = $dy_dx->eval(theta=>$b); +$ans = $dy_dx->eval(theta=>$b); ################################# ##Main text## @@ -72,7 +72,7 @@ The derivative [`\frac{dy}{dx}`], which will measure the slope of the tangent li Find the slope of the tangent line to the polar curve [`r=3\cos(\theta)`] at [`\theta=\frac{\pi}{[$a]}`]. -[`\displaystyle{\frac{dy}{dx}}\Bigr\rvert_{\theta=\frac{\pi}{[$a]}}=`] [_____________________________]{$ans}[@ AnswerFormatHelp("numbers") @]* +[`\displaystyle{\frac{dy}{dx}}\Bigr\rvert_{\theta=\frac{\pi}{[$a]}}=`] [_____________________________]{$ans}[@ helpLink("numbers") @]* END_PGML ################################# diff --git a/Contrib/CCCS/CalculusTwo/07.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_4_252.pg b/Contrib/CCCS/CalculusTwo/07.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_4_252.pg index 0a09ee18f0..707762b1e9 100644 --- a/Contrib/CCCS/CalculusTwo/07.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_4_252.pg +++ b/Contrib/CCCS/CalculusTwo/07.4/CCD_CCCS_Openstax_Calc2_C1-2016-002_7_4_252.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## Calculus 2, Find the points at which a polar curve has vertical or horizontal tangent lines +## Calculus 2, Find the points at which a polar curve has vertical or horizontal tangent lines ## ENDDESCRIPTION @@ -22,7 +22,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -59,7 +59,7 @@ $theta_2h=Compute("3*(pi)/4")->reduce; $r_1h = $r->eval(t=>$theta_1h); $r_2h = $r->eval(t=>$theta_2h); -##points at which slope is 0 +##points at which slope is 0 ##Context("Point"); $p1h = Point($r_1h,$theta_1h); $p2h = Point($r_2h,$theta_2h); @@ -74,7 +74,7 @@ $theta_2v=Compute("pi/2")->reduce; $r_1v = $r->eval(t=>$theta_1v); $r_2v = $r->eval(t=>$theta_2v); -##points at which slope is 0 +##points at which slope is 0 ##Context("Point"); $p1v = Point($r_1v,$theta_1v); $p2v = Point($r_2v,$theta_2v); @@ -87,7 +87,7 @@ $L_v = List($p1v, $p2v); BEGIN_PGML -Using the fact that +Using the fact that [`\displaystyle\frac{dy}{dx}=\frac{ \frac{dy}{d\theta} }{ \frac{dx}{d\theta} } = \frac { \frac{dr}{d\theta}\sin(\theta)+r\cos(\theta) }{ \frac{dr}{d\theta}\cos(\theta)-r\sin(\theta) }`]. @@ -97,7 +97,7 @@ Only consider angles on the interval [`0\leq\theta<\pi`]. Enter your solution as a comma separated list of ordered pairs [`(a,b)`] or if there are no points on the curve at which the slope of the tangent is horizontal enter NONE. -[_____________________________]{$L_h}[@ AnswerFormatHelp("points") @]* +[_____________________________]{$L_h}[@ helpLink("points") @]* Enter your answer as a comma separated list of polar points [`(r,\theta)`] @@ -106,7 +106,7 @@ Only consider angles on the interval [`0\leq\theta<\pi`]. Enter your solution as a comma separated list of ordered pairs [`(a,b)`] or if there are no points on the curve at which the slope of the tangent is vertical enter NONE. -[_____________________________]{$L_v}[@ AnswerFormatHelp("points") @]*Enter your answer as a comma separated list of polar points [`(r,\theta)`] +[_____________________________]{$L_v}[@ helpLink("points") @]*Enter your answer as a comma separated list of polar points [`(r,\theta)`] END_PGML @@ -121,7 +121,7 @@ $theta_2h=Compute("pi/2")->reduce; $r_1h = $r->eval(t=>$theta_1h); $r_2h = $r->eval(t=>$theta_2h); -##points at which slope is 0 +##points at which slope is 0 ##Context("Point"); $p1h = Point($r_1h,$theta_1h); $p2h = Point($r_2h,$theta_2h); @@ -136,7 +136,7 @@ $theta_2v=Compute("(3*pi)/4")->reduce; $r_1v = $r->eval(t=>$theta_1v); $r_2v = $r->eval(t=>$theta_2v); -##points at which slope is 0 +##points at which slope is 0 ##Context("Point"); $p1v = Point($r_1v,$theta_1v); $p2v = Point($r_2v,$theta_2v); @@ -149,7 +149,7 @@ $L_v = List($p1v, $p2v); BEGIN_PGML -Using the fact that +Using the fact that [`\displaystyle\frac{dy}{dx}=\frac{ \frac{dx}{d\theta} }{ \frac{dy}{d\theta} } = \frac { \frac{dr}{d\theta}\sin(\theta)+r\cos(\theta) }{ \frac{dr}{d\theta}\cos(\theta)-r\sin(\theta) }`]. @@ -159,7 +159,7 @@ Only consider angles on the interval [`0\leq\theta<\pi`]. Enter your solution as a comma separated list of ordered pairs [`(a,b)`] or if there are no points on the curve at which the slope of the tangent is horizontal enter NONE. -[_____________________________]{$L_h}[@ AnswerFormatHelp("points") @]*Enter your answer as a comma separated list of polar points [`(r,\theta)`] +[_____________________________]{$L_h}[@ helpLink("points") @]*Enter your answer as a comma separated list of polar points [`(r,\theta)`] @@ -168,7 +168,7 @@ Only consider angles on the interval [`0\leq\theta<\pi`]. Enter your solution as a comma separated list of ordered pairs [`(a,b)`] or if there are no points on the curve at which the slope of the tangent is vertical enter NONE. -[_____________________________]{$L_v}[@ AnswerFormatHelp("points") @]*Enter your answer as a comma separated list of polar points [`(r,\theta)`] +[_____________________________]{$L_v}[@ helpLink("points") @]*Enter your answer as a comma separated list of polar points [`(r,\theta)`] END_PGML diff --git a/Contrib/CCCS/CalculusTwo/LHopitals_Rule/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_357.pg b/Contrib/CCCS/CalculusTwo/LHopitals_Rule/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_357.pg index 3ab1b025a9..ccb9d8acc4 100644 --- a/Contrib/CCCS/CalculusTwo/LHopitals_Rule/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_357.pg +++ b/Contrib/CCCS/CalculusTwo/LHopitals_Rule/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_357.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -42,10 +42,10 @@ $ans =$a; # Main text BEGIN_PGML -Evaluate the limit [``\lim_{x\to [$a]} [$f]``]. +Evaluate the limit [``\lim_{x\to [$a]} [$f]``]. -[``\lim_{x\to [$a]} [$f]=``][_______________]{$ans }(Enter a number, `\infty,-\infty,` or "DNE".) [@ AnswerFormatHelp("numbers") @]* +[``\lim_{x\to [$a]} [$f]=``][_______________]{$ans }(Enter a number, `\infty,-\infty,` or "DNE".) [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/LHopitals_Rule/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_359.pg b/Contrib/CCCS/CalculusTwo/LHopitals_Rule/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_359.pg index df7516898a..74ccc3f69f 100644 --- a/Contrib/CCCS/CalculusTwo/LHopitals_Rule/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_359.pg +++ b/Contrib/CCCS/CalculusTwo/LHopitals_Rule/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_359.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -41,10 +41,10 @@ $ans =Formula("1/(2*$a )")->reduce; # Main text BEGIN_PGML -Evaluate the limit [``\lim_{x\to [$a]}[$f]``]. +Evaluate the limit [``\lim_{x\to [$a]}[$f]``]. - [``\lim_{x\to [$a]}[$f]=``][_______________]{$ans }(Enter a number, `\infty,-\infty,` or "DNE".) [@ AnswerFormatHelp("numbers") @]* + [``\lim_{x\to [$a]}[$f]=``][_______________]{$ans }(Enter a number, `\infty,-\infty,` or "DNE".) [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/LHopitals_Rule/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_362.pg b/Contrib/CCCS/CalculusTwo/LHopitals_Rule/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_362.pg index df32a28651..bd29ba758c 100644 --- a/Contrib/CCCS/CalculusTwo/LHopitals_Rule/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_362.pg +++ b/Contrib/CCCS/CalculusTwo/LHopitals_Rule/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_362.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -39,43 +39,43 @@ $ans = 0; $radio1 = RadioButtons( ["L'Hopital's rule can be applied directly because the limit is an indeterminate of the form \(\infty/\infty\)", - "L'Hopital's rule can be applied directly because the limit is an indeterminate of the form \(0/0\)", - "L'Hopital's rule can't be applied directly because the limit is an indeterminate of the form \(0\cdot\infty\)"], + "L'Hopital's rule can be applied directly because the limit is an indeterminate of the form \(0/0\)", + "L'Hopital's rule can't be applied directly because the limit is an indeterminate of the form \(0\cdot\infty\)"], "L'Hopital's rule can't be applied directly because the limit is an indeterminate of the form \(0\cdot\infty\)" ); $radio2 = RadioButtons( ["Rewrite the original function as \(x^{$a x}/\ln(x)\)", - "Rewrite the original function as \(\ln(x)/{(1/x^{$a}) }\)", - "Rewrite the original function as \(\ln(x)/{x^{$a }}\)"], - "Rewrite the original function as \(\ln(x)/{(1/x^{$a}) }\)" + "Rewrite the original function as \(\ln(x)/{(1/x^{$a}) }\)", + "Rewrite the original function as \(\ln(x)/{x^{$a }}\)"], + "Rewrite the original function as \(\ln(x)/{(1/x^{$a}) }\)" ); - + ########################### # Main text BEGIN_PGML -Consider the limit +Consider the limit -[``\lim_{x\to 0^+}[$f]``]. +[``\lim_{x\to 0^+}[$f]``]. Determine whether l'Hopital's rule can be applied directly. Explain why or why not. - [_______________]{$radio1 } + [_______________]{$radio1 } Indicate if there is some way to alter the limit so that l'Hopital's rule can be applied - [_______________]{$radio2 } + [_______________]{$radio2 } Evaluate the limit -[``\lim_{x\to 0^+}[$f]=``][_______________]{$ans } [@ AnswerFormatHelp("formulas") @]* +[``\lim_{x\to 0^+}[$f]=``][_______________]{$ans } [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/LHopitals_Rule/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_363.pg b/Contrib/CCCS/CalculusTwo/LHopitals_Rule/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_363.pg index 0d3b4d900c..15dc41ff32 100644 --- a/Contrib/CCCS/CalculusTwo/LHopitals_Rule/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_363.pg +++ b/Contrib/CCCS/CalculusTwo/LHopitals_Rule/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_363.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -40,16 +40,16 @@ $ans = 1; $radio1 = RadioButtons( ["L'Hopital's rule can't be applied directly because the limit is an indeterminate of the form \(\infty^0\)", - "L'Hopital's rule can be applied directly because the limit is an indeterminate of the form \(\infty/\infty\)", - "L'Hopital's rule can be applied directly because the limit is an indeterminate of the form \(0/0\)"], + "L'Hopital's rule can be applied directly because the limit is an indeterminate of the form \(\infty/\infty\)", + "L'Hopital's rule can be applied directly because the limit is an indeterminate of the form \(0/0\)"], "L'Hopital's rule can't be applied directly because the limit is an indeterminate of the form \(\infty^0\)" ); $radio2 = RadioButtons( ["Rewrite the original function as \($a x\ln(x)\)", - "Rewrite the original function as \(e^{$a \ln(x)/x}\)", - "Rewrite the original function as \($a \ln(x)/x\)"], + "Rewrite the original function as \(e^{$a \ln(x)/x}\)", + "Rewrite the original function as \($a \ln(x)/x\)"], "Rewrite the original function as \(e^{$a \ln(x)/x}\)" ); @@ -58,16 +58,16 @@ $radio2 = RadioButtons( # Main text BEGIN_PGML -Consider the limit +Consider the limit -[``\lim_{x\to [$b]}[$f]``]. +[``\lim_{x\to [$b]}[$f]``]. Determine whether l'Hopital's rule can be applied directly. Explain why or why not. - [_______________]{$radio1 } + [_______________]{$radio1 } Indicate if there is some way to alter the limit so that l'Hopital's rule can be applied @@ -78,7 +78,7 @@ Indicate if there is some way to alter the limit so that l'Hopital's rule can be Evaluate the limit -[``\lim_{x\to [$b]}[$f]=``][_______________]{$ans } [@ AnswerFormatHelp("formulas") @]* +[``\lim_{x\to [$b]}[$f]=``][_______________]{$ans } [@ helpLink("formulas") @]* END_PGML ############################ @@ -86,7 +86,7 @@ BEGIN_PGML_HINT Example: Evaluate the limit [``\lim_{x\rightarrow 0^+} x^{\sin(x)}``] -This limit is of the form [`0^0`], which is indeterminate but it is not one of the indeterminate forms that we can directly apply L'Hopital's Rule to. So we need to rewrite the limit. +This limit is of the form [`0^0`], which is indeterminate but it is not one of the indeterminate forms that we can directly apply L'Hopital's Rule to. So we need to rewrite the limit. (Recall, [`x^y = e^{y\ln(x)}`].) diff --git a/Contrib/CCCS/CalculusTwo/LHopitals_Rule/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_364.pg b/Contrib/CCCS/CalculusTwo/LHopitals_Rule/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_364.pg index 0d0306c210..076a094296 100644 --- a/Contrib/CCCS/CalculusTwo/LHopitals_Rule/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_364.pg +++ b/Contrib/CCCS/CalculusTwo/LHopitals_Rule/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_364.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -40,16 +40,16 @@ $ans = 0; $radio1 = RadioButtons( ["L'Hopital's rule can be applied directly because the limit is an indeterminate of the form \(\infty/\infty\)", - "L'Hopital's rule can be applied directly because the limit is an indeterminate of the form \(0/0\)", - "L'Hopital's rule can't be applied directly because the limit is not an indeterminate"], + "L'Hopital's rule can be applied directly because the limit is an indeterminate of the form \(0/0\)", + "L'Hopital's rule can't be applied directly because the limit is not an indeterminate"], "L'Hopital's rule can't be applied directly because the limit is not an indeterminate" ); $radio2 = RadioButtons( ["Rewrite the original function as \($a x\ln(x)\)", - "Rewrite the original function as \($a \ln(x)/x\)", - "L'Hopital's rule does not apply"], + "Rewrite the original function as \($a \ln(x)/x\)", + "L'Hopital's rule does not apply"], "L'Hopital's rule does not apply" ); @@ -58,16 +58,16 @@ $radio2 = RadioButtons( # Main text BEGIN_PGML -Consider the limit +Consider the limit -[``\lim_{x\to 0^+}[$f]``]. +[``\lim_{x\to 0^+}[$f]``]. Determine whether l'Hopital's rule can be applied directly. Explain why or why not. - [_______________]{$radio1 } + [_______________]{$radio1 } Indicate if there is some way to alter the limit so that l'Hopital's rule can be applied @@ -78,7 +78,7 @@ Indicate if there is some way to alter the limit so that l'Hopital's rule can be Evaluate the limit -[``\lim_{x\to 0^+}[$f]=``][_______________]{$ans } [@ AnswerFormatHelp("formulas") @]* +[``\lim_{x\to 0^+}[$f]=``][_______________]{$ans } [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/LHopitals_Rule/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_367.pg b/Contrib/CCCS/CalculusTwo/LHopitals_Rule/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_367.pg index e78ade3c2f..3dc7742938 100644 --- a/Contrib/CCCS/CalculusTwo/LHopitals_Rule/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_367.pg +++ b/Contrib/CCCS/CalculusTwo/LHopitals_Rule/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_367.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -46,7 +46,7 @@ Evaluate the limit, [``\lim_{x\to [$a]}[$f]``] , using either l'Hopital's Rule o -[``\lim_{x\to [$a]}[$f]=``][_______________]{$ans }(Enter a number, `\infty,-\infty,` or "DNE".) [@ AnswerFormatHelp("numbers") @]* +[``\lim_{x\to [$a]}[$f]=``][_______________]{$ans }(Enter a number, `\infty,-\infty,` or "DNE".) [@ helpLink("numbers") @]* END_PGML ############################ BEGIN_PGML_HINT diff --git a/Contrib/CCCS/CalculusTwo/LHopitals_Rule/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_371.pg b/Contrib/CCCS/CalculusTwo/LHopitals_Rule/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_371.pg index 0cbe4cd4e7..56c1738594 100644 --- a/Contrib/CCCS/CalculusTwo/LHopitals_Rule/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_371.pg +++ b/Contrib/CCCS/CalculusTwo/LHopitals_Rule/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_371.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -45,7 +45,7 @@ BEGIN_PGML Evaluate the limit,[``\lim_{x\to [$b]}[$f]``], using either l'Hopital's Rule or previously learned methods. -[``\lim_{x\to [$a]\pi}[$f]=``][_______________]{$ans } (Enter a number, `\infty,-\infty,` or "DNE".) [@ AnswerFormatHelp("numbers") @]* +[``\lim_{x\to [$a]\pi}[$f]=``][_______________]{$ans } (Enter a number, `\infty,-\infty,` or "DNE".) [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/LHopitals_Rule/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_376.pg b/Contrib/CCCS/CalculusTwo/LHopitals_Rule/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_376.pg index d0ff4a6422..885556757a 100644 --- a/Contrib/CCCS/CalculusTwo/LHopitals_Rule/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_376.pg +++ b/Contrib/CCCS/CalculusTwo/LHopitals_Rule/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_376.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -47,7 +47,7 @@ Evaluate the limit, [``\lim_{x\to 0}[$f]``], using either l'Hopital's rule or pr -[``\lim_{x\to 0}[$f]=``][_______________]{$ans } (Enter a number, `\infty,-\infty,` or "DNE".) [@ AnswerFormatHelp("numbers") @]* +[``\lim_{x\to 0}[$f]=``][_______________]{$ans } (Enter a number, `\infty,-\infty,` or "DNE".) [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/LHopitals_Rule/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_382.pg b/Contrib/CCCS/CalculusTwo/LHopitals_Rule/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_382.pg index bedfb21f84..22b2b74d40 100644 --- a/Contrib/CCCS/CalculusTwo/LHopitals_Rule/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_382.pg +++ b/Contrib/CCCS/CalculusTwo/LHopitals_Rule/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_382.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -45,7 +45,7 @@ Evaluate the limit, [``\lim_{x\to 0^{+}}[$f]``], using either l'Hopital's rule o -[``\lim_{x\to 0^{+}}[$f]=``][_______________]{$ans } (Enter a number, `\infty,-\infty,` or "DNE".) [@ AnswerFormatHelp("numbers") @]* +[``\lim_{x\to 0^{+}}[$f]=``][_______________]{$ans } (Enter a number, `\infty,-\infty,` or "DNE".) [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/LHopitals_Rule/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_383.pg b/Contrib/CCCS/CalculusTwo/LHopitals_Rule/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_383.pg index 5ed47806e1..82813bdf18 100644 --- a/Contrib/CCCS/CalculusTwo/LHopitals_Rule/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_383.pg +++ b/Contrib/CCCS/CalculusTwo/LHopitals_Rule/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_383.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -45,10 +45,10 @@ BEGIN_PGML Evaluate the limit, [``\lim_{x\to \infty}[$f]``], using either l'Hopital's Rule or previously learned methods. - -[``\lim_{x\to \infty}[$f]=``][_______________]{$ans }(Enter a number, `\infty,-\infty,` or "DNE".) [@ AnswerFormatHelp("numbers") @]* + +[``\lim_{x\to \infty}[$f]=``][_______________]{$ans }(Enter a number, `\infty,-\infty,` or "DNE".) [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/LHopitals_Rule/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_386.pg b/Contrib/CCCS/CalculusTwo/LHopitals_Rule/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_386.pg index 85cc2b9366..76e6d79a4a 100644 --- a/Contrib/CCCS/CalculusTwo/LHopitals_Rule/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_386.pg +++ b/Contrib/CCCS/CalculusTwo/LHopitals_Rule/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_386.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -45,10 +45,10 @@ $ans=Compute("-infinity"); BEGIN_PGML Evaluate the limit, [``\lim_{x\to\infty}([$f])``], using either l'Hopital's rule or previously learned methods - -[``\lim_{x\to\infty}([$f])=``][_______________]{$ans } (Enter a number, `\infty,-\infty,` or "DNE".) [@ AnswerFormatHelp("numbers") @]* + +[``\lim_{x\to\infty}([$f])=``][_______________]{$ans } (Enter a number, `\infty,-\infty,` or "DNE".) [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/LHopitals_Rule/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_391.pg b/Contrib/CCCS/CalculusTwo/LHopitals_Rule/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_391.pg index 7efb791a16..bc2e3af327 100644 --- a/Contrib/CCCS/CalculusTwo/LHopitals_Rule/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_391.pg +++ b/Contrib/CCCS/CalculusTwo/LHopitals_Rule/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_391.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -50,7 +50,7 @@ Evaluate the limit, [``\lim_{x\to \infty}[$f]``], using either l'Hopital's rule - [``\lim_{x\to \infty}[$f]=``][_______________]{$ans } (Enter a number, `\infty,-\infty,` or "DNE".) [@ AnswerFormatHelp("numbers") @]* + [``\lim_{x\to \infty}[$f]=``][_______________]{$ans } (Enter a number, `\infty,-\infty,` or "DNE".) [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/LHopitals_Rule/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_392.pg b/Contrib/CCCS/CalculusTwo/LHopitals_Rule/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_392.pg index ba5300f186..424c496f85 100644 --- a/Contrib/CCCS/CalculusTwo/LHopitals_Rule/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_392.pg +++ b/Contrib/CCCS/CalculusTwo/LHopitals_Rule/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_392.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -45,7 +45,7 @@ Evaluate the limit, [``\lim_{x\to 0}x^{\left(\dfrac{[$a]}{\cos(x)}\right)}``], e -[``\lim_{x\to 0}x^{\left(\dfrac{[$a]}{\cos(x)}\right)}=``][_______________]{$ans } (Enter a number, `\infty,-\infty,` or "DNE".) [@ AnswerFormatHelp("numbers") @]* +[``\lim_{x\to 0}x^{\left(\dfrac{[$a]}{\cos(x)}\right)}=``][_______________]{$ans } (Enter a number, `\infty,-\infty,` or "DNE".) [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CalculusTwo/LHopitals_Rule/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_395.pg b/Contrib/CCCS/CalculusTwo/LHopitals_Rule/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_395.pg index d43ba32fe0..c45636ce69 100644 --- a/Contrib/CCCS/CalculusTwo/LHopitals_Rule/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_395.pg +++ b/Contrib/CCCS/CalculusTwo/LHopitals_Rule/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_395.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -46,7 +46,7 @@ Evaluate the limit, [``\lim_{x\to \infty}[$f]``], using either l'Hopital's rule -[``\lim_{x\to \infty}[$f]=``][_______________]{$ans } (Enter a number, `\infty,-\infty,` or "DNE".) [@ AnswerFormatHelp("numbers") @]* +[``\lim_{x\to \infty}[$f]=``][_______________]{$ans } (Enter a number, `\infty,-\infty,` or "DNE".) [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CalculusTwo/LHopitals_Rule/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_396.pg b/Contrib/CCCS/CalculusTwo/LHopitals_Rule/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_396.pg index b691316dc6..45e6661f54 100644 --- a/Contrib/CCCS/CalculusTwo/LHopitals_Rule/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_396.pg +++ b/Contrib/CCCS/CalculusTwo/LHopitals_Rule/CCD_CCCS_Openstax_Calc1_C1-2016-002_4_8_396.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -41,19 +41,19 @@ $ans =$a; # Main text BEGIN_PGML -Consider the function +Consider the function [``f(x)=[$f]``]. -Use a calculator to graph the function [`f`] and estimate the value of the limit [`\displaystyle \lim_{x\to 0}f(x)`]. +Use a calculator to graph the function [`f`] and estimate the value of the limit [`\displaystyle \lim_{x\to 0}f(x)`]. -[``\lim_{x\to 0}[$f]\approx``][_______________]{$ans } [@ AnswerFormatHelp("numbers") @]* +[``\lim_{x\to 0}[$f]\approx``][_______________]{$ans } [@ helpLink("numbers") @]* Then use l'Hopital's rule to find the previous limit directly -[``\lim_{x\to 0}[$f]=``][_______________]{$ans } [@ AnswerFormatHelp("numbers") @]* +[``\lim_{x\to 0}[$f]=``][_______________]{$ans } [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/1.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_4_17.pg b/Contrib/CCCS/CollegeAlgebra/1.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_4_17.pg index dede387caa..98968bda05 100644 --- a/Contrib/CCCS/CollegeAlgebra/1.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_4_17.pg +++ b/Contrib/CCCS/CollegeAlgebra/1.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_4_17.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -54,11 +54,11 @@ $ans=Formula(" ($a*$c)x^2+($b*$c+$a*$d)x+$b*$d")-> reduce; BEGIN_PGML -Find the product. +Find the product. [`` [$f] ``] -[___________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[___________________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/1.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_4_19.pg b/Contrib/CCCS/CollegeAlgebra/1.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_4_19.pg index 23d0f7338c..d378666cfc 100644 --- a/Contrib/CCCS/CollegeAlgebra/1.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_4_19.pg +++ b/Contrib/CCCS/CollegeAlgebra/1.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_4_19.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -53,11 +53,11 @@ $ans=Formula(" ($a*$b)y^4+(-2*$a*$b)y^2+$a*$b")-> reduce; BEGIN_PGML -Find the product. +Find the product. [`` [$f] ``] -[___________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[___________________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/1.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_4_21.pg b/Contrib/CCCS/CollegeAlgebra/1.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_4_21.pg index ec3a24e285..f2bd98db1e 100644 --- a/Contrib/CCCS/CollegeAlgebra/1.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_4_21.pg +++ b/Contrib/CCCS/CollegeAlgebra/1.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_4_21.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -53,11 +53,11 @@ $ans=Formula(" ($a*$b)x^3+(-$a*$a)x^2+($b*$b)x-$a*$b")-> reduce; BEGIN_PGML -Find the product. +Find the product. [`` [$f] ``] -[___________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[___________________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/1.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_4_25.pg b/Contrib/CCCS/CollegeAlgebra/1.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_4_25.pg index cbd24d187a..7f10fb4c46 100644 --- a/Contrib/CCCS/CollegeAlgebra/1.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_4_25.pg +++ b/Contrib/CCCS/CollegeAlgebra/1.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_4_25.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -53,11 +53,11 @@ $ans=Formula(" ($a*$a)x^2+(2*$a*$b)x+$b*$b")-> reduce; BEGIN_PGML -Find the product. +Find the product. [`` [$f] ``] -[___________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[___________________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/1.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_4_29.pg b/Contrib/CCCS/CollegeAlgebra/1.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_4_29.pg index 5e6b8ab521..55c1071ddb 100644 --- a/Contrib/CCCS/CollegeAlgebra/1.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_4_29.pg +++ b/Contrib/CCCS/CollegeAlgebra/1.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_4_29.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -53,11 +53,11 @@ $ans=Formula(" ($a*$a)z^2-(2*$a*$b)z+$b*$b")-> reduce; BEGIN_PGML -Find the product. +Find the product. [`` [$f] ``] -[___________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[___________________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/1.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_4_SUP1.pg b/Contrib/CCCS/CollegeAlgebra/1.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_4_SUP1.pg index 171184b8b6..a127f1f868 100644 --- a/Contrib/CCCS/CollegeAlgebra/1.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_4_SUP1.pg +++ b/Contrib/CCCS/CollegeAlgebra/1.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_4_SUP1.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -55,11 +55,11 @@ $ans=Formula(" ($a*$d)x^3-($d*$b)x^2+$c*$d*x")-> reduce; BEGIN_PGML -Find the product. +Find the product. [`` [$f] ``] -[___________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[___________________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/1.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_04.pg b/Contrib/CCCS/CollegeAlgebra/1.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_04.pg index 5977ec1e73..d2236ea4d1 100644 --- a/Contrib/CCCS/CollegeAlgebra/1.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_04.pg +++ b/Contrib/CCCS/CollegeAlgebra/1.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_04.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,8 +48,8 @@ $f=Formula("3*$d*x+5*$d*xy-2*$d*x^$e")->reduce; $ans=Formula(" abs($d)*x"); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -64,10 +64,10 @@ Find the greatest common factor among the terms in the following polynomial expr [`` [$f] ``] -Greatest Common Factor: [_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +Greatest Common Factor: [_______________]{$ans} [@ helpLink("formulas") @]* -[$video]* +[$video]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/1.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_06.pg b/Contrib/CCCS/CollegeAlgebra/1.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_06.pg index b0647e74a4..6dddad828c 100644 --- a/Contrib/CCCS/CollegeAlgebra/1.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_06.pg +++ b/Contrib/CCCS/CollegeAlgebra/1.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_06.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -57,7 +57,7 @@ Find the greatest common factor among the terms in the following polynomial expr [`` [$f] ``] - Greatest Common Factor: [_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* + Greatest Common Factor: [_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/1.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_26.pg b/Contrib/CCCS/CollegeAlgebra/1.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_26.pg index a296608cb6..e61efa23ae 100644 --- a/Contrib/CCCS/CollegeAlgebra/1.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_26.pg +++ b/Contrib/CCCS/CollegeAlgebra/1.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_26.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -56,7 +56,7 @@ Factor the following polynomial expression. [`` [$f] ``] -Factored Form: [_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +Factored Form: [_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/1.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_27.pg b/Contrib/CCCS/CollegeAlgebra/1.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_27.pg index 8fc79a5fc4..b069a6999a 100644 --- a/Contrib/CCCS/CollegeAlgebra/1.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_27.pg +++ b/Contrib/CCCS/CollegeAlgebra/1.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_27.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextLimitedPolynomial.pl", @@ -63,7 +63,7 @@ Factor the following polynomial expression. [`` [$f] ``] -Factored Form: [_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +Factored Form: [_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/1.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_30.pg b/Contrib/CCCS/CollegeAlgebra/1.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_30.pg index b0c248834f..f3f645d28d 100644 --- a/Contrib/CCCS/CollegeAlgebra/1.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_30.pg +++ b/Contrib/CCCS/CollegeAlgebra/1.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_30.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -56,7 +56,7 @@ Factor the following polynomial expression. [`` [$f] ``] -Factored Form: [_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +Factored Form: [_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/1.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_35.pg b/Contrib/CCCS/CollegeAlgebra/1.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_35.pg index 86520ba6df..09f7b63b70 100644 --- a/Contrib/CCCS/CollegeAlgebra/1.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_35.pg +++ b/Contrib/CCCS/CollegeAlgebra/1.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_35.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -55,7 +55,7 @@ Factor the following polynomial expression. [`` [$f] ``] -Factored Form: [_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +Factored Form: [_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/1.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_A.pg b/Contrib/CCCS/CollegeAlgebra/1.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_A.pg index 792300e628..2038e4bb02 100644 --- a/Contrib/CCCS/CollegeAlgebra/1.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_A.pg +++ b/Contrib/CCCS/CollegeAlgebra/1.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_A.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextLimitedFactor.pl", @@ -48,8 +48,8 @@ Context("LimitedFactor"); $ans=Formula(" (x+$a)(x+$b)"); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -64,10 +64,10 @@ Factor the following polynomial expression. [`` [$f] ``] -Factored Form: [_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +Factored Form: [_______________]{$ans} [@ helpLink("formulas") @]* -[$video]* +[$video]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/1.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_B.pg b/Contrib/CCCS/CollegeAlgebra/1.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_B.pg index 92ed6ae83f..1b1097fe44 100644 --- a/Contrib/CCCS/CollegeAlgebra/1.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_B.pg +++ b/Contrib/CCCS/CollegeAlgebra/1.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_B.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextLimitedFactor.pl", @@ -58,7 +58,7 @@ Factor the following polynomial expression. [`` [$f] ``] -Factored Form: [_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +Factored Form: [_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/1.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_C.pg b/Contrib/CCCS/CollegeAlgebra/1.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_C.pg index 65e8e25a87..01ca31e96a 100644 --- a/Contrib/CCCS/CollegeAlgebra/1.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_C.pg +++ b/Contrib/CCCS/CollegeAlgebra/1.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_C.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextLimitedFactor.pl", @@ -47,8 +47,8 @@ Context("LimitedFactor"); $ans=Formula(" (x+$a)(x-$a)"); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -62,10 +62,10 @@ Factor the following polynomial expression. [`` [$f] ``] -Factored Form: [_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +Factored Form: [_______________]{$ans} [@ helpLink("formulas") @]* -[$video]* +[$video]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/1.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_D.pg b/Contrib/CCCS/CollegeAlgebra/1.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_D.pg index 5516d9424e..5e93c8cd60 100644 --- a/Contrib/CCCS/CollegeAlgebra/1.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_D.pg +++ b/Contrib/CCCS/CollegeAlgebra/1.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_D.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextLimitedFactor.pl", @@ -58,7 +58,7 @@ Factor the following polynomial expression. [`` [$f] ``] -Factored Form: [_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +Factored Form: [_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/1.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_E.pg b/Contrib/CCCS/CollegeAlgebra/1.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_E.pg index c094bed856..bb2ec580c7 100644 --- a/Contrib/CCCS/CollegeAlgebra/1.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_E.pg +++ b/Contrib/CCCS/CollegeAlgebra/1.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_E.pg @@ -2,7 +2,7 @@ ## College Algebra ## ENDDESCRIPTION - + ## DBsubject() ## DBchapter() ## DBsection() @@ -12,7 +12,7 @@ ## MO(1) ## KEYWORDS('college algebra', 'factoring') - + ########################### # Initialization @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -47,41 +47,41 @@ if ( $chooser == 1) { $polynomial=Formula("2x^2-x-3"); $answer=Formula("(x+1)(2x-3)"); -} +} elsif ( $chooser == 2 ) { $polynomial=Formula("3x^2-7x+2"); $answer=Formula("(3x-1)(x-2)"); -} +} elsif ( $chooser == 3 ) { $polynomial=Formula("2x^2+x-6"); $answer=Formula("(x+2)(2x-3)"); -} +} elsif ( $chooser == 4 ) { $polynomial=Formula("3x^2-2x-1"); $answer=Formula("(3x+1)(x-1)"); -} +} elsif ( $chooser == 5 ) { $polynomial=Formula("2x^2-3x+1"); $answer=Formula("(2x-1)(x-1)"); -} +} else { $polynomial=Formula("3x^2-4x-4"); $answer=Formula("(3x+2)(x-2)"); -} +} $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -96,10 +96,10 @@ Factor the following polynomial expression. [`` [$polynomial] ``] -Factored Form: [_______________]{$answer} [@ AnswerFormatHelp("formulas") @]* +Factored Form: [_______________]{$answer} [@ helpLink("formulas") @]* -[$video]* +[$video]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/1.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_F.pg b/Contrib/CCCS/CollegeAlgebra/1.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_F.pg index ffd2eec5cf..bf3d65eb5e 100644 --- a/Contrib/CCCS/CollegeAlgebra/1.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_F.pg +++ b/Contrib/CCCS/CollegeAlgebra/1.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_F.pg @@ -2,7 +2,7 @@ ## College Algebra ## ENDDESCRIPTION - + ## DBsubject() ## DBchapter() ## DBsection() @@ -12,7 +12,7 @@ ## MO(1) ## KEYWORDS('college algebra', 'factoring') - + ########################### # Initialization @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -47,37 +47,37 @@ if ( $chooser == 1) { $polynomial=Formula("6x^2+11x+4"); $answer=Formula("(2x+1)(3x+4)"); -} +} elsif ( $chooser == 2 ) { $polynomial=Formula("21x^2-31x+4"); $answer=Formula("(7x-1)(3x-4)"); -} +} elsif ( $chooser == 3 ) { $polynomial=Formula("3x^2+22x+35"); $answer=Formula("(x+5)(3x+7)"); -} +} elsif ( $chooser == 4 ) { $polynomial=Formula("6x^2-23x-4"); $answer=Formula("(6x+1)(x-4)"); -} +} elsif ( $chooser == 5 ) { $polynomial=Formula("5x^2-13x-6"); $answer=Formula("(5x+2)(x-3)"); -} +} else { $polynomial=Formula("12x^2-5x-3"); $answer=Formula("(3x+1)(4x-3)"); -} +} @@ -91,7 +91,7 @@ Factor the following polynomial expression. [`` [$polynomial] ``] -Factored Form: [_______________]{$answer} [@ AnswerFormatHelp("formulas") @]* +Factored Form: [_______________]{$answer} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/1.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_G.pg b/Contrib/CCCS/CollegeAlgebra/1.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_G.pg index 5bc7b927fc..03c4d8f35c 100644 --- a/Contrib/CCCS/CollegeAlgebra/1.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_G.pg +++ b/Contrib/CCCS/CollegeAlgebra/1.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_G.pg @@ -2,7 +2,7 @@ ## College Algebra ## ENDDESCRIPTION - + ## DBsubject() ## DBchapter() ## DBsection() @@ -12,7 +12,7 @@ ## MO(1) ## KEYWORDS('college algebra', 'factoring') - + ########################### # Initialization @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -47,37 +47,37 @@ if ( $chooser == 1) { $polynomial=Formula("6x^2-7x-5"); $answer=Formula("(2x+1)(3x-5)"); -} +} elsif ( $chooser == 2 ) { $polynomial=Formula("6x^2+13x-5"); $answer=Formula("(3x-1)(2x+5)"); -} +} elsif ( $chooser == 3 ) { $polynomial=Formula("8x^2-14x-15"); $answer=Formula("(4x+3)(2x-5)"); -} +} elsif ( $chooser == 4 ) { $polynomial=Formula("6x^2-23x-4"); $answer=Formula("(6x+1)(x-4)"); -} +} elsif ( $chooser == 5 ) { $polynomial=Formula("24x^2-13x-2"); $answer=Formula("(8x+1)(3x-2)"); -} +} else { $polynomial=Formula("12x^2-19x+5"); $answer=Formula("(3x-1)(4x-5)"); -} +} @@ -91,7 +91,7 @@ Factor the following polynomial expression. [`` [$polynomial] ``] -Factored Form: [_______________]{$answer} [@ AnswerFormatHelp("formulas") @]* +Factored Form: [_______________]{$answer} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/1.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_6_04.pg b/Contrib/CCCS/CollegeAlgebra/1.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_6_04.pg index 0811fd1879..c84e8d8080 100644 --- a/Contrib/CCCS/CollegeAlgebra/1.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_6_04.pg +++ b/Contrib/CCCS/CollegeAlgebra/1.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_6_04.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -52,12 +52,12 @@ $ans=Formula(" (x+$a)/(x-$b)"); BEGIN_PGML -Simplify the following rational expression. +Simplify the following rational expression. [`` [$f] ``] -[_______________]{$ans} [@ AnswerFormatHelp("equations") @]* +[_______________]{$ans} [@ helpLink("equations") @]* [% $ans; %] diff --git a/Contrib/CCCS/CollegeAlgebra/1.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_6_05.pg b/Contrib/CCCS/CollegeAlgebra/1.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_6_05.pg index e8a0f326ab..f464878949 100644 --- a/Contrib/CCCS/CollegeAlgebra/1.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_6_05.pg +++ b/Contrib/CCCS/CollegeAlgebra/1.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_6_05.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -55,11 +55,11 @@ $ans=Formula(" (y+$b)/(y+$c)"); BEGIN_PGML -Simplify the following rational expression. +Simplify the following rational expression. [`` [$f] ``] - [_______________]{$ans} [@ AnswerFormatHelp("equations") @]* + [_______________]{$ans} [@ helpLink("equations") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/1.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_6_10.pg b/Contrib/CCCS/CollegeAlgebra/1.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_6_10.pg index 23d1b0fccc..199cafabd5 100644 --- a/Contrib/CCCS/CollegeAlgebra/1.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_6_10.pg +++ b/Contrib/CCCS/CollegeAlgebra/1.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_6_10.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -56,11 +56,11 @@ $ans=Formula(" (x+$c)/(x+$d)")-> reduce; BEGIN_PGML -Simplify the following rational expression. +Simplify the following rational expression. [`` [$f] ``] - [_______________]{$ans} [@ AnswerFormatHelp("equations") @]* + [_______________]{$ans} [@ helpLink("equations") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/1.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_6_14.pg b/Contrib/CCCS/CollegeAlgebra/1.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_6_14.pg index 8d4020dc8b..623035c13b 100644 --- a/Contrib/CCCS/CollegeAlgebra/1.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_6_14.pg +++ b/Contrib/CCCS/CollegeAlgebra/1.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_6_14.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -54,11 +54,11 @@ $ans=Formula(" ((x+$a)(x+$d))/((x-$d)(x+$b))")-> reduce; BEGIN_PGML -Multiply the following rational expressions and express the product in simplest form. +Multiply the following rational expressions and express the product in simplest form. [`\displaystyle[$first] \cdot [$second]`] - [________________________]{$ans} [@ AnswerFormatHelp("formulas") @]* + [________________________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/1.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_6_15.pg b/Contrib/CCCS/CollegeAlgebra/1.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_6_15.pg index 457d682c8a..215a11b554 100644 --- a/Contrib/CCCS/CollegeAlgebra/1.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_6_15.pg +++ b/Contrib/CCCS/CollegeAlgebra/1.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_6_15.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -57,11 +57,11 @@ $ans=Formula(" ((a+$a)(a+$d))/((a-$d)(a+$b))")-> reduce; BEGIN_PGML -Multiply the following rational expressions and express the product in simplest form. +Multiply the following rational expressions and express the product in simplest form. [`\displaystyle[$first] \cdot [$second]`] - [_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* + [_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/1.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_6_20.pg b/Contrib/CCCS/CollegeAlgebra/1.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_6_20.pg index 79fbab11eb..98a14dabf0 100644 --- a/Contrib/CCCS/CollegeAlgebra/1.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_6_20.pg +++ b/Contrib/CCCS/CollegeAlgebra/1.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_6_20.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -60,11 +60,11 @@ $ans=Formula(" ((z+$a)(z+$d))/($e*(z-$d)(z+$b))")-> reduce; BEGIN_PGML -Multiply the following rational expressions and express the product in simplest form. +Multiply the following rational expressions and express the product in simplest form. [`\displaystyle[$first] \cdot [$second]`] - [_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* + [_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/1.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_6_25.pg b/Contrib/CCCS/CollegeAlgebra/1.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_6_25.pg index 4c03c4de01..8f0406d53f 100644 --- a/Contrib/CCCS/CollegeAlgebra/1.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_6_25.pg +++ b/Contrib/CCCS/CollegeAlgebra/1.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_6_25.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -60,11 +60,11 @@ $ans=Formula(" $first/$second")-> reduce; BEGIN_PGML -Divide the following rational expressions and express the result in simplest form. +Divide the following rational expressions and express the result in simplest form. [`\displaystyle[$first] \div [$second]`] - [_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* + [_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/1.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_6_33.pg b/Contrib/CCCS/CollegeAlgebra/1.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_6_33.pg index 50809ef3ad..1ccc227dbe 100644 --- a/Contrib/CCCS/CollegeAlgebra/1.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_6_33.pg +++ b/Contrib/CCCS/CollegeAlgebra/1.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_6_33.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -56,11 +56,11 @@ $ans=Formula(" ($a*y+$b*x)/(xy)")-> reduce; BEGIN_PGML -Add the following rational expressions and simplify. +Add the following rational expressions and simplify. [`\displaystyle[$first] + [$second]`] - [_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* + [_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/1.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_6_35.pg b/Contrib/CCCS/CollegeAlgebra/1.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_6_35.pg index 7cc7b7fe77..5e1ae2332c 100644 --- a/Contrib/CCCS/CollegeAlgebra/1.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_6_35.pg +++ b/Contrib/CCCS/CollegeAlgebra/1.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_6_35.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -58,11 +58,11 @@ $ans=Formula(" ((-$a*$d+$b*$c)+($a+$c)x)/((x+$b)(x-$d))")-> reduce; BEGIN_PGML -Add the following rational expressions and simplify. +Add the following rational expressions and simplify. [`\displaystyle[$first] + [$second]`] - [_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* + [_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/1.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_6_40.pg b/Contrib/CCCS/CollegeAlgebra/1.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_6_40.pg index 7400b041b5..ebfca1ab5a 100644 --- a/Contrib/CCCS/CollegeAlgebra/1.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_6_40.pg +++ b/Contrib/CCCS/CollegeAlgebra/1.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_6_40.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -57,11 +57,11 @@ $ans=Formula(" ($a^2*p^2-p^2-2*$b*p-$b^2)/($a*p*(p+$b))")-> reduce; BEGIN_PGML -Combine following rational expressions into a single fraction. +Combine following rational expressions into a single fraction. [`\displaystyle[$first] - [$second]`] - [_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* + [_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/1.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_6_42.pg b/Contrib/CCCS/CollegeAlgebra/1.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_6_42.pg index 67d48910bb..cdb132a32f 100644 --- a/Contrib/CCCS/CollegeAlgebra/1.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_6_42.pg +++ b/Contrib/CCCS/CollegeAlgebra/1.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_6_42.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -58,7 +58,7 @@ Simplify [``\displaystyle\dfrac{[$first] - [$second]}{y}``] - [_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* + [_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/1.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_6_46.pg b/Contrib/CCCS/CollegeAlgebra/1.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_6_46.pg index 5f6b2406b5..f23c92ca1f 100644 --- a/Contrib/CCCS/CollegeAlgebra/1.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_6_46.pg +++ b/Contrib/CCCS/CollegeAlgebra/1.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_6_46.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -60,7 +60,7 @@ Simplify [``\dfrac{[$first]-[$second]}{[$third]}``] - [_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* + [_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_11.pg b/Contrib/CCCS/CollegeAlgebra/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_11.pg index c9059cf148..9bfe1dab1a 100644 --- a/Contrib/CCCS/CollegeAlgebra/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_11.pg +++ b/Contrib/CCCS/CollegeAlgebra/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_11.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -62,8 +62,8 @@ $g = Formula("$m*x+$n*y")->reduce; $ans = List( Point("($a,$b)")); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -72,11 +72,11 @@ TeX => # Main text BEGIN_PGML -Solve the system ->>[` [$f] = [$d] `]<< +Solve the system +>>[` [$f] = [$d] `]<< >>[` [$g] = [$p] `]<< -Solution: [_______________]{$ans} [@ AnswerFormatHelp("points") @]* +Solution: [_______________]{$ans} [@ helpLink("points") @]* If there is one solution, enter the solution as an ordered pair, [` (a,b) `], including the parentheses. If there are no solutions, enter NONE. If there are infinitely many solutions, enter INF. diff --git a/Contrib/CCCS/CollegeAlgebra/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_12.pg b/Contrib/CCCS/CollegeAlgebra/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_12.pg index d2c04d994a..0ad2fbd5b0 100644 --- a/Contrib/CCCS/CollegeAlgebra/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_12.pg +++ b/Contrib/CCCS/CollegeAlgebra/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_12.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -64,8 +64,8 @@ $ans = List( Point("($a,$b)")); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -73,11 +73,11 @@ TeX => # Main text BEGIN_PGML -Solve the system ->>[` [$f] = [$d] `]<< +Solve the system +>>[` [$f] = [$d] `]<< >>[` [$g] = [$p] `]<< -Solution: [_______________]{$ans} [@ AnswerFormatHelp("points") @]* +Solution: [_______________]{$ans} [@ helpLink("points") @]* If there is one solution, enter the solution as an ordered pair, [` (a,b) `], including the parentheses. If there are no solutions, enter NONE. If there are infinitely many solutions, enter INF. diff --git a/Contrib/CCCS/CollegeAlgebra/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_15.pg b/Contrib/CCCS/CollegeAlgebra/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_15.pg index 0edc134076..6545659a8e 100644 --- a/Contrib/CCCS/CollegeAlgebra/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_15.pg +++ b/Contrib/CCCS/CollegeAlgebra/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_15.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -66,11 +66,11 @@ $ans = List( Point("($a,$b)")); # Main text BEGIN_PGML -Solve the system ->>[` [$f] = [$d] `]<< +Solve the system +>>[` [$f] = [$d] `]<< >>[` [$g] = [$p] `]<< -Solution: [_______________]{$ans} [@ AnswerFormatHelp("points") @]* +Solution: [_______________]{$ans} [@ helpLink("points") @]* If there is one solution, enter the solution as an ordered pair, [` (a,b) `], including the parentheses. If there are no solutions, enter NONE. If there are infinitely many solutions, enter INF. diff --git a/Contrib/CCCS/CollegeAlgebra/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_17.pg b/Contrib/CCCS/CollegeAlgebra/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_17.pg index 5b85c4c702..7925900b62 100644 --- a/Contrib/CCCS/CollegeAlgebra/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_17.pg +++ b/Contrib/CCCS/CollegeAlgebra/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_17.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -55,11 +55,11 @@ $h = Formula("x")->reduce; # Main text BEGIN_PGML -Solve the system ->>[` [$f] = [$c] `]<< +Solve the system +>>[` [$f] = [$c] `]<< >>[` [$g] = [$multc] `]<< -Solution: [_______________]{"NONE"} [@ AnswerFormatHelp("points") @]* +Solution: [_______________]{"NONE"} [@ helpLink("points") @]* If there is one solution, enter the solution as an ordered pair, [` (a,b) `], including the parentheses. If there are no solutions, enter NONE. If there are infinitely many solutions, enter INF. diff --git a/Contrib/CCCS/CollegeAlgebra/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_21.pg b/Contrib/CCCS/CollegeAlgebra/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_21.pg index b09c731a04..91fae2df00 100644 --- a/Contrib/CCCS/CollegeAlgebra/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_21.pg +++ b/Contrib/CCCS/CollegeAlgebra/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_21.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -67,11 +67,11 @@ $ans = List( Point("($a,$b)")); # Main text BEGIN_PGML -Solve the system ->>[` [$f] = [$d] `]<< +Solve the system +>>[` [$f] = [$d] `]<< >>[` [$g] = [$p] `]<< -Solution: [_______________]{$ans} [@ AnswerFormatHelp("points") @]* +Solution: [_______________]{$ans} [@ helpLink("points") @]* If there is one solution, enter the solution as an ordered pair, [` (a,b) `], including the parentheses. If there are no solutions, enter NONE. If there are infinitely many solutions, enter INF. diff --git a/Contrib/CCCS/CollegeAlgebra/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_24.pg b/Contrib/CCCS/CollegeAlgebra/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_24.pg index 7465e00ecc..c50db0dee7 100644 --- a/Contrib/CCCS/CollegeAlgebra/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_24.pg +++ b/Contrib/CCCS/CollegeAlgebra/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_24.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -55,11 +55,11 @@ $ans = List( Point("($xans,$yans)")); # Main text BEGIN_PGML -Solve the system ->>[` [$f] = [$b] `]<< +Solve the system +>>[` [$f] = [$b] `]<< >>[` [$g] = [$m] `]<< -Solution: [_______________]{$ans} [@ AnswerFormatHelp("points") @]* +Solution: [_______________]{$ans} [@ helpLink("points") @]* If there is one solution, enter the solution as an ordered pair, [` (a,b) `], including the parentheses. If there are no solutions, enter NONE. If there are infinitely many solutions, enter INF. diff --git a/Contrib/CCCS/CollegeAlgebra/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_26.pg b/Contrib/CCCS/CollegeAlgebra/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_26.pg index 5727277670..8cc6393969 100644 --- a/Contrib/CCCS/CollegeAlgebra/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_26.pg +++ b/Contrib/CCCS/CollegeAlgebra/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_26.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -57,11 +57,11 @@ $ans = INF; # Main text BEGIN_PGML -Solve the system ->>[` [$f] = [$c] `]<< +Solve the system +>>[` [$f] = [$c] `]<< >>[` [$g] = [$dc] `]<< -Solution: [_______________]{$ans} [@ AnswerFormatHelp("points") @]* +Solution: [_______________]{$ans} [@ helpLink("points") @]* If there is one solution, enter the solution as an ordered pair, [` (a,b) `], including the parentheses. If there are no solutions, enter NONE. If there are infinitely many solutions, enter INF. diff --git a/Contrib/CCCS/CollegeAlgebra/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_29.pg b/Contrib/CCCS/CollegeAlgebra/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_29.pg index 5d53e9df75..66001c5e75 100644 --- a/Contrib/CCCS/CollegeAlgebra/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_29.pg +++ b/Contrib/CCCS/CollegeAlgebra/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_29.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -65,11 +65,11 @@ $ans = List( Point("($a,$b)")); # Main text BEGIN_PGML -Solve the system ->>[` [$f] = [$d] `]<< +Solve the system +>>[` [$f] = [$d] `]<< >>[` [$g] = [$p] `]<< -Solution: [_______________]{$ans} [@ AnswerFormatHelp("points") @]* +Solution: [_______________]{$ans} [@ helpLink("points") @]* If there is one solution, enter the solution as an ordered pair, [` (a,b) `], including the parentheses. If there are no solutions, enter NONE. If there are infinitely many solutions, enter INF. diff --git a/Contrib/CCCS/CollegeAlgebra/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_31.pg b/Contrib/CCCS/CollegeAlgebra/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_31.pg index 5d53e9df75..66001c5e75 100644 --- a/Contrib/CCCS/CollegeAlgebra/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_31.pg +++ b/Contrib/CCCS/CollegeAlgebra/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_31.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -65,11 +65,11 @@ $ans = List( Point("($a,$b)")); # Main text BEGIN_PGML -Solve the system ->>[` [$f] = [$d] `]<< +Solve the system +>>[` [$f] = [$d] `]<< >>[` [$g] = [$p] `]<< -Solution: [_______________]{$ans} [@ AnswerFormatHelp("points") @]* +Solution: [_______________]{$ans} [@ helpLink("points") @]* If there is one solution, enter the solution as an ordered pair, [` (a,b) `], including the parentheses. If there are no solutions, enter NONE. If there are infinitely many solutions, enter INF. diff --git a/Contrib/CCCS/CollegeAlgebra/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_37.pg b/Contrib/CCCS/CollegeAlgebra/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_37.pg index 77494aa218..9f7c758a68 100644 --- a/Contrib/CCCS/CollegeAlgebra/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_37.pg +++ b/Contrib/CCCS/CollegeAlgebra/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_37.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -58,12 +58,12 @@ $ans = INF; # Main text BEGIN_PGML -Solve the system ->>[`` \frac{[$a]}{2}x-\frac{[$b]}{2}y = [$c2] ``]<< +Solve the system +>>[`` \frac{[$a]}{2}x-\frac{[$b]}{2}y = [$c2] ``]<< >>[`` -\frac{[$da]}{4}x+\frac{[$db]}{4}y = -[$dc] ``]<< -Solution: [_______________]{$ans} [@ AnswerFormatHelp("points") @]* +Solution: [_______________]{$ans} [@ helpLink("points") @]* If there is one solution, enter the solution as an ordered pair, [` (a,b) `], including the parentheses. If there are no solutions, enter NONE. If there are infinitely many solutions, enter INF. diff --git a/Contrib/CCCS/CollegeAlgebra/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_38.pg b/Contrib/CCCS/CollegeAlgebra/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_38.pg index 14a28bf13f..8938078f8b 100644 --- a/Contrib/CCCS/CollegeAlgebra/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_38.pg +++ b/Contrib/CCCS/CollegeAlgebra/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_38.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -61,12 +61,12 @@ $ans = List( Point("($a,$b)")); # Main text BEGIN_PGML -Solve the system ->>[`` \frac{[$r]}{3}x+\frac{[$c]}{3}y = [$d] ``]<< +Solve the system +>>[`` \frac{[$r]}{3}x+\frac{[$c]}{3}y = [$d] ``]<< >>[`` \frac{[$m]}{5}x+\frac{[$n]}{5}y = [$p] ``]<< -Solution: [_______________]{$ans} [@ AnswerFormatHelp("points") @]* +Solution: [_______________]{$ans} [@ helpLink("points") @]* If there is one solution, enter the solution as an ordered pair, [` (a,b) `], including the parentheses. If there are no solutions, enter NONE. If there are infinitely many solutions, enter INF. diff --git a/Contrib/CCCS/CollegeAlgebra/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_43.pg b/Contrib/CCCS/CollegeAlgebra/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_43.pg index 386b784ad5..7b2356d9bb 100644 --- a/Contrib/CCCS/CollegeAlgebra/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_43.pg +++ b/Contrib/CCCS/CollegeAlgebra/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_43.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -65,11 +65,11 @@ $ans = List( Point("($a,$b)")); # Main text BEGIN_PGML -Solve the system ->>[` [$f] = [$d] `]<< +Solve the system +>>[` [$f] = [$d] `]<< >>[` [$g] = [$p] `]<< -Solution: [_______________]{$ans} [@ AnswerFormatHelp("points") @]* +Solution: [_______________]{$ans} [@ helpLink("points") @]* If there is one solution, enter the solution as an ordered pair, [` (a,b) `], including the parentheses. If there are no solutions, enter NONE. If there are infinitely many solutions, enter INF. diff --git a/Contrib/CCCS/CollegeAlgebra/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_57.pg b/Contrib/CCCS/CollegeAlgebra/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_57.pg index 6aaf2a197b..4be8c90efc 100644 --- a/Contrib/CCCS/CollegeAlgebra/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_57.pg +++ b/Contrib/CCCS/CollegeAlgebra/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_57.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -49,8 +49,8 @@ $R = Formula("$m x")->reduce; $ans1 = $b/($m-$a); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -61,7 +61,7 @@ TeX => BEGIN_PGML A fast-food restaurant has a cost production of [`C(x)=[$C] `] and a revenue function of [`R(x)=[$R] `], where [`x`] represents the number of milkshakes they make. When does the company start to turn a profit? -[`x=`] [_______________]{$ans1} milkshakes [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_______________]{$ans1} milkshakes [@ helpLink("numbers") @]* [$video]* diff --git a/Contrib/CCCS/CollegeAlgebra/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_61.pg b/Contrib/CCCS/CollegeAlgebra/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_61.pg index 379d8b1ce3..5563fa1adb 100644 --- a/Contrib/CCCS/CollegeAlgebra/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_61.pg +++ b/Contrib/CCCS/CollegeAlgebra/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_61.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -45,9 +45,9 @@ $ans1 = List(($a+$b)/2,($a-$b)/2); # Main text BEGIN_PGML -Find two numbers whose sum is [`[$a]`] and difference is [`[$b]`]. Enter the numbers as a comma separated list. +Find two numbers whose sum is [`[$a]`] and difference is [`[$b]`]. Enter the numbers as a comma separated list. -Numbers: [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +Numbers: [_______________]{$ans1} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CollegeAlgebra/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_11.pg b/Contrib/CCCS/CollegeAlgebra/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_11.pg index 5e044268ea..1260ce51f4 100644 --- a/Contrib/CCCS/CollegeAlgebra/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_11.pg +++ b/Contrib/CCCS/CollegeAlgebra/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_11.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -69,8 +69,8 @@ $h = Formula("$r*x+$s*y+$t*z")->reduce; $ans = List( Point("($a,$b,$c)")); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -79,7 +79,7 @@ TeX => BEGIN_PGML ->>[` [$f] = [$l] `]<< +>>[` [$f] = [$l] `]<< >>[` [$g] = [$q] `]<< @@ -87,7 +87,7 @@ BEGIN_PGML Solve the system of equations. If there is one solution, enter the ordered triple. If there is no solution, enter NONE. If there are infinitely many solutions, enter INF. -[_______________]{$ans} [@ AnswerFormatHelp("points") @]* +[_______________]{$ans} [@ helpLink("points") @]* [$video]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_13.pg b/Contrib/CCCS/CollegeAlgebra/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_13.pg index 4a2ed8c8cf..12ca0fcbc9 100644 --- a/Contrib/CCCS/CollegeAlgebra/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_13.pg +++ b/Contrib/CCCS/CollegeAlgebra/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_13.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -69,8 +69,8 @@ $h = Formula("$r*x+$s*y+$t*z")->reduce; $ans = List( Point("($a,$b,$c)")); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -80,7 +80,7 @@ TeX => BEGIN_PGML ->>[` [$f] = [$l] `]<< +>>[` [$f] = [$l] `]<< >>[` [$g] = [$q] `]<< @@ -88,7 +88,7 @@ BEGIN_PGML Solve the system of equations. If there is one solution, enter the ordered triple. If there is no solution, enter NONE. If there are infinitely many solutions, enter INF. -[_______________]{$ans} [@ AnswerFormatHelp("points") @]* +[_______________]{$ans} [@ helpLink("points") @]* [$video]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_15.pg b/Contrib/CCCS/CollegeAlgebra/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_15.pg index 0883908d9c..9a49e6c798 100644 --- a/Contrib/CCCS/CollegeAlgebra/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_15.pg +++ b/Contrib/CCCS/CollegeAlgebra/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_15.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -73,7 +73,7 @@ $ans = List( Point("($a,$b,$c)")); BEGIN_PGML ->>[` [$f] = [$l] `]<< +>>[` [$f] = [$l] `]<< >>[` [$g] = [$q] `]<< @@ -81,7 +81,7 @@ BEGIN_PGML Solve the system of equations. If there is one solution, enter the ordered triple. If there is no solution, enter NONE. If there are infinitely many solutions, enter INF. -[_______________]{$ans} [@ AnswerFormatHelp("points") @]* +[_______________]{$ans} [@ helpLink("points") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_17.pg b/Contrib/CCCS/CollegeAlgebra/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_17.pg index d2ca8c0750..c8f10c426b 100644 --- a/Contrib/CCCS/CollegeAlgebra/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_17.pg +++ b/Contrib/CCCS/CollegeAlgebra/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_17.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "AppletObjects.pl", "unionTables.pl", @@ -74,7 +74,7 @@ Context("Numeric"); BEGIN_PGML Solve the system by Gaussian elimination. ->>[` [$f] = [$l] `]<< +>>[` [$f] = [$l] `]<< >>[` [$g] = [$q] `]<< @@ -82,7 +82,7 @@ Solve the system by Gaussian elimination. Solve the system of equations. If there is one solution, enter the ordered triple. If there is no solution, enter NONE. If there are infinitely many solutions, enter INF. -[_______________]{"NONE"} [@ AnswerFormatHelp("points") @]* +[_______________]{"NONE"} [@ helpLink("points") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_21.pg b/Contrib/CCCS/CollegeAlgebra/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_21.pg index 716b519f60..a956c710e3 100644 --- a/Contrib/CCCS/CollegeAlgebra/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_21.pg +++ b/Contrib/CCCS/CollegeAlgebra/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_21.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "AppletObjects.pl", "unionTables.pl", "parserNumberWithUnits.pl", @@ -77,7 +77,7 @@ $ans = List( Point("($a,$b,$c)")); BEGIN_PGML Solve the system by Gaussian elimination. ->>[` [$f] = [$l] `]<< +>>[` [$f] = [$l] `]<< >>[` [$g] = [$q] `]<< @@ -85,7 +85,7 @@ Solve the system by Gaussian elimination. If there is one solution, enter the ordered triple. If there is no solution, enter NONE. If there are infinitely many solutions, enter INF. -[_______________]{$ans} [@ AnswerFormatHelp("points") @]* +[_______________]{$ans} [@ helpLink("points") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_25.pg b/Contrib/CCCS/CollegeAlgebra/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_25.pg index a0b60a5635..8e7001e0b2 100644 --- a/Contrib/CCCS/CollegeAlgebra/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_25.pg +++ b/Contrib/CCCS/CollegeAlgebra/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_25.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "AppletObjects.pl", "unionTables.pl", @@ -75,9 +75,9 @@ $ans = INF; # Main text BEGIN_PGML -Solve the system by Gaussian elimination. +Solve the system by Gaussian elimination. ->>[` [$f] = [$l] `]<< +>>[` [$f] = [$l] `]<< >>[` [$g] = [$q] `]<< @@ -85,7 +85,7 @@ Solve the system by Gaussian elimination. If there is one solution, enter the ordered triple. If there is no solution, enter NONE. If there are infinitely many solutions, enter INF. -[_______________]{INF} [@ AnswerFormatHelp("points") @]* +[_______________]{INF} [@ helpLink("points") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_28.pg b/Contrib/CCCS/CollegeAlgebra/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_28.pg index e616f62ec4..18fe844938 100644 --- a/Contrib/CCCS/CollegeAlgebra/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_28.pg +++ b/Contrib/CCCS/CollegeAlgebra/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_28.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "AppletObjects.pl", "unionTables.pl", @@ -80,8 +80,8 @@ $ans = List( Point("($a,$b,$c)"));} BEGIN_PGML Solve the system. - ->>[` [$f] = [$l] `]<< + +>>[` [$f] = [$l] `]<< >>[` [$g] = [$q] `]<< @@ -89,7 +89,7 @@ Solve the system. If there is one solution, enter the ordered triple. If there is no solution, enter NONE. If there are infinitely many solutions, enter INF. -[_______________]{$ans} [@ AnswerFormatHelp("points") @]* +[_______________]{$ans} [@ helpLink("points") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_39.pg b/Contrib/CCCS/CollegeAlgebra/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_39.pg index 4e7f9467b0..de3ab86e4b 100644 --- a/Contrib/CCCS/CollegeAlgebra/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_39.pg +++ b/Contrib/CCCS/CollegeAlgebra/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_39.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -76,14 +76,14 @@ $ans = List( Point("($a,$b,$c)")); # Main text BEGIN_PGML -Solve the system ->>[` [$f] = [$l] `]<< +Solve the system +>>[` [$f] = [$l] `]<< >>[` [$g] = [$q] `]<< >>[` [$h] = [$u] `]<< -Solution: [_______________]{$ans} [@ AnswerFormatHelp("points") @]* +Solution: [_______________]{$ans} [@ helpLink("points") @]* If there is one solution, enter the solution as an ordered triple, [` (a,b,c) `], including the parentheses. If there are no solutions, enter NONE. If there are infinitely many solutions, enter solutions as [`(x,f(x),g(x))`] where [`y=f(x), z=g(x)`]. diff --git a/Contrib/CCCS/CollegeAlgebra/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_47.pg b/Contrib/CCCS/CollegeAlgebra/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_47.pg index 920fd856b1..14f47bc46c 100644 --- a/Contrib/CCCS/CollegeAlgebra/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_47.pg +++ b/Contrib/CCCS/CollegeAlgebra/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_47.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -77,14 +77,14 @@ $ans = List( Point("($a,$b,$c)")); # Main text BEGIN_PGML -Solve the system ->>[` [$f] = [$l] `]<< +Solve the system +>>[` [$f] = [$l] `]<< >>[` [$g] = [$q] `]<< >>[` [$h] = [$u] `]<< -Solution: [_______________]{$ans} [@ AnswerFormatHelp("points") @]* +Solution: [_______________]{$ans} [@ helpLink("points") @]* If there is one solution, enter the solution as an ordered triple, [` (a,b,c) `], including the parentheses. If there are no solutions, enter NONE. If there are infinitely many solutions, enter solutions as [`(x,f(x),g(x))`] where [`y=f(x), z=g(x)`]. diff --git a/Contrib/CCCS/CollegeAlgebra/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_51.pg b/Contrib/CCCS/CollegeAlgebra/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_51.pg index 93b5909281..cae411a472 100644 --- a/Contrib/CCCS/CollegeAlgebra/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_51.pg +++ b/Contrib/CCCS/CollegeAlgebra/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_51.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -44,9 +44,9 @@ $ans = List("(4/9)*$a,(2/9)*$a,(1/3)*$a"); # Main text BEGIN_PGML -Three even numbers sum up to [`[$a]`]. The smallest is half the largest and the middle number is 3/4 the largest. What are the three numbers? Enter as a comma separated list. +Three even numbers sum up to [`[$a]`]. The smallest is half the largest and the middle number is 3/4 the largest. What are the three numbers? Enter as a comma separated list. -Solution: [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +Solution: [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_54.pg b/Contrib/CCCS/CollegeAlgebra/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_54.pg index 79092e4eb8..dbd5bab194 100644 --- a/Contrib/CCCS/CollegeAlgebra/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_54.pg +++ b/Contrib/CCCS/CollegeAlgebra/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_54.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -47,13 +47,13 @@ $r = (1/5)*$a; # Main text BEGIN_PGML -An animal shelter has a total of [`[$a]`] animals comprised of cats, dogs, and rabbits. If the number of rabbits is 5 less than one-half the number of cats, and there are 20 more cats than dogs, how many of each animal are at the shelter? +An animal shelter has a total of [`[$a]`] animals comprised of cats, dogs, and rabbits. If the number of rabbits is 5 less than one-half the number of cats, and there are 20 more cats than dogs, how many of each animal are at the shelter? -cats: [_______________]{$c} [@ AnswerFormatHelp("numbers") @]* +cats: [_______________]{$c} [@ helpLink("numbers") @]* -dogs: [_______________]{$d} [@ AnswerFormatHelp("numbers") @]* +dogs: [_______________]{$d} [@ helpLink("numbers") @]* -rabbits: [_______________]{$r} [@ AnswerFormatHelp("numbers") @]* +rabbits: [_______________]{$r} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_7.pg b/Contrib/CCCS/CollegeAlgebra/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_7.pg index a28ea73c05..a3053e90ba 100644 --- a/Contrib/CCCS/CollegeAlgebra/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_7.pg +++ b/Contrib/CCCS/CollegeAlgebra/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_7.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -73,14 +73,14 @@ $ans = List( Point("($a,$b,$c)")); Context("ArbitraryString"); BEGIN_PGML -Is [` [$ans] `] a solution to, ->>[` [$f] = [$l] `]<< +Is [` [$ans] `] a solution to, +>>[` [$f] = [$l] `]<< >>[` [$g] = [$q] `]<< >>[` [$h] = [$u] `]<< -Enter yes or no: [____________]{"yes"} +Enter yes or no: [____________]{"yes"} END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_9.pg b/Contrib/CCCS/CollegeAlgebra/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_9.pg index dd5ae87957..60a8979b2b 100644 --- a/Contrib/CCCS/CollegeAlgebra/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_9.pg +++ b/Contrib/CCCS/CollegeAlgebra/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_9.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -73,14 +73,14 @@ $ans = List( Point("($a+1,$b,$c)")); Context("ArbitraryString"); BEGIN_PGML -Is [` [$ans] `] a solution to, ->>[` [$f] = [$l] `]<< +Is [` [$ans] `] a solution to, +>>[` [$f] = [$l] `]<< >>[` [$g] = [$q] `]<< >>[` [$h] = [$u] `]<< -Enter yes or no: [____________]{"no"} +Enter yes or no: [____________]{"no"} END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_10.pg b/Contrib/CCCS/CollegeAlgebra/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_10.pg index 8ee1bae6e4..5ad6e6bff4 100644 --- a/Contrib/CCCS/CollegeAlgebra/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_10.pg +++ b/Contrib/CCCS/CollegeAlgebra/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_10.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -43,12 +43,12 @@ $ans = List( Point("($a,$c)"), Point("($a,-$c)") ); # Main text BEGIN_PGML -Find all solutions to the system of nonlinear equations. +Find all solutions to the system of nonlinear equations. ->>[` x = [$a] `]<< +>>[` x = [$a] `]<< >>[` x^2+y^2 = [$b] `]<< - -Solution(s): [_______________]{$ans} [@ AnswerFormatHelp("points") @]* + +Solution(s): [_______________]{$ans} [@ helpLink("points") @]* Enter the solution as an ordered pair, [` (a,b) `], or a list of ordered pairs, [` (a,b), (c,d) `]. diff --git a/Contrib/CCCS/CollegeAlgebra/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_16.pg b/Contrib/CCCS/CollegeAlgebra/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_16.pg index 9f81c968cf..1734c600d0 100644 --- a/Contrib/CCCS/CollegeAlgebra/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_16.pg +++ b/Contrib/CCCS/CollegeAlgebra/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_16.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -52,12 +52,12 @@ $ans = List( Point("($a,$ya)"), Point("($b,$yb)") ); # Main text BEGIN_PGML -Find all solutions to the system of nonlinear equations. +Find all solutions to the system of nonlinear equations. ->>[` [$f] = [$d] `]<< +>>[` [$f] = [$d] `]<< >>[` [$m] x - y = [$n] `]<< - -Solution(s): [_______________]{$ans} [@ AnswerFormatHelp("points") @]* + +Solution(s): [_______________]{$ans} [@ helpLink("points") @]* Enter the solution as an ordered pair, [` (a,b) `], or a list of ordered pairs, [` (a,b), (c,d) `]. diff --git a/Contrib/CCCS/CollegeAlgebra/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_17.pg b/Contrib/CCCS/CollegeAlgebra/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_17.pg index c359e0bc67..ce607247d8 100644 --- a/Contrib/CCCS/CollegeAlgebra/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_17.pg +++ b/Contrib/CCCS/CollegeAlgebra/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_17.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -52,12 +52,12 @@ $ans = List( Point("($a,$ya)"), Point("($b,$yb)") ); # Main text BEGIN_PGML -Find all solutions to the system of nonlinear equations. +Find all solutions to the system of nonlinear equations. ->>[` [$f] = [$d] `]<< +>>[` [$f] = [$d] `]<< >>[` [$m] x + y = [$n] `]<< - -Solution(s): [_______________]{$ans} [@ AnswerFormatHelp("points") @]* + +Solution(s): [_______________]{$ans} [@ helpLink("points") @]* Enter the solution as an ordered pair, [` (a,b) `], or a list of ordered pairs, [` (a,b), (c,d) `]. diff --git a/Contrib/CCCS/CollegeAlgebra/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_29.pg b/Contrib/CCCS/CollegeAlgebra/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_29.pg index 752ce4e31f..68a0f16527 100644 --- a/Contrib/CCCS/CollegeAlgebra/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_29.pg +++ b/Contrib/CCCS/CollegeAlgebra/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_29.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -53,10 +53,10 @@ $ans = List( Point("($a,$ya)"), Point("($b,$yb)") ); BEGIN_PGML Find all solutions to the system of nonlinear equations. ->>[` [$f] = [$d] `]<< +>>[` [$f] = [$d] `]<< >>[` 2 y = [$n] x `]<< - -Solution(s): [_______________]{$ans} [@ AnswerFormatHelp("points") @]* + +Solution(s): [_______________]{$ans} [@ helpLink("points") @]* Enter the solution as an ordered pair, [` (a,b) `], or a list of ordered pairs, [` (a,b), (c,d) `]. diff --git a/Contrib/CCCS/CollegeAlgebra/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_31.pg b/Contrib/CCCS/CollegeAlgebra/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_31.pg index d54274f7f3..90c27c2c95 100644 --- a/Contrib/CCCS/CollegeAlgebra/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_31.pg +++ b/Contrib/CCCS/CollegeAlgebra/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_31.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -43,12 +43,12 @@ Context(Point); # Main text BEGIN_PGML -Find all solutions to the system of nonlinear equations. +Find all solutions to the system of nonlinear equations. ->>[` x^2+y^2 = [$r2] `]<< +>>[` x^2+y^2 = [$r2] `]<< >>[` y^2 = x^2 `]<< - -Solution(s): [___________________________]{"($a,$a),($a,-$a),(-$a,-$a),(-$a,$a)"} [@ AnswerFormatHelp("points") @]* + +Solution(s): [___________________________]{"($a,$a),($a,-$a),(-$a,-$a),(-$a,$a)"} [@ helpLink("points") @]* Enter the solution as an ordered pair, [` (a,b) `], or a list of ordered pairs, [` (a,b), (c,d) `]. diff --git a/Contrib/CCCS/CollegeAlgebra/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_6.pg b/Contrib/CCCS/CollegeAlgebra/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_6.pg index bb0980ddf2..8adb975b5e 100644 --- a/Contrib/CCCS/CollegeAlgebra/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_6.pg +++ b/Contrib/CCCS/CollegeAlgebra/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_6.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -43,8 +43,8 @@ Context(Point); $ans = List( Point("($b,$c-$b)"), Point("(($c-$b),$b)") ); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -54,10 +54,10 @@ TeX => BEGIN_PGML Find all solutions to the system of nonlinear equations. ->>[` x+y = [$c] `]<< +>>[` x+y = [$c] `]<< >>[` x^2+y^2 = [$r2] `]<< - -Solution(s): [_______________]{$ans} [@ AnswerFormatHelp("points") @]* + +Solution(s): [_______________]{$ans} [@ helpLink("points") @]* Enter the solution as an ordered pair, [` (a,b) `] or a list of ordered pairs, [` (a,b), (c,d) `]. diff --git a/Contrib/CCCS/CollegeAlgebra/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_7.pg b/Contrib/CCCS/CollegeAlgebra/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_7.pg index 1c169799c2..34744b6c5c 100644 --- a/Contrib/CCCS/CollegeAlgebra/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_7.pg +++ b/Contrib/CCCS/CollegeAlgebra/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_7.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -43,8 +43,8 @@ Context(Point); $ans = List( Point("($a,-$b)"), Point("($b,-$a)") ); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -56,10 +56,10 @@ BEGIN_PGML Find all solutions to the system of nonlinear equations. ->>[` y = x - [$c] `]<< +>>[` y = x - [$c] `]<< >>[` x^2+y^2 = [$r2] `]<< - -Solution(s): [_______________]{$ans} [@ AnswerFormatHelp("points") @]* + +Solution(s): [_______________]{$ans} [@ helpLink("points") @]* Enter the solution as an ordered pair, [` (a,b) `] or a list of ordered pairs, [` (a,b), (c,d) `]. diff --git a/Contrib/CCCS/CollegeAlgebra/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_8.pg b/Contrib/CCCS/CollegeAlgebra/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_8.pg index ebcb9fb921..c7c6490ecd 100644 --- a/Contrib/CCCS/CollegeAlgebra/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_8.pg +++ b/Contrib/CCCS/CollegeAlgebra/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_8.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -43,14 +43,14 @@ Context(Point); # Main text BEGIN_PGML -Find all solutions to the system of nonlinear equations. +Find all solutions to the system of nonlinear equations. ->>[` y = x `]<< +>>[` y = x `]<< >>[` x^2+y^2 = [$r2] `]<< - -Solution(s): [_______________________________]{"(sqrt($m),sqrt($m)), (- sqrt($m),- sqrt($m))"} [@ AnswerFormatHelp("points") @]* -Enter the solution as an ordered pair, [` (a,b) `], or a list of ordered pairs, [` (a,b), (c,d) `]. +Solution(s): [_______________________________]{"(sqrt($m),sqrt($m)), (- sqrt($m),- sqrt($m))"} [@ helpLink("points") @]* + +Enter the solution as an ordered pair, [` (a,b) `], or a list of ordered pairs, [` (a,b), (c,d) `]. END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_9.pg b/Contrib/CCCS/CollegeAlgebra/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_9.pg index cefdacc4b0..704fc9d3e3 100644 --- a/Contrib/CCCS/CollegeAlgebra/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_9.pg +++ b/Contrib/CCCS/CollegeAlgebra/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_9.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -43,14 +43,14 @@ Context(Point); # Main text BEGIN_PGML -Find all solutions to the system of nonlinear equations. +Find all solutions to the system of nonlinear equations. ->>[` y = -x `]<< +>>[` y = -x `]<< >>[` x^2+y^2 = [$r2] `]<< - -Solution(s): [_____________________________________]{"(sqrt($m),-sqrt($m)), (- sqrt($m),sqrt($m))"} [@ AnswerFormatHelp("points") @]* -Enter the solution as an ordered pair, [` (a,b) `], or a list of ordered pairs, [` (a,b), (c,d) `]. +Solution(s): [_____________________________________]{"(sqrt($m),-sqrt($m)), (- sqrt($m),sqrt($m))"} [@ helpLink("points") @]* + +Enter the solution as an ordered pair, [` (a,b) `], or a list of ordered pairs, [` (a,b), (c,d) `]. END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_12.pg b/Contrib/CCCS/CollegeAlgebra/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_12.pg index 40f007f21c..8673238f35 100644 --- a/Contrib/CCCS/CollegeAlgebra/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_12.pg +++ b/Contrib/CCCS/CollegeAlgebra/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_12.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -44,8 +44,8 @@ $k = non_zero_random(-5,-2,1); $answer = $k*$A ; $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -54,11 +54,11 @@ TeX => BEGIN_PGML Suppose ->> [``A = [$A] ``] << +>> [``A = [$A] ``] << Perform the scalar multiplication [` [$k]A`]. -[` [$k]A = `][_____]*{$answer} [@ AnswerFormatHelp("matrices") @]* +[` [$k]A = `][_____]*{$answer} [@ helpLink("matrices") @]* [$video]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_18.pg b/Contrib/CCCS/CollegeAlgebra/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_18.pg index 1853530449..cf30618a34 100644 --- a/Contrib/CCCS/CollegeAlgebra/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_18.pg +++ b/Contrib/CCCS/CollegeAlgebra/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_18.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -47,8 +47,8 @@ $B = Matrix([ $answer = $A * $B; $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -62,7 +62,7 @@ Suppose Find the product [`AB`]. -[` AB = `][_____]*{$answer} [@ AnswerFormatHelp("matrices") @]* +[` AB = `][_____]*{$answer} [@ helpLink("matrices") @]* [$video]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_19.pg b/Contrib/CCCS/CollegeAlgebra/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_19.pg index f7d167ed7b..0a683d7890 100644 --- a/Contrib/CCCS/CollegeAlgebra/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_19.pg +++ b/Contrib/CCCS/CollegeAlgebra/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_19.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -56,7 +56,7 @@ Suppose Find the product [`AB`]. -[` AB = `][_____]*{$answer} [@ AnswerFormatHelp("matrices") @]* +[` AB = `][_____]*{$answer} [@ helpLink("matrices") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_30.pg b/Contrib/CCCS/CollegeAlgebra/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_30.pg index 3a1a04bc70..0776a30263 100644 --- a/Contrib/CCCS/CollegeAlgebra/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_30.pg +++ b/Contrib/CCCS/CollegeAlgebra/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_30.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "AppletObjects.pl", "unionTables.pl", "parserNumberWithUnits.pl", @@ -59,13 +59,13 @@ Suppose Find the product [`AB`]. -[` AB = `][_____]*{$answer1} [@ AnswerFormatHelp("matrices") @]* +[` AB = `][_____]*{$answer1} [@ helpLink("matrices") @]* + + - - Find the product [`BA`]. -[` BA = `][_____]*{$answer2} [@ AnswerFormatHelp("matrices") @]* +[` BA = `][_____]*{$answer2} [@ helpLink("matrices") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_32.pg b/Contrib/CCCS/CollegeAlgebra/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_32.pg index 3a1a04bc70..0776a30263 100644 --- a/Contrib/CCCS/CollegeAlgebra/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_32.pg +++ b/Contrib/CCCS/CollegeAlgebra/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_32.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "AppletObjects.pl", "unionTables.pl", "parserNumberWithUnits.pl", @@ -59,13 +59,13 @@ Suppose Find the product [`AB`]. -[` AB = `][_____]*{$answer1} [@ AnswerFormatHelp("matrices") @]* +[` AB = `][_____]*{$answer1} [@ helpLink("matrices") @]* + + - - Find the product [`BA`]. -[` BA = `][_____]*{$answer2} [@ AnswerFormatHelp("matrices") @]* +[` BA = `][_____]*{$answer2} [@ helpLink("matrices") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_50.pg b/Contrib/CCCS/CollegeAlgebra/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_50.pg index 3a1a04bc70..0776a30263 100644 --- a/Contrib/CCCS/CollegeAlgebra/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_50.pg +++ b/Contrib/CCCS/CollegeAlgebra/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_50.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "AppletObjects.pl", "unionTables.pl", "parserNumberWithUnits.pl", @@ -59,13 +59,13 @@ Suppose Find the product [`AB`]. -[` AB = `][_____]*{$answer1} [@ AnswerFormatHelp("matrices") @]* +[` AB = `][_____]*{$answer1} [@ helpLink("matrices") @]* + + - - Find the product [`BA`]. -[` BA = `][_____]*{$answer2} [@ AnswerFormatHelp("matrices") @]* +[` BA = `][_____]*{$answer2} [@ helpLink("matrices") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_7.pg b/Contrib/CCCS/CollegeAlgebra/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_7.pg index 452d4ea1e2..a1ad1da689 100644 --- a/Contrib/CCCS/CollegeAlgebra/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_7.pg +++ b/Contrib/CCCS/CollegeAlgebra/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_7.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -47,8 +47,8 @@ $B = Matrix([ $answer = $A + $B; $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -64,7 +64,7 @@ Suppose Find the sum [`A+B`]. -[` A + B = `][_____]*{$answer} [@ AnswerFormatHelp("matrices") @]* +[` A + B = `][_____]*{$answer} [@ helpLink("matrices") @]* [$video]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_10.pg b/Contrib/CCCS/CollegeAlgebra/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_10.pg index 80e04e4832..a6fdfdd025 100644 --- a/Contrib/CCCS/CollegeAlgebra/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_10.pg +++ b/Contrib/CCCS/CollegeAlgebra/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_10.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Systems of equations and inequalities) ## DBsection(Linear systems) @@ -11,28 +11,28 @@ ## Author(Craig Faulhaber) ## MO(1) ## KEYWORDS('college algebra') - + ################## # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); - + TEXT(beginproblem()); - + $showPartialCorrectAnswers = 1; - + ################## # Setup - - + + do { $a=non_zero_random(-9,9); $b=non_zero_random(-9,9); @@ -44,67 +44,67 @@ do { $h=non_zero_random(-9,9); $i=random(-9,9); } until ($e==0 || $f==0 || $g==0 || $i==0); - + Context("Full"); Context()->noreduce("(-x)-y","(-x)+y"); $eqn1 = Compute("$a*x+$b*y+$c*z")->reduce; $eqn2 = Compute("$d*x+$e*y+$f*z")->reduce; $eqn3 = Compute("$g*x+$h*y+$i*z")->reduce; - - + + Context("Matrix"); - + $A = Matrix([ [$a,$b,$c,$d], [$d,$e,$f,$b], [$g,$h,$i,$a] ]); - + $answer = $A; - + $video = MODES( HTML=> '', TeX => "An embedded YouTube video." ); - - + + ################## # Main text - + BEGIN_PGML [` [$eqn1] = [$d] `] -[` [$eqn2] = [$b] `] +[` [$eqn2] = [$b] `] [` [$eqn3] = [$a] `] - + Find the augmented matrix for this system. - -Augmented matrix: [_____]*{$answer} [@ AnswerFormatHelp("matrices") @]* - + +Augmented matrix: [_____]*{$answer} [@ helpLink("matrices") @]* + [$video]* END_PGML - - + + BEGIN_TEXT $BR - + If the video does not work, \{ htmlLink ("https://www.youtube.com/watch?v=WiVeiVIu_SM", "click here to watch on YouTube.", "TARGET='_blank'")\} $BR END_TEXT - - - + + + ######################## # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/CollegeAlgebra/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_11.pg b/Contrib/CCCS/CollegeAlgebra/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_11.pg index c4fe7aa9b2..1c1594c89b 100644 --- a/Contrib/CCCS/CollegeAlgebra/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_11.pg +++ b/Contrib/CCCS/CollegeAlgebra/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_11.pg @@ -19,7 +19,7 @@ DOCUMENT(); loadMacros( "MathObjects.pl", "PGstandard.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -29,7 +29,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Matrix"); @@ -41,7 +41,7 @@ $e=random(-5,5); $f=random(-5,5); ##### -#commented out because I couldn't figure out how to get the vertical line in an augmented matrix into PGML +#commented out because I couldn't figure out how to get the vertical line in an augmented matrix into PGML #$A = Matrix([ #[$a,$b,$c], #[$d,$e,$f], @@ -62,7 +62,7 @@ $rhs2 = Formula("$f"); BEGIN_TEXT -Convert the augmented matrix to the equivalent linear system. +Convert the augmented matrix to the equivalent linear system. $PAR \[ \left[ \begin{array} {rr} @@ -80,14 +80,14 @@ Use the variables `x` and `y`. END_TEXT ##### -#Convert the augmented matrix to the equivalent linear system. -#>> [``A=[$A]``] << +#Convert the augmented matrix to the equivalent linear system. +#>> [``A=[$A]``] << #Use the variables x and y. ##### BEGIN_PGML -[__________]*{$lhs1} = [____]*{$rhs1} +[__________]*{$lhs1} = [____]*{$rhs1} [__________]*{$lhs2} = [____]*{$rhs2} END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_16.pg b/Contrib/CCCS/CollegeAlgebra/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_16.pg index 1f321b0a68..06fdf0abba 100644 --- a/Contrib/CCCS/CollegeAlgebra/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_16.pg +++ b/Contrib/CCCS/CollegeAlgebra/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_16.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -63,7 +63,7 @@ BEGIN_PGML -Solution: [_______________]{$ans} [@ AnswerFormatHelp("points") @]* +Solution: [_______________]{$ans} [@ helpLink("points") @]* Enter the solution as an ordered pair, [` (a,b) `], including the parentheses. diff --git a/Contrib/CCCS/CollegeAlgebra/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_19.pg b/Contrib/CCCS/CollegeAlgebra/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_19.pg index fbdb39533a..eb007a6483 100644 --- a/Contrib/CCCS/CollegeAlgebra/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_19.pg +++ b/Contrib/CCCS/CollegeAlgebra/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_19.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -43,8 +43,8 @@ $d=non_zero_random(-4,4); $ans = Point("(($a*$c+$d)-$c,($a*$c+$d)/2)"); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -76,7 +76,7 @@ BEGIN_PGML -Solution: [_______________]{$ans} [@ AnswerFormatHelp("points") @]* +Solution: [_______________]{$ans} [@ helpLink("points") @]* Enter the solution as an ordered pair, [` (a,b) `], including the parentheses. diff --git a/Contrib/CCCS/CollegeAlgebra/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_22.pg b/Contrib/CCCS/CollegeAlgebra/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_22.pg index 3370cc8718..ac647a1d47 100644 --- a/Contrib/CCCS/CollegeAlgebra/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_22.pg +++ b/Contrib/CCCS/CollegeAlgebra/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_22.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "AppletObjects.pl", "unionTables.pl", "parserNumberWithUnits.pl", @@ -57,14 +57,14 @@ $ans = Point("($xans,$yans)"); BEGIN_PGML ->>[` [$eqn1]=[$c] `]<< +>>[` [$eqn1]=[$c] `]<< >>[` [$eqn2] = [$d] `]<< -Use Gaussian elimination to solve the above system. +Use Gaussian elimination to solve the above system. -Solution: [_______________]{$ans} [@ AnswerFormatHelp("points") @]* +Solution: [_______________]{$ans} [@ helpLink("points") @]* Enter the solution as an ordered pair, [` (a,b) `], including the parentheses. diff --git a/Contrib/CCCS/CollegeAlgebra/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_30.pg b/Contrib/CCCS/CollegeAlgebra/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_30.pg index a7e9e258cb..7516c42df7 100644 --- a/Contrib/CCCS/CollegeAlgebra/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_30.pg +++ b/Contrib/CCCS/CollegeAlgebra/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_30.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "AppletObjects.pl", "contextFraction.pl", "unionTables.pl", @@ -62,14 +62,14 @@ $ans = Point("($xans,$yans)"); BEGIN_PGML ->>[` [$eqn1]=[$c] `]<< +>>[` [$eqn1]=[$c] `]<< >>[` [$eqn2] = [$d] `]<< -Use Gaussian elimination to solve the above system. +Use Gaussian elimination to solve the above system. -Solution: [_______________]{$ans} [@ AnswerFormatHelp("points") @]* +Solution: [_______________]{$ans} [@ helpLink("points") @]* Enter the solution as an ordered pair, [` (a,b) `], including the parentheses. diff --git a/Contrib/CCCS/CollegeAlgebra/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_40.pg b/Contrib/CCCS/CollegeAlgebra/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_40.pg index e62b89f8da..5dd327b126 100644 --- a/Contrib/CCCS/CollegeAlgebra/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_40.pg +++ b/Contrib/CCCS/CollegeAlgebra/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_40.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "AppletObjects.pl", "unionTables.pl", "parserNumberWithUnits.pl", @@ -62,14 +62,14 @@ $ans = Point("($xans,$yans, $zans)"); BEGIN_PGML ->>[` [$eqn1] = [$c] `]<< ->>[` [$eqn2] = [$c] `]<< +>>[` [$eqn1] = [$c] `]<< +>>[` [$eqn2] = [$c] `]<< >>[` [$eqn3] = [$e] `]<< -Use Gaussian elimination to solve the above system. +Use Gaussian elimination to solve the above system. -Solution: [_______________]{$ans} [@ AnswerFormatHelp("points") @]* +Solution: [_______________]{$ans} [@ helpLink("points") @]* Enter the solution as an ordered triple, [` (a,b,c) `], including the parentheses. diff --git a/Contrib/CCCS/CollegeAlgebra/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_52.pg b/Contrib/CCCS/CollegeAlgebra/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_52.pg index 3cfdc3b1c4..f24685608e 100644 --- a/Contrib/CCCS/CollegeAlgebra/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_52.pg +++ b/Contrib/CCCS/CollegeAlgebra/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_52.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,9 +48,9 @@ BEGIN_PGML Every day, a cupcake store sells [$b] cupcakes in chocolate and vanilla flavors. If the chocolate flavor is [$c] times as popular as the vanilla flavor, how many of each cupcake is sold per day? -Vanilla cupcakes: [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +Vanilla cupcakes: [_______________]{$ans1} [@ helpLink("numbers") @]* -Chocolate cupcakes: [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +Chocolate cupcakes: [_______________]{$ans2} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CollegeAlgebra/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_6.pg b/Contrib/CCCS/CollegeAlgebra/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_6.pg index 3e2afe9bd0..2c44bb6e47 100644 --- a/Contrib/CCCS/CollegeAlgebra/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_6.pg +++ b/Contrib/CCCS/CollegeAlgebra/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_6.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -54,8 +54,8 @@ $A = Matrix( $answer = $A; $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -67,11 +67,11 @@ BEGIN_PGML Find the augmented matrix for this system. ->>[` [$eqn1]=[$c] `]<< +>>[` [$eqn1]=[$c] `]<< >>[` [$eqn2] = [$f] `]<< -Augmented matrix: [_____]*{$answer}[@ AnswerFormatHelp("matrices") @]* +Augmented matrix: [_____]*{$answer}[@ helpLink("matrices") @]* [$video]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_60.pg b/Contrib/CCCS/CollegeAlgebra/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_60.pg index 9c1f13dd0d..9c0bafe203 100644 --- a/Contrib/CCCS/CollegeAlgebra/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_60.pg +++ b/Contrib/CCCS/CollegeAlgebra/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_60.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -52,11 +52,11 @@ BEGIN_PGML A bag of mixed nuts contains cashews, pistachios, and almonds. There are [$size] total nuts in the bag, and there are [$less] fewer almonds than pistachios. Cashews weigh [$a] g, pistachios weigh [$a+1] g, and almonds weigh [$a+3] g. If the bag weighs [$d/10] kg, find out how many of each type of nut is in the bag. -Cashews: [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +Cashews: [_______________]{$ans1} [@ helpLink("numbers") @]* -Pistachios: [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +Pistachios: [_______________]{$ans2} [@ helpLink("numbers") @]* -Almonds: [_______________]{$ans3} [@ AnswerFormatHelp("numbers") @]* +Almonds: [_______________]{$ans3} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/12.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_1_11.pg b/Contrib/CCCS/CollegeAlgebra/12.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_1_11.pg index 0418217718..296bd0f0d4 100644 --- a/Contrib/CCCS/CollegeAlgebra/12.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_1_11.pg +++ b/Contrib/CCCS/CollegeAlgebra/12.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_1_11.pg @@ -23,7 +23,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "unorderedAnswer.pl", "PGML.pl", @@ -50,8 +50,8 @@ $c=Compute("(($a)^2-($b)^2)^(1/2)"); $chooser=random(1,2,1); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -63,7 +63,7 @@ Context("LimitedPoint"); if ( $chooser==1) { Context()->variables->add(y => "Real"); $f = Formula("(x^2)/$a^2+(y^2)/$b^2")->reduce; -$foci = List(Point("($c,0)"), Point("(-$c,0)")); +$foci = List(Point("($c,0)"), Point("(-$c,0)")); $major= List( Point("(-$a,0)"),Point("($a,0)")); $minor= List( Point("(0,-$b)"),Point("(0,$b)")) } @@ -85,13 +85,13 @@ For the given equation of an ellipse, identify the foci, the vertices, and the c >>[`` [$f]=1 ``]<< -Foci:[___________________________]{$foci} [@ AnswerFormatHelp("points") @]* +Foci:[___________________________]{$foci} [@ helpLink("points") @]* -Vertices: [_____________________]{$major} [@ AnswerFormatHelp("points") @]* +Vertices: [_____________________]{$major} [@ helpLink("points") @]* -Co-vertices: [_____________________]{$minor} [@ AnswerFormatHelp("points") @]* +Co-vertices: [_____________________]{$minor} [@ helpLink("points") @]* -[$video]* +[$video]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/12.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_1_12.pg b/Contrib/CCCS/CollegeAlgebra/12.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_1_12.pg index fcf91b3c17..e14e0ea9e6 100644 --- a/Contrib/CCCS/CollegeAlgebra/12.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_1_12.pg +++ b/Contrib/CCCS/CollegeAlgebra/12.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_1_12.pg @@ -23,7 +23,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "unorderedAnswer.pl", "PGML.pl", @@ -51,12 +51,12 @@ $chooser=random(1,2,1); Context("LimitedPoint"); -if ( $chooser==1) +if ( $chooser==1) #Horizontal orientation { Context()->variables->add(y => "Real"); $f = Formula("(x^2)/$a^2+(y^2)/$b^2")->reduce; -$foci = List(Point("($c,0)"), Point("(-$c,0)")); +$foci = List(Point("($c,0)"), Point("(-$c,0)")); $major= List( Point("(-$a,0)"),Point("($a,0)")); $minor= List( Point("(0,-$b)"),Point("(0,$b)")) } @@ -78,11 +78,11 @@ For the given equation of an ellipse, identify the foci, the vertices, and the c >>[`` [$f]=1 ``]<< -Foci:[___________________________]{$foci} [@ AnswerFormatHelp("points") @]* +Foci:[___________________________]{$foci} [@ helpLink("points") @]* -Vertices: [_____________________]{$major} [@ AnswerFormatHelp("points") @]* +Vertices: [_____________________]{$major} [@ helpLink("points") @]* -Co-vertices: [_____________________]{$minor} [@ AnswerFormatHelp("points") @]* +Co-vertices: [_____________________]{$minor} [@ helpLink("points") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/12.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_1_13.pg b/Contrib/CCCS/CollegeAlgebra/12.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_1_13.pg index 786007bac4..0151de7c22 100644 --- a/Contrib/CCCS/CollegeAlgebra/12.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_1_13.pg +++ b/Contrib/CCCS/CollegeAlgebra/12.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_1_13.pg @@ -24,7 +24,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "unorderedAnswer.pl", "PGML.pl", @@ -56,7 +56,7 @@ Context("LimitedPoint"); if ( $chooser==1) { Context()->variables->add(y => "Real"); $f = Formula("$a*x^2+$b*y^2")->reduce; -$foci = List(Point("(0,$c)"), Point("(0,-$c)")); +$foci = List(Point("(0,$c)"), Point("(0,-$c)")); $major= List( Point("(0,($d/$b)^(1/2))"),Point("(0,-($d/$b)^(1/2))")); $minor= List( Point("(($d/$a)^(1/2),0)"),Point("(-($d/$a)^(1/2),0)")) } @@ -78,11 +78,11 @@ For the given equation of an ellipse, identify the foci, the vertices, and the c >>[`` [$f]=[$d] ``]<< -Foci:[___________________________]{$foci} [@ AnswerFormatHelp("points") @]* +Foci:[___________________________]{$foci} [@ helpLink("points") @]* -Vertices: [_____________________]{$major} [@ AnswerFormatHelp("points") @]* +Vertices: [_____________________]{$major} [@ helpLink("points") @]* -Co-vertices: [_____________________]{$minor} [@ AnswerFormatHelp("points") @]* +Co-vertices: [_____________________]{$minor} [@ helpLink("points") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/12.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_1_14.pg b/Contrib/CCCS/CollegeAlgebra/12.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_1_14.pg index 5f14fd79e9..9d494e775e 100644 --- a/Contrib/CCCS/CollegeAlgebra/12.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_1_14.pg +++ b/Contrib/CCCS/CollegeAlgebra/12.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_1_14.pg @@ -23,7 +23,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "unorderedAnswer.pl", "PGML.pl", @@ -55,7 +55,7 @@ Context("LimitedPoint"); if ( $chooser==1) { Context()->variables->add(y => "Real"); $f = Formula("$a*x^2+$b*y^2")->reduce; -$foci = List(Point("(0,$c)"), Point("(0,-$c)")); +$foci = List(Point("(0,$c)"), Point("(0,-$c)")); $major= List( Point("(0,($d/$b)^(1/2))"),Point("(0,-($d/$b)^(1/2))")); $minor= List( Point("(($d/$a)^(1/2),0)"),Point("(-($d/$a)^(1/2),0)")) } @@ -77,11 +77,11 @@ For the given equation of an ellipse, identify the foci, the vertices, and the c >>[`` [$f]=[$d] ``]<< -Foci:[___________________________]{$foci} [@ AnswerFormatHelp("points") @]* +Foci:[___________________________]{$foci} [@ helpLink("points") @]* -Vertices: [_____________________]{$major} [@ AnswerFormatHelp("points") @]* +Vertices: [_____________________]{$major} [@ helpLink("points") @]* -Co-vertices: [_____________________]{$minor} [@ AnswerFormatHelp("points") @]* +Co-vertices: [_____________________]{$minor} [@ helpLink("points") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/12.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_1_32a.pg b/Contrib/CCCS/CollegeAlgebra/12.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_1_32a.pg index 9758c576e1..81efa815f8 100644 --- a/Contrib/CCCS/CollegeAlgebra/12.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_1_32a.pg +++ b/Contrib/CCCS/CollegeAlgebra/12.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_1_32a.pg @@ -24,7 +24,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGgraphmacros.pl", @@ -47,8 +47,8 @@ $b = random(1,3,1); $d=2*$a*$b; $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -177,7 +177,7 @@ Context("LimitedPoint"); if ( $chooser==1) { Context()->variables->add(y => "Real"); $f = Formula("(x^2)/($b^2)+(y^2)/($a^2)")->reduce; -$foci = List(Point("(0,$c)"), Point("(0,-$c)")); +$foci = List(Point("(0,$c)"), Point("(0,-$c)")); $vertices= List( Point("(0,$a)"),Point("(0,-$a)")); $popup1 = PopUp( ["?","A","B", "C", "D"], "C", @@ -205,13 +205,13 @@ Identify the foci and the vertices of the ellipse. Also, select the correct gra >>[`` [$f]=1 ``]<< -Foci:[___________________________]{$foci} [@ AnswerFormatHelp("points") @]* +Foci:[___________________________]{$foci} [@ helpLink("points") @]* -Vertices: [_____________________]{$vertices} [@ AnswerFormatHelp("points") @]* +Vertices: [_____________________]{$vertices} [@ helpLink("points") @]* -Which of the following graphs represents the graph of [`` [$f]=1 ``]? [_________________]{$popup1} +Which of the following graphs represents the graph of [`` [$f]=1 ``]? [_________________]{$popup1} ->>A. [@ image(insertGraph($gr1), width=>200, height=>200), @]* B. [@ image(insertGraph($gr2), width=>200, height=>200), @]* << +>>A. [@ image(insertGraph($gr1), width=>200, height=>200), @]* B. [@ image(insertGraph($gr2), width=>200, height=>200), @]* << >>C. [@ image(insertGraph($gr4), width=>200, height=>200), @]* D. [@ image(insertGraph($gr3), width=>200, height=>200), @]* << diff --git a/Contrib/CCCS/CollegeAlgebra/12.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_1_32b.pg b/Contrib/CCCS/CollegeAlgebra/12.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_1_32b.pg index 1c70468156..1e28cb6ba9 100644 --- a/Contrib/CCCS/CollegeAlgebra/12.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_1_32b.pg +++ b/Contrib/CCCS/CollegeAlgebra/12.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_1_32b.pg @@ -23,7 +23,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGgraphmacros.pl", @@ -169,7 +169,7 @@ Context("LimitedPoint"); if ( $chooser==1) { Context()->variables->add(y => "Real"); $f = Formula("(x^2)/($b^2)+(y^2)/($a^2)")->reduce; -$foci = List(Point("(0,$c)"), Point("(0,-$c)")); +$foci = List(Point("(0,$c)"), Point("(0,-$c)")); $vertices= List( Point("(0,$a)"),Point("(0,-$a)")); $popup1 = PopUp( ["?","A","B", "C", "D"], "C", @@ -197,13 +197,13 @@ Identify the foci and the vertices of the ellipse. Also, select the correct gra >>[`` [$f]=1 ``]<< -Foci:[___________________________]{$foci} [@ AnswerFormatHelp("points") @]* +Foci:[___________________________]{$foci} [@ helpLink("points") @]* -Vertices: [_____________________]{$vertices} [@ AnswerFormatHelp("points") @]* +Vertices: [_____________________]{$vertices} [@ helpLink("points") @]* -Which of the following graphs represents the graph of [`` [$f]=1 ``]? [_________________]{$popup1} +Which of the following graphs represents the graph of [`` [$f]=1 ``]? [_________________]{$popup1} ->>A. [@ image(insertGraph($gr1), width=>200, height=>200), @]* B. [@ image(insertGraph($gr2), width=>200, height=>200), @]* << +>>A. [@ image(insertGraph($gr1), width=>200, height=>200), @]* B. [@ image(insertGraph($gr2), width=>200, height=>200), @]* << >>C. [@ image(insertGraph($gr4), width=>200, height=>200), @]* D. [@ image(insertGraph($gr3), width=>200, height=>200), @]* << diff --git a/Contrib/CCCS/CollegeAlgebra/12.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_1_34a.pg b/Contrib/CCCS/CollegeAlgebra/12.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_1_34a.pg index da600b96b9..1a7315746e 100644 --- a/Contrib/CCCS/CollegeAlgebra/12.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_1_34a.pg +++ b/Contrib/CCCS/CollegeAlgebra/12.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_1_34a.pg @@ -23,7 +23,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGgraphmacros.pl", @@ -169,7 +169,7 @@ Context("LimitedPoint"); if ( $chooser==1) { Context()->variables->add(y => "Real"); $f = Formula("$a*x^2+$b*y^2")->reduce; -$foci = List(Point("(0,$c)"), Point("(0,-$c)")); +$foci = List(Point("(0,$c)"), Point("(0,-$c)")); $vertices= List( Point("(0,($d/$b)^(1/2))"),Point("(0,-($d/$b)^(1/2))")); $popup1 = PopUp( ["?","A","B", "C", "D"], "B", @@ -197,13 +197,13 @@ Identify the foci and the vertices of the ellipse. Also, select the correct gra >>[`` [$f]=[$d] ``]<< -Foci:[___________________________]{$foci} [@ AnswerFormatHelp("points") @]* +Foci:[___________________________]{$foci} [@ helpLink("points") @]* -Vertices: [_____________________]{$vertices} [@ AnswerFormatHelp("points") @]* +Vertices: [_____________________]{$vertices} [@ helpLink("points") @]* -Which of the following graphs represents the graph of [`` [$f]=[$d] ``]? [_________________]{$popup1} +Which of the following graphs represents the graph of [`` [$f]=[$d] ``]? [_________________]{$popup1} ->>A. [@ image(insertGraph($gr1), width=>200, height=>200), @]* B. [@ image(insertGraph($gr2), width=>200, height=>200), @]* << +>>A. [@ image(insertGraph($gr1), width=>200, height=>200), @]* B. [@ image(insertGraph($gr2), width=>200, height=>200), @]* << >>C. [@ image(insertGraph($gr4), width=>200, height=>200), @]* D. [@ image(insertGraph($gr3), width=>200, height=>200), @]* << diff --git a/Contrib/CCCS/CollegeAlgebra/12.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_1_34b.pg b/Contrib/CCCS/CollegeAlgebra/12.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_1_34b.pg index 138c950e02..66e80820c3 100644 --- a/Contrib/CCCS/CollegeAlgebra/12.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_1_34b.pg +++ b/Contrib/CCCS/CollegeAlgebra/12.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_1_34b.pg @@ -23,7 +23,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGgraphmacros.pl", @@ -169,7 +169,7 @@ Context("LimitedPoint"); if ( $chooser==1) { Context()->variables->add(y => "Real"); $f = Formula("$a*x^2+$b*y^2")->reduce; -$foci = List(Point("(0,$c)"), Point("(0,-$c)")); +$foci = List(Point("(0,$c)"), Point("(0,-$c)")); $vertices= List( Point("(0,($d/$b)^(1/2))"),Point("(0,-($d/$b)^(1/2))")); $popup1 = PopUp( ["?","A","B", "C", "D"], "B", @@ -197,13 +197,13 @@ Identify the foci and the vertices of the ellipse. Also, select the correct gra >>[`` [$f]=[$d] ``]<< -Foci:[___________________________]{$foci} [@ AnswerFormatHelp("points") @]* +Foci:[___________________________]{$foci} [@ helpLink("points") @]* -Vertices: [_____________________]{$vertices} [@ AnswerFormatHelp("points") @]* +Vertices: [_____________________]{$vertices} [@ helpLink("points") @]* -Which of the following graphs represents the graph of [`` [$f]=[$d] ``]? [_________________]{$popup1} +Which of the following graphs represents the graph of [`` [$f]=[$d] ``]? [_________________]{$popup1} ->>A. [@ image(insertGraph($gr1), width=>200, height=>200), @]* B. [@ image(insertGraph($gr2), width=>200, height=>200), @]* << +>>A. [@ image(insertGraph($gr1), width=>200, height=>200), @]* B. [@ image(insertGraph($gr2), width=>200, height=>200), @]* << >>C. [@ image(insertGraph($gr4), width=>200, height=>200), @]* D. [@ image(insertGraph($gr3), width=>200, height=>200), @]* << diff --git a/Contrib/CCCS/CollegeAlgebra/12.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_2_11.pg b/Contrib/CCCS/CollegeAlgebra/12.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_2_11.pg index 06cd66aaed..4b4e190ce6 100644 --- a/Contrib/CCCS/CollegeAlgebra/12.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_2_11.pg +++ b/Contrib/CCCS/CollegeAlgebra/12.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_2_11.pg @@ -23,7 +23,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "unorderedAnswer.pl", "parserImplicitPlane.pl", @@ -48,8 +48,8 @@ do { $b =random(1,8,1); } until ( $b != $a ); $c=Compute("($a^2+($b)^2)^(1/2)"); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -62,7 +62,7 @@ if ( $chooser==1) { Context("LimitedPoint"); Context()->variables->add(y => "Real"); $f = Formula("(y^2)/$a^2-(x^2)/$b^2")->reduce; -$foci = List(Point("(0,$c)"), Point("(0,-$c)")); +$foci = List(Point("(0,$c)"), Point("(0,-$c)")); $vertices= List( Point("(0,-$a)"),Point("(0,$a)")); Context("ImplicitPlane")->variables->are(x=>'Real',y=>'Real'); @@ -93,11 +93,11 @@ For the given equation of a hyperbola, identify the foci and the vertices, and w >>[`` [$f]=1 ``]<< -Foci:[___________________________]{$foci} [@ AnswerFormatHelp("points") @]* +Foci:[___________________________]{$foci} [@ helpLink("points") @]* -Vertices: [_____________________]{$vertices} [@ AnswerFormatHelp("points") @]* +Vertices: [_____________________]{$vertices} [@ helpLink("points") @]* -Asymptotes: [____________________________________________]{$asymptote} [@ AnswerFormatHelp("equations")@]* +Asymptotes: [____________________________________________]{$asymptote} [@ helpLink("equations")@]* [$video]* diff --git a/Contrib/CCCS/CollegeAlgebra/12.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_2_13.pg b/Contrib/CCCS/CollegeAlgebra/12.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_2_13.pg index 114772fbfa..73f15f2f43 100644 --- a/Contrib/CCCS/CollegeAlgebra/12.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_2_13.pg +++ b/Contrib/CCCS/CollegeAlgebra/12.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_2_13.pg @@ -23,7 +23,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "unorderedAnswer.pl", "parserImplicitPlane.pl", @@ -55,7 +55,7 @@ if ( $chooser==1) { Context("LimitedPoint"); Context()->variables->add(y => "Real"); $f = Formula("(y^2)/$b^2-(x^2)/$a^2")->reduce; -$foci = List(Point("(0,$c)"), Point("(0,-$c)")); +$foci = List(Point("(0,$c)"), Point("(0,-$c)")); $vertices= List( Point("(0,-$b)"),Point("(0,$b)")); Context("ImplicitPlane")->variables->are(x=>'Real',y=>'Real'); @@ -89,11 +89,11 @@ For the given equation of a hyperbola, identify the foci and the vertices, and w >>[`` [$f]=1 ``]<< -Foci:[___________________________]{$foci} [@ AnswerFormatHelp("points") @]* +Foci:[___________________________]{$foci} [@ helpLink("points") @]* -Vertices: [_____________________]{$vertices} [@ AnswerFormatHelp("points") @]* +Vertices: [_____________________]{$vertices} [@ helpLink("points") @]* -Asymptotes: [____________________________________________]{$asymptote} [@ AnswerFormatHelp("equations")@]* +Asymptotes: [____________________________________________]{$asymptote} [@ helpLink("equations")@]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/12.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_2_14a.pg b/Contrib/CCCS/CollegeAlgebra/12.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_2_14a.pg index 2456235236..b97dd8f707 100644 --- a/Contrib/CCCS/CollegeAlgebra/12.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_2_14a.pg +++ b/Contrib/CCCS/CollegeAlgebra/12.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_2_14a.pg @@ -23,7 +23,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "unorderedAnswer.pl", "PGML.pl", @@ -50,8 +50,8 @@ $d=3*$a*$b; $c=Compute("(($d/$a)+($d/$b))^(1/2)"); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -63,7 +63,7 @@ if ( $chooser==1) { Context("LimitedPoint"); Context()->variables->add(y => "Real"); $f = Formula("$a*y^2-$b*x^2")->reduce; -$foci = List(Point("(0,$c)"), Point("(0,-$c)")); +$foci = List(Point("(0,$c)"), Point("(0,-$c)")); $vertices= List( Point("(0,($d/$a)^(1/2))"),Point("(0,-($d/$a)^(1/2))")); Context("ImplicitEquation"); @@ -94,11 +94,11 @@ For the given equation of a hyperbola, identify the foci and the vertices, and w >>[`` [$f]=[$d] ``]<< -Foci:[___________________________]{$foci} [@ AnswerFormatHelp("points") @]* +Foci:[___________________________]{$foci} [@ helpLink("points") @]* -Vertices: [_____________________]{$vertices} [@ AnswerFormatHelp("points") @]* +Vertices: [_____________________]{$vertices} [@ helpLink("points") @]* -Asymptotes: [____________________________________________]{$asym} [@ AnswerFormatHelp("equations")@]* +Asymptotes: [____________________________________________]{$asym} [@ helpLink("equations")@]* [$video]* diff --git a/Contrib/CCCS/CollegeAlgebra/12.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_2_14b.pg b/Contrib/CCCS/CollegeAlgebra/12.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_2_14b.pg index 2111c27eaf..74af89f2ba 100644 --- a/Contrib/CCCS/CollegeAlgebra/12.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_2_14b.pg +++ b/Contrib/CCCS/CollegeAlgebra/12.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_2_14b.pg @@ -23,7 +23,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "unorderedAnswer.pl", "parserImplicitPlane.pl", @@ -56,7 +56,7 @@ if ( $chooser==1) { Context("LimitedPoint"); Context()->variables->add(y => "Real"); $f = Formula("$b*y^2-$a*x^2")->reduce; -$foci = List(Point("(0,$c)"), Point("(0,-$c)")); +$foci = List(Point("(0,$c)"), Point("(0,-$c)")); $vertices= List( Point("(0,($d/$b)^(1/2))"),Point("(0,-($d/$b)^(1/2))")); Context("ImplicitPlane")->variables->are(x=>'Real',y=>'Real'); @@ -87,11 +87,11 @@ For the given equation of a hyperbola, identify the foci and the vertices, and w >>[`` [$f]=[$d] ``]<< -Foci:[___________________________]{$foci} [@ AnswerFormatHelp("points") @]* +Foci:[___________________________]{$foci} [@ helpLink("points") @]* -Vertices: [_____________________]{$vertices} [@ AnswerFormatHelp("points") @]* +Vertices: [_____________________]{$vertices} [@ helpLink("points") @]* -Asymptotes: [____________________________________________]{$asymptote} [@ AnswerFormatHelp("equations")@]* +Asymptotes: [____________________________________________]{$asymptote} [@ helpLink("equations")@]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/12.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_2_31.pg b/Contrib/CCCS/CollegeAlgebra/12.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_2_31.pg index e017065f40..9c520054ec 100644 --- a/Contrib/CCCS/CollegeAlgebra/12.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_2_31.pg +++ b/Contrib/CCCS/CollegeAlgebra/12.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_2_31.pg @@ -24,7 +24,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserImplicitPlane.pl", "PGML.pl", @@ -54,8 +54,8 @@ $a2 = Compute("$a^2"); $b2 = Compute("$b^2"); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -111,7 +111,7 @@ Context("LimitedPoint"); if ( $chooser==1) { Context()->variables->add(y => "Real"); $f = Formula("(x^2)/($a^2)-(y^2)/($b^2)")->reduce; -$foci = List(Point("($c,0)"), Point("(-$c,0)")); +$foci = List(Point("($c,0)"), Point("(-$c,0)")); $vertices= List( Point("($a,0)"),Point("(-$a,0)")); $popup1 = PopUp( ["?","A","B", "C", "D"], "C", @@ -148,15 +148,15 @@ Identify the foci, the vertices, and the equations of the asymptotes for the hyp >>[`` [$f]=1 ``]<< -Foci:[___________________________]{$foci} [@ AnswerFormatHelp("points") @]* +Foci:[___________________________]{$foci} [@ helpLink("points") @]* -Vertices: [_____________________]{$vertices} [@ AnswerFormatHelp("points") @]* +Vertices: [_____________________]{$vertices} [@ helpLink("points") @]* -Equations of Asymptotes: [_____________________]{$asymptote} [@ AnswerFormatHelp("equations") @]* +Equations of Asymptotes: [_____________________]{$asymptote} [@ helpLink("equations") @]* -Which of the following represents the graph of [`` [$f]=1 ``]? [_________________]{$popup1} +Which of the following represents the graph of [`` [$f]=1 ``]? [_________________]{$popup1} ->>A. [@ image(insertGraph($gr1), width=>200, height=>200), @]* B. [@ image(insertGraph($gr2), width=>200, height=>200), @]* << +>>A. [@ image(insertGraph($gr1), width=>200, height=>200), @]* B. [@ image(insertGraph($gr2), width=>200, height=>200), @]* << >>C. [@ image(insertGraph($gr3), width=>200, height=>200), @]* D. [@ image(insertGraph($gr4), width=>200, height=>200), @]* << diff --git a/Contrib/CCCS/CollegeAlgebra/12.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_2_33.pg b/Contrib/CCCS/CollegeAlgebra/12.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_2_33.pg index 95a1f3bc87..4fcb6bab97 100644 --- a/Contrib/CCCS/CollegeAlgebra/12.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_2_33.pg +++ b/Contrib/CCCS/CollegeAlgebra/12.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_2_33.pg @@ -25,7 +25,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserImplicitPlane.pl", "PGML.pl", @@ -103,7 +103,7 @@ Context("LimitedPoint"); if ( $chooser==1) { Context()->variables->add(y => "Real"); $f = Formula("(x^2)/($a^2)-(y^2)/($b^2)")->reduce; -$foci = List(Point("($c,0)"), Point("(-$c,0)")); +$foci = List(Point("($c,0)"), Point("(-$c,0)")); $vertices= List( Point("($a,0)"),Point("(-$a,0)")); $popup1 = PopUp( ["?","A","B", "C", "D"], "C", @@ -136,19 +136,19 @@ $asymptote = List($posasymptote,$negasymptote) # Main text BEGIN_PGML -Identify the foci, the vertices, and the equations of the asymptotes for the hyperbola. Enter each as a comma separated list. Also, select the correct graph of the equation. +Identify the foci, the vertices, and the equations of the asymptotes for the hyperbola. Enter each as a comma separated list. Also, select the correct graph of the equation. >>[`` [$f]=1 ``]<< -Foci:[___________________________]{$foci} [@ AnswerFormatHelp("points") @]* +Foci:[___________________________]{$foci} [@ helpLink("points") @]* -Vertices: [_____________________]{$vertices} [@ AnswerFormatHelp("points") @]* +Vertices: [_____________________]{$vertices} [@ helpLink("points") @]* -Equations of Asymptotes: [_____________________]{$asymptote} [@ AnswerFormatHelp("equations") @]* +Equations of Asymptotes: [_____________________]{$asymptote} [@ helpLink("equations") @]* -Which of the following graphs represents the graph of [`` [$f]=1 ``]? [_________________]{$popup1} +Which of the following graphs represents the graph of [`` [$f]=1 ``]? [_________________]{$popup1} ->>A. [@ image(insertGraph($gr1), width=>200, height=>200), @]* B. [@ image(insertGraph($gr2), width=>200, height=>200), @]* << +>>A. [@ image(insertGraph($gr1), width=>200, height=>200), @]* B. [@ image(insertGraph($gr2), width=>200, height=>200), @]* << >>C. [@ image(insertGraph($gr3), width=>200, height=>200), @]* D. [@ image(insertGraph($gr4), width=>200, height=>200), @]* << diff --git a/Contrib/CCCS/CollegeAlgebra/12.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_2_34.pg b/Contrib/CCCS/CollegeAlgebra/12.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_2_34.pg index 17434826b5..f2de80ed56 100644 --- a/Contrib/CCCS/CollegeAlgebra/12.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_2_34.pg +++ b/Contrib/CCCS/CollegeAlgebra/12.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_2_34.pg @@ -24,7 +24,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserImplicitPlane.pl", "PGML.pl", @@ -60,7 +60,7 @@ Context("LimitedPoint"); if ( $chooser==1) { Context()->variables->add(y => "Real"); $f = Formula("$a(x^2)-$b(y^2)")->reduce; -$foci = List(Point("($c,0)"), Point("(-$c,0)")); +$foci = List(Point("($c,0)"), Point("(-$c,0)")); $vertices= List( Point("((3*$b)^(1/2),0)"),Point("(-(3*$b)^(1/2),0)")); $hyperbola=Formula("(x^2)/(3*$b)-(y^2)/(3*$a)"); @@ -95,11 +95,11 @@ Identify the foci, the vertices, and the equations of the asymptotes for the hyp >>[`` [$f]=[$d] ``]<< -Foci:[___________________________]{$foci} [@ AnswerFormatHelp("points") @]* +Foci:[___________________________]{$foci} [@ helpLink("points") @]* -Vertices: [_____________________]{$vertices} [@ AnswerFormatHelp("points") @]* +Vertices: [_____________________]{$vertices} [@ helpLink("points") @]* -Equations of Asymptotes: [_____________________]{$asymptote} [@ AnswerFormatHelp("equations") @]* +Equations of Asymptotes: [_____________________]{$asymptote} [@ helpLink("equations") @]* Equation of the hyperbola in standard form: [___________________________]{$hyperbola}`=1` diff --git a/Contrib/CCCS/CollegeAlgebra/12.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_2_35.pg b/Contrib/CCCS/CollegeAlgebra/12.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_2_35.pg index bd4ac345b2..554bd8ea17 100644 --- a/Contrib/CCCS/CollegeAlgebra/12.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_2_35.pg +++ b/Contrib/CCCS/CollegeAlgebra/12.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_2_35.pg @@ -24,7 +24,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserImplicitPlane.pl", "PGML.pl", @@ -60,7 +60,7 @@ Context("LimitedPoint"); if ( $chooser==1) { Context()->variables->add(y => "Real"); $f = Formula("$a(x^2)-$b(y^2)")->reduce; -$foci = List(Point("($c,0)"), Point("(-$c,0)")); +$foci = List(Point("($c,0)"), Point("(-$c,0)")); $vertices= List( Point("((3*$b)^(1/2),0)"),Point("(-(3*$b)^(1/2),0)")); $hyperbola=Formula("(x^2)/(3*$b)-(y^2)/(3*$a)"); @@ -95,11 +95,11 @@ Identify the foci, the vertices, and the equations of the asymptotes for the hyp >>[`` [$f]=[$d] ``]<< -Foci:[___________________________]{$foci} [@ AnswerFormatHelp("points") @]* +Foci:[___________________________]{$foci} [@ helpLink("points") @]* -Vertices: [_____________________]{$vertices} [@ AnswerFormatHelp("points") @]* +Vertices: [_____________________]{$vertices} [@ helpLink("points") @]* -Equations of Asymptotes: [___________________________]{$asymptote} [@ AnswerFormatHelp("equations") @]* +Equations of Asymptotes: [___________________________]{$asymptote} [@ helpLink("equations") @]* Equation of the hyperbola in standard form: [___________________________]{$hyperbola}`=1` diff --git a/Contrib/CCCS/CollegeAlgebra/12.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_3_13.pg b/Contrib/CCCS/CollegeAlgebra/12.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_3_13.pg index dc6d7463e2..1789425d56 100644 --- a/Contrib/CCCS/CollegeAlgebra/12.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_3_13.pg +++ b/Contrib/CCCS/CollegeAlgebra/12.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_3_13.pg @@ -23,7 +23,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "unorderedAnswer.pl", "parserImplicitPlane.pl", @@ -43,8 +43,8 @@ $showPartialCorrectAnswers = 1; Context("Numeric"); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -91,11 +91,11 @@ For the given equation of a parabola, determine the focus, vertex, and directrix >>[`[$f1]=[$f2]`]<< -Focus:[_____________]{$focus} [@ AnswerFormatHelp("points") @]* +Focus:[_____________]{$focus} [@ helpLink("points") @]* -Vertex: [_____________]{$vertex} [@ AnswerFormatHelp("points") @]* +Vertex: [_____________]{$vertex} [@ helpLink("points") @]* -Directrix: [________________________]{$directrix} [@ AnswerFormatHelp("equations")@]* +Directrix: [________________________]{$directrix} [@ helpLink("equations")@]* [$video]* diff --git a/Contrib/CCCS/CollegeAlgebra/12.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_3_15.pg b/Contrib/CCCS/CollegeAlgebra/12.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_3_15.pg index a57d1dbb23..8709349415 100644 --- a/Contrib/CCCS/CollegeAlgebra/12.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_3_15.pg +++ b/Contrib/CCCS/CollegeAlgebra/12.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_3_15.pg @@ -23,7 +23,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "unorderedAnswer.pl", "parserImplicitPlane.pl", @@ -85,11 +85,11 @@ For the given equation of a parabola, determine the focus, vertex, and directrix >>[`[$f1]=[$f2]`]<< -Focus:[_____________]{$focus} [@ AnswerFormatHelp("points") @]* +Focus:[_____________]{$focus} [@ helpLink("points") @]* -Vertex: [_____________]{$vertex} [@ AnswerFormatHelp("points") @]* +Vertex: [_____________]{$vertex} [@ helpLink("points") @]* -Directrix: [________________________]{$directrix} [@ AnswerFormatHelp("equations")@]* +Directrix: [________________________]{$directrix} [@ helpLink("equations")@]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/12.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_3_17.pg b/Contrib/CCCS/CollegeAlgebra/12.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_3_17.pg index 8efc70db74..c67cdf28a0 100644 --- a/Contrib/CCCS/CollegeAlgebra/12.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_3_17.pg +++ b/Contrib/CCCS/CollegeAlgebra/12.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_3_17.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "unorderedAnswer.pl", "parserImplicitPlane.pl", @@ -84,11 +84,11 @@ For the given equation of a parabola, determine the focus, vertex, and directrix >>[`[$f1]=[$f2]`]<< -Focus:[_____________]{$focus} [@ AnswerFormatHelp("points") @]* +Focus:[_____________]{$focus} [@ helpLink("points") @]* -Vertex: [_____________]{$vertex} [@ AnswerFormatHelp("points") @]* +Vertex: [_____________]{$vertex} [@ helpLink("points") @]* -Directrix: [________________________]{$directrix} [@ AnswerFormatHelp("equations")@]* +Directrix: [________________________]{$directrix} [@ helpLink("equations")@]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/12.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_3_19.pg b/Contrib/CCCS/CollegeAlgebra/12.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_3_19.pg index 1b27035096..ee1dfeebc6 100644 --- a/Contrib/CCCS/CollegeAlgebra/12.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_3_19.pg +++ b/Contrib/CCCS/CollegeAlgebra/12.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_3_19.pg @@ -23,7 +23,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "unorderedAnswer.pl", "parserImplicitPlane.pl", @@ -85,11 +85,11 @@ For the given equation of a parabola, determine the focus, vertex, and directrix >>[`[$f1]=[$f2]`]<< -Focus:[_____________]{$focus} [@ AnswerFormatHelp("points") @]* +Focus:[_____________]{$focus} [@ helpLink("points") @]* -Vertex: [_____________]{$vertex} [@ AnswerFormatHelp("points") @]* +Vertex: [_____________]{$vertex} [@ helpLink("points") @]* -Directrix: [________________________]{$directrix} [@ AnswerFormatHelp("equations")@]* +Directrix: [________________________]{$directrix} [@ helpLink("equations")@]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/12.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_3_32.pg b/Contrib/CCCS/CollegeAlgebra/12.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_3_32.pg index ebd372c176..a1aac10d1c 100644 --- a/Contrib/CCCS/CollegeAlgebra/12.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_3_32.pg +++ b/Contrib/CCCS/CollegeAlgebra/12.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_3_32.pg @@ -23,7 +23,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "unorderedAnswer.pl", "parserImplicitPlane.pl", @@ -52,8 +52,8 @@ $ap = Compute("0.0001+$h"); $p=non_zero_random(2,9,1); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -140,15 +140,15 @@ For the given equation of a parabola, determine the focus, vertex, and directrix >>[`[$f1]=[$f2]`]<< -Focus:[_____________]{$focus} [@ AnswerFormatHelp("points") @]* +Focus:[_____________]{$focus} [@ helpLink("points") @]* -Vertex: [_____________]{$vertex} [@ AnswerFormatHelp("points") @]* +Vertex: [_____________]{$vertex} [@ helpLink("points") @]* -Directrix: [________________________]{$directrix} [@ AnswerFormatHelp("equations")@]* +Directrix: [________________________]{$directrix} [@ helpLink("equations")@]* -Which of the following represents the graph of [`` [$f1]=[$f2] ``] [_________________]{$popup1} +Which of the following represents the graph of [`` [$f1]=[$f2] ``] [_________________]{$popup1} ->>A. [@ image(insertGraph($gr1), width=>200, height=>200), @]* B. [@ image(insertGraph($gr2), width=>200, height=>200), @]* << +>>A. [@ image(insertGraph($gr1), width=>200, height=>200), @]* B. [@ image(insertGraph($gr2), width=>200, height=>200), @]* << >>C. [@ image(insertGraph($gr3), width=>200, height=>200), @]* D. [@ image(insertGraph($gr4), width=>200, height=>200), @]* << diff --git a/Contrib/CCCS/CollegeAlgebra/12.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_3_34.pg b/Contrib/CCCS/CollegeAlgebra/12.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_3_34.pg index f3b29f1443..849ddf6858 100644 --- a/Contrib/CCCS/CollegeAlgebra/12.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_3_34.pg +++ b/Contrib/CCCS/CollegeAlgebra/12.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_3_34.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "unorderedAnswer.pl", "parserImplicitPlane.pl", @@ -132,15 +132,15 @@ For the given equation of a parabola, determine the focus, vertex, and directrix >>[`[$f1]=[$f2]`]<< -Focus:[_____________]{$focus} [@ AnswerFormatHelp("points") @]* +Focus:[_____________]{$focus} [@ helpLink("points") @]* -Vertex: [_____________]{$vertex} [@ AnswerFormatHelp("points") @]* +Vertex: [_____________]{$vertex} [@ helpLink("points") @]* -Directrix: [________________________]{$directrix} [@ AnswerFormatHelp("equations")@]* +Directrix: [________________________]{$directrix} [@ helpLink("equations")@]* -Which of the following represents the graph of [`` [$f1]=[$f2] ``] [_________________]{$popup1} +Which of the following represents the graph of [`` [$f1]=[$f2] ``] [_________________]{$popup1} ->>A. [@ image(insertGraph($gr1), width=>200, height=>200), @]* B. [@ image(insertGraph($gr2), width=>200, height=>200), @]* << +>>A. [@ image(insertGraph($gr1), width=>200, height=>200), @]* B. [@ image(insertGraph($gr2), width=>200, height=>200), @]* << >>C. [@ image(insertGraph($gr3), width=>200, height=>200), @]* D. [@ image(insertGraph($gr4), width=>200, height=>200), @]* << diff --git a/Contrib/CCCS/CollegeAlgebra/12.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_3_38.pg b/Contrib/CCCS/CollegeAlgebra/12.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_3_38.pg index 663b9cbbff..ed9b81364b 100644 --- a/Contrib/CCCS/CollegeAlgebra/12.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_3_38.pg +++ b/Contrib/CCCS/CollegeAlgebra/12.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_3_38.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "unorderedAnswer.pl", "parserImplicitPlane.pl", @@ -51,7 +51,7 @@ if ( $chooser==1) { $b = random(2,6,2); do { $c = random(2,6,2); } until ( $c != $b ); -$d = random(10,14,2); +$d = random(10,14,2); $h = Compute("$b/2"); $k = Compute("(-$d+(($b^2)/(4)))/(-$c)"); @@ -125,7 +125,7 @@ else { $b = random(2,6,2); do { $c = random(2,6,2); } until ( $c != $b ); -$d = random(10,14,2); +$d = random(10,14,2); $h = Compute("(-$d+(($b^2)/(4)))/(-$c)"); @@ -198,15 +198,15 @@ For the given equation of a parabola, determine the focus, vertex, and directrix >>[`[$f1]=[$f2]`]<< -Focus:[_____________]{$focus} [@ AnswerFormatHelp("points") @]* +Focus:[_____________]{$focus} [@ helpLink("points") @]* -Vertex: [_____________]{$vertex} [@ AnswerFormatHelp("points") @]* +Vertex: [_____________]{$vertex} [@ helpLink("points") @]* -Directrix: [________________________]{$directrix} [@ AnswerFormatHelp("equations")@]* +Directrix: [________________________]{$directrix} [@ helpLink("equations")@]* -Which of the following represents the graph of [`` [$f1]=[$f2] ``] [_________________]{$popup1} +Which of the following represents the graph of [`` [$f1]=[$f2] ``] [_________________]{$popup1} ->>A. [@ image(insertGraph($gr1), width=>200, height=>200), @]* B. [@ image(insertGraph($gr2), width=>200, height=>200), @]* << +>>A. [@ image(insertGraph($gr1), width=>200, height=>200), @]* B. [@ image(insertGraph($gr2), width=>200, height=>200), @]* << >>C. [@ image(insertGraph($gr3), width=>200, height=>200), @]* D. [@ image(insertGraph($gr4), width=>200, height=>200), @]* << diff --git a/Contrib/CCCS/CollegeAlgebra/12.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_3_39.pg b/Contrib/CCCS/CollegeAlgebra/12.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_3_39.pg index d7ce4e5fc1..6a6b778a29 100644 --- a/Contrib/CCCS/CollegeAlgebra/12.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_3_39.pg +++ b/Contrib/CCCS/CollegeAlgebra/12.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_3_39.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "unorderedAnswer.pl", "parserImplicitPlane.pl", @@ -51,7 +51,7 @@ if ( $chooser==1) { $b = random(2,6,2); do { $c = random(2,6,2); } until ( $c != $b ); -$d = random(10,14,2); +$d = random(10,14,2); $h = Compute("$b/2"); $k = Compute("(-$d+(($b^2)/(4)))/(-$c)"); @@ -125,7 +125,7 @@ else { $b = random(2,6,2); do { $c = random(2,6,2); } until ( $c != $b ); -$d = random(10,14,2); +$d = random(10,14,2); $h = Compute("(-$d+(($b^2)/(4)))/(-$c)"); @@ -198,15 +198,15 @@ For the given equation of a parabola, determine the focus, vertex, and directrix >>[`[$f1]=[$f2]`]<< -Focus:[_____________]{$focus} [@ AnswerFormatHelp("points") @]* +Focus:[_____________]{$focus} [@ helpLink("points") @]* -Vertex: [_____________]{$vertex} [@ AnswerFormatHelp("points") @]* +Vertex: [_____________]{$vertex} [@ helpLink("points") @]* -Directrix: [________________________]{$directrix} [@ AnswerFormatHelp("equations")@]* +Directrix: [________________________]{$directrix} [@ helpLink("equations")@]* -Which of the following represents the graph of [`` [$f1]=[$f2] ``] [_________________]{$popup1} +Which of the following represents the graph of [`` [$f1]=[$f2] ``] [_________________]{$popup1} ->>A. [@ image(insertGraph($gr1), width=>200, height=>200), @]* B. [@ image(insertGraph($gr2), width=>200, height=>200), @]* << +>>A. [@ image(insertGraph($gr1), width=>200, height=>200), @]* B. [@ image(insertGraph($gr2), width=>200, height=>200), @]* << >>C. [@ image(insertGraph($gr3), width=>200, height=>200), @]* D. [@ image(insertGraph($gr4), width=>200, height=>200), @]* << diff --git a/Contrib/CCCS/CollegeAlgebra/12.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_4_6.pg b/Contrib/CCCS/CollegeAlgebra/12.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_4_6.pg index 9d6490daa0..81d1c79f1e 100644 --- a/Contrib/CCCS/CollegeAlgebra/12.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_4_6.pg +++ b/Contrib/CCCS/CollegeAlgebra/12.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_4_6.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "PGchoicemacros.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", @@ -64,17 +64,17 @@ $circle = RadioButtons( $parabola = RadioButtons( ["circle","parabola","ellipse","hyperbola"], - "parabola" + "parabola" ); $ellipse = RadioButtons( ["circle","parabola","ellipse","hyperbola"], - "ellipse" + "ellipse" ); $hyperbola = RadioButtons( ["circle","parabola","ellipse","hyperbola"], - "hyperbola" + "hyperbola" ); # Main text @@ -89,39 +89,39 @@ Determine which of the conic sections is represented based on the given equation + [`[$f1]=0`] - [_______________]{$ellipse} + [_______________]{$ellipse} + [`[$f2]=0`] - - [_______________]{$parabola} + + [_______________]{$parabola} + ++ [`[$f3]=0`] -+ [`[$f3]=0`] - - [_______________]{$hyperbola} + [_______________]{$hyperbola} -+ [`[$f4]=0`] ++ [`[$f4]=0`] - - [_______________]{$circle} + + [_______________]{$circle} + [`[$f5]=0`] - - [_______________]{$parabola} + + [_______________]{$parabola} @@ -137,41 +137,41 @@ BEGIN_PGML Determine which of the conic sections is represented based on the given equation. -+ [`[$f4]=0`] ++ [`[$f4]=0`] - - [_______________]{$circle} + + [_______________]{$circle} + [`[$f1]=0`] - [_______________]{$ellipse} + [_______________]{$ellipse} + ++ [`[$f3]=0`] -+ [`[$f3]=0`] - - [_______________]{$hyperbola} + [_______________]{$hyperbola} + [`[$f2]=0`] - - [_______________]{$parabola} + + [_______________]{$parabola} + [`[$f5]=0`] - - [_______________]{$parabola} + + [_______________]{$parabola} END_PGML @@ -185,39 +185,39 @@ Determine which of the conic sections is represented based on the given equation + [`[$f5]=0`] - - [_______________]{$parabola} + [_______________]{$parabola} -+ [`[$f4]=0`] - - [_______________]{$circle} ++ [`[$f4]=0`] + [_______________]{$circle} -+ [`[$f3]=0`] - - [_______________]{$hyperbola} + ++ [`[$f3]=0`] + + + [_______________]{$hyperbola} + [`[$f2]=0`] - - [_______________]{$parabola} + + [_______________]{$parabola} + [`[$f1]=0`] - [_______________]{$ellipse} + [_______________]{$ellipse} END_PGML @@ -232,41 +232,41 @@ BEGIN_PGML Determine which of the conic sections is represented based on the given equation. -+ [`[$f4]=0`] ++ [`[$f4]=0`] - - [_______________]{$circle} + + [_______________]{$circle} + [`[$f1]=0`] - [_______________]{$ellipse} + [_______________]{$ellipse} + ++ [`[$f3]=0`] -+ [`[$f3]=0`] - - [_______________]{$hyperbola} + [_______________]{$hyperbola} + [`[$f5]=0`] - - [_______________]{$parabola} + + [_______________]{$parabola} + [`[$f2]=0`] - - [_______________]{$parabola} + + [_______________]{$parabola} END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/12.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_4_8.pg b/Contrib/CCCS/CollegeAlgebra/12.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_4_8.pg index 98e59fd2e9..3991373d27 100644 --- a/Contrib/CCCS/CollegeAlgebra/12.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_4_8.pg +++ b/Contrib/CCCS/CollegeAlgebra/12.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_12_4_8.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "PGchoicemacros.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", @@ -63,17 +63,17 @@ $circle = RadioButtons( $parabola = RadioButtons( ["circle","parabola","ellipse","hyperbola"], - "parabola" + "parabola" ); $ellipse = RadioButtons( ["circle","parabola","ellipse","hyperbola"], - "ellipse" + "ellipse" ); $hyperbola = RadioButtons( ["circle","parabola","ellipse","hyperbola"], - "hyperbola" + "hyperbola" ); # Main text @@ -88,39 +88,39 @@ Determine which of the conic sections is represented based on the given equation + [`[$f1]=0`] - [_______________]{$ellipse} + [_______________]{$ellipse} + [`[$f2]=0`] - - [_______________]{$parabola} + + [_______________]{$parabola} + ++ [`[$f3]=0`] -+ [`[$f3]=0`] - - [_______________]{$hyperbola} + [_______________]{$hyperbola} -+ [`[$f4]=0`] ++ [`[$f4]=0`] - - [_______________]{$circle} + + [_______________]{$circle} + [`[$f5]=0`] - - [_______________]{$parabola} + + [_______________]{$parabola} @@ -136,41 +136,41 @@ BEGIN_PGML Determine which of the conic sections is represented based on the given equation. -+ [`[$f4]=0`] ++ [`[$f4]=0`] - - [_______________]{$circle} + + [_______________]{$circle} + [`[$f1]=0`] - [_______________]{$ellipse} + [_______________]{$ellipse} + ++ [`[$f3]=0`] -+ [`[$f3]=0`] - - [_______________]{$hyperbola} + [_______________]{$hyperbola} + [`[$f2]=0`] - - [_______________]{$parabola} + + [_______________]{$parabola} + [`[$f5]=0`] - - [_______________]{$parabola} + + [_______________]{$parabola} END_PGML @@ -184,39 +184,39 @@ Determine which of the conic sections is represented based on the given equation + [`[$f5]=0`] - - [_______________]{$parabola} + [_______________]{$parabola} -+ [`[$f4]=0`] - - [_______________]{$circle} ++ [`[$f4]=0`] + [_______________]{$circle} -+ [`[$f3]=0`] - - [_______________]{$hyperbola} + ++ [`[$f3]=0`] + + + [_______________]{$hyperbola} + [`[$f2]=0`] - - [_______________]{$parabola} + + [_______________]{$parabola} + [`[$f1]=0`] - [_______________]{$ellipse} + [_______________]{$ellipse} END_PGML @@ -231,41 +231,41 @@ BEGIN_PGML Determine which of the conic sections is represented based on the given equation. -+ [`[$f4]=0`] ++ [`[$f4]=0`] - - [_______________]{$circle} + + [_______________]{$circle} + [`[$f1]=0`] - [_______________]{$ellipse} + [_______________]{$ellipse} + ++ [`[$f3]=0`] -+ [`[$f3]=0`] - - [_______________]{$hyperbola} + [_______________]{$hyperbola} + [`[$f5]=0`] - - [_______________]{$parabola} + + [_______________]{$parabola} + [`[$f2]=0`] - - [_______________]{$parabola} + + [_______________]{$parabola} END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_13.pg b/Contrib/CCCS/CollegeAlgebra/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_13.pg index cb3d24ff6d..9c8e3ff30f 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_13.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_13.pg @@ -1,7 +1,7 @@ ## DESCRIPTION ## College Algebra, solving for y as a function of x ## ENDDESCRIPTION - + ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) @@ -11,74 +11,74 @@ ## Author(Brenda Forland; Edit: James Morski, 5/19/2017) ## MO(1) ## KEYWORDS('college algebra', 'y as a function of x') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", "parserAssignment.pl", "parserImplicitEquation.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); - + TEXT(beginproblem()); - + $showPartialCorrectAnswers = 1; - + ########################## # Setup - - + + Context("Numeric"); Context()->noreduce('(-x)-y','(-x)+y'); Context()->variables->add(y => 'Real'); - + $a=random(2,10); $b=random(1,10); $c=random(1,10); - - + + $f = Formula("$a*x")->reduce; $g = Formula("$c-$b*y")->reduce; - + $frac1=Compute("$a/$b"); $frac2=Compute("$c/$b"); - - + + $ans = Formula("-$frac1*x+$frac2"); - - + + ################################# # Main text - - + + BEGIN_PGML -Solve the equation [` [$f]=[$g] `] for [` y `] in terms of [`x`]. - -[`y=`] [_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* - - - +Solve the equation [` [$f]=[$g] `] for [` y `] in terms of [`x`]. + +[`y=`] [_______________]{$ans} [@ helpLink("formulas") @]* + + + END_PGML - - - + + + ################################# - + # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/CollegeAlgebra/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_17.pg b/Contrib/CCCS/CollegeAlgebra/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_17.pg index 9d32738c3e..0060420468 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_17.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_17.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "contextLimitedPowers.pl", "PGML.pl", @@ -48,8 +48,8 @@ Context("Numeric"); $ans=Compute(sqrt(($a-$c)**2+($b-$d)**2)); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -61,7 +61,7 @@ TeX => BEGIN_PGML Find the distance between [` [$pt1] `] and [` [$pt2] `]. Enter the distance as a radical or a decimal rounded to three decimal places. - [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* + [_______________]{$ans} [@ helpLink("numbers") @]* [$video]* diff --git a/Contrib/CCCS/CollegeAlgebra/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_19.pg b/Contrib/CCCS/CollegeAlgebra/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_19.pg index 6bfde52ec7..bbfff78111 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_19.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_19.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -56,7 +56,7 @@ $ans=Compute(sqrt(($a-$c)**2+($b-$d)**2)); BEGIN_PGML Find the distance between [` [$pt1] `] and [` [$pt2] `]. Enter the distance as a radical or a decimal rounded to three decimal places. -[_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CollegeAlgebra/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_23.pg b/Contrib/CCCS/CollegeAlgebra/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_23.pg index 358bacb102..e40231c710 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_23.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_23.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -45,8 +45,8 @@ $pt2=Point("($c,$d)"); $midpt = List( Point("(($a+$c)/2,($b+$d)/2)")); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -56,12 +56,12 @@ TeX => # Main text BEGIN_PGML -Find the coordinates of the midpoint of the line segment that joins the two points [` [$pt1] `] and [` [$pt2] `]. +Find the coordinates of the midpoint of the line segment that joins the two points [` [$pt1] `] and [` [$pt2] `]. Enter a point as [` (a,b) `], -including the parentheses. +including the parentheses. -midpoint: [_______________]{$midpt} [@ AnswerFormatHelp("points") @]* +midpoint: [_______________]{$midpt} [@ helpLink("points") @]* [$video]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_25.pg b/Contrib/CCCS/CollegeAlgebra/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_25.pg index 25f2e9023c..dc303487e9 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_25.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_25.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -49,11 +49,11 @@ $midpt = List( Point("(($a+$c)/2,($b+$d)/2)")); # Main text BEGIN_PGML -Find the coordinates of the midpoint of the line segment that joins the two points [` [$pt1] `] and [` [$pt2] `]. +Find the coordinates of the midpoint of the line segment that joins the two points [` [$pt1] `] and [` [$pt2] `]. -Enter a point as [` (a,b) `], including the parentheses. +Enter a point as [` (a,b) `], including the parentheses. -midpoint: [_______________]{$midpt} [@ AnswerFormatHelp("points") @]* +midpoint: [_______________]{$midpt} [@ helpLink("points") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_27.pg b/Contrib/CCCS/CollegeAlgebra/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_27.pg index 540f7589dd..8eee91a6c0 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_27.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_27.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -40,11 +40,11 @@ $origin = List( Point("(0,0)")); # Main text BEGIN_PGML -What are the coordinates of the origin? +What are the coordinates of the origin? -Enter a point as [` (a,b) `], including the parentheses. +Enter a point as [` (a,b) `], including the parentheses. - [_______________]{$origin} [@ AnswerFormatHelp("points") @]* + [_______________]{$origin} [@ helpLink("points") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_28.pg b/Contrib/CCCS/CollegeAlgebra/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_28.pg index da0eb1284f..a908e4c84e 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_28.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_28.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -43,7 +43,7 @@ $ans=Compute(0); BEGIN_PGML If a point is located on the y-axis, what is the x-coordinate? - [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* + [_______________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CollegeAlgebra/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_29.pg b/Contrib/CCCS/CollegeAlgebra/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_29.pg index 16465330c1..c739a2e023 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_29.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_29.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -42,7 +42,7 @@ $ans=Compute(0); BEGIN_PGML If a point is located on the x-axis, what is the y-coordinate? -[_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_30.pg b/Contrib/CCCS/CollegeAlgebra/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_30.pg index bbbd611dfe..6f69e4aeac 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_30.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_30.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserPopUp.pl", "PGML.pl", @@ -87,8 +87,8 @@ $popup3 = PopUp( ); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -102,7 +102,7 @@ BEGIN_TEXT Match the following points A, B, and C with their coordinates. $BR $BR -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>400,height=>400,tex_size=>800 ) \} $BR (Click on graph to enlarge) diff --git a/Contrib/CCCS/CollegeAlgebra/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_34.pg b/Contrib/CCCS/CollegeAlgebra/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_34.pg index cc3d8dcc22..1b609cb5c8 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_34.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_34.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "PGchoicemacros.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserPopUp.pl", "PGML.pl", @@ -105,21 +105,21 @@ BEGIN_PGML Name the quadrant, or axis, in which the following points are located. -1. ([$a],[$b]): [_________________]{$popup1} +1. ([$a],[$b]): [_________________]{$popup1} -2. ([$c],[$d]): [_________________]{$popup2} +2. ([$c],[$d]): [_________________]{$popup2} -3. ([$e],[$f]): [_________________]{$popup3} +3. ([$e],[$f]): [_________________]{$popup3} -4. ([$g],[$h]): [_________________]{$popup4} +4. ([$g],[$h]): [_________________]{$popup4} -5. ([$j],[$i]): [_________________]{$popup5} +5. ([$j],[$i]): [_________________]{$popup5} -6. ([$j],[$g]): [_________________]{$popup6} +6. ([$j],[$g]): [_________________]{$popup6} -7. ([$m],[$n]): [_________________]{$popup7} +7. ([$m],[$n]): [_________________]{$popup7} -8. ([$o],[$p]): [_________________]{$popup8} +8. ([$o],[$p]): [_________________]{$popup8} END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_43.pg b/Contrib/CCCS/CollegeAlgebra/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_43.pg index 32d26827dd..648eeb27e9 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_43.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_43.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGgraphmacros.pl", "PGstandard.pl", -"AnswerFormatHelp.pl", + "MathObjects.pl", "contextLimitedPoint.pl", "PGML.pl", @@ -91,7 +91,7 @@ BEGIN_PGML Find the distance between the two endpoints for the line segment shown in the graph. Enter the distance as a radical or a decimal rounded to four decimal places. -[_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CollegeAlgebra/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_44.pg b/Contrib/CCCS/CollegeAlgebra/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_44.pg index a1dd3a1b0b..9762c27665 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_44.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_44.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGgraphmacros.pl", "PGstandard.pl", -"AnswerFormatHelp.pl", + "MathObjects.pl", "contextLimitedPoint.pl", "PGML.pl", @@ -80,10 +80,10 @@ BEGIN_PGML -Find the midpoint between the two endpoints for the line segment shown in the graph. Enter a point as [` (a,b) `], +Find the midpoint between the two endpoints for the line segment shown in the graph. Enter a point as [` (a,b) `], including the parentheses. -[_______________]{$midpt} [@ AnswerFormatHelp("points") @]* +[_______________]{$midpt} [@ helpLink("points") @]* diff --git a/Contrib/CCCS/CollegeAlgebra/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_45.pg b/Contrib/CCCS/CollegeAlgebra/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_45.pg index 87833569ff..d4721584bf 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_45.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_45.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGgraphmacros.pl", "PGstandard.pl", -"AnswerFormatHelp.pl", + "MathObjects.pl", "contextLimitedPoint.pl", "PGML.pl", @@ -79,7 +79,7 @@ BEGIN_PGML Find the distance between the point [` [$pt1] `] and the origin. Enter the distance as a radical or a decimal rounded to four decimal places. -[_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CollegeAlgebra/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_5.pg b/Contrib/CCCS/CollegeAlgebra/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_5.pg index 3c353127e0..f538a4efaf 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_5.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_5.pg @@ -21,9 +21,9 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", - "contextFraction.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", ); @@ -34,25 +34,25 @@ $showPartialCorrectAnswers = 1; ########################### # Setup - + $a=random(1,13); $b=random(1,5); - + Context("Numeric"); - + $frac=Compute("$b/$a"); - + $f = Compute("-$a*x+$b"); - + Context("Point"); - + $xint = List( Point("($frac,0)")); - + $yint = List( Point("(0,$b)") ); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -63,13 +63,13 @@ TeX => BEGIN_PGML Find the x-intercept and y-intercept -of [` y = [$f] `]. +of [` y = [$f] `]. Enter a point as [` (a,b) `], -including the parentheses. +including the parentheses. -x-intercept: [__________________]{$xint} [@ AnswerFormatHelp("points") @]* -y-intercept: [__________________]{$yint} [@ AnswerFormatHelp("points") @]* +x-intercept: [__________________]{$xint} [@ helpLink("points") @]* +y-intercept: [__________________]{$yint} [@ helpLink("points") @]* [$video]* diff --git a/Contrib/CCCS/CollegeAlgebra/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_54.pg b/Contrib/CCCS/CollegeAlgebra/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_54.pg index fca7bb063e..a433e230b4 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_54.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_54.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGgraphmacros.pl", "PGstandard.pl", -"AnswerFormatHelp.pl", + "MathObjects.pl", "contextLimitedPoint.pl", "PGML.pl", @@ -56,11 +56,11 @@ BEGIN_PGML A man drove [` [$a] `] miles directly east from his home, made a left turn at an intersection, and then traveled [` [$b] `] miles due north to his place of work. If a road was made directly from his home to his place of work, what would its distance be? -[_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans1} [@ helpLink("numbers") @]* If the road was made as described above, how much shorter would the man's one-way trip be every day? -[_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans2} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_9.pg b/Contrib/CCCS/CollegeAlgebra/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_9.pg index fe53d3846e..eef4408a67 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_9.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_9.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserImplicitEquation.pl", "PGML.pl", @@ -59,15 +59,15 @@ $yint = List( Point("(0,$c/$b)") ); Context()->texStrings; BEGIN_PGML Enter the x-intercept(s) and y-intercept(s) -of [` [$f]=[$g] `]. +of [` [$f]=[$g] `]. Enter a point as [` (a,b) `], -including the parentheses. If there is more -than one correct answer, enter a comma +including the parentheses. If there is more +than one correct answer, enter a comma separated list of points. -x-intercept(s): [_______________]{$xint} [@ AnswerFormatHelp("points") @]* -y-intercept(s): [_______________]{$yint} [@ AnswerFormatHelp("points") @]* +x-intercept(s): [_______________]{$xint} [@ helpLink("points") @]* +y-intercept(s): [_______________]{$yint} [@ helpLink("points") @]* diff --git a/Contrib/CCCS/CollegeAlgebra/2.1/RRCC_CCCS_Circles_1.pg b/Contrib/CCCS/CollegeAlgebra/2.1/RRCC_CCCS_Circles_1.pg index ccbafd5c1a..c376231c5b 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.1/RRCC_CCCS_Circles_1.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.1/RRCC_CCCS_Circles_1.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -52,12 +52,12 @@ $cen = Point("($h,$k)"); # Main text BEGIN_PGML -Find the center and radius of the following circle. Enter the center as an ordered pair. +Find the center and radius of the following circle. Enter the center as an ordered pair. >>[`` [$f]=[$r2] ``]<< -+ center: [______]{$cen} [@ AnswerFormatHelp("points") @]* ++ center: [______]{$cen} [@ helpLink("points") @]* -+ radius: [___]{$r} [@ AnswerFormatHelp("numbers") @]* ++ radius: [___]{$r} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/2.1/RRCC_CCCS_Circles_2.pg b/Contrib/CCCS/CollegeAlgebra/2.1/RRCC_CCCS_Circles_2.pg index 6b5c69b683..90d93458d1 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.1/RRCC_CCCS_Circles_2.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.1/RRCC_CCCS_Circles_2.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -51,12 +51,12 @@ $cen = Point("(0,$k)"); # Main text BEGIN_PGML -Find the center and radius of the following circle. Enter the center as an ordered pair. +Find the center and radius of the following circle. Enter the center as an ordered pair. >>[`` [$f]=[$r2] ``]<< -+ center: [______]{$cen} [@ AnswerFormatHelp("points") @]* ++ center: [______]{$cen} [@ helpLink("points") @]* -+ radius: [___]{$r} [@ AnswerFormatHelp("numbers") @]* ++ radius: [___]{$r} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/2.1/RRCC_CCCS_Circles_3.pg b/Contrib/CCCS/CollegeAlgebra/2.1/RRCC_CCCS_Circles_3.pg index 353c3674cb..02b96d1c6e 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.1/RRCC_CCCS_Circles_3.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.1/RRCC_CCCS_Circles_3.pg @@ -2,7 +2,7 @@ ## College Algebra ## ENDDESCRIPTION - + ## DBsubject(Algebra) ## DBchapter(Cartesian coordinate system) ## DBsection(Circles) @@ -12,7 +12,7 @@ ## MO(1) ## KEYWORDS('college algebra') - + ########################### # Initialization @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -47,23 +47,23 @@ $r2 = ($r)**2; # The two sides of the correct answer $ans1=Formula("(x-$h)^2+(y-$k)^2")->reduce; $ans2=Formula("$r2"); - + ########################### # Main text BEGIN_PGML -Find the equation for the circle with center [` ([$h],[$k]) `] and radius of length [` [$r] `]. - - [____________][`=`] [__________] [@ AnswerFormatHelp("numbers") @]* +Find the equation for the circle with center [` ([$h],[$k]) `] and radius of length [` [$r] `]. + + [____________][`=`] [__________] [@ helpLink("numbers") @]* END_PGML - - + + ############################ #Answers @@ -71,9 +71,9 @@ $showPartialCorrectAnswers = 0; install_problem_grader(~~&std_problem_grader); -UNORDERED_ANS( -$ans1->cmp(), -$ans2->cmp(), +UNORDERED_ANS( +$ans1->cmp(), +$ans2->cmp(), ); # Solution diff --git a/Contrib/CCCS/CollegeAlgebra/2.1/RRCC_CCCS_Circles_4.pg b/Contrib/CCCS/CollegeAlgebra/2.1/RRCC_CCCS_Circles_4.pg index 68332e5b32..2a34898143 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.1/RRCC_CCCS_Circles_4.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.1/RRCC_CCCS_Circles_4.pg @@ -2,7 +2,7 @@ ## College Algebra ## ENDDESCRIPTION - + ## DBsubject(Algebra) ## DBchapter(Cartesian coordinate system) ## DBsection(Circles) @@ -12,7 +12,7 @@ ## MO(1) ## KEYWORDS('college algebra') - + ########################### # Initialization @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "unorderedAnswer.pl", @@ -47,24 +47,24 @@ $r2 = ($r/2)**2; $ans1=Formula("(x-$h)^2+(y-$k)^2")->reduce; $ans2=Formula("$r2"); - - + + ########################### # Main text BEGIN_PGML -Find the equation for the circle with center [` ([$h],[$k]) `] and diameter of length [` [$r] `]. - - [______________] [`=`] [____________] [@ AnswerFormatHelp("numbers") @]* +Find the equation for the circle with center [` ([$h],[$k]) `] and diameter of length [` [$r] `]. + + [______________] [`=`] [____________] [@ helpLink("numbers") @]* END_PGML - - + + ############################ #Answers @@ -72,9 +72,9 @@ $showPartialCorrectAnswers = 0; install_problem_grader(~~&std_problem_grader); -UNORDERED_ANS( -$ans1->cmp(), -$ans2->cmp(), +UNORDERED_ANS( +$ans1->cmp(), +$ans2->cmp(), ); diff --git a/Contrib/CCCS/CollegeAlgebra/2.1/RRCC_CCCS_Circles_5.pg b/Contrib/CCCS/CollegeAlgebra/2.1/RRCC_CCCS_Circles_5.pg index 2b385d12ba..c72e63c6d1 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.1/RRCC_CCCS_Circles_5.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.1/RRCC_CCCS_Circles_5.pg @@ -6,17 +6,17 @@ ## Author(Brenda Forland; EDIT: James Morski 8/30/17) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -24,10 +24,10 @@ loadMacros( "PGML.pl", "PGcourse.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -45,26 +45,26 @@ $r2 = Compute("($a-$h)**2+($b-$k)**2"); # The two sides of the correct answer $ans1=Formula("(x-$h)^2+(y-$k)^2")->reduce; $ans2=Formula("$r2"); - - - + + + ########################### # Main text - + BEGIN_PGML -Find the equation for the circle with center [` ([$h],[$k]) `] and and passes through [` ([$a],[$b]) `]. - - [_______________] [`=`] [_____________][@ AnswerFormatHelp("numbers") @]* - +Find the equation for the circle with center [` ([$h],[$k]) `] and and passes through [` ([$a],[$b]) `]. + + [_______________] [`=`] [_____________][@ helpLink("numbers") @]* + + - END_PGML - - - + + + ############################ #Answers @@ -72,20 +72,20 @@ $showPartialCorrectAnswers = 0; install_problem_grader(~~&std_problem_grader); -UNORDERED_ANS( -$ans1->cmp(), -$ans2->cmp(), +UNORDERED_ANS( +$ans1->cmp(), +$ans2->cmp(), ); # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); diff --git a/Contrib/CCCS/CollegeAlgebra/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_10.pg b/Contrib/CCCS/CollegeAlgebra/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_10.pg index 0a46471a5b..3747f9d0d7 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_10.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_10.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -46,8 +46,8 @@ $sign = random(1,2); # sign of constant on RHS $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -61,11 +61,11 @@ if ($sign == 1) { $solution = Fraction(-$d*$a - $b*$e, $c*$b); BEGIN_PGML -Solve the following equation for [`x`]: +Solve the following equation for [`x`]: [``- \dfrac{[$a]}{[$b]} - \dfrac{[$c]}{[$d]}x = \dfrac{[$e]}{[$d]}``] -` x =` [_______________]{$solution} [@ AnswerFormatHelp("numbers") @]* +` x =` [_______________]{$solution} [@ helpLink("numbers") @]* [$video]* END_PGML @@ -82,11 +82,11 @@ else { $solution = Fraction(-$d*$a + $b*$e, $c*$b); BEGIN_PGML -Solve the following equation for [`x`]: +Solve the following equation for [`x`]: [``- \dfrac{[$a]}{[$b]} - \dfrac{[$c]}{[$d]}x = -\dfrac{[$e]}{[$d]}``] -`x =` [_______________]{$solution} [@ AnswerFormatHelp("numbers") @]* +`x =` [_______________]{$solution} [@ helpLink("numbers") @]* [$video]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_36.pg b/Contrib/CCCS/CollegeAlgebra/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_36.pg index 3198df82f5..5e34fc988d 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_36.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_36.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -36,7 +36,7 @@ $showPartialCorrectAnswers = 1; $a=non_zero_random(1,3); # choose parallel, perpendicular, or neither as answer -# used to generate slopes +# used to generate slopes $b=list_random(3,5,7,9); $c=list_random(2,4,6,8); @@ -48,8 +48,8 @@ do { $e = random(2,9); } until ($e != $d); $f = random(2,4); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -70,11 +70,11 @@ if ($a == 1) { # parallel lines BEGIN_PGML -Describe the following pair of lines as parallel, perpendicular, or neither. +Describe the following pair of lines as parallel, perpendicular, or neither. [`` y = \dfrac{{[$b]}}{{[$c]}} x + {[$d]} \\ y = \dfrac{{[$b*$f]}}{{[$c*$f]}} x - {[$e]} ``] -[_______________]{$radio} +[_______________]{$radio} [$video]* @@ -96,12 +96,12 @@ END_TEXT BEGIN_PGML -Describe the following pair of lines as parallel, perpendicular, or neither. +Describe the following pair of lines as parallel, perpendicular, or neither. [`` y = \dfrac{{[$c*$f]}}{{[$b*$f]}} x + {[$d]} \\ y = - \dfrac{{[$b]}}{{[$c]}} x - {[$e]} ``] -[_______________]{$radio} +[_______________]{$radio} [$video]* @@ -124,11 +124,11 @@ END_TEXT BEGIN_PGML -Describe the following pair of lines as parallel, perpendicular, or neither. +Describe the following pair of lines as parallel, perpendicular, or neither. [`` y = \dfrac{{[$c*$f]}}{{[$b*$f]}} x + {[$d]} \\ y = - \dfrac{{[$c]}}{{[$b]}} x - {[$e]} ``] -[_______________]{$radio} +[_______________]{$radio} [$video]* diff --git a/Contrib/CCCS/CollegeAlgebra/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_36b.pg b/Contrib/CCCS/CollegeAlgebra/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_36b.pg index db9382c0e8..94a02adb29 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_36b.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_36b.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -36,7 +36,7 @@ $showPartialCorrectAnswers = 1; $a=non_zero_random(1,3); # choose parallel, perpendicular, or neither as answer -# used to generate slopes +# used to generate slopes $b=list_random(3,5,7,9); $c=list_random(2,4,6,8); @@ -60,11 +60,11 @@ if ($a == 1) { # parallel lines BEGIN_PGML -Describe the following pair of lines as parallel, perpendicular, or neither. +Describe the following pair of lines as parallel, perpendicular, or neither. [``{[$b*$f]} x - {[$c*$f]} y = \dfrac{{[$d]}}{{[$e]}} \\ -{[$b]} x + {[$c]} y = -\dfrac{{[$e]}}{{[$d]}} ``] -[_______________]{$radio} +[_______________]{$radio} END_PGML @@ -76,11 +76,11 @@ END_PGML BEGIN_PGML -Describe the following pair of lines as parallel, perpendicular, or neither. +Describe the following pair of lines as parallel, perpendicular, or neither. [``-{[$b*$f]} x - {[$c*$f]} y = \dfrac{{[$d]}}{{[$e]}} \\ -{[$c]} x + {[$b]} y = \dfrac{{[$d]}}{{[$e]}} ``] -[_______________]{$radio} +[_______________]{$radio} @@ -94,11 +94,11 @@ END_PGML BEGIN_PGML -Describe the following pair of lines as parallel, perpendicular, or neither. +Describe the following pair of lines as parallel, perpendicular, or neither. [``{[$b*$f]} x + {[$c*$f]} y = \dfrac{{[$d]}}{{[$e]}} \\ -{[$b]} x + {[$c]} y = -\dfrac{{[$e]}}{{[$d]}} ``] -[_______________]{$radio} +[_______________]{$radio} END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_36c.pg b/Contrib/CCCS/CollegeAlgebra/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_36c.pg index 1fafdb31ff..b4ef73e4e5 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_36c.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_36c.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserImplicitEquation.pl", "PGML.pl", @@ -60,11 +60,11 @@ $radio = RadioButtons( BEGIN_PGML -Describe the following pair of lines as parallel, perpendicular, or neither. +Describe the following pair of lines as parallel, perpendicular, or neither. [`` [$f]=[$g] \\ [$h]=[$i] ``] -[_______________]{$radio} +[_______________]{$radio} END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_36d.pg b/Contrib/CCCS/CollegeAlgebra/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_36d.pg index 001bd091ad..c40211606b 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_36d.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_36d.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserImplicitEquation.pl", "PGML.pl", @@ -61,11 +61,11 @@ $radio = RadioButtons( BEGIN_PGML -Describe the following pair of lines as parallel, perpendicular, or neither. +Describe the following pair of lines as parallel, perpendicular, or neither. [`` [$f]=[$g] \\ [$h]=[$i] ``] -[_______________]{$radio} +[_______________]{$radio} END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_37.pg b/Contrib/CCCS/CollegeAlgebra/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_37.pg index f98f48cd5d..ef36e7a2c1 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_37.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_37.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -58,11 +58,11 @@ if ($a == 1) { # parallel lines BEGIN_PGML -Describe the following pair of lines as parallel, perpendicular, or neither. +Describe the following pair of lines as parallel, perpendicular, or neither. [`` {[$c]}x - {[$b]}y = {[$e]} \\ {[$b * $d]}y - {[$c * $d]}x = {[$f]} ``] -[_______________]{$radio} +[_______________]{$radio} END_PGML @@ -74,11 +74,11 @@ END_PGML BEGIN_PGML -Describe the following pair of lines as parallel, perpendicular, or neither. +Describe the following pair of lines as parallel, perpendicular, or neither. [`` {[$c]}x - {[$b]}y = {[$e]} \\ {[$c * $d]}y + {[$b * $d]}x = {[$f]} ``] -[_______________]{$radio} +[_______________]{$radio} @@ -92,11 +92,11 @@ END_PGML BEGIN_PGML -Describe the following pair of lines as parallel, perpendicular, or neither. +Describe the following pair of lines as parallel, perpendicular, or neither. [`` {[$c]}x - {[$e]} = {[$b]}y \\ {[$b * $d]}y + {[$c * $d]}x = {[$f]} ``] -[_______________]{$radio} +[_______________]{$radio} END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_39.pg b/Contrib/CCCS/CollegeAlgebra/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_39.pg index ee69ef699d..ad30ec5723 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_39.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_39.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -56,11 +56,11 @@ if ($a == 1) { # parallel lines BEGIN_PGML -Describe the following pair of lines as parallel, perpendicular, or neither. +Describe the following pair of lines as parallel, perpendicular, or neither. [`` x = \dfrac{{[$b]}}{{[$c]}} \\ x = -\dfrac{{[$c]}}{{[$b]}} ``] -[_______________]{$radio} +[_______________]{$radio} END_PGML @@ -72,11 +72,11 @@ END_PGML BEGIN_PGML -Describe the following pair of lines as parallel, perpendicular, or neither. +Describe the following pair of lines as parallel, perpendicular, or neither. [`` x = \dfrac{{[$b]}}{{[$c]}} \\ y = \dfrac{{[$b]}}{{[$c]}} ``] -[_______________]{$radio} +[_______________]{$radio} @@ -90,11 +90,11 @@ END_PGML BEGIN_PGML -Describe the following pair of lines as parallel, perpendicular, or neither. +Describe the following pair of lines as parallel, perpendicular, or neither. [`` x = \dfrac{{[$b]}}{{[$c]}} \\ x + y = - \dfrac{{[$c]}}{{[$b]}} ``] -[_______________]{$radio} +[_______________]{$radio} END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_41.pg b/Contrib/CCCS/CollegeAlgebra/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_41.pg index 4497e2df20..b1d1e1ad2f 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_41.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_41.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -56,7 +56,7 @@ BEGIN_PGML Find the slope of the line between the points [` \left( {[$x1]}, {[$y1]} \right) `] and [` \left( {[$x2]}, {[$y2]} \right) `]. If the slope is undefined, enter UND. - [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* + [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_45.pg b/Contrib/CCCS/CollegeAlgebra/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_45.pg index e4b2e27ed8..b718d10cec 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_45.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_45.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -36,7 +36,7 @@ $showPartialCorrectAnswers = 1; $u=non_zero_random(1,3); if ($u == 1) { - # Setup parameters + # Setup parameters $a=non_zero_random(2,7); $b=non_zero_random(1,3); @@ -64,11 +64,11 @@ if ($u == 1) { ); BEGIN_PGML - Find the slope of the line passing between each pair of points, and then determine if the - lines are parallel, perpendicular, or neither. + Find the slope of the line passing between each pair of points, and then determine if the + lines are parallel, perpendicular, or neither. - [`` \left( {[$x1]}, {[$y1]} \right) \text{ and } \left( {[$x2]}, {[$y2]} \right) \\ - \left( {[$x3]} , {[$y3]} \right) \text{ and } \left( {[$x4]}, {[$y4]} \right) ``] + [`` \left( {[$x1]}, {[$y1]} \right) \text{ and } \left( {[$x2]}, {[$y2]} \right) \\ + \left( {[$x3]} , {[$y3]} \right) \text{ and } \left( {[$x4]}, {[$y4]} \right) ``] [_______________]{$radio} @@ -84,7 +84,7 @@ if ($u == 1) { #END_PGML_SOLUTION } elsif ($u == 2) { # perpendicular lines - # Setup parameters + # Setup parameters $a=non_zero_random(2,7); $b=non_zero_random(1,3); @@ -112,11 +112,11 @@ if ($u == 1) { ); BEGIN_PGML - Find the slope of the line passing between each pair of points, and then determine if the - lines are parallel, perpendicular, or neither. + Find the slope of the line passing between each pair of points, and then determine if the + lines are parallel, perpendicular, or neither. - [`` \left( {[$x1]}, {[$y1]} \right) \text{ and } \left( {[$x2]}, {[$y2]} \right) \\ - \left( {[$x3]} , {[$y3]} \right) \text{ and } \left( {[$x4]}, {[$y4]} \right) ``] + [`` \left( {[$x1]}, {[$y1]} \right) \text{ and } \left( {[$x2]}, {[$y2]} \right) \\ + \left( {[$x3]} , {[$y3]} \right) \text{ and } \left( {[$x4]}, {[$y4]} \right) ``] [_______________]{$radio} @@ -130,7 +130,7 @@ if ($u == 1) { #Solution explanation goes here. #END_PGML_SOLUTION } else { # neither parallel or perpendicular - # Setup parameters + # Setup parameters $a=non_zero_random(2,7); $b=non_zero_random(1,3); @@ -158,11 +158,11 @@ if ($u == 1) { ); BEGIN_PGML - Find the slope of the line passing between each pair of points, and then determine if the - lines are parallel, perpendicular, or neither. + Find the slope of the line passing between each pair of points, and then determine if the + lines are parallel, perpendicular, or neither. - [`` \left( {[$x1]}, {[$y1]} \right) \text{ and } \left( {[$x2]}, {[$y2]} \right) \\ - \left( {[$x3]} , {[$y3]} \right) \text{ and } \left( {[$x4]}, {[$y4]} \right) ``] + [`` \left( {[$x1]}, {[$y1]} \right) \text{ and } \left( {[$x2]}, {[$y2]} \right) \\ + \left( {[$x3]} , {[$y3]} \right) \text{ and } \left( {[$x4]}, {[$y4]} \right) ``] [_______________]{$radio} diff --git a/Contrib/CCCS/CollegeAlgebra/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_50.pg b/Contrib/CCCS/CollegeAlgebra/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_50.pg index 7da4943c08..255bb6b794 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_50.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_50.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -44,12 +44,12 @@ Context()->variables->add(m => 'Real'); BEGIN_PGML Start with the point-slope formula for a line -[`` y - y_1 = m \left( x - x_1 \right) ``] +[`` y - y_1 = m \left( x - x_1 \right) ``] and solve to find [`x`] in terms of [` m, x_1, y, `] and [`y_1`]. In order to enter a subscript, type x1 to get `x_1`. -[`x =`] [_______________]{Compute("(y - y1)/m + x1")->cmp()} -[@ AnswerFormatHelp("formulas") @]* +[`x =`] [_______________]{Compute("(y - y1)/m + x1")->cmp()} +[@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_57.pg b/Contrib/CCCS/CollegeAlgebra/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_57.pg index 3466e6b1e8..4cfd371632 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_57.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_57.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "scaffold.pl", @@ -32,9 +32,9 @@ $showPartialCorrectAnswers = 1; ########################### -# Setup +# Setup $u=non_zero_random(1,3); # three possibilities for the details of the rental car contract -if ($u == 1) { +if ($u == 1) { $m = 0.15; $b = 65; } elsif ($u == 2) { @@ -61,7 +61,7 @@ $ans3 = round(($cost2 - $b) / $m); # Main text Scaffold::Begin(); - + Section::Begin("Part 1"); BEGIN_PGML @@ -72,20 +72,20 @@ Suppose that the cost of a rental car is $[`{[$b]}`] for a week plus $[`{[$m]}`] where [`x`] is the number of miles driven. What is the total cost of the car if you travel [`{[$mileage]}`] miles? - [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* + [_______________]{$ans1} [@ helpLink("numbers") @]* END_PGML Section::End(); - + Section::Begin("Part 2"); BEGIN_PGML -If the total cost of your rental for one week is $[`{[$cost]}`], how many miles did you travel? +If the total cost of your rental for one week is $[`{[$cost]}`], how many miles did you travel? - [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* + [_______________]{$ans2} [@ helpLink("numbers") @]* END_PGML @@ -96,12 +96,12 @@ Section::Begin("Part 3"); BEGIN_PGML Suppose that you have a maximum of $[`{[$cost2]}`] to spend on a car rental. What is the maximum number of miles that you can travel? Round your answer to the nearest whole number. - [_______________]{$ans3} [@ AnswerFormatHelp("numbers") @]* + [_______________]{$ans3} [@ helpLink("numbers") @]* END_PGML Section::End(); - + Scaffold::End(); ############################ diff --git a/Contrib/CCCS/CollegeAlgebra/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_13.pg b/Contrib/CCCS/CollegeAlgebra/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_13.pg index 3cbd14e910..479f572d5f 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_13.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_13.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -53,11 +53,11 @@ $answer1 = ($e+$a*$c)/($a*$b+1-$d); # Main text BEGIN_PGML -Solve the following equation for [`x`]: +Solve the following equation for [`x`]: [`` [$a]([$b]x-[$c])+x = [$d]x+[$e]``] -[`x =`][_______________]{$answer1} [@ AnswerFormatHelp("numbers") @]* +[`x =`][_______________]{$answer1} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_22.pg b/Contrib/CCCS/CollegeAlgebra/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_22.pg index 3cc8f0b606..2ba92a2cc8 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_22.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_22.pg @@ -24,7 +24,7 @@ loadMacros( "MathObjects.pl", "parserAssignment.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -59,7 +59,7 @@ BEGIN_PGML Find the equation of the line that contains point [`([$a],[$b])`] with a slope of [` -\dfrac{[$c]}{[$d]} `]. Write the answer in slope-intercept form. -[___________]{$eqn} [@ AnswerFormatHelp("equation") @]* +[___________]{$eqn} [@ helpLink("equation") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_23.pg b/Contrib/CCCS/CollegeAlgebra/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_23.pg index 16856271d3..e48ecbeae8 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_23.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_23.pg @@ -24,7 +24,7 @@ loadMacros( "MathObjects.pl", "parserAssignment.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,8 +51,8 @@ $eqn = Formula("y=$m*x+$b"); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -68,7 +68,7 @@ BEGIN_PGML 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. -[__________________]{$eqn} [@ AnswerFormatHelp("equation") @]* +[__________________]{$eqn} [@ helpLink("equation") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_29.pg b/Contrib/CCCS/CollegeAlgebra/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_29.pg index 3f1e2dbfbc..b47e0aa4ed 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_29.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_29.pg @@ -24,7 +24,7 @@ loadMacros( "MathObjects.pl", "parserAssignment.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextArbitraryString.pl" @@ -53,8 +53,8 @@ $eqn = Formula("y=$slope*x+$intercept")->reduce; $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -71,11 +71,11 @@ BEGIN_PGML -Find an equation of the line perpendicular to [` [$c]*y=x-[$d] `] that passes through the point [`([$a],[$b])`]. +Find an equation of the line perpendicular to [` [$c]*y=x-[$d] `] that passes through the point [`([$a],[$b])`]. Write the answer in slope-intercept form, [`y = mx + b `], with all fractions written in lowest terms. -[____________________]{$eqn} [@ AnswerFormatHelp("equation") @]* +[____________________]{$eqn} [@ helpLink("equation") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_30.pg b/Contrib/CCCS/CollegeAlgebra/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_30.pg index fde0328d9b..57af88d33a 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_30.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_30.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -46,8 +46,8 @@ $intercept = $b-$a*$slope; $ans = Formula("$slope*x+$intercept")->reduce; $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -59,11 +59,11 @@ TeX => BEGIN_PGML Find the equation of the line passing through the points [` ([$a] ,[$b] ) `] and -[` ( [$c], [$d]) . `] +[` ( [$c], [$d]) . `] -[`y=`] [_______________]{$ans} -[@ AnswerFormatHelp("formulas") @]* +[`y=`] [_______________]{$ans} +[@ helpLink("formulas") @]* [$video]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_6.pg b/Contrib/CCCS/CollegeAlgebra/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_6.pg index 1c252f78e6..eda5d63db3 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_6.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_6.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -58,11 +58,11 @@ END_TEXT BEGIN_PGML -Solve the following equation for [`x`]: +Solve the following equation for [`x`]: [`[$a]x+[$b]=[$c]x+[$d]`] -[` x = `][_______________]{$answer1} [@ AnswerFormatHelp("numbers") @]* +[` x = `][_______________]{$answer1} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_8.pg b/Contrib/CCCS/CollegeAlgebra/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_8.pg index 58c2f48f43..76528fe314 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_8.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_8.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -48,11 +48,11 @@ $answer1 = Fraction($c*$e-$b-$a*$d, $a-$c); # Main text BEGIN_PGML -Solve the following equation for [`x`]: +Solve the following equation for [`x`]: [`[$a](x+[$d])+[$b]=[$c](x+[$e])`] -[` x = `][_______________]{$answer1} [@ AnswerFormatHelp("numbers") @]* +[` x = `][_______________]{$answer1} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_video.pg b/Contrib/CCCS/CollegeAlgebra/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_video.pg index 388740f881..e982fdc99c 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_video.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_video.pg @@ -25,7 +25,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -39,8 +39,8 @@ TEXT(beginproblem()); Context("Numeric"); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -58,7 +58,7 @@ BEGIN_PGML Video Quiz: Solve the video quiz for `x`. -`x`=[_______________]{4} [@ AnswerFormatHelp("numbers") @]* +`x`=[_______________]{4} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CollegeAlgebra/2.2/VideoA.pg b/Contrib/CCCS/CollegeAlgebra/2.2/VideoA.pg index 5c5df87106..359a388474 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.2/VideoA.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.2/VideoA.pg @@ -25,7 +25,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -38,8 +38,8 @@ TEXT(beginproblem()); Context("Numeric"); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -51,13 +51,13 @@ BEGIN_PGML >> [$video]* << ->> YouTube video of Craig Faulhaber, mathemagician, embedded using an iframe. << +>> YouTube video of Craig Faulhaber, mathemagician, embedded using an iframe. << >> If the video does not work, [@ htmlLink("https://www.youtube.com/watch?v=dTgvDAJvKDc","click here to go to YouTube directly.") @]* << #Video Quiz: Solve the video quiz for [`x`], - [_______________]{4} [@ AnswerFormatHelp("numbers") @]* + [_______________]{4} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CollegeAlgebra/2.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_21.pg b/Contrib/CCCS/CollegeAlgebra/2.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_21.pg index 3fc2613756..fb6d05bbb8 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_21.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_21.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -46,8 +46,8 @@ $x1 = $z * $w; $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -57,11 +57,11 @@ TeX => # Main text BEGIN_PGML -Evaluate [` ([$z]) ([$w]) `] and express as a simplified complex number. +Evaluate [` ([$z]) ([$w]) `] and express as a simplified complex number. - [_______________]{$x1} [@ AnswerFormatHelp("numbers") @]* + [_______________]{$x1} [@ helpLink("numbers") @]* -[$video]* +[$video]* END_PGML BEGIN_TEXT diff --git a/Contrib/CCCS/CollegeAlgebra/2.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_49.pg b/Contrib/CCCS/CollegeAlgebra/2.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_49.pg index a09ad5a539..00c56fd265 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_49.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_49.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,9 +48,9 @@ $i=Complex(0,1); # Main text BEGIN_PGML -Evaluate [` i^{[$a]} ( 1 + i^{[$b]} ) `] and express the answer as a simplified complex number. +Evaluate [` i^{[$a]} ( 1 + i^{[$b]} ) `] and express the answer as a simplified complex number. - [_______________]{$i**$a * (1 + $i**$b)} [@ AnswerFormatHelp("numbers") @]* + [_______________]{$i**$a * (1 + $i**$b)} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/2.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_50.pg b/Contrib/CCCS/CollegeAlgebra/2.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_50.pg index b47e8a83d1..9bb99bbc54 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_50.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_50.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,15 +48,15 @@ $i=Complex(0,1); # Main text BEGIN_PGML -Evaluate [` i^{-[$a]} + [$b] \, i^{[$c]} `] and express the answer as a simplified complex number. +Evaluate [` i^{-[$a]} + [$b] \, i^{[$c]} `] and express the answer as a simplified complex number. - [_______________]{$i**(-1*$a) + $b * $i**$c} [@ AnswerFormatHelp("numbers") @]* + [_______________]{$i**(-1*$a) + $b * $i**$c} [@ helpLink("numbers") @]* END_PGML ############################ BEGIN_PGML_HINT -For example: +For example: [``\begin{aligned} i^{-1}+2i^{17} &= \frac{1}{i} + \frac{2i^{17}}{1}\\ diff --git a/Contrib/CCCS/CollegeAlgebra/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_16.pg b/Contrib/CCCS/CollegeAlgebra/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_16.pg index 48cc0dbaf9..9fd7c5fd5d 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_16.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_16.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -43,8 +43,8 @@ $z=Complex($a,$b); $w=Complex($c,$d); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -54,9 +54,9 @@ TeX => # Main text BEGIN_PGML -Evaluate [` ([$z]) + ([$w]) `] and express as a simplified complex number. +Evaluate [` ([$z]) + ([$w]) `] and express as a simplified complex number. - [_______________]{$z+$w} [@ AnswerFormatHelp("numbers") @]* + [_______________]{$z+$w} [@ helpLink("numbers") @]* [$video]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_17.pg b/Contrib/CCCS/CollegeAlgebra/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_17.pg index 7e68be5721..f7a716aa98 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_17.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_17.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,9 +50,9 @@ $w=Complex($c,$d); # Main text BEGIN_PGML -Evaluate [` ([$z]) - ([$w]) `] and express as a simplified complex number. +Evaluate [` ([$z]) - ([$w]) `] and express as a simplified complex number. - [_______________]{$z-$w} [@ AnswerFormatHelp("numbers") @]* + [_______________]{$z-$w} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_25.pg b/Contrib/CCCS/CollegeAlgebra/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_25.pg index 7c625aa135..6f82e252d6 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_25.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_25.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,9 +50,9 @@ $w=Complex($c,$d); # Main text BEGIN_PGML -Evaluate [` ([$z])([$w]) `] and express as a simplified complex number. +Evaluate [` ([$z])([$w]) `] and express as a simplified complex number. - [_______________]{$z*$w} [@ AnswerFormatHelp("numbers") @]* + [_______________]{$z*$w} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_33.pg b/Contrib/CCCS/CollegeAlgebra/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_33.pg index 15a534aaac..2c9d385ab4 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_33.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_33.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -45,8 +45,8 @@ $w=Complex($c,$d); $ans=$z/$w; $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -56,9 +56,9 @@ TeX => # Main text BEGIN_PGML -Evaluate [`` \frac{[$z]}{[$w]} ``] and express as a simplified complex number. +Evaluate [`` \frac{[$z]}{[$w]} ``] and express as a simplified complex number. - [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* + [_______________]{$ans} [@ helpLink("numbers") @]* [$video]* diff --git a/Contrib/CCCS/CollegeAlgebra/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_40a.pg b/Contrib/CCCS/CollegeAlgebra/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_40a.pg index fc42bc1363..0f9500a5de 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_40a.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_40a.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -39,8 +39,8 @@ $a=random(11,50,4); $ans=Complex(0,-1); #$video = MODES( -#HTML=> -#'', +#HTML=> +#'', #TeX => #"An embedded YouTube video." #); @@ -49,9 +49,9 @@ $ans=Complex(0,-1); # Main text BEGIN_PGML -Simplify [`` i^{[$a]} ``]. +Simplify [`` i^{[$a]} ``]. - [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* + [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML @@ -69,7 +69,7 @@ Recall: [`i^4=1`] -For example: +For example: [``\begin{aligned} i^{14} &= i^{12}\cdot i^2\\ diff --git a/Contrib/CCCS/CollegeAlgebra/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_40b.pg b/Contrib/CCCS/CollegeAlgebra/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_40b.pg index 126350f5b1..371c4ffd22 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_40b.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_40b.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -43,9 +43,9 @@ $ans=Complex(1,0); # Main text BEGIN_PGML -Simplify [`` i^{[$a]} ``]. +Simplify [`` i^{[$a]} ``]. - [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* + [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_12.pg b/Contrib/CCCS/CollegeAlgebra/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_12.pg index f96c6500a1..9bb2b4e003 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_12.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_12.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -49,11 +49,11 @@ $ans = List( -$c, -$b/$a ); # Main text BEGIN_PGML -Solve [`[$f]=0 `] by factoring. If there is more -than one correct answer, enter a comma +Solve [`[$f]=0 `] by factoring. If there is more +than one correct answer, enter a comma separated list. -[`x=`] [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_________________]{$ans} [@ helpLink("numbers") @]* @@ -71,7 +71,7 @@ First make sure it is written in the correct form, with zero by itself. [`2x^2+5x-3=0`] -Then we want to factor the left side of this equation. Here, we can use a 'trial and error' method of factoring. +Then we want to factor the left side of this equation. Here, we can use a 'trial and error' method of factoring. [`2x^2+5x-3=(\;\;\;\;\;\;\;\;\;\;)(\;\;\;\;\;\;\;\;\;\;)`] @@ -89,7 +89,7 @@ We can then see the last terms for each binomial need to muliply to `-3`. There \end{aligned} `] -Since [`(2x-3)(x+1)`] did not multiply out to [`2x^2+5x-3`], we should try again. +Since [`(2x-3)(x+1)`] did not multiply out to [`2x^2+5x-3`], we should try again. [` \begin{aligned} diff --git a/Contrib/CCCS/CollegeAlgebra/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_19.pg b/Contrib/CCCS/CollegeAlgebra/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_19.pg index c3a0429b2c..ef0563c634 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_19.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_19.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -42,8 +42,8 @@ $f = Compute("x^2")->reduce; $ans = List( $a, -$a ); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -53,14 +53,14 @@ TeX => # Main text BEGIN_PGML -Solve [`[$f]=[$a2] `] by using the square root property. If there is more -than one correct answer, enter a comma +Solve [`[$f]=[$a2] `] by using the square root property. If there is more +than one correct answer, enter a comma separated list. -[`x=`] [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_________________]{$ans} [@ helpLink("numbers") @]* -[$video]* +[$video]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_21.pg b/Contrib/CCCS/CollegeAlgebra/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_21.pg index 13c330736e..cc86f08585 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_21.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_21.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -43,8 +43,8 @@ $f = Compute("(x-$b)^2")->reduce; $ans = List( $b+$a, $b-$a ); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -53,13 +53,13 @@ TeX => # Main text BEGIN_PGML -Solve [`[$f]=[$a2] `] by using the square root property. If there is more -than one correct answer, enter a comma +Solve [`[$f]=[$a2] `] by using the square root property. If there is more +than one correct answer, enter a comma separated list. -[`x=`] [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_________________]{$ans} [@ helpLink("numbers") @]* -[$video]* +[$video]* END_PGML BEGIN_TEXT diff --git a/Contrib/CCCS/CollegeAlgebra/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_25.pg b/Contrib/CCCS/CollegeAlgebra/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_25.pg index 4503792cd4..dfa4ffc798 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_25.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_25.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "contextLimitedRadical.pl", "PGML.pl", @@ -41,55 +41,55 @@ Context("Numeric"); $chooser=random(1,5,1); if ( $chooser ==1) {$eqn1=Formula("x^2-10x-22"); -} +} elsif ( $chooser ==2) {$eqn1=Formula("x^2+2x-5"); -} +} elsif ( $chooser ==3) {$eqn1=Formula("x^2+6x+7"); -} +} elsif ( $chooser ==4) {$eqn1=Formula("x^2-4x-1"); -} +} if ( $chooser ==5) {$eqn1=Formula("x^2-6x-5"); -} +} if ( $chooser ==1) {$eqn2=0; -} +} elsif ( $chooser ==2) {$eqn2=0; -} +} elsif ( $chooser ==3) {$eqn2=0; -} +} elsif ( $chooser ==4) {$eqn2=0; -} +} if ( $chooser ==5) {$eqn2=0; -} +} elsif ( $chooser ==1) {$ans=List("5-sqrt47, 5+sqrt47"); -} +} if ( $chooser ==2) {$ans=List("-1+sqrt6, -1-sqrt6"); -} +} elsif ( $chooser ==3) {$ans=List("-3-sqrt2, -3+sqrt2"); -} +} elsif ( $chooser ==4) {$ans=List("2+sqrt5, 2-sqrt5"); -} +} if ( $chooser ==5) {$ans=List("3+sqrt14, 3-sqrt14"); -} +} $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -101,14 +101,14 @@ TeX => # Main text BEGIN_PGML -Solve [`[$eqn1]=[$eqn2] `] by completing the square. Use at 5 least decimal places for all values. If there is more -than one correct answer, enter a comma -separated list. +Solve [`[$eqn1]=[$eqn2] `] by completing the square. Use at 5 least decimal places for all values. If there is more +than one correct answer, enter a comma +separated list. -[`x=`] [_________________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_________________________]{$ans} [@ helpLink("numbers") @]* -[$video]* +[$video]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_26.pg b/Contrib/CCCS/CollegeAlgebra/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_26.pg index 5b5b25e1de..c89d2d08d9 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_26.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_26.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -40,52 +40,52 @@ Context("Numeric"); $chooser=random(1,5,1); if ( $chooser ==1) {$eqn1=Formula("x^2-3x-1"); -} +} elsif ( $chooser ==2) {$eqn1=Formula("x^2-x-3"); -} +} elsif ( $chooser ==3) {$eqn1=Formula("x^2-5x-7"); -} +} elsif ( $chooser ==4) {$eqn1=Formula("x^2+3x-9"); -} +} if ( $chooser ==5) {$eqn1=Formula("x^2+3x-5"); -} +} if ( $chooser ==1) {$eqn2=0; -} +} elsif ( $chooser ==2) {$eqn2=0; -} +} elsif ( $chooser ==3) {$eqn2=0; -} +} elsif ( $chooser ==4) {$eqn2=0; -} +} if ( $chooser ==5) {$eqn2=0; -} +} elsif ( $chooser ==1) {$ans=List("(3-sqrt13)/2,(3+sqrt13)/2"); -} +} if ( $chooser ==2) {$ans=List("(1-sqrt13)/2,(1+sqrt13)/2"); -} +} elsif ( $chooser ==3) {$ans=List("(5+sqrt53)/2, (5-sqrt53)/2"); -} +} elsif ( $chooser ==4) {$ans=List("(-3+3sqrt5)/2,(-3-3sqrt5)/2"); -} +} if ( $chooser ==5) {$ans=List("(-3-sqrt29)/2,(-3+sqrt29)/2"); -} +} @@ -93,11 +93,11 @@ if ( $chooser ==5) {$ans=List("(-3-sqrt29)/2,(-3+sqrt29)/2"); # Main text BEGIN_PGML -Solve [`[$eqn1]=[$eqn2] `] by completing the square. Use at least 5 decimal places for all values. If there is more -than one correct answer, enter a comma -separated list. +Solve [`[$eqn1]=[$eqn2] `] by completing the square. Use at least 5 decimal places for all values. If there is more +than one correct answer, enter a comma +separated list. -[`x=`] [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_________________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CollegeAlgebra/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_32.pg b/Contrib/CCCS/CollegeAlgebra/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_32.pg index 2eeb2c8109..2028363150 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_32.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_32.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserPopUp.pl", "PGML.pl", "PGcourse.pl", @@ -75,13 +75,13 @@ TeX => BEGIN_PGML -Determine the discriminant for [`[$f]=0`] -[_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +Determine the discriminant for [`[$f]=0`] +[_________________]{$ans} [@ helpLink("numbers") @]* -Based on the discriminant, what is the nature of the solution(s) for the equation? -[_________________]{$popup} +Based on the discriminant, what is the nature of the solution(s) for the equation? +[_________________]{$popup} -[$video]* +[$video]* END_PGML BEGIN_TEXT diff --git a/Contrib/CCCS/CollegeAlgebra/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_35.pg b/Contrib/CCCS/CollegeAlgebra/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_35.pg index ced0139b2d..5fd28bcbe1 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_35.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_35.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserPopUp.pl", "PGML.pl", "PGcourse.pl", @@ -52,11 +52,11 @@ $popup = PopUp( # Main text BEGIN_PGML -Determine the discriminant for [`[$f]=0`] -[_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +Determine the discriminant for [`[$f]=0`] +[_________________]{$ans} [@ helpLink("numbers") @]* -Based on the discriminant, what is the nature of the solution(s) for the equation? -[_________________]{$popup} +Based on the discriminant, what is the nature of the solution(s) for the equation? +[_________________]{$popup} diff --git a/Contrib/CCCS/CollegeAlgebra/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_38.pg b/Contrib/CCCS/CollegeAlgebra/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_38.pg index cc8952ffc0..531b95fcbd 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_38.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_38.pg @@ -1,7 +1,7 @@ ## DESCRIPTION ## Algebra: solving a quadratic via the quadratic formula ## ENDDESCRIPTION - + ## DBsubject(Algebra) ## DBchapter(Quadratic equations and functions) ## DBsection(Quadratic formula) @@ -10,65 +10,65 @@ ## Author(James Morski) ## MO(1) ## KEYWORDS('algebra', 'quadratic equations') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); - + TEXT(beginproblem()); - + $showPartialCorrectAnswers = 1; - + ########################### # Setup - + Context("Numeric"); - + $a=non_zero_random(0,10,2); $b=non_zero_random(-10,10,2); $c=non_zero_random(-10,0); $b2=($b/($a*2))**2; - + $f = Compute("$a*x^2+$b*x+$c")->reduce; - - + + $ans1=(-$b+sqrt(($b)**2-4*$a*$c))/(2*$a); $ans2=(-$b-sqrt(($b)**2-4*$a*$c))/(2*$a); - + $ans = List( $ans1, $ans2); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); - + ########################### # Main text - + BEGIN_PGML - + Solve [`[$f]=0 `] by using the quadratic formula. If there is more than one correct answer, enter a comma -separated list. - -[`x=`] [______________________]{$ans} [@ AnswerFormatHelp("numbers") @]* - +separated list. + +[`x=`] [______________________]{$ans} [@ helpLink("numbers") @]* -[$video]* + +[$video]* END_PGML @@ -78,15 +78,15 @@ $BR If the video does not work, \{ htmlLink ("https://www.youtube.com/watch?v=UofR4XEKpYE", "click here to watch on YouTube.", "TARGET='_blank'")\} $BR END_TEXT - - + + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/CollegeAlgebra/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_39.pg b/Contrib/CCCS/CollegeAlgebra/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_39.pg index 69cfdf57ae..a338a025da 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_39.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_39.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,11 +50,11 @@ $ans = List((-1+sqrt(1-4*$c))/2, (-1-sqrt(1-4*$c))/2); BEGIN_PGML -Solve [`[$f]=0 `] by using the quadratic formula. If there is more -than one correct answer, enter a comma -separated list. +Solve [`[$f]=0 `] by using the quadratic formula. If there is more +than one correct answer, enter a comma +separated list. -[`x=`] [__________________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [__________________________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CollegeAlgebra/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_41.pg b/Contrib/CCCS/CollegeAlgebra/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_41.pg index 8ef268882d..e4384e6137 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_41.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_41.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -52,11 +52,11 @@ $ans = List( -$b/(2*$a) ); BEGIN_PGML -Solve [`[$f]=0 `] by using the quadratic formula. If there is more -than one correct answer, enter a comma -separated list. +Solve [`[$f]=0 `] by using the quadratic formula. If there is more +than one correct answer, enter a comma +separated list. -[`x=`] [________________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [________________________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CollegeAlgebra/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_56.pg b/Contrib/CCCS/CollegeAlgebra/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_56.pg index ffbf1b6208..9d6af3a04e 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_56.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_56.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -49,14 +49,14 @@ BEGIN_PGML A falling object travels a distance given by the formula [` d=[$d]`], where [`d`] is measured in feet and [`t`] is measured in seconds. How many seconds will it take for the object to travel [`[$c]`] feet? Round the answer to 4 decimal places. [_______________]{$ans} seconds -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* END_PGML ############################ BEGIN_PGML_HINT -[`d=[$d]`] measures the distance traveled and you want to know how long it will take the object to travel [`[$c]`] feet. +[`d=[$d]`] measures the distance traveled and you want to know how long it will take the object to travel [`[$c]`] feet. So, you should solve for time when [`d=[$c]`], or when [`[$d]=[$c]`]. diff --git a/Contrib/CCCS/CollegeAlgebra/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_57.pg b/Contrib/CCCS/CollegeAlgebra/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_57.pg index b0667accab..75e6e28132 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_57.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_57.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -45,7 +45,7 @@ $ans=Compute((-54+sqrt(2916-(16*(180-$a))))/8); BEGIN_TEXT $BR $BCENTER -\{ image( "garden.png", width=>250, height=>250, +\{ image( "garden.png", width=>250, height=>250, tex_size=>700, extra_html_tags=>'alt="Graph of a function."' ) \} $ECENTER $BR @@ -58,15 +58,15 @@ A vacant lot is being converted into a community garden. The garden and a walkw [_______________]{$ans} Feet - -[@ AnswerFormatHelp("numbers") @]* + +[@ helpLink("numbers") @]* END_PGML ############################ BEGIN_PGML_HINT -Here you need to determine the width of the walkway, `x`. +Here you need to determine the width of the walkway, `x`. -The total length of the garden and the walkway would be `x+15+x` and the total width of the garden and the walkway would be `x+12+x`. You are also given the total area of the garden and the walkway. +The total length of the garden and the walkway would be `x+15+x` and the total width of the garden and the walkway would be `x+12+x`. You are also given the total area of the garden and the walkway. Now, can you use that information to set up an equation for the total area of the garden and the walkway? Then, can you solve that equation to answer the question? diff --git a/Contrib/CCCS/CollegeAlgebra/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_6.pg b/Contrib/CCCS/CollegeAlgebra/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_6.pg index 9bacd97c4f..2219b869dc 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_6.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_6.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -42,8 +42,8 @@ $f = Compute("x^2-($a+$b)x+$a*$b")->reduce; $ans = List( $a, $b ); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -54,14 +54,14 @@ TeX => # Main text BEGIN_PGML -Solve the quadratic equation [`[$f]=0 `] by factoring. If there is more -than one correct answer, enter a comma +Solve the quadratic equation [`[$f]=0 `] by factoring. If there is more +than one correct answer, enter a comma separated list. -[`x=`] [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_________________]{$ans} [@ helpLink("numbers") @]* -[$video]* +[$video]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_7.pg b/Contrib/CCCS/CollegeAlgebra/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_7.pg index 5bf76ad3b5..b45842e69c 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_7.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_7.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -47,11 +47,11 @@ $ans = List( $a, $b ); # Main text BEGIN_PGML -Solve the quadratic equation [`[$f]=0 `] by factoring. If there is more -than one correct answer, enter a comma +Solve the quadratic equation [`[$f]=0 `] by factoring. If there is more +than one correct answer, enter a comma separated list. -[`x=`] [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_8.pg b/Contrib/CCCS/CollegeAlgebra/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_8.pg index 07676d5812..9b53dcbbcd 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_8.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_8.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -47,11 +47,11 @@ $ans = -1*$a; # Main text BEGIN_PGML -Solve the quadratic equation [`[$f]=0 `] by factoring. If there is more -than one correct answer, enter a comma +Solve the quadratic equation [`[$f]=0 `] by factoring. If there is more +than one correct answer, enter a comma separated list. -[`x=`] [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_37.pg b/Contrib/CCCS/CollegeAlgebra/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_37.pg index 49b2ed90d5..2d557a8b08 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_37.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_37.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -53,10 +53,10 @@ Solve [` x^4 - [$a**2 + $b**2] x^2 + [$a**2 * $b**2] = 0 `]. Begin by using a s If there is more than one answer, enter a comma separated list. -`x=`[_______________]{List($a,-$a,$b,-$b)} [@ AnswerFormatHelp("numbers") @]* +`x=`[_______________]{List($a,-$a,$b,-$b)} [@ helpLink("numbers") @]* -[$video]* +[$video]* END_PGML BEGIN_TEXT diff --git a/Contrib/CCCS/CollegeAlgebra/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_38.pg b/Contrib/CCCS/CollegeAlgebra/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_38.pg index 001cf5ace2..62fa90e7d7 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_38.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_38.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -56,7 +56,7 @@ $ans = List($x1 + $u,$x2 + $u); ########################### # Main text -if ($b == 0) { +if ($b == 0) { # no linear term on LHS BEGIN_PGML @@ -66,7 +66,7 @@ If you find more than one solution, give your answer as a comma-separated list. [` {[$a]} \left( t - {[$u]} \right)^2 = {[$neg_c]} `] -[`t=`] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`t=`] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML @@ -81,7 +81,7 @@ If you find more than one solution, give your answer as a comma-separated list. [` {[$a]} \left( t - {[$u]} \right)^2 + {[$b]} \left( t - {[$u]} \right) = {[$neg_c]} `] -[`t=`] [_______________]{List($ans)} [@ AnswerFormatHelp("numbers") @]* +[`t=`] [_______________]{List($ans)} [@ helpLink("numbers") @]* @@ -101,7 +101,7 @@ Solve the equation by identifying the quadratic form. Use a substitute variable If you find more than one solution, give your answer as a comma-separated list. -[`t=`] [_______________]{List($ans)} [@ AnswerFormatHelp("numbers") @]* +[`t=`] [_______________]{List($ans)} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CollegeAlgebra/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_40.pg b/Contrib/CCCS/CollegeAlgebra/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_40.pg index 219e8e15c7..8369f3383a 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_40.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_40.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -55,7 +55,7 @@ If there is more than one answer, enter a comma separated list. [` \left( x + {[$w]} \right)^2 - {[$b]} \left( x + {[$w]} \right) - {[$c]} = 0 `] -`x`=[_______________]{List($x1, $x2)} [@ AnswerFormatHelp("numbers") @]* +`x`=[_______________]{List($x1, $x2)} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_7.pg b/Contrib/CCCS/CollegeAlgebra/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_7.pg index b45812f432..1b5112f6ef 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_7.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_7.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -49,8 +49,8 @@ if ( $b % 2) { } $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -66,10 +66,10 @@ Solve the rational exponent equation. Use factoring where necessary. If there [` x^{[$b-1]/[$b]} = [$c] `]. -`x =` [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +`x =` [_______________]{$ans} [@ helpLink("numbers") @]* -[$video]* +[$video]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_9.pg b/Contrib/CCCS/CollegeAlgebra/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_9.pg index 97c9365435..87815c1c67 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_9.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_9.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,8 +51,8 @@ if ( $b % 2) { $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -64,12 +64,12 @@ TeX => BEGIN_PGML Solve [` \left( x - [$d] \right)^{[$b-1]/[$b]} = [$c] `]. If there is more than one answer, enter a comma separated list. -`x=` [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +`x=` [_______________]{$ans} [@ helpLink("numbers") @]* -[$video]* +[$video]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_21.pg b/Contrib/CCCS/CollegeAlgebra/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_21.pg index 2020d8666c..30d7332416 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_21.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_21.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -40,8 +40,8 @@ $ans=Compute($b**2+$a); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -51,16 +51,16 @@ TeX => # Main text BEGIN_PGML -Solve the radical equation. Be sure to check for extraneous solutions. +Solve the radical equation. Be sure to check for extraneous solutions. If there is more than one answer, enter a comma separated list. [` \sqrt{x-[$a]}=[$b] `]. -[`x=`] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_______________]{$ans} [@ helpLink("numbers") @]* -[$video]* +[$video]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_22.pg b/Contrib/CCCS/CollegeAlgebra/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_22.pg index f662a75450..100756f076 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_22.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_22.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -32,7 +32,7 @@ $showPartialCorrectAnswers = 1; # Setup #note that $a-$b/2>0 for both solutions to work so forcing that with selection of $a and $b. -$a=random(5,10); +$a=random(5,10); do {$b=random(2,8,2); } until ($a != $b); $c=$b**2/4-$a*$b; @@ -45,13 +45,13 @@ $ans = List($a, $b ); # Main text BEGIN_PGML -Solve the radical equation. Be sure to check for extraneous solutions. +Solve the radical equation. Be sure to check for extraneous solutions. If you find more than one solution, give your answer as a comma-separated list. [` \sqrt{[$f]}=[$g] `]. -[`x=`] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_24.pg b/Contrib/CCCS/CollegeAlgebra/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_24.pg index 07d3e7e5b5..69239d5247 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_24.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_24.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -44,13 +44,13 @@ $ans=Compute(($c-$b)**2+$a); # Main text BEGIN_PGML -Solve the radical equation. Be sure to check for extraneous solutions. +Solve the radical equation. Be sure to check for extraneous solutions. -If there is more than one answer, enter a comma separated list. +If there is more than one answer, enter a comma separated list. [` \sqrt{x-[$a]}+[$b]=[$c] `]. -[`x= `] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x= `] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_28.pg b/Contrib/CCCS/CollegeAlgebra/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_28.pg index 526e524e58..a5e6d9dad6 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_28.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_28.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -33,8 +33,8 @@ $showPartialCorrectAnswers = 1; $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -43,16 +43,16 @@ TeX => # Main text BEGIN_PGML -Solve the radical equation. Be sure to check for extraneous solutions. +Solve the radical equation. Be sure to check for extraneous solutions. If there is more than one answer, enter a comma separated list. [` \sqrt{3x+7}+\sqrt{x+2}=1 `]. -[`x = `] [_______________]{-2} [@ AnswerFormatHelp("numbers") @]* +[`x = `] [_______________]{-2} [@ helpLink("numbers") @]* -[$video]* +[$video]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_29.pg b/Contrib/CCCS/CollegeAlgebra/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_29.pg index 18031bcb8a..ae7d25d319 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_29.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_29.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -39,8 +39,8 @@ $b=non_zero_random(1,10); $ans=List($b+$a, -$b+$a); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -56,10 +56,10 @@ If there is more than one answer, enter a comma separated list. [` |x-[$a]|=[$b] `]. -[`x= `][_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x= `][_______________]{$ans} [@ helpLink("numbers") @]* -[$video]* +[$video]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_31.pg b/Contrib/CCCS/CollegeAlgebra/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_31.pg index 310ac9cf07..9dc7a9a432 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_31.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_31.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,7 +50,7 @@ If there is more than one answer, enter a comma separated list. [` |x-[$a]|-[$b]=[$c] `]. -[`x=`] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_35.pg b/Contrib/CCCS/CollegeAlgebra/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_35.pg index 4e4758e806..34bd662195 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_35.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_35.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -47,7 +47,7 @@ Solve the equation involving absolute value. If there is more than one answer, e [` |x-[$a]|=0 `]. -`x=` [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +`x=` [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/2.6/checking_fraction_answers.pg b/Contrib/CCCS/CollegeAlgebra/2.6/checking_fraction_answers.pg index 32b15cd1d3..c1d0d400af 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.6/checking_fraction_answers.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.6/checking_fraction_answers.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -47,8 +47,8 @@ $neg_c = (-1) * $q * $s; # Coefficient subtracted from t $u = non_zero_random(1,5); - -# Solutions + +# Solutions Context("LimitedFraction"); $x1 = Compute("1/2"); $x2 = Compute("-1/2"); @@ -56,12 +56,12 @@ $x2 = Compute("-1/2"); ########################### # Main text -if ($b == 0) { +if ($b == 0) { # no linear term on LHS BEGIN_PGML Solve [` {[$a]} \left( t - {[$u]} \right)^2 = {[$neg_c]} `]. Begin by using a substitution to simplify the equation. - [_______________]{List($x1,$x2)} [@ AnswerFormatHelp("numbers") @]* + [_______________]{List($x1,$x2)} [@ helpLink("numbers") @]* For more questions like this, go to section 2.6 numbers 37-41. @@ -71,7 +71,7 @@ END_PGML BEGIN_PGML Solve [` {[$a]} \left( t - {[$u]} \right)^2 + {[$b]} \left( t - {[$u]} \right) = {[$neg_c]} `]. Begin by using a substitution to simplify the equation. - [_______________]{List(-1,1,-3,3)} [@ AnswerFormatHelp("numbers") @]* + [_______________]{List(-1,1,-3,3)} [@ helpLink("numbers") @]* For more questions like this, go to section 2.6 numbers 37-41. @@ -83,7 +83,7 @@ $b = -$b; BEGIN_PGML Solve [` {[$a]} \left( t - {[$u]} \right)^2 - {[$b]} \left( t - {[$u]} \right) = {[$neg_c]} `]. Begin by using a substitution to simplify the equation. - [_______________]{List(1/2,-1/2)} [@ AnswerFormatHelp("numbers") @]* + [_______________]{List(1/2,-1/2)} [@ helpLink("numbers") @]* For more questions like this, go to section 2.6 numbers 37-41. diff --git a/Contrib/CCCS/CollegeAlgebra/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_10.pg b/Contrib/CCCS/CollegeAlgebra/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_10.pg index 88800a4c28..8bda094c38 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_10.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_10.pg @@ -13,7 +13,7 @@ ## Author(James Morski, Hint: Brittni Lorton, 10.28.2019) ## MO(1) ## KEYWORDS('college algebra', 'linear inequality') - + ############################################## DOCUMENT(); @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "contextInequalitySetBuilder.pl", "parserOneOf.pl", @@ -55,11 +55,11 @@ TEXT(beginproblem()); BEGIN_PGML -Solve the following inequality for [`x`]. Enter the answer in interval notation. +Solve the following inequality for [`x`]. Enter the answer in interval notation. [`-\dfrac{[$a]}{2}x \leq - \dfrac{[$c]}{[$d]}+\dfrac{[$e]}{8}x `] -[_______________]{$intans} [@ AnswerFormatHelp("intervals") @]* +[_______________]{$intans} [@ helpLink("intervals") @]* diff --git a/Contrib/CCCS/CollegeAlgebra/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_11.pg b/Contrib/CCCS/CollegeAlgebra/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_11.pg index e1fc67d0d6..2525c53ef7 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_11.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_11.pg @@ -11,7 +11,7 @@ ## Author(James Morski) ## MO(1) ## KEYWORDS('college algebra', 'linear inequality') - + ############################################## DOCUMENT(); @@ -20,7 +20,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "contextInequalitySetBuilder.pl", "parserOneOf.pl", @@ -55,7 +55,7 @@ Solve the following inequality for [`x`]. Enter the answer in interval notation [`[$a](x+[$b])+[$c] > [$d]x+[$e]+[$f]x`] -[_______________]{$intans} [@ AnswerFormatHelp("intervals") @]* +[_______________]{$intans} [@ helpLink("intervals") @]* END_PGML ############################ diff --git a/Contrib/CCCS/CollegeAlgebra/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_15.pg b/Contrib/CCCS/CollegeAlgebra/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_15.pg index 58699abb9d..f7727d8f15 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_15.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_15.pg @@ -11,7 +11,7 @@ ## Author(James Morski) ## MO(1) ## KEYWORDS('college algebra', 'absolute value linear inequality') - + ############################################## DOCUMENT(); @@ -20,7 +20,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "contextInequalitySetBuilder.pl", "parserOneOf.pl", @@ -50,11 +50,11 @@ TEXT(beginproblem()); BEGIN_PGML -Solve the following inequality involving absolute value. Enter the answer in interval notation. +Solve the following inequality involving absolute value. Enter the answer in interval notation. [`[$f] > [$b] `] -[____________________]{$intans} [@ AnswerFormatHelp("intervals") @]* +[____________________]{$intans} [@ helpLink("intervals") @]* @@ -63,9 +63,9 @@ END_PGML ############################ BEGIN_PGML_HINT -Remember that the absolute value of any expression will be positive. +Remember that the absolute value of any expression will be positive. -For example, [`|-5|=5`] and +For example, [`|-5|=5`] and [`|5-x|`] will always be positive, for any value of [`x`]. END_PGML_HINT diff --git a/Contrib/CCCS/CollegeAlgebra/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_17.pg b/Contrib/CCCS/CollegeAlgebra/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_17.pg index a2c0b3a7ab..1fd2212f40 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_17.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_17.pg @@ -11,7 +11,7 @@ ## Author(James Morski) ## MO(1) ## KEYWORDS('college algebra', 'absolute value linear inequality') - + ############################################## DOCUMENT(); @@ -21,7 +21,7 @@ loadMacros( "MathObjects.pl", "PGML.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "contextInequalitySetBuilder.pl", "parserOneOf.pl", "PGcourse.pl", @@ -46,8 +46,8 @@ $intans = Compute("(-inf, $leftint)U ($rightint,inf)"); $f=Formula("abs(($a)x-$b)"); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -57,13 +57,13 @@ TEXT(beginproblem()); BEGIN_PGML -Solve the following inequality involving absolute value. Enter the answer in interval notation. +Solve the following inequality involving absolute value. Enter the answer in interval notation. [` [$f]> [$c]`] -[_______________]{$intans} [@ AnswerFormatHelp("intervals") @]* +[_______________]{$intans} [@ helpLink("intervals") @]* -[$video]* +[$video]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_19.pg b/Contrib/CCCS/CollegeAlgebra/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_19.pg index aa5d51e41c..eface5fe5a 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_19.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_19.pg @@ -11,7 +11,7 @@ ## Author(James Morski) ## MO(1) ## KEYWORDS('college algebra', 'absolute value linear inequality') - + ############################################## DOCUMENT(); @@ -21,7 +21,7 @@ loadMacros( "MathObjects.pl", "PGML.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "contextInequalitySetBuilder.pl", "parserOneOf.pl", "PGcourse.pl", @@ -50,11 +50,11 @@ TEXT(beginproblem()); BEGIN_PGML -Solve the following inequality involving absolute value. Enter the answer in interval notation. +Solve the following inequality involving absolute value. Enter the answer in interval notation. [` [$f] + [$c] > [$d] `] - -[_______________]{$intans}[@ AnswerFormatHelp("intervals") @]* + +[_______________]{$intans}[@ helpLink("intervals") @]* diff --git a/Contrib/CCCS/CollegeAlgebra/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_21.pg b/Contrib/CCCS/CollegeAlgebra/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_21.pg index f30129063a..5138ad869f 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_21.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_21.pg @@ -11,7 +11,7 @@ ## Author(James Morski) ## MO(1) ## KEYWORDS('college algebra', 'absolute value linear inequality') - + ############################################## DOCUMENT(); @@ -19,7 +19,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "contextInequalitySetBuilder.pl", @@ -49,11 +49,11 @@ TEXT(beginproblem()); BEGIN_PGML -Solve the following inequality involving absolute value. Enter the answer in interval notation. +Solve the following inequality involving absolute value. Enter the answer in interval notation. [` [$f] \geq [$d] `] -[_______________]{$intans} [@ AnswerFormatHelp("intervals") @]* +[_______________]{$intans} [@ helpLink("intervals") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_28.pg b/Contrib/CCCS/CollegeAlgebra/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_28.pg index 3072f69ebd..59c24fec47 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_28.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_28.pg @@ -11,7 +11,7 @@ ## Author(James Morski) ## MO(1) ## KEYWORDS('college algebra', 'compound linear inequality') - + ############################################## DOCUMENT(); @@ -19,7 +19,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "contextInequalities.pl", "contextFraction.pl", @@ -56,7 +56,7 @@ Solve the following inequality for [`x`]. Enter the answer in interval notation [` [$a]<[$b]x+[$c] \leq [$d]`] -[_______________]{$intans} [@ AnswerFormatHelp("intervals") @]* +[_______________]{$intans} [@ helpLink("intervals") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_6.pg b/Contrib/CCCS/CollegeAlgebra/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_6.pg index 05a463e781..ff0c0630f7 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_6.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_6.pg @@ -11,7 +11,7 @@ ## Author(James Morski) ## MO(1) ## KEYWORDS('college algebra', 'linear inequality') - + ############################################## DOCUMENT(); @@ -22,7 +22,7 @@ loadMacros( "PGML.pl", "contextFraction.pl", "contextInequalitySetBuilder.pl", -"AnswerFormatHelp.pl", + "parserOneOf.pl", "PGcourse.pl", ); @@ -48,8 +48,8 @@ Context("Interval"); $intans = Compute("(-inf,$rightint]"); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -61,13 +61,13 @@ TEXT(beginproblem()); BEGIN_PGML -Solve the following inequality for [`x`]. Enter the answer in interval notation. +Solve the following inequality for [`x`]. Enter the answer in interval notation. [` [$a]x-[$b] \leq [$c]`] -[_______________]{$intans} [@ AnswerFormatHelp("intervals") @]* +[_______________]{$intans} [@ helpLink("intervals") @]* -[$video]* +[$video]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_7.pg b/Contrib/CCCS/CollegeAlgebra/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_7.pg index 9075ff1830..cd14f707aa 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_7.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_7.pg @@ -11,7 +11,7 @@ ## Author(James Morski) ## MO(1) ## KEYWORDS('college algebra', 'linear inequality') - + ############################################## DOCUMENT(); @@ -21,7 +21,7 @@ loadMacros( "MathObjects.pl", "PGML.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "contextInequalitySetBuilder.pl", "parserOneOf.pl", "PGcourse.pl", @@ -53,13 +53,13 @@ TEXT(beginproblem()); BEGIN_PGML -Solve the following inequality for [`x`]. Enter the answer in interval notation. +Solve the following inequality for [`x`]. Enter the answer in interval notation. [` [$a]x+[$b] \geq [$c]x-[$d]`] -[_______________]{$intans} [@ AnswerFormatHelp("intervals") @]* +[_______________]{$intans} [@ helpLink("intervals") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/2.7/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_2_7_440.pg b/Contrib/CCCS/CollegeAlgebra/2.7/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_2_7_440.pg index a1ed3565d8..4fe31f2dab 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.7/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_2_7_440.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.7/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_2_7_440.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -46,8 +46,8 @@ $ans2=Formula("($b-($d-$c))/$a"); $ans=List($ans1, $ans2); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -65,11 +65,11 @@ Solve the absolute value equation. If there is more than one correct answer, en [`|[$a]y-[$b]|+[$c]=[$d]`] -`y =` [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +`y =` [_________________]{$ans} [@ helpLink("numbers") @]* -[$video]* +[$video]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/2.7/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_2_7_442.pg b/Contrib/CCCS/CollegeAlgebra/2.7/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_2_7_442.pg index 583f76be74..f6a3963f9a 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.7/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_2_7_442.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.7/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_2_7_442.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -56,7 +56,7 @@ Solve the absolute value equation. If there is more than one correct answer, en [`2|x+[$b]|-[$c]=[$d]`] -`x =`[_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +`x =`[_________________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CollegeAlgebra/2.7/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_2_7_443.pg b/Contrib/CCCS/CollegeAlgebra/2.7/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_2_7_443.pg index 60e5c4b007..02354932fc 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.7/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_2_7_443.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.7/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_2_7_443.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -53,7 +53,7 @@ Solve the absolute value equation. If there is more than one correct answer, en [`3|x+[$a]|+[$c]=[$d]`] -`x =`[_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +`x =`[_________________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CollegeAlgebra/2.7/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_2_7_447.pg b/Contrib/CCCS/CollegeAlgebra/2.7/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_2_7_447.pg index fafef269fc..b24b197654 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.7/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_2_7_447.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.7/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_2_7_447.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -55,7 +55,7 @@ Solve the absolute value equation. If there is more than one correct answer, en [`[$a]|[$b]+z|+[$c]=[$d]`] -`z =`[_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +`z =`[_________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/2.7/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_2_7_449.pg b/Contrib/CCCS/CollegeAlgebra/2.7/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_2_7_449.pg index cbf7c27887..9736fa88a9 100644 --- a/Contrib/CCCS/CollegeAlgebra/2.7/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_2_7_449.pg +++ b/Contrib/CCCS/CollegeAlgebra/2.7/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_2_7_449.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -53,7 +53,7 @@ Solve the absolute value equation. If there is more than one correct answer, en [`\left|\dfrac{[$a]}{[$b]}t-[$c]\right|+[$d]=[$e]`] -`t =` [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +`t =` [_________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_15.pg b/Contrib/CCCS/CollegeAlgebra/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_15.pg index 45d3a1d9cc..99096e0e13 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_15.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_15.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserPopUp.pl", "parserImplicitEquation.pl", "PGML.pl", @@ -88,9 +88,9 @@ BEGIN_PGML Determine if the following relations represent [`y`] as a function of [`x`]. -+ [`` y=[$f1] ``] [___________]{$popup1} ++ [`` y=[$f1] ``] [___________]{$popup1} -+ [`` y=[$f2]``] [___________]{$popup2} ++ [`` y=[$f2]``] [___________]{$popup2} + [`` x=[$f3]``] [___________]{$popup3} diff --git a/Contrib/CCCS/CollegeAlgebra/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_27.pg b/Contrib/CCCS/CollegeAlgebra/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_27.pg index b27961e3b6..ffb4220b70 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_27.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_27.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPolynomial.pl", "PGML.pl", "PGcourse.pl", @@ -59,8 +59,8 @@ $ans6=Compute("-$b*a-$c"); #Below is the video that used to be here, it doesnt actually seem helpful to students in this question so we ae removing it for now. BPL Jan 2020 #$video = MODES( -#HTML=> -#'', +#HTML=> +#'', #TeX => #"An embedded YouTube video." #); @@ -78,17 +78,17 @@ BEGIN_PGML Evaluate [`f(x)=[$f]`] at each of the following values. Be sure to simplify your answer completely. -[`f([$d])=`] [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +[`f([$d])=`] [_______________]{$ans1} [@ helpLink("numbers") @]* -[`f([$e])=`] [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +[`f([$e])=`] [_______________]{$ans2} [@ helpLink("numbers") @]* -[`f(a)=`] [_______________]{$ans3} [@ AnswerFormatHelp("formulas") @]* +[`f(a)=`] [_______________]{$ans3} [@ helpLink("formulas") @]* -[`f(a+h)=`] [_______________]{$ans4} [@ AnswerFormatHelp("formulas") @]* +[`f(a+h)=`] [_______________]{$ans4} [@ helpLink("formulas") @]* -[`f(-a)=`] [_______________]{$ans5} [@ AnswerFormatHelp("formulas") @]* +[`f(-a)=`] [_______________]{$ans5} [@ helpLink("formulas") @]* -[`-f(a)=`] [_______________]{$ans6} [@ AnswerFormatHelp("formulas") @]* +[`-f(a)=`] [_______________]{$ans6} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_28.pg b/Contrib/CCCS/CollegeAlgebra/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_28.pg index 35b42d844d..6f31dda15d 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_28.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_28.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -23,7 +23,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -53,7 +53,7 @@ $ans3=Formula("$g*a**2+$b*a+$c")->reduce; $ans4=Formula("$g*a^2 +2*$g*a*h+$g*h^2+$b*a+$b*h+$c")->reduce; Context()->{error}{msg}{"Your answer is algebraically equivalent to the correct answer, but not in the expected form. Maybe it is not fully simplified. Maybe something is not completely factored or expanded. Maybe it is not in the expected form for some other reason."} = "Your answer is algebraically equivalent to the correct answer, but not in the expected, simplified, form."; - + Context("LimitedPolynomial-Strict"); Context()->variables->are(x=>'Real',a=>'Real',h=>'Real'); $ans5=Formula("$g*(a)**2-$b*(a)+$c")->reduce; @@ -67,17 +67,17 @@ BEGIN_PGML Evaluate [`f(x)=[$f]`] at each of the following values. Be sure to simplify your answer completely. -+ [`f([$d])=`] [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* ++ [`f([$d])=`] [_______________]{$ans1} [@ helpLink("numbers") @]* -+ [`f([$e])=`] [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* ++ [`f([$e])=`] [_______________]{$ans2} [@ helpLink("numbers") @]* -+ [`f(a)=`] [_______________]{$ans3} [@ AnswerFormatHelp("formulas") @]* ++ [`f(a)=`] [_______________]{$ans3} [@ helpLink("formulas") @]* -+ [`f(a+h)=`] [________________________________]{$ans4} [@ AnswerFormatHelp("formulas") @]* ++ [`f(a+h)=`] [________________________________]{$ans4} [@ helpLink("formulas") @]* -+ [`f(-a)=`] [_______________]{$ans5} [@ AnswerFormatHelp("formulas") @]* ++ [`f(-a)=`] [_______________]{$ans5} [@ helpLink("formulas") @]* -+ [`-f(a)=`] [_______________]{$ans6} [@ AnswerFormatHelp("formulas") @]* ++ [`-f(a)=`] [_______________]{$ans6} [@ helpLink("formulas") @]* END_PGML @@ -85,7 +85,7 @@ END_PGML BEGIN_PGML_HINT If the function is [`f(x)`], then [`f(-2)`] means that [`x`] is replaced with [`-2`]. -Therefore, if [`f(x) = 3x^2+1`], then +Therefore, if [`f(x) = 3x^2+1`], then [``\begin{aligned} f(-2) &= 3(-2)^2+1 \\ @@ -94,7 +94,7 @@ f(-2) &= 3(-2)^2+1 \\ \end{aligned} ``] -Also, if [`f(x) = 3x^2+1`], then +Also, if [`f(x) = 3x^2+1`], then [``\begin{aligned} f(a+h) &= 3(a+h)^2+1\\ diff --git a/Contrib/CCCS/CollegeAlgebra/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_29.pg b/Contrib/CCCS/CollegeAlgebra/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_29.pg index 7047eed1af..f9ea3cf64e 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_29.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_29.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -57,17 +57,17 @@ $ans6=Formula("-sqrt($b - a) - $c")->reduce; BEGIN_PGML Evaluate [`f(x)=[$f]`] at each of the following values: -+ [`f([$d])=`] [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* ++ [`f([$d])=`] [_______________]{$ans1} [@ helpLink("numbers") @]* -+ [`f([$b])=`] [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* ++ [`f([$b])=`] [_______________]{$ans2} [@ helpLink("numbers") @]* -+ [`f(a)=`] [_______________]{$ans3} [@ AnswerFormatHelp("formulas") @]* ++ [`f(a)=`] [_______________]{$ans3} [@ helpLink("formulas") @]* -+ [`f(a+h)=`] [_______________]{$ans4} [@ AnswerFormatHelp("formulas") @]* ++ [`f(a+h)=`] [_______________]{$ans4} [@ helpLink("formulas") @]* -+ [`f(-a)=`] [_______________]{$ans5} [@ AnswerFormatHelp("formulas") @]* ++ [`f(-a)=`] [_______________]{$ans5} [@ helpLink("formulas") @]* -+ [`-f(a)=`] [_______________]{$ans6} [@ AnswerFormatHelp("formulas") @]* ++ [`-f(a)=`] [_______________]{$ans6} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_30.pg b/Contrib/CCCS/CollegeAlgebra/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_30.pg index 89babf0ba4..1453821570 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_30.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_30.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextRationalFunction.pl", "PGML.pl", "PGcourse.pl", @@ -67,17 +67,17 @@ Context()->{error}{msg}{"Addition is allowed only between monomials"} = BEGIN_PGML Evaluate [``f(x)=[$f]``] at each of the following values. Be sure to simplify your answer completely. -+ [`f([$m])=`] [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* ++ [`f([$m])=`] [_______________]{$ans1} [@ helpLink("numbers") @]* -+ [`f([$n])=`] [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* ++ [`f([$n])=`] [_______________]{$ans2} [@ helpLink("numbers") @]* -+ [`f(a)=`] [_______________]{$ans3} [@ AnswerFormatHelp("formulas") @]* ++ [`f(a)=`] [_______________]{$ans3} [@ helpLink("formulas") @]* -+ [`f(a+h)=`] [_______________]{$ans4} [@ AnswerFormatHelp("formulas") @]* ++ [`f(a+h)=`] [_______________]{$ans4} [@ helpLink("formulas") @]* -+ [`f(-a)=`] [_______________]{$ans5} [@ AnswerFormatHelp("formulas") @]* ++ [`f(-a)=`] [_______________]{$ans5} [@ helpLink("formulas") @]* -+ [`-f(a)=`] [_______________]{$ans6} [@ AnswerFormatHelp("formulas") @]* ++ [`-f(a)=`] [_______________]{$ans6} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_31.pg b/Contrib/CCCS/CollegeAlgebra/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_31.pg index 96e90fc5d1..40b8dd1e41 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_31.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_31.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -58,17 +58,17 @@ $ans6=Formula("-abs(a - $b) + abs(a + $c)")->reduce; BEGIN_PGML Evaluate [`f(x)=[$f]`] at each of the following values: -+ [`f([$d])=`] [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* ++ [`f([$d])=`] [_______________]{$ans1} [@ helpLink("numbers") @]* -+ [`f([$e])=`] [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* ++ [`f([$e])=`] [_______________]{$ans2} [@ helpLink("numbers") @]* -+ [`f(a)=`] [_______________]{$ans3} [@ AnswerFormatHelp("formulas") @]* ++ [`f(a)=`] [_______________]{$ans3} [@ helpLink("formulas") @]* -+ [`f(a+h)=`] [_______________]{$ans4} [@ AnswerFormatHelp("formulas") @]* ++ [`f(a+h)=`] [_______________]{$ans4} [@ helpLink("formulas") @]* -+ [`f(-a)=`] [_______________]{$ans5} [@ AnswerFormatHelp("formulas") @]* ++ [`f(-a)=`] [_______________]{$ans5} [@ helpLink("formulas") @]* -+ [`-f(a)=`] [_______________]{$ans6} [@ AnswerFormatHelp("formulas") @]* ++ [`-f(a)=`] [_______________]{$ans6} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_35.pg b/Contrib/CCCS/CollegeAlgebra/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_35.pg index 407c981531..0488e5bf03 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_35.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_35.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -55,11 +55,11 @@ $ans2 = $g; BEGIN_PGML Let [` f(x) = [$f] `]. -Evaluate [`f([$c])=`] [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +Evaluate [`f([$c])=`] [_______________]{$ans1} [@ helpLink("numbers") @]* -Solve [`f(x)=[$d]`]. +Solve [`f(x)=[$d]`]. -+ `x=`[_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* ++ `x=`[_______________]{$ans2} [@ helpLink("numbers") @]* END_PGML @@ -73,7 +73,7 @@ If [`f(x) = 12x+7`] and you wish to solve [`f(x)=-7`] then you should set the fu 12x+7 &=-7 \\ 12x &=-14 \\ x &=\frac{-14}{12}\\ -x&=\frac{-7}{6} +x&=\frac{-7}{6} \end{aligned} ``] END_PGML_HINT diff --git a/Contrib/CCCS/CollegeAlgebra/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_37.pg b/Contrib/CCCS/CollegeAlgebra/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_37.pg index 85835d0cf1..5d6e64a636 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_37.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_37.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,11 +51,11 @@ $ans2=List(-$b/2); BEGIN_PGML Let [` f(x) = [$f] `]. -Evaluate [`f([$c])=`] [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +Evaluate [`f([$c])=`] [_______________]{$ans1} [@ helpLink("numbers") @]* -Solve [`f(x)=[$d]`]. +Solve [`f(x)=[$d]`]. -+ `x=`[_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* ++ `x=`[_______________]{$ans2} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_41.pg b/Contrib/CCCS/CollegeAlgebra/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_41.pg index eb66a1a9ce..36d2446200 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_41.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_41.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserPopUp.pl", "PGML.pl", @@ -61,8 +61,8 @@ $popup = PopUp( ); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -78,7 +78,7 @@ Use the vertical line test to determine whether the following graph shows a rela $BR $BR -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>300,height=>300,tex_size=>800 ) \} $BR @@ -92,7 +92,7 @@ Context()->normalStrings; BEGIN_PGML -[___________]{$popup} +[___________]{$popup} [$video]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_43.pg b/Contrib/CCCS/CollegeAlgebra/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_43.pg index cd9fdfb788..867f6f8b7b 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_43.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_43.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserPopUp.pl", "PGML.pl", @@ -52,7 +52,7 @@ $gr->lb( new Label(-.25,5.75,'y', $gr->lb( new Label(5.75,0.25,'x', 'red','center','middle')); -$refreshCachedImages = 1; +$refreshCachedImages = 1; Context("Interval"); $ans1=Interval("(-infinity,infinity)"); @@ -73,7 +73,7 @@ Use the vertical line test to determine whether the following graph shows a rela $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>300,height=>300,tex_size=>800 ) \} $BR (Click on graph to enlarge) diff --git a/Contrib/CCCS/CollegeAlgebra/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_45.pg b/Contrib/CCCS/CollegeAlgebra/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_45.pg index da55fa8db8..bedb6245f3 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_45.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_45.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserPopUp.pl", "PGML.pl", @@ -72,7 +72,7 @@ Use the vertical line test to determine whether the following graph shows a rela $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>300,height=>300,tex_size=>800 ) \} $BR (Click on graph to enlarge) diff --git a/Contrib/CCCS/CollegeAlgebra/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_47.pg b/Contrib/CCCS/CollegeAlgebra/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_47.pg index edd3a58f77..a5a2fc3771 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_47.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_47.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserPopUp.pl", "PGML.pl", @@ -72,7 +72,7 @@ Use the vertical line test to determine whether the following graph shows a rela $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>300,height=>300,tex_size=>800 ) \} $BR (Click on graph to enlarge) diff --git a/Contrib/CCCS/CollegeAlgebra/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_53.pg b/Contrib/CCCS/CollegeAlgebra/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_53.pg index 817d3238bc..5e5313d4a0 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_53.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_53.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserPopUp.pl", "PGML.pl", @@ -72,7 +72,7 @@ BEGIN_TEXT $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>400,height=>400,tex_size=>800 ) \} $BR (Click on graph to enlarge) @@ -85,13 +85,13 @@ Context()->normalStrings; BEGIN_PGML Evaluate [`f(0)`], and solve for [`f(x) = [$min]`]. If part b has more than one answer, input the larger number in the second field. Otherwise leave the second field blank. -(a) [`f(0) = `] [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +(a) [`f(0) = `] [_______________]{$ans1} [@ helpLink("numbers") @]* -(b) [`f(`] [_]{$ans2} [`) = [$min]`] [@ AnswerFormatHelp("numbers") @]* +(b) [`f(`] [_]{$ans2} [`) = [$min]`] [@ helpLink("numbers") @]* -[`f(`] [_]{$ans3} [`) = [$min]`] [@ AnswerFormatHelp("numbers") @]* +[`f(`] [_]{$ans3} [`) = [$min]`] [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_63.pg b/Contrib/CCCS/CollegeAlgebra/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_63.pg index 166084dbc0..8816dd7a54 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_63.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_63.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserPopUp.pl", "niceTables.pl", "PGML.pl", @@ -61,7 +61,7 @@ LayoutTable( [ ['\(x:\)' , '$x1' ,'$x2', '$x3'], ['\(y:\)' , '$y1' ,'$y2', '$y3'], - ], + ], midrules => 1, align => '| c | c | c | c |', center => 0, diff --git a/Contrib/CCCS/CollegeAlgebra/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_65.pg b/Contrib/CCCS/CollegeAlgebra/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_65.pg index 768715c290..794300251a 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_65.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_65.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserPopUp.pl", "niceTables.pl", "PGML.pl", @@ -61,7 +61,7 @@ LayoutTable( [ ['\(x:\)' , '$x1' ,'$x2', '$x3'], ['\(y:\)' , '$y1' ,'$y2', '$y3'], - ], + ], midrules => 1, align => '| c | c | c | c |', center => 0, diff --git a/Contrib/CCCS/CollegeAlgebra/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_66.pg b/Contrib/CCCS/CollegeAlgebra/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_66.pg index 488168c307..e8cf60f997 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_66.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_66.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserPopUp.pl", "niceTables.pl", "PGML.pl", @@ -72,7 +72,7 @@ LayoutTable( [ ['\(x:\)' , '0', '1' ,'2' ,'3' ,'4' ,'5' ,'6','7','8','9'], ['\(y:\)' , '$y0', $y1 ,$y2 ,$y3 ,$y4 ,$y5 ,$y6, $y7, $y8, $y9], - ], + ], midrules => 1, align => '| c | c | c | c | c | c | c | c | c | c | c |', center => 0, @@ -86,9 +86,9 @@ END_TEXT BEGIN_PGML -+ [`f([$ax]) = `] [_____]{$ay} [@ AnswerFormatHelp("numbers") @]* ++ [`f([$ax]) = `] [_____]{$ay} [@ helpLink("numbers") @]* -+ The [`x`] value such that [`f(x) = [$by]`] is [`x=`] [_____]{$bx} [@ AnswerFormatHelp("numbers") @]* ++ The [`x`] value such that [`f(x) = [$by]`] is [`x=`] [_____]{$bx} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_7.pg b/Contrib/CCCS/CollegeAlgebra/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_7.pg index fafe5b28e3..0c68b5db5a 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_7.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_7.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserPopUp.pl", "parserImplicitEquation.pl", "PGML.pl", @@ -35,8 +35,8 @@ $showPartialCorrectAnswers = 0; $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -85,9 +85,9 @@ BEGIN_PGML Determine if each of the following relations represents a function. -+ [` \{([$i1],[$d1]),([$i2],[$d2]),([$i3],[$d3])\} `] [___________]{$popup1} ++ [` \{([$i1],[$d1]),([$i2],[$d2]),([$i3],[$d3])\} `] [___________]{$popup1} -+ [` \{([$ck1],[$cf1]),([$ck2],[$cf2]),([$ck3],[$cf3])\} `] [___________]{$popup1} ++ [` \{([$ck1],[$cf1]),([$ck2],[$cf2]),([$ck3],[$cf3])\} `] [___________]{$popup1} [$video]* diff --git a/Contrib/CCCS/CollegeAlgebra/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_71.pg b/Contrib/CCCS/CollegeAlgebra/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_71.pg index 03eac6162f..e166c1e0a4 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_71.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_71.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -53,15 +53,15 @@ $ans5=$f->eval(x=>$g); BEGIN_PGML Evaluate [`f(x)=[$f]`] at the following values: -+ [`f([$b])=`] [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* ++ [`f([$b])=`] [_______________]{$ans1} [@ helpLink("numbers") @]* -+ [`f([$c])=`] [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* ++ [`f([$c])=`] [_______________]{$ans2} [@ helpLink("numbers") @]* -+ [`f([$d])=`] [_______________]{$ans3} [@ AnswerFormatHelp("numbers") @]* ++ [`f([$d])=`] [_______________]{$ans3} [@ helpLink("numbers") @]* -+ [`f([$e])=`] [_______________]{$ans4} [@ AnswerFormatHelp("numbers") @]* ++ [`f([$e])=`] [_______________]{$ans4} [@ helpLink("numbers") @]* -+ [`f([$g])=`] [_______________]{$ans5} [@ AnswerFormatHelp("numbers") @]* ++ [`f([$g])=`] [_______________]{$ans5} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_75.pg b/Contrib/CCCS/CollegeAlgebra/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_75.pg index f78ab9225e..57c604f057 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_75.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_75.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -55,9 +55,9 @@ $ans1=Formula("$ansf - $ansh")->reduce; # Main text BEGIN_PGML -Given the functions [`f(x)=[$f]`] and [`h(x)=[$h]`], evaluate the expression: +Given the functions [`f(x)=[$f]`] and [`h(x)=[$h]`], evaluate the expression: -[`f\left(\displaystyle\frac{7}{[$i]}\right)-h([$j])=`] [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +[`f\left(\displaystyle\frac{7}{[$i]}\right)-h([$j])=`] [_______________]{$ans1} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_9.pg b/Contrib/CCCS/CollegeAlgebra/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_9.pg index c428eb07fe..0d085498ba 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_9.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_9.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserPopUp.pl", "parserImplicitEquation.pl", "PGML.pl", @@ -91,9 +91,9 @@ BEGIN_PGML Determine if the following relations represent [`y`] as a function of [`x`]. -+ [` y=[$f1] `] [___________]{$popup1} ++ [` y=[$f1] `] [___________]{$popup1} -+ [`[$f2]+y=[$c]`] [___________]{$popup2} ++ [`[$f2]+y=[$c]`] [___________]{$popup2} + [`[$f3]+[$f32]=[$e]`] [___________]{$popup3} diff --git a/Contrib/CCCS/CollegeAlgebra/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_10.pg b/Contrib/CCCS/CollegeAlgebra/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_10.pg index a5cb02e455..58caf66c54 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_10.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_10.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -52,7 +52,7 @@ BEGIN_PGML Find the domain of [` f(x)=[$f] `]. Enter the solution in interval notation. -[_______________]{$ans} [@ AnswerFormatHelp("intervals") @]* +[_______________]{$ans} [@ helpLink("intervals") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_15.pg b/Contrib/CCCS/CollegeAlgebra/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_15.pg index 278fc856e6..bf430372bc 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_15.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_15.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -54,7 +54,7 @@ BEGIN_PGML Find the domain of [`` f(x)=[$f] ``]. Enter the solution in interval notation. -[_______________]{$ans} [@ AnswerFormatHelp("intervals") @]* +[_______________]{$ans} [@ helpLink("intervals") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_17.pg b/Contrib/CCCS/CollegeAlgebra/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_17.pg index a8b5a8945f..9a0661b25d 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_17.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_17.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -52,7 +52,7 @@ BEGIN_PGML Find the domain of [`` f(x)=[$f] ``]. Enter the solution in interval notation. -[_______________________]{$ans} [@ AnswerFormatHelp("intervals") @]* +[_______________________]{$ans} [@ helpLink("intervals") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_27.pg b/Contrib/CCCS/CollegeAlgebra/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_27.pg index 2265a2bd89..73b8cc7668 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_27.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_27.pg @@ -23,7 +23,7 @@ loadMacros( "PGnumericalmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", ); @@ -52,7 +52,7 @@ size=>[600,600] $gr->stamps( open_circle($a,$c,'blue') ); $gr->stamps( closed_circle($b,$d,'blue') ); -add_functions($gr, "$m*(x-$a)+$c for x in <$a,$b>". +add_functions($gr, "$m*(x-$a)+$c for x in <$a,$b>". " using color:blue and weight:3"); $refreshCachedImages=1; @@ -64,8 +64,8 @@ $ans1=Interval("($a,$b]"); $ans2=Interval("($c,$d]"); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -80,7 +80,7 @@ Find the domain and range of \( y=f(x) \) whose graph is given below. $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>300,height=>300,tex_size=>800 ) \} $BR (Click on graph to enlarge) @@ -88,11 +88,11 @@ $BR $BR $BR Domain: \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR $BR Range: \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BCENTER $BR $BR diff --git a/Contrib/CCCS/CollegeAlgebra/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_31.pg b/Contrib/CCCS/CollegeAlgebra/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_31.pg index fc0df2884d..8d06c6c6d1 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_31.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_31.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -62,11 +62,11 @@ $ans2=Interval("[-$a,1/$c*($e-$b)**2-$a]"); Context()->texStrings; BEGIN_TEXT $BR -Find the domain and range of \( y=f(x) \) whose graph is given below. +Find the domain and range of \( y=f(x) \) whose graph is given below. $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>300,height=>300,tex_size=>800 ) \} $BR (Click on graph to enlarge) @@ -74,11 +74,11 @@ $BR $BR $BR Domain: \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR $BR Range: \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR $BR $ECENTER diff --git a/Contrib/CCCS/CollegeAlgebra/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_32.pg b/Contrib/CCCS/CollegeAlgebra/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_32.pg index 858d95d445..3bcefe6d1a 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_32.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_32.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -63,7 +63,7 @@ Find the domain and range of \( y=f(x) \) whose graph is given below. $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>300,height=>300,tex_size=>800 ) \} $BR (Click on graph to enlarge) @@ -71,11 +71,11 @@ $BR $BR $BR Domain: \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR $BR Range: \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR $BR $ECENTER diff --git a/Contrib/CCCS/CollegeAlgebra/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_33.pg b/Contrib/CCCS/CollegeAlgebra/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_33.pg index b7569d5e2b..129f2d19e8 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_33.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_33.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -32,10 +32,10 @@ TEXT(beginproblem()); ########################### # Setup -$a=random(2,5); -$b=non_zero_random(0,5); +$a=random(2,5); +$b=non_zero_random(0,5); + - $gr = init_graph(-6,-6,6,6, axes=>[0,0], grid=>[12,12], @@ -65,18 +65,18 @@ Find the domain and range of the transformed square root function whose graph is $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>300,height=>300,tex_size=>800 ) \} $BR (Click on graph to enlarge) $BR $BR Domain: \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR $BR Range: \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR $BR $ECENTER diff --git a/Contrib/CCCS/CollegeAlgebra/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_39.pg b/Contrib/CCCS/CollegeAlgebra/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_39.pg index 1165b90419..f13eb9b9fd 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_39.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_39.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "contextPiecewiseFunction.pl", @@ -46,12 +46,12 @@ $range = "(-infinity, -$d]U($f,infinity)"; Context("PiecewiseFunction"); Context()->noreduce("(-x)-y"); -$fun = PiecewiseFunction("$c*x-$d if x <= 0 else $e*x+$f if x > 0")->reduce; +$fun = PiecewiseFunction("$c*x-$d if x <= 0 else $e*x+$f if x > 0")->reduce; $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -66,9 +66,9 @@ Graph the piecewise function to find the domain and range. Give the answers in [` f(x)=[$fun] `] - Domain: [_________________]{$domain} [@ AnswerFormatHelp("intervals") @]* + Domain: [_________________]{$domain} [@ helpLink("intervals") @]* - Range: [_________________]{$range} [@ AnswerFormatHelp("intervals") @]* + Range: [_________________]{$range} [@ helpLink("intervals") @]* [$video]* diff --git a/Contrib/CCCS/CollegeAlgebra/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_41.pg b/Contrib/CCCS/CollegeAlgebra/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_41.pg index ae339a4680..a3747c9add 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_41.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_41.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "contextPiecewiseFunction.pl", "PGML.pl", @@ -45,7 +45,7 @@ $range = Interval("[0,infinity)"); Context("PiecewiseFunction"); Context()->noreduce("(-x)-y"); -$fun = PiecewiseFunction("$d if x < -$a else x**2 if x >= -$a")->reduce; +$fun = PiecewiseFunction("$d if x < -$a else x**2 if x >= -$a")->reduce; ############################################## @@ -57,9 +57,9 @@ Graph the function to find the domain and range. Give the answers in interval n [` f(x)=[$fun] `] - Domain: [_________________]{$domain} [@ AnswerFormatHelp("intervals") @]* + Domain: [_________________]{$domain} [@ helpLink("intervals") @]* - Range: [_________________]{$range} [@ AnswerFormatHelp("intervals") @]* + Range: [_________________]{$range} [@ helpLink("intervals") @]* diff --git a/Contrib/CCCS/CollegeAlgebra/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_44.pg b/Contrib/CCCS/CollegeAlgebra/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_44.pg index f5f47eaf65..d82745ad96 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_44.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_44.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -50,7 +50,7 @@ $domain = Interval("(-infinity,infinity)"); if ($d+$a*$c > $f-$a*$e) { $range = Interval("(-infinity, $d+$a*$c)"); -} else { +} else { $range = Interval("(-infinity, $f-$a*$e]"); } @@ -65,7 +65,7 @@ $BR Graph the piecewise function to find its domain and range. $max $BR \[ -f(x) = +f(x) = \left\lbrace \begin{array}{lcl} $f1, && \mbox{ if } x < $a, \\ @@ -81,10 +81,10 @@ $BR $BR Domain: \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR Range: \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR diff --git a/Contrib/CCCS/CollegeAlgebra/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_45.pg b/Contrib/CCCS/CollegeAlgebra/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_45.pg index 21eb44fd7a..20a828e22d 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_45.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_45.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "contextPiecewiseFunction.pl", "PGML.pl", @@ -53,11 +53,11 @@ $range = Interval("(-infinity, -$d-$c*$b)U(sqrt($a),infinity)"); Context("PiecewiseFunction"); Context()->noreduce("(-x)-y"); -$fun = PiecewiseFunction("$c*x-$d if x < -$b else sqrt(x) if x > $a")->reduce; +$fun = PiecewiseFunction("$c*x-$d if x < -$b else sqrt(x) if x > $a")->reduce; $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -67,13 +67,13 @@ TeX => BEGIN_PGML -Graph the piecewise function to find its domain and range. +Graph the piecewise function to find its domain and range. [` f(x)=[$fun] `] - Domain: [_________________]{$domain} [@ AnswerFormatHelp("intervals") @]* + Domain: [_________________]{$domain} [@ helpLink("intervals") @]* - Range: [_________________]{$range} [@ AnswerFormatHelp("intervals") @]* + Range: [_________________]{$range} [@ helpLink("intervals") @]* [$video]* diff --git a/Contrib/CCCS/CollegeAlgebra/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_47.pg b/Contrib/CCCS/CollegeAlgebra/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_47.pg index 0f4001ca77..2aa4cdd829 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_47.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_47.pg @@ -17,7 +17,7 @@ # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PG.pl", @@ -28,7 +28,7 @@ loadMacros( "PGgraphmacros.pl", "extraAnswerEvaluators.pl", "contextPiecewiseFunction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,13 +48,13 @@ Context()->noreduce("(-x)-y"); $f1=Formula("$a"); $f2=Formula("$b"); -$fun = PiecewiseFunction("$f1 if x < 0 else $f2 if x >= 0")->reduce; +$fun = PiecewiseFunction("$f1 if x < 0 else $f2 if x >= 0")->reduce; Context("Numeric"); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -66,13 +66,13 @@ Given the piecewise function, find the function values. [` f(x)=[$fun] `] - `f([$c])=` [_________________]{if ($c<0) {$f1->eval(x=>$c)} else{$f2->eval(x=>$c)}} [@ AnswerFormatHelp("numbers") @]* + `f([$c])=` [_________________]{if ($c<0) {$f1->eval(x=>$c)} else{$f2->eval(x=>$c)}} [@ helpLink("numbers") @]* - `f(0)=` [_________________]{if (0<0) {$f1->eval(x=>0)} else{$f2->eval(x=>0)}}[@ AnswerFormatHelp("numbers") @]* + `f(0)=` [_________________]{if (0<0) {$f1->eval(x=>0)} else{$f2->eval(x=>0)}}[@ helpLink("numbers") @]* - `f([$d])=` [_________________]{if ($d<0) {$f1->eval(x=>$d)} else{$f2->eval(x=>$d)}} [@ AnswerFormatHelp("numbers") @]* + `f([$d])=` [_________________]{if ($d<0) {$f1->eval(x=>$d)} else{$f2->eval(x=>$d)}} [@ helpLink("numbers") @]* - `f([$e])=` [_________________]{if ($e<0) {$f1->eval(x=>$e)} else{$f2->eval(x=>$e)}} [@ AnswerFormatHelp("numbers") @]* + `f([$e])=` [_________________]{if ($e<0) {$f1->eval(x=>$e)} else{$f2->eval(x=>$e)}} [@ helpLink("numbers") @]* [$video]* diff --git a/Contrib/CCCS/CollegeAlgebra/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_49.pg b/Contrib/CCCS/CollegeAlgebra/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_49.pg index 51210a65a7..a01a003daa 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_49.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_49.pg @@ -17,7 +17,7 @@ # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PG.pl", @@ -28,7 +28,7 @@ loadMacros( "PGgraphmacros.pl", "extraAnswerEvaluators.pl", "contextPiecewiseFunction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,7 +51,7 @@ Context()->noreduce("(-x)-y"); $f1=Formula("$a*x+$f"); $f2=Formula("$b*x+$g"); -$fun = PiecewiseFunction("$f1 if x < $h else $f2 if x >= $h")->reduce; +$fun = PiecewiseFunction("$f1 if x < $h else $f2 if x >= $h")->reduce; Context("Numeric"); @@ -62,13 +62,13 @@ Given the piecewise function, find the function values. [` f(x)=[$fun] `] - [`f([$c])=`] [_________________]{if ($c<$h) {$f1->eval(x=>$c)} else{$f2->eval(x=>$c)}} [@ AnswerFormatHelp("numbers") @]* + [`f([$c])=`] [_________________]{if ($c<$h) {$f1->eval(x=>$c)} else{$f2->eval(x=>$c)}} [@ helpLink("numbers") @]* - [`f(0)=`] [_________________]{if (0<$h) {$f1->eval(x=>0)} else{$f2->eval(x=>0)}}[@ AnswerFormatHelp("numbers") @]* + [`f(0)=`] [_________________]{if (0<$h) {$f1->eval(x=>0)} else{$f2->eval(x=>0)}}[@ helpLink("numbers") @]* - [`f([$d])=`] [_________________]{if ($d<$h) {$f1->eval(x=>$d)} else{$f2->eval(x=>$d)}} [@ AnswerFormatHelp("numbers") @]* + [`f([$d])=`] [_________________]{if ($d<$h) {$f1->eval(x=>$d)} else{$f2->eval(x=>$d)}} [@ helpLink("numbers") @]* - [`f([$e])=`] [_________________]{if ($e<$h) {$f1->eval(x=>$e)} else{$f2->eval(x=>$e)}} [@ AnswerFormatHelp("numbers") @]* + [`f([$e])=`] [_________________]{if ($e<$h) {$f1->eval(x=>$e)} else{$f2->eval(x=>$e)}} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_51.pg b/Contrib/CCCS/CollegeAlgebra/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_51.pg index 8a363a67f7..000f91a299 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_51.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_51.pg @@ -17,7 +17,7 @@ # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PG.pl", @@ -28,7 +28,7 @@ loadMacros( "PGgraphmacros.pl", "extraAnswerEvaluators.pl", "contextPiecewiseFunction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -54,7 +54,7 @@ $f1=Formula("$a*x+$f"); $f2=Formula("$e"); $f3=Formula("$b*x+$g"); -$fun = PiecewiseFunction("$f1 if x < $h else $f2 if $h <= x < $i else $f3 if x>=$i")->reduce; +$fun = PiecewiseFunction("$f1 if x < $h else $f2 if $h <= x < $i else $f3 if x>=$i")->reduce; Context("Numeric"); @@ -65,13 +65,13 @@ Graph the function to find the function values. [` f(x)=[$fun] `] - [`f([$c])=`] [_________________]{if ($c<$h) {$f1->eval(x=>$c)} elsif ($c>=$i) {$f3->eval(x=>$c)} else{$f2->eval(x=>$c)}} [@ AnswerFormatHelp("numbers") @]* + [`f([$c])=`] [_________________]{if ($c<$h) {$f1->eval(x=>$c)} elsif ($c>=$i) {$f3->eval(x=>$c)} else{$f2->eval(x=>$c)}} [@ helpLink("numbers") @]* - [`f(0)=`] [_________________]{if (0<$h) {$f1->eval(x=>0)} elsif (0>=$i) {$f3->eval(x=>0)} else{$f2->eval(x=>0)}}[@ AnswerFormatHelp("numbers") @]* + [`f(0)=`] [_________________]{if (0<$h) {$f1->eval(x=>0)} elsif (0>=$i) {$f3->eval(x=>0)} else{$f2->eval(x=>0)}}[@ helpLink("numbers") @]* - [`f([$d])=`] [_________________]{if ($d<$h) {$f1->eval(x=>$d)} elsif ($d>=$i) {$f3->eval(x=>$d)} else{$f2->eval(x=>$d)}} [@ AnswerFormatHelp("numbers") @]* + [`f([$d])=`] [_________________]{if ($d<$h) {$f1->eval(x=>$d)} elsif ($d>=$i) {$f3->eval(x=>$d)} else{$f2->eval(x=>$d)}} [@ helpLink("numbers") @]* - [`f([$e])=`] [_________________]{if ($e<$h) {$f1->eval(x=>$e)} elsif ($e>=$i) {$f3->eval(x=>$e)} else{$f2->eval(x=>$e)}} [@ AnswerFormatHelp("numbers") @]* + [`f([$e])=`] [_________________]{if ($e<$h) {$f1->eval(x=>$e)} elsif ($e>=$i) {$f3->eval(x=>$e)} else{$f2->eval(x=>$e)}} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_6.pg b/Contrib/CCCS/CollegeAlgebra/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_6.pg index 30a42328c6..4c9ab8862a 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_6.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_6.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -43,8 +43,8 @@ Context("Interval"); $ans=Compute("(-infinity,infinity)"); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -57,7 +57,7 @@ BEGIN_PGML Find the domain of [` f(x)=[$f] `]. Enter the solution in interval notation. -[_____________________]{$ans} [@ AnswerFormatHelp("intervals") @]* +[_____________________]{$ans} [@ helpLink("intervals") @]* [$video]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_8.pg b/Contrib/CCCS/CollegeAlgebra/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_8.pg index 656d6412d3..2bb713447b 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_8.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_8.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -45,8 +45,8 @@ $ans=Compute("[$b,infinity)"); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -59,7 +59,7 @@ BEGIN_PGML Find the domain of [` f(x)=[$f] `]. Enter the solution in interval notation. -[_______________]{$ans} [@ AnswerFormatHelp("intervals") @]* +[_______________]{$ans} [@ helpLink("intervals") @]* [$video]* diff --git a/Contrib/CCCS/CollegeAlgebra/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_StepPractice.pg b/Contrib/CCCS/CollegeAlgebra/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_StepPractice.pg index a1897d1981..d035df54fd 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_StepPractice.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_StepPractice.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -68,7 +68,7 @@ Find the domain and range of \( y=f(x) \) whose graph is given below. $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>200,height=>200,tex_size=>800 ) \} $BR (Click on graph to enlarge) @@ -76,11 +76,11 @@ $BCENTER $BR $BR Domain: \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR $BR Range: \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR $BR diff --git a/Contrib/CCCS/CollegeAlgebra/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_VIDEO.pg b/Contrib/CCCS/CollegeAlgebra/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_VIDEO.pg index b5283bd391..27b792d76d 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_VIDEO.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_VIDEO.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -62,7 +62,7 @@ $BR Graph the piecewise function to find its domain and range. $BR \[ -f(x) = +f(x) = \left\lbrace \begin{array}{lcl} $f1, && \mbox{ if } x < -$a, \\ @@ -78,10 +78,10 @@ $BR $BR Domain: \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR Range: \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR diff --git a/Contrib/CCCS/CollegeAlgebra/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_VIDEO_1.pg b/Contrib/CCCS/CollegeAlgebra/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_VIDEO_1.pg index 0c42a56fe2..6d469942fd 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_VIDEO_1.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_VIDEO_1.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "contextPiecewiseFunction.pl", @@ -45,21 +45,21 @@ $f = random(3,10,1); Context("PiecewiseFunction"); Context()->noreduce("(-x)-y"); -$fun = PiecewiseFunction("$c*x+$d if x < 1 else -$e*x+$f if x >= 1")->reduce; +$fun = PiecewiseFunction("$c*x+$d if x < 1 else -$e*x+$f if x >= 1")->reduce; $domain = Interval("(-infinity,infinity)"); if ($d+$c > $f-$e) { $range = Interval("(-infinity, $d+$c)"); -} else { +} else { $range = Interval("(-infinity, $f-$e]"); } Context("Interval"); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -71,16 +71,16 @@ BEGIN_PGML >> [$video]* << ->> YouTube video of Craig Faulhaber, mathemagician, embedded using an iframe. << +>> YouTube video of Craig Faulhaber, mathemagician, embedded using an iframe. << >> If the video does not work, [@ htmlLink("https://youtu.be/RxnkI19AFb4","click here to go to YouTube directly.") @]* << -Graph the piecewise function to find the domain and range +Graph the piecewise function to find the domain and range [` f(x)=[$fun] `]. - Domain: [_______________]{$domain} [@ AnswerFormatHelp("intervals") @]* + Domain: [_______________]{$domain} [@ helpLink("intervals") @]* - Range: [_______________]{$range} [@ AnswerFormatHelp("intervals") @]* + Range: [_______________]{$range} [@ helpLink("intervals") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_11.pg b/Contrib/CCCS/CollegeAlgebra/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_11.pg index ddd90b8ba4..00cc18acf6 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_11.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_11.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPolynomial.pl", "PGML.pl", "PGcourse.pl", @@ -52,7 +52,7 @@ $ans=$ans; BEGIN_PGML Find the average rate of change for [``f(t)=[$f]``] over the interval [`[[$c],[$c]+h] `]. Simplify your answer completely. -[_______________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[_______________________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_16.pg b/Contrib/CCCS/CollegeAlgebra/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_16.pg index 24730e4d10..6b0872d43b 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_16.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_16.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -65,7 +65,7 @@ Let the graph of \( y=f(x) \) be given below. $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>400,height=>400,tex_size=>800 ) \} $BR (Click on graph to enlarge) @@ -73,7 +73,7 @@ $BR $BR $BR Estimate the average rate of change for the graph above from \(x=1\) to \(x=4\). \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $ECENTER END_TEXT Context()->normalStrings; diff --git a/Contrib/CCCS/CollegeAlgebra/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_17.pg b/Contrib/CCCS/CollegeAlgebra/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_17.pg index 6a8f4bc931..ee7d949b91 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_17.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_17.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -65,7 +65,7 @@ Let the graph of \( y=f(x) \) be given below. $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>400,height=>400,tex_size=>800 ) \} $BR (Click on graph to enlarge) @@ -73,7 +73,7 @@ $BR $BR $BR Estimate the average rate of change for the graph above from \(x=2\) to \(x=3\). \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $ECENTER END_TEXT Context()->normalStrings; diff --git a/Contrib/CCCS/CollegeAlgebra/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_18.pg b/Contrib/CCCS/CollegeAlgebra/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_18.pg index 6d55851f64..6ba006846e 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_18.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_18.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserPopUp.pl", "contextLimitedPoint.pl", "PGML.pl", @@ -72,7 +72,7 @@ Find the intervals where the function \( y=f(x) \), whose graph is given below, $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>400,height=>400,tex_size=>800 ) \} $BR (Click on graph to enlarge) @@ -82,11 +82,11 @@ Context()->normalStrings; BEGIN_PGML ->>Increasing: [___________]{$ans1}[@ AnswerFormatHelp("formulas") @]*<< +>>Increasing: [___________]{$ans1}[@ helpLink("formulas") @]*<< ->>Decreasing: [___________]{$ans2}[@ AnswerFormatHelp("formulas") @]*<< +>>Decreasing: [___________]{$ans2}[@ helpLink("formulas") @]*<< ->>Absolute minimum: [______]{$popup1}[___________]{$ans3}[@ AnswerFormatHelp("numbers") @]*<< +>>Absolute minimum: [______]{$popup1}[___________]{$ans3}[@ helpLink("numbers") @]*<< END_PGML @@ -99,7 +99,7 @@ size=>[600,600] ); #add function to graph -add_functions($gr, "0.5*(x-3)**2-1 for x in <-10,10>" . +add_functions($gr, "0.5*(x-3)**2-1 for x in <-10,10>" . " using color:blue and weight:3"); @@ -108,7 +108,7 @@ $gr->gifName($gr->gifName()."$in"); ############################ BEGIN_PGML_HINT -A function [`f`] is an increasing function on an open interval if [`f(b)>f(a)`] for any two input values [`a`] and [`b`] in the given interval where [`b>a`]. +A function [`f`] is an increasing function on an open interval if [`f(b)>f(a)`] for any two input values [`a`] and [`b`] in the given interval where [`b>a`]. A function [`f`] is a decreasing function on an open interval if [`f(b)a`]. diff --git a/Contrib/CCCS/CollegeAlgebra/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_22.pg b/Contrib/CCCS/CollegeAlgebra/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_22.pg index 1c93747443..0b74a22f09 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_22.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_22.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserPopUp.pl", "PGML.pl", @@ -88,7 +88,7 @@ Find the intervals where the function \( y=f(x) \), whose graph is given below, $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>400,height=>400,tex_size=>800 ) \} $BR (Click on graph to enlarge) @@ -100,20 +100,20 @@ Context()->normalStrings; BEGIN_PGML ->>Increasing: [_______________]{$ans1} [@ AnswerFormatHelp("intervals") @]*<< +>>Increasing: [_______________]{$ans1} [@ helpLink("intervals") @]*<< ->>Decreasing: [________________]{$ans2} [@ AnswerFormatHelp("intervals") @]*<< +>>Decreasing: [________________]{$ans2} [@ helpLink("intervals") @]*<< ->>Local minimum: [______]{$popup1} [_________]{$ans4} [@ AnswerFormatHelp("numbers") @]*<< +>>Local minimum: [______]{$popup1} [_________]{$ans4} [@ helpLink("numbers") @]*<< ->>Local maximum: [______]{$popup1} [_________]{$ans3} [@ AnswerFormatHelp("numbers") @]*<< +>>Local maximum: [______]{$popup1} [_________]{$ans3} [@ helpLink("numbers") @]*<< END_PGML ############################ BEGIN_PGML_HINT -A function [`f`] is an increasing function on an open interval if [`f(b)>f(a)`] for any two input values [`a`] and [`b`] in the given interval where [`b>a`]. +A function [`f`] is an increasing function on an open interval if [`f(b)>f(a)`] for any two input values [`a`] and [`b`] in the given interval where [`b>a`]. A function [`f`] is a decreasing function on an open interval if [`f(b)a`]. diff --git a/Contrib/CCCS/CollegeAlgebra/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_23.pg b/Contrib/CCCS/CollegeAlgebra/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_23.pg index 370f37a327..58f95f36c6 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_23.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_23.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", ); @@ -70,8 +70,8 @@ $ans3 = Compute("$c*(1/3*(-2+$a-$a)**3-4(-2+$a-$a))+$b"); $ans4 = Compute("$c*(1/3*(2+$a-$a)**3-4(2+$a-$a))+$b"); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -87,7 +87,7 @@ Find the intervals where the function \( y=f(x) \), whose graph is given below, $BR $BR -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>400,height=>400,tex_size=>800 ) \} $BR (Click on graph to enlarge) @@ -95,19 +95,19 @@ $BR $BR $BR Increasing: \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR $BR Decreasing: \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR $BR Local maximum y = \{ ans_rule(20) \} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} $BR $BR Local minimum y = \{ ans_rule(20) \} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} $BR $BR diff --git a/Contrib/CCCS/CollegeAlgebra/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_24.pg b/Contrib/CCCS/CollegeAlgebra/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_24.pg index e991527d58..1c12a27c4b 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_24.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_24.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -63,7 +63,7 @@ Find the intervals where the function \( y=f(x) \), whose graph is given below, $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>400,height=>400,tex_size=>800 ) \} $BR (Click on graph to enlarge) @@ -71,15 +71,15 @@ $BR $BR $BR Increasing: \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR $BR Decreasing: \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR $BR Absolute minimum y = \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $ECENTER END_TEXT Context()->normalStrings; diff --git a/Contrib/CCCS/CollegeAlgebra/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_25.pg b/Contrib/CCCS/CollegeAlgebra/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_25.pg index 60bfc88408..fd3bfbd15d 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_25.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_25.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -63,22 +63,22 @@ Find the intervals where the function \( y=f(x) \), whose graph is given below, $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>400,height=>400,tex_size=>800 ) \} $BR (Click on graph to enlarge) $BR $BR Increasing: \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR $BR Decreasing: \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR $BR Absolute maximum y = \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $ECENTER END_TEXT Context()->normalStrings; diff --git a/Contrib/CCCS/CollegeAlgebra/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_26.pg b/Contrib/CCCS/CollegeAlgebra/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_26.pg index ba47d2ccbe..3687929fdc 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_26.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_26.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "niceTables.pl", "PGML.pl", "PGcourse.pl", @@ -60,7 +60,7 @@ LayoutTable( [ ['Year' , '1998' ,'1999' ,'2000' ,'2001' ,'2002' ,'2003','2004','2005','2006'], ['Sales (millions of dollars)' , '201' ,'219' ,'233' ,$a ,$b ,'251',$c,'243','233'], - ], + ], midrules => 1, align => '| c | c | c | c | c | c | c | c | c | c |', center => 0, diff --git a/Contrib/CCCS/CollegeAlgebra/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_44.pg b/Contrib/CCCS/CollegeAlgebra/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_44.pg index 18339f8bb1..7ecb2aab1a 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_44.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_44.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "niceTables.pl", "PGML.pl", "PGcourse.pl", diff --git a/Contrib/CCCS/CollegeAlgebra/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_45.pg b/Contrib/CCCS/CollegeAlgebra/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_45.pg index c8d20d361b..50d4eb7885 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_45.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_45.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "niceTables.pl", "PGML.pl", "PGcourse.pl", diff --git a/Contrib/CCCS/CollegeAlgebra/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_7a.pg b/Contrib/CCCS/CollegeAlgebra/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_7a.pg index 4381c76cc1..0c8eaac6ac 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_7a.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_7a.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -43,8 +43,8 @@ Context()->operators->undefine("/"); $ans= $a; $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -55,7 +55,7 @@ TeX => BEGIN_PGML Find the average rate of change for [``f(x)=[$f]``] over the interval [`[[$x1],[$x2]] `]. Be sure to simplify the answer. -[_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans} [@ helpLink("numbers") @]* [$video]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_7b.pg b/Contrib/CCCS/CollegeAlgebra/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_7b.pg index ad6e760d96..79045ca747 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_7b.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_7b.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPolynomial.pl", "PGML.pl", "PGcourse.pl", @@ -58,7 +58,7 @@ $ans= $num/$den; BEGIN_PGML Find the average rate of change for [``f(x)=[$f]``] over the interval [`[[$x1],[$x2]] `]. Be sure to simplify the answer. -[_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_9.pg b/Contrib/CCCS/CollegeAlgebra/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_9.pg index 424500b3d2..e3b2b77711 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_9.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_9.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,7 +50,7 @@ $ans=Compute("2*$a*x+$a*h")->reduce; BEGIN_PGML Find the average rate of change for [``f(x)=[$f]``] over the interval [`[x,x+h] `]. -[_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup1.pg b/Contrib/CCCS/CollegeAlgebra/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup1.pg index 9ef4f54a9a..f7971f17eb 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup1.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup1.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "contextForm.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,8 +51,8 @@ Context()->{error}{msg}{"Your answer is algebraically equivalent to the correct "Your answer is algebraically equivalent to the correct answer, but not in the expected, simplified, form."; $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -64,7 +64,7 @@ TeX => BEGIN_PGML Find and simplify the difference quotient for [``f(x)=[$f]``]. Be sure to completely simplify for full credit. -[`` \frac{f(x+h)-f(x)}{h}=``] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`` \frac{f(x+h)-f(x)}{h}=``] [_______________]{$ans} [@ helpLink("numbers") @]* [$video]* diff --git a/Contrib/CCCS/CollegeAlgebra/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup2.pg b/Contrib/CCCS/CollegeAlgebra/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup2.pg index a66e91c6fb..62f63e7849 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup2.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup2.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextForm.pl", "PGML.pl", "PGcourse.pl", @@ -57,7 +57,7 @@ Context()->{error}{msg}{"Your answer is algebraically equivalent to the correct BEGIN_PGML Find and simplify the difference quotient for [``f(x)=[$f]``]. Be sure to completely simplify for full credit. -[`` \frac{f(x+h)-f(x)}{h}=``] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`` \frac{f(x+h)-f(x)}{h}=``] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup3.pg b/Contrib/CCCS/CollegeAlgebra/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup3.pg index 75b841e2f5..4b1ed89e29 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup3.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup3.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextForm.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -56,7 +56,7 @@ Context()->{error}{msg}{"Your answer is algebraically equivalent to the correct BEGIN_PGML Find and simplify the difference quotient for [``f(x)=[$f]``]. Be sure to completely simplify for full credit. -[`` \frac{f(x+h)-f(x)}{h}=``] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`` \frac{f(x+h)-f(x)}{h}=``] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup4.pg b/Contrib/CCCS/CollegeAlgebra/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup4.pg index ca6ac46082..ff1a196237 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup4.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup4.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,7 +48,7 @@ $ans = $ans->with(test_at =>[[0,5],[0,-5]]); BEGIN_PGML Find and simplify the difference quotient for [``f(x)=[$f]``]. Be sure to completely simplify for full credit. -[`` \frac{f(x+h)-f(x)}{h}=``] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`` \frac{f(x+h)-f(x)}{h}=``] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup5.pg b/Contrib/CCCS/CollegeAlgebra/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup5.pg index 31ab86875e..8b000ef437 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup5.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup5.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextForm.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -55,7 +55,7 @@ Context()->{error}{msg}{"Your answer is algebraically equivalent to the correct BEGIN_PGML Find and simplify the difference quotient for [``f(x)=[$f]``]. Be sure to completely simplify for full credit. -[`` \frac{f(x+h)-f(x)}{h}=``] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`` \frac{f(x+h)-f(x)}{h}=``] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup6.pg b/Contrib/CCCS/CollegeAlgebra/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup6.pg index efb57ac558..1065d8c545 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup6.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup6.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,7 +48,7 @@ $ans = $ans->with(test_at =>[[0,5],[0,-5]]); BEGIN_PGML Find and simplify the difference quotient for [``f(x)=[$f]``]. Be sure to completely simplify for full credit. -[`` \frac{f(x+h)-f(x)}{h}=``] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`` \frac{f(x+h)-f(x)}{h}=``] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/3.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_A.pg b/Contrib/CCCS/CollegeAlgebra/3.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_A.pg index a67ac193f6..5f68fb4110 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_A.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_A.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,8 +51,8 @@ $prod=(($x**2)+($a*$x))*($b-($x**2)); $quot=(($x**2)+($a*$x))/($b-($x**2)); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -62,17 +62,17 @@ TeX => # Main text BEGIN_PGML -Let [`f(x) = [$f]`] and [`g(x) = [$g]`]. +Let [`f(x) = [$f]`] and [`g(x) = [$g]`]. + ++ [` (f + g)([$x]) = `] [_______________]{$sum} [@ helpLink("numbers") @]* -+ [` (f + g)([$x]) = `] [_______________]{$sum} [@ AnswerFormatHelp("numbers") @]* ++ [` (f - g)([$x]) = `] [_______________]{$diff} [@ helpLink("numbers") @]* -+ [` (f - g)([$x]) = `] [_______________]{$diff} [@ AnswerFormatHelp("numbers") @]* ++ [` (fg)([$x]) = `] [_______________]{$prod} [@ helpLink("numbers") @]* -+ [` (fg)([$x]) = `] [_______________]{$prod} [@ AnswerFormatHelp("numbers") @]* ++ [` \left(\frac{f}{g}\right)([$x]) = `] [_______________]{$quot} [@ helpLink("numbers") @]* -+ [` \left(\frac{f}{g}\right)([$x]) = `] [_______________]{$quot} [@ AnswerFormatHelp("numbers") @]* - [$video]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/3.4/Openstax_AlgTrig_AT-1-001-AS_3_4_43.pg b/Contrib/CCCS/CollegeAlgebra/3.4/Openstax_AlgTrig_AT-1-001-AS_3_4_43.pg index 5747631ca0..07dcac9e5c 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.4/Openstax_AlgTrig_AT-1-001-AS_3_4_43.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.4/Openstax_AlgTrig_AT-1-001-AS_3_4_43.pg @@ -12,14 +12,14 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "MathObjects.pl", "PGstandard.pl", "PGgraphmacros.pl", - "AnswerFormatHelp.pl", + "PGchoicemacros.pl", "unionTables.pl", "PGML.pl", @@ -31,7 +31,7 @@ $refreshCachedImages = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); do { @@ -88,35 +88,35 @@ for ($i = 0; $i < $gnum; $i++) { Context()->strings->add("undefined"=>{}); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BR $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], "$SPACE $SPACE $SPACE $SPACE", $figs[1]]). TableSpace(5,25). AlignedRow(["\(y = f(x)\)", "$SPACE $SPACE $SPACE $SPACE", "\(y = g(x)\)"]). EndTable(); \} -$ECENTER +$ECENTER $PAR -Use the graphs of \(y = f(x)\) and \(y = g(x)\) above to the find the function value. +Use the graphs of \(y = f(x)\) and \(y = g(x)\) above to the find the function value. $PAR -$SPACE $SPACE (a) \((g\circ f)($a) = \) \{ans_rule(5)\} \{ AnswerFormatHelp("numbers") \} +$SPACE $SPACE (a) \((g\circ f)($a) = \) \{ans_rule(5)\} \{ helpLink("numbers") \} $BR $BR -$SPACE $SPACE (b) \((g\circ g)($b) = \) \{ans_rule(5)\} \{ AnswerFormatHelp("numbers") \} +$SPACE $SPACE (b) \((g\circ g)($b) = \) \{ans_rule(5)\} \{ helpLink("numbers") \} END_TEXT BEGIN_PGML @@ -135,7 +135,7 @@ Context()->normalStrings; ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute("$answer1")->cmp()); ANS(Compute("$answer2")->cmp()); diff --git a/Contrib/CCCS/CollegeAlgebra/3.4/Openstax_AlgTrig_AT-1-001-AS_3_4_45.pg b/Contrib/CCCS/CollegeAlgebra/3.4/Openstax_AlgTrig_AT-1-001-AS_3_4_45.pg index 341083afb0..e934ab16a2 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.4/Openstax_AlgTrig_AT-1-001-AS_3_4_45.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.4/Openstax_AlgTrig_AT-1-001-AS_3_4_45.pg @@ -12,14 +12,14 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "MathObjects.pl", "PGstandard.pl", "PGgraphmacros.pl", - "AnswerFormatHelp.pl", + "PGchoicemacros.pl", "unionTables.pl", ); @@ -30,7 +30,7 @@ $refreshCachedImages = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); do { @@ -88,32 +88,32 @@ Context()->strings->add("undefined"=>{}); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], "$SPACE $SPACE $SPACE $SPACE", $figs[1]]). TableSpace(5,25). AlignedRow(["\(y = f(x)\)", "$SPACE $SPACE $SPACE $SPACE", "\(y = g(x)\)"]). EndTable(); \} -$ECENTER +$ECENTER $PAR -Use the graphs of \(y = f(x)\) and \(y = g(x)\) above to the find the function value. +Use the graphs of \(y = f(x)\) and \(y = g(x)\) above to the find the function value. $PAR -$SPACE $SPACE (a) \( (g\circ f)($a) = \) \{ans_rule(5)\} \{ AnswerFormatHelp("numbers") \} +$SPACE $SPACE (a) \( (g\circ f)($a) = \) \{ans_rule(5)\} \{ helpLink("numbers") \} $BR $BR -$SPACE $SPACE (b) \((g\circ g)($b) = \) \{ans_rule(5)\} \{ AnswerFormatHelp("numbers") \} +$SPACE $SPACE (b) \((g\circ g)($b) = \) \{ans_rule(5)\} \{ helpLink("numbers") \} END_TEXT Context()->normalStrings; ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute("$answer1")->cmp()); ANS(Compute("$answer2")->cmp()); diff --git a/Contrib/CCCS/CollegeAlgebra/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_11.pg b/Contrib/CCCS/CollegeAlgebra/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_11.pg index c4c3a3b018..fc2e7ef947 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_11.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_11.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,8 +51,8 @@ $ans2 = Formula("$c*($a*x^2+$b)+$d")->reduce(); $ans3 = Formula("$a*($c*$m+$d)^2+$b")->reduce(); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -60,14 +60,14 @@ TeX => # Main text BEGIN_PGML -Let [`f(x) = [$f]`] and [`g(x) = [$g]`]. +Let [`f(x) = [$f]`] and [`g(x) = [$g]`]. + ++ [` (f\circ g)(x) = `] [_______________]{$ans1} [@ helpLink("formulas") @]* -+ [` (f\circ g)(x) = `] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* ++ [` (g\circ f)(x) = `] [_______________]{$ans2} [@ helpLink("formulas") @]* -+ [` (g\circ f)(x) = `] [_______________]{$ans2} [@ AnswerFormatHelp("formulas") @]* ++ [` (f\circ g)([$m]) = `] [_______________]{$ans3} [@ helpLink("numbers") @]* -+ [` (f\circ g)([$m]) = `] [_______________]{$ans3} [@ AnswerFormatHelp("numbers") @]* - [$video]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_13.pg b/Contrib/CCCS/CollegeAlgebra/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_13.pg index d4d2f4c860..0bd8053b91 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_13.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_13.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -43,18 +43,18 @@ $g = Compute("x^2+$b")->reduce; $ans1 = Compute("sqrt(x^2+$b)+$a")->reduce(); $ans2 = Compute("(sqrt(x)+$a)^2+$b")->reduce(); -$ans2->{limits} = [[1,8]]; +$ans2->{limits} = [[1,8]]; ########################### # Main text BEGIN_PGML -Let [`f(x) = [$f]`] and [`g(x) = [$g]`]. +Let [`f(x) = [$f]`] and [`g(x) = [$g]`]. -+ [` (f\circ g)(x) = `] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* ++ [` (f\circ g)(x) = `] [_______________]{$ans1} [@ helpLink("formulas") @]* -+ [` (g\circ f)(x) = `] [_______________]{$ans2} [@ AnswerFormatHelp("formulas") @]* ++ [` (g\circ f)(x) = `] [_______________]{$ans2} [@ helpLink("formulas") @]* END_PGML @@ -65,8 +65,8 @@ BEGIN_PGML_HINT For any input  [`x`]  and functions  [`f`]  and  [`g`],  this action defines a composite function, which we write as [`f \circ g`]  such that [``(f\circ g)(x) = f(g(x))``] - -The domain of the composite function  [`f\circ g`]  is all  [`x`]  such that  [`x`]  is in the domain of  [`g`]  and  [`g(x)`]  is in the domain of  [`f`]. + +The domain of the composite function  [`f\circ g`]  is all  [`x`]  such that  [`x`]  is in the domain of  [`g`]  and  [`g(x)`]  is in the domain of  [`f`]. END_PGML_HINT ############################ diff --git a/Contrib/CCCS/CollegeAlgebra/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_16.pg b/Contrib/CCCS/CollegeAlgebra/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_16.pg index 57bf75e9d5..405e2f8be9 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_16.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_16.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,11 +51,11 @@ $ans2 = Formula("$b*x+($c-$a*$b)")->reduce(); # Main text BEGIN_PGML -Let [``f(x) = [$f]``] and [``g(x) = [$g]``]. +Let [``f(x) = [$f]``] and [``g(x) = [$g]``]. -+ [`` (f\circ g)(x) = ``] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* ++ [`` (f\circ g)(x) = ``] [_______________]{$ans1} [@ helpLink("formulas") @]* -+ [`` (g\circ f)(x) = ``] [_______________]{$ans2} [@ AnswerFormatHelp("formulas") @]* ++ [`` (g\circ f)(x) = ``] [_______________]{$ans2} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_17.pg b/Contrib/CCCS/CollegeAlgebra/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_17.pg index 457665b2bc..951d018271 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_17.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_17.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -52,11 +52,11 @@ $ans2 = Formula("$b*x+($c-$a*$b)")->reduce(); # Main text BEGIN_PGML -Let [``f(x) = [$f]``] and [``g(x) = [$g]``]. +Let [``f(x) = [$f]``] and [``g(x) = [$g]``]. -+ [` (f\circ g)(x) = `] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* ++ [` (f\circ g)(x) = `] [_______________]{$ans1} [@ helpLink("formulas") @]* -+ [` (g\circ f)(x) = `] [_______________]{$ans2} [@ AnswerFormatHelp("formulas") @]* ++ [` (g\circ f)(x) = `] [_______________]{$ans2} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_27.pg b/Contrib/CCCS/CollegeAlgebra/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_27.pg index 7a38ddb7d7..28fe2ede10 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_27.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_27.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -44,8 +44,8 @@ $h = Compute("(x-$a)**$b")->reduce; $ans1 = Compute("x**$b")->reduce(); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -56,9 +56,9 @@ TeX => BEGIN_PGML Let [`h(x) = (f\circ g)(x) = [$h] `]. Find [`f(x)`] given [`g(x)=x-[$a] `]. - [` f(x) = `] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* + [` f(x) = `] [_______________]{$ans1} [@ helpLink("formulas") @]* + - [$video]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_29.pg b/Contrib/CCCS/CollegeAlgebra/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_29.pg index ade0dece7d..eaf21a6339 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_29.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_29.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,7 +51,7 @@ $ans1 = Compute("4/x**$b")->reduce(); BEGIN_PGML Let [``h(x) = (f\circ g)(x) = [$h] ``]. Find [`f(x)`] given [``g(x)=x+[$a] ``]. - [` f(x) = `] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* + [` f(x) = `] [_______________]{$ans1} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_39.pg b/Contrib/CCCS/CollegeAlgebra/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_39.pg index be28f31d0e..5eebba920a 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_39.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_39.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,7 +51,7 @@ $ans1 = Compute("1/x**$b")->reduce(); BEGIN_PGML Let [``h(x) = (f\circ g)(x) = [$h] ``]. Find [`f(x)`] given [``g(x)=x-[$a] ``]. - [` f(x) = `] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* + [` f(x) = `] [_______________]{$ans1} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_5.pg b/Contrib/CCCS/CollegeAlgebra/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_5.pg index 0cc6dbfe4a..18d55e4022 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_5.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_5.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPolynomial.pl", "PGML.pl", "PGcourse.pl", @@ -56,8 +56,8 @@ $ans7 = Compute("(-infinity,infinity)"); $ans8 = Compute("(-infinity,-sqrt($b))U(-sqrt($b),sqrt($b))U(sqrt($b),infinity)"); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -66,25 +66,25 @@ TeX => # Main text BEGIN_PGML -Let [`f(x) = [$f]`] and [`g(x) = [$g]`]. +Let [`f(x) = [$f]`] and [`g(x) = [$g]`]. + ++ [` (f + g)(x) = `] [_______________]{$ans1} [@ helpLink("formulas") @]* -+ [` (f + g)(x) = `] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* ++ [` (f - g)(x) = `] [_______________]{$ans2} [@ helpLink("formulas") @]* -+ [` (f - g)(x) = `] [_______________]{$ans2} [@ AnswerFormatHelp("formulas") @]* ++ [` (fg)(x) = `] [_______________]{$ans3} [@ helpLink("formulas") @]* -+ [` (fg)(x) = `] [_______________]{$ans3} [@ AnswerFormatHelp("formulas") @]* ++ [` \left(\frac{f}{g}\right)(x) = `] [_______________]{$ans4} [@ helpLink("formulas") @]* -+ [` \left(\frac{f}{g}\right)(x) = `] [_______________]{$ans4} [@ AnswerFormatHelp("formulas") @]* ++ The domain of [` (f + g)(x) `] is: [_______________]{$ans5} [@ helpLink("intervals") @]* -+ The domain of [` (f + g)(x) `] is: [_______________]{$ans5} [@ AnswerFormatHelp("intervals") @]* ++ The domain of [` (f - g)(x) `] is: [_______________]{$ans6} [@ helpLink("intervals") @]* -+ The domain of [` (f - g)(x) `] is: [_______________]{$ans6} [@ AnswerFormatHelp("intervals") @]* ++ The domain of [` (fg)(x) `] is: [_______________]{$ans7} [@ helpLink("intervals") @]* -+ The domain of [` (fg)(x) `] is: [_______________]{$ans7} [@ AnswerFormatHelp("intervals") @]* ++ The domain of [` \left(\frac{f}{g}\right)(x) `] is: [_______________]{$ans8} [@ helpLink("intervals") @]* -+ The domain of [` \left(\frac{f}{g}\right)(x) `] is: [_______________]{$ans8} [@ AnswerFormatHelp("intervals") @]* - [$video]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_59.pg b/Contrib/CCCS/CollegeAlgebra/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_59.pg index adef78fb61..053f524e9c 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_59.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_59.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "niceTables.pl", "PGML.pl", "PGcourse.pl", @@ -241,7 +241,7 @@ LayoutTable( ['\(x\)' , '1' ,'2' ,'3' ,'4' ,'5' ,'6','7','8','9'], ['\(f(x)\)' , $f1 ,$f2 ,$f3 ,$f4 ,$f5 ,$f6, $f7, $f8, $f9], ['\(g(x)\)' , $g1,$g2 ,$g3 ,$g4,$g5,$g6,$g7,$g8,$g9], - ], + ], midrules => 1, align => '| c | c | c | c | c | c | c | c | c | c |', center => 0, @@ -251,7 +251,7 @@ LayoutTable( $BR Use the table to evaluate the expression, $BR -\((f\circ g)($s)=\) \{ans_rule(20)\} \{ AnswerFormatHelp("numbers") \} +\((f\circ g)($s)=\) \{ans_rule(20)\} \{ helpLink("numbers") \} $ECENTER END_TEXT diff --git a/Contrib/CCCS/CollegeAlgebra/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_61.pg b/Contrib/CCCS/CollegeAlgebra/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_61.pg index c6539c3704..d3c8d0d5ab 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_61.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_61.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "niceTables.pl", "PGML.pl", "PGcourse.pl", @@ -241,7 +241,7 @@ LayoutTable( ['\(x\)' , '1' ,'2' ,'3' ,'4' ,'5' ,'6','7','8','9'], ['\(f(x)\)' , $f1 ,$f2 ,$f3 ,$f4 ,$f5 ,$f6, $f7, $f8, $f9], ['\(g(x)\)' , $g1,$g2 ,$g3 ,$g4,$g5,$g6,$g7,$g8,$g9], - ], + ], midrules => 1, align => '| c | c | c | c | c | c | c | c | c | c |', center => 0, @@ -251,7 +251,7 @@ LayoutTable( $BR Use the table to evaluate the expression, $BR -\((g\circ f)($s)= \) \{ans_rule(20)\} \{ AnswerFormatHelp("numbers") \} +\((g\circ f)($s)= \) \{ans_rule(20)\} \{ helpLink("numbers") \} $ECENTER END_TEXT diff --git a/Contrib/CCCS/CollegeAlgebra/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_73.pg b/Contrib/CCCS/CollegeAlgebra/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_73.pg index 8013dfe98e..3fae968e54 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_73.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_73.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -45,7 +45,7 @@ $m = random(-3,3,1); $f = Formula("$a*x+$b")->reduce; $g = Formula("$c+$d*x^2")->reduce; -$hold = $g->eval(x=>$m); +$hold = $g->eval(x=>$m); $ans1 = $f->eval(x=>$hold); @@ -53,10 +53,10 @@ $ans1 = $f->eval(x=>$hold); # Main text BEGIN_PGML -Let [`f(x) = [$f]`] and [`g(x) = [$g]`]. +Let [`f(x) = [$f]`] and [`g(x) = [$g]`]. -+ [`(f\circ g)([$m]) = `] [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* ++ [`(f\circ g)([$m]) = `] [_______________]{$ans1} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_77.pg b/Contrib/CCCS/CollegeAlgebra/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_77.pg index b7cbc8f1b7..4d23c54c31 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_77.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_77.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,10 +50,10 @@ $ans1 = Compute("$a*($d*x + $c)**$e-$b")->reduce; # Main text BEGIN_PGML -Let [`f(x) = [$f]`] and [`g(x) = [$g]`]. +Let [`f(x) = [$f]`] and [`g(x) = [$g]`]. + ++ [` (f\circ g)(x) = `] [_______________]{$ans1} [@ helpLink("formulas") @]* -+ [` (f\circ g)(x) = `] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* - END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_9.pg b/Contrib/CCCS/CollegeAlgebra/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_9.pg index 24c98f8b5f..a056615745 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_9.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_9.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPolynomial.pl", "PGML.pl", "PGcourse.pl", @@ -61,23 +61,23 @@ $ans8 = Compute("($b,infinity)"); # Main text BEGIN_PGML -Let [`f(x) = [$f]`] and [`g(x) = [$g]`]. +Let [`f(x) = [$f]`] and [`g(x) = [$g]`]. -+ [` (f + g)(x) = `] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* ++ [` (f + g)(x) = `] [_______________]{$ans1} [@ helpLink("formulas") @]* -+ [` (f - g)(x) = `] [_______________]{$ans2} [@ AnswerFormatHelp("formulas") @]* ++ [` (f - g)(x) = `] [_______________]{$ans2} [@ helpLink("formulas") @]* -+ [` (fg)(x) = `] [_______________]{$ans3} [@ AnswerFormatHelp("formulas") @]* ++ [` (fg)(x) = `] [_______________]{$ans3} [@ helpLink("formulas") @]* -+ [` \left(\frac{f}{g}\right) = `] [_______________]{$ans4} [@ AnswerFormatHelp("formulas") @]* ++ [` \left(\frac{f}{g}\right) = `] [_______________]{$ans4} [@ helpLink("formulas") @]* -+ The domain of [` (f + g)(x) `] is: [_______________]{$ans5} [@ AnswerFormatHelp("intervals") @]* ++ The domain of [` (f + g)(x) `] is: [_______________]{$ans5} [@ helpLink("intervals") @]* -+ The domain of [` (f - g)(x) `] is: [_______________]{$ans6} [@ AnswerFormatHelp("intervals") @]* ++ The domain of [` (f - g)(x) `] is: [_______________]{$ans6} [@ helpLink("intervals") @]* -+ The domain of [` (fg)(x) `] is: [_______________]{$ans7} [@ AnswerFormatHelp("intervals") @]* ++ The domain of [` (fg)(x) `] is: [_______________]{$ans7} [@ helpLink("intervals") @]* -+ The domain of [` \left(\frac{f}{g}\right) `] is: [_______________]{$ans8} [@ AnswerFormatHelp("intervals") @]* ++ The domain of [` \left(\frac{f}{g}\right) `] is: [_______________]{$ans8} [@ helpLink("intervals") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_21.pg b/Contrib/CCCS/CollegeAlgebra/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_21.pg index 6283a651fc..f68a3c3111 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_21.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_21.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -19,7 +19,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -52,9 +52,9 @@ $ansdecr = Compute("(-infinity,$bound)"); BEGIN_PGML Determine the interval(s) on which [`f(x) = [$g][$f]`] is increasing and decreasing. -+ Increasing: [_______________]{$ansincr} [@ AnswerFormatHelp("intervals") @]* ++ Increasing: [_______________]{$ansincr} [@ helpLink("intervals") @]* -+ Decreasing: [_______________]{$ansdecr} [@ AnswerFormatHelp("intervals") @]* ++ Decreasing: [_______________]{$ansdecr} [@ helpLink("intervals") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_31.pg b/Contrib/CCCS/CollegeAlgebra/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_31.pg index 9609134d7d..69ac648506 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_31.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_31.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -33,7 +33,7 @@ $showPartialCorrectAnswers = 1; # Setup Context("LimitedPoint"); -Context()->noreduce("(-x)-y"); +Context()->noreduce("(-x)-y"); $a=random(-13,13); $b=random(-5,5); @@ -48,11 +48,11 @@ $ans = Point("(($a,$c*$b+$d))"); # Main text BEGIN_PGML -Suppose [` [$pt1] `] is a point on the graph of [`y=f(x)`]. What is a point that will be on the graph of [`y=[$c]*f(x)+[$d] `]? +Suppose [` [$pt1] `] is a point on the graph of [`y=f(x)`]. What is a point that will be on the graph of [`y=[$c]*f(x)+[$d] `]? -[_______________]{$ans} [@ AnswerFormatHelp("points") @]* +[_______________]{$ans} [@ helpLink("points") @]* -Enter a point as [` (a,b) `], including the parentheses. +Enter a point as [` (a,b) `], including the parentheses. END_PGML ############################ diff --git a/Contrib/CCCS/CollegeAlgebra/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_32.pg b/Contrib/CCCS/CollegeAlgebra/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_32.pg index 50147b677b..42263ddb10 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_32.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_32.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -48,11 +48,11 @@ $ans = Point("(($a/$c,$b+$d))"); # Main text BEGIN_PGML -Suppose [` [$pt1] `] is a point on the graph of [`y=f(x)`]. What is a point that will be on the graph of [`y = f([$c]x) + [$d]`]? +Suppose [` [$pt1] `] is a point on the graph of [`y=f(x)`]. What is a point that will be on the graph of [`y = f([$c]x) + [$d]`]? -[_______________]{$ans} [@ AnswerFormatHelp("points") @]* +[_______________]{$ans} [@ helpLink("points") @]* -Enter a point as [` (a,b) `], including the parentheses. +Enter a point as [` (a,b) `], including the parentheses. END_PGML ############################ diff --git a/Contrib/CCCS/CollegeAlgebra/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_32b.pg b/Contrib/CCCS/CollegeAlgebra/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_32b.pg index e564d6a020..23bb0ce7a8 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_32b.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_32b.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -47,11 +47,11 @@ $ans = Point("(($a+$c,-$b))"); # Main text BEGIN_PGML -Suppose [` [$pt1] `] is a point on the graph of [`y=f(x)`]. What is a point that will be on the graph of [`y = -f(x-[$c])`]? +Suppose [` [$pt1] `] is a point on the graph of [`y=f(x)`]. What is a point that will be on the graph of [`y = -f(x-[$c])`]? -[_______________]{$ans} [@ AnswerFormatHelp("points") @]* +[_______________]{$ans} [@ helpLink("points") @]* -Enter a point as [` (a,b) `], including the parentheses. +Enter a point as [` (a,b) `], including the parentheses. END_PGML ############################ diff --git a/Contrib/CCCS/CollegeAlgebra/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_35.pg b/Contrib/CCCS/CollegeAlgebra/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_35.pg index 85fce1851e..9656df1a05 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_35.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_35.pg @@ -23,7 +23,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -60,7 +60,7 @@ Find an equation for the graphed function below by using transformations of the $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>300,height=>300,tex_size=>800 ) \} $BR $BR @@ -70,7 +70,7 @@ $BR $BR $BR \( y= \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR $ECENTER diff --git a/Contrib/CCCS/CollegeAlgebra/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_37.pg b/Contrib/CCCS/CollegeAlgebra/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_37.pg index 00c894f2b3..879036f20e 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_37.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_37.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -43,7 +43,7 @@ size=>[400,400] add_functions($gr, "(x+$a)^2+$b for x in <-6,6> using color:blue and weight:2"); -($gr->fn)[0]->steps(300); +($gr->fn)[0]->steps(300); $refreshCachedImages=1; @@ -61,14 +61,14 @@ Find an equation for the graphed function below by using transformations of the $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>300,height=>300,tex_size=>800 ) \} $BR (Click on graph to enlarge) $BR $BR \( y= \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR $ECENTER diff --git a/Contrib/CCCS/CollegeAlgebra/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_39.pg b/Contrib/CCCS/CollegeAlgebra/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_39.pg index a92debaad8..9cf2f6b01e 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_39.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_39.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -43,7 +43,7 @@ size=>[400,400] add_functions($gr, "abs{x+$a}+$b for x in <-6,6> using color:blue and weight:2"); -($gr->fn)[0]->steps(300); +($gr->fn)[0]->steps(300); $refreshCachedImages=1; @@ -61,13 +61,13 @@ Find an equation for the graphed function below by using transformations of the $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>300,height=>300,tex_size=>800 ) \} $BR $BR $BR \( y= \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR $ECENTER diff --git a/Contrib/CCCS/CollegeAlgebra/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_47.pg b/Contrib/CCCS/CollegeAlgebra/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_47.pg index f56339622e..4ed237b5ec 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_47.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_47.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserPopUp.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -55,8 +55,8 @@ $popup2 = PopUp( $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -68,7 +68,7 @@ TeX => BEGIN_PGML Let [``f(x) = [$f]``]. Determine whether [``f(x)``] is even, odd, or neither. -[` f(-x) = `] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* +[` f(-x) = `] [_______________]{$ans1} [@ helpLink("formulas") @]* [`f(x) =`] [___]{$popup1}, therefore [`f(x)`] is [___]{$popup2}. diff --git a/Contrib/CCCS/CollegeAlgebra/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_49.pg b/Contrib/CCCS/CollegeAlgebra/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_49.pg index b328fd762a..a5a2c1925f 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_49.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_49.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserPopUp.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -53,7 +53,7 @@ $popup2 = PopUp( "odd", ); -#[` -f(x) = `] [_______________]{$ans2} [@ AnswerFormatHelp("formulas") @]* +#[` -f(x) = `] [_______________]{$ans2} [@ helpLink("formulas") @]* #Is [``f(x)``] odd, even, or neither? #[@ $popup->menu() @]* @@ -63,7 +63,7 @@ $popup2 = PopUp( BEGIN_PGML Let [``f(x) = [$f]``]. Determine whether [``f(x)``] is even, odd, or neither. -[` f(-x) = `] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* +[` f(-x) = `] [_______________]{$ans1} [@ helpLink("formulas") @]* [`f(x) =`] [___]{$popup1}, therefore [`f(x)`] is [___]{$popup2}. diff --git a/Contrib/CCCS/CollegeAlgebra/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_50.pg b/Contrib/CCCS/CollegeAlgebra/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_50.pg index fab0907217..0d5fa2a0b2 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_50.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_50.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserPopUp.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -59,7 +59,7 @@ $popup2 = PopUp( BEGIN_PGML Let [``f(x) = [$f]``]. Determine whether [``f(x)``] is even, odd, or neither. -[` f(-x) = `] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* +[` f(-x) = `] [_______________]{$ans1} [@ helpLink("formulas") @]* [`f(x) =`] [___]{$popup1}, therefore [`f(x)`] is [___]{$popup2}. diff --git a/Contrib/CCCS/CollegeAlgebra/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_6.pg b/Contrib/CCCS/CollegeAlgebra/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_6.pg index b12328ef28..96170076a2 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_6.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_6.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -42,8 +42,8 @@ Context()->variables->set(x=>{limits=>[$b+1,$b+4]}); $ans1 = Compute("sqrt{x+$b}+$a")->reduce(); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -52,9 +52,9 @@ TeX => # Main text BEGIN_PGML -Let [`f(x) = \sqrt{x}`]. Find [`g(x)`], the function that is [`f(x)`] shifted up [`[$a]`] units and left [`[$b]`] units. +Let [`f(x) = \sqrt{x}`]. Find [`g(x)`], the function that is [`f(x)`] shifted up [`[$a]`] units and left [`[$b]`] units. - [` g(x) = `] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* + [` g(x) = `] [_______________]{$ans1} [@ helpLink("formulas") @]* diff --git a/Contrib/CCCS/CollegeAlgebra/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_64.pg b/Contrib/CCCS/CollegeAlgebra/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_64.pg index d4f06cbb06..8c5f9eb3f4 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_64.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_64.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -44,9 +44,9 @@ Context()->variables->set(x=>{limits=>[$a+1,$a+5]}); # Main text BEGIN_PGML -Let [``f(x) = \sqrt{x}``]. Find [`g(x)`], the function that is [`f(x)`] reflected over the [`x`]-axis and horizontally stretched by a factor of [`[$a]`]. +Let [``f(x) = \sqrt{x}``]. Find [`g(x)`], the function that is [`f(x)`] reflected over the [`x`]-axis and horizontally stretched by a factor of [`[$a]`]. - [` g(x) = `] [_______________]{"-sqrt{1/$a*x}"} [@ AnswerFormatHelp("formulas") @]* + [` g(x) = `] [_______________]{"-sqrt{1/$a*x}"} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_8.pg b/Contrib/CCCS/CollegeAlgebra/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_8.pg index e3976ecca0..2caef021f7 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_8.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_8.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -46,9 +46,9 @@ $ans1 = Compute("(1)/(x-$b)-$a")->reduce(); # Main text BEGIN_PGML -Let [``f(x) = \frac{1}{x}``]. Find [`g(x)`], the function that is [`f(x)`] shifted down [`[$a]`] units and right [`[$b]`] units. +Let [``f(x) = \frac{1}{x}``]. Find [`g(x)`], the function that is [`f(x)`] shifted down [`[$a]`] units and right [`[$b]`] units. - [` g(x) = `] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* + [` g(x) = `] [_______________]{$ans1} [@ helpLink("formulas") @]* END_PGML ############################ diff --git a/Contrib/CCCS/CollegeAlgebra/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_11.pg b/Contrib/CCCS/CollegeAlgebra/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_11.pg index af4246d37e..a07f3247a9 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_11.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_11.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -50,15 +50,15 @@ $yint = List( Point("(0,$a|$b|-$c)") ); BEGIN_PGML Find the `x-`intercept(s) and `y-`intercept(s) -of [` y = [$f] `]. +of [` y = [$f] `]. Enter a point as [` (a,b) `], -including the parentheses. If there is more -than one correct answer, enter a comma +including the parentheses. If there is more +than one correct answer, enter a comma separated list of points. -`x`-intercept(s): [_______________]{"($b+$c/$a,0),($b-$c/$a,0)"} [@ AnswerFormatHelp("points") @]* -`y`-intercept(s): [_______________]{$yint} [@ AnswerFormatHelp("points") @]* +`x`-intercept(s): [_______________]{"($b+$c/$a,0),($b-$c/$a,0)"} [@ helpLink("points") @]* +`y`-intercept(s): [_______________]{$yint} [@ helpLink("points") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_40.pg b/Contrib/CCCS/CollegeAlgebra/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_40.pg index 476b1fedcd..89a9fa6b91 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_40.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_40.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -17,12 +17,12 @@ # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGchoicemacros.pl", "PGcourse.pl", @@ -39,8 +39,8 @@ $ans1=Interval("[$b-$a, $b+$a]"); $mc = new_checkbox_multiple_choice(); $mc -> qa ( -"In absolute value notation, where \( x \) represents the score on the test, this is:", -"\( |x-$b| \leq $a \)$BR", +"In absolute value notation, where \( x \) represents the score on the test, this is:", +"\( |x-$b| \leq $a \)$BR", ); $mc -> extra( "\( |x-$b| \geq $a \)$BR", @@ -54,11 +54,11 @@ $mc -> makeLast("None of the above"); # Main text BEGIN_TEXT -A patient needs to keep their blood sugar levels within \( $a \) milligrams per deciliter of \( $b \) milligrams per deciliter. What blood sugar levels are okay for that patient? Enter solution as an interval or union of intervals. (Note: this is a hypothetical situation.) +A patient needs to keep their blood sugar levels within \( $a \) milligrams per deciliter of \( $b \) milligrams per deciliter. What blood sugar levels are okay for that patient? Enter solution as an interval or union of intervals. (Note: this is a hypothetical situation.) $BR $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR $BR \{ $mc -> print_q() \} diff --git a/Contrib/CCCS/CollegeAlgebra/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_41.pg b/Contrib/CCCS/CollegeAlgebra/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_41.pg index a3c51b0476..b4ccfc0c3f 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_41.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_41.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -17,12 +17,12 @@ # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGchoicemacros.pl", "PGcourse.pl", @@ -39,8 +39,8 @@ $ans1=Interval("[$b-$a, $b+$a]"); $mc = new_checkbox_multiple_choice(); $mc -> qa ( -"In absolute value notation, where \( x \) represents the machined diameter, this is:", -"\( |x-$b| \leq $a \)$BR", +"In absolute value notation, where \( x \) represents the machined diameter, this is:", +"\( |x-$b| \leq $a \)$BR", ); $mc -> extra( "\( |x-$b| \geq $a \)$BR", @@ -54,11 +54,11 @@ $mc -> makeLast("None of the above"); # Main text BEGIN_TEXT -A machinist must produce a bearing that is within \( $a \) inches of the correct diameter of \( $b \) inches. What are the possible diameters that will work? Enter solution as an interval or union of intervals. +A machinist must produce a bearing that is within \( $a \) inches of the correct diameter of \( $b \) inches. What are the possible diameters that will work? Enter solution as an interval or union of intervals. $BR $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR $BR \{ $mc -> print_q() \} diff --git a/Contrib/CCCS/CollegeAlgebra/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_5.pg b/Contrib/CCCS/CollegeAlgebra/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_5.pg index a3101d6230..25c02dbfec 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_5.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_5.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -17,12 +17,12 @@ # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGchoicemacros.pl", "PGcourse.pl", @@ -39,8 +39,8 @@ $ans1=List("$b-$a, $b+$a"); $mc = new_checkbox_multiple_choice(); $mc -> qa ( -"In absolute value notation, where \( x \) represents the numbers, this is:", -"\( |x-$b|=$a \)$BR", +"In absolute value notation, where \( x \) represents the numbers, this is:", +"\( |x-$b|=$a \)$BR", ); $mc -> extra( "\( |x+$b|=$a \)$BR", @@ -50,8 +50,8 @@ $mc -> extra( $mc -> makeLast("None of the above"); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -61,11 +61,11 @@ TeX => # Main text BEGIN_TEXT -List all numbers that are a distance of \( $a \) away from the number \( $b \). Enter as a comma separated list. +List all numbers that are a distance of \( $a \) away from the number \( $b \). Enter as a comma separated list. $BR $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR $BR \{ $mc -> print_q() \} @@ -88,7 +88,7 @@ ANS( checkbox_cmp( $mc->correct_ans() ) ); BEGIN_PGML -[$video]* +[$video]* END_PGML BEGIN_TEXT diff --git a/Contrib/CCCS/CollegeAlgebra/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_7.pg b/Contrib/CCCS/CollegeAlgebra/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_7.pg index 2ac11a6d9c..c13c64f980 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_7.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_7.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -17,12 +17,12 @@ # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGchoicemacros.pl", "PGcourse.pl", @@ -39,8 +39,8 @@ $ans1=Interval("(-infinity,$b-$a]U[$b+$a,infinity)"); $mc = new_checkbox_multiple_choice(); $mc -> qa ( -"In absolute value notation, where \( x \) represents the numbers, this is:", -"\( |x-$b| \geq $a \)$BR", +"In absolute value notation, where \( x \) represents the numbers, this is:", +"\( |x-$b| \geq $a \)$BR", ); $mc -> extra( "\( |x-$b|\leq$a \)$BR", @@ -54,11 +54,11 @@ $mc -> makeLast("None of the above"); # Main text BEGIN_TEXT -Find the interval(s) of numbers that are at least a distance of \( $a \) away from \( $b \). Enter solution as an interval or union of intervals. +Find the interval(s) of numbers that are at least a distance of \( $a \) away from \( $b \). Enter solution as an interval or union of intervals. $BR $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR $BR \{ $mc -> print_q() \} diff --git a/Contrib/CCCS/CollegeAlgebra/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_8.pg b/Contrib/CCCS/CollegeAlgebra/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_8.pg index f455ff6c7e..6ec6ef4203 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_8.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_8.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -17,12 +17,12 @@ # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGchoicemacros.pl", "PGcourse.pl", @@ -39,8 +39,8 @@ $ans1=Interval("($b-$a, $b+$a)"); $mc = new_checkbox_multiple_choice(); $mc -> qa ( -"In absolute value notation, where \( x \) represents the numbers, this is:", -"\( |x-$b| < $a \)$BR", +"In absolute value notation, where \( x \) represents the numbers, this is:", +"\( |x-$b| < $a \)$BR", ); $mc -> extra( "\( |x-$b| > $a \)$BR", @@ -54,11 +54,11 @@ $mc -> makeLast("None of the above"); # Main text BEGIN_TEXT -Find the interval(s) of numbers that are less than a distance of \( $a \) away from \( $b \). Enter solution as an interval or union of intervals. +Find the interval(s) of numbers that are less than a distance of \( $a \) away from \( $b \). Enter solution as an interval or union of intervals. $BR $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR $BR \{ $mc -> print_q() \} diff --git a/Contrib/CCCS/CollegeAlgebra/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_9.pg b/Contrib/CCCS/CollegeAlgebra/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_9.pg index 4f11781f6b..75b78f234c 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_9.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_9.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -45,8 +45,8 @@ $f = Compute("$a|x-$b|-$c")->reduce(); $yint = List( Point("(0,$a|$b|-$c)") ); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -57,17 +57,17 @@ TeX => BEGIN_PGML Find the `x-`intercept(s) and `y-`intercept(s) -of [` y = [$f] `]. +of [` y = [$f] `]. Enter a point as [` (a,b) `], -including the parentheses. If there is more -than one correct answer, enter a comma +including the parentheses. If there is more +than one correct answer, enter a comma separated list of points. -`x-`intercept(s): [_______________]{"($b+$c/$a,0),($b-$c/$a,0)"} [@ AnswerFormatHelp("points") @]* -`y-`intercept(s): [_______________]{$yint} [@ AnswerFormatHelp("points") @]* +`x-`intercept(s): [_______________]{"($b+$c/$a,0),($b-$c/$a,0)"} [@ helpLink("points") @]* +`y-`intercept(s): [_______________]{$yint} [@ helpLink("points") @]* -[$video]* +[$video]* END_PGML BEGIN_TEXT diff --git a/Contrib/CCCS/CollegeAlgebra/3.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_9.pg b/Contrib/CCCS/CollegeAlgebra/3.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_9.pg index 1433f09b1a..7af2e7ca84 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_9.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_9.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,7 +50,7 @@ $ans1 = Formula("(x^2+$b)/($a)")->reduce(); BEGIN_PGML Let [`f(x) = [$f]`]. Find [` f^{-1}(x) `]. - [` f^{-1}(x) = `] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* + [` f^{-1}(x) = `] [_______________]{$ans1} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_11.pg b/Contrib/CCCS/CollegeAlgebra/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_11.pg index 40e679d232..3fb625474c 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_11.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_11.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,7 +50,7 @@ $ans1 = Formula("(-$b*x)/(x-$a)")->reduce(); BEGIN_PGML Let [``f(x) = [$f]``]. Find [` f^{-1}(x) `]. - [` f^{-1}(x) = `] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* + [` f^{-1}(x) = `] [_______________]{$ans1} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_12.pg b/Contrib/CCCS/CollegeAlgebra/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_12.pg index ad2cf6bea8..a7fde4166b 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_12.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_12.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -52,7 +52,7 @@ $ans1 = Formula("($b-$d*x)/($c*x-$a)")->reduce(); BEGIN_PGML Let [``f(x) = [$f]``]. Find [` f^{-1}(x) `]. - [` f^{-1}(x) = `] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* + [` f^{-1}(x) = `] [_______________]{$ans1} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_13.pg b/Contrib/CCCS/CollegeAlgebra/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_13.pg index cebb2fd38d..1dce7445ba 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_13.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_13.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "contextPiecewiseFunction.pl", @@ -41,7 +41,7 @@ Context("Interval"); $domain = Interval("[$b,$a]"); Context("Numeric"); -$fun = Formula("(x-$b)^2 ")->reduce; +$fun = Formula("(x-$b)^2 ")->reduce; $inv = Formula("sqrt(x) + $b"); @@ -54,15 +54,15 @@ $g = $fun->eval(x => 0); BEGIN_PGML -Find the largest domain for [` f(x)=[$fun] `], with upper [`x`] bound [$a], such that the function [`f`] is one-to one and non-decreasing . +Find the largest domain for [` f(x)=[$fun] `], with upper [`x`] bound [$a], such that the function [`f`] is one-to one and non-decreasing . - One-to-one domain: [_________________]{$domain} [@ AnswerFormatHelp("intervals") @]* + One-to-one domain: [_________________]{$domain} [@ helpLink("intervals") @]* Your answers must be in interval notation. Find the inverse of [`f`] restricted to that domain. - [`f^{-1}(x) = `] [___________________]{$inv} [@ AnswerFormatHelp("formulas") @]* + [`f^{-1}(x) = `] [___________________]{$inv} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_15.pg b/Contrib/CCCS/CollegeAlgebra/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_15.pg index 2a57d62d8b..ab80b8a1f4 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_15.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_15.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "contextPiecewiseFunction.pl", @@ -41,7 +41,7 @@ Context("Interval"); $domain = Interval("[0,$a]"); Context("Numeric"); -$fun = Formula("(x^2-$b)")->reduce; +$fun = Formula("(x^2-$b)")->reduce; $inv = Formula("sqrt(x+$b)"); $inv->{limits} = [-$b+2,-$b+10]; @@ -54,15 +54,15 @@ $g = $fun->eval(x => 0); BEGIN_PGML -Find the largest domain for [` f(x)=[$fun] `], with upper [`x`] bound [$a], such that the function [`f`] is one-to one and non-decreasing . +Find the largest domain for [` f(x)=[$fun] `], with upper [`x`] bound [$a], such that the function [`f`] is one-to one and non-decreasing . - One-to-one domain: [_________________]{$domain} [@ AnswerFormatHelp("intervals") @]* + One-to-one domain: [_________________]{$domain} [@ helpLink("intervals") @]* Your answers must be in interval notation. Find the inverse of [`f`] restricted to that domain. - [`f^{-1}(x) = `] [___________________]{$inv} [@ AnswerFormatHelp("formulas") @]* + [`f^{-1}(x) = `] [___________________]{$inv} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_25.pg b/Contrib/CCCS/CollegeAlgebra/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_25.pg index e0a5ba03db..a3977afd0a 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_25.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_25.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "contextLimitedPoint.pl", ); @@ -60,7 +60,7 @@ Let the graph of \( f(x) \) be given below. Find the following. $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>300,height=>300,tex_size=>800 ) \} $BR $BR @@ -70,11 +70,11 @@ $BR $BR $BR \( f(0) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR $BR \( f^{-1}(0) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR $BR $ECENTER diff --git a/Contrib/CCCS/CollegeAlgebra/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_37.pg b/Contrib/CCCS/CollegeAlgebra/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_37.pg index 9403956e41..9454c86604 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_37.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_37.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "niceTables.pl", "PGML.pl", "PGcourse.pl", @@ -35,14 +35,14 @@ $showPartialCorrectAnswers = 1; # Setup #future thought, build these using a permutation of-10 through 10 and grab first 9 -$f1 = list_random(1,-9,-13); -$f2 = list_random(2,-8,12); +$f1 = list_random(1,-9,-13); +$f2 = list_random(2,-8,12); $f3 = list_random(3,-7,-11); -$f4 = list_random(4,-6,10); -$f5 = list_random(5,-5,0); +$f4 = list_random(4,-6,10); +$f5 = list_random(5,-5,0); $f6 = list_random(6,-4,-10); -$f7 = list_random(7,-3,11); -$f8 = list_random(8,-2,-12); +$f7 = list_random(7,-3,11); +$f8 = list_random(8,-2,-12); $f9 = list_random(9,-1,13); $s = random(1,9,1); @@ -106,7 +106,7 @@ LayoutTable( [ ['\(x\)' , '1' ,'2' ,'3' ,'4' ,'5' ,'6','7','8','9'], ['\(f(x)\)' , $f1 ,$f2 ,$f3 ,$f4 ,$f5 ,$f6, $f7, $f8, $f9], - ], + ], midrules => 1, align => '| c | c | c | c | c | c | c | c | c | c |', center => 0, @@ -117,16 +117,16 @@ $BR Use the table to evaluate the expressions: $BR $BR -\(f($s)=\) \{ans_rule(20)\} \{ AnswerFormatHelp("numbers") \} +\(f($s)=\) \{ans_rule(20)\} \{ helpLink("numbers") \} $BR $BR -\(f($t)=\) \{ans_rule(20)\} \{ AnswerFormatHelp("numbers") \} +\(f($t)=\) \{ans_rule(20)\} \{ helpLink("numbers") \} $BR $BR -\(f^{-1}($u)=\) \{ans_rule(20)\} \{ AnswerFormatHelp("numbers") \} +\(f^{-1}($u)=\) \{ans_rule(20)\} \{ helpLink("numbers") \} $BR $BR -\(f^{-1}($v)=\) \{ans_rule(20)\} \{ AnswerFormatHelp("numbers") \} +\(f^{-1}($v)=\) \{ans_rule(20)\} \{ helpLink("numbers") \} $ECENTER END_TEXT diff --git a/Contrib/CCCS/CollegeAlgebra/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_45.pg b/Contrib/CCCS/CollegeAlgebra/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_45.pg index c95500df68..90f26a1b4e 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_45.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_45.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "niceTables.pl", "PGML.pl", "PGcourse.pl", @@ -46,7 +46,7 @@ $ans1 = Formula("5/9*x - 5/9*32"); BEGIN_PGML To convert from x degrees Celsius to y degrees Fahrenheit, we use the formula [`` f(x) = \frac{9}{5} x + 32 ``]. Find the inverse function, if it exists, and be sure you could explain its meaning. -[`f^{-1}(x)=`] [___________________________]{"5/9*x-160/9"} [@ AnswerFormatHelp("formulas") @]* +[`f^{-1}(x)=`] [___________________________]{"5/9*x-160/9"} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_7.pg b/Contrib/CCCS/CollegeAlgebra/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_7.pg index b341ee1663..0b6c453b53 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_7.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_7.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -44,8 +44,8 @@ $f=Formula("$a*x+$b")->reduce();; $ans1 = Formula("(x-$b)/$a")->reduce(); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -57,7 +57,7 @@ TeX => BEGIN_PGML Let [`f(x) = [$f]`]. Find [` f^{-1}(x) `]. - [` f^{-1}(x) = `] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* + [` f^{-1}(x) = `] [_______________]{$ans1} [@ helpLink("formulas") @]* [$video]* diff --git a/Contrib/CCCS/CollegeAlgebra/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_7_box.pg b/Contrib/CCCS/CollegeAlgebra/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_7_box.pg index feb11c1d59..ac55ac3f2e 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_7_box.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_7_box.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGchoicemacros.pl", "PGML.pl", "PGcourse.pl", @@ -36,8 +36,8 @@ $showPartialCorrectAnswers = 1; $mc = new_checkbox_multiple_choice(); $mc -> qa ( -"", -"\( f^{-1}(x) \)$BR", +"", +"\( f^{-1}(x) \)$BR", ); $mc -> extra( "\( f(x) \)$BR", @@ -63,7 +63,7 @@ $ans1 = Formula("(x-$b)/$a")->reduce(); BEGIN_PGML Let [`f(x) = [$f]`]. Find and enter the inverse of [`f(x)`] -[_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* +[_______________]{$ans1} [@ helpLink("formulas") @]* Select the correct notation for the inverse of [`f(x)`]. END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_7_16.pg b/Contrib/CCCS/CollegeAlgebra/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_7_16.pg index e237da8e8d..97647ba8e9 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_7_16.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_7_16.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "niceTables.pl", "PGML.pl", "PGcourse.pl", diff --git a/Contrib/CCCS/CollegeAlgebra/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_7_18.pg b/Contrib/CCCS/CollegeAlgebra/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_7_18.pg index 05fd3c162e..b7fcdce2c4 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_7_18.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_7_18.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "niceTables.pl", "PGML.pl", "PGcourse.pl", diff --git a/Contrib/CCCS/CollegeAlgebra/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_7_21.pg b/Contrib/CCCS/CollegeAlgebra/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_7_21.pg index 50945c74f8..73437cfbba 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_7_21.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_7_21.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "niceTables.pl", "PGML.pl", "PGcourse.pl", diff --git a/Contrib/CCCS/CollegeAlgebra/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_7_57.pg b/Contrib/CCCS/CollegeAlgebra/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_7_57.pg index be067de230..a451985f90 100644 --- a/Contrib/CCCS/CollegeAlgebra/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_7_57.pg +++ b/Contrib/CCCS/CollegeAlgebra/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_7_57.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "niceTables.pl", "PGML.pl", "PGcourse.pl", diff --git a/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_01.pg b/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_01.pg index ca5df03ac6..008aa59385 100644 --- a/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_01.pg +++ b/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_01.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject() ## DBchapter() ## DBsection() @@ -11,17 +11,17 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,11 +29,11 @@ loadMacros( "PGcourse.pl", "parserPopUp.pl", ); - + TEXT(beginproblem()); $showPartialCorrectAnswers = 0; - + ########################### # Setup Context("Numeric"); @@ -41,41 +41,41 @@ Context("Numeric"); $start=random(2000,4000,200); $speed=random(40,80,5); -# Adding the two letters as variables +# Adding the two letters as variables Context()->variables->add(t => "Real"); $popupTime = PopUp(["?", "hour", "minute", "second", "day"], "second"); -$popupDist = PopUp(["?", "meters", "feet", "inches"], "feet"); +$popupDist = PopUp(["?", "meters", "feet", "inches"], "feet"); + + - - ########################### # Main text - + BEGIN_PGML Terry is skiing down a steep hill. Terry's elevation, [`E(t)`], in feet after [`t`] seconds is given by the equation - [`E(t)=[$start]-[$speed]t `]. + [`E(t)=[$start]-[$speed]t `]. + +Complete the following sentence describing Terry's starting elevation and how it is changing over time. -Complete the following sentence describing Terry's starting elevation and how it is changing over time. - - - He is starting from a height of [____]{$start} feet and is skiing downhill at a speed of [____]{$speed} [_____]{$popupDist} per [_____]{$popupTime} [@ AnswerFormatHelp("numbers") @]* + + He is starting from a height of [____]{$start} feet and is skiing downhill at a speed of [____]{$speed} [_____]{$popupDist} per [_____]{$popupTime} [@ helpLink("numbers") @]* Note: to get the problem correct, you must provide the correct answer to every part - + END_PGML - - + + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_02.pg b/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_02.pg index 302a80cfa0..1bcb3aae8f 100644 --- a/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_02.pg +++ b/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_02.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject() ## DBchapter() ## DBsection() @@ -11,17 +11,17 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,10 +29,10 @@ loadMacros( "PGcourse.pl", "parserPopUp.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -50,32 +50,32 @@ $endDist=non_zero_random(0,2,0.2); $speed= Formula(($startDist-$endDist)/(($endTime-$startTime)/60)); - + ########################### # Main text - + BEGIN_PGML Fernando is walking home from a friend\'s house at a constant speed. After [$startTime] minutes he is [$startDist] miles from home. [$endTime] minutes after leaving, he is [$endDist] miles -from home. +from home. What is his rate in *miles per hour* (mph)? -[_____]{$speed} mph [@ AnswerFormatHelp("numbers") @]* +[_____]{$speed} mph [@ helpLink("numbers") @]* + - END_PGML - - + + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_03.pg b/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_03.pg index 015c1ae8a9..2b2f12ba72 100644 --- a/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_03.pg +++ b/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_03.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject() ## DBchapter() ## DBsection() @@ -11,37 +11,37 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", "PGML.pl", "PGcourse.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); - + $distance=non_zero_random(40,200,20); $speed = random(10,30,2); -# Adding the two letters as variables +# Adding the two letters as variables Context()->variables->add(t => "Real"); Context()->variables->add(d => "Real"); @@ -49,7 +49,7 @@ Context()->variables->add(d => "Real"); # The two sides of the correct answer $ans1=d; $ans2=Formula("$distance- t*$speed"); - + # Allows for the correct equation to be given in either order $multians = MultiAnswer($ans1, $ans2)->with( @@ -60,38 +60,38 @@ $multians = MultiAnswer($ans1, $ans2)->with( my ( $f1, $f2) = @{$correct}; if ( ( $f1 == $stu1 && $f2 == $stu2) || ( $f1 == $stu2 && $f2 == $stu1) ) -{return [1,1];} - +{return [1,1];} + else { return [0,0]; } - + } ); - - + + ########################### # Main text - + BEGIN_PGML -A boat is [$distance] miles away from the marina, sailing directly toward it at [$speed] miles per hour. +A boat is [$distance] miles away from the marina, sailing directly toward it at [$speed] miles per hour. + +Write an equation for the distance of the boat from the marina, [`d`], after [`t`] hours. + + [____]{$multians} [`=`] [____]{$multians} [@ helpLink("numbers") @]* + -Write an equation for the distance of the boat from the marina, [`d`], after [`t`] hours. - - [____]{$multians} [`=`] [____]{$multians} [@ AnswerFormatHelp("numbers") @]* - - END_PGML - - - + + + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_04.pg b/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_04.pg index 4062a89c6f..01a6b57e68 100644 --- a/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_04.pg +++ b/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_04.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject() ## DBchapter() ## DBsection() @@ -11,17 +11,17 @@ ## Author(Michael Sulock, Edited: Steven Wray 7/22/17) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,53 +29,53 @@ loadMacros( "PGcourse.pl", "parserPopUp.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Fraction-NoDecimals"); - -# Do we want a negative numerator? + +# Do we want a negative numerator? $numerator=non_zero_random(-20,20,1); $denominator=random(2,20,1); -# Adding the two letters as variables +# Adding the two letters as variables Context()->variables->add(t => "Real"); $slope = Fraction($numerator/$denominator); $perpslope=Fraction(-$denominator/$numerator); -# Currently a student can give a non-reduced fraction as the answer. -# Maybe this should be changed? +# Currently a student can give a non-reduced fraction as the answer. +# Maybe this should be changed? $answer = Compute("$perpslope"); - - - + + + ########################### # Main text - + BEGIN_PGML -Given a linear equation with a slope of [`\displaystyle[$slope]`], determine the slope of a line that is perpendicular. *Enter the answer as a fraction*. +Given a linear equation with a slope of [`\displaystyle[$slope]`], determine the slope of a line that is perpendicular. *Enter the answer as a fraction*. + +[____]{$answer->cmp(studentsMustReduceFractions=>1, + strictFractions=>1,strictMinus=>1, strictMultiplication=>1)} [@ helpLink("numbers") @]* -[____]{$answer->cmp(studentsMustReduceFractions=>1, - strictFractions=>1,strictMinus=>1, strictMultiplication=>1)} [@ AnswerFormatHelp("numbers") @]* - END_PGML - - + + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_05.pg b/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_05.pg index 1eae903939..c12f7a2456 100644 --- a/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_05.pg +++ b/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_05.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject() ## DBchapter() ## DBsection() @@ -11,17 +11,17 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,45 +29,45 @@ loadMacros( "PGcourse.pl", "parserPopUp.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Point"); - + $letterN=random(0,10,1); @letter = qw/ a b c d e f g h j k m/; $var = $letter[$letterN]; -# Adding the two letters as variables +# Adding the two letters as variables Context()->variables->add($var => "Real"); $answer = Point("($var, $var)"); - - + + ########################### # Main text - + BEGIN_PGML -If a horizontal line has the equation [`f(x) = [$var]`] and a vertical line has the equation [`x = [$var]`], what is the point of their intersection? +If a horizontal line has the equation [`f(x) = [$var]`] and a vertical line has the equation [`x = [$var]`], what is the point of their intersection? + +[____]{$answer} [@ helpLink("points") @]* -[____]{$answer} [@ AnswerFormatHelp("points") @]* - END_PGML - - + + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_07.pg b/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_07.pg index e79ba6ee18..2c2d3f84ce 100644 --- a/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_07.pg +++ b/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_07.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject() ## DBchapter() ## DBsection() @@ -11,17 +11,17 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,10 +29,10 @@ loadMacros( "PGcourse.pl", "parserPopUp.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup @@ -58,27 +58,27 @@ if ( $chooser == 0) { $popup = PopUp(["?","yes", "no"], "yes"); } - + ########################### # Main text - + BEGIN_PGML -Determine whether the following equation can be written as a linear function. +Determine whether the following equation can be written as a linear function. [`y = [$equation]`] -[____]{$popup} - +[____]{$popup} + END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_09.pg b/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_09.pg index eba8053bac..d2256bb498 100644 --- a/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_09.pg +++ b/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_09.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject() ## DBchapter() ## DBsection() @@ -11,17 +11,17 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,10 +29,10 @@ loadMacros( "PGcourse.pl", "parserPopUp.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -64,27 +64,27 @@ if ( $chooser == 0) { $popup = PopUp(["?", "yes", "no"], "yes"); } - + ########################### # Main text - + BEGIN_PGML -Determine whether the following equation can be written as a linear function. +Determine whether the following equation can be written as a linear function. [` [$equation] = [$rightSide]`] -[____]{$popup} - +[____]{$popup} + END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_11.pg b/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_11.pg index aae3b7dade..fe9a549857 100644 --- a/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_11.pg +++ b/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_11.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject() ## DBchapter() ## DBsection() @@ -11,17 +11,17 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,10 +29,10 @@ loadMacros( "PGcourse.pl", "parserPopUp.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -64,27 +64,27 @@ if ( $chooser == 0) { $popup = PopUp(["?","yes", "no"], "no"); } - + ########################### # Main text - + BEGIN_PGML -Determine whether the following equation can be written as a linear function. +Determine whether the following equation can be written as a linear function. [` [$equation] = [$rightSide]`] -[____]{$popup} - +[____]{$popup} + END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_13.pg b/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_13.pg index 6202ad772a..19710bf3ac 100644 --- a/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_13.pg +++ b/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_13.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject() ## DBchapter() ## DBsection() @@ -11,17 +11,17 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,10 +29,10 @@ loadMacros( "PGcourse.pl", "parserPopUp.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -66,27 +66,27 @@ if ( $chooser == 0) { $popup = PopUp(["?","yes", "no"], "yes"); } - + ########################### # Main text - + BEGIN_PGML -Determine whether the following equation can be written as a linear function. +Determine whether the following equation can be written as a linear function. [` \displaystyle[$equation] = [$rightSide]*y`] -[____]{$popup} - +[____]{$popup} + END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_15.pg b/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_15.pg index 9d417f6902..c212436641 100644 --- a/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_15.pg +++ b/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_15.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject() ## DBchapter() ## DBsection() @@ -11,17 +11,17 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,10 +29,10 @@ loadMacros( "PGcourse.pl", "parserPopUp.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -66,27 +66,27 @@ if ( $chooser == 0) { $popup = PopUp(["?","increasing", "decreasing"], "increasing"); } - + ########################### # Main text - + BEGIN_PGML Determine whether the following function is increasing or decreasing. [` g(x) = [$equation]`] -[____]{$popup} - +[____]{$popup} + END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_17.pg b/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_17.pg index 52eed9a1a7..8719e9cf99 100644 --- a/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_17.pg +++ b/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_17.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject() ## DBchapter() ## DBsection() @@ -11,17 +11,17 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,10 +29,10 @@ loadMacros( "PGcourse.pl", "parserPopUp.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -66,27 +66,27 @@ if ( $chooser == 0) { $popup = PopUp(["?","increasing", "decreasing"], "increasing"); } - + ########################### # Main text - + BEGIN_PGML -Determine whether the following function is increasing or decreasing. +Determine whether the following function is increasing or decreasing. [` g(x) = [$equation]`] -[____]{$popup} - +[____]{$popup} + END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_19.pg b/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_19.pg index c79876d99d..a30033800a 100644 --- a/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_19.pg +++ b/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_19.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject() ## DBchapter() ## DBsection() @@ -11,17 +11,17 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,10 +29,10 @@ loadMacros( "PGcourse.pl", "parserPopUp.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -68,27 +68,27 @@ if ( $chooser == 0) { $popup = PopUp(["?","increasing", "decreasing"], "increasing"); } - + ########################### # Main text - + BEGIN_PGML -Determine whether the following function is increasing or decreasing. +Determine whether the following function is increasing or decreasing. [` g(x) = [$equation]`] -[____]{$popup} - +[____]{$popup} + END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_21.pg b/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_21.pg index 310e86b710..3f65a75be2 100644 --- a/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_21.pg +++ b/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_21.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject() ## DBchapter() ## DBsection() @@ -11,17 +11,17 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,10 +29,10 @@ loadMacros( "PGcourse.pl", "parserPopUp.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Fraction"); @@ -68,27 +68,27 @@ if ( $chooser == 0) { $popup = PopUp(["?","increasing", "decreasing"], "increasing"); } - + ########################### # Main text - + BEGIN_PGML -Determine whether the following function is increasing or decreasing. +Determine whether the following function is increasing or decreasing. [` g(x) = [$equation]`] -[____]{$popup} - +[____]{$popup} + END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_23.pg b/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_23.pg index 84cda71f39..1921da73a3 100644 --- a/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_23.pg +++ b/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_23.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject() ## DBchapter() ## DBsection() @@ -10,17 +10,17 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -28,10 +28,10 @@ loadMacros( "PGcourse.pl", "parserPopUp.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Fraction"); @@ -63,27 +63,27 @@ if ( $chooser == 0) { $popup = PopUp(["?","increasing", "decreasing"], "decreasing"); } - + ########################### # Main text - + BEGIN_PGML -Determine whether the following function is increasing or decreasing. +Determine whether the following function is increasing or decreasing. [` g(x) = [$equation]`] -[____]{$popup} - +[____]{$popup} + END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_25.pg b/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_25.pg index 76268cc317..3c82824504 100644 --- a/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_25.pg +++ b/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_25.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject() ## DBchapter() ## DBsection() @@ -11,17 +11,17 @@ ## Author(Michael Sulock, Edited: Steven Wray, 7/22/17) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,10 +29,10 @@ loadMacros( "PGcourse.pl", "parserPopUp.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -48,30 +48,30 @@ $y2 = non_zero_random (-10,10,1); $ans = Formula("($y1-$y2)/($x1-$x2)"); - + ########################### # Main text - + BEGIN_PGML Find the slope of the line that passes through the following points -[` ([$x1],[$y1])`] and [` ([$x2],[$y2])`] +[` ([$x1],[$y1])`] and [` ([$x2],[$y2])`] + +[____]{$ans} [@ helpLink("numbers") @]* -[____]{$ans} [@ AnswerFormatHelp("numbers") @]* - END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - -COMMENT('MathObject version. Uses PGML.'); - + +COMMENT('MathObject version. Uses PGML.'); + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_27.pg b/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_27.pg index 6ddd7a8938..8f55b65c46 100644 --- a/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_27.pg +++ b/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_27.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject() ## DBchapter() ## DBsection() @@ -11,17 +11,17 @@ ## Author(Michael Sulock, Edited: Steven Wray 7/22/17) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,10 +29,10 @@ loadMacros( "PGcourse.pl", "parserPopUp.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -48,32 +48,32 @@ $y2 = non_zero_random (-20,10,1); $ans = Formula("($y1-$y2)/($x1-$x2)"); - + ########################### # Main text - + BEGIN_PGML Find the slope of the line that passes through the following points -[` ([$x1],[$y1])`] and [` ([$x2],[$y2])`] +[` ([$x1],[$y1])`] and [` ([$x2],[$y2])`] + +[____]{$ans} [@ helpLink("numbers") @]* -[____]{$ans} [@ AnswerFormatHelp("numbers") @]* - END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_29.pg b/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_29.pg index 11f61e8c77..4e2b685da6 100644 --- a/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_29.pg +++ b/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_29.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject() ## DBchapter() ## DBsection() @@ -11,17 +11,17 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -30,10 +30,10 @@ loadMacros( "parserPopUp.pl", "parserAssignment.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric")->variables->are(x=>"Real"); @@ -50,29 +50,29 @@ $y2 = Formula($slope*$x2+$yint); $ans =Formula("$slope(x)+$yint"); - + ########################### # Main text - + BEGIN_PGML Find a linear equation satisfying the following [`f([$x1]) = [$y1]`] and [`f([$x2]) = [$y2]`] -[`f(x) = `][____]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`f(x) = `][____]{$ans} [@ helpLink("formulas") @]* + - END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_31.pg b/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_31.pg index 6daf250e03..3284f85697 100644 --- a/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_31.pg +++ b/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_31.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject() ## DBchapter() ## DBsection() @@ -11,17 +11,17 @@ ## Author(Michael Sulock, Edited: Steven Wray, 7/22/17) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -30,10 +30,10 @@ loadMacros( "parserPopUp.pl", "parserAssignment.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric")->variables->are(x=>"Real"); @@ -50,29 +50,29 @@ $y2 = Formula($slope*$x2+$yint); $ans =Formula("$slope(x)+$yint"); - + ########################### # Main text - + BEGIN_PGML Find a linear equation satisfying the following conditions: Passes through the points [`([$x1],[$y1])`] and [`([$x2],[$y2])`] -[`f(x) = `][____]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`f(x) = `][____]{$ans} [@ helpLink("formulas") @]* + - END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_33.pg b/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_33.pg index 46481195c2..953ae9083c 100644 --- a/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_33.pg +++ b/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_33.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject() ## DBchapter() ## DBsection() @@ -11,17 +11,17 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -30,10 +30,10 @@ loadMacros( "parserPopUp.pl", "parserAssignment.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric")->variables->are(x=>"Real"); @@ -50,29 +50,29 @@ $y2 = Formula($slope*$x2+$yint); $ans =Formula("$slope(x)+$yint"); - + ########################### # Main text - + BEGIN_PGML Find a linear equation satisfying the following conditions: Passes through the points [`([$x1],[$y1])`] and [`([$x2],[$y2])`] -[`f(x) = `][____]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`f(x) = `][____]{$ans} [@ helpLink("formulas") @]* + - END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_35.pg b/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_35.pg index cc20748112..3d791999b7 100644 --- a/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_35.pg +++ b/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_35.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject() ## DBchapter() ## DBsection() @@ -11,17 +11,17 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -30,10 +30,10 @@ loadMacros( "parserPopUp.pl", "parserAssignment.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -51,29 +51,29 @@ $ans =Formula("$slope(x)+$yint"); #[-\frac{[$yint]}{[$slope]}] - + ########################### # Main text - + BEGIN_PGML Find a linear equation satisfying the following conditions: x-Intercept at [`(\displaystyle[$xint], 0)`] and y-intercept at [`(0,[$yint])`] -[`f(x) = `][____]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`f(x) = `][____]{$ans} [@ helpLink("formulas") @]* + - END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_37.pg b/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_37.pg index 6cd1c41a71..24acb35845 100644 --- a/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_37.pg +++ b/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_37.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject() ## DBchapter() ## DBsection() @@ -11,17 +11,17 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,10 +29,10 @@ loadMacros( "PGcourse.pl", "parserPopUp.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -75,30 +75,30 @@ if ( $chooser == 0) { $popup = PopUp(["?","parallel", "perpendicular", "neither"], "neither"); } - + ########################### # Main text - + BEGIN_PGML -Determine whether the following equations are parallel, perpendicular, or neither. +Determine whether the following equations are parallel, perpendicular, or neither. [` [$equation1] = [$rightSide1]`] [` [$equation2] = [$rightSide2]`] -[____]{$popup} - +[____]{$popup} + END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_39.pg b/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_39.pg index 0032f94da9..47bf68b465 100644 --- a/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_39.pg +++ b/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_39.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject() ## DBchapter() ## DBsection() @@ -11,17 +11,17 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,10 +29,10 @@ loadMacros( "PGcourse.pl", "parserPopUp.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -56,7 +56,7 @@ do {$f = random(2,9,1);} until ($f*$mult != $c); # Creates 4 equations and the corresponding correct answer # in a dropdown menu if ( $chooser == 0) { - + $e= $b*$mult; $d = $a*$mult; @@ -68,37 +68,37 @@ if ( $chooser == 0) { $popup = PopUp(["?","parallel", "perpendicular", "neither"], "perpendicular"); } else { - + $e = $a+1; $d = $b+$mult; $popup = PopUp(["?","parallel", "perpendicular", "neither"], "neither"); -} - +} + ########################### # Main text - + BEGIN_PGML -Determine whether the following equations are parallel, perpendicular, or neither. +Determine whether the following equations are parallel, perpendicular, or neither. [` [$a]y-[$b]x = [$c]`] [` [$d]y = [$e]x+[$f]`] -[____]{$popup} - +[____]{$popup} + END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_41.pg b/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_41.pg index 36b1a0b524..054889b1ce 100644 --- a/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_41.pg +++ b/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_41.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject() ## DBchapter() ## DBsection() @@ -11,17 +11,17 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,10 +29,10 @@ loadMacros( "PGcourse.pl", "parserPopUp.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Point"); @@ -49,30 +49,30 @@ $yintP = Point(0, $yint); $xintP = Point($xint, 0); - + ########################### # Main text - + BEGIN_PGML Find the `x` and `y` - intercepts of the following equation [`h(x) = [$slope]x+[$yint]`] -`x` - intercept is [______]{$xintP} [@ AnswerFormatHelp("points") @]* +`x` - intercept is [______]{$xintP} [@ helpLink("points") @]* + +`y` - intercept is [______]{$yintP} [@ helpLink("points") @]* -`y` - intercept is [______]{$yintP} [@ AnswerFormatHelp("points") @]* - END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_43.pg b/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_43.pg index b0eac094d8..dfff03eb28 100644 --- a/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_43.pg +++ b/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_43.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject() ## DBchapter() ## DBsection() @@ -11,17 +11,17 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,10 +29,10 @@ loadMacros( "PGcourse.pl", "parserPopUp.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Point"); @@ -49,30 +49,30 @@ $yintP = Point(0, $yint); $xintP = Point($xint, 0); - + ########################### # Main text - + BEGIN_PGML Find the `x` and `y` - intercepts of the following equation [`g(x) = [$slope]x+[$yint]`] -`x` - intercept is [______]{$xintP} [@ AnswerFormatHelp("points") @]* +`x` - intercept is [______]{$xintP} [@ helpLink("points") @]* + +`y` - intercept is [______]{$yintP} [@ helpLink("points") @]* -`y` - intercept is [______]{$yintP} [@ AnswerFormatHelp("points") @]* - END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_45.pg b/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_45.pg index 9913cdb572..ff961ad689 100644 --- a/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_45.pg +++ b/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_45.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject() ## DBchapter() ## DBsection() @@ -11,17 +11,17 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,10 +29,10 @@ loadMacros( "PGcourse.pl", "parserPopUp.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Point"); @@ -51,30 +51,30 @@ $yintP = Point(0, $yint); $xintP = Point($xint, 0); - + ########################### # Main text - + BEGIN_PGML Find the `x` and `y` - intercepts of the following equation [`[$coeffX]x+[$coeffY]y = [$rightSide]`] -`x` - intercept is [______]{$xintP} [@ AnswerFormatHelp("points") @]* +`x` - intercept is [______]{$xintP} [@ helpLink("points") @]* + +`y` - intercept is [______]{$yintP} [@ helpLink("points") @]* -`y` - intercept is [______]{$yintP} [@ AnswerFormatHelp("points") @]* - END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_53.pg b/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_53.pg index 1ef97b7a61..569288509e 100644 --- a/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_53.pg +++ b/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_53.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject() ## DBchapter() ## DBsection() @@ -11,27 +11,27 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", "parserAssignment.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric")->variables->are(x=>"Real",y=>"Real"); @@ -49,26 +49,26 @@ $ansYint = ($yCord-$slope*($xCord)); $ans = Formula("y=$slope(x)+$ansYint")-> reduce; - + ########################### # Main text - + BEGIN_PGML Write an equation for the line parallel to [`g(x) = [$slope]x+[$intercept]`] and passing through the point [`([$xCord], [$yCord])`]. Write the answer in slope-intercept form. - -[_______________]{$ans} [@ AnswerFormatHelp("equations") @]* + +[_______________]{$ans} [@ helpLink("equations") @]* END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_55.pg b/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_55.pg index 0bbe9d48bf..cb212dde5a 100644 --- a/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_55.pg +++ b/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_55.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject() ## DBchapter() ## DBsection() @@ -11,26 +11,26 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", "parserAssignment.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup @@ -52,23 +52,23 @@ $ans = Formula("$ansSlope(x)+$ansYint")->reduce; ########################### # Main text - + BEGIN_PGML Write an equation for the line perpendicular to [`g(x) = [$slope]x+[$intercept]`] and passing through the point [`([$xCord], [$yCord])`] -[____________]{$ans} [@ AnswerFormatHelp("equations") @]* +[____________]{$ans} [@ helpLink("equations") @]* END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_57.pg b/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_57.pg index 9a1d53ebf8..362e135520 100644 --- a/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_57.pg +++ b/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_57.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject() ## DBchapter() ## DBsection() @@ -11,33 +11,33 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", "PGcourse.pl", "contextLimitedPoint.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup -# +# $limit = 5; @@ -53,31 +53,31 @@ texsize=>300, ); -add_functions($gr, "($slope(x)+$intercept) for x in <-$limit,$limit>" . +add_functions($gr, "($slope(x)+$intercept) for x in <-$limit,$limit>" . " using color:blue and weight:2"); ########################### # Main text - + BEGIN_PGML -Find the slope of the graphed line. +Find the slope of the graphed line. >> [@ image(insertGraph($gr), tex_size=>16000, width=>400, height=>400), @]* << -The slope is [______]{$slope} [@ AnswerFormatHelp("numbers") @]* +The slope is [______]{$slope} [@ helpLink("numbers") @]* END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_59.pg b/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_59.pg index 0e46a81aad..0a5dbb6e7b 100644 --- a/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_59.pg +++ b/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_59.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject() ## DBchapter() ## DBsection() @@ -11,33 +11,33 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", "PGcourse.pl", "contextLimitedPoint.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup -# +# $limit = 5; @@ -53,7 +53,7 @@ texsize=>300, ); -add_functions($gr, "($slope(x)+$intercept) for x in <-$limit,$limit>" . +add_functions($gr, "($slope(x)+$intercept) for x in <-$limit,$limit>" . " using color:blue and weight:2"); Context("Numeric"); @@ -62,23 +62,23 @@ $ans = Formula(" $slope(x) +$intercept")->reduce; ########################### # Main text - + BEGIN_PGML -Find the equation of the graphed line. +Find the equation of the graphed line. >> [@ image(insertGraph($gr), tex_size=>16000, width=>400, height=>400), @]* << -[`f(x) = `] [______]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`f(x) = `] [______]{$ans} [@ helpLink("formulas") @]* END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_61.pg b/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_61.pg index 19c93cf14a..f5f215161d 100644 --- a/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_61.pg +++ b/Contrib/CCCS/CollegeAlgebra/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_61.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject() ## DBchapter() ## DBsection() @@ -11,33 +11,33 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", "PGcourse.pl", "contextLimitedPoint.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup -# +# $limit = 5; @@ -53,7 +53,7 @@ texsize=>300, ); -add_functions($gr, "($slope(x)+$intercept) for x in <-$limit,$limit>" . +add_functions($gr, "($slope(x)+$intercept) for x in <-$limit,$limit>" . " using color:blue and weight:2"); Context("Numeric"); @@ -62,23 +62,23 @@ $ans = Formula(" $slope(x) +$intercept")->reduce; ########################### # Main text - + BEGIN_PGML -Find the equation of the graphed line. +Find the equation of the graphed line. >> [@ image(insertGraph($gr), tex_size=>16000, width=>400, height=>400), @]* << -[`f(x) = `] [______]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`f(x) = `] [______]{$ans} [@ helpLink("numbers") @]* END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/CollegeAlgebra/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_10.pg b/Contrib/CCCS/CollegeAlgebra/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_10.pg index f5d756471f..e1f0631136 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_10.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_10.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -55,9 +55,9 @@ $ans3=Point("($h,$k)"); BEGIN_PGML Rewrite the quadratic function [`f(x)=[$f]`] in standard form, [`f(x)=a(x-h)^2+k`], and give the vertex. -[` f(x) = `][_]{$a}[`(x-`][_]{$ans1}[`)^2+`] [_]{$ans2} [@ AnswerFormatHelp("numbers") @]* +[` f(x) = `][_]{$a}[`(x-`][_]{$ans1}[`)^2+`] [_]{$ans2} [@ helpLink("numbers") @]* -+ Vertex: [_________]{$ans3} [@ AnswerFormatHelp("points") @]* ++ Vertex: [_________]{$ans3} [@ helpLink("points") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_14.pg b/Contrib/CCCS/CollegeAlgebra/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_14.pg index af896f9224..c02be8dcb7 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_14.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_14.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserPopUp.pl", "PGML.pl", "PGcourse.pl", @@ -63,9 +63,9 @@ $ans2=Compute($h); BEGIN_PGML Determine whether[`f(x)= [$f] `] has a minimum or maximum value, and find the value of the minimum or maximum. Also, find the axis of symmetry. -The value of the [____________]{$popup1} is [_____________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +The value of the [____________]{$popup1} is [_____________]{$ans1} [@ helpLink("numbers") @]* -The axis of symmetry for [`f(x)`] is given by [___]{$popup2} [_____________]{$ans2}[@ AnswerFormatHelp("numbers") @]* +The axis of symmetry for [`f(x)`] is given by [___]{$popup2} [_____________]{$ans2}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_16.pg b/Contrib/CCCS/CollegeAlgebra/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_16.pg index 20a625df47..c06348d981 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_16.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_16.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserPopUp.pl", "PGML.pl", "PGcourse.pl", @@ -62,9 +62,9 @@ $ans2=Compute($h); BEGIN_PGML Determine whether[`f(x)= [$f] `] has a minimum or maximum value, and find the value of the minimum or maximum. Also, find the axis of symmetry. -The value of the [____________]{$popup1} is [_____________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +The value of the [____________]{$popup1} is [_____________]{$ans1} [@ helpLink("numbers") @]* -The axis of symmetry for [`f(x)`] is given by [___]{$popup2} [_____________]{$ans2}[@ AnswerFormatHelp("numbers") @]* +The axis of symmetry for [`f(x)`] is given by [___]{$popup2} [_____________]{$ans2}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_21.pg b/Contrib/CCCS/CollegeAlgebra/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_21.pg index 8bee308e1f..0c1b56f8c2 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_21.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_21.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,9 +51,9 @@ BEGIN_PGML Determine the domain and range of [` f(x)= [$g][$f] `]. Enter the solution in interval notation. -+ Domain: [_______________]{$ans1} [@ AnswerFormatHelp("intervals") @]* ++ Domain: [_______________]{$ans1} [@ helpLink("intervals") @]* -+ Range: [_______________]{$ans2} [@ AnswerFormatHelp("intervals") @]* ++ Range: [_______________]{$ans2} [@ helpLink("intervals") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_23.pg b/Contrib/CCCS/CollegeAlgebra/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_23.pg index 0c934e09ec..21f187eeb8 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_23.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_23.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -55,9 +55,9 @@ BEGIN_PGML Determine the domain and range of [` f(x)=[$f] `]. Enter the solution in interval notation. -+ Domain: [_______________]{$ans1} [@ AnswerFormatHelp("intervals") @]* ++ Domain: [_______________]{$ans1} [@ helpLink("intervals") @]* -+ Range: [_______________]{$ans2} [@ AnswerFormatHelp("intervals") @]* ++ Range: [_______________]{$ans2} [@ helpLink("intervals") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_27.pg b/Contrib/CCCS/CollegeAlgebra/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_27.pg index d3d5aa0b66..8d63925647 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_27.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_27.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", ); @@ -49,8 +49,8 @@ $ans1=Formula("x^2-2*$h*x+(($h)^2+$k)")->reduce; #$ans1=Formula("$a*(x-$h)^2+$k"); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -70,7 +70,7 @@ $BR $BR \( f(x) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR diff --git a/Contrib/CCCS/CollegeAlgebra/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_29.pg b/Contrib/CCCS/CollegeAlgebra/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_29.pg index fda0d78852..46d021c80f 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_29.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_29.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -62,7 +62,7 @@ $BR $BR \( f(x) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR $ECENTER diff --git a/Contrib/CCCS/CollegeAlgebra/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_35.pg b/Contrib/CCCS/CollegeAlgebra/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_35.pg index 7d63a7ad81..234a0cacff 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_35.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_35.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -63,13 +63,13 @@ $popup = PopUp( # Main text BEGIN_PGML -For the quadratic function [`f(x)=[$f]`], find the vertex, the axis of symmetry, and the `x`-intercept(s). Express the vertex as a coordinate pair. If there is more than one intercept, enter as a comma separated list of points. +For the quadratic function [`f(x)=[$f]`], find the vertex, the axis of symmetry, and the `x`-intercept(s). Express the vertex as a coordinate pair. If there is more than one intercept, enter as a comma separated list of points. -+ vertex: [_______________]{$vertex} [@ AnswerFormatHelp("points") @]* ++ vertex: [_______________]{$vertex} [@ helpLink("points") @]* -+ axis of symmetry: [___]{$popup}[_______________]{$vx} [@ AnswerFormatHelp("numbers") @]* ++ axis of symmetry: [___]{$popup}[_______________]{$vx} [@ helpLink("numbers") @]* -+ `x`-intercept(s): [___________________________]{"((-$b - sqrt($sqrt))/($den),0),((-$b + sqrt($sqrt))/($den),0)"} [@ AnswerFormatHelp("points") @]* ++ `x`-intercept(s): [___________________________]{"((-$b - sqrt($sqrt))/($den),0),((-$b + sqrt($sqrt))/($den),0)"} [@ helpLink("points") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_39.pg b/Contrib/CCCS/CollegeAlgebra/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_39.pg index 8d07389839..61ddf48935 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_39.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_39.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -63,14 +63,14 @@ $popup = PopUp( # Main text BEGIN_PGML -For the quadratic function [`f(x)=[$f]`], find the vertex, the axis of symmetry, and the `x`-intercept(s). Express the vertex as a coordinate pair. If there is more than one intercept, enter as a comma separated list of points. +For the quadratic function [`f(x)=[$f]`], find the vertex, the axis of symmetry, and the `x`-intercept(s). Express the vertex as a coordinate pair. If there is more than one intercept, enter as a comma separated list of points. -+ vertex: [_______________]{$vertex} [@ AnswerFormatHelp("points") @]* ++ vertex: [_______________]{$vertex} [@ helpLink("points") @]* -+ axis of symmetry: [___]{$popup} [_______________]{$vx} [@ AnswerFormatHelp("numbers") @]* ++ axis of symmetry: [___]{$popup} [_______________]{$vx} [@ helpLink("numbers") @]* -+ `x`-intercept(s): [_______________________________]{"((-$b+sqrt($sqrt))/$den,0),((-$b-sqrt($sqrt))/$den,0)"} [@ AnswerFormatHelp("points") @]* ++ `x`-intercept(s): [_______________________________]{"((-$b+sqrt($sqrt))/$den,0),((-$b-sqrt($sqrt))/$den,0)"} [@ helpLink("points") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_41.pg b/Contrib/CCCS/CollegeAlgebra/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_41.pg index b365817ac7..17c7d8ec1d 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_41.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_41.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -58,7 +58,7 @@ Write an equation for the graphed function. $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>400,height=>400,tex_size=>800 ) \} $BR $BR @@ -68,7 +68,7 @@ $BR $BR $BR \( f(x) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR $ECENTER diff --git a/Contrib/CCCS/CollegeAlgebra/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_43.pg b/Contrib/CCCS/CollegeAlgebra/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_43.pg index b3df3041f0..85fdfd41dd 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_43.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_43.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -58,7 +58,7 @@ Write an equation for the graphed function. $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>400,height=>400,tex_size=>800 ) \} $BR $BR @@ -68,7 +68,7 @@ $BR $BR $BR \( f(x) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR $ECENTER diff --git a/Contrib/CCCS/CollegeAlgebra/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_56.pg b/Contrib/CCCS/CollegeAlgebra/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_56.pg index a410616901..37493b4e5e 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_56.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_56.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -53,11 +53,11 @@ $d = Compute("(-infinity,infinity)"); # Main text BEGIN_PGML -Find the domain and range for the quadratic function with a vertex [`([$vx],[$vy])`] if the graph opens [`[$concavity]`]. +Find the domain and range for the quadratic function with a vertex [`([$vx],[$vy])`] if the graph opens [`[$concavity]`]. -+ Domain: [_______________]{$d} [@ AnswerFormatHelp("intervals") @]* ++ Domain: [_______________]{$d} [@ helpLink("intervals") @]* -+ Range: [_______________]{$r} [@ AnswerFormatHelp("intervals") @]* ++ Range: [_______________]{$r} [@ helpLink("intervals") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_6.pg b/Contrib/CCCS/CollegeAlgebra/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_6.pg index 0201c4b44e..ff25895430 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_6.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_6.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -50,8 +50,8 @@ Context("LimitedPoint"); $ans3=Point("($h,$k)"); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -63,10 +63,10 @@ TeX => BEGIN_PGML Rewrite the quadratic function [`f(x)=[$f]`] in standard form, [`f(x)=a(x-h)^2+k`], and give the vertex. -[` f(x) = `][_]{$a}[`(x-`][_]{$ans1}[`)^2+`] [_]{$ans2} [@ AnswerFormatHelp("numbers") @]* +[` f(x) = `][_]{$a}[`(x-`][_]{$ans1}[`)^2+`] [_]{$ans2} [@ helpLink("numbers") @]* -+ Vertex: [_________]{$ans3} [@ AnswerFormatHelp("points") @]* ++ Vertex: [_________]{$ans3} [@ helpLink("points") @]* [$video]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_67.pg b/Contrib/CCCS/CollegeAlgebra/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_67.pg index 16545343f4..3d9111cec3 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_67.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_67.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "unorderedAnswer.pl", "PGcourse.pl", @@ -43,8 +43,8 @@ $length=Real($y); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -53,16 +53,16 @@ TeX => # Main text BEGIN_PGML - -Find the dimensions of a rectangular corral split into 2 pens of the same size producing the greatest possible enclosed area given [`[$a]`] feet of fencing. + +Find the dimensions of a rectangular corral split into 2 pens of the same size producing the greatest possible enclosed area given [`[$a]`] feet of fencing. -Width = [_______________][@ AnswerFormatHelp("numbers") @]* +Width = [_______________][@ helpLink("numbers") @]* -Length = [_______________][@ AnswerFormatHelp("numbers") @]* +Length = [_______________][@ helpLink("numbers") @]* -[$video]* +[$video]* END_PGML BEGIN_TEXT @@ -79,9 +79,9 @@ $showPartialCorrectAnswers = 0; install_problem_grader(~~&std_problem_grader); -UNORDERED_ANS( -$length->cmp(), , -$width->cmp(), , +UNORDERED_ANS( +$length->cmp(), , +$width->cmp(), , ); diff --git a/Contrib/CCCS/CollegeAlgebra/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_73.pg b/Contrib/CCCS/CollegeAlgebra/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_73.pg index 1b25546262..73c29aacf0 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_73.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_73.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -49,7 +49,7 @@ $t=$v0/$g; BEGIN_PGML A ball is thrown in the air from the top of a building. Its height, in meters above ground, as a function of time, in seconds, is given by [`h(t)=[$h]`]. How many seconds does it take to reach maximum height? Enter the answer with at least 3 decimal places. -[`t=`] [_______________]{$t} [@ AnswerFormatHelp("numbers") @]* +[`t=`] [_______________]{$t} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_12.pg b/Contrib/CCCS/CollegeAlgebra/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_12.pg index c26ba4c24f..a458366435 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_12.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_12.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -47,8 +47,8 @@ $ans1=Compute($d); $ans2=Compute($b); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -59,9 +59,9 @@ TeX => BEGIN_PGML Find the degree and leading coefficient for [`y=[$f]`]. -+ Degree: [___]{$ans1} [@ AnswerFormatHelp("numbers") @]* ++ Degree: [___]{$ans1} [@ helpLink("numbers") @]* -+ Leading Coefficient: [____]{$ans2} [@ AnswerFormatHelp("numbers") @]* ++ Leading Coefficient: [____]{$ans2} [@ helpLink("numbers") @]* [$video]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_13.pg b/Contrib/CCCS/CollegeAlgebra/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_13.pg index 6ec6f941a7..107180df56 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_13.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_13.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -49,9 +49,9 @@ $ans2=Compute($a); BEGIN_PGML Find the degree and leading coefficient for [`y=[$f]`]. -+ Degree: [___]{$ans1} [@ AnswerFormatHelp("numbers") @]* ++ Degree: [___]{$ans1} [@ helpLink("numbers") @]* -+ Leading Coefficient: [____]{$ans2} [@ AnswerFormatHelp("numbers") @]* ++ Leading Coefficient: [____]{$ans2} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_14.pg b/Contrib/CCCS/CollegeAlgebra/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_14.pg index 32b8e22df5..ffa47d6264 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_14.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_14.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -51,9 +51,9 @@ $ans2=Compute($a); BEGIN_PGML Find the degree and leading coefficient for [`y=[$f]`]. -+ Degree: [___]{$ans1} [@ AnswerFormatHelp("numbers") @]* ++ Degree: [___]{$ans1} [@ helpLink("numbers") @]* -+ Leading Coefficient: [____]{$ans2} [@ AnswerFormatHelp("numbers") @]* ++ Leading Coefficient: [____]{$ans2} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_17.pg b/Contrib/CCCS/CollegeAlgebra/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_17.pg index 525a1f601a..39fc39140d 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_17.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_17.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -39,8 +39,8 @@ $a=non_zero_random(2,10, 1); $f=Formula("$a*x^4")->reduce; $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -52,9 +52,9 @@ TeX => BEGIN_PGML Determine the end behavior for [`y=[$f]`]. -+ As [`x \to -\infty `], [`y \to `] [___]{"infinity"} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to -\infty `], [`y \to `] [___]{"infinity"} [@ helpLink("numbers") @]* -+ As [`x \to \infty `], [`y \to `] [____]{"infinity"} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to \infty `], [`y \to `] [____]{"infinity"} [@ helpLink("numbers") @]* [$video]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_20.pg b/Contrib/CCCS/CollegeAlgebra/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_20.pg index db90de5430..891d6f01cd 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_20.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_20.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -50,9 +50,9 @@ $f=$g+$h+$j; BEGIN_PGML Determine the end behavior for [`y=[$f]`]. -+ As [`x \to -\infty `], [`y \to `] [___]{"infinity"} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to -\infty `], [`y \to `] [___]{"infinity"} [@ helpLink("numbers") @]* -+ As [`x \to \infty `], [`y \to `] [____]{"-infinity"} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to \infty `], [`y \to `] [____]{"-infinity"} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_22.pg b/Contrib/CCCS/CollegeAlgebra/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_22.pg index ba6847efe5..79a628c24d 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_22.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_22.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -50,9 +50,9 @@ $f=$g+$h+$j; BEGIN_PGML Determine the end behavior for [`y=[$f]`]. -+ As [`x \to -\infty `], [`y \to `] [___]{"infinity"} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to -\infty `], [`y \to `] [___]{"infinity"} [@ helpLink("numbers") @]* -+ As [`x \to \infty `], [`y \to `] [____]{"-infinity"} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to \infty `], [`y \to `] [____]{"-infinity"} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_23.pg b/Contrib/CCCS/CollegeAlgebra/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_23.pg index 4854eab2b2..e8493373f1 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_23.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_23.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -50,9 +50,9 @@ $f=$g*($h+$j); BEGIN_PGML Determine the end behavior for [`y=[$f]`]. -+ As [`x \to -\infty `], [`y \to `] [___]{"-infinity"} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to -\infty `], [`y \to `] [___]{"-infinity"} [@ helpLink("numbers") @]* -+ As [`x \to \infty `], [`y \to `] [____]{"infinity"} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to \infty `], [`y \to `] [____]{"infinity"} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_24.pg b/Contrib/CCCS/CollegeAlgebra/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_24.pg index 163d434154..150af501c5 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_24.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_24.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -47,9 +47,9 @@ $f= Formula("(x + $b)^2") -> reduce; BEGIN_PGML Determine the end behavior for [`y=[$f]`]. -+ As [`x \to -\infty `], [`y \to `] [___]{"infinity"} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to -\infty `], [`y \to `] [___]{"infinity"} [@ helpLink("numbers") @]* -+ As [`x \to \infty `], [`y \to `] [____]{"infinity"} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to \infty `], [`y \to `] [____]{"infinity"} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_25.pg b/Contrib/CCCS/CollegeAlgebra/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_25.pg index a9a65d873f..7f54dc2c62 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_25.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_25.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -54,9 +54,9 @@ $xint = List( Point("($b,0)"),Point("($c,0)"),Point("($d,0)")); BEGIN_PGML Find the intercepts of [`f(x)=[$f]`]. Enter intercepts as points. If you have more than one point, enter them as a comma separated list. -+ [`y`]-intercept: [_________]{$yint} [@ AnswerFormatHelp("points") @]* ++ [`y`]-intercept: [_________]{$yint} [@ helpLink("points") @]* -+ [`x`]-intercept(s) [_________________]{$xint} [@ AnswerFormatHelp("points") @]* ++ [`x`]-intercept(s) [_________________]{$xint} [@ helpLink("points") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_28.pg b/Contrib/CCCS/CollegeAlgebra/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_28.pg index a431dcd1c4..019dffabe6 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_28.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_28.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -52,9 +52,9 @@ $xint = List( Point("(-$a,0)")); BEGIN_PGML Find the intercepts of [`f(x)=[$f]`]. Enter intercepts as points. If there is more than one point, enter a comma separated list. (Hint: this is the addition of cubes) -+ [`y-`]intercept: [___]{$yint} [@ AnswerFormatHelp("points") @]* ++ [`y-`]intercept: [___]{$yint} [@ helpLink("points") @]* -+ [`x-`]intercept(s) [____]{$xint} [@ AnswerFormatHelp("points") @]* ++ [`x-`]intercept(s) [____]{$xint} [@ helpLink("points") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_31.pg b/Contrib/CCCS/CollegeAlgebra/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_31.pg index 3d792511de..d4a65787e0 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_31.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_31.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "PGgraphmacros.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -66,8 +66,8 @@ elsif($s == 2){ } $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -82,7 +82,7 @@ Determine the least possible degree of the polynomial function shown. $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>300,height=>300,tex_size=>800 ) \} $BR (Click on graph to enlarge) diff --git a/Contrib/CCCS/CollegeAlgebra/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_33.pg b/Contrib/CCCS/CollegeAlgebra/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_33.pg index 32593d5bd5..f1b50894de 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_33.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_33.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "PGgraphmacros.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -75,7 +75,7 @@ Determine the least possible degree of the polynomial function shown. $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>300,height=>300,tex_size=>800 ) \} $BR (Click on graph to enlarge) diff --git a/Contrib/CCCS/CollegeAlgebra/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_34.pg b/Contrib/CCCS/CollegeAlgebra/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_34.pg index 2156b93aa2..1ce4ac4cc5 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_34.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_34.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "PGgraphmacros.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -78,7 +78,7 @@ Determine the least possible degree of the polynomial function shown. $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>300,height=>300,tex_size=>800 ) \} $BR (Click on graph to enlarge) diff --git a/Contrib/CCCS/CollegeAlgebra/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_36.pg b/Contrib/CCCS/CollegeAlgebra/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_36.pg index 325a0f801e..0733975318 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_36.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_36.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "PGgraphmacros.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -78,7 +78,7 @@ Determine the least possible degree of the polynomial function shown. $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>300,height=>300,tex_size=>800 ) \} $BR (Click on graph to enlarge) diff --git a/Contrib/CCCS/CollegeAlgebra/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_37.pg b/Contrib/CCCS/CollegeAlgebra/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_37.pg index b665f08bb1..8a98360467 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_37.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_37.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "PGgraphmacros.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -79,7 +79,7 @@ Determine the least possible degree of the polynomial function shown. $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>300,height=>300,tex_size=>800 ) \} $BR (Click on graph to enlarge) diff --git a/Contrib/CCCS/CollegeAlgebra/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_51.pg b/Contrib/CCCS/CollegeAlgebra/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_51.pg index bc34b6a1a0..8fe9f7c35b 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_51.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_51.pg @@ -21,7 +21,7 @@ loadMacros( "AppletObjects.pl", "unionTables.pl", "parserNumberWithUnits.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl", "contextLimitedPoint.pl", @@ -42,7 +42,7 @@ HEADER_TEXT(MODES( )); $desmos_div = MODES( - HTML=>qq(
), + HTML=>qq(
), TeX=>'Interactive graph best viewed online' ); @@ -75,13 +75,13 @@ BEGIN_PGML For [` f(x) = [$f] `], determine the `x`-intercepts and the end behavior. Enter intercepts as a comma separated list of points. -Intercepts : [_________________]{$xint} [@ AnswerFormatHelp("points") @]* +Intercepts : [_________________]{$xint} [@ helpLink("points") @]* -+ As [`x \to -\infty `], [`f(x) \to `] [___]{"infinity"} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to -\infty `], [`f(x) \to `] [___]{"infinity"} [@ helpLink("numbers") @]* -+ As [`x \to \infty `], [`f(x) \to `] [____]{"infinity"} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to \infty `], [`f(x) \to `] [____]{"infinity"} [@ helpLink("numbers") @]* -Inputting the function into the Desmos graphing tool below may help investigate the function. +Inputting the function into the Desmos graphing tool below may help investigate the function. END_PGML @@ -109,10 +109,10 @@ TEXT( MODES(TeX=>'', HTML=><qq(
), + HTML=>qq(
), TeX=>'Interactive graph best viewed online' ); @@ -72,14 +72,14 @@ BEGIN_PGML For [` f(x) = [$f] `], determine the `x`-intercepts and the end behavior. Enter intercepts as a comma separated list of points. -Intercepts : [_______________]{$xint} [@ AnswerFormatHelp("points") @]* +Intercepts : [_______________]{$xint} [@ helpLink("points") @]* -+ As [`x \to -\infty `], [`f(x) \to `] [___]{"infinity"} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to -\infty `], [`f(x) \to `] [___]{"infinity"} [@ helpLink("numbers") @]* -+ As [`x \to \infty `], [`f(x) \to `] [____]{"infinity"} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to \infty `], [`f(x) \to `] [____]{"infinity"} [@ helpLink("numbers") @]* -Inputting the function into the Desmos tool below may help investigate the function. +Inputting the function into the Desmos tool below may help investigate the function. END_PGML Context()->texStrings; @@ -106,9 +106,9 @@ TEXT( MODES(TeX=>'', HTML=><qq(
), + HTML=>qq(
), TeX=>'Interactive graph best viewed online' ); @@ -72,13 +72,13 @@ BEGIN_PGML For [` f(x) = [$f] `], determine the `x`-intercepts and the end behavior. Enter intercepts as a comma separated list of points. -Intercepts : [_____________________________]{$xint} [@ AnswerFormatHelp("points") @]* +Intercepts : [_____________________________]{$xint} [@ helpLink("points") @]* -+ As [`x \to -\infty `], [`f(x) \to `] [___]{"-infinity"} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to -\infty `], [`f(x) \to `] [___]{"-infinity"} [@ helpLink("numbers") @]* -+ As [`x \to \infty `], [`f(x) \to `] [____]{"-infinity"} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to \infty `], [`f(x) \to `] [____]{"-infinity"} [@ helpLink("numbers") @]* -Inputting the function into the Desmos tool below may help investigate the function. +Inputting the function into the Desmos tool below may help investigate the function. END_PGML Context()->texStrings; @@ -106,9 +106,9 @@ TEXT( MODES(TeX=>'', HTML=><qq(
), + HTML=>qq(
), TeX=>'Interactive graph best viewed online' ); @@ -70,13 +70,13 @@ BEGIN_PGML For [` f(x) = [$f] `], determine the `x`-intercepts and the end behavior. Enter intercepts as a comma separated list of points. -Intercepts : [___________________]{$xint} [@ AnswerFormatHelp("points") @]* +Intercepts : [___________________]{$xint} [@ helpLink("points") @]* -+ As [`x \to -\infty `], [`f(x) \to `] [___]{"-infinity"} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to -\infty `], [`f(x) \to `] [___]{"-infinity"} [@ helpLink("numbers") @]* -+ As [`x \to \infty `], [`f(x) \to `] [____]{"infinity"} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to \infty `], [`f(x) \to `] [____]{"infinity"} [@ helpLink("numbers") @]* -Inputting the function into the Desmos tool below may help investigate the function. +Inputting the function into the Desmos tool below may help investigate the function. END_PGML Context()->texStrings; @@ -104,9 +104,9 @@ TEXT( MODES(TeX=>'', HTML=><qq(
), + HTML=>qq(
), TeX=>'Interactive graph best viewed online' ); @@ -72,13 +72,13 @@ BEGIN_PGML For [` f(x) = [$f] `], determine the `x`-intercepts and the end behavior. Enter intercepts as a comma separated list of points. -Intercepts : [_______________]{$xint} [@ AnswerFormatHelp("points") @]* +Intercepts : [_______________]{$xint} [@ helpLink("points") @]* -+ As [`x \to -\infty `], [`f(x) \to `] [___]{"infinity"} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to -\infty `], [`f(x) \to `] [___]{"infinity"} [@ helpLink("numbers") @]* -+ As [`x \to \infty `], [`f(x) \to `] [____]{"infinity"} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to \infty `], [`f(x) \to `] [____]{"infinity"} [@ helpLink("numbers") @]* -Inputting the function into the Desmos tool below may help investigate the function. +Inputting the function into the Desmos tool below may help investigate the function. END_PGML @@ -107,9 +107,9 @@ TEXT( MODES(TeX=>'', HTML=><variables->are(h=>"Real",y=>"Real"); parser::Assignment->Allow; parser::Assignment->Function("A"); - + $a = random(5,13,.5); $b = random(1.5,4.5, .5); - + $fun = Formula("A(h)=pi*($a*h+$b)^2"); - - + + ########################### # Main text - - + + BEGIN_TEXT For the following exercise, use the written statement to construct a polynomial function that represents the required information. $BR @@ -52,28 +52,28 @@ inches per hour. Express the area of the circle, \( A \) as a function of \( h \ hours elapsed. ( Answer should be \(A(h) = \) some function of \(h\), enter \( \pi \) as pi ) $BR $BR -The polynomial is: \{ans_rule{20}\} \{ AnswerFormatHelp("equations") \} +The polynomial is: \{ans_rule{20}\} \{ helpLink("equations") \} $BR - + END_TEXT - + ############################ # Answer evaluation - - + + install_problem_grader(~~&std_problem_grader); - + $showPartialCorrectAnswers = 1; - + ANS( $fun->cmp() ); - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/CollegeAlgebra/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_11.pg b/Contrib/CCCS/CollegeAlgebra/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_11.pg index 878558d00c..18531c29a3 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_11.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_11.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -46,8 +46,8 @@ Context("LimitedPoint"); $xint = List(Point("(0,0)"), Point("($b,0)"),Point("($c,0)")); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -59,7 +59,7 @@ TeX => BEGIN_PGML Find the [`x`]-intercept(s) of [`f(x)=[$f]`]. Enter intercept(s) as points. If there is more than one point, enter them as a comma separated list. -+ [`x`]-intercept(s): [_______________]{$xint} [@ AnswerFormatHelp("points") @]* ++ [`x`]-intercept(s): [_______________]{$xint} [@ helpLink("points") @]* [$video]* diff --git a/Contrib/CCCS/CollegeAlgebra/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_16.pg b/Contrib/CCCS/CollegeAlgebra/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_16.pg index 521789f30a..d78310e50a 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_16.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_16.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -52,7 +52,7 @@ $xint = List( Point("(-$a,0)"),Point("($b,0)"),Point("(-$b,0)")); BEGIN_PGML Find the [`x`]-intercept(s) of [`f(x)=[$f]`]. Enter intercept(s) as points. If there is more than one point, enter them as a comma separated list. (Hint: this involves factor by grouping) -+ [`x`]-intercept(s): [_______________]{$xint} [@ AnswerFormatHelp("points") @]* ++ [`x`]-intercept(s): [_______________]{$xint} [@ helpLink("points") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_19.pg b/Contrib/CCCS/CollegeAlgebra/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_19.pg index bdae623b22..cfadcd73f0 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_19.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_19.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -53,7 +53,7 @@ $xint = List(Point("(sqrt($b),0)"), Point("(-sqrt($b),0)")); BEGIN_PGML Find the [`x`]-intercept(s) of [`f(x)=[$f]`]. Enter intercept(s) as points. If there is more than one point, enter them as a comma separated list. (Hint: this involves "u" substitution) -+ [`x`]-intercept(s): [_______________]{$xint} [@ AnswerFormatHelp("points") @]* ++ [`x`]-intercept(s): [_______________]{$xint} [@ helpLink("points") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_23.pg b/Contrib/CCCS/CollegeAlgebra/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_23.pg index dcaf94f763..95d5308410 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_23.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_23.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -50,7 +50,7 @@ $xint = List(Point("(0,0)"),Point("(sqrt($b),0)"), Point("(-sqrt($b),0)"),Point( BEGIN_PGML Find the [`x`]-intercept(s) of [`f(x)=[$f]`]. Enter intercept(s) as points. If there is more than one point, enter them as a comma separated list. -+ [`x`]-intercept(s): [_____________________________]{$xint} [@ AnswerFormatHelp("points") @]* ++ [`x`]-intercept(s): [_____________________________]{$xint} [@ helpLink("points") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_30.pg b/Contrib/CCCS/CollegeAlgebra/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_30.pg index 46cd418dec..960725e32a 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_30.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_30.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -53,18 +53,18 @@ $multians = MultiAnswer($a, $m, $b, $n)->with( my ( $correct, $student, $self ) = @_; my ( $stu1, $stu2, $stu3, $stu4) = @{$student}; my ( $a1, $a2, $a3, $a4) = @{$correct}; - if ( + if ( ( ($stu1 == $a1 && $stu2 == $a2) && ($stu3 == $a3 && $stu4 == $a4) || ( $stu1 == $a3 && $stu2 == $a4) && ($stu3 == $a1 && $stu4 == $a2 ) ) ) -{return [1,1,1,1];} +{return [1,1,1,1];} -else { return [0,0,0,0]; } +else { return [0,0,0,0]; } } ); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -73,15 +73,15 @@ TeX => # Main text BEGIN_PGML -Find the zeros and give the multiplicity of each for [`f(x)=[$f]`]. +Find the zeros and give the multiplicity of each for [`f(x)=[$f]`]. Note: to get the problem correct, you must get all answers correct. -+ One zero is [`x=`][____]{$multians} and has a multiplicity of [____]{$multians} [@ AnswerFormatHelp("numbers") @]* ++ One zero is [`x=`][____]{$multians} and has a multiplicity of [____]{$multians} [@ helpLink("numbers") @]* -+ The other zero is [`x=`][____]{$multians} and has a multiplicity of [____]{$multians} [@ AnswerFormatHelp("numbers") @]* ++ The other zero is [`x=`][____]{$multians} and has a multiplicity of [____]{$multians} [@ helpLink("numbers") @]* -[$video]* +[$video]* END_PGML BEGIN_TEXT diff --git a/Contrib/CCCS/CollegeAlgebra/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_32.pg b/Contrib/CCCS/CollegeAlgebra/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_32.pg index c28bed59e7..a99bfa88a1 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_32.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_32.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserMultiAnswer.pl", "PGML.pl", @@ -55,7 +55,7 @@ $multians = MultiAnswer($a, $m2, 0, $m1, $b, $m3)->with( my ( $correct, $student, $self ) = @_; my ( $stu1, $stu2, $stu3, $stu4, $stu5, $stu6) = @{$student}; my ( $a1, $a2, $a3, $a4, $a5, $a6) = @{$correct}; - if ( + if ( ( (($stu1 == $a1 && $stu2 == $a2 ) && ($stu3 == $a3 && $stu4 == $a4) && ($stu5 == $a5 && $stu6 == $a6)) || ( ($stu1 == $a3 && $stu2 == $a4) && ($stu3 == $a1 && $stu4 == $a2 ) && ($stu5 == $a5 && $stu6 == $a6)) || ( ($stu1 == $a3 && $stu2 == $a4) && ($stu3 == $a5 && $stu4 == $a6 ) && ($stu5 == $a1 && $stu6 == $a2)) || @@ -64,9 +64,9 @@ $multians = MultiAnswer($a, $m2, 0, $m1, $b, $m3)->with( (($stu1 == $a5 && $stu2 == $a6 ) && ($stu3 == $a1 && $stu4 == $a2) && ($stu5 == $a3 && $stu6 == $a4)) ) ) -{return [1,1,1,1,1,1];} +{return [1,1,1,1,1,1];} -else { return [0,0,0,0,0,0]; } +else { return [0,0,0,0,0,0]; } } ); @@ -75,17 +75,17 @@ else { return [0,0,0,0,0,0]; } # Main text BEGIN_PGML -Find the zeros and give the multiplicity of each for [`f(x)=[$f]`]. +Find the zeros and give the multiplicity of each for [`f(x)=[$f]`]. Note: to be counted as correct, you must get all answers correct. -+ One zero is [`x=`][____]{$multians} and has a multiplicity of [____]{$multians} [@ AnswerFormatHelp("numbers") @]* ++ One zero is [`x=`][____]{$multians} and has a multiplicity of [____]{$multians} [@ helpLink("numbers") @]* -+ Another zero is [`x=`][____]{$multians} and has a multiplicity of: [____]{$multians} [@ AnswerFormatHelp("numbers") @]* ++ Another zero is [`x=`][____]{$multians} and has a multiplicity of: [____]{$multians} [@ helpLink("numbers") @]* -+ The last zero is [`x=`][____]{$multians} and has a multiplicity of: [____]{$multians} [@ AnswerFormatHelp("numbers") @]* ++ The last zero is [`x=`][____]{$multians} and has a multiplicity of: [____]{$multians} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_37.pg b/Contrib/CCCS/CollegeAlgebra/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_37.pg index 6d935b7124..f2cd89fb1c 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_37.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_37.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserMultiAnswer.pl", "PGML.pl", @@ -49,7 +49,7 @@ $multians = MultiAnswer(0, $m, $a, 1, $b, 1)->with( my ( $correct, $student, $self ) = @_; my ( $stu1, $stu2, $stu3, $stu4, $stu5, $stu6) = @{$student}; my ( $a1, $a2, $a3, $a4, $a5, $a6) = @{$correct}; - if ( + if ( ( (($stu1 == $a1 && $stu2 == $a2 ) && ($stu3 == $a3 && $stu4 == $a4) && ($stu5 == $a5 && $stu6 == $a6)) || ( ($stu1 == $a3 && $stu2 == $a4) && ($stu3 == $a1 && $stu4 == $a2 ) && ($stu5 == $a5 && $stu6 == $a6)) || ( ($stu1 == $a3 && $stu2 == $a4) && ($stu3 == $a5 && $stu4 == $a6 ) && ($stu5 == $a1 && $stu6 == $a2)) || @@ -57,9 +57,9 @@ $multians = MultiAnswer(0, $m, $a, 1, $b, 1)->with( (($stu1 == $a5 && $stu2 == $a6 ) && ($stu3 == $a3 && $stu4 == $a4) && ($stu5 == $a1 && $stu6 == $a2)) || (($stu1 == $a5 && $stu2 == $a6 ) && ($stu3 == $a1 && $stu4 == $a2) && ($stu5 == $a3 && $stu6 == $a4)) ) ) -{return [1,1,1,1,1,1];} +{return [1,1,1,1,1,1];} -else { return [0,0,0,0,0,0]; } +else { return [0,0,0,0,0,0]; } } ); @@ -68,17 +68,17 @@ else { return [0,0,0,0,0,0]; } # Main text BEGIN_PGML -Find the zeros and give the multiplicity of each for [`f(x)=[$f]`]. +Find the zeros and give the multiplicity of each for [`f(x)=[$f]`]. Note: to be counted as correct, you must get all answers correct. -+ One zero is [`x=`][____]{$multians} and has a multiplicity of [____]{$multians} [@ AnswerFormatHelp("numbers") @]* ++ One zero is [`x=`][____]{$multians} and has a multiplicity of [____]{$multians} [@ helpLink("numbers") @]* -+ Another zero is [`x=`][____]{$multians} and has a multiplicity of: [____]{$multians} [@ AnswerFormatHelp("numbers") @]* ++ Another zero is [`x=`][____]{$multians} and has a multiplicity of: [____]{$multians} [@ helpLink("numbers") @]* -+ The last zero is [`x=`][____]{$multians} and has a multiplicity of: [____]{$multians} [@ AnswerFormatHelp("numbers") @]* ++ The last zero is [`x=`][____]{$multians} and has a multiplicity of: [____]{$multians} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_46.pg b/Contrib/CCCS/CollegeAlgebra/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_46.pg index 39d610e5a9..a865c15999 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_46.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_46.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -49,8 +49,8 @@ $yint = List( Point("(0,$y)") ); Context("Numeric"); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -62,13 +62,13 @@ TeX => BEGIN_PGML Graph the polynomial [`y=[$f]`]. Give the [`x`]-intercept(s), [`y`]-intercept, and end behavior below, and draw the graph by hand on paper for your own reference. -+ [`x`]-intercept(s): [____________]{$xint} [@ AnswerFormatHelp("points") @]* ++ [`x`]-intercept(s): [____________]{$xint} [@ helpLink("points") @]* -+ [`y`]-intercept: [____]{$yint} [@ AnswerFormatHelp("points") @]* ++ [`y`]-intercept: [____]{$yint} [@ helpLink("points") @]* -+ As [`x \to -\infty `], [`y \to `] [___]{"infinity"} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to -\infty `], [`y \to `] [___]{"infinity"} [@ helpLink("numbers") @]* -+ As [`x \to \infty `], [`y \to `] [____]{"-infinity"} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to \infty `], [`y \to `] [____]{"-infinity"} [@ helpLink("numbers") @]* [$video]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_48.pg b/Contrib/CCCS/CollegeAlgebra/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_48.pg index 0416ad7721..67910cb632 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_48.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_48.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", ); @@ -51,8 +51,8 @@ $refreshCachedImages=1; $ans1=Formula("1/2*(x-$a)*(x-$b)*(x-$c)")->reduce; $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -66,7 +66,7 @@ Let the graph of \( f(x) \) be given below. Find the formula of \( f(x) \), a po $BR $BR -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>300,height=>300,tex_size=>800 ) \} $BR $BR @@ -76,7 +76,7 @@ $BR $BR $BR \( f(x) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR diff --git a/Contrib/CCCS/CollegeAlgebra/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_51.pg b/Contrib/CCCS/CollegeAlgebra/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_51.pg index 47543b65f3..0a1d973174 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_51.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_51.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -39,7 +39,7 @@ size=>[400,400] ); $a = list_random(-4,4); -$b = non_zero_random(-2,2); +$b = non_zero_random(-2,2); add_functions($gr, "1/4*(x-$a)*(x-$b)^2 for x in <-5,5> using color:blue and weight:2"); @@ -57,7 +57,7 @@ Let the graph of \( f(x) \) be given below. Find the formula of \( f(x) \), a po $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>300,height=>300,tex_size=>800 ) \} $BR $BR @@ -67,7 +67,7 @@ $BR $BR $BR \( f(x) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR $ECENTER diff --git a/Contrib/CCCS/CollegeAlgebra/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_57.pg b/Contrib/CCCS/CollegeAlgebra/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_57.pg index 151b75de22..585b50e6f8 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_57.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_57.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -38,7 +38,7 @@ Context("Numeric"); $a = non_zero_random(-4,4); do { $b = non_zero_random(-4,4); } until ( $b != $a ); do { $c = non_zero_random(-4,4); } until (( $c != $a ) and( $c != $b ) ); -$yint = random(4,12,4); +$yint = random(4,12,4); $g=Formula("(x-$a)*(x-$b)*(x-$c)")->reduce; $d=$g->eval(x=>0); @@ -51,7 +51,7 @@ $ans1=Formula("$yfactor*(x-$a)*(x-$b)*(x-$c)")->reduce; # Main text BEGIN_PGML -Find the equation for a polynomial [`f(x)`] that satisfies the following: +Find the equation for a polynomial [`f(x)`] that satisfies the following: + Degree [`3`] + Zero at [`x=[$a]`] + Zero at [`x=[$b]`] @@ -59,10 +59,10 @@ Find the equation for a polynomial [`f(x)`] that satisfies the following: + [`y`]-intercept of [`(0,[$yint])`] - [` f(x) = `] [______________________]{$ans1} [@ AnswerFormatHelp("formulas") @]* + [` f(x) = `] [______________________]{$ans1} [@ helpLink("formulas") @]* + - END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_60.pg b/Contrib/CCCS/CollegeAlgebra/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_60.pg index 690afe2440..9413f3cef2 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_60.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_60.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -64,9 +64,9 @@ Find the equation for a polynomial [`f(x)`] that satisfies the following: + [`y`]-intercept of [`(0,[$yint])`] - [` f(x) = `] [_______________________]{$ans1} [@ AnswerFormatHelp("formulas") @]* + [` f(x) = `] [_______________________]{$ans1} [@ helpLink("formulas") @]* + - END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_75.pg b/Contrib/CCCS/CollegeAlgebra/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_75.pg index 46d15c7ad2..935316ee01 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_75.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_75.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -36,7 +36,7 @@ $showPartialCorrectAnswers = 1; Context("Numeric"); $a = non_zero_random(10,20, 2); -$b = non_zero_random(4,8); +$b = non_zero_random(4,8); $ans1=Formula("x*($a-2x)*($b-2x)")->reduce; @@ -48,10 +48,10 @@ BEGIN_PGML A rectangle has a length of [$a] units and a width of [$b] units. Squares of `x` by `x` units are cut out of each corner, and then the sides are folded up to create an open box. Express the volume of the box as a polynomial function in terms of `x`. - [` f(x) = `] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* + [` f(x) = `] [_______________]{$ans1} [@ helpLink("formulas") @]* + - END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_79.pg b/Contrib/CCCS/CollegeAlgebra/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_79.pg index 3a4a95bf8f..1c418ce8d3 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_79.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_79.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -52,10 +52,10 @@ BEGIN_PGML A right circular cone has a radius of [`[$f]`] and a height `[$c]` units less than its radius. Express the volume of the cone as a polynomial function. The volume of a cone is `V = 1/3 pi r^2 h` for radius [`r`] and height [`h`]. Enter [`\pi`] as pi. - [` V(x) = `] [____________________]{"(1/3)*$ans"} [@ AnswerFormatHelp("formulas") @]* + [` V(x) = `] [____________________]{"(1/3)*$ans"} [@ helpLink("formulas") @]* + - END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_8.pg b/Contrib/CCCS/CollegeAlgebra/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_8.pg index 4f95c8ea59..c89a7be0b5 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_8.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_8.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -46,8 +46,8 @@ Context("LimitedPoint"); $xint = List(Point("(0,0)"), Point("($b,0)"),Point("($c,0)")); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -59,7 +59,7 @@ TeX => BEGIN_PGML Find the [`x`]-intercept(s) of [`f(x)=[$f][$g]`]. Enter intercept(s) as points. If there is more than one point, enter them as a comma separated list. -+ [`x`]-intercept(s): [_______________]{$xint} [@ AnswerFormatHelp("points") @]* ++ [`x`]-intercept(s): [_______________]{$xint} [@ helpLink("points") @]* [$video]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_14.pg b/Contrib/CCCS/CollegeAlgebra/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_14.pg index 4e57f687bd..c12e008ee4 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_14.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_14.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -47,8 +47,8 @@ $f=Formula("$a*x^3+$b*x^2+$c*x+$d")->reduce; $ans1 = Formula("$a*x^2+($b+$a*$m)*x+($m*($b+$a*$m)+$c)")->reduce(); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -58,9 +58,9 @@ TeX => # Main text BEGIN_PGML -Use synthetic division to find the quotient of [`([$f])\div(x-[$m])`]. +Use synthetic division to find the quotient of [`([$f])\div(x-[$m])`]. -+ Quotient: [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* ++ Quotient: [_______________]{$ans1} [@ helpLink("formulas") @]* [$video]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_15.pg b/Contrib/CCCS/CollegeAlgebra/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_15.pg index aff58de41e..e6f83b9ab6 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_15.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_15.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,9 +51,9 @@ $ans1 = Formula("$a*x^2+($b+$a*$m)*x+($m*($b+$a*$m)+$c)")->reduce(); # Main text BEGIN_PGML -Use synthetic division to find the quotient of [`([$f])\div(x-[$m])`]. +Use synthetic division to find the quotient of [`([$f])\div(x-[$m])`]. -+ Quotient: [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* ++ Quotient: [_______________]{$ans1} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_27.pg b/Contrib/CCCS/CollegeAlgebra/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_27.pg index 03753a660c..4a0d9e76a9 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_27.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_27.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,9 +51,9 @@ $ans1 = Formula("$a*x^2+$a*$m*x+($a*($m)^2+$c)")->reduce; # Main text BEGIN_PGML -Use synthetic division to find the quotient of [`([$f])\div(x-[$m])`]. +Use synthetic division to find the quotient of [`([$f])\div(x-[$m])`]. -+ Quotient: [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* ++ Quotient: [_______________]{$ans1} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_3.pg b/Contrib/CCCS/CollegeAlgebra/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_3.pg index 32fd0341d8..a8388d9155 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_3.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_3.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -46,8 +46,8 @@ $ans1 = Formula("x+($b+$a)")->reduce(); $ans2= $c+$a*($b+$a); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -56,11 +56,11 @@ TeX => # Main text BEGIN_PGML -Use long division to divide [`([$f])\div(x-[$a])`]. Find the quotient and remainder. +Use long division to divide [`([$f])\div(x-[$a])`]. Find the quotient and remainder. -+ Quotient: [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* ++ Quotient: [_______________]{$ans1} [@ helpLink("formulas") @]* -+ Remainder: [_______________]{$ans2} [@ AnswerFormatHelp("formulas") @]* ++ Remainder: [_______________]{$ans2} [@ helpLink("formulas") @]* [$video]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_38.pg b/Contrib/CCCS/CollegeAlgebra/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_38.pg index 68027b7fd9..c4003b6348 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_38.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_38.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", @@ -57,17 +57,17 @@ else{$remain=($c-$b*$m)*$fac+($b-$a*$m+$a*$fac)*(($fac)**2)-$c*$m;} Context()->strings->add(Yes => {}, No => {}); -if($remain == 0){$radio="Yes";} +if($remain == 0){$radio="Yes";} else{$radio="No";} if($remain==0){$radio = RadioButtons( ["Yes","No"], - "Yes", + "Yes", separator=>" "); } else{$radio = RadioButtons( ["Yes","No"], - "No", + "No", separator=>" "); } @@ -76,13 +76,13 @@ separator=>" "); # Main text BEGIN_PGML -Use synthetic division to determine whether or not [`(x-[$fac])`] is a factor of [` ([$f]) `]. +Use synthetic division to determine whether or not [`(x-[$fac])`] is a factor of [` ([$f]) `]. -+ Quotient: [_______________]{$quot} [@ AnswerFormatHelp("formulas") @]* ++ Quotient: [_______________]{$quot} [@ helpLink("formulas") @]* -+ Remainder: [_______________]{$remain} [@ AnswerFormatHelp("numbers") @]* ++ Remainder: [_______________]{$remain} [@ helpLink("numbers") @]* -+ Is [`(x-[$fac])`] is a factor of [` ([$f]) `]? ++ Is [`(x-[$fac])`] is a factor of [` ([$f]) `]? [@ $radio->buttons() @]* diff --git a/Contrib/CCCS/CollegeAlgebra/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_39.pg b/Contrib/CCCS/CollegeAlgebra/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_39.pg index 81679ce159..71571e3cc3 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_39.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_39.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", @@ -59,12 +59,12 @@ Context()->strings->add(Yes => {}, No => {}); if($remain==0){$radio = RadioButtons( ["Yes","No"], - "Yes", + "Yes", separator=>" "); } else{$radio = RadioButtons( ["Yes","No"], - "No", + "No", separator=>" "); } @@ -72,13 +72,13 @@ separator=>" "); # Main text BEGIN_PGML -Use synthetic division to determine whether or not [`(x-[$fac])`] is a factor of [` ([$f]) `]. +Use synthetic division to determine whether or not [`(x-[$fac])`] is a factor of [` ([$f]) `]. -+ Quotient: [_______________]{$quot} [@ AnswerFormatHelp("formulas") @]* ++ Quotient: [_______________]{$quot} [@ helpLink("formulas") @]* -+ Remainder: [_______________]{$remain} [@ AnswerFormatHelp("numbers") @]* ++ Remainder: [_______________]{$remain} [@ helpLink("numbers") @]* -+ Is [`(x-[$fac])`] is a factor of [` ([$f]) `]? ++ Is [`(x-[$fac])`] is a factor of [` ([$f]) `]? [@ $radio->buttons() @]* diff --git a/Contrib/CCCS/CollegeAlgebra/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_44.pg b/Contrib/CCCS/CollegeAlgebra/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_44.pg index ed9542c42e..0caef87472 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_44.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_44.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -61,7 +61,7 @@ Use the graph of \( f(x) \) below, and the fact that \( $f \) is a factor of \( $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>300,height=>300,tex_size=>800 ) \} $BR $BR @@ -71,7 +71,7 @@ $BR $BR $BR \( f(x) \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR $ECENTER diff --git a/Contrib/CCCS/CollegeAlgebra/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_49.pg b/Contrib/CCCS/CollegeAlgebra/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_49.pg index 8077fd21f1..a9e0fccd6e 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_49.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_49.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -46,8 +46,8 @@ $ans1 = Formula("$a*x^2+$a*$c*x+($a*($c)**2)")->reduce(); $ans2= $b+$a*($c)**3; $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -57,11 +57,11 @@ TeX => # Main text BEGIN_PGML -Use synthetic division to find the quotient and remainder of [``[$f]``]. +Use synthetic division to find the quotient and remainder of [``[$f]``]. -+ Quotient: [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* ++ Quotient: [_______________]{$ans1} [@ helpLink("formulas") @]* -+ Remainder: [_______________]{$ans2} [@ AnswerFormatHelp("formulas") @]* ++ Remainder: [_______________]{$ans2} [@ helpLink("formulas") @]* [$video]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_51.pg b/Contrib/CCCS/CollegeAlgebra/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_51.pg index 119a459d0b..8b6042443f 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_51.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_51.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,11 +50,11 @@ $ans2= $c+$b*$d+$a*($d)**3; # Main text BEGIN_PGML -Use synthetic division to find the quotient and remainder of [``[$f]``]. +Use synthetic division to find the quotient and remainder of [``[$f]``]. -+ Quotient: [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* ++ Quotient: [_______________]{$ans1} [@ helpLink("formulas") @]* -+ Remainder: [_______________]{$ans2} [@ AnswerFormatHelp("formulas") @]* ++ Remainder: [_______________]{$ans2} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_65.pg b/Contrib/CCCS/CollegeAlgebra/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_65.pg index 80f5dd9c1c..2144c577ba 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_65.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_65.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,9 +51,9 @@ $ans1 = Formula("$a*x^2+$b*x+$c")->reduce(); # Main text BEGIN_PGML -Suppose the area of a rectangle is [`[$area]`] and the length is [`[$len]`]. What is the width of the rectangle? +Suppose the area of a rectangle is [`[$area]`] and the length is [`[$len]`]. What is the width of the rectangle? -+ Width: [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* ++ Width: [_______________]{$ans1} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_7.pg b/Contrib/CCCS/CollegeAlgebra/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_7.pg index 70ca8d1748..1a35245bd3 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_7.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_7.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGgraders.pl", @@ -54,11 +54,11 @@ $ans2= $c+$d*($b+$a*$d); # Main text BEGIN_PGML -Use long division to divide [`([$f])\div(x-[$d])`]. Find the quotient and remainder. +Use long division to divide [`([$f])\div(x-[$d])`]. Find the quotient and remainder. -+ Quotient: [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* ++ Quotient: [_______________]{$ans1} [@ helpLink("formulas") @]* -+ Remainder: [_______________]{$ans2} [@ AnswerFormatHelp("formulas") @]* ++ Remainder: [_______________]{$ans2} [@ helpLink("formulas") @]* END_PGML @@ -67,9 +67,9 @@ END_PGML BEGIN_PGML_HINT >> ### Long Division ### << - - - + + + Let's divide [`2x^3-11x^2-41x+9`] by [`x-8`]. In this case, the _dividend_ is [`2x^3-11x^2-41x+9`] and the _divisor_ is [`x-8`]. The initial setup should look like this: [@ @@ -85,12 +85,12 @@ LayoutTable( with the divisor to the left and the dividend to the right. -The first step is to eliminate the first term of the dividend, [`\color{magenta}{2x^3}`]. To do this, divide the highest term of [`\color{magenta}{2x^3}-11x^2-41x+9`] by the highest term of [`\color{grey}{x}-8`]. In other words, divide [`\color{magenta} {2 x^3}`] by [`\color{gray} {x}`]. +The first step is to eliminate the first term of the dividend, [`\color{magenta}{2x^3}`]. To do this, divide the highest term of [`\color{magenta}{2x^3}-11x^2-41x+9`] by the highest term of [`\color{grey}{x}-8`]. In other words, divide [`\color{magenta} {2 x^3}`] by [`\color{gray} {x}`]. >>[`\dfrac{\color{magenta} {2 x^3}}{\color{gray} {x}} = \color{magenta}{2x^2}`]<< -The result, [`\color{magenta}{2x^2}`], is the highest term of the quotient. -Then multiply [`\color{magenta}{2x^2}`] by the divisor, [`\color{gray}{x}-8`], and then subtract [`\color{magenta}{2x^3-16x^2}`] from the first two terms of the dividend to eliminate its highest term, [`\color{magenta}{2x^3}`]. +The result, [`\color{magenta}{2x^2}`], is the highest term of the quotient. +Then multiply [`\color{magenta}{2x^2}`] by the divisor, [`\color{gray}{x}-8`], and then subtract [`\color{magenta}{2x^3-16x^2}`] from the first two terms of the dividend to eliminate its highest term, [`\color{magenta}{2x^3}`]. Then bring down the next term. @@ -111,11 +111,11 @@ LayoutTable( Then we repeat this process. -Divide the highest term of [`\color{brown} {5x^2}-41x`] by the highest term of [`\color{gray} {x}-8`]. In other words, divide [`\color{brown} {5x^2}`] by [`\color{gray} {x}`]. +Divide the highest term of [`\color{brown} {5x^2}-41x`] by the highest term of [`\color{gray} {x}-8`]. In other words, divide [`\color{brown} {5x^2}`] by [`\color{gray} {x}`]. >>[`\dfrac{\color{brown} {5 x^2}}{\color{gray} {x}} = \color{brown}{5x}`]<< -The result, [`\color{brown}{5x}`], is the second highest term of the quotient. Multiply [`\color{brown}{5x}`] by the divisor, [`\color{gray}{x}-8`]. Then subtract [`\color{brown}{5x^2-40x}`] from [`\color{brown} {5x^2}-41x`] to eliminate [`\color{brown} {5x^2}`]. +The result, [`\color{brown}{5x}`], is the second highest term of the quotient. Multiply [`\color{brown}{5x}`] by the divisor, [`\color{gray}{x}-8`]. Then subtract [`\color{brown}{5x^2-40x}`] from [`\color{brown} {5x^2}-41x`] to eliminate [`\color{brown} {5x^2}`]. This is how our setup should look like at the end of the second step: @@ -136,12 +136,12 @@ LayoutTable( We repeat this process again. -Divide the highest term of [`\color{green} {-x}+9`] by the highest term of [`\color{gray} {x}-8`]. In other words, divide [`\color{green} {-x}`] by [`\color{gray} {x}`]. +Divide the highest term of [`\color{green} {-x}+9`] by the highest term of [`\color{gray} {x}-8`]. In other words, divide [`\color{green} {-x}`] by [`\color{gray} {x}`]. >>[`\dfrac{\color{green} {-x}}{\color{gray} {x}} = \color{green}{-1}`]<< -The result, [`\color{green}{-1}`], is the third term of the quotient. -Then multiply [`\color{green}{-1}`] by the divisor, [`\color{gray}{x}-8`]. Then subtract [`\color{green}{-x+8}`] from [`\color{green}{-x}+9`] to eliminate [`\color{green} {-x}`]. +The result, [`\color{green}{-1}`], is the third term of the quotient. +Then multiply [`\color{green}{-1}`] by the divisor, [`\color{gray}{x}-8`]. Then subtract [`\color{green}{-x+8}`] from [`\color{green}{-x}+9`] to eliminate [`\color{green} {-x}`]. Now we have our final set up looking like: @@ -176,13 +176,13 @@ So we have: >>[`2x^3-11x^2-41x+8 = (x-8) * (\color{magenta}{2 x^2}\color{brown}{+5x}\color{green}{-1}) + \color{red}{1}`]<< -or +or >>[`\dfrac{2x^3-11x^2-41x+8}{x-8} = (\color{magenta}{2 x^2}\color{brown}{+5x}\color{green}{-1}) + \dfrac{\color{red}{1}}{x-8}.`]<< - - - - + + + + END_PGML_HINT ############################ # Solution diff --git a/Contrib/CCCS/CollegeAlgebra/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_9.pg b/Contrib/CCCS/CollegeAlgebra/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_9.pg index b73e0030bd..7116d40f98 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_9.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_9.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "niceTables.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,11 +51,11 @@ $ans2= $c+$d*($b+$a*$d); # Main text BEGIN_PGML -Use long division to divide [`([$f])\div(x-[$d])`]. Find the quotient and remainder. +Use long division to divide [`([$f])\div(x-[$d])`]. Find the quotient and remainder. -+ Quotient: [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* ++ Quotient: [_______________]{$ans1} [@ helpLink("formulas") @]* -+ Remainder: [_______________]{$ans2} [@ AnswerFormatHelp("formulas") @]* ++ Remainder: [_______________]{$ans2} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_14.pg b/Contrib/CCCS/CollegeAlgebra/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_14.pg index 9f38cde124..4d49e1750e 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_14.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_14.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,7 +51,7 @@ BEGIN_PGML Use the Factor Theorem to find all the zeros of [`f(x)=[$f]`] given that [`(x-[$m])`] is a factor. Enter all the zeros as a comma separated list. -+ Zeros: [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* ++ Zeros: [_______________]{$ans1} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_16.pg b/Contrib/CCCS/CollegeAlgebra/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_16.pg index 259e3249dc..62d3e49fc5 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_16.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_16.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,7 +51,7 @@ BEGIN_PGML Use the Factor Theorem to find all the zeros of [`f(x)=[$f]`] given that [`(x-[$m])`] is a factor. Enter all the zeros as a comma separated list. -+ Zeros: [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* ++ Zeros: [_______________]{$ans1} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_17.pg b/Contrib/CCCS/CollegeAlgebra/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_17.pg index 8979e9df24..96b5ee4cf4 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_17.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_17.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,7 +51,7 @@ BEGIN_PGML Use the Factor Theorem to find all the zeros of [`f(x)=[$f]`] given that [`(x-[$b])`] is a factor. Enter all the zeros as a comma separated list. -+ Zeros: [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* ++ Zeros: [_______________]{$ans1} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_23.pg b/Contrib/CCCS/CollegeAlgebra/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_23.pg index 9a452f9d77..2d9e910c37 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_23.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_23.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -46,8 +46,8 @@ $f=Formula("$c*x^3+($c*(-$a-$b)-1)*x^2+($a+$b+$a*$b*$c)*x+(-$a*$b)")->reduce; #$ans1=List($a,$b,1/$c); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -61,7 +61,7 @@ BEGIN_PGML Use the Rational Zero Theorem to find all the zeros of [`f(x)=[$f]`]. Enter all the zeros as a comma separated list. -+ Zeros: [_______________]{"$a,$b,1/$c"} [@ AnswerFormatHelp("numbers") @]* ++ Zeros: [_______________]{"$a,$b,1/$c"} [@ helpLink("numbers") @]* [$video]* diff --git a/Contrib/CCCS/CollegeAlgebra/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_25.pg b/Contrib/CCCS/CollegeAlgebra/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_25.pg index 0f21cad27a..90e6ade275 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_25.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_25.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "niceTables.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -53,7 +53,7 @@ BEGIN_PGML Use the Rational Zero Theorem to find all the zeros of [`f(x)=[$f]`]. Enter all the zeros as a comma separated list. -+ Zeros: [_______________]{"$a,$b,1/$c"} [@ AnswerFormatHelp("numbers") @]* ++ Zeros: [_______________]{"$a,$b,1/$c"} [@ helpLink("numbers") @]* END_PGML @@ -71,9 +71,9 @@ BEGIN_PGML_HINT Example: Use The Rational Zero Theorem to determine all the zeros of [`g(x) = 2x^4+x^3-14x^2+5x+6`] -Solution: +Solution: -All the factors of the constant term, [`6`], are [`1, 2, 3, 6`]. +All the factors of the constant term, [`6`], are [`1, 2, 3, 6`]. All the fractors of the leading coefficient, [`2`], are [`1,2`]. @@ -106,7 +106,7 @@ LayoutTable( encase=>['\(','\)'], )@]*** -When we used the candidate [`1`] we got a remainder of [`0`], therefore [`1`] is a zero of this function. +When we used the candidate [`1`] we got a remainder of [`0`], therefore [`1`] is a zero of this function. We continue the synthetic division but now with the quotient we got in our successful candidate above. diff --git a/Contrib/CCCS/CollegeAlgebra/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_27.pg b/Contrib/CCCS/CollegeAlgebra/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_27.pg index 64a994d7b0..c9dd72442a 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_27.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_27.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -52,7 +52,7 @@ BEGIN_PGML Use the Rational Zero Theorem to find all the zeros of [`f(x)=[$f]`]. Enter all the zeros as a comma separated list. -+ Zeros: [_______________]{"$a,$b,1/$c"} [@ AnswerFormatHelp("numbers") @]* ++ Zeros: [_______________]{"$a,$b,1/$c"} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_29.pg b/Contrib/CCCS/CollegeAlgebra/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_29.pg index 94074b8079..4e72324135 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_29.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_29.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -52,7 +52,7 @@ BEGIN_PGML Use the Rational Zero Theorem to find all the zeros of [`f(x)=[$f]`]. Enter all the zeros as a comma separated list. -+ Zeros: [_______________]{"$a,$b,1/$c"} [@ AnswerFormatHelp("numbers") @]* ++ Zeros: [_______________]{"$a,$b,1/$c"} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_31.pg b/Contrib/CCCS/CollegeAlgebra/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_31.pg index 94074b8079..4e72324135 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_31.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_31.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -52,7 +52,7 @@ BEGIN_PGML Use the Rational Zero Theorem to find all the zeros of [`f(x)=[$f]`]. Enter all the zeros as a comma separated list. -+ Zeros: [_______________]{"$a,$b,1/$c"} [@ AnswerFormatHelp("numbers") @]* ++ Zeros: [_______________]{"$a,$b,1/$c"} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_33.pg b/Contrib/CCCS/CollegeAlgebra/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_33.pg index 5da02b36bc..071dabb10e 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_33.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_33.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -52,7 +52,7 @@ BEGIN_PGML Use the Rational Zero Theorem to find all the zeros of [`f(x)=[$f]`]. Enter all the zeros as a comma separated list. -+ Zeros: [_______________]{"$a,$b/2,1/$c"} [@ AnswerFormatHelp("numbers") @]* ++ Zeros: [_______________]{"$a,$b/2,1/$c"} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_35.pg b/Contrib/CCCS/CollegeAlgebra/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_35.pg index eee2fdcb1d..e7e1a9f82b 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_35.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_35.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -52,7 +52,7 @@ BEGIN_PGML Use the Rational Zero Theorem to find all the zeros of [`f(x)=[$f]`]. Enter all the zeros as a comma separated list. -+ Zeros: [_______________]{"$a,$b/2,1/$c"} [@ AnswerFormatHelp("numbers") @]* ++ Zeros: [_______________]{"$a,$b/2,1/$c"} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_41.pg b/Contrib/CCCS/CollegeAlgebra/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_41.pg index a71a944cb3..59ce9bb6af 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_41.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_41.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "niceTables.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -39,7 +39,7 @@ Context()->noreduce('(-x)-y','(-x)+y'); Context()->variables->add(i => "Real"); $a=non_zero_random(1,4,1); -$b = non_zero_random(-4,4,1); +$b = non_zero_random(-4,4,1); #f=(x^2+a^2)(x-b) expanded $f=Formula("x^3-$b*x^2+($a)^2*x-($a)^2*$b")->reduce; @@ -49,8 +49,8 @@ $h = Formula("-$a*i")->reduce; $ans = List($g, $h, $b); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -63,7 +63,7 @@ BEGIN_PGML Find all complex solutions (real and non-real) of [`[$f]=0`]. Enter solutions as a comma separated list. -[`x=`][_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`][_______________]{$ans} [@ helpLink("numbers") @]* [$video]* @@ -91,9 +91,9 @@ BEGIN_PGML_HINT Example: Use The Rational Zero Theorem to determine all the zeros of [`g(x) = 2x^4+x^3-14x^2+5x+6`] -Solution: +Solution: -All the factors of the constant term, [`6`], are [`1, 2, 3, 6`]. +All the factors of the constant term, [`6`], are [`1, 2, 3, 6`]. All the fractors of the leading coefficient, [`2`], are [`1,2`]. @@ -126,7 +126,7 @@ LayoutTable( encase=>['\(','\)'], )@]*** -When we used the candidate [`1`] we got a remainder of [`0`], therefore [`1`] is a zero of this function. +When we used the candidate [`1`] we got a remainder of [`0`], therefore [`1`] is a zero of this function. We continue the synthetic division but now with the quotient we got in our successful candidate above. diff --git a/Contrib/CCCS/CollegeAlgebra/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_43.pg b/Contrib/CCCS/CollegeAlgebra/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_43.pg index c3c79ba049..5dfc0a6bff 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_43.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_43.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -38,7 +38,7 @@ Context()->noreduce('(-x)-y','(-x)+y'); Context()->variables->add(i => "Real"); $a=non_zero_random(1,4,1); -$b = non_zero_random(-4,4,1); +$b = non_zero_random(-4,4,1); $d = list_random(-2,-1,2); #f=$d(x^2+a^2)(x-b) expanded @@ -56,7 +56,7 @@ BEGIN_PGML Find all complex solutions (real and non-real) of [`[$f]=0`]. Enter solutions as a comma separated list. -[`x=`][_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`][_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_45.pg b/Contrib/CCCS/CollegeAlgebra/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_45.pg index dad6ce6722..fb9dd65d41 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_45.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_45.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -38,7 +38,7 @@ Context()->noreduce('(-x)-y','(-x)+y'); Context()->variables->add(i => "Real"); $a=non_zero_random(1,4,1); -$b = non_zero_random(-4,4,1); +$b = non_zero_random(-4,4,1); $c = non_zero_random(-4,4,1); #f=(x-(a+bi))(x-(a-bi))(x-c) expanded @@ -54,7 +54,7 @@ BEGIN_PGML Find all complex solutions (real and non-real) of [`[$f]=0`]. Enter solutions as a comma separated list. -[`x=`][_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`][_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_7.pg b/Contrib/CCCS/CollegeAlgebra/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_7.pg index e70dec227f..70daced18b 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_7.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_7.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -44,8 +44,8 @@ $m=non_zero_random(-5,5,1); $f=Formula("$a*x^3+($b-$a*$m)*x^2+($c-$b*$m)*x+(-$c*$m+$n)")->reduce; $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -58,7 +58,7 @@ BEGIN_PGML Use the Remainder Theorem to find [`f([$m])`] for [`f(x)=[$f]`]. -+ [`f([$m])=`] [_______________]{$n} [@ AnswerFormatHelp("numbers") @]* ++ [`f([$m])=`] [_______________]{$n} [@ helpLink("numbers") @]* [$video]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_8.pg b/Contrib/CCCS/CollegeAlgebra/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_8.pg index 8b90826027..f2656dc135 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_8.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_8.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -52,7 +52,7 @@ BEGIN_PGML Use the Remainder Theorem to find [`f([$m])`] for [`f(x)=[$f]`]. -+ [`f([$m])=`] [_______________]{$n} [@ AnswerFormatHelp("numbers") @]* ++ [`f([$m])=`] [_______________]{$n} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_9.pg b/Contrib/CCCS/CollegeAlgebra/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_9.pg index ea83d668fd..eefa83abd8 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_9.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_9.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,10 +48,10 @@ $f=Formula("$a*x^3+($b-$a*$m)*x^2+($c-$b*$m)*x+(-$c*$m+$n)")->reduce; # Main text BEGIN_PGML -Use the Remainder Theorem to find [`f([$m])`] for [`f(x)=[$f]`]. +Use the Remainder Theorem to find [`f([$m])`] for [`f(x)=[$f]`]. -+ [`f([$m])=`] [_______________]{$n} [@ AnswerFormatHelp("numbers") @]* ++ [`f([$m])=`] [_______________]{$n} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_10.pg b/Contrib/CCCS/CollegeAlgebra/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_10.pg index 978f6e4263..99094659ff 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_10.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_10.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserPopUp.pl", "PGML.pl", "PGcourse.pl", @@ -57,8 +57,8 @@ $popup2 = PopUp( ); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -68,13 +68,13 @@ TeX => BEGIN_PGML -Let [`` f(x)=[$f] ``]. Find the domain, vertical asymptote(s), and horizontal asymptote. +Let [`` f(x)=[$f] ``]. Find the domain, vertical asymptote(s), and horizontal asymptote. -+ Domain: [_______________]{$ans1} [@ AnswerFormatHelp("intervals") @]* ++ Domain: [_______________]{$ans1} [@ helpLink("intervals") @]* -+ Vertical Asymptote(s): [______]{$popup1} [_______________]{$ans2} (Enter as a comma separated list if more than one) [@ AnswerFormatHelp("numbers") @]* ++ Vertical Asymptote(s): [______]{$popup1} [_______________]{$ans2} (Enter as a comma separated list if more than one) [@ helpLink("numbers") @]* -+ Horizontal Asymptote: [______]{$popup2} [_______________]{$ans3} [@ AnswerFormatHelp("numbers") @]* ++ Horizontal Asymptote: [______]{$popup2} [_______________]{$ans3} [@ helpLink("numbers") @]* [$video]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_13.pg b/Contrib/CCCS/CollegeAlgebra/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_13.pg index 655637758a..4a450de04a 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_13.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_13.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserPopUp.pl", "PGML.pl", "PGcourse.pl", @@ -65,12 +65,12 @@ $popup2 = PopUp( BEGIN_PGML -Let [`` f(x)=[$f] ``]. Find the domain, vertical asymptote(s), and horizontal asymptote. +Let [`` f(x)=[$f] ``]. Find the domain, vertical asymptote(s), and horizontal asymptote. -+ Domain: [______________________]{$ans1} [@ AnswerFormatHelp("intervals") @]* ++ Domain: [______________________]{$ans1} [@ helpLink("intervals") @]* -+ Vertical Asymptote(s): [_______]{$popup1} [_______________]{$ans2} (Enter values as a comma separated list if more than one) [@ AnswerFormatHelp("numbers") @]* -+ Horizontal Asymptote: [_______]{$popup2} [_______________]{$ans3} [@ AnswerFormatHelp("numbers") @]* ++ Vertical Asymptote(s): [_______]{$popup1} [_______________]{$ans2} (Enter values as a comma separated list if more than one) [@ helpLink("numbers") @]* ++ Horizontal Asymptote: [_______]{$popup2} [_______________]{$ans3} [@ helpLink("numbers") @]* END_PGML ############################ @@ -86,7 +86,7 @@ A *horizontal asymptote* of a graph is a horizontal line [`y=b`] where the graph 4. Note any values that cause the denominator to be zero in this simplified version. These are where the vertical asymptotes occur. 5. Note any restrictions in the domain where asymptotes do not occur. Thes are removable discontinuities, or 'holes' in the graph. -6. The horizontal asymptote of a rational function can be determined by looking at the degrees of the numerator and denominator: +6. The horizontal asymptote of a rational function can be determined by looking at the degrees of the numerator and denominator: + if the degree of the numerator is less than the degree of the denominator then the horizontal asymptote is [`y=0`] + if the degree of the numerator is greater than the degree of the denominator by one then there is no horizontal asymptote and there is a slant asymptote. + if the degree of the numerator is equal to the degree of the denominator then the horizontal asymptote is [`y=\frac{a}{b}`], the ratio of leading coefficients. diff --git a/Contrib/CCCS/CollegeAlgebra/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_15.pg b/Contrib/CCCS/CollegeAlgebra/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_15.pg index ceeba3181c..27c35c3342 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_15.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_15.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserPopUp.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -64,13 +64,13 @@ $popup2 = PopUp( BEGIN_PGML -Let [`` f(x)=[$f] ``]. Find the domain, vertical asymptote(s), and horizontal asymptote. +Let [`` f(x)=[$f] ``]. Find the domain, vertical asymptote(s), and horizontal asymptote. -+ Domain: [_________________________________]{$ans1} [@ AnswerFormatHelp("intervals") @]* ++ Domain: [_________________________________]{$ans1} [@ helpLink("intervals") @]* -+ Vertical Asymptote(s): [_______]{$popup1} [_______________]{$ans2} (Enter values as a comma separated list if more than one) [@ AnswerFormatHelp("numbers") @]* ++ Vertical Asymptote(s): [_______]{$popup1} [_______________]{$ans2} (Enter values as a comma separated list if more than one) [@ helpLink("numbers") @]* -+ Horizontal Asymptote: [_______]{$popup2}[_______________]{$ans3} [@ AnswerFormatHelp("numbers") @]* ++ Horizontal Asymptote: [_______]{$popup2}[_______________]{$ans3} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_17.pg b/Contrib/CCCS/CollegeAlgebra/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_17.pg index f080b5863e..d0c2354c09 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_17.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_17.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "parserPopUp.pl", "PGcourse.pl", @@ -63,11 +63,11 @@ BEGIN_PGML Let [`` f(x)=[$f] ``]. Find the domain, vertical asymptote(s), and horizontal asymptote. Watch for holes in the graph. -+ Domain: [______________________]{$ans1} [@ AnswerFormatHelp("intervals") @]* ++ Domain: [______________________]{$ans1} [@ helpLink("intervals") @]* -+ Vertical Asymptote(s): [_______]{$popup1} [_______________]{$ans2} (Enter values as a comma separated list if more than one) [@ AnswerFormatHelp("numbers") @]* ++ Vertical Asymptote(s): [_______]{$popup1} [_______________]{$ans2} (Enter values as a comma separated list if more than one) [@ helpLink("numbers") @]* -+ Horizontal Asymptote: [_______]{$popup2} [_______________]{$ans3} [@ AnswerFormatHelp("numbers") @]* ++ Horizontal Asymptote: [_______]{$popup2} [_______________]{$ans3} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_19.pg b/Contrib/CCCS/CollegeAlgebra/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_19.pg index dc7f3401ed..0b7c733036 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_19.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_19.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserPopUp.pl", "PGML.pl", "PGcourse.pl", @@ -40,7 +40,7 @@ $b=non_zero_random(-10,10,1); do { $c = non_zero_random(-10,10,1);} until ($c != $a); #do { $d = non_zero_random(-10,10,1);} until ($d != $b); -#Michael Sulock made the below change to prevent an issue with having a common linear +#Michael Sulock made the below change to prevent an issue with having a common linear #factor on the top and bottom that create a hole instead of an asympotote $d=Compute($c+1); @@ -71,13 +71,13 @@ $popup2 = PopUp( BEGIN_PGML -Let [`` f(x)=[$f] ``]. Find the domain, vertical asymptote(s), and horizontal asymptote. +Let [`` f(x)=[$f] ``]. Find the domain, vertical asymptote(s), and horizontal asymptote. -+ Domain: [______________________]{$ans1} [@ AnswerFormatHelp("intervals") @]* ++ Domain: [______________________]{$ans1} [@ helpLink("intervals") @]* + Vertical Asymptote(s): [_______]{$popup1} [_______________]{$ans2} (Enter values as a comma separated list if more than one) - [@ AnswerFormatHelp("numbers") @]* -+ Horizontal Asymptote: [_______]{$popup2} [_______________]{$ans3} [@ AnswerFormatHelp("numbers") @]* + [@ helpLink("numbers") @]* ++ Horizontal Asymptote: [_______]{$popup2} [_______________]{$ans3} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_20.pg b/Contrib/CCCS/CollegeAlgebra/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_20.pg index f2a33636db..082f6eacab 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_20.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_20.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -45,8 +45,8 @@ $xint = List( Point("($a,0)")); $yint = List( Point("(0,$y)") ); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -57,9 +57,9 @@ BEGIN_PGML Find the [`x`] and [`y`]-intercepts for [`` f(x)=[$f] ``]. If there is more than one, enter them as a comma separated list. -+ [`x`]-intercept(s): [______________________]{$xint} [@ AnswerFormatHelp("points") @]* ++ [`x`]-intercept(s): [______________________]{$xint} [@ helpLink("points") @]* -+ [`y`]-intercept: [_______________]{$yint} [@ AnswerFormatHelp("points") @]* ++ [`y`]-intercept: [_______________]{$yint} [@ helpLink("points") @]* [$video]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_39.pg b/Contrib/CCCS/CollegeAlgebra/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_39.pg index 4148be2608..31666705ef 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_39.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_39.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -53,8 +53,8 @@ if($testright>0){$ans4=Compute("infinity");}else{$ans4=Compute("-infinity");} $ans5=Compute("$c"); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -64,19 +64,19 @@ TeX => BEGIN_PGML -Let [`` f(x)=[$f] ``]. Find the domain, vertical asymptote(s), behavior of the function near the vertical asymptote(s), and horizontal asymptote of the function [`` f(x)``]. +Let [`` f(x)=[$f] ``]. Find the domain, vertical asymptote(s), behavior of the function near the vertical asymptote(s), and horizontal asymptote of the function [`` f(x)``]. -+ Domain: [_______________]{$ans1} [@ AnswerFormatHelp("intervals") @]* ++ Domain: [_______________]{$ans1} [@ helpLink("intervals") @]* -+ Vertical Asymptote: [`x=`] [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* ++ Vertical Asymptote: [`x=`] [_______________]{$ans2} [@ helpLink("numbers") @]* + As [`x \to [$b]^-`], [`f(x) \to`] [_______________]{$ans3} (enter infinity or -infinity) - [@ AnswerFormatHelp("numbers") @]* -+ As [`x \to [$b]^+`], [`f(x) \to`] [_______________]{$ans4} (enter infinity or -infinity) [@ AnswerFormatHelp("numbers") @]* + [@ helpLink("numbers") @]* ++ As [`x \to [$b]^+`], [`f(x) \to`] [_______________]{$ans4} (enter infinity or -infinity) [@ helpLink("numbers") @]* -+ Horizontal Asymptote: [`y=`] [_______________]{$ans5} [@ AnswerFormatHelp("numbers") @]* ++ Horizontal Asymptote: [`y=`] [_______________]{$ans5} [@ helpLink("numbers") @]* -[$video]* +[$video]* END_PGML BEGIN_TEXT diff --git a/Contrib/CCCS/CollegeAlgebra/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_40.pg b/Contrib/CCCS/CollegeAlgebra/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_40.pg index 288d1b3042..a0359358e3 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_40.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_40.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -63,17 +63,17 @@ $asymp=-$d; BEGIN_PGML -Let [`` f(x)=[$f] ``]. Find the domain, vertical asymptote(s), behavior of the function near the vertical asymptote(s), and horizontal asymptote of the function [`` f(x)``]. +Let [`` f(x)=[$f] ``]. Find the domain, vertical asymptote(s), behavior of the function near the vertical asymptote(s), and horizontal asymptote of the function [`` f(x)``]. -+ Domain: [_______________]{$ans1} [@ AnswerFormatHelp("intervals") @]* ++ Domain: [_______________]{$ans1} [@ helpLink("intervals") @]* -+ Vertical Asymptote: [`x=`] [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* ++ Vertical Asymptote: [`x=`] [_______________]{$ans2} [@ helpLink("numbers") @]* -+ As [`x \to [$asymp]^-`], [`f(x) \to`] [_______________]{$ans3} (enter infinity or -infinity) [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to [$asymp]^-`], [`f(x) \to`] [_______________]{$ans3} (enter infinity or -infinity) [@ helpLink("numbers") @]* -+ As [`x \to [$asymp]^+`], [`f(x) \to`] [_______________]{$ans4} (enter infinity or -infinity) [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to [$asymp]^+`], [`f(x) \to`] [_______________]{$ans4} (enter infinity or -infinity) [@ helpLink("numbers") @]* -+ Horizontal Asymptote: [`y=`] [_______________]{$ans5} [@ AnswerFormatHelp("numbers") @]* ++ Horizontal Asymptote: [`y=`] [_______________]{$ans5} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_43.pg b/Contrib/CCCS/CollegeAlgebra/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_43.pg index 3117a5f0ec..1998c2f78e 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_43.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_43.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -70,24 +70,24 @@ $ans7=Formula("$a/$m")->reduce(); BEGIN_PGML -Let [`` f(x)=[$f] ``]. Find the domain, vertical asymptote(s), behavior of the function near the vertical asymptote(s), and horizontal asymptote of the function [`` f(x)``]. +Let [`` f(x)=[$f] ``]. Find the domain, vertical asymptote(s), behavior of the function near the vertical asymptote(s), and horizontal asymptote of the function [`` f(x)``]. -+ Domain: [____________________]{$ans1} [@ AnswerFormatHelp("intervals") @]* ++ Domain: [____________________]{$ans1} [@ helpLink("intervals") @]* -+ Vertical Asymptotes: [`x=`] [_______________]{$ans2} (Enter values as a comma separated list) [@ AnswerFormatHelp("numbers") @]* ++ Vertical Asymptotes: [`x=`] [_______________]{$ans2} (Enter values as a comma separated list) [@ helpLink("numbers") @]* + As [`x \to [$l]^-`], [`f(x) \to`] [_______________]{$ans3} (enter infinity or -infinity) - [@ AnswerFormatHelp("numbers") @]* + [@ helpLink("numbers") @]* + As [`x \to [$l]^+`], [`f(x) \to`] [_______________]{$ans4} (enter infinity or -infinity) - [@ AnswerFormatHelp("numbers") @]* + [@ helpLink("numbers") @]* + As [`x \to [$r]^-`], [`f(x) \to`] [_______________]{$ans5} (enter infinity or -infinity) - [@ AnswerFormatHelp("numbers") @]* + [@ helpLink("numbers") @]* + As [`x \to [$r]^+`], [`f(x) \to`] [_______________]{$ans6} (enter infinity or -infinity) - [@ AnswerFormatHelp("numbers") @]* -+ Horizontal Asymptote: [`y=`] [_______________]{$ans7} - [@ AnswerFormatHelp("numbers") @]* + [@ helpLink("numbers") @]* ++ Horizontal Asymptote: [`y=`] [_______________]{$ans7} + [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_45.pg b/Contrib/CCCS/CollegeAlgebra/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_45.pg index 1048c0bd15..f906144ad8 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_45.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_45.pg @@ -1,5 +1,5 @@ # DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -19,7 +19,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "PGchoicemacros.pl", -"AnswerFormatHelp.pl", + "PGgraphmacros.pl", "unionTables.pl", "parserPopUp.pl", @@ -86,7 +86,7 @@ $gr[3]->lb(new Label(0.25,9.75,'y','black','center','middle')); @perm = shuffle(4); for $i (0..3) { - plot_functions( $gr[$perm[$i]], $f[$perm[$i]]); + plot_functions( $gr[$perm[$i]], $f[$perm[$i]]); ($gr[$perm[$i]]->fn)[0]->steps(4000); $fig[$i]=image(insertGraph($gr[$perm[$i]]), width=>400,height=>400,tex_size=>450); @@ -115,8 +115,8 @@ $popup2 = PopUp( ); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -128,18 +128,18 @@ TeX => BEGIN_PGML Let [``f(x)=[$f]``]. Find the domain, vertical asymptote(s), horizontal asymptote, and select the correct graph. -+ Domain: [____________________]{$ans1} [@ AnswerFormatHelp("intervals") @]* ++ Domain: [____________________]{$ans1} [@ helpLink("intervals") @]* -+ Vertical Asymptote(s): [_______]{$popup1} [_______________]{$ans2} (If more than one, enter values as a comma separated list) [@ AnswerFormatHelp("numbers") @]* ++ Vertical Asymptote(s): [_______]{$popup1} [_______________]{$ans2} (If more than one, enter values as a comma separated list) [@ helpLink("numbers") @]* -+ Horizontal Asymptote: [_______]{$popup2} [_______________]{$ans3} [@ AnswerFormatHelp("numbers") @]* ++ Horizontal Asymptote: [_______]{$popup2} [_______________]{$ans3} [@ helpLink("numbers") @]* END_PGML BEGIN_TEXT $BR $BR -Which of the following is the graph of \( f(x) \)? +Which of the following is the graph of \( f(x) \)? \{ $popup->menu() \} $BR (Note, window is from [-10,10] so some of graph may be off the window) diff --git a/Contrib/CCCS/CollegeAlgebra/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_48.pg b/Contrib/CCCS/CollegeAlgebra/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_48.pg index 8c40493a64..9b4d96fc63 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_48.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_48.pg @@ -1,5 +1,5 @@ # DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -19,7 +19,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "PGchoicemacros.pl", -"AnswerFormatHelp.pl", + "PGgraphmacros.pl", "unionTables.pl", "parserPopUp.pl", @@ -84,7 +84,7 @@ $gr[3]->lb(new Label(0.25,9.75,'y','black','center','middle')); @perm = shuffle(4); for $i (0..3) { - plot_functions( $gr[$perm[$i]], $f[$perm[$i]]); + plot_functions( $gr[$perm[$i]], $f[$perm[$i]]); ($gr[$perm[$i]]->fn)[0]->steps(4000); $fig[$i]=image(insertGraph($gr[$perm[$i]]), width=>400,height=>400,tex_size=>450); @@ -119,18 +119,18 @@ $popup2 = PopUp( BEGIN_PGML Let [``f(x)=[$f]``]. Find the domain, vertical asymptotes, slant asymptote, and select the correct graph. -+ Domain: [____________________]{$ans1} [@ AnswerFormatHelp("intervals") @]* ++ Domain: [____________________]{$ans1} [@ helpLink("intervals") @]* -+ Vertical Asymptotes: [_______]{$popup1} [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* ++ Vertical Asymptotes: [_______]{$popup1} [_______________]{$ans2} [@ helpLink("numbers") @]* -+ Slant Asymptote: [_______]{$popup2} [_______________]{$ans3} [@ AnswerFormatHelp("formulas") @]* ++ Slant Asymptote: [_______]{$popup2} [_______________]{$ans3} [@ helpLink("formulas") @]* END_PGML BEGIN_TEXT $BR $BR -Which of the following is the graph of \( f(x) \)? +Which of the following is the graph of \( f(x) \)? \{ $popup->menu() \} $BR (Note, window is from [-10,10] so some of graph may be off the window) diff --git a/Contrib/CCCS/CollegeAlgebra/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_51.pg b/Contrib/CCCS/CollegeAlgebra/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_51.pg index f31f8ad8ca..147fc29ae0 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_51.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_51.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -54,8 +54,8 @@ $ans = Formula("($coeff)*(x-$c)*(x-$d)/((x-$a)*(x-$b))")->reduce(); #($p,$q) = reduce($y1,$y2); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -72,7 +72,7 @@ Find an equation for a rational function `f(x)` that satisfies the following: + [`y`]-intercept at [`(0,[$yint])`] -[`f(x)=`] [_________________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`f(x)=`] [_________________________]{$ans} [@ helpLink("formulas") @]* [$video]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_57.pg b/Contrib/CCCS/CollegeAlgebra/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_57.pg index 784667003d..7eef95e6f9 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_57.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_57.pg @@ -23,7 +23,7 @@ loadMacros( "PGstandard.pl", "PGML.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "contextFraction.pl" ); @@ -82,12 +82,12 @@ $gr->lb( new Label(-0.2,-0.2,"-1/6", 'black', 'right', 'top'));} Context()->texStrings; BEGIN_TEXT -Write an equation for the graphed function. +Write an equation for the graphed function. $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>400,height=>400,tex_size=>800 ) \} $BR $BR @@ -98,7 +98,7 @@ $BR $BR $BR \(f(x) \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR $ECENTER diff --git a/Contrib/CCCS/CollegeAlgebra/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_6.pg b/Contrib/CCCS/CollegeAlgebra/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_6.pg index f44d5fde4f..ee7fc71886 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_6.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_6.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -43,8 +43,8 @@ Context("Interval"); $ans=Compute("(-infinity,$b)U($b,infinity)"); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -56,7 +56,7 @@ BEGIN_PGML Find the domain of [`` f(x)=[$f] ``]. Enter the solution in interval notation. -[_______________]{$ans} [@ AnswerFormatHelp("intervals") @]* +[_______________]{$ans} [@ helpLink("intervals") @]* [$video]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_61.pg b/Contrib/CCCS/CollegeAlgebra/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_61.pg index eea347d5b7..ab8bdd1693 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_61.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_61.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -65,7 +65,7 @@ Write an equation for the graphed function. $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>400,height=>400,tex_size=>800 ) \} $BR $BR @@ -75,7 +75,7 @@ $BCENTER $BR $BR f(x) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR $ECENTER diff --git a/Contrib/CCCS/CollegeAlgebra/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_71.pg b/Contrib/CCCS/CollegeAlgebra/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_71.pg index af28971cdc..3655e1166d 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_71.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_71.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "AppletObjects.pl", "unionTables.pl", @@ -43,7 +43,7 @@ HEADER_TEXT(MODES( )); $desmos_div = MODES( - HTML=>qq(
), + HTML=>qq(
), TeX=>'Interactive graph best viewed online' ); @@ -69,14 +69,14 @@ if($sign>0){$ans=Compute("($endpt,infinity)");}else{$ans=Compute("(-infinity,$en BEGIN_PGML -Use technology below to graph [`` f(x)=[$f] ``]. +Use technology below to graph [`` f(x)=[$f] ``]. Use the graph to solve [`f(x)>0`]. Enter the solution as an interval of [`x`] values that make the inequality true. -[_______________________]{$ans} [@ AnswerFormatHelp("intervals") @]* +[_______________________]{$ans} [@ helpLink("intervals") @]* -The Desmos graphing tool below may help investigate the function. +The Desmos graphing tool below may help investigate the function. END_PGML @@ -104,10 +104,10 @@ TEXT( MODES(TeX=>'', HTML=><qq(
), + HTML=>qq(
), TeX=>'Interactive graph best viewed online' ); @@ -65,13 +65,13 @@ $ans=Compute("($b,$a)U($c,infinity)"); BEGIN_PGML -Use technology below to graph [`` f(x)=[$f] ``]. +Use technology below to graph [`` f(x)=[$f] ``]. Use the graph to solve [`f(x)>0`]. Enter the solution as an interval of [`x`] values that make the inequality true. -[_______________________]{$ans} [@ AnswerFormatHelp("intervals") @]* +[_______________________]{$ans} [@ helpLink("intervals") @]* -The Desmos graphing tool below may help investigate the function. +The Desmos graphing tool below may help investigate the function. END_PGML @@ -99,10 +99,10 @@ TEXT( MODES(TeX=>'', HTML=><qq(
), + HTML=>qq(
), TeX=>'Interactive graph best viewed online' ); @@ -70,13 +70,13 @@ $ans=Compute("sqrt($c/$b)"); BEGIN_PGML -The concentration [`C`] of a drug in a patient's bloodstream [`t`] hours after injection is given by [`` C(t)=[$f] ``]. Use technology below to approximate the time when the concentration is highest. +The concentration [`C`] of a drug in a patient's bloodstream [`t`] hours after injection is given by [`` C(t)=[$f] ``]. Use technology below to approximate the time when the concentration is highest. - [`t=`] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* + [`t=`] [_______________]{$ans} [@ helpLink("numbers") @]* -The Desmos graphing tool below may help investigate the function. +The Desmos graphing tool below may help investigate the function. END_PGML @@ -104,10 +104,10 @@ TEXT( MODES(TeX=>'', HTML=><qq(
), + HTML=>qq(
), TeX=>'Interactive graph best viewed online' ); @@ -73,20 +73,20 @@ BEGIN_PGML A right circular cylinder has a volume of [`[$a]`] cubic inches. Find the radius and height that will yield minimum surface area. To do so, answer the following: -+ volume of a right circular cylinder with radius [`r`] and height [`h`]: ++ volume of a right circular cylinder with radius [`r`] and height [`h`]: [`V=`][_______________]{$ans1} (should be in terms of [`r`] and [`h`], enter [`\pi`] as pi) -+ surface area of a right circular cylinder with radius [`r`] and height [`h`]: ++ surface area of a right circular cylinder with radius [`r`] and height [`h`]: [`SA=`] [_______________]{$ans2} (should be in terms of [`r`] and [`h`]) -+ surface area of this right circular cylinder in terms of only [`r`]: ++ surface area of this right circular cylinder in terms of only [`r`]: [`SA=`][_______________]{$ans3} (should be in terms of just [`r`], no [`h`]) -+ Use technology below to find the [`r`] and [`h`] that minimize the surface area. - [`r=`] [_______________]{$ans4} - [`h=`] [_______________]{$ans5} ++ Use technology below to find the [`r`] and [`h`] that minimize the surface area. + [`r=`] [_______________]{$ans4} + [`h=`] [_______________]{$ans5} -The Desmos graphing tool below may help investigate the function. +The Desmos graphing tool below may help investigate the function. @@ -116,10 +116,10 @@ TEXT( MODES(TeX=>'', HTML=><reduce(); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -53,9 +53,9 @@ TeX => # Main text BEGIN_PGML -Write an equation that describes the following relationship: [`y`] varies inversely as the fourth power of [`x`] and when [`x=[$x0]`], [`y=[$y0]`]. +Write an equation that describes the following relationship: [`y`] varies inversely as the fourth power of [`x`] and when [`x=[$x0]`], [`y=[$y0]`]. -[`y=`] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* +[`y=`] [_______________]{$ans1} [@ helpLink("formulas") @]* diff --git a/Contrib/CCCS/CollegeAlgebra/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_15.pg b/Contrib/CCCS/CollegeAlgebra/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_15.pg index 0141051c98..8288940392 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_15.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_15.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -46,9 +46,9 @@ $k=$y0*$x0**(1/3); # Main text BEGIN_PGML -Write an equation that describes the following relationship: [`y`] varies inversely as the cube root of [`x`] and when [`x=[$x0]`], [`y=[$y0]`]. +Write an equation that describes the following relationship: [`y`] varies inversely as the cube root of [`x`] and when [`x=[$x0]`], [`y=[$y0]`]. -[`y=`] [_______________]{"$k/x^(1/3)"} [@ AnswerFormatHelp("formulas") @]* +[`y=`] [_______________]{"$k/x^(1/3)"} [@ helpLink("formulas") @]* diff --git a/Contrib/CCCS/CollegeAlgebra/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_17.pg b/Contrib/CCCS/CollegeAlgebra/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_17.pg index 1f1eeab805..6a7a6cf7de 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_17.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_17.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,9 +51,9 @@ $ans1 = Formula("$k*x*z*w")->reduce(); # Main text BEGIN_PGML -Write an equation that describes the following relationship: [`y`] varies jointly as [`x`], [`z`], and [`w`] and when [`x=[$x0]`], [`z=[$z0]`], [`w=[$w0]`], then [`y=[$y0]`]. +Write an equation that describes the following relationship: [`y`] varies jointly as [`x`], [`z`], and [`w`] and when [`x=[$x0]`], [`z=[$z0]`], [`w=[$w0]`], then [`y=[$y0]`]. -[`y=`] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* +[`y=`] [_______________]{$ans1} [@ helpLink("formulas") @]* diff --git a/Contrib/CCCS/CollegeAlgebra/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_19.pg b/Contrib/CCCS/CollegeAlgebra/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_19.pg index 478cbcc66d..9914ae96c0 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_19.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_19.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,9 +50,9 @@ $ans1 = Formula("$k*x*sqrt(z)")->reduce(); # Main text BEGIN_PGML -Write an equation that describes the following relationship: [`y`] varies jointly as [`x`] and the square root of [`z`], and when [`x=[$x0]`] and [`z=[$z0]`], then [`y=[$y0]`]. +Write an equation that describes the following relationship: [`y`] varies jointly as [`x`] and the square root of [`z`], and when [`x=[$x0]`] and [`z=[$z0]`], then [`y=[$y0]`]. -[`y=`] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* +[`y=`] [_______________]{$ans1} [@ helpLink("formulas") @]* diff --git a/Contrib/CCCS/CollegeAlgebra/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_25.pg b/Contrib/CCCS/CollegeAlgebra/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_25.pg index f3c2575ba1..28b040daed 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_25.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_25.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,10 +48,10 @@ $ans1 = $f->eval(x=>$x1); # Main text BEGIN_PGML -Use the given information to find the unknown value: -[`y`] varies directly as the square of [`x`]. When [`x=[$x0]`], then [`y=[$y0]`]. Find [`y`] when [`x=[$x1]`]. +Use the given information to find the unknown value: +[`y`] varies directly as the square of [`x`]. When [`x=[$x0]`], then [`y=[$y0]`]. Find [`y`] when [`x=[$x1]`]. -[`y=`] [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +[`y=`] [_______________]{$ans1} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CollegeAlgebra/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_26.pg b/Contrib/CCCS/CollegeAlgebra/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_26.pg index d680ae2240..2e09d87b35 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_26.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_26.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,10 +48,10 @@ $ans1 = $f->eval(x=>$x1); # Main text BEGIN_PGML -Use the given information to find the unknown value: -[`y`] varies directly as the cube of [`x`]. When [`x=[$x0]`], then [`y=[$y0]`]. Find [`y`] when [`x=[$x1]`]. +Use the given information to find the unknown value: +[`y`] varies directly as the cube of [`x`]. When [`x=[$x0]`], then [`y=[$y0]`]. Find [`y`] when [`x=[$x1]`]. -[`y=`] [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +[`y=`] [_______________]{$ans1} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CollegeAlgebra/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_29.pg b/Contrib/CCCS/CollegeAlgebra/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_29.pg index 85efe90d23..4cf8aeae45 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_29.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_29.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,10 +48,10 @@ $ans1 = $f->eval(x=>$x1); # Main text BEGIN_PGML -Use the given information to find the unknown value: -[`y`] varies inversely with [`x`]. When [`x=[$x0]`], then [`y=[$y0]`]. Find [`y`] when [`x=[$x1]`]. +Use the given information to find the unknown value: +[`y`] varies inversely with [`x`]. When [`x=[$x0]`], then [`y=[$y0]`]. Find [`y`] when [`x=[$x1]`]. -[`y=`] [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +[`y=`] [_______________]{$ans1} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CollegeAlgebra/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_35.pg b/Contrib/CCCS/CollegeAlgebra/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_35.pg index 6d70f6fcc8..3ee3cdd62e 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_35.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_35.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -54,10 +54,10 @@ $ans1 = $f->eval(x=>$x1,z=>$z1,w=>$w1); # Main text BEGIN_PGML -Use the given information to find the unknown value: -[`y`] varies jointly as [`x`], [`z`], and [`w`]. When [`x=[$x0]`], [`z=[$z0]`], and [`w=[$w0]`], then [`y=[$y0]`]. Find [`y`] when [`x=[$x1]`], [`z=[$z1]`], and [`w=[$w1]`]. +Use the given information to find the unknown value: +[`y`] varies jointly as [`x`], [`z`], and [`w`]. When [`x=[$x0]`], [`z=[$z0]`], and [`w=[$w0]`], then [`y=[$y0]`]. Find [`y`] when [`x=[$x1]`], [`z=[$z1]`], and [`w=[$w1]`]. -[`y=`] [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +[`y=`] [_______________]{$ans1} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CollegeAlgebra/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_37.pg b/Contrib/CCCS/CollegeAlgebra/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_37.pg index 2e9e4d68eb..15ee30d455 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_37.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_37.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,10 +51,10 @@ $ans1 = $f->eval(x=>$x1,z=>$z1); # Main text BEGIN_PGML -Use the given information to find the unknown value: -[`y`] varies jointly as the square of [`x`] and the square root of [`z`]. When [`x=[$x0]`] and [`z=[$z0]`], then [`y=[$y0]`]. Find [`y`] when [`x=[$x1]`] and [`z=[$z1]`]. +Use the given information to find the unknown value: +[`y`] varies jointly as the square of [`x`] and the square root of [`z`]. When [`x=[$x0]`] and [`z=[$z0]`], then [`y=[$y0]`]. Find [`y`] when [`x=[$x1]`] and [`z=[$z1]`]. -[`y=`] [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +[`y=`] [_______________]{$ans1} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CollegeAlgebra/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_5.pg b/Contrib/CCCS/CollegeAlgebra/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_5.pg index 7b02651b25..8a40430a1f 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_5.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_5.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -44,8 +44,8 @@ $y0=$k*$x0**2; $ans1 = Formula("$k*x^2")->reduce(); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -54,9 +54,9 @@ TeX => # Main text BEGIN_PGML -Write an equation that describes the following relationship: [`y`] varies directly as the square of [`x`] and when [`x=[$x0]`], [`y=[$y0]`]. +Write an equation that describes the following relationship: [`y`] varies directly as the square of [`x`] and when [`x=[$x0]`], [`y=[$y0]`]. -[`y=`] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* +[`y=`] [_______________]{$ans1} [@ helpLink("formulas") @]* [$video]* diff --git a/Contrib/CCCS/CollegeAlgebra/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_51.pg b/Contrib/CCCS/CollegeAlgebra/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_51.pg index ab61851d85..d26571f814 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_51.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_51.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -49,9 +49,9 @@ $ans1 = $f->eval(s=>$s1); # Main text BEGIN_PGML -The distance [`s`] that an object falls varies directly with the square of the time, [`t`], of the fall. If an object falls [`[$s0]`] feet in one second, how long will it take for it to fall [`[$s1]`] feet? +The distance [`s`] that an object falls varies directly with the square of the time, [`t`], of the fall. If an object falls [`[$s0]`] feet in one second, how long will it take for it to fall [`[$s1]`] feet? -[`t=`] [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +[`t=`] [_______________]{$ans1} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CollegeAlgebra/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_57.pg b/Contrib/CCCS/CollegeAlgebra/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_57.pg index bc428c0a4a..903b11cd97 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_57.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_57.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -52,7 +52,7 @@ $ans1 = $f->eval(r=>$r1); BEGIN_PGML The current in a circuit varies inversely with its resistance measured in ohms. When the current in a circuit is [`[$c0]`] amperes, the resistance is [`[$r0]`] ohms. Find the current if the resistance is [`[$r1]`] ohms. -Current [`=`] [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +Current [`=`] [_______________]{$ans1} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CollegeAlgebra/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_9.pg b/Contrib/CCCS/CollegeAlgebra/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_9.pg index 44f83e77ac..1cc0ee26c4 100644 --- a/Contrib/CCCS/CollegeAlgebra/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_9.pg +++ b/Contrib/CCCS/CollegeAlgebra/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_9.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -46,9 +46,9 @@ $ans1 = Formula("$k*x^4")->reduce(); # Main text BEGIN_PGML -Write an equation that describes the following relationship: [`y`] varies directly as the fourth power of [`x`] and when [`x=[$x0]`], [`y=[$y0]`]. +Write an equation that describes the following relationship: [`y`] varies directly as the fourth power of [`x`] and when [`x=[$x0]`], [`y=[$y0]`]. -[`y=`] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* +[`y=`] [_______________]{$ans1} [@ helpLink("formulas") @]* diff --git a/Contrib/CCCS/CollegeAlgebra/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_18.pg b/Contrib/CCCS/CollegeAlgebra/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_18.pg index d843f74967..1f7bdc4ba1 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_18.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_18.pg @@ -23,7 +23,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "parserPopUp.pl", "PGcourse.pl", @@ -54,8 +54,8 @@ $h = Compute("$b/$n^$a"); $fun = Formula("y=$h($n^x)"); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -66,7 +66,7 @@ TeX => BEGIN_PGML Find the formula for an exponential equation that passes through the points, ([$a],[$b]) and ([$c],[$d]). The exponential equation should be of the form [`y=ab^x`]. -[___________________]{$fun} [@ AnswerFormatHelp("equation") @]* +[___________________]{$fun} [@ helpLink("equation") @]* [$video]* diff --git a/Contrib/CCCS/CollegeAlgebra/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_21.pg b/Contrib/CCCS/CollegeAlgebra/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_21.pg index ab56b7ebd4..7cc9d585ea 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_21.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_21.pg @@ -23,7 +23,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "parserPopUp.pl", @@ -62,8 +62,8 @@ parser::Assignment->Function("f"); $fun = Formula("y=$h($n^x)"); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -74,7 +74,7 @@ TeX => BEGIN_PGML Find the formula for an exponential equation that passes through the points ([$a],[$b]) and ([$c],[$d]). The exponential equation should be of the form [`y=ab^x`]. Round `a` and `b` values to at least 5 decimals, where appropriate. -[____________________]{$fun} [@ AnswerFormatHelp("equation") @]* +[____________________]{$fun} [@ helpLink("equation") @]* [$video]* diff --git a/Contrib/CCCS/CollegeAlgebra/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_23.pg b/Contrib/CCCS/CollegeAlgebra/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_23.pg index 95490a0791..8f9b10c5c7 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_23.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_23.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "niceTables.pl", "parserPopUp.pl", @@ -73,9 +73,9 @@ END_TEXT BEGIN_PGML -[_________________]{$popup1} +[_________________]{$popup1} -[` f(x)= `] [___________________________]{$ans} [@ AnswerFormatHelp("formula") @]* +[` f(x)= `] [___________________________]{$ans} [@ helpLink("formula") @]* END_PGML ################################# diff --git a/Contrib/CCCS/CollegeAlgebra/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_24.pg b/Contrib/CCCS/CollegeAlgebra/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_24.pg index ce01a99bee..e5b01bfcb7 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_24.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_24.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "niceTables.pl", "parserPopUp.pl", @@ -69,9 +69,9 @@ END_TEXT BEGIN_PGML -[_________________]{$popup} +[_________________]{$popup} -[` f(x) =`] [_________________________]{$ans} [@ AnswerFormatHelp("formula") @]* +[` f(x) =`] [_________________________]{$ans} [@ helpLink("formula") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_25.pg b/Contrib/CCCS/CollegeAlgebra/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_25.pg index e2c61821d5..1673ec44f1 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_25.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_25.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "niceTables.pl", "parserPopUp.pl", @@ -69,9 +69,9 @@ END_TEXT BEGIN_PGML -[_________________]{$popup} +[_________________]{$popup} -[` f(x) =`] [________________________]{$ans} [@ AnswerFormatHelp("formula") @]* +[` f(x) =`] [________________________]{$ans} [@ helpLink("formula") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_26.pg b/Contrib/CCCS/CollegeAlgebra/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_26.pg index e022b25a82..e39c2f7f09 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_26.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_26.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "niceTables.pl", "parserPopUp.pl", @@ -70,9 +70,9 @@ END_TEXT BEGIN_PGML -[_________________]{$popup} +[_________________]{$popup} -[` f(x)= `] [_________________________]{$ans} [@ AnswerFormatHelp("formula") @]* +[` f(x)= `] [_________________________]{$ans} [@ helpLink("formula") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_28.pg b/Contrib/CCCS/CollegeAlgebra/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_28.pg index 3741d523d2..e635bbf468 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_28.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_28.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextPercent.pl" @@ -60,8 +60,8 @@ $rate=Percent("$r"); $answer3 = $rate; $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -73,15 +73,15 @@ BEGIN_PGML An investment account is represented by the formula, [``A(t) = [$p]\left(1+\frac{[$r]}{12}\right)^{12t}``], where [`t`] is measured in years after the initial investment. How much money is in the account at time [`t = [$t]`]? -[_________________]{$answer1} [@ AnswerFormatHelp("number") @]* +[_________________]{$answer1} [@ helpLink("number") @]* What is the principal value of the account? In other words, what is [`A(0)`]? -[_________________]{$answer2} [@ AnswerFormatHelp("number") @]* +[_________________]{$answer2} [@ helpLink("number") @]* What is the interest rate for the account? Enter the answer as a percentage, including the percent (%) symbol. -[_________________]{$answer3}[@ AnswerFormatHelp("number") @]* +[_________________]{$answer3}[@ helpLink("number") @]* [$video]* diff --git a/Contrib/CCCS/CollegeAlgebra/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_4.pg b/Contrib/CCCS/CollegeAlgebra/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_4.pg index 27f037af50..f21a480d0e 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_4.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_4.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "PGchoicemacros.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", @@ -38,12 +38,12 @@ TEXT(beginproblem()); $radio1 = RadioButtons( ["exponential function","linear function"], - "exponential function" + "exponential function" ); $radio2 = RadioButtons( ["exponential function","linear function"], - "linear function" + "linear function" ); # Main text @@ -52,27 +52,27 @@ BEGIN_PGML Determine whether the following statements represent an exponential function or a linear function. -+ The average annual population of a pack of wolves increases each year by 25 wolves. ++ The average annual population of a pack of wolves increases each year by 25 wolves. - [_______________]{$radio2} + [_______________]{$radio2} -+ The value of a coin collection has increased by 3.25% annually over the last 20 years. ++ The value of a coin collection has increased by 3.25% annually over the last 20 years. - [_______________]{$radio1} + [_______________]{$radio1} -+ A population of bacteria decreases by a factor of [`\frac{1}{4}`] every 24 hours. ++ A population of bacteria decreases by a factor of [`\frac{1}{4}`] every 24 hours. - [_______________]{$radio1} + [_______________]{$radio1} -+ For the first 6 training sessions, a personal trainer charges his clients $5 less than the previous training session. ++ For the first 6 training sessions, a personal trainer charges his clients $5 less than the previous training session. [______________]{$radio2} -+ The population of a certain country at time `t` is represented by the function [`f(t)=50000(1.02)^{.25t}`]. ++ The population of a certain country at time `t` is represented by the function [`f(t)=50000(1.02)^{.25t}`]. [______________]{$radio1} diff --git a/Contrib/CCCS/CollegeAlgebra/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_44.pg b/Contrib/CCCS/CollegeAlgebra/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_44.pg index f143227f0d..c092270dba 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_44.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_44.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -67,7 +67,7 @@ BEGIN_PGML For the function [`f(x)= [$a]([$b])^x`], find [`f([$c])`]. Enter answer as a simplified exact value. -[`f([$c])=`][_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`f([$c])=`][_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_45.pg b/Contrib/CCCS/CollegeAlgebra/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_45.pg index bf446b3be9..38f6264318 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_45.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_45.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -69,7 +69,7 @@ BEGIN_PGML For the function [`f(x)= [$f]`], find [`f([$d])`]. Enter answer as a simplified exact value. [`f([$d])=`] [_______________]{$ans} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CollegeAlgebra/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_48.pg b/Contrib/CCCS/CollegeAlgebra/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_48.pg index 581cb2474b..92d2f116c2 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_48.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_48.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -61,7 +61,7 @@ BEGIN_PGML For the function [`f(x)= [$a]([$b])^{-x+1}+[$c]`], find [`f([$d])`]. Round answer to four decimal places, if necessary. -[`f([$d])=`][__________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`f([$d])=`][__________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_61.pg b/Contrib/CCCS/CollegeAlgebra/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_61.pg index a994049ee8..c6b2679fc1 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_61.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_61.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -56,16 +56,16 @@ $ans2 = Compute("$b*e^($r*8)"); BEGIN_PGML -The fox population in a certain region has a continuous growth rate of [$a]%. In the year 2012, there were [$b] foxes counted in the area. +The fox population in a certain region has a continuous growth rate of [$a]%. In the year 2012, there were [$b] foxes counted in the area. Write a function, [`f(t)`], that models the number of foxes in the population at [`t`] years after 2012. -[`f(t)=`][_______________]{$ans1} [@ AnswerFormatHelp("formula") @]* +[`f(t)=`][_______________]{$ans1} [@ helpLink("formula") @]* What is the fox population predicted to be in 2020? -[_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans2} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CollegeAlgebra/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_65.pg b/Contrib/CCCS/CollegeAlgebra/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_65.pg index b5b2388f20..b5a37029bb 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_65.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_65.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextCurrency.pl", @@ -61,7 +61,7 @@ BEGIN_PGML [$name] wants to save [$c] for a down payment on a home. How much will he need to invest in an account with [$a]% APR, compounding daily, in order to reach his goal in [$b] years? Round the answer to the nearest cent. Also, include a dollar sign ($). -[_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/6.1/RRCC_Openstax_Alg_Section6.1_Num6_18.pg b/Contrib/CCCS/CollegeAlgebra/6.1/RRCC_Openstax_Alg_Section6.1_Num6_18.pg index 9cb94601bc..96eaebf72d 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.1/RRCC_Openstax_Alg_Section6.1_Num6_18.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.1/RRCC_Openstax_Alg_Section6.1_Num6_18.pg @@ -23,7 +23,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -57,7 +57,7 @@ $fun = Formula("$h($n^x)"); BEGIN_PGML Find an equation for the exponential function that passes through the points, ([$a],[$b]) and ([$c],[$d]). The exponential function should be of the form [`f(x)=ab^x`]. -[` f(x) `] = [___________]{$fun} [@ AnswerFormatHelp("equation") @]* +[` f(x) `] = [___________]{$fun} [@ helpLink("equation") @]* For more questions like this, go to section 6.1 numbers 18-22. diff --git a/Contrib/CCCS/CollegeAlgebra/6.1/RRCC_Openstax_Alg_Section6.1_Num6_28.pg b/Contrib/CCCS/CollegeAlgebra/6.1/RRCC_Openstax_Alg_Section6.1_Num6_28.pg index f9938ac3f2..97416fb902 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.1/RRCC_Openstax_Alg_Section6.1_Num6_28.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.1/RRCC_Openstax_Alg_Section6.1_Num6_28.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -47,11 +47,11 @@ Context()->operators->remove('^','**'); BEGIN_PGML How much money is in an investment account at time [`t = [$t]`] if the account is represented by the formula, -[``A(t) = 10,250\left(1+\frac{[$r]}{12}\right)^{12t} ``] +[``A(t) = 10,250\left(1+\frac{[$r]}{12}\right)^{12t} ``] [_______________]{$answer} -[@ AnswerFormatHelp("numbers") @]* -You must perform all the algebra and enter the single number that is the value in the account. +[@ helpLink("numbers") @]* +You must perform all the algebra and enter the single number that is the value in the account. For more questions like this, go to section 6.1 numbers 28-38. END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/6.1/RRCC_Openstax_Alg_Section6.1_Num6_44.pg b/Contrib/CCCS/CollegeAlgebra/6.1/RRCC_Openstax_Alg_Section6.1_Num6_44.pg index 8694b7f4f2..cc2200cd59 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.1/RRCC_Openstax_Alg_Section6.1_Num6_44.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.1/RRCC_Openstax_Alg_Section6.1_Num6_44.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,7 +48,7 @@ BEGIN_PGML Evaluate the [`f(x)= 2(5)^x`] for [`f([$b])`]. [_______________]{$answer} -[@ AnswerFormatHelp("fractions") @]* +[@ helpLink("fractions") @]* For more questions like this, go to section 6.1 numbers 44-50. diff --git a/Contrib/CCCS/CollegeAlgebra/6.1/RRCC_Openstax_Alg_Section6.1_Num6_48.pg b/Contrib/CCCS/CollegeAlgebra/6.1/RRCC_Openstax_Alg_Section6.1_Num6_48.pg index 835a75c01c..290e7d53ee 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.1/RRCC_Openstax_Alg_Section6.1_Num6_48.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.1/RRCC_Openstax_Alg_Section6.1_Num6_48.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -52,7 +52,7 @@ BEGIN_PGML Evaluate the [`f(x)= [$f]`] for [`f([$d])`]. [_______________]{$answer} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* You must perform all algebra on a calculator and then enter the single number for [` f([$d]) `] For more questions like this, go to section 6.1 numbers 44-50. diff --git a/Contrib/CCCS/CollegeAlgebra/6.1/RRCC_Openstax_Alg_Section6.1_Num6_64.pg b/Contrib/CCCS/CollegeAlgebra/6.1/RRCC_Openstax_Alg_Section6.1_Num6_64.pg index 8f6dd32861..09f1acfa16 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.1/RRCC_Openstax_Alg_Section6.1_Num6_64.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.1/RRCC_Openstax_Alg_Section6.1_Num6_64.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -47,7 +47,7 @@ BEGIN_PGML A car was valued at $38,000 in the year 2007. By 2013, the value had depreciated to $11,000. If the car's value continues to drop by the same percentage, what will it be worth by 2017? [_______________]{$answer} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* For more questions like this, go to section 6.1 numbers 61-68. END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_11.pg b/Contrib/CCCS/CollegeAlgebra/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_11.pg index 9b30a1ccf5..922bb4f5a6 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_11.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_11.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -65,22 +65,22 @@ $gr1->lb( new Label(5,8,'F', 'red','center','middle')); -add_functions($gr1, "2(0.69)^x for x in <-10,10>" . +add_functions($gr1, "2(0.69)^x for x in <-10,10>" . " using color:blue and weight:2"); -add_functions($gr1, "2(1.28)^x for x in <-10,10>" . +add_functions($gr1, "2(1.28)^x for x in <-10,10>" . " using color:red and weight:2"); -add_functions($gr1, "2(0.81)^x for x in <-10,10>" . +add_functions($gr1, "2(0.81)^x for x in <-10,10>" . " using color:red and weight:2"); -add_functions($gr1, "4(1.28)^x for x in <-10,10>" . +add_functions($gr1, "4(1.28)^x for x in <-10,10>" . " using color:orange and weight:2"); -add_functions($gr1, "2(1.59)^x for x in <-10,10>" . +add_functions($gr1, "2(1.59)^x for x in <-10,10>" . " using color:blue and weight:2"); -add_functions($gr1, "4(0.69)^x for x in <-10,10>" . +add_functions($gr1, "4(0.69)^x for x in <-10,10>" . " using color:black and weight:2"); $popup1 = PopUp(["?", "A","B", "C", "D", "E", "F"], diff --git a/Contrib/CCCS/CollegeAlgebra/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_19.pg b/Contrib/CCCS/CollegeAlgebra/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_19.pg index cfef2b382d..7cb05ed620 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_19.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_19.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -64,22 +64,22 @@ $gr1->lb( new Label(7,8,'F', 'black','center','middle')); -add_functions($gr1, "5(.9)^x for x in <-10,10>" . +add_functions($gr1, "5(.9)^x for x in <-10,10>" . " using color:blue and weight:2"); -add_functions($gr1, "8(.7)^x for x in <-10,10>" . +add_functions($gr1, "8(.7)^x for x in <-10,10>" . " using color:red and weight:2"); -add_functions($gr1, "4(.5)^x for x in <-10,10>" . +add_functions($gr1, "4(.5)^x for x in <-10,10>" . " using color:black and weight:2"); -add_functions($gr1, "3(3)^x for x in <-10,10>" . +add_functions($gr1, "3(3)^x for x in <-10,10>" . " using color:orange and weight:2"); -add_functions($gr1, "2.2(1.8)^x for x in <-10,10>" . +add_functions($gr1, "2.2(1.8)^x for x in <-10,10>" . " using color:blue and weight:2"); -add_functions($gr1, "2(1.2)^x for x in <-10,10>" . +add_functions($gr1, "2(1.2)^x for x in <-10,10>" . " using color:black and weight:2"); $popup1 = PopUp(["?", "A","B", "C", "D", "E", "F"], diff --git a/Contrib/CCCS/CollegeAlgebra/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_27.pg b/Contrib/CCCS/CollegeAlgebra/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_27.pg index bd4d54c685..206df3fd88 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_27.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_27.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -72,16 +72,16 @@ size=>[600,600] ); -add_functions($grA, "$a^(x-$b) for x in <-6,6>" . +add_functions($grA, "$a^(x-$b) for x in <-6,6>" . " using color:blue and weight:2"); -add_functions($grB, "$a^(x+.5*$b) for x in <-6,6>" . +add_functions($grB, "$a^(x+.5*$b) for x in <-6,6>" . " using color:blue and weight:2"); -add_functions($grC, "$a^x+$b for x in <-6,6>" . +add_functions($grC, "$a^x+$b for x in <-6,6>" . " using color:blue and weight:2"); -add_functions($grD, "$a^x-$b for x in <-6,6>" . +add_functions($grD, "$a^x-$b for x in <-6,6>" . " using color:blue and weight:2"); @@ -117,7 +117,7 @@ $ans8 = List( Point("(0,$b+1)")); BEGIN_PGML -Consider the graph of [`f(x)=[$fun]`]. +Consider the graph of [`f(x)=[$fun]`]. Which of the following shows the related graph [`h(x)=[$transfun]`]? [_____________]{$popup1} @@ -127,21 +127,21 @@ Which of the following shows the related graph [`h(x)=[$transfun]`]? [_________ >>C. [@ image(insertGraph($grC), width=>300, height=>300), @]* D. [@ image(insertGraph($grD), width=>300, height=>300), @]*<< -What is the horizontal asymptote of [`f(x)`]? [_____________]{$popup2}=[_____________]{$ans1} [@ AnswerFormatHelp("equations") @]* +What is the horizontal asymptote of [`f(x)`]? [_____________]{$popup2}=[_____________]{$ans1} [@ helpLink("equations") @]* + +What is the domain of [`f(x)`]? [_____________]{$ans2} [@ helpLink("intervals") @]* -What is the domain of [`f(x)`]? [_____________]{$ans2} [@ AnswerFormatHelp("intervals") @]* +What is the range of [`f(x)`]? [_____________]{$ans3} [@ helpLink("intervals") @]* -What is the range of [`f(x)`]? [_____________]{$ans3} [@ AnswerFormatHelp("intervals") @]* +What is the `y`-intercept of [`f(x)`]? [_____________]{$ans4} [@ helpLink("points") @]* -What is the `y`-intercept of [`f(x)`]? [_____________]{$ans4} [@ AnswerFormatHelp("points") @]* - -What is the horizontal asymptote of [`h(x)`]? [_____________]{$popup2}=[_____________]{$ans5} [@ AnswerFormatHelp("equations") @]* +What is the horizontal asymptote of [`h(x)`]? [_____________]{$popup2}=[_____________]{$ans5} [@ helpLink("equations") @]* -What is the domain of [`h(x)`]? [_____________]{$ans6} [@ AnswerFormatHelp("intervals") @]* +What is the domain of [`h(x)`]? [_____________]{$ans6} [@ helpLink("intervals") @]* -What is the range of [`h(x)`]? [_____________]{$ans7} [@ AnswerFormatHelp("intervals") @]* +What is the range of [`h(x)`]? [_____________]{$ans7} [@ helpLink("intervals") @]* -What is the `y`-intercept of [`h(x)`]? [_____________]{$ans8} [@ AnswerFormatHelp("points") @]* +What is the `y`-intercept of [`h(x)`]? [_____________]{$ans8} [@ helpLink("points") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_28.pg b/Contrib/CCCS/CollegeAlgebra/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_28.pg index ea1d7719cf..363d0f23e0 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_28.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_28.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -74,22 +74,22 @@ size=>[600,600] -add_functions($grA, "$a^(x-$b) for x in <-6,6>" . +add_functions($grA, "$a^(x-$b) for x in <-6,6>" . " using color:blue and weight:2"); ($grA->fn)[0]->steps(2000); -add_functions($grB, "$a^(x+$b) for x in <-6,6>" . +add_functions($grB, "$a^(x+$b) for x in <-6,6>" . " using color:blue and weight:2"); ($grB->fn)[0]->steps(2000); -add_functions($grC, "$a^x+$b for x in <-6,6>" . +add_functions($grC, "$a^x+$b for x in <-6,6>" . " using color:blue and weight:2"); ($grC->fn)[0]->steps(2000); -add_functions($grD, "$a^x-$b for x in <-6,6>" . +add_functions($grD, "$a^x-$b for x in <-6,6>" . " using color:blue and weight:2"); ($grD->fn)[0]->steps(2000); @@ -126,7 +126,7 @@ $ans8 = List( Point("(0,$hint)")); BEGIN_PGML -Consider the graph of [`f(x)=[$fun]`]. +Consider the graph of [`f(x)=[$fun]`]. Which of the following shows the related graph [`h(x)`]=[`[$transfun]`] ?[_____________]{$popup1} @@ -136,21 +136,21 @@ Which of the following shows the related graph [`h(x)`]=[`[$transfun]`] ?[______ >>C. [@ image(insertGraph($grC), width=>300, height=>300), @]* D. [@ image(insertGraph($grD), width=>300, height=>300), @]*<< -What is the horizontal asymptote of [`f(x)`]? [_____________]{$popup2}=[_____________]{$ans1} [@ AnswerFormatHelp("equations") @]* +What is the horizontal asymptote of [`f(x)`]? [_____________]{$popup2}=[_____________]{$ans1} [@ helpLink("equations") @]* + +What is the domain of [`f(x)`]? [_____________]{$ans2} [@ helpLink("intervals") @]* -What is the domain of [`f(x)`]? [_____________]{$ans2} [@ AnswerFormatHelp("intervals") @]* +What is the range of [`f(x)`]? [_____________]{$ans3} [@ helpLink("intervals") @]* -What is the range of [`f(x)`]? [_____________]{$ans3} [@ AnswerFormatHelp("intervals") @]* +What is the [`y`]-intercept of [`f(x)`]? [_____________]{$ans4} [@ helpLink("points") @]* -What is the [`y`]-intercept of [`f(x)`]? [_____________]{$ans4} [@ AnswerFormatHelp("points") @]* - -What is the horizontal asymptote of [`h(x)`]? [_____________]{$popup2}=[_____________]{$ans5} [@ AnswerFormatHelp("equations") @]* +What is the horizontal asymptote of [`h(x)`]? [_____________]{$popup2}=[_____________]{$ans5} [@ helpLink("equations") @]* -What is the domain of [`h(x)`]? [_____________]{$ans6} [@ AnswerFormatHelp("intervals") @]* +What is the domain of [`h(x)`]? [_____________]{$ans6} [@ helpLink("intervals") @]* -What is the range of [`h(x)`]? [_____________]{$ans7} [@ AnswerFormatHelp("intervals") @]* +What is the range of [`h(x)`]? [_____________]{$ans7} [@ helpLink("intervals") @]* -What is the [`y`]-intercept of [`h(x)`]? [_____________]{$ans8} [@ AnswerFormatHelp("points") @]* +What is the [`y`]-intercept of [`h(x)`]? [_____________]{$ans8} [@ helpLink("points") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_32.pg b/Contrib/CCCS/CollegeAlgebra/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_32.pg index 1002bc1526..cb5ad8c18c 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_32.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_32.pg @@ -24,7 +24,7 @@ loadMacros( "PGML.pl", "MathObjects.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + ); TEXT(beginproblem()); @@ -50,17 +50,17 @@ BEGIN_PGML For the following exercises, start with the graph of [`f(x)=[$fun]`]. Then write a function, [`g(x)`], that results from the given transformation. -Shift [`f(x)`] `[$b]` units upward: [`g(x)=`][_________________]{$ans1}[@ AnswerFormatHelp("formula") @]* +Shift [`f(x)`] `[$b]` units upward: [`g(x)=`][_________________]{$ans1}[@ helpLink("formula") @]* -Shift [`f(x)`] `[$c]` units downward: [`g(x)=`][_________________]{$ans2}[@ AnswerFormatHelp("formula") @]* +Shift [`f(x)`] `[$c]` units downward: [`g(x)=`][_________________]{$ans2}[@ helpLink("formula") @]* -Shift [`f(x)`] `[$d]` units left: [`g(x)=`][_________________]{$ans3}[@ AnswerFormatHelp("formula") @]* +Shift [`f(x)`] `[$d]` units left: [`g(x)=`][_________________]{$ans3}[@ helpLink("formula") @]* -Shift [`f(x)`] `[$e]` units right: [`g(x)=`][_________________]{$ans4}[@ AnswerFormatHelp("formula") @]* +Shift [`f(x)`] `[$e]` units right: [`g(x)=`][_________________]{$ans4}[@ helpLink("formula") @]* -Reflect [`f(x)`] about the [`x`]-axis: [`g(x)=`][_________________]{$ans5}[@ AnswerFormatHelp("formula") @]* +Reflect [`f(x)`] about the [`x`]-axis: [`g(x)=`][_________________]{$ans5}[@ helpLink("formula") @]* -Reflect [`f(x)`]about the [`y`]-axis: [`g(x)=`][_________________]{$ans6}[@ AnswerFormatHelp("formula") @]* +Reflect [`f(x)`]about the [`y`]-axis: [`g(x)=`][_________________]{$ans6}[@ helpLink("formula") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_43.pg b/Contrib/CCCS/CollegeAlgebra/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_43.pg index 80b29c3dd2..7dc6281001 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_43.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_43.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); diff --git a/Contrib/CCCS/CollegeAlgebra/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_44.pg b/Contrib/CCCS/CollegeAlgebra/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_44.pg index efddc3d164..2bbacf6671 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_44.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_44.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); diff --git a/Contrib/CCCS/CollegeAlgebra/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_45.pg b/Contrib/CCCS/CollegeAlgebra/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_45.pg index e42678ac6a..a655433803 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_45.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_45.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -54,7 +54,7 @@ $ans = Compute("$calc"); BEGIN_PGML Evaluate the exponential function [`h(x)=`]`[$fun]` for [`h([$c])`]. Round to 4 decimal places, if necessary. -[`h([$c])=`] [_______________]{$ans} [@ AnswerFormatHelp("formula") @]* +[`h([$c])=`] [_______________]{$ans} [@ helpLink("formula") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_7.pg b/Contrib/CCCS/CollegeAlgebra/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_7.pg index a1c7f15e34..74dfbc0581 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_7.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_7.pg @@ -24,7 +24,7 @@ loadMacros( "PGchoicemacros.pl", "contextLimitedPoint.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + "contextInequalitySetBuilder.pl", "PGML.pl", "niceTables.pl", @@ -61,8 +61,8 @@ $ans4 = Compute("(-inf,-$a)"); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -72,15 +72,15 @@ TeX => BEGIN_PGML -The graph of [`f(x)=[$fun]`] is reflected across the [`x`]-axis, shifted downward [$a] units, and then shifted left [$b] units. +The graph of [`f(x)=[$fun]`] is reflected across the [`x`]-axis, shifted downward [$a] units, and then shifted left [$b] units. -Let [`g(x)`] represent the new function. What is an equation for this function? [`g(x)`] = [_________________]{$ans1} [@ AnswerFormatHelp("formula") @]* +Let [`g(x)`] represent the new function. What is an equation for this function? [`g(x)`] = [_________________]{$ans1} [@ helpLink("formula") @]* -What is the y-intercept of [`g(x)`]? Enter the answer as an ordered pair. [_________________]{$ans2} [@ AnswerFormatHelp("points") @]* +What is the y-intercept of [`g(x)`]? Enter the answer as an ordered pair. [_________________]{$ans2} [@ helpLink("points") @]* -What is the domain of [`g(x)`]? Enter the answer as an interval. [_________________]{$ans3} [@ AnswerFormatHelp("intervals") @]* +What is the domain of [`g(x)`]? Enter the answer as an interval. [_________________]{$ans3} [@ helpLink("intervals") @]* -What is the range of [`g(x)`]? Enter the answer as an interval. [_________________]{$ans4} [@ AnswerFormatHelp("intervals") @]* +What is the range of [`g(x)`]? Enter the answer as an interval. [_________________]{$ans4} [@ helpLink("intervals") @]* [$video]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_9.pg b/Contrib/CCCS/CollegeAlgebra/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_9.pg index 61223e9798..ce41ebadda 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_9.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_9.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -73,19 +73,19 @@ grid=>[8,8], size=>[600,600] ); -add_functions($gr, "$a($b)^x for x in <-8,8>" . +add_functions($gr, "$a($b)^x for x in <-8,8>" . " using color:blue and weight:2"); -add_functions($gr1, "$a($b)^-x for x in <-8,8>" . +add_functions($gr1, "$a($b)^-x for x in <-8,8>" . " using color:blue and weight:2"); -add_functions($gr2, "-$a($b)^(x) for x in <-8,8>" . +add_functions($gr2, "-$a($b)^(x) for x in <-8,8>" . " using color:blue and weight:2"); -add_functions($gr3, "-$a($b)^(-x) for x in <-8,8>" . +add_functions($gr3, "-$a($b)^(-x) for x in <-8,8>" . " using color:blue and weight:2"); -add_functions($gr4, "-$a(3*$b)^(x) for x in <-8,8>" . +add_functions($gr4, "-$a(3*$b)^(x) for x in <-8,8>" . " using color:blue and weight:2"); Context("Numeric"); @@ -104,8 +104,8 @@ Context("LimitedPoint"); $ans2 = List( Point("(0,-$a)")); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -123,16 +123,16 @@ The graph of [`f(x)=`]`[$fun]` is given below (click on graph to enlarge): -Let [`g(x)`] be the reflection of [`f(x)`] across the [`x`]-axis. Which of the following graphs represents the graph of [`g(x)`]? [_________________]{$popup1} +Let [`g(x)`] be the reflection of [`f(x)`] across the [`x`]-axis. Which of the following graphs represents the graph of [`g(x)`]? [_________________]{$popup1} ->>A. [@ image(insertGraph($gr1), width=>200, height=>200), @]* B. [@ image(insertGraph($gr2), width=>200, height=>200), @]* << +>>A. [@ image(insertGraph($gr1), width=>200, height=>200), @]* B. [@ image(insertGraph($gr2), width=>200, height=>200), @]* << >>C. [@ image(insertGraph($gr4), width=>200, height=>200), @]* D. [@ image(insertGraph($gr3), width=>200, height=>200), @]* << -What is the equation for [`g(x)`]? [`g(x)`]= [_________________]{$ans1} [@ AnswerFormatHelp("formulas") @]* +What is the equation for [`g(x)`]? [`g(x)`]= [_________________]{$ans1} [@ helpLink("formulas") @]* -What is the [`y`]-intercept of [`g(x)`]? Enter an ordered pair for the intercept. [_________________]{$ans2} [@ AnswerFormatHelp("points") @]* +What is the [`y`]-intercept of [`g(x)`]? Enter an ordered pair for the intercept. [_________________]{$ans2} [@ helpLink("points") @]* [$video]* diff --git a/Contrib/CCCS/CollegeAlgebra/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_9a.pg b/Contrib/CCCS/CollegeAlgebra/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_9a.pg index dce6b4d835..f1e9015e8a 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_9a.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_9a.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -76,27 +76,27 @@ grid=>[8,8], size=>[600,600] ); -add_functions($gr, "($a*$b^x) for x in <-8,8>" . +add_functions($gr, "($a*$b^x) for x in <-8,8>" . " using color:blue and weight:2"); ($gr->fn)[0]->steps(2000); -add_functions($gr1, "($a*$b^(x+$c)-$d) for x in <-8,8>" . +add_functions($gr1, "($a*$b^(x+$c)-$d) for x in <-8,8>" . " using color:blue and weight:2"); ($gr1->fn)[0]->steps(2000); -add_functions($gr2, "(-$a*$b^(x)-$c) for x in <-8,8>" . +add_functions($gr2, "(-$a*$b^(x)-$c) for x in <-8,8>" . " using color:blue and weight:2"); ($gr2->fn)[0]->steps(2000); -add_functions($gr3, "($a*$b^(x-$d)-$c) for x in <-8,8>" . +add_functions($gr3, "($a*$b^(x-$d)-$c) for x in <-8,8>" . " using color:blue and weight:2"); ($gr3->fn)[0]->steps(2000); -add_functions($gr4, "($a*$b^(x+$d)+$c) for x in <-8,8>" . +add_functions($gr4, "($a*$b^(x+$d)+$c) for x in <-8,8>" . " using color:blue and weight:2"); ($gr4->fn)[0]->steps(2000); @@ -135,11 +135,11 @@ The graph of [`f(x)=[$fun]`] is given below (click on graph to enlarge): Let [`g(x)`] be the transformation of [`f(x)`] up `[$c]` units and left `[$d]` units. Which of the following graphs represents the graph of [`g(x)`]? [_________________]{$popup1} ->>A. [@ image(insertGraph($gr1), width=>200, height=>200), @]* B. [@ image(insertGraph($gr2), width=>200, height=>200), @]* << +>>A. [@ image(insertGraph($gr1), width=>200, height=>200), @]* B. [@ image(insertGraph($gr2), width=>200, height=>200), @]* << >>C. [@ image(insertGraph($gr4), width=>200, height=>200), @]* D. [@ image(insertGraph($gr3), width=>200, height=>200), @]* << -What is the equation for [`g(x)`]? [`g(x)`]= [_________________]{$ans1} [@ AnswerFormatHelp("formulas") @]* +What is the equation for [`g(x)`]? [`g(x)`]= [_________________]{$ans1} [@ helpLink("formulas") @]* What is the horizontal asymptote of [`g(x)`]? Enter the equation of a line. [_________________]{$popup2} = [_________________]{$ans2} diff --git a/Contrib/CCCS/CollegeAlgebra/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_09.pg b/Contrib/CCCS/CollegeAlgebra/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_09.pg index d2266d07fe..84f726a465 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_09.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_09.pg @@ -2,7 +2,7 @@ ## College Algebra ## ENDDESCRIPTION - + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Exponential and logarithmic equations) @@ -12,7 +12,7 @@ ## MO(1) ## KEYWORDS('college algebra') - + ########################### # Initialization @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -53,7 +53,7 @@ do {$n2 = random(0,10,1);} until ($n2!= $n1); $var1 = $letter[$n1] ; $var2=$letter[$n2] ; -# Adding the two letters as variables +# Adding the two letters as variables Context()->variables->add($var1 => "Real"); Context()->variables->set($var1=>{limits=>[1,5]}); Context()->variables->add($var2 => "Real"); @@ -92,25 +92,25 @@ $multians = MultiAnswer($ans1, $ans2)->with( - + ########################### # Main text BEGIN_PGML -Rewrite the following equation in exponential form. +Rewrite the following equation in exponential form. -[`\log_[$var1]([$a])=[$var2] `] - - [____]{$multians} [`=`] [____]{$multians} [@ AnswerFormatHelp("numbers") @]* +[`\log_[$var1]([$a])=[$var2] `] + + [____]{$multians} [`=`] [____]{$multians} [@ helpLink("numbers") @]* END_PGML - - + + ############################ # Solution diff --git a/Contrib/CCCS/CollegeAlgebra/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_11.pg b/Contrib/CCCS/CollegeAlgebra/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_11.pg index 0b54b00969..f8de3faa4e 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_11.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_11.pg @@ -2,7 +2,7 @@ ## College Algebra ## ENDDESCRIPTION - + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Exponential and logarithmic equations) @@ -12,7 +12,7 @@ ## MO(1) ## KEYWORDS('college algebra') - + ########################### # Initialization @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -39,7 +39,7 @@ TEXT(beginproblem()); Context("Numeric"); install_problem_grader(~~&std_problem_grader); -# A random integer +# A random integer $a=non_zero_random(2,8,1); # Two random integer to grab letters @@ -53,7 +53,7 @@ do {$n2 = random(0,10,1);} until ($n2!= $n1); $var1 =$letter[$n1] ; $var2=$letter[$n2] ; -# Adding the two letters as variables +# Adding the two letters as variables Context()->variables->add($var1 => "Real"); Context()->variables->set($var1=>{limits=>[1,5]}); Context()->variables->add($var2 => "Real"); @@ -87,23 +87,23 @@ $multians = MultiAnswer($ans1, $ans2)->with( } ); - + ########################### # Main text BEGIN_PGML -Rewrite the following equation in exponential form. +Rewrite the following equation in exponential form. + +[`\log_[$var1]([$a])=[$var2] `] -[`\log_[$var1]([$a])=[$var2] `] - -[____]{$multians} [`=`] [____]{$multians} [@ AnswerFormatHelp("numbers") @]* +[____]{$multians} [`=`] [____]{$multians} [@ helpLink("numbers") @]* END_PGML - + ############################ # Solution diff --git a/Contrib/CCCS/CollegeAlgebra/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_17.pg b/Contrib/CCCS/CollegeAlgebra/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_17.pg index 73453170e6..a8dc487ae7 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_17.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_17.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject() ## DBchapter() ## DBsection() @@ -11,32 +11,32 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", "PGML.pl", "PGcourse.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); install_problem_grader(~~&std_problem_grader); - + # Two random integer to grab letters $n1=random(0,10,1); do {$n2 = random(0,10,1);} until ($n2!= $n1); @@ -49,14 +49,14 @@ do {$n2 = random(0,10,1);} until ($n2!= $n1); $var1 = $letter[$n1] ; $var2=$letter[$n2] ; -# Adding the two letters as variables +# Adding the two letters as variables Context()->variables->add($var1 => "Real"); Context()->variables->add($var2 => "Real"); # The two sides of the correct answer $ans1=Formula("$var1"); $ans2=Formula("log8($var2)"); - + # Allows for the correct equation to be given in either order $multians = MultiAnswer($ans1, $ans2)->with( @@ -79,31 +79,31 @@ $multians = MultiAnswer($ans1, $ans2)->with( } } ); - - + + ########################### # Main text - + BEGIN_PGML Rewrite the following equation in logarithmic form. -[`8^{[$var1]}=[$var2] `] - - [____]{$multians} [`=`] [____]{$multians} [@ AnswerFormatHelp("logarithms") @]* - +[`8^{[$var1]}=[$var2] `] + + [____]{$multians} [`=`] [____]{$multians} [@ helpLink("logarithms") @]* + END_PGML - - + + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/CollegeAlgebra/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_19.pg b/Contrib/CCCS/CollegeAlgebra/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_19.pg index 47950207fb..bb7ca5be22 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_19.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_19.pg @@ -2,7 +2,7 @@ ## College Algebra ## ENDDESCRIPTION - + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Exponential and logarithmic equations) @@ -12,7 +12,7 @@ ## MO(1) ## KEYWORDS('college algebra') - + ########################### # Initialization @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -49,7 +49,7 @@ do {$n2 = random(0,10,1);} until ($n2!= $n1); $var1 = $letter[$n1] ; $var2=$letter[$n2] ; -# Adding the letters as variables +# Adding the letters as variables Context()->variables->add($var1 => "Real"); Context()->variables->add($var2 => "Real"); Context()->variables->set($var2=>{limits=>[5,10]}); @@ -83,22 +83,22 @@ $multians = MultiAnswer($ans1, $ans2)->with( } ); - + ########################### # Main text BEGIN_PGML -Rewrite the following equation in logarithmic form. +Rewrite the following equation in logarithmic form. + +[`e^{[$var1]}=[$var2] `] + + [____]{$multians} [`=`] [____]{$multians} [@ helpLink("logarithms") @]* -[`e^{[$var1]}=[$var2] `] - - [____]{$multians} [`=`] [____]{$multians} [@ AnswerFormatHelp("logarithms") @]* - END_PGML - + ############################ # Solution diff --git a/Contrib/CCCS/CollegeAlgebra/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_21.pg b/Contrib/CCCS/CollegeAlgebra/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_21.pg index 92db2a7634..deaacbf2bf 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_21.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_21.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject() ## DBchapter() ## DBsection() @@ -11,32 +11,32 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", "PGML.pl", "PGcourse.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); install_problem_grader(~~&std_problem_grader); - + $var1=non_zero_random(2,6,1); $var2=non_zero_random(2,6,1); @@ -44,7 +44,7 @@ $var2=non_zero_random(2,6,1); # The two sides of the correct answer $ans1=Formula("log$var1($var2)"); $ans2=Formula("x"); - + # Allows for the correct equation to be given in either order $multians = MultiAnswer($ans1, $ans2)->with( @@ -67,34 +67,34 @@ $multians = MultiAnswer($ans1, $ans2)->with( } } ); - - + + ########################### # Main text - + BEGIN_PGML -Rewrite the following equation in logarithmic form. +Rewrite the following equation in logarithmic form. + +[`x^[$var1]=[$var2] `] + + + [________]{$multians} [`=`] [__________]{$multians} [@ helpLink("logarithms") @]* -[`x^[$var1]=[$var2] `] - - [________]{$multians} [`=`] [__________]{$multians} [@ AnswerFormatHelp("logarithms") @]* - - END_PGML - - - + + + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/CollegeAlgebra/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_23.pg b/Contrib/CCCS/CollegeAlgebra/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_23.pg index 7706d87c34..ce1c353b43 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_23.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_23.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Exponential and logarithmic equations) @@ -11,32 +11,32 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - + ### Currently this problem DOES NOT require the fraction to be simplified ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", "PGML.pl", "PGcourse.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); install_problem_grader(~~&std_problem_grader); - + $numerator=non_zero_random(1,100,1); $denominator=non_zero_random(1,100,1); @@ -81,33 +81,33 @@ $multians = MultiAnswer($ans1, $ans2)->with( } } ); - - + + ########################### # Main text - + BEGIN_PGML -Rewrite the following equation in logarithmic form. +Rewrite the following equation in logarithmic form. + +[`e^{[$var1]}=\frac{[$numerator]}{[$denominator]} `] + + + [____]{$multians} [`=`] [____]{$multians} [@ helpLink("logarithms") @]* -[`e^{[$var1]}=\frac{[$numerator]}{[$denominator]} `] - - [____]{$multians} [`=`] [____]{$multians} [@ AnswerFormatHelp("logarithms") @]* - - END_PGML - - - + + + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/CollegeAlgebra/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_25.pg b/Contrib/CCCS/CollegeAlgebra/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_25.pg index 1d42482e96..55716bb32a 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_25.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_25.pg @@ -2,7 +2,7 @@ ## College Algebra ## ENDDESCRIPTION - + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Exponential and logarithmic equations) @@ -12,7 +12,7 @@ ## MO(1) ## KEYWORDS('college algebra') - + ########################### # Initialization @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -48,7 +48,7 @@ do {$n2 = random(0,10,1);} until ($n2!= $n1); $var1 = $letter[$n1] ; $var2=$letter[$n2] ; -# Adding the two letters as variables +# Adding the two letters as variables Context()->variables->add($var1 => "Real"); Context()->variables->add($var2 => "Real"); Context()->variables->set($var2=>{limits=>[5,10]}); @@ -81,19 +81,19 @@ $multians = MultiAnswer($ans1, $ans2)->with( } ); - + ########################### # Main text BEGIN_PGML -Rewrite the following equation in logarithmic form. +Rewrite the following equation in logarithmic form. + +[`[$var2] = 10^{[$var1]} `] + +[____]{$multians} `=` [____]{$multians} [@ helpLink("logarithms") @]* -[`[$var2] = 10^{[$var1]} `] - -[____]{$multians} `=` [____]{$multians} [@ AnswerFormatHelp("logarithms") @]* - END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_27.pg b/Contrib/CCCS/CollegeAlgebra/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_27.pg index a8577401ac..f11f067013 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_27.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_27.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Exponential and logarithmic equations) @@ -11,60 +11,60 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", "PGML.pl", "PGcourse.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); $base = random(2, 8, 1); $exponent = non_zero_random(-8, -2, 1); - + # The two sides of the correct answer $ans=Formula("$base^$exponent"); - - + + ########################### # Main text - + BEGIN_PGML -Solve for [`x`] by converting the logarithmic equation to exponential form. +Solve for [`x`] by converting the logarithmic equation to exponential form. + +[`\log_{[$base]}(x) = [$exponent] `] + +[`x =`] [____]{$ans} [@ helpLink("numbers") @]* -[`\log_{[$base]}(x) = [$exponent] `] - -[`x =`] [____]{$ans} [@ AnswerFormatHelp("numbers") @]* - END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/CollegeAlgebra/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_29.pg b/Contrib/CCCS/CollegeAlgebra/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_29.pg index 35e187a30f..48b361dff3 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_29.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_29.pg @@ -2,7 +2,7 @@ ## College Algebra ## ENDDESCRIPTION - + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Exponential and logarithmic equations) @@ -12,7 +12,7 @@ ## MO(1) ## KEYWORDS('college algebra') - + ########################### # Initialization @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -45,7 +45,7 @@ $n1=random(0,8,1); # Grabbing a letter $base = $letter[$n1] ; -# Adding the letters as variables +# Adding the letters as variables Context()->variables->add($base => "Real"); Context()->variables->set($base=>{limits=>[1,5]}); @@ -54,19 +54,19 @@ $exponent = non_zero_random(2, 6, 1); # The two sides of the correct answer $ans=Formula("$base^$exponent"); - + ########################### # Main text BEGIN_PGML -Solve for [`x`] by converting the logarithmic equation to exponential form +Solve for [`x`] by converting the logarithmic equation to exponential form + +[`\log_{[$base]}(x) = [$exponent] `] + + [`x =`] [____]{$ans} [@ helpLink("numbers") @]* -[`\log_{[$base]}(x) = [$exponent] `] - - [`x =`] [____]{$ans} [@ AnswerFormatHelp("numbers") @]* - END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_35.pg b/Contrib/CCCS/CollegeAlgebra/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_35.pg index 1ed0309392..2704406710 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_35.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_35.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Exponential and logarithmic equations) @@ -11,50 +11,50 @@ ## Author(Michael Sulock, Hint added Brittni Lorton March 2020) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", "PGML.pl", "PGcourse.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); $exponent = non_zero_random(2, 8, 1); - + # The two sides of the correct answer $ans=Formula("e^$exponent"); - - + + ########################### # Main text - + BEGIN_PGML -Solve for [`x`] by converting the logarithmic equation to exponential form. +Solve for [`x`] by converting the logarithmic equation to exponential form. + + [`\ln(x) = [$exponent] `] + + [`x =`] [____]{$ans} [@ helpLink("numbers") @]* - [`\ln(x) = [$exponent] `] - - [`x =`] [____]{$ans} [@ AnswerFormatHelp("numbers") @]* - END_PGML ############################ @@ -63,11 +63,11 @@ Remember that [`\ln(x)`] means [`\log_e(x)`]. Use that information to convert th END_PGML_HINT ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/CollegeAlgebra/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_41.pg b/Contrib/CCCS/CollegeAlgebra/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_41.pg index 557c70ae58..b46112431d 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_41.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_41.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Properties of logarithms) @@ -11,27 +11,27 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", "PGML.pl", "PGcourse.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -39,34 +39,34 @@ Context("Numeric"); $var1 = non_zero_random(2, 8, 0.01); $var2 = non_zero_random(2, 8, 1); - + # The two sides of the correct answer $ans=Formula("$var1+$var2"); - - + + ########################### # Main text - + BEGIN_PGML Use the definition of common and natural logarithms to simplify. -[`e^{\ln([$var1])} + [$var2] `] +[`e^{\ln([$var1])} + [$var2] `] + +[____]{$ans} [@ helpLink("numbers") @]* -[____]{$ans} [@ AnswerFormatHelp("numbers") @]* - END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/CollegeAlgebra/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_47.pg b/Contrib/CCCS/CollegeAlgebra/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_47.pg index c5f282ef30..1cf1894523 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_47.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_47.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject() ## DBchapter() ## DBsection() @@ -11,17 +11,17 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,10 +29,10 @@ loadMacros( "PGcourse.pl", "contextFraction.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -40,39 +40,39 @@ Context("Numeric"); $var1 = random(-5, 0, 1); -#This is not behaving correct. If va1=-2, var2 = 1/8. I don't get it. +#This is not behaving correct. If va1=-2, var2 = 1/8. I don't get it. Context("Fraction"); $var2 = Fraction(1,10^abs($var1)); - + Context("Numeric"); # The correct answer $ans=$var1; - - + + ########################### # Main text - + BEGIN_PGML Evaluate the common logarithmic expression without using a calculator. - [`\log([$var2]) `] - - [____]{$ans} [@ AnswerFormatHelp("numbers") @]* + [`\log([$var2]) `] + + [____]{$ans} [@ helpLink("numbers") @]* END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/CollegeAlgebra/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_49.pg b/Contrib/CCCS/CollegeAlgebra/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_49.pg index 7588ce69a5..884cb7af63 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_49.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_49.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Properties of logarithms) @@ -11,27 +11,27 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", "PGML.pl", "PGcourse.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup @@ -41,11 +41,11 @@ $var1 = random(-5, 0, 1); $var2 = non_zero_random(2, 8, 1); $var3 = list_random(10, 100, 1000, 10000); - + # The correct answer $ans=$var2*$var1*(log($var3)); - - + + ########################### # Main text Context()->functions->disable("Numeric"); @@ -54,21 +54,21 @@ BEGIN_PGML Evaluate the common logarithmic expression without using a calculator. - [``[$var2]\log\left([$var3]^{[$var1]}\right) ``] - - [_____________]{$ans} [@ AnswerFormatHelp("numbers") @]* - + [``[$var2]\log\left([$var3]^{[$var1]}\right) ``] + + [_____________]{$ans} [@ helpLink("numbers") @]* + END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); diff --git a/Contrib/CCCS/CollegeAlgebra/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_53.pg b/Contrib/CCCS/CollegeAlgebra/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_53.pg index ba6401bd77..dfc21b1dc7 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_53.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_53.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Properties of logarithms) @@ -11,27 +11,27 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", "PGML.pl", "PGcourse.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -41,11 +41,11 @@ $var1 = random(-5, 0, 1); $var2 = non_zero_random(2, 8, 1); $var3 = list_random(10, 100, 1000, 10000); - + # The correct answer $ans=$var2*$var1*(log10($var3)); - - + + ########################### # Main text Context()->functions->disable("Numeric"); @@ -54,21 +54,21 @@ BEGIN_PGML Evaluate the common logarithmic expression without using a calculator. - [`[$var2]\log([$var3]^{[$var1]}) `] - - [_____________]{$ans} [@ AnswerFormatHelp("numbers") @]* - + [`[$var2]\log([$var3]^{[$var1]}) `] + + [_____________]{$ans} [@ helpLink("numbers") @]* + END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/CollegeAlgebra/6.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_36.pg b/Contrib/CCCS/CollegeAlgebra/6.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_36.pg index b13a1fdb12..e376768e1b 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_36.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_36.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -45,11 +45,11 @@ Context()->functions->disable("log","log10","ln"); # Main text BEGIN_PGML -Use the definition of logarithms to completely simplify. +Use the definition of logarithms to completely simplify. -[`\log([$m]^[$p])`] +[`\log([$m]^[$p])`] -[_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans} [@ helpLink("numbers") @]* END_PGML @@ -59,11 +59,11 @@ Example: [`\log_5(25^7) = \log_5\left((5^2)^7\right) = \log_5\left(5^{14}\right)`] . - [`\log_5\left(5^{14}\right)`] is saying "5 to the power of what is [`5^{14}`]?" - + [`\log_5\left(5^{14}\right)`] is saying "5 to the power of what is [`5^{14}`]?" + Thereforefore, [`\log_5\left(5^{14}\right)=14`] - - + + END_PGML_HINT ############################ diff --git a/Contrib/CCCS/CollegeAlgebra/6.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_39.pg b/Contrib/CCCS/CollegeAlgebra/6.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_39.pg index 67ac04f726..b05ac2f25e 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_39.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_39.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -42,11 +42,11 @@ Context()->functions->disable("log","log10","ln"); # Main text BEGIN_PGML -Use the definition of logarithms to completely simplify. +Use the definition of logarithms to completely simplify. -[`e^{\ln([$m])}`] +[`e^{\ln([$m])}`] -[_______________]{$m} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$m} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/6.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_43.pg b/Contrib/CCCS/CollegeAlgebra/6.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_43.pg index e27dc0e95d..c1e9661c5e 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_43.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_43.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -43,11 +43,11 @@ Context()->functions->disable("log","log10","ln"); # Main text BEGIN_PGML -Use the definition of logarithms to completely simplify. +Use the definition of logarithms to completely simplify. -[`\log_{[$b]}\left(\sqrt{[$b]}\right)`] +[`\log_{[$b]}\left(\sqrt{[$b]}\right)`] -[_______________]{"1/2"} [@ AnswerFormatHelp("numbers") @]* +[_______________]{"1/2"} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/6.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_44.pg b/Contrib/CCCS/CollegeAlgebra/6.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_44.pg index 6aa78f21c4..5b403726c7 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_44.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_44.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -49,9 +49,9 @@ Context()->functions->disable("log","log10","ln"); BEGIN_PGML Evaluate the following without using a calculator. Simplify completely. -[``\log_{[$b]}\left(\frac{1}{[$denom]}\right)+[$k]``] +[``\log_{[$b]}\left(\frac{1}{[$denom]}\right)+[$k]``] -[_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/6.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_51.pg b/Contrib/CCCS/CollegeAlgebra/6.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_51.pg index 7ac2beb4a5..af65448a83 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_51.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_51.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -43,17 +43,17 @@ BEGIN_PGML Evaluate the following without using a calculator. Simplify completely. -[`\ln(1)=`] [_______________]{"0"} [@ AnswerFormatHelp("numbers") @]* +[`\ln(1)=`] [_______________]{"0"} [@ helpLink("numbers") @]* + +[`\log(1)=`] [_______________]{"0"} [@ helpLink("numbers") @]* -[`\log(1)=`] [_______________]{"0"} [@ AnswerFormatHelp("numbers") @]* +[`\log_b(1)=`] [_______________]{"0"} [@ helpLink("numbers") @]* -[`\log_b(1)=`] [_______________]{"0"} [@ AnswerFormatHelp("numbers") @]* +[`\log(10)=`] [_______________]{"1"} [@ helpLink("numbers") @]* -[`\log(10)=`] [_______________]{"1"} [@ AnswerFormatHelp("numbers") @]* +[`\ln(e)=`] [_______________]{"1"} [@ helpLink("numbers") @]* -[`\ln(e)=`] [_______________]{"1"} [@ AnswerFormatHelp("numbers") @]* - END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_15.pg b/Contrib/CCCS/CollegeAlgebra/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_15.pg index 42d3f863aa..772d22eb5c 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_15.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_15.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserPopUp.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -58,9 +58,9 @@ BEGIN_PGML Find the domain and vertical asymptote of [`` f(x)=[$f] ``]. Enter the domain in interval notation. -Domain: [_______________]{$ans1} [@ AnswerFormatHelp("intervals") @]* +Domain: [_______________]{$ans1} [@ helpLink("intervals") @]* -Vertical asymptote: [________]{$popup} [________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +Vertical asymptote: [________]{$popup} [________]{$ans2} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_39.pg b/Contrib/CCCS/CollegeAlgebra/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_39.pg index 4c2e213287..4750bf88b9 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_39.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_39.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject() ## DBchapter() ## DBsection() @@ -11,29 +11,29 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", "PGcourse.pl", "contextLimitedPoint.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup @@ -99,7 +99,7 @@ Context("Numeric"); if ( $chooser == 1) { - + $popup1 = PopUp( ["?","Green","Red", "Blue", "Black"], "Green", ); @@ -112,7 +112,7 @@ $popup3 = PopUp( ["?","Green","Red", "Blue", "Black"], "Blue", ); } elsif ( $chooser == 2 ) { - + $popup1 = PopUp( ["?","Green","Red", "Blue", "Black"], "Orange", ); @@ -158,7 +158,7 @@ $popup3 = PopUp( ########################### # Main text - + BEGIN_PGML >>Match each equation with its graph. << @@ -171,14 +171,14 @@ BEGIN_PGML >>[`\log(-x+[$constant]) = `] [______]{$popup3}<< END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/CollegeAlgebra/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_41.pg b/Contrib/CCCS/CollegeAlgebra/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_41.pg index 5e1359bd45..d75dd5b8cd 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_41.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_41.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Graphs) @@ -11,29 +11,29 @@ ## Author(Michael Sulock; EDIT: James Morski 10/19/2017) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", "PGcourse.pl", "contextLimitedPoint.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup @@ -157,7 +157,7 @@ $popup = PopUp( ########################### # Main text - + BEGIN_PGML >>Which of the following is the graph of [`f(x)=\log_{2}(x+[$constant])`] << @@ -167,14 +167,14 @@ BEGIN_PGML END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/CollegeAlgebra/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_43.pg b/Contrib/CCCS/CollegeAlgebra/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_43.pg index 3bc64f3777..1e2699b28f 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_43.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_43.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Graphs) @@ -11,29 +11,29 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", "PGcourse.pl", "contextLimitedPoint.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup @@ -83,7 +83,7 @@ $popup = PopUp( ########################### # Main text - + BEGIN_PGML >>Which of the following displays the graph of [`f(x)=\ln(-x)`] << @@ -94,14 +94,14 @@ BEGIN_PGML END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/CollegeAlgebra/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_45.pg b/Contrib/CCCS/CollegeAlgebra/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_45.pg index a9c17b9f01..a2ee38b353 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_45.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_45.pg @@ -2,7 +2,7 @@ ## College Algebra ## ENDDESCRIPTION - + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Graphs) @@ -12,7 +12,7 @@ ## MO(1) ## KEYWORDS('college algebra') - + ########################### # Initialization @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", diff --git a/Contrib/CCCS/CollegeAlgebra/6.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_13.pg b/Contrib/CCCS/CollegeAlgebra/6.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_13.pg index 8bfa05939c..df05c23bf5 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_13.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_13.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserPopUp.pl", "PGML.pl", "PGcourse.pl", @@ -50,8 +50,8 @@ $popup = PopUp( ); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -62,9 +62,9 @@ BEGIN_PGML Find the domain and vertical asymptote of [`` f(x)=[$f] ``]. Enter the domain in interval notation. -Domain: [_______________]{$ans1} [@ AnswerFormatHelp("intervals") @]* +Domain: [_______________]{$ans1} [@ helpLink("intervals") @]* -Vertical asymptote: [_________________]{$popup}[________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +Vertical asymptote: [_________________]{$popup}[________]{$ans2} [@ helpLink("numbers") @]* [$video]* diff --git a/Contrib/CCCS/CollegeAlgebra/6.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_17.pg b/Contrib/CCCS/CollegeAlgebra/6.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_17.pg index d067d5442b..86e455a5f3 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_17.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_17.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserPopUp.pl", "PGML.pl", "PGcourse.pl", @@ -54,9 +54,9 @@ BEGIN_PGML Find the domain and vertical asymptote of [`` f(x)=[$f] ``]. Enter the domain in interval notation. -Domain: [_______________]{$ans1} [@ AnswerFormatHelp("intervals") @]* +Domain: [_______________]{$ans1} [@ helpLink("intervals") @]* -Vertical asymptote [_________________]{$popup} [________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +Vertical asymptote [_________________]{$popup} [________]{$ans2} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/6.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_26.pg b/Contrib/CCCS/CollegeAlgebra/6.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_26.pg index ec9cc85d2f..860508e09c 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_26.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_26.pg @@ -26,7 +26,7 @@ loadMacros( "MathObjects.pl", "parserPopUp.pl", "parserMultiAnswer.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", ); @@ -78,8 +78,8 @@ $popup5 = PopUp( $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -90,7 +90,7 @@ Match each function with one of the graphs. $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>400,height=>400,tex_size=>800 ) \} $BR (Click on graph to enlarge) diff --git a/Contrib/CCCS/CollegeAlgebra/6.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_52.pg b/Contrib/CCCS/CollegeAlgebra/6.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_52.pg index 484083113c..98754a30c8 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_52.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_52.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -54,9 +54,9 @@ $ans=Formula("(10^(($c-$d)/2)+$a)/$b")->reduce; BEGIN_PGML -Use graphing technology to find approximate solutions of [` [$f]=[$g]`]. +Use graphing technology to find approximate solutions of [` [$f]=[$g]`]. -[`x=`] [________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/6.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_7.pg b/Contrib/CCCS/CollegeAlgebra/6.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_7.pg index 0ce8982e46..dfada41cb3 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_7.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_7.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -43,8 +43,8 @@ $ans2=Compute("(-infinity,infinity)"); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -57,9 +57,9 @@ BEGIN_PGML Find the domain and range of [`` f(x)=[$f] ``]. Enter your solutions in interval notation. -Domain: [_______________]{$ans1} [@ AnswerFormatHelp("intervals") @]* +Domain: [_______________]{$ans1} [@ helpLink("intervals") @]* -Range: [_______________]{$ans2} [@ AnswerFormatHelp("intervals") @]* +Range: [_______________]{$ans2} [@ helpLink("intervals") @]* [$video]* diff --git a/Contrib/CCCS/CollegeAlgebra/6.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_9.pg b/Contrib/CCCS/CollegeAlgebra/6.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_9.pg index 3d4728c4d9..37dab450f5 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_9.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_9.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,9 +50,9 @@ BEGIN_PGML Find the domain and range of [`` f(x)=[$f] ``]. Enter the solutions in interval notation. -Domain: [_______________]{$ans1} [@ AnswerFormatHelp("intervals") @]* +Domain: [_______________]{$ans1} [@ helpLink("intervals") @]* -Range: [_______________]{$ans2} [@ AnswerFormatHelp("intervals") @]* +Range: [_______________]{$ans2} [@ helpLink("intervals") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_05.pg b/Contrib/CCCS/CollegeAlgebra/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_05.pg index 8becc27135..451fe527fe 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_05.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_05.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Properties of logarithms) @@ -11,29 +11,29 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", "PGcourse.pl", "contextLimitedPoint.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context()->operators->undefine("/"); @@ -45,7 +45,7 @@ $ans = Formula("ln($numerator)-ln(x)")->with(limits=>[1,2]); ########################### # Main text - + BEGIN_PGML Expand the following logarithm as much as possible. Rewrite as a sum, difference, or product of logs. @@ -58,14 +58,14 @@ Expand the following logarithm as much as possible. Rewrite as a sum, differenc END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/CollegeAlgebra/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_12.pg b/Contrib/CCCS/CollegeAlgebra/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_12.pg index 51629e7306..7d03e7239e 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_12.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_12.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -40,9 +40,9 @@ Context()->variables->add(a => 'Real', b => 'Real', c=> 'Real'); # Main text BEGIN_PGML -Condense the left-hand side into a single logarithm. +Condense the left-hand side into a single logarithm. ->>[`\log(a)-\log(b)-\log(c)`] = [`\log(`][_______________]{"a/(bc)"}[`)`] [@ AnswerFormatHelp("formulas") @]*<< +>>[`\log(a)-\log(b)-\log(c)`] = [`\log(`][_______________]{"a/(bc)"}[`)`] [@ helpLink("formulas") @]*<< END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_13.pg b/Contrib/CCCS/CollegeAlgebra/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_13.pg index f7b0c84c76..92332e3b3c 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_13.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_13.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Properties of logarithms) @@ -11,27 +11,27 @@ ## Author(Michael Sulock, Edit: Brittni Lorton 11/01/2019) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextLimitedPoint.pl", "parserFunction.pl" ); - + TEXT(beginproblem()); - + ########################### # Setup @@ -44,23 +44,23 @@ $ans->{test_points} = [[2],[3],[4]]; ########################### # Main text - + BEGIN_PGML Expand the following logarithm as much as possible. Rewrite as a sum, difference, or product of logs. [`\displaystyle-\log\left(\frac{1}{x}\right)`] - [___________]{$ans}[@ AnswerFormatHelp("formulas") @]* + [___________]{$ans}[@ helpLink("formulas") @]* END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/CollegeAlgebra/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_15.pg b/Contrib/CCCS/CollegeAlgebra/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_15.pg index 690a4601d5..12b5b0a941 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_15.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_15.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Properties of logarithms) @@ -11,29 +11,29 @@ ## Author(Michael Sulock, Hint added Brittni Lorton March 2020) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", "PGcourse.pl", "contextLimitedPoint.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -43,9 +43,9 @@ Context()->operators->undefine("/", "^"); Context()->variables->add(y => 'Real'); Context()->variables->add(z => 'Real'); -$expX = random(3,9,1); -$expY = random(5,7,1); -$expZ = random(3,9,1); +$expX = random(3,9,1); +$expY = random(5,7,1); +$expZ = random(3,9,1); @@ -55,13 +55,13 @@ $ans->{test_points} = [[1,1,1], [2,2,2]]; ########################### # Main text - + BEGIN_PGML Use the properties of logarithms to expand the following logarithm as much as possible. Rewrite as a sum, difference, or product of logs. [`\displaystyle\log\left(\frac{x^{[$expX]}y^{[$expY]}}{z^{[$expZ]}}\right)`] - [____________________________________________]{$ans}[@ AnswerFormatHelp("formulas") @]* + [____________________________________________]{$ans}[@ helpLink("formulas") @]* END_PGML @@ -80,11 +80,11 @@ Some properties of logarithms: END_PGML_HINT ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/CollegeAlgebra/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_19.pg b/Contrib/CCCS/CollegeAlgebra/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_19.pg index 8bd464b964..b8042e29ed 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_19.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_19.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Properties of logarithms) @@ -11,29 +11,29 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", "PGcourse.pl", "contextLimitedPoint.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -42,10 +42,10 @@ Context()->operators->undefine("^"); Context()->variables->add(y => 'Real'); Context()->variables->add(z => 'Real'); -$expX = random(3,9,1); -$expY = random(5,7,1); -$expX2 = random(3,9,1); -$expY2 = random(5,7,1); +$expX = random(3,9,1); +$expY = random(5,7,1); +$expX2 = random(3,9,1); +$expY2 = random(5,7,1); $root = random(3,9,1); @@ -60,23 +60,23 @@ $ans->{test_points} = [[1,1,1], [2,2,2]]; ########################### # Main text - + BEGIN_PGML Use the properties of logarithms to expand the following logarithm as much as possible. Rewrite as a sum, difference, or product of logs. [`\log{\left( x^[$expX]y^[$expY]\sqrt[[$root]]{x^[$expX2]y^[$expY2]}\right)}`] - [____________________________________________]{$ans}[@ AnswerFormatHelp("formulas") @]* + [____________________________________________]{$ans}[@ helpLink("formulas") @]* END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/CollegeAlgebra/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_21.pg b/Contrib/CCCS/CollegeAlgebra/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_21.pg index d67a52497f..54ee5b5786 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_21.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_21.pg @@ -5,7 +5,7 @@ ## College Algebra ## ENDDESCRIPTION - + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Properties of logarithms) @@ -15,7 +15,7 @@ ## MO(1) ## KEYWORDS('college algebra') - + ########################### # Initialization @@ -26,7 +26,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -42,11 +42,11 @@ TEXT(beginproblem()); # Setup Context("Numeric"); -$coeffX = random(3,9,1); +$coeffX = random(3,9,1); do {$coeffX2 = random(5,7,1); } until ($coeffX2 != $coeffX); -$expX = random(3,9,1); +$expX = random(3,9,1); do {$expX2 = random(5,7,1); } until ($expX2 != $expX); $numerator = Formula("$coeffX*x^{$expX}"); @@ -69,7 +69,7 @@ Condense the following expression to a single logarithm using the properties of [`\ln{\left( [$coeffX]x^[$expX]\right)}- \ln{\left( [$coeffX2]x^[$expX2]\right)}`] - [___________________________]{$ans}[@ AnswerFormatHelp("formulas") @]* + [___________________________]{$ans}[@ helpLink("formulas") @]* [% [$numerator]; [$denominator]; diff --git a/Contrib/CCCS/CollegeAlgebra/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_23.pg b/Contrib/CCCS/CollegeAlgebra/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_23.pg index 815d09cf78..93ccbebdd9 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_23.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_23.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserFunction.pl" @@ -56,7 +56,7 @@ Condense the left-hand side into a single logarithm. Then solve the resulting >>[`\log(x)-\frac{1}{[$b]}\log(y)+[$a]\log(z)=\log(A)`] << >>[`A=`] [_______________]{$ans} - [@ AnswerFormatHelp("formulas") @]*<< + [@ helpLink("formulas") @]*<< END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_27.pg b/Contrib/CCCS/CollegeAlgebra/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_27.pg index cdf5c3c468..ed8ce93225 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_27.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_27.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,10 +48,10 @@ Context()->variables->add(a => 'Real', b => 'Real'); BEGIN_PGML Suppose [` \log_{[$p]}([$m])=a`] and [` \log_{[$p]}([$n])=b`]. Use the change of base formula along with properties of logarithms to rewrite the following in terms of [`a`] and [`b`]. -+ [`\log_{[$n]}([$p])=`] [_______________]{"1/b"} [@ AnswerFormatHelp("formulas") @]* ++ [`\log_{[$n]}([$p])=`] [_______________]{"1/b"} [@ helpLink("formulas") @]* + ++ [`\log_{[$n]}\left(\frac{[$m]}{[$n]}\right)=`] [_______________]{"a/b-1"} [@ helpLink("formulas") @]* -+ [`\log_{[$n]}\left(\frac{[$m]}{[$n]}\right)=`] [_______________]{"a/b-1"} [@ AnswerFormatHelp("formulas") @]* - END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_29.pg b/Contrib/CCCS/CollegeAlgebra/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_29.pg index a9c17b9f01..a2ee38b353 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_29.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_29.pg @@ -2,7 +2,7 @@ ## College Algebra ## ENDDESCRIPTION - + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Graphs) @@ -12,7 +12,7 @@ ## MO(1) ## KEYWORDS('college algebra') - + ########################### # Initialization @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", diff --git a/Contrib/CCCS/CollegeAlgebra/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_31.pg b/Contrib/CCCS/CollegeAlgebra/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_31.pg index 1fd57bff0a..bfd047ba48 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_31.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_31.pg @@ -1,11 +1,11 @@ -#### This problem is incomplete +#### This problem is incomplete ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Properties of logarithms) @@ -15,18 +15,18 @@ ## MO(1) ## KEYWORDS('college algebra') - + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -34,10 +34,10 @@ loadMacros( "contextLimitedPoint.pl", "contextFraction.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -60,7 +60,7 @@ $ans = Formula("$const1+(1/$const2)"); ########################### # Main text - + BEGIN_PGML Use properties of logarithms to evaluate without using a calculator. @@ -71,14 +71,14 @@ Use properties of logarithms to evaluate without using a calculator. END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/CollegeAlgebra/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_9.pg b/Contrib/CCCS/CollegeAlgebra/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_9.pg index 5825c29626..1b59c6a951 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_9.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_9.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -40,8 +40,8 @@ $a=non_zero_random(2,9,1); Context()->variables->add(y => 'Real'); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -49,9 +49,9 @@ TeX => # Main text BEGIN_PGML -Condense the left-hand side into a single logarithm. +Condense the left-hand side into a single logarithm. -[`\log([$a])+\log(x)+\log(y)`] = [`\log(`][_______________]{"$a*xy"}[`)`] [@ AnswerFormatHelp("formulas") @]* +[`\log([$a])+\log(x)+\log(y)`] = [`\log(`][_______________]{"$a*xy"}[`)`] [@ helpLink("formulas") @]* diff --git a/Contrib/CCCS/CollegeAlgebra/6.5/VideoI.pg b/Contrib/CCCS/CollegeAlgebra/6.5/VideoI.pg index 57668a1c13..a5bc1e4d5b 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.5/VideoI.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.5/VideoI.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## KEYWORDS() @@ -25,7 +25,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -38,8 +38,8 @@ TEXT(beginproblem()); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -51,12 +51,12 @@ BEGIN_PGML >> [$video]* << ->> YouTube video of Craig Faulhaber, internet mathemagician, embedded using an iframe. << +>> YouTube video of Craig Faulhaber, internet mathemagician, embedded using an iframe. << >> If the video does not work, [@ htmlLink("https://youtu.be/nUnOs9h3hlE?list=PLIOf9vAXVvjBi7zgxRihNg0OcW74-svu6","click here to go to YouTube directly.") @]* << #Video Quiz: -Evaluate [` \log_{2}(64)=`] [_______________]{6} [@ AnswerFormatHelp("formulas") @]* +Evaluate [` \log_{2}(64)=`] [_______________]{6} [@ helpLink("formulas") @]* diff --git a/Contrib/CCCS/CollegeAlgebra/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_13.pg b/Contrib/CCCS/CollegeAlgebra/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_13.pg index a4130b8b6e..3eae72169f 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_13.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_13.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## College Algebra, solve an exponential equation +## College Algebra, solve an exponential equation ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -52,13 +52,13 @@ Context()->strings->add( BEGIN_PGML -Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". +Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". If you find more than one solution, enter the answers as a comma-separated list. -[` e^{r + {[$u]}} - {[$v]} = - {[$w]} `] +[` e^{r + {[$u]}} - {[$v]} = - {[$w]} `] -[_______________]{$x1} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$x1} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_15.pg b/Contrib/CCCS/CollegeAlgebra/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_15.pg index 1dcbbcc0c1..de381af22f 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_15.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_15.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## College Algebra, solve an exponential equation +## College Algebra, solve an exponential equation ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -62,13 +62,13 @@ Context()->strings->add( BEGIN_PGML -Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". +Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". If you find more than one solution, enter the answers as a comma-separated list. -[` -{[$v]} \cdot {[$b]}^{\, p + {[$u]}} - {[$w]} = -{[$x]} `] +[` -{[$v]} \cdot {[$b]}^{\, p + {[$u]}} - {[$w]} = -{[$x]} `] -[_______________]{$x1} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$x1} [@ helpLink("numbers") @]* END_PGML ########################### diff --git a/Contrib/CCCS/CollegeAlgebra/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_17.pg b/Contrib/CCCS/CollegeAlgebra/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_17.pg index c4ee33d145..a828c0fc71 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_17.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_17.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -34,9 +34,9 @@ $showPartialCorrectAnswers = 1; # Setup # Parameters -$u = random(2,9); -$v = random(1,9); -$w = random(36,54); +$u = random(2,9); +$v = random(1,9); +$w = random(36,54); # Solution if (($w - $v) <= 0) { @@ -58,13 +58,13 @@ Context()->strings->add( BEGIN_PGML -Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". +Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". If there is more than one solution, enter the answers as a comma-separated list. -[` e^{\, -{[$u]} k} + {[$v]} = {[$w]} `] +[` e^{\, -{[$u]} k} + {[$v]} = {[$w]} `] -[_______________]{$x1} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$x1} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_19.pg b/Contrib/CCCS/CollegeAlgebra/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_19.pg index 93cfa8d369..ddcad74b8e 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_19.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_19.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -35,9 +35,9 @@ $showPartialCorrectAnswers = 1; # Setup # Parameters -$u = random(6,9); -$v = random(2,9); -$w = random(1,9); +$u = random(6,9); +$v = random(2,9); +$w = random(1,9); $x = random(1,10); $y = random(66,84); @@ -61,13 +61,13 @@ Context()->strings->add( BEGIN_PGML -Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". +Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". If there is more than one solution, enter the answers as a comma-separated list. -[` -{[$u]} e^{\, {[$v]} k + {[$w]}} + {[$x]} = -{[$y]} `] +[` -{[$u]} e^{\, {[$v]} k + {[$w]}} + {[$x]} = -{[$y]} `] -[_______________]{$x1} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$x1} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_21.pg b/Contrib/CCCS/CollegeAlgebra/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_21.pg index da5c4e9c40..f901e86bc7 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_21.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_21.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -36,10 +36,10 @@ $showPartialCorrectAnswers = 1; # Parameters -$u = random(2,10); +$u = random(2,10); do { $v = random(2, 10); } until ($v != $u); -$w = random(1,5); +$w = random(1,5); $x = 2; Context()->noreduce('(-x)-y','(-x)+y'); @@ -61,26 +61,26 @@ if($u > $v) { if($w == 1) { BEGIN_PGML -Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". +Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". If there is more than one solution, enter the answers as a comma-separated list. -[` [$f] = 0 `] +[` [$f] = 0 `] -[_______________]{$x1} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$x1} [@ helpLink("numbers") @]* END_PGML } else { BEGIN_PGML -Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". +Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". If you find more than one solution, enter your answer as a comma-separated list. -[` e^{ {[$x *$w]} x} - {[$u - $v]} e^{ {[$w]} x} - {[$u * $v]} = 0 `] +[` e^{ {[$x *$w]} x} - {[$u - $v]} e^{ {[$w]} x} - {[$u * $v]} = 0 `] -[_______________]{$x1} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$x1} [@ helpLink("numbers") @]* END_PGML } @@ -89,26 +89,26 @@ else { if (w == 1) { BEGIN_PGML -Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". +Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". If you find more than one solution, enter your answer as a comma-separated list. -[` e^{2x} + {[$v - $u]} e^x - {[$u * $v]} = 0 `] +[` e^{2x} + {[$v - $u]} e^x - {[$u * $v]} = 0 `] -[_______________]{$x1} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$x1} [@ helpLink("numbers") @]* END_PGML } else { BEGIN_PGML -Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". +Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". If you find more than one solution, enter your answer as a comma-separated list. -[` e^{ {[$x *$w]} x} + {[$v - $u]} e^{ {[$w]} x} - {[$u * $v]} = 0 `] +[` e^{ {[$x *$w]} x} + {[$v - $u]} e^{ {[$w]} x} - {[$u * $v]} = 0 `] -[_______________]{$x1} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$x1} [@ helpLink("numbers") @]* END_PGML } diff --git a/Contrib/CCCS/CollegeAlgebra/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_23.pg b/Contrib/CCCS/CollegeAlgebra/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_23.pg index c95a70305d..92d1e0c01c 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_23.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_23.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## College Algebra, work with an exponential equation +## College Algebra, work with an exponential equation ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -35,9 +35,9 @@ $showPartialCorrectAnswers = 1; # Setup # Parameters -$u = random(8,12); -$v = random(4,8); -$w = random(1,3); +$u = random(8,12); +$v = random(4,8); +$w = random(1,3); $x = random(1,4); $y = random(7,13); @@ -61,13 +61,13 @@ Context()->strings->add( BEGIN_PGML -Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". +Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". If there is more than one solution, enter the answers as a comma-separated list. -[` {[$u]} e^{\, {[$v]} k + {[$w]}} + {[$x]} = {[$y]} `] +[` {[$u]} e^{\, {[$v]} k + {[$w]}} + {[$x]} = {[$y]} `] -[_______________]{$x1} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$x1} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_25.pg b/Contrib/CCCS/CollegeAlgebra/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_25.pg index fa72047bdf..f502eb34bb 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_25.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_25.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -35,9 +35,9 @@ $showPartialCorrectAnswers = 1; # Setup # Parameters -$u = random(8,12); -$v = random(4,8); -$w = random(1,3); +$u = random(8,12); +$v = random(4,8); +$w = random(1,3); $x = random(1,4); $y = random(71,96); @@ -61,13 +61,13 @@ Context()->strings->add( BEGIN_PGML -Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". +Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". If there is more than one solution, enter the answers as a comma-separated list. -[` {[$u]} e^{\, -{[$v]} k - {[$w]}} - {[$x]} = -{[$y]} `] +[` {[$u]} e^{\, -{[$v]} k - {[$w]}} - {[$x]} = -{[$y]} `] -[_______________]{$x1} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$x1} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_29.pg b/Contrib/CCCS/CollegeAlgebra/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_29.pg index 1b5d683421..d331def13e 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_29.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_29.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -72,23 +72,23 @@ $multians = MultiAnswer($ans1, $ans2)->with( } ); - + ########################### # Main text BEGIN_PGML -Rewrite the following equation in exponential form. +Rewrite the following equation in exponential form. + +[``\log_[$a]\left(\frac{1}{[$d]}\right)=[$b] ``] -[``\log_[$a]\left(\frac{1}{[$d]}\right)=[$b] ``] - - [____]{$multians} [`=`] [____]{$multians} [@ AnswerFormatHelp("numbers") @]* + [____]{$multians} [`=`] [____]{$multians} [@ helpLink("numbers") @]* END_PGML - - + + ############################ # Solution diff --git a/Contrib/CCCS/CollegeAlgebra/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_39.pg b/Contrib/CCCS/CollegeAlgebra/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_39.pg index 92952d8e1b..0cb00900c6 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_39.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_39.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -37,8 +37,8 @@ $showPartialCorrectAnswers = 1; # Parameters $a = random(1,3); # different variations of problem -$u = random(2,5); -$v = random(6,10); +$u = random(2,5); +$v = random(6,10); $w = random(1,7); # Solution @@ -56,7 +56,7 @@ else{ $x1 = $v + $u; if (($x1^2 - $v*$x1 + $w) <= 0) { $x1 = List(0); - } + } else { $x1 = List(0, $x1); } @@ -73,27 +73,27 @@ Context()->strings->add( if ($a == 1) { BEGIN_PGML -Give all solutions to the equation, or state that there are no solutions by entering "NONE". +Give all solutions to the equation, or state that there are no solutions by entering "NONE". If there is more than one solution, enter the answers as a comma-separated list. -[` \ln \left( - {[$u]} x \right) = \ln \left( x^2 - {[$v]} x \right) `] +[` \ln \left( - {[$u]} x \right) = \ln \left( x^2 - {[$v]} x \right) `] -[`x =`] [_______________]{$x1} [@ AnswerFormatHelp("numbers") @]* +[`x =`] [_______________]{$x1} [@ helpLink("numbers") @]* END_PGML } elsif ($a == 2) { BEGIN_PGML -Give all solutions to the equation, or state that there are no solutions by entering "NONE". +Give all solutions to the equation, or state that there are no solutions by entering "NONE". If you find more than one solution, enter your answer as a comma-separated list. -[` \ln \left( {[$u]} x \right) = \ln \left( x^2 - {[$v]} x \right) `] +[` \ln \left( {[$u]} x \right) = \ln \left( x^2 - {[$v]} x \right) `] -[`x =`] [_______________]{$x1} [@ AnswerFormatHelp("numbers") @]* +[`x =`] [_______________]{$x1} [@ helpLink("numbers") @]* END_PGML } @@ -104,9 +104,9 @@ Give all solutions to the equation, or state that there are no solutions by ente If you find more than one solution, enter your answer as a comma-separated list. -[` \ln \left( {[$u]} x + {[$w]} \right) = \ln \left( x^2 - {[$v]} x + {[$w]} \right) `] +[` \ln \left( {[$u]} x + {[$w]} \right) = \ln \left( x^2 - {[$v]} x + {[$w]} \right) `] -[`x =`] [_______________]{$x1} [@ AnswerFormatHelp("numbers") @]* +[`x =`] [_______________]{$x1} [@ helpLink("numbers") @]* END_PGML } diff --git a/Contrib/CCCS/CollegeAlgebra/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_4.pg b/Contrib/CCCS/CollegeAlgebra/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_4.pg index 856a248342..fd0a861fc6 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_4.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_4.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -41,8 +41,8 @@ $d=random(5,9,1); $ans=($c-$b)/(1+$d); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -53,7 +53,7 @@ BEGIN_PGML Use like bases to solve the exponential equation [`[$a]^{[$c]-[$d]x} = [$a]^{[$b]+x}`]. -[`x=`] [_____________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_____________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CollegeAlgebra/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_41.pg b/Contrib/CCCS/CollegeAlgebra/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_41.pg index 0ff3e26ac9..dd1323ed45 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_41.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_41.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -44,8 +44,8 @@ $a = random(1,2); # Parameters -$u = random(2,10); -$v = random(45,55); +$u = random(2,10); +$v = random(45,55); # Solution if ($a == 1) { @@ -61,27 +61,27 @@ else { if ($a == 1) { BEGIN_PGML -Give all solutions to the equation, or state that there are no solutions by entering "NONE". +Give all solutions to the equation, or state that there are no solutions by entering "NONE". If you find more than one solution, enter your answer as a comma-separated list. -[` \ln \left( x - {[$u]} \right) - \ln \left( x \right) = \ln \left( {[$v]} \right) `] +[` \ln \left( x - {[$u]} \right) - \ln \left( x \right) = \ln \left( {[$v]} \right) `] -[`x =`] [_______________]{$x1} [@ AnswerFormatHelp("numbers") @]* +[`x =`] [_______________]{$x1} [@ helpLink("numbers") @]* END_PGML } else { BEGIN_PGML -Give all solutions to the equation, or state that there are no solutions by entering "NONE". +Give all solutions to the equation, or state that there are no solutions by entering "NONE". If there is more than one solution, enter the answers as a comma-separated list. -[` \ln \left( x + {[$u]} \right) - \ln \left( x \right) = \ln \left( {[$v]} \right) `] +[` \ln \left( x + {[$u]} \right) - \ln \left( x \right) = \ln \left( {[$v]} \right) `] -[`x =`] [_______________]{$x1} [@ AnswerFormatHelp("numbers") @]* +[`x =`] [_______________]{$x1} [@ helpLink("numbers") @]* END_PGML } diff --git a/Contrib/CCCS/CollegeAlgebra/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_43.pg b/Contrib/CCCS/CollegeAlgebra/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_43.pg index 2424edb287..a6e9217e01 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_43.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_43.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -63,14 +63,14 @@ else { BEGIN_PGML -Give all solutions to the equation, or state that there are no solutions by entering "NONE". +Give all solutions to the equation, or state that there are no solutions by entering "NONE". If there is more than one solution, enter the answers as a comma-separated list. [`` \ln \left( x^2 - {[$x]} \right) + \ln \left( {[$t]} \right) = \ln \left( {[$k]} \right) ``] -[`x=`] [_____________________]{$x1} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_____________________]{$x1} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_47.pg b/Contrib/CCCS/CollegeAlgebra/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_47.pg index da5689ffac..ede31c7178 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_47.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_47.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -68,14 +68,14 @@ Context()->strings->add( BEGIN_PGML -Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". +Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". If there is more than one solution, enter the answers as a comma-separated list. [`` \ln \left( {[$u]} \right) + \ln \left( {[$v]} - {[$w]} x^2 \right) = \ln \left( {[$C]} \right) ``] -[`x =`] [____________________]{$x1} [@ AnswerFormatHelp("numbers") @]* +[`x =`] [____________________]{$x1} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_49.pg b/Contrib/CCCS/CollegeAlgebra/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_49.pg index e20639a39b..e4c94a888d 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_49.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_49.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -66,14 +66,14 @@ if ($u - $v * $x1 <= 0) { BEGIN_PGML -Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". +Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". If there is more than one solution, enter the answers as a comma-separated list. [`` \ln \left( {[$t]} \right) - \ln \left( {[$u]} - {[$v]} x \right) = \ln \left( {[$w]} \right) ``] -[`x =`] [____________________]{$x1} [@ AnswerFormatHelp("numbers") @]* +[`x =`] [____________________]{$x1} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_5.pg b/Contrib/CCCS/CollegeAlgebra/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_5.pg index 179e35908a..3043c0fb5d 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_5.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_5.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -41,8 +41,8 @@ $d=random(2,5,1); $ans=(2)/($d); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -54,7 +54,7 @@ BEGIN_PGML Use like bases to solve the exponential equation [`[$b] \cdot [$a]^{[$d]x} = [$c]`]. -[`x=`] [________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [________]{$ans} [@ helpLink("numbers") @]* [$video]* diff --git a/Contrib/CCCS/CollegeAlgebra/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_57.pg b/Contrib/CCCS/CollegeAlgebra/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_57.pg index c419914caa..f5b5cfb53f 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_57.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_57.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -58,14 +58,14 @@ $x1 = (exp($v - $w) + $u) / $t; BEGIN_PGML -Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". +Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". If there is more than one solution, enter the answers as a comma-separated list. [`` \ln \left( {[$t]} x - {[$u]} \right) - {[$v]} = - {[$w]} ``] -[`x =`] [____________________]{$x1} [@ AnswerFormatHelp("numbers") @]* +[`x =`] [____________________]{$x1} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_67.pg b/Contrib/CCCS/CollegeAlgebra/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_67.pg index 3e512632c6..c47e135c55 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_67.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_67.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -59,13 +59,13 @@ Let [`P(t)`] be the population of a certain city in Colorado. Suppose that this [``P(t) = {[$u]} \, e^{ {[$v]} t},``] -where [`t`] is time in years. In how many years will the city's population reach [`{[$population]} {,} 000`]? +where [`t`] is time in years. In how many years will the city's population reach [`{[$population]} {,} 000`]? Round your answer to the nearest whole number. [_____________________]{$x1} years -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_8.pg b/Contrib/CCCS/CollegeAlgebra/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_8.pg index d336c9dcf7..aea30925c6 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_8.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_8.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -46,7 +46,7 @@ BEGIN_PGML Use like bases to solve the exponential equation [`[$c] \cdot [$a]^{[$d]x+[$d]} = [$b]`]. -[`x=`] [________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_11.pg b/Contrib/CCCS/CollegeAlgebra/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_11.pg index 6ce0a9e368..8c6cbc50e8 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_11.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_11.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -44,7 +44,7 @@ BEGIN_PGML Use logarithms to solve [` [$b]^{x-[$a]}=1 `]. If there is more than one solution, enter them as a comma separated list. If there is no solution, enter "NONE". -[`x=`] [________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_12.pg b/Contrib/CCCS/CollegeAlgebra/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_12.pg index bd48e04955..2527e330b8 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_12.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_12.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -39,8 +39,8 @@ do { $c = random(2,6,1); } until ( $c != $a ) and ($c != $b); $ans=List(" 1/$c*ln($b/$a) "); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -53,10 +53,10 @@ BEGIN_PGML Use logarithms to solve [` [$a] e^{[$c]*x}=[$b] `]. If there is more than one solution, enter them as a comma separated list. If there is no solution, enter "NONE". -[`x=`] [________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [________]{$ans} [@ helpLink("numbers") @]* -[$video]* +[$video]* END_PGML BEGIN_TEXT diff --git a/Contrib/CCCS/CollegeAlgebra/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_31.pg b/Contrib/CCCS/CollegeAlgebra/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_31.pg index 434595dd5f..b87edce2ae 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_31.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_31.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -39,8 +39,8 @@ $c = 2*$a; $ans=List(" $b^2 "); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -52,7 +52,7 @@ BEGIN_PGML Solve [` [$a] \log_{[$b]}(x)=[$c] `]. If there is more than one solution, enter them as a comma separated list. If there is no solution, enter "NONE". -[`x=`] [________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [________]{$ans} [@ helpLink("numbers") @]* [$video]* diff --git a/Contrib/CCCS/CollegeAlgebra/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_33.pg b/Contrib/CCCS/CollegeAlgebra/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_33.pg index d7e53cb5e2..08ab8b4cbd 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_33.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_33.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -46,7 +46,7 @@ BEGIN_PGML Solve [` [$a] + \log_{[$b]}([$c]*x)=[$d] `]. If there is more than one solution, enter them as a comma separated list. If there is no solution, enter "NONE". -[`x=`] [________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_37.pg b/Contrib/CCCS/CollegeAlgebra/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_37.pg index b315761535..a21892c5ac 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_37.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_37.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -47,7 +47,7 @@ BEGIN_PGML Solve [` \log_{[$b]}([$a]*x-[$c])= \log_{[$b]}([$d]-[$e]*x) `]. If there is more than one solution, enter them as a comma separated list. If there is no solution, enter "NONE". -[`x=`] [________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_45.pg b/Contrib/CCCS/CollegeAlgebra/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_45.pg index caf05c4382..bfd90e2dd7 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_45.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_45.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -40,7 +40,7 @@ BEGIN_PGML Solve [` \ln(x)+\ln(x-3)=\ln(7x) `]. If there is more than one solution, enter them as a comma separated list. If there is no solution, enter "NONE". -[`x=`] [________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_7.pg b/Contrib/CCCS/CollegeAlgebra/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_7.pg index 4072eaf5c3..a06571e77f 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_7.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_7.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -46,7 +46,7 @@ BEGIN_PGML Use like bases to solve the exponential equation [`\left(\frac{1}{[$b]}\right)^{[$d]*x} \cdot [$c]=[$a]^{[$e]}`]. -[`x=`] [________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/6.6/VideoJ.pg b/Contrib/CCCS/CollegeAlgebra/6.6/VideoJ.pg index ae2b377d38..749e472bc9 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.6/VideoJ.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.6/VideoJ.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## KEYWORDS() @@ -25,7 +25,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -38,8 +38,8 @@ TEXT(beginproblem()); $ans=List("2,5"); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -51,14 +51,14 @@ BEGIN_PGML >> [$video]* << ->> YouTube video of Adam Forland, internet mathemagician, embedded using an iframe. << +>> YouTube video of Adam Forland, internet mathemagician, embedded using an iframe. << >> If the video does not work, [@ htmlLink("https://youtu.be/VqYBzt0pkPo","click here to go to YouTube directly.") @]* << #Video Quiz: Solve [` \ln(10)-\ln(7-x)=\ln(x)`]. If you have more than one solution, enter them as a comma separated list. -[`x = `] [_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`x = `] [_______________]{$ans} [@ helpLink("formulas") @]* diff --git a/Contrib/CCCS/CollegeAlgebra/6.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_7_18.pg b/Contrib/CCCS/CollegeAlgebra/6.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_7_18.pg index 2906034155..e1455d2a6c 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_7_18.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_7_18.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "scaffold.pl", @@ -67,13 +67,13 @@ Context("LimitedNumeric"); # Main text Scaffold::Begin(); - + BEGIN_PGML The population of a fish farm is modeled by the equation >>[`` P(t) = \dfrac{ {[$u]} }{ {[$v]} + {[$w]} e^{- {[$x]} t}}, ``]<< -where [`t`] is time in years. +where [`t`] is time in years. END_PGML @@ -84,7 +84,7 @@ What is the size of the initial population? [_______________]{$initial_population} fish -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* END_PGML @@ -93,7 +93,7 @@ Section::End(); Section::Begin("Part 2"); BEGIN_PGML -What is the doubling time for this population? +What is the doubling time for this population? Round your answer to the nearest tenth. @@ -102,11 +102,11 @@ Round your answer to the nearest tenth. END_PGML Section::End(); - + Section::Begin("Part 3"); BEGIN_PGML -What is the size of the population after [`{[$time]}`] years? +What is the size of the population after [`{[$time]}`] years? Round to the nearest whole number. @@ -115,11 +115,11 @@ Round to the nearest whole number. END_PGML Section::End(); - + Section::Begin("Part 4"); BEGIN_PGML -How long will it take until the population contains [`{[$size]}`] individuals? +How long will it take until the population contains [`{[$size]}`] individuals? Round to the nearest tenth. @@ -128,11 +128,11 @@ Round to the nearest tenth. END_PGML Section::End(); - + Section::Begin("Part 5"); BEGIN_PGML -Make a graph of this function, and then use your graph to estimate the carrying capacity of the pond. +Make a graph of this function, and then use your graph to estimate the carrying capacity of the pond. Your answer should be a whole number. @@ -141,7 +141,7 @@ Your answer should be a whole number. END_PGML Section::End(); - + Scaffold::End(); ############################ diff --git a/Contrib/CCCS/CollegeAlgebra/6.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_7_24.pg b/Contrib/CCCS/CollegeAlgebra/6.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_7_24.pg index e1bd4ad33d..4411508420 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_7_24.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_7_24.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "scaffold.pl", @@ -54,23 +54,23 @@ $ans2 = round($ans2 * 10)/10.0; # Main text Scaffold::Begin(); - + Section::Begin("Part 1"); BEGIN_PGML -A certain radioactive isotope has a half-life of [`{[$hl]}`] minutes. If we initially have +A certain radioactive isotope has a half-life of [`{[$hl]}`] minutes. If we initially have [`{[$w]}`] grams of this substance, how many half-lives will pass until [`{[$u]}`] grams remain? Your answer should be a whole number. - [_______________]{$ans1} + [_______________]{$ans1} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* END_PGML BEGIN_PGML_HINT Each time the initial amount cuts in half, one half-life has passed. -For example, if the initial amount was 24 grams, and we wanted to know how many half-lives will pass to get to 3 grams, we can notice that +For example, if the initial amount was 24 grams, and we wanted to know how many half-lives will pass to get to 3 grams, we can notice that [`24/2 = 12`] (one half-life has passed) @@ -91,7 +91,7 @@ What length of time is needed for this decay process to occur? Round your answer [_______________]{$ans2} minutes -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* END_PGML @@ -104,7 +104,7 @@ If we have an exponential decay model, then the half life is [`t = -\frac{\ln(2) END_PGML_HINT Section::End(); - + Scaffold::End(); ############################ diff --git a/Contrib/CCCS/CollegeAlgebra/6.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_7_29.pg b/Contrib/CCCS/CollegeAlgebra/6.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_7_29.pg index 5e18887bbe..b035d7068c 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_7_29.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_7_29.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "scaffold.pl", @@ -71,9 +71,9 @@ Section::Begin("Part 1"); BEGIN_PGML -Write an continuous exponential model, [`A(t)`], for the amount of the drug in the patient's system after [`t`] hours have passed. +Write an continuous exponential model, [`A(t)`], for the amount of the drug in the patient's system after [`t`] hours have passed. -[`A(t)=`] [_______________]{$f} [@ AnswerFormatHelp("formula") @]* +[`A(t)=`] [_______________]{$f} [@ helpLink("formula") @]* END_PGML @@ -89,7 +89,7 @@ Use your formula to find the amount of the drug remaining after [`{[$w]}`] hours [_______________]{$x1} mg -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* END_PGML @@ -106,7 +106,7 @@ What is the half-life of this drug? Round your answer to the nearest whole numb END_PGML Section::End(); - + Scaffold::End(); ############################ diff --git a/Contrib/CCCS/CollegeAlgebra/6.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_7_39-40.pg b/Contrib/CCCS/CollegeAlgebra/6.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_7_39-40.pg index 1b49740dd3..7cf543e7f0 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_7_39-40.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_7_39-40.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "scaffold.pl", @@ -57,7 +57,7 @@ Scaffold::Begin(); BEGIN_PGML -A biologist recorded a count of [$a] bacteria present in a culture after 5 minutes and [$b] bacteria present after 20 minutes. +A biologist recorded a count of [$a] bacteria present in a culture after 5 minutes and [$b] bacteria present after 20 minutes. END_PGML @@ -67,7 +67,7 @@ BEGIN_PGML To the nearest whole number, what was the initial population in the culture? -[`P(0)=`] [_______________]{$P0} [@ AnswerFormatHelp("numbers") @]* +[`P(0)=`] [_______________]{$P0} [@ helpLink("numbers") @]* END_PGML @@ -81,7 +81,7 @@ BEGIN_PGML Write the exponential equation representing this scenario modeled as a continuous growth model. - [`P(t) = `][_______________]{$f} [@ AnswerFormatHelp("formulas") @]* + [`P(t) = `][_______________]{$f} [@ helpLink("formulas") @]* END_PGML @@ -93,12 +93,12 @@ BEGIN_PGML To the nearest minute, how long did it take the bacteria to double its initial population? - [_______________]{$t2} minutes [@ AnswerFormatHelp("numbers") @]* + [_______________]{$t2} minutes [@ helpLink("numbers") @]* END_PGML Section::End(); - + Scaffold::End(); ############################ diff --git a/Contrib/CCCS/CollegeAlgebra/6.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_7_51.pg b/Contrib/CCCS/CollegeAlgebra/6.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_7_51.pg index 0a1c869b80..1e8d2396c8 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_7_51.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_7_51.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "scaffold.pl", @@ -60,13 +60,13 @@ Context("LimitedNumeric"); # Main text Scaffold::Begin(); - + BEGIN_PGML Let [`N(t)`] be the number of people at a school who have heard a certain rumor. Suppose that this can be modeled by the function [`` N(t) = \dfrac{ {[$u]} }{ {[$v]} + {[$w]} e^{- {[$x]} t}}, ``] -where [`t`] is time in days. +where [`t`] is time in days. END_PGML @@ -80,7 +80,7 @@ How many people have heard the rumor after [`{[$time]}`] days? Round your answe END_PGML Section::End(); - + Section::Begin("Part 2"); BEGIN_PGML @@ -91,7 +91,7 @@ What number of people will have heard the rumor in the long run? Round your ans END_PGML Section::End(); - + Scaffold::End(); ############################ diff --git a/Contrib/CCCS/CollegeAlgebra/6.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_7_6.pg b/Contrib/CCCS/CollegeAlgebra/6.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_7_6.pg index f5130b9a62..d611593d74 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_7_6.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_7_6.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -51,9 +51,9 @@ Context("LimitedNumeric"); BEGIN_PGML The temperature of an object in degrees Fahrenheit after [`t`] minutes is represented by the equation [`` T \left( t \right) = {[$u]} e^{ -{[$v]} t } + {[$w]} ``]. What is the temperature of the metal after [`1`] hour and [` {[$minutes]} `] minutes? Round the answer to the nearest whole number. -[_______________]{$x1} [` {}^{\circ}F `] +[_______________]{$x1} [` {}^{\circ}F `] -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* END_PGML ############################ diff --git a/Contrib/CCCS/CollegeAlgebra/6.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_7_sup1.pg b/Contrib/CCCS/CollegeAlgebra/6.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_7_sup1.pg index 8753b83f5f..7c90aef049 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_7_sup1.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_7_sup1.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "scaffold.pl", @@ -54,9 +54,9 @@ BEGIN_PGML The population of a certain bacteria has an initial population of [$P0] cells and grows at a continuous growth rate of [`[$kp]%`] per minute. Write a continuous exponential model for this scenario and find the time, to the nearest whole minute, it takes for the bacteria to double its population. -[`P(t) = `][_______________]{$f} [@ AnswerFormatHelp("formulas") @]* +[`P(t) = `][_______________]{$f} [@ helpLink("formulas") @]* -It takes [_______________]{$t2} minutes for the bacteria to double its population. [@ AnswerFormatHelp("numbers") @]* +It takes [_______________]{$t2} minutes for the bacteria to double its population. [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/6.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_7_sup2.pg b/Contrib/CCCS/CollegeAlgebra/6.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_7_sup2.pg index 1540ef5388..f0a25f592b 100644 --- a/Contrib/CCCS/CollegeAlgebra/6.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_7_sup2.pg +++ b/Contrib/CCCS/CollegeAlgebra/6.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_7_sup2.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "scaffold.pl", @@ -70,7 +70,7 @@ BEGIN_PGML Write the exponential function representing this scenario modeled as a continuous growth model. - [`P(t) = `][_______________]{$f} [@ AnswerFormatHelp("formulas") @]* + [`P(t) = `][_______________]{$f} [@ helpLink("formulas") @]* END_PGML ############################ @@ -86,9 +86,9 @@ where If [`r>0`], then the formula represents continuous growth. If [`r<0`] then the formula represents continuous decay. -For this problem, you are given the initial population of [`[$P0]`] and the total population after 5 years. +For this problem, you are given the initial population of [`[$P0]`] and the total population after 5 years. -With this information, you can set up the continuous growth model as: +With this information, you can set up the continuous growth model as: [`` P(t) = [$P0]e^{rt}``] @@ -110,12 +110,12 @@ BEGIN_PGML How long will it take for the city to reach a population of [`[$c]`]? Round to the nearest whole year. - [_______________]{$time} years. [@ AnswerFormatHelp("numbers") @]* + [_______________]{$time} years. [@ helpLink("numbers") @]* END_PGML Section::End(); - + Scaffold::End(); ############################ diff --git a/Contrib/CCCS/CollegeAlgebra/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_197.pg b/Contrib/CCCS/CollegeAlgebra/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_197.pg index 571b642f83..c6f5139a0c 100644 --- a/Contrib/CCCS/CollegeAlgebra/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_197.pg +++ b/Contrib/CCCS/CollegeAlgebra/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_197.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "parserPopUp.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,14 +48,14 @@ if ($b-$a*$a == 0) {$ans1 = NONE; } elsif ( $ans==($b*$a)/($b-$a*$a)) {$ans1=($b*$a)/($b-$a*$a); -} +} $ans2=($ans1); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -69,7 +69,7 @@ Solve the rational equation. If there is more than one correct answer, enter a c [`\dfrac{1}{a}+\dfrac{[$a]}{[$b]}=\dfrac{1}{[$a]}`] -[`a =`] [_________________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +[`a =`] [_________________]{$ans2} [@ helpLink("numbers") @]* [$video]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_199.pg b/Contrib/CCCS/CollegeAlgebra/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_199.pg index cd30b1f9c3..9aa81b3995 100644 --- a/Contrib/CCCS/CollegeAlgebra/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_199.pg +++ b/Contrib/CCCS/CollegeAlgebra/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_199.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -47,7 +47,7 @@ if ($a*$a+$b== 0) {$ans1 = NONE; } elsif ( $ans=($a*$b*$c)/($a*$a+$b)) {$ans1=($a*$b*$c)/($a*$a+$b); -} +} $ans2=($ans1); @@ -59,9 +59,9 @@ BEGIN_PGML Solve the rational equation. If there is more than one correct answer, enter a comma separated list. If there is no answer, enter "NONE". -[`\dfrac{[$a]}{[$b]}+\dfrac{1}{[$a]}=\dfrac{[$c]}{v}`] +[`\dfrac{[$a]}{[$b]}+\dfrac{1}{[$a]}=\dfrac{[$c]}{v}`] -[`v=`] [_________________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +[`v=`] [_________________]{$ans2} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_203.pg b/Contrib/CCCS/CollegeAlgebra/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_203.pg index a021c53ec6..3920ca774a 100644 --- a/Contrib/CCCS/CollegeAlgebra/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_203.pg +++ b/Contrib/CCCS/CollegeAlgebra/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_203.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,7 +51,7 @@ Solve the rational equation. If there is more than one correct answer, enter a 1+[`\dfrac{[$c]}{p}=-\dfrac{[$d]}{p^2}`] -[`p=`] [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`p=`] [_________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_209.pg b/Contrib/CCCS/CollegeAlgebra/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_209.pg index d50abcbe2e..f3589150e8 100644 --- a/Contrib/CCCS/CollegeAlgebra/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_209.pg +++ b/Contrib/CCCS/CollegeAlgebra/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_209.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -45,7 +45,7 @@ $ans=(5-$a*$c-$b*$c)/($a-$b); if ($ans == -$c) {$ans1 = NONE; -} +} elsif ($ans == $c) {$ans1 = NONE; } @@ -56,8 +56,8 @@ elsif ( $ans=(5-$a*$c-$b*$c)/($a-$b)) {$ans1=(5-$a*$c-$b*$c)/($a-$b); $ans2=($ans1); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -67,12 +67,12 @@ TeX => BEGIN_PGML -Solve the rational equation. If there is more than one correct answer, enter a comma separated list. If there is no answer, enter "NONE". +Solve the rational equation. If there is more than one correct answer, enter a comma separated list. If there is no answer, enter "NONE". [`\dfrac{[$a]}{z-[$c]}-\dfrac{[$b]}{z+[$c]}=\dfrac{5}{z^2-[$d]}`] -[`z=`] [_________________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +[`z=`] [_________________]{$ans2} [@ helpLink("numbers") @]* [$video]* diff --git a/Contrib/CCCS/CollegeAlgebra/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_213.pg b/Contrib/CCCS/CollegeAlgebra/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_213.pg index 924f4c00d5..08094b9d3f 100644 --- a/Contrib/CCCS/CollegeAlgebra/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_213.pg +++ b/Contrib/CCCS/CollegeAlgebra/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_213.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,13 +48,13 @@ $g= $b*$c; $ans=($a-$d*$c+$e*$b)/(1-$d+$e); if ($ans == $c) {$ans1 = NONE; -} +} elsif ($ans == $b) {$ans1 = NONE; } elsif ( $ans ==($a-$d*$c+$e*$b)/(1-$d+$e)) {$ans1=($a-$d*$c+$e*$b)/(1-$d+$e); -} +} $ans2=($ans1); @@ -64,14 +64,14 @@ $ans2=($ans1); BEGIN_PGML -Solve the rational equation. If there is more than one correct answer, enter a comma separated list. If there is no answer, enter "NONE". +Solve the rational equation. If there is more than one correct answer, enter a comma separated list. If there is no answer, enter "NONE". [`\dfrac{v-[$a]}{v^2-[$f]*v+[$g]} = \dfrac{[$d]}{v-[$b]} - \dfrac{[$e]}{v-[$c]}`] -[`v=`] [_________________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +[`v=`] [_________________]{$ans2} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_217.pg b/Contrib/CCCS/CollegeAlgebra/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_217.pg index d02df1c72b..bb8dfcd193 100644 --- a/Contrib/CCCS/CollegeAlgebra/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_217.pg +++ b/Contrib/CCCS/CollegeAlgebra/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_217.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -49,11 +49,11 @@ BEGIN_PGML Solve the rational equation. If there is more than one correct answer, enter a comma separated list. If there is no answer, enter "NONE". -[`\dfrac{b+[$a]}{[$a]b}+\dfrac{b}{[$c]}=\dfrac{1}{b}`] +[`\dfrac{b+[$a]}{[$a]b}+\dfrac{b}{[$c]}=\dfrac{1}{b}`] -[`b=`] [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`b=`] [_________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_219.pg b/Contrib/CCCS/CollegeAlgebra/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_219.pg index 7651497a85..1fbbb3eece 100644 --- a/Contrib/CCCS/CollegeAlgebra/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_219.pg +++ b/Contrib/CCCS/CollegeAlgebra/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_219.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -39,35 +39,35 @@ $chooser=random(1,5,1); if ( $chooser ==1) {$eqn=Formula("x/(x+6)-(180)/(x^2-36)-7"); -} +} elsif ( $chooser ==2) {$eqn=Formula("x/(x+3)-(18)/(x^2-9)-4"); -} +} elsif ( $chooser ==3) {$eqn=Formula("x/(x+5)-(50)/(x^2-25)-6"); -} +} elsif ( $chooser ==4) {$eqn=Formula("x/(x+5)+(130)/(x^2-25)-6"); -} +} elsif ( $chooser ==5) {$eqn=Formula("x/(x-4)-(18)/(x^2-16)-3"); -} +} if ( $chooser ==1) {$ans=List(-4,3); -} +} elsif ( $chooser ==2) {$ans=2; -} +} elsif ( $chooser ==3) {$ans=4; -} +} elsif ( $chooser ==4) {$ans=List(7,-8); -} +} elsif ( $chooser ==5) {$ans=List(-3,5); -} +} @@ -82,7 +82,7 @@ Solve the rational equation. If there is more than one correct answer, enter a -[`x =`] [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x =`] [_________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_235.pg b/Contrib/CCCS/CollegeAlgebra/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_235.pg index c7a0c3ac63..a3e697b89b 100644 --- a/Contrib/CCCS/CollegeAlgebra/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_235.pg +++ b/Contrib/CCCS/CollegeAlgebra/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_235.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -43,26 +43,26 @@ Context("Numeric"); $chooser=random(1,2,1); if ( $chooser ==1) {$eqn1=Formula("C/r"); -} +} elsif ( $chooser ==2) {$eqn1=Formula("I/r"); -} +} if ( $chooser ==1) {$eqn2=Formula("2*pi"); -} +} elsif ( $chooser ==2) {$eqn2=Formula("P"); -} +} if ( $chooser ==1) {$ans=Formula("C/(2*pi)"); -} +} elsif ( $chooser ==2) {$ans=Formula("I/P"); -} +} @@ -79,7 +79,7 @@ Solve the following equation for [`r`]. (Variables are case-sensitive). -[`r=`] [_________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`r=`] [_________________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_239.pg b/Contrib/CCCS/CollegeAlgebra/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_239.pg index bf9418d5cc..d0d6943ba2 100644 --- a/Contrib/CCCS/CollegeAlgebra/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_239.pg +++ b/Contrib/CCCS/CollegeAlgebra/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_239.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "PGcourse.pl", @@ -44,45 +44,45 @@ Context("Numeric"); $chooser=random(1,4,1); if ( $chooser ==1) {$eqn1=Formula("c"); -} +} elsif ( $chooser ==2) {$eqn1=Formula("(b+3)/(w-2)"); -} +} elsif ( $chooser ==3) {$eqn1=Formula("(a+3)/(w-1)"); -} +} elsif ( $chooser ==4) {$eqn1=Formula("(a+5)/(2-w)"); -} +} if ( $chooser ==1) {$eqn2=Formula("w/(2-w)"); -} +} elsif ( $chooser ==2) {$eqn2=Formula("a"); -} +} elsif ( $chooser ==3) {$eqn2=("1/2"); -} +} elsif ( $chooser ==4) {$eqn2=("4/3"); -} +} if ( $chooser ==1) {$ans=Formula("2c/(c+1)"); -} +} elsif ( $chooser ==2) {$ans=Formula("(b+3+2a)/a"); -} +} elsif ( $chooser ==3) {$ans=Formula("2a+7"); -} +} elsif ( $chooser ==4) {$ans=Formula("(3a+7)/-4"); -} +} @@ -99,7 +99,7 @@ Solve the following equation for [`w`]. -[`w=`] [_________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`w=`] [_________________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_241.pg b/Contrib/CCCS/CollegeAlgebra/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_241.pg index 264d975763..a11aff7939 100644 --- a/Contrib/CCCS/CollegeAlgebra/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_241.pg +++ b/Contrib/CCCS/CollegeAlgebra/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_241.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "PGcourse.pl", @@ -40,52 +40,52 @@ Context("Numeric"); $chooser=random(1,5,1); if ( $chooser ==1) {$eqn1=Formula("1/p+2/q"); -} +} elsif ( $chooser ==2) {$eqn1=Formula("3/p+1/q"); -} +} elsif ( $chooser ==3) {$eqn1=("2/q+1/5"); -} +} elsif ( $chooser ==4) {$eqn1=("6/q+2/3"); -} +} elsif ( $chooser ==5) {$eqn1=Formula("(q+3)/(p-2)"); -} +} if ( $chooser ==1) {$eqn2=("4"); -} +} elsif ( $chooser ==2) {$eqn2=("2"); -} +} elsif ( $chooser ==3) {$eqn2=Formula("3/p"); -} +} elsif ( $chooser ==4) {$eqn2=Formula("1/p"); -} +} elsif ( $chooser ==5) {$eqn2=("4/5"); -} +} if ( $chooser ==1) {$ans=Formula("q/(4q-2)"); -} +} elsif ( $chooser ==2) {$ans=Formula("3q/(2q-1)"); -} +} elsif ( $chooser ==3) {$ans=Formula("15q/(10+q)"); -} +} elsif ( $chooser ==4) {$ans=Formula("3q/(18+2q)"); -} +} elsif ( $chooser ==5) {$ans=Formula("(5q+23)/4"); -} +} @@ -101,7 +101,7 @@ Solve the following equation for [`p`]. -[`p=`] [_________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`p=`] [_________________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_339.pg b/Contrib/CCCS/CollegeAlgebra/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_339.pg index f85bf4928f..ee6d4852c4 100644 --- a/Contrib/CCCS/CollegeAlgebra/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_339.pg +++ b/Contrib/CCCS/CollegeAlgebra/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_339.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,23 +50,23 @@ else { $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); ########################### # Main text -if ($a == 1) +if ($a == 1) { BEGIN_PGML -Solve the rational inequality. Enter the answer in interval notation. +Solve the rational inequality. Enter the answer in interval notation. [`` \dfrac{x - {[$u]}}{x + {[$v]}} \ge 0 ``] - [_______________________________]{$x1} [@ AnswerFormatHelp("intervals") @]* + [_______________________________]{$x1} [@ helpLink("intervals") @]* [$video]* END_PGML @@ -84,11 +84,11 @@ else { BEGIN_PGML -Solve the rational inequality. Enter the answer in interval notation. +Solve the rational inequality. Enter the answer in interval notation. [`` \dfrac{x + {[$u]}}{x - {[$v]}} \ge 0 ``] - [_______________]{$x1} [@ AnswerFormatHelp("intervals") @]* + [_______________]{$x1} [@ helpLink("intervals") @]* [$video]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_343.pg b/Contrib/CCCS/CollegeAlgebra/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_343.pg index 0da652b659..be191d1c4c 100644 --- a/Contrib/CCCS/CollegeAlgebra/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_343.pg +++ b/Contrib/CCCS/CollegeAlgebra/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_343.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -60,15 +60,15 @@ else { ########################### # Main text -if ($a == 1) +if ($a == 1) { BEGIN_PGML -Solve the rational inequality. Enter the answer in interval notation. +Solve the rational inequality. Enter the answer in interval notation. [`` \dfrac{x - {[$u]}}{x - {[$v]}} > 0 ``] - [_______________________________]{$x1} [@ AnswerFormatHelp("intervals") @]* + [_______________________________]{$x1} [@ helpLink("intervals") @]* END_PGML } @@ -76,11 +76,11 @@ else { BEGIN_PGML -Solve the rational inequality. Enter the answer in interval notation. +Solve the rational inequality. Enter the answer in interval notation. [`` \dfrac{x + {[$u]}}{x + {[$v]}} > 0 ``] - [_______________________________]{$x1} [@ AnswerFormatHelp("intervals") @]* + [_______________________________]{$x1} [@ helpLink("intervals") @]* END_PGML } diff --git a/Contrib/CCCS/CollegeAlgebra/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_347.pg b/Contrib/CCCS/CollegeAlgebra/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_347.pg index b60cb1e997..f4c7390325 100644 --- a/Contrib/CCCS/CollegeAlgebra/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_347.pg +++ b/Contrib/CCCS/CollegeAlgebra/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_347.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -53,7 +53,7 @@ else { } if ($a == 1) { - # c2 is always less than c1 here + # c2 is always less than c1 here $x1 = Interval("($c2,$c1)"); } else { @@ -73,7 +73,7 @@ else { ########################### # Main text -if ($a == 1) +if ($a == 1) { BEGIN_PGML @@ -81,7 +81,7 @@ Solve the rational inequality. Enter the answer in interval notation. [`` \dfrac{{[$u]}x}{x - {[$v]}} < {[$w]} ``] - [_______________________________]{$x1} [@ AnswerFormatHelp("intervals") @]* + [_______________________________]{$x1} [@ helpLink("intervals") @]* END_PGML @@ -96,7 +96,7 @@ Solve the rational inequality. Enter the answer in interval notation. [`` \dfrac{{[$u]}x}{x - {[$v]}} < -{[$w]} ``] - [_______________]{$x1} [@ AnswerFormatHelp("intervals") @]* + [_______________]{$x1} [@ helpLink("intervals") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_349.pg b/Contrib/CCCS/CollegeAlgebra/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_349.pg index e1a23e14cf..69601f2525 100644 --- a/Contrib/CCCS/CollegeAlgebra/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_349.pg +++ b/Contrib/CCCS/CollegeAlgebra/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_349.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -63,11 +63,11 @@ else { Context("Interval"); $x1 = Union("(-inf,$min)U($max,inf)"); - + ########################### # Main text -if ($a == 1) +if ($a == 1) { BEGIN_PGML @@ -75,7 +75,7 @@ Solve the rational inequality. Enter the answer in interval notation. [`` \dfrac{{[$u]}x}{x - {[$v]}} > {[$w]} ``] - [_______________________________]{$x1} [@ AnswerFormatHelp("intervals") @]* + [_______________________________]{$x1} [@ helpLink("intervals") @]* END_PGML } @@ -86,7 +86,7 @@ Solve the rational inequality. Enter the answer in interval notation. [`` \dfrac{{[$u]}x}{x - {[$v]}} > -{[$w]} ``] - [_______________________________]{$x1} [@ AnswerFormatHelp("intervals") @]* + [_______________________________]{$x1} [@ helpLink("intervals") @]* END_PGML } @@ -95,7 +95,7 @@ BEGIN_PGML_HINT It may be helpful to rewrite the inequality so that you have a single rational expression isolated and zero on the other side of the inequality. -Example: Solve the rational inequality +Example: Solve the rational inequality [` \dfrac{x}{x-2} >3`] Solution: @@ -111,7 +111,7 @@ Solution: The rational expression on the left side of this inequality is undefined when [`x=2`] and is equal to zero when [`x=3`]. -We now want to find when the rational expression is positive and when it is negative. +We now want to find when the rational expression is positive and when it is negative. Looking at the interval [`(-\infty, 2)`], we can see that those [`x`] values make the rational expression [`\dfrac{-2x+6}{x-2}`] negative. diff --git a/Contrib/CCCS/CollegeAlgebra/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_352.pg b/Contrib/CCCS/CollegeAlgebra/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_352.pg index ffb9c929f6..ddf2f1a2e0 100644 --- a/Contrib/CCCS/CollegeAlgebra/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_352.pg +++ b/Contrib/CCCS/CollegeAlgebra/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_352.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -60,11 +60,11 @@ if ($c1 < $c2) { else { $x1 = Interval("[$c2,$c1)"); } - + ########################### # Main text -if ($a == 1) +if ($a == 1) { BEGIN_PGML @@ -72,7 +72,7 @@ Solve the rational inequality. Enter the answer in interval notation. [`` \dfrac{{[$t]}x - {[$u]}}{x - {[$v]}} \le {[$w]} ``] - [_______________________________]{$x1} [@ AnswerFormatHelp("intervals") @]* + [_______________________________]{$x1} [@ helpLink("intervals") @]* END_PGML } @@ -84,7 +84,7 @@ Solve the rational inequality. Enter the answer in interval notation. [`` \dfrac{{[$t]}x - {[$u]}}{x - {[$v]}} \le -{[$w]} ``] - [_______________________________]{$x1} [@ AnswerFormatHelp("intervals") @]* + [_______________________________]{$x1} [@ helpLink("intervals") @]* END_PGML } diff --git a/Contrib/CCCS/CollegeAlgebra/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_354.pg b/Contrib/CCCS/CollegeAlgebra/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_354.pg index 73410e2b91..21880b6e04 100644 --- a/Contrib/CCCS/CollegeAlgebra/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_354.pg +++ b/Contrib/CCCS/CollegeAlgebra/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_354.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -62,11 +62,11 @@ if ($c1 < $c2) { else { $x1 = Union("(-inf,$c2]U($c1,inf)"); } - + ########################### # Main text -if ($a == 1) +if ($a == 1) { BEGIN_PGML @@ -74,7 +74,7 @@ Solve the rational inequality. Enter the answer in interval notation. [`` \dfrac{{[$t]}x - {[$u]}}{x - {[$v]}} \ge {[$w]} ``] - [_______________________________]{$x1} [@ AnswerFormatHelp("intervals") @]* + [_______________________________]{$x1} [@ helpLink("intervals") @]* END_PGML } @@ -86,7 +86,7 @@ Solve the rational inequality. Enter the answer in interval notation. [`` \dfrac{{[$t]}x - {[$u]}}{x - {[$v]}} \ge -{[$w]} ``] - [_______________________________]{$x1} [@ AnswerFormatHelp("intervals") @]* + [_______________________________]{$x1} [@ helpLink("intervals") @]* END_PGML } diff --git a/Contrib/CCCS/CollegeAlgebra/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_357.pg b/Contrib/CCCS/CollegeAlgebra/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_357.pg index 1493529de6..ca4448580c 100644 --- a/Contrib/CCCS/CollegeAlgebra/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_357.pg +++ b/Contrib/CCCS/CollegeAlgebra/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_357.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -39,7 +39,7 @@ $a = random(1,2); # different forms of problem $u = random(1,6); $v = random(1,10); -do{ $w = random(1,10); } until ($w != $v); +do{ $w = random(1,10); } until ($w != $v); # Solutions Context("Interval"); @@ -63,7 +63,7 @@ else { ########################### # Main text -if ($a == 1) +if ($a == 1) { BEGIN_PGML @@ -71,7 +71,7 @@ Solve the rational inequality. Enter the answer in interval notation. [`` \dfrac{{[$u]}} {x^2 - {[$v+$w]} x + {[$v*$w]}} < 0 ``] - [_______________________________]{$x1} [@ AnswerFormatHelp("intervals") @]* + [_______________________________]{$x1} [@ helpLink("intervals") @]* END_PGML } @@ -79,11 +79,11 @@ else { BEGIN_PGML -Solve the rational inequality. Enter the answer in interval notation. +Solve the rational inequality. Enter the answer in interval notation. [`` \dfrac{{[$u]}} {x^2 + {[$v+$w]} x + {[$v*$w]}} < 0 ``] - [_______________________________]{$x1} [@ AnswerFormatHelp("intervals") @]* + [_______________________________]{$x1} [@ helpLink("intervals") @]* END_PGML } diff --git a/Contrib/CCCS/CollegeAlgebra/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_365.pg b/Contrib/CCCS/CollegeAlgebra/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_365.pg index 27c838c7d9..69a8844056 100644 --- a/Contrib/CCCS/CollegeAlgebra/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_365.pg +++ b/Contrib/CCCS/CollegeAlgebra/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_365.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -58,7 +58,7 @@ $x1 = Union($i1,$i2); ########################### # Main text -if ($problem_type == 1) +if ($problem_type == 1) { BEGIN_PGML @@ -66,7 +66,7 @@ Solve the rational inequality. Enter the answer in interval notation. [`` \dfrac{1}{{[$w]}} - \dfrac{ {[$a*$b*$w]} }{x^2} \le \dfrac{ {[$a - $b]} }{x} ``] - [_______________________________]{$x1} [@ AnswerFormatHelp("intervals") @]* + [_______________________________]{$x1} [@ helpLink("intervals") @]* END_PGML } @@ -78,7 +78,7 @@ Solve the rational inequality. Enter the answer in interval notation. [`` \dfrac{1}{{[$w]}} - \dfrac{ {[$a*$b*$w]} }{x^2} \le -\dfrac{ {[$b - $a]} }{x} ``] - [_______________________________]{$x1} [@ AnswerFormatHelp("intervals") @]* + [_______________________________]{$x1} [@ helpLink("intervals") @]* END_PGML } diff --git a/Contrib/CCCS/CollegeAlgebra/Circles/CCD_CCCS_Circles_6.pg b/Contrib/CCCS/CollegeAlgebra/Circles/CCD_CCCS_Circles_6.pg index 48848fb801..fda34332ef 100644 --- a/Contrib/CCCS/CollegeAlgebra/Circles/CCD_CCCS_Circles_6.pg +++ b/Contrib/CCCS/CollegeAlgebra/Circles/CCD_CCCS_Circles_6.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Cartesian coordinate system) ## DBsection(Circles) @@ -11,17 +11,17 @@ ## Author(James Morski) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,10 +29,10 @@ loadMacros( "PGML.pl", "PGcourse.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -50,38 +50,38 @@ $radius = sqrt($radicand); Context("LimitedPoint"); $center=Point("( ($a/2),($b/2) )"); - + $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); - - + + ########################### # Main text - + BEGIN_PGML -Find the radius and the center of the circle with the given equation [`[$equation]=0`]. - -Radius:[_______________]{$radius}[@ AnswerFormatHelp("numbers") @]* - -Center:[_______________]{$center}[@ AnswerFormatHelp("points") @]* +Find the radius and the center of the circle with the given equation [`[$equation]=0`]. + +Radius:[_______________]{$radius}[@ helpLink("numbers") @]* + +Center:[_______________]{$center}[@ helpLink("points") @]* [$video]* END_PGML - - + + BEGIN_TEXT $BR If the video does not work, \{ htmlLink ("https://www.youtube.com/watch?v=KA4nOBywEpI", "click here to watch on YouTube.", "TARGET='_blank'")\} $BR END_TEXT - + ############################ #Answers @@ -89,11 +89,11 @@ $showPartialCorrectAnswers = 0; install_problem_grader(~~&std_problem_grader); # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/CollegeAlgebra/Circles/CCD_CCCS_Circles_7.pg b/Contrib/CCCS/CollegeAlgebra/Circles/CCD_CCCS_Circles_7.pg index 789781bdd0..db6046fcf0 100644 --- a/Contrib/CCCS/CollegeAlgebra/Circles/CCD_CCCS_Circles_7.pg +++ b/Contrib/CCCS/CollegeAlgebra/Circles/CCD_CCCS_Circles_7.pg @@ -1,7 +1,7 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - + ## DBsubject(Algebra) ## DBchapter(Cartesian coordinate system) ## DBsection(Circles) @@ -10,17 +10,17 @@ ## Author(James Morski) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -28,10 +28,10 @@ loadMacros( "PGML.pl", "PGcourse.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -49,27 +49,27 @@ $radius = sqrt($radicand); Context("LimitedPoint"); $center=Point("( (-$a/2),($b/2) )"); - - - + + + ########################### # Main text - + BEGIN_PGML -Find the radius and the center of the circle with the given equation [`[$equation]=0`]. - -Radius:[_______________]{$radius}[@ AnswerFormatHelp("numbers") @]* - -Center:[_______________]{$center}[@ AnswerFormatHelp("points") @]* +Find the radius and the center of the circle with the given equation [`[$equation]=0`]. + +Radius:[_______________]{$radius}[@ helpLink("numbers") @]* + +Center:[_______________]{$center}[@ helpLink("points") @]* + - END_PGML - - - + + + ############################ #Answers @@ -77,11 +77,11 @@ $showPartialCorrectAnswers = 0; install_problem_grader(~~&std_problem_grader); # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/CollegeAlgebra/Circles/CCD_CCCS_Circles_8.pg b/Contrib/CCCS/CollegeAlgebra/Circles/CCD_CCCS_Circles_8.pg index 1b70dc5b97..11004c75b4 100644 --- a/Contrib/CCCS/CollegeAlgebra/Circles/CCD_CCCS_Circles_8.pg +++ b/Contrib/CCCS/CollegeAlgebra/Circles/CCD_CCCS_Circles_8.pg @@ -1,7 +1,7 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - + ## DBsubject(Algebra) ## DBchapter(Cartesian coordinate system) ## DBsection(Circles) @@ -10,17 +10,17 @@ ## Author(James Morski) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -28,10 +28,10 @@ loadMacros( "PGML.pl", "PGcourse.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -49,27 +49,27 @@ $radius = sqrt($radicand); Context("LimitedPoint"); $center=Point("( ($a/2),($b/2) )"); - - - + + + ########################### # Main text - + BEGIN_PGML -Find the radius and the center of the circle with the given equation [`[$equation]=[$c]`]. - -Radius:[_______________]{$radius}[@ AnswerFormatHelp("numbers") @]* - -Center:[_______________]{$center}[@ AnswerFormatHelp("points") @]* +Find the radius and the center of the circle with the given equation [`[$equation]=[$c]`]. + +Radius:[_______________]{$radius}[@ helpLink("numbers") @]* + +Center:[_______________]{$center}[@ helpLink("points") @]* + - END_PGML - - - + + + ############################ #Answers @@ -77,11 +77,11 @@ $showPartialCorrectAnswers = 0; install_problem_grader(~~&std_problem_grader); # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/CollegeAlgebra/Circles/RRCC_CCCS_Circles_1.pg b/Contrib/CCCS/CollegeAlgebra/Circles/RRCC_CCCS_Circles_1.pg index b559f4eeae..522290c432 100644 --- a/Contrib/CCCS/CollegeAlgebra/Circles/RRCC_CCCS_Circles_1.pg +++ b/Contrib/CCCS/CollegeAlgebra/Circles/RRCC_CCCS_Circles_1.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -52,12 +52,12 @@ $cen = Point("($h,$k)"); # Main text BEGIN_PGML -Find the center and radius of the following circle. Enter the center as an ordered pair. +Find the center and radius of the following circle. Enter the center as an ordered pair. >>[`` [$f]=[$r2] ``]<< -+ center: [______]{$cen} [@ AnswerFormatHelp("points") @]* ++ center: [______]{$cen} [@ helpLink("points") @]* -+ radius: [___]{$r} [@ AnswerFormatHelp("numbers") @]* ++ radius: [___]{$r} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/CollegeAlgebra/Circles/RRCC_CCCS_Circles_2.pg b/Contrib/CCCS/CollegeAlgebra/Circles/RRCC_CCCS_Circles_2.pg index 722aab5ed4..a22b7839aa 100644 --- a/Contrib/CCCS/CollegeAlgebra/Circles/RRCC_CCCS_Circles_2.pg +++ b/Contrib/CCCS/CollegeAlgebra/Circles/RRCC_CCCS_Circles_2.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -50,12 +50,12 @@ $cen = Point("(0,$k)"); # Main text BEGIN_PGML -Find the center and radius of the following circle. Enter the center as an ordered pair. +Find the center and radius of the following circle. Enter the center as an ordered pair. >>[`` [$f]=[$r2] ``]<< -+ center: [______]{$cen} [@ AnswerFormatHelp("points") @]* ++ center: [______]{$cen} [@ helpLink("points") @]* -+ radius: [___]{$r} [@ AnswerFormatHelp("numbers") @]* ++ radius: [___]{$r} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/Circles/RRCC_CCCS_Circles_3.pg b/Contrib/CCCS/CollegeAlgebra/Circles/RRCC_CCCS_Circles_3.pg index 185f1e4ac1..6e027f2c9c 100644 --- a/Contrib/CCCS/CollegeAlgebra/Circles/RRCC_CCCS_Circles_3.pg +++ b/Contrib/CCCS/CollegeAlgebra/Circles/RRCC_CCCS_Circles_3.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Cartesian coordinate system) ## DBsection(Circles) @@ -11,17 +11,17 @@ ## Author(Brenda Forland) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,10 +29,10 @@ loadMacros( "PGML.pl", "PGcourse.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -47,26 +47,26 @@ $r2 = ($r)**2; # The two sides of the correct answer $ans1=Formula("(x-$h)^2+(y-$k)^2")->reduce; $ans2=Formula("$r2"); - - + + ########################### # Main text - + BEGIN_PGML -Find the equation for the circle with center [` ([$h],[$k]) `] and radius of length [` [$r] `]. - - [____________][`=`] [__________] [@ AnswerFormatHelp("numbers") @]* - +Find the equation for the circle with center [` ([$h],[$k]) `] and radius of length [` [$r] `]. + + [____________][`=`] [__________] [@ helpLink("numbers") @]* + + - END_PGML - - - + + + ############################ #Answers @@ -74,18 +74,18 @@ $showPartialCorrectAnswers = 0; install_problem_grader(~~&std_problem_grader); -UNORDERED_ANS( -$ans1->cmp(), -$ans2->cmp(), +UNORDERED_ANS( +$ans1->cmp(), +$ans2->cmp(), ); # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/CollegeAlgebra/Circles/RRCC_CCCS_Circles_4.pg b/Contrib/CCCS/CollegeAlgebra/Circles/RRCC_CCCS_Circles_4.pg index a9babead7a..98d3bc8413 100644 --- a/Contrib/CCCS/CollegeAlgebra/Circles/RRCC_CCCS_Circles_4.pg +++ b/Contrib/CCCS/CollegeAlgebra/Circles/RRCC_CCCS_Circles_4.pg @@ -10,27 +10,27 @@ ## Author(Brenda Forland; EDIT: James Morski 8/30/2017) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "unorderedAnswer.pl", "PGML.pl", "PGcourse.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -45,25 +45,25 @@ $r2 = ($r/2)**2; # The two sides of the correct answer $ans1=Formula("(x-$h)^2+(y-$k)^2")->reduce; $ans2=Formula("$r2"); - - - + + + ########################### # Main text - + BEGIN_PGML -Find the equation for the circle with center [` ([$h],[$k]) `] and diameter of length [` [$r] `]. - - [______________] [`=`] [____________] [@ AnswerFormatHelp("numbers") @]* - +Find the equation for the circle with center [` ([$h],[$k]) `] and diameter of length [` [$r] `]. + + [______________] [`=`] [____________] [@ helpLink("numbers") @]* + + - END_PGML - - - + + + ############################ #Answers @@ -71,18 +71,18 @@ $showPartialCorrectAnswers = 0; install_problem_grader(~~&std_problem_grader); -UNORDERED_ANS( -$ans1->cmp(), -$ans2->cmp(), +UNORDERED_ANS( +$ans1->cmp(), +$ans2->cmp(), ); # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/CollegeAlgebra/Circles/RRCC_CCCS_Circles_5.pg b/Contrib/CCCS/CollegeAlgebra/Circles/RRCC_CCCS_Circles_5.pg index 6fb48d9d8b..99a317251d 100644 --- a/Contrib/CCCS/CollegeAlgebra/Circles/RRCC_CCCS_Circles_5.pg +++ b/Contrib/CCCS/CollegeAlgebra/Circles/RRCC_CCCS_Circles_5.pg @@ -1,7 +1,7 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - + ## DBsubject(Algebra) ## DBchapter(Cartesian coordinate system) ## DBsection(Circles) @@ -10,17 +10,17 @@ ## Author(Brenda Forland; EDIT: James Morsk 8/30/17) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -28,10 +28,10 @@ loadMacros( "PGML.pl", "PGcourse.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -49,37 +49,37 @@ $r2 = Compute("($a-$h)**2+($b-$k)**2"); # The two sides of the correct answer $ans1=Formula("(x-$h)^2+(y-$k)^2")->reduce; $ans2=Formula("$r2"); - + $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); - + ########################### # Main text - + BEGIN_PGML -Find the equation for the circle with center [` ([$h],[$k]) `] and passes through [` ([$a],[$b]) `]. - - [_______________] [`=`] [_____________][@ AnswerFormatHelp("numbers") @]* - +Find the equation for the circle with center [` ([$h],[$k]) `] and passes through [` ([$a],[$b]) `]. + + [_______________] [`=`] [_____________][@ helpLink("numbers") @]* + [$video]* END_PGML - + BEGIN_TEXT $BR If the video does not work, \{ htmlLink ("https://www.youtube.com/watch?v=k5Z3qb052Ek", "click here to watch on YouTube.", "TARGET='_blank'")\} $BR END_TEXT - + ############################ #Answers @@ -87,19 +87,19 @@ $showPartialCorrectAnswers = 0; install_problem_grader(~~&std_problem_grader); -UNORDERED_ANS( -$ans1->cmp(), -$ans2->cmp(), +UNORDERED_ANS( +$ans1->cmp(), +$ans2->cmp(), ); # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/CollegeAlgebra/Conics/ConicGraphs1.pg b/Contrib/CCCS/CollegeAlgebra/Conics/ConicGraphs1.pg index a1a590d7c9..8ab0763755 100644 --- a/Contrib/CCCS/CollegeAlgebra/Conics/ConicGraphs1.pg +++ b/Contrib/CCCS/CollegeAlgebra/Conics/ConicGraphs1.pg @@ -19,14 +19,14 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", "parserPopUp.pl", "PGstandard.pl", "PGgraphmacros.pl", -"AnswerFormatHelp.pl", + "MathObjects.pl" # Math Object Macro ); @@ -76,26 +76,26 @@ size=>[600,600] #add functions to graphs #hyperbola -add_functions($hyp, "sqrt($a*$a+$a*$a/($b*$b)*(x)^2) for x in <-6,6>" . +add_functions($hyp, "sqrt($a*$a+$a*$a/($b*$b)*(x)^2) for x in <-6,6>" . " using color:blue and weight:3"); - add_functions($hyp, "-sqrt($a*$a+$a*$a/($b*$b)*(x)^2) for x in <-6,6>" . + add_functions($hyp, "-sqrt($a*$a+$a*$a/($b*$b)*(x)^2) for x in <-6,6>" . " using color:blue and weight:3"); #sideways parabola -add_functions($sparab, "sqrt(x+$b)+$a for x in <$nb, 6>" . +add_functions($sparab, "sqrt(x+$b)+$a for x in <$nb, 6>" . " using color:blue and weight:3"); -add_functions($sparab, "-sqrt(x+$b)+$a for x in <$nb, 6>" . +add_functions($sparab, "-sqrt(x+$b)+$a for x in <$nb, 6>" . " using color:blue and weight:3"); -#shifted circle -add_functions($scircle, "sqrt($r^2-(x-$h)^2)+$k for x in <$hmr,$hpr>" . +#shifted circle +add_functions($scircle, "sqrt($r^2-(x-$h)^2)+$k for x in <$hmr,$hpr>" . " using color:blue and weight:3"); - add_functions($scircle, "-sqrt($r^2-(x-$h)^2)+$k for x in <$hmr,$hpr>" . + add_functions($scircle, "-sqrt($r^2-(x-$h)^2)+$k for x in <$hmr,$hpr>" . " using color:blue and weight:3"); -#circle centered at origin -add_functions($circle, "sqrt($r2^2-(x)^2) for x in <-$r2,$r2>" . +#circle centered at origin +add_functions($circle, "sqrt($r2^2-(x)^2) for x in <-$r2,$r2>" . " using color:blue and weight:3"); - add_functions($circle, "-sqrt($r2^2-(x)^2) for x in <-$r2,$r2>" . - " using color:blue and weight:3"); - + add_functions($circle, "-sqrt($r2^2-(x)^2) for x in <-$r2,$r2>" . + " using color:blue and weight:3"); + $in=time(); $hyp->gifName($hyp->gifName()."$in"); @@ -144,7 +144,7 @@ Match the following equations with their graphs. [` [$hyperbl]=1`] [_____]{$popupA} ->>A. [@ image(insertGraph($hyp), width=>200, height=>200), @]* B. [@ image(insertGraph($sparab), width=>200, height=>200), @]* << +>>A. [@ image(insertGraph($hyp), width=>200, height=>200), @]* B. [@ image(insertGraph($sparab), width=>200, height=>200), @]* << >>C. [@ image(insertGraph($scircle), width=>200, height=>200), @]* D. [@ image(insertGraph($circle), width=>200, height=>200), @]* << END_PGML @@ -161,7 +161,7 @@ Match the following equations with their graphs. [` [$hyperbl]=1`] [_____]{$popupC} ->>A. [@ image(insertGraph($scircle), width=>200, height=>200), @]* B. [@ image(insertGraph($sparab), width=>200, height=>200), @]* << +>>A. [@ image(insertGraph($scircle), width=>200, height=>200), @]* B. [@ image(insertGraph($sparab), width=>200, height=>200), @]* << >>C. [@ image(insertGraph($hyp), width=>200, height=>200), @]* D. [@ image(insertGraph($circle), width=>200, height=>200), @]* << END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/Conics/ConicGraphs2.pg b/Contrib/CCCS/CollegeAlgebra/Conics/ConicGraphs2.pg index bcb98b3f8d..8c484a5306 100644 --- a/Contrib/CCCS/CollegeAlgebra/Conics/ConicGraphs2.pg +++ b/Contrib/CCCS/CollegeAlgebra/Conics/ConicGraphs2.pg @@ -19,14 +19,14 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", "parserPopUp.pl", "PGstandard.pl", "PGgraphmacros.pl", -"AnswerFormatHelp.pl", + "MathObjects.pl" # Math Object Macro ); @@ -76,26 +76,26 @@ size=>[600,600] #add functions to graphs -add_functions($hyp, "sqrt((x-$a)^2-1) for x in <-6,$am1>". +add_functions($hyp, "sqrt((x-$a)^2-1) for x in <-6,$am1>". " using color:blue and weight:3"); - add_functions($hyp, "sqrt((x-$a)^2-1) for x in <$ap1,6>". + add_functions($hyp, "sqrt((x-$a)^2-1) for x in <$ap1,6>". " using color:blue and weight:3"); - add_functions($hyp, "-sqrt((x-$a)^2-1) for x in <-6,$am1>". + add_functions($hyp, "-sqrt((x-$a)^2-1) for x in <-6,$am1>". " using color:blue and weight:3"); - add_functions($hyp, "-sqrt((x-$a)^2-1) for x in <$ap1,6>". + add_functions($hyp, "-sqrt((x-$a)^2-1) for x in <$ap1,6>". " using color:blue and weight:3"); -add_functions($circle, "sqrt($r^2-(x-$h)^2)+$k for x in <$hmr,$hpr>" . +add_functions($circle, "sqrt($r^2-(x-$h)^2)+$k for x in <$hmr,$hpr>" . " using color:blue and weight:3"); - add_functions($circle, "-sqrt($r^2-(x-$h)^2)+$k for x in <$hmr,$hpr>" . + add_functions($circle, "-sqrt($r^2-(x-$h)^2)+$k for x in <$hmr,$hpr>" . " using color:blue and weight:3"); - -add_functions($parabola, "$c*(x-$a)^2-$b for x in <-6,6>". + +add_functions($parabola, "$c*(x-$a)^2-$b for x in <-6,6>". " using color:blue and weight:3"); - -add_functions($ellipse, "sqrt($b*$b-$b*$b/($a*$a)*(x-$h)^2) for x in <$hma,$hpa>" . + +add_functions($ellipse, "sqrt($b*$b-$b*$b/($a*$a)*(x-$h)^2) for x in <$hma,$hpa>" . " using color:blue and weight:3"); - add_functions($ellipse, "-sqrt($b*$b-$b*$b/($a*$a)*(x-$h)^2)for x in <$hma,$hpa>" . + add_functions($ellipse, "-sqrt($b*$b-$b*$b/($a*$a)*(x-$h)^2)for x in <$hma,$hpa>" . " using color:blue and weight:3"); $in=time(); @@ -135,7 +135,7 @@ $hyperb2l = Formula("y^2/($a)^2-x^2/($b)^2")->reduce; $w=random(1,2,1); if($w==1){ BEGIN_PGML -Match the following equations with their graphs. +Match the following equations with their graphs. [` [$ellipse1l]=[$ellipse1r]`] [_____]{$popupD} @@ -145,14 +145,14 @@ Match the following equations with their graphs. [` [$parab1l]=[$parab1r]`] [_____]{$popupB} ->>A. [@ image(insertGraph($hyp), width=>200, height=>200), @]* B. [@ image(insertGraph($parabola), width=>200, height=>200), @]* << +>>A. [@ image(insertGraph($hyp), width=>200, height=>200), @]* B. [@ image(insertGraph($parabola), width=>200, height=>200), @]* << >>C. [@ image(insertGraph($circle), width=>200, height=>200), @]* D. [@ image(insertGraph($ellipse), width=>200, height=>200), @]* << END_PGML } else{ BEGIN_PGML -Match the following equations with their graphs. +Match the following equations with their graphs. [` [$hyperb1l]=1`] [_____]{$popupC} @@ -162,7 +162,7 @@ Match the following equations with their graphs. [` [$circle1l]=[$circle1r]`] [_____]{$popupB} ->>A. [@ image(insertGraph($parabola), width=>200, height=>200), @]* B. [@ image(insertGraph($circle), width=>200, height=>200), @]* << +>>A. [@ image(insertGraph($parabola), width=>200, height=>200), @]* B. [@ image(insertGraph($circle), width=>200, height=>200), @]* << >>C. [@ image(insertGraph($hyp), width=>200, height=>200), @]* D. [@ image(insertGraph($ellipse), width=>200, height=>200), @]* << END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/Conics/ConicGraphs3.pg b/Contrib/CCCS/CollegeAlgebra/Conics/ConicGraphs3.pg index cbc0c0c115..e660af5ad7 100644 --- a/Contrib/CCCS/CollegeAlgebra/Conics/ConicGraphs3.pg +++ b/Contrib/CCCS/CollegeAlgebra/Conics/ConicGraphs3.pg @@ -19,14 +19,14 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", "parserPopUp.pl", "PGstandard.pl", "PGgraphmacros.pl", -"AnswerFormatHelp.pl", + "MathObjects.pl" # Math Object Macro ); @@ -104,46 +104,46 @@ size=>[600,600] #add functions to graphs #hyperbola opening in the y direction -add_functions($hypy, "sqrt($a*$a+$a*$a/($b*$b)*(x)^2) for x in <-6,6>" . +add_functions($hypy, "sqrt($a*$a+$a*$a/($b*$b)*(x)^2) for x in <-6,6>" . " using color:blue and weight:3"); - add_functions($hypy, "-sqrt($a*$a+$a*$a/($b*$b)*(x)^2) for x in <-6,6>" . + add_functions($hypy, "-sqrt($a*$a+$a*$a/($b*$b)*(x)^2) for x in <-6,6>" . " using color:blue and weight:3"); #hyperbola opening in the x direction -add_functions($hypx, "sqrt((x-$a)^2-1) for x in <-6,$am1>". +add_functions($hypx, "sqrt((x-$a)^2-1) for x in <-6,$am1>". " using color:blue and weight:3"); - add_functions($hypx, "sqrt((x-$a)^2-1) for x in <$ap1,6>". + add_functions($hypx, "sqrt((x-$a)^2-1) for x in <$ap1,6>". " using color:blue and weight:3"); - add_functions($hypx, "-sqrt((x-$a)^2-1) for x in <-6,$am1>". + add_functions($hypx, "-sqrt((x-$a)^2-1) for x in <-6,$am1>". " using color:blue and weight:3"); - add_functions($hypx, "-sqrt((x-$a)^2-1) for x in <$ap1,6>". + add_functions($hypx, "-sqrt((x-$a)^2-1) for x in <$ap1,6>". " using color:blue and weight:3"); #sideways parabola -add_functions($sparab, "sqrt(x+$b)+$a for x in <$nb, 6>" . +add_functions($sparab, "sqrt(x+$b)+$a for x in <$nb, 6>" . " using color:blue and weight:3"); -add_functions($sparab, "-sqrt(x+$b)+$a for x in <$nb, 6>" . +add_functions($sparab, "-sqrt(x+$b)+$a for x in <$nb, 6>" . " using color:blue and weight:3"); #parabola -add_functions($parabola, "$c*(x-$a)^2-$b for x in <-6,6>". +add_functions($parabola, "$c*(x-$a)^2-$b for x in <-6,6>". " using color:blue and weight:3"); -#shifted circle -add_functions($scircle, "sqrt($r^2-(x-$h)^2)+$k for x in <$hmr,$hpr>" . +#shifted circle +add_functions($scircle, "sqrt($r^2-(x-$h)^2)+$k for x in <$hmr,$hpr>" . " using color:blue and weight:3"); - add_functions($scircle, "-sqrt($r^2-(x-$h)^2)+$k for x in <$hmr,$hpr>" . + add_functions($scircle, "-sqrt($r^2-(x-$h)^2)+$k for x in <$hmr,$hpr>" . " using color:blue and weight:3"); -#circle centered at origin -add_functions($circle, "sqrt($r2^2-(x)^2) for x in <-$r2,$r2>" . +#circle centered at origin +add_functions($circle, "sqrt($r2^2-(x)^2) for x in <-$r2,$r2>" . + " using color:blue and weight:3"); + add_functions($circle, "-sqrt($r2^2-(x)^2) for x in <-$r2,$r2>" . " using color:blue and weight:3"); - add_functions($circle, "-sqrt($r2^2-(x)^2) for x in <-$r2,$r2>" . - " using color:blue and weight:3"); #ellipse -add_functions($ellipse, "sqrt($b*$b-$b*$b/($a*$a)*(x-$h)^2) for x in <$hma,$hpa>" . +add_functions($ellipse, "sqrt($b*$b-$b*$b/($a*$a)*(x-$h)^2) for x in <$hma,$hpa>" . " using color:blue and weight:3"); -add_functions($ellipse, "-sqrt($b*$b-$b*$b/($a*$a)*(x-$h)^2)for x in <$hma,$hpa>" . +add_functions($ellipse, "-sqrt($b*$b-$b*$b/($a*$a)*(x-$h)^2)for x in <$hma,$hpa>" . " using color:blue and weight:3"); -#ellipse -add_functions($ellipse2, "sqrt($a*$a-$a*$a/($b*$b)*(x)^2) for x in <$nb,$b>" . +#ellipse +add_functions($ellipse2, "sqrt($a*$a-$a*$a/($b*$b)*(x)^2) for x in <$nb,$b>" . " using color:blue and weight:3"); - add_functions($ellipse2, "-sqrt($a*$a-$a*$a/($b*$b)*(x)^2)for x in <$nb,$b>" . + add_functions($ellipse2, "-sqrt($a*$a-$a*$a/($b*$b)*(x)^2)for x in <$nb,$b>" . " using color:blue and weight:3"); diff --git a/Contrib/CCCS/CollegeAlgebra/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_1.pg b/Contrib/CCCS/CollegeAlgebra/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_1.pg index bbc9dcbb95..b3c52fac71 100644 --- a/Contrib/CCCS/CollegeAlgebra/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_1.pg +++ b/Contrib/CCCS/CollegeAlgebra/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_1.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -37,7 +37,7 @@ $a = random(-4,4,1); $m = non_zero_random(-7,7,1); $b = random(-4,4,1); do {$c = non_zero_random(-7,7,1);} until($c != $m); -$d = $m*$a+$b-$c*$a; +$d = $m*$a+$b-$c*$a; $f=Formula("$m*x+$b")->reduce; @@ -55,7 +55,7 @@ BEGIN_PGML Solve [`` [$f] > [$g] ``]. Enter the solution in interval notation. -[_______________]{$ans} [@ AnswerFormatHelp("intervals") @]* +[_______________]{$ans} [@ helpLink("intervals") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_10.pg b/Contrib/CCCS/CollegeAlgebra/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_10.pg index 888bfac2c5..adce17ad6d 100644 --- a/Contrib/CCCS/CollegeAlgebra/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_10.pg +++ b/Contrib/CCCS/CollegeAlgebra/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_10.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -46,7 +46,7 @@ $g=Formula("($c*$d)*x^2-($d*($a*$b+$b*$c))*x+$e")->reduce; Context("Interval"); $min = min($a,$b,$c); $max = max($a,$b,$c); -if($a != $max and $a != $min){$mid=$a;} +if($a != $max and $a != $min){$mid=$a;} else{ if($b != $max and $b != $min){$mid=$b;} else{$mid=$c}} if($d>0){$ans=Compute("[$min,$mid]U[$max,infinity)");} else{$ans=Compute("(-infinity,$min]U[$mid,$max]");} @@ -59,7 +59,7 @@ BEGIN_PGML Solve [`` [$f] \geq [$g] ``]. Enter the solution in interval notation. -[_______________]{$ans} [@ AnswerFormatHelp("intervals") @]* +[_______________]{$ans} [@ helpLink("intervals") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_2.pg b/Contrib/CCCS/CollegeAlgebra/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_2.pg index 3683defe5e..fc0ed0bf37 100644 --- a/Contrib/CCCS/CollegeAlgebra/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_2.pg +++ b/Contrib/CCCS/CollegeAlgebra/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_2.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -37,7 +37,7 @@ $a = random(-4,4,1); $m = non_zero_random(-7,7,1); $b = random(-4,4,1); do {$c = random(-7,7,1);} until ($c != $m); -$d = $m*$a+$b-$c*$a; +$d = $m*$a+$b-$c*$a; $f=Formula("$m*x+$b")->reduce; @@ -55,7 +55,7 @@ BEGIN_PGML Solve [`` [$f] \leq [$g] ``]. Enter the solution in interval notation. -[_______________]{$ans} [@ AnswerFormatHelp("intervals") @]* +[_______________]{$ans} [@ helpLink("intervals") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_3.pg b/Contrib/CCCS/CollegeAlgebra/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_3.pg index 14b8f35b75..bad2f6c6aa 100644 --- a/Contrib/CCCS/CollegeAlgebra/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_3.pg +++ b/Contrib/CCCS/CollegeAlgebra/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_3.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,8 +48,8 @@ $max = max($a,$b); if($d>0){$ans=Compute("(-infinity,$min)U($max,infinity)");} else{$ans=Compute("($min,$max)");} $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -60,7 +60,7 @@ BEGIN_PGML Solve [`` [$f] < [$g] ``]. Enter the solution in interval notation. -[_______________]{$ans} [@ AnswerFormatHelp("intervals") @]* +[_______________]{$ans} [@ helpLink("intervals") @]* [$video]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_4.pg b/Contrib/CCCS/CollegeAlgebra/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_4.pg index 03af36bc93..87ebd3b234 100644 --- a/Contrib/CCCS/CollegeAlgebra/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_4.pg +++ b/Contrib/CCCS/CollegeAlgebra/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_4.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -55,7 +55,7 @@ BEGIN_PGML Solve [`` [$g] \leq [$f] ``]. Enter the solution in interval notation. -[_______________]{$ans} [@ AnswerFormatHelp("intervals") @]* +[_______________]{$ans} [@ helpLink("intervals") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_5.pg b/Contrib/CCCS/CollegeAlgebra/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_5.pg index 9964bda094..92c1a064ac 100644 --- a/Contrib/CCCS/CollegeAlgebra/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_5.pg +++ b/Contrib/CCCS/CollegeAlgebra/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_5.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -55,7 +55,7 @@ BEGIN_PGML Solve [`` [$f] > [$g] ``]. Enter the solution in interval notation. -[_______________]{$ans} [@ AnswerFormatHelp("intervals") @]* +[_______________]{$ans} [@ helpLink("intervals") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_6.pg b/Contrib/CCCS/CollegeAlgebra/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_6.pg index fea0972a46..3b9a61b468 100644 --- a/Contrib/CCCS/CollegeAlgebra/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_6.pg +++ b/Contrib/CCCS/CollegeAlgebra/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_6.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -56,7 +56,7 @@ BEGIN_PGML Solve [`` [$f] \leq [$g] ``]. Enter the solution in interval notation. -[_______________]{$ans} [@ AnswerFormatHelp("intervals") @]* +[_______________]{$ans} [@ helpLink("intervals") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_7.pg b/Contrib/CCCS/CollegeAlgebra/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_7.pg index 0c3675561a..23b8186f3e 100644 --- a/Contrib/CCCS/CollegeAlgebra/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_7.pg +++ b/Contrib/CCCS/CollegeAlgebra/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_7.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -56,7 +56,7 @@ BEGIN_PGML Solve [`` [$f] > [$g] ``]. Enter the solution in interval notation. -[_______________]{$ans} [@ AnswerFormatHelp("intervals") @]* +[_______________]{$ans} [@ helpLink("intervals") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_8.pg b/Contrib/CCCS/CollegeAlgebra/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_8.pg index 8740a64ce4..9f395d667f 100644 --- a/Contrib/CCCS/CollegeAlgebra/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_8.pg +++ b/Contrib/CCCS/CollegeAlgebra/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_8.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -56,7 +56,7 @@ BEGIN_PGML Solve [`` [$f] < [$g] ``]. Enter the solution in interval notation. -[_______________]{$ans} [@ AnswerFormatHelp("intervals") @]* +[_______________]{$ans} [@ helpLink("intervals") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_9.pg b/Contrib/CCCS/CollegeAlgebra/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_9.pg index b0bd4b3751..9dbb4dffc0 100644 --- a/Contrib/CCCS/CollegeAlgebra/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_9.pg +++ b/Contrib/CCCS/CollegeAlgebra/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_9.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -55,7 +55,7 @@ BEGIN_PGML Solve [`` [$f] \geq [$g] ``]. Enter the solution in interval notation. -[_______________]{$ans} [@ AnswerFormatHelp("intervals") @]* +[_______________]{$ans} [@ helpLink("intervals") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_LinearEquation1.pg b/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_LinearEquation1.pg index 16d1141314..b8e9321791 100644 --- a/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_LinearEquation1.pg +++ b/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_LinearEquation1.pg @@ -24,7 +24,7 @@ loadMacros( "MathObjects.pl", "parserAssignment.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,8 +50,8 @@ $d = non_zero_random(-5,5,1); $ans = Formula("y=$m*x+$d-$m*$c")->reduce; $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -68,7 +68,7 @@ BEGIN_PGML Find the equation of the line that contains has a slope of [` [$m] `] and passes through the point [`([$c], [$d])`]. Write the answer in slope-intercept form. -[__________________]{$ans} [@ AnswerFormatHelp("equation") @]* +[__________________]{$ans} [@ helpLink("equation") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_2_25.pg b/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_2_25.pg index 6951ccf6ac..2d41e1bc7d 100644 --- a/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_2_25.pg +++ b/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_2_25.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPowers.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -44,14 +44,14 @@ $power= $a*$d - $c*$d; #how the expression will be displayed in the problem $f = Formula("({k^$a}/{k^$c})^$d"); -#ensuring the student doesnt have any exponents less than the simplified power - this will make sure students don't just enter the expression as is, they must simplify it. +#ensuring the student doesnt have any exponents less than the simplified power - this will make sure students don't just enter the expression as is, they must simplify it. Context("Numeric"); Context()->variables->add(k => 'Real'); LimitedPowers::OnlyPositiveIntegers( minPower => $power, maxPower => 100, message => "positive integers and expression must be simplified.", ); - + $ans=Formula("k^($power)"); @@ -64,7 +64,7 @@ Simplify the given expression and enter your answer with positive exponents. [`` [$f] ``] - Simplified answer: [_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* + Simplified answer: [_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_2_26.pg b/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_2_26.pg index e544ea9f48..f3b8013f86 100644 --- a/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_2_26.pg +++ b/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_2_26.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPowers.pl", "PGML.pl", "PGcourse.pl", @@ -48,7 +48,7 @@ $min = min($p, $c); Context()->noreduce('x^(-a)'); $f = Formula("{$d*j^($a)k^$c}/{j^($b)}")->reduce; -#ensuring the student doesnt have any exponents less than the minimum of the simplified powers - this will make sure students don't just enter the expression as is, they must simplify it. +#ensuring the student doesnt have any exponents less than the minimum of the simplified powers - this will make sure students don't just enter the expression as is, they must simplify it. Context("Numeric"); Context()->variables->add(k => 'Real', j=>'Real'); LimitedPowers::OnlyPositiveIntegers( @@ -68,7 +68,7 @@ Simplify the given expression and enter your answer with positive exponents. [`` [$f] ``] - Simplified answer: [_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* + Simplified answer: [_______________]{$ans} [@ helpLink("formulas") @]* END_PGML @@ -83,7 +83,7 @@ Only those with the same base can be combined. Remember exponent rule: -[``\frac{a^n}{a^m}=a^{n-m}``] +[``\frac{a^n}{a^m}=a^{n-m}``] END_PGML_HINT ############################ diff --git a/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_2_27.pg b/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_2_27.pg index ac3996b177..b881c88150 100644 --- a/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_2_27.pg +++ b/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_2_27.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPowers.pl", "contextLimitedPolynomial.pl", "PGML.pl", @@ -50,7 +50,7 @@ $min=min($ac, $bc); #how the expression will be displayed in the problem $f = Formula("(2x^$a*y^$b)^$c")->reduce; -#ensuring the student doesnt have any exponents less than the minimum of the simplified powers - this will make sure students don't just enter the expression as is, they must simplify it. +#ensuring the student doesnt have any exponents less than the minimum of the simplified powers - this will make sure students don't just enter the expression as is, they must simplify it. Context("Numeric"); Context()->variables->add(y => 'Real'); LimitedPowers::OnlyIntegers( @@ -70,7 +70,7 @@ Simplify the given expression and enter your answer with positive exponents. [``[$f]``] - Simplified answer: [_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* + Simplified answer: [_______________]{$ans} [@ helpLink("formulas") @]* END_PGML @@ -83,7 +83,7 @@ BEGIN_PGML_HINT Here use more than one exponent rule: -[``(abc)^{n}=a^nb^nc^n``] and then [``(a^{n})^m=a^{nm}``] +[``(abc)^{n}=a^nb^nc^n``] and then [``(a^{n})^m=a^{nm}``] END_PGML_HINT ############################ diff --git a/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_2_30.pg b/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_2_30.pg index 9b2992e889..56657daca5 100644 --- a/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_2_30.pg +++ b/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_2_30.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "contextLimitedPowers.pl", "PGcourse.pl", @@ -55,7 +55,7 @@ Simplify the given expression and enter your answer with positive exponents. [`` [$f] ``] - Simplified answer: [_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* + Simplified answer: [_______________]{$ans} [@ helpLink("formulas") @]* END_PGML @@ -67,7 +67,7 @@ BEGIN_PGML_HINT Here more than one exponent rule is needed: -[``(ab)^{n}=a^nb^n``] and then [``a^{-n}=\frac{1}{a^n}``] +[``(ab)^{n}=a^nb^n``] and then [``a^{-n}=\frac{1}{a^n}``] END_PGML_HINT diff --git a/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_2_32.pg b/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_2_32.pg index 50f9a5f642..d8d7517182 100644 --- a/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_2_32.pg +++ b/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_2_32.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPowers.pl", "PGML.pl", "PGcourse.pl", @@ -57,7 +57,7 @@ Simplify the given expression and enter your answer with positive exponents. [`` [$f] ``] - Simplified answer: [_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* + Simplified answer: [_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_2_33.pg b/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_2_33.pg index 76df9ed928..e427c3e719 100644 --- a/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_2_33.pg +++ b/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_2_33.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPowers.pl", "PGML.pl", "PGcourse.pl", @@ -48,7 +48,7 @@ $min=min($p1, $p2); #how the expression will be displayed in the problem $f = Formula("{p^($a)q^($b)}/{p^($c)q^($d)}"); -#ensuring the student doesnt have any exponents less than the minimum of the simplified powers - this will make sure students don't just enter the expression as is, they must simplify it. +#ensuring the student doesnt have any exponents less than the minimum of the simplified powers - this will make sure students don't just enter the expression as is, they must simplify it. Context("Numeric"); Context()->variables->add(p => 'Real', q=>'Real'); LimitedPowers::OnlyPositiveIntegers( @@ -67,7 +67,7 @@ Simplify the given expression and enter your answer with positive exponents. [`` [$f] ``] - Simplified answer: [_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* + Simplified answer: [_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_3_sup1.pg b/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_3_sup1.pg index 09860f5ab9..6f600fa6b1 100644 --- a/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_3_sup1.pg +++ b/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_3_sup1.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -39,7 +39,7 @@ $f = Formula("sqrt(x^($power))"); $g=Formula("sqrt(x)"); #this will make it so students get marked wrong if they type in sqrt(x^9) and so they are thus required to enter with exponents. -Context()->functions->disable("All"); +Context()->functions->disable("All"); $ans=Formula("x^($power/2)")->with(limits=>[1,5]); ########################### @@ -51,7 +51,7 @@ Rewrite the given radical expression with a positive exponent. [`` [$f] ``] - Rewritten expression with exponent: [_______________]{$ans->cmp(mathQuillOpts => "rootsAreExponents: false")} [@ AnswerFormatHelp("formulas") @]* + Rewritten expression with exponent: [_______________]{$ans->cmp(mathQuillOpts => "rootsAreExponents: false")} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_3_sup2.pg b/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_3_sup2.pg index 564b1c6fb7..fafd34c38c 100644 --- a/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_3_sup2.pg +++ b/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_3_sup2.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -39,7 +39,7 @@ $power = random(3,10,1); do { $root = random(3,10,1);} until ( $root != $power); #this will make it so students get marked wrong if they type in sqrt(x^9) and so they are thus required to enter with exponents. -Context()->functions->disable("All"); +Context()->functions->disable("All"); $ans=Formula("x^($power/$root)")->with(limits=>[1,5]); ########################### @@ -49,9 +49,9 @@ BEGIN_PGML Rewrite the given radical expression with a positive exponent. -[`\sqrt[[$root]]{x^{[$power]}}`] +[`\sqrt[[$root]]{x^{[$power]}}`] - Rewritten expression with exponent: [_______________]{$ans->cmp(mathQuillOpts => "rootsAreExponents: false")} [@ AnswerFormatHelp("formulas") @]* + Rewritten expression with exponent: [_______________]{$ans->cmp(mathQuillOpts => "rootsAreExponents: false")} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_4_12.pg b/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_4_12.pg index 86f7472b3a..45bfcf4bd7 100644 --- a/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_4_12.pg +++ b/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_4_12.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -78,11 +78,11 @@ BEGIN_PGML -Find the sum of the two given polynomials. +Find the sum of the two given polynomials. [`([$g]) + ([$h])`] -[___________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[___________________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_4_13.pg b/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_4_13.pg index cf8e71697e..2b6d82ca9e 100644 --- a/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_4_13.pg +++ b/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_4_13.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -61,11 +61,11 @@ $ans=Formula("$a*w^2 + ($b-$d+$e)*w + ($c-$f)")-> reduce; BEGIN_PGML -Find the difference of the two given polynomials. +Find the difference of the two given polynomials. [`([$g]) - ([$h])`] -[___________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[___________________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_4_21.pg b/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_4_21.pg index 6c150c60f4..b949d78970 100644 --- a/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_4_21.pg +++ b/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_4_21.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPolynomial.pl", "PGML.pl", "PGcourse.pl", @@ -71,11 +71,11 @@ BEGIN_PGML -Find the product. +Find the product. [`` [$f] ``] -[___________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[___________________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_4_29.pg b/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_4_29.pg index 98ca68d5c2..f9bc2e21b6 100644 --- a/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_4_29.pg +++ b/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_4_29.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPolynomial.pl", "PGML.pl", "PGcourse.pl", @@ -55,11 +55,11 @@ $ans=Formula(" ($a*$a)z^2-(2*$a*$b)z+$b*$b")-> reduce; BEGIN_PGML -Find the product. +Find the product. [`` [$f] ``] -[___________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[___________________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_4_SUP1.pg b/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_4_SUP1.pg index 1e3cd3b9b1..20d7fcd56b 100644 --- a/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_4_SUP1.pg +++ b/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_4_SUP1.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "contextLimitedPolynomial.pl", "PGcourse.pl", @@ -56,11 +56,11 @@ $ans=Formula(" ($a*$d)x^3-($d*$b)x^2+$c*$d*x")-> reduce; BEGIN_PGML -Find the product. +Find the product. [`` [$f] ``] -[___________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[___________________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_04.pg b/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_04.pg index 5977ec1e73..d2236ea4d1 100644 --- a/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_04.pg +++ b/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_04.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,8 +48,8 @@ $f=Formula("3*$d*x+5*$d*xy-2*$d*x^$e")->reduce; $ans=Formula(" abs($d)*x"); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -64,10 +64,10 @@ Find the greatest common factor among the terms in the following polynomial expr [`` [$f] ``] -Greatest Common Factor: [_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +Greatest Common Factor: [_______________]{$ans} [@ helpLink("formulas") @]* -[$video]* +[$video]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_06.pg b/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_06.pg index 744156fa9f..787d9a9c62 100644 --- a/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_06.pg +++ b/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_06.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -57,7 +57,7 @@ Find the greatest common factor among the terms in the following polynomial expr [`` [$f] ``] - Greatest Common Factor: [_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* + Greatest Common Factor: [_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_A.pg b/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_A.pg index 0f97dea3e2..42bf54466c 100644 --- a/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_A.pg +++ b/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_A.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextLimitedFactor.pl", @@ -47,8 +47,8 @@ Context("LimitedFactor"); $ans=Formula(" (x+$a)(x+$b)"); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -60,14 +60,14 @@ TeX => BEGIN_PGML -[$video]* +[$video]* Factor the following polynomial expression. [`` [$f] ``] -Factored Form: [_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +Factored Form: [_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_B.pg b/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_B.pg index 963c573f4e..683921ef58 100644 --- a/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_B.pg +++ b/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_B.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextLimitedFactor.pl", @@ -58,7 +58,7 @@ Factor the following polynomial expression. [`` [$f] ``] -Factored Form: [_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +Factored Form: [_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_C.pg b/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_C.pg index 9a8c76412c..2793b9a614 100644 --- a/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_C.pg +++ b/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_C.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextLimitedFactor.pl", @@ -47,8 +47,8 @@ Context("LimitedFactor"); $ans=Formula(" (x+$a)(x-$a)"); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -59,14 +59,14 @@ TeX => BEGIN_PGML -[$video]* +[$video]* Factor the following polynomial expression. [`` [$f] ``] -Factored Form: [_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +Factored Form: [_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_E.pg b/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_E.pg index 4464294e37..fd6f459a5c 100644 --- a/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_E.pg +++ b/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_E.pg @@ -2,7 +2,7 @@ ## College Algebra ## ENDDESCRIPTION - + ## DBsubject(Algebra) ## DBchapter(Factoring) ## DBsection(Factoring trinomials) @@ -12,7 +12,7 @@ ## MO(1) ## KEYWORDS('college algebra', 'factoring') - + ########################### # Initialization @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -49,46 +49,46 @@ if ( $chooser == 1) { Context("LimitedFactor"); $answer=Formula("(x+1)(2x-3)"); -} +} elsif ( $chooser == 2 ) { $polynomial=Formula("3x^2-7x+2"); Context("LimitedFactor"); $answer=Formula("(3x-1)(x-2)"); -} +} elsif ( $chooser == 3 ) { $polynomial=Formula("2x^2+x-6"); Context("LimitedFactor"); $answer=Formula("(x+2)(2x-3)"); -} +} elsif ( $chooser == 4 ) { $polynomial=Formula("3x^2-2x-1"); Context("LimitedFactor"); $answer=Formula("(3x+1)(x-1)"); -} +} elsif ( $chooser == 5 ) { $polynomial=Formula("2x^2-3x+1"); Context("LimitedFactor"); $answer=Formula("(2x-1)(x-1)"); -} +} else { $polynomial=Formula("3x^2-4x-4"); Context("LimitedFactor"); $answer=Formula("(3x+2)(x-2)"); -} +} $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -99,7 +99,7 @@ TeX => BEGIN_PGML -[$video]* +[$video]* Factor the following polynomial expression. @@ -107,7 +107,7 @@ Factor the following polynomial expression. [`` [$polynomial] ``] -Factored Form: [_______________]{$answer} [@ AnswerFormatHelp("formulas") @]* +Factored Form: [_______________]{$answer} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_F.pg b/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_F.pg index e4a12d88dd..1a9490ecce 100644 --- a/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_F.pg +++ b/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_F.pg @@ -2,7 +2,7 @@ ## College Algebra ## ENDDESCRIPTION - + ## DBsubject(Algebra) ## DBchapter(Factoring) ## DBsection(Factoring trinomials) @@ -12,7 +12,7 @@ ## MO(1) ## KEYWORDS('college algebra', 'factoring') - + ########################### # Initialization @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -49,28 +49,28 @@ if ( $chooser == 1) { Context("LimitedFactor"); $answer=Formula("(2x+1)(3x+4)"); -} +} elsif ( $chooser == 2 ) { $polynomial=Formula("6x^2-23x-4"); Context("LimitedFactor"); $answer=Formula("(6x+1)(x-4)"); -} +} elsif ( $chooser == 3 ) { $polynomial=Formula("5x^2-13x-6"); Context("LimitedFactor"); $answer=Formula("(5x+2)(x-3)"); -} +} else { $polynomial=Formula("12x^2-5x-3"); Context("LimitedFactor"); $answer=Formula("(3x+1)(4x-3)"); -} +} @@ -84,7 +84,7 @@ Factor the following polynomial expression. [`` [$polynomial] ``] -Factored Form: [_______________]{$answer} [@ AnswerFormatHelp("formulas") @]* +Factored Form: [_______________]{$answer} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_G.pg b/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_G.pg index 458842249b..2770e6b984 100644 --- a/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_G.pg +++ b/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_1_5_G.pg @@ -2,7 +2,7 @@ ## College Algebra ## ENDDESCRIPTION - + ## DBsubject(Algebra) ## DBchapter(Factoring) ## DBsection(Factoring trinomials) @@ -12,7 +12,7 @@ ## MO(1) ## KEYWORDS('college algebra', 'factoring') - + ########################### # Initialization @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -48,20 +48,20 @@ if ( $chooser == 1) { Context("LimitedFactor"); $answer=Compute("(2x+1)(3x-5)"); -} +} elsif ( $chooser == 2 ) { $polynomial=Formula("6x^2+13x-5"); Context("LimitedFactor"); $answer=Formula("(3x-1)(2x+5)"); -} +} else { $polynomial=Formula("6x^2-17x-3"); Context("LimitedFactor"); $answer=Formula("(6x+1)(x-3)"); -} +} @@ -75,7 +75,7 @@ Factor the following polynomial expression. [`` [$polynomial] ``] -Factored Form: [_______________]{$answer} [@ AnswerFormatHelp("formulas") @]* +Factored Form: [_______________]{$answer} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_10.pg b/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_10.pg index 3da78e4eba..f8e0fe0301 100644 --- a/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_10.pg +++ b/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_10.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -46,8 +46,8 @@ $sign = random(1,2); # sign of constant on RHS $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -65,11 +65,11 @@ BEGIN_PGML [$video]* -Solve the following equation for [`x`]: +Solve the following equation for [`x`]: [``- \dfrac{[$a]}{[$b]} - \dfrac{[$c]}{[$d]}x = \dfrac{[$e]}{[$d]}``] -` x =` [_______________]{$solution} [@ AnswerFormatHelp("numbers") @]* +` x =` [_______________]{$solution} [@ helpLink("numbers") @]* END_PGML BEGIN_TEXT @@ -85,11 +85,11 @@ else { $solution = Fraction(-$d*$a + $b*$e, $c*$b); BEGIN_PGML -Solve the following equation for [`x`]: +Solve the following equation for [`x`]: [``- \dfrac{[$a]}{[$b]} - \dfrac{[$c]}{[$d]}x = -\dfrac{[$e]}{[$d]}``] -`x =` [_______________]{$solution} [@ AnswerFormatHelp("numbers") @]* +`x =` [_______________]{$solution} [@ helpLink("numbers") @]* [$video]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_57.pg b/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_57.pg index 7e14214558..fb226a1327 100644 --- a/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_57.pg +++ b/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_57.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "scaffold.pl", @@ -31,9 +31,9 @@ $showPartialCorrectAnswers = 1; ########################### -# Setup +# Setup $u=non_zero_random(1,3); # three possibilities for the details of the rental car contract -if ($u == 1) { +if ($u == 1) { $m = 0.15; $b = 65; } elsif ($u == 2) { @@ -60,7 +60,7 @@ $ans3 = round(($cost2 - $b) / $m); # Main text Scaffold::Begin(); - + Section::Begin("Part 1"); BEGIN_PGML @@ -71,20 +71,20 @@ Suppose that the cost of a rental car is $[`{[$b]}`] for a week plus $[`{[$m]}`] where [`x`] is the number of miles driven. What is the total cost of the car if you travel [`{[$mileage]}`] miles? - [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* + [_______________]{$ans1} [@ helpLink("numbers") @]* END_PGML Section::End(); - + Section::Begin("Part 2"); BEGIN_PGML -If the total cost of your rental for one week is $[`{[$cost]}`], how many miles did you travel? +If the total cost of your rental for one week is $[`{[$cost]}`], how many miles did you travel? - [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* + [_______________]{$ans2} [@ helpLink("numbers") @]* END_PGML ############################ @@ -101,12 +101,12 @@ Section::Begin("Part 3"); BEGIN_PGML Suppose that you have a maximum of $[`{[$cost2]}`] to spend on a car rental. What is the maximum number of miles that you can travel? Round your answer to the nearest whole number. - [_______________]{$ans3} [@ AnswerFormatHelp("numbers") @]* + [_______________]{$ans3} [@ helpLink("numbers") @]* END_PGML Section::End(); - + Scaffold::End(); ############################ diff --git a/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_EnteringAnswers1.pg b/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_EnteringAnswers1.pg index 47fb00c30b..ce89bac644 100644 --- a/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_EnteringAnswers1.pg +++ b/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_EnteringAnswers1.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -49,11 +49,11 @@ $ans = Compute("2*x^2 + y^(3/2) - (1/5)*z^3"); BEGIN_PGML -Enter the given algebraic expression in the answer box. +Enter the given algebraic expression in the answer box. [``2x^2 + y^\frac{3}{2} - \frac{1}{5}z^3``] -[___________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[___________________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_EnteringAnswers2.pg b/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_EnteringAnswers2.pg index bb0c3e1299..6225772484 100644 --- a/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_EnteringAnswers2.pg +++ b/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_EnteringAnswers2.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -49,11 +49,11 @@ $ans = Compute("sqrt(x^3 + 1/7)"); BEGIN_PGML -Enter the given algebraic expression in the answer box. +Enter the given algebraic expression in the answer box. [``\sqrt{x^3 + \frac{1}{7}}``] -[___________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[___________________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_EnteringAnswers3.pg b/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_EnteringAnswers3.pg index a6a0cc9e64..170fee5adb 100644 --- a/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_EnteringAnswers3.pg +++ b/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_EnteringAnswers3.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -49,11 +49,11 @@ $ans = Compute("(x^3 + 2x + 1)/(x^2 - 1)"); BEGIN_PGML -Enter the given algebraic expression in the answer box. +Enter the given algebraic expression in the answer box. [``\frac{x^3 + 2x + 1}{x^2 - 1}``] -[___________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[___________________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_PropertiesofExponents1.pg b/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_PropertiesofExponents1.pg index 4cc71ab80a..c2f5a6062d 100644 --- a/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_PropertiesofExponents1.pg +++ b/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/CCD_CCCS_PropertiesofExponents1.pg @@ -24,7 +24,7 @@ loadMacros( "MathObjects.pl", "parserAssignment.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -69,7 +69,7 @@ BEGIN_PGML Simplify the expression [`[$b]^{[$a]}`]. Type your answer as a single reduced fraction. -[`[$b]^{[$a]}=`][__________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`[$b]^{[$a]}=`][__________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_13.pg b/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_13.pg index 76c784c5c6..a07ecc36de 100644 --- a/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_13.pg +++ b/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_13.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -53,11 +53,11 @@ $answer1 = ($e+$a*$c)/($a*$b+1-$d); # Main text BEGIN_PGML -Solve the following equation for [`x`]: +Solve the following equation for [`x`]: [`` [$a]([$b]x-[$c])+x = [$d]x+[$e]``] -[`x =`][_______________]{$answer1} [@ AnswerFormatHelp("numbers") @]* +[`x =`][_______________]{$answer1} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_22.pg b/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_22.pg index cd2568900e..8bc8451e09 100644 --- a/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_22.pg +++ b/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_22.pg @@ -24,7 +24,7 @@ loadMacros( "MathObjects.pl", "parserAssignment.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,8 +51,8 @@ $eqn = Formula("y=-$c/$d*x+($b+($a*$c)/$d)"); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -68,7 +68,7 @@ BEGIN_PGML Find the equation of the line that contains point [`([$a],[$b])`] with a slope of [` -\dfrac{[$c]}{[$d]} `]. Write the answer in slope-intercept form. -[___________]{$eqn} [@ AnswerFormatHelp("equation") @]* +[___________]{$eqn} [@ helpLink("equation") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_30.pg b/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_30.pg index 85a27c58a0..4ae9b55a89 100644 --- a/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_30.pg +++ b/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_30.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -46,8 +46,8 @@ $intercept = $b-$a*$slope; $ans = Formula("$slope*x+$intercept")->reduce; $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -61,11 +61,11 @@ BEGIN_PGML Find the equation of the line passing through the points [` ([$a] ,[$b] ) `] and -[` ( [$c], [$d]) . `] +[` ( [$c], [$d]) . `] -[`y=`] [_______________]{$ans} -[@ AnswerFormatHelp("formulas") @]* +[`y=`] [_______________]{$ans} +[@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_8.pg b/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_8.pg index 0d890bacd5..5a99d22792 100644 --- a/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_8.pg +++ b/Contrib/CCCS/CollegeAlgebra/Prerequisite_Review/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_8.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -48,11 +48,11 @@ $answer1 = Fraction($c*$e-$b-$a*$d, $a-$c); # Main text BEGIN_PGML -Solve the following equation for [`x`]: +Solve the following equation for [`x`]: [`[$a](x+[$d])+[$b]=[$c](x+[$e])`] -[` x = `][_______________]{$answer1} [@ AnswerFormatHelp("numbers") @]* +[` x = `][_______________]{$answer1} [@ helpLink("numbers") @]* END_PGML @@ -62,7 +62,7 @@ END_PGML BEGIN_PGML_HINT -First remove the parenthesis by distributing, then solve for x. +First remove the parenthesis by distributing, then solve for x. END_PGML_HINT ############################ diff --git a/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_22.pg b/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_22.pg index fca909e93e..ef18577e26 100644 --- a/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_22.pg +++ b/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_22.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl" @@ -49,8 +49,8 @@ $ans = Compute ( 2*pi*[$r]*[$a]/360); Context()->functions->disable("SimpleTrig"); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -68,7 +68,7 @@ Use the below diagram to find the length of the arc between points A and C. The -[_______________]{$ans} inches :: [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans} inches :: [@ helpLink("numbers") @]* [$video]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_23.pg b/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_23.pg index eb4559d646..b636dd5f89 100644 --- a/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_23.pg +++ b/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_23.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl" @@ -60,7 +60,7 @@ Use the below diagram to find the area of the shaded region if the radius of the -[_______________]{$ans} inches[`^2`] :: [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans} inches[`^2`] :: [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_24.pg b/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_24.pg index 7e0d42b4a4..61febd740b 100644 --- a/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_24.pg +++ b/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_24.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl" @@ -62,7 +62,7 @@ Use the below diagram to find the length of the arc between points A and C if th -[_______________]{$ans} inches :: [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans} inches :: [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_25.pg b/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_25.pg index 6fa1095ff7..b03f2bb473 100644 --- a/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_25.pg +++ b/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_25.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl" @@ -68,7 +68,7 @@ BEGIN_PGML -[_______________]{$ans} inches[`^2`] :: [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans} inches[`^2`] :: [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_26.pg b/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_26.pg index 1e03f70236..2a5c0e8731 100644 --- a/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_26.pg +++ b/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_26.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl" @@ -40,14 +40,14 @@ Context("Numeric"); $n=random(0,15,1); -# Array of 16 angles +# Array of 16 angles @latexangle=("pi/6", "pi/4" ,"pi/3" ,"pi/2", "(2pi)/3" , "(3pi)/4", "(5pi)/6", "pi", "(7pi)/6", "(5pi)/4", "(4pi)/3", "(3pi)/2", "(5pi)/3", "(7pi)/4", "(11pi)/6", "2pi"); # Selecting angle for PGML $a = $latexangle[$n] ; -# Array of 16 angles +# Array of 16 angles @answerangle = (30, 45, 60, 90,120, 135,150,180, 210, 225, 240, 270, 300, 315, 330, 360); @@ -57,8 +57,8 @@ $ans = $answerangle[$n] ; Context()->functions->disable("SimpleTrig"); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -67,9 +67,9 @@ TeX => # Main text BEGIN_PGML -Convert the given angle measure in radians to degrees. +Convert the given angle measure in radians to degrees. -`[$a] =` [_______________]{$ans} degrees :: [@ AnswerFormatHelp("numbers") @]* +`[$a] =` [_______________]{$ans} degrees :: [@ helpLink("numbers") @]* [$video]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_27.pg b/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_27.pg index 580a5aedbc..6f887700bd 100644 --- a/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_27.pg +++ b/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_27.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl" @@ -40,14 +40,14 @@ Context("Numeric"); $n=random(0,23,1); -# Array of 24 angles +# Array of 24 angles @latexangle=("pi/9","pi/6", "pi/4" ,"pi/3" ,"(7pi)/18","pi/2","(11pi)/18", "(2pi)/3" , "(3pi)/4", "(5pi)/6", "(8pi)/9","pi", "(10pi)/9","(7pi)/6)", "(5pi)/4", "(4pi)/3", "(25pi)/18", "(3pi)/2", "(29pi)/18", "(5pi)/3", "(7pi)/4", "(11pi)/6", "(17pi)/9","2pi"); # Selecting angle for PGML $a = $latexangle[$n] ; -# Array of 24 angles +# Array of 24 angles @answerangle = (20, 30,45, 60, 70,90,110,120, 135,150, 160,180, 200,210,225,240,250,270,290,300,315,330,340,360); @@ -61,9 +61,9 @@ Context()->functions->disable("SimpleTrig"); # Main text BEGIN_PGML -Convert the given angle in radians to degrees. +Convert the given angle in radians to degrees. -`[$a] =` [_______________]{$ans} degrees :: [@ AnswerFormatHelp("numbers") @]* +`[$a] =` [_______________]{$ans} degrees :: [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_28.pg b/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_28.pg index b09a594c24..81b393a0e2 100644 --- a/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_28.pg +++ b/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_28.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl" @@ -40,14 +40,14 @@ Context("Numeric"); $n=random(0,22,1); -# Array of 23 angles +# Array of 23 angles @latexangle=("-pi/9","-pi/6", "-pi/4" ,"-pi/3" ,"-(7pi)/18","-pi/2","-(11pi)/18", "-(2pi)/3" , "-(3pi)/4", "-(5pi)/6", "-(8pi)/9","-pi", "-(10pi)/9","-(7pi)/6)", "-(5pi)/4", "-(4pi)/3", "-(25pi)/18", "-(3pi)/2", "-(29pi)/18", "-(5pi)/3", "-(7pi)/4", "-(11pi)/6", "-(17pi)/9"); # Selecting angle for PGML $a = $latexangle[$n] ; -# Array of 24 angles +# Array of 24 angles @answerangle =(-20, -30 , -45 , -60 , -70 , -90, -110, -120, -135, -150, -160, -180,-200,-210,-225, -240, -250, -270, -290, -300, -315, -330, -340); @@ -62,9 +62,9 @@ Context()->functions->disable("SimpleTrig"); # Main text BEGIN_PGML -Convert the given angle in radians to degrees. +Convert the given angle in radians to degrees. -`[$a] =` [_______________]{$ans} degrees :: [@ AnswerFormatHelp("numbers") @]* +`[$a] =` [_______________]{$ans} degrees :: [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_29.pg b/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_29.pg index 6ea0087728..92be9dabab 100644 --- a/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_29.pg +++ b/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_29.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl" @@ -40,14 +40,14 @@ Context("Numeric"); $n=random(0,15,1); -# Array of 16 angles +# Array of 16 angles @latexangle=("pi/6", "pi/4" ,"pi/3" ,"pi/2", "(2pi)/3" , "(3pi)/4", "(5pi)/6", "pi", "(7pi)/6)", "(5pi)/4", "(4pi)/3", "(3pi)/2", "(5pi)/3", "(7pi)/4", "(11pi)/6", "2pi"); # Selecting angle for PGML $a = $latexangle[$n] ; -# Array of 16 angles +# Array of 16 angles @answerangle = (30,45, 60,90,120, 135,150,180,210,225,240,270,300,315,330,360); @@ -61,9 +61,9 @@ Context()->functions->disable("SimpleTrig"); # Main text BEGIN_PGML -Convert the given angle in radians to degrees. +Convert the given angle in radians to degrees. -`[$a] =` [_______________]{$ans} degrees :: [@ AnswerFormatHelp("numbers") @]* +`[$a] =` [_______________]{$ans} degrees :: [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_33.pg b/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_33.pg index 39cea72fc5..59099d8bc7 100644 --- a/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_33.pg +++ b/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_33.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl" @@ -40,7 +40,7 @@ Context("Numeric"); $n=random(0,15,1); -# Array of 16 angles +# Array of 16 angles @latexangle= (30,45, 60,90,120, 135,150,180,210,225,240,270,300,315,330,360); @@ -50,7 +50,7 @@ $n=random(0,15,1); $a = $latexangle[$n] ; -# Array of 16 angles +# Array of 16 angles @answerangle = (pi/6, pi/4 ,pi/3 ,pi/2, 2*pi/3 , 3*pi/4, 5*pi/6, pi, 7*pi/6, 5*pi/4, 4*pi/3, 3*pi/2, 5*pi/3, 7*pi/4, 11*pi/6,2*pi); @@ -66,7 +66,7 @@ Parser::Number::NoDecimals; BEGIN_PGML Convert the given angle in degrees to radians. Enter answer as a fraction. -[`[$a]^{\circ} =`] [_______________]{$ans} :: [@ AnswerFormatHelp("numbers") @]* +[`[$a]^{\circ} =`] [_______________]{$ans} :: [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_34.pg b/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_34.pg index dcb10105f1..494511377a 100644 --- a/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_34.pg +++ b/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_34.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl" @@ -36,10 +36,10 @@ TEXT(beginproblem()); Context("Numeric"); -# Array of 16 angles +# Array of 16 angles $a= random(0 , 360, 10); -# Array of 16 angles +# Array of 16 angles $ans = Compute($a*(pi/180)); @@ -53,7 +53,7 @@ Parser::Number::NoDecimals; BEGIN_PGML Convert the given angle in degrees to radians. Enter answer as a fraction. -[`[$a]^{\circ} =`] [_______________]{$ans} :: [@ AnswerFormatHelp("numbers") @]* +[`[$a]^{\circ} =`] [_______________]{$ans} :: [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_35.pg b/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_35.pg index 7fb0a1022d..77d84dd00c 100644 --- a/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_35.pg +++ b/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_35.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl" @@ -51,7 +51,7 @@ Parser::Number::NoDecimals; BEGIN_PGML Convert the given angle in degrees to radians. Enter answer as a fraction. -[`[$a]^{\circ}=`] [_______________]{$ans} :: [@ AnswerFormatHelp("numbers") @]* +[`[$a]^{\circ}=`] [_______________]{$ans} :: [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_36.pg b/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_36.pg index 3c95456974..f1a01fbd91 100644 --- a/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_36.pg +++ b/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_36.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl" @@ -51,7 +51,7 @@ Parser::Number::NoDecimals; BEGIN_PGML Convert the given angle in degrees to radians. Enter answer as a fraction. -[`[$a]^{\circ} =`][_______________]{$ans} :: [@ AnswerFormatHelp("numbers") @]* +[`[$a]^{\circ} =`][_______________]{$ans} :: [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_40.pg b/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_40.pg index 28191c6a4e..a5b87dccc1 100644 --- a/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_40.pg +++ b/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_40.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl" @@ -66,7 +66,7 @@ BEGIN_PGML Find the length of the arc of a circle of radius [`[$r]`] inches subtended by a central angle of `[$a]` radians. -[_______________]{$ans} inches :: [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans} inches :: [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_42.pg b/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_42.pg index 1fa47f74bd..df63fe87eb 100644 --- a/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_42.pg +++ b/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_42.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl" @@ -65,7 +65,7 @@ BEGIN_PGML Find the length of the arc of a circle of diameter `[$d]` meters subtended by a central angle of `[$a]` radians. -[_______________]{$ans} meters :: [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans} meters :: [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_46.pg b/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_46.pg index aa09a1940e..7635202eb1 100644 --- a/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_46.pg +++ b/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_46.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl" @@ -53,10 +53,10 @@ Context()->functions->disable("SimpleTrig"); # Main text BEGIN_PGML -Find the area of a sector of a circle with a central angle of [`[$a]^{\circ}`] and a radius of `[$r]` cm. +Find the area of a sector of a circle with a central angle of [`[$a]^{\circ}`] and a radius of `[$r]` cm. -[_______________]{$ans} cm[`^2`] :: [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans} cm[`^2`] :: [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_48.pg b/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_48.pg index c1fa5b6eeb..970d7026f2 100644 --- a/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_48.pg +++ b/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_48.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl" @@ -65,7 +65,7 @@ BEGIN_PGML Find the area of a sector of a circle with diameter `[$d]` feet and an angle of `[$a]` radians -[_______________]{$ans} feet[`^2`] :: [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans} feet[`^2`] :: [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_50.pg b/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_50.pg index 30775a9bf4..ea044acee7 100644 --- a/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_50.pg +++ b/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_50.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl" @@ -44,8 +44,8 @@ $ans = Compute(($a+360)); Context()->functions->disable("SimpleTrig"); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -56,13 +56,13 @@ TeX => # Main text BEGIN_PGML -Find the angle between [`0^{\circ} `] and [`360^{\circ} `] that is coterminal to the given angle. +Find the angle between [`0^{\circ} `] and [`360^{\circ} `] that is coterminal to the given angle. [`[$a]^{\circ} `] -[_______________]{$ans}degrees :: [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans}degrees :: [@ helpLink("numbers") @]* [$video]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_51.pg b/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_51.pg index afc92172e8..b734a7cdc2 100644 --- a/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_51.pg +++ b/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_51.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl" @@ -48,13 +48,13 @@ Context()->functions->disable("SimpleTrig"); # Main text BEGIN_PGML -Find the angle between [`0^{\circ} `] and [`360^{\circ} `] that is coterminal to the given angle. +Find the angle between [`0^{\circ} `] and [`360^{\circ} `] that is coterminal to the given angle. [`[$a]^{\circ} `] -[_______________]{$ans}degrees :: [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans}degrees :: [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_52.pg b/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_52.pg index 49a7c6ade5..1eb9fe1e07 100644 --- a/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_52.pg +++ b/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_52.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl" @@ -48,13 +48,13 @@ Context()->functions->disable("SimpleTrig"); # Main text BEGIN_PGML -Find the angle between [`0^{\circ} `] and [`360^{\circ} `] that is coterminal to the given angle. +Find the angle between [`0^{\circ} `] and [`360^{\circ} `] that is coterminal to the given angle. [`[$a]^{\circ} `] -[_______________]{$ans}degrees :: [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans}degrees :: [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_53.pg b/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_53.pg index 9d081b7ba4..018435555c 100644 --- a/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_53.pg +++ b/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_53.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl" @@ -48,13 +48,13 @@ Context()->functions->disable("SimpleTrig"); # Main text BEGIN_PGML -Find the angle between [`0^{\circ} `] and [`360^{\circ} `] that is coterminal to the given angle. +Find the angle between [`0^{\circ} `] and [`360^{\circ} `] that is coterminal to the given angle. [`[$a]^{\circ} `] -[_______________]{$ans}degrees :: [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans}degrees :: [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_54.pg b/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_54.pg index 528d48ca55..fc05476172 100644 --- a/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_54.pg +++ b/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_54.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl" @@ -39,14 +39,14 @@ Context("Numeric"); $n=random(0,14,1); -# Array of 15 angles +# Array of 15 angles @latexangle=("-pi/6", "-pi/4" ,"-pi/3" ,"-pi/2", "-(2pi)/3" , "-(3pi)/4", "-(5pi)/6", "-pi", "-(7pi)/6", "-(5pi)/4", "-(4pi)/3", "-(3pi)/2", "-(5pi)/3", "-(7pi)/4", "-(11pi)/6"); # Selecting angle for PGML $a = $latexangle[$n] ; -# Array of 15 angles +# Array of 15 angles @answerangle = ( 11*pi/6, 7*pi/4, 5*pi/3, 3*pi/2, 4*pi/3, 5*pi/4, 7*pi/6, pi, 5*pi/6, 3*pi/4, 2*pi/3, pi/2, pi/3, pi/4, pi/6); @@ -60,12 +60,12 @@ Parser::Number::NoDecimals; # Main text BEGIN_PGML -Find the exact angle between 0 and [`2\pi`] radians that is coterminal to the given angle. +Find the exact angle between 0 and [`2\pi`] radians that is coterminal to the given angle. `[$a]` -[_______________]{$ans} :: [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans} :: [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_55.pg b/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_55.pg index 5a96874044..fe85bd7f2e 100644 --- a/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_55.pg +++ b/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_55.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl" @@ -39,14 +39,14 @@ Context("Numeric"); $n=random(0,7,1); -# Array of 15 angles. Only 8 are available to avoid possible repetition with the next problem. +# Array of 15 angles. Only 8 are available to avoid possible repetition with the next problem. @latexangle=("(13pi)/6", "(9pi)/4" ,"(7pi)/3" ,"(5pi)/2", "(8pi)/3" , "(11pi)/4", "(17pi)/6", "pi", "(19pi)/6", "(13pi)/4", "(10pi)/3", "(7pi)/2", "(11pi)/3", "(15pi)/4", "(23pi)/6"); # Selecting angle for PGML $a = $latexangle[$n] ; -# Array of 15 angles +# Array of 15 angles @answerangle = (pi/6, pi/4 ,pi/3 ,pi/2, 2*pi/3 , 3*pi/4, 5*pi/6, pi, 7*pi/6, 5*pi/4, 4*pi/3, 3*pi/2, 5*pi/3, 7*pi/4, 11*pi/6); @@ -60,12 +60,12 @@ Context()->functions->disable("SimpleTrig"); # Main text BEGIN_PGML -Find the exact angle between 0 and [`2\pi`] radians that is coterminal to the given angle. +Find the exact angle between 0 and [`2\pi`] radians that is coterminal to the given angle. `[$a]` -[_______________]{$ans} :: [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans} :: [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_56.pg b/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_56.pg index eeb235fe42..a6d031a4ba 100644 --- a/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_56.pg +++ b/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_56.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl" @@ -39,14 +39,14 @@ Context("Numeric"); $n=random(0,14,1); -# Array of 15 angles +# Array of 15 angles @latexangle=("(13pi)/6", "(9pi)/4" ,"(7pi)/3" ,"(5pi)/2", "(8pi)/3" , "(11pi)/4", "(17pi)/6", "3pi", "(19pi)/6", "(13pi)/4", "(10pi)/3", "(7pi)/2", "(11pi)/3", "(15pi)/4", "(23pi)/6"); # Selecting angle for PGML $a = $latexangle[$n] ; -# Array of 15 angles +# Array of 15 angles @answerangle = (pi/6, pi/4 ,pi/3 ,pi/2, 2*pi/3 , 3*pi/4, 5*pi/6, pi, 7*pi/6, 5*pi/4, 4*pi/3, 3*pi/2, 5*pi/3, 7*pi/4, 11*pi/6); @@ -60,12 +60,12 @@ Context()->functions->disable("SimpleTrig"); # Main text BEGIN_PGML -Find the exact angle between 0 and [`2\pi`] radians that is coterminal to the given angle. +Find the exact angle between 0 and [`2\pi`] radians that is coterminal to the given angle. `[$a]` -[_______________]{$ans} :: [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans} :: [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_57.pg b/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_57.pg index 887b2289dd..7ca7cb4bdd 100644 --- a/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_57.pg +++ b/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_57.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl" @@ -39,14 +39,14 @@ Context("Numeric"); $n=random(0,14,1); -# Array of 15 angles +# Array of 15 angles @latexangle=("(25pi)/6", "(17pi)/4" ,"(13pi)/3" ,"(9pi)/2", "(14pi)/3" , "(19pi)/4", "(29pi)/6", "5pi", "(31pi)/6", "(21pi)/4", "(16pi)/3", "(11pi)/2", "(17pi)/3", "(23pi)/4", "(35pi)/6"); # Selecting angle for PGML $a = $latexangle[$n] ; -# Array of 15 angles +# Array of 15 angles @answerangle = (pi/6, pi/4 ,pi/3 ,pi/2, 2*pi/3 , 3*pi/4, 5*pi/6, pi, 7*pi/6, 5*pi/4, 4*pi/3, 3*pi/2, 5*pi/3, 7*pi/4, 11*pi/6); @@ -60,12 +60,12 @@ Context()->functions->disable("SimpleTrig"); # Main text BEGIN_PGML -Find the exact angle between 0 and [`2\pi`] radians that is coterminal to the given angle. +Find the exact angle between 0 and [`2\pi`] radians that is coterminal to the given angle. `[$a]` -[_______________]{$ans} :: [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans} :: [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_59.pg b/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_59.pg index 880d15833d..83e764c96f 100644 --- a/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_59.pg +++ b/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_59.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl" @@ -51,8 +51,8 @@ $ans2 = Compute ($ans1/(2*pi)); Context()->functions->disable("SimpleTrig"); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -63,16 +63,16 @@ TeX => # Main text BEGIN_PGML -A bicycle with `[$d]`-inch diameter wheels is traveling at `[$s]` miles/hour. Find the angular speed of the wheels in radians/minute. +A bicycle with `[$d]`-inch diameter wheels is traveling at `[$s]` miles/hour. Find the angular speed of the wheels in radians/minute. -[_______________]{$ans1} :: [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans1} :: [@ helpLink("numbers") @]* -How many revolutions per minute do the wheels make? +How many revolutions per minute do the wheels make? -[_______________]{$ans2} :: [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans2} :: [@ helpLink("numbers") @]* [$video]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_60.pg b/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_60.pg index 8dd177aada..1ef5728485 100644 --- a/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_60.pg +++ b/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_60.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl" @@ -57,18 +57,18 @@ Context()->functions->disable("SimpleTrig"); # Main text BEGIN_PGML -A wheel of radius `[$r]` inches is rotating [`[$s]^{\circ}`] per second. +A wheel of radius `[$r]` inches is rotating [`[$s]^{\circ}`] per second. Find the following: -The linear speed in inches per second `= `[_______________]{$ans1} :: [@ AnswerFormatHelp("numbers") @]* +The linear speed in inches per second `= `[_______________]{$ans1} :: [@ helpLink("numbers") @]* -The angular speed in RPMs (Revolutions per minute) `=` [_______________]{$ans2} :: [@ AnswerFormatHelp("numbers") @]* +The angular speed in RPMs (Revolutions per minute) `=` [_______________]{$ans2} :: [@ helpLink("numbers") @]* -The angular speed in radians per second `=` [_______________]{$ans3} :: [@ AnswerFormatHelp("numbers") @]* +The angular speed in radians per second `=` [_______________]{$ans3} :: [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_67.pg b/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_67.pg index b6d369cba2..4602a0f7a4 100644 --- a/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_67.pg +++ b/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_67.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl" @@ -51,10 +51,10 @@ Context()->functions->disable("SimpleTrig"); # Main text BEGIN_PGML -Consider a clock with an hour hand and a minute hand. What is the measure of the angle the minute hand traces in `[$m]` minutes. Your answer should be in radians. +Consider a clock with an hour hand and a minute hand. What is the measure of the angle the minute hand traces in `[$m]` minutes. Your answer should be in radians. -[_______________]{$ans} :: [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans} :: [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_73.pg b/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_73.pg index 5391395319..ce88298bb9 100644 --- a/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_73.pg +++ b/Contrib/CCCS/PreCalculus/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_73.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl" @@ -59,10 +59,10 @@ Context()->functions->disable("SimpleTrig"); # Main text BEGIN_PGML -During the time that a car travels `[$m]` miles, its tires make `[$rev]` revolutions. What is the radius of the tires in inches? +During the time that a car travels `[$m]` miles, its tires make `[$rev]` revolutions. What is the radius of the tires in inches? -[_______________]{$ans1} inches :: [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans1} inches :: [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_06.pg b/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_06.pg index 45ae8e29a0..2eee843fc6 100644 --- a/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_06.pg +++ b/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_06.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl" @@ -50,7 +50,7 @@ $ans1 = Compute ( 90-$a); BEGIN_PGML -Use cofunctions of complementary angles to answer the following. +Use cofunctions of complementary angles to answer the following. [` \cos{([$a]^{\circ})} = \sin{ }\Big( `] [______]{$ans1} [`^{\circ}\Big) `] END_PGML diff --git a/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_10.pg b/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_10.pg index 51da22e18d..cc8279275d 100644 --- a/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_10.pg +++ b/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_10.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -54,7 +54,7 @@ $d = Compute( "$a/$c"); BEGIN_PGML -Use the given information below to find the lengths of the missing sides of a triangle. Side [`a`] is opposite angle [`A`], side [`b`] is opposite angle [`B`], and side [`c`] is the hypotenuse. +Use the given information below to find the lengths of the missing sides of a triangle. Side [`a`] is opposite angle [`A`], side [`b`] is opposite angle [`B`], and side [`c`] is the hypotenuse. diff --git a/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_11.pg b/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_11.pg index 6c7932787b..b0f684ea7b 100644 --- a/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_11.pg +++ b/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_11.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -52,7 +52,7 @@ $d = Compute( "$b/$c"); BEGIN_PGML -Use the given information below to find the lengths of the missing sides of a triangle. Side [`a`] is opposite angle [`A`], side [`b`] is opposite angle [`B`], and side [`c`] is the hypotenuse. +Use the given information below to find the lengths of the missing sides of a triangle. Side [`a`] is opposite angle [`A`], side [`b`] is opposite angle [`B`], and side [`c`] is the hypotenuse. sin [`(B) =\displaystyle\frac{1}{2}`] and [`a = [$a]`] diff --git a/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_12.pg b/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_12.pg index 9a4b14e923..71b9473b2c 100644 --- a/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_12.pg +++ b/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_12.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -52,7 +52,7 @@ $d = Compute( "$b/$c"); BEGIN_PGML -Use the given information below to find the lengths of the missing sides of a triangle. Side [`a`] is opposite angle [`A`], side [`b`] is opposite angle [`B`], and side [`c`] is the hypotenuse. +Use the given information below to find the lengths of the missing sides of a triangle. Side [`a`] is opposite angle [`A`], side [`b`] is opposite angle [`B`], and side [`c`] is the hypotenuse. tan [`(A) =\displaystyle\frac{5}{12}`] and [`b = [$b]`] diff --git a/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_13.pg b/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_13.pg index c57df1fef9..7a66034d66 100644 --- a/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_13.pg +++ b/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_13.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -52,7 +52,7 @@ $d = Compute( "$b/$c"); BEGIN_PGML -Use the given information below to find the lengths of the missing sides of a triangle. Side [`a`] is opposite angle [`A`], side [`b`] is opposite angle [`B`], and side [`c`] is the hypotenuse. +Use the given information below to find the lengths of the missing sides of a triangle. Side [`a`] is opposite angle [`A`], side [`b`] is opposite angle [`B`], and side [`c`] is the hypotenuse. tan [`(A) =100`] and [`b = [$b]`] diff --git a/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_18.pg b/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_18.pg index dc94c37f66..d2c6717c74 100644 --- a/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_18.pg +++ b/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_18.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", diff --git a/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_19.pg b/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_19.pg index d7ea3dea64..f2f9d450bf 100644 --- a/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_19.pg +++ b/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_19.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", diff --git a/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_20.pg b/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_20.pg index b79c969b5c..4aa872326d 100644 --- a/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_20.pg +++ b/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_20.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", diff --git a/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_21.pg b/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_21.pg index 02033132e0..4e7534621a 100644 --- a/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_21.pg +++ b/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_21.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", diff --git a/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_22.pg b/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_22.pg index 1af11afe04..8b485430bd 100644 --- a/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_22.pg +++ b/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_22.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", diff --git a/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_23.pg b/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_23.pg index bbc1438326..77a6e8d071 100644 --- a/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_23.pg +++ b/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_23.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", diff --git a/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_24.pg b/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_24.pg index e7ab08a0c8..c50e100909 100644 --- a/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_24.pg +++ b/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_24.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", diff --git a/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_25.pg b/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_25.pg index 415fe2f364..7332989e69 100644 --- a/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_25.pg +++ b/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_25.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", diff --git a/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_26.pg b/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_26.pg index 7143d38ce3..6e06c55d04 100644 --- a/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_26.pg +++ b/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_26.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", diff --git a/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_27.pg b/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_27.pg index 6fc7e1120e..40ca9c4262 100644 --- a/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_27.pg +++ b/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_27.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", diff --git a/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_28.pg b/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_28.pg index d9d6b51f5c..392305de80 100644 --- a/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_28.pg +++ b/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_28.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", diff --git a/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_29.pg b/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_29.pg index f063ed9720..f3bd443745 100644 --- a/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_29.pg +++ b/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_29.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", diff --git a/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_30.pg b/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_30.pg index df43dcd3ad..657b46eefd 100644 --- a/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_30.pg +++ b/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_30.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", diff --git a/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_31.pg b/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_31.pg index 997f1bc4c8..0d96319fa9 100644 --- a/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_31.pg +++ b/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_31.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", diff --git a/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_32.pg b/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_32.pg index 37215271aa..32502f1baa 100644 --- a/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_32.pg +++ b/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_32.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -57,7 +57,7 @@ BEGIN_PGML Use a calculator to solve for the unknown sides in the above diagram given [`b =[$b]`]. Round all values to the nearest hundredth. -`a =` [____________]{$a} +`a =` [____________]{$a} `c =` [____________]{$c} diff --git a/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_34.pg b/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_34.pg index 1b62f7feba..bcd8136497 100644 --- a/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_34.pg +++ b/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_34.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", diff --git a/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_42.pg b/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_42.pg index ea8a3545dc..2cb53f549f 100644 --- a/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_42.pg +++ b/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_42.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", diff --git a/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_44.pg b/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_44.pg index c5cbe6a92e..e24262d3e4 100644 --- a/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_44.pg +++ b/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_44.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", diff --git a/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_48.pg b/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_48.pg index b30e947374..8d724cbb77 100644 --- a/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_48.pg +++ b/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_48.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", diff --git a/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_52.pg b/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_52.pg index 60f33fcacc..d4ce3ab965 100644 --- a/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_52.pg +++ b/Contrib/CCCS/PreCalculus/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_52.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", diff --git a/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_10.pg b/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_10.pg index b8fb5860a6..406db006e0 100644 --- a/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_10.pg +++ b/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_10.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -49,14 +49,14 @@ Parser::Number::NoDecimals; $n=random(0,7,1); -# Array of 8 angles +# Array of 8 angles @latexfraction=("pi/2", "pi/3" ,"pi/4" ,"pi/6", "(2pi)/3" , "(3pi)/4", "(5pi)/6", "pi"); # Selecting angle for PGML $a = $latexfraction[$n] ; -# Array of 8 angles +# Array of 8 angles @fraction=(pi/2, pi/3 ,pi/4 ,pi/6, 2*pi/3, 3*pi/4, 5*pi/6, pi); # Selecting angle for Compute @@ -65,8 +65,8 @@ $b = $fraction[$n] ; $ans = sin($b); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -81,9 +81,9 @@ Find the exact value of the trigonometric function. `sin([$a])` -[_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans} [@ helpLink("numbers") @]* -[$video]* +[$video]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_11.pg b/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_11.pg index 36e02e7dfe..aa3d82061e 100644 --- a/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_11.pg +++ b/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_11.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -47,14 +47,14 @@ Parser::Number::NoDecimals; $n=random(0,3,1); -# Array of 4 angles +# Array of 4 angles @latexangle=("pi/2", "pi/3" ,"pi/4" ,"pi/6"); # Selecting angle for PGML $a = $latexangle[$n] ; -# Array of 4 angles +# Array of 4 angles @angle=(pi/2, pi/3 ,pi/4 ,pi/6); # Selecting angle for Compute @@ -73,7 +73,7 @@ Find the exact value of the trigonometric function. `cos([$a])` -[_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_12.pg b/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_12.pg index 357fe0e4e1..092efa8a42 100644 --- a/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_12.pg +++ b/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_12.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -45,14 +45,14 @@ Parser::Number::NoDecimals; $n=random(0,3,1); -# Array of 4 angles +# Array of 4 angles @latexangle=("(2pi)/3" , "(3pi)/4", "(5pi)/6", "pi"); # Selecting angle for PGML $a = $latexangle[$n] ; -# Array of 4 angles +# Array of 4 angles @angle=(2*pi/3, 3*pi/4, 5*pi/6, pi); # Selecting angle for Compute @@ -70,7 +70,7 @@ Find the exact value of the trigonometric function. `cos([$a])` -[_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_13.pg b/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_13.pg index 960ce7008e..d5321e8160 100644 --- a/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_13.pg +++ b/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_13.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -46,14 +46,14 @@ Parser::Number::NoDecimals; $n=random(0,3,1); -# Array of 4 angles +# Array of 4 angles @latexangle=("120^\circ" , "135^\circ", "150^\circ", "180^\circ"); # Selecting angle for PGML $a = $latexangle[$n] ; -# Array of 4 angles +# Array of 4 angles @angle=(2*pi/3, 3*pi/4, 5*pi/6, pi); # Selecting angle for Compute @@ -71,7 +71,7 @@ Find the exact value of the trigonometric function. `sin([$a])` -[_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_14.pg b/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_14.pg index 098caf308d..1d1121aa5e 100644 --- a/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_14.pg +++ b/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_14.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -45,14 +45,14 @@ Parser::Number::NoDecimals; $n=random(0,3,1); -# Array of 8 angles +# Array of 8 angles @latexangle=("90^\circ", "60^\circ" ,"45^\circ" ,"30^\circ"); # Selecting angle for PGML $a = $latexangle[$n] ; -# Array of 8 angles +# Array of 8 angles @angle=(pi/2, pi/3 , pi/4 , pi/6); # Selecting angle for Compute @@ -70,7 +70,7 @@ Find the exact value of the trigonometric function. `sin(-[$a])` -[_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_15.pg b/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_15.pg index 7141c4b1eb..0238d7d702 100644 --- a/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_15.pg +++ b/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_15.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -46,14 +46,14 @@ Parser::Number::NoDecimals; $n=random(0,7,1); -# Array of 8 angles +# Array of 8 angles @latexangle=("90^\circ", "60^\circ" ,"45^\circ" ,"30^\circ", "120^\circ" , "135^\circ", "150^\circ", "180^\circ"); # Selecting angle for PGML $a = $latexangle[$n] ; -# Array of 8 angles +# Array of 8 angles @angle=(pi/2, pi/3 , pi/4 , pi/6, 2*pi/3, 3*pi/4, 5*pi/6, pi); # Selecting angle for Compute @@ -71,7 +71,7 @@ Find the exact value of the trigonometric function. `cos(-[$a])` -[_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans}[@ helpLink("numbers") @]* END_PGML ############################ diff --git a/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_16.pg b/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_16.pg index 7f786be1f8..8d70fa849f 100644 --- a/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_16.pg +++ b/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_16.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -45,14 +45,14 @@ Parser::Number::NoDecimals; $n=random(0,7,1); -# Array of 8 angles +# Array of 8 angles @latexangle=("3pi/2", "(4pi)/3" ,"(5pi)/4" ,"(7pi)/6", "(5pi)/3" , "(7pi)/4", "(11pi)/6", "2pi"); # Selecting angle for PGML $a = $latexangle[$n] ; -# Array of 8 angles +# Array of 8 angles @angle=(3*pi/2, 4*pi/3 ,5*pi/4 ,7*pi/6, 5*pi/3, 7*pi/4, 11*pi/6, 2*pi); # Selecting angle for Compute @@ -70,7 +70,7 @@ Find the exact value of the trigonometric function. `cos([$a])` -[_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_17.pg b/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_17.pg index cfeb51ae02..b90d897447 100644 --- a/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_17.pg +++ b/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_17.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -44,14 +44,14 @@ Parser::Number::NoDecimals; $n=random(0,7,1); -# Array of 8 angles +# Array of 8 angles @latexangle=("3pi/2", "(4pi)/3" ,"(5pi)/4" ,"(7pi)/6", "(5pi)/3" , "(7pi)/4", "(11pi)/6", "2pi"); # Selecting angle for PGML $a = $latexangle[$n] ; -# Array of 8 angles +# Array of 8 angles @angle=(3*pi/2, 4*pi/3 ,5*pi/4 ,7*pi/6, 5*pi/3, 7*pi/4, 11*pi/6, 2*pi); # Selecting angle for Compute @@ -69,7 +69,7 @@ Find the exact value of the trigonometric function. `sin([$a])` -[_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_18.pg b/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_18.pg index 8b6ecc3b1c..517b64f1b2 100644 --- a/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_18.pg +++ b/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_18.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -45,14 +45,14 @@ Parser::Number::NoDecimals; $n=random(0,7,1); -# Array of 8 angles +# Array of 8 angles @latexangle=("3pi/2", "(4pi)/3" ,"(5pi)/4" ,"(7pi)/6", "(5pi)/3" , "(7pi)/4", "(11pi)/6", "2pi"); # Selecting angle for PGML $a = $latexangle[$n] ; -# Array of 8 angles +# Array of 8 angles @angle=(3*pi/2, 4*pi/3 ,5*pi/4 ,7*pi/6, 5*pi/3, 7*pi/4, 11*pi/6, 2*pi); # Selecting angle for Compute @@ -70,7 +70,7 @@ Find the exact value of the trigonometric function. `sin(-[$a])` -[_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_19.pg b/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_19.pg index 3c8c41f5f4..ac61ddc2a6 100644 --- a/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_19.pg +++ b/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_19.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -45,14 +45,14 @@ Parser::Number::NoDecimals; $n=random(0,3,1); -# Array of 4 angles +# Array of 4 angles @latexangle=("pi/2", "pi" ,"(3pi)/2" ,"2pi"); # Selecting angle for PGML $a = $latexangle[$n] ; -# Array of 4 angles +# Array of 4 angles @angle=(pi/2, pi ,3*pi/2 , 2*pi); # Selecting angle for Compute @@ -70,7 +70,7 @@ Find the exact value of the trigonometric function. `cos([$a])` -[_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_20.pg b/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_20.pg index 7a57317e5e..19645908f0 100644 --- a/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_20.pg +++ b/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_20.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -46,14 +46,14 @@ Parser::Number::NoDecimals; $n=random(0,3,1); -# Array of 4 angles +# Array of 4 angles @latexangle=("pi/2", "pi" ,"(3pi)/2" ,"2pi"); # Selecting angle for PGML $a = $latexangle[$n] ; -# Array of 4 angles +# Array of 4 angles @angle=(pi/2, pi ,3*pi/2 , 2*pi); # Selecting angle for Compute @@ -72,7 +72,7 @@ Find the exact value of the trigonometric function. `sin(-[$a])` -[_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_21.pg b/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_21.pg index 6f2fcbef7d..a4f26192de 100644 --- a/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_21.pg +++ b/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_21.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -46,14 +46,14 @@ Parser::Number::NoDecimals; $n=random(0,4,1); -# Array of 5 angles +# Array of 5 angles @latexangle=("0^circ", "90^circ" ,"180^circ" ,"270^circ", "360^circ"); # Selecting angle for PGML $a = $latexangle[$n] ; -# Array of 5 angles +# Array of 5 angles @angle=(0, pi/2, pi ,3*pi/2 , 2*pi); # Selecting angle for Compute @@ -70,7 +70,7 @@ Find the exact value of the trigonometric function. `cos([$a])` -[_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_22.pg b/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_22.pg index d2d6a8fba4..2ff3d8ce49 100644 --- a/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_22.pg +++ b/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_22.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -43,14 +43,14 @@ Parser::Number::NoDecimals; $n=random(0,4,1); -# Array of 5 angles +# Array of 5 angles @latexangle=("0^circ", "90^circ" ,"180^circ" ,"270^circ", "360^circ"); # Selecting angle for PGML $a = $latexangle[$n] ; -# Array of 5 angles +# Array of 5 angles @angle=(0, pi/2, pi ,3*pi/2 , 2*pi); # Selecting angle for Compute @@ -67,7 +67,7 @@ Find the exact value of the trigonometric function. `sin(-[$a])` -[_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_23.pg b/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_23.pg index 3f86552bb5..6d7947678d 100644 --- a/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_23.pg +++ b/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_23.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -48,7 +48,7 @@ State the reference angle (in degrees) for the given angle. [`[$angle]^\circ`] -[___]{$refangle} Degrees [@ AnswerFormatHelp("numbers") @]* +[___]{$refangle} Degrees [@ helpLink("numbers") @]* END_PGML ############################ diff --git a/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_26.pg b/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_26.pg index 783b6f8d35..9e6dddf5e2 100644 --- a/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_26.pg +++ b/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_26.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -47,7 +47,7 @@ State the reference angle (in degrees) for the given angle. [`[$angle]^\circ`] -[___]{$angle} Degrees [@ AnswerFormatHelp("numbers") @]* +[___]{$angle} Degrees [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_27.pg b/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_27.pg index 777b6708da..33f3887e4e 100644 --- a/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_27.pg +++ b/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_27.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "PGcourse.pl", @@ -74,7 +74,7 @@ State the reference angle (in radians) for the given angle. `[$angle]` -[_______]{$ans} [@ AnswerFormatHelp("numbers") @]* +[_______]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_28.pg b/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_28.pg index 8d977a1654..9f76546b1e 100644 --- a/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_28.pg +++ b/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_28.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -49,7 +49,7 @@ State the reference angle (in degrees) for the given angle. [`[$angle]^\circ`] -[___]{$ref} Degrees [@ AnswerFormatHelp("numbers") @]* +[___]{$ref} Degrees [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_29.pg b/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_29.pg index e5260d733f..f4f1f75b3d 100644 --- a/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_29.pg +++ b/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_29.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "PGcourse.pl", @@ -78,7 +78,7 @@ State the reference angle (in radians) for the given angle. `[$angle]` -[_______]{$ans}[@ AnswerFormatHelp("numbers") @]* +[_______]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_34.pg b/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_34.pg index 57cdd7c02e..c4ada4362c 100644 --- a/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_34.pg +++ b/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_34.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "PGcourse.pl", @@ -43,7 +43,7 @@ Parser::Number::NoDecimals; $radio = RadioButtons( ["Quadrant I","Quadrant II", "Quadrant III", "Quadrant IV"], - "Quadrant III" + "Quadrant III" ); $chooser=random(1,3,1); @@ -85,8 +85,8 @@ $sine=sin((4*pi)/3); } $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -102,18 +102,18 @@ Find the reference angle and the sine and cosine of [`[$angle]`]. If the angle -Reference angle: [___________]{$reference} Degrees [@ AnswerFormatHelp("numbers") @]* +Reference angle: [___________]{$reference} Degrees [@ helpLink("numbers") @]* -[`\sin[$angle]=`] [___________]{$sine} [@ AnswerFormatHelp("numbers") @]* +[`\sin[$angle]=`] [___________]{$sine} [@ helpLink("numbers") @]* -[`\cos[$angle]=`][___________]{$cosine} [@ AnswerFormatHelp("numbers") @]* +[`\cos[$angle]=`][___________]{$cosine} [@ helpLink("numbers") @]* -Which quadrant is the terminal side of [`[$angle]`]? +Which quadrant is the terminal side of [`[$angle]`]? [________]{$radio} -[$video]* +[$video]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_35.pg b/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_35.pg index 9b5447fa99..ce4195f3c4 100644 --- a/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_35.pg +++ b/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_35.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -43,7 +43,7 @@ Parser::Number::NoDecimals; $radio = RadioButtons( ["Quadrant I","Quadrant II", "Quadrant III", "Quadrant IV"], - "Quadrant IV" + "Quadrant IV" ); $chooser=random(1,3,1); @@ -96,13 +96,13 @@ Find the reference angle and the sine and cosine of [`[$angle]`]. If the angle -Reference angle: [_______]{$reference} Degrees [@ AnswerFormatHelp("numbers") @]* +Reference angle: [_______]{$reference} Degrees [@ helpLink("numbers") @]* -[`\sin[$angle]=`] [___________]{$sine} [@ AnswerFormatHelp("numbers") @]* +[`\sin[$angle]=`] [___________]{$sine} [@ helpLink("numbers") @]* -[`\cos[$angle]=`][___________]{$cosine} [@ AnswerFormatHelp("numbers") @]* +[`\cos[$angle]=`][___________]{$cosine} [@ helpLink("numbers") @]* -Which quadrant is the terminal side of [`[$angle]`]? +Which quadrant is the terminal side of [`[$angle]`]? [________]{$radio} diff --git a/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_36.pg b/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_36.pg index 25f46067ff..9ed81375a2 100644 --- a/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_36.pg +++ b/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_36.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "PGcourse.pl", @@ -45,7 +45,7 @@ Context()->flags->set( $radio = RadioButtons( ["Quadrant I","Quadrant II", "Quadrant III", "Quadrant IV"], - "Quadrant I" + "Quadrant I" ); $chooser=random(1,4,1); @@ -121,13 +121,13 @@ Find the reference angle and the sine and cosine of [`[$texangle]`]. If the ang -Reference angle: [_______]{$reference} Degrees [@ AnswerFormatHelp("numbers") @]* +Reference angle: [_______]{$reference} Degrees [@ helpLink("numbers") @]* -[`\sin[$texangle]=`] [___________]{$sine} [@ AnswerFormatHelp("numbers") @]* +[`\sin[$texangle]=`] [___________]{$sine} [@ helpLink("numbers") @]* -[`\cos[$texangle]=`][___________]{$cosine} [@ AnswerFormatHelp("numbers") @]* +[`\cos[$texangle]=`][___________]{$cosine} [@ helpLink("numbers") @]* -Which quadrant is the terminal side of [`[$texangle]`]? +Which quadrant is the terminal side of [`[$texangle]`]? [________]{$radio} diff --git a/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_42.pg b/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_42.pg index d773690d2b..9dc5f125ff 100644 --- a/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_42.pg +++ b/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_42.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "parserRadioButtons.pl", "PGcourse.pl", @@ -43,7 +43,7 @@ Parser::Number::NoDecimals; $radio = RadioButtons( ["Quadrant I","Quadrant II", "Quadrant III", "Quadrant IV"], - "Quadrant II" + "Quadrant II" ); $chooser=random(1,3,1); @@ -97,13 +97,13 @@ Find the reference angle and the sine and cosine of `[$texangle]`. If the angle -Reference angle: [_______]{$reference} [@ AnswerFormatHelp("numbers") @]* +Reference angle: [_______]{$reference} [@ helpLink("numbers") @]* -`\sin([$texangle])=` [___________]{$sine}[@ AnswerFormatHelp("numbers") @]* +`\sin([$texangle])=` [___________]{$sine}[@ helpLink("numbers") @]* -`\cos([$texangle])=`[___________]{$cosine}[@ AnswerFormatHelp("numbers") @]* +`\cos([$texangle])=`[___________]{$cosine}[@ helpLink("numbers") @]* -Which quadrant is the terminal side of `[$texangle]`? +Which quadrant is the terminal side of `[$texangle]`? [________]{$radio} diff --git a/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_43.pg b/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_43.pg index b4a5535b2b..562abb5d43 100644 --- a/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_43.pg +++ b/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_43.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "parserRadioButtons.pl", @@ -44,7 +44,7 @@ Parser::Number::NoDecimals; $radio = RadioButtons( ["Quadrant I","Quadrant II", "Quadrant III", "Quadrant IV"], - "Quadrant IV" + "Quadrant IV" ); $chooser=random(1,3,1); @@ -98,13 +98,13 @@ Find the reference angle and the sine and cosine of `[$texangle]`. If the angle -Reference angle: [_______]{$reference} [@ AnswerFormatHelp("numbers") @]* +Reference angle: [_______]{$reference} [@ helpLink("numbers") @]* -`\sin([$texangle])=` [___________]{$sine}[@ AnswerFormatHelp("numbers") @]* +`\sin([$texangle])=` [___________]{$sine}[@ helpLink("numbers") @]* -`\cos([$texangle])=`[___________]{$cosine}[@ AnswerFormatHelp("numbers") @]* +`\cos([$texangle])=`[___________]{$cosine}[@ helpLink("numbers") @]* -Which quadrant is the terminal side of `[$texangle]`? +Which quadrant is the terminal side of `[$texangle]`? [________]{$radio} diff --git a/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_44.pg b/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_44.pg index 9fd2c7dfe2..efb58504c4 100644 --- a/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_44.pg +++ b/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_44.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "parserRadioButtons.pl", @@ -44,7 +44,7 @@ Parser::Number::NoDecimals; $radio = RadioButtons( ["Quadrant I","Quadrant II", "Quadrant III", "Quadrant IV"], - "Quadrant III" + "Quadrant III" ); $chooser=random(1,3,1); @@ -96,13 +96,13 @@ Find the reference angle and the sine and cosine of `[$texangle]`. If the angle -Reference angle: [_______]{$reference} [@ AnswerFormatHelp("numbers") @]* +Reference angle: [_______]{$reference} [@ helpLink("numbers") @]* -`\sin([$texangle])=` [___________]{$sine}[@ AnswerFormatHelp("numbers") @]* +`\sin([$texangle])=` [___________]{$sine}[@ helpLink("numbers") @]* -`\cos([$texangle])=`[___________]{$cosine}[@ AnswerFormatHelp("numbers") @]* +`\cos([$texangle])=`[___________]{$cosine}[@ helpLink("numbers") @]* -Which quadrant is the terminal side of `[$texangle]`? +Which quadrant is the terminal side of `[$texangle]`? [________]{$radio} diff --git a/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_50.pg b/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_50.pg index 4ee4cb9501..b34f3b2275 100644 --- a/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_50.pg +++ b/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_50.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "PGcourse.pl", @@ -36,7 +36,7 @@ TEXT(beginproblem()); Context("Numeric"); $num=random(2,8,2); -$den = random(9,13,2); +$den = random(9,13,2); $argument=$den**2-$num**2; $sqrt="sqrt($argument)"; @@ -48,8 +48,8 @@ $cos=Fraction($num,$den); $ans=-Compute("$sqrt/$den"); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -63,10 +63,10 @@ BEGIN_PGML If [`\cos(t)=[$cos]`] and [`t`] is in Quadrant IV, find the value of [`\sin(t)`]. Enter the answer as a fraction. -[`\sin(t)=`][_____________]{$ans}[@ AnswerFormatHelp("numbers") @]* +[`\sin(t)=`][_____________]{$ans}[@ helpLink("numbers") @]* -[$video]* +[$video]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_52.pg b/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_52.pg index 4c03e8518e..ecd5118bcd 100644 --- a/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_52.pg +++ b/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_52.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "PGcourse.pl", @@ -36,7 +36,7 @@ TEXT(beginproblem()); Context("Numeric"); $num=random(2,8,2); -$den = random(9,13,2); +$den = random(9,13,2); $argument=$den**2-$num**2; $sqrt="sqrt($argument)"; @@ -55,7 +55,7 @@ BEGIN_PGML If [`\sin(t)=[$sin]`] and [`t`] is in Quadrant II, find the value of [`\cos(t)`]. Enter the answer as a fraction. -[`\cos(t)=`][_____________]{$ans}[@ AnswerFormatHelp("numbers") @]* +[`\cos(t)=`][_____________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_56.pg b/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_56.pg index e111829cee..4511e24b2a 100644 --- a/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_56.pg +++ b/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_56.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "PGcourse.pl", @@ -63,7 +63,7 @@ BEGIN_PGML Find the coordinates of the point on a circle with radius `[$a]` corresponding to an angle of `[$angle]`. Enter the answer as an ordered pair, [`(x,y)`]. -[_______________________]{$ans}[@ AnswerFormatHelp("points") @]* +[_______________________]{$ans}[@ helpLink("points") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_6.pg b/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_6.pg index c87e6db01b..fa5bfb3eb6 100644 --- a/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_6.pg +++ b/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_6.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -45,7 +45,7 @@ $fun2=("\cos(t)>0"); $radio = RadioButtons( ["Quadrant I","Quadrant II", "Quadrant III", "Quadrant IV"], - "Quadrant I" + "Quadrant I" ); } @@ -57,7 +57,7 @@ $fun2=("\cos(t)<0"); $radio = RadioButtons( ["Quadrant I","Quadrant II", "Quadrant III", "Quadrant IV"], - "Quadrant II" + "Quadrant II" ); } @@ -69,7 +69,7 @@ $fun2=("\cos(t)<0"); $radio = RadioButtons( ["Quadrant I","Quadrant II", "Quadrant III", "Quadrant IV"], - "Quadrant III" + "Quadrant III" ); } @@ -80,7 +80,7 @@ $fun2=("\cos(t)>0"); $radio = RadioButtons( ["Quadrant I","Quadrant II", "Quadrant III", "Quadrant IV"], - "Quadrant IV" + "Quadrant IV" ); } diff --git a/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_7.pg b/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_7.pg index 3d0c936180..a30d4cf463 100644 --- a/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_7.pg +++ b/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_7.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -45,7 +45,7 @@ $fun2=("\cos(t)>0"); $radio = RadioButtons( ["Quadrant I","Quadrant II", "Quadrant III", "Quadrant IV"], - "Quadrant I" + "Quadrant I" ); } @@ -57,7 +57,7 @@ $fun2=("\cos(t)<0"); $radio = RadioButtons( ["Quadrant I","Quadrant II", "Quadrant III", "Quadrant IV"], - "Quadrant II" + "Quadrant II" ); } @@ -69,7 +69,7 @@ $fun2=("\cos(t)<0"); $radio = RadioButtons( ["Quadrant I","Quadrant II", "Quadrant III", "Quadrant IV"], - "Quadrant III" + "Quadrant III" ); } @@ -80,7 +80,7 @@ $fun2=("\cos(t)>0"); $radio = RadioButtons( ["Quadrant I","Quadrant II", "Quadrant III", "Quadrant IV"], - "Quadrant IV" + "Quadrant IV" ); } diff --git a/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_91.pg b/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_91.pg index b7fb36a6b4..e17aca7b14 100644 --- a/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_91.pg +++ b/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_91.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "PGcourse.pl", @@ -47,14 +47,14 @@ $n1=random(0,6,1); do {$n2 = random(0,6,1);} until ($n2!= $n1); -# Array of 7 angles +# Array of 7 angles @latexangle=("pi/2", "pi/3" ,"pi/4" ,"pi/6", "(2pi)/3", "(5pi)/6", "(4pi)/3" ); # Selecting 2 angles for PGML $a = $latexangle[$n1] ; $b = $latexangle[$n2] ; -# Array of 7 angles +# Array of 7 angles @angle=(pi/2, pi/3 ,pi/4 ,pi/6, 2*pi/3, 5*pi/6, 4*pi/3 ); # Selecting 2 angles for Compute @@ -68,10 +68,10 @@ $ans=(sin($d)*cos($c)); BEGIN_PGML -Evaluate the following. Enter the answer as a simplified fraction. +Evaluate the following. Enter the answer as a simplified fraction. -`sin([$b])cos([$a])=`[__________________]{$ans}[@ AnswerFormatHelp("numbers") @]* +`sin([$b])cos([$a])=`[__________________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_92.pg b/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_92.pg index 0eb8b9739e..3eb433a4ee 100644 --- a/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_92.pg +++ b/Contrib/CCCS/PreCalculus/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_92.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "PGcourse.pl", @@ -47,14 +47,14 @@ $n1=random(0,6,1); do {$n2 = random(0,6,1);} until ($n2!= $n1); -# Array of 7 angles +# Array of 7 angles @latexangle=("(5pi)/4", "(4pi)/3" ,"(7pi)/4" ,"pi/6", "(2pi)/3", "(11pi)/6", "(pi)/4"); # Selecting 2 angles for PGML $a = $latexangle[$n1] ; $b = $latexangle[$n2] ; -# Array of 7 angles +# Array of 7 angles @angle=(5*pi/4, 4*pi/3 ,7*pi/4 ,pi/6, 2*pi/3, 11*pi/6, pi/4 ); # Selecting 2 angles for Compute @@ -69,7 +69,7 @@ $ans=sin(-$d)*cos($c); BEGIN_PGML -Evaluate the following. Enter the answer as a simplified fraction. +Evaluate the following. Enter the answer as a simplified fraction. `sin(-[$b])cos([$a])=`[__________________]{$ans} diff --git a/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_10.pg b/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_10.pg index b42bb792c7..5da4bcf7a1 100644 --- a/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_10.pg +++ b/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_10.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -44,13 +44,13 @@ Parser::Number::NoDecimals; $n=random(0,6,1); -# Array of 7 angles +# Array of 7 angles @latexangle=("pi", "(2pi)/3" ,"(3pi)/4" ,"(5pi)/6", "(5pi)/3" , "(5pi)/4", "(11pi)/6"); # Selecting angle for PGML $a = $latexangle[$n] ; -# Array of 7 angles +# Array of 7 angles @angle=(pi, 2*pi/3 ,3*pi/4 ,5*pi/6, 5*pi/3, 5*pi/4, 11*pi/6); # Selecting angle for $ans @@ -70,7 +70,7 @@ Find the exact value of the trigonometric function. `tan([$a])` -[_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_11.pg b/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_11.pg index 2cbaf922d7..a4f34c1072 100644 --- a/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_11.pg +++ b/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_11.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -43,13 +43,13 @@ Parser::Number::NoDecimals; $n=random(0,6,1); -# Array of 7 angles +# Array of 7 angles @latexangle=("pi", "(2pi)/3" ,"(3pi)/4" ,"(5pi)/6", "(4pi)/3" , "(5pi)/4", "(11pi)/6"); # Selecting angle for PGML $a = $latexangle[$n] ; -# Array of 7 angles +# Array of 7 angles @angle=(pi, 2*pi/3 , 3*pi/4 , 5*pi/6, 4*pi/3, 5*pi/4, 11*pi/6); # Selecting angle for $ans @@ -68,7 +68,7 @@ Find the exact value of the trigonometric function. `sec([$a])` -[_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_12.pg b/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_12.pg index 2b0c4bbd65..ee60e06e54 100644 --- a/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_12.pg +++ b/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_12.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -45,13 +45,13 @@ Parser::Number::NoDecimals; # random integer to choose an angle $n=random(0,7,1); -# Array of 8 angles +# Array of 8 angles @latexangle=("270^\circ", "120^\circ" ,"135^\circ" ,"150^\circ", "315^\circ" , "225^\circ", "330^\circ", "90^\circ"); # Selecting angle for PGML $a = $latexangle[$n] ; -# Array of 8 angles +# Array of 8 angles @angle=(3*pi/2, 2*pi/3 ,3*pi/4 ,5*pi/6, 7*pi/4, 5*pi/4, 11*pi/6, pi/2); # Selecting angle for $ans @@ -69,7 +69,7 @@ Find the exact value of the trigonometric function. [`\csc([$a])`] -[_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_13.pg b/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_13.pg index 73c48f05f8..92b3e3bc5a 100644 --- a/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_13.pg +++ b/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_13.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -46,13 +46,13 @@ Parser::Number::NoDecimals; $n=random(0,6,1); -# Array of 7 angles +# Array of 7 angles @latexangle=("270^\circ", "120^\circ" ,"135^\circ" ,"150^\circ", "315^\circ" , "225^\circ", "330^\circ"); # Selecting angle for PGML $a = $latexangle[$n] ; -# Array of 7 angles +# Array of 7 angles @angle=(3*pi/2, 2*pi/3 ,3*pi/4 ,5*pi/6, 7*pi/4, 5*pi/4, 11*pi/6); # Selecting angle for $ans @@ -72,7 +72,7 @@ Find the exact value of the trigonometric function. [`\cot([$a])`] -[_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_18.pg b/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_18.pg index 223c007fe5..2254ca13aa 100644 --- a/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_18.pg +++ b/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_18.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -46,13 +46,13 @@ Parser::Number::NoDecimals; $n=random(0,6,1); -# Array of 7 angles +# Array of 7 angles @latexangle=("60^\circ", "120^\circ" ,"135^\circ" ,"150^\circ", "315^\circ" , "225^\circ", "330^\circ"); # Selecting angle for PGML $a = $latexangle[$n] ; -# Array of 7 angles +# Array of 7 angles @angle=(pi/3, 2*pi/3 ,3*pi/4 ,5*pi/6, 7*pi/4, 5*pi/4, 11*pi/6); # Selecting angle for $ans @@ -72,7 +72,7 @@ Find the exact value of the trigonometric function. [`\tan([$a])`] -[_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_19.pg b/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_19.pg index 0b6a86ae53..f63431c1e8 100644 --- a/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_19.pg +++ b/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_19.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -46,13 +46,13 @@ Parser::Number::NoDecimals; $n=random(0,6,1); -# Array of 7 angles +# Array of 7 angles @latexangle=("60^\circ", "120^\circ" ,"135^\circ" ,"150^\circ", "315^\circ" , "225^\circ", "330^\circ"); # Selecting angle for PGML $a = $latexangle[$n] ; -# Array of 7 angles +# Array of 7 angles @angle=(5*pi/3, 4*pi/3 ,5*pi/4 ,7*pi/6, pi/4, 3*pi/4, pi/6); # Selecting angle for $ans @@ -72,7 +72,7 @@ Find the exact value of the trigonometric function. [`\sec(-[$a])`] -[_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_20.pg b/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_20.pg index e905dc61ed..b52b93e308 100644 --- a/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_20.pg +++ b/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_20.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -46,13 +46,13 @@ Parser::Number::NoDecimals; $n=random(0,6,1); -# Array of 7 angles +# Array of 7 angles @latexangle=("60^\circ", "120^\circ" ,"135^\circ" ,"150^\circ", "315^\circ" , "225^\circ", "330^\circ"); # Selecting angle for PGML $a = $latexangle[$n] ; -# Array of 7 angles +# Array of 7 angles @angle=(5*pi/3, 4*pi/3 ,5*pi/4 ,7*pi/6, pi/4, 3*pi/4, pi/6); # Selecting angle for $ans @@ -72,7 +72,7 @@ Find the exact value of the trigonometric function. [`\csc(-[$a])`] -[_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_21.pg b/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_21.pg index e03a91e065..4e838ed7cf 100644 --- a/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_21.pg +++ b/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_21.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -46,13 +46,13 @@ Parser::Number::NoDecimals; $n=random(0,6,1); -# Array of 7 angles +# Array of 7 angles @latexangle=("pi", "(5pi)/3" ,"pi/4" ,"(5pi)/6", "2*pi" , "(5pi)/4", "pi/6"); # Selecting angle for PGML $a = $latexangle[$n] ; -# Array of 7 angles +# Array of 7 angles @angle=(pi, 5*pi/3 , pi/4 , 5*pi/6, 2*pi, 5*pi/4, pi/6); # Selecting angle for $ans @@ -72,7 +72,7 @@ Find the exact value of the trigonometric function. `tan([$a])` -[_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_22.pg b/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_22.pg index 31168fae27..ebb2a9c1c1 100644 --- a/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_22.pg +++ b/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_22.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -46,13 +46,13 @@ Parser::Number::NoDecimals; $n=random(0,6,1); -# Array of 7 angles +# Array of 7 angles @latexangle=("pi/2", "(5pi)/3" ,"pi/4" ,"(5pi)/6", "(3pi)/2" , "(5pi)/4", "pi/6"); # Selecting angle for PGML $a = $latexangle[$n] ; -# Array of 7 angles +# Array of 7 angles @angle=(pi/2, 5*pi/3 , pi/4 , 5*pi/6, 3*pi/2, 5*pi/4, pi/6); # Selecting angle for $ans @@ -72,7 +72,7 @@ Find the exact value of the trigonometric function. `cot([$a])` -[_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_23.pg b/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_23.pg index 6cf0615620..d0ee8ffe4a 100644 --- a/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_23.pg +++ b/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_23.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -45,13 +45,13 @@ Parser::Number::NoDecimals; $n=random(0,5,1); -# Array of 6 angles +# Array of 6 angles @latexangle=("120^\circ" ,"135^\circ" ,"150^\circ", "315^\circ" , "225^\circ", "330^\circ"); # Selecting angle for PGML $a = $latexangle[$n] ; -# Array of 6 angles +# Array of 6 angles @angle=(2*pi/3 ,3*pi/4 ,5*pi/6, 7*pi/4, 5*pi/4, 11*pi/6); # Selecting angle for $ans @@ -71,7 +71,7 @@ Find the exact value of the trigonometric function. [`\sec([$a])`] -[_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_39.pg b/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_39.pg index 18042a0064..7835271e4a 100644 --- a/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_39.pg +++ b/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_39.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "PGcourse.pl", @@ -36,7 +36,7 @@ TEXT(beginproblem()); Context("Numeric"); $adj=random(2,8,2); -$hyp = random(9,13,2); +$hyp = random(9,13,2); $argument=$hyp**2-$adj**2; $opp="sqrt($argument)"; diff --git a/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_40.pg b/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_40.pg index 95f3d12649..515d1d2d3e 100644 --- a/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_40.pg +++ b/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_40.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "PGcourse.pl", @@ -36,7 +36,7 @@ TEXT(beginproblem()); Context("Numeric"); $opp=random(2,8,2); -$adj = random(9,13,2); +$adj = random(9,13,2); $argument=$opp**2+$adj**2; $hyp="sqrt($argument)"; diff --git a/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_44.pg b/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_44.pg index d2923b11dd..33bf58df77 100644 --- a/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_44.pg +++ b/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_44.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", diff --git a/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_46.pg b/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_46.pg index 7e212b0c15..3a7039ee7e 100644 --- a/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_46.pg +++ b/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_46.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", diff --git a/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_47.pg b/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_47.pg index d85439b8c4..a3b01f217e 100644 --- a/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_47.pg +++ b/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_47.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", diff --git a/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_48.pg b/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_48.pg index 1e2d142fa5..416951cc5b 100644 --- a/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_48.pg +++ b/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_48.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", diff --git a/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_55.pg b/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_55.pg index 819d4c7a95..5908685a75 100644 --- a/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_55.pg +++ b/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_55.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -44,13 +44,13 @@ Context()->flags->set( # random integer to choose an angle $n=random(0,6,1); -# Array of 7 angles +# Array of 7 angles @latexangle=("(6pi)/5", "(2pi)/5" ,"(3pi)/7" ,"(5pi)/8", "(5pi)/7" , "(5pi)/9", "(11pi)/5"); # Selecting angle for PGML $a = $latexangle[$n] ; -# Array of 7 angles +# Array of 7 angles @angle=(6*pi/5, 2*pi/5 ,3*pi/7 ,5*pi/8, 5*pi/7, 5*pi/9, 11*pi/5); # Selecting angle for $ans diff --git a/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_57.pg b/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_57.pg index 3e211a2b8a..43be46086d 100644 --- a/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_57.pg +++ b/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_57.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -43,13 +43,13 @@ Context()->flags->set( # random integer to choose an angle $n=random(0,6,1); -# Array of 7 angles +# Array of 7 angles @latexangle=("(6pi)/7", "(2pi)/7" ,"(3pi)/5" ,"(5pi)/11", "(9pi)/5" , "(7pi)/9", "(11pi)/15"); # Selecting angle for PGML $a = $latexangle[$n] ; -# Array of 7 angles +# Array of 7 angles @angle=(6*pi/7, 2*pi/7 ,3*pi/5 ,5*pi/11, 9*pi/5, 7*pi/9, 11*pi/15); # Selecting angle for $ans diff --git a/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_6.pg b/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_6.pg index 982511dafb..7590d6a7a5 100644 --- a/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_6.pg +++ b/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_6.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -46,14 +46,14 @@ Parser::Number::NoDecimals; $n=random(0,2,1); -# Array of angles +# Array of angles @latexangle=( "pi/3" ,"pi/4" ,"pi/6"); # Selecting angle for PGML $a = $latexangle[$n] ; -# Array of angles +# Array of angles @angle=( pi/3 ,pi/4 ,pi/6); @@ -74,7 +74,7 @@ Find the exact value of the trigonometric function. `tan([$a])` -[_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_61.pg b/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_61.pg index 3f6e516ba6..5de459334f 100644 --- a/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_61.pg +++ b/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_61.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -44,13 +44,13 @@ Context()->flags->set( # random integer to choose an angle $n=random(0,6,1); -# Array of 7 angles +# Array of 7 angles @latexangle=("80^\circ", "100^\circ" ,"325^\circ" ,"125^\circ", "260^\circ" , "200^\circ", "400^\circ"); # Selecting angle for PGML $a = $latexangle[$n] ; -# Array of 7 angles +# Array of 7 angles @angle=(80*pi/180, 100*pi/180 ,325*pi/180 ,125*pi/180, 260*pi/180, 200*pi/180, 400*pi/180); # Selecting angle for $ans diff --git a/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_7.pg b/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_7.pg index 457bdeeaef..424196bb7a 100644 --- a/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_7.pg +++ b/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_7.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -45,14 +45,14 @@ Parser::Number::NoDecimals; # random integer to choose an angle $n=random(0,7,1); -# Array of 8 angles +# Array of 8 angles @latexangle=("2pi", "pi/3" ,"pi/4" ,"pi/6", "(2pi)/3" , "(3pi)/4", "(5pi)/6", "pi"); # Selecting angle for PGML $a = $latexangle[$n] ; -# Array of 8 angles +# Array of 8 angles @angle=(2*pi, pi/3 ,pi/4 ,pi/6, 2*pi/3, 3*pi/4, 5*pi/6, pi); # Selecting angle for $ans @@ -72,7 +72,7 @@ Find the exact value of the trigonometric function. `sec([$a])` -[_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_74.pg b/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_74.pg index 8158aac70d..fe7c70c718 100644 --- a/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_74.pg +++ b/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_74.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", diff --git a/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_8.pg b/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_8.pg index c1943c9453..f4d79b508d 100644 --- a/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_8.pg +++ b/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_8.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -46,14 +46,14 @@ Parser::Number::NoDecimals; $n=random(0,7,1); -# Array of 8 angles +# Array of 8 angles @latexangle=("pi/2", "pi/3" ,"pi/4" ,"pi/6", "(2pi)/3" , "(3pi)/4", "(5pi)/6", "(3pi)/2"); # Selecting angle for PGML $a = $latexangle[$n] ; -# Array of 8 angles +# Array of 8 angles @angle=(pi/2, pi/3 ,pi/4 ,pi/6, 2*pi/3, 3*pi/4, 5*pi/6, 3*pi/2); @@ -73,7 +73,7 @@ Find the exact value of the trigonometric function. `csc([$a])` -[_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_9.pg b/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_9.pg index 4c88510621..e91debea20 100644 --- a/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_9.pg +++ b/Contrib/CCCS/PreCalculus/07.4_Other_Trigonometric_Functions/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_9.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -46,14 +46,14 @@ Parser::Number::NoDecimals; $n=random(0,7,1); -# Array of 8 angles +# Array of 8 angles @latexangle=("pi/2", "pi/3" ,"pi/4" ,"pi/6", "(2pi)/3" , "(3pi)/4", "(5pi)/6", "(3pi)/2"); # Selecting angle for PGML $a = $latexangle[$n] ; -# Array of 8 angles +# Array of 8 angles @angle=(pi/2, pi/3 ,pi/4 ,pi/6, 2*pi/3, 3*pi/4, 5*pi/6, 3*pi/2); # Selecting angle for $ans @@ -74,7 +74,7 @@ Find the exact value of the trigonometric function. `cot([$a])` -[_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_06.pg b/Contrib/CCCS/PreCalculus/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_06.pg index d427301376..3dc4fe0018 100644 --- a/Contrib/CCCS/PreCalculus/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_06.pg +++ b/Contrib/CCCS/PreCalculus/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_06.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,11 +21,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", -"contextFraction.pl", +"contextFraction.pl", "PGgraphmacros.pl", "parserPopUp.pl" ); diff --git a/Contrib/CCCS/PreCalculus/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_07.pg b/Contrib/CCCS/PreCalculus/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_07.pg index d4326c62c2..4382b2bf66 100644 --- a/Contrib/CCCS/PreCalculus/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_07.pg +++ b/Contrib/CCCS/PreCalculus/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_07.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,11 +21,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", -"contextFraction.pl", +"contextFraction.pl", "PGgraphmacros.pl", "parserPopUp.pl" ); diff --git a/Contrib/CCCS/PreCalculus/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_12.pg b/Contrib/CCCS/PreCalculus/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_12.pg index e98e0451ef..98bc8d78ce 100644 --- a/Contrib/CCCS/PreCalculus/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_12.pg +++ b/Contrib/CCCS/PreCalculus/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_12.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,11 +21,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", -"contextFraction.pl", +"contextFraction.pl", "PGgraphmacros.pl", "parserPopUp.pl" ); diff --git a/Contrib/CCCS/PreCalculus/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_13.pg b/Contrib/CCCS/PreCalculus/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_13.pg index 0076bd7682..ece73cf2d5 100644 --- a/Contrib/CCCS/PreCalculus/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_13.pg +++ b/Contrib/CCCS/PreCalculus/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_13.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,11 +21,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", -"contextFraction.pl", +"contextFraction.pl", "PGgraphmacros.pl", "parserPopUp.pl" ); diff --git a/Contrib/CCCS/PreCalculus/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_18.pg b/Contrib/CCCS/PreCalculus/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_18.pg index 8fb2975f21..2476b455bc 100644 --- a/Contrib/CCCS/PreCalculus/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_18.pg +++ b/Contrib/CCCS/PreCalculus/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_18.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,11 +21,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", -"contextFraction.pl", +"contextFraction.pl", "PGgraphmacros.pl", "parserPopUp.pl" ); @@ -68,8 +68,8 @@ $popup2 = PopUp(["?", "left","right"], "right"); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); diff --git a/Contrib/CCCS/PreCalculus/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_19.pg b/Contrib/CCCS/PreCalculus/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_19.pg index eeacd93667..af1cedd999 100644 --- a/Contrib/CCCS/PreCalculus/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_19.pg +++ b/Contrib/CCCS/PreCalculus/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_19.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,11 +21,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", -"contextFraction.pl", +"contextFraction.pl", "PGgraphmacros.pl", "parserPopUp.pl" ); diff --git a/Contrib/CCCS/PreCalculus/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_22.pg b/Contrib/CCCS/PreCalculus/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_22.pg index f648f712ce..48bb2e258d 100644 --- a/Contrib/CCCS/PreCalculus/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_22.pg +++ b/Contrib/CCCS/PreCalculus/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_22.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,11 +21,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", -"contextFraction.pl", +"contextFraction.pl", "PGgraphmacros.pl", "parserPopUp.pl" ); diff --git a/Contrib/CCCS/PreCalculus/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_24.pg b/Contrib/CCCS/PreCalculus/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_24.pg index a59b8b6e1d..0d662d14d4 100644 --- a/Contrib/CCCS/PreCalculus/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_24.pg +++ b/Contrib/CCCS/PreCalculus/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_24.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,11 +21,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", -"contextFraction.pl", +"contextFraction.pl", "PGgraphmacros.pl", "parserPopUp.pl" ); @@ -39,7 +39,7 @@ $showPartialCorrectAnswers = 1; # Setup -# Which graph to show +# Which graph to show $which = random (1, 3, 1); @@ -49,9 +49,9 @@ if ( $which == 1 ) { $c = 0; $d = -3; -$graph = image("08_1_Problem_24_Diagram1.png", - width=>1148/2, - height=>1148/2, +$graph = image("08_1_Problem_24_Diagram1.png", + width=>1148/2, + height=>1148/2, extra_html_tags=>'alt=""') ; @@ -61,9 +61,9 @@ $graph = image("08_1_Problem_24_Diagram1.png", $c = pi/5; $d = 0; -$graph = image("08_1_Problem_24_Diagram2.png", - width=>1148/2, - height=>1148/2, +$graph = image("08_1_Problem_24_Diagram2.png", + width=>1148/2, + height=>1148/2, extra_html_tags=>'alt=""') ; } else { $a = 2; @@ -71,9 +71,9 @@ $graph = image("08_1_Problem_24_Diagram2.png", $c = 0; $d = 0; -$graph = image("08_1_Problem_24_Diagram3.png", - width=>1148/2, - height=>1148/2, +$graph = image("08_1_Problem_24_Diagram3.png", + width=>1148/2, + height=>1148/2, extra_html_tags=>'alt=""') ; } @@ -89,7 +89,7 @@ $period = Compute(2*pi/$b); BEGIN_PGML -For the trigonometric function shown below +For the trigonometric function shown below >> [@ $graph @]* << diff --git a/Contrib/CCCS/PreCalculus/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_31.pg b/Contrib/CCCS/PreCalculus/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_31.pg index c64c6cac39..8afe879c99 100644 --- a/Contrib/CCCS/PreCalculus/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_31.pg +++ b/Contrib/CCCS/PreCalculus/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_31.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,11 +21,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", -"contextFraction.pl", +"contextFraction.pl", "PGgraphmacros.pl", "parserPopUp.pl" ); @@ -37,17 +37,17 @@ TEXT(beginproblem()); ########################### -#Reduced possibilities to avoid repetition with following problem. +#Reduced possibilities to avoid repetition with following problem. $a = list_random(0, 1, -1); if ( $a == -1 ) { $ans = 3*pi/2; -} +} elsif ( $a == 0 ){ $ans = Compute("0, pi"); -} +} else { $ans = Compute("pi/2"); @@ -62,9 +62,9 @@ BEGIN_PGML -Find all the solutions to [``\sin(x) = [$a]``] on the interval [` [0, 2\pi)`]. +Find all the solutions to [``\sin(x) = [$a]``] on the interval [` [0, 2\pi)`]. -If there is more than one answer, enter as a comma separated list. +If there is more than one answer, enter as a comma separated list. [`x=`][_________]{$ans} diff --git a/Contrib/CCCS/PreCalculus/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_32.pg b/Contrib/CCCS/PreCalculus/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_32.pg index 48358eb938..ade6dd6c57 100644 --- a/Contrib/CCCS/PreCalculus/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_32.pg +++ b/Contrib/CCCS/PreCalculus/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_32.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,11 +21,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", -"contextFraction.pl", +"contextFraction.pl", "PGgraphmacros.pl", "parserPopUp.pl" ); @@ -35,12 +35,12 @@ TEXT(beginproblem()); ########################### -#Reduced possibilities to avoid repetition with following problem. +#Reduced possibilities to avoid repetition with following problem. $a = list_random(-.5, .5); if ($a == -0.5) { $ans = Compute("7*pi/6, 11*pi/6"); -} +} else { $ans = Compute("pi/6, 5pi/6"); @@ -54,9 +54,9 @@ BEGIN_PGML -Find all the solutions to [`\sin(x) = [$a]`] on the interval [` [0, 2\pi)`]. +Find all the solutions to [`\sin(x) = [$a]`] on the interval [` [0, 2\pi)`]. -If there is more than one answer, enter as a comma separated list. +If there is more than one answer, enter as a comma separated list. [`x=`][_________]{$ans} diff --git a/Contrib/CCCS/PreCalculus/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_35.pg b/Contrib/CCCS/PreCalculus/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_35.pg index e4c50b6312..26f93ad806 100644 --- a/Contrib/CCCS/PreCalculus/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_35.pg +++ b/Contrib/CCCS/PreCalculus/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_35.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,11 +21,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", -"contextFraction.pl", +"contextFraction.pl", "PGgraphmacros.pl", "parserPopUp.pl" ); @@ -49,9 +49,9 @@ BEGIN_PGML Let [`f(x)`] be the trigonometric function [`f(x) = \sin(x) `]. -On the interval [` [0, 2\pi)`], the maximum value(s) of [`f(x)`] occur(s) at what `x`-value(s)? +On the interval [` [0, 2\pi)`], the maximum value(s) of [`f(x)`] occur(s) at what `x`-value(s)? -If there is more than one answer, enter as a comma separated list. +If there is more than one answer, enter as a comma separated list. [`x=`][_________]{$ans} diff --git a/Contrib/CCCS/PreCalculus/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_36.pg b/Contrib/CCCS/PreCalculus/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_36.pg index b5f23b290b..744d869b6a 100644 --- a/Contrib/CCCS/PreCalculus/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_36.pg +++ b/Contrib/CCCS/PreCalculus/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_36.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,11 +21,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", #"PGcourse.pl", "contextTrigDegrees.pl", -"contextFraction.pl", +"contextFraction.pl", "PGgraphmacros.pl", "parserPopUp.pl" ); @@ -45,9 +45,9 @@ BEGIN_PGML Let [`f(x)`] be the trigonometric function [`f(x) = \sin(x) `]. -On the interval [` [0, 2\pi)`], the minimum value(s) of the function occur(s) at what `x`-value(s)? +On the interval [` [0, 2\pi)`], the minimum value(s) of the function occur(s) at what `x`-value(s)? -If there is more than one answer, enter as a comma separated list. +If there is more than one answer, enter as a comma separated list. [`x=`][_________]{$ans} diff --git a/Contrib/CCCS/PreCalculus/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_38.pg b/Contrib/CCCS/PreCalculus/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_38.pg index e4eebe9503..f9be9e701c 100644 --- a/Contrib/CCCS/PreCalculus/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_38.pg +++ b/Contrib/CCCS/PreCalculus/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_38.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,11 +21,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", -"contextFraction.pl", +"contextFraction.pl", "PGgraphmacros.pl", "parserPopUp.pl" ); @@ -53,9 +53,9 @@ if ( $a == -1 ) { BEGIN_PGML -Find all the solutions to [`\cos(x) = [$a]`] on the interval [` [0, 2\pi)`]. +Find all the solutions to [`\cos(x) = [$a]`] on the interval [` [0, 2\pi)`]. -If there is more than one answer, enter as a comma separated list. +If there is more than one answer, enter as a comma separated list. [`x=`][_________]{$ans} diff --git a/Contrib/CCCS/PreCalculus/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_39.pg b/Contrib/CCCS/PreCalculus/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_39.pg index a042525f87..c53bc417a3 100644 --- a/Contrib/CCCS/PreCalculus/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_39.pg +++ b/Contrib/CCCS/PreCalculus/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_39.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,11 +21,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", -"contextFraction.pl", +"contextFraction.pl", "PGgraphmacros.pl", "parserPopUp.pl" ); @@ -50,9 +50,9 @@ if ( $a == .5 ) { BEGIN_PGML -Find all the solutions to [`\cos(x) = [$a]`] on the interval [` [0, 2\pi)`]. +Find all the solutions to [`\cos(x) = [$a]`] on the interval [` [0, 2\pi)`]. -If there is more than one answer, enter as a comma separated list. +If there is more than one answer, enter as a comma separated list. [`x=`][_________]{$ans} diff --git a/Contrib/CCCS/PreCalculus/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_40.pg b/Contrib/CCCS/PreCalculus/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_40.pg index 442f4e3ffd..d0c7eeb559 100644 --- a/Contrib/CCCS/PreCalculus/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_40.pg +++ b/Contrib/CCCS/PreCalculus/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_40.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,11 +21,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", -"contextFraction.pl", +"contextFraction.pl", "PGgraphmacros.pl", "parserPopUp.pl" ); @@ -44,9 +44,9 @@ TEXT(beginproblem()); BEGIN_PGML -Find all the `x`-intercepts of [`f(x) = \cos(x) `] on the interval [` [0, 2\pi)`]. +Find all the `x`-intercepts of [`f(x) = \cos(x) `] on the interval [` [0, 2\pi)`]. -If there is more than one answer, enter as a comma separated list. +If there is more than one answer, enter as a comma separated list. [`x=`][_________]{$ans} diff --git a/Contrib/CCCS/PreCalculus/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_06.pg b/Contrib/CCCS/PreCalculus/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_06.pg index 93a784c347..fd837d281d 100644 --- a/Contrib/CCCS/PreCalculus/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_06.pg +++ b/Contrib/CCCS/PreCalculus/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_06.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,11 +21,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", -"contextFraction.pl", +"contextFraction.pl", "PGgraphmacros.pl", "parserPopUp.pl" ); @@ -39,7 +39,7 @@ $showPartialCorrectAnswers = 1; # Setup -# Which graph to show +# Which graph to show $which = random (1, 2, 1); @@ -49,9 +49,9 @@ if ( $which == 1 ) { $c = 0; $d = -3; -$graph = image("08_2_Problem_06_Diagram1.png", - width=>512, - height=>626, +$graph = image("08_2_Problem_06_Diagram1.png", + width=>512, + height=>626, extra_html_tags=>'alt=""') ; $popup = PopUp(["?", "tan(x)", "sec(x)","csc(x)", "cot(x)"], "tan(x)"); @@ -63,9 +63,9 @@ $popup = PopUp(["?", "tan(x)", "sec(x)","csc(x)", "cot(x)"], "tan(x)"); $c = pi/5; $d = 0; -$graph = image("08_2_Problem_06_Diagram2.png", - width=>476, - height=>590, +$graph = image("08_2_Problem_06_Diagram2.png", + width=>476, + height=>590, extra_html_tags=>'alt=""') ; $popup = PopUp(["?","tan(x)", "sec(x)","csc(x)", "cot(x)"], "csc(x)"); @@ -76,17 +76,17 @@ $popup = PopUp(["?","tan(x)", "sec(x)","csc(x)", "cot(x)"], "csc(x)"); $c = 0; $d = 0; -$graph = image("08_2_Problem_06_Diagram3.png", - width=>568, - height=>598, +$graph = image("08_2_Problem_06_Diagram3.png", + width=>568, + height=>598, extra_html_tags=>'alt=""') ; $popup = PopUp(["?","tan(x)", "sec(x)","csc(x)", "cot(x)"], "cot(x)"); } else { -$graph = image("08_2_Problem_06_Diagram4.png", - width=>506, - height=>600, +$graph = image("08_2_Problem_06_Diagram4.png", + width=>506, + height=>600, extra_html_tags=>'alt=""') ; $popup = PopUp(["?","tan(x)", "sec(x)","csc(x)", "cot(x)"], "sec(x)"); diff --git a/Contrib/CCCS/PreCalculus/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_07.pg b/Contrib/CCCS/PreCalculus/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_07.pg index 21a595c9d2..d6083ce8a3 100644 --- a/Contrib/CCCS/PreCalculus/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_07.pg +++ b/Contrib/CCCS/PreCalculus/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_07.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,11 +21,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", -"contextFraction.pl", +"contextFraction.pl", "PGgraphmacros.pl", "parserPopUp.pl" ); @@ -39,7 +39,7 @@ $showPartialCorrectAnswers = 1; # Setup -# Which graph to show +# Which graph to show $which = random (3, 4, 1); @@ -49,9 +49,9 @@ if ( $which == 1 ) { $c = 0; $d = -3; -$graph = image("08_2_Problem_06_Diagram1.png", - width=>512, - height=>626, +$graph = image("08_2_Problem_06_Diagram1.png", + width=>512, + height=>626, extra_html_tags=>'alt=""') ; $popup = PopUp(["?", "tan(x)", "sec(x)","csc(x)", "cot(x)"], "tan(x)"); @@ -63,9 +63,9 @@ $popup = PopUp(["?", "tan(x)", "sec(x)","csc(x)", "cot(x)"], "tan(x)"); $c = pi/5; $d = 0; -$graph = image("08_2_Problem_06_Diagram2.png", - width=>476, - height=>590, +$graph = image("08_2_Problem_06_Diagram2.png", + width=>476, + height=>590, extra_html_tags=>'alt=""') ; $popup = PopUp(["?","tan(x)", "sec(x)","csc(x)", "cot(x)"], "csc(x)"); @@ -76,17 +76,17 @@ $popup = PopUp(["?","tan(x)", "sec(x)","csc(x)", "cot(x)"], "csc(x)"); $c = 0; $d = 0; -$graph = image("08_2_Problem_06_Diagram3.png", - width=>568, - height=>598, +$graph = image("08_2_Problem_06_Diagram3.png", + width=>568, + height=>598, extra_html_tags=>'alt=""') ; $popup = PopUp(["?","tan(x)", "sec(x)","csc(x)", "cot(x)"], "cot(x)"); } else { -$graph = image("08_2_Problem_06_Diagram4.png", - width=>506, - height=>600, +$graph = image("08_2_Problem_06_Diagram4.png", + width=>506, + height=>600, extra_html_tags=>'alt=""') ; $popup = PopUp(["?","tan(x)", "sec(x)","csc(x)", "cot(x)"], "sec(x)"); diff --git a/Contrib/CCCS/PreCalculus/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_08.pg b/Contrib/CCCS/PreCalculus/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_08.pg index 52e5ec3026..06d585f9d7 100644 --- a/Contrib/CCCS/PreCalculus/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_08.pg +++ b/Contrib/CCCS/PreCalculus/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_08.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,11 +21,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", -"contextFraction.pl", +"contextFraction.pl", "PGgraphmacros.pl", "parserPopUp.pl" ); @@ -39,7 +39,7 @@ $showPartialCorrectAnswers = 1; # Setup -# Which graph to show +# Which graph to show $which = random (1, 4, 1); @@ -49,9 +49,9 @@ if ( $which == 1 ) { $c = 0; $d = -3; -$graph = image("08_2_Problem_06_Diagram1.png", - width=>512, - height=>626, +$graph = image("08_2_Problem_06_Diagram1.png", + width=>512, + height=>626, extra_html_tags=>'alt=""') ; $popup = PopUp(["?", "tan(x)", "sec(x)","csc(x)", "cot(x)"], "tan(x)"); @@ -63,9 +63,9 @@ $popup = PopUp(["?", "tan(x)", "sec(x)","csc(x)", "cot(x)"], "tan(x)"); $c = pi/5; $d = 0; -$graph = image("08_2_Problem_06_Diagram2.png", - width=>476, - height=>590, +$graph = image("08_2_Problem_06_Diagram2.png", + width=>476, + height=>590, extra_html_tags=>'alt=""') ; $popup = PopUp(["?","tan(x)", "sec(x)","csc(x)", "cot(x)"], "csc(x)"); @@ -76,17 +76,17 @@ $popup = PopUp(["?","tan(x)", "sec(x)","csc(x)", "cot(x)"], "csc(x)"); $c = 0; $d = 0; -$graph = image("08_2_Problem_06_Diagram3.png", - width=>568, - height=>598, +$graph = image("08_2_Problem_06_Diagram3.png", + width=>568, + height=>598, extra_html_tags=>'alt=""') ; $popup = PopUp(["?","tan(x)", "sec(x)","csc(x)", "cot(x)"], "cot(x)"); } else { -$graph = image("08_2_Problem_06_Diagram4.png", - width=>506, - height=>600, +$graph = image("08_2_Problem_06_Diagram4.png", + width=>506, + height=>600, extra_html_tags=>'alt=""') ; $popup = PopUp(["?","tan(x)", "sec(x)","csc(x)", "cot(x)"], "sec(x)"); diff --git a/Contrib/CCCS/PreCalculus/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_09.pg b/Contrib/CCCS/PreCalculus/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_09.pg index b842680f95..20cf012e65 100644 --- a/Contrib/CCCS/PreCalculus/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_09.pg +++ b/Contrib/CCCS/PreCalculus/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_09.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,11 +21,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", -"contextFraction.pl", +"contextFraction.pl", "PGgraphmacros.pl", "parserPopUp.pl" ); @@ -39,7 +39,7 @@ $showPartialCorrectAnswers = 1; # Setup -# Which graph to show +# Which graph to show $which = random (1, 4, 1); @@ -49,9 +49,9 @@ if ( $which == 1 ) { $c = 0; $d = -3; -$graph = image("08_2_Problem_06_Diagram1.png", - width=>512, - height=>626, +$graph = image("08_2_Problem_06_Diagram1.png", + width=>512, + height=>626, extra_html_tags=>'alt=""') ; $popup = PopUp(["?", "tan(x)", "sec(x)","csc(x)", "cot(x)"], "tan(x)"); @@ -63,9 +63,9 @@ $popup = PopUp(["?", "tan(x)", "sec(x)","csc(x)", "cot(x)"], "tan(x)"); $c = pi/5; $d = 0; -$graph = image("08_2_Problem_06_Diagram2.png", - width=>476, - height=>590, +$graph = image("08_2_Problem_06_Diagram2.png", + width=>476, + height=>590, extra_html_tags=>'alt=""') ; $popup = PopUp(["?","tan(x)", "sec(x)","csc(x)", "cot(x)"], "csc(x)"); @@ -76,17 +76,17 @@ $popup = PopUp(["?","tan(x)", "sec(x)","csc(x)", "cot(x)"], "csc(x)"); $c = 0; $d = 0; -$graph = image("08_2_Problem_06_Diagram3.png", - width=>568, - height=>598, +$graph = image("08_2_Problem_06_Diagram3.png", + width=>568, + height=>598, extra_html_tags=>'alt=""') ; $popup = PopUp(["?","tan(x)", "sec(x)","csc(x)", "cot(x)"], "cot(x)"); } else { -$graph = image("08_2_Problem_06_Diagram4.png", - width=>506, - height=>600, +$graph = image("08_2_Problem_06_Diagram4.png", + width=>506, + height=>600, extra_html_tags=>'alt=""') ; $popup = PopUp(["?","tan(x)", "sec(x)","csc(x)", "cot(x)"], "sec(x)"); diff --git a/Contrib/CCCS/PreCalculus/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_10.pg b/Contrib/CCCS/PreCalculus/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_10.pg index 6da2ef6abe..5b8c5ee565 100644 --- a/Contrib/CCCS/PreCalculus/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_10.pg +++ b/Contrib/CCCS/PreCalculus/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_10.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,11 +21,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", -"contextFraction.pl", +"contextFraction.pl", "PGgraphmacros.pl", "parserPopUp.pl" ); @@ -54,8 +54,8 @@ $popup2 = PopUp(["?", "left","right"], "right"); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); diff --git a/Contrib/CCCS/PreCalculus/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_11.pg b/Contrib/CCCS/PreCalculus/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_11.pg index 107d087fd2..0262bcb9a5 100644 --- a/Contrib/CCCS/PreCalculus/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_11.pg +++ b/Contrib/CCCS/PreCalculus/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_11.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,11 +21,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", -"contextFraction.pl", +"contextFraction.pl", "PGgraphmacros.pl", "parserPopUp.pl" ); @@ -52,8 +52,8 @@ $popup2 = PopUp(["?", "left","right"], "left"); $horizontalShift = Compute($c); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); diff --git a/Contrib/CCCS/PreCalculus/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_12.pg b/Contrib/CCCS/PreCalculus/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_12.pg index 707e740534..01b7143f42 100644 --- a/Contrib/CCCS/PreCalculus/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_12.pg +++ b/Contrib/CCCS/PreCalculus/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_12.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,11 +21,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", -"contextFraction.pl", +"contextFraction.pl", "PGgraphmacros.pl", "parserPopUp.pl" ); @@ -52,8 +52,8 @@ $popup2 = PopUp(["?", "left","right"], "left"); $horizontalShift = Compute($b); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); diff --git a/Contrib/CCCS/PreCalculus/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_13.pg b/Contrib/CCCS/PreCalculus/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_13.pg index 1adf7e2865..6e28b4a0d4 100644 --- a/Contrib/CCCS/PreCalculus/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_13.pg +++ b/Contrib/CCCS/PreCalculus/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_13.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,11 +21,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", -"contextFraction.pl", +"contextFraction.pl", "PGgraphmacros.pl", "parserPopUp.pl" ); diff --git a/Contrib/CCCS/PreCalculus/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_14.pg b/Contrib/CCCS/PreCalculus/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_14.pg index bb89803278..40243e6448 100644 --- a/Contrib/CCCS/PreCalculus/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_14.pg +++ b/Contrib/CCCS/PreCalculus/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_14.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,11 +21,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", -"contextFraction.pl", +"contextFraction.pl", "PGgraphmacros.pl", "parserPopUp.pl" ); diff --git a/Contrib/CCCS/PreCalculus/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_19.pg b/Contrib/CCCS/PreCalculus/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_19.pg index 3e7f6ddea7..16d608f25f 100644 --- a/Contrib/CCCS/PreCalculus/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_19.pg +++ b/Contrib/CCCS/PreCalculus/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_19.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,11 +21,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", -"contextFraction.pl", +"contextFraction.pl", "PGgraphmacros.pl", "parserPopUp.pl" ); diff --git a/Contrib/CCCS/PreCalculus/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_20.pg b/Contrib/CCCS/PreCalculus/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_20.pg index 48681dd6cd..b90412e8dc 100644 --- a/Contrib/CCCS/PreCalculus/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_20.pg +++ b/Contrib/CCCS/PreCalculus/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_20.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,11 +21,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", -"contextFraction.pl", +"contextFraction.pl", "PGgraphmacros.pl", "parserPopUp.pl" ); diff --git a/Contrib/CCCS/PreCalculus/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_21.pg b/Contrib/CCCS/PreCalculus/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_21.pg index d8d08414d9..921707d7e3 100644 --- a/Contrib/CCCS/PreCalculus/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_21.pg +++ b/Contrib/CCCS/PreCalculus/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_21.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -22,11 +22,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", -"contextFraction.pl", +"contextFraction.pl", "PGgraphmacros.pl", "parserPopUp.pl" ); diff --git a/Contrib/CCCS/PreCalculus/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_30.pg b/Contrib/CCCS/PreCalculus/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_30.pg index 02a3debec6..bac023c37d 100644 --- a/Contrib/CCCS/PreCalculus/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_30.pg +++ b/Contrib/CCCS/PreCalculus/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_30.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Trigonometry) @@ -20,11 +20,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", -"contextFraction.pl", +"contextFraction.pl", "PGgraphmacros.pl", "parserPopUp.pl" ); @@ -59,8 +59,8 @@ Context("Interval"); $range=Compute("(-infinity,infinity)"); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); diff --git a/Contrib/CCCS/PreCalculus/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_34.pg b/Contrib/CCCS/PreCalculus/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_34.pg index 36e51fd7fc..cbe8682af2 100644 --- a/Contrib/CCCS/PreCalculus/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_34.pg +++ b/Contrib/CCCS/PreCalculus/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_34.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -22,11 +22,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", -"contextFraction.pl", +"contextFraction.pl", "PGgraphmacros.pl", "parserPopUp.pl" ); diff --git a/Contrib/CCCS/PreCalculus/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_36.pg b/Contrib/CCCS/PreCalculus/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_36.pg index 6b6f74c66c..8fb0a9a00f 100644 --- a/Contrib/CCCS/PreCalculus/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_36.pg +++ b/Contrib/CCCS/PreCalculus/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_36.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,11 +21,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", -"contextFraction.pl", +"contextFraction.pl", "PGgraphmacros.pl", "parserPopUp.pl" ); diff --git a/Contrib/CCCS/PreCalculus/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_39.pg b/Contrib/CCCS/PreCalculus/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_39.pg index 66a6a46f01..6a86305a9b 100644 --- a/Contrib/CCCS/PreCalculus/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_39.pg +++ b/Contrib/CCCS/PreCalculus/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_39.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,11 +21,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", -"contextFraction.pl", +"contextFraction.pl", "PGgraphmacros.pl", "parserPopUp.pl", ); @@ -51,9 +51,9 @@ BEGIN_PGML Determine which equation can be used to find the asymptotes for the following graph. ->> [@ image("08_2_Problem_39_Diagram.png", - width=>1008/2, - height=>1036/2, +>> [@ image("08_2_Problem_39_Diagram.png", + width=>1008/2, + height=>1036/2, extra_html_tags=>'alt=""') ; @]* << Which equation can be used to find the asymptotes for the graph? [_______]{$popup}. diff --git a/Contrib/CCCS/PreCalculus/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_40.pg b/Contrib/CCCS/PreCalculus/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_40.pg index ae74505c35..84ad2fc1e7 100644 --- a/Contrib/CCCS/PreCalculus/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_40.pg +++ b/Contrib/CCCS/PreCalculus/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_40.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,11 +21,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", -"contextFraction.pl", +"contextFraction.pl", "PGgraphmacros.pl", "parserPopUp.pl" ); @@ -49,9 +49,9 @@ BEGIN_PGML Determine which equation can be used to find the asymptotes for the following graph. ->> [@ image("08_2_Problem_40_Diagram.png", - width=>1292/2, - height=>776/2, +>> [@ image("08_2_Problem_40_Diagram.png", + width=>1292/2, + height=>776/2, extra_html_tags=>'alt=""') ; @]* << diff --git a/Contrib/CCCS/PreCalculus/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_41.pg b/Contrib/CCCS/PreCalculus/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_41.pg index 0a5006b146..ebb5a51b86 100644 --- a/Contrib/CCCS/PreCalculus/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_41.pg +++ b/Contrib/CCCS/PreCalculus/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_41.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,11 +21,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", -"contextFraction.pl", +"contextFraction.pl", "PGgraphmacros.pl", "parserPopUp.pl" ); @@ -48,9 +48,9 @@ BEGIN_PGML Determine which equation can be used to find the asymptotes for the following graph. ->> [@ image("08_2_Problem_41_Diagram.png", - width=>1010/2, - height=>1042/2, +>> [@ image("08_2_Problem_41_Diagram.png", + width=>1010/2, + height=>1042/2, extra_html_tags=>'alt=""') ; @]* << diff --git a/Contrib/CCCS/PreCalculus/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_42.pg b/Contrib/CCCS/PreCalculus/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_42.pg index 236e5f5c85..c4403b08c7 100644 --- a/Contrib/CCCS/PreCalculus/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_42.pg +++ b/Contrib/CCCS/PreCalculus/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_42.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,11 +21,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", -"contextFraction.pl", +"contextFraction.pl", "PGgraphmacros.pl", "parserPopUp.pl" ); @@ -49,9 +49,9 @@ BEGIN_PGML Determine which equation can be used to find the asymptotes for the following graph. ->> [@ image("08_2_Problem_42_Diagram.png", - width=>1026/2, - height=>1050/2, +>> [@ image("08_2_Problem_42_Diagram.png", + width=>1026/2, + height=>1050/2, extra_html_tags=>'alt=""') ; @]* << diff --git a/Contrib/CCCS/PreCalculus/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_10.pg b/Contrib/CCCS/PreCalculus/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_10.pg index 299cf03531..d35acc85e4 100644 --- a/Contrib/CCCS/PreCalculus/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_10.pg +++ b/Contrib/CCCS/PreCalculus/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_10.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -48,7 +48,7 @@ $n=random(0,2,1); $a = $latexratio[$n] ; -# Array of 3 ratios for Compute +# Array of 3 ratios for Compute @ratio=(sqrt(2)/2, sqrt(3)/2, 1/2); # Selecting angle for Compute @@ -61,8 +61,8 @@ Context()->flags->set(formatStudentAnswer=>'parsed'); Parser::Number::NoDecimals; $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -73,7 +73,7 @@ TeX => BEGIN_PGML Give the exact value for the expression. Use radians for any angles. -`cos^{-1}([$a])=`[_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +`cos^{-1}([$a])=`[_______________]{$ans}[@ helpLink("numbers") @]* [$video]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_11.pg b/Contrib/CCCS/PreCalculus/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_11.pg index 07078c9bd0..bafc80d84b 100644 --- a/Contrib/CCCS/PreCalculus/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_11.pg +++ b/Contrib/CCCS/PreCalculus/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_11.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -48,7 +48,7 @@ $n=random(0,2,1); $a = $latexratio[$n] ; -# Array of 3 ratios for Compute +# Array of 3 ratios for Compute @ratio=(-sqrt(2)/2, -sqrt(3)/2, -1/2); # Selecting angle for Compute @@ -66,7 +66,7 @@ Parser::Number::NoDecimals; BEGIN_PGML Give the exact value for the expression. Use radians for any angles. -`cos^{-1}([$a])=`[_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +`cos^{-1}([$a])=`[_______________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_12.pg b/Contrib/CCCS/PreCalculus/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_12.pg index 7cd665313e..3e3221133a 100644 --- a/Contrib/CCCS/PreCalculus/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_12.pg +++ b/Contrib/CCCS/PreCalculus/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_12.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -48,7 +48,7 @@ $n=random(0,2,1); $a = $latexratio[$n] ; -# Array of 3 ratios for Compute +# Array of 3 ratios for Compute @ratio=(1, 0, -1); # Selecting angle for Compute @@ -61,8 +61,8 @@ Context()->flags->set(formatStudentAnswer=>'parsed'); Parser::Number::NoDecimals; $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -73,7 +73,7 @@ TeX => BEGIN_PGML Give the exact value for the expression. Use radians for any angles. -[`\arctan([$a])=`][_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +[`\arctan([$a])=`][_______________]{$ans}[@ helpLink("numbers") @]* [$video]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_13.pg b/Contrib/CCCS/PreCalculus/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_13.pg index 4714588c47..3403038c70 100644 --- a/Contrib/CCCS/PreCalculus/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_13.pg +++ b/Contrib/CCCS/PreCalculus/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_13.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -48,7 +48,7 @@ $n=random(0,1,1); $a = $latexratio[$n] ; -# Array of 2 ratios for Compute +# Array of 2 ratios for Compute @ratio=(sqrt(3), -sqrt(3)); # Selecting angle for Compute @@ -66,7 +66,7 @@ Parser::Number::NoDecimals; BEGIN_PGML Give the exact value for the expression. Use radians for any angles. -`tan^{-1}([$a])=`[_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +`tan^{-1}([$a])=`[_______________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_14.pg b/Contrib/CCCS/PreCalculus/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_14.pg index 1b3eea79c5..960fa5447b 100644 --- a/Contrib/CCCS/PreCalculus/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_14.pg +++ b/Contrib/CCCS/PreCalculus/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_14.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -48,7 +48,7 @@ $n=random(0,1,1); $a = $latexratio[$n] ; -# Array of 2 ratios for Compute +# Array of 2 ratios for Compute @ratio=(sqrt(3)/3, -sqrt(3)/3); # Selecting angle for Compute @@ -66,7 +66,7 @@ Parser::Number::NoDecimals; BEGIN_PGML Give the exact value for the expression. Use radians for any angles. -`arctan([$a])=`[_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +`arctan([$a])=`[_______________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_17.pg b/Contrib/CCCS/PreCalculus/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_17.pg index 4aca94adbd..10527ff5f4 100644 --- a/Contrib/CCCS/PreCalculus/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_17.pg +++ b/Contrib/CCCS/PreCalculus/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_17.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -56,7 +56,7 @@ Context()->flags->set(formatStudentAnswer=>'parsed'); BEGIN_PGML Use a calculator to evaluate the expression. Round to the nearest hundredth. Use radians for any angles. -`arccos([$a])=`[_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +`arccos([$a])=`[_______________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_18.pg b/Contrib/CCCS/PreCalculus/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_18.pg index b492b56a64..c2cea27b87 100644 --- a/Contrib/CCCS/PreCalculus/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_18.pg +++ b/Contrib/CCCS/PreCalculus/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_18.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -54,9 +54,9 @@ Context()->flags->set(formatStudentAnswer=>'parsed'); # Main text BEGIN_PGML -Use a calculator to evaluate the expression. Round to the nearest hundredth. Use radians for any angles. +Use a calculator to evaluate the expression. Round to the nearest hundredth. Use radians for any angles. -`sin^{-1}([$a])=`[_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +`sin^{-1}([$a])=`[_______________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_19.pg b/Contrib/CCCS/PreCalculus/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_19.pg index 3a477d5d10..6bd22b3926 100644 --- a/Contrib/CCCS/PreCalculus/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_19.pg +++ b/Contrib/CCCS/PreCalculus/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_19.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -56,7 +56,7 @@ Context()->flags->set(formatStudentAnswer=>'parsed'); BEGIN_PGML Use a calculator to evaluate the expression. Round to the nearest hundredth. Use radians for any angles. -`tan^{-1}([$a])=`[_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +`tan^{-1}([$a])=`[_______________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_24.pg b/Contrib/CCCS/PreCalculus/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_24.pg index 9ac3b2bb7a..40338621fc 100644 --- a/Contrib/CCCS/PreCalculus/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_24.pg +++ b/Contrib/CCCS/PreCalculus/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_24.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -41,13 +41,13 @@ Context()->functions->enable("sqrt"); # random integer to choose an angle $n=random(0,6,1); -# Array of 7 angles +# Array of 7 angles @latexfraction=("pi/3" ,"pi/4" ,"pi/6", "(2pi)/3" , "(3pi)/4", "(5pi)/6", "pi"); # Selecting angle for PGML $a = $latexfraction[$n] ; -# Array of 7 angles +# Array of 7 angles @fraction=(pi/3 ,pi/4 ,pi/6, 2*pi/3, 3*pi/4, 5*pi/6, pi); # Selecting angle for Compute @@ -60,8 +60,8 @@ Context()->flags->set(formatStudentAnswer=>'parsed'); Parser::Number::NoDecimals; $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -75,7 +75,7 @@ Give the exact value for the expression. Use radians for any angles. `sin^{-1}(cos([$a]))` -[_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans}[@ helpLink("numbers") @]* [$video]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_25.pg b/Contrib/CCCS/PreCalculus/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_25.pg index 103612db25..c84ceaf5e5 100644 --- a/Contrib/CCCS/PreCalculus/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_25.pg +++ b/Contrib/CCCS/PreCalculus/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_25.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -41,13 +41,13 @@ Context()->functions->enable("sqrt"); # random integer to choose an angle $n=random(0,7,1); -# Array of 8 angles +# Array of 8 angles @latexfraction=("(11pi)/6", "pi/3" ,"pi/4" ,"pi/6", "(2pi)/3" , "(3pi)/4", "(5pi)/6", "pi"); # Selecting angle for PGML $a = $latexfraction[$n] ; -# Array of 8 angles +# Array of 8 angles @fraction=(11*pi/6, pi/3 ,pi/4 ,pi/6, 2*pi/3, 3*pi/4, 5*pi/6, pi); # Selecting angle for Compute @@ -68,7 +68,7 @@ Give the exact value for the expression. Use radians for any angles. `cos^{-1}(sin([$a]))` -[_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_26.pg b/Contrib/CCCS/PreCalculus/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_26.pg index 6b7e0d2537..c1925e0fc0 100644 --- a/Contrib/CCCS/PreCalculus/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_26.pg +++ b/Contrib/CCCS/PreCalculus/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_26.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -41,7 +41,7 @@ Context()->functions->enable("sqrt"); # random integer to choose an angle $n=random(0,6,1); -# Array of 7 ratios +# Array of 7 ratios @latexfraction=("1/2", "(sqrt2)/2" ,"(sqrt3)/2" ,"-1/2", "-(sqrt2)/2" ,"-(sqrt3)/2", 0); # Selecting angle for PGML @@ -68,7 +68,7 @@ Give the exact value for the expression. Use radians for any angles. `cos(sin^{-1}([$a]))` -[_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_30.pg b/Contrib/CCCS/PreCalculus/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_30.pg index 4d193e132e..0cbb85711b 100644 --- a/Contrib/CCCS/PreCalculus/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_30.pg +++ b/Contrib/CCCS/PreCalculus/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_30.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -41,13 +41,13 @@ Context()->functions->enable("sqrt"); # random integer to choose an angle $n=random(0,7,1); -# Array of 8 angles +# Array of 8 angles @latexfraction=("(11pi)/6", "pi/3" ,"pi/4" ,"pi/6", "(2pi)/3" , "(3pi)/4", "(5pi)/6", "pi"); # Selecting angle for PGML $a = $latexfraction[$n] ; -# Array of 8 angles +# Array of 8 angles @fraction=(11*pi/6, pi/3 ,pi/4 ,pi/6, 2*pi/3, 3*pi/4, 5*pi/6, pi); # Selecting angle for Compute @@ -68,7 +68,7 @@ Give the exact value for the expression. Use radians for any angles. `tan^{-1}(tan([$a]))` -[_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_31.pg b/Contrib/CCCS/PreCalculus/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_31.pg index 5dceec78b1..7ac013b929 100644 --- a/Contrib/CCCS/PreCalculus/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_31.pg +++ b/Contrib/CCCS/PreCalculus/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_31.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -41,7 +41,7 @@ Context()->functions->enable("sqrt"); # random integer to choose an angle $n=random(0,5,1); -# Array of 6 ratios +# Array of 6 ratios @latexfraction=("1/2", "(sqrt2)/2" ,"(sqrt3)/2" ,"-1/2", "-(sqrt2)/2" ,"-(sqrt3)/2"); # Selecting angle for PGML @@ -68,7 +68,7 @@ Give the exact value for the expression. Use radians for any angles. `sin(sin^{-1}([$a]))` -[_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_32.pg b/Contrib/CCCS/PreCalculus/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_32.pg index 981f27066c..6b506f0640 100644 --- a/Contrib/CCCS/PreCalculus/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_32.pg +++ b/Contrib/CCCS/PreCalculus/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_32.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -41,7 +41,7 @@ Context()->functions->enable("sqrt"); # random integer to choose an angle $n=random(0,5,1); -# Array of 9 ratios +# Array of 9 ratios @latexfraction=("1/2", "(sqrt2)/2" ,"(sqrt3)/2" ,"-1/2", "-(sqrt2)/2" ,"-(sqrt3)/2"); # Selecting angle for PGML @@ -68,7 +68,7 @@ Give the exact value for the expression. Use radians for any angles. `sin(arccos([$a]))` -[_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_53.pg b/Contrib/CCCS/PreCalculus/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_53.pg index 17d6234bf4..858353441e 100644 --- a/Contrib/CCCS/PreCalculus/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_53.pg +++ b/Contrib/CCCS/PreCalculus/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_53.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -61,7 +61,7 @@ BEGIN_PGML Suppose a [$a]-foot ladder is leaning against a building, reaching to the bottom of a second-floor window [$b] feet above the ground. What angle, in degrees, does the ladder make with the building? Round to the nearest hundredth. -[_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_54.pg b/Contrib/CCCS/PreCalculus/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_54.pg index 7e704a4410..dff7e4cd90 100644 --- a/Contrib/CCCS/PreCalculus/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_54.pg +++ b/Contrib/CCCS/PreCalculus/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_54.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -60,7 +60,7 @@ BEGIN_PGML Suppose you drive [$a] miles on a road, during which the vertical distance changes from 0 to [$b] feet. What is the angle of elevation (in degrees) of the road? Round to the nearest hundredth. -[_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_8.pg b/Contrib/CCCS/PreCalculus/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_8.pg index 29edc37cde..be1bfb8831 100644 --- a/Contrib/CCCS/PreCalculus/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_8.pg +++ b/Contrib/CCCS/PreCalculus/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_8.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -48,7 +48,7 @@ $n=random(0,2,1); $a = $latexratio[$n] ; -# Array of 3 ratios for Compute +# Array of 3 ratios for Compute @ratio=(sqrt(2)/2, sqrt(3)/2, 1/2); # Selecting angle for Compute @@ -62,8 +62,8 @@ Parser::Number::NoDecimals; $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -73,7 +73,7 @@ TeX => BEGIN_PGML Give the exact value for the expression. Use radians for any angles. -`sin^{-1}([$a])=`[_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +`sin^{-1}([$a])=`[_______________]{$ans}[@ helpLink("numbers") @]* [$video]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_9.pg b/Contrib/CCCS/PreCalculus/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_9.pg index 0795855800..c740aaea22 100644 --- a/Contrib/CCCS/PreCalculus/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_9.pg +++ b/Contrib/CCCS/PreCalculus/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_9.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -48,7 +48,7 @@ $n=random(0,2,1); $a = $latexratio[$n] ; -# Array of 3 ratios for Compute +# Array of 3 ratios for Compute @ratio=(-sqrt(2)/2, -sqrt(3)/2, -1/2); # Selecting angle for Compute @@ -66,7 +66,7 @@ Parser::Number::NoDecimals; BEGIN_PGML Give the exact value for the expression. Use radians for any angles. -`arcsin([$a])=`[_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +`arcsin([$a])=`[_______________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_10.pg b/Contrib/CCCS/PreCalculus/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_10.pg index 27d2da6919..f91b541abf 100644 --- a/Contrib/CCCS/PreCalculus/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_10.pg +++ b/Contrib/CCCS/PreCalculus/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_10.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -41,7 +41,7 @@ Context()->variables->add(t=>"Real"); if ( $chooser==1) { $fun=("3sin^3(y)csc(y)+cos^2(y)+2cos(-y)cos(y)"); -$ans=("3"); +$ans=("3"); } elsif( $chooser==2) { @@ -58,7 +58,7 @@ $ans="4"; BEGIN_PGML Use the fundamental identities to fully simplify the expression. -`[$fun]` +`[$fun]` [____________________]{$ans} diff --git a/Contrib/CCCS/PreCalculus/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_13.pg b/Contrib/CCCS/PreCalculus/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_13.pg index b82200bd06..0e87760dd2 100644 --- a/Contrib/CCCS/PreCalculus/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_13.pg +++ b/Contrib/CCCS/PreCalculus/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_13.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -41,7 +41,7 @@ if ( $chooser==1) { Context()->functions->disable("SimpleTrig"); Context()->functions->enable("sec"); $fun=("(1+tan^2x)/csc^2x+sin^2x+1/(sec^2x)"); -$ans="sec^2x"; +$ans="sec^2x"; } elsif( $chooser==2) { @@ -59,7 +59,7 @@ $ans="csc^2x"; BEGIN_PGML Use the fundamental identities to fully simplify the expression. -`[$fun]` +`[$fun]` [____________________]{$ans} diff --git a/Contrib/CCCS/PreCalculus/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_16.pg b/Contrib/CCCS/PreCalculus/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_16.pg index 671ab52678..3cd5c92b42 100644 --- a/Contrib/CCCS/PreCalculus/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_16.pg +++ b/Contrib/CCCS/PreCalculus/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_16.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); diff --git a/Contrib/CCCS/PreCalculus/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_18.pg b/Contrib/CCCS/PreCalculus/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_18.pg index c57f033c6e..de6552f669 100644 --- a/Contrib/CCCS/PreCalculus/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_18.pg +++ b/Contrib/CCCS/PreCalculus/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_18.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); diff --git a/Contrib/CCCS/PreCalculus/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_29.pg b/Contrib/CCCS/PreCalculus/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_29.pg index f20c895120..0b99e9bbcb 100644 --- a/Contrib/CCCS/PreCalculus/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_29.pg +++ b/Contrib/CCCS/PreCalculus/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_29.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -40,7 +40,7 @@ $showPartialCorrectAnswers = 1; # Main text BEGIN_PGML -Verify the following identity. +Verify the following identity. `cosx-cos^3x=cosxsin^2x` diff --git a/Contrib/CCCS/PreCalculus/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_30.pg b/Contrib/CCCS/PreCalculus/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_30.pg index 93c7704560..ec7d9094c9 100644 --- a/Contrib/CCCS/PreCalculus/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_30.pg +++ b/Contrib/CCCS/PreCalculus/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_30.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -40,7 +40,7 @@ $showPartialCorrectAnswers = 1; # Main text BEGIN_PGML -Verify the following identity. +Verify the following identity. `cos\theta(tan\theta-sec(-\theta))=sin\theta-1` diff --git a/Contrib/CCCS/PreCalculus/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_31.pg b/Contrib/CCCS/PreCalculus/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_31.pg index ce6770e1b3..bffd78c962 100644 --- a/Contrib/CCCS/PreCalculus/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_31.pg +++ b/Contrib/CCCS/PreCalculus/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_31.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -40,7 +40,7 @@ $showPartialCorrectAnswers = 1; # Main text BEGIN_PGML -Verify the following identity. +Verify the following identity. `\frac{1+sin^2x}{cos^2x}=1+2tan^2x` diff --git a/Contrib/CCCS/PreCalculus/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_32.pg b/Contrib/CCCS/PreCalculus/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_32.pg index 6ac2c69516..9163fea273 100644 --- a/Contrib/CCCS/PreCalculus/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_32.pg +++ b/Contrib/CCCS/PreCalculus/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_32.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -40,7 +40,7 @@ $showPartialCorrectAnswers = 1; # Main text BEGIN_PGML -Verify the following identity. +Verify the following identity. `(sin\beta+cos\beta)^2=1+2sin\betacos\beta` diff --git a/Contrib/CCCS/PreCalculus/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_33.pg b/Contrib/CCCS/PreCalculus/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_33.pg index 821ab5f1b2..5843a5eebe 100644 --- a/Contrib/CCCS/PreCalculus/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_33.pg +++ b/Contrib/CCCS/PreCalculus/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_33.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -40,7 +40,7 @@ $showPartialCorrectAnswers = 1; # Main text BEGIN_PGML -Verify the following identity. +Verify the following identity. `cos^2x-tan^2x=2-sin^2x-sec^2x` diff --git a/Contrib/CCCS/PreCalculus/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_5.pg b/Contrib/CCCS/PreCalculus/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_5.pg index fdfbaf79b5..d6aca0a630 100644 --- a/Contrib/CCCS/PreCalculus/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_5.pg +++ b/Contrib/CCCS/PreCalculus/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_5.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -40,20 +40,20 @@ Context()->functions->disable("SimpleTrig"); if ( $chooser==1) { $fun=("sinx cosx secx"); -$ans=("sinx"); +$ans=("sinx"); Context()->functions->enable("sin"); -Context()->{error}{msg}{"Function 'sin' is not allowed in this context"} +Context()->{error}{msg}{"Function 'sin' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'tan' is not allowed in this context"} +Context()->{error}{msg}{"Function 'tan' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'cot' is not allowed in this context"} +Context()->{error}{msg}{"Function 'cot' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'cos' is not allowed in this context"} +Context()->{error}{msg}{"Function 'cos' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'sec' is not allowed in this context"} +Context()->{error}{msg}{"Function 'sec' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'csc' is not allowed in this context"} +Context()->{error}{msg}{"Function 'csc' is not allowed in this context"} = "This is not completely simplified"; } @@ -64,23 +64,23 @@ $fun=("sinxcosxcscx"); $ans=("cosx"); Context()->functions->enable("cos"); -Context()->{error}{msg}{"Function 'sin' is not allowed in this context"} +Context()->{error}{msg}{"Function 'sin' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'tan' is not allowed in this context"} +Context()->{error}{msg}{"Function 'tan' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'cot' is not allowed in this context"} +Context()->{error}{msg}{"Function 'cot' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'cos' is not allowed in this context"} +Context()->{error}{msg}{"Function 'cos' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'sec' is not allowed in this context"} +Context()->{error}{msg}{"Function 'sec' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'csc' is not allowed in this context"} +Context()->{error}{msg}{"Function 'csc' is not allowed in this context"} = "This is not completely simplified"; } $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -91,7 +91,7 @@ TeX => BEGIN_PGML Use the fundamental identities to fully simplify the expression. -`[$fun]` +`[$fun]` [____________________]{$ans} diff --git a/Contrib/CCCS/PreCalculus/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_6.pg b/Contrib/CCCS/PreCalculus/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_6.pg index 0f13b58571..29ac7d8017 100644 --- a/Contrib/CCCS/PreCalculus/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_6.pg +++ b/Contrib/CCCS/PreCalculus/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_6.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -42,19 +42,19 @@ $chooser=random(1,2,1); if ( $chooser==1) { $fun=("sin(-t) cos(-t) csc(-t)"); -$ans=("cost"); +$ans=("cost"); Context()->functions->enable("cos"); -Context()->{error}{msg}{"Function 'sin' is not allowed in this context"} +Context()->{error}{msg}{"Function 'sin' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'tan' is not allowed in this context"} +Context()->{error}{msg}{"Function 'tan' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'cot' is not allowed in this context"} +Context()->{error}{msg}{"Function 'cot' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'cos' is not allowed in this context"} +Context()->{error}{msg}{"Function 'cos' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'sec' is not allowed in this context"} +Context()->{error}{msg}{"Function 'sec' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'csc' is not allowed in this context"} +Context()->{error}{msg}{"Function 'csc' is not allowed in this context"} = "This is not completely simplified"; } @@ -64,23 +64,23 @@ elsif( $chooser==2) { $fun=("tan(-t)sec(-t)cot(-t)"); $ans=("sec(t)"); Context()->functions->enable("sec"); -Context()->{error}{msg}{"Function 'sin' is not allowed in this context"} +Context()->{error}{msg}{"Function 'sin' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'tan' is not allowed in this context"} +Context()->{error}{msg}{"Function 'tan' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'cot' is not allowed in this context"} +Context()->{error}{msg}{"Function 'cot' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'cos' is not allowed in this context"} +Context()->{error}{msg}{"Function 'cos' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'sec' is not allowed in this context"} +Context()->{error}{msg}{"Function 'sec' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'csc' is not allowed in this context"} +Context()->{error}{msg}{"Function 'csc' is not allowed in this context"} = "This is not completely simplified"; } $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -91,7 +91,7 @@ TeX => BEGIN_PGML Use the fundamental identities to fully simplify the expression. -`[$fun]` +`[$fun]` [____________________]{$ans} diff --git a/Contrib/CCCS/PreCalculus/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_7.pg b/Contrib/CCCS/PreCalculus/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_7.pg index aefeb9e7ab..820cf4a0f0 100644 --- a/Contrib/CCCS/PreCalculus/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_7.pg +++ b/Contrib/CCCS/PreCalculus/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_7.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -40,18 +40,18 @@ Context()->functions->disable("SimpleTrig"); if ( $chooser==1) { $fun=("tanx sinx +secx cos^2x"); -$ans=("secx"); +$ans=("secx"); Context()->functions->enable("sec"); -Context()->{error}{msg}{"Function 'sin' is not allowed in this context"} +Context()->{error}{msg}{"Function 'sin' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'tan' is not allowed in this context"} +Context()->{error}{msg}{"Function 'tan' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'cot' is not allowed in this context"} +Context()->{error}{msg}{"Function 'cot' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'cos' is not allowed in this context"} +Context()->{error}{msg}{"Function 'cos' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'csc' is not allowed in this context"} +Context()->{error}{msg}{"Function 'csc' is not allowed in this context"} = "This is not completely simplified"; } @@ -62,15 +62,15 @@ $fun=("cotx cosx + cscx sin^2x"); $ans="cscx"; Context()->functions->enable("csc"); -Context()->{error}{msg}{"Function 'sin' is not allowed in this context"} +Context()->{error}{msg}{"Function 'sin' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'tan' is not allowed in this context"} +Context()->{error}{msg}{"Function 'tan' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'cot' is not allowed in this context"} +Context()->{error}{msg}{"Function 'cot' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'cos' is not allowed in this context"} +Context()->{error}{msg}{"Function 'cos' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'sec' is not allowed in this context"} +Context()->{error}{msg}{"Function 'sec' is not allowed in this context"} } diff --git a/Contrib/CCCS/PreCalculus/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_8.pg b/Contrib/CCCS/PreCalculus/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_8.pg index 259fd61d3c..afa63e3ae4 100644 --- a/Contrib/CCCS/PreCalculus/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_8.pg +++ b/Contrib/CCCS/PreCalculus/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_8.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -41,18 +41,18 @@ Context()->variables->add(t=>"Real"); if ( $chooser==1) { $fun=("cscx+cosxcot(-x)"); -$ans=("sinx"); +$ans=("sinx"); Context()->functions->enable("sin"); -Context()->{error}{msg}{"Function 'cos' is not allowed in this context"} +Context()->{error}{msg}{"Function 'cos' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'tan' is not allowed in this context"} +Context()->{error}{msg}{"Function 'tan' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'cot' is not allowed in this context"} +Context()->{error}{msg}{"Function 'cot' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'sec' is not allowed in this context"} +Context()->{error}{msg}{"Function 'sec' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'csc' is not allowed in this context"} +Context()->{error}{msg}{"Function 'csc' is not allowed in this context"} = "This is not completely simplified"; } @@ -62,15 +62,15 @@ $fun=("secx+sin(-x)tanx"); $ans="cosx"; Context()->functions->enable("cos"); -Context()->{error}{msg}{"Function 'sin' is not allowed in this context"} +Context()->{error}{msg}{"Function 'sin' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'tan' is not allowed in this context"} +Context()->{error}{msg}{"Function 'tan' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'cot' is not allowed in this context"} +Context()->{error}{msg}{"Function 'cot' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'sec' is not allowed in this context"} +Context()->{error}{msg}{"Function 'sec' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'csc' is not allowed in this context"} +Context()->{error}{msg}{"Function 'csc' is not allowed in this context"} = "This is not completely simplified"; } @@ -81,7 +81,7 @@ Context()->{error}{msg}{"Function 'csc' is not allowed in this context"} BEGIN_PGML Use the fundamental identities to fully simplify the expression. -`[$fun]` +`[$fun]` [____________________]{$ans} diff --git a/Contrib/CCCS/PreCalculus/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_9.pg b/Contrib/CCCS/PreCalculus/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_9.pg index a5d3537f1a..9045ac51f0 100644 --- a/Contrib/CCCS/PreCalculus/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_9.pg +++ b/Contrib/CCCS/PreCalculus/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_9.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -42,18 +42,18 @@ Context()->flags->set(formatStudentAnswer=>'parsed'); if ( $chooser==1) { $fun=("(cott+tant)/(sec(-t))"); -$ans=("csct"); +$ans=("csct"); Context()->functions->enable("csc"); -Context()->{error}{msg}{"Function 'cos' is not allowed in this context"} +Context()->{error}{msg}{"Function 'cos' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'tan' is not allowed in this context"} +Context()->{error}{msg}{"Function 'tan' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'cot' is not allowed in this context"} +Context()->{error}{msg}{"Function 'cot' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'sec' is not allowed in this context"} +Context()->{error}{msg}{"Function 'sec' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'sin' is not allowed in this context"} +Context()->{error}{msg}{"Function 'sin' is not allowed in this context"} = "This is not completely simplified"; } @@ -63,21 +63,21 @@ $fun=("(tant+cott)/(csc(-t))"); $ans="-sect"; Context()->functions->enable("sec"); -Context()->{error}{msg}{"Function 'sin' is not allowed in this context"} +Context()->{error}{msg}{"Function 'sin' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'tan' is not allowed in this context"} +Context()->{error}{msg}{"Function 'tan' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'cot' is not allowed in this context"} +Context()->{error}{msg}{"Function 'cot' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'cos' is not allowed in this context"} +Context()->{error}{msg}{"Function 'cos' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'csc' is not allowed in this context"} +Context()->{error}{msg}{"Function 'csc' is not allowed in this context"} = "This is not completely simplified"; } $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -87,7 +87,7 @@ TeX => BEGIN_PGML Use the fundamental identities to fully simplify the expression. -`[$fun]` +`[$fun]` [____________________]{$ans} diff --git a/Contrib/CCCS/PreCalculus/09.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_2_4.pg b/Contrib/CCCS/PreCalculus/09.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_2_4.pg index e4c8a6eb62..fa0ee800cb 100644 --- a/Contrib/CCCS/PreCalculus/09.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_2_4.pg +++ b/Contrib/CCCS/PreCalculus/09.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_2_4.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -42,8 +42,8 @@ Parser::Number::NoDecimals; $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -53,14 +53,14 @@ $n = random(1,4,1); if ($n == 1){ $ans = Compute("(sqrt(2)-sqrt(6))/4"); - ########################### + ########################### # Main text BEGIN_PGML Find the exact value. - [`` \cos\left(\frac{7\pi}{12}\right) = ``] [_______________]{$ans} [@ - AnswerFormatHelp("numbers") @]* + [`` \cos\left(\frac{7\pi}{12}\right) = ``] [_______________]{$ans} [@ + helpLink("numbers") @]* [$video]* END_PGML @@ -75,14 +75,14 @@ END_TEXT if ($n == 2){ $ans = Compute("(sqrt(6)-sqrt(2))/4"); - ########################### + ########################### # Main text BEGIN_PGML Find the exact value. - [`` \cos\left(\frac{5\pi}{12}\right) = ``] [_______________]{$ans} [@ - AnswerFormatHelp("numbers") @]* + [`` \cos\left(\frac{5\pi}{12}\right) = ``] [_______________]{$ans} [@ + helpLink("numbers") @]* [$video]* END_PGML @@ -96,14 +96,14 @@ END_TEXT if ($n == 3){ $ans = Compute("(sqrt(2)+sqrt(6))/4"); - ########################### + ########################### # Main text BEGIN_PGML Find the exact value. - [`` \cos\left(\frac{\pi}{12}\right) = ``] [_______________]{$ans} [@ - AnswerFormatHelp("numbers") @]* + [`` \cos\left(\frac{\pi}{12}\right) = ``] [_______________]{$ans} [@ + helpLink("numbers") @]* [$video]* END_PGML @@ -117,14 +117,14 @@ END_TEXT if ($n == 4){ $ans = Compute("(-sqrt(2)-sqrt(6))/4"); - ########################### + ########################### # Main text BEGIN_PGML Find the exact value. - [`` \cos\left(\frac{13\pi}{12}\right) = ``] [_______________]{$ans} [@ - AnswerFormatHelp("numbers") @]* + [`` \cos\left(\frac{13\pi}{12}\right) = ``] [_______________]{$ans} [@ + helpLink("numbers") @]* [$video]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/09.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_2_43.pg b/Contrib/CCCS/PreCalculus/09.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_2_43.pg index 1e6c29e192..135c7fc8da 100644 --- a/Contrib/CCCS/PreCalculus/09.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_2_43.pg +++ b/Contrib/CCCS/PreCalculus/09.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_2_43.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -46,14 +46,14 @@ $n = random(1,4,1); if ($n == 1){ $ans = Compute("(sqrt(6)-sqrt(2))/4"); - ########################### + ########################### # Main text BEGIN_PGML Find the exact value. - [`` \sin(15^\circ) = ``] [_______________]{$ans} [@ - AnswerFormatHelp("numbers") @]* + [`` \sin(15^\circ) = ``] [_______________]{$ans} [@ + helpLink("numbers") @]* END_PGML } @@ -61,42 +61,42 @@ if ($n == 1){ if ($n == 2){ $ans = Compute("(sqrt(2)-sqrt(6))/4"); - ########################### + ########################### # Main text BEGIN_PGML Find the exact value. - [`` \sin(-15^\circ) = ``] [_______________]{$ans} [@ - AnswerFormatHelp("numbers") @]* + [`` \sin(-15^\circ) = ``] [_______________]{$ans} [@ + helpLink("numbers") @]* END_PGML } if ($n == 3){ $ans = Compute("(sqrt(6)+sqrt(2))/4"); - ########################### + ########################### # Main text BEGIN_PGML Find the exact value. - [`` \sin(75^\circ) = ``] [_______________]{$ans} [@ - AnswerFormatHelp("numbers") @]* + [`` \sin(75^\circ) = ``] [_______________]{$ans} [@ + helpLink("numbers") @]* END_PGML } if ($n == 4){ $ans = Compute("(sqrt(6)+sqrt(2))/4"); - ########################### + ########################### # Main text BEGIN_PGML Find the exact value. - [`` \sin(105^\circ) = ``] [_______________]{$ans} [@ - AnswerFormatHelp("numbers") @]* + [`` \sin(105^\circ) = ``] [_______________]{$ans} [@ + helpLink("numbers") @]* END_PGML } diff --git a/Contrib/CCCS/PreCalculus/09.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_2_44.pg b/Contrib/CCCS/PreCalculus/09.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_2_44.pg index 8346dcdcef..a0abe0e64a 100644 --- a/Contrib/CCCS/PreCalculus/09.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_2_44.pg +++ b/Contrib/CCCS/PreCalculus/09.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_2_44.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -46,14 +46,14 @@ $n = random(1,4,1); if ($n == 1){ $ans = Compute("(-sqrt(2)-sqrt(6))/4"); - ########################### + ########################### # Main text BEGIN_PGML Find the exact value. - [`` \cos(165^\circ) = ``] [_______________]{$ans} [@ - AnswerFormatHelp("numbers") @]* + [`` \cos(165^\circ) = ``] [_______________]{$ans} [@ + helpLink("numbers") @]* END_PGML } @@ -61,42 +61,42 @@ if ($n == 1){ if ($n == 2){ $ans = Compute("(-sqrt(2)-sqrt(6))/4"); - ########################### + ########################### # Main text BEGIN_PGML Find the exact value. - [`` \cos(195^\circ) = ``] [_______________]{$ans} [@ - AnswerFormatHelp("numbers") @]* + [`` \cos(195^\circ) = ``] [_______________]{$ans} [@ + helpLink("numbers") @]* END_PGML } if ($n == 3){ $ans = Compute("(sqrt(2)-sqrt(6))/4"); - ########################### + ########################### # Main text BEGIN_PGML Find the exact value. - [`` \cos(255^\circ) = ``] [_______________]{$ans} [@ - AnswerFormatHelp("numbers") @]* + [`` \cos(255^\circ) = ``] [_______________]{$ans} [@ + helpLink("numbers") @]* END_PGML } if ($n == 4){ $ans = Compute("(sqrt(6)-sqrt(2))/4"); - ########################### + ########################### # Main text BEGIN_PGML Find the exact value. - [`` \cos(285^\circ) = ``] [_______________]{$ans} [@ - AnswerFormatHelp("numbers") @]* + [`` \cos(285^\circ) = ``] [_______________]{$ans} [@ + helpLink("numbers") @]* END_PGML } diff --git a/Contrib/CCCS/PreCalculus/09.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_2_5.pg b/Contrib/CCCS/PreCalculus/09.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_2_5.pg index bed5bd0b4c..f9957509fb 100644 --- a/Contrib/CCCS/PreCalculus/09.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_2_5.pg +++ b/Contrib/CCCS/PreCalculus/09.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_2_5.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -45,14 +45,14 @@ $n = random(1,4,1); if ($n == 1){ $ans = Compute("(sqrt(6)+sqrt(2))/4"); - ########################### + ########################### # Main text BEGIN_PGML Find the exact value. - [`` \cos\left(\frac{\pi}{12}\right) = ``] [_______________]{$ans} [@ - AnswerFormatHelp("numbers") @]* + [`` \cos\left(\frac{\pi}{12}\right) = ``] [_______________]{$ans} [@ + helpLink("numbers") @]* END_PGML } @@ -60,42 +60,42 @@ if ($n == 1){ if ($n == 2){ $ans = Compute("(sqrt(2)-sqrt(6))/4"); - ########################### + ########################### # Main text BEGIN_PGML Find the exact value. - [`` \cos\left(\frac{17\pi}{12}\right) = ``] [_______________]{$ans} [@ - AnswerFormatHelp("numbers") @]* + [`` \cos\left(\frac{17\pi}{12}\right) = ``] [_______________]{$ans} [@ + helpLink("numbers") @]* END_PGML } if ($n == 3){ $ans = Compute("(sqrt(6)-sqrt(2))/4"); - ########################### + ########################### # Main text BEGIN_PGML Find the exact value. - [`` \cos\left(\frac{19\pi}{12}\right) = ``] [_______________]{$ans} [@ - AnswerFormatHelp("numbers") @]* + [`` \cos\left(\frac{19\pi}{12}\right) = ``] [_______________]{$ans} [@ + helpLink("numbers") @]* END_PGML } if ($n == 4){ $ans = Compute("(sqrt(6)+sqrt(2))/4"); - ########################### + ########################### # Main text BEGIN_PGML Find the exact value. - [`` \cos\left(-\frac{\pi}{12}\right) = ``] [_______________]{$ans} [@ - AnswerFormatHelp("numbers") @]* + [`` \cos\left(-\frac{\pi}{12}\right) = ``] [_______________]{$ans} [@ + helpLink("numbers") @]* END_PGML } diff --git a/Contrib/CCCS/PreCalculus/09.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_2_6.pg b/Contrib/CCCS/PreCalculus/09.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_2_6.pg index 37a06d8a61..e78b12848d 100644 --- a/Contrib/CCCS/PreCalculus/09.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_2_6.pg +++ b/Contrib/CCCS/PreCalculus/09.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_2_6.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -41,8 +41,8 @@ Context()->flags->set( Parser::Number::NoDecimals; $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -53,14 +53,14 @@ $n = random(1,4,1); if ($n == 1){ $ans = Compute("(sqrt(6)+sqrt(2))/4"); - ########################### + ########################### # Main text BEGIN_PGML Find the exact value. - [`` \sin\left(\frac{7\pi}{12}\right) = ``] [_______________]{$ans} [@ - AnswerFormatHelp("numbers") @]* + [`` \sin\left(\frac{7\pi}{12}\right) = ``] [_______________]{$ans} [@ + helpLink("numbers") @]* [$video]* @@ -76,14 +76,14 @@ END_TEXT if ($n == 2){ $ans = Compute("(sqrt(6)+sqrt(2))/4"); - ########################### + ########################### # Main text BEGIN_PGML Find the exact value. - [`` \sin\left(\frac{5\pi}{12}\right) = ``] [_______________]{$ans} [@ - AnswerFormatHelp("numbers") @]* + [`` \sin\left(\frac{5\pi}{12}\right) = ``] [_______________]{$ans} [@ + helpLink("numbers") @]* [$video]* @@ -98,14 +98,14 @@ END_TEXT if ($n == 3){ $ans = Compute("(sqrt(6)-sqrt(2))/4"); - ########################### + ########################### # Main text BEGIN_PGML Find the exact value. - [`` \sin\left(\frac{11\pi}{12}\right) = ``] [_______________]{$ans} [@ - AnswerFormatHelp("numbers") @]* + [`` \sin\left(\frac{11\pi}{12}\right) = ``] [_______________]{$ans} [@ + helpLink("numbers") @]* [$video]* @@ -120,14 +120,14 @@ END_TEXT if ($n == 4){ $ans = Compute("(sqrt(2)-sqrt(6))/4"); - ########################### + ########################### # Main text BEGIN_PGML Find the exact value. - [`` \sin\left(\frac{13\pi}{12}\right) = ``] [_______________]{$ans} [@ - AnswerFormatHelp("numbers") @]* + [`` \sin\left(\frac{13\pi}{12}\right) = ``] [_______________]{$ans} [@ + helpLink("numbers") @]* [$video]* diff --git a/Contrib/CCCS/PreCalculus/09.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_2_7.pg b/Contrib/CCCS/PreCalculus/09.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_2_7.pg index 53f091ad54..e16bc83d57 100644 --- a/Contrib/CCCS/PreCalculus/09.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_2_7.pg +++ b/Contrib/CCCS/PreCalculus/09.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_2_7.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -45,14 +45,14 @@ $n = random(1,4,1); if ($n == 1){ $ans = Compute("(sqrt(6)-sqrt(2))/4"); - ########################### + ########################### # Main text BEGIN_PGML Find the exact value. - [`` \sin\left(\frac{\pi}{12}\right) = ``] [_______________]{$ans} [@ - AnswerFormatHelp("numbers") @]* + [`` \sin\left(\frac{\pi}{12}\right) = ``] [_______________]{$ans} [@ + helpLink("numbers") @]* END_PGML } @@ -60,42 +60,42 @@ if ($n == 1){ if ($n == 2){ $ans = Compute("(-sqrt(6)-sqrt(2))/4"); - ########################### + ########################### # Main text BEGIN_PGML Find the exact value. - [`` \sin\left(\frac{17\pi}{12}\right) = ``] [_______________]{$ans} [@ - AnswerFormatHelp("numbers") @]* + [`` \sin\left(\frac{17\pi}{12}\right) = ``] [_______________]{$ans} [@ + helpLink("numbers") @]* END_PGML } if ($n == 3){ $ans = Compute("(-sqrt(6)-sqrt(2))/4"); - ########################### + ########################### # Main text BEGIN_PGML Find the exact value. - [`` \sin\left(\frac{19\pi}{12}\right) = ``] [_______________]{$ans} [@ - AnswerFormatHelp("numbers") @]* + [`` \sin\left(\frac{19\pi}{12}\right) = ``] [_______________]{$ans} [@ + helpLink("numbers") @]* END_PGML } if ($n == 4){ $ans = Compute("(sqrt(2)-sqrt(6))/4"); - ########################### + ########################### # Main text BEGIN_PGML Find the exact value. - [`` \sin\left(-\frac{\pi}{12}\right) = ``] [_______________]{$ans} [@ - AnswerFormatHelp("numbers") @]* + [`` \sin\left(-\frac{\pi}{12}\right) = ``] [_______________]{$ans} [@ + helpLink("numbers") @]* END_PGML } diff --git a/Contrib/CCCS/PreCalculus/09.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_2_8.pg b/Contrib/CCCS/PreCalculus/09.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_2_8.pg index 0e38789646..7c7a653636 100644 --- a/Contrib/CCCS/PreCalculus/09.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_2_8.pg +++ b/Contrib/CCCS/PreCalculus/09.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_2_8.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -41,8 +41,8 @@ Context()->flags->set( Parser::Number::NoDecimals; $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -52,14 +52,14 @@ $n = random(1,4,1); if ($n == 1){ $ans = Compute("(sqrt(3)+1)/(1-sqrt(3))"); - ########################### + ########################### # Main text BEGIN_PGML Find the exact value. - [`` \tan\left(\frac{7\pi}{12}\right) = ``] [______________________]{$ans} [@ - AnswerFormatHelp("numbers") @]* + [`` \tan\left(\frac{7\pi}{12}\right) = ``] [______________________]{$ans} [@ + helpLink("numbers") @]* [$video]* @@ -75,14 +75,14 @@ END_TEXT if ($n == 2){ $ans = Compute("(sqrt(3)+1)/(sqrt(3)-1)"); - ########################### + ########################### # Main text BEGIN_PGML Find the exact value. - [`` \tan\left(\frac{5\pi}{12}\right) = ``] [______________________]{$ans} [@ - AnswerFormatHelp("numbers") @]* + [`` \tan\left(\frac{5\pi}{12}\right) = ``] [______________________]{$ans} [@ + helpLink("numbers") @]* [$video]* @@ -98,14 +98,14 @@ END_TEXT if ($n == 3){ $ans = Compute("(-sqrt(3)+1)/(1+sqrt(3))"); - ########################### + ########################### # Main text BEGIN_PGML Find the exact value. - [`` \tan\left(\frac{11\pi}{12}\right) = ``] [______________________]{$ans} [@ - AnswerFormatHelp("numbers") @]* + [`` \tan\left(\frac{11\pi}{12}\right) = ``] [______________________]{$ans} [@ + helpLink("numbers") @]* [$video]* @@ -121,14 +121,14 @@ END_TEXT if ($n == 4){ $ans = Compute("(-1+sqrt(3))/(1+sqrt(3))"); - ########################### + ########################### # Main text BEGIN_PGML Find the exact value. - [`` \tan\left(\frac{13\pi}{12}\right) = ``] [______________________]{$ans} [@ - AnswerFormatHelp("numbers") @]* + [`` \tan\left(\frac{13\pi}{12}\right) = ``] [______________________]{$ans} [@ + helpLink("numbers") @]* [$video]* diff --git a/Contrib/CCCS/PreCalculus/09.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_2_9.pg b/Contrib/CCCS/PreCalculus/09.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_2_9.pg index 3fe0aa43e0..8b9839119a 100644 --- a/Contrib/CCCS/PreCalculus/09.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_2_9.pg +++ b/Contrib/CCCS/PreCalculus/09.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_2_9.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -45,14 +45,14 @@ $n = random(1,4,1); if ($n == 1){ $ans = Compute("(sqrt(3)-1)/(1+sqrt(3))"); - ########################### + ########################### # Main text BEGIN_PGML Find the exact value. - [`` \tan\left(\frac{\pi}{12}\right) = ``] [_________________________]{$ans} [@ - AnswerFormatHelp("numbers") @]* + [`` \tan\left(\frac{\pi}{12}\right) = ``] [_________________________]{$ans} [@ + helpLink("numbers") @]* END_PGML } @@ -60,42 +60,42 @@ if ($n == 1){ if ($n == 2){ $ans = Compute("(-sqrt(3)-1)/(1-sqrt(3))"); - ########################### + ########################### # Main text BEGIN_PGML Find the exact value. - [`` \tan\left(\frac{17\pi}{12}\right) = ``] [_________________________]{$ans} [@ - AnswerFormatHelp("numbers") @]* + [`` \tan\left(\frac{17\pi}{12}\right) = ``] [_________________________]{$ans} [@ + helpLink("numbers") @]* END_PGML } if ($n == 3){ $ans = Compute("(-sqrt(3)-1)/(sqrt(3)-1)"); - ########################### + ########################### # Main text BEGIN_PGML Find the exact value. - [`` \tan\left(\frac{19\pi}{12}\right) = ``] [_________________________]{$ans} [@ - AnswerFormatHelp("numbers") @]* + [`` \tan\left(\frac{19\pi}{12}\right) = ``] [_________________________]{$ans} [@ + helpLink("numbers") @]* END_PGML } if ($n == 4){ $ans = Compute("(1-sqrt(3))/(sqrt(3)+1)"); - ########################### + ########################### # Main text BEGIN_PGML Find the exact value. - [`` \tan\left(-\frac{\pi}{12}\right) = ``] [_________________________]{$ans} [@ - AnswerFormatHelp("numbers") @]* + [`` \tan\left(-\frac{\pi}{12}\right) = ``] [_________________________]{$ans} [@ + helpLink("numbers") @]* END_PGML } diff --git a/Contrib/CCCS/PreCalculus/09.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_3_13.pg b/Contrib/CCCS/PreCalculus/09.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_3_13.pg index 1bb58fdb7c..d1e34bd4b5 100644 --- a/Contrib/CCCS/PreCalculus/09.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_3_13.pg +++ b/Contrib/CCCS/PreCalculus/09.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_3_13.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -45,14 +45,14 @@ $n = random(1,4,1); if ($n == 1){ $ans = Compute("sqrt(2-sqrt(3))/2"); - ########################### + ########################### # Main text BEGIN_PGML Find the exact value of the following expression. - [`` \sin\left(\frac{\pi}{12}\right) = ``] [_______________]{$ans} [@ - AnswerFormatHelp("numbers") @]* + [`` \sin\left(\frac{\pi}{12}\right) = ``] [_______________]{$ans} [@ + helpLink("numbers") @]* END_PGML } @@ -60,42 +60,42 @@ if ($n == 1){ if ($n == 2){ $ans = Compute("sqrt(2-sqrt(2))/2"); - ########################### + ########################### # Main text BEGIN_PGML Find the exact value of the following expression. - [`` \sin\left(\frac{\pi}{8}\right) = ``] [_______________]{$ans} [@ - AnswerFormatHelp("numbers") @]* + [`` \sin\left(\frac{\pi}{8}\right) = ``] [_______________]{$ans} [@ + helpLink("numbers") @]* END_PGML } if ($n == 3){ $ans = Compute("sqrt(2+sqrt(2))/2"); - ########################### + ########################### # Main text BEGIN_PGML Find the exact value of the following expression. - [`` \sin\left(\frac{3\pi}{8}\right) = ``] [_______________]{$ans} [@ - AnswerFormatHelp("numbers") @]* + [`` \sin\left(\frac{3\pi}{8}\right) = ``] [_______________]{$ans} [@ + helpLink("numbers") @]* END_PGML } if ($n == 4){ $ans = Compute("sqrt(2+sqrt(3))/2"); - ########################### + ########################### # Main text BEGIN_PGML Find the exact value of the following expression. - [`` \sin\left(\frac{5\pi}{12}\right) = ``] [_______________]{$ans} [@ - AnswerFormatHelp("numbers") @]* + [`` \sin\left(\frac{5\pi}{12}\right) = ``] [_______________]{$ans} [@ + helpLink("numbers") @]* END_PGML } diff --git a/Contrib/CCCS/PreCalculus/09.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_3_14.pg b/Contrib/CCCS/PreCalculus/09.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_3_14.pg index 09679f7ad7..c1adc560ca 100644 --- a/Contrib/CCCS/PreCalculus/09.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_3_14.pg +++ b/Contrib/CCCS/PreCalculus/09.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_3_14.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -45,14 +45,14 @@ $n = random(1,4,1); if ($n == 1){ $ans = Compute("-sqrt(2+sqrt(3))/2"); - ########################### + ########################### # Main text BEGIN_PGML Find the exact value using the half-angle formulas. - [`` \cos\left(-\frac{11\pi}{12}\right) = ``] [_______________]{$ans} [@ - AnswerFormatHelp("numbers") @]* + [`` \cos\left(-\frac{11\pi}{12}\right) = ``] [_______________]{$ans} [@ + helpLink("numbers") @]* END_PGML } @@ -60,42 +60,42 @@ if ($n == 1){ if ($n == 2){ $ans = Compute("-sqrt(2+sqrt(2))/2"); - ########################### + ########################### # Main text BEGIN_PGML Find the exact value using the half-angle formulas. - [`` \cos\left(-\frac{7\pi}{8}\right) = ``] [_______________]{$ans} [@ - AnswerFormatHelp("numbers") @]* + [`` \cos\left(-\frac{7\pi}{8}\right) = ``] [_______________]{$ans} [@ + helpLink("numbers") @]* END_PGML } if ($n == 3){ $ans = Compute("-sqrt(2-sqrt(2))/2"); - ########################### + ########################### # Main text BEGIN_PGML Find the exact value using the half-angle formulas. - [`` \cos\left(-\frac{5\pi}{8}\right) = ``] [_______________]{$ans} [@ - AnswerFormatHelp("numbers") @]* + [`` \cos\left(-\frac{5\pi}{8}\right) = ``] [_______________]{$ans} [@ + helpLink("numbers") @]* END_PGML } if ($n == 4){ $ans = Compute("-sqrt(2-sqrt(3))/2"); - ########################### + ########################### # Main text BEGIN_PGML Find the exact value using the half-angle formulas. - [`` \cos\left(-\frac{7\pi}{12}\right) = ``] [_______________]{$ans} [@ - AnswerFormatHelp("numbers") @]* + [`` \cos\left(-\frac{7\pi}{12}\right) = ``] [_______________]{$ans} [@ + helpLink("numbers") @]* END_PGML } diff --git a/Contrib/CCCS/PreCalculus/09.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_3_24.pg b/Contrib/CCCS/PreCalculus/09.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_3_24.pg index 616ab0912e..d9559f4411 100644 --- a/Contrib/CCCS/PreCalculus/09.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_3_24.pg +++ b/Contrib/CCCS/PreCalculus/09.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_3_24.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -53,19 +53,19 @@ if ($n == 1){ # Main text BEGIN_PGML - Use the figure below to find the exact values of the following. - >>[@ image("9_3_24.png", - width=>500, - height=>300, - extra_html_tags=>'alt="triangle where angle theta is opposite side of length 5 and angle alpha is opposite of side length 12"') + Use the figure below to find the exact values of the following. + >>[@ image("9_3_24.png", + width=>500, + height=>300, + extra_html_tags=>'alt="triangle where angle theta is opposite side of length 5 and angle alpha is opposite of side length 12"') @]*<< - [` \sin(2\theta) = `] [_______________]{$ans_s} [@ AnswerFormatHelp("numbers") @]* + [` \sin(2\theta) = `] [_______________]{$ans_s} [@ helpLink("numbers") @]* - [` \cos(2\theta) = `] [_______________]{$ans_c} [@ AnswerFormatHelp("numbers") @]* + [` \cos(2\theta) = `] [_______________]{$ans_c} [@ helpLink("numbers") @]* - [` \tan(2\theta) = `] [_______________]{$ans_t} [@ AnswerFormatHelp("numbers") @]* + [` \tan(2\theta) = `] [_______________]{$ans_t} [@ helpLink("numbers") @]* END_PGML } @@ -79,19 +79,19 @@ if ($n == 2){ # Main text BEGIN_PGML - Use the figure below to find the exact values of the following. - >>[@ image("9_3_24.png", - width=>500, - height=>300, - extra_html_tags=>'alt="triangle where angle theta is opposite side of length 5 and angle alpha is opposite of side length 12"') + Use the figure below to find the exact values of the following. + >>[@ image("9_3_24.png", + width=>500, + height=>300, + extra_html_tags=>'alt="triangle where angle theta is opposite side of length 5 and angle alpha is opposite of side length 12"') @]*<< - [` \sin(2\alpha) = `] [_______________]{$ans_s} [@ AnswerFormatHelp("numbers") @]* + [` \sin(2\alpha) = `] [_______________]{$ans_s} [@ helpLink("numbers") @]* - [` \cos(2\alpha) = `] [_______________]{$ans_c} [@ AnswerFormatHelp("numbers") @]* + [` \cos(2\alpha) = `] [_______________]{$ans_c} [@ helpLink("numbers") @]* - [` \tan(2\alpha) = `] [_______________]{$ans_t} [@ AnswerFormatHelp("numbers") @]* + [` \tan(2\alpha) = `] [_______________]{$ans_t} [@ helpLink("numbers") @]* END_PGML } diff --git a/Contrib/CCCS/PreCalculus/09.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_3_5.pg b/Contrib/CCCS/PreCalculus/09.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_3_5.pg index 112ad46e5a..5b2e6c6234 100644 --- a/Contrib/CCCS/PreCalculus/09.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_3_5.pg +++ b/Contrib/CCCS/PreCalculus/09.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_3_5.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -55,11 +55,11 @@ BEGIN_PGML If [``\sin(x)=\frac{1}{[$a]}``] and [`x`] is in quadrant I, find the exact values of the following without solving for [`x`]: -[` \sin(2x) = `] [____________________]{$ans_s} [@ AnswerFormatHelp("numbers") @]* +[` \sin(2x) = `] [____________________]{$ans_s} [@ helpLink("numbers") @]* -[` \cos(2x) = `] [____________________]{$ans_c} [@ AnswerFormatHelp("numbers") @]* +[` \cos(2x) = `] [____________________]{$ans_c} [@ helpLink("numbers") @]* -[` \tan(2x) = `] [____________________]{$ans_t} [@ AnswerFormatHelp("numbers") @]* +[` \tan(2x) = `] [____________________]{$ans_t} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/09.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_3_7.pg b/Contrib/CCCS/PreCalculus/09.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_3_7.pg index f01fc928f4..d402617f8f 100644 --- a/Contrib/CCCS/PreCalculus/09.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_3_7.pg +++ b/Contrib/CCCS/PreCalculus/09.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_3_7.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -55,11 +55,11 @@ BEGIN_PGML If [``\cos(x)=-\frac{1}{[$a]}``] and [`x`] is in quadrant III, find the exact values of the following without solving for [`x`]: -[` \sin(2x) = `] [_______________]{$ans_s} [@ AnswerFormatHelp("numbers") @]* +[` \sin(2x) = `] [_______________]{$ans_s} [@ helpLink("numbers") @]* -[` \cos(2x) = `] [_______________]{$ans_c} [@ AnswerFormatHelp("numbers") @]* +[` \cos(2x) = `] [_______________]{$ans_c} [@ helpLink("numbers") @]* -[` \tan(2x) = `] [_______________]{$ans_t} [@ AnswerFormatHelp("numbers") @]* +[` \tan(2x) = `] [_______________]{$ans_t} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/09.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_3_9.pg b/Contrib/CCCS/PreCalculus/09.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_3_9.pg index 652d96cee0..d749dad633 100644 --- a/Contrib/CCCS/PreCalculus/09.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_3_9.pg +++ b/Contrib/CCCS/PreCalculus/09.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_3_9.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -63,17 +63,17 @@ Find the values of the six trigonometric functions evaluated at [`\theta`] if th [``\cos(2\theta)=\frac{[$a]}{[$b]}``] and [`90^\circ \leq \theta \leq 180^\circ`] -[` \sin(\theta) = `] [_______________]{$ans_s} [@ AnswerFormatHelp("numbers") @]* +[` \sin(\theta) = `] [_______________]{$ans_s} [@ helpLink("numbers") @]* -[` \cos(\theta) = `] [_______________]{$ans_c} [@ AnswerFormatHelp("numbers") @]* +[` \cos(\theta) = `] [_______________]{$ans_c} [@ helpLink("numbers") @]* -[` \tan(\theta) = `] [_______________]{$ans_t} [@ AnswerFormatHelp("numbers") @]* +[` \tan(\theta) = `] [_______________]{$ans_t} [@ helpLink("numbers") @]* -[` \sec(\theta) = `] [_______________]{$ans_sec} [@ AnswerFormatHelp("numbers") @]* +[` \sec(\theta) = `] [_______________]{$ans_sec} [@ helpLink("numbers") @]* -[` \csc(\theta) = `] [_______________]{$ans_csc} [@ AnswerFormatHelp("numbers") @]* +[` \csc(\theta) = `] [_______________]{$ans_csc} [@ helpLink("numbers") @]* -[` \cot(\theta) = `] [_______________]{$ans_cot} [@ AnswerFormatHelp("numbers") @]* +[` \cot(\theta) = `] [_______________]{$ans_cot} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_10.pg b/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_10.pg index f4c0684a22..6dd8979eb8 100644 --- a/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_10.pg +++ b/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_10.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,12 +51,12 @@ if ($n ==1){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` 0 \leq x < 2\pi `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` 0 \leq x < 2\pi `]. If there is more than one answer, enter them as a comma separated list. [`` \cot(x)+\frac{1}{\sqrt{3}} = 0``] - [` x = `] [_______________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` x = `] [_______________]{$ans} [@ helpLink("angles") @]* END_PGML } @@ -67,12 +67,12 @@ if ($n ==2){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` 0 \leq x < 2\pi `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` 0 \leq x < 2\pi `]. If there is more than one answer, enter them as a comma separated list. [` \cot(x) + 1= 0`] - [` x = `] [_______________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` x = `] [_______________]{$ans} [@ helpLink("angles") @]* END_PGML } @@ -83,12 +83,12 @@ if ($n ==3){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` 0 \leq x < 2\pi `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` 0 \leq x < 2\pi `]. If there is more than one answer, enter them as a comma separated list. [` \cot(x) +\sqrt{3} = 0`] - [` x = `] [_______________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` x = `] [_______________]{$ans} [@ helpLink("angles") @]* END_PGML } diff --git a/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_100.pg b/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_100.pg index e0c042fcf0..4338254907 100644 --- a/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_100.pg +++ b/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_100.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -52,7 +52,7 @@ BEGIN_PGML A [`[$a]`] foot tall building has a shadow that is [`[$b]`] feet long. What is the angle of elevation of the sun? Round answer to the nearest tenth of a degree. -[_________________]{$ans} [@ AnswerFormatHelp("angles") @]* +[_________________]{$ans} [@ helpLink("angles") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_103.pg b/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_103.pg index 459d00dbf3..a06cf4abaf 100644 --- a/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_103.pg +++ b/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_103.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -54,7 +54,7 @@ BEGIN_PGML A spotlight on the ground is [`[$a]`] feet from a [`[$b]`] foot tall woman casts a [`[$c]`] foot tall shadow on a wall [`[$d]`] feet from the woman. At what angle of elevation is the light? Round answers to the nearest tenth of a degree. -[_________________]{$ans} [@ AnswerFormatHelp("angles") @]* +[_________________]{$ans} [@ helpLink("angles") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_11.pg b/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_11.pg index cfbc90f3df..a3380950be 100644 --- a/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_11.pg +++ b/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_11.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -53,12 +53,12 @@ if ($n ==1){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` 0 \leq x < 2\pi `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` 0 \leq x < 2\pi `]. If there is more than one answer, enter them as a comma separated list. [` [$b]\sin^2(x)-[$a]=0`] - [` x = `] [___________________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` x = `] [___________________]{$ans} [@ helpLink("angles") @]* END_PGML } @@ -71,12 +71,12 @@ if ($n ==2){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` 0 \leq x < 2\pi `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` 0 \leq x < 2\pi `]. If there is more than one answer, enter them as a comma separated list. [` [$b]\sin^2(x)-[$a]=0`] - [` x = `] [___________________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` x = `] [___________________]{$ans} [@ helpLink("angles") @]* END_PGML } @@ -87,12 +87,12 @@ if ($n ==3){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` 0 \leq x < 2\pi `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` 0 \leq x < 2\pi `]. If there is more than one answer, enter them as a comma separated list. [` 4\sin^2(x)-3=0`] - [` x = `] [___________________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` x = `] [___________________]{$ans} [@ helpLink("angles") @]* END_PGML } diff --git a/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_12.pg b/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_12.pg index 2daca06700..4e5e22e3af 100644 --- a/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_12.pg +++ b/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_12.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,12 +51,12 @@ if ($n ==1){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` 0 \leq x < 2\pi `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` 0 \leq x < 2\pi `]. If there is more than one answer, enter them as a comma separated list. [` \csc^2(x)-4=0`] - [` x = `] [_____________________________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` x = `] [_____________________________]{$ans} [@ helpLink("angles") @]* END_PGML } @@ -69,12 +69,12 @@ if ($n ==2){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` 0 \leq x < 2\pi `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` 0 \leq x < 2\pi `]. If there is more than one answer, enter them as a comma separated list. [` \csc^2(x)-2=0`] - [` x = `] [_____________________________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` x = `] [_____________________________]{$ans} [@ helpLink("angles") @]* END_PGML } @@ -85,12 +85,12 @@ if ($n ==3){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` 0 \leq x < 2\pi `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` 0 \leq x < 2\pi `]. If there is more than one answer, enter them as a comma separated list. [` 3\csc^2(x)-4=0`] - [` x = `] [_____________________________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` x = `] [_____________________________]{$ans} [@ helpLink("angles") @]* END_PGML } diff --git a/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_17.pg b/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_17.pg index ebc5cfb5fa..0cd1d488cb 100644 --- a/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_17.pg +++ b/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_17.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -45,8 +45,8 @@ $showPartialCorrectAnswers = 1; # random integer to choose which problem student gets $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -59,12 +59,12 @@ if ($n ==1){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. [` 2 \sin(3\theta) = 1`] - [` \theta = `] [______________________________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` \theta = `] [______________________________]{$ans} [@ helpLink("angles") @]* [$video]* END_PGML @@ -82,12 +82,12 @@ if ($n ==2){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. [` 2 \sin(3\theta) = \sqrt{2}`] - [` \theta = `] [______________________________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` \theta = `] [______________________________]{$ans} [@ helpLink("angles") @]* [$video]* END_PGML @@ -105,12 +105,12 @@ if ($n ==3){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. [` 2 \sin(3\theta) = \sqrt{3}`] - [` \theta = `] [______________________________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` \theta = `] [______________________________]{$ans} [@ helpLink("angles") @]* [$video]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_18.pg b/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_18.pg index af2aeb35c1..4807d2db40 100644 --- a/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_18.pg +++ b/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_18.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,12 +51,12 @@ if ($n ==1){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. [` 2 \sin(2\theta) = -1`] - [` \theta = `] [______________________________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` \theta = `] [______________________________]{$ans} [@ helpLink("angles") @]* END_PGML } @@ -67,12 +67,12 @@ if ($n ==2){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. [` 2 \sin(2\theta) = -\sqrt{2}`] - [` \theta = `] [______________________________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` \theta = `] [______________________________]{$ans} [@ helpLink("angles") @]* END_PGML } @@ -83,12 +83,12 @@ if ($n ==3){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. [` 2 \sin(2\theta) = -\sqrt{3}`] - [` \theta = `] [______________________________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` \theta = `] [______________________________]{$ans} [@ helpLink("angles") @]* END_PGML } diff --git a/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_19.pg b/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_19.pg index e085a27281..0a74c0d105 100644 --- a/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_19.pg +++ b/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_19.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,12 +51,12 @@ if ($n ==1){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. [` 2 \cos(3\theta) = -1`] - [` \theta = `] [______________________________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` \theta = `] [______________________________]{$ans} [@ helpLink("angles") @]* END_PGML } @@ -67,12 +67,12 @@ if ($n ==2){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. [` 2 \cos(3\theta) = -\sqrt{2}`] - [` \theta = `] [______________________________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` \theta = `] [______________________________]{$ans} [@ helpLink("angles") @]* END_PGML } @@ -83,12 +83,12 @@ if ($n ==3){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. [` 2 \cos(3\theta) = -\sqrt{3}`] - [` \theta = `] [______________________________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` \theta = `] [______________________________]{$ans} [@ helpLink("angles") @]* END_PGML } diff --git a/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_20.pg b/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_20.pg index 0d50038349..a29c253bf1 100644 --- a/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_20.pg +++ b/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_20.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,12 +51,12 @@ if ($n ==1){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. [`` \cos(2\theta) = \frac{1}{2}``] - [` \theta = `] [______________________________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` \theta = `] [______________________________]{$ans} [@ helpLink("angles") @]* END_PGML } @@ -67,12 +67,12 @@ if ($n ==2){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. [`` \cos(2\theta) = \frac{\sqrt{2}}{2}``] - [` \theta = `] [______________________________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` \theta = `] [______________________________]{$ans} [@ helpLink("angles") @]* END_PGML } @@ -83,12 +83,12 @@ if ($n ==3){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. [`` \cos(2\theta) = \frac{\sqrt{3}}{2}``] - [` \theta = `] [______________________________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` \theta = `] [______________________________]{$ans} [@ helpLink("angles") @]* END_PGML } diff --git a/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_25.pg b/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_25.pg index 43a000c6ec..ef0a788c1e 100644 --- a/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_25.pg +++ b/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_25.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -44,8 +44,8 @@ Parser::Number::NoDecimals; $showPartialCorrectAnswers = 1; $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -59,12 +59,12 @@ if ($n ==1){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` [0, 2\pi) `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` [0, 2\pi) `]. If there is more than one answer, enter them as a comma separated list. [` 2\cos^2(t)+\cos(t)=1 `] - [` t = `] [_______________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` t = `] [_______________]{$ans} [@ helpLink("angles") @]* [$video]* END_PGML @@ -82,12 +82,12 @@ if ($n ==2){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` [0, 2\pi) `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` [0, 2\pi) `]. If there is more than one answer, enter them as a comma separated list. [` 2\cos^2(t)-\cos(t) = 1 `] - [` t = `] [_______________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` t = `] [_______________]{$ans} [@ helpLink("angles") @]* [$video]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_26.pg b/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_26.pg index 42e85185e3..69c085d620 100644 --- a/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_26.pg +++ b/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_26.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,12 +51,12 @@ if ($n ==1){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` [0, 2\pi) `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` [0, 2\pi) `]. If there is more than one answer, enter them as a comma separated list. [` 2\tan^2(t)=3\sec(t) `] - [` t = `] [_______________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` t = `] [_______________]{$ans} [@ helpLink("angles") @]* END_PGML } @@ -67,12 +67,12 @@ if ($n ==2){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` [0, 2\pi) `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` [0, 2\pi) `]. If there is more than one answer, enter them as a comma separated list. [` 2\tan^2(t)=-3\sec(t) `] - [` t = `] [_______________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` t = `] [_______________]{$ans} [@ helpLink("angles") @]* END_PGML } diff --git a/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_28.pg b/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_28.pg index e8c082ffd3..e1d6a1471f 100644 --- a/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_28.pg +++ b/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_28.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,12 +51,12 @@ if ($n ==1){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` [0, 360^\circ) `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` [0, 360^\circ) `]. If there is more than one answer, enter them as a comma separated list. [`` \cos^2(\theta)=\frac{3}{4} ``] - [` \theta = `] [_________________________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` \theta = `] [_________________________]{$ans} [@ helpLink("angles") @]* END_PGML } @@ -67,12 +67,12 @@ if ($n ==2){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` [0, 360^\circ) `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` [0, 360^\circ) `]. If there is more than one answer, enter them as a comma separated list. [`` \cos^2(\theta)=\frac{1}{2} ``] - [` \theta = `] [_________________________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` \theta = `] [_________________________]{$ans} [@ helpLink("angles") @]* END_PGML } @@ -83,12 +83,12 @@ if ($n ==3){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` [0, 360^\circ) `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` [0, 360^\circ) `]. If there is more than one answer, enter them as a comma separated list. [`` \cos^2(\theta)=\frac{1}{4} ``] - [` \theta = `] [_________________________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` \theta = `] [_________________________]{$ans} [@ helpLink("angles") @]* END_PGML } diff --git a/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_30.pg b/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_30.pg index e8a08b6dce..c87eb557c4 100644 --- a/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_30.pg +++ b/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_30.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,12 +51,12 @@ if ($n ==1){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` [0, 360^\circ) `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` [0, 360^\circ) `]. If there is more than one answer, enter them as a comma separated list. [` \tan^2(x)=-1+2\tan(-x) `] - [` x = `] [_______________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` x = `] [_______________]{$ans} [@ helpLink("angles") @]* END_PGML } @@ -67,12 +67,12 @@ if ($n ==2){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` [0, 360^\circ) `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` [0, 360^\circ) `]. If there is more than one answer, enter them as a comma separated list. [` \tan^2(x)=-1-2\tan(-x) `] - [` x = `] [_______________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` x = `] [_______________]{$ans} [@ helpLink("angles") @]* END_PGML } diff --git a/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_31.pg b/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_31.pg index f9f1dfef65..36def6d7b3 100644 --- a/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_31.pg +++ b/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_31.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,12 +51,12 @@ if ($n ==1){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` [0, 2\pi) `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` [0, 2\pi) `]. If there is more than one answer, enter them as a comma separated list. [` 4\sin^2(x)+6\sin(x)+2=0 `] - [` x = `] [_______________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` x = `] [_______________]{$ans} [@ helpLink("angles") @]* END_PGML } @@ -67,12 +67,12 @@ if ($n ==2){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` [0, 2\pi) `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` [0, 2\pi) `]. If there is more than one answer, enter them as a comma separated list. [` 4\sin^2(x)+2\sin(x)-2=0 `] - [` x = `] [_______________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` x = `] [_______________]{$ans} [@ helpLink("angles") @]* END_PGML } diff --git a/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_36.pg b/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_36.pg index d0d4d27290..35cb6b1d68 100644 --- a/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_36.pg +++ b/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_36.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -58,7 +58,7 @@ Find all exact solutions on the interval [` [0, 2\pi) `]. If there is more than [` [$f]=0 `] -[` t = `] [____________________________________________]{$ans} [@ AnswerFormatHelp("angles") @]* +[` t = `] [____________________________________________]{$ans} [@ helpLink("angles") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_37.pg b/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_37.pg index a05b783290..f0e621c78c 100644 --- a/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_37.pg +++ b/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_37.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -61,7 +61,7 @@ Find all exact solutions on the interval [` [0, 2\pi) `]. If there is more than [` [$f]=[$g] `] -[` t = `] [____________________________________________]{$ans} [@ AnswerFormatHelp("angles") @]* +[` t = `] [____________________________________________]{$ans} [@ helpLink("angles") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_38.pg b/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_38.pg index 37b3e51658..dd45b0f7cc 100644 --- a/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_38.pg +++ b/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_38.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -53,12 +53,12 @@ $ans = Compute("pi/2, 3pi/2, pi/6, 5pi/6"); # Main text BEGIN_PGML -Find all exact solutions on the interval [` [0, 2\pi) `]. If there is more than one answer, enter them as a comma separated list. +Find all exact solutions on the interval [` [0, 2\pi) `]. If there is more than one answer, enter them as a comma separated list. [` [$f]=[$g] `] -[` t = `] [_______________________]{$ans} [@ AnswerFormatHelp("angles") @]* +[` t = `] [_______________________]{$ans} [@ helpLink("angles") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_39.pg b/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_39.pg index 5ecc1871d3..c51193c5e4 100644 --- a/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_39.pg +++ b/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_39.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -53,12 +53,12 @@ $ans = Compute("3pi/2, pi/6, 5pi/6"); # Main text BEGIN_PGML -Find all exact solutions on the interval [` [0, 2\pi) `]. If there is more than one answer, enter them as a comma separated list. +Find all exact solutions on the interval [` [0, 2\pi) `]. If there is more than one answer, enter them as a comma separated list. [` [$f]=[$g] `] -[` t = `] [________________________]{$ans} [@ AnswerFormatHelp("angles") @]* +[` t = `] [________________________]{$ans} [@ helpLink("angles") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_4.pg b/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_4.pg index a935aa2012..3ccd66bd7a 100644 --- a/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_4.pg +++ b/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_4.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -46,8 +46,8 @@ $showPartialCorrectAnswers = 1; $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -60,12 +60,12 @@ if ($n ==1){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. [` 2 \sin(\theta) = -1`] - [` \theta = `] [_______________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` \theta = `] [_______________]{$ans} [@ helpLink("angles") @]* [$video]* END_PGML @@ -83,12 +83,12 @@ if ($n ==2){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. [` 2 \sin(\theta) = - \sqrt{2}`] - [` \theta = `] [_______________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` \theta = `] [_______________]{$ans} [@ helpLink("angles") @]* [$video]* END_PGML @@ -106,12 +106,12 @@ if ($n ==3){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. [` 2 \sin(\theta) = - \sqrt{3}`] - [` \theta = `] [_______________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` \theta = `] [_______________]{$ans} [@ helpLink("angles") @]* [$video]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_41.pg b/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_41.pg index b4fd74d4e4..066684e70e 100644 --- a/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_41.pg +++ b/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_41.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -56,7 +56,7 @@ if ($n ==1){ [` \tan^2(x)-\sqrt{3}\tan(x)=0 `] - [` x = `] [_______________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` x = `] [_______________]{$ans} [@ helpLink("angles") @]* END_PGML } @@ -72,7 +72,7 @@ if ($n ==2){ [` \tan^2(x)-\tan(x)=0 `] - [` x = `] [_______________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` x = `] [_______________]{$ans} [@ helpLink("angles") @]* END_PGML } diff --git a/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_42.pg b/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_42.pg index 89cf8c7e29..aba92201f9 100644 --- a/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_42.pg +++ b/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_42.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -59,7 +59,7 @@ if ($n ==1){ [` [$f]=0 `] - [` x = `] [_______________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` x = `] [_______________]{$ans} [@ helpLink("angles") @]* END_PGML } @@ -77,7 +77,7 @@ if ($n ==2){ [` [$f]=0 `] - [` x = `] [_______________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` x = `] [_______________]{$ans} [@ helpLink("angles") @]* END_PGML } diff --git a/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_45.pg b/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_45.pg index 7c60779c89..869210d483 100644 --- a/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_45.pg +++ b/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_45.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -84,7 +84,7 @@ Find all exact solutions on the interval [` [0, 2\pi) `]. If there is more than [` [$f]=0 `] -[` x = `] [___________________________________________]{$ans} [@ AnswerFormatHelp("angles") @]* +[` x = `] [___________________________________________]{$ans} [@ helpLink("angles") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_46.pg b/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_46.pg index 5cdca3226c..622f47db43 100644 --- a/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_46.pg +++ b/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_46.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -91,7 +91,7 @@ Find all exact solutions on the interval [` [0, 2\pi) `]. If there is more than [` [$f]=0 `] -[` x = `] [__________________________________________________________________________]{$ans} [@ AnswerFormatHelp("angles") @]* +[` x = `] [__________________________________________________________________________]{$ans} [@ helpLink("angles") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_5.pg b/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_5.pg index ce2d4aac50..0d475eba76 100644 --- a/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_5.pg +++ b/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_5.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,12 +51,12 @@ if ($n ==1){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. [` 2 \sin(\theta) = 1`] - [` \theta = `] [_______________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` \theta = `] [_______________]{$ans} [@ helpLink("angles") @]* END_PGML } @@ -67,12 +67,12 @@ if ($n ==2){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. [` 2 \sin(\theta) = \sqrt{2}`] - [` \theta = `] [_______________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` \theta = `] [_______________]{$ans} [@ helpLink("angles") @]* END_PGML } @@ -83,12 +83,12 @@ if ($n ==3){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. [` 2 \sin(\theta) = \sqrt{3}`] - [` \theta = `] [_______________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` \theta = `] [_______________]{$ans} [@ helpLink("angles") @]* END_PGML } diff --git a/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_6.pg b/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_6.pg index af495348cd..b83a9fe2cf 100644 --- a/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_6.pg +++ b/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_6.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,12 +51,12 @@ if ($n ==1){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. [` 2 \cos(\theta) = \sqrt{3}`] - [` \theta = `] [_______________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` \theta = `] [_______________]{$ans} [@ helpLink("angles") @]* END_PGML } @@ -67,12 +67,12 @@ if ($n ==2){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. [` 2 \cos(\theta) = \sqrt{2}`] - [` \theta = `] [_______________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` \theta = `] [_______________]{$ans} [@ helpLink("angles") @]* END_PGML } @@ -83,12 +83,12 @@ if ($n ==3){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. [` 2 \cos(\theta) = 1`] - [` \theta = `] [_______________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` \theta = `] [_______________]{$ans} [@ helpLink("angles") @]* END_PGML } diff --git a/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_7.pg b/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_7.pg index 585edabfd0..099238f6fb 100644 --- a/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_7.pg +++ b/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_7.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,12 +51,12 @@ if ($n ==1){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` 0 \leq \theta < 360^\circ `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` 0 \leq \theta < 360^\circ `]. If there is more than one answer, enter them as a comma separated list. [` 2 \cos(\theta) = -1`] - [` \theta = `] [_______________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` \theta = `] [_______________]{$ans} [@ helpLink("angles") @]* END_PGML } @@ -67,12 +67,12 @@ if ($n ==2){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` 0 \leq \theta < 360^\circ `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` 0 \leq \theta < 360^\circ `]. If there is more than one answer, enter them as a comma separated list. [` 2 \cos(\theta) = -\sqrt{2}`] - [` \theta = `] [_______________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` \theta = `] [_______________]{$ans} [@ helpLink("angles") @]* END_PGML } @@ -83,12 +83,12 @@ if ($n ==3){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` 0 \leq \theta < 360^\circ `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` 0 \leq \theta < 360^\circ `]. If there is more than one answer, enter them as a comma separated list. [` 2 \cos(\theta) = -\sqrt{3}`] - [` \theta = `] [_______________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` \theta = `] [_______________]{$ans} [@ helpLink("angles") @]* END_PGML } diff --git a/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_8.pg b/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_8.pg index 49c6757c2c..20108e33eb 100644 --- a/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_8.pg +++ b/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_8.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,12 +51,12 @@ if ($n ==1){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` 0 \leq \theta < 360^\circ `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` 0 \leq \theta < 360^\circ `]. If there is more than one answer, enter them as a comma separated list. [` \tan(\theta) = \sqrt{3}`] - [` \theta = `] [_______________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` \theta = `] [_______________]{$ans} [@ helpLink("angles") @]* END_PGML } @@ -67,12 +67,12 @@ if ($n ==2){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` 0 \leq \theta < 360^\circ `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` 0 \leq \theta < 360^\circ `]. If there is more than one answer, enter them as a comma separated list. [` \tan(\theta) = 1`] - [` \theta = `] [_______________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` \theta = `] [_______________]{$ans} [@ helpLink("angles") @]* END_PGML } @@ -83,12 +83,12 @@ if ($n ==3){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` 0 \leq \theta < 360^\circ `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` 0 \leq \theta < 360^\circ `]. If there is more than one answer, enter them as a comma separated list. [` \sqrt{3} \tan(\theta) = 1`] - [` \theta = `] [_______________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` \theta = `] [_______________]{$ans} [@ helpLink("angles") @]* END_PGML } diff --git a/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_9.pg b/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_9.pg index 94bbe9afb2..65f375fc4a 100644 --- a/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_9.pg +++ b/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_9.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,12 +51,12 @@ if ($n ==1){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` 0 \leq x < 360^\circ `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` 0 \leq x < 360^\circ `]. If there is more than one answer, enter them as a comma separated list. [` \tan(x) = -\sqrt{3}`] - [` x = `] [_______________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` x = `] [_______________]{$ans} [@ helpLink("angles") @]* END_PGML } @@ -67,12 +67,12 @@ if ($n ==2){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` 0 \leq x < 360^\circ `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` 0 \leq x < 360^\circ `]. If there is more than one answer, enter them as a comma separated list. [` \tan(x) = -1`] - [` x = `] [_______________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` x = `] [_______________]{$ans} [@ helpLink("angles") @]* END_PGML } @@ -83,12 +83,12 @@ if ($n ==3){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` 0 \leq x < 360^\circ `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` 0 \leq x < 360^\circ `]. If there is more than one answer, enter them as a comma separated list. [` \sqrt{3} \tan(x) = -1`] - [` x = `] [_______________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` x = `] [_______________]{$ans} [@ helpLink("angles") @]* END_PGML } diff --git a/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_94.pg b/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_94.pg index c736e5b2fb..2b833df8f7 100644 --- a/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_94.pg +++ b/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_94.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -50,7 +50,7 @@ BEGIN_PGML A loading ramp is placed next to a truck. If the ramp rises [`[$a]`] feet over [`[$b]`] feet, what angle, in degrees, does the ramp make with the ground? Round answer to the nearest tenth of a degree. -[_________________]{$ans} [@ AnswerFormatHelp("angles") @]* +[_________________]{$ans} [@ helpLink("angles") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_96.pg b/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_96.pg index c91ad9f6f9..cf1163c8c3 100644 --- a/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_96.pg +++ b/Contrib/CCCS/PreCalculus/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_96.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -50,7 +50,7 @@ BEGIN_PGML A woman is watching a launched rocket currently [`[$a]`] miles in altitude. If she is standing [`[$b]`] miles from the launch pad, at what angle is she looking up from the horizontal? Round answer to the nearest tenth of a degree. -[_________________]{$ans} [@ AnswerFormatHelp("angles") @]* +[_________________]{$ans} [@ helpLink("angles") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_11.pg b/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_11.pg index cee7e9cead..231a6998b4 100644 --- a/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_11.pg +++ b/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_11.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -54,11 +54,11 @@ Context()->flags->set( # Main text BEGIN_PGML -Use the Law of Sines to solve for the missing side for the oblique triangle. Round each answer to the nearest hundredth. Assume that angle [` A `] is opposite side [`a`], angle [` B `] is opposite side [`b`], and angle [` C `] is opposite side [`c`]. +Use the Law of Sines to solve for the missing side for the oblique triangle. Round each answer to the nearest hundredth. Assume that angle [` A `] is opposite side [`a`], angle [` B `] is opposite side [`b`], and angle [` C `] is opposite side [`c`]. -Find side [` b`] where [`A = [$A]^\circ`], [`B=[$B]^\circ`], and [`c=[$c]`]. +Find side [` b`] where [`A = [$A]^\circ`], [`B=[$B]^\circ`], and [`c=[$c]`]. -[` b = `] [_______________]{$ans_b} [@ AnswerFormatHelp("numbers") @]* +[` b = `] [_______________]{$ans_b} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_12.pg b/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_12.pg index 8c1fb3b3ee..39a8b57b18 100644 --- a/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_12.pg +++ b/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_12.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -54,11 +54,11 @@ Context()->flags->set( # Main text BEGIN_PGML -Use the Law of Sines to solve for the missing side for the oblique triangle. Round each answer to the nearest hundredth. Assume that angle [` A `] is opposite side [`a`], angle [` B `] is opposite side [`b`], and angle [` C `] is opposite side [`c`]. +Use the Law of Sines to solve for the missing side for the oblique triangle. Round each answer to the nearest hundredth. Assume that angle [` A `] is opposite side [`a`], angle [` B `] is opposite side [`b`], and angle [` C `] is opposite side [`c`]. -Find side [` a`] where [`A = [$A]^\circ`], [`C=[$C]^\circ`], and [`b=[$b]`]. +Find side [` a`] where [`A = [$A]^\circ`], [`C=[$C]^\circ`], and [`b=[$b]`]. -[` a = `] [_______________]{$ans_a} [@ AnswerFormatHelp("numbers") @]* +[` a = `] [_______________]{$ans_a} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_14.pg b/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_14.pg index 19c8bfbc4a..0ad6b197d9 100644 --- a/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_14.pg +++ b/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_14.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -60,23 +60,23 @@ Context()->flags->set( BEGIN_PGML Assume that angle [` \alpha `] is opposite side [`a`], angle [` \beta `] is opposite side [`b`], and angle [` \gamma `] is opposite side [`c`]. Determine whether there is no triangle, one triangle, or two triangles. Then solve the triangle(s) if possible, round answers to nearest tenth. Put "None" in any unecessary answer blanks. Trigonometric functions used in answer blanks in this question will be evaluated in degrees and angle answers should be entered in degrees.. -[`a = [$a]`], [`b=[$b]`], and [`\alpha=[$Alpha]^\circ`]. +[`a = [$a]`], [`b=[$b]`], and [`\alpha=[$Alpha]^\circ`]. Triangle one: -[` \gamma = `] [_______________]{$ans_Gamma1} [@ AnswerFormatHelp("angles") @]* - -[` \beta = `] [_______________]{$ans_Beta1} [@ AnswerFormatHelp("angles") @]* +[` \gamma = `] [_______________]{$ans_Gamma1} [@ helpLink("angles") @]* + +[` \beta = `] [_______________]{$ans_Beta1} [@ helpLink("angles") @]* -[` c = `] [_______________]{$ans_c1} [@ AnswerFormatHelp("numbers") @]* +[` c = `] [_______________]{$ans_c1} [@ helpLink("numbers") @]* Triangle two: -[` \gamma = `] [_______________]{$ans_Gamma2} [@ AnswerFormatHelp("angles") @]* - -[` \beta = `] [_______________]{$ans_Beta2} [@ AnswerFormatHelp("angles") @]* +[` \gamma = `] [_______________]{$ans_Gamma2} [@ helpLink("angles") @]* + +[` \beta = `] [_______________]{$ans_Beta2} [@ helpLink("angles") @]* -[` c = `] [_______________]{$ans_c2} [@ AnswerFormatHelp("numbers") @]* +[` c = `] [_______________]{$ans_c2} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_17.pg b/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_17.pg index 7a64a7a1c5..f389c2e453 100644 --- a/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_17.pg +++ b/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_17.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -68,25 +68,25 @@ Context()->flags->set( # Main text BEGIN_PGML -Assume that angle [` \alpha `] is opposite side [`a`], angle [` \beta `] is opposite side [`b`], and angle [` \gamma `] is opposite side [`c`]. Determine whether there is no triangle, one triangle, or two triangles. Then solve for all possible triangle(s), rounding answers to nearest tenth. Put "None" in any unnecessary answer blanks. +Assume that angle [` \alpha `] is opposite side [`a`], angle [` \beta `] is opposite side [`b`], and angle [` \gamma `] is opposite side [`c`]. Determine whether there is no triangle, one triangle, or two triangles. Then solve for all possible triangle(s), rounding answers to nearest tenth. Put "None" in any unnecessary answer blanks. -[`a = [$a]`], [`c=[$c]`], and [`\alpha=[$Alpha]^\circ`]. +[`a = [$a]`], [`c=[$c]`], and [`\alpha=[$Alpha]^\circ`]. Triangle one: -[` \gamma = `] [_______________]{$ans_Gamma1} [@ AnswerFormatHelp("angles") @]* - -[` \beta = `] [_______________]{$ans_Beta1} [@ AnswerFormatHelp("angles") @]* +[` \gamma = `] [_______________]{$ans_Gamma1} [@ helpLink("angles") @]* + +[` \beta = `] [_______________]{$ans_Beta1} [@ helpLink("angles") @]* -[` b = `] [_______________]{$ans_b1} [@ AnswerFormatHelp("numbers") @]* +[` b = `] [_______________]{$ans_b1} [@ helpLink("numbers") @]* Triangle two: -[` \gamma = `] [_______________]{$ans_Gamma2} [@ AnswerFormatHelp("angles") @]* - -[` \beta = `] [_______________]{$ans_Beta2} [@ AnswerFormatHelp("angles") @]* +[` \gamma = `] [_______________]{$ans_Gamma2} [@ helpLink("angles") @]* + +[` \beta = `] [_______________]{$ans_Beta2} [@ helpLink("angles") @]* -[` b = `] [_______________]{$ans_b2} [@ AnswerFormatHelp("numbers") @]* +[` b = `] [_______________]{$ans_b2} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_27.pg b/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_27.pg index 307b8e7b2d..302e0b1c4d 100644 --- a/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_27.pg +++ b/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_27.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -52,12 +52,12 @@ Context()->flags->set( # Main text BEGIN_PGML -Find the area of the triangle with the given measurements. Round each answer to the nearest tenth. +Find the area of the triangle with the given measurements. Round each answer to the nearest tenth. [` a = [$a] `], [` c = [$c] `], [` \beta = [$Beta]^\circ `] -Area [` = `] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +Area [` = `] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_28.pg b/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_28.pg index 96fc6dde20..a9324d9139 100644 --- a/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_28.pg +++ b/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_28.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -52,12 +52,12 @@ Context()->flags->set( # Main text BEGIN_PGML -Find the area of the triangle with the given measurements. Round each answer to the nearest tenth. +Find the area of the triangle with the given measurements. Round each answer to the nearest tenth. [` b = [$b] `], [` c = [$c] `], [` \alpha = [$Alpha]^\circ `] -Area [` = `] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +Area [` = `] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_29.pg b/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_29.pg index 3a64d613ab..43afa4e139 100644 --- a/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_29.pg +++ b/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_29.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -52,12 +52,12 @@ Context()->flags->set( # Main text BEGIN_PGML -Find the area of the triangle with the given measurements. Round each answer to the nearest tenth. +Find the area of the triangle with the given measurements. Round each answer to the nearest tenth. [` a = [$a] `], [` b = [$b] `], [` \gamma = [$Gamma]^\circ `] -Area [` = `] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +Area [` = `] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_31.pg b/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_31.pg index 3977bfb2b0..7a5e4b1736 100644 --- a/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_31.pg +++ b/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_31.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -51,7 +51,7 @@ Context()->flags->set( BEGIN_PGML -Find the length of side [` x `], where [` c = [$c]`], [`B = [$B]^\circ`], and [`C= [$C]^\circ`]. Round to the nearest tenth. +Find the length of side [` x `], where [` c = [$c]`], [`B = [$B]^\circ`], and [`C= [$C]^\circ`]. Round to the nearest tenth. END_PGML @@ -60,7 +60,7 @@ $refreshCachedImages=1; BEGIN_TEXT $BR $BCENTER -\{ image( "10_1_31.png", width=>300, height=>300, +\{ image( "10_1_31.png", width=>300, height=>300, tex_size=>700, extra_html_tags=>'alt="triangle where side x is across from angle B and side c is across from angle C"' ) \} $ECENTER $BR @@ -69,7 +69,7 @@ END_TEXT BEGIN_PGML - [` x = `] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* + [` x = `] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_32.pg b/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_32.pg index 3925403185..1073002448 100644 --- a/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_32.pg +++ b/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_32.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -53,7 +53,7 @@ Context()->flags->set( BEGIN_PGML -Find the length of side [` x `], where [` A = [$A]^\circ`], [`B = [$B]^\circ`], and [`c= [$c]`]. Round to the nearest tenth. +Find the length of side [` x `], where [` A = [$A]^\circ`], [`B = [$B]^\circ`], and [`c= [$c]`]. Round to the nearest tenth. END_PGML @@ -62,7 +62,7 @@ $refreshCachedImages=1; BEGIN_TEXT $BR $BCENTER -\{ image( "10_1_32.png", width=>300, height=>300, +\{ image( "10_1_32.png", width=>300, height=>300, tex_size=>700, extra_html_tags=>'alt="triangle where side x is across from angle A"' ) \} $ECENTER $BR @@ -71,7 +71,7 @@ END_TEXT BEGIN_PGML - [` x = `] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* + [` x = `] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_37.pg b/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_37.pg index f3b75d7e22..1a8300b156 100644 --- a/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_37.pg +++ b/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_37.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -52,7 +52,7 @@ Context()->flags->set( BEGIN_PGML -Find the measure of angle [` X `], where [` A = [$A]^\circ`], [`a = [$a]`], and [`b= [$b]`]. Round to the nearest tenth. +Find the measure of angle [` X `], where [` A = [$A]^\circ`], [`a = [$a]`], and [`b= [$b]`]. Round to the nearest tenth. END_PGML @@ -60,7 +60,7 @@ $refreshCachedImages=1; BEGIN_TEXT $BR $BCENTER -\{ image( "10_1_37.png", width=>400, height=>300, +\{ image( "10_1_37.png", width=>400, height=>300, tex_size=>700, extra_html_tags=>'alt="Triangle where angle X is across from side b."' ) \} $ECENTER $BR @@ -69,7 +69,7 @@ END_TEXT BEGIN_PGML - [` X = `] [_______________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` X = `] [_______________]{$ans} [@ helpLink("angles") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_38.pg b/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_38.pg index 608507e8eb..e580108b4d 100644 --- a/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_38.pg +++ b/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_38.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -52,7 +52,7 @@ Context()->flags->set( BEGIN_PGML -Find the measure of angle [` X `], where [` A = [$A]^\circ`], [`a = [$a]`], and [`b= [$b]`]. Round to the nearest tenth. +Find the measure of angle [` X `], where [` A = [$A]^\circ`], [`a = [$a]`], and [`b= [$b]`]. Round to the nearest tenth. END_PGML @@ -61,7 +61,7 @@ $refreshCachedImages=1; BEGIN_TEXT $BR $BCENTER -\{ image( "10_1_38.png", width=>400, height=>300, +\{ image( "10_1_38.png", width=>400, height=>300, tex_size=>700, extra_html_tags=>'alt="Triangle where angle X is across from side b."' ) \} $ECENTER $BR @@ -70,7 +70,7 @@ END_TEXT BEGIN_PGML - [` X = `] [_______________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` X = `] [_______________]{$ans} [@ helpLink("angles") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_44.pg b/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_44.pg index e2be122ebe..d64c8b31c0 100644 --- a/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_44.pg +++ b/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_44.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -52,7 +52,7 @@ Context()->flags->set( BEGIN_PGML -Find the area of the triangle, where [` A = [$A]^\circ`], [`b = [$b]`], and [`c= [$c]`]. Round to the nearest tenth. +Find the area of the triangle, where [` A = [$A]^\circ`], [`b = [$b]`], and [`c= [$c]`]. Round to the nearest tenth. END_PGML @@ -60,7 +60,7 @@ $refreshCachedImages=1; BEGIN_TEXT $BR $BCENTER -\{ image( "10_1_44.png", width=>400, height=>300, +\{ image( "10_1_44.png", width=>400, height=>300, tex_size=>700, extra_html_tags=>'alt="Triangle with angle A, and sides b and c."' ) \} $ECENTER $BR @@ -69,7 +69,7 @@ END_TEXT BEGIN_PGML - Area [` = `] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* + Area [` = `] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_47.pg b/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_47.pg index 726c8e7070..835aa9599f 100644 --- a/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_47.pg +++ b/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_47.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -53,7 +53,7 @@ Context()->flags->set( BEGIN_PGML -Find the area of the triangle, where [` A = [$A]^\circ`], [`b = [$b]`], and [`c= [$c]`]. Round to the nearest tenth. +Find the area of the triangle, where [` A = [$A]^\circ`], [`b = [$b]`], and [`c= [$c]`]. Round to the nearest tenth. END_PGML @@ -62,7 +62,7 @@ $refreshCachedImages=1; BEGIN_TEXT $BR $BCENTER -\{ image( "10_1_47.png", width=>400, height=>300, +\{ image( "10_1_47.png", width=>400, height=>300, tex_size=>700, extra_html_tags=>'alt="Triangle with angles A and B and sides b and c."' ) \} $ECENTER $BR @@ -71,7 +71,7 @@ END_TEXT BEGIN_PGML - Area [` = `] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* + Area [` = `] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_54.pg b/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_54.pg index 535141a916..61d907e7eb 100644 --- a/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_54.pg +++ b/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_54.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -74,7 +74,7 @@ Context()->flags->set( BEGIN_PGML -Solve both triangles below, where [` A = [$A]^\circ`], [`c = [$c]`], [`C= [$C]^\circ`], [`N= [$N]^\circ`], and [`m= [$m]`]. Round to the nearest tenth. +Solve both triangles below, where [` A = [$A]^\circ`], [`c = [$c]`], [`C= [$C]^\circ`], [`N= [$N]^\circ`], and [`m= [$m]`]. Round to the nearest tenth. END_PGML @@ -83,7 +83,7 @@ $refreshCachedImages=1; BEGIN_TEXT $BR $BCENTER -\{ image( "10_1_54.png", width=>400, height=>200, +\{ image( "10_1_54.png", width=>400, height=>200, tex_size=>700, extra_html_tags=>'alt="Two triangles that share one corner. Triangle on the left has angle C at the shared corner and then angles A and B. The triangle on the right has angle M at the shared corner and then angles P and N."' ) \} $ECENTER $BR @@ -92,19 +92,19 @@ END_TEXT BEGIN_PGML -[` B = `] [_______________]{$ans_B} [@ AnswerFormatHelp("angles") @]* +[` B = `] [_______________]{$ans_B} [@ helpLink("angles") @]* -[` b = `] [_______________]{$ans_b} [@ AnswerFormatHelp("numbers") @]* +[` b = `] [_______________]{$ans_b} [@ helpLink("numbers") @]* -[` a = `] [_______________]{$ans_a} [@ AnswerFormatHelp("numbers") @]* +[` a = `] [_______________]{$ans_a} [@ helpLink("numbers") @]* -[` M = `] [_______________]{$ans_M} [@ AnswerFormatHelp("angles") @]* +[` M = `] [_______________]{$ans_M} [@ helpLink("angles") @]* -[` P = `] [_______________]{$ans_P} [@ AnswerFormatHelp("angles") @]* +[` P = `] [_______________]{$ans_P} [@ helpLink("angles") @]* -[` p = `] [_______________]{$ans_p} [@ AnswerFormatHelp("numbers") @]* +[` p = `] [_______________]{$ans_p} [@ helpLink("numbers") @]* -[` n = `] [_______________]{$ans_n} [@ AnswerFormatHelp("numbers") @]* +[` n = `] [_______________]{$ans_n} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_6.pg b/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_6.pg index ece16cae41..1f940f0664 100644 --- a/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_6.pg +++ b/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_6.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -58,14 +58,14 @@ Context()->flags->set( # Main text BEGIN_PGML -Assume [` \alpha `] is opposite side [`a`], [` \beta `] is opposite side [`b`], and [` \gamma `] is opposite side [`c`]. Solve the triangle where [`\alpha = [$alpha]^\circ`], [`\gamma=[$gamma]^\circ`], and [`a=[$a]`]. Round answers to the nearest tenth. +Assume [` \alpha `] is opposite side [`a`], [` \beta `] is opposite side [`b`], and [` \gamma `] is opposite side [`c`]. Solve the triangle where [`\alpha = [$alpha]^\circ`], [`\gamma=[$gamma]^\circ`], and [`a=[$a]`]. Round answers to the nearest tenth. -[` \beta = `] [_______________]{$ans_beta} [@ AnswerFormatHelp("angles") @]* +[` \beta = `] [_______________]{$ans_beta} [@ helpLink("angles") @]* -[` c = `] [_______________]{$ans_c} [@ AnswerFormatHelp("numbers") @]* +[` c = `] [_______________]{$ans_c} [@ helpLink("numbers") @]* -[` b = `] [_______________]{$ans_b} [@ AnswerFormatHelp("numbers") @]* +[` b = `] [_______________]{$ans_b} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_60.pg b/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_60.pg index 0805771c60..1acb3dfd59 100644 --- a/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_60.pg +++ b/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_60.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -66,7 +66,7 @@ $refreshCachedImages=1; BEGIN_TEXT $BR $BCENTER -\{ image( "10_1_60.png", width=>300, height=>300, +\{ image( "10_1_60.png", width=>300, height=>300, tex_size=>700, extra_html_tags=>'alt="The boat is between the two stations. Station A has an angle from the shore to the boat of 70 degrees, and station B has an angle from the shore to the ship of 60 degrees."' ) \} $ECENTER $BR @@ -75,9 +75,9 @@ END_TEXT BEGIN_PGML -Distance to station A [` = `] [_______________]{$ans_A} [@ AnswerFormatHelp("numbers") @]* +Distance to station A [` = `] [_______________]{$ans_A} [@ helpLink("numbers") @]* -Distance to the shore [` = `] [_______________]{$ans_Shore} [@ AnswerFormatHelp("numbers") @]* +Distance to the shore [` = `] [_______________]{$ans_Shore} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_61.pg b/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_61.pg index d7634bfa4a..483f2d90d0 100644 --- a/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_61.pg +++ b/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_61.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -57,7 +57,7 @@ Context()->flags->set( BEGIN_PGML -The figure below shows a satellite orbiting Earth. The satellite passes directly over two tracking stations [`A`] and [`B`], which are [`[$d]`] miles apart. When the satellite is on one side of the two stations, the angles of elevation at [`A`] and [`B`] are measured to be [`83.9^\circ`] and [` 86.2^\circ`] respectively. How far is the satellite from station [`A`] and how high is the satellite above the ground? Round answers to the nearest whole mile. +The figure below shows a satellite orbiting Earth. The satellite passes directly over two tracking stations [`A`] and [`B`], which are [`[$d]`] miles apart. When the satellite is on one side of the two stations, the angles of elevation at [`A`] and [`B`] are measured to be [`83.9^\circ`] and [` 86.2^\circ`] respectively. How far is the satellite from station [`A`] and how high is the satellite above the ground? Round answers to the nearest whole mile. END_PGML @@ -66,7 +66,7 @@ $refreshCachedImages=1; BEGIN_TEXT $BR $BCENTER -\{ image( "10_1_61.png", width=>300, height=>300, +\{ image( "10_1_61.png", width=>300, height=>300, tex_size=>700, extra_html_tags=>'alt="The satellite is to the right of both stations. Station A has an angle from Earth to the satellite of 83.9 degrees and station B has an angle from Earth to the satellite of 86.2 degrees."' ) \} $ECENTER $BR @@ -75,9 +75,9 @@ END_TEXT BEGIN_PGML -Distance to station A [` = `] [_______________]{$ans_A} [@ AnswerFormatHelp("numbers") @]* +Distance to station A [` = `] [_______________]{$ans_A} [@ helpLink("numbers") @]* -Distance above the ground [` = `] [_______________]{$ans_Ground} [@ AnswerFormatHelp("numbers") @]* +Distance above the ground [` = `] [_______________]{$ans_Ground} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_65.pg b/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_65.pg index 26c4ecd1a8..dcd41f936f 100644 --- a/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_65.pg +++ b/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_65.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -55,7 +55,7 @@ Context()->flags->set( BEGIN_PGML -A pilot is flying over a straight highway. He determines the angles of depression to two signs, which are [`[$d]`] km apart, two be [`32^\circ`] and [`56^\circ`], as shown in the figure below. Find the distance of the plane from sign [`A`] to the nearest kilometer. +A pilot is flying over a straight highway. He determines the angles of depression to two signs, which are [`[$d]`] km apart, two be [`32^\circ`] and [`56^\circ`], as shown in the figure below. Find the distance of the plane from sign [`A`] to the nearest kilometer. END_PGML @@ -64,7 +64,7 @@ $refreshCachedImages=1; BEGIN_TEXT $BR $BCENTER -\{ image( "10_1_65.png", width=>400, height=>300, +\{ image( "10_1_65.png", width=>400, height=>300, tex_size=>700, extra_html_tags=>'alt="The airplane is to the left of both signs, A being on the left of B."' ) \} $ECENTER $BR @@ -73,7 +73,7 @@ END_TEXT BEGIN_PGML -Distance to sign A [` = `] [_______________]{$ans_A} [@ AnswerFormatHelp("numbers") @]* +Distance to sign A [` = `] [_______________]{$ans_A} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_67.pg b/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_67.pg index a6d1eff662..8ecb8165fa 100644 --- a/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_67.pg +++ b/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_67.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -60,10 +60,10 @@ Context()->flags->set( BEGIN_PGML -In order to estimate the height of a building, two students stand at a certain distance from the building at street level. From this point, they find the angle of elevation from the street to the top of the building to be [`[$A1]^\circ`]. They then move [`[$d]`] feet closer to the building and find the angle of elevation to be [`[$A2]^\circ`]. Assuming that the street is level, estimate the height of the building to the nearest foot. +In order to estimate the height of a building, two students stand at a certain distance from the building at street level. From this point, they find the angle of elevation from the street to the top of the building to be [`[$A1]^\circ`]. They then move [`[$d]`] feet closer to the building and find the angle of elevation to be [`[$A2]^\circ`]. Assuming that the street is level, estimate the height of the building to the nearest foot. -Height of building [` = `] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +Height of building [` = `] [_______________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_7.pg b/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_7.pg index f128ccbbf5..1a35082b4f 100644 --- a/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_7.pg +++ b/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_7.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -58,13 +58,13 @@ Context()->flags->set( # Main text BEGIN_PGML -Assume [` \alpha `] is opposite side [`a`], [` \beta `] is opposite side [`b`], and [` \gamma `] is opposite side [`c`]. Solve the triangle where [`\alpha = [$alpha]^\circ`], [`\gamma=[$gamma]^\circ`], and [`c=[$c]`]. Round answers to the nearest tenth. +Assume [` \alpha `] is opposite side [`a`], [` \beta `] is opposite side [`b`], and [` \gamma `] is opposite side [`c`]. Solve the triangle where [`\alpha = [$alpha]^\circ`], [`\gamma=[$gamma]^\circ`], and [`c=[$c]`]. Round answers to the nearest tenth. -[` \beta = `] [_______________]{$ans_beta} [@ AnswerFormatHelp("angles") @]* +[` \beta = `] [_______________]{$ans_beta} [@ helpLink("angles") @]* -[` a = `] [_______________]{$ans_a} [@ AnswerFormatHelp("numbers") @]* +[` a = `] [_______________]{$ans_a} [@ helpLink("numbers") @]* -[` b = `] [_______________]{$ans_b} [@ AnswerFormatHelp("numbers") @]* +[` b = `] [_______________]{$ans_b} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_74.pg b/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_74.pg index 88f7877432..c88e3d06e1 100644 --- a/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_74.pg +++ b/Contrib/CCCS/PreCalculus/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_74.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -57,7 +57,7 @@ Context()->flags->set( BEGIN_PGML -Brian's house is on a corner lot. Find the area of the front yard if the edges measure [`b = [$b]`] and [`c = [$c]`] feet, and angle [`A=[$A]^\circ`] in the figure below. +Brian's house is on a corner lot. Find the area of the front yard if the edges measure [`b = [$b]`] and [`c = [$c]`] feet, and angle [`A=[$A]^\circ`] in the figure below. END_PGML @@ -66,7 +66,7 @@ $refreshCachedImages=1; BEGIN_TEXT $BR $BCENTER -\{ image( "10_1_74.png", width=>400, height=>300, +\{ image( "10_1_74.png", width=>400, height=>300, tex_size=>700, extra_html_tags=>'alt="Triangle with angle A and sides b and c."' ) \} $ECENTER $BR @@ -75,7 +75,7 @@ END_TEXT BEGIN_PGML -Area of yard [` = `] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +Area of yard [` = `] [_______________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/PreCalculus/10.1/break.pg b/Contrib/CCCS/PreCalculus/10.1/break.pg index 53326b48ad..90f8608a6b 100644 --- a/Contrib/CCCS/PreCalculus/10.1/break.pg +++ b/Contrib/CCCS/PreCalculus/10.1/break.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -40,14 +40,14 @@ TEXT(beginproblem()); $n=random(0,7,1); -# Array of 8 angles +# Array of 8 angles @latexangle=("90^\circ", "60^\circ" ,"45^\circ" ,"30^\circ", "120^\circ" , "135^\circ", "150^\circ", "180^\circ"); # Selecting angle for PGML $a = $latexangle[$n] ; -# Array of 8 angles +# Array of 8 angles @angle=(pi/2, pi/3 ,pi/4 ,pi/6, 2*pi/3, 3*pi/4, 5*pi/6, pi); # Selecting angle for Compute diff --git a/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_10.pg b/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_10.pg index 808887d5cc..8d00c50773 100644 --- a/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_10.pg +++ b/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_10.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -55,10 +55,10 @@ Context()->flags->set( # Main text BEGIN_PGML -Assume [` \alpha `] is opposite side [`a`], [` \beta `] is opposite side [`b`], and [` \gamma `] is opposite side [`c`]. If possible, solve the triangle for the unknown side where [`\alpha = [$alpha]^\circ`], [`a=[$a]`], and [`b=[$b]`]. Round answers to the nearest tenth. If not possible, enter "None". +Assume [` \alpha `] is opposite side [`a`], [` \beta `] is opposite side [`b`], and [` \gamma `] is opposite side [`c`]. If possible, solve the triangle for the unknown side where [`\alpha = [$alpha]^\circ`], [`a=[$a]`], and [`b=[$b]`]. Round answers to the nearest tenth. If not possible, enter "None". -[` c = `] [_______________]{$ans_c} [@ AnswerFormatHelp("numbers") @]* +[` c = `] [_______________]{$ans_c} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_12.pg b/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_12.pg index cd414b8c02..178f8e27ba 100644 --- a/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_12.pg +++ b/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_12.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -51,10 +51,10 @@ Context()->flags->set( # Main text BEGIN_PGML -Assume [` \alpha `] is opposite side [`a`], [` \beta `] is opposite side [`b`], and [` \gamma `] is opposite side [`c`]. If possible, solve the triangle for the unknown side where [`\beta = [$beta]^\circ`], [`a=[$a]`], and [`b=[$b]`]. Round answers to the nearest tenth. If not possible, enter "None". +Assume [` \alpha `] is opposite side [`a`], [` \beta `] is opposite side [`b`], and [` \gamma `] is opposite side [`c`]. If possible, solve the triangle for the unknown side where [`\beta = [$beta]^\circ`], [`a=[$a]`], and [`b=[$b]`]. Round answers to the nearest tenth. If not possible, enter "None". -[` c = `] [_______________]{$ans_c} [@ AnswerFormatHelp("numbers") @]* +[` c = `] [_______________]{$ans_c} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_16.pg b/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_16.pg index 424b4267c8..ea34c31213 100644 --- a/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_16.pg +++ b/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_16.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -52,10 +52,10 @@ Context()->flags->set( # Main text BEGIN_PGML -Assume [` A `] is opposite side [`a`], [` B `] is opposite side [`b`], and [` C `] is opposite side [`c`]. Use the Law of Cosines to find angle [`A`] where [`a = [$a]`], [`b=[$b]`], and [`c=[$c]`]. Round answer to the nearest tenth. +Assume [` A `] is opposite side [`a`], [` B `] is opposite side [`b`], and [` C `] is opposite side [`c`]. Use the Law of Cosines to find angle [`A`] where [`a = [$a]`], [`b=[$b]`], and [`c=[$c]`]. Round answer to the nearest tenth. -[` A = `] [_______________]{$ans_A} [@ AnswerFormatHelp("angles") @]* +[` A = `] [_______________]{$ans_A} [@ helpLink("angles") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_18.pg b/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_18.pg index 3e06263c0e..2f3236dad8 100644 --- a/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_18.pg +++ b/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_18.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -52,10 +52,10 @@ Context()->flags->set( # Main text BEGIN_PGML -Assume [` A `] is opposite side [`a`], [` B `] is opposite side [`b`], and [` C `] is opposite side [`c`]. Use the Law of Cosines to find angle [`B`] where [`a = [$a]`], [`b=[$b]`], and [`c=[$c]`]. Round answer to the nearest tenth. +Assume [` A `] is opposite side [`a`], [` B `] is opposite side [`b`], and [` C `] is opposite side [`c`]. Use the Law of Cosines to find angle [`B`] where [`a = [$a]`], [`b=[$b]`], and [`c=[$c]`]. Round answer to the nearest tenth. -[` B = `] [_______________]{$ans_B} [@ AnswerFormatHelp("angles") @]* +[` B = `] [_______________]{$ans_B} [@ helpLink("angles") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_19.pg b/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_19.pg index 09a42f7cad..752ca64fde 100644 --- a/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_19.pg +++ b/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_19.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -54,10 +54,10 @@ Context()->flags->set( # Main text BEGIN_PGML -Assume [` A `] is opposite side [`a`], [` B `] is opposite side [`b`], and [` C `] is opposite side [`c`]. Use the Law of Cosines to find angle [`A`] where [`a = [$a]`], [`b=[$b]`], and [`c=[$c]`]. Round answer to the nearest tenth. +Assume [` A `] is opposite side [`a`], [` B `] is opposite side [`b`], and [` C `] is opposite side [`c`]. Use the Law of Cosines to find angle [`A`] where [`a = [$a]`], [`b=[$b]`], and [`c=[$c]`]. Round answer to the nearest tenth. -[` A = `] [_______________]{$ans_A} [@ AnswerFormatHelp("angles") @]* +[` A = `] [_______________]{$ans_A} [@ helpLink("angles") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_21.pg b/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_21.pg index 88fb8a5e5e..7f7dda4931 100644 --- a/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_21.pg +++ b/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_21.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -59,14 +59,14 @@ Context()->flags->set( # Main text BEGIN_PGML -Assume [` A `] is opposite side [`a`], [` B `] is opposite side [`b`], and [` C `] is opposite side [`c`]. Solve the triangle where [`A = [$A]^\circ`], [`b=[$b]`], and [`c=[$c]`]. Round answers to the nearest tenth. +Assume [` A `] is opposite side [`a`], [` B `] is opposite side [`b`], and [` C `] is opposite side [`c`]. Solve the triangle where [`A = [$A]^\circ`], [`b=[$b]`], and [`c=[$c]`]. Round answers to the nearest tenth. -[` a = `] [_______________]{$ans_a} [@ AnswerFormatHelp("numbers") @]* +[` a = `] [_______________]{$ans_a} [@ helpLink("numbers") @]* -[` B = `] [_______________]{$ans_B} [@ AnswerFormatHelp("angles") @]* +[` B = `] [_______________]{$ans_B} [@ helpLink("angles") @]* -[` C = `] [_______________]{$ans_C} [@ AnswerFormatHelp("angles") @]* +[` C = `] [_______________]{$ans_C} [@ helpLink("angles") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_23.pg b/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_23.pg index 997f10bfbe..ed093498a1 100644 --- a/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_23.pg +++ b/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_23.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -59,14 +59,14 @@ Context()->flags->set( # Main text BEGIN_PGML -Assume [` A `] is opposite side [`a`], [` B `] is opposite side [`b`], and [` C `] is opposite side [`c`]. Solve the triangle where [`C = [$C]^\circ`], [`a=[$a]`], and [`b=[$b]`]. Round answers to the nearest tenth. +Assume [` A `] is opposite side [`a`], [` B `] is opposite side [`b`], and [` C `] is opposite side [`c`]. Solve the triangle where [`C = [$C]^\circ`], [`a=[$a]`], and [`b=[$b]`]. Round answers to the nearest tenth. -[` c = `] [_______________]{$ans_c} [@ AnswerFormatHelp("numbers") @]* +[` c = `] [_______________]{$ans_c} [@ helpLink("numbers") @]* -[` A = `] [_______________]{$ans_A} [@ AnswerFormatHelp("angles") @]* +[` A = `] [_______________]{$ans_A} [@ helpLink("angles") @]* -[` B = `] [_______________]{$ans_B} [@ AnswerFormatHelp("angles") @]* +[` B = `] [_______________]{$ans_B} [@ helpLink("angles") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_25.pg b/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_25.pg index d4a4c67825..5f7ca7244a 100644 --- a/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_25.pg +++ b/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_25.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -57,14 +57,14 @@ Context()->flags->set( # Main text BEGIN_PGML -Assume [` A `] is opposite side [`a`], [` B `] is opposite side [`b`], and [` C `] is opposite side [`c`]. Solve the triangle where [`a = [$a]`], [`b=[$b]`], and [`c=[$c]`]. Round answers to the nearest tenth. +Assume [` A `] is opposite side [`a`], [` B `] is opposite side [`b`], and [` C `] is opposite side [`c`]. Solve the triangle where [`a = [$a]`], [`b=[$b]`], and [`c=[$c]`]. Round answers to the nearest tenth. -[` A = `] [_______________]{$ans_A} [@ AnswerFormatHelp("angles") @]* +[` A = `] [_______________]{$ans_A} [@ helpLink("angles") @]* -[` B = `] [_______________]{$ans_B} [@ AnswerFormatHelp("angles") @]* +[` B = `] [_______________]{$ans_B} [@ helpLink("angles") @]* -[` C = `] [_______________]{$ans_C} [@ AnswerFormatHelp("angles") @]* +[` C = `] [_______________]{$ans_C} [@ helpLink("angles") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_29.pg b/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_29.pg index 655225722d..b6e9873e02 100644 --- a/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_29.pg +++ b/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_29.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -57,7 +57,7 @@ BEGIN_PGML Use Heron's formula to find the area of the triangle with sides [`a = \frac{1}{[$a]}`] meters, [`b = \frac{1}{[$b]}`] meters, and [`c=\frac{1}{[$c]}`] meters. Round answers to the nearest hundredth. Trigonometric functions used in answer blanks in this question will be evaluated in degrees. -Area [` = `] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +Area [` = `] [_______________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_30.pg b/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_30.pg index 79c29a3ee9..ab869bfba6 100644 --- a/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_30.pg +++ b/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_30.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -54,10 +54,10 @@ Context()->flags->set( # Main text BEGIN_PGML -Use Heron's formula to find the area of the triangle with sides [`a = [$a]`] feet, [`b = [$b]`] feet, and [`c=[$c]`] feet. Round answers to the nearest hundredth. +Use Heron's formula to find the area of the triangle with sides [`a = [$a]`] feet, [`b = [$b]`] feet, and [`c=[$c]`] feet. Round answers to the nearest hundredth. -Area [` = `] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +Area [` = `] [_______________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_31.pg b/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_31.pg index 84fa0ee8f5..78c330320d 100644 --- a/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_31.pg +++ b/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_31.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -54,10 +54,10 @@ Context()->flags->set( # Main text BEGIN_PGML -Use Heron's formula to find the area of the triangle with sides [`a = [$a]`] yards, [`b = [$b]`] yards, and [`c=[$c]`] yards. Round answers to the nearest hundredth. +Use Heron's formula to find the area of the triangle with sides [`a = [$a]`] yards, [`b = [$b]`] yards, and [`c=[$c]`] yards. Round answers to the nearest hundredth. -Area [` = `] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +Area [` = `] [_______________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_32.pg b/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_32.pg index 674a1bb964..0c23ad10f8 100644 --- a/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_32.pg +++ b/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_32.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -52,7 +52,7 @@ Context()->flags->set( BEGIN_PGML -Find the length of side [` x `], where [` a = [$a]`], [`b = [$b]`], and [`C= [$C]^\circ`]. Round to the nearest tenth. +Find the length of side [` x `], where [` a = [$a]`], [`b = [$b]`], and [`C= [$C]^\circ`]. Round to the nearest tenth. END_PGML @@ -60,7 +60,7 @@ $refreshCachedImages=1; BEGIN_TEXT $BR $BCENTER -\{ image( "10_2_32.png", width=>300, height=>300, +\{ image( "10_2_32.png", width=>300, height=>300, tex_size=>700, extra_html_tags=>'alt="Triangle with side x across from angle C. Also sides a and b."' ) \} $ECENTER $BR @@ -69,7 +69,7 @@ END_TEXT BEGIN_PGML - [` x = `] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* + [` x = `] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_33.pg b/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_33.pg index cf9d850205..e4f1901d6b 100644 --- a/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_33.pg +++ b/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_33.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -52,7 +52,7 @@ Context()->flags->set( BEGIN_PGML -Find the length of side [` x `], where [` a = [$a]`], [`b = [$b]`], and [`C= [$C]^\circ`]. Round to the nearest tenth. +Find the length of side [` x `], where [` a = [$a]`], [`b = [$b]`], and [`C= [$C]^\circ`]. Round to the nearest tenth. END_PGML @@ -61,7 +61,7 @@ $refreshCachedImages=1; BEGIN_TEXT $BR $BCENTER -\{ image( "10_2_33.png", width=>300, height=>300, +\{ image( "10_2_33.png", width=>300, height=>300, tex_size=>700, extra_html_tags=>'alt="Triangle with side x across from angle C. Also given sides a and b."' ) \} $ECENTER $BR @@ -70,7 +70,7 @@ END_TEXT BEGIN_PGML - [` x = `] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* + [` x = `] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_34.pg b/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_34.pg index 2b477bf3c4..5748dfe477 100644 --- a/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_34.pg +++ b/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_34.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -53,7 +53,7 @@ Context()->flags->set( BEGIN_PGML -Find the length of side [` x `], where [` a = [$a]`], [`c = [$c]`], and [`C= [$C]^\circ`]. Round to the nearest tenth. +Find the length of side [` x `], where [` a = [$a]`], [`c = [$c]`], and [`C= [$C]^\circ`]. Round to the nearest tenth. END_PGML @@ -62,7 +62,7 @@ $refreshCachedImages=1; BEGIN_TEXT $BR $BCENTER -\{ image( "10_2_34.png", width=>300, height=>300, +\{ image( "10_2_34.png", width=>300, height=>300, tex_size=>700, extra_html_tags=>'alt="Triangle with side c across from angle C. Sides a and x."' ) \} $ECENTER $BR @@ -71,7 +71,7 @@ END_TEXT BEGIN_PGML - [` x = `] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* + [` x = `] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_38.pg b/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_38.pg index 8c3b08afe7..6643dc3382 100644 --- a/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_38.pg +++ b/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_38.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -52,7 +52,7 @@ Context()->flags->set( BEGIN_PGML -Find the measure of angle [` A `], where [` a = [$a]`], [`b = [$b]`], and [`c= [$c]`]. Round to the nearest tenth. +Find the measure of angle [` A `], where [` a = [$a]`], [`b = [$b]`], and [`c= [$c]`]. Round to the nearest tenth. END_PGML @@ -61,7 +61,7 @@ $refreshCachedImages=1; BEGIN_TEXT $BR $BCENTER -\{ image( "10_2_38.png", width=>300, height=>300, +\{ image( "10_2_38.png", width=>300, height=>300, tex_size=>700, extra_html_tags=>'alt="Triangle with side a across from angle A. Sides c and b."' ) \} $ECENTER $BR @@ -70,7 +70,7 @@ END_TEXT BEGIN_PGML - [` A = `] [_______________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` A = `] [_______________]{$ans} [@ helpLink("angles") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_39.pg b/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_39.pg index 71c7bae518..711bd79ba4 100644 --- a/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_39.pg +++ b/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_39.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -52,7 +52,7 @@ Context()->flags->set( BEGIN_PGML -Find the measure of angle [` A `], where [` a = [$a]`], [`b = [$b]`], and [`c= [$c]`]. Round to the nearest tenth. +Find the measure of angle [` A `], where [` a = [$a]`], [`b = [$b]`], and [`c= [$c]`]. Round to the nearest tenth. END_PGML @@ -61,7 +61,7 @@ $refreshCachedImages=1; BEGIN_TEXT $BR $BCENTER -\{ image( "10_2_39.png", width=>300, height=>300, +\{ image( "10_2_39.png", width=>300, height=>300, tex_size=>700, extra_html_tags=>'alt="Triangle with side a across from angle A. Sides b and c."' ) \} $ECENTER $BR @@ -70,7 +70,7 @@ END_TEXT BEGIN_PGML - [` A = `] [_______________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` A = `] [_______________]{$ans} [@ helpLink("angles") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_40.pg b/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_40.pg index e104970f65..b9ad8aa881 100644 --- a/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_40.pg +++ b/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_40.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -53,7 +53,7 @@ Context()->flags->set( BEGIN_PGML -Find the measure of angle [` A `], where [` a = [$a]`], [`b = [$b]`], and [`c= [$c]`]. Round to the nearest tenth. +Find the measure of angle [` A `], where [` a = [$a]`], [`b = [$b]`], and [`c= [$c]`]. Round to the nearest tenth. END_PGML @@ -62,7 +62,7 @@ $refreshCachedImages=1; BEGIN_TEXT $BR $BCENTER -\{ image( "10_2_40.png", width=>300, height=>300, +\{ image( "10_2_40.png", width=>300, height=>300, tex_size=>700, extra_html_tags=>'alt="Triangle with side a across from angle A. Sides b and c."' ) \} $ECENTER $BR @@ -71,7 +71,7 @@ END_TEXT BEGIN_PGML - [` A = `] [_______________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` A = `] [_______________]{$ans} [@ helpLink("angles") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_47.pg b/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_47.pg index de34404c37..1d57ac5809 100644 --- a/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_47.pg +++ b/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_47.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -52,7 +52,7 @@ Context()->flags->set( BEGIN_PGML -Find the area of the triangle where [` a = [$a]`], [`b = [$b]`], and [`c= [$c]`]. Round to the nearest hundredth. +Find the area of the triangle where [` a = [$a]`], [`b = [$b]`], and [`c= [$c]`]. Round to the nearest hundredth. END_PGML @@ -61,7 +61,7 @@ $refreshCachedImages=1; BEGIN_TEXT $BR $BCENTER -\{ image( "10_2_47.png", width=>300, height=>300, +\{ image( "10_2_47.png", width=>300, height=>300, tex_size=>700, extra_html_tags=>'alt="Triangle with sides a, b, and c."' ) \} $ECENTER $BR @@ -70,7 +70,7 @@ END_TEXT BEGIN_PGML - Area [` = `] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* + Area [` = `] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_48.pg b/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_48.pg index 2ebedfc12a..3490c51383 100644 --- a/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_48.pg +++ b/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_48.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -52,7 +52,7 @@ Context()->flags->set( BEGIN_PGML -Find the area of the triangle where [` a = [$a]`], [`b = [$b]`], and [`c= [$c]`]. Round to the nearest hundredth. +Find the area of the triangle where [` a = [$a]`], [`b = [$b]`], and [`c= [$c]`]. Round to the nearest hundredth. END_PGML @@ -61,7 +61,7 @@ $refreshCachedImages=1; BEGIN_TEXT $BR $BCENTER -\{ image( "10_2_48.png", width=>300, height=>300, +\{ image( "10_2_48.png", width=>300, height=>300, tex_size=>700, extra_html_tags=>'alt="Triangle with sides a, b, and c."' ) \} $ECENTER $BR @@ -70,7 +70,7 @@ END_TEXT BEGIN_PGML - Area [` = `] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* + Area [` = `] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_52.pg b/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_52.pg index e1052f6cb3..1340cc1c74 100644 --- a/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_52.pg +++ b/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_52.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -56,10 +56,10 @@ Context()->flags->set( BEGIN_PGML -A parallelogram has sides of length [`[$a]`] units and [`[$b]`] units. The shorter diagonal is [`[$c]`] units. Find the measure of the longer diagonal. +A parallelogram has sides of length [`[$a]`] units and [`[$b]`] units. The shorter diagonal is [`[$c]`] units. Find the measure of the longer diagonal. - Longer diagonal [` = `] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* + Longer diagonal [` = `] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_55.pg b/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_55.pg index d585ec9330..fcea51efc3 100644 --- a/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_55.pg +++ b/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_55.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -51,7 +51,7 @@ Context()->flags->set( BEGIN_PGML -A regular octagon is inscribed in a circle with a radius of [`[$r]`] inches. Find the perimeter of the octagon. Round to the nearest tenth. +A regular octagon is inscribed in a circle with a radius of [`[$r]`] inches. Find the perimeter of the octagon. Round to the nearest tenth. END_PGML @@ -60,7 +60,7 @@ $refreshCachedImages=1; BEGIN_TEXT $BR $BCENTER -\{ image( "10_2_55.png", width=>400, height=>300, +\{ image( "10_2_55.png", width=>400, height=>300, tex_size=>700, extra_html_tags=>'alt="Circle with regular octagon inscribed."' ) \} $ECENTER $BR @@ -69,7 +69,7 @@ END_TEXT BEGIN_PGML - Perimeter [` = `] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* + Perimeter [` = `] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_6.pg b/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_6.pg index 7f7951a9d9..2764e468c0 100644 --- a/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_6.pg +++ b/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_6.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -34,7 +34,7 @@ TEXT(beginproblem()); # Setup Context("TrigDegrees"); -# setting up +# setting up $gamma = random(35,45,.1); $a = random(2.3,2.7,.01); $b = random(3.05,3.35,.01); @@ -53,10 +53,10 @@ Context()->flags->set( # Main text BEGIN_PGML -Assume [` \alpha `] is opposite side [`a`], [` \beta `] is opposite side [`b`], and [` \gamma `] is opposite side [`c`]. If possible, solve the triangle for the unknown side where [`\gamma = [$gamma]^\circ`], [`a=[$a]`], and [`b=[$b]`]. Round answers to the nearest tenth. If not possible, enter "None". +Assume [` \alpha `] is opposite side [`a`], [` \beta `] is opposite side [`b`], and [` \gamma `] is opposite side [`c`]. If possible, solve the triangle for the unknown side where [`\gamma = [$gamma]^\circ`], [`a=[$a]`], and [`b=[$b]`]. Round answers to the nearest tenth. If not possible, enter "None". -[` c = `] [_______________]{$ans_c} [@ AnswerFormatHelp("numbers") @]* +[` c = `] [_______________]{$ans_c} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_63.pg b/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_63.pg index 4dc918a9d8..b61bacc302 100644 --- a/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_63.pg +++ b/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_63.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -47,7 +47,7 @@ Context()->flags->set( BEGIN_PGML -A satellite calculates the distances and angle shown below. Find the distance between the two cities. Round to the nearest tenth. +A satellite calculates the distances and angle shown below. Find the distance between the two cities. Round to the nearest tenth. END_PGML @@ -56,7 +56,7 @@ $refreshCachedImages=1; BEGIN_TEXT $BR $BCENTER -\{ image( "10_2_63.png", width=>400, height=>300, +\{ image( "10_2_63.png", width=>400, height=>300, tex_size=>700, extra_html_tags=>'alt="Satellite to the right of two cities. Distance to closest city is 350 km, distance to further city is 370 km, angle of 2.1 degrees between satellite and two cities."' ) \} $ECENTER $BR @@ -65,7 +65,7 @@ END_TEXT BEGIN_PGML - Distance [` = `] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* + Distance [` = `] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_65.pg b/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_65.pg index de94a8cb0a..d18697edc7 100644 --- a/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_65.pg +++ b/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_65.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -47,7 +47,7 @@ Context()->flags->set( BEGIN_PGML -A [`113`]-foot tower is located on a hill that is inclined [`34^\circ`] to the horizontal as shown below. A guywire is to be attached to the top of the tower and anchored at a point [` 98 `] feet uphill from the base of the tower. Find the length of the wire needed. Round to the nearest tenth. +A [`113`]-foot tower is located on a hill that is inclined [`34^\circ`] to the horizontal as shown below. A guywire is to be attached to the top of the tower and anchored at a point [` 98 `] feet uphill from the base of the tower. Find the length of the wire needed. Round to the nearest tenth. END_PGML @@ -56,7 +56,7 @@ $refreshCachedImages=1; BEGIN_TEXT $BR $BCENTER -\{ image( "10_2_65.png", width=>400, height=>300, +\{ image( "10_2_65.png", width=>400, height=>300, tex_size=>700, extra_html_tags=>'alt="Angle of 34 degrees to horizontal. Tower is on that line of angle of 34 degrees to horizontal. Tower is 113 feet tall. Wire is attached to top of tower and goes up the hill and attaches to group 98 feet from base of tower."' ) \} $ECENTER $BR @@ -65,7 +65,7 @@ END_TEXT BEGIN_PGML - Length [` = `] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* + Length [` = `] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_7.pg b/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_7.pg index 87337b7779..e75db98019 100644 --- a/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_7.pg +++ b/Contrib/CCCS/PreCalculus/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_7.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -34,7 +34,7 @@ TEXT(beginproblem()); # Setup Context("TrigDegrees"); -# setting up +# setting up $alpha = random(110,130,1); $b = random(3,7,1); $c = random(8,10,1); @@ -53,10 +53,10 @@ Context()->flags->set( # Main text BEGIN_PGML -Assume [` \alpha `] is opposite side [`a`], [` \beta `] is opposite side [`b`], and [` \gamma `] is opposite side [`c`]. If possible, solve the triangle for the unknown side where [`\alpha = [$alpha]^\circ`], [`b=[$b]`], and [`c=[$c]`]. Round answers to the nearest tenth. If not possible, enter "None". +Assume [` \alpha `] is opposite side [`a`], [` \beta `] is opposite side [`b`], and [` \gamma `] is opposite side [`c`]. If possible, solve the triangle for the unknown side where [`\alpha = [$alpha]^\circ`], [`b=[$b]`], and [`c=[$c]`]. Round answers to the nearest tenth. If not possible, enter "None". -[` a = `] [_______________]{$ans_a} [@ AnswerFormatHelp("numbers") @]* +[` a = `] [_______________]{$ans_a} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_10.pg b/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_10.pg index 54ba146431..d251180e1a 100644 --- a/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_10.pg +++ b/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_10.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -40,13 +40,13 @@ $r = random(2,8,1); # random integer to choose angle $n=random(0,7,1); -# Array of 8 angles +# Array of 8 angles @latexangle=("(7pi)/6", "(5pi)/4" ,"(4pi)/3" ,"(3pi)/2", "(5pi)/3" , "(7pi)/4", "(11pi)/6", "2pi"); # Selecting angle for PGML $thetadisp = $latexangle[$n] ; -# Array of 8 angles +# Array of 8 angles @angle=(7*pi/6, 5*pi/4 ,4*pi/3 ,3*pi/2, 5*pi/3, 7*pi/4, 11*pi/6, 2*pi); # Selecting angle for Compute @@ -63,12 +63,12 @@ $ans = Point("($x,$y)"); # Main text BEGIN_PGML -Convert the given polar coordinate to Cartesian coordinates. +Convert the given polar coordinate to Cartesian coordinates. ` ([$r],[$thetadisp]) ` -[_______________]{$ans} [@ AnswerFormatHelp("points") @]* +[_______________]{$ans} [@ helpLink("points") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_11.pg b/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_11.pg index b8c72b88e2..46ebfbbe0a 100644 --- a/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_11.pg +++ b/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_11.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -50,12 +50,12 @@ $ans = Point("($r,$theta)"); # Main text BEGIN_PGML -Convert the given Cartesian coordinate to polar coordinates with [` r>0, 0 \leq \theta \leq 2 \pi`]. +Convert the given Cartesian coordinate to polar coordinates with [` r>0, 0 \leq \theta \leq 2 \pi`]. [` ([$x],[$y]) `] -[_______________]{$ans} [@ AnswerFormatHelp("points") @]* +[_______________]{$ans} [@ helpLink("points") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_13.pg b/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_13.pg index c4db2d388c..4baaf299cf 100644 --- a/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_13.pg +++ b/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_13.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -50,12 +50,12 @@ $ans = Point("($r,$theta)"); # Main text BEGIN_PGML -Convert the given Cartesian coordinate to polar coordinates with [` r>0, 0 \leq \theta \leq 2 \pi`]. +Convert the given Cartesian coordinate to polar coordinates with [` r>0, 0 \leq \theta \leq 2 \pi`]. [` ([$x],[$y]) `] -[_______________]{$ans} [@ AnswerFormatHelp("points") @]* +[_______________]{$ans} [@ helpLink("points") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_14.pg b/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_14.pg index 2199de5963..5450945669 100644 --- a/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_14.pg +++ b/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_14.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -50,12 +50,12 @@ $ans = Point("($r,$theta)"); # Main text BEGIN_PGML -Convert the given Cartesian coordinate to polar coordinates with [` r>0, 0 \leq \theta \leq 2 \pi`]. +Convert the given Cartesian coordinate to polar coordinates with [` r>0, 0 \leq \theta \leq 2 \pi`]. [` ([$x],[$y]) `] -[_______________]{$ans} [@ AnswerFormatHelp("points") @]* +[_______________]{$ans} [@ helpLink("points") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_15.pg b/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_15.pg index bf042c3d69..7b3ac19dc5 100644 --- a/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_15.pg +++ b/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_15.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -36,7 +36,7 @@ TEXT(beginproblem()); Context("Point"); $x = random(1,9,1); -$y = $x; +$y = $x; $r = sqrt($x**2+$y**2); @@ -50,12 +50,12 @@ $ans = Point("($r,$theta)"); # Main text BEGIN_PGML -Convert the given Cartesian coordinate to polar coordinates with [` r>0, 0 \leq \theta \leq 2 \pi`]. +Convert the given Cartesian coordinate to polar coordinates with [` r>0, 0 \leq \theta \leq 2 \pi`]. [` ([$x],[$y]) `] -[_______________]{$ans} [@ AnswerFormatHelp("points") @]* +[_______________]{$ans} [@ helpLink("points") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_16.pg b/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_16.pg index 84fcefe2db..d75bda5720 100644 --- a/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_16.pg +++ b/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_16.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -50,7 +50,7 @@ Convert the given Cartesian equation to a polar equation, solved for [` r`]. Ent [` x = [$x] `] -[` r = `] [_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[` r = `] [_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_17.pg b/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_17.pg index 1beb1a1c6b..07f0766a93 100644 --- a/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_17.pg +++ b/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_17.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -50,7 +50,7 @@ Convert the given Cartesian equation to a polar equation, solved for [` r`]. Ent [` y = [$y] `] -[` r = `] [_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[` r = `] [_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_19.pg b/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_19.pg index 5c32866419..d06caba83a 100644 --- a/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_19.pg +++ b/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_19.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -50,7 +50,7 @@ Convert the given Cartesian equation to a polar equation, solved for [` r`]. Ent [` y = [$a]x^4 `] -[` r = `] [_______________________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[` r = `] [_______________________________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_21.pg b/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_21.pg index 0381013e9f..f21e7bf160 100644 --- a/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_21.pg +++ b/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_21.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -50,7 +50,7 @@ Convert the given Cartesian equation to a polar equation, solved for [` r`]. Ent [` x^2+y^2 = [$a]x `] -[` r = `] [_______________________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[` r = `] [_______________________________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_27.pg b/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_27.pg index a9b4bb897c..6fbdd41843 100644 --- a/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_27.pg +++ b/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_27.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -50,7 +50,7 @@ Convert the given Cartesian equation to a polar equation, solved for [` r`]. Ent [` [$a]xy = [$b] `] -[` r = `] [_______________________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[` r = `] [_______________________________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_28.pg b/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_28.pg index b993a115e4..59544dcb8b 100644 --- a/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_28.pg +++ b/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_28.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGML.pl", "PGcourse.pl", @@ -71,7 +71,7 @@ $popup = PopUp(["?", "ellipse", "hyperbola", "parabola", "not a conic"], "ellips # Main text BEGIN_PGML -Convert the given polar equation to a Cartesian equation. Write in the standard form of a conic, if possible, and identify the conic section represented. +Convert the given polar equation to a Cartesian equation. Write in the standard form of a conic, if possible, and identify the conic section represented. [` r = [$a]\cos(\theta) `] @@ -81,7 +81,7 @@ BEGIN_TEXT $BR $BR \{$multians->ans_rule(20)\} -\( = \) +\( = \) \{$multians->ans_rule(5)\} $BR $BR @@ -95,7 +95,7 @@ BEGIN_PGML Note that standard forms of conics are [` \frac{(x-h)^2}{a^2}+\frac{(y-k)^2}{b^2}=1 `], [` \frac{(x-h)^2}{a^2}-\frac{(y-k)^2}{b^2}=1 `], [` (y-k)^2=4p(x-h) `], and [` (x-h)^2=4p(y-k) `], and that a circle is an ellipse. If it is a line, enter as [` y = mx+b `]. END_PGML -ANS( $multians->cmp() ); +ANS( $multians->cmp() ); ANS( $popup->cmp() ); ############################ # Solution diff --git a/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_29.pg b/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_29.pg index 3725da813d..c8fa52dba7 100644 --- a/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_29.pg +++ b/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_29.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGML.pl", "PGcourse.pl", @@ -71,7 +71,7 @@ $popup = PopUp(["?", "ellipse", "hyperbola", "parabola", "not a conic"], "ellips # Main text BEGIN_PGML -Convert the given polar equation to a Cartesian equation. Write in the standard form of a conic, if possible, and identify the conic section represented. +Convert the given polar equation to a Cartesian equation. Write in the standard form of a conic, if possible, and identify the conic section represented. [` r = [$a]\sin(\theta) `] @@ -81,7 +81,7 @@ BEGIN_TEXT $BR $BR \{$multians->ans_rule(20)\} -\( = \) +\( = \) \{$multians->ans_rule(5)\} $BR $BR @@ -95,7 +95,7 @@ BEGIN_PGML Note that standard forms of conics are [` \frac{(x-h)^2}{a^2}+\frac{(y-k)^2}{b^2}=1 `], [` \frac{(x-h)^2}{a^2}-\frac{(y-k)^2}{b^2}=1 `], [` (y-k)^2=4p(x-h) `], and [` (x-h)^2=4p(y-k) `], and that a circle is an ellipse. If it is a line, enter as [` y = mx+b `]. END_PGML -ANS( $multians->cmp() ); +ANS( $multians->cmp() ); ANS( $popup->cmp() ); ############################ # Solution diff --git a/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_30.pg b/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_30.pg index faef9a4b53..179cfa3714 100644 --- a/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_30.pg +++ b/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_30.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGML.pl", "PGcourse.pl", @@ -74,7 +74,7 @@ $popup = PopUp(["?", "ellipse", "hyperbola", "parabola", "not a conic"], "not a # Main text BEGIN_PGML -Convert the given polar equation to a Cartesian equation. Write in the standard form of a conic, if possible, and identify the conic section represented. +Convert the given polar equation to a Cartesian equation. Write in the standard form of a conic, if possible, and identify the conic section represented. [`` r = \frac{[$a]}{\sin(\theta)+[$b]*\cos(\theta)} ``] @@ -84,7 +84,7 @@ BEGIN_TEXT $BR $BR \{$multians->ans_rule(20)\} -\( = \) +\( = \) \{$multians->ans_rule(5)\} $BR $BR @@ -98,7 +98,7 @@ BEGIN_PGML Note that standard forms of conics are [` \frac{(x-h)^2}{a^2}+\frac{(y-k)^2}{b^2}=1 `], [` \frac{(x-h)^2}{a^2}-\frac{(y-k)^2}{b^2}=1 `], [` (y-k)^2=4p(x-h) `], and [` (x-h)^2=4p(y-k) `], and that a circle is an ellipse. If it is a line, enter as [` y = mx+b `]. END_PGML -ANS( $multians->cmp() ); +ANS( $multians->cmp() ); ANS( $popup->cmp() ); ############################ # Solution diff --git a/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_31.pg b/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_31.pg index 4d6f83a037..8f0df3b96f 100644 --- a/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_31.pg +++ b/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_31.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGML.pl", "PGcourse.pl", @@ -74,7 +74,7 @@ $popup = PopUp(["?", "ellipse", "hyperbola", "parabola", "not a conic"], "not a # Main text BEGIN_PGML -Convert the given polar equation to a Cartesian equation. Write in the standard form of a conic, if possible, and identify the conic section represented. +Convert the given polar equation to a Cartesian equation. Write in the standard form of a conic, if possible, and identify the conic section represented. [`` r = \frac{[$a]}{\cos(\theta)+[$b]*\sin(\theta)} ``] @@ -84,7 +84,7 @@ BEGIN_TEXT $BR $BR \{$multians->ans_rule(20)\} -\( = \) +\( = \) \{$multians->ans_rule(5)\} $BR $BR @@ -98,7 +98,7 @@ BEGIN_PGML Note that standard forms of conics are [` \frac{(x-h)^2}{a^2}+\frac{(y-k)^2}{b^2}=1 `], [` \frac{(x-h)^2}{a^2}-\frac{(y-k)^2}{b^2}=1 `], [` (y-k)^2=4p(x-h) `], and [` (x-h)^2=4p(y-k) `], and that a circle is an ellipse. If it is a line, enter as [` y = mx+b `]. END_PGML -ANS( $multians->cmp() ); +ANS( $multians->cmp() ); ANS( $popup->cmp() ); ############################ # Solution diff --git a/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_33.pg b/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_33.pg index 3ccbc840d3..1136d5fff2 100644 --- a/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_33.pg +++ b/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_33.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGML.pl", "PGcourse.pl", @@ -74,7 +74,7 @@ $popup = PopUp(["?", "ellipse", "hyperbola", "parabola", "not a conic"], "not a # Main text BEGIN_PGML -Convert the given polar equation to a Cartesian equation. Write in the standard form of a conic, if possible, and identify the conic section represented. +Convert the given polar equation to a Cartesian equation. Write in the standard form of a conic, if possible, and identify the conic section represented. [`` r = [$a]\csc(\theta) ``] @@ -84,7 +84,7 @@ BEGIN_TEXT $BR $BR \{$multians->ans_rule(20)\} -\( = \) +\( = \) \{$multians->ans_rule(5)\} $BR $BR @@ -98,7 +98,7 @@ BEGIN_PGML Note that standard forms of conics are [` \frac{(x-h)^2}{a^2}+\frac{(y-k)^2}{b^2}=1 `], [` \frac{(x-h)^2}{a^2}-\frac{(y-k)^2}{b^2}=1 `], [` (y-k)^2=4p(x-h) `], and [` (x-h)^2=4p(y-k) `], and that a circle is an ellipse. If it is a line, enter as [` y = mx+b `]. END_PGML -ANS( $multians->cmp() ); +ANS( $multians->cmp() ); ANS( $popup->cmp() ); ############################ # Solution diff --git a/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_41.pg b/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_41.pg index 5f2d7c052b..de4ef3d3ef 100644 --- a/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_41.pg +++ b/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_41.pg @@ -24,7 +24,7 @@ loadMacros( "PGML.pl", "PGcourse.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -132,7 +132,7 @@ $BCENTER \( \frac{\pi}{2} \) $BR \( \pi \) -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>300,height=>300,tex_size=>800 ) \} \( 0 \) $BR @@ -145,7 +145,7 @@ $BR END_TEXT BEGIN_PGML ->>[_______________]{$ans} [@ AnswerFormatHelp("points") @]*<< +>>[_______________]{$ans} [@ helpLink("points") @]*<< END_PGML diff --git a/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_42.pg b/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_42.pg index ebebf2646a..920cf8941c 100644 --- a/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_42.pg +++ b/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_42.pg @@ -24,7 +24,7 @@ loadMacros( "PGML.pl", "PGcourse.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -132,7 +132,7 @@ $BCENTER \( \frac{\pi}{2} \) $BR \( \pi \) -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>300,height=>300,tex_size=>800 ) \} \( 0 \) $BR @@ -145,7 +145,7 @@ $BR END_TEXT BEGIN_PGML ->>[_______________]{$ans} [@ AnswerFormatHelp("points") @]*<< +>>[_______________]{$ans} [@ helpLink("points") @]*<< END_PGML diff --git a/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_45.pg b/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_45.pg index f80bc1f402..8b7744d022 100644 --- a/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_45.pg +++ b/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_45.pg @@ -27,7 +27,7 @@ loadMacros( "MathObjects.pl", "unionTables.pl", "parserPopUp.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -59,7 +59,7 @@ do {$n3=random(0,7,1);} until (($n3 != $n0) and ($n3 != $n1) and ($n3 != $n0)); # Array of 8 angles for computing and graphing purposes @fraction=(pi/2, pi/3 ,pi/4 ,pi/6, 2*pi/3, 3*pi/4, 5*pi/6, pi); -# Selecting angle for Compute +# Selecting angle for Compute $theta0 = $fraction[$n0] ; $theta1 = $fraction[$n1] ; $theta2 = $fraction[$n2] ; @@ -89,7 +89,7 @@ $theta3 = $fraction[$n3] ; #adding circles at r=1,2,3,4,5,6 $xfunc1 = sub { my $t = shift(); - return cos($t); }; + return cos($t); }; $yfunc1 = sub { my $t = shift(); return sin($t); }; $fn1 = new Fun( $xfunc1, $yfunc1, $gr[0] ); @@ -306,7 +306,7 @@ $theta3 = $fraction[$n3] ; #building figures for $i (0..3) { - plot_functions( $gr[$i]); + plot_functions( $gr[$i]); $fig[$i]=image(insertGraph($gr[$i]), width=>200,height=>200,tex_size=>450); } diff --git a/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_47.pg b/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_47.pg index a1dfc14f4b..996ab33ab8 100644 --- a/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_47.pg +++ b/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_47.pg @@ -27,7 +27,7 @@ loadMacros( "MathObjects.pl", "unionTables.pl", "parserPopUp.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -59,7 +59,7 @@ do {$n3=random(0,7,1);} until (($n3 != $n0) and ($n3 != $n1) and ($n3 != $n0)); # Array of 8 angles for computing and graphing purposes @fraction=(pi/2, pi/3 ,pi/4 ,pi/6, 2*pi/3, 3*pi/4, 5*pi/6, pi); -# Selecting angle for Compute +# Selecting angle for Compute $theta0 = $fraction[$n0] ; $theta1 = $fraction[$n1] ; $theta2 = $fraction[$n2] ; @@ -89,7 +89,7 @@ $theta3 = $fraction[$n3] ; #adding circles at r=1,2,3,4,5,6 $xfunc1 = sub { my $t = shift(); - return cos($t); }; + return cos($t); }; $yfunc1 = sub { my $t = shift(); return sin($t); }; $fn1 = new Fun( $xfunc1, $yfunc1, $gr[0] ); @@ -306,7 +306,7 @@ $theta3 = $fraction[$n3] ; #building figures for $i (0..3) { - plot_functions( $gr[$i]); + plot_functions( $gr[$i]); $fig[$i]=image(insertGraph($gr[$i]), width=>200,height=>200,tex_size=>450); } diff --git a/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_50.pg b/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_50.pg index 1fe81c47d9..208d88e25a 100644 --- a/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_50.pg +++ b/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_50.pg @@ -27,7 +27,7 @@ loadMacros( "MathObjects.pl", "unionTables.pl", "parserPopUp.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -59,7 +59,7 @@ do {$n3=random(0,7,1);} until (($n3 != $n0) and ($n3 != $n1) and ($n3 != $n0)); # Array of 8 angles for computing and graphing purposes @fraction=(-1*pi/2, -1*pi/3 ,-1*pi/4 ,-1*pi/6, -2*pi/3, -3*pi/4, -5*pi/6, -1*pi); -# Selecting angle for Compute +# Selecting angle for Compute $theta0 = $fraction[$n0] ; $theta1 = $fraction[$n1] ; $theta2 = $fraction[$n2] ; @@ -89,7 +89,7 @@ $theta3 = $fraction[$n3] ; #adding circles at r=1,2,3,4,5,6 $xfunc1 = sub { my $t = shift(); - return cos($t); }; + return cos($t); }; $yfunc1 = sub { my $t = shift(); return sin($t); }; $fn1 = new Fun( $xfunc1, $yfunc1, $gr[0] ); @@ -306,7 +306,7 @@ $theta3 = $fraction[$n3] ; #building figures for $i (0..3) { - plot_functions( $gr[$i]); + plot_functions( $gr[$i]); $fig[$i]=image(insertGraph($gr[$i]), width=>200,height=>200,tex_size=>450); } diff --git a/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_51.pg b/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_51.pg index 04ce21c302..804baf509e 100644 --- a/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_51.pg +++ b/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_51.pg @@ -27,7 +27,7 @@ loadMacros( "MathObjects.pl", "unionTables.pl", "parserPopUp.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -59,7 +59,7 @@ do {$n3=random(0,7,1);} until (($n3 != $n0) and ($n3 != $n1) and ($n3 != $n0)); # Array of 8 angles for computing and graphing purposes @fraction=(7*pi/6, 5*pi/4 , 4*pi/3, 3*pi/2, 5*pi/3, 7*pi/4, 11*pi/6, 0); -# Selecting angle for Compute +# Selecting angle for Compute $theta0 = $fraction[$n0] ; $theta1 = $fraction[$n1] ; $theta2 = $fraction[$n2] ; @@ -89,7 +89,7 @@ $theta3 = $fraction[$n3] ; #adding circles at r=1,2,3,4,5,6 $xfunc1 = sub { my $t = shift(); - return cos($t); }; + return cos($t); }; $yfunc1 = sub { my $t = shift(); return sin($t); }; $fn1 = new Fun( $xfunc1, $yfunc1, $gr[0] ); @@ -306,7 +306,7 @@ $theta3 = $fraction[$n3] ; #building figures for $i (0..3) { - plot_functions( $gr[$i]); + plot_functions( $gr[$i]); $fig[$i]=image(insertGraph($gr[$i]), width=>200,height=>200,tex_size=>450); } diff --git a/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_6.pg b/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_6.pg index a420967242..ebdc4f923c 100644 --- a/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_6.pg +++ b/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_6.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -40,13 +40,13 @@ $r = random(2,8,1); # random integer to choose angle $n=random(0,7,1); -# Array of 8 angles +# Array of 8 angles @latexangle=("pi/2", "pi/3" ,"pi/4" ,"pi/6", "(2pi)/3" , "(3pi)/4", "(5pi)/6", "pi"); # Selecting angle for PGML $thetadisp = $latexangle[$n] ; -# Array of 8 angles +# Array of 8 angles @angle=(pi/2, pi/3 ,pi/4 ,pi/6, 2*pi/3, 3*pi/4, 5*pi/6, pi); # Selecting angle for Compute @@ -63,12 +63,12 @@ $ans = Point("($x,$y)"); # Main text BEGIN_PGML -Convert the given polar coordinate to Cartesian coordinates. +Convert the given polar coordinate to Cartesian coordinates. ` ([$r],[$thetadisp]) ` -[_______________]{$ans} [@ AnswerFormatHelp("points") @]* +[_______________]{$ans} [@ helpLink("points") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_8.pg b/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_8.pg index 1340b886d7..0091be51cf 100644 --- a/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_8.pg +++ b/Contrib/CCCS/PreCalculus/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_8.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -40,13 +40,13 @@ $r = random(2,8,1); # random integer to choose angle $n=random(0,7,1); -# Array of 8 angles +# Array of 8 angles @latexangle=("-pi/2", "-pi/3" ,"-pi/4" ,"-pi/6", "-(2pi)/3" , "-(3pi)/4", "-(5pi)/6", "-pi"); # Selecting angle for PGML $thetadisp = $latexangle[$n] ; -# Array of 8 angles +# Array of 8 angles @angle=(-1*pi/2, -1*pi/3 ,-1*pi/4 ,-1*pi/6, -2*pi/3, -3*pi/4, -5*pi/6, -1*pi); # Selecting angle for Compute @@ -63,12 +63,12 @@ $ans = Point("($x,$y)"); # Main text BEGIN_PGML -Convert the given polar coordinate to Cartesian coordinates. +Convert the given polar coordinate to Cartesian coordinates. ` ([$r],[$thetadisp]) ` -[_______________]{$ans} [@ AnswerFormatHelp("points") @]* +[_______________]{$ans} [@ helpLink("points") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_13.pg b/Contrib/CCCS/PreCalculus/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_13.pg index b978473c58..bfb0faac5b 100644 --- a/Contrib/CCCS/PreCalculus/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_13.pg +++ b/Contrib/CCCS/PreCalculus/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_13.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,11 +50,11 @@ Context()->flags->set( # Main text BEGIN_PGML -Write the complex number [`[$z] `] in polar form, [` r(\cos(\theta)+i\sin(\theta)) `], with [` r>0, 0 \leq \theta \leq 2 \pi`]. +Write the complex number [`[$z] `] in polar form, [` r(\cos(\theta)+i\sin(\theta)) `], with [` r>0, 0 \leq \theta \leq 2 \pi`]. -[________________________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[________________________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_15.pg b/Contrib/CCCS/PreCalculus/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_15.pg index c1d79ea510..1b8baa18e6 100644 --- a/Contrib/CCCS/PreCalculus/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_15.pg +++ b/Contrib/CCCS/PreCalculus/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_15.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -35,8 +35,8 @@ TEXT(beginproblem()); $n = random(1,4,1); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -58,14 +58,14 @@ if($n == 1) { # Main text BEGIN_PGML -Write the complex number [` \sqrt{3}+i `] in polar form, [` r(\cos(\theta)+i\sin(\theta)) `], -with [` r>0, 0 \leq \theta \leq 2 \pi`]. +Write the complex number [` \sqrt{3}+i `] in polar form, [` r(\cos(\theta)+i\sin(\theta)) `], +with [` r>0, 0 \leq \theta \leq 2 \pi`]. -[________________________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[________________________________]{$ans} [@ helpLink("numbers") @]* -[$video]* +[$video]* END_PGML @@ -91,14 +91,14 @@ if($n == 2) { # Main text BEGIN_PGML -Write the complex number [` 1+i `] in polar form, [` r(\cos(\theta)+i\sin(\theta)) `], -with [` r>0, 0 \leq \theta \leq 2 \pi`]. +Write the complex number [` 1+i `] in polar form, [` r(\cos(\theta)+i\sin(\theta)) `], +with [` r>0, 0 \leq \theta \leq 2 \pi`]. -[________________________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[________________________________]{$ans} [@ helpLink("numbers") @]* -[$video]* +[$video]* END_PGML @@ -125,14 +125,14 @@ if($n == 3) { # Main text BEGIN_PGML -Write the complex number [` -1+\sqrt{3}i `] in polar form, [` r(\cos(\theta)+i\sin(\theta)) `], -with [` r>0, 0 \leq \theta \leq 2 \pi`]. +Write the complex number [` -1+\sqrt{3}i `] in polar form, [` r(\cos(\theta)+i\sin(\theta)) `], +with [` r>0, 0 \leq \theta \leq 2 \pi`]. -[________________________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[________________________________]{$ans} [@ helpLink("numbers") @]* -[$video]* +[$video]* END_PGML @@ -158,13 +158,13 @@ if($n == 4) { # Main text BEGIN_PGML -Write the complex number [` 1-i `] in polar form, [` r(\cos(\theta)+i\sin(\theta)) `], -with [` r>0, 0 \leq \theta \leq 2 \pi`]. +Write the complex number [` 1-i `] in polar form, [` r(\cos(\theta)+i\sin(\theta)) `], +with [` r>0, 0 \leq \theta \leq 2 \pi`]. -[________________________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[________________________________]{$ans} [@ helpLink("numbers") @]* -[$video]* +[$video]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_16.pg b/Contrib/CCCS/PreCalculus/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_16.pg index c2f2185521..63cf4a094d 100644 --- a/Contrib/CCCS/PreCalculus/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_16.pg +++ b/Contrib/CCCS/PreCalculus/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_16.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,11 +51,11 @@ if($n ==1) { # Main text BEGIN_PGML - Write the complex number [`[$z] `] in polar form, [` r(\cos(\theta)+i\sin(\theta)) `], with [` - r>0, 0 \leq \theta \leq 2 \pi`]. + Write the complex number [`[$z] `] in polar form, [` r(\cos(\theta)+i\sin(\theta)) `], with [` + r>0, 0 \leq \theta \leq 2 \pi`]. - [________________________________]{$ans} [@ AnswerFormatHelp("numbers") @]* + [________________________________]{$ans} [@ helpLink("numbers") @]* END_PGML } @@ -78,11 +78,11 @@ if($n ==2) { # Main text BEGIN_PGML - Write the complex number [`[$z] `] in polar form, [` r(\cos(\theta)+i\sin(\theta)) `], with [` - r>0, 0 \leq \theta \leq 2 \pi`]. + Write the complex number [`[$z] `] in polar form, [` r(\cos(\theta)+i\sin(\theta)) `], with [` + r>0, 0 \leq \theta \leq 2 \pi`]. - [________________________________]{$ans} [@ AnswerFormatHelp("numbers") @]* + [________________________________]{$ans} [@ helpLink("numbers") @]* END_PGML } diff --git a/Contrib/CCCS/PreCalculus/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_17.pg b/Contrib/CCCS/PreCalculus/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_17.pg index 8e85fd7fb6..f71d3f3d8b 100644 --- a/Contrib/CCCS/PreCalculus/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_17.pg +++ b/Contrib/CCCS/PreCalculus/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_17.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -42,13 +42,13 @@ Context()->flags->set( # random integer to choose an angle $n=random(0,5,1); -# Array of 8 angles +# Array of 8 angles @latexfraction=("pi/3" ,"pi/4" ,"pi/6", "(2pi)/3" , "(3pi)/4", "(5pi)/6"); # Selecting angle for PGML $thetadisp = $latexfraction[$n] ; -# Array of 8 angles +# Array of 8 angles @fraction=(pi/3 ,pi/4 ,pi/6, 2*pi/3, 3*pi/4, 5*pi/6); # Selecting angle for Compute @@ -70,7 +70,7 @@ BEGIN_PGML Convert the complex number `z=[$r](\cos([$thetadisp])+i\sin([$thetadisp]))` from polar to rectangular form. Make sure to evaluate the trigonometric functions. -[`z = `] [______]{$ansx} [`+`] [______]{$ansy}[`i`] [` \ \ \ \ `] [@ AnswerFormatHelp("numbers") @]* +[`z = `] [______]{$ansx} [`+`] [______]{$ansy}[`i`] [` \ \ \ \ `] [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_19.pg b/Contrib/CCCS/PreCalculus/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_19.pg index ed28a07f45..ef7eb22d4f 100644 --- a/Contrib/CCCS/PreCalculus/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_19.pg +++ b/Contrib/CCCS/PreCalculus/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_19.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -42,13 +42,13 @@ Context()->flags->set( # random integer to choose an angle $n=random(0,5,1); -# Array of 8 angles +# Array of 8 angles @latexfraction=("(4pi)/3" ,"(5pi)/4" ,"(7pi)/6", "(5pi)/3" , "(7pi)/4", "(11pi)/6"); # Selecting angle for PGML $thetadisp = $latexfraction[$n] ; -# Array of 8 angles +# Array of 8 angles @fraction=(4*pi/3 ,5*pi/4 ,7*pi/6, 5*pi/3, 7*pi/4, 11*pi/6); # Selecting angle for Compute @@ -68,7 +68,7 @@ BEGIN_PGML Convert the complex number `z=[$r](\cos([$thetadisp])+i\sin([$thetadisp]))` from polar to rectangular form. Make sure to evaluate the trigonometric functions. -[`z = `] [______]{$ansx} [`+`] [______]{$ansy}[`i`] [` \ \ \ \ `] [@ AnswerFormatHelp("numbers") @]* +[`z = `] [______]{$ansx} [`+`] [______]{$ansy}[`i`] [` \ \ \ \ `] [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_20.pg b/Contrib/CCCS/PreCalculus/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_20.pg index 21eb776193..33277814e6 100644 --- a/Contrib/CCCS/PreCalculus/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_20.pg +++ b/Contrib/CCCS/PreCalculus/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_20.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -56,7 +56,7 @@ BEGIN_PGML Convert the complex number [`z=[$r](\cos([$theta]^\circ)+i\sin([$theta]^\circ))`] from polar to rectangular form. Make sure to evaluate trigonometric functions. -[`z = `] [______]{$ansx} [`+`] [______]{$ansy}[`i`] [` \ \ \ \ `] [@ AnswerFormatHelp("numbers") @]* +[`z = `] [______]{$ansx} [`+`] [______]{$ansy}[`i`] [` \ \ \ \ `] [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_21.pg b/Contrib/CCCS/PreCalculus/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_21.pg index 2c7f751ecf..591150de6d 100644 --- a/Contrib/CCCS/PreCalculus/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_21.pg +++ b/Contrib/CCCS/PreCalculus/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_21.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -55,7 +55,7 @@ BEGIN_PGML Convert the complex number [`z=[$r](\cos([$theta]^\circ)+i\sin([$theta]^\circ))`] from polar to rectangular form. Make sure to evaluate trigonometric functions. -[`z = `] [______]{$ansx} [`+`] [______]{$ansy}[`i`] [` \ \ \ \ `] [@ AnswerFormatHelp("numbers") @]* +[`z = `] [______]{$ansx} [`+`] [______]{$ansy}[`i`] [` \ \ \ \ `] [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_23.pg b/Contrib/CCCS/PreCalculus/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_23.pg index cc339a9615..8b6fc60b24 100644 --- a/Contrib/CCCS/PreCalculus/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_23.pg +++ b/Contrib/CCCS/PreCalculus/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_23.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -43,8 +43,8 @@ do {$theta2 = random(115,165,1);} until ((($theta1+$theta2)>190) and (($theta1+$ $ans = Compute("$r1*$r2(cos($theta1+$theta2)+i*sin($theta1+$theta2))"); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -55,15 +55,15 @@ TeX => # Main text BEGIN_PGML -Find [`z_1 z_2`] in polar form where [`z_1=[$r1](\cos([$theta1]^\circ)+i\sin([$theta1]^\circ))`] and [`z_2=[$r2](\cos([$theta2]^\circ)+i\sin([$theta2]^\circ))`]. +Find [`z_1 z_2`] in polar form where [`z_1=[$r1](\cos([$theta1]^\circ)+i\sin([$theta1]^\circ))`] and [`z_2=[$r2](\cos([$theta2]^\circ)+i\sin([$theta2]^\circ))`]. Polar form is [` r(\cos(\theta)+i\sin(\theta)) `], with [` r>0, 0^\circ \leq \theta \leq 360^\circ`]. -[`z_1 z_2=`] [______________________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`z_1 z_2=`] [______________________________]{$ans} [@ helpLink("numbers") @]* -[$video]* +[$video]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_25.pg b/Contrib/CCCS/PreCalculus/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_25.pg index 4d7f4aa4af..c138c00577 100644 --- a/Contrib/CCCS/PreCalculus/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_25.pg +++ b/Contrib/CCCS/PreCalculus/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_25.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -46,12 +46,12 @@ $ans = Compute("$r1*$r2(cos($theta1+$theta2)+i*sin($theta1+$theta2))"); # Main text BEGIN_PGML -Find [`z_1 z_2`] in polar form where [`z_1=[$r1](\cos([$theta1]^\circ)+i\sin([$theta1]^\circ))`] and [`z_2=[$r2](\cos([$theta2]^\circ)+i\sin([$theta2]^\circ))`]. +Find [`z_1 z_2`] in polar form where [`z_1=[$r1](\cos([$theta1]^\circ)+i\sin([$theta1]^\circ))`] and [`z_2=[$r2](\cos([$theta2]^\circ)+i\sin([$theta2]^\circ))`]. Polar form is [` r(\cos(\theta)+i\sin(\theta)) `], with [` r>0, 0^\circ \leq \theta \leq 360^\circ`]. -[`z_1 z_2=`] [______________________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`z_1 z_2=`] [______________________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_29.pg b/Contrib/CCCS/PreCalculus/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_29.pg index 4ab28ef214..1a34f0b8b6 100644 --- a/Contrib/CCCS/PreCalculus/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_29.pg +++ b/Contrib/CCCS/PreCalculus/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_29.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -46,12 +46,12 @@ $ans = Compute("$r1/$r2(cos($theta1-$theta2)+i*sin($theta1-$theta2))"); # Main text BEGIN_PGML -Find [``\frac{z_1}{ z_2}``] in polar form where [`z_1=[$r1](\cos([$theta1]^\circ)+i\sin([$theta1]^\circ))`] and [`z_2=[$r2](\cos([$theta2]^\circ)+i\sin([$theta2]^\circ))`]. +Find [``\frac{z_1}{ z_2}``] in polar form where [`z_1=[$r1](\cos([$theta1]^\circ)+i\sin([$theta1]^\circ))`] and [`z_2=[$r2](\cos([$theta2]^\circ)+i\sin([$theta2]^\circ))`]. Polar form is [` r(\cos(\theta)+i\sin(\theta)) `], with [` r>0, 0^\circ \leq \theta \leq 360^\circ`]. -[``\dfrac{z_1}{ z_2}=``] [______________________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[``\dfrac{z_1}{ z_2}=``] [______________________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_31.pg b/Contrib/CCCS/PreCalculus/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_31.pg index de079726ae..2be98802f2 100644 --- a/Contrib/CCCS/PreCalculus/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_31.pg +++ b/Contrib/CCCS/PreCalculus/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_31.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -46,12 +46,12 @@ $ans = Compute("$r1/$r2(cos($theta1-$theta2)+i*sin($theta1-$theta2))"); # Main text BEGIN_PGML -Find [``\frac{z_1}{ z_2}``] in polar form where [`z_1=[$r1](\cos([$theta1]^\circ)+i\sin([$theta1]^\circ))`] and [`z_2=[$r2](\cos([$theta2]^\circ)+i\sin([$theta2]^\circ))`]. +Find [``\frac{z_1}{ z_2}``] in polar form where [`z_1=[$r1](\cos([$theta1]^\circ)+i\sin([$theta1]^\circ))`] and [`z_2=[$r2](\cos([$theta2]^\circ)+i\sin([$theta2]^\circ))`]. Polar form is [` r(\cos(\theta)+i\sin(\theta)) `], with [` r>0, 0^\circ \leq \theta \leq 360^\circ`]. -[``\frac{z_1}{ z_2}=``] [______________________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[``\frac{z_1}{ z_2}=``] [______________________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_35.pg b/Contrib/CCCS/PreCalculus/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_35.pg index bdeab033a0..afc173b4ac 100644 --- a/Contrib/CCCS/PreCalculus/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_35.pg +++ b/Contrib/CCCS/PreCalculus/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_35.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -46,8 +46,8 @@ $ans2 = $r**3*cos(3*$theta); $ans3 = $r**3*sin(3*$theta); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -56,17 +56,17 @@ TeX => # Main text BEGIN_PGML -Find [`z^3`] in polar form and rectangular form where [`z=[$r](\cos([$theta]^\circ)+i\sin([$theta]^\circ))`]. +Find [`z^3`] in polar form and rectangular form where [`z=[$r](\cos([$theta]^\circ)+i\sin([$theta]^\circ))`]. Polar form is [` r(\cos(\theta)+i\sin(\theta)) `], with [` r>0, 0^\circ \leq \theta \leq 360^\circ`]. -Polar form: [`z^3=`] [______________________________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +Polar form: [`z^3=`] [______________________________]{$ans1} [@ helpLink("numbers") @]* -Rectangular form: [`z^3=`] [____]{$ans2}+[____]{$ans3}[`i`] +Rectangular form: [`z^3=`] [____]{$ans2}+[____]{$ans3}[`i`] -[$video]* +[$video]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_37.pg b/Contrib/CCCS/PreCalculus/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_37.pg index e973bfcdff..1bf808fef7 100644 --- a/Contrib/CCCS/PreCalculus/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_37.pg +++ b/Contrib/CCCS/PreCalculus/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_37.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -50,14 +50,14 @@ $ans3 = $r**2*sin(2*$theta); # Main text BEGIN_PGML -Find [`z^2`] in polar form and rectangular form where [`z=[$r](\cos([$theta]^\circ)+i\sin([$theta]^\circ))`]. +Find [`z^2`] in polar form and rectangular form where [`z=[$r](\cos([$theta]^\circ)+i\sin([$theta]^\circ))`]. Polar form is [` r(\cos(\theta)+i\sin(\theta)) `], with [` r>0, 0^\circ \leq \theta \leq 360^\circ`]. -Polar form: [`z^2=`] [______________________________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +Polar form: [`z^2=`] [______________________________]{$ans1} [@ helpLink("numbers") @]* -Rectangular form: [`z^2=`] [____]{$ans2}+[____]{$ans3}[`i`] +Rectangular form: [`z^2=`] [____]{$ans2}+[____]{$ans3}[`i`] END_PGML diff --git a/Contrib/CCCS/PreCalculus/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_38.pg b/Contrib/CCCS/PreCalculus/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_38.pg index 41330953f2..42f7e0e78a 100644 --- a/Contrib/CCCS/PreCalculus/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_38.pg +++ b/Contrib/CCCS/PreCalculus/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_38.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -37,13 +37,13 @@ Context("Complex"); # random integer to choose an angle $n=random(0,3,1); -# Array of 8 angles +# Array of 8 angles @latexfraction=("pi/6" ,"pi/3", "(2pi)/3" , "(5pi)/6"); # Selecting angle for PGML $thetadisp = $latexfraction[$n] ; -# Array of 8 angles +# Array of 8 angles @fraction=(pi/6 , pi/3, 2*pi/3, 5*pi/6); # Selecting angle for Compute @@ -62,14 +62,14 @@ $ans3 = Compute("$y"); # Main text BEGIN_PGML -Find [`z^2 `] in polar form and rectangular form where `z=[$r](\cos([$thetadisp])+i\sin([$thetadisp]))`. +Find [`z^2 `] in polar form and rectangular form where `z=[$r](\cos([$thetadisp])+i\sin([$thetadisp]))`. Polar form is [` r(\cos(\theta)+i\sin(\theta)) `], with [` r>0, 0 \leq \theta \leq 2\pi`]. -Polar form: [`z^2 =`] [______________________________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +Polar form: [`z^2 =`] [______________________________]{$ans1} [@ helpLink("numbers") @]* -Rectangular form: [`z^2 = `] [______]{$ans2} [`+`] [______]{$ans3}[`i`] [` \ \ \ \ `] [@ AnswerFormatHelp("numbers") @]* +Rectangular form: [`z^2 = `] [______]{$ans2} [`+`] [______]{$ans3}[`i`] [` \ \ \ \ `] [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_39.pg b/Contrib/CCCS/PreCalculus/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_39.pg index 85603c4d2b..6e29fb939b 100644 --- a/Contrib/CCCS/PreCalculus/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_39.pg +++ b/Contrib/CCCS/PreCalculus/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_39.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -37,13 +37,13 @@ Context("Complex"); # random integer to choose an angle $n=random(0,3,1); -# Array of 8 angles +# Array of 8 angles @latexfraction=("pi/6" ,"pi/3", "(3pi)/16" , "(5pi)/24"); # Selecting angle for PGML $thetadisp = $latexfraction[$n] ; -# Array of 8 angles +# Array of 8 angles @fraction=(pi/6 , pi/3, 3*pi/(16), 5*pi/(24)); # Selecting angle for Compute @@ -62,14 +62,14 @@ $ans3 = Compute("$y"); # Main text BEGIN_PGML -Find [`z^4 `] in polar form and rectangular form where `z=[$r](\cos([$thetadisp])+i\sin([$thetadisp]))`. +Find [`z^4 `] in polar form and rectangular form where `z=[$r](\cos([$thetadisp])+i\sin([$thetadisp]))`. Polar form is [` r(\cos(\theta)+i\sin(\theta)) `], with [` r>0, 0 \leq \theta \leq 2\pi`]. -Polar form: [`z^4 =`] [______________________________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +Polar form: [`z^4 =`] [______________________________]{$ans1} [@ helpLink("numbers") @]* -Rectangular form: [`z^4 = `] [______]{$ans2} [`+`] [______]{$ans3}[`i`] [` \ \ \ \ `] [@ AnswerFormatHelp("numbers") @]* +Rectangular form: [`z^4 = `] [______]{$ans2} [`+`] [______]{$ans3}[`i`] [` \ \ \ \ `] [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_41.pg b/Contrib/CCCS/PreCalculus/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_41.pg index a1c36a759d..9b884da191 100644 --- a/Contrib/CCCS/PreCalculus/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_41.pg +++ b/Contrib/CCCS/PreCalculus/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_41.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -50,16 +50,16 @@ $ans3 = Compute("$r^(1/3)(cos($theta/3+2*360/3)+i*sin($theta/3+2*360/3))"); #for # Main text BEGIN_PGML -Evaluate the cube roots of [`z`] in polar form where [`z=[$r](\cos([$theta]^\circ)+i\sin([$theta]^\circ))`]. +Evaluate the cube roots of [`z`] in polar form where [`z=[$r](\cos([$theta]^\circ)+i\sin([$theta]^\circ))`]. Polar form is [` r(\cos(\theta)+i\sin(\theta)) `], with [` r>0, 0^\circ \leq \theta \leq 360^\circ`]. -For [`k=0`]: [______________________________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +For [`k=0`]: [______________________________]{$ans1} [@ helpLink("numbers") @]* -For [`k=1`]: [______________________________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +For [`k=1`]: [______________________________]{$ans2} [@ helpLink("numbers") @]* -For [`k=2`]: [______________________________]{$ans3} [@ AnswerFormatHelp("numbers") @]* +For [`k=2`]: [______________________________]{$ans3} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_42.pg b/Contrib/CCCS/PreCalculus/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_42.pg index bd221553f4..e404ceeef7 100644 --- a/Contrib/CCCS/PreCalculus/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_42.pg +++ b/Contrib/CCCS/PreCalculus/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_42.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -49,14 +49,14 @@ $ans2 = Compute("$r^(1/2)(cos($theta/2+1*360/2)+i*sin($theta/2+1*360/2))"); #for # Main text BEGIN_PGML -Evaluate the square roots of [`z`] in polar form where [`z=[$r](\cos([$theta]^\circ)+i\sin([$theta]^\circ))`]. +Evaluate the square roots of [`z`] in polar form where [`z=[$r](\cos([$theta]^\circ)+i\sin([$theta]^\circ))`]. Polar form is [` r(\cos(\theta)+i\sin(\theta)) `], with [` r>0, 0^\circ \leq \theta \leq 360^\circ`]. -For [`k=0`]: [______________________________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +For [`k=0`]: [______________________________]{$ans1} [@ helpLink("numbers") @]* -For [`k=1`]: [______________________________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +For [`k=1`]: [______________________________]{$ans2} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_44.pg b/Contrib/CCCS/PreCalculus/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_44.pg index 915a733fe6..ae4b94787d 100644 --- a/Contrib/CCCS/PreCalculus/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_44.pg +++ b/Contrib/CCCS/PreCalculus/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_44.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -37,13 +37,13 @@ Context("Complex"); # random integer to choose an angle $n=random(0,6,1); -# Array of 8 angles +# Array of 8 angles @latexfraction=("pi/3" ,"(2pi)/3", "(3pi)/4" , "(5pi)/6","(7pi)/6","(5pi)/4","(4pi)/3"); # Selecting angle for PGML $thetadisp = $latexfraction[$n] ; -# Array of 8 angles +# Array of 8 angles @fraction=(pi/3 , 2*pi/3, 3*pi/4, 5*pi/6, 7*pi/6, 5*pi/4, 4*pi/3); # Selecting angle for Compute @@ -58,13 +58,13 @@ $ans2 = Compute("$r^(1/2)*(cos($theta/2+pi)+i*sin($theta/2+pi))"); #for k =1 # Main text BEGIN_PGML -Evaluate the square roots of [`z`] in polar form where `z=[$r](\cos([$thetadisp])+i\sin([$thetadisp]))`. +Evaluate the square roots of [`z`] in polar form where `z=[$r](\cos([$thetadisp])+i\sin([$thetadisp]))`. Polar form is [` r(\cos(\theta)+i\sin(\theta)) `], with [` r>0, 0 \leq \theta \leq 2\pi`]. -For [`k=0`] [______________________________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +For [`k=0`] [______________________________]{$ans1} [@ helpLink("numbers") @]* -For [`k=1`] [______________________________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +For [`k=1`] [______________________________]{$ans2} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_6.pg b/Contrib/CCCS/PreCalculus/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_6.pg index 82ac427442..90e34a4d1e 100644 --- a/Contrib/CCCS/PreCalculus/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_6.pg +++ b/Contrib/CCCS/PreCalculus/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_6.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -47,7 +47,7 @@ BEGIN_PGML Find the absolute value of the complex number [`[$z] `] . -[_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_8.pg b/Contrib/CCCS/PreCalculus/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_8.pg index 813d033b82..6f48b9a75d 100644 --- a/Contrib/CCCS/PreCalculus/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_8.pg +++ b/Contrib/CCCS/PreCalculus/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_8.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -47,7 +47,7 @@ BEGIN_PGML Find the absolute value of the complex number [`[$z] `] . -[_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_11.pg b/Contrib/CCCS/PreCalculus/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_11.pg index 94bbf2505a..accb969d87 100644 --- a/Contrib/CCCS/PreCalculus/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_11.pg +++ b/Contrib/CCCS/PreCalculus/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_11.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserPopUp.pl", diff --git a/Contrib/CCCS/PreCalculus/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_16.pg b/Contrib/CCCS/PreCalculus/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_16.pg index c789bb6cf6..8cad42c2cb 100644 --- a/Contrib/CCCS/PreCalculus/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_16.pg +++ b/Contrib/CCCS/PreCalculus/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_16.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -47,8 +47,8 @@ $w = $m*i+$n*j; $ans = $u+$v-$w; $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -60,9 +60,9 @@ TeX => BEGIN_PGML Use the vectors [`\mathbf{u}=[$u]`], [`\mathbf{v}=[$v]`], and [`\mathbf{w}=[$w]`] to find -[` \mathbf{u}+(\mathbf{v}-\mathbf{w}) = `] [_______________]{$ans} [@ AnswerFormatHelp("vectors") @]* +[` \mathbf{u}+(\mathbf{v}-\mathbf{w}) = `] [_______________]{$ans} [@ helpLink("vectors") @]* -[$video]* +[$video]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_17.pg b/Contrib/CCCS/PreCalculus/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_17.pg index 51bc076654..56d5ce1020 100644 --- a/Contrib/CCCS/PreCalculus/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_17.pg +++ b/Contrib/CCCS/PreCalculus/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_17.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,7 +51,7 @@ $ans = $p*$v+$q*$u; BEGIN_PGML Use the vectors [`\mathbf{u}=[$u]`] and [`\mathbf{v}=[$v]`] to find -[` [$p]\mathbf{v}+[$q]\mathbf{u} = `] [_______________]{$ans} [@ AnswerFormatHelp("vectors") @]* +[` [$p]\mathbf{v}+[$q]\mathbf{u} = `] [_______________]{$ans} [@ helpLink("vectors") @]* END_PGML ############################ diff --git a/Contrib/CCCS/PreCalculus/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_19.pg b/Contrib/CCCS/PreCalculus/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_19.pg index e42a0e5bd8..c23c1e5922 100644 --- a/Contrib/CCCS/PreCalculus/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_19.pg +++ b/Contrib/CCCS/PreCalculus/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_19.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -53,11 +53,11 @@ $ans3 = $p*$u - $q*$v; BEGIN_PGML Use the vectors [`\mathbf{u}=[$u]`] and [`\mathbf{v}=[$v]`] to find the following: -[` \mathbf{u}+\mathbf{v} = `] [_______________]{$ans1} [@ AnswerFormatHelp("vectors") @]* +[` \mathbf{u}+\mathbf{v} = `] [_______________]{$ans1} [@ helpLink("vectors") @]* -[` \mathbf{u}-\mathbf{v} = `] [_______________]{$ans2} [@ AnswerFormatHelp("vectors") @]* +[` \mathbf{u}-\mathbf{v} = `] [_______________]{$ans2} [@ helpLink("vectors") @]* -[` [$p]\mathbf{u}-[$q]\mathbf{v} = `] [_______________]{$ans3} [@ AnswerFormatHelp("vectors") @]* +[` [$p]\mathbf{u}-[$q]\mathbf{v} = `] [_______________]{$ans3} [@ helpLink("vectors") @]* END_PGML ############################ diff --git a/Contrib/CCCS/PreCalculus/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_20.pg b/Contrib/CCCS/PreCalculus/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_20.pg index f0205c7320..8bc1260100 100644 --- a/Contrib/CCCS/PreCalculus/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_20.pg +++ b/Contrib/CCCS/PreCalculus/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_20.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -45,7 +45,7 @@ $ans1 = (1/2)*$v; BEGIN_PGML Let [`\mathbf{v}=[$v]`]. Find a vector [`\mathbf{u}`] that is half the length of [`\mathbf{v}`] and points in the same direction as [`\mathbf{v}`]. -[` \mathbf{u} = `] [_______________]{$ans1} [@ AnswerFormatHelp("vectors") @]* +[` \mathbf{u} = `] [_______________]{$ans1} [@ helpLink("vectors") @]* END_PGML ############################ diff --git a/Contrib/CCCS/PreCalculus/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_28.pg b/Contrib/CCCS/PreCalculus/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_28.pg index 879b107ea6..3fdeb8070f 100644 --- a/Contrib/CCCS/PreCalculus/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_28.pg +++ b/Contrib/CCCS/PreCalculus/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_28.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -47,9 +47,9 @@ if($d>0){$ans2 = Compute("pi/2");} BEGIN_PGML Find the magnitude and direction of [`\mathbf{u}=[$u]`] where [`0 \leq \theta < 2\pi`]. -[` |\mathbf{u}| = `] [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +[` |\mathbf{u}| = `] [_______________]{$ans1} [@ helpLink("numbers") @]* -[` \theta = `] [_______________]{$ans2} [@ AnswerFormatHelp("angles") @]* +[` \theta = `] [_______________]{$ans2} [@ helpLink("angles") @]* END_PGML ############################ diff --git a/Contrib/CCCS/PreCalculus/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_30.pg b/Contrib/CCCS/PreCalculus/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_30.pg index eb5b50eb4b..2d899e4a99 100644 --- a/Contrib/CCCS/PreCalculus/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_30.pg +++ b/Contrib/CCCS/PreCalculus/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_30.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -46,9 +46,9 @@ $ans2 = Compute("arctan($d/$c)+2pi"); BEGIN_PGML Find the magnitude and direction of [`\mathbf{u}=[$u]`] where [`0 \leq \theta < 2\pi`]. -[` |\mathbf{u}| = `] [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +[` |\mathbf{u}| = `] [_______________]{$ans1} [@ helpLink("numbers") @]* -[` \theta = `] [_______________]{$ans2} [@ AnswerFormatHelp("angles") @]* +[` \theta = `] [_______________]{$ans2} [@ helpLink("angles") @]* END_PGML ############################ diff --git a/Contrib/CCCS/PreCalculus/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_32.pg b/Contrib/CCCS/PreCalculus/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_32.pg index e31c2a6e31..ae9bc25592 100644 --- a/Contrib/CCCS/PreCalculus/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_32.pg +++ b/Contrib/CCCS/PreCalculus/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_32.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,7 +48,7 @@ $ans = $v.$u; BEGIN_PGML Use the vectors [`\mathbf{u}=[$u]`] and [`\mathbf{v}=[$v]`] to find -[` \mathbf{u} \cdot \mathbf{v} = `] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[` \mathbf{u} \cdot \mathbf{v} = `] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML ############################ diff --git a/Contrib/CCCS/PreCalculus/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_33.pg b/Contrib/CCCS/PreCalculus/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_33.pg index 8f311675f0..a4e47f79ef 100644 --- a/Contrib/CCCS/PreCalculus/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_33.pg +++ b/Contrib/CCCS/PreCalculus/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_33.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,7 +48,7 @@ $ans = $v.$u; BEGIN_PGML Use the vectors [`\mathbf{u}=[$u]`] and [`\mathbf{v}=[$v]`] to find -[` \mathbf{u} \cdot \mathbf{v} = `] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[` \mathbf{u} \cdot \mathbf{v} = `] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML ############################ diff --git a/Contrib/CCCS/PreCalculus/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_51.pg b/Contrib/CCCS/PreCalculus/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_51.pg index 03520a1ebe..216f197875 100644 --- a/Contrib/CCCS/PreCalculus/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_51.pg +++ b/Contrib/CCCS/PreCalculus/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_51.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -38,13 +38,13 @@ $lv = random(2,9,1); # random integer to choose angle $n=random(0,5,1); -# Array of 6 angles +# Array of 6 angles @latexangle=("pi/3" ,"pi/4" ,"pi/6", "(2pi)/3" , "(3pi)/4", "(5pi)/6"); # Selecting angle for PGML $thetadisp = $latexangle[$n] ; -# Array of 6 angles +# Array of 6 angles @angle=(pi/3 ,pi/4 ,pi/6, 2*pi/3, 3*pi/4, 5*pi/6); # Selecting angle for Compute @@ -54,8 +54,8 @@ $ans = Vector($lv*cos($theta),$lv*sin($theta)); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -69,9 +69,9 @@ Use the given magnitude and direction to find the vector [`\mathbf{v}`] in stand [`|\mathbf{v}|=[$lv]`], [`\theta =`] `[$thetadisp]` -[` \mathbf{v} = `] [________________________]{$ans} [@ AnswerFormatHelp("vectors") @]* +[` \mathbf{v} = `] [________________________]{$ans} [@ helpLink("vectors") @]* -[$video]* +[$video]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_53.pg b/Contrib/CCCS/PreCalculus/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_53.pg index fd7601c140..7cb413dfa4 100644 --- a/Contrib/CCCS/PreCalculus/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_53.pg +++ b/Contrib/CCCS/PreCalculus/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_53.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -38,13 +38,13 @@ $lv = random(2,9,1); # random integer to choose angle $n=random(0,5,1); -# Array of 6 angles +# Array of 6 angles @latexangle=("(4pi)/3" ,"(5pi)/4" ,"(7pi)/6", "(5pi)/3" , "(7pi)/4", "(11pi)/6"); # Selecting angle for PGML $thetadisp = $latexangle[$n] ; -# Array of 6 angles +# Array of 6 angles @angle=(4*pi/3 ,5*pi/4 ,7*pi/6, 5*pi/3, 7*pi/4, 11*pi/6); # Selecting angle for Compute @@ -60,7 +60,7 @@ Use the given magnitude and direction to find the vector [`\mathbf{v}`] in stand [`|\mathbf{v}|=[$lv]`], [`\theta =`] `[$thetadisp]` -[` \mathbf{v} = `] [________________________]{$ans} [@ AnswerFormatHelp("vectors") @]* +[` \mathbf{v} = `] [________________________]{$ans} [@ helpLink("vectors") @]* END_PGML ############################ diff --git a/Contrib/CCCS/PreCalculus/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_56.pg b/Contrib/CCCS/PreCalculus/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_56.pg index a70681ffce..4fff7069cb 100644 --- a/Contrib/CCCS/PreCalculus/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_56.pg +++ b/Contrib/CCCS/PreCalculus/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_56.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -49,12 +49,12 @@ Context()->flags->set( # Main text BEGIN_PGML -A [`[$lb]`] pound box is resting on a ramp that is inclined [`[$theta]^\circ`]. Rounding to the nearest tenth, answer the questions below. +A [`[$lb]`] pound box is resting on a ramp that is inclined [`[$theta]^\circ`]. Rounding to the nearest tenth, answer the questions below. -a) Find the magnitude of the normal (perpendicular) component of the force. [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +a) Find the magnitude of the normal (perpendicular) component of the force. [_______________]{$ans1} [@ helpLink("numbers") @]* -b) Find the magnitude of the component of the force that is parallel to the ramp. [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +b) Find the magnitude of the component of the force that is parallel to the ramp. [_______________]{$ans2} [@ helpLink("numbers") @]* END_PGML ############################ # Solution diff --git a/Contrib/CCCS/PreCalculus/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_58.pg b/Contrib/CCCS/PreCalculus/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_58.pg index fec196ef4f..96226ba36a 100644 --- a/Contrib/CCCS/PreCalculus/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_58.pg +++ b/Contrib/CCCS/PreCalculus/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_58.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -49,12 +49,12 @@ Context()->flags->set( # Main text BEGIN_PGML -Find the magnitude of the horizontal and vertical components of the vector with magnitude [`[$lb]`] pounds pointed in a direction of [`[$theta]^\circ`]. Round to the nearest hundredth. +Find the magnitude of the horizontal and vertical components of the vector with magnitude [`[$lb]`] pounds pointed in a direction of [`[$theta]^\circ`]. Round to the nearest hundredth. -a) Horizontal component magnitude: [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +a) Horizontal component magnitude: [_______________]{$ans1} [@ helpLink("numbers") @]* -b) Vertical component magnitude: [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +b) Vertical component magnitude: [_______________]{$ans2} [@ helpLink("numbers") @]* END_PGML ############################ # Solution diff --git a/Contrib/CCCS/PreCalculus/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_61.pg b/Contrib/CCCS/PreCalculus/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_61.pg index 5678161119..06887bf5b0 100644 --- a/Contrib/CCCS/PreCalculus/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_61.pg +++ b/Contrib/CCCS/PreCalculus/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_61.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -51,12 +51,12 @@ Context()->flags->set( # Main text BEGIN_PGML -A woman leaves home and walks [`[$a]`] miles west, then [`[$b]`] miles southwest. How far from home is she, and in what direction must she walk to head directly home? Round to the nearest tenth. +A woman leaves home and walks [`[$a]`] miles west, then [`[$b]`] miles southwest. How far from home is she, and in what direction must she walk to head directly home? Round to the nearest tenth. -a) Distance from home: [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +a) Distance from home: [_______________]{$ans1} [@ helpLink("numbers") @]* -b) Direction to walk: [_______________]{$ans2} [@ AnswerFormatHelp("angles") @]* +b) Direction to walk: [_______________]{$ans2} [@ helpLink("angles") @]* END_PGML ############################ # Solution diff --git a/Contrib/CCCS/PreCalculus/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_67.pg b/Contrib/CCCS/PreCalculus/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_67.pg index 5289ec890b..60a4353c65 100644 --- a/Contrib/CCCS/PreCalculus/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_67.pg +++ b/Contrib/CCCS/PreCalculus/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_67.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -52,12 +52,12 @@ Context()->flags->set( # Main text BEGIN_PGML -An airplane is heading north at an airspeed of [`[$a]`] km/hr, but there is a wind blowing from the southwest at [`[$b]`] km/hr. How many degrees off course will the plane end up flying, and what is the plane's speed relative to the ground? Round to the nearest tenth. +An airplane is heading north at an airspeed of [`[$a]`] km/hr, but there is a wind blowing from the southwest at [`[$b]`] km/hr. How many degrees off course will the plane end up flying, and what is the plane's speed relative to the ground? Round to the nearest tenth. -a) Degrees off course: [____________________]{$ans1} [@ AnswerFormatHelp("angles") @]* +a) Degrees off course: [____________________]{$ans1} [@ helpLink("angles") @]* -b) Speed relative to ground: [____________________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +b) Speed relative to ground: [____________________]{$ans2} [@ helpLink("numbers") @]* END_PGML ############################ # Solution diff --git a/Contrib/CCCS/PreCalculus/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_69.pg b/Contrib/CCCS/PreCalculus/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_69.pg index 810427406b..c6d0d53e68 100644 --- a/Contrib/CCCS/PreCalculus/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_69.pg +++ b/Contrib/CCCS/PreCalculus/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_69.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -48,10 +48,10 @@ Context()->flags->set( # Main text BEGIN_PGML -An airplane needs to head due north, but there is a wind blowing from the southwest at [`[$b]`] km/hr. The plane flies with an airspeed of [`[$a]`] km/hr. To end up flying due north, how many degrees west of north will the pilot need to fly the plane? Round to the nearest tenth. +An airplane needs to head due north, but there is a wind blowing from the southwest at [`[$b]`] km/hr. The plane flies with an airspeed of [`[$a]`] km/hr. To end up flying due north, how many degrees west of north will the pilot need to fly the plane? Round to the nearest tenth. -[____________________]{$ans1} [@ AnswerFormatHelp("angles") @]* +[____________________]{$ans1} [@ helpLink("angles") @]* END_PGML ############################ diff --git a/Contrib/CCCS/PreCalculus/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_9.pg b/Contrib/CCCS/PreCalculus/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_9.pg index bd336a8a5b..3464ab2ec4 100644 --- a/Contrib/CCCS/PreCalculus/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_9.pg +++ b/Contrib/CCCS/PreCalculus/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_9.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserPopUp.pl", diff --git a/Contrib/CCCS/PreCalculus/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_EX16_1.pg b/Contrib/CCCS/PreCalculus/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_EX16_1.pg index 6068a0af35..a33d1b9b4e 100644 --- a/Contrib/CCCS/PreCalculus/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_EX16_1.pg +++ b/Contrib/CCCS/PreCalculus/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_EX16_1.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -54,7 +54,7 @@ $ans = Compute("$theta"); BEGIN_PGML Find the angle, [`\theta`], in radians between the vectors [`\mathbf{u}=[$u]`] and [`\mathbf{v}=[$v]`]. -[` \theta = `] [_______________]{$ans} [@ AnswerFormatHelp("angles") @]* +[` \theta = `] [_______________]{$ans} [@ helpLink("angles") @]* END_PGML ############################ diff --git a/Contrib/CCCS/PreCalculus/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_EX16_2.pg b/Contrib/CCCS/PreCalculus/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_EX16_2.pg index d23b7fe448..25f8188b87 100644 --- a/Contrib/CCCS/PreCalculus/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_EX16_2.pg +++ b/Contrib/CCCS/PreCalculus/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_EX16_2.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -53,7 +53,7 @@ $ans = Compute("$theta"); BEGIN_PGML Find the angle, [`\theta`], in radians between the vectors [`\mathbf{u}=[$u]`] and [`\mathbf{v}=[$v]`]. -[` \theta = `] [_______________]{$ans} [@ AnswerFormatHelp("angles") @]* +[` \theta = `] [_______________]{$ans} [@ helpLink("angles") @]* END_PGML ############################ diff --git a/Contrib/CCCS/PreCalculus/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_13.pg b/Contrib/CCCS/PreCalculus/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_13.pg index cb3d24ff6d..9c8e3ff30f 100644 --- a/Contrib/CCCS/PreCalculus/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_13.pg +++ b/Contrib/CCCS/PreCalculus/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_13.pg @@ -1,7 +1,7 @@ ## DESCRIPTION ## College Algebra, solving for y as a function of x ## ENDDESCRIPTION - + ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) @@ -11,74 +11,74 @@ ## Author(Brenda Forland; Edit: James Morski, 5/19/2017) ## MO(1) ## KEYWORDS('college algebra', 'y as a function of x') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", "parserAssignment.pl", "parserImplicitEquation.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); - + TEXT(beginproblem()); - + $showPartialCorrectAnswers = 1; - + ########################## # Setup - - + + Context("Numeric"); Context()->noreduce('(-x)-y','(-x)+y'); Context()->variables->add(y => 'Real'); - + $a=random(2,10); $b=random(1,10); $c=random(1,10); - - + + $f = Formula("$a*x")->reduce; $g = Formula("$c-$b*y")->reduce; - + $frac1=Compute("$a/$b"); $frac2=Compute("$c/$b"); - - + + $ans = Formula("-$frac1*x+$frac2"); - - + + ################################# # Main text - - + + BEGIN_PGML -Solve the equation [` [$f]=[$g] `] for [` y `] in terms of [`x`]. - -[`y=`] [_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* - - - +Solve the equation [` [$f]=[$g] `] for [` y `] in terms of [`x`]. + +[`y=`] [_______________]{$ans} [@ helpLink("formulas") @]* + + + END_PGML - - - + + + ################################# - + # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/PreCalculus/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_17.pg b/Contrib/CCCS/PreCalculus/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_17.pg index 9d32738c3e..0060420468 100644 --- a/Contrib/CCCS/PreCalculus/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_17.pg +++ b/Contrib/CCCS/PreCalculus/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_17.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "contextLimitedPowers.pl", "PGML.pl", @@ -48,8 +48,8 @@ Context("Numeric"); $ans=Compute(sqrt(($a-$c)**2+($b-$d)**2)); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -61,7 +61,7 @@ TeX => BEGIN_PGML Find the distance between [` [$pt1] `] and [` [$pt2] `]. Enter the distance as a radical or a decimal rounded to three decimal places. - [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* + [_______________]{$ans} [@ helpLink("numbers") @]* [$video]* diff --git a/Contrib/CCCS/PreCalculus/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_19.pg b/Contrib/CCCS/PreCalculus/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_19.pg index 6bfde52ec7..bbfff78111 100644 --- a/Contrib/CCCS/PreCalculus/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_19.pg +++ b/Contrib/CCCS/PreCalculus/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_19.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -56,7 +56,7 @@ $ans=Compute(sqrt(($a-$c)**2+($b-$d)**2)); BEGIN_PGML Find the distance between [` [$pt1] `] and [` [$pt2] `]. Enter the distance as a radical or a decimal rounded to three decimal places. -[_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/PreCalculus/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_23.pg b/Contrib/CCCS/PreCalculus/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_23.pg index 358bacb102..e40231c710 100644 --- a/Contrib/CCCS/PreCalculus/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_23.pg +++ b/Contrib/CCCS/PreCalculus/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_23.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -45,8 +45,8 @@ $pt2=Point("($c,$d)"); $midpt = List( Point("(($a+$c)/2,($b+$d)/2)")); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -56,12 +56,12 @@ TeX => # Main text BEGIN_PGML -Find the coordinates of the midpoint of the line segment that joins the two points [` [$pt1] `] and [` [$pt2] `]. +Find the coordinates of the midpoint of the line segment that joins the two points [` [$pt1] `] and [` [$pt2] `]. Enter a point as [` (a,b) `], -including the parentheses. +including the parentheses. -midpoint: [_______________]{$midpt} [@ AnswerFormatHelp("points") @]* +midpoint: [_______________]{$midpt} [@ helpLink("points") @]* [$video]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_25.pg b/Contrib/CCCS/PreCalculus/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_25.pg index 25f2e9023c..dc303487e9 100644 --- a/Contrib/CCCS/PreCalculus/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_25.pg +++ b/Contrib/CCCS/PreCalculus/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_25.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -49,11 +49,11 @@ $midpt = List( Point("(($a+$c)/2,($b+$d)/2)")); # Main text BEGIN_PGML -Find the coordinates of the midpoint of the line segment that joins the two points [` [$pt1] `] and [` [$pt2] `]. +Find the coordinates of the midpoint of the line segment that joins the two points [` [$pt1] `] and [` [$pt2] `]. -Enter a point as [` (a,b) `], including the parentheses. +Enter a point as [` (a,b) `], including the parentheses. -midpoint: [_______________]{$midpt} [@ AnswerFormatHelp("points") @]* +midpoint: [_______________]{$midpt} [@ helpLink("points") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_27.pg b/Contrib/CCCS/PreCalculus/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_27.pg index 540f7589dd..8eee91a6c0 100644 --- a/Contrib/CCCS/PreCalculus/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_27.pg +++ b/Contrib/CCCS/PreCalculus/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_27.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -40,11 +40,11 @@ $origin = List( Point("(0,0)")); # Main text BEGIN_PGML -What are the coordinates of the origin? +What are the coordinates of the origin? -Enter a point as [` (a,b) `], including the parentheses. +Enter a point as [` (a,b) `], including the parentheses. - [_______________]{$origin} [@ AnswerFormatHelp("points") @]* + [_______________]{$origin} [@ helpLink("points") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_28.pg b/Contrib/CCCS/PreCalculus/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_28.pg index da0eb1284f..a908e4c84e 100644 --- a/Contrib/CCCS/PreCalculus/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_28.pg +++ b/Contrib/CCCS/PreCalculus/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_28.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -43,7 +43,7 @@ $ans=Compute(0); BEGIN_PGML If a point is located on the y-axis, what is the x-coordinate? - [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* + [_______________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/PreCalculus/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_29.pg b/Contrib/CCCS/PreCalculus/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_29.pg index 16465330c1..c739a2e023 100644 --- a/Contrib/CCCS/PreCalculus/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_29.pg +++ b/Contrib/CCCS/PreCalculus/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_29.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -42,7 +42,7 @@ $ans=Compute(0); BEGIN_PGML If a point is located on the x-axis, what is the y-coordinate? -[_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_30.pg b/Contrib/CCCS/PreCalculus/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_30.pg index b55f6376eb..b940e5fe20 100644 --- a/Contrib/CCCS/PreCalculus/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_30.pg +++ b/Contrib/CCCS/PreCalculus/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_30.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserPopUp.pl", "PGML.pl", @@ -87,8 +87,8 @@ $popup3 = PopUp( ); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -102,7 +102,7 @@ BEGIN_TEXT Match the points A, B, and C with their coordinates. $BR $BR -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>400,height=>400,tex_size=>800 ) \} $BR (Click on graph to enlarge) diff --git a/Contrib/CCCS/PreCalculus/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_34.pg b/Contrib/CCCS/PreCalculus/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_34.pg index cc3d8dcc22..1b609cb5c8 100644 --- a/Contrib/CCCS/PreCalculus/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_34.pg +++ b/Contrib/CCCS/PreCalculus/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_34.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "PGchoicemacros.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserPopUp.pl", "PGML.pl", @@ -105,21 +105,21 @@ BEGIN_PGML Name the quadrant, or axis, in which the following points are located. -1. ([$a],[$b]): [_________________]{$popup1} +1. ([$a],[$b]): [_________________]{$popup1} -2. ([$c],[$d]): [_________________]{$popup2} +2. ([$c],[$d]): [_________________]{$popup2} -3. ([$e],[$f]): [_________________]{$popup3} +3. ([$e],[$f]): [_________________]{$popup3} -4. ([$g],[$h]): [_________________]{$popup4} +4. ([$g],[$h]): [_________________]{$popup4} -5. ([$j],[$i]): [_________________]{$popup5} +5. ([$j],[$i]): [_________________]{$popup5} -6. ([$j],[$g]): [_________________]{$popup6} +6. ([$j],[$g]): [_________________]{$popup6} -7. ([$m],[$n]): [_________________]{$popup7} +7. ([$m],[$n]): [_________________]{$popup7} -8. ([$o],[$p]): [_________________]{$popup8} +8. ([$o],[$p]): [_________________]{$popup8} END_PGML diff --git a/Contrib/CCCS/PreCalculus/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_43.pg b/Contrib/CCCS/PreCalculus/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_43.pg index 32d26827dd..648eeb27e9 100644 --- a/Contrib/CCCS/PreCalculus/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_43.pg +++ b/Contrib/CCCS/PreCalculus/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_43.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGgraphmacros.pl", "PGstandard.pl", -"AnswerFormatHelp.pl", + "MathObjects.pl", "contextLimitedPoint.pl", "PGML.pl", @@ -91,7 +91,7 @@ BEGIN_PGML Find the distance between the two endpoints for the line segment shown in the graph. Enter the distance as a radical or a decimal rounded to four decimal places. -[_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/PreCalculus/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_44.pg b/Contrib/CCCS/PreCalculus/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_44.pg index a1dd3a1b0b..9762c27665 100644 --- a/Contrib/CCCS/PreCalculus/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_44.pg +++ b/Contrib/CCCS/PreCalculus/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_44.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGgraphmacros.pl", "PGstandard.pl", -"AnswerFormatHelp.pl", + "MathObjects.pl", "contextLimitedPoint.pl", "PGML.pl", @@ -80,10 +80,10 @@ BEGIN_PGML -Find the midpoint between the two endpoints for the line segment shown in the graph. Enter a point as [` (a,b) `], +Find the midpoint between the two endpoints for the line segment shown in the graph. Enter a point as [` (a,b) `], including the parentheses. -[_______________]{$midpt} [@ AnswerFormatHelp("points") @]* +[_______________]{$midpt} [@ helpLink("points") @]* diff --git a/Contrib/CCCS/PreCalculus/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_45.pg b/Contrib/CCCS/PreCalculus/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_45.pg index 87833569ff..d4721584bf 100644 --- a/Contrib/CCCS/PreCalculus/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_45.pg +++ b/Contrib/CCCS/PreCalculus/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_45.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGgraphmacros.pl", "PGstandard.pl", -"AnswerFormatHelp.pl", + "MathObjects.pl", "contextLimitedPoint.pl", "PGML.pl", @@ -79,7 +79,7 @@ BEGIN_PGML Find the distance between the point [` [$pt1] `] and the origin. Enter the distance as a radical or a decimal rounded to four decimal places. -[_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/PreCalculus/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_5.pg b/Contrib/CCCS/PreCalculus/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_5.pg index 3c353127e0..f538a4efaf 100644 --- a/Contrib/CCCS/PreCalculus/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_5.pg +++ b/Contrib/CCCS/PreCalculus/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_5.pg @@ -21,9 +21,9 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", - "contextFraction.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", ); @@ -34,25 +34,25 @@ $showPartialCorrectAnswers = 1; ########################### # Setup - + $a=random(1,13); $b=random(1,5); - + Context("Numeric"); - + $frac=Compute("$b/$a"); - + $f = Compute("-$a*x+$b"); - + Context("Point"); - + $xint = List( Point("($frac,0)")); - + $yint = List( Point("(0,$b)") ); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -63,13 +63,13 @@ TeX => BEGIN_PGML Find the x-intercept and y-intercept -of [` y = [$f] `]. +of [` y = [$f] `]. Enter a point as [` (a,b) `], -including the parentheses. +including the parentheses. -x-intercept: [__________________]{$xint} [@ AnswerFormatHelp("points") @]* -y-intercept: [__________________]{$yint} [@ AnswerFormatHelp("points") @]* +x-intercept: [__________________]{$xint} [@ helpLink("points") @]* +y-intercept: [__________________]{$yint} [@ helpLink("points") @]* [$video]* diff --git a/Contrib/CCCS/PreCalculus/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_54.pg b/Contrib/CCCS/PreCalculus/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_54.pg index 7ca3d3b98c..c6d3d90816 100644 --- a/Contrib/CCCS/PreCalculus/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_54.pg +++ b/Contrib/CCCS/PreCalculus/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_54.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGgraphmacros.pl", "PGstandard.pl", -"AnswerFormatHelp.pl", + "MathObjects.pl", "contextLimitedPoint.pl", "PGML.pl", @@ -56,11 +56,11 @@ BEGIN_PGML A man drove [` [$a] `] miles directly east from his home, made a left turn at an intersection, and then traveled [` [$b] `] miles due north to his place of work. If a road was made directly from his home to his place of work, what would its distance be? -[_______________]{$ans1} miles [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans1} miles [@ helpLink("numbers") @]* If the road was made as described above, how much shorter would the man's one-way trip be every day? -[_______________]{$ans2} miles [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans2} miles [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_63.pg b/Contrib/CCCS/PreCalculus/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_63.pg index 7e70447ba2..0c2d3ab9fd 100644 --- a/Contrib/CCCS/PreCalculus/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_63.pg +++ b/Contrib/CCCS/PreCalculus/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_63.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGgraphmacros.pl", "PGstandard.pl", -"AnswerFormatHelp.pl", + "MathObjects.pl", "contextLimitedPoint.pl", "PGML.pl", @@ -55,10 +55,10 @@ BEGIN_PGML A man on top of a building wants to have a wire extended to a point [`a= [$a] `] ft from the base of a building. How long will the wire have to be if the building is [`b= [$b] `] ft tall? Round your answer to at least 2 decimal points. ->>[@ image("2_1_63.png", width=>500, height=>500) +>>[@ image("2_1_63.png", width=>500, height=>500) @]*<< -[_______________]{$ans} ft [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans} ft [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/PreCalculus/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_9.pg b/Contrib/CCCS/PreCalculus/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_9.pg index fe53d3846e..eef4408a67 100644 --- a/Contrib/CCCS/PreCalculus/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_9.pg +++ b/Contrib/CCCS/PreCalculus/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_9.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserImplicitEquation.pl", "PGML.pl", @@ -59,15 +59,15 @@ $yint = List( Point("(0,$c/$b)") ); Context()->texStrings; BEGIN_PGML Enter the x-intercept(s) and y-intercept(s) -of [` [$f]=[$g] `]. +of [` [$f]=[$g] `]. Enter a point as [` (a,b) `], -including the parentheses. If there is more -than one correct answer, enter a comma +including the parentheses. If there is more +than one correct answer, enter a comma separated list of points. -x-intercept(s): [_______________]{$xint} [@ AnswerFormatHelp("points") @]* -y-intercept(s): [_______________]{$yint} [@ AnswerFormatHelp("points") @]* +x-intercept(s): [_______________]{$xint} [@ helpLink("points") @]* +y-intercept(s): [_______________]{$yint} [@ helpLink("points") @]* diff --git a/Contrib/CCCS/PreCalculus/2.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_21.pg b/Contrib/CCCS/PreCalculus/2.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_21.pg index f818d98da8..19b246ad8d 100644 --- a/Contrib/CCCS/PreCalculus/2.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_21.pg +++ b/Contrib/CCCS/PreCalculus/2.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_21.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,9 +48,9 @@ $x1 = $z * $w; # Main text BEGIN_PGML -Evaluate [` ([$z]) ([$w]) `] and express as a simplified complex number [`a+bi`]. +Evaluate [` ([$z]) ([$w]) `] and express as a simplified complex number [`a+bi`]. - [_______________]{$x1} [@ AnswerFormatHelp("numbers") @]* + [_______________]{$x1} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/2.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_36.pg b/Contrib/CCCS/PreCalculus/2.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_36.pg index ea2fbd71d5..5aeab5dcc0 100644 --- a/Contrib/CCCS/PreCalculus/2.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_36.pg +++ b/Contrib/CCCS/PreCalculus/2.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_36.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -57,9 +57,9 @@ $z=Complex(0,$Impart); # Main text BEGIN_PGML -Evaluate [` -\sqrt{[$a]} - [$b]\sqrt{[$c]}`] and express as a simplified complex number [`a+bi`]. +Evaluate [` -\sqrt{[$a]} - [$b]\sqrt{[$c]}`] and express as a simplified complex number [`a+bi`]. - [_______________]{$z} [@ AnswerFormatHelp("numbers") @]* + [_______________]{$z} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/2.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_49.pg b/Contrib/CCCS/PreCalculus/2.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_49.pg index ba8f171211..2f5ff6e283 100644 --- a/Contrib/CCCS/PreCalculus/2.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_49.pg +++ b/Contrib/CCCS/PreCalculus/2.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_49.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,9 +48,9 @@ $i=Complex(0,1); # Main text BEGIN_PGML -Evaluate [` i^{[$a]} ( 1 + i^{[$b]} ) `] and express the answer as a simplified complex number [`a+bi`]. +Evaluate [` i^{[$a]} ( 1 + i^{[$b]} ) `] and express the answer as a simplified complex number [`a+bi`]. - [_______________]{$i**$a * (1 + $i**$b)} [@ AnswerFormatHelp("numbers") @]* + [_______________]{$i**$a * (1 + $i**$b)} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/2.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_50.pg b/Contrib/CCCS/PreCalculus/2.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_50.pg index 10d6fc4063..e8e994bb8e 100644 --- a/Contrib/CCCS/PreCalculus/2.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_50.pg +++ b/Contrib/CCCS/PreCalculus/2.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_50.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,9 +48,9 @@ $i=Complex(0,1); # Main text BEGIN_PGML -Evaluate [` i^{-[$a]} + [$b] \, i^{[$c]} `] and express the answer as a simplified complex number [`a+bi`]. +Evaluate [` i^{-[$a]} + [$b] \, i^{[$c]} `] and express the answer as a simplified complex number [`a+bi`]. - [_______________]{$i**(-1*$a) + $b * $i**$c} [@ AnswerFormatHelp("numbers") @]* + [_______________]{$i**(-1*$a) + $b * $i**$c} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/2.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_55.pg b/Contrib/CCCS/PreCalculus/2.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_55.pg index d59e0bcf81..daee187352 100644 --- a/Contrib/CCCS/PreCalculus/2.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_55.pg +++ b/Contrib/CCCS/PreCalculus/2.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_55.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,8 +50,8 @@ $v=Complex($f,$g); $ans=($z/$w)+($u/$v); ##$video = MODES( -##HTML=> -##'', +##HTML=> +##'', ##TeX => ##"An embedded YouTube video." ##); @@ -60,9 +60,9 @@ $ans=($z/$w)+($u/$v); # Main text BEGIN_PGML -Evaluate [`` \frac{[$z]}{[$w]}+\frac{[$u]}{[$v]}``] and express as a simplified complex number [``a+bi``] . +Evaluate [`` \frac{[$z]}{[$w]}+\frac{[$u]}{[$v]}``] and express as a simplified complex number [``a+bi``] . - [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* + [_______________]{$ans} [@ helpLink("numbers") @]* ##[$video]* diff --git a/Contrib/CCCS/PreCalculus/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_16.pg b/Contrib/CCCS/PreCalculus/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_16.pg index 1f0ad28a29..fb2d24d5c9 100644 --- a/Contrib/CCCS/PreCalculus/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_16.pg +++ b/Contrib/CCCS/PreCalculus/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_16.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -43,8 +43,8 @@ $z=Complex($a,$b); $w=Complex($c,$d); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -54,9 +54,9 @@ TeX => # Main text BEGIN_PGML -Evaluate [` ([$z]) + ([$w]) `] and express as a simplified complex number [`a+bi`]. +Evaluate [` ([$z]) + ([$w]) `] and express as a simplified complex number [`a+bi`]. - [_______________]{$z+$w} [@ AnswerFormatHelp("numbers") @]* + [_______________]{$z+$w} [@ helpLink("numbers") @]* [$video]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_17.pg b/Contrib/CCCS/PreCalculus/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_17.pg index c041feba95..ced36a3079 100644 --- a/Contrib/CCCS/PreCalculus/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_17.pg +++ b/Contrib/CCCS/PreCalculus/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_17.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,9 +50,9 @@ $w=Complex($c,$d); # Main text BEGIN_PGML -Evaluate [` ([$z]) - ([$w]) `] and express as a simplified complex number [`a+bi`]. +Evaluate [` ([$z]) - ([$w]) `] and express as a simplified complex number [`a+bi`]. - [_______________]{$z-$w} [@ AnswerFormatHelp("numbers") @]* + [_______________]{$z-$w} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_25.pg b/Contrib/CCCS/PreCalculus/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_25.pg index da780aa63f..3b9bf304bd 100644 --- a/Contrib/CCCS/PreCalculus/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_25.pg +++ b/Contrib/CCCS/PreCalculus/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_25.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,9 +50,9 @@ $w=Complex($c,$d); # Main text BEGIN_PGML -Evaluate [` ([$z])([$w]) `] and express as a simplified complex number [`a+bi`]. +Evaluate [` ([$z])([$w]) `] and express as a simplified complex number [`a+bi`]. - [_______________]{$z*$w} [@ AnswerFormatHelp("numbers") @]* + [_______________]{$z*$w} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_33.pg b/Contrib/CCCS/PreCalculus/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_33.pg index c9002af414..e2690e630f 100644 --- a/Contrib/CCCS/PreCalculus/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_33.pg +++ b/Contrib/CCCS/PreCalculus/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_33.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -45,8 +45,8 @@ $w=Complex($c,$d); $ans=$z/$w; $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -56,9 +56,9 @@ TeX => # Main text BEGIN_PGML -Evaluate [`` \frac{[$z]}{[$w]} ``] and express as a simplified complex number [`a+bi`]. +Evaluate [`` \frac{[$z]}{[$w]} ``] and express as a simplified complex number [`a+bi`]. - [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* + [_______________]{$ans} [@ helpLink("numbers") @]* [$video]* diff --git a/Contrib/CCCS/PreCalculus/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_40a.pg b/Contrib/CCCS/PreCalculus/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_40a.pg index 9a5cac4983..a235a03e02 100644 --- a/Contrib/CCCS/PreCalculus/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_40a.pg +++ b/Contrib/CCCS/PreCalculus/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_40a.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -39,8 +39,8 @@ $a=random(11,50,4); $ans=Complex(0,-1); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -49,9 +49,9 @@ TeX => # Main text BEGIN_PGML -Simplify [`` i^{[$a]} ``]. +Simplify [`` i^{[$a]} ``]. - [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* + [_______________]{$ans} [@ helpLink("numbers") @]* [$video]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_40b.pg b/Contrib/CCCS/PreCalculus/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_40b.pg index 2e62bf2d17..0e3bd4d149 100644 --- a/Contrib/CCCS/PreCalculus/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_40b.pg +++ b/Contrib/CCCS/PreCalculus/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_40b.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -43,9 +43,9 @@ $ans=Complex(1,0); # Main text BEGIN_PGML -Simplify [`` i^{[$a]} ``]. +Simplify [`` i^{[$a]} ``]. - [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* + [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_12.pg b/Contrib/CCCS/PreCalculus/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_12.pg index dff7a4dda7..89f4cdbb17 100644 --- a/Contrib/CCCS/PreCalculus/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_12.pg +++ b/Contrib/CCCS/PreCalculus/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_12.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -49,11 +49,11 @@ $ans = List( -$c, -$b/$a ); # Main text BEGIN_PGML -Solve [`[$f]=0 `] by factoring. If there is more -than one correct answer, enter a comma +Solve [`[$f]=0 `] by factoring. If there is more +than one correct answer, enter a comma separated list. -[`x=`] [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_________________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/PreCalculus/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_19.pg b/Contrib/CCCS/PreCalculus/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_19.pg index 2493ea0d59..9bc4470b31 100644 --- a/Contrib/CCCS/PreCalculus/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_19.pg +++ b/Contrib/CCCS/PreCalculus/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_19.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -42,8 +42,8 @@ $f = Compute("x^2")->reduce; $ans = List( $a, -$a ); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -53,14 +53,14 @@ TeX => # Main text BEGIN_PGML -Solve [`[$f]=[$a2] `] by using the square root property. If there is more -than one correct answer, enter a comma +Solve [`[$f]=[$a2] `] by using the square root property. If there is more +than one correct answer, enter a comma separated list. -[`x=`] [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_________________]{$ans} [@ helpLink("numbers") @]* -[$video]* +[$video]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_21.pg b/Contrib/CCCS/PreCalculus/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_21.pg index 8ac7a77859..67e7c70e59 100644 --- a/Contrib/CCCS/PreCalculus/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_21.pg +++ b/Contrib/CCCS/PreCalculus/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_21.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,11 +48,11 @@ $ans = List( $b+$a, $b-$a ); # Main text BEGIN_PGML -Solve [`[$f]=[$a2] `] by using the square root property. If there is more -than one correct answer, enter a comma +Solve [`[$f]=[$a2] `] by using the square root property. If there is more +than one correct answer, enter a comma separated list. -[`x=`] [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_25.pg b/Contrib/CCCS/PreCalculus/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_25.pg index 4503792cd4..dfa4ffc798 100644 --- a/Contrib/CCCS/PreCalculus/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_25.pg +++ b/Contrib/CCCS/PreCalculus/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_25.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "contextLimitedRadical.pl", "PGML.pl", @@ -41,55 +41,55 @@ Context("Numeric"); $chooser=random(1,5,1); if ( $chooser ==1) {$eqn1=Formula("x^2-10x-22"); -} +} elsif ( $chooser ==2) {$eqn1=Formula("x^2+2x-5"); -} +} elsif ( $chooser ==3) {$eqn1=Formula("x^2+6x+7"); -} +} elsif ( $chooser ==4) {$eqn1=Formula("x^2-4x-1"); -} +} if ( $chooser ==5) {$eqn1=Formula("x^2-6x-5"); -} +} if ( $chooser ==1) {$eqn2=0; -} +} elsif ( $chooser ==2) {$eqn2=0; -} +} elsif ( $chooser ==3) {$eqn2=0; -} +} elsif ( $chooser ==4) {$eqn2=0; -} +} if ( $chooser ==5) {$eqn2=0; -} +} elsif ( $chooser ==1) {$ans=List("5-sqrt47, 5+sqrt47"); -} +} if ( $chooser ==2) {$ans=List("-1+sqrt6, -1-sqrt6"); -} +} elsif ( $chooser ==3) {$ans=List("-3-sqrt2, -3+sqrt2"); -} +} elsif ( $chooser ==4) {$ans=List("2+sqrt5, 2-sqrt5"); -} +} if ( $chooser ==5) {$ans=List("3+sqrt14, 3-sqrt14"); -} +} $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -101,14 +101,14 @@ TeX => # Main text BEGIN_PGML -Solve [`[$eqn1]=[$eqn2] `] by completing the square. Use at 5 least decimal places for all values. If there is more -than one correct answer, enter a comma -separated list. +Solve [`[$eqn1]=[$eqn2] `] by completing the square. Use at 5 least decimal places for all values. If there is more +than one correct answer, enter a comma +separated list. -[`x=`] [_________________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_________________________]{$ans} [@ helpLink("numbers") @]* -[$video]* +[$video]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_26.pg b/Contrib/CCCS/PreCalculus/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_26.pg index 26ba3faf0d..b5828a0ff0 100644 --- a/Contrib/CCCS/PreCalculus/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_26.pg +++ b/Contrib/CCCS/PreCalculus/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_26.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -40,52 +40,52 @@ Context("Numeric"); $chooser=random(1,5,1); if ( $chooser ==1) {$eqn1=Formula("x^2-3x-1"); -} +} elsif ( $chooser ==2) {$eqn1=Formula("x^2-x-3"); -} +} elsif ( $chooser ==3) {$eqn1=Formula("x^2-5x-7"); -} +} elsif ( $chooser ==4) {$eqn1=Formula("x^2+3x-9"); -} +} if ( $chooser ==5) {$eqn1=Formula("x^2+3x-5"); -} +} if ( $chooser ==1) {$eqn2=0; -} +} elsif ( $chooser ==2) {$eqn2=0; -} +} elsif ( $chooser ==3) {$eqn2=0; -} +} elsif ( $chooser ==4) {$eqn2=0; -} +} if ( $chooser ==5) {$eqn2=0; -} +} elsif ( $chooser ==1) {$ans=List("(3-sqrt13)/2,(3+sqrt13)/2"); -} +} if ( $chooser ==2) {$ans=List("(1-sqrt13)/2,(1+sqrt13)/2"); -} +} elsif ( $chooser ==3) {$ans=List("(5+sqrt53)/2, (5-sqrt53)/2"); -} +} elsif ( $chooser ==4) {$ans=List("(-3+3sqrt5)/2,(-3-3sqrt5)/2"); -} +} if ( $chooser ==5) {$ans=List("(-3-sqrt29)/2,(-3+sqrt29)/2"); -} +} @@ -93,11 +93,11 @@ if ( $chooser ==5) {$ans=List("(-3-sqrt29)/2,(-3+sqrt29)/2"); # Main text BEGIN_PGML -Solve [`[$eqn1]=[$eqn2] `] by completing the square. Use at least 5 decimal places for all values. If there is more -than one correct answer, enter a comma -separated list. +Solve [`[$eqn1]=[$eqn2] `] by completing the square. Use at least 5 decimal places for all values. If there is more +than one correct answer, enter a comma +separated list. -[`x=`] [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_________________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/PreCalculus/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_32.pg b/Contrib/CCCS/PreCalculus/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_32.pg index e0b9be98f6..09fb9b0340 100644 --- a/Contrib/CCCS/PreCalculus/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_32.pg +++ b/Contrib/CCCS/PreCalculus/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_32.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserPopUp.pl", "PGML.pl", "PGcourse.pl", @@ -66,11 +66,11 @@ elsif ($ans==0) {$popup = PopUp( # Main text BEGIN_PGML -Determine the discriminant for [`[$f]=0`] -[_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +Determine the discriminant for [`[$f]=0`] +[_________________]{$ans} [@ helpLink("numbers") @]* -Based on the discriminant, what is the nature of the solution(s) for the equation? -[_________________]{$popup} +Based on the discriminant, what is the nature of the solution(s) for the equation? +[_________________]{$popup} END_PGML diff --git a/Contrib/CCCS/PreCalculus/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_35.pg b/Contrib/CCCS/PreCalculus/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_35.pg index c5cbba57d4..5bd466e736 100644 --- a/Contrib/CCCS/PreCalculus/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_35.pg +++ b/Contrib/CCCS/PreCalculus/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_35.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserPopUp.pl", "PGML.pl", "PGcourse.pl", @@ -52,11 +52,11 @@ $popup = PopUp( # Main text BEGIN_PGML -Determine the discriminant for [`[$f]=0`] -[_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +Determine the discriminant for [`[$f]=0`] +[_________________]{$ans} [@ helpLink("numbers") @]* -Based on the discriminant, what is the nature of the solution(s) for the equation? -[_________________]{$popup} +Based on the discriminant, what is the nature of the solution(s) for the equation? +[_________________]{$popup} diff --git a/Contrib/CCCS/PreCalculus/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_38.pg b/Contrib/CCCS/PreCalculus/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_38.pg index cc8952ffc0..531b95fcbd 100644 --- a/Contrib/CCCS/PreCalculus/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_38.pg +++ b/Contrib/CCCS/PreCalculus/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_38.pg @@ -1,7 +1,7 @@ ## DESCRIPTION ## Algebra: solving a quadratic via the quadratic formula ## ENDDESCRIPTION - + ## DBsubject(Algebra) ## DBchapter(Quadratic equations and functions) ## DBsection(Quadratic formula) @@ -10,65 +10,65 @@ ## Author(James Morski) ## MO(1) ## KEYWORDS('algebra', 'quadratic equations') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); - + TEXT(beginproblem()); - + $showPartialCorrectAnswers = 1; - + ########################### # Setup - + Context("Numeric"); - + $a=non_zero_random(0,10,2); $b=non_zero_random(-10,10,2); $c=non_zero_random(-10,0); $b2=($b/($a*2))**2; - + $f = Compute("$a*x^2+$b*x+$c")->reduce; - - + + $ans1=(-$b+sqrt(($b)**2-4*$a*$c))/(2*$a); $ans2=(-$b-sqrt(($b)**2-4*$a*$c))/(2*$a); - + $ans = List( $ans1, $ans2); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); - + ########################### # Main text - + BEGIN_PGML - + Solve [`[$f]=0 `] by using the quadratic formula. If there is more than one correct answer, enter a comma -separated list. - -[`x=`] [______________________]{$ans} [@ AnswerFormatHelp("numbers") @]* - +separated list. + +[`x=`] [______________________]{$ans} [@ helpLink("numbers") @]* -[$video]* + +[$video]* END_PGML @@ -78,15 +78,15 @@ $BR If the video does not work, \{ htmlLink ("https://www.youtube.com/watch?v=UofR4XEKpYE", "click here to watch on YouTube.", "TARGET='_blank'")\} $BR END_TEXT - - + + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/PreCalculus/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_39.pg b/Contrib/CCCS/PreCalculus/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_39.pg index 662eef1136..9985683c35 100644 --- a/Contrib/CCCS/PreCalculus/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_39.pg +++ b/Contrib/CCCS/PreCalculus/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_39.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,11 +50,11 @@ $ans = List((-1+sqrt(1-4*$c))/2, (-1-sqrt(1-4*$c))/2); BEGIN_PGML -Solve [`[$f]=0 `] by using the quadratic formula. If there is more -than one correct answer, enter a comma -separated list. +Solve [`[$f]=0 `] by using the quadratic formula. If there is more +than one correct answer, enter a comma +separated list. -[`x=`] [__________________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [__________________________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/PreCalculus/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_41.pg b/Contrib/CCCS/PreCalculus/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_41.pg index 8ef268882d..e4384e6137 100644 --- a/Contrib/CCCS/PreCalculus/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_41.pg +++ b/Contrib/CCCS/PreCalculus/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_41.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -52,11 +52,11 @@ $ans = List( -$b/(2*$a) ); BEGIN_PGML -Solve [`[$f]=0 `] by using the quadratic formula. If there is more -than one correct answer, enter a comma -separated list. +Solve [`[$f]=0 `] by using the quadratic formula. If there is more +than one correct answer, enter a comma +separated list. -[`x=`] [________________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [________________________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/PreCalculus/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_51.pg b/Contrib/CCCS/PreCalculus/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_51.pg index f8b3cef52a..82684e2a3e 100644 --- a/Contrib/CCCS/PreCalculus/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_51.pg +++ b/Contrib/CCCS/PreCalculus/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_51.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -52,7 +52,7 @@ Round your answer to 4 decimal places if necessary. [`L=`] [_______________]{$l} [`ft`] -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_56.pg b/Contrib/CCCS/PreCalculus/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_56.pg index 2684ad078a..4c8bee618f 100644 --- a/Contrib/CCCS/PreCalculus/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_56.pg +++ b/Contrib/CCCS/PreCalculus/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_56.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,7 +50,7 @@ A falling object travels a distance given by the formula [` d=[$d]`], where [`d` [_______________]{$ans} seconds -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_57.pg b/Contrib/CCCS/PreCalculus/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_57.pg index e4734df0f8..fadaa76610 100644 --- a/Contrib/CCCS/PreCalculus/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_57.pg +++ b/Contrib/CCCS/PreCalculus/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_57.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -45,7 +45,7 @@ $ans=Compute((-54+sqrt(2916-(16*(180-$a))))/8); BEGIN_TEXT $BR $BCENTER -\{ image( "garden.png", width=>250, height=>250, +\{ image( "garden.png", width=>250, height=>250, tex_size=>700, extra_html_tags=>'alt="Graph of a function."' ) \} $ECENTER $BR @@ -59,7 +59,7 @@ A vacant lot is being converted into a community garden. The garden and a walkw [_______________]{$ans} Feet -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_6.pg b/Contrib/CCCS/PreCalculus/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_6.pg index 9bacd97c4f..2219b869dc 100644 --- a/Contrib/CCCS/PreCalculus/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_6.pg +++ b/Contrib/CCCS/PreCalculus/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_6.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -42,8 +42,8 @@ $f = Compute("x^2-($a+$b)x+$a*$b")->reduce; $ans = List( $a, $b ); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -54,14 +54,14 @@ TeX => # Main text BEGIN_PGML -Solve the quadratic equation [`[$f]=0 `] by factoring. If there is more -than one correct answer, enter a comma +Solve the quadratic equation [`[$f]=0 `] by factoring. If there is more +than one correct answer, enter a comma separated list. -[`x=`] [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_________________]{$ans} [@ helpLink("numbers") @]* -[$video]* +[$video]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_7.pg b/Contrib/CCCS/PreCalculus/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_7.pg index 6302aec111..941e1d3f35 100644 --- a/Contrib/CCCS/PreCalculus/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_7.pg +++ b/Contrib/CCCS/PreCalculus/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_7.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -47,11 +47,11 @@ $ans = List( $a, $b ); # Main text BEGIN_PGML -Solve the quadratic equation [`[$f]=0 `] by factoring. If there is more -than one correct answer, enter a comma +Solve the quadratic equation [`[$f]=0 `] by factoring. If there is more +than one correct answer, enter a comma separated list. -[`x=`] [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_8.pg b/Contrib/CCCS/PreCalculus/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_8.pg index 07676d5812..9b53dcbbcd 100644 --- a/Contrib/CCCS/PreCalculus/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_8.pg +++ b/Contrib/CCCS/PreCalculus/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_8.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -47,11 +47,11 @@ $ans = -1*$a; # Main text BEGIN_PGML -Solve the quadratic equation [`[$f]=0 `] by factoring. If there is more -than one correct answer, enter a comma +Solve the quadratic equation [`[$f]=0 `] by factoring. If there is more +than one correct answer, enter a comma separated list. -[`x=`] [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_34.pg b/Contrib/CCCS/PreCalculus/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_34.pg index a8dd537c1c..4c9ccee8da 100644 --- a/Contrib/CCCS/PreCalculus/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_34.pg +++ b/Contrib/CCCS/PreCalculus/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_34.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -47,7 +47,7 @@ If there is more than one answer, enter a comma separated list. If there is no s [` |[$a]x+1|-[$b]=-[$c] `]. -[`x=`] [_______________]{DNE} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_______________]{DNE} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_37.pg b/Contrib/CCCS/PreCalculus/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_37.pg index 697a9706ee..389625b210 100644 --- a/Contrib/CCCS/PreCalculus/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_37.pg +++ b/Contrib/CCCS/PreCalculus/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_37.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -44,7 +44,7 @@ Solve [` x^4 - [$a**2 + $b**2] x^2 + [$a**2 * $b**2] = 0 `]. Begin by using a s If there is more than one answer, enter a comma separated list. -`x=`[_______________]{List($a,-$a,$b,-$b)} [@ AnswerFormatHelp("numbers") @]* +`x=`[_______________]{List($a,-$a,$b,-$b)} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_38.pg b/Contrib/CCCS/PreCalculus/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_38.pg index 283be66d88..a84a4d4035 100644 --- a/Contrib/CCCS/PreCalculus/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_38.pg +++ b/Contrib/CCCS/PreCalculus/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_38.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -56,7 +56,7 @@ $ans = List($x1 + $u,$x2 + $u); ########################### # Main text -if ($b == 0) { +if ($b == 0) { # no linear term on LHS BEGIN_PGML @@ -66,7 +66,7 @@ If you find more than one solution, give your answer as a comma-separated list. [` {[$a]} \left( t - {[$u]} \right)^2 = {[$neg_c]} `] -[`t=`] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`t=`] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML @@ -81,7 +81,7 @@ If you find more than one solution, give your answer as a comma-separated list. [` {[$a]} \left( t - {[$u]} \right)^2 + {[$b]} \left( t - {[$u]} \right) = {[$neg_c]} `] -[`t=`] [_______________]{List($ans)} [@ AnswerFormatHelp("numbers") @]* +[`t=`] [_______________]{List($ans)} [@ helpLink("numbers") @]* @@ -101,7 +101,7 @@ Solve the equation by identifying the quadratic form. Use a substitute variable If you find more than one solution, give your answer as a comma-separated list. -[`t=`] [_______________]{List($ans)} [@ AnswerFormatHelp("numbers") @]* +[`t=`] [_______________]{List($ans)} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/PreCalculus/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_40.pg b/Contrib/CCCS/PreCalculus/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_40.pg index 5ce40e4199..5fbe4758f1 100644 --- a/Contrib/CCCS/PreCalculus/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_40.pg +++ b/Contrib/CCCS/PreCalculus/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_40.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -55,7 +55,7 @@ If there is more than one answer, enter a comma separated list. [` \left( x + {[$w]} \right)^2 - {[$b]} \left( x + {[$w]} \right) - {[$c]} = 0 `] -`x`=[_______________]{List($x1, $x2)} [@ AnswerFormatHelp("numbers") @]* +`x`=[_______________]{List($x1, $x2)} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_7.pg b/Contrib/CCCS/PreCalculus/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_7.pg index 3931803812..4c4334244e 100644 --- a/Contrib/CCCS/PreCalculus/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_7.pg +++ b/Contrib/CCCS/PreCalculus/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_7.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -49,8 +49,8 @@ if ( $b % 2) { } $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -66,10 +66,10 @@ Solve the rational exponent equation. Use factoring where necessary. If there [` x^{[$b-1]/[$b]} = [$c] `]. -`x =` [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +`x =` [_______________]{$ans} [@ helpLink("numbers") @]* -[$video]* +[$video]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_9.pg b/Contrib/CCCS/PreCalculus/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_9.pg index 2408a0beb4..649a0fae65 100644 --- a/Contrib/CCCS/PreCalculus/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_9.pg +++ b/Contrib/CCCS/PreCalculus/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_9.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -55,7 +55,7 @@ if ( $b % 2) { BEGIN_PGML Solve [` \left( x - [$d] \right)^{[$b-1]/[$b]} = [$c] `]. If there is more than one answer, enter a comma separated list. -`x=` [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +`x=` [_______________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/PreCalculus/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_21.pg b/Contrib/CCCS/PreCalculus/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_21.pg index f143fc044f..0182eb12f2 100644 --- a/Contrib/CCCS/PreCalculus/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_21.pg +++ b/Contrib/CCCS/PreCalculus/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_21.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -41,8 +41,8 @@ $ans=Compute($b**2+$a); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -52,16 +52,16 @@ TeX => # Main text BEGIN_PGML -Solve the radical equation. Be sure to check for extraneous solutions. +Solve the radical equation. Be sure to check for extraneous solutions. If there is more than one answer, enter a comma separated list. [` \sqrt{x-[$a]}=[$b] `]. -[`x=`] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_______________]{$ans} [@ helpLink("numbers") @]* -[$video]* +[$video]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_22.pg b/Contrib/CCCS/PreCalculus/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_22.pg index 191dd0540d..ad877111ba 100644 --- a/Contrib/CCCS/PreCalculus/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_22.pg +++ b/Contrib/CCCS/PreCalculus/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_22.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -33,7 +33,7 @@ $showPartialCorrectAnswers = 1; # Setup #note that $a-$b/2>0 for both solutions to work so forcing that with selection of $a and $b. -$a=random(5,10); +$a=random(5,10); do {$b=random(2,8,2); } until ($a != $b); $c=$b**2/4-$a*$b; @@ -46,13 +46,13 @@ $ans = List($a, $b ); # Main text BEGIN_PGML -Solve the radical equation. Be sure to check for extraneous solutions. +Solve the radical equation. Be sure to check for extraneous solutions. If you find more than one solution, give your answer as a comma-separated list. [` \sqrt{[$f]}=[$g] `]. -[`x=`] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_24.pg b/Contrib/CCCS/PreCalculus/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_24.pg index 1600e7ea82..8d858a5f61 100644 --- a/Contrib/CCCS/PreCalculus/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_24.pg +++ b/Contrib/CCCS/PreCalculus/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_24.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -45,13 +45,13 @@ $ans=Compute(($c-$b)**2+$a); # Main text BEGIN_PGML -Solve the radical equation. Be sure to check for extraneous solutions. +Solve the radical equation. Be sure to check for extraneous solutions. -If there is more than one answer, enter a comma separated list. +If there is more than one answer, enter a comma separated list. [` \sqrt{x-[$a]}+[$b]=[$c] `]. -[`x= `] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x= `] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_28.pg b/Contrib/CCCS/PreCalculus/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_28.pg index 4a2398a575..c20a9d803c 100644 --- a/Contrib/CCCS/PreCalculus/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_28.pg +++ b/Contrib/CCCS/PreCalculus/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_28.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -34,8 +34,8 @@ $showPartialCorrectAnswers = 1; $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -44,16 +44,16 @@ TeX => # Main text BEGIN_PGML -Solve the radical equation. Be sure to check for extraneous solutions. +Solve the radical equation. Be sure to check for extraneous solutions. If there is more than one answer, enter a comma separated list. [` \sqrt{3x+7}+\sqrt{x+2}=1 `]. -[`x = `] [_______________]{-2} [@ AnswerFormatHelp("numbers") @]* +[`x = `] [_______________]{-2} [@ helpLink("numbers") @]* -[$video]* +[$video]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_29.pg b/Contrib/CCCS/PreCalculus/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_29.pg index 774d7911ce..f99cf92560 100644 --- a/Contrib/CCCS/PreCalculus/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_29.pg +++ b/Contrib/CCCS/PreCalculus/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_29.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -38,8 +38,8 @@ $b=non_zero_random(1,10); $ans=List($b+$a, -$b+$a); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -55,10 +55,10 @@ If there is more than one answer, enter a comma separated list. If there is no s [` |x-[$a]|=[$b] `]. -[`x= `][_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x= `][_______________]{$ans} [@ helpLink("numbers") @]* -[$video]* +[$video]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_31.pg b/Contrib/CCCS/PreCalculus/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_31.pg index 8989b0124b..d70115e7c7 100644 --- a/Contrib/CCCS/PreCalculus/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_31.pg +++ b/Contrib/CCCS/PreCalculus/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_31.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -49,7 +49,7 @@ If there is more than one answer, enter a comma separated list. If there is no s [` |x-[$a]|-[$b]=[$c] `]. -[`x=`] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_35.pg b/Contrib/CCCS/PreCalculus/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_35.pg index 5f52bed490..a7080ef5b0 100644 --- a/Contrib/CCCS/PreCalculus/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_35.pg +++ b/Contrib/CCCS/PreCalculus/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_35.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -46,7 +46,7 @@ Solve the equation involving absolute value. If there is more than one answer, e [` |x-[$a]|=0 `]. -`x=` [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +`x=` [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/2.6/checking_fraction_answers.pg b/Contrib/CCCS/PreCalculus/2.6/checking_fraction_answers.pg index 32b15cd1d3..c1d0d400af 100644 --- a/Contrib/CCCS/PreCalculus/2.6/checking_fraction_answers.pg +++ b/Contrib/CCCS/PreCalculus/2.6/checking_fraction_answers.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -47,8 +47,8 @@ $neg_c = (-1) * $q * $s; # Coefficient subtracted from t $u = non_zero_random(1,5); - -# Solutions + +# Solutions Context("LimitedFraction"); $x1 = Compute("1/2"); $x2 = Compute("-1/2"); @@ -56,12 +56,12 @@ $x2 = Compute("-1/2"); ########################### # Main text -if ($b == 0) { +if ($b == 0) { # no linear term on LHS BEGIN_PGML Solve [` {[$a]} \left( t - {[$u]} \right)^2 = {[$neg_c]} `]. Begin by using a substitution to simplify the equation. - [_______________]{List($x1,$x2)} [@ AnswerFormatHelp("numbers") @]* + [_______________]{List($x1,$x2)} [@ helpLink("numbers") @]* For more questions like this, go to section 2.6 numbers 37-41. @@ -71,7 +71,7 @@ END_PGML BEGIN_PGML Solve [` {[$a]} \left( t - {[$u]} \right)^2 + {[$b]} \left( t - {[$u]} \right) = {[$neg_c]} `]. Begin by using a substitution to simplify the equation. - [_______________]{List(-1,1,-3,3)} [@ AnswerFormatHelp("numbers") @]* + [_______________]{List(-1,1,-3,3)} [@ helpLink("numbers") @]* For more questions like this, go to section 2.6 numbers 37-41. @@ -83,7 +83,7 @@ $b = -$b; BEGIN_PGML Solve [` {[$a]} \left( t - {[$u]} \right)^2 - {[$b]} \left( t - {[$u]} \right) = {[$neg_c]} `]. Begin by using a substitution to simplify the equation. - [_______________]{List(1/2,-1/2)} [@ AnswerFormatHelp("numbers") @]* + [_______________]{List(1/2,-1/2)} [@ helpLink("numbers") @]* For more questions like this, go to section 2.6 numbers 37-41. diff --git a/Contrib/CCCS/PreCalculus/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_10.pg b/Contrib/CCCS/PreCalculus/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_10.pg index 16b49b79e9..50e17a18ce 100644 --- a/Contrib/CCCS/PreCalculus/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_10.pg +++ b/Contrib/CCCS/PreCalculus/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_10.pg @@ -11,7 +11,7 @@ ## Author(James Morski) ## MO(1) ## KEYWORDS('college algebra', 'linear inequality') - + ############################################## DOCUMENT(); @@ -20,7 +20,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "contextInequalitySetBuilder.pl", "parserOneOf.pl", @@ -53,11 +53,11 @@ TEXT(beginproblem()); BEGIN_PGML -Solve the following inequality for [`x`]. Enter the answer in interval notation. +Solve the following inequality for [`x`]. Enter the answer in interval notation. [`-\dfrac{[$a]}{2}x \leq - \dfrac{[$c]}{[$d]}+\dfrac{[$e]}{8}x `] -[_______________]{$intans} [@ AnswerFormatHelp("intervals") @]* +[_______________]{$intans} [@ helpLink("intervals") @]* diff --git a/Contrib/CCCS/PreCalculus/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_11.pg b/Contrib/CCCS/PreCalculus/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_11.pg index b0503fe1eb..32612dec46 100644 --- a/Contrib/CCCS/PreCalculus/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_11.pg +++ b/Contrib/CCCS/PreCalculus/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_11.pg @@ -9,7 +9,7 @@ ## Author(James Morski) ## MO(1) ## KEYWORDS('college algebra', 'linear inequality') - + ############################################## DOCUMENT(); @@ -18,7 +18,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "contextInequalitySetBuilder.pl", "parserOneOf.pl", @@ -53,7 +53,7 @@ Solve the following inequality for [`x`]. Enter the answer in interval notation [`[$a](x+[$b])+[$c] > [$d]x+[$e]+[$f]x`] -[_______________]{$intans} [@ AnswerFormatHelp("intervals") @]* +[_______________]{$intans} [@ helpLink("intervals") @]* END_PGML ############################ diff --git a/Contrib/CCCS/PreCalculus/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_15.pg b/Contrib/CCCS/PreCalculus/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_15.pg index c4b2917fc1..13ef5e619e 100644 --- a/Contrib/CCCS/PreCalculus/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_15.pg +++ b/Contrib/CCCS/PreCalculus/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_15.pg @@ -9,7 +9,7 @@ ## Author(James Morski) ## MO(1) ## KEYWORDS('college algebra', 'absolute value linear inequality') - + ############################################## DOCUMENT(); @@ -18,7 +18,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "contextInequalitySetBuilder.pl", "parserOneOf.pl", @@ -41,8 +41,8 @@ $intans = Compute("(-inf,inf)"); $f=Formula("abs(x+$a)"); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -53,14 +53,14 @@ TEXT(beginproblem()); BEGIN_PGML -Solve the following inequality involving absolute value. Enter the answer in interval notation. +Solve the following inequality involving absolute value. Enter the answer in interval notation. [`[$f] > [$b] `] -[____________________]{$intans} [@ AnswerFormatHelp("intervals") @]* +[____________________]{$intans} [@ helpLink("intervals") @]* -[$video]* +[$video]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_17.pg b/Contrib/CCCS/PreCalculus/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_17.pg index fae88fabdf..fbe60cd30e 100644 --- a/Contrib/CCCS/PreCalculus/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_17.pg +++ b/Contrib/CCCS/PreCalculus/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_17.pg @@ -11,7 +11,7 @@ ## Author(James Morski) ## MO(1) ## KEYWORDS('college algebra', 'absolute value linear inequality') - + ############################################## DOCUMENT(); @@ -21,7 +21,7 @@ loadMacros( "MathObjects.pl", "PGML.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "contextInequalitySetBuilder.pl", "parserOneOf.pl", "PGcourse.pl", @@ -52,11 +52,11 @@ TEXT(beginproblem()); BEGIN_PGML -Solve the following inequality involving absolute value. Enter the answer in interval notation. +Solve the following inequality involving absolute value. Enter the answer in interval notation. [` [$f]> [$c]`] -[_______________]{$intans} [@ AnswerFormatHelp("intervals") @]* +[_______________]{$intans} [@ helpLink("intervals") @]* diff --git a/Contrib/CCCS/PreCalculus/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_19.pg b/Contrib/CCCS/PreCalculus/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_19.pg index 13252265ed..fc95acf22a 100644 --- a/Contrib/CCCS/PreCalculus/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_19.pg +++ b/Contrib/CCCS/PreCalculus/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_19.pg @@ -11,7 +11,7 @@ ## Author(James Morski) ## MO(1) ## KEYWORDS('college algebra', 'absolute value linear inequality') - + ############################################## DOCUMENT(); @@ -21,7 +21,7 @@ loadMacros( "MathObjects.pl", "PGML.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "contextInequalitySetBuilder.pl", "parserOneOf.pl", "PGcourse.pl", @@ -50,11 +50,11 @@ TEXT(beginproblem()); BEGIN_PGML -Solve the following inequality involving absolute value. Enter the answer in interval notation. +Solve the following inequality involving absolute value. Enter the answer in interval notation. [` [$f] + [$c] > [$d] `] - -[_______________]{$intans}[@ AnswerFormatHelp("intervals") @]* + +[_______________]{$intans}[@ helpLink("intervals") @]* diff --git a/Contrib/CCCS/PreCalculus/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_21.pg b/Contrib/CCCS/PreCalculus/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_21.pg index f30129063a..5138ad869f 100644 --- a/Contrib/CCCS/PreCalculus/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_21.pg +++ b/Contrib/CCCS/PreCalculus/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_21.pg @@ -11,7 +11,7 @@ ## Author(James Morski) ## MO(1) ## KEYWORDS('college algebra', 'absolute value linear inequality') - + ############################################## DOCUMENT(); @@ -19,7 +19,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "contextInequalitySetBuilder.pl", @@ -49,11 +49,11 @@ TEXT(beginproblem()); BEGIN_PGML -Solve the following inequality involving absolute value. Enter the answer in interval notation. +Solve the following inequality involving absolute value. Enter the answer in interval notation. [` [$f] \geq [$d] `] -[_______________]{$intans} [@ AnswerFormatHelp("intervals") @]* +[_______________]{$intans} [@ helpLink("intervals") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_28.pg b/Contrib/CCCS/PreCalculus/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_28.pg index 9729396325..b4e2c20e72 100644 --- a/Contrib/CCCS/PreCalculus/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_28.pg +++ b/Contrib/CCCS/PreCalculus/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_28.pg @@ -9,7 +9,7 @@ ## Author(James Morski) ## MO(1) ## KEYWORDS('college algebra', 'compound linear inequality') - + ############################################## DOCUMENT(); @@ -17,7 +17,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "contextInequalities.pl", "contextFraction.pl", @@ -54,7 +54,7 @@ Solve the following inequality for [`x`]. Enter the answer in interval notation [` [$a]<[$b]x+[$c] \leq [$d]`] -[_______________]{$intans} [@ AnswerFormatHelp("intervals") @]* +[_______________]{$intans} [@ helpLink("intervals") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_29.pg b/Contrib/CCCS/PreCalculus/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_29.pg index de9b0f1b4e..1fac0f916f 100644 --- a/Contrib/CCCS/PreCalculus/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_29.pg +++ b/Contrib/CCCS/PreCalculus/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_29.pg @@ -9,7 +9,7 @@ ## Author(Isaias Chairez Uriarte 4/3/19) ## MO(1) ## KEYWORDS('college algebra', 'compound linear inequality') - + ############################################## DOCUMENT(); @@ -17,7 +17,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "contextInequalities.pl", "contextFraction.pl", @@ -71,7 +71,7 @@ Solve the following inequality for [`x`]. Enter the answer in interval notation [` [$a]x+[$b] > [$c]x-[$d]>[$e]x-[$f]`] -[_______________]{$ans} [@ AnswerFormatHelp("intervals") @]* +[_______________]{$ans} [@ helpLink("intervals") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_6.pg b/Contrib/CCCS/PreCalculus/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_6.pg index 9b1f799b2e..498e6139d4 100644 --- a/Contrib/CCCS/PreCalculus/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_6.pg +++ b/Contrib/CCCS/PreCalculus/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_6.pg @@ -9,7 +9,7 @@ ## Author(James Morski) ## MO(1) ## KEYWORDS('college algebra', 'linear inequality') - + ############################################## DOCUMENT(); @@ -20,7 +20,7 @@ loadMacros( "PGML.pl", "contextFraction.pl", "contextInequalitySetBuilder.pl", -"AnswerFormatHelp.pl", + "parserOneOf.pl", "PGcourse.pl", ); @@ -46,8 +46,8 @@ Context("Interval"); $intans = Compute("(-inf,$rightint]"); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -59,13 +59,13 @@ TEXT(beginproblem()); BEGIN_PGML -Solve the following inequality for [`x`]. Enter the answer in interval notation. +Solve the following inequality for [`x`]. Enter the answer in interval notation. [` [$a]x-[$b] \leq [$c]`] -[_______________]{$intans} [@ AnswerFormatHelp("intervals") @]* +[_______________]{$intans} [@ helpLink("intervals") @]* -[$video]* +[$video]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_7.pg b/Contrib/CCCS/PreCalculus/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_7.pg index d7d66838dd..f04fccfccc 100644 --- a/Contrib/CCCS/PreCalculus/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_7.pg +++ b/Contrib/CCCS/PreCalculus/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_7.pg @@ -9,7 +9,7 @@ ## Author(James Morski) ## MO(1) ## KEYWORDS('college algebra', 'linear inequality') - + ############################################## DOCUMENT(); @@ -19,7 +19,7 @@ loadMacros( "MathObjects.pl", "PGML.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "contextInequalitySetBuilder.pl", "parserOneOf.pl", "PGcourse.pl", @@ -51,13 +51,13 @@ TEXT(beginproblem()); BEGIN_PGML -Solve the following inequality for [`x`]. Enter the answer in interval notation. +Solve the following inequality for [`x`]. Enter the answer in interval notation. [` [$a]x+[$b] \geq [$c]x-[$d]`] -[_______________]{$intans} [@ AnswerFormatHelp("intervals") @]* +[_______________]{$intans} [@ helpLink("intervals") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/2.7/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_2_7_440.pg b/Contrib/CCCS/PreCalculus/2.7/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_2_7_440.pg index 5a79b30d79..260ba24949 100644 --- a/Contrib/CCCS/PreCalculus/2.7/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_2_7_440.pg +++ b/Contrib/CCCS/PreCalculus/2.7/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_2_7_440.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -46,8 +46,8 @@ $ans2=Formula("($b-($d-$c))/$a"); $ans=List($ans1, $ans2); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -65,11 +65,11 @@ Solve the absolute value equation. If there is more than one correct answer, en [`|[$a]y-[$b]|+[$c]=[$d]`] -`y =` [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +`y =` [_________________]{$ans} [@ helpLink("numbers") @]* -[$video]* +[$video]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/2.7/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_2_7_442.pg b/Contrib/CCCS/PreCalculus/2.7/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_2_7_442.pg index c4f758a3e2..ad0dc4efbb 100644 --- a/Contrib/CCCS/PreCalculus/2.7/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_2_7_442.pg +++ b/Contrib/CCCS/PreCalculus/2.7/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_2_7_442.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -56,7 +56,7 @@ Solve the absolute value equation. If there is more than one correct answer, en [`2|x+[$b]|-[$c]=[$d]`] -`x =`[_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +`x =`[_________________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/PreCalculus/2.7/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_2_7_443.pg b/Contrib/CCCS/PreCalculus/2.7/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_2_7_443.pg index fbe9f1c8be..da2338680e 100644 --- a/Contrib/CCCS/PreCalculus/2.7/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_2_7_443.pg +++ b/Contrib/CCCS/PreCalculus/2.7/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_2_7_443.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -53,7 +53,7 @@ Solve the absolute value equation. If there is more than one correct answer, en [`3|x+[$a]|+[$c]=[$d]`] -`x =`[_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +`x =`[_________________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/PreCalculus/2.7/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_2_7_447.pg b/Contrib/CCCS/PreCalculus/2.7/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_2_7_447.pg index f61d1bf554..c9df215a8a 100644 --- a/Contrib/CCCS/PreCalculus/2.7/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_2_7_447.pg +++ b/Contrib/CCCS/PreCalculus/2.7/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_2_7_447.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -55,7 +55,7 @@ Solve the absolute value equation. If there is more than one correct answer, en [`[$a]|[$b]+z|+[$c]=[$d]`] -`z =`[_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +`z =`[_________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/2.7/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_2_7_449.pg b/Contrib/CCCS/PreCalculus/2.7/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_2_7_449.pg index 38fa9f5a70..2083a5a02d 100644 --- a/Contrib/CCCS/PreCalculus/2.7/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_2_7_449.pg +++ b/Contrib/CCCS/PreCalculus/2.7/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_2_7_449.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,7 +51,7 @@ Solve the absolute value equation. If there is more than one correct answer, en [`\left|\dfrac{[$a]}{[$b]}t-[$c]\right|+[$d]=[$e]`] -`t =` [_________________]{DNE} [@ AnswerFormatHelp("numbers") @]* +`t =` [_________________]{DNE} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_15.pg b/Contrib/CCCS/PreCalculus/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_15.pg index 8c8f21c385..7c6bcfe2c9 100644 --- a/Contrib/CCCS/PreCalculus/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_15.pg +++ b/Contrib/CCCS/PreCalculus/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_15.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserPopUp.pl", "parserImplicitEquation.pl", "PGML.pl", @@ -89,9 +89,9 @@ BEGIN_PGML Determine if the following relations represent [`y`] as a function of [`x`]. -+ [`` x=[$f1] ``] [___________]{$popup1} ++ [`` x=[$f1] ``] [___________]{$popup1} -+ [`` y=[$f2]``] [___________]{$popup2} ++ [`` y=[$f2]``] [___________]{$popup2} + [`` x=[$f3]``] [___________]{$popup3} diff --git a/Contrib/CCCS/PreCalculus/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_27.pg b/Contrib/CCCS/PreCalculus/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_27.pg index 47768f1cd3..89fb791f3b 100644 --- a/Contrib/CCCS/PreCalculus/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_27.pg +++ b/Contrib/CCCS/PreCalculus/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_27.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -57,8 +57,8 @@ $ans6=Compute("-$b*a-$c"); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -71,17 +71,17 @@ BEGIN_PGML Evaluate [`f(x)=[$f]`] at each of the following values: -[`f([$d])=`] [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +[`f([$d])=`] [_______________]{$ans1} [@ helpLink("numbers") @]* -[`f([$e])=`] [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +[`f([$e])=`] [_______________]{$ans2} [@ helpLink("numbers") @]* -[`f(a)=`] [_______________]{$ans3} [@ AnswerFormatHelp("formulas") @]* +[`f(a)=`] [_______________]{$ans3} [@ helpLink("formulas") @]* -[`f(a+h)=`] [_______________]{$ans4} [@ AnswerFormatHelp("formulas") @]* +[`f(a+h)=`] [_______________]{$ans4} [@ helpLink("formulas") @]* -[`f(-a)=`] [_______________]{$ans5} [@ AnswerFormatHelp("formulas") @]* +[`f(-a)=`] [_______________]{$ans5} [@ helpLink("formulas") @]* -[`-f(a)=`] [_______________]{$ans6} [@ AnswerFormatHelp("formulas") @]* +[`-f(a)=`] [_______________]{$ans6} [@ helpLink("formulas") @]* [$video]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_28.pg b/Contrib/CCCS/PreCalculus/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_28.pg index 4b9f6da09c..414386c665 100644 --- a/Contrib/CCCS/PreCalculus/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_28.pg +++ b/Contrib/CCCS/PreCalculus/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_28.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -62,17 +62,17 @@ BEGIN_PGML Evaluate [`f(x)=[$f]`] at each of the following values: -+ [`f([$d])=`] [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* ++ [`f([$d])=`] [_______________]{$ans1} [@ helpLink("numbers") @]* -+ [`f([$e])=`] [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* ++ [`f([$e])=`] [_______________]{$ans2} [@ helpLink("numbers") @]* -+ [`f(a)=`] [_______________]{$ans3} [@ AnswerFormatHelp("formulas") @]* ++ [`f(a)=`] [_______________]{$ans3} [@ helpLink("formulas") @]* -+ [`f(a+h)=`] [________________________________]{$ans4} [@ AnswerFormatHelp("formulas") @]* ++ [`f(a+h)=`] [________________________________]{$ans4} [@ helpLink("formulas") @]* -+ [`f(-a)=`] [_______________]{$ans5} [@ AnswerFormatHelp("formulas") @]* ++ [`f(-a)=`] [_______________]{$ans5} [@ helpLink("formulas") @]* -+ [`-f(a)=`] [_______________]{$ans6} [@ AnswerFormatHelp("formulas") @]* ++ [`-f(a)=`] [_______________]{$ans6} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_29.pg b/Contrib/CCCS/PreCalculus/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_29.pg index 7047eed1af..f9ea3cf64e 100644 --- a/Contrib/CCCS/PreCalculus/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_29.pg +++ b/Contrib/CCCS/PreCalculus/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_29.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -57,17 +57,17 @@ $ans6=Formula("-sqrt($b - a) - $c")->reduce; BEGIN_PGML Evaluate [`f(x)=[$f]`] at each of the following values: -+ [`f([$d])=`] [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* ++ [`f([$d])=`] [_______________]{$ans1} [@ helpLink("numbers") @]* -+ [`f([$b])=`] [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* ++ [`f([$b])=`] [_______________]{$ans2} [@ helpLink("numbers") @]* -+ [`f(a)=`] [_______________]{$ans3} [@ AnswerFormatHelp("formulas") @]* ++ [`f(a)=`] [_______________]{$ans3} [@ helpLink("formulas") @]* -+ [`f(a+h)=`] [_______________]{$ans4} [@ AnswerFormatHelp("formulas") @]* ++ [`f(a+h)=`] [_______________]{$ans4} [@ helpLink("formulas") @]* -+ [`f(-a)=`] [_______________]{$ans5} [@ AnswerFormatHelp("formulas") @]* ++ [`f(-a)=`] [_______________]{$ans5} [@ helpLink("formulas") @]* -+ [`-f(a)=`] [_______________]{$ans6} [@ AnswerFormatHelp("formulas") @]* ++ [`-f(a)=`] [_______________]{$ans6} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_30.pg b/Contrib/CCCS/PreCalculus/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_30.pg index 115d304058..fe92832f11 100644 --- a/Contrib/CCCS/PreCalculus/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_30.pg +++ b/Contrib/CCCS/PreCalculus/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_30.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -63,17 +63,17 @@ $ans6=Formula("-($b*a+$c)/($d*a+$e)")->reduce; BEGIN_PGML Evaluate [``f(x)=[$f]``] at each of the following values: -+ [`f([$m])=`] [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* ++ [`f([$m])=`] [_______________]{$ans1} [@ helpLink("numbers") @]* -+ [`f([$n])=`] [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* ++ [`f([$n])=`] [_______________]{$ans2} [@ helpLink("numbers") @]* -+ [`f(a)=`] [_______________]{$ans3} [@ AnswerFormatHelp("formulas") @]* ++ [`f(a)=`] [_______________]{$ans3} [@ helpLink("formulas") @]* -+ [`f(a+h)=`] [_______________]{$ans4} [@ AnswerFormatHelp("formulas") @]* ++ [`f(a+h)=`] [_______________]{$ans4} [@ helpLink("formulas") @]* -+ [`f(-a)=`] [_______________]{$ans5} [@ AnswerFormatHelp("formulas") @]* ++ [`f(-a)=`] [_______________]{$ans5} [@ helpLink("formulas") @]* -+ [`-f(a)=`] [_______________]{$ans6} [@ AnswerFormatHelp("formulas") @]* ++ [`-f(a)=`] [_______________]{$ans6} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_31.pg b/Contrib/CCCS/PreCalculus/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_31.pg index 2c52f5c074..b637dc0395 100644 --- a/Contrib/CCCS/PreCalculus/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_31.pg +++ b/Contrib/CCCS/PreCalculus/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_31.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -58,17 +58,17 @@ $ans6=Formula("-abs(a - $b) + abs(a + $c)")->reduce; BEGIN_PGML Evaluate [`f(x)=[$f]`] at each of the following values: -+ [`f([$d])=`] [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* ++ [`f([$d])=`] [_______________]{$ans1} [@ helpLink("numbers") @]* -+ [`f([$e])=`] [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* ++ [`f([$e])=`] [_______________]{$ans2} [@ helpLink("numbers") @]* -+ [`f(a)=`] [_______________]{$ans3} [@ AnswerFormatHelp("formulas") @]* ++ [`f(a)=`] [_______________]{$ans3} [@ helpLink("formulas") @]* -+ [`f(a+h)=`] [_______________]{$ans4} [@ AnswerFormatHelp("formulas") @]* ++ [`f(a+h)=`] [_______________]{$ans4} [@ helpLink("formulas") @]* -+ [`f(-a)=`] [_______________]{$ans5} [@ AnswerFormatHelp("formulas") @]* ++ [`f(-a)=`] [_______________]{$ans5} [@ helpLink("formulas") @]* -+ [`-f(a)=`] [_______________]{$ans6} [@ AnswerFormatHelp("formulas") @]* ++ [`-f(a)=`] [_______________]{$ans6} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_35.pg b/Contrib/CCCS/PreCalculus/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_35.pg index e1f2574abf..51fe959561 100644 --- a/Contrib/CCCS/PreCalculus/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_35.pg +++ b/Contrib/CCCS/PreCalculus/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_35.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -55,11 +55,11 @@ $ans2 = $g; BEGIN_PGML Let [` f(x) = [$f] `]. -Evaluate [`f([$c])=`] [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +Evaluate [`f([$c])=`] [_______________]{$ans1} [@ helpLink("numbers") @]* -Solve [`f(x)=[$d]`]. +Solve [`f(x)=[$d]`]. -+ `x=`[_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* ++ `x=`[_______________]{$ans2} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_37.pg b/Contrib/CCCS/PreCalculus/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_37.pg index 85835d0cf1..5d6e64a636 100644 --- a/Contrib/CCCS/PreCalculus/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_37.pg +++ b/Contrib/CCCS/PreCalculus/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_37.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,11 +51,11 @@ $ans2=List(-$b/2); BEGIN_PGML Let [` f(x) = [$f] `]. -Evaluate [`f([$c])=`] [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +Evaluate [`f([$c])=`] [_______________]{$ans1} [@ helpLink("numbers") @]* -Solve [`f(x)=[$d]`]. +Solve [`f(x)=[$d]`]. -+ `x=`[_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* ++ `x=`[_______________]{$ans2} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_41.pg b/Contrib/CCCS/PreCalculus/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_41.pg index eb66a1a9ce..36d2446200 100644 --- a/Contrib/CCCS/PreCalculus/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_41.pg +++ b/Contrib/CCCS/PreCalculus/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_41.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserPopUp.pl", "PGML.pl", @@ -61,8 +61,8 @@ $popup = PopUp( ); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -78,7 +78,7 @@ Use the vertical line test to determine whether the following graph shows a rela $BR $BR -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>300,height=>300,tex_size=>800 ) \} $BR @@ -92,7 +92,7 @@ Context()->normalStrings; BEGIN_PGML -[___________]{$popup} +[___________]{$popup} [$video]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_43.pg b/Contrib/CCCS/PreCalculus/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_43.pg index cafed1947c..03d4f71a54 100644 --- a/Contrib/CCCS/PreCalculus/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_43.pg +++ b/Contrib/CCCS/PreCalculus/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_43.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserPopUp.pl", "PGML.pl", @@ -52,7 +52,7 @@ $gr->lb( new Label(-.25,5.75,'y', $gr->lb( new Label(5.75,0.25,'x', 'red','center','middle')); -$refreshCachedImages = 1; +$refreshCachedImages = 1; Context("Interval"); $ans1=Interval("(-infinity,infinity)"); @@ -73,7 +73,7 @@ Use the vertical line test to determine whether the following graph shows a rela $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>300,height=>300,tex_size=>800 ) \} $BR (Click on graph to enlarge) diff --git a/Contrib/CCCS/PreCalculus/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_45.pg b/Contrib/CCCS/PreCalculus/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_45.pg index da55fa8db8..bedb6245f3 100644 --- a/Contrib/CCCS/PreCalculus/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_45.pg +++ b/Contrib/CCCS/PreCalculus/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_45.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserPopUp.pl", "PGML.pl", @@ -72,7 +72,7 @@ Use the vertical line test to determine whether the following graph shows a rela $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>300,height=>300,tex_size=>800 ) \} $BR (Click on graph to enlarge) diff --git a/Contrib/CCCS/PreCalculus/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_47.pg b/Contrib/CCCS/PreCalculus/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_47.pg index 6f82e4c499..caf60ca005 100644 --- a/Contrib/CCCS/PreCalculus/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_47.pg +++ b/Contrib/CCCS/PreCalculus/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_47.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserPopUp.pl", "PGML.pl", @@ -72,7 +72,7 @@ Use the vertical line test to determine whether the following graph shows a rela $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>300,height=>300,tex_size=>800 ) \} $BR (Click on graph to enlarge) diff --git a/Contrib/CCCS/PreCalculus/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_53.pg b/Contrib/CCCS/PreCalculus/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_53.pg index 817d3238bc..5e5313d4a0 100644 --- a/Contrib/CCCS/PreCalculus/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_53.pg +++ b/Contrib/CCCS/PreCalculus/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_53.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserPopUp.pl", "PGML.pl", @@ -72,7 +72,7 @@ BEGIN_TEXT $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>400,height=>400,tex_size=>800 ) \} $BR (Click on graph to enlarge) @@ -85,13 +85,13 @@ Context()->normalStrings; BEGIN_PGML Evaluate [`f(0)`], and solve for [`f(x) = [$min]`]. If part b has more than one answer, input the larger number in the second field. Otherwise leave the second field blank. -(a) [`f(0) = `] [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +(a) [`f(0) = `] [_______________]{$ans1} [@ helpLink("numbers") @]* -(b) [`f(`] [_]{$ans2} [`) = [$min]`] [@ AnswerFormatHelp("numbers") @]* +(b) [`f(`] [_]{$ans2} [`) = [$min]`] [@ helpLink("numbers") @]* -[`f(`] [_]{$ans3} [`) = [$min]`] [@ AnswerFormatHelp("numbers") @]* +[`f(`] [_]{$ans3} [`) = [$min]`] [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_63.pg b/Contrib/CCCS/PreCalculus/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_63.pg index 7728b8f08a..4b07f9b759 100644 --- a/Contrib/CCCS/PreCalculus/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_63.pg +++ b/Contrib/CCCS/PreCalculus/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_63.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserPopUp.pl", "niceTables.pl", "PGML.pl", @@ -61,7 +61,7 @@ LayoutTable( [ ['\(x\)' , '$x1' ,'$x2', '$x3'], ['\(y\)' , '$y1' ,'$y2', '$y3'], - ], + ], midrules => 1, align => '| c | c | c | c |', center => 0, diff --git a/Contrib/CCCS/PreCalculus/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_65.pg b/Contrib/CCCS/PreCalculus/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_65.pg index 3a8c7901fd..2d509dd856 100644 --- a/Contrib/CCCS/PreCalculus/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_65.pg +++ b/Contrib/CCCS/PreCalculus/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_65.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserPopUp.pl", "niceTables.pl", "PGML.pl", @@ -61,7 +61,7 @@ LayoutTable( [ ['\(x\)' , '$x1' ,'$x2', '$x3'], ['\(y\)' , '$y1' ,'$y2', '$y3'], - ], + ], midrules => 1, align => '| c | c | c | c |', center => 0, diff --git a/Contrib/CCCS/PreCalculus/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_66.pg b/Contrib/CCCS/PreCalculus/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_66.pg index f5954eb15d..87f6a8614d 100644 --- a/Contrib/CCCS/PreCalculus/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_66.pg +++ b/Contrib/CCCS/PreCalculus/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_66.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserPopUp.pl", "niceTables.pl", "PGML.pl", @@ -72,7 +72,7 @@ LayoutTable( [ ['\(x\)' , '0', '1' ,'2' ,'3' ,'4' ,'5' ,'6','7','8','9'], ['\(y\)' , '$y0', $y1 ,$y2 ,$y3 ,$y4 ,$y5 ,$y6, $y7, $y8, $y9], - ], + ], midrules => 1, align => '| c | c | c | c | c | c | c | c | c | c | c |', center => 0, @@ -86,9 +86,9 @@ END_TEXT BEGIN_PGML -+ [`f([$ax]) = `] [_____]{$ay} [@ AnswerFormatHelp("numbers") @]* ++ [`f([$ax]) = `] [_____]{$ay} [@ helpLink("numbers") @]* -+ The [`x`] value such that [`f(x) = [$by]`] is [`x=`] [_____]{$bx} [@ AnswerFormatHelp("numbers") @]* ++ The [`x`] value such that [`f(x) = [$by]`] is [`x=`] [_____]{$bx} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_7.pg b/Contrib/CCCS/PreCalculus/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_7.pg index fafe5b28e3..0c68b5db5a 100644 --- a/Contrib/CCCS/PreCalculus/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_7.pg +++ b/Contrib/CCCS/PreCalculus/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_7.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserPopUp.pl", "parserImplicitEquation.pl", "PGML.pl", @@ -35,8 +35,8 @@ $showPartialCorrectAnswers = 0; $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -85,9 +85,9 @@ BEGIN_PGML Determine if each of the following relations represents a function. -+ [` \{([$i1],[$d1]),([$i2],[$d2]),([$i3],[$d3])\} `] [___________]{$popup1} ++ [` \{([$i1],[$d1]),([$i2],[$d2]),([$i3],[$d3])\} `] [___________]{$popup1} -+ [` \{([$ck1],[$cf1]),([$ck2],[$cf2]),([$ck3],[$cf3])\} `] [___________]{$popup1} ++ [` \{([$ck1],[$cf1]),([$ck2],[$cf2]),([$ck3],[$cf3])\} `] [___________]{$popup1} [$video]* diff --git a/Contrib/CCCS/PreCalculus/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_71.pg b/Contrib/CCCS/PreCalculus/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_71.pg index 68b6d52cba..0bfd50fed2 100644 --- a/Contrib/CCCS/PreCalculus/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_71.pg +++ b/Contrib/CCCS/PreCalculus/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_71.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -53,15 +53,15 @@ $ans5=$f->eval(x=>$g); BEGIN_PGML Evaluate [`f(x)=[$f]`] at the following values: -+ [`f([$b])=`] [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* ++ [`f([$b])=`] [_______________]{$ans1} [@ helpLink("numbers") @]* -+ [`f([$c])=`] [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* ++ [`f([$c])=`] [_______________]{$ans2} [@ helpLink("numbers") @]* -+ [`f([$d])=`] [_______________]{$ans3} [@ AnswerFormatHelp("numbers") @]* ++ [`f([$d])=`] [_______________]{$ans3} [@ helpLink("numbers") @]* -+ [`f([$e])=`] [_______________]{$ans4} [@ AnswerFormatHelp("numbers") @]* ++ [`f([$e])=`] [_______________]{$ans4} [@ helpLink("numbers") @]* -+ [`f([$g])=`] [_______________]{$ans5} [@ AnswerFormatHelp("numbers") @]* ++ [`f([$g])=`] [_______________]{$ans5} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_75.pg b/Contrib/CCCS/PreCalculus/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_75.pg index f78ab9225e..57c604f057 100644 --- a/Contrib/CCCS/PreCalculus/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_75.pg +++ b/Contrib/CCCS/PreCalculus/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_75.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -55,9 +55,9 @@ $ans1=Formula("$ansf - $ansh")->reduce; # Main text BEGIN_PGML -Given the functions [`f(x)=[$f]`] and [`h(x)=[$h]`], evaluate the expression: +Given the functions [`f(x)=[$f]`] and [`h(x)=[$h]`], evaluate the expression: -[`f\left(\displaystyle\frac{7}{[$i]}\right)-h([$j])=`] [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +[`f\left(\displaystyle\frac{7}{[$i]}\right)-h([$j])=`] [_______________]{$ans1} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_9.pg b/Contrib/CCCS/PreCalculus/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_9.pg index a7c8500c20..f2273127db 100644 --- a/Contrib/CCCS/PreCalculus/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_9.pg +++ b/Contrib/CCCS/PreCalculus/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_9.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserPopUp.pl", "parserImplicitEquation.pl", "PGML.pl", @@ -91,9 +91,9 @@ BEGIN_PGML Determine if the following relations represent [`y`] as a function of [`x`]. -+ [` x=[$f1] `] [___________]{$popup1} ++ [` x=[$f1] `] [___________]{$popup1} -+ [`[$f2]+y=[$c]`] [___________]{$popup2} ++ [`[$f2]+y=[$c]`] [___________]{$popup2} + [`[$f3]+[$f32]=[$e]`] [___________]{$popup3} diff --git a/Contrib/CCCS/PreCalculus/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_10.pg b/Contrib/CCCS/PreCalculus/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_10.pg index a5cb02e455..58caf66c54 100644 --- a/Contrib/CCCS/PreCalculus/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_10.pg +++ b/Contrib/CCCS/PreCalculus/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_10.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -52,7 +52,7 @@ BEGIN_PGML Find the domain of [` f(x)=[$f] `]. Enter the solution in interval notation. -[_______________]{$ans} [@ AnswerFormatHelp("intervals") @]* +[_______________]{$ans} [@ helpLink("intervals") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_15.pg b/Contrib/CCCS/PreCalculus/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_15.pg index 278fc856e6..bf430372bc 100644 --- a/Contrib/CCCS/PreCalculus/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_15.pg +++ b/Contrib/CCCS/PreCalculus/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_15.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -54,7 +54,7 @@ BEGIN_PGML Find the domain of [`` f(x)=[$f] ``]. Enter the solution in interval notation. -[_______________]{$ans} [@ AnswerFormatHelp("intervals") @]* +[_______________]{$ans} [@ helpLink("intervals") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_17.pg b/Contrib/CCCS/PreCalculus/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_17.pg index a8b5a8945f..9a0661b25d 100644 --- a/Contrib/CCCS/PreCalculus/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_17.pg +++ b/Contrib/CCCS/PreCalculus/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_17.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -52,7 +52,7 @@ BEGIN_PGML Find the domain of [`` f(x)=[$f] ``]. Enter the solution in interval notation. -[_______________________]{$ans} [@ AnswerFormatHelp("intervals") @]* +[_______________________]{$ans} [@ helpLink("intervals") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_27.pg b/Contrib/CCCS/PreCalculus/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_27.pg index 2265a2bd89..73b8cc7668 100644 --- a/Contrib/CCCS/PreCalculus/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_27.pg +++ b/Contrib/CCCS/PreCalculus/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_27.pg @@ -23,7 +23,7 @@ loadMacros( "PGnumericalmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", ); @@ -52,7 +52,7 @@ size=>[600,600] $gr->stamps( open_circle($a,$c,'blue') ); $gr->stamps( closed_circle($b,$d,'blue') ); -add_functions($gr, "$m*(x-$a)+$c for x in <$a,$b>". +add_functions($gr, "$m*(x-$a)+$c for x in <$a,$b>". " using color:blue and weight:3"); $refreshCachedImages=1; @@ -64,8 +64,8 @@ $ans1=Interval("($a,$b]"); $ans2=Interval("($c,$d]"); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -80,7 +80,7 @@ Find the domain and range of \( y=f(x) \) whose graph is given below. $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>300,height=>300,tex_size=>800 ) \} $BR (Click on graph to enlarge) @@ -88,11 +88,11 @@ $BR $BR $BR Domain: \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR $BR Range: \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BCENTER $BR $BR diff --git a/Contrib/CCCS/PreCalculus/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_31.pg b/Contrib/CCCS/PreCalculus/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_31.pg index fc0df2884d..8d06c6c6d1 100644 --- a/Contrib/CCCS/PreCalculus/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_31.pg +++ b/Contrib/CCCS/PreCalculus/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_31.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -62,11 +62,11 @@ $ans2=Interval("[-$a,1/$c*($e-$b)**2-$a]"); Context()->texStrings; BEGIN_TEXT $BR -Find the domain and range of \( y=f(x) \) whose graph is given below. +Find the domain and range of \( y=f(x) \) whose graph is given below. $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>300,height=>300,tex_size=>800 ) \} $BR (Click on graph to enlarge) @@ -74,11 +74,11 @@ $BR $BR $BR Domain: \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR $BR Range: \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR $BR $ECENTER diff --git a/Contrib/CCCS/PreCalculus/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_32.pg b/Contrib/CCCS/PreCalculus/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_32.pg index 858d95d445..3bcefe6d1a 100644 --- a/Contrib/CCCS/PreCalculus/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_32.pg +++ b/Contrib/CCCS/PreCalculus/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_32.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -63,7 +63,7 @@ Find the domain and range of \( y=f(x) \) whose graph is given below. $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>300,height=>300,tex_size=>800 ) \} $BR (Click on graph to enlarge) @@ -71,11 +71,11 @@ $BR $BR $BR Domain: \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR $BR Range: \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR $BR $ECENTER diff --git a/Contrib/CCCS/PreCalculus/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_33.pg b/Contrib/CCCS/PreCalculus/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_33.pg index b7569d5e2b..129f2d19e8 100644 --- a/Contrib/CCCS/PreCalculus/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_33.pg +++ b/Contrib/CCCS/PreCalculus/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_33.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -32,10 +32,10 @@ TEXT(beginproblem()); ########################### # Setup -$a=random(2,5); -$b=non_zero_random(0,5); +$a=random(2,5); +$b=non_zero_random(0,5); + - $gr = init_graph(-6,-6,6,6, axes=>[0,0], grid=>[12,12], @@ -65,18 +65,18 @@ Find the domain and range of the transformed square root function whose graph is $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>300,height=>300,tex_size=>800 ) \} $BR (Click on graph to enlarge) $BR $BR Domain: \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR $BR Range: \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR $BR $ECENTER diff --git a/Contrib/CCCS/PreCalculus/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_39.pg b/Contrib/CCCS/PreCalculus/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_39.pg index 7133f6ff58..5bf1299e6b 100644 --- a/Contrib/CCCS/PreCalculus/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_39.pg +++ b/Contrib/CCCS/PreCalculus/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_39.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "contextPiecewiseFunction.pl", @@ -46,12 +46,12 @@ $range = "(-infinity, -$d]U($f,infinity)"; Context("PiecewiseFunction"); Context()->noreduce("(-x)-y"); -$fun = PiecewiseFunction("$c*x-$d if x <= 0 else $e*x+$f if x > 0")->reduce; +$fun = PiecewiseFunction("$c*x-$d if x <= 0 else $e*x+$f if x > 0")->reduce; $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -66,9 +66,9 @@ Graph the piecewise function to find the domain and range. Give the answers in [` f(x)=[$fun] `] - Domain: [_________________]{$domain} [@ AnswerFormatHelp("intervals") @]* + Domain: [_________________]{$domain} [@ helpLink("intervals") @]* - Range: [_________________]{$range} [@ AnswerFormatHelp("intervals") @]* + Range: [_________________]{$range} [@ helpLink("intervals") @]* [$video]* diff --git a/Contrib/CCCS/PreCalculus/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_41.pg b/Contrib/CCCS/PreCalculus/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_41.pg index d70355d37a..911ce5eba0 100644 --- a/Contrib/CCCS/PreCalculus/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_41.pg +++ b/Contrib/CCCS/PreCalculus/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_41.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "contextPiecewiseFunction.pl", "PGML.pl", @@ -45,7 +45,7 @@ $range = Interval("[0,infinity)"); Context("PiecewiseFunction"); Context()->noreduce("(-x)-y"); -$fun = PiecewiseFunction("$d if x < -$a else x**2 if x >= -$a")->reduce; +$fun = PiecewiseFunction("$d if x < -$a else x**2 if x >= -$a")->reduce; ############################################## @@ -57,9 +57,9 @@ Graph the function to find the domain and range. Give the answers in interval n [` f(x)=[$fun] `] - Domain: [_________________]{$domain} [@ AnswerFormatHelp("intervals") @]* + Domain: [_________________]{$domain} [@ helpLink("intervals") @]* - Range: [_________________]{$range} [@ AnswerFormatHelp("intervals") @]* + Range: [_________________]{$range} [@ helpLink("intervals") @]* diff --git a/Contrib/CCCS/PreCalculus/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_44.pg b/Contrib/CCCS/PreCalculus/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_44.pg index f5f47eaf65..d82745ad96 100644 --- a/Contrib/CCCS/PreCalculus/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_44.pg +++ b/Contrib/CCCS/PreCalculus/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_44.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -50,7 +50,7 @@ $domain = Interval("(-infinity,infinity)"); if ($d+$a*$c > $f-$a*$e) { $range = Interval("(-infinity, $d+$a*$c)"); -} else { +} else { $range = Interval("(-infinity, $f-$a*$e]"); } @@ -65,7 +65,7 @@ $BR Graph the piecewise function to find its domain and range. $max $BR \[ -f(x) = +f(x) = \left\lbrace \begin{array}{lcl} $f1, && \mbox{ if } x < $a, \\ @@ -81,10 +81,10 @@ $BR $BR Domain: \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR Range: \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR diff --git a/Contrib/CCCS/PreCalculus/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_45.pg b/Contrib/CCCS/PreCalculus/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_45.pg index 7422022434..5c1dad6534 100644 --- a/Contrib/CCCS/PreCalculus/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_45.pg +++ b/Contrib/CCCS/PreCalculus/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_45.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "contextPiecewiseFunction.pl", "PGML.pl", @@ -53,20 +53,20 @@ $range = Interval("(-infinity, -$d-$c*$b)U(sqrt($a),infinity)"); Context("PiecewiseFunction"); Context()->noreduce("(-x)-y"); -$fun = PiecewiseFunction("$c*x-$d if x < -$b else sqrt(x) if x > $a")->reduce; +$fun = PiecewiseFunction("$c*x-$d if x < -$b else sqrt(x) if x > $a")->reduce; ############################################## # Main text BEGIN_PGML -Graph the piecewise function to find its domain and range. +Graph the piecewise function to find its domain and range. [` f(x)=[$fun] `] - Domain: [_________________]{$domain} [@ AnswerFormatHelp("intervals") @]* + Domain: [_________________]{$domain} [@ helpLink("intervals") @]* - Range: [_________________]{$range} [@ AnswerFormatHelp("intervals") @]* + Range: [_________________]{$range} [@ helpLink("intervals") @]* diff --git a/Contrib/CCCS/PreCalculus/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_47.pg b/Contrib/CCCS/PreCalculus/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_47.pg index 0f4001ca77..2aa4cdd829 100644 --- a/Contrib/CCCS/PreCalculus/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_47.pg +++ b/Contrib/CCCS/PreCalculus/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_47.pg @@ -17,7 +17,7 @@ # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PG.pl", @@ -28,7 +28,7 @@ loadMacros( "PGgraphmacros.pl", "extraAnswerEvaluators.pl", "contextPiecewiseFunction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,13 +48,13 @@ Context()->noreduce("(-x)-y"); $f1=Formula("$a"); $f2=Formula("$b"); -$fun = PiecewiseFunction("$f1 if x < 0 else $f2 if x >= 0")->reduce; +$fun = PiecewiseFunction("$f1 if x < 0 else $f2 if x >= 0")->reduce; Context("Numeric"); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -66,13 +66,13 @@ Given the piecewise function, find the function values. [` f(x)=[$fun] `] - `f([$c])=` [_________________]{if ($c<0) {$f1->eval(x=>$c)} else{$f2->eval(x=>$c)}} [@ AnswerFormatHelp("numbers") @]* + `f([$c])=` [_________________]{if ($c<0) {$f1->eval(x=>$c)} else{$f2->eval(x=>$c)}} [@ helpLink("numbers") @]* - `f(0)=` [_________________]{if (0<0) {$f1->eval(x=>0)} else{$f2->eval(x=>0)}}[@ AnswerFormatHelp("numbers") @]* + `f(0)=` [_________________]{if (0<0) {$f1->eval(x=>0)} else{$f2->eval(x=>0)}}[@ helpLink("numbers") @]* - `f([$d])=` [_________________]{if ($d<0) {$f1->eval(x=>$d)} else{$f2->eval(x=>$d)}} [@ AnswerFormatHelp("numbers") @]* + `f([$d])=` [_________________]{if ($d<0) {$f1->eval(x=>$d)} else{$f2->eval(x=>$d)}} [@ helpLink("numbers") @]* - `f([$e])=` [_________________]{if ($e<0) {$f1->eval(x=>$e)} else{$f2->eval(x=>$e)}} [@ AnswerFormatHelp("numbers") @]* + `f([$e])=` [_________________]{if ($e<0) {$f1->eval(x=>$e)} else{$f2->eval(x=>$e)}} [@ helpLink("numbers") @]* [$video]* diff --git a/Contrib/CCCS/PreCalculus/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_49.pg b/Contrib/CCCS/PreCalculus/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_49.pg index 03373af90a..024dff259d 100644 --- a/Contrib/CCCS/PreCalculus/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_49.pg +++ b/Contrib/CCCS/PreCalculus/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_49.pg @@ -17,7 +17,7 @@ # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PG.pl", @@ -28,7 +28,7 @@ loadMacros( "PGgraphmacros.pl", "extraAnswerEvaluators.pl", "contextPiecewiseFunction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,7 +51,7 @@ Context()->noreduce("(-x)-y"); $f1=Formula("$a*x+$f"); $f2=Formula("$b*x+$g"); -$fun = PiecewiseFunction("$f1 if x < $h else $f2 if x >= $h")->reduce; +$fun = PiecewiseFunction("$f1 if x < $h else $f2 if x >= $h")->reduce; Context("Numeric"); @@ -62,13 +62,13 @@ Given the piecewise function, find the function values. [` f(x)=[$fun] `] - [`f([$c])=`] [_________________]{if ($c<$h) {$f1->eval(x=>$c)} else{$f2->eval(x=>$c)}} [@ AnswerFormatHelp("numbers") @]* + [`f([$c])=`] [_________________]{if ($c<$h) {$f1->eval(x=>$c)} else{$f2->eval(x=>$c)}} [@ helpLink("numbers") @]* - [`f(0)=`] [_________________]{if (0<$h) {$f1->eval(x=>0)} else{$f2->eval(x=>0)}}[@ AnswerFormatHelp("numbers") @]* + [`f(0)=`] [_________________]{if (0<$h) {$f1->eval(x=>0)} else{$f2->eval(x=>0)}}[@ helpLink("numbers") @]* - [`f([$d])=`] [_________________]{if ($d<$h) {$f1->eval(x=>$d)} else{$f2->eval(x=>$d)}} [@ AnswerFormatHelp("numbers") @]* + [`f([$d])=`] [_________________]{if ($d<$h) {$f1->eval(x=>$d)} else{$f2->eval(x=>$d)}} [@ helpLink("numbers") @]* - [`f([$e])=`] [_________________]{if ($e<$h) {$f1->eval(x=>$e)} else{$f2->eval(x=>$e)}} [@ AnswerFormatHelp("numbers") @]* + [`f([$e])=`] [_________________]{if ($e<$h) {$f1->eval(x=>$e)} else{$f2->eval(x=>$e)}} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_51.pg b/Contrib/CCCS/PreCalculus/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_51.pg index bcbae062b9..5fd49bc07d 100644 --- a/Contrib/CCCS/PreCalculus/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_51.pg +++ b/Contrib/CCCS/PreCalculus/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_51.pg @@ -17,7 +17,7 @@ # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PG.pl", @@ -28,7 +28,7 @@ loadMacros( "PGgraphmacros.pl", "extraAnswerEvaluators.pl", "contextPiecewiseFunction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -54,7 +54,7 @@ $f1=Formula("$a*x+$f"); $f2=Formula("$e"); $f3=Formula("$b*x+$g"); -$fun = PiecewiseFunction("$f1 if x < $h else $f2 if $h <= x < $i else $f3 if x>=$i")->reduce; +$fun = PiecewiseFunction("$f1 if x < $h else $f2 if $h <= x < $i else $f3 if x>=$i")->reduce; Context("Numeric"); @@ -65,13 +65,13 @@ Given the piecewise function, find the function values. [` f(x)=[$fun] `] - [`f([$c])=`] [_________________]{if ($c<$h) {$f1->eval(x=>$c)} elsif ($c>=$i) {$f3->eval(x=>$c)} else{$f2->eval(x=>$c)}} [@ AnswerFormatHelp("numbers") @]* + [`f([$c])=`] [_________________]{if ($c<$h) {$f1->eval(x=>$c)} elsif ($c>=$i) {$f3->eval(x=>$c)} else{$f2->eval(x=>$c)}} [@ helpLink("numbers") @]* - [`f(0)=`] [_________________]{if (0<$h) {$f1->eval(x=>0)} elsif (0>=$i) {$f3->eval(x=>0)} else{$f2->eval(x=>0)}}[@ AnswerFormatHelp("numbers") @]* + [`f(0)=`] [_________________]{if (0<$h) {$f1->eval(x=>0)} elsif (0>=$i) {$f3->eval(x=>0)} else{$f2->eval(x=>0)}}[@ helpLink("numbers") @]* - [`f([$d])=`] [_________________]{if ($d<$h) {$f1->eval(x=>$d)} elsif ($d>=$i) {$f3->eval(x=>$d)} else{$f2->eval(x=>$d)}} [@ AnswerFormatHelp("numbers") @]* + [`f([$d])=`] [_________________]{if ($d<$h) {$f1->eval(x=>$d)} elsif ($d>=$i) {$f3->eval(x=>$d)} else{$f2->eval(x=>$d)}} [@ helpLink("numbers") @]* - [`f([$e])=`] [_________________]{if ($e<$h) {$f1->eval(x=>$e)} elsif ($e>=$i) {$f3->eval(x=>$e)} else{$f2->eval(x=>$e)}} [@ AnswerFormatHelp("numbers") @]* + [`f([$e])=`] [_________________]{if ($e<$h) {$f1->eval(x=>$e)} elsif ($e>=$i) {$f3->eval(x=>$e)} else{$f2->eval(x=>$e)}} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_6.pg b/Contrib/CCCS/PreCalculus/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_6.pg index 14b13a9e58..b6fcbadd0e 100644 --- a/Contrib/CCCS/PreCalculus/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_6.pg +++ b/Contrib/CCCS/PreCalculus/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_6.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -43,8 +43,8 @@ Context("Interval"); $ans=Compute("(-infinity,infinity)"); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -57,7 +57,7 @@ BEGIN_PGML Find the domain of [` f(x)=[$f] `]. Enter the solution in interval notation. -[_____________________]{$ans} [@ AnswerFormatHelp("intervals") @]* +[_____________________]{$ans} [@ helpLink("intervals") @]* [$video]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_8.pg b/Contrib/CCCS/PreCalculus/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_8.pg index d4bc3d7598..71bd73fc46 100644 --- a/Contrib/CCCS/PreCalculus/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_8.pg +++ b/Contrib/CCCS/PreCalculus/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_8.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -44,8 +44,8 @@ Context("Interval"); $ans=Compute("[$b,infinity)"); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -58,7 +58,7 @@ BEGIN_PGML Find the domain of [` f(x)=[$f] `]. Enter the solution in interval notation. -[_______________]{$ans} [@ AnswerFormatHelp("intervals") @]* +[_______________]{$ans} [@ helpLink("intervals") @]* [$video]* diff --git a/Contrib/CCCS/PreCalculus/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_StepPractice.pg b/Contrib/CCCS/PreCalculus/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_StepPractice.pg index a1897d1981..d035df54fd 100644 --- a/Contrib/CCCS/PreCalculus/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_StepPractice.pg +++ b/Contrib/CCCS/PreCalculus/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_StepPractice.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -68,7 +68,7 @@ Find the domain and range of \( y=f(x) \) whose graph is given below. $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>200,height=>200,tex_size=>800 ) \} $BR (Click on graph to enlarge) @@ -76,11 +76,11 @@ $BCENTER $BR $BR Domain: \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR $BR Range: \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR $BR diff --git a/Contrib/CCCS/PreCalculus/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_VIDEO.pg b/Contrib/CCCS/PreCalculus/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_VIDEO.pg index b5283bd391..27b792d76d 100644 --- a/Contrib/CCCS/PreCalculus/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_VIDEO.pg +++ b/Contrib/CCCS/PreCalculus/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_VIDEO.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -62,7 +62,7 @@ $BR Graph the piecewise function to find its domain and range. $BR \[ -f(x) = +f(x) = \left\lbrace \begin{array}{lcl} $f1, && \mbox{ if } x < -$a, \\ @@ -78,10 +78,10 @@ $BR $BR Domain: \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR Range: \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR diff --git a/Contrib/CCCS/PreCalculus/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_VIDEO_1.pg b/Contrib/CCCS/PreCalculus/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_VIDEO_1.pg index 0c42a56fe2..6d469942fd 100644 --- a/Contrib/CCCS/PreCalculus/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_VIDEO_1.pg +++ b/Contrib/CCCS/PreCalculus/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_VIDEO_1.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "contextPiecewiseFunction.pl", @@ -45,21 +45,21 @@ $f = random(3,10,1); Context("PiecewiseFunction"); Context()->noreduce("(-x)-y"); -$fun = PiecewiseFunction("$c*x+$d if x < 1 else -$e*x+$f if x >= 1")->reduce; +$fun = PiecewiseFunction("$c*x+$d if x < 1 else -$e*x+$f if x >= 1")->reduce; $domain = Interval("(-infinity,infinity)"); if ($d+$c > $f-$e) { $range = Interval("(-infinity, $d+$c)"); -} else { +} else { $range = Interval("(-infinity, $f-$e]"); } Context("Interval"); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -71,16 +71,16 @@ BEGIN_PGML >> [$video]* << ->> YouTube video of Craig Faulhaber, mathemagician, embedded using an iframe. << +>> YouTube video of Craig Faulhaber, mathemagician, embedded using an iframe. << >> If the video does not work, [@ htmlLink("https://youtu.be/RxnkI19AFb4","click here to go to YouTube directly.") @]* << -Graph the piecewise function to find the domain and range +Graph the piecewise function to find the domain and range [` f(x)=[$fun] `]. - Domain: [_______________]{$domain} [@ AnswerFormatHelp("intervals") @]* + Domain: [_______________]{$domain} [@ helpLink("intervals") @]* - Range: [_______________]{$range} [@ AnswerFormatHelp("intervals") @]* + Range: [_______________]{$range} [@ helpLink("intervals") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_11.pg b/Contrib/CCCS/PreCalculus/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_11.pg index 05aaadd9f1..7266d75edb 100644 --- a/Contrib/CCCS/PreCalculus/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_11.pg +++ b/Contrib/CCCS/PreCalculus/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_11.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,7 +51,7 @@ $ans=Compute("2*$b*$c+$b*h")->reduce; BEGIN_PGML Find the average rate of change for [``f(t)=[$f]``] over the interval [`[[$c],[$c]+h] `]. -[_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_16.pg b/Contrib/CCCS/PreCalculus/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_16.pg index e9fac0cad2..5d342ceb0e 100644 --- a/Contrib/CCCS/PreCalculus/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_16.pg +++ b/Contrib/CCCS/PreCalculus/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_16.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -65,7 +65,7 @@ Let the graph of \( y=f(x) \) be given below. $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>400,height=>400,tex_size=>800 ) \} $BR (Click on graph to enlarge) @@ -73,7 +73,7 @@ $BR $BR $BR Estimate the average rate of change for the graph above from \(x=1\) to \(x=4\). \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $ECENTER END_TEXT Context()->normalStrings; diff --git a/Contrib/CCCS/PreCalculus/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_17.pg b/Contrib/CCCS/PreCalculus/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_17.pg index 6a8f4bc931..ee7d949b91 100644 --- a/Contrib/CCCS/PreCalculus/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_17.pg +++ b/Contrib/CCCS/PreCalculus/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_17.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -65,7 +65,7 @@ Let the graph of \( y=f(x) \) be given below. $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>400,height=>400,tex_size=>800 ) \} $BR (Click on graph to enlarge) @@ -73,7 +73,7 @@ $BR $BR $BR Estimate the average rate of change for the graph above from \(x=2\) to \(x=3\). \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $ECENTER END_TEXT Context()->normalStrings; diff --git a/Contrib/CCCS/PreCalculus/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_18.pg b/Contrib/CCCS/PreCalculus/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_18.pg index b00a82bdc2..4b0ab9bdb7 100644 --- a/Contrib/CCCS/PreCalculus/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_18.pg +++ b/Contrib/CCCS/PreCalculus/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_18.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserPopUp.pl", "contextLimitedPoint.pl", "PGML.pl", @@ -72,7 +72,7 @@ Find the intervals where the function \( y=f(x) \), whose graph is given below, $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>400,height=>400,tex_size=>800 ) \} $BR (Click on graph to enlarge) @@ -82,11 +82,11 @@ Context()->normalStrings; BEGIN_PGML ->>Increasing: [___________]{$ans1}[@ AnswerFormatHelp("formulas") @]*<< +>>Increasing: [___________]{$ans1}[@ helpLink("formulas") @]*<< ->>Decreasing: [___________]{$ans2}[@ AnswerFormatHelp("formulas") @]*<< +>>Decreasing: [___________]{$ans2}[@ helpLink("formulas") @]*<< ->>Absolute minimum: [______]{$popup1}[___________]{$ans3}[@ AnswerFormatHelp("numbers") @]*<< +>>Absolute minimum: [______]{$popup1}[___________]{$ans3}[@ helpLink("numbers") @]*<< END_PGML diff --git a/Contrib/CCCS/PreCalculus/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_22.pg b/Contrib/CCCS/PreCalculus/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_22.pg index 54e40919bc..b19261dd18 100644 --- a/Contrib/CCCS/PreCalculus/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_22.pg +++ b/Contrib/CCCS/PreCalculus/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_22.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserPopUp.pl", "PGML.pl", @@ -76,7 +76,7 @@ Find the intervals where the function \( y=f(x) \), whose graph is given below, $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>400,height=>400,tex_size=>800 ) \} $BR (Click on graph to enlarge) @@ -88,14 +88,14 @@ Context()->normalStrings; BEGIN_PGML ->>Increasing: [_______________]{$ans1} [@ AnswerFormatHelp("intervals") @]*<< +>>Increasing: [_______________]{$ans1} [@ helpLink("intervals") @]*<< ->>Decreasing: [________________]{$ans2} [@ AnswerFormatHelp("intervals") @]*<< +>>Decreasing: [________________]{$ans2} [@ helpLink("intervals") @]*<< ->>Local minimum: [______]{$popup1} [_________]{$ans4} [@ AnswerFormatHelp("numbers") @]*<< +>>Local minimum: [______]{$popup1} [_________]{$ans4} [@ helpLink("numbers") @]*<< ->>Local maximum: [______]{$popup1} [_________]{$ans3} [@ AnswerFormatHelp("numbers") @]*<< +>>Local maximum: [______]{$popup1} [_________]{$ans3} [@ helpLink("numbers") @]*<< END_PGML diff --git a/Contrib/CCCS/PreCalculus/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_23.pg b/Contrib/CCCS/PreCalculus/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_23.pg index 3841d4ee2e..ed1274d714 100644 --- a/Contrib/CCCS/PreCalculus/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_23.pg +++ b/Contrib/CCCS/PreCalculus/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_23.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", ); @@ -62,8 +62,8 @@ $ans3= Compute(-(1/3)*$b**3+(($b+$a)/2)*$b**2-$a*$b*$b); $ans4= Compute(-(1/3)*$a**3+(($b+$a)/2)*$a**2-$a*$b*$a); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -79,7 +79,7 @@ Find the intervals where the function \( y=f(x) \), whose graph is given below, $BR $BR -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>400,height=>400,tex_size=>800 ) \} $BR (Click on graph to enlarge) @@ -87,19 +87,19 @@ $BR $BR $BR Increasing: \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR $BR Decreasing: \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR $BR Local maximum y = \{ ans_rule(20) \} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} $BR $BR Local minimum y = \{ ans_rule(20) \} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} $BR $BR diff --git a/Contrib/CCCS/PreCalculus/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_24.pg b/Contrib/CCCS/PreCalculus/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_24.pg index ee99846e68..3b91a6120b 100644 --- a/Contrib/CCCS/PreCalculus/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_24.pg +++ b/Contrib/CCCS/PreCalculus/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_24.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -63,7 +63,7 @@ Find the intervals where the function \( y=f(x) \), whose graph is given below, $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>400,height=>400,tex_size=>800 ) \} $BR (Click on graph to enlarge) @@ -71,15 +71,15 @@ $BR $BR $BR Increasing: \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR $BR Decreasing: \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR $BR Absolute minimum y = \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $ECENTER END_TEXT Context()->normalStrings; diff --git a/Contrib/CCCS/PreCalculus/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_25.pg b/Contrib/CCCS/PreCalculus/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_25.pg index a71a8fdb4b..46094df4a2 100644 --- a/Contrib/CCCS/PreCalculus/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_25.pg +++ b/Contrib/CCCS/PreCalculus/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_25.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -63,22 +63,22 @@ Find the intervals where the function \( y=f(x) \), whose graph is given below, $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>400,height=>400,tex_size=>800 ) \} $BR (Click on graph to enlarge) $BR $BR Increasing: \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR $BR Decreasing: \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR $BR Absolute maximum y = \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $ECENTER END_TEXT Context()->normalStrings; diff --git a/Contrib/CCCS/PreCalculus/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_26.pg b/Contrib/CCCS/PreCalculus/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_26.pg index 2acb48d867..294cc867ee 100644 --- a/Contrib/CCCS/PreCalculus/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_26.pg +++ b/Contrib/CCCS/PreCalculus/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_26.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "niceTables.pl", "PGML.pl", "PGcourse.pl", @@ -60,7 +60,7 @@ LayoutTable( [ ['Year' , '1998' ,'1999' ,'2000' ,'2001' ,'2002' ,'2003','2004','2005','2006'], ['Sales (millions of dollars)' , '201' ,'219' ,'233' ,$a ,$b ,'251',$c,'243','233'], - ], + ], midrules => 1, align => '| c | c | c | c | c | c | c | c | c | c |', center => 0, diff --git a/Contrib/CCCS/PreCalculus/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_44.pg b/Contrib/CCCS/PreCalculus/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_44.pg index d72065b929..cca0c55617 100644 --- a/Contrib/CCCS/PreCalculus/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_44.pg +++ b/Contrib/CCCS/PreCalculus/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_44.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "niceTables.pl", "PGML.pl", "PGcourse.pl", diff --git a/Contrib/CCCS/PreCalculus/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_45.pg b/Contrib/CCCS/PreCalculus/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_45.pg index 1fce6e5273..016259ce2b 100644 --- a/Contrib/CCCS/PreCalculus/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_45.pg +++ b/Contrib/CCCS/PreCalculus/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_45.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "niceTables.pl", "PGML.pl", "PGcourse.pl", diff --git a/Contrib/CCCS/PreCalculus/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_7a.pg b/Contrib/CCCS/PreCalculus/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_7a.pg index 94956e1bad..b20457621a 100644 --- a/Contrib/CCCS/PreCalculus/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_7a.pg +++ b/Contrib/CCCS/PreCalculus/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_7a.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -43,8 +43,8 @@ Context()->operators->undefine("/"); $ans= $a; $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -55,7 +55,7 @@ TeX => BEGIN_PGML Find the average rate of change for [``f(x)=[$f]``] over the interval [`[[$x1],[$x2]] `]. Be sure to simplify the answer. -[_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans} [@ helpLink("numbers") @]* [$video]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_7b.pg b/Contrib/CCCS/PreCalculus/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_7b.pg index d01b540c62..17e971da54 100644 --- a/Contrib/CCCS/PreCalculus/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_7b.pg +++ b/Contrib/CCCS/PreCalculus/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_7b.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPolynomial.pl", "PGML.pl", "PGcourse.pl", @@ -51,8 +51,8 @@ Context()->operators->undefine("/"); $ans= $num/$den; $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -63,7 +63,7 @@ TeX => BEGIN_PGML Find the average rate of change for [``f(x)=[$f]``] over the interval [`[[$x1],[$x2]] `]. Be sure to simplify the answer. -[_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans} [@ helpLink("numbers") @]* [$video]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_9.pg b/Contrib/CCCS/PreCalculus/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_9.pg index b3b8e2d162..81a71648f7 100644 --- a/Contrib/CCCS/PreCalculus/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_9.pg +++ b/Contrib/CCCS/PreCalculus/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_9.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,7 +50,7 @@ $ans=Compute("2*$a*x+$a*h")->reduce; BEGIN_PGML Find the average rate of change for [``f(x)=[$f]``] over the interval [`[x,x+h] `]. -[_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup1.pg b/Contrib/CCCS/PreCalculus/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup1.pg index 78b378c963..b372032c99 100644 --- a/Contrib/CCCS/PreCalculus/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup1.pg +++ b/Contrib/CCCS/PreCalculus/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup1.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -45,8 +45,8 @@ Context()->operators->remove('^','**','/'); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -58,7 +58,7 @@ TeX => BEGIN_PGML Find and simplify the difference quotient for [``f(x)=[$f]``]. Be sure to completely simplify for full credit. -[`` \frac{f(x+h)-f(x)}{h}=``] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`` \frac{f(x+h)-f(x)}{h}=``] [_______________]{$ans} [@ helpLink("numbers") @]* [$video]* diff --git a/Contrib/CCCS/PreCalculus/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup2.pg b/Contrib/CCCS/PreCalculus/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup2.pg index 3dbb93ae1a..196b99601f 100644 --- a/Contrib/CCCS/PreCalculus/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup2.pg +++ b/Contrib/CCCS/PreCalculus/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup2.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,7 +51,7 @@ Context()->operators->remove('^','**','/'); BEGIN_PGML Find and simplify the difference quotient for [``f(x)=[$f]``]. Be sure to completely simplify for full credit. -[`` \frac{f(x+h)-f(x)}{h}=``] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`` \frac{f(x+h)-f(x)}{h}=``] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup3.pg b/Contrib/CCCS/PreCalculus/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup3.pg index b6ba4e31f8..9c33cd2f4f 100644 --- a/Contrib/CCCS/PreCalculus/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup3.pg +++ b/Contrib/CCCS/PreCalculus/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup3.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -49,7 +49,7 @@ Context()->operators->remove('^','**','/'); BEGIN_PGML Find and simplify the difference quotient for [``f(x)=[$f]``]. Be sure to completely simplify for full credit. -[`` \frac{f(x+h)-f(x)}{h}=``] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`` \frac{f(x+h)-f(x)}{h}=``] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup4.pg b/Contrib/CCCS/PreCalculus/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup4.pg index b7d7f17daa..69db3b5e61 100644 --- a/Contrib/CCCS/PreCalculus/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup4.pg +++ b/Contrib/CCCS/PreCalculus/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup4.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,7 +48,7 @@ $ans=Compute("-$a/(x*(x+h))")->reduce; BEGIN_PGML Find and simplify the difference quotient for [``f(x)=[$f]``]. Be sure to completely simplify for full credit. -[`` \frac{f(x+h)-f(x)}{h}=``] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`` \frac{f(x+h)-f(x)}{h}=``] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup5.pg b/Contrib/CCCS/PreCalculus/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup5.pg index b0ee3fde09..83fe4e8d25 100644 --- a/Contrib/CCCS/PreCalculus/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup5.pg +++ b/Contrib/CCCS/PreCalculus/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup5.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -49,7 +49,7 @@ Context()->operators->remove('/'); BEGIN_PGML Find and simplify the difference quotient for [``f(x)=[$f]``]. Be sure to completely simplify for full credit. -[`` \frac{f(x+h)-f(x)}{h}=``] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`` \frac{f(x+h)-f(x)}{h}=``] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup6.pg b/Contrib/CCCS/PreCalculus/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup6.pg index 1df24d5ea1..80296d4c3e 100644 --- a/Contrib/CCCS/PreCalculus/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup6.pg +++ b/Contrib/CCCS/PreCalculus/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup6.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,7 +48,7 @@ $ans=Compute("(-2*$a*x-$a*h)/(x^2*(x+h)^2)")->reduce; BEGIN_PGML Find and simplify the difference quotient for [``f(x)=[$f]``]. Be sure to completely simplify for full credit. -[`` \frac{f(x+h)-f(x)}{h}=``] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`` \frac{f(x+h)-f(x)}{h}=``] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/3.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_A.pg b/Contrib/CCCS/PreCalculus/3.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_A.pg index d0a74d3742..fb0fa3717a 100644 --- a/Contrib/CCCS/PreCalculus/3.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_A.pg +++ b/Contrib/CCCS/PreCalculus/3.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_A.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,8 +51,8 @@ $prod=(($x**2)+($a*$x))*($b-($x**2)); $quot=(($x**2)+($a*$x))/($b-($x**2)); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -62,17 +62,17 @@ TeX => # Main text BEGIN_PGML -Let [`f(x) = [$f]`] and [`g(x) = [$g]`]. +Let [`f(x) = [$f]`] and [`g(x) = [$g]`]. + ++ [` (f + g)([$x]) = `] [_______________]{$sum} [@ helpLink("formulas") @]* -+ [` (f + g)([$x]) = `] [_______________]{$sum} [@ AnswerFormatHelp("formulas") @]* ++ [` (f - g)([$x]) = `] [_______________]{$diff} [@ helpLink("formulas") @]* -+ [` (f - g)([$x]) = `] [_______________]{$diff} [@ AnswerFormatHelp("formulas") @]* ++ [` (fg)([$x]) = `] [_______________]{$prod} [@ helpLink("formulas") @]* -+ [` (fg)([$x]) = `] [_______________]{$prod} [@ AnswerFormatHelp("formulas") @]* ++ [` \left(\frac{f}{g}\right)([$x]) = `] [_______________]{$quot} [@ helpLink("formulas") @]* -+ [` \left(\frac{f}{g}\right)([$x]) = `] [_______________]{$quot} [@ AnswerFormatHelp("formulas") @]* - [$video]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/3.4/Openstax_AlgTrig_AT-1-001-AS_3_4_43.pg b/Contrib/CCCS/PreCalculus/3.4/Openstax_AlgTrig_AT-1-001-AS_3_4_43.pg index 5747631ca0..07dcac9e5c 100644 --- a/Contrib/CCCS/PreCalculus/3.4/Openstax_AlgTrig_AT-1-001-AS_3_4_43.pg +++ b/Contrib/CCCS/PreCalculus/3.4/Openstax_AlgTrig_AT-1-001-AS_3_4_43.pg @@ -12,14 +12,14 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "MathObjects.pl", "PGstandard.pl", "PGgraphmacros.pl", - "AnswerFormatHelp.pl", + "PGchoicemacros.pl", "unionTables.pl", "PGML.pl", @@ -31,7 +31,7 @@ $refreshCachedImages = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); do { @@ -88,35 +88,35 @@ for ($i = 0; $i < $gnum; $i++) { Context()->strings->add("undefined"=>{}); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BR $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], "$SPACE $SPACE $SPACE $SPACE", $figs[1]]). TableSpace(5,25). AlignedRow(["\(y = f(x)\)", "$SPACE $SPACE $SPACE $SPACE", "\(y = g(x)\)"]). EndTable(); \} -$ECENTER +$ECENTER $PAR -Use the graphs of \(y = f(x)\) and \(y = g(x)\) above to the find the function value. +Use the graphs of \(y = f(x)\) and \(y = g(x)\) above to the find the function value. $PAR -$SPACE $SPACE (a) \((g\circ f)($a) = \) \{ans_rule(5)\} \{ AnswerFormatHelp("numbers") \} +$SPACE $SPACE (a) \((g\circ f)($a) = \) \{ans_rule(5)\} \{ helpLink("numbers") \} $BR $BR -$SPACE $SPACE (b) \((g\circ g)($b) = \) \{ans_rule(5)\} \{ AnswerFormatHelp("numbers") \} +$SPACE $SPACE (b) \((g\circ g)($b) = \) \{ans_rule(5)\} \{ helpLink("numbers") \} END_TEXT BEGIN_PGML @@ -135,7 +135,7 @@ Context()->normalStrings; ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute("$answer1")->cmp()); ANS(Compute("$answer2")->cmp()); diff --git a/Contrib/CCCS/PreCalculus/3.4/Openstax_AlgTrig_AT-1-001-AS_3_4_45.pg b/Contrib/CCCS/PreCalculus/3.4/Openstax_AlgTrig_AT-1-001-AS_3_4_45.pg index 341083afb0..e934ab16a2 100644 --- a/Contrib/CCCS/PreCalculus/3.4/Openstax_AlgTrig_AT-1-001-AS_3_4_45.pg +++ b/Contrib/CCCS/PreCalculus/3.4/Openstax_AlgTrig_AT-1-001-AS_3_4_45.pg @@ -12,14 +12,14 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "MathObjects.pl", "PGstandard.pl", "PGgraphmacros.pl", - "AnswerFormatHelp.pl", + "PGchoicemacros.pl", "unionTables.pl", ); @@ -30,7 +30,7 @@ $refreshCachedImages = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); do { @@ -88,32 +88,32 @@ Context()->strings->add("undefined"=>{}); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], "$SPACE $SPACE $SPACE $SPACE", $figs[1]]). TableSpace(5,25). AlignedRow(["\(y = f(x)\)", "$SPACE $SPACE $SPACE $SPACE", "\(y = g(x)\)"]). EndTable(); \} -$ECENTER +$ECENTER $PAR -Use the graphs of \(y = f(x)\) and \(y = g(x)\) above to the find the function value. +Use the graphs of \(y = f(x)\) and \(y = g(x)\) above to the find the function value. $PAR -$SPACE $SPACE (a) \( (g\circ f)($a) = \) \{ans_rule(5)\} \{ AnswerFormatHelp("numbers") \} +$SPACE $SPACE (a) \( (g\circ f)($a) = \) \{ans_rule(5)\} \{ helpLink("numbers") \} $BR $BR -$SPACE $SPACE (b) \((g\circ g)($b) = \) \{ans_rule(5)\} \{ AnswerFormatHelp("numbers") \} +$SPACE $SPACE (b) \((g\circ g)($b) = \) \{ans_rule(5)\} \{ helpLink("numbers") \} END_TEXT Context()->normalStrings; ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute("$answer1")->cmp()); ANS(Compute("$answer2")->cmp()); diff --git a/Contrib/CCCS/PreCalculus/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_11.pg b/Contrib/CCCS/PreCalculus/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_11.pg index 0cb17ee4b0..3e10e0631c 100644 --- a/Contrib/CCCS/PreCalculus/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_11.pg +++ b/Contrib/CCCS/PreCalculus/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_11.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,8 +51,8 @@ $ans2 = Formula("$c*($a*x^2+$b)+$d")->reduce(); $ans3 = Formula("$a*($c*$m+$d)^2+$b")->reduce(); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -60,14 +60,14 @@ TeX => # Main text BEGIN_PGML -Let [`f(x) = [$f]`] and [`g(x) = [$g]`]. +Let [`f(x) = [$f]`] and [`g(x) = [$g]`]. + ++ [` (f\circ g)(x) = `] [_______________]{$ans1} [@ helpLink("formulas") @]* -+ [` (f\circ g)(x) = `] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* ++ [` (g\circ f)(x) = `] [_______________]{$ans2} [@ helpLink("formulas") @]* -+ [` (g\circ f)(x) = `] [_______________]{$ans2} [@ AnswerFormatHelp("formulas") @]* ++ [` (f\circ g)([$m])) = `] [_______________]{$ans3} [@ helpLink("numbers") @]* -+ [` (f\circ g)([$m])) = `] [_______________]{$ans3} [@ AnswerFormatHelp("numbers") @]* - [$video]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_13.pg b/Contrib/CCCS/PreCalculus/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_13.pg index 6e9d27e643..2b49a683c0 100644 --- a/Contrib/CCCS/PreCalculus/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_13.pg +++ b/Contrib/CCCS/PreCalculus/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_13.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,11 +50,11 @@ $ans2 = Compute("(sqrt(x)+$a)^2+$b")->reduce(); # Main text BEGIN_PGML -Let [`f(x) = [$f]`] and [`g(x) = [$g]`]. +Let [`f(x) = [$f]`] and [`g(x) = [$g]`]. -+ [` (f\circ g)(x) = `] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* ++ [` (f\circ g)(x) = `] [_______________]{$ans1} [@ helpLink("formulas") @]* -+ [` (g\circ f)(x) = `] [_______________]{$ans2} [@ AnswerFormatHelp("formulas") @]* ++ [` (g\circ f)(x) = `] [_______________]{$ans2} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_16.pg b/Contrib/CCCS/PreCalculus/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_16.pg index 57bf75e9d5..405e2f8be9 100644 --- a/Contrib/CCCS/PreCalculus/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_16.pg +++ b/Contrib/CCCS/PreCalculus/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_16.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,11 +51,11 @@ $ans2 = Formula("$b*x+($c-$a*$b)")->reduce(); # Main text BEGIN_PGML -Let [``f(x) = [$f]``] and [``g(x) = [$g]``]. +Let [``f(x) = [$f]``] and [``g(x) = [$g]``]. -+ [`` (f\circ g)(x) = ``] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* ++ [`` (f\circ g)(x) = ``] [_______________]{$ans1} [@ helpLink("formulas") @]* -+ [`` (g\circ f)(x) = ``] [_______________]{$ans2} [@ AnswerFormatHelp("formulas") @]* ++ [`` (g\circ f)(x) = ``] [_______________]{$ans2} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_17.pg b/Contrib/CCCS/PreCalculus/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_17.pg index f80bf02ac6..e380f55266 100644 --- a/Contrib/CCCS/PreCalculus/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_17.pg +++ b/Contrib/CCCS/PreCalculus/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_17.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -52,11 +52,11 @@ $ans2 = Formula("$b*x+($c-$a*$b)")->reduce(); # Main text BEGIN_PGML -Let [``f(x) = [$f]``] and [``g(x) = [$g]``]. +Let [``f(x) = [$f]``] and [``g(x) = [$g]``]. -+ [` (f\circ g)(x) = `] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* ++ [` (f\circ g)(x) = `] [_______________]{$ans1} [@ helpLink("formulas") @]* -+ [` (g\circ f)(x) = `] [_______________]{$ans2} [@ AnswerFormatHelp("formulas") @]* ++ [` (g\circ f)(x) = `] [_______________]{$ans2} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_27.pg b/Contrib/CCCS/PreCalculus/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_27.pg index 7a38ddb7d7..28fe2ede10 100644 --- a/Contrib/CCCS/PreCalculus/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_27.pg +++ b/Contrib/CCCS/PreCalculus/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_27.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -44,8 +44,8 @@ $h = Compute("(x-$a)**$b")->reduce; $ans1 = Compute("x**$b")->reduce(); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -56,9 +56,9 @@ TeX => BEGIN_PGML Let [`h(x) = (f\circ g)(x) = [$h] `]. Find [`f(x)`] given [`g(x)=x-[$a] `]. - [` f(x) = `] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* + [` f(x) = `] [_______________]{$ans1} [@ helpLink("formulas") @]* + - [$video]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_29.pg b/Contrib/CCCS/PreCalculus/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_29.pg index ade0dece7d..eaf21a6339 100644 --- a/Contrib/CCCS/PreCalculus/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_29.pg +++ b/Contrib/CCCS/PreCalculus/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_29.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,7 +51,7 @@ $ans1 = Compute("4/x**$b")->reduce(); BEGIN_PGML Let [``h(x) = (f\circ g)(x) = [$h] ``]. Find [`f(x)`] given [``g(x)=x+[$a] ``]. - [` f(x) = `] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* + [` f(x) = `] [_______________]{$ans1} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_39.pg b/Contrib/CCCS/PreCalculus/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_39.pg index 758dad5b3f..5da4e24375 100644 --- a/Contrib/CCCS/PreCalculus/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_39.pg +++ b/Contrib/CCCS/PreCalculus/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_39.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,7 +51,7 @@ $ans1 = Compute("1/x**$b")->reduce(); BEGIN_PGML Let [``h(x) = (f\circ g)(x) = [$h] ``]. Find [`f(x)`] given [``g(x)=x-[$a] ``]. - [` f(x) = `] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* + [` f(x) = `] [_______________]{$ans1} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_5.pg b/Contrib/CCCS/PreCalculus/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_5.pg index c7e680ef4e..a86f73e707 100644 --- a/Contrib/CCCS/PreCalculus/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_5.pg +++ b/Contrib/CCCS/PreCalculus/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_5.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPolynomial.pl", "PGML.pl", "PGcourse.pl", @@ -60,8 +60,8 @@ $intervans4 = Compute("(-infinity, 0)U(0,$a)U($a,$b)U($b,infinity)"); $intervans5 = Compute("(-infinity, $a)U($a,$b)U($b,infinity)"); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -70,28 +70,28 @@ TeX => # Main text BEGIN_PGML -Let [`f(x) = [$f]`] and [`g(x) = [$g]`]. +Let [`f(x) = [$f]`] and [`g(x) = [$g]`]. + ++ [` (f + g)(x) = `] [_______________]{$ans1} [@ helpLink("formulas") @]* -+ [` (f + g)(x) = `] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* ++ [` (f - g)(x) = `] [_______________]{$ans2} [@ helpLink("formulas") @]* -+ [` (f - g)(x) = `] [_______________]{$ans2} [@ AnswerFormatHelp("formulas") @]* ++ [` (fg)(x) = `] [_______________]{$ans3} [@ helpLink("formulas") @]* -+ [` (fg)(x) = `] [_______________]{$ans3} [@ AnswerFormatHelp("formulas") @]* ++ [` \left(\frac{f}{g}\right)(x) = `] [_______________]{$ans4} [@ helpLink("formulas") @]* -+ [` \left(\frac{f}{g}\right)(x) = `] [_______________]{$ans4} [@ AnswerFormatHelp("formulas") @]* ++ [` \left(\frac{g}{f}\right)(x) = `] [_______________]{$ans5} [@ helpLink("formulas") @]* -+ [` \left(\frac{g}{f}\right)(x) = `] [_______________]{$ans5} [@ AnswerFormatHelp("formulas") @]* ++ The domain of [` (f + g)(x) `] is: [_______________]{$intervans1} [@ helpLink("intervals") @]* -+ The domain of [` (f + g)(x) `] is: [_______________]{$intervans1} [@ AnswerFormatHelp("intervals") @]* ++ The domain of [` (f - g)(x) `] is: [_______________]{$intervans2} [@ helpLink("intervals") @]* -+ The domain of [` (f - g)(x) `] is: [_______________]{$intervans2} [@ AnswerFormatHelp("intervals") @]* ++ The domain of [` (fg)(x) `] is: [_______________]{$intervans3} [@ helpLink("intervals") @]* -+ The domain of [` (fg)(x) `] is: [_______________]{$intervans3} [@ AnswerFormatHelp("intervals") @]* ++ The domain of [` \left(\frac{f}{g}\right)(x) `] is: [_______________]{$intervans4} [@ helpLink("intervals") @]* -+ The domain of [` \left(\frac{f}{g}\right)(x) `] is: [_______________]{$intervans4} [@ AnswerFormatHelp("intervals") @]* ++ The domain of [` \left(\frac{g}{f}\right)(x) `] is: [_______________]{$intervans5} [@ helpLink("intervals") @]* -+ The domain of [` \left(\frac{g}{f}\right)(x) `] is: [_______________]{$intervans5} [@ AnswerFormatHelp("intervals") @]* - [$video]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_59.pg b/Contrib/CCCS/PreCalculus/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_59.pg index adef78fb61..053f524e9c 100644 --- a/Contrib/CCCS/PreCalculus/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_59.pg +++ b/Contrib/CCCS/PreCalculus/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_59.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "niceTables.pl", "PGML.pl", "PGcourse.pl", @@ -241,7 +241,7 @@ LayoutTable( ['\(x\)' , '1' ,'2' ,'3' ,'4' ,'5' ,'6','7','8','9'], ['\(f(x)\)' , $f1 ,$f2 ,$f3 ,$f4 ,$f5 ,$f6, $f7, $f8, $f9], ['\(g(x)\)' , $g1,$g2 ,$g3 ,$g4,$g5,$g6,$g7,$g8,$g9], - ], + ], midrules => 1, align => '| c | c | c | c | c | c | c | c | c | c |', center => 0, @@ -251,7 +251,7 @@ LayoutTable( $BR Use the table to evaluate the expression, $BR -\((f\circ g)($s)=\) \{ans_rule(20)\} \{ AnswerFormatHelp("numbers") \} +\((f\circ g)($s)=\) \{ans_rule(20)\} \{ helpLink("numbers") \} $ECENTER END_TEXT diff --git a/Contrib/CCCS/PreCalculus/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_61.pg b/Contrib/CCCS/PreCalculus/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_61.pg index c6539c3704..d3c8d0d5ab 100644 --- a/Contrib/CCCS/PreCalculus/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_61.pg +++ b/Contrib/CCCS/PreCalculus/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_61.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "niceTables.pl", "PGML.pl", "PGcourse.pl", @@ -241,7 +241,7 @@ LayoutTable( ['\(x\)' , '1' ,'2' ,'3' ,'4' ,'5' ,'6','7','8','9'], ['\(f(x)\)' , $f1 ,$f2 ,$f3 ,$f4 ,$f5 ,$f6, $f7, $f8, $f9], ['\(g(x)\)' , $g1,$g2 ,$g3 ,$g4,$g5,$g6,$g7,$g8,$g9], - ], + ], midrules => 1, align => '| c | c | c | c | c | c | c | c | c | c |', center => 0, @@ -251,7 +251,7 @@ LayoutTable( $BR Use the table to evaluate the expression, $BR -\((g\circ f)($s)= \) \{ans_rule(20)\} \{ AnswerFormatHelp("numbers") \} +\((g\circ f)($s)= \) \{ans_rule(20)\} \{ helpLink("numbers") \} $ECENTER END_TEXT diff --git a/Contrib/CCCS/PreCalculus/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_73.pg b/Contrib/CCCS/PreCalculus/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_73.pg index 8013dfe98e..3fae968e54 100644 --- a/Contrib/CCCS/PreCalculus/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_73.pg +++ b/Contrib/CCCS/PreCalculus/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_73.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -45,7 +45,7 @@ $m = random(-3,3,1); $f = Formula("$a*x+$b")->reduce; $g = Formula("$c+$d*x^2")->reduce; -$hold = $g->eval(x=>$m); +$hold = $g->eval(x=>$m); $ans1 = $f->eval(x=>$hold); @@ -53,10 +53,10 @@ $ans1 = $f->eval(x=>$hold); # Main text BEGIN_PGML -Let [`f(x) = [$f]`] and [`g(x) = [$g]`]. +Let [`f(x) = [$f]`] and [`g(x) = [$g]`]. -+ [`(f\circ g)([$m]) = `] [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* ++ [`(f\circ g)([$m]) = `] [_______________]{$ans1} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_77.pg b/Contrib/CCCS/PreCalculus/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_77.pg index 1ed5411201..230a643949 100644 --- a/Contrib/CCCS/PreCalculus/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_77.pg +++ b/Contrib/CCCS/PreCalculus/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_77.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,10 +50,10 @@ $ans1 = Compute("$a*($d*x + $c)**$e-$b")->reduce; # Main text BEGIN_PGML -Let [`f(x) = [$f]`] and [`g(x) = [$g]`]. +Let [`f(x) = [$f]`] and [`g(x) = [$g]`]. + ++ [` (f\circ g)(x) = `] [_______________]{$ans1} [@ helpLink("formulas") @]* -+ [` (f\circ g)(x) = `] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* - END_PGML diff --git a/Contrib/CCCS/PreCalculus/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_9.pg b/Contrib/CCCS/PreCalculus/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_9.pg index ef267f83e2..0f55ab1d4d 100644 --- a/Contrib/CCCS/PreCalculus/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_9.pg +++ b/Contrib/CCCS/PreCalculus/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_9.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPolynomial.pl", "PGML.pl", "PGcourse.pl", @@ -63,27 +63,27 @@ $ans10 = Compute("[$b,infinity)"); # Main text BEGIN_PGML -Let [`f(x) = [$f]`] and [`g(x) = [$g]`]. +Let [`f(x) = [$f]`] and [`g(x) = [$g]`]. -+ [` (f + g)(x) = `] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* ++ [` (f + g)(x) = `] [_______________]{$ans1} [@ helpLink("formulas") @]* -+ [` (f - g)(x) = `] [_______________]{$ans2} [@ AnswerFormatHelp("formulas") @]* ++ [` (f - g)(x) = `] [_______________]{$ans2} [@ helpLink("formulas") @]* -+ [` (fg)(x) = `] [_______________]{$ans3} [@ AnswerFormatHelp("formulas") @]* ++ [` (fg)(x) = `] [_______________]{$ans3} [@ helpLink("formulas") @]* -+ [` \left(\frac{f}{g}\right) = `] [_______________]{$ans4} [@ AnswerFormatHelp("formulas") @]* ++ [` \left(\frac{f}{g}\right) = `] [_______________]{$ans4} [@ helpLink("formulas") @]* -+ [` \left(\frac{g}{f}\right) = `] [_______________]{$ans5} [@ AnswerFormatHelp("formulas") @]* ++ [` \left(\frac{g}{f}\right) = `] [_______________]{$ans5} [@ helpLink("formulas") @]* -+ The domain of [` (f + g)(x) `] is: [_______________]{$ans6} [@ AnswerFormatHelp("intervals") @]* ++ The domain of [` (f + g)(x) `] is: [_______________]{$ans6} [@ helpLink("intervals") @]* -+ The domain of [` (f - g)(x) `] is: [_______________]{$ans7} [@ AnswerFormatHelp("intervals") @]* ++ The domain of [` (f - g)(x) `] is: [_______________]{$ans7} [@ helpLink("intervals") @]* -+ The domain of [` (fg)(x) `] is: [_______________]{$ans8} [@ AnswerFormatHelp("intervals") @]* ++ The domain of [` (fg)(x) `] is: [_______________]{$ans8} [@ helpLink("intervals") @]* -+ The domain of [` \left(\frac{f}{g}\right) `] is: [_______________]{$ans9} [@ AnswerFormatHelp("intervals") @]* ++ The domain of [` \left(\frac{f}{g}\right) `] is: [_______________]{$ans9} [@ helpLink("intervals") @]* -+ The domain of [` \left(\frac{g}{f}\right) `] is: [_______________]{$ans10} [@ AnswerFormatHelp("intervals") @]* ++ The domain of [` \left(\frac{g}{f}\right) `] is: [_______________]{$ans10} [@ helpLink("intervals") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_21.pg b/Contrib/CCCS/PreCalculus/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_21.pg index 3e5b636e1d..326ecfd7d9 100644 --- a/Contrib/CCCS/PreCalculus/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_21.pg +++ b/Contrib/CCCS/PreCalculus/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_21.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -53,9 +53,9 @@ $ansdecr = Compute("(-infinity,$bound)"); BEGIN_PGML Determine the interval(s) on which [`f(x) = [$g][$f]`] is increasing and decreasing. -+ Increasing: [_______________]{$ansincr} [@ AnswerFormatHelp("intervals") @]* ++ Increasing: [_______________]{$ansincr} [@ helpLink("intervals") @]* -+ Decreasing: [_______________]{$ansdecr} [@ AnswerFormatHelp("intervals") @]* ++ Decreasing: [_______________]{$ansdecr} [@ helpLink("intervals") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_31.pg b/Contrib/CCCS/PreCalculus/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_31.pg index b9ad5413c9..e5f093e282 100644 --- a/Contrib/CCCS/PreCalculus/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_31.pg +++ b/Contrib/CCCS/PreCalculus/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_31.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswers = 1; # Setup Context("LimitedPoint"); -Context()->noreduce("(-x)-y"); +Context()->noreduce("(-x)-y"); $a=random(-13,13); $b=random(-5,5); @@ -49,11 +49,11 @@ $ans = Point("(($a,$c*$b+$d))"); # Main text BEGIN_PGML -Suppose [` [$pt1] `] is a point on the graph of [`y=f(x)`]. What is a point that will be on the graph of [`y=[$c]*f(x)+[$d] `]? +Suppose [` [$pt1] `] is a point on the graph of [`y=f(x)`]. What is a point that will be on the graph of [`y=[$c]*f(x)+[$d] `]? -[_______________]{$ans} [@ AnswerFormatHelp("points") @]* +[_______________]{$ans} [@ helpLink("points") @]* -Enter a point as [` (a,b) `], including the parentheses. +Enter a point as [` (a,b) `], including the parentheses. END_PGML ############################ diff --git a/Contrib/CCCS/PreCalculus/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_32.pg b/Contrib/CCCS/PreCalculus/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_32.pg index c38b6ef67a..5d69650063 100644 --- a/Contrib/CCCS/PreCalculus/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_32.pg +++ b/Contrib/CCCS/PreCalculus/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_32.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -49,11 +49,11 @@ $ans = Point("(($a/$c,$b+$d))"); # Main text BEGIN_PGML -Suppose [` [$pt1] `] is a point on the graph of [`y=f(x)`]. What is a point that will be on the graph of [`y = f([$c]x) + [$d]`]? +Suppose [` [$pt1] `] is a point on the graph of [`y=f(x)`]. What is a point that will be on the graph of [`y = f([$c]x) + [$d]`]? -[_______________]{$ans} [@ AnswerFormatHelp("points") @]* +[_______________]{$ans} [@ helpLink("points") @]* -Enter a point as [` (a,b) `], including the parentheses. +Enter a point as [` (a,b) `], including the parentheses. END_PGML ############################ diff --git a/Contrib/CCCS/PreCalculus/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_32b.pg b/Contrib/CCCS/PreCalculus/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_32b.pg index 03074363a9..33c05ab474 100644 --- a/Contrib/CCCS/PreCalculus/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_32b.pg +++ b/Contrib/CCCS/PreCalculus/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_32b.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -48,11 +48,11 @@ $ans = Point("(($a+$c,-$b))"); # Main text BEGIN_PGML -Suppose [` [$pt1] `] is a point on the graph of [`y=f(x)`]. What is a point that will be on the graph of [`y = -f(x-[$c])`]? +Suppose [` [$pt1] `] is a point on the graph of [`y=f(x)`]. What is a point that will be on the graph of [`y = -f(x-[$c])`]? -[_______________]{$ans} [@ AnswerFormatHelp("points") @]* +[_______________]{$ans} [@ helpLink("points") @]* -Enter a point as [` (a,b) `], including the parentheses. +Enter a point as [` (a,b) `], including the parentheses. END_PGML ############################ diff --git a/Contrib/CCCS/PreCalculus/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_35.pg b/Contrib/CCCS/PreCalculus/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_35.pg index 4682ac8a1d..c21ce816ba 100644 --- a/Contrib/CCCS/PreCalculus/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_35.pg +++ b/Contrib/CCCS/PreCalculus/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_35.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -59,7 +59,7 @@ Find an equation for the graphed function below by using transformations of the $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>300,height=>300,tex_size=>800 ) \} $BR $BR @@ -69,7 +69,7 @@ $BR $BR $BR \( y= \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR $ECENTER diff --git a/Contrib/CCCS/PreCalculus/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_37.pg b/Contrib/CCCS/PreCalculus/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_37.pg index d690f54b0f..7dc7c7f8d7 100644 --- a/Contrib/CCCS/PreCalculus/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_37.pg +++ b/Contrib/CCCS/PreCalculus/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_37.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -43,7 +43,7 @@ size=>[400,400] add_functions($gr, "(x+$a)^2+$b for x in <-6,6> using color:blue and weight:2"); -($gr->fn)[0]->steps(300); +($gr->fn)[0]->steps(300); $refreshCachedImages=1; @@ -61,14 +61,14 @@ Find an equation for the graphed function below by using transformations of the $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>300,height=>300,tex_size=>800 ) \} $BR (Click on graph to enlarge) $BR $BR \( y= \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR $ECENTER diff --git a/Contrib/CCCS/PreCalculus/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_39.pg b/Contrib/CCCS/PreCalculus/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_39.pg index a92debaad8..9cf2f6b01e 100644 --- a/Contrib/CCCS/PreCalculus/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_39.pg +++ b/Contrib/CCCS/PreCalculus/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_39.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -43,7 +43,7 @@ size=>[400,400] add_functions($gr, "abs{x+$a}+$b for x in <-6,6> using color:blue and weight:2"); -($gr->fn)[0]->steps(300); +($gr->fn)[0]->steps(300); $refreshCachedImages=1; @@ -61,13 +61,13 @@ Find an equation for the graphed function below by using transformations of the $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>300,height=>300,tex_size=>800 ) \} $BR $BR $BR \( y= \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR $ECENTER diff --git a/Contrib/CCCS/PreCalculus/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_47.pg b/Contrib/CCCS/PreCalculus/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_47.pg index e482572045..31b18b2c4d 100644 --- a/Contrib/CCCS/PreCalculus/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_47.pg +++ b/Contrib/CCCS/PreCalculus/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_47.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserPopUp.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,8 +50,8 @@ $popup = PopUp( ); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -63,9 +63,9 @@ TeX => BEGIN_PGML Let [``f(x) = [$f]``]. Find [``f(-x)``] and [``-f(x)``]. Use them to determine whether or not [``f(x)``] is even, odd, or neither. -[` f(-x) = `] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* +[` f(-x) = `] [_______________]{$ans1} [@ helpLink("formulas") @]* -[` -f(x) = `] [_______________]{$ans2} [@ AnswerFormatHelp("formulas") @]* +[` -f(x) = `] [_______________]{$ans2} [@ helpLink("formulas") @]* Is [``f(x)``] odd, even, or neither? [@ $popup->menu() @]* diff --git a/Contrib/CCCS/PreCalculus/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_49.pg b/Contrib/CCCS/PreCalculus/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_49.pg index a6a9ea66d6..b8175a3708 100644 --- a/Contrib/CCCS/PreCalculus/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_49.pg +++ b/Contrib/CCCS/PreCalculus/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_49.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserPopUp.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -53,9 +53,9 @@ $popup = PopUp( BEGIN_PGML Let [``f(x) = [$f]``]. Find [``f(-x)``] and [``-f(x)``]. Use them to determine whether or not [``f(x)``] is even, odd, or neither. -[` f(-x) = `] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* +[` f(-x) = `] [_______________]{$ans1} [@ helpLink("formulas") @]* -[` -f(x) = `] [_______________]{$ans2} [@ AnswerFormatHelp("formulas") @]* +[` -f(x) = `] [_______________]{$ans2} [@ helpLink("formulas") @]* Is [``f(x)``] odd, even, or neither? [@ $popup->menu() @]* diff --git a/Contrib/CCCS/PreCalculus/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_50.pg b/Contrib/CCCS/PreCalculus/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_50.pg index 3853810899..c7db09c020 100644 --- a/Contrib/CCCS/PreCalculus/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_50.pg +++ b/Contrib/CCCS/PreCalculus/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_50.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserPopUp.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -55,9 +55,9 @@ $popup = PopUp( BEGIN_PGML Let [``f(x) = [$f]``]. Find [``f(-x)``] and [``-f(x)``]. Use them to determine whether or not [``f(x)``] is even, odd, or neither. -[` f(-x) = `] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* +[` f(-x) = `] [_______________]{$ans1} [@ helpLink("formulas") @]* -[` -f(x) = `] [_______________]{$ans2} [@ AnswerFormatHelp("formulas") @]* +[` -f(x) = `] [_______________]{$ans2} [@ helpLink("formulas") @]* Is [``f(x)``] odd, even, or neither? [@ $popup->menu() @]* diff --git a/Contrib/CCCS/PreCalculus/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_6.pg b/Contrib/CCCS/PreCalculus/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_6.pg index 83dc485871..d0c1228c00 100644 --- a/Contrib/CCCS/PreCalculus/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_6.pg +++ b/Contrib/CCCS/PreCalculus/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_6.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -42,8 +42,8 @@ Context()->variables->set(x=>{limits=>[$b+1,$b+4]}); $ans1 = Compute("sqrt{x+$b}+$a")->reduce(); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -52,9 +52,9 @@ TeX => # Main text BEGIN_PGML -Let [`f(x) = \sqrt{x}`]. Find [`g(x)`], the function that is [`f(x)`] shifted up [`[$a]`] units and left [`[$b]`] units. +Let [`f(x) = \sqrt{x}`]. Find [`g(x)`], the function that is [`f(x)`] shifted up [`[$a]`] units and left [`[$b]`] units. - [` g(x) = `] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* + [` g(x) = `] [_______________]{$ans1} [@ helpLink("formulas") @]* diff --git a/Contrib/CCCS/PreCalculus/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_64.pg b/Contrib/CCCS/PreCalculus/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_64.pg index 7187c9a2e7..67e43cca4b 100644 --- a/Contrib/CCCS/PreCalculus/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_64.pg +++ b/Contrib/CCCS/PreCalculus/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_64.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -44,9 +44,9 @@ Context()->variables->set(x=>{limits=>[$a+1,$a+5]}); # Main text BEGIN_PGML -Let [``f(x) = \sqrt{x}``]. Find [`g(x)`], the function that is [`f(x)`] reflected over the [`x`]-axis and horizontally stretched by a factor of [`[$a]`]. +Let [``f(x) = \sqrt{x}``]. Find [`g(x)`], the function that is [`f(x)`] reflected over the [`x`]-axis and horizontally stretched by a factor of [`[$a]`]. - [` g(x) = `] [_______________]{"-sqrt{1/$a*x}"} [@ AnswerFormatHelp("formulas") @]* + [` g(x) = `] [_______________]{"-sqrt{1/$a*x}"} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_8.pg b/Contrib/CCCS/PreCalculus/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_8.pg index 4a5eb39357..b300825315 100644 --- a/Contrib/CCCS/PreCalculus/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_8.pg +++ b/Contrib/CCCS/PreCalculus/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_8.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -46,9 +46,9 @@ $ans1 = Compute("(1)/(x-$b)-$a")->reduce(); # Main text BEGIN_PGML -Let [``f(x) = \frac{1}{x}``]. Find [`g(x)`], the function that is [`f(x)`] shifted down [`[$a]`] units and right [`[$b]`] units. +Let [``f(x) = \frac{1}{x}``]. Find [`g(x)`], the function that is [`f(x)`] shifted down [`[$a]`] units and right [`[$b]`] units. - [` g(x) = `] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* + [` g(x) = `] [_______________]{$ans1} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_11.pg b/Contrib/CCCS/PreCalculus/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_11.pg index 55e54359b3..7c5c164a96 100644 --- a/Contrib/CCCS/PreCalculus/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_11.pg +++ b/Contrib/CCCS/PreCalculus/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_11.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -49,15 +49,15 @@ $yint = List( Point("(0,$a|$b|-$c)") ); BEGIN_PGML Find the `x-`intercept(s) and `y-`intercept(s) -of [` y = [$f] `]. +of [` y = [$f] `]. Enter a point as [` (a,b) `], -including the parentheses. If there is more -than one correct answer, enter a comma +including the parentheses. If there is more +than one correct answer, enter a comma separated list of points. -`x`-intercept(s): [_______________]{"($b+$c/$a,0),($b-$c/$a,0)"} [@ AnswerFormatHelp("points") @]* -`y`-intercept(s): [_______________]{$yint} [@ AnswerFormatHelp("points") @]* +`x`-intercept(s): [_______________]{"($b+$c/$a,0),($b-$c/$a,0)"} [@ helpLink("points") @]* +`y`-intercept(s): [_______________]{$yint} [@ helpLink("points") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_40.pg b/Contrib/CCCS/PreCalculus/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_40.pg index 667560dd3b..2446614bd1 100644 --- a/Contrib/CCCS/PreCalculus/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_40.pg +++ b/Contrib/CCCS/PreCalculus/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_40.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -17,12 +17,12 @@ # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGchoicemacros.pl", "PGcourse.pl", @@ -39,8 +39,8 @@ $ans1=Interval("[$b-$a, $b+$a]"); $mc = new_checkbox_multiple_choice(); $mc -> qa ( -"In absolute value notation, where \( x \) represents the score on the test, this is:", -"\( |x-$b| \leq $a \)$BR", +"In absolute value notation, where \( x \) represents the score on the test, this is:", +"\( |x-$b| \leq $a \)$BR", ); $mc -> extra( "\( |x-$b| \geq $a \)$BR", @@ -54,11 +54,11 @@ $mc -> makeLast("None of the above"); # Main text BEGIN_TEXT -A patient needs to keep their blood sugar levels within \( $a \) milligrams per deciliter of \( $b \) milligrams per deciliter. What blood sugar levels are okay for that patient? Enter solution as an interval or union of intervals. (Note: this is a hypothetical situation.) +A patient needs to keep their blood sugar levels within \( $a \) milligrams per deciliter of \( $b \) milligrams per deciliter. What blood sugar levels are okay for that patient? Enter solution as an interval or union of intervals. (Note: this is a hypothetical situation.) $BR $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR $BR \{ $mc -> print_q() \} diff --git a/Contrib/CCCS/PreCalculus/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_41.pg b/Contrib/CCCS/PreCalculus/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_41.pg index 972556c7f0..8e02626393 100644 --- a/Contrib/CCCS/PreCalculus/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_41.pg +++ b/Contrib/CCCS/PreCalculus/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_41.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -17,12 +17,12 @@ # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGchoicemacros.pl", "PGcourse.pl", @@ -39,8 +39,8 @@ $ans1=Interval("[$b-$a, $b+$a]"); $mc = new_checkbox_multiple_choice(); $mc -> qa ( -"In absolute value notation, where \( x \) represents the machined diameter, this is:", -"\( |x-$b| \leq $a \)$BR", +"In absolute value notation, where \( x \) represents the machined diameter, this is:", +"\( |x-$b| \leq $a \)$BR", ); $mc -> extra( "\( |x-$b| \geq $a \)$BR", @@ -54,11 +54,11 @@ $mc -> makeLast("None of the above"); # Main text BEGIN_TEXT -A machinist must produce a bearing that is within \( $a \) inches of the correct diameter of \( $b \) inches. What are the possible diameters that will work? Enter solution as an interval or union of intervals. +A machinist must produce a bearing that is within \( $a \) inches of the correct diameter of \( $b \) inches. What are the possible diameters that will work? Enter solution as an interval or union of intervals. $BR $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR $BR \{ $mc -> print_q() \} diff --git a/Contrib/CCCS/PreCalculus/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_5.pg b/Contrib/CCCS/PreCalculus/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_5.pg index 0283a6a1cd..d66603ae40 100644 --- a/Contrib/CCCS/PreCalculus/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_5.pg +++ b/Contrib/CCCS/PreCalculus/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_5.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -16,12 +16,12 @@ # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGchoicemacros.pl", "PGcourse.pl", @@ -38,8 +38,8 @@ $ans1=List("$b-$a, $b+$a"); $mc = new_checkbox_multiple_choice(); $mc -> qa ( -"In absolute value notation, where \( x \) represents the numbers, this is:", -"\( |x-$b|=$a \)$BR", +"In absolute value notation, where \( x \) represents the numbers, this is:", +"\( |x-$b|=$a \)$BR", ); $mc -> extra( "\( |x+$b|=$a \)$BR", @@ -53,11 +53,11 @@ $mc -> makeLast("None of the above"); # Main text BEGIN_TEXT -List all numbers that are a distance of \( $a \) away from the number \( $b \). Enter as a comma separated list. +List all numbers that are a distance of \( $a \) away from the number \( $b \). Enter as a comma separated list. $BR $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR $BR \{ $mc -> print_q() \} diff --git a/Contrib/CCCS/PreCalculus/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_7.pg b/Contrib/CCCS/PreCalculus/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_7.pg index 5a4b9144d2..420a3206aa 100644 --- a/Contrib/CCCS/PreCalculus/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_7.pg +++ b/Contrib/CCCS/PreCalculus/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_7.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -16,12 +16,12 @@ # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGchoicemacros.pl", "PGcourse.pl", @@ -38,8 +38,8 @@ $ans1=Interval("(-infinity,$b-$a]U[$b+$a,infinity)"); $mc = new_checkbox_multiple_choice(); $mc -> qa ( -"In absolute value notation, where \( x \) represents the numbers, this is:", -"\( |x-$b| \geq $a \)$BR", +"In absolute value notation, where \( x \) represents the numbers, this is:", +"\( |x-$b| \geq $a \)$BR", ); $mc -> extra( "\( |x-$b|\leq$a \)$BR", @@ -53,11 +53,11 @@ $mc -> makeLast("None of the above"); # Main text BEGIN_TEXT -Find the interval(s) of numbers that are at least a distance of \( $a \) away from \( $b \). Enter solution as an interval or union of intervals. +Find the interval(s) of numbers that are at least a distance of \( $a \) away from \( $b \). Enter solution as an interval or union of intervals. $BR $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR $BR \{ $mc -> print_q() \} diff --git a/Contrib/CCCS/PreCalculus/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_8.pg b/Contrib/CCCS/PreCalculus/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_8.pg index f6a39aacf3..ab4a337e78 100644 --- a/Contrib/CCCS/PreCalculus/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_8.pg +++ b/Contrib/CCCS/PreCalculus/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_8.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -16,12 +16,12 @@ # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGchoicemacros.pl", "PGcourse.pl", @@ -38,8 +38,8 @@ $ans1=Interval("($b-$a, $b+$a)"); $mc = new_checkbox_multiple_choice(); $mc -> qa ( -"In absolute value notation, where \( x \) represents the numbers, this is:", -"\( |x-$b| < $a \)$BR", +"In absolute value notation, where \( x \) represents the numbers, this is:", +"\( |x-$b| < $a \)$BR", ); $mc -> extra( "\( |x-$b| > $a \)$BR", @@ -53,11 +53,11 @@ $mc -> makeLast("None of the above"); # Main text BEGIN_TEXT -Find the interval(s) of numbers that are less than a distance of \( $a \) away from \( $b \). Enter solution as an interval or union of intervals. +Find the interval(s) of numbers that are less than a distance of \( $a \) away from \( $b \). Enter solution as an interval or union of intervals. $BR $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR $BR \{ $mc -> print_q() \} diff --git a/Contrib/CCCS/PreCalculus/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_9.pg b/Contrib/CCCS/PreCalculus/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_9.pg index 183d39b9a0..29546e3b2c 100644 --- a/Contrib/CCCS/PreCalculus/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_9.pg +++ b/Contrib/CCCS/PreCalculus/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_9.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -49,15 +49,15 @@ $yint = List( Point("(0,$a|$b|-$c)") ); BEGIN_PGML Find the `x-`intercept(s) and `y-`intercept(s) -of [` y = [$f] `]. +of [` y = [$f] `]. Enter a point as [` (a,b) `], -including the parentheses. If there is more -than one correct answer, enter a comma +including the parentheses. If there is more +than one correct answer, enter a comma separated list of points. -`x-`intercept(s): [_______________]{"($b+$c/$a,0),($b-$c/$a,0)"} [@ AnswerFormatHelp("points") @]* -`y-`intercept(s): [_______________]{$yint} [@ AnswerFormatHelp("points") @]* +`x-`intercept(s): [_______________]{"($b+$c/$a,0),($b-$c/$a,0)"} [@ helpLink("points") @]* +`y-`intercept(s): [_______________]{$yint} [@ helpLink("points") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/3.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_14.pg b/Contrib/CCCS/PreCalculus/3.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_14.pg index eccd37b01a..9b39f5ec99 100644 --- a/Contrib/CCCS/PreCalculus/3.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_14.pg +++ b/Contrib/CCCS/PreCalculus/3.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_14.pg @@ -1,5 +1,5 @@ ## DESCRIPTION Limiting the domain of a non ONE-TO-ONE function and finding the the inverse on that domain. -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -47,8 +47,8 @@ Context("Interval"); $interval=Interval("[$a, infinity)"); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -57,16 +57,16 @@ TeX => # Main text BEGIN_PGML -Let [``f(x) = [$f]``]. +Let [``f(x) = [$f]``]. Find a restricted domain in which the function [`f(x)`] is [`one\,to\,one`], non-decreasing, and on which [`f(x)`] achieves its entire range. Use interval notation. -[_______________]{$interval} [@ AnswerFormatHelp("intervals") @]* +[_______________]{$interval} [@ helpLink("intervals") @]* Find [` f^{-1}(x) `] on the restricted domain. - [` f^{-1}(x) = `] [_______________]{$f_inverse} [@ AnswerFormatHelp("formulas") @]* + [` f^{-1}(x) = `] [_______________]{$f_inverse} [@ helpLink("formulas") @]* [$video]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/3.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_9.pg b/Contrib/CCCS/PreCalculus/3.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_9.pg index 3f97303159..e2ca148ceb 100644 --- a/Contrib/CCCS/PreCalculus/3.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_9.pg +++ b/Contrib/CCCS/PreCalculus/3.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_9.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,7 +50,7 @@ $ans1 = Formula("(x^2+$b)/($a)")->reduce(); BEGIN_PGML Let [`f(x) = [$f]`]. Find [` f^{-1}(x) `]. - [` f^{-1}(x) = `] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* + [` f^{-1}(x) = `] [_______________]{$ans1} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/3.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_sup1.pg b/Contrib/CCCS/PreCalculus/3.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_sup1.pg index 033a436e97..609b6b48e6 100644 --- a/Contrib/CCCS/PreCalculus/3.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_sup1.pg +++ b/Contrib/CCCS/PreCalculus/3.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_sup1.pg @@ -1,5 +1,5 @@ ## DESCRIPTION Determining if a function id one to one -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserPopUp.pl", "parserImplicitEquation.pl", "PGML.pl", @@ -79,12 +79,12 @@ $popup5 = PopUp( BEGIN_PGML -Determine if the following functions are [`one\,to\,one`]. If the function is one to one then the function has an inverse. +Determine if the following functions are [`one\,to\,one`]. If the function is one to one then the function has an inverse. Hint: Use the horizontal line test. -+ [`f(x)=[$f1] `] [___________]{$popup1} ++ [`f(x)=[$f1] `] [___________]{$popup1} -+ [`g(x)=[$f2]`] [___________]{$popup2} ++ [`g(x)=[$f2]`] [___________]{$popup2} + [`h(x)=[$f3]`] [___________]{$popup3} diff --git a/Contrib/CCCS/PreCalculus/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_11.pg b/Contrib/CCCS/PreCalculus/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_11.pg index 6766828a8f..d15b73d5f4 100644 --- a/Contrib/CCCS/PreCalculus/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_11.pg +++ b/Contrib/CCCS/PreCalculus/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_11.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,7 +50,7 @@ $ans1 = Formula("(-$b*x)/(x-$a)")->reduce(); BEGIN_PGML Let [``f(x) = [$f]``]. Find [` f^{-1}(x) `]. - [` f^{-1}(x) = `] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* + [` f^{-1}(x) = `] [_______________]{$ans1} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_12.pg b/Contrib/CCCS/PreCalculus/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_12.pg index c8ea946f2c..713fa1708b 100644 --- a/Contrib/CCCS/PreCalculus/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_12.pg +++ b/Contrib/CCCS/PreCalculus/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_12.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -52,7 +52,7 @@ $ans1 = Formula("($b-$d*x)/($c*x-$a)")->reduce(); BEGIN_PGML Let [``f(x) = [$f]``]. Find [` f^{-1}(x) `]. - [` f^{-1}(x) = `] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* + [` f^{-1}(x) = `] [_______________]{$ans1} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_13.pg b/Contrib/CCCS/PreCalculus/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_13.pg index 618da921aa..4497d12da0 100644 --- a/Contrib/CCCS/PreCalculus/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_13.pg +++ b/Contrib/CCCS/PreCalculus/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_13.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "contextPiecewiseFunction.pl", @@ -41,7 +41,7 @@ Context("Interval"); $domain = Interval("[$b,$a]"); Context("Numeric"); -$fun = Formula("(x-$b)^2 ")->reduce; +$fun = Formula("(x-$b)^2 ")->reduce; $inv = Formula("sqrt(x) + $b"); @@ -54,15 +54,15 @@ $inv->{limits} = [2,10]; BEGIN_PGML -Find the largest domain for [` f(x)=[$fun] `], with upper [`x`] bound [$a], such that the function [`f`] is one-to one and non-decreasing . +Find the largest domain for [` f(x)=[$fun] `], with upper [`x`] bound [$a], such that the function [`f`] is one-to one and non-decreasing . - One-to-one domain: [_________________]{$domain} [@ AnswerFormatHelp("intervals") @]* + One-to-one domain: [_________________]{$domain} [@ helpLink("intervals") @]* Your answers must be in interval notation. Find the inverse of [`f`] restricted to that domain. - [`f^{-1}(x) = `] [___________________]{$inv} [@ AnswerFormatHelp("formulas") @]* + [`f^{-1}(x) = `] [___________________]{$inv} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_15.pg b/Contrib/CCCS/PreCalculus/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_15.pg index 2a57d62d8b..ab80b8a1f4 100644 --- a/Contrib/CCCS/PreCalculus/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_15.pg +++ b/Contrib/CCCS/PreCalculus/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_15.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "contextPiecewiseFunction.pl", @@ -41,7 +41,7 @@ Context("Interval"); $domain = Interval("[0,$a]"); Context("Numeric"); -$fun = Formula("(x^2-$b)")->reduce; +$fun = Formula("(x^2-$b)")->reduce; $inv = Formula("sqrt(x+$b)"); $inv->{limits} = [-$b+2,-$b+10]; @@ -54,15 +54,15 @@ $g = $fun->eval(x => 0); BEGIN_PGML -Find the largest domain for [` f(x)=[$fun] `], with upper [`x`] bound [$a], such that the function [`f`] is one-to one and non-decreasing . +Find the largest domain for [` f(x)=[$fun] `], with upper [`x`] bound [$a], such that the function [`f`] is one-to one and non-decreasing . - One-to-one domain: [_________________]{$domain} [@ AnswerFormatHelp("intervals") @]* + One-to-one domain: [_________________]{$domain} [@ helpLink("intervals") @]* Your answers must be in interval notation. Find the inverse of [`f`] restricted to that domain. - [`f^{-1}(x) = `] [___________________]{$inv} [@ AnswerFormatHelp("formulas") @]* + [`f^{-1}(x) = `] [___________________]{$inv} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_25.pg b/Contrib/CCCS/PreCalculus/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_25.pg index ba328ddb99..31017aee09 100644 --- a/Contrib/CCCS/PreCalculus/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_25.pg +++ b/Contrib/CCCS/PreCalculus/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_25.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -59,7 +59,7 @@ Let the graph of \( f(x) \) be given below. Find the following. $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>300,height=>300,tex_size=>800 ) \} $BR $BR @@ -69,11 +69,11 @@ $BR $BR $BR \( f(0) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR $BR \( f^{-1}(0) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR $BR $ECENTER diff --git a/Contrib/CCCS/PreCalculus/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_37.pg b/Contrib/CCCS/PreCalculus/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_37.pg index 9403956e41..9454c86604 100644 --- a/Contrib/CCCS/PreCalculus/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_37.pg +++ b/Contrib/CCCS/PreCalculus/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_37.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "niceTables.pl", "PGML.pl", "PGcourse.pl", @@ -35,14 +35,14 @@ $showPartialCorrectAnswers = 1; # Setup #future thought, build these using a permutation of-10 through 10 and grab first 9 -$f1 = list_random(1,-9,-13); -$f2 = list_random(2,-8,12); +$f1 = list_random(1,-9,-13); +$f2 = list_random(2,-8,12); $f3 = list_random(3,-7,-11); -$f4 = list_random(4,-6,10); -$f5 = list_random(5,-5,0); +$f4 = list_random(4,-6,10); +$f5 = list_random(5,-5,0); $f6 = list_random(6,-4,-10); -$f7 = list_random(7,-3,11); -$f8 = list_random(8,-2,-12); +$f7 = list_random(7,-3,11); +$f8 = list_random(8,-2,-12); $f9 = list_random(9,-1,13); $s = random(1,9,1); @@ -106,7 +106,7 @@ LayoutTable( [ ['\(x\)' , '1' ,'2' ,'3' ,'4' ,'5' ,'6','7','8','9'], ['\(f(x)\)' , $f1 ,$f2 ,$f3 ,$f4 ,$f5 ,$f6, $f7, $f8, $f9], - ], + ], midrules => 1, align => '| c | c | c | c | c | c | c | c | c | c |', center => 0, @@ -117,16 +117,16 @@ $BR Use the table to evaluate the expressions: $BR $BR -\(f($s)=\) \{ans_rule(20)\} \{ AnswerFormatHelp("numbers") \} +\(f($s)=\) \{ans_rule(20)\} \{ helpLink("numbers") \} $BR $BR -\(f($t)=\) \{ans_rule(20)\} \{ AnswerFormatHelp("numbers") \} +\(f($t)=\) \{ans_rule(20)\} \{ helpLink("numbers") \} $BR $BR -\(f^{-1}($u)=\) \{ans_rule(20)\} \{ AnswerFormatHelp("numbers") \} +\(f^{-1}($u)=\) \{ans_rule(20)\} \{ helpLink("numbers") \} $BR $BR -\(f^{-1}($v)=\) \{ans_rule(20)\} \{ AnswerFormatHelp("numbers") \} +\(f^{-1}($v)=\) \{ans_rule(20)\} \{ helpLink("numbers") \} $ECENTER END_TEXT diff --git a/Contrib/CCCS/PreCalculus/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_45.pg b/Contrib/CCCS/PreCalculus/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_45.pg index ae2ce350d2..331cfffca5 100644 --- a/Contrib/CCCS/PreCalculus/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_45.pg +++ b/Contrib/CCCS/PreCalculus/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_45.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "niceTables.pl", "PGML.pl", "PGcourse.pl", @@ -46,7 +46,7 @@ $ans1 = Formula("5/9*x - 5/9*32"); BEGIN_PGML To convert from x degrees Celsius to y degrees Fahrenheit, we use the formula [`` f(x) = \frac{9}{5} x + 32 ``]. Find the inverse function, if it exists, and be sure you could explain its meaning. -[`f^{-1}(x)=`] [___________________________]{"5/9*x-160/9"} [@ AnswerFormatHelp("formulas") @]* +[`f^{-1}(x)=`] [___________________________]{"5/9*x-160/9"} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_7.pg b/Contrib/CCCS/PreCalculus/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_7.pg index 3b1889c261..fcc83c0648 100644 --- a/Contrib/CCCS/PreCalculus/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_7.pg +++ b/Contrib/CCCS/PreCalculus/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_7.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -44,8 +44,8 @@ $f=Formula("$a*x+$b")->reduce();; $ans1 = Formula("(x-$b)/$a")->reduce(); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -57,7 +57,7 @@ TeX => BEGIN_PGML Let [`f(x) = [$f]`]. Find [` f^{-1}(x) `]. - [` f^{-1}(x) = `] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* + [` f^{-1}(x) = `] [_______________]{$ans1} [@ helpLink("formulas") @]* [$video]* diff --git a/Contrib/CCCS/PreCalculus/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_7_box.pg b/Contrib/CCCS/PreCalculus/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_7_box.pg index feb11c1d59..ac55ac3f2e 100644 --- a/Contrib/CCCS/PreCalculus/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_7_box.pg +++ b/Contrib/CCCS/PreCalculus/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_7_box.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGchoicemacros.pl", "PGML.pl", "PGcourse.pl", @@ -36,8 +36,8 @@ $showPartialCorrectAnswers = 1; $mc = new_checkbox_multiple_choice(); $mc -> qa ( -"", -"\( f^{-1}(x) \)$BR", +"", +"\( f^{-1}(x) \)$BR", ); $mc -> extra( "\( f(x) \)$BR", @@ -63,7 +63,7 @@ $ans1 = Formula("(x-$b)/$a")->reduce(); BEGIN_PGML Let [`f(x) = [$f]`]. Find and enter the inverse of [`f(x)`] -[_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* +[_______________]{$ans1} [@ helpLink("formulas") @]* Select the correct notation for the inverse of [`f(x)`]. END_PGML diff --git a/Contrib/CCCS/PreCalculus/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_7_16.pg b/Contrib/CCCS/PreCalculus/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_7_16.pg index e00fef6cb2..1f8fd75915 100644 --- a/Contrib/CCCS/PreCalculus/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_7_16.pg +++ b/Contrib/CCCS/PreCalculus/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_7_16.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "niceTables.pl", "PGML.pl", "PGcourse.pl", diff --git a/Contrib/CCCS/PreCalculus/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_7_18.pg b/Contrib/CCCS/PreCalculus/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_7_18.pg index b193622169..e461dc1660 100644 --- a/Contrib/CCCS/PreCalculus/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_7_18.pg +++ b/Contrib/CCCS/PreCalculus/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_7_18.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "niceTables.pl", "PGML.pl", "PGcourse.pl", diff --git a/Contrib/CCCS/PreCalculus/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_7_21.pg b/Contrib/CCCS/PreCalculus/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_7_21.pg index 50945c74f8..73437cfbba 100644 --- a/Contrib/CCCS/PreCalculus/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_7_21.pg +++ b/Contrib/CCCS/PreCalculus/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_7_21.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "niceTables.pl", "PGML.pl", "PGcourse.pl", diff --git a/Contrib/CCCS/PreCalculus/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_7_57.pg b/Contrib/CCCS/PreCalculus/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_7_57.pg index f2eedd9cfb..06a8baea44 100644 --- a/Contrib/CCCS/PreCalculus/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_7_57.pg +++ b/Contrib/CCCS/PreCalculus/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_7_57.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "niceTables.pl", "PGML.pl", "PGcourse.pl", diff --git a/Contrib/CCCS/PreCalculus/5.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_68.pg b/Contrib/CCCS/PreCalculus/5.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_68.pg index 21a3e1eb4a..3c61394791 100644 --- a/Contrib/CCCS/PreCalculus/5.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_68.pg +++ b/Contrib/CCCS/PreCalculus/5.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_68.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "unorderedAnswer.pl", "PGcourse.pl", @@ -46,13 +46,13 @@ $length=Real($y); # Main text BEGIN_PGML - -A rectangular corral is split into 3 adjacent pens using fencing. Find the dimension of the corral that will produce the greatest enclosed are given [`[$a]`] feet of fencing. + +A rectangular corral is split into 3 adjacent pens using fencing. Find the dimension of the corral that will produce the greatest enclosed are given [`[$a]`] feet of fencing. -Width = [_______________][@ AnswerFormatHelp("numbers") @]* +Width = [_______________][@ helpLink("numbers") @]* -Length = [_______________][@ AnswerFormatHelp("numbers") @]* +Length = [_______________][@ helpLink("numbers") @]* END_PGML @@ -64,9 +64,9 @@ $showPartialCorrectAnswers = 0; install_problem_grader(~~&std_problem_grader); -UNORDERED_ANS( -$length->cmp(), , -$width->cmp(), , +UNORDERED_ANS( +$length->cmp(), , +$width->cmp(), , ); diff --git a/Contrib/CCCS/PreCalculus/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_11.pg b/Contrib/CCCS/PreCalculus/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_11.pg index 878558d00c..18531c29a3 100644 --- a/Contrib/CCCS/PreCalculus/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_11.pg +++ b/Contrib/CCCS/PreCalculus/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_11.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -46,8 +46,8 @@ Context("LimitedPoint"); $xint = List(Point("(0,0)"), Point("($b,0)"),Point("($c,0)")); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -59,7 +59,7 @@ TeX => BEGIN_PGML Find the [`x`]-intercept(s) of [`f(x)=[$f]`]. Enter intercept(s) as points. If there is more than one point, enter them as a comma separated list. -+ [`x`]-intercept(s): [_______________]{$xint} [@ AnswerFormatHelp("points") @]* ++ [`x`]-intercept(s): [_______________]{$xint} [@ helpLink("points") @]* [$video]* diff --git a/Contrib/CCCS/PreCalculus/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_16.pg b/Contrib/CCCS/PreCalculus/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_16.pg index ee54f9cc27..5a8fff3a55 100644 --- a/Contrib/CCCS/PreCalculus/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_16.pg +++ b/Contrib/CCCS/PreCalculus/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_16.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -52,7 +52,7 @@ $xint = List( Point("(-$a,0)"),Point("($b,0)"),Point("(-$b,0)")); BEGIN_PGML Find the [`x`]-intercept(s) of [`f(x)=[$f]`]. Enter intercept(s) as points. If there is more than one point, enter them as a comma separated list. -+ [`x`]-intercept(s): [_______________]{$xint} [@ AnswerFormatHelp("points") @]* ++ [`x`]-intercept(s): [_______________]{$xint} [@ helpLink("points") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_19.pg b/Contrib/CCCS/PreCalculus/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_19.pg index 0b3ee07dd4..736aadf4c7 100644 --- a/Contrib/CCCS/PreCalculus/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_19.pg +++ b/Contrib/CCCS/PreCalculus/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_19.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -53,7 +53,7 @@ $xint = List(Point("(sqrt($b),0)"), Point("(-sqrt($b),0)")); BEGIN_PGML Find the [`x`]-intercept(s) of [`f(x)=[$f]`]. Enter intercept(s) as points. If there is more than one point, enter them as a comma separated list. -+ [`x`]-intercept(s): [_______________]{$xint} [@ AnswerFormatHelp("points") @]* ++ [`x`]-intercept(s): [_______________]{$xint} [@ helpLink("points") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_23.pg b/Contrib/CCCS/PreCalculus/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_23.pg index af2c5adb9e..e569394aa2 100644 --- a/Contrib/CCCS/PreCalculus/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_23.pg +++ b/Contrib/CCCS/PreCalculus/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_23.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -50,7 +50,7 @@ $xint = List(Point("(0,0)"),Point("(sqrt($b),0)"), Point("(-sqrt($b),0)"),Point( BEGIN_PGML Find the [`x`]-intercept(s) of [`f(x)=[$f]`]. Enter intercept(s) as points. If there is more than one point, enter them as a comma separated list. -+ [`x`]-intercept(s): [_____________________________]{$xint} [@ AnswerFormatHelp("points") @]* ++ [`x`]-intercept(s): [_____________________________]{$xint} [@ helpLink("points") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_30.pg b/Contrib/CCCS/PreCalculus/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_30.pg index 11c90dec05..f22df28dcb 100644 --- a/Contrib/CCCS/PreCalculus/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_30.pg +++ b/Contrib/CCCS/PreCalculus/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_30.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -53,12 +53,12 @@ $multians = MultiAnswer($a, $m, $b, $n)->with( my ( $correct, $student, $self ) = @_; my ( $stu1, $stu2, $stu3, $stu4) = @{$student}; my ( $a1, $a2, $a3, $a4) = @{$correct}; - if ( + if ( ( ($stu1 == $a1 && $stu2 == $a2) && ($stu3 == $a3 && $stu4 == $a4) || ( $stu1 == $a3 && $stu2 == $a4) && ($stu3 == $a1 && $stu4 == $a2 ) ) ) -{return [1,1,1,1];} +{return [1,1,1,1];} -else { return [0,0,0,0]; } +else { return [0,0,0,0]; } } ); @@ -68,13 +68,13 @@ else { return [0,0,0,0]; } # Main text BEGIN_PGML -Find the zeros and give the multiplicity of each for [`f(x)=[$f]`]. +Find the zeros and give the multiplicity of each for [`f(x)=[$f]`]. Note: to get the problem correct, you must get all answers correct. -+ One zero is [`x=`][____]{$multians} and has a multiplicity of [____]{$multians} [@ AnswerFormatHelp("numbers") @]* ++ One zero is [`x=`][____]{$multians} and has a multiplicity of [____]{$multians} [@ helpLink("numbers") @]* -+ The other zero is [`x=`][____]{$multians} and has a multiplicity of [____]{$multians} [@ AnswerFormatHelp("numbers") @]* ++ The other zero is [`x=`][____]{$multians} and has a multiplicity of [____]{$multians} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_32.pg b/Contrib/CCCS/PreCalculus/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_32.pg index c28bed59e7..a99bfa88a1 100644 --- a/Contrib/CCCS/PreCalculus/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_32.pg +++ b/Contrib/CCCS/PreCalculus/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_32.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserMultiAnswer.pl", "PGML.pl", @@ -55,7 +55,7 @@ $multians = MultiAnswer($a, $m2, 0, $m1, $b, $m3)->with( my ( $correct, $student, $self ) = @_; my ( $stu1, $stu2, $stu3, $stu4, $stu5, $stu6) = @{$student}; my ( $a1, $a2, $a3, $a4, $a5, $a6) = @{$correct}; - if ( + if ( ( (($stu1 == $a1 && $stu2 == $a2 ) && ($stu3 == $a3 && $stu4 == $a4) && ($stu5 == $a5 && $stu6 == $a6)) || ( ($stu1 == $a3 && $stu2 == $a4) && ($stu3 == $a1 && $stu4 == $a2 ) && ($stu5 == $a5 && $stu6 == $a6)) || ( ($stu1 == $a3 && $stu2 == $a4) && ($stu3 == $a5 && $stu4 == $a6 ) && ($stu5 == $a1 && $stu6 == $a2)) || @@ -64,9 +64,9 @@ $multians = MultiAnswer($a, $m2, 0, $m1, $b, $m3)->with( (($stu1 == $a5 && $stu2 == $a6 ) && ($stu3 == $a1 && $stu4 == $a2) && ($stu5 == $a3 && $stu6 == $a4)) ) ) -{return [1,1,1,1,1,1];} +{return [1,1,1,1,1,1];} -else { return [0,0,0,0,0,0]; } +else { return [0,0,0,0,0,0]; } } ); @@ -75,17 +75,17 @@ else { return [0,0,0,0,0,0]; } # Main text BEGIN_PGML -Find the zeros and give the multiplicity of each for [`f(x)=[$f]`]. +Find the zeros and give the multiplicity of each for [`f(x)=[$f]`]. Note: to be counted as correct, you must get all answers correct. -+ One zero is [`x=`][____]{$multians} and has a multiplicity of [____]{$multians} [@ AnswerFormatHelp("numbers") @]* ++ One zero is [`x=`][____]{$multians} and has a multiplicity of [____]{$multians} [@ helpLink("numbers") @]* -+ Another zero is [`x=`][____]{$multians} and has a multiplicity of: [____]{$multians} [@ AnswerFormatHelp("numbers") @]* ++ Another zero is [`x=`][____]{$multians} and has a multiplicity of: [____]{$multians} [@ helpLink("numbers") @]* -+ The last zero is [`x=`][____]{$multians} and has a multiplicity of: [____]{$multians} [@ AnswerFormatHelp("numbers") @]* ++ The last zero is [`x=`][____]{$multians} and has a multiplicity of: [____]{$multians} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_37.pg b/Contrib/CCCS/PreCalculus/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_37.pg index 6d935b7124..f2cd89fb1c 100644 --- a/Contrib/CCCS/PreCalculus/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_37.pg +++ b/Contrib/CCCS/PreCalculus/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_37.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserMultiAnswer.pl", "PGML.pl", @@ -49,7 +49,7 @@ $multians = MultiAnswer(0, $m, $a, 1, $b, 1)->with( my ( $correct, $student, $self ) = @_; my ( $stu1, $stu2, $stu3, $stu4, $stu5, $stu6) = @{$student}; my ( $a1, $a2, $a3, $a4, $a5, $a6) = @{$correct}; - if ( + if ( ( (($stu1 == $a1 && $stu2 == $a2 ) && ($stu3 == $a3 && $stu4 == $a4) && ($stu5 == $a5 && $stu6 == $a6)) || ( ($stu1 == $a3 && $stu2 == $a4) && ($stu3 == $a1 && $stu4 == $a2 ) && ($stu5 == $a5 && $stu6 == $a6)) || ( ($stu1 == $a3 && $stu2 == $a4) && ($stu3 == $a5 && $stu4 == $a6 ) && ($stu5 == $a1 && $stu6 == $a2)) || @@ -57,9 +57,9 @@ $multians = MultiAnswer(0, $m, $a, 1, $b, 1)->with( (($stu1 == $a5 && $stu2 == $a6 ) && ($stu3 == $a3 && $stu4 == $a4) && ($stu5 == $a1 && $stu6 == $a2)) || (($stu1 == $a5 && $stu2 == $a6 ) && ($stu3 == $a1 && $stu4 == $a2) && ($stu5 == $a3 && $stu6 == $a4)) ) ) -{return [1,1,1,1,1,1];} +{return [1,1,1,1,1,1];} -else { return [0,0,0,0,0,0]; } +else { return [0,0,0,0,0,0]; } } ); @@ -68,17 +68,17 @@ else { return [0,0,0,0,0,0]; } # Main text BEGIN_PGML -Find the zeros and give the multiplicity of each for [`f(x)=[$f]`]. +Find the zeros and give the multiplicity of each for [`f(x)=[$f]`]. Note: to be counted as correct, you must get all answers correct. -+ One zero is [`x=`][____]{$multians} and has a multiplicity of [____]{$multians} [@ AnswerFormatHelp("numbers") @]* ++ One zero is [`x=`][____]{$multians} and has a multiplicity of [____]{$multians} [@ helpLink("numbers") @]* -+ Another zero is [`x=`][____]{$multians} and has a multiplicity of: [____]{$multians} [@ AnswerFormatHelp("numbers") @]* ++ Another zero is [`x=`][____]{$multians} and has a multiplicity of: [____]{$multians} [@ helpLink("numbers") @]* -+ The last zero is [`x=`][____]{$multians} and has a multiplicity of: [____]{$multians} [@ AnswerFormatHelp("numbers") @]* ++ The last zero is [`x=`][____]{$multians} and has a multiplicity of: [____]{$multians} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_45.pg b/Contrib/CCCS/PreCalculus/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_45.pg index 71db149445..052250b0e5 100644 --- a/Contrib/CCCS/PreCalculus/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_45.pg +++ b/Contrib/CCCS/PreCalculus/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_45.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -55,13 +55,13 @@ Context("Numeric"); BEGIN_PGML Graph the polynomial [`y=[$f]`]. Give the [`x`]-intercept(s), [`y`]-intercept, and end behavior below, and draw the graph by hand on paper for your own reference. -+ [`x`]-intercept(s): [____________]{$xint} [@ AnswerFormatHelp("points") @]* ++ [`x`]-intercept(s): [____________]{$xint} [@ helpLink("points") @]* -+ [`y`]-intercept: [____]{$yint} [@ AnswerFormatHelp("points") @]* ++ [`y`]-intercept: [____]{$yint} [@ helpLink("points") @]* -+ As [`x \to -\infty `], [`y \to `] [___]{"infinity"} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to -\infty `], [`y \to `] [___]{"infinity"} [@ helpLink("numbers") @]* -+ As [`x \to \infty `], [`y \to `] [____]{"infinity"} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to \infty `], [`y \to `] [____]{"infinity"} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_46.pg b/Contrib/CCCS/PreCalculus/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_46.pg index 39d610e5a9..a865c15999 100644 --- a/Contrib/CCCS/PreCalculus/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_46.pg +++ b/Contrib/CCCS/PreCalculus/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_46.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -49,8 +49,8 @@ $yint = List( Point("(0,$y)") ); Context("Numeric"); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -62,13 +62,13 @@ TeX => BEGIN_PGML Graph the polynomial [`y=[$f]`]. Give the [`x`]-intercept(s), [`y`]-intercept, and end behavior below, and draw the graph by hand on paper for your own reference. -+ [`x`]-intercept(s): [____________]{$xint} [@ AnswerFormatHelp("points") @]* ++ [`x`]-intercept(s): [____________]{$xint} [@ helpLink("points") @]* -+ [`y`]-intercept: [____]{$yint} [@ AnswerFormatHelp("points") @]* ++ [`y`]-intercept: [____]{$yint} [@ helpLink("points") @]* -+ As [`x \to -\infty `], [`y \to `] [___]{"infinity"} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to -\infty `], [`y \to `] [___]{"infinity"} [@ helpLink("numbers") @]* -+ As [`x \to \infty `], [`y \to `] [____]{"-infinity"} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to \infty `], [`y \to `] [____]{"-infinity"} [@ helpLink("numbers") @]* [$video]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_47.pg b/Contrib/CCCS/PreCalculus/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_47.pg index e745409c7b..900c489195 100644 --- a/Contrib/CCCS/PreCalculus/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_47.pg +++ b/Contrib/CCCS/PreCalculus/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_47.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -55,13 +55,13 @@ Context("Numeric"); BEGIN_PGML Graph the polynomial [`y=[$f]`]. Give the [`x`]-intercept(s), [`y`]-intercept, and end behavior below, and draw the graph by hand on paper for your own reference. -+ [`x`]-intercept(s): [____________]{$xint} [@ AnswerFormatHelp("points") @]* ++ [`x`]-intercept(s): [____________]{$xint} [@ helpLink("points") @]* -+ [`y`]-intercept: [____]{$yint} [@ AnswerFormatHelp("points") @]* ++ [`y`]-intercept: [____]{$yint} [@ helpLink("points") @]* -+ As [`x \to -\infty `], [`y \to `] [___]{"-infinity"} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to -\infty `], [`y \to `] [___]{"-infinity"} [@ helpLink("numbers") @]* -+ As [`x \to \infty `], [`y \to `] [____]{"infinity"} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to \infty `], [`y \to `] [____]{"infinity"} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_48.pg b/Contrib/CCCS/PreCalculus/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_48.pg index ad1c298332..83b716fc69 100644 --- a/Contrib/CCCS/PreCalculus/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_48.pg +++ b/Contrib/CCCS/PreCalculus/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_48.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", ); @@ -51,8 +51,8 @@ $refreshCachedImages=1; $ans1=Formula("1/2*(x-$a)*(x-$b)*(x-$c)")->reduce; $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -66,7 +66,7 @@ Let the graph of \( f(x) \) be given below. Find the formula of \( f(x) \), a po $BR $BR -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>300,height=>300,tex_size=>800 ) \} $BR $BR @@ -76,7 +76,7 @@ $BR $BR $BR \( f(x) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR diff --git a/Contrib/CCCS/PreCalculus/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_51.pg b/Contrib/CCCS/PreCalculus/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_51.pg index 47543b65f3..0a1d973174 100644 --- a/Contrib/CCCS/PreCalculus/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_51.pg +++ b/Contrib/CCCS/PreCalculus/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_51.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -39,7 +39,7 @@ size=>[400,400] ); $a = list_random(-4,4); -$b = non_zero_random(-2,2); +$b = non_zero_random(-2,2); add_functions($gr, "1/4*(x-$a)*(x-$b)^2 for x in <-5,5> using color:blue and weight:2"); @@ -57,7 +57,7 @@ Let the graph of \( f(x) \) be given below. Find the formula of \( f(x) \), a po $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>300,height=>300,tex_size=>800 ) \} $BR $BR @@ -67,7 +67,7 @@ $BR $BR $BR \( f(x) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR $ECENTER diff --git a/Contrib/CCCS/PreCalculus/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_57.pg b/Contrib/CCCS/PreCalculus/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_57.pg index d0d61e028f..941c5c176d 100644 --- a/Contrib/CCCS/PreCalculus/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_57.pg +++ b/Contrib/CCCS/PreCalculus/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_57.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -38,7 +38,7 @@ Context("Numeric"); $a = non_zero_random(-4,4); do { $b = non_zero_random(-4,4); } until ( $b != $a ); do { $c = non_zero_random(-4,4); } until (( $c != $a )and( $c != $b ) ); -$yint = random(4,12,4); +$yint = random(4,12,4); $g=Formula("(x-$a)*(x-$b)*(x-$c)")->reduce; $d=$g->eval(x=>0); @@ -51,7 +51,7 @@ $ans1=Formula("$yfactor*(x-$a)*(x-$b)*(x-$c)")->reduce; # Main text BEGIN_PGML -Find the equation for a polynomial [`f(x)`] that satisfies the following: +Find the equation for a polynomial [`f(x)`] that satisfies the following: + Degree [`3`] + Zero at [`x=[$a]`] + Zero at [`x=[$b]`] @@ -59,10 +59,10 @@ Find the equation for a polynomial [`f(x)`] that satisfies the following: + [`y`]-intercept of [`(0,[$yint])`] - [` f(x) = `] [______________________]{$ans1} [@ AnswerFormatHelp("formulas") @]* + [` f(x) = `] [______________________]{$ans1} [@ helpLink("formulas") @]* + - END_PGML diff --git a/Contrib/CCCS/PreCalculus/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_60.pg b/Contrib/CCCS/PreCalculus/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_60.pg index 987ca856ed..7aa780aace 100644 --- a/Contrib/CCCS/PreCalculus/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_60.pg +++ b/Contrib/CCCS/PreCalculus/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_60.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -64,9 +64,9 @@ Find the equation for a polynomial [`f(x)`] that satisfies the following: + [`y`]-intercept of [`(0,[$yint])`] - [` f(x) = `] [_______________________]{$ans1} [@ AnswerFormatHelp("formulas") @]* + [` f(x) = `] [_______________________]{$ans1} [@ helpLink("formulas") @]* + - END_PGML diff --git a/Contrib/CCCS/PreCalculus/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_75.pg b/Contrib/CCCS/PreCalculus/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_75.pg index d8f24ffd41..ee12fec9bb 100644 --- a/Contrib/CCCS/PreCalculus/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_75.pg +++ b/Contrib/CCCS/PreCalculus/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_75.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -36,7 +36,7 @@ $showPartialCorrectAnswers = 1; Context("Numeric"); $a = non_zero_random(10,20, 2); -$b = non_zero_random(4,8); +$b = non_zero_random(4,8); $ans1=Formula("x*($a-2x)*($b-2x)")->reduce; @@ -48,10 +48,10 @@ BEGIN_PGML A rectangle has a length of [$a] units and a width of [$b] units. Squares of `x` by `x` units are cut out of each corner, and then the sides are folded up to create an open box. Express the volume of the box as a polynomial function in terms of `x`. - [` f(x) = `] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* + [` f(x) = `] [_______________]{$ans1} [@ helpLink("formulas") @]* + - END_PGML diff --git a/Contrib/CCCS/PreCalculus/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_79.pg b/Contrib/CCCS/PreCalculus/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_79.pg index 02a15bb7a0..012afe1d45 100644 --- a/Contrib/CCCS/PreCalculus/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_79.pg +++ b/Contrib/CCCS/PreCalculus/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_79.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -52,10 +52,10 @@ BEGIN_PGML A right circular cone has a radius of [`[$f]`] and a height `[$c]` units less than its radius. Express the volume of the cone as a polynomial function. The volume of a cone is `V = 1/3 pi r^2 h` for radius [`r`] and height [`h`]. Enter [`\pi`] as pi. - [` V(x) = `] [____________________]{"(1/3)*$ans"} [@ AnswerFormatHelp("formulas") @]* + [` V(x) = `] [____________________]{"(1/3)*$ans"} [@ helpLink("formulas") @]* + - END_PGML diff --git a/Contrib/CCCS/PreCalculus/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_8.pg b/Contrib/CCCS/PreCalculus/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_8.pg index 9e580d2ba3..c4b7f36334 100644 --- a/Contrib/CCCS/PreCalculus/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_8.pg +++ b/Contrib/CCCS/PreCalculus/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_8.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -46,8 +46,8 @@ Context("LimitedPoint"); $xint = List(Point("(0,0)"), Point("($b,0)"),Point("($c,0)")); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -59,7 +59,7 @@ TeX => BEGIN_PGML Find the [`x`]-intercept(s) of [`f(x)=[$f][$g]`]. Enter intercept(s) as points. If there is more than one point, enter them as a comma separated list. -+ [`x`]-intercept(s): [_______________]{$xint} [@ AnswerFormatHelp("points") @]* ++ [`x`]-intercept(s): [_______________]{$xint} [@ helpLink("points") @]* [$video]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/5.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_31.pg b/Contrib/CCCS/PreCalculus/5.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_31.pg index 6d0100371d..f755487799 100644 --- a/Contrib/CCCS/PreCalculus/5.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_31.pg +++ b/Contrib/CCCS/PreCalculus/5.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_31.pg @@ -16,7 +16,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserPopUp.pl", "PGML.pl", "PGcourse.pl", @@ -36,7 +36,7 @@ Context()->noreduce('(-x)-y','(-x)+y'); $a = 2; $b = list_random(4, 8, 12, 16); $c = list_random(4, 8, 12, 16); -$d = non_zero_random(-4,4,1); +$d = non_zero_random(-4,4,1); $e = Compute("-$b/$a")-> reduce; $f=Formula("($c*x^2+$d)/($a*x + $b)")->reduce; @@ -54,16 +54,16 @@ $popup3 = PopUp(["?","x=","y="],"y=",); # Main text BEGIN_PGML -Let [`` f(x)=[$f] ``]. Find the domain, vertical asymptote(s) and slant asymptote or horizontal asymptote. If a slant asymptote or horizontal asymptote does not exist, enter "NONE". +Let [`` f(x)=[$f] ``]. Find the domain, vertical asymptote(s) and slant asymptote or horizontal asymptote. If a slant asymptote or horizontal asymptote does not exist, enter "NONE". -+ Domain: [______________________]{$ans1} [@ AnswerFormatHelp("intervals") @]* ++ Domain: [______________________]{$ans1} [@ helpLink("intervals") @]* + Vertical Asymptote(s): [_______]{$popup1} [_______________]{$ans2} (Enter values as a comma separated list if more than one) - [@ AnswerFormatHelp("numbers") @]* + [@ helpLink("numbers") @]* -+ Horizontal Asymptote: [_______]{$popup2} [_______________]{$ans3} [@ AnswerFormatHelp("numbers") @]* ++ Horizontal Asymptote: [_______]{$popup2} [_______________]{$ans3} [@ helpLink("numbers") @]* -+ Slant Asymptote: [_______]{$popup3}[_______________]{$ans4} [@ AnswerFormatHelp("numbers") @]* ++ Slant Asymptote: [_______]{$popup3}[_______________]{$ans4} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/5.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_34.pg b/Contrib/CCCS/PreCalculus/5.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_34.pg index f88cb7bfc6..db396a663c 100644 --- a/Contrib/CCCS/PreCalculus/5.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_34.pg +++ b/Contrib/CCCS/PreCalculus/5.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_34.pg @@ -16,7 +16,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserPopUp.pl", "PGML.pl", "PGcourse.pl", @@ -53,16 +53,16 @@ $popup3 = PopUp(["?","x=","y="],"y=",); # Main text BEGIN_PGML -Let [`` f(x)=[$f] ``]. Find the domain, vertical asymptote(s) and slant asymptote or horizontal asymptote. If a slant asymptote or horizontal asymptote does not exist, enter "NONE". +Let [`` f(x)=[$f] ``]. Find the domain, vertical asymptote(s) and slant asymptote or horizontal asymptote. If a slant asymptote or horizontal asymptote does not exist, enter "NONE". -+ Domain: [______________________]{$ans1} [@ AnswerFormatHelp("intervals") @]* ++ Domain: [______________________]{$ans1} [@ helpLink("intervals") @]* + Vertical Asymptote(s): [_______]{$popup1} [_______________]{$ans2} (Enter values as a comma separated list if more than one) - [@ AnswerFormatHelp("numbers") @]* + [@ helpLink("numbers") @]* -+ Horizontal Asymptote: [_______]{$popup2} [_______________]{$ans3} [@ AnswerFormatHelp("numbers") @]* ++ Horizontal Asymptote: [_______]{$popup2} [_______________]{$ans3} [@ helpLink("numbers") @]* -+ Slant Asymptote: [_______]{$popup3}[_______________]{$ans4} [@ AnswerFormatHelp("numbers") @]* ++ Slant Asymptote: [_______]{$popup3}[_______________]{$ans4} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/5.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_81.pg b/Contrib/CCCS/PreCalculus/5.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_81.pg index 3dd8ea8efa..508397a886 100644 --- a/Contrib/CCCS/PreCalculus/5.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_81.pg +++ b/Contrib/CCCS/PreCalculus/5.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_81.pg @@ -16,7 +16,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -46,9 +46,9 @@ $ans = Formula("($b + $d*t)/($a + $c*t)")->reduce(); # Main text BEGIN_PGML -A large mixing tank currently contains [$a] gallons of water, into which [$b] pounds of sugar have been mixed. A tap will open, pouring [$c] gallons of water per minute into the tank at the same time sugar is poured into the the tank as a rate of [$d] pounds per minute. Write the rational function that describes the concentration of sugar (given in pounds of sugar per gallon of water) in the tank after [`t`] minutes. +A large mixing tank currently contains [$a] gallons of water, into which [$b] pounds of sugar have been mixed. A tap will open, pouring [$c] gallons of water per minute into the tank at the same time sugar is poured into the the tank as a rate of [$d] pounds per minute. Write the rational function that describes the concentration of sugar (given in pounds of sugar per gallon of water) in the tank after [`t`] minutes. -[`f(t)=`] [_________________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`f(t)=`] [_________________________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/5.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_9.pg b/Contrib/CCCS/PreCalculus/5.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_9.pg index 084d7c1fa9..2ce461ff9f 100644 --- a/Contrib/CCCS/PreCalculus/5.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_9.pg +++ b/Contrib/CCCS/PreCalculus/5.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_9.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -57,7 +57,7 @@ BEGIN_PGML Find the domain of [`` f(x)=[$f] ``]. Enter the solution in interval notation. -[________________________________]{$ans} [@ AnswerFormatHelp("intervals") @]* +[________________________________]{$ans} [@ helpLink("intervals") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/5.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_sup1.pg b/Contrib/CCCS/PreCalculus/5.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_sup1.pg index 7ba6526546..ac3252c820 100644 --- a/Contrib/CCCS/PreCalculus/5.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_sup1.pg +++ b/Contrib/CCCS/PreCalculus/5.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_sup1.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserPopUp.pl", "PGML.pl", "PGcourse.pl", @@ -62,8 +62,8 @@ $popup3 = PopUp(["?","x=","y="], "y=",); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -73,15 +73,15 @@ TeX => BEGIN_PGML -Let [`` f(x)=[$f] ``]. Find the domain, vertical asymptote(s) and slant asymptote or horizontal asymptote. If a slant asymptote or horizontal asymptote does not exist, enter "NONE". +Let [`` f(x)=[$f] ``]. Find the domain, vertical asymptote(s) and slant asymptote or horizontal asymptote. If a slant asymptote or horizontal asymptote does not exist, enter "NONE". -+ Domain: [______________________]{$ans1} [@ AnswerFormatHelp("intervals") @]* ++ Domain: [______________________]{$ans1} [@ helpLink("intervals") @]* -+ Vertical Asymptote(s): [_______]{$popup1} [_______________]{$ans2} (Enter values as a comma separated list if more than one) [@ AnswerFormatHelp("numbers") @]* ++ Vertical Asymptote(s): [_______]{$popup1} [_______________]{$ans2} (Enter values as a comma separated list if more than one) [@ helpLink("numbers") @]* -+ Horizontal Asymptote: [_______]{$popup2} [_______________]{$ans3} [@ AnswerFormatHelp("numbers") @]* ++ Horizontal Asymptote: [_______]{$popup2} [_______________]{$ans3} [@ helpLink("numbers") @]* -+ Slant Asymptote: [_______]{$popup3} [_______________]{$ans4} [@ AnswerFormatHelp("numbers") @]* ++ Slant Asymptote: [_______]{$popup3} [_______________]{$ans4} [@ helpLink("numbers") @]* [$video]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_15.pg b/Contrib/CCCS/PreCalculus/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_15.pg index a1a1967a96..170b709eea 100644 --- a/Contrib/CCCS/PreCalculus/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_15.pg +++ b/Contrib/CCCS/PreCalculus/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_15.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserPopUp.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -62,15 +62,15 @@ $popup3 = PopUp(["?","x=","y="], "y="); BEGIN_PGML -Let [`` f(x)=[$f] ``]. Find the domain, vertical asymptote(s) and slant asymptote or horizontal asymptote. If a slant asymptote or horizontal asymptote does not exist, enter "NONE". +Let [`` f(x)=[$f] ``]. Find the domain, vertical asymptote(s) and slant asymptote or horizontal asymptote. If a slant asymptote or horizontal asymptote does not exist, enter "NONE". -+ Domain: [_________________________________]{$ans1} [@ AnswerFormatHelp("intervals") @]* ++ Domain: [_________________________________]{$ans1} [@ helpLink("intervals") @]* -+ Vertical Asymptote(s): [_______]{$popup1} [_______________]{$ans2} (Enter values as a comma separated list if more than one) [@ AnswerFormatHelp("numbers") @]* ++ Vertical Asymptote(s): [_______]{$popup1} [_______________]{$ans2} (Enter values as a comma separated list if more than one) [@ helpLink("numbers") @]* -+ Horizontal Asymptote: [_______]{$popup2}[_______________]{$ans3} [@ AnswerFormatHelp("numbers") @]* ++ Horizontal Asymptote: [_______]{$popup2}[_______________]{$ans3} [@ helpLink("numbers") @]* -+ Slant Asymptote: [_______]{$popup3}[_______________]{$ans4} [@ AnswerFormatHelp("numbers") @]* ++ Slant Asymptote: [_______]{$popup3}[_______________]{$ans4} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_17.pg b/Contrib/CCCS/PreCalculus/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_17.pg index 161d058993..deb3b570dd 100644 --- a/Contrib/CCCS/PreCalculus/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_17.pg +++ b/Contrib/CCCS/PreCalculus/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_17.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "parserPopUp.pl", "PGcourse.pl", @@ -56,15 +56,15 @@ $popup3 = PopUp(["?","x=","y="],"y=",); BEGIN_PGML -Let [`` f(x)=[$f] ``]. Find the domain, vertical asymptote(s) and slant asymptote or horizontal asymptote. If a slant asymptote or horizontal asymptote does not exist, enter "NONE". +Let [`` f(x)=[$f] ``]. Find the domain, vertical asymptote(s) and slant asymptote or horizontal asymptote. If a slant asymptote or horizontal asymptote does not exist, enter "NONE". -+ Domain: [______________________]{$ans1} [@ AnswerFormatHelp("intervals") @]* ++ Domain: [______________________]{$ans1} [@ helpLink("intervals") @]* -+ Vertical Asymptote(s): [_______]{$popup1} [_______________]{$ans2} (Enter values as a comma separated list if more than one) [@ AnswerFormatHelp("numbers") @]* ++ Vertical Asymptote(s): [_______]{$popup1} [_______________]{$ans2} (Enter values as a comma separated list if more than one) [@ helpLink("numbers") @]* -+ Horizontal Asymptote: [_______]{$popup2} [_______________]{$ans3} [@ AnswerFormatHelp("numbers") @]* ++ Horizontal Asymptote: [_______]{$popup2} [_______________]{$ans3} [@ helpLink("numbers") @]* -+ Slant Asymptote: [_______]{$popup3}[_______________]{$ans4} [@ AnswerFormatHelp("numbers") @]* ++ Slant Asymptote: [_______]{$popup3}[_______________]{$ans4} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_19.pg b/Contrib/CCCS/PreCalculus/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_19.pg index 228ccf2a41..c16bf73f2d 100644 --- a/Contrib/CCCS/PreCalculus/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_19.pg +++ b/Contrib/CCCS/PreCalculus/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_19.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserPopUp.pl", "PGML.pl", "PGcourse.pl", @@ -40,7 +40,7 @@ $b=non_zero_random(-10,10,1); do { $c = non_zero_random(-10,10,1);} until ($c != $a); #do { $d = non_zero_random(-10,10,1);} until ($d != $b); -#Michael Sulock made the below change to prevent an issue with having a common linear +#Michael Sulock made the below change to prevent an issue with having a common linear #factor on the top and bottom that create a hole instead of an asympotote $d=Compute($c+1); @@ -66,16 +66,16 @@ $popup3 = PopUp(["?","x=","y="],"y=",); BEGIN_PGML -Let [`` f(x)=[$f] ``]. Find the domain, vertical asymptote(s) and slant asymptote or horizontal asymptote. If a slant asymptote or horizontal asymptote does not exist, enter "NONE". +Let [`` f(x)=[$f] ``]. Find the domain, vertical asymptote(s) and slant asymptote or horizontal asymptote. If a slant asymptote or horizontal asymptote does not exist, enter "NONE". -+ Domain: [______________________]{$ans1} [@ AnswerFormatHelp("intervals") @]* ++ Domain: [______________________]{$ans1} [@ helpLink("intervals") @]* + Vertical Asymptote(s): [_______]{$popup1} [_______________]{$ans2} (Enter values as a comma separated list if more than one) - [@ AnswerFormatHelp("numbers") @]* + [@ helpLink("numbers") @]* -+ Horizontal Asymptote: [_______]{$popup2} [_______________]{$ans3} [@ AnswerFormatHelp("numbers") @]* ++ Horizontal Asymptote: [_______]{$popup2} [_______________]{$ans3} [@ helpLink("numbers") @]* -+ Slant Asymptote: [_______]{$popup3}[_______________]{$ans4} [@ AnswerFormatHelp("numbers") @]* ++ Slant Asymptote: [_______]{$popup3}[_______________]{$ans4} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_20.pg b/Contrib/CCCS/PreCalculus/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_20.pg index d949a1d763..460b5dc7eb 100644 --- a/Contrib/CCCS/PreCalculus/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_20.pg +++ b/Contrib/CCCS/PreCalculus/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_20.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -45,8 +45,8 @@ $xint = List( Point("($a,0)")); $yint = List( Point("(0,$y)") ); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -57,9 +57,9 @@ BEGIN_PGML Find the [`x`] and [`y`]-intercepts for [`` f(x)=[$f] ``]. If there is more than one, enter them as a comma separated list. -+ [`x`]-intercept(s): [______________________]{$xint} [@ AnswerFormatHelp("points") @]* ++ [`x`]-intercept(s): [______________________]{$xint} [@ helpLink("points") @]* -+ [`y`]-intercept: [_______________]{$yint} [@ AnswerFormatHelp("points") @]* ++ [`y`]-intercept: [_______________]{$yint} [@ helpLink("points") @]* [$video]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_39.pg b/Contrib/CCCS/PreCalculus/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_39.pg index 0c2d3b089b..e6b34752f1 100644 --- a/Contrib/CCCS/PreCalculus/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_39.pg +++ b/Contrib/CCCS/PreCalculus/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_39.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -58,17 +58,17 @@ $ans5=Compute("$c"); BEGIN_PGML -Let [`` f(x)=[$f] ``]. Find the domain, vertical asymptote, behavior of the function near the vertical asymptote, and horizontal asymptote. +Let [`` f(x)=[$f] ``]. Find the domain, vertical asymptote, behavior of the function near the vertical asymptote, and horizontal asymptote. -+ Domain: [_______________]{$ans1} [@ AnswerFormatHelp("intervals") @]* ++ Domain: [_______________]{$ans1} [@ helpLink("intervals") @]* -+ Vertical Asymptote: [`x=`] [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* ++ Vertical Asymptote: [`x=`] [_______________]{$ans2} [@ helpLink("numbers") @]* + As [`x \to [$b]^-`], [`f(x) \to`] [_______________]{$ans3} (enter infinity or -infinity) - [@ AnswerFormatHelp("numbers") @]* -+ As [`x \to [$b]^+`], [`f(x) \to`] [_______________]{$ans4} (enter infinity or -infinity) [@ AnswerFormatHelp("numbers") @]* + [@ helpLink("numbers") @]* ++ As [`x \to [$b]^+`], [`f(x) \to`] [_______________]{$ans4} (enter infinity or -infinity) [@ helpLink("numbers") @]* -+ Horizontal Asymptote: [`y=`] [_______________]{$ans5} [@ AnswerFormatHelp("numbers") @]* ++ Horizontal Asymptote: [`y=`] [_______________]{$ans5} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_40.pg b/Contrib/CCCS/PreCalculus/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_40.pg index fd41a15b5a..69ea3bdf2b 100644 --- a/Contrib/CCCS/PreCalculus/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_40.pg +++ b/Contrib/CCCS/PreCalculus/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_40.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -73,21 +73,21 @@ $ans7 = List( Point("(0, $g)")); BEGIN_PGML -Let [`` f(x)=[$f] ``]. Find the domain, vertical asymptote, behavior of the function near the vertical asymptote, and horizontal asymptote. Also, find the x-intercepts and y-intercepts of the given rational function. +Let [`` f(x)=[$f] ``]. Find the domain, vertical asymptote, behavior of the function near the vertical asymptote, and horizontal asymptote. Also, find the x-intercepts and y-intercepts of the given rational function. -+ Domain: [_______________]{$ans1} [@ AnswerFormatHelp("intervals") @]* ++ Domain: [_______________]{$ans1} [@ helpLink("intervals") @]* -+ Vertical Asymptote: [`x=`] [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* ++ Vertical Asymptote: [`x=`] [_______________]{$ans2} [@ helpLink("numbers") @]* -+ As [`x \to [$asymp]^-`], [`f(x) \to`] [_______________]{$ans3} (enter infinity or -infinity) [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to [$asymp]^-`], [`f(x) \to`] [_______________]{$ans3} (enter infinity or -infinity) [@ helpLink("numbers") @]* -+ As [`x \to [$asymp]^+`], [`f(x) \to`] [_______________]{$ans4} (enter infinity or -infinity) [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to [$asymp]^+`], [`f(x) \to`] [_______________]{$ans4} (enter infinity or -infinity) [@ helpLink("numbers") @]* -+ Horizontal Asymptote: [`y=`] [_______________]{$ans5} [@ AnswerFormatHelp("numbers") @]* ++ Horizontal Asymptote: [`y=`] [_______________]{$ans5} [@ helpLink("numbers") @]* -+ [`x`]-intercept(s): [______________________]{$ans6} [@ AnswerFormatHelp("points") @]* ++ [`x`]-intercept(s): [______________________]{$ans6} [@ helpLink("points") @]* -+ [`y`]-intercept: [_______________]{$ans7} [@ AnswerFormatHelp("points") @]* ++ [`y`]-intercept: [_______________]{$ans7} [@ helpLink("points") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_43.pg b/Contrib/CCCS/PreCalculus/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_43.pg index 2d55c7d95b..f13851be5f 100644 --- a/Contrib/CCCS/PreCalculus/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_43.pg +++ b/Contrib/CCCS/PreCalculus/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_43.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -77,27 +77,27 @@ $ans9 = List( Point("(0,$yint)")); BEGIN_PGML -Let [`` f(x)=[$f] ``]. Find the domain, vertical asymptotes, behavior of the function near the vertical asymptote, and horizontal asymptote. +Let [`` f(x)=[$f] ``]. Find the domain, vertical asymptotes, behavior of the function near the vertical asymptote, and horizontal asymptote. -+ Domain: [____________________]{$ans1} [@ AnswerFormatHelp("intervals") @]* ++ Domain: [____________________]{$ans1} [@ helpLink("intervals") @]* -+ Vertical Asymptotes: [`x=`] [_______________]{$ans2} (Enter values as a comma separated list) [@ AnswerFormatHelp("numbers") @]* ++ Vertical Asymptotes: [`x=`] [_______________]{$ans2} (Enter values as a comma separated list) [@ helpLink("numbers") @]* + As [`x \to [$l]^-`], [`f(x) \to`] [_______________]{$ans3} (enter infinity or -infinity) - [@ AnswerFormatHelp("numbers") @]* + [@ helpLink("numbers") @]* + As [`x \to [$l]^+`], [`f(x) \to`] [_______________]{$ans4} (enter infinity or -infinity) - [@ AnswerFormatHelp("numbers") @]* + [@ helpLink("numbers") @]* + As [`x \to [$r]^-`], [`f(x) \to`] [_______________]{$ans5} (enter infinity or -infinity) - [@ AnswerFormatHelp("numbers") @]* + [@ helpLink("numbers") @]* + As [`x \to [$r]^+`], [`f(x) \to`] [_______________]{$ans6} (enter infinity or -infinity) - [@ AnswerFormatHelp("numbers") @]* + [@ helpLink("numbers") @]* -+ Horizontal Asymptote: [`y=`] [_______________]{$ans7} - [@ AnswerFormatHelp("numbers") @]* ++ Horizontal Asymptote: [`y=`] [_______________]{$ans7} + [@ helpLink("numbers") @]* -+ [`x`]-intercept(s): [______________________]{$ans8} (If there are more than one point, enter as a comma separated list.) [@ AnswerFormatHelp("points") @]* ++ [`x`]-intercept(s): [______________________]{$ans8} (If there are more than one point, enter as a comma separated list.) [@ helpLink("points") @]* -+ [`y`]-intercept: [_______________]{$ans9} [@ AnswerFormatHelp("points") @]* ++ [`y`]-intercept: [_______________]{$ans9} [@ helpLink("points") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_45.pg b/Contrib/CCCS/PreCalculus/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_45.pg index 53432cfcae..6066240ee4 100644 --- a/Contrib/CCCS/PreCalculus/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_45.pg +++ b/Contrib/CCCS/PreCalculus/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_45.pg @@ -1,5 +1,5 @@ # DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -19,7 +19,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "PGchoicemacros.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGgraphmacros.pl", "unionTables.pl", @@ -94,7 +94,7 @@ $gr[3]->lb(new Label(0.25,9.75,'y','black','center','middle')); @perm = shuffle(4); for $i (0..3) { - plot_functions( $gr[$perm[$i]], $f[$perm[$i]]); + plot_functions( $gr[$perm[$i]], $f[$perm[$i]]); ($gr[$perm[$i]]->fn)[0]->steps(4000); $fig[$i]=image(insertGraph($gr[$perm[$i]]), width=>400,height=>400,tex_size=>450); @@ -123,8 +123,8 @@ $popup2 = PopUp( ); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -136,21 +136,21 @@ TeX => BEGIN_PGML Let [``f(x)=[$f]``]. Find the domain, vertical asymptote(s), horizontal asymptote, and select the correct graph. -+ Domain: [____________________]{$ans1} [@ AnswerFormatHelp("intervals") @]* ++ Domain: [____________________]{$ans1} [@ helpLink("intervals") @]* -+ Vertical Asymptote(s): [_______]{$popup1} [_______________]{$ans2} (If more than one, enter values as a comma separated list) [@ AnswerFormatHelp("numbers") @]* ++ Vertical Asymptote(s): [_______]{$popup1} [_______________]{$ans2} (If more than one, enter values as a comma separated list) [@ helpLink("numbers") @]* -+ Horizontal Asymptote: [_______]{$popup2} [_______________]{$ans3} [@ AnswerFormatHelp("numbers") @]* ++ Horizontal Asymptote: [_______]{$popup2} [_______________]{$ans3} [@ helpLink("numbers") @]* -+ [`x`]-intercept(s): [______________________]{$ans4} (If there are more than one point, enter as a comma separated list.) [@ AnswerFormatHelp("points") @]* ++ [`x`]-intercept(s): [______________________]{$ans4} (If there are more than one point, enter as a comma separated list.) [@ helpLink("points") @]* -+ [`y`]-intercept: [_______________]{$ans5} [@ AnswerFormatHelp("points") @]* ++ [`y`]-intercept: [_______________]{$ans5} [@ helpLink("points") @]* END_PGML BEGIN_TEXT $BR $BR -Which of the following is the graph of \( f(x) \)? +Which of the following is the graph of \( f(x) \)? \{ $popup->menu() \} $BR (Note, window is from [-10,10] so some of graph may be off the window) diff --git a/Contrib/CCCS/PreCalculus/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_48.pg b/Contrib/CCCS/PreCalculus/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_48.pg index 8c40493a64..9b4d96fc63 100644 --- a/Contrib/CCCS/PreCalculus/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_48.pg +++ b/Contrib/CCCS/PreCalculus/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_48.pg @@ -1,5 +1,5 @@ # DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -19,7 +19,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "PGchoicemacros.pl", -"AnswerFormatHelp.pl", + "PGgraphmacros.pl", "unionTables.pl", "parserPopUp.pl", @@ -84,7 +84,7 @@ $gr[3]->lb(new Label(0.25,9.75,'y','black','center','middle')); @perm = shuffle(4); for $i (0..3) { - plot_functions( $gr[$perm[$i]], $f[$perm[$i]]); + plot_functions( $gr[$perm[$i]], $f[$perm[$i]]); ($gr[$perm[$i]]->fn)[0]->steps(4000); $fig[$i]=image(insertGraph($gr[$perm[$i]]), width=>400,height=>400,tex_size=>450); @@ -119,18 +119,18 @@ $popup2 = PopUp( BEGIN_PGML Let [``f(x)=[$f]``]. Find the domain, vertical asymptotes, slant asymptote, and select the correct graph. -+ Domain: [____________________]{$ans1} [@ AnswerFormatHelp("intervals") @]* ++ Domain: [____________________]{$ans1} [@ helpLink("intervals") @]* -+ Vertical Asymptotes: [_______]{$popup1} [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* ++ Vertical Asymptotes: [_______]{$popup1} [_______________]{$ans2} [@ helpLink("numbers") @]* -+ Slant Asymptote: [_______]{$popup2} [_______________]{$ans3} [@ AnswerFormatHelp("formulas") @]* ++ Slant Asymptote: [_______]{$popup2} [_______________]{$ans3} [@ helpLink("formulas") @]* END_PGML BEGIN_TEXT $BR $BR -Which of the following is the graph of \( f(x) \)? +Which of the following is the graph of \( f(x) \)? \{ $popup->menu() \} $BR (Note, window is from [-10,10] so some of graph may be off the window) diff --git a/Contrib/CCCS/PreCalculus/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_51.pg b/Contrib/CCCS/PreCalculus/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_51.pg index f31f8ad8ca..147fc29ae0 100644 --- a/Contrib/CCCS/PreCalculus/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_51.pg +++ b/Contrib/CCCS/PreCalculus/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_51.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -54,8 +54,8 @@ $ans = Formula("($coeff)*(x-$c)*(x-$d)/((x-$a)*(x-$b))")->reduce(); #($p,$q) = reduce($y1,$y2); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -72,7 +72,7 @@ Find an equation for a rational function `f(x)` that satisfies the following: + [`y`]-intercept at [`(0,[$yint])`] -[`f(x)=`] [_________________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`f(x)=`] [_________________________]{$ans} [@ helpLink("formulas") @]* [$video]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_57.pg b/Contrib/CCCS/PreCalculus/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_57.pg index 52a23d3fdb..407775a379 100644 --- a/Contrib/CCCS/PreCalculus/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_57.pg +++ b/Contrib/CCCS/PreCalculus/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_57.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -65,7 +65,7 @@ Write an equation for the graphed function. $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>400,height=>400,tex_size=>800 ) \} $BR $BR @@ -76,7 +76,7 @@ $BR $BR $BR \(f(x) \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR $ECENTER diff --git a/Contrib/CCCS/PreCalculus/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_61.pg b/Contrib/CCCS/PreCalculus/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_61.pg index eea347d5b7..ab8bdd1693 100644 --- a/Contrib/CCCS/PreCalculus/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_61.pg +++ b/Contrib/CCCS/PreCalculus/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_61.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -65,7 +65,7 @@ Write an equation for the graphed function. $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>400,height=>400,tex_size=>800 ) \} $BR $BR @@ -75,7 +75,7 @@ $BCENTER $BR $BR f(x) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR $ECENTER diff --git a/Contrib/CCCS/PreCalculus/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_71.pg b/Contrib/CCCS/PreCalculus/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_71.pg index af28971cdc..3655e1166d 100644 --- a/Contrib/CCCS/PreCalculus/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_71.pg +++ b/Contrib/CCCS/PreCalculus/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_71.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "AppletObjects.pl", "unionTables.pl", @@ -43,7 +43,7 @@ HEADER_TEXT(MODES( )); $desmos_div = MODES( - HTML=>qq(
), + HTML=>qq(
), TeX=>'Interactive graph best viewed online' ); @@ -69,14 +69,14 @@ if($sign>0){$ans=Compute("($endpt,infinity)");}else{$ans=Compute("(-infinity,$en BEGIN_PGML -Use technology below to graph [`` f(x)=[$f] ``]. +Use technology below to graph [`` f(x)=[$f] ``]. Use the graph to solve [`f(x)>0`]. Enter the solution as an interval of [`x`] values that make the inequality true. -[_______________________]{$ans} [@ AnswerFormatHelp("intervals") @]* +[_______________________]{$ans} [@ helpLink("intervals") @]* -The Desmos graphing tool below may help investigate the function. +The Desmos graphing tool below may help investigate the function. END_PGML @@ -104,10 +104,10 @@ TEXT( MODES(TeX=>'', HTML=><qq(
), + HTML=>qq(
), TeX=>'Interactive graph best viewed online' ); @@ -65,13 +65,13 @@ $ans=Compute("($b,$a)U($c,infinity)"); BEGIN_PGML -Use technology below to graph [`` f(x)=[$f] ``]. +Use technology below to graph [`` f(x)=[$f] ``]. Use the graph to solve [`f(x)>0`]. Enter the solution as an interval of [`x`] values that make the inequality true. -[_______________________]{$ans} [@ AnswerFormatHelp("intervals") @]* +[_______________________]{$ans} [@ helpLink("intervals") @]* -The Desmos graphing tool below may help investigate the function. +The Desmos graphing tool below may help investigate the function. END_PGML @@ -99,10 +99,10 @@ TEXT( MODES(TeX=>'', HTML=>< -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -59,7 +59,7 @@ BEGIN_PGML Find the domain of [`` f(x)=[$f] ``]. Enter the solution in interval notation. -[_______________]{$ans} [@ AnswerFormatHelp("intervals") @]* +[_______________]{$ans} [@ helpLink("intervals") @]* [$video]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_83.pg b/Contrib/CCCS/PreCalculus/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_83.pg index 01ada7139c..6db9023f3c 100644 --- a/Contrib/CCCS/PreCalculus/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_83.pg +++ b/Contrib/CCCS/PreCalculus/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_83.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "AppletObjects.pl", "unionTables.pl", @@ -44,7 +44,7 @@ HEADER_TEXT(MODES( )); $desmos_div = MODES( - HTML=>qq(
), + HTML=>qq(
), TeX=>'Interactive graph best viewed online' ); @@ -70,13 +70,13 @@ $ans=Compute("sqrt($c/$b)"); BEGIN_PGML -The concentration [`C`] of a drug in a patient's bloodstream [`t`] hours after injection is given by [`` C(t)=[$f] ``]. Use technology below to approximate the time when the concentration is highest. +The concentration [`C`] of a drug in a patient's bloodstream [`t`] hours after injection is given by [`` C(t)=[$f] ``]. Use technology below to approximate the time when the concentration is highest. - [`t=`] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* + [`t=`] [_______________]{$ans} [@ helpLink("numbers") @]* -The Desmos graphing tool below may help investigate the function. +The Desmos graphing tool below may help investigate the function. END_PGML @@ -104,10 +104,10 @@ TEXT( MODES(TeX=>'', HTML=><qq(
), + HTML=>qq(
), TeX=>'Interactive graph best viewed online' ); @@ -73,20 +73,20 @@ BEGIN_PGML A right circular cylinder has a volume of [`[$a]`] cubic inches. Find the radius and height that will yield minimum surface area. To do so, answer the following: -+ volume of a right circular cylinder with radius [`r`] and height [`h`]: ++ volume of a right circular cylinder with radius [`r`] and height [`h`]: [`V=`][_______________]{$ans1} (should be in terms of [`r`] and [`h`], enter [`\pi`] as pi) -+ surface area of a right circular cylinder with radius [`r`] and height [`h`]: ++ surface area of a right circular cylinder with radius [`r`] and height [`h`]: [`SA=`] [_______________]{$ans2} (should be in terms of [`r`] and [`h`]) -+ surface area of this right circular cylinder in terms of only [`r`]: ++ surface area of this right circular cylinder in terms of only [`r`]: [`SA=`][_______________]{$ans3} (should be in terms of just [`r`], no [`h`]) -+ Use technology below to find the [`r`] and [`h`] that minimize the surface area. - [`r=`] [_______________]{$ans4} - [`h=`] [_______________]{$ans5} ++ Use technology below to find the [`r`] and [`h`] that minimize the surface area. + [`r=`] [_______________]{$ans4} + [`h=`] [_______________]{$ans5} -The Desmos graphing tool below may help investigate the function. +The Desmos graphing tool below may help investigate the function. @@ -116,10 +116,10 @@ TEXT( MODES(TeX=>'', HTML=>< -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -66,7 +66,7 @@ TeX => BEGIN_PGML Find the formula for an exponential equation that passes through the points, ([$a],[$b]) and ([$c],[$d]). The exponential equation should be of the form [`y=ab^x`]. -[___________________]{$fun} [@ AnswerFormatHelp("equation") @]* +[___________________]{$fun} [@ helpLink("equation") @]* [$video]* diff --git a/Contrib/CCCS/PreCalculus/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_21.pg b/Contrib/CCCS/PreCalculus/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_21.pg index 6774a58f75..140adf0c9b 100644 --- a/Contrib/CCCS/PreCalculus/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_21.pg +++ b/Contrib/CCCS/PreCalculus/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_21.pg @@ -23,7 +23,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "parserPopUp.pl", @@ -72,7 +72,7 @@ $fun = Formula("y=$h($n^x)"); BEGIN_PGML Find the formula for an exponential equation that passes through the points ([$a],[$b]) and ([$c],[$d]). The exponential equation should be of the form [`y=ab^x`]. Round `a` and `b` values to at least 5 decimals, where appropriate. -[____________________]{$fun} [@ AnswerFormatHelp("equation") @]* +[____________________]{$fun} [@ helpLink("equation") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_23.pg b/Contrib/CCCS/PreCalculus/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_23.pg index b9b99c735e..6a6f8e909c 100644 --- a/Contrib/CCCS/PreCalculus/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_23.pg +++ b/Contrib/CCCS/PreCalculus/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_23.pg @@ -24,7 +24,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "niceTables.pl", "parserPopUp.pl", @@ -74,9 +74,9 @@ END_TEXT BEGIN_PGML -[_________________]{$popup1} +[_________________]{$popup1} -[` f(x)= `] [___________________________]{$ans} [@ AnswerFormatHelp("formula") @]* +[` f(x)= `] [___________________________]{$ans} [@ helpLink("formula") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_24.pg b/Contrib/CCCS/PreCalculus/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_24.pg index 5bf30a60a0..41cbe20605 100644 --- a/Contrib/CCCS/PreCalculus/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_24.pg +++ b/Contrib/CCCS/PreCalculus/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_24.pg @@ -24,7 +24,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "niceTables.pl", "parserPopUp.pl", @@ -71,9 +71,9 @@ END_TEXT BEGIN_PGML -[_________________]{$popup} +[_________________]{$popup} -[` f(x) =`] [_________________________]{$ans} [@ AnswerFormatHelp("formula") @]* +[` f(x) =`] [_________________________]{$ans} [@ helpLink("formula") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_25.pg b/Contrib/CCCS/PreCalculus/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_25.pg index c25c16bba2..e79a972a9d 100644 --- a/Contrib/CCCS/PreCalculus/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_25.pg +++ b/Contrib/CCCS/PreCalculus/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_25.pg @@ -24,7 +24,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "niceTables.pl", "parserPopUp.pl", @@ -71,9 +71,9 @@ END_TEXT BEGIN_PGML -[_________________]{$popup} +[_________________]{$popup} -[` f(x) =`] [________________________]{$ans} [@ AnswerFormatHelp("formula") @]* +[` f(x) =`] [________________________]{$ans} [@ helpLink("formula") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_26.pg b/Contrib/CCCS/PreCalculus/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_26.pg index a3f4056566..4baf7e39fa 100644 --- a/Contrib/CCCS/PreCalculus/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_26.pg +++ b/Contrib/CCCS/PreCalculus/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_26.pg @@ -24,7 +24,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "niceTables.pl", "parserPopUp.pl", @@ -71,9 +71,9 @@ END_TEXT BEGIN_PGML -[_________________]{$popup} +[_________________]{$popup} -[` f(x)= `] [_________________________]{$ans} [@ AnswerFormatHelp("formula") @]* +[` f(x)= `] [_________________________]{$ans} [@ helpLink("formula") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_28.pg b/Contrib/CCCS/PreCalculus/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_28.pg index 0026a46435..bd865f7410 100644 --- a/Contrib/CCCS/PreCalculus/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_28.pg +++ b/Contrib/CCCS/PreCalculus/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_28.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextPercent.pl", @@ -65,16 +65,16 @@ $answer5 = Compute($answer4-$answer3); $video1 = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); $video2 = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -89,19 +89,19 @@ Section::Begin("Part 1"); BEGIN_PGML An investment account, where interest is compounded monthly, is represented by the formula, -[``A(t) = [$p]\left(1+\frac{[$r]}{12}\right)^{12t}``], where [`t`] is measured in years after the initial investment. +[``A(t) = [$p]\left(1+\frac{[$r]}{12}\right)^{12t}``], where [`t`] is measured in years after the initial investment. What is the principal value of the account? In other words, what is [`A(0)`]? -[_________________]{$answer1} [@ AnswerFormatHelp("number") @]* +[_________________]{$answer1} [@ helpLink("number") @]* What is the interest rate for the account? Enter the answer as a percentage, including the percent (%) symbol. -[_________________]{$answer2}[@ AnswerFormatHelp("number") @]* +[_________________]{$answer2}[@ helpLink("number") @]* How much money is in the account at time [`t = [$t]`]? -[_________________]{$answer3} [@ AnswerFormatHelp("number") @]* +[_________________]{$answer3} [@ helpLink("number") @]* [$video1]* @@ -120,15 +120,15 @@ Section::End(); Section::Begin("Part 2"); BEGIN_PGML -Suppose the initial investment of [`[$p]`] dollars is deposited into another account where interest is compounded continuously at the same rate of [`[$ContIntRate]`]%. +Suppose the initial investment of [`[$p]`] dollars is deposited into another account where interest is compounded continuously at the same rate of [`[$ContIntRate]`]%. How much money would be in this account at time [`t = [$t]`]? -[_________________]{$answer4} [@ AnswerFormatHelp("number") @]* +[_________________]{$answer4} [@ helpLink("number") @]* -How much more interest would you receive in the account where interest is compounded continuously compared to the account where interest is compounded monthly? (Include 3 decimal places in your answer) +How much more interest would you receive in the account where interest is compounded continuously compared to the account where interest is compounded monthly? (Include 3 decimal places in your answer) -[_________________]{$answer5} [@ AnswerFormatHelp("number") @]* +[_________________]{$answer5} [@ helpLink("number") @]* [$video2]* diff --git a/Contrib/CCCS/PreCalculus/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_4.pg b/Contrib/CCCS/PreCalculus/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_4.pg index f5eeef7afe..1d824d5afd 100644 --- a/Contrib/CCCS/PreCalculus/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_4.pg +++ b/Contrib/CCCS/PreCalculus/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_4.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "PGchoicemacros.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", @@ -38,12 +38,12 @@ TEXT(beginproblem()); $radio1 = RadioButtons( ["exponential function","linear function"], - "exponential function" + "exponential function" ); $radio2 = RadioButtons( ["exponential function","linear function"], - "linear function" + "linear function" ); # Main text @@ -52,27 +52,27 @@ BEGIN_PGML Determine whether the following statements represent an exponential function or a linear function. -+ The average annual population of a pack of wolves increases each year by 25 wolves. ++ The average annual population of a pack of wolves increases each year by 25 wolves. - [_______________]{$radio2} + [_______________]{$radio2} -+ The value of a coin collection has increased by 3.25% annually over the last 20 years. ++ The value of a coin collection has increased by 3.25% annually over the last 20 years. - [_______________]{$radio1} + [_______________]{$radio1} -+ A population of bacteria decreases by a factor of [`\frac{1}{4}`] every 24 hours. ++ A population of bacteria decreases by a factor of [`\frac{1}{4}`] every 24 hours. - [_______________]{$radio1} + [_______________]{$radio1} -+ For the first 6 training sessions, a personal trainer charges his clients $5 less than the previous training session. ++ For the first 6 training sessions, a personal trainer charges his clients $5 less than the previous training session. [______________]{$radio2} -+ The population of a certain country at time `t` is represented by the function [`f(t)=50000(1.02)^{.25t}`]. ++ The population of a certain country at time `t` is represented by the function [`f(t)=50000(1.02)^{.25t}`]. [______________]{$radio1} diff --git a/Contrib/CCCS/PreCalculus/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_44.pg b/Contrib/CCCS/PreCalculus/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_44.pg index 98326c600a..2cf3702a65 100644 --- a/Contrib/CCCS/PreCalculus/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_44.pg +++ b/Contrib/CCCS/PreCalculus/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_44.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -67,7 +67,7 @@ BEGIN_PGML For the function [`f(x)= [$a]([$b])^x`], find [`f([$c])`]. Enter answer as a simplified exact value. -[`f([$c])=`][_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`f([$c])=`][_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_45.pg b/Contrib/CCCS/PreCalculus/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_45.pg index bf446b3be9..38f6264318 100644 --- a/Contrib/CCCS/PreCalculus/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_45.pg +++ b/Contrib/CCCS/PreCalculus/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_45.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -69,7 +69,7 @@ BEGIN_PGML For the function [`f(x)= [$f]`], find [`f([$d])`]. Enter answer as a simplified exact value. [`f([$d])=`] [_______________]{$ans} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/PreCalculus/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_48.pg b/Contrib/CCCS/PreCalculus/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_48.pg index 977459fcda..54a928a9bd 100644 --- a/Contrib/CCCS/PreCalculus/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_48.pg +++ b/Contrib/CCCS/PreCalculus/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_48.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -59,7 +59,7 @@ $ans=$r4; BEGIN_PGML For the function [`f(x)= [$a]([$b])^{-x+1}+[$c]`], find [`f([$d])`]. Round answer to four decimal places, if necessary. -[`f([$d])=`][__________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`f([$d])=`][__________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_61.pg b/Contrib/CCCS/PreCalculus/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_61.pg index a994049ee8..c6b2679fc1 100644 --- a/Contrib/CCCS/PreCalculus/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_61.pg +++ b/Contrib/CCCS/PreCalculus/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_61.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -56,16 +56,16 @@ $ans2 = Compute("$b*e^($r*8)"); BEGIN_PGML -The fox population in a certain region has a continuous growth rate of [$a]%. In the year 2012, there were [$b] foxes counted in the area. +The fox population in a certain region has a continuous growth rate of [$a]%. In the year 2012, there were [$b] foxes counted in the area. Write a function, [`f(t)`], that models the number of foxes in the population at [`t`] years after 2012. -[`f(t)=`][_______________]{$ans1} [@ AnswerFormatHelp("formula") @]* +[`f(t)=`][_______________]{$ans1} [@ helpLink("formula") @]* What is the fox population predicted to be in 2020? -[_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans2} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/PreCalculus/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_61_sup1.pg b/Contrib/CCCS/PreCalculus/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_61_sup1.pg index beba22930e..c7d1e71056 100644 --- a/Contrib/CCCS/PreCalculus/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_61_sup1.pg +++ b/Contrib/CCCS/PreCalculus/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_61_sup1.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -59,16 +59,16 @@ $ans2 = round(Compute("$a*(1-$r)^$t")->reduce()); BEGIN_PGML -The fish population in a certain lake is declining at a rate of [`[$b]`]% annually. In 1993, there were [`[$a]`] fish in the lake. +The fish population in a certain lake is declining at a rate of [`[$b]`]% annually. In 1993, there were [`[$a]`] fish in the lake. Write a function, [`f(t)`], that models the number of fish in the lake at [`t`] years after 1993. -[`f(t)=`][_______________]{$ans1} [@ AnswerFormatHelp("formula") @]* +[`f(t)=`][_______________]{$ans1} [@ helpLink("formula") @]* How many fish are predicted to be in the lake in [`[$finalyear]`]? Round to the nearest whole number. -[_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans2} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/PreCalculus/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_65.pg b/Contrib/CCCS/PreCalculus/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_65.pg index b5b2388f20..b5a37029bb 100644 --- a/Contrib/CCCS/PreCalculus/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_65.pg +++ b/Contrib/CCCS/PreCalculus/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_65.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextCurrency.pl", @@ -61,7 +61,7 @@ BEGIN_PGML [$name] wants to save [$c] for a down payment on a home. How much will he need to invest in an account with [$a]% APR, compounding daily, in order to reach his goal in [$b] years? Round the answer to the nearest cent. Also, include a dollar sign ($). -[_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_66.pg b/Contrib/CCCS/PreCalculus/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_66.pg index 141807db23..c9e8244060 100644 --- a/Contrib/CCCS/PreCalculus/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_66.pg +++ b/Contrib/CCCS/PreCalculus/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_66.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextPercent.pl", @@ -59,9 +59,9 @@ BEGIN_PGML [$name] has $[$a] that she wants to invest. Her bank has several investment accounts to choose from, all compounding daily. Her goal is to have $[$b] by the time she finishes school in [$t] years. What should her minimum annual interest rate be in order to reach her goal? -Enter your answer as a percentage, including the percent (%) symbol, rounded to 1 decimal place. +Enter your answer as a percentage, including the percent (%) symbol, rounded to 1 decimal place. -[_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_example12_sup1.pg b/Contrib/CCCS/PreCalculus/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_example12_sup1.pg index dc6411b304..d5fff31ef9 100644 --- a/Contrib/CCCS/PreCalculus/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_example12_sup1.pg +++ b/Contrib/CCCS/PreCalculus/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_example12_sup1.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -60,16 +60,16 @@ $ans2 = round(Compute("$a*exp{$r*$t}")->reduce()); BEGIN_PGML -In 2004, the population of Chinchilandia was [`[$a]`] and has since grown exponentially at a rate of [`[$b]`][`%`]. +In 2004, the population of Chinchilandia was [`[$a]`] and has since grown exponentially at a rate of [`[$b]`][`%`]. Find an exponential function of the form [`A(t) = A_{0}e^{rt}`] that models the population of Chinchilandia [`t`] years after 2004. -[`A(t)=`][_______________]{$ans1} [@ AnswerFormatHelp("formula") @]* +[`A(t)=`][_______________]{$ans1} [@ helpLink("formula") @]* What is the population of Chinchilandia predicted to be in [`[$finalyear]`]? Round to the nearest whole number. -[_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans2} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/PreCalculus/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_example12_sup2.pg b/Contrib/CCCS/PreCalculus/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_example12_sup2.pg index a6fda74bf0..49fd5864fe 100644 --- a/Contrib/CCCS/PreCalculus/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_example12_sup2.pg +++ b/Contrib/CCCS/PreCalculus/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_example12_sup2.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -58,16 +58,16 @@ $ans2 = Compute("$a*exp{-$r*$t}")->reduce(); BEGIN_PGML -A radioactive isotope decays at a continuous rate of [`[$b]`]% per day. +A radioactive isotope decays at a continuous rate of [`[$b]`]% per day. If there is initially [`[$a]`] mg of this isotope, write a function, [`A(t)`], that models how much of the substance remains after [`t`] days. -[`A(t)=`][_______________]{$ans1} [@ AnswerFormatHelp("formula") @]* +[`A(t)=`][_______________]{$ans1} [@ helpLink("formula") @]* How much of the substance remains after [`[$t]`] days? Round your answer to at least 5 decimal places. -[_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans2} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/PreCalculus/6.1/RRCC_Openstax_Alg_Section6.1_Num6_18.pg b/Contrib/CCCS/PreCalculus/6.1/RRCC_Openstax_Alg_Section6.1_Num6_18.pg index 9cb94601bc..96eaebf72d 100644 --- a/Contrib/CCCS/PreCalculus/6.1/RRCC_Openstax_Alg_Section6.1_Num6_18.pg +++ b/Contrib/CCCS/PreCalculus/6.1/RRCC_Openstax_Alg_Section6.1_Num6_18.pg @@ -23,7 +23,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -57,7 +57,7 @@ $fun = Formula("$h($n^x)"); BEGIN_PGML Find an equation for the exponential function that passes through the points, ([$a],[$b]) and ([$c],[$d]). The exponential function should be of the form [`f(x)=ab^x`]. -[` f(x) `] = [___________]{$fun} [@ AnswerFormatHelp("equation") @]* +[` f(x) `] = [___________]{$fun} [@ helpLink("equation") @]* For more questions like this, go to section 6.1 numbers 18-22. diff --git a/Contrib/CCCS/PreCalculus/6.1/RRCC_Openstax_Alg_Section6.1_Num6_28.pg b/Contrib/CCCS/PreCalculus/6.1/RRCC_Openstax_Alg_Section6.1_Num6_28.pg index f9938ac3f2..97416fb902 100644 --- a/Contrib/CCCS/PreCalculus/6.1/RRCC_Openstax_Alg_Section6.1_Num6_28.pg +++ b/Contrib/CCCS/PreCalculus/6.1/RRCC_Openstax_Alg_Section6.1_Num6_28.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -47,11 +47,11 @@ Context()->operators->remove('^','**'); BEGIN_PGML How much money is in an investment account at time [`t = [$t]`] if the account is represented by the formula, -[``A(t) = 10,250\left(1+\frac{[$r]}{12}\right)^{12t} ``] +[``A(t) = 10,250\left(1+\frac{[$r]}{12}\right)^{12t} ``] [_______________]{$answer} -[@ AnswerFormatHelp("numbers") @]* -You must perform all the algebra and enter the single number that is the value in the account. +[@ helpLink("numbers") @]* +You must perform all the algebra and enter the single number that is the value in the account. For more questions like this, go to section 6.1 numbers 28-38. END_PGML diff --git a/Contrib/CCCS/PreCalculus/6.1/RRCC_Openstax_Alg_Section6.1_Num6_44.pg b/Contrib/CCCS/PreCalculus/6.1/RRCC_Openstax_Alg_Section6.1_Num6_44.pg index 8694b7f4f2..cc2200cd59 100644 --- a/Contrib/CCCS/PreCalculus/6.1/RRCC_Openstax_Alg_Section6.1_Num6_44.pg +++ b/Contrib/CCCS/PreCalculus/6.1/RRCC_Openstax_Alg_Section6.1_Num6_44.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,7 +48,7 @@ BEGIN_PGML Evaluate the [`f(x)= 2(5)^x`] for [`f([$b])`]. [_______________]{$answer} -[@ AnswerFormatHelp("fractions") @]* +[@ helpLink("fractions") @]* For more questions like this, go to section 6.1 numbers 44-50. diff --git a/Contrib/CCCS/PreCalculus/6.1/RRCC_Openstax_Alg_Section6.1_Num6_48.pg b/Contrib/CCCS/PreCalculus/6.1/RRCC_Openstax_Alg_Section6.1_Num6_48.pg index 835a75c01c..290e7d53ee 100644 --- a/Contrib/CCCS/PreCalculus/6.1/RRCC_Openstax_Alg_Section6.1_Num6_48.pg +++ b/Contrib/CCCS/PreCalculus/6.1/RRCC_Openstax_Alg_Section6.1_Num6_48.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -52,7 +52,7 @@ BEGIN_PGML Evaluate the [`f(x)= [$f]`] for [`f([$d])`]. [_______________]{$answer} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* You must perform all algebra on a calculator and then enter the single number for [` f([$d]) `] For more questions like this, go to section 6.1 numbers 44-50. diff --git a/Contrib/CCCS/PreCalculus/6.1/RRCC_Openstax_Alg_Section6.1_Num6_64.pg b/Contrib/CCCS/PreCalculus/6.1/RRCC_Openstax_Alg_Section6.1_Num6_64.pg index 8f6dd32861..09f1acfa16 100644 --- a/Contrib/CCCS/PreCalculus/6.1/RRCC_Openstax_Alg_Section6.1_Num6_64.pg +++ b/Contrib/CCCS/PreCalculus/6.1/RRCC_Openstax_Alg_Section6.1_Num6_64.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -47,7 +47,7 @@ BEGIN_PGML A car was valued at $38,000 in the year 2007. By 2013, the value had depreciated to $11,000. If the car's value continues to drop by the same percentage, what will it be worth by 2017? [_______________]{$answer} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* For more questions like this, go to section 6.1 numbers 61-68. END_PGML diff --git a/Contrib/CCCS/PreCalculus/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_11.pg b/Contrib/CCCS/PreCalculus/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_11.pg index db0f37dbf4..a2cadea8aa 100644 --- a/Contrib/CCCS/PreCalculus/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_11.pg +++ b/Contrib/CCCS/PreCalculus/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_11.pg @@ -24,7 +24,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -66,22 +66,22 @@ $gr1->lb( new Label(5,8,'F', 'red','center','middle')); -add_functions($gr1, "2(0.69)^x for x in <-10,10>" . +add_functions($gr1, "2(0.69)^x for x in <-10,10>" . " using color:blue and weight:2"); -add_functions($gr1, "2(1.28)^x for x in <-10,10>" . +add_functions($gr1, "2(1.28)^x for x in <-10,10>" . " using color:red and weight:2"); -add_functions($gr1, "2(0.81)^x for x in <-10,10>" . +add_functions($gr1, "2(0.81)^x for x in <-10,10>" . " using color:red and weight:2"); -add_functions($gr1, "4(1.28)^x for x in <-10,10>" . +add_functions($gr1, "4(1.28)^x for x in <-10,10>" . " using color:orange and weight:2"); -add_functions($gr1, "2(1.59)^x for x in <-10,10>" . +add_functions($gr1, "2(1.59)^x for x in <-10,10>" . " using color:blue and weight:2"); -add_functions($gr1, "4(0.69)^x for x in <-10,10>" . +add_functions($gr1, "4(0.69)^x for x in <-10,10>" . " using color:black and weight:2"); $popup1 = PopUp(["?", "A","B", "C", "D", "E", "F"], diff --git a/Contrib/CCCS/PreCalculus/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_19.pg b/Contrib/CCCS/PreCalculus/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_19.pg index 2e37016023..f69808109a 100644 --- a/Contrib/CCCS/PreCalculus/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_19.pg +++ b/Contrib/CCCS/PreCalculus/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_19.pg @@ -24,7 +24,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -65,22 +65,22 @@ $gr1->lb( new Label(7,8,'F', 'black','center','middle')); -add_functions($gr1, "5(.9)^x for x in <-10,10>" . +add_functions($gr1, "5(.9)^x for x in <-10,10>" . " using color:blue and weight:2"); -add_functions($gr1, "8(.7)^x for x in <-10,10>" . +add_functions($gr1, "8(.7)^x for x in <-10,10>" . " using color:red and weight:2"); -add_functions($gr1, "4(.5)^x for x in <-10,10>" . +add_functions($gr1, "4(.5)^x for x in <-10,10>" . " using color:black and weight:2"); -add_functions($gr1, "3(3)^x for x in <-10,10>" . +add_functions($gr1, "3(3)^x for x in <-10,10>" . " using color:orange and weight:2"); -add_functions($gr1, "2.2(1.8)^x for x in <-10,10>" . +add_functions($gr1, "2.2(1.8)^x for x in <-10,10>" . " using color:blue and weight:2"); -add_functions($gr1, "2(1.2)^x for x in <-10,10>" . +add_functions($gr1, "2(1.2)^x for x in <-10,10>" . " using color:black and weight:2"); $popup1 = PopUp(["?", "A","B", "C", "D", "E", "F"], diff --git a/Contrib/CCCS/PreCalculus/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_27.pg b/Contrib/CCCS/PreCalculus/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_27.pg index 84352408c5..a371779583 100644 --- a/Contrib/CCCS/PreCalculus/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_27.pg +++ b/Contrib/CCCS/PreCalculus/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_27.pg @@ -24,7 +24,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -73,16 +73,16 @@ size=>[600,600] ); -add_functions($grA, "$a^(x-$b) for x in <-6,6>" . +add_functions($grA, "$a^(x-$b) for x in <-6,6>" . " using color:blue and weight:2"); -add_functions($grB, "$a^(x+.5*$b) for x in <-6,6>" . +add_functions($grB, "$a^(x+.5*$b) for x in <-6,6>" . " using color:blue and weight:2"); -add_functions($grC, "$a^x+$b for x in <-6,6>" . +add_functions($grC, "$a^x+$b for x in <-6,6>" . " using color:blue and weight:2"); -add_functions($grD, "$a^x-$b for x in <-6,6>" . +add_functions($grD, "$a^x-$b for x in <-6,6>" . " using color:blue and weight:2"); @@ -118,7 +118,7 @@ $ans8 = List( Point("(0,$b+1)")); BEGIN_PGML -Consider the graph of [`f(x)=[$fun]`]. +Consider the graph of [`f(x)=[$fun]`]. Which of the following shows the related graph [`h(x)=[$transfun]`]? [_____________]{$popup1} @@ -128,21 +128,21 @@ Which of the following shows the related graph [`h(x)=[$transfun]`]? [_________ >>C. [@ image(insertGraph($grC), width=>300, height=>300), @]* D. [@ image(insertGraph($grD), width=>300, height=>300), @]*<< -What is the horizontal asymptote of [`f(x)`]? [_____________]{$popup2}=[_____________]{$ans1} [@ AnswerFormatHelp("equations") @]* +What is the horizontal asymptote of [`f(x)`]? [_____________]{$popup2}=[_____________]{$ans1} [@ helpLink("equations") @]* + +What is the domain of [`f(x)`]? [_____________]{$ans2} [@ helpLink("intervals") @]* -What is the domain of [`f(x)`]? [_____________]{$ans2} [@ AnswerFormatHelp("intervals") @]* +What is the range of [`f(x)`]? [_____________]{$ans3} [@ helpLink("intervals") @]* -What is the range of [`f(x)`]? [_____________]{$ans3} [@ AnswerFormatHelp("intervals") @]* +What is the `y`-intercept of [`f(x)`]? [_____________]{$ans4} [@ helpLink("points") @]* -What is the `y`-intercept of [`f(x)`]? [_____________]{$ans4} [@ AnswerFormatHelp("points") @]* - -What is the horizontal asymptote of [`h(x)`]? [_____________]{$popup2}=[_____________]{$ans5} [@ AnswerFormatHelp("equations") @]* +What is the horizontal asymptote of [`h(x)`]? [_____________]{$popup2}=[_____________]{$ans5} [@ helpLink("equations") @]* -What is the domain of [`h(x)`]? [_____________]{$ans6} [@ AnswerFormatHelp("intervals") @]* +What is the domain of [`h(x)`]? [_____________]{$ans6} [@ helpLink("intervals") @]* -What is the range of [`h(x)`]? [_____________]{$ans7} [@ AnswerFormatHelp("intervals") @]* +What is the range of [`h(x)`]? [_____________]{$ans7} [@ helpLink("intervals") @]* -What is the `y`-intercept of [`h(x)`]? [_____________]{$ans8} [@ AnswerFormatHelp("points") @]* +What is the `y`-intercept of [`h(x)`]? [_____________]{$ans8} [@ helpLink("points") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_28.pg b/Contrib/CCCS/PreCalculus/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_28.pg index 101923c0d0..94e27ac259 100644 --- a/Contrib/CCCS/PreCalculus/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_28.pg +++ b/Contrib/CCCS/PreCalculus/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_28.pg @@ -24,7 +24,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -75,22 +75,22 @@ size=>[600,600] -add_functions($grA, "$a^(x-$b) for x in <-6,6>" . +add_functions($grA, "$a^(x-$b) for x in <-6,6>" . " using color:blue and weight:2"); ($grA->fn)[0]->steps(2000); -add_functions($grB, "$a^(x+$b) for x in <-6,6>" . +add_functions($grB, "$a^(x+$b) for x in <-6,6>" . " using color:blue and weight:2"); ($grB->fn)[0]->steps(2000); -add_functions($grC, "$a^x+$b for x in <-6,6>" . +add_functions($grC, "$a^x+$b for x in <-6,6>" . " using color:blue and weight:2"); ($grC->fn)[0]->steps(2000); -add_functions($grD, "$a^x-$b for x in <-6,6>" . +add_functions($grD, "$a^x-$b for x in <-6,6>" . " using color:blue and weight:2"); ($grD->fn)[0]->steps(2000); @@ -127,7 +127,7 @@ $ans8 = List( Point("(0,$hint)")); BEGIN_PGML -Consider the graph of [`f(x)=[$fun]`]. +Consider the graph of [`f(x)=[$fun]`]. Which of the following shows the related graph [`h(x)`]=[`[$transfun]`] ?[_____________]{$popup1} @@ -137,21 +137,21 @@ Which of the following shows the related graph [`h(x)`]=[`[$transfun]`] ?[______ >>C. [@ image(insertGraph($grC), width=>300, height=>300), @]* D. [@ image(insertGraph($grD), width=>300, height=>300), @]*<< -What is the horizontal asymptote of [`f(x)`]? [_____________]{$popup2}=[_____________]{$ans1} [@ AnswerFormatHelp("equations") @]* +What is the horizontal asymptote of [`f(x)`]? [_____________]{$popup2}=[_____________]{$ans1} [@ helpLink("equations") @]* + +What is the domain of [`f(x)`]? [_____________]{$ans2} [@ helpLink("intervals") @]* -What is the domain of [`f(x)`]? [_____________]{$ans2} [@ AnswerFormatHelp("intervals") @]* +What is the range of [`f(x)`]? [_____________]{$ans3} [@ helpLink("intervals") @]* -What is the range of [`f(x)`]? [_____________]{$ans3} [@ AnswerFormatHelp("intervals") @]* +What is the [`y`]-intercept of [`f(x)`]? [_____________]{$ans4} [@ helpLink("points") @]* -What is the [`y`]-intercept of [`f(x)`]? [_____________]{$ans4} [@ AnswerFormatHelp("points") @]* - -What is the horizontal asymptote of [`h(x)`]? [_____________]{$popup2}=[_____________]{$ans5} [@ AnswerFormatHelp("equations") @]* +What is the horizontal asymptote of [`h(x)`]? [_____________]{$popup2}=[_____________]{$ans5} [@ helpLink("equations") @]* -What is the domain of [`h(x)`]? [_____________]{$ans6} [@ AnswerFormatHelp("intervals") @]* +What is the domain of [`h(x)`]? [_____________]{$ans6} [@ helpLink("intervals") @]* -What is the range of [`h(x)`]? [_____________]{$ans7} [@ AnswerFormatHelp("intervals") @]* +What is the range of [`h(x)`]? [_____________]{$ans7} [@ helpLink("intervals") @]* -What is the [`y`]-intercept of [`h(x)`]? [_____________]{$ans8} [@ AnswerFormatHelp("points") @]* +What is the [`y`]-intercept of [`h(x)`]? [_____________]{$ans8} [@ helpLink("points") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_29.pg b/Contrib/CCCS/PreCalculus/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_29.pg index 8c399f3d05..0a56b00dcb 100644 --- a/Contrib/CCCS/PreCalculus/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_29.pg +++ b/Contrib/CCCS/PreCalculus/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_29.pg @@ -25,7 +25,7 @@ loadMacros( "PGchoicemacros.pl", "contextLimitedPoint.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + "contextInequalitySetBuilder.pl", "PGML.pl", "niceTables.pl", @@ -64,13 +64,13 @@ else BEGIN_PGML -Describe the end behavior of the function [`f(x) =`] `[$func]` +Describe the end behavior of the function [`f(x) =`] `[$func]` -+ As [`x \to -\infty`], [`f(x) \to`] [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to -\infty`], [`f(x) \to`] [_______________]{$ans1} [@ helpLink("numbers") @]* -+ As [`x \to \infty`], [`f(x) \to`] [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to \infty`], [`f(x) \to`] [_______________]{$ans2} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_31.pg b/Contrib/CCCS/PreCalculus/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_31.pg index 9ab68ba955..3099d87a38 100644 --- a/Contrib/CCCS/PreCalculus/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_31.pg +++ b/Contrib/CCCS/PreCalculus/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_31.pg @@ -25,7 +25,7 @@ loadMacros( "PGchoicemacros.pl", "contextLimitedPoint.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + "contextInequalitySetBuilder.pl", "PGML.pl", "niceTables.pl", @@ -62,13 +62,13 @@ else BEGIN_PGML -Describe the end behavior of the function [`f(x) =`] `[$func]` +Describe the end behavior of the function [`f(x) =`] `[$func]` -+ As [`x \to -\infty`], [`f(x) \to`] [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to -\infty`], [`f(x) \to`] [_______________]{$ans1} [@ helpLink("numbers") @]* -+ As [`x \to \infty`], [`f(x) \to`] [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to \infty`], [`f(x) \to`] [_______________]{$ans2} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_32.pg b/Contrib/CCCS/PreCalculus/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_32.pg index d50329e297..955f91ee1a 100644 --- a/Contrib/CCCS/PreCalculus/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_32.pg +++ b/Contrib/CCCS/PreCalculus/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_32.pg @@ -25,7 +25,7 @@ loadMacros( "PGML.pl", "MathObjects.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + ); TEXT(beginproblem()); @@ -51,17 +51,17 @@ BEGIN_PGML For the following exercises, start with the graph of [`f(x)=[$fun]`]. Then write a function, [`g(x)`], that results from the given transformation. -Shift [`f(x)`] `[$b]` units upward: [`g(x)=`][_________________]{$ans1}[@ AnswerFormatHelp("formula") @]* +Shift [`f(x)`] `[$b]` units upward: [`g(x)=`][_________________]{$ans1}[@ helpLink("formula") @]* -Shift [`f(x)`] `[$c]` units downward: [`g(x)=`][_________________]{$ans2}[@ AnswerFormatHelp("formula") @]* +Shift [`f(x)`] `[$c]` units downward: [`g(x)=`][_________________]{$ans2}[@ helpLink("formula") @]* -Shift [`f(x)`] `[$d]` units left: [`g(x)=`][_________________]{$ans3}[@ AnswerFormatHelp("formula") @]* +Shift [`f(x)`] `[$d]` units left: [`g(x)=`][_________________]{$ans3}[@ helpLink("formula") @]* -Shift [`f(x)`] `[$e]` units right: [`g(x)=`][_________________]{$ans4}[@ AnswerFormatHelp("formula") @]* +Shift [`f(x)`] `[$e]` units right: [`g(x)=`][_________________]{$ans4}[@ helpLink("formula") @]* -Reflect [`f(x)`] about the [`x`]-axis: [`g(x)=`][_________________]{$ans5}[@ AnswerFormatHelp("formula") @]* +Reflect [`f(x)`] about the [`x`]-axis: [`g(x)=`][_________________]{$ans5}[@ helpLink("formula") @]* -Reflect [`f(x)`]about the [`y`]-axis: [`g(x)=`][_________________]{$ans6}[@ AnswerFormatHelp("formula") @]* +Reflect [`f(x)`]about the [`y`]-axis: [`g(x)=`][_________________]{$ans6}[@ helpLink("formula") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_4.pg b/Contrib/CCCS/PreCalculus/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_4.pg index dc1c5bac29..43c33248d5 100644 --- a/Contrib/CCCS/PreCalculus/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_4.pg +++ b/Contrib/CCCS/PreCalculus/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_4.pg @@ -24,7 +24,7 @@ loadMacros( "PGchoicemacros.pl", "contextLimitedPoint.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + "contextInequalitySetBuilder.pl", "PGML.pl", "contextFraction.pl", @@ -69,15 +69,15 @@ $ans4 = Compute("($vertshift,inf)"); BEGIN_PGML -The graph of [`f(x)=`] `[$fun]` is reflected across the [`y`]-axis, shifted upward [$vertshift] units, and then vertically stretched by a factor of [$stretch]. +The graph of [`f(x)=`] `[$fun]` is reflected across the [`y`]-axis, shifted upward [$vertshift] units, and then vertically stretched by a factor of [$stretch]. -Let [`g(x)`] represent the new function. What is an equation for this function? [`g(x)`] = [_________________]{$ans1} [@ AnswerFormatHelp("formula") @]* +Let [`g(x)`] represent the new function. What is an equation for this function? [`g(x)`] = [_________________]{$ans1} [@ helpLink("formula") @]* -What is the y-intercept of [`g(x)`]? Enter the answer as an ordered pair. [_________________]{$ans2} [@ AnswerFormatHelp("points") @]* +What is the y-intercept of [`g(x)`]? Enter the answer as an ordered pair. [_________________]{$ans2} [@ helpLink("points") @]* -What is the domain of [`g(x)`]? Enter the answer as an interval. [_________________]{$ans3} [@ AnswerFormatHelp("intervals") @]* +What is the domain of [`g(x)`]? Enter the answer as an interval. [_________________]{$ans3} [@ helpLink("intervals") @]* -What is the range of [`g(x)`]? Enter the answer as an interval. [_________________]{$ans4} [@ AnswerFormatHelp("intervals") @]* +What is the range of [`g(x)`]? Enter the answer as an interval. [_________________]{$ans4} [@ helpLink("intervals") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_43.pg b/Contrib/CCCS/PreCalculus/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_43.pg index 80b29c3dd2..7dc6281001 100644 --- a/Contrib/CCCS/PreCalculus/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_43.pg +++ b/Contrib/CCCS/PreCalculus/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_43.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); diff --git a/Contrib/CCCS/PreCalculus/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_44.pg b/Contrib/CCCS/PreCalculus/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_44.pg index efddc3d164..2bbacf6671 100644 --- a/Contrib/CCCS/PreCalculus/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_44.pg +++ b/Contrib/CCCS/PreCalculus/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_44.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); diff --git a/Contrib/CCCS/PreCalculus/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_45.pg b/Contrib/CCCS/PreCalculus/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_45.pg index e42678ac6a..a655433803 100644 --- a/Contrib/CCCS/PreCalculus/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_45.pg +++ b/Contrib/CCCS/PreCalculus/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_45.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -54,7 +54,7 @@ $ans = Compute("$calc"); BEGIN_PGML Evaluate the exponential function [`h(x)=`]`[$fun]` for [`h([$c])`]. Round to 4 decimal places, if necessary. -[`h([$c])=`] [_______________]{$ans} [@ AnswerFormatHelp("formula") @]* +[`h([$c])=`] [_______________]{$ans} [@ helpLink("formula") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_5.pg b/Contrib/CCCS/PreCalculus/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_5.pg index 44834440e2..8b8b5311a9 100644 --- a/Contrib/CCCS/PreCalculus/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_5.pg +++ b/Contrib/CCCS/PreCalculus/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_5.pg @@ -25,7 +25,7 @@ loadMacros( "PGchoicemacros.pl", "contextLimitedPoint.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + "contextInequalitySetBuilder.pl", "PGML.pl", "niceTables.pl", @@ -61,8 +61,8 @@ Context()->flags->set("formatStudentAnswer"=>'parsed'); $ans4 = Compute("(-inf,-$a)"); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -72,15 +72,15 @@ TeX => BEGIN_PGML -The graph of [`f(x)=[$fun]`] is reflected across the [`x`]-axis, shifted downward [$a] units, and then shifted left [$b] units. +The graph of [`f(x)=[$fun]`] is reflected across the [`x`]-axis, shifted downward [$a] units, and then shifted left [$b] units. -Let [`g(x)`] represent the new function. What is an equation for this function? [`g(x)`] = [_________________]{$ans1} [@ AnswerFormatHelp("formula") @]* +Let [`g(x)`] represent the new function. What is an equation for this function? [`g(x)`] = [_________________]{$ans1} [@ helpLink("formula") @]* -What is the y-intercept of [`g(x)`]? Enter the answer as an ordered pair. [_________________]{$ans2} [@ AnswerFormatHelp("points") @]* +What is the y-intercept of [`g(x)`]? Enter the answer as an ordered pair. [_________________]{$ans2} [@ helpLink("points") @]* -What is the domain of [`g(x)`]? Enter the answer as an interval. [_________________]{$ans3} [@ AnswerFormatHelp("intervals") @]* +What is the domain of [`g(x)`]? Enter the answer as an interval. [_________________]{$ans3} [@ helpLink("intervals") @]* -What is the range of [`g(x)`]? Enter the answer as an interval. [_________________]{$ans4} [@ AnswerFormatHelp("intervals") @]* +What is the range of [`g(x)`]? Enter the answer as an interval. [_________________]{$ans4} [@ helpLink("intervals") @]* [$video]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_9.pg b/Contrib/CCCS/PreCalculus/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_9.pg index 3e1ddc2fa8..67a6055e5a 100644 --- a/Contrib/CCCS/PreCalculus/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_9.pg +++ b/Contrib/CCCS/PreCalculus/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_9.pg @@ -24,7 +24,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -74,19 +74,19 @@ grid=>[8,8], size=>[600,600] ); -add_functions($gr, "$a($b)^x for x in <-8,8>" . +add_functions($gr, "$a($b)^x for x in <-8,8>" . " using color:blue and weight:2"); -add_functions($gr1, "$a($b)^-x for x in <-8,8>" . +add_functions($gr1, "$a($b)^-x for x in <-8,8>" . " using color:blue and weight:2"); -add_functions($gr2, "-$a($b)^(x) for x in <-8,8>" . +add_functions($gr2, "-$a($b)^(x) for x in <-8,8>" . " using color:blue and weight:2"); -add_functions($gr3, "-$a($b)^(-x) for x in <-8,8>" . +add_functions($gr3, "-$a($b)^(-x) for x in <-8,8>" . " using color:blue and weight:2"); -add_functions($gr4, "-$a(3*$b)^(x) for x in <-8,8>" . +add_functions($gr4, "-$a(3*$b)^(x) for x in <-8,8>" . " using color:blue and weight:2"); Context("Numeric"); @@ -118,16 +118,16 @@ The graph of [`f(x)=`][`[$fun]`] is given below (click on graph to enlarge): -Let [`g(x)`] be the reflection of [`f(x)`] across the [`x`]-axis. Which of the following graphs represents the graph of [`g(x)`]? [_________________]{$popup1} +Let [`g(x)`] be the reflection of [`f(x)`] across the [`x`]-axis. Which of the following graphs represents the graph of [`g(x)`]? [_________________]{$popup1} ->>A. [@ image(insertGraph($gr1), width=>200, height=>200), @]* B. [@ image(insertGraph($gr2), width=>200, height=>200), @]* << +>>A. [@ image(insertGraph($gr1), width=>200, height=>200), @]* B. [@ image(insertGraph($gr2), width=>200, height=>200), @]* << >>C. [@ image(insertGraph($gr4), width=>200, height=>200), @]* D. [@ image(insertGraph($gr3), width=>200, height=>200), @]* << -What is the equation for [`g(x)`]? [`g(x)`]= [_________________]{$ans1} [@ AnswerFormatHelp("formulas") @]* +What is the equation for [`g(x)`]? [`g(x)`]= [_________________]{$ans1} [@ helpLink("formulas") @]* -What is the [`y`]-intercept of [`g(x)`]? Enter an ordered pair for the intercept. [_________________]{$ans2} [@ AnswerFormatHelp("points") @]* +What is the [`y`]-intercept of [`g(x)`]? Enter an ordered pair for the intercept. [_________________]{$ans2} [@ helpLink("points") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_9a.pg b/Contrib/CCCS/PreCalculus/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_9a.pg index e7a305e5c2..fc964bea42 100644 --- a/Contrib/CCCS/PreCalculus/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_9a.pg +++ b/Contrib/CCCS/PreCalculus/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_9a.pg @@ -24,7 +24,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -77,27 +77,27 @@ grid=>[8,8], size=>[600,600] ); -add_functions($gr, "($a*$b^x) for x in <-8,8>" . +add_functions($gr, "($a*$b^x) for x in <-8,8>" . " using color:blue and weight:2"); ($gr->fn)[0]->steps(2000); -add_functions($gr1, "($a*$b^(x+$c)-$d) for x in <-8,8>" . +add_functions($gr1, "($a*$b^(x+$c)-$d) for x in <-8,8>" . " using color:blue and weight:2"); ($gr1->fn)[0]->steps(2000); -add_functions($gr2, "(-$a*$b^(x)-$c) for x in <-8,8>" . +add_functions($gr2, "(-$a*$b^(x)-$c) for x in <-8,8>" . " using color:blue and weight:2"); ($gr2->fn)[0]->steps(2000); -add_functions($gr3, "($a*$b^(x-$d)-$c) for x in <-8,8>" . +add_functions($gr3, "($a*$b^(x-$d)-$c) for x in <-8,8>" . " using color:blue and weight:2"); ($gr3->fn)[0]->steps(2000); -add_functions($gr4, "($a*$b^(x+$d)+$c) for x in <-8,8>" . +add_functions($gr4, "($a*$b^(x+$d)+$c) for x in <-8,8>" . " using color:blue and weight:2"); ($gr4->fn)[0]->steps(2000); @@ -136,11 +136,11 @@ The graph of [`f(x)=[$fun]`] is given below (click on graph to enlarge): Let [`g(x)`] be the transformation of [`f(x)`] up `[$c]` units and left `[$d]` units. Which of the following graphs represents the graph of [`g(x)`]? [_________________]{$popup1} ->>A. [@ image(insertGraph($gr1), width=>200, height=>200), @]* B. [@ image(insertGraph($gr2), width=>200, height=>200), @]* << +>>A. [@ image(insertGraph($gr1), width=>200, height=>200), @]* B. [@ image(insertGraph($gr2), width=>200, height=>200), @]* << >>C. [@ image(insertGraph($gr4), width=>200, height=>200), @]* D. [@ image(insertGraph($gr3), width=>200, height=>200), @]* << -What is the equation for [`g(x)`]? [`g(x)`]= [_________________]{$ans1} [@ AnswerFormatHelp("formulas") @]* +What is the equation for [`g(x)`]? [`g(x)`]= [_________________]{$ans1} [@ helpLink("formulas") @]* What is the horizontal asymptote of [`g(x)`]? Enter the equation of a line. [_________________]{$popup2} = [_________________]{$ans2} diff --git a/Contrib/CCCS/PreCalculus/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_sup1.pg b/Contrib/CCCS/PreCalculus/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_sup1.pg index cd3ddcebac..6948ed1fad 100644 --- a/Contrib/CCCS/PreCalculus/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_sup1.pg +++ b/Contrib/CCCS/PreCalculus/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_sup1.pg @@ -25,7 +25,7 @@ loadMacros( "PGchoicemacros.pl", "contextLimitedPoint.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + "contextInequalitySetBuilder.pl", "PGML.pl", "niceTables.pl", @@ -64,55 +64,55 @@ $abshorizshift = abs($horizshift); $ans1 = Formula("$a^x"); -if ($vertshift>0) +if ($vertshift>0) {$popup1 = PopUp( ["?","Upward shift of $vertshift units", "Downward shift of $vertshift units", "Left shift of $vertshift units", "Right shift of $vertshift units"], "Upward shift of $vertshift units", ); - -} + +} else { $popup1 = PopUp( ["?","Upward shift of $absvertshift units", "Downward shift of $absvertshift units", "Left shift of $absvertshift units", "Right shift of $absvertshift units"], "Downward shift of $absvertshift units", ); - + }; -if ($horizshift>0) +if ($horizshift>0) {$popup2 = PopUp( ["?","Upward shift of $horizshift units", "Downward shift of $horizshift units", "Left shift of $horizshift units", "Right shift of $horizshift units"], "Left shift of $horizshift units", ); - -} + +} else { $popup2 = PopUp( ["?","Upward shift of $abshorizshift units", "Downward shift of $abshorizshift units", "Left shift of $abshorizshift units", "Right shift of $abshorizshift units"], "Right shift of $abshorizshift units", ); - + }; -if ($stretch > 1) +if ($stretch > 1) {$popup3 = PopUp( ["?","Vertical compression by a factor of $stretch", "Vertical stretch by a factor of $stretch", "Horizontal compression by a factor of $stretch", "Horizontal stretch by a factor of $stretch"], "Vertical stretch by a factor of $stretch", ); - -} + +} else { $popup3 = PopUp( ["?","Vertical compression by a factor of $stretch", "Vertical stretch by a factor of $stretch", "Horizontal compression by a factor of $stretch", "Horizontal stretch by a factor of $stretch"], "Vertical compression by a factor of $stretch", ); - + }; $popup4 = PopUp(["?","Reflection over the y-axis","Reflection over the x-axis"], "Reflection over the x-axis",); @@ -125,9 +125,9 @@ $popup4 = PopUp(["?","Reflection over the y-axis","Reflection over the x-axis"], BEGIN_PGML -Let [`f(x)`] be the parent function of a transformed function [`g(x)`], where [`g(x)=`] `[$func]`. +Let [`f(x)`] be the parent function of a transformed function [`g(x)`], where [`g(x)=`] `[$func]`. -What is the parent or original function of [`g(x)`], before it was transformed? [`f(x)`] = [_________________]{$ans1} [@ AnswerFormatHelp("formula") @]* +What is the parent or original function of [`g(x)`], before it was transformed? [`f(x)`] = [_________________]{$ans1} [@ helpLink("formula") @]* In the transformed function [`g(x)=`] `[$func]`, what transformation does the `[$vertshift]` correspond to? [_________________]{$popup1} diff --git a/Contrib/CCCS/PreCalculus/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_sup2.pg b/Contrib/CCCS/PreCalculus/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_sup2.pg index 4841463d7d..ffc6f1c939 100644 --- a/Contrib/CCCS/PreCalculus/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_sup2.pg +++ b/Contrib/CCCS/PreCalculus/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_sup2.pg @@ -25,7 +25,7 @@ loadMacros( "PGchoicemacros.pl", "contextLimitedPoint.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + "contextInequalitySetBuilder.pl", "PGML.pl", "niceTables.pl", @@ -47,7 +47,7 @@ Context("Numeric"); $a = random(2,5,1); $vertshift = non_zero_random(-8,8,1); $stretch = random(0.15, 2, 0.1 ); -$absvertshift = abs($vertshift); +$absvertshift = abs($vertshift); if ($vertshift>0) {$func = ("$stretch(1/$a)^(-x) + $vertshift");} @@ -57,38 +57,38 @@ else{ $func = ("$stretch(1/$a)^(-x) $vertshift")}; $ans1 = Formula("(1/$a)^x"); -if ($vertshift>0) +if ($vertshift>0) {$popup1 = PopUp( ["?","Upward shift of $vertshift units", "Downward shift of $vertshift units", "Left shift of $vertshift units", "Right shift of $vertshift units"], "Upward shift of $vertshift units", ); - -} + +} else { $popup1 = PopUp( ["?","Upward shift of $absvertshift units", "Downward shift of $absvertshift units", "Left shift of $absvertshift units", "Right shift of $absvertshift units"], "Downward shift of $absvertshift units", ); - + }; -if ($stretch > 1) +if ($stretch > 1) {$popup2 = PopUp( ["?","Vertical compression by a factor of $stretch", "Vertical stretch by a factor of $stretch", "Horizontal compression by a factor of $stretch", "Horizontal stretch by a factor of $stretch"], "Vertical stretch by a factor of $stretch", ); - -} + +} else { $popup2 = PopUp( ["?","Vertical compression by a factor of $stretch", "Vertical stretch by a factor of $stretch", "Horizontal compression by a factor of $stretch", "Horizontal stretch by a factor of $stretch"], "Vertical compression by a factor of $stretch", ); - + }; $popup3 = PopUp(["?","Reflection over the y-axis","Reflection over the x-axis"], "Reflection over the y-axis",); @@ -100,10 +100,10 @@ $popup3 = PopUp(["?","Reflection over the y-axis","Reflection over the x-axis"], BEGIN_PGML -Let [`f(x)`] be the parent function of a transformed function [`g(x)`], where [`g(x)=`] `[$func]`. +Let [`f(x)`] be the parent function of a transformed function [`g(x)`], where [`g(x)=`] `[$func]`. -What is the parent of the original function of [`g(x)`] before it was transformed? [`f(x)`] = [_________________]{$ans1} [@ AnswerFormatHelp("formula") @]* +What is the parent of the original function of [`g(x)`] before it was transformed? [`f(x)`] = [_________________]{$ans1} [@ helpLink("formula") @]* In the transformed function [`g(x)=`] `[$func]`, what transformation does the `[$vertshift]` correspond to? [_________________]{$popup1} diff --git a/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_09.pg b/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_09.pg index d2266d07fe..84f726a465 100644 --- a/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_09.pg +++ b/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_09.pg @@ -2,7 +2,7 @@ ## College Algebra ## ENDDESCRIPTION - + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Exponential and logarithmic equations) @@ -12,7 +12,7 @@ ## MO(1) ## KEYWORDS('college algebra') - + ########################### # Initialization @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -53,7 +53,7 @@ do {$n2 = random(0,10,1);} until ($n2!= $n1); $var1 = $letter[$n1] ; $var2=$letter[$n2] ; -# Adding the two letters as variables +# Adding the two letters as variables Context()->variables->add($var1 => "Real"); Context()->variables->set($var1=>{limits=>[1,5]}); Context()->variables->add($var2 => "Real"); @@ -92,25 +92,25 @@ $multians = MultiAnswer($ans1, $ans2)->with( - + ########################### # Main text BEGIN_PGML -Rewrite the following equation in exponential form. +Rewrite the following equation in exponential form. -[`\log_[$var1]([$a])=[$var2] `] - - [____]{$multians} [`=`] [____]{$multians} [@ AnswerFormatHelp("numbers") @]* +[`\log_[$var1]([$a])=[$var2] `] + + [____]{$multians} [`=`] [____]{$multians} [@ helpLink("numbers") @]* END_PGML - - + + ############################ # Solution diff --git a/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_11.pg b/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_11.pg index 0b54b00969..f8de3faa4e 100644 --- a/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_11.pg +++ b/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_11.pg @@ -2,7 +2,7 @@ ## College Algebra ## ENDDESCRIPTION - + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Exponential and logarithmic equations) @@ -12,7 +12,7 @@ ## MO(1) ## KEYWORDS('college algebra') - + ########################### # Initialization @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -39,7 +39,7 @@ TEXT(beginproblem()); Context("Numeric"); install_problem_grader(~~&std_problem_grader); -# A random integer +# A random integer $a=non_zero_random(2,8,1); # Two random integer to grab letters @@ -53,7 +53,7 @@ do {$n2 = random(0,10,1);} until ($n2!= $n1); $var1 =$letter[$n1] ; $var2=$letter[$n2] ; -# Adding the two letters as variables +# Adding the two letters as variables Context()->variables->add($var1 => "Real"); Context()->variables->set($var1=>{limits=>[1,5]}); Context()->variables->add($var2 => "Real"); @@ -87,23 +87,23 @@ $multians = MultiAnswer($ans1, $ans2)->with( } ); - + ########################### # Main text BEGIN_PGML -Rewrite the following equation in exponential form. +Rewrite the following equation in exponential form. + +[`\log_[$var1]([$a])=[$var2] `] -[`\log_[$var1]([$a])=[$var2] `] - -[____]{$multians} [`=`] [____]{$multians} [@ AnswerFormatHelp("numbers") @]* +[____]{$multians} [`=`] [____]{$multians} [@ helpLink("numbers") @]* END_PGML - + ############################ # Solution diff --git a/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_17.pg b/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_17.pg index 73453170e6..a8dc487ae7 100644 --- a/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_17.pg +++ b/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_17.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject() ## DBchapter() ## DBsection() @@ -11,32 +11,32 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", "PGML.pl", "PGcourse.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); install_problem_grader(~~&std_problem_grader); - + # Two random integer to grab letters $n1=random(0,10,1); do {$n2 = random(0,10,1);} until ($n2!= $n1); @@ -49,14 +49,14 @@ do {$n2 = random(0,10,1);} until ($n2!= $n1); $var1 = $letter[$n1] ; $var2=$letter[$n2] ; -# Adding the two letters as variables +# Adding the two letters as variables Context()->variables->add($var1 => "Real"); Context()->variables->add($var2 => "Real"); # The two sides of the correct answer $ans1=Formula("$var1"); $ans2=Formula("log8($var2)"); - + # Allows for the correct equation to be given in either order $multians = MultiAnswer($ans1, $ans2)->with( @@ -79,31 +79,31 @@ $multians = MultiAnswer($ans1, $ans2)->with( } } ); - - + + ########################### # Main text - + BEGIN_PGML Rewrite the following equation in logarithmic form. -[`8^{[$var1]}=[$var2] `] - - [____]{$multians} [`=`] [____]{$multians} [@ AnswerFormatHelp("logarithms") @]* - +[`8^{[$var1]}=[$var2] `] + + [____]{$multians} [`=`] [____]{$multians} [@ helpLink("logarithms") @]* + END_PGML - - + + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_19.pg b/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_19.pg index 47950207fb..bb7ca5be22 100644 --- a/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_19.pg +++ b/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_19.pg @@ -2,7 +2,7 @@ ## College Algebra ## ENDDESCRIPTION - + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Exponential and logarithmic equations) @@ -12,7 +12,7 @@ ## MO(1) ## KEYWORDS('college algebra') - + ########################### # Initialization @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -49,7 +49,7 @@ do {$n2 = random(0,10,1);} until ($n2!= $n1); $var1 = $letter[$n1] ; $var2=$letter[$n2] ; -# Adding the letters as variables +# Adding the letters as variables Context()->variables->add($var1 => "Real"); Context()->variables->add($var2 => "Real"); Context()->variables->set($var2=>{limits=>[5,10]}); @@ -83,22 +83,22 @@ $multians = MultiAnswer($ans1, $ans2)->with( } ); - + ########################### # Main text BEGIN_PGML -Rewrite the following equation in logarithmic form. +Rewrite the following equation in logarithmic form. + +[`e^{[$var1]}=[$var2] `] + + [____]{$multians} [`=`] [____]{$multians} [@ helpLink("logarithms") @]* -[`e^{[$var1]}=[$var2] `] - - [____]{$multians} [`=`] [____]{$multians} [@ AnswerFormatHelp("logarithms") @]* - END_PGML - + ############################ # Solution diff --git a/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_21.pg b/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_21.pg index 92db2a7634..deaacbf2bf 100644 --- a/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_21.pg +++ b/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_21.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject() ## DBchapter() ## DBsection() @@ -11,32 +11,32 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", "PGML.pl", "PGcourse.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); install_problem_grader(~~&std_problem_grader); - + $var1=non_zero_random(2,6,1); $var2=non_zero_random(2,6,1); @@ -44,7 +44,7 @@ $var2=non_zero_random(2,6,1); # The two sides of the correct answer $ans1=Formula("log$var1($var2)"); $ans2=Formula("x"); - + # Allows for the correct equation to be given in either order $multians = MultiAnswer($ans1, $ans2)->with( @@ -67,34 +67,34 @@ $multians = MultiAnswer($ans1, $ans2)->with( } } ); - - + + ########################### # Main text - + BEGIN_PGML -Rewrite the following equation in logarithmic form. +Rewrite the following equation in logarithmic form. + +[`x^[$var1]=[$var2] `] + + + [________]{$multians} [`=`] [__________]{$multians} [@ helpLink("logarithms") @]* -[`x^[$var1]=[$var2] `] - - [________]{$multians} [`=`] [__________]{$multians} [@ AnswerFormatHelp("logarithms") @]* - - END_PGML - - - + + + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_23.pg b/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_23.pg index 7706d87c34..ce1c353b43 100644 --- a/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_23.pg +++ b/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_23.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Exponential and logarithmic equations) @@ -11,32 +11,32 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - + ### Currently this problem DOES NOT require the fraction to be simplified ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", "PGML.pl", "PGcourse.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); install_problem_grader(~~&std_problem_grader); - + $numerator=non_zero_random(1,100,1); $denominator=non_zero_random(1,100,1); @@ -81,33 +81,33 @@ $multians = MultiAnswer($ans1, $ans2)->with( } } ); - - + + ########################### # Main text - + BEGIN_PGML -Rewrite the following equation in logarithmic form. +Rewrite the following equation in logarithmic form. + +[`e^{[$var1]}=\frac{[$numerator]}{[$denominator]} `] + + + [____]{$multians} [`=`] [____]{$multians} [@ helpLink("logarithms") @]* -[`e^{[$var1]}=\frac{[$numerator]}{[$denominator]} `] - - [____]{$multians} [`=`] [____]{$multians} [@ AnswerFormatHelp("logarithms") @]* - - END_PGML - - - + + + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_23_sup1.pg b/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_23_sup1.pg index 4f726d208b..b3210ab607 100644 --- a/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_23_sup1.pg +++ b/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_23_sup1.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Exponential and logarithmic equations) @@ -11,32 +11,32 @@ ## Author(Xian Feng Liang) ## MO(1) ## KEYWORDS('college algebra') - + ### Currently this problem DOES NOT require the fraction to be simplified ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", "PGML.pl", "PGcourse.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); install_problem_grader(~~&std_problem_grader); - + # Array of 11 letters to be grabbed @letter=qw/a b d f g h k m n p/; @@ -81,33 +81,33 @@ $multians = MultiAnswer($ans1, $ans2)->with( } } ); - - + + ########################### # Main text - + BEGIN_PGML -Rewrite the following equation in logarithmic form. +Rewrite the following equation in logarithmic form. + +[`\sqrt[^[$root]]{e^[$power]}= x`] + + + [____]{$multians} [`=`] [____]{$multians} [@ helpLink("logarithms") @]* -[`\sqrt[^[$root]]{e^[$power]}= x`] - - [____]{$multians} [`=`] [____]{$multians} [@ AnswerFormatHelp("logarithms") @]* - - END_PGML - - - + + + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_25.pg b/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_25.pg index 1d42482e96..55716bb32a 100644 --- a/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_25.pg +++ b/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_25.pg @@ -2,7 +2,7 @@ ## College Algebra ## ENDDESCRIPTION - + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Exponential and logarithmic equations) @@ -12,7 +12,7 @@ ## MO(1) ## KEYWORDS('college algebra') - + ########################### # Initialization @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -48,7 +48,7 @@ do {$n2 = random(0,10,1);} until ($n2!= $n1); $var1 = $letter[$n1] ; $var2=$letter[$n2] ; -# Adding the two letters as variables +# Adding the two letters as variables Context()->variables->add($var1 => "Real"); Context()->variables->add($var2 => "Real"); Context()->variables->set($var2=>{limits=>[5,10]}); @@ -81,19 +81,19 @@ $multians = MultiAnswer($ans1, $ans2)->with( } ); - + ########################### # Main text BEGIN_PGML -Rewrite the following equation in logarithmic form. +Rewrite the following equation in logarithmic form. + +[`[$var2] = 10^{[$var1]} `] + +[____]{$multians} `=` [____]{$multians} [@ helpLink("logarithms") @]* -[`[$var2] = 10^{[$var1]} `] - -[____]{$multians} `=` [____]{$multians} [@ AnswerFormatHelp("logarithms") @]* - END_PGML diff --git a/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_25_sup1.pg b/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_25_sup1.pg index 4fde66f7ac..10b4460595 100644 --- a/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_25_sup1.pg +++ b/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_25_sup1.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Exponential and logarithmic equations) @@ -11,32 +11,32 @@ ## Author(Xian Feng Liang) ## MO(1) ## KEYWORDS('college algebra') - + ### Currently this problem DOES NOT require the fraction to be simplified ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", "PGML.pl", "PGcourse.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); install_problem_grader(~~&std_problem_grader); - + # Array of 11 letters to be grabbed @letter=qw/a b g h k r s t v w z/; @@ -81,33 +81,33 @@ $multians = MultiAnswer($ans1, $ans2)->with( } } ); - - + + ########################### # Main text - + BEGIN_PGML -Rewrite the following equation in logarithmic form. +Rewrite the following equation in logarithmic form. + +[`\sqrt[^[$root]]{10^[$power]}= y`] + + + [____]{$multians} [`=`] [____]{$multians} [@ helpLink("logarithms") @]* -[`\sqrt[^[$root]]{10^[$power]}= y`] - - [____]{$multians} [`=`] [____]{$multians} [@ AnswerFormatHelp("logarithms") @]* - - END_PGML - - - + + + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_27.pg b/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_27.pg index 657bbb715e..516868045c 100644 --- a/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_27.pg +++ b/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_27.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Exponential and logarithmic equations) @@ -11,61 +11,61 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", "PGML.pl", "PGcourse.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); $base = random(2, 8, 1); $exponent = non_zero_random(-8, -2, 1); - + # The two sides of the correct answer $ans=Formula("$base^$exponent"); - - + + ########################### # Main text - + BEGIN_PGML -Solve for [`x`] by converting the logarithmic equation to exponential form. +Solve for [`x`] by converting the logarithmic equation to exponential form. + +[`\log_{[$base]}(x) = [$exponent] `] + +[`x =`] [____]{$ans} [@ helpLink("numbers") @]* -[`\log_{[$base]}(x) = [$exponent] `] - -[`x =`] [____]{$ans} [@ AnswerFormatHelp("numbers") @]* - END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_29.pg b/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_29.pg index 77688e1d9a..c870e1f278 100644 --- a/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_29.pg +++ b/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_29.pg @@ -2,7 +2,7 @@ ## College Algebra ## ENDDESCRIPTION - + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Exponential and logarithmic equations) @@ -12,7 +12,7 @@ ## MO(1) ## KEYWORDS('college algebra') - + ########################### # Initialization @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -45,7 +45,7 @@ $n1=random(0,8,1); # Grabbing a letter $base = $letter[$n1] ; -# Adding the letters as variables +# Adding the letters as variables Context()->variables->add($base => "Real"); Context()->variables->set($base=>{limits=>[1,5]}); @@ -54,19 +54,19 @@ $exponent = non_zero_random(2, 6, 1); # The two sides of the correct answer $ans=Formula("$base^$exponent"); - + ########################### # Main text BEGIN_PGML -Solve for [`x`] by converting the logarithmic equation to exponential form +Solve for [`x`] by converting the logarithmic equation to exponential form + +[`\log_{[$base]}(x) = [$exponent] `] + + [`x =`] [____]{$ans} [@ helpLink("numbers") @]* -[`\log_{[$base]}(x) = [$exponent] `] - - [`x =`] [____]{$ans} [@ AnswerFormatHelp("numbers") @]* - END_PGML diff --git a/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_35.pg b/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_35.pg index 8b3d174f6c..af518b6cd7 100644 --- a/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_35.pg +++ b/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_35.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Exponential and logarithmic equations) @@ -11,61 +11,61 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", "PGML.pl", "PGcourse.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); $exponent = non_zero_random(2, 8, 1); - + # The two sides of the correct answer $ans=Formula("e^$exponent"); - - + + ########################### # Main text - + BEGIN_PGML -Solve for [`x`] by converting the logarithmic equation to exponential form. +Solve for [`x`] by converting the logarithmic equation to exponential form. + + [`\ln(x) = [$exponent] `] + + [`x =`] [____]{$ans} [@ helpLink("numbers") @]* - [`\ln(x) = [$exponent] `] - - [`x =`] [____]{$ans} [@ AnswerFormatHelp("numbers") @]* - END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_41.pg b/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_41.pg index af56a18622..32c98f331c 100644 --- a/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_41.pg +++ b/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_41.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -43,11 +43,11 @@ Context()->functions->disable("log","log10","ln"); # Main text BEGIN_PGML -Use the definition of logarithms to completely simplify. +Use the definition of logarithms to completely simplify. -[`\log_{a}\sqrt[^[$b]]{a^[$c]}`] +[`\log_{a}\sqrt[^[$b]]{a^[$c]}`] -[_______________]{"$c/$b"} [@ AnswerFormatHelp("numbers") @]* +[_______________]{"$c/$b"} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_43_sup1.pg b/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_43_sup1.pg index 678e7ab9b8..a5b8e5f01b 100644 --- a/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_43_sup1.pg +++ b/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_43_sup1.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -43,11 +43,11 @@ Context()->functions->disable("log","log10","ln"); # Main text BEGIN_PGML -Use the definition of logarithms to completely simplify. +Use the definition of logarithms to completely simplify. -[`\log_{a}(\sqrt[^[$b]]{a^[$c]})`] +[`\log_{a}(\sqrt[^[$b]]{a^[$c]})`] -[_______________]{"$c/$b"} [@ AnswerFormatHelp("numbers") @]* +[_______________]{"$c/$b"} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_47.pg b/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_47.pg index c5f282ef30..1cf1894523 100644 --- a/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_47.pg +++ b/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_47.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject() ## DBchapter() ## DBsection() @@ -11,17 +11,17 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,10 +29,10 @@ loadMacros( "PGcourse.pl", "contextFraction.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -40,39 +40,39 @@ Context("Numeric"); $var1 = random(-5, 0, 1); -#This is not behaving correct. If va1=-2, var2 = 1/8. I don't get it. +#This is not behaving correct. If va1=-2, var2 = 1/8. I don't get it. Context("Fraction"); $var2 = Fraction(1,10^abs($var1)); - + Context("Numeric"); # The correct answer $ans=$var1; - - + + ########################### # Main text - + BEGIN_PGML Evaluate the common logarithmic expression without using a calculator. - [`\log([$var2]) `] - - [____]{$ans} [@ AnswerFormatHelp("numbers") @]* + [`\log([$var2]) `] + + [____]{$ans} [@ helpLink("numbers") @]* END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_49.pg b/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_49.pg index 8f75f46d7a..55deadce13 100644 --- a/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_49.pg +++ b/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_49.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Logarithmic functions) @@ -11,27 +11,27 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", "PGML.pl", "PGcourse.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup @@ -41,11 +41,11 @@ $var1 = random(-5, 0, 1); $var2 = non_zero_random(2, 8, 1); $var3 = list_random(10, 100, 1000, 10000); - + # The correct answer $ans=$var2*$var1*(log($var3)); - - + + ########################### # Main text Context()->functions->disable("Numeric"); @@ -54,21 +54,21 @@ BEGIN_PGML Evaluate the common logarithmic expression without using a calculator. - [`[$var2]\log([$var3]^{[$var1]}) `] - - [_____________]{$ans} [@ AnswerFormatHelp("numbers") @]* - + [`[$var2]\log([$var3]^{[$var1]}) `] + + [_____________]{$ans} [@ helpLink("numbers") @]* + END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); diff --git a/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_53.pg b/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_53.pg index e1541b4db0..544f9b27d6 100644 --- a/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_53.pg +++ b/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_53.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Logarithmic functions) @@ -11,27 +11,27 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", "PGML.pl", "PGcourse.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -41,11 +41,11 @@ $var1 = random(-5, 0, 1); $var2 = non_zero_random(2, 8, 1); $var3 = list_random(10, 100, 1000, 10000); - + # The correct answer $ans=$var2*$var1*(log10($var3)); - - + + ########################### # Main text Context()->functions->disable("Numeric"); @@ -54,21 +54,21 @@ BEGIN_PGML Evaluate the common logarithmic expression without using a calculator. - [`[$var2]\log([$var3]^{[$var1]}) `] - - [_____________]{$ans} [@ AnswerFormatHelp("numbers") @]* - + [`[$var2]\log([$var3]^{[$var1]}) `] + + [_____________]{$ans} [@ helpLink("numbers") @]* + END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_64.pg b/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_64.pg index 0cc57b4b54..c3a938b15f 100644 --- a/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_64.pg +++ b/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_64.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Applications and models - general) @@ -11,27 +11,27 @@ ## Author(Xian Feng Liang, 04/20/2019) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", "PGML.pl", "PGcourse.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -45,25 +45,25 @@ $ans = Compute(log($fstop*$fstop/$time)/log(2)); ########################### # Main text - + BEGIN_PGML -The exposure index [`EI`] for a 35 milllimeter camera is a measurement of the amount of light that hits the film. It is determined by the equation [`EI = `] `[$function]`, where [`f`] is the "f-stop" setting on the camera, and [`t`] is the exposure time in seconds. Suppose the f-stop setting is `[$fstop]` and the desired exposure time is `[$time]` seconds. What will the the resulting exposure index be? - - [_____________]{$ans} [@ AnswerFormatHelp("numbers") @]* - +The exposure index [`EI`] for a 35 milllimeter camera is a measurement of the amount of light that hits the film. It is determined by the equation [`EI = `] `[$function]`, where [`f`] is the "f-stop" setting on the camera, and [`t`] is the exposure time in seconds. Suppose the f-stop setting is `[$fstop]` and the desired exposure time is `[$time]` seconds. What will the the resulting exposure index be? + + [_____________]{$ans} [@ helpLink("numbers") @]* + END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_66.pg b/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_66.pg index 47624c6903..916687f3e4 100644 --- a/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_66.pg +++ b/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_66.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Applications and models - general) @@ -11,27 +11,27 @@ ## Author(Xian Feng Liang, 04/20/2019) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", "PGML.pl", "PGcourse.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup $Magnitude1 = random(4, 6, 0.1); @@ -46,25 +46,25 @@ $ans = Round(Compute("10^($Magnitude2-$Magnitude1)")); ########################### # Main text - + BEGIN_PGML -The intensity levels, [`I_{1}`] and [`I_{2}`], of two earthquakes measured on a seismograph can be compared by the formula `[$function]`, where [`M_{1}`] and [`M_{2}`] are the magnitudes of the two respective earthquakes, given by the Richter Scale. In August 2009, an earthquake of magnitude `[$Magnitude1]` hit the town of Tortuga. In March 2013, that same region experienced another earthquake, this time with a magnitude of `[$Magnitude2]`. How many times greater was the intensity of the 2013 earthquake compared to the 2009 earthquake? Round your answer to the nearest whole number. - - - [_____________]{$ans} [@ AnswerFormatHelp("numbers") @]* - +The intensity levels, [`I_{1}`] and [`I_{2}`], of two earthquakes measured on a seismograph can be compared by the formula `[$function]`, where [`M_{1}`] and [`M_{2}`] are the magnitudes of the two respective earthquakes, given by the Richter Scale. In August 2009, an earthquake of magnitude `[$Magnitude1]` hit the town of Tortuga. In March 2013, that same region experienced another earthquake, this time with a magnitude of `[$Magnitude2]`. How many times greater was the intensity of the 2013 earthquake compared to the 2009 earthquake? Round your answer to the nearest whole number. + + + [_____________]{$ans} [@ helpLink("numbers") @]* + END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_sup3.pg b/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_sup3.pg index 57b96e633e..a92d646964 100644 --- a/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_sup3.pg +++ b/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_sup3.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Applications and models - general) @@ -11,27 +11,27 @@ ## Author(Xian Feng Liang, 04/20/2019) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", "PGML.pl", "PGcourse.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup @@ -46,26 +46,26 @@ $ans = Round(Compute("10^(5.24+1.44*$Magnitude)")); ########################### # Main text - + BEGIN_PGML The amount of energy released during an earthquake, measured in joules, can be found from the formula `[$function]`, where [`M`] is the magnitude of the earthquake given by the Richter Scale and [`E`] represents the amount of energy released during the earthquake. Calculate the energy released during an earthquake of magnitude `[$Magnitude]`. Round your answer to the nearest whole number. - - [_____________]{$ans} [@ AnswerFormatHelp("numbers") @]* - + + [_____________]{$ans} [@ helpLink("numbers") @]* + END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_sup2.pg b/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_sup2.pg index 7198c68df7..29c880db18 100644 --- a/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_sup2.pg +++ b/Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_sup2.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -46,11 +46,11 @@ Context()->functions->disable("log","log10","ln"); # Main text BEGIN_PGML -Use the definition of logarithms to completely simplify. +Use the definition of logarithms to completely simplify. -[`\log_{a}\bigg(\frac{1}{[$func]}\bigg)`] +[`\log_{a}\bigg(\frac{1}{[$func]}\bigg)`] -[_______________]{"-$c/$b"} [@ AnswerFormatHelp("numbers") @]* +[_______________]{"-$c/$b"} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/6.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_36.pg b/Contrib/CCCS/PreCalculus/6.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_36.pg index 1ba31d3af0..2e89ebec19 100644 --- a/Contrib/CCCS/PreCalculus/6.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_36.pg +++ b/Contrib/CCCS/PreCalculus/6.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_36.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -45,11 +45,11 @@ Context()->functions->disable("log","log10","ln"); # Main text BEGIN_PGML -Use the definition of logarithms to completely simplify. +Use the definition of logarithms to completely simplify. -[`\log([$m]^[$p])`] +[`\log([$m]^[$p])`] -[_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/6.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_39.pg b/Contrib/CCCS/PreCalculus/6.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_39.pg index 14d0e63838..987f947784 100644 --- a/Contrib/CCCS/PreCalculus/6.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_39.pg +++ b/Contrib/CCCS/PreCalculus/6.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_39.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -42,11 +42,11 @@ Context()->functions->disable("log","log10","ln"); # Main text BEGIN_PGML -Use the definition of logarithms to completely simplify. +Use the definition of logarithms to completely simplify. -[`e^{\ln([$m])}`] +[`e^{\ln([$m])}`] -[_______________]{$m} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$m} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/6.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_43.pg b/Contrib/CCCS/PreCalculus/6.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_43.pg index 68f7d4c407..66ea8ab673 100644 --- a/Contrib/CCCS/PreCalculus/6.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_43.pg +++ b/Contrib/CCCS/PreCalculus/6.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_43.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -43,11 +43,11 @@ Context()->functions->disable("log","log10","ln"); # Main text BEGIN_PGML -Use the definition of logarithms to completely simplify. +Use the definition of logarithms to completely simplify. -[`\log_{[$b]}(\sqrt{[$b]})`] +[`\log_{[$b]}(\sqrt{[$b]})`] -[_______________]{"1/2"} [@ AnswerFormatHelp("numbers") @]* +[_______________]{"1/2"} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/6.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_44.pg b/Contrib/CCCS/PreCalculus/6.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_44.pg index 21aca9a773..b0e5ed1363 100644 --- a/Contrib/CCCS/PreCalculus/6.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_44.pg +++ b/Contrib/CCCS/PreCalculus/6.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_44.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -49,9 +49,9 @@ Context()->functions->disable("log","log10","ln"); BEGIN_PGML Evaluate the following without using a calculator. Simplify completely. -[`\log_{[$b]}(\frac{1}{[$denom]})+[$k]`] +[`\log_{[$b]}(\frac{1}{[$denom]})+[$k]`] -[_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/6.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_51.pg b/Contrib/CCCS/PreCalculus/6.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_51.pg index e8cb62cb05..5154096738 100644 --- a/Contrib/CCCS/PreCalculus/6.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_51.pg +++ b/Contrib/CCCS/PreCalculus/6.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_51.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -43,17 +43,17 @@ BEGIN_PGML Evaluate the following without using a calculator. Simplify completely. -[`\ln(1)=`] [_______________]{"0"} [@ AnswerFormatHelp("numbers") @]* +[`\ln(1)=`] [_______________]{"0"} [@ helpLink("numbers") @]* + +[`\log(1)=`] [_______________]{"0"} [@ helpLink("numbers") @]* -[`\log(1)=`] [_______________]{"0"} [@ AnswerFormatHelp("numbers") @]* +[`\log_b(1)=`] [_______________]{"0"} [@ helpLink("numbers") @]* -[`\log_b(1)=`] [_______________]{"0"} [@ AnswerFormatHelp("numbers") @]* +[`\log(10)=`] [_______________]{"1"} [@ helpLink("numbers") @]* -[`\log(10)=`] [_______________]{"1"} [@ AnswerFormatHelp("numbers") @]* +[`\ln(e)=`] [_______________]{"1"} [@ helpLink("numbers") @]* -[`\ln(e)=`] [_______________]{"1"} [@ AnswerFormatHelp("numbers") @]* - END_PGML diff --git a/Contrib/CCCS/PreCalculus/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_15.pg b/Contrib/CCCS/PreCalculus/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_15.pg index b0d48051f7..5b33596e12 100644 --- a/Contrib/CCCS/PreCalculus/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_15.pg +++ b/Contrib/CCCS/PreCalculus/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_15.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserPopUp.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -59,16 +59,16 @@ BEGIN_PGML Find the domain and vertical asymptote of [`` f(x)=[$f] ``]. Enter the domain in interval notation. -Domain: [_______________]{$ans1} [@ AnswerFormatHelp("intervals") @]* +Domain: [_______________]{$ans1} [@ helpLink("intervals") @]* -Vertical asymptote: [________]{$popup} [________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +Vertical asymptote: [________]{$popup} [________]{$ans2} [@ helpLink("numbers") @]* Describe the end behaviour of the function [`` f(x)=[$f] ``]. -+ As [`x \to -[$b]^+`], [`f(x) \to`] [_______________]{$ans3} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to -[$b]^+`], [`f(x) \to`] [_______________]{$ans3} [@ helpLink("numbers") @]* -+ As [`x \to \infty`], [`f(x) \to`] [_______________]{$ans4} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to \infty`], [`f(x) \to`] [_______________]{$ans4} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_39.pg b/Contrib/CCCS/PreCalculus/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_39.pg index 4c2e213287..4750bf88b9 100644 --- a/Contrib/CCCS/PreCalculus/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_39.pg +++ b/Contrib/CCCS/PreCalculus/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_39.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject() ## DBchapter() ## DBsection() @@ -11,29 +11,29 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", "PGcourse.pl", "contextLimitedPoint.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup @@ -99,7 +99,7 @@ Context("Numeric"); if ( $chooser == 1) { - + $popup1 = PopUp( ["?","Green","Red", "Blue", "Black"], "Green", ); @@ -112,7 +112,7 @@ $popup3 = PopUp( ["?","Green","Red", "Blue", "Black"], "Blue", ); } elsif ( $chooser == 2 ) { - + $popup1 = PopUp( ["?","Green","Red", "Blue", "Black"], "Orange", ); @@ -158,7 +158,7 @@ $popup3 = PopUp( ########################### # Main text - + BEGIN_PGML >>Match each equation with its graph. << @@ -171,14 +171,14 @@ BEGIN_PGML >>[`\log(-x+[$constant]) = `] [______]{$popup3}<< END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/PreCalculus/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_41.pg b/Contrib/CCCS/PreCalculus/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_41.pg index d36a7f4e53..fd2b4dc4c3 100644 --- a/Contrib/CCCS/PreCalculus/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_41.pg +++ b/Contrib/CCCS/PreCalculus/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_41.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Graphs) @@ -11,29 +11,29 @@ ## Author(Michael Sulock; EDIT: James Morski 10/19/2017; Edit: Xian Feng Liang 04/22/2019) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", "PGcourse.pl", "contextLimitedPoint.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup @@ -162,7 +162,7 @@ $ans = List(Point("(0, $yint)")); ########################### # Main text - + BEGIN_PGML >>Which of the following is the graph of [`f(x)=\log_{2}(x+[$constant])`] << @@ -173,16 +173,16 @@ BEGIN_PGML >>What is the y-intercept of the graph of [`f(x)=\log_{2}(x+[$constant])`]? << ->> [_____________]{$ans} [@ AnswerFormatHelp("points") @]* << +>> [_____________]{$ans} [@ helpLink("points") @]* << END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/PreCalculus/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_43.pg b/Contrib/CCCS/PreCalculus/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_43.pg index 240449ad8d..14f4130bfd 100644 --- a/Contrib/CCCS/PreCalculus/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_43.pg +++ b/Contrib/CCCS/PreCalculus/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_43.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Graphs) @@ -11,29 +11,29 @@ ## Author(Michael Sulock; Edit: Xian Feng Liang, 04/22/2019) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", "PGcourse.pl", "contextLimitedPoint.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup @@ -83,7 +83,7 @@ $ans = NONE; ########################### # Main text - + BEGIN_PGML >>Which of the following displays the graph of [`f(x)=\ln(-x)`] << @@ -93,17 +93,17 @@ BEGIN_PGML >>What is the y-intercept of the graph of [`f(x)=\ln(-x)`]? If the y-intercept does not exist, enter NONE.<< ->> [_____________]{$ans}[@ AnswerFormatHelp("points") @]* << +>> [_____________]{$ans}[@ helpLink("points") @]* << END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/PreCalculus/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_45.pg b/Contrib/CCCS/PreCalculus/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_45.pg index a9c17b9f01..a2ee38b353 100644 --- a/Contrib/CCCS/PreCalculus/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_45.pg +++ b/Contrib/CCCS/PreCalculus/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_45.pg @@ -2,7 +2,7 @@ ## College Algebra ## ENDDESCRIPTION - + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Graphs) @@ -12,7 +12,7 @@ ## MO(1) ## KEYWORDS('college algebra') - + ########################### # Initialization @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", diff --git a/Contrib/CCCS/PreCalculus/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_sup1.pg b/Contrib/CCCS/PreCalculus/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_sup1.pg index 904ba8cc9d..15538825e1 100644 --- a/Contrib/CCCS/PreCalculus/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_sup1.pg +++ b/Contrib/CCCS/PreCalculus/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_sup1.pg @@ -25,7 +25,7 @@ loadMacros( "PGchoicemacros.pl", "contextLimitedPoint.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + "contextInequalitySetBuilder.pl", "PGML.pl", "niceTables.pl", @@ -63,8 +63,8 @@ $ans4 = Compute("(-inf,inf)"); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -75,15 +75,15 @@ TeX => BEGIN_PGML -The graph of [`f(x)=[$fun]`] is reflected across the [`x`]-axis, shifted upward [$upshift] units, and then shifted left [$leftshift] units. +The graph of [`f(x)=[$fun]`] is reflected across the [`x`]-axis, shifted upward [$upshift] units, and then shifted left [$leftshift] units. -Let [`g(x)`] represent the new function. What is an equation for this function? [`g(x)`] = [_________________]{$ans1} [@ AnswerFormatHelp("formula") @]* +Let [`g(x)`] represent the new function. What is an equation for this function? [`g(x)`] = [_________________]{$ans1} [@ helpLink("formula") @]* -What is the y-intercept of [`g(x)`]? Enter the answer as an ordered pair. [_________________]{$ans2} [@ AnswerFormatHelp("points") @]* +What is the y-intercept of [`g(x)`]? Enter the answer as an ordered pair. [_________________]{$ans2} [@ helpLink("points") @]* -What is the domain of [`g(x)`]? Enter the answer as an interval. [_________________]{$ans3} [@ AnswerFormatHelp("intervals") @]* +What is the domain of [`g(x)`]? Enter the answer as an interval. [_________________]{$ans3} [@ helpLink("intervals") @]* -What is the range of [`g(x)`]? Enter the answer as an interval. [_________________]{$ans4} [@ AnswerFormatHelp("intervals") @]* +What is the range of [`g(x)`]? Enter the answer as an interval. [_________________]{$ans4} [@ helpLink("intervals") @]* [$video]* diff --git a/Contrib/CCCS/PreCalculus/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_sup2.pg b/Contrib/CCCS/PreCalculus/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_sup2.pg index 247bd6befb..58c601f558 100644 --- a/Contrib/CCCS/PreCalculus/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_sup2.pg +++ b/Contrib/CCCS/PreCalculus/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_sup2.pg @@ -25,7 +25,7 @@ loadMacros( "PGchoicemacros.pl", "contextLimitedPoint.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + "contextInequalitySetBuilder.pl", "PGML.pl", "niceTables.pl", @@ -53,7 +53,7 @@ if($b = exp(2)) {$leftshift = e^2;} if($b = exp(3)) {$leftshift = e^3;} -else{$leftshift = e^4;}; +else{$leftshift = e^4;}; Context("Numeric"); @@ -76,15 +76,15 @@ $ans4 = Compute("(-inf,inf)"); BEGIN_PGML -The graph of [`f(x)=`] ln[`(x)`] is vertically stretched by a factor of [$a], shifted downward [$downshift] units, and then shifted left `e^[$leftshift]` units. +The graph of [`f(x)=`] ln[`(x)`] is vertically stretched by a factor of [$a], shifted downward [$downshift] units, and then shifted left `e^[$leftshift]` units. -Let [`g(x)`] represent the new function. What is an equation for this function? [`g(x)`] = [_________________]{$ans1} [@ AnswerFormatHelp("formula") @]* +Let [`g(x)`] represent the new function. What is an equation for this function? [`g(x)`] = [_________________]{$ans1} [@ helpLink("formula") @]* -What is the y-intercept of [`g(x)`]? Enter the answer as an ordered pair. [_________________]{$ans2} [@ AnswerFormatHelp("points") @]* +What is the y-intercept of [`g(x)`]? Enter the answer as an ordered pair. [_________________]{$ans2} [@ helpLink("points") @]* -What is the domain of [`g(x)`]? Enter the answer as an interval. [_________________]{$ans3} [@ AnswerFormatHelp("intervals") @]* +What is the domain of [`g(x)`]? Enter the answer as an interval. [_________________]{$ans3} [@ helpLink("intervals") @]* -What is the range of [`g(x)`]? Enter the answer as an interval. [_________________]{$ans4} [@ AnswerFormatHelp("intervals") @]* +What is the range of [`g(x)`]? Enter the answer as an interval. [_________________]{$ans4} [@ helpLink("intervals") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_sup3.pg b/Contrib/CCCS/PreCalculus/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_sup3.pg index b2e7b38504..0d1f367856 100644 --- a/Contrib/CCCS/PreCalculus/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_sup3.pg +++ b/Contrib/CCCS/PreCalculus/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_sup3.pg @@ -24,7 +24,7 @@ loadMacros( "PGchoicemacros.pl", "contextLimitedPoint.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + "contextInequalitySetBuilder.pl", "PGML.pl", "niceTables.pl", @@ -58,9 +58,9 @@ else{ $func = ("-$stretch log_{$a}(x + $leftshift) $vertshift")}; $popup0 = PopUp(["A", "B", "C", "D", "E"], "A",); -if ($vertshift>0) +if ($vertshift>0) {$popup1 = PopUp( - ["?","Upward shift of $vertshift units", "Downward shift of $vertshift units", "Left shift of $vertshift units", "Right shift of $vertshift units"], "Upward shift of $vertshift units",); } + ["?","Upward shift of $vertshift units", "Downward shift of $vertshift units", "Left shift of $vertshift units", "Right shift of $vertshift units"], "Upward shift of $vertshift units",); } else { $popup1 = PopUp( @@ -70,11 +70,11 @@ else { $popup2 = PopUp(["?", "Upward shift of $leftshift units", "Downward shift of $leftshift units", "Left shift of $leftshift units", "Right shift of $leftshift units"], "Left shift of $leftshift units",); -if ($stretch > 1) +if ($stretch > 1) {$popup3 = PopUp( ["?","Vertical compression by a factor of $stretch", "Vertical stretch by a factor of $stretch", "Horizontal compression by a factor of $stretch", "Horizontal stretch by a factor of $stretch"], - "Vertical stretch by a factor of $stretch"); -} + "Vertical stretch by a factor of $stretch"); +} else { $popup3 = PopUp( @@ -90,7 +90,7 @@ $popup4 = PopUp(["?","Reflection over the y-axis","Reflection over the x-axis"], BEGIN_PGML -Consider the transformed function [`g(x)=`] `[$func]`. +Consider the transformed function [`g(x)=`] `[$func]`. Which of the following functions below is the parent or original function of [`g(x)`] before it was transformed? [_______________]{$popup0} diff --git a/Contrib/CCCS/PreCalculus/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_sup4.pg b/Contrib/CCCS/PreCalculus/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_sup4.pg index 86f8cd94b7..1ab19b5d68 100644 --- a/Contrib/CCCS/PreCalculus/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_sup4.pg +++ b/Contrib/CCCS/PreCalculus/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_sup4.pg @@ -25,7 +25,7 @@ loadMacros( "PGML.pl", "MathObjects.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + ); TEXT(beginproblem()); @@ -50,17 +50,17 @@ BEGIN_PGML For the following exercises, start with the graph of [`f(x)=[$fun]`]. Then write a function, [`g(x)`], that results from the given transformation. -Shift [`f(x)`] `[$upshift]` units upward: [`g(x)=`][_________________]{$ans1}[@ AnswerFormatHelp("formula") @]* +Shift [`f(x)`] `[$upshift]` units upward: [`g(x)=`][_________________]{$ans1}[@ helpLink("formula") @]* -Shift [`f(x)`] `[$downshift]` units downward: [`g(x)=`][_________________]{$ans2}[@ AnswerFormatHelp("formula") @]* +Shift [`f(x)`] `[$downshift]` units downward: [`g(x)=`][_________________]{$ans2}[@ helpLink("formula") @]* -Shift [`f(x)`] `[$leftshift]` units left: [`g(x)=`][_________________]{$ans3}[@ AnswerFormatHelp("formula") @]* +Shift [`f(x)`] `[$leftshift]` units left: [`g(x)=`][_________________]{$ans3}[@ helpLink("formula") @]* -Shift [`f(x)`] `[$rightshift]` units right: [`g(x)=`][_________________]{$ans4}[@ AnswerFormatHelp("formula") @]* +Shift [`f(x)`] `[$rightshift]` units right: [`g(x)=`][_________________]{$ans4}[@ helpLink("formula") @]* -Reflect [`f(x)`] about the [`x`]-axis: [`g(x)=`][_________________]{$ans5}[@ AnswerFormatHelp("formula") @]* +Reflect [`f(x)`] about the [`x`]-axis: [`g(x)=`][_________________]{$ans5}[@ helpLink("formula") @]* -Reflect [`f(x)`]about the [`y`]-axis: [`g(x)=`][_________________]{$ans6}[@ AnswerFormatHelp("formula") @]* +Reflect [`f(x)`]about the [`y`]-axis: [`g(x)=`][_________________]{$ans6}[@ helpLink("formula") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/6.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_13.pg b/Contrib/CCCS/PreCalculus/6.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_13.pg index 87578608dd..def3284c90 100644 --- a/Contrib/CCCS/PreCalculus/6.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_13.pg +++ b/Contrib/CCCS/PreCalculus/6.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_13.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserPopUp.pl", "PGML.pl", "PGcourse.pl", @@ -52,8 +52,8 @@ $ans4 = inf; $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -64,16 +64,16 @@ BEGIN_PGML Find the domain and vertical asymptote of [`` f(x)=[$f] ``]. Enter the domain in interval notation. -Domain: [_______________]{$ans1} [@ AnswerFormatHelp("intervals") @]* +Domain: [_______________]{$ans1} [@ helpLink("intervals") @]* -Vertical asymptote: [_________________]{$popup}[________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +Vertical asymptote: [_________________]{$popup}[________]{$ans2} [@ helpLink("numbers") @]* Describe the end behavior of the the function [`` f(x)=[$f] ``]. -+ As [`x \to [$ans2]^+`], [`f(x) \to`] [_______________]{$ans3} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to [$ans2]^+`], [`f(x) \to`] [_______________]{$ans3} [@ helpLink("numbers") @]* -+ As [`x \to \infty`], [`f(x) \to`] [_______________]{$ans4} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to \infty`], [`f(x) \to`] [_______________]{$ans4} [@ helpLink("numbers") @]* [$video]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/6.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_17.pg b/Contrib/CCCS/PreCalculus/6.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_17.pg index 5835f3c78b..c69859cddf 100644 --- a/Contrib/CCCS/PreCalculus/6.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_17.pg +++ b/Contrib/CCCS/PreCalculus/6.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_17.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserPopUp.pl", "PGML.pl", "PGcourse.pl", @@ -46,7 +46,7 @@ $popup = PopUp(["?","x=","y=", "f(x)="],"x=",); $ans3 = -inf; -$ans4 = inf; +$ans4 = inf; ########################### # Main text @@ -55,16 +55,16 @@ BEGIN_PGML Find the domain and vertical asymptote of [`` f(x)=[$f] ``]. Enter the domain in interval notation. -Domain: [_______________]{$ans1} [@ AnswerFormatHelp("intervals") @]* +Domain: [_______________]{$ans1} [@ helpLink("intervals") @]* -Vertical asymptote [_________________]{$popup} [________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +Vertical asymptote [_________________]{$popup} [________]{$ans2} [@ helpLink("numbers") @]* Describe the end behaviour of the function [`` f(x)=[$f] ``]. -+ As [`x \to [$ans2]^+`], [`f(x) \to`] [_______________]{$ans3} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to [$ans2]^+`], [`f(x) \to`] [_______________]{$ans3} [@ helpLink("numbers") @]* -+ As [`x \to \infty`], [`f(x) \to`] [_______________]{$ans4} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to \infty`], [`f(x) \to`] [_______________]{$ans4} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/6.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_26.pg b/Contrib/CCCS/PreCalculus/6.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_26.pg index ec9cc85d2f..860508e09c 100644 --- a/Contrib/CCCS/PreCalculus/6.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_26.pg +++ b/Contrib/CCCS/PreCalculus/6.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_26.pg @@ -26,7 +26,7 @@ loadMacros( "MathObjects.pl", "parserPopUp.pl", "parserMultiAnswer.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", ); @@ -78,8 +78,8 @@ $popup5 = PopUp( $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -90,7 +90,7 @@ Match each function with one of the graphs. $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>400,height=>400,tex_size=>800 ) \} $BR (Click on graph to enlarge) diff --git a/Contrib/CCCS/PreCalculus/6.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_52.pg b/Contrib/CCCS/PreCalculus/6.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_52.pg index 6b339b626a..517091f5d0 100644 --- a/Contrib/CCCS/PreCalculus/6.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_52.pg +++ b/Contrib/CCCS/PreCalculus/6.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_52.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,9 +48,9 @@ $ans=Formula("(10^(($c-$d)/2)+$a)/$b")->reduce; BEGIN_PGML -Use graphing technology to find approximate solutions of [` [$f]=[$g]`]. +Use graphing technology to find approximate solutions of [` [$f]=[$g]`]. -[`x=`] [________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/6.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_7.pg b/Contrib/CCCS/PreCalculus/6.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_7.pg index 0ce8982e46..dfada41cb3 100644 --- a/Contrib/CCCS/PreCalculus/6.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_7.pg +++ b/Contrib/CCCS/PreCalculus/6.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_7.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -43,8 +43,8 @@ $ans2=Compute("(-infinity,infinity)"); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -57,9 +57,9 @@ BEGIN_PGML Find the domain and range of [`` f(x)=[$f] ``]. Enter your solutions in interval notation. -Domain: [_______________]{$ans1} [@ AnswerFormatHelp("intervals") @]* +Domain: [_______________]{$ans1} [@ helpLink("intervals") @]* -Range: [_______________]{$ans2} [@ AnswerFormatHelp("intervals") @]* +Range: [_______________]{$ans2} [@ helpLink("intervals") @]* [$video]* diff --git a/Contrib/CCCS/PreCalculus/6.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_9.pg b/Contrib/CCCS/PreCalculus/6.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_9.pg index e5961ea0f1..cf2c923937 100644 --- a/Contrib/CCCS/PreCalculus/6.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_9.pg +++ b/Contrib/CCCS/PreCalculus/6.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_9.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,9 +50,9 @@ BEGIN_PGML Find the domain and range of [`` f(x)=[$f] ``]. Enter the solutions in interval notation. -Domain: [_______________]{$ans1} [@ AnswerFormatHelp("intervals") @]* +Domain: [_______________]{$ans1} [@ helpLink("intervals") @]* -Range: [_______________]{$ans2} [@ AnswerFormatHelp("intervals") @]* +Range: [_______________]{$ans2} [@ helpLink("intervals") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_05.pg b/Contrib/CCCS/PreCalculus/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_05.pg index e367672aa0..e40c27fa43 100644 --- a/Contrib/CCCS/PreCalculus/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_05.pg +++ b/Contrib/CCCS/PreCalculus/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_05.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject() ## DBchapter() ## DBsection() @@ -11,29 +11,29 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", "PGcourse.pl", "contextLimitedPoint.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context()->operators->undefine("/"); @@ -45,7 +45,7 @@ $ans = Formula("ln($numerator)-ln(x)")->with(limits=>[1,2]); ########################### # Main text - + BEGIN_PGML Expand the following logarithm as much as possible. Rewrite as a sum, difference, or product of logs. @@ -58,14 +58,14 @@ Expand the following logarithm as much as possible. Rewrite as a sum, differenc END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/PreCalculus/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_12.pg b/Contrib/CCCS/PreCalculus/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_12.pg index 5d1690efae..b3c7a632cc 100644 --- a/Contrib/CCCS/PreCalculus/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_12.pg +++ b/Contrib/CCCS/PreCalculus/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_12.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -43,9 +43,9 @@ if ( $d == -1 ) { # Main text BEGIN_PGML -Condense the left-hand side into a single logarithm. +Condense the left-hand side into a single logarithm. ->>[`\log(a)-\log(b)-\log(c)`] = [`\log(`][_______________]{"a/(bc)"}[`)`] [@ AnswerFormatHelp("formulas") @]*<< +>>[`\log(a)-\log(b)-\log(c)`] = [`\log(`][_______________]{"a/(bc)"}[`)`] [@ helpLink("formulas") @]*<< END_PGML @@ -56,9 +56,9 @@ END_PGML # Main text BEGIN_PGML -Condense the left-hand side into a single logarithm. +Condense the left-hand side into a single logarithm. ->>[`3\log(a)+\log(b)-\log(c)`] = [`\log(`][_______________]{"((a^{3}b)/c)"}[`)`] [@ AnswerFormatHelp("formulas") @]*<< +>>[`3\log(a)+\log(b)-\log(c)`] = [`\log(`][_______________]{"((a^{3}b)/c)"}[`)`] [@ helpLink("formulas") @]*<< END_PGML diff --git a/Contrib/CCCS/PreCalculus/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_13.pg b/Contrib/CCCS/PreCalculus/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_13.pg index 1504b8c364..a4376920c2 100644 --- a/Contrib/CCCS/PreCalculus/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_13.pg +++ b/Contrib/CCCS/PreCalculus/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_13.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Properties of logarithms) @@ -11,27 +11,27 @@ ## Author(Michael Sulock, Edit: Brittni Lorton 11/01/2019) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextLimitedPoint.pl", "parserFunction.pl" ); - + TEXT(beginproblem()); - + ########################### # Setup @@ -43,14 +43,14 @@ $ans = Formula("log(x)"); $ans->{test_points} = [[2],[3],[4]]; -#$denominator = random(1,20,1); +#$denominator = random(1,20,1); ########################### # Main text - + BEGIN_PGML Expand the following logarithm as much as possible. Rewrite as a sum, difference, or product of logs. @@ -59,14 +59,14 @@ Expand the following logarithm as much as possible. Rewrite as a sum, difference [___________]{$ans} END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/PreCalculus/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_15.pg b/Contrib/CCCS/PreCalculus/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_15.pg index ba1bc52fd5..c18411f652 100644 --- a/Contrib/CCCS/PreCalculus/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_15.pg +++ b/Contrib/CCCS/PreCalculus/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_15.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Properties of logarithms) @@ -11,29 +11,29 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", "PGcourse.pl", "contextLimitedPoint.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -43,9 +43,9 @@ Context()->operators->undefine("/", "^"); Context()->variables->add(y => 'Real'); Context()->variables->add(z => 'Real'); -$expX = random(3,9,1); -$expY = random(5,7,1); -$expZ = random(3,9,1); +$expX = random(3,9,1); +$expY = random(5,7,1); +$expZ = random(3,9,1); @@ -55,7 +55,7 @@ $ans->{test_points} = [[1,1,1], [2,2,2]]; ########################### # Main text - + BEGIN_PGML Use the properties of logarithms to expand the following logarithm as much as possible. Rewrite as a sum, difference, or product of logs. @@ -65,14 +65,14 @@ Use the properties of logarithms to expand the following logarithm as much as po END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/PreCalculus/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_19.pg b/Contrib/CCCS/PreCalculus/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_19.pg index 7152717d85..ffa2e1f3dd 100644 --- a/Contrib/CCCS/PreCalculus/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_19.pg +++ b/Contrib/CCCS/PreCalculus/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_19.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Properties of logarithms) @@ -11,29 +11,29 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", "PGcourse.pl", "contextLimitedPoint.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -42,10 +42,10 @@ Context()->operators->undefine("^"); Context()->variables->add(y => 'Real'); Context()->variables->add(z => 'Real'); -$expX = random(3,9,1); -$expY = random(5,7,1); -$expX2 = random(3,9,1); -$expY2 = random(5,7,1); +$expX = random(3,9,1); +$expY = random(5,7,1); +$expX2 = random(3,9,1); +$expY2 = random(5,7,1); $root = random(3,9,1); @@ -60,7 +60,7 @@ $ans->{test_points} = [[1,1,1], [2,2,2]]; ########################### # Main text - + BEGIN_PGML Use the properties of logarithms to expand the following logarithm as much as possible. Rewrite as a sum, difference, or product of logs. @@ -70,14 +70,14 @@ Use the properties of logarithms to expand the following logarithm as much as po END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/PreCalculus/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_21.pg b/Contrib/CCCS/PreCalculus/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_21.pg index b619beb952..c7cd3bb314 100644 --- a/Contrib/CCCS/PreCalculus/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_21.pg +++ b/Contrib/CCCS/PreCalculus/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_21.pg @@ -5,7 +5,7 @@ ## College Algebra ## ENDDESCRIPTION - + ## DBsubject() ## DBchapter() ## DBsection() @@ -15,7 +15,7 @@ ## MO(1) ## KEYWORDS('college algebra') - + ########################### # Initialization @@ -26,7 +26,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -42,11 +42,11 @@ TEXT(beginproblem()); # Setup Context("Numeric"); -$coeffX = random(3,9,1); +$coeffX = random(3,9,1); do {$coeffX2 = random(5,7,1); } until ($coeffX2 != $coeffX); -$expX = random(3,9,1); +$expX = random(3,9,1); do {$expX2 = random(5,7,1); } until ($expX2 != $expX); $numerator = Formula("$coeffX*x^{$expX}"); @@ -69,7 +69,7 @@ Condense the following expression to a single logarithm using the properties of [`\ln{\left( [$coeffX]x^[$expX]\right)}- \ln{\left( [$coeffX2]x^[$expX2]\right)}`] - [___________________________]{$ans}[@ AnswerFormatHelp("formulas") @]* + [___________________________]{$ans}[@ helpLink("formulas") @]* [% [$numerator]; [$denominator]; diff --git a/Contrib/CCCS/PreCalculus/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_23.pg b/Contrib/CCCS/PreCalculus/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_23.pg index ea8b37915c..bc35445c82 100644 --- a/Contrib/CCCS/PreCalculus/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_23.pg +++ b/Contrib/CCCS/PreCalculus/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_23.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserFunction.pl" @@ -56,7 +56,7 @@ Condense the left-hand side into a single logarithm. Then solve the resulting >>[`\log(x)-\frac{1}{[$b]}\log(y)+[$a]\log(z)=\log(A)`] << >>[`A=`] [_______________]{$ans} - [@ AnswerFormatHelp("formulas") @]*<< + [@ helpLink("formulas") @]*<< END_PGML diff --git a/Contrib/CCCS/PreCalculus/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_27.pg b/Contrib/CCCS/PreCalculus/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_27.pg index cdf5c3c468..ed8ce93225 100644 --- a/Contrib/CCCS/PreCalculus/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_27.pg +++ b/Contrib/CCCS/PreCalculus/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_27.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,10 +48,10 @@ Context()->variables->add(a => 'Real', b => 'Real'); BEGIN_PGML Suppose [` \log_{[$p]}([$m])=a`] and [` \log_{[$p]}([$n])=b`]. Use the change of base formula along with properties of logarithms to rewrite the following in terms of [`a`] and [`b`]. -+ [`\log_{[$n]}([$p])=`] [_______________]{"1/b"} [@ AnswerFormatHelp("formulas") @]* ++ [`\log_{[$n]}([$p])=`] [_______________]{"1/b"} [@ helpLink("formulas") @]* + ++ [`\log_{[$n]}\left(\frac{[$m]}{[$n]}\right)=`] [_______________]{"a/b-1"} [@ helpLink("formulas") @]* -+ [`\log_{[$n]}\left(\frac{[$m]}{[$n]}\right)=`] [_______________]{"a/b-1"} [@ AnswerFormatHelp("formulas") @]* - END_PGML diff --git a/Contrib/CCCS/PreCalculus/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_29.pg b/Contrib/CCCS/PreCalculus/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_29.pg index bfb6ae99e2..bd19e60df4 100644 --- a/Contrib/CCCS/PreCalculus/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_29.pg +++ b/Contrib/CCCS/PreCalculus/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_29.pg @@ -2,7 +2,7 @@ ## College Algebra ## ENDDESCRIPTION - + ## DBsubject() ## DBchapter() ## DBsection() @@ -12,7 +12,7 @@ ## MO(1) ## KEYWORDS('college algebra') - + ########################### # Initialization @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", diff --git a/Contrib/CCCS/PreCalculus/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_31.pg b/Contrib/CCCS/PreCalculus/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_31.pg index 1fd57bff0a..bfd047ba48 100644 --- a/Contrib/CCCS/PreCalculus/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_31.pg +++ b/Contrib/CCCS/PreCalculus/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_31.pg @@ -1,11 +1,11 @@ -#### This problem is incomplete +#### This problem is incomplete ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Properties of logarithms) @@ -15,18 +15,18 @@ ## MO(1) ## KEYWORDS('college algebra') - + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -34,10 +34,10 @@ loadMacros( "contextLimitedPoint.pl", "contextFraction.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -60,7 +60,7 @@ $ans = Formula("$const1+(1/$const2)"); ########################### # Main text - + BEGIN_PGML Use properties of logarithms to evaluate without using a calculator. @@ -71,14 +71,14 @@ Use properties of logarithms to evaluate without using a calculator. END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/PreCalculus/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_9.pg b/Contrib/CCCS/PreCalculus/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_9.pg index 5825c29626..1b59c6a951 100644 --- a/Contrib/CCCS/PreCalculus/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_9.pg +++ b/Contrib/CCCS/PreCalculus/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_9.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -40,8 +40,8 @@ $a=non_zero_random(2,9,1); Context()->variables->add(y => 'Real'); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -49,9 +49,9 @@ TeX => # Main text BEGIN_PGML -Condense the left-hand side into a single logarithm. +Condense the left-hand side into a single logarithm. -[`\log([$a])+\log(x)+\log(y)`] = [`\log(`][_______________]{"$a*xy"}[`)`] [@ AnswerFormatHelp("formulas") @]* +[`\log([$a])+\log(x)+\log(y)`] = [`\log(`][_______________]{"$a*xy"}[`)`] [@ helpLink("formulas") @]* diff --git a/Contrib/CCCS/PreCalculus/6.5/VideoI.pg b/Contrib/CCCS/PreCalculus/6.5/VideoI.pg index 57668a1c13..a5bc1e4d5b 100644 --- a/Contrib/CCCS/PreCalculus/6.5/VideoI.pg +++ b/Contrib/CCCS/PreCalculus/6.5/VideoI.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## KEYWORDS() @@ -25,7 +25,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -38,8 +38,8 @@ TEXT(beginproblem()); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -51,12 +51,12 @@ BEGIN_PGML >> [$video]* << ->> YouTube video of Craig Faulhaber, internet mathemagician, embedded using an iframe. << +>> YouTube video of Craig Faulhaber, internet mathemagician, embedded using an iframe. << >> If the video does not work, [@ htmlLink("https://youtu.be/nUnOs9h3hlE?list=PLIOf9vAXVvjBi7zgxRihNg0OcW74-svu6","click here to go to YouTube directly.") @]* << #Video Quiz: -Evaluate [` \log_{2}(64)=`] [_______________]{6} [@ AnswerFormatHelp("formulas") @]* +Evaluate [` \log_{2}(64)=`] [_______________]{6} [@ helpLink("formulas") @]* diff --git a/Contrib/CCCS/PreCalculus/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_13.pg b/Contrib/CCCS/PreCalculus/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_13.pg index a4130b8b6e..3eae72169f 100644 --- a/Contrib/CCCS/PreCalculus/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_13.pg +++ b/Contrib/CCCS/PreCalculus/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_13.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## College Algebra, solve an exponential equation +## College Algebra, solve an exponential equation ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -52,13 +52,13 @@ Context()->strings->add( BEGIN_PGML -Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". +Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". If you find more than one solution, enter the answers as a comma-separated list. -[` e^{r + {[$u]}} - {[$v]} = - {[$w]} `] +[` e^{r + {[$u]}} - {[$v]} = - {[$w]} `] -[_______________]{$x1} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$x1} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_15.pg b/Contrib/CCCS/PreCalculus/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_15.pg index f654017a86..7e7b67de1f 100644 --- a/Contrib/CCCS/PreCalculus/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_15.pg +++ b/Contrib/CCCS/PreCalculus/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_15.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## College Algebra, solve an exponential equation +## College Algebra, solve an exponential equation ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -62,13 +62,13 @@ Context()->strings->add( BEGIN_PGML -Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". +Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". If you find more than one solution, enter the answers as a comma-separated list. -[` -{[$v]} \cdot {[$b]}^{\, p + {[$u]}} - {[$w]} = -{[$x]} `] +[` -{[$v]} \cdot {[$b]}^{\, p + {[$u]}} - {[$w]} = -{[$x]} `] -[_______________]{$x1} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$x1} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_17.pg b/Contrib/CCCS/PreCalculus/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_17.pg index c4ee33d145..a828c0fc71 100644 --- a/Contrib/CCCS/PreCalculus/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_17.pg +++ b/Contrib/CCCS/PreCalculus/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_17.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -34,9 +34,9 @@ $showPartialCorrectAnswers = 1; # Setup # Parameters -$u = random(2,9); -$v = random(1,9); -$w = random(36,54); +$u = random(2,9); +$v = random(1,9); +$w = random(36,54); # Solution if (($w - $v) <= 0) { @@ -58,13 +58,13 @@ Context()->strings->add( BEGIN_PGML -Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". +Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". If there is more than one solution, enter the answers as a comma-separated list. -[` e^{\, -{[$u]} k} + {[$v]} = {[$w]} `] +[` e^{\, -{[$u]} k} + {[$v]} = {[$w]} `] -[_______________]{$x1} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$x1} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_19.pg b/Contrib/CCCS/PreCalculus/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_19.pg index 93cfa8d369..ddcad74b8e 100644 --- a/Contrib/CCCS/PreCalculus/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_19.pg +++ b/Contrib/CCCS/PreCalculus/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_19.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -35,9 +35,9 @@ $showPartialCorrectAnswers = 1; # Setup # Parameters -$u = random(6,9); -$v = random(2,9); -$w = random(1,9); +$u = random(6,9); +$v = random(2,9); +$w = random(1,9); $x = random(1,10); $y = random(66,84); @@ -61,13 +61,13 @@ Context()->strings->add( BEGIN_PGML -Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". +Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". If there is more than one solution, enter the answers as a comma-separated list. -[` -{[$u]} e^{\, {[$v]} k + {[$w]}} + {[$x]} = -{[$y]} `] +[` -{[$u]} e^{\, {[$v]} k + {[$w]}} + {[$x]} = -{[$y]} `] -[_______________]{$x1} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$x1} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_21.pg b/Contrib/CCCS/PreCalculus/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_21.pg index a0e40dabf5..b8dc1a4805 100644 --- a/Contrib/CCCS/PreCalculus/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_21.pg +++ b/Contrib/CCCS/PreCalculus/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_21.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -36,10 +36,10 @@ $showPartialCorrectAnswers = 1; # Parameters -$u = random(2,10); +$u = random(2,10); do { $v = random(2, 10); } until ($v != $u); -$w = random(1,5); +$w = random(1,5); $x = 2; Context()->noreduce('(-x)-y','(-x)+y'); @@ -61,26 +61,26 @@ if($u > $v) { if($w == 1) { BEGIN_PGML -Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". +Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". If there is more than one solution, enter the answers as a comma-separated list. -[` [$f] = 0 `] +[` [$f] = 0 `] -[_______________]{$x1} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$x1} [@ helpLink("numbers") @]* END_PGML } else { BEGIN_PGML -Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". +Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". If you find more than one solution, enter your answer as a comma-separated list. -[` e^{ {[$x *$w]} x} - {[$u - $v]} e^{ {[$w]} x} - {[$u * $v]} = 0 `] +[` e^{ {[$x *$w]} x} - {[$u - $v]} e^{ {[$w]} x} - {[$u * $v]} = 0 `] -[_______________]{$x1} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$x1} [@ helpLink("numbers") @]* END_PGML } @@ -89,26 +89,26 @@ else { if (w == 1) { BEGIN_PGML -Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". +Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". If you find more than one solution, enter your answer as a comma-separated list. -[` e^{2x} + {[$v - $u]} e^x - {[$u * $v]} = 0 `] +[` e^{2x} + {[$v - $u]} e^x - {[$u * $v]} = 0 `] -[_______________]{$x1} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$x1} [@ helpLink("numbers") @]* END_PGML } else { BEGIN_PGML -Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". +Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". If you find more than one solution, enter your answer as a comma-separated list. -[` e^{ {[$x *$w]} x} + {[$v - $u]} e^{ {[$w]} x} - {[$u * $v]} = 0 `] +[` e^{ {[$x *$w]} x} + {[$v - $u]} e^{ {[$w]} x} - {[$u * $v]} = 0 `] -[_______________]{$x1} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$x1} [@ helpLink("numbers") @]* END_PGML } diff --git a/Contrib/CCCS/PreCalculus/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_23.pg b/Contrib/CCCS/PreCalculus/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_23.pg index c95a70305d..92d1e0c01c 100644 --- a/Contrib/CCCS/PreCalculus/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_23.pg +++ b/Contrib/CCCS/PreCalculus/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_23.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## College Algebra, work with an exponential equation +## College Algebra, work with an exponential equation ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -35,9 +35,9 @@ $showPartialCorrectAnswers = 1; # Setup # Parameters -$u = random(8,12); -$v = random(4,8); -$w = random(1,3); +$u = random(8,12); +$v = random(4,8); +$w = random(1,3); $x = random(1,4); $y = random(7,13); @@ -61,13 +61,13 @@ Context()->strings->add( BEGIN_PGML -Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". +Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". If there is more than one solution, enter the answers as a comma-separated list. -[` {[$u]} e^{\, {[$v]} k + {[$w]}} + {[$x]} = {[$y]} `] +[` {[$u]} e^{\, {[$v]} k + {[$w]}} + {[$x]} = {[$y]} `] -[_______________]{$x1} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$x1} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_25.pg b/Contrib/CCCS/PreCalculus/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_25.pg index fa72047bdf..f502eb34bb 100644 --- a/Contrib/CCCS/PreCalculus/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_25.pg +++ b/Contrib/CCCS/PreCalculus/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_25.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -35,9 +35,9 @@ $showPartialCorrectAnswers = 1; # Setup # Parameters -$u = random(8,12); -$v = random(4,8); -$w = random(1,3); +$u = random(8,12); +$v = random(4,8); +$w = random(1,3); $x = random(1,4); $y = random(71,96); @@ -61,13 +61,13 @@ Context()->strings->add( BEGIN_PGML -Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". +Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". If there is more than one solution, enter the answers as a comma-separated list. -[` {[$u]} e^{\, -{[$v]} k - {[$w]}} - {[$x]} = -{[$y]} `] +[` {[$u]} e^{\, -{[$v]} k - {[$w]}} - {[$x]} = -{[$y]} `] -[_______________]{$x1} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$x1} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_29.pg b/Contrib/CCCS/PreCalculus/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_29.pg index 637d1c337f..f039de0d90 100644 --- a/Contrib/CCCS/PreCalculus/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_29.pg +++ b/Contrib/CCCS/PreCalculus/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_29.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -77,25 +77,25 @@ $multians = MultiAnswer($ans1, $ans2)->with( - + ########################### # Main text BEGIN_PGML -Rewrite the following equation in exponential form. +Rewrite the following equation in exponential form. + +[``\log_[$a]\left(\frac{1}{[$d]}\right)=[$b] ``] -[``\log_[$a]\left(\frac{1}{[$d]}\right)=[$b] ``] - - [____]{$multians} [`=`] [____]{$multians} [@ AnswerFormatHelp("numbers") @]* + [____]{$multians} [`=`] [____]{$multians} [@ helpLink("numbers") @]* END_PGML - - + + ############################ # Solution diff --git a/Contrib/CCCS/PreCalculus/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_39.pg b/Contrib/CCCS/PreCalculus/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_39.pg index 48c22e9c21..54105f5944 100644 --- a/Contrib/CCCS/PreCalculus/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_39.pg +++ b/Contrib/CCCS/PreCalculus/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_39.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -37,8 +37,8 @@ $showPartialCorrectAnswers = 1; # Parameters $a = random(1,3); # different variations of problem -$u = random(2,5); -$v = random(6,10); +$u = random(2,5); +$v = random(6,10); $w = random(1,7); # Solution @@ -56,7 +56,7 @@ else{ $x1 = $v + $u; if (($x1^2 - $v*$x1 + $w) <= 0) { $x1 = List(0); - } + } else { $x1 = List(0, $x1); } @@ -73,27 +73,27 @@ Context()->strings->add( if ($a == 1) { BEGIN_PGML -Give all solutions to the equation, or state that there are no solutions by entering "NONE". +Give all solutions to the equation, or state that there are no solutions by entering "NONE". If there is more than one solution, enter the answers as a comma-separated list. -[` \ln \left( - {[$u]} x \right) = \ln \left( x^2 - {[$v]} x \right) `] +[` \ln \left( - {[$u]} x \right) = \ln \left( x^2 - {[$v]} x \right) `] -[_______________]{$x1} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$x1} [@ helpLink("numbers") @]* END_PGML } elsif ($a == 2) { BEGIN_PGML -Give all solutions to the equation, or state that there are no solutions by entering "NONE". +Give all solutions to the equation, or state that there are no solutions by entering "NONE". If you find more than one solution, enter your answer as a comma-separated list. -[` \ln \left( {[$u]} x \right) = \ln \left( x^2 - {[$v]} x \right) `] +[` \ln \left( {[$u]} x \right) = \ln \left( x^2 - {[$v]} x \right) `] -[_______________]{$x1} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$x1} [@ helpLink("numbers") @]* END_PGML } @@ -104,9 +104,9 @@ Give all solutions to the equation, or state that there are no solutions by ente If you find more than one solution, enter your answer as a comma-separated list. -[` \ln \left( {[$u]} x + {[$w]} \right) = \ln \left( x^2 - {[$v]} x + {[$w]} \right) `] +[` \ln \left( {[$u]} x + {[$w]} \right) = \ln \left( x^2 - {[$v]} x + {[$w]} \right) `] -[_______________]{$x1} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$x1} [@ helpLink("numbers") @]* END_PGML } diff --git a/Contrib/CCCS/PreCalculus/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_4.pg b/Contrib/CCCS/PreCalculus/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_4.pg index c777bde956..b74dc622a4 100644 --- a/Contrib/CCCS/PreCalculus/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_4.pg +++ b/Contrib/CCCS/PreCalculus/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_4.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -41,8 +41,8 @@ $d=random(5,9,1); $ans=($c-$b)/(1+$d); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -53,7 +53,7 @@ BEGIN_PGML Use like bases to solve the exponential equation [`[$a]^{[$c]-[$d]x} = [$a]^{[$b]+x}`]. - [_____________]{$ans} [@ AnswerFormatHelp("numbers") @]* + [_____________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/PreCalculus/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_41.pg b/Contrib/CCCS/PreCalculus/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_41.pg index 3d7c2c48e3..ae5e6f294f 100644 --- a/Contrib/CCCS/PreCalculus/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_41.pg +++ b/Contrib/CCCS/PreCalculus/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_41.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -44,8 +44,8 @@ $a = random(1,2); # Parameters -$u = random(2,10); -$v = random(45,55); +$u = random(2,10); +$v = random(45,55); # Solution if ($a == 1) { @@ -61,27 +61,27 @@ else { if ($a == 1) { BEGIN_PGML -Give all solutions to the equation, or state that there are no solutions by entering "NONE". +Give all solutions to the equation, or state that there are no solutions by entering "NONE". If you find more than one solution, enter your answer as a comma-separated list. -[` \ln \left( x - {[$u]} \right) - \ln \left( x \right) = \ln \left( {[$v]} \right) `] +[` \ln \left( x - {[$u]} \right) - \ln \left( x \right) = \ln \left( {[$v]} \right) `] -[_______________]{$x1} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$x1} [@ helpLink("numbers") @]* END_PGML } else { BEGIN_PGML -Give all solutions to the equation, or state that there are no solutions by entering "NONE". +Give all solutions to the equation, or state that there are no solutions by entering "NONE". If there is more than one solution, enter the answers as a comma-separated list. -[` \ln \left( x + {[$u]} \right) - \ln \left( x \right) = \ln \left( {[$v]} \right) `] +[` \ln \left( x + {[$u]} \right) - \ln \left( x \right) = \ln \left( {[$v]} \right) `] -[_______________]{$x1} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$x1} [@ helpLink("numbers") @]* END_PGML } diff --git a/Contrib/CCCS/PreCalculus/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_43.pg b/Contrib/CCCS/PreCalculus/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_43.pg index 3c8499da67..a9415e7241 100644 --- a/Contrib/CCCS/PreCalculus/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_43.pg +++ b/Contrib/CCCS/PreCalculus/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_43.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -63,14 +63,14 @@ else { BEGIN_PGML -Give all solutions to the equation, or state that there are no solutions by entering "NONE". +Give all solutions to the equation, or state that there are no solutions by entering "NONE". If there is more than one solution, enter the answers as a comma-separated list. [`` \ln \left( x^2 - {[$x]} \right) + \ln \left( {[$t]} \right) = \ln \left( {[$k]} \right) ``] -[_____________________]{$x1} [@ AnswerFormatHelp("numbers") @]* +[_____________________]{$x1} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_47.pg b/Contrib/CCCS/PreCalculus/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_47.pg index a47b5fac76..2d71748ce5 100644 --- a/Contrib/CCCS/PreCalculus/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_47.pg +++ b/Contrib/CCCS/PreCalculus/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_47.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -68,14 +68,14 @@ Context()->strings->add( BEGIN_PGML -Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". +Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". If there is more than one solution, enter the answers as a comma-separated list. [`` \ln \left( {[$u]} \right) + \ln \left( {[$v]} - {[$w]} x^2 \right) = \ln \left( {[$C]} \right) ``] -[____________________]{$x1} [@ AnswerFormatHelp("numbers") @]* +[____________________]{$x1} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_49.pg b/Contrib/CCCS/PreCalculus/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_49.pg index e708359090..e1a5351c19 100644 --- a/Contrib/CCCS/PreCalculus/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_49.pg +++ b/Contrib/CCCS/PreCalculus/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_49.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -66,14 +66,14 @@ if ($u - $v * $x1 <= 0) { BEGIN_PGML -Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". +Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". If there is more than one solution, enter the answers as a comma-separated list. [`` \ln \left( {[$t]} \right) - \ln \left( {[$u]} - {[$v]} x \right) = \ln \left( {[$w]} \right) ``] -[____________________]{$x1} [@ AnswerFormatHelp("numbers") @]* +[____________________]{$x1} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_5.pg b/Contrib/CCCS/PreCalculus/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_5.pg index de5626c249..2f4c3adda0 100644 --- a/Contrib/CCCS/PreCalculus/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_5.pg +++ b/Contrib/CCCS/PreCalculus/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_5.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -46,7 +46,7 @@ BEGIN_PGML Use like bases to solve the exponential equation [`[$b] \cdot [$a]^{[$d]x} = [$c]`]. -[`x=`] [________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_57.pg b/Contrib/CCCS/PreCalculus/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_57.pg index 4c8e7b609f..7eec9edbb0 100644 --- a/Contrib/CCCS/PreCalculus/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_57.pg +++ b/Contrib/CCCS/PreCalculus/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_57.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -58,14 +58,14 @@ $x1 = (exp($v - $w) + $u) / $t; BEGIN_PGML -Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". +Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". If there is more than one solution, enter the answers as a comma-separated list. [`` \ln \left( {[$t]} x - {[$u]} \right) - {[$v]} = - {[$w]} ``] -[____________________]{$x1} [@ AnswerFormatHelp("numbers") @]* +[____________________]{$x1} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_67.pg b/Contrib/CCCS/PreCalculus/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_67.pg index 9da29a15b3..4748c4528d 100644 --- a/Contrib/CCCS/PreCalculus/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_67.pg +++ b/Contrib/CCCS/PreCalculus/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_67.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -59,13 +59,13 @@ Let [`P(t)`] be the population of a certain city in Colorado. Suppose that this [``P(t) = {[$u]} \, e^{ {[$v]} t},``] -where [`t`] is time in years. In how many years will the city's population reach [`{[$population]} {,} 000`]? +where [`t`] is time in years. In how many years will the city's population reach [`{[$population]} {,} 000`]? Round your answer to the nearest whole number. [_____________________]{$x1} years -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_8.pg b/Contrib/CCCS/PreCalculus/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_8.pg index 8916e700c9..41cf00087a 100644 --- a/Contrib/CCCS/PreCalculus/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_8.pg +++ b/Contrib/CCCS/PreCalculus/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_8.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -46,7 +46,7 @@ BEGIN_PGML Use like bases to solve the exponential equation [`[$c] \cdot [$a]^{[$d]x+[$d]} = [$b]`]. -[________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_11.pg b/Contrib/CCCS/PreCalculus/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_11.pg index 75b69404a2..441e595dd9 100644 --- a/Contrib/CCCS/PreCalculus/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_11.pg +++ b/Contrib/CCCS/PreCalculus/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_11.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -44,7 +44,7 @@ BEGIN_PGML Use logarithms to solve [` [$b]^{x-[$a]}=1 `]. If there is more than one solution, enter them as a comma separated list. If there is no solution, enter "NONE". -[________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_12.pg b/Contrib/CCCS/PreCalculus/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_12.pg index ac332f6675..208aedb26a 100644 --- a/Contrib/CCCS/PreCalculus/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_12.pg +++ b/Contrib/CCCS/PreCalculus/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_12.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -39,8 +39,8 @@ do { $c = random(2,6,1); } until ( $c != $a ) and ($c != $b); $ans=List(" 1/$c*ln($b/$a) "); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -53,10 +53,10 @@ BEGIN_PGML Use logarithms to solve [` [$a] e^{[$c]*x}=[$b] `]. If there is more than one solution, enter them as a comma separated list. If there is no solution, enter "NONE". -[`x=`] [________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [________]{$ans} [@ helpLink("numbers") @]* -[$video]* +[$video]* END_PGML BEGIN_TEXT diff --git a/Contrib/CCCS/PreCalculus/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_31.pg b/Contrib/CCCS/PreCalculus/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_31.pg index 82ef252db2..701c1d768b 100644 --- a/Contrib/CCCS/PreCalculus/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_31.pg +++ b/Contrib/CCCS/PreCalculus/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_31.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -39,8 +39,8 @@ $c = 2*$a; $ans=List(" $b^2 "); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -52,7 +52,7 @@ BEGIN_PGML Solve [` [$a] \log_{[$b]}(x)=[$c] `]. If there is more than one solution, enter them as a comma separated list. If there is no solution, enter "NONE". -[________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[________]{$ans} [@ helpLink("numbers") @]* [$video]* diff --git a/Contrib/CCCS/PreCalculus/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_33.pg b/Contrib/CCCS/PreCalculus/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_33.pg index 023aa431c0..57706a1c72 100644 --- a/Contrib/CCCS/PreCalculus/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_33.pg +++ b/Contrib/CCCS/PreCalculus/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_33.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -46,7 +46,7 @@ BEGIN_PGML Solve [` [$a] + \log_{[$b]}([$c]*x)=[$d] `]. If there is more than one solution, enter them as a comma separated list. If there is no solution, enter "NONE". -[________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_37.pg b/Contrib/CCCS/PreCalculus/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_37.pg index 30644ce5b6..8a7e5a472b 100644 --- a/Contrib/CCCS/PreCalculus/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_37.pg +++ b/Contrib/CCCS/PreCalculus/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_37.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -47,7 +47,7 @@ BEGIN_PGML Solve [` \log_{[$b]}([$a]*x-[$c])= \log_{[$b]}([$d]-[$e]*x) `]. If there is more than one solution, enter them as a comma separated list. If there is no solution, enter "NONE". -[________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_45.pg b/Contrib/CCCS/PreCalculus/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_45.pg index cc98af73b4..b97353f2f4 100644 --- a/Contrib/CCCS/PreCalculus/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_45.pg +++ b/Contrib/CCCS/PreCalculus/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_45.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -40,7 +40,7 @@ BEGIN_PGML Solve [` \ln(x)+\ln(x-3)=\ln(7x) `]. If there is more than one solution, enter them as a comma separated list. If there is no solution, enter "NONE". -[________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_7.pg b/Contrib/CCCS/PreCalculus/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_7.pg index 0b0c8d56e5..baf3f55878 100644 --- a/Contrib/CCCS/PreCalculus/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_7.pg +++ b/Contrib/CCCS/PreCalculus/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_7.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -46,7 +46,7 @@ BEGIN_PGML Use like bases to solve the exponential equation [`\left(\frac{1}{[$b]}\right)^{[$d]*x} \cdot [$c]=[$a]^{[$e]}`]. -[________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/6.6/VideoJ.pg b/Contrib/CCCS/PreCalculus/6.6/VideoJ.pg index ae2b377d38..749e472bc9 100644 --- a/Contrib/CCCS/PreCalculus/6.6/VideoJ.pg +++ b/Contrib/CCCS/PreCalculus/6.6/VideoJ.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## KEYWORDS() @@ -25,7 +25,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -38,8 +38,8 @@ TEXT(beginproblem()); $ans=List("2,5"); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -51,14 +51,14 @@ BEGIN_PGML >> [$video]* << ->> YouTube video of Adam Forland, internet mathemagician, embedded using an iframe. << +>> YouTube video of Adam Forland, internet mathemagician, embedded using an iframe. << >> If the video does not work, [@ htmlLink("https://youtu.be/VqYBzt0pkPo","click here to go to YouTube directly.") @]* << #Video Quiz: Solve [` \ln(10)-\ln(7-x)=\ln(x)`]. If you have more than one solution, enter them as a comma separated list. -[`x = `] [_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`x = `] [_______________]{$ans} [@ helpLink("formulas") @]* diff --git a/Contrib/CCCS/PreCalculus/7.4_Rational_Equations/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_197.pg b/Contrib/CCCS/PreCalculus/7.4_Rational_Equations/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_197.pg index 571b642f83..c6f5139a0c 100644 --- a/Contrib/CCCS/PreCalculus/7.4_Rational_Equations/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_197.pg +++ b/Contrib/CCCS/PreCalculus/7.4_Rational_Equations/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_197.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "parserPopUp.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,14 +48,14 @@ if ($b-$a*$a == 0) {$ans1 = NONE; } elsif ( $ans==($b*$a)/($b-$a*$a)) {$ans1=($b*$a)/($b-$a*$a); -} +} $ans2=($ans1); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -69,7 +69,7 @@ Solve the rational equation. If there is more than one correct answer, enter a c [`\dfrac{1}{a}+\dfrac{[$a]}{[$b]}=\dfrac{1}{[$a]}`] -[`a =`] [_________________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +[`a =`] [_________________]{$ans2} [@ helpLink("numbers") @]* [$video]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/7.4_Rational_Equations/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_199.pg b/Contrib/CCCS/PreCalculus/7.4_Rational_Equations/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_199.pg index 0cb3bea264..1b7737947b 100644 --- a/Contrib/CCCS/PreCalculus/7.4_Rational_Equations/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_199.pg +++ b/Contrib/CCCS/PreCalculus/7.4_Rational_Equations/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_199.pg @@ -23,7 +23,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,7 +48,7 @@ if ($a*$a+$b== 0) {$ans1 = NONE; } elsif ( $ans=($a*$b*$c)/($a*$a+$b)) {$ans1=($a*$b*$c)/($a*$a+$b); -} +} $ans2=($ans1); @@ -60,9 +60,9 @@ BEGIN_PGML Solve the rational equation. If there is more than one correct answer, enter a comma separated list. If there is no answer, enter "NONE". -[`\dfrac{[$a]}{[$b]}+\dfrac{1}{[$a]}=\dfrac{[$c]}{v}`] +[`\dfrac{[$a]}{[$b]}+\dfrac{1}{[$a]}=\dfrac{[$c]}{v}`] -[`v=`] [_________________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +[`v=`] [_________________]{$ans2} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/7.4_Rational_Equations/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_203.pg b/Contrib/CCCS/PreCalculus/7.4_Rational_Equations/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_203.pg index a021c53ec6..3920ca774a 100644 --- a/Contrib/CCCS/PreCalculus/7.4_Rational_Equations/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_203.pg +++ b/Contrib/CCCS/PreCalculus/7.4_Rational_Equations/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_203.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,7 +51,7 @@ Solve the rational equation. If there is more than one correct answer, enter a 1+[`\dfrac{[$c]}{p}=-\dfrac{[$d]}{p^2}`] -[`p=`] [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`p=`] [_________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/7.4_Rational_Equations/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_209.pg b/Contrib/CCCS/PreCalculus/7.4_Rational_Equations/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_209.pg index d50abcbe2e..f3589150e8 100644 --- a/Contrib/CCCS/PreCalculus/7.4_Rational_Equations/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_209.pg +++ b/Contrib/CCCS/PreCalculus/7.4_Rational_Equations/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_209.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -45,7 +45,7 @@ $ans=(5-$a*$c-$b*$c)/($a-$b); if ($ans == -$c) {$ans1 = NONE; -} +} elsif ($ans == $c) {$ans1 = NONE; } @@ -56,8 +56,8 @@ elsif ( $ans=(5-$a*$c-$b*$c)/($a-$b)) {$ans1=(5-$a*$c-$b*$c)/($a-$b); $ans2=($ans1); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -67,12 +67,12 @@ TeX => BEGIN_PGML -Solve the rational equation. If there is more than one correct answer, enter a comma separated list. If there is no answer, enter "NONE". +Solve the rational equation. If there is more than one correct answer, enter a comma separated list. If there is no answer, enter "NONE". [`\dfrac{[$a]}{z-[$c]}-\dfrac{[$b]}{z+[$c]}=\dfrac{5}{z^2-[$d]}`] -[`z=`] [_________________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +[`z=`] [_________________]{$ans2} [@ helpLink("numbers") @]* [$video]* diff --git a/Contrib/CCCS/PreCalculus/7.4_Rational_Equations/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_213.pg b/Contrib/CCCS/PreCalculus/7.4_Rational_Equations/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_213.pg index 924f4c00d5..08094b9d3f 100644 --- a/Contrib/CCCS/PreCalculus/7.4_Rational_Equations/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_213.pg +++ b/Contrib/CCCS/PreCalculus/7.4_Rational_Equations/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_213.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,13 +48,13 @@ $g= $b*$c; $ans=($a-$d*$c+$e*$b)/(1-$d+$e); if ($ans == $c) {$ans1 = NONE; -} +} elsif ($ans == $b) {$ans1 = NONE; } elsif ( $ans ==($a-$d*$c+$e*$b)/(1-$d+$e)) {$ans1=($a-$d*$c+$e*$b)/(1-$d+$e); -} +} $ans2=($ans1); @@ -64,14 +64,14 @@ $ans2=($ans1); BEGIN_PGML -Solve the rational equation. If there is more than one correct answer, enter a comma separated list. If there is no answer, enter "NONE". +Solve the rational equation. If there is more than one correct answer, enter a comma separated list. If there is no answer, enter "NONE". [`\dfrac{v-[$a]}{v^2-[$f]*v+[$g]} = \dfrac{[$d]}{v-[$b]} - \dfrac{[$e]}{v-[$c]}`] -[`v=`] [_________________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +[`v=`] [_________________]{$ans2} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/7.4_Rational_Equations/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_217.pg b/Contrib/CCCS/PreCalculus/7.4_Rational_Equations/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_217.pg index b15ee62a58..3c2d3c6842 100644 --- a/Contrib/CCCS/PreCalculus/7.4_Rational_Equations/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_217.pg +++ b/Contrib/CCCS/PreCalculus/7.4_Rational_Equations/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_217.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -49,11 +49,11 @@ BEGIN_PGML Solve the rational equation. If there is more than one correct answer, enter a comma separated list. If there is no answer, enter "NONE". -[`\dfrac{b+[$a]}{[$a]b}+\dfrac{b}{[$c]}=\dfrac{1}{b}`] +[`\dfrac{b+[$a]}{[$a]b}+\dfrac{b}{[$c]}=\dfrac{1}{b}`] -[`b=`] [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`b=`] [_________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/7.4_Rational_Equations/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_219.pg b/Contrib/CCCS/PreCalculus/7.4_Rational_Equations/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_219.pg index 1084cb46e6..f38fd7feed 100644 --- a/Contrib/CCCS/PreCalculus/7.4_Rational_Equations/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_219.pg +++ b/Contrib/CCCS/PreCalculus/7.4_Rational_Equations/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_219.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -39,35 +39,35 @@ $chooser=random(1,5,1); if ( $chooser ==1) {$eqn=Formula("x/(x+6)-(180)/(x^2-36)-7"); -} +} elsif ( $chooser ==2) {$eqn=Formula("x/(x+3)-(18)/(x^2-9)-4"); -} +} elsif ( $chooser ==3) {$eqn=Formula("x/(x+5)-(50)/(x^2-25)-6"); -} +} elsif ( $chooser ==4) {$eqn=Formula("x/(x+5)+(130)/(x^2-25)-6"); -} +} elsif ( $chooser ==5) {$eqn=Formula("x/(x-4)-(18)/(x^2-16)-3"); -} +} if ( $chooser ==1) {$ans=List(-4,3); -} +} elsif ( $chooser ==2) {$ans=2; -} +} elsif ( $chooser ==3) {$ans=4; -} +} elsif ( $chooser ==4) {$ans=List(7,-8); -} +} elsif ( $chooser ==5) {$ans=List(-3,5); -} +} @@ -82,7 +82,7 @@ Solve the rational equation. If there is more than one correct answer, enter a -[`x =`] [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x =`] [_________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/7.4_Rational_Equations/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_235.pg b/Contrib/CCCS/PreCalculus/7.4_Rational_Equations/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_235.pg index 785b4c0363..19cb93a134 100644 --- a/Contrib/CCCS/PreCalculus/7.4_Rational_Equations/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_235.pg +++ b/Contrib/CCCS/PreCalculus/7.4_Rational_Equations/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_235.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -43,26 +43,26 @@ Context("Numeric"); $chooser=random(1,2,1); if ( $chooser ==1) {$eqn1=Formula("C/r"); -} +} elsif ( $chooser ==2) {$eqn1=Formula("I/r"); -} +} if ( $chooser ==1) {$eqn2=Formula("2*pi"); -} +} elsif ( $chooser ==2) {$eqn2=Formula("P"); -} +} if ( $chooser ==1) {$ans=Formula("C/(2*pi)"); -} +} elsif ( $chooser ==2) {$ans=Formula("I/P"); -} +} @@ -79,7 +79,7 @@ Solve the following equation for [`r`]. -[`r=`] [_________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`r=`] [_________________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/7.4_Rational_Equations/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_239.pg b/Contrib/CCCS/PreCalculus/7.4_Rational_Equations/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_239.pg index bf9418d5cc..d0d6943ba2 100644 --- a/Contrib/CCCS/PreCalculus/7.4_Rational_Equations/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_239.pg +++ b/Contrib/CCCS/PreCalculus/7.4_Rational_Equations/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_239.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "PGcourse.pl", @@ -44,45 +44,45 @@ Context("Numeric"); $chooser=random(1,4,1); if ( $chooser ==1) {$eqn1=Formula("c"); -} +} elsif ( $chooser ==2) {$eqn1=Formula("(b+3)/(w-2)"); -} +} elsif ( $chooser ==3) {$eqn1=Formula("(a+3)/(w-1)"); -} +} elsif ( $chooser ==4) {$eqn1=Formula("(a+5)/(2-w)"); -} +} if ( $chooser ==1) {$eqn2=Formula("w/(2-w)"); -} +} elsif ( $chooser ==2) {$eqn2=Formula("a"); -} +} elsif ( $chooser ==3) {$eqn2=("1/2"); -} +} elsif ( $chooser ==4) {$eqn2=("4/3"); -} +} if ( $chooser ==1) {$ans=Formula("2c/(c+1)"); -} +} elsif ( $chooser ==2) {$ans=Formula("(b+3+2a)/a"); -} +} elsif ( $chooser ==3) {$ans=Formula("2a+7"); -} +} elsif ( $chooser ==4) {$ans=Formula("(3a+7)/-4"); -} +} @@ -99,7 +99,7 @@ Solve the following equation for [`w`]. -[`w=`] [_________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`w=`] [_________________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/7.4_Rational_Equations/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_241.pg b/Contrib/CCCS/PreCalculus/7.4_Rational_Equations/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_241.pg index 264d975763..a11aff7939 100644 --- a/Contrib/CCCS/PreCalculus/7.4_Rational_Equations/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_241.pg +++ b/Contrib/CCCS/PreCalculus/7.4_Rational_Equations/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_241.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "PGcourse.pl", @@ -40,52 +40,52 @@ Context("Numeric"); $chooser=random(1,5,1); if ( $chooser ==1) {$eqn1=Formula("1/p+2/q"); -} +} elsif ( $chooser ==2) {$eqn1=Formula("3/p+1/q"); -} +} elsif ( $chooser ==3) {$eqn1=("2/q+1/5"); -} +} elsif ( $chooser ==4) {$eqn1=("6/q+2/3"); -} +} elsif ( $chooser ==5) {$eqn1=Formula("(q+3)/(p-2)"); -} +} if ( $chooser ==1) {$eqn2=("4"); -} +} elsif ( $chooser ==2) {$eqn2=("2"); -} +} elsif ( $chooser ==3) {$eqn2=Formula("3/p"); -} +} elsif ( $chooser ==4) {$eqn2=Formula("1/p"); -} +} elsif ( $chooser ==5) {$eqn2=("4/5"); -} +} if ( $chooser ==1) {$ans=Formula("q/(4q-2)"); -} +} elsif ( $chooser ==2) {$ans=Formula("3q/(2q-1)"); -} +} elsif ( $chooser ==3) {$ans=Formula("15q/(10+q)"); -} +} elsif ( $chooser ==4) {$ans=Formula("3q/(18+2q)"); -} +} elsif ( $chooser ==5) {$ans=Formula("(5q+23)/4"); -} +} @@ -101,7 +101,7 @@ Solve the following equation for [`p`]. -[`p=`] [_________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`p=`] [_________________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/7.6_Rational_Inequialities/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_339.pg b/Contrib/CCCS/PreCalculus/7.6_Rational_Inequialities/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_339.pg index 4900a11486..0b3b6012a2 100644 --- a/Contrib/CCCS/PreCalculus/7.6_Rational_Inequialities/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_339.pg +++ b/Contrib/CCCS/PreCalculus/7.6_Rational_Inequialities/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_339.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,23 +50,23 @@ else { $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); ########################### # Main text -if ($a == 1) +if ($a == 1) { BEGIN_PGML -Solve the rational inequality. Enter the answer in interval notation. +Solve the rational inequality. Enter the answer in interval notation. [`` \dfrac{x - {[$u]}}{x + {[$v]}} \ge 0 ``] - [_______________]{$x1} [@ AnswerFormatHelp("intervals") @]* + [_______________]{$x1} [@ helpLink("intervals") @]* [$video]* END_PGML @@ -84,11 +84,11 @@ else { BEGIN_PGML -Solve the rational inequality. Enter the answer in interval notation. +Solve the rational inequality. Enter the answer in interval notation. [`` \dfrac{x + {[$u]}}{x - {[$v]}} \ge 0 ``] - [_______________]{$x1} [@ AnswerFormatHelp("intervals") @]* + [_______________]{$x1} [@ helpLink("intervals") @]* [$video]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/7.6_Rational_Inequialities/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_343.pg b/Contrib/CCCS/PreCalculus/7.6_Rational_Inequialities/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_343.pg index 625ce74db5..23930608b5 100644 --- a/Contrib/CCCS/PreCalculus/7.6_Rational_Inequialities/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_343.pg +++ b/Contrib/CCCS/PreCalculus/7.6_Rational_Inequialities/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_343.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -60,15 +60,15 @@ else { ########################### # Main text -if ($a == 1) +if ($a == 1) { BEGIN_PGML -Solve the rational inequality. Enter the answer in interval notation. +Solve the rational inequality. Enter the answer in interval notation. [`` \dfrac{x - {[$u]}}{x - {[$v]}} > 0 ``] - [_______________]{$x1} [@ AnswerFormatHelp("intervals") @]* + [_______________]{$x1} [@ helpLink("intervals") @]* END_PGML } @@ -76,11 +76,11 @@ else { BEGIN_PGML -Solve the rational inequality. Enter the answer in interval notation. +Solve the rational inequality. Enter the answer in interval notation. [`` \dfrac{x + {[$u]}}{x + {[$v]}} > 0 ``] - [_______________]{$x1} [@ AnswerFormatHelp("numbers") @]* + [_______________]{$x1} [@ helpLink("numbers") @]* END_PGML } diff --git a/Contrib/CCCS/PreCalculus/7.6_Rational_Inequialities/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_347.pg b/Contrib/CCCS/PreCalculus/7.6_Rational_Inequialities/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_347.pg index da072a5e60..88c61de0a5 100644 --- a/Contrib/CCCS/PreCalculus/7.6_Rational_Inequialities/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_347.pg +++ b/Contrib/CCCS/PreCalculus/7.6_Rational_Inequialities/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_347.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -53,7 +53,7 @@ else { } if ($a == 1) { - # c2 is always less than c1 here + # c2 is always less than c1 here $x1 = Interval("($c2,$c1)"); } else { @@ -71,15 +71,15 @@ else { $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); ########################### # Main text -if ($a == 1) +if ($a == 1) { BEGIN_PGML @@ -87,7 +87,7 @@ Solve the rational inequality. Enter the answer in interval notation. [`` \dfrac{{[$u]}x}{x - {[$v]}} < {[$w]} ``] - [_______________]{$x1} [@ AnswerFormatHelp("numbers") @]* + [_______________]{$x1} [@ helpLink("numbers") @]* [$video]* END_PGML @@ -107,7 +107,7 @@ Solve the rational inequality. Enter the answer in interval notation. [`` \dfrac{{[$u]}x}{x - {[$v]}} < -{[$w]} ``] - [_______________]{$x1} [@ AnswerFormatHelp("intervals") @]* + [_______________]{$x1} [@ helpLink("intervals") @]* [$video]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/7.6_Rational_Inequialities/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_349.pg b/Contrib/CCCS/PreCalculus/7.6_Rational_Inequialities/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_349.pg index 530a1e84fe..f538da5175 100644 --- a/Contrib/CCCS/PreCalculus/7.6_Rational_Inequialities/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_349.pg +++ b/Contrib/CCCS/PreCalculus/7.6_Rational_Inequialities/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_349.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -63,11 +63,11 @@ else { Context("Interval"); $x1 = Union("(-inf,$min)U($max,inf)"); - + ########################### # Main text -if ($a == 1) +if ($a == 1) { BEGIN_PGML @@ -75,7 +75,7 @@ Solve the rational inequality. Enter the answer in interval notation. [`` \dfrac{{[$u]}x}{x - {[$v]}} > {[$w]} ``] - [_______________]{$x1} [@ AnswerFormatHelp("intervals") @]* + [_______________]{$x1} [@ helpLink("intervals") @]* END_PGML } @@ -86,7 +86,7 @@ Solve the rational inequality. Enter the answer in interval notation. [`` \dfrac{{[$u]}x}{x - {[$v]}} > -{[$w]} ``] - [_______________]{$x1} [@ AnswerFormatHelp("intervals") @]* + [_______________]{$x1} [@ helpLink("intervals") @]* END_PGML } diff --git a/Contrib/CCCS/PreCalculus/7.6_Rational_Inequialities/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_352.pg b/Contrib/CCCS/PreCalculus/7.6_Rational_Inequialities/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_352.pg index 23d7f433a1..512e1f1114 100644 --- a/Contrib/CCCS/PreCalculus/7.6_Rational_Inequialities/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_352.pg +++ b/Contrib/CCCS/PreCalculus/7.6_Rational_Inequialities/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_352.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -60,11 +60,11 @@ if ($c1 < $c2) { else { $x1 = Interval("[$c2,$c1)"); } - + ########################### # Main text -if ($a == 1) +if ($a == 1) { BEGIN_PGML @@ -72,7 +72,7 @@ Solve the rational inequality. Enter the answer in interval notation. [`` \dfrac{{[$t]}x - {[$u]}}{x - {[$v]}} \le {[$w]} ``] - [_______________]{$x1} [@ AnswerFormatHelp("intervals") @]* + [_______________]{$x1} [@ helpLink("intervals") @]* END_PGML } @@ -84,7 +84,7 @@ Solve the rational inequality. Enter the answer in interval notation. [`` \dfrac{{[$t]}x - {[$u]}}{x - {[$v]}} \le -{[$w]} ``] - [_______________]{$x1} [@ AnswerFormatHelp("numbers") @]* + [_______________]{$x1} [@ helpLink("numbers") @]* END_PGML } diff --git a/Contrib/CCCS/PreCalculus/7.6_Rational_Inequialities/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_354.pg b/Contrib/CCCS/PreCalculus/7.6_Rational_Inequialities/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_354.pg index 95c40b0ae1..d1675efc72 100644 --- a/Contrib/CCCS/PreCalculus/7.6_Rational_Inequialities/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_354.pg +++ b/Contrib/CCCS/PreCalculus/7.6_Rational_Inequialities/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_354.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -62,11 +62,11 @@ if ($c1 < $c2) { else { $x1 = Union("(-inf,$c2]U($c1,inf)"); } - + ########################### # Main text -if ($a == 1) +if ($a == 1) { BEGIN_PGML @@ -74,7 +74,7 @@ Solve the rational inequality. Enter the answer in interval notation. [`` \dfrac{{[$t]}x - {[$u]}}{x - {[$v]}} \ge {[$w]} ``] - [_______________]{$x1} [@ AnswerFormatHelp("intervals") @]* + [_______________]{$x1} [@ helpLink("intervals") @]* END_PGML } @@ -86,7 +86,7 @@ Solve the rational inequality. Enter the answer in interval notation. [`` \dfrac{{[$t]}x - {[$u]}}{x - {[$v]}} \ge -{[$w]} ``] - [_______________]{$x1} [@ AnswerFormatHelp("intervals") @]* + [_______________]{$x1} [@ helpLink("intervals") @]* END_PGML } diff --git a/Contrib/CCCS/PreCalculus/7.6_Rational_Inequialities/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_357.pg b/Contrib/CCCS/PreCalculus/7.6_Rational_Inequialities/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_357.pg index 793a7eb4c3..d987b0b7aa 100644 --- a/Contrib/CCCS/PreCalculus/7.6_Rational_Inequialities/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_357.pg +++ b/Contrib/CCCS/PreCalculus/7.6_Rational_Inequialities/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_357.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -39,7 +39,7 @@ $a = random(1,2); # different forms of problem $u = random(1,6); $v = random(1,10); -do{ $w = random(1,10); } until ($w != $v); +do{ $w = random(1,10); } until ($w != $v); # Solutions Context("Interval"); @@ -63,7 +63,7 @@ else { ########################### # Main text -if ($a == 1) +if ($a == 1) { BEGIN_PGML @@ -71,7 +71,7 @@ Solve the rational inequality. Enter the answer in interval notation. [`` \dfrac{{[$u]}} {x^2 - {[$v+$w]} x + {[$v*$w]}} < 0 ``] - [_______________]{$x1} [@ AnswerFormatHelp("interval") @]* + [_______________]{$x1} [@ helpLink("interval") @]* END_PGML } @@ -79,11 +79,11 @@ else { BEGIN_PGML -Solve the rational inequality. Enter the answer in interval notation. +Solve the rational inequality. Enter the answer in interval notation. [`` \dfrac{{[$u]}} {x^2 + {[$v+$w]} x + {[$v*$w]}} < 0 ``] - [_______________]{$x1} [@ AnswerFormatHelp("interval") @]* + [_______________]{$x1} [@ helpLink("interval") @]* END_PGML } diff --git a/Contrib/CCCS/PreCalculus/7.6_Rational_Inequialities/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_365.pg b/Contrib/CCCS/PreCalculus/7.6_Rational_Inequialities/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_365.pg index eaf3f1e2eb..33f45338fb 100644 --- a/Contrib/CCCS/PreCalculus/7.6_Rational_Inequialities/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_365.pg +++ b/Contrib/CCCS/PreCalculus/7.6_Rational_Inequialities/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_365.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -58,7 +58,7 @@ $x1 = Union($i1,$i2); ########################### # Main text -if ($problem_type == 1) +if ($problem_type == 1) { BEGIN_PGML @@ -66,7 +66,7 @@ Solve the rational inequality. Enter the answer in interval notation. [`` \dfrac{1}{{[$w]}} - \dfrac{ {[$a*$b*$w]} }{x^2} \le \dfrac{ {[$a - $b]} }{x} ``] - [_______________]{$x1} [@ AnswerFormatHelp("interval") @]* + [_______________]{$x1} [@ helpLink("interval") @]* END_PGML } @@ -78,7 +78,7 @@ Solve the rational inequality. Enter the answer in interval notation. [`` \dfrac{1}{{[$w]}} - \dfrac{ {[$a*$b*$w]} }{x^2} \le -\dfrac{ {[$b - $a]} }{x} ``] - [_______________]{$x1} [@ AnswerFormatHelp("interval") @]* + [_______________]{$x1} [@ helpLink("interval") @]* END_PGML } diff --git a/Contrib/CCCS/PreCalculus/Circles/CCD_CCCS_Circles_6.pg b/Contrib/CCCS/PreCalculus/Circles/CCD_CCCS_Circles_6.pg index 9dcdda36ba..28fac1fdd7 100644 --- a/Contrib/CCCS/PreCalculus/Circles/CCD_CCCS_Circles_6.pg +++ b/Contrib/CCCS/PreCalculus/Circles/CCD_CCCS_Circles_6.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Cartesian coordinate system) ## DBsection(Circles) @@ -11,17 +11,17 @@ ## Author(James Morski) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,10 +29,10 @@ loadMacros( "PGML.pl", "PGcourse.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -50,27 +50,27 @@ $radius = sqrt($radicand); Context("LimitedPoint"); $center=Point("( ($a/2),($b/2) )"); - - - + + + ########################### # Main text - + BEGIN_PGML -Find the radius and the center of the circle with the given equation [`[$equation]=0`]. - -Radius:[_______________]{$radius}[@ AnswerFormatHelp("numbers") @]* - -Center:[_______________]{$center}[@ AnswerFormatHelp("points") @]* +Find the radius and the center of the circle with the given equation [`[$equation]=0`]. + +Radius:[_______________]{$radius}[@ helpLink("numbers") @]* + +Center:[_______________]{$center}[@ helpLink("points") @]* + - END_PGML - - - + + + ############################ #Answers @@ -78,11 +78,11 @@ $showPartialCorrectAnswers = 0; install_problem_grader(~~&std_problem_grader); # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/PreCalculus/Circles/CCD_CCCS_Circles_7.pg b/Contrib/CCCS/PreCalculus/Circles/CCD_CCCS_Circles_7.pg index 789781bdd0..db6046fcf0 100644 --- a/Contrib/CCCS/PreCalculus/Circles/CCD_CCCS_Circles_7.pg +++ b/Contrib/CCCS/PreCalculus/Circles/CCD_CCCS_Circles_7.pg @@ -1,7 +1,7 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - + ## DBsubject(Algebra) ## DBchapter(Cartesian coordinate system) ## DBsection(Circles) @@ -10,17 +10,17 @@ ## Author(James Morski) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -28,10 +28,10 @@ loadMacros( "PGML.pl", "PGcourse.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -49,27 +49,27 @@ $radius = sqrt($radicand); Context("LimitedPoint"); $center=Point("( (-$a/2),($b/2) )"); - - - + + + ########################### # Main text - + BEGIN_PGML -Find the radius and the center of the circle with the given equation [`[$equation]=0`]. - -Radius:[_______________]{$radius}[@ AnswerFormatHelp("numbers") @]* - -Center:[_______________]{$center}[@ AnswerFormatHelp("points") @]* +Find the radius and the center of the circle with the given equation [`[$equation]=0`]. + +Radius:[_______________]{$radius}[@ helpLink("numbers") @]* + +Center:[_______________]{$center}[@ helpLink("points") @]* + - END_PGML - - - + + + ############################ #Answers @@ -77,11 +77,11 @@ $showPartialCorrectAnswers = 0; install_problem_grader(~~&std_problem_grader); # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/PreCalculus/Circles/CCD_CCCS_Circles_8.pg b/Contrib/CCCS/PreCalculus/Circles/CCD_CCCS_Circles_8.pg index 1b70dc5b97..11004c75b4 100644 --- a/Contrib/CCCS/PreCalculus/Circles/CCD_CCCS_Circles_8.pg +++ b/Contrib/CCCS/PreCalculus/Circles/CCD_CCCS_Circles_8.pg @@ -1,7 +1,7 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - + ## DBsubject(Algebra) ## DBchapter(Cartesian coordinate system) ## DBsection(Circles) @@ -10,17 +10,17 @@ ## Author(James Morski) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -28,10 +28,10 @@ loadMacros( "PGML.pl", "PGcourse.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -49,27 +49,27 @@ $radius = sqrt($radicand); Context("LimitedPoint"); $center=Point("( ($a/2),($b/2) )"); - - - + + + ########################### # Main text - + BEGIN_PGML -Find the radius and the center of the circle with the given equation [`[$equation]=[$c]`]. - -Radius:[_______________]{$radius}[@ AnswerFormatHelp("numbers") @]* - -Center:[_______________]{$center}[@ AnswerFormatHelp("points") @]* +Find the radius and the center of the circle with the given equation [`[$equation]=[$c]`]. + +Radius:[_______________]{$radius}[@ helpLink("numbers") @]* + +Center:[_______________]{$center}[@ helpLink("points") @]* + - END_PGML - - - + + + ############################ #Answers @@ -77,11 +77,11 @@ $showPartialCorrectAnswers = 0; install_problem_grader(~~&std_problem_grader); # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/PreCalculus/Circles/RRCC_CCCS_Circles_1.pg b/Contrib/CCCS/PreCalculus/Circles/RRCC_CCCS_Circles_1.pg index 9b45f6d003..c9d78c2de6 100644 --- a/Contrib/CCCS/PreCalculus/Circles/RRCC_CCCS_Circles_1.pg +++ b/Contrib/CCCS/PreCalculus/Circles/RRCC_CCCS_Circles_1.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -47,8 +47,8 @@ Context("LimitedPoint"); $cen = Point("($h,$k)"); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -58,12 +58,12 @@ TeX => # Main text BEGIN_PGML -Find the center and radius of the following circle. Enter the center as an ordered pair. +Find the center and radius of the following circle. Enter the center as an ordered pair. >>[`` [$f]=[$r2] ``]<< -+ center: [______]{$cen} [@ AnswerFormatHelp("points") @]* ++ center: [______]{$cen} [@ helpLink("points") @]* -+ radius: [___]{$r} [@ AnswerFormatHelp("numbers") @]* ++ radius: [___]{$r} [@ helpLink("numbers") @]* [$video]* diff --git a/Contrib/CCCS/PreCalculus/Circles/RRCC_CCCS_Circles_2.pg b/Contrib/CCCS/PreCalculus/Circles/RRCC_CCCS_Circles_2.pg index 722aab5ed4..a22b7839aa 100644 --- a/Contrib/CCCS/PreCalculus/Circles/RRCC_CCCS_Circles_2.pg +++ b/Contrib/CCCS/PreCalculus/Circles/RRCC_CCCS_Circles_2.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -50,12 +50,12 @@ $cen = Point("(0,$k)"); # Main text BEGIN_PGML -Find the center and radius of the following circle. Enter the center as an ordered pair. +Find the center and radius of the following circle. Enter the center as an ordered pair. >>[`` [$f]=[$r2] ``]<< -+ center: [______]{$cen} [@ AnswerFormatHelp("points") @]* ++ center: [______]{$cen} [@ helpLink("points") @]* -+ radius: [___]{$r} [@ AnswerFormatHelp("numbers") @]* ++ radius: [___]{$r} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/Circles/RRCC_CCCS_Circles_3.pg b/Contrib/CCCS/PreCalculus/Circles/RRCC_CCCS_Circles_3.pg index 185f1e4ac1..6e027f2c9c 100644 --- a/Contrib/CCCS/PreCalculus/Circles/RRCC_CCCS_Circles_3.pg +++ b/Contrib/CCCS/PreCalculus/Circles/RRCC_CCCS_Circles_3.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Cartesian coordinate system) ## DBsection(Circles) @@ -11,17 +11,17 @@ ## Author(Brenda Forland) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,10 +29,10 @@ loadMacros( "PGML.pl", "PGcourse.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -47,26 +47,26 @@ $r2 = ($r)**2; # The two sides of the correct answer $ans1=Formula("(x-$h)^2+(y-$k)^2")->reduce; $ans2=Formula("$r2"); - - + + ########################### # Main text - + BEGIN_PGML -Find the equation for the circle with center [` ([$h],[$k]) `] and radius of length [` [$r] `]. - - [____________][`=`] [__________] [@ AnswerFormatHelp("numbers") @]* - +Find the equation for the circle with center [` ([$h],[$k]) `] and radius of length [` [$r] `]. + + [____________][`=`] [__________] [@ helpLink("numbers") @]* + + - END_PGML - - - + + + ############################ #Answers @@ -74,18 +74,18 @@ $showPartialCorrectAnswers = 0; install_problem_grader(~~&std_problem_grader); -UNORDERED_ANS( -$ans1->cmp(), -$ans2->cmp(), +UNORDERED_ANS( +$ans1->cmp(), +$ans2->cmp(), ); # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/PreCalculus/Circles/RRCC_CCCS_Circles_4.pg b/Contrib/CCCS/PreCalculus/Circles/RRCC_CCCS_Circles_4.pg index a9babead7a..98d3bc8413 100644 --- a/Contrib/CCCS/PreCalculus/Circles/RRCC_CCCS_Circles_4.pg +++ b/Contrib/CCCS/PreCalculus/Circles/RRCC_CCCS_Circles_4.pg @@ -10,27 +10,27 @@ ## Author(Brenda Forland; EDIT: James Morski 8/30/2017) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "unorderedAnswer.pl", "PGML.pl", "PGcourse.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -45,25 +45,25 @@ $r2 = ($r/2)**2; # The two sides of the correct answer $ans1=Formula("(x-$h)^2+(y-$k)^2")->reduce; $ans2=Formula("$r2"); - - - + + + ########################### # Main text - + BEGIN_PGML -Find the equation for the circle with center [` ([$h],[$k]) `] and diameter of length [` [$r] `]. - - [______________] [`=`] [____________] [@ AnswerFormatHelp("numbers") @]* - +Find the equation for the circle with center [` ([$h],[$k]) `] and diameter of length [` [$r] `]. + + [______________] [`=`] [____________] [@ helpLink("numbers") @]* + + - END_PGML - - - + + + ############################ #Answers @@ -71,18 +71,18 @@ $showPartialCorrectAnswers = 0; install_problem_grader(~~&std_problem_grader); -UNORDERED_ANS( -$ans1->cmp(), -$ans2->cmp(), +UNORDERED_ANS( +$ans1->cmp(), +$ans2->cmp(), ); # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/PreCalculus/Circles/RRCC_CCCS_Circles_5.pg b/Contrib/CCCS/PreCalculus/Circles/RRCC_CCCS_Circles_5.pg index 0ac3dccb82..4f9364bfd7 100644 --- a/Contrib/CCCS/PreCalculus/Circles/RRCC_CCCS_Circles_5.pg +++ b/Contrib/CCCS/PreCalculus/Circles/RRCC_CCCS_Circles_5.pg @@ -1,7 +1,7 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - + ## DBsubject(Algebra) ## DBchapter(Cartesian coordinate system) ## DBsection(Circles) @@ -10,17 +10,17 @@ ## Author(Brenda Forland; EDIT: James Morsk 8/30/17) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -28,10 +28,10 @@ loadMacros( "PGML.pl", "PGcourse.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -49,26 +49,26 @@ $r2 = Compute("($a-$h)**2+($b-$k)**2"); # The two sides of the correct answer $ans1=Formula("(x-$h)^2+(y-$k)^2")->reduce; $ans2=Formula("$r2"); - - - + + + ########################### # Main text - + BEGIN_PGML -Find the equation for the circle with center [` ([$h],[$k]) `] and passes through [` ([$a],[$b]) `]. - - [_______________] [`=`] [_____________][@ AnswerFormatHelp("numbers") @]* - +Find the equation for the circle with center [` ([$h],[$k]) `] and passes through [` ([$a],[$b]) `]. + + [_______________] [`=`] [_____________][@ helpLink("numbers") @]* + + - END_PGML - - - + + + ############################ #Answers @@ -76,19 +76,19 @@ $showPartialCorrectAnswers = 0; install_problem_grader(~~&std_problem_grader); -UNORDERED_ANS( -$ans1->cmp(), -$ans2->cmp(), +UNORDERED_ANS( +$ans1->cmp(), +$ans2->cmp(), ); # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/PreCalculus/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_1.pg b/Contrib/CCCS/PreCalculus/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_1.pg index 1955297a50..b8783e4ace 100644 --- a/Contrib/CCCS/PreCalculus/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_1.pg +++ b/Contrib/CCCS/PreCalculus/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_1.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -37,7 +37,7 @@ $a = random(-4,4,1); $m = non_zero_random(-7,7,1); $b = random(-4,4,1); do {$c = non_zero_random(-7,7,1);} until($c != $m); -$d = $m*$a+$b-$c*$a; +$d = $m*$a+$b-$c*$a; $f=Formula("$m*x+$b")->reduce; @@ -48,8 +48,8 @@ Context("Interval"); if($m>$c){$ans=Compute("($a,infinity)");} else{$ans=Compute("(-infinity,$a)");} $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -60,7 +60,7 @@ BEGIN_PGML Solve [`` [$f] > [$g] ``]. Enter the solution in interval notation. -[_______________]{$ans} [@ AnswerFormatHelp("intervals") @]* +[_______________]{$ans} [@ helpLink("intervals") @]* [$video]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_10.pg b/Contrib/CCCS/PreCalculus/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_10.pg index 1c336fb47b..d67fafcdcf 100644 --- a/Contrib/CCCS/PreCalculus/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_10.pg +++ b/Contrib/CCCS/PreCalculus/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_10.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -46,7 +46,7 @@ $g=Formula("($c*$d)*x^2-($d*($a*$b+$b*$c))*x+$e")->reduce; Context("Interval"); $min = min($a,$b,$c); $max = max($a,$b,$c); -if($a != $max and $a != $min){$mid=$a;} +if($a != $max and $a != $min){$mid=$a;} else{ if($b != $max and $b != $min){$mid=$b;} else{$mid=$c}} if($d>0){$ans=Compute("[$min,$mid]U[$max,infinity)");} else{$ans=Compute("(-infinity,$min]U[$mid,$max]");} @@ -59,7 +59,7 @@ BEGIN_PGML Solve [`` [$f] \geq [$g] ``]. Enter the solution in interval notation. -[_______________]{$ans} [@ AnswerFormatHelp("intervals") @]* +[_______________]{$ans} [@ helpLink("intervals") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_2.pg b/Contrib/CCCS/PreCalculus/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_2.pg index a91ef838f7..ae5642d949 100644 --- a/Contrib/CCCS/PreCalculus/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_2.pg +++ b/Contrib/CCCS/PreCalculus/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_2.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -37,7 +37,7 @@ $a = random(-4,4,1); $m = non_zero_random(-7,7,1); $b = random(-4,4,1); do {$c = random(-7,7,1);} until ($c != $m); -$d = $m*$a+$b-$c*$a; +$d = $m*$a+$b-$c*$a; $f=Formula("$m*x+$b")->reduce; @@ -55,7 +55,7 @@ BEGIN_PGML Solve [`` [$f] \leq [$g] ``]. Enter the solution in interval notation. -[_______________]{$ans} [@ AnswerFormatHelp("intervals") @]* +[_______________]{$ans} [@ helpLink("intervals") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_3.pg b/Contrib/CCCS/PreCalculus/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_3.pg index 63db6fff71..56ae22dc3d 100644 --- a/Contrib/CCCS/PreCalculus/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_3.pg +++ b/Contrib/CCCS/PreCalculus/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_3.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,8 +48,8 @@ $max = max($a,$b); if($d>0){$ans=Compute("(-infinity,$min)U($max,infinity)");} else{$ans=Compute("($min,$max)");} $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -60,7 +60,7 @@ BEGIN_PGML Solve [`` [$f] < [$g] ``]. Enter the solution in interval notation. -[_______________]{$ans} [@ AnswerFormatHelp("intervals") @]* +[_______________]{$ans} [@ helpLink("intervals") @]* [$video]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_4.pg b/Contrib/CCCS/PreCalculus/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_4.pg index a57624be9e..fc1ed9d6b8 100644 --- a/Contrib/CCCS/PreCalculus/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_4.pg +++ b/Contrib/CCCS/PreCalculus/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_4.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -55,7 +55,7 @@ BEGIN_PGML Solve [`` [$g] \leq [$f] ``]. Enter the solution in interval notation. -[_______________]{$ans} [@ AnswerFormatHelp("intervals") @]* +[_______________]{$ans} [@ helpLink("intervals") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_5.pg b/Contrib/CCCS/PreCalculus/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_5.pg index bacf98da06..653d2ae536 100644 --- a/Contrib/CCCS/PreCalculus/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_5.pg +++ b/Contrib/CCCS/PreCalculus/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_5.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -55,7 +55,7 @@ BEGIN_PGML Solve [`` [$f] > [$g] ``]. Enter the solution in interval notation. -[_______________]{$ans} [@ AnswerFormatHelp("intervals") @]* +[_______________]{$ans} [@ helpLink("intervals") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_6.pg b/Contrib/CCCS/PreCalculus/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_6.pg index d0367af965..6f377d9d7d 100644 --- a/Contrib/CCCS/PreCalculus/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_6.pg +++ b/Contrib/CCCS/PreCalculus/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_6.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -56,7 +56,7 @@ BEGIN_PGML Solve [`` [$f] \leq [$g] ``]. Enter the solution in interval notation. -[_______________]{$ans} [@ AnswerFormatHelp("intervals") @]* +[_______________]{$ans} [@ helpLink("intervals") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_7.pg b/Contrib/CCCS/PreCalculus/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_7.pg index 8237094e37..f6e1b0e148 100644 --- a/Contrib/CCCS/PreCalculus/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_7.pg +++ b/Contrib/CCCS/PreCalculus/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_7.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -56,7 +56,7 @@ BEGIN_PGML Solve [`` [$f] > [$g] ``]. Enter the solution in interval notation. -[_______________]{$ans} [@ AnswerFormatHelp("intervals") @]* +[_______________]{$ans} [@ helpLink("intervals") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_8.pg b/Contrib/CCCS/PreCalculus/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_8.pg index 145c1f8a91..7e0ba9b2d7 100644 --- a/Contrib/CCCS/PreCalculus/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_8.pg +++ b/Contrib/CCCS/PreCalculus/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_8.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -56,7 +56,7 @@ BEGIN_PGML Solve [`` [$f] < [$g] ``]. Enter the solution in interval notation. -[_______________]{$ans} [@ AnswerFormatHelp("intervals") @]* +[_______________]{$ans} [@ helpLink("intervals") @]* END_PGML diff --git a/Contrib/CCCS/PreCalculus/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_9.pg b/Contrib/CCCS/PreCalculus/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_9.pg index 7600d758b2..5d9ff842bf 100644 --- a/Contrib/CCCS/PreCalculus/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_9.pg +++ b/Contrib/CCCS/PreCalculus/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_9.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -55,7 +55,7 @@ BEGIN_PGML Solve [`` [$f] \geq [$g] ``]. Enter the solution in interval notation. -[_______________]{$ans} [@ AnswerFormatHelp("intervals") @]* +[_______________]{$ans} [@ helpLink("intervals") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Algebraic_Expressions/Evaluate_1.pg b/Contrib/CCCS/QuantitativeLiteracy/Algebraic_Expressions/Evaluate_1.pg index 748e102197..fd41e5a681 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Algebraic_Expressions/Evaluate_1.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Algebraic_Expressions/Evaluate_1.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -54,7 +54,7 @@ BEGIN_PGML Evaluate the expression [`[$a]x+{y}^{[$b]}`] for [`x=[$c]`] and `y=[$d]`. -[`[$a]x+{y}^{[$b]}=`][_______________]{$ans} +[`[$a]x+{y}^{[$b]}=`][_______________]{$ans} END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Algebraic_Expressions/Evaluate_2.pg b/Contrib/CCCS/QuantitativeLiteracy/Algebraic_Expressions/Evaluate_2.pg index 6e5ed272d9..5421d630bb 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Algebraic_Expressions/Evaluate_2.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Algebraic_Expressions/Evaluate_2.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -59,7 +59,7 @@ BEGIN_PGML Evaluate the expression [`\dfrac{[$a]x+y}{[$b]y}`] for [`x=[$x]`] and [`y=[$y]`]. Give your answer as an integer or reduced fraction. -[`\dfrac{[$a]x+y}{[$b]y}=`][_______________]{$ans} +[`\dfrac{[$a]x+y}{[$b]y}=`][_______________]{$ans} END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Algebraic_Expressions/Simplify_Expressions_1.pg b/Contrib/CCCS/QuantitativeLiteracy/Algebraic_Expressions/Simplify_Expressions_1.pg index 8b7198d40e..a61ba283c7 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Algebraic_Expressions/Simplify_Expressions_1.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Algebraic_Expressions/Simplify_Expressions_1.pg @@ -20,7 +20,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", -"AnswerFormatHelp.pl", + "PCCmacros.pl", "contextFraction.pl", "contextLimitedPolynomial.pl", @@ -58,7 +58,7 @@ BEGIN_PGML Simplify the expression, [`` [$f] ``]. -[_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Algebraic_Expressions/Simplify_Expressions_10.pg b/Contrib/CCCS/QuantitativeLiteracy/Algebraic_Expressions/Simplify_Expressions_10.pg index 2ab411faca..810128bdec 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Algebraic_Expressions/Simplify_Expressions_10.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Algebraic_Expressions/Simplify_Expressions_10.pg @@ -20,7 +20,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", -"AnswerFormatHelp.pl", + "PCCmacros.pl", "contextFraction.pl", "contextLimitedPolynomial.pl", @@ -56,7 +56,7 @@ BEGIN_PGML Simplify the expression, [`` [$f] ``]. -[_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Algebraic_Expressions/Simplify_Expressions_11.pg b/Contrib/CCCS/QuantitativeLiteracy/Algebraic_Expressions/Simplify_Expressions_11.pg index 1871c118bc..2b47825315 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Algebraic_Expressions/Simplify_Expressions_11.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Algebraic_Expressions/Simplify_Expressions_11.pg @@ -20,7 +20,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", -"AnswerFormatHelp.pl", + "PCCmacros.pl", "contextFraction.pl", "contextLimitedPolynomial.pl", @@ -55,7 +55,7 @@ BEGIN_PGML Simplify the expression, [`` [$f] ``]. -[_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Algebraic_Expressions/Simplify_Expressions_12.pg b/Contrib/CCCS/QuantitativeLiteracy/Algebraic_Expressions/Simplify_Expressions_12.pg index d671a3f930..c6a1db4048 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Algebraic_Expressions/Simplify_Expressions_12.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Algebraic_Expressions/Simplify_Expressions_12.pg @@ -20,7 +20,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", -"AnswerFormatHelp.pl", + "PCCmacros.pl", "contextFraction.pl", "contextLimitedPolynomial.pl", @@ -65,7 +65,7 @@ BEGIN_PGML Simplify the expression, [`` [$f1] ``]. -[_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Algebraic_Expressions/Simplify_Expressions_13.pg b/Contrib/CCCS/QuantitativeLiteracy/Algebraic_Expressions/Simplify_Expressions_13.pg index 2fcd7515fc..0ded457f47 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Algebraic_Expressions/Simplify_Expressions_13.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Algebraic_Expressions/Simplify_Expressions_13.pg @@ -20,7 +20,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", -"AnswerFormatHelp.pl", + "PCCmacros.pl", "contextFraction.pl", "contextLimitedPolynomial.pl", @@ -60,7 +60,7 @@ BEGIN_PGML Simplify the expression, [`` [$f] ``]. -[_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Algebraic_Expressions/Simplify_Expressions_14.pg b/Contrib/CCCS/QuantitativeLiteracy/Algebraic_Expressions/Simplify_Expressions_14.pg index 887d49dea9..db96afea6e 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Algebraic_Expressions/Simplify_Expressions_14.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Algebraic_Expressions/Simplify_Expressions_14.pg @@ -20,7 +20,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", -"AnswerFormatHelp.pl", + "PCCmacros.pl", "contextFraction.pl", "contextLimitedPolynomial.pl", @@ -62,7 +62,7 @@ BEGIN_PGML Simplify the expression, [`` [$f] ``]. -[_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Algebraic_Expressions/Simplify_Expressions_2.pg b/Contrib/CCCS/QuantitativeLiteracy/Algebraic_Expressions/Simplify_Expressions_2.pg index c548975625..f003c8628d 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Algebraic_Expressions/Simplify_Expressions_2.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Algebraic_Expressions/Simplify_Expressions_2.pg @@ -20,7 +20,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", -"AnswerFormatHelp.pl", + "PCCmacros.pl", "contextLimitedPolynomial.pl", "contextFraction.pl", @@ -64,7 +64,7 @@ BEGIN_PGML Simplify the expression, [`` [$f] ``]. -[_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Algebraic_Expressions/Simplify_Expressions_3.pg b/Contrib/CCCS/QuantitativeLiteracy/Algebraic_Expressions/Simplify_Expressions_3.pg index 4cf6f126f3..24338705a2 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Algebraic_Expressions/Simplify_Expressions_3.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Algebraic_Expressions/Simplify_Expressions_3.pg @@ -20,7 +20,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", -"AnswerFormatHelp.pl", + "PCCmacros.pl", "contextFraction.pl", "contextLimitedPolynomial.pl", @@ -71,7 +71,7 @@ BEGIN_PGML Use the distributive property to multiply, [`` [$f] ``]. -[_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Algebraic_Expressions/Simplify_Expressions_4.pg b/Contrib/CCCS/QuantitativeLiteracy/Algebraic_Expressions/Simplify_Expressions_4.pg index a443ba4cad..891bc71b12 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Algebraic_Expressions/Simplify_Expressions_4.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Algebraic_Expressions/Simplify_Expressions_4.pg @@ -20,7 +20,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", -"AnswerFormatHelp.pl", + "PCCmacros.pl", "contextFraction.pl", "contextLimitedPolynomial.pl", @@ -70,7 +70,7 @@ BEGIN_PGML Simplify the expression, [`` [$f] ``]. -[_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Algebraic_Expressions/Simplify_Expressions_5.pg b/Contrib/CCCS/QuantitativeLiteracy/Algebraic_Expressions/Simplify_Expressions_5.pg index ca56cacf0c..630ce7ced9 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Algebraic_Expressions/Simplify_Expressions_5.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Algebraic_Expressions/Simplify_Expressions_5.pg @@ -20,7 +20,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", -"AnswerFormatHelp.pl", + "PCCmacros.pl", "contextFraction.pl", "contextLimitedPolynomial.pl", @@ -68,7 +68,7 @@ BEGIN_PGML Simplify the expression, [`` [$f] ``]. -[_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Algebraic_Expressions/Simplify_Expressions_6.pg b/Contrib/CCCS/QuantitativeLiteracy/Algebraic_Expressions/Simplify_Expressions_6.pg index 5eec75d562..02764837cc 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Algebraic_Expressions/Simplify_Expressions_6.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Algebraic_Expressions/Simplify_Expressions_6.pg @@ -20,7 +20,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", -"AnswerFormatHelp.pl", + "PCCmacros.pl", "contextFraction.pl", "contextLimitedPolynomial.pl", @@ -64,7 +64,7 @@ BEGIN_PGML Simplify the expression, [`` [$f] ``]. -[_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Algebraic_Expressions/Simplify_Expressions_7.pg b/Contrib/CCCS/QuantitativeLiteracy/Algebraic_Expressions/Simplify_Expressions_7.pg index 366dd04c87..32ef5c8200 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Algebraic_Expressions/Simplify_Expressions_7.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Algebraic_Expressions/Simplify_Expressions_7.pg @@ -20,7 +20,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", -"AnswerFormatHelp.pl", + "PCCmacros.pl", "contextFraction.pl", "contextLimitedPolynomial.pl", @@ -71,7 +71,7 @@ BEGIN_PGML Simplify the expression, [`` [$f] ``]. -[_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Algebraic_Expressions/Simplify_Expressions_8.pg b/Contrib/CCCS/QuantitativeLiteracy/Algebraic_Expressions/Simplify_Expressions_8.pg index c8c3d8287e..cd52596e40 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Algebraic_Expressions/Simplify_Expressions_8.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Algebraic_Expressions/Simplify_Expressions_8.pg @@ -20,7 +20,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", -"AnswerFormatHelp.pl", + "PCCmacros.pl", "contextFraction.pl", "contextLimitedPolynomial.pl", @@ -64,7 +64,7 @@ BEGIN_PGML Simplify the expression, [`` [$f] ``]. -[_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Algebraic_Expressions/Simplify_Expressions_9.pg b/Contrib/CCCS/QuantitativeLiteracy/Algebraic_Expressions/Simplify_Expressions_9.pg index d27b811fad..777debfdfb 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Algebraic_Expressions/Simplify_Expressions_9.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Algebraic_Expressions/Simplify_Expressions_9.pg @@ -20,7 +20,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", -"AnswerFormatHelp.pl", + "PCCmacros.pl", "contextFraction.pl", "contextLimitedPolynomial.pl", @@ -53,7 +53,7 @@ BEGIN_PGML Simplify the expression, [`` [$f] ``]. -[_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Applications_Linear/Application_1.pg b/Contrib/CCCS/QuantitativeLiteracy/Applications_Linear/Application_1.pg index bb715c6e9b..cf0335b1a5 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Applications_Linear/Application_1.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Applications_Linear/Application_1.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -33,7 +33,7 @@ $showPartialCorrectAnswers = 1; ########################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", @@ -62,7 +62,7 @@ $ml = new_match_list(); $ml->rf_print_q(~~&pop_up_list_print_q); $ml->ra_pop_up_list([ "No answer" => "?", -"A" => "A", "B" => "B", "C" => "C", +"A" => "A", "B" => "B", "C" => "C", "D" => "D", "E" => "E", "F" => "F", "G" => "G", "H" => "H", "I" => "I", ]); @@ -88,7 +88,7 @@ $ml->extra( "`$a/x`", ); $ml->choose_extra(1); - + $ml->makeLast("None of the above"); @@ -119,7 +119,7 @@ $ENV{'grader_message'} = "You can earn " . # # All or nothing grader -# +# #install_problem_grader(~~&std_problem_grader); # ANS( str_cmp( $ml->ra_correct_ans ) ); diff --git a/Contrib/CCCS/QuantitativeLiteracy/Applications_Linear/Application_10.pg b/Contrib/CCCS/QuantitativeLiteracy/Applications_Linear/Application_10.pg index 4f98cac02d..4489fef394 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Applications_Linear/Application_10.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Applications_Linear/Application_10.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -63,7 +63,7 @@ BEGIN_PGML_SOLUTION x = the time the vehicles are traveling for. -In x hours, the car has traveled [`[$cspeed] \cdot x`] miles. In x hours, the truck has traveled [`[$tspeed] \cdot x`] miles. +In x hours, the car has traveled [`[$cspeed] \cdot x`] miles. In x hours, the truck has traveled [`[$tspeed] \cdot x`] miles. The total distance is [$distance] miles: diff --git a/Contrib/CCCS/QuantitativeLiteracy/Applications_Linear/Application_11.pg b/Contrib/CCCS/QuantitativeLiteracy/Applications_Linear/Application_11.pg index 98368a3d27..71d479c3bd 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Applications_Linear/Application_11.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Applications_Linear/Application_11.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserImplicitEquation.pl", diff --git a/Contrib/CCCS/QuantitativeLiteracy/Applications_Linear/Application_12.pg b/Contrib/CCCS/QuantitativeLiteracy/Applications_Linear/Application_12.pg index 772383aa5e..9fe352c795 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Applications_Linear/Application_12.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Applications_Linear/Application_12.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserImplicitEquation.pl", diff --git a/Contrib/CCCS/QuantitativeLiteracy/Applications_Linear/Application_2.pg b/Contrib/CCCS/QuantitativeLiteracy/Applications_Linear/Application_2.pg index f1e5effe84..6582c1a846 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Applications_Linear/Application_2.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Applications_Linear/Application_2.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserImplicitEquation.pl", @@ -50,7 +50,7 @@ BEGIN_PGML The difference of twice a number and [`[$a]`] is [`[$b]`] Find the number. -[`x = `] [_________________]{$ans} +[`x = `] [_________________]{$ans} END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Applications_Linear/Application_3.pg b/Contrib/CCCS/QuantitativeLiteracy/Applications_Linear/Application_3.pg index 4b1b158760..1d61520875 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Applications_Linear/Application_3.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Applications_Linear/Application_3.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserImplicitEquation.pl", @@ -49,7 +49,7 @@ BEGIN_PGML The product of a number and [`[$a]`] is the sum of the number and [`[$b]`] Find the number. -[`x = `] [_________________]{$ans} +[`x = `] [_________________]{$ans} END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Applications_Linear/Application_4.pg b/Contrib/CCCS/QuantitativeLiteracy/Applications_Linear/Application_4.pg index 702760e92f..a963b0f46f 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Applications_Linear/Application_4.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Applications_Linear/Application_4.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -58,7 +58,7 @@ BEGIN_PGML A salesperson sold a computer system and software for [`$[$total]`], receiving [$factor] times as much money for the computer system as for the software. Find the price of each. -Computer System Price = $ [___________]{$comp} +Computer System Price = $ [___________]{$comp} Software Price = $ [___________]{$sw} diff --git a/Contrib/CCCS/QuantitativeLiteracy/Applications_Linear/Application_5.pg b/Contrib/CCCS/QuantitativeLiteracy/Applications_Linear/Application_5.pg index 564ea8e5d4..aca51c0c68 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Applications_Linear/Application_5.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Applications_Linear/Application_5.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,7 +51,7 @@ BEGIN_PGML The Memorial Spartans scored [$pts] points more than the West Regents in a basketball game. Together, both teams scored a total of [$total] points. How many points did the Spartans score during this game? -Number points = [_________________]{$spartans} +Number points = [_________________]{$spartans} END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Applications_Linear/Application_6.pg b/Contrib/CCCS/QuantitativeLiteracy/Applications_Linear/Application_6.pg index 64f841b951..358d80925b 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Applications_Linear/Application_6.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Applications_Linear/Application_6.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserImplicitEquation.pl", diff --git a/Contrib/CCCS/QuantitativeLiteracy/Applications_Linear/Application_7.pg b/Contrib/CCCS/QuantitativeLiteracy/Applications_Linear/Application_7.pg index 0d8158f241..7be0438c8f 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Applications_Linear/Application_7.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Applications_Linear/Application_7.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserImplicitEquation.pl", diff --git a/Contrib/CCCS/QuantitativeLiteracy/Applications_Linear/Application_8.pg b/Contrib/CCCS/QuantitativeLiteracy/Applications_Linear/Application_8.pg index a073bd61dc..11641343ef 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Applications_Linear/Application_8.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Applications_Linear/Application_8.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextCurrency.pl", diff --git a/Contrib/CCCS/QuantitativeLiteracy/Applications_Linear/Application_9.pg b/Contrib/CCCS/QuantitativeLiteracy/Applications_Linear/Application_9.pg index bb5ce88592..1a1ce40d5f 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Applications_Linear/Application_9.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Applications_Linear/Application_9.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserImplicitEquation.pl", diff --git a/Contrib/CCCS/QuantitativeLiteracy/Applications_Linear/Expression_1.pg b/Contrib/CCCS/QuantitativeLiteracy/Applications_Linear/Expression_1.pg index dbb77873cc..069786a096 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Applications_Linear/Expression_1.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Applications_Linear/Expression_1.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -49,7 +49,7 @@ Write an alebraic expression for the following phrase. Use [`x`] to respresent [`[$n]`] less than a [$phrase[$i]] times a number. -[_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[_________________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/QuantitativeLiteracy/Applications_Linear/Expression_2.pg b/Contrib/CCCS/QuantitativeLiteracy/Applications_Linear/Expression_2.pg index 9bb5a2a785..ee3e23ceef 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Applications_Linear/Expression_2.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Applications_Linear/Expression_2.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -52,13 +52,13 @@ $ans4 = Formula("x - $a4")->reduce; BEGIN_PGML Write an alebraic expression for each of the following phrases. Use [`x`] to respresent the unknonwn number. -[`[$a1]`] more than a number. [_________________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +[`[$a1]`] more than a number. [_________________]{$ans1} [@ helpLink("numbers") @]* -The product of [`[$a2]`] and a number. [_________________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +The product of [`[$a2]`] and a number. [_________________]{$ans2} [@ helpLink("numbers") @]* -The difference of [`[$a3]`] and a number. [_________________]{$ans3} [@ AnswerFormatHelp("numbers") @]* +The difference of [`[$a3]`] and a number. [_________________]{$ans3} [@ helpLink("numbers") @]* -A number decreased by [`[$a4]`]. [_________________]{$ans4} [@ AnswerFormatHelp("numbers") @]* +A number decreased by [`[$a4]`]. [_________________]{$ans4} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Applications_Linear/Expression_3.pg b/Contrib/CCCS/QuantitativeLiteracy/Applications_Linear/Expression_3.pg index d3743c9f85..55ef2f5c83 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Applications_Linear/Expression_3.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Applications_Linear/Expression_3.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -56,9 +56,9 @@ $ans2 = Formula("$a2*x + $n2")->reduce; BEGIN_PGML Write an alebraic expression for each of the following phrases. Use [`x`] to respresent the unknonwn number. -[$phrase1] times the sum of a number and [`[$n1]`]. [_________________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +[$phrase1] times the sum of a number and [`[$n1]`]. [_________________]{$ans1} [@ helpLink("numbers") @]* -The sum of [$phrase2] times a number and [`[$n2]`]. [_________________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +The sum of [$phrase2] times a number and [`[$n2]`]. [_________________]{$ans2} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Application_1.pg b/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Application_1.pg index deb17639a5..36f70014b8 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Application_1.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Application_1.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## Algebra ## ENDDESCRIPTION - - + + ## DBsubject() ## DBchapter() ## DBsection() @@ -11,17 +11,17 @@ ## Author(Martha Stevens) ## MO(1) ## KEYWORDS() - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -30,10 +30,10 @@ loadMacros( "parserPopUp.pl", "parserAssignment.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric")->variables->add(y=>"Real"); @@ -55,23 +55,23 @@ $ans =Formula("$slope(x)+$yint"); $LHS = Formula("$slope*x + $slope*$bikes1"); - + ########################### # Main text - + BEGIN_PGML It cost a bicycle company [`$[$cost1]`] to make [`[$bikes1]`] bikes in its first month of operation and [`$[$cost2]`] to make [`[$bikes2]`] bikes during its second month. Find a linear equation to express the company's monthly production cost, [`y`], in terms of the number, [`x`] of bikes it makes. -[`y = `][____]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`y = `][____]{$ans} [@ helpLink("formulas") @]* + - END_PGML - + ############################ # Solution - + BEGIN_PGML_SOLUTION Let x = number of bicycles and y = the company's monthly production cost. @@ -95,7 +95,7 @@ and we can use the point-slope equation to get: END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Application_2.pg b/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Application_2.pg index dc9dc857b7..5586538450 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Application_2.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Application_2.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## Algebra ## ENDDESCRIPTION - - + + ## DBsubject() ## DBchapter() ## DBsection() @@ -11,17 +11,17 @@ ## Author(Martha Stevens) ## MO(1) ## KEYWORDS() - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextCurrency.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -30,10 +30,10 @@ loadMacros( "parserPopUp.pl", "parserAssignment.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric")->variables->add(y=>"Real"); @@ -60,28 +60,28 @@ $n = $i + $i2; - + ########################### # Main text - + BEGIN_PGML -George bought a car for [`$[$value1]`] in [`[$year1]`]. In [`[$year2]`], the car was worth [`$[$value2]`]. +George bought a car for [`$[$value1]`] in [`[$year1]`]. In [`[$year2]`], the car was worth [`$[$value2]`]. Express the value, [`y`], of the car in terms of the number of years, [`x`] after it was purchased. -[`y = `][____]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`y = `][____]{$ans} [@ helpLink("formulas") @]* Use your formula to predict the value of the car in [`[$year3]`]. [_____]{$value3} - + END_PGML - + ############################ # Solution - + BEGIN_PGML_SOLUTION Let x = years since [$year1] and y = the value of the car. @@ -108,7 +108,7 @@ To find the car's value in [$year3], plug [$n] into the above equation. ([$year [`y = [$value3]`] END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Application_3.pg b/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Application_3.pg index 755f984adb..fb41ed5dfa 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Application_3.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Application_3.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## Algebra ## ENDDESCRIPTION - - + + ## DBsubject() ## DBchapter() ## DBsection() @@ -11,17 +11,17 @@ ## Author(Martha Stevens) ## MO(1) ## KEYWORDS() - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -30,10 +30,10 @@ loadMacros( "parserPopUp.pl", "parserAssignment.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric")->variables->add(y=>"Real"); @@ -51,22 +51,22 @@ $y2 = $yint + $slope*$n; $ans =Formula("$slope(x)+$yint"); - + ########################### # Main text - + BEGIN_PGML The number of acres in the National Park system has grown from [`[$yint]`] million acres in [`[$year1]`] to [`[$y2]`] million acres in [`[$year2]`]. Let y represent the number of acres, in millions, in the system and x the number of years after [`[$year1]`]. Find a linear equation that fits the data. -[`y = `][____]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`y = `][____]{$ans} [@ helpLink("formulas") @]* + - END_PGML - + ############################ # Solution - + BEGIN_PGML_SOLUTION Let x = years since [$year1] and y = millions of acres in the NPS. @@ -87,7 +87,7 @@ and use the point-slope formula to find the equation: [`y = [$slope]x + [$yint]`] END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Application_4.pg b/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Application_4.pg index b5d8d62894..79e1192ffc 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Application_4.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Application_4.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## Algebra ## ENDDESCRIPTION - - + + ## DBsubject() ## DBchapter() ## DBsection() @@ -11,17 +11,17 @@ ## Author(Martha Stevens) ## MO(1) ## KEYWORDS() - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -30,10 +30,10 @@ loadMacros( "parserPopUp.pl", "parserAssignment.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric")->variables->add(y=>"Real"); @@ -55,28 +55,28 @@ $ans =Formula("$slope(x)+$yint"); $ans2 = Compute("$slope*$j + $yint"); - + ########################### # Main text - + BEGIN_PGML In [`[$year1]`], U.S. families spent, on average, [`$[$yint]`] for back-to-school supplies. The number rose to [`$[$y2]`] in [`[$year2]`]. Let y represent the average amount of back-to-school spending and x the number years since [`[$year1]`]. Find a linear equation that fits the data and use your equation to predict the back-to-school spending in [`[$year3]`]. -[`y = `][____]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`y = `][____]{$ans} [@ helpLink("formulas") @]* In [`[$year3]`], families will spend [______]{$ans2} - + END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Equation_of_Lines_1.pg b/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Equation_of_Lines_1.pg index 10c6d038a5..f38735e7d5 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Equation_of_Lines_1.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Equation_of_Lines_1.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject() ## DBchapter() ## DBsection() @@ -11,17 +11,17 @@ ## Author(Michael Sulock, Edited: Steven Wray, 7/22/17, Edited: Martha Stevens, 6/18/2018) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -30,10 +30,10 @@ loadMacros( "parserPopUp.pl", "parserAssignment.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Fraction"); @@ -56,25 +56,25 @@ $n = Compute("$slope*$x1"); $RHS = Formula("$slope*x - $n")->reduce; $LHS = Formula("y - $y1")->reduce; - + ########################### # Main text - + BEGIN_PGML Find a linear equation satisfying the following conditions: Passes through the points [`([$x1],[$y1])`] and [`([$x2],[$y2])`] -[`y = `][____]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`y = `][____]{$ans} [@ helpLink("formulas") @]* + - END_PGML - + ############################ # Solution - + BEGIN_PGML_SOLUTION We are given two points: @@ -106,7 +106,7 @@ To put the equation in slope-intercept form, distribute [$slope] and then add [$ END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Equation_of_Lines_2.pg b/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Equation_of_Lines_2.pg index edc92ce49e..48fef8dfb8 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Equation_of_Lines_2.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Equation_of_Lines_2.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## Algebra ## ENDDESCRIPTION - - + + ## DBsubject() ## DBchapter() ## DBsection() @@ -11,17 +11,17 @@ ## Author(Martha Stevens) ## MO(1) ## KEYWORDS() - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -30,10 +30,10 @@ loadMacros( "parserPopUp.pl", "parserAssignment.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("LimitedFraction"); @@ -64,10 +64,10 @@ $dx = Compute("$x2 - $x1"); $LHS = Formula("y - $y1"); $RHS = Formula("$slope*x - $slope*$x1")->reduce; - + ########################### # Main text - + BEGIN_PGML Find a linear equation satisfying the following conditions: @@ -75,15 +75,15 @@ Passes through the points [`([$x1],[$y1])`] and [`([$x2],[$y2])`] Write your answer using integers or fractions. -[`y = `][____]{$slope}[`x + `][____]{$yint} [@ AnswerFormatHelp("formulas") @]* +[`y = `][____]{$slope}[`x + `][____]{$yint} [@ helpLink("formulas") @]* + - END_PGML - + ############################ # Solution - + BEGIN_PGML_SOLUTION We are given two points: @@ -118,7 +118,7 @@ Note: To multiply fractions, we multiply straight across. For example [`\frac{ To add or subtract fractions we need a least common denominator (LCD). For example, [`\frac{2}{5} - 3 = \frac{2}{5} - \frac{3}{1} = \frac{2}{5} - \frac{15}{5} = -\frac{13}{5}`]. END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Equation_of_Lines_4.pg b/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Equation_of_Lines_4.pg index 188477cd47..598e20fe5c 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Equation_of_Lines_4.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Equation_of_Lines_4.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ##Algebra ## ENDDESCRIPTION - - + + ## DBsubject() ## DBchapter() ## DBsection() @@ -11,17 +11,17 @@ ## Author(Martha Stevens) ## MO(1) ## KEYWORDS() - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -30,10 +30,10 @@ loadMacros( "parserPopUp.pl", "contextLimitedPolynomial.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Fraction"); @@ -66,22 +66,22 @@ Parser::Number::NoDecimals; $ans = Formula("$slope(x)+$ansYint")-> reduce; - + ########################### # Main text - + BEGIN_PGML Write an equation for the line parallel to [`y = [$line]`] and passing through the point [`([$xCord], [$yCord])`]. Put your answer in slope-intercept form using fractions and/or integers. - -[`y = `] [______]{$ans} [@ AnswerFormatHelp("formulas") @]* + +[`y = `] [______]{$ans} [@ helpLink("formulas") @]* END_PGML - + ############################ # Solution - + BEGIN_PGML_SOLUTION Parallel lines have the same slope. The slope of [`y = [$line]`] is [`m = [$slope]`]. This is also the slope of the line we are trying to write. @@ -107,8 +107,8 @@ To put the equation in slope-intercept form, distribute [$slope] and then add [$ END_PGML_SOLUTION - - + + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Equation_of_Lines_5.pg b/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Equation_of_Lines_5.pg index 52aed2c64a..c7479a0425 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Equation_of_Lines_5.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Equation_of_Lines_5.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ##Algebra ## ENDDESCRIPTION - - + + ## DBsubject() ## DBchapter() ## DBsection() @@ -11,17 +11,17 @@ ## Author(Martha Stevens) ## MO(1) ## KEYWORDS() - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -30,10 +30,10 @@ loadMacros( "parserPopUp.pl", "contextLimitedPolynomial.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Fraction"); @@ -67,22 +67,22 @@ Parser::Number::NoDecimals; $ans = Formula("$ansslope(x)+$ansYint")-> reduce; - + ########################### # Main text - + BEGIN_PGML Write an equation for the line perpendicular to [`y = [$line]`] and passing through the point [`([$xCord], [$yCord])`]. Put your answer in slope-intercept form using fractions and/or integers. - -[`y = `] [______]{$ans} [@ AnswerFormatHelp("formulas") @]* + +[`y = `] [______]{$ans} [@ helpLink("formulas") @]* END_PGML - + ############################ # Solution - + BEGIN_PGML_SOLUTION Perpendicular lines have slopes that are negative reciprocals. The slope of [`y = [$line]`] is [`m = [$slope]`]. So the slope of the line we are trying to find is [`m = [$ansslope]`]. @@ -108,7 +108,7 @@ To put the equation in slope-intercept form, distribute [$slope] and then add [$ END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Equation_of_Lines_6.pg b/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Equation_of_Lines_6.pg index cc96e7e615..756c8ff7e1 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Equation_of_Lines_6.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Equation_of_Lines_6.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject() ## DBchapter() ## DBsection() @@ -11,33 +11,33 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", "PGcourse.pl", "contextLimitedPoint.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup -# +# Context("Numeric"); @@ -57,7 +57,7 @@ texsize=>300, ); -add_functions($gr, "($slope(x)+$intercept) for x in <-$limit,$limit>" . +add_functions($gr, "($slope(x)+$intercept) for x in <-$limit,$limit>" . " using color:blue and weight:2"); Context("Numeric"); @@ -66,23 +66,23 @@ $ans = Formula(" $slope(x) +$intercept")->reduce; ########################### # Main text - + BEGIN_PGML -Find the equation of the graphed line. +Find the equation of the graphed line. >> [@ image(insertGraph($gr), tex_size=>16000, width=>400, height=>400), @]* << -[`y = `] [______]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`y = `] [______]{$ans} [@ helpLink("formulas") @]* END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Equation_of_Lines_7.pg b/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Equation_of_Lines_7.pg index 4ac1da9fc2..0e958d94cf 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Equation_of_Lines_7.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Equation_of_Lines_7.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## Algebra ## ENDDESCRIPTION - - + + ## DBsubject() ## DBchapter() ## DBsection() @@ -11,19 +11,19 @@ ## Author(Martha Stevens) ## MO(1) ## KEYWORDS() - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -31,15 +31,15 @@ loadMacros( "contextLimitedPoint.pl", "parserImplicitEquation.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup # -Context ("Numeric"); +Context ("Numeric"); $limit = 5; @@ -56,7 +56,7 @@ texsize=>300, $chooser = random(0,1); if ( $chooser == 0) { - add_functions($gr, "($intercept) for x in <-$limit,$limit>" . + add_functions($gr, "($intercept) for x in <-$limit,$limit>" . " using color:blue and weight:2"); $popup = PopUp(["?","y", "x"], "y"); @@ -75,23 +75,23 @@ $popup = PopUp(["?","y", "x"], "x"); ########################### # Main text - + BEGIN_PGML -Find the equation of the graphed line. +Find the equation of the graphed line. >> [@ image(insertGraph($gr), tex_size=>16000, width=>400, height=>400), @]* << [_____]{$popup}[`=`][_____]{$intercept} END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Equation_of_Lines_8.pg b/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Equation_of_Lines_8.pg index 6072dbe486..2f9c92933b 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Equation_of_Lines_8.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Equation_of_Lines_8.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ##Algebra ## ENDDESCRIPTION - - + + ## DBsubject() ## DBchapter() ## DBsection() @@ -11,17 +11,17 @@ ## Author(Martha Stevens) ## MO(1) ## KEYWORDS() - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -30,10 +30,10 @@ loadMacros( "parserPopUp.pl", "contextLimitedPolynomial.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("LimitedFraction"); @@ -60,22 +60,22 @@ $ans = Formula("$slope(x)+$ansYint")-> reduce; #For solution $n = $slope*$xCord; - + ########################### # Main text - + BEGIN_PGML Write an equation of the line with a slope of [`m = [$slope]`] that passes through the point [`([$xCord], [$yCord])`]. Put your answer in slope-intercept form using fractions and/or integers. - -[`y = `] [______]{$ans} [@ AnswerFormatHelp("formulas") @]* + +[`y = `] [______]{$ans} [@ helpLink("formulas") @]* END_PGML - + ############################ # Solution - + BEGIN_PGML_SOLUTION We can use the point-slope formula to write the equation of this line: @@ -107,7 +107,7 @@ Note: To multiply fractions, we multiply straight across. For example [`\frac{ To add or subtract fractions we need a least common denominator (LCD). For example, [`\frac{2}{5} - 3 = \frac{2}{5} - \frac{3}{1} = \frac{2}{5} - \frac{15}{5} = -\frac{13}{5}`]. END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Equations_of_Lines_3.pg b/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Equations_of_Lines_3.pg index 7228736cd8..ed6f8194fb 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Equations_of_Lines_3.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Equations_of_Lines_3.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## Algebra ## ENDDESCRIPTION - - + + ## DBsubject() ## DBchapter() ## DBsection() @@ -11,17 +11,17 @@ ## Author(Martha Stevens) ## MO(1) ## KEYWORDS() - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -30,10 +30,10 @@ loadMacros( "answerHints.pl", "parserAssignment.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -62,29 +62,29 @@ ANS(Formula("$slope(x)+$yint")->cmp->withPostFilter(AnswerHints( } => "Rounding error? Round decimals after you have done all computations." ))); - + ########################### # Main text - + BEGIN_PGML Find a linear equation satisfying the following conditions: -Passes through the points [`([$x1],[$y1])`] and [`([$x2],[$y2])`]. Decimals must be accurate to the nearest hundredth. +Passes through the points [`([$x1],[$y1])`] and [`([$x2],[$y2])`]. Decimals must be accurate to the nearest hundredth. + +[`y = `][____]{$ans} [@ helpLink("formulas") @]* -[`y = `][____]{$ans} [@ AnswerFormatHelp("formulas") @]* - END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Intercepts_1.pg b/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Intercepts_1.pg index ed6dc1aa50..ff8204d253 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Intercepts_1.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Intercepts_1.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## Algebra ## ENDDESCRIPTION - - + + ## DBsubject() ## DBchapter() ## DBsection() @@ -11,17 +11,17 @@ ## Author(Martha Stevens) ## MO(1) ## KEYWORDS() - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,10 +29,10 @@ loadMacros( "PGcourse.pl", "parserPopUp.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Point"); @@ -51,26 +51,26 @@ $xintP = Point($xint, 0); $f = Compute("$A*x + $B*y")->reduce; - + ########################### # Main text - + BEGIN_PGML Give the coordinates of the x and y intercepts of the following equation [`[$f]=[$C]`] -x intercept is [______]{$xintP} [@ AnswerFormatHelp("points") @]* +x intercept is [______]{$xintP} [@ helpLink("points") @]* + +y intercept is [______]{$yintP} [@ helpLink("points") @]* -y intercept is [______]{$yintP} [@ AnswerFormatHelp("points") @]* - END_PGML - + ############################ # Solution - + BEGIN_PGML_SOLUTION To find the x-intercept of an equation, plug in [`y = 0`] and solve for x. @@ -92,7 +92,7 @@ To find the y-intercept of an equation, plug in [`x = 0`] and solve for y. As an ordered pair, this is the point [`(0, [$yint])`]. END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Intercepts_2.pg b/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Intercepts_2.pg index 9575cf652d..25ccb14c1d 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Intercepts_2.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Intercepts_2.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## Algebra ## ENDDESCRIPTION - - + + ## DBsubject() ## DBchapter() ## DBsection() @@ -11,17 +11,17 @@ ## Author(Martha Stevens) ## MO(1) ## KEYWORDS() - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,10 +29,10 @@ loadMacros( "PGcourse.pl", "parserPopUp.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Point"); @@ -51,26 +51,26 @@ $yintP = Point(0, $yint); $xintP = Point($xint, 0); - + ########################### # Main text - + BEGIN_PGML Give the coordinates of the x and y intercepts of the following equation [`[$line] = [$C]`] -x intercept is [______]{$xintP} [@ AnswerFormatHelp("points") @]* +x intercept is [______]{$xintP} [@ helpLink("points") @]* + +y intercept is [______]{$yintP} [@ helpLink("points") @]* -y intercept is [______]{$yintP} [@ AnswerFormatHelp("points") @]* - END_PGML - + ############################ # Solution - + BEGIN_PGML_SOLUTION To find the x-intercept of an equation, plug in [`y = 0`] and solve for x. @@ -92,7 +92,7 @@ To find the y-intercept of an equation, plug in [`x = 0`] and solve for y. As an ordered pair, this is the point [`(0, [$yint])`]. END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Parallel_Perp_1.pg b/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Parallel_Perp_1.pg index c3d0169e3d..21ea56dea0 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Parallel_Perp_1.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Parallel_Perp_1.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## Algebra ## ENDDESCRIPTION - - + + ## DBsubject() ## DBchapter() ## DBsection() @@ -11,17 +11,17 @@ ## Author(Martha Stevens) ## MO(1) ## KEYWORDS() - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,10 +29,10 @@ loadMacros( "PGcourse.pl", "parserPopUp.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup #Add context and y as a variable. @@ -82,7 +82,7 @@ $b2 = Compute("$C2/$B2"); ########################### # Main text - + BEGIN_PGML Are the lines parallel, perpendicular, or neither? @@ -90,14 +90,14 @@ Are the lines parallel, perpendicular, or neither? [`[$eqn2]=[$C2]`] -[____]{$popup} - +[____]{$popup} + END_PGML - + ############################ # Solution - + BEGIN_PGML_SOLUTION Parallel lines have the same slope and perpendicular lines have slopes that are negative reciprocals. @@ -130,7 +130,7 @@ The slopes are [$compare], so the lines are [$answer]. _Note: If you have to divide by a fraction, you can multiply by its reciprocal. For example [`3 \div \frac{4}{5} = 3 \cdot \frac{5}{4} = \frac{15}{4}`]._ END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/SlopeIntercept_1.pg b/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/SlopeIntercept_1.pg index 835b46994e..3999d6d613 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/SlopeIntercept_1.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/SlopeIntercept_1.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject() ## DBchapter() ## DBsection() @@ -11,17 +11,17 @@ ## Author(Martha Stevens) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -30,10 +30,10 @@ loadMacros( "parserPopUp.pl", "parserAssignment.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Fraction"); @@ -56,25 +56,25 @@ $n = Compute("$slope*$x1"); $RHS = Formula("$slope*x - $n")->reduce; $LHS = Formula("y - $y1")->reduce; - + ########################### # Main text - + BEGIN_PGML Find a linear equation satisfying the following conditions: Passes through the points [`([$x1],[$y1])`] and [`([$x2],[$y2])`] -[`y = `][____]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`y = `][____]{$ans} [@ helpLink("formulas") @]* + - END_PGML - + ############################ # Solution - + BEGIN_PGML_SOLUTION We are given two points: @@ -106,7 +106,7 @@ To put the equation in slope-intercept form, distribute [$slope] and then add [$ END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Slope_1.pg b/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Slope_1.pg index 5743fb9205..076f90235e 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Slope_1.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Slope_1.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject() ## DBchapter() ## DBsection() @@ -11,17 +11,17 @@ ## Author(Michael Sulock, Edited: Steven Wray, 7/22/17, Edited: Martha Stevens, 6/18/2017) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,10 +29,10 @@ loadMacros( "PGcourse.pl", "parserPopUp.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("LimitedFraction"); @@ -51,10 +51,10 @@ $ans = Fraction($y1-$y2,$x1-$x2); #For solution $dy = $y2 - $y1; $dx = $x2 - $x1; - + ########################### # Main text - + BEGIN_PGML Find the slope of the line that passes through the following points @@ -63,14 +63,14 @@ Find the slope of the line that passes through the following points Write your answer as an integer or fraction. -[____]{$ans} [@ AnswerFormatHelp("numbers") @]* - +[____]{$ans} [@ helpLink("numbers") @]* + END_PGML - + ############################ # Solution - + BEGIN_PGML_SOLUTION Slope can be computed by taking the change in y divided by the change in x: @@ -87,7 +87,7 @@ I am going to let [`x_1 = [$x1]`], [`y_1 = [$y1]`], [`x_2 = [$x2]`], and [`y_2 = _Note: I might have reduced my answer._ END_PGML_SOLUTION - -COMMENT('MathObject version. Uses PGML.'); - + +COMMENT('MathObject version. Uses PGML.'); + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Slope_2.pg b/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Slope_2.pg index 72e06f57f5..3d27b228d3 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Slope_2.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Slope_2.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject() ## DBchapter() ## DBsection() @@ -11,33 +11,33 @@ ## Author(Michael Sulock; Edited: Martha Stevens 6/21/2108 (RRCC)) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", "PGcourse.pl", "contextLimitedPoint.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup -# +# Context("Numeric"); $limit = 5; @@ -57,9 +57,9 @@ texsize=>300, ); -add_functions($gr, "($slope(x)+$intercept) for x in <-$limit,$limit>" . +add_functions($gr, "($slope(x)+$intercept) for x in <-$limit,$limit>" . " using color:blue and weight:2"); - + #For Solution $x1 = 0; $y1 = $intercept; @@ -86,21 +86,21 @@ $d = $den; ########################### # Main text - + BEGIN_PGML -Find the slope of the graphed line. +Find the slope of the graphed line. >> [@ image(insertGraph($gr), tex_size=>16000, width=>400, height=>400), @]* << -The slope is [______]{$slope} [@ AnswerFormatHelp("numbers") @]* +The slope is [______]{$slope} [@ helpLink("numbers") @]* END_PGML - + ############################ # Solution - + BEGIN_PGML_SOLUTION Slope can be computed by taking the change in y divided by the change in x. This can also be thought of as: @@ -112,7 +112,7 @@ I notice the y-intercept is located at: To get to another point on the graph, I have to either: * Move [$dx1] [$d] units and [$dy1] [$n] units, or -* Move [$dx2] [$d] units and [$dy2] [$n] units. +* Move [$dx2] [$d] units and [$dy2] [$n] units. That makes the slope, @@ -122,7 +122,7 @@ That makes the slope, _Note: I might have reduced my answer._ END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Slope_3.pg b/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Slope_3.pg index 89b74cded8..2ee0b4515f 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Slope_3.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Slope_3.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ##Algebra ## ENDDESCRIPTION - - + + ## DBsubject() ## DBchapter() ## DBsection() @@ -11,17 +11,17 @@ ## Author(Martha Stevens) ## MO(1) ## KEYWORDS() - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -30,10 +30,10 @@ loadMacros( "parserPopUp.pl", "contextFraction.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Fraction"); @@ -54,21 +54,21 @@ $int = Compute("$C/$B"); ########################### # Main text - + BEGIN_PGML -Find the slope of the line: +Find the slope of the line: + +[`[$line]=[$C]`] -[`[$line]=[$C]`] - [`m = `] [______]{$ans} END_PGML - + ############################ # Solution - + BEGIN_PGML_SOLUTION If the equation of a line is in slope-intercept form, then the slope is coefficient of the x-term. If other words, if we can solve the equation for y and put it in [`y = mx + b`] form, then slope is the number in front of the x. @@ -87,7 +87,7 @@ Then divide both sides by [$B]: [`m = [$ans]`] END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Solution_Check_1.pg b/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Solution_Check_1.pg index 83fe2b059e..92ca00fcad 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Solution_Check_1.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Solution_Check_1.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## Algebra ## ENDDESCRIPTION - - + + ## DBsubject() ## DBchapter() ## DBsection() @@ -11,17 +11,17 @@ ## Author(Martha Stevens) ## MO(1) ## KEYWORDS() - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,10 +29,10 @@ loadMacros( "PGcourse.pl", "parserPopUp.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup #Add context and y as a variable. @@ -55,27 +55,27 @@ if ( $chooser == 0) { $popup = PopUp(["?","yes", "no"], "no"); } - + ########################### # Main text - + BEGIN_PGML Is the ordered pair [`([$x], [$y])`] a solution to the equation? [`[$A]x+[$B]y=[$C]`] -[____]{$popup} - +[____]{$popup} + END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); diff --git a/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Table_of_Values_1.pg b/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Table_of_Values_1.pg index edaf59ef33..6bddf61a1d 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Table_of_Values_1.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Table_of_Values_1.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGgraders.pl" @@ -56,7 +56,7 @@ $ans3 = Compute("($y3-$b)/$m"); $table = $BCENTER.begintable(5) . row( "\(x \)", $x0, $x1, $x2, ans_rule(5) ) . row( "\(y \)", ans_rule(5), ans_rule(5), ans_rule(5),$y3 ) . -endtable().$ECENTER; +endtable().$ECENTER; #For Solution $left = $y3-$b; @@ -67,7 +67,7 @@ $left = $y3-$b; BEGIN_PGML Complete the table of values for [` y = [$f] `]. -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* [@ $table @]*** END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Table_of_Values_2.pg b/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Table_of_Values_2.pg index 55c330cee5..67c2a6714e 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Table_of_Values_2.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Equations_of_Lines/Table_of_Values_2.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGgraders.pl" @@ -35,7 +35,7 @@ TEXT(beginproblem()); # Setup Context("Numeric"); -Context()->variables->add(y => "Real"); +Context()->variables->add(y => "Real"); $a = non_zero_random(-6, 6); $b = non_zero_random(-6, 6); @@ -59,7 +59,7 @@ $ans3 = Compute("($c-$b*$y3)/$a")->reduce; $table = $BCENTER.begintable(5) . row( "\(x \)", $x0, $x1, $x2, ans_rule(5) ) . row( "\(y \)", ans_rule(5), ans_rule(5), ans_rule(5),$y3 ) . -endtable().$ECENTER; +endtable().$ECENTER; #For Solution $right0 = $c-$a*$x0; @@ -76,7 +76,7 @@ $l3 = $b*$y3; BEGIN_PGML Complete the table of values for [` [$left] = [$c] `]. -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* [@ $table @]*** END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Fractions/Add_Fractions_1.pg b/Contrib/CCCS/QuantitativeLiteracy/Fractions/Add_Fractions_1.pg index 0f05af8769..e3f1b162dd 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Fractions/Add_Fractions_1.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Fractions/Add_Fractions_1.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -54,7 +54,7 @@ Add the fractions. Make sure your answer is reduced to lowest terms. [`` \frac{[$a]}{[$b]} + \frac{[$c]}{[$d]}= ``] - Answer: [_______________]{$ans} [@ AnswerFormatHelp("numeric") @]* + Answer: [_______________]{$ans} [@ helpLink("numeric") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Fractions/Add_Fractions_2.pg b/Contrib/CCCS/QuantitativeLiteracy/Fractions/Add_Fractions_2.pg index e15c6b0c9e..9eaa2ea640 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Fractions/Add_Fractions_2.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Fractions/Add_Fractions_2.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -54,7 +54,7 @@ Add the fractions. Make sure your answer is reduced to lowest terms. [`` \frac{[$a]}{[$b]} + \frac{[$c]}{[$d]}= ``] - Answer: [_______________]{$ans} [@ AnswerFormatHelp("numeric") @]* + Answer: [_______________]{$ans} [@ helpLink("numeric") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Fractions/Divide_Fractions_1.pg b/Contrib/CCCS/QuantitativeLiteracy/Fractions/Divide_Fractions_1.pg index 7b18cc4ac5..246a67e768 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Fractions/Divide_Fractions_1.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Fractions/Divide_Fractions_1.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -54,7 +54,7 @@ Divide the fractions. Make sure your answer is reduced to lowest terms. [`` \frac{[$a]}{[$b]} \div \frac{[$c]}{[$d]}= ``] - Answer: [_______________]{$ans} [@ AnswerFormatHelp("numeric") @]* + Answer: [_______________]{$ans} [@ helpLink("numeric") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Fractions/Divide_Fractions_2.pg b/Contrib/CCCS/QuantitativeLiteracy/Fractions/Divide_Fractions_2.pg index 47d6d453cc..1ad218d1d0 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Fractions/Divide_Fractions_2.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Fractions/Divide_Fractions_2.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -54,7 +54,7 @@ Divide the fractions. Make sure your answer is reduced to lowest terms. [`` \frac{\dfrac{[$a]}{[$b]}}{\dfrac{[$c]}{[$d]}}= ``] - Answer: [_______________]{$ans} [@ AnswerFormatHelp("numeric") @]* + Answer: [_______________]{$ans} [@ helpLink("numeric") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Fractions/Divide_Fractions_3.pg b/Contrib/CCCS/QuantitativeLiteracy/Fractions/Divide_Fractions_3.pg index 8325c15eaf..7c226d047f 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Fractions/Divide_Fractions_3.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Fractions/Divide_Fractions_3.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -53,7 +53,7 @@ Divide. Make sure your answer is reduced to lowest terms. [`` \frac{[$c]}{\frac{[$a]}{[$b]}}= ``] - Answer: [_______________]{$ans} [@ AnswerFormatHelp("numeric") @]* + Answer: [_______________]{$ans} [@ helpLink("numeric") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Fractions/Divide_Fractions_4.pg b/Contrib/CCCS/QuantitativeLiteracy/Fractions/Divide_Fractions_4.pg index bb912e9974..eaffb4546f 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Fractions/Divide_Fractions_4.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Fractions/Divide_Fractions_4.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -54,7 +54,7 @@ Divide. Make sure your answer is reduced to lowest terms. [`` \frac{\frac{[$a]}{[$b]}}{[$c]}= ``] - Answer: [_______________]{$ans} [@ AnswerFormatHelp("numeric") @]* + Answer: [_______________]{$ans} [@ helpLink("numeric") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Fractions/Multiply_Fractions_1.pg b/Contrib/CCCS/QuantitativeLiteracy/Fractions/Multiply_Fractions_1.pg index 2c163003bb..3f7cd3a1e6 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Fractions/Multiply_Fractions_1.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Fractions/Multiply_Fractions_1.pg @@ -22,7 +22,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -58,7 +58,7 @@ Multiply the fractions. Make sure your answer is reduced to lowest terms. [`` \frac{[$a]}{[$b]} \cdot \frac{[$c]}{[$d]}= ``] - Answer: [_______________]{$ans} [@ AnswerFormatHelp("numeric") @]* + Answer: [_______________]{$ans} [@ helpLink("numeric") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Fractions/Multiply_Fractions_2.pg b/Contrib/CCCS/QuantitativeLiteracy/Fractions/Multiply_Fractions_2.pg index 711f63dd91..642b55fa32 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Fractions/Multiply_Fractions_2.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Fractions/Multiply_Fractions_2.pg @@ -22,7 +22,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -63,7 +63,7 @@ Multiply the fractions. Make sure your answer is reduced to lowest terms. [`` \frac{[$e]}{[$b]} \times \frac{[$c]}{[$f]}= ``] - Answer: [_______________]{$ans} [@ AnswerFormatHelp("numeric") @]* + Answer: [_______________]{$ans} [@ helpLink("numeric") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Fractions/Multiply_Fractions_3.pg b/Contrib/CCCS/QuantitativeLiteracy/Fractions/Multiply_Fractions_3.pg index b89d96be53..6b4406792b 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Fractions/Multiply_Fractions_3.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Fractions/Multiply_Fractions_3.pg @@ -22,7 +22,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -61,7 +61,7 @@ Multiply the fractions. Make sure your answer is reduced to lowest terms. [`` \Big( \frac{[$a]}{[$e]} \Big) \Big( \frac{[$f]}{[$d]} \Big)= ``] - Answer: [_______________]{$ans} [@ AnswerFormatHelp("numeric") @]* + Answer: [_______________]{$ans} [@ helpLink("numeric") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Fractions/Multiply_Fractions_4.pg b/Contrib/CCCS/QuantitativeLiteracy/Fractions/Multiply_Fractions_4.pg index d70467c1e7..fec14046f7 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Fractions/Multiply_Fractions_4.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Fractions/Multiply_Fractions_4.pg @@ -22,7 +22,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -55,7 +55,7 @@ Multiply. Make sure your answer is reduced to lowest terms. [`` [$c] \Big( \frac{[$a]}{[$b]} \Big)= ``] - Answer: [_______________]{$ans} [@ AnswerFormatHelp("numeric") @]* + Answer: [_______________]{$ans} [@ helpLink("numeric") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Fractions/Simplify_Fractions_1.pg b/Contrib/CCCS/QuantitativeLiteracy/Fractions/Simplify_Fractions_1.pg index de5a82b8a4..4bf1afac51 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Fractions/Simplify_Fractions_1.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Fractions/Simplify_Fractions_1.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -61,7 +61,7 @@ Reduce the fraction to lowest terms. [`` \frac{[$e]}{[$f]}= ``] - Reduced Fraction: [_______________]{$ans} [@ AnswerFormatHelp("numeric") @]* + Reduced Fraction: [_______________]{$ans} [@ helpLink("numeric") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Fractions/Simplify_Fractions_2.pg b/Contrib/CCCS/QuantitativeLiteracy/Fractions/Simplify_Fractions_2.pg index d1807912f6..c9b63f89f3 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Fractions/Simplify_Fractions_2.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Fractions/Simplify_Fractions_2.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -61,7 +61,7 @@ Reduce the fraction to lowest terms. [`` \frac{[$e]}{[$f]}= ``] - Reduced Fraction: [_______________]{$ans} [@ AnswerFormatHelp("numeric") @]* + Reduced Fraction: [_______________]{$ans} [@ helpLink("numeric") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Fractions/Simplify_Fractions_3.pg b/Contrib/CCCS/QuantitativeLiteracy/Fractions/Simplify_Fractions_3.pg index 05f76f4568..9748a814fa 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Fractions/Simplify_Fractions_3.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Fractions/Simplify_Fractions_3.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -61,7 +61,7 @@ Reduce the fraction to lowest terms. [`` \frac{[$e]}{[$f]}= ``] - Reduced Fraction: [_______________]{$ans} [@ AnswerFormatHelp("numeric") @]* + Reduced Fraction: [_______________]{$ans} [@ helpLink("numeric") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Fractions/Simplify_Fractions_4.pg b/Contrib/CCCS/QuantitativeLiteracy/Fractions/Simplify_Fractions_4.pg index b4a772c559..109a034e41 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Fractions/Simplify_Fractions_4.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Fractions/Simplify_Fractions_4.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -60,7 +60,7 @@ Reduce the fraction to lowest terms. [`` \frac{[$e]}{[$f]}= ``] - Reduced Fraction: [_______________]{$ans} [@ AnswerFormatHelp("numeric") @]* + Reduced Fraction: [_______________]{$ans} [@ helpLink("numeric") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Fractions/Simplify_Fractions_5.pg b/Contrib/CCCS/QuantitativeLiteracy/Fractions/Simplify_Fractions_5.pg index c258a28e56..316c396075 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Fractions/Simplify_Fractions_5.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Fractions/Simplify_Fractions_5.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -58,7 +58,7 @@ Reduce the fraction to lowest terms. [`` \frac{[$e]}{[$f]}= ``] - Reduced Fraction: [_______________]{$ans} [@ AnswerFormatHelp("numeric") @]* + Reduced Fraction: [_______________]{$ans} [@ helpLink("numeric") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Fractions/Subtract_Fractions_1.pg b/Contrib/CCCS/QuantitativeLiteracy/Fractions/Subtract_Fractions_1.pg index bf3076aea7..dfab278b92 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Fractions/Subtract_Fractions_1.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Fractions/Subtract_Fractions_1.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -54,7 +54,7 @@ Subtract the fractions. Make sure your answer is reduced to lowest terms. [`` \frac{[$a]}{[$b]} - \frac{[$c]}{[$d]}= ``] - Answer: [_______________]{$ans} [@ AnswerFormatHelp("numeric") @]* + Answer: [_______________]{$ans} [@ helpLink("numeric") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Fractions/Subtract_Fractions_2.pg b/Contrib/CCCS/QuantitativeLiteracy/Fractions/Subtract_Fractions_2.pg index a893ec7820..b3c02446db 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Fractions/Subtract_Fractions_2.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Fractions/Subtract_Fractions_2.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -54,7 +54,7 @@ Subtract the fractions. Make sure your answer is reduced to lowest terms. [`` \frac{[$a]}{[$b]} - \frac{[$c]}{[$d]}= ``] - Answer: [_______________]{$ans} [@ AnswerFormatHelp("numeric") @]* + Answer: [_______________]{$ans} [@ helpLink("numeric") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_2.7/OpenStax_IA_2.7_438.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_2.7/OpenStax_IA_2.7_438.pg index c70d76e38e..e157fb2b79 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_2.7/OpenStax_IA_2.7_438.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_2.7/OpenStax_IA_2.7_438.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -57,10 +57,10 @@ $m2 = -$n - $d; # Main text BEGIN_PGML -Solve [`[$f]=[$a] `]. If there is more than one correct answer, enter a comma +Solve [`[$f]=[$a] `]. If there is more than one correct answer, enter a comma separated list. If there is no solution, enter NONE. -[`x=`] [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_________________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_2.7/OpenStax_IA_2.7_441.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_2.7/OpenStax_IA_2.7_441.pg index 120b05d9a1..ce2847fb73 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_2.7/OpenStax_IA_2.7_441.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_2.7/OpenStax_IA_2.7_441.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl" @@ -58,10 +58,10 @@ $m2 = $n - $d; # Main text BEGIN_PGML -Solve [`[$f]=[$a] `]. If there is more than one correct answer, enter a comma +Solve [`[$f]=[$a] `]. If there is more than one correct answer, enter a comma separated list. If there is no solution, enter NONE. -[`x=`] [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_________________]{$ans} [@ helpLink("numbers") @]* @@ -80,7 +80,7 @@ Both -[$n] and [$n] have an absolute value of [$n], so there are two solutions. [`[$c]x + [$d] = -[$n]`] and [`[$c]x + [$d] = [$n]`] -Subtract [$d] from both sides and divide by [$c]. +Subtract [$d] from both sides and divide by [$c]. [`[$c]x = [$m1]`] and [`[$c]x = [$m2]`] diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_2.7/OpenStax_IA_2.7_443.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_2.7/OpenStax_IA_2.7_443.pg index 2c39c643e6..1ccc33b8ca 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_2.7/OpenStax_IA_2.7_443.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_2.7/OpenStax_IA_2.7_443.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl" @@ -58,10 +58,10 @@ $RHS2 = $m - $c; # Main text BEGIN_PGML -Solve [`[$f]=[$e] `]. If there is more than one correct answer, enter a comma +Solve [`[$f]=[$e] `]. If there is more than one correct answer, enter a comma separated list. If there is no solution, enter NONE. -[`x=`] [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_________________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_2.7/OpenStax_IA_2.7_447.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_2.7/OpenStax_IA_2.7_447.pg index ac052723f8..42a33f2b4b 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_2.7/OpenStax_IA_2.7_447.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_2.7/OpenStax_IA_2.7_447.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl" @@ -58,10 +58,10 @@ $RHS2 = $m - $c; # Main text BEGIN_PGML -Solve [`[$f]=[$e] `]. If there is more than one correct answer, enter a comma +Solve [`[$f]=[$e] `]. If there is more than one correct answer, enter a comma separated list. If there is no solution, enter NONE. -[`x=`] [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_________________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_2.7/OpenStax_IA_2.7_449.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_2.7/OpenStax_IA_2.7_449.pg index 04c037af6a..9eb1a7dbc1 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_2.7/OpenStax_IA_2.7_449.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_2.7/OpenStax_IA_2.7_449.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -53,10 +53,10 @@ $RHS = $a - $b; # Main text BEGIN_PGML -Solve [`[$f]=[$a] `]. If there is more than one correct answer, enter a comma +Solve [`[$f]=[$a] `]. If there is more than one correct answer, enter a comma separated list. If there is no solution, enter NONE. -[`x=`] [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_________________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_2.7/OpenStax_IA_2.7_451.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_2.7/OpenStax_IA_2.7_451.pg index a90f793c0a..a8f4593079 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_2.7/OpenStax_IA_2.7_451.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_2.7/OpenStax_IA_2.7_451.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -49,10 +49,10 @@ $RHS = $a - $b; # Main text BEGIN_PGML -Solve [`\mid \frac{1}{[$c]}x + [$d] \mid + [$b] =[$a] `]. If there is more than one correct answer, enter a comma +Solve [`\mid \frac{1}{[$c]}x + [$d] \mid + [$b] =[$a] `]. If there is more than one correct answer, enter a comma separated list. If there is no solution, enter NONE. -[`x=`] [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_________________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_3.5/OpenStax_IA_3.5_330.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_3.5/OpenStax_IA_3.5_330.pg index 69d82edadb..0f37d1e49a 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_3.5/OpenStax_IA_3.5_330.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_3.5/OpenStax_IA_3.5_330.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGchoicemacros.pl", diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_3.5/OpenStax_IA_3.5_331.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_3.5/OpenStax_IA_3.5_331.pg index ef103c9c6e..b3c948a6dc 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_3.5/OpenStax_IA_3.5_331.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_3.5/OpenStax_IA_3.5_331.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGchoicemacros.pl", @@ -64,7 +64,7 @@ The daily cost to the printing company to print a book is modeled by the functio [`C([$i]) = `][______]{$ans2} -Explain your results by writing two sentences: one to explain what [`C(0)`] is telling you and the other to explain what [`C([$i])`] is telling you: +Explain your results by writing two sentences: one to explain what [`C(0)`] is telling you and the other to explain what [`C([$i])`] is telling you: [@ essay_box(8,60) @]* diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_3.5/OpenStax_IA_3.5_Functions1.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_3.5/OpenStax_IA_3.5_Functions1.pg index 230191b26f..2b3814ce52 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_3.5/OpenStax_IA_3.5_Functions1.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_3.5/OpenStax_IA_3.5_Functions1.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -69,15 +69,15 @@ $ans5=Formula("$b*(a+$k)**2+$c")->reduce; BEGIN_PGML Evaluate [`f(x)=[$f]`] at the following values: -+ [`f([$d])=`] [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* ++ [`f([$d])=`] [_______________]{$ans1} [@ helpLink("numbers") @]* -+ [`f([$e])=`] [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* ++ [`f([$e])=`] [_______________]{$ans2} [@ helpLink("numbers") @]* -+ [`f(a)=`] [_______________]{$ans3} [@ AnswerFormatHelp("formulas") @]* ++ [`f(a)=`] [_______________]{$ans3} [@ helpLink("formulas") @]* -+ [`f([$k]a)=`] [_______________]{$ans4} [@ AnswerFormatHelp("formulas") @]* ++ [`f([$k]a)=`] [_______________]{$ans4} [@ helpLink("formulas") @]* -+ [`f(a + [$k])=`] [_______________]{$ans5} [@ AnswerFormatHelp("formulas") @]* ++ [`f(a + [$k])=`] [_______________]{$ans5} [@ helpLink("formulas") @]* END_PGML @@ -103,7 +103,7 @@ BEGIN_PGML_SOLUTION [`= [$ans2]`] -+ [`f(a)=`] ++ [`f(a)=`] [`=[$ans3]`] diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_3.5/OpenStax_IA_3.5_Functions2.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_3.5/OpenStax_IA_3.5_Functions2.pg index 2ac2ca7c41..86ed69cbad 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_3.5/OpenStax_IA_3.5_Functions2.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_3.5/OpenStax_IA_3.5_Functions2.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -59,11 +59,11 @@ $ans3 = Formula("-$b*p**2 + $c*p")->reduce; BEGIN_PGML Evaluate [`f(x)=[$f]`] at the following values: -+ [`f([$d])=`] [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* ++ [`f([$d])=`] [_______________]{$ans1} [@ helpLink("numbers") @]* -+ [`f([$e])=`] [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* ++ [`f([$e])=`] [_______________]{$ans2} [@ helpLink("numbers") @]* -+ [`f(p)=`] [_______________]{$ans3} [@ AnswerFormatHelp("formulas") @]* ++ [`f(p)=`] [_______________]{$ans3} [@ helpLink("formulas") @]* END_PGML @@ -90,7 +90,7 @@ BEGIN_PGML_SOLUTION [`= [$ans2]`] -+ [`f(p)=`] ++ [`f(p)=`] [`=[$ans3]`] diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_3.6/OpenStax_IA_3.6_341.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_3.6/OpenStax_IA_3.6_341.pg index 7057ac592a..85db3adf5d 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_3.6/OpenStax_IA_3.6_341.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_3.6/OpenStax_IA_3.6_341.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -49,9 +49,9 @@ BEGIN_PGML Find the domain and range of [` f(x)=[$f] `]. Enter your solution in interval notation. -Domain: [_______________]{$ans} [@ AnswerFormatHelp("intervals") @]* +Domain: [_______________]{$ans} [@ helpLink("intervals") @]* -Range: [_______________]{$ans} [@ AnswerFormatHelp("intervals") @]* +Range: [_______________]{$ans} [@ helpLink("intervals") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_3.6/OpenStax_IA_3.6_373.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_3.6/OpenStax_IA_3.6_373.pg index e362f2174e..1683bfe94b 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_3.6/OpenStax_IA_3.6_373.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_3.6/OpenStax_IA_3.6_373.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -49,7 +49,7 @@ BEGIN_PGML Find the domain of [` f(x)=[$f] `]. Enter your solution in interval notation. -[_______________]{$ans} [@ AnswerFormatHelp("intervals") @]* +[_______________]{$ans} [@ helpLink("intervals") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_3.6/OpenStax_IA_3.6_379.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_3.6/OpenStax_IA_3.6_379.pg index 22ba071d09..eb8083e883 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_3.6/OpenStax_IA_3.6_379.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_3.6/OpenStax_IA_3.6_379.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserPopUp.pl", "PGML.pl", @@ -90,7 +90,7 @@ BEGIN_TEXT $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>400,height=>400,tex_size=>800 ) \} $BR (Click on graph to enlarge) @@ -103,15 +103,15 @@ Context()->normalStrings; BEGIN_PGML Use the graph to find the following. Give the domain and range in interval notation. -(a) [`f([$x1]) = `] [_______________]{$y1} [@ AnswerFormatHelp("numbers") @]* +(a) [`f([$x1]) = `] [_______________]{$y1} [@ helpLink("numbers") @]* -(b) [`f([$x2]) = `] [_______________]{$y2} [@ AnswerFormatHelp("numbers") @]* +(b) [`f([$x2]) = `] [_______________]{$y2} [@ helpLink("numbers") @]* -(c) [`f([$x3]) = `] [_______________]{$y3} [@ AnswerFormatHelp("numbers") @]* +(c) [`f([$x3]) = `] [_______________]{$y3} [@ helpLink("numbers") @]* -(d) Find the domain. Write it in interval notation. [________]{$domain} [@ AnswerFormatHelp("intervals") @]* +(d) Find the domain. Write it in interval notation. [________]{$domain} [@ helpLink("intervals") @]* -(e) Find the range. Write it in interval notation. [________]{$range} [@ AnswerFormatHelp("intervals") @]* +(e) Find the range. Write it in interval notation. [________]{$range} [@ helpLink("intervals") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_3.6/OpenStax_IA_3.6_383.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_3.6/OpenStax_IA_3.6_383.pg index 68558e2d6e..f91bb9e84b 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_3.6/OpenStax_IA_3.6_383.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_3.6/OpenStax_IA_3.6_383.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserPopUp.pl", "PGML.pl", @@ -83,7 +83,7 @@ BEGIN_TEXT $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>400,height=>400,tex_size=>800 ) \} $BR (Click on graph to enlarge) @@ -94,13 +94,13 @@ END_TEXT Context()->normalStrings; BEGIN_PGML -Use the graph to find the following. +Use the graph to find the following. -(a) [`f(0) = `] [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +(a) [`f(0) = `] [_______________]{$ans1} [@ helpLink("numbers") @]* -(b) [`f([$a2]) = `] [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +(b) [`f([$a2]) = `] [_______________]{$ans2} [@ helpLink("numbers") @]* -(c) [`f([$a3]) = `] [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +(c) [`f([$a3]) = `] [_______________]{$ans2} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_3.6/OpenStax_IA_3.6_385.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_3.6/OpenStax_IA_3.6_385.pg index 7955215483..5bf2bd8ec2 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_3.6/OpenStax_IA_3.6_385.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_3.6/OpenStax_IA_3.6_385.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserPopUp.pl", "PGML.pl", @@ -80,7 +80,7 @@ BEGIN_TEXT $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>400,height=>400,tex_size=>800 ) \} $BR (Click on graph to enlarge) @@ -93,15 +93,15 @@ Context()->normalStrings; BEGIN_PGML Use the graph to find the following. Give the domain and range in interval notation. -(a) [`f(0) = `] [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +(a) [`f(0) = `] [_______________]{$ans1} [@ helpLink("numbers") @]* -(b) [`f(-[$a]) = `] [_______________]{$b} [@ AnswerFormatHelp("numbers") @]* +(b) [`f(-[$a]) = `] [_______________]{$b} [@ helpLink("numbers") @]* -(c) [`f([$a]) = `] [_______________]{$b} [@ AnswerFormatHelp("numbers") @]* +(c) [`f([$a]) = `] [_______________]{$b} [@ helpLink("numbers") @]* -(d) Find the domain. Write it in interval notation. [________]{$domain} [@ AnswerFormatHelp("intervals") @]* +(d) Find the domain. Write it in interval notation. [________]{$domain} [@ helpLink("intervals") @]* -(e) Find the range. Write it in interval notation. [________]{$range} [@ AnswerFormatHelp("intervals") @]* +(e) Find the range. Write it in interval notation. [________]{$range} [@ helpLink("intervals") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_4.1/OpenStax_IA_4.1_30.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_4.1/OpenStax_IA_4.1_30.pg index 6014d662b9..5f857c5f3a 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_4.1/OpenStax_IA_4.1_30.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_4.1/OpenStax_IA_4.1_30.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -79,11 +79,11 @@ $Combine = Formula("$Coeff*y +$m*$d")->reduce; # Main text BEGIN_PGML -Solve the system using the substitution method. +Solve the system using the substitution method. ->>[` [$f] = [$d] `]<< +>>[` [$f] = [$d] `]<< >>[` [$g] = [$p] `]<< - + Select the number of solutions. If there is one solution, enter it as a point (a, b), in the answer blank. [@ $radio->buttons() @]* diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_4.1/OpenStax_IA_4.1_31.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_4.1/OpenStax_IA_4.1_31.pg index 934d717226..73adca2568 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_4.1/OpenStax_IA_4.1_31.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_4.1/OpenStax_IA_4.1_31.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -85,11 +85,11 @@ $LHS = Compute("$p - $n*$d/$c"); # Main text BEGIN_PGML -Solve the system using the substitution method. +Solve the system using the substitution method. ->>[` [$f] = [$d] `]<< +>>[` [$f] = [$d] `]<< >>[` [$g] = [$p] `]<< - + Select the number of solutions. If there is one solution, enter it as a point (a, b), in the answer blank. [@ $radio->buttons() @]* diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_4.1/OpenStax_IA_4.1_32.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_4.1/OpenStax_IA_4.1_32.pg index bcf713f725..7cdaf74a52 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_4.1/OpenStax_IA_4.1_32.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_4.1/OpenStax_IA_4.1_32.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -87,11 +87,11 @@ $LHS = Compute("$p - $n*$d/$c"); # Main text BEGIN_PGML -Solve the system using the substitution method. +Solve the system using the substitution method. ->>[` [$f] = [$d] `]<< +>>[` [$f] = [$d] `]<< >>[` [$g] = [$p] `]<< - + Select the number of solutions. If there is one solution, enter it as a point (a, b), in the answer blank. [@ $radio->buttons() @]* diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_4.1/OpenStax_IA_4.1_33.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_4.1/OpenStax_IA_4.1_33.pg index 35171ff575..8f5f5ba1d5 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_4.1/OpenStax_IA_4.1_33.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_4.1/OpenStax_IA_4.1_33.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -84,11 +84,11 @@ $LHS = Compute("$p - $n*$d"); # Main text BEGIN_PGML -Solve the system using the substitution method. +Solve the system using the substitution method. ->>[` [$f] = [$d] `]<< +>>[` [$f] = [$d] `]<< >>[` [$g] = [$p] `]<< - + Select the number of solutions. If there is one solution, enter it as a point (a, b), in the answer blank. [@ $radio->buttons() @]* diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_4.1/OpenStax_IA_4.1_34.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_4.1/OpenStax_IA_4.1_34.pg index b902cc4077..687758f20c 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_4.1/OpenStax_IA_4.1_34.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_4.1/OpenStax_IA_4.1_34.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -85,11 +85,11 @@ $LHS = Compute("$p - $n*$d"); # Main text BEGIN_PGML -Solve the system using the substitution method. +Solve the system using the substitution method. ->>[` y = [$f] `]<< +>>[` y = [$f] `]<< >>[` [$g] = [$p] `]<< - + Select the number of solutions. If there is one solution, enter it as a point (a, b), in the answer blank. [@ $radio->buttons() @]* diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_4.1/OpenStax_IA_4.1_40.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_4.1/OpenStax_IA_4.1_40.pg index 45299dc111..be73bef356 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_4.1/OpenStax_IA_4.1_40.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_4.1/OpenStax_IA_4.1_40.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -71,12 +71,12 @@ last => ["There is one solution at"], # can be a list # Main text BEGIN_PGML -Solve the system using the substitution method. +Solve the system using the substitution method. ->>[`` \frac{[$r]}{3}x+\frac{[$c]}{3}y = [$d] ``]<< +>>[`` \frac{[$r]}{3}x+\frac{[$c]}{3}y = [$d] ``]<< >>[`` \frac{[$m]}{5}x+\frac{[$n]}{5}y = [$p] ``]<< - + Select the number of solutions. If there is one solution, enter it as a point (a, b), in the answer blank. [@ $radio->buttons() @]* diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_4.1/OpenStax_IA_4.1_41.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_4.1/OpenStax_IA_4.1_41.pg index e3ebe2cbf5..334e6f06a5 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_4.1/OpenStax_IA_4.1_41.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_4.1/OpenStax_IA_4.1_41.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -67,8 +67,8 @@ $ans = String(""); BEGIN_PGML Solve the system using the method of substitution. - ->>[`` \frac{[$a]}{2}x-\frac{[$b]}{2}y = [$c2] ``]<< + +>>[`` \frac{[$a]}{2}x-\frac{[$b]}{2}y = [$c2] ``]<< >>[`` -\frac{[$da]}{4}x+\frac{[$db]}{4}y = -[$dc] ``]<< diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_4.1/OpenStax_IA_4.1_44.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_4.1/OpenStax_IA_4.1_44.pg index ad79f0e667..7e7db71d3d 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_4.1/OpenStax_IA_4.1_44.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_4.1/OpenStax_IA_4.1_44.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -66,12 +66,12 @@ $ans = String(""); # Main text BEGIN_PGML -Solve the system using the substitution method. +Solve the system using the substitution method. ->>[` [$f] = [$c] `]<< +>>[` [$f] = [$c] `]<< >>[` [$g] = [$multc] `]<< - + Select the number of solutions. If there is one solution, enter it as a point (a, b), in the answer blank. [___]{$radio} diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_4.1/OpenStax_IA_4.1_47.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_4.1/OpenStax_IA_4.1_47.pg index 7c555152a1..655e1977b5 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_4.1/OpenStax_IA_4.1_47.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_4.1/OpenStax_IA_4.1_47.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -73,11 +73,11 @@ last => ["There is one solution at"], # can be a list # Main text BEGIN_PGML -Solve the system using the elimination method. +Solve the system using the elimination method. ->>[` [$f] = [$d] `]<< +>>[` [$f] = [$d] `]<< >>[` [$g] = [$p] `]<< - + Select the number of solutions. If there is one solution, enter it as a point (a, b), in the answer blank. [@ $radio->buttons() @]* diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_4.1/OpenStax_IA_4.1_48.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_4.1/OpenStax_IA_4.1_48.pg index 8e3bd7802a..f8d054874e 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_4.1/OpenStax_IA_4.1_48.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_4.1/OpenStax_IA_4.1_48.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -74,11 +74,11 @@ last => ["There is one solution at"], # can be a list # Main text BEGIN_PGML -Solve the system using the elimination method. +Solve the system using the elimination method. ->>[` [$f] = [$d] `]<< +>>[` [$f] = [$d] `]<< >>[` [$g] = [$p] `]<< - + Select the number of solutions. If there is one solution, enter it as a point (a, b), in the answer blank. [@ $radio->buttons() @]* diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_4.1/OpenStax_IA_4.1_49.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_4.1/OpenStax_IA_4.1_49.pg index b7d4496fe2..895f6209ed 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_4.1/OpenStax_IA_4.1_49.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_4.1/OpenStax_IA_4.1_49.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -74,11 +74,11 @@ last => ["There is one solution at"], # can be a list # Main text BEGIN_PGML -Solve the system using the elimination method. +Solve the system using the elimination method. ->>[` [$f] = [$d] `]<< +>>[` [$f] = [$d] `]<< >>[` [$g] = [$p] `]<< - + Select the number of solutions. If there is one solution, enter it as a point (a, b), in the answer blank. [@ $radio->buttons() @]* diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_4.1/OpenStax_IA_4.1_5.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_4.1/OpenStax_IA_4.1_5.pg index 868a8eff41..bf279948a2 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_4.1/OpenStax_IA_4.1_5.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_4.1/OpenStax_IA_4.1_5.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -81,7 +81,7 @@ BEGIN_TEXT $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>400,height=>400,tex_size=>800 ) \} $BR (Click on graph to enlarge) @@ -96,7 +96,7 @@ Context()->normalStrings; BEGIN_PGML A linear system is shown in the graph above. Use the graph to find the solution of the system. -The solution to the system is: [_______________]{$ans} [@ AnswerFormatHelp("points") @]* +The solution to the system is: [_______________]{$ans} [@ helpLink("points") @]* diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_4.1/OpenStax_IA_4.1_50.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_4.1/OpenStax_IA_4.1_50.pg index 47f1827369..b199b2e625 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_4.1/OpenStax_IA_4.1_50.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_4.1/OpenStax_IA_4.1_50.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -74,11 +74,11 @@ last => ["There is one solution at"], # can be a list # Main text BEGIN_PGML -Solve the system using the elimination method. +Solve the system using the elimination method. ->>[` [$f] = [$d] `]<< +>>[` [$f] = [$d] `]<< >>[` [$g] = [$p] `]<< - + Select the number of solutions. If there is one solution, enter it as a point (a, b), in the answer blank. [@ $radio->buttons() @]* diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_4.1/OpenStax_IA_4.1_51.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_4.1/OpenStax_IA_4.1_51.pg index 53a2e6aa5b..a7e48526a5 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_4.1/OpenStax_IA_4.1_51.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_4.1/OpenStax_IA_4.1_51.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -76,11 +76,11 @@ last => ["There is one solution at"], # can be a list # Main text BEGIN_PGML -Solve the system using the elimination method. +Solve the system using the elimination method. ->>[` [$f] = [$d] `]<< +>>[` [$f] = [$d] `]<< >>[` [$g] = [$p] `]<< - + Select the number of solutions. If there is one solution, enter it as a point (a, b), in the answer blank. [@ $radio->buttons() @]* diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_4.1/OpenStax_IA_4.1_56.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_4.1/OpenStax_IA_4.1_56.pg index e59877f77f..f7b44818d9 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_4.1/OpenStax_IA_4.1_56.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_4.1/OpenStax_IA_4.1_56.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -86,14 +86,14 @@ last => ["There is one solution at"], # can be a list # Main text BEGIN_PGML -Solve the system using the elimination method. +Solve the system using the elimination method. ->>[`` [$a1]x+[$b1]y = [$c1] ``]<< +>>[`` [$a1]x+[$b1]y = [$c1] ``]<< >>[` [$g] = [$p] `]<< - + Select the number of solutions. If there is one solution, enter it as a point (a, b), in the answer blank. [@ $radio->buttons() @]* diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_4.1/OpenStax_IA_4.1_57.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_4.1/OpenStax_IA_4.1_57.pg index 87e722f0f6..ca63a7deb2 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_4.1/OpenStax_IA_4.1_57.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_4.1/OpenStax_IA_4.1_57.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -66,12 +66,12 @@ $ans = String(""); # Main text BEGIN_PGML -Solve the system using the elimination method. +Solve the system using the elimination method. ->>[` [$f] = [$c] `]<< +>>[` [$f] = [$c] `]<< >>[` [$g] = [$multc] `]<< - + Select the number of solutions. If there is one solution, enter it as a point (a, b), in the answer blank. [____]{$radio} diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_4.1/OpenStax_IA_4.1_6.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_4.1/OpenStax_IA_4.1_6.pg index e80ec5f156..9691de0a35 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_4.1/OpenStax_IA_4.1_6.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_4.1/OpenStax_IA_4.1_6.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -83,7 +83,7 @@ add_functions($gr[3], for $i (0..3) { - plot_functions( $gr[$i], $f[$i]); + plot_functions( $gr[$i], $f[$i]); $fig[$i]=image(insertGraph($gr[$i]), width=>200,height=>200,tex_size=>450); } @@ -105,7 +105,7 @@ row( A, B) . row( $fig[0], $fig[1]) . row( C, D) . row($fig[2], $fig[3]) . -endtable().$ECENTER; +endtable().$ECENTER; #done with graphs @@ -121,7 +121,7 @@ $ans = List( Point("($a,$b)")); BEGIN_PGML Solve the system by graphing. ->>[` [$h] = [$d] `]<< +>>[` [$h] = [$d] `]<< >>[` [$g] = [$p] `]<< Select the image that best matches your graph the system. @@ -130,7 +130,7 @@ Select the image that best matches your graph the system. The image that matches my graphs is: [_____]{$popup} -The solution to the system is: [_______________]{$ans} [@ AnswerFormatHelp("points") @]* +The solution to the system is: [_______________]{$ans} [@ helpLink("points") @]* diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_4.1/OpenStax_IA_4.1_61.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_4.1/OpenStax_IA_4.1_61.pg index ab2a04bd20..686dfc4e82 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_4.1/OpenStax_IA_4.1_61.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_4.1/OpenStax_IA_4.1_61.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -68,12 +68,12 @@ $ans = ""; # Main text BEGIN_PGML -Solve the system using the elimination method. +Solve the system using the elimination method. ->>[` [$f] = [$c] `]<< +>>[` [$f] = [$c] `]<< >>[` [$g] = [$dc] `]<< - + Select the number of solutions. If there is one solution, enter it as a point (a, b), in the answer blank. [____]{$radio} diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_4.2/OpenStax_IA_4.2_109.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_4.2/OpenStax_IA_4.2_109.pg index fe4391d6f5..cf88c34c43 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_4.2/OpenStax_IA_4.2_109.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_4.2/OpenStax_IA_4.2_109.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,9 +51,9 @@ $RHS = $total + $n; BEGIN_PGML Darrin is hanging [`[$total]`] feet of holiday garland on the three sides of fencing that enclose his front yard. The length is [`[$n]`] feet less than three times the width. Find the length and width of his yard. -Width: [_______________]{$ans1} feet [@ AnswerFormatHelp("numbers") @]* +Width: [_______________]{$ans1} feet [@ helpLink("numbers") @]* -Length: [_______________]{$ans2} feet [@ AnswerFormatHelp("numbers") @]* +Length: [_______________]{$ans2} feet [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_4.2/OpenStax_IA_4.2_112.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_4.2/OpenStax_IA_4.2_112.pg index a4263fb131..3d37bf9288 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_4.2/OpenStax_IA_4.2_112.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_4.2/OpenStax_IA_4.2_112.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl" @@ -60,7 +60,7 @@ $RHS = $n*$s1; BEGIN_PGML Sarah left Minneapolis heading east on the interstate at a speed of [`[$s1]`] mph. Her sister followed her on the same route, leaving [`[$n]`] hours later and driving at a rate of [`[$s2]`] mph. How long will it take for Sarah's sister to catch up to Sarah? (Round to the nearest tenth.) -Time needed to catch up: [_______________]{$ans1} hours [@ AnswerFormatHelp("numbers") @]* +Time needed to catch up: [_______________]{$ans1} hours [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_4.2/OpenStax_IA_4.2_116.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_4.2/OpenStax_IA_4.2_116.pg index f4dd32993a..66ab21fb11 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_4.2/OpenStax_IA_4.2_116.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_4.2/OpenStax_IA_4.2_116.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -55,9 +55,9 @@ $RHS = 5*$m; BEGIN_PGML The Jones family took a [`[$m]`] mile canoe ride down the Indian river in two hours. After lunch the return trip back up the river took three hours. Find the rate of the canoe in still water and the rate of the current. -Rate of the canoe in still water: [_______________]{$ans1} mph [@ AnswerFormatHelp("numbers") @]* +Rate of the canoe in still water: [_______________]{$ans1} mph [@ helpLink("numbers") @]* -Rate of the current: [_______________]{$ans2} mph [@ AnswerFormatHelp("numbers") @]* +Rate of the current: [_______________]{$ans2} mph [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_4.2/OpenStax_IA_4.2_120.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_4.2/OpenStax_IA_4.2_120.pg index 83f1dedaf8..98adc1a7d1 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_4.2/OpenStax_IA_4.2_120.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_4.2/OpenStax_IA_4.2_120.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -55,9 +55,9 @@ $RHS = $miles1 + $miles2; BEGIN_PGML A small jet can fly [`[$miles1]`] miles in [`[$t]`] hours with a tailwind but only [`[$miles2]`] miles into a headwind. Find the speed of the jet in still air and the speed of the wind. -Speed of the jet in still air: [_______________]{$jet} mph [@ AnswerFormatHelp("numbers") @]* +Speed of the jet in still air: [_______________]{$jet} mph [@ helpLink("numbers") @]* -Speed of the wind: [_______________]{$wind} mph [@ AnswerFormatHelp("numbers") @]* +Speed of the wind: [_______________]{$wind} mph [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_4.2/OpenStax_IA_4.2_73.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_4.2/OpenStax_IA_4.2_73.pg index 10abadf3f5..4a292a7f88 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_4.2/OpenStax_IA_4.2_73.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_4.2/OpenStax_IA_4.2_73.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,9 +50,9 @@ $RHS = Compute("$sum + $n"); # Main text BEGIN_PGML -The sum of two numbers is [`[$sum]`]. One number is [`[$n]`] less than the other number. Enter the numbers as a comma separated list. +The sum of two numbers is [`[$sum]`]. One number is [`[$n]`] less than the other number. Enter the numbers as a comma separated list. -Numbers: [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +Numbers: [_______________]{$ans1} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_4.2/OpenStax_IA_4.2_81.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_4.2/OpenStax_IA_4.2_81.pg index 9280704f84..92f9642ae9 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_4.2/OpenStax_IA_4.2_81.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_4.2/OpenStax_IA_4.2_81.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -58,7 +58,7 @@ $RHS = Compute("$base2 - $base1"); BEGIN_PGML Jackie has been offered positions by two cable companies. The first company pays a salary of [`$[$base1]`] and a commission of [`$[$comm1]`] for each cable package sold. The second pays a salary of [`$[$base2]`] plus a commission of [`$[$comm2]`] for each package sold. How many cable packages would need to be sold to make the total pay the same? -Number of Cable Packages: [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +Number of Cable Packages: [_______________]{$ans1} [@ helpLink("numbers") @]* @@ -69,7 +69,7 @@ END_PGML # Solution BEGIN_PGML_SOLUTION -Let y = total salary and x = number of cable packages sold. +Let y = total salary and x = number of cable packages sold. Then the first company's salary with x packages sold is: diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_4.2/OpenStax_IA_4.2_85.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_4.2/OpenStax_IA_4.2_85.pg index 3e50f55256..69de2e1042 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_4.2/OpenStax_IA_4.2_85.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_4.2/OpenStax_IA_4.2_85.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,9 +51,9 @@ $Coeff = $n + 1; BEGIN_PGML June needs [`[$total]`] gallons of punch for a party and has two different coolers to carry it in. The bigger coolers is [`[$n]`] times larger than the smaller cooler. How many gallons can each cooler hold? -Number of gallons in smaller cooler: [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +Number of gallons in smaller cooler: [_______________]{$ans1} [@ helpLink("numbers") @]* -Number of gallons in larger cooler: [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +Number of gallons in larger cooler: [_______________]{$ans2} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_4.2/OpenStax_IA_4.2_86.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_4.2/OpenStax_IA_4.2_86.pg index afb37d81dc..09c17f4e45 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_4.2/OpenStax_IA_4.2_86.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_4.2/OpenStax_IA_4.2_86.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -73,9 +73,9 @@ $RHS = Compute("$j1*$cal1 + $j2*$cal2"); BEGIN_PGML Shelly spent [`[$jog1]`] minutes jogging and [`[$bike1]`] minutes cycling and burned [`[$cal1]`] calories. The next day, she spent [`[$jog2]`] minutes jogging and [`[$bike2]`] minutes cycling and burned [`[$cal2]`] calories. How many calories were burned for each minute of jogging and how many for each minute of cycling? -Number of cal/min burned jogging: [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +Number of cal/min burned jogging: [_______________]{$ans1} [@ helpLink("numbers") @]* -Number of cal/min burned cycling: [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +Number of cal/min burned cycling: [_______________]{$ans2} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_4.2/OpenStax_IA_4.2_88.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_4.2/OpenStax_IA_4.2_88.pg index eadf45c1c8..c4c99f8174 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_4.2/OpenStax_IA_4.2_88.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_4.2/OpenStax_IA_4.2_88.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -70,9 +70,9 @@ $RHS = Compute("$Lthumb*$Ttotal - $Tthumb*$Ltotal"); BEGIN_PGML Troy and Lisa were shopping for school supplies. Troy bought [`[$Tnote]`] notebooks and [`[$Tthumb]`] thumb drives for [`$[$Ttotal]`]. Lisa bought [`[$Lnote]`] notebooks and [`[$Lthumb]`] thumb drives for [`$[$Ltotal]`]. Find the cost of each notebook and the cost of each thumb drive. -Cost of a notebook: $[_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +Cost of a notebook: $[_______________]{$ans1} [@ helpLink("numbers") @]* -Cost of a thumb drive: $[_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +Cost of a thumb drive: $[_______________]{$ans2} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_4.2/OpenStax_IA_4.2_92.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_4.2/OpenStax_IA_4.2_92.pg index 7138825c08..8ce5f85ca1 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_4.2/OpenStax_IA_4.2_92.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_4.2/OpenStax_IA_4.2_92.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -70,7 +70,7 @@ $RHS = Compute("$c2*$T1 - $T2*$c1"); BEGIN_PGML The total amount of sodium in [`[$h1]`] hot dogs and [`[$c1]`] cups of cottage cheese is [`[$T1]`] mg. The amount in [`[$h2]`] hot dogs and [`[$c2]`] cups of cottage cheese is [`[$T2]`] mg. How much sodium is in a hot dog? -Amount of sodium in a hot dog: [_______________]{$ans1}mg [@ AnswerFormatHelp("numbers") @]* +Amount of sodium in a hot dog: [_______________]{$ans1}mg [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_4.2/OpenStax_IA_4.2_95.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_4.2/OpenStax_IA_4.2_95.pg index d4e482e75e..5c494a4fc1 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_4.2/OpenStax_IA_4.2_95.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_4.2/OpenStax_IA_4.2_95.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,9 +50,9 @@ $Coeff = $n + 1; BEGIN_PGML Owen is making lemonade from concentrate. The number of quarts of water he needs is [`[$n]`] times the quarts of concentrate. How many quarts of water and how many quarts of concentrate will he need to make [`[$total]`] quarts of lemonade. -Number of quarts of water: [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +Number of quarts of water: [_______________]{$ans1} [@ helpLink("numbers") @]* -Number of quarts of concentrate: [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +Number of quarts of concentrate: [_______________]{$ans2} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_4.2/OpenStax_IA_4.3_126.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_4.2/OpenStax_IA_4.3_126.pg index 1f60b9ab43..fbc6c167e1 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_4.2/OpenStax_IA_4.3_126.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_4.2/OpenStax_IA_4.3_126.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -58,9 +58,9 @@ $Coeff = $a - $c; BEGIN_PGML Tickets to a Broadway show cost [`$[$a]`] for adults and [`$[$c]`] for children. The total receipts for [`[$n]`] tickets at one performance were [`$[$total]`]. How many adult and child tickets were sold? -Number of Adult tickets: [_______________]{$adult} [@ AnswerFormatHelp("numbers") @]* +Number of Adult tickets: [_______________]{$adult} [@ helpLink("numbers") @]* -Number of Child tickets: [_______________]{$child} [@ AnswerFormatHelp("numbers") @]* +Number of Child tickets: [_______________]{$child} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_4.2/OpenStax_IA_4.3_132.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_4.2/OpenStax_IA_4.3_132.pg index e92c458fda..7d318aad19 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_4.2/OpenStax_IA_4.3_132.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_4.2/OpenStax_IA_4.3_132.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -61,9 +61,9 @@ $RHS = $value + $constant; BEGIN_PGML Brandon has a cup of quarters and dimes with a total value of [`$[$value]`]. The number of quarters is [`[$n]`] less than [$word[$i]] times the number of dimes. How many quarters and how many dimes does Brandon have? -Number of quarters: [_______________]{$q} [@ AnswerFormatHelp("numbers") @]* +Number of quarters: [_______________]{$q} [@ helpLink("numbers") @]* -Number of dimes: [_______________]{$d} [@ AnswerFormatHelp("numbers") @]* +Number of dimes: [_______________]{$d} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_4.2/OpenStax_IA_4.3_136.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_4.2/OpenStax_IA_4.3_136.pg index 1e7bf28267..c08ddd06a5 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_4.2/OpenStax_IA_4.3_136.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_4.2/OpenStax_IA_4.3_136.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -59,9 +59,9 @@ $RHS = $value - $b1*$n; BEGIN_PGML A cashier has [`[$n]`] bills, all of which are [`$[$b1]`] or [`$[$b2]`] bills. The total value of the money is [`$[$value]`]. How many of each type of bill does the cashier have? -Number of [`$[$b1]`] bills: [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +Number of [`$[$b1]`] bills: [_______________]{$ans1} [@ helpLink("numbers") @]* -Number of [`$[$b2]`] bills: [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +Number of [`$[$b2]`] bills: [_______________]{$ans2} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_4.2/OpenStax_IA_4.3_150.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_4.2/OpenStax_IA_4.3_150.pg index 5e124764e0..22e79ad6d9 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_4.2/OpenStax_IA_4.3_150.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_4.2/OpenStax_IA_4.3_150.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -62,9 +62,9 @@ $RHS = $interest + $RHS1; BEGIN_PGML Hattie had [`$[$total]`] to invest and wants to earn [`$[$interest]`] in interest this year. She will put some of the money into an account that earns [`[$i1]%`] per year and the rest into an account that pays [`[$i2]%`] per year. How much money should she put into each account? -Amount in [`[$i1]%`] account: $[_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +Amount in [`[$i1]%`] account: $[_______________]{$ans1} [@ helpLink("numbers") @]* -Amount in [`[$i2]%`] account: $[_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +Amount in [`[$i2]%`] account: $[_______________]{$ans2} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_4.2/OpenStax_IA_4.3_154.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_4.2/OpenStax_IA_4.3_154.pg index a63bf2cab2..793d68d2e2 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_4.2/OpenStax_IA_4.3_154.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_4.2/OpenStax_IA_4.3_154.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -60,9 +60,9 @@ $RHS = $interest + $RHS1; BEGIN_PGML After four years in college Josie owes [`$[$total]`] in student loans. The interest rate on the federal loans is [`[$i1]%`] and the rate on the private loans is [`[$i2]%`]. The total interest she owes for one year was [`$[$interest]`]. What is the amount of each loan? -Amount of federal loan: $[_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +Amount of federal loan: $[_______________]{$ans1} [@ helpLink("numbers") @]* -Amount of private loan: $[_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +Amount of private loan: $[_______________]{$ans2} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_6.5/OpenStax_IA_6.5_283.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_6.5/OpenStax_IA_6.5_283.pg index dd50c7b5e4..34773750f5 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_6.5/OpenStax_IA_6.5_283.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_6.5/OpenStax_IA_6.5_283.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -61,11 +61,11 @@ $bc = $b*$c; # Main text BEGIN_PGML -Solve the quadratic equation [`[$right]=[$left] `] by factoring. If there is more -than one correct answer, enter a comma +Solve the quadratic equation [`[$right]=[$left] `] by factoring. If there is more +than one correct answer, enter a comma separated list. -[`x=`] [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_________________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_6.5/OpenStax_IA_6.5_285.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_6.5/OpenStax_IA_6.5_285.pg index 374a2964a5..b73ff6e413 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_6.5/OpenStax_IA_6.5_285.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_6.5/OpenStax_IA_6.5_285.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -62,11 +62,11 @@ $bc = $b*$c; # Main text BEGIN_PGML -Solve the quadratic equation [`[$right]=[$left] `] by factoring. If there is more -than one correct answer, enter a comma +Solve the quadratic equation [`[$right]=[$left] `] by factoring. If there is more +than one correct answer, enter a comma separated list. -[`x=`] [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_________________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_6.5/OpenStax_IA_6.5_289.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_6.5/OpenStax_IA_6.5_289.pg index 21bffbb5b6..72ef5ab92e 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_6.5/OpenStax_IA_6.5_289.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_6.5/OpenStax_IA_6.5_289.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl" @@ -58,11 +58,11 @@ $ans = List( $ans1, $ans2 ); # Main text BEGIN_PGML -Solve the quadratic equation [`[$right]=[$left] `] by factoring. If there is more -than one correct answer, enter a comma +Solve the quadratic equation [`[$right]=[$left] `] by factoring. If there is more +than one correct answer, enter a comma separated list. -[`x=`] [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_________________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_6.5/OpenStax_IA_6.5_295.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_6.5/OpenStax_IA_6.5_295.pg index a36b57a271..c55bfd467e 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_6.5/OpenStax_IA_6.5_295.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_6.5/OpenStax_IA_6.5_295.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -70,11 +70,11 @@ $LHS = Formula("x^2 + ($n+$m)*x + $n*$m")->reduce; # Main text BEGIN_PGML -Solve the quadratic equation [`[$right]=[$left] `] by factoring. If there is more -than one correct answer, enter a comma +Solve the quadratic equation [`[$right]=[$left] `] by factoring. If there is more +than one correct answer, enter a comma separated list. -[`x=`] [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_________________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_6.5/OpenStax_IA_6.5_296.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_6.5/OpenStax_IA_6.5_296.pg index f7f2a860d0..7ce5b8f6ab 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_6.5/OpenStax_IA_6.5_296.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_6.5/OpenStax_IA_6.5_296.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -64,11 +64,11 @@ $ans = List( -$a, ,-$b ); # Main text BEGIN_PGML -Solve the quadratic equation [`[$right]=[$left] `] by factoring. If there is more -than one correct answer, enter a comma +Solve the quadratic equation [`[$right]=[$left] `] by factoring. If there is more +than one correct answer, enter a comma separated list. -[`x=`] [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_________________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_6.5/OpenStax_IA_6.5_297.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_6.5/OpenStax_IA_6.5_297.pg index 4ff3197e3a..a4d456e439 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_6.5/OpenStax_IA_6.5_297.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_6.5/OpenStax_IA_6.5_297.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl" @@ -71,11 +71,11 @@ $prod = $first*$last; # Main text BEGIN_PGML -Solve the quadratic equation [`[$right]=[$left] `] by factoring. If there is more -than one correct answer, enter a comma +Solve the quadratic equation [`[$right]=[$left] `] by factoring. If there is more +than one correct answer, enter a comma separated list. -[`x=`] [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_________________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_6.5/OpenStax_IA_6.5_307.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_6.5/OpenStax_IA_6.5_307.pg index a253e2fb00..d0f5227b89 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_6.5/OpenStax_IA_6.5_307.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_6.5/OpenStax_IA_6.5_307.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl" @@ -63,11 +63,11 @@ $bc = $b*$c; # Main text BEGIN_PGML -Solve the quadratic equation [`[$right]=[$left] `] by factoring. If there is more -than one correct answer, enter a comma +Solve the quadratic equation [`[$right]=[$left] `] by factoring. If there is more +than one correct answer, enter a comma separated list. -[`x=`] [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_________________]{$ans} [@ helpLink("numbers") @]* @@ -82,7 +82,7 @@ Set one side to zero: [`[$first]x^3 + [$middle]x^2 + [$last]x = 0`] -Now we can solve by factoring. +Now we can solve by factoring. There is a GCF of [`x`]: diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_6.5/OpenStax_IA_6.5_308.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_6.5/OpenStax_IA_6.5_308.pg index 64500a6d1b..af9fa870fb 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_6.5/OpenStax_IA_6.5_308.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_6.5/OpenStax_IA_6.5_308.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -59,11 +59,11 @@ $ans = List( -$a, -$b, 0); # Main text BEGIN_PGML -Solve the quadratic equation [`[$right]=[$left] `] by factoring. If there is more -than one correct answer, enter a comma +Solve the quadratic equation [`[$right]=[$left] `] by factoring. If there is more +than one correct answer, enter a comma separated list. -[`x=`] [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_________________]{$ans} [@ helpLink("numbers") @]* @@ -78,7 +78,7 @@ Set one side to zero: [`[$equation] = 0`] -Now we can solve by factoring. +Now we can solve by factoring. There is a GCF of [`[$gcf]`] diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_6.5/OpenStax_IA_6.5_313.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_6.5/OpenStax_IA_6.5_313.pg index 13136fa6c7..6b7e3b9212 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_6.5/OpenStax_IA_6.5_313.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_6.5/OpenStax_IA_6.5_313.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextLimitedPoint.pl", @@ -71,11 +71,11 @@ For the function, [`f(x) = [$right]`] (a) Find when [`f(x) = [$c]`]. -[`x=`] [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_________________]{$ans} [@ helpLink("numbers") @]* (b) Use this information to find two points that lie on the graph of the function. Enter the points as a comma separated list of ordered pairs of the form (a, b). -[___________]{$points} [@ AnswerFormatHelp("points") @]* +[___________]{$points} [@ helpLink("points") @]* diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_6.5/OpenStax_IA_6.5_317.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_6.5/OpenStax_IA_6.5_317.pg index d5bc4294a5..0fc5f5b395 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_6.5/OpenStax_IA_6.5_317.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_6.5/OpenStax_IA_6.5_317.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "contextLimitedPoint.pl", "PGcourse.pl", @@ -72,15 +72,15 @@ For the function, (a) Find all zeros. If there is more than one zero, enter them as a comma separated list. -[`x=`] [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_________________]{$ans} [@ helpLink("numbers") @]* (b) Find all x-intercepts. If there is more than one, enter them as comma separated ordered pairs of the form (a, b), (c, d). -[`x`]-intercept(s): [_________________]{$xint} [@ AnswerFormatHelp("points") @]* +[`x`]-intercept(s): [_________________]{$xint} [@ helpLink("points") @]* (c) Find all y-intercepts. If there is more than one, enter them as comma separated ordered pairs of the for (a, b), (c, d). -[`y`]-intercept(s): [_________________]{$yint} [@ AnswerFormatHelp("points") @]* +[`y`]-intercept(s): [_________________]{$yint} [@ helpLink("points") @]* diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_6.5/OpenStax_IA_6.5_329.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_6.5/OpenStax_IA_6.5_329.pg index ce408a3976..b2bf27180a 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_6.5/OpenStax_IA_6.5_329.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_6.5/OpenStax_IA_6.5_329.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -62,7 +62,7 @@ $last = $end/2; BEGIN_PGML A pennant is shaped like a right triangle with hypotenuse [`[$h[$i]]`] feet. The length of one side of the pennant is [`[$n[$i]]`] feet longer than the length of the other side. Find the length of the two sides (legs) of the pennant. Enter your answers as a comma separated list. -Sides: [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +Sides: [_________________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_6.5/OpenStax_IA_6.5_333.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_6.5/OpenStax_IA_6.5_333.pg index d1183105da..31cc451d6c 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_6.5/OpenStax_IA_6.5_333.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_6.5/OpenStax_IA_6.5_333.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -71,11 +71,11 @@ Juli is going to launch a model rocket in her back yard. When she launches the (a) When will the rocket hit the ground? -[`t =`] [_________________]{$ans1}seconds [@ AnswerFormatHelp("numbers") @]* +[`t =`] [_________________]{$ans1}seconds [@ helpLink("numbers") @]* (b) When will the rocket be [`[$height]`] feet above the ground? -[`t =`] [_________________]{$ans2}seconds [@ AnswerFormatHelp("numbers") @]* +[`t =`] [_________________]{$ans2}seconds [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_7.1/OpenStax_IA_7.1_1.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_7.1/OpenStax_IA_7.1_1.pg index 9c8c4f4193..ff081aac29 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_7.1/OpenStax_IA_7.1_1.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_7.1/OpenStax_IA_7.1_1.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_7.1/OpenStax_IA_7.1_2.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_7.1/OpenStax_IA_7.1_2.pg index 66c9899362..8c815150d4 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_7.1/OpenStax_IA_7.1_2.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_7.1/OpenStax_IA_7.1_2.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_7.1/OpenStax_IA_7.1_3.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_7.1/OpenStax_IA_7.1_3.pg index 658582bb60..b18c929eb9 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_7.1/OpenStax_IA_7.1_3.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_7.1/OpenStax_IA_7.1_3.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl" @@ -104,7 +104,7 @@ PART B: You can't the square root of a negative number, so this equation has no solution. There are no values of x that make this expression undefined. -In other words, when you square a number, you will always get a positive answer. There is no number that can be squared to give -[$asq]. +In other words, when you square a number, you will always get a positive answer. There is no number that can be squared to give -[$asq]. END_PGML_SOLUTION diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_7.1/OpenStax_IA_7.1_domain.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_7.1/OpenStax_IA_7.1_domain.pg index d913b5c3c9..a358bcc33d 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_7.1/OpenStax_IA_7.1_domain.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_7.1/OpenStax_IA_7.1_domain.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -84,7 +84,7 @@ END_PGML # Solution BEGIN_PGML_SOLUTION -Division by zero is undefined, so to determine where a rational expression is undefined set the denominator = 0. +Division by zero is undefined, so to determine where a rational expression is undefined set the denominator = 0. For [`f(x)`]: diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_7.1/OpenStax_IA_7.1_domain2.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_7.1/OpenStax_IA_7.1_domain2.pg index 5608d56fd7..dd8365482b 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_7.1/OpenStax_IA_7.1_domain2.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_7.1/OpenStax_IA_7.1_domain2.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -87,7 +87,7 @@ END_PGML # Solution BEGIN_PGML_SOLUTION -Division by zero is undefined, so to determine where a rational expression is undefined set the denominator = 0. +Division by zero is undefined, so to determine where a rational expression is undefined set the denominator = 0. For [`f(x)`]: diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_7.5/OpenStax_IA_7.5_285.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_7.5/OpenStax_IA_7.5_285.pg index 7c179a206e..07446efe6c 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_7.5/OpenStax_IA_7.5_285.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_7.5/OpenStax_IA_7.5_285.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -54,7 +54,7 @@ $const = -$dw*$w - $da*$w; BEGIN_PGML Mary takes a sightseeing tour on a helicopter that can fly [`[$da]`] miles against a [`[$w]`]-mph headwind in the same amount of time it can [`[$dw]`] miles with a [`[$w]`]-mph tailwind. Find the speed of the helicopter. -Speed: [_______________]{$a}mph [@ AnswerFormatHelp("numbers") @]* +Speed: [_______________]{$a}mph [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_7.5/OpenStax_IA_7.5_287.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_7.5/OpenStax_IA_7.5_287.pg index 5f3610d937..12b9e3c9ed 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_7.5/OpenStax_IA_7.5_287.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_7.5/OpenStax_IA_7.5_287.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -54,7 +54,7 @@ $const = -$dw*$w - $da*$w; BEGIN_PGML A boat travels [`[$dw]`] miles downstream in the same time as it travels [`[$da]`] miles upstream. The speed of the current is [`[$w]`] mph. What is the speed of the boat? -Speed: [_______________]{$a}mph [@ AnswerFormatHelp("numbers") @]* +Speed: [_______________]{$a}mph [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_7.5/OpenStax_IA_7.5_298.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_7.5/OpenStax_IA_7.5_298.pg index 1d858a26fa..64ab5c2689 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_7.5/OpenStax_IA_7.5_298.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_7.5/OpenStax_IA_7.5_298.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -54,7 +54,7 @@ $const = -$dw*$w - $da*$w; BEGIN_PGML Jim's speedboat can travel [`[$da]`] miles upstream against a [`[$w]`]-mph current in the same amount of time it travels [`[$dw]`] miles downstream with a [`[$w]`]-mph current speed. Find the speed of Jim's boat. -Speed: [_______________]{$a}mph [@ AnswerFormatHelp("numbers") @]* +Speed: [_______________]{$a}mph [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_7.5/OpenStax_IA_7.5_306.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_7.5/OpenStax_IA_7.5_306.pg index da2c693a8c..0b6fa7ab92 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_7.5/OpenStax_IA_7.5_306.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_7.5/OpenStax_IA_7.5_306.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -57,7 +57,7 @@ $ans = Compute("($t1*$t2)/($t1 + $t2)"); BEGIN_PGML It takes Sam [`[$t1]`] hours to rake the front lawn while his brother, Dave, can rake the lawn in [`[$t2]`] hours. How long will it take them to rake the lawn working together? Round to the nearest tenth. -Time: [_______________]{$ans}hours [@ AnswerFormatHelp("numbers") @]* +Time: [_______________]{$ans}hours [@ helpLink("numbers") @]* @@ -68,7 +68,7 @@ END_PGML # Solution BEGIN_PGML_SOLUTION -x = time it takes them working together +x = time it takes them working together In x hours, Sam will complete [`\frac{x}{[$t1]}`]-th of the job. diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_7.5/OpenStax_IA_7.5_309.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_7.5/OpenStax_IA_7.5_309.pg index e4543ef579..681f9a6436 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_7.5/OpenStax_IA_7.5_309.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_7.5/OpenStax_IA_7.5_309.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -57,7 +57,7 @@ $coeff = $t1 - $T; BEGIN_PGML Josephine can corect her students test papers in [`[$t1]`] hours, but if her teacher's assistant helps, it would take them [`[$T]`] hours. How long would it take the assistant to do the job alone? Round to the nearest tenth of an hour. -Time: [_______________]{$t2}hours [@ AnswerFormatHelp("numbers") @]* +Time: [_______________]{$t2}hours [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_7.5/OpenStax_IA_7.5_311.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_7.5/OpenStax_IA_7.5_311.pg index a527103dc1..3fb2020d08 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_7.5/OpenStax_IA_7.5_311.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_7.5/OpenStax_IA_7.5_311.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -57,7 +57,7 @@ $ans = Compute("($t1*$t2)/($t1 + $t2)"); BEGIN_PGML At the end of the day Dodie can clean her hair salon in [`[$t1]`] minutes. Ann, who works with her, can clean the salon in [`[$t2]`] minutes. How long would it take them to clean the shop if they work together? Round to the nearest tenth. -Time: [_______________]{$ans}minutes [@ AnswerFormatHelp("numbers") @]* +Time: [_______________]{$ans}minutes [@ helpLink("numbers") @]* @@ -68,7 +68,7 @@ END_PGML # Solution BEGIN_PGML_SOLUTION -x = time it takes them working together +x = time it takes them working together In x hours, Dodie will complete [`\frac{x}{[$t1]}`]-th of the job. diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_7.5/OpenStax_IA_7.5_312.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_7.5/OpenStax_IA_7.5_312.pg index f3d455ac95..16b8857942 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_7.5/OpenStax_IA_7.5_312.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_7.5/OpenStax_IA_7.5_312.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -57,7 +57,7 @@ $coeff = $t1 - $T; BEGIN_PGML Ronald can shovel the driveway in [`[$t1]`] minutes, but if his brother Donald helps it would take [`[$T]`] minutes. How long would it take Donald to shovel the driveway alone? Round to the nearest tenth. -Time: [_______________]{$t2}minutes [@ AnswerFormatHelp("numbers") @]* +Time: [_______________]{$t2}minutes [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_8.1/OpenStax_IA_8.1_13.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_8.1/OpenStax_IA_8.1_13.pg index 3d5289a366..e3e592bc56 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_8.1/OpenStax_IA_8.1_13.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_8.1/OpenStax_IA_8.1_13.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_8.1/OpenStax_IA_8.1_15.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_8.1/OpenStax_IA_8.1_15.pg index 8cc0014283..91388363fa 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_8.1/OpenStax_IA_8.1_15.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_8.1/OpenStax_IA_8.1_15.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_8.1/OpenStax_IA_8.1_31.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_8.1/OpenStax_IA_8.1_31.pg index 342cbde6fa..9e287ec336 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_8.1/OpenStax_IA_8.1_31.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_8.1/OpenStax_IA_8.1_31.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextLimitedPolynomial.pl", diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_8.1/OpenStax_IA_8.1_35.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_8.1/OpenStax_IA_8.1_35.pg index bc77be3ca7..cd367ccda2 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_8.1/OpenStax_IA_8.1_35.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_8.1/OpenStax_IA_8.1_35.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextLimitedPolynomial.pl", diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_8.1/OpenStax_IA_8.1_39.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_8.1/OpenStax_IA_8.1_39.pg index 8caabe1564..15940a31c8 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_8.1/OpenStax_IA_8.1_39.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_8.1/OpenStax_IA_8.1_39.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextLimitedPolynomial.pl", diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_8.1/OpenStax_IA_8.1_49.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_8.1/OpenStax_IA_8.1_49.pg index 16ee8b18eb..7fd5527b46 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_8.1/OpenStax_IA_8.1_49.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_8.1/OpenStax_IA_8.1_49.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextLimitedPolynomial.pl", diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_8.6/OpenStax_IA_8.6_287.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_8.6/OpenStax_IA_8.6_287.pg index 47a9c37201..d5ba728d78 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_8.6/OpenStax_IA_8.6_287.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_8.6/OpenStax_IA_8.6_287.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -49,13 +49,13 @@ $rhs = $c**2-$b; # Main text BEGIN_PGML -Solve the radical equation. Be sure to check for extraneous solutions. +Solve the radical equation. Be sure to check for extraneous solutions. If you find more than one solution, give your answer as a comma-separated list. If there is no solution enter "NONE". [`` [$f]=[$c] ``]. -[`[$var] =`] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`[$var] =`] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_8.6/OpenStax_IA_8.6_289.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_8.6/OpenStax_IA_8.6_289.pg index c3b95d2b6e..901efcb860 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_8.6/OpenStax_IA_8.6_289.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_8.6/OpenStax_IA_8.6_289.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -49,13 +49,13 @@ $ans = "NONE"; # Main text BEGIN_PGML -Solve the radical equation. Be sure to check for extraneous solutions. +Solve the radical equation. Be sure to check for extraneous solutions. If you find more than one solution, give your answer as a comma-separated list. If there is no solution enter "NONE". [`` [$f]=[$c] ``]. -[`[$var] =`] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`[$var] =`] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_8.6/OpenStax_IA_8.6_291.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_8.6/OpenStax_IA_8.6_291.pg index 611986902e..c5f97b4438 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_8.6/OpenStax_IA_8.6_291.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_8.6/OpenStax_IA_8.6_291.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,13 +48,13 @@ $rhs = $c**3 - $b; # Main text BEGIN_PGML -Solve the radical equation. Be sure to check for extraneous solutions. +Solve the radical equation. Be sure to check for extraneous solutions. If you find more than one solution, give your answer as a comma-separated list. If there is no solution enter "NONE". [`` \sqrt[3]{[$a][$var]+[$b]}=[$c] ``]. -[`[$var] =`] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`[$var] =`] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_8.6/OpenStax_IA_8.6_299.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_8.6/OpenStax_IA_8.6_299.pg index b40f36ac61..d109f749d3 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_8.6/OpenStax_IA_8.6_299.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_8.6/OpenStax_IA_8.6_299.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,13 +50,13 @@ $num = $rhs/$a; # Main text BEGIN_PGML -Solve the radical equation. Be sure to check for extraneous solutions. +Solve the radical equation. Be sure to check for extraneous solutions. If you find more than one solution, give your answer as a comma-separated list. If there is no solution enter "NONE". [`` [$f]=0 ``]. -[`[$var] =`] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`[$var] =`] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_8.6/OpenStax_IA_8.6_301.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_8.6/OpenStax_IA_8.6_301.pg index f7ab8ee2ca..a85d41f76a 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_8.6/OpenStax_IA_8.6_301.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_8.6/OpenStax_IA_8.6_301.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,13 +48,13 @@ $quad = Formula("$var^2 + (-2*$a-1)*$var + ($a**2+$a)")->reduce; # Main text BEGIN_PGML -Solve the radical equation. Be sure to check for extraneous solutions. +Solve the radical equation. Be sure to check for extraneous solutions. If you find more than one solution, give your answer as a comma-separated list. If there is no solution enter "NONE". [`` [$f]=[$var] ``]. -[`[$var] =`] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`[$var] =`] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_8.6/OpenStax_IA_8.6_307.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_8.6/OpenStax_IA_8.6_307.pg index 145f580bc2..c88c3731c2 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_8.6/OpenStax_IA_8.6_307.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_8.6/OpenStax_IA_8.6_307.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -53,13 +53,13 @@ $rhs = $cube - $b; # Main text BEGIN_PGML -Solve the radical equation. Be sure to check for extraneous solutions. +Solve the radical equation. Be sure to check for extraneous solutions. If you find more than one solution, give your answer as a comma-separated list. If there is no solution enter "NONE". [`` \sqrt[3]{[$f]}+[$c]=[$d] ``]. -[`[$var] =`] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`[$var] =`] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_8.6/OpenStax_IA_8.6_309.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_8.6/OpenStax_IA_8.6_309.pg index f08d93c1f0..82dd4c97ca 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_8.6/OpenStax_IA_8.6_309.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_8.6/OpenStax_IA_8.6_309.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -53,13 +53,13 @@ $rhs = $sq - $b; # Main text BEGIN_PGML -Solve the radical equation. Be sure to check for extraneous solutions. +Solve the radical equation. Be sure to check for extraneous solutions. If you find more than one solution, give your answer as a comma-separated list. If there is no solution enter "NONE". [`` {([$f])}^{\frac{1}{2}} + [$c] = [$d] ``]. -[`[$var] =`] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`[$var] =`] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_8.6/OpenStax_IA_8.6_311.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_8.6/OpenStax_IA_8.6_311.pg index c731604f65..307850a97f 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_8.6/OpenStax_IA_8.6_311.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_8.6/OpenStax_IA_8.6_311.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -53,13 +53,13 @@ $rhs = $cube -$b; # Main text BEGIN_PGML -Solve the radical equation. Be sure to check for extraneous solutions. +Solve the radical equation. Be sure to check for extraneous solutions. If you find more than one solution, give your answer as a comma-separated list. If there is no solution enter "NONE". [`` {([$f])}^{\frac{1}{3}} + [$c] = [$d] ``]. -[`[$var] =`] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`[$var] =`] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_8.6/OpenStax_IA_8.6_313.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_8.6/OpenStax_IA_8.6_313.pg index ac449e3627..ef7596d2a3 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_8.6/OpenStax_IA_8.6_313.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_8.6/OpenStax_IA_8.6_313.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -52,13 +52,13 @@ $rhs = $sq -$b; # Main text BEGIN_PGML -Solve the radical equation. Be sure to check for extraneous solutions. +Solve the radical equation. Be sure to check for extraneous solutions. If you find more than one solution, give your answer as a comma-separated list. If there is no solution enter "NONE". [`` {([$f])}^{\frac{1}{4}} + [$c] = [$d] ``]. -[`[$var] =`] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`[$var] =`] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_8.6/OpenStax_IA_8.6_319.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_8.6/OpenStax_IA_8.6_319.pg index b07f00d035..d848b9ccb4 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_8.6/OpenStax_IA_8.6_319.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_8.6/OpenStax_IA_8.6_319.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -53,13 +53,13 @@ $rhs = $s**2-$b; # Main text BEGIN_PGML -Solve the radical equation. Be sure to check for extraneous solutions. +Solve the radical equation. Be sure to check for extraneous solutions. If you find more than one solution, give your answer as a comma-separated list. If there is no solution enter "NONE". [`` [$f] = [$e] ``]. -[`[$var] =`] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`[$var] =`] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_8.8/OpenStax_IA_8.8_411.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_8.8/OpenStax_IA_8.8_411.pg index bbf6917e72..6953246d20 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_8.8/OpenStax_IA_8.8_411.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_8.8/OpenStax_IA_8.8_411.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextLimitedRadical.pl", @@ -54,9 +54,9 @@ BEGIN_PGML Write each expression in terms of [`i`] and simplify if possible. (a) [`\sqrt{-[$asq]} = `][____________]{$ans1} - + (b) [`\sqrt{-[$b]} = `][____________]{$ans2} - + (c) [`\sqrt{-[$rad]} = `][____________]{$ans3} END_PGML @@ -67,9 +67,9 @@ END_PGML BEGIN_PGML_SOLUTION (a) [`\sqrt{-[$asq]} = [$ans1]`] - + (b) [`\sqrt{-[$b]} = [$ans2]`] - + (c) [`\sqrt{-[$rad]} = [$ans3]`] END_PGML_SOLUTION diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_8.8/OpenStax_IA_8.8_413.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_8.8/OpenStax_IA_8.8_413.pg index 53731b003b..0954148d48 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_8.8/OpenStax_IA_8.8_413.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_8.8/OpenStax_IA_8.8_413.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextLimitedRadical.pl", diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_9.1/OpenStax_IA_9.1_11.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_9.1/OpenStax_IA_9.1_11.pg index f61ef6a573..98e7aae2a0 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_9.1/OpenStax_IA_9.1_11.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_9.1/OpenStax_IA_9.1_11.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,12 +51,12 @@ $answer = List($ans1, $ans2); # Main text BEGIN_PGML -Solve the equation using the square root property. If there is more +Solve the equation using the square root property. If there is more than one correct answer, enter a comma separated list. If the solution is not real, write it as a complex number. [``[$f] = 0``] -[`[$var] =`] [_________________]{$answer} [@ AnswerFormatHelp("numbers") @]* +[`[$var] =`] [_________________]{$answer} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_9.1/OpenStax_IA_9.1_15.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_9.1/OpenStax_IA_9.1_15.pg index 78c264bd34..4dd90a31a2 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_9.1/OpenStax_IA_9.1_15.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_9.1/OpenStax_IA_9.1_15.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextLimitedRadical.pl", @@ -64,7 +64,7 @@ Solve the equation using the square root property. If there is more than one cor [``[$f] = [$a]``] -[`[$var] =`] [_________________]{$answer} [@ AnswerFormatHelp("numbers") @]* +[`[$var] =`] [_________________]{$answer} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_9.1/OpenStax_IA_9.1_27.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_9.1/OpenStax_IA_9.1_27.pg index f6e7aa8251..bc1bc49498 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_9.1/OpenStax_IA_9.1_27.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_9.1/OpenStax_IA_9.1_27.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl" @@ -55,12 +55,12 @@ $ans = List($a1, $a2); # Main text BEGIN_PGML -Solve the equation using the square root property. If there is more +Solve the equation using the square root property. If there is more than one correct answer, enter a comma separated list. If the solution is not real, write it as a complex number. [``[$f]=[$frac2] ``] -[`[$var]=`] [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`[$var]=`] [_________________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_9.1/OpenStax_IA_9.1_31.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_9.1/OpenStax_IA_9.1_31.pg index 3011d0bdd7..3781c6fede 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_9.1/OpenStax_IA_9.1_31.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_9.1/OpenStax_IA_9.1_31.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl" @@ -54,12 +54,12 @@ $diff = $a-$b; # Main text BEGIN_PGML -Solve the equation using the square root property. If there is more +Solve the equation using the square root property. If there is more than one correct answer, enter a comma separated list. If the solution is not real, write it as a complex number. [``[$f]=[$a] ``] -[`[$var]=`] [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`[$var]=`] [_________________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_9.1/OpenStax_IA_9.1_33.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_9.1/OpenStax_IA_9.1_33.pg index cd3c0c7e33..ca78c5709a 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_9.1/OpenStax_IA_9.1_33.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_9.1/OpenStax_IA_9.1_33.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl" @@ -55,12 +55,12 @@ $div = $sum/$a; # Main text BEGIN_PGML -Solve the equation using the square root property. If there is more +Solve the equation using the square root property. If there is more than one correct answer, enter a comma separated list. If the solution is not real, write it as a complex number. [``[$a][$f] - [$c] =[$d] ``] -[`[$var]=`] [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`[$var]=`] [_________________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_9.1/OpenStax_IA_9.1_35.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_9.1/OpenStax_IA_9.1_35.pg index 7202c653c3..24a9db3c15 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_9.1/OpenStax_IA_9.1_35.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_9.1/OpenStax_IA_9.1_35.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -53,12 +53,12 @@ $answer = List($ans1, $ans2); # Main text BEGIN_PGML -Solve the equation using the square root property. If there is more +Solve the equation using the square root property. If there is more than one correct answer, enter a comma separated list. If the solution is not real, write it as a complex number. [``[$f] = -[$a2]``] -[`[$var] =`] [_________________]{$answer} [@ AnswerFormatHelp("numbers") @]* +[`[$var] =`] [_________________]{$answer} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_9.1/OpenStax_IA_9.1_9.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_9.1/OpenStax_IA_9.1_9.pg index 76bddda4d8..b63d60b172 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_9.1/OpenStax_IA_9.1_9.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_9.1/OpenStax_IA_9.1_9.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl" @@ -51,12 +51,12 @@ $ans = List( $a, -$a ); # Main text BEGIN_PGML -Solve the equation using the square root property. If there is more +Solve the equation using the square root property. If there is more than one correct answer, enter a comma separated list. If the solution is not real, write it as a complex number. [`\frac{[$n]}{[$d]}{x}^{2}=[$c] `] -[`x=`] [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_________________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_9.2/OpenStax_IA_9.2_CompleteSq_1.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_9.2/OpenStax_IA_9.2_CompleteSq_1.pg index a4d5fe4d41..da78101e12 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_9.2/OpenStax_IA_9.2_CompleteSq_1.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_9.2/OpenStax_IA_9.2_CompleteSq_1.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "contextLimitedFactor.pl", "PGML.pl", @@ -60,7 +60,7 @@ $RHS = Fraction($b**2 - 4*$c,4)->reduce; # Main text BEGIN_PGML -Solve [`[$equation]= 0`] by completing the square. +Solve [`[$equation]= 0`] by completing the square. Step 1: Move the constant to the right side: @@ -76,7 +76,7 @@ Step 3: Factor the left side: Step 4: Solve for x. If there is more than one answer, separate them with a comma. -[`x=`] [_________________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_________________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_9.2/OpenStax_IA_9.2_CompleteSq_2.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_9.2/OpenStax_IA_9.2_CompleteSq_2.pg index 03409948db..786efb1c1b 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_9.2/OpenStax_IA_9.2_CompleteSq_2.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_9.2/OpenStax_IA_9.2_CompleteSq_2.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "contextLimitedFactor.pl", "bizarroArithmetic.pl", @@ -76,7 +76,7 @@ $RHS = Fraction(($b)**2 - 4*$c,4)->reduce; # Main text BEGIN_PGML -Solve [`[$equation]= 0`] by completing the square. Do not use decimals in any of your answers. +Solve [`[$equation]= 0`] by completing the square. Do not use decimals in any of your answers. Step 1: Move the constant to the right side: @@ -92,7 +92,7 @@ Step 3: Factor the left side: Step 4: Solve for x. If there is more than one answer, separate them with a comma. -[`x=`] [_________________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_________________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_9.2/OpenStax_IA_9.2_CompleteSq_3.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_9.2/OpenStax_IA_9.2_CompleteSq_3.pg index 1c82a1df46..23c6522a1b 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_9.2/OpenStax_IA_9.2_CompleteSq_3.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_9.2/OpenStax_IA_9.2_CompleteSq_3.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "contextLimitedFactor.pl", "bizarroArithmetic.pl", @@ -63,7 +63,7 @@ BEGIN_PGML Solve [`[$equation]= 0`] by completing the square. Do not use decimals in your answers. Use commas to separate answers. If there is no real solution enter NONE. -[`x=`] [_________________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_________________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_9.2/OpenStax_IA_9.2_CompleteSq_4.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_9.2/OpenStax_IA_9.2_CompleteSq_4.pg index bd0f705bc3..bf22bc6cb5 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_9.2/OpenStax_IA_9.2_CompleteSq_4.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_9.2/OpenStax_IA_9.2_CompleteSq_4.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "contextLimitedFactor.pl", "bizarroArithmetic.pl", @@ -63,7 +63,7 @@ BEGIN_PGML Solve [`[$equation]= 0`] by completing the square. Do not use decimals in your answers. Use commas to separate answers. If there is no real solution enter NONE. -[`x=`] [_________________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_________________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_9.2/OpenStax_IA_9.2_CompleteSq_5.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_9.2/OpenStax_IA_9.2_CompleteSq_5.pg index 21dae3c02d..01f4f4ff3f 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_9.2/OpenStax_IA_9.2_CompleteSq_5.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_9.2/OpenStax_IA_9.2_CompleteSq_5.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "contextLimitedFactor.pl", "bizarroArithmetic.pl", @@ -63,7 +63,7 @@ BEGIN_PGML Solve [`[$equation]= 0`] by completing the square. Do not use decimals in your answers. Use commas to separate answers. If there is no real solution enter NONE. -[`x=`] [_________________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_________________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_9.2/OpenStax_IA_9.2_CompleteSq_6.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_9.2/OpenStax_IA_9.2_CompleteSq_6.pg index 4fca25edc7..25f370dc45 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_9.2/OpenStax_IA_9.2_CompleteSq_6.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_9.2/OpenStax_IA_9.2_CompleteSq_6.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "contextLimitedFactor.pl", "bizarroArithmetic.pl", @@ -63,7 +63,7 @@ BEGIN_PGML Solve [`[$equation]= 0`] by completing the square. Do not use decimals in your answers. Use commas to separate answers. If there is no real solution enter NONE. -[`x=`] [_________________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_________________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_9.2/OpenStax_IA_9.2_CompleteSq_7.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_9.2/OpenStax_IA_9.2_CompleteSq_7.pg index 698e8ac044..1f1346dafe 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_9.2/OpenStax_IA_9.2_CompleteSq_7.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_9.2/OpenStax_IA_9.2_CompleteSq_7.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "contextLimitedFactor.pl", "bizarroArithmetic.pl", @@ -61,7 +61,7 @@ BEGIN_PGML Solve [`[$equation]= 0`] by completing the square. Do not use decimals in your answers. Use commas to separate answers. If there is no real solution enter NONE. -[`x=`] [_________________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_________________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_9.3/OpenStax_IA_9.3_135.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_9.3/OpenStax_IA_9.3_135.pg index 053d511701..886e356ee4 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_9.3/OpenStax_IA_9.3_135.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_9.3/OpenStax_IA_9.3_135.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -67,7 +67,7 @@ Solve the equation using the quadratic formula. If there is more than one correc [``[$f] = [$d]``] -[`[$var] =`] [________________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`[$var] =`] [________________________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_9.3/OpenStax_IA_9.3_137.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_9.3/OpenStax_IA_9.3_137.pg index d987b72f0b..613964f8ec 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_9.3/OpenStax_IA_9.3_137.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_9.3/OpenStax_IA_9.3_137.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -64,7 +64,7 @@ Solve the equation using the quadratic formula. If there is more than one correc [``\frac{1}{[$d1]}{[$var]}^{2} + \frac{1}{[$d3]}[$var] = \frac{1}{[$d2]}``] -[`[$var] =`] [________________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`[$var] =`] [________________________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_9.5/OpenStax_IA_9.5_195.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_9.5/OpenStax_IA_9.5_195.pg index 1e6465b0b8..18ce2f52f7 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_9.5/OpenStax_IA_9.5_195.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_9.5/OpenStax_IA_9.5_195.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -49,7 +49,7 @@ BEGIN_PGML The product of two consecutive positive odd numbers is [`[$prod]`]. Find the numbers. Enter your answers as a comma separated list. -[__________]{$ans}[@ AnswerFormatHelp("numbers") @]* +[__________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_9.5/OpenStax_IA_9.5_201.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_9.5/OpenStax_IA_9.5_201.pg index f4ec33d33d..bb8c2b250b 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_9.5/OpenStax_IA_9.5_201.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_9.5/OpenStax_IA_9.5_201.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -57,7 +57,7 @@ Base = [_______________]{$base}inches Height = [_______________]{$height}inches -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_9.5/OpenStax_IA_9.5_203.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_9.5/OpenStax_IA_9.5_203.pg index 02207b25c8..7e3f9a632f 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_9.5/OpenStax_IA_9.5_203.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_9.5/OpenStax_IA_9.5_203.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -60,7 +60,7 @@ Height = [_______________]{$height}feet Base = [_______________]{$base}feet -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_9.5/OpenStax_IA_9.5_207.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_9.5/OpenStax_IA_9.5_207.pg index def3e4bdf0..148b27c1bb 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_9.5/OpenStax_IA_9.5_207.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_9.5/OpenStax_IA_9.5_207.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -56,7 +56,7 @@ Width = [_______________]{$width}feet Length = [_______________]{$length}feet -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_9.5/OpenStax_IA_9.5_209.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_9.5/OpenStax_IA_9.5_209.pg index 5f77c4a14e..523e35fab8 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_9.5/OpenStax_IA_9.5_209.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_9.5/OpenStax_IA_9.5_209.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -63,7 +63,7 @@ The hypotenuse of a right triangle is [$number[$i]] times the length of one of i [_______________]{$ans}feet -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_9.5/OpenStax_IA_9.5_213.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_9.5/OpenStax_IA_9.5_213.pg index af9a8ed6f0..f2a9165bc1 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_9.5/OpenStax_IA_9.5_213.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_9.5/OpenStax_IA_9.5_213.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); diff --git a/Contrib/CCCS/QuantitativeLiteracy/IA_9.5/OpenStax_IA_9.5_216.pg b/Contrib/CCCS/QuantitativeLiteracy/IA_9.5/OpenStax_IA_9.5_216.pg index 415e5f937a..790424d4f1 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/IA_9.5/OpenStax_IA_9.5_216.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/IA_9.5/OpenStax_IA_9.5_216.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -61,7 +61,7 @@ When will the arrow hit the ground? Round to the nearest hundredth. [_______________]{$t}seconds -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Linear_Inequalities/Inequality_1.pg b/Contrib/CCCS/QuantitativeLiteracy/Linear_Inequalities/Inequality_1.pg index 2bc7dffb70..d71f16e692 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Linear_Inequalities/Inequality_1.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Linear_Inequalities/Inequality_1.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextInequalities.pl", @@ -55,9 +55,9 @@ $ans = Compute(" x >= $n "); BEGIN_PGML -Solve [`` [$f] \ge [$c] ``]. +Solve [`` [$f] \ge [$c] ``]. -[_______________]{$ans} +[_______________]{$ans} Use >= for `\ge` and <= for `\le` diff --git a/Contrib/CCCS/QuantitativeLiteracy/Linear_Inequalities/Inequality_2.pg b/Contrib/CCCS/QuantitativeLiteracy/Linear_Inequalities/Inequality_2.pg index ffbdc5f304..be102127f9 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Linear_Inequalities/Inequality_2.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Linear_Inequalities/Inequality_2.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextInequalities.pl", @@ -56,9 +56,9 @@ $rhs = $c - $b; BEGIN_PGML -Solve [`` [$f] > [$c] ``]. +Solve [`` [$f] > [$c] ``]. -[_______________]{$ans} +[_______________]{$ans} Use >= for `\ge` and <= for `\le` diff --git a/Contrib/CCCS/QuantitativeLiteracy/Linear_Inequalities/Inequality_3.pg b/Contrib/CCCS/QuantitativeLiteracy/Linear_Inequalities/Inequality_3.pg index c04c742e8e..80decb2ca6 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Linear_Inequalities/Inequality_3.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Linear_Inequalities/Inequality_3.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextInequalities.pl", @@ -64,9 +64,9 @@ if($coef>0){$ans=Compute("x<=$n");} else{$ans=Compute("x>=$n");} BEGIN_PGML -Solve the inequality, [`` [$f] \le [$g] ``]. +Solve the inequality, [`` [$f] \le [$g] ``]. -[_______________]{$ans} +[_______________]{$ans} Use >= for `\ge` and <= for `\le` diff --git a/Contrib/CCCS/QuantitativeLiteracy/Linear_Inequalities/Inequality_4.pg b/Contrib/CCCS/QuantitativeLiteracy/Linear_Inequalities/Inequality_4.pg index 6b297a30d4..d4f4c2f3be 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Linear_Inequalities/Inequality_4.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Linear_Inequalities/Inequality_4.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextInequalities.pl", @@ -63,9 +63,9 @@ if($coef>0){$ans=Compute("x>$n");} else{$ans=Compute("x<$n");} BEGIN_PGML -Solve the inequality, [`` [$f] > [$g] ``]. +Solve the inequality, [`` [$f] > [$g] ``]. -[_______________]{$ans} +[_______________]{$ans} Use >= for `\ge` and <= for `\le` diff --git a/Contrib/CCCS/QuantitativeLiteracy/Linear_Inequalities/Inequality_5.pg b/Contrib/CCCS/QuantitativeLiteracy/Linear_Inequalities/Inequality_5.pg index 1f02b1a66f..3ea8600a34 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Linear_Inequalities/Inequality_5.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Linear_Inequalities/Inequality_5.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextInequalities.pl", @@ -65,7 +65,7 @@ BEGIN_PGML Solve the inequality, [`` [$f] < [$g] ``]. Enter your answer using fractions or integers. -[_______________]{$ans} +[_______________]{$ans} Use >= for `\ge` and <= for `\le` diff --git a/Contrib/CCCS/QuantitativeLiteracy/Linear_Inequalities/Inequality_6.pg b/Contrib/CCCS/QuantitativeLiteracy/Linear_Inequalities/Inequality_6.pg index 73945751be..5a7c8dd029 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Linear_Inequalities/Inequality_6.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Linear_Inequalities/Inequality_6.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextInequalities.pl", @@ -72,7 +72,7 @@ BEGIN_PGML Solve the inequality, [`` [$f] \le [$G] ``]. Enter your answer using fractions or integers. -[_______________]{$ans} +[_______________]{$ans} Use >= for `\ge` and <= for `\le` diff --git a/Contrib/CCCS/QuantitativeLiteracy/Linear_Inequalities/Inequality_7.pg b/Contrib/CCCS/QuantitativeLiteracy/Linear_Inequalities/Inequality_7.pg index 2a92ff9377..fbc5c3cc88 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Linear_Inequalities/Inequality_7.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Linear_Inequalities/Inequality_7.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextInequalities.pl", @@ -58,9 +58,9 @@ if($a>0){$ans=Compute("x<$n");} else{$ans=Compute("x>$n");} BEGIN_PGML -Solve the inequality, [`` [$c] > [$f] ``]. +Solve the inequality, [`` [$c] > [$f] ``]. -[_______________]{$ans} +[_______________]{$ans} Use >= for `\ge` and <= for `\le` diff --git a/Contrib/CCCS/QuantitativeLiteracy/Linear_Inequalities/Inequality_Fraction_1.pg b/Contrib/CCCS/QuantitativeLiteracy/Linear_Inequalities/Inequality_Fraction_1.pg index 680fb7b9ee..6cdec1ba83 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Linear_Inequalities/Inequality_Fraction_1.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Linear_Inequalities/Inequality_Fraction_1.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextInequalities.pl", @@ -75,7 +75,7 @@ BEGIN_PGML Solve the inequality, [`` [$f] \ge [$c] ``]. Enter your answer using fractions or integers. -[_______________]{$ans} +[_______________]{$ans} Use >= for `\ge` and <= for `\le` diff --git a/Contrib/CCCS/QuantitativeLiteracy/Linear_Inequalities/Inequality_Fraction_2.pg b/Contrib/CCCS/QuantitativeLiteracy/Linear_Inequalities/Inequality_Fraction_2.pg index 6c97d43edb..2977cce866 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Linear_Inequalities/Inequality_Fraction_2.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Linear_Inequalities/Inequality_Fraction_2.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextInequalities.pl", @@ -83,7 +83,7 @@ BEGIN_PGML Solve the inequality, [`` [$f] < [$C] ``]. Enter your answer using fractions or integers. -[_______________]{$ans} +[_______________]{$ans} Use >= for `\ge` and <= for `\le` diff --git a/Contrib/CCCS/QuantitativeLiteracy/Linear_Inequalities/Inequality_Fraction_3.pg b/Contrib/CCCS/QuantitativeLiteracy/Linear_Inequalities/Inequality_Fraction_3.pg index bea28e6053..1a42941f70 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Linear_Inequalities/Inequality_Fraction_3.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Linear_Inequalities/Inequality_Fraction_3.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextInequalities.pl", @@ -77,7 +77,7 @@ BEGIN_PGML Solve the inequality, [`` [$f] < [$d] ``]. Write your answer using fractions or integers. -[_______________]{$ans} +[_______________]{$ans} Use >= for `\ge` and <= for `\le` diff --git a/Contrib/CCCS/QuantitativeLiteracy/Linear_Inequalities/Number_Line_1.pg b/Contrib/CCCS/QuantitativeLiteracy/Linear_Inequalities/Number_Line_1.pg index 2888db7194..61d1579728 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Linear_Inequalities/Number_Line_1.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Linear_Inequalities/Number_Line_1.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -15,14 +15,14 @@ ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", # Standard macros for PG language "MathObjects.pl", "PGgraphmacros.pl", "contextInequalities.pl", - "AnswerFormatHelp.pl", + "problemRandomize.pl", "contextFraction.pl", "PGML.pl", @@ -84,7 +84,7 @@ Express the region shaded on the number line as an inequality. >> [@ image(insertGraph($gr), tex_size=>16000, width=>800, height=>100), @]* << -[_______________]{$ans} +[_______________]{$ans} Use >= for [`\ge`] and <= for [`\le`]. diff --git a/Contrib/CCCS/QuantitativeLiteracy/Linear_Inequalities/Number_Line_2.pg b/Contrib/CCCS/QuantitativeLiteracy/Linear_Inequalities/Number_Line_2.pg index dcaae5e0c6..b4d6cf14fb 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Linear_Inequalities/Number_Line_2.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Linear_Inequalities/Number_Line_2.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -15,14 +15,14 @@ ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", # Standard macros for PG language "MathObjects.pl", "PGgraphmacros.pl", "contextInequalities.pl", - "AnswerFormatHelp.pl", + "problemRandomize.pl", "contextFraction.pl", "PGML.pl", @@ -84,7 +84,7 @@ Express the region shaded on the number line as an inequality. >> [@ image(insertGraph($gr), tex_size=>16000, width=>800, height=>100), @]* << -[_______________]{$ans} +[_______________]{$ans} Use >= for [`\ge`] and <= for [`\le`]. diff --git a/Contrib/CCCS/QuantitativeLiteracy/Percents/Convert_Percents_1.pg b/Contrib/CCCS/QuantitativeLiteracy/Percents/Convert_Percents_1.pg index 94796114a2..97ec18389e 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Percents/Convert_Percents_1.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Percents/Convert_Percents_1.pg @@ -24,7 +24,7 @@ loadMacros( "PGML.pl", "PGgraphmacros.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + ); ############################################## @@ -46,9 +46,9 @@ BEGIN_PGML Convert the following percent to a decimal: -[` [$a]%= `] [________]{$ans} [@ AnswerFormatHelp("numeric") @]* +[` [$a]%= `] [________]{$ans} [@ helpLink("numeric") @]* + - END_PGML ############################################## diff --git a/Contrib/CCCS/QuantitativeLiteracy/Percents/Convert_Percents_10.pg b/Contrib/CCCS/QuantitativeLiteracy/Percents/Convert_Percents_10.pg index 0538f5153a..ff60c01eb9 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Percents/Convert_Percents_10.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Percents/Convert_Percents_10.pg @@ -24,12 +24,12 @@ loadMacros( "PGML.pl", "PGgraphmacros.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + ); ############################################## -#Convert a decimal to a percent +#Convert a decimal to a percent Context("LimitedNumeric"); @@ -46,11 +46,11 @@ TEXT(beginproblem()); BEGIN_PGML -Convert the following decimal to a percent. +Convert the following decimal to a percent. + +[` [$b]= `] [________]{$ans}`%` -[` [$b]= `] [________]{$ans}`%` - END_PGML ############################################## diff --git a/Contrib/CCCS/QuantitativeLiteracy/Percents/Convert_Percents_11.pg b/Contrib/CCCS/QuantitativeLiteracy/Percents/Convert_Percents_11.pg index 441e06aaa8..f1e321950e 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Percents/Convert_Percents_11.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Percents/Convert_Percents_11.pg @@ -24,12 +24,12 @@ loadMacros( "PGML.pl", "PGgraphmacros.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + ); ############################################## -#Convert a decimal to a percent +#Convert a decimal to a percent Context("LimitedNumeric"); @@ -46,11 +46,11 @@ TEXT(beginproblem()); BEGIN_PGML -Convert the following decimal to a percent. +Convert the following decimal to a percent. + +[` [$b]= `] [________]{$ans}`%` -[` [$b]= `] [________]{$ans}`%` - END_PGML ############################################## diff --git a/Contrib/CCCS/QuantitativeLiteracy/Percents/Convert_Percents_2.pg b/Contrib/CCCS/QuantitativeLiteracy/Percents/Convert_Percents_2.pg index 5938690c87..3e40a256af 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Percents/Convert_Percents_2.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Percents/Convert_Percents_2.pg @@ -24,7 +24,7 @@ loadMacros( "PGML.pl", "PGgraphmacros.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + ); ############################################## @@ -46,9 +46,9 @@ BEGIN_PGML Convert the following percent to a decimal: -[` [$a]%= `] [________]{$ans} [@ AnswerFormatHelp("numeric") @]* +[` [$a]%= `] [________]{$ans} [@ helpLink("numeric") @]* + - END_PGML ############################################## diff --git a/Contrib/CCCS/QuantitativeLiteracy/Percents/Convert_Percents_3.pg b/Contrib/CCCS/QuantitativeLiteracy/Percents/Convert_Percents_3.pg index 5cdea7dafe..34257e42a2 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Percents/Convert_Percents_3.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Percents/Convert_Percents_3.pg @@ -24,7 +24,7 @@ loadMacros( "PGML.pl", "PGgraphmacros.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + ); ############################################## @@ -46,9 +46,9 @@ BEGIN_PGML Convert the following percent to a decimal: -[` [$a]%= `] [________]{$ans} [@ AnswerFormatHelp("numeric") @]* +[` [$a]%= `] [________]{$ans} [@ helpLink("numeric") @]* + - END_PGML ############################################## diff --git a/Contrib/CCCS/QuantitativeLiteracy/Percents/Convert_Percents_4.pg b/Contrib/CCCS/QuantitativeLiteracy/Percents/Convert_Percents_4.pg index 6e990075ea..6a91d267fa 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Percents/Convert_Percents_4.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Percents/Convert_Percents_4.pg @@ -24,13 +24,13 @@ loadMacros( "PGML.pl", "PGgraphmacros.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "fixedPrecision.pl", ); ############################################## -#Convert a fraction to a percent +#Convert a fraction to a percent Context("LimitedNumeric"); Context()->{format}{number} = "%.1f"; @@ -59,9 +59,9 @@ BEGIN_PGML Convert the following fraction to a percent without using a calculator. Round your answer to the nearest tenth of a percent. -[` [$a]/[$b]= `] [________]{$ans}`%` +[` [$a]/[$b]= `] [________]{$ans}`%` + - END_PGML ############################################## diff --git a/Contrib/CCCS/QuantitativeLiteracy/Percents/Convert_Percents_5.pg b/Contrib/CCCS/QuantitativeLiteracy/Percents/Convert_Percents_5.pg index 44edb63e06..ebdbcac147 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Percents/Convert_Percents_5.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Percents/Convert_Percents_5.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -45,7 +45,7 @@ BEGIN_PGML Convert the following percent to a fraction. Make sure to reduce your fraction to lowest terms. - [`` [$a]%= ``] [_______________]{$ans} [@ AnswerFormatHelp("numeric") @]* + [`` [$a]%= ``] [_______________]{$ans} [@ helpLink("numeric") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Percents/Convert_Percents_6.pg b/Contrib/CCCS/QuantitativeLiteracy/Percents/Convert_Percents_6.pg index e67d3c7a95..df80f9926d 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Percents/Convert_Percents_6.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Percents/Convert_Percents_6.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -45,7 +45,7 @@ BEGIN_PGML Convert the following percent to a fraction. Make sure to reduce your fraction to lowest terms. - [`` [$a]%= ``] [_______________]{$ans} [@ AnswerFormatHelp("numeric") @]* + [`` [$a]%= ``] [_______________]{$ans} [@ helpLink("numeric") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Percents/Convert_Percents_7.pg b/Contrib/CCCS/QuantitativeLiteracy/Percents/Convert_Percents_7.pg index 88cb8e3383..9afc60e3cd 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Percents/Convert_Percents_7.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Percents/Convert_Percents_7.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -45,7 +45,7 @@ BEGIN_PGML Convert the following percent to a fraction. Make sure to reduce your fraction to lowest terms. - [`` [$a]%= ``] [_______________]{$ans} [@ AnswerFormatHelp("numeric") @]* + [`` [$a]%= ``] [_______________]{$ans} [@ helpLink("numeric") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Percents/Convert_Percents_8.pg b/Contrib/CCCS/QuantitativeLiteracy/Percents/Convert_Percents_8.pg index 6b7f3f26ab..0dbd8c0b13 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Percents/Convert_Percents_8.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Percents/Convert_Percents_8.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -47,7 +47,7 @@ BEGIN_PGML Convert the following percent to a fraction. Make sure to reduce your fraction to lowest terms. - [`` [$a]%= ``] [_______________]{$ans} [@ AnswerFormatHelp("numeric") @]* + [`` [$a]%= ``] [_______________]{$ans} [@ helpLink("numeric") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Percents/Convert_Percents_9.pg b/Contrib/CCCS/QuantitativeLiteracy/Percents/Convert_Percents_9.pg index 4d335f307d..1acec4465b 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Percents/Convert_Percents_9.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Percents/Convert_Percents_9.pg @@ -24,12 +24,12 @@ loadMacros( "PGML.pl", "PGgraphmacros.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + ); ############################################## -#Convert a decimal to a percent +#Convert a decimal to a percent Context("LimitedNumeric"); @@ -46,11 +46,11 @@ TEXT(beginproblem()); BEGIN_PGML -Convert the following decimal to a percent. +Convert the following decimal to a percent. + +[` [$b]= `] [________]{$ans}`%` -[` [$b]= `] [________]{$ans}`%` - END_PGML ############################################## diff --git a/Contrib/CCCS/QuantitativeLiteracy/Percents/Convert_Percents_Table_1.pg b/Contrib/CCCS/QuantitativeLiteracy/Percents/Convert_Percents_Table_1.pg index 949511fabb..fd070f792d 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Percents/Convert_Percents_Table_1.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Percents/Convert_Percents_Table_1.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGgraders.pl", @@ -66,7 +66,7 @@ row( '\(40\)','\(2/5\)' , '\(.4\)' ) . row( "\($a\)", ans_rule(5), ans_rule(5) ) . row( ans_rule(5), "$e", ans_rule(5) ) . row( ans_rule(5), ans_rule(5) , "\($d\)" ) . -endtable().$ECENTER; +endtable().$ECENTER; ########################### @@ -75,7 +75,7 @@ endtable().$ECENTER; BEGIN_PGML Complete the table of values. -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* [@ $table @]*** END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Percents/Convert_Percents_Table_2.pg b/Contrib/CCCS/QuantitativeLiteracy/Percents/Convert_Percents_Table_2.pg index 6411cda2ab..48a8458888 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Percents/Convert_Percents_Table_2.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Percents/Convert_Percents_Table_2.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGgraders.pl", @@ -66,7 +66,7 @@ row( '\(40\)','\(2/5\)' , '\(.4\)' ) . row( "\($a\)", ans_rule(5), ans_rule(5) ) . row( ans_rule(5), "$e", ans_rule(5) ) . row( ans_rule(5), ans_rule(5) , "\($d\)" ) . -endtable().$ECENTER; +endtable().$ECENTER; ########################### @@ -75,7 +75,7 @@ endtable().$ECENTER; BEGIN_PGML Complete the table of values. -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* [@ $table @]*** END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Percents/Convert_Percents_Table_3.pg b/Contrib/CCCS/QuantitativeLiteracy/Percents/Convert_Percents_Table_3.pg index 049c684da4..41aad1fd43 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Percents/Convert_Percents_Table_3.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Percents/Convert_Percents_Table_3.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "PGgraders.pl", @@ -66,7 +66,7 @@ row( '\(40\)','\(2/5\)' , '\(.4\)' ) . row( "\($a\)", ans_rule(5), ans_rule(5) ) . row( ans_rule(5), "$e", ans_rule(5) ) . row( ans_rule(5), ans_rule(5) , "\($d\)" ) . -endtable().$ECENTER; +endtable().$ECENTER; ########################### @@ -75,7 +75,7 @@ endtable().$ECENTER; BEGIN_PGML Complete the table of values. -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* [@ $table @]*** END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Percents/Percent_Application_1.pg b/Contrib/CCCS/QuantitativeLiteracy/Percents/Percent_Application_1.pg index aefd53a750..0423e18ed6 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Percents/Percent_Application_1.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Percents/Percent_Application_1.pg @@ -24,12 +24,12 @@ loadMacros( "PGML.pl", "PGgraphmacros.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + ); ############################################## -#Percent word problem +#Percent word problem Context("LimitedNumeric"); Context()->{format}{number} = "%.1f"; @@ -62,7 +62,7 @@ One serving of wheat square cereal has [$a] grams of fiber, which is [$b]% of th [________]{$ans} g of fiber - + END_PGML ############################################## diff --git a/Contrib/CCCS/QuantitativeLiteracy/Percents/Percent_Application_2.pg b/Contrib/CCCS/QuantitativeLiteracy/Percents/Percent_Application_2.pg index a374132fc8..faae67fc04 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Percents/Percent_Application_2.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Percents/Percent_Application_2.pg @@ -24,12 +24,12 @@ loadMacros( "PGML.pl", "PGgraphmacros.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + ); ############################################## -#Percent word problem +#Percent word problem Context("LimitedNumeric"); Context()->{format}{number} = "%.1f"; @@ -58,9 +58,9 @@ BEGIN_PGML Mitzi received some gourmet brownies as a gift. The wrapper said each brownie was [$a] calories, and had [$b] calories of fat. What percent of the total calories in each brownie comes from fat? - [________]{$ans}`%` + [________]{$ans}`%` + - END_PGML ############################################## diff --git a/Contrib/CCCS/QuantitativeLiteracy/Percents/Percent_Application_3.pg b/Contrib/CCCS/QuantitativeLiteracy/Percents/Percent_Application_3.pg index bc93c70ca1..cccbd097fa 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Percents/Percent_Application_3.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Percents/Percent_Application_3.pg @@ -24,12 +24,12 @@ loadMacros( "PGML.pl", "PGgraphmacros.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + ); ############################################## -#Percent word problem +#Percent word problem Context("LimitedNumeric"); Context()->{format}{number} = "%.0f"; @@ -58,7 +58,7 @@ If [$a]% of all music downloads from an online music store are country music, ho [________]{$ans} country songs - + END_PGML ############################################## diff --git a/Contrib/CCCS/QuantitativeLiteracy/Percents/Percent_Application_4.pg b/Contrib/CCCS/QuantitativeLiteracy/Percents/Percent_Application_4.pg index 8edf8f23a9..df9eb506b6 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Percents/Percent_Application_4.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Percents/Percent_Application_4.pg @@ -24,12 +24,12 @@ loadMacros( "PGML.pl", "PGgraphmacros.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + ); ############################################## -#Percent word problem +#Percent word problem Context("LimitedNumeric"); Context()->{format}{number} = "%.1f"; @@ -58,9 +58,9 @@ BEGIN_PGML Evelyn bought a new smartphone for $[$a] plus tax. She was surprised when she got the receipt and saw that the tax was $[$b]. What was the sales tax rate for this purchase? (Round your answer to the nearest tenth of a percent.) - [________]{$ans}`%` + [________]{$ans}`%` + - END_PGML ############################################## diff --git a/Contrib/CCCS/QuantitativeLiteracy/Percents/Percent_Application_5.pg b/Contrib/CCCS/QuantitativeLiteracy/Percents/Percent_Application_5.pg index 2ee9917c98..b9597fd486 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Percents/Percent_Application_5.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Percents/Percent_Application_5.pg @@ -24,12 +24,12 @@ loadMacros( "PGML.pl", "PGgraphmacros.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + ); ############################################## -#Percent word problem +#Percent word problem Context("LimitedNumeric"); Context()->{format}{number} = "%.0f"; @@ -57,9 +57,9 @@ BEGIN_PGML Helene is a realtor. She receives [$a]% commission when she sells a house. How much commission will she receive for selling a house that costs $[$b]k? (Round your answer to the nearest dollar.) -$[________]{$ans} +$[________]{$ans} + - END_PGML ############################################## diff --git a/Contrib/CCCS/QuantitativeLiteracy/Percents/Percent_Application_6.pg b/Contrib/CCCS/QuantitativeLiteracy/Percents/Percent_Application_6.pg index 4faf3bd8e2..4fa5dc95ac 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Percents/Percent_Application_6.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Percents/Percent_Application_6.pg @@ -24,12 +24,12 @@ loadMacros( "PGML.pl", "PGgraphmacros.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + ); ############################################## -#Percent word problem +#Percent word problem Context("LimitedNumeric"); Context()->{format}{number} = "%.1f"; @@ -57,9 +57,9 @@ BEGIN_PGML Homer received $[$b] commission when he sold a car for $[$a]. What rate of commission did he get? (Round your answer to the nearest tenth of a percent.) - [________]{$ans}`%` + [________]{$ans}`%` + - END_PGML ############################################## diff --git a/Contrib/CCCS/QuantitativeLiteracy/Percents/Percent_Decrease_1.pg b/Contrib/CCCS/QuantitativeLiteracy/Percents/Percent_Decrease_1.pg index 0f037092e0..ff963e6f9e 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Percents/Percent_Decrease_1.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Percents/Percent_Decrease_1.pg @@ -24,12 +24,12 @@ loadMacros( "PGML.pl", "PGgraphmacros.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + ); ############################################## -#Percent word problem +#Percent word problem Context("LimitedNumeric"); Context()->{format}{number} = "%.1f"; @@ -61,9 +61,9 @@ BEGIN_PGML The average price of a gallon of gas in one city in June 2014 was $[$bprint]. The average price in that city in July was $[$aprint]. Find the percent decrease. (Round your answer to the nearest percent.) - [________]{$ans}`%` + [________]{$ans}`%` + - END_PGML ############################################## diff --git a/Contrib/CCCS/QuantitativeLiteracy/Percents/Percent_Decrease_2.pg b/Contrib/CCCS/QuantitativeLiteracy/Percents/Percent_Decrease_2.pg index 1e511d8781..62bf324228 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Percents/Percent_Decrease_2.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Percents/Percent_Decrease_2.pg @@ -24,12 +24,12 @@ loadMacros( "PGML.pl", "PGgraphmacros.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + ); ############################################## -#Percent word problem +#Percent word problem Context("LimitedNumeric"); Context()->{format}{number} = "%.1f"; @@ -60,9 +60,9 @@ BEGIN_PGML The population of a town in Wyoming was [$b] in 2010. The population of the same town is projected to be about [$a] in 2020. Find the projected percent decrease. (Round your answer to the nearest tenth of a percent.) - [________]{$ans}`%` + [________]{$ans}`%` + - END_PGML ############################################## diff --git a/Contrib/CCCS/QuantitativeLiteracy/Percents/Percent_Decrease_3.pg b/Contrib/CCCS/QuantitativeLiteracy/Percents/Percent_Decrease_3.pg index ac24aac5c1..8121bd882e 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Percents/Percent_Decrease_3.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Percents/Percent_Decrease_3.pg @@ -24,12 +24,12 @@ loadMacros( "PGML.pl", "PGgraphmacros.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + ); ############################################## -#Percent word problem +#Percent word problem Context("LimitedNumeric"); Context()->{format}{number} = "%.1f"; @@ -59,9 +59,9 @@ BEGIN_PGML A shirt is marked down from $[$b] to $[$a]. What is the percent discount? (Round your answer to the nearest tenth of a percent.) - [________]{$ans}`%` + [________]{$ans}`%` + - END_PGML ############################################## diff --git a/Contrib/CCCS/QuantitativeLiteracy/Percents/Percent_Increase_1.pg b/Contrib/CCCS/QuantitativeLiteracy/Percents/Percent_Increase_1.pg index 8bc7549b21..5f0f238112 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Percents/Percent_Increase_1.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Percents/Percent_Increase_1.pg @@ -24,12 +24,12 @@ loadMacros( "PGML.pl", "PGgraphmacros.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + ); ############################################## -#Percent word problem +#Percent word problem Context("LimitedNumeric"); Context()->{format}{number} = "%.1f"; @@ -60,9 +60,9 @@ BEGIN_PGML In 2017, the California governor proposed raising community college fees from $[$a] per unit to $[$b] per unit. Find the percent increase. (Round your answer to the nearest tenth of a percent.) - [________]{$ans}`%` + [________]{$ans}`%` + - END_PGML ############################################## diff --git a/Contrib/CCCS/QuantitativeLiteracy/Percents/Percent_Increase_2.pg b/Contrib/CCCS/QuantitativeLiteracy/Percents/Percent_Increase_2.pg index e1450ec10a..9e0f683c31 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Percents/Percent_Increase_2.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Percents/Percent_Increase_2.pg @@ -24,12 +24,12 @@ loadMacros( "PGML.pl", "PGgraphmacros.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + ); ############################################## -#Percent word problem +#Percent word problem Context("LimitedNumeric"); Context()->{format}{number} = "%.1f"; @@ -60,9 +60,9 @@ BEGIN_PGML In 2011, the IRS increased the deductible mileage cost to [$b] cents from [$a] cents. Find the percent increase. (Round your answer to the nearest tenth of a percent.) - [________]{$ans}`%` + [________]{$ans}`%` + - END_PGML ############################################## diff --git a/Contrib/CCCS/QuantitativeLiteracy/Percents/Percent_Increase_3.pg b/Contrib/CCCS/QuantitativeLiteracy/Percents/Percent_Increase_3.pg index b8c4ab0948..cfc5929872 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Percents/Percent_Increase_3.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Percents/Percent_Increase_3.pg @@ -24,12 +24,12 @@ loadMacros( "PGML.pl", "PGgraphmacros.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + ); ############################################## -#Percent word problem +#Percent word problem Context("LimitedNumeric"); Context()->{format}{number} = "%.1f"; @@ -58,9 +58,9 @@ BEGIN_PGML In 2016, Sally's salary increased from $[$a] to $[$b]. Find the percent increase. - [________]{$ans}`%` + [________]{$ans}`%` + - END_PGML ############################################## diff --git a/Contrib/CCCS/QuantitativeLiteracy/Percents/Percent_Increase_4.pg b/Contrib/CCCS/QuantitativeLiteracy/Percents/Percent_Increase_4.pg index c280669382..8695652da4 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Percents/Percent_Increase_4.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Percents/Percent_Increase_4.pg @@ -24,12 +24,12 @@ loadMacros( "PGML.pl", "PGgraphmacros.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + ); ############################################## -#Percent word problem +#Percent word problem Context("LimitedNumeric"); Context()->{format}{number} = "%.1f"; @@ -59,9 +59,9 @@ BEGIN_PGML At the campus coffee cart, a medium coffee costs $[$a]. MaryAnne brings $[$b] with her when she buys a cup of coffee and leaves the change as a tip. What percent tip does she leave? (Round your answer to the nearest tenth of a percent.) - [________]{$ans}`%` + [________]{$ans}`%` + - END_PGML ############################################## diff --git a/Contrib/CCCS/QuantitativeLiteracy/Percents/Percent_Word_Problem_1.pg b/Contrib/CCCS/QuantitativeLiteracy/Percents/Percent_Word_Problem_1.pg index 31344defd1..5eaafcd29e 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Percents/Percent_Word_Problem_1.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Percents/Percent_Word_Problem_1.pg @@ -24,12 +24,12 @@ loadMacros( "PGML.pl", "PGgraphmacros.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + ); ############################################## -#Percent word problem +#Percent word problem Context("LimitedNumeric"); Context()->{format}{number} = "%.1f"; @@ -59,9 +59,9 @@ BEGIN_PGML What percent of [$a] is [$b]? (Round your answer to the nearest tenth of a percent.) - [________]{$ans}`%` + [________]{$ans}`%` + - END_PGML ############################################## diff --git a/Contrib/CCCS/QuantitativeLiteracy/Percents/Percent_Word_Problem_2.pg b/Contrib/CCCS/QuantitativeLiteracy/Percents/Percent_Word_Problem_2.pg index dd4239abbb..0a4037754f 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Percents/Percent_Word_Problem_2.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Percents/Percent_Word_Problem_2.pg @@ -24,12 +24,12 @@ loadMacros( "PGML.pl", "PGgraphmacros.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + ); ############################################## -#Percent word problem +#Percent word problem Context("LimitedNumeric"); Context()->{format}{number} = "%.1f"; @@ -59,7 +59,7 @@ BEGIN_PGML [________]{$ans} - + END_PGML ############################################## diff --git a/Contrib/CCCS/QuantitativeLiteracy/Percents/Percent_Word_Problem_3.pg b/Contrib/CCCS/QuantitativeLiteracy/Percents/Percent_Word_Problem_3.pg index 0e6c55b3f4..63e941b0c1 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Percents/Percent_Word_Problem_3.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Percents/Percent_Word_Problem_3.pg @@ -24,12 +24,12 @@ loadMacros( "PGML.pl", "PGgraphmacros.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + ); ############################################## -#Percent word problem +#Percent word problem Context("LimitedNumeric"); Context()->{format}{number} = "%.1f"; @@ -60,7 +60,7 @@ BEGIN_PGML [________]{$ans} - + END_PGML ############################################## diff --git a/Contrib/CCCS/QuantitativeLiteracy/Percents/Percent_Word_Problem_4.pg b/Contrib/CCCS/QuantitativeLiteracy/Percents/Percent_Word_Problem_4.pg index 9c1791046c..ebd5033ec1 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Percents/Percent_Word_Problem_4.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Percents/Percent_Word_Problem_4.pg @@ -24,12 +24,12 @@ loadMacros( "PGML.pl", "PGgraphmacros.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + ); ############################################## -#Percent word problem +#Percent word problem Context("LimitedNumeric"); Context()->{format}{number} = "%.1f"; @@ -58,9 +58,9 @@ BEGIN_PGML [$b] is what percent of [$a]? (Round your answer to the nearest tenth of a percent.) - [________]{$ans}`%` + [________]{$ans}`%` + - END_PGML ############################################## diff --git a/Contrib/CCCS/QuantitativeLiteracy/Percents/Percent_Word_Problem_5.pg b/Contrib/CCCS/QuantitativeLiteracy/Percents/Percent_Word_Problem_5.pg index 26e10db8c4..990455a101 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Percents/Percent_Word_Problem_5.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Percents/Percent_Word_Problem_5.pg @@ -24,12 +24,12 @@ loadMacros( "PGML.pl", "PGgraphmacros.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + ); ############################################## -#Percent word problem +#Percent word problem Context("LimitedNumeric"); Context()->{format}{number} = "%.1f"; @@ -59,7 +59,7 @@ What is [$a]% of [$b]? (Round your answer to the nearest tenth.) [________]{$ans} - + END_PGML ############################################## diff --git a/Contrib/CCCS/QuantitativeLiteracy/Percents/Percent_Word_Problem_6.pg b/Contrib/CCCS/QuantitativeLiteracy/Percents/Percent_Word_Problem_6.pg index 70c4e2cd56..a78b3c599f 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Percents/Percent_Word_Problem_6.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Percents/Percent_Word_Problem_6.pg @@ -24,12 +24,12 @@ loadMacros( "PGML.pl", "PGgraphmacros.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + ); ############################################## -#Percent word problem +#Percent word problem Context("LimitedNumeric"); Context()->{format}{number} = "%.1f"; @@ -60,7 +60,7 @@ BEGIN_PGML [________]{$ans} - + END_PGML ############################################## diff --git a/Contrib/CCCS/QuantitativeLiteracy/Percents/Simple_Interest_1.pg b/Contrib/CCCS/QuantitativeLiteracy/Percents/Simple_Interest_1.pg index 9ec8b23b5f..288908e0f2 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Percents/Simple_Interest_1.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Percents/Simple_Interest_1.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,7 +48,7 @@ $rate = $r/100; BEGIN_PGML Find the simple interest earned after [$t] years on $[$P] at an interest rate of [$r]%. -[_________________]{$ans} +[_________________]{$ans} *Hint: I = PRT* @@ -63,11 +63,11 @@ We can use the formula *I = PRT* -to solve simple interest problems. +to solve simple interest problems. -I = interest earned, -P = principal, -R = interest rate (as a decimal), +I = interest earned, +P = principal, +R = interest rate (as a decimal), T = time (in years) In this problem, diff --git a/Contrib/CCCS/QuantitativeLiteracy/Percents/Simple_Interest_2.pg b/Contrib/CCCS/QuantitativeLiteracy/Percents/Simple_Interest_2.pg index ec55dabf77..15afd6e506 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Percents/Simple_Interest_2.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Percents/Simple_Interest_2.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,7 +48,7 @@ $aprint = sprintf("%0.2f", $ans); BEGIN_PGML Find the simple interest earned after [$t] months on $[$P] at an interest rate of [$r]%. -[_________________]{$ans} +[_________________]{$ans} *Hint: I = PRT* @@ -63,11 +63,11 @@ We can use the formula *I = PRT* -to solve simple interest problems. +to solve simple interest problems. -I = interest earned, -P = principal, -R = interest rate (as a decimal), +I = interest earned, +P = principal, +R = interest rate (as a decimal), T = time (in years) In this problem, diff --git a/Contrib/CCCS/QuantitativeLiteracy/Percents/Simple_Interest_3.pg b/Contrib/CCCS/QuantitativeLiteracy/Percents/Simple_Interest_3.pg index 0aabfeb706..80c6022708 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Percents/Simple_Interest_3.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Percents/Simple_Interest_3.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -49,7 +49,7 @@ $rhs = $rate*$t; BEGIN_PGML Find the principal invested if [`$[$I]`] interest was earned in [$t] years at an interest rate of [$r]%. -[_________________]{$P} +[_________________]{$P} *Hint: I = PRT* @@ -64,11 +64,11 @@ We can use the formula *I = PRT* -to solve simple interest problems. +to solve simple interest problems. -I = interest earned, -P = principal, -R = interest rate (as a decimal), +I = interest earned, +P = principal, +R = interest rate (as a decimal), T = time (in years) In this problem, diff --git a/Contrib/CCCS/QuantitativeLiteracy/Percents/Simple_Interest_4.pg b/Contrib/CCCS/QuantitativeLiteracy/Percents/Simple_Interest_4.pg index 78c8295563..9d3eacfcd7 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Percents/Simple_Interest_4.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Percents/Simple_Interest_4.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -65,11 +65,11 @@ We can use the formula *I = PRT* -to solve simple interest problems. +to solve simple interest problems. -I = interest earned, -P = principal, -R = interest rate (as a decimal), +I = interest earned, +P = principal, +R = interest rate (as a decimal), T = time (in years) In this problem, diff --git a/Contrib/CCCS/QuantitativeLiteracy/Polynomials/Add_1.pg b/Contrib/CCCS/QuantitativeLiteracy/Polynomials/Add_1.pg index 42f0b79067..4b081c3e5c 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Polynomials/Add_1.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Polynomials/Add_1.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserImplicitEquation.pl", @@ -62,7 +62,7 @@ Add the polynomials: [`([$f1]) + ([$f2])`] -[_________________]{$ans} +[_________________]{$ans} END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Polynomials/Intro_1.pg b/Contrib/CCCS/QuantitativeLiteracy/Polynomials/Intro_1.pg index b7d250f068..79de3125dc 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Polynomials/Intro_1.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Polynomials/Intro_1.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserImplicitEquation.pl", @@ -50,7 +50,7 @@ BEGIN_PGML What is the degrees of the polynomial, [`[$f]`]? -degree = [_________________]{$n} +degree = [_________________]{$n} END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Polynomials/Subtract_1.pg b/Contrib/CCCS/QuantitativeLiteracy/Polynomials/Subtract_1.pg index 9f847a415f..a55c097dd9 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Polynomials/Subtract_1.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Polynomials/Subtract_1.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserImplicitEquation.pl", @@ -67,7 +67,7 @@ Subtract the polynomials: [`([$f1]) - ([$f2])`] -[_________________]{$ans} +[_________________]{$ans} END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Rational_Equations/Rational_Equations_1.pg b/Contrib/CCCS/QuantitativeLiteracy/Rational_Equations/Rational_Equations_1.pg index 50fbf5a25e..04f4e0f358 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Rational_Equations/Rational_Equations_1.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Rational_Equations/Rational_Equations_1.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -52,12 +52,12 @@ $ans2=Fraction($ans1); BEGIN_PGML -Solve the rational equation. Enter the answer as a reduced fraction. If there is no answer, enter "NONE". +Solve the rational equation. Enter the answer as a reduced fraction. If there is no answer, enter "NONE". [`\dfrac{[$a]}{x+[$b]} + \dfrac{[$c]}{x+[$d]}=0`] -[`x`] = [_________________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +[`x`] = [_________________]{$ans2} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Rational_Equations/Rational_Equations_2.pg b/Contrib/CCCS/QuantitativeLiteracy/Rational_Equations/Rational_Equations_2.pg index 0a0d2795bb..31bb20e33d 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Rational_Equations/Rational_Equations_2.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Rational_Equations/Rational_Equations_2.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -52,12 +52,12 @@ $ans2=Fraction($ans1); BEGIN_PGML -Solve the rational equation. Enter the answer as a reduced fraction. If there is no answer, enter "NONE". +Solve the rational equation. Enter the answer as a reduced fraction. If there is no answer, enter "NONE". [`\dfrac{[$a]}{x+[$b]} = \dfrac{[$c]}{x+[$d]}`] -[`x`] = [_________________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +[`x`] = [_________________]{$ans2} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Rational_Equations/Rational_Equations_3.pg b/Contrib/CCCS/QuantitativeLiteracy/Rational_Equations/Rational_Equations_3.pg index d3c8bf8fa1..e7db8ec66c 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Rational_Equations/Rational_Equations_3.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Rational_Equations/Rational_Equations_3.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -53,12 +53,12 @@ $ans2=Fraction($ans1); BEGIN_PGML -Solve the rational equation. Enter the answer as a reduced fraction. If there is no answer, enter "NONE". +Solve the rational equation. Enter the answer as a reduced fraction. If there is no answer, enter "NONE". [`\dfrac{[$a]}{x^2} + \dfrac{[$c]}{[$b]x} + \dfrac{[$d]}{[$e]x} = 0`] -[`x`] = [_________________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +[`x`] = [_________________]{$ans2} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Rational_Equations/Rational_Equations_4.pg b/Contrib/CCCS/QuantitativeLiteracy/Rational_Equations/Rational_Equations_4.pg index df202686ea..6ca8b137b1 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Rational_Equations/Rational_Equations_4.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Rational_Equations/Rational_Equations_4.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -59,12 +59,12 @@ $ans2=Fraction($ans1); BEGIN_PGML -Solve the rational equation. Enter the answer as a reduced fraction. If there is no answer, enter "NONE". +Solve the rational equation. Enter the answer as a reduced fraction. If there is no answer, enter "NONE". [`\dfrac{[$c]}{x+[$a]} + \dfrac{[$d]}{x+[$b]} = \dfrac{[$e]}{x^2+[$aplusb]x+[$ab]}`] -[`x`] = [_________________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +[`x`] = [_________________]{$ans2} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Rational_Equations/Rational_Equations_5.pg b/Contrib/CCCS/QuantitativeLiteracy/Rational_Equations/Rational_Equations_5.pg index a6857a18d1..897629e63e 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Rational_Equations/Rational_Equations_5.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Rational_Equations/Rational_Equations_5.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -58,12 +58,12 @@ $ans2=Fraction($ans1); BEGIN_PGML -Solve the rational equation. Enter the answer as a reduced fraction. If there is no answer, enter "NONE". +Solve the rational equation. Enter the answer as a reduced fraction. If there is no answer, enter "NONE". [`\dfrac{[$c]}{x+[$a]} - \dfrac{[$d]}{x+[$b]} = \dfrac{[$e]x}{x^2+[$aplusb]x+[$ab]}`] -[`x`] = [_________________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +[`x`] = [_________________]{$ans2} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Rational_Equations/Rational_Equations_6.pg b/Contrib/CCCS/QuantitativeLiteracy/Rational_Equations/Rational_Equations_6.pg index fb4f9d84d1..d03a14f375 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Rational_Equations/Rational_Equations_6.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Rational_Equations/Rational_Equations_6.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -59,12 +59,12 @@ $ans2=Fraction($ans1); BEGIN_PGML -Solve the rational equation. Enter the answer as a reduced fraction. If there is no answer, enter "NONE". +Solve the rational equation. Enter the answer as a reduced fraction. If there is no answer, enter "NONE". [`\dfrac{[$c]}{x} + \dfrac{[$d]}{x+[$b]} = \dfrac{[$e]}{x^2+[$aplusb]x}`] -[`x`] = [_________________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +[`x`] = [_________________]{$ans2} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Rational_Equations/Rational_Equations_7.pg b/Contrib/CCCS/QuantitativeLiteracy/Rational_Equations/Rational_Equations_7.pg index 569be8f75f..c0e2e876fb 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Rational_Equations/Rational_Equations_7.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Rational_Equations/Rational_Equations_7.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -59,12 +59,12 @@ $ans2=Fraction($ans1); BEGIN_PGML -Solve the rational equation. Enter the answer as a reduced fraction. If there is no answer, enter "NONE". +Solve the rational equation. Enter the answer as a reduced fraction. If there is no answer, enter "NONE". [`\dfrac{[$c]}{x+[$a]} + \dfrac{[$d]}{x+[$b]} = \dfrac{[$e]}{x^2+[$aplusb]x+[$ab]}`] -[`x`] = [_________________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +[`x`] = [_________________]{$ans2} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Rational_Equations/Rational_Equations_8.pg b/Contrib/CCCS/QuantitativeLiteracy/Rational_Equations/Rational_Equations_8.pg index 62033b2569..c505f04090 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Rational_Equations/Rational_Equations_8.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Rational_Equations/Rational_Equations_8.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -59,12 +59,12 @@ $ans2=Fraction($ans1); BEGIN_PGML -Solve the rational equation. Enter the answer as a reduced fraction. If there is no answer, enter "NONE". +Solve the rational equation. Enter the answer as a reduced fraction. If there is no answer, enter "NONE". [`\dfrac{[$c]}{x+[$a]} - \dfrac{[$e]}{x^2+[$aplusb]x+[$ab]} = \dfrac{[$d]}{x+[$b]} `] -[`x`] = [_________________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +[`x`] = [_________________]{$ans2} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Rational_Equations/Rational_Equations_9.pg b/Contrib/CCCS/QuantitativeLiteracy/Rational_Equations/Rational_Equations_9.pg index 8769c93601..0b3d8ad890 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Rational_Equations/Rational_Equations_9.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Rational_Equations/Rational_Equations_9.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -56,12 +56,12 @@ $ans2=Fraction($ans1); BEGIN_PGML -Solve the rational equation. Enter the answer as a reduced fraction. If there is no answer, enter "NONE". +Solve the rational equation. Enter the answer as a reduced fraction. If there is no answer, enter "NONE". [`\dfrac{[$c]}{x+[$a]} - \dfrac{[$e]x}{x^2+[$aplusb]x+[$ab]} = \dfrac{[$d]}{x+[$b]} `] -[`x`] = [_________________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +[`x`] = [_________________]{$ans2} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Ratios_and_Conversions/Proportions_1.pg b/Contrib/CCCS/QuantitativeLiteracy/Ratios_and_Conversions/Proportions_1.pg index 23894a0d93..c2e7d7a7b8 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Ratios_and_Conversions/Proportions_1.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Ratios_and_Conversions/Proportions_1.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -57,7 +57,7 @@ Solve the following proportion. [`` \frac{[$a]}{[$b]}= \frac{y}{[$c]}``] - `y=` [_______________]{$ans} [@ AnswerFormatHelp("numeric") @]* + `y=` [_______________]{$ans} [@ helpLink("numeric") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Ratios_and_Conversions/Proportions_2.pg b/Contrib/CCCS/QuantitativeLiteracy/Ratios_and_Conversions/Proportions_2.pg index 15c9821bac..4a45071d0c 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Ratios_and_Conversions/Proportions_2.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Ratios_and_Conversions/Proportions_2.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -61,7 +61,7 @@ Solve the following proportion. [`` \frac{[$f]}{[$e]}= \frac{[$g]}{x}``] - `x=` [_______________]{$ans} [@ AnswerFormatHelp("numeric") @]* + `x=` [_______________]{$ans} [@ helpLink("numeric") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Ratios_and_Conversions/Proportions_3.pg b/Contrib/CCCS/QuantitativeLiteracy/Ratios_and_Conversions/Proportions_3.pg index 23674db1ab..c58186d6b9 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Ratios_and_Conversions/Proportions_3.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Ratios_and_Conversions/Proportions_3.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -58,7 +58,7 @@ Solve the following proportion. Reduce your final answer. [`` \frac{\frac{[$c]}{[$a]}}{n}= \frac{[$d]}{[$b]}``] - `n=` [_______________]{$ans} [@ AnswerFormatHelp("numeric") @]* + `n=` [_______________]{$ans} [@ helpLink("numeric") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Ratios_and_Conversions/Proportions_4.pg b/Contrib/CCCS/QuantitativeLiteracy/Ratios_and_Conversions/Proportions_4.pg index 2a0a34d6d8..750acae6b1 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Ratios_and_Conversions/Proportions_4.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Ratios_and_Conversions/Proportions_4.pg @@ -12,7 +12,7 @@ ## MO(1) ## KEYWORDS('elementary algebra') -#solve a proportion involving a fraction. This involves dividing fractions. +#solve a proportion involving a fraction. This involves dividing fractions. ########################### # Initialization @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -55,11 +55,11 @@ $num = $c*$b*$d; BEGIN_PGML -Solve the following proportion. +Solve the following proportion. [`` \frac{w}{[$c]}= \frac{[$b]}{\frac{[$a]}{[$d]}}``] - `w=` [_______________]{$ans} [@ AnswerFormatHelp("numeric") @]* + `w=` [_______________]{$ans} [@ helpLink("numeric") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Ratios_and_Conversions/Ratios_1.pg b/Contrib/CCCS/QuantitativeLiteracy/Ratios_and_Conversions/Ratios_1.pg index 47a5deb835..03b818ac0d 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Ratios_and_Conversions/Ratios_1.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Ratios_and_Conversions/Ratios_1.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -58,7 +58,7 @@ Write the given ratio as a fraction in simplest form. `[$e]` to `[$f]=` - Reduced Fraction: [_______________]{$ans} [@ AnswerFormatHelp("numeric") @]* + Reduced Fraction: [_______________]{$ans} [@ helpLink("numeric") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Ratios_and_Conversions/Ratios_2.pg b/Contrib/CCCS/QuantitativeLiteracy/Ratios_and_Conversions/Ratios_2.pg index 32f7e48be5..71bac3acdf 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Ratios_and_Conversions/Ratios_2.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Ratios_and_Conversions/Ratios_2.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -58,7 +58,7 @@ Write the given ratio as a fraction in simplest form. `[$e]` : `[$f]=` - Reduced Fraction: [_______________]{$ans} [@ AnswerFormatHelp("numeric") @]* + Reduced Fraction: [_______________]{$ans} [@ helpLink("numeric") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Formula_1.pg b/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Formula_1.pg index 36481182ab..75af0ed402 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Formula_1.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Formula_1.pg @@ -1,6 +1,6 @@ ##DESCRIPTION ## Solving a formula for a variable -## +## ##ENDDESCRIPTION ## DBsubject() ## DBchapter() @@ -20,7 +20,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -52,7 +52,7 @@ Solve the formula for [`[$B]`]. [`[$A] = \frac{1}{[$denom]}[$B][$C]`] -[`[$B]=`][_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`[$B]=`][_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Formula_2.pg b/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Formula_2.pg index e199659550..fd4c463758 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Formula_2.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Formula_2.pg @@ -1,6 +1,6 @@ ##DESCRIPTION ## Solving a formula for a variable -## +## ##ENDDESCRIPTION ## DBsubject() ## DBchapter() @@ -20,7 +20,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -54,7 +54,7 @@ Solve the formula for [`[$x]`]. [`[$B][$y]+[$A][$x] = [$C]`]; -[`[$x]=`][_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`[$x]=`][_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Formula_3.pg b/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Formula_3.pg index 7c17602156..c2118f569b 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Formula_3.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Formula_3.pg @@ -1,6 +1,6 @@ ##DESCRIPTION ## Solving a formula for a variable -## +## ##ENDDESCRIPTION ## DBsubject() ## DBchapter() @@ -20,7 +20,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -53,7 +53,7 @@ Solve the formula for [`[$x]`]. [`[$B]{[$y]}^{[$exp]}+[$A][$x]=[$C]`]; -[`[$x]=`][_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`[$x]=`][_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Formula_4.pg b/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Formula_4.pg index 9ea4d18025..5bd7bb8539 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Formula_4.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Formula_4.pg @@ -1,6 +1,6 @@ ##DESCRIPTION ## Solving a formula for a variable -## +## ##ENDDESCRIPTION ## DBsubject() ## DBchapter() @@ -20,7 +20,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -53,7 +53,7 @@ Solve the formula for [`[$x]`]. [`[$A] = [$a]([$x]+[$n])+[$b]`] -[`[$x]=`][_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`[$x]=`][_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Formula_5.pg b/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Formula_5.pg index c79ce8c05a..6aaf757092 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Formula_5.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Formula_5.pg @@ -1,6 +1,6 @@ ##DESCRIPTION ## Solving a formula for a variable -## +## ##ENDDESCRIPTION ## DBsubject() ## DBchapter() @@ -20,7 +20,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -52,7 +52,7 @@ Solve the formula for [`[$B]`]. [`[$A] = \frac{1}{[$denom]}[$B][$C]`]; -[`[$B]=`][_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`[$B]=`][_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_1.pg b/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_1.pg index eb12a2d703..77b3f65e3a 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_1.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_1.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -57,9 +57,9 @@ $ans = $b-$a; # Main text BEGIN_PGML -Solve the equation [`[$x]+[$a]=[$b]`]. +Solve the equation [`[$x]+[$a]=[$b]`]. -[`[$x]=`] [_________________]{$ans} +[`[$x]=`] [_________________]{$ans} END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_10.pg b/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_10.pg index 581b84401e..3f580669f0 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_10.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_10.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -59,9 +59,9 @@ Context("LimitedNumeric"); # Main text BEGIN_PGML -Solve the equation [`[$eqnleft]=[$b]+[$c]`]. +Solve the equation [`[$eqnleft]=[$b]+[$c]`]. -[`[$x]=`] [_________________]{$ans} +[`[$x]=`] [_________________]{$ans} END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_11.pg b/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_11.pg index dd40ca829f..279eb3aed9 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_11.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_11.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -60,9 +60,9 @@ Context("LimitedNumeric"); # Main text BEGIN_PGML -Solve the equation [`[$equation]=[$c]`]. +Solve the equation [`[$equation]=[$c]`]. -[`[$x]=`] [_________________]{$ans} +[`[$x]=`] [_________________]{$ans} END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_12.pg b/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_12.pg index 6c936c7693..94e12d179a 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_12.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_12.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -51,9 +51,9 @@ Context("LimitedNumeric"); # Main text BEGIN_PGML -Solve the equation [`[$equation]=[$x]`]. +Solve the equation [`[$equation]=[$x]`]. -[`[$x]=`] [_________________]{$ans} +[`[$x]=`] [_________________]{$ans} END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_13.pg b/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_13.pg index 4056438aa8..4cd0e8c828 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_13.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_13.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -62,9 +62,9 @@ Context("LimitedNumeric"); # Main text BEGIN_PGML -Solve the equation [`[$eqnleft]=[$eqnright]`]. +Solve the equation [`[$eqnleft]=[$eqnright]`]. -[`[$x]=`] [_________________]{$ans} +[`[$x]=`] [_________________]{$ans} END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_14.pg b/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_14.pg index 8ec695d82f..3ec86d877f 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_14.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_14.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -68,7 +68,7 @@ $ans = Fraction($d-$c*$a,$a+$b); BEGIN_PGML Solve the equation [`[$left]=[$d]`]. Write your answer as an integer or fraction. -[`[$x]=`] [_________________]{$ans} +[`[$x]=`] [_________________]{$ans} END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_15.pg b/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_15.pg index 56a2af06e7..e3f484e802 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_15.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_15.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -93,7 +93,7 @@ $ans = Fraction($d*$f+$g-$c*$a,-$h-$sum); BEGIN_PGML Solve the equation [`[$left]=[$right]`]. Write your answer as an integer or fraction. -[`[$x]=`] [_________________]{$ans} +[`[$x]=`] [_________________]{$ans} END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_2.pg b/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_2.pg index d163dbd025..0fd0ab809e 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_2.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_2.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -52,9 +52,9 @@ Context("LimitedNumeric"); # Main text BEGIN_PGML -Solve the equation [`[$equation]=[$b]`]. +Solve the equation [`[$equation]=[$b]`]. -[`[$x]=`] [_________________]{$ans} +[`[$x]=`] [_________________]{$ans} END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_3.pg b/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_3.pg index f3ccfbcf31..b5a6e74c4a 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_3.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_3.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -52,9 +52,9 @@ Context("LimitedNumeric"); # Main text BEGIN_PGML -Solve the equation [`\dfrac{[$x]}{[$a]}=[$b]`]. +Solve the equation [`\dfrac{[$x]}{[$a]}=[$b]`]. -[`[$x]=`] [_________________]{$ans} +[`[$x]=`] [_________________]{$ans} END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_4.pg b/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_4.pg index bcbec56cf4..cf6aa08f27 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_4.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_4.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -82,7 +82,7 @@ $ans = Fraction($d-$c,$a-$b); BEGIN_PGML Solve the equation [`[$left]=[$right]`]. Write your answer as an integer or fraction. -[`[$x]=`] [_________________]{$ans} +[`[$x]=`] [_________________]{$ans} END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_5.pg b/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_5.pg index c274030e15..449ebf31f3 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_5.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_5.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswers = 1; # Setup Context("LimitedNumeric"); -loadMacros("fixedPrecision.pl"); +loadMacros("fixedPrecision.pl"); $x = list_random('a', 'b', 'c', 'd', 'm', 'n', 'p' , 'q', 'r', 'x','y','z'); Context()->variables->are($x => "Real"); @@ -61,13 +61,13 @@ ANS(Compute(FixedPrecision($answer,2))->cmp->withPostFilter(AnswerHints( # Main text BEGIN_PGML -Solve the equation +Solve the equation [`\dfrac{[$a][$x]+[$b]}{[$c]} = [$d]`] Write your answer as a decimal, rounded to the nearest hundredth. -[`[$x]=`] [_________________]{$ans} +[`[$x]=`] [_________________]{$ans} END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_6.pg b/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_6.pg index 992d874406..c256b464b8 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_6.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_6.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -82,7 +82,7 @@ $ans = Fraction($num,$den); BEGIN_PGML Solve the equation [`[$a]-[$b]([$x]+[$c])=[$d][$x]+[$e]([$f][$x]+[$g])`]. Write your answer as an integer or fraction. -[`[$x]=`] [_________________]{$ans} +[`[$x]=`] [_________________]{$ans} END_PGML @@ -97,7 +97,7 @@ Simplify each side by distributing and combining like terms. [`[$left2] = [$right2]`] -Then isolate the variable term. +Then isolate the variable term. [`[$lhs][$x] = [$rhs]`] diff --git a/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_8.pg b/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_8.pg index 7cc87dde89..83aca6133e 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_8.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_8.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -54,9 +54,9 @@ Context("LimitedNumeric"); # Main text BEGIN_PGML -Solve the equation [`[$b]=[$equation]`]. +Solve the equation [`[$b]=[$equation]`]. -[`[$x]=`] [_________________]{$ans} +[`[$x]=`] [_________________]{$ans} END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_9.pg b/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_9.pg index b7876d3916..7c9ac33826 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_9.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_9.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -59,9 +59,9 @@ Context("LimitedNumeric"); # Main text BEGIN_PGML -Solve the equation [`[$lefteqn]=[$righteqn]`]. +Solve the equation [`[$lefteqn]=[$righteqn]`]. -[`[$x]=`] [_________________]{$ans} +[`[$x]=`] [_________________]{$ans} END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_Decimal_1.pg b/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_Decimal_1.pg index 0393283f1e..e90b0f1b59 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_Decimal_1.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_Decimal_1.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -62,9 +62,9 @@ Context("LimitedNumeric"); # Main text BEGIN_PGML -Solve the equation [`[$lefteqn]=[$righteqn]`]. +Solve the equation [`[$lefteqn]=[$righteqn]`]. -[`[$x]=`] [_________________]{$ans} +[`[$x]=`] [_________________]{$ans} END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_Decimal_2.pg b/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_Decimal_2.pg index 3fd9333b24..9495b20a1e 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_Decimal_2.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_Decimal_2.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -71,11 +71,11 @@ $ans = ($B - $A)/($C + 1); # Main text BEGIN_PGML -Solve the equation +Solve the equation [`[$lefteqn]=[$righteqn]`] -[`[$x]=`] [_________________]{$ans} +[`[$x]=`] [_________________]{$ans} END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_Decimal_3.pg b/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_Decimal_3.pg index aeefcb4aaf..494d47ad87 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_Decimal_3.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_Decimal_3.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -65,9 +65,9 @@ Context("LimitedNumeric"); # Main text BEGIN_PGML -Solve the equation [`[$eqnleft]=[$eqnright]`]. +Solve the equation [`[$eqnleft]=[$eqnright]`]. -[`[$x]=`] [_________________]{$ans} +[`[$x]=`] [_________________]{$ans} END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_Fraction_1.pg b/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_Fraction_1.pg index 37ed7b0049..6784e632ad 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_Fraction_1.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_Fraction_1.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -67,7 +67,7 @@ $diff = $blcd - $alcd; BEGIN_PGML Solve the equation [`[$x]+[$a]=[$b]`]. Write your answer as an integer or fraction. -[`[$x]=`] [_________________]{$ans} +[`[$x]=`] [_________________]{$ans} END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_Fraction_2.pg b/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_Fraction_2.pg index f64c81803e..f4bb4c1bc8 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_Fraction_2.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_Fraction_2.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -62,7 +62,7 @@ $ans = Fraction($num2*$den1,$den2*$num1); BEGIN_PGML Solve the equation [`[$a][$x]=[$b]`]. Write your answer as an integer or fraction. -[`[$x]=`] [_________________]{$ans} +[`[$x]=`] [_________________]{$ans} END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_Fraction_3.pg b/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_Fraction_3.pg index 54586d1641..8fb72d1c81 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_Fraction_3.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_Fraction_3.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -79,7 +79,7 @@ $rhs = $ds - $bs; BEGIN_PGML Solve the equation [`[$a][$x]+[$b]=[$c][$x]+[$d]`]. Write your answer as an integer or fraction. -[`[$x]=`] [_________________]{$ans} +[`[$x]=`] [_________________]{$ans} END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_Fraction_4.pg b/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_Fraction_4.pg index cbfc6f6645..502715edd5 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_Fraction_4.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_Fraction_4.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -63,13 +63,13 @@ $ans = Fraction($C*$num,$den); # Main text BEGIN_PGML -Solve the equation +Solve the equation [``\frac{[$x]}{\frac{[$num]}{[$den]}}=[$C]``] Write your answer as an integer or fraction. -[`[$x]=`] [_________________]{$ans} +[`[$x]=`] [_________________]{$ans} END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_Fraction_5.pg b/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_Fraction_5.pg index 23474b084d..9a14091641 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_Fraction_5.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_Fraction_5.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -71,7 +71,7 @@ $rhs = $cs - $bs; BEGIN_PGML Solve the equation [`[$A][$x]+[$B]=[$C]`]. Write your answer as an integer or fraction. -[`[$x]=`] [_________________]{$ans} +[`[$x]=`] [_________________]{$ans} END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_Fraction_6.pg b/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_Fraction_6.pg index 97eda21fb1..97eae431ed 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_Fraction_6.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_Fraction_6.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -86,7 +86,7 @@ Solve the equation: Write your answer as an integer or fraction. -[`[$x]=`] [_________________]{$ans} +[`[$x]=`] [_________________]{$ans} END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_Fraction_7.pg b/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_Fraction_7.pg index fd35702b23..692b0938b5 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_Fraction_7.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_Fraction_7.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -74,7 +74,7 @@ $ans = Fraction($C-$A*$B, $A**2*$F); BEGIN_PGML Solve the equation [`\frac{1}{[$F]}([$a][$x]+[$B])=\frac{[$C]}{[$a]}`]. Write your answer as an integer or fraction. -[`[$x]=`] [_________________]{$ans} +[`[$x]=`] [_________________]{$ans} END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_Fraction_8.pg b/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_Fraction_8.pg index e810ea0cd7..b0ed624bcf 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_Fraction_8.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Linear_Equation_Fraction_8.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -69,7 +69,7 @@ $ans = Fraction($den*$a - $num, $den*$b); BEGIN_PGML Solve the equation [`[$a] =[$b][$x]+\frac{[$num]}{[$den]}`]. Write your answer as an integer or fraction. -[`[$x]=`] [_________________]{$ans} +[`[$x]=`] [_________________]{$ans} END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Power_Function_1.pg b/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Power_Function_1.pg index 97fe07a59d..d99ef3e520 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Power_Function_1.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Power_Function_1.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -34,7 +34,7 @@ $showPartialCorrectAnswers = 1; # Setup Context("LimitedNumeric"); -loadMacros("fixedPrecision.pl"); +loadMacros("fixedPrecision.pl"); $a = random(1,20); $b = random(1,200); @@ -56,7 +56,7 @@ ANS(Compute(FixedPrecision($answer,3))->cmp->withPostFilter(AnswerHints( BEGIN_PGML Find all positive solutions to the equation [`[$a]{x}^{[$e]}=[$b]`]. Enter your answer as a decimal rounded to the nearest thousandth. -[`x=`] [_________________]{$ans} Make sure you enter an answer with exactly 3 digits after the decimal! +[`x=`] [_________________]{$ans} Make sure you enter an answer with exactly 3 digits after the decimal! END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Power_Function_2.pg b/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Power_Function_2.pg index a1e0389bc0..52a3bd819a 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Power_Function_2.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Power_Function_2.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -34,7 +34,7 @@ $showPartialCorrectAnswers = 1; # Setup Context("LimitedNumeric"); -loadMacros("fixedPrecision.pl"); +loadMacros("fixedPrecision.pl"); $a = random(1,20); $b = random(1,5,0.1); @@ -58,7 +58,7 @@ ANS(Compute(FixedPrecision($answer,3))->cmp->withPostFilter(AnswerHints( BEGIN_PGML Find all positive solutions to the equation [`[$a]({[$b]x+[$c]})^{[$e]}=[$d]`]. Enter your answer as a decimal rounded to the nearest thousandth. -[`x=`] [_________________]{$ans} Make sure you enter an answer with exactly 3 digits after the decimal! +[`x=`] [_________________]{$ans} Make sure you enter an answer with exactly 3 digits after the decimal! END_PGML diff --git a/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Special_Case_1.pg b/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Special_Case_1.pg index 0fde8b5c85..f111a40df2 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Special_Case_1.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Special_Case_1.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## Algebra ## ENDDESCRIPTION - - + + ## DBsubject() ## DBchapter() ## DBsection() @@ -11,17 +11,17 @@ ## Author(Martha Stevens) ## MO(1) ## KEYWORDS() - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,10 +29,10 @@ loadMacros( "PGcourse.pl", "parserPopUp.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup #Add context and y as a variable. @@ -76,23 +76,23 @@ $rhs = $d - $b; - + ########################### # Main text - + BEGIN_PGML How many solutions does the equation have? [`[$eqnleft] = [$eqnright]`] -[____]{$popup} - +[____]{$popup} + END_PGML - + ############################ # Solution - + BEGIN_PGML_SOLUTION First combine like terms. @@ -104,7 +104,7 @@ Then put all the variable terms on one side. [$solution] END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); diff --git a/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Special_Case_2.pg b/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Special_Case_2.pg index 050911eb88..4d1bf303cf 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Special_Case_2.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Solving_Equations/Special_Case_2.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## Algebra ## ENDDESCRIPTION - - + + ## DBsubject() ## DBchapter() ## DBsection() @@ -11,17 +11,17 @@ ## Author(Martha Stevens) ## MO(1) ## KEYWORDS() - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,10 +29,10 @@ loadMacros( "PGcourse.pl", "parserPopUp.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup #Add context and y as a variable. @@ -75,23 +75,23 @@ $right2 = Formula("($c-1)*$x - $d")->reduce; $lhs = $a - $c + 1; $rhs = -$d - $b*$a; - + ########################### # Main text - + BEGIN_PGML How many solutions does the equation have? [`[$eqnleft] = [$eqnright]`] -[____]{$popup} - +[____]{$popup} + END_PGML - + ############################ # Solution - + BEGIN_PGML_SOLUTION Simplify by distributing and combining like terms. @@ -105,7 +105,7 @@ Then move all variable terms to one side and the constants to the other side. [$solution] END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); diff --git a/Contrib/CCCS/QuantitativeLiteracy/Stats/mean_median_mode_1.pg b/Contrib/CCCS/QuantitativeLiteracy/Stats/mean_median_mode_1.pg index 9448eff0ba..1991f52221 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Stats/mean_median_mode_1.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Stats/mean_median_mode_1.pg @@ -10,27 +10,27 @@ ## Author(Martha Stevens) ## MO(1) ## KEYWORDS() - + ####################################################### ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", "PGML.pl", "PGcourse.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup @@ -52,7 +52,7 @@ $listAdd=""; for my $i (0..$dim-1) { $nums[$i] = random(1, 10); - + $sum = $sum + $nums[$i]; $listComma = $listComma."$nums[$i],\;\;"; @@ -92,7 +92,7 @@ END_PGML # Solution BEGIN_PGML_SOLUTION - + To find the mean, add up the values and divide by the number of values. There are [$dim] values given, so the mean is: Mean = [`[$sum] \div [$dim] = [$mean]`] @@ -106,7 +106,7 @@ Since there are an even number of values, the median is the average of the middl Median = [`([$mid1] + [$mid2]) \div 2 = [$median]`]. END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/QuantitativeLiteracy/Stats/mean_median_mode_2.pg b/Contrib/CCCS/QuantitativeLiteracy/Stats/mean_median_mode_2.pg index 21c9f33a74..548ffd09e2 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Stats/mean_median_mode_2.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Stats/mean_median_mode_2.pg @@ -10,27 +10,27 @@ ## Author(Martha Stevens) ## MO(1) ## KEYWORDS() - + ####################################################### ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", "PGML.pl", "PGcourse.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup @@ -52,7 +52,7 @@ $listAdd=""; for my $i (0..$dim-1) { $nums[$i] = random(10,100, 5); - + $sum = $sum + $nums[$i]; $listComma = $listComma."$nums[$i],\;\;"; @@ -88,7 +88,7 @@ END_PGML ############################ # Solution - + BEGIN_PGML_SOLUTION To find the mean, add up the values and divide by the number of values. There are [$dim] values given, so the mean is: @@ -100,7 +100,7 @@ The median is the middle value. First put the values in order, from smallest to The middle value is [$median]. END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/QuantitativeLiteracy/Stats/mean_median_mode_3.pg b/Contrib/CCCS/QuantitativeLiteracy/Stats/mean_median_mode_3.pg index 7ad5228c47..fa1df052e1 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Stats/mean_median_mode_3.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Stats/mean_median_mode_3.pg @@ -10,27 +10,27 @@ ## Author(Martha Stevens) ## MO(1) ## KEYWORDS() - + ####################################################### ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", "PGML.pl", "PGcourse.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup @@ -78,7 +78,7 @@ END_PGML ############################ # Solution - + BEGIN_PGML_SOLUTION The mean is the average of the numbers. To find the mean add the values and then divide by the number of values ([$dim]). @@ -96,7 +96,7 @@ The middle number is the 3rd value, [$median]. The mode is the vale that occurs most frequently. Since there are two [$mode]'s, the mode is: [$mode]. END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/QuantitativeLiteracy/Stats/mean_median_mode_4.pg b/Contrib/CCCS/QuantitativeLiteracy/Stats/mean_median_mode_4.pg index 47a7b54dc1..e7d51f52b6 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Stats/mean_median_mode_4.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Stats/mean_median_mode_4.pg @@ -10,27 +10,27 @@ ## Author(Martha Stevens) ## MO(1) ## KEYWORDS() - + ####################################################### ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", "PGML.pl", "PGcourse.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup @@ -83,7 +83,7 @@ END_PGML ############################ # Solution - + BEGIN_PGML_SOLUTION The mean is the average of the numbers. To find the mean add the values and then divide by the number of values ([$dim]). @@ -104,7 +104,7 @@ Median = [`([$ordered[3]] + [$ordered[4]]) \div 2 = [$median]`] The mode is the vale that occurs most frequently. Since there are three [$mode]'s, the mode is: [$mode]. END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/CCCS/QuantitativeLiteracy/Test_Problems/Line_Graph.pg b/Contrib/CCCS/QuantitativeLiteracy/Test_Problems/Line_Graph.pg index fd07b91cbe..0f481b38f1 100644 --- a/Contrib/CCCS/QuantitativeLiteracy/Test_Problems/Line_Graph.pg +++ b/Contrib/CCCS/QuantitativeLiteracy/Test_Problems/Line_Graph.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerHints.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); diff --git a/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_22.pg b/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_22.pg index fca909e93e..ef18577e26 100644 --- a/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_22.pg +++ b/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_22.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl" @@ -49,8 +49,8 @@ $ans = Compute ( 2*pi*[$r]*[$a]/360); Context()->functions->disable("SimpleTrig"); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -68,7 +68,7 @@ Use the below diagram to find the length of the arc between points A and C. The -[_______________]{$ans} inches :: [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans} inches :: [@ helpLink("numbers") @]* [$video]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_23.pg b/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_23.pg index eb4559d646..b636dd5f89 100644 --- a/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_23.pg +++ b/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_23.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl" @@ -60,7 +60,7 @@ Use the below diagram to find the area of the shaded region if the radius of the -[_______________]{$ans} inches[`^2`] :: [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans} inches[`^2`] :: [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_24.pg b/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_24.pg index 7e0d42b4a4..61febd740b 100644 --- a/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_24.pg +++ b/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_24.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl" @@ -62,7 +62,7 @@ Use the below diagram to find the length of the arc between points A and C if th -[_______________]{$ans} inches :: [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans} inches :: [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_25.pg b/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_25.pg index 6fa1095ff7..b03f2bb473 100644 --- a/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_25.pg +++ b/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_25.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl" @@ -68,7 +68,7 @@ BEGIN_PGML -[_______________]{$ans} inches[`^2`] :: [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans} inches[`^2`] :: [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_26.pg b/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_26.pg index 1e03f70236..2a5c0e8731 100644 --- a/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_26.pg +++ b/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_26.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl" @@ -40,14 +40,14 @@ Context("Numeric"); $n=random(0,15,1); -# Array of 16 angles +# Array of 16 angles @latexangle=("pi/6", "pi/4" ,"pi/3" ,"pi/2", "(2pi)/3" , "(3pi)/4", "(5pi)/6", "pi", "(7pi)/6", "(5pi)/4", "(4pi)/3", "(3pi)/2", "(5pi)/3", "(7pi)/4", "(11pi)/6", "2pi"); # Selecting angle for PGML $a = $latexangle[$n] ; -# Array of 16 angles +# Array of 16 angles @answerangle = (30, 45, 60, 90,120, 135,150,180, 210, 225, 240, 270, 300, 315, 330, 360); @@ -57,8 +57,8 @@ $ans = $answerangle[$n] ; Context()->functions->disable("SimpleTrig"); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -67,9 +67,9 @@ TeX => # Main text BEGIN_PGML -Convert the given angle measure in radians to degrees. +Convert the given angle measure in radians to degrees. -`[$a] =` [_______________]{$ans} degrees :: [@ AnswerFormatHelp("numbers") @]* +`[$a] =` [_______________]{$ans} degrees :: [@ helpLink("numbers") @]* [$video]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_27.pg b/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_27.pg index 580a5aedbc..6f887700bd 100644 --- a/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_27.pg +++ b/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_27.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl" @@ -40,14 +40,14 @@ Context("Numeric"); $n=random(0,23,1); -# Array of 24 angles +# Array of 24 angles @latexangle=("pi/9","pi/6", "pi/4" ,"pi/3" ,"(7pi)/18","pi/2","(11pi)/18", "(2pi)/3" , "(3pi)/4", "(5pi)/6", "(8pi)/9","pi", "(10pi)/9","(7pi)/6)", "(5pi)/4", "(4pi)/3", "(25pi)/18", "(3pi)/2", "(29pi)/18", "(5pi)/3", "(7pi)/4", "(11pi)/6", "(17pi)/9","2pi"); # Selecting angle for PGML $a = $latexangle[$n] ; -# Array of 24 angles +# Array of 24 angles @answerangle = (20, 30,45, 60, 70,90,110,120, 135,150, 160,180, 200,210,225,240,250,270,290,300,315,330,340,360); @@ -61,9 +61,9 @@ Context()->functions->disable("SimpleTrig"); # Main text BEGIN_PGML -Convert the given angle in radians to degrees. +Convert the given angle in radians to degrees. -`[$a] =` [_______________]{$ans} degrees :: [@ AnswerFormatHelp("numbers") @]* +`[$a] =` [_______________]{$ans} degrees :: [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_28.pg b/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_28.pg index b09a594c24..81b393a0e2 100644 --- a/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_28.pg +++ b/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_28.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl" @@ -40,14 +40,14 @@ Context("Numeric"); $n=random(0,22,1); -# Array of 23 angles +# Array of 23 angles @latexangle=("-pi/9","-pi/6", "-pi/4" ,"-pi/3" ,"-(7pi)/18","-pi/2","-(11pi)/18", "-(2pi)/3" , "-(3pi)/4", "-(5pi)/6", "-(8pi)/9","-pi", "-(10pi)/9","-(7pi)/6)", "-(5pi)/4", "-(4pi)/3", "-(25pi)/18", "-(3pi)/2", "-(29pi)/18", "-(5pi)/3", "-(7pi)/4", "-(11pi)/6", "-(17pi)/9"); # Selecting angle for PGML $a = $latexangle[$n] ; -# Array of 24 angles +# Array of 24 angles @answerangle =(-20, -30 , -45 , -60 , -70 , -90, -110, -120, -135, -150, -160, -180,-200,-210,-225, -240, -250, -270, -290, -300, -315, -330, -340); @@ -62,9 +62,9 @@ Context()->functions->disable("SimpleTrig"); # Main text BEGIN_PGML -Convert the given angle in radians to degrees. +Convert the given angle in radians to degrees. -`[$a] =` [_______________]{$ans} degrees :: [@ AnswerFormatHelp("numbers") @]* +`[$a] =` [_______________]{$ans} degrees :: [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_29.pg b/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_29.pg index 6ea0087728..92be9dabab 100644 --- a/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_29.pg +++ b/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_29.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl" @@ -40,14 +40,14 @@ Context("Numeric"); $n=random(0,15,1); -# Array of 16 angles +# Array of 16 angles @latexangle=("pi/6", "pi/4" ,"pi/3" ,"pi/2", "(2pi)/3" , "(3pi)/4", "(5pi)/6", "pi", "(7pi)/6)", "(5pi)/4", "(4pi)/3", "(3pi)/2", "(5pi)/3", "(7pi)/4", "(11pi)/6", "2pi"); # Selecting angle for PGML $a = $latexangle[$n] ; -# Array of 16 angles +# Array of 16 angles @answerangle = (30,45, 60,90,120, 135,150,180,210,225,240,270,300,315,330,360); @@ -61,9 +61,9 @@ Context()->functions->disable("SimpleTrig"); # Main text BEGIN_PGML -Convert the given angle in radians to degrees. +Convert the given angle in radians to degrees. -`[$a] =` [_______________]{$ans} degrees :: [@ AnswerFormatHelp("numbers") @]* +`[$a] =` [_______________]{$ans} degrees :: [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_33.pg b/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_33.pg index 39cea72fc5..59099d8bc7 100644 --- a/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_33.pg +++ b/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_33.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl" @@ -40,7 +40,7 @@ Context("Numeric"); $n=random(0,15,1); -# Array of 16 angles +# Array of 16 angles @latexangle= (30,45, 60,90,120, 135,150,180,210,225,240,270,300,315,330,360); @@ -50,7 +50,7 @@ $n=random(0,15,1); $a = $latexangle[$n] ; -# Array of 16 angles +# Array of 16 angles @answerangle = (pi/6, pi/4 ,pi/3 ,pi/2, 2*pi/3 , 3*pi/4, 5*pi/6, pi, 7*pi/6, 5*pi/4, 4*pi/3, 3*pi/2, 5*pi/3, 7*pi/4, 11*pi/6,2*pi); @@ -66,7 +66,7 @@ Parser::Number::NoDecimals; BEGIN_PGML Convert the given angle in degrees to radians. Enter answer as a fraction. -[`[$a]^{\circ} =`] [_______________]{$ans} :: [@ AnswerFormatHelp("numbers") @]* +[`[$a]^{\circ} =`] [_______________]{$ans} :: [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_34.pg b/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_34.pg index dcb10105f1..494511377a 100644 --- a/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_34.pg +++ b/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_34.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl" @@ -36,10 +36,10 @@ TEXT(beginproblem()); Context("Numeric"); -# Array of 16 angles +# Array of 16 angles $a= random(0 , 360, 10); -# Array of 16 angles +# Array of 16 angles $ans = Compute($a*(pi/180)); @@ -53,7 +53,7 @@ Parser::Number::NoDecimals; BEGIN_PGML Convert the given angle in degrees to radians. Enter answer as a fraction. -[`[$a]^{\circ} =`] [_______________]{$ans} :: [@ AnswerFormatHelp("numbers") @]* +[`[$a]^{\circ} =`] [_______________]{$ans} :: [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_35.pg b/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_35.pg index 7fb0a1022d..77d84dd00c 100644 --- a/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_35.pg +++ b/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_35.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl" @@ -51,7 +51,7 @@ Parser::Number::NoDecimals; BEGIN_PGML Convert the given angle in degrees to radians. Enter answer as a fraction. -[`[$a]^{\circ}=`] [_______________]{$ans} :: [@ AnswerFormatHelp("numbers") @]* +[`[$a]^{\circ}=`] [_______________]{$ans} :: [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_36.pg b/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_36.pg index 3c95456974..f1a01fbd91 100644 --- a/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_36.pg +++ b/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_36.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl" @@ -51,7 +51,7 @@ Parser::Number::NoDecimals; BEGIN_PGML Convert the given angle in degrees to radians. Enter answer as a fraction. -[`[$a]^{\circ} =`][_______________]{$ans} :: [@ AnswerFormatHelp("numbers") @]* +[`[$a]^{\circ} =`][_______________]{$ans} :: [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_40.pg b/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_40.pg index 28191c6a4e..a5b87dccc1 100644 --- a/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_40.pg +++ b/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_40.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl" @@ -66,7 +66,7 @@ BEGIN_PGML Find the length of the arc of a circle of radius [`[$r]`] inches subtended by a central angle of `[$a]` radians. -[_______________]{$ans} inches :: [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans} inches :: [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_42.pg b/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_42.pg index 1fa47f74bd..df63fe87eb 100644 --- a/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_42.pg +++ b/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_42.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl" @@ -65,7 +65,7 @@ BEGIN_PGML Find the length of the arc of a circle of diameter `[$d]` meters subtended by a central angle of `[$a]` radians. -[_______________]{$ans} meters :: [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans} meters :: [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_46.pg b/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_46.pg index aa09a1940e..7635202eb1 100644 --- a/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_46.pg +++ b/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_46.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl" @@ -53,10 +53,10 @@ Context()->functions->disable("SimpleTrig"); # Main text BEGIN_PGML -Find the area of a sector of a circle with a central angle of [`[$a]^{\circ}`] and a radius of `[$r]` cm. +Find the area of a sector of a circle with a central angle of [`[$a]^{\circ}`] and a radius of `[$r]` cm. -[_______________]{$ans} cm[`^2`] :: [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans} cm[`^2`] :: [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_48.pg b/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_48.pg index c1fa5b6eeb..970d7026f2 100644 --- a/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_48.pg +++ b/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_48.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl" @@ -65,7 +65,7 @@ BEGIN_PGML Find the area of a sector of a circle with diameter `[$d]` feet and an angle of `[$a]` radians -[_______________]{$ans} feet[`^2`] :: [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans} feet[`^2`] :: [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_50.pg b/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_50.pg index 30775a9bf4..ea044acee7 100644 --- a/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_50.pg +++ b/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_50.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl" @@ -44,8 +44,8 @@ $ans = Compute(($a+360)); Context()->functions->disable("SimpleTrig"); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -56,13 +56,13 @@ TeX => # Main text BEGIN_PGML -Find the angle between [`0^{\circ} `] and [`360^{\circ} `] that is coterminal to the given angle. +Find the angle between [`0^{\circ} `] and [`360^{\circ} `] that is coterminal to the given angle. [`[$a]^{\circ} `] -[_______________]{$ans}degrees :: [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans}degrees :: [@ helpLink("numbers") @]* [$video]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_51.pg b/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_51.pg index afc92172e8..b734a7cdc2 100644 --- a/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_51.pg +++ b/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_51.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl" @@ -48,13 +48,13 @@ Context()->functions->disable("SimpleTrig"); # Main text BEGIN_PGML -Find the angle between [`0^{\circ} `] and [`360^{\circ} `] that is coterminal to the given angle. +Find the angle between [`0^{\circ} `] and [`360^{\circ} `] that is coterminal to the given angle. [`[$a]^{\circ} `] -[_______________]{$ans}degrees :: [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans}degrees :: [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_52.pg b/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_52.pg index 49a7c6ade5..1eb9fe1e07 100644 --- a/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_52.pg +++ b/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_52.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl" @@ -48,13 +48,13 @@ Context()->functions->disable("SimpleTrig"); # Main text BEGIN_PGML -Find the angle between [`0^{\circ} `] and [`360^{\circ} `] that is coterminal to the given angle. +Find the angle between [`0^{\circ} `] and [`360^{\circ} `] that is coterminal to the given angle. [`[$a]^{\circ} `] -[_______________]{$ans}degrees :: [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans}degrees :: [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_53.pg b/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_53.pg index 9d081b7ba4..018435555c 100644 --- a/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_53.pg +++ b/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_53.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl" @@ -48,13 +48,13 @@ Context()->functions->disable("SimpleTrig"); # Main text BEGIN_PGML -Find the angle between [`0^{\circ} `] and [`360^{\circ} `] that is coterminal to the given angle. +Find the angle between [`0^{\circ} `] and [`360^{\circ} `] that is coterminal to the given angle. [`[$a]^{\circ} `] -[_______________]{$ans}degrees :: [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans}degrees :: [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_54.pg b/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_54.pg index 528d48ca55..fc05476172 100644 --- a/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_54.pg +++ b/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_54.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl" @@ -39,14 +39,14 @@ Context("Numeric"); $n=random(0,14,1); -# Array of 15 angles +# Array of 15 angles @latexangle=("-pi/6", "-pi/4" ,"-pi/3" ,"-pi/2", "-(2pi)/3" , "-(3pi)/4", "-(5pi)/6", "-pi", "-(7pi)/6", "-(5pi)/4", "-(4pi)/3", "-(3pi)/2", "-(5pi)/3", "-(7pi)/4", "-(11pi)/6"); # Selecting angle for PGML $a = $latexangle[$n] ; -# Array of 15 angles +# Array of 15 angles @answerangle = ( 11*pi/6, 7*pi/4, 5*pi/3, 3*pi/2, 4*pi/3, 5*pi/4, 7*pi/6, pi, 5*pi/6, 3*pi/4, 2*pi/3, pi/2, pi/3, pi/4, pi/6); @@ -60,12 +60,12 @@ Parser::Number::NoDecimals; # Main text BEGIN_PGML -Find the exact angle between 0 and [`2\pi`] radians that is coterminal to the given angle. +Find the exact angle between 0 and [`2\pi`] radians that is coterminal to the given angle. `[$a]` -[_______________]{$ans} :: [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans} :: [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_55.pg b/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_55.pg index 5a96874044..fe85bd7f2e 100644 --- a/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_55.pg +++ b/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_55.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl" @@ -39,14 +39,14 @@ Context("Numeric"); $n=random(0,7,1); -# Array of 15 angles. Only 8 are available to avoid possible repetition with the next problem. +# Array of 15 angles. Only 8 are available to avoid possible repetition with the next problem. @latexangle=("(13pi)/6", "(9pi)/4" ,"(7pi)/3" ,"(5pi)/2", "(8pi)/3" , "(11pi)/4", "(17pi)/6", "pi", "(19pi)/6", "(13pi)/4", "(10pi)/3", "(7pi)/2", "(11pi)/3", "(15pi)/4", "(23pi)/6"); # Selecting angle for PGML $a = $latexangle[$n] ; -# Array of 15 angles +# Array of 15 angles @answerangle = (pi/6, pi/4 ,pi/3 ,pi/2, 2*pi/3 , 3*pi/4, 5*pi/6, pi, 7*pi/6, 5*pi/4, 4*pi/3, 3*pi/2, 5*pi/3, 7*pi/4, 11*pi/6); @@ -60,12 +60,12 @@ Context()->functions->disable("SimpleTrig"); # Main text BEGIN_PGML -Find the exact angle between 0 and [`2\pi`] radians that is coterminal to the given angle. +Find the exact angle between 0 and [`2\pi`] radians that is coterminal to the given angle. `[$a]` -[_______________]{$ans} :: [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans} :: [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_56.pg b/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_56.pg index eeb235fe42..a6d031a4ba 100644 --- a/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_56.pg +++ b/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_56.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl" @@ -39,14 +39,14 @@ Context("Numeric"); $n=random(0,14,1); -# Array of 15 angles +# Array of 15 angles @latexangle=("(13pi)/6", "(9pi)/4" ,"(7pi)/3" ,"(5pi)/2", "(8pi)/3" , "(11pi)/4", "(17pi)/6", "3pi", "(19pi)/6", "(13pi)/4", "(10pi)/3", "(7pi)/2", "(11pi)/3", "(15pi)/4", "(23pi)/6"); # Selecting angle for PGML $a = $latexangle[$n] ; -# Array of 15 angles +# Array of 15 angles @answerangle = (pi/6, pi/4 ,pi/3 ,pi/2, 2*pi/3 , 3*pi/4, 5*pi/6, pi, 7*pi/6, 5*pi/4, 4*pi/3, 3*pi/2, 5*pi/3, 7*pi/4, 11*pi/6); @@ -60,12 +60,12 @@ Context()->functions->disable("SimpleTrig"); # Main text BEGIN_PGML -Find the exact angle between 0 and [`2\pi`] radians that is coterminal to the given angle. +Find the exact angle between 0 and [`2\pi`] radians that is coterminal to the given angle. `[$a]` -[_______________]{$ans} :: [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans} :: [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_57.pg b/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_57.pg index 887b2289dd..7ca7cb4bdd 100644 --- a/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_57.pg +++ b/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_57.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl" @@ -39,14 +39,14 @@ Context("Numeric"); $n=random(0,14,1); -# Array of 15 angles +# Array of 15 angles @latexangle=("(25pi)/6", "(17pi)/4" ,"(13pi)/3" ,"(9pi)/2", "(14pi)/3" , "(19pi)/4", "(29pi)/6", "5pi", "(31pi)/6", "(21pi)/4", "(16pi)/3", "(11pi)/2", "(17pi)/3", "(23pi)/4", "(35pi)/6"); # Selecting angle for PGML $a = $latexangle[$n] ; -# Array of 15 angles +# Array of 15 angles @answerangle = (pi/6, pi/4 ,pi/3 ,pi/2, 2*pi/3 , 3*pi/4, 5*pi/6, pi, 7*pi/6, 5*pi/4, 4*pi/3, 3*pi/2, 5*pi/3, 7*pi/4, 11*pi/6); @@ -60,12 +60,12 @@ Context()->functions->disable("SimpleTrig"); # Main text BEGIN_PGML -Find the exact angle between 0 and [`2\pi`] radians that is coterminal to the given angle. +Find the exact angle between 0 and [`2\pi`] radians that is coterminal to the given angle. `[$a]` -[_______________]{$ans} :: [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans} :: [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_59.pg b/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_59.pg index 880d15833d..83e764c96f 100644 --- a/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_59.pg +++ b/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_59.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl" @@ -51,8 +51,8 @@ $ans2 = Compute ($ans1/(2*pi)); Context()->functions->disable("SimpleTrig"); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -63,16 +63,16 @@ TeX => # Main text BEGIN_PGML -A bicycle with `[$d]`-inch diameter wheels is traveling at `[$s]` miles/hour. Find the angular speed of the wheels in radians/minute. +A bicycle with `[$d]`-inch diameter wheels is traveling at `[$s]` miles/hour. Find the angular speed of the wheels in radians/minute. -[_______________]{$ans1} :: [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans1} :: [@ helpLink("numbers") @]* -How many revolutions per minute do the wheels make? +How many revolutions per minute do the wheels make? -[_______________]{$ans2} :: [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans2} :: [@ helpLink("numbers") @]* [$video]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_60.pg b/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_60.pg index 8dd177aada..1ef5728485 100644 --- a/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_60.pg +++ b/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_60.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl" @@ -57,18 +57,18 @@ Context()->functions->disable("SimpleTrig"); # Main text BEGIN_PGML -A wheel of radius `[$r]` inches is rotating [`[$s]^{\circ}`] per second. +A wheel of radius `[$r]` inches is rotating [`[$s]^{\circ}`] per second. Find the following: -The linear speed in inches per second `= `[_______________]{$ans1} :: [@ AnswerFormatHelp("numbers") @]* +The linear speed in inches per second `= `[_______________]{$ans1} :: [@ helpLink("numbers") @]* -The angular speed in RPMs (Revolutions per minute) `=` [_______________]{$ans2} :: [@ AnswerFormatHelp("numbers") @]* +The angular speed in RPMs (Revolutions per minute) `=` [_______________]{$ans2} :: [@ helpLink("numbers") @]* -The angular speed in radians per second `=` [_______________]{$ans3} :: [@ AnswerFormatHelp("numbers") @]* +The angular speed in radians per second `=` [_______________]{$ans3} :: [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_67.pg b/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_67.pg index b6d369cba2..4602a0f7a4 100644 --- a/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_67.pg +++ b/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_67.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl" @@ -51,10 +51,10 @@ Context()->functions->disable("SimpleTrig"); # Main text BEGIN_PGML -Consider a clock with an hour hand and a minute hand. What is the measure of the angle the minute hand traces in `[$m]` minutes. Your answer should be in radians. +Consider a clock with an hour hand and a minute hand. What is the measure of the angle the minute hand traces in `[$m]` minutes. Your answer should be in radians. -[_______________]{$ans} :: [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans} :: [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_73.pg b/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_73.pg index 5391395319..ce88298bb9 100644 --- a/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_73.pg +++ b/Contrib/CCCS/Trigonometry/07.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_1_73.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl" @@ -59,10 +59,10 @@ Context()->functions->disable("SimpleTrig"); # Main text BEGIN_PGML -During the time that a car travels `[$m]` miles, its tires make `[$rev]` revolutions. What is the radius of the tires in inches? +During the time that a car travels `[$m]` miles, its tires make `[$rev]` revolutions. What is the radius of the tires in inches? -[_______________]{$ans1} inches :: [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans1} inches :: [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_06.pg b/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_06.pg index 45ae8e29a0..2eee843fc6 100644 --- a/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_06.pg +++ b/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_06.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl" @@ -50,7 +50,7 @@ $ans1 = Compute ( 90-$a); BEGIN_PGML -Use cofunctions of complementary angles to answer the following. +Use cofunctions of complementary angles to answer the following. [` \cos{([$a]^{\circ})} = \sin{ }\Big( `] [______]{$ans1} [`^{\circ}\Big) `] END_PGML diff --git a/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_10.pg b/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_10.pg index 422911c393..6a8a3e552c 100644 --- a/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_10.pg +++ b/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_10.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -54,7 +54,7 @@ $d = Compute( "$a/$c"); BEGIN_PGML -Use the given information below to find the lengths of the missing sides of a triangle. Side [`a`] is opposite angle [`A`], side [`b`] is opposite angle [`B`], and side [`c`] is the hypotenuse. +Use the given information below to find the lengths of the missing sides of a triangle. Side [`a`] is opposite angle [`A`], side [`b`] is opposite angle [`B`], and side [`c`] is the hypotenuse. diff --git a/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_11.pg b/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_11.pg index 6c7932787b..b0f684ea7b 100644 --- a/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_11.pg +++ b/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_11.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -52,7 +52,7 @@ $d = Compute( "$b/$c"); BEGIN_PGML -Use the given information below to find the lengths of the missing sides of a triangle. Side [`a`] is opposite angle [`A`], side [`b`] is opposite angle [`B`], and side [`c`] is the hypotenuse. +Use the given information below to find the lengths of the missing sides of a triangle. Side [`a`] is opposite angle [`A`], side [`b`] is opposite angle [`B`], and side [`c`] is the hypotenuse. sin [`(B) =\displaystyle\frac{1}{2}`] and [`a = [$a]`] diff --git a/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_12.pg b/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_12.pg index 9a4b14e923..71b9473b2c 100644 --- a/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_12.pg +++ b/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_12.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -52,7 +52,7 @@ $d = Compute( "$b/$c"); BEGIN_PGML -Use the given information below to find the lengths of the missing sides of a triangle. Side [`a`] is opposite angle [`A`], side [`b`] is opposite angle [`B`], and side [`c`] is the hypotenuse. +Use the given information below to find the lengths of the missing sides of a triangle. Side [`a`] is opposite angle [`A`], side [`b`] is opposite angle [`B`], and side [`c`] is the hypotenuse. tan [`(A) =\displaystyle\frac{5}{12}`] and [`b = [$b]`] diff --git a/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_13.pg b/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_13.pg index c57df1fef9..7a66034d66 100644 --- a/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_13.pg +++ b/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_13.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -52,7 +52,7 @@ $d = Compute( "$b/$c"); BEGIN_PGML -Use the given information below to find the lengths of the missing sides of a triangle. Side [`a`] is opposite angle [`A`], side [`b`] is opposite angle [`B`], and side [`c`] is the hypotenuse. +Use the given information below to find the lengths of the missing sides of a triangle. Side [`a`] is opposite angle [`A`], side [`b`] is opposite angle [`B`], and side [`c`] is the hypotenuse. tan [`(A) =100`] and [`b = [$b]`] diff --git a/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_18.pg b/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_18.pg index dc94c37f66..d2c6717c74 100644 --- a/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_18.pg +++ b/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_18.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", diff --git a/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_19.pg b/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_19.pg index d7ea3dea64..f2f9d450bf 100644 --- a/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_19.pg +++ b/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_19.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", diff --git a/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_20.pg b/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_20.pg index b79c969b5c..4aa872326d 100644 --- a/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_20.pg +++ b/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_20.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", diff --git a/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_21.pg b/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_21.pg index 02033132e0..4e7534621a 100644 --- a/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_21.pg +++ b/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_21.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", diff --git a/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_22.pg b/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_22.pg index 1af11afe04..8b485430bd 100644 --- a/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_22.pg +++ b/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_22.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", diff --git a/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_23.pg b/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_23.pg index bbc1438326..77a6e8d071 100644 --- a/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_23.pg +++ b/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_23.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", diff --git a/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_24.pg b/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_24.pg index e7ab08a0c8..c50e100909 100644 --- a/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_24.pg +++ b/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_24.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", diff --git a/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_25.pg b/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_25.pg index 415fe2f364..7332989e69 100644 --- a/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_25.pg +++ b/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_25.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", diff --git a/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_26.pg b/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_26.pg index dcc68d4912..c49b30a9da 100644 --- a/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_26.pg +++ b/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_26.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", diff --git a/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_27.pg b/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_27.pg index 6fc7e1120e..40ca9c4262 100644 --- a/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_27.pg +++ b/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_27.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", diff --git a/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_28.pg b/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_28.pg index d9d6b51f5c..392305de80 100644 --- a/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_28.pg +++ b/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_28.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", diff --git a/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_29.pg b/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_29.pg index f063ed9720..f3bd443745 100644 --- a/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_29.pg +++ b/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_29.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", diff --git a/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_30.pg b/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_30.pg index df43dcd3ad..657b46eefd 100644 --- a/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_30.pg +++ b/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_30.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", diff --git a/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_31.pg b/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_31.pg index 997f1bc4c8..0d96319fa9 100644 --- a/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_31.pg +++ b/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_31.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", diff --git a/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_32.pg b/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_32.pg index 37215271aa..32502f1baa 100644 --- a/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_32.pg +++ b/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_32.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -57,7 +57,7 @@ BEGIN_PGML Use a calculator to solve for the unknown sides in the above diagram given [`b =[$b]`]. Round all values to the nearest hundredth. -`a =` [____________]{$a} +`a =` [____________]{$a} `c =` [____________]{$c} diff --git a/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_34.pg b/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_34.pg index 1b62f7feba..bcd8136497 100644 --- a/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_34.pg +++ b/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_34.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", diff --git a/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_42.pg b/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_42.pg index 75dbcfbdb6..8d63b5b6bd 100644 --- a/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_42.pg +++ b/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_42.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", diff --git a/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_44.pg b/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_44.pg index 05d28160e2..2e262bc2c1 100644 --- a/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_44.pg +++ b/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_44.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", diff --git a/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_48.pg b/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_48.pg index b30e947374..8d724cbb77 100644 --- a/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_48.pg +++ b/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_48.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", diff --git a/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_52.pg b/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_52.pg index 60f33fcacc..d4ce3ab965 100644 --- a/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_52.pg +++ b/Contrib/CCCS/Trigonometry/07.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_2_52.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", diff --git a/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_10.pg b/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_10.pg index b8fb5860a6..406db006e0 100644 --- a/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_10.pg +++ b/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_10.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -49,14 +49,14 @@ Parser::Number::NoDecimals; $n=random(0,7,1); -# Array of 8 angles +# Array of 8 angles @latexfraction=("pi/2", "pi/3" ,"pi/4" ,"pi/6", "(2pi)/3" , "(3pi)/4", "(5pi)/6", "pi"); # Selecting angle for PGML $a = $latexfraction[$n] ; -# Array of 8 angles +# Array of 8 angles @fraction=(pi/2, pi/3 ,pi/4 ,pi/6, 2*pi/3, 3*pi/4, 5*pi/6, pi); # Selecting angle for Compute @@ -65,8 +65,8 @@ $b = $fraction[$n] ; $ans = sin($b); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -81,9 +81,9 @@ Find the exact value of the trigonometric function. `sin([$a])` -[_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans} [@ helpLink("numbers") @]* -[$video]* +[$video]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_11.pg b/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_11.pg index 36e02e7dfe..aa3d82061e 100644 --- a/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_11.pg +++ b/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_11.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -47,14 +47,14 @@ Parser::Number::NoDecimals; $n=random(0,3,1); -# Array of 4 angles +# Array of 4 angles @latexangle=("pi/2", "pi/3" ,"pi/4" ,"pi/6"); # Selecting angle for PGML $a = $latexangle[$n] ; -# Array of 4 angles +# Array of 4 angles @angle=(pi/2, pi/3 ,pi/4 ,pi/6); # Selecting angle for Compute @@ -73,7 +73,7 @@ Find the exact value of the trigonometric function. `cos([$a])` -[_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_12.pg b/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_12.pg index 357fe0e4e1..092efa8a42 100644 --- a/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_12.pg +++ b/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_12.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -45,14 +45,14 @@ Parser::Number::NoDecimals; $n=random(0,3,1); -# Array of 4 angles +# Array of 4 angles @latexangle=("(2pi)/3" , "(3pi)/4", "(5pi)/6", "pi"); # Selecting angle for PGML $a = $latexangle[$n] ; -# Array of 4 angles +# Array of 4 angles @angle=(2*pi/3, 3*pi/4, 5*pi/6, pi); # Selecting angle for Compute @@ -70,7 +70,7 @@ Find the exact value of the trigonometric function. `cos([$a])` -[_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_13.pg b/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_13.pg index 960ce7008e..d5321e8160 100644 --- a/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_13.pg +++ b/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_13.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -46,14 +46,14 @@ Parser::Number::NoDecimals; $n=random(0,3,1); -# Array of 4 angles +# Array of 4 angles @latexangle=("120^\circ" , "135^\circ", "150^\circ", "180^\circ"); # Selecting angle for PGML $a = $latexangle[$n] ; -# Array of 4 angles +# Array of 4 angles @angle=(2*pi/3, 3*pi/4, 5*pi/6, pi); # Selecting angle for Compute @@ -71,7 +71,7 @@ Find the exact value of the trigonometric function. `sin([$a])` -[_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_14.pg b/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_14.pg index 098caf308d..1d1121aa5e 100644 --- a/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_14.pg +++ b/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_14.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -45,14 +45,14 @@ Parser::Number::NoDecimals; $n=random(0,3,1); -# Array of 8 angles +# Array of 8 angles @latexangle=("90^\circ", "60^\circ" ,"45^\circ" ,"30^\circ"); # Selecting angle for PGML $a = $latexangle[$n] ; -# Array of 8 angles +# Array of 8 angles @angle=(pi/2, pi/3 , pi/4 , pi/6); # Selecting angle for Compute @@ -70,7 +70,7 @@ Find the exact value of the trigonometric function. `sin(-[$a])` -[_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_15.pg b/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_15.pg index 7141c4b1eb..0238d7d702 100644 --- a/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_15.pg +++ b/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_15.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -46,14 +46,14 @@ Parser::Number::NoDecimals; $n=random(0,7,1); -# Array of 8 angles +# Array of 8 angles @latexangle=("90^\circ", "60^\circ" ,"45^\circ" ,"30^\circ", "120^\circ" , "135^\circ", "150^\circ", "180^\circ"); # Selecting angle for PGML $a = $latexangle[$n] ; -# Array of 8 angles +# Array of 8 angles @angle=(pi/2, pi/3 , pi/4 , pi/6, 2*pi/3, 3*pi/4, 5*pi/6, pi); # Selecting angle for Compute @@ -71,7 +71,7 @@ Find the exact value of the trigonometric function. `cos(-[$a])` -[_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans}[@ helpLink("numbers") @]* END_PGML ############################ diff --git a/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_16.pg b/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_16.pg index 7f786be1f8..8d70fa849f 100644 --- a/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_16.pg +++ b/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_16.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -45,14 +45,14 @@ Parser::Number::NoDecimals; $n=random(0,7,1); -# Array of 8 angles +# Array of 8 angles @latexangle=("3pi/2", "(4pi)/3" ,"(5pi)/4" ,"(7pi)/6", "(5pi)/3" , "(7pi)/4", "(11pi)/6", "2pi"); # Selecting angle for PGML $a = $latexangle[$n] ; -# Array of 8 angles +# Array of 8 angles @angle=(3*pi/2, 4*pi/3 ,5*pi/4 ,7*pi/6, 5*pi/3, 7*pi/4, 11*pi/6, 2*pi); # Selecting angle for Compute @@ -70,7 +70,7 @@ Find the exact value of the trigonometric function. `cos([$a])` -[_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_17.pg b/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_17.pg index cfeb51ae02..b90d897447 100644 --- a/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_17.pg +++ b/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_17.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -44,14 +44,14 @@ Parser::Number::NoDecimals; $n=random(0,7,1); -# Array of 8 angles +# Array of 8 angles @latexangle=("3pi/2", "(4pi)/3" ,"(5pi)/4" ,"(7pi)/6", "(5pi)/3" , "(7pi)/4", "(11pi)/6", "2pi"); # Selecting angle for PGML $a = $latexangle[$n] ; -# Array of 8 angles +# Array of 8 angles @angle=(3*pi/2, 4*pi/3 ,5*pi/4 ,7*pi/6, 5*pi/3, 7*pi/4, 11*pi/6, 2*pi); # Selecting angle for Compute @@ -69,7 +69,7 @@ Find the exact value of the trigonometric function. `sin([$a])` -[_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_18.pg b/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_18.pg index 8b6ecc3b1c..517b64f1b2 100644 --- a/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_18.pg +++ b/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_18.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -45,14 +45,14 @@ Parser::Number::NoDecimals; $n=random(0,7,1); -# Array of 8 angles +# Array of 8 angles @latexangle=("3pi/2", "(4pi)/3" ,"(5pi)/4" ,"(7pi)/6", "(5pi)/3" , "(7pi)/4", "(11pi)/6", "2pi"); # Selecting angle for PGML $a = $latexangle[$n] ; -# Array of 8 angles +# Array of 8 angles @angle=(3*pi/2, 4*pi/3 ,5*pi/4 ,7*pi/6, 5*pi/3, 7*pi/4, 11*pi/6, 2*pi); # Selecting angle for Compute @@ -70,7 +70,7 @@ Find the exact value of the trigonometric function. `sin(-[$a])` -[_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_19.pg b/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_19.pg index 3c8c41f5f4..ac61ddc2a6 100644 --- a/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_19.pg +++ b/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_19.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -45,14 +45,14 @@ Parser::Number::NoDecimals; $n=random(0,3,1); -# Array of 4 angles +# Array of 4 angles @latexangle=("pi/2", "pi" ,"(3pi)/2" ,"2pi"); # Selecting angle for PGML $a = $latexangle[$n] ; -# Array of 4 angles +# Array of 4 angles @angle=(pi/2, pi ,3*pi/2 , 2*pi); # Selecting angle for Compute @@ -70,7 +70,7 @@ Find the exact value of the trigonometric function. `cos([$a])` -[_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_20.pg b/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_20.pg index 7a57317e5e..19645908f0 100644 --- a/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_20.pg +++ b/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_20.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -46,14 +46,14 @@ Parser::Number::NoDecimals; $n=random(0,3,1); -# Array of 4 angles +# Array of 4 angles @latexangle=("pi/2", "pi" ,"(3pi)/2" ,"2pi"); # Selecting angle for PGML $a = $latexangle[$n] ; -# Array of 4 angles +# Array of 4 angles @angle=(pi/2, pi ,3*pi/2 , 2*pi); # Selecting angle for Compute @@ -72,7 +72,7 @@ Find the exact value of the trigonometric function. `sin(-[$a])` -[_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_21.pg b/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_21.pg index 6f2fcbef7d..a4f26192de 100644 --- a/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_21.pg +++ b/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_21.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -46,14 +46,14 @@ Parser::Number::NoDecimals; $n=random(0,4,1); -# Array of 5 angles +# Array of 5 angles @latexangle=("0^circ", "90^circ" ,"180^circ" ,"270^circ", "360^circ"); # Selecting angle for PGML $a = $latexangle[$n] ; -# Array of 5 angles +# Array of 5 angles @angle=(0, pi/2, pi ,3*pi/2 , 2*pi); # Selecting angle for Compute @@ -70,7 +70,7 @@ Find the exact value of the trigonometric function. `cos([$a])` -[_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_22.pg b/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_22.pg index d2d6a8fba4..2ff3d8ce49 100644 --- a/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_22.pg +++ b/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_22.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -43,14 +43,14 @@ Parser::Number::NoDecimals; $n=random(0,4,1); -# Array of 5 angles +# Array of 5 angles @latexangle=("0^circ", "90^circ" ,"180^circ" ,"270^circ", "360^circ"); # Selecting angle for PGML $a = $latexangle[$n] ; -# Array of 5 angles +# Array of 5 angles @angle=(0, pi/2, pi ,3*pi/2 , 2*pi); # Selecting angle for Compute @@ -67,7 +67,7 @@ Find the exact value of the trigonometric function. `sin(-[$a])` -[_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_23.pg b/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_23.pg index 3f86552bb5..6d7947678d 100644 --- a/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_23.pg +++ b/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_23.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -48,7 +48,7 @@ State the reference angle (in degrees) for the given angle. [`[$angle]^\circ`] -[___]{$refangle} Degrees [@ AnswerFormatHelp("numbers") @]* +[___]{$refangle} Degrees [@ helpLink("numbers") @]* END_PGML ############################ diff --git a/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_26.pg b/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_26.pg index 783b6f8d35..9e6dddf5e2 100644 --- a/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_26.pg +++ b/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_26.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -47,7 +47,7 @@ State the reference angle (in degrees) for the given angle. [`[$angle]^\circ`] -[___]{$angle} Degrees [@ AnswerFormatHelp("numbers") @]* +[___]{$angle} Degrees [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_27.pg b/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_27.pg index 777b6708da..33f3887e4e 100644 --- a/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_27.pg +++ b/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_27.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "PGcourse.pl", @@ -74,7 +74,7 @@ State the reference angle (in radians) for the given angle. `[$angle]` -[_______]{$ans} [@ AnswerFormatHelp("numbers") @]* +[_______]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_28.pg b/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_28.pg index 8d977a1654..9f76546b1e 100644 --- a/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_28.pg +++ b/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_28.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -49,7 +49,7 @@ State the reference angle (in degrees) for the given angle. [`[$angle]^\circ`] -[___]{$ref} Degrees [@ AnswerFormatHelp("numbers") @]* +[___]{$ref} Degrees [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_29.pg b/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_29.pg index e5260d733f..f4f1f75b3d 100644 --- a/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_29.pg +++ b/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_29.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "PGcourse.pl", @@ -78,7 +78,7 @@ State the reference angle (in radians) for the given angle. `[$angle]` -[_______]{$ans}[@ AnswerFormatHelp("numbers") @]* +[_______]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_34.pg b/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_34.pg index 57cdd7c02e..c4ada4362c 100644 --- a/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_34.pg +++ b/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_34.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "PGcourse.pl", @@ -43,7 +43,7 @@ Parser::Number::NoDecimals; $radio = RadioButtons( ["Quadrant I","Quadrant II", "Quadrant III", "Quadrant IV"], - "Quadrant III" + "Quadrant III" ); $chooser=random(1,3,1); @@ -85,8 +85,8 @@ $sine=sin((4*pi)/3); } $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -102,18 +102,18 @@ Find the reference angle and the sine and cosine of [`[$angle]`]. If the angle -Reference angle: [___________]{$reference} Degrees [@ AnswerFormatHelp("numbers") @]* +Reference angle: [___________]{$reference} Degrees [@ helpLink("numbers") @]* -[`\sin[$angle]=`] [___________]{$sine} [@ AnswerFormatHelp("numbers") @]* +[`\sin[$angle]=`] [___________]{$sine} [@ helpLink("numbers") @]* -[`\cos[$angle]=`][___________]{$cosine} [@ AnswerFormatHelp("numbers") @]* +[`\cos[$angle]=`][___________]{$cosine} [@ helpLink("numbers") @]* -Which quadrant is the terminal side of [`[$angle]`]? +Which quadrant is the terminal side of [`[$angle]`]? [________]{$radio} -[$video]* +[$video]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_35.pg b/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_35.pg index 9b5447fa99..ce4195f3c4 100644 --- a/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_35.pg +++ b/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_35.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -43,7 +43,7 @@ Parser::Number::NoDecimals; $radio = RadioButtons( ["Quadrant I","Quadrant II", "Quadrant III", "Quadrant IV"], - "Quadrant IV" + "Quadrant IV" ); $chooser=random(1,3,1); @@ -96,13 +96,13 @@ Find the reference angle and the sine and cosine of [`[$angle]`]. If the angle -Reference angle: [_______]{$reference} Degrees [@ AnswerFormatHelp("numbers") @]* +Reference angle: [_______]{$reference} Degrees [@ helpLink("numbers") @]* -[`\sin[$angle]=`] [___________]{$sine} [@ AnswerFormatHelp("numbers") @]* +[`\sin[$angle]=`] [___________]{$sine} [@ helpLink("numbers") @]* -[`\cos[$angle]=`][___________]{$cosine} [@ AnswerFormatHelp("numbers") @]* +[`\cos[$angle]=`][___________]{$cosine} [@ helpLink("numbers") @]* -Which quadrant is the terminal side of [`[$angle]`]? +Which quadrant is the terminal side of [`[$angle]`]? [________]{$radio} diff --git a/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_36.pg b/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_36.pg index 25f46067ff..9ed81375a2 100644 --- a/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_36.pg +++ b/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_36.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "PGcourse.pl", @@ -45,7 +45,7 @@ Context()->flags->set( $radio = RadioButtons( ["Quadrant I","Quadrant II", "Quadrant III", "Quadrant IV"], - "Quadrant I" + "Quadrant I" ); $chooser=random(1,4,1); @@ -121,13 +121,13 @@ Find the reference angle and the sine and cosine of [`[$texangle]`]. If the ang -Reference angle: [_______]{$reference} Degrees [@ AnswerFormatHelp("numbers") @]* +Reference angle: [_______]{$reference} Degrees [@ helpLink("numbers") @]* -[`\sin[$texangle]=`] [___________]{$sine} [@ AnswerFormatHelp("numbers") @]* +[`\sin[$texangle]=`] [___________]{$sine} [@ helpLink("numbers") @]* -[`\cos[$texangle]=`][___________]{$cosine} [@ AnswerFormatHelp("numbers") @]* +[`\cos[$texangle]=`][___________]{$cosine} [@ helpLink("numbers") @]* -Which quadrant is the terminal side of [`[$texangle]`]? +Which quadrant is the terminal side of [`[$texangle]`]? [________]{$radio} diff --git a/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_42.pg b/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_42.pg index d773690d2b..9dc5f125ff 100644 --- a/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_42.pg +++ b/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_42.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "parserRadioButtons.pl", "PGcourse.pl", @@ -43,7 +43,7 @@ Parser::Number::NoDecimals; $radio = RadioButtons( ["Quadrant I","Quadrant II", "Quadrant III", "Quadrant IV"], - "Quadrant II" + "Quadrant II" ); $chooser=random(1,3,1); @@ -97,13 +97,13 @@ Find the reference angle and the sine and cosine of `[$texangle]`. If the angle -Reference angle: [_______]{$reference} [@ AnswerFormatHelp("numbers") @]* +Reference angle: [_______]{$reference} [@ helpLink("numbers") @]* -`\sin([$texangle])=` [___________]{$sine}[@ AnswerFormatHelp("numbers") @]* +`\sin([$texangle])=` [___________]{$sine}[@ helpLink("numbers") @]* -`\cos([$texangle])=`[___________]{$cosine}[@ AnswerFormatHelp("numbers") @]* +`\cos([$texangle])=`[___________]{$cosine}[@ helpLink("numbers") @]* -Which quadrant is the terminal side of `[$texangle]`? +Which quadrant is the terminal side of `[$texangle]`? [________]{$radio} diff --git a/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_43.pg b/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_43.pg index b4a5535b2b..562abb5d43 100644 --- a/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_43.pg +++ b/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_43.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "parserRadioButtons.pl", @@ -44,7 +44,7 @@ Parser::Number::NoDecimals; $radio = RadioButtons( ["Quadrant I","Quadrant II", "Quadrant III", "Quadrant IV"], - "Quadrant IV" + "Quadrant IV" ); $chooser=random(1,3,1); @@ -98,13 +98,13 @@ Find the reference angle and the sine and cosine of `[$texangle]`. If the angle -Reference angle: [_______]{$reference} [@ AnswerFormatHelp("numbers") @]* +Reference angle: [_______]{$reference} [@ helpLink("numbers") @]* -`\sin([$texangle])=` [___________]{$sine}[@ AnswerFormatHelp("numbers") @]* +`\sin([$texangle])=` [___________]{$sine}[@ helpLink("numbers") @]* -`\cos([$texangle])=`[___________]{$cosine}[@ AnswerFormatHelp("numbers") @]* +`\cos([$texangle])=`[___________]{$cosine}[@ helpLink("numbers") @]* -Which quadrant is the terminal side of `[$texangle]`? +Which quadrant is the terminal side of `[$texangle]`? [________]{$radio} diff --git a/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_44.pg b/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_44.pg index 9fd2c7dfe2..efb58504c4 100644 --- a/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_44.pg +++ b/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_44.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "parserRadioButtons.pl", @@ -44,7 +44,7 @@ Parser::Number::NoDecimals; $radio = RadioButtons( ["Quadrant I","Quadrant II", "Quadrant III", "Quadrant IV"], - "Quadrant III" + "Quadrant III" ); $chooser=random(1,3,1); @@ -96,13 +96,13 @@ Find the reference angle and the sine and cosine of `[$texangle]`. If the angle -Reference angle: [_______]{$reference} [@ AnswerFormatHelp("numbers") @]* +Reference angle: [_______]{$reference} [@ helpLink("numbers") @]* -`\sin([$texangle])=` [___________]{$sine}[@ AnswerFormatHelp("numbers") @]* +`\sin([$texangle])=` [___________]{$sine}[@ helpLink("numbers") @]* -`\cos([$texangle])=`[___________]{$cosine}[@ AnswerFormatHelp("numbers") @]* +`\cos([$texangle])=`[___________]{$cosine}[@ helpLink("numbers") @]* -Which quadrant is the terminal side of `[$texangle]`? +Which quadrant is the terminal side of `[$texangle]`? [________]{$radio} diff --git a/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_50.pg b/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_50.pg index 4ee4cb9501..b34f3b2275 100644 --- a/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_50.pg +++ b/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_50.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "PGcourse.pl", @@ -36,7 +36,7 @@ TEXT(beginproblem()); Context("Numeric"); $num=random(2,8,2); -$den = random(9,13,2); +$den = random(9,13,2); $argument=$den**2-$num**2; $sqrt="sqrt($argument)"; @@ -48,8 +48,8 @@ $cos=Fraction($num,$den); $ans=-Compute("$sqrt/$den"); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -63,10 +63,10 @@ BEGIN_PGML If [`\cos(t)=[$cos]`] and [`t`] is in Quadrant IV, find the value of [`\sin(t)`]. Enter the answer as a fraction. -[`\sin(t)=`][_____________]{$ans}[@ AnswerFormatHelp("numbers") @]* +[`\sin(t)=`][_____________]{$ans}[@ helpLink("numbers") @]* -[$video]* +[$video]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_52.pg b/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_52.pg index 4c03e8518e..ecd5118bcd 100644 --- a/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_52.pg +++ b/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_52.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "PGcourse.pl", @@ -36,7 +36,7 @@ TEXT(beginproblem()); Context("Numeric"); $num=random(2,8,2); -$den = random(9,13,2); +$den = random(9,13,2); $argument=$den**2-$num**2; $sqrt="sqrt($argument)"; @@ -55,7 +55,7 @@ BEGIN_PGML If [`\sin(t)=[$sin]`] and [`t`] is in Quadrant II, find the value of [`\cos(t)`]. Enter the answer as a fraction. -[`\cos(t)=`][_____________]{$ans}[@ AnswerFormatHelp("numbers") @]* +[`\cos(t)=`][_____________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_56.pg b/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_56.pg index 973ca0100a..38b3ef2711 100644 --- a/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_56.pg +++ b/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_56.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "PGcourse.pl", @@ -63,7 +63,7 @@ BEGIN_PGML Find the coordinates of the point on a circle with radius `[$a]` corresponding to an angle of `[$angle]`. Enter the answer as an ordered pair, [`(x,y)`]. -[_______________________]{$ans}[@ AnswerFormatHelp("points") @]* +[_______________________]{$ans}[@ helpLink("points") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_6.pg b/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_6.pg index c87e6db01b..fa5bfb3eb6 100644 --- a/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_6.pg +++ b/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_6.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -45,7 +45,7 @@ $fun2=("\cos(t)>0"); $radio = RadioButtons( ["Quadrant I","Quadrant II", "Quadrant III", "Quadrant IV"], - "Quadrant I" + "Quadrant I" ); } @@ -57,7 +57,7 @@ $fun2=("\cos(t)<0"); $radio = RadioButtons( ["Quadrant I","Quadrant II", "Quadrant III", "Quadrant IV"], - "Quadrant II" + "Quadrant II" ); } @@ -69,7 +69,7 @@ $fun2=("\cos(t)<0"); $radio = RadioButtons( ["Quadrant I","Quadrant II", "Quadrant III", "Quadrant IV"], - "Quadrant III" + "Quadrant III" ); } @@ -80,7 +80,7 @@ $fun2=("\cos(t)>0"); $radio = RadioButtons( ["Quadrant I","Quadrant II", "Quadrant III", "Quadrant IV"], - "Quadrant IV" + "Quadrant IV" ); } diff --git a/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_7.pg b/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_7.pg index 3d0c936180..a30d4cf463 100644 --- a/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_7.pg +++ b/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_7.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -45,7 +45,7 @@ $fun2=("\cos(t)>0"); $radio = RadioButtons( ["Quadrant I","Quadrant II", "Quadrant III", "Quadrant IV"], - "Quadrant I" + "Quadrant I" ); } @@ -57,7 +57,7 @@ $fun2=("\cos(t)<0"); $radio = RadioButtons( ["Quadrant I","Quadrant II", "Quadrant III", "Quadrant IV"], - "Quadrant II" + "Quadrant II" ); } @@ -69,7 +69,7 @@ $fun2=("\cos(t)<0"); $radio = RadioButtons( ["Quadrant I","Quadrant II", "Quadrant III", "Quadrant IV"], - "Quadrant III" + "Quadrant III" ); } @@ -80,7 +80,7 @@ $fun2=("\cos(t)>0"); $radio = RadioButtons( ["Quadrant I","Quadrant II", "Quadrant III", "Quadrant IV"], - "Quadrant IV" + "Quadrant IV" ); } diff --git a/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_91.pg b/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_91.pg index b7fb36a6b4..e17aca7b14 100644 --- a/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_91.pg +++ b/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_91.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "PGcourse.pl", @@ -47,14 +47,14 @@ $n1=random(0,6,1); do {$n2 = random(0,6,1);} until ($n2!= $n1); -# Array of 7 angles +# Array of 7 angles @latexangle=("pi/2", "pi/3" ,"pi/4" ,"pi/6", "(2pi)/3", "(5pi)/6", "(4pi)/3" ); # Selecting 2 angles for PGML $a = $latexangle[$n1] ; $b = $latexangle[$n2] ; -# Array of 7 angles +# Array of 7 angles @angle=(pi/2, pi/3 ,pi/4 ,pi/6, 2*pi/3, 5*pi/6, 4*pi/3 ); # Selecting 2 angles for Compute @@ -68,10 +68,10 @@ $ans=(sin($d)*cos($c)); BEGIN_PGML -Evaluate the following. Enter the answer as a simplified fraction. +Evaluate the following. Enter the answer as a simplified fraction. -`sin([$b])cos([$a])=`[__________________]{$ans}[@ AnswerFormatHelp("numbers") @]* +`sin([$b])cos([$a])=`[__________________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_92.pg b/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_92.pg index 0eb8b9739e..3eb433a4ee 100644 --- a/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_92.pg +++ b/Contrib/CCCS/Trigonometry/07.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_3_92.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "PGcourse.pl", @@ -47,14 +47,14 @@ $n1=random(0,6,1); do {$n2 = random(0,6,1);} until ($n2!= $n1); -# Array of 7 angles +# Array of 7 angles @latexangle=("(5pi)/4", "(4pi)/3" ,"(7pi)/4" ,"pi/6", "(2pi)/3", "(11pi)/6", "(pi)/4"); # Selecting 2 angles for PGML $a = $latexangle[$n1] ; $b = $latexangle[$n2] ; -# Array of 7 angles +# Array of 7 angles @angle=(5*pi/4, 4*pi/3 ,7*pi/4 ,pi/6, 2*pi/3, 11*pi/6, pi/4 ); # Selecting 2 angles for Compute @@ -69,7 +69,7 @@ $ans=sin(-$d)*cos($c); BEGIN_PGML -Evaluate the following. Enter the answer as a simplified fraction. +Evaluate the following. Enter the answer as a simplified fraction. `sin(-[$b])cos([$a])=`[__________________]{$ans} diff --git a/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_10.pg b/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_10.pg index b42bb792c7..5da4bcf7a1 100644 --- a/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_10.pg +++ b/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_10.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -44,13 +44,13 @@ Parser::Number::NoDecimals; $n=random(0,6,1); -# Array of 7 angles +# Array of 7 angles @latexangle=("pi", "(2pi)/3" ,"(3pi)/4" ,"(5pi)/6", "(5pi)/3" , "(5pi)/4", "(11pi)/6"); # Selecting angle for PGML $a = $latexangle[$n] ; -# Array of 7 angles +# Array of 7 angles @angle=(pi, 2*pi/3 ,3*pi/4 ,5*pi/6, 5*pi/3, 5*pi/4, 11*pi/6); # Selecting angle for $ans @@ -70,7 +70,7 @@ Find the exact value of the trigonometric function. `tan([$a])` -[_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_11.pg b/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_11.pg index 2cbaf922d7..a4f34c1072 100644 --- a/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_11.pg +++ b/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_11.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -43,13 +43,13 @@ Parser::Number::NoDecimals; $n=random(0,6,1); -# Array of 7 angles +# Array of 7 angles @latexangle=("pi", "(2pi)/3" ,"(3pi)/4" ,"(5pi)/6", "(4pi)/3" , "(5pi)/4", "(11pi)/6"); # Selecting angle for PGML $a = $latexangle[$n] ; -# Array of 7 angles +# Array of 7 angles @angle=(pi, 2*pi/3 , 3*pi/4 , 5*pi/6, 4*pi/3, 5*pi/4, 11*pi/6); # Selecting angle for $ans @@ -68,7 +68,7 @@ Find the exact value of the trigonometric function. `sec([$a])` -[_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_12.pg b/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_12.pg index 2b0c4bbd65..ee60e06e54 100644 --- a/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_12.pg +++ b/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_12.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -45,13 +45,13 @@ Parser::Number::NoDecimals; # random integer to choose an angle $n=random(0,7,1); -# Array of 8 angles +# Array of 8 angles @latexangle=("270^\circ", "120^\circ" ,"135^\circ" ,"150^\circ", "315^\circ" , "225^\circ", "330^\circ", "90^\circ"); # Selecting angle for PGML $a = $latexangle[$n] ; -# Array of 8 angles +# Array of 8 angles @angle=(3*pi/2, 2*pi/3 ,3*pi/4 ,5*pi/6, 7*pi/4, 5*pi/4, 11*pi/6, pi/2); # Selecting angle for $ans @@ -69,7 +69,7 @@ Find the exact value of the trigonometric function. [`\csc([$a])`] -[_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_13.pg b/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_13.pg index 73c48f05f8..92b3e3bc5a 100644 --- a/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_13.pg +++ b/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_13.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -46,13 +46,13 @@ Parser::Number::NoDecimals; $n=random(0,6,1); -# Array of 7 angles +# Array of 7 angles @latexangle=("270^\circ", "120^\circ" ,"135^\circ" ,"150^\circ", "315^\circ" , "225^\circ", "330^\circ"); # Selecting angle for PGML $a = $latexangle[$n] ; -# Array of 7 angles +# Array of 7 angles @angle=(3*pi/2, 2*pi/3 ,3*pi/4 ,5*pi/6, 7*pi/4, 5*pi/4, 11*pi/6); # Selecting angle for $ans @@ -72,7 +72,7 @@ Find the exact value of the trigonometric function. [`\cot([$a])`] -[_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_18.pg b/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_18.pg index 223c007fe5..2254ca13aa 100644 --- a/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_18.pg +++ b/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_18.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -46,13 +46,13 @@ Parser::Number::NoDecimals; $n=random(0,6,1); -# Array of 7 angles +# Array of 7 angles @latexangle=("60^\circ", "120^\circ" ,"135^\circ" ,"150^\circ", "315^\circ" , "225^\circ", "330^\circ"); # Selecting angle for PGML $a = $latexangle[$n] ; -# Array of 7 angles +# Array of 7 angles @angle=(pi/3, 2*pi/3 ,3*pi/4 ,5*pi/6, 7*pi/4, 5*pi/4, 11*pi/6); # Selecting angle for $ans @@ -72,7 +72,7 @@ Find the exact value of the trigonometric function. [`\tan([$a])`] -[_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_19.pg b/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_19.pg index 0b6a86ae53..f63431c1e8 100644 --- a/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_19.pg +++ b/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_19.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -46,13 +46,13 @@ Parser::Number::NoDecimals; $n=random(0,6,1); -# Array of 7 angles +# Array of 7 angles @latexangle=("60^\circ", "120^\circ" ,"135^\circ" ,"150^\circ", "315^\circ" , "225^\circ", "330^\circ"); # Selecting angle for PGML $a = $latexangle[$n] ; -# Array of 7 angles +# Array of 7 angles @angle=(5*pi/3, 4*pi/3 ,5*pi/4 ,7*pi/6, pi/4, 3*pi/4, pi/6); # Selecting angle for $ans @@ -72,7 +72,7 @@ Find the exact value of the trigonometric function. [`\sec(-[$a])`] -[_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_20.pg b/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_20.pg index e905dc61ed..b52b93e308 100644 --- a/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_20.pg +++ b/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_20.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -46,13 +46,13 @@ Parser::Number::NoDecimals; $n=random(0,6,1); -# Array of 7 angles +# Array of 7 angles @latexangle=("60^\circ", "120^\circ" ,"135^\circ" ,"150^\circ", "315^\circ" , "225^\circ", "330^\circ"); # Selecting angle for PGML $a = $latexangle[$n] ; -# Array of 7 angles +# Array of 7 angles @angle=(5*pi/3, 4*pi/3 ,5*pi/4 ,7*pi/6, pi/4, 3*pi/4, pi/6); # Selecting angle for $ans @@ -72,7 +72,7 @@ Find the exact value of the trigonometric function. [`\csc(-[$a])`] -[_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_21.pg b/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_21.pg index e03a91e065..4e838ed7cf 100644 --- a/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_21.pg +++ b/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_21.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -46,13 +46,13 @@ Parser::Number::NoDecimals; $n=random(0,6,1); -# Array of 7 angles +# Array of 7 angles @latexangle=("pi", "(5pi)/3" ,"pi/4" ,"(5pi)/6", "2*pi" , "(5pi)/4", "pi/6"); # Selecting angle for PGML $a = $latexangle[$n] ; -# Array of 7 angles +# Array of 7 angles @angle=(pi, 5*pi/3 , pi/4 , 5*pi/6, 2*pi, 5*pi/4, pi/6); # Selecting angle for $ans @@ -72,7 +72,7 @@ Find the exact value of the trigonometric function. `tan([$a])` -[_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_22.pg b/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_22.pg index 31168fae27..ebb2a9c1c1 100644 --- a/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_22.pg +++ b/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_22.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -46,13 +46,13 @@ Parser::Number::NoDecimals; $n=random(0,6,1); -# Array of 7 angles +# Array of 7 angles @latexangle=("pi/2", "(5pi)/3" ,"pi/4" ,"(5pi)/6", "(3pi)/2" , "(5pi)/4", "pi/6"); # Selecting angle for PGML $a = $latexangle[$n] ; -# Array of 7 angles +# Array of 7 angles @angle=(pi/2, 5*pi/3 , pi/4 , 5*pi/6, 3*pi/2, 5*pi/4, pi/6); # Selecting angle for $ans @@ -72,7 +72,7 @@ Find the exact value of the trigonometric function. `cot([$a])` -[_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_23.pg b/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_23.pg index 6cf0615620..d0ee8ffe4a 100644 --- a/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_23.pg +++ b/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_23.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -45,13 +45,13 @@ Parser::Number::NoDecimals; $n=random(0,5,1); -# Array of 6 angles +# Array of 6 angles @latexangle=("120^\circ" ,"135^\circ" ,"150^\circ", "315^\circ" , "225^\circ", "330^\circ"); # Selecting angle for PGML $a = $latexangle[$n] ; -# Array of 6 angles +# Array of 6 angles @angle=(2*pi/3 ,3*pi/4 ,5*pi/6, 7*pi/4, 5*pi/4, 11*pi/6); # Selecting angle for $ans @@ -71,7 +71,7 @@ Find the exact value of the trigonometric function. [`\sec([$a])`] -[_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_39.pg b/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_39.pg index 903e63defb..0d3ba98cff 100644 --- a/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_39.pg +++ b/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_39.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "PGcourse.pl", @@ -36,7 +36,7 @@ TEXT(beginproblem()); Context("Numeric"); $adj=random(2,8,2); -$hyp = random(9,13,2); +$hyp = random(9,13,2); $argument=$hyp**2-$adj**2; $opp="sqrt($argument)"; diff --git a/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_40.pg b/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_40.pg index 691f5a5998..6cdd9f90d9 100644 --- a/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_40.pg +++ b/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_40.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "PGcourse.pl", @@ -36,7 +36,7 @@ TEXT(beginproblem()); Context("Numeric"); $opp=random(2,8,2); -$adj = random(9,13,2); +$adj = random(9,13,2); $argument=$opp**2+$adj**2; $hyp="sqrt($argument)"; diff --git a/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_44.pg b/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_44.pg index d2923b11dd..33bf58df77 100644 --- a/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_44.pg +++ b/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_44.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", diff --git a/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_46.pg b/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_46.pg index 7e212b0c15..3a7039ee7e 100644 --- a/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_46.pg +++ b/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_46.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", diff --git a/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_47.pg b/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_47.pg index d85439b8c4..a3b01f217e 100644 --- a/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_47.pg +++ b/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_47.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", diff --git a/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_48.pg b/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_48.pg index 1e2d142fa5..416951cc5b 100644 --- a/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_48.pg +++ b/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_48.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", diff --git a/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_55.pg b/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_55.pg index 819d4c7a95..5908685a75 100644 --- a/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_55.pg +++ b/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_55.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -44,13 +44,13 @@ Context()->flags->set( # random integer to choose an angle $n=random(0,6,1); -# Array of 7 angles +# Array of 7 angles @latexangle=("(6pi)/5", "(2pi)/5" ,"(3pi)/7" ,"(5pi)/8", "(5pi)/7" , "(5pi)/9", "(11pi)/5"); # Selecting angle for PGML $a = $latexangle[$n] ; -# Array of 7 angles +# Array of 7 angles @angle=(6*pi/5, 2*pi/5 ,3*pi/7 ,5*pi/8, 5*pi/7, 5*pi/9, 11*pi/5); # Selecting angle for $ans diff --git a/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_57.pg b/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_57.pg index 3e211a2b8a..43be46086d 100644 --- a/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_57.pg +++ b/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_57.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -43,13 +43,13 @@ Context()->flags->set( # random integer to choose an angle $n=random(0,6,1); -# Array of 7 angles +# Array of 7 angles @latexangle=("(6pi)/7", "(2pi)/7" ,"(3pi)/5" ,"(5pi)/11", "(9pi)/5" , "(7pi)/9", "(11pi)/15"); # Selecting angle for PGML $a = $latexangle[$n] ; -# Array of 7 angles +# Array of 7 angles @angle=(6*pi/7, 2*pi/7 ,3*pi/5 ,5*pi/11, 9*pi/5, 7*pi/9, 11*pi/15); # Selecting angle for $ans diff --git a/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_6.pg b/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_6.pg index 982511dafb..7590d6a7a5 100644 --- a/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_6.pg +++ b/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_6.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -46,14 +46,14 @@ Parser::Number::NoDecimals; $n=random(0,2,1); -# Array of angles +# Array of angles @latexangle=( "pi/3" ,"pi/4" ,"pi/6"); # Selecting angle for PGML $a = $latexangle[$n] ; -# Array of angles +# Array of angles @angle=( pi/3 ,pi/4 ,pi/6); @@ -74,7 +74,7 @@ Find the exact value of the trigonometric function. `tan([$a])` -[_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_61.pg b/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_61.pg index 3f6e516ba6..5de459334f 100644 --- a/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_61.pg +++ b/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_61.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -44,13 +44,13 @@ Context()->flags->set( # random integer to choose an angle $n=random(0,6,1); -# Array of 7 angles +# Array of 7 angles @latexangle=("80^\circ", "100^\circ" ,"325^\circ" ,"125^\circ", "260^\circ" , "200^\circ", "400^\circ"); # Selecting angle for PGML $a = $latexangle[$n] ; -# Array of 7 angles +# Array of 7 angles @angle=(80*pi/180, 100*pi/180 ,325*pi/180 ,125*pi/180, 260*pi/180, 200*pi/180, 400*pi/180); # Selecting angle for $ans diff --git a/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_7.pg b/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_7.pg index 457bdeeaef..424196bb7a 100644 --- a/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_7.pg +++ b/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_7.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -45,14 +45,14 @@ Parser::Number::NoDecimals; # random integer to choose an angle $n=random(0,7,1); -# Array of 8 angles +# Array of 8 angles @latexangle=("2pi", "pi/3" ,"pi/4" ,"pi/6", "(2pi)/3" , "(3pi)/4", "(5pi)/6", "pi"); # Selecting angle for PGML $a = $latexangle[$n] ; -# Array of 8 angles +# Array of 8 angles @angle=(2*pi, pi/3 ,pi/4 ,pi/6, 2*pi/3, 3*pi/4, 5*pi/6, pi); # Selecting angle for $ans @@ -72,7 +72,7 @@ Find the exact value of the trigonometric function. `sec([$a])` -[_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_74.pg b/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_74.pg index 19344cb315..136e6e9940 100644 --- a/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_74.pg +++ b/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_74.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", diff --git a/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_8.pg b/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_8.pg index c1943c9453..f4d79b508d 100644 --- a/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_8.pg +++ b/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_8.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -46,14 +46,14 @@ Parser::Number::NoDecimals; $n=random(0,7,1); -# Array of 8 angles +# Array of 8 angles @latexangle=("pi/2", "pi/3" ,"pi/4" ,"pi/6", "(2pi)/3" , "(3pi)/4", "(5pi)/6", "(3pi)/2"); # Selecting angle for PGML $a = $latexangle[$n] ; -# Array of 8 angles +# Array of 8 angles @angle=(pi/2, pi/3 ,pi/4 ,pi/6, 2*pi/3, 3*pi/4, 5*pi/6, 3*pi/2); @@ -73,7 +73,7 @@ Find the exact value of the trigonometric function. `csc([$a])` -[_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_9.pg b/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_9.pg index 4c88510621..e91debea20 100644 --- a/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_9.pg +++ b/Contrib/CCCS/Trigonometry/07.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_7_4_9.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -46,14 +46,14 @@ Parser::Number::NoDecimals; $n=random(0,7,1); -# Array of 8 angles +# Array of 8 angles @latexangle=("pi/2", "pi/3" ,"pi/4" ,"pi/6", "(2pi)/3" , "(3pi)/4", "(5pi)/6", "(3pi)/2"); # Selecting angle for PGML $a = $latexangle[$n] ; -# Array of 8 angles +# Array of 8 angles @angle=(pi/2, pi/3 ,pi/4 ,pi/6, 2*pi/3, 3*pi/4, 5*pi/6, 3*pi/2); # Selecting angle for $ans @@ -74,7 +74,7 @@ Find the exact value of the trigonometric function. `cot([$a])` -[_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_06.pg b/Contrib/CCCS/Trigonometry/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_06.pg index d427301376..3dc4fe0018 100644 --- a/Contrib/CCCS/Trigonometry/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_06.pg +++ b/Contrib/CCCS/Trigonometry/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_06.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,11 +21,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", -"contextFraction.pl", +"contextFraction.pl", "PGgraphmacros.pl", "parserPopUp.pl" ); diff --git a/Contrib/CCCS/Trigonometry/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_07.pg b/Contrib/CCCS/Trigonometry/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_07.pg index d4326c62c2..4382b2bf66 100644 --- a/Contrib/CCCS/Trigonometry/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_07.pg +++ b/Contrib/CCCS/Trigonometry/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_07.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,11 +21,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", -"contextFraction.pl", +"contextFraction.pl", "PGgraphmacros.pl", "parserPopUp.pl" ); diff --git a/Contrib/CCCS/Trigonometry/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_12.pg b/Contrib/CCCS/Trigonometry/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_12.pg index e98e0451ef..98bc8d78ce 100644 --- a/Contrib/CCCS/Trigonometry/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_12.pg +++ b/Contrib/CCCS/Trigonometry/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_12.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,11 +21,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", -"contextFraction.pl", +"contextFraction.pl", "PGgraphmacros.pl", "parserPopUp.pl" ); diff --git a/Contrib/CCCS/Trigonometry/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_13.pg b/Contrib/CCCS/Trigonometry/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_13.pg index 0076bd7682..ece73cf2d5 100644 --- a/Contrib/CCCS/Trigonometry/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_13.pg +++ b/Contrib/CCCS/Trigonometry/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_13.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,11 +21,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", -"contextFraction.pl", +"contextFraction.pl", "PGgraphmacros.pl", "parserPopUp.pl" ); diff --git a/Contrib/CCCS/Trigonometry/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_18.pg b/Contrib/CCCS/Trigonometry/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_18.pg index 8fb2975f21..2476b455bc 100644 --- a/Contrib/CCCS/Trigonometry/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_18.pg +++ b/Contrib/CCCS/Trigonometry/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_18.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,11 +21,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", -"contextFraction.pl", +"contextFraction.pl", "PGgraphmacros.pl", "parserPopUp.pl" ); @@ -68,8 +68,8 @@ $popup2 = PopUp(["?", "left","right"], "right"); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); diff --git a/Contrib/CCCS/Trigonometry/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_19.pg b/Contrib/CCCS/Trigonometry/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_19.pg index eeacd93667..af1cedd999 100644 --- a/Contrib/CCCS/Trigonometry/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_19.pg +++ b/Contrib/CCCS/Trigonometry/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_19.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,11 +21,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", -"contextFraction.pl", +"contextFraction.pl", "PGgraphmacros.pl", "parserPopUp.pl" ); diff --git a/Contrib/CCCS/Trigonometry/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_22.pg b/Contrib/CCCS/Trigonometry/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_22.pg index f648f712ce..48bb2e258d 100644 --- a/Contrib/CCCS/Trigonometry/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_22.pg +++ b/Contrib/CCCS/Trigonometry/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_22.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,11 +21,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", -"contextFraction.pl", +"contextFraction.pl", "PGgraphmacros.pl", "parserPopUp.pl" ); diff --git a/Contrib/CCCS/Trigonometry/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_24.pg b/Contrib/CCCS/Trigonometry/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_24.pg index a59b8b6e1d..0d662d14d4 100644 --- a/Contrib/CCCS/Trigonometry/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_24.pg +++ b/Contrib/CCCS/Trigonometry/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_24.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,11 +21,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", -"contextFraction.pl", +"contextFraction.pl", "PGgraphmacros.pl", "parserPopUp.pl" ); @@ -39,7 +39,7 @@ $showPartialCorrectAnswers = 1; # Setup -# Which graph to show +# Which graph to show $which = random (1, 3, 1); @@ -49,9 +49,9 @@ if ( $which == 1 ) { $c = 0; $d = -3; -$graph = image("08_1_Problem_24_Diagram1.png", - width=>1148/2, - height=>1148/2, +$graph = image("08_1_Problem_24_Diagram1.png", + width=>1148/2, + height=>1148/2, extra_html_tags=>'alt=""') ; @@ -61,9 +61,9 @@ $graph = image("08_1_Problem_24_Diagram1.png", $c = pi/5; $d = 0; -$graph = image("08_1_Problem_24_Diagram2.png", - width=>1148/2, - height=>1148/2, +$graph = image("08_1_Problem_24_Diagram2.png", + width=>1148/2, + height=>1148/2, extra_html_tags=>'alt=""') ; } else { $a = 2; @@ -71,9 +71,9 @@ $graph = image("08_1_Problem_24_Diagram2.png", $c = 0; $d = 0; -$graph = image("08_1_Problem_24_Diagram3.png", - width=>1148/2, - height=>1148/2, +$graph = image("08_1_Problem_24_Diagram3.png", + width=>1148/2, + height=>1148/2, extra_html_tags=>'alt=""') ; } @@ -89,7 +89,7 @@ $period = Compute(2*pi/$b); BEGIN_PGML -For the trigonometric function shown below +For the trigonometric function shown below >> [@ $graph @]* << diff --git a/Contrib/CCCS/Trigonometry/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_31.pg b/Contrib/CCCS/Trigonometry/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_31.pg index c64c6cac39..8afe879c99 100644 --- a/Contrib/CCCS/Trigonometry/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_31.pg +++ b/Contrib/CCCS/Trigonometry/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_31.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,11 +21,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", -"contextFraction.pl", +"contextFraction.pl", "PGgraphmacros.pl", "parserPopUp.pl" ); @@ -37,17 +37,17 @@ TEXT(beginproblem()); ########################### -#Reduced possibilities to avoid repetition with following problem. +#Reduced possibilities to avoid repetition with following problem. $a = list_random(0, 1, -1); if ( $a == -1 ) { $ans = 3*pi/2; -} +} elsif ( $a == 0 ){ $ans = Compute("0, pi"); -} +} else { $ans = Compute("pi/2"); @@ -62,9 +62,9 @@ BEGIN_PGML -Find all the solutions to [``\sin(x) = [$a]``] on the interval [` [0, 2\pi)`]. +Find all the solutions to [``\sin(x) = [$a]``] on the interval [` [0, 2\pi)`]. -If there is more than one answer, enter as a comma separated list. +If there is more than one answer, enter as a comma separated list. [`x=`][_________]{$ans} diff --git a/Contrib/CCCS/Trigonometry/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_32.pg b/Contrib/CCCS/Trigonometry/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_32.pg index 48358eb938..ade6dd6c57 100644 --- a/Contrib/CCCS/Trigonometry/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_32.pg +++ b/Contrib/CCCS/Trigonometry/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_32.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,11 +21,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", -"contextFraction.pl", +"contextFraction.pl", "PGgraphmacros.pl", "parserPopUp.pl" ); @@ -35,12 +35,12 @@ TEXT(beginproblem()); ########################### -#Reduced possibilities to avoid repetition with following problem. +#Reduced possibilities to avoid repetition with following problem. $a = list_random(-.5, .5); if ($a == -0.5) { $ans = Compute("7*pi/6, 11*pi/6"); -} +} else { $ans = Compute("pi/6, 5pi/6"); @@ -54,9 +54,9 @@ BEGIN_PGML -Find all the solutions to [`\sin(x) = [$a]`] on the interval [` [0, 2\pi)`]. +Find all the solutions to [`\sin(x) = [$a]`] on the interval [` [0, 2\pi)`]. -If there is more than one answer, enter as a comma separated list. +If there is more than one answer, enter as a comma separated list. [`x=`][_________]{$ans} diff --git a/Contrib/CCCS/Trigonometry/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_35.pg b/Contrib/CCCS/Trigonometry/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_35.pg index d6fec43648..fb3495f4f8 100644 --- a/Contrib/CCCS/Trigonometry/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_35.pg +++ b/Contrib/CCCS/Trigonometry/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_35.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,11 +21,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", -"contextFraction.pl", +"contextFraction.pl", "PGgraphmacros.pl", "parserPopUp.pl" ); @@ -49,9 +49,9 @@ BEGIN_PGML Let [`f(x)`] be the trigonometric function [`f(x) = \sin(x) `]. -On the interval [` [0, 2\pi)`], the maximum value(s) of [`f(x)`] occur(s) at what `x`-value(s)? +On the interval [` [0, 2\pi)`], the maximum value(s) of [`f(x)`] occur(s) at what `x`-value(s)? -If there is more than one answer, enter as a comma separated list. +If there is more than one answer, enter as a comma separated list. [`x=`][_________]{$ans} diff --git a/Contrib/CCCS/Trigonometry/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_36.pg b/Contrib/CCCS/Trigonometry/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_36.pg index bb799b86ea..5752dcfec9 100644 --- a/Contrib/CCCS/Trigonometry/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_36.pg +++ b/Contrib/CCCS/Trigonometry/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_36.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,11 +21,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", #"PGcourse.pl", "contextTrigDegrees.pl", -"contextFraction.pl", +"contextFraction.pl", "PGgraphmacros.pl", "parserPopUp.pl" ); @@ -45,9 +45,9 @@ BEGIN_PGML Let [`f(x)`] be the trigonometric function [`f(x) = \sin(x) `]. -On the interval [` [0, 2\pi)`], the minimum value(s) of the function occur(s) at what `x`-value(s)? +On the interval [` [0, 2\pi)`], the minimum value(s) of the function occur(s) at what `x`-value(s)? -If there is more than one answer, enter as a comma separated list. +If there is more than one answer, enter as a comma separated list. [`x=`][_________]{$ans} diff --git a/Contrib/CCCS/Trigonometry/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_38.pg b/Contrib/CCCS/Trigonometry/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_38.pg index e4eebe9503..f9be9e701c 100644 --- a/Contrib/CCCS/Trigonometry/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_38.pg +++ b/Contrib/CCCS/Trigonometry/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_38.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,11 +21,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", -"contextFraction.pl", +"contextFraction.pl", "PGgraphmacros.pl", "parserPopUp.pl" ); @@ -53,9 +53,9 @@ if ( $a == -1 ) { BEGIN_PGML -Find all the solutions to [`\cos(x) = [$a]`] on the interval [` [0, 2\pi)`]. +Find all the solutions to [`\cos(x) = [$a]`] on the interval [` [0, 2\pi)`]. -If there is more than one answer, enter as a comma separated list. +If there is more than one answer, enter as a comma separated list. [`x=`][_________]{$ans} diff --git a/Contrib/CCCS/Trigonometry/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_39.pg b/Contrib/CCCS/Trigonometry/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_39.pg index a042525f87..c53bc417a3 100644 --- a/Contrib/CCCS/Trigonometry/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_39.pg +++ b/Contrib/CCCS/Trigonometry/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_39.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,11 +21,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", -"contextFraction.pl", +"contextFraction.pl", "PGgraphmacros.pl", "parserPopUp.pl" ); @@ -50,9 +50,9 @@ if ( $a == .5 ) { BEGIN_PGML -Find all the solutions to [`\cos(x) = [$a]`] on the interval [` [0, 2\pi)`]. +Find all the solutions to [`\cos(x) = [$a]`] on the interval [` [0, 2\pi)`]. -If there is more than one answer, enter as a comma separated list. +If there is more than one answer, enter as a comma separated list. [`x=`][_________]{$ans} diff --git a/Contrib/CCCS/Trigonometry/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_40.pg b/Contrib/CCCS/Trigonometry/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_40.pg index 442f4e3ffd..d0c7eeb559 100644 --- a/Contrib/CCCS/Trigonometry/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_40.pg +++ b/Contrib/CCCS/Trigonometry/08.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_1_40.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,11 +21,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", -"contextFraction.pl", +"contextFraction.pl", "PGgraphmacros.pl", "parserPopUp.pl" ); @@ -44,9 +44,9 @@ TEXT(beginproblem()); BEGIN_PGML -Find all the `x`-intercepts of [`f(x) = \cos(x) `] on the interval [` [0, 2\pi)`]. +Find all the `x`-intercepts of [`f(x) = \cos(x) `] on the interval [` [0, 2\pi)`]. -If there is more than one answer, enter as a comma separated list. +If there is more than one answer, enter as a comma separated list. [`x=`][_________]{$ans} diff --git a/Contrib/CCCS/Trigonometry/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_06.pg b/Contrib/CCCS/Trigonometry/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_06.pg index 93a784c347..fd837d281d 100644 --- a/Contrib/CCCS/Trigonometry/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_06.pg +++ b/Contrib/CCCS/Trigonometry/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_06.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,11 +21,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", -"contextFraction.pl", +"contextFraction.pl", "PGgraphmacros.pl", "parserPopUp.pl" ); @@ -39,7 +39,7 @@ $showPartialCorrectAnswers = 1; # Setup -# Which graph to show +# Which graph to show $which = random (1, 2, 1); @@ -49,9 +49,9 @@ if ( $which == 1 ) { $c = 0; $d = -3; -$graph = image("08_2_Problem_06_Diagram1.png", - width=>512, - height=>626, +$graph = image("08_2_Problem_06_Diagram1.png", + width=>512, + height=>626, extra_html_tags=>'alt=""') ; $popup = PopUp(["?", "tan(x)", "sec(x)","csc(x)", "cot(x)"], "tan(x)"); @@ -63,9 +63,9 @@ $popup = PopUp(["?", "tan(x)", "sec(x)","csc(x)", "cot(x)"], "tan(x)"); $c = pi/5; $d = 0; -$graph = image("08_2_Problem_06_Diagram2.png", - width=>476, - height=>590, +$graph = image("08_2_Problem_06_Diagram2.png", + width=>476, + height=>590, extra_html_tags=>'alt=""') ; $popup = PopUp(["?","tan(x)", "sec(x)","csc(x)", "cot(x)"], "csc(x)"); @@ -76,17 +76,17 @@ $popup = PopUp(["?","tan(x)", "sec(x)","csc(x)", "cot(x)"], "csc(x)"); $c = 0; $d = 0; -$graph = image("08_2_Problem_06_Diagram3.png", - width=>568, - height=>598, +$graph = image("08_2_Problem_06_Diagram3.png", + width=>568, + height=>598, extra_html_tags=>'alt=""') ; $popup = PopUp(["?","tan(x)", "sec(x)","csc(x)", "cot(x)"], "cot(x)"); } else { -$graph = image("08_2_Problem_06_Diagram4.png", - width=>506, - height=>600, +$graph = image("08_2_Problem_06_Diagram4.png", + width=>506, + height=>600, extra_html_tags=>'alt=""') ; $popup = PopUp(["?","tan(x)", "sec(x)","csc(x)", "cot(x)"], "sec(x)"); diff --git a/Contrib/CCCS/Trigonometry/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_07.pg b/Contrib/CCCS/Trigonometry/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_07.pg index 43de497b83..0976a844f5 100644 --- a/Contrib/CCCS/Trigonometry/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_07.pg +++ b/Contrib/CCCS/Trigonometry/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_07.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,11 +21,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", -"contextFraction.pl", +"contextFraction.pl", "PGgraphmacros.pl", "parserPopUp.pl" ); @@ -39,7 +39,7 @@ $showPartialCorrectAnswers = 1; # Setup -# Which graph to show +# Which graph to show $which = random (3, 4, 1); @@ -49,9 +49,9 @@ if ( $which == 1 ) { $c = 0; $d = -3; -$graph = image("08_2_Problem_06_Diagram1.png", - width=>512, - height=>626, +$graph = image("08_2_Problem_06_Diagram1.png", + width=>512, + height=>626, extra_html_tags=>'alt=""') ; $popup = PopUp(["?", "tan(x)", "sec(x)","csc(x)", "cot(x)"], "tan(x)"); @@ -63,9 +63,9 @@ $popup = PopUp(["?", "tan(x)", "sec(x)","csc(x)", "cot(x)"], "tan(x)"); $c = pi/5; $d = 0; -$graph = image("08_2_Problem_06_Diagram2.png", - width=>476, - height=>590, +$graph = image("08_2_Problem_06_Diagram2.png", + width=>476, + height=>590, extra_html_tags=>'alt=""') ; $popup = PopUp(["?","tan(x)", "sec(x)","csc(x)", "cot(x)"], "csc(x)"); @@ -76,17 +76,17 @@ $popup = PopUp(["?","tan(x)", "sec(x)","csc(x)", "cot(x)"], "csc(x)"); $c = 0; $d = 0; -$graph = image("08_2_Problem_06_Diagram3.png", - width=>568, - height=>598, +$graph = image("08_2_Problem_06_Diagram3.png", + width=>568, + height=>598, extra_html_tags=>'alt=""') ; $popup = PopUp(["?","tan(x)", "sec(x)","csc(x)", "cot(x)"], "cot(x)"); } else { -$graph = image("08_2_Problem_06_Diagram4.png", - width=>506, - height=>600, +$graph = image("08_2_Problem_06_Diagram4.png", + width=>506, + height=>600, extra_html_tags=>'alt=""') ; $popup = PopUp(["?","tan(x)", "sec(x)","csc(x)", "cot(x)"], "sec(x)"); diff --git a/Contrib/CCCS/Trigonometry/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_08.pg b/Contrib/CCCS/Trigonometry/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_08.pg index 52e5ec3026..06d585f9d7 100644 --- a/Contrib/CCCS/Trigonometry/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_08.pg +++ b/Contrib/CCCS/Trigonometry/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_08.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,11 +21,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", -"contextFraction.pl", +"contextFraction.pl", "PGgraphmacros.pl", "parserPopUp.pl" ); @@ -39,7 +39,7 @@ $showPartialCorrectAnswers = 1; # Setup -# Which graph to show +# Which graph to show $which = random (1, 4, 1); @@ -49,9 +49,9 @@ if ( $which == 1 ) { $c = 0; $d = -3; -$graph = image("08_2_Problem_06_Diagram1.png", - width=>512, - height=>626, +$graph = image("08_2_Problem_06_Diagram1.png", + width=>512, + height=>626, extra_html_tags=>'alt=""') ; $popup = PopUp(["?", "tan(x)", "sec(x)","csc(x)", "cot(x)"], "tan(x)"); @@ -63,9 +63,9 @@ $popup = PopUp(["?", "tan(x)", "sec(x)","csc(x)", "cot(x)"], "tan(x)"); $c = pi/5; $d = 0; -$graph = image("08_2_Problem_06_Diagram2.png", - width=>476, - height=>590, +$graph = image("08_2_Problem_06_Diagram2.png", + width=>476, + height=>590, extra_html_tags=>'alt=""') ; $popup = PopUp(["?","tan(x)", "sec(x)","csc(x)", "cot(x)"], "csc(x)"); @@ -76,17 +76,17 @@ $popup = PopUp(["?","tan(x)", "sec(x)","csc(x)", "cot(x)"], "csc(x)"); $c = 0; $d = 0; -$graph = image("08_2_Problem_06_Diagram3.png", - width=>568, - height=>598, +$graph = image("08_2_Problem_06_Diagram3.png", + width=>568, + height=>598, extra_html_tags=>'alt=""') ; $popup = PopUp(["?","tan(x)", "sec(x)","csc(x)", "cot(x)"], "cot(x)"); } else { -$graph = image("08_2_Problem_06_Diagram4.png", - width=>506, - height=>600, +$graph = image("08_2_Problem_06_Diagram4.png", + width=>506, + height=>600, extra_html_tags=>'alt=""') ; $popup = PopUp(["?","tan(x)", "sec(x)","csc(x)", "cot(x)"], "sec(x)"); diff --git a/Contrib/CCCS/Trigonometry/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_09.pg b/Contrib/CCCS/Trigonometry/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_09.pg index b842680f95..20cf012e65 100644 --- a/Contrib/CCCS/Trigonometry/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_09.pg +++ b/Contrib/CCCS/Trigonometry/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_09.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,11 +21,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", -"contextFraction.pl", +"contextFraction.pl", "PGgraphmacros.pl", "parserPopUp.pl" ); @@ -39,7 +39,7 @@ $showPartialCorrectAnswers = 1; # Setup -# Which graph to show +# Which graph to show $which = random (1, 4, 1); @@ -49,9 +49,9 @@ if ( $which == 1 ) { $c = 0; $d = -3; -$graph = image("08_2_Problem_06_Diagram1.png", - width=>512, - height=>626, +$graph = image("08_2_Problem_06_Diagram1.png", + width=>512, + height=>626, extra_html_tags=>'alt=""') ; $popup = PopUp(["?", "tan(x)", "sec(x)","csc(x)", "cot(x)"], "tan(x)"); @@ -63,9 +63,9 @@ $popup = PopUp(["?", "tan(x)", "sec(x)","csc(x)", "cot(x)"], "tan(x)"); $c = pi/5; $d = 0; -$graph = image("08_2_Problem_06_Diagram2.png", - width=>476, - height=>590, +$graph = image("08_2_Problem_06_Diagram2.png", + width=>476, + height=>590, extra_html_tags=>'alt=""') ; $popup = PopUp(["?","tan(x)", "sec(x)","csc(x)", "cot(x)"], "csc(x)"); @@ -76,17 +76,17 @@ $popup = PopUp(["?","tan(x)", "sec(x)","csc(x)", "cot(x)"], "csc(x)"); $c = 0; $d = 0; -$graph = image("08_2_Problem_06_Diagram3.png", - width=>568, - height=>598, +$graph = image("08_2_Problem_06_Diagram3.png", + width=>568, + height=>598, extra_html_tags=>'alt=""') ; $popup = PopUp(["?","tan(x)", "sec(x)","csc(x)", "cot(x)"], "cot(x)"); } else { -$graph = image("08_2_Problem_06_Diagram4.png", - width=>506, - height=>600, +$graph = image("08_2_Problem_06_Diagram4.png", + width=>506, + height=>600, extra_html_tags=>'alt=""') ; $popup = PopUp(["?","tan(x)", "sec(x)","csc(x)", "cot(x)"], "sec(x)"); diff --git a/Contrib/CCCS/Trigonometry/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_10.pg b/Contrib/CCCS/Trigonometry/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_10.pg index 6da2ef6abe..5b8c5ee565 100644 --- a/Contrib/CCCS/Trigonometry/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_10.pg +++ b/Contrib/CCCS/Trigonometry/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_10.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,11 +21,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", -"contextFraction.pl", +"contextFraction.pl", "PGgraphmacros.pl", "parserPopUp.pl" ); @@ -54,8 +54,8 @@ $popup2 = PopUp(["?", "left","right"], "right"); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); diff --git a/Contrib/CCCS/Trigonometry/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_11.pg b/Contrib/CCCS/Trigonometry/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_11.pg index 107d087fd2..0262bcb9a5 100644 --- a/Contrib/CCCS/Trigonometry/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_11.pg +++ b/Contrib/CCCS/Trigonometry/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_11.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,11 +21,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", -"contextFraction.pl", +"contextFraction.pl", "PGgraphmacros.pl", "parserPopUp.pl" ); @@ -52,8 +52,8 @@ $popup2 = PopUp(["?", "left","right"], "left"); $horizontalShift = Compute($c); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); diff --git a/Contrib/CCCS/Trigonometry/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_12.pg b/Contrib/CCCS/Trigonometry/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_12.pg index 707e740534..01b7143f42 100644 --- a/Contrib/CCCS/Trigonometry/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_12.pg +++ b/Contrib/CCCS/Trigonometry/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_12.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,11 +21,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", -"contextFraction.pl", +"contextFraction.pl", "PGgraphmacros.pl", "parserPopUp.pl" ); @@ -52,8 +52,8 @@ $popup2 = PopUp(["?", "left","right"], "left"); $horizontalShift = Compute($b); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); diff --git a/Contrib/CCCS/Trigonometry/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_13.pg b/Contrib/CCCS/Trigonometry/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_13.pg index 1adf7e2865..6e28b4a0d4 100644 --- a/Contrib/CCCS/Trigonometry/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_13.pg +++ b/Contrib/CCCS/Trigonometry/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_13.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,11 +21,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", -"contextFraction.pl", +"contextFraction.pl", "PGgraphmacros.pl", "parserPopUp.pl" ); diff --git a/Contrib/CCCS/Trigonometry/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_14.pg b/Contrib/CCCS/Trigonometry/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_14.pg index bb89803278..40243e6448 100644 --- a/Contrib/CCCS/Trigonometry/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_14.pg +++ b/Contrib/CCCS/Trigonometry/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_14.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,11 +21,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", -"contextFraction.pl", +"contextFraction.pl", "PGgraphmacros.pl", "parserPopUp.pl" ); diff --git a/Contrib/CCCS/Trigonometry/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_19.pg b/Contrib/CCCS/Trigonometry/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_19.pg index 3e7f6ddea7..16d608f25f 100644 --- a/Contrib/CCCS/Trigonometry/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_19.pg +++ b/Contrib/CCCS/Trigonometry/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_19.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,11 +21,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", -"contextFraction.pl", +"contextFraction.pl", "PGgraphmacros.pl", "parserPopUp.pl" ); diff --git a/Contrib/CCCS/Trigonometry/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_20.pg b/Contrib/CCCS/Trigonometry/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_20.pg index 48681dd6cd..b90412e8dc 100644 --- a/Contrib/CCCS/Trigonometry/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_20.pg +++ b/Contrib/CCCS/Trigonometry/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_20.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,11 +21,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", -"contextFraction.pl", +"contextFraction.pl", "PGgraphmacros.pl", "parserPopUp.pl" ); diff --git a/Contrib/CCCS/Trigonometry/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_21.pg b/Contrib/CCCS/Trigonometry/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_21.pg index d8d08414d9..921707d7e3 100644 --- a/Contrib/CCCS/Trigonometry/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_21.pg +++ b/Contrib/CCCS/Trigonometry/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_21.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -22,11 +22,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", -"contextFraction.pl", +"contextFraction.pl", "PGgraphmacros.pl", "parserPopUp.pl" ); diff --git a/Contrib/CCCS/Trigonometry/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_30.pg b/Contrib/CCCS/Trigonometry/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_30.pg index 02a3debec6..bac023c37d 100644 --- a/Contrib/CCCS/Trigonometry/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_30.pg +++ b/Contrib/CCCS/Trigonometry/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_30.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Trigonometry) @@ -20,11 +20,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", -"contextFraction.pl", +"contextFraction.pl", "PGgraphmacros.pl", "parserPopUp.pl" ); @@ -59,8 +59,8 @@ Context("Interval"); $range=Compute("(-infinity,infinity)"); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); diff --git a/Contrib/CCCS/Trigonometry/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_34.pg b/Contrib/CCCS/Trigonometry/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_34.pg index 36e51fd7fc..cbe8682af2 100644 --- a/Contrib/CCCS/Trigonometry/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_34.pg +++ b/Contrib/CCCS/Trigonometry/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_34.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -22,11 +22,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", -"contextFraction.pl", +"contextFraction.pl", "PGgraphmacros.pl", "parserPopUp.pl" ); diff --git a/Contrib/CCCS/Trigonometry/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_36.pg b/Contrib/CCCS/Trigonometry/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_36.pg index 6b6f74c66c..8fb0a9a00f 100644 --- a/Contrib/CCCS/Trigonometry/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_36.pg +++ b/Contrib/CCCS/Trigonometry/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_36.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,11 +21,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", -"contextFraction.pl", +"contextFraction.pl", "PGgraphmacros.pl", "parserPopUp.pl" ); diff --git a/Contrib/CCCS/Trigonometry/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_39.pg b/Contrib/CCCS/Trigonometry/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_39.pg index 66a6a46f01..6a86305a9b 100644 --- a/Contrib/CCCS/Trigonometry/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_39.pg +++ b/Contrib/CCCS/Trigonometry/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_39.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,11 +21,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", -"contextFraction.pl", +"contextFraction.pl", "PGgraphmacros.pl", "parserPopUp.pl", ); @@ -51,9 +51,9 @@ BEGIN_PGML Determine which equation can be used to find the asymptotes for the following graph. ->> [@ image("08_2_Problem_39_Diagram.png", - width=>1008/2, - height=>1036/2, +>> [@ image("08_2_Problem_39_Diagram.png", + width=>1008/2, + height=>1036/2, extra_html_tags=>'alt=""') ; @]* << Which equation can be used to find the asymptotes for the graph? [_______]{$popup}. diff --git a/Contrib/CCCS/Trigonometry/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_40.pg b/Contrib/CCCS/Trigonometry/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_40.pg index 85bca6ded1..65ce38dc85 100644 --- a/Contrib/CCCS/Trigonometry/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_40.pg +++ b/Contrib/CCCS/Trigonometry/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_40.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,11 +21,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", -"contextFraction.pl", +"contextFraction.pl", "PGgraphmacros.pl", "parserPopUp.pl" ); @@ -49,9 +49,9 @@ BEGIN_PGML Determine which equation can be used to find the asymptotes for the following graph. ->> [@ image("08_2_Problem_40_Diagram.png", - width=>1292/2, - height=>776/2, +>> [@ image("08_2_Problem_40_Diagram.png", + width=>1292/2, + height=>776/2, extra_html_tags=>'alt=""') ; @]* << diff --git a/Contrib/CCCS/Trigonometry/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_41.pg b/Contrib/CCCS/Trigonometry/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_41.pg index 3962bfd6f4..ac2e26ab5a 100644 --- a/Contrib/CCCS/Trigonometry/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_41.pg +++ b/Contrib/CCCS/Trigonometry/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_41.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,11 +21,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", -"contextFraction.pl", +"contextFraction.pl", "PGgraphmacros.pl", "parserPopUp.pl" ); @@ -48,9 +48,9 @@ BEGIN_PGML Determine which equation can be used to find the asymptotes for the following graph. ->> [@ image("08_2_Problem_41_Diagram.png", - width=>1010/2, - height=>1042/2, +>> [@ image("08_2_Problem_41_Diagram.png", + width=>1010/2, + height=>1042/2, extra_html_tags=>'alt=""') ; @]* << diff --git a/Contrib/CCCS/Trigonometry/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_42.pg b/Contrib/CCCS/Trigonometry/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_42.pg index 78498fe658..46495388ca 100644 --- a/Contrib/CCCS/Trigonometry/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_42.pg +++ b/Contrib/CCCS/Trigonometry/08.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_2_42.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,11 +21,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", -"contextFraction.pl", +"contextFraction.pl", "PGgraphmacros.pl", "parserPopUp.pl" ); @@ -49,9 +49,9 @@ BEGIN_PGML Determine which equation can be used to find the asymptotes for the following graph. ->> [@ image("08_2_Problem_42_Diagram.png", - width=>1026/2, - height=>1050/2, +>> [@ image("08_2_Problem_42_Diagram.png", + width=>1026/2, + height=>1050/2, extra_html_tags=>'alt=""') ; @]* << diff --git a/Contrib/CCCS/Trigonometry/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_10.pg b/Contrib/CCCS/Trigonometry/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_10.pg index 7c672390f0..8a619916d5 100644 --- a/Contrib/CCCS/Trigonometry/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_10.pg +++ b/Contrib/CCCS/Trigonometry/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_10.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -47,7 +47,7 @@ $n=random(0,2,1); $a = $latexratio[$n] ; -# Array of 3 ratios for Compute +# Array of 3 ratios for Compute @ratio=(sqrt(2)/2, sqrt(3)/2, 1/2); # Selecting angle for Compute @@ -60,8 +60,8 @@ Context()->flags->set(formatStudentAnswer=>'parsed'); Parser::Number::NoDecimals; $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -72,7 +72,7 @@ TeX => BEGIN_PGML Give the exact value for the expression. Use radians for any angles. -`cos^{-1}([$a])=`[_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +`cos^{-1}([$a])=`[_______________]{$ans}[@ helpLink("numbers") @]* [$video]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_11.pg b/Contrib/CCCS/Trigonometry/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_11.pg index f031d85c5c..92964b034f 100644 --- a/Contrib/CCCS/Trigonometry/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_11.pg +++ b/Contrib/CCCS/Trigonometry/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_11.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -47,7 +47,7 @@ $n=random(0,2,1); $a = $latexratio[$n] ; -# Array of 3 ratios for Compute +# Array of 3 ratios for Compute @ratio=(-sqrt(2)/2, -sqrt(3)/2, -1/2); # Selecting angle for Compute @@ -65,7 +65,7 @@ Parser::Number::NoDecimals; BEGIN_PGML Give the exact value for the expression. Use radians for any angles. -`cos^{-1}([$a])=`[_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +`cos^{-1}([$a])=`[_______________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_12.pg b/Contrib/CCCS/Trigonometry/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_12.pg index 2d5b73472c..396f24286e 100644 --- a/Contrib/CCCS/Trigonometry/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_12.pg +++ b/Contrib/CCCS/Trigonometry/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_12.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -47,7 +47,7 @@ $n=random(0,2,1); $a = $latexratio[$n] ; -# Array of 3 ratios for Compute +# Array of 3 ratios for Compute @ratio=(1, 0, -1); # Selecting angle for Compute @@ -60,8 +60,8 @@ Context()->flags->set(formatStudentAnswer=>'parsed'); Parser::Number::NoDecimals; $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -72,7 +72,7 @@ TeX => BEGIN_PGML Give the exact value for the expression. Use radians for any angles. -[`\arctan([$a])=`][_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +[`\arctan([$a])=`][_______________]{$ans}[@ helpLink("numbers") @]* [$video]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_13.pg b/Contrib/CCCS/Trigonometry/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_13.pg index 78b47be3fa..e94769f52c 100644 --- a/Contrib/CCCS/Trigonometry/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_13.pg +++ b/Contrib/CCCS/Trigonometry/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_13.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -47,7 +47,7 @@ $n=random(0,1,1); $a = $latexratio[$n] ; -# Array of 2 ratios for Compute +# Array of 2 ratios for Compute @ratio=(sqrt(3), -sqrt(3)); # Selecting angle for Compute @@ -65,7 +65,7 @@ Parser::Number::NoDecimals; BEGIN_PGML Give the exact value for the expression. Use radians for any angles. -`tan^{-1}([$a])=`[_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +`tan^{-1}([$a])=`[_______________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_14.pg b/Contrib/CCCS/Trigonometry/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_14.pg index e7304935c8..d1aaad2f96 100644 --- a/Contrib/CCCS/Trigonometry/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_14.pg +++ b/Contrib/CCCS/Trigonometry/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_14.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -47,7 +47,7 @@ $n=random(0,1,1); $a = $latexratio[$n] ; -# Array of 2 ratios for Compute +# Array of 2 ratios for Compute @ratio=(sqrt(3)/3, -sqrt(3)/3); # Selecting angle for Compute @@ -65,7 +65,7 @@ Parser::Number::NoDecimals; BEGIN_PGML Give the exact value for the expression. Use radians for any angles. -`arctan([$a])=`[_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +`arctan([$a])=`[_______________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_17.pg b/Contrib/CCCS/Trigonometry/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_17.pg index 3e85f0718a..ca2f36b039 100644 --- a/Contrib/CCCS/Trigonometry/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_17.pg +++ b/Contrib/CCCS/Trigonometry/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_17.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -55,7 +55,7 @@ Context()->flags->set(formatStudentAnswer=>'parsed'); BEGIN_PGML Use a calculator to evaluate the expression. Round to the nearest hundredth. Use radians for any angles. -`arccos([$a])=`[_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +`arccos([$a])=`[_______________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_18.pg b/Contrib/CCCS/Trigonometry/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_18.pg index 3b7c45c3bb..d35bf97d98 100644 --- a/Contrib/CCCS/Trigonometry/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_18.pg +++ b/Contrib/CCCS/Trigonometry/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_18.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -53,9 +53,9 @@ Context()->flags->set(formatStudentAnswer=>'parsed'); # Main text BEGIN_PGML -Use a calculator to evaluate the expression. Round to the nearest hundredth. Use radians for any angles. +Use a calculator to evaluate the expression. Round to the nearest hundredth. Use radians for any angles. -`sin^{-1}([$a])=`[_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +`sin^{-1}([$a])=`[_______________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_19.pg b/Contrib/CCCS/Trigonometry/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_19.pg index 5249e3a15e..253997f49c 100644 --- a/Contrib/CCCS/Trigonometry/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_19.pg +++ b/Contrib/CCCS/Trigonometry/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_19.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -55,7 +55,7 @@ Context()->flags->set(formatStudentAnswer=>'parsed'); BEGIN_PGML Use a calculator to evaluate the expression. Round to the nearest hundredth. Use radians for any angles. -`tan^{-1}([$a])=`[_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +`tan^{-1}([$a])=`[_______________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_24.pg b/Contrib/CCCS/Trigonometry/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_24.pg index 9ac3b2bb7a..40338621fc 100644 --- a/Contrib/CCCS/Trigonometry/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_24.pg +++ b/Contrib/CCCS/Trigonometry/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_24.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -41,13 +41,13 @@ Context()->functions->enable("sqrt"); # random integer to choose an angle $n=random(0,6,1); -# Array of 7 angles +# Array of 7 angles @latexfraction=("pi/3" ,"pi/4" ,"pi/6", "(2pi)/3" , "(3pi)/4", "(5pi)/6", "pi"); # Selecting angle for PGML $a = $latexfraction[$n] ; -# Array of 7 angles +# Array of 7 angles @fraction=(pi/3 ,pi/4 ,pi/6, 2*pi/3, 3*pi/4, 5*pi/6, pi); # Selecting angle for Compute @@ -60,8 +60,8 @@ Context()->flags->set(formatStudentAnswer=>'parsed'); Parser::Number::NoDecimals; $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -75,7 +75,7 @@ Give the exact value for the expression. Use radians for any angles. `sin^{-1}(cos([$a]))` -[_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans}[@ helpLink("numbers") @]* [$video]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_25.pg b/Contrib/CCCS/Trigonometry/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_25.pg index 103612db25..c84ceaf5e5 100644 --- a/Contrib/CCCS/Trigonometry/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_25.pg +++ b/Contrib/CCCS/Trigonometry/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_25.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -41,13 +41,13 @@ Context()->functions->enable("sqrt"); # random integer to choose an angle $n=random(0,7,1); -# Array of 8 angles +# Array of 8 angles @latexfraction=("(11pi)/6", "pi/3" ,"pi/4" ,"pi/6", "(2pi)/3" , "(3pi)/4", "(5pi)/6", "pi"); # Selecting angle for PGML $a = $latexfraction[$n] ; -# Array of 8 angles +# Array of 8 angles @fraction=(11*pi/6, pi/3 ,pi/4 ,pi/6, 2*pi/3, 3*pi/4, 5*pi/6, pi); # Selecting angle for Compute @@ -68,7 +68,7 @@ Give the exact value for the expression. Use radians for any angles. `cos^{-1}(sin([$a]))` -[_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_26.pg b/Contrib/CCCS/Trigonometry/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_26.pg index 6b7e0d2537..c1925e0fc0 100644 --- a/Contrib/CCCS/Trigonometry/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_26.pg +++ b/Contrib/CCCS/Trigonometry/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_26.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -41,7 +41,7 @@ Context()->functions->enable("sqrt"); # random integer to choose an angle $n=random(0,6,1); -# Array of 7 ratios +# Array of 7 ratios @latexfraction=("1/2", "(sqrt2)/2" ,"(sqrt3)/2" ,"-1/2", "-(sqrt2)/2" ,"-(sqrt3)/2", 0); # Selecting angle for PGML @@ -68,7 +68,7 @@ Give the exact value for the expression. Use radians for any angles. `cos(sin^{-1}([$a]))` -[_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_30.pg b/Contrib/CCCS/Trigonometry/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_30.pg index 4d193e132e..0cbb85711b 100644 --- a/Contrib/CCCS/Trigonometry/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_30.pg +++ b/Contrib/CCCS/Trigonometry/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_30.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -41,13 +41,13 @@ Context()->functions->enable("sqrt"); # random integer to choose an angle $n=random(0,7,1); -# Array of 8 angles +# Array of 8 angles @latexfraction=("(11pi)/6", "pi/3" ,"pi/4" ,"pi/6", "(2pi)/3" , "(3pi)/4", "(5pi)/6", "pi"); # Selecting angle for PGML $a = $latexfraction[$n] ; -# Array of 8 angles +# Array of 8 angles @fraction=(11*pi/6, pi/3 ,pi/4 ,pi/6, 2*pi/3, 3*pi/4, 5*pi/6, pi); # Selecting angle for Compute @@ -68,7 +68,7 @@ Give the exact value for the expression. Use radians for any angles. `tan^{-1}(tan([$a]))` -[_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_31.pg b/Contrib/CCCS/Trigonometry/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_31.pg index 5dceec78b1..7ac013b929 100644 --- a/Contrib/CCCS/Trigonometry/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_31.pg +++ b/Contrib/CCCS/Trigonometry/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_31.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -41,7 +41,7 @@ Context()->functions->enable("sqrt"); # random integer to choose an angle $n=random(0,5,1); -# Array of 6 ratios +# Array of 6 ratios @latexfraction=("1/2", "(sqrt2)/2" ,"(sqrt3)/2" ,"-1/2", "-(sqrt2)/2" ,"-(sqrt3)/2"); # Selecting angle for PGML @@ -68,7 +68,7 @@ Give the exact value for the expression. Use radians for any angles. `sin(sin^{-1}([$a]))` -[_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_32.pg b/Contrib/CCCS/Trigonometry/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_32.pg index 981f27066c..6b506f0640 100644 --- a/Contrib/CCCS/Trigonometry/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_32.pg +++ b/Contrib/CCCS/Trigonometry/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_32.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -41,7 +41,7 @@ Context()->functions->enable("sqrt"); # random integer to choose an angle $n=random(0,5,1); -# Array of 9 ratios +# Array of 9 ratios @latexfraction=("1/2", "(sqrt2)/2" ,"(sqrt3)/2" ,"-1/2", "-(sqrt2)/2" ,"-(sqrt3)/2"); # Selecting angle for PGML @@ -68,7 +68,7 @@ Give the exact value for the expression. Use radians for any angles. `sin(arccos([$a]))` -[_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_53.pg b/Contrib/CCCS/Trigonometry/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_53.pg index a3bde1de38..64c0d3236f 100644 --- a/Contrib/CCCS/Trigonometry/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_53.pg +++ b/Contrib/CCCS/Trigonometry/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_53.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -61,7 +61,7 @@ BEGIN_PGML Suppose a [$a]-foot ladder is leaning against a building, reaching to the bottom of a second-floor window [$b] feet above the ground. What angle, in degrees, does the ladder make with the building? Round to the nearest hundredth. -[_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_54.pg b/Contrib/CCCS/Trigonometry/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_54.pg index b09efe752f..26058ff535 100644 --- a/Contrib/CCCS/Trigonometry/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_54.pg +++ b/Contrib/CCCS/Trigonometry/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_54.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -60,7 +60,7 @@ BEGIN_PGML Suppose you drive [$a] miles on a road, during which the vertical distance changes from 0 to [$b] feet. What is the angle of elevation (in degrees) of the road? Round to the nearest hundredth. -[_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_8.pg b/Contrib/CCCS/Trigonometry/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_8.pg index efbcd18a78..75aa1e837e 100644 --- a/Contrib/CCCS/Trigonometry/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_8.pg +++ b/Contrib/CCCS/Trigonometry/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_8.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -47,7 +47,7 @@ $n=random(0,2,1); $a = $latexratio[$n] ; -# Array of 3 ratios for Compute +# Array of 3 ratios for Compute @ratio=(sqrt(2)/2, sqrt(3)/2, 1/2); # Selecting angle for Compute @@ -61,8 +61,8 @@ Parser::Number::NoDecimals; $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -72,7 +72,7 @@ TeX => BEGIN_PGML Give the exact value for the expression. Use radians for any angles. -`sin^{-1}([$a])=`[_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +`sin^{-1}([$a])=`[_______________]{$ans}[@ helpLink("numbers") @]* [$video]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_9.pg b/Contrib/CCCS/Trigonometry/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_9.pg index 2116240e9e..0711e2a93d 100644 --- a/Contrib/CCCS/Trigonometry/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_9.pg +++ b/Contrib/CCCS/Trigonometry/08.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_8_3_9.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -47,7 +47,7 @@ $n=random(0,2,1); $a = $latexratio[$n] ; -# Array of 3 ratios for Compute +# Array of 3 ratios for Compute @ratio=(-sqrt(2)/2, -sqrt(3)/2, -1/2); # Selecting angle for Compute @@ -65,7 +65,7 @@ Parser::Number::NoDecimals; BEGIN_PGML Give the exact value for the expression. Use radians for any angles. -`arcsin([$a])=`[_______________]{$ans}[@ AnswerFormatHelp("numbers") @]* +`arcsin([$a])=`[_______________]{$ans}[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_10.pg b/Contrib/CCCS/Trigonometry/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_10.pg index 6c4c9914fb..a7460fd300 100644 --- a/Contrib/CCCS/Trigonometry/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_10.pg +++ b/Contrib/CCCS/Trigonometry/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_10.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -41,7 +41,7 @@ Context()->variables->add(t=>"Real"); if ( $chooser==1) { $fun=("3sin^3(y)csc(y)+cos^2(y)+2cos(-y)cos(y)"); -$ans=("3"); +$ans=("3"); } elsif( $chooser==2) { @@ -58,7 +58,7 @@ $ans="4"; BEGIN_PGML Use the fundamental identities to fully simplify the expression. -`[$fun]` +`[$fun]` [____________________]{$ans} diff --git a/Contrib/CCCS/Trigonometry/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_13.pg b/Contrib/CCCS/Trigonometry/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_13.pg index c4cd17a154..bde735d058 100644 --- a/Contrib/CCCS/Trigonometry/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_13.pg +++ b/Contrib/CCCS/Trigonometry/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_13.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -41,7 +41,7 @@ if ( $chooser==1) { Context()->functions->disable("SimpleTrig"); Context()->functions->enable("sec"); $fun=("(1+tan^2x)/csc^2x+sin^2x+1/(sec^2x)"); -$ans="sec^2x"; +$ans="sec^2x"; } elsif( $chooser==2) { @@ -59,7 +59,7 @@ $ans="csc^2x"; BEGIN_PGML Use the fundamental identities to fully simplify the expression. -`[$fun]` +`[$fun]` [____________________]{$ans} diff --git a/Contrib/CCCS/Trigonometry/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_16.pg b/Contrib/CCCS/Trigonometry/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_16.pg index 1f9682a7c7..ce2e86ca80 100644 --- a/Contrib/CCCS/Trigonometry/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_16.pg +++ b/Contrib/CCCS/Trigonometry/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_16.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); diff --git a/Contrib/CCCS/Trigonometry/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_18.pg b/Contrib/CCCS/Trigonometry/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_18.pg index 4cff41cbb6..15b8d38d43 100644 --- a/Contrib/CCCS/Trigonometry/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_18.pg +++ b/Contrib/CCCS/Trigonometry/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_18.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); diff --git a/Contrib/CCCS/Trigonometry/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_29.pg b/Contrib/CCCS/Trigonometry/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_29.pg index 0ae78a2af9..4c48da90ba 100644 --- a/Contrib/CCCS/Trigonometry/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_29.pg +++ b/Contrib/CCCS/Trigonometry/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_29.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -40,7 +40,7 @@ $showPartialCorrectAnswers = 1; # Main text BEGIN_PGML -Verify the following identity. +Verify the following identity. `cosx-cos^3x=cosxsin^2x` diff --git a/Contrib/CCCS/Trigonometry/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_30.pg b/Contrib/CCCS/Trigonometry/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_30.pg index 93c7704560..ec7d9094c9 100644 --- a/Contrib/CCCS/Trigonometry/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_30.pg +++ b/Contrib/CCCS/Trigonometry/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_30.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -40,7 +40,7 @@ $showPartialCorrectAnswers = 1; # Main text BEGIN_PGML -Verify the following identity. +Verify the following identity. `cos\theta(tan\theta-sec(-\theta))=sin\theta-1` diff --git a/Contrib/CCCS/Trigonometry/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_31.pg b/Contrib/CCCS/Trigonometry/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_31.pg index 3756058961..8f979e8a23 100644 --- a/Contrib/CCCS/Trigonometry/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_31.pg +++ b/Contrib/CCCS/Trigonometry/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_31.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -40,7 +40,7 @@ $showPartialCorrectAnswers = 1; # Main text BEGIN_PGML -Verify the following identity. +Verify the following identity. `\frac{1+sin^2x}{cos^2x}=1+2tan^2x` diff --git a/Contrib/CCCS/Trigonometry/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_32.pg b/Contrib/CCCS/Trigonometry/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_32.pg index 88ad45f2ed..0c2fead5e2 100644 --- a/Contrib/CCCS/Trigonometry/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_32.pg +++ b/Contrib/CCCS/Trigonometry/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_32.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -40,7 +40,7 @@ $showPartialCorrectAnswers = 1; # Main text BEGIN_PGML -Verify the following identity. +Verify the following identity. `(sin\beta+cos\beta)^2=1+2sin\betacos\beta` diff --git a/Contrib/CCCS/Trigonometry/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_33.pg b/Contrib/CCCS/Trigonometry/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_33.pg index 6dacf55819..31a2f964ba 100644 --- a/Contrib/CCCS/Trigonometry/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_33.pg +++ b/Contrib/CCCS/Trigonometry/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_33.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -40,7 +40,7 @@ $showPartialCorrectAnswers = 1; # Main text BEGIN_PGML -Verify the following identity. +Verify the following identity. `cos^2x-tan^2x=2-sin^2x-sec^2x` diff --git a/Contrib/CCCS/Trigonometry/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_5.pg b/Contrib/CCCS/Trigonometry/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_5.pg index 3e54dea11d..85260fe477 100644 --- a/Contrib/CCCS/Trigonometry/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_5.pg +++ b/Contrib/CCCS/Trigonometry/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_5.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -40,20 +40,20 @@ Context()->functions->disable("SimpleTrig"); if ( $chooser==1) { $fun=("sinx cosx secx"); -$ans=("sinx"); +$ans=("sinx"); Context()->functions->enable("sin"); -Context()->{error}{msg}{"Function 'sin' is not allowed in this context"} +Context()->{error}{msg}{"Function 'sin' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'tan' is not allowed in this context"} +Context()->{error}{msg}{"Function 'tan' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'cot' is not allowed in this context"} +Context()->{error}{msg}{"Function 'cot' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'cos' is not allowed in this context"} +Context()->{error}{msg}{"Function 'cos' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'sec' is not allowed in this context"} +Context()->{error}{msg}{"Function 'sec' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'csc' is not allowed in this context"} +Context()->{error}{msg}{"Function 'csc' is not allowed in this context"} = "This is not completely simplified"; } @@ -64,23 +64,23 @@ $fun=("sinxcosxcscx"); $ans=("cosx"); Context()->functions->enable("cos"); -Context()->{error}{msg}{"Function 'sin' is not allowed in this context"} +Context()->{error}{msg}{"Function 'sin' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'tan' is not allowed in this context"} +Context()->{error}{msg}{"Function 'tan' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'cot' is not allowed in this context"} +Context()->{error}{msg}{"Function 'cot' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'cos' is not allowed in this context"} +Context()->{error}{msg}{"Function 'cos' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'sec' is not allowed in this context"} +Context()->{error}{msg}{"Function 'sec' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'csc' is not allowed in this context"} +Context()->{error}{msg}{"Function 'csc' is not allowed in this context"} = "This is not completely simplified"; } $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -91,7 +91,7 @@ TeX => BEGIN_PGML Use the fundamental identities to fully simplify the expression. -`[$fun]` +`[$fun]` [____________________]{$ans} diff --git a/Contrib/CCCS/Trigonometry/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_6.pg b/Contrib/CCCS/Trigonometry/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_6.pg index 2011f486b2..3a358719fd 100644 --- a/Contrib/CCCS/Trigonometry/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_6.pg +++ b/Contrib/CCCS/Trigonometry/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_6.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -42,19 +42,19 @@ $chooser=random(1,2,1); if ( $chooser==1) { $fun=("sin(-t) cos(-t) csc(-t)"); -$ans=("cost"); +$ans=("cost"); Context()->functions->enable("cos"); -Context()->{error}{msg}{"Function 'sin' is not allowed in this context"} +Context()->{error}{msg}{"Function 'sin' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'tan' is not allowed in this context"} +Context()->{error}{msg}{"Function 'tan' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'cot' is not allowed in this context"} +Context()->{error}{msg}{"Function 'cot' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'cos' is not allowed in this context"} +Context()->{error}{msg}{"Function 'cos' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'sec' is not allowed in this context"} +Context()->{error}{msg}{"Function 'sec' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'csc' is not allowed in this context"} +Context()->{error}{msg}{"Function 'csc' is not allowed in this context"} = "This is not completely simplified"; } @@ -64,23 +64,23 @@ elsif( $chooser==2) { $fun=("tan(-t)sec(-t)cot(-t)"); $ans=("sec(t)"); Context()->functions->enable("sec"); -Context()->{error}{msg}{"Function 'sin' is not allowed in this context"} +Context()->{error}{msg}{"Function 'sin' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'tan' is not allowed in this context"} +Context()->{error}{msg}{"Function 'tan' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'cot' is not allowed in this context"} +Context()->{error}{msg}{"Function 'cot' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'cos' is not allowed in this context"} +Context()->{error}{msg}{"Function 'cos' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'sec' is not allowed in this context"} +Context()->{error}{msg}{"Function 'sec' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'csc' is not allowed in this context"} +Context()->{error}{msg}{"Function 'csc' is not allowed in this context"} = "This is not completely simplified"; } $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -91,7 +91,7 @@ TeX => BEGIN_PGML Use the fundamental identities to fully simplify the expression. -`[$fun]` +`[$fun]` [____________________]{$ans} diff --git a/Contrib/CCCS/Trigonometry/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_7.pg b/Contrib/CCCS/Trigonometry/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_7.pg index bd2fde10cf..bf55347fcc 100644 --- a/Contrib/CCCS/Trigonometry/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_7.pg +++ b/Contrib/CCCS/Trigonometry/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_7.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -40,18 +40,18 @@ Context()->functions->disable("SimpleTrig"); if ( $chooser==1) { $fun=("tanx sinx +secx cos^2x"); -$ans=("secx"); +$ans=("secx"); Context()->functions->enable("sec"); -Context()->{error}{msg}{"Function 'sin' is not allowed in this context"} +Context()->{error}{msg}{"Function 'sin' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'tan' is not allowed in this context"} +Context()->{error}{msg}{"Function 'tan' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'cot' is not allowed in this context"} +Context()->{error}{msg}{"Function 'cot' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'cos' is not allowed in this context"} +Context()->{error}{msg}{"Function 'cos' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'csc' is not allowed in this context"} +Context()->{error}{msg}{"Function 'csc' is not allowed in this context"} = "This is not completely simplified"; } @@ -62,15 +62,15 @@ $fun=("cotx cosx + cscx sin^2x"); $ans="cscx"; Context()->functions->enable("csc"); -Context()->{error}{msg}{"Function 'sin' is not allowed in this context"} +Context()->{error}{msg}{"Function 'sin' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'tan' is not allowed in this context"} +Context()->{error}{msg}{"Function 'tan' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'cot' is not allowed in this context"} +Context()->{error}{msg}{"Function 'cot' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'cos' is not allowed in this context"} +Context()->{error}{msg}{"Function 'cos' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'sec' is not allowed in this context"} +Context()->{error}{msg}{"Function 'sec' is not allowed in this context"} } diff --git a/Contrib/CCCS/Trigonometry/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_8.pg b/Contrib/CCCS/Trigonometry/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_8.pg index 06f1071d62..06e5578d5d 100644 --- a/Contrib/CCCS/Trigonometry/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_8.pg +++ b/Contrib/CCCS/Trigonometry/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_8.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -41,18 +41,18 @@ Context()->variables->add(t=>"Real"); if ( $chooser==1) { $fun=("cscx+cosxcot(-x)"); -$ans=("sinx"); +$ans=("sinx"); Context()->functions->enable("sin"); -Context()->{error}{msg}{"Function 'cos' is not allowed in this context"} +Context()->{error}{msg}{"Function 'cos' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'tan' is not allowed in this context"} +Context()->{error}{msg}{"Function 'tan' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'cot' is not allowed in this context"} +Context()->{error}{msg}{"Function 'cot' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'sec' is not allowed in this context"} +Context()->{error}{msg}{"Function 'sec' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'csc' is not allowed in this context"} +Context()->{error}{msg}{"Function 'csc' is not allowed in this context"} = "This is not completely simplified"; } @@ -62,15 +62,15 @@ $fun=("secx+sin(-x)tanx"); $ans="cosx"; Context()->functions->enable("cos"); -Context()->{error}{msg}{"Function 'sin' is not allowed in this context"} +Context()->{error}{msg}{"Function 'sin' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'tan' is not allowed in this context"} +Context()->{error}{msg}{"Function 'tan' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'cot' is not allowed in this context"} +Context()->{error}{msg}{"Function 'cot' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'sec' is not allowed in this context"} +Context()->{error}{msg}{"Function 'sec' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'csc' is not allowed in this context"} +Context()->{error}{msg}{"Function 'csc' is not allowed in this context"} = "This is not completely simplified"; } @@ -81,7 +81,7 @@ Context()->{error}{msg}{"Function 'csc' is not allowed in this context"} BEGIN_PGML Use the fundamental identities to fully simplify the expression. -`[$fun]` +`[$fun]` [____________________]{$ans} diff --git a/Contrib/CCCS/Trigonometry/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_9.pg b/Contrib/CCCS/Trigonometry/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_9.pg index 8c53c2a805..0946d09215 100644 --- a/Contrib/CCCS/Trigonometry/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_9.pg +++ b/Contrib/CCCS/Trigonometry/09.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_1_9.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -42,18 +42,18 @@ Context()->flags->set(formatStudentAnswer=>'parsed'); if ( $chooser==1) { $fun=("(cott+tant)/(sec(-t))"); -$ans=("csct"); +$ans=("csct"); Context()->functions->enable("csc"); -Context()->{error}{msg}{"Function 'cos' is not allowed in this context"} +Context()->{error}{msg}{"Function 'cos' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'tan' is not allowed in this context"} +Context()->{error}{msg}{"Function 'tan' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'cot' is not allowed in this context"} +Context()->{error}{msg}{"Function 'cot' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'sec' is not allowed in this context"} +Context()->{error}{msg}{"Function 'sec' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'sin' is not allowed in this context"} +Context()->{error}{msg}{"Function 'sin' is not allowed in this context"} = "This is not completely simplified"; } @@ -63,21 +63,21 @@ $fun=("(tant+cott)/(csc(-t))"); $ans="-sect"; Context()->functions->enable("sec"); -Context()->{error}{msg}{"Function 'sin' is not allowed in this context"} +Context()->{error}{msg}{"Function 'sin' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'tan' is not allowed in this context"} +Context()->{error}{msg}{"Function 'tan' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'cot' is not allowed in this context"} +Context()->{error}{msg}{"Function 'cot' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'cos' is not allowed in this context"} +Context()->{error}{msg}{"Function 'cos' is not allowed in this context"} = "This is not completely simplified"; -Context()->{error}{msg}{"Function 'csc' is not allowed in this context"} +Context()->{error}{msg}{"Function 'csc' is not allowed in this context"} = "This is not completely simplified"; } $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -87,7 +87,7 @@ TeX => BEGIN_PGML Use the fundamental identities to fully simplify the expression. -`[$fun]` +`[$fun]` [____________________]{$ans} diff --git a/Contrib/CCCS/Trigonometry/09.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_2_4.pg b/Contrib/CCCS/Trigonometry/09.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_2_4.pg index e4c8a6eb62..fa0ee800cb 100644 --- a/Contrib/CCCS/Trigonometry/09.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_2_4.pg +++ b/Contrib/CCCS/Trigonometry/09.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_2_4.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -42,8 +42,8 @@ Parser::Number::NoDecimals; $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -53,14 +53,14 @@ $n = random(1,4,1); if ($n == 1){ $ans = Compute("(sqrt(2)-sqrt(6))/4"); - ########################### + ########################### # Main text BEGIN_PGML Find the exact value. - [`` \cos\left(\frac{7\pi}{12}\right) = ``] [_______________]{$ans} [@ - AnswerFormatHelp("numbers") @]* + [`` \cos\left(\frac{7\pi}{12}\right) = ``] [_______________]{$ans} [@ + helpLink("numbers") @]* [$video]* END_PGML @@ -75,14 +75,14 @@ END_TEXT if ($n == 2){ $ans = Compute("(sqrt(6)-sqrt(2))/4"); - ########################### + ########################### # Main text BEGIN_PGML Find the exact value. - [`` \cos\left(\frac{5\pi}{12}\right) = ``] [_______________]{$ans} [@ - AnswerFormatHelp("numbers") @]* + [`` \cos\left(\frac{5\pi}{12}\right) = ``] [_______________]{$ans} [@ + helpLink("numbers") @]* [$video]* END_PGML @@ -96,14 +96,14 @@ END_TEXT if ($n == 3){ $ans = Compute("(sqrt(2)+sqrt(6))/4"); - ########################### + ########################### # Main text BEGIN_PGML Find the exact value. - [`` \cos\left(\frac{\pi}{12}\right) = ``] [_______________]{$ans} [@ - AnswerFormatHelp("numbers") @]* + [`` \cos\left(\frac{\pi}{12}\right) = ``] [_______________]{$ans} [@ + helpLink("numbers") @]* [$video]* END_PGML @@ -117,14 +117,14 @@ END_TEXT if ($n == 4){ $ans = Compute("(-sqrt(2)-sqrt(6))/4"); - ########################### + ########################### # Main text BEGIN_PGML Find the exact value. - [`` \cos\left(\frac{13\pi}{12}\right) = ``] [_______________]{$ans} [@ - AnswerFormatHelp("numbers") @]* + [`` \cos\left(\frac{13\pi}{12}\right) = ``] [_______________]{$ans} [@ + helpLink("numbers") @]* [$video]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/09.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_2_43.pg b/Contrib/CCCS/Trigonometry/09.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_2_43.pg index 1e6c29e192..135c7fc8da 100644 --- a/Contrib/CCCS/Trigonometry/09.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_2_43.pg +++ b/Contrib/CCCS/Trigonometry/09.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_2_43.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -46,14 +46,14 @@ $n = random(1,4,1); if ($n == 1){ $ans = Compute("(sqrt(6)-sqrt(2))/4"); - ########################### + ########################### # Main text BEGIN_PGML Find the exact value. - [`` \sin(15^\circ) = ``] [_______________]{$ans} [@ - AnswerFormatHelp("numbers") @]* + [`` \sin(15^\circ) = ``] [_______________]{$ans} [@ + helpLink("numbers") @]* END_PGML } @@ -61,42 +61,42 @@ if ($n == 1){ if ($n == 2){ $ans = Compute("(sqrt(2)-sqrt(6))/4"); - ########################### + ########################### # Main text BEGIN_PGML Find the exact value. - [`` \sin(-15^\circ) = ``] [_______________]{$ans} [@ - AnswerFormatHelp("numbers") @]* + [`` \sin(-15^\circ) = ``] [_______________]{$ans} [@ + helpLink("numbers") @]* END_PGML } if ($n == 3){ $ans = Compute("(sqrt(6)+sqrt(2))/4"); - ########################### + ########################### # Main text BEGIN_PGML Find the exact value. - [`` \sin(75^\circ) = ``] [_______________]{$ans} [@ - AnswerFormatHelp("numbers") @]* + [`` \sin(75^\circ) = ``] [_______________]{$ans} [@ + helpLink("numbers") @]* END_PGML } if ($n == 4){ $ans = Compute("(sqrt(6)+sqrt(2))/4"); - ########################### + ########################### # Main text BEGIN_PGML Find the exact value. - [`` \sin(105^\circ) = ``] [_______________]{$ans} [@ - AnswerFormatHelp("numbers") @]* + [`` \sin(105^\circ) = ``] [_______________]{$ans} [@ + helpLink("numbers") @]* END_PGML } diff --git a/Contrib/CCCS/Trigonometry/09.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_2_44.pg b/Contrib/CCCS/Trigonometry/09.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_2_44.pg index 8346dcdcef..a0abe0e64a 100644 --- a/Contrib/CCCS/Trigonometry/09.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_2_44.pg +++ b/Contrib/CCCS/Trigonometry/09.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_2_44.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -46,14 +46,14 @@ $n = random(1,4,1); if ($n == 1){ $ans = Compute("(-sqrt(2)-sqrt(6))/4"); - ########################### + ########################### # Main text BEGIN_PGML Find the exact value. - [`` \cos(165^\circ) = ``] [_______________]{$ans} [@ - AnswerFormatHelp("numbers") @]* + [`` \cos(165^\circ) = ``] [_______________]{$ans} [@ + helpLink("numbers") @]* END_PGML } @@ -61,42 +61,42 @@ if ($n == 1){ if ($n == 2){ $ans = Compute("(-sqrt(2)-sqrt(6))/4"); - ########################### + ########################### # Main text BEGIN_PGML Find the exact value. - [`` \cos(195^\circ) = ``] [_______________]{$ans} [@ - AnswerFormatHelp("numbers") @]* + [`` \cos(195^\circ) = ``] [_______________]{$ans} [@ + helpLink("numbers") @]* END_PGML } if ($n == 3){ $ans = Compute("(sqrt(2)-sqrt(6))/4"); - ########################### + ########################### # Main text BEGIN_PGML Find the exact value. - [`` \cos(255^\circ) = ``] [_______________]{$ans} [@ - AnswerFormatHelp("numbers") @]* + [`` \cos(255^\circ) = ``] [_______________]{$ans} [@ + helpLink("numbers") @]* END_PGML } if ($n == 4){ $ans = Compute("(sqrt(6)-sqrt(2))/4"); - ########################### + ########################### # Main text BEGIN_PGML Find the exact value. - [`` \cos(285^\circ) = ``] [_______________]{$ans} [@ - AnswerFormatHelp("numbers") @]* + [`` \cos(285^\circ) = ``] [_______________]{$ans} [@ + helpLink("numbers") @]* END_PGML } diff --git a/Contrib/CCCS/Trigonometry/09.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_2_5.pg b/Contrib/CCCS/Trigonometry/09.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_2_5.pg index bed5bd0b4c..f9957509fb 100644 --- a/Contrib/CCCS/Trigonometry/09.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_2_5.pg +++ b/Contrib/CCCS/Trigonometry/09.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_2_5.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -45,14 +45,14 @@ $n = random(1,4,1); if ($n == 1){ $ans = Compute("(sqrt(6)+sqrt(2))/4"); - ########################### + ########################### # Main text BEGIN_PGML Find the exact value. - [`` \cos\left(\frac{\pi}{12}\right) = ``] [_______________]{$ans} [@ - AnswerFormatHelp("numbers") @]* + [`` \cos\left(\frac{\pi}{12}\right) = ``] [_______________]{$ans} [@ + helpLink("numbers") @]* END_PGML } @@ -60,42 +60,42 @@ if ($n == 1){ if ($n == 2){ $ans = Compute("(sqrt(2)-sqrt(6))/4"); - ########################### + ########################### # Main text BEGIN_PGML Find the exact value. - [`` \cos\left(\frac{17\pi}{12}\right) = ``] [_______________]{$ans} [@ - AnswerFormatHelp("numbers") @]* + [`` \cos\left(\frac{17\pi}{12}\right) = ``] [_______________]{$ans} [@ + helpLink("numbers") @]* END_PGML } if ($n == 3){ $ans = Compute("(sqrt(6)-sqrt(2))/4"); - ########################### + ########################### # Main text BEGIN_PGML Find the exact value. - [`` \cos\left(\frac{19\pi}{12}\right) = ``] [_______________]{$ans} [@ - AnswerFormatHelp("numbers") @]* + [`` \cos\left(\frac{19\pi}{12}\right) = ``] [_______________]{$ans} [@ + helpLink("numbers") @]* END_PGML } if ($n == 4){ $ans = Compute("(sqrt(6)+sqrt(2))/4"); - ########################### + ########################### # Main text BEGIN_PGML Find the exact value. - [`` \cos\left(-\frac{\pi}{12}\right) = ``] [_______________]{$ans} [@ - AnswerFormatHelp("numbers") @]* + [`` \cos\left(-\frac{\pi}{12}\right) = ``] [_______________]{$ans} [@ + helpLink("numbers") @]* END_PGML } diff --git a/Contrib/CCCS/Trigonometry/09.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_2_6.pg b/Contrib/CCCS/Trigonometry/09.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_2_6.pg index f7bc5a2298..8ef20e0828 100644 --- a/Contrib/CCCS/Trigonometry/09.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_2_6.pg +++ b/Contrib/CCCS/Trigonometry/09.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_2_6.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -41,8 +41,8 @@ Context()->flags->set( Parser::Number::NoDecimals; $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -53,14 +53,14 @@ $n = random(1,4,1); if ($n == 1){ $ans = Compute("(sqrt(6)+sqrt(2))/4"); - ########################### + ########################### # Main text BEGIN_PGML Find the exact value. - [`` \sin\left(\frac{7\pi}{12}\right) = ``] [_______________]{$ans} [@ - AnswerFormatHelp("numbers") @]* + [`` \sin\left(\frac{7\pi}{12}\right) = ``] [_______________]{$ans} [@ + helpLink("numbers") @]* [$video]* @@ -76,14 +76,14 @@ END_TEXT if ($n == 2){ $ans = Compute("(sqrt(6)+sqrt(2))/4"); - ########################### + ########################### # Main text BEGIN_PGML Find the exact value. - [`` \sin\left(\frac{5\pi}{12}\right) = ``] [_______________]{$ans} [@ - AnswerFormatHelp("numbers") @]* + [`` \sin\left(\frac{5\pi}{12}\right) = ``] [_______________]{$ans} [@ + helpLink("numbers") @]* [$video]* @@ -98,14 +98,14 @@ END_TEXT if ($n == 3){ $ans = Compute("(sqrt(6)-sqrt(2))/4"); - ########################### + ########################### # Main text BEGIN_PGML Find the exact value. - [`` \sin\left(\frac{11\pi}{12}\right) = ``] [_______________]{$ans} [@ - AnswerFormatHelp("numbers") @]* + [`` \sin\left(\frac{11\pi}{12}\right) = ``] [_______________]{$ans} [@ + helpLink("numbers") @]* [$video]* @@ -120,14 +120,14 @@ END_TEXT if ($n == 4){ $ans = Compute("(sqrt(2)-sqrt(6))/4"); - ########################### + ########################### # Main text BEGIN_PGML Find the exact value. - [`` \sin\left(\frac{13\pi}{12}\right) = ``] [_______________]{$ans} [@ - AnswerFormatHelp("numbers") @]* + [`` \sin\left(\frac{13\pi}{12}\right) = ``] [_______________]{$ans} [@ + helpLink("numbers") @]* [$video]* diff --git a/Contrib/CCCS/Trigonometry/09.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_2_7.pg b/Contrib/CCCS/Trigonometry/09.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_2_7.pg index 53f091ad54..e16bc83d57 100644 --- a/Contrib/CCCS/Trigonometry/09.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_2_7.pg +++ b/Contrib/CCCS/Trigonometry/09.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_2_7.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -45,14 +45,14 @@ $n = random(1,4,1); if ($n == 1){ $ans = Compute("(sqrt(6)-sqrt(2))/4"); - ########################### + ########################### # Main text BEGIN_PGML Find the exact value. - [`` \sin\left(\frac{\pi}{12}\right) = ``] [_______________]{$ans} [@ - AnswerFormatHelp("numbers") @]* + [`` \sin\left(\frac{\pi}{12}\right) = ``] [_______________]{$ans} [@ + helpLink("numbers") @]* END_PGML } @@ -60,42 +60,42 @@ if ($n == 1){ if ($n == 2){ $ans = Compute("(-sqrt(6)-sqrt(2))/4"); - ########################### + ########################### # Main text BEGIN_PGML Find the exact value. - [`` \sin\left(\frac{17\pi}{12}\right) = ``] [_______________]{$ans} [@ - AnswerFormatHelp("numbers") @]* + [`` \sin\left(\frac{17\pi}{12}\right) = ``] [_______________]{$ans} [@ + helpLink("numbers") @]* END_PGML } if ($n == 3){ $ans = Compute("(-sqrt(6)-sqrt(2))/4"); - ########################### + ########################### # Main text BEGIN_PGML Find the exact value. - [`` \sin\left(\frac{19\pi}{12}\right) = ``] [_______________]{$ans} [@ - AnswerFormatHelp("numbers") @]* + [`` \sin\left(\frac{19\pi}{12}\right) = ``] [_______________]{$ans} [@ + helpLink("numbers") @]* END_PGML } if ($n == 4){ $ans = Compute("(sqrt(2)-sqrt(6))/4"); - ########################### + ########################### # Main text BEGIN_PGML Find the exact value. - [`` \sin\left(-\frac{\pi}{12}\right) = ``] [_______________]{$ans} [@ - AnswerFormatHelp("numbers") @]* + [`` \sin\left(-\frac{\pi}{12}\right) = ``] [_______________]{$ans} [@ + helpLink("numbers") @]* END_PGML } diff --git a/Contrib/CCCS/Trigonometry/09.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_2_8.pg b/Contrib/CCCS/Trigonometry/09.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_2_8.pg index 0e38789646..7c7a653636 100644 --- a/Contrib/CCCS/Trigonometry/09.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_2_8.pg +++ b/Contrib/CCCS/Trigonometry/09.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_2_8.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -41,8 +41,8 @@ Context()->flags->set( Parser::Number::NoDecimals; $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -52,14 +52,14 @@ $n = random(1,4,1); if ($n == 1){ $ans = Compute("(sqrt(3)+1)/(1-sqrt(3))"); - ########################### + ########################### # Main text BEGIN_PGML Find the exact value. - [`` \tan\left(\frac{7\pi}{12}\right) = ``] [______________________]{$ans} [@ - AnswerFormatHelp("numbers") @]* + [`` \tan\left(\frac{7\pi}{12}\right) = ``] [______________________]{$ans} [@ + helpLink("numbers") @]* [$video]* @@ -75,14 +75,14 @@ END_TEXT if ($n == 2){ $ans = Compute("(sqrt(3)+1)/(sqrt(3)-1)"); - ########################### + ########################### # Main text BEGIN_PGML Find the exact value. - [`` \tan\left(\frac{5\pi}{12}\right) = ``] [______________________]{$ans} [@ - AnswerFormatHelp("numbers") @]* + [`` \tan\left(\frac{5\pi}{12}\right) = ``] [______________________]{$ans} [@ + helpLink("numbers") @]* [$video]* @@ -98,14 +98,14 @@ END_TEXT if ($n == 3){ $ans = Compute("(-sqrt(3)+1)/(1+sqrt(3))"); - ########################### + ########################### # Main text BEGIN_PGML Find the exact value. - [`` \tan\left(\frac{11\pi}{12}\right) = ``] [______________________]{$ans} [@ - AnswerFormatHelp("numbers") @]* + [`` \tan\left(\frac{11\pi}{12}\right) = ``] [______________________]{$ans} [@ + helpLink("numbers") @]* [$video]* @@ -121,14 +121,14 @@ END_TEXT if ($n == 4){ $ans = Compute("(-1+sqrt(3))/(1+sqrt(3))"); - ########################### + ########################### # Main text BEGIN_PGML Find the exact value. - [`` \tan\left(\frac{13\pi}{12}\right) = ``] [______________________]{$ans} [@ - AnswerFormatHelp("numbers") @]* + [`` \tan\left(\frac{13\pi}{12}\right) = ``] [______________________]{$ans} [@ + helpLink("numbers") @]* [$video]* diff --git a/Contrib/CCCS/Trigonometry/09.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_2_9.pg b/Contrib/CCCS/Trigonometry/09.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_2_9.pg index 3fe0aa43e0..8b9839119a 100644 --- a/Contrib/CCCS/Trigonometry/09.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_2_9.pg +++ b/Contrib/CCCS/Trigonometry/09.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_2_9.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -45,14 +45,14 @@ $n = random(1,4,1); if ($n == 1){ $ans = Compute("(sqrt(3)-1)/(1+sqrt(3))"); - ########################### + ########################### # Main text BEGIN_PGML Find the exact value. - [`` \tan\left(\frac{\pi}{12}\right) = ``] [_________________________]{$ans} [@ - AnswerFormatHelp("numbers") @]* + [`` \tan\left(\frac{\pi}{12}\right) = ``] [_________________________]{$ans} [@ + helpLink("numbers") @]* END_PGML } @@ -60,42 +60,42 @@ if ($n == 1){ if ($n == 2){ $ans = Compute("(-sqrt(3)-1)/(1-sqrt(3))"); - ########################### + ########################### # Main text BEGIN_PGML Find the exact value. - [`` \tan\left(\frac{17\pi}{12}\right) = ``] [_________________________]{$ans} [@ - AnswerFormatHelp("numbers") @]* + [`` \tan\left(\frac{17\pi}{12}\right) = ``] [_________________________]{$ans} [@ + helpLink("numbers") @]* END_PGML } if ($n == 3){ $ans = Compute("(-sqrt(3)-1)/(sqrt(3)-1)"); - ########################### + ########################### # Main text BEGIN_PGML Find the exact value. - [`` \tan\left(\frac{19\pi}{12}\right) = ``] [_________________________]{$ans} [@ - AnswerFormatHelp("numbers") @]* + [`` \tan\left(\frac{19\pi}{12}\right) = ``] [_________________________]{$ans} [@ + helpLink("numbers") @]* END_PGML } if ($n == 4){ $ans = Compute("(1-sqrt(3))/(sqrt(3)+1)"); - ########################### + ########################### # Main text BEGIN_PGML Find the exact value. - [`` \tan\left(-\frac{\pi}{12}\right) = ``] [_________________________]{$ans} [@ - AnswerFormatHelp("numbers") @]* + [`` \tan\left(-\frac{\pi}{12}\right) = ``] [_________________________]{$ans} [@ + helpLink("numbers") @]* END_PGML } diff --git a/Contrib/CCCS/Trigonometry/09.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_3_13.pg b/Contrib/CCCS/Trigonometry/09.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_3_13.pg index 1bb58fdb7c..d1e34bd4b5 100644 --- a/Contrib/CCCS/Trigonometry/09.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_3_13.pg +++ b/Contrib/CCCS/Trigonometry/09.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_3_13.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -45,14 +45,14 @@ $n = random(1,4,1); if ($n == 1){ $ans = Compute("sqrt(2-sqrt(3))/2"); - ########################### + ########################### # Main text BEGIN_PGML Find the exact value of the following expression. - [`` \sin\left(\frac{\pi}{12}\right) = ``] [_______________]{$ans} [@ - AnswerFormatHelp("numbers") @]* + [`` \sin\left(\frac{\pi}{12}\right) = ``] [_______________]{$ans} [@ + helpLink("numbers") @]* END_PGML } @@ -60,42 +60,42 @@ if ($n == 1){ if ($n == 2){ $ans = Compute("sqrt(2-sqrt(2))/2"); - ########################### + ########################### # Main text BEGIN_PGML Find the exact value of the following expression. - [`` \sin\left(\frac{\pi}{8}\right) = ``] [_______________]{$ans} [@ - AnswerFormatHelp("numbers") @]* + [`` \sin\left(\frac{\pi}{8}\right) = ``] [_______________]{$ans} [@ + helpLink("numbers") @]* END_PGML } if ($n == 3){ $ans = Compute("sqrt(2+sqrt(2))/2"); - ########################### + ########################### # Main text BEGIN_PGML Find the exact value of the following expression. - [`` \sin\left(\frac{3\pi}{8}\right) = ``] [_______________]{$ans} [@ - AnswerFormatHelp("numbers") @]* + [`` \sin\left(\frac{3\pi}{8}\right) = ``] [_______________]{$ans} [@ + helpLink("numbers") @]* END_PGML } if ($n == 4){ $ans = Compute("sqrt(2+sqrt(3))/2"); - ########################### + ########################### # Main text BEGIN_PGML Find the exact value of the following expression. - [`` \sin\left(\frac{5\pi}{12}\right) = ``] [_______________]{$ans} [@ - AnswerFormatHelp("numbers") @]* + [`` \sin\left(\frac{5\pi}{12}\right) = ``] [_______________]{$ans} [@ + helpLink("numbers") @]* END_PGML } diff --git a/Contrib/CCCS/Trigonometry/09.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_3_14.pg b/Contrib/CCCS/Trigonometry/09.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_3_14.pg index 09679f7ad7..c1adc560ca 100644 --- a/Contrib/CCCS/Trigonometry/09.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_3_14.pg +++ b/Contrib/CCCS/Trigonometry/09.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_3_14.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -45,14 +45,14 @@ $n = random(1,4,1); if ($n == 1){ $ans = Compute("-sqrt(2+sqrt(3))/2"); - ########################### + ########################### # Main text BEGIN_PGML Find the exact value using the half-angle formulas. - [`` \cos\left(-\frac{11\pi}{12}\right) = ``] [_______________]{$ans} [@ - AnswerFormatHelp("numbers") @]* + [`` \cos\left(-\frac{11\pi}{12}\right) = ``] [_______________]{$ans} [@ + helpLink("numbers") @]* END_PGML } @@ -60,42 +60,42 @@ if ($n == 1){ if ($n == 2){ $ans = Compute("-sqrt(2+sqrt(2))/2"); - ########################### + ########################### # Main text BEGIN_PGML Find the exact value using the half-angle formulas. - [`` \cos\left(-\frac{7\pi}{8}\right) = ``] [_______________]{$ans} [@ - AnswerFormatHelp("numbers") @]* + [`` \cos\left(-\frac{7\pi}{8}\right) = ``] [_______________]{$ans} [@ + helpLink("numbers") @]* END_PGML } if ($n == 3){ $ans = Compute("-sqrt(2-sqrt(2))/2"); - ########################### + ########################### # Main text BEGIN_PGML Find the exact value using the half-angle formulas. - [`` \cos\left(-\frac{5\pi}{8}\right) = ``] [_______________]{$ans} [@ - AnswerFormatHelp("numbers") @]* + [`` \cos\left(-\frac{5\pi}{8}\right) = ``] [_______________]{$ans} [@ + helpLink("numbers") @]* END_PGML } if ($n == 4){ $ans = Compute("-sqrt(2-sqrt(3))/2"); - ########################### + ########################### # Main text BEGIN_PGML Find the exact value using the half-angle formulas. - [`` \cos\left(-\frac{7\pi}{12}\right) = ``] [_______________]{$ans} [@ - AnswerFormatHelp("numbers") @]* + [`` \cos\left(-\frac{7\pi}{12}\right) = ``] [_______________]{$ans} [@ + helpLink("numbers") @]* END_PGML } diff --git a/Contrib/CCCS/Trigonometry/09.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_3_24.pg b/Contrib/CCCS/Trigonometry/09.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_3_24.pg index 616ab0912e..d9559f4411 100644 --- a/Contrib/CCCS/Trigonometry/09.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_3_24.pg +++ b/Contrib/CCCS/Trigonometry/09.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_3_24.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -53,19 +53,19 @@ if ($n == 1){ # Main text BEGIN_PGML - Use the figure below to find the exact values of the following. - >>[@ image("9_3_24.png", - width=>500, - height=>300, - extra_html_tags=>'alt="triangle where angle theta is opposite side of length 5 and angle alpha is opposite of side length 12"') + Use the figure below to find the exact values of the following. + >>[@ image("9_3_24.png", + width=>500, + height=>300, + extra_html_tags=>'alt="triangle where angle theta is opposite side of length 5 and angle alpha is opposite of side length 12"') @]*<< - [` \sin(2\theta) = `] [_______________]{$ans_s} [@ AnswerFormatHelp("numbers") @]* + [` \sin(2\theta) = `] [_______________]{$ans_s} [@ helpLink("numbers") @]* - [` \cos(2\theta) = `] [_______________]{$ans_c} [@ AnswerFormatHelp("numbers") @]* + [` \cos(2\theta) = `] [_______________]{$ans_c} [@ helpLink("numbers") @]* - [` \tan(2\theta) = `] [_______________]{$ans_t} [@ AnswerFormatHelp("numbers") @]* + [` \tan(2\theta) = `] [_______________]{$ans_t} [@ helpLink("numbers") @]* END_PGML } @@ -79,19 +79,19 @@ if ($n == 2){ # Main text BEGIN_PGML - Use the figure below to find the exact values of the following. - >>[@ image("9_3_24.png", - width=>500, - height=>300, - extra_html_tags=>'alt="triangle where angle theta is opposite side of length 5 and angle alpha is opposite of side length 12"') + Use the figure below to find the exact values of the following. + >>[@ image("9_3_24.png", + width=>500, + height=>300, + extra_html_tags=>'alt="triangle where angle theta is opposite side of length 5 and angle alpha is opposite of side length 12"') @]*<< - [` \sin(2\alpha) = `] [_______________]{$ans_s} [@ AnswerFormatHelp("numbers") @]* + [` \sin(2\alpha) = `] [_______________]{$ans_s} [@ helpLink("numbers") @]* - [` \cos(2\alpha) = `] [_______________]{$ans_c} [@ AnswerFormatHelp("numbers") @]* + [` \cos(2\alpha) = `] [_______________]{$ans_c} [@ helpLink("numbers") @]* - [` \tan(2\alpha) = `] [_______________]{$ans_t} [@ AnswerFormatHelp("numbers") @]* + [` \tan(2\alpha) = `] [_______________]{$ans_t} [@ helpLink("numbers") @]* END_PGML } diff --git a/Contrib/CCCS/Trigonometry/09.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_3_5.pg b/Contrib/CCCS/Trigonometry/09.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_3_5.pg index 112ad46e5a..5b2e6c6234 100644 --- a/Contrib/CCCS/Trigonometry/09.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_3_5.pg +++ b/Contrib/CCCS/Trigonometry/09.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_3_5.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -55,11 +55,11 @@ BEGIN_PGML If [``\sin(x)=\frac{1}{[$a]}``] and [`x`] is in quadrant I, find the exact values of the following without solving for [`x`]: -[` \sin(2x) = `] [____________________]{$ans_s} [@ AnswerFormatHelp("numbers") @]* +[` \sin(2x) = `] [____________________]{$ans_s} [@ helpLink("numbers") @]* -[` \cos(2x) = `] [____________________]{$ans_c} [@ AnswerFormatHelp("numbers") @]* +[` \cos(2x) = `] [____________________]{$ans_c} [@ helpLink("numbers") @]* -[` \tan(2x) = `] [____________________]{$ans_t} [@ AnswerFormatHelp("numbers") @]* +[` \tan(2x) = `] [____________________]{$ans_t} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/09.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_3_7.pg b/Contrib/CCCS/Trigonometry/09.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_3_7.pg index f01fc928f4..d402617f8f 100644 --- a/Contrib/CCCS/Trigonometry/09.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_3_7.pg +++ b/Contrib/CCCS/Trigonometry/09.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_3_7.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -55,11 +55,11 @@ BEGIN_PGML If [``\cos(x)=-\frac{1}{[$a]}``] and [`x`] is in quadrant III, find the exact values of the following without solving for [`x`]: -[` \sin(2x) = `] [_______________]{$ans_s} [@ AnswerFormatHelp("numbers") @]* +[` \sin(2x) = `] [_______________]{$ans_s} [@ helpLink("numbers") @]* -[` \cos(2x) = `] [_______________]{$ans_c} [@ AnswerFormatHelp("numbers") @]* +[` \cos(2x) = `] [_______________]{$ans_c} [@ helpLink("numbers") @]* -[` \tan(2x) = `] [_______________]{$ans_t} [@ AnswerFormatHelp("numbers") @]* +[` \tan(2x) = `] [_______________]{$ans_t} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/09.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_3_9.pg b/Contrib/CCCS/Trigonometry/09.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_3_9.pg index 652d96cee0..d749dad633 100644 --- a/Contrib/CCCS/Trigonometry/09.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_3_9.pg +++ b/Contrib/CCCS/Trigonometry/09.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_3_9.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -63,17 +63,17 @@ Find the values of the six trigonometric functions evaluated at [`\theta`] if th [``\cos(2\theta)=\frac{[$a]}{[$b]}``] and [`90^\circ \leq \theta \leq 180^\circ`] -[` \sin(\theta) = `] [_______________]{$ans_s} [@ AnswerFormatHelp("numbers") @]* +[` \sin(\theta) = `] [_______________]{$ans_s} [@ helpLink("numbers") @]* -[` \cos(\theta) = `] [_______________]{$ans_c} [@ AnswerFormatHelp("numbers") @]* +[` \cos(\theta) = `] [_______________]{$ans_c} [@ helpLink("numbers") @]* -[` \tan(\theta) = `] [_______________]{$ans_t} [@ AnswerFormatHelp("numbers") @]* +[` \tan(\theta) = `] [_______________]{$ans_t} [@ helpLink("numbers") @]* -[` \sec(\theta) = `] [_______________]{$ans_sec} [@ AnswerFormatHelp("numbers") @]* +[` \sec(\theta) = `] [_______________]{$ans_sec} [@ helpLink("numbers") @]* -[` \csc(\theta) = `] [_______________]{$ans_csc} [@ AnswerFormatHelp("numbers") @]* +[` \csc(\theta) = `] [_______________]{$ans_csc} [@ helpLink("numbers") @]* -[` \cot(\theta) = `] [_______________]{$ans_cot} [@ AnswerFormatHelp("numbers") @]* +[` \cot(\theta) = `] [_______________]{$ans_cot} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_10.pg b/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_10.pg index f4c0684a22..6dd8979eb8 100644 --- a/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_10.pg +++ b/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_10.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,12 +51,12 @@ if ($n ==1){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` 0 \leq x < 2\pi `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` 0 \leq x < 2\pi `]. If there is more than one answer, enter them as a comma separated list. [`` \cot(x)+\frac{1}{\sqrt{3}} = 0``] - [` x = `] [_______________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` x = `] [_______________]{$ans} [@ helpLink("angles") @]* END_PGML } @@ -67,12 +67,12 @@ if ($n ==2){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` 0 \leq x < 2\pi `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` 0 \leq x < 2\pi `]. If there is more than one answer, enter them as a comma separated list. [` \cot(x) + 1= 0`] - [` x = `] [_______________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` x = `] [_______________]{$ans} [@ helpLink("angles") @]* END_PGML } @@ -83,12 +83,12 @@ if ($n ==3){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` 0 \leq x < 2\pi `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` 0 \leq x < 2\pi `]. If there is more than one answer, enter them as a comma separated list. [` \cot(x) +\sqrt{3} = 0`] - [` x = `] [_______________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` x = `] [_______________]{$ans} [@ helpLink("angles") @]* END_PGML } diff --git a/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_100.pg b/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_100.pg index e0c042fcf0..4338254907 100644 --- a/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_100.pg +++ b/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_100.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -52,7 +52,7 @@ BEGIN_PGML A [`[$a]`] foot tall building has a shadow that is [`[$b]`] feet long. What is the angle of elevation of the sun? Round answer to the nearest tenth of a degree. -[_________________]{$ans} [@ AnswerFormatHelp("angles") @]* +[_________________]{$ans} [@ helpLink("angles") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_103.pg b/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_103.pg index 459d00dbf3..a06cf4abaf 100644 --- a/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_103.pg +++ b/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_103.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -54,7 +54,7 @@ BEGIN_PGML A spotlight on the ground is [`[$a]`] feet from a [`[$b]`] foot tall woman casts a [`[$c]`] foot tall shadow on a wall [`[$d]`] feet from the woman. At what angle of elevation is the light? Round answers to the nearest tenth of a degree. -[_________________]{$ans} [@ AnswerFormatHelp("angles") @]* +[_________________]{$ans} [@ helpLink("angles") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_11.pg b/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_11.pg index cfbc90f3df..a3380950be 100644 --- a/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_11.pg +++ b/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_11.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -53,12 +53,12 @@ if ($n ==1){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` 0 \leq x < 2\pi `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` 0 \leq x < 2\pi `]. If there is more than one answer, enter them as a comma separated list. [` [$b]\sin^2(x)-[$a]=0`] - [` x = `] [___________________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` x = `] [___________________]{$ans} [@ helpLink("angles") @]* END_PGML } @@ -71,12 +71,12 @@ if ($n ==2){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` 0 \leq x < 2\pi `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` 0 \leq x < 2\pi `]. If there is more than one answer, enter them as a comma separated list. [` [$b]\sin^2(x)-[$a]=0`] - [` x = `] [___________________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` x = `] [___________________]{$ans} [@ helpLink("angles") @]* END_PGML } @@ -87,12 +87,12 @@ if ($n ==3){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` 0 \leq x < 2\pi `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` 0 \leq x < 2\pi `]. If there is more than one answer, enter them as a comma separated list. [` 4\sin^2(x)-3=0`] - [` x = `] [___________________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` x = `] [___________________]{$ans} [@ helpLink("angles") @]* END_PGML } diff --git a/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_12.pg b/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_12.pg index 2daca06700..4e5e22e3af 100644 --- a/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_12.pg +++ b/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_12.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,12 +51,12 @@ if ($n ==1){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` 0 \leq x < 2\pi `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` 0 \leq x < 2\pi `]. If there is more than one answer, enter them as a comma separated list. [` \csc^2(x)-4=0`] - [` x = `] [_____________________________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` x = `] [_____________________________]{$ans} [@ helpLink("angles") @]* END_PGML } @@ -69,12 +69,12 @@ if ($n ==2){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` 0 \leq x < 2\pi `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` 0 \leq x < 2\pi `]. If there is more than one answer, enter them as a comma separated list. [` \csc^2(x)-2=0`] - [` x = `] [_____________________________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` x = `] [_____________________________]{$ans} [@ helpLink("angles") @]* END_PGML } @@ -85,12 +85,12 @@ if ($n ==3){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` 0 \leq x < 2\pi `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` 0 \leq x < 2\pi `]. If there is more than one answer, enter them as a comma separated list. [` 3\csc^2(x)-4=0`] - [` x = `] [_____________________________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` x = `] [_____________________________]{$ans} [@ helpLink("angles") @]* END_PGML } diff --git a/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_17.pg b/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_17.pg index ebc5cfb5fa..0cd1d488cb 100644 --- a/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_17.pg +++ b/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_17.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -45,8 +45,8 @@ $showPartialCorrectAnswers = 1; # random integer to choose which problem student gets $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -59,12 +59,12 @@ if ($n ==1){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. [` 2 \sin(3\theta) = 1`] - [` \theta = `] [______________________________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` \theta = `] [______________________________]{$ans} [@ helpLink("angles") @]* [$video]* END_PGML @@ -82,12 +82,12 @@ if ($n ==2){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. [` 2 \sin(3\theta) = \sqrt{2}`] - [` \theta = `] [______________________________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` \theta = `] [______________________________]{$ans} [@ helpLink("angles") @]* [$video]* END_PGML @@ -105,12 +105,12 @@ if ($n ==3){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. [` 2 \sin(3\theta) = \sqrt{3}`] - [` \theta = `] [______________________________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` \theta = `] [______________________________]{$ans} [@ helpLink("angles") @]* [$video]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_18.pg b/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_18.pg index af2aeb35c1..4807d2db40 100644 --- a/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_18.pg +++ b/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_18.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,12 +51,12 @@ if ($n ==1){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. [` 2 \sin(2\theta) = -1`] - [` \theta = `] [______________________________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` \theta = `] [______________________________]{$ans} [@ helpLink("angles") @]* END_PGML } @@ -67,12 +67,12 @@ if ($n ==2){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. [` 2 \sin(2\theta) = -\sqrt{2}`] - [` \theta = `] [______________________________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` \theta = `] [______________________________]{$ans} [@ helpLink("angles") @]* END_PGML } @@ -83,12 +83,12 @@ if ($n ==3){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. [` 2 \sin(2\theta) = -\sqrt{3}`] - [` \theta = `] [______________________________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` \theta = `] [______________________________]{$ans} [@ helpLink("angles") @]* END_PGML } diff --git a/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_19.pg b/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_19.pg index e085a27281..0a74c0d105 100644 --- a/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_19.pg +++ b/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_19.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,12 +51,12 @@ if ($n ==1){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. [` 2 \cos(3\theta) = -1`] - [` \theta = `] [______________________________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` \theta = `] [______________________________]{$ans} [@ helpLink("angles") @]* END_PGML } @@ -67,12 +67,12 @@ if ($n ==2){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. [` 2 \cos(3\theta) = -\sqrt{2}`] - [` \theta = `] [______________________________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` \theta = `] [______________________________]{$ans} [@ helpLink("angles") @]* END_PGML } @@ -83,12 +83,12 @@ if ($n ==3){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. [` 2 \cos(3\theta) = -\sqrt{3}`] - [` \theta = `] [______________________________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` \theta = `] [______________________________]{$ans} [@ helpLink("angles") @]* END_PGML } diff --git a/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_20.pg b/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_20.pg index 0d50038349..a29c253bf1 100644 --- a/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_20.pg +++ b/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_20.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,12 +51,12 @@ if ($n ==1){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. [`` \cos(2\theta) = \frac{1}{2}``] - [` \theta = `] [______________________________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` \theta = `] [______________________________]{$ans} [@ helpLink("angles") @]* END_PGML } @@ -67,12 +67,12 @@ if ($n ==2){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. [`` \cos(2\theta) = \frac{\sqrt{2}}{2}``] - [` \theta = `] [______________________________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` \theta = `] [______________________________]{$ans} [@ helpLink("angles") @]* END_PGML } @@ -83,12 +83,12 @@ if ($n ==3){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. [`` \cos(2\theta) = \frac{\sqrt{3}}{2}``] - [` \theta = `] [______________________________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` \theta = `] [______________________________]{$ans} [@ helpLink("angles") @]* END_PGML } diff --git a/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_25.pg b/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_25.pg index 43a000c6ec..ef0a788c1e 100644 --- a/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_25.pg +++ b/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_25.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -44,8 +44,8 @@ Parser::Number::NoDecimals; $showPartialCorrectAnswers = 1; $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -59,12 +59,12 @@ if ($n ==1){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` [0, 2\pi) `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` [0, 2\pi) `]. If there is more than one answer, enter them as a comma separated list. [` 2\cos^2(t)+\cos(t)=1 `] - [` t = `] [_______________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` t = `] [_______________]{$ans} [@ helpLink("angles") @]* [$video]* END_PGML @@ -82,12 +82,12 @@ if ($n ==2){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` [0, 2\pi) `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` [0, 2\pi) `]. If there is more than one answer, enter them as a comma separated list. [` 2\cos^2(t)-\cos(t) = 1 `] - [` t = `] [_______________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` t = `] [_______________]{$ans} [@ helpLink("angles") @]* [$video]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_26.pg b/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_26.pg index 42e85185e3..69c085d620 100644 --- a/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_26.pg +++ b/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_26.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,12 +51,12 @@ if ($n ==1){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` [0, 2\pi) `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` [0, 2\pi) `]. If there is more than one answer, enter them as a comma separated list. [` 2\tan^2(t)=3\sec(t) `] - [` t = `] [_______________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` t = `] [_______________]{$ans} [@ helpLink("angles") @]* END_PGML } @@ -67,12 +67,12 @@ if ($n ==2){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` [0, 2\pi) `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` [0, 2\pi) `]. If there is more than one answer, enter them as a comma separated list. [` 2\tan^2(t)=-3\sec(t) `] - [` t = `] [_______________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` t = `] [_______________]{$ans} [@ helpLink("angles") @]* END_PGML } diff --git a/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_28.pg b/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_28.pg index e8c082ffd3..e1d6a1471f 100644 --- a/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_28.pg +++ b/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_28.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,12 +51,12 @@ if ($n ==1){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` [0, 360^\circ) `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` [0, 360^\circ) `]. If there is more than one answer, enter them as a comma separated list. [`` \cos^2(\theta)=\frac{3}{4} ``] - [` \theta = `] [_________________________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` \theta = `] [_________________________]{$ans} [@ helpLink("angles") @]* END_PGML } @@ -67,12 +67,12 @@ if ($n ==2){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` [0, 360^\circ) `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` [0, 360^\circ) `]. If there is more than one answer, enter them as a comma separated list. [`` \cos^2(\theta)=\frac{1}{2} ``] - [` \theta = `] [_________________________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` \theta = `] [_________________________]{$ans} [@ helpLink("angles") @]* END_PGML } @@ -83,12 +83,12 @@ if ($n ==3){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` [0, 360^\circ) `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` [0, 360^\circ) `]. If there is more than one answer, enter them as a comma separated list. [`` \cos^2(\theta)=\frac{1}{4} ``] - [` \theta = `] [_________________________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` \theta = `] [_________________________]{$ans} [@ helpLink("angles") @]* END_PGML } diff --git a/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_30.pg b/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_30.pg index e8a08b6dce..c87eb557c4 100644 --- a/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_30.pg +++ b/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_30.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,12 +51,12 @@ if ($n ==1){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` [0, 360^\circ) `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` [0, 360^\circ) `]. If there is more than one answer, enter them as a comma separated list. [` \tan^2(x)=-1+2\tan(-x) `] - [` x = `] [_______________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` x = `] [_______________]{$ans} [@ helpLink("angles") @]* END_PGML } @@ -67,12 +67,12 @@ if ($n ==2){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` [0, 360^\circ) `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` [0, 360^\circ) `]. If there is more than one answer, enter them as a comma separated list. [` \tan^2(x)=-1-2\tan(-x) `] - [` x = `] [_______________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` x = `] [_______________]{$ans} [@ helpLink("angles") @]* END_PGML } diff --git a/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_31.pg b/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_31.pg index f9f1dfef65..36def6d7b3 100644 --- a/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_31.pg +++ b/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_31.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,12 +51,12 @@ if ($n ==1){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` [0, 2\pi) `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` [0, 2\pi) `]. If there is more than one answer, enter them as a comma separated list. [` 4\sin^2(x)+6\sin(x)+2=0 `] - [` x = `] [_______________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` x = `] [_______________]{$ans} [@ helpLink("angles") @]* END_PGML } @@ -67,12 +67,12 @@ if ($n ==2){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` [0, 2\pi) `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` [0, 2\pi) `]. If there is more than one answer, enter them as a comma separated list. [` 4\sin^2(x)+2\sin(x)-2=0 `] - [` x = `] [_______________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` x = `] [_______________]{$ans} [@ helpLink("angles") @]* END_PGML } diff --git a/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_36.pg b/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_36.pg index d0d4d27290..35cb6b1d68 100644 --- a/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_36.pg +++ b/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_36.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -58,7 +58,7 @@ Find all exact solutions on the interval [` [0, 2\pi) `]. If there is more than [` [$f]=0 `] -[` t = `] [____________________________________________]{$ans} [@ AnswerFormatHelp("angles") @]* +[` t = `] [____________________________________________]{$ans} [@ helpLink("angles") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_37.pg b/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_37.pg index a05b783290..f0e621c78c 100644 --- a/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_37.pg +++ b/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_37.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -61,7 +61,7 @@ Find all exact solutions on the interval [` [0, 2\pi) `]. If there is more than [` [$f]=[$g] `] -[` t = `] [____________________________________________]{$ans} [@ AnswerFormatHelp("angles") @]* +[` t = `] [____________________________________________]{$ans} [@ helpLink("angles") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_38.pg b/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_38.pg index 37b3e51658..dd45b0f7cc 100644 --- a/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_38.pg +++ b/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_38.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -53,12 +53,12 @@ $ans = Compute("pi/2, 3pi/2, pi/6, 5pi/6"); # Main text BEGIN_PGML -Find all exact solutions on the interval [` [0, 2\pi) `]. If there is more than one answer, enter them as a comma separated list. +Find all exact solutions on the interval [` [0, 2\pi) `]. If there is more than one answer, enter them as a comma separated list. [` [$f]=[$g] `] -[` t = `] [_______________________]{$ans} [@ AnswerFormatHelp("angles") @]* +[` t = `] [_______________________]{$ans} [@ helpLink("angles") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_39.pg b/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_39.pg index 5ecc1871d3..c51193c5e4 100644 --- a/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_39.pg +++ b/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_39.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -53,12 +53,12 @@ $ans = Compute("3pi/2, pi/6, 5pi/6"); # Main text BEGIN_PGML -Find all exact solutions on the interval [` [0, 2\pi) `]. If there is more than one answer, enter them as a comma separated list. +Find all exact solutions on the interval [` [0, 2\pi) `]. If there is more than one answer, enter them as a comma separated list. [` [$f]=[$g] `] -[` t = `] [________________________]{$ans} [@ AnswerFormatHelp("angles") @]* +[` t = `] [________________________]{$ans} [@ helpLink("angles") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_4.pg b/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_4.pg index a935aa2012..3ccd66bd7a 100644 --- a/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_4.pg +++ b/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_4.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -46,8 +46,8 @@ $showPartialCorrectAnswers = 1; $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -60,12 +60,12 @@ if ($n ==1){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. [` 2 \sin(\theta) = -1`] - [` \theta = `] [_______________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` \theta = `] [_______________]{$ans} [@ helpLink("angles") @]* [$video]* END_PGML @@ -83,12 +83,12 @@ if ($n ==2){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. [` 2 \sin(\theta) = - \sqrt{2}`] - [` \theta = `] [_______________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` \theta = `] [_______________]{$ans} [@ helpLink("angles") @]* [$video]* END_PGML @@ -106,12 +106,12 @@ if ($n ==3){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. [` 2 \sin(\theta) = - \sqrt{3}`] - [` \theta = `] [_______________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` \theta = `] [_______________]{$ans} [@ helpLink("angles") @]* [$video]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_41.pg b/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_41.pg index b4fd74d4e4..066684e70e 100644 --- a/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_41.pg +++ b/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_41.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -56,7 +56,7 @@ if ($n ==1){ [` \tan^2(x)-\sqrt{3}\tan(x)=0 `] - [` x = `] [_______________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` x = `] [_______________]{$ans} [@ helpLink("angles") @]* END_PGML } @@ -72,7 +72,7 @@ if ($n ==2){ [` \tan^2(x)-\tan(x)=0 `] - [` x = `] [_______________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` x = `] [_______________]{$ans} [@ helpLink("angles") @]* END_PGML } diff --git a/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_42.pg b/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_42.pg index 89cf8c7e29..aba92201f9 100644 --- a/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_42.pg +++ b/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_42.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -59,7 +59,7 @@ if ($n ==1){ [` [$f]=0 `] - [` x = `] [_______________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` x = `] [_______________]{$ans} [@ helpLink("angles") @]* END_PGML } @@ -77,7 +77,7 @@ if ($n ==2){ [` [$f]=0 `] - [` x = `] [_______________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` x = `] [_______________]{$ans} [@ helpLink("angles") @]* END_PGML } diff --git a/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_45.pg b/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_45.pg index 7c60779c89..869210d483 100644 --- a/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_45.pg +++ b/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_45.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -84,7 +84,7 @@ Find all exact solutions on the interval [` [0, 2\pi) `]. If there is more than [` [$f]=0 `] -[` x = `] [___________________________________________]{$ans} [@ AnswerFormatHelp("angles") @]* +[` x = `] [___________________________________________]{$ans} [@ helpLink("angles") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_46.pg b/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_46.pg index 5cdca3226c..622f47db43 100644 --- a/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_46.pg +++ b/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_46.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -91,7 +91,7 @@ Find all exact solutions on the interval [` [0, 2\pi) `]. If there is more than [` [$f]=0 `] -[` x = `] [__________________________________________________________________________]{$ans} [@ AnswerFormatHelp("angles") @]* +[` x = `] [__________________________________________________________________________]{$ans} [@ helpLink("angles") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_5.pg b/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_5.pg index ce2d4aac50..0d475eba76 100644 --- a/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_5.pg +++ b/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_5.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,12 +51,12 @@ if ($n ==1){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. [` 2 \sin(\theta) = 1`] - [` \theta = `] [_______________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` \theta = `] [_______________]{$ans} [@ helpLink("angles") @]* END_PGML } @@ -67,12 +67,12 @@ if ($n ==2){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. [` 2 \sin(\theta) = \sqrt{2}`] - [` \theta = `] [_______________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` \theta = `] [_______________]{$ans} [@ helpLink("angles") @]* END_PGML } @@ -83,12 +83,12 @@ if ($n ==3){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. [` 2 \sin(\theta) = \sqrt{3}`] - [` \theta = `] [_______________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` \theta = `] [_______________]{$ans} [@ helpLink("angles") @]* END_PGML } diff --git a/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_6.pg b/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_6.pg index af495348cd..b83a9fe2cf 100644 --- a/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_6.pg +++ b/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_6.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,12 +51,12 @@ if ($n ==1){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. [` 2 \cos(\theta) = \sqrt{3}`] - [` \theta = `] [_______________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` \theta = `] [_______________]{$ans} [@ helpLink("angles") @]* END_PGML } @@ -67,12 +67,12 @@ if ($n ==2){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. [` 2 \cos(\theta) = \sqrt{2}`] - [` \theta = `] [_______________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` \theta = `] [_______________]{$ans} [@ helpLink("angles") @]* END_PGML } @@ -83,12 +83,12 @@ if ($n ==3){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` 0 \leq \theta < 2\pi `]. If there is more than one answer, enter them as a comma separated list. [` 2 \cos(\theta) = 1`] - [` \theta = `] [_______________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` \theta = `] [_______________]{$ans} [@ helpLink("angles") @]* END_PGML } diff --git a/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_7.pg b/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_7.pg index 585edabfd0..099238f6fb 100644 --- a/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_7.pg +++ b/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_7.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,12 +51,12 @@ if ($n ==1){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` 0 \leq \theta < 360^\circ `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` 0 \leq \theta < 360^\circ `]. If there is more than one answer, enter them as a comma separated list. [` 2 \cos(\theta) = -1`] - [` \theta = `] [_______________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` \theta = `] [_______________]{$ans} [@ helpLink("angles") @]* END_PGML } @@ -67,12 +67,12 @@ if ($n ==2){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` 0 \leq \theta < 360^\circ `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` 0 \leq \theta < 360^\circ `]. If there is more than one answer, enter them as a comma separated list. [` 2 \cos(\theta) = -\sqrt{2}`] - [` \theta = `] [_______________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` \theta = `] [_______________]{$ans} [@ helpLink("angles") @]* END_PGML } @@ -83,12 +83,12 @@ if ($n ==3){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` 0 \leq \theta < 360^\circ `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` 0 \leq \theta < 360^\circ `]. If there is more than one answer, enter them as a comma separated list. [` 2 \cos(\theta) = -\sqrt{3}`] - [` \theta = `] [_______________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` \theta = `] [_______________]{$ans} [@ helpLink("angles") @]* END_PGML } diff --git a/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_8.pg b/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_8.pg index 49c6757c2c..20108e33eb 100644 --- a/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_8.pg +++ b/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_8.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,12 +51,12 @@ if ($n ==1){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` 0 \leq \theta < 360^\circ `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` 0 \leq \theta < 360^\circ `]. If there is more than one answer, enter them as a comma separated list. [` \tan(\theta) = \sqrt{3}`] - [` \theta = `] [_______________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` \theta = `] [_______________]{$ans} [@ helpLink("angles") @]* END_PGML } @@ -67,12 +67,12 @@ if ($n ==2){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` 0 \leq \theta < 360^\circ `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` 0 \leq \theta < 360^\circ `]. If there is more than one answer, enter them as a comma separated list. [` \tan(\theta) = 1`] - [` \theta = `] [_______________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` \theta = `] [_______________]{$ans} [@ helpLink("angles") @]* END_PGML } @@ -83,12 +83,12 @@ if ($n ==3){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` 0 \leq \theta < 360^\circ `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` 0 \leq \theta < 360^\circ `]. If there is more than one answer, enter them as a comma separated list. [` \sqrt{3} \tan(\theta) = 1`] - [` \theta = `] [_______________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` \theta = `] [_______________]{$ans} [@ helpLink("angles") @]* END_PGML } diff --git a/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_9.pg b/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_9.pg index 94bbe9afb2..65f375fc4a 100644 --- a/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_9.pg +++ b/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_9.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,12 +51,12 @@ if ($n ==1){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` 0 \leq x < 360^\circ `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` 0 \leq x < 360^\circ `]. If there is more than one answer, enter them as a comma separated list. [` \tan(x) = -\sqrt{3}`] - [` x = `] [_______________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` x = `] [_______________]{$ans} [@ helpLink("angles") @]* END_PGML } @@ -67,12 +67,12 @@ if ($n ==2){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` 0 \leq x < 360^\circ `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` 0 \leq x < 360^\circ `]. If there is more than one answer, enter them as a comma separated list. [` \tan(x) = -1`] - [` x = `] [_______________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` x = `] [_______________]{$ans} [@ helpLink("angles") @]* END_PGML } @@ -83,12 +83,12 @@ if ($n ==3){ # Main text BEGIN_PGML - Find all exact solutions on the interval [` 0 \leq x < 360^\circ `]. If there is more than one answer, enter them as a comma separated list. + Find all exact solutions on the interval [` 0 \leq x < 360^\circ `]. If there is more than one answer, enter them as a comma separated list. [` \sqrt{3} \tan(x) = -1`] - [` x = `] [_______________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` x = `] [_______________]{$ans} [@ helpLink("angles") @]* END_PGML } diff --git a/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_94.pg b/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_94.pg index c736e5b2fb..2b833df8f7 100644 --- a/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_94.pg +++ b/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_94.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -50,7 +50,7 @@ BEGIN_PGML A loading ramp is placed next to a truck. If the ramp rises [`[$a]`] feet over [`[$b]`] feet, what angle, in degrees, does the ramp make with the ground? Round answer to the nearest tenth of a degree. -[_________________]{$ans} [@ AnswerFormatHelp("angles") @]* +[_________________]{$ans} [@ helpLink("angles") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_96.pg b/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_96.pg index c91ad9f6f9..cf1163c8c3 100644 --- a/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_96.pg +++ b/Contrib/CCCS/Trigonometry/09.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_9_5_96.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -50,7 +50,7 @@ BEGIN_PGML A woman is watching a launched rocket currently [`[$a]`] miles in altitude. If she is standing [`[$b]`] miles from the launch pad, at what angle is she looking up from the horizontal? Round answer to the nearest tenth of a degree. -[_________________]{$ans} [@ AnswerFormatHelp("angles") @]* +[_________________]{$ans} [@ helpLink("angles") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_11.pg b/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_11.pg index cee7e9cead..231a6998b4 100644 --- a/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_11.pg +++ b/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_11.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -54,11 +54,11 @@ Context()->flags->set( # Main text BEGIN_PGML -Use the Law of Sines to solve for the missing side for the oblique triangle. Round each answer to the nearest hundredth. Assume that angle [` A `] is opposite side [`a`], angle [` B `] is opposite side [`b`], and angle [` C `] is opposite side [`c`]. +Use the Law of Sines to solve for the missing side for the oblique triangle. Round each answer to the nearest hundredth. Assume that angle [` A `] is opposite side [`a`], angle [` B `] is opposite side [`b`], and angle [` C `] is opposite side [`c`]. -Find side [` b`] where [`A = [$A]^\circ`], [`B=[$B]^\circ`], and [`c=[$c]`]. +Find side [` b`] where [`A = [$A]^\circ`], [`B=[$B]^\circ`], and [`c=[$c]`]. -[` b = `] [_______________]{$ans_b} [@ AnswerFormatHelp("numbers") @]* +[` b = `] [_______________]{$ans_b} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_12.pg b/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_12.pg index 8c1fb3b3ee..39a8b57b18 100644 --- a/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_12.pg +++ b/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_12.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -54,11 +54,11 @@ Context()->flags->set( # Main text BEGIN_PGML -Use the Law of Sines to solve for the missing side for the oblique triangle. Round each answer to the nearest hundredth. Assume that angle [` A `] is opposite side [`a`], angle [` B `] is opposite side [`b`], and angle [` C `] is opposite side [`c`]. +Use the Law of Sines to solve for the missing side for the oblique triangle. Round each answer to the nearest hundredth. Assume that angle [` A `] is opposite side [`a`], angle [` B `] is opposite side [`b`], and angle [` C `] is opposite side [`c`]. -Find side [` a`] where [`A = [$A]^\circ`], [`C=[$C]^\circ`], and [`b=[$b]`]. +Find side [` a`] where [`A = [$A]^\circ`], [`C=[$C]^\circ`], and [`b=[$b]`]. -[` a = `] [_______________]{$ans_a} [@ AnswerFormatHelp("numbers") @]* +[` a = `] [_______________]{$ans_a} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_14.pg b/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_14.pg index 19c8bfbc4a..0ad6b197d9 100644 --- a/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_14.pg +++ b/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_14.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -60,23 +60,23 @@ Context()->flags->set( BEGIN_PGML Assume that angle [` \alpha `] is opposite side [`a`], angle [` \beta `] is opposite side [`b`], and angle [` \gamma `] is opposite side [`c`]. Determine whether there is no triangle, one triangle, or two triangles. Then solve the triangle(s) if possible, round answers to nearest tenth. Put "None" in any unecessary answer blanks. Trigonometric functions used in answer blanks in this question will be evaluated in degrees and angle answers should be entered in degrees.. -[`a = [$a]`], [`b=[$b]`], and [`\alpha=[$Alpha]^\circ`]. +[`a = [$a]`], [`b=[$b]`], and [`\alpha=[$Alpha]^\circ`]. Triangle one: -[` \gamma = `] [_______________]{$ans_Gamma1} [@ AnswerFormatHelp("angles") @]* - -[` \beta = `] [_______________]{$ans_Beta1} [@ AnswerFormatHelp("angles") @]* +[` \gamma = `] [_______________]{$ans_Gamma1} [@ helpLink("angles") @]* + +[` \beta = `] [_______________]{$ans_Beta1} [@ helpLink("angles") @]* -[` c = `] [_______________]{$ans_c1} [@ AnswerFormatHelp("numbers") @]* +[` c = `] [_______________]{$ans_c1} [@ helpLink("numbers") @]* Triangle two: -[` \gamma = `] [_______________]{$ans_Gamma2} [@ AnswerFormatHelp("angles") @]* - -[` \beta = `] [_______________]{$ans_Beta2} [@ AnswerFormatHelp("angles") @]* +[` \gamma = `] [_______________]{$ans_Gamma2} [@ helpLink("angles") @]* + +[` \beta = `] [_______________]{$ans_Beta2} [@ helpLink("angles") @]* -[` c = `] [_______________]{$ans_c2} [@ AnswerFormatHelp("numbers") @]* +[` c = `] [_______________]{$ans_c2} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_17.pg b/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_17.pg index 7a64a7a1c5..f389c2e453 100644 --- a/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_17.pg +++ b/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_17.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -68,25 +68,25 @@ Context()->flags->set( # Main text BEGIN_PGML -Assume that angle [` \alpha `] is opposite side [`a`], angle [` \beta `] is opposite side [`b`], and angle [` \gamma `] is opposite side [`c`]. Determine whether there is no triangle, one triangle, or two triangles. Then solve for all possible triangle(s), rounding answers to nearest tenth. Put "None" in any unnecessary answer blanks. +Assume that angle [` \alpha `] is opposite side [`a`], angle [` \beta `] is opposite side [`b`], and angle [` \gamma `] is opposite side [`c`]. Determine whether there is no triangle, one triangle, or two triangles. Then solve for all possible triangle(s), rounding answers to nearest tenth. Put "None" in any unnecessary answer blanks. -[`a = [$a]`], [`c=[$c]`], and [`\alpha=[$Alpha]^\circ`]. +[`a = [$a]`], [`c=[$c]`], and [`\alpha=[$Alpha]^\circ`]. Triangle one: -[` \gamma = `] [_______________]{$ans_Gamma1} [@ AnswerFormatHelp("angles") @]* - -[` \beta = `] [_______________]{$ans_Beta1} [@ AnswerFormatHelp("angles") @]* +[` \gamma = `] [_______________]{$ans_Gamma1} [@ helpLink("angles") @]* + +[` \beta = `] [_______________]{$ans_Beta1} [@ helpLink("angles") @]* -[` b = `] [_______________]{$ans_b1} [@ AnswerFormatHelp("numbers") @]* +[` b = `] [_______________]{$ans_b1} [@ helpLink("numbers") @]* Triangle two: -[` \gamma = `] [_______________]{$ans_Gamma2} [@ AnswerFormatHelp("angles") @]* - -[` \beta = `] [_______________]{$ans_Beta2} [@ AnswerFormatHelp("angles") @]* +[` \gamma = `] [_______________]{$ans_Gamma2} [@ helpLink("angles") @]* + +[` \beta = `] [_______________]{$ans_Beta2} [@ helpLink("angles") @]* -[` b = `] [_______________]{$ans_b2} [@ AnswerFormatHelp("numbers") @]* +[` b = `] [_______________]{$ans_b2} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_27.pg b/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_27.pg index 307b8e7b2d..302e0b1c4d 100644 --- a/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_27.pg +++ b/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_27.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -52,12 +52,12 @@ Context()->flags->set( # Main text BEGIN_PGML -Find the area of the triangle with the given measurements. Round each answer to the nearest tenth. +Find the area of the triangle with the given measurements. Round each answer to the nearest tenth. [` a = [$a] `], [` c = [$c] `], [` \beta = [$Beta]^\circ `] -Area [` = `] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +Area [` = `] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_28.pg b/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_28.pg index 96fc6dde20..a9324d9139 100644 --- a/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_28.pg +++ b/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_28.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -52,12 +52,12 @@ Context()->flags->set( # Main text BEGIN_PGML -Find the area of the triangle with the given measurements. Round each answer to the nearest tenth. +Find the area of the triangle with the given measurements. Round each answer to the nearest tenth. [` b = [$b] `], [` c = [$c] `], [` \alpha = [$Alpha]^\circ `] -Area [` = `] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +Area [` = `] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_29.pg b/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_29.pg index 3a64d613ab..43afa4e139 100644 --- a/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_29.pg +++ b/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_29.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -52,12 +52,12 @@ Context()->flags->set( # Main text BEGIN_PGML -Find the area of the triangle with the given measurements. Round each answer to the nearest tenth. +Find the area of the triangle with the given measurements. Round each answer to the nearest tenth. [` a = [$a] `], [` b = [$b] `], [` \gamma = [$Gamma]^\circ `] -Area [` = `] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +Area [` = `] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_31.pg b/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_31.pg index 3977bfb2b0..7a5e4b1736 100644 --- a/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_31.pg +++ b/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_31.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -51,7 +51,7 @@ Context()->flags->set( BEGIN_PGML -Find the length of side [` x `], where [` c = [$c]`], [`B = [$B]^\circ`], and [`C= [$C]^\circ`]. Round to the nearest tenth. +Find the length of side [` x `], where [` c = [$c]`], [`B = [$B]^\circ`], and [`C= [$C]^\circ`]. Round to the nearest tenth. END_PGML @@ -60,7 +60,7 @@ $refreshCachedImages=1; BEGIN_TEXT $BR $BCENTER -\{ image( "10_1_31.png", width=>300, height=>300, +\{ image( "10_1_31.png", width=>300, height=>300, tex_size=>700, extra_html_tags=>'alt="triangle where side x is across from angle B and side c is across from angle C"' ) \} $ECENTER $BR @@ -69,7 +69,7 @@ END_TEXT BEGIN_PGML - [` x = `] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* + [` x = `] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_32.pg b/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_32.pg index 3925403185..1073002448 100644 --- a/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_32.pg +++ b/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_32.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -53,7 +53,7 @@ Context()->flags->set( BEGIN_PGML -Find the length of side [` x `], where [` A = [$A]^\circ`], [`B = [$B]^\circ`], and [`c= [$c]`]. Round to the nearest tenth. +Find the length of side [` x `], where [` A = [$A]^\circ`], [`B = [$B]^\circ`], and [`c= [$c]`]. Round to the nearest tenth. END_PGML @@ -62,7 +62,7 @@ $refreshCachedImages=1; BEGIN_TEXT $BR $BCENTER -\{ image( "10_1_32.png", width=>300, height=>300, +\{ image( "10_1_32.png", width=>300, height=>300, tex_size=>700, extra_html_tags=>'alt="triangle where side x is across from angle A"' ) \} $ECENTER $BR @@ -71,7 +71,7 @@ END_TEXT BEGIN_PGML - [` x = `] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* + [` x = `] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_37.pg b/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_37.pg index f3b75d7e22..1a8300b156 100644 --- a/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_37.pg +++ b/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_37.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -52,7 +52,7 @@ Context()->flags->set( BEGIN_PGML -Find the measure of angle [` X `], where [` A = [$A]^\circ`], [`a = [$a]`], and [`b= [$b]`]. Round to the nearest tenth. +Find the measure of angle [` X `], where [` A = [$A]^\circ`], [`a = [$a]`], and [`b= [$b]`]. Round to the nearest tenth. END_PGML @@ -60,7 +60,7 @@ $refreshCachedImages=1; BEGIN_TEXT $BR $BCENTER -\{ image( "10_1_37.png", width=>400, height=>300, +\{ image( "10_1_37.png", width=>400, height=>300, tex_size=>700, extra_html_tags=>'alt="Triangle where angle X is across from side b."' ) \} $ECENTER $BR @@ -69,7 +69,7 @@ END_TEXT BEGIN_PGML - [` X = `] [_______________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` X = `] [_______________]{$ans} [@ helpLink("angles") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_38.pg b/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_38.pg index 608507e8eb..e580108b4d 100644 --- a/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_38.pg +++ b/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_38.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -52,7 +52,7 @@ Context()->flags->set( BEGIN_PGML -Find the measure of angle [` X `], where [` A = [$A]^\circ`], [`a = [$a]`], and [`b= [$b]`]. Round to the nearest tenth. +Find the measure of angle [` X `], where [` A = [$A]^\circ`], [`a = [$a]`], and [`b= [$b]`]. Round to the nearest tenth. END_PGML @@ -61,7 +61,7 @@ $refreshCachedImages=1; BEGIN_TEXT $BR $BCENTER -\{ image( "10_1_38.png", width=>400, height=>300, +\{ image( "10_1_38.png", width=>400, height=>300, tex_size=>700, extra_html_tags=>'alt="Triangle where angle X is across from side b."' ) \} $ECENTER $BR @@ -70,7 +70,7 @@ END_TEXT BEGIN_PGML - [` X = `] [_______________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` X = `] [_______________]{$ans} [@ helpLink("angles") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_44.pg b/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_44.pg index e2be122ebe..d64c8b31c0 100644 --- a/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_44.pg +++ b/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_44.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -52,7 +52,7 @@ Context()->flags->set( BEGIN_PGML -Find the area of the triangle, where [` A = [$A]^\circ`], [`b = [$b]`], and [`c= [$c]`]. Round to the nearest tenth. +Find the area of the triangle, where [` A = [$A]^\circ`], [`b = [$b]`], and [`c= [$c]`]. Round to the nearest tenth. END_PGML @@ -60,7 +60,7 @@ $refreshCachedImages=1; BEGIN_TEXT $BR $BCENTER -\{ image( "10_1_44.png", width=>400, height=>300, +\{ image( "10_1_44.png", width=>400, height=>300, tex_size=>700, extra_html_tags=>'alt="Triangle with angle A, and sides b and c."' ) \} $ECENTER $BR @@ -69,7 +69,7 @@ END_TEXT BEGIN_PGML - Area [` = `] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* + Area [` = `] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_47.pg b/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_47.pg index 726c8e7070..835aa9599f 100644 --- a/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_47.pg +++ b/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_47.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -53,7 +53,7 @@ Context()->flags->set( BEGIN_PGML -Find the area of the triangle, where [` A = [$A]^\circ`], [`b = [$b]`], and [`c= [$c]`]. Round to the nearest tenth. +Find the area of the triangle, where [` A = [$A]^\circ`], [`b = [$b]`], and [`c= [$c]`]. Round to the nearest tenth. END_PGML @@ -62,7 +62,7 @@ $refreshCachedImages=1; BEGIN_TEXT $BR $BCENTER -\{ image( "10_1_47.png", width=>400, height=>300, +\{ image( "10_1_47.png", width=>400, height=>300, tex_size=>700, extra_html_tags=>'alt="Triangle with angles A and B and sides b and c."' ) \} $ECENTER $BR @@ -71,7 +71,7 @@ END_TEXT BEGIN_PGML - Area [` = `] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* + Area [` = `] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_54.pg b/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_54.pg index 535141a916..61d907e7eb 100644 --- a/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_54.pg +++ b/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_54.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -74,7 +74,7 @@ Context()->flags->set( BEGIN_PGML -Solve both triangles below, where [` A = [$A]^\circ`], [`c = [$c]`], [`C= [$C]^\circ`], [`N= [$N]^\circ`], and [`m= [$m]`]. Round to the nearest tenth. +Solve both triangles below, where [` A = [$A]^\circ`], [`c = [$c]`], [`C= [$C]^\circ`], [`N= [$N]^\circ`], and [`m= [$m]`]. Round to the nearest tenth. END_PGML @@ -83,7 +83,7 @@ $refreshCachedImages=1; BEGIN_TEXT $BR $BCENTER -\{ image( "10_1_54.png", width=>400, height=>200, +\{ image( "10_1_54.png", width=>400, height=>200, tex_size=>700, extra_html_tags=>'alt="Two triangles that share one corner. Triangle on the left has angle C at the shared corner and then angles A and B. The triangle on the right has angle M at the shared corner and then angles P and N."' ) \} $ECENTER $BR @@ -92,19 +92,19 @@ END_TEXT BEGIN_PGML -[` B = `] [_______________]{$ans_B} [@ AnswerFormatHelp("angles") @]* +[` B = `] [_______________]{$ans_B} [@ helpLink("angles") @]* -[` b = `] [_______________]{$ans_b} [@ AnswerFormatHelp("numbers") @]* +[` b = `] [_______________]{$ans_b} [@ helpLink("numbers") @]* -[` a = `] [_______________]{$ans_a} [@ AnswerFormatHelp("numbers") @]* +[` a = `] [_______________]{$ans_a} [@ helpLink("numbers") @]* -[` M = `] [_______________]{$ans_M} [@ AnswerFormatHelp("angles") @]* +[` M = `] [_______________]{$ans_M} [@ helpLink("angles") @]* -[` P = `] [_______________]{$ans_P} [@ AnswerFormatHelp("angles") @]* +[` P = `] [_______________]{$ans_P} [@ helpLink("angles") @]* -[` p = `] [_______________]{$ans_p} [@ AnswerFormatHelp("numbers") @]* +[` p = `] [_______________]{$ans_p} [@ helpLink("numbers") @]* -[` n = `] [_______________]{$ans_n} [@ AnswerFormatHelp("numbers") @]* +[` n = `] [_______________]{$ans_n} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_6.pg b/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_6.pg index ece16cae41..1f940f0664 100644 --- a/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_6.pg +++ b/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_6.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -58,14 +58,14 @@ Context()->flags->set( # Main text BEGIN_PGML -Assume [` \alpha `] is opposite side [`a`], [` \beta `] is opposite side [`b`], and [` \gamma `] is opposite side [`c`]. Solve the triangle where [`\alpha = [$alpha]^\circ`], [`\gamma=[$gamma]^\circ`], and [`a=[$a]`]. Round answers to the nearest tenth. +Assume [` \alpha `] is opposite side [`a`], [` \beta `] is opposite side [`b`], and [` \gamma `] is opposite side [`c`]. Solve the triangle where [`\alpha = [$alpha]^\circ`], [`\gamma=[$gamma]^\circ`], and [`a=[$a]`]. Round answers to the nearest tenth. -[` \beta = `] [_______________]{$ans_beta} [@ AnswerFormatHelp("angles") @]* +[` \beta = `] [_______________]{$ans_beta} [@ helpLink("angles") @]* -[` c = `] [_______________]{$ans_c} [@ AnswerFormatHelp("numbers") @]* +[` c = `] [_______________]{$ans_c} [@ helpLink("numbers") @]* -[` b = `] [_______________]{$ans_b} [@ AnswerFormatHelp("numbers") @]* +[` b = `] [_______________]{$ans_b} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_60.pg b/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_60.pg index 0805771c60..1acb3dfd59 100644 --- a/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_60.pg +++ b/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_60.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -66,7 +66,7 @@ $refreshCachedImages=1; BEGIN_TEXT $BR $BCENTER -\{ image( "10_1_60.png", width=>300, height=>300, +\{ image( "10_1_60.png", width=>300, height=>300, tex_size=>700, extra_html_tags=>'alt="The boat is between the two stations. Station A has an angle from the shore to the boat of 70 degrees, and station B has an angle from the shore to the ship of 60 degrees."' ) \} $ECENTER $BR @@ -75,9 +75,9 @@ END_TEXT BEGIN_PGML -Distance to station A [` = `] [_______________]{$ans_A} [@ AnswerFormatHelp("numbers") @]* +Distance to station A [` = `] [_______________]{$ans_A} [@ helpLink("numbers") @]* -Distance to the shore [` = `] [_______________]{$ans_Shore} [@ AnswerFormatHelp("numbers") @]* +Distance to the shore [` = `] [_______________]{$ans_Shore} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_61.pg b/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_61.pg index d7634bfa4a..483f2d90d0 100644 --- a/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_61.pg +++ b/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_61.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -57,7 +57,7 @@ Context()->flags->set( BEGIN_PGML -The figure below shows a satellite orbiting Earth. The satellite passes directly over two tracking stations [`A`] and [`B`], which are [`[$d]`] miles apart. When the satellite is on one side of the two stations, the angles of elevation at [`A`] and [`B`] are measured to be [`83.9^\circ`] and [` 86.2^\circ`] respectively. How far is the satellite from station [`A`] and how high is the satellite above the ground? Round answers to the nearest whole mile. +The figure below shows a satellite orbiting Earth. The satellite passes directly over two tracking stations [`A`] and [`B`], which are [`[$d]`] miles apart. When the satellite is on one side of the two stations, the angles of elevation at [`A`] and [`B`] are measured to be [`83.9^\circ`] and [` 86.2^\circ`] respectively. How far is the satellite from station [`A`] and how high is the satellite above the ground? Round answers to the nearest whole mile. END_PGML @@ -66,7 +66,7 @@ $refreshCachedImages=1; BEGIN_TEXT $BR $BCENTER -\{ image( "10_1_61.png", width=>300, height=>300, +\{ image( "10_1_61.png", width=>300, height=>300, tex_size=>700, extra_html_tags=>'alt="The satellite is to the right of both stations. Station A has an angle from Earth to the satellite of 83.9 degrees and station B has an angle from Earth to the satellite of 86.2 degrees."' ) \} $ECENTER $BR @@ -75,9 +75,9 @@ END_TEXT BEGIN_PGML -Distance to station A [` = `] [_______________]{$ans_A} [@ AnswerFormatHelp("numbers") @]* +Distance to station A [` = `] [_______________]{$ans_A} [@ helpLink("numbers") @]* -Distance above the ground [` = `] [_______________]{$ans_Ground} [@ AnswerFormatHelp("numbers") @]* +Distance above the ground [` = `] [_______________]{$ans_Ground} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_65.pg b/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_65.pg index 26c4ecd1a8..dcd41f936f 100644 --- a/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_65.pg +++ b/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_65.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -55,7 +55,7 @@ Context()->flags->set( BEGIN_PGML -A pilot is flying over a straight highway. He determines the angles of depression to two signs, which are [`[$d]`] km apart, two be [`32^\circ`] and [`56^\circ`], as shown in the figure below. Find the distance of the plane from sign [`A`] to the nearest kilometer. +A pilot is flying over a straight highway. He determines the angles of depression to two signs, which are [`[$d]`] km apart, two be [`32^\circ`] and [`56^\circ`], as shown in the figure below. Find the distance of the plane from sign [`A`] to the nearest kilometer. END_PGML @@ -64,7 +64,7 @@ $refreshCachedImages=1; BEGIN_TEXT $BR $BCENTER -\{ image( "10_1_65.png", width=>400, height=>300, +\{ image( "10_1_65.png", width=>400, height=>300, tex_size=>700, extra_html_tags=>'alt="The airplane is to the left of both signs, A being on the left of B."' ) \} $ECENTER $BR @@ -73,7 +73,7 @@ END_TEXT BEGIN_PGML -Distance to sign A [` = `] [_______________]{$ans_A} [@ AnswerFormatHelp("numbers") @]* +Distance to sign A [` = `] [_______________]{$ans_A} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_67.pg b/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_67.pg index a6d1eff662..8ecb8165fa 100644 --- a/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_67.pg +++ b/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_67.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -60,10 +60,10 @@ Context()->flags->set( BEGIN_PGML -In order to estimate the height of a building, two students stand at a certain distance from the building at street level. From this point, they find the angle of elevation from the street to the top of the building to be [`[$A1]^\circ`]. They then move [`[$d]`] feet closer to the building and find the angle of elevation to be [`[$A2]^\circ`]. Assuming that the street is level, estimate the height of the building to the nearest foot. +In order to estimate the height of a building, two students stand at a certain distance from the building at street level. From this point, they find the angle of elevation from the street to the top of the building to be [`[$A1]^\circ`]. They then move [`[$d]`] feet closer to the building and find the angle of elevation to be [`[$A2]^\circ`]. Assuming that the street is level, estimate the height of the building to the nearest foot. -Height of building [` = `] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +Height of building [` = `] [_______________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_7.pg b/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_7.pg index f128ccbbf5..1a35082b4f 100644 --- a/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_7.pg +++ b/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_7.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -58,13 +58,13 @@ Context()->flags->set( # Main text BEGIN_PGML -Assume [` \alpha `] is opposite side [`a`], [` \beta `] is opposite side [`b`], and [` \gamma `] is opposite side [`c`]. Solve the triangle where [`\alpha = [$alpha]^\circ`], [`\gamma=[$gamma]^\circ`], and [`c=[$c]`]. Round answers to the nearest tenth. +Assume [` \alpha `] is opposite side [`a`], [` \beta `] is opposite side [`b`], and [` \gamma `] is opposite side [`c`]. Solve the triangle where [`\alpha = [$alpha]^\circ`], [`\gamma=[$gamma]^\circ`], and [`c=[$c]`]. Round answers to the nearest tenth. -[` \beta = `] [_______________]{$ans_beta} [@ AnswerFormatHelp("angles") @]* +[` \beta = `] [_______________]{$ans_beta} [@ helpLink("angles") @]* -[` a = `] [_______________]{$ans_a} [@ AnswerFormatHelp("numbers") @]* +[` a = `] [_______________]{$ans_a} [@ helpLink("numbers") @]* -[` b = `] [_______________]{$ans_b} [@ AnswerFormatHelp("numbers") @]* +[` b = `] [_______________]{$ans_b} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_74.pg b/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_74.pg index 88f7877432..c88e3d06e1 100644 --- a/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_74.pg +++ b/Contrib/CCCS/Trigonometry/10.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_1_74.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -57,7 +57,7 @@ Context()->flags->set( BEGIN_PGML -Brian's house is on a corner lot. Find the area of the front yard if the edges measure [`b = [$b]`] and [`c = [$c]`] feet, and angle [`A=[$A]^\circ`] in the figure below. +Brian's house is on a corner lot. Find the area of the front yard if the edges measure [`b = [$b]`] and [`c = [$c]`] feet, and angle [`A=[$A]^\circ`] in the figure below. END_PGML @@ -66,7 +66,7 @@ $refreshCachedImages=1; BEGIN_TEXT $BR $BCENTER -\{ image( "10_1_74.png", width=>400, height=>300, +\{ image( "10_1_74.png", width=>400, height=>300, tex_size=>700, extra_html_tags=>'alt="Triangle with angle A and sides b and c."' ) \} $ECENTER $BR @@ -75,7 +75,7 @@ END_TEXT BEGIN_PGML -Area of yard [` = `] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +Area of yard [` = `] [_______________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/Trigonometry/10.1/break.pg b/Contrib/CCCS/Trigonometry/10.1/break.pg index 53326b48ad..90f8608a6b 100644 --- a/Contrib/CCCS/Trigonometry/10.1/break.pg +++ b/Contrib/CCCS/Trigonometry/10.1/break.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -40,14 +40,14 @@ TEXT(beginproblem()); $n=random(0,7,1); -# Array of 8 angles +# Array of 8 angles @latexangle=("90^\circ", "60^\circ" ,"45^\circ" ,"30^\circ", "120^\circ" , "135^\circ", "150^\circ", "180^\circ"); # Selecting angle for PGML $a = $latexangle[$n] ; -# Array of 8 angles +# Array of 8 angles @angle=(pi/2, pi/3 ,pi/4 ,pi/6, 2*pi/3, 3*pi/4, 5*pi/6, pi); # Selecting angle for Compute diff --git a/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_10.pg b/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_10.pg index 808887d5cc..8d00c50773 100644 --- a/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_10.pg +++ b/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_10.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -55,10 +55,10 @@ Context()->flags->set( # Main text BEGIN_PGML -Assume [` \alpha `] is opposite side [`a`], [` \beta `] is opposite side [`b`], and [` \gamma `] is opposite side [`c`]. If possible, solve the triangle for the unknown side where [`\alpha = [$alpha]^\circ`], [`a=[$a]`], and [`b=[$b]`]. Round answers to the nearest tenth. If not possible, enter "None". +Assume [` \alpha `] is opposite side [`a`], [` \beta `] is opposite side [`b`], and [` \gamma `] is opposite side [`c`]. If possible, solve the triangle for the unknown side where [`\alpha = [$alpha]^\circ`], [`a=[$a]`], and [`b=[$b]`]. Round answers to the nearest tenth. If not possible, enter "None". -[` c = `] [_______________]{$ans_c} [@ AnswerFormatHelp("numbers") @]* +[` c = `] [_______________]{$ans_c} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_12.pg b/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_12.pg index cd414b8c02..178f8e27ba 100644 --- a/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_12.pg +++ b/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_12.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -51,10 +51,10 @@ Context()->flags->set( # Main text BEGIN_PGML -Assume [` \alpha `] is opposite side [`a`], [` \beta `] is opposite side [`b`], and [` \gamma `] is opposite side [`c`]. If possible, solve the triangle for the unknown side where [`\beta = [$beta]^\circ`], [`a=[$a]`], and [`b=[$b]`]. Round answers to the nearest tenth. If not possible, enter "None". +Assume [` \alpha `] is opposite side [`a`], [` \beta `] is opposite side [`b`], and [` \gamma `] is opposite side [`c`]. If possible, solve the triangle for the unknown side where [`\beta = [$beta]^\circ`], [`a=[$a]`], and [`b=[$b]`]. Round answers to the nearest tenth. If not possible, enter "None". -[` c = `] [_______________]{$ans_c} [@ AnswerFormatHelp("numbers") @]* +[` c = `] [_______________]{$ans_c} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_16.pg b/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_16.pg index 424b4267c8..ea34c31213 100644 --- a/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_16.pg +++ b/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_16.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -52,10 +52,10 @@ Context()->flags->set( # Main text BEGIN_PGML -Assume [` A `] is opposite side [`a`], [` B `] is opposite side [`b`], and [` C `] is opposite side [`c`]. Use the Law of Cosines to find angle [`A`] where [`a = [$a]`], [`b=[$b]`], and [`c=[$c]`]. Round answer to the nearest tenth. +Assume [` A `] is opposite side [`a`], [` B `] is opposite side [`b`], and [` C `] is opposite side [`c`]. Use the Law of Cosines to find angle [`A`] where [`a = [$a]`], [`b=[$b]`], and [`c=[$c]`]. Round answer to the nearest tenth. -[` A = `] [_______________]{$ans_A} [@ AnswerFormatHelp("angles") @]* +[` A = `] [_______________]{$ans_A} [@ helpLink("angles") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_18.pg b/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_18.pg index 3e06263c0e..2f3236dad8 100644 --- a/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_18.pg +++ b/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_18.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -52,10 +52,10 @@ Context()->flags->set( # Main text BEGIN_PGML -Assume [` A `] is opposite side [`a`], [` B `] is opposite side [`b`], and [` C `] is opposite side [`c`]. Use the Law of Cosines to find angle [`B`] where [`a = [$a]`], [`b=[$b]`], and [`c=[$c]`]. Round answer to the nearest tenth. +Assume [` A `] is opposite side [`a`], [` B `] is opposite side [`b`], and [` C `] is opposite side [`c`]. Use the Law of Cosines to find angle [`B`] where [`a = [$a]`], [`b=[$b]`], and [`c=[$c]`]. Round answer to the nearest tenth. -[` B = `] [_______________]{$ans_B} [@ AnswerFormatHelp("angles") @]* +[` B = `] [_______________]{$ans_B} [@ helpLink("angles") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_19.pg b/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_19.pg index 09a42f7cad..752ca64fde 100644 --- a/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_19.pg +++ b/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_19.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -54,10 +54,10 @@ Context()->flags->set( # Main text BEGIN_PGML -Assume [` A `] is opposite side [`a`], [` B `] is opposite side [`b`], and [` C `] is opposite side [`c`]. Use the Law of Cosines to find angle [`A`] where [`a = [$a]`], [`b=[$b]`], and [`c=[$c]`]. Round answer to the nearest tenth. +Assume [` A `] is opposite side [`a`], [` B `] is opposite side [`b`], and [` C `] is opposite side [`c`]. Use the Law of Cosines to find angle [`A`] where [`a = [$a]`], [`b=[$b]`], and [`c=[$c]`]. Round answer to the nearest tenth. -[` A = `] [_______________]{$ans_A} [@ AnswerFormatHelp("angles") @]* +[` A = `] [_______________]{$ans_A} [@ helpLink("angles") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_21.pg b/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_21.pg index 88fb8a5e5e..7f7dda4931 100644 --- a/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_21.pg +++ b/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_21.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -59,14 +59,14 @@ Context()->flags->set( # Main text BEGIN_PGML -Assume [` A `] is opposite side [`a`], [` B `] is opposite side [`b`], and [` C `] is opposite side [`c`]. Solve the triangle where [`A = [$A]^\circ`], [`b=[$b]`], and [`c=[$c]`]. Round answers to the nearest tenth. +Assume [` A `] is opposite side [`a`], [` B `] is opposite side [`b`], and [` C `] is opposite side [`c`]. Solve the triangle where [`A = [$A]^\circ`], [`b=[$b]`], and [`c=[$c]`]. Round answers to the nearest tenth. -[` a = `] [_______________]{$ans_a} [@ AnswerFormatHelp("numbers") @]* +[` a = `] [_______________]{$ans_a} [@ helpLink("numbers") @]* -[` B = `] [_______________]{$ans_B} [@ AnswerFormatHelp("angles") @]* +[` B = `] [_______________]{$ans_B} [@ helpLink("angles") @]* -[` C = `] [_______________]{$ans_C} [@ AnswerFormatHelp("angles") @]* +[` C = `] [_______________]{$ans_C} [@ helpLink("angles") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_23.pg b/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_23.pg index 997f10bfbe..ed093498a1 100644 --- a/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_23.pg +++ b/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_23.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -59,14 +59,14 @@ Context()->flags->set( # Main text BEGIN_PGML -Assume [` A `] is opposite side [`a`], [` B `] is opposite side [`b`], and [` C `] is opposite side [`c`]. Solve the triangle where [`C = [$C]^\circ`], [`a=[$a]`], and [`b=[$b]`]. Round answers to the nearest tenth. +Assume [` A `] is opposite side [`a`], [` B `] is opposite side [`b`], and [` C `] is opposite side [`c`]. Solve the triangle where [`C = [$C]^\circ`], [`a=[$a]`], and [`b=[$b]`]. Round answers to the nearest tenth. -[` c = `] [_______________]{$ans_c} [@ AnswerFormatHelp("numbers") @]* +[` c = `] [_______________]{$ans_c} [@ helpLink("numbers") @]* -[` A = `] [_______________]{$ans_A} [@ AnswerFormatHelp("angles") @]* +[` A = `] [_______________]{$ans_A} [@ helpLink("angles") @]* -[` B = `] [_______________]{$ans_B} [@ AnswerFormatHelp("angles") @]* +[` B = `] [_______________]{$ans_B} [@ helpLink("angles") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_25.pg b/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_25.pg index d4a4c67825..5f7ca7244a 100644 --- a/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_25.pg +++ b/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_25.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -57,14 +57,14 @@ Context()->flags->set( # Main text BEGIN_PGML -Assume [` A `] is opposite side [`a`], [` B `] is opposite side [`b`], and [` C `] is opposite side [`c`]. Solve the triangle where [`a = [$a]`], [`b=[$b]`], and [`c=[$c]`]. Round answers to the nearest tenth. +Assume [` A `] is opposite side [`a`], [` B `] is opposite side [`b`], and [` C `] is opposite side [`c`]. Solve the triangle where [`a = [$a]`], [`b=[$b]`], and [`c=[$c]`]. Round answers to the nearest tenth. -[` A = `] [_______________]{$ans_A} [@ AnswerFormatHelp("angles") @]* +[` A = `] [_______________]{$ans_A} [@ helpLink("angles") @]* -[` B = `] [_______________]{$ans_B} [@ AnswerFormatHelp("angles") @]* +[` B = `] [_______________]{$ans_B} [@ helpLink("angles") @]* -[` C = `] [_______________]{$ans_C} [@ AnswerFormatHelp("angles") @]* +[` C = `] [_______________]{$ans_C} [@ helpLink("angles") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_29.pg b/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_29.pg index 655225722d..b6e9873e02 100644 --- a/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_29.pg +++ b/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_29.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -57,7 +57,7 @@ BEGIN_PGML Use Heron's formula to find the area of the triangle with sides [`a = \frac{1}{[$a]}`] meters, [`b = \frac{1}{[$b]}`] meters, and [`c=\frac{1}{[$c]}`] meters. Round answers to the nearest hundredth. Trigonometric functions used in answer blanks in this question will be evaluated in degrees. -Area [` = `] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +Area [` = `] [_______________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_30.pg b/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_30.pg index 79c29a3ee9..ab869bfba6 100644 --- a/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_30.pg +++ b/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_30.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -54,10 +54,10 @@ Context()->flags->set( # Main text BEGIN_PGML -Use Heron's formula to find the area of the triangle with sides [`a = [$a]`] feet, [`b = [$b]`] feet, and [`c=[$c]`] feet. Round answers to the nearest hundredth. +Use Heron's formula to find the area of the triangle with sides [`a = [$a]`] feet, [`b = [$b]`] feet, and [`c=[$c]`] feet. Round answers to the nearest hundredth. -Area [` = `] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +Area [` = `] [_______________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_31.pg b/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_31.pg index 84fa0ee8f5..78c330320d 100644 --- a/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_31.pg +++ b/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_31.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -54,10 +54,10 @@ Context()->flags->set( # Main text BEGIN_PGML -Use Heron's formula to find the area of the triangle with sides [`a = [$a]`] yards, [`b = [$b]`] yards, and [`c=[$c]`] yards. Round answers to the nearest hundredth. +Use Heron's formula to find the area of the triangle with sides [`a = [$a]`] yards, [`b = [$b]`] yards, and [`c=[$c]`] yards. Round answers to the nearest hundredth. -Area [` = `] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +Area [` = `] [_______________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_32.pg b/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_32.pg index 674a1bb964..0c23ad10f8 100644 --- a/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_32.pg +++ b/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_32.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -52,7 +52,7 @@ Context()->flags->set( BEGIN_PGML -Find the length of side [` x `], where [` a = [$a]`], [`b = [$b]`], and [`C= [$C]^\circ`]. Round to the nearest tenth. +Find the length of side [` x `], where [` a = [$a]`], [`b = [$b]`], and [`C= [$C]^\circ`]. Round to the nearest tenth. END_PGML @@ -60,7 +60,7 @@ $refreshCachedImages=1; BEGIN_TEXT $BR $BCENTER -\{ image( "10_2_32.png", width=>300, height=>300, +\{ image( "10_2_32.png", width=>300, height=>300, tex_size=>700, extra_html_tags=>'alt="Triangle with side x across from angle C. Also sides a and b."' ) \} $ECENTER $BR @@ -69,7 +69,7 @@ END_TEXT BEGIN_PGML - [` x = `] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* + [` x = `] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_33.pg b/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_33.pg index cf9d850205..e4f1901d6b 100644 --- a/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_33.pg +++ b/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_33.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -52,7 +52,7 @@ Context()->flags->set( BEGIN_PGML -Find the length of side [` x `], where [` a = [$a]`], [`b = [$b]`], and [`C= [$C]^\circ`]. Round to the nearest tenth. +Find the length of side [` x `], where [` a = [$a]`], [`b = [$b]`], and [`C= [$C]^\circ`]. Round to the nearest tenth. END_PGML @@ -61,7 +61,7 @@ $refreshCachedImages=1; BEGIN_TEXT $BR $BCENTER -\{ image( "10_2_33.png", width=>300, height=>300, +\{ image( "10_2_33.png", width=>300, height=>300, tex_size=>700, extra_html_tags=>'alt="Triangle with side x across from angle C. Also given sides a and b."' ) \} $ECENTER $BR @@ -70,7 +70,7 @@ END_TEXT BEGIN_PGML - [` x = `] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* + [` x = `] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_34.pg b/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_34.pg index 2b477bf3c4..5748dfe477 100644 --- a/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_34.pg +++ b/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_34.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -53,7 +53,7 @@ Context()->flags->set( BEGIN_PGML -Find the length of side [` x `], where [` a = [$a]`], [`c = [$c]`], and [`C= [$C]^\circ`]. Round to the nearest tenth. +Find the length of side [` x `], where [` a = [$a]`], [`c = [$c]`], and [`C= [$C]^\circ`]. Round to the nearest tenth. END_PGML @@ -62,7 +62,7 @@ $refreshCachedImages=1; BEGIN_TEXT $BR $BCENTER -\{ image( "10_2_34.png", width=>300, height=>300, +\{ image( "10_2_34.png", width=>300, height=>300, tex_size=>700, extra_html_tags=>'alt="Triangle with side c across from angle C. Sides a and x."' ) \} $ECENTER $BR @@ -71,7 +71,7 @@ END_TEXT BEGIN_PGML - [` x = `] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* + [` x = `] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_38.pg b/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_38.pg index 8c3b08afe7..6643dc3382 100644 --- a/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_38.pg +++ b/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_38.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -52,7 +52,7 @@ Context()->flags->set( BEGIN_PGML -Find the measure of angle [` A `], where [` a = [$a]`], [`b = [$b]`], and [`c= [$c]`]. Round to the nearest tenth. +Find the measure of angle [` A `], where [` a = [$a]`], [`b = [$b]`], and [`c= [$c]`]. Round to the nearest tenth. END_PGML @@ -61,7 +61,7 @@ $refreshCachedImages=1; BEGIN_TEXT $BR $BCENTER -\{ image( "10_2_38.png", width=>300, height=>300, +\{ image( "10_2_38.png", width=>300, height=>300, tex_size=>700, extra_html_tags=>'alt="Triangle with side a across from angle A. Sides c and b."' ) \} $ECENTER $BR @@ -70,7 +70,7 @@ END_TEXT BEGIN_PGML - [` A = `] [_______________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` A = `] [_______________]{$ans} [@ helpLink("angles") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_39.pg b/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_39.pg index 71c7bae518..711bd79ba4 100644 --- a/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_39.pg +++ b/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_39.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -52,7 +52,7 @@ Context()->flags->set( BEGIN_PGML -Find the measure of angle [` A `], where [` a = [$a]`], [`b = [$b]`], and [`c= [$c]`]. Round to the nearest tenth. +Find the measure of angle [` A `], where [` a = [$a]`], [`b = [$b]`], and [`c= [$c]`]. Round to the nearest tenth. END_PGML @@ -61,7 +61,7 @@ $refreshCachedImages=1; BEGIN_TEXT $BR $BCENTER -\{ image( "10_2_39.png", width=>300, height=>300, +\{ image( "10_2_39.png", width=>300, height=>300, tex_size=>700, extra_html_tags=>'alt="Triangle with side a across from angle A. Sides b and c."' ) \} $ECENTER $BR @@ -70,7 +70,7 @@ END_TEXT BEGIN_PGML - [` A = `] [_______________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` A = `] [_______________]{$ans} [@ helpLink("angles") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_40.pg b/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_40.pg index e104970f65..b9ad8aa881 100644 --- a/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_40.pg +++ b/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_40.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -53,7 +53,7 @@ Context()->flags->set( BEGIN_PGML -Find the measure of angle [` A `], where [` a = [$a]`], [`b = [$b]`], and [`c= [$c]`]. Round to the nearest tenth. +Find the measure of angle [` A `], where [` a = [$a]`], [`b = [$b]`], and [`c= [$c]`]. Round to the nearest tenth. END_PGML @@ -62,7 +62,7 @@ $refreshCachedImages=1; BEGIN_TEXT $BR $BCENTER -\{ image( "10_2_40.png", width=>300, height=>300, +\{ image( "10_2_40.png", width=>300, height=>300, tex_size=>700, extra_html_tags=>'alt="Triangle with side a across from angle A. Sides b and c."' ) \} $ECENTER $BR @@ -71,7 +71,7 @@ END_TEXT BEGIN_PGML - [` A = `] [_______________]{$ans} [@ AnswerFormatHelp("angles") @]* + [` A = `] [_______________]{$ans} [@ helpLink("angles") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_47.pg b/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_47.pg index de34404c37..1d57ac5809 100644 --- a/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_47.pg +++ b/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_47.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -52,7 +52,7 @@ Context()->flags->set( BEGIN_PGML -Find the area of the triangle where [` a = [$a]`], [`b = [$b]`], and [`c= [$c]`]. Round to the nearest hundredth. +Find the area of the triangle where [` a = [$a]`], [`b = [$b]`], and [`c= [$c]`]. Round to the nearest hundredth. END_PGML @@ -61,7 +61,7 @@ $refreshCachedImages=1; BEGIN_TEXT $BR $BCENTER -\{ image( "10_2_47.png", width=>300, height=>300, +\{ image( "10_2_47.png", width=>300, height=>300, tex_size=>700, extra_html_tags=>'alt="Triangle with sides a, b, and c."' ) \} $ECENTER $BR @@ -70,7 +70,7 @@ END_TEXT BEGIN_PGML - Area [` = `] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* + Area [` = `] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_48.pg b/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_48.pg index 2ebedfc12a..3490c51383 100644 --- a/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_48.pg +++ b/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_48.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -52,7 +52,7 @@ Context()->flags->set( BEGIN_PGML -Find the area of the triangle where [` a = [$a]`], [`b = [$b]`], and [`c= [$c]`]. Round to the nearest hundredth. +Find the area of the triangle where [` a = [$a]`], [`b = [$b]`], and [`c= [$c]`]. Round to the nearest hundredth. END_PGML @@ -61,7 +61,7 @@ $refreshCachedImages=1; BEGIN_TEXT $BR $BCENTER -\{ image( "10_2_48.png", width=>300, height=>300, +\{ image( "10_2_48.png", width=>300, height=>300, tex_size=>700, extra_html_tags=>'alt="Triangle with sides a, b, and c."' ) \} $ECENTER $BR @@ -70,7 +70,7 @@ END_TEXT BEGIN_PGML - Area [` = `] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* + Area [` = `] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_52.pg b/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_52.pg index e1052f6cb3..1340cc1c74 100644 --- a/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_52.pg +++ b/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_52.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -56,10 +56,10 @@ Context()->flags->set( BEGIN_PGML -A parallelogram has sides of length [`[$a]`] units and [`[$b]`] units. The shorter diagonal is [`[$c]`] units. Find the measure of the longer diagonal. +A parallelogram has sides of length [`[$a]`] units and [`[$b]`] units. The shorter diagonal is [`[$c]`] units. Find the measure of the longer diagonal. - Longer diagonal [` = `] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* + Longer diagonal [` = `] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_55.pg b/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_55.pg index d585ec9330..fcea51efc3 100644 --- a/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_55.pg +++ b/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_55.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -51,7 +51,7 @@ Context()->flags->set( BEGIN_PGML -A regular octagon is inscribed in a circle with a radius of [`[$r]`] inches. Find the perimeter of the octagon. Round to the nearest tenth. +A regular octagon is inscribed in a circle with a radius of [`[$r]`] inches. Find the perimeter of the octagon. Round to the nearest tenth. END_PGML @@ -60,7 +60,7 @@ $refreshCachedImages=1; BEGIN_TEXT $BR $BCENTER -\{ image( "10_2_55.png", width=>400, height=>300, +\{ image( "10_2_55.png", width=>400, height=>300, tex_size=>700, extra_html_tags=>'alt="Circle with regular octagon inscribed."' ) \} $ECENTER $BR @@ -69,7 +69,7 @@ END_TEXT BEGIN_PGML - Perimeter [` = `] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* + Perimeter [` = `] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_6.pg b/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_6.pg index 7f7951a9d9..2764e468c0 100644 --- a/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_6.pg +++ b/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_6.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -34,7 +34,7 @@ TEXT(beginproblem()); # Setup Context("TrigDegrees"); -# setting up +# setting up $gamma = random(35,45,.1); $a = random(2.3,2.7,.01); $b = random(3.05,3.35,.01); @@ -53,10 +53,10 @@ Context()->flags->set( # Main text BEGIN_PGML -Assume [` \alpha `] is opposite side [`a`], [` \beta `] is opposite side [`b`], and [` \gamma `] is opposite side [`c`]. If possible, solve the triangle for the unknown side where [`\gamma = [$gamma]^\circ`], [`a=[$a]`], and [`b=[$b]`]. Round answers to the nearest tenth. If not possible, enter "None". +Assume [` \alpha `] is opposite side [`a`], [` \beta `] is opposite side [`b`], and [` \gamma `] is opposite side [`c`]. If possible, solve the triangle for the unknown side where [`\gamma = [$gamma]^\circ`], [`a=[$a]`], and [`b=[$b]`]. Round answers to the nearest tenth. If not possible, enter "None". -[` c = `] [_______________]{$ans_c} [@ AnswerFormatHelp("numbers") @]* +[` c = `] [_______________]{$ans_c} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_63.pg b/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_63.pg index 4dc918a9d8..b61bacc302 100644 --- a/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_63.pg +++ b/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_63.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -47,7 +47,7 @@ Context()->flags->set( BEGIN_PGML -A satellite calculates the distances and angle shown below. Find the distance between the two cities. Round to the nearest tenth. +A satellite calculates the distances and angle shown below. Find the distance between the two cities. Round to the nearest tenth. END_PGML @@ -56,7 +56,7 @@ $refreshCachedImages=1; BEGIN_TEXT $BR $BCENTER -\{ image( "10_2_63.png", width=>400, height=>300, +\{ image( "10_2_63.png", width=>400, height=>300, tex_size=>700, extra_html_tags=>'alt="Satellite to the right of two cities. Distance to closest city is 350 km, distance to further city is 370 km, angle of 2.1 degrees between satellite and two cities."' ) \} $ECENTER $BR @@ -65,7 +65,7 @@ END_TEXT BEGIN_PGML - Distance [` = `] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* + Distance [` = `] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_65.pg b/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_65.pg index de94a8cb0a..d18697edc7 100644 --- a/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_65.pg +++ b/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_65.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -47,7 +47,7 @@ Context()->flags->set( BEGIN_PGML -A [`113`]-foot tower is located on a hill that is inclined [`34^\circ`] to the horizontal as shown below. A guywire is to be attached to the top of the tower and anchored at a point [` 98 `] feet uphill from the base of the tower. Find the length of the wire needed. Round to the nearest tenth. +A [`113`]-foot tower is located on a hill that is inclined [`34^\circ`] to the horizontal as shown below. A guywire is to be attached to the top of the tower and anchored at a point [` 98 `] feet uphill from the base of the tower. Find the length of the wire needed. Round to the nearest tenth. END_PGML @@ -56,7 +56,7 @@ $refreshCachedImages=1; BEGIN_TEXT $BR $BCENTER -\{ image( "10_2_65.png", width=>400, height=>300, +\{ image( "10_2_65.png", width=>400, height=>300, tex_size=>700, extra_html_tags=>'alt="Angle of 34 degrees to horizontal. Tower is on that line of angle of 34 degrees to horizontal. Tower is 113 feet tall. Wire is attached to top of tower and goes up the hill and attaches to group 98 feet from base of tower."' ) \} $ECENTER $BR @@ -65,7 +65,7 @@ END_TEXT BEGIN_PGML - Length [` = `] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* + Length [` = `] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_7.pg b/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_7.pg index 87337b7779..e75db98019 100644 --- a/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_7.pg +++ b/Contrib/CCCS/Trigonometry/10.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_2_7.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -34,7 +34,7 @@ TEXT(beginproblem()); # Setup Context("TrigDegrees"); -# setting up +# setting up $alpha = random(110,130,1); $b = random(3,7,1); $c = random(8,10,1); @@ -53,10 +53,10 @@ Context()->flags->set( # Main text BEGIN_PGML -Assume [` \alpha `] is opposite side [`a`], [` \beta `] is opposite side [`b`], and [` \gamma `] is opposite side [`c`]. If possible, solve the triangle for the unknown side where [`\alpha = [$alpha]^\circ`], [`b=[$b]`], and [`c=[$c]`]. Round answers to the nearest tenth. If not possible, enter "None". +Assume [` \alpha `] is opposite side [`a`], [` \beta `] is opposite side [`b`], and [` \gamma `] is opposite side [`c`]. If possible, solve the triangle for the unknown side where [`\alpha = [$alpha]^\circ`], [`b=[$b]`], and [`c=[$c]`]. Round answers to the nearest tenth. If not possible, enter "None". -[` a = `] [_______________]{$ans_a} [@ AnswerFormatHelp("numbers") @]* +[` a = `] [_______________]{$ans_a} [@ helpLink("numbers") @]* diff --git a/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_10.pg b/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_10.pg index 54ba146431..d251180e1a 100644 --- a/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_10.pg +++ b/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_10.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -40,13 +40,13 @@ $r = random(2,8,1); # random integer to choose angle $n=random(0,7,1); -# Array of 8 angles +# Array of 8 angles @latexangle=("(7pi)/6", "(5pi)/4" ,"(4pi)/3" ,"(3pi)/2", "(5pi)/3" , "(7pi)/4", "(11pi)/6", "2pi"); # Selecting angle for PGML $thetadisp = $latexangle[$n] ; -# Array of 8 angles +# Array of 8 angles @angle=(7*pi/6, 5*pi/4 ,4*pi/3 ,3*pi/2, 5*pi/3, 7*pi/4, 11*pi/6, 2*pi); # Selecting angle for Compute @@ -63,12 +63,12 @@ $ans = Point("($x,$y)"); # Main text BEGIN_PGML -Convert the given polar coordinate to Cartesian coordinates. +Convert the given polar coordinate to Cartesian coordinates. ` ([$r],[$thetadisp]) ` -[_______________]{$ans} [@ AnswerFormatHelp("points") @]* +[_______________]{$ans} [@ helpLink("points") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_11.pg b/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_11.pg index b8c72b88e2..46ebfbbe0a 100644 --- a/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_11.pg +++ b/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_11.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -50,12 +50,12 @@ $ans = Point("($r,$theta)"); # Main text BEGIN_PGML -Convert the given Cartesian coordinate to polar coordinates with [` r>0, 0 \leq \theta \leq 2 \pi`]. +Convert the given Cartesian coordinate to polar coordinates with [` r>0, 0 \leq \theta \leq 2 \pi`]. [` ([$x],[$y]) `] -[_______________]{$ans} [@ AnswerFormatHelp("points") @]* +[_______________]{$ans} [@ helpLink("points") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_13.pg b/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_13.pg index c4db2d388c..4baaf299cf 100644 --- a/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_13.pg +++ b/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_13.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -50,12 +50,12 @@ $ans = Point("($r,$theta)"); # Main text BEGIN_PGML -Convert the given Cartesian coordinate to polar coordinates with [` r>0, 0 \leq \theta \leq 2 \pi`]. +Convert the given Cartesian coordinate to polar coordinates with [` r>0, 0 \leq \theta \leq 2 \pi`]. [` ([$x],[$y]) `] -[_______________]{$ans} [@ AnswerFormatHelp("points") @]* +[_______________]{$ans} [@ helpLink("points") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_14.pg b/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_14.pg index 2199de5963..5450945669 100644 --- a/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_14.pg +++ b/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_14.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -50,12 +50,12 @@ $ans = Point("($r,$theta)"); # Main text BEGIN_PGML -Convert the given Cartesian coordinate to polar coordinates with [` r>0, 0 \leq \theta \leq 2 \pi`]. +Convert the given Cartesian coordinate to polar coordinates with [` r>0, 0 \leq \theta \leq 2 \pi`]. [` ([$x],[$y]) `] -[_______________]{$ans} [@ AnswerFormatHelp("points") @]* +[_______________]{$ans} [@ helpLink("points") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_15.pg b/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_15.pg index bf042c3d69..7b3ac19dc5 100644 --- a/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_15.pg +++ b/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_15.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -36,7 +36,7 @@ TEXT(beginproblem()); Context("Point"); $x = random(1,9,1); -$y = $x; +$y = $x; $r = sqrt($x**2+$y**2); @@ -50,12 +50,12 @@ $ans = Point("($r,$theta)"); # Main text BEGIN_PGML -Convert the given Cartesian coordinate to polar coordinates with [` r>0, 0 \leq \theta \leq 2 \pi`]. +Convert the given Cartesian coordinate to polar coordinates with [` r>0, 0 \leq \theta \leq 2 \pi`]. [` ([$x],[$y]) `] -[_______________]{$ans} [@ AnswerFormatHelp("points") @]* +[_______________]{$ans} [@ helpLink("points") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_16.pg b/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_16.pg index 84fcefe2db..d75bda5720 100644 --- a/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_16.pg +++ b/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_16.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -50,7 +50,7 @@ Convert the given Cartesian equation to a polar equation, solved for [` r`]. Ent [` x = [$x] `] -[` r = `] [_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[` r = `] [_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_17.pg b/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_17.pg index 1beb1a1c6b..07f0766a93 100644 --- a/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_17.pg +++ b/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_17.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -50,7 +50,7 @@ Convert the given Cartesian equation to a polar equation, solved for [` r`]. Ent [` y = [$y] `] -[` r = `] [_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[` r = `] [_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_19.pg b/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_19.pg index 5c32866419..d06caba83a 100644 --- a/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_19.pg +++ b/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_19.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -50,7 +50,7 @@ Convert the given Cartesian equation to a polar equation, solved for [` r`]. Ent [` y = [$a]x^4 `] -[` r = `] [_______________________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[` r = `] [_______________________________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_21.pg b/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_21.pg index 0381013e9f..f21e7bf160 100644 --- a/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_21.pg +++ b/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_21.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -50,7 +50,7 @@ Convert the given Cartesian equation to a polar equation, solved for [` r`]. Ent [` x^2+y^2 = [$a]x `] -[` r = `] [_______________________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[` r = `] [_______________________________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_27.pg b/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_27.pg index a9b4bb897c..6fbdd41843 100644 --- a/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_27.pg +++ b/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_27.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -50,7 +50,7 @@ Convert the given Cartesian equation to a polar equation, solved for [` r`]. Ent [` [$a]xy = [$b] `] -[` r = `] [_______________________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[` r = `] [_______________________________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_28.pg b/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_28.pg index b993a115e4..59544dcb8b 100644 --- a/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_28.pg +++ b/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_28.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGML.pl", "PGcourse.pl", @@ -71,7 +71,7 @@ $popup = PopUp(["?", "ellipse", "hyperbola", "parabola", "not a conic"], "ellips # Main text BEGIN_PGML -Convert the given polar equation to a Cartesian equation. Write in the standard form of a conic, if possible, and identify the conic section represented. +Convert the given polar equation to a Cartesian equation. Write in the standard form of a conic, if possible, and identify the conic section represented. [` r = [$a]\cos(\theta) `] @@ -81,7 +81,7 @@ BEGIN_TEXT $BR $BR \{$multians->ans_rule(20)\} -\( = \) +\( = \) \{$multians->ans_rule(5)\} $BR $BR @@ -95,7 +95,7 @@ BEGIN_PGML Note that standard forms of conics are [` \frac{(x-h)^2}{a^2}+\frac{(y-k)^2}{b^2}=1 `], [` \frac{(x-h)^2}{a^2}-\frac{(y-k)^2}{b^2}=1 `], [` (y-k)^2=4p(x-h) `], and [` (x-h)^2=4p(y-k) `], and that a circle is an ellipse. If it is a line, enter as [` y = mx+b `]. END_PGML -ANS( $multians->cmp() ); +ANS( $multians->cmp() ); ANS( $popup->cmp() ); ############################ # Solution diff --git a/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_29.pg b/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_29.pg index 3725da813d..c8fa52dba7 100644 --- a/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_29.pg +++ b/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_29.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGML.pl", "PGcourse.pl", @@ -71,7 +71,7 @@ $popup = PopUp(["?", "ellipse", "hyperbola", "parabola", "not a conic"], "ellips # Main text BEGIN_PGML -Convert the given polar equation to a Cartesian equation. Write in the standard form of a conic, if possible, and identify the conic section represented. +Convert the given polar equation to a Cartesian equation. Write in the standard form of a conic, if possible, and identify the conic section represented. [` r = [$a]\sin(\theta) `] @@ -81,7 +81,7 @@ BEGIN_TEXT $BR $BR \{$multians->ans_rule(20)\} -\( = \) +\( = \) \{$multians->ans_rule(5)\} $BR $BR @@ -95,7 +95,7 @@ BEGIN_PGML Note that standard forms of conics are [` \frac{(x-h)^2}{a^2}+\frac{(y-k)^2}{b^2}=1 `], [` \frac{(x-h)^2}{a^2}-\frac{(y-k)^2}{b^2}=1 `], [` (y-k)^2=4p(x-h) `], and [` (x-h)^2=4p(y-k) `], and that a circle is an ellipse. If it is a line, enter as [` y = mx+b `]. END_PGML -ANS( $multians->cmp() ); +ANS( $multians->cmp() ); ANS( $popup->cmp() ); ############################ # Solution diff --git a/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_30.pg b/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_30.pg index faef9a4b53..179cfa3714 100644 --- a/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_30.pg +++ b/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_30.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGML.pl", "PGcourse.pl", @@ -74,7 +74,7 @@ $popup = PopUp(["?", "ellipse", "hyperbola", "parabola", "not a conic"], "not a # Main text BEGIN_PGML -Convert the given polar equation to a Cartesian equation. Write in the standard form of a conic, if possible, and identify the conic section represented. +Convert the given polar equation to a Cartesian equation. Write in the standard form of a conic, if possible, and identify the conic section represented. [`` r = \frac{[$a]}{\sin(\theta)+[$b]*\cos(\theta)} ``] @@ -84,7 +84,7 @@ BEGIN_TEXT $BR $BR \{$multians->ans_rule(20)\} -\( = \) +\( = \) \{$multians->ans_rule(5)\} $BR $BR @@ -98,7 +98,7 @@ BEGIN_PGML Note that standard forms of conics are [` \frac{(x-h)^2}{a^2}+\frac{(y-k)^2}{b^2}=1 `], [` \frac{(x-h)^2}{a^2}-\frac{(y-k)^2}{b^2}=1 `], [` (y-k)^2=4p(x-h) `], and [` (x-h)^2=4p(y-k) `], and that a circle is an ellipse. If it is a line, enter as [` y = mx+b `]. END_PGML -ANS( $multians->cmp() ); +ANS( $multians->cmp() ); ANS( $popup->cmp() ); ############################ # Solution diff --git a/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_31.pg b/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_31.pg index 4d6f83a037..8f0df3b96f 100644 --- a/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_31.pg +++ b/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_31.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGML.pl", "PGcourse.pl", @@ -74,7 +74,7 @@ $popup = PopUp(["?", "ellipse", "hyperbola", "parabola", "not a conic"], "not a # Main text BEGIN_PGML -Convert the given polar equation to a Cartesian equation. Write in the standard form of a conic, if possible, and identify the conic section represented. +Convert the given polar equation to a Cartesian equation. Write in the standard form of a conic, if possible, and identify the conic section represented. [`` r = \frac{[$a]}{\cos(\theta)+[$b]*\sin(\theta)} ``] @@ -84,7 +84,7 @@ BEGIN_TEXT $BR $BR \{$multians->ans_rule(20)\} -\( = \) +\( = \) \{$multians->ans_rule(5)\} $BR $BR @@ -98,7 +98,7 @@ BEGIN_PGML Note that standard forms of conics are [` \frac{(x-h)^2}{a^2}+\frac{(y-k)^2}{b^2}=1 `], [` \frac{(x-h)^2}{a^2}-\frac{(y-k)^2}{b^2}=1 `], [` (y-k)^2=4p(x-h) `], and [` (x-h)^2=4p(y-k) `], and that a circle is an ellipse. If it is a line, enter as [` y = mx+b `]. END_PGML -ANS( $multians->cmp() ); +ANS( $multians->cmp() ); ANS( $popup->cmp() ); ############################ # Solution diff --git a/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_33.pg b/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_33.pg index 3ccbc840d3..1136d5fff2 100644 --- a/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_33.pg +++ b/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_33.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGML.pl", "PGcourse.pl", @@ -74,7 +74,7 @@ $popup = PopUp(["?", "ellipse", "hyperbola", "parabola", "not a conic"], "not a # Main text BEGIN_PGML -Convert the given polar equation to a Cartesian equation. Write in the standard form of a conic, if possible, and identify the conic section represented. +Convert the given polar equation to a Cartesian equation. Write in the standard form of a conic, if possible, and identify the conic section represented. [`` r = [$a]\csc(\theta) ``] @@ -84,7 +84,7 @@ BEGIN_TEXT $BR $BR \{$multians->ans_rule(20)\} -\( = \) +\( = \) \{$multians->ans_rule(5)\} $BR $BR @@ -98,7 +98,7 @@ BEGIN_PGML Note that standard forms of conics are [` \frac{(x-h)^2}{a^2}+\frac{(y-k)^2}{b^2}=1 `], [` \frac{(x-h)^2}{a^2}-\frac{(y-k)^2}{b^2}=1 `], [` (y-k)^2=4p(x-h) `], and [` (x-h)^2=4p(y-k) `], and that a circle is an ellipse. If it is a line, enter as [` y = mx+b `]. END_PGML -ANS( $multians->cmp() ); +ANS( $multians->cmp() ); ANS( $popup->cmp() ); ############################ # Solution diff --git a/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_41.pg b/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_41.pg index 5f2d7c052b..de4ef3d3ef 100644 --- a/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_41.pg +++ b/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_41.pg @@ -24,7 +24,7 @@ loadMacros( "PGML.pl", "PGcourse.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -132,7 +132,7 @@ $BCENTER \( \frac{\pi}{2} \) $BR \( \pi \) -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>300,height=>300,tex_size=>800 ) \} \( 0 \) $BR @@ -145,7 +145,7 @@ $BR END_TEXT BEGIN_PGML ->>[_______________]{$ans} [@ AnswerFormatHelp("points") @]*<< +>>[_______________]{$ans} [@ helpLink("points") @]*<< END_PGML diff --git a/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_42.pg b/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_42.pg index ebebf2646a..920cf8941c 100644 --- a/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_42.pg +++ b/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_42.pg @@ -24,7 +24,7 @@ loadMacros( "PGML.pl", "PGcourse.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -132,7 +132,7 @@ $BCENTER \( \frac{\pi}{2} \) $BR \( \pi \) -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>300,height=>300,tex_size=>800 ) \} \( 0 \) $BR @@ -145,7 +145,7 @@ $BR END_TEXT BEGIN_PGML ->>[_______________]{$ans} [@ AnswerFormatHelp("points") @]*<< +>>[_______________]{$ans} [@ helpLink("points") @]*<< END_PGML diff --git a/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_45.pg b/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_45.pg index f80bc1f402..8b7744d022 100644 --- a/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_45.pg +++ b/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_45.pg @@ -27,7 +27,7 @@ loadMacros( "MathObjects.pl", "unionTables.pl", "parserPopUp.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -59,7 +59,7 @@ do {$n3=random(0,7,1);} until (($n3 != $n0) and ($n3 != $n1) and ($n3 != $n0)); # Array of 8 angles for computing and graphing purposes @fraction=(pi/2, pi/3 ,pi/4 ,pi/6, 2*pi/3, 3*pi/4, 5*pi/6, pi); -# Selecting angle for Compute +# Selecting angle for Compute $theta0 = $fraction[$n0] ; $theta1 = $fraction[$n1] ; $theta2 = $fraction[$n2] ; @@ -89,7 +89,7 @@ $theta3 = $fraction[$n3] ; #adding circles at r=1,2,3,4,5,6 $xfunc1 = sub { my $t = shift(); - return cos($t); }; + return cos($t); }; $yfunc1 = sub { my $t = shift(); return sin($t); }; $fn1 = new Fun( $xfunc1, $yfunc1, $gr[0] ); @@ -306,7 +306,7 @@ $theta3 = $fraction[$n3] ; #building figures for $i (0..3) { - plot_functions( $gr[$i]); + plot_functions( $gr[$i]); $fig[$i]=image(insertGraph($gr[$i]), width=>200,height=>200,tex_size=>450); } diff --git a/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_47.pg b/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_47.pg index a1dfc14f4b..996ab33ab8 100644 --- a/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_47.pg +++ b/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_47.pg @@ -27,7 +27,7 @@ loadMacros( "MathObjects.pl", "unionTables.pl", "parserPopUp.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -59,7 +59,7 @@ do {$n3=random(0,7,1);} until (($n3 != $n0) and ($n3 != $n1) and ($n3 != $n0)); # Array of 8 angles for computing and graphing purposes @fraction=(pi/2, pi/3 ,pi/4 ,pi/6, 2*pi/3, 3*pi/4, 5*pi/6, pi); -# Selecting angle for Compute +# Selecting angle for Compute $theta0 = $fraction[$n0] ; $theta1 = $fraction[$n1] ; $theta2 = $fraction[$n2] ; @@ -89,7 +89,7 @@ $theta3 = $fraction[$n3] ; #adding circles at r=1,2,3,4,5,6 $xfunc1 = sub { my $t = shift(); - return cos($t); }; + return cos($t); }; $yfunc1 = sub { my $t = shift(); return sin($t); }; $fn1 = new Fun( $xfunc1, $yfunc1, $gr[0] ); @@ -306,7 +306,7 @@ $theta3 = $fraction[$n3] ; #building figures for $i (0..3) { - plot_functions( $gr[$i]); + plot_functions( $gr[$i]); $fig[$i]=image(insertGraph($gr[$i]), width=>200,height=>200,tex_size=>450); } diff --git a/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_50.pg b/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_50.pg index 1fe81c47d9..208d88e25a 100644 --- a/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_50.pg +++ b/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_50.pg @@ -27,7 +27,7 @@ loadMacros( "MathObjects.pl", "unionTables.pl", "parserPopUp.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -59,7 +59,7 @@ do {$n3=random(0,7,1);} until (($n3 != $n0) and ($n3 != $n1) and ($n3 != $n0)); # Array of 8 angles for computing and graphing purposes @fraction=(-1*pi/2, -1*pi/3 ,-1*pi/4 ,-1*pi/6, -2*pi/3, -3*pi/4, -5*pi/6, -1*pi); -# Selecting angle for Compute +# Selecting angle for Compute $theta0 = $fraction[$n0] ; $theta1 = $fraction[$n1] ; $theta2 = $fraction[$n2] ; @@ -89,7 +89,7 @@ $theta3 = $fraction[$n3] ; #adding circles at r=1,2,3,4,5,6 $xfunc1 = sub { my $t = shift(); - return cos($t); }; + return cos($t); }; $yfunc1 = sub { my $t = shift(); return sin($t); }; $fn1 = new Fun( $xfunc1, $yfunc1, $gr[0] ); @@ -306,7 +306,7 @@ $theta3 = $fraction[$n3] ; #building figures for $i (0..3) { - plot_functions( $gr[$i]); + plot_functions( $gr[$i]); $fig[$i]=image(insertGraph($gr[$i]), width=>200,height=>200,tex_size=>450); } diff --git a/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_51.pg b/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_51.pg index 04ce21c302..804baf509e 100644 --- a/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_51.pg +++ b/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_51.pg @@ -27,7 +27,7 @@ loadMacros( "MathObjects.pl", "unionTables.pl", "parserPopUp.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -59,7 +59,7 @@ do {$n3=random(0,7,1);} until (($n3 != $n0) and ($n3 != $n1) and ($n3 != $n0)); # Array of 8 angles for computing and graphing purposes @fraction=(7*pi/6, 5*pi/4 , 4*pi/3, 3*pi/2, 5*pi/3, 7*pi/4, 11*pi/6, 0); -# Selecting angle for Compute +# Selecting angle for Compute $theta0 = $fraction[$n0] ; $theta1 = $fraction[$n1] ; $theta2 = $fraction[$n2] ; @@ -89,7 +89,7 @@ $theta3 = $fraction[$n3] ; #adding circles at r=1,2,3,4,5,6 $xfunc1 = sub { my $t = shift(); - return cos($t); }; + return cos($t); }; $yfunc1 = sub { my $t = shift(); return sin($t); }; $fn1 = new Fun( $xfunc1, $yfunc1, $gr[0] ); @@ -306,7 +306,7 @@ $theta3 = $fraction[$n3] ; #building figures for $i (0..3) { - plot_functions( $gr[$i]); + plot_functions( $gr[$i]); $fig[$i]=image(insertGraph($gr[$i]), width=>200,height=>200,tex_size=>450); } diff --git a/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_6.pg b/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_6.pg index a420967242..ebdc4f923c 100644 --- a/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_6.pg +++ b/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_6.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -40,13 +40,13 @@ $r = random(2,8,1); # random integer to choose angle $n=random(0,7,1); -# Array of 8 angles +# Array of 8 angles @latexangle=("pi/2", "pi/3" ,"pi/4" ,"pi/6", "(2pi)/3" , "(3pi)/4", "(5pi)/6", "pi"); # Selecting angle for PGML $thetadisp = $latexangle[$n] ; -# Array of 8 angles +# Array of 8 angles @angle=(pi/2, pi/3 ,pi/4 ,pi/6, 2*pi/3, 3*pi/4, 5*pi/6, pi); # Selecting angle for Compute @@ -63,12 +63,12 @@ $ans = Point("($x,$y)"); # Main text BEGIN_PGML -Convert the given polar coordinate to Cartesian coordinates. +Convert the given polar coordinate to Cartesian coordinates. ` ([$r],[$thetadisp]) ` -[_______________]{$ans} [@ AnswerFormatHelp("points") @]* +[_______________]{$ans} [@ helpLink("points") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_8.pg b/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_8.pg index 1340b886d7..0091be51cf 100644 --- a/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_8.pg +++ b/Contrib/CCCS/Trigonometry/10.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_3_8.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -40,13 +40,13 @@ $r = random(2,8,1); # random integer to choose angle $n=random(0,7,1); -# Array of 8 angles +# Array of 8 angles @latexangle=("-pi/2", "-pi/3" ,"-pi/4" ,"-pi/6", "-(2pi)/3" , "-(3pi)/4", "-(5pi)/6", "-pi"); # Selecting angle for PGML $thetadisp = $latexangle[$n] ; -# Array of 8 angles +# Array of 8 angles @angle=(-1*pi/2, -1*pi/3 ,-1*pi/4 ,-1*pi/6, -2*pi/3, -3*pi/4, -5*pi/6, -1*pi); # Selecting angle for Compute @@ -63,12 +63,12 @@ $ans = Point("($x,$y)"); # Main text BEGIN_PGML -Convert the given polar coordinate to Cartesian coordinates. +Convert the given polar coordinate to Cartesian coordinates. ` ([$r],[$thetadisp]) ` -[_______________]{$ans} [@ AnswerFormatHelp("points") @]* +[_______________]{$ans} [@ helpLink("points") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_13.pg b/Contrib/CCCS/Trigonometry/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_13.pg index b978473c58..bfb0faac5b 100644 --- a/Contrib/CCCS/Trigonometry/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_13.pg +++ b/Contrib/CCCS/Trigonometry/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_13.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,11 +50,11 @@ Context()->flags->set( # Main text BEGIN_PGML -Write the complex number [`[$z] `] in polar form, [` r(\cos(\theta)+i\sin(\theta)) `], with [` r>0, 0 \leq \theta \leq 2 \pi`]. +Write the complex number [`[$z] `] in polar form, [` r(\cos(\theta)+i\sin(\theta)) `], with [` r>0, 0 \leq \theta \leq 2 \pi`]. -[________________________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[________________________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_15.pg b/Contrib/CCCS/Trigonometry/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_15.pg index c1d79ea510..1b8baa18e6 100644 --- a/Contrib/CCCS/Trigonometry/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_15.pg +++ b/Contrib/CCCS/Trigonometry/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_15.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -35,8 +35,8 @@ TEXT(beginproblem()); $n = random(1,4,1); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -58,14 +58,14 @@ if($n == 1) { # Main text BEGIN_PGML -Write the complex number [` \sqrt{3}+i `] in polar form, [` r(\cos(\theta)+i\sin(\theta)) `], -with [` r>0, 0 \leq \theta \leq 2 \pi`]. +Write the complex number [` \sqrt{3}+i `] in polar form, [` r(\cos(\theta)+i\sin(\theta)) `], +with [` r>0, 0 \leq \theta \leq 2 \pi`]. -[________________________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[________________________________]{$ans} [@ helpLink("numbers") @]* -[$video]* +[$video]* END_PGML @@ -91,14 +91,14 @@ if($n == 2) { # Main text BEGIN_PGML -Write the complex number [` 1+i `] in polar form, [` r(\cos(\theta)+i\sin(\theta)) `], -with [` r>0, 0 \leq \theta \leq 2 \pi`]. +Write the complex number [` 1+i `] in polar form, [` r(\cos(\theta)+i\sin(\theta)) `], +with [` r>0, 0 \leq \theta \leq 2 \pi`]. -[________________________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[________________________________]{$ans} [@ helpLink("numbers") @]* -[$video]* +[$video]* END_PGML @@ -125,14 +125,14 @@ if($n == 3) { # Main text BEGIN_PGML -Write the complex number [` -1+\sqrt{3}i `] in polar form, [` r(\cos(\theta)+i\sin(\theta)) `], -with [` r>0, 0 \leq \theta \leq 2 \pi`]. +Write the complex number [` -1+\sqrt{3}i `] in polar form, [` r(\cos(\theta)+i\sin(\theta)) `], +with [` r>0, 0 \leq \theta \leq 2 \pi`]. -[________________________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[________________________________]{$ans} [@ helpLink("numbers") @]* -[$video]* +[$video]* END_PGML @@ -158,13 +158,13 @@ if($n == 4) { # Main text BEGIN_PGML -Write the complex number [` 1-i `] in polar form, [` r(\cos(\theta)+i\sin(\theta)) `], -with [` r>0, 0 \leq \theta \leq 2 \pi`]. +Write the complex number [` 1-i `] in polar form, [` r(\cos(\theta)+i\sin(\theta)) `], +with [` r>0, 0 \leq \theta \leq 2 \pi`]. -[________________________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[________________________________]{$ans} [@ helpLink("numbers") @]* -[$video]* +[$video]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_16.pg b/Contrib/CCCS/Trigonometry/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_16.pg index c2f2185521..63cf4a094d 100644 --- a/Contrib/CCCS/Trigonometry/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_16.pg +++ b/Contrib/CCCS/Trigonometry/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_16.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,11 +51,11 @@ if($n ==1) { # Main text BEGIN_PGML - Write the complex number [`[$z] `] in polar form, [` r(\cos(\theta)+i\sin(\theta)) `], with [` - r>0, 0 \leq \theta \leq 2 \pi`]. + Write the complex number [`[$z] `] in polar form, [` r(\cos(\theta)+i\sin(\theta)) `], with [` + r>0, 0 \leq \theta \leq 2 \pi`]. - [________________________________]{$ans} [@ AnswerFormatHelp("numbers") @]* + [________________________________]{$ans} [@ helpLink("numbers") @]* END_PGML } @@ -78,11 +78,11 @@ if($n ==2) { # Main text BEGIN_PGML - Write the complex number [`[$z] `] in polar form, [` r(\cos(\theta)+i\sin(\theta)) `], with [` - r>0, 0 \leq \theta \leq 2 \pi`]. + Write the complex number [`[$z] `] in polar form, [` r(\cos(\theta)+i\sin(\theta)) `], with [` + r>0, 0 \leq \theta \leq 2 \pi`]. - [________________________________]{$ans} [@ AnswerFormatHelp("numbers") @]* + [________________________________]{$ans} [@ helpLink("numbers") @]* END_PGML } diff --git a/Contrib/CCCS/Trigonometry/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_17.pg b/Contrib/CCCS/Trigonometry/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_17.pg index 8e85fd7fb6..f71d3f3d8b 100644 --- a/Contrib/CCCS/Trigonometry/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_17.pg +++ b/Contrib/CCCS/Trigonometry/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_17.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -42,13 +42,13 @@ Context()->flags->set( # random integer to choose an angle $n=random(0,5,1); -# Array of 8 angles +# Array of 8 angles @latexfraction=("pi/3" ,"pi/4" ,"pi/6", "(2pi)/3" , "(3pi)/4", "(5pi)/6"); # Selecting angle for PGML $thetadisp = $latexfraction[$n] ; -# Array of 8 angles +# Array of 8 angles @fraction=(pi/3 ,pi/4 ,pi/6, 2*pi/3, 3*pi/4, 5*pi/6); # Selecting angle for Compute @@ -70,7 +70,7 @@ BEGIN_PGML Convert the complex number `z=[$r](\cos([$thetadisp])+i\sin([$thetadisp]))` from polar to rectangular form. Make sure to evaluate the trigonometric functions. -[`z = `] [______]{$ansx} [`+`] [______]{$ansy}[`i`] [` \ \ \ \ `] [@ AnswerFormatHelp("numbers") @]* +[`z = `] [______]{$ansx} [`+`] [______]{$ansy}[`i`] [` \ \ \ \ `] [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_19.pg b/Contrib/CCCS/Trigonometry/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_19.pg index ed28a07f45..ef7eb22d4f 100644 --- a/Contrib/CCCS/Trigonometry/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_19.pg +++ b/Contrib/CCCS/Trigonometry/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_19.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -42,13 +42,13 @@ Context()->flags->set( # random integer to choose an angle $n=random(0,5,1); -# Array of 8 angles +# Array of 8 angles @latexfraction=("(4pi)/3" ,"(5pi)/4" ,"(7pi)/6", "(5pi)/3" , "(7pi)/4", "(11pi)/6"); # Selecting angle for PGML $thetadisp = $latexfraction[$n] ; -# Array of 8 angles +# Array of 8 angles @fraction=(4*pi/3 ,5*pi/4 ,7*pi/6, 5*pi/3, 7*pi/4, 11*pi/6); # Selecting angle for Compute @@ -68,7 +68,7 @@ BEGIN_PGML Convert the complex number `z=[$r](\cos([$thetadisp])+i\sin([$thetadisp]))` from polar to rectangular form. Make sure to evaluate the trigonometric functions. -[`z = `] [______]{$ansx} [`+`] [______]{$ansy}[`i`] [` \ \ \ \ `] [@ AnswerFormatHelp("numbers") @]* +[`z = `] [______]{$ansx} [`+`] [______]{$ansy}[`i`] [` \ \ \ \ `] [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_20.pg b/Contrib/CCCS/Trigonometry/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_20.pg index 21eb776193..33277814e6 100644 --- a/Contrib/CCCS/Trigonometry/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_20.pg +++ b/Contrib/CCCS/Trigonometry/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_20.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -56,7 +56,7 @@ BEGIN_PGML Convert the complex number [`z=[$r](\cos([$theta]^\circ)+i\sin([$theta]^\circ))`] from polar to rectangular form. Make sure to evaluate trigonometric functions. -[`z = `] [______]{$ansx} [`+`] [______]{$ansy}[`i`] [` \ \ \ \ `] [@ AnswerFormatHelp("numbers") @]* +[`z = `] [______]{$ansx} [`+`] [______]{$ansy}[`i`] [` \ \ \ \ `] [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_21.pg b/Contrib/CCCS/Trigonometry/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_21.pg index 2c7f751ecf..591150de6d 100644 --- a/Contrib/CCCS/Trigonometry/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_21.pg +++ b/Contrib/CCCS/Trigonometry/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_21.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -55,7 +55,7 @@ BEGIN_PGML Convert the complex number [`z=[$r](\cos([$theta]^\circ)+i\sin([$theta]^\circ))`] from polar to rectangular form. Make sure to evaluate trigonometric functions. -[`z = `] [______]{$ansx} [`+`] [______]{$ansy}[`i`] [` \ \ \ \ `] [@ AnswerFormatHelp("numbers") @]* +[`z = `] [______]{$ansx} [`+`] [______]{$ansy}[`i`] [` \ \ \ \ `] [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_23.pg b/Contrib/CCCS/Trigonometry/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_23.pg index cc339a9615..8b6fc60b24 100644 --- a/Contrib/CCCS/Trigonometry/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_23.pg +++ b/Contrib/CCCS/Trigonometry/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_23.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -43,8 +43,8 @@ do {$theta2 = random(115,165,1);} until ((($theta1+$theta2)>190) and (($theta1+$ $ans = Compute("$r1*$r2(cos($theta1+$theta2)+i*sin($theta1+$theta2))"); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -55,15 +55,15 @@ TeX => # Main text BEGIN_PGML -Find [`z_1 z_2`] in polar form where [`z_1=[$r1](\cos([$theta1]^\circ)+i\sin([$theta1]^\circ))`] and [`z_2=[$r2](\cos([$theta2]^\circ)+i\sin([$theta2]^\circ))`]. +Find [`z_1 z_2`] in polar form where [`z_1=[$r1](\cos([$theta1]^\circ)+i\sin([$theta1]^\circ))`] and [`z_2=[$r2](\cos([$theta2]^\circ)+i\sin([$theta2]^\circ))`]. Polar form is [` r(\cos(\theta)+i\sin(\theta)) `], with [` r>0, 0^\circ \leq \theta \leq 360^\circ`]. -[`z_1 z_2=`] [______________________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`z_1 z_2=`] [______________________________]{$ans} [@ helpLink("numbers") @]* -[$video]* +[$video]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_25.pg b/Contrib/CCCS/Trigonometry/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_25.pg index 4d7f4aa4af..c138c00577 100644 --- a/Contrib/CCCS/Trigonometry/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_25.pg +++ b/Contrib/CCCS/Trigonometry/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_25.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -46,12 +46,12 @@ $ans = Compute("$r1*$r2(cos($theta1+$theta2)+i*sin($theta1+$theta2))"); # Main text BEGIN_PGML -Find [`z_1 z_2`] in polar form where [`z_1=[$r1](\cos([$theta1]^\circ)+i\sin([$theta1]^\circ))`] and [`z_2=[$r2](\cos([$theta2]^\circ)+i\sin([$theta2]^\circ))`]. +Find [`z_1 z_2`] in polar form where [`z_1=[$r1](\cos([$theta1]^\circ)+i\sin([$theta1]^\circ))`] and [`z_2=[$r2](\cos([$theta2]^\circ)+i\sin([$theta2]^\circ))`]. Polar form is [` r(\cos(\theta)+i\sin(\theta)) `], with [` r>0, 0^\circ \leq \theta \leq 360^\circ`]. -[`z_1 z_2=`] [______________________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`z_1 z_2=`] [______________________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_29.pg b/Contrib/CCCS/Trigonometry/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_29.pg index 4ab28ef214..1a34f0b8b6 100644 --- a/Contrib/CCCS/Trigonometry/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_29.pg +++ b/Contrib/CCCS/Trigonometry/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_29.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -46,12 +46,12 @@ $ans = Compute("$r1/$r2(cos($theta1-$theta2)+i*sin($theta1-$theta2))"); # Main text BEGIN_PGML -Find [``\frac{z_1}{ z_2}``] in polar form where [`z_1=[$r1](\cos([$theta1]^\circ)+i\sin([$theta1]^\circ))`] and [`z_2=[$r2](\cos([$theta2]^\circ)+i\sin([$theta2]^\circ))`]. +Find [``\frac{z_1}{ z_2}``] in polar form where [`z_1=[$r1](\cos([$theta1]^\circ)+i\sin([$theta1]^\circ))`] and [`z_2=[$r2](\cos([$theta2]^\circ)+i\sin([$theta2]^\circ))`]. Polar form is [` r(\cos(\theta)+i\sin(\theta)) `], with [` r>0, 0^\circ \leq \theta \leq 360^\circ`]. -[``\dfrac{z_1}{ z_2}=``] [______________________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[``\dfrac{z_1}{ z_2}=``] [______________________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_31.pg b/Contrib/CCCS/Trigonometry/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_31.pg index de079726ae..2be98802f2 100644 --- a/Contrib/CCCS/Trigonometry/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_31.pg +++ b/Contrib/CCCS/Trigonometry/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_31.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -46,12 +46,12 @@ $ans = Compute("$r1/$r2(cos($theta1-$theta2)+i*sin($theta1-$theta2))"); # Main text BEGIN_PGML -Find [``\frac{z_1}{ z_2}``] in polar form where [`z_1=[$r1](\cos([$theta1]^\circ)+i\sin([$theta1]^\circ))`] and [`z_2=[$r2](\cos([$theta2]^\circ)+i\sin([$theta2]^\circ))`]. +Find [``\frac{z_1}{ z_2}``] in polar form where [`z_1=[$r1](\cos([$theta1]^\circ)+i\sin([$theta1]^\circ))`] and [`z_2=[$r2](\cos([$theta2]^\circ)+i\sin([$theta2]^\circ))`]. Polar form is [` r(\cos(\theta)+i\sin(\theta)) `], with [` r>0, 0^\circ \leq \theta \leq 360^\circ`]. -[``\frac{z_1}{ z_2}=``] [______________________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[``\frac{z_1}{ z_2}=``] [______________________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_35.pg b/Contrib/CCCS/Trigonometry/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_35.pg index bdeab033a0..afc173b4ac 100644 --- a/Contrib/CCCS/Trigonometry/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_35.pg +++ b/Contrib/CCCS/Trigonometry/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_35.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -46,8 +46,8 @@ $ans2 = $r**3*cos(3*$theta); $ans3 = $r**3*sin(3*$theta); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -56,17 +56,17 @@ TeX => # Main text BEGIN_PGML -Find [`z^3`] in polar form and rectangular form where [`z=[$r](\cos([$theta]^\circ)+i\sin([$theta]^\circ))`]. +Find [`z^3`] in polar form and rectangular form where [`z=[$r](\cos([$theta]^\circ)+i\sin([$theta]^\circ))`]. Polar form is [` r(\cos(\theta)+i\sin(\theta)) `], with [` r>0, 0^\circ \leq \theta \leq 360^\circ`]. -Polar form: [`z^3=`] [______________________________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +Polar form: [`z^3=`] [______________________________]{$ans1} [@ helpLink("numbers") @]* -Rectangular form: [`z^3=`] [____]{$ans2}+[____]{$ans3}[`i`] +Rectangular form: [`z^3=`] [____]{$ans2}+[____]{$ans3}[`i`] -[$video]* +[$video]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_37.pg b/Contrib/CCCS/Trigonometry/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_37.pg index e973bfcdff..1bf808fef7 100644 --- a/Contrib/CCCS/Trigonometry/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_37.pg +++ b/Contrib/CCCS/Trigonometry/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_37.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -50,14 +50,14 @@ $ans3 = $r**2*sin(2*$theta); # Main text BEGIN_PGML -Find [`z^2`] in polar form and rectangular form where [`z=[$r](\cos([$theta]^\circ)+i\sin([$theta]^\circ))`]. +Find [`z^2`] in polar form and rectangular form where [`z=[$r](\cos([$theta]^\circ)+i\sin([$theta]^\circ))`]. Polar form is [` r(\cos(\theta)+i\sin(\theta)) `], with [` r>0, 0^\circ \leq \theta \leq 360^\circ`]. -Polar form: [`z^2=`] [______________________________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +Polar form: [`z^2=`] [______________________________]{$ans1} [@ helpLink("numbers") @]* -Rectangular form: [`z^2=`] [____]{$ans2}+[____]{$ans3}[`i`] +Rectangular form: [`z^2=`] [____]{$ans2}+[____]{$ans3}[`i`] END_PGML diff --git a/Contrib/CCCS/Trigonometry/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_38.pg b/Contrib/CCCS/Trigonometry/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_38.pg index 41330953f2..42f7e0e78a 100644 --- a/Contrib/CCCS/Trigonometry/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_38.pg +++ b/Contrib/CCCS/Trigonometry/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_38.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -37,13 +37,13 @@ Context("Complex"); # random integer to choose an angle $n=random(0,3,1); -# Array of 8 angles +# Array of 8 angles @latexfraction=("pi/6" ,"pi/3", "(2pi)/3" , "(5pi)/6"); # Selecting angle for PGML $thetadisp = $latexfraction[$n] ; -# Array of 8 angles +# Array of 8 angles @fraction=(pi/6 , pi/3, 2*pi/3, 5*pi/6); # Selecting angle for Compute @@ -62,14 +62,14 @@ $ans3 = Compute("$y"); # Main text BEGIN_PGML -Find [`z^2 `] in polar form and rectangular form where `z=[$r](\cos([$thetadisp])+i\sin([$thetadisp]))`. +Find [`z^2 `] in polar form and rectangular form where `z=[$r](\cos([$thetadisp])+i\sin([$thetadisp]))`. Polar form is [` r(\cos(\theta)+i\sin(\theta)) `], with [` r>0, 0 \leq \theta \leq 2\pi`]. -Polar form: [`z^2 =`] [______________________________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +Polar form: [`z^2 =`] [______________________________]{$ans1} [@ helpLink("numbers") @]* -Rectangular form: [`z^2 = `] [______]{$ans2} [`+`] [______]{$ans3}[`i`] [` \ \ \ \ `] [@ AnswerFormatHelp("numbers") @]* +Rectangular form: [`z^2 = `] [______]{$ans2} [`+`] [______]{$ans3}[`i`] [` \ \ \ \ `] [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_39.pg b/Contrib/CCCS/Trigonometry/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_39.pg index 85603c4d2b..6e29fb939b 100644 --- a/Contrib/CCCS/Trigonometry/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_39.pg +++ b/Contrib/CCCS/Trigonometry/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_39.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -37,13 +37,13 @@ Context("Complex"); # random integer to choose an angle $n=random(0,3,1); -# Array of 8 angles +# Array of 8 angles @latexfraction=("pi/6" ,"pi/3", "(3pi)/16" , "(5pi)/24"); # Selecting angle for PGML $thetadisp = $latexfraction[$n] ; -# Array of 8 angles +# Array of 8 angles @fraction=(pi/6 , pi/3, 3*pi/(16), 5*pi/(24)); # Selecting angle for Compute @@ -62,14 +62,14 @@ $ans3 = Compute("$y"); # Main text BEGIN_PGML -Find [`z^4 `] in polar form and rectangular form where `z=[$r](\cos([$thetadisp])+i\sin([$thetadisp]))`. +Find [`z^4 `] in polar form and rectangular form where `z=[$r](\cos([$thetadisp])+i\sin([$thetadisp]))`. Polar form is [` r(\cos(\theta)+i\sin(\theta)) `], with [` r>0, 0 \leq \theta \leq 2\pi`]. -Polar form: [`z^4 =`] [______________________________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +Polar form: [`z^4 =`] [______________________________]{$ans1} [@ helpLink("numbers") @]* -Rectangular form: [`z^4 = `] [______]{$ans2} [`+`] [______]{$ans3}[`i`] [` \ \ \ \ `] [@ AnswerFormatHelp("numbers") @]* +Rectangular form: [`z^4 = `] [______]{$ans2} [`+`] [______]{$ans3}[`i`] [` \ \ \ \ `] [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_41.pg b/Contrib/CCCS/Trigonometry/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_41.pg index a1c36a759d..9b884da191 100644 --- a/Contrib/CCCS/Trigonometry/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_41.pg +++ b/Contrib/CCCS/Trigonometry/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_41.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -50,16 +50,16 @@ $ans3 = Compute("$r^(1/3)(cos($theta/3+2*360/3)+i*sin($theta/3+2*360/3))"); #for # Main text BEGIN_PGML -Evaluate the cube roots of [`z`] in polar form where [`z=[$r](\cos([$theta]^\circ)+i\sin([$theta]^\circ))`]. +Evaluate the cube roots of [`z`] in polar form where [`z=[$r](\cos([$theta]^\circ)+i\sin([$theta]^\circ))`]. Polar form is [` r(\cos(\theta)+i\sin(\theta)) `], with [` r>0, 0^\circ \leq \theta \leq 360^\circ`]. -For [`k=0`]: [______________________________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +For [`k=0`]: [______________________________]{$ans1} [@ helpLink("numbers") @]* -For [`k=1`]: [______________________________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +For [`k=1`]: [______________________________]{$ans2} [@ helpLink("numbers") @]* -For [`k=2`]: [______________________________]{$ans3} [@ AnswerFormatHelp("numbers") @]* +For [`k=2`]: [______________________________]{$ans3} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_42.pg b/Contrib/CCCS/Trigonometry/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_42.pg index bd221553f4..e404ceeef7 100644 --- a/Contrib/CCCS/Trigonometry/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_42.pg +++ b/Contrib/CCCS/Trigonometry/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_42.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -49,14 +49,14 @@ $ans2 = Compute("$r^(1/2)(cos($theta/2+1*360/2)+i*sin($theta/2+1*360/2))"); #for # Main text BEGIN_PGML -Evaluate the square roots of [`z`] in polar form where [`z=[$r](\cos([$theta]^\circ)+i\sin([$theta]^\circ))`]. +Evaluate the square roots of [`z`] in polar form where [`z=[$r](\cos([$theta]^\circ)+i\sin([$theta]^\circ))`]. Polar form is [` r(\cos(\theta)+i\sin(\theta)) `], with [` r>0, 0^\circ \leq \theta \leq 360^\circ`]. -For [`k=0`]: [______________________________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +For [`k=0`]: [______________________________]{$ans1} [@ helpLink("numbers") @]* -For [`k=1`]: [______________________________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +For [`k=1`]: [______________________________]{$ans2} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_44.pg b/Contrib/CCCS/Trigonometry/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_44.pg index 915a733fe6..ae4b94787d 100644 --- a/Contrib/CCCS/Trigonometry/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_44.pg +++ b/Contrib/CCCS/Trigonometry/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_44.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -37,13 +37,13 @@ Context("Complex"); # random integer to choose an angle $n=random(0,6,1); -# Array of 8 angles +# Array of 8 angles @latexfraction=("pi/3" ,"(2pi)/3", "(3pi)/4" , "(5pi)/6","(7pi)/6","(5pi)/4","(4pi)/3"); # Selecting angle for PGML $thetadisp = $latexfraction[$n] ; -# Array of 8 angles +# Array of 8 angles @fraction=(pi/3 , 2*pi/3, 3*pi/4, 5*pi/6, 7*pi/6, 5*pi/4, 4*pi/3); # Selecting angle for Compute @@ -58,13 +58,13 @@ $ans2 = Compute("$r^(1/2)*(cos($theta/2+pi)+i*sin($theta/2+pi))"); #for k =1 # Main text BEGIN_PGML -Evaluate the square roots of [`z`] in polar form where `z=[$r](\cos([$thetadisp])+i\sin([$thetadisp]))`. +Evaluate the square roots of [`z`] in polar form where `z=[$r](\cos([$thetadisp])+i\sin([$thetadisp]))`. Polar form is [` r(\cos(\theta)+i\sin(\theta)) `], with [` r>0, 0 \leq \theta \leq 2\pi`]. -For [`k=0`] [______________________________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +For [`k=0`] [______________________________]{$ans1} [@ helpLink("numbers") @]* -For [`k=1`] [______________________________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +For [`k=1`] [______________________________]{$ans2} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_6.pg b/Contrib/CCCS/Trigonometry/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_6.pg index 82ac427442..90e34a4d1e 100644 --- a/Contrib/CCCS/Trigonometry/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_6.pg +++ b/Contrib/CCCS/Trigonometry/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_6.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -47,7 +47,7 @@ BEGIN_PGML Find the absolute value of the complex number [`[$z] `] . -[_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_8.pg b/Contrib/CCCS/Trigonometry/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_8.pg index 813d033b82..6f48b9a75d 100644 --- a/Contrib/CCCS/Trigonometry/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_8.pg +++ b/Contrib/CCCS/Trigonometry/10.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_5_8.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -47,7 +47,7 @@ BEGIN_PGML Find the absolute value of the complex number [`[$z] `] . -[_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_11.pg b/Contrib/CCCS/Trigonometry/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_11.pg index 94bbf2505a..accb969d87 100644 --- a/Contrib/CCCS/Trigonometry/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_11.pg +++ b/Contrib/CCCS/Trigonometry/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_11.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserPopUp.pl", diff --git a/Contrib/CCCS/Trigonometry/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_16.pg b/Contrib/CCCS/Trigonometry/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_16.pg index c789bb6cf6..8cad42c2cb 100644 --- a/Contrib/CCCS/Trigonometry/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_16.pg +++ b/Contrib/CCCS/Trigonometry/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_16.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -47,8 +47,8 @@ $w = $m*i+$n*j; $ans = $u+$v-$w; $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -60,9 +60,9 @@ TeX => BEGIN_PGML Use the vectors [`\mathbf{u}=[$u]`], [`\mathbf{v}=[$v]`], and [`\mathbf{w}=[$w]`] to find -[` \mathbf{u}+(\mathbf{v}-\mathbf{w}) = `] [_______________]{$ans} [@ AnswerFormatHelp("vectors") @]* +[` \mathbf{u}+(\mathbf{v}-\mathbf{w}) = `] [_______________]{$ans} [@ helpLink("vectors") @]* -[$video]* +[$video]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_17.pg b/Contrib/CCCS/Trigonometry/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_17.pg index 51bc076654..56d5ce1020 100644 --- a/Contrib/CCCS/Trigonometry/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_17.pg +++ b/Contrib/CCCS/Trigonometry/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_17.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,7 +51,7 @@ $ans = $p*$v+$q*$u; BEGIN_PGML Use the vectors [`\mathbf{u}=[$u]`] and [`\mathbf{v}=[$v]`] to find -[` [$p]\mathbf{v}+[$q]\mathbf{u} = `] [_______________]{$ans} [@ AnswerFormatHelp("vectors") @]* +[` [$p]\mathbf{v}+[$q]\mathbf{u} = `] [_______________]{$ans} [@ helpLink("vectors") @]* END_PGML ############################ diff --git a/Contrib/CCCS/Trigonometry/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_19.pg b/Contrib/CCCS/Trigonometry/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_19.pg index e42a0e5bd8..c23c1e5922 100644 --- a/Contrib/CCCS/Trigonometry/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_19.pg +++ b/Contrib/CCCS/Trigonometry/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_19.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -53,11 +53,11 @@ $ans3 = $p*$u - $q*$v; BEGIN_PGML Use the vectors [`\mathbf{u}=[$u]`] and [`\mathbf{v}=[$v]`] to find the following: -[` \mathbf{u}+\mathbf{v} = `] [_______________]{$ans1} [@ AnswerFormatHelp("vectors") @]* +[` \mathbf{u}+\mathbf{v} = `] [_______________]{$ans1} [@ helpLink("vectors") @]* -[` \mathbf{u}-\mathbf{v} = `] [_______________]{$ans2} [@ AnswerFormatHelp("vectors") @]* +[` \mathbf{u}-\mathbf{v} = `] [_______________]{$ans2} [@ helpLink("vectors") @]* -[` [$p]\mathbf{u}-[$q]\mathbf{v} = `] [_______________]{$ans3} [@ AnswerFormatHelp("vectors") @]* +[` [$p]\mathbf{u}-[$q]\mathbf{v} = `] [_______________]{$ans3} [@ helpLink("vectors") @]* END_PGML ############################ diff --git a/Contrib/CCCS/Trigonometry/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_20.pg b/Contrib/CCCS/Trigonometry/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_20.pg index f0205c7320..8bc1260100 100644 --- a/Contrib/CCCS/Trigonometry/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_20.pg +++ b/Contrib/CCCS/Trigonometry/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_20.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -45,7 +45,7 @@ $ans1 = (1/2)*$v; BEGIN_PGML Let [`\mathbf{v}=[$v]`]. Find a vector [`\mathbf{u}`] that is half the length of [`\mathbf{v}`] and points in the same direction as [`\mathbf{v}`]. -[` \mathbf{u} = `] [_______________]{$ans1} [@ AnswerFormatHelp("vectors") @]* +[` \mathbf{u} = `] [_______________]{$ans1} [@ helpLink("vectors") @]* END_PGML ############################ diff --git a/Contrib/CCCS/Trigonometry/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_28.pg b/Contrib/CCCS/Trigonometry/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_28.pg index 879b107ea6..3fdeb8070f 100644 --- a/Contrib/CCCS/Trigonometry/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_28.pg +++ b/Contrib/CCCS/Trigonometry/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_28.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -47,9 +47,9 @@ if($d>0){$ans2 = Compute("pi/2");} BEGIN_PGML Find the magnitude and direction of [`\mathbf{u}=[$u]`] where [`0 \leq \theta < 2\pi`]. -[` |\mathbf{u}| = `] [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +[` |\mathbf{u}| = `] [_______________]{$ans1} [@ helpLink("numbers") @]* -[` \theta = `] [_______________]{$ans2} [@ AnswerFormatHelp("angles") @]* +[` \theta = `] [_______________]{$ans2} [@ helpLink("angles") @]* END_PGML ############################ diff --git a/Contrib/CCCS/Trigonometry/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_30.pg b/Contrib/CCCS/Trigonometry/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_30.pg index eb5b50eb4b..2d899e4a99 100644 --- a/Contrib/CCCS/Trigonometry/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_30.pg +++ b/Contrib/CCCS/Trigonometry/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_30.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -46,9 +46,9 @@ $ans2 = Compute("arctan($d/$c)+2pi"); BEGIN_PGML Find the magnitude and direction of [`\mathbf{u}=[$u]`] where [`0 \leq \theta < 2\pi`]. -[` |\mathbf{u}| = `] [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +[` |\mathbf{u}| = `] [_______________]{$ans1} [@ helpLink("numbers") @]* -[` \theta = `] [_______________]{$ans2} [@ AnswerFormatHelp("angles") @]* +[` \theta = `] [_______________]{$ans2} [@ helpLink("angles") @]* END_PGML ############################ diff --git a/Contrib/CCCS/Trigonometry/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_32.pg b/Contrib/CCCS/Trigonometry/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_32.pg index e31c2a6e31..ae9bc25592 100644 --- a/Contrib/CCCS/Trigonometry/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_32.pg +++ b/Contrib/CCCS/Trigonometry/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_32.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,7 +48,7 @@ $ans = $v.$u; BEGIN_PGML Use the vectors [`\mathbf{u}=[$u]`] and [`\mathbf{v}=[$v]`] to find -[` \mathbf{u} \cdot \mathbf{v} = `] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[` \mathbf{u} \cdot \mathbf{v} = `] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML ############################ diff --git a/Contrib/CCCS/Trigonometry/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_33.pg b/Contrib/CCCS/Trigonometry/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_33.pg index 8f311675f0..a4e47f79ef 100644 --- a/Contrib/CCCS/Trigonometry/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_33.pg +++ b/Contrib/CCCS/Trigonometry/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_33.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,7 +48,7 @@ $ans = $v.$u; BEGIN_PGML Use the vectors [`\mathbf{u}=[$u]`] and [`\mathbf{v}=[$v]`] to find -[` \mathbf{u} \cdot \mathbf{v} = `] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[` \mathbf{u} \cdot \mathbf{v} = `] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML ############################ diff --git a/Contrib/CCCS/Trigonometry/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_51.pg b/Contrib/CCCS/Trigonometry/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_51.pg index 03520a1ebe..216f197875 100644 --- a/Contrib/CCCS/Trigonometry/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_51.pg +++ b/Contrib/CCCS/Trigonometry/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_51.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -38,13 +38,13 @@ $lv = random(2,9,1); # random integer to choose angle $n=random(0,5,1); -# Array of 6 angles +# Array of 6 angles @latexangle=("pi/3" ,"pi/4" ,"pi/6", "(2pi)/3" , "(3pi)/4", "(5pi)/6"); # Selecting angle for PGML $thetadisp = $latexangle[$n] ; -# Array of 6 angles +# Array of 6 angles @angle=(pi/3 ,pi/4 ,pi/6, 2*pi/3, 3*pi/4, 5*pi/6); # Selecting angle for Compute @@ -54,8 +54,8 @@ $ans = Vector($lv*cos($theta),$lv*sin($theta)); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -69,9 +69,9 @@ Use the given magnitude and direction to find the vector [`\mathbf{v}`] in stand [`|\mathbf{v}|=[$lv]`], [`\theta =`] `[$thetadisp]` -[` \mathbf{v} = `] [________________________]{$ans} [@ AnswerFormatHelp("vectors") @]* +[` \mathbf{v} = `] [________________________]{$ans} [@ helpLink("vectors") @]* -[$video]* +[$video]* END_PGML diff --git a/Contrib/CCCS/Trigonometry/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_53.pg b/Contrib/CCCS/Trigonometry/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_53.pg index fd7601c140..7cb413dfa4 100644 --- a/Contrib/CCCS/Trigonometry/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_53.pg +++ b/Contrib/CCCS/Trigonometry/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_53.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -38,13 +38,13 @@ $lv = random(2,9,1); # random integer to choose angle $n=random(0,5,1); -# Array of 6 angles +# Array of 6 angles @latexangle=("(4pi)/3" ,"(5pi)/4" ,"(7pi)/6", "(5pi)/3" , "(7pi)/4", "(11pi)/6"); # Selecting angle for PGML $thetadisp = $latexangle[$n] ; -# Array of 6 angles +# Array of 6 angles @angle=(4*pi/3 ,5*pi/4 ,7*pi/6, 5*pi/3, 7*pi/4, 11*pi/6); # Selecting angle for Compute @@ -60,7 +60,7 @@ Use the given magnitude and direction to find the vector [`\mathbf{v}`] in stand [`|\mathbf{v}|=[$lv]`], [`\theta =`] `[$thetadisp]` -[` \mathbf{v} = `] [________________________]{$ans} [@ AnswerFormatHelp("vectors") @]* +[` \mathbf{v} = `] [________________________]{$ans} [@ helpLink("vectors") @]* END_PGML ############################ diff --git a/Contrib/CCCS/Trigonometry/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_56.pg b/Contrib/CCCS/Trigonometry/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_56.pg index a70681ffce..4fff7069cb 100644 --- a/Contrib/CCCS/Trigonometry/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_56.pg +++ b/Contrib/CCCS/Trigonometry/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_56.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -49,12 +49,12 @@ Context()->flags->set( # Main text BEGIN_PGML -A [`[$lb]`] pound box is resting on a ramp that is inclined [`[$theta]^\circ`]. Rounding to the nearest tenth, answer the questions below. +A [`[$lb]`] pound box is resting on a ramp that is inclined [`[$theta]^\circ`]. Rounding to the nearest tenth, answer the questions below. -a) Find the magnitude of the normal (perpendicular) component of the force. [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +a) Find the magnitude of the normal (perpendicular) component of the force. [_______________]{$ans1} [@ helpLink("numbers") @]* -b) Find the magnitude of the component of the force that is parallel to the ramp. [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +b) Find the magnitude of the component of the force that is parallel to the ramp. [_______________]{$ans2} [@ helpLink("numbers") @]* END_PGML ############################ # Solution diff --git a/Contrib/CCCS/Trigonometry/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_58.pg b/Contrib/CCCS/Trigonometry/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_58.pg index fec196ef4f..96226ba36a 100644 --- a/Contrib/CCCS/Trigonometry/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_58.pg +++ b/Contrib/CCCS/Trigonometry/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_58.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -49,12 +49,12 @@ Context()->flags->set( # Main text BEGIN_PGML -Find the magnitude of the horizontal and vertical components of the vector with magnitude [`[$lb]`] pounds pointed in a direction of [`[$theta]^\circ`]. Round to the nearest hundredth. +Find the magnitude of the horizontal and vertical components of the vector with magnitude [`[$lb]`] pounds pointed in a direction of [`[$theta]^\circ`]. Round to the nearest hundredth. -a) Horizontal component magnitude: [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +a) Horizontal component magnitude: [_______________]{$ans1} [@ helpLink("numbers") @]* -b) Vertical component magnitude: [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +b) Vertical component magnitude: [_______________]{$ans2} [@ helpLink("numbers") @]* END_PGML ############################ # Solution diff --git a/Contrib/CCCS/Trigonometry/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_61.pg b/Contrib/CCCS/Trigonometry/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_61.pg index 5678161119..06887bf5b0 100644 --- a/Contrib/CCCS/Trigonometry/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_61.pg +++ b/Contrib/CCCS/Trigonometry/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_61.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -51,12 +51,12 @@ Context()->flags->set( # Main text BEGIN_PGML -A woman leaves home and walks [`[$a]`] miles west, then [`[$b]`] miles southwest. How far from home is she, and in what direction must she walk to head directly home? Round to the nearest tenth. +A woman leaves home and walks [`[$a]`] miles west, then [`[$b]`] miles southwest. How far from home is she, and in what direction must she walk to head directly home? Round to the nearest tenth. -a) Distance from home: [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +a) Distance from home: [_______________]{$ans1} [@ helpLink("numbers") @]* -b) Direction to walk: [_______________]{$ans2} [@ AnswerFormatHelp("angles") @]* +b) Direction to walk: [_______________]{$ans2} [@ helpLink("angles") @]* END_PGML ############################ # Solution diff --git a/Contrib/CCCS/Trigonometry/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_67.pg b/Contrib/CCCS/Trigonometry/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_67.pg index 5289ec890b..60a4353c65 100644 --- a/Contrib/CCCS/Trigonometry/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_67.pg +++ b/Contrib/CCCS/Trigonometry/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_67.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -52,12 +52,12 @@ Context()->flags->set( # Main text BEGIN_PGML -An airplane is heading north at an airspeed of [`[$a]`] km/hr, but there is a wind blowing from the southwest at [`[$b]`] km/hr. How many degrees off course will the plane end up flying, and what is the plane's speed relative to the ground? Round to the nearest tenth. +An airplane is heading north at an airspeed of [`[$a]`] km/hr, but there is a wind blowing from the southwest at [`[$b]`] km/hr. How many degrees off course will the plane end up flying, and what is the plane's speed relative to the ground? Round to the nearest tenth. -a) Degrees off course: [____________________]{$ans1} [@ AnswerFormatHelp("angles") @]* +a) Degrees off course: [____________________]{$ans1} [@ helpLink("angles") @]* -b) Speed relative to ground: [____________________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +b) Speed relative to ground: [____________________]{$ans2} [@ helpLink("numbers") @]* END_PGML ############################ # Solution diff --git a/Contrib/CCCS/Trigonometry/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_69.pg b/Contrib/CCCS/Trigonometry/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_69.pg index 810427406b..c6d0d53e68 100644 --- a/Contrib/CCCS/Trigonometry/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_69.pg +++ b/Contrib/CCCS/Trigonometry/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_69.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextTrigDegrees.pl", @@ -48,10 +48,10 @@ Context()->flags->set( # Main text BEGIN_PGML -An airplane needs to head due north, but there is a wind blowing from the southwest at [`[$b]`] km/hr. The plane flies with an airspeed of [`[$a]`] km/hr. To end up flying due north, how many degrees west of north will the pilot need to fly the plane? Round to the nearest tenth. +An airplane needs to head due north, but there is a wind blowing from the southwest at [`[$b]`] km/hr. The plane flies with an airspeed of [`[$a]`] km/hr. To end up flying due north, how many degrees west of north will the pilot need to fly the plane? Round to the nearest tenth. -[____________________]{$ans1} [@ AnswerFormatHelp("angles") @]* +[____________________]{$ans1} [@ helpLink("angles") @]* END_PGML ############################ diff --git a/Contrib/CCCS/Trigonometry/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_9.pg b/Contrib/CCCS/Trigonometry/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_9.pg index bd336a8a5b..3464ab2ec4 100644 --- a/Contrib/CCCS/Trigonometry/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_9.pg +++ b/Contrib/CCCS/Trigonometry/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_9.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserPopUp.pl", diff --git a/Contrib/CCCS/Trigonometry/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_EX16_1.pg b/Contrib/CCCS/Trigonometry/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_EX16_1.pg index 1eca9397ab..33f40a0144 100644 --- a/Contrib/CCCS/Trigonometry/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_EX16_1.pg +++ b/Contrib/CCCS/Trigonometry/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_EX16_1.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -53,7 +53,7 @@ $ans = Compute("$theta"); BEGIN_PGML Find the angle, [`\theta`], in radians between the vectors [`\mathbf{u}=[$u]`] and [`\mathbf{v}=[$v]`]. -[` \theta = `] [_______________]{$ans} [@ AnswerFormatHelp("angles") @]* +[` \theta = `] [_______________]{$ans} [@ helpLink("angles") @]* END_PGML ############################ diff --git a/Contrib/CCCS/Trigonometry/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_EX16_2.pg b/Contrib/CCCS/Trigonometry/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_EX16_2.pg index d23b7fe448..25f8188b87 100644 --- a/Contrib/CCCS/Trigonometry/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_EX16_2.pg +++ b/Contrib/CCCS/Trigonometry/10.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_10_8_EX16_2.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -53,7 +53,7 @@ $ans = Compute("$theta"); BEGIN_PGML Find the angle, [`\theta`], in radians between the vectors [`\mathbf{u}=[$u]`] and [`\mathbf{v}=[$v]`]. -[` \theta = `] [_______________]{$ans} [@ AnswerFormatHelp("angles") @]* +[` \theta = `] [_______________]{$ans} [@ helpLink("angles") @]* END_PGML ############################ diff --git a/Contrib/CUNY/CityTech/Precalculus/setDifference_Quotient/intro-diff-quot.pg b/Contrib/CUNY/CityTech/Precalculus/setDifference_Quotient/intro-diff-quot.pg index a18973d5d3..e23cd01eb0 100644 --- a/Contrib/CUNY/CityTech/Precalculus/setDifference_Quotient/intro-diff-quot.pg +++ b/Contrib/CUNY/CityTech/Precalculus/setDifference_Quotient/intro-diff-quot.pg @@ -1,5 +1,5 @@ ##DESCRIPTION -## +## ##ENDDESCRIPTION ##KEYWORDS('algebra', 'function', 'input', 'output', 'rational function', 'difference quotient') @@ -15,14 +15,14 @@ ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", # Standard macros for PG language "MathObjects.pl", "PGML.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "niceTables.pl" ); @@ -84,7 +84,7 @@ row( "\(\color{red}{\square}\)", "\(f(\color{red}{\square})= 3 \color{red}{(\squ row( "\(\color{red}{\star}\)", "\(f(\color{red}{\star})= 3 \color{red}{(\star)} - 4\)" ,"\(3\star-4\)"). row( "\(\color{red}{a}\)", "\(f(\color{red}{a})= 3 \color{red}{(a)} - 4 \)","\(\color{green}{3a-4}\)" ). row( "\(\color{red}{a+h}\)", "\(\quad f(\color{red}{a+h})= 3 \color{red}{(a+h)} - 4 \quad\)","\(\quad \color{blue}{3a+3h-4}\quad\)" ). -endtable().$ECENTER; +endtable().$ECENTER; @@ -95,11 +95,11 @@ endtable().$ECENTER; # BEGIN_PGML - - + + >> ### The Difference Quotient of a Function ### << -Given a function [`f(x)`], we know how to evaluate an _output_ for whatever _input_ we are given. The input can be numerical and in this case it must be in the domain. But it can be also other things like [`\square`] (for practice), [`a`] and [`a+b`] (for reasons like the one we will see soon). In either case, in order to find the output, we need to substitute _each_ [`x`] in the definition of the function by the input, and then simplify the result algebraically, if possible. +Given a function [`f(x)`], we know how to evaluate an _output_ for whatever _input_ we are given. The input can be numerical and in this case it must be in the domain. But it can be also other things like [`\square`] (for practice), [`a`] and [`a+b`] (for reasons like the one we will see soon). In either case, in order to find the output, we need to substitute _each_ [`x`] in the definition of the function by the input, and then simplify the result algebraically, if possible. It is also important to understand the notation. When you see [`f(9)=5`], it means that: @@ -107,7 +107,7 @@ It is also important to understand the notation. When you see [`f(9)=5`], it mea * the input is [`9`], * the output is denoted by [`f(9)`], and it is [`5`]. -If you have [`p(a+b) = a^2+b`], then +If you have [`p(a+b) = a^2+b`], then * the function is [`p(x)`], * the input is [`a+b`], @@ -134,7 +134,7 @@ Suppose that the function [`f(x)`] is defined by [`f(x) = 3x-4`]. The followin allcellcss=>'padding: 1pt;' ) @]*** -The **difference quotient** of a function [`f(x)`] is defined by +The **difference quotient** of a function [`f(x)`] is defined by >>[`\dfrac{f(a+h)-f(a)}{h}`]<< @@ -203,24 +203,24 @@ END_PGML_HINT BEGIN_PGML_SOLUTION -a. [`f(x)=[$f] \quad\underset{x\rightarrow a}\implies\quad f(a) = [$fa]`] +a. [`f(x)=[$f] \quad\underset{x\rightarrow a}\implies\quad f(a) = [$fa]`] -b. [`f(x)=[$f] \quad\underset{x\rightarrow a+h}\implies\quad f(a+h) = [$fB] (a+h) + [$fC] \quad=\quad [$fah] `] +b. [`f(x)=[$f] \quad\underset{x\rightarrow a+h}\implies\quad f(a+h) = [$fB] (a+h) + [$fC] \quad=\quad [$fah] `] So [`f(a+h) = [$fah] `]. - -c. [`f(a+h)-f(a) \quad=\quad ([$fah])-([$fa]) \quad=\quad [$fah] - [$fB] a - [$fC] \quad=\quad [$fdqNumer] `] - + +c. [`f(a+h)-f(a) \quad=\quad ([$fah])-([$fa]) \quad=\quad [$fah] - [$fB] a - [$fC] \quad=\quad [$fdqNumer] `] + So [`f(a+h)-f(a) = [$fdqNumer] `]. - -d. [`\displaystyle \frac{f(a+h) - f(a)}{h} \quad=\quad + +d. [`\displaystyle \frac{f(a+h) - f(a)}{h} \quad=\quad \frac{[$fdqNumer]}{h} \quad=\quad [$fdq] `] So [`\dfrac{f(a+h) - f(a)}{h} = [$fdq] `]. - + END_PGML_SOLUTION -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/Contrib/CUNY/CityTech/Precalculus/setLimits/limits-using-graphs.pg b/Contrib/CUNY/CityTech/Precalculus/setLimits/limits-using-graphs.pg index 1a568a11b1..8c979ef329 100644 --- a/Contrib/CUNY/CityTech/Precalculus/setLimits/limits-using-graphs.pg +++ b/Contrib/CUNY/CityTech/Precalculus/setLimits/limits-using-graphs.pg @@ -18,7 +18,7 @@ loadMacros( "PGstandard.pl", "PGgraphmacros.pl", "freemanMacros.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGcourse.pl" ); @@ -41,14 +41,14 @@ BEGIN_TEXT The graph of the function \(f(x)\) is shown in the figure below. $PAR -\{ image(insertGraph($graphObject), 'width'=>300,'height'=>300) \} +\{ image(insertGraph($graphObject), 'width'=>300,'height'=>300) \} $PAR -As \(x \to $to\) the function \(f(x)\to \) \{ ans_rule(5) \} +As \(x \to $to\) the function \(f(x)\to \) \{ ans_rule(5) \} END_TEXT SOLUTION(EV3(<<'END_SOLUTION')); -$BR$BBOLD Solution:$EBOLD +$BR$BBOLD Solution:$EBOLD The graph suggests that \(f(x) \to $lim\) as \(x \to $to\) END_SOLUTION diff --git a/Contrib/CUNY/OPLremix/Library/CCCS/CalculusOne/05.4/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_4_208.pg b/Contrib/CUNY/OPLremix/Library/CCCS/CalculusOne/05.4/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_4_208.pg index 54484bbf23..690a133939 100644 --- a/Contrib/CUNY/OPLremix/Library/CCCS/CalculusOne/05.4/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_4_208.pg +++ b/Contrib/CUNY/OPLremix/Library/CCCS/CalculusOne/05.4/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_4_208.pg @@ -19,7 +19,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserFormulaUpToConstant.pl" @@ -38,7 +38,7 @@ BEGIN_PGML Evaluate the following indefinite integral. -[``\displaystyle \int \frac{e^{x/[$b]}}{[$a]} - e^{[$c] x} \, dx =``][______________________]{$func} [@ AnswerFormatHelp("formulas") @]* +[``\displaystyle \int \frac{e^{x/[$b]}}{[$a]} - e^{[$c] x} \, dx =``][______________________]{$func} [@ helpLink("formulas") @]* _You can use "C" for any arbitrary constant in your answer._ END_PGML diff --git a/Contrib/CUNY/OPLremix/Library/CCCS/CalculusOne/05.4/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_4_210.pg b/Contrib/CUNY/OPLremix/Library/CCCS/CalculusOne/05.4/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_4_210.pg index dfabc90230..735df44010 100644 --- a/Contrib/CUNY/OPLremix/Library/CCCS/CalculusOne/05.4/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_4_210.pg +++ b/Contrib/CUNY/OPLremix/Library/CCCS/CalculusOne/05.4/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_4_210.pg @@ -21,7 +21,7 @@ loadMacros( "PGML.pl", "PGchoicemacros.pl", "PGanswermacros.pl", -"AnswerFormatHelp.pl", + "PGauxiliaryFunctions.pl", "parserFormulaUpToConstant.pl" ); @@ -37,7 +37,7 @@ BEGIN_PGML Evaluate the following indefinite integral. -[`` \displaystyle \int \frac{[$a] x-[$b]}{x^2} \, dx =``][___________________________]{$func}[@ AnswerFormatHelp("formulas") @]* +[`` \displaystyle \int \frac{[$a] x-[$b]}{x^2} \, dx =``][___________________________]{$func}[@ helpLink("formulas") @]* _You can use "C" for any arbitrary constant in your answer._ diff --git a/Contrib/CUNY/OPLremix/Library/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_322.pg b/Contrib/CUNY/OPLremix/Library/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_322.pg index ba60420b54..1e634eb015 100644 --- a/Contrib/CUNY/OPLremix/Library/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_322.pg +++ b/Contrib/CUNY/OPLremix/Library/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_322.pg @@ -18,10 +18,10 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", -"AnswerFormatHelp.pl", + "parserFormulaUpToConstant.pl", "PGanswermacros.pl", "PGauxiliaryFunctions.pl" @@ -50,7 +50,7 @@ END_PGML BEGIN_PGML_HINT -[`\displaystyle \int b^x dx = \frac{b^x}{\ln(b)} +C `] +[`\displaystyle \int b^x dx = \frac{b^x}{\ln(b)} +C `] END_PGML_HINT ############################ diff --git a/Contrib/CUNY/OPLremix/Library/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_324.pg b/Contrib/CUNY/OPLremix/Library/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_324.pg index 9caf333df0..d718d3d46b 100644 --- a/Contrib/CUNY/OPLremix/Library/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_324.pg +++ b/Contrib/CUNY/OPLremix/Library/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_324.pg @@ -18,7 +18,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserFormulaUpToConstant.pl" @@ -37,7 +37,7 @@ BEGIN_PGML Evaluate the following indefinite integral.(Use \(C\) for the constant of integration.) -[``\displaystyle \int ([$a]^{-[$b] x} + [$c] x) \, dx =``][_____________________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[``\displaystyle \int ([$a]^{-[$b] x} + [$c] x) \, dx =``][_____________________________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CUNY/OPLremix/Library/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_330.pg b/Contrib/CUNY/OPLremix/Library/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_330.pg index ee51dd358d..54ba82190c 100644 --- a/Contrib/CUNY/OPLremix/Library/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_330.pg +++ b/Contrib/CUNY/OPLremix/Library/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_330.pg @@ -18,7 +18,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserFormulaUpToConstant.pl" @@ -37,7 +37,7 @@ BEGIN_PGML Evaluate the following indefinite integral.(Use capital C for the constant of integration.) -[`` \displaystyle \int \frac{[$a]}{ [$b] x (\ln(x))^[$c]} \, dx =``][______________________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`` \displaystyle \int \frac{[$a]}{ [$b] x (\ln(x))^[$c]} \, dx =``][______________________________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CUNY/OPLremix/Library/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_333.pg b/Contrib/CUNY/OPLremix/Library/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_333.pg index 4540fbd6ab..a831b44c13 100644 --- a/Contrib/CUNY/OPLremix/Library/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_333.pg +++ b/Contrib/CUNY/OPLremix/Library/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_333.pg @@ -18,7 +18,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserFormulaUpToConstant.pl" @@ -35,7 +35,7 @@ BEGIN_PGML Evaluate the following indefinite integral.(Use capital C for the constant of integration.) -[`` \displaystyle \int \frac{[$a] (\cos(x) - x\sin(x))}{[$b] x \cos(x)} \, dx =``][____________________________________]{$func} [@ AnswerFormatHelp("formulas") @]* +[`` \displaystyle \int \frac{[$a] (\cos(x) - x\sin(x))}{[$b] x \cos(x)} \, dx =``][____________________________________]{$func} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CUNY/OPLremix/Library/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_340.pg b/Contrib/CUNY/OPLremix/Library/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_340.pg index f465dc3e05..088c168957 100644 --- a/Contrib/CUNY/OPLremix/Library/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_340.pg +++ b/Contrib/CUNY/OPLremix/Library/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_340.pg @@ -18,7 +18,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserFormulaUpToConstant.pl" @@ -36,7 +36,7 @@ BEGIN_PGML Evaluate the following indefinite integral.(Use capital C for the constant of integration.) -[``\displaystyle \int \frac{[$a]^{\ln(x)}}{[$b] x} \, dx =``][___________________________________]{$func} [@ AnswerFormatHelp("formulas") @]* +[``\displaystyle \int \frac{[$a]^{\ln(x)}}{[$b] x} \, dx =``][___________________________________]{$func} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CUNY/OPLremix/Library/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_340_a.pg b/Contrib/CUNY/OPLremix/Library/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_340_a.pg index 211c23aec5..a34ae5b4b1 100644 --- a/Contrib/CUNY/OPLremix/Library/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_340_a.pg +++ b/Contrib/CUNY/OPLremix/Library/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_340_a.pg @@ -18,7 +18,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserFormulaUpToConstant.pl" @@ -35,7 +35,7 @@ BEGIN_PGML Evaluate the following indefinite integral.(Use capital C for the constant of integration.) -[``\displaystyle \int \frac{[$a] e^{\ln(x)}}{[$b] x} \, dx =``][_____________________________]{$func} [@ AnswerFormatHelp("formulas") @]* +[``\displaystyle \int \frac{[$a] e^{\ln(x)}}{[$b] x} \, dx =``][_____________________________]{$func} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CUNY/OPLremix/Library/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_350.pg b/Contrib/CUNY/OPLremix/Library/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_350.pg index dc6b07806a..c2c318d532 100644 --- a/Contrib/CUNY/OPLremix/Library/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_350.pg +++ b/Contrib/CUNY/OPLremix/Library/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_350.pg @@ -18,7 +18,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserFormulaUpToConstant.pl" @@ -37,7 +37,7 @@ BEGIN_PGML Evaluate the following indefinite integral.(Use capital C for the constant of integration.) -[`` \displaystyle \int \frac{[$a] x^{[$d]} \sin(x^[$c])}{[$b] \cos(x^[$c])} \, dx =``][_______________________________]{$func} [@ AnswerFormatHelp("formulas") @]* +[`` \displaystyle \int \frac{[$a] x^{[$d]} \sin(x^[$c])}{[$b] \cos(x^[$c])} \, dx =``][_______________________________]{$func} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CUNY/OPLremix/Library/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_360.pg b/Contrib/CUNY/OPLremix/Library/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_360.pg index f021b83fa0..1ee756787b 100644 --- a/Contrib/CUNY/OPLremix/Library/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_360.pg +++ b/Contrib/CUNY/OPLremix/Library/CCCS/CalculusOne/05.6/CCD_CCCS_Openstax_Calc1_C1-2016-002_5_6_360.pg @@ -18,7 +18,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserFormulaUpToConstant.pl" @@ -36,7 +36,7 @@ BEGIN_PGML Evaluate the following indefinite integral.(_Use C for the constant of integration._) -[`` \displaystyle \int \frac {[$a] x}{[$b] - x} \, dx =``][__________________________________]{$func} [@ AnswerFormatHelp("formulas") @]* +[`` \displaystyle \int \frac {[$a] x}{[$b] - x} \, dx =``][__________________________________]{$func} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/CUNY/OPLremix/Library/Mizzou/Algebra/functions_increasing_decreasing/inc_dec_const_dom_range_02.pg b/Contrib/CUNY/OPLremix/Library/Mizzou/Algebra/functions_increasing_decreasing/inc_dec_const_dom_range_02.pg index a5d2154820..d7ff891159 100644 --- a/Contrib/CUNY/OPLremix/Library/Mizzou/Algebra/functions_increasing_decreasing/inc_dec_const_dom_range_02.pg +++ b/Contrib/CUNY/OPLremix/Library/Mizzou/Algebra/functions_increasing_decreasing/inc_dec_const_dom_range_02.pg @@ -19,12 +19,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "PGcourse.pl" @@ -36,7 +36,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxx = 11; @@ -136,7 +136,7 @@ if ($stop == 1) { $domain = Compute("(-inf,$x6)"); } else { $domain = Compute("(-inf,$x6]"); - } + } } else { $domain = Compute("(-inf,inf)"); } @@ -183,7 +183,7 @@ if ($stop == 1) { } ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -191,7 +191,7 @@ BEGIN_TEXT $PAR $BCENTER \{ image(insertGraph($graph), width=>$gsize, height=>$gsize, tex_size=>500 ); \} -$ECENTER +$ECENTER $PAR Given the graph of \(f(x)\) above, find the following and write your answers using interval notation. Any answers with multiple intervals should be written with the intervals separated by commas. @@ -206,7 +206,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($domain)->cmp()); ANS(Compute($range)->cmp()); diff --git a/Contrib/CUNY/OPLremix/Library/WHFreeman/Rogawski_Calculus_Early_Transcendentals_Second_Edition/2_Limits/2.2_Limits-_A_Numerical_and_Graphical_Approach/2.2.5.pg b/Contrib/CUNY/OPLremix/Library/WHFreeman/Rogawski_Calculus_Early_Transcendentals_Second_Edition/2_Limits/2.2_Limits-_A_Numerical_and_Graphical_Approach/2.2.5.pg index 15168342cd..6fff783063 100644 --- a/Contrib/CUNY/OPLremix/Library/WHFreeman/Rogawski_Calculus_Early_Transcendentals_Second_Edition/2_Limits/2.2_Limits-_A_Numerical_and_Graphical_Approach/2.2.5.pg +++ b/Contrib/CUNY/OPLremix/Library/WHFreeman/Rogawski_Calculus_Early_Transcendentals_Second_Edition/2_Limits/2.2_Limits-_A_Numerical_and_Graphical_Approach/2.2.5.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "PGgraphmacros.pl", "freemanMacros.pl", -"AnswerFormatHelp.pl", + "MathObjects.pl" # Math Object Macro ); @@ -44,10 +44,10 @@ BEGIN_TEXT Determine \( \lim\limits_{x \to $to} f(x) \) for the function \(f(x)\) shown in the figure below $PAR -\{ image(insertGraph($graphObject), 'width'=>300,'height'=>300) \} +\{ image(insertGraph($graphObject), 'width'=>300,'height'=>300) \} $PAR -The limit as \(x \to $to\) is \{ ans_rule(5) \} \{ AnswerFormatHelp("limits") \} +The limit as \(x \to $to\) is \{ ans_rule(5) \} \{ helpLink("limits") \} END_TEXT BEGIN_HINT @@ -55,7 +55,7 @@ Find what value y is approaching as \(x\) is approaching $to. END_HINT SOLUTION(EV3(<<'END_SOLUTION')); -$BR$BBOLD Solution:$EBOLD +$BR$BBOLD Solution:$EBOLD $PAR The graph suggests that \(f(x) \to $lim\) as \(x \to $to\) END_SOLUTION diff --git a/Contrib/CUNY/OPLremix/Library/WHFreeman/Rogawski_Calculus_Early_Transcendentals_Second_Edition/3_Differentiation/3.2_The_Derivative_as_a_Function/3.2.25.pg b/Contrib/CUNY/OPLremix/Library/WHFreeman/Rogawski_Calculus_Early_Transcendentals_Second_Edition/3_Differentiation/3.2_The_Derivative_as_a_Function/3.2.25.pg index 464c3291d3..a3a106c9c3 100644 --- a/Contrib/CUNY/OPLremix/Library/WHFreeman/Rogawski_Calculus_Early_Transcendentals_Second_Edition/3_Differentiation/3.2_The_Derivative_as_a_Function/3.2.25.pg +++ b/Contrib/CUNY/OPLremix/Library/WHFreeman/Rogawski_Calculus_Early_Transcendentals_Second_Edition/3_Differentiation/3.2_The_Derivative_as_a_Function/3.2.25.pg @@ -19,7 +19,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + ); TEXT(beginproblem()); @@ -39,7 +39,7 @@ Find the derivative of the function \( f(x)= $f\). $BR$BR -\( f'(x)= \) \{ ans_rule() \} +\( f'(x)= \) \{ ans_rule() \} END_TEXT diff --git a/Contrib/ChamplainSaintLambert/Titcombe/TrigDegrees.pg b/Contrib/ChamplainSaintLambert/Titcombe/TrigDegrees.pg index 2ee45ed120..58400e5f5a 100644 --- a/Contrib/ChamplainSaintLambert/Titcombe/TrigDegrees.pg +++ b/Contrib/ChamplainSaintLambert/Titcombe/TrigDegrees.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextTrigDegrees.pl", "PGcourse.pl", ); @@ -40,13 +40,13 @@ $ans2 = Compute("arcsin(0.5)"); Context()->texStrings; BEGIN_TEXT -Enter \( \sin(30) \): +Enter \( \sin(30) \): \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR -Enter \( \arcsin(1/2) \): +Enter \( \arcsin(1/2) \): \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $PAR Remark: Enter \( \arcsin(x) \) as arcsin(x), or asin(x), or sin^(-1)(x). diff --git a/Contrib/ChamplainSaintLambert/Titcombe/TrigDegreesPGML.pg b/Contrib/ChamplainSaintLambert/Titcombe/TrigDegreesPGML.pg index 554c3d7d99..ec91b60f6e 100644 --- a/Contrib/ChamplainSaintLambert/Titcombe/TrigDegreesPGML.pg +++ b/Contrib/ChamplainSaintLambert/Titcombe/TrigDegreesPGML.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextTrigDegrees.pl", "PGML.pl", "PGcourse.pl", @@ -41,12 +41,12 @@ $ans2 = Compute("arcsin(0.5)"); # Main text BEGIN_PGML -Enter [` \sin(30) `]: +Enter [` \sin(30) `]: [____]{$ans1}{20} -[@ AnswerFormatHelp("formulas") @]* -Enter [` \arcsin(1/2) `]: +[@ helpLink("formulas") @]* +Enter [` \arcsin(1/2) `]: [____]{$ans2}{20} -[@ AnswerFormatHelp("formulas") @]* +[@ helpLink("formulas") @]* Remark: Enter [` \arcsin(x) `] as arcsin(x), or asin(x), or sin^(-1)(x). diff --git a/Contrib/CollegeofIdaho/Statistics/set02zScoresPercentiles/Stats_02_zScoresPercentiles.pg b/Contrib/CollegeofIdaho/Statistics/set02zScoresPercentiles/Stats_02_zScoresPercentiles.pg index bf202cf288..49cb31e557 100755 --- a/Contrib/CollegeofIdaho/Statistics/set02zScoresPercentiles/Stats_02_zScoresPercentiles.pg +++ b/Contrib/CollegeofIdaho/Statistics/set02zScoresPercentiles/Stats_02_zScoresPercentiles.pg @@ -12,13 +12,13 @@ ## Problem1('') ## KEYWORDS('statistic', 'normal distribution', 'z score') -DOCUMENT(); # This should be the first executable line in the problem. +DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", "parserNumberWithUnits.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", "CofIdaho_macros.pl" ); @@ -43,9 +43,9 @@ if (abs($m-$mm)==1) {$m = $mm + list_random(-1.6,1.6)*$msd;} TEXT(beginproblem()); BEGIN_TEXT -Heights tend to have approximately mound-shaped distributions. Women aged \(20\) to \(29\) have mean height \($wm\) inches and standard deviation \($wsd\) inches. Men the same age have mean height \($mm\) inches with standard deviation \($msd\) inches. +Heights tend to have approximately mound-shaped distributions. Women aged \(20\) to \(29\) have mean height \($wm\) inches and standard deviation \($wsd\) inches. Men the same age have mean height \($mm\) inches with standard deviation \($msd\) inches. $PAR -${BITALIC}Note: Include units in your answers. $EITALIC +${BITALIC}Note: Include units in your answers. $EITALIC \{ knowlLink("help entering units in your answer", value=>'-To enter "inches" use the abbreviation ${BBOLD}in$EBOLD '. 'like ${BITALIC}2 in$EITALIC for 2 inches. Do not use a period '. @@ -54,11 +54,11 @@ value=>'-To enter "inches" use the abbreviation ${BBOLD}in$EBOLD '. '${BBOLD}deviations$EBOLD.') \} $BR $PAR -(a) The middle approximately \(95\)$PERCENT of women aged \(20\) to \(29\) have heights that fall between what values? +(a) The middle approximately \(95\)$PERCENT of women aged \(20\) to \(29\) have heights that fall between what values? $BR $SPACE $SPACE Answer: \{ans_rule(10)\} to \{ans_rule(10)\} $BR $SPACE $SPACE -What is the \(z\)-score for a woman \($w\) inches tall? +What is the \(z\)-score for a woman \($w\) inches tall? $BR $SPACE $SPACE \(z\)-score \(=\) \{ans_rule(30)\} $BR @@ -113,14 +113,14 @@ ANS (num_and_unit_checker($z_m, "standard deviations")); # Solution BEGIN_SOLUTION -$BR Solution: $BR -(a) \(95\)$PERCENT CI for women: +$BR Solution: $BR +(a) \(95\)$PERCENT CI for women: \[$wm - 2($wsd) in \mbox{ to } $wm + 2($wsd) in\] \[$lower_w \mbox{ to } $upper_w\] $BR $SPACE $SPACE \(z\)-score \(= \frac{$w-$wm}{$wsd} = $z_w \) standard deviations $BR $BR -(b) \(95\)$PERCENT CI for men: +(b) \(95\)$PERCENT CI for men: \[$mm - 2($msd) in \mbox{ to } $mm + 2($msd) in\] \[$lower_m \mbox{ to } $upper_m\] $BR $SPACE $SPACE diff --git a/Contrib/DMOI/0-Introduction_and_Preliminaries/0_2-Mathematical_Statements/0_2_12.pg b/Contrib/DMOI/0-Introduction_and_Preliminaries/0_2-Mathematical_Statements/0_2_12.pg index 04daeb9cfd..77232b2906 100644 --- a/Contrib/DMOI/0-Introduction_and_Preliminaries/0_2-Mathematical_Statements/0_2_12.pg +++ b/Contrib/DMOI/0-Introduction_and_Preliminaries/0_2-Mathematical_Statements/0_2_12.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PCCmacros.pl", "parserPopUp.pl", "parserRadioButtons.pl", diff --git a/Contrib/DMOI/0-Introduction_and_Preliminaries/0_2-Mathematical_Statements/0_2_13.pg b/Contrib/DMOI/0-Introduction_and_Preliminaries/0_2-Mathematical_Statements/0_2_13.pg index fa9bc708b4..462285941b 100644 --- a/Contrib/DMOI/0-Introduction_and_Preliminaries/0_2-Mathematical_Statements/0_2_13.pg +++ b/Contrib/DMOI/0-Introduction_and_Preliminaries/0_2-Mathematical_Statements/0_2_13.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PCCmacros.pl", "parserPopUp.pl", "parserRadioButtons.pl", diff --git a/Contrib/DMOI/0-Introduction_and_Preliminaries/0_2-Mathematical_Statements/0_2_2.pg b/Contrib/DMOI/0-Introduction_and_Preliminaries/0_2-Mathematical_Statements/0_2_2.pg index 6f15563f85..b3484e063d 100644 --- a/Contrib/DMOI/0-Introduction_and_Preliminaries/0_2-Mathematical_Statements/0_2_2.pg +++ b/Contrib/DMOI/0-Introduction_and_Preliminaries/0_2-Mathematical_Statements/0_2_2.pg @@ -23,7 +23,7 @@ loadMacros( "PGchoicemacros.pl", # "MathObjects.pl", # "PGML.pl", -# "AnswerFormatHelp.pl", +# # "PGcourse.pl", ); @@ -36,11 +36,11 @@ TEXT(beginproblem()); ############################################################ # PG Setup ############################################################ -# Create and use pop up lists +# Create and use pop up lists $tf = new_pop_up_select_list(); # Specify choices presented to students -$tf -> ra_pop_up_list([No_answer => "?", - "atomic" => "atomic statement", +$tf -> ra_pop_up_list([No_answer => "?", + "atomic" => "atomic statement", "conj" => "molecular statement: conjuction", "disj" => "molecular statement: disjunction", "cond" => "molecular statement: conditional", diff --git a/Contrib/DMOI/0-Introduction_and_Preliminaries/0_2-Mathematical_Statements/0_2_9.pg b/Contrib/DMOI/0-Introduction_and_Preliminaries/0_2-Mathematical_Statements/0_2_9.pg index 3ca89af049..4bee5c0baf 100644 --- a/Contrib/DMOI/0-Introduction_and_Preliminaries/0_2-Mathematical_Statements/0_2_9.pg +++ b/Contrib/DMOI/0-Introduction_and_Preliminaries/0_2-Mathematical_Statements/0_2_9.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "parserPopUp.pl", "PGcourse.pl", "PGchoicemacros.pl" @@ -39,8 +39,8 @@ TEXT(beginproblem()); ############################################################ $tf = new_pop_up_select_list(); # Specify choices presented to students - $tf -> ra_pop_up_list([No_answer => "?", - "Original" => "Original", + $tf -> ra_pop_up_list([No_answer => "?", + "Original" => "Original", "Converse" => "Converse", "Neither" => "Neither",] ); @@ -48,7 +48,7 @@ $tf = new_pop_up_select_list(); $tf -> qa( "A graph is viscous only if it satisfies condition (V).", "Converse", "A graph is viscous if it satisfies condition (V).", "Original", - "For a graph to be viscous, it is necessary that it satisfies condition (V).", "Converse", + "For a graph to be viscous, it is necessary that it satisfies condition (V).", "Converse", "For a graph to be viscous, it is sufficient for it to satisfy condition (V).", "Original", "Satisfying condition (V) is a sufficient condition for a graph to be viscous.", "Original", "Satisfying condition (V) is a necessary condition for a graph to be viscous.", "Converse", diff --git a/Contrib/DMOI/0-Introduction_and_Preliminaries/0_3-Sets/0_3_1.pg b/Contrib/DMOI/0-Introduction_and_Preliminaries/0_3-Sets/0_3_1.pg index c25af7d958..5dd7e446e4 100644 --- a/Contrib/DMOI/0-Introduction_and_Preliminaries/0_3-Sets/0_3_1.pg +++ b/Contrib/DMOI/0-Introduction_and_Preliminaries/0_3-Sets/0_3_1.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PCCmacros.pl", "PGcourse.pl", ); @@ -33,7 +33,7 @@ COMMENT('Randomized'); TEXT(beginproblem()); ##################### #Original problem code -#Let [`A = \{1, 4, 9\}`] and [`B = \{1, 3, 6, 10\}\text{.}`] +#Let [`A = \{1, 4, 9\}`] and [`B = \{1, 3, 6, 10\}\text{.}`] # @@ -42,14 +42,14 @@ TEXT(beginproblem()); #################### Context("Interval"); #ensure that there are 5 different elements in both A and B by constructing based on the first element of A -$a1 = random(1,5,1); +$a1 = random(1,5,1); $a2 = $a1 + 5; $a3 = $a1 + 2; $a4 = $a1 + 3; $a5 = $a1 + 4; $A = Set($a1, $a2, $a3, $a4, $a5); #ensure the intersection isn't empty by constructing B using a1 -$b1 = $a1; +$b1 = $a1; $b2 = 2*$b1; $b3 = 3*$b1; $b4 = 4*$b1; @@ -87,7 +87,7 @@ a. [`A \setminus B\text{.}`] a. [`B \setminus A\text{.}`] - [__]{$BminA}{width => 15} + [__]{$BminA}{width => 15} @@ -106,7 +106,7 @@ a. [`A \cap B = [$int]\text{.}`] It contains everything that is in both [`A`] a. [`A \setminus B = [$AminB]\text{.}`] It contains everything that is in [`A`] except anything that is also in [`B\text{.}`] We could also have written this set as [`A \cap \bar{B}\text{.}`] -a. [`B \setminus A = [$BminA]\text{.}`] It contains everything in [`B`] except anything that is also in [`A\text{.}`] Another way to write this is [`B \cap \bar{A}\text{.}`] Note that [`A \setminus B \ne B \setminus A\text{.}`] +a. [`B \setminus A = [$BminA]\text{.}`] It contains everything in [`B`] except anything that is also in [`A\text{.}`] Another way to write this is [`B \cap \bar{A}\text{.}`] Note that [`A \setminus B \ne B \setminus A\text{.}`] diff --git a/Contrib/DMOI/0-Introduction_and_Preliminaries/0_3-Sets/0_3_18.pg b/Contrib/DMOI/0-Introduction_and_Preliminaries/0_3-Sets/0_3_18.pg index 2ff243a8d1..4d5c0f7ad2 100644 --- a/Contrib/DMOI/0-Introduction_and_Preliminaries/0_3-Sets/0_3_18.pg +++ b/Contrib/DMOI/0-Introduction_and_Preliminaries/0_3-Sets/0_3_18.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -66,10 +66,10 @@ Write these out, or at least start to and look for a pattern. END_PGML_HINT BEGIN_PGML_SOLUTION -Each of the [$max] elements can be in a singleton set, so there are [$max] of these. +Each of the [$max] elements can be in a singleton set, so there are [$max] of these. -To count the number of doubletons, not that there are [$max - 1] sets that include 1, and then [$max-2] sets that include 2 and not 1, -and then [$max - 3] that include 3 and not 1 or 2, and so on. So you can find [$ans2] by summing the numbers from 1 to [$max-1]. +To count the number of doubletons, not that there are [$max - 1] sets that include 1, and then [$max-2] sets that include 2 and not 1, +and then [$max - 3] that include 3 and not 1 or 2, and so on. So you can find [$ans2] by summing the numbers from 1 to [$max-1]. END_PGML_SOLUTION ############################################################ diff --git a/Contrib/DMOI/0-Introduction_and_Preliminaries/0_3-Sets/0_3_2.pg b/Contrib/DMOI/0-Introduction_and_Preliminaries/0_3-Sets/0_3_2.pg index 859d7148c2..dc52ea11fb 100644 --- a/Contrib/DMOI/0-Introduction_and_Preliminaries/0_3-Sets/0_3_2.pg +++ b/Contrib/DMOI/0-Introduction_and_Preliminaries/0_3-Sets/0_3_2.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PCCmacros.pl", "PGcourse.pl", ); @@ -73,7 +73,7 @@ a. [`\renewcommand{\d}{\displaystyle}\newcommand{\N}{\mathbb N}\newcommand{\st} a. [`\renewcommand{\d}{\displaystyle}\newcommand{\N}{\mathbb N}\newcommand{\st}{:}\{n^2+[$c] \st n \in \N\}\text{.}`] [____]{$c} -a. [`\renewcommand{\d}{\displaystyle}\newcommand{\N}{\mathbb N}\newcommand{\st}{:}\{n \in \N \st n = k^2 + [$c] \text{ for some } k \in \N\}\text{.}`] [____]{$c} +a. [`\renewcommand{\d}{\displaystyle}\newcommand{\N}{\mathbb N}\newcommand{\st}{:}\{n \in \N \st n = k^2 + [$c] \text{ for some } k \in \N\}\text{.}`] [____]{$c} @@ -83,7 +83,7 @@ END_PGML # Solution #################### BEGIN_PGML_SOLUTION -a. This is the set [`\{[$ans1high], [$ans1plus1], [$ans1plus2] \ldots \}`] since we need each element to be a natural number whose square is at least [$a] more than [$b]. Since [`[$ans1high]^2 - [$a] = [$ans1hs]`] but [`[$ans1low]^2 - [$a] = [$ans1ls]`], we see that the first such natural number is [$ans1high]. +a. This is the set [`\{[$ans1high], [$ans1plus1], [$ans1plus2] \ldots \}`] since we need each element to be a natural number whose square is at least [$a] more than [$b]. Since [`[$ans1high]^2 - [$a] = [$ans1hs]`] but [`[$ans1low]^2 - [$a] = [$ans1ls]`], we see that the first such natural number is [$ans1high]. a. We get the same set as we did in the previous part, and the smallest non-negative number for which [`n^2 - [$aplusb]`] is a natural number is [$ans1high]. @@ -94,7 +94,7 @@ a. We get the same set as we did in the previous part, and the smallest non-neg a. This is the set [`\{[$c], [$cplus1], [$cplus4], [$cplus9], \ldots\}\text{,}`] namely the set of numbers that are the _result_ of squaring and adding [$c] to a natural number. ([`0^2 + [$c] = [$c]\text{,}`] [`1^2 + [$c] = [$cplus1]\text{,}`] [`2^2 + [$c] = [$cplus4]`] and so on.) Thus the least element of the set is [$c]. -a. Now we are looking for natural numbers that are equal to taking some natural number, squaring it, and adding [$c]. That is, [`\{[$c], [$cplus1], [$cplus4], [$cplus9], \ldots\}\text{,}`] the same set as the previous part. So again, the least element is [$c]. +a. Now we are looking for natural numbers that are equal to taking some natural number, squaring it, and adding [$c]. That is, [`\{[$c], [$cplus1], [$cplus4], [$cplus9], \ldots\}\text{,}`] the same set as the previous part. So again, the least element is [$c]. diff --git a/Contrib/DMOI/0-Introduction_and_Preliminaries/0_3-Sets/0_3_23-nr.pg b/Contrib/DMOI/0-Introduction_and_Preliminaries/0_3-Sets/0_3_23-nr.pg index f984e87f54..9c019544b9 100644 --- a/Contrib/DMOI/0-Introduction_and_Preliminaries/0_3-Sets/0_3_23-nr.pg +++ b/Contrib/DMOI/0-Introduction_and_Preliminaries/0_3-Sets/0_3_23-nr.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PCCmacros.pl", "PGcourse.pl", ); diff --git a/Contrib/DMOI/0-Introduction_and_Preliminaries/0_3-Sets/0_3_3.pg b/Contrib/DMOI/0-Introduction_and_Preliminaries/0_3-Sets/0_3_3.pg index 263422828a..395448716b 100644 --- a/Contrib/DMOI/0-Introduction_and_Preliminaries/0_3-Sets/0_3_3.pg +++ b/Contrib/DMOI/0-Introduction_and_Preliminaries/0_3-Sets/0_3_3.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -35,7 +35,7 @@ TEXT(beginproblem()); # PG Setup #################### # part a -$a1 = random(2,6); +$a1 = random(2,6); do {$an = random(29,43);} until ($an !=37); $a11 = $a1+1; $a12 = $a1+2; @@ -45,7 +45,7 @@ $ans1 = $an-$a1 + 1; #part b $b1 = random(-7,-1); do {$bn = random(90,100); } until ($bn !=100); -$ans2 = $bn-$b1 + 1; +$ans2 = $bn-$b1 + 1; #part c @@ -80,14 +80,14 @@ $ans3 = 12; # Body #################### BEGIN_PGML -Find the following cardinalities: +Find the following cardinalities: a. [`|A|`] when [`A = \{[$a1], [$a11],[$a12],[$a13],\ldots,[$an]\}\text{.}`] [_____]{$ans1} a. [`|A|`] when [`\newcommand{\Z}{\mathbb Z}\newcommand{\st}{:}A = \{x \in \Z \st [$b1] \le x \le [$bn]\}\text{.}`] [_____]{$ans2} -a. [`|A \cap B|`] when [`\renewcommand{\d}{\displaystyle}\newcommand{\N}{\mathbb N}\newcommand{\st}{:}A = \{x \in \N \st x \le [$b]\}`] and [`\renewcommand{\d}{\displaystyle}\newcommand{\N}{\mathbb N}\newcommand{\st}{:}B = \{x \in \N \st x \mbox{ is prime} \}`] [_____]{$ans3} +a. [`|A \cap B|`] when [`\renewcommand{\d}{\displaystyle}\newcommand{\N}{\mathbb N}\newcommand{\st}{:}A = \{x \in \N \st x \le [$b]\}`] and [`\renewcommand{\d}{\displaystyle}\newcommand{\N}{\mathbb N}\newcommand{\st}{:}B = \{x \in \N \st x \mbox{ is prime} \}`] [_____]{$ans3} @@ -97,12 +97,12 @@ END_PGML # Solution #################### BEGIN_PGML_SOLUTION -a. [`[$ans1] = [$an] - [$a1] + 1 `]. We need to add one in order to count [$a1] itself. +a. [`[$ans1] = [$an] - [$a1] + 1 `]. We need to add one in order to count [$a1] itself. -a. [`[$ans2] = [$bn]-[$b1] + 1 `]. +a. [`[$ans2] = [$bn]-[$b1] + 1 `]. -a. There are [$ans3] primes not greater than [$b]: [`[$int]\text{.}`] +a. There are [$ans3] primes not greater than [$b]: [`[$int]\text{.}`] diff --git a/Contrib/DMOI/0-Introduction_and_Preliminaries/0_3-Sets/0_3_4.pg b/Contrib/DMOI/0-Introduction_and_Preliminaries/0_3-Sets/0_3_4.pg index 12d4be4d79..e419b0a9c1 100644 --- a/Contrib/DMOI/0-Introduction_and_Preliminaries/0_3-Sets/0_3_4.pg +++ b/Contrib/DMOI/0-Introduction_and_Preliminaries/0_3-Sets/0_3_4.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -35,7 +35,7 @@ TEXT(beginproblem()); #Previous Problem Syntax #$A = Set(1,2,3,,5); #$B = Set(2,4,6,8,10); -#Problem: Find a set of largest possible size that is a subset of both [`\{1,2,3,4,5\}`] and [`\{2, 4, 6, 8,10\}\text{.}`] +#Problem: Find a set of largest possible size that is a subset of both [`\{1,2,3,4,5\}`] and [`\{2, 4, 6, 8,10\}\text{.}`] #################### #################### @@ -44,14 +44,14 @@ TEXT(beginproblem()); Context("Interval"); #ensure that there are 5 different elements in both A and B by constructing based on the first element -$a1 = random(1,10,1); +$a1 = random(1,10,1); $a2 = $a1 + 5; $a3 = $a1 + 2; $a4 = $a1 + 3; $a5 = $a1 + 4; $A = Set($a1, $a2, $a3, $a4, $a5); #ensure the intersection isn't empty by constructing B using a1 -$b1 = $a1; +$b1 = $a1; $b2 = 2*$b1; $b3 = 3*$b1; $b4 = 4*$b1; @@ -67,7 +67,7 @@ $Int = $A->intersect($B); BEGIN_PGML -Let [`A = [$A]`] and +Let [`A = [$A]`] and [`B = [$B].`] Find a set of largest possible size that is a subset of both [`A \text{ and } B \text{.} `] @@ -82,7 +82,7 @@ END_PGML #################### BEGIN_PGML_SOLUTION -The set of largest size that is a subset of both [`A \text{ and } B `] is the _intersection_ of [`A \text{ and } B \text{,} `] [`A \cap B = [$Int]\text{.}`] +The set of largest size that is a subset of both [`A \text{ and } B `] is the _intersection_ of [`A \text{ and } B \text{,} `] [`A \cap B = [$Int]\text{.}`] END_PGML_SOLUTION diff --git a/Contrib/DMOI/0-Introduction_and_Preliminaries/0_3-Sets/0_3_5.pg b/Contrib/DMOI/0-Introduction_and_Preliminaries/0_3-Sets/0_3_5.pg index 0172452bb9..1a007a6b1b 100644 --- a/Contrib/DMOI/0-Introduction_and_Preliminaries/0_3-Sets/0_3_5.pg +++ b/Contrib/DMOI/0-Introduction_and_Preliminaries/0_3-Sets/0_3_5.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", ); diff --git a/Contrib/DMOI/0-Introduction_and_Preliminaries/0_3-Sets/0_3_6.pg b/Contrib/DMOI/0-Introduction_and_Preliminaries/0_3-Sets/0_3_6.pg index cf68f13c4d..23047d94e6 100644 --- a/Contrib/DMOI/0-Introduction_and_Preliminaries/0_3-Sets/0_3_6.pg +++ b/Contrib/DMOI/0-Introduction_and_Preliminaries/0_3-Sets/0_3_6.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", ); diff --git a/Contrib/DMOI/0-Introduction_and_Preliminaries/0_3-Sets/0_3_7.pg b/Contrib/DMOI/0-Introduction_and_Preliminaries/0_3-Sets/0_3_7.pg index 70cdac4294..fed9618d98 100644 --- a/Contrib/DMOI/0-Introduction_and_Preliminaries/0_3-Sets/0_3_7.pg +++ b/Contrib/DMOI/0-Introduction_and_Preliminaries/0_3-Sets/0_3_7.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -52,7 +52,7 @@ $C4 = Set($a1, $a4, $a3, $a5); # Body #################### BEGIN_PGML -Let [`A = [$A]`] and [`B = [$B]\text{.}`] How many sets [`C`] have the property that [`C \subseteq A`] and [`B \subseteq C\text{.}`] +Let [`A = [$A]`] and [`B = [$B]\text{.}`] How many sets [`C`] have the property that [`C \subseteq A`] and [`B \subseteq C\text{.}`] [_____]{4} diff --git a/Contrib/DMOI/0-Introduction_and_Preliminaries/0_3-Sets/0_3_8.pg b/Contrib/DMOI/0-Introduction_and_Preliminaries/0_3-Sets/0_3_8.pg index afdcc5721a..9aa2d5a889 100644 --- a/Contrib/DMOI/0-Introduction_and_Preliminaries/0_3-Sets/0_3_8.pg +++ b/Contrib/DMOI/0-Introduction_and_Preliminaries/0_3-Sets/0_3_8.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -40,7 +40,7 @@ $A = Set($a1, $a1 + 1, $a1 + 2, $a1 + 3, $a1 + 4); $B = Set($a1 + 2, $a1 + 3, $a1 + 4,$a1 + 5,$a1 + 6); $C = Set($a1 + 1, $a1 + 4, $a1 + 6); $ans1 = $A->intersect($B); -$ans2 = $A + $B; +$ans2 = $A + $B; $ans3 = $A-$B; $ans4 = $A -$B - $C; @@ -67,7 +67,7 @@ a. Find [`A \setminus B\text{.}`] a. Find [`A \cap \overline{(B \cup C)}\text{.}`] - [__________]{$ans4} + [__________]{$ans4} @@ -77,10 +77,10 @@ END_PGML # Solution #################### BEGIN_PGML_SOLUTION -a. [`A \cap B = [$ans1]\text{.}`] -a. [`A \cup B = [$ans2]\text{.}`] +a. [`A \cap B = [$ans1]\text{.}`] +a. [`A \cup B = [$ans2]\text{.}`] a. [`A \setminus B =[$ans3]\text{.}`] -a. [`A \cap \overline{(B \cup C)} = [$ans4]\text{.}`] +a. [`A \cap \overline{(B \cup C)} = [$ans4]\text{.}`] diff --git a/Contrib/DMOI/0-Introduction_and_Preliminaries/0_3-Sets/0_3_9.pg b/Contrib/DMOI/0-Introduction_and_Preliminaries/0_3-Sets/0_3_9.pg index 42a7e69b27..819a14a99c 100644 --- a/Contrib/DMOI/0-Introduction_and_Preliminaries/0_3-Sets/0_3_9.pg +++ b/Contrib/DMOI/0-Introduction_and_Preliminaries/0_3-Sets/0_3_9.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -52,7 +52,7 @@ $C = $A -$Int; # Body #################### BEGIN_PGML -Let [`\renewcommand{\d}{\displaystyle}\newcommand{\N}{\mathbb N}\newcommand{\st}{:}A = \{x \in \N \st [$amin] \le x < [$amax]\}`] and [`\renewcommand{\d}{\displaystyle}\newcommand{\N}{\mathbb N}\newcommand{\st}{:}B = \{x \in \N \st x \text{ is even}\}\text{.}`] +Let [`\renewcommand{\d}{\displaystyle}\newcommand{\N}{\mathbb N}\newcommand{\st}{:}A = \{x \in \N \st [$amin] \le x < [$amax]\}`] and [`\renewcommand{\d}{\displaystyle}\newcommand{\N}{\mathbb N}\newcommand{\st}{:}B = \{x \in \N \st x \text{ is even}\}\text{.}`] a. Find [`A \cap B\text{.}`] @@ -61,7 +61,7 @@ a. Find [`A \cap B\text{.}`] a. Find [`A \setminus B\text{.}`] - [__________]{$C} + [__________]{$C} @@ -76,7 +76,7 @@ a. [`A \cap B`] will be the set of natural numbers that are both at least [$ami a. [`A \setminus B`] is the set of all elements that are in [`A`] but not [`B\text{.}`] So this is [`\renewcommand{\d}{\displaystyle}\newcommand{\N}{\mathbb N}\newcommand{\st}{:}\renewcommand{\v}{\vtx{above}{}}\{x \in \N \st [$amin] \le x < [$amax] \wedge x \text{ is odd}\} = [$C]\text{.}`] - Note this is the same set as [`A \cap \overline{B}\text{.}`] + Note this is the same set as [`A \cap \overline{B}\text{.}`] diff --git a/Contrib/DMOI/0-Introduction_and_Preliminaries/0_4-Functions/0_4_1.pg b/Contrib/DMOI/0-Introduction_and_Preliminaries/0_4-Functions/0_4_1.pg index 25c8c30030..9cfa0b96b7 100644 --- a/Contrib/DMOI/0-Introduction_and_Preliminaries/0_4-Functions/0_4_1.pg +++ b/Contrib/DMOI/0-Introduction_and_Preliminaries/0_4-Functions/0_4_1.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", "parserOneOf.pl", ); @@ -78,7 +78,7 @@ a. Find a [`n`] in the domain such that [`f(n) = [$q1]\text{.}`] [_____]{$miss a. Find an element [`n`] of the domain such that [`f(n) = n\text{.}`] [_____]{OneOf($id1,$id2)} -a. Find an element of the codomain that is not in the range. [_____]{$missing} +a. Find an element of the codomain that is not in the range. [_____]{$missing} @@ -97,7 +97,7 @@ a. Such an [`n`] is [`n= [$missing]\text{,}`] since [`f([$missing]) = [$q1]\tex a. [`n = [$id1]`] has this property. We say that [$id1] is a fixed point of [`f\text{.}`] Not all functions have such a point. -a. Such an element is [$missing] (in fact, that is the only element in the codomain that is not in the range). In other words, [$missing] is not the image of any element under [`f\text{;}`] nothing is sent to [$missing]. +a. Such an element is [$missing] (in fact, that is the only element in the codomain that is not in the range). In other words, [$missing] is not the image of any element under [`f\text{;}`] nothing is sent to [$missing]. diff --git a/Contrib/DMOI/0-Introduction_and_Preliminaries/0_4-Functions/0_4_10.pg b/Contrib/DMOI/0-Introduction_and_Preliminaries/0_4-Functions/0_4_10.pg index e5a147d572..a86364e864 100644 --- a/Contrib/DMOI/0-Introduction_and_Preliminaries/0_4-Functions/0_4_10.pg +++ b/Contrib/DMOI/0-Introduction_and_Preliminaries/0_4-Functions/0_4_10.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PCCmacros.pl", "PGcourse.pl", ); @@ -48,7 +48,7 @@ $ans4 = $d + $b*$i; # Body #################### BEGIN_PGML -Suppose [`\renewcommand{\d}{\displaystyle}\newcommand{\N}{\mathbb N}f:\N \to \N`] satisfies the recurrence [`f(n+1) = f(n) + [$i]\text{.}`] Note that this is not enough information to define the function, since we don't have an initial condition. For each of the initial conditions below, find the value of [`f([$b])\text{.}`] +Suppose [`\renewcommand{\d}{\displaystyle}\newcommand{\N}{\mathbb N}f:\N \to \N`] satisfies the recurrence [`f(n+1) = f(n) + [$i]\text{.}`] Note that this is not enough information to define the function, since we don't have an initial condition. For each of the initial conditions below, find the value of [`f([$b])\text{.}`] a. [`f(0) = 1\text{.}`] [`f([$b]) = `] [_____]{$ans1} @@ -78,7 +78,7 @@ END_PGML # Solution #################### BEGIN_PGML_SOLUTION -For each case, you must use the recurrence to find [`f(1)\text{,}`] [`f(2)`] ... [`f([$b])\text{.}`] But notice each time you just add [$i] to the previous. We do this [$b] times. +For each case, you must use the recurrence to find [`f(1)\text{,}`] [`f(2)`] ... [`f([$b])\text{.}`] But notice each time you just add [$i] to the previous. We do this [$b] times. a. [`f([$b]) = [$ans1]\text{.}`] @@ -88,7 +88,7 @@ a. [`f([$b]) = [$ans2]\text{.}`] a. [`f([$b]) = [$ans3]\text{.}`] -a. [`f([$b]) = [$ans4]\text{.}`] +a. [`f([$b]) = [$ans4]\text{.}`] diff --git a/Contrib/DMOI/0-Introduction_and_Preliminaries/0_4-Functions/0_4_14.pg b/Contrib/DMOI/0-Introduction_and_Preliminaries/0_4-Functions/0_4_14.pg index 5d17d56422..1fe27b7a9e 100644 --- a/Contrib/DMOI/0-Introduction_and_Preliminaries/0_4-Functions/0_4_14.pg +++ b/Contrib/DMOI/0-Introduction_and_Preliminaries/0_4-Functions/0_4_14.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -44,7 +44,7 @@ $large = random(29,300); # Body #################### BEGIN_PGML -Let [`\newcommand{\N}{\mathbb N}\newcommand{\st}{:}X = \{n \in \N \st 0 \le n \le 999\}`] be the set of all numbers with three or fewer digits. Define the function [`\newcommand{\N}{\mathbb N}f:X \to \N`] by [`f(abc) = a+b+c\text{,}`] where [`a\text{,}`] [`b\text{,}`] and [`c`] are the digits of the number in [`X`] (write numbers less than 100 with leading 0's to make them three digits). In other words, [`f`] returns the sum of the digits of its input. For example, [`f(253) = 2 + 5 + 3 = 10\text{.}`] +Let [`\newcommand{\N}{\mathbb N}\newcommand{\st}{:}X = \{n \in \N \st 0 \le n \le 999\}`] be the set of all numbers with three or fewer digits. Define the function [`\newcommand{\N}{\mathbb N}f:X \to \N`] by [`f(abc) = a+b+c\text{,}`] where [`a\text{,}`] [`b\text{,}`] and [`c`] are the digits of the number in [`X`] (write numbers less than 100 with leading 0's to make them three digits). In other words, [`f`] returns the sum of the digits of its input. For example, [`f(253) = 2 + 5 + 3 = 10\text{.}`] a. Let [`\newcommand{\st}{:}A = \{n \in X \st [$start] \le x \le [$stop]\}\text{.}`] Find [`f(A)\text{.}`] [__]{Set(4,5,6,7,8,9,10,11,12,13)}{width => 15} diff --git a/Contrib/DMOI/0-Introduction_and_Preliminaries/0_4-Functions/0_4_2.pg b/Contrib/DMOI/0-Introduction_and_Preliminaries/0_4-Functions/0_4_2.pg index 387a038369..eb86fc65a3 100644 --- a/Contrib/DMOI/0-Introduction_and_Preliminaries/0_4-Functions/0_4_2.pg +++ b/Contrib/DMOI/0-Introduction_and_Preliminaries/0_4-Functions/0_4_2.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "parserPopUp.pl", "PGcourse.pl", "PGchoicemacros.pl" @@ -40,12 +40,12 @@ TEXT(beginproblem()); Context('Numeric'); -# Create and use pop up lists +# Create and use pop up lists $twoline = new_select_list(); $twoline->rf_print_q(~~&pop_up_list_print_q); # Specify choices presented to students -$twoline->ra_pop_up_list( +$twoline->ra_pop_up_list( [ No_answer => "?", "I"=>"Injective", "S"=>"Surjective", "B"=>"Bijective", "N"=>"Neither"] ); $twoline -> qa ( @@ -71,7 +71,7 @@ $twoline -> qa ( $twoline->choose(4); -# +# #################### # Body diff --git a/Contrib/DMOI/0-Introduction_and_Preliminaries/0_4-Functions/0_4_3.pg b/Contrib/DMOI/0-Introduction_and_Preliminaries/0_4-Functions/0_4_3.pg index 6ae790ef41..d98a5a748e 100644 --- a/Contrib/DMOI/0-Introduction_and_Preliminaries/0_4-Functions/0_4_3.pg +++ b/Contrib/DMOI/0-Introduction_and_Preliminaries/0_4-Functions/0_4_3.pg @@ -20,7 +20,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "parserPopUp.pl", "PGcourse.pl", "PGchoicemacros.pl" @@ -39,12 +39,12 @@ TEXT(beginproblem()); Context('Numeric'); -# Create and use pop up lists +# Create and use pop up lists $functions = new_select_list(); $functions->rf_print_q(~~&pop_up_list_print_q); # Specify choices presented to students -$functions->ra_pop_up_list( +$functions->ra_pop_up_list( [ No_answer => "?", "I"=>"Injective", "S"=>"Surjective", "B"=>"Bijective", "N"=>"Neither"] ); $functions -> qa ( @@ -69,7 +69,7 @@ $functions -> qa ( $functions->choose(3); -# +# #################### # Body #################### diff --git a/Contrib/DMOI/0-Introduction_and_Preliminaries/0_4-Functions/0_4_4.pg b/Contrib/DMOI/0-Introduction_and_Preliminaries/0_4-Functions/0_4_4.pg index 174a392652..49a7907378 100644 --- a/Contrib/DMOI/0-Introduction_and_Preliminaries/0_4-Functions/0_4_4.pg +++ b/Contrib/DMOI/0-Introduction_and_Preliminaries/0_4-Functions/0_4_4.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "parserPopUp.pl", "PGcourse.pl", "PGchoicemacros.pl" @@ -40,12 +40,12 @@ TEXT(beginproblem()); Context('Numeric'); -# Create and use pop up lists +# Create and use pop up lists $functions = new_select_list(); $functions->rf_print_q(~~&pop_up_list_print_q); # Specify choices presented to students -$functions->ra_pop_up_list( +$functions->ra_pop_up_list( [ No_answer => "?", "I"=>"Injective", "S"=>"Surjective", "B"=>"Bijective", "N"=>"Neither"] ); $functions -> qa ( diff --git a/Contrib/DMOI/0-Introduction_and_Preliminaries/0_4-Functions/0_4_5.pg b/Contrib/DMOI/0-Introduction_and_Preliminaries/0_4-Functions/0_4_5.pg index 1bc9e78518..d84852eaed 100644 --- a/Contrib/DMOI/0-Introduction_and_Preliminaries/0_4-Functions/0_4_5.pg +++ b/Contrib/DMOI/0-Introduction_and_Preliminaries/0_4-Functions/0_4_5.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -60,7 +60,7 @@ END_PGML # Solution #################### BEGIN_PGML_SOLUTION -There are 16 different functions. +There are 16 different functions. None of the functions are injective. Exactly 14 of the functions are surjective (there are 2 that are not: those that send everything to [`a`] or everything to [`b`]). No functions are both (since no functions here are injective). diff --git a/Contrib/DMOI/0-Introduction_and_Preliminaries/0_4-Functions/0_4_6.pg b/Contrib/DMOI/0-Introduction_and_Preliminaries/0_4-Functions/0_4_6.pg index 29db1e55fe..7563effda9 100644 --- a/Contrib/DMOI/0-Introduction_and_Preliminaries/0_4-Functions/0_4_6.pg +++ b/Contrib/DMOI/0-Introduction_and_Preliminaries/0_4-Functions/0_4_6.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", ); diff --git a/Contrib/DMOI/0-Introduction_and_Preliminaries/0_4-Functions/0_4_9.pg b/Contrib/DMOI/0-Introduction_and_Preliminaries/0_4-Functions/0_4_9.pg index d0b72fe81b..702f6a92ad 100644 --- a/Contrib/DMOI/0-Introduction_and_Preliminaries/0_4-Functions/0_4_9.pg +++ b/Contrib/DMOI/0-Introduction_and_Preliminaries/0_4-Functions/0_4_9.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -35,14 +35,14 @@ TEXT(beginproblem()); # PG Setup #################### #could also randomize the initial value for f(0) -#$i = random(2,5); +#$i = random(2,5); $a = random(2,5); -$b = random(11,20); +$b = random(11,20); $ans = $a**$b; -#define some variables to make solution explanation clearer +#define some variables to make solution explanation clearer $b1 = $b-1; $b2= $b-2; diff --git a/Contrib/DMOI/1-Counting/1_1-Additive_and_Multiplicative_Principles/1_1_1.pg b/Contrib/DMOI/1-Counting/1_1-Additive_and_Multiplicative_Principles/1_1_1.pg index 7a9bc6cd56..86256fe0d6 100644 --- a/Contrib/DMOI/1-Counting/1_1-Additive_and_Multiplicative_Principles/1_1_1.pg +++ b/Contrib/DMOI/1-Counting/1_1-Additive_and_Multiplicative_Principles/1_1_1.pg @@ -1,9 +1,9 @@ ####################################### -### Generated from PreTeXt source -### on 2018-05-17T08:45:02-06:00 -### -### http://mathbook.pugetsound.edu -### +### Generated from PreTeXt source +### on 2018-05-17T08:45:02-06:00 +### +### http://mathbook.pugetsound.edu +### ####################################### ## DBsubject(Combinatorics) ## DBchapter(Counting) @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", ); diff --git a/Contrib/DMOI/1-Counting/1_1-Additive_and_Multiplicative_Principles/1_1_10.pg b/Contrib/DMOI/1-Counting/1_1-Additive_and_Multiplicative_Principles/1_1_10.pg index 40a144bf98..9cc769ceb3 100644 --- a/Contrib/DMOI/1-Counting/1_1-Additive_and_Multiplicative_Principles/1_1_10.pg +++ b/Contrib/DMOI/1-Counting/1_1-Additive_and_Multiplicative_Principles/1_1_10.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -37,8 +37,8 @@ TEXT(beginproblem()); $n = random(800,1500,25); #choose random divisors which are relatively prime do {$a = random(2,9);} until ($a != 5) and ($a != 3) and ($a != 7); -do {$b = random(2,9);} until (gcd($b, $a) ==1); -do {$c = random(2,9);} until (gcd($c,$a) ==1) and (gcd($b,$c) ==1); +do {$b = random(2,9);} until (gcd($b, $a) ==1); +do {$c = random(2,9);} until (gcd($c,$a) ==1) and (gcd($b,$c) ==1); #calculate the number of values of n that are multiples of each of a, b, and c $na = int(($n-1)/$a); $nb =int(($n-1)/$b); diff --git a/Contrib/DMOI/1-Counting/1_1-Additive_and_Multiplicative_Principles/1_1_12.pg b/Contrib/DMOI/1-Counting/1_1-Additive_and_Multiplicative_Principles/1_1_12.pg index 18bfe4ad7c..bfcc8bbfaa 100644 --- a/Contrib/DMOI/1-Counting/1_1-Additive_and_Multiplicative_Principles/1_1_12.pg +++ b/Contrib/DMOI/1-Counting/1_1-Additive_and_Multiplicative_Principles/1_1_12.pg @@ -1,9 +1,9 @@ ####################################### -### Generated from PreTeXt source -### on 2018-05-17T08:45:03-06:00 -### -### http://mathbook.pugetsound.edu -### +### Generated from PreTeXt source +### on 2018-05-17T08:45:03-06:00 +### +### http://mathbook.pugetsound.edu +### ####################################### ## DBsubject(Combinatorics) ## DBchapter(Counting) @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "contextIntegerFunctions.pl", "PGcourse.pl", ); @@ -60,7 +60,7 @@ $ans5 = Compute("P($n,$w) - $w2*P($n3,$w3)"); # Body #################### BEGIN_PGML -We want to build [$w] letter "words" using only the first [`n =[$n]`] letters of the alphabet. For example, if [`n = 5`] we can use the first 5 letters, [`\{a, b, c, d, e \}`] (Recall, words are just strings of letters, not necessarily actual English words.) +We want to build [$w] letter "words" using only the first [`n =[$n]`] letters of the alphabet. For example, if [`n = 5`] we can use the first 5 letters, [`\{a, b, c, d, e \}`] (Recall, words are just strings of letters, not necessarily actual English words.) a. How many of these words are there total? [_______]{$ans1} @@ -83,7 +83,7 @@ a. How many of these words either start with "ade" or end with "be" or both? a. How many of the words containing no repeats also do not contain the sub-word "bed"? - [_______]{$ans5} + [_______]{$ans5} diff --git a/Contrib/DMOI/1-Counting/1_1-Additive_and_Multiplicative_Principles/1_1_2.pg b/Contrib/DMOI/1-Counting/1_1-Additive_and_Multiplicative_Principles/1_1_2.pg index f9d3d809bb..ee4166282b 100644 --- a/Contrib/DMOI/1-Counting/1_1-Additive_and_Multiplicative_Principles/1_1_2.pg +++ b/Contrib/DMOI/1-Counting/1_1-Additive_and_Multiplicative_Principles/1_1_2.pg @@ -1,9 +1,9 @@ ####################################### -### Generated from PreTeXt source -### on 2018-05-17T08:45:02-06:00 -### -### http://mathbook.pugetsound.edu -### +### Generated from PreTeXt source +### on 2018-05-17T08:45:02-06:00 +### +### http://mathbook.pugetsound.edu +### ####################################### ## DBsubject(Combinatorics) ## DBchapter(Counting) @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -61,7 +61,7 @@ $ans3 = Compute("[$c]*[$d] + [$c]*[$f] + [$g] "); # Body #################### BEGIN_PGML -For your college interview, you must wear a tie. You own [$a] regular (boring) ties and [$b] (cool) bow ties. +For your college interview, you must wear a tie. You own [$a] regular (boring) ties and [$b] (cool) bow ties. a. How many choices do you have for your neck-wear? [_____]{$ans1} @@ -74,7 +74,7 @@ a. You realize that the interview is for clown college, so you should probably a. For the rest of your outfit, you have [$c] shirts, [$d] skirts, [$f] pants, and [$g] dresses. You want to select either a shirt to wear with a skirt or pants, or just a dress. How many outfits do you have to choose from? - [_____]{$ans3} + [_____]{$ans3} @@ -88,7 +88,7 @@ a. [`[$a] + [$b] = [$ans1]`] ties. Use the additive principle. a. [`[$a] \cdot [$b] = [$ans2]`] ties. Use the multiplicative principle -a. [`[$c] \cdot ([$d]+[$f]) + [$g] = [$ans3]`] outfits. +a. [`[$c] \cdot ([$d]+[$f]) + [$g] = [$ans3]`] outfits. diff --git a/Contrib/DMOI/1-Counting/1_1-Additive_and_Multiplicative_Principles/1_1_4.pg b/Contrib/DMOI/1-Counting/1_1-Additive_and_Multiplicative_Principles/1_1_4.pg index 91c939063d..36e91d1082 100644 --- a/Contrib/DMOI/1-Counting/1_1-Additive_and_Multiplicative_Principles/1_1_4.pg +++ b/Contrib/DMOI/1-Counting/1_1-Additive_and_Multiplicative_Principles/1_1_4.pg @@ -1,9 +1,9 @@ ####################################### -### Generated from PreTeXt source -### on 2018-05-17T08:45:02-06:00 -### -### http://mathbook.pugetsound.edu -### +### Generated from PreTeXt source +### on 2018-05-17T08:45:02-06:00 +### +### http://mathbook.pugetsound.edu +### ####################################### ## DBsubject(Combinatorics) ## DBchapter(Counting) @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -61,20 +61,20 @@ $ansc = $first + $last -$both; # Body #################### BEGIN_PGML -We usually write numbers in decimal form (or base 10), meaning numbers are composed using 10 different "digits" [`\{0,1,\ldots, 9\}\text{.}`] Sometimes though it is useful to write numbers hexadecimal or base 16. Now there are 16 distinct digits that can be used to form numbers: [`\{0, 1, \ldots, 9, \mathrm{A, B, C, D, E, F}\}\text{.}`] So for example, a 3 digit hexadecimal number might be 2B8. +We usually write numbers in decimal form (or base 10), meaning numbers are composed using 10 different "digits" [`\{0,1,\ldots, 9\}\text{.}`] Sometimes though it is useful to write numbers hexadecimal or base 16. Now there are 16 distinct digits that can be used to form numbers: [`\{0, 1, \ldots, 9, \mathrm{A, B, C, D, E, F}\}\text{.}`] So for example, a 3 digit hexadecimal number might be 2B8. -a. How many [$a]-digit hexadecimals are there in which the first digit is E or F? +a. How many [$a]-digit hexadecimals are there in which the first digit is E or F? [_____]{$ansa} -a. How many [$b]-digit hexadecimals start with a letter (A-F) and end with a numeral (0-9)? +a. How many [$b]-digit hexadecimals start with a letter (A-F) and end with a numeral (0-9)? [_____]{$ansb} a. How many [$c]-digit hexadecimals start with a letter (A-F) or end with a numeral (0-9) (or both)? - [_____]{$ansc} + [_____]{$ansc} diff --git a/Contrib/DMOI/1-Counting/1_1-Additive_and_Multiplicative_Principles/1_1_5.pg b/Contrib/DMOI/1-Counting/1_1-Additive_and_Multiplicative_Principles/1_1_5.pg index c3a492526f..78a7c5bfe1 100644 --- a/Contrib/DMOI/1-Counting/1_1-Additive_and_Multiplicative_Principles/1_1_5.pg +++ b/Contrib/DMOI/1-Counting/1_1-Additive_and_Multiplicative_Principles/1_1_5.pg @@ -1,9 +1,9 @@ ####################################### -### Generated from PreTeXt source -### on 2018-05-17T08:45:02-06:00 -### -### http://mathbook.pugetsound.edu -### +### Generated from PreTeXt source +### on 2018-05-17T08:45:02-06:00 +### +### http://mathbook.pugetsound.edu +### ####################################### ## DBsubject(Combinatorics) ## DBchapter(Counting) @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PCCmacros.pl", "PGcourse.pl", ); @@ -51,7 +51,7 @@ $ans3 = $b+$a; # Body #################### BEGIN_PGML -Suppose you have sets [`A`] and [`B`] with [`\renewcommand{\bar}{\overline}\newcommand{\card}[1]{\left| #1 \right|}\card{A} = [$a]`] and [`\renewcommand{\bar}{\overline}\newcommand{\card}[1]{\left| #1 \right|}\card{B} = [$b]\text{.}`] +Suppose you have sets [`A`] and [`B`] with [`\renewcommand{\bar}{\overline}\newcommand{\card}[1]{\left| #1 \right|}\card{A} = [$a]`] and [`\renewcommand{\bar}{\overline}\newcommand{\card}[1]{\left| #1 \right|}\card{B} = [$b]\text{.}`] a. What is the largest possible value for [`\renewcommand{\bar}{\overline}\newcommand{\card}[1]{\left| #1 \right|}\card{A \cap B}\text{?}`] [_____]{$a} @@ -78,7 +78,7 @@ END_PGML BEGIN_PGML_SOLUTION a. To maximize the number of elements in common between [`A`] and [`B\text{,}`] make [`A \subset B\text{.}`] This would give [`\renewcommand{\bar}{\overline}\newcommand{\card}[1]{\left| #1 \right|}\card{A \cap B} = [$a]\text{.}`] a. [`A`] and [`B`] might have no elements in common, giving [`\renewcommand{\bar}{\overline}\newcommand{\card}[1]{\left| #1 \right|}\card{A\cap B} = 0\text{.}`] -a. [`\renewcommand{\bar}{\overline}\newcommand{\card}[1]{\left| #1 \right|}[$b] \le \card{A \cup B} \le [$ans3]\text{.}`] In fact, when [`\renewcommand{\bar}{\overline}\newcommand{\card}[1]{\left| #1 \right|}\card{A \cap B} = 0`] then [`\renewcommand{\bar}{\overline}\newcommand{\card}[1]{\left| #1 \right|}\card{A \cup B} = [$ans3]`] and when [`\renewcommand{\bar}{\overline}\newcommand{\card}[1]{\left| #1 \right|}\card{A \cap B} = [$a]`] then [`\renewcommand{\bar}{\overline}\newcommand{\card}[1]{\left| #1 \right|}\card{A \cup B} = [$b]\text{.}`] +a. [`\renewcommand{\bar}{\overline}\newcommand{\card}[1]{\left| #1 \right|}[$b] \le \card{A \cup B} \le [$ans3]\text{.}`] In fact, when [`\renewcommand{\bar}{\overline}\newcommand{\card}[1]{\left| #1 \right|}\card{A \cap B} = 0`] then [`\renewcommand{\bar}{\overline}\newcommand{\card}[1]{\left| #1 \right|}\card{A \cup B} = [$ans3]`] and when [`\renewcommand{\bar}{\overline}\newcommand{\card}[1]{\left| #1 \right|}\card{A \cap B} = [$a]`] then [`\renewcommand{\bar}{\overline}\newcommand{\card}[1]{\left| #1 \right|}\card{A \cup B} = [$b]\text{.}`] diff --git a/Contrib/DMOI/1-Counting/1_1-Additive_and_Multiplicative_Principles/1_1_6.pg b/Contrib/DMOI/1-Counting/1_1-Additive_and_Multiplicative_Principles/1_1_6.pg index 7777c53c68..26cfd3c74e 100644 --- a/Contrib/DMOI/1-Counting/1_1-Additive_and_Multiplicative_Principles/1_1_6.pg +++ b/Contrib/DMOI/1-Counting/1_1-Additive_and_Multiplicative_Principles/1_1_6.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", ); diff --git a/Contrib/DMOI/1-Counting/1_1-Additive_and_Multiplicative_Principles/1_1_7.pg b/Contrib/DMOI/1-Counting/1_1-Additive_and_Multiplicative_Principles/1_1_7.pg index ed3901dcbf..733af07cfa 100644 --- a/Contrib/DMOI/1-Counting/1_1-Additive_and_Multiplicative_Principles/1_1_7.pg +++ b/Contrib/DMOI/1-Counting/1_1-Additive_and_Multiplicative_Principles/1_1_7.pg @@ -1,9 +1,9 @@ ####################################### -### Generated from PreTeXt source -### on 2018-05-17T08:45:03-06:00 -### -### http://mathbook.pugetsound.edu -### +### Generated from PreTeXt source +### on 2018-05-17T08:45:03-06:00 +### +### http://mathbook.pugetsound.edu +### ####################################### ## DBsubject(Combinatorics) ## DBchapter(Counting) @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -44,8 +44,8 @@ TEXT(beginproblem()); Context("Numeric"); #assign random values for set sizes so problem is different from textbook do { - do {$W = random(25,30); } until ($W !=28); - $B = random(15,24); + do {$W = random(25,30); } until ($W !=28); + $B = random(15,24); do {$G = random(20,30); } until ($G !=$W); do {$WiB = random(10,20);} until ($WiB != 16) and ($WiB != 14); do {$WiG = random(10,20);} until ($WiG != $WiB) ; diff --git a/Contrib/DMOI/1-Counting/1_1-Additive_and_Multiplicative_Principles/1_1_8.pg b/Contrib/DMOI/1-Counting/1_1-Additive_and_Multiplicative_Principles/1_1_8.pg index 773ffd2340..4f898a5c6e 100644 --- a/Contrib/DMOI/1-Counting/1_1-Additive_and_Multiplicative_Principles/1_1_8.pg +++ b/Contrib/DMOI/1-Counting/1_1-Additive_and_Multiplicative_Principles/1_1_8.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", ); diff --git a/Contrib/DMOI/1-Counting/1_1-Additive_and_Multiplicative_Principles/1_1_9.pg b/Contrib/DMOI/1-Counting/1_1-Additive_and_Multiplicative_Principles/1_1_9.pg index 1e62a8813e..5fb9a04005 100644 --- a/Contrib/DMOI/1-Counting/1_1-Additive_and_Multiplicative_Principles/1_1_9.pg +++ b/Contrib/DMOI/1-Counting/1_1-Additive_and_Multiplicative_Principles/1_1_9.pg @@ -1,9 +1,9 @@ ####################################### -### Generated from PreTeXt source -### on 2018-05-17T08:45:03-06:00 -### -### http://mathbook.pugetsound.edu -### +### Generated from PreTeXt source +### on 2018-05-17T08:45:03-06:00 +### +### http://mathbook.pugetsound.edu +### ####################################### ## DBsubject(Combinatorics) ## DBchapter(Counting) @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -45,8 +45,8 @@ TEXT(beginproblem()); $n = random(450,800, 5); #choose random divisors which are relatively prime do {$a = random(2,9);} until ($a != 5) and ($a != 6) and ($a != 7); -do {$b = random(2,9);} until (gcd($b, $a) ==1); -do {$c = random(2,9);} until (gcd($c,$a) ==1) and (gcd($b,$c) ==1); +do {$b = random(2,9);} until (gcd($b, $a) ==1); +do {$c = random(2,9);} until (gcd($c,$a) ==1) and (gcd($b,$c) ==1); #calculate the number of values of n that are multiples of each of a, b, and c $na = int($n/$a); $nb =int($n/$b); diff --git a/Contrib/DMOI/1-Counting/1_2-Binomial_Coefficients/1_2_1.pg b/Contrib/DMOI/1-Counting/1_2-Binomial_Coefficients/1_2_1.pg index 5afc321388..d1fbef8fd4 100644 --- a/Contrib/DMOI/1-Counting/1_2-Binomial_Coefficients/1_2_1.pg +++ b/Contrib/DMOI/1-Counting/1_2-Binomial_Coefficients/1_2_1.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "contextIntegerFunctions.pl", "PGcourse.pl", ); @@ -50,7 +50,7 @@ $ans4= Compute("C($eve,1)*2**$odd"); # Body #################### BEGIN_PGML -Let [`S = [$A]`] +Let [`S = [$A]`] a. How many subsets are there total? [_____]{$ans1} @@ -68,7 +68,7 @@ a. How many subsets contain at least one odd number? a. How many subsets contain exactly one even number? - [_____]{$ans4} + [_____]{$ans4} @@ -81,7 +81,7 @@ BEGIN_PGML_SOLUTION a. [`2^{[$n]} = [$ans1]`] subsets. We need to select yes/no for each of the [$n] elements. a. [`2^{[$n3]} = [$ans2]`] subsets. We need to select yes/no for each of the remaining [$n3] elements. a. [`2^{[$n]} - 2^{[$eve]} = [$ans3]`] subsets. We subtract the number of subsets which do _not_ contain any odd numbers ([`2^{[$eve]}`]-select yes or no for each even element) from the total number of possible subsets. -a. [`{[$eve] \choose 1}\cdot 2^{[$odd]} =[$ans4]`] subsets. First pick the even number. Then say yes or no to each of the odd numbers. +a. [`{[$eve] \choose 1}\cdot 2^{[$odd]} =[$ans4]`] subsets. First pick the even number. Then say yes or no to each of the odd numbers. diff --git a/Contrib/DMOI/1-Counting/1_2-Binomial_Coefficients/1_2_10.pg b/Contrib/DMOI/1-Counting/1_2-Binomial_Coefficients/1_2_10.pg index 542a2d7495..58e64d8254 100644 --- a/Contrib/DMOI/1-Counting/1_2-Binomial_Coefficients/1_2_10.pg +++ b/Contrib/DMOI/1-Counting/1_2-Binomial_Coefficients/1_2_10.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "contextIntegerFunctions.pl", "PGcourse.pl", ); @@ -57,7 +57,7 @@ $ans3 = Compute("$ans1 - $ans2"); # Body #################### BEGIN_PGML -How many shortest lattice paths start at [`([$s],[$s])`] and +How many shortest lattice paths start at [`([$s],[$s])`] and a. end at [` ([$f],[$f]) `]? [_____]{$ans1} @@ -70,7 +70,7 @@ a. end at [` ([$f],[$f]) `] and pass through [` ([$mx],[$my]) `]? a. end at [` ([$f],[$f]) `] and avoid [` ([$mx],[$my]) `]? - [_______]{$ans3} + [_______]{$ans3} diff --git a/Contrib/DMOI/1-Counting/1_2-Binomial_Coefficients/1_2_11.pg b/Contrib/DMOI/1-Counting/1_2-Binomial_Coefficients/1_2_11.pg index 53255e40c8..2a24e72a60 100644 --- a/Contrib/DMOI/1-Counting/1_2-Binomial_Coefficients/1_2_11.pg +++ b/Contrib/DMOI/1-Counting/1_2-Binomial_Coefficients/1_2_11.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "contextIntegerFunctions.pl", "PGcourse.pl", ); @@ -75,15 +75,15 @@ BEGIN_PGML Gridtown USA, besides having excellent donut shops, is known for its precisely laid out grid of streets and avenues. Streets run east-west, and avenues north-south, for the entire stretch of the town, never curving and never interrupted by parks or schools or the like. Suppose you live on the corner of [$s]th and [$s]th and work on the corner of [$f]th and [$f]th. Thus you must travel [$total] blocks to get to work as quickly as possible. -a. How many different routes can you take to work, assuming you want to get there as quickly as possible? +a. How many different routes can you take to work, assuming you want to get there as quickly as possible? [_____]{$ans1} -a. Now suppose you want to stop and get a donut on the way to work, from your favorite donut shop on the corner of [$x1]th Ave. and [$y1]th St. How many routes to work, stopping at the donut shop, can you take (again, ensuring the shortest possible route)? +a. Now suppose you want to stop and get a donut on the way to work, from your favorite donut shop on the corner of [$x1]th Ave. and [$y1]th St. How many routes to work, stopping at the donut shop, can you take (again, ensuring the shortest possible route)? [________]{$ans2} -a. Disaster Strikes Gridtown: there is a pothole on [$x2]th Ave. between [$y2]th St. and [$y2+1]th St. How many routes to work can you take avoiding that unsightly (and dangerous) stretch of road? +a. Disaster Strikes Gridtown: there is a pothole on [$x2]th Ave. between [$y2]th St. and [$y2+1]th St. How many routes to work can you take avoiding that unsightly (and dangerous) stretch of road? [________]{$ans3} diff --git a/Contrib/DMOI/1-Counting/1_2-Binomial_Coefficients/1_2_12.pg b/Contrib/DMOI/1-Counting/1_2-Binomial_Coefficients/1_2_12.pg index 1c821123c8..f7b28fdf2d 100644 --- a/Contrib/DMOI/1-Counting/1_2-Binomial_Coefficients/1_2_12.pg +++ b/Contrib/DMOI/1-Counting/1_2-Binomial_Coefficients/1_2_12.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "contextIntegerFunctions.pl", "PGcourse.pl", ); @@ -45,14 +45,14 @@ $ans1 = Compute("C([$n],[$a])"); $ans2 = Compute("C([$b],[$a])"); $ans3 = Compute("C([$b],[$c])"); - - + + #################### # Body #################### BEGIN_PGML -Suppose you are ordering a calzone from _D.P.[$NBSP]*Dough_. You want [$a] distinct toppings, chosen from their list of [$n] vegetarian toppings. +Suppose you are ordering a calzone from _D.P.[$NBSP]*Dough_. You want [$a] distinct toppings, chosen from their list of [$n] vegetarian toppings. a. How many choices do you have for your calzone? [_____]{$ans1} @@ -81,7 +81,7 @@ a. [`{[$n] \choose [$a]} = [$ans1]`] choices, since you have to select a [$a]-e a. [`{[$b] \choose [$a]} = [$ans2]`] choices, since you must select [$a] of the [$b] non-green pepper toppings. a. [`{[$b] \choose [$c]} = [$ans3]`] choices, since you must select [$c] of the remaining [$b] non-green pepper toppings to have in addition to the green pepper. -Note that [`[$ans1] = [$ans2] + [$ans3]`] choices, which makes sense because every [$a]-topping pizza either has green pepper or does not have green pepper as a topping. +Note that [`[$ans1] = [$ans2] + [$ans3]`] choices, which makes sense because every [$a]-topping pizza either has green pepper or does not have green pepper as a topping. END_PGML_SOLUTION diff --git a/Contrib/DMOI/1-Counting/1_2-Binomial_Coefficients/1_2_2.pg b/Contrib/DMOI/1-Counting/1_2-Binomial_Coefficients/1_2_2.pg index c16d2b3faf..45a6bbe511 100644 --- a/Contrib/DMOI/1-Counting/1_2-Binomial_Coefficients/1_2_2.pg +++ b/Contrib/DMOI/1-Counting/1_2-Binomial_Coefficients/1_2_2.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PCCmacros.pl", "contextIntegerFunctions.pl", "PGcourse.pl", @@ -41,7 +41,7 @@ $n = random(5,10); #define number of possible elements in set S $S = Set(1..$n); $c = ceil($n/2)+1; #cardinality is equal to 1 more than number of odd numbers in the set. # do {$c = random(4,7);} until ($c <$n) and ($n/2 < $c); #pick a value for subset cardinality -$n3 = $n-3; #remaining elements other than {2,3,5} for part b +$n3 = $n-3; #remaining elements other than {2,3,5} for part b $c3 = $c-3; #remaining elements to be chosen for subset in part b $ans1 = C($n,$c); $ans2 = C($n3,$c3); @@ -53,7 +53,7 @@ $ans3 = C($ev,1); # Body #################### BEGIN_PGML -Let [`S = [$S]`] +Let [`S = [$S]`] a. How many subsets are there of cardinality [$c]? [_____]{$ans1} (Note: you can enter "C(n,k)" for [`\binom{n}{k}\text{.}`]) @@ -70,8 +70,8 @@ a. How many subsets of cardinality [$c] contain at least one odd number? a. How many subsets of cardinality [$c] contain exactly one even number? - [_____]{$ans3} - + [_____]{$ans3} + END_PGML @@ -82,7 +82,7 @@ BEGIN_PGML_SOLUTION a. [`{[$n]\choose [$c]} = [$ans1]`] subsets. a. [`{[$n3] \choose [$c3]} = [$ans2]`] subsets. We need to select [$c3] of the [$n3] remaining elements of [`S`] to be in the subset. a. [`{[$n] \choose [$c]} = [$ans1]`] subsets. _All_ subsets of cardinality [$c] must contain at least one odd number. -a. [`{[$ev] \choose 1} = [$ev]`] subsets. Select 1 of the [$ev] even numbers. The remaining [$c-1] odd numbers of [`S`] must all be in the set. +a. [`{[$ev] \choose 1} = [$ev]`] subsets. Select 1 of the [$ev] even numbers. The remaining [$c-1] odd numbers of [`S`] must all be in the set. END_PGML_SOLUTION diff --git a/Contrib/DMOI/1-Counting/1_2-Binomial_Coefficients/1_2_3.pg b/Contrib/DMOI/1-Counting/1_2-Binomial_Coefficients/1_2_3.pg index 2395d37dc5..d46f1717f6 100644 --- a/Contrib/DMOI/1-Counting/1_2-Binomial_Coefficients/1_2_3.pg +++ b/Contrib/DMOI/1-Counting/1_2-Binomial_Coefficients/1_2_3.pg @@ -1,9 +1,9 @@ ####################################### -### Generated from PreTeXt source -### on 2018-05-17T08:45:03-06:00 -### -### http://mathbook.pugetsound.edu -### +### Generated from PreTeXt source +### on 2018-05-17T08:45:03-06:00 +### +### http://mathbook.pugetsound.edu +### ####################################### ## DBsubject(Combinatorics) ## DBchapter(Counting) @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "contextIntegerFunctions.pl", "PGcourse.pl", ); @@ -64,13 +64,13 @@ $ans4 = $go; # Body #################### BEGIN_PGML -Let [`A = [$A] \text{.}`] -a. How many subsets of [`A`] are there? That is, find [`\newcommand{\pow}{\mathcal P}|\pow(A)|\text{.}`] +Let [`A = [$A] \text{.}`] +a. How many subsets of [`A`] are there? That is, find [`\newcommand{\pow}{\mathcal P}|\pow(A)|\text{.}`] [_____]{$ans1} -a. How many subsets of [`A`] contain exactly [$s] elements? +a. How many subsets of [`A`] contain exactly [$s] elements? [_____]{$ans2} @@ -80,9 +80,9 @@ a. How many subsets of [`A`] contain only even numbers? [_____]{$ans3} -a. How many subsets of [`A`] contain an even number of elements? +a. How many subsets of [`A`] contain an even number of elements? - [_____]{$ans4} + [_____]{$ans4} @@ -107,7 +107,7 @@ a. Count the number of subsets with each possible even cardinality: {[$n] \choose 0} + {[$n] \choose 2} + \dots... = [$ans4] ``] << - + diff --git a/Contrib/DMOI/1-Counting/1_2-Binomial_Coefficients/1_2_4.pg b/Contrib/DMOI/1-Counting/1_2-Binomial_Coefficients/1_2_4.pg index 374629f1d1..2e2f398048 100644 --- a/Contrib/DMOI/1-Counting/1_2-Binomial_Coefficients/1_2_4.pg +++ b/Contrib/DMOI/1-Counting/1_2-Binomial_Coefficients/1_2_4.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "contextIntegerFunctions.pl", "PGcourse.pl", ); @@ -55,13 +55,13 @@ $oc = Compute("C($n5,$w3)"); # Body #################### BEGIN_PGML -How many [`[$n]`]-bit strings (that is, bit strings of length [$n]) are there which: -a. Start with the sub-string 011? +How many [`[$n]`]-bit strings (that is, bit strings of length [$n]) are there which: +a. Start with the sub-string 011? [_____]{$ans1} -a. Have weight [$w] (i.e., contain exactly [$w] 1's) and start with the sub-string 011? +a. Have weight [$w] (i.e., contain exactly [$w] 1's) and start with the sub-string 011? [_____]{$ans2} @@ -71,9 +71,9 @@ a. Either start with [`011`] or end with [`01`] (or both)? [_____]{$ans3} -a. Have weight [$w] and either start with [`011`] or end with [`01`] (or both)? +a. Have weight [$w] and either start with [`011`] or end with [`01`] (or both)? - [_____]{$ans4} + [_____]{$ans4} diff --git a/Contrib/DMOI/1-Counting/1_2-Binomial_Coefficients/1_2_5.pg b/Contrib/DMOI/1-Counting/1_2-Binomial_Coefficients/1_2_5.pg index f580eac6ca..a5325651dd 100644 --- a/Contrib/DMOI/1-Counting/1_2-Binomial_Coefficients/1_2_5.pg +++ b/Contrib/DMOI/1-Counting/1_2-Binomial_Coefficients/1_2_5.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "contextIntegerFunctions.pl", "PGcourse.pl", ); @@ -51,7 +51,7 @@ $total2 = 2**$n; # Body #################### BEGIN_PGML -You break your piggy-bank to discover lots of pennies and nickels. You start arranging these in rows of [$n] coins. +You break your piggy-bank to discover lots of pennies and nickels. You start arranging these in rows of [$n] coins. a. You find yourself making rows containing an equal number of pennies and nickels. For fun, you decide to lay out every possible such row. How many coins will you need? [_____]{$total1} @@ -59,7 +59,7 @@ a. You find yourself making rows containing an equal number of pennies and nick a. How many coins would you need to make all possible rows of [$n] coins (not necessarily with equal number of pennies and nickels)? - [_____]{$ans2} + [_____]{$ans2} @@ -72,7 +72,7 @@ BEGIN_PGML_SOLUTION a. We can think of each row as a [$n]-bit string of weight [$half] (since of the [$n] coins, we require [$half] to be pennies). Thus there are [`{[$n] \choose [$half]} = [$ans1]`] rows possible. Each row requires [$n] coins, so if we want to make all the rows at the same time, we will need [$total1] coins, half of them nickels and half of them pennies. -a. Now there are [`2^{[$n]} = [$total2]`] rows possible, which is also [`{[$n] \choose 0} + {[$n]\choose 1} + {[$n] \choose 2} +\dots + {[$n] \choose [$n]}\text{,}`] if you break them up into rows containing 0, 1, 2, etc. pennies. Thus, since there are [$n] coins in each row, we need [`[$n] \cdot [$total2] = [$ans2]`] total coins. +a. Now there are [`2^{[$n]} = [$total2]`] rows possible, which is also [`{[$n] \choose 0} + {[$n]\choose 1} + {[$n] \choose 2} +\dots + {[$n] \choose [$n]}\text{,}`] if you break them up into rows containing 0, 1, 2, etc. pennies. Thus, since there are [$n] coins in each row, we need [`[$n] \cdot [$total2] = [$ans2]`] total coins. diff --git a/Contrib/DMOI/1-Counting/1_2-Binomial_Coefficients/1_2_6.pg b/Contrib/DMOI/1-Counting/1_2-Binomial_Coefficients/1_2_6.pg index f93b7027ae..c01df753b4 100644 --- a/Contrib/DMOI/1-Counting/1_2-Binomial_Coefficients/1_2_6.pg +++ b/Contrib/DMOI/1-Counting/1_2-Binomial_Coefficients/1_2_6.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "contextIntegerFunctions.pl", "PGcourse.pl", ); @@ -41,7 +41,7 @@ do {$a = random(4,9);} until ($a < $t-1); for ($i=0; $i <= $t-$a; $i ++) {$ans = Compute("$ans + C($t,($a+$i))"); -} +} $ans = Compute("$ans"); #################### # Body @@ -58,7 +58,7 @@ END_PGML # Solution #################### BEGIN_PGML_SOLUTION -Count the number of strings with each permissible number of 1's separately and then add them up. So there are [`{[$t] \choose [$a]} + {[$t] \choose [$a+1]} + \cdots {[$t] \choose [$t]} = [$ans]`] strings. +Count the number of strings with each permissible number of 1's separately and then add them up. So there are [`{[$t] \choose [$a]} + {[$t] \choose [$a+1]} + \cdots {[$t] \choose [$t]} = [$ans]`] strings. END_PGML_SOLUTION diff --git a/Contrib/DMOI/1-Counting/1_2-Binomial_Coefficients/1_2_7.pg b/Contrib/DMOI/1-Counting/1_2-Binomial_Coefficients/1_2_7.pg index ffcded7fc2..66ba324b7c 100644 --- a/Contrib/DMOI/1-Counting/1_2-Binomial_Coefficients/1_2_7.pg +++ b/Contrib/DMOI/1-Counting/1_2-Binomial_Coefficients/1_2_7.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "contextIntegerFunctions.pl", "PGcourse.pl", ); @@ -44,7 +44,7 @@ do {$a = random(2,8);} until ($a !=6); for ($i=0; $i <= 10-$a; $i ++) {$ans = Compute("$ans + C(10,($a+$i))"); -} +} $ans = Compute("$ans"); $b = 10-($a -1); @@ -73,7 +73,7 @@ END_PGML_HINT # Solution #################### BEGIN_PGML_SOLUTION -This is the same as a question about [$a]-bit strings, since we can think of each subset as a [$a]-bit string with a 1 representing that we include that element in the subset. [`{10 \choose [$a]} + {10\choose [$a+1]} + \cdots + {10\choose 10} = [$ans]`] subsets. +This is the same as a question about [$a]-bit strings, since we can think of each subset as a [$a]-bit string with a 1 representing that we include that element in the subset. [`{10 \choose [$a]} + {10\choose [$a+1]} + \cdots + {10\choose 10} = [$ans]`] subsets. END_PGML_SOLUTION diff --git a/Contrib/DMOI/1-Counting/1_2-Binomial_Coefficients/1_2_8.pg b/Contrib/DMOI/1-Counting/1_2-Binomial_Coefficients/1_2_8.pg index 052b46380d..5b4221985d 100644 --- a/Contrib/DMOI/1-Counting/1_2-Binomial_Coefficients/1_2_8.pg +++ b/Contrib/DMOI/1-Counting/1_2-Binomial_Coefficients/1_2_8.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "contextIntegerFunctions.pl", "PGcourse.pl", ); diff --git a/Contrib/DMOI/1-Counting/1_2-Binomial_Coefficients/1_2_9.pg b/Contrib/DMOI/1-Counting/1_2-Binomial_Coefficients/1_2_9.pg index c2c53bec30..a5b1d331cd 100644 --- a/Contrib/DMOI/1-Counting/1_2-Binomial_Coefficients/1_2_9.pg +++ b/Contrib/DMOI/1-Counting/1_2-Binomial_Coefficients/1_2_9.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "contextIntegerFunctions.pl", "PGcourse.pl", ); @@ -60,7 +60,7 @@ END_PGML #################### BEGIN_PGML_SOLUTION -To get an [`x^{[$c]}`] from the first term, we must pick [$c] of the [$a] factors to contribute an [`x\text{,}`] leaving the other [$d] to contribute a 2. There are [`{[$a] \choose [$c]}`] ways to select these [$c] factors, so the coefficient will be [`{[$a] \choose [$c]} *2^{[$d]}\text{.}`] Now we must choose [$f] of the factors in the second term to contribute an [`x\text{,}`] leaving the other [$g] terms to contribute a 3. This gives us [`{[$b] \choose [$f]}*3^{[$g]}`] for the coefficient resulting from this term. In total, the term containing an [`x^{[$c]}`] will be [`{[$a] \choose [$c]} *2^{[$d]} + {[$b] \choose [$f]}*3^{[$g]}= [$ans]\text{.}`] +To get an [`x^{[$c]}`] from the first term, we must pick [$c] of the [$a] factors to contribute an [`x\text{,}`] leaving the other [$d] to contribute a 2. There are [`{[$a] \choose [$c]}`] ways to select these [$c] factors, so the coefficient will be [`{[$a] \choose [$c]} *2^{[$d]}\text{.}`] Now we must choose [$f] of the factors in the second term to contribute an [`x\text{,}`] leaving the other [$g] terms to contribute a 3. This gives us [`{[$b] \choose [$f]}*3^{[$g]}`] for the coefficient resulting from this term. In total, the term containing an [`x^{[$c]}`] will be [`{[$a] \choose [$c]} *2^{[$d]} + {[$b] \choose [$f]}*3^{[$g]}= [$ans]\text{.}`] diff --git a/Contrib/DMOI/1-Counting/1_3-Combinations_and_Permutations/1_3_1.pg b/Contrib/DMOI/1-Counting/1_3-Combinations_and_Permutations/1_3_1.pg index 01e82f8508..3a25422b8f 100644 --- a/Contrib/DMOI/1-Counting/1_3-Combinations_and_Permutations/1_3_1.pg +++ b/Contrib/DMOI/1-Counting/1_3-Combinations_and_Permutations/1_3_1.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "contextIntegerFunctions.pl", "PGcourse.pl", ); @@ -47,7 +47,7 @@ $ans3 = Compute("P($n,$half)"); # Body #################### BEGIN_PGML -A pizza parlor offers [$n] toppings. +A pizza parlor offers [$n] toppings. a. How many [$a]-topping pizzas could they put on their menu? Assume double toppings are not allowed. [_____]{$ans1} @@ -60,7 +60,7 @@ a. How many total pizzas are possible, with between zero and [$n] toppings (but a. The pizza parlor will list the [$n] toppings in two equal-sized columns on their menu. How many ways can they arrange the toppings in the left column? - [_____]{$ans3} + [_____]{$ans3} @@ -72,7 +72,7 @@ END_PGML BEGIN_PGML_SOLUTION a. [`{[$n] \choose [$a]} = [$ans1]`] pizzas. We must choose (in no particular order) [$a] out of the [$n] toppings. a. [`2^{[$n]} = [$ans2]`] pizzas. Say yes or no to each topping. -a. [`P([$n],[$half]) = [$ans3]`] ways. Assign each of the [$half] spots in the left column to a unique pizza topping. +a. [`P([$n],[$half]) = [$ans3]`] ways. Assign each of the [$half] spots in the left column to a unique pizza topping. diff --git a/Contrib/DMOI/1-Counting/1_3-Combinations_and_Permutations/1_3_10.pg b/Contrib/DMOI/1-Counting/1_3-Combinations_and_Permutations/1_3_10.pg index 04dc4e827f..51a612b900 100644 --- a/Contrib/DMOI/1-Counting/1_3-Combinations_and_Permutations/1_3_10.pg +++ b/Contrib/DMOI/1-Counting/1_3-Combinations_and_Permutations/1_3_10.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "contextIntegerFunctions.pl", "PGcourse.pl", ); @@ -37,20 +37,20 @@ TEXT(beginproblem()); #################### Context("IntegerFunctions"); do {$total = random(24,40);} until ($total%4 ==0); -$num= $total/4; +$num= $total/4; $ans1 =1; -for ($i = 0; $i < $num; $i++) +for ($i = 0; $i < $num; $i++) { $ai = $total-$i*4; $ans1 = Compute("$ans1*C($ai,4)"); } -#Gives only the numerical value for the answer, rather than combination notation +#Gives only the numerical value for the answer, rather than combination notation #Second part: To change the problem, make sure the number of board members is equal to the number of total foursomes we get ($num) $ans2=1; $rem = $total - $num; -for ($i = 0; $i < $num; $i++) +for ($i = 0; $i < $num; $i++) { $bi = $rem-$i*3; $ans2 = Compute("$ans2*C($bi,3)"); @@ -69,7 +69,7 @@ $rem2 = $rem1-3; # Body #################### BEGIN_PGML -On a business retreat, your company of [$total] businessmen and businesswomen goes golfing. +On a business retreat, your company of [$total] businessmen and businesswomen goes golfing. a. You need to divide up into foursomes (groups of 4 people): a first foursome, a second foursome, and so on. How many ways can you do this? @@ -78,7 +78,7 @@ a. You need to divide up into foursomes (groups of 4 people): a first foursome, a. After all your hard work, you realize that in fact, you want each foursome to include one of the [$num] Board members. How many ways can you do this? - [__________]{$ans3} + [__________]{$ans3} diff --git a/Contrib/DMOI/1-Counting/1_3-Combinations_and_Permutations/1_3_11.pg b/Contrib/DMOI/1-Counting/1_3-Combinations_and_Permutations/1_3_11.pg index b1813a2d03..fd8c2c0bb8 100644 --- a/Contrib/DMOI/1-Counting/1_3-Combinations_and_Permutations/1_3_11.pg +++ b/Contrib/DMOI/1-Counting/1_3-Combinations_and_Permutations/1_3_11.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "contextIntegerFunctions.pl", "PGcourse.pl", ); diff --git a/Contrib/DMOI/1-Counting/1_3-Combinations_and_Permutations/1_3_12.pg b/Contrib/DMOI/1-Counting/1_3-Combinations_and_Permutations/1_3_12.pg index 74aa5b81f3..a5c105eefe 100644 --- a/Contrib/DMOI/1-Counting/1_3-Combinations_and_Permutations/1_3_12.pg +++ b/Contrib/DMOI/1-Counting/1_3-Combinations_and_Permutations/1_3_12.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "contextIntegerFunctions.pl", "PGcourse.pl", ); @@ -37,7 +37,7 @@ TEXT(beginproblem()); #################### Context("IntegerFunctions"); do {$A = random(8,15);} until ($A !=10); -do {$B = random(15,24);} until ($B > $A); +do {$B = random(15,24);} until ($B > $A); $ans1 = Compute("$B^$A"); $ans2 = Compute("P($B,$A)"); $B2=$B-1; @@ -48,7 +48,7 @@ $ba=$B-$A; # Body #################### BEGIN_PGML -Consider sets [`A`] and [`B`] with [`|A| = [$A]`] and [`|B| = [$B]\text{.}`] +Consider sets [`A`] and [`B`] with [`|A| = [$A]`] and [`|B| = [$B]\text{.}`] a. How many functions [`f: A \to B`] are there? [_____]{$ans1} @@ -56,7 +56,7 @@ a. How many functions [`f: A \to B`] are there? a. How many functions [`f: A \to B`] are injective? - [_____]{$ans2} + [_____]{$ans2} @@ -69,7 +69,7 @@ BEGIN_PGML_SOLUTION a. [`[$B]^{[$A]}`] functions. There are [$B] choices for the image of each element in the domain. -a. [`P([$B], [$A])=[$B]\cdot[$B2]\cdot[$B3]\cdot \dots \cdot [$ba]`] injective functions. There are [$B] choices for the image of the first element of the domain, then only [$B2] choices for the second, [$B3] for the third, and so on. +a. [`P([$B], [$A])=[$B]\cdot[$B2]\cdot[$B3]\cdot \dots \cdot [$ba]`] injective functions. There are [$B] choices for the image of the first element of the domain, then only [$B2] choices for the second, [$B3] for the third, and so on. diff --git a/Contrib/DMOI/1-Counting/1_3-Combinations_and_Permutations/1_3_13.pg b/Contrib/DMOI/1-Counting/1_3-Combinations_and_Permutations/1_3_13.pg index bd1b2f08b1..a590fdd861 100644 --- a/Contrib/DMOI/1-Counting/1_3-Combinations_and_Permutations/1_3_13.pg +++ b/Contrib/DMOI/1-Counting/1_3-Combinations_and_Permutations/1_3_13.pg @@ -1,9 +1,9 @@ ####################################### -### Generated from PreTeXt source -### on 2018-05-17T08:45:03-06:00 -### -### http://mathbook.pugetsound.edu -### +### Generated from PreTeXt source +### on 2018-05-17T08:45:03-06:00 +### +### http://mathbook.pugetsound.edu +### ####################################### ## DBsubject(Combinatorics) ## DBchapter(Counting) @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "contextIntegerFunctions.pl", "PGcourse.pl", ); @@ -58,7 +58,7 @@ $ans3 = Compute("C($b,$a)"); # Body #################### BEGIN_PGML -Consider functions [`f: [$A]\to [$B]\text{.}`] +Consider functions [`f: [$A]\to [$B]\text{.}`] a. How many functions are there total? [_____]{$ans1} @@ -71,7 +71,7 @@ a. How many functions are injective? a. How many of the injective functions are _increasing_? To be increasing means that if [`\renewcommand{\v}{\vtx{above}{}}a < b`] then [`\renewcommand{\v}{\vtx{above}{}}f(a) < f(b)\text{,}`] or in other words, the outputs get larger as the inputs get larger. - [_____]{$ans3} + [_____]{$ans3} diff --git a/Contrib/DMOI/1-Counting/1_3-Combinations_and_Permutations/1_3_2.pg b/Contrib/DMOI/1-Counting/1_3-Combinations_and_Permutations/1_3_2.pg index 4259174a95..550c80e3d9 100644 --- a/Contrib/DMOI/1-Counting/1_3-Combinations_and_Permutations/1_3_2.pg +++ b/Contrib/DMOI/1-Counting/1_3-Combinations_and_Permutations/1_3_2.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "contextIntegerFunctions.pl", "PGcourse.pl", ); diff --git a/Contrib/DMOI/1-Counting/1_3-Combinations_and_Permutations/1_3_3.pg b/Contrib/DMOI/1-Counting/1_3-Combinations_and_Permutations/1_3_3.pg index dc7dd656d8..f84f22d2c7 100644 --- a/Contrib/DMOI/1-Counting/1_3-Combinations_and_Permutations/1_3_3.pg +++ b/Contrib/DMOI/1-Counting/1_3-Combinations_and_Permutations/1_3_3.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "contextIntegerFunctions.pl", "PGcourse.pl", ); @@ -45,14 +45,14 @@ $ans4 = Compute("[$a]!"); ############################ #Original part d of problem; Doesn't make sense here. #a. Which of the above counting questions is a combination and which is a permutation? Explain why this makes sense. -#a. The permutation is in part (b), while the combination is in part (c). At first this seems backwards, since usually we use combinations for when order does not matter. Here it looks like in part (c) that order does matter. The better way to distinguish between combinations and permutations is to ask whether we are counting different arrangements as different outcomes. In part (c), there is only one arrangement of any set of 5 digits, while in part (b) each set of 5 digits gives [`5!`] different outcomes. +#a. The permutation is in part (b), while the combination is in part (c). At first this seems backwards, since usually we use combinations for when order does not matter. Here it looks like in part (c) that order does matter. The better way to distinguish between combinations and permutations is to ask whether we are counting different arrangements as different outcomes. In part (c), there is only one arrangement of any set of 5 digits, while in part (b) each set of 5 digits gives [`5!`] different outcomes. #################### # Body #################### BEGIN_PGML -Using the digits 2 through 9, find the number of different [$a]-digit numbers such that: +Using the digits 2 through 9, find the number of different [$a]-digit numbers such that: a. Digits can be used more than once. [_____]{$ans1} @@ -68,7 +68,7 @@ a. Digits cannot be repeated and must be written in increasing order. [_____]{$ans3} - + diff --git a/Contrib/DMOI/1-Counting/1_3-Combinations_and_Permutations/1_3_4.pg b/Contrib/DMOI/1-Counting/1_3-Combinations_and_Permutations/1_3_4.pg index 88c6855a6b..a9058e5f4c 100644 --- a/Contrib/DMOI/1-Counting/1_3-Combinations_and_Permutations/1_3_4.pg +++ b/Contrib/DMOI/1-Counting/1_3-Combinations_and_Permutations/1_3_4.pg @@ -20,7 +20,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "contextIntegerFunctions.pl", "PGcourse.pl", ); @@ -49,15 +49,15 @@ $ans2 = Compute("C([$b],[$c])"); # Body #################### BEGIN_PGML -In an attempt to clean up your room, you have purchased a new floating shelf to put some of your [$b] books you have stacked in a corner. These books are all by different authors. The new book shelf is large enough to hold [$c] of the books. Careful: Before answering the next two questions, ask yourself which answer should be larger. -a. How many ways can you select and arrange [$c] of the [$b] books on the shelf? Notice that here we will allow the books to end up in any order. +In an attempt to clean up your room, you have purchased a new floating shelf to put some of your [$b] books you have stacked in a corner. These books are all by different authors. The new book shelf is large enough to hold [$c] of the books. Careful: Before answering the next two questions, ask yourself which answer should be larger. +a. How many ways can you select and arrange [$c] of the [$b] books on the shelf? Notice that here we will allow the books to end up in any order. [_____]{$ans1} -a. How many ways can you arrange [$c] of the [$b] books on the shelf if you insist they must be arranged alphabetically by author? +a. How many ways can you arrange [$c] of the [$b] books on the shelf if you insist they must be arranged alphabetically by author? - [_____]{$ans2} + [_____]{$ans2} @@ -70,7 +70,7 @@ BEGIN_PGML_SOLUTION a. We can write the answer as [`P([$b],[$c]) = [$b] \cdot [$b1] \cdot [$b2] \cdot \dots \cdot [$diff1]`] , which is the same as [`\frac{[$b]!}{[$diff]!}`] . Or, if you think of picking the [$c] books and then arranging those [$c], you can write this as [`\binom{[$b]}{[$c]}\cdot [$c]!`] . Note, that since any order is acceptable, we are distinguishing between different orders, so a permutation is appropriate here. -a. Here we just need to select the books, and have no choice as how to arrange them. So the answer is just [`\binom{[$b]}{[$c]}`] +a. Here we just need to select the books, and have no choice as how to arrange them. So the answer is just [`\binom{[$b]}{[$c]}`] diff --git a/Contrib/DMOI/1-Counting/1_3-Combinations_and_Permutations/1_3_5.pg b/Contrib/DMOI/1-Counting/1_3-Combinations_and_Permutations/1_3_5.pg index 724fc02d94..c6ad63e11e 100644 --- a/Contrib/DMOI/1-Counting/1_3-Combinations_and_Permutations/1_3_5.pg +++ b/Contrib/DMOI/1-Counting/1_3-Combinations_and_Permutations/1_3_5.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "contextIntegerFunctions.pl", "PGcourse.pl", ); diff --git a/Contrib/DMOI/1-Counting/1_3-Combinations_and_Permutations/1_3_7.pg b/Contrib/DMOI/1-Counting/1_3-Combinations_and_Permutations/1_3_7.pg index ce414536a6..ac5e3e7a41 100644 --- a/Contrib/DMOI/1-Counting/1_3-Combinations_and_Permutations/1_3_7.pg +++ b/Contrib/DMOI/1-Counting/1_3-Combinations_and_Permutations/1_3_7.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "contextIntegerFunctions.pl", "PGcourse.pl", ); @@ -38,7 +38,7 @@ TEXT(beginproblem()); Context("IntegerFunctions"); #Context()->texStrings; @bank = ("ambidextrously", "dermatoglyphic", "troublemakings", "consumptively", "multibranched", "endolymphatic", "malnourished", "questionably", "bankruptcies"); -$tag = random(0,8,1); +$tag = random(0,8,1); $word = $bank[$tag]; if ($tag ==0 or $tag == 1 or $tag == 2) @@ -59,7 +59,7 @@ $c = $b -1; # Body #################### BEGIN_PGML -An _anagram_ of a word is just a rearrangement of its letters. How many different anagrams of "[$word]" are there? +An _anagram_ of a word is just a rearrangement of its letters. How many different anagrams of "[$word]" are there? [_____]{$ans} diff --git a/Contrib/DMOI/1-Counting/1_3-Combinations_and_Permutations/1_3_8.pg b/Contrib/DMOI/1-Counting/1_3-Combinations_and_Permutations/1_3_8.pg index db0df3dc3c..aed25e34bf 100644 --- a/Contrib/DMOI/1-Counting/1_3-Combinations_and_Permutations/1_3_8.pg +++ b/Contrib/DMOI/1-Counting/1_3-Combinations_and_Permutations/1_3_8.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "contextIntegerFunctions.pl", "PGcourse.pl", ); @@ -42,7 +42,7 @@ Context("IntegerFunctions"); $tag = random(0,4,1); #there are only 5 words in the bank (all that I could think of with only 3 distinct letters and interesting length; add more if possible $word = $bank[$tag]; -if ($tag ==0) +if ($tag ==0) { $wlength = 6; $letter = "s"; @@ -60,7 +60,7 @@ $wlength = 6; $letter = "a"; $spot = 1; } -elsif ( $tag == 3) +elsif ( $tag == 3) { $wlength = 6; $letter = "a"; diff --git a/Contrib/DMOI/1-Counting/1_3-Combinations_and_Permutations/1_3_9.pg b/Contrib/DMOI/1-Counting/1_3-Combinations_and_Permutations/1_3_9.pg index 824c23de4d..95d18a8ca1 100644 --- a/Contrib/DMOI/1-Counting/1_3-Combinations_and_Permutations/1_3_9.pg +++ b/Contrib/DMOI/1-Counting/1_3-Combinations_and_Permutations/1_3_9.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "contextIntegerFunctions.pl", "PGcourse.pl", ); @@ -37,10 +37,10 @@ TEXT(beginproblem()); #################### Context("IntegerFunctions"); @bank = ("keeper", "cheese", "attest", "goggles", "revenue", "throttle", "academia", "agraphia", "cheesier", "billfold", "idiomatic","verification"); -$tag = random(0,11); +$tag = random(0,11); $word = $bank[$tag]; -if ($tag ==0 or $tag == 1) +if ($tag ==0 or $tag == 1) { $wlength = 6; $letter = "e"; @@ -65,7 +65,7 @@ elsif ( $tag == 5 ) $wlength = 8; $letter = "t"; } -elsif ( $tag == 6 or $tag == 7) +elsif ( $tag == 6 or $tag == 7) { $wlength = 8; $letter = "a"; @@ -111,7 +111,7 @@ END_PGML # Solution #################### BEGIN_PGML_SOLUTION -First, decide where to put the "[$letter]"s. There are [$wlength] positions, and we must choose 3 of them to fill with an "[$letter]". This can be done in [`\binom{[$wlength]}{3}`] ways. The remaining [$others] spots all get a different letter, so there are [`[$others]!`] ways to finish off the anagram. This gives a total of [`\binom{[$wlength]}{3}\cdot [$others]!`] anagrams. +First, decide where to put the "[$letter]"s. There are [$wlength] positions, and we must choose 3 of them to fill with an "[$letter]". This can be done in [`\binom{[$wlength]}{3}`] ways. The remaining [$others] spots all get a different letter, so there are [`[$others]!`] ways to finish off the anagram. This gives a total of [`\binom{[$wlength]}{3}\cdot [$others]!`] anagrams. Strangely enough, this is [$ans], which is also equal to [`P([$wlength],[$others])\text{.}`] To get the answer that way, start by picking one of the [$wlength] _positions_ to be filled by the first non-"[$letter]" letter, one of the remaining 7 positions to be filled by the next, and so on. Then put "[$letter]"s in the remaining 3 positions. diff --git a/Contrib/DMOI/1-Counting/1_4-Combinatorial_Proofs/1_4_1-essay.pg b/Contrib/DMOI/1-Counting/1_4-Combinatorial_Proofs/1_4_1-essay.pg index e1c76e29f3..3b6199a65c 100644 --- a/Contrib/DMOI/1-Counting/1_4-Combinatorial_Proofs/1_4_1-essay.pg +++ b/Contrib/DMOI/1-Counting/1_4-Combinatorial_Proofs/1_4_1-essay.pg @@ -1,9 +1,9 @@ ####################################### -### Generated from PreTeXt source -### on 2019-03-11T13:50:32-06:00 -### -### https://pretextbook.org -### +### Generated from PreTeXt source +### on 2019-03-11T13:50:32-06:00 +### +### https://pretextbook.org +### ####################################### ## DBsubject() ## DBchapter() @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGessaymacros.pl", "PGcourse.pl", ); diff --git a/Contrib/DMOI/1-Counting/1_4-Combinatorial_Proofs/1_4_10-essay.pg b/Contrib/DMOI/1-Counting/1_4-Combinatorial_Proofs/1_4_10-essay.pg index 5e64cd6a7e..3725c4ea6b 100644 --- a/Contrib/DMOI/1-Counting/1_4-Combinatorial_Proofs/1_4_10-essay.pg +++ b/Contrib/DMOI/1-Counting/1_4-Combinatorial_Proofs/1_4_10-essay.pg @@ -1,9 +1,9 @@ ####################################### -### Generated from PreTeXt source -### on 2019-03-11T13:50:32-06:00 -### -### https://pretextbook.org -### +### Generated from PreTeXt source +### on 2019-03-11T13:50:32-06:00 +### +### https://pretextbook.org +### ####################################### ## DBsubject() ## DBchapter() @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGessaymacros.pl", "PGcourse.pl", ); diff --git a/Contrib/DMOI/1-Counting/1_4-Combinatorial_Proofs/1_4_11-essay.pg b/Contrib/DMOI/1-Counting/1_4-Combinatorial_Proofs/1_4_11-essay.pg index 2c25e9cc5d..c7d968dcdf 100644 --- a/Contrib/DMOI/1-Counting/1_4-Combinatorial_Proofs/1_4_11-essay.pg +++ b/Contrib/DMOI/1-Counting/1_4-Combinatorial_Proofs/1_4_11-essay.pg @@ -1,9 +1,9 @@ ####################################### -### Generated from PreTeXt source -### on 2019-03-11T13:50:32-06:00 -### -### https://pretextbook.org -### +### Generated from PreTeXt source +### on 2019-03-11T13:50:32-06:00 +### +### https://pretextbook.org +### ####################################### ## DBsubject() ## DBchapter() @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGessaymacros.pl", "PGcourse.pl", ); diff --git a/Contrib/DMOI/1-Counting/1_4-Combinatorial_Proofs/1_4_12-essay.pg b/Contrib/DMOI/1-Counting/1_4-Combinatorial_Proofs/1_4_12-essay.pg index 1b1731d8ae..198960ec86 100644 --- a/Contrib/DMOI/1-Counting/1_4-Combinatorial_Proofs/1_4_12-essay.pg +++ b/Contrib/DMOI/1-Counting/1_4-Combinatorial_Proofs/1_4_12-essay.pg @@ -1,9 +1,9 @@ ####################################### -### Generated from PreTeXt source -### on 2019-03-11T13:50:32-06:00 -### -### https://pretextbook.org -### +### Generated from PreTeXt source +### on 2019-03-11T13:50:32-06:00 +### +### https://pretextbook.org +### ####################################### ## DBsubject() ## DBchapter() @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGessaymacros.pl", "PGcourse.pl", ); diff --git a/Contrib/DMOI/1-Counting/1_4-Combinatorial_Proofs/1_4_13-essay.pg b/Contrib/DMOI/1-Counting/1_4-Combinatorial_Proofs/1_4_13-essay.pg index 8458f810e9..37dd03660a 100644 --- a/Contrib/DMOI/1-Counting/1_4-Combinatorial_Proofs/1_4_13-essay.pg +++ b/Contrib/DMOI/1-Counting/1_4-Combinatorial_Proofs/1_4_13-essay.pg @@ -1,9 +1,9 @@ ####################################### -### Generated from PreTeXt source -### on 2019-03-11T13:50:32-06:00 -### -### https://pretextbook.org -### +### Generated from PreTeXt source +### on 2019-03-11T13:50:32-06:00 +### +### https://pretextbook.org +### ####################################### ## DBsubject() ## DBchapter() @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGessaymacros.pl", "PGcourse.pl", ); diff --git a/Contrib/DMOI/1-Counting/1_4-Combinatorial_Proofs/1_4_14-essay.pg b/Contrib/DMOI/1-Counting/1_4-Combinatorial_Proofs/1_4_14-essay.pg index 815b0b13a0..f659eec662 100644 --- a/Contrib/DMOI/1-Counting/1_4-Combinatorial_Proofs/1_4_14-essay.pg +++ b/Contrib/DMOI/1-Counting/1_4-Combinatorial_Proofs/1_4_14-essay.pg @@ -1,9 +1,9 @@ ####################################### -### Generated from PreTeXt source -### on 2019-03-11T13:50:32-06:00 -### -### https://pretextbook.org -### +### Generated from PreTeXt source +### on 2019-03-11T13:50:32-06:00 +### +### https://pretextbook.org +### ####################################### ## DBsubject() ## DBchapter() @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGessaymacros.pl", "PGcourse.pl", ); diff --git a/Contrib/DMOI/1-Counting/1_4-Combinatorial_Proofs/1_4_2-essay.pg b/Contrib/DMOI/1-Counting/1_4-Combinatorial_Proofs/1_4_2-essay.pg index af8cd9e785..94c1eb0f07 100644 --- a/Contrib/DMOI/1-Counting/1_4-Combinatorial_Proofs/1_4_2-essay.pg +++ b/Contrib/DMOI/1-Counting/1_4-Combinatorial_Proofs/1_4_2-essay.pg @@ -1,9 +1,9 @@ ####################################### -### Generated from PreTeXt source -### on 2019-03-11T13:50:32-06:00 -### -### https://pretextbook.org -### +### Generated from PreTeXt source +### on 2019-03-11T13:50:32-06:00 +### +### https://pretextbook.org +### ####################################### ## DBsubject() ## DBchapter() @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGessaymacros.pl", "PGcourse.pl", ); diff --git a/Contrib/DMOI/1-Counting/1_4-Combinatorial_Proofs/1_4_3-essay.pg b/Contrib/DMOI/1-Counting/1_4-Combinatorial_Proofs/1_4_3-essay.pg index b30a0d9f66..0f826c7db3 100644 --- a/Contrib/DMOI/1-Counting/1_4-Combinatorial_Proofs/1_4_3-essay.pg +++ b/Contrib/DMOI/1-Counting/1_4-Combinatorial_Proofs/1_4_3-essay.pg @@ -1,9 +1,9 @@ ####################################### -### Generated from PreTeXt source -### on 2019-03-11T13:50:32-06:00 -### -### https://pretextbook.org -### +### Generated from PreTeXt source +### on 2019-03-11T13:50:32-06:00 +### +### https://pretextbook.org +### ####################################### ## DBsubject() ## DBchapter() @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGessaymacros.pl", "PGcourse.pl", ); diff --git a/Contrib/DMOI/1-Counting/1_4-Combinatorial_Proofs/1_4_4-essay.pg b/Contrib/DMOI/1-Counting/1_4-Combinatorial_Proofs/1_4_4-essay.pg index 8ff7163559..93aa58bc0e 100644 --- a/Contrib/DMOI/1-Counting/1_4-Combinatorial_Proofs/1_4_4-essay.pg +++ b/Contrib/DMOI/1-Counting/1_4-Combinatorial_Proofs/1_4_4-essay.pg @@ -1,9 +1,9 @@ ####################################### -### Generated from PreTeXt source -### on 2019-03-11T13:50:32-06:00 -### -### https://pretextbook.org -### +### Generated from PreTeXt source +### on 2019-03-11T13:50:32-06:00 +### +### https://pretextbook.org +### ####################################### ## DBsubject() ## DBchapter() @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGessaymacros.pl", "PGcourse.pl", ); diff --git a/Contrib/DMOI/1-Counting/1_4-Combinatorial_Proofs/1_4_5-essay.pg b/Contrib/DMOI/1-Counting/1_4-Combinatorial_Proofs/1_4_5-essay.pg index d1f830138b..e8c02fc92c 100644 --- a/Contrib/DMOI/1-Counting/1_4-Combinatorial_Proofs/1_4_5-essay.pg +++ b/Contrib/DMOI/1-Counting/1_4-Combinatorial_Proofs/1_4_5-essay.pg @@ -1,9 +1,9 @@ ####################################### -### Generated from PreTeXt source -### on 2019-03-11T13:50:32-06:00 -### -### https://pretextbook.org -### +### Generated from PreTeXt source +### on 2019-03-11T13:50:32-06:00 +### +### https://pretextbook.org +### ####################################### ## DBsubject() ## DBchapter() @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGessaymacros.pl", "PGcourse.pl", ); diff --git a/Contrib/DMOI/1-Counting/1_4-Combinatorial_Proofs/1_4_6-essay.pg b/Contrib/DMOI/1-Counting/1_4-Combinatorial_Proofs/1_4_6-essay.pg index a2ddc21b0f..59aa04f785 100644 --- a/Contrib/DMOI/1-Counting/1_4-Combinatorial_Proofs/1_4_6-essay.pg +++ b/Contrib/DMOI/1-Counting/1_4-Combinatorial_Proofs/1_4_6-essay.pg @@ -1,9 +1,9 @@ ####################################### -### Generated from PreTeXt source -### on 2019-03-11T13:50:32-06:00 -### -### https://pretextbook.org -### +### Generated from PreTeXt source +### on 2019-03-11T13:50:32-06:00 +### +### https://pretextbook.org +### ####################################### ## DBsubject() ## DBchapter() @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGessaymacros.pl", "PGcourse.pl", ); diff --git a/Contrib/DMOI/1-Counting/1_4-Combinatorial_Proofs/1_4_7-essay.pg b/Contrib/DMOI/1-Counting/1_4-Combinatorial_Proofs/1_4_7-essay.pg index 1aabe2b0bc..d1b1f367a4 100644 --- a/Contrib/DMOI/1-Counting/1_4-Combinatorial_Proofs/1_4_7-essay.pg +++ b/Contrib/DMOI/1-Counting/1_4-Combinatorial_Proofs/1_4_7-essay.pg @@ -1,9 +1,9 @@ ####################################### -### Generated from PreTeXt source -### on 2019-03-11T13:50:32-06:00 -### -### https://pretextbook.org -### +### Generated from PreTeXt source +### on 2019-03-11T13:50:32-06:00 +### +### https://pretextbook.org +### ####################################### ## DBsubject() ## DBchapter() @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGessaymacros.pl", "PGcourse.pl", ); diff --git a/Contrib/DMOI/1-Counting/1_4-Combinatorial_Proofs/1_4_8-essay.pg b/Contrib/DMOI/1-Counting/1_4-Combinatorial_Proofs/1_4_8-essay.pg index 8d8858bc92..dd6b7c4362 100644 --- a/Contrib/DMOI/1-Counting/1_4-Combinatorial_Proofs/1_4_8-essay.pg +++ b/Contrib/DMOI/1-Counting/1_4-Combinatorial_Proofs/1_4_8-essay.pg @@ -1,9 +1,9 @@ ####################################### -### Generated from PreTeXt source -### on 2019-03-11T13:50:32-06:00 -### -### https://pretextbook.org -### +### Generated from PreTeXt source +### on 2019-03-11T13:50:32-06:00 +### +### https://pretextbook.org +### ####################################### ## DBsubject() ## DBchapter() @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGessaymacros.pl", "PGcourse.pl", ); diff --git a/Contrib/DMOI/1-Counting/1_4-Combinatorial_Proofs/1_4_9-essay.pg b/Contrib/DMOI/1-Counting/1_4-Combinatorial_Proofs/1_4_9-essay.pg index 821ab5a8d3..d658ab157a 100644 --- a/Contrib/DMOI/1-Counting/1_4-Combinatorial_Proofs/1_4_9-essay.pg +++ b/Contrib/DMOI/1-Counting/1_4-Combinatorial_Proofs/1_4_9-essay.pg @@ -1,9 +1,9 @@ ####################################### -### Generated from PreTeXt source -### on 2019-03-11T13:50:32-06:00 -### -### https://pretextbook.org -### +### Generated from PreTeXt source +### on 2019-03-11T13:50:32-06:00 +### +### https://pretextbook.org +### ####################################### ## DBsubject() ## DBchapter() @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGessaymacros.pl", "PGcourse.pl", ); diff --git a/Contrib/DMOI/1-Counting/1_5-Stars_and_Bars/1_5_1.pg b/Contrib/DMOI/1-Counting/1_5-Stars_and_Bars/1_5_1.pg index 35087ed202..05dc4d549b 100644 --- a/Contrib/DMOI/1-Counting/1_5-Stars_and_Bars/1_5_1.pg +++ b/Contrib/DMOI/1-Counting/1_5-Stars_and_Bars/1_5_1.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "contextIntegerFunctions.pl", "PGcourse.pl", ); diff --git a/Contrib/DMOI/1-Counting/1_5-Stars_and_Bars/1_5_10.pg b/Contrib/DMOI/1-Counting/1_5-Stars_and_Bars/1_5_10.pg index 8c7619bf72..6283a283c3 100644 --- a/Contrib/DMOI/1-Counting/1_5-Stars_and_Bars/1_5_10.pg +++ b/Contrib/DMOI/1-Counting/1_5-Stars_and_Bars/1_5_10.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "contextIntegerFunctions.pl", "PGcourse.pl", ); @@ -50,7 +50,7 @@ $ans2 = Compute("C($bs,$a)"); # Body #################### BEGIN_PGML -Consider functions [`f:[$A] \to [$B]\text{.}`] +Consider functions [`f:[$A] \to [$B]\text{.}`] a. How many of these functions are strictly increasing? Explain. (A function is strictly increasing provided if [`\renewcommand{\v}{\vtx{above}{}}a < b\text{,}`] then [`\renewcommand{\v}{\vtx{above}{}}f(a) < f(b)\text{.}`]) [_____]{$ans1} @@ -58,7 +58,7 @@ a. How many of these functions are strictly increasing? Explain. (A function is a. How many of the functions are non-decreasing? Explain. (A function is non-decreasing provided if [`\renewcommand{\v}{\vtx{above}{}}a < b\text{,}`] then [`f(a) \le f(b)\text{.}`]) - [_____]{$ans2} + [_____]{$ans2} diff --git a/Contrib/DMOI/1-Counting/1_5-Stars_and_Bars/1_5_11.pg b/Contrib/DMOI/1-Counting/1_5-Stars_and_Bars/1_5_11.pg index 3fa9417a67..076eb76801 100644 --- a/Contrib/DMOI/1-Counting/1_5-Stars_and_Bars/1_5_11.pg +++ b/Contrib/DMOI/1-Counting/1_5-Stars_and_Bars/1_5_11.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "contextIntegerFunctions.pl", "PGcourse.pl", ); @@ -51,7 +51,7 @@ $ans4 = Compute("[$n]^[$f]"); # Body #################### BEGIN_PGML -_Conic_, your favorite math themed fast food drive-in offers [$n] flavors which can be added to your soda. You have enough money to buy a large soda with [$f] added flavors. How many different soda concoctions can you order if: +_Conic_, your favorite math themed fast food drive-in offers [$n] flavors which can be added to your soda. You have enough money to buy a large soda with [$f] added flavors. How many different soda concoctions can you order if: a. You refuse to use any of the flavors more than once? [_____]{$ans1} @@ -88,7 +88,7 @@ a. [`P([$n], [$f]) = ([$n])\cdot ([$n]-1)\cdot \dots \cdot [$k]`] sodas (order a. [`{[$t] \choose [$f]}`] sodas (order does not matter, and repeats are allowed; [$f] stars and [$j] bars). -a. [`[$n]^{[$f]}`] sodas (order matters, and repeats are allowed; [$n] choices [$f] times). +a. [`[$n]^{[$f]}`] sodas (order matters, and repeats are allowed; [$n] choices [$f] times). diff --git a/Contrib/DMOI/1-Counting/1_5-Stars_and_Bars/1_5_2.pg b/Contrib/DMOI/1-Counting/1_5-Stars_and_Bars/1_5_2.pg index 233afff0b1..6214fc8609 100644 --- a/Contrib/DMOI/1-Counting/1_5-Stars_and_Bars/1_5_2.pg +++ b/Contrib/DMOI/1-Counting/1_5-Stars_and_Bars/1_5_2.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "contextIntegerFunctions.pl", "PGcourse.pl", ); @@ -48,7 +48,7 @@ $ans2 = Compute("C([$p],[$a])"); # Body #################### BEGIN_PGML -Using the digits 2 through [$n], find the number of different [$a]-digit numbers such that: +Using the digits 2 through [$n], find the number of different [$a]-digit numbers such that: a. Digits cannot be repeated and must be written in increasing order. (_Increasing_ means _strictly_ increasing. For example, the digits of 134 are increasing, but the digits of 133 are not.) [_____]{$ans1} @@ -56,7 +56,7 @@ a. Digits cannot be repeated and must be written in increasing order. (_Increas a. Digits _can_ be repeated and must be written in _non-decreasing_ order. (Now the digits don't need to be strictly increasing; 133 has digits non-decreasing.) - [_____]{$ans2} + [_____]{$ans2} diff --git a/Contrib/DMOI/1-Counting/1_5-Stars_and_Bars/1_5_4.pg b/Contrib/DMOI/1-Counting/1_5-Stars_and_Bars/1_5_4.pg index 5637ae10d7..b742f5a11b 100644 --- a/Contrib/DMOI/1-Counting/1_5-Stars_and_Bars/1_5_4.pg +++ b/Contrib/DMOI/1-Counting/1_5-Stars_and_Bars/1_5_4.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "contextIntegerFunctions.pl", "PGcourse.pl", ); @@ -38,7 +38,7 @@ TEXT(beginproblem()); Context("IntegerFunctions"); do {$d = random(13,33);} until ($d !=14); $b = random(4,10); -$s = $d + $b - 1; +$s = $d + $b - 1; $n = $b-1; $c = $s - $b; $a = $d - $b; @@ -49,7 +49,7 @@ $ans2 = Compute("C($c,$a)"); # Body #################### BEGIN_PGML -After gym class you are tasked with putting the [$d] identical dodgeballs away into [$b] bins. +After gym class you are tasked with putting the [$d] identical dodgeballs away into [$b] bins. a. How many ways can you do this if there are no restrictions? [_____]{$ans1} @@ -68,7 +68,7 @@ END_PGML #################### BEGIN_PGML_SOLUTION a. [`{[$s] \choose [$d]}`] ways. Each outcome can be represented by a sequence of [$n] sticks and [$d] stones. -a. [`{[$c] \choose [$a]}`] ways. First put one ball in each bin. This leaves [$n] sticks and [$a] stones. +a. [`{[$c] \choose [$a]}`] ways. First put one ball in each bin. This leaves [$n] sticks and [$a] stones. diff --git a/Contrib/DMOI/1-Counting/1_5-Stars_and_Bars/1_5_5.pg b/Contrib/DMOI/1-Counting/1_5-Stars_and_Bars/1_5_5.pg index 127473deea..667865c889 100644 --- a/Contrib/DMOI/1-Counting/1_5-Stars_and_Bars/1_5_5.pg +++ b/Contrib/DMOI/1-Counting/1_5-Stars_and_Bars/1_5_5.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "contextIntegerFunctions.pl", "PGcourse.pl", ); @@ -53,7 +53,7 @@ $ans3 = Compute("C([$p],[$m])"); # Body #################### BEGIN_PGML -How many integer solutions are there to the equation [`x + y + z = [$n]`] for which +How many integer solutions are there to the equation [`x + y + z = [$n]`] for which a. [`x\text{,}`] [`y\text{,}`] and [`z`] are all positive? [_____]{$ans1} @@ -66,7 +66,7 @@ a. [`x\text{,}`] [`y\text{,}`] and [`z`] are all non-negative? a. [`x\text{,}`] [`y\text{,}`] and [`z`] are all greater than or equal to [`-3\text{.}`] - [_____]{$ans3} + [_____]{$ans3} diff --git a/Contrib/DMOI/1-Counting/1_5-Stars_and_Bars/1_5_6.pg b/Contrib/DMOI/1-Counting/1_5-Stars_and_Bars/1_5_6.pg index c269fc128f..5711646e36 100644 --- a/Contrib/DMOI/1-Counting/1_5-Stars_and_Bars/1_5_6.pg +++ b/Contrib/DMOI/1-Counting/1_5-Stars_and_Bars/1_5_6.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "contextIntegerFunctions.pl", "PGcourse.pl", ); @@ -54,7 +54,7 @@ When playing Yahtzee, you roll five regular 6-sided dice. How many different out [_____]{$ans1} -When playing Super-Yahtzee, you roll [$n] regular [$s]-sided dice. Now how any different outcomes are possible from a single roll? +When playing Super-Yahtzee, you roll [$n] regular [$s]-sided dice. Now how any different outcomes are possible from a single roll? [_____]{$ans2} diff --git a/Contrib/DMOI/1-Counting/1_5-Stars_and_Bars/1_5_7.pg b/Contrib/DMOI/1-Counting/1_5-Stars_and_Bars/1_5_7.pg index fd6ab80b3c..8565856895 100644 --- a/Contrib/DMOI/1-Counting/1_5-Stars_and_Bars/1_5_7.pg +++ b/Contrib/DMOI/1-Counting/1_5-Stars_and_Bars/1_5_7.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "contextIntegerFunctions.pl", "PGcourse.pl", ); diff --git a/Contrib/DMOI/1-Counting/1_5-Stars_and_Bars/1_5_8.pg b/Contrib/DMOI/1-Counting/1_5-Stars_and_Bars/1_5_8.pg index d2346a09ae..8273a06cb9 100644 --- a/Contrib/DMOI/1-Counting/1_5-Stars_and_Bars/1_5_8.pg +++ b/Contrib/DMOI/1-Counting/1_5-Stars_and_Bars/1_5_8.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "contextIntegerFunctions.pl", "PGcourse.pl", ); diff --git a/Contrib/DMOI/1-Counting/1_6-Advanced_Counting_Using_PIE/1_6_1.pg b/Contrib/DMOI/1-Counting/1_6-Advanced_Counting_Using_PIE/1_6_1.pg index 0d49d2c90e..b988e766c4 100644 --- a/Contrib/DMOI/1-Counting/1_6-Advanced_Counting_Using_PIE/1_6_1.pg +++ b/Contrib/DMOI/1-Counting/1_6-Advanced_Counting_Using_PIE/1_6_1.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "contextIntegerFunctions.pl", "PGcourse.pl", ); @@ -39,9 +39,9 @@ Context("IntegerFunctions"); do {$d = random(9,20,1);} until ($d !=10); #define how much $ you have (#stars) do {$i = random(6,10,1);} until ($i < $d-1); #define how many items on the menu $b = $i-1; #total bars -$a = $d + $b; #total bars and stars +$a = $d + $b; #total bars and stars $rem = $d - $i; #remaining stars once we give 1 to each -$rt = $a - $i; #remaining stars and bars once we place i stars +$rt = $a - $i; #remaining stars and bars once we place i stars $f = int($d/3); #how many possible items can we buy 3 or more $m = $f*3; #total number of items used if we buy 3 of the f items $n = $d-$m; #remaining items if we buy 3 of the f items @@ -52,7 +52,7 @@ $more = 0; for ($j = 1; $j <=$f; $j++) {$more =$more +(-1)**($j+1)*C($i, $j)*C(($a-3*$j),$b); } - + $ans3 = Compute("C($a,$b)-$more"); #################### # Body @@ -71,7 +71,7 @@ a. Possibly skip some items. a. Don't get more than 2 of any particular item. - [__]{$ans3}{width => 25} + [__]{$ans3}{width => 25} @@ -83,7 +83,7 @@ END_PGML BEGIN_PGML_SOLUTION a. [`{[$rt] \choose [$b]}`] meals. First spend \$[$i] to buy one of each item and then use [$rem] stars to select items between [$b] bars. a. [`{[$a] \choose [$b]}`] meals. Here you have [$d] stars and [$b] bars (separating the [$i] items). -a. [`{[$a] \choose [$b]} - \left[{[$i] \choose 1}{[$a-3] \choose [$b]} - {[$i] \choose 2}{[$a-6] \choose [$b]} + {[$i] \choose 3}{[$a-9] \choose [$b]}\cdots\right]`] meals. Use PIE to subtract all the meals in which you get 3 or more of a particular item. +a. [`{[$a] \choose [$b]} - \left[{[$i] \choose 1}{[$a-3] \choose [$b]} - {[$i] \choose 2}{[$a-6] \choose [$b]} + {[$i] \choose 3}{[$a-9] \choose [$b]}\cdots\right]`] meals. Use PIE to subtract all the meals in which you get 3 or more of a particular item. diff --git a/Contrib/DMOI/1-Counting/1_6-Advanced_Counting_Using_PIE/1_6_10.pg b/Contrib/DMOI/1-Counting/1_6-Advanced_Counting_Using_PIE/1_6_10.pg index 6625cd2642..65d58d3a01 100644 --- a/Contrib/DMOI/1-Counting/1_6-Advanced_Counting_Using_PIE/1_6_10.pg +++ b/Contrib/DMOI/1-Counting/1_6-Advanced_Counting_Using_PIE/1_6_10.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "contextIntegerFunctions.pl", "PGcourse.pl", ); @@ -40,7 +40,7 @@ do {$n = random(5,12);} until ($n != 6); $g = int($n/2); #part b $ng = $n - $g; $n1=$n-1; -$next = 0; #no one gets their own +$next = 0; #no one gets their own for ($j=1; $j<=$n; $j++) { $next = $next +Compute(" (-1)^($j+1)C($n,$j)($n-$j)!") ; @@ -58,7 +58,7 @@ $ans3 = Compute("0"); # Body #################### BEGIN_PGML -The Grinch sneaks into a room in which there are [$n] Christmas presents for [$n] different people. He proceeds to switch the name labels on the presents. How many ways could he do this if: +The Grinch sneaks into a room in which there are [$n] Christmas presents for [$n] different people. He proceeds to switch the name labels on the presents. How many ways could he do this if: a. No present is allowed to end up with its original label? Explain what each term in your answer represents. [__]{$ans1}{width => 15} @@ -71,7 +71,7 @@ a. Exactly [$g] presents keep their original labels? Explain. a. Exactly [$n1] presents keep their original labels? Explain. - [__]{$ans3}{width => 15} + [__]{$ans3}{width => 15} @@ -101,7 +101,7 @@ a. [$NBSP]* -a. 0. Once [$n1] presents have their original label, there is only one present left and only one label left, so the [$n]th present must get its own label. +a. 0. Once [$n1] presents have their original label, there is only one present left and only one label left, so the [$n]th present must get its own label. diff --git a/Contrib/DMOI/1-Counting/1_6-Advanced_Counting_Using_PIE/1_6_11.pg b/Contrib/DMOI/1-Counting/1_6-Advanced_Counting_Using_PIE/1_6_11.pg index c603d314bc..82033dbb4f 100644 --- a/Contrib/DMOI/1-Counting/1_6-Advanced_Counting_Using_PIE/1_6_11.pg +++ b/Contrib/DMOI/1-Counting/1_6-Advanced_Counting_Using_PIE/1_6_11.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "contextIntegerFunctions.pl", "PGcourse.pl", ); diff --git a/Contrib/DMOI/1-Counting/1_6-Advanced_Counting_Using_PIE/1_6_12.pg b/Contrib/DMOI/1-Counting/1_6-Advanced_Counting_Using_PIE/1_6_12.pg index 0142c7c3f2..9c58e48862 100644 --- a/Contrib/DMOI/1-Counting/1_6-Advanced_Counting_Using_PIE/1_6_12.pg +++ b/Contrib/DMOI/1-Counting/1_6-Advanced_Counting_Using_PIE/1_6_12.pg @@ -1,9 +1,9 @@ ####################################### -### Generated from PreTeXt source -### on 2018-05-17T08:45:04-06:00 -### -### http://mathbook.pugetsound.edu -### +### Generated from PreTeXt source +### on 2018-05-17T08:45:04-06:00 +### +### http://mathbook.pugetsound.edu +### ####################################### ## DBsubject(Combinatorics) ## DBchapter(Counting) @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "contextIntegerFunctions.pl", "PGcourse.pl", ); @@ -48,7 +48,7 @@ do {$b = random(4,9);} until ($b < $a-1); $more = 0; for ($j = 1; $j <= $b-1; $j++) #count the number of functions in which 1 or more elements of B are not in the range of A { -$more = Compute("$more + (-1)^($j+1)*C($b,$j)*($b-$j)^($a)"); +$more = Compute("$more + (-1)^($j+1)*C($b,$j)*($b-$j)^($a)"); } $ans = Compute("$b^$a - $more"); diff --git a/Contrib/DMOI/1-Counting/1_6-Advanced_Counting_Using_PIE/1_6_13.pg b/Contrib/DMOI/1-Counting/1_6-Advanced_Counting_Using_PIE/1_6_13.pg index d33e27fe89..dc9202d99d 100644 --- a/Contrib/DMOI/1-Counting/1_6-Advanced_Counting_Using_PIE/1_6_13.pg +++ b/Contrib/DMOI/1-Counting/1_6-Advanced_Counting_Using_PIE/1_6_13.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "contextIntegerFunctions.pl", "PGcourse.pl", ); @@ -44,15 +44,15 @@ for ($j = 1; $j <=$n; $j++) { $sum = Compute(" $sum + (-1)^($j+1)*C($n,$j)*($n-$j)! "); } -$ans = Compute("$n! - $sum"); +$ans = Compute("$n! - $sum"); #################### # Body #################### BEGIN_PGML -Let [`A = [$A]\text{.}`] How many injective functions [`f:A \to A`] have the property that for each [`x \in A\text{,}`] [`f(x) \ne x\text{?}`] +Let [`A = [$A]\text{.}`] How many injective functions [`f:A \to A`] have the property that for each [`x \in A\text{,}`] [`f(x) \ne x\text{?}`] -[__]{$ans}{width => 15} +[__]{$ans}{width => 15} END_PGML diff --git a/Contrib/DMOI/1-Counting/1_6-Advanced_Counting_Using_PIE/1_6_2.pg b/Contrib/DMOI/1-Counting/1_6-Advanced_Counting_Using_PIE/1_6_2.pg index c3e8f33953..7b98f902f2 100644 --- a/Contrib/DMOI/1-Counting/1_6-Advanced_Counting_Using_PIE/1_6_2.pg +++ b/Contrib/DMOI/1-Counting/1_6-Advanced_Counting_Using_PIE/1_6_2.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "contextIntegerFunctions.pl", "PGcourse.pl", ); @@ -40,9 +40,9 @@ Context("IntegerFunctions"); do {$d = random(9,20,1);} until ($d !=16); #define how much $ you have (#stars) do {$i = random(6,10,1);} until ($i < $d-1); #define how many items on the menu $b = $i-1; #total bars -$a = $d + $b; #total bars and stars +$a = $d + $b; #total bars and stars $rem = $d - $i; #remaining stars once we give 1 to each -$rt = $a - $i; #remaining stars and bars once we place i stars +$rt = $a - $i; #remaining stars and bars once we place i stars $f = int($d/5); #how many possible items can we buy 5 or more $m = $f*5; #total number of items used if we buy 5 of the f items $n = $d-$m; #remaining items if we buy 5 of the f items @@ -53,7 +53,7 @@ $more = 0; for ($j = 1; $j <=$f; $j++) { $more =$more +(-1)**($j-1)*C($i, $j)*C(($a-5*$j),$b); -} +} $ans3 = Compute("C($a,$b)-$more"); #################### @@ -89,7 +89,7 @@ a. [`{[$a] \choose [$b]} = [$ans1]`] - there are [$d] stars and [$b] bars. a. [`{[$rt] \choose [$b]}= [$ans2]`] - buy one of each item, using \$[$i]. This leaves you \$[$rem] to distribute to the [$i] items, so [$rem] stars and [$b] bars. -a. [`{[$a] \choose [$b]} - \left[{[$i] \choose 1}{[$a-5] \choose [$b]} - {[$i] \choose 2}{[$a-10] \choose [$b]} + \cdots\right]`] meals. Use PIE to subtract all the meals in which you get 5 or more of a particular item. +a. [`{[$a] \choose [$b]} - \left[{[$i] \choose 1}{[$a-5] \choose [$b]} - {[$i] \choose 2}{[$a-10] \choose [$b]} + \cdots\right]`] meals. Use PIE to subtract all the meals in which you get 5 or more of a particular item. END_PGML_SOLUTION diff --git a/Contrib/DMOI/1-Counting/1_6-Advanced_Counting_Using_PIE/1_6_3.pg b/Contrib/DMOI/1-Counting/1_6-Advanced_Counting_Using_PIE/1_6_3.pg index 35dd780d6b..5f13348be9 100644 --- a/Contrib/DMOI/1-Counting/1_6-Advanced_Counting_Using_PIE/1_6_3.pg +++ b/Contrib/DMOI/1-Counting/1_6-Advanced_Counting_Using_PIE/1_6_3.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "contextIntegerFunctions.pl", "PGcourse.pl", ); diff --git a/Contrib/DMOI/1-Counting/1_6-Advanced_Counting_Using_PIE/1_6_3a.pg b/Contrib/DMOI/1-Counting/1_6-Advanced_Counting_Using_PIE/1_6_3a.pg index bd1fa73715..7a4b557687 100644 --- a/Contrib/DMOI/1-Counting/1_6-Advanced_Counting_Using_PIE/1_6_3a.pg +++ b/Contrib/DMOI/1-Counting/1_6-Advanced_Counting_Using_PIE/1_6_3a.pg @@ -1,9 +1,9 @@ ####################################### -### Generated from PreTeXt source -### on 2018-05-17T08:45:04-06:00 -### -### http://mathbook.pugetsound.edu -### +### Generated from PreTeXt source +### on 2018-05-17T08:45:04-06:00 +### +### http://mathbook.pugetsound.edu +### ####################################### ## DBsubject(Combinatorics) ## DBchapter(Counting) @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "contextIntegerFunctions.pl", "PGcourse.pl", ); @@ -44,9 +44,9 @@ TEXT(beginproblem()); #################### Context("IntegerFunctions"); do {$d = random(9,20,1);} until ($d !=16); #define how many dodgeballs you have -do {$i = random(6,10,1);} until ($i < $d-1); #define how many bins there are +do {$i = random(6,10,1);} until ($i < $d-1); #define how many bins there are $b = $i-1; #total bars -$a = $d + $b; #total bars and stars +$a = $d + $b; #total bars and stars $f = int($d/7); #how many possible bins could hold 7 or more $more = 0; diff --git a/Contrib/DMOI/1-Counting/1_6-Advanced_Counting_Using_PIE/1_6_4.pg b/Contrib/DMOI/1-Counting/1_6-Advanced_Counting_Using_PIE/1_6_4.pg index a295857ddb..527c152127 100644 --- a/Contrib/DMOI/1-Counting/1_6-Advanced_Counting_Using_PIE/1_6_4.pg +++ b/Contrib/DMOI/1-Counting/1_6-Advanced_Counting_Using_PIE/1_6_4.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "contextIntegerFunctions.pl", "PGcourse.pl", ); diff --git a/Contrib/DMOI/1-Counting/1_6-Advanced_Counting_Using_PIE/1_6_5.pg b/Contrib/DMOI/1-Counting/1_6-Advanced_Counting_Using_PIE/1_6_5.pg index 4068bdda75..8ab1bc6031 100644 --- a/Contrib/DMOI/1-Counting/1_6-Advanced_Counting_Using_PIE/1_6_5.pg +++ b/Contrib/DMOI/1-Counting/1_6-Advanced_Counting_Using_PIE/1_6_5.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "contextIntegerFunctions.pl", "PGcourse.pl", ); @@ -68,7 +68,7 @@ a. Use Pascal's triangle to find the numeric answer. a. Use the principle of inclusion/exclusion. -[_____]{$ans2} +[_____]{$ans2} @@ -78,7 +78,7 @@ END_PGML # Solution #################### BEGIN_PGML_SOLUTION -a. [`{[$k] \choose [$n]} = [$ans1]`]. This makes sense because if each student can receive at most one star, you must pick which [$n] of the [$k] kids will get one. +a. [`{[$k] \choose [$n]} = [$ans1]`]. This makes sense because if each student can receive at most one star, you must pick which [$n] of the [$k] kids will get one. b. Without any restriction, there would be [`{[$t]\choose [$b]}`] ways to distribute the stars. Now we must use PIE to eliminate all distributions in which one or more students get more than one star: diff --git a/Contrib/DMOI/1-Counting/1_6-Advanced_Counting_Using_PIE/1_6_8.pg b/Contrib/DMOI/1-Counting/1_6-Advanced_Counting_Using_PIE/1_6_8.pg index 48d8e97f31..e9ffe791ef 100644 --- a/Contrib/DMOI/1-Counting/1_6-Advanced_Counting_Using_PIE/1_6_8.pg +++ b/Contrib/DMOI/1-Counting/1_6-Advanced_Counting_Using_PIE/1_6_8.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "contextIntegerFunctions.pl", "PGcourse.pl", ); diff --git a/Contrib/DMOI/1-Counting/1_6-Advanced_Counting_Using_PIE/1_6_9.pg b/Contrib/DMOI/1-Counting/1_6-Advanced_Counting_Using_PIE/1_6_9.pg index 802baf59ed..6948b7e434 100644 --- a/Contrib/DMOI/1-Counting/1_6-Advanced_Counting_Using_PIE/1_6_9.pg +++ b/Contrib/DMOI/1-Counting/1_6-Advanced_Counting_Using_PIE/1_6_9.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "contextIntegerFunctions.pl", "PGcourse.pl", ); @@ -51,7 +51,7 @@ $ans = Compute("C($n,$h)*($nh! - $next)"); # Body #################### BEGIN_PGML -[$n] ladies of a certain age drop off their red hats at the hat check of a museum. As they are leaving, the hat check attendant gives the hats back randomly. In how many ways can exactly [$h] of the ladies receive their own hat (and the other [$nh] not)? +[$n] ladies of a certain age drop off their red hats at the hat check of a museum. As they are leaving, the hat check attendant gives the hats back randomly. In how many ways can exactly [$h] of the ladies receive their own hat (and the other [$nh] not)? [__]{$ans}{width => 15} diff --git a/Contrib/DMOI/1-Counting/1_7-Chapter_Summary/1_7_1.pg b/Contrib/DMOI/1-Counting/1_7-Chapter_Summary/1_7_1.pg index e76c406e97..57458ace78 100644 --- a/Contrib/DMOI/1-Counting/1_7-Chapter_Summary/1_7_1.pg +++ b/Contrib/DMOI/1-Counting/1_7-Chapter_Summary/1_7_1.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "contextIntegerFunctions.pl", "PGcourse.pl", ); @@ -38,7 +38,7 @@ TEXT(beginproblem()); Context("IntegerFunctions"); do {$p = random(8,16);} until ($p !=9); $k = random(3,6); -$t = $p + $k -1; #total bars and stars +$t = $p + $k -1; #total bars and stars $p1 = $p -1; #total bars and stars after giving one gift to each kid $k1 = $k-1; #bars $pk = $p - $k; #number of gifts after giving one to each kid @@ -47,7 +47,7 @@ $more = 0; for ($j = 1; $j <=$k1; $j++) { $more =Compute("$more +(-1)^($j+1)*C($k, $j)*($k-$j)^[$p]"); -} +} $ans4 = Compute("[$k]^[$p]-$more"); $ans1 = Compute("C($p1,$pk)"); @@ -58,7 +58,7 @@ $ans3 = Compute("[$k]^[$p]"); # Body #################### BEGIN_PGML -You have [$p] presents to give to your [$k] kids. How many ways can this be done if: +You have [$p] presents to give to your [$k] kids. How many ways can this be done if: a. The presents are identical, and each kid gets at least one present? [_____]{$ans1} @@ -76,7 +76,7 @@ a. The presents are unique, and some kids might get no presents? a. The presents are unique and each kid gets at least one present? - [__]{$ans4}{width => 15} + [__]{$ans4}{width => 15} @@ -89,7 +89,7 @@ BEGIN_PGML_SOLUTION a. [`{[$p1] \choose [$pk]}`] ways. After giving one present to each kid, you are left with [$pk] presents (stones) which need to be divided among the [$k] kids (giving [$k1] sticks). a. [`{[$t] \choose [$p]}=[$ans2]`] ways. You have [$p] stones and [$k1] sticks. a. [`[$k]^{[$p]}\text{.}`] You have [$k] choices for whom to give each present. This is like making a function from the set of presents to the set of kids. -a. [`[$k]^{[$p]}- \left[{[$k] \choose 1}([$k]-1)^{[$p]} - {[$k]\choose 2}([$k]-2)^{[$p]} + {[$k] \choose 3}([$k]-3)^{[$p]} \dots \right]`] ways. Now the function from the set of presents to the set of kids must be surjective. +a. [`[$k]^{[$p]}- \left[{[$k] \choose 1}([$k]-1)^{[$p]} - {[$k]\choose 2}([$k]-2)^{[$p]} + {[$k] \choose 3}([$k]-3)^{[$p]} \dots \right]`] ways. Now the function from the set of presents to the set of kids must be surjective. diff --git a/Contrib/DMOI/1-Counting/1_7-Chapter_Summary/1_7_10.pg b/Contrib/DMOI/1-Counting/1_7-Chapter_Summary/1_7_10.pg index 6803a34cc7..37289bbf2e 100644 --- a/Contrib/DMOI/1-Counting/1_7-Chapter_Summary/1_7_10.pg +++ b/Contrib/DMOI/1-Counting/1_7-Chapter_Summary/1_7_10.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "contextIntegerFunctions.pl", "PGcourse.pl", ); @@ -67,13 +67,13 @@ $midr = $mx2 - $mx; #number or right steps from first intermediate point to the $midu = $my2-$my; #number of up steps from first intermediate point to the next $midtot = $midr + $midu; #total number of steps from first to next intermediate $both = Compute(" C($mtot,$mr)*C($midtot,$midr)*C($ftot2,$fr2)"); -$ansc = Compute(" $ansa + C($mtot2,$mr2)*C($ftot2,$fr2) -$both"); +$ansc = Compute(" $ansa + C($mtot2,$mr2)*C($ftot2,$fr2) -$both"); #################### # Body #################### BEGIN_PGML -For each of the following, find the number of shortest lattice paths from [`([$s],[$s])`] to [`([$f],[$f])`] which: +For each of the following, find the number of shortest lattice paths from [`([$s],[$s])`] to [`([$f],[$f])`] which: a. pass through the point [`([$mx],[$my])\text{.}`] [__________]{$ansa} @@ -86,7 +86,7 @@ a. avoid (do not pass through) the point [`([$mx2],[$my2])\text{.}`] a. either pass through [`([$mx],[$my])`] or [`([$mx2],[$my2])`] (or both). - [__]{$ansc}{width => 15} + [__]{$ansc}{width => 15} @@ -98,7 +98,7 @@ END_PGML BEGIN_PGML_SOLUTION a. [`{[$mtot] \choose [$mr]}{[$ftot] \choose [$fr]}=[$ansa]`] paths. a. [`{[$total] \choose [$steps]} - {[$mtot2] \choose [$mr2]}{[$ftot2] \choose [$fr2]}=[$ansb]`] paths. -a. [`{[$mtot] \choose [$mr]}{[$ftot] \choose [$fr]} + {[$mtot2] \choose [$mr2]}{[$ftot2] \choose [$fr2]} - {[$mtot] \choose [$mr]}{[$midtot] \choose [$midr]}{[$ftot2] \choose [$fr2]}= [$ansc]`] paths. +a. [`{[$mtot] \choose [$mr]}{[$ftot] \choose [$fr]} + {[$mtot2] \choose [$mr2]}{[$ftot2] \choose [$fr2]} - {[$mtot] \choose [$mr]}{[$midtot] \choose [$midr]}{[$ftot2] \choose [$fr2]}= [$ansc]`] paths. END_PGML_SOLUTION diff --git a/Contrib/DMOI/1-Counting/1_7-Chapter_Summary/1_7_11.pg b/Contrib/DMOI/1-Counting/1_7-Chapter_Summary/1_7_11.pg index c50e752987..accfb04512 100644 --- a/Contrib/DMOI/1-Counting/1_7-Chapter_Summary/1_7_11.pg +++ b/Contrib/DMOI/1-Counting/1_7-Chapter_Summary/1_7_11.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "contextIntegerFunctions.pl", "PGcourse.pl", ); @@ -36,7 +36,7 @@ TEXT(beginproblem()); # PG Setup #################### Context("IntegerFunctions"); -$a = random(9,20); +$a = random(9,20); do {$b = random(9,20); } until ($b !=$a) and ($b !=13); $right = $a - 2; #right steps from home to work $up = $b - 4; #up steps from home to work diff --git a/Contrib/DMOI/1-Counting/1_7-Chapter_Summary/1_7_12.pg b/Contrib/DMOI/1-Counting/1_7-Chapter_Summary/1_7_12.pg index 9beb46d9ca..943f444bff 100644 --- a/Contrib/DMOI/1-Counting/1_7-Chapter_Summary/1_7_12.pg +++ b/Contrib/DMOI/1-Counting/1_7-Chapter_Summary/1_7_12.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "contextIntegerFunctions.pl", "PGcourse.pl", ); diff --git a/Contrib/DMOI/1-Counting/1_7-Chapter_Summary/1_7_13.pg b/Contrib/DMOI/1-Counting/1_7-Chapter_Summary/1_7_13.pg index 27b5a1e4d8..fc1319d15c 100644 --- a/Contrib/DMOI/1-Counting/1_7-Chapter_Summary/1_7_13.pg +++ b/Contrib/DMOI/1-Counting/1_7-Chapter_Summary/1_7_13.pg @@ -1,9 +1,9 @@ ####################################### -### Generated from PreTeXt source -### on 2018-05-17T08:45:04-06:00 -### -### http://mathbook.pugetsound.edu -### +### Generated from PreTeXt source +### on 2018-05-17T08:45:04-06:00 +### +### http://mathbook.pugetsound.edu +### ####################################### ## DBsubject(Combinatorics) ## DBchapter(Counting) @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "contextIntegerFunctions.pl", "PGcourse.pl", ); diff --git a/Contrib/DMOI/1-Counting/1_7-Chapter_Summary/1_7_14.pg b/Contrib/DMOI/1-Counting/1_7-Chapter_Summary/1_7_14.pg index ddf4e18f05..9eaff5507e 100644 --- a/Contrib/DMOI/1-Counting/1_7-Chapter_Summary/1_7_14.pg +++ b/Contrib/DMOI/1-Counting/1_7-Chapter_Summary/1_7_14.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "contextIntegerFunctions.pl", "PGcourse.pl", ); diff --git a/Contrib/DMOI/1-Counting/1_7-Chapter_Summary/1_7_16.pg b/Contrib/DMOI/1-Counting/1_7-Chapter_Summary/1_7_16.pg index 052efcaadd..d7e6e4697a 100644 --- a/Contrib/DMOI/1-Counting/1_7-Chapter_Summary/1_7_16.pg +++ b/Contrib/DMOI/1-Counting/1_7-Chapter_Summary/1_7_16.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "contextIntegerFunctions.pl", "PGcourse.pl", ); @@ -39,7 +39,7 @@ Context("IntegerFunctions"); do {$n = random(15,25);} until ($n !=20); $k = random(5,8); -$t = $n+$k -1; #total stars (n) and bars +$t = $n+$k -1; #total stars (n) and bars $b = $k -1; #total number bars $tk = $t-$k; #total number of stars and bars if each gets 1 to start $s = $n -$k; #number of stars left if each gets 1 to start @@ -66,7 +66,7 @@ $ans3 = Compute("$ans1-$next"); # Body #################### BEGIN_PGML -Suppose you have [$n] one-dollar bills to give out as prizes to your top [$k] discrete math students. How many ways can you do this if: +Suppose you have [$n] one-dollar bills to give out as prizes to your top [$k] discrete math students. How many ways can you do this if: a. Each of the [$k] students gets at least 1 dollar? [_____]{$ans1} @@ -74,12 +74,12 @@ a. Each of the [$k] students gets at least 1 dollar? a. Some students might get nothing? - [_____]{$ans2} + [_____]{$ans2} a. Each student gets at least 1 dollar but no more than [$c] dollars? - [__]{$ans3}{width => 15} + [__]{$ans3}{width => 15} @@ -101,7 +101,7 @@ END_PGML_HINT BEGIN_PGML_SOLUTION a. [`{[$tk] \choose [$s]}=[$ans1]`] ways. a. [`{[$t] \choose [$n]}=[$ans2]`] ways. -a. [`{[$tk] \choose [$s]} - \left[{[$k] \choose 1}{[$t-1*$c-($k-1)] \choose [$b]} - {[$k] \choose 2}{[$t-2*$c-($k-2)] \choose [$b]} \dots \right]=[$ans3]`] ways. +a. [`{[$tk] \choose [$s]} - \left[{[$k] \choose 1}{[$t-1*$c-($k-1)] \choose [$b]} - {[$k] \choose 2}{[$t-2*$c-($k-2)] \choose [$b]} \dots \right]=[$ans3]`] ways. diff --git a/Contrib/DMOI/1-Counting/1_7-Chapter_Summary/1_7_17.pg b/Contrib/DMOI/1-Counting/1_7-Chapter_Summary/1_7_17.pg index ce4a738aad..bbc6bcf0f4 100644 --- a/Contrib/DMOI/1-Counting/1_7-Chapter_Summary/1_7_17.pg +++ b/Contrib/DMOI/1-Counting/1_7-Chapter_Summary/1_7_17.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "contextIntegerFunctions.pl", "PGcourse.pl", ); @@ -45,7 +45,7 @@ $n2 = $n-2; $ansa = Compute("$n^$n1 + $n^$n1 - $n^$n2"); #part b -$ansb = Compute("$n1*$n^$n1 + $n*$n1*$n^$n2 - $n1*$n1*$n^$n2 "); +$ansb = Compute("$n1*$n^$n1 + $n*$n1*$n^$n2 - $n1*$n1*$n^$n2 "); #part c; find total number of injective functions and subtract those in which f(1)=1, f(2) = 2, or both $ansc = Compute("$n!-($n1!+$n1!-$n2!) "); @@ -62,7 +62,7 @@ $ansd = Compute("$n! - $next"); # Body #################### BEGIN_PGML -How many functions [`f: [$A] \to [$A]`] are there satisfying: +How many functions [`f: [$A] \to [$A]`] are there satisfying: a. [`f(1) = 1`] or [`f(2) = 2`] (or both)? [__________]{$ansa} @@ -78,9 +78,9 @@ a. [`f(1) \ne 1`] _and_ [`f(2) \ne 2\text{,}`] and [`f`] is injective? [__________]{$ansc} -a. [`f`] is surjective, but [`\forall x \in \{1,2,\dots, [$n] \} \text{, } f(x) \ne x\text{?}`] +a. [`f`] is surjective, but [`\forall x \in \{1,2,\dots, [$n] \} \text{, } f(x) \ne x\text{?}`] - [__]{$ansd}{width => 15} + [__]{$ansd}{width => 15} @@ -99,7 +99,7 @@ a. [`[$n1]\cdot [$n]^[$n1] + [$n] \cdot [$n1] \cdot [$n]^[$n2] - [$n1] \cdot [$ a. [`[$n]! - \left[ [$n1]! + [$n1]! - [$n2]! \right]=[$ansc]`] functions. Note that we use factorials instead of powers because we are looking for injective functions. -a. Note that being surjective here is the same as being injective, so we can start with all [`[$n]!`] injective functions and subtract those which have one or more "fixed point". We get [`[$n]! - \left[{[$n] \choose 1}([$n]-1)! - {[$n] \choose 2}([$n]-2)! + {[$n] \choose 3}([$n]-3)! - \dots {[$n] \choose [$n]}0! \right]=[$ansd]`] functions. +a. Note that being surjective here is the same as being injective, so we can start with all [`[$n]!`] injective functions and subtract those which have one or more "fixed point". We get [`[$n]! - \left[{[$n] \choose 1}([$n]-1)! - {[$n] \choose 2}([$n]-2)! + {[$n] \choose 3}([$n]-3)! - \dots {[$n] \choose [$n]}0! \right]=[$ansd]`] functions. diff --git a/Contrib/DMOI/1-Counting/1_7-Chapter_Summary/1_7_18.pg b/Contrib/DMOI/1-Counting/1_7-Chapter_Summary/1_7_18.pg index 6c922a84a8..f408aa23d3 100644 --- a/Contrib/DMOI/1-Counting/1_7-Chapter_Summary/1_7_18.pg +++ b/Contrib/DMOI/1-Counting/1_7-Chapter_Summary/1_7_18.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "contextIntegerFunctions.pl", "PGcourse.pl", ); diff --git a/Contrib/DMOI/1-Counting/1_7-Chapter_Summary/1_7_19.pg b/Contrib/DMOI/1-Counting/1_7-Chapter_Summary/1_7_19.pg index 128d5fc60f..7ce2bf0fad 100644 --- a/Contrib/DMOI/1-Counting/1_7-Chapter_Summary/1_7_19.pg +++ b/Contrib/DMOI/1-Counting/1_7-Chapter_Summary/1_7_19.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "contextIntegerFunctions.pl", "PGcourse.pl", ); @@ -68,7 +68,7 @@ $anse = $ansd - $next; # Body #################### BEGIN_PGML -To thank your math professor for doing such an amazing job all semester, you decide to bake your professor cookies. You know how to make [$n] different types of cookies. +To thank your math professor for doing such an amazing job all semester, you decide to bake your professor cookies. You know how to make [$n] different types of cookies. a. If you want to give your professor [$c] different types of cookies, how many different combinations of cookie type can you select? Explain your answer. [_____]{$ansa} @@ -86,7 +86,7 @@ a. You change your mind again. This time you decide you will make a total of [$ a. You realize that the previous plan did not account for presentation. This time, you once again want to make [$t] cookies, each one could be any one of the [$n] types of cookies. However, now you plan to shape the cookies into the numerals 1, 2, ..., [$t]. How many choices do you have for which types of cookies to bake into which numerals? Explain. - [_____]{$ansd} + [_____]{$ansd} a. The only flaw with the last plan is that your professor might not get to sample all [$n] different varieties of cookies. How many choices do you have for which types of cookies to make into which numerals, given that each type of cookie should be present at least once? Explain. @@ -105,7 +105,7 @@ a. [`{[$n] \choose [$c]}=[$ansa]`] combinations. You need to choose [$c] of the a. [`P([$n], [$c]) = [$n] \cdot ([$n]-1) \cdot ([$n]-2) \cdot \dots \cdot ([$n]-[$c]+1)= [$ansb]`] ways. You are choosing and arranging [$c] out of [$n] cookies. Order matters now. a. [`{[$sb] \choose [$t]}=[$ansc]`] choices. You must switch between cookie type [$n1] times as you make your [$t] cookies. The cookies are the stones; the switches between cookie types are the sticks. a. [`[$n]^{[$t]}`] choices. You have [$n] choices for the "1" cookie, [$n] choices for the "2" cookie, and so on. -a. [`[$n]^{[$t]} - \left[{[$n] \choose 1}([$n]-1)^{[$t]} - {[$n] \choose 2}([$n]-2)^{[$t]} + \cdots - {[$n] \choose [$n]}0^{[$t]} \right]=[$anse]`] choices. We must use PIE to remove all the ways in which one or more cookie type is not selected. +a. [`[$n]^{[$t]} - \left[{[$n] \choose 1}([$n]-1)^{[$t]} - {[$n] \choose 2}([$n]-2)^{[$t]} + \cdots - {[$n] \choose [$n]}0^{[$t]} \right]=[$anse]`] choices. We must use PIE to remove all the ways in which one or more cookie type is not selected. diff --git a/Contrib/DMOI/1-Counting/1_7-Chapter_Summary/1_7_21.pg b/Contrib/DMOI/1-Counting/1_7-Chapter_Summary/1_7_21.pg index 5e096153a9..b071b344fa 100644 --- a/Contrib/DMOI/1-Counting/1_7-Chapter_Summary/1_7_21.pg +++ b/Contrib/DMOI/1-Counting/1_7-Chapter_Summary/1_7_21.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "contextIntegerFunctions.pl", "PGcourse.pl", ); @@ -38,7 +38,7 @@ TEXT(beginproblem()); Context("IntegerFunctions"); #choose a word; this list has word lengths 5 and 6; all letters unique @bank = ("acidly", "ageist", "hanged", "nachos", "naive", "gizmo", "maths", "camel"); -$tag = random(0,7,1); +$tag = random(0,7,1); $word = $bank[$tag]; if ($tag ==0 || $tag == 1 || $tag == 2 || $tag ==3) { @@ -67,8 +67,8 @@ $ans3 = Compute("$ans1 + $next"); # Body #################### BEGIN_PGML -An _anagram_ of a word is a rearrangement of its letters (each of the letters must be used exactly once). We do not need the anagram to form an English word. -a. How many anagrams are there of the word "[$word]"? +An _anagram_ of a word is a rearrangement of its letters (each of the letters must be used exactly once). We do not need the anagram to form an English word. +a. How many anagrams are there of the word "[$word]"? [_____]{$ans1} @@ -80,7 +80,7 @@ a. How many anagrams are there of the word "[$word]"? a. A _sub-anagram_ is just like an anagram except now you don't need to use all of the letters (but you could). For example, one sub-anagram of "magic" is "mac." How many sub-anagrams are there of the word "[$word]"? Hint: you might want to break this into cases. - [__________]{$ans3} + [__________]{$ans3} @@ -95,7 +95,7 @@ a. There are [` [$wl]! = [$ans1] `] anagrams. We can pick any of the [$wl] dis # a. We need to place 3 e's, 3 s's, 2 r's, and one each of b, i, a, and n. First select 3 of the twelve slots for the e's, which can be done in [`{12 \choose 3}`] ways. Then select 3 of the remaining 9 slots for s's, done in [`{9 \choose 3}`] ways. Next pick 2 of the remaining 6 slots for r's, in [`{6 \choose 2}`] ways, one of the remaining 4 slots for the b ([`4 ways`]), one of the remaining 3 slots for the i, one of two slots for the a, and leave the last for the n. All together, the number of anagrams is: # >> [`` -# {12\choose 3}{9 \choose 3}{6 \choose 2}\cdot 4 \cdot 3 \cdot 2 +# {12\choose 3}{9 \choose 3}{6 \choose 2}\cdot 4 \cdot 3 \cdot 2 # \cdot1 = [$ans2] # ``] << @@ -110,14 +110,14 @@ a. There are [` [$wl]! = [$ans1] `] anagrams. We can pick any of the [$wl] dis -a. We already know there are [$ans1] [$wl]-letter sub-anagrams. To find the [$w1]-letter sub-anagrams, we need to pick one of [$wl] letters first, then one of the remaining [$w1], then one of [$w2] after that, and so on. So there are [`P([$wl],[$w1]) =[$ans1]`] of these as well (we could think of these as exactly the [$ans1] full anagrams with the last letter missing). In total, there will be +a. We already know there are [$ans1] [$wl]-letter sub-anagrams. To find the [$w1]-letter sub-anagrams, we need to pick one of [$wl] letters first, then one of the remaining [$w1], then one of [$w2] after that, and so on. So there are [`P([$wl],[$w1]) =[$ans1]`] of these as well (we could think of these as exactly the [$ans1] full anagrams with the last letter missing). In total, there will be >> [`` P([$wl],[$wl]) + P([$wl],[$w1]) + P([$wl],[$w2]) + \dots + P([$wl],1) = [$ans3] ``] << - + diff --git a/Contrib/DMOI/1-Counting/1_7-Chapter_Summary/1_7_3.pg b/Contrib/DMOI/1-Counting/1_7-Chapter_Summary/1_7_3.pg index 54f307c6ce..cd7e55faed 100644 --- a/Contrib/DMOI/1-Counting/1_7-Chapter_Summary/1_7_3.pg +++ b/Contrib/DMOI/1-Counting/1_7-Chapter_Summary/1_7_3.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "contextIntegerFunctions.pl", "PGcourse.pl", ); @@ -52,8 +52,8 @@ $ans4 = Compute("2*$j!"); # Body #################### BEGIN_PGML -Recall, you own [$r] regular ties and [$b] bow ties. You realize that it would be okay to wear more than two ties to your clown college interview. -a. You must select some of your ties to wear. Everything is okay, from no ties up to all ties. How many choices do you have? +Recall, you own [$r] regular ties and [$b] bow ties. You realize that it would be okay to wear more than two ties to your clown college interview. +a. You must select some of your ties to wear. Everything is okay, from no ties up to all ties. How many choices do you have? [_____]{$ans1} @@ -70,7 +70,7 @@ a. How many choices of which ties to wear do you have if you wear exactly 3 of a. Once you have selected 3 regular and 2 bow ties, in how many orders could you put the ties on, assuming you must have one of the bow ties on top? - [_____]{$ans4} + [_____]{$ans4} @@ -89,7 +89,7 @@ a. You have [$tr] choices for regular ties (the [`2^{[$r]}`] choices less the " a. [`{[$r]\choose 3}{[$b]\choose 2} = [$ans3]`] choices. -a. Select one of the 2 bow ties to go on top. There are then [$j] choices for the next tie, [$j]-1 for the tie after that, and so on. Thus [`2\cdot [$j]! = [$ans4]`] choices. +a. Select one of the 2 bow ties to go on top. There are then [$j] choices for the next tie, [$j]-1 for the tie after that, and so on. Thus [`2\cdot [$j]! = [$ans4]`] choices. diff --git a/Contrib/DMOI/1-Counting/1_7-Chapter_Summary/1_7_5.pg b/Contrib/DMOI/1-Counting/1_7-Chapter_Summary/1_7_5.pg index 41461285bc..5d12526ebb 100644 --- a/Contrib/DMOI/1-Counting/1_7-Chapter_Summary/1_7_5.pg +++ b/Contrib/DMOI/1-Counting/1_7-Chapter_Summary/1_7_5.pg @@ -1,9 +1,9 @@ ####################################### -### Generated from PreTeXt source -### on 2018-05-17T08:45:04-06:00 -### -### http://mathbook.pugetsound.edu -### +### Generated from PreTeXt source +### on 2018-05-17T08:45:04-06:00 +### +### http://mathbook.pugetsound.edu +### ####################################### ## DBsubject(Combinatorics) ## DBchapter(Counting) @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "contextIntegerFunctions.pl", "PGcourse.pl", ); @@ -64,7 +64,7 @@ $ans3 = $ev; # Body #################### BEGIN_PGML -Consider numbers of the form [`\alpha = a_1a_2a_3\dots a_n\text{,}`] with [`n`] digits, each digit from the set [`[$A]\text{.}`] For example, if [`n = 4`], the number [`\alpha = a_1a_2a_3a_4`] will have 4 digits from the set [`[$A]\text{.}`] +Consider numbers of the form [`\alpha = a_1a_2a_3\dots a_n\text{,}`] with [`n`] digits, each digit from the set [`[$A]\text{.}`] For example, if [`n = 4`], the number [`\alpha = a_1a_2a_3a_4`] will have 4 digits from the set [`[$A]\text{.}`] Let [`n = [$n]`]. @@ -79,9 +79,9 @@ a. How many such numbers are there for which the _sum_ of the digits is even? [_____]{$ans2} -a. How many such numbers contain more even digits than odd digits? +a. How many such numbers contain more even digits than odd digits? - [__________]{$ans3} + [__________]{$ans3} diff --git a/Contrib/DMOI/1-Counting/1_7-Chapter_Summary/1_7_6.pg b/Contrib/DMOI/1-Counting/1_7-Chapter_Summary/1_7_6.pg index bcb6d9d6b7..9778cf1bc0 100644 --- a/Contrib/DMOI/1-Counting/1_7-Chapter_Summary/1_7_6.pg +++ b/Contrib/DMOI/1-Counting/1_7-Chapter_Summary/1_7_6.pg @@ -1,9 +1,9 @@ ####################################### -### Generated from PreTeXt source -### on 2018-05-17T08:45:04-06:00 -### -### http://mathbook.pugetsound.edu -### +### Generated from PreTeXt source +### on 2018-05-17T08:45:04-06:00 +### +### http://mathbook.pugetsound.edu +### ####################################### ## DBsubject(Combinatorics) ## DBchapter(Counting) @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "contextIntegerFunctions.pl", "PGcourse.pl", ); @@ -45,8 +45,8 @@ TEXT(beginproblem()); Context("IntegerFunctions"); #assign random values for set sizes so problem is different from textbook do { - $a = random(26,35); - $j = random(15,25); + $a = random(26,35); + $j = random(15,25); do {$c = random(20,30); } until ($c !=$a); do {$aj = random(11,20);} until ($aj != 7); do {$ac = random(10,20);} until ($ac != $aj) ; diff --git a/Contrib/DMOI/1-Counting/1_7-Chapter_Summary/1_7_7.pg b/Contrib/DMOI/1-Counting/1_7-Chapter_Summary/1_7_7.pg index 3702ad8c58..5e2e83af6f 100644 --- a/Contrib/DMOI/1-Counting/1_7-Chapter_Summary/1_7_7.pg +++ b/Contrib/DMOI/1-Counting/1_7-Chapter_Summary/1_7_7.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "contextIntegerFunctions.pl", "PGcourse.pl", ); @@ -44,13 +44,13 @@ $ans2 = Compute("C($n,$j)"); #part d of problem removed -#a. Explain why your answers to parts (b) and (c) are the same. Why are these questions equivalent? -#There is a bijection between subsets and bit strings: a 1 means that element in is the subset, a 0 means that element is not in the subset. To get a subset of an 8 element set we have a 8-bit string. To make sure the subset contains exactly 5 elements, there must be 5 1's, so the weight must be 5. +#a. Explain why your answers to parts (b) and (c) are the same. Why are these questions equivalent? +#There is a bijection between subsets and bit strings: a 1 means that element in is the subset, a 0 means that element is not in the subset. To get a subset of an 8 element set we have a 8-bit string. To make sure the subset contains exactly 5 elements, there must be 5 1's, so the weight must be 5. #################### # Body #################### BEGIN_PGML -Recall, by [`[$n]`]-bit strings, we mean strings of binary digits, of length [$n]. +Recall, by [`[$n]`]-bit strings, we mean strings of binary digits, of length [$n]. a. How many [`[$n]`]-bit strings are there total? [_____]{$ans1} diff --git a/Contrib/DMOI/1-Counting/1_7-Chapter_Summary/1_7_8.pg b/Contrib/DMOI/1-Counting/1_7-Chapter_Summary/1_7_8.pg index 669506ef23..722b394412 100644 --- a/Contrib/DMOI/1-Counting/1_7-Chapter_Summary/1_7_8.pg +++ b/Contrib/DMOI/1-Counting/1_7-Chapter_Summary/1_7_8.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "contextIntegerFunctions.pl", "PGcourse.pl", ); diff --git a/Contrib/DMOI/1-Counting/1_7-Chapter_Summary/1_7_9.pg b/Contrib/DMOI/1-Counting/1_7-Chapter_Summary/1_7_9.pg index fbafd72b13..34c137aa1d 100644 --- a/Contrib/DMOI/1-Counting/1_7-Chapter_Summary/1_7_9.pg +++ b/Contrib/DMOI/1-Counting/1_7-Chapter_Summary/1_7_9.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "contextIntegerFunctions.pl", "PGcourse.pl", ); diff --git a/Contrib/DMOI/2-Sequences/2_1-Describing_Sequences/2_1_1.pg b/Contrib/DMOI/2-Sequences/2_1-Describing_Sequences/2_1_1.pg index 0cae845bc0..04d94522f1 100644 --- a/Contrib/DMOI/2-Sequences/2_1-Describing_Sequences/2_1_1.pg +++ b/Contrib/DMOI/2-Sequences/2_1-Describing_Sequences/2_1_1.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PCCmacros.pl", "PGcourse.pl", ); @@ -77,7 +77,7 @@ $ans4->{test_points} = [[1],[2],[3],[4],[5]]; ############################################################ BEGIN_PGML -Find the closed formula for each of the following sequences [`(a_n)_{n\ge 1}`] by relating them to a well known sequence. +Find the closed formula for each of the following sequences [`(a_n)_{n\ge 1}`] by relating them to a well known sequence. Assume the first term given is [`a_1\text{.}`] a. [`[$seq1]`] diff --git a/Contrib/DMOI/2-Sequences/2_1-Describing_Sequences/2_1_2.pg b/Contrib/DMOI/2-Sequences/2_1-Describing_Sequences/2_1_2.pg index bc7b5be367..146522bc25 100644 --- a/Contrib/DMOI/2-Sequences/2_1-Describing_Sequences/2_1_2.pg +++ b/Contrib/DMOI/2-Sequences/2_1-Describing_Sequences/2_1_2.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PCCmacros.pl", "PGcourse.pl", "PGchoicemacros.pl", @@ -47,9 +47,9 @@ $ans_last = $formula[$d1]+$formula[$d2]; #modify the first five formulas: #some constants to add: -$c1 = random(-2,3); -$c2 = list_random(-2,-1,1,2,3); -$c3 = list_random(-2,-1,1,2,3); +$c1 = random(-2,3); +$c2 = list_random(-2,-1,1,2,3); +$c3 = list_random(-2,-1,1,2,3); # some scalars: $m1 = list_random(2,3); $m2 = list_random(2,3,5,10); @@ -114,7 +114,7 @@ END_PGML ############################################################ BEGIN_PGML_HINT -Try adding, subtracting, or dividing each term by a constant to make the sequence more recognizable. +Try adding, subtracting, or dividing each term by a constant to make the sequence more recognizable. For part (d), try expressing the sequence as the sum of two well known sequences. diff --git a/Contrib/DMOI/2-Sequences/2_2-Arithmetic_and_Geometric_Sequences/2_2_1.pg b/Contrib/DMOI/2-Sequences/2_2-Arithmetic_and_Geometric_Sequences/2_2_1.pg index d5c922b69d..58af74dcd5 100644 --- a/Contrib/DMOI/2-Sequences/2_2-Arithmetic_and_Geometric_Sequences/2_2_1.pg +++ b/Contrib/DMOI/2-Sequences/2_2-Arithmetic_and_Geometric_Sequences/2_2_1.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGML.pl", "parserPopUp.pl", - "AnswerFormatHelp.pl", + "PCCmacros.pl", "PGcourse.pl", ); @@ -75,9 +75,9 @@ $mc2 ->qa( "Yes, it is \(a_{$n2}\)" ); $mc2->extra( - "Yes, it is \(a_{$n3}\)", - "Yes, it is \(a_{$large}\)", - "No, it is between $rh1 and $rh2", + "Yes, it is \(a_{$n3}\)", + "Yes, it is \(a_{$large}\)", + "No, it is between $rh1 and $rh2", "No, it is larger than $last" ); # $popup = PopUp(["?", "Yes, it is \(a_$n3\)", "Yes, it is \(a_$n2\)", "Yes, it is \(a_{$large}\)", "No, it is between $rh1 and $rh2", "No, it is larger than $last"], "Yes, it is \(a_$n2\)"); @@ -136,7 +136,7 @@ ANS( checkbox_cmp( $mc2->correct_ans() ), $n->cmp, $sum->cmp, - $bn->cmp + $bn->cmp ); # ANS( $popup->cmp() ); diff --git a/Contrib/DMOI/2-Sequences/2_2-Arithmetic_and_Geometric_Sequences/2_2_2.pg b/Contrib/DMOI/2-Sequences/2_2-Arithmetic_and_Geometric_Sequences/2_2_2.pg index d8c0f4b21a..30460ba69e 100644 --- a/Contrib/DMOI/2-Sequences/2_2-Arithmetic_and_Geometric_Sequences/2_2_2.pg +++ b/Contrib/DMOI/2-Sequences/2_2-Arithmetic_and_Geometric_Sequences/2_2_2.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PCCmacros.pl", "PGcourse.pl", ); @@ -69,7 +69,7 @@ a. Find a formula for the [`n`]th term of this sequence. a. Find the sum of the first 100 terms of the sequence: [`\sum_{k=0}^{99}a_k\text{.}`] - [_____]{$ans3} + [_____]{$ans3} @@ -83,7 +83,7 @@ a. [`[$ans1]\text{,}`] which is [`[$a3]+[$rate]\text{.}`] a. The sequence is arithmetic, with [`a_0 = [$start]`] and constant difference [$rate], so [`a_n = [$start] + [$rate]n\text{.}`] -a. [`[$ans3]\text{.}`] We want [`[$start] + [$a2] + \cdots + [$end]\text{.}`] Reverse and add to get 100 sums of [$sum], a total of [$double], which is twice the sum we are looking for. +a. [`[$ans3]\text{.}`] We want [`[$start] + [$a2] + \cdots + [$end]\text{.}`] Reverse and add to get 100 sums of [$sum], a total of [$double], which is twice the sum we are looking for. diff --git a/Contrib/DMOI/2-Sequences/2_2-Arithmetic_and_Geometric_Sequences/2_2_3.pg b/Contrib/DMOI/2-Sequences/2_2-Arithmetic_and_Geometric_Sequences/2_2_3.pg index 4c2538df9b..1e5512585b 100644 --- a/Contrib/DMOI/2-Sequences/2_2-Arithmetic_and_Geometric_Sequences/2_2_3.pg +++ b/Contrib/DMOI/2-Sequences/2_2-Arithmetic_and_Geometric_Sequences/2_2_3.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -62,7 +62,7 @@ a. How many terms (summands) are in the sum? a. Compute the sum using a technique discussed in this section. - [__]{$ans} + [__]{$ans} @@ -75,7 +75,7 @@ BEGIN_PGML_SOLUTION a. [$terms+1]. -a. [`\frac{[$sum] \cdot [$terms]}{2} = [$ans]\text{.}`] +a. [`\frac{[$sum] \cdot [$terms]}{2} = [$ans]\text{.}`] diff --git a/Contrib/DMOI/2-Sequences/2_2-Arithmetic_and_Geometric_Sequences/2_2_4.pg b/Contrib/DMOI/2-Sequences/2_2-Arithmetic_and_Geometric_Sequences/2_2_4.pg index 68d943e71d..c9389508ff 100644 --- a/Contrib/DMOI/2-Sequences/2_2-Arithmetic_and_Geometric_Sequences/2_2_4.pg +++ b/Contrib/DMOI/2-Sequences/2_2-Arithmetic_and_Geometric_Sequences/2_2_4.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -62,7 +62,7 @@ $ans3 = Formula("(($rate*n+$add)*($ans1))/2"); BEGIN_PGML Consider the sequence [`[$start], [$a1], [$a2], [$a3], \ldots, [$rate]n + [$end]\text{.}`] -a. How many terms are there in the sequence? Your answer will be in terms of [`n\text{.}`] +a. How many terms are there in the sequence? Your answer will be in terms of [`n\text{.}`] [__________]{$ans1} @@ -74,7 +74,7 @@ a. What is the second-to-last term? a. Find the sum of all the terms in the sequence, in terms of [`n\text{.}`] - [__________]{$ans3} + [__________]{$ans3} @@ -84,7 +84,7 @@ END_PGML # Solution #################### BEGIN_PGML_SOLUTION -a. [`[$ans1]`] terms, since to get [`[$start]`] using the formula [`[$rate]*n+[$end]`] we must use [`n=[$term]\text{.}`] +a. [`[$ans1]`] terms, since to get [`[$start]`] using the formula [`[$rate]*n+[$end]`] we must use [`n=[$term]\text{.}`] a. [`[$rate]n+[$dif]\text{,}`] which is [$rate] less than [`[$rate]n+[$end]`] (or plug in [`n-1`] for [`n`]). a. [`\frac{([$rate]*n+[$add])*([$ans1])}{2}\text{.}`] Reverse and add. Each sum gives the constant [`[$rate]*n+[$add]`], and there are [`[$ans1]`] terms. diff --git a/Contrib/DMOI/2-Sequences/2_2-Arithmetic_and_Geometric_Sequences/2_2_5.pg b/Contrib/DMOI/2-Sequences/2_2-Arithmetic_and_Geometric_Sequences/2_2_5.pg index 0377a83552..c7395fc972 100644 --- a/Contrib/DMOI/2-Sequences/2_2-Arithmetic_and_Geometric_Sequences/2_2_5.pg +++ b/Contrib/DMOI/2-Sequences/2_2-Arithmetic_and_Geometric_Sequences/2_2_5.pg @@ -1,9 +1,9 @@ ####################################### -### Generated from PreTeXt source -### on 2018-05-17T08:45:05-06:00 -### -### http://mathbook.pugetsound.edu -### +### Generated from PreTeXt source +### on 2018-05-17T08:45:05-06:00 +### +### http://mathbook.pugetsound.edu +### ####################################### ## DBsubject(Algebra) ## DBchapter(Finite sequences and series) @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -62,7 +62,7 @@ $ans=($sum*$terms)/2; BEGIN_PGML Find [`[$start] + [$a1] + [$a2] + [$a3]+ \cdots + [$last]`] using a technique from this section. -[__________]{$ans} +[__________]{$ans} END_PGML diff --git a/Contrib/DMOI/2-Sequences/2_2-Arithmetic_and_Geometric_Sequences/2_2_6.pg b/Contrib/DMOI/2-Sequences/2_2-Arithmetic_and_Geometric_Sequences/2_2_6.pg index 809fe046c8..9996eaeb3f 100644 --- a/Contrib/DMOI/2-Sequences/2_2-Arithmetic_and_Geometric_Sequences/2_2_6.pg +++ b/Contrib/DMOI/2-Sequences/2_2-Arithmetic_and_Geometric_Sequences/2_2_6.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", ); diff --git a/Contrib/DMOI/2-Sequences/2_2-Arithmetic_and_Geometric_Sequences/2_2_7.pg b/Contrib/DMOI/2-Sequences/2_2-Arithmetic_and_Geometric_Sequences/2_2_7.pg index 70101acd99..54d24cb52b 100644 --- a/Contrib/DMOI/2-Sequences/2_2-Arithmetic_and_Geometric_Sequences/2_2_7.pg +++ b/Contrib/DMOI/2-Sequences/2_2-Arithmetic_and_Geometric_Sequences/2_2_7.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -34,7 +34,7 @@ TEXT(beginproblem()); #################### # PG Setup #################### -$a =random(1, 7); +$a =random(1, 7); do {$b = random(1,7); } until (gcd($b,$a)==1); $n = random(25,40); diff --git a/Contrib/DMOI/2-Sequences/2_2-Arithmetic_and_Geometric_Sequences/2_2_8.pg b/Contrib/DMOI/2-Sequences/2_2-Arithmetic_and_Geometric_Sequences/2_2_8.pg index 32c98b25ee..b1282d4a7e 100644 --- a/Contrib/DMOI/2-Sequences/2_2-Arithmetic_and_Geometric_Sequences/2_2_8.pg +++ b/Contrib/DMOI/2-Sequences/2_2-Arithmetic_and_Geometric_Sequences/2_2_8.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PCCmacros.pl", "PGcourse.pl", @@ -38,7 +38,7 @@ TEXT(beginproblem()); $max = list_random(64,125,216); #choose a starting value that is a cube -$dif = ($max-1)/3; #amount of change +$dif = ($max-1)/3; #amount of change $x = $max - $dif; $y = Compute("$x - $dif"); $xmult = Compute("$max^(2/3)"); @@ -49,7 +49,7 @@ $ymult = Compute("$max^(1/3)"); BEGIN_PGML Find [`x`] and [`y`] such that [`[$max], x, y, 1`] is part of an arithmetic sequence. -[`x = `] [_____]{$x}, [`y = `] [_____]{$y} +[`x = `] [_____]{$x}, [`y = `] [_____]{$y} Then find [`x`] and [`y`] so that the sequence is part of a geometric sequence. diff --git a/Contrib/DMOI/2-Sequences/2_2-Arithmetic_and_Geometric_Sequences/2_2_9.pg b/Contrib/DMOI/2-Sequences/2_2-Arithmetic_and_Geometric_Sequences/2_2_9.pg index cd3c45d0d9..2576399f0c 100644 --- a/Contrib/DMOI/2-Sequences/2_2-Arithmetic_and_Geometric_Sequences/2_2_9.pg +++ b/Contrib/DMOI/2-Sequences/2_2-Arithmetic_and_Geometric_Sequences/2_2_9.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PCCmacros.pl", "PGcourse.pl", ); @@ -52,7 +52,7 @@ $ymult = Compute("$min*($div)^(2/3)"); BEGIN_PGML Find [`x`] and [`y`] such that [`[$min], x, y, [$max]`] is part of an arithmetic sequence. -[`x = `] [_____]{$x}, [`y = `] [_____]{$y} +[`x = `] [_____]{$x}, [`y = `] [_____]{$y} Then find [`x`] and [`y`] so that the sequence is part of a geometric sequence. diff --git a/Contrib/DMOI/2-Sequences/2_3-Polynomial_Fitting/2_3_1.pg b/Contrib/DMOI/2-Sequences/2_3-Polynomial_Fitting/2_3_1.pg index 7ef0c32e6c..49249d5078 100644 --- a/Contrib/DMOI/2-Sequences/2_3-Polynomial_Fitting/2_3_1.pg +++ b/Contrib/DMOI/2-Sequences/2_3-Polynomial_Fitting/2_3_1.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -54,7 +54,7 @@ $seq = Compute("$seq"); BEGIN_PGML Use polynomial fitting to find the formula for the [`n`]th term of the sequence [`(a_n)_{n \ge 0}`] which starts, -[` +[` [$seq], \ldots `] diff --git a/Contrib/DMOI/2-Sequences/2_3-Polynomial_Fitting/2_3_13.pg b/Contrib/DMOI/2-Sequences/2_3-Polynomial_Fitting/2_3_13.pg index 8daaedc8f6..adb07ec69a 100644 --- a/Contrib/DMOI/2-Sequences/2_3-Polynomial_Fitting/2_3_13.pg +++ b/Contrib/DMOI/2-Sequences/2_3-Polynomial_Fitting/2_3_13.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", "PGauxiliaryFunctions.pl", "contextFraction.pl" @@ -67,11 +67,11 @@ BEGIN_PGML Use polynomial fitting to find the formula for the [`n`]th term of the sequence [`(a_n)_{n \ge 1}`] which starts, -[` +[` [$seq], \ldots `] Note the first term above is [`a_1`], not [`a_0`]. - + [`a_n = `] [________]{$closed} END_PGML diff --git a/Contrib/DMOI/2-Sequences/2_3-Polynomial_Fitting/2_3_2.pg b/Contrib/DMOI/2-Sequences/2_3-Polynomial_Fitting/2_3_2.pg index 4fc044a6d5..40907c2769 100644 --- a/Contrib/DMOI/2-Sequences/2_3-Polynomial_Fitting/2_3_2.pg +++ b/Contrib/DMOI/2-Sequences/2_3-Polynomial_Fitting/2_3_2.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", "PGauxiliaryFunctions.pl", "contextFraction.pl" @@ -67,7 +67,7 @@ BEGIN_PGML Use polynomial fitting to find the formula for the [`n`]th term of the sequence [`(a_n)_{n \ge 0}`] which starts, -[` +[` [$seq], \ldots `] diff --git a/Contrib/DMOI/2-Sequences/2_3-Polynomial_Fitting/2_3_3.pg b/Contrib/DMOI/2-Sequences/2_3-Polynomial_Fitting/2_3_3.pg index c0dbe5dd90..cca9c33f76 100644 --- a/Contrib/DMOI/2-Sequences/2_3-Polynomial_Fitting/2_3_3.pg +++ b/Contrib/DMOI/2-Sequences/2_3-Polynomial_Fitting/2_3_3.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", "PGauxiliaryFunctions.pl", "contextFraction.pl" @@ -67,7 +67,7 @@ BEGIN_PGML Use polynomial fitting to find the formula for the [`n`]th term of the sequence [`(a_n)_{n \ge 0}`] which starts, -[``` +[``` [$seq], \ldots ```] diff --git a/Contrib/DMOI/2-Sequences/2_3-Polynomial_Fitting/2_3_4.pg b/Contrib/DMOI/2-Sequences/2_3-Polynomial_Fitting/2_3_4.pg index 8d7e3afe95..f6cbf86fa1 100644 --- a/Contrib/DMOI/2-Sequences/2_3-Polynomial_Fitting/2_3_4.pg +++ b/Contrib/DMOI/2-Sequences/2_3-Polynomial_Fitting/2_3_4.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", "PGauxiliaryFunctions.pl", "contextFraction.pl" @@ -69,11 +69,11 @@ BEGIN_PGML Use polynomial fitting to find the formula for the [`n`]th term of the sequence [`(a_n)_{n \ge 1}`] which starts, -[` +[` [$seq], \ldots `] Note the first term above is [`a_1`], not [`a_0`]. - + [`a_n = `] [________]{$closed} END_PGML diff --git a/Contrib/DMOI/2-Sequences/2_3-Polynomial_Fitting/2_3_8.pg b/Contrib/DMOI/2-Sequences/2_3-Polynomial_Fitting/2_3_8.pg index 0dd2d5d7f8..bc50e8d511 100644 --- a/Contrib/DMOI/2-Sequences/2_3-Polynomial_Fitting/2_3_8.pg +++ b/Contrib/DMOI/2-Sequences/2_3-Polynomial_Fitting/2_3_8.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", "PGauxiliaryFunctions.pl", "contextLimitedPolynomial.pl", @@ -57,7 +57,7 @@ $dn = Formula("$dnb*n + $dnc")->reduce; #################### BEGIN_PGML -Suppose +Suppose Suppose [`a_n = [$an]\text{.}`] Find a closed formula for the sequence of differences by computing [`a_n - a_{n-1}\text{.}`] Simplify your answer as much as posible. [`a_n - a_{n-1} = `] [____________]{$dn} @@ -69,8 +69,8 @@ END_PGML # Solution #################### BEGIN_PGML_SOLUTION -[`a_{n-1} = (n-1)^2 + [$b](n-1) + [$c] = [$an1]`]. Thus [`a_n - a_{n-1} = [$dn]\text{.}`] -Note that this is linear (arithmetic). +[`a_{n-1} = (n-1)^2 + [$b](n-1) + [$c] = [$an1]`]. Thus [`a_n - a_{n-1} = [$dn]\text{.}`] +Note that this is linear (arithmetic). END_PGML_SOLUTION #################### diff --git a/Contrib/DMOI/2-Sequences/2_4-Solving_Recurrence_Relations/2_4_3.pg b/Contrib/DMOI/2-Sequences/2_4-Solving_Recurrence_Relations/2_4_3.pg index 02db6a275a..f72bad8b73 100644 --- a/Contrib/DMOI/2-Sequences/2_4-Solving_Recurrence_Relations/2_4_3.pg +++ b/Contrib/DMOI/2-Sequences/2_4-Solving_Recurrence_Relations/2_4_3.pg @@ -20,7 +20,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PCCmacros.pl", "PGcourse.pl", ); diff --git a/Contrib/DMOI/2-Sequences/2_4-Solving_Recurrence_Relations/2_4_5.pg b/Contrib/DMOI/2-Sequences/2_4-Solving_Recurrence_Relations/2_4_5.pg index c6d5b3ed68..2c1acd17ed 100644 --- a/Contrib/DMOI/2-Sequences/2_4-Solving_Recurrence_Relations/2_4_5.pg +++ b/Contrib/DMOI/2-Sequences/2_4-Solving_Recurrence_Relations/2_4_5.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PCCmacros.pl", "PGcourse.pl", ); diff --git a/Contrib/DMOI/2-Sequences/2_4-Solving_Recurrence_Relations/2_4_6.pg b/Contrib/DMOI/2-Sequences/2_4-Solving_Recurrence_Relations/2_4_6.pg index 8339479b7f..d13e8872d8 100644 --- a/Contrib/DMOI/2-Sequences/2_4-Solving_Recurrence_Relations/2_4_6.pg +++ b/Contrib/DMOI/2-Sequences/2_4-Solving_Recurrence_Relations/2_4_6.pg @@ -1,9 +1,9 @@ ####################################### -### Generated from PreTeXt source -### on 2018-05-17T08:45:05-06:00 -### -### http://mathbook.pugetsound.edu -### +### Generated from PreTeXt source +### on 2018-05-17T08:45:05-06:00 +### +### http://mathbook.pugetsound.edu +### ####################################### ## DBsubject('Combinatorics') ## DBchapter('Recurrence relations') @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PCCmacros.pl", "PGcourse.pl", "contextFraction.pl" diff --git a/Contrib/DMOI/2-Sequences/2_4-Solving_Recurrence_Relations/2_4_7.pg b/Contrib/DMOI/2-Sequences/2_4-Solving_Recurrence_Relations/2_4_7.pg index 92a8d556f4..f29c31e6c5 100644 --- a/Contrib/DMOI/2-Sequences/2_4-Solving_Recurrence_Relations/2_4_7.pg +++ b/Contrib/DMOI/2-Sequences/2_4-Solving_Recurrence_Relations/2_4_7.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PCCmacros.pl", "PGcourse.pl", "contextFraction.pl" diff --git a/Contrib/DMOI/2-Sequences/2_4-Solving_Recurrence_Relations/2_6_10.pg b/Contrib/DMOI/2-Sequences/2_4-Solving_Recurrence_Relations/2_6_10.pg index 4f3cab0db7..cd38438b8d 100644 --- a/Contrib/DMOI/2-Sequences/2_4-Solving_Recurrence_Relations/2_6_10.pg +++ b/Contrib/DMOI/2-Sequences/2_4-Solving_Recurrence_Relations/2_6_10.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PCCmacros.pl", "PGcourse.pl", "contextFraction.pl" diff --git a/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_1-essay.pg b/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_1-essay.pg index 1e976c5fda..4082ac02cc 100644 --- a/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_1-essay.pg +++ b/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_1-essay.pg @@ -1,9 +1,9 @@ ####################################### -### Generated from PreTeXt source -### on 2019-03-11T13:50:35-06:00 -### -### https://pretextbook.org -### +### Generated from PreTeXt source +### on 2019-03-11T13:50:35-06:00 +### +### https://pretextbook.org +### ####################################### ## DBsubject() ## DBchapter() @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGessaymacros.pl", "PGcourse.pl", ); diff --git a/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_10-essay.pg b/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_10-essay.pg index dc823f4e63..511a99169c 100644 --- a/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_10-essay.pg +++ b/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_10-essay.pg @@ -1,9 +1,9 @@ ####################################### -### Generated from PreTeXt source -### on 2019-03-11T13:50:35-06:00 -### -### https://pretextbook.org -### +### Generated from PreTeXt source +### on 2019-03-11T13:50:35-06:00 +### +### https://pretextbook.org +### ####################################### ## DBsubject() ## DBchapter() @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGessaymacros.pl", "PGcourse.pl", ); diff --git a/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_11-essay.pg b/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_11-essay.pg index 4643baadb8..ce8b80ce0b 100644 --- a/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_11-essay.pg +++ b/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_11-essay.pg @@ -1,9 +1,9 @@ ####################################### -### Generated from PreTeXt source -### on 2019-03-11T13:50:35-06:00 -### -### https://pretextbook.org -### +### Generated from PreTeXt source +### on 2019-03-11T13:50:35-06:00 +### +### https://pretextbook.org +### ####################################### ## DBsubject() ## DBchapter() @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGessaymacros.pl", "PGcourse.pl", ); diff --git a/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_12-essay.pg b/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_12-essay.pg index 4f9c68f196..a683e69266 100644 --- a/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_12-essay.pg +++ b/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_12-essay.pg @@ -1,9 +1,9 @@ ####################################### -### Generated from PreTeXt source -### on 2019-03-11T13:50:35-06:00 -### -### https://pretextbook.org -### +### Generated from PreTeXt source +### on 2019-03-11T13:50:35-06:00 +### +### https://pretextbook.org +### ####################################### ## DBsubject() ## DBchapter() @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGessaymacros.pl", "PGcourse.pl", ); diff --git a/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_13-essay.pg b/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_13-essay.pg index 237fa8a218..25fc43d534 100644 --- a/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_13-essay.pg +++ b/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_13-essay.pg @@ -1,9 +1,9 @@ ####################################### -### Generated from PreTeXt source -### on 2019-03-11T13:50:35-06:00 -### -### https://pretextbook.org -### +### Generated from PreTeXt source +### on 2019-03-11T13:50:35-06:00 +### +### https://pretextbook.org +### ####################################### ## DBsubject() ## DBchapter() @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGessaymacros.pl", "PGcourse.pl", ); diff --git a/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_14-essay.pg b/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_14-essay.pg index 9558bff6f1..d9c4dff03f 100644 --- a/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_14-essay.pg +++ b/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_14-essay.pg @@ -1,9 +1,9 @@ ####################################### -### Generated from PreTeXt source -### on 2019-03-11T13:50:35-06:00 -### -### https://pretextbook.org -### +### Generated from PreTeXt source +### on 2019-03-11T13:50:35-06:00 +### +### https://pretextbook.org +### ####################################### ## DBsubject() ## DBchapter() @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGessaymacros.pl", "PGcourse.pl", ); diff --git a/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_15-essay.pg b/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_15-essay.pg index a75a9d6d29..46aec92a56 100644 --- a/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_15-essay.pg +++ b/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_15-essay.pg @@ -1,9 +1,9 @@ ####################################### -### Generated from PreTeXt source -### on 2019-03-11T13:50:35-06:00 -### -### https://pretextbook.org -### +### Generated from PreTeXt source +### on 2019-03-11T13:50:35-06:00 +### +### https://pretextbook.org +### ####################################### ## DBsubject() ## DBchapter() @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGessaymacros.pl", "PGcourse.pl", ); diff --git a/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_16-essay.pg b/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_16-essay.pg index 1bb289c9f0..fc6f5542d8 100644 --- a/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_16-essay.pg +++ b/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_16-essay.pg @@ -1,9 +1,9 @@ ####################################### -### Generated from PreTeXt source -### on 2019-03-11T13:50:35-06:00 -### -### https://pretextbook.org -### +### Generated from PreTeXt source +### on 2019-03-11T13:50:35-06:00 +### +### https://pretextbook.org +### ####################################### ## DBsubject() ## DBchapter() @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGessaymacros.pl", "PGcourse.pl", ); diff --git a/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_17-essay.pg b/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_17-essay.pg index 1fd15b92b4..1e6358c3bd 100644 --- a/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_17-essay.pg +++ b/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_17-essay.pg @@ -1,9 +1,9 @@ ####################################### -### Generated from PreTeXt source -### on 2019-03-11T13:50:35-06:00 -### -### https://pretextbook.org -### +### Generated from PreTeXt source +### on 2019-03-11T13:50:35-06:00 +### +### https://pretextbook.org +### ####################################### ## DBsubject() ## DBchapter() @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGessaymacros.pl", "PGcourse.pl", ); diff --git a/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_18-essay.pg b/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_18-essay.pg index 8a9affdfe0..9155b83e72 100644 --- a/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_18-essay.pg +++ b/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_18-essay.pg @@ -1,9 +1,9 @@ ####################################### -### Generated from PreTeXt source -### on 2019-03-11T13:50:35-06:00 -### -### https://pretextbook.org -### +### Generated from PreTeXt source +### on 2019-03-11T13:50:35-06:00 +### +### https://pretextbook.org +### ####################################### ## DBsubject() ## DBchapter() @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGessaymacros.pl", "PGcourse.pl", ); diff --git a/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_19-essay.pg b/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_19-essay.pg index eaf6add609..5b6a693da6 100644 --- a/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_19-essay.pg +++ b/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_19-essay.pg @@ -1,9 +1,9 @@ ####################################### -### Generated from PreTeXt source -### on 2019-03-11T13:50:35-06:00 -### -### https://pretextbook.org -### +### Generated from PreTeXt source +### on 2019-03-11T13:50:35-06:00 +### +### https://pretextbook.org +### ####################################### ## DBsubject() ## DBchapter() @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGessaymacros.pl", "PGcourse.pl", ); diff --git a/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_2-essay.pg b/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_2-essay.pg index 0bfb843aa3..c5efd45eef 100644 --- a/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_2-essay.pg +++ b/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_2-essay.pg @@ -1,9 +1,9 @@ ####################################### -### Generated from PreTeXt source -### on 2019-03-11T13:50:35-06:00 -### -### https://pretextbook.org -### +### Generated from PreTeXt source +### on 2019-03-11T13:50:35-06:00 +### +### https://pretextbook.org +### ####################################### ## DBsubject() ## DBchapter() @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGessaymacros.pl", "PGcourse.pl", ); diff --git a/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_20-essay.pg b/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_20-essay.pg index e4147bb561..9ec6cc3b30 100644 --- a/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_20-essay.pg +++ b/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_20-essay.pg @@ -1,9 +1,9 @@ ####################################### -### Generated from PreTeXt source -### on 2019-03-11T13:50:36-06:00 -### -### https://pretextbook.org -### +### Generated from PreTeXt source +### on 2019-03-11T13:50:36-06:00 +### +### https://pretextbook.org +### ####################################### ## DBsubject() ## DBchapter() @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGessaymacros.pl", "PGcourse.pl", ); diff --git a/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_21-essay.pg b/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_21-essay.pg index 11c22d8f87..4af63f5fe0 100644 --- a/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_21-essay.pg +++ b/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_21-essay.pg @@ -1,9 +1,9 @@ ####################################### -### Generated from PreTeXt source -### on 2019-03-11T13:50:36-06:00 -### -### https://pretextbook.org -### +### Generated from PreTeXt source +### on 2019-03-11T13:50:36-06:00 +### +### https://pretextbook.org +### ####################################### ## DBsubject() ## DBchapter() @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGessaymacros.pl", "PGcourse.pl", ); diff --git a/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_22-essay.pg b/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_22-essay.pg index 58a2e7b5d4..0c073c3d40 100644 --- a/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_22-essay.pg +++ b/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_22-essay.pg @@ -1,9 +1,9 @@ ####################################### -### Generated from PreTeXt source -### on 2019-03-11T13:50:36-06:00 -### -### https://pretextbook.org -### +### Generated from PreTeXt source +### on 2019-03-11T13:50:36-06:00 +### +### https://pretextbook.org +### ####################################### ## DBsubject() ## DBchapter() @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGessaymacros.pl", "PGcourse.pl", ); diff --git a/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_23-essay.pg b/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_23-essay.pg index cf1fee16fb..7a9bbaebea 100644 --- a/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_23-essay.pg +++ b/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_23-essay.pg @@ -1,9 +1,9 @@ ####################################### -### Generated from PreTeXt source -### on 2019-03-11T13:50:36-06:00 -### -### https://pretextbook.org -### +### Generated from PreTeXt source +### on 2019-03-11T13:50:36-06:00 +### +### https://pretextbook.org +### ####################################### ## DBsubject() ## DBchapter() @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGessaymacros.pl", "PGcourse.pl", ); diff --git a/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_24-essay.pg b/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_24-essay.pg index 5a72d5e1f4..89b70f570b 100644 --- a/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_24-essay.pg +++ b/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_24-essay.pg @@ -1,9 +1,9 @@ ####################################### -### Generated from PreTeXt source -### on 2019-03-11T13:50:36-06:00 -### -### https://pretextbook.org -### +### Generated from PreTeXt source +### on 2019-03-11T13:50:36-06:00 +### +### https://pretextbook.org +### ####################################### ## DBsubject() ## DBchapter() @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGessaymacros.pl", "PGcourse.pl", ); diff --git a/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_25-essay.pg b/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_25-essay.pg index 8d1d99095f..ea64903d93 100644 --- a/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_25-essay.pg +++ b/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_25-essay.pg @@ -1,9 +1,9 @@ ####################################### -### Generated from PreTeXt source -### on 2019-03-11T13:50:36-06:00 -### -### https://pretextbook.org -### +### Generated from PreTeXt source +### on 2019-03-11T13:50:36-06:00 +### +### https://pretextbook.org +### ####################################### ## DBsubject() ## DBchapter() @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGessaymacros.pl", "PGcourse.pl", ); diff --git a/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_26-essay.pg b/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_26-essay.pg index f90ca36753..8cc11a3ec4 100644 --- a/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_26-essay.pg +++ b/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_26-essay.pg @@ -1,9 +1,9 @@ ####################################### -### Generated from PreTeXt source -### on 2019-03-11T13:50:36-06:00 -### -### https://pretextbook.org -### +### Generated from PreTeXt source +### on 2019-03-11T13:50:36-06:00 +### +### https://pretextbook.org +### ####################################### ## DBsubject() ## DBchapter() @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGessaymacros.pl", "PGcourse.pl", ); diff --git a/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_27-essay.pg b/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_27-essay.pg index 92115a114d..66790478fc 100644 --- a/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_27-essay.pg +++ b/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_27-essay.pg @@ -1,9 +1,9 @@ ####################################### -### Generated from PreTeXt source -### on 2019-03-11T13:50:36-06:00 -### -### https://pretextbook.org -### +### Generated from PreTeXt source +### on 2019-03-11T13:50:36-06:00 +### +### https://pretextbook.org +### ####################################### ## DBsubject() ## DBchapter() @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGessaymacros.pl", "PGcourse.pl", ); diff --git a/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_28-essay.pg b/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_28-essay.pg index 55b1c05749..e630ad8361 100644 --- a/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_28-essay.pg +++ b/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_28-essay.pg @@ -1,9 +1,9 @@ ####################################### -### Generated from PreTeXt source -### on 2019-03-11T13:50:36-06:00 -### -### https://pretextbook.org -### +### Generated from PreTeXt source +### on 2019-03-11T13:50:36-06:00 +### +### https://pretextbook.org +### ####################################### ## DBsubject() ## DBchapter() @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGessaymacros.pl", "PGcourse.pl", ); diff --git a/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_29-essay.pg b/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_29-essay.pg index 7a85ab784a..a0c3491225 100644 --- a/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_29-essay.pg +++ b/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_29-essay.pg @@ -1,9 +1,9 @@ ####################################### -### Generated from PreTeXt source -### on 2019-03-11T13:50:36-06:00 -### -### https://pretextbook.org -### +### Generated from PreTeXt source +### on 2019-03-11T13:50:36-06:00 +### +### https://pretextbook.org +### ####################################### ## DBsubject() ## DBchapter() @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGessaymacros.pl", "PGcourse.pl", ); diff --git a/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_3-essay.pg b/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_3-essay.pg index 9f82e3ee31..30a77b7337 100644 --- a/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_3-essay.pg +++ b/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_3-essay.pg @@ -1,9 +1,9 @@ ####################################### -### Generated from PreTeXt source -### on 2019-03-11T13:50:35-06:00 -### -### https://pretextbook.org -### +### Generated from PreTeXt source +### on 2019-03-11T13:50:35-06:00 +### +### https://pretextbook.org +### ####################################### ## DBsubject() ## DBchapter() @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGessaymacros.pl", "PGcourse.pl", ); diff --git a/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_4-essay.pg b/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_4-essay.pg index 9b86802a25..3e2c632b13 100644 --- a/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_4-essay.pg +++ b/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_4-essay.pg @@ -1,9 +1,9 @@ ####################################### -### Generated from PreTeXt source -### on 2019-03-11T13:50:35-06:00 -### -### https://pretextbook.org -### +### Generated from PreTeXt source +### on 2019-03-11T13:50:35-06:00 +### +### https://pretextbook.org +### ####################################### ## DBsubject() ## DBchapter() @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGessaymacros.pl", "PGcourse.pl", ); diff --git a/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_5-essay.pg b/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_5-essay.pg index 8719b4eb10..c3077569ca 100644 --- a/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_5-essay.pg +++ b/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_5-essay.pg @@ -1,9 +1,9 @@ ####################################### -### Generated from PreTeXt source -### on 2019-03-11T13:50:35-06:00 -### -### https://pretextbook.org -### +### Generated from PreTeXt source +### on 2019-03-11T13:50:35-06:00 +### +### https://pretextbook.org +### ####################################### ## DBsubject() ## DBchapter() @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGessaymacros.pl", "PGcourse.pl", ); diff --git a/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_6-essay.pg b/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_6-essay.pg index 13d2c710d7..e0908780ca 100644 --- a/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_6-essay.pg +++ b/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_6-essay.pg @@ -1,9 +1,9 @@ ####################################### -### Generated from PreTeXt source -### on 2019-03-11T13:50:35-06:00 -### -### https://pretextbook.org -### +### Generated from PreTeXt source +### on 2019-03-11T13:50:35-06:00 +### +### https://pretextbook.org +### ####################################### ## DBsubject() ## DBchapter() @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGessaymacros.pl", "PGcourse.pl", ); diff --git a/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_7-essay.pg b/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_7-essay.pg index ee45902251..d90af1eafb 100644 --- a/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_7-essay.pg +++ b/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_7-essay.pg @@ -1,9 +1,9 @@ ####################################### -### Generated from PreTeXt source -### on 2019-03-11T13:50:35-06:00 -### -### https://pretextbook.org -### +### Generated from PreTeXt source +### on 2019-03-11T13:50:35-06:00 +### +### https://pretextbook.org +### ####################################### ## DBsubject() ## DBchapter() @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGessaymacros.pl", "PGcourse.pl", ); diff --git a/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_8-essay.pg b/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_8-essay.pg index 8ad785d1ab..5e6070cafa 100644 --- a/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_8-essay.pg +++ b/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_8-essay.pg @@ -1,9 +1,9 @@ ####################################### -### Generated from PreTeXt source -### on 2019-03-11T13:50:35-06:00 -### -### https://pretextbook.org -### +### Generated from PreTeXt source +### on 2019-03-11T13:50:35-06:00 +### +### https://pretextbook.org +### ####################################### ## DBsubject() ## DBchapter() @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGessaymacros.pl", "PGcourse.pl", ); diff --git a/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_9-essay.pg b/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_9-essay.pg index 828ff69bb9..d3e0dce1e8 100644 --- a/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_9-essay.pg +++ b/Contrib/DMOI/2-Sequences/2_5-Induction/2_5_9-essay.pg @@ -1,9 +1,9 @@ ####################################### -### Generated from PreTeXt source -### on 2019-03-11T13:50:35-06:00 -### -### https://pretextbook.org -### +### Generated from PreTeXt source +### on 2019-03-11T13:50:35-06:00 +### +### https://pretextbook.org +### ####################################### ## DBsubject() ## DBchapter() @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGessaymacros.pl", "PGcourse.pl", ); diff --git a/Contrib/DMOI/2-Sequences/2_6-Chapter_Summary/2_6_1.pg b/Contrib/DMOI/2-Sequences/2_6-Chapter_Summary/2_6_1.pg index fe81c5e5b5..d3075da3f2 100644 --- a/Contrib/DMOI/2-Sequences/2_6-Chapter_Summary/2_6_1.pg +++ b/Contrib/DMOI/2-Sequences/2_6-Chapter_Summary/2_6_1.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", ); diff --git a/Contrib/DMOI/2-Sequences/2_6-Chapter_Summary/2_6_10.pg b/Contrib/DMOI/2-Sequences/2_6-Chapter_Summary/2_6_10.pg index 4f3cab0db7..cd38438b8d 100644 --- a/Contrib/DMOI/2-Sequences/2_6-Chapter_Summary/2_6_10.pg +++ b/Contrib/DMOI/2-Sequences/2_6-Chapter_Summary/2_6_10.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PCCmacros.pl", "PGcourse.pl", "contextFraction.pl" diff --git a/Contrib/DMOI/2-Sequences/2_6-Chapter_Summary/2_6_11.pg b/Contrib/DMOI/2-Sequences/2_6-Chapter_Summary/2_6_11.pg index a17265558b..3de0805dfe 100644 --- a/Contrib/DMOI/2-Sequences/2_6-Chapter_Summary/2_6_11.pg +++ b/Contrib/DMOI/2-Sequences/2_6-Chapter_Summary/2_6_11.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PCCmacros.pl", "PGcourse.pl", "contextFraction.pl" @@ -75,7 +75,7 @@ Consider the recurrence relation [`a_n = [$ra]a_{n-1} + [$rb]a_{n-2}`] with firs a. Find the next two terms of the sequence ([`a_2`] and [`a_3`]): [`a_2 = `] [___]{$a2} - + [`a_3 = `] [___]{$a3} a. Solve the recurrence relation. That is, find a closed formula for [`a_n\text{.}`] diff --git a/Contrib/DMOI/2-Sequences/2_6-Chapter_Summary/2_6_2.pg b/Contrib/DMOI/2-Sequences/2_6-Chapter_Summary/2_6_2.pg index 8268cd7d54..9e57921a38 100644 --- a/Contrib/DMOI/2-Sequences/2_6-Chapter_Summary/2_6_2.pg +++ b/Contrib/DMOI/2-Sequences/2_6-Chapter_Summary/2_6_2.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -73,7 +73,7 @@ a. What is the second-to-last term? a. Find the sum of all the terms in the sequence. - [__________]{$ans3} + [__________]{$ans3} @@ -85,7 +85,7 @@ END_PGML BEGIN_PGML_SOLUTION a. [`[$ans1]`] terms. a. [`[$ans2]\text{.}`] -a. [`\frac{([$rate]*n+[$add])*([$ans1])}{2}\text{.}`] +a. [`\frac{([$rate]*n+[$add])*([$ans1])}{2}\text{.}`] diff --git a/Contrib/DMOI/2-Sequences/2_6-Chapter_Summary/2_6_3.pg b/Contrib/DMOI/2-Sequences/2_6-Chapter_Summary/2_6_3.pg index a7ef48a1cb..163b374050 100644 --- a/Contrib/DMOI/2-Sequences/2_6-Chapter_Summary/2_6_3.pg +++ b/Contrib/DMOI/2-Sequences/2_6-Chapter_Summary/2_6_3.pg @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PCCmacros.pl", "parserPopUp.pl", "PGcourse.pl", diff --git a/Contrib/DMOI/2-Sequences/2_6-Chapter_Summary/2_6_5.pg b/Contrib/DMOI/2-Sequences/2_6-Chapter_Summary/2_6_5.pg index 97646cb961..a721bc49d0 100644 --- a/Contrib/DMOI/2-Sequences/2_6-Chapter_Summary/2_6_5.pg +++ b/Contrib/DMOI/2-Sequences/2_6-Chapter_Summary/2_6_5.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", "PGauxiliaryFunctions.pl", "contextFraction.pl" @@ -67,11 +67,11 @@ BEGIN_PGML Use polynomial fitting to find the formula for the [`n`]th term of the sequence [`(a_n)_{n \ge 1}`] which starts, -[``` +[``` [$seq], \ldots ```] Note the first term above is [`a_1`], not [`a_0`]. - + [`a_n = `] [________]{$closed} END_PGML diff --git a/Contrib/DMOI/3-Symbolic_Logic_and_Proofs/3_1-Propositional_Logic/3_1_12.pg b/Contrib/DMOI/3-Symbolic_Logic_and_Proofs/3_1-Propositional_Logic/3_1_12.pg index 881e17a354..1599e5d6a9 100644 --- a/Contrib/DMOI/3-Symbolic_Logic_and_Proofs/3_1-Propositional_Logic/3_1_12.pg +++ b/Contrib/DMOI/3-Symbolic_Logic_and_Proofs/3_1-Propositional_Logic/3_1_12.pg @@ -24,7 +24,7 @@ loadMacros( "MathObjects.pl", "PGML.pl", "niceTables.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", "PGchoicemacros.pl" ); @@ -56,9 +56,9 @@ $mc ->qa( "Yes, in every row where both premises are true, the conclusion is also true." ); $mc->extra( - "No, because the conclusion is not always true.", - "No, because the columns for the two premises are not identical.", - "Yes, because there is a row in which both premises are true.", + "No, because the conclusion is not always true.", + "No, because the columns for the two premises are not identical.", + "Yes, because there is a row in which both premises are true.", ); $mc ->makeLast( "Impossible to determine without more information." @@ -152,7 +152,7 @@ DataTable( );\} $ECENTER -$BR +$BR There is only one row in which both premises are true (row 4). In this row, the conclusion is also true. Thus the deduction rule is valid. diff --git a/Contrib/DMOI/3-Symbolic_Logic_and_Proofs/3_1-Propositional_Logic/3_1_13.pg b/Contrib/DMOI/3-Symbolic_Logic_and_Proofs/3_1-Propositional_Logic/3_1_13.pg index c2f3f4f789..f71139c8c5 100644 --- a/Contrib/DMOI/3-Symbolic_Logic_and_Proofs/3_1-Propositional_Logic/3_1_13.pg +++ b/Contrib/DMOI/3-Symbolic_Logic_and_Proofs/3_1-Propositional_Logic/3_1_13.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGML.pl", "niceTables.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", "PGchoicemacros.pl" ); @@ -45,7 +45,7 @@ $s2 = "\neg(P \rightarrow Q)"; $c = "R"; @ans = qw( T F - T F + T F T T F T T F @@ -59,9 +59,9 @@ $mc ->qa( "Yes, in every row where both premises are true, the conclusion is also true." ); $mc->extra( - "No, because the statements are not always true.", - "No, because the columns for the two premises are not identical.", - "Yes, because there is a row in which both premises are true.", + "No, because the statements are not always true.", + "No, because the columns for the two premises are not identical.", + "Yes, because there is a row in which both premises are true.", ); $mc ->makeLast( "Impossible to determine without more information." @@ -161,7 +161,7 @@ DataTable( );\} $ECENTER -$BR +$BR There is only one row in which both premises are true (row 3). In this row, the conclusion is also true, so the deduction rule is valid. diff --git a/Contrib/DMOI/3-Symbolic_Logic_and_Proofs/3_1-Propositional_Logic/3_1_14.pg b/Contrib/DMOI/3-Symbolic_Logic_and_Proofs/3_1-Propositional_Logic/3_1_14.pg index 43f4646294..5632995fa1 100644 --- a/Contrib/DMOI/3-Symbolic_Logic_and_Proofs/3_1-Propositional_Logic/3_1_14.pg +++ b/Contrib/DMOI/3-Symbolic_Logic_and_Proofs/3_1-Propositional_Logic/3_1_14.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGML.pl", "niceTables.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", "PGchoicemacros.pl" ); @@ -59,9 +59,9 @@ $mc ->qa( "No, because there is a row in which both premises are true but the conclusion is false." ); $mc->extra( - "No, because the columns for the two premises are not identical.", - "Yes, because in every row that the conclusion is true, one of the premises is true.", - "Yes, because there is a row in which the conclusion and both premises are true.", + "No, because the columns for the two premises are not identical.", + "Yes, because in every row that the conclusion is true, one of the premises is true.", + "Yes, because there is a row in which the conclusion and both premises are true.", ); $mc ->makeLast( "Impossible to determine without more information." @@ -161,7 +161,7 @@ DataTable( );\} $ECENTER -$BR +$BR In rows 3, 5, and 7 both of the premises are true, but the conclusion is false. Thus the deduction rule is not valid. diff --git a/Contrib/DMOI/3-Symbolic_Logic_and_Proofs/3_1-Propositional_Logic/3_1_2.pg b/Contrib/DMOI/3-Symbolic_Logic_and_Proofs/3_1-Propositional_Logic/3_1_2.pg index aeb7032698..ea5c39f0a8 100644 --- a/Contrib/DMOI/3-Symbolic_Logic_and_Proofs/3_1-Propositional_Logic/3_1_2.pg +++ b/Contrib/DMOI/3-Symbolic_Logic_and_Proofs/3_1-Propositional_Logic/3_1_2.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGML.pl", "niceTables.pl", - "AnswerFormatHelp.pl", + "PGessaymacros.pl", "PGcourse.pl", ); @@ -57,7 +57,7 @@ $statement = "\((P \wedge Q) \rightarrow (P \vee Q))\)"; ############################################################ BEGIN_TEXT -Make a truth table for the statement +Make a truth table for the statement \((P \wedge Q) \rightarrow (P \vee Q)\text{.}\) diff --git a/Contrib/DMOI/3-Symbolic_Logic_and_Proofs/3_1-Propositional_Logic/3_1_21.pg b/Contrib/DMOI/3-Symbolic_Logic_and_Proofs/3_1-Propositional_Logic/3_1_21.pg index e029474ca9..a6f5e34ce8 100644 --- a/Contrib/DMOI/3-Symbolic_Logic_and_Proofs/3_1-Propositional_Logic/3_1_21.pg +++ b/Contrib/DMOI/3-Symbolic_Logic_and_Proofs/3_1-Propositional_Logic/3_1_21.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGML.pl", "niceTables.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", "PGchoicemacros.pl" ); @@ -44,7 +44,7 @@ $s1 = "P \rightarrow Q"; $s2 = "P \wedge \neg Q"; @ans = qw( T F - T F + T F F T F T T F @@ -58,9 +58,9 @@ $mc ->qa( "Yes, in every row where both premises are true, the conclusion is also true." ); $mc->extra( - "No, because the premises are never both true in the same row.", - "No, because the columns for the two premises are not identical.", - "Yes, because there is a row in which both premises are true.", + "No, because the premises are never both true in the same row.", + "No, because the columns for the two premises are not identical.", + "Yes, because there is a row in which both premises are true.", ); $mc ->makeLast( "Impossible to determine without more information." @@ -160,7 +160,7 @@ DataTable( );\} $ECENTER -$BR +$BR There is no row in which both premises are true (indeed, these are contradictory premises; the second is the negation of the first). Thus for every row in which both premises are true (i.e., no row), the conclusion is also true. Therefore the deduction rule is valid. (This is an example of how everything follows from a contradiction.) diff --git a/Contrib/DMOI/3-Symbolic_Logic_and_Proofs/3_1-Propositional_Logic/3_1_3.pg b/Contrib/DMOI/3-Symbolic_Logic_and_Proofs/3_1-Propositional_Logic/3_1_3.pg index c396e9bc7a..7cbadc99d4 100644 --- a/Contrib/DMOI/3-Symbolic_Logic_and_Proofs/3_1-Propositional_Logic/3_1_3.pg +++ b/Contrib/DMOI/3-Symbolic_Logic_and_Proofs/3_1-Propositional_Logic/3_1_3.pg @@ -24,7 +24,7 @@ loadMacros( "MathObjects.pl", "PGML.pl", "niceTables.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", "PGchoicemacros.pl" ); @@ -64,9 +64,9 @@ $mc ->qa( "That \(P\) is false and \(Q\) is true." ); $mc->extra( - "That \(P\) is true and \(Q\) is false.", - "That \(P\) and \(Q\) are both true.", - "That \(P\) and \(Q\) are both false.", + "That \(P\) is true and \(Q\) is false.", + "That \(P\) and \(Q\) are both true.", + "That \(P\) and \(Q\) are both false.", ); $mc ->makeLast( "None of the above." @@ -77,7 +77,7 @@ $mc ->makeLast( ############################################################ BEGIN_TEXT -Make a truth table for the statement +Make a truth table for the statement $statement diff --git a/Contrib/DMOI/3-Symbolic_Logic_and_Proofs/3_1-Propositional_Logic/3_1_4.pg b/Contrib/DMOI/3-Symbolic_Logic_and_Proofs/3_1-Propositional_Logic/3_1_4.pg index b2689a028b..c9fc225289 100644 --- a/Contrib/DMOI/3-Symbolic_Logic_and_Proofs/3_1-Propositional_Logic/3_1_4.pg +++ b/Contrib/DMOI/3-Symbolic_Logic_and_Proofs/3_1-Propositional_Logic/3_1_4.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGML.pl", "niceTables.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -46,13 +46,13 @@ if ($q == 0){ $b = "Q \wedge R"; $statement = "$a \rightarrow ($b)"; @ans = qw( - F T T - F F T - F F T - F F T - T T T - T F F - T F T + F T T + F F T + F F T + F F T + T T T + T F F + T F T T F F ); } elsif ($q == 1){ @@ -60,13 +60,13 @@ if ($q == 0){ $b = "P \wedge \neg R"; $statement = "Q \rightarrow (P \wedge \neg R)"; @ans = qw( - F F F - T T T - F F T - T T T - F F F - T F F - F F T + F F F + T T T + F F T + T T T + F F F + T F F + F F T T F T ); } elsif ($q == 2){ @@ -74,13 +74,13 @@ if ($q == 0){ $b = "Q \vee R"; $statement = "\neg P \rightarrow (Q \vee R)"; @ans = qw( - F T T - F T T - F T T - F F T - T T T - T T T - T T T + F T T + F T T + F T T + F F T + T T T + T T T + T T T T F F ); } elsif ($q == 3){ @@ -88,13 +88,13 @@ if ($q == 0){ $b = "\neg P \vee R"; $statement = "Q \rightarrow (\neg P \vee R)"; @ans = qw( - F T T - F F F - F T T - F F T - T T T - T T T - T T T + F T T + F F F + F T T + F F T + T T T + T T T + T T T T T T ); } elsif ($q == 4){ @@ -102,13 +102,13 @@ if ($q == 0){ $b = "P \vee R"; $statement = "\neg Q \rightarrow (P \vee R)"; @ans = qw( - F T T - F T T - T T T - T T T - F T T - F F T - T T T + F T T + F T T + T T T + T T T + F T T + F F T + T T T T F F ); } elsif ($q == 5){ @@ -116,13 +116,13 @@ if ($q == 0){ $b = "Q \rightarrow R"; $statement = "\neg P \vee (Q \rightarrow R)"; @ans = qw( - F T T - F F F - F T T - F T T - T T T - T F T - T T T + F T T + F F F + F T T + F T T + T T T + T F T + T T T T T T ); } elsif ($q == 6){ @@ -130,13 +130,13 @@ if ($q == 0){ $b = "Q \rightarrow R"; $statement = "\neg P \wedge (Q \rightarrow R)"; @ans = qw( - F T F - F F F - F T F - F T F - T T T - T F F - T T T + F T F + F F F + F T F + F T F + T T T + T F F + T T T T T T ); } elsif ($q == 7){ @@ -144,13 +144,13 @@ if ($q == 0){ $b = "\neg Q \rightarrow R"; $statement = "P \vee (\neg Q \rightarrow R)"; @ans = qw( - F T T - F T T - T T T - T F T - F T T - F T T - T T T + F T T + F T T + T T T + T F T + F T T + F T T + T T T T F T ); } elsif ($q == 8){ @@ -158,13 +158,13 @@ if ($q == 0){ $b = "\neg Q \rightarrow R"; $statement = "P \wedge (\neg Q \rightarrow R)"; @ans = qw( - F T T - F T T - T T T - T F F - F T F - F T F - T T F + F T T + F T T + T T T + T F F + F T F + F T F + T T F T F F ); } elsif ($q == 9){ @@ -173,12 +173,12 @@ if ($q == 0){ $statement = "P \vee (R \rightarrow \neg Q)"; @ans = qw( F F T - F T T - T T T - T T T + F T T + T T T + T T T F F F - F T T - T T T + F T T + T T T T T T ); } elsif ($q == 10){ @@ -186,13 +186,13 @@ if ($q == 0){ $b = "R \rightarrow \neg Q"; $statement = "P \wedge (R \rightarrow \neg Q)"; @ans = qw( - F F F - F T T - T T T - T T T - F F F - F T F - T T F + F F F + F T T + T T T + T T T + F F F + F T F + T T F T T F ); } @@ -204,7 +204,7 @@ if ($q == 0){ ############################################################ BEGIN_TEXT -Make a truth table for the statement +Make a truth table for the statement \($statement\) diff --git a/Contrib/DMOI/3-Symbolic_Logic_and_Proofs/3_1-Propositional_Logic/3_1_7.pg b/Contrib/DMOI/3-Symbolic_Logic_and_Proofs/3_1-Propositional_Logic/3_1_7.pg index 44f5fc98b6..997d4d543b 100644 --- a/Contrib/DMOI/3-Symbolic_Logic_and_Proofs/3_1-Propositional_Logic/3_1_7.pg +++ b/Contrib/DMOI/3-Symbolic_Logic_and_Proofs/3_1-Propositional_Logic/3_1_7.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGML.pl", "niceTables.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", "PGchoicemacros.pl" ); @@ -44,7 +44,7 @@ $s1 = "P \rightarrow (Q \vee R)"; $s2 = "(P \rightarrow Q) \vee (P\rightarrow R)"; @ans = qw( T T - T T + T T T T F F T T @@ -58,9 +58,9 @@ $mc ->qa( "Yes, because the columns for the two statements are identical." ); $mc->extra( - "No, because the statements are not always true.", - "No, because the columns for the two statements are not identical.", - "Yes, because even though the columns are not identical, there are some rows in which they are identical.", + "No, because the statements are not always true.", + "No, because the columns for the two statements are not identical.", + "Yes, because even though the columns are not identical, there are some rows in which they are identical.", ); $mc ->makeLast( "Impossible to determine without more information." @@ -145,7 +145,7 @@ DataTable( );\} $ECENTER -$BR +$BR Since the two columns are identical, the statements are logically equivalent. diff --git a/Contrib/DMOI/3-Symbolic_Logic_and_Proofs/3_3-Chapter_Summary/3_1_4.pg b/Contrib/DMOI/3-Symbolic_Logic_and_Proofs/3_3-Chapter_Summary/3_1_4.pg index 985617f357..669b2eaed1 100644 --- a/Contrib/DMOI/3-Symbolic_Logic_and_Proofs/3_3-Chapter_Summary/3_1_4.pg +++ b/Contrib/DMOI/3-Symbolic_Logic_and_Proofs/3_3-Chapter_Summary/3_1_4.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGML.pl", "niceTables.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -46,13 +46,13 @@ if ($q == 0){ $b = "Q \wedge R"; $statement = "$a \rightarrow ($b)"; @ans = qw( - F T T - F F T - F F T - F F T - T T T - T F F - T F T + F T T + F F T + F F T + F F T + T T T + T F F + T F T T F F ); } elsif ($q == 1){ @@ -60,13 +60,13 @@ if ($q == 0){ $b = "P \wedge \neg R"; $statement = "Q \rightarrow (P \wedge \neg R)"; @ans = qw( - F F F - T T T - F F T - T T T - F F F - T F F - F F T + F F F + T T T + F F T + T T T + F F F + T F F + F F T T F T ); } elsif ($q == 2){ @@ -74,13 +74,13 @@ if ($q == 0){ $b = "Q \vee R"; $statement = "\neg P \rightarrow (Q \vee R)"; @ans = qw( - F T T - F T T - F T T - F F T - T T T - T T T - T T T + F T T + F T T + F T T + F F T + T T T + T T T + T T T T F F ); } elsif ($q == 3){ @@ -88,13 +88,13 @@ if ($q == 0){ $b = "\neg P \vee R"; $statement = "Q \rightarrow (\neg P \vee R)"; @ans = qw( - F T T - F F F - F T T - F F T - T T T - T T T - T T T + F T T + F F F + F T T + F F T + T T T + T T T + T T T T T T ); } elsif ($q == 4){ @@ -102,13 +102,13 @@ if ($q == 0){ $b = "P \vee R"; $statement = "\neg Q \rightarrow (P \vee R)"; @ans = qw( - F T T - F T T - T T T - T T T - F T T - F F T - T T T + F T T + F T T + T T T + T T T + F T T + F F T + T T T T F F ); } elsif ($q == 5){ @@ -116,13 +116,13 @@ if ($q == 0){ $b = "Q \rightarrow R"; $statement = "\neg P \vee (Q \rightarrow R)"; @ans = qw( - F T T - F F F - F T T - F T T - T T T - T F T - T T T + F T T + F F F + F T T + F T T + T T T + T F T + T T T T T T ); } elsif ($q == 6){ @@ -130,13 +130,13 @@ if ($q == 0){ $b = "Q \rightarrow R"; $statement = "\neg P \wedge (Q \rightarrow R)"; @ans = qw( - F T F - F F F - F T F - F T F - T T T - T F F - T T T + F T F + F F F + F T F + F T F + T T T + T F F + T T T T T T ); } elsif ($q == 7){ @@ -144,13 +144,13 @@ if ($q == 0){ $b = "\neg Q \rightarrow R"; $statement = "P \vee (\neg Q \rightarrow R)"; @ans = qw( - F T T - F T T - T T T - T F T - F T T - F T T - T T T + F T T + F T T + T T T + T F T + F T T + F T T + T T T T F T ); } elsif ($q == 8){ @@ -158,13 +158,13 @@ if ($q == 0){ $b = "\neg Q \rightarrow R"; $statement = "P \wedge (\neg Q \rightarrow R)"; @ans = qw( - F T T - F T T - T T T - T F F - F T F - F T F - T T F + F T T + F T T + T T T + T F F + F T F + F T F + T T F T F F ); } elsif ($q == 9){ @@ -173,12 +173,12 @@ if ($q == 0){ $statement = "P \vee (R \rightarrow \neg Q)"; @ans = qw( F F T - F T T - T T T - T T T + F T T + T T T + T T T F F F - F T T - T T T + F T T + T T T T T T ); } elsif ($q == 10){ @@ -186,13 +186,13 @@ if ($q == 0){ $b = "\neg Q \rightarrow R"; $statement = "P \wedge (R \rightarrow \neg Q)"; @ans = qw( - F F F - F T T - T T T - T T T - F F F - F T F - T T F + F F F + F T T + T T T + T T T + F F F + F T F + T T F T T F ); } @@ -204,7 +204,7 @@ if ($q == 0){ ############################################################ BEGIN_TEXT -Make a truth table for the statement +Make a truth table for the statement \($statement\) diff --git a/Contrib/DMOI/3-Symbolic_Logic_and_Proofs/3_3-Chapter_Summary/3_3_4.pg b/Contrib/DMOI/3-Symbolic_Logic_and_Proofs/3_3-Chapter_Summary/3_3_4.pg index 048bbccd7e..2dea6029b7 100644 --- a/Contrib/DMOI/3-Symbolic_Logic_and_Proofs/3_3-Chapter_Summary/3_3_4.pg +++ b/Contrib/DMOI/3-Symbolic_Logic_and_Proofs/3_3-Chapter_Summary/3_3_4.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "PGML.pl", "niceTables.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", "PGchoicemacros.pl" ); @@ -59,9 +59,9 @@ $mc ->qa( "Yes, in every row where both premises are true, the conclusion is also true." ); $mc->extra( - "No, because the conclusion is sometimes false", - "No, because the columns for the two premises are not identical.", - "Yes, because there is a row in which the conclusion and both premises are true.", + "No, because the conclusion is sometimes false", + "No, because the columns for the two premises are not identical.", + "Yes, because there is a row in which the conclusion and both premises are true.", ); $mc ->makeLast( "Impossible to determine without more information." @@ -161,7 +161,7 @@ DataTable( );\} $ECENTER -$BR +$BR In every row in which both premeses are true, the conclusion is also true. Thus the deduction rule is valid. diff --git a/Contrib/DMOI/4-Graph_Theory/4_4-Coloring/4_4_extra-1.pg b/Contrib/DMOI/4-Graph_Theory/4_4-Coloring/4_4_extra-1.pg index 2c195d6e94..7e3b0b04ec 100644 --- a/Contrib/DMOI/4-Graph_Theory/4_4-Coloring/4_4_extra-1.pg +++ b/Contrib/DMOI/4-Graph_Theory/4_4-Coloring/4_4_extra-1.pg @@ -21,13 +21,13 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "parserPopUp.pl", "parserRadioButtons.pl", "PGcourse.pl", "PGchoicemacros.pl", "PGanswermacros.pl", - "PGnauGraphtheory.pl", + "PGnauGraphtheory.pl", ); #################### diff --git a/Contrib/DMOI/4-Graph_Theory/4_4-Coloring/4_4_extra-5.pg b/Contrib/DMOI/4-Graph_Theory/4_4-Coloring/4_4_extra-5.pg index c66df4ba91..8783e63980 100644 --- a/Contrib/DMOI/4-Graph_Theory/4_4-Coloring/4_4_extra-5.pg +++ b/Contrib/DMOI/4-Graph_Theory/4_4-Coloring/4_4_extra-5.pg @@ -21,13 +21,13 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "parserPopUp.pl", "parserRadioButtons.pl", "PGcourse.pl", "PGchoicemacros.pl", "PGanswermacros.pl", - "PGnauGraphtheory.pl", + "PGnauGraphtheory.pl", ); #################### diff --git a/Contrib/DMOI/4-Graph_Theory/4_5-Euler_Paths_and_Circuits/4_5_extra-1.pg b/Contrib/DMOI/4-Graph_Theory/4_5-Euler_Paths_and_Circuits/4_5_extra-1.pg index c0179663c4..8b8edb7ab1 100644 --- a/Contrib/DMOI/4-Graph_Theory/4_5-Euler_Paths_and_Circuits/4_5_extra-1.pg +++ b/Contrib/DMOI/4-Graph_Theory/4_5-Euler_Paths_and_Circuits/4_5_extra-1.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "parserPopUp.pl", "parserRadioButtons.pl", "PGcourse.pl", @@ -54,10 +54,10 @@ $mc2->makeLast("K4", "C7", "K5, 7", "K2, 7 #################### BEGIN_PGML -[@ $mc1 -> print_q() @]* +[@ $mc1 -> print_q() @]* [@ $mc1 -> print_a() @]* -[@ $mc2 -> print_q() @]* +[@ $mc2 -> print_q() @]* [@ $mc2 -> print_a() @]* END_PGML diff --git a/Contrib/Hope/Calc1/00-00-Essays/Related_Rates_01_Oil_Spill.pg b/Contrib/Hope/Calc1/00-00-Essays/Related_Rates_01_Oil_Spill.pg index 922550b08a..16230c7c24 100644 --- a/Contrib/Hope/Calc1/00-00-Essays/Related_Rates_01_Oil_Spill.pg +++ b/Contrib/Hope/Calc1/00-00-Essays/Related_Rates_01_Oil_Spill.pg @@ -15,7 +15,7 @@ ################################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", @@ -23,7 +23,7 @@ loadMacros( "parserNumberWithUnits.pl", "PGessaymacros.pl", "PGunion.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -62,8 +62,8 @@ $areaderiv = FormulaWithUnits("2 * (9857 / $r)","m^2/day"); Context()->texStrings; BEGIN_TEXT -The Deepwater Horizon oil spill in the Gulf of Mexico on April 20, 2010 was ${LQ}an environmental disaster of unprecedented proportions${RQ} and was a ${LQ}devastating blow to the resource-dependent economy of the region${RQ} [1]. -According to the Washington Post, it is estimated that \( 9857 \) cubic meters of oil per day spilled into the Gulf of Mexico on August 2, 2010 [2]. +The Deepwater Horizon oil spill in the Gulf of Mexico on April 20, 2010 was ${LQ}an environmental disaster of unprecedented proportions${RQ} and was a ${LQ}devastating blow to the resource-dependent economy of the region${RQ} [1]. +According to the Washington Post, it is estimated that \( 9857 \) cubic meters of oil per day spilled into the Gulf of Mexico on August 2, 2010 [2]. $BR $BR @@ -75,32 +75,32 @@ $BR $ITEM Find a formula for the volume of oil spilled, in cubic meters, \( t \) days after the start of the oil spill. Include units in your answer. $BR -\( V(t) = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp('units') \} +\( V(t) = \) \{ ans_rule(40) \} +\{ helpLink('units') \} $ITEMSEP $ITEM Find the derivative of your volume formula with respect to time. Include units in your answer. $BR \( \displaystyle \frac{dV}{dt} = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp('units') \} +\{ helpLink('units') \} $ITEMSEP $ITEM When the volume of the oil spill is \( 50,000 \ \mathrm{m^3} \), what is the radius of the hemisphere of oil? Include units in your answer. Give your answer accurate to 3 decimal places. $BR \( r = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp('units') \} +\{ helpLink('units') \} $ITEMSEP $ITEM Find the rate of change of the radius with respect to time when the volume of the oil spill is \( 50,000 \ \mathrm{m^3} \). Include units in your answer. $BR \( \displaystyle \frac{dr}{dt} = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp('units') \} +\{ helpLink('units') \} $ITEMSEP $ITEM Since only the oil that is in contact with seawater can mix with seawater, it is important to know how much of the surface area of the oil spill is in contact with seawater. Find the ${BBOLD}rate of change${EBOLD} of the hemisphere's surface area with respect to time when the volume of the oil spill is \( 50,000 \ \mathrm{m^3} \). Include units in your answer. You should assume that only the top of the hemispherical dome of oil comes in contact with seawater (not the flat bottom, which is incontact with the ocean floor). $BR \( \displaystyle \frac{dA}{dt} = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp('units') \} +\{ helpLink('units') \} $ITEMSEP diff --git a/Contrib/Hope/Calc1/00-00-Essays/Related_Rates_02_Oil_Spill.pg b/Contrib/Hope/Calc1/00-00-Essays/Related_Rates_02_Oil_Spill.pg index a9120f7359..61e5cdeda7 100644 --- a/Contrib/Hope/Calc1/00-00-Essays/Related_Rates_02_Oil_Spill.pg +++ b/Contrib/Hope/Calc1/00-00-Essays/Related_Rates_02_Oil_Spill.pg @@ -15,7 +15,7 @@ ################################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", @@ -23,7 +23,7 @@ loadMacros( "parserNumberWithUnits.pl", "PGessaymacros.pl", "PGunion.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -50,7 +50,7 @@ BEGIN_TEXT $ITEMSEP -$ITEM When scientists want a quick news digest of recent results from a wide variety of fields, they often turn to ScienceDaily.com, which is a website that writes short summaries of recently published research articles. On ScienceDaily.com, use the search utility provided to search for ${LQ}oil spill${RQ} or ${LQ}Deepwater Horizon${RQ} or something else relevant to this project that interests you. Find one of the Science Daily article summaries that interests you from among the search results. +$ITEM When scientists want a quick news digest of recent results from a wide variety of fields, they often turn to ScienceDaily.com, which is a website that writes short summaries of recently published research articles. On ScienceDaily.com, use the search utility provided to search for ${LQ}oil spill${RQ} or ${LQ}Deepwater Horizon${RQ} or something else relevant to this project that interests you. Find one of the Science Daily article summaries that interests you from among the search results. Using the citation information provided in the Science Daily article summary, find the actual research journal article. $BR $BR diff --git a/Contrib/Hope/Calc1/03-04-Rates-of-change/Thomas12-03-04-16a.pg b/Contrib/Hope/Calc1/03-04-Rates-of-change/Thomas12-03-04-16a.pg index e4069dc0cc..70d5323135 100644 --- a/Contrib/Hope/Calc1/03-04-Rates-of-change/Thomas12-03-04-16a.pg +++ b/Contrib/Hope/Calc1/03-04-Rates-of-change/Thomas12-03-04-16a.pg @@ -24,7 +24,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGgraphmacros.pl", "unionTables.pl", "contextInequalities.pl", @@ -43,7 +43,7 @@ Context("Inequalities")->variables->are(t=>'Real'); Context()->flags->set(formatStudentAnswer=>'parsed'); ################################################ -# +# # The horizontal line plot (image of s) # @@ -71,7 +71,7 @@ $gr[0] -> arrowTo(2.5,0,'blue',3); ################################################## # # Values (t,y) for the piecewise linear function -# +# @t = (0..6); @@ -81,14 +81,14 @@ $y[1] = random(-1,1,2) * random(1,4,1); $y[2] = $y[1]; $t2 = random(2,3,1); $t3 = $t2 + 1; -if ( $t2 == 2 ) { - $y[3] = -1*$y[1]; +if ( $t2 == 2 ) { + $y[3] = -1*$y[1]; $y[4] = $y[3]; $y[5] = $y[3]; -} else { +} else { $y[3] = $y[2]; $y[4] = -1*$y[1]; - $y[5] = $y[4]; + $y[5] = $y[4]; } $y[6] = 0; @@ -163,28 +163,28 @@ $ECENTER. $PAR. "The position of \( P \) as a function of time \( t \) is shown in -figure B. (Note: The graph of +figure B. (Note: The graph of \( s \) shown in figure B is ${BITALIC}not${EITALIC} -the path of the particle; it is a plot of +the path of the particle; it is a plot of the particle's position versus time.) $BR $BR -(a) When is \( P \) moving right? " . +(a) When is \( P \) moving right? " . ans_rule(20).$SPACE. -AnswerFormatHelp("inequalities","help (intervals or inequalities)"). +helpLink("inequalities","help (intervals or inequalities)"). "$BR $BR (b) When is \( P \) standing still? ". ans_rule(20).$SPACE. -AnswerFormatHelp("inequalities","help (intervals or inequalities)"). +helpLink("inequalities","help (intervals or inequalities)"). "$BR $BR (c) When is the velocity of \( P \) negative? ". ans_rule(20).$SPACE. -AnswerFormatHelp("inequalities","help (intervals or inequalities)"). +helpLink("inequalities","help (intervals or inequalities)"). "$BR $BR -(d) On a sheet of paper, graph the particle's velocity and speed +(d) On a sheet of paper, graph the particle's velocity and speed (where defined)." , $BCENTER. diff --git a/Contrib/Hope/Calc1/03-04-Rates-of-change/Thomas12-03-04-16b.pg b/Contrib/Hope/Calc1/03-04-Rates-of-change/Thomas12-03-04-16b.pg index 1979014eff..ad7257793b 100644 --- a/Contrib/Hope/Calc1/03-04-Rates-of-change/Thomas12-03-04-16b.pg +++ b/Contrib/Hope/Calc1/03-04-Rates-of-change/Thomas12-03-04-16b.pg @@ -24,7 +24,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGgraphmacros.pl", "unionTables.pl", "contextInequalities.pl", @@ -43,7 +43,7 @@ Context("Inequalities")->variables->are(t=>'Real'); Context()->flags->set(formatStudentAnswer=>'parsed'); ################################################ -# +# # The horizontal line plot (image of s) # @@ -74,7 +74,7 @@ $gr[0] -> arrowTo(0,2.5,'blue',3); ################################################## # # Values (t,y) for the piecewise linear function -# +# @t = (0..6); @@ -84,14 +84,14 @@ $y[1] = random(-1,1,2) * random(1,4,1); $y[2] = $y[1]; $t2 = random(2,3,1); $t3 = $t2 + 1; -if ( $t2 == 2 ) { - $y[3] = -1*$y[1]; +if ( $t2 == 2 ) { + $y[3] = -1*$y[1]; $y[4] = $y[3]; $y[5] = $y[3]; -} else { +} else { $y[3] = $y[2]; $y[4] = -1*$y[1]; - $y[5] = $y[4]; + $y[5] = $y[4]; } $y[6] = 0; @@ -158,28 +158,28 @@ ColumnTable( "A particle \( P \) moves on the number line shown in figure A. The position of \( P \) as a function of time \( t \) is shown in -figure B. (Note: The graph of +figure B. (Note: The graph of \( y = f(t) \) shown in figure B is ${BITALIC}not${EITALIC} -the path of the particle; it is a plot of +the path of the particle; it is a plot of the particle's position versus time.) $BR $BR -(a) When is \( P \) moving up? " . +(a) When is \( P \) moving up? " . ans_rule(20).$SPACE. -AnswerFormatHelp("inequalities","help (intervals or inequalities)"). +helpLink("inequalities","help (intervals or inequalities)"). "$BR $BR (b) When is \( P \) standing still? ". ans_rule(20).$SPACE. -AnswerFormatHelp("inequalities","help (intervals or inequalities)"). +helpLink("inequalities","help (intervals or inequalities)"). "$BR $BR (c) When is the velocity of \( P \) negative? ". ans_rule(20).$SPACE. -AnswerFormatHelp("inequalities","help (intervals or inequalities)"). +helpLink("inequalities","help (intervals or inequalities)"). "$BR $BR -(d) On a sheet of paper, graph the particle's velocity and speed +(d) On a sheet of paper, graph the particle's velocity and speed (where defined)." , BeginTable(). diff --git a/Contrib/Hope/Calc1/03-08-Logs/Logs-01.pg b/Contrib/Hope/Calc1/03-08-Logs/Logs-01.pg index bc3c7ae935..13a129ba8f 100644 --- a/Contrib/Hope/Calc1/03-08-Logs/Logs-01.pg +++ b/Contrib/Hope/Calc1/03-08-Logs/Logs-01.pg @@ -24,7 +24,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -55,15 +55,15 @@ Context()->functions->undefine("sqrt"); Context()->texStrings; BEGIN_TEXT -(a) Using laws of logarithms, write the expression -below using sums and/or differences -of logarithmic expressions which do not contain +(a) Using laws of logarithms, write the expression +below using sums and/or differences +of logarithmic expressions which do not contain the logarithms of products, quotients, or powers. $BR $BR -\( \displaystyle $expr = \) +\( \displaystyle $expr = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("logarithms") \} +\{ helpLink("logarithms") \} $BR $BR END_TEXT @@ -82,13 +82,13 @@ Context()->operators->redefine("/"); Context()->texStrings; BEGIN_TEXT -(b) Use your answer from part (a) to evaluate +(b) Use your answer from part (a) to evaluate the derivative. $BR $BR -\( \displaystyle \frac{d}{dx} \left( $expr \right) = \) +\( \displaystyle \frac{d}{dx} \left( $expr \right) = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/Hope/Calc1/03-08-Logs/Logs-02.pg b/Contrib/Hope/Calc1/03-08-Logs/Logs-02.pg index cb0e94bb09..36aeafb535 100644 --- a/Contrib/Hope/Calc1/03-08-Logs/Logs-02.pg +++ b/Contrib/Hope/Calc1/03-08-Logs/Logs-02.pg @@ -24,7 +24,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", "PGcourse.pl" ); @@ -56,15 +56,15 @@ Context()->functions->undefine("sqrt"); Context()->texStrings; BEGIN_TEXT -(a) Using laws of logarithms, write the expression -below using sums and/or differences -of logarithmic expressions which do not contain +(a) Using laws of logarithms, write the expression +below using sums and/or differences +of logarithmic expressions which do not contain the logarithms of products, quotients, or powers. $BR $BR -\( \displaystyle $expr = \) +\( \displaystyle $expr = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("logarithms") \} +\{ helpLink("logarithms") \} $BR $BR END_TEXT @@ -83,17 +83,17 @@ Context()->operators->redefine("/"); Context()->texStrings; BEGIN_TEXT -(b) Use your answer from part (a) to evaluate +(b) Use your answer from part (a) to evaluate the derivative. $BR $BR -\( \displaystyle \frac{d}{dx} \left( $expr \right) = \) +\( \displaystyle \frac{d}{dx} \left( $expr \right) = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; -ANS( Compute("$a/x")->cmp() ->withPostFilter(AnswerHints( +ANS( Compute("$a/x")->cmp() ->withPostFilter(AnswerHints( Formula("1/$b + $a/x") => "What is the derivative of a constant?", Formula("-1/$b + $a/x") => "What is the derivative of a constant?", )) ); diff --git a/Contrib/Hope/Calc1/03-08-Logs/Logs-03.pg b/Contrib/Hope/Calc1/03-08-Logs/Logs-03.pg index 1c051bfb7a..1726f2dc50 100644 --- a/Contrib/Hope/Calc1/03-08-Logs/Logs-03.pg +++ b/Contrib/Hope/Calc1/03-08-Logs/Logs-03.pg @@ -19,7 +19,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", "PGcourse.pl" ); @@ -61,15 +61,15 @@ Context()->functions->undefine("sqrt"); Context()->texStrings; BEGIN_TEXT -(a) Using laws of logarithms, write the expression -below using sums and/or differences -of logarithmic expressions which do not contain +(a) Using laws of logarithms, write the expression +below using sums and/or differences +of logarithmic expressions which do not contain the logarithms of products, quotients, or powers. $BR $BR -\( \displaystyle $expr = \) +\( \displaystyle $expr = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("logarithms") \} +\{ helpLink("logarithms") \} $BR $BR Hint: \( \sqrt{u^2} = |u| \). @@ -84,7 +84,7 @@ Context()->normalStrings; $showPartialCorrectAnswers = 1; -ANS( $answer->cmp() ->withPostFilter(AnswerHints( +ANS( $answer->cmp() ->withPostFilter(AnswerHints( Formula("$b2 ln(x-$a) + $d2 ln($c-x)") => "Hint: sqrt(x^2) = |x|", )) ); @@ -94,17 +94,17 @@ Context()->variables->set(x=>{limits=>[-1,1]}); Context()->texStrings; BEGIN_TEXT -(b) Use your answer from part (a) to evaluate +(b) Use your answer from part (a) to evaluate the derivative. $BR $BR -\( \displaystyle \frac{d}{dx} \left( $expr \right) = \) +\( \displaystyle \frac{d}{dx} \left( $expr \right) = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; -ANS( Compute("$b2 / (x - $a) - $d2 / ($c - x)")->cmp() ->withPostFilter(AnswerHints( +ANS( Compute("$b2 / (x - $a) - $d2 / ($c - x)")->cmp() ->withPostFilter(AnswerHints( Formula("$b2 / (x - $a) + $d2 / ($c - x)") => "Don't forget to apply the chain rule", )) ); diff --git a/Contrib/Hope/Calc1/03-08-Logs/Logs-04.pg b/Contrib/Hope/Calc1/03-08-Logs/Logs-04.pg index dd0db97a32..663e339cf8 100644 --- a/Contrib/Hope/Calc1/03-08-Logs/Logs-04.pg +++ b/Contrib/Hope/Calc1/03-08-Logs/Logs-04.pg @@ -19,7 +19,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", "PGcourse.pl" ); @@ -36,14 +36,14 @@ Context()->variables->set(x=>{limits=>[-3,3]}); do { $a = random(2,9,1); - $c = random(6,9,1); - $e = random(2,3,1); + $c = random(6,9,1); + $e = random(2,3,1); } until ($c != $a && $e != $a && $e != $c && gcd($c,$e) == 1); $b = random(11,19,2); $b = 2 * $b; -do { - $d = random(11,19,2); +do { + $d = random(11,19,2); $d = 2 * $d; } until ($d != $b); @@ -64,15 +64,15 @@ Context()->functions->undefine("sqrt"); Context()->texStrings; BEGIN_TEXT -(a) Using laws of logarithms, write the expression -below using sums and/or differences -of logarithmic expressions which do not contain +(a) Using laws of logarithms, write the expression +below using sums and/or differences +of logarithmic expressions which do not contain the logarithms of products, quotients, or powers. $BR $BR -\( \displaystyle $expr = \) +\( \displaystyle $expr = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("logarithms") \} +\{ helpLink("logarithms") \} $BR $BR Hint: \( \sqrt{u^2} = |u| \). @@ -95,17 +95,17 @@ Context()->variables->set(x=>{limits=>[-1,1]}); Context()->texStrings; BEGIN_TEXT -(b) Use your answer from part (a) to evaluate +(b) Use your answer from part (a) to evaluate the derivative. $BR $BR -\( \displaystyle \frac{d}{dx} \left( $expr \right) = \) +\( \displaystyle \frac{d}{dx} \left( $expr \right) = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; -ANS( Compute("$b2 / (x - $a) - $d2 * $e / ($e x - $c)")->cmp() ->withPostFilter(AnswerHints( +ANS( Compute("$b2 / (x - $a) - $d2 * $e / ($e x - $c)")->cmp() ->withPostFilter(AnswerHints( Formula("$b2 / (x - $a) - $d2 / ($e x - $c)") => "Don't forget to apply the chain rule", )) ); diff --git a/Contrib/Hope/Calc1/03-08-Logs/Logs-05.pg b/Contrib/Hope/Calc1/03-08-Logs/Logs-05.pg index 5d59516e5d..86b1f400b2 100644 --- a/Contrib/Hope/Calc1/03-08-Logs/Logs-05.pg +++ b/Contrib/Hope/Calc1/03-08-Logs/Logs-05.pg @@ -19,7 +19,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", "PGcourse.pl" ); @@ -51,15 +51,15 @@ Context()->functions->undefine("sqrt"); Context()->texStrings; BEGIN_TEXT -(a) Using laws of logarithms, write the expression -below using sums and/or differences -of logarithmic expressions which do not contain +(a) Using laws of logarithms, write the expression +below using sums and/or differences +of logarithmic expressions which do not contain the logarithms of products, quotients, or powers. $BR $BR -\( \displaystyle $expr = \) +\( \displaystyle $expr = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("logarithms") \} +\{ helpLink("logarithms") \} $BR $BR END_TEXT @@ -79,13 +79,13 @@ Context()->operators->redefine("/"); Context()->texStrings; BEGIN_TEXT -(b) Use your answer from part (a) to evaluate +(b) Use your answer from part (a) to evaluate the derivative. $BR $BR -\( \displaystyle \frac{d}{dx} \left( $expr \right) = \) +\( \displaystyle \frac{d}{dx} \left( $expr \right) = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/Hope/Calc1/03-08-Logs/Logs-06.pg b/Contrib/Hope/Calc1/03-08-Logs/Logs-06.pg index 9f1c4a7801..9ab272ac57 100644 --- a/Contrib/Hope/Calc1/03-08-Logs/Logs-06.pg +++ b/Contrib/Hope/Calc1/03-08-Logs/Logs-06.pg @@ -19,7 +19,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", "parserFunction.pl", "PGcourse.pl" @@ -57,15 +57,15 @@ Context()->functions->undefine("sqrt"); Context()->texStrings; BEGIN_TEXT -(a) Using laws of logarithms, write the expression -below as a single logarithmic expression which does not contain -the logarithm of a product, quotient, or power. Enter +(a) Using laws of logarithms, write the expression +below as a single logarithmic expression which does not contain +the logarithm of a product, quotient, or power. Enter \(\log_2(x)\) as ${BTT}log2(x)$ETT. $BR $BR -\( \displaystyle $expr = \) +\( \displaystyle $expr = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("logarithms") \} +\{ helpLink("logarithms") \} $BR $BR END_TEXT @@ -85,17 +85,17 @@ Context()->variables->set(x=>{limits=>[-1,1]}); Context()->texStrings; BEGIN_TEXT -(b) Use your answer from part (a) to evaluate +(b) Use your answer from part (a) to evaluate the derivative. $BR $BR -\( \displaystyle \frac{d}{dx} \left( $expr \right) = \) +\( \displaystyle \frac{d}{dx} \left( $expr \right) = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; -ANS( Compute("$n1 / (x ln(2))")->cmp() ->withPostFilter(AnswerHints( +ANS( Compute("$n1 / (x ln(2))")->cmp() ->withPostFilter(AnswerHints( Formula("$n1 / x") => "Hint: log2(x) = ln(x) / ln(2)", )) ); diff --git a/Contrib/Hope/Calc1/03-11-Differentials/Differentials-01.pg b/Contrib/Hope/Calc1/03-11-Differentials/Differentials-01.pg index 1bf410d686..954e3a3a95 100644 --- a/Contrib/Hope/Calc1/03-11-Differentials/Differentials-01.pg +++ b/Contrib/Hope/Calc1/03-11-Differentials/Differentials-01.pg @@ -24,7 +24,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", "PGcourse.pl" ); @@ -60,9 +60,9 @@ Your answer will be in terms of x and dx. Enter \( dx \) as ${BTT}dx${ETT}. $BR $BR -\( dy \) = +\( dy \) = \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; @@ -72,10 +72,10 @@ Context()->normalStrings; $showPartialCorrectAnswers = 1; -ANS( $answer->cmp() -> withPostFilter(AnswerHints( +ANS( $answer->cmp() -> withPostFilter(AnswerHints( $fp => "Don't forget dx", - $wrong1 => "Did you remember to use parentheses?", - $wrong2 => "Did you remember to use parentheses?", + $wrong1 => "Did you remember to use parentheses?", + $wrong2 => "Did you remember to use parentheses?", )) ); COMMENT('MathObject version.'); diff --git a/Contrib/Hope/Calc1/03-11-Differentials/Differentials-02.pg b/Contrib/Hope/Calc1/03-11-Differentials/Differentials-02.pg index 508b85f362..cca32ab510 100644 --- a/Contrib/Hope/Calc1/03-11-Differentials/Differentials-02.pg +++ b/Contrib/Hope/Calc1/03-11-Differentials/Differentials-02.pg @@ -24,7 +24,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", "PGcourse.pl" ); @@ -59,9 +59,9 @@ Your answer will be in terms of x, y, and dx. Enter \( dx \) as ${BTT}dx${ETT}. $BR $BR -\( dy \) = +\( dy \) = \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; @@ -71,7 +71,7 @@ Context()->normalStrings; $showPartialCorrectAnswers = 1; -ANS( $answer->cmp() -> withPostFilter(AnswerHints( +ANS( $answer->cmp() -> withPostFilter(AnswerHints( $wrong => "Don't forget dx", )) ); diff --git a/Contrib/Hope/Calc1/03-11-Differentials/Differentials-03.pg b/Contrib/Hope/Calc1/03-11-Differentials/Differentials-03.pg index 954b9f3035..60f957010d 100644 --- a/Contrib/Hope/Calc1/03-11-Differentials/Differentials-03.pg +++ b/Contrib/Hope/Calc1/03-11-Differentials/Differentials-03.pg @@ -24,7 +24,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", "PGcourse.pl" ); @@ -58,9 +58,9 @@ Your answer will be in terms of x and dx. Enter \( dx \) as ${BTT}dx${ETT}. $BR $BR -\( dy \) = +\( dy \) = \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; @@ -70,7 +70,7 @@ Context()->normalStrings; $showPartialCorrectAnswers = 1; -ANS( $answer->cmp() -> withPostFilter(AnswerHints( +ANS( $answer->cmp() -> withPostFilter(AnswerHints( $wrong => "Don't forget dx", )) ); diff --git a/Contrib/Hope/Calc1/03-11-Differentials/Differentials-05.pg b/Contrib/Hope/Calc1/03-11-Differentials/Differentials-05.pg index 21a118d65a..804c5be6a6 100644 --- a/Contrib/Hope/Calc1/03-11-Differentials/Differentials-05.pg +++ b/Contrib/Hope/Calc1/03-11-Differentials/Differentials-05.pg @@ -24,7 +24,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", "PGcourse.pl" ); @@ -55,28 +55,28 @@ The volume of a sphere of radius \( r \) is \( \displaystyle V = \frac{4}{3} \pi $BR $BR (a) Write a differential formula that estimates the -change in volume of a sphere when the radius changes from \( r_0 \) +change in volume of a sphere when the radius changes from \( r_0 \) to \( r_0 + dr \). Enter \( r_0 \) as ${BTT}r0${ETT} and \( dr \) as ${BTT}dr${ETT}. $BR -\( dV \) = +\( dV \) = \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR (b) Write a differential formula that estimates the change -in volume of a sphere when the radius changes from +in volume of a sphere when the radius changes from \( $r0 \) to \( $r0 + dr \). $BR -\( dV \) = +\( dV \) = \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR (c) Use a differential to estimate the change in volume of a melting spherical snowball when the radius changes from \( $r0 \ \mathrm{cm} \) to \( $r1 \ \mathrm{cm} \). $BR -\( dV \) = +\( dV \) = \{ ans_rule(30) \} \( \mathrm{cm^3} \) END_TEXT diff --git a/Contrib/Hope/Calc2/APEX_09_05_Polar_area/Q_19.pg b/Contrib/Hope/Calc2/APEX_09_05_Polar_area/Q_19.pg index 53268c27e4..8188f9ca28 100644 --- a/Contrib/Hope/Calc2/APEX_09_05_Polar_area/Q_19.pg +++ b/Contrib/Hope/Calc2/APEX_09_05_Polar_area/Q_19.pg @@ -15,13 +15,13 @@ ########################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PGgraphmacros.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "PGML.pl", "PGcourse.pl" @@ -62,7 +62,7 @@ $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); # If the polar curve is r = f(t) = $r0 cos($omega*t), then @@ -84,11 +84,11 @@ $gr->fillRegion([0.5,0.1,'lightgreen']); $column1 = PGML::Format(< 0, separation => 30, valign => "TOP")); +TEXT(ColumnTable($column1, $column2, indent => 0, separation => 30, valign => "TOP")); COMMENT('Uses PGML.'); diff --git a/Contrib/Hope/Calc2/APEX_09_05_Polar_area/Q_20.pg b/Contrib/Hope/Calc2/APEX_09_05_Polar_area/Q_20.pg index e6d20a1178..e4e972de90 100644 --- a/Contrib/Hope/Calc2/APEX_09_05_Polar_area/Q_20.pg +++ b/Contrib/Hope/Calc2/APEX_09_05_Polar_area/Q_20.pg @@ -15,13 +15,13 @@ ########################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PGgraphmacros.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "PGML.pl", "PGcourse.pl" @@ -56,7 +56,7 @@ $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); # If the polar curve is r = f(t) = $r0 cos($omega*t), then @@ -78,11 +78,11 @@ $gr->fillRegion([0.5,0.1,'lightred']); $column1 = PGML::Format(< 0, separation => 30, valign => "TOP")); +TEXT(ColumnTable($column1, $column2, indent => 0, separation => 30, valign => "TOP")); COMMENT('Uses PGML.'); diff --git a/Contrib/Hope/Calc2/APEX_09_05_Polar_area/Q_24.pg b/Contrib/Hope/Calc2/APEX_09_05_Polar_area/Q_24.pg index ce39c76760..74d68c09b9 100644 --- a/Contrib/Hope/Calc2/APEX_09_05_Polar_area/Q_24.pg +++ b/Contrib/Hope/Calc2/APEX_09_05_Polar_area/Q_24.pg @@ -15,13 +15,13 @@ ########################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PGgraphmacros.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "PGML.pl", "PGcourse.pl" @@ -60,7 +60,7 @@ $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); @@ -95,10 +95,10 @@ $column1 = PGML::Format(< 0, separation => 10, valign => "TOP")); +TEXT(ColumnTable($column1, $column2, indent => 0, separation => 10, valign => "TOP")); ############################ diff --git a/Contrib/Hope/Calc2/APEX_09_05_Polar_area/Q_27.pg b/Contrib/Hope/Calc2/APEX_09_05_Polar_area/Q_27.pg index 6aff38c449..760cc52b30 100644 --- a/Contrib/Hope/Calc2/APEX_09_05_Polar_area/Q_27.pg +++ b/Contrib/Hope/Calc2/APEX_09_05_Polar_area/Q_27.pg @@ -15,13 +15,13 @@ ########################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PGgraphmacros.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "PGML.pl", "PGcourse.pl" @@ -60,7 +60,7 @@ $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); @@ -95,7 +95,7 @@ $column1 = PGML::Format(< 0, separation => 10, valign => "TOP")); +TEXT(ColumnTable($column1, $column2, indent => 0, separation => 10, valign => "TOP")); ############################ diff --git a/Contrib/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-01.pg b/Contrib/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-01.pg index c60921b97d..642310cf42 100644 --- a/Contrib/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-01.pg +++ b/Contrib/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-01.pg @@ -20,7 +20,7 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", @@ -30,7 +30,7 @@ loadMacros( "contextLimitedVector.pl", "PGessaymacros.pl", "unionTables.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -127,7 +127,7 @@ BEGIN_TEXT ColumnTable( "Are the vectors \( \overrightarrow{AB} \) and \( \overrightarrow{CD} \) in the figure -the same vector? Explain +the same vector? Explain your answer using complete sentences with correct grammar, spelling, and punctuation. $BR diff --git a/Contrib/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-02.pg b/Contrib/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-02.pg index 6223b53023..f1a5c3777e 100644 --- a/Contrib/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-02.pg +++ b/Contrib/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-02.pg @@ -20,7 +20,7 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", @@ -29,7 +29,7 @@ loadMacros( "PGgraphmacros.pl", "contextLimitedVector.pl", "unionTables.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -114,7 +114,7 @@ $BR $BR \( \overrightarrow{AB} = \) ". ans_rule(20).$SPACE. -AnswerFormatHelp("vectors") +helpLink("vectors") , $BCENTER. image(insertGraph($gr), width=>$pixels, height=>$pixels, tex_size=>700 ). diff --git a/Contrib/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-06/Vectors-06.pg b/Contrib/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-06/Vectors-06.pg index 83adb289df..f1ee28cfd5 100644 --- a/Contrib/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-06/Vectors-06.pg +++ b/Contrib/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-06/Vectors-06.pg @@ -20,7 +20,7 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", @@ -28,7 +28,7 @@ loadMacros( "parserVectorUtils.pl", "contextLimitedVector.pl", "unionTables.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -61,13 +61,13 @@ BEGIN_TEXT ColumnTable( "Find the vector \( \overrightarrow{AB} \). Assume that the grids are unit grids, that -both points are on a grid, that point -\( A \) is in a horizontal plane, and that +both points are on a grid, that point +\( A \) is in a horizontal plane, and that point \( B \) is in a vertical plane. $BR -$BR +$BR \( \overrightarrow{AB} = \) ". -ans_rule(20).$SPACE.AnswerFormatHelp("vectors") +ans_rule(20).$SPACE.helpLink("vectors") , $BCENTER. image($file, width=>470, height=>407, tex_size=>900 ). diff --git a/Contrib/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-11.pg b/Contrib/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-11.pg index 0ea59bdc3f..c4808983df 100644 --- a/Contrib/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-11.pg +++ b/Contrib/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-11.pg @@ -20,14 +20,14 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "parserVectorUtils.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -50,7 +50,7 @@ $multians = MultiAnswer($A, $B)->with( my ( $correct, $student, $self ) = @_; my ( $Astu, $Bstu ) = @{$student}; my ( $Acor, $Bcor ) = @{$correct}; - if ( $Astu == Point(0,0) || $Bstu == Point(0,0) ) { + if ( $Astu == Point(0,0) || $Bstu == Point(0,0) ) { return 0; } if ( Vector($Bstu - $Astu) == $AB ) { @@ -72,11 +72,11 @@ in \( \mathbb{R}^2 \) by giving appropriate values for the points \( A \) and \( B \) such that neither \( A \) nor \( B \) is the origin. $BR $BR -\( A = \) \{ $multians->ans_rule(20) \} -\{ AnswerFormatHelp("points") \} +\( A = \) \{ $multians->ans_rule(20) \} +\{ helpLink("points") \} $BR -\( B = \) \{ $multians->ans_rule(20) \} -\{ AnswerFormatHelp("points") \} +\( B = \) \{ $multians->ans_rule(20) \} +\{ helpLink("points") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-13.pg b/Contrib/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-13.pg index 374db0727e..180dbc1d55 100644 --- a/Contrib/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-13.pg +++ b/Contrib/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-13.pg @@ -20,14 +20,14 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "parserVectorUtils.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -50,7 +50,7 @@ $multians = MultiAnswer($A, $B)->with( my ( $correct, $student, $self ) = @_; my ( $Astu, $Bstu ) = @{$student}; my ( $Acor, $Bcor ) = @{$correct}; - if ( $Astu == Point(0,0,0) || $Bstu == Point(0,0,0) ) { + if ( $Astu == Point(0,0,0) || $Bstu == Point(0,0,0) ) { return 0; } if ( Vector($Bstu - $Astu) == $AB ) { @@ -72,11 +72,11 @@ in \( \mathbb{R}^3 \) by giving appropriate values for the points \( A \) and \( B \) such that neither \( A \) nor \( B \) is the origin. $BR $BR -\( A = \) \{ $multians->ans_rule(20) \} -\{ AnswerFormatHelp("points") \} +\( A = \) \{ $multians->ans_rule(20) \} +\{ helpLink("points") \} $BR -\( B = \) \{ $multians->ans_rule(20) \} -\{ AnswerFormatHelp("points") \} +\( B = \) \{ $multians->ans_rule(20) \} +\{ helpLink("points") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-15a.pg b/Contrib/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-15a.pg index 45c7a2db71..17115e1f08 100644 --- a/Contrib/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-15a.pg +++ b/Contrib/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-15a.pg @@ -20,14 +20,14 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "parserVectorUtils.pl", "contextLimitedPoint.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -58,7 +58,7 @@ Suppose \( A = $A \) and \( \overrightarrow{AB} = $AB \). Then $BR $BR \( B = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("points") \} +\{ helpLink("points") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-15b.pg b/Contrib/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-15b.pg index 3d9e4a3b23..6a3ff750c5 100644 --- a/Contrib/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-15b.pg +++ b/Contrib/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-15b.pg @@ -20,14 +20,14 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "parserVectorUtils.pl", "contextLimitedPoint.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -58,7 +58,7 @@ Suppose \( B = $B \) and \( \overrightarrow{AB} = $AB \). Then $BR $BR \( A = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("points") \} +\{ helpLink("points") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-16a.pg b/Contrib/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-16a.pg index e9a26f11b5..e1ac622b0c 100644 --- a/Contrib/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-16a.pg +++ b/Contrib/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-16a.pg @@ -20,14 +20,14 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "parserVectorUtils.pl", "contextLimitedPoint.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -58,7 +58,7 @@ Suppose \( A = $A \) and \( \overrightarrow{AB} = $AB \). Then $BR $BR \( B = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("points") \} +\{ helpLink("points") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-16b.pg b/Contrib/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-16b.pg index b18a2f9eb3..c39cb0b8ea 100644 --- a/Contrib/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-16b.pg +++ b/Contrib/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-16b.pg @@ -20,14 +20,14 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "parserVectorUtils.pl", "contextLimitedPoint.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -58,7 +58,7 @@ Suppose \( B = $B \) and \( \overrightarrow{AB} = $AB \). Then $BR $BR \( A = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("points") \} +\{ helpLink("points") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-17a.pg b/Contrib/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-17a.pg index 99783a7440..6aa60d072b 100644 --- a/Contrib/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-17a.pg +++ b/Contrib/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-17a.pg @@ -20,14 +20,14 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "parserVectorUtils.pl", "contextLimitedVector.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -54,12 +54,12 @@ $AB = Vector("<$Bx - $Ax,$By - $Ay>")->reduce; Context()->texStrings; BEGIN_TEXT -Find the vector in \( \mathbb{R}^2 \) from point +Find the vector in \( \mathbb{R}^2 \) from point \( A = $A \) to \( B = $B \). $BR $BR \( \overrightarrow{AB} = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("vectors") \} +\{ helpLink("vectors") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-17b.pg b/Contrib/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-17b.pg index b0702214bd..c42696e3e4 100644 --- a/Contrib/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-17b.pg +++ b/Contrib/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-17b.pg @@ -20,13 +20,13 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "parserVectorUtils.pl", - "AnswerFormatHelp.pl", + "contextLimitedVector.pl", "PGcourse.pl" ); @@ -51,12 +51,12 @@ $AB = Vector(""); Context()->texStrings; BEGIN_TEXT -Find the vector in \( \mathbb{R}^2 \) from point +Find the vector in \( \mathbb{R}^2 \) from point \( A = $A \) to \( B = $B \). $BR $BR \( \overrightarrow{AB} = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("vectors") \} +\{ helpLink("vectors") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-18a.pg b/Contrib/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-18a.pg index a3b5b7d6b5..dd85c0c652 100644 --- a/Contrib/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-18a.pg +++ b/Contrib/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-18a.pg @@ -20,14 +20,14 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "parserVectorUtils.pl", "contextLimitedVector.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -54,12 +54,12 @@ $AB = Vector($Bx - $Ax, $By - $Ay, $Bz - $Az)->reduce; Context()->texStrings; BEGIN_TEXT -Find the vector in \( \mathbb{R}^3 \) from point +Find the vector in \( \mathbb{R}^3 \) from point \( A = $A \) to \( B = $B \). $BR $BR \( \overrightarrow{AB} = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("vectors") \} +\{ helpLink("vectors") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-18b.pg b/Contrib/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-18b.pg index c82123303f..1880c67c30 100644 --- a/Contrib/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-18b.pg +++ b/Contrib/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-18b.pg @@ -20,14 +20,14 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "parserVectorUtils.pl", "contextLimitedVector.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -51,12 +51,12 @@ $AB = Vector("<$Bx - x, $By - y, $Bz - z>")->reduce; Context()->texStrings; BEGIN_TEXT -Find the vector in \( \mathbb{R}^3 \) from point +Find the vector in \( \mathbb{R}^3 \) from point \( A = $A \) to \( B = $B \). $BR $BR \( \overrightarrow{AB} = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("vectors") \} +\{ helpLink("vectors") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-20.pg b/Contrib/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-20.pg index a3bbaa78e4..1cc25ddc2e 100644 --- a/Contrib/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-20.pg +++ b/Contrib/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-20.pg @@ -20,14 +20,14 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "parserVectorUtils.pl", "contextLimitedVector.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -52,12 +52,12 @@ $AB = Vector($Bx - $Ax, $By - $Ay, $Bz - $Az)->reduce; Context()->texStrings; BEGIN_TEXT -Find the vector in \( \mathbb{R}^3 \) from point +Find the vector in \( \mathbb{R}^3 \) from point \( A = $A \) to \( B = $B \). $BR $BR \( \overrightarrow{AB} = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("vectors") \} +\{ helpLink("vectors") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/Hope/Multi1/01-02-Vector-operations/Graphical_vector_ops_02.pg b/Contrib/Hope/Multi1/01-02-Vector-operations/Graphical_vector_ops_02.pg index cbc0195ac2..2360187bea 100644 --- a/Contrib/Hope/Multi1/01-02-Vector-operations/Graphical_vector_ops_02.pg +++ b/Contrib/Hope/Multi1/01-02-Vector-operations/Graphical_vector_ops_02.pg @@ -18,7 +18,7 @@ loadMacros( "MathObjects.pl", "PGgraphmacros.pl", "contextLimitedVector.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "parserPopUp.pl", "scaffold.pl", @@ -82,25 +82,25 @@ BEGIN_PGML a. Find the coordinate vector for each vector in the figure. - + [`\vec{a}=`] [______________]{$a} [@ AnswerFormatHelp("vectors") @]* - + [`\vec{b}=`] [______________]{$b} [@ AnswerFormatHelp("vectors") @]* - + [`\vec{c}=`] [______________]{$c} [@ AnswerFormatHelp("vectors") @]* + + [`\vec{a}=`] [______________]{$a} [@ helpLink("vectors") @]* + + [`\vec{b}=`] [______________]{$b} [@ helpLink("vectors") @]* + + [`\vec{c}=`] [______________]{$c} [@ helpLink("vectors") @]* b. Using geometric vector addition, draw the vector sum [` \vec{a} + \vec{b} + \vec{c} `]. Then, verify your answer using vector addition operations. - + [` \vec{a} + \vec{b} + \vec{c} = `] [___________________]{"<$Ax+$Bx+$Cx, $Ay+$By+$Cy>"} [@ AnswerFormatHelp("vectors") @]* + + [` \vec{a} + \vec{b} + \vec{c} = `] [___________________]{"<$Ax+$Bx+$Cx, $Ay+$By+$Cy>"} [@ helpLink("vectors") @]* c. Using geometric vector addition, draw the vector sum [` 2\vec{a} + 3\vec{b} - \vec{c} `]. Then, verify your answer using vector addition and scaling operations. - + [` 2\vec{a} + 3\vec{b} - \vec{c} = `] [___________________]{"<2*$Ax+3*$Bx-$Cx, 2*$Ay+3*$By-$Cy>"} [@ AnswerFormatHelp("vectors") @]* + + [` 2\vec{a} + 3\vec{b} - \vec{c} = `] [___________________]{"<2*$Ax+3*$Bx-$Cx, 2*$Ay+3*$By-$Cy>"} [@ helpLink("vectors") @]* d. Find the vector sum [` x_1 \vec{a} + x_2 \vec{b} + x_3 \vec{c} `] when [`x_1 = [$x1] `], [`x_2 = [$x2] `] and [`x_3 = [$x3] `]. You should be able to do this both geometrically and algebraically. - + [` x_1 \vec{a} + x_2\vec{b} + x_3 \vec{c} = `] [___________________]{"<$x1*$Ax+$x2*$Bx+$x3*$Cx, $x1*$Ay+$x2*$By+$x3*$Cy>"} [@ AnswerFormatHelp("vectors") @]* + + [` x_1 \vec{a} + x_2\vec{b} + x_3 \vec{c} = `] [___________________]{"<$x1*$Ax+$x2*$Bx+$x3*$Cx, $x1*$Ay+$x2*$By+$x3*$Cy>"} [@ helpLink("vectors") @]* e. Find a vector [` \vec{d} `] such that [` \vec{a} + \vec{c} + \vec{d} = \vec{0} `]. You should be able to do this both geometrically and algebraically. - + [` \vec{d} = `] [___________________]{"<-($Ax+$Cx), -($Ay+$Cy)>"} [@ AnswerFormatHelp("vectors") @]* + + [` \vec{d} = `] [___________________]{"<-($Ax+$Cx), -($Ay+$Cy)>"} [@ helpLink("vectors") @]* END_PGML diff --git a/Contrib/Hope/Multi1/01-02-Vector-operations/Graphical_vector_ops_03.pg b/Contrib/Hope/Multi1/01-02-Vector-operations/Graphical_vector_ops_03.pg index a12c1e4cef..2f7f479c5c 100644 --- a/Contrib/Hope/Multi1/01-02-Vector-operations/Graphical_vector_ops_03.pg +++ b/Contrib/Hope/Multi1/01-02-Vector-operations/Graphical_vector_ops_03.pg @@ -17,7 +17,7 @@ loadMacros( "MathObjects.pl", "PGgraphmacros.pl", "contextLimitedVector.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "parserPopUp.pl", "scaffold.pl", @@ -103,19 +103,19 @@ BEGIN_PGML a. Using geometric vector addition, draw the vector sum [` \vec{a} + \vec{b} + \vec{c} `]. Then, verify your answer using vector addition operations. - + [` \vec{a} + \vec{b} + \vec{c} = `] [___________________]{"<$Ax+$Bx+$Cx, $Ay+$By+$Cy>"} [@ AnswerFormatHelp("vectors") @]* + + [` \vec{a} + \vec{b} + \vec{c} = `] [___________________]{"<$Ax+$Bx+$Cx, $Ay+$By+$Cy>"} [@ helpLink("vectors") @]* b. Using geometric vector addition, what general direction do you expect [` \vec{a} + \vec{b} `] points toward? [_]{$popup[0]} Draw the vector sum [` \vec{a} + \vec{b} `] and then verify your answer using vector addition operations. - + [` \vec{a} + \vec{b} = `] [___________________]{"<$Ax+$Bx, $Ay+$By>"} [@ AnswerFormatHelp("vectors") @]* + + [` \vec{a} + \vec{b} = `] [___________________]{"<$Ax+$Bx, $Ay+$By>"} [@ helpLink("vectors") @]* c. Using geometric vector addition, what general direction do you expect [` \vec{c} - \vec{a} - \vec{b} `] points toward? [_]{$popup[1]} Draw the vector sum [` \vec{c} - \vec{a} - \vec{b} `] and then verify your answer using vector addition operations. - + [` \vec{c} - \vec{a} - \vec{b} = `] [___________________]{"<$Cx-$Ax-$Bx, $Cy-$Ay-$By>"} [@ AnswerFormatHelp("vectors") @]* + + [` \vec{c} - \vec{a} - \vec{b} = `] [___________________]{"<$Cx-$Ax-$Bx, $Cy-$Ay-$By>"} [@ helpLink("vectors") @]* d. Using geometric vector addition, draw the vector sum [` 2\vec{a} - 3\vec{b} + \vec{c} `]. Then, verify your answer using vector addition operations. - + [` 2\vec{a} - 3\vec{b} + \vec{c} = `] [___________________]{"<2*$Ax-3*$Bx+$Cx, 2*$Ay-3*$By+$Cy>"} [@ AnswerFormatHelp("vectors") @]* + + [` 2\vec{a} - 3\vec{b} + \vec{c} = `] [___________________]{"<2*$Ax-3*$Bx+$Cx, 2*$Ay-3*$By+$Cy>"} [@ helpLink("vectors") @]* END_PGML Section::End(); @@ -126,19 +126,19 @@ BEGIN_PGML a. Using geometric vector addition, draw the vector sum [` \vec{a} + \vec{b} + \vec{c} `]. Then, verify your answer using vector addition operations. - + [` \vec{a} + \vec{b} + \vec{c} = `] [___________________]{"<$Ax+$Bx+$Cx, $Ay+$By+$Cy>"} [@ AnswerFormatHelp("vectors") @]* + + [` \vec{a} + \vec{b} + \vec{c} = `] [___________________]{"<$Ax+$Bx+$Cx, $Ay+$By+$Cy>"} [@ helpLink("vectors") @]* b. Using geometric vector addition, what general direction do you expect [` \vec{a} + \vec{b} `] points toward? [_]{$popup[2]} Draw the vector sum [` \vec{a} + \vec{b} `] and then verify your answer using vector addition operations. - + [` \vec{a} + \vec{b} = `] [___________________]{"<$Ax+$Bx, $Ay+$By>"} [@ AnswerFormatHelp("vectors") @]* + + [` \vec{a} + \vec{b} = `] [___________________]{"<$Ax+$Bx, $Ay+$By>"} [@ helpLink("vectors") @]* c. Using geometric vector addition, what general direction do you expect [` \vec{c} - \vec{a} - \vec{b} `] points toward? [_]{$popup[3]} Draw the vector sum [` \vec{c} - \vec{a} - \vec{b} `] and then verify your answer using vector addition operations. - + [` \vec{c} - \vec{a} - \vec{b} = `] [___________________]{"<$Cx-$Ax-$Bx, $Cy-$Ay-$By>"} [@ AnswerFormatHelp("vectors") @]* + + [` \vec{c} - \vec{a} - \vec{b} = `] [___________________]{"<$Cx-$Ax-$Bx, $Cy-$Ay-$By>"} [@ helpLink("vectors") @]* d. Using geometric vector addition, draw the vector sum [` 2\vec{a} - 3\vec{b} + \vec{c} `]. Then, verify your answer using vector addition operations. - + [` 2\vec{a} - 3\vec{b} + \vec{c} = `] [___________________]{"<2*$Ax-3*$Bx+$Cx, 2*$Ay-3*$By+$Cy>"} [@ AnswerFormatHelp("vectors") @]* + + [` 2\vec{a} - 3\vec{b} + \vec{c} = `] [___________________]{"<2*$Ax-3*$Bx+$Cx, 2*$Ay-3*$By+$Cy>"} [@ helpLink("vectors") @]* END_PGML Section::End(); diff --git a/Contrib/Hope/Multi1/01-02-Vector-operations/Graphical_vector_ops_04.pg b/Contrib/Hope/Multi1/01-02-Vector-operations/Graphical_vector_ops_04.pg index 63358b2176..061c533f91 100644 --- a/Contrib/Hope/Multi1/01-02-Vector-operations/Graphical_vector_ops_04.pg +++ b/Contrib/Hope/Multi1/01-02-Vector-operations/Graphical_vector_ops_04.pg @@ -18,7 +18,7 @@ loadMacros( "MathObjects.pl", "PGgraphmacros.pl", "contextLimitedVector.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "parserPopUp.pl", "scaffold.pl", diff --git a/Contrib/Hope/Multi1/01-02-Vector-operations/Graphical_vector_ops_05.pg b/Contrib/Hope/Multi1/01-02-Vector-operations/Graphical_vector_ops_05.pg index 6f619d149a..fe4942bb20 100644 --- a/Contrib/Hope/Multi1/01-02-Vector-operations/Graphical_vector_ops_05.pg +++ b/Contrib/Hope/Multi1/01-02-Vector-operations/Graphical_vector_ops_05.pg @@ -18,7 +18,7 @@ loadMacros( "MathObjects.pl", "PGgraphmacros.pl", "contextLimitedVector.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "scaffold.pl", "PGcourse.pl" @@ -145,7 +145,7 @@ The figure below shows five named points [`A`], [`B`], [`C`], [`D`], and [`O`] ( >> [@ image(insertGraph($gr[1]), width=>$pixels, height=>$pixels, tex_size=>900) @]* << -Find the following coordinate vectors. [@ AnswerFormatHelp("vectors") @]* +Find the following coordinate vectors. [@ helpLink("vectors") @]* + [`\overrightarrow{A} = `] [______]{Vector("<$ax, $ay>")} diff --git a/Contrib/Hope/Multi1/01-02-Vector-operations/Graphical_vector_ops_06.pg b/Contrib/Hope/Multi1/01-02-Vector-operations/Graphical_vector_ops_06.pg index 359ee62772..e3d2a0082d 100644 --- a/Contrib/Hope/Multi1/01-02-Vector-operations/Graphical_vector_ops_06.pg +++ b/Contrib/Hope/Multi1/01-02-Vector-operations/Graphical_vector_ops_06.pg @@ -18,7 +18,7 @@ loadMacros( "MathObjects.pl", "PGgraphmacros.pl", "contextLimitedVector.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGML.pl", "scaffold.pl", @@ -66,10 +66,10 @@ foreach my $i (0) { # construct points A, B ($ax,$ay) = (non_zero_random(-5,5,1), random(2,5,1)); -do { - ($bx,$by) = (non_zero_random(-5,5,1), random(-5,-2,1)); +do { + ($bx,$by) = (non_zero_random(-5,5,1), random(-5,-2,1)); } until ( - $bx != $ax && + $bx != $ax && $ax * $by != $bx * $ay && # A, B, and origin not collinear abs(($ax - $bx) % 2) == 0 && abs(($ay - $by) % 2) == 1 ); @@ -124,7 +124,7 @@ $multians4 = MultiAnswer(Vector("<$ax - $bx, 0>"), Vector("<0, $ay - $by>"))->wi my ( $correct, $student, $ansHash ) = @_; my ( $a, $b ) = @{$student}; return ( - (Vector("<$ax - $bx, 0>") == $a && Vector("<0, $ay - $by>") == $b) || + (Vector("<$ax - $bx, 0>") == $a && Vector("<0, $ay - $by>") == $b) || (Vector("<$ax - $bx, 0>") == $b && Vector("<0, $ay - $by>") == $a) ); } diff --git a/Contrib/Hope/Multi1/01-02-Vector-operations/Graphical_vector_ops_07.pg b/Contrib/Hope/Multi1/01-02-Vector-operations/Graphical_vector_ops_07.pg index 1c9347b2f6..4127759c3d 100644 --- a/Contrib/Hope/Multi1/01-02-Vector-operations/Graphical_vector_ops_07.pg +++ b/Contrib/Hope/Multi1/01-02-Vector-operations/Graphical_vector_ops_07.pg @@ -18,7 +18,7 @@ loadMacros( "MathObjects.pl", "PGgraphmacros.pl", "contextLimitedVector.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGML.pl", "scaffold.pl", @@ -93,16 +93,16 @@ do { ($dx,$dy) = (random(1,5,1), random(-5,-1,1)); } until (($dx + abs($dy)) < $ foreach my $i (0) { # plot points A, B, C, D - $gr[$i]->stamps(closed_circle($Ax, $Ay, 'blue')); + $gr[$i]->stamps(closed_circle($Ax, $Ay, 'blue')); $gr[$i]->lb(new Label($Ax, $Ay+0.25, 'A', 'blue', 'center', 'bottom')); - $gr[$i]->stamps(closed_circle($Bx, $By, 'blue')); + $gr[$i]->stamps(closed_circle($Bx, $By, 'blue')); $gr[$i]->lb(new Label($Bx, $By+0.25, 'B', 'blue', 'center', 'bottom')); - $gr[$i]->stamps(closed_circle($Cx, $Cy, 'blue')); + $gr[$i]->stamps(closed_circle($Cx, $Cy, 'blue')); $gr[$i]->lb(new Label($Cx, $Cy+0.25, 'C', 'blue', 'center', 'bottom')); - $gr[$i]->stamps(closed_circle($Dx, $Dy, 'blue')); + $gr[$i]->stamps(closed_circle($Dx, $Dy, 'blue')); $gr[$i]->lb(new Label($Dx, $Dy+0.25, 'D', 'blue', 'center', 'bottom')); } diff --git a/Contrib/Hope/Multi1/01-02-Vector-operations/Graphical_vector_ops_08.pg b/Contrib/Hope/Multi1/01-02-Vector-operations/Graphical_vector_ops_08.pg index a225fe3f1e..b7e68ad8e6 100644 --- a/Contrib/Hope/Multi1/01-02-Vector-operations/Graphical_vector_ops_08.pg +++ b/Contrib/Hope/Multi1/01-02-Vector-operations/Graphical_vector_ops_08.pg @@ -18,7 +18,7 @@ loadMacros( "MathObjects.pl", "PGgraphmacros.pl", "contextLimitedVector.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGML.pl", "scaffold.pl", @@ -93,16 +93,16 @@ foreach my $i (0) { foreach my $i (0) { # plot points A, B, C, D - $gr[$i]->stamps(closed_circle($Ax, $Ay, 'blue')); + $gr[$i]->stamps(closed_circle($Ax, $Ay, 'blue')); $gr[$i]->lb(new Label($Ax, $Ay+0.25, 'A', 'blue', 'center', 'bottom')); - $gr[$i]->stamps(closed_circle($Bx, $By, 'blue')); + $gr[$i]->stamps(closed_circle($Bx, $By, 'blue')); $gr[$i]->lb(new Label($Bx, $By+0.25, 'B', 'blue', 'center', 'bottom')); - $gr[$i]->stamps(closed_circle($Cx, $Cy, 'blue')); + $gr[$i]->stamps(closed_circle($Cx, $Cy, 'blue')); $gr[$i]->lb(new Label($Cx, $Cy+0.25, 'C', 'blue', 'center', 'bottom')); - $gr[$i]->stamps(closed_circle($Dx, $Dy, 'blue')); + $gr[$i]->stamps(closed_circle($Dx, $Dy, 'blue')); $gr[$i]->lb(new Label($Dx, $Dy+0.25, 'D', 'blue', 'center', 'bottom')); } diff --git a/Contrib/Hope/Multi1/01-02-Vector-operations/Vectors-10.pg b/Contrib/Hope/Multi1/01-02-Vector-operations/Vectors-10.pg index d7a54491cd..729ccb673e 100644 --- a/Contrib/Hope/Multi1/01-02-Vector-operations/Vectors-10.pg +++ b/Contrib/Hope/Multi1/01-02-Vector-operations/Vectors-10.pg @@ -20,13 +20,13 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "unionLists.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -80,31 +80,31 @@ $BR $ITEM Find the distance between \( A \) and \( B \). $BR \{ ans_rule(40) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $ITEMSEP $ITEM Find the distance between \( C \) and \( D \). $BR \{ ans_rule(40) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $ITEMSEP $ITEM Find the distance between the point \( (x,y,z) \) and \( C \). $BR \{ ans_rule(40) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $ITEMSEP $ITEM Find the length of the vector \( \overrightarrow{CD} \). $BR \{ ans_rule(40) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $ITEMSEP $ITEM Find the length of the vector \( $k \overrightarrow{BA} \). $BR \{ ans_rule(40) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} \{ EndList("OL") \} END_TEXT diff --git a/Contrib/Hope/Multi1/01-02-Vector-operations/Vectors-14.pg b/Contrib/Hope/Multi1/01-02-Vector-operations/Vectors-14.pg index b9fce0c645..fbf07fc1b5 100644 --- a/Contrib/Hope/Multi1/01-02-Vector-operations/Vectors-14.pg +++ b/Contrib/Hope/Multi1/01-02-Vector-operations/Vectors-14.pg @@ -20,7 +20,7 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", @@ -28,7 +28,7 @@ loadMacros( "parserVectorUtils.pl", "contextLimitedVector.pl", "unionLists.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -57,13 +57,13 @@ $answer = List( norm($AB), norm($AC), norm($BC) ); Context()->texStrings; BEGIN_TEXT -Find the lengths of the three sides of the triangle \( ABC \) +Find the lengths of the three sides of the triangle \( ABC \) in \( \mathbb{R}^3 \) if \( A = $A \), \( B = $B \) and \( C = $C \). Enter your answers as a comma separated list. $BR $BR \{ ans_rule(50) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/Hope/Multi1/01-02-Vector-operations/Vectors-24.pg b/Contrib/Hope/Multi1/01-02-Vector-operations/Vectors-24.pg index d4cde0391d..68e774f1fd 100644 --- a/Contrib/Hope/Multi1/01-02-Vector-operations/Vectors-24.pg +++ b/Contrib/Hope/Multi1/01-02-Vector-operations/Vectors-24.pg @@ -20,7 +20,7 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", @@ -28,7 +28,7 @@ loadMacros( "parserVectorUtils.pl", "contextLimitedVector.pl", "unionLists.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -79,34 +79,34 @@ $BR $ITEM Find the vector \( \overrightarrow{AB} \) in \( \mathbb{R}^4 \). $BR \{ ans_rule(40) \} -\{ AnswerFormatHelp("vectors") \} +\{ helpLink("vectors") \} $ITEMSEP -$ITEM Find a vector in the direction of \( \overrightarrow{AB} \) +$ITEM Find a vector in the direction of \( \overrightarrow{AB} \) that is \( $k \) times as long as \( \overrightarrow{AB} \). $BR \{ ans_rule(40) \} -\{ AnswerFormatHelp("vectors") \} +\{ helpLink("vectors") \} $ITEMSEP -$ITEM Find a vector in the direction opposite \( \overrightarrow{AB} \) +$ITEM Find a vector in the direction opposite \( \overrightarrow{AB} \) that is \( $k \) times as long as \( \overrightarrow{AB} \). $BR \{ ans_rule(40) \} -\{ AnswerFormatHelp("vectors") \} +\{ helpLink("vectors") \} $ITEMSEP $ITEM Find a unit vector in the direction of \( \overrightarrow{AB} \). $BR \{ ans_rule(40) \} -\{ AnswerFormatHelp("vectors") \} +\{ helpLink("vectors") \} $ITEMSEP -$ITEM Find a vector in the direction of \( \overrightarrow{AB} \) +$ITEM Find a vector in the direction of \( \overrightarrow{AB} \) that has length \( $k \). $BR \{ ans_rule(40) \} -\{ AnswerFormatHelp("vectors") \} +\{ helpLink("vectors") \} \{ EndList("OL") \} END_TEXT diff --git a/Contrib/Hope/Multi1/01-02-Vector-operations/Vectors-29a.pg b/Contrib/Hope/Multi1/01-02-Vector-operations/Vectors-29a.pg index e8d7f181d9..1fea6f3d42 100644 --- a/Contrib/Hope/Multi1/01-02-Vector-operations/Vectors-29a.pg +++ b/Contrib/Hope/Multi1/01-02-Vector-operations/Vectors-29a.pg @@ -20,7 +20,7 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", @@ -28,7 +28,7 @@ loadMacros( "parserVectorUtils.pl", "parserImplicitPlane.pl", "unionLists.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -60,16 +60,16 @@ $answer = ImplicitPlane(" $m * x + $n * y = $c"); Context()->texStrings; BEGIN_TEXT -Find a fully reduced equation for the set of all points in \( \mathbb{R}^2 \) +Find a fully reduced equation for the set of all points in \( \mathbb{R}^2 \) (i.e., the \(xy\)-plane) that are equidistant from the points \( A = $A \) and \( B = $B \). -Recall that a point \( P = (x,y) \) is equidistant from \( A \) and \( B \) +Recall that a point \( P = (x,y) \) is equidistant from \( A \) and \( B \) if \( d(P,A) = d(P,B) \). Plot a graph of this set of points and describe this set geometrically. $BR $BR \{ ans_rule(50) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/Hope/Multi1/01-02-Vector-operations/Vectors-29b.pg b/Contrib/Hope/Multi1/01-02-Vector-operations/Vectors-29b.pg index fbea867abf..4221d04f4f 100644 --- a/Contrib/Hope/Multi1/01-02-Vector-operations/Vectors-29b.pg +++ b/Contrib/Hope/Multi1/01-02-Vector-operations/Vectors-29b.pg @@ -20,7 +20,7 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", @@ -28,7 +28,7 @@ loadMacros( "parserVectorUtils.pl", "parserImplicitPlane.pl", "PGessaymacros.pl", - "AnswerFormatHelp.pl", + "contextLimitedPowers.pl", "PGcourse.pl" ); @@ -65,20 +65,20 @@ $answer = ImplicitPlane(" $m * x + $n * y = $c"); Context()->texStrings; BEGIN_TEXT -Find a fully reduced equation for the set of all points in \( \mathbb{R}^2 \) +Find a fully reduced equation for the set of all points in \( \mathbb{R}^2 \) (i.e., the \(xy\)-plane) that are equidistant from the points \( A = $A \) and \( B = $B \). -Recall that a point \( P = (x,y) \) is equidistant from \( A \) and \( B \) +Recall that a point \( P = (x,y) \) is equidistant from \( A \) and \( B \) if \( d(P,A) = d(P,B) \). $BR $BR \{ ans_rule(50) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} $BR $BR On paper, plot a graph of this set of points. In the box below, describe this set of points geometrically. -Explain your answer using complete sentences with +Explain your answer using complete sentences with correct grammar, spelling and punctuation. $BR \{ essay_box(12,60) \} diff --git a/Contrib/Hope/Multi1/01-02-Vector-operations/Vectors-30a.pg b/Contrib/Hope/Multi1/01-02-Vector-operations/Vectors-30a.pg index aef819590f..9c1905b168 100644 --- a/Contrib/Hope/Multi1/01-02-Vector-operations/Vectors-30a.pg +++ b/Contrib/Hope/Multi1/01-02-Vector-operations/Vectors-30a.pg @@ -20,14 +20,14 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "parserVectorUtils.pl", "parserImplicitPlane.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -60,16 +60,16 @@ $answer = ImplicitPlane(" $m * x + $n * y + $p * z = $c"); Context()->texStrings; BEGIN_TEXT -Find a fully reduced equation for the set of all points in \( \mathbb{R}^3 \) +Find a fully reduced equation for the set of all points in \( \mathbb{R}^3 \) (i.e., \(xyz\)-space) that are equidistant from the points \( A = $A \) and \( B = $B \). -Recall that a point \( P = (x,y,z) \) is equidistant from \( A \) and \( B \) +Recall that a point \( P = (x,y,z) \) is equidistant from \( A \) and \( B \) if \( d(P,A) = d(P,B) \). Plot a graph of this set of points and describe this set geometrically. $BR $BR \{ ans_rule(50) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/Hope/Multi1/01-02-Vector-operations/Vectors-30b.pg b/Contrib/Hope/Multi1/01-02-Vector-operations/Vectors-30b.pg index 88efe74f95..296a45f6f0 100644 --- a/Contrib/Hope/Multi1/01-02-Vector-operations/Vectors-30b.pg +++ b/Contrib/Hope/Multi1/01-02-Vector-operations/Vectors-30b.pg @@ -20,7 +20,7 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", @@ -28,7 +28,7 @@ loadMacros( "parserVectorUtils.pl", "parserImplicitPlane.pl", "PGessaymacros.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -61,20 +61,20 @@ $answer = ImplicitPlane(" $m * x + $n * y + $p * z = $c"); Context()->texStrings; BEGIN_TEXT -Find a fully reduced equation for the set of all points in \( \mathbb{R}^3 \) +Find a fully reduced equation for the set of all points in \( \mathbb{R}^3 \) (i.e., \(xyz\)-space) that are equidistant from the points \( A = $A \) and \( B = $B \). -Recall that a point \( P = (x,y,z) \) is equidistant from \( A \) and \( B \) +Recall that a point \( P = (x,y,z) \) is equidistant from \( A \) and \( B \) if \( d(P,A) = d(P,B) \). $BR $BR \{ ans_rule(50) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} $BR $BR On paper, plot a graph of this set of points. In the box below, describe this set of points geometrically. -Explain your answer using complete sentences with +Explain your answer using complete sentences with correct grammar, spelling and punctuation. $BR \{ essay_box(12,60) \} diff --git a/Contrib/Hope/Multi1/01-02-Vector-operations/Vectors-31a.pg b/Contrib/Hope/Multi1/01-02-Vector-operations/Vectors-31a.pg index 0bb80b39de..5a574271bf 100644 --- a/Contrib/Hope/Multi1/01-02-Vector-operations/Vectors-31a.pg +++ b/Contrib/Hope/Multi1/01-02-Vector-operations/Vectors-31a.pg @@ -20,7 +20,7 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", @@ -28,7 +28,7 @@ loadMacros( "parserVectorUtils.pl", "parserImplicitPlane.pl", "unionLists.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -60,18 +60,18 @@ $answer = Formula("( (x - $a)^2 + $bb) / ($b2)"); Context()->texStrings; BEGIN_TEXT -(a) What is the distance from an arbitrary point \( (x,y) \) in \( \mathbb{R}^2 \) +(a) What is the distance from an arbitrary point \( (x,y) \) in \( \mathbb{R}^2 \) to the \( x \)-axis? $BR \{ ans_rule(10) \} $BR $BR -(b) Find a fully simplified equation for the set of all points \( P = (x,y) \) +(b) Find a fully simplified equation for the set of all points \( P = (x,y) \) equidistant from the \( x \)-axis and the point \( $A \). Plot a graph of this set of points and describe this set geometrically. $BR \( y = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/Hope/Multi1/01-02-Vector-operations/Vectors-31b.pg b/Contrib/Hope/Multi1/01-02-Vector-operations/Vectors-31b.pg index d6bf003f67..a8c53a3913 100644 --- a/Contrib/Hope/Multi1/01-02-Vector-operations/Vectors-31b.pg +++ b/Contrib/Hope/Multi1/01-02-Vector-operations/Vectors-31b.pg @@ -20,7 +20,7 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", @@ -28,7 +28,7 @@ loadMacros( "parserVectorUtils.pl", "parserImplicitPlane.pl", "PGessaymacros.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -60,23 +60,23 @@ $answer = Formula("( (x - $a)^2 + $bb) / ($b2)"); Context()->texStrings; BEGIN_TEXT -(a) What is the distance from an arbitrary point \( (x,y) \) in \( \mathbb{R}^2 \) +(a) What is the distance from an arbitrary point \( (x,y) \) in \( \mathbb{R}^2 \) to the \( x \)-axis? $BR \{ ans_rule(10) \} $BR $BR -(b) Find a fully simplified equation for the set of all points \( P = (x,y) \) +(b) Find a fully simplified equation for the set of all points \( P = (x,y) \) equidistant from the \( x \)-axis and the point \( $A \). Plot a graph of this set of points and describe this set geometrically. $BR \( y = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR On paper, plot a graph of this set of points. In the box below, describe this set of points geometrically. -Explain your answer using complete sentences with +Explain your answer using complete sentences with correct grammar, spelling and punctuation. $BR \{ essay_box(12,60) \} diff --git a/Contrib/Hope/Multi1/01-05-Lines-planes/Lines_graphical_01.pg b/Contrib/Hope/Multi1/01-05-Lines-planes/Lines_graphical_01.pg index 4a96297ff2..e37324f1b8 100644 --- a/Contrib/Hope/Multi1/01-05-Lines-planes/Lines_graphical_01.pg +++ b/Contrib/Hope/Multi1/01-05-Lines-planes/Lines_graphical_01.pg @@ -18,7 +18,7 @@ loadMacros( "MathObjects.pl", "PGgraphmacros.pl", "contextLimitedVector.pl", - "AnswerFormatHelp.pl", + "parserPopUp.pl", "parserMultiAnswer.pl", "parserOneOf.pl", @@ -44,7 +44,7 @@ $a21 = random(1,2,1); $a22 = random(2,3,1); # point P = (a11, a12) # direction vector v = (a12, a22) -$P = OneOf(Vector("<$a11, $a21>"),Point("($a11,$a21)")); +$P = OneOf(Vector("<$a11, $a21>"),Point("($a11,$a21)")); $v = OneOf(Vector("<$a12, $a22>"),Point("($a12,$a22)")); foreach my $i (0) { diff --git a/Contrib/Hope/Multi1/01-05-Lines-planes/Planes_graphical_01.pg b/Contrib/Hope/Multi1/01-05-Lines-planes/Planes_graphical_01.pg index 3115445800..65ad6977a9 100644 --- a/Contrib/Hope/Multi1/01-05-Lines-planes/Planes_graphical_01.pg +++ b/Contrib/Hope/Multi1/01-05-Lines-planes/Planes_graphical_01.pg @@ -18,7 +18,7 @@ loadMacros( "MathObjects.pl", #"PGgraphmacros.pl", "contextLimitedVector.pl", -"AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "parserOneOf.pl", "parserPopUp.pl", @@ -68,7 +68,7 @@ sub three_point_checker { # this is a list checker! my $score = 0; # number of correct student answers my @errors = (); # stores error messages my $i, $j; # loop counters - + # # Loop though the student answers ## @@ -113,8 +113,8 @@ sub three_point_checker { # this is a list checker! # Check for collinearity my $v1 = Vector($student->[0] - $student->[1]); my $v2 = Vector($student->[0] - $student->[2]); - if (Vector(0,0,0) == $v1->cross($v2)) { - push(@errors,"Your points are collinear"); + if (Vector(0,0,0) == $v1->cross($v2)) { + push(@errors,"Your points are collinear"); $score=0; } @@ -235,19 +235,19 @@ Section::Begin("Part 2: One plane"); BEGIN_PGML a. A plane is uniquely determined by three distinct, non-collinear points on the plane. Find three distinct, non-collinear points on the plane [`x = [$a]`]. - + Three distinct, non-collinear points on the plane [`x=[$a]`]: [________________________]{$answer2a->cmp(list_checker=>~~&three_point_checker)} [@ AnswerFormatHelp("points") @]* + + Three distinct, non-collinear points on the plane [`x=[$a]`]: [________________________]{$answer2a->cmp(list_checker=>~~&three_point_checker)} [@ helpLink("points") @]* b. A plane is uniquely determined by one point on the plane and two non-parallel vectors that are parallel to the plane. Find one point on the plane [`y = [$b]`] and two non-parallel vectors that are parallel to the plane [`y = [$b]`]. - + One point on the plane [`y=[$b]`]: [________________________]{$answer2b1->cmp(showCoordinateHints => 0, checker=>~~&solution_for_y)} [@ AnswerFormatHelp("points") @]* + + One point on the plane [`y=[$b]`]: [________________________]{$answer2b1->cmp(showCoordinateHints => 0, checker=>~~&solution_for_y)} [@ helpLink("points") @]* - + Two non-parallel vectors that are parallel to the plane [`y=[$b]`]: [________________________]{$answer2b2->cmp(list_checker=>~~&two_vector_checker)} [@ AnswerFormatHelp("vectors") @]* + + Two non-parallel vectors that are parallel to the plane [`y=[$b]`]: [________________________]{$answer2b2->cmp(list_checker=>~~&two_vector_checker)} [@ helpLink("vectors") @]* c. A plane is uniquely determined by one point on the plane and one vector perpendicular to the plane. Find one point on the plane [`z = [$c]`] and one vector perpendicular to the plane [`z = [$c]`]. - + One point on the plane [`z=[$c]`]: [________________________]{$answer2c1->cmp(showCoordinateHints => 0, checker=>~~&solution_for_z)} [@ AnswerFormatHelp("points") @]* + + One point on the plane [`z=[$c]`]: [________________________]{$answer2c1->cmp(showCoordinateHints => 0, checker=>~~&solution_for_z)} [@ helpLink("points") @]* - + One vector perpendicular to the plane [`z=[$c]`]: [________________________]{$answer2c2->cmp(parallel => 1)} [@ AnswerFormatHelp("vectors") @]* + + One vector perpendicular to the plane [`z=[$c]`]: [________________________]{$answer2c2->cmp(parallel => 1)} [@ helpLink("vectors") @]* END_PGML Section::End(); @@ -257,13 +257,13 @@ The intersection of two planes is either a plane, a line, or the empty set. a. A line is uniquely determined by two distinct points on the line. Consider the line of intersection of the planes [`x=[$a]`] and [`y=[$b]`]. Find two distinct points on this line. - + Two distinct points on the line of intersection of the planes [`x=[$a]`] and [`y=[$b]`]: [________________________]{$answer3a->cmp(list_checker=>~~&two_point_checker)} [@ AnswerFormatHelp("points") @]* + + Two distinct points on the line of intersection of the planes [`x=[$a]`] and [`y=[$b]`]: [________________________]{$answer3a->cmp(list_checker=>~~&two_point_checker)} [@ helpLink("points") @]* b. A line is uniquely determined by a point on the line and a vector parallel to the line. Consider the line of intersection the planes [`x=[$a]`] and [`z=[$c]`]. Find one point on this line and one vector parallel to this line. - + One point on the line of intersection of the planes [`x=[$a]`] and [`z=[$c]`]: [________________________]{$answer3b1->cmp(showCoordinateHints => 0, checker=>~~&solution_for_xz)} [@ AnswerFormatHelp("points") @]* + + One point on the line of intersection of the planes [`x=[$a]`] and [`z=[$c]`]: [________________________]{$answer3b1->cmp(showCoordinateHints => 0, checker=>~~&solution_for_xz)} [@ helpLink("points") @]* - + One vector parallel to the line of intersection of the planes [`x=[$a]`] and [`z=[$c]`]: [________________________]{$answer3b2->cmp(parallel => 1)} [@ AnswerFormatHelp("vectors") @]* + + One vector parallel to the line of intersection of the planes [`x=[$a]`] and [`z=[$c]`]: [________________________]{$answer3b2->cmp(parallel => 1)} [@ helpLink("vectors") @]* END_PGML Section::End(); @@ -272,7 +272,7 @@ Section::Begin("Part 4: Three planes"); BEGIN_PGML The intersection of three planes is either a plane, a line, a point, or the empty set. Find the point of intersection the planes [`x=[$a]`], [`y=[$b]`], and [`z=[$c]`]. - + The point of intersection of the planes [`x=[$a]`], [`y=[$b]`], and [`z=[$c]`]: [________________________]{$answer4} [@ AnswerFormatHelp("points") @]* + + The point of intersection of the planes [`x=[$a]`], [`y=[$b]`], and [`z=[$c]`]: [________________________]{$answer4} [@ helpLink("points") @]* END_PGML Section::End(); diff --git a/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_add_01.pg b/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_add_01.pg index bed39e5d61..ef80d535bf 100644 --- a/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_add_01.pg +++ b/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_add_01.pg @@ -22,11 +22,11 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserPopUp.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); $showPartialCorrectAnswers = 0; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Matrix'); Context()->parens->set("[" => {formMatrix => 1}); @@ -49,22 +49,22 @@ $popup = PopUp(['Choose','True','False'],'True'); Context()->texStrings; BEGIN_TEXT -Let +Let \[ A = $A,\] \[ B = $B.\] -If possible, compute the following. +If possible, compute the following. If an answer does not exist, enter ${BBOLD}DNE${EBOLD}. $BR $BR \( A + B = \) -\{ ans_box(3,30).$SPACE.AnswerFormatHelp('matrices') \} +\{ ans_box(3,30).$SPACE.helpLink('matrices') \} $BR $BR \( B + A = \) -\{ ans_box(3,30).$SPACE.AnswerFormatHelp('matrices') \} +\{ ans_box(3,30).$SPACE.helpLink('matrices') \} $BR $BR -\{ $popup->menu \} True or False: \( A + B = B + A \) for every pair of matrices +\{ $popup->menu \} True or False: \( A + B = B + A \) for every pair of matrices \( A \) and \( B \) of the same size. END_TEXT Context()->normalStrings; diff --git a/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_add_02.pg b/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_add_02.pg index ac4ffcee12..59edff3a6b 100644 --- a/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_add_02.pg +++ b/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_add_02.pg @@ -22,11 +22,11 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserPopUp.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); $showPartialCorrectAnswers = 0; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Matrix'); @@ -53,23 +53,23 @@ $popup = PopUp(['Choose','True','False'],'True'); Context()->texStrings; BEGIN_TEXT -Let +Let \[ A = $A,\] \[ B = $B,\] \[ C = $C.\] -If possible, compute the following. +If possible, compute the following. If an answer does not exist, enter ${BBOLD}DNE${EBOLD}. $BR $BR \( (A + B) + C = \) -\{ ans_box(3,30).$SPACE.AnswerFormatHelp('matrices') \} +\{ ans_box(3,30).$SPACE.helpLink('matrices') \} $BR $BR \( A + (B + C) = \) -\{ ans_box(3,30).$SPACE.AnswerFormatHelp('matrices') \} +\{ ans_box(3,30).$SPACE.helpLink('matrices') \} $BR $BR -\{ $popup->menu \} True or False: \( (A + B) + C = A + (B + C) \) for any three matrices +\{ $popup->menu \} True or False: \( (A + B) + C = A + (B + C) \) for any three matrices \( A \), \( B \) and \( C \) of the same size. END_TEXT Context()->normalStrings; diff --git a/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_add_03.pg b/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_add_03.pg index 55def6ff07..0f7333fd01 100644 --- a/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_add_03.pg +++ b/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_add_03.pg @@ -22,11 +22,11 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserPopUp.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); $showPartialCorrectAnswers = 0; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Matrix'); @@ -52,23 +52,23 @@ $popup = PopUp(['Choose','True','False'],'True'); Context()->texStrings; BEGIN_TEXT -Let +Let \[ A = $A,\] \[ B = $B.\] -If possible, compute the following. +If possible, compute the following. If an answer does not exist, enter ${BBOLD}DNE${EBOLD}. $BR $BR \( $k(A + B) = \) -\{ ans_box(3,30).$SPACE.AnswerFormatHelp('matrices') \} +\{ ans_box(3,30).$SPACE.helpLink('matrices') \} $BR $BR \( $k A + $k B = \) -\{ ans_box(3,30).$SPACE.AnswerFormatHelp('matrices') \} +\{ ans_box(3,30).$SPACE.helpLink('matrices') \} $BR $BR -\{ $popup->menu \} True or False: \( r (A + B) = r A + r B \) for any real -number \( r \) and any two matrices +\{ $popup->menu \} True or False: \( r (A + B) = r A + r B \) for any real +number \( r \) and any two matrices \( A \) and \( B \) of the same size. END_TEXT Context()->normalStrings; diff --git a/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_add_04.pg b/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_add_04.pg index 62494caa16..6baba71be8 100644 --- a/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_add_04.pg +++ b/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_add_04.pg @@ -22,11 +22,11 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserPopUp.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); $showPartialCorrectAnswers = 0; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Matrix'); @@ -43,21 +43,21 @@ $popup = PopUp(['Choose','True','False'],'True'); Context()->texStrings; BEGIN_TEXT -Let +Let \[ A = $A.\] -If possible, compute the following. +If possible, compute the following. If an answer does not exist, enter ${BBOLD}DNE${EBOLD}. $BR $BR \( $k1 A + $k2 A = \) -\{ ans_box(3,30).$SPACE.AnswerFormatHelp('matrices') \} +\{ ans_box(3,30).$SPACE.helpLink('matrices') \} $BR $BR \( $k A = \) -\{ ans_box(3,30).$SPACE.AnswerFormatHelp('matrices') \} +\{ ans_box(3,30).$SPACE.helpLink('matrices') \} $BR $BR -\{ $popup->menu \} True or False: \( (r_1 + r_2) A = r_1 A + r_2 A \) for any two real +\{ $popup->menu \} True or False: \( (r_1 + r_2) A = r_1 A + r_2 A \) for any two real numbers \( r_1 \) and \( r_2 \) and any matrix \( A \). END_TEXT Context()->normalStrings; diff --git a/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_add_05.pg b/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_add_05.pg index fdc83517e5..32ccb88284 100644 --- a/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_add_05.pg +++ b/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_add_05.pg @@ -21,11 +21,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); $showPartialCorrectAnswers = 0; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Matrix'); @@ -50,20 +50,20 @@ $C = Matrix([ Context()->texStrings; BEGIN_TEXT -Let +Let \[ A = $A,\] \[ B = $B,\] \[ C = $C.\] -If possible, compute the following. +If possible, compute the following. If an answer does not exist, enter ${BBOLD}DNE${EBOLD}. $BR $BR \( A+B = \) -\{ ans_box(3,30).$SPACE.AnswerFormatHelp('matrices') \} +\{ ans_box(3,30).$SPACE.helpLink('matrices') \} $BR $BR \( A+C = \) -\{ ans_box(3,30).$SPACE.AnswerFormatHelp('matrices') \} +\{ ans_box(3,30).$SPACE.helpLink('matrices') \} END_TEXT Context()->normalStrings; diff --git a/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_add_06.pg b/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_add_06.pg index e8175c5d13..6c7f4c9b31 100644 --- a/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_add_06.pg +++ b/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_add_06.pg @@ -21,11 +21,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); $showPartialCorrectAnswers = 0; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Matrix'); @@ -50,20 +50,20 @@ $k2 = random(2,9,1); Context()->texStrings; BEGIN_TEXT -Let +Let \[ A = $A,\] \[ B = $B,\] \[ C = $C.\] -If possible, compute the following. +If possible, compute the following. If an answer does not exist, enter ${BBOLD}DNE${EBOLD}. $BR $BR \( (-$k1) B = \) -\{ ans_box(3,30).$SPACE.AnswerFormatHelp('matrices') \} +\{ ans_box(3,30).$SPACE.helpLink('matrices') \} $BR $BR \( $k1 A - $k2 C = \) -\{ ans_box(3,30).$SPACE.AnswerFormatHelp('matrices') \} +\{ ans_box(3,30).$SPACE.helpLink('matrices') \} END_TEXT Context()->normalStrings; diff --git a/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_01.pg b/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_01.pg index ecd54f4fca..1f591ba832 100644 --- a/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_01.pg +++ b/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_01.pg @@ -22,11 +22,11 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserPopUp.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); $showPartialCorrectAnswers = 0; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Matrix'); @@ -48,22 +48,22 @@ $popup = PopUp(['Choose','True','False'],'False'); Context()->texStrings; BEGIN_TEXT -Let +Let \[ A = $A,\] \[ B = $B.\] -If possible, compute the following. +If possible, compute the following. If an answer does not exist, enter ${BBOLD}DNE${EBOLD}. $BR $BR \( AB = \) -\{ ans_box(3,30).$SPACE.AnswerFormatHelp('matrices') \} +\{ ans_box(3,30).$SPACE.helpLink('matrices') \} $BR $BR \( BA = \) -\{ ans_box(3,30).$SPACE.AnswerFormatHelp('matrices') \} +\{ ans_box(3,30).$SPACE.helpLink('matrices') \} $BR $BR -\{ $popup->menu \} True or False: \( AB = BA \) for every pair of square matrices +\{ $popup->menu \} True or False: \( AB = BA \) for every pair of square matrices \( A \) and \( B \) of the same size. END_TEXT Context()->normalStrings; diff --git a/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_02.pg b/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_02.pg index 0acc89684e..6044a60c4a 100644 --- a/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_02.pg +++ b/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_02.pg @@ -22,11 +22,11 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserPopUp.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); $showPartialCorrectAnswers = 0; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Matrix'); @@ -46,26 +46,26 @@ $popup2 = PopUp(['Choose','True','False'],'False'); Context()->texStrings; BEGIN_TEXT -Let +Let \[ A = $A,\] \[ B = $B.\] -If possible, compute the following. +If possible, compute the following. If an answer does not exist, enter ${BBOLD}DNE${EBOLD}. $BR $BR \( AB = \) -\{ ans_box(3,30).$SPACE.AnswerFormatHelp('matrices') \} +\{ ans_box(3,30).$SPACE.helpLink('matrices') \} $BR $BR \( BA = \) -\{ ans_box(3,30).$SPACE.AnswerFormatHelp('matrices') \} +\{ ans_box(3,30).$SPACE.helpLink('matrices') \} $BR $BR -\{ $popup1->menu \} True or False: The products \( AB \) and \( BA \) -are both defined only when +\{ $popup1->menu \} True or False: The products \( AB \) and \( BA \) +are both defined only when \( A \) and \( B \) are both square matrices of the same size. $BR -\{ $popup2->menu \} True or False: When both of the matrix products \( AB \) and \( BA \) +\{ $popup2->menu \} True or False: When both of the matrix products \( AB \) and \( BA \) exist, \( AB \) and \( BA \) are matrices of the same size. END_TEXT Context()->normalStrings; diff --git a/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_03.pg b/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_03.pg index eb301b7653..ac13b2178b 100644 --- a/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_03.pg +++ b/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_03.pg @@ -22,11 +22,11 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserPopUp.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); $showPartialCorrectAnswers = 0; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Matrix'); @@ -44,23 +44,23 @@ $popup = PopUp(['Choose','True','False'],'False'); Context()->texStrings; BEGIN_TEXT -Let +Let \[ A = $A,\] \[ B = $B.\] -If possible, compute the following. +If possible, compute the following. If an answer does not exist, enter ${BBOLD}DNE${EBOLD}. $BR $BR \( AB = \) -\{ ans_box(3,30).$SPACE.AnswerFormatHelp('matrices') \} +\{ ans_box(3,30).$SPACE.helpLink('matrices') \} $BR $BR \( BA = \) -\{ ans_box(3,30).$SPACE.AnswerFormatHelp('matrices') \} +\{ ans_box(3,30).$SPACE.helpLink('matrices') \} $BR $BR -\{ $popup->menu \} True or False: For any two matrices -\( A \) and \( B \), both of the products \( AB \) and \( BA \) +\{ $popup->menu \} True or False: For any two matrices +\( A \) and \( B \), both of the products \( AB \) and \( BA \) are always defined. END_TEXT Context()->normalStrings; diff --git a/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_04.pg b/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_04.pg index 7e530f8082..c2ad4473c3 100644 --- a/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_04.pg +++ b/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_04.pg @@ -21,11 +21,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); $showPartialCorrectAnswers = 0; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Matrix'); @@ -47,20 +47,20 @@ $C = Matrix([ Context()->texStrings; BEGIN_TEXT -Let +Let \[ A = $A,\] \[ B = $B,\] \[ C = $C.\] -If possible, compute the following. +If possible, compute the following. If an answer does not exist, enter ${BBOLD}DNE${EBOLD}. $BR $BR \( AC = \) -\{ ans_box(3,30).$SPACE.AnswerFormatHelp('matrices') \} +\{ ans_box(3,30).$SPACE.helpLink('matrices') \} $BR $BR \( BC = \) -\{ ans_box(3,30).$SPACE.AnswerFormatHelp('matrices') \} +\{ ans_box(3,30).$SPACE.helpLink('matrices') \} END_TEXT Context()->normalStrings; diff --git a/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_05.pg b/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_05.pg index 4a8bf298e1..aee0f08099 100644 --- a/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_05.pg +++ b/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_05.pg @@ -21,11 +21,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); $showPartialCorrectAnswers = 0; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Matrix'); @@ -47,20 +47,20 @@ $C = Matrix([ Context()->texStrings; BEGIN_TEXT -Let +Let \[ A = $A,\] \[ B = $B,\] \[ C = $C.\] -If possible, compute the following. +If possible, compute the following. If an answer does not exist, enter ${BBOLD}DNE${EBOLD}. $BR $BR \( CB-A = \) -\{ ans_box(3,30).$SPACE.AnswerFormatHelp('matrices') \} +\{ ans_box(3,30).$SPACE.helpLink('matrices') \} $BR $BR \( CA = \) -\{ ans_box(3,30).$SPACE.AnswerFormatHelp('matrices') \} +\{ ans_box(3,30).$SPACE.helpLink('matrices') \} END_TEXT Context()->normalStrings; diff --git a/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_06.pg b/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_06.pg index a09c0e3ddc..6eb76f5180 100644 --- a/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_06.pg +++ b/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_06.pg @@ -21,11 +21,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); $showPartialCorrectAnswers = 0; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Matrix'); @@ -47,20 +47,20 @@ $C = Matrix([ Context()->texStrings; BEGIN_TEXT -Let +Let \[ A = $A,\] \[ B = $B,\] \[ C = $C.\] -If possible, compute the following. +If possible, compute the following. If an answer does not exist, enter ${BBOLD}DNE${EBOLD}. $BR $BR \( ACB = \) -\{ ans_box(3,30).$SPACE.AnswerFormatHelp('matrices') \} +\{ ans_box(3,30).$SPACE.helpLink('matrices') \} $BR $BR \( ABC = \) -\{ ans_box(3,30).$SPACE.AnswerFormatHelp('matrices') \} +\{ ans_box(3,30).$SPACE.helpLink('matrices') \} END_TEXT Context()->normalStrings; diff --git a/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_07.pg b/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_07.pg index cbae8f9841..c8b4af1823 100644 --- a/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_07.pg +++ b/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_07.pg @@ -21,11 +21,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); $showPartialCorrectAnswers = 0; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Matrix'); @@ -37,19 +37,19 @@ $A = Matrix([ Context()->texStrings; BEGIN_TEXT -Let +Let \[ A = $A.\] -If possible, compute the following. +If possible, compute the following. If an answer does not exist, enter ${BBOLD}DNE${EBOLD}. If an answer is a \( 1 \times 1 \) matrix, enter a number without any brackets. $BR $BR \( A^T A = \) -\{ ans_box(3,30).$SPACE.AnswerFormatHelp('matrices') \} +\{ ans_box(3,30).$SPACE.helpLink('matrices') \} $BR $BR \( A A^T = \) -\{ ans_box(3,30).$SPACE.AnswerFormatHelp('matrices') \} +\{ ans_box(3,30).$SPACE.helpLink('matrices') \} END_TEXT Context()->normalStrings; diff --git a/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_08.pg b/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_08.pg index 6384bd30e5..fade804e70 100644 --- a/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_08.pg +++ b/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_08.pg @@ -21,11 +21,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); $showPartialCorrectAnswers = 0; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Matrix'); @@ -36,18 +36,18 @@ $A = Matrix([ Context()->texStrings; BEGIN_TEXT -Let +Let \[ A = $A.\] -If possible, compute the following. +If possible, compute the following. If an answer does not exist, enter ${BBOLD}DNE${EBOLD}. $BR $BR \( A^2 = \) -\{ ans_box(3,30).$SPACE.AnswerFormatHelp('matrices') \} +\{ ans_box(3,30).$SPACE.helpLink('matrices') \} $BR $BR \( A^3 = \) -\{ ans_box(3,30).$SPACE.AnswerFormatHelp('matrices') \} +\{ ans_box(3,30).$SPACE.helpLink('matrices') \} END_TEXT Context()->normalStrings; diff --git a/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_10.pg b/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_10.pg index d6caefb902..15df3990ae 100644 --- a/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_10.pg +++ b/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_10.pg @@ -22,11 +22,11 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); $showPartialCorrectAnswers = 0; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Matrix'); diff --git a/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_11.pg b/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_11.pg index e6224f8e01..0045e3ec12 100644 --- a/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_11.pg +++ b/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_11.pg @@ -22,17 +22,17 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); $showPartialCorrectAnswers = 0; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Matrix'); $A = Matrix([[2,0],[0,1]]); $B = Matrix([[1,0],[0,2]]); -$I = Matrix([[1,0],[0,1]]); +$I = Matrix([[1,0],[0,1]]); $Z = Matrix([[0,0],[0,0]]); $multians = MultiAnswer($A, $B)->with( diff --git a/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_12.pg b/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_12.pg index c32ff4117e..23178e9a66 100644 --- a/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_12.pg +++ b/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_12.pg @@ -22,11 +22,11 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); $showPartialCorrectAnswers = 0; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Matrix'); diff --git a/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_13.pg b/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_13.pg index 9615bcb064..5d670a0558 100644 --- a/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_13.pg +++ b/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_13.pg @@ -22,11 +22,11 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); $showPartialCorrectAnswers = 0; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Matrix'); diff --git a/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_14.pg b/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_14.pg index 2686ef09a8..4331dd8bf4 100644 --- a/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_14.pg +++ b/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_14.pg @@ -22,11 +22,11 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); $showPartialCorrectAnswers = 0; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Matrix'); diff --git a/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_type_01.pg b/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_type_01.pg index e5e7ba424c..8d5c2d45ea 100644 --- a/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_type_01.pg +++ b/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_type_01.pg @@ -22,11 +22,11 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); $showPartialCorrectAnswers = 0; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Matrix'); @@ -51,12 +51,12 @@ ANS( $A->cmp( checker => sub { if ($S == $Z) { return 0; } elsif ( - $S->element(1,2) == 0 and - $S->element(1,3) == 0 and + $S->element(1,2) == 0 and + $S->element(1,3) == 0 and $S->element(2,3) == 0 and - $S->element(2,1) == 0 and - $S->element(3,1) == 0 and - $S->element(3,2) == 0 ) + $S->element(2,1) == 0 and + $S->element(3,1) == 0 and + $S->element(3,2) == 0 ) { return 1; } else { diff --git a/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_type_02.pg b/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_type_02.pg index ae50e3138a..8ab916e1f0 100644 --- a/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_type_02.pg +++ b/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_type_02.pg @@ -22,11 +22,11 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); $showPartialCorrectAnswers = 0; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Matrix'); @@ -47,19 +47,19 @@ install_problem_grader(~~&std_problem_grader); ANS( $A->cmp( checker => sub { my ( $correct, $student, $ansHash ) = @_; $S = Matrix($student); - if ( - $S->element(1,2) == 0 and - $S->element(1,3) == 0 and + if ( + $S->element(1,2) == 0 and + $S->element(1,3) == 0 and $S->element(2,3) == 0 and - $S->element(2,1) == 0 and - $S->element(3,1) == 0 and - $S->element(3,2) == 0 ) + $S->element(2,1) == 0 and + $S->element(3,1) == 0 and + $S->element(3,2) == 0 ) { return 0; } elsif ( - $S->element(2,1) == 0 and - $S->element(3,1) == 0 and - $S->element(3,2) == 0 ) + $S->element(2,1) == 0 and + $S->element(3,1) == 0 and + $S->element(3,2) == 0 ) { return 1; } else { diff --git a/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_type_03.pg b/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_type_03.pg index 994cb436c1..77d4a6a4d1 100644 --- a/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_type_03.pg +++ b/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_type_03.pg @@ -22,11 +22,11 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); $showPartialCorrectAnswers = 0; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Matrix'); @@ -47,19 +47,19 @@ install_problem_grader(~~&std_problem_grader); ANS( $A->cmp( checker => sub { my ( $correct, $student, $ansHash ) = @_; $S = Matrix($student); - if ( - $S->element(1,2) == 0 and - $S->element(1,3) == 0 and + if ( + $S->element(1,2) == 0 and + $S->element(1,3) == 0 and $S->element(2,3) == 0 and - $S->element(2,1) == 0 and - $S->element(3,1) == 0 and - $S->element(3,2) == 0 ) + $S->element(2,1) == 0 and + $S->element(3,1) == 0 and + $S->element(3,2) == 0 ) { return 0; } elsif ( - $S->element(1,2) == 0 and - $S->element(1,3) == 0 and - $S->element(2,3) == 0 ) + $S->element(1,2) == 0 and + $S->element(1,3) == 0 and + $S->element(2,3) == 0 ) { return 1; } else { diff --git a/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_type_04.pg b/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_type_04.pg index 05537f8851..6bda8b76dd 100644 --- a/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_type_04.pg +++ b/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_type_04.pg @@ -22,11 +22,11 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); $showPartialCorrectAnswers = 0; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Matrix'); @@ -47,13 +47,13 @@ install_problem_grader(~~&std_problem_grader); ANS( $A->cmp( checker => sub { my ( $correct, $student, $ansHash ) = @_; $S = Matrix($student); - if ( - $S->element(1,2) == 0 and - $S->element(1,3) == 0 and + if ( + $S->element(1,2) == 0 and + $S->element(1,3) == 0 and $S->element(2,3) == 0 and - $S->element(2,1) == 0 and - $S->element(3,1) == 0 and - $S->element(3,2) == 0 ) + $S->element(2,1) == 0 and + $S->element(3,1) == 0 and + $S->element(3,2) == 0 ) { return 0; } else { diff --git a/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_type_05.pg b/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_type_05.pg index 38b7cab646..eb95baf616 100644 --- a/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_type_05.pg +++ b/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_type_05.pg @@ -22,11 +22,11 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); $showPartialCorrectAnswers = 0; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Matrix'); @@ -47,22 +47,22 @@ install_problem_grader(~~&std_problem_grader); ANS( $A->cmp( checker => sub { my ( $correct, $student, $ansHash ) = @_; $S = Matrix($student); - if ( - $S->element(1,2) == 0 and - $S->element(1,3) == 0 and + if ( + $S->element(1,2) == 0 and + $S->element(1,3) == 0 and $S->element(2,3) == 0 and - $S->element(2,1) == 0 and - $S->element(3,1) == 0 and - $S->element(3,2) == 0 ) + $S->element(2,1) == 0 and + $S->element(3,1) == 0 and + $S->element(3,2) == 0 ) { return 0; } elsif ( - $S->element(1,1) == 0 and - $S->element(2,2) == 0 and + $S->element(1,1) == 0 and + $S->element(2,2) == 0 and $S->element(3,3) == 0 and - $S->element(1,2) == -1*$S->element(2,1) and - $S->element(1,3) == -1*$S->element(3,1) and - $S->element(2,3) == -1*$S->element(3,2) ) + $S->element(1,2) == -1*$S->element(2,1) and + $S->element(1,3) == -1*$S->element(3,1) and + $S->element(2,3) == -1*$S->element(3,2) ) { return 1; } else { diff --git a/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_type_06.pg b/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_type_06.pg index 782180a2be..07479f4b48 100644 --- a/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_type_06.pg +++ b/Contrib/Hope/Multi1/02-01-Matrix-operations/Matrix_type_06.pg @@ -22,11 +22,11 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserPopUp.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); $showPartialCorrectAnswers = 0; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Matrix'); do { @@ -46,7 +46,7 @@ $popup2 = PopUp(['Choose','Lower triangular','Upper triangular','Symmetric','Ske Context()->texStrings; BEGIN_TEXT -Let +Let \[ A = $A.\] Compute the following. $BR @@ -59,16 +59,16 @@ $BR \{ $answer2->ans_array() \} $BR $BR -For any square matrix \( A \), is the matrix \( A+A^T \) lower triangular, upper triangular, +For any square matrix \( A \), is the matrix \( A+A^T \) lower triangular, upper triangular, symmetric, skew-symmetric, or none of these? -$BR -\{ $popup1->menu \} +$BR +\{ $popup1->menu \} $BR $BR -For any square matrix \( A \), is the matrix \( A-A^T \) lower triangular, upper triangular, +For any square matrix \( A \), is the matrix \( A-A^T \) lower triangular, upper triangular, symmetric, skew-symmetric, or none of these? -$BR -\{ $popup2->menu \} +$BR +\{ $popup2->menu \} END_TEXT Context()->normalStrings; diff --git a/Contrib/Hope/Multi1/02-04-Row-reduction/Graphical_row_reduction_01.pg b/Contrib/Hope/Multi1/02-04-Row-reduction/Graphical_row_reduction_01.pg index 518a175be9..85d0babcf5 100644 --- a/Contrib/Hope/Multi1/02-04-Row-reduction/Graphical_row_reduction_01.pg +++ b/Contrib/Hope/Multi1/02-04-Row-reduction/Graphical_row_reduction_01.pg @@ -18,7 +18,7 @@ loadMacros( "MathObjects.pl", "PGgraphmacros.pl", "contextLimitedVector.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "scaffold.pl", "unionTables.pl", @@ -210,7 +210,7 @@ END_PGML Section::Begin("Part 1: Finding eigenvalues using geometry"); BEGIN_PGML -If [`\mathbf{v_1}`] and [`\mathbf{v_2}`] are eigenvectors for [`T`], find their corresponding eigenvalues. If not, enter [|DNE|]. [@ AnswerFormatHelp("numbers") @]* +If [`\mathbf{v_1}`] and [`\mathbf{v_2}`] are eigenvectors for [`T`], find their corresponding eigenvalues. If not, enter [|DNE|]. [@ helpLink("numbers") @]* + [`T(\mathbf{v_1}) = `] [____]{"$k1"} [`\mathbf{v_1}`] + [`T(\mathbf{v_2}) = `] [____]{"$k2"} [`\mathbf{v_2}`] diff --git a/Contrib/Hope/Multi1/03-01-Vector-spaces/Discrete_time_signal_01.pg b/Contrib/Hope/Multi1/03-01-Vector-spaces/Discrete_time_signal_01.pg index d169a28369..79f2c08849 100644 --- a/Contrib/Hope/Multi1/03-01-Vector-spaces/Discrete_time_signal_01.pg +++ b/Contrib/Hope/Multi1/03-01-Vector-spaces/Discrete_time_signal_01.pg @@ -18,7 +18,7 @@ loadMacros( "MathObjects.pl", "PGgraphmacros.pl", "contextLimitedVector.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "unionTables.pl", "scaffold.pl", @@ -112,7 +112,7 @@ $fig[1] = image(insertGraph($gr[1]), width=>$pixels, height=>$pixels, tex_size=> BEGIN_PGML Consider the two discrete time signals [` y = f(t) `] and [` y = g(t) `] graphed below and each sampled 8 times per second for [` 0 \leq t \leq 1 `]. -[@ +[@ BeginTable(). AlignedRow([ $fig[0], $fig[1] ]). TableSpace(5,0). @@ -122,24 +122,24 @@ EndTable() a. Find the coordinate vector representations for the discrete time signals [`f(t)`] and [`g(t)`]. - + [`\vec{f}=`] [_______________________________________]{$F} [@ AnswerFormatHelp("vectors") @]* - + [`\vec{g}=`] [_______________________________________]{$G} [@ AnswerFormatHelp("vectors") @]* + + [`\vec{f}=`] [_______________________________________]{$F} [@ helpLink("vectors") @]* + + [`\vec{g}=`] [_______________________________________]{$G} [@ helpLink("vectors") @]* b. Draw the vector sum [` \vec{f} + \vec{f} `] as a discrete time signal. Then, verify your answer using vector addition operations. - + [` \vec{f} + \vec{g} = `] [_______________________________________]{$FplusG} [@ AnswerFormatHelp("vectors") @]* + + [` \vec{f} + \vec{g} = `] [_______________________________________]{$FplusG} [@ helpLink("vectors") @]* c. Draw the scaled vector [` [$k] \vec{f} `] as a discrete time signal. Then, verify your answer using vector addition operations. - + [` [$k] \vec{f} = `] [_______________________________________]{$kF} [@ AnswerFormatHelp("vectors") @]* + + [` [$k] \vec{f} = `] [_______________________________________]{$kF} [@ helpLink("vectors") @]* d. Find the vector sum [` k_1 \vec{f} + k_2 \vec{g} `] when [`k_1 = [$k1] `] and [`k_2 = [$k2] `]. - + [` k_1 \vec{f} + k_2\vec{g} = `] [_______________________________________]{$k1Fplusk2G} [@ AnswerFormatHelp("vectors") @]* + + [` k_1 \vec{f} + k_2\vec{g} = `] [_______________________________________]{$k1Fplusk2G} [@ helpLink("vectors") @]* e. Find the additive inverse of [`\vec{g}`]. - + [`\vec{g} + `] [_______________________________________]{$negG} [` = \mathbf{0}. `] [@ AnswerFormatHelp("vectors") @]* + + [`\vec{g} + `] [_______________________________________]{$negG} [` = \mathbf{0}. `] [@ helpLink("vectors") @]* END_PGML ENDDOCUMENT(); diff --git a/Contrib/Hope/Multi1/04-02-Kernel-image/Geom_lin_trans_03/Geom_lin_trans_03.pg b/Contrib/Hope/Multi1/04-02-Kernel-image/Geom_lin_trans_03/Geom_lin_trans_03.pg index a27c5d54ea..0bcf3acc84 100644 --- a/Contrib/Hope/Multi1/04-02-Kernel-image/Geom_lin_trans_03/Geom_lin_trans_03.pg +++ b/Contrib/Hope/Multi1/04-02-Kernel-image/Geom_lin_trans_03/Geom_lin_trans_03.pg @@ -19,7 +19,7 @@ loadMacros( "parserWordCompletion.pl", "PGML.pl", "PGchoicemacros.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); install_problem_grader(~~&std_problem_grader); diff --git a/Contrib/Hope/Multi1/04-04-Basis-and-functions/Geom_lin_trans_01/Geom_lin_trans_01.pg b/Contrib/Hope/Multi1/04-04-Basis-and-functions/Geom_lin_trans_01/Geom_lin_trans_01.pg index 60e949bda8..7137571ff8 100644 --- a/Contrib/Hope/Multi1/04-04-Basis-and-functions/Geom_lin_trans_01/Geom_lin_trans_01.pg +++ b/Contrib/Hope/Multi1/04-04-Basis-and-functions/Geom_lin_trans_01/Geom_lin_trans_01.pg @@ -17,7 +17,7 @@ loadMacros( "MathObjects.pl", "PGML.pl", "PGchoicemacros.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); #install_problem_grader(~~&std_problem_grader); diff --git a/Contrib/Hope/Multi1/04-04-Basis-and-functions/Geom_lin_trans_02/Geom_lin_trans_02.pg b/Contrib/Hope/Multi1/04-04-Basis-and-functions/Geom_lin_trans_02/Geom_lin_trans_02.pg index 82bb69c2a9..79d726737d 100644 --- a/Contrib/Hope/Multi1/04-04-Basis-and-functions/Geom_lin_trans_02/Geom_lin_trans_02.pg +++ b/Contrib/Hope/Multi1/04-04-Basis-and-functions/Geom_lin_trans_02/Geom_lin_trans_02.pg @@ -17,7 +17,7 @@ loadMacros( "MathObjects.pl", "PGML.pl", "PGchoicemacros.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); #install_problem_grader(~~&std_problem_grader); diff --git a/Contrib/Hope/Multi1/04-04-Basis-and-functions/Geom_lin_trans_03/Geom_lin_trans_03.pg b/Contrib/Hope/Multi1/04-04-Basis-and-functions/Geom_lin_trans_03/Geom_lin_trans_03.pg index 050b6aa56f..5b191d1e34 100644 --- a/Contrib/Hope/Multi1/04-04-Basis-and-functions/Geom_lin_trans_03/Geom_lin_trans_03.pg +++ b/Contrib/Hope/Multi1/04-04-Basis-and-functions/Geom_lin_trans_03/Geom_lin_trans_03.pg @@ -18,7 +18,7 @@ loadMacros( "parserPopUp.pl", "PGML.pl", "PGchoicemacros.pl", - "AnswerFormatHelp.pl", + "scaffold.pl", "PGcourse.pl" ); diff --git a/Contrib/Hope/Multi1/05-01-Eigenstuff/Eigenvector_definition_01.pg b/Contrib/Hope/Multi1/05-01-Eigenstuff/Eigenvector_definition_01.pg index 1f11a2e44c..a3f386ca17 100644 --- a/Contrib/Hope/Multi1/05-01-Eigenstuff/Eigenvector_definition_01.pg +++ b/Contrib/Hope/Multi1/05-01-Eigenstuff/Eigenvector_definition_01.pg @@ -19,7 +19,7 @@ loadMacros( "PGgraphmacros.pl", "contextLimitedVector.pl", "MatrixUnits.pl", - "AnswerFormatHelp.pl", + "PGchoicemacros.pl", "parserPopUp.pl", "PGML.pl", @@ -103,7 +103,7 @@ d. Is the vector [` [$kb1row] `] an eigenvector for [` A `]? [_]{$popup2} If so e. Are the vectors [` [$b1row] `] and [` [$kb1row] `] in the same eigenspace? [_]{$popup3} -f. If the vector [` [$b2incomplete] `] is an eigenvector for [` A `] with eigenvalue [` [$e2] `], then [` k = `] [______]{Real($b2y)} +f. If the vector [` [$b2incomplete] `] is an eigenvector for [` A `] with eigenvalue [` [$e2] `], then [` k = `] [______]{Real($b2y)} g. The linear transformation [`f`] acts like multiplication by [` [$e2] `] in the subspace [` \mathrm{span}\lbrace `] [__________]{$b2row->cmp(parallel => 1)} [`\rbrace`]. Enter your answer as a coordinate vector of the form [| <1,2> |]. diff --git a/Contrib/Hope/Multi1/05-01-Eigenstuff/Eigenvector_geometry_01.pg b/Contrib/Hope/Multi1/05-01-Eigenstuff/Eigenvector_geometry_01.pg index d2bd242642..0db0919194 100644 --- a/Contrib/Hope/Multi1/05-01-Eigenstuff/Eigenvector_geometry_01.pg +++ b/Contrib/Hope/Multi1/05-01-Eigenstuff/Eigenvector_geometry_01.pg @@ -18,7 +18,7 @@ loadMacros( "MathObjects.pl", "PGgraphmacros.pl", "contextLimitedVector.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "scaffold.pl", "unionTables.pl", @@ -232,7 +232,7 @@ Section::End(); Section::Begin("Part 2: Finding eigenvalues using geometry"); BEGIN_PGML -For each eigenvector from Part 1, find and enter the corresponding eigenvalue. [@ AnswerFormatHelp("numbers") @]* +For each eigenvector from Part 1, find and enter the corresponding eigenvalue. [@ helpLink("numbers") @]* a. [`T(\mathbf{v_1}) = `] [____]{"$k1"} [`\mathbf{v_1}`] b. [`T(\mathbf{v_3}) = `] [____]{"$k2"} [`\mathbf{v_3}`] @@ -243,13 +243,13 @@ Section::End(); Section::Begin("Part 3: Generalizing observations about eigenvectors to eigenspaces"); BEGIN_PGML -a. [@ $mc -> print_q() @]*** +a. [@ $mc -> print_q() @]*** [@ ANS(checkbox_cmp($mc->correct_ans)); $mc -> print_a() @]*** -b. [@ $mc1 -> print_q() @]*** +b. [@ $mc1 -> print_q() @]*** [@ ANS(checkbox_cmp($mc1->correct_ans)); $mc1 -> print_a() @]*** -c. [@ $mc2 -> print_q() @]*** +c. [@ $mc2 -> print_q() @]*** [@ ANS(checkbox_cmp($mc2->correct_ans)); $mc2 -> print_a() @]*** END_PGML Section::End(); diff --git a/Contrib/Hope/Multi1/05-01-Eigenstuff/Eigenvector_geometry_02.pg b/Contrib/Hope/Multi1/05-01-Eigenstuff/Eigenvector_geometry_02.pg index 9d75d6f923..6acbfedf4e 100644 --- a/Contrib/Hope/Multi1/05-01-Eigenstuff/Eigenvector_geometry_02.pg +++ b/Contrib/Hope/Multi1/05-01-Eigenstuff/Eigenvector_geometry_02.pg @@ -18,7 +18,7 @@ loadMacros( "MathObjects.pl", "PGgraphmacros.pl", "contextLimitedVector.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "scaffold.pl", "unionTables.pl", @@ -274,10 +274,10 @@ EndTable() For each eigenvector from Part 1, find the corresponding eigenvalue. -+ [`T(\mathbf{v_{ [$i1] }}) = `] [____]{"$k1"} [`\mathbf{v_{ [$i1] }}`] [@ AnswerFormatHelp("numbers") @]* -+ [`T(\mathbf{v_{ [$i2] }}) = `] [____]{"$k2"} [`\mathbf{v_{ [$i2] }}`] [@ AnswerFormatHelp("numbers") @]* -+ [`T(\mathbf{v_{ [$i3] }}) = `] [____]{"$k1"} [`\mathbf{v_{ [$i3] }}`] [@ AnswerFormatHelp("numbers") @]* -+ [`T(\mathbf{v_{ [$i4] }}) = `] [____]{"$k2"} [`\mathbf{v_{ [$i4] }}`] [@ AnswerFormatHelp("numbers") @]* ++ [`T(\mathbf{v_{ [$i1] }}) = `] [____]{"$k1"} [`\mathbf{v_{ [$i1] }}`] [@ helpLink("numbers") @]* ++ [`T(\mathbf{v_{ [$i2] }}) = `] [____]{"$k2"} [`\mathbf{v_{ [$i2] }}`] [@ helpLink("numbers") @]* ++ [`T(\mathbf{v_{ [$i3] }}) = `] [____]{"$k1"} [`\mathbf{v_{ [$i3] }}`] [@ helpLink("numbers") @]* ++ [`T(\mathbf{v_{ [$i4] }}) = `] [____]{"$k2"} [`\mathbf{v_{ [$i4] }}`] [@ helpLink("numbers") @]* END_PGML Section::End(); @@ -287,14 +287,14 @@ a. Is every nonzero vector parallel to [`\mathbf{v_{ [$i1] }}`] an eigenvector f b. Is every eigenvector for [`T`] with eigenvalue [`[$k1]`] a nonzero vector parallel to [`\mathbf{v_{ [$i1] }}`] ? [_]{$popup[1]} -c. [@ $mc1 -> print_q() @]*** +c. [@ $mc1 -> print_q() @]*** [@ ANS(checkbox_cmp($mc1->correct_ans)); $mc1 -> print_a() @]*** d. Is every nonzero vector parallel to [`\mathbf{v_{ [$i2] }}`] an eigenvector for [`T`] with eigenvalue [`[$k2]`]? [_]{$popup[2]} e. Is every eigenvector for [`T`] with eigenvalue [`[$k2]`] a nonzero vector parallel to [`\mathbf{v_{ [$i2] }}`] ? [_]{$popup[3]} -f. [@ $mc2 -> print_q() @]*** +f. [@ $mc2 -> print_q() @]*** [@ ANS(checkbox_cmp($mc2->correct_ans)); $mc2 -> print_a() @]*** END_PGML Section::End(); diff --git a/Contrib/Hope/Multi1/05-01-Eigenstuff/Eigenvector_geometry_10.pg b/Contrib/Hope/Multi1/05-01-Eigenstuff/Eigenvector_geometry_10.pg index 7a65af9796..b28eb941ab 100644 --- a/Contrib/Hope/Multi1/05-01-Eigenstuff/Eigenvector_geometry_10.pg +++ b/Contrib/Hope/Multi1/05-01-Eigenstuff/Eigenvector_geometry_10.pg @@ -18,7 +18,7 @@ loadMacros( "MathObjects.pl", "PGgraphmacros.pl", "contextLimitedVector.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "scaffold.pl", "unionTables.pl", @@ -109,8 +109,8 @@ foreach my $i (0..1) { # plot vectors in domain @x1 = (random(-2,-1,1), random(3,8,1)); -do { - @y1 = (non_zero_random(1,2,1), random(3,8,1)); +do { + @y1 = (non_zero_random(1,2,1), random(3,8,1)); } until ( $x1[0] * $y1[1] != $x1[1] * $y1[0] ); # until and are not parallel @@ -215,7 +215,7 @@ END_PGML Section::Begin("Part 1: Finding eigenvalues using geometry"); BEGIN_PGML -If [`\mathbf{v_1}`] and [`\mathbf{v_2}`] are eigenvectors for [`T`], find their corresponding eigenvalues. If not, enter [|DNE|]. [@ AnswerFormatHelp("numbers") @]* +If [`\mathbf{v_1}`] and [`\mathbf{v_2}`] are eigenvectors for [`T`], find their corresponding eigenvalues. If not, enter [|DNE|]. [@ helpLink("numbers") @]* + [`T(\mathbf{v_1}) = `] [____]{"$k1"} [`\mathbf{v_1}`] + [`T(\mathbf{v_2}) = `] [____]{"$k2"} [`\mathbf{v_2}`] diff --git a/Contrib/Hope/Multi2/07-04-Variation-of-parameters/Variation-of-parameters-02b.pg b/Contrib/Hope/Multi2/07-04-Variation-of-parameters/Variation-of-parameters-02b.pg index 4019d12650..5fe755606b 100644 --- a/Contrib/Hope/Multi2/07-04-Variation-of-parameters/Variation-of-parameters-02b.pg +++ b/Contrib/Hope/Multi2/07-04-Variation-of-parameters/Variation-of-parameters-02b.pg @@ -23,12 +23,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", "unionLists.pl", "PGcourse.pl" @@ -80,16 +80,16 @@ $diffeq. \{ BeginList('OL',type=>'a') \} $ITEMSEP -$ITEM Find the most general solution to the -associated homogeneous differential equation. -Use \( c_1 \) and \( c_2 \) in your answer to denote +$ITEM Find the most general solution to the +associated homogeneous differential equation. +Use \( c_1 \) and \( c_2 \) in your answer to denote arbitrary constants, and enter them as ${BTT}c1${ETT} and ${BTT}c2${ETT}. $BR $BR \( y_h = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; @@ -98,15 +98,15 @@ Context()->normalStrings; ###################### # Answer evaluation -ANS( $yhomogeneous->cmp( +ANS( $yhomogeneous->cmp( checker => sub { my ( $correct, $stu, $answerHash ) = @_; ################################ # Check for arbitrary constants and variables # - Value->Error("Is your answer the most general solution?") - if ( + Value->Error("Is your answer the most general solution?") + if ( $stu->{variables}{'x'} != 1 || $stu->{variables}{'c1'} != 1 || $stu->{variables}{'c2'} != 1 @@ -119,18 +119,18 @@ ANS( $yhomogeneous->cmp( my $a11 = $stu->eval('c1'=>1,'c2'=>0,x=>$x); my $a12 = $stu->eval('c1'=>0,'c2'=>1,x=>$x); - + my $a21 = $stu->D('x')->eval('c1'=>1,'c2'=>0,x=>$x); my $a22 = $stu->D('x')->eval('c1'=>0,'c2'=>1,x=>$x); - Value->Error("Your functions are not linearly independent or your answer is not complete") + Value->Error("Your functions are not linearly independent or your answer is not complete") if ($a11 * $a22 == $a21 * $a12); ######################################################## # Check that the student answer is a solution to the DE # my $stu2 = $stu->D('x','x'); - return $stu2 == -1 * $kk * $stu; + return $stu2 == -1 * $kk * $stu; })); @@ -160,18 +160,18 @@ Context()->texStrings; BEGIN_TEXT $ITEMSEP -$ITEM Find a particular solution to the +$ITEM Find a particular solution to the nonhomogeneous differential equation \( $diffeq \). $BR $BR -\( y_p = \) +\( y_p = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; -ANS( $yparticular->cmp()->withPostFilter(AnswerHints( +ANS( $yparticular->cmp()->withPostFilter(AnswerHints( $yparticular_incorrect => ["Your answer is missing an absolute value",replaceMessage=>1], )) ); @@ -214,29 +214,29 @@ $ygeneral_incorrect_2 = Compute("c2 cos($k x) + c1 sin($k x) + 1/$k x sin($k x) BEGIN_TEXT $ITEMSEP -$ITEM Find the most general solution to the -original nonhomogeneous differential equation. -Use \( c_1 \) and \( c_2 \) in your answer to denote +$ITEM Find the most general solution to the +original nonhomogeneous differential equation. +Use \( c_1 \) and \( c_2 \) in your answer to denote arbitrary constants. $BR $BR \( y = \) \{ ans_box(2,60) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} \{ EndList('OL') \} END_TEXT -ANS($ygeneral->cmp( showDomainErrors => 1, +ANS($ygeneral->cmp( showDomainErrors => 1, checker => sub { my ( $correct, $stu, $ansHash ) = @_; ################################ # Check for arbitrary constants and variables # - Value->Error("Is your answer the most general solution?") - if ( + Value->Error("Is your answer the most general solution?") + if ( $stu->{variables}{'x'} != 1 || $stu->{variables}{'c1'} != 1 || $stu->{variables}{'c2'} != 1 @@ -249,11 +249,11 @@ ANS($ygeneral->cmp( showDomainErrors => 1, my $a11 = $stu->eval('c1'=>1,'c2'=>0,x=>$x); my $a12 = $stu->eval('c1'=>0,'c2'=>1,x=>$x); - + my $a21 = $stu->D('x')->eval('c1'=>1,'c2'=>0,x=>$x); my $a22 = $stu->D('x')->eval('c1'=>0,'c2'=>1,x=>$x); - Value->Error("Your functions are not linearly independent or your answer is not complete") + Value->Error("Your functions are not linearly independent or your answer is not complete") if ($a11 * $a22 == $a21 * $a12); ######################################################## diff --git a/Contrib/Hope/Multi2/07-04-Variation-of-parameters/Variation-of-parameters-02c.pg b/Contrib/Hope/Multi2/07-04-Variation-of-parameters/Variation-of-parameters-02c.pg index 58049a8187..a2732ce35e 100644 --- a/Contrib/Hope/Multi2/07-04-Variation-of-parameters/Variation-of-parameters-02c.pg +++ b/Contrib/Hope/Multi2/07-04-Variation-of-parameters/Variation-of-parameters-02c.pg @@ -22,12 +22,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", "unionLists.pl", "PGcourse.pl" @@ -78,16 +78,16 @@ $diffeq. \{ BeginList('OL',type=>'a') \} $ITEMSEP -$ITEM Find the most general solution to the -associated homogeneous differential equation. -Use \( c_1 \) and \( c_2 \) in your answer to denote +$ITEM Find the most general solution to the +associated homogeneous differential equation. +Use \( c_1 \) and \( c_2 \) in your answer to denote arbitrary constants, and enter them as ${BTT}c1${ETT} and ${BTT}c2${ETT}. $BR $BR \( y_h = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; @@ -96,15 +96,15 @@ Context()->normalStrings; ###################### # Answer evaluation -ANS( $yhomogeneous->cmp( +ANS( $yhomogeneous->cmp( checker => sub { my ( $correct, $stu, $answerHash ) = @_; ################################ # Check for arbitrary constants # - Value->Error("Is your answer the most general solution?") - if ( + Value->Error("Is your answer the most general solution?") + if ( $stu->{variables}{'x'} != 1 || $stu->{variables}{'c1'} != 1 || $stu->{variables}{'c2'} != 1 @@ -117,11 +117,11 @@ ANS( $yhomogeneous->cmp( my $a11 = $stu->eval('c1'=>1,'c2'=>0,x=>$x); my $a12 = $stu->eval('c1'=>0,'c2'=>1,x=>$x); - + my $a21 = $stu->D('x')->eval('c1'=>1,'c2'=>0,x=>$x); my $a22 = $stu->D('x')->eval('c1'=>0,'c2'=>1,x=>$x); - Value->Error("Your functions are not linearly independent or your answer is not complete") + Value->Error("Your functions are not linearly independent or your answer is not complete") if ($a11 * $a22 == $a21 * $a12); ######################################################## @@ -129,7 +129,7 @@ ANS( $yhomogeneous->cmp( # my $stu1 = Formula($stu->D('x')); my $stu2 = Formula($stu->D('x','x')); - return ($stu2 + $kk * $stu) == (-1 * $k2 * $stu1); + return ($stu2 + $kk * $stu) == (-1 * $k2 * $stu1); })); @@ -157,13 +157,13 @@ Context()->texStrings; BEGIN_TEXT $ITEMSEP -$ITEM Find a particular solution to the +$ITEM Find a particular solution to the nonhomogeneous differential equation \( $diffeq \). $BR $BR -\( y_p = \) +\( y_p = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; @@ -192,29 +192,29 @@ $ygeneral = Compute("c1 e^(-$k x) + c2 x e^(-$k x) + x/$k - 2/$kk"); BEGIN_TEXT $ITEMSEP -$ITEM Find the most general solution to the -original nonhomogeneous differential equation. -Use \( c_1 \) and \( c_2 \) in your answer to denote +$ITEM Find the most general solution to the +original nonhomogeneous differential equation. +Use \( c_1 \) and \( c_2 \) in your answer to denote arbitrary constants. $BR $BR \( y = \) \{ ans_box(2,60) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} \{ EndList('OL') \} END_TEXT -ANS($ygeneral->cmp( +ANS($ygeneral->cmp( checker => sub { my ( $correct, $stu, $answerHash ) = @_; ################################ # Check for arbitrary constants # - Value->Error("Is your answer the most general solution?") - if ( + Value->Error("Is your answer the most general solution?") + if ( $stu->{variables}{'x'} != 1 || $stu->{variables}{'c1'} != 1 || $stu->{variables}{'c2'} != 1 @@ -227,11 +227,11 @@ ANS($ygeneral->cmp( my $a11 = $stu->eval('c1'=>1,'c2'=>0,x=>$x); my $a12 = $stu->eval('c1'=>0,'c2'=>1,x=>$x); - + my $a21 = $stu->D('x')->eval('c1'=>1,'c2'=>0,x=>$x); my $a22 = $stu->D('x')->eval('c1'=>0,'c2'=>1,x=>$x); - Value->Error("Your functions are not linearly independent or your answer is not complete") + Value->Error("Your functions are not linearly independent or your answer is not complete") if ($a11 * $a22 == $a21 * $a12); ######################################################## @@ -241,7 +241,7 @@ ANS($ygeneral->cmp( my $stu2 = Formula($stu->D('x','x')); my $g = Formula("$k x"); - return $g == ($stu2 + $k2 * $stu1 + $kk * $stu); + return $g == ($stu2 + $k2 * $stu1 + $kk * $stu); })); diff --git a/Contrib/Hope/Multi2/09-01-Graphs-images-level-sets/Level-sets-02.pg b/Contrib/Hope/Multi2/09-01-Graphs-images-level-sets/Level-sets-02.pg index dfc0812ab9..99eb24a4da 100644 --- a/Contrib/Hope/Multi2/09-01-Graphs-images-level-sets/Level-sets-02.pg +++ b/Contrib/Hope/Multi2/09-01-Graphs-images-level-sets/Level-sets-02.pg @@ -20,12 +20,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserImplicitEquation.pl", "PGcourse.pl" ); @@ -64,21 +64,21 @@ $k = Compute("2"); Context()->texStrings; BEGIN_TEXT Let \( f : \mathbb{R}^2 \to \mathbb{R} \) be defined by -\( f(x,y) = $f \) and set \( z = f(x,y) \). +\( f(x,y) = $f \) and set \( z = f(x,y) \). $BR $BR (a) The level sets of \( f \) are subsets of \( \mathbb{R}^k \) for \( k = \) \{ ans_rule(5) \}. $BR $BR -(b) Find an equation for the level set of \( f \) -at level \( z = $z \). This level set is the set of +(b) Find an equation for the level set of \( f \) +at level \( z = $z \). This level set is the set of all points \( (x,y) \) in \( \mathbb{R}^2 \) that satisfy the equation $BR $BR \{ ans_rule(30) \}. -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/JFreeman/Vectors/Cross_Product2.pg b/Contrib/JFreeman/Vectors/Cross_Product2.pg index ccfd1eb1c1..897c503f6a 100644 --- a/Contrib/JFreeman/Vectors/Cross_Product2.pg +++ b/Contrib/JFreeman/Vectors/Cross_Product2.pg @@ -11,7 +11,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGcourse.pl" ); @@ -56,10 +56,10 @@ Context()->texStrings; BEGIN_TEXT Parallelogram \(ABCD\) has vertices \(A($a1,$a2,$a3)\), \(B($b1,$b2,$b3)\), and \(C($c1,$c2,$c3)\). $BR $BR Determine the coordinates of point \(D\): \{ ans_rule(20) \} -\{ AnswerFormatHelp("points") \} $BR $BR +\{ helpLink("points") \} $BR $BR Determine the area of parallelogram \(ABCD\) $BR Area = \{ ans_rule(20)\} -\{ AnswerFormatHelp("points") \} +\{ helpLink("points") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/JFreeman/Vectors/Cross_Product3.pg b/Contrib/JFreeman/Vectors/Cross_Product3.pg index ca43063aad..cf54924b99 100644 --- a/Contrib/JFreeman/Vectors/Cross_Product3.pg +++ b/Contrib/JFreeman/Vectors/Cross_Product3.pg @@ -11,7 +11,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "unorderedAnswer.pl", "PGcourse.pl" @@ -69,9 +69,9 @@ $showPartialCorrectAnswers = 1; -UNORDERED_ANS( -num_cmp($c2a), -num_cmp($c2b), +UNORDERED_ANS( +num_cmp($c2a), +num_cmp($c2b), ); diff --git a/Contrib/JFreeman/Vectors/Lines1.pg b/Contrib/JFreeman/Vectors/Lines1.pg index 32c8fcb158..ad9ba3e171 100644 --- a/Contrib/JFreeman/Vectors/Lines1.pg +++ b/Contrib/JFreeman/Vectors/Lines1.pg @@ -4,13 +4,13 @@ ## Author(Justin Freeman) ## Level(3) -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -57,22 +57,22 @@ $multians = MultiAnswer($x, $y, $z)->with( ########################## -# Main Text +# Main Text Context()->texStrings; BEGIN_TEXT -Give a parametric equation of the line which passes through \(A($a1,$a2,$a3)\) and \(B($b1,$b2,$b3)\). Use \( t \) as the +Give a parametric equation of the line which passes through \(A($a1,$a2,$a3)\) and \(B($b1,$b2,$b3)\). Use \( t \) as the parameter for all of your answers. $BR $BR \( x(t) = \) \{$multians->ans_rule(20)\} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR \( y(t) = \) \{$multians->ans_rule(20)\} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR \( z(t) = \) \{$multians->ans_rule(20)\} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/METU-NCC/MAT100/26_Trig-identities.pg b/Contrib/METU-NCC/MAT100/26_Trig-identities.pg index 05892affd6..dd86f84383 100644 --- a/Contrib/METU-NCC/MAT100/26_Trig-identities.pg +++ b/Contrib/METU-NCC/MAT100/26_Trig-identities.pg @@ -1,5 +1,5 @@ ## BEGIN_DESCRIPTION -## Solve trigonometric equation using trig identities +## Solve trigonometric equation using trig identities ## END_DESCRIPTION ## ############################################## @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -35,7 +35,7 @@ Context("Numeric"); Context()->functions->disable("Trig"); @expression = ( - " \cos(x) + \cos(2x) = 0", #1. (2cos(x)-1)(cos(x)+1) = 0 + " \cos(x) + \cos(2x) = 0", #1. (2cos(x)-1)(cos(x)+1) = 0 "3\cos(x) + \cos(2x) = -2", #2. (2cos(x)+1)(cos(x)+1) = 0 "\cos(2x) + 2 = 3\cos(x)", #3. (2cos(x)-1)(cos(x)-1) = 0 "\cos(2x) = \cos(x)", #4. (2cos(x)+1)(cos(x)-1) = 0 @@ -65,18 +65,18 @@ $i = random(0,7); Context()->texStrings; BEGIN_TEXT -Use trigonometric identities to find all solutions to +Use trigonometric identities to find all solutions to \[ $expression[$i] \] for \( 0 \leq x < 2\pi \). $PAR \( x =\) \{ ans_rule(30) \} $PAR -$SPACE $SPACE Write +$SPACE $SPACE Write solutions separated by commas. $BR -$SPACE $SPACE Write angles in radians, using "${BTT}pi${ETT}" for \(\pi\). +$SPACE $SPACE Write angles in radians, using "${BTT}pi${ETT}" for \(\pi\). $BR -$SPACE $SPACE +$SPACE $SPACE For example "${BTT}2pi / 3, 5pi / 4${ETT}" END_TEXT diff --git a/Contrib/METU-NCC/MAT100/3_Absolute-equality.pg b/Contrib/METU-NCC/MAT100/3_Absolute-equality.pg index 01284ef56e..11fa60c9ce 100644 --- a/Contrib/METU-NCC/MAT100/3_Absolute-equality.pg +++ b/Contrib/METU-NCC/MAT100/3_Absolute-equality.pg @@ -1,5 +1,5 @@ ## BEGIN_DESCRIPTION -## Solve equality with absolute value +## Solve equality with absolute value ## END_DESCRIPTION ## ############################################## @@ -19,7 +19,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -44,9 +44,9 @@ BEGIN_TEXT Solve the following equality. \[ \left|\frac{2 $var - $a}{$b}\right| = $c \] $PAR -Answer: \( $var = \)\{ ans_rule(20) \} +Answer: \( $var = \)\{ ans_rule(20) \} $PAR -$SPACE $SPACE +$SPACE $SPACE Enter multiple solutions separated by commas e.g. "3/2 , sqrt(2)". END_TEXT diff --git a/Contrib/Mizzou/Algebra/eqns_linear/linear_eqns_30_ia_npl.pg b/Contrib/Mizzou/Algebra/eqns_linear/linear_eqns_30_ia_npl.pg index 8a06cf2d64..893c1abb5d 100644 --- a/Contrib/Mizzou/Algebra/eqns_linear/linear_eqns_30_ia_npl.pg +++ b/Contrib/Mizzou/Algebra/eqns_linear/linear_eqns_30_ia_npl.pg @@ -1,6 +1,6 @@ ##DESCRIPTION ## Word problem -## +## ##ENDDESCRIPTION ## DBsubject('Intermediate Algebra') ## DBchapter('Ch 01: Algebra, Mathematical Models and Problem Solving') @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "parserMultiAnswer.pl", "PGunion.pl", @@ -74,8 +74,8 @@ $multians = MultiAnswer($num, $den)->with( my ( $correct, $student, $self ) = @_; my ( $f1stu, $f2stu ) = @{$student}; my ( $f1, $f2 ) = @{$correct}; - - if ( ( $f1==$f1stu && $f2==$f2stu) || + + if ( ( $f1==$f1stu && $f2==$f2stu) || (-$f1==$f1stu && -$f2==$f2stu) ) { return [1,1]; } elsif ( $f1==$f1stu || -$f1==$f1stu) { @@ -148,10 +148,10 @@ else { Write your answer as a single fraction, and type the numerator and denominator separately in the answer blanks provided. $PAR END_TEXT -} +} Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/eqns_linear/linear_eqns_31_ia_npl.pg b/Contrib/Mizzou/Algebra/eqns_linear/linear_eqns_31_ia_npl.pg index f18df78fa1..b4b6387632 100644 --- a/Contrib/Mizzou/Algebra/eqns_linear/linear_eqns_31_ia_npl.pg +++ b/Contrib/Mizzou/Algebra/eqns_linear/linear_eqns_31_ia_npl.pg @@ -1,6 +1,6 @@ ##DESCRIPTION ## Word problem -## +## ##ENDDESCRIPTION ## DBsubject('Intermediate Algebra') ## DBchapter('Ch 01: Algebra, Mathematical Models and Problem Solving') @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "parserMultiAnswer.pl", "PGunion.pl", @@ -68,8 +68,8 @@ $multians = MultiAnswer($num, $den)->with( my ( $correct, $student, $self ) = @_; my ( $f1stu, $f2stu ) = @{$student}; my ( $f1, $f2 ) = @{$correct}; - - if ( ( $f1==$f1stu && $f2==$f2stu) || + + if ( ( $f1==$f1stu && $f2==$f2stu) || (-$f1==$f1stu && -$f2==$f2stu) ) { return [1,1]; } elsif ( $f1==$f1stu || -$f1==$f1stu) { @@ -142,9 +142,9 @@ else { Write your answer as a single fraction, and type the numerator and denominator separately in the answer blanks provided. $PAR END_TEXT -} +} Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/eqns_linear/linear_eqns_33_ia_npl.pg b/Contrib/Mizzou/Algebra/eqns_linear/linear_eqns_33_ia_npl.pg index 73c88447f5..22dc1596e7 100644 --- a/Contrib/Mizzou/Algebra/eqns_linear/linear_eqns_33_ia_npl.pg +++ b/Contrib/Mizzou/Algebra/eqns_linear/linear_eqns_33_ia_npl.pg @@ -1,6 +1,6 @@ ##DESCRIPTION ## Word problem -## +## ##ENDDESCRIPTION ## DBsubject('Intermediate Algebra') ## DBchapter('Ch 01: Algebra, Mathematical Models and Problem Solving') @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "parserMultiAnswer.pl", "PGunion.pl", @@ -71,8 +71,8 @@ $multians = MultiAnswer($num, $den)->with( my ( $correct, $student, $self ) = @_; my ( $f1stu, $f2stu ) = @{$student}; my ( $f1, $f2 ) = @{$correct}; - - if ( ( $f1==$f1stu && $f2==$f2stu) || + + if ( ( $f1==$f1stu && $f2==$f2stu) || (-$f1==$f1stu && -$f2==$f2stu) ) { return [1,1]; } elsif ( $f1==$f1stu || -$f1==$f1stu) { @@ -145,9 +145,9 @@ else { Write your answer as a single fraction, and type the numerator and denominator separately in the answer blanks provided. $PAR END_TEXT -} +} Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/eqns_linear/linear_eqns_34_ia_npl.pg b/Contrib/Mizzou/Algebra/eqns_linear/linear_eqns_34_ia_npl.pg index 8d9b32b808..9ca6797902 100644 --- a/Contrib/Mizzou/Algebra/eqns_linear/linear_eqns_34_ia_npl.pg +++ b/Contrib/Mizzou/Algebra/eqns_linear/linear_eqns_34_ia_npl.pg @@ -1,6 +1,6 @@ ##DESCRIPTION ## Word problem -## +## ##ENDDESCRIPTION ## DBsubject('Intermediate Algebra') ## DBchapter('Ch 01: Algebra, Mathematical Models and Problem Solving') @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "parserMultiAnswer.pl", "PGunion.pl", @@ -68,8 +68,8 @@ $multians = MultiAnswer($num, $den)->with( my ( $correct, $student, $self ) = @_; my ( $f1stu, $f2stu ) = @{$student}; my ( $f1, $f2 ) = @{$correct}; - - if ( ( $f1==$f1stu && $f2==$f2stu) || + + if ( ( $f1==$f1stu && $f2==$f2stu) || (-$f1==$f1stu && -$f2==$f2stu) ) { return [1,1]; } elsif ( $f1==$f1stu || -$f1==$f1stu) { @@ -142,9 +142,9 @@ else { Write your answer as a single fraction, and type the numerator and denominator separately in the answer blanks provided. $PAR END_TEXT -} +} Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/eqns_quadratic/comp_sqr_02.pg b/Contrib/Mizzou/Algebra/eqns_quadratic/comp_sqr_02.pg index ee3cbd569d..876731d992 100644 --- a/Contrib/Mizzou/Algebra/eqns_quadratic/comp_sqr_02.pg +++ b/Contrib/Mizzou/Algebra/eqns_quadratic/comp_sqr_02.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "fracListChecker.pl", @@ -51,7 +51,7 @@ sub primefac { ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### setFracListFunctions(); # set up context for custom checker $num = random(2,9)*random(-1,1,2); @@ -81,12 +81,12 @@ $den2 = 4*(($den)**2)/gcd(($num)**2 - 4*(($den)**2)*$c,4*(($den)**2)); $insn = 1; $insd = 1; $outn = 1; $outd = 1; for ($i = 0; $i < scalar(@facsn); $i = $i+2) { - $insn = $insn*(($facsn[$i])**($facsn[$i+1]%2)); - $outn = $outn*(($facsn[$i])**(floor($facsn[$i+1]/2))); + $insn = $insn*(($facsn[$i])**($facsn[$i+1]%2)); + $outn = $outn*(($facsn[$i])**(floor($facsn[$i+1]/2))); } for ($i = 0; $i < scalar(@facsd); $i = $i+2) { - $insd = $insd*(($facsd[$i])**($facsd[$i+1]%2)); - $outd = $outd*(($facsd[$i])**(floor($facsd[$i+1]/2))); + $insd = $insd*(($facsd[$i])**($facsd[$i+1]%2)); + $outd = $outd*(($facsd[$i])**(floor($facsd[$i+1]/2))); } $out = Fraction($outn,$outd)->reduce; $ins = Fraction($insn,$insd)->reduce; @@ -111,12 +111,12 @@ $texanswer = "\(\displaystyle x = $dispa1, $dispa2\)"; $answer = ($ins != 1) ? List(Formula("$a1"), Formula("$a2")) : List(Fraction($a1)->reduce, Fraction($a2)->reduce); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT -Follow the steps to solve the equation: -$BR \[$eqn\] $BR +Follow the steps to solve the equation: +$BR \[$eqn\] $BR by completing the square. $BR $PAR ${BBOLD}Step 1:${EBOLD} First move \(c\) over and then add \(\left(\frac{b}{2}\right)^2\) to both sides. @@ -138,7 +138,7 @@ Context()->normalStrings; ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($LHSAns1->cmp(studentsMustReduceFractions=>1)); ANS($RHSAns1->cmp(studentsMustReduceFractions=>1)); @@ -155,7 +155,7 @@ Context()->texStrings; if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR - ${BBOLD}Answer:${EBOLD} + ${BBOLD}Answer:${EBOLD} $PAR ${BBOLD}Step 1:${EBOLD} \(x^2 + $b x + $LHSAns1 = $RHSConstant + $RHSAns1\) $PAR @@ -172,7 +172,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited and updated in 2012/2013. $BR diff --git a/Contrib/Mizzou/Algebra/eqns_radical/eqns_rad_07_ia.pg b/Contrib/Mizzou/Algebra/eqns_radical/eqns_rad_07_ia.pg index bddfffc680..385a7894d5 100644 --- a/Contrib/Mizzou/Algebra/eqns_radical/eqns_rad_07_ia.pg +++ b/Contrib/Mizzou/Algebra/eqns_radical/eqns_rad_07_ia.pg @@ -11,14 +11,14 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -29,7 +29,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Fraction-NoDecimals"); Context()->strings->add("no solution"=>{}); @@ -48,7 +48,7 @@ $ans = Fraction("(($d-$c)**3 - $b)/$a"); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -63,7 +63,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ans->cmp(studentsMustReduceFractions=>1)); @@ -81,12 +81,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Note:$EBOLD Write your answer in exact form using square roots or radical notation if necessary. \{ AnswerFormatHelp("exponents", "Click here for help writing square roots.")\} If there is more than one correct answer, enter your answers as a comma separated list. If the equation has no real solution, write "No Solution." + ${BBOLD}Note:$EBOLD Write your answer in exact form using square roots or radical notation if necessary. \{ helpLink("exponents", "Click here for help writing square roots.")\} If there is more than one correct answer, enter your answers as a comma separated list. If the equation has no real solution, write "No Solution." $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Solve radical equations of form sqrt[3]{x + $b} + $c = $d.'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/eqns_radical/eqns_rad_08_ia.pg b/Contrib/Mizzou/Algebra/eqns_radical/eqns_rad_08_ia.pg index 0d792a4099..cc789a84ec 100644 --- a/Contrib/Mizzou/Algebra/eqns_radical/eqns_rad_08_ia.pg +++ b/Contrib/Mizzou/Algebra/eqns_radical/eqns_rad_08_ia.pg @@ -11,14 +11,14 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -29,7 +29,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Fraction-NoDecimals"); Context()->strings->add("no solution"=>{}); @@ -73,7 +73,7 @@ if ($aq >= 0) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -88,7 +88,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### if (scalar(@ans) > 0) { $ans = List(@ans); @@ -113,12 +113,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Note:$EBOLD Write your answer in exact form using square roots or radical notation if necessary. \{ AnswerFormatHelp("exponents", "Click here for help writing square roots.")\} If there is more than one correct answer, enter your answers as a comma separated list. If the equation has no real solution, write "No Solution." + ${BBOLD}Note:$EBOLD Write your answer in exact form using square roots or radical notation if necessary. \{ helpLink("exponents", "Click here for help writing square roots.")\} If there is more than one correct answer, enter your answers as a comma separated list. If the equation has no real solution, write "No Solution." $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Solve radical equations of form x - sqrt(b x + c) = d.'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/eqns_radical/eqns_rad_09_ia.pg b/Contrib/Mizzou/Algebra/eqns_radical/eqns_rad_09_ia.pg index 79617798c2..8ffd095f4d 100644 --- a/Contrib/Mizzou/Algebra/eqns_radical/eqns_rad_09_ia.pg +++ b/Contrib/Mizzou/Algebra/eqns_radical/eqns_rad_09_ia.pg @@ -11,14 +11,14 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -28,7 +28,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); Context()->strings->add("no solution"=>{}); @@ -42,7 +42,7 @@ $disp = ($p == 2) ? "-\sqrt{$a x} + $b = $c" : "-\sqrt[3]{$a x} + $b = $c"; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -57,7 +57,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ans->cmp()); @@ -75,12 +75,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Note:$EBOLD Write your answer in exact form using square roots or radical notation if necessary. \{ AnswerFormatHelp("exponents", "Click here for help writing square roots.")\} If there is more than one correct answer, enter your answers as a comma separated list. If the equation has no real solution, write "No Solution." + ${BBOLD}Note:$EBOLD Write your answer in exact form using square roots or radical notation if necessary. \{ helpLink("exponents", "Click here for help writing square roots.")\} If there is more than one correct answer, enter your answers as a comma separated list. If the equation has no real solution, write "No Solution." $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Solve radical equations of form sqrt{a x} + b = c or -sqrt[3]{a x} + b = c.'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/eqns_radical/eqns_rad_two_parts_01_ia.pg b/Contrib/Mizzou/Algebra/eqns_radical/eqns_rad_two_parts_01_ia.pg index 01c14d5b5b..c7db1b727a 100644 --- a/Contrib/Mizzou/Algebra/eqns_radical/eqns_rad_two_parts_01_ia.pg +++ b/Contrib/Mizzou/Algebra/eqns_radical/eqns_rad_two_parts_01_ia.pg @@ -11,14 +11,14 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -29,7 +29,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Fraction-NoDecimals"); Context()->strings->add("no solution"=>{}); @@ -68,7 +68,7 @@ if ($case2 == 0) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -81,7 +81,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ansa->cmp(studentsMustReduceFractions=>1)); if ($case2 == 0) { @@ -89,7 +89,7 @@ if ($case2 == 0) { } else { $dansb = "\(x = $tmp\)"; ANS($ansb->cmp(studentsMustReduceFractions=>1)); -} +} ########################################################################### @@ -105,12 +105,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Note:$EBOLD Write your answer in exact form using square roots or radical notation if necessary. \{ AnswerFormatHelp("exponents", "Click here for help writing square roots.")\} If there is more than one correct answer, enter your answers as a comma separated list. If the equation has no real solution, write "No Solution." + ${BBOLD}Note:$EBOLD Write your answer in exact form using square roots or radical notation if necessary. \{ helpLink("exponents", "Click here for help writing square roots.")\} If there is more than one correct answer, enter your answers as a comma separated list. If the equation has no real solution, write "No Solution." $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Solve radical equations of form sqrt[n](x-a) = b and sqrt[n](a x) = b, where n = 2,3.'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/eqns_rational/rational_eqns_12.pg b/Contrib/Mizzou/Algebra/eqns_rational/rational_eqns_12.pg index f786a9ef0d..82ceff44df 100644 --- a/Contrib/Mizzou/Algebra/eqns_rational/rational_eqns_12.pg +++ b/Contrib/Mizzou/Algebra/eqns_rational/rational_eqns_12.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -28,7 +28,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); Context()->variables->are(x=>"Real", y=>"Real", z=>"Real", uc("x")=>"Real", uc("y")=>"Real", uc("z")=>"Real"); @@ -94,11 +94,11 @@ if ($case == 0) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT -Solve the following equation for \($solvefor\): +Solve the following equation for \($solvefor\): $PAR \[ \displaystyle $dispeqn @@ -110,7 +110,7 @@ Context()->normalStrings; ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($ans)->cmp()); @@ -123,7 +123,7 @@ Context()->texStrings; if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR - ${BBOLD}Answer:${EBOLD} + ${BBOLD}Answer:${EBOLD} \($solvefor = \displaystyle\frac{$num}{$den}\) $PAR END_TEXT @@ -133,7 +133,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited and updated in 2012/2013. $BR diff --git a/Contrib/Mizzou/Algebra/eqns_rational/rational_eqns_13_ia.pg b/Contrib/Mizzou/Algebra/eqns_rational/rational_eqns_13_ia.pg index bd2f4ef82c..46e8f71b24 100644 --- a/Contrib/Mizzou/Algebra/eqns_rational/rational_eqns_13_ia.pg +++ b/Contrib/Mizzou/Algebra/eqns_rational/rational_eqns_13_ia.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical', 'equations') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Equations and Inequalities') -## DBchapter('Other Equations') +## DBchapter('Other Equations') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -87,7 +87,7 @@ END_TEXT if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR - ${BBOLD}Answer:${EBOLD} + ${BBOLD}Answer:${EBOLD} \($var = $ans\) $PAR END_TEXT @@ -99,7 +99,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('MathObject version', 'Features PeriodicRerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/eqns_systems_solving/eqns_systems_graph_01.pg b/Contrib/Mizzou/Algebra/eqns_systems_solving/eqns_systems_graph_01.pg index 2f89ed3bef..77dd7c46ac 100644 --- a/Contrib/Mizzou/Algebra/eqns_systems_solving/eqns_systems_graph_01.pg +++ b/Contrib/Mizzou/Algebra/eqns_systems_solving/eqns_systems_graph_01.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -32,7 +32,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("LimitedPoint"); Context()->strings->add("no solution"=>{}, "no solutions"=>{alias=>"no solution"}, "no soln"=>{alias=>"no solution"}, "no solns"=>{alias=>"no solution"}, "none"=>{alias=>"no solution"}, "infinitely many"=>{}); @@ -115,7 +115,7 @@ if ($y0 == $y2) { $fun2->steps(1500); } # uncomment to put show intersection point on the graph -#$graph->stamps(new Circle($x0, $y0, 6, 'blue', 'blue')); +#$graph->stamps(new Circle($x0, $y0, 6, 'blue', 'blue')); # here in order to write the system in the problem statement $xcoeff1 = $y0-$y1; @@ -146,7 +146,7 @@ if ($ycoeff1 == 0 && $xcoeff2 == 0) { if ($xcoeff1 == 1) {$eqn = $eqn."x"} elsif ($xcoeff1 == -1) {$eqn = $eqn."-x"} else {$eqn = $eqn."$xcoeff1 x"}; $eqn = $eqn." & & & = & $const1\\"; if ($xcoeff2 == 1) {$eqn = $eqn."x"} elsif ($xcoeff2 == -1) {$eqn = $eqn."-x"} else {$eqn = $eqn."$xcoeff2 x"}; - $eqn = $eqn." & $sign2 & "; + $eqn = $eqn." & $sign2 & "; if ($ycoeff2 == 1) {$eqn = $eqn."y"} else {$eqn = $eqn."$ycoeff2 y"}; $eqn = $eqn."& = & $const2 \end{array} \right. \)"; } elsif ($ycoeff1 != 0 && $xcoeff2 == 0) { @@ -167,7 +167,7 @@ if ($ycoeff1 == 0 && $xcoeff2 == 0) { if ($ycoeff1 == 1) {$eqn = $eqn."y"} else {$eqn = $eqn."$ycoeff1 y"}; $eqn = $eqn." & = & $const1\\"; if ($xcoeff2 == 1) {$eqn = $eqn."x"} elsif ($xcoeff2 == -1) {$eqn = $eqn."-x"} else {$eqn = $eqn."$xcoeff2 x"}; - $eqn = $eqn." & $sign2 & "; + $eqn = $eqn." & $sign2 & "; if ($ycoeff2 == 1) {$eqn = $eqn."y"} else {$eqn = $eqn."$ycoeff2 y"}; $eqn = $eqn."& = & $const2 \end{array} \right. \)"; } @@ -175,7 +175,7 @@ $answer = Point("($x0,$y0)"); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -183,15 +183,15 @@ Solve the following system of equations graphically: $eqn $PAR $BCENTER \{ image( insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>800 ) \} -$ECENTER +$ECENTER $PAR -Answer: \{ans_rule(20)\} +Answer: \{ans_rule(20)\} END_TEXT Context()->normalStrings; ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp(tolType => 'absolute', tolerance => 0.2)); diff --git a/Contrib/Mizzou/Algebra/exponents_integers/exp_ints_two_parts_01_ia.pg b/Contrib/Mizzou/Algebra/exponents_integers/exp_ints_two_parts_01_ia.pg index 8a0da1c2ca..3663ca9860 100644 --- a/Contrib/Mizzou/Algebra/exponents_integers/exp_ints_two_parts_01_ia.pg +++ b/Contrib/Mizzou/Algebra/exponents_integers/exp_ints_two_parts_01_ia.pg @@ -11,14 +11,14 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "contextLimitedPowers.pl", "PGcourse.pl" ); @@ -29,7 +29,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @vars = ("x","y","z","s","t"); @@ -52,7 +52,7 @@ Context()->operators->undefine("^","**"); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -65,7 +65,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ansa->cmp()); ANS($ansb->cmp()); @@ -84,12 +84,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("formulas", "Click here for help entering formulas as answers.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("formulas", "Click here for help entering formulas as answers.")\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/exponents_rational/conv_exp_to_exp_two_term_div_01.pg b/Contrib/Mizzou/Algebra/exponents_rational/conv_exp_to_exp_two_term_div_01.pg index cf169fa5de..262cf29032 100644 --- a/Contrib/Mizzou/Algebra/exponents_rational/conv_exp_to_exp_two_term_div_01.pg +++ b/Contrib/Mizzou/Algebra/exponents_rational/conv_exp_to_exp_two_term_div_01.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical expression', 'rational powers') -## DBsubject('Algebra') -## DBchapter('Basic Algebra') -## DBsection('Exponents and Radicals') +## DBsubject('Algebra') +## DBchapter('Basic Algebra') +## DBsection('Exponents and Radicals') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -29,7 +29,7 @@ loadMacros( "PGunion.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "contextLimitedPowers.pl", "contextFraction.pl", "PeriodicRerandomization.pl", @@ -143,7 +143,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); $showPartialCorrectAnswers = 1; diff --git a/Contrib/Mizzou/Algebra/exponents_rational/conv_exp_to_exp_two_term_div_02.pg b/Contrib/Mizzou/Algebra/exponents_rational/conv_exp_to_exp_two_term_div_02.pg index e45f2358c6..8223effd32 100644 --- a/Contrib/Mizzou/Algebra/exponents_rational/conv_exp_to_exp_two_term_div_02.pg +++ b/Contrib/Mizzou/Algebra/exponents_rational/conv_exp_to_exp_two_term_div_02.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical expression', 'rational powers') -## DBsubject('Algebra') -## DBchapter('Basic Algebra') -## DBsection('Exponents and Radicals') +## DBsubject('Algebra') +## DBchapter('Basic Algebra') +## DBsection('Exponents and Radicals') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -29,7 +29,7 @@ loadMacros( "PGunion.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -78,7 +78,7 @@ Simplify and write the following as a single rational exponent of \($var\). If $PAR \[$expression = $var^m \] $PAR -then +then $PAR \(m = \) \{ANS_RULE(5)\} END_TEXT @@ -98,7 +98,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); $showPartialCorrectAnswers = 1; diff --git a/Contrib/Mizzou/Algebra/exponents_rational/conv_exp_to_exp_two_term_mult_01.pg b/Contrib/Mizzou/Algebra/exponents_rational/conv_exp_to_exp_two_term_mult_01.pg index 83c75501ca..e03f6e4f15 100644 --- a/Contrib/Mizzou/Algebra/exponents_rational/conv_exp_to_exp_two_term_mult_01.pg +++ b/Contrib/Mizzou/Algebra/exponents_rational/conv_exp_to_exp_two_term_mult_01.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical expression', 'rational powers') -## DBsubject('Algebra') -## DBchapter('Basic Algebra') -## DBsection('Exponents and Radicals') +## DBsubject('Algebra') +## DBchapter('Basic Algebra') +## DBsection('Exponents and Radicals') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -29,7 +29,7 @@ loadMacros( "PGunion.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "contextLimitedPowers.pl", "contextFraction.pl", "PeriodicRerandomization.pl", @@ -145,7 +145,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); $showPartialCorrectAnswers = 1; diff --git a/Contrib/Mizzou/Algebra/exponents_rational/conv_exp_to_exp_two_term_mult_02.pg b/Contrib/Mizzou/Algebra/exponents_rational/conv_exp_to_exp_two_term_mult_02.pg index 61ef5187ee..08a51b5d16 100644 --- a/Contrib/Mizzou/Algebra/exponents_rational/conv_exp_to_exp_two_term_mult_02.pg +++ b/Contrib/Mizzou/Algebra/exponents_rational/conv_exp_to_exp_two_term_mult_02.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical expression', 'rational powers') -## DBsubject('Algebra') -## DBchapter('Basic Algebra') -## DBsection('Exponents and Radicals') +## DBsubject('Algebra') +## DBchapter('Basic Algebra') +## DBsection('Exponents and Radicals') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -29,7 +29,7 @@ loadMacros( "PGunion.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -101,7 +101,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); $showPartialCorrectAnswers = 1; diff --git a/Contrib/Mizzou/Algebra/exponents_rational/conv_exp_to_exp_two_term_mult_03.pg b/Contrib/Mizzou/Algebra/exponents_rational/conv_exp_to_exp_two_term_mult_03.pg index 687bfbbe05..1f461437cc 100644 --- a/Contrib/Mizzou/Algebra/exponents_rational/conv_exp_to_exp_two_term_mult_03.pg +++ b/Contrib/Mizzou/Algebra/exponents_rational/conv_exp_to_exp_two_term_mult_03.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical expression', 'rational powers') -## DBsubject('Algebra') -## DBchapter('Basic Algebra') -## DBsection('Exponents and Radicals') +## DBsubject('Algebra') +## DBchapter('Basic Algebra') +## DBsection('Exponents and Radicals') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -29,7 +29,7 @@ loadMacros( "PGunion.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -76,7 +76,7 @@ Simplify and write the following as a single rational exponent of \($var\). If $PAR \[$expression = $var^m \] $PAR -then +then $PAR \(m = \) \{ANS_RULE(5)\} END_TEXT @@ -96,7 +96,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); $showPartialCorrectAnswers = 1; diff --git a/Contrib/Mizzou/Algebra/exponents_rational/conv_exp_to_rad_one_term_01.pg b/Contrib/Mizzou/Algebra/exponents_rational/conv_exp_to_rad_one_term_01.pg index 3c0b20d760..e2af97243f 100644 --- a/Contrib/Mizzou/Algebra/exponents_rational/conv_exp_to_rad_one_term_01.pg +++ b/Contrib/Mizzou/Algebra/exponents_rational/conv_exp_to_rad_one_term_01.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical expression', 'rational powers') -## DBsubject('Algebra') -## DBchapter('Basic Algebra') -## DBsection('Exponents and Radicals') +## DBsubject('Algebra') +## DBchapter('Basic Algebra') +## DBsection('Exponents and Radicals') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -29,7 +29,7 @@ loadMacros( "PGunion.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -103,7 +103,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); $showPartialCorrectAnswers = 1; diff --git a/Contrib/Mizzou/Algebra/exponents_rational/conv_rad_to_exp_one_term_01.pg b/Contrib/Mizzou/Algebra/exponents_rational/conv_rad_to_exp_one_term_01.pg index 6d3307713a..e638957e4e 100644 --- a/Contrib/Mizzou/Algebra/exponents_rational/conv_rad_to_exp_one_term_01.pg +++ b/Contrib/Mizzou/Algebra/exponents_rational/conv_rad_to_exp_one_term_01.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical expression', 'rational powers') -## DBsubject('Algebra') -## DBchapter('Basic Algebra') -## DBsection('Exponents and Radicals') +## DBsubject('Algebra') +## DBchapter('Basic Algebra') +## DBsection('Exponents and Radicals') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -29,7 +29,7 @@ loadMacros( "PGunion.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -93,7 +93,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); $showPartialCorrectAnswers = 1; diff --git a/Contrib/Mizzou/Algebra/exponents_rational/conv_rad_to_exp_one_term_02.pg b/Contrib/Mizzou/Algebra/exponents_rational/conv_rad_to_exp_one_term_02.pg index 10fdfffc3b..8208b032b5 100644 --- a/Contrib/Mizzou/Algebra/exponents_rational/conv_rad_to_exp_one_term_02.pg +++ b/Contrib/Mizzou/Algebra/exponents_rational/conv_rad_to_exp_one_term_02.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical expression', 'rational powers') -## DBsubject('Algebra') -## DBchapter('Basic Algebra') -## DBsection('Exponents and Radicals') +## DBsubject('Algebra') +## DBchapter('Basic Algebra') +## DBsection('Exponents and Radicals') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -29,7 +29,7 @@ loadMacros( "PGunion.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -91,7 +91,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); $showPartialCorrectAnswers = 1; diff --git a/Contrib/Mizzou/Algebra/exponents_rational/conv_rad_to_exp_one_term_03.pg b/Contrib/Mizzou/Algebra/exponents_rational/conv_rad_to_exp_one_term_03.pg index ab48db1e2b..038c32d035 100644 --- a/Contrib/Mizzou/Algebra/exponents_rational/conv_rad_to_exp_one_term_03.pg +++ b/Contrib/Mizzou/Algebra/exponents_rational/conv_rad_to_exp_one_term_03.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical expression', 'rational powers') -## DBsubject('Algebra') -## DBchapter('Basic Algebra') -## DBsection('Exponents and Radicals') +## DBsubject('Algebra') +## DBchapter('Basic Algebra') +## DBsection('Exponents and Radicals') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -29,7 +29,7 @@ loadMacros( "PGunion.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -94,7 +94,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); $showPartialCorrectAnswers = 1; diff --git a/Contrib/Mizzou/Algebra/exponents_rational/conv_rad_to_exp_two_term_frac_01.pg b/Contrib/Mizzou/Algebra/exponents_rational/conv_rad_to_exp_two_term_frac_01.pg index ae43685e39..2090f60f01 100644 --- a/Contrib/Mizzou/Algebra/exponents_rational/conv_rad_to_exp_two_term_frac_01.pg +++ b/Contrib/Mizzou/Algebra/exponents_rational/conv_rad_to_exp_two_term_frac_01.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical expression', 'rational powers') -## DBsubject('Algebra') -## DBchapter('Basic Algebra') -## DBsection('Exponents and Radicals') +## DBsubject('Algebra') +## DBchapter('Basic Algebra') +## DBsection('Exponents and Radicals') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -29,7 +29,7 @@ loadMacros( "PGunion.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -97,7 +97,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); $showPartialCorrectAnswers = 1; diff --git a/Contrib/Mizzou/Algebra/exponents_rational/conv_rad_to_exp_two_term_frac_02.pg b/Contrib/Mizzou/Algebra/exponents_rational/conv_rad_to_exp_two_term_frac_02.pg index 4ffa052c3f..f7a09bb989 100644 --- a/Contrib/Mizzou/Algebra/exponents_rational/conv_rad_to_exp_two_term_frac_02.pg +++ b/Contrib/Mizzou/Algebra/exponents_rational/conv_rad_to_exp_two_term_frac_02.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical expression', 'rational powers') -## DBsubject('Algebra') -## DBchapter('Basic Algebra') -## DBsection('Exponents and Radicals') +## DBsubject('Algebra') +## DBchapter('Basic Algebra') +## DBsection('Exponents and Radicals') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -29,7 +29,7 @@ loadMacros( "PGunion.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -80,7 +80,7 @@ Simplify and write the following using a single rational exponent of \($var\). I $BR \[$expression = $var^m \] $BR -then +then $BR \(m = \) \{ANS_RULE(5)\} END_TEXT @@ -100,7 +100,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); $showPartialCorrectAnswers = 1; diff --git a/Contrib/Mizzou/Algebra/exponents_rational/conv_rad_to_exp_two_term_mult_01.pg b/Contrib/Mizzou/Algebra/exponents_rational/conv_rad_to_exp_two_term_mult_01.pg index 1ca8c55ffe..ce6af7348a 100644 --- a/Contrib/Mizzou/Algebra/exponents_rational/conv_rad_to_exp_two_term_mult_01.pg +++ b/Contrib/Mizzou/Algebra/exponents_rational/conv_rad_to_exp_two_term_mult_01.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical expression', 'rational powers') -## DBsubject('Algebra') -## DBchapter('Basic Algebra') -## DBsection('Exponents and Radicals') +## DBsubject('Algebra') +## DBchapter('Basic Algebra') +## DBsection('Exponents and Radicals') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -29,7 +29,7 @@ loadMacros( "PGunion.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "contextLimitedPowers.pl", "contextFraction.pl", "PeriodicRerandomization.pl", @@ -141,7 +141,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); $showPartialCorrectAnswers = 1; diff --git a/Contrib/Mizzou/Algebra/exponents_rational/conv_rad_to_exp_two_term_mult_02.pg b/Contrib/Mizzou/Algebra/exponents_rational/conv_rad_to_exp_two_term_mult_02.pg index a9e435aa97..d50adaf154 100644 --- a/Contrib/Mizzou/Algebra/exponents_rational/conv_rad_to_exp_two_term_mult_02.pg +++ b/Contrib/Mizzou/Algebra/exponents_rational/conv_rad_to_exp_two_term_mult_02.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical expression', 'rational powers') -## DBsubject('Algebra') -## DBchapter('Basic Algebra') -## DBsection('Exponents and Radicals') +## DBsubject('Algebra') +## DBchapter('Basic Algebra') +## DBsection('Exponents and Radicals') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -29,7 +29,7 @@ loadMacros( "PGunion.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -95,7 +95,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); $showPartialCorrectAnswers = 1; diff --git a/Contrib/Mizzou/Algebra/exponents_rational/conv_rad_to_rad_two_term_frac_01.pg b/Contrib/Mizzou/Algebra/exponents_rational/conv_rad_to_rad_two_term_frac_01.pg index e526b2920d..74d95aaba9 100644 --- a/Contrib/Mizzou/Algebra/exponents_rational/conv_rad_to_rad_two_term_frac_01.pg +++ b/Contrib/Mizzou/Algebra/exponents_rational/conv_rad_to_rad_two_term_frac_01.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical expression', 'rational powers') -## DBsubject('Algebra') -## DBchapter('Basic Algebra') -## DBsection('Exponents and Radicals') +## DBsubject('Algebra') +## DBchapter('Basic Algebra') +## DBsection('Exponents and Radicals') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -29,7 +29,7 @@ loadMacros( "PGunion.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -80,7 +80,7 @@ Use rational exponents to simplify and write the following using a single radica $PAR \[$expression = $RHS \] $PAR -then +then $PAR \(n = \) \{ans_rule(5)\} and \(m = \) \{ans_rule(5)\} END_TEXT @@ -100,7 +100,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); $showPartialCorrectAnswers = 1; diff --git a/Contrib/Mizzou/Algebra/exponents_rational/conv_rad_to_rad_two_term_mult_01.pg b/Contrib/Mizzou/Algebra/exponents_rational/conv_rad_to_rad_two_term_mult_01.pg index 1b91885ef2..9f59d06eff 100644 --- a/Contrib/Mizzou/Algebra/exponents_rational/conv_rad_to_rad_two_term_mult_01.pg +++ b/Contrib/Mizzou/Algebra/exponents_rational/conv_rad_to_rad_two_term_mult_01.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical expression', 'rational powers') -## DBsubject('Algebra') -## DBchapter('Basic Algebra') -## DBsection('Exponents and Radicals') +## DBsubject('Algebra') +## DBchapter('Basic Algebra') +## DBsection('Exponents and Radicals') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -29,7 +29,7 @@ loadMacros( "PGunion.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -80,7 +80,7 @@ Use rational exponents to simplify and write the following using a single radica $PAR \[$expression = $RHS \] $PAR -then +then $PAR \(n = \) \{ans_rule(5)\} and \(m = \) \{ans_rule(5)\} END_TEXT @@ -100,7 +100,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); $showPartialCorrectAnswers = 1; diff --git a/Contrib/Mizzou/Algebra/factoring_substitution/factoring_sub_14_ia.pg b/Contrib/Mizzou/Algebra/factoring_substitution/factoring_sub_14_ia.pg index 5b9631cc8a..27823ab439 100644 --- a/Contrib/Mizzou/Algebra/factoring_substitution/factoring_sub_14_ia.pg +++ b/Contrib/Mizzou/Algebra/factoring_substitution/factoring_sub_14_ia.pg @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "contextLimitedPolynomial.pl", "PGcourse.pl" @@ -90,11 +90,11 @@ $multians = MultiAnswer($fac1, $fac2)->with( # Main text Context()->texStrings; BEGIN_TEXT -Factor the expression and simplify your +Factor the expression and simplify your answer as much as possible: $PAR ${BCENTER} -$expression \(= \) +$expression \(= \) \( \big( \) \{ $multians->ans_rule(20) \} \( \big) \big( \) @@ -116,11 +116,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { $texanswer $PAR END_TEXT -} +} Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ diff --git a/Contrib/Mizzou/Algebra/functions_evaluating/fun_eval_15_ia.pg b/Contrib/Mizzou/Algebra/functions_evaluating/fun_eval_15_ia.pg index 587c9db489..04b7021bb5 100644 --- a/Contrib/Mizzou/Algebra/functions_evaluating/fun_eval_15_ia.pg +++ b/Contrib/Mizzou/Algebra/functions_evaluating/fun_eval_15_ia.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# +# # ENDDESCRIPTION ## DBsubject('Algebra') @@ -11,7 +11,7 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( @@ -20,7 +20,7 @@ loadMacros( "PeriodicRerandomization.pl", "contextLimitedPowers.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -53,7 +53,7 @@ package main; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); Context()->functions->set(sqrt=>{class=>'my::Function::numeric'}); @@ -93,7 +93,7 @@ $ans3 = Formula("$ins3"); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -110,7 +110,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS( $ans0-> cmp( checker => sub { my ($correct,$student,$ans) = @_; @@ -218,13 +218,13 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} - \{ AnswerFormatHelp("exponents", "Click here for help writing exponents and square roots.") \} + ${BBOLD}Help:${EBOLD} + \{ helpLink("exponents", "Click here for help writing exponents and square roots.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/functions_even_odd_symmetry/even_odd_01.pg b/Contrib/Mizzou/Algebra/functions_even_odd_symmetry/even_odd_01.pg index 8423c4e784..b7a5f92afb 100644 --- a/Contrib/Mizzou/Algebra/functions_even_odd_symmetry/even_odd_01.pg +++ b/Contrib/Mizzou/Algebra/functions_even_odd_symmetry/even_odd_01.pg @@ -26,7 +26,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -81,7 +81,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ diff --git a/Contrib/Mizzou/Algebra/functions_even_odd_symmetry/even_odd_02.pg b/Contrib/Mizzou/Algebra/functions_even_odd_symmetry/even_odd_02.pg index a56a1ef555..35bbfae9b0 100644 --- a/Contrib/Mizzou/Algebra/functions_even_odd_symmetry/even_odd_02.pg +++ b/Contrib/Mizzou/Algebra/functions_even_odd_symmetry/even_odd_02.pg @@ -26,7 +26,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -81,7 +81,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ diff --git a/Contrib/Mizzou/Algebra/functions_even_odd_symmetry/even_odd_03.pg b/Contrib/Mizzou/Algebra/functions_even_odd_symmetry/even_odd_03.pg index 11892eb8f0..77c5bfea6d 100644 --- a/Contrib/Mizzou/Algebra/functions_even_odd_symmetry/even_odd_03.pg +++ b/Contrib/Mizzou/Algebra/functions_even_odd_symmetry/even_odd_03.pg @@ -24,7 +24,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -83,7 +83,7 @@ for ($i = $degt; $i >= 0; $i--) { $dispansfunt = ($dispansfunt)."x^{$i}"; } else { $dispansfunt = ($dispansfunt)."- x^{$i}"; - } + } } elsif ($ct[$i] == -1) { $dispfunt = ($dispfunt)."- x^{$i}"; if ($i % 2 == 0) { @@ -193,7 +193,7 @@ for ($i = $degb; $i >= 0; $i--) { $dispansfunb = ($dispansfunb)."x^{$i}"; } else { $dispansfunb = ($dispansfunb)."- x^{$i}"; - } + } } elsif ($cb[$i] == -1) { $dispfunb = ($dispfunb)."- x^{$i}"; if ($i % 2 == 0) { @@ -276,7 +276,7 @@ if (($eoot+$eoob) % 2 == 0) { # Main text BEGIN_TEXT -Let \(f(x) = \displaystyle $dispfun\). +Let \(f(x) = \displaystyle $dispfun\). $PAR Determine \(f(-x)\) first and then determine whether the function is even, odd, or neither. Write ${BBOLD}even${EBOLD} if the function is even, ${BBOLD}odd${EBOLD} if the function is odd, and ${BBOLD}neither${EBOLD} if the function is neither even nor odd. $PAR @@ -299,7 +299,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ diff --git a/Contrib/Mizzou/Algebra/functions_even_odd_symmetry/even_odd_04.pg b/Contrib/Mizzou/Algebra/functions_even_odd_symmetry/even_odd_04.pg index 699d9ec411..efbc920de2 100644 --- a/Contrib/Mizzou/Algebra/functions_even_odd_symmetry/even_odd_04.pg +++ b/Contrib/Mizzou/Algebra/functions_even_odd_symmetry/even_odd_04.pg @@ -24,7 +24,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -81,7 +81,7 @@ for ($i = $deg; $i >= 0; $i--) { $dispansfun = ($dispansfun)."x^{$i}"; } else { $dispansfun = ($dispansfun)."- x^{$i}"; - } + } } elsif ($c[$i] == -1) { $dispfun = ($dispfun)."- x^{$i}"; if ($i % 2 == 0) { @@ -184,7 +184,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ diff --git a/Contrib/Mizzou/Algebra/functions_even_odd_symmetry/even_odd_05.pg b/Contrib/Mizzou/Algebra/functions_even_odd_symmetry/even_odd_05.pg index 3b4852ba3c..e2c9d191a7 100644 --- a/Contrib/Mizzou/Algebra/functions_even_odd_symmetry/even_odd_05.pg +++ b/Contrib/Mizzou/Algebra/functions_even_odd_symmetry/even_odd_05.pg @@ -26,7 +26,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -61,7 +61,7 @@ $anseoo = "neither"; # Main text BEGIN_TEXT -Let \($dispfun\). +Let \($dispfun\). $PAR Determine \(f(-x)\) first and then determine whether the function is even, odd, or neither. Write ${BBOLD}even${EBOLD} if the function is even, ${BBOLD}odd${EBOLD} if the function is odd, and ${BBOLD}neither${EBOLD} if the function is neither even nor odd. $PAR @@ -84,7 +84,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ diff --git a/Contrib/Mizzou/Algebra/functions_even_odd_symmetry/even_odd_06.pg b/Contrib/Mizzou/Algebra/functions_even_odd_symmetry/even_odd_06.pg index 0562cc8564..465aac8fb2 100644 --- a/Contrib/Mizzou/Algebra/functions_even_odd_symmetry/even_odd_06.pg +++ b/Contrib/Mizzou/Algebra/functions_even_odd_symmetry/even_odd_06.pg @@ -26,7 +26,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -61,7 +61,7 @@ $anseoo = "odd"; # Main text BEGIN_TEXT -Let \($dispfun\). +Let \($dispfun\). $PAR Determine \(f(-x)\) first and then determine whether the function is even, odd, or neither. Write ${BBOLD}even${EBOLD} if the function is even, ${BBOLD}odd${EBOLD} if the function is odd, and ${BBOLD}neither${EBOLD} if the function is neither even nor odd. $PAR @@ -84,7 +84,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ diff --git a/Contrib/Mizzou/Algebra/functions_even_odd_symmetry/even_odd_09.pg b/Contrib/Mizzou/Algebra/functions_even_odd_symmetry/even_odd_09.pg index 29901d72de..c6b14e7180 100644 --- a/Contrib/Mizzou/Algebra/functions_even_odd_symmetry/even_odd_09.pg +++ b/Contrib/Mizzou/Algebra/functions_even_odd_symmetry/even_odd_09.pg @@ -12,12 +12,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -29,7 +29,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Point"); $x = random(-15,15); @@ -40,7 +40,7 @@ $oans = Point(-$x,-$y); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -55,7 +55,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($xans)->cmp()); ANS(Compute($yans)->cmp()); @@ -75,12 +75,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("points","Click here for help entering points.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("points","Click here for help entering points.")\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/functions_even_odd_symmetry/even_odd_10.pg b/Contrib/Mizzou/Algebra/functions_even_odd_symmetry/even_odd_10.pg index 26961740d3..f71bdcc074 100644 --- a/Contrib/Mizzou/Algebra/functions_even_odd_symmetry/even_odd_10.pg +++ b/Contrib/Mizzou/Algebra/functions_even_odd_symmetry/even_odd_10.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -32,7 +32,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); Context()->strings->add(A=>{}, B=>{}, C=>{}, D=>{}, E=>{}, "none"=>{}); @@ -318,7 +318,7 @@ for ($j = 0; $j < 4; $j++) { $fun2->domain(0.01,$max); $fun2->steps(500); } elsif ($eoo == 1) { - $a5 = random(1,2.5,0.5)*random(-1,1,2); + $a5 = random(1,2.5,0.5)*random(-1,1,2); $expns[$pos[$j]] = sub { my $x = shift(); if ($x != 0) {$a5/(($x))} }; push(@oans, $possans[$pos[$j]]); $hasodd = 1; @@ -354,12 +354,12 @@ $oans = List(@oans); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -370,7 +370,7 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR List the letters of the graphs above which represent graphs that are @@ -384,7 +384,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($eans)->cmp()); ANS(Compute($oans)->cmp()); @@ -406,7 +406,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/functions_increasing_decreasing/find_max_area_from_graph_01.pg b/Contrib/Mizzou/Algebra/functions_increasing_decreasing/find_max_area_from_graph_01.pg index c471efb0fe..e362ad33ed 100644 --- a/Contrib/Mizzou/Algebra/functions_increasing_decreasing/find_max_area_from_graph_01.pg +++ b/Contrib/Mizzou/Algebra/functions_increasing_decreasing/find_max_area_from_graph_01.pg @@ -13,12 +13,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $a = random(3,12,1); @@ -111,7 +111,7 @@ $anslw = MultiAnswer($width,$length)->with( ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -128,7 +128,7 @@ $ECENTER $PAR A(n) \($a \mbox{ in} \times $b \mbox{ in}\) piece of cardboard has squares cut out of each corner in order to make a box (see Figure 1). Let \(x\) represent the length of a cut-out square (the height of the box). -$PAR +$PAR (a) Find a function \(V(x)\) for the volume of the box in terms of \(x\). $PAR $SPACE $SPACE $SPACE\(V(x) =\) \{ans_rule(20)\} @@ -149,7 +149,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($vol)->cmp()); ANS(Compute($domain)->cmp()); @@ -176,12 +176,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("formulas", "Click here for help entering formulas")\} or \{AnswerFormatHelp("inequalities", "click here for help entering inequalities")\}. It does not matter which side you choose to be the width or length of the box. + ${BBOLD}Help:${EBOLD} \{helpLink("formulas", "Click here for help entering formulas")\} or \{helpLink("inequalities", "click here for help entering inequalities")\}. It does not matter which side you choose to be the width or length of the box. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/functions_increasing_decreasing/find_max_area_from_graph_02.pg b/Contrib/Mizzou/Algebra/functions_increasing_decreasing/find_max_area_from_graph_02.pg index b5652859e7..54ea4484fc 100644 --- a/Contrib/Mizzou/Algebra/functions_increasing_decreasing/find_max_area_from_graph_02.pg +++ b/Contrib/Mizzou/Algebra/functions_increasing_decreasing/find_max_area_from_graph_02.pg @@ -13,12 +13,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $secs = random(2,4); @@ -88,7 +88,7 @@ $fig2 = image(insertGraph($graph), width=>$gsize, height=>$gsize, tex_size=>500 ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -105,7 +105,7 @@ $ECENTER $PAR Tessa has $tfence ft of fencing available to construct a fence that will divide her garden into $dispsecs rectangular sections. Her house forms one side of the garden and \(x\) represents the width, as shown in Figure 1. -$PAR +$PAR (a) Express the total area of the $dispsecs sections as a function of x. $PAR $SPACE $SPACE $SPACE\(A(x) =\) \{ans_rule(20)\} @@ -125,7 +125,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($area)->cmp()); ANS(Compute($domain)->cmp()); @@ -152,12 +152,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("formulas", "Click here for help entering formulas")\} or \{AnswerFormatHelp("inequalities", "click here for help entering inequalities")\}. + ${BBOLD}Help:${EBOLD} \{helpLink("formulas", "Click here for help entering formulas")\} or \{helpLink("inequalities", "click here for help entering inequalities")\}. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/functions_increasing_decreasing/inc_dec_const_dom_range_01.pg b/Contrib/Mizzou/Algebra/functions_increasing_decreasing/inc_dec_const_dom_range_01.pg index 1ccf976a8a..7ee89dae6b 100644 --- a/Contrib/Mizzou/Algebra/functions_increasing_decreasing/inc_dec_const_dom_range_01.pg +++ b/Contrib/Mizzou/Algebra/functions_increasing_decreasing/inc_dec_const_dom_range_01.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -30,7 +30,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -73,7 +73,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.7,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.7,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.7,'10', 'black', 'bottom', 'right')); @@ -114,7 +114,7 @@ for ($i = 0; $i < $numx; $i++) { $maxy = $yvals[$i]; } if ($miny > $yvals[$i]) { - $miny = $yvals[$i]; + $miny = $yvals[$i]; } } @@ -188,9 +188,9 @@ if ($rcirc == 1 && $lcirc == 1) { } if ($lclosed == 0 && $rclosed == 0) { $range = Compute("($miny,$maxy)"); -} elsif ($lclosed == 1 && $rclosed == 0) { +} elsif ($lclosed == 1 && $rclosed == 0) { $range = Compute("[$miny,$maxy)"); -} elsif ($lclosed == 0 && $rclosed == 1) { +} elsif ($lclosed == 0 && $rclosed == 1) { $range = Compute("($miny,$maxy]"); } else { $range = Compute("[$miny,$maxy]"); @@ -250,8 +250,8 @@ for ($i = 1; $i < $numx - 1; $i++) { push(@minima, $yvals[$i]); } elsif ($yvals[$i] > $yvals[$i-1] && $yvals[$i] > $yvals[$i+1]) { push(@maxima, $yvals[$i]); - } -} + } +} if (scalar(@maxima) == 0) { $maxima = List(String("none")); @@ -267,7 +267,7 @@ if (scalar(@minima) == 0) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -275,7 +275,7 @@ BEGIN_TEXT $PAR $BCENTER \{ image(insertGraph($graph), width=>$gsize, height=>$gsize, tex_size=>500 ); \} -$ECENTER +$ECENTER $PAR Given the graph of \(f(x)\) above, find the following and write your answers using interval notation: @@ -291,7 +291,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($domain)->cmp()); ANS(Compute($range)->cmp()); @@ -329,12 +329,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} Write ${LQ}none${RQ} if no such interval(s) exist or if there is no relative maximum or relative minima. Separate multiple intervals by a comma when entering intervals for increasing, decreasing, and constant. \{ AnswerFormatHelp("intervals","Click here for help entering intervals.") \} + ${BBOLD}Help:${EBOLD} Write ${LQ}none${RQ} if no such interval(s) exist or if there is no relative maximum or relative minima. Separate multiple intervals by a comma when entering intervals for increasing, decreasing, and constant. \{ helpLink("intervals","Click here for help entering intervals.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/functions_increasing_decreasing/inc_dec_const_dom_range_02.pg b/Contrib/Mizzou/Algebra/functions_increasing_decreasing/inc_dec_const_dom_range_02.pg index aaf7000e82..bdc3e95048 100644 --- a/Contrib/Mizzou/Algebra/functions_increasing_decreasing/inc_dec_const_dom_range_02.pg +++ b/Contrib/Mizzou/Algebra/functions_increasing_decreasing/inc_dec_const_dom_range_02.pg @@ -17,12 +17,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -36,7 +36,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxx = 11; @@ -136,7 +136,7 @@ if ($stop == 1) { $domain = Compute("(-inf,$x6)"); } else { $domain = Compute("(-inf,$x6]"); - } + } } else { $domain = Compute("(-inf,inf)"); } @@ -183,7 +183,7 @@ if ($stop == 1) { } ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -191,7 +191,7 @@ BEGIN_TEXT $PAR $BCENTER \{ image(insertGraph($graph), width=>$gsize, height=>$gsize, tex_size=>500 ); \} -$ECENTER +$ECENTER $PAR Given the graph of \(f(x)\) above, find the following and write your answers using interval notation: @@ -207,7 +207,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($domain)->cmp()); ANS(Compute($range)->cmp()); @@ -245,12 +245,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} Write ${LQ}none${RQ} if no such interval(s) exist or if there is no relative maximum or relative minima. Separate multiple intervals by a comma when entering intervals for increasing, decreasing, and constant. \{ AnswerFormatHelp("intervals","Click here for help entering intervals.") \} + ${BBOLD}Help:${EBOLD} Write ${LQ}none${RQ} if no such interval(s) exist or if there is no relative maximum or relative minima. Separate multiple intervals by a comma when entering intervals for increasing, decreasing, and constant. \{ helpLink("intervals","Click here for help entering intervals.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/functions_increasing_decreasing/inc_dec_const_dom_range_03.pg b/Contrib/Mizzou/Algebra/functions_increasing_decreasing/inc_dec_const_dom_range_03.pg index 8ef6efbc13..b87de72794 100644 --- a/Contrib/Mizzou/Algebra/functions_increasing_decreasing/inc_dec_const_dom_range_03.pg +++ b/Contrib/Mizzou/Algebra/functions_increasing_decreasing/inc_dec_const_dom_range_03.pg @@ -17,12 +17,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -36,7 +36,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxx = 11; @@ -81,7 +81,7 @@ $y1 = non_zero_random(-4,3); $x2 = $x1 - random(1,2); $y2 = $y1 + (1,6); if ($x2 - $x1 == 1) { - $x3 = $x1 + 2; + $x3 = $x1 + 2; } else { $x3 = $x1 + 1; } @@ -170,7 +170,7 @@ $const = List(Compute("(-inf,$x1)")); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -178,7 +178,7 @@ BEGIN_TEXT $PAR $BCENTER \{ image(insertGraph($graph), width=>$gsize, height=>$gsize, tex_size=>500 ); \} -$ECENTER +$ECENTER $PAR Given the graph of \(f(x)\) above, find the following and write your answers using interval notation: @@ -194,7 +194,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($domain)->cmp()); ANS(Compute($range)->cmp()); @@ -232,12 +232,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} Write ${LQ}none${RQ} if no such interval(s) exist or if there is no relative maximum or relative minima. Separate multiple intervals by a comma when entering intervals for increasing, decreasing, and constant. \{ AnswerFormatHelp("intervals","Click here for help entering intervals.") \} + ${BBOLD}Help:${EBOLD} Write ${LQ}none${RQ} if no such interval(s) exist or if there is no relative maximum or relative minima. Separate multiple intervals by a comma when entering intervals for increasing, decreasing, and constant. \{ helpLink("intervals","Click here for help entering intervals.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/functions_increasing_decreasing/inc_dec_const_dom_range_04.pg b/Contrib/Mizzou/Algebra/functions_increasing_decreasing/inc_dec_const_dom_range_04.pg index b4366c65e1..699227a5ab 100644 --- a/Contrib/Mizzou/Algebra/functions_increasing_decreasing/inc_dec_const_dom_range_04.pg +++ b/Contrib/Mizzou/Algebra/functions_increasing_decreasing/inc_dec_const_dom_range_04.pg @@ -17,12 +17,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -36,7 +36,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -79,7 +79,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.7,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.7,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.7,'10', 'black', 'bottom', 'right')); @@ -106,9 +106,9 @@ if ($y[3] - $y[2] < 0) { $y[4] = random($min+1, $y[3]-2); } do {$y[5] = random($min+2,$max-2)} until ($y[5] != $y[4]); -if ($y[4] < $y[5]) { - do {$y[6] = random($min+1,$max-1)} until ($y[6] < $y[5]); # forces -} else { # +if ($y[4] < $y[5]) { + do {$y[6] = random($min+1,$max-1)} until ($y[6] < $y[5]); # forces +} else { # do {$y[6] = random($min+1,$max-1)} until ($y[6] > $y[5]); # V shape } @@ -123,7 +123,7 @@ $graph->lineTo($x[6],$y[6],'blue',3); # draw dots, compute domain and range; $op[0] = random(0,1); # 0 - closed, 1 - open $op[1] = random(0,1); -if ($x[1] == $x[2]) { +if ($x[1] == $x[2]) { $op[2] = 1 - $op[1]; } else { $op[2] = random(0,1); @@ -290,7 +290,7 @@ $const = List(Compute("($x[0],$x[1])")); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -298,7 +298,7 @@ BEGIN_TEXT $PAR $BCENTER \{ image(insertGraph($graph), width=>$gsize, height=>$gsize, tex_size=>500 ); \} -$ECENTER +$ECENTER $PAR Given the graph of \(f(x)\) above, find the following and write your answers using interval notation: @@ -314,7 +314,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($domain)->cmp()); ANS(Compute($range)->cmp()); @@ -352,12 +352,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} Write ${LQ}none${RQ} if no such interval(s) exist or if there is no relative maximum or relative minima. Separate multiple intervals by a comma when entering intervals for increasing, decreasing, and constant. \{ AnswerFormatHelp("intervals","Click here for help entering intervals.") \} + ${BBOLD}Help:${EBOLD} Write ${LQ}none${RQ} if no such interval(s) exist or if there is no relative maximum or relative minima. Separate multiple intervals by a comma when entering intervals for increasing, decreasing, and constant. \{ helpLink("intervals","Click here for help entering intervals.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/functions_increasing_decreasing/inc_dec_const_dom_range_05.pg b/Contrib/Mizzou/Algebra/functions_increasing_decreasing/inc_dec_const_dom_range_05.pg index 5c6e301555..21236e511f 100644 --- a/Contrib/Mizzou/Algebra/functions_increasing_decreasing/inc_dec_const_dom_range_05.pg +++ b/Contrib/Mizzou/Algebra/functions_increasing_decreasing/inc_dec_const_dom_range_05.pg @@ -13,12 +13,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -32,7 +32,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxx = 11; @@ -102,7 +102,7 @@ if ($x1 > -6) { } # graph everything -$flipx = 1; # random(0,1); # 0 - no flip, 1 - flip x, +$flipx = 1; # random(0,1); # 0 - no flip, 1 - flip x, $flipy = 0;#random(0,1); # 0 - no flip, 1 - flip y if ($flipx == 1) { @@ -283,7 +283,7 @@ if ($flipy == 0) { $range = List(Compute("[$y1,$y1]U($y4,$y3]")); } else { $range = List(Compute("[$y1,$y1]U[$y4,$y3]")); - } + } } if ($flipx == 0) { @@ -324,7 +324,7 @@ if ($flipx == 0) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -332,7 +332,7 @@ BEGIN_TEXT $PAR $BCENTER \{ image(insertGraph($graph), width=>$gsize, height=>$gsize, tex_size=>500 ); \} -$ECENTER +$ECENTER $PAR Given the graph of \(f(x)\) above, find the following and write your answers using interval notation: @@ -348,7 +348,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($domain)->cmp()); ANS(Compute($range)->cmp()); @@ -386,12 +386,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} Write ${LQ}none${RQ} if no such interval(s) exist or if there is no relative maximum or relative minima. Separate multiple intervals by a comma when entering intervals for increasing, decreasing, and constant. \{ AnswerFormatHelp("intervals","Click here for help entering intervals.") \} + ${BBOLD}Help:${EBOLD} Write ${LQ}none${RQ} if no such interval(s) exist or if there is no relative maximum or relative minima. Separate multiple intervals by a comma when entering intervals for increasing, decreasing, and constant. \{ helpLink("intervals","Click here for help entering intervals.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/functions_piecewise/determine_formula_from_graph_01.pg b/Contrib/Mizzou/Algebra/functions_piecewise/determine_formula_from_graph_01.pg index fd53441c1c..42d24de64f 100644 --- a/Contrib/Mizzou/Algebra/functions_piecewise/determine_formula_from_graph_01.pg +++ b/Contrib/Mizzou/Algebra/functions_piecewise/determine_formula_from_graph_01.pg @@ -13,12 +13,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxx = 16; @@ -189,7 +189,7 @@ if ($b1num < 0) { $tmp3 = -$b1num; if ($b1den == 1) { $dispeq1 = ($dispeq1)."- $tmp3"; - } else { + } else { $dispeq1 = ($dispeq1)."- \frac{$tmp3}{$b1den}"; } } else { @@ -224,7 +224,7 @@ $dispeq2 & \quad & \mbox{for } x $ineq4ans $x2\\ ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -233,7 +233,7 @@ $PAR $BCENTER \{ image(insertGraph($graph), width=>$gsize, height=>$gsize, tex_size=>500 ); \} -$ECENTER +$ECENTER $PAR The graph of a piecewise function, \(f(x)\), is depicted above. Find its equation: @@ -249,7 +249,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($piece1)->cmp()); ANS($ineq1->cmp()); @@ -281,12 +281,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Remarks:${EBOLD} Note that ${LQ}<=${RQ} stands for ${LQ}less than or equal${RQ} and ${LQ}>=${RQ} stands for ${LQ}greater than or equal.${RQ} You must have your browser window expanded wide enough to correctly display the above formula. \{AnswerFormatHelp("formulas","Click here for help entering formulas.") \} + ${BBOLD}Remarks:${EBOLD} Note that ${LQ}<=${RQ} stands for ${LQ}less than or equal${RQ} and ${LQ}>=${RQ} stands for ${LQ}greater than or equal.${RQ} You must have your browser window expanded wide enough to correctly display the above formula. \{helpLink("formulas","Click here for help entering formulas.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited and updated in 2012/2013. $BR diff --git a/Contrib/Mizzou/Algebra/functions_piecewise/determine_formula_from_graph_02.pg b/Contrib/Mizzou/Algebra/functions_piecewise/determine_formula_from_graph_02.pg index a1a85cb0e8..67245e1262 100644 --- a/Contrib/Mizzou/Algebra/functions_piecewise/determine_formula_from_graph_02.pg +++ b/Contrib/Mizzou/Algebra/functions_piecewise/determine_formula_from_graph_02.pg @@ -13,12 +13,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxx = 16; @@ -195,7 +195,7 @@ if ($b1num < 0) { $tmp3 = -$b1num; if ($b1den == 1) { $dispeq1 = ($dispeq1)."- $tmp3"; - } else { + } else { $dispeq1 = ($dispeq1)."- \frac{$tmp3}{$b1den}"; } } else { @@ -230,7 +230,7 @@ $dispeq2 & \quad & \mbox{for } x $ineq4ans $x3\\ ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -238,7 +238,7 @@ BEGIN_TEXT $PAR $BCENTER \{ image(insertGraph($graph), width=>$gsize, height=>$gsize, tex_size=>500 ); \} -$ECENTER +$ECENTER $PAR The graph of a piecewise function, \(f(x)\), is depicted above. Find its equation: @@ -254,7 +254,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($piece1)->cmp()); ANS($ineq1->cmp()); @@ -286,12 +286,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Remarks:${EBOLD} Note that ${LQ}<=${RQ} stands for ${LQ}less than or equal${RQ} and ${LQ}>=${RQ} stands for ${LQ}greater than or equal.${RQ} You must have your browser window expanded wide enough to correctly display the above formula. \{AnswerFormatHelp("formulas","Click here for help entering formulas.") \} + ${BBOLD}Remarks:${EBOLD} Note that ${LQ}<=${RQ} stands for ${LQ}less than or equal${RQ} and ${LQ}>=${RQ} stands for ${LQ}greater than or equal.${RQ} You must have your browser window expanded wide enough to correctly display the above formula. \{helpLink("formulas","Click here for help entering formulas.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited and updated in 2012/2013. $BR diff --git a/Contrib/Mizzou/Algebra/functions_piecewise/determine_formula_from_graph_03.pg b/Contrib/Mizzou/Algebra/functions_piecewise/determine_formula_from_graph_03.pg index 8d4afb3fd7..2310b572d4 100644 --- a/Contrib/Mizzou/Algebra/functions_piecewise/determine_formula_from_graph_03.pg +++ b/Contrib/Mizzou/Algebra/functions_piecewise/determine_formula_from_graph_03.pg @@ -13,12 +13,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxx = 16; @@ -189,7 +189,7 @@ if ($b1num < 0) { $tmp3 = -$b1num; if ($b1den == 1) { $dispeq1 = ($dispeq1)."- $tmp3"; - } else { + } else { $dispeq1 = ($dispeq1)."- \frac{$tmp3}{$b1den}"; } } else { @@ -224,7 +224,7 @@ $y32 & \quad & \mbox{for } x $ineq4ans $x3\\ ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -232,7 +232,7 @@ BEGIN_TEXT $PAR $BCENTER \{ image(insertGraph($graph), width=>$gsize, height=>$gsize, tex_size=>500 ); \} -$ECENTER +$ECENTER $PAR The graph of a piecewise function, \(f(x)\), is depicted above. Find its equation: @@ -248,7 +248,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($piece1)->cmp()); ANS($ineq1->cmp()); @@ -280,12 +280,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Remarks:${EBOLD} Note that ${LQ}<=${RQ} stands for ${LQ}less than or equal${RQ} and ${LQ}>=${RQ} stands for ${LQ}greater than or equal.${RQ} You must have your browser window expanded wide enough to correctly display the above formula. \{AnswerFormatHelp("formulas","Click here for help entering formulas.") \} + ${BBOLD}Remarks:${EBOLD} Note that ${LQ}<=${RQ} stands for ${LQ}less than or equal${RQ} and ${LQ}>=${RQ} stands for ${LQ}greater than or equal.${RQ} You must have your browser window expanded wide enough to correctly display the above formula. \{helpLink("formulas","Click here for help entering formulas.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited and updated in 2012/2013. $BR diff --git a/Contrib/Mizzou/Algebra/functions_rational/determine_function_mc_01.pg b/Contrib/Mizzou/Algebra/functions_rational/determine_function_mc_01.pg index ca94cfe415..297b912998 100644 --- a/Contrib/Mizzou/Algebra/functions_rational/determine_function_mc_01.pg +++ b/Contrib/Mizzou/Algebra/functions_rational/determine_function_mc_01.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGchoicemacros.pl", @@ -29,7 +29,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric")->texStrings; $a = non_zero_random(-20,20); @@ -79,7 +79,7 @@ $ans = $possans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### BEGIN_TEXT Find a rational function \(f(x)\) that satisfies the given conditions: VA: \(x = $a\), \(x = $b\); \(x\)-intercept: \( ($c,0) \) @@ -99,7 +99,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(String($ans)->cmp()); @@ -119,7 +119,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/functions_rational/determine_function_mc_02.pg b/Contrib/Mizzou/Algebra/functions_rational/determine_function_mc_02.pg index a3be880e62..e8d18bd643 100644 --- a/Contrib/Mizzou/Algebra/functions_rational/determine_function_mc_02.pg +++ b/Contrib/Mizzou/Algebra/functions_rational/determine_function_mc_02.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -28,7 +28,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric")->texStrings; do {$a = non_zero_random(-10,10)} until (abs($a) != 1); @@ -78,7 +78,7 @@ $ans = $possans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### BEGIN_TEXT Find a rational function \(f(x)\) that satisfies the given conditions: VA: \(x = $a\); HA: \(y = $b\); \(x\)-intercept: \( ($c,0) \) @@ -98,7 +98,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(String($ans)->cmp()); @@ -118,7 +118,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/functions_testing/fun_test_04.pg b/Contrib/Mizzou/Algebra/functions_testing/fun_test_04.pg index 31f49a2049..cbd4cb10da 100644 --- a/Contrib/Mizzou/Algebra/functions_testing/fun_test_04.pg +++ b/Contrib/Mizzou/Algebra/functions_testing/fun_test_04.pg @@ -27,7 +27,7 @@ loadMacros( "PeriodicRerandomization.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "PGcourse.pl" @@ -82,7 +82,7 @@ ANS( String("Yes")->cmp() ); ANS( Compute($domain)->cmp() ); ANS( Compute($r)-> cmp() ); - + Context("Numeric"); ################################################ # Main text @@ -115,7 +115,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ # Answer evaluation diff --git a/Contrib/Mizzou/Algebra/functions_testing/fun_test_05.pg b/Contrib/Mizzou/Algebra/functions_testing/fun_test_05.pg index a7a4c17d21..f144be5079 100644 --- a/Contrib/Mizzou/Algebra/functions_testing/fun_test_05.pg +++ b/Contrib/Mizzou/Algebra/functions_testing/fun_test_05.pg @@ -27,7 +27,7 @@ loadMacros( "PeriodicRerandomization.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "PGcourse.pl" @@ -77,7 +77,7 @@ else{ do {$e = random(-10,10,1)} until ($e == $a || $e ==$b || $e == $c || $e ==$d); $domain = List($a, $b, $c, $d); ANS( String("No")->cmp() );} - + $r1 = random(-10,10,1); do {$r2 = random(-10,10,1)} until ($r2 != $r1); @@ -96,7 +96,7 @@ $range = List($r1,$r2,$r3, $r4, $r5); ANS( Compute($domain)->cmp() ); ANS( Compute($range)-> cmp() ); - + Context("Numeric"); ################################################ # Main text @@ -108,7 +108,7 @@ $SPACE Is this relation a function? \{ans_rule(10)\} $SPACE $SPACE (Write either $PAR $SPACE What is the domain of this relation? $SPACE \( \big $lcb \) \{ans_rule(20)\} \( \big$rcb \) $BR -$SPACE What is the range of this relation? $SPACE \( \big $lcb \) \{ans_rule(20)\} \( \big $rcb \) +$SPACE What is the range of this relation? $SPACE \( \big $lcb \) \{ans_rule(20)\} \( \big $rcb \) $PAR Write "Does Not Exist" if the quantities do not exist. Also, when using set notation, do not list elements more than once. END_TEXT @@ -129,7 +129,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ diff --git a/Contrib/Mizzou/Algebra/functions_testing/fun_test_06.pg b/Contrib/Mizzou/Algebra/functions_testing/fun_test_06.pg index da7b9fc6dd..79d7cda1fc 100644 --- a/Contrib/Mizzou/Algebra/functions_testing/fun_test_06.pg +++ b/Contrib/Mizzou/Algebra/functions_testing/fun_test_06.pg @@ -27,7 +27,7 @@ loadMacros( "PeriodicRerandomization.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "PGcourse.pl" @@ -73,13 +73,13 @@ if ($case ==1) { do {$e = random(-10,10,1)} until ($e != $a && $e != $b && $e != $c && $e != $d); $domain = List($a, $b, $c, $d, $e); ANS( String("Yes")->cmp() );} - + else{ do {$e = random(-10,10,1)} until ($e == $a || $e ==$b || $e == $c || $e ==$d); $domain = List($a, $b, $c, $d); $yOrN = "is not a function"; ANS( String("No")->cmp() );} - + $r1 = random(-10,10,1); do {$r2 = random(-10,10,1)} until ($r2 != $r1); @@ -98,7 +98,7 @@ $range = List($r1,$r2,$r3, $r4, $r5); ANS( Compute($domain)->cmp() ); ANS( Compute($range)-> cmp() ); - + Context("Numeric"); ################################################ # Main text @@ -110,7 +110,7 @@ $SPACE Is this relation a function? \{ans_rule(10)\} $SPACE $SPACE (Write either $PAR $SPACE What is the domain of this relation? $SPACE \( \big $lcb \) \{ans_rule(20)\} \( \big$rcb \) $BR -$SPACE What is the range of this relation? $SPACE \( \big $lcb \) \{ans_rule(20)\} \( \big $rcb \) +$SPACE What is the range of this relation? $SPACE \( \big $lcb \) \{ans_rule(20)\} \( \big $rcb \) $PAR Write "Does Not Exist" if the quantities do not exist. Also, when using set notation, do not list elements more than once. END_TEXT @@ -131,7 +131,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ diff --git a/Contrib/Mizzou/Algebra/graph_basics/determine_intercepts_02.pg b/Contrib/Mizzou/Algebra/graph_basics/determine_intercepts_02.pg index 31dc9f228d..9d4e72dbc9 100644 --- a/Contrib/Mizzou/Algebra/graph_basics/determine_intercepts_02.pg +++ b/Contrib/Mizzou/Algebra/graph_basics/determine_intercepts_02.pg @@ -12,12 +12,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "contextFraction.pl", @@ -31,7 +31,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Fraction-NoDecimals"); $A = non_zero_random(-7,7); @@ -86,21 +86,21 @@ $yints = List(Compute("(0, $yintcoord)")); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT Find the \(x\)-intercept(s) and \(y\)-intercept(s) of: \( $quad \). $PAR -\(x\)-intercept(s): \{ans_rule(20)\} +\(x\)-intercept(s): \{ans_rule(20)\} $BR -\(y\)-intercept(s): \{ans_rule(20)\} +\(y\)-intercept(s): \{ans_rule(20)\} END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($xints)->cmp()); ANS(Compute($yints)->cmp()); @@ -120,12 +120,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - $BBOLD Help: $EBOLD You must enter your answer as a point or a list of points. If there are multiple points, separate each one by a comma. \{AnswerFormatHelp("points", "Click here for help entering points.")\} + $BBOLD Help: $EBOLD You must enter your answer as a point or a list of points. If there are multiple points, separate each one by a comma. \{helpLink("points", "Click here for help entering points.")\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('determine intercepts of a quadratic function'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_basics/determine_intercepts_graph_01.pg b/Contrib/Mizzou/Algebra/graph_basics/determine_intercepts_graph_01.pg index b5ad39f8a8..a16214a5ae 100644 --- a/Contrib/Mizzou/Algebra/graph_basics/determine_intercepts_graph_01.pg +++ b/Contrib/Mizzou/Algebra/graph_basics/determine_intercepts_graph_01.pg @@ -3,8 +3,8 @@ ## Intercepts are completely arbitrary. ##ENDDESCRIPTION -## DBsubject('Algebra') -## DBchapter('Coordinates and Graphs') +## DBsubject('Algebra') +## DBchapter('Coordinates and Graphs') ## DBsection('Lines') ## KEYWORDS('linear', 'x-intercepts', 'y-intercepts') ## Date('Summer 2012') @@ -27,14 +27,14 @@ loadMacros( "PGgraphmacros.pl", "MathObjects.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); TEXT(beginproblem()); $refreshCachedImages = 1; $showPartialCorrectAnswers = 1; -PeriodicRerandomization("3"); +PeriodicRerandomization("3"); ################################### @@ -90,9 +90,9 @@ $BCENTER \{ image( insertGraph($gr), width=>350, height=>350, tex_size=>400, extra_html_tags=>'alt="Click to enlarge."' ) \} $ECENTER $PAR -\(x\)-intercept: \{ ans_rule(20) \} +\(x\)-intercept: \{ ans_rule(20) \} $PAR -\(y\)-intercept: \{ ans_rule(20) \} +\(y\)-intercept: \{ ans_rule(20) \} END_TEXT if ($attempts_modp == 0 && $actualAttempts != 0) { @@ -105,7 +105,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{ AnswerFormatHelp("points", "Click here for help entering points as answers.") \} + ${BBOLD}Help:${EBOLD} \{ helpLink("points", "Click here for help entering points as answers.") \} $BR END_TEXT } diff --git a/Contrib/Mizzou/Algebra/graph_basics/determine_intercepts_graph_02.pg b/Contrib/Mizzou/Algebra/graph_basics/determine_intercepts_graph_02.pg index f176b23925..316334ba23 100644 --- a/Contrib/Mizzou/Algebra/graph_basics/determine_intercepts_graph_02.pg +++ b/Contrib/Mizzou/Algebra/graph_basics/determine_intercepts_graph_02.pg @@ -3,8 +3,8 @@ ## The intercepts cannot be the origin. ##ENDDESCRIPTION -## DBsubject('Algebra') -## DBchapter('Coordinates and Graphs') +## DBsubject('Algebra') +## DBchapter('Coordinates and Graphs') ## DBsection('Lines') ## KEYWORDS('linear', 'x-intercepts', 'y-intercepts') ## Date('Summer 2012') @@ -27,7 +27,7 @@ loadMacros( "PGgraphmacros.pl", "MathObjects.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -84,9 +84,9 @@ $BCENTER \{ image( insertGraph($gr), width=>350, height=>350, tex_size=>400, extra_html_tags=>'alt="Click to enlarge."' ) \} $ECENTER $PAR -\(x\)-intercept: \{ ans_rule(20) \} +\(x\)-intercept: \{ ans_rule(20) \} $PAR -\(y\)-intercept: \{ ans_rule(20) \} +\(y\)-intercept: \{ ans_rule(20) \} END_TEXT if ($attempts_modp == 0 && $actualAttempts != 0) { @@ -99,7 +99,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{ AnswerFormatHelp("points", "Click here for help entering points as answers.") \} + ${BBOLD}Help:${EBOLD} \{ helpLink("points", "Click here for help entering points as answers.") \} $BR END_TEXT } diff --git a/Contrib/Mizzou/Algebra/graph_basics/match_points_01.pg b/Contrib/Mizzou/Algebra/graph_basics/match_points_01.pg index ec222fba01..8eef5260cd 100644 --- a/Contrib/Mizzou/Algebra/graph_basics/match_points_01.pg +++ b/Contrib/Mizzou/Algebra/graph_basics/match_points_01.pg @@ -2,8 +2,8 @@ ## Draws five points and ask to determine one of them. ##ENDDESCRIPTION -## DBsubject('Algebra') -## DBchapter('Basic Algebra') +## DBsubject('Algebra') +## DBchapter('Basic Algebra') ## DBsection('Coordinate Geometry') ## KEYWORDS('point','points','graph') ## Date('Summer 2012') @@ -26,7 +26,7 @@ loadMacros( "PGgraphmacros.pl", "MathObjects.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "parserPopUp.pl", "PGcourse.pl" @@ -74,7 +74,7 @@ for ($i = 0; $i < 6; $i++) { if ($yVals[$j] == $yVals[$i]) { do {$yVals[$j] = random(-$gridSize+1,$gridSize-1,1)} while ($yVals[$j] == $yVals[$i]); } - } + } } } @letters = ("A","B","C","D","E"); @@ -82,18 +82,18 @@ for ($i = 0; $i < 5; $i++) { if ($xVals[$i] == 0 && $yVals[$i] == 0) { $pop[$i] = PopUp(["select", "QI", "QII", "QIII", "QIV", "x-axis", "y-axis", "origin"], "origin"); } elsif ($xVals[$i] == 0) { - $pop[$i] = PopUp(["select", "QI", "QII", "QIII", "QIV", "x-axis", "y-axis", "origin"], "y-axis"); + $pop[$i] = PopUp(["select", "QI", "QII", "QIII", "QIV", "x-axis", "y-axis", "origin"], "y-axis"); } elsif ($yVals[$i] == 0) { $pop[$i] = PopUp(["select", "QI", "QII", "QIII", "QIV", "x-axis", "y-axis", "origin"], "x-axis"); } elsif ($xVals[$i] > 0) { if ($yVals[$i] > 0) { - $pop[$i] = PopUp(["select", "QI", "QII", "QIII", "QIV", "x-axis", "y-axis", "origin"], "QI"); + $pop[$i] = PopUp(["select", "QI", "QII", "QIII", "QIV", "x-axis", "y-axis", "origin"], "QI"); } else { $pop[$i] = PopUp(["select", "QI", "QII", "QIII", "QIV", "x-axis", "y-axis", "origin"], "QIV"); } } elsif ($xVals[$i] < 0) { if ($yVals[$i] > 0) { - $pop[$i] = PopUp(["select", "QI", "QII", "QIII", "QIV", "x-axis", "y-axis", "origin"], "QII"); + $pop[$i] = PopUp(["select", "QI", "QII", "QIII", "QIV", "x-axis", "y-axis", "origin"], "QII"); } else { $pop[$i] = PopUp(["select", "QI", "QII", "QIII", "QIV", "x-axis", "y-axis", "origin"], "QIII"); } @@ -161,7 +161,7 @@ ${BBOLD}E:${EBOLD} Point - \($point[4]\), Location - \{$pop[4]->correct_ans()\} } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{ AnswerFormatHelp("points", "Click here for help entering points as answers.") \} + ${BBOLD}Help:${EBOLD} \{ helpLink("points", "Click here for help entering points as answers.") \} $BR END_TEXT } diff --git a/Contrib/Mizzou/Algebra/graph_exponential/determine_eqn_from_graph_01.pg b/Contrib/Mizzou/Algebra/graph_exponential/determine_eqn_from_graph_01.pg index 08abc5fd26..4db9610f28 100644 --- a/Contrib/Mizzou/Algebra/graph_exponential/determine_eqn_from_graph_01.pg +++ b/Contrib/Mizzou/Algebra/graph_exponential/determine_eqn_from_graph_01.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -31,7 +31,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @bases = (2..10); @@ -188,24 +188,24 @@ $fig = image(insertGraph($graph), width=>$gsize, height=>$gsize, tex_size=>500 ) ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT Write an equation that represents the graph below by using transformations from \($dispeqn\). $PAR $BCENTER -\{ +\{ $fig \} -$ECENTER +$ECENTER $PAR Equation: \{ans_rule(25)\} END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($ans)->cmp()); @@ -223,12 +223,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("equations", "Click here for help entering equations.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("equations", "Click here for help entering equations.")\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_01.pg b/Contrib/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_01.pg index 63929e9372..4519236d80 100644 --- a/Contrib/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_01.pg +++ b/Contrib/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_01.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -33,7 +33,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @bases = (2..10); @@ -95,7 +95,7 @@ if ($choice != exp(1) && $choice != 1/exp(1)) { $num = $num*((1/$choice)**(-$a)); } else { $den = $den*(($choice)**(-$a)); - } + } } elsif ($trans[3] != 1 && $a > 0) {# neg exponent if ($choice < 1) { $num = $num*((1/$choice)**($a)); @@ -126,7 +126,7 @@ if ($choice != exp(1) && $choice != 1/exp(1)) { $num = $num*((1/$choice)**(-$a)); } else { $den = $den*(($choice)**(-$a)); - } + } } elsif ($trans[3] != 1 && $a > 0) {# neg exponent if ($choice < 1) { $num = $num*((1/$choice)**($a)); @@ -835,12 +835,12 @@ $ans = $possans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -851,7 +851,7 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR Let \(f\) be the exponential function defined by $PAR @@ -872,7 +872,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($asym->cmp()); ANS(Compute($range)->cmp()); @@ -893,12 +893,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{AnswerFormatHelp("equations", "Click here for help entering equations")\}, \{AnswerFormatHelp("intervals", "click here for help entering intervals")\}, or \{AnswerFormatHelp("points", "click here for help entering points")\}. + ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{helpLink("equations", "Click here for help entering equations")\}, \{helpLink("intervals", "click here for help entering intervals")\}, or \{helpLink("points", "click here for help entering points")\}. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('find all the given info, always horizontal shift and horizontal reflection'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_02.pg b/Contrib/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_02.pg index 50c6ab7ac7..299564d75b 100644 --- a/Contrib/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_02.pg +++ b/Contrib/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_02.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -33,7 +33,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @bases = (2..10); @@ -95,7 +95,7 @@ if ($choice != exp(1) && $choice != 1/exp(1)) { $num = $num*((1/$choice)**(-$a)); } else { $den = $den*(($choice)**(-$a)); - } + } } elsif ($trans[3] != 1 && $a > 0) {# neg exponent if ($choice < 1) { $num = $num*((1/$choice)**($a)); @@ -126,7 +126,7 @@ if ($choice != exp(1) && $choice != 1/exp(1)) { $num = $num*((1/$choice)**(-$a)); } else { $den = $den*(($choice)**(-$a)); - } + } } elsif ($trans[3] != 1 && $a > 0) {# neg exponent if ($choice < 1) { $num = $num*((1/$choice)**($a)); @@ -835,12 +835,12 @@ $ans = $possans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -851,7 +851,7 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR Let \(f\) be the exponential function defined by $PAR @@ -872,7 +872,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($asym->cmp()); ANS(Compute($range)->cmp()); @@ -893,12 +893,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{AnswerFormatHelp("equations", "Click here for help entering equations")\}, \{AnswerFormatHelp("intervals", "click here for help entering intervals")\}, or \{AnswerFormatHelp("points", "click here for help entering points")\}. + ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{helpLink("equations", "Click here for help entering equations")\}, \{helpLink("intervals", "click here for help entering intervals")\}, or \{helpLink("points", "click here for help entering points")\}. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('find all the given info, always horizontal shift, and vertical and horizontal reflection'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_03.pg b/Contrib/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_03.pg index 589d955a8a..c7c407d5a0 100644 --- a/Contrib/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_03.pg +++ b/Contrib/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_03.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -33,7 +33,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @bases = (2..10); @@ -95,7 +95,7 @@ if ($choice != exp(1) && $choice != 1/exp(1)) { $num = $num*((1/$choice)**(-$a)); } else { $den = $den*(($choice)**(-$a)); - } + } } elsif ($trans[3] != 1 && $a > 0) {# neg exponent if ($choice < 1) { $num = $num*((1/$choice)**($a)); @@ -127,7 +127,7 @@ if ($choice != exp(1) && $choice != 1/exp(1)) { $num = $num*((1/$choice)**(-$a)); } else { $den = $den*(($choice)**(-$a)); - } + } } elsif ($trans[3] != 1 && $a > 0) {# neg exponent if ($choice < 1) { $num = $num*((1/$choice)**($a)); @@ -839,12 +839,12 @@ $ans = $possans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -855,7 +855,7 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR Let \(f\) be the exponential function defined by $PAR @@ -876,7 +876,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($asym->cmp()); ANS(Compute($range)->cmp()); @@ -897,12 +897,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{AnswerFormatHelp("equations", "Click here for help entering equations")\}, \{AnswerFormatHelp("intervals", "click here for help entering intervals")\}, or \{AnswerFormatHelp("points", "click here for help entering points")\}. + ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{helpLink("equations", "Click here for help entering equations")\}, \{helpLink("intervals", "click here for help entering intervals")\}, or \{helpLink("points", "click here for help entering points")\}. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('find all the given info, always horizontal shift and vertical reflection'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_04.pg b/Contrib/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_04.pg index f5e4904255..7ff399ab16 100644 --- a/Contrib/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_04.pg +++ b/Contrib/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_04.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -33,7 +33,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @bases = (2..10); @@ -95,7 +95,7 @@ if ($choice != exp(1) && $choice != 1/exp(1)) { $num = $num*((1/$choice)**(-$a)); } else { $den = $den*(($choice)**(-$a)); - } + } } elsif ($trans[3] != 1 && $a > 0) {# neg exponent if ($choice < 1) { $num = $num*((1/$choice)**($a)); @@ -117,7 +117,7 @@ if ($choice != exp(1) && $choice != 1/exp(1)) { } # only other case is $a == 0, which is covered already $num = $num + $b*$den; $yintcoord = Fraction($num,$den); - + $dispyint = "\left(0,$yintcoord\right)"; } else { if ($trans[2] == 1) { @@ -128,7 +128,7 @@ if ($choice != exp(1) && $choice != 1/exp(1)) { $num = $num*((1/$choice)**(-$a)); } else { $den = $den*(($choice)**(-$a)); - } + } } elsif ($trans[3] != 1 && $a > 0) {# neg exponent if ($choice < 1) { $num = $num*((1/$choice)**($a)); @@ -840,12 +840,12 @@ $ans = $possans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -856,7 +856,7 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR Let \(f\) be the exponential function defined by $PAR @@ -877,7 +877,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($asym->cmp()); ANS(Compute($range)->cmp()); @@ -898,12 +898,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{AnswerFormatHelp("equations", "Click here for help entering equations")\}, \{AnswerFormatHelp("intervals", "click here for help entering intervals")\}, or \{AnswerFormatHelp("points", "click here for help entering points")\}. + ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{helpLink("equations", "Click here for help entering equations")\}, \{helpLink("intervals", "click here for help entering intervals")\}, or \{helpLink("points", "click here for help entering points")\}. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('find all the given info, always vertical and horizontal shift'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_05.pg b/Contrib/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_05.pg index 30385c0887..de9604da33 100644 --- a/Contrib/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_05.pg +++ b/Contrib/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_05.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -33,7 +33,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @bases = (2..10); @@ -95,7 +95,7 @@ if ($choice != exp(1) && $choice != 1/exp(1)) { $num = $num*((1/$choice)**(-$a)); } else { $den = $den*(($choice)**(-$a)); - } + } } elsif ($trans[3] != 1 && $a > 0) {# neg exponent if ($choice < 1) { $num = $num*((1/$choice)**($a)); @@ -126,7 +126,7 @@ if ($choice != exp(1) && $choice != 1/exp(1)) { $num = $num*((1/$choice)**(-$a)); } else { $den = $den*(($choice)**(-$a)); - } + } } elsif ($trans[3] != 1 && $a > 0) {# neg exponent if ($choice < 1) { $num = $num*((1/$choice)**($a)); @@ -835,12 +835,12 @@ $ans = $possans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -851,7 +851,7 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR Let \(f\) be the exponential function defined by $PAR @@ -872,7 +872,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($asym->cmp()); ANS(Compute($range)->cmp()); @@ -893,12 +893,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{AnswerFormatHelp("equations", "Click here for help entering equations")\}, \{AnswerFormatHelp("intervals", "click here for help entering intervals")\}, or \{AnswerFormatHelp("points", "click here for help entering points")\}. + ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{helpLink("equations", "Click here for help entering equations")\}, \{helpLink("intervals", "click here for help entering intervals")\}, or \{helpLink("points", "click here for help entering points")\}. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('find all the given info, always vertical and horizontal shift, and horizontal reflection'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_06.pg b/Contrib/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_06.pg index 5940c0295f..61444d40cd 100644 --- a/Contrib/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_06.pg +++ b/Contrib/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_06.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -33,7 +33,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @bases = (2..10); @@ -95,7 +95,7 @@ if ($choice != exp(1) && $choice != 1/exp(1)) { $num = $num*((1/$choice)**(-$a)); } else { $den = $den*(($choice)**(-$a)); - } + } } elsif ($trans[3] != 1 && $a > 0) {# neg exponent if ($choice < 1) { $num = $num*((1/$choice)**($a)); @@ -126,7 +126,7 @@ if ($choice != exp(1) && $choice != 1/exp(1)) { $num = $num*((1/$choice)**(-$a)); } else { $den = $den*(($choice)**(-$a)); - } + } } elsif ($trans[3] != 1 && $a > 0) {# neg exponent if ($choice < 1) { $num = $num*((1/$choice)**($a)); @@ -835,12 +835,12 @@ $ans = $possans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -851,7 +851,7 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR Let \(f\) be the exponential function defined by $PAR @@ -872,7 +872,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($asym->cmp()); ANS(Compute($range)->cmp()); @@ -893,12 +893,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{AnswerFormatHelp("equations", "Click here for help entering equations")\}, \{AnswerFormatHelp("intervals", "click here for help entering intervals")\}, or \{AnswerFormatHelp("points", "click here for help entering points")\}. + ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{helpLink("equations", "Click here for help entering equations")\}, \{helpLink("intervals", "click here for help entering intervals")\}, or \{helpLink("points", "click here for help entering points")\}. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('find all the given info, always horizontal and horizontal shift, and horizontal and vertical reflection'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_07.pg b/Contrib/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_07.pg index 196daf8802..9384c8352b 100644 --- a/Contrib/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_07.pg +++ b/Contrib/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_07.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -33,7 +33,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @bases = (2..10); @@ -95,7 +95,7 @@ if ($choice != exp(1) && $choice != 1/exp(1)) { $num = $num*((1/$choice)**(-$a)); } else { $den = $den*(($choice)**(-$a)); - } + } } elsif ($trans[3] != 1 && $a > 0) {# neg exponent if ($choice < 1) { $num = $num*((1/$choice)**($a)); @@ -127,7 +127,7 @@ if ($choice != exp(1) && $choice != 1/exp(1)) { $num = $num*((1/$choice)**(-$a)); } else { $den = $den*(($choice)**(-$a)); - } + } } elsif ($trans[3] != 1 && $a > 0) {# neg exponent if ($choice < 1) { $num = $num*((1/$choice)**($a)); @@ -839,12 +839,12 @@ $ans = $possans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -855,7 +855,7 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR Let \(f\) be the exponential function defined by $PAR @@ -876,7 +876,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($asym->cmp()); ANS(Compute($range)->cmp()); @@ -897,12 +897,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{AnswerFormatHelp("equations", "Click here for help entering equations")\}, \{AnswerFormatHelp("intervals", "click here for help entering intervals")\}, or \{AnswerFormatHelp("points", "click here for help entering points")\}. + ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{helpLink("equations", "Click here for help entering equations")\}, \{helpLink("intervals", "click here for help entering intervals")\}, or \{helpLink("points", "click here for help entering points")\}. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('find all the given info, always horizontal and vertical shift, and vertical reflection'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_08.pg b/Contrib/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_08.pg index 6040c9d95b..2a423cc849 100644 --- a/Contrib/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_08.pg +++ b/Contrib/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_08.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -33,7 +33,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @bases = (2..10); @@ -95,7 +95,7 @@ if ($choice != exp(1) && $choice != 1/exp(1)) { $num = $num*((1/$choice)**(-$a)); } else { $den = $den*(($choice)**(-$a)); - } + } } elsif ($trans[3] != 1 && $a > 0) {# neg exponent if ($choice < 1) { $num = $num*((1/$choice)**($a)); @@ -126,7 +126,7 @@ if ($choice != exp(1) && $choice != 1/exp(1)) { $num = $num*((1/$choice)**(-$a)); } else { $den = $den*(($choice)**(-$a)); - } + } } elsif ($trans[3] != 1 && $a > 0) {# neg exponent if ($choice < 1) { $num = $num*((1/$choice)**($a)); @@ -835,12 +835,12 @@ $ans = $possans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -851,7 +851,7 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR Let \(f\) be the exponential function defined by $PAR @@ -872,7 +872,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($asym->cmp()); ANS(Compute($range)->cmp()); @@ -893,12 +893,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{AnswerFormatHelp("equations", "Click here for help entering equations")\}, \{AnswerFormatHelp("intervals", "click here for help entering intervals")\}, or \{AnswerFormatHelp("points", "click here for help entering points")\}. + ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{helpLink("equations", "Click here for help entering equations")\}, \{helpLink("intervals", "click here for help entering intervals")\}, or \{helpLink("points", "click here for help entering points")\}. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('find all the given info, always vertical reflection and horizontal reflection'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_09.pg b/Contrib/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_09.pg index 418f6095ef..dd38b2e3ab 100644 --- a/Contrib/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_09.pg +++ b/Contrib/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_09.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -33,7 +33,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @bases = (2..10); @@ -95,7 +95,7 @@ if ($choice != exp(1) && $choice != 1/exp(1)) { $num = $num*((1/$choice)**(-$a)); } else { $den = $den*(($choice)**(-$a)); - } + } } elsif ($trans[3] != 1 && $a > 0) {# neg exponent if ($choice < 1) { $num = $num*((1/$choice)**($a)); @@ -126,7 +126,7 @@ if ($choice != exp(1) && $choice != 1/exp(1)) { $num = $num*((1/$choice)**(-$a)); } else { $den = $den*(($choice)**(-$a)); - } + } } elsif ($trans[3] != 1 && $a > 0) {# neg exponent if ($choice < 1) { $num = $num*((1/$choice)**($a)); @@ -835,12 +835,12 @@ $ans = $possans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -851,7 +851,7 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR Let \(f\) be the exponential function defined by $PAR @@ -872,7 +872,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($asym->cmp()); ANS(Compute($range)->cmp()); @@ -893,12 +893,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{AnswerFormatHelp("equations", "Click here for help entering equations")\}, \{AnswerFormatHelp("intervals", "click here for help entering intervals")\}, or \{AnswerFormatHelp("points", "click here for help entering points")\}. + ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{helpLink("equations", "Click here for help entering equations")\}, \{helpLink("intervals", "click here for help entering intervals")\}, or \{helpLink("points", "click here for help entering points")\}. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('find all the given info, always vertical shift and vertical reflection'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_10.pg b/Contrib/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_10.pg index d68e45d386..d05bd9eeff 100644 --- a/Contrib/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_10.pg +++ b/Contrib/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_10.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -33,7 +33,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @bases = (2..10); @@ -95,7 +95,7 @@ if ($choice != exp(1) && $choice != 1/exp(1)) { $num = $num*((1/$choice)**(-$a)); } else { $den = $den*(($choice)**(-$a)); - } + } } elsif ($trans[3] != 1 && $a > 0) {# neg exponent if ($choice < 1) { $num = $num*((1/$choice)**($a)); @@ -126,7 +126,7 @@ if ($choice != exp(1) && $choice != 1/exp(1)) { $num = $num*((1/$choice)**(-$a)); } else { $den = $den*(($choice)**(-$a)); - } + } } elsif ($trans[3] != 1 && $a > 0) {# neg exponent if ($choice < 1) { $num = $num*((1/$choice)**($a)); @@ -835,12 +835,12 @@ $ans = $possans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -851,7 +851,7 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR Let \(f\) be the exponential function defined by $PAR @@ -872,7 +872,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($asym->cmp()); ANS(Compute($range)->cmp()); @@ -893,12 +893,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{AnswerFormatHelp("equations", "Click here for help entering equations")\}, \{AnswerFormatHelp("intervals", "click here for help entering intervals")\}, or \{AnswerFormatHelp("points", "click here for help entering points")\}. + ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{helpLink("equations", "Click here for help entering equations")\}, \{helpLink("intervals", "click here for help entering intervals")\}, or \{helpLink("points", "click here for help entering points")\}. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('find all the given info, always vertical shift and horizontal reflection'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_11.pg b/Contrib/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_11.pg index 44d05d48f3..094f5ec670 100644 --- a/Contrib/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_11.pg +++ b/Contrib/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_11.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -33,7 +33,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @bases = (2..10); @@ -95,7 +95,7 @@ if ($choice != exp(1) && $choice != 1/exp(1)) { $num = $num*((1/$choice)**(-$a)); } else { $den = $den*(($choice)**(-$a)); - } + } } elsif ($trans[3] != 1 && $a > 0) {# neg exponent if ($choice < 1) { $num = $num*((1/$choice)**($a)); @@ -126,7 +126,7 @@ if ($choice != exp(1) && $choice != 1/exp(1)) { $num = $num*((1/$choice)**(-$a)); } else { $den = $den*(($choice)**(-$a)); - } + } } elsif ($trans[3] != 1 && $a > 0) {# neg exponent if ($choice < 1) { $num = $num*((1/$choice)**($a)); @@ -835,12 +835,12 @@ $ans = $possans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -851,7 +851,7 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR Let \(f\) be the exponential function defined by $PAR @@ -872,7 +872,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($asym->cmp()); ANS(Compute($range)->cmp()); @@ -893,12 +893,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{AnswerFormatHelp("equations", "Click here for help entering equations")\}, \{AnswerFormatHelp("intervals", "click here for help entering intervals")\}, or \{AnswerFormatHelp("points", "click here for help entering points")\}. + ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{helpLink("equations", "Click here for help entering equations")\}, \{helpLink("intervals", "click here for help entering intervals")\}, or \{helpLink("points", "click here for help entering points")\}. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('find all the given info, always vertical shift, and vertical and horizontal reflection'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_12.pg b/Contrib/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_12.pg index dc91343046..6208598cb9 100644 --- a/Contrib/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_12.pg +++ b/Contrib/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_12.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -33,7 +33,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @bases = (2..10); @@ -96,7 +96,7 @@ if ($choice != exp(1) && $choice != 1/exp(1)) { $num = $num*((1/$choice)**(-$a)); } else { $den = $den*(($choice)**(-$a)); - } + } } elsif ($trans[3] != 1 && $a > 0) {# neg exponent if ($choice < 1) { $num = $num*((1/$choice)**($a)); @@ -127,7 +127,7 @@ if ($choice != exp(1) && $choice != 1/exp(1)) { $num = $num*((1/$choice)**(-$a)); } else { $den = $den*(($choice)**(-$a)); - } + } } elsif ($trans[3] != 1 && $a > 0) {# neg exponent if ($choice < 1) { $num = $num*((1/$choice)**($a)); @@ -836,12 +836,12 @@ $ans = $possans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -852,7 +852,7 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR Let \(f\) be the exponential function defined by $PAR @@ -873,7 +873,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($asym->cmp()); ANS(Compute($range)->cmp()); @@ -894,12 +894,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{AnswerFormatHelp("equations", "Click here for help entering equations")\}, \{AnswerFormatHelp("intervals", "click here for help entering intervals")\}, or \{AnswerFormatHelp("points", "click here for help entering points")\}. + ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{helpLink("equations", "Click here for help entering equations")\}, \{helpLink("intervals", "click here for help entering intervals")\}, or \{helpLink("points", "click here for help entering points")\}. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('ALWAYS base e. Find all the given info, always vertical shift, and vertical and horizontal reflection'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_13.pg b/Contrib/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_13.pg index 4a0fad1e59..29d97336f0 100644 --- a/Contrib/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_13.pg +++ b/Contrib/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_13.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -33,7 +33,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @bases = (2..10); @@ -96,7 +96,7 @@ if ($choice != exp(1) && $choice != 1/exp(1)) { $num = $num*((1/$choice)**(-$a)); } else { $den = $den*(($choice)**(-$a)); - } + } } elsif ($trans[3] != 1 && $a > 0) {# neg exponent if ($choice < 1) { $num = $num*((1/$choice)**($a)); @@ -118,7 +118,7 @@ if ($choice != exp(1) && $choice != 1/exp(1)) { } # only other case is $a == 0, which is covered already $num = $num + $b*$den; $yintcoord = Fraction($num,$den); - + $dispyint = "\left(0,$yintcoord\right)"; } else { if ($trans[2] == 1) { @@ -129,7 +129,7 @@ if ($choice != exp(1) && $choice != 1/exp(1)) { $num = $num*((1/$choice)**(-$a)); } else { $den = $den*(($choice)**(-$a)); - } + } } elsif ($trans[3] != 1 && $a > 0) {# neg exponent if ($choice < 1) { $num = $num*((1/$choice)**($a)); @@ -841,12 +841,12 @@ $ans = $possans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -857,7 +857,7 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR Let \(f\) be the exponential function defined by $PAR @@ -878,7 +878,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($asym->cmp()); ANS(Compute($range)->cmp()); @@ -899,12 +899,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{AnswerFormatHelp("equations", "Click here for help entering equations")\}, \{AnswerFormatHelp("intervals", "click here for help entering intervals")\}, or \{AnswerFormatHelp("points", "click here for help entering points")\}. + ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{helpLink("equations", "Click here for help entering equations")\}, \{helpLink("intervals", "click here for help entering intervals")\}, or \{helpLink("points", "click here for help entering points")\}. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('ALWAYS base e. Find all the given info, always vertical and horizontal shift'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_linear/determine_eqn_from_graph_01.pg b/Contrib/Mizzou/Algebra/graph_linear/determine_eqn_from_graph_01.pg index 0d8a02d11a..0aa524fbcc 100644 --- a/Contrib/Mizzou/Algebra/graph_linear/determine_eqn_from_graph_01.pg +++ b/Contrib/Mizzou/Algebra/graph_linear/determine_eqn_from_graph_01.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Plots a line through arbitrary points and asks the student the give the +# Plots a line through arbitrary points and asks the student the give the # equation of the line passing through these points. # The line is completely arbitrary. # ENDDESCRIPTION @@ -13,12 +13,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = random(6,10,1); @@ -91,7 +91,7 @@ $line = Formula("y = $yCoordOne")->reduce; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -100,15 +100,15 @@ Write an equation for the line shown. $PAR $BCENTER \{ image( insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>300 ) \} -$ECENTER +$ECENTER $PAR -Equation: \{ans_rule(20)\} +Equation: \{ans_rule(20)\} END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### $texAnswer = "\(y = $yCoordOne\)"; ANS($line->cmp(studentsMustReduceFractions => 1)); @@ -131,7 +131,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('always horizontal line'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_linear/determine_eqn_from_graph_02.pg b/Contrib/Mizzou/Algebra/graph_linear/determine_eqn_from_graph_02.pg index 6be03df4f5..7808b3f83d 100644 --- a/Contrib/Mizzou/Algebra/graph_linear/determine_eqn_from_graph_02.pg +++ b/Contrib/Mizzou/Algebra/graph_linear/determine_eqn_from_graph_02.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Plots a line through arbitrary points and asks the student the give the +# Plots a line through arbitrary points and asks the student the give the # equation of the line passing through these points. # The line is always vertical. # ENDDESCRIPTION @@ -13,12 +13,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = random(6,10,1); @@ -87,11 +87,11 @@ $graph->stamps(closed_circle($xCoordTwo, $yCoordTwo, 'blue')); # compute the line, this will be used in answer check Context("Fraction-NoDecimals")->variables->are(x => 'Real', y => 'Real'); parser::Assignment->Allow; -$line = Formula("x = $xCoordOne")->reduce; +$line = Formula("x = $xCoordOne")->reduce; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -100,15 +100,15 @@ Write an equation for the line shown. $PAR $BCENTER \{ image( insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>300 ) \} -$ECENTER +$ECENTER $PAR -Equation: \{ans_rule(20)\} +Equation: \{ans_rule(20)\} END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### $texAnswer = "\(x = $xCoordOne\)"; ANS($line->cmp()); @@ -131,7 +131,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('always vertical line'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_linear/determine_eqn_from_graph_03.pg b/Contrib/Mizzou/Algebra/graph_linear/determine_eqn_from_graph_03.pg index 3a3ee1fe67..c9638fa8a9 100644 --- a/Contrib/Mizzou/Algebra/graph_linear/determine_eqn_from_graph_03.pg +++ b/Contrib/Mizzou/Algebra/graph_linear/determine_eqn_from_graph_03.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Plots a line through arbitrary points and asks the student the give the +# Plots a line through arbitrary points and asks the student the give the # equation of the line passing through these points. # The line is completely arbitrary. # ENDDESCRIPTION @@ -13,12 +13,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = random(6,10,1); @@ -136,7 +136,7 @@ $graph->stamps(closed_circle($xCoordTwo, $yCoordTwo, 'blue')); Context("Fraction-NoDecimals")->variables->are(x => 'Real', y => 'Real'); parser::Assignment->Allow; if ($vOrHLine == 1) { - $line = Formula("x = $xCoordOne")->reduce; + $line = Formula("x = $xCoordOne")->reduce; } else { $m = Compute("($yCoordOne - $yCoordTwo)/($xCoordOne - $xCoordTwo)"); $b = $yCoordOne - $m*$xCoordOne; @@ -145,7 +145,7 @@ if ($vOrHLine == 1) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -154,15 +154,15 @@ Write an equation for the line shown. Write your answer in the form \(y=mx+b\). $PAR $BCENTER \{ image( insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>300 ) \} -$ECENTER +$ECENTER $PAR -Equation: \{ans_rule(20)\} +Equation: \{ans_rule(20)\} END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### if ($vOrHLine == 0) { $texAnswer = "\(y = $yCoordOne\)"; @@ -172,18 +172,18 @@ if ($vOrHLine == 0) { ANS($line->cmp()); } else { $texAnswer = "\(y = $m x + $b\)"; - if ($m == 1) { + if ($m == 1) { if ($b == 0) { $texAnswer = "\( y = x \)"; } else { $texAnswer = "\( y = x + $b \)"; - } - } elsif ($m == -1) { + } + } elsif ($m == -1) { if ($b == 0) { $texAnswer = "\( y = -x \)"; } else { $texAnswer = "\( y = -x + $b \)"; - } + } } ANS($line->cmp(studentsMustReduceFractions => 1)); } @@ -206,7 +206,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('completely arbitrary'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_linear/determine_eqn_from_graph_04.pg b/Contrib/Mizzou/Algebra/graph_linear/determine_eqn_from_graph_04.pg index e335075c91..d4bdffefe7 100644 --- a/Contrib/Mizzou/Algebra/graph_linear/determine_eqn_from_graph_04.pg +++ b/Contrib/Mizzou/Algebra/graph_linear/determine_eqn_from_graph_04.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Plots a line through arbitrary points and asks the student the give the +# Plots a line through arbitrary points and asks the student the give the # equation of the line passing through these points. # The line is never horizontal nor vertical. # ENDDESCRIPTION @@ -13,12 +13,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = random(6,10,1); @@ -119,7 +119,7 @@ $line = Formula("y = $m x + $b")->reduce; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -128,29 +128,29 @@ Write an equation for the line shown. $PAR $BCENTER \{ image( insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>800 ) \} -$ECENTER +$ECENTER $PAR -Equation: \{ans_rule(20)\} +Equation: \{ans_rule(20)\} END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### $texAnswer = "\(y = $m x + $b\)"; -if ($m == 1) { +if ($m == 1) { if ($b == 0) { $texAnswer = "\( y = x \)"; } else { $texAnswer = "\( y = x + $b \)"; - } -} elsif ($m == -1) { + } +} elsif ($m == -1) { if ($b == 0) { $texAnswer = "\( y = -x \)"; } else { $texAnswer = "\( y = -x + $b \)"; - } + } } ANS($line->cmp(studentsMustReduceFractions => 1)); @@ -172,7 +172,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('no horizontal or vertical'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_linear/determine_slope_from_graph_01.pg b/Contrib/Mizzou/Algebra/graph_linear/determine_slope_from_graph_01.pg index 09060c1b65..0c1a231ce0 100644 --- a/Contrib/Mizzou/Algebra/graph_linear/determine_slope_from_graph_01.pg +++ b/Contrib/Mizzou/Algebra/graph_linear/determine_slope_from_graph_01.pg @@ -12,12 +12,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -32,7 +32,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = random(6,10,1); @@ -144,7 +144,7 @@ if ($vOrHLine == 1) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -153,15 +153,15 @@ Find the slope of the line if it exists or write ${BBOLD}undefined${EBOLD} if th $PAR $BCENTER \{ image( insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>300 ) \} -$ECENTER +$ECENTER $PAR -\(m = \) \{ans_rule(20)\} +\(m = \) \{ans_rule(20)\} END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### if ($vOrHLine == 1) { $texAnswer = "The slope is undefined."; @@ -189,7 +189,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('arbitrary line, including vertical/horizontal'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_linear/determine_slope_from_graph_02.pg b/Contrib/Mizzou/Algebra/graph_linear/determine_slope_from_graph_02.pg index 39f6023b83..de12f38834 100644 --- a/Contrib/Mizzou/Algebra/graph_linear/determine_slope_from_graph_02.pg +++ b/Contrib/Mizzou/Algebra/graph_linear/determine_slope_from_graph_02.pg @@ -12,12 +12,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -32,7 +32,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = random(6,10,1); @@ -90,7 +90,7 @@ $m = Compute("0"); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -99,15 +99,15 @@ Find the slope of the line if it exists or write ${BBOLD}undefined${EBOLD} if th $PAR $BCENTER \{ image( insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>300 ) \} -$ECENTER +$ECENTER $PAR -\(m = \) \{ans_rule(20)\} +\(m = \) \{ans_rule(20)\} END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### $texAnswer = "\(m = $m\)"; ANS($m->cmp(studentsMustReduceFractions => 1)); @@ -130,7 +130,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('always horizontal'); diff --git a/Contrib/Mizzou/Algebra/graph_linear/determine_slope_from_graph_03.pg b/Contrib/Mizzou/Algebra/graph_linear/determine_slope_from_graph_03.pg index 09670fdbdd..95aa51eb89 100644 --- a/Contrib/Mizzou/Algebra/graph_linear/determine_slope_from_graph_03.pg +++ b/Contrib/Mizzou/Algebra/graph_linear/determine_slope_from_graph_03.pg @@ -12,12 +12,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -32,7 +32,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = random(6,10,1); @@ -90,7 +90,7 @@ $m = String("undefined"); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -99,15 +99,15 @@ Find the slope of the line if it exists or write ${BBOLD}undefined${EBOLD} if th $PAR $BCENTER \{ image( insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>300 ) \} -$ECENTER +$ECENTER $PAR -\(m = \) \{ans_rule(20)\} +\(m = \) \{ans_rule(20)\} END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### $texAnswer = "The slope is undefined."; ANS($m->cmp($studentsMustReduceFractions => 1)); @@ -130,7 +130,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('always vertical'); diff --git a/Contrib/Mizzou/Algebra/graph_linear/determine_slope_from_graph_04.pg b/Contrib/Mizzou/Algebra/graph_linear/determine_slope_from_graph_04.pg index 46c779aef8..667ecbd4b4 100644 --- a/Contrib/Mizzou/Algebra/graph_linear/determine_slope_from_graph_04.pg +++ b/Contrib/Mizzou/Algebra/graph_linear/determine_slope_from_graph_04.pg @@ -12,12 +12,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -32,7 +32,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = random(6,10,1); @@ -116,7 +116,7 @@ $m = Compute("$num/$den")->reduce; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -125,15 +125,15 @@ Find the slope of the line if it exists or write ${BBOLD}undefined${EBOLD} if th $PAR $BCENTER \{ image( insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>300 ) \} -$ECENTER +$ECENTER $PAR -\(m = \) \{ans_rule(20)\} +\(m = \) \{ans_rule(20)\} END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### $texAnswer = "\(m = $m\)"; ANS($m->cmp(studentsMustReduceFractions => 1)); @@ -156,7 +156,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('no vertical or horizontal'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_linear/determine_slope_from_graph_05.pg b/Contrib/Mizzou/Algebra/graph_linear/determine_slope_from_graph_05.pg index 0716360026..55c97a1796 100644 --- a/Contrib/Mizzou/Algebra/graph_linear/determine_slope_from_graph_05.pg +++ b/Contrib/Mizzou/Algebra/graph_linear/determine_slope_from_graph_05.pg @@ -12,12 +12,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -32,7 +32,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = random(6,10,1); @@ -117,14 +117,14 @@ $pm = Compute("-$den/$num")->reduce; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $PAR $BCENTER \{ image( insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>300 ) \} -$ECENTER +$ECENTER $PAR Determine the slope of the lines that are parallel and perpendicular to the line given in the graph above. $PAR @@ -134,7 +134,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### $texAnswer = "a parallel line has slope \(m = $m\), and a perpendicular line has slope \(m = $pm\)"; ANS($m->cmp(studentsMustReduceFractions => 1)); @@ -158,7 +158,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('no vertical or horizontal, asks for slope of parallel and perpendicular lines'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_01.pg b/Contrib/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_01.pg index 409cfde669..98b26fae4d 100644 --- a/Contrib/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_01.pg +++ b/Contrib/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_01.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -33,7 +33,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @bases = (2..10); @@ -605,12 +605,12 @@ $ans = $possans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -621,7 +621,7 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR Let \(f\) be the exponential function defined by $PAR @@ -640,7 +640,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($asym->cmp()); ANS(Compute($domain)->cmp()); @@ -660,12 +660,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{AnswerFormatHelp("equations", "Click here for help entering equations")\}, \{AnswerFormatHelp("intervals", "click here for help entering intervals")\}, or \{AnswerFormatHelp("points", "click here for help entering points")\}. + ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{helpLink("equations", "Click here for help entering equations")\}, \{helpLink("intervals", "click here for help entering intervals")\}, or \{helpLink("points", "click here for help entering points")\}. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('horizontal shift and horizontal reflection'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_02.pg b/Contrib/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_02.pg index 6ad8c3366f..e560b3e377 100644 --- a/Contrib/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_02.pg +++ b/Contrib/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_02.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -33,7 +33,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @bases = (2..10); @@ -605,12 +605,12 @@ $ans = $possans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -621,7 +621,7 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR Let \(f\) be the exponential function defined by $PAR @@ -640,7 +640,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($asym->cmp()); ANS(Compute($domain)->cmp()); @@ -660,12 +660,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{AnswerFormatHelp("equations", "Click here for help entering equations")\}, \{AnswerFormatHelp("intervals", "click here for help entering intervals")\}, or \{AnswerFormatHelp("points", "click here for help entering points")\}. + ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{helpLink("equations", "Click here for help entering equations")\}, \{helpLink("intervals", "click here for help entering intervals")\}, or \{helpLink("points", "click here for help entering points")\}. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('horizontal shift, and horizontal and vertical reflection'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_03.pg b/Contrib/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_03.pg index 4e39f4e4ce..d40708932f 100644 --- a/Contrib/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_03.pg +++ b/Contrib/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_03.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -33,7 +33,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @bases = (2..10); @@ -605,12 +605,12 @@ $ans = $possans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -621,7 +621,7 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR Let \(f\) be the logarithmic function defined by $PAR @@ -640,7 +640,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($asym->cmp()); ANS(Compute($domain)->cmp()); @@ -660,12 +660,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{AnswerFormatHelp("equations", "Click here for help entering equations")\}, \{AnswerFormatHelp("intervals", "click here for help entering intervals")\}, or \{AnswerFormatHelp("points", "click here for help entering points")\}. + ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{helpLink("equations", "Click here for help entering equations")\}, \{helpLink("intervals", "click here for help entering intervals")\}, or \{helpLink("points", "click here for help entering points")\}. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('horizontal shift and vertical reflection'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_04.pg b/Contrib/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_04.pg index 8f585bbfee..603a2ceee7 100644 --- a/Contrib/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_04.pg +++ b/Contrib/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_04.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -33,7 +33,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @bases = (2..10); @@ -605,12 +605,12 @@ $ans = $possans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -621,7 +621,7 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR Let \(f\) be the logarithmic function defined by $PAR @@ -640,7 +640,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($asym->cmp()); ANS(Compute($domain)->cmp()); @@ -660,12 +660,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{AnswerFormatHelp("equations", "Click here for help entering equations")\}, \{AnswerFormatHelp("intervals", "click here for help entering intervals")\}, or \{AnswerFormatHelp("points", "click here for help entering points")\}. + ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{helpLink("equations", "Click here for help entering equations")\}, \{helpLink("intervals", "click here for help entering intervals")\}, or \{helpLink("points", "click here for help entering points")\}. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('horizontal shift and vertical shift'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_05.pg b/Contrib/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_05.pg index c78ee67570..d00fb98e06 100644 --- a/Contrib/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_05.pg +++ b/Contrib/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_05.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -33,7 +33,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @bases = (2..10); @@ -605,12 +605,12 @@ $ans = $possans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -621,7 +621,7 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR Let \(f\) be the exponential function defined by $PAR @@ -640,7 +640,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($asym->cmp()); ANS(Compute($domain)->cmp()); @@ -660,12 +660,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{AnswerFormatHelp("equations", "Click here for help entering equations")\}, \{AnswerFormatHelp("intervals", "click here for help entering intervals")\}, or \{AnswerFormatHelp("points", "click here for help entering points")\}. + ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{helpLink("equations", "Click here for help entering equations")\}, \{helpLink("intervals", "click here for help entering intervals")\}, or \{helpLink("points", "click here for help entering points")\}. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('horizontal and vertical shift, and horizontal reflection'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_06.pg b/Contrib/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_06.pg index fcb290f2b4..0ecc5d665f 100644 --- a/Contrib/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_06.pg +++ b/Contrib/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_06.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -33,7 +33,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @bases = (2..10); @@ -605,12 +605,12 @@ $ans = $possans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -621,7 +621,7 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR Let \(f\) be the exponential function defined by $PAR @@ -640,7 +640,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($asym->cmp()); ANS(Compute($domain)->cmp()); @@ -660,12 +660,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{AnswerFormatHelp("equations", "Click here for help entering equations")\}, \{AnswerFormatHelp("intervals", "click here for help entering intervals")\}, or \{AnswerFormatHelp("points", "click here for help entering points")\}. + ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{helpLink("equations", "Click here for help entering equations")\}, \{helpLink("intervals", "click here for help entering intervals")\}, or \{helpLink("points", "click here for help entering points")\}. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('horizontal and vertical shift and horizontal and vertical reflection'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_07.pg b/Contrib/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_07.pg index d052da7f51..40ac371fbc 100644 --- a/Contrib/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_07.pg +++ b/Contrib/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_07.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -33,7 +33,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @bases = (2..10); @@ -605,12 +605,12 @@ $ans = $possans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -621,7 +621,7 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR Let \(f\) be the logarithmic function defined by $PAR @@ -640,7 +640,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($asym->cmp()); ANS(Compute($domain)->cmp()); @@ -660,12 +660,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{AnswerFormatHelp("equations", "Click here for help entering equations")\}, \{AnswerFormatHelp("intervals", "click here for help entering intervals")\}, or \{AnswerFormatHelp("points", "click here for help entering points")\}. + ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{helpLink("equations", "Click here for help entering equations")\}, \{helpLink("intervals", "click here for help entering intervals")\}, or \{helpLink("points", "click here for help entering points")\}. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('horizontal and vertical shift and vertical reflection'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_08.pg b/Contrib/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_08.pg index 56e0dceb1e..6b10adabbc 100644 --- a/Contrib/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_08.pg +++ b/Contrib/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_08.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -33,7 +33,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @bases = (2..10); @@ -605,12 +605,12 @@ $ans = $possans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -621,7 +621,7 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR Let \(f\) be the logarithmic function defined by $PAR @@ -640,7 +640,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($asym->cmp()); ANS(Compute($domain)->cmp()); @@ -660,12 +660,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{AnswerFormatHelp("equations", "Click here for help entering equations")\}, \{AnswerFormatHelp("intervals", "click here for help entering intervals")\}, or \{AnswerFormatHelp("points", "click here for help entering points")\}. + ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{helpLink("equations", "Click here for help entering equations")\}, \{helpLink("intervals", "click here for help entering intervals")\}, or \{helpLink("points", "click here for help entering points")\}. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('horizontal and vertical reflection'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_09.pg b/Contrib/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_09.pg index 8eb3dc5c1b..5daa4de541 100644 --- a/Contrib/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_09.pg +++ b/Contrib/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_09.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -33,7 +33,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @bases = (2..10); @@ -605,12 +605,12 @@ $ans = $possans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -621,7 +621,7 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR Let \(f\) be the logarithmic function defined by $PAR @@ -640,7 +640,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($asym->cmp()); ANS(Compute($domain)->cmp()); @@ -660,12 +660,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{AnswerFormatHelp("equations", "Click here for help entering equations")\}, \{AnswerFormatHelp("intervals", "click here for help entering intervals")\}, or \{AnswerFormatHelp("points", "click here for help entering points")\}. + ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{helpLink("equations", "Click here for help entering equations")\}, \{helpLink("intervals", "click here for help entering intervals")\}, or \{helpLink("points", "click here for help entering points")\}. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('vertical shift and vertical reflection'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_10.pg b/Contrib/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_10.pg index 0a8bd8acdf..673f4482b8 100644 --- a/Contrib/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_10.pg +++ b/Contrib/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_10.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -33,7 +33,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @bases = (2..10); @@ -605,12 +605,12 @@ $ans = $possans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -621,7 +621,7 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR Let \(f\) be the logarithmic function defined by $PAR @@ -640,7 +640,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($asym->cmp()); ANS(Compute($domain)->cmp()); @@ -660,12 +660,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{AnswerFormatHelp("equations", "Click here for help entering equations")\}, \{AnswerFormatHelp("intervals", "click here for help entering intervals")\}, or \{AnswerFormatHelp("points", "click here for help entering points")\}. + ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{helpLink("equations", "Click here for help entering equations")\}, \{helpLink("intervals", "click here for help entering intervals")\}, or \{helpLink("points", "click here for help entering points")\}. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('vertical shift and horizontal reflection'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_11.pg b/Contrib/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_11.pg index 794fe07182..b03ebef9e9 100644 --- a/Contrib/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_11.pg +++ b/Contrib/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_11.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -33,7 +33,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @bases = (2..10); @@ -605,12 +605,12 @@ $ans = $possans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -621,7 +621,7 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR Let \(f\) be the exponential function defined by $PAR @@ -640,7 +640,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($asym->cmp()); ANS(Compute($domain)->cmp()); @@ -660,12 +660,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{AnswerFormatHelp("equations", "Click here for help entering equations")\}, \{AnswerFormatHelp("intervals", "click here for help entering intervals")\}, or \{AnswerFormatHelp("points", "click here for help entering points")\}. + ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{helpLink("equations", "Click here for help entering equations")\}, \{helpLink("intervals", "click here for help entering intervals")\}, or \{helpLink("points", "click here for help entering points")\}. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('horizontal shift, and horizontal and vertical reflection'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_12.pg b/Contrib/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_12.pg index f6c53f5347..c25781c9a3 100644 --- a/Contrib/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_12.pg +++ b/Contrib/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_12.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -33,7 +33,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @bases = (2..10); @@ -606,12 +606,12 @@ $ans = $possans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -622,7 +622,7 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR Let \(f\) be the logarithmic function defined by $PAR @@ -641,7 +641,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($asym->cmp()); ANS(Compute($domain)->cmp()); @@ -661,12 +661,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{AnswerFormatHelp("equations", "Click here for help entering equations")\}, \{AnswerFormatHelp("intervals", "click here for help entering intervals")\}, or \{AnswerFormatHelp("points", "click here for help entering points")\}. + ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{helpLink("equations", "Click here for help entering equations")\}, \{helpLink("intervals", "click here for help entering intervals")\}, or \{helpLink("points", "click here for help entering points")\}. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('ALWAYS ln. horizontal and vertical reflection'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_13.pg b/Contrib/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_13.pg index e269b25c9c..00461959e2 100644 --- a/Contrib/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_13.pg +++ b/Contrib/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_13.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -33,7 +33,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @bases = (2..10); @@ -606,12 +606,12 @@ $ans = $possans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -622,7 +622,7 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR Let \(f\) be the logarithmic function defined by $PAR @@ -641,7 +641,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($asym->cmp()); ANS(Compute($domain)->cmp()); @@ -661,12 +661,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{AnswerFormatHelp("equations", "Click here for help entering equations")\}, \{AnswerFormatHelp("intervals", "click here for help entering intervals")\}, or \{AnswerFormatHelp("points", "click here for help entering points")\}. + ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{helpLink("equations", "Click here for help entering equations")\}, \{helpLink("intervals", "click here for help entering intervals")\}, or \{helpLink("points", "click here for help entering points")\}. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('ALWAYS base e. horizontal shift and vertical shift'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_polynomials/find_all_info_01.pg b/Contrib/Mizzou/Algebra/graph_polynomials/find_all_info_01.pg index cdb3f51e45..b1071efdf9 100644 --- a/Contrib/Mizzou/Algebra/graph_polynomials/find_all_info_01.pg +++ b/Contrib/Mizzou/Algebra/graph_polynomials/find_all_info_01.pg @@ -13,12 +13,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -33,7 +33,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); Context()->strings->add("even"=>{}, "e"=>{alias=>"even"}, @@ -52,7 +52,7 @@ do { $powers[$i] = random(2,3); } else { $powers[$i] = random(1,2); - } + } $removed = 0; $count = 0; do { @@ -98,7 +98,7 @@ do { # this sub routine represents what is to be the graphed polynomial sub poly { - my $x = shift(); + my $x = shift(); $prod = 1; for ($i = 0; $i < $numzeros; $i++) { $prod = $prod*(($x - $zeros[$i])**$powers[$i]); @@ -122,7 +122,7 @@ do { } } - # this next bit is to be sure that the gap between the low or high point + # this next bit is to be sure that the gap between the low or high point # between zeros and the x-axis is not too small for ($i = 0; $i < $numzeros-1; $i++) { $maxs[$i] = 0; @@ -134,8 +134,8 @@ do { for ($k = 0; $k < $steps; $k++) { $tmp = abs(poly($zeros[$j]+$k*$stepsize)); if ($tmp > $maxs[$j]) { - $maxs[$j] = $tmp; - } + $maxs[$j] = $tmp; + } } } @@ -148,7 +148,7 @@ do { } until (abs($tmp2/$tmp1) < 3*$scale/2); $expn = sub { - my $x = shift(); + my $x = shift(); $prod = $a; for ($i = 0; $i < $numzeros; $i++) { $prod = $prod*(($x - $zeros[$i])**$powers[$i]); @@ -243,7 +243,7 @@ $ma = MultiAnswer(@answers)->with( } } for ($i = 0; $i < $num; $i++) { - $reans[0][$i] = $returnans[0][$i]; + $reans[0][$i] = $returnans[0][$i]; } return @reans; } @@ -275,7 +275,7 @@ for ($i = 1; $i < $numzeros; $i++) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -283,12 +283,12 @@ BEGIN_TEXT $PAR $BCENTER \{ image(insertGraph($graph), width=>$gsize, height=>$gsize, tex_size=>500 ); \} -$ECENTER +$ECENTER $PAR -Find the following information pertaining to the polynomial, \(f(x)\), graphed above. +Find the following information pertaining to the polynomial, \(f(x)\), graphed above. $PAR -(a) The zeros of \(f(x)\) are \(x = \) \{ans_rule(15)\} (separate by commas) and +(a) The zeros of \(f(x)\) are \(x = \) \{ans_rule(15)\} (separate by commas) and END_TEXT for ($i = 0; $i < $numzeros; $i++) { @@ -322,7 +322,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($zerosans)->cmp()); ANS($ma->cmp()); @@ -354,7 +354,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_quadratic/determine_eqn_from_graph_01.pg b/Contrib/Mizzou/Algebra/graph_quadratic/determine_eqn_from_graph_01.pg index bbe7e59d3d..df425c13d4 100644 --- a/Contrib/Mizzou/Algebra/graph_quadratic/determine_eqn_from_graph_01.pg +++ b/Contrib/Mizzou/Algebra/graph_quadratic/determine_eqn_from_graph_01.pg @@ -12,12 +12,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @@ -91,7 +91,7 @@ $eqn = Formula("y = -(x - $h)**2 + $k")->reduce; $dispeqn = "y = -(x - $h)^2+$k"; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -99,7 +99,7 @@ BEGIN_TEXT $PAR $BCENTER \{ image(insertGraph($graph), width=>$gsize, height=>$gsize, tex_size=>500 ); \} -$ECENTER +$ECENTER $PAR Determine the equation of the quadratic function graphed above. Write your answer in standard form. @@ -109,7 +109,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($eqn)->cmp()); @@ -128,12 +128,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("equations","Click here for help entering equations.") \} + ${BBOLD}Help:${EBOLD} \{helpLink("equations","Click here for help entering equations.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('opens down'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_quadratic/determine_eqn_from_graph_02.pg b/Contrib/Mizzou/Algebra/graph_quadratic/determine_eqn_from_graph_02.pg index 341edebe21..f774019d87 100644 --- a/Contrib/Mizzou/Algebra/graph_quadratic/determine_eqn_from_graph_02.pg +++ b/Contrib/Mizzou/Algebra/graph_quadratic/determine_eqn_from_graph_02.pg @@ -12,12 +12,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @@ -91,7 +91,7 @@ $eqn = Formula("y = (x - $h)**2 + $k")->reduce; $dispeqn = "y = (x - $h)^2+$k"; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -99,7 +99,7 @@ BEGIN_TEXT $PAR $BCENTER \{ image(insertGraph($graph), width=>$gsize, height=>$gsize, tex_size=>500 ); \} -$ECENTER +$ECENTER $PAR Determine the equation of the quadratic function graphed above. Write your answer in standard form. @@ -109,7 +109,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($eqn)->cmp()); @@ -128,12 +128,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("equations","Click here for help entering equations.") \} + ${BBOLD}Help:${EBOLD} \{helpLink("equations","Click here for help entering equations.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('opens up'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_quadratic/determine_eqn_from_graph_03.pg b/Contrib/Mizzou/Algebra/graph_quadratic/determine_eqn_from_graph_03.pg index 45963de396..550c886b5d 100644 --- a/Contrib/Mizzou/Algebra/graph_quadratic/determine_eqn_from_graph_03.pg +++ b/Contrib/Mizzou/Algebra/graph_quadratic/determine_eqn_from_graph_03.pg @@ -12,12 +12,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @@ -97,7 +97,7 @@ if ($a < 0) { $dispeqn = ($dispeqn)."(x - $h)^2+$k"; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -105,7 +105,7 @@ BEGIN_TEXT $PAR $BCENTER \{ image(insertGraph($graph), width=>$gsize, height=>$gsize, tex_size=>500 ); \} -$ECENTER +$ECENTER $PAR Determine the equation of the quadratic function graphed above. Write your answer in standard form. @@ -115,7 +115,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($eqn)->cmp()); @@ -134,12 +134,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("equations","Click here for help entering equations.") \} + ${BBOLD}Help:${EBOLD} \{helpLink("equations","Click here for help entering equations.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('opens up or down arbitrarily'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_rational/find_all_info_and_graph_01.pg b/Contrib/Mizzou/Algebra/graph_rational/find_all_info_and_graph_01.pg index 5a6384f4cf..5bab6af91f 100644 --- a/Contrib/Mizzou/Algebra/graph_rational/find_all_info_and_graph_01.pg +++ b/Contrib/Mizzou/Algebra/graph_rational/find_all_info_and_graph_01.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -32,7 +32,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $lead = random(-1,1,2); @@ -231,12 +231,12 @@ $letterans = $possletterans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1], $figs[2]]). TableSpace(5,0). @@ -251,10 +251,10 @@ BeginTable(). AlignedRow(["D", "E"]). EndTable(); \} -$ECENTER +$ECENTER $PAR -Determine the following information given that +Determine the following information given that $PAR \[$dispfun\] $PAR @@ -276,7 +276,7 @@ Context()->normalStrings; ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($hori)->cmp()); ANS(List(String("none"))->cmp()); @@ -294,7 +294,7 @@ Context()->texStrings; if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR - ${BBOLD}Answer:${EBOLD} + ${BBOLD}Answer:${EBOLD} $PAR (a) \(y = $hori\) $PAR @@ -315,7 +315,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('eqn is like form 1/x^2'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_rational/find_all_info_and_graph_02.pg b/Contrib/Mizzou/Algebra/graph_rational/find_all_info_and_graph_02.pg index f85a9b3f12..5143a2e4e7 100644 --- a/Contrib/Mizzou/Algebra/graph_rational/find_all_info_and_graph_02.pg +++ b/Contrib/Mizzou/Algebra/graph_rational/find_all_info_and_graph_02.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -32,7 +32,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $lead = random(-1,1,2); @@ -230,12 +230,12 @@ $letterans = $possletterans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1], $figs[2]]). TableSpace(5,0). @@ -250,10 +250,10 @@ BeginTable(). AlignedRow(["D", "E"]). EndTable(); \} -$ECENTER +$ECENTER $PAR -Determine the following information given that +Determine the following information given that $PAR \[$dispfun\] $PAR @@ -274,7 +274,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($hori)->cmp()); ANS(List(String("none"))->cmp()); @@ -291,7 +291,7 @@ ANS(String($letterans)->cmp()); if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR - ${BBOLD}Answer:${EBOLD} + ${BBOLD}Answer:${EBOLD} $PAR (a) \(y = $hori\) $PAR @@ -312,7 +312,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('eqn is like 1/x'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_rational/find_all_info_and_graph_03.pg b/Contrib/Mizzou/Algebra/graph_rational/find_all_info_and_graph_03.pg index 045afc6a81..2f10a6496f 100644 --- a/Contrib/Mizzou/Algebra/graph_rational/find_all_info_and_graph_03.pg +++ b/Contrib/Mizzou/Algebra/graph_rational/find_all_info_and_graph_03.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -32,7 +32,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $a = non_zero_random(-5,5); @@ -226,12 +226,12 @@ $letterans = $possletterans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1], $figs[2]]). TableSpace(5,0). @@ -246,10 +246,10 @@ BeginTable(). AlignedRow(["D", "E"]). EndTable(); \} -$ECENTER +$ECENTER $PAR -Determine the following information given that +Determine the following information given that $PAR \[$dispfun\] $PAR @@ -270,7 +270,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($hori)->cmp()); ANS(List(String("none"))->cmp()); @@ -287,7 +287,7 @@ ANS(String($letterans)->cmp()); if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR - ${BBOLD}Answer:${EBOLD} + ${BBOLD}Answer:${EBOLD} $PAR (a) \(y = $hori\) $PAR @@ -308,7 +308,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('eqn is of form (ax+b)/(cx + d)'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_rational/find_all_info_and_graph_04.pg b/Contrib/Mizzou/Algebra/graph_rational/find_all_info_and_graph_04.pg index 19dd5d8914..59c48a5937 100644 --- a/Contrib/Mizzou/Algebra/graph_rational/find_all_info_and_graph_04.pg +++ b/Contrib/Mizzou/Algebra/graph_rational/find_all_info_and_graph_04.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -32,7 +32,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $a = non_zero_random(-5,5); @@ -216,12 +216,12 @@ $letterans = $possletterans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -236,10 +236,10 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR -Determine the following information given that +Determine the following information given that $PAR \[$dispfun\] $PAR @@ -260,7 +260,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($hori)->cmp()); ANS(List(String("none"))->cmp()); @@ -277,7 +277,7 @@ ANS(String($letterans)->cmp()); if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR - ${BBOLD}Answer:${EBOLD} + ${BBOLD}Answer:${EBOLD} $PAR (a) \(y = $hori\) $PAR @@ -298,7 +298,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('eqn is a linear function over a quadratic, no holes'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_rational/find_all_info_and_graph_05.pg b/Contrib/Mizzou/Algebra/graph_rational/find_all_info_and_graph_05.pg index c4305eeee0..861597359e 100644 --- a/Contrib/Mizzou/Algebra/graph_rational/find_all_info_and_graph_05.pg +++ b/Contrib/Mizzou/Algebra/graph_rational/find_all_info_and_graph_05.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -32,7 +32,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $a = random(2,5); @@ -211,12 +211,12 @@ for ($i = 0; $i < 5; $i++) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1], $figs[2]]). TableSpace(5,0). @@ -231,10 +231,10 @@ BeginTable(). AlignedRow(["D", "E"]). EndTable(); \} -$ECENTER +$ECENTER $PAR -Determine the following information given that +Determine the following information given that $PAR \[$dispfun\] $PAR @@ -255,7 +255,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### Context("Numeric"); $hori = List(0); @@ -293,10 +293,10 @@ Context()->texStrings; if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR - ${BBOLD}Answer:${EBOLD} + ${BBOLD}Answer:${EBOLD} $PAR (a) \(y = $hori\) - $PAR + $PAR (b) \($hole\) $PAR (c) \(x = $vert\) @@ -316,7 +316,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Function of form (a x - b)/((ax-b)(c-x)). Hole at x = b/a;'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_rational/find_all_info_and_graph_06.pg b/Contrib/Mizzou/Algebra/graph_rational/find_all_info_and_graph_06.pg index 682e1d677b..ccbef41ef3 100644 --- a/Contrib/Mizzou/Algebra/graph_rational/find_all_info_and_graph_06.pg +++ b/Contrib/Mizzou/Algebra/graph_rational/find_all_info_and_graph_06.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -32,7 +32,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $a = non_zero_random(-5,5); @@ -219,12 +219,12 @@ for ($i = 0; $i < 5; $i++) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1], $figs[2]]). TableSpace(5,0). @@ -239,10 +239,10 @@ BeginTable(). AlignedRow(["D", "E"]). EndTable(); \} -$ECENTER +$ECENTER $PAR -Determine the following information given that +Determine the following information given that $PAR \[$dispfun\] $PAR @@ -263,7 +263,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### Context("Numeric"); $hori = List(1); @@ -301,10 +301,10 @@ Context()->texStrings; if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR - ${BBOLD}Answer:${EBOLD} + ${BBOLD}Answer:${EBOLD} $PAR (a) \(y = $hori\) - $PAR + $PAR (b) \($hole\) $PAR (c) \(x = $vert\) @@ -324,7 +324,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Function of form ((x-a)(x-c))/((x-b)(x-c)). Hole at x = c.'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_rational/find_all_info_and_graph_07.pg b/Contrib/Mizzou/Algebra/graph_rational/find_all_info_and_graph_07.pg index dccd9cd1bf..fd5cda89bd 100644 --- a/Contrib/Mizzou/Algebra/graph_rational/find_all_info_and_graph_07.pg +++ b/Contrib/Mizzou/Algebra/graph_rational/find_all_info_and_graph_07.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -32,7 +32,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $a = random(2,5); @@ -176,12 +176,12 @@ for ($i = 0; $i < 5; $i++) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1], $figs[2]]). TableSpace(5,0). @@ -196,10 +196,10 @@ BeginTable(). AlignedRow(["D", "E"]). EndTable(); \} -$ECENTER +$ECENTER $PAR -Determine the following information given that +Determine the following information given that $PAR \[$dispfun\] $PAR @@ -220,7 +220,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### Context("Numeric"); $hori = List(0); @@ -253,10 +253,10 @@ Context()->texStrings; if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR - ${BBOLD}Answer:${EBOLD} + ${BBOLD}Answer:${EBOLD} $PAR (a) \(y = $hori\) - $PAR + $PAR (b) none $PAR (c) none @@ -276,7 +276,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Of form ax/(x^2+b^2).'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift.pg b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift.pg index 1d3a544ffa..aee904cf03 100644 --- a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift.pg +++ b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of an abs value function and asks for the +# Gives the graph of an abs value function and asks for the # correct equation which has this graph. # The graph always has horizontal shift. # The graph has nothing else. @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -77,7 +77,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -176,7 +176,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -185,7 +185,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>250 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -193,7 +193,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -217,7 +217,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR diff --git a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vrefl.pg b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vrefl.pg index 699cbf1463..b931e29bf3 100644 --- a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vrefl.pg +++ b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vrefl.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of an abs value function and asks for the +# Gives the graph of an abs value function and asks for the # correct equation which has this graph. # The graph always has horizontal shift and vert refl. # The graph has nothing else. @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -77,7 +77,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -175,7 +175,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -184,7 +184,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -192,7 +192,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -216,7 +216,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR diff --git a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vrefl_vshr.pg b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vrefl_vshr.pg index 717c9012d1..e3b71eac7e 100644 --- a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vrefl_vshr.pg +++ b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vrefl_vshr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of an abs value function and asks for the +# Gives the graph of an abs value function and asks for the # correct equation which has this graph. # The graph always has horizontal shift, vert refl, vert shr. # The graph has nothing else. @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -77,7 +77,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -175,7 +175,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -184,7 +184,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -192,7 +192,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -216,11 +216,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. -$BR Function Type: abs value +Desc: Find formula of the function that is graphed in blue. +$BR Function Type: abs value $BR Transformations: horiz shift, vert refl, vert shr'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vrefl_vstr.pg b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vrefl_vstr.pg index 83eea44e11..c4bd748471 100644 --- a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vrefl_vstr.pg +++ b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vrefl_vstr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of an abs value function and asks for the +# Gives the graph of an abs value function and asks for the # correct equation which has this graph. # The graph always has horizontal shift, vert refl, vert str. # The graph has nothing else. @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -77,7 +77,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -178,7 +178,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -187,7 +187,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>250 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -195,7 +195,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -219,11 +219,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. -$BR Function Type: abs value +Desc: Find formula of the function that is graphed in blue. +$BR Function Type: abs value $BR Transformations: horiz shift, vert reflect, vert str'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vshift.pg b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vshift.pg index 3b6d9dfb32..b8849eb468 100644 --- a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vshift.pg +++ b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vshift.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of an abs value function and asks for the +# Gives the graph of an abs value function and asks for the # correct equation which has this graph. # The graph always has horizontal shift and vert shift. # The graph has nothing else. @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -77,7 +77,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -175,7 +175,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -184,7 +184,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -192,7 +192,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -216,11 +216,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. -$BR Function Type: abs value +Desc: Find formula of the function that is graphed in blue. +$BR Function Type: abs value $BR Transformations: horiz shift, vert shift'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vshift_vrefl.pg b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vshift_vrefl.pg index 67fc5584d3..8d58486cc5 100644 --- a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vshift_vrefl.pg +++ b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vshift_vrefl.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of an abs value function and asks for the +# Gives the graph of an abs value function and asks for the # correct equation which has this graph. # The graph always has horizontal shift, vert shift, vert refl. # The graph has nothing else. @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -77,7 +77,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -175,7 +175,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -184,7 +184,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -192,7 +192,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -216,11 +216,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. -$BR Function Type: abs value +Desc: Find formula of the function that is graphed in blue. +$BR Function Type: abs value $BR Transformations: horiz shift, vshift, vrefl'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vshift_vrefl_vshr.pg b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vshift_vrefl_vshr.pg index 705fa12f2b..d334dc2546 100644 --- a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vshift_vrefl_vshr.pg +++ b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vshift_vrefl_vshr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of an abs value function and asks for the +# Gives the graph of an abs value function and asks for the # correct equation which has this graph. # The graph always has horizontal shift, vert shift, vert refl, vert shr. # The graph has nothing else. @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -77,7 +77,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -175,7 +175,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -184,7 +184,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -192,7 +192,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -216,11 +216,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. -$BR Function Type: abs value +Desc: Find formula of the function that is graphed in blue. +$BR Function Type: abs value $BR Transformations: horiz shift, vert shift, vert refl, vert shr'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vshift_vrefl_vstr.pg b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vshift_vrefl_vstr.pg index 09a730c762..39f6d58eb2 100644 --- a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vshift_vrefl_vstr.pg +++ b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vshift_vrefl_vstr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of an abs value function and asks for the +# Gives the graph of an abs value function and asks for the # correct equation which has this graph. # The graph always has horizontal shift, vert shift, vert refl, vert str. # The graph has nothing else. @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -77,7 +77,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -175,7 +175,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -184,7 +184,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>250 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -192,7 +192,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -216,11 +216,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. -$BR Function Type: abs value +Desc: Find formula of the function that is graphed in blue. +$BR Function Type: abs value $BR Transformations: horiz shift, vert shift, vert refl, vert str'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vshift_vshr.pg b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vshift_vshr.pg index 2597156105..0d8bd82dcc 100644 --- a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vshift_vshr.pg +++ b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vshift_vshr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of an abs value function and asks for the +# Gives the graph of an abs value function and asks for the # correct equation which has this graph. # The graph always has horizontal shift, vert shift, vert shr. # The graph has nothing else. @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -77,7 +77,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -174,7 +174,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -183,7 +183,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -191,7 +191,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -215,11 +215,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. -$BR Function Type: abs value +Desc: Find formula of the function that is graphed in blue. +$BR Function Type: abs value $BR Transformations: horiz shift, vert shift, vert shr'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vshift_vstr.pg b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vshift_vstr.pg index 0e71ac3e06..904c1ca066 100644 --- a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vshift_vstr.pg +++ b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vshift_vstr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of an abs value function and asks for the +# Gives the graph of an abs value function and asks for the # correct equation which has this graph. # The graph always has horizontal shift, vert shift, vert str. # The graph has nothing else. @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -77,7 +77,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -175,7 +175,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -184,7 +184,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>250 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -192,7 +192,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -216,11 +216,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. -$BR Function Type: abs value +Desc: Find formula of the function that is graphed in blue. +$BR Function Type: abs value $BR Transformations: horiz shift, vert shift, vert str'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vshr.pg b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vshr.pg index 0fbada9ef3..e07b3a18ad 100644 --- a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vshr.pg +++ b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vshr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of an abs value function and asks for the +# Gives the graph of an abs value function and asks for the # correct equation which has this graph. # The graph always has horizontal shift and vert shr. # The graph has nothing else. @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -77,7 +77,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -175,7 +175,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -184,7 +184,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -192,7 +192,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -216,11 +216,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. -$BR Function Type: abs value +Desc: Find formula of the function that is graphed in blue. +$BR Function Type: abs value $BR Transformations: horiz shift, vert shr'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vstr.pg b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vstr.pg index c06d6b3f08..56c781f866 100644 --- a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vstr.pg +++ b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vstr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of an abs value function and asks for the +# Gives the graph of an abs value function and asks for the # correct equation which has this graph. # The graph always has horizontal shift and vert str. # The graph has nothing else. @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -77,7 +77,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -175,7 +175,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -184,7 +184,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -192,7 +192,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -216,11 +216,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. -$BR Function Type: abs value +Desc: Find formula of the function that is graphed in blue. +$BR Function Type: abs value $BR Transformations: horiz shift, vert str'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift.pg b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift.pg index f3fcddd6e0..50b0af41e2 100644 --- a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift.pg +++ b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed cubic function and asks for the +# Gives the graph of a transformed cubic function and asks for the # correct equation which has this graph. # The graph always has horizontal shift. # The graph has nothing else. @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -77,7 +77,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -177,7 +177,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -186,7 +186,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -194,7 +194,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -218,11 +218,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. +Desc: Find formula of the function that is graphed in blue. $BR Function Type: cubic $BR Transformations: horiz shift'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vrefl.pg b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vrefl.pg index fd422316a1..ef2ab1254e 100644 --- a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vrefl.pg +++ b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vrefl.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed cubic function and asks for the +# Gives the graph of a transformed cubic function and asks for the # correct equation which has this graph. # The graph always has horizontal shift and vert refl. # The graph has nothing else. @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -77,7 +77,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -177,7 +177,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -186,7 +186,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>250 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -194,7 +194,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -218,11 +218,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. +Desc: Find formula of the function that is graphed in blue. $BR Function Type: cubic $BR Transformations: horiz shift, vert refl'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vrefl_vshr.pg b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vrefl_vshr.pg index 9b385e0c04..3cd89c350d 100644 --- a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vrefl_vshr.pg +++ b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vrefl_vshr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed cubic function and asks for the +# Gives the graph of a transformed cubic function and asks for the # correct equation which has this graph. # The graph always has horizontal shift, vert refl, vert shr. # The graph has nothing else. @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -77,7 +77,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -177,7 +177,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -186,7 +186,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -194,7 +194,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -218,11 +218,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. +Desc: Find formula of the function that is graphed in blue. $BR Function Type: cubic $BR Transformations: horiz shift, vert refl, vert shr'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vrefl_vstr.pg b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vrefl_vstr.pg index 41a6252f55..24566133cd 100644 --- a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vrefl_vstr.pg +++ b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vrefl_vstr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed cubic function and asks for the +# Gives the graph of a transformed cubic function and asks for the # correct equation which has this graph. # The graph always has horizontal shift, vert refl, vert str. # The graph has nothing else. @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -77,7 +77,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -177,7 +177,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -186,7 +186,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>250 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -194,7 +194,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -218,11 +218,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. +Desc: Find formula of the function that is graphed in blue. $BR Function Type: cubic $BR Transformations: horiz shift, vert refl, vert str'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vshift.pg b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vshift.pg index 9fb5f659fa..ab93bf1ad1 100644 --- a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vshift.pg +++ b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vshift.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed cubic function and asks for the +# Gives the graph of a transformed cubic function and asks for the # correct equation which has this graph. # The graph always has horizontal shift and vert shift. # The graph has nothing else. @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -77,7 +77,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -177,7 +177,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -186,7 +186,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>250 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -194,7 +194,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -218,11 +218,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. +Desc: Find formula of the function that is graphed in blue. $BR Function Type: cubic $BR Transformations: horiz shift, vert shift'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vshift_vrefl.pg b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vshift_vrefl.pg index 60cff687df..2ad673f2a0 100644 --- a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vshift_vrefl.pg +++ b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vshift_vrefl.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed cubic function and asks for the +# Gives the graph of a transformed cubic function and asks for the # correct equation which has this graph. # The graph always has horizontal shift, vert shift, vert refl. # The graph has nothing else. @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -77,7 +77,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -177,7 +177,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -186,7 +186,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -194,7 +194,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -218,11 +218,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. +Desc: Find formula of the function that is graphed in blue. $BR Function Type: cubic $BR Transformations: horiz shift, vert shift, vert refl'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vshift_vrefl_vshr.pg b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vshift_vrefl_vshr.pg index ad7d294a7e..1877f0ee75 100644 --- a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vshift_vrefl_vshr.pg +++ b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vshift_vrefl_vshr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed cubic function and asks for the +# Gives the graph of a transformed cubic function and asks for the # correct equation which has this graph. # The graph always has horizontal shift, vert shift, refl, vert shr. # The graph has nothing else. @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -77,7 +77,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -177,7 +177,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -186,7 +186,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -194,7 +194,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -218,11 +218,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. +Desc: Find formula of the function that is graphed in blue. $BR Function Type: cubic $BR Transformations: horiz shift, vert shift, vert refl, vert shr'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vshift_vrefl_vstr.pg b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vshift_vrefl_vstr.pg index e3765e2f4b..cd26ebf6c1 100644 --- a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vshift_vrefl_vstr.pg +++ b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vshift_vrefl_vstr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed cubic function and asks for the +# Gives the graph of a transformed cubic function and asks for the # correct equation which has this graph. # The graph always has horizontal shift, vert shift, vert refl, vert str. # The graph has nothing else. @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -77,7 +77,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -177,7 +177,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -186,7 +186,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -194,7 +194,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -218,11 +218,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. +Desc: Find formula of the function that is graphed in blue. $BR Function Type: cubic $BR Transformations: horiz shift, vert shift, vert refl, vert str'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vshift_vshr.pg b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vshift_vshr.pg index d2f9c14112..560bae1b97 100644 --- a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vshift_vshr.pg +++ b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vshift_vshr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed cubic function and asks for the +# Gives the graph of a transformed cubic function and asks for the # correct equation which has this graph. # The graph always has horizontal shift, vert shift, vert shr. # The graph has nothing else. @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -77,7 +77,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -177,7 +177,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -186,7 +186,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -194,7 +194,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -218,11 +218,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. +Desc: Find formula of the function that is graphed in blue. $BR Function Type: cubic $BR Transformations: horiz shift, vert shift, vert shr'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vshift_vstr.pg b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vshift_vstr.pg index 5a18bec168..43dc5f1f3b 100644 --- a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vshift_vstr.pg +++ b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vshift_vstr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed cubic function and asks for the +# Gives the graph of a transformed cubic function and asks for the # correct equation which has this graph. # The graph always has horizontal shift, vert shift, vert str. # The graph has nothing else. @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -77,7 +77,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -177,7 +177,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -186,7 +186,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -194,7 +194,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -218,11 +218,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. +Desc: Find formula of the function that is graphed in blue. $BR Function Type: cubic $BR Transformations: horiz shift, vert shift, vert str'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vshr.pg b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vshr.pg index 461f1e95d6..24ec4476c1 100644 --- a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vshr.pg +++ b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vshr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed cubic function and asks for the +# Gives the graph of a transformed cubic function and asks for the # correct equation which has this graph. # The graph always has horizontal shift and vert shr. # The graph has nothing else. @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -77,7 +77,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -177,7 +177,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -186,7 +186,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -194,7 +194,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -218,11 +218,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. +Desc: Find formula of the function that is graphed in blue. $BR Function Type: cubic $BR Transformations: horiz shift, vert shr'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vstr.pg b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vstr.pg index 2120071979..8cc7736d87 100644 --- a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vstr.pg +++ b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vstr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed cubic function and asks for the +# Gives the graph of a transformed cubic function and asks for the # correct equation which has this graph. # The graph always has horizontal shift and vert str. # The graph has nothing else. @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -77,7 +77,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -177,7 +177,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -186,7 +186,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -194,7 +194,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -218,11 +218,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. +Desc: Find formula of the function that is graphed in blue. $BR Function Type: cubic $BR Transformations: horiz shift, vert str'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift.pg b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift.pg index fd20237b13..3df7c2b231 100644 --- a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift.pg +++ b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed quadratic function and asks for the +# Gives the graph of a transformed quadratic function and asks for the # correct equation which has this graph. # The graph always has horizontal shift. # The graph has nothing else. @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -78,7 +78,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -176,7 +176,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -185,7 +185,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -193,7 +193,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -217,11 +217,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. +Desc: Find formula of the function that is graphed in blue. $BR Function Type: quadratic $BR Transformations: horiz shift'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vrefl.pg b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vrefl.pg index 036b078797..571f13881b 100644 --- a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vrefl.pg +++ b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vrefl.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed quadratic function and asks for the +# Gives the graph of a transformed quadratic function and asks for the # correct equation which has this graph. # The graph always has horizontal shift and vertical reflection. # The graph has nothing else. @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -78,7 +78,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -176,7 +176,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -185,7 +185,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>250 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -193,7 +193,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -217,11 +217,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. +Desc: Find formula of the function that is graphed in blue. $BR Function Type: quadratic $BR Transformations: horiz shift, vert refl'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vrefl_vshr.pg b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vrefl_vshr.pg index d8697ec3de..fce70a3761 100644 --- a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vrefl_vshr.pg +++ b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vrefl_vshr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed quadratic function and asks for the +# Gives the graph of a transformed quadratic function and asks for the # correct equation which has this graph. # The graph always has horizontal shift, vert refl, vert shr. # The graph has nothing else. @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -78,7 +78,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -176,7 +176,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -185,7 +185,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>250 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -193,7 +193,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -217,11 +217,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. +Desc: Find formula of the function that is graphed in blue. $BR Function Type: quadratic $BR Transformations: horiz shift, vert refl, vert shr'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vrefl_vstr.pg b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vrefl_vstr.pg index 2727a84039..0fa4ee8583 100644 --- a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vrefl_vstr.pg +++ b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vrefl_vstr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed quadratic function and asks for the +# Gives the graph of a transformed quadratic function and asks for the # correct equation which has this graph. # The graph always has horizontal shift, vert refl, vert str. # The graph has nothing else. @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -78,7 +78,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -179,7 +179,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -188,7 +188,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>250 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -196,7 +196,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -220,11 +220,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. +Desc: Find formula of the function that is graphed in blue. $BR Function Type: quadratic $BR Transformations: horiz shift, vert refl, vert str'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vshift.pg b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vshift.pg index 87b097094f..3a94d0e2ba 100644 --- a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vshift.pg +++ b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vshift.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed quadratic function and asks for the +# Gives the graph of a transformed quadratic function and asks for the # correct equation which has this graph. # The graph always has horizontal shift and vertical shift. # The graph has nothing else. @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -78,7 +78,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -176,7 +176,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -185,7 +185,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>250 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -193,7 +193,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -217,11 +217,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. +Desc: Find formula of the function that is graphed in blue. $BR Function Type: quadratic $BR Transformations: horiz shift, vert shift'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vshift_vrefl.pg b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vshift_vrefl.pg index fd4686b06f..66b8f93083 100644 --- a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vshift_vrefl.pg +++ b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vshift_vrefl.pg @@ -1,7 +1,7 @@ # DESCRIPTION -# Gives the graph of a transformed quadratic function and asks for the +# Gives the graph of a transformed quadratic function and asks for the # correct equation which has this graph. -# The graph always has horizontal shift, vert shift, and vert refl. +# The graph always has horizontal shift, vert shift, and vert refl. # The graph has nothing else. # ENDDESCRIPTION @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -78,7 +78,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -176,7 +176,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -185,7 +185,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -193,7 +193,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -217,11 +217,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. +Desc: Find formula of the function that is graphed in blue. $BR Function Type: quadratic $BR Transformations: horiz shift, vert shift, vert refl'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vshift_vrefl_vshr.pg b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vshift_vrefl_vshr.pg index f5927dad65..4233611878 100644 --- a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vshift_vrefl_vshr.pg +++ b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vshift_vrefl_vshr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed quadratic function and asks for the +# Gives the graph of a transformed quadratic function and asks for the # correct equation which has this graph. # The graph always has horizontal shift, vert shift, vert refl, vert shr. # The graph has nothing else. @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -78,7 +78,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -176,7 +176,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -185,7 +185,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -193,7 +193,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -217,11 +217,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. +Desc: Find formula of the function that is graphed in blue. $BR Function Type: quadratic $BR Transformations: horiz shift, vert shift, vert refl, vert shr'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vshift_vrefl_vstr.pg b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vshift_vrefl_vstr.pg index 39299aaa1d..cb5e451496 100644 --- a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vshift_vrefl_vstr.pg +++ b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vshift_vrefl_vstr.pg @@ -1,7 +1,7 @@ # DESCRIPTION -# Gives the graph of a transformed quadratic function and asks for the +# Gives the graph of a transformed quadratic function and asks for the # correct equation which has this graph. -# The graph always has horizontal shift, vert shift, vert refl, vert str +# The graph always has horizontal shift, vert shift, vert refl, vert str # The graph has nothing else. # ENDDESCRIPTION @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -78,7 +78,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -179,7 +179,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -188,7 +188,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -196,7 +196,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -220,11 +220,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. +Desc: Find formula of the function that is graphed in blue. $BR Function Type: quadratic $BR Transformations: horiz shift, vert shift, vert refl, vert str'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vshift_vshr.pg b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vshift_vshr.pg index 70406a5708..6b3e9c5d3a 100644 --- a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vshift_vshr.pg +++ b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vshift_vshr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed quadratic function and asks for the +# Gives the graph of a transformed quadratic function and asks for the # correct equation which has this graph. # The graph always has horizontal shift, vert shift, vert shr. # The graph has nothing else. @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -78,7 +78,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -176,7 +176,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -185,7 +185,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -193,7 +193,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -217,11 +217,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. +Desc: Find formula of the function that is graphed in blue. $BR Function Type: quadratic $BR Transformations: horiz shift, vert shift, vert shr'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vshift_vstr.pg b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vshift_vstr.pg index 317cb6ae6d..d88581ca3b 100644 --- a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vshift_vstr.pg +++ b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vshift_vstr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed quadratic function and asks for the +# Gives the graph of a transformed quadratic function and asks for the # correct equation which has this graph. # The graph always has horizontal shift, vert shift, vert str # The graph has nothing else. @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -78,7 +78,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -176,7 +176,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -185,7 +185,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -193,7 +193,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -217,11 +217,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. +Desc: Find formula of the function that is graphed in blue. $BR Function Type: quadratic $BR Transformations: horiz shift, vert shift, vert str'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vshr.pg b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vshr.pg index 2f3b2c756e..651b55dca8 100644 --- a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vshr.pg +++ b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vshr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed quadratic function and asks for the +# Gives the graph of a transformed quadratic function and asks for the # correct equation which has this graph. # The graph always has horizontal shift and vertical shrink. # The graph has nothing else. @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -78,7 +78,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -176,7 +176,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -185,7 +185,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -193,7 +193,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -217,11 +217,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. +Desc: Find formula of the function that is graphed in blue. $BR Function Type: quadratic $BR Transformations: horiz shift, vert shr'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vstr.pg b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vstr.pg index d9ab1baff3..81f064f366 100644 --- a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vstr.pg +++ b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vstr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed quadratic function and asks for the +# Gives the graph of a transformed quadratic function and asks for the # correct equation which has this graph. # The graph always has horizontal shift and vertical stretch. # The graph has nothing else. @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -78,7 +78,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -176,7 +176,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -185,7 +185,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -193,7 +193,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -217,11 +217,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. +Desc: Find formula of the function that is graphed in blue. $BR Function Type: quadratic $BR Transformations: horiz shift, vert str'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift.pg b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift.pg index 1358f11a45..0226cfcfda 100644 --- a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift.pg +++ b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed sqrt function and asks for the +# Gives the graph of a transformed sqrt function and asks for the # correct equation which has this graph. # The graph always has horizontal shift and vert shift. # The graph has nothing else. @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -77,7 +77,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -147,7 +147,7 @@ if ($HRefl == 0) { $dstart = -$maxXVal; $dend = $b; $answer = Formula("y = $a*sqrt(-(x-$b))+$c")->reduce; - Context()->flags->set(limits=>[$dend-1,$dend]); + Context()->flags->set(limits=>[$dend-1,$dend]); } $graph->stamps(closed_circle($b,$c,'blue')); $fun = new Fun($expn, $graph); @@ -197,7 +197,7 @@ $graph->stamps(closed_circle(0,0,'green')); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -206,7 +206,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -214,7 +214,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -238,11 +238,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. +Desc: Find formula of the function that is graphed in blue. $BR Function Type: sqrt $BR Transformations: horiz shift, vert shift'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_hrefl.pg b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_hrefl.pg index 18ce8dd441..dcf1a41aab 100644 --- a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_hrefl.pg +++ b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_hrefl.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed sqrt function and asks for the +# Gives the graph of a transformed sqrt function and asks for the # correct equation which has this graph. # The graph always has horizontal shift and vert shift. # Also always has hori refl. @@ -15,12 +15,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -78,7 +78,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -148,7 +148,7 @@ if ($HRefl == 0) { $dstart = -$maxXVal; $dend = $b; $answer = Formula("y = $a*sqrt(-(x-$b))+$c")->reduce; - Context()->flags->set(limits=>[$dend-1,$dend]); + Context()->flags->set(limits=>[$dend-1,$dend]); } $graph->stamps(closed_circle($b,$c,'blue')); $fun = new Fun($expn, $graph); @@ -199,7 +199,7 @@ $graph->stamps(closed_circle(0,0,'green')); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -208,7 +208,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>250 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -216,7 +216,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -240,11 +240,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. +Desc: Find formula of the function that is graphed in blue. $BR Function Type: sqrt $BR Transformations: horiz shift, vert shift, horiz refl'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_hrefl_vrefl.pg b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_hrefl_vrefl.pg index 1612c8e78d..a3c65e7413 100644 --- a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_hrefl_vrefl.pg +++ b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_hrefl_vrefl.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed sqrt function and asks for the +# Gives the graph of a transformed sqrt function and asks for the # correct equation which has this graph. # The graph always has horizontal shift and vert shift. # Also always has vert and hori refls @@ -15,12 +15,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -78,7 +78,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -148,7 +148,7 @@ if ($HRefl == 0) { $dstart = -$maxXVal; $dend = $b; $answer = Formula("y = $a*sqrt(-(x-$b))+$c")->reduce; - Context()->flags->set(limits=>[$dend-1,$dend]); + Context()->flags->set(limits=>[$dend-1,$dend]); } $graph->stamps(closed_circle($b,$c,'blue')); $fun = new Fun($expn, $graph); @@ -200,7 +200,7 @@ $graph->stamps(closed_circle(0,0,'green')); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -209,7 +209,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>250 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -217,7 +217,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -241,11 +241,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. +Desc: Find formula of the function that is graphed in blue. $BR Function Type: sqrt $BR Transformations: horiz shift, vert shift, horiz refl, vert refl'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_hrefl_vrefl_vshr.pg b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_hrefl_vrefl_vshr.pg index 96a24a1c5e..06714c2075 100644 --- a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_hrefl_vrefl_vshr.pg +++ b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_hrefl_vrefl_vshr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed sqrt function and asks for the +# Gives the graph of a transformed sqrt function and asks for the # correct equation which has this graph. # The graph always has horizontal shift and vert shift. # Also always has vert and hori refl, vert shr @@ -15,12 +15,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -78,7 +78,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -148,7 +148,7 @@ if ($HRefl == 0) { $dstart = -$maxXVal; $dend = $b; $answer = Formula("y = $a*sqrt(-(x-$b))+$c")->reduce; - Context()->flags->set(limits=>[$dend-1,$dend]); + Context()->flags->set(limits=>[$dend-1,$dend]); } $graph->stamps(closed_circle($b,$c,'blue')); $fun = new Fun($expn, $graph); @@ -200,7 +200,7 @@ $graph->stamps(closed_circle(0,0,'green')); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -209,7 +209,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -217,7 +217,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -241,11 +241,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. +Desc: Find formula of the function that is graphed in blue. $BR Function Type: sqrt $BR Transformations: horiz shift, vert shift, horiz refl, vert refl, vert shr'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_hrefl_vrefl_vstr.pg b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_hrefl_vrefl_vstr.pg index 7cbe6e1ba7..38d18daf86 100644 --- a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_hrefl_vrefl_vstr.pg +++ b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_hrefl_vrefl_vstr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed sqrt function and asks for the +# Gives the graph of a transformed sqrt function and asks for the # correct equation which has this graph. # The graph always has horizontal shift and vert shift. # Also always has vert and hori refl, vert str @@ -15,12 +15,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -78,7 +78,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -148,7 +148,7 @@ if ($HRefl == 0) { $dstart = -$maxXVal; $dend = $b; $answer = Formula("y = $a*sqrt(-(x-$b))+$c")->reduce; - Context()->flags->set(limits=>[$dend-1,$dend]); + Context()->flags->set(limits=>[$dend-1,$dend]); } $graph->stamps(closed_circle($b,$c,'blue')); $fun = new Fun($expn, $graph); @@ -198,7 +198,7 @@ $graph->stamps(closed_circle(0,0,'green')); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -207,7 +207,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -215,7 +215,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -239,11 +239,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. +Desc: Find formula of the function that is graphed in blue. $BR Function Type: sqrt $BR Transformations: horiz shift, vert shift, horiz refl, vert refl, vert str'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_hrefl_vshr.pg b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_hrefl_vshr.pg index ae4dae0e37..e4c0a0821e 100644 --- a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_hrefl_vshr.pg +++ b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_hrefl_vshr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed sqrt function and asks for the +# Gives the graph of a transformed sqrt function and asks for the # correct equation which has this graph. # The graph always has horizontal shift and vert shift. # Also always has hori refl and vert shr @@ -15,12 +15,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -78,7 +78,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -148,7 +148,7 @@ if ($HRefl == 0) { $dstart = -$maxXVal; $dend = $b; $answer = Formula("y = $a*sqrt(-(x-$b))+$c")->reduce; - Context()->flags->set(limits=>[$dend-1,$dend]); + Context()->flags->set(limits=>[$dend-1,$dend]); } $graph->stamps(closed_circle($b,$c,'blue')); $fun = new Fun($expn, $graph); @@ -199,7 +199,7 @@ $graph->stamps(closed_circle(0,0,'green')); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -208,7 +208,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -216,7 +216,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -240,11 +240,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. +Desc: Find formula of the function that is graphed in blue. $BR Function Type: cubic $BR Transformations: horiz shift, vert shift, horiz refl, vert shr'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_hrefl_vstr.pg b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_hrefl_vstr.pg index 220a676106..8845de7546 100644 --- a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_hrefl_vstr.pg +++ b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_hrefl_vstr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed sqrt function and asks for the +# Gives the graph of a transformed sqrt function and asks for the # correct equation which has this graph. # The graph always has horizontal shift and vert shift. # Also always has hori refl and vert str @@ -15,12 +15,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -78,7 +78,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -150,7 +150,7 @@ if ($HRefl == 0) { $dstart = -$maxXVal; $dend = $b; $answer = Formula("y = $a*sqrt(-(x-$b))+$c")->reduce; - Context()->flags->set(limits=>[$dend-1,$dend]); + Context()->flags->set(limits=>[$dend-1,$dend]); $y = $a+$c; # $graph->stamps(closed_circle($b-1,$y,'blue')); } @@ -205,7 +205,7 @@ $graph->stamps(closed_circle(0,0,'green')); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -214,7 +214,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -222,7 +222,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -246,11 +246,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. +Desc: Find formula of the function that is graphed in blue. $BR Function Type: cubic $BR Transformations: horiz shift, vert shift, horiz refl, vert str'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_vrefl.pg b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_vrefl.pg index 1a1d81d12d..191068d8ee 100644 --- a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_vrefl.pg +++ b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_vrefl.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed sqrt function and asks for the +# Gives the graph of a transformed sqrt function and asks for the # correct equation which has this graph. # The graph always has horizontal shift and vertical shift. # Also always has vert refl. @@ -15,12 +15,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -36,7 +36,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -79,7 +79,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -149,7 +149,7 @@ if ($HRefl == 0) { $dstart = -$maxXVal; $dend = $b; $answer = Formula("y = $a*sqrt(-(x-$b))+$c")->reduce; - Context()->flags->set(limits=>[$dend-1,$dend]); + Context()->flags->set(limits=>[$dend-1,$dend]); } $graph->stamps(closed_circle($b,$c,'blue')); $fun = new Fun($expn, $graph); @@ -201,7 +201,7 @@ $graph->stamps(closed_circle(0,0,'green')); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -210,7 +210,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -218,7 +218,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -242,11 +242,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. +Desc: Find formula of the function that is graphed in blue. $BR Function Type: sqrt $BR Transformations: horiz shift, vert shift, vert refl'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_vrefl_vshr.pg b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_vrefl_vshr.pg index c42b17eb93..e449528489 100644 --- a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_vrefl_vshr.pg +++ b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_vrefl_vshr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed sqrt function and asks for the +# Gives the graph of a transformed sqrt function and asks for the # correct equation which has this graph. # The graph always has horizontal shift and vert shift. # Also always has vert shift and shr @@ -15,12 +15,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -78,7 +78,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -148,7 +148,7 @@ if ($HRefl == 0) { $dstart = -$maxXVal; $dend = $b; $answer = Formula("y = $a*sqrt(-(x-$b))+$c")->reduce; - Context()->flags->set(limits=>[$dend-1,$dend]); + Context()->flags->set(limits=>[$dend-1,$dend]); } $graph->stamps(closed_circle($b,$c,'blue')); $fun = new Fun($expn, $graph); @@ -199,7 +199,7 @@ $graph->stamps(closed_circle(0,0,'green')); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -208,7 +208,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -216,7 +216,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -240,11 +240,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. +Desc: Find formula of the function that is graphed in blue. $BR Function Type: sqrt $BR Transformations: horiz shift, vert shift, vert refl, vert shr'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_vrefl_vstr.pg b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_vrefl_vstr.pg index d272a144ea..4819211d7f 100644 --- a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_vrefl_vstr.pg +++ b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_vrefl_vstr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed sqrt function and asks for the +# Gives the graph of a transformed sqrt function and asks for the # correct equation which has this graph. # The graph always has horizontal shift and vert shift. # Also always has vert refl and str @@ -15,12 +15,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -78,7 +78,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -150,7 +150,7 @@ if ($HRefl == 0) { $dstart = -$maxXVal; $dend = $b; $answer = Formula("y = $a*sqrt(-(x-$b))+$c")->reduce; - Context()->flags->set(limits=>[$dend-1,$dend]); + Context()->flags->set(limits=>[$dend-1,$dend]); $y = $a+$c; # $graph->stamps(closed_circle($b-1,$y,'blue')); } @@ -202,7 +202,7 @@ $graph->stamps(closed_circle(0,0,'green')); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -211,7 +211,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -219,7 +219,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -243,11 +243,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. +Desc: Find formula of the function that is graphed in blue. $BR Function Type: sqrt $BR Transformations: horiz shift, vert shift, vert refl, vert str'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_vshr.pg b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_vshr.pg index 331f599250..6b2882e629 100644 --- a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_vshr.pg +++ b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_vshr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed sqrt function and asks for the +# Gives the graph of a transformed sqrt function and asks for the # correct equation which has this graph. # The graph always has horizontal shift and vert shift. # Also always has a vert shr @@ -15,12 +15,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -78,7 +78,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -148,7 +148,7 @@ if ($HRefl == 0) { $dstart = -$maxXVal; $dend = $b; $answer = Formula("y = $a*sqrt(-(x-$b))+$c")->reduce; - Context()->flags->set(limits=>[$dend-1,$dend]); + Context()->flags->set(limits=>[$dend-1,$dend]); } $graph->stamps(closed_circle($b,$c,'blue')); $fun = new Fun($expn, $graph); @@ -198,7 +198,7 @@ $graph->stamps(closed_circle(0,0,'green')); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -207,7 +207,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -215,7 +215,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -239,11 +239,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. +Desc: Find formula of the function that is graphed in blue. $BR Function Type: sqrt $BR Transformations: horiz shift, vert shift, vert shr'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_vstr.pg b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_vstr.pg index d961f7b37e..6307b6895f 100644 --- a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_vstr.pg +++ b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_vstr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed sqrt function and asks for the +# Gives the graph of a transformed sqrt function and asks for the # correct equation which has this graph. # The graph always has horizontal shift and vert shift. # Also always has vert str. @@ -15,12 +15,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -78,7 +78,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -148,7 +148,7 @@ if ($HRefl == 0) { $dstart = -$maxXVal; $dend = $b; $answer = Formula("y = $a*sqrt(-(x-$b))+$c")->reduce; - Context()->flags->set(limits=>[$dend-1,$dend]); + Context()->flags->set(limits=>[$dend-1,$dend]); } $graph->stamps(closed_circle($b,$c,'blue')); $fun = new Fun($expn, $graph); @@ -199,7 +199,7 @@ $graph->stamps(closed_circle(0,0,'green')); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -208,7 +208,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -216,7 +216,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -240,11 +240,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. +Desc: Find formula of the function that is graphed in blue. $BR Function Type: sqrt $BR Transformations: horiz shift, vert shift, vert str'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_vshift_hrefl.pg b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_vshift_hrefl.pg index 2d76021a4a..00680aaebc 100644 --- a/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_vshift_hrefl.pg +++ b/Contrib/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_vshift_hrefl.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed sqrt function and asks for the +# Gives the graph of a transformed sqrt function and asks for the # correct equation which has this graph. # The graph always has horizontal shift and vert shift. # Also always has hori refl. @@ -15,12 +15,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -78,7 +78,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -148,7 +148,7 @@ if ($HRefl == 0) { $dstart = -$maxXVal; $dend = $b; $answer = Formula("y = $a*sqrt(-(x-$b))+$c")->reduce; - Context()->flags->set(limits=>[$dend-1,$dend]); + Context()->flags->set(limits=>[$dend-1,$dend]); } $graph->stamps(closed_circle($b,$c,'blue')); $fun = new Fun($expn, $graph); @@ -199,7 +199,7 @@ $graph->stamps(closed_circle(0,0,'green')); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -208,7 +208,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>250 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -216,7 +216,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -240,11 +240,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. +Desc: Find formula of the function that is graphed in blue. $BR Function Type: sqrt $BR Transformations: vert shift, horiz refl'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/inequalities_absolute_value/abs_val_01.pg b/Contrib/Mizzou/Algebra/inequalities_absolute_value/abs_val_01.pg index c6fc635989..a77028772b 100644 --- a/Contrib/Mizzou/Algebra/inequalities_absolute_value/abs_val_01.pg +++ b/Contrib/Mizzou/Algebra/inequalities_absolute_value/abs_val_01.pg @@ -4,9 +4,9 @@ ## KEYWORDS('linear', 'inequality', 'absolute value') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Equations and Inequalities') -## DBchapter('Absolute Value') +## DBchapter('Absolute Value') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -26,7 +26,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -64,7 +64,7 @@ if($case ==1){ elsif($case ==2){ $string = '\leq'; $ans = Compute( " [$end1,$end2] " );} - + $ineq = "| $a $var + $b| $string $c "; ANS( Compute("$ans")->cmp() ); @@ -79,7 +79,7 @@ $end2f = Fraction($c-$b,$a); Context()->texStrings; BEGIN_TEXT -Solve the following inequality. Write your answer using \{ AnswerFormatHelp("intervals","interval notation") \}. +Solve the following inequality. Write your answer using \{ helpLink("intervals","interval notation") \}. $PAR \[ $ineq @@ -114,7 +114,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/Algebra/inequalities_absolute_value/abs_val_02.pg b/Contrib/Mizzou/Algebra/inequalities_absolute_value/abs_val_02.pg index e6a578c6e2..7b23a9d4a4 100644 --- a/Contrib/Mizzou/Algebra/inequalities_absolute_value/abs_val_02.pg +++ b/Contrib/Mizzou/Algebra/inequalities_absolute_value/abs_val_02.pg @@ -4,9 +4,9 @@ ## KEYWORDS('linear', 'inequality', 'absolute value') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Equations and Inequalities') -## DBchapter('Absolute Value') +## DBchapter('Absolute Value') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -26,14 +26,14 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" ); TEXT(beginproblem()); -PeriodicRerandomization("3"); +PeriodicRerandomization("3"); ################################### @@ -74,7 +74,7 @@ $ineq = "\left| $a $var - $b \right| $string $c "; Context()->texStrings; BEGIN_TEXT -Solve the following inequality. Write your answer using \{ AnswerFormatHelp("intervals","interval notation") \}. +Solve the following inequality. Write your answer using \{ helpLink("intervals","interval notation") \}. $PAR \[ $ineq @@ -100,7 +100,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/Algebra/inequalities_absolute_value/abs_val_03.pg b/Contrib/Mizzou/Algebra/inequalities_absolute_value/abs_val_03.pg index 0ae5211866..3ae3ee215e 100644 --- a/Contrib/Mizzou/Algebra/inequalities_absolute_value/abs_val_03.pg +++ b/Contrib/Mizzou/Algebra/inequalities_absolute_value/abs_val_03.pg @@ -4,9 +4,9 @@ ## KEYWORDS('linear', 'inequality', 'absolute value') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Equations and Inequalities') -## DBchapter('Absolute Value') +## DBchapter('Absolute Value') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -26,7 +26,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -62,7 +62,7 @@ if($case ==1){ elsif($case ==2){ $string = '\geq'; $ans = Compute( " (-inf,$end1]U[$end2,inf) " );} - + $ineq = "| $var| $string $a "; ANS( Compute("$ans")->cmp() ); @@ -73,7 +73,7 @@ ANS( Compute("$ans")->cmp() ); Context()->texStrings; BEGIN_TEXT -Solve the following inequality. Write your answer using \{ AnswerFormatHelp("intervals","interval notation") \}. +Solve the following inequality. Write your answer using \{ helpLink("intervals","interval notation") \}. $PAR \[ $ineq @@ -100,7 +100,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/Algebra/inequalities_absolute_value/abs_val_04.pg b/Contrib/Mizzou/Algebra/inequalities_absolute_value/abs_val_04.pg index ae537d3933..60af24083e 100644 --- a/Contrib/Mizzou/Algebra/inequalities_absolute_value/abs_val_04.pg +++ b/Contrib/Mizzou/Algebra/inequalities_absolute_value/abs_val_04.pg @@ -4,9 +4,9 @@ ## KEYWORDS('linear', 'inequality', 'absolute value') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Equations and Inequalities') -## DBchapter('Absolute Value') +## DBchapter('Absolute Value') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -26,7 +26,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -70,7 +70,7 @@ elsif($case ==2){ # $string1 = '\leq'; # $string2 = '\geq'; # $ans = Compute( " (-inf,$end1] U [$end2,inf) " );} - + $ineq = "| $var| $string $a "; ANS( Compute("$ans")->cmp() ); @@ -81,7 +81,7 @@ ANS( Compute("$ans")->cmp() ); Context()->texStrings; BEGIN_TEXT -Solve the following inequality. Write your answer using \{ AnswerFormatHelp("intervals","interval notation") \}. +Solve the following inequality. Write your answer using \{ helpLink("intervals","interval notation") \}. $PAR \[ $ineq @@ -108,7 +108,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/Algebra/inequalities_absolute_value/abs_val_05.pg b/Contrib/Mizzou/Algebra/inequalities_absolute_value/abs_val_05.pg index 3ea80f4cf8..617b879ee6 100644 --- a/Contrib/Mizzou/Algebra/inequalities_absolute_value/abs_val_05.pg +++ b/Contrib/Mizzou/Algebra/inequalities_absolute_value/abs_val_05.pg @@ -4,9 +4,9 @@ ## KEYWORDS('linear', 'inequality', 'absolute value') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Equations and Inequalities') -## DBchapter('Absolute Value') +## DBchapter('Absolute Value') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -26,7 +26,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -63,7 +63,7 @@ if($case ==1){ elsif($case ==2){ $string = '\leq'; $ans = Compute( " [$end1, $end2] " );} - + $ineq = "| $b - $a $var | $string $c "; ANS( Compute("$ans")->cmp() ); @@ -77,7 +77,7 @@ $end2f = Fraction($c+$b,$a); Context()->texStrings; BEGIN_TEXT -Solve the following inequality. Write your answer using \{ AnswerFormatHelp("intervals","interval notation") \}. +Solve the following inequality. Write your answer using \{ helpLink("intervals","interval notation") \}. $PAR \[ $ineq @@ -113,7 +113,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/Algebra/inequalities_absolute_value/abs_val_06.pg b/Contrib/Mizzou/Algebra/inequalities_absolute_value/abs_val_06.pg index d3cf11a833..fe8413abe2 100644 --- a/Contrib/Mizzou/Algebra/inequalities_absolute_value/abs_val_06.pg +++ b/Contrib/Mizzou/Algebra/inequalities_absolute_value/abs_val_06.pg @@ -4,9 +4,9 @@ ## KEYWORDS('linear', 'inequality', 'absolute value') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Equations and Inequalities') -## DBchapter('Absolute Value') +## DBchapter('Absolute Value') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -26,7 +26,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -66,7 +66,7 @@ if($case ==1){ elsif($case ==2){ $string = '\leq'; $ans = Compute( " [$end1,$end2] " );} - + $ineq = "| $b - $a $var | - $d $string $c "; ANS( Compute("$ans")->cmp() ); @@ -77,7 +77,7 @@ ANS( Compute("$ans")->cmp() ); Context()->texStrings; BEGIN_TEXT -Solve the following inequality. Write your answer using \{ AnswerFormatHelp("intervals","interval notation") \}. +Solve the following inequality. Write your answer using \{ helpLink("intervals","interval notation") \}. $PAR \[ $ineq @@ -112,7 +112,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/Algebra/inequalities_absolute_value/abs_val_07.pg b/Contrib/Mizzou/Algebra/inequalities_absolute_value/abs_val_07.pg index 7805035e23..3beee8df15 100644 --- a/Contrib/Mizzou/Algebra/inequalities_absolute_value/abs_val_07.pg +++ b/Contrib/Mizzou/Algebra/inequalities_absolute_value/abs_val_07.pg @@ -4,9 +4,9 @@ ## KEYWORDS('linear', 'inequality', 'absolute value') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Equations and Inequalities') -## DBchapter('Absolute Value') +## DBchapter('Absolute Value') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -26,7 +26,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -72,7 +72,7 @@ elsif($case ==2){ #elsif($case ==4){ # $string = '\leq'; # $ans = Compute( " (-inf,$end1] U [$end2,inf) " );} - + $ineq = "\left| $var + \frac{$a}{$b} \right| $string \frac{$c}{$b} "; ANS( Compute("$ans")->cmp() ); @@ -83,7 +83,7 @@ ANS( Compute("$ans")->cmp() ); Context()->texStrings; BEGIN_TEXT -Solve the following inequality. Write your answer using \{ AnswerFormatHelp("intervals","interval notation") \}. +Solve the following inequality. Write your answer using \{ helpLink("intervals","interval notation") \}. $PAR \[ $ineq @@ -118,7 +118,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/Algebra/inequalities_absolute_value/abs_val_08.pg b/Contrib/Mizzou/Algebra/inequalities_absolute_value/abs_val_08.pg index fda4cf2405..7eaf3f907e 100644 --- a/Contrib/Mizzou/Algebra/inequalities_absolute_value/abs_val_08.pg +++ b/Contrib/Mizzou/Algebra/inequalities_absolute_value/abs_val_08.pg @@ -4,9 +4,9 @@ ## KEYWORDS('linear', 'inequality', 'absolute value') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Equations and Inequalities') -## DBchapter('Absolute Value') +## DBchapter('Absolute Value') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -26,7 +26,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -70,7 +70,7 @@ elsif($case == 3){ elsif($case ==4){ $string = '\leq'; $ans = Compute( " (-inf,$end1] U [$end2,inf) " );} - + $ineq = "\left| \frac{ $var - $a}{$b} \right| $string $c "; ANS( Compute("$ans")->cmp() ); @@ -81,7 +81,7 @@ ANS( Compute("$ans")->cmp() ); Context()->texStrings; BEGIN_TEXT -Solve the following inequality. Write your answer using \{ AnswerFormatHelp("intervals","interval notation") \}. +Solve the following inequality. Write your answer using \{ helpLink("intervals","interval notation") \}. $PAR \[ $ineq @@ -107,7 +107,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); $showPartialCorrectAnswers = 1; diff --git a/Contrib/Mizzou/Algebra/inequalities_absolute_value/abs_val_09.pg b/Contrib/Mizzou/Algebra/inequalities_absolute_value/abs_val_09.pg index 9f55e8aed0..fe86890533 100644 --- a/Contrib/Mizzou/Algebra/inequalities_absolute_value/abs_val_09.pg +++ b/Contrib/Mizzou/Algebra/inequalities_absolute_value/abs_val_09.pg @@ -4,9 +4,9 @@ ## KEYWORDS('linear', 'inequality', 'absolute value') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Equations and Inequalities') -## DBchapter('Absolute Value') +## DBchapter('Absolute Value') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -26,7 +26,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -73,7 +73,7 @@ $ineq = "\left| $a $var - $b \right| - $d $string $c "; Context()->texStrings; BEGIN_TEXT -Solve the following inequality. Write your answer using \{ AnswerFormatHelp("intervals","interval notation") \}. +Solve the following inequality. Write your answer using \{ helpLink("intervals","interval notation") \}. $PAR \[ $ineq @@ -99,7 +99,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/Algebra/inequalities_absolute_value/abs_val_10.pg b/Contrib/Mizzou/Algebra/inequalities_absolute_value/abs_val_10.pg index 612d094d4c..b2c71b4142 100644 --- a/Contrib/Mizzou/Algebra/inequalities_absolute_value/abs_val_10.pg +++ b/Contrib/Mizzou/Algebra/inequalities_absolute_value/abs_val_10.pg @@ -4,9 +4,9 @@ ## KEYWORDS('linear', 'inequality', 'absolute value') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Equations and Inequalities') -## DBchapter('Absolute Value') +## DBchapter('Absolute Value') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -26,7 +26,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -72,7 +72,7 @@ $ineq = "\left| $a $var - $b \right| $string $c "; Context()->texStrings; BEGIN_TEXT -Solve the following inequality. Write your answer using \{ AnswerFormatHelp("intervals","interval notation") \}. +Solve the following inequality. Write your answer using \{ helpLink("intervals","interval notation") \}. $PAR \[ $ineq @@ -98,7 +98,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/Algebra/inequalities_absolute_value/abs_val_11.pg b/Contrib/Mizzou/Algebra/inequalities_absolute_value/abs_val_11.pg index 9d60eadaa4..51b2f6f868 100644 --- a/Contrib/Mizzou/Algebra/inequalities_absolute_value/abs_val_11.pg +++ b/Contrib/Mizzou/Algebra/inequalities_absolute_value/abs_val_11.pg @@ -4,9 +4,9 @@ ## KEYWORDS('linear', 'inequality', 'absolute value') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Equations and Inequalities') -## DBchapter('Absolute Value') +## DBchapter('Absolute Value') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -26,7 +26,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -80,7 +80,7 @@ $ineq = "\left| $a $var - $b \right| $string $c "; Context()->texStrings; BEGIN_TEXT -Solve the following inequality. Write your answer using \{ AnswerFormatHelp("intervals","interval notation") \}. +Solve the following inequality. Write your answer using \{ helpLink("intervals","interval notation") \}. $PAR \[ $ineq @@ -106,7 +106,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/Algebra/inequalities_applications/bicycle_rental_01.pg b/Contrib/Mizzou/Algebra/inequalities_applications/bicycle_rental_01.pg index 3e3a90085d..bd5fbeee7a 100644 --- a/Contrib/Mizzou/Algebra/inequalities_applications/bicycle_rental_01.pg +++ b/Contrib/Mizzou/Algebra/inequalities_applications/bicycle_rental_01.pg @@ -11,7 +11,7 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( @@ -19,7 +19,7 @@ loadMacros( "MathObjects.pl", "PeriodicRerandomization.pl", "contextInequalities.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -29,7 +29,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Inequalities-Only"); $a = random(9,16,1); @@ -42,7 +42,7 @@ $b = sprintf("%0.2f", $b ); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -53,7 +53,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($hours)->cmp()); @@ -74,7 +74,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/inequalities_applications/car_rental_01.pg b/Contrib/Mizzou/Algebra/inequalities_applications/car_rental_01.pg index 09f16dc9e2..4f327723bf 100644 --- a/Contrib/Mizzou/Algebra/inequalities_applications/car_rental_01.pg +++ b/Contrib/Mizzou/Algebra/inequalities_applications/car_rental_01.pg @@ -11,7 +11,7 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( @@ -19,7 +19,7 @@ loadMacros( "MathObjects.pl", "PeriodicRerandomization.pl", "contextInequalities.pl", - "AnswerFormatHelp.pl", + "parserPopUp.pl", "PGcourse.pl" ); @@ -30,7 +30,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Inequalities-Only")->variables->are(x=>"Real"); for ($i = 0; $i < random(10,50); $i++) { @@ -53,7 +53,7 @@ $ans = $p; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -63,14 +63,14 @@ Plan A: ${DOLLAR}$a per day and unlimited mileage $BR Plan B: ${DOLLAR}$b per day plus ${DOLLAR}0.$cents per mile $PAR -Use an inequality to find the number of daily miles for which plan B costs $word than plan A. +Use an inequality to find the number of daily miles for which plan B costs $word than plan A. $PAR Answer: \{$pop->menu\} \{ans_rule(20)\} miles END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($pop->cmp()); ANS(Compute($ans)->cmp()); @@ -92,7 +92,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/inequalities_applications/linear_ineq_app_digital_hubs.pg b/Contrib/Mizzou/Algebra/inequalities_applications/linear_ineq_app_digital_hubs.pg index d37079fb43..264f0c01de 100644 --- a/Contrib/Mizzou/Algebra/inequalities_applications/linear_ineq_app_digital_hubs.pg +++ b/Contrib/Mizzou/Algebra/inequalities_applications/linear_ineq_app_digital_hubs.pg @@ -12,12 +12,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "contextInequalities.pl", @@ -30,7 +30,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Inequalities-Only"); do { @@ -44,7 +44,7 @@ $ans = Compute("x >= $x"); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -55,7 +55,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($ans)->cmp()); @@ -73,12 +73,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("inequalities", "Click here for help entering inequalities.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("inequalities", "Click here for help entering inequalities.")\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/inequalities_applications/linear_ineq_app_income_plans.pg b/Contrib/Mizzou/Algebra/inequalities_applications/linear_ineq_app_income_plans.pg index 9819f7929d..4ea4409184 100644 --- a/Contrib/Mizzou/Algebra/inequalities_applications/linear_ineq_app_income_plans.pg +++ b/Contrib/Mizzou/Algebra/inequalities_applications/linear_ineq_app_income_plans.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "contextCurrency.pl", @@ -30,7 +30,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); do { @@ -70,7 +70,7 @@ Context("Inequalities-Only"); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -87,7 +87,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($ans)->cmp()); @@ -108,7 +108,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/inequalities_applications/linear_ineq_app_investment_income.pg b/Contrib/Mizzou/Algebra/inequalities_applications/linear_ineq_app_investment_income.pg index 0f9749ea0c..4332e5fa8a 100644 --- a/Contrib/Mizzou/Algebra/inequalities_applications/linear_ineq_app_investment_income.pg +++ b/Contrib/Mizzou/Algebra/inequalities_applications/linear_ineq_app_investment_income.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "contextCurrency.pl", @@ -29,7 +29,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); do { @@ -47,7 +47,7 @@ $I = Currency($I); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -58,7 +58,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($x)->cmp()); @@ -79,7 +79,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/inequalities_applications/linear_ineq_app_moving_costs.pg b/Contrib/Mizzou/Algebra/inequalities_applications/linear_ineq_app_moving_costs.pg index 87ce741ede..a815d8d50a 100644 --- a/Contrib/Mizzou/Algebra/inequalities_applications/linear_ineq_app_moving_costs.pg +++ b/Contrib/Mizzou/Algebra/inequalities_applications/linear_ineq_app_moving_costs.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "contextInequalities.pl", @@ -29,7 +29,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Inequalities-Only")->variables->are(t => "Real"); $case = random(0,1); # 0 - less, 1 - more @@ -50,7 +50,7 @@ if ($case == 0) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -61,7 +61,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($ans)->cmp()); @@ -79,12 +79,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("inequalities", "Click here for help entering inequalities.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("inequalities", "Click here for help entering inequalities.")\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/inequalities_applications/test_scores_ia_npl.pg b/Contrib/Mizzou/Algebra/inequalities_applications/test_scores_ia_npl.pg index c5be79a6c9..0212a63b29 100644 --- a/Contrib/Mizzou/Algebra/inequalities_applications/test_scores_ia_npl.pg +++ b/Contrib/Mizzou/Algebra/inequalities_applications/test_scores_ia_npl.pg @@ -17,13 +17,13 @@ ##Section1('') ##Problem1('') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PeriodicRerandomization.pl", "contextInequalities.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -90,7 +90,7 @@ do { BEGIN_TEXT -Madoka has scores \($a\), \($b\), and \($c\), each out of \($test\) points, on her algebra tests. Use an inequality to find the minimum score she must make on the final exam to pass the course with an average of $percentc percent or higher, given that the final is worth \($final\) points. +Madoka has scores \($a\), \($b\), and \($c\), each out of \($test\) points, on her algebra tests. Use an inequality to find the minimum score she must make on the final exam to pass the course with an average of $percentc percent or higher, given that the final is worth \($final\) points. $PAR Minimum score needed on the final exam: \{ans_rule(20) \} out of \($final\) points END_TEXT @@ -105,7 +105,7 @@ ANS(Compute($ans)->cmp(tolerance => 0.01, tolType => absolute)); if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR - ${BBOLD}Answer:${EBOLD} \($tmp \) + ${BBOLD}Answer:${EBOLD} \($tmp \) $PAR END_TEXT } else { @@ -114,7 +114,7 @@ $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/inequalities_applications/truck_beams_01.pg b/Contrib/Mizzou/Algebra/inequalities_applications/truck_beams_01.pg index 0fc8939e9d..8404b7db11 100644 --- a/Contrib/Mizzou/Algebra/inequalities_applications/truck_beams_01.pg +++ b/Contrib/Mizzou/Algebra/inequalities_applications/truck_beams_01.pg @@ -11,14 +11,14 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "contextInequalities.pl", "PGcourse.pl" ); @@ -29,7 +29,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Inequalities-Only"); $truckw = random(3500,4500,100); @@ -39,7 +39,7 @@ $ans = floor(($bridgew - $truckw)/$beamw); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -50,7 +50,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($ans)->cmp()); @@ -71,7 +71,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/inequalities_compound/comp_ineq_01.pg b/Contrib/Mizzou/Algebra/inequalities_compound/comp_ineq_01.pg index 8bd6930b28..7663e016e8 100644 --- a/Contrib/Mizzou/Algebra/inequalities_compound/comp_ineq_01.pg +++ b/Contrib/Mizzou/Algebra/inequalities_compound/comp_ineq_01.pg @@ -11,14 +11,14 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -29,7 +29,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Fraction-NoDecimals"); @ineqs = ("<", "\leq"); @@ -71,11 +71,11 @@ $dispansrbrack = "$bracks2[$case1]"; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT -Solve the following inequality. Write your answer in interval notation or if no solutions exist write ${BBOLD}no solutions${EBOLD}. +Solve the following inequality. Write your answer in interval notation or if no solutions exist write ${BBOLD}no solutions${EBOLD}. $PAR \[ $dispineq @@ -86,7 +86,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ans->cmp(tolerance=>0.000000001, tolType=>"absolute")); @@ -104,12 +104,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{ AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.") \} + ${BBOLD}Help:${EBOLD} \{ helpLink("intervals", "Click here for help entering intervals as answers.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/inequalities_compound/comp_ineq_02.pg b/Contrib/Mizzou/Algebra/inequalities_compound/comp_ineq_02.pg index 28456886c2..073d665c8c 100644 --- a/Contrib/Mizzou/Algebra/inequalities_compound/comp_ineq_02.pg +++ b/Contrib/Mizzou/Algebra/inequalities_compound/comp_ineq_02.pg @@ -11,14 +11,14 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -29,7 +29,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Fraction-NoDecimals"); @ineqs = ("<", "\leq"); @@ -53,11 +53,11 @@ Context("Interval"); $ans = Compute("$bracks1[$case1] $lep, $rep $bracks2[$case2]"); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT -Solve the following inequality. Write your answer in interval notation or if no solutions exist write ${BBOLD}no solutions${EBOLD}. +Solve the following inequality. Write your answer in interval notation or if no solutions exist write ${BBOLD}no solutions${EBOLD}. $PAR \[ $dispineq @@ -68,7 +68,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ans->cmp(tolerance=>0.000000001, tolType=>"absolute")); @@ -86,12 +86,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{ AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.") \} + ${BBOLD}Help:${EBOLD} \{ helpLink("intervals", "Click here for help entering intervals as answers.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/inequalities_compound/comp_ineq_03.pg b/Contrib/Mizzou/Algebra/inequalities_compound/comp_ineq_03.pg index 3f1b247d78..c3e1aee367 100644 --- a/Contrib/Mizzou/Algebra/inequalities_compound/comp_ineq_03.pg +++ b/Contrib/Mizzou/Algebra/inequalities_compound/comp_ineq_03.pg @@ -11,14 +11,14 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -29,7 +29,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Fraction-NoDecimals"); @ineqs = ("<", "\leq"); @@ -73,11 +73,11 @@ if ($casex == 0) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT -Solve the following inequality. Write your answer in interval notation or if no solutions exist write ${BBOLD}no solutions${EBOLD}. +Solve the following inequality. Write your answer in interval notation or if no solutions exist write ${BBOLD}no solutions${EBOLD}. $PAR \[ $dispineq @@ -88,7 +88,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ans->cmp(tolerance=>0.000000001, tolType=>"absolute")); @@ -106,12 +106,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{ AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.") \} + ${BBOLD}Help:${EBOLD} \{ helpLink("intervals", "Click here for help entering intervals as answers.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/inequalities_compound/comp_ineq_04_ia_npl.pg b/Contrib/Mizzou/Algebra/inequalities_compound/comp_ineq_04_ia_npl.pg index 117f377d66..17b86848be 100644 --- a/Contrib/Mizzou/Algebra/inequalities_compound/comp_ineq_04_ia_npl.pg +++ b/Contrib/Mizzou/Algebra/inequalities_compound/comp_ineq_04_ia_npl.pg @@ -1,6 +1,6 @@ ##DESCRIPTION ## Compound Inequalities -## +## ##ENDDESCRIPTION ## DBsubject('Intermediate Algebra') ## DBchapter('Ch 04: Inequalities and Problem Solving') @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "contextInequalities.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -44,7 +44,7 @@ $f = $n*$b+$d; @inequal = ("x -$c \geq $e","$n x + $d < $f" ); @slice = NchooseK(2,2); - + ###################################### # Main text @@ -60,8 +60,8 @@ END_TEXT Context("Interval")->strings->add("no solutions"=>{}, "no solution"=>{alias=>{"no solutions"}}); $ans = Compute("[$a,$b)"); -ANS($ans->cmp); - +ANS($ans->cmp); + $showPartialCorrectAnswers = 1; Context()->texStrings; ########################################################################### @@ -77,7 +77,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT } diff --git a/Contrib/Mizzou/Algebra/inequalities_compound/comp_ineq_05_ia_npl.pg b/Contrib/Mizzou/Algebra/inequalities_compound/comp_ineq_05_ia_npl.pg index 3c339b6c3f..420eb9614d 100644 --- a/Contrib/Mizzou/Algebra/inequalities_compound/comp_ineq_05_ia_npl.pg +++ b/Contrib/Mizzou/Algebra/inequalities_compound/comp_ineq_05_ia_npl.pg @@ -1,6 +1,6 @@ ##DESCRIPTION ## Compound Inequalities -## +## ##ENDDESCRIPTION ## DBsubject('Intermediate Algebra') ## DBchapter('Ch 04: Inequalities and Problem Solving') @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "contextInequalities.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -45,7 +45,7 @@ $f = ($b-$d); @inequal = ("$m($c-x) < $e","\displaystyle \frac{x - $d}{$n} \leq \frac{$f}{$n}" ); @slice = NchooseK(2,2); - + ###################################### # Main text @@ -63,7 +63,7 @@ Context()->strings->add("No solution"=>{}); if ($a>$b) {$ans = String("no solutions"); $dispans = "no solutions"} else {$ans = Compute("($a,$b]"); $dispans = "\($ans\)"}; -ANS($ans->cmp); +ANS($ans->cmp); $showPartialCorrectAnswers = 1; @@ -80,7 +80,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT } diff --git a/Contrib/Mizzou/Algebra/inequalities_compound/comp_ineq_06_ia_npl.pg b/Contrib/Mizzou/Algebra/inequalities_compound/comp_ineq_06_ia_npl.pg index 066340fc1e..d9a1018161 100644 --- a/Contrib/Mizzou/Algebra/inequalities_compound/comp_ineq_06_ia_npl.pg +++ b/Contrib/Mizzou/Algebra/inequalities_compound/comp_ineq_06_ia_npl.pg @@ -1,6 +1,6 @@ ##DESCRIPTION ## Compound Inequalities -## +## ##ENDDESCRIPTION ## DBsubject('Intermediate Algebra') ## DBchapter('Ch 04: Inequalities and Problem Solving') @@ -22,7 +22,7 @@ loadMacros( "PGchoicemacros.pl", "MathObjects.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -39,7 +39,7 @@ do {$b = random(1,9,1);} while ($a==$b); @inequal = ("x < $a","x > $b" ); @slice = NchooseK(2,2); - + ###################################### # Main text @@ -55,7 +55,7 @@ END_TEXT Context("Interval")->strings->add("no solutions"=>{}, "no solution"=>{alias=>{"no solutions"}}); $ans = Compute("(-inf,$a)U($b,inf)")->reduce; -ANS($ans->cmp); +ANS($ans->cmp); Context()->texStrings; $showPartialCorrectAnswers = 1; @@ -72,7 +72,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT } diff --git a/Contrib/Mizzou/Algebra/inequalities_compound/comp_ineq_07_ia_npl.pg b/Contrib/Mizzou/Algebra/inequalities_compound/comp_ineq_07_ia_npl.pg index a3ec7e10b0..6b73b7eeb3 100644 --- a/Contrib/Mizzou/Algebra/inequalities_compound/comp_ineq_07_ia_npl.pg +++ b/Contrib/Mizzou/Algebra/inequalities_compound/comp_ineq_07_ia_npl.pg @@ -1,6 +1,6 @@ ##DESCRIPTION ## Compound Inequalities -## +## ##ENDDESCRIPTION ## DBsubject('Intermediate Algebra') ## DBchapter('Ch 04: Inequalities and Problem Solving') @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "contextInequalities.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -43,7 +43,7 @@ $bd = $b*$d; @inequal = ("$c x < $ac","$d x > $bd" ); @slice = NchooseK(2,2); - + ###################################### # Main text @@ -60,9 +60,9 @@ END_TEXT Context("Interval")->strings->add("no solutions"=>{}, "no solution"=>{alias=>{"no solutions"}}); -$ans = Compute("(-inf,$a)"); +$ans = Compute("(-inf,$a)"); if ($a<$b) {$ans = Compute("(-inf,$b)");} -ANS($ans->cmp); +ANS($ans->cmp); $showPartialCorrectAnswers = 1; Context()->texStrings; @@ -79,12 +79,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/inequalities_compound/comp_ineq_08_ia_npl.pg b/Contrib/Mizzou/Algebra/inequalities_compound/comp_ineq_08_ia_npl.pg index 83509810a2..08cab09261 100644 --- a/Contrib/Mizzou/Algebra/inequalities_compound/comp_ineq_08_ia_npl.pg +++ b/Contrib/Mizzou/Algebra/inequalities_compound/comp_ineq_08_ia_npl.pg @@ -1,6 +1,6 @@ ##DESCRIPTION ## Compound Inequalities -## +## ##ENDDESCRIPTION ## DBsubject('Intermediate Algebra') ## DBchapter('Ch 04: Inequalities and Problem Solving') @@ -22,7 +22,7 @@ loadMacros( "PGchoicemacros.pl", "MathObjects.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -43,7 +43,7 @@ $f = $n*$b+$d; @inequal = ("x ? {$c} \leq $e","$n x ? {$d} > $f" ); @slice = NchooseK(2,2); - + ###################################### # Main text @@ -59,7 +59,7 @@ END_TEXT Context("Interval")->strings->add("no solutions"=>{}, "no solution"=>{alias=>{"no solutions"}}); $ans = Compute("(-inf,$a] U ($b,inf)")->reduce; -ANS($ans->cmp); +ANS($ans->cmp); $showPartialCorrectAnswers = 1; @@ -77,7 +77,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT } diff --git a/Contrib/Mizzou/Algebra/inequalities_compound/comp_ineq_09_ia_npl.pg b/Contrib/Mizzou/Algebra/inequalities_compound/comp_ineq_09_ia_npl.pg index 283abb80f6..84615503ec 100644 --- a/Contrib/Mizzou/Algebra/inequalities_compound/comp_ineq_09_ia_npl.pg +++ b/Contrib/Mizzou/Algebra/inequalities_compound/comp_ineq_09_ia_npl.pg @@ -1,6 +1,6 @@ ##DESCRIPTION ## Compound Inequalities -## +## ##ENDDESCRIPTION ## DBsubject('Intermediate Algebra') ## DBchapter('Ch 04: Inequalities and Problem Solving') @@ -22,7 +22,7 @@ loadMacros( "PGchoicemacros.pl", "MathObjects.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -48,7 +48,7 @@ $exp = nicestring([$f,$g],["","x"]); @inequal = ("$c ? {$m} x > $e","$p x ? {$d} > $exp" ); @slice = NchooseK(2,2); - + ###################################### # Main text @@ -64,8 +64,8 @@ END_TEXT Context("Interval")->strings->add("no solutions"=>{}, "no solution"=>{alias=>{"no solutions"}}); $ans = Compute("(-inf,$a)U($b,inf)"); -ANS($ans->cmp); - +ANS($ans->cmp); + $showPartialCorrectAnswers = 1; Context()->texStrings; @@ -82,7 +82,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT } diff --git a/Contrib/Mizzou/Algebra/inequalities_compound/comp_ineq_10_ia_npl.pg b/Contrib/Mizzou/Algebra/inequalities_compound/comp_ineq_10_ia_npl.pg index 75c79100cd..92f2ef07ae 100644 --- a/Contrib/Mizzou/Algebra/inequalities_compound/comp_ineq_10_ia_npl.pg +++ b/Contrib/Mizzou/Algebra/inequalities_compound/comp_ineq_10_ia_npl.pg @@ -1,6 +1,6 @@ ##DESCRIPTION ## Compound Inequalities -## +## ##ENDDESCRIPTION ## DBsubject('Intermediate Algebra') ## DBchapter('Ch 04: Inequalities and Problem Solving') @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "PGchoicemacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGcourse.pl" ); @@ -51,7 +51,7 @@ $endpt2 = ($g+$d)/(1-$f); @slice = NchooseK(2,2); for ($i = 0; $i < random(10,50); $i++) { $case = random(0,1,1); -} +} $word = ($case == 0) ? "and" : "or"; if ($case == 0) { $num1 = ($e - $c)/gcd($e-$c,$n); @@ -72,7 +72,7 @@ if ($case == 0) { $dispans = "\($ans\)"; } - + ###################################### # Main text @@ -85,7 +85,7 @@ END_TEXT ###################################### # Answer -ANS($ans->cmp(tolerance=>0.00000001, tolType=>'absolute')); +ANS($ans->cmp(tolerance=>0.00000001, tolType=>'absolute')); $showPartialCorrectAnswers = 1; @@ -103,7 +103,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT } diff --git a/Contrib/Mizzou/Algebra/inequalities_compound/comp_ineq_two_parts_01.pg b/Contrib/Mizzou/Algebra/inequalities_compound/comp_ineq_two_parts_01.pg index 17d8b568c3..0203c297fb 100644 --- a/Contrib/Mizzou/Algebra/inequalities_compound/comp_ineq_two_parts_01.pg +++ b/Contrib/Mizzou/Algebra/inequalities_compound/comp_ineq_two_parts_01.pg @@ -11,14 +11,14 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -28,7 +28,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Interval"); Context()->strings->add("no solutions"=>{}, "no solution"=>{alias=>"no solutions"}); @@ -76,7 +76,7 @@ if ($swap == 1) { $tmp2 = $ans1; $ans1 = $ans2; $ans2 = $tmp2; - + $tmp3 = $dispansa; $dispansa = $dispansb; $dispansb = $tmp3; @@ -85,7 +85,7 @@ if ($swap == 1) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -98,7 +98,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ans1->cmp()); ANS($ans2->cmp()); @@ -117,12 +117,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.") \} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization', 'one is no solution, the other has overlap'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/inequalities_compound/comp_ineq_two_parts_02.pg b/Contrib/Mizzou/Algebra/inequalities_compound/comp_ineq_two_parts_02.pg index d40202fa42..4d61632165 100644 --- a/Contrib/Mizzou/Algebra/inequalities_compound/comp_ineq_two_parts_02.pg +++ b/Contrib/Mizzou/Algebra/inequalities_compound/comp_ineq_two_parts_02.pg @@ -11,14 +11,14 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -28,7 +28,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Interval"); Context()->strings->add("no solutions"=>{}, "no solution"=>{alias=>"no solutions"}); @@ -78,7 +78,7 @@ if ($swap == 1) { $tmp2 = $ans1; $ans1 = $ans2; $ans2 = $tmp2; - + $tmp3 = $dispansa; $dispansa = $dispansb; $dispansb = $tmp3; @@ -87,7 +87,7 @@ if ($swap == 1) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -100,7 +100,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ans1->cmp()); ANS($ans2->cmp()); @@ -119,12 +119,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.") \} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization', 'one is all reals, the other is the union of two infinite intervals'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/inequalities_compound/comp_ineq_two_parts_03.pg b/Contrib/Mizzou/Algebra/inequalities_compound/comp_ineq_two_parts_03.pg index adbf136ded..7a8156e5fc 100644 --- a/Contrib/Mizzou/Algebra/inequalities_compound/comp_ineq_two_parts_03.pg +++ b/Contrib/Mizzou/Algebra/inequalities_compound/comp_ineq_two_parts_03.pg @@ -11,14 +11,14 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -28,7 +28,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Interval"); Context()->strings->add("no solutions"=>{}, "no solution"=>{alias=>"no solutions"}); @@ -74,7 +74,7 @@ if ($swap == 1) { $tmp2 = $ans1; $ans1 = $ans2; $ans2 = $tmp2; - + $tmp3 = $dispansa; $dispansa = $dispansb; $dispansb = $tmp3; @@ -83,7 +83,7 @@ if ($swap == 1) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -96,7 +96,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ans1->cmp()); ANS($ans2->cmp()); @@ -115,12 +115,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.") \} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization', 'both and, both overlap to give one interval containing infinity'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/inequalities_compound/comp_ineq_two_parts_04.pg b/Contrib/Mizzou/Algebra/inequalities_compound/comp_ineq_two_parts_04.pg index e0a2217123..f7248c2ee9 100644 --- a/Contrib/Mizzou/Algebra/inequalities_compound/comp_ineq_two_parts_04.pg +++ b/Contrib/Mizzou/Algebra/inequalities_compound/comp_ineq_two_parts_04.pg @@ -11,14 +11,14 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -28,7 +28,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Interval"); Context()->strings->add("no solutions"=>{}, "no solution"=>{alias=>"no solutions"}); @@ -74,7 +74,7 @@ if ($swap == 1) { $tmp2 = $ans1; $ans1 = $ans2; $ans2 = $tmp2; - + $tmp3 = $dispansa; $dispansa = $dispansb; $dispansb = $tmp3; @@ -83,7 +83,7 @@ if ($swap == 1) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -96,7 +96,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ans1->cmp()); ANS($ans2->cmp()); @@ -115,12 +115,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.") \} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization', 'both or, both overlap to give one infinite interval'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/inequalities_compound/comp_ineq_two_parts_05.pg b/Contrib/Mizzou/Algebra/inequalities_compound/comp_ineq_two_parts_05.pg index 73487b5074..288783ec64 100644 --- a/Contrib/Mizzou/Algebra/inequalities_compound/comp_ineq_two_parts_05.pg +++ b/Contrib/Mizzou/Algebra/inequalities_compound/comp_ineq_two_parts_05.pg @@ -11,14 +11,14 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -28,7 +28,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Interval"); Context()->strings->add("no solutions"=>{}, "no solution"=>{alias=>"no solutions"}); @@ -199,7 +199,7 @@ if ($swap == 1) { $tmp2 = $ans1; $ans1 = $ans2; $ans2 = $tmp2; - + $tmp3 = $dispansa; $dispansa = $dispansb; $dispansb = $tmp3; @@ -207,7 +207,7 @@ if ($swap == 1) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -220,7 +220,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ans1->cmp()); ANS($ans2->cmp()); @@ -239,12 +239,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.") \} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization', 'can be any two cases chosen from any of the possibilities in the previous four comp_ineq_two_parts problems'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/inequalities_linear/compound_01.pg b/Contrib/Mizzou/Algebra/inequalities_linear/compound_01.pg index d6746fc859..94e102c856 100644 --- a/Contrib/Mizzou/Algebra/inequalities_linear/compound_01.pg +++ b/Contrib/Mizzou/Algebra/inequalities_linear/compound_01.pg @@ -4,9 +4,9 @@ ## KEYWORDS('linear', 'inequality') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Equations and Inequalities') -## DBchapter('Linear Inequalities') +## DBchapter('Linear Inequalities') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -70,7 +70,7 @@ elsif($case ==4){ $string1 = '\leq'; $string2 = '\leq'; $ans = Compute( " [$end1,$end2] " );} - + $ineq = "$a $string1 $var + $b $string2 $ac "; $interval = Compute("[1,2)"); @@ -103,12 +103,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('of form a < or <= x + b < or <= c, where c > a'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/inequalities_linear/compound_02.pg b/Contrib/Mizzou/Algebra/inequalities_linear/compound_02.pg index e9747369ef..c13856f5fb 100644 --- a/Contrib/Mizzou/Algebra/inequalities_linear/compound_02.pg +++ b/Contrib/Mizzou/Algebra/inequalities_linear/compound_02.pg @@ -4,9 +4,9 @@ ## KEYWORDS('linear', 'inequality') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Equations and Inequalities') -## DBchapter('Linear Inequalities') +## DBchapter('Linear Inequalities') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -80,7 +80,7 @@ elsif($case ==4){ $string1 = '\leq'; $string2 = '\leq'; $ans = Compute( " [$end1,$end2] " );} - + $ineq = "$a $string1 $d $var + $b $string2 $ac "; ANS( Compute($ans)->cmp() ); @@ -130,18 +130,18 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { \(\left[$end1,$end2\right]\) $PAR END_TEXT - } + } } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); $showPartialCorrectAnswers = 1; diff --git a/Contrib/Mizzou/Algebra/inequalities_linear/compound_03.pg b/Contrib/Mizzou/Algebra/inequalities_linear/compound_03.pg index 34248d05bb..3c1feeb279 100644 --- a/Contrib/Mizzou/Algebra/inequalities_linear/compound_03.pg +++ b/Contrib/Mizzou/Algebra/inequalities_linear/compound_03.pg @@ -4,9 +4,9 @@ ## KEYWORDS('linear', 'inequality') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Equations and Inequalities') -## DBchapter('Linear Inequalities') +## DBchapter('Linear Inequalities') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -78,7 +78,7 @@ elsif($case ==4){ $string1 = '\leq'; $string2 = '\leq'; $ans = Compute( " [$end1,$end2] " );} - + $ineq = "$a $string1 $b - $var $string2 $ac "; ANS( Compute($ans)->cmp() ); @@ -110,14 +110,14 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/Algebra/inequalities_linear/compound_04.pg b/Contrib/Mizzou/Algebra/inequalities_linear/compound_04.pg index e469169617..6fff78d97c 100644 --- a/Contrib/Mizzou/Algebra/inequalities_linear/compound_04.pg +++ b/Contrib/Mizzou/Algebra/inequalities_linear/compound_04.pg @@ -4,9 +4,9 @@ ## KEYWORDS('linear', 'inequality') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Equations and Inequalities') -## DBchapter('Linear Inequalities') +## DBchapter('Linear Inequalities') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -77,7 +77,7 @@ elsif($case ==4){ $string1 = '\leq'; $string2 = '\leq'; $ans = Compute( " [$end1,$end2] " );} - + $ineq = "$a $string1 \frac{$var + $b}{$c} $string2 $ad "; $interval = Compute("[1,2)"); @@ -89,7 +89,7 @@ ANS( Compute($ans)->cmp() ); Context()->texStrings; BEGIN_TEXT -Solve the following inequality. Write your answer using \{ AnswerFormatHelp("intervals","interval notation") \}. +Solve the following inequality. Write your answer using \{ helpLink("intervals","interval notation") \}. $PAR \[ $ineq @@ -115,7 +115,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/Algebra/inequalities_linear/compound_05.pg b/Contrib/Mizzou/Algebra/inequalities_linear/compound_05.pg index a03691bf73..f2dbad7d3d 100644 --- a/Contrib/Mizzou/Algebra/inequalities_linear/compound_05.pg +++ b/Contrib/Mizzou/Algebra/inequalities_linear/compound_05.pg @@ -4,9 +4,9 @@ ## KEYWORDS('linear', 'inequality') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Equations and Inequalities') -## DBchapter('Linear Inequalities') +## DBchapter('Linear Inequalities') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -81,7 +81,7 @@ elsif($case ==4){ $string1 = '\leq'; $string2 = '\geq'; $ans = Compute( " (-inf,$end1] U [$end2,inf) " );} - + $ineq = "$a $var $string1 $minusb $or $var - $c $string2 $dc "; ANS( Compute("$ans")->cmp() ); @@ -92,7 +92,7 @@ ANS( Compute("$ans")->cmp() ); Context()->texStrings; BEGIN_TEXT -Solve the following inequality. Write your answer in interval notation or if no solutions exist write ${BBOLD}no solutions${EBOLD}. +Solve the following inequality. Write your answer in interval notation or if no solutions exist write ${BBOLD}no solutions${EBOLD}. $PAR \[ $ineq @@ -132,18 +132,18 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { \(\left(-\infty,$end1\right]\cup \left[$end2,\infty\right)\) $PAR END_TEXT - } + } } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/Algebra/inequalities_linear/linear_01.pg b/Contrib/Mizzou/Algebra/inequalities_linear/linear_01.pg index 8841821e5b..884b2a8658 100644 --- a/Contrib/Mizzou/Algebra/inequalities_linear/linear_01.pg +++ b/Contrib/Mizzou/Algebra/inequalities_linear/linear_01.pg @@ -4,9 +4,9 @@ ## KEYWORDS('linear', 'inequality') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Equations and Inequalities') -## DBchapter('Linear Inequalities') +## DBchapter('Linear Inequalities') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -120,7 +120,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { \(\left(-\infty,$endpoint\right]\) $PAR END_TEXT - } + } } else { BEGIN_TEXT $PAR @@ -131,7 +131,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); $showPartialCorrectAnswers = 1; diff --git a/Contrib/Mizzou/Algebra/inequalities_linear/linear_02.pg b/Contrib/Mizzou/Algebra/inequalities_linear/linear_02.pg index 34302d4e51..149bc1a589 100644 --- a/Contrib/Mizzou/Algebra/inequalities_linear/linear_02.pg +++ b/Contrib/Mizzou/Algebra/inequalities_linear/linear_02.pg @@ -4,9 +4,9 @@ ## KEYWORDS('linear' 'inequality') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Systems of Equations and Inequalities') -## DBchapter('Systems of Equations') +## DBchapter('Systems of Equations') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -26,7 +26,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -119,7 +119,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { \(\left(-\infty,$endpoint\right]\) $PAR END_TEXT - } + } } else { BEGIN_TEXT $PAR @@ -130,7 +130,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/Algebra/inequalities_linear/linear_03.pg b/Contrib/Mizzou/Algebra/inequalities_linear/linear_03.pg index 538bdead48..51527f97fd 100644 --- a/Contrib/Mizzou/Algebra/inequalities_linear/linear_03.pg +++ b/Contrib/Mizzou/Algebra/inequalities_linear/linear_03.pg @@ -4,9 +4,9 @@ ## KEYWORDS('linear', 'inequality') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Equations and Inequalities') -## DBchapter('Linear Inequalities') +## DBchapter('Linear Inequalities') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -74,7 +74,7 @@ elsif($case == 3){ elsif($case ==4){ $string = '\leq'; $ans = Compute( " (-inf,$endpoint] " );} - + $ineq = "$ab $var + $a( $e + $var) $string $c $var + $d"; $interval = Compute("[1,2)"); @@ -123,7 +123,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { \(\left(-\infty,$endpoint\right]\) $PAR END_TEXT - } + } } else { BEGIN_TEXT $PAR @@ -134,7 +134,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/Algebra/inequalities_linear/linear_04.pg b/Contrib/Mizzou/Algebra/inequalities_linear/linear_04.pg index 4a07910b5d..24b69290fd 100644 --- a/Contrib/Mizzou/Algebra/inequalities_linear/linear_04.pg +++ b/Contrib/Mizzou/Algebra/inequalities_linear/linear_04.pg @@ -4,9 +4,9 @@ ## KEYWORDS('linear', 'inequality') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Equations and Inequalities') -## DBchapter('Linear Inequalities') +## DBchapter('Linear Inequalities') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -75,7 +75,7 @@ elsif($case == 3){ elsif($case ==4){ $string = '\leq'; $ans = Compute( " (-inf,$endpoint] " );} - + $ineq = "$a ($b $var - $d)($var + $e) $string $ab $var ($var - $c)"; $interval = Compute("[1,2)"); @@ -125,7 +125,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { \(\left(-\infty,$endpoint\right]\) $PAR END_TEXT - } + } } else { BEGIN_TEXT $PAR @@ -136,7 +136,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/Algebra/inequalities_linear/linear_05.pg b/Contrib/Mizzou/Algebra/inequalities_linear/linear_05.pg index 9f3671c322..cf269e84de 100644 --- a/Contrib/Mizzou/Algebra/inequalities_linear/linear_05.pg +++ b/Contrib/Mizzou/Algebra/inequalities_linear/linear_05.pg @@ -4,9 +4,9 @@ ## KEYWORDS('linear', 'inequality') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Equations and Inequalities') -## DBchapter('Linear Inequalities') +## DBchapter('Linear Inequalities') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -77,7 +77,7 @@ elsif($case == 3){ elsif($case ==4){ $string = '\leq'; $ans = Compute( " (-inf,$endpoint] " );} - + $ineq = "\frac{$e}{$f} $var - \frac{$c}{$d} $string - \frac{$a}{$b} $var"; $interval = Compute("[1,2)"); @@ -128,7 +128,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { \(\left(-\infty,$endpoint\right]\) $PAR END_TEXT - } + } } else { BEGIN_TEXT $PAR @@ -139,7 +139,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); $showPartialCorrectAnswers = 1; diff --git a/Contrib/Mizzou/Algebra/inequalities_linear/linear_06_ia.pg b/Contrib/Mizzou/Algebra/inequalities_linear/linear_06_ia.pg index fe7af5a7c4..0c43d7c18b 100644 --- a/Contrib/Mizzou/Algebra/inequalities_linear/linear_06_ia.pg +++ b/Contrib/Mizzou/Algebra/inequalities_linear/linear_06_ia.pg @@ -11,14 +11,14 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -28,7 +28,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Interval"); $a = random(2,15); @@ -72,7 +72,7 @@ $ineq = "$a + $b x $sign $c"; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->strings->add("no solutions"=>{}, "no solution"=>{alias=>"no solutions"}); Context()->texStrings; @@ -88,7 +88,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ans->cmp()); @@ -111,7 +111,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Solve inequality of form a + b x <*> c, where <*> is any type of inequality symbol and b is positive or negative.'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/inequalities_linear/linear_07_ia.pg b/Contrib/Mizzou/Algebra/inequalities_linear/linear_07_ia.pg index 4e702497c9..1ca3aaf9f6 100644 --- a/Contrib/Mizzou/Algebra/inequalities_linear/linear_07_ia.pg +++ b/Contrib/Mizzou/Algebra/inequalities_linear/linear_07_ia.pg @@ -11,14 +11,14 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -28,7 +28,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Interval"); $a = random(2,15); @@ -71,7 +71,7 @@ if ($case == 0) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; Context()->strings->add("no solutions"=>{}, "no solution"=>{alias=>"no solutions"}); @@ -87,7 +87,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ans->cmp()); @@ -110,7 +110,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Solve inequality of form a + b x <*> c, where <*> is any type of inequality symbol and b always negative.'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/inequalities_linear/linear_08_ia.pg b/Contrib/Mizzou/Algebra/inequalities_linear/linear_08_ia.pg index 112a79b1c7..e540b7274b 100644 --- a/Contrib/Mizzou/Algebra/inequalities_linear/linear_08_ia.pg +++ b/Contrib/Mizzou/Algebra/inequalities_linear/linear_08_ia.pg @@ -11,14 +11,14 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -28,7 +28,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Interval"); $a = random(2,8,1); @@ -72,7 +72,7 @@ if ($d < 0) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; Context()->strings->add("no solutions"=>{}, "no solution"=>{alias=>"no solutions"}); @@ -88,7 +88,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ans->cmp()); @@ -111,7 +111,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/inequalities_linear/linear_09_ia.pg b/Contrib/Mizzou/Algebra/inequalities_linear/linear_09_ia.pg index 59b6085a07..8739b0f246 100644 --- a/Contrib/Mizzou/Algebra/inequalities_linear/linear_09_ia.pg +++ b/Contrib/Mizzou/Algebra/inequalities_linear/linear_09_ia.pg @@ -11,14 +11,14 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -28,7 +28,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Interval"); $a = random(2,5); @@ -101,7 +101,7 @@ if ($b == 1) { $dispineq = "\displaystyle \frac{$a + x}{$d1}"; } else { $dispineq = "\displaystyle \frac{$a - $b x}{$d1}"; -} +} if ($d == 1) { $dispineq = $dispineq."- \frac{$c - x}{$d2} $sign $r"; @@ -113,7 +113,7 @@ if ($d == 1) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->strings->add("no solutions"=>{}, "no solution"=>{alias=>"no solutions"}); Context()->texStrings; @@ -129,7 +129,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ans->cmp()); @@ -152,7 +152,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/inequalities_linear/linear_10_ia.pg b/Contrib/Mizzou/Algebra/inequalities_linear/linear_10_ia.pg index 626a26ae83..f2401fb6a6 100644 --- a/Contrib/Mizzou/Algebra/inequalities_linear/linear_10_ia.pg +++ b/Contrib/Mizzou/Algebra/inequalities_linear/linear_10_ia.pg @@ -11,14 +11,14 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -28,7 +28,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Interval"); $a1 = random(2,7); @@ -39,7 +39,7 @@ do {$d1 = random(2,5)*random(-1,1,2)} until ($d1 != -$a1*$b1); $a2 = random(2,7); $b2 = random(-1,1,2)*random(2,5); $c2 = random(2,6); -do {$d2 = non_zero_random(-7,7)} until (gcd($d2,$c2) == 1); +do {$d2 = non_zero_random(-7,7)} until (gcd($d2,$c2) == 1); do {$e2 = non_zero_random(-7,7)} until ($a1*$b1 + $d1 != $b2*$c2 + $e2 && $e2 != -$b2*$c2); for ($i = 0; $i < random(10,50); $i++) { @@ -108,7 +108,7 @@ if ($e2 == 1) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->strings->add("no solutions"=>{}, "no solution"=>{alias=>"no solutions"}); Context()->texStrings; @@ -124,7 +124,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ans->cmp()); @@ -147,7 +147,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/inequalities_linear/linear_11_ia.pg b/Contrib/Mizzou/Algebra/inequalities_linear/linear_11_ia.pg index 626a26ae83..f2401fb6a6 100644 --- a/Contrib/Mizzou/Algebra/inequalities_linear/linear_11_ia.pg +++ b/Contrib/Mizzou/Algebra/inequalities_linear/linear_11_ia.pg @@ -11,14 +11,14 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -28,7 +28,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Interval"); $a1 = random(2,7); @@ -39,7 +39,7 @@ do {$d1 = random(2,5)*random(-1,1,2)} until ($d1 != -$a1*$b1); $a2 = random(2,7); $b2 = random(-1,1,2)*random(2,5); $c2 = random(2,6); -do {$d2 = non_zero_random(-7,7)} until (gcd($d2,$c2) == 1); +do {$d2 = non_zero_random(-7,7)} until (gcd($d2,$c2) == 1); do {$e2 = non_zero_random(-7,7)} until ($a1*$b1 + $d1 != $b2*$c2 + $e2 && $e2 != -$b2*$c2); for ($i = 0; $i < random(10,50); $i++) { @@ -108,7 +108,7 @@ if ($e2 == 1) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->strings->add("no solutions"=>{}, "no solution"=>{alias=>"no solutions"}); Context()->texStrings; @@ -124,7 +124,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ans->cmp()); @@ -147,7 +147,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/inequalities_linear/linear_12_ia.pg b/Contrib/Mizzou/Algebra/inequalities_linear/linear_12_ia.pg index 08c77d273c..0497c9f59b 100644 --- a/Contrib/Mizzou/Algebra/inequalities_linear/linear_12_ia.pg +++ b/Contrib/Mizzou/Algebra/inequalities_linear/linear_12_ia.pg @@ -11,14 +11,14 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -28,7 +28,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Interval"); $d1 = random(2,4); @@ -107,7 +107,7 @@ if ($a1 == 1) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->strings->add("no solutions"=>{}, "no solution"=>{alias=>"no solutions"}); Context()->texStrings; @@ -123,7 +123,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ans->cmp()); @@ -146,7 +146,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/inequalities_linear/linear_13_ia_npl.pg b/Contrib/Mizzou/Algebra/inequalities_linear/linear_13_ia_npl.pg index 5a56a0dc0f..3477d137b4 100644 --- a/Contrib/Mizzou/Algebra/inequalities_linear/linear_13_ia_npl.pg +++ b/Contrib/Mizzou/Algebra/inequalities_linear/linear_13_ia_npl.pg @@ -1,6 +1,6 @@ ##DESCRIPTION ## Linear Inequalities -## +## ##ENDDESCRIPTION ## DBsubject('Intermediate Algebra') ## DBchapter('Ch 04: Inequalities and Problem Solving') @@ -23,7 +23,7 @@ loadMacros( "contextInequalitiesAllowStrings.pl", "answerHints.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -97,7 +97,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/inequalities_linear/linear_14.pg b/Contrib/Mizzou/Algebra/inequalities_linear/linear_14.pg index ef199908bc..312d07dcb0 100644 --- a/Contrib/Mizzou/Algebra/inequalities_linear/linear_14.pg +++ b/Contrib/Mizzou/Algebra/inequalities_linear/linear_14.pg @@ -11,14 +11,14 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -28,7 +28,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Interval"); $a = random(1,15); @@ -43,7 +43,7 @@ if ($case == 0) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->strings->add("no solutions"=>{}, "no solution"=>{alias=>"no solutions"}); Context()->texStrings; @@ -59,7 +59,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(String("no solutions")->cmp()); @@ -82,7 +82,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization, never a solution'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/inequalities_linear/linear_15.pg b/Contrib/Mizzou/Algebra/inequalities_linear/linear_15.pg index 24f250200b..1824e7de93 100644 --- a/Contrib/Mizzou/Algebra/inequalities_linear/linear_15.pg +++ b/Contrib/Mizzou/Algebra/inequalities_linear/linear_15.pg @@ -11,14 +11,14 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -28,7 +28,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Interval"); $b = random(1,15); @@ -43,7 +43,7 @@ if ($case == 0) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->strings->add("no solutions"=>{}, "no solution"=>{alias=>"no solutions"}); Context()->texStrings; @@ -59,7 +59,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Interval("R")->cmp()); @@ -82,7 +82,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization, always all reals'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/inequalities_linear/linear_16.pg b/Contrib/Mizzou/Algebra/inequalities_linear/linear_16.pg index 88ef158ca6..59e8953523 100644 --- a/Contrib/Mizzou/Algebra/inequalities_linear/linear_16.pg +++ b/Contrib/Mizzou/Algebra/inequalities_linear/linear_16.pg @@ -11,14 +11,14 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -28,7 +28,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Interval"); Context()->strings->add("no solutions"=>{}, "no solution"=>{alias=>"no solutions"}); @@ -54,7 +54,7 @@ if ($case == 0) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -69,7 +69,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ans->cmp()); @@ -92,7 +92,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization, no solutions or all reals'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/inequalities_rational/rat_ineq_01.pg b/Contrib/Mizzou/Algebra/inequalities_rational/rat_ineq_01.pg index 49c34e66cf..2304e46cd6 100644 --- a/Contrib/Mizzou/Algebra/inequalities_rational/rat_ineq_01.pg +++ b/Contrib/Mizzou/Algebra/inequalities_rational/rat_ineq_01.pg @@ -4,9 +4,9 @@ ## KEYWORDS('nonlinear inequality', 'polynomial') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Equations and Inequalities') -## DBchapter('Nonlinear Inequalities') +## DBchapter('Nonlinear Inequalities') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -26,7 +26,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -81,7 +81,7 @@ $ineq = " \frac{$var - $a}{$var + $b} $string 0 "; Context()->texStrings; BEGIN_TEXT -Solve the following inequality. Write your answer using \{ AnswerFormatHelp("intervals","interval notation") \}. +Solve the following inequality. Write your answer using \{ helpLink("intervals","interval notation") \}. $PAR \[ $ineq @@ -92,7 +92,7 @@ $PAR END_TEXT if ($attempts_modp == 0 && $actualAttempts != 0) { - + BEGIN_TEXT $PAR $BBOLD Answer: $EBOLD @@ -108,7 +108,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/Algebra/inequalities_rational/rat_ineq_02.pg b/Contrib/Mizzou/Algebra/inequalities_rational/rat_ineq_02.pg index ac5a602f66..4f2031051f 100644 --- a/Contrib/Mizzou/Algebra/inequalities_rational/rat_ineq_02.pg +++ b/Contrib/Mizzou/Algebra/inequalities_rational/rat_ineq_02.pg @@ -4,9 +4,9 @@ ## KEYWORDS('nonlinear inequality', 'polynomial') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Equations and Inequalities') -## DBchapter('Nonlinear Inequalities') +## DBchapter('Nonlinear Inequalities') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -26,7 +26,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -80,7 +80,7 @@ $ineq = " \frac{$var}{($var - $b)^2} $string 0 "; Context()->texStrings; BEGIN_TEXT -Solve the following inequality. Write your answer using \{ AnswerFormatHelp("intervals","interval notation") \}. +Solve the following inequality. Write your answer using \{ helpLink("intervals","interval notation") \}. $PAR \[ $ineq @@ -105,7 +105,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/Algebra/inequalities_rational/rat_ineq_03.pg b/Contrib/Mizzou/Algebra/inequalities_rational/rat_ineq_03.pg index 643e0609e0..da152fb001 100644 --- a/Contrib/Mizzou/Algebra/inequalities_rational/rat_ineq_03.pg +++ b/Contrib/Mizzou/Algebra/inequalities_rational/rat_ineq_03.pg @@ -4,9 +4,9 @@ ## KEYWORDS('nonlinear inequality', 'polynomial') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Equations and Inequalities') -## DBchapter('Nonlinear Inequalities') +## DBchapter('Nonlinear Inequalities') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -26,7 +26,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -83,7 +83,7 @@ $ineq = " \frac{$a $var}{($var - $b)($var + $c)} $string 0 "; Context()->texStrings; BEGIN_TEXT -Solve the following inequality. Write your answer using \{ AnswerFormatHelp("intervals","interval notation") \}. +Solve the following inequality. Write your answer using \{ helpLink("intervals","interval notation") \}. $PAR \[ $ineq @@ -94,14 +94,14 @@ $PAR END_TEXT if ($attempts_modp == 0 && $actualAttempts != 0) { - + BEGIN_TEXT $PAR $BBOLD Answer: $EBOLD \($ans\) $PAR END_TEXT - + } else { BEGIN_TEXT $BR @@ -110,7 +110,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); $showPartialCorrectAnswers = 1; diff --git a/Contrib/Mizzou/Algebra/inequalities_rational/rat_ineq_04.pg b/Contrib/Mizzou/Algebra/inequalities_rational/rat_ineq_04.pg index e46039b1be..586cdf4226 100644 --- a/Contrib/Mizzou/Algebra/inequalities_rational/rat_ineq_04.pg +++ b/Contrib/Mizzou/Algebra/inequalities_rational/rat_ineq_04.pg @@ -4,9 +4,9 @@ ## KEYWORDS('nonlinear inequality', 'polynomial') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Equations and Inequalities') -## DBchapter('Nonlinear Inequalities') +## DBchapter('Nonlinear Inequalities') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -26,7 +26,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -95,7 +95,7 @@ if ($e1 != 0) { Context()->texStrings; BEGIN_TEXT -Solve the following inequality. Write your answer using \{ AnswerFormatHelp("intervals","interval notation") \}. +Solve the following inequality. Write your answer using \{ helpLink("intervals","interval notation") \}. $PAR \[ $ineq @@ -113,7 +113,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { \($ans\) $PAR END_TEXT - + } else { BEGIN_TEXT $BR @@ -122,7 +122,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); $showPartialCorrectAnswers = 1; diff --git a/Contrib/Mizzou/Algebra/inequalities_rational/rat_ineq_05.pg b/Contrib/Mizzou/Algebra/inequalities_rational/rat_ineq_05.pg index 20895ff9dd..1cce91ae70 100644 --- a/Contrib/Mizzou/Algebra/inequalities_rational/rat_ineq_05.pg +++ b/Contrib/Mizzou/Algebra/inequalities_rational/rat_ineq_05.pg @@ -4,9 +4,9 @@ ## KEYWORDS('nonlinear inequality', 'polynomial') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Equations and Inequalities') -## DBchapter('Nonlinear Inequalities') +## DBchapter('Nonlinear Inequalities') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -26,7 +26,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -83,7 +83,7 @@ $ineq = " \frac{$a $var}{$var^2 - $b2} $string 0 "; Context()->texStrings; BEGIN_TEXT -Solve the following inequality. Write your answer using \{ AnswerFormatHelp("intervals","interval notation") \}. +Solve the following inequality. Write your answer using \{ helpLink("intervals","interval notation") \}. $PAR \[ $ineq @@ -108,7 +108,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/Algebra/inequalities_rational/rat_ineq_06.pg b/Contrib/Mizzou/Algebra/inequalities_rational/rat_ineq_06.pg index 479e371637..cbcc7a6f5a 100644 --- a/Contrib/Mizzou/Algebra/inequalities_rational/rat_ineq_06.pg +++ b/Contrib/Mizzou/Algebra/inequalities_rational/rat_ineq_06.pg @@ -4,9 +4,9 @@ ## KEYWORDS('nonlinear inequality', 'polynomial') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Equations and Inequalities') -## DBchapter('Nonlinear Inequalities') +## DBchapter('Nonlinear Inequalities') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -26,7 +26,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -86,7 +86,7 @@ $ineq = " \frac{ $var + $a }{ $var + $b } - \frac{ $var - $c }{ $var - $b } $str Context()->texStrings; BEGIN_TEXT -Solve the following inequality. Write your answer using \{ AnswerFormatHelp("intervals","interval notation") \}. +Solve the following inequality. Write your answer using \{ helpLink("intervals","interval notation") \}. $PAR \[ $ineq @@ -125,7 +125,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { \( \left(-\infty,$end1\right]\cup \left($end2,$end3\right)\) $PAR END_TEXT - } + } } else { BEGIN_TEXT $BR @@ -134,7 +134,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/Algebra/inequalities_rational/rat_ineq_07.pg b/Contrib/Mizzou/Algebra/inequalities_rational/rat_ineq_07.pg index 72658c8386..72131778d1 100644 --- a/Contrib/Mizzou/Algebra/inequalities_rational/rat_ineq_07.pg +++ b/Contrib/Mizzou/Algebra/inequalities_rational/rat_ineq_07.pg @@ -4,9 +4,9 @@ ## KEYWORDS('nonlinear inequality', 'polynomial') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Equations and Inequalities') -## DBchapter('Nonlinear Inequalities') +## DBchapter('Nonlinear Inequalities') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -26,7 +26,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -86,7 +86,7 @@ $ineq = ($flip == 0) ? "\frac{ $var - $a }{ $var + $b } $string $c" : "$c $strin Context()->texStrings; BEGIN_TEXT -Solve the following inequality. Write your answer using \{ AnswerFormatHelp("intervals","interval notation") \}. +Solve the following inequality. Write your answer using \{ helpLink("intervals","interval notation") \}. $PAR \[ $ineq @@ -125,7 +125,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { \( \left[$end1,$end2\right)\) $PAR END_TEXT - } + } } else { BEGIN_TEXT $BR @@ -134,7 +134,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/Algebra/inverse_functions_and_relations/determine_f_f_inv_of_a_01.pg b/Contrib/Mizzou/Algebra/inverse_functions_and_relations/determine_f_f_inv_of_a_01.pg index 938a0767b2..83db0ae574 100644 --- a/Contrib/Mizzou/Algebra/inverse_functions_and_relations/determine_f_f_inv_of_a_01.pg +++ b/Contrib/Mizzou/Algebra/inverse_functions_and_relations/determine_f_f_inv_of_a_01.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -28,12 +28,12 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $a = random(-1500,1500); -$choice = random(0,1,1); +$choice = random(0,1,1); if ($choice == 0) { $disp = "f^{-1}\left(f\left($a\right)\right)"; } else { @@ -42,7 +42,7 @@ if ($choice == 0) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -53,7 +53,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($a)->cmp()); @@ -74,7 +74,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/inverse_functions_and_relations/determine_intercepts_01.pg b/Contrib/Mizzou/Algebra/inverse_functions_and_relations/determine_intercepts_01.pg index 9b8dd8253f..f67f075a6d 100644 --- a/Contrib/Mizzou/Algebra/inverse_functions_and_relations/determine_intercepts_01.pg +++ b/Contrib/Mizzou/Algebra/inverse_functions_and_relations/determine_intercepts_01.pg @@ -17,7 +17,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "contextFraction.pl", @@ -123,7 +123,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} Use ${BBOLD}log(b,x)${EBOLD} to enter logarithms that are not base \(e\) nor base \(10\). For example, type ${BBOLD}log(3,5)${EBOLD} to enter \(\log_3(5)\). Use ${BBOLD}ln(15)${EBOLD} for \(\ln(15)\), and ${BBOLD}log10(20)${EBOLD} for \(\log(20)\). \{AnswerFormatHelp("points", "Click here for help entering points as an answer.")\} + ${BBOLD}Help:${EBOLD} Use ${BBOLD}log(b,x)${EBOLD} to enter logarithms that are not base \(e\) nor base \(10\). For example, type ${BBOLD}log(3,5)${EBOLD} to enter \(\log_3(5)\). Use ${BBOLD}ln(15)${EBOLD} for \(\ln(15)\), and ${BBOLD}log10(20)${EBOLD} for \(\log(20)\). \{helpLink("points", "Click here for help entering points as an answer.")\} $BR END_TEXT } diff --git a/Contrib/Mizzou/Algebra/inverse_functions_and_relations/determine_intercepts_02.pg b/Contrib/Mizzou/Algebra/inverse_functions_and_relations/determine_intercepts_02.pg index 46bc05ab39..0c6bd11416 100644 --- a/Contrib/Mizzou/Algebra/inverse_functions_and_relations/determine_intercepts_02.pg +++ b/Contrib/Mizzou/Algebra/inverse_functions_and_relations/determine_intercepts_02.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "contextFraction.pl", @@ -30,7 +30,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Fraction-NoDecimals")->texStrings; $base = list_random(exp(1),10,2,3,4,5,6,7,8,9); @@ -124,7 +124,7 @@ parserFunction("log(b,x)" => "ln(x)/ln(b)"); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -137,7 +137,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS( Compute($xint)->cmp(tolType=>'absolute', tolerance=>0.0000000001) ); if ($yintcoord != "n") { @@ -154,19 +154,19 @@ if ($yintcoord != "n") { if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR - ${BBOLD}Answer:${EBOLD} + ${BBOLD}Answer:${EBOLD} $dispxint $dispyint $PAR END_TEXT } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} Use ${BBOLD}log(b,x)${EBOLD} to enter logarithms that are not base \(e\) nor base \(10\). For example, type ${BBOLD}log(3,5)${EBOLD} to enter \(\log_3(5)\). Use ${BBOLD}ln(15)${EBOLD} for \(\ln(15)\), and ${BBOLD}log10(20)${EBOLD} for \(\log(20)\). \{AnswerFormatHelp("points", "Click here for help entering points as an answer.")\} + ${BBOLD}Help:${EBOLD} Use ${BBOLD}log(b,x)${EBOLD} to enter logarithms that are not base \(e\) nor base \(10\). For example, type ${BBOLD}log(3,5)${EBOLD} to enter \(\log_3(5)\). Use ${BBOLD}ln(15)${EBOLD} for \(\ln(15)\), and ${BBOLD}log10(20)${EBOLD} for \(\log(20)\). \{helpLink("points", "Click here for help entering points as an answer.")\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/inverse_functions_and_relations/determine_intercepts_03.pg b/Contrib/Mizzou/Algebra/inverse_functions_and_relations/determine_intercepts_03.pg index 73d88da404..44d873e1fd 100644 --- a/Contrib/Mizzou/Algebra/inverse_functions_and_relations/determine_intercepts_03.pg +++ b/Contrib/Mizzou/Algebra/inverse_functions_and_relations/determine_intercepts_03.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "contextFraction.pl", @@ -30,7 +30,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Fraction-NoDecimals")->texStrings; $base = list_random(exp(1),10,2,3,4,5,6,7,8,9); @@ -123,7 +123,7 @@ parserFunction("log(b,x)" => "ln(x)/ln(b)"); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -136,7 +136,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS( Compute($xint)->cmp(tolType=>'absolute', tolerance=>0.0000000001) ); if ($yintcoord != "n") { @@ -153,19 +153,19 @@ if ($yintcoord != "n") { if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR - ${BBOLD}Answer:${EBOLD} + ${BBOLD}Answer:${EBOLD} $dispxint $dispyint $PAR END_TEXT } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} Use ${BBOLD}log(b,x)${EBOLD} to enter logarithms that are not base \(e\) nor base \(10\). For example, type ${BBOLD}log(3,5)${EBOLD} to enter \(\log_3(5)\). Use ${BBOLD}ln(15)${EBOLD} for \(\ln(15)\), and ${BBOLD}log10(20)${EBOLD} for \(\log(20)\). \{AnswerFormatHelp("points", "Click here for help entering points as an answer.")\} + ${BBOLD}Help:${EBOLD} Use ${BBOLD}log(b,x)${EBOLD} to enter logarithms that are not base \(e\) nor base \(10\). For example, type ${BBOLD}log(3,5)${EBOLD} to enter \(\log_3(5)\). Use ${BBOLD}ln(15)${EBOLD} for \(\ln(15)\), and ${BBOLD}log10(20)${EBOLD} for \(\log(20)\). \{helpLink("points", "Click here for help entering points as an answer.")\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/inverse_functions_and_relations/determine_pt_on_graph_01.pg b/Contrib/Mizzou/Algebra/inverse_functions_and_relations/determine_pt_on_graph_01.pg index 69cbd63bc0..dbb7ca4d53 100644 --- a/Contrib/Mizzou/Algebra/inverse_functions_and_relations/determine_pt_on_graph_01.pg +++ b/Contrib/Mizzou/Algebra/inverse_functions_and_relations/determine_pt_on_graph_01.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -28,13 +28,13 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $a = random(-15,15); do {$b = random(-15,15)} until ($b != $a); -$choice = random(0,1,1); +$choice = random(0,1,1); if ($choice == 0) { Context("Point"); $ans = Compute("($b,$a)"); @@ -45,7 +45,7 @@ if ($choice == 0) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; if ($choice == 0) { @@ -62,7 +62,7 @@ if ($choice == 0) { ########################################################################### -# check the answer +# check the answer ########################################################################### if ($choice == 0) { ANS(Compute($ans)->cmp()); @@ -78,7 +78,7 @@ if ($choice == 0) { if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR - ${BBOLD}Answer:${EBOLD} + ${BBOLD}Answer:${EBOLD} END_TEXT if ($choice == 0) { BEGIN_TEXT @@ -100,13 +100,13 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("points", "Click here for help entering points.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("points", "Click here for help entering points.")\} $BR END_TEXT } } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/inverse_functions_and_relations/find_dom_range_inv_graph_01.pg b/Contrib/Mizzou/Algebra/inverse_functions_and_relations/find_dom_range_inv_graph_01.pg index 0bc1b9d289..506add92c0 100644 --- a/Contrib/Mizzou/Algebra/inverse_functions_and_relations/find_dom_range_inv_graph_01.pg +++ b/Contrib/Mizzou/Algebra/inverse_functions_and_relations/find_dom_range_inv_graph_01.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -30,7 +30,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Interval"); $x[0] = random(-8,-3); @@ -124,15 +124,15 @@ $fig = image(insertGraph($graph), width=>$gsize, height=>$gsize, tex_size=>250 ) ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ $fig \} -$ECENTER +$ECENTER $PAR The graph of \(f(x)\) is given above. Determine the domain and range of \(f^{-1}(x)\) using interval notation. $PAR @@ -143,7 +143,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($domain)->cmp()); ANS(Compute($range)->cmp()); @@ -161,12 +161,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals.")\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/inverse_functions_and_relations/find_inv_fun_formula_09.pg b/Contrib/Mizzou/Algebra/inverse_functions_and_relations/find_inv_fun_formula_09.pg index 05fff2f66d..a1af845d3b 100644 --- a/Contrib/Mizzou/Algebra/inverse_functions_and_relations/find_inv_fun_formula_09.pg +++ b/Contrib/Mizzou/Algebra/inverse_functions_and_relations/find_inv_fun_formula_09.pg @@ -16,7 +16,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "contextFraction.pl", @@ -96,7 +96,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} Use ${BBOLD}log(b,x)${EBOLD} to enter logarithms that are not base \(e\) nor base \(10\). For example, type ${BBOLD}log(3,5)${EBOLD} to enter \(\log_3(5)\). Use ${BBOLD}ln(15)${EBOLD} for \(\ln(15)\), and ${BBOLD}log10(20)${EBOLD} for \(\log(20)\). \{AnswerFormatHelp("formulas", "Click here for help entering formulas as an answer.")\} + ${BBOLD}Help:${EBOLD} Use ${BBOLD}log(b,x)${EBOLD} to enter logarithms that are not base \(e\) nor base \(10\). For example, type ${BBOLD}log(3,5)${EBOLD} to enter \(\log_3(5)\). Use ${BBOLD}ln(15)${EBOLD} for \(\ln(15)\), and ${BBOLD}log10(20)${EBOLD} for \(\log(20)\). \{helpLink("formulas", "Click here for help entering formulas as an answer.")\} $BR END_TEXT } diff --git a/Contrib/Mizzou/Algebra/inverse_functions_and_relations/find_inv_fun_formula_10.pg b/Contrib/Mizzou/Algebra/inverse_functions_and_relations/find_inv_fun_formula_10.pg index a0c988c5a9..93a7ec06f1 100644 --- a/Contrib/Mizzou/Algebra/inverse_functions_and_relations/find_inv_fun_formula_10.pg +++ b/Contrib/Mizzou/Algebra/inverse_functions_and_relations/find_inv_fun_formula_10.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "contextFraction.pl", @@ -30,7 +30,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Fraction-NoDecimals")->texStrings; $base = list_random(exp(1),10,2,3,4,5,6,7,8,9); @@ -83,7 +83,7 @@ parserFunction("log(b,x)" => "ln(x)/ln(b)"); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -94,7 +94,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS( Compute($ans)->cmp() ); @@ -106,19 +106,19 @@ ANS( Compute($ans)->cmp() ); if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR - ${BBOLD}Answer:${EBOLD} + ${BBOLD}Answer:${EBOLD} \($dispinverse\) $PAR END_TEXT } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} Use ${BBOLD}log(b,x)${EBOLD} to enter logarithms that are not base \(e\) nor base \(10\). For example, type ${BBOLD}log(3,5)${EBOLD} to enter \(\log_3(5)\). Use ${BBOLD}ln(15)${EBOLD} for \(\ln(15)\), and ${BBOLD}log10(20)${EBOLD} for \(\log(20)\). \{AnswerFormatHelp("formulas", "Click here for help entering formulas as an answer.")\} + ${BBOLD}Help:${EBOLD} Use ${BBOLD}log(b,x)${EBOLD} to enter logarithms that are not base \(e\) nor base \(10\). For example, type ${BBOLD}log(3,5)${EBOLD} to enter \(\log_3(5)\). Use ${BBOLD}ln(15)${EBOLD} for \(\ln(15)\), and ${BBOLD}log10(20)${EBOLD} for \(\log(20)\). \{helpLink("formulas", "Click here for help entering formulas as an answer.")\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/inverse_functions_and_relations/find_inv_fun_formula_11.pg b/Contrib/Mizzou/Algebra/inverse_functions_and_relations/find_inv_fun_formula_11.pg index c97f8790a7..93a7ec06f1 100644 --- a/Contrib/Mizzou/Algebra/inverse_functions_and_relations/find_inv_fun_formula_11.pg +++ b/Contrib/Mizzou/Algebra/inverse_functions_and_relations/find_inv_fun_formula_11.pg @@ -16,7 +16,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "contextFraction.pl", @@ -113,7 +113,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} Use ${BBOLD}log(b,x)${EBOLD} to enter logarithms that are not base \(e\) nor base \(10\). For example, type ${BBOLD}log(3,5)${EBOLD} to enter \(\log_3(5)\). Use ${BBOLD}ln(15)${EBOLD} for \(\ln(15)\), and ${BBOLD}log10(20)${EBOLD} for \(\log(20)\). \{AnswerFormatHelp("formulas", "Click here for help entering formulas as an answer.")\} + ${BBOLD}Help:${EBOLD} Use ${BBOLD}log(b,x)${EBOLD} to enter logarithms that are not base \(e\) nor base \(10\). For example, type ${BBOLD}log(3,5)${EBOLD} to enter \(\log_3(5)\). Use ${BBOLD}ln(15)${EBOLD} for \(\ln(15)\), and ${BBOLD}log10(20)${EBOLD} for \(\log(20)\). \{helpLink("formulas", "Click here for help entering formulas as an answer.")\} $BR END_TEXT } diff --git a/Contrib/Mizzou/Algebra/inverse_functions_and_relations/find_inv_fun_formula_base_e_10.pg b/Contrib/Mizzou/Algebra/inverse_functions_and_relations/find_inv_fun_formula_base_e_10.pg index d6cfae6347..0e906b5daa 100644 --- a/Contrib/Mizzou/Algebra/inverse_functions_and_relations/find_inv_fun_formula_base_e_10.pg +++ b/Contrib/Mizzou/Algebra/inverse_functions_and_relations/find_inv_fun_formula_base_e_10.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "contextFraction.pl", @@ -30,7 +30,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Fraction-NoDecimals")->texStrings; $base = exp(1); @@ -83,7 +83,7 @@ parserFunction("log(b,x)" => "ln(x)/ln(b)"); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -94,7 +94,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS( Compute($ans)->cmp() ); @@ -106,19 +106,19 @@ ANS( Compute($ans)->cmp() ); if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR - ${BBOLD}Answer:${EBOLD} + ${BBOLD}Answer:${EBOLD} \($dispinverse\) $PAR END_TEXT } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} Use ${BBOLD}log(b,x)${EBOLD} to enter logarithms that are not base \(e\) nor base \(10\). For example, type ${BBOLD}log(3,5)${EBOLD} to enter \(\log_3(5)\). Use ${BBOLD}ln(15)${EBOLD} for \(\ln(15)\), and ${BBOLD}log10(20)${EBOLD} for \(\log(20)\). \{AnswerFormatHelp("formulas", "Click here for help entering formulas as an answer.")\} + ${BBOLD}Help:${EBOLD} Use ${BBOLD}log(b,x)${EBOLD} to enter logarithms that are not base \(e\) nor base \(10\). For example, type ${BBOLD}log(3,5)${EBOLD} to enter \(\log_3(5)\). Use ${BBOLD}ln(15)${EBOLD} for \(\ln(15)\), and ${BBOLD}log10(20)${EBOLD} for \(\log(20)\). \{helpLink("formulas", "Click here for help entering formulas as an answer.")\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/linear_functions_apps/cost_function_01.pg b/Contrib/Mizzou/Algebra/linear_functions_apps/cost_function_01.pg index 338a71197e..65d45a80ca 100644 --- a/Contrib/Mizzou/Algebra/linear_functions_apps/cost_function_01.pg +++ b/Contrib/Mizzou/Algebra/linear_functions_apps/cost_function_01.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -28,7 +28,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Interval"); Context()->variables->are(t => 'Real'); @@ -44,11 +44,11 @@ $texEqn = "C(t) = $mocost t + $install"; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT -A cable company charges a $$install installation fee and $$mocost per month of service. +A cable company charges a $$install installation fee and $$mocost per month of service. $PAR (a) Write a function for \(C(t)\) that represents the total cost of \(t\) months of cable service. $PAR @@ -69,7 +69,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($eqn)->cmp()); ANS(Compute($cost)->cmp()); @@ -84,7 +84,7 @@ ANS(Compute($range)->cmp()); if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR - ${BBOLD}Answer:${EBOLD} + ${BBOLD}Answer:${EBOLD} $PAR (a) \($texEqn\) $PAR @@ -98,12 +98,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("formulas", "Click here for help entering formulas")\} or \{AnswerFormatHelp("intervals", "click here for help entering intervals.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("formulas", "Click here for help entering formulas")\} or \{helpLink("intervals", "click here for help entering intervals.")\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/linear_functions_apps/cost_function_01_a.pg b/Contrib/Mizzou/Algebra/linear_functions_apps/cost_function_01_a.pg index 338a71197e..65d45a80ca 100644 --- a/Contrib/Mizzou/Algebra/linear_functions_apps/cost_function_01_a.pg +++ b/Contrib/Mizzou/Algebra/linear_functions_apps/cost_function_01_a.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -28,7 +28,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Interval"); Context()->variables->are(t => 'Real'); @@ -44,11 +44,11 @@ $texEqn = "C(t) = $mocost t + $install"; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT -A cable company charges a $$install installation fee and $$mocost per month of service. +A cable company charges a $$install installation fee and $$mocost per month of service. $PAR (a) Write a function for \(C(t)\) that represents the total cost of \(t\) months of cable service. $PAR @@ -69,7 +69,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($eqn)->cmp()); ANS(Compute($cost)->cmp()); @@ -84,7 +84,7 @@ ANS(Compute($range)->cmp()); if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR - ${BBOLD}Answer:${EBOLD} + ${BBOLD}Answer:${EBOLD} $PAR (a) \($texEqn\) $PAR @@ -98,12 +98,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("formulas", "Click here for help entering formulas")\} or \{AnswerFormatHelp("intervals", "click here for help entering intervals.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("formulas", "Click here for help entering formulas")\} or \{helpLink("intervals", "click here for help entering intervals.")\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/linear_functions_apps/cost_function__01.pg b/Contrib/Mizzou/Algebra/linear_functions_apps/cost_function__01.pg index 619afb8c84..02933d72db 100644 --- a/Contrib/Mizzou/Algebra/linear_functions_apps/cost_function__01.pg +++ b/Contrib/Mizzou/Algebra/linear_functions_apps/cost_function__01.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -28,7 +28,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Interval"); Context()->variables->are(t => 'Real'); @@ -44,11 +44,11 @@ $texEqn = "C(t) = $mocost t + $install"; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT -A cable company charges a $$install installation fee and $$mocost per month of service. +A cable company charges a $$install installation fee and $$mocost per month of service. $PAR (a) Write a function for \(C(t)\) that represents the total cost of \(t\) months of cable service. $PAR @@ -63,7 +63,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($eqn)->cmp()); ANS(Compute($cost)->cmp()); @@ -77,7 +77,7 @@ ANS(Compute($cost)->cmp()); if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR - ${BBOLD}Answer:${EBOLD} + ${BBOLD}Answer:${EBOLD} $PAR (a) \($texEqn\) $PAR @@ -87,12 +87,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("formulas", "Click here for help entering formulas")\} or \{AnswerFormatHelp("intervals", "click here for help entering intervals.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("formulas", "Click here for help entering formulas")\} or \{helpLink("intervals", "click here for help entering intervals.")\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/linear_functions_eqns_of_lines/find_eqn_graph_01.pg b/Contrib/Mizzou/Algebra/linear_functions_eqns_of_lines/find_eqn_graph_01.pg index a9f0fac874..dd5e5ccbf1 100644 --- a/Contrib/Mizzou/Algebra/linear_functions_eqns_of_lines/find_eqn_graph_01.pg +++ b/Contrib/Mizzou/Algebra/linear_functions_eqns_of_lines/find_eqn_graph_01.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed quadratic function and asks for the +# Gives the graph of a transformed quadratic function and asks for the # correct equation which has this graph. # The graph always has horizontal shift and vertical shrink. # The graph has nothing else. @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -78,7 +78,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.8,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.8,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.8,'10', 'black', 'bottom', 'right')); @@ -132,7 +132,7 @@ if ($y2 != 0) { } ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -141,15 +141,15 @@ Determine the equation of the line given in the graph below. $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>250 ); \} -$ECENTER +$ECENTER $BR -Equation: \{ans_rule\} \{ AnswerFormatHelp("equations") \}, +Equation: \{ans_rule\} \{ helpLink("equations") \}, END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp(studentsMustReduceFractions=>1)); @@ -171,7 +171,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/linear_functions_eqns_of_lines/find_eqn_two_points_01.pg b/Contrib/Mizzou/Algebra/linear_functions_eqns_of_lines/find_eqn_two_points_01.pg index 2887235f53..6351cf4438 100644 --- a/Contrib/Mizzou/Algebra/linear_functions_eqns_of_lines/find_eqn_two_points_01.pg +++ b/Contrib/Mizzou/Algebra/linear_functions_eqns_of_lines/find_eqn_two_points_01.pg @@ -4,9 +4,9 @@ ## KEYWORDS('lines', 'slope') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Basic Algebra') -## DBchapter('Lines') +## DBchapter('Lines') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -25,7 +25,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGchoicemacros.pl", "parserAssignment.pl", @@ -82,7 +82,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/Algebra/linear_functions_eqns_of_lines/find_eqn_two_points_02.pg b/Contrib/Mizzou/Algebra/linear_functions_eqns_of_lines/find_eqn_two_points_02.pg index 3a34f1b7df..7c9f3fd87a 100644 --- a/Contrib/Mizzou/Algebra/linear_functions_eqns_of_lines/find_eqn_two_points_02.pg +++ b/Contrib/Mizzou/Algebra/linear_functions_eqns_of_lines/find_eqn_two_points_02.pg @@ -4,9 +4,9 @@ ## KEYWORDS('lines', 'slope') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Basic Algebra') -## DBchapter('Lines') +## DBchapter('Lines') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -25,7 +25,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGchoicemacros.pl", "parserAssignment.pl", @@ -73,7 +73,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/Algebra/linear_functions_eqns_of_lines/find_eqn_two_points_03.pg b/Contrib/Mizzou/Algebra/linear_functions_eqns_of_lines/find_eqn_two_points_03.pg index d3ba3cce00..0a4686c301 100644 --- a/Contrib/Mizzou/Algebra/linear_functions_eqns_of_lines/find_eqn_two_points_03.pg +++ b/Contrib/Mizzou/Algebra/linear_functions_eqns_of_lines/find_eqn_two_points_03.pg @@ -4,9 +4,9 @@ ## KEYWORDS('lines', 'slope') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Basic Algebra') -## DBchapter('Lines') +## DBchapter('Lines') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -25,7 +25,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGchoicemacros.pl", "parserAssignment.pl", @@ -76,7 +76,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/Algebra/linear_functions_eqns_of_lines/find_eqn_two_points_04.pg b/Contrib/Mizzou/Algebra/linear_functions_eqns_of_lines/find_eqn_two_points_04.pg index 4d07045bf0..ba561bbcf2 100644 --- a/Contrib/Mizzou/Algebra/linear_functions_eqns_of_lines/find_eqn_two_points_04.pg +++ b/Contrib/Mizzou/Algebra/linear_functions_eqns_of_lines/find_eqn_two_points_04.pg @@ -4,9 +4,9 @@ ## KEYWORDS('lines', 'slope') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Basic Algebra') -## DBchapter('Lines') +## DBchapter('Lines') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -25,7 +25,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGchoicemacros.pl", "parserAssignment.pl", @@ -75,7 +75,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/Algebra/linear_functions_eqns_of_lines/parellel_or_perp_find_eqn_01.pg b/Contrib/Mizzou/Algebra/linear_functions_eqns_of_lines/parellel_or_perp_find_eqn_01.pg index e3f799d37b..630be0cd41 100644 --- a/Contrib/Mizzou/Algebra/linear_functions_eqns_of_lines/parellel_or_perp_find_eqn_01.pg +++ b/Contrib/Mizzou/Algebra/linear_functions_eqns_of_lines/parellel_or_perp_find_eqn_01.pg @@ -4,9 +4,9 @@ ## KEYWORDS('lines', 'slope') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Basic Algebra') -## DBchapter('Lines') +## DBchapter('Lines') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -25,7 +25,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGchoicemacros.pl", "parserAssignment.pl", @@ -90,7 +90,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/Algebra/linear_functions_eqns_of_lines/parellel_or_perp_find_eqn_02.pg b/Contrib/Mizzou/Algebra/linear_functions_eqns_of_lines/parellel_or_perp_find_eqn_02.pg index 3e78ae1e71..51a1301176 100644 --- a/Contrib/Mizzou/Algebra/linear_functions_eqns_of_lines/parellel_or_perp_find_eqn_02.pg +++ b/Contrib/Mizzou/Algebra/linear_functions_eqns_of_lines/parellel_or_perp_find_eqn_02.pg @@ -4,9 +4,9 @@ ## KEYWORDS('lines', 'slope') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Basic Algebra') -## DBchapter('Lines') +## DBchapter('Lines') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -25,7 +25,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGchoicemacros.pl", "parserAssignment.pl", @@ -64,7 +64,7 @@ $line = Formula("y = $m x + $b "); Context()->texStrings; BEGIN_TEXT -Find the equation of the line though the point \( ($x1, $y1) \) and perpendicular to the line \(y = $m0 x + $b1 \). Write your answer in the form \(y = mx + b\). +Find the equation of the line though the point \( ($x1, $y1) \) and perpendicular to the line \(y = $m0 x + $b1 \). Write your answer in the form \(y = mx + b\). $PAR \{ ans_rule(20) \} END_TEXT @@ -85,7 +85,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/Algebra/linear_functions_eqns_of_lines/parellel_or_perp_find_eqn_03.pg b/Contrib/Mizzou/Algebra/linear_functions_eqns_of_lines/parellel_or_perp_find_eqn_03.pg index 0a8d03d7bb..9189727875 100644 --- a/Contrib/Mizzou/Algebra/linear_functions_eqns_of_lines/parellel_or_perp_find_eqn_03.pg +++ b/Contrib/Mizzou/Algebra/linear_functions_eqns_of_lines/parellel_or_perp_find_eqn_03.pg @@ -4,9 +4,9 @@ ## KEYWORDS('lines', 'slope') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Basic Algebra') -## DBchapter('Lines') +## DBchapter('Lines') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -25,7 +25,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGchoicemacros.pl", "parserAssignment.pl", @@ -84,7 +84,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/Algebra/linear_functions_eqns_of_lines/parellel_or_perp_find_eqn_04.pg b/Contrib/Mizzou/Algebra/linear_functions_eqns_of_lines/parellel_or_perp_find_eqn_04.pg index 2a31660177..11449c3ccc 100644 --- a/Contrib/Mizzou/Algebra/linear_functions_eqns_of_lines/parellel_or_perp_find_eqn_04.pg +++ b/Contrib/Mizzou/Algebra/linear_functions_eqns_of_lines/parellel_or_perp_find_eqn_04.pg @@ -4,9 +4,9 @@ ## KEYWORDS('lines', 'slope') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Basic Algebra') -## DBchapter('Lines') +## DBchapter('Lines') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -25,7 +25,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGchoicemacros.pl", "parserAssignment.pl", @@ -93,7 +93,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/Algebra/linear_functions_eqns_of_lines/parellel_or_perp_find_eqn_05.pg b/Contrib/Mizzou/Algebra/linear_functions_eqns_of_lines/parellel_or_perp_find_eqn_05.pg index a41310f657..23159d287f 100644 --- a/Contrib/Mizzou/Algebra/linear_functions_eqns_of_lines/parellel_or_perp_find_eqn_05.pg +++ b/Contrib/Mizzou/Algebra/linear_functions_eqns_of_lines/parellel_or_perp_find_eqn_05.pg @@ -4,9 +4,9 @@ ## KEYWORDS('lines', 'slope') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Basic Algebra') -## DBchapter('Lines') +## DBchapter('Lines') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -25,7 +25,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGchoicemacros.pl", "parserAssignment.pl", @@ -89,7 +89,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/Algebra/linear_functions_eqns_of_lines/parellel_or_perp_find_eqn_06.pg b/Contrib/Mizzou/Algebra/linear_functions_eqns_of_lines/parellel_or_perp_find_eqn_06.pg index 75ff65054d..f797a941a0 100644 --- a/Contrib/Mizzou/Algebra/linear_functions_eqns_of_lines/parellel_or_perp_find_eqn_06.pg +++ b/Contrib/Mizzou/Algebra/linear_functions_eqns_of_lines/parellel_or_perp_find_eqn_06.pg @@ -4,9 +4,9 @@ ## KEYWORDS('lines', 'slope') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Basic Algebra') -## DBchapter('Lines') +## DBchapter('Lines') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -25,7 +25,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGchoicemacros.pl", "parserAssignment.pl", @@ -98,7 +98,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/Algebra/linear_functions_eqns_of_lines/point_and_slope_01.pg b/Contrib/Mizzou/Algebra/linear_functions_eqns_of_lines/point_and_slope_01.pg index 3ceafcd689..b6b48e21f7 100644 --- a/Contrib/Mizzou/Algebra/linear_functions_eqns_of_lines/point_and_slope_01.pg +++ b/Contrib/Mizzou/Algebra/linear_functions_eqns_of_lines/point_and_slope_01.pg @@ -4,9 +4,9 @@ ## KEYWORDS('lines', 'slope') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Basic Algebra') -## DBchapter('Lines') +## DBchapter('Lines') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -25,7 +25,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGchoicemacros.pl", "parserAssignment.pl", @@ -76,7 +76,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/Algebra/linear_functions_slope/find_slope_given_line_01.pg b/Contrib/Mizzou/Algebra/linear_functions_slope/find_slope_given_line_01.pg index 8fa454b887..95844c9d36 100644 --- a/Contrib/Mizzou/Algebra/linear_functions_slope/find_slope_given_line_01.pg +++ b/Contrib/Mizzou/Algebra/linear_functions_slope/find_slope_given_line_01.pg @@ -4,9 +4,9 @@ ## KEYWORDS('lines', 'slope') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Basic Algebra') -## DBchapter('Lines') +## DBchapter('Lines') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -25,7 +25,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGchoicemacros.pl", "PGcourse.pl" @@ -77,7 +77,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/Algebra/linear_functions_slope/find_slope_two_points_01.pg b/Contrib/Mizzou/Algebra/linear_functions_slope/find_slope_two_points_01.pg index 441d8076c3..134c863277 100644 --- a/Contrib/Mizzou/Algebra/linear_functions_slope/find_slope_two_points_01.pg +++ b/Contrib/Mizzou/Algebra/linear_functions_slope/find_slope_two_points_01.pg @@ -4,9 +4,9 @@ ## KEYWORDS('lines', 'slope') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Basic Algebra') -## DBchapter('Lines') +## DBchapter('Lines') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -25,7 +25,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGchoicemacros.pl", "PGcourse.pl" @@ -95,7 +95,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('horizontal line'); diff --git a/Contrib/Mizzou/Algebra/linear_functions_slope/find_slope_two_points_02.pg b/Contrib/Mizzou/Algebra/linear_functions_slope/find_slope_two_points_02.pg index 10d0726a72..e0301b9e81 100644 --- a/Contrib/Mizzou/Algebra/linear_functions_slope/find_slope_two_points_02.pg +++ b/Contrib/Mizzou/Algebra/linear_functions_slope/find_slope_two_points_02.pg @@ -4,9 +4,9 @@ ## KEYWORDS('lines', 'slope') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Basic Algebra') -## DBchapter('Lines') +## DBchapter('Lines') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -25,7 +25,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGchoicemacros.pl", "PGcourse.pl" @@ -96,7 +96,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/Algebra/linear_functions_slope/find_slope_two_points_03.pg b/Contrib/Mizzou/Algebra/linear_functions_slope/find_slope_two_points_03.pg index adb2596b58..b6e2ba0a15 100644 --- a/Contrib/Mizzou/Algebra/linear_functions_slope/find_slope_two_points_03.pg +++ b/Contrib/Mizzou/Algebra/linear_functions_slope/find_slope_two_points_03.pg @@ -4,9 +4,9 @@ ## KEYWORDS('lines', 'slope') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Basic Algebra') -## DBchapter('Lines') +## DBchapter('Lines') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -25,7 +25,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGchoicemacros.pl", "PGcourse.pl" @@ -89,7 +89,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('horizontal OR vertical line'); diff --git a/Contrib/Mizzou/Algebra/linear_functions_slope/find_slope_two_points_04.pg b/Contrib/Mizzou/Algebra/linear_functions_slope/find_slope_two_points_04.pg index 13d1531565..ea434b8bfe 100644 --- a/Contrib/Mizzou/Algebra/linear_functions_slope/find_slope_two_points_04.pg +++ b/Contrib/Mizzou/Algebra/linear_functions_slope/find_slope_two_points_04.pg @@ -4,9 +4,9 @@ ## KEYWORDS('lines', 'slope') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Basic Algebra') -## DBchapter('Lines') +## DBchapter('Lines') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -25,7 +25,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGchoicemacros.pl", "PGcourse.pl" @@ -64,8 +64,8 @@ Context()->strings->add("undefined"); Context()->texStrings; BEGIN_TEXT Find the slope of the line containing the points -\(\left( $x1 , $y1 \right)\) -and +\(\left( $x1 , $y1 \right)\) +and \( \left( $x2 , $y2\right)\) if it exists or write ${BBOLD}undefined${EBOLD} if the slope is undefined. You must reduce your answer completely. $PAR \(m = \) \{ans_rule(10)\} @@ -87,7 +87,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('fraction points'); diff --git a/Contrib/Mizzou/Algebra/linear_functions_slope/find_slope_two_points_05.pg b/Contrib/Mizzou/Algebra/linear_functions_slope/find_slope_two_points_05.pg index 0ab2211b54..c4f7848e8d 100644 --- a/Contrib/Mizzou/Algebra/linear_functions_slope/find_slope_two_points_05.pg +++ b/Contrib/Mizzou/Algebra/linear_functions_slope/find_slope_two_points_05.pg @@ -4,9 +4,9 @@ ## KEYWORDS('lines', 'slope') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Basic Algebra') -## DBchapter('Lines') +## DBchapter('Lines') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -25,7 +25,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGchoicemacros.pl", "PGcourse.pl" @@ -77,7 +77,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('arbitrary integer coordinate points, no vertical line, but horizontal line is possible but unlikely'); diff --git a/Contrib/Mizzou/Algebra/linear_functions_slope/find_slope_two_points_06.pg b/Contrib/Mizzou/Algebra/linear_functions_slope/find_slope_two_points_06.pg index 0cffd36e35..3c97ee1c3c 100644 --- a/Contrib/Mizzou/Algebra/linear_functions_slope/find_slope_two_points_06.pg +++ b/Contrib/Mizzou/Algebra/linear_functions_slope/find_slope_two_points_06.pg @@ -4,9 +4,9 @@ ## KEYWORDS('lines', 'slope') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Basic Algebra') -## DBchapter('Lines') +## DBchapter('Lines') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -25,7 +25,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGchoicemacros.pl", "PGcourse.pl" @@ -70,7 +70,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('function notation points, horizontal line is possible but unlikely'); diff --git a/Contrib/Mizzou/Algebra/log_eqns_change_of_base/cob_03.pg b/Contrib/Mizzou/Algebra/log_eqns_change_of_base/cob_03.pg index 22c593d293..d4eed5f2d9 100644 --- a/Contrib/Mizzou/Algebra/log_eqns_change_of_base/cob_03.pg +++ b/Contrib/Mizzou/Algebra/log_eqns_change_of_base/cob_03.pg @@ -4,9 +4,9 @@ ## KEYWORDS('logarithm', 'laws of logarithms') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Exponential and Logarithmic Functions') -## DBchapter('Laws of Logarithms') +## DBchapter('Laws of Logarithms') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -27,7 +27,7 @@ loadMacros( "PGchoicemacros.pl", "PGunion.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -81,7 +81,7 @@ Context()->texStrings; BEGIN_TEXT Suppose that $BR -\[ \log_{$b} ($a1) = $var1 ~ \text{and} ~ \log_{$b} ($a2) = $var2.\] +\[ \log_{$b} ($a1) = $var1 ~ \text{and} ~ \log_{$b} ($a2) = $var2.\] $BR Then, write the following quantity in terms of \($var1\) and \($var2\). @@ -106,7 +106,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/Algebra/log_eqns_change_of_base/cob_04.pg b/Contrib/Mizzou/Algebra/log_eqns_change_of_base/cob_04.pg index 6ee617104a..166894551e 100644 --- a/Contrib/Mizzou/Algebra/log_eqns_change_of_base/cob_04.pg +++ b/Contrib/Mizzou/Algebra/log_eqns_change_of_base/cob_04.pg @@ -4,9 +4,9 @@ ## KEYWORDS('logarithm', 'laws of logarithms') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Exponential and Logarithmic Functions') -## DBchapter('Laws of Logarithms') +## DBchapter('Laws of Logarithms') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -27,7 +27,7 @@ loadMacros( "PGchoicemacros.pl", "PGunion.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -72,7 +72,7 @@ do {$b = random(2,15,1)} until ($b != 10); Context()->texStrings; BEGIN_TEXT -Using a change of base formula, one can write +Using a change of base formula, one can write $PAR \[ \frac{\log_{$b} ($a1)} {\log_{$b}($a2)} = \log_{m}(p), @@ -101,7 +101,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/Algebra/log_eqns_properties/condense_01.pg b/Contrib/Mizzou/Algebra/log_eqns_properties/condense_01.pg index 0452d3b86b..9fa4d5b318 100644 --- a/Contrib/Mizzou/Algebra/log_eqns_properties/condense_01.pg +++ b/Contrib/Mizzou/Algebra/log_eqns_properties/condense_01.pg @@ -4,9 +4,9 @@ ## KEYWORDS('logarithm', 'laws of logarithms') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Exponential and Logarithmic Functions') -## DBchapter('Laws of Logarithms') +## DBchapter('Laws of Logarithms') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -25,7 +25,7 @@ loadMacros( "PGstandard.pl", "PGchoicemacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "contextFraction.pl", "PGcourse.pl" @@ -39,7 +39,7 @@ PeriodicRerandomization("3"); $b = random(2,10); $m = random(1,3); $n = random(1,4-$m); -$case = random(0,1,1); +$case = random(0,1,1); if ($case == 0) { do { $a = random(2,9); @@ -106,7 +106,7 @@ $showPartialCorrectAnswers = 0; if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR - ${BBOLD}Answer:${EBOLD} + ${BBOLD}Answer:${EBOLD} \( $ans\) $PAR END_TEXT @@ -116,7 +116,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('MathObject version'); diff --git a/Contrib/Mizzou/Algebra/log_eqns_properties/determine_domain_01.pg b/Contrib/Mizzou/Algebra/log_eqns_properties/determine_domain_01.pg index 9e547e14e6..842cda6713 100644 --- a/Contrib/Mizzou/Algebra/log_eqns_properties/determine_domain_01.pg +++ b/Contrib/Mizzou/Algebra/log_eqns_properties/determine_domain_01.pg @@ -4,9 +4,9 @@ ## KEYWORDS('logarithm', 'laws of logarithms') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Exponential and Logarithmic Functions') -## DBchapter('Laws of Logarithms') +## DBchapter('Laws of Logarithms') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -26,7 +26,7 @@ loadMacros( "PGchoicemacros.pl", "PGunion.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -51,7 +51,7 @@ $ans = Compute(" ($a,inf)"); Context()->texStrings; BEGIN_TEXT -Find the domain of the function \(f(x) = $f\). Write your answer using \{AnswerFormatHelp("interval", "interval notation")\}. +Find the domain of the function \(f(x) = $f\). Write your answer using \{helpLink("interval", "interval notation")\}. $PAR $SPACE The domain of \(f(x)\) is \{ans_rule(20)\}. @@ -70,7 +70,7 @@ ANS( $ans->cmp() ); if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR - ${BBOLD}Answer:${EBOLD} + ${BBOLD}Answer:${EBOLD} \($ans\) $PAR END_TEXT @@ -80,7 +80,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('MathObject version'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/log_eqns_properties/determine_domain_02.pg b/Contrib/Mizzou/Algebra/log_eqns_properties/determine_domain_02.pg index b0ce477e7b..3906f676ab 100644 --- a/Contrib/Mizzou/Algebra/log_eqns_properties/determine_domain_02.pg +++ b/Contrib/Mizzou/Algebra/log_eqns_properties/determine_domain_02.pg @@ -4,9 +4,9 @@ ## KEYWORDS('logarithm', 'laws of logarithms') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Exponential and Logarithmic Functions') -## DBchapter('Laws of Logarithms') +## DBchapter('Laws of Logarithms') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -26,7 +26,7 @@ loadMacros( "PGchoicemacros.pl", "PGunion.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "contextFraction.pl", @@ -67,7 +67,7 @@ $dans = "\(\left($endpt,\infty\right)\)"; Context()->texStrings; BEGIN_TEXT -Find the domain of the function \(f(x) = $f\). Write your answer using \{AnswerFormatHelp("interval", "interval notation")\}. +Find the domain of the function \(f(x) = $f\). Write your answer using \{helpLink("interval", "interval notation")\}. $PAR $SPACE The domain of \(f(x)\) is \{ans_rule(20)\}. @@ -96,7 +96,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('MathObject version'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/log_eqns_properties/expand_01.pg b/Contrib/Mizzou/Algebra/log_eqns_properties/expand_01.pg index ee02710551..e08c88e662 100644 --- a/Contrib/Mizzou/Algebra/log_eqns_properties/expand_01.pg +++ b/Contrib/Mizzou/Algebra/log_eqns_properties/expand_01.pg @@ -4,9 +4,9 @@ ## KEYWORDS('logarithm', 'laws of logarithms') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Exponential and Logarithmic Functions') -## DBchapter('Laws of Logarithms') +## DBchapter('Laws of Logarithms') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -27,7 +27,7 @@ loadMacros( "PGchoicemacros.pl", "PGunion.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -94,7 +94,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/Algebra/log_eqns_properties/expand_02.pg b/Contrib/Mizzou/Algebra/log_eqns_properties/expand_02.pg index 1e6e43ea54..066c786d6b 100644 --- a/Contrib/Mizzou/Algebra/log_eqns_properties/expand_02.pg +++ b/Contrib/Mizzou/Algebra/log_eqns_properties/expand_02.pg @@ -4,9 +4,9 @@ ## KEYWORDS('logarithm', 'laws of logarithms') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Exponential and Logarithmic Functions') -## DBchapter('Laws of Logarithms') +## DBchapter('Laws of Logarithms') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -26,7 +26,7 @@ loadMacros( "PGchoicemacros.pl", "PGunion.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -96,7 +96,7 @@ $showPartialCorrectAnswers = 1; if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR - ${BBOLD}Answer:${EBOLD} + ${BBOLD}Answer:${EBOLD} \($k + $m\ln (x) - $n \ln (y)\) $PAR END_TEXT @@ -106,7 +106,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('MathObject version'); diff --git a/Contrib/Mizzou/Algebra/log_eqns_properties/expand_03.pg b/Contrib/Mizzou/Algebra/log_eqns_properties/expand_03.pg index 1f69680d93..576634b8bc 100644 --- a/Contrib/Mizzou/Algebra/log_eqns_properties/expand_03.pg +++ b/Contrib/Mizzou/Algebra/log_eqns_properties/expand_03.pg @@ -4,9 +4,9 @@ ## KEYWORDS('logarithm', 'laws of logarithms') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Exponential and Logarithmic Functions') -## DBchapter('Laws of Logarithms') +## DBchapter('Laws of Logarithms') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -26,7 +26,7 @@ loadMacros( "PGchoicemacros.pl", "PGunion.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "contextFraction.pl", @@ -108,7 +108,7 @@ $showPartialCorrectAnswers = 1; if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR - ${BBOLD}Answer:${EBOLD} + ${BBOLD}Answer:${EBOLD} \($ans1\log(x) +$ans2 \log(y)+ $ans3 \log(z)\) $PAR END_TEXT @@ -118,7 +118,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('MathObject version'); diff --git a/Contrib/Mizzou/Algebra/log_eqns_properties/expand_04.pg b/Contrib/Mizzou/Algebra/log_eqns_properties/expand_04.pg index 6b7f6c16b6..55dba264c9 100644 --- a/Contrib/Mizzou/Algebra/log_eqns_properties/expand_04.pg +++ b/Contrib/Mizzou/Algebra/log_eqns_properties/expand_04.pg @@ -4,9 +4,9 @@ ## KEYWORDS('logarithm', 'laws of logarithms') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Exponential and Logarithmic Functions') -## DBchapter('Laws of Logarithms') +## DBchapter('Laws of Logarithms') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -26,7 +26,7 @@ loadMacros( "PGchoicemacros.pl", "PGunion.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -79,7 +79,7 @@ Context()->texStrings; BEGIN_TEXT Suppose that $PAR -\[ \log_{$b} ($a1) = $var1, ~ \log_{$b} ($a2) = $var2, ~ \text{and} ~ \log_{$b} ($a3) = $var3.\] +\[ \log_{$b} ($a1) = $var1, ~ \log_{$b} ($a2) = $var2, ~ \text{and} ~ \log_{$b} ($a3) = $var3.\] $PAR Then, find the following quantities in terms of \($var1, $var2\), and \($var3\), if possible. If it is not possible to determine the quantity in terms of \($var1, $var2\), and \($var3\), then write "undefined" in the blank provided. @@ -111,7 +111,7 @@ ANS( String("undefined")-> cmp() ); if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR - ${BBOLD}Answer:${EBOLD} + ${BBOLD}Answer:${EBOLD} (a) \(2 $var1 - $var2 - $var3\), (b) \($var1 + $var2 + $var3\), (c) undefined $PAR END_TEXT @@ -121,7 +121,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('MathObject version'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/log_eqns_properties/inverse_prop_01.pg b/Contrib/Mizzou/Algebra/log_eqns_properties/inverse_prop_01.pg index 3698b455d6..cb9457881c 100644 --- a/Contrib/Mizzou/Algebra/log_eqns_properties/inverse_prop_01.pg +++ b/Contrib/Mizzou/Algebra/log_eqns_properties/inverse_prop_01.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGchoicemacros.pl", @@ -29,7 +29,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $base = list_random(exp(1),10,2,3,4,5,6,7,8,9); @@ -55,18 +55,18 @@ if ($case == 0) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT -Simplify: +Simplify: $PAR \($dispq = \) \{ans_rule(15)\} END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($num)->cmp()); @@ -78,7 +78,7 @@ ANS(Compute($num)->cmp()); if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR - ${BBOLD}Answer:${EBOLD} + ${BBOLD}Answer:${EBOLD} \($num\) $PAR END_TEXT @@ -88,7 +88,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/log_eqns_properties/inverse_prop_02.pg b/Contrib/Mizzou/Algebra/log_eqns_properties/inverse_prop_02.pg index 0016287038..7d1751bcdc 100644 --- a/Contrib/Mizzou/Algebra/log_eqns_properties/inverse_prop_02.pg +++ b/Contrib/Mizzou/Algebra/log_eqns_properties/inverse_prop_02.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -28,7 +28,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); Context()->variables->are(x=>"Real", y=>"Real"); @@ -82,18 +82,18 @@ if ($a == 1 && $b == 1) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT -Simplify assuming all variables are positive: +Simplify assuming all variables are positive: $PAR \(\displaystyle $dispq = \) \{ans_rule(15)\} END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($ans)->cmp()); @@ -105,7 +105,7 @@ ANS(Compute($ans)->cmp()); if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR - ${BBOLD}Answer:${EBOLD} + ${BBOLD}Answer:${EBOLD} \($dispans\) $PAR END_TEXT @@ -115,7 +115,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/log_eqns_properties/inverse_prop_03.pg b/Contrib/Mizzou/Algebra/log_eqns_properties/inverse_prop_03.pg index 706d27e286..ba67ef870f 100644 --- a/Contrib/Mizzou/Algebra/log_eqns_properties/inverse_prop_03.pg +++ b/Contrib/Mizzou/Algebra/log_eqns_properties/inverse_prop_03.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "contextFraction.pl", @@ -29,7 +29,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Fraction-NoDecimals"); Context()->variables->are(x=>"Real", y=>"Real"); @@ -52,18 +52,18 @@ if ($base == exp(1)) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT -Simplify assuming all variables are positive: +Simplify assuming all variables are positive: $PAR \(\displaystyle $dispq = \) \{ans_rule(15)\} END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($ans)->cmp(studentsMustReduceFractions=>1)); @@ -75,7 +75,7 @@ ANS(Compute($ans)->cmp(studentsMustReduceFractions=>1)); if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR - ${BBOLD}Answer:${EBOLD} + ${BBOLD}Answer:${EBOLD} \($ans\) $PAR END_TEXT @@ -85,7 +85,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/log_eqns_properties/mc_04.pg b/Contrib/Mizzou/Algebra/log_eqns_properties/mc_04.pg index 5cff87a4e4..b554f56f9a 100644 --- a/Contrib/Mizzou/Algebra/log_eqns_properties/mc_04.pg +++ b/Contrib/Mizzou/Algebra/log_eqns_properties/mc_04.pg @@ -4,9 +4,9 @@ ## KEYWORDS('nonlinear inequality', 'polynomial') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Exponential and Logarithmic Functions') -## DBchapter('Laws of Logarithms') +## DBchapter('Laws of Logarithms') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -23,7 +23,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -104,11 +104,11 @@ $ans = $possans[$pos[0]]; Context()->texStrings; BEGIN_TEXT -Which of the following is equal to \( \log_{$base}($a $var1) \)? +Which of the following is equal to \( \log_{$base}($a $var1) \)? $PAR A. $choices[0] $BR -B. $choices[1] +B. $choices[1] $BR C. $choices[2] $BR diff --git a/Contrib/Mizzou/Algebra/log_eqns_properties/simplifying_01.pg b/Contrib/Mizzou/Algebra/log_eqns_properties/simplifying_01.pg index 0767d87a3f..055e422c8e 100644 --- a/Contrib/Mizzou/Algebra/log_eqns_properties/simplifying_01.pg +++ b/Contrib/Mizzou/Algebra/log_eqns_properties/simplifying_01.pg @@ -4,9 +4,9 @@ ## KEYWORDS('nonlinear inequality', 'polynomial') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Exponential and Logarithmic Functions') -## DBchapter('Laws of Logarithms') +## DBchapter('Laws of Logarithms') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -26,7 +26,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" diff --git a/Contrib/Mizzou/Algebra/log_eqns_properties/tf_01.pg b/Contrib/Mizzou/Algebra/log_eqns_properties/tf_01.pg index 831a944ad3..3618f122e3 100644 --- a/Contrib/Mizzou/Algebra/log_eqns_properties/tf_01.pg +++ b/Contrib/Mizzou/Algebra/log_eqns_properties/tf_01.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGchoicemacros.pl", @@ -29,7 +29,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $num1 = random(2,7,1); @@ -62,7 +62,7 @@ $tf -> qa ("\(\displaystyle \log_b \frac{x}{y} = \frac{\log_b x}{\log_b y}\)", " $tf->choose(5); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -73,7 +73,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### install_problem_grader(~~&std_problem_grader); ANS( str_cmp( $tf->ra_correct_ans ) ); @@ -89,7 +89,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/polynomials_degree/poly_degree_entire_01.pg b/Contrib/Mizzou/Algebra/polynomials_degree/poly_degree_entire_01.pg index 7618bd8f20..6afc26689d 100644 --- a/Contrib/Mizzou/Algebra/polynomials_degree/poly_degree_entire_01.pg +++ b/Contrib/Mizzou/Algebra/polynomials_degree/poly_degree_entire_01.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGcourse.pl" ); @@ -86,7 +86,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ diff --git a/Contrib/Mizzou/Algebra/polynomials_degree/poly_degree_terms_01.pg b/Contrib/Mizzou/Algebra/polynomials_degree/poly_degree_terms_01.pg index 163b2b457e..dc1fb5e24f 100644 --- a/Contrib/Mizzou/Algebra/polynomials_degree/poly_degree_terms_01.pg +++ b/Contrib/Mizzou/Algebra/polynomials_degree/poly_degree_terms_01.pg @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGcourse.pl" ); @@ -133,7 +133,7 @@ The degree of the entire polynomial is \($deg\). Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/Algebra/polynomials_degree/poly_degree_terms_02.pg b/Contrib/Mizzou/Algebra/polynomials_degree/poly_degree_terms_02.pg index 6f758f59ec..64feb27fb3 100644 --- a/Contrib/Mizzou/Algebra/polynomials_degree/poly_degree_terms_02.pg +++ b/Contrib/Mizzou/Algebra/polynomials_degree/poly_degree_terms_02.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGcourse.pl" ); @@ -108,7 +108,7 @@ The degree of the entire polynomial is $maxdeg. Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/Algebra/polynomials_division/poly_div_01.pg b/Contrib/Mizzou/Algebra/polynomials_division/poly_div_01.pg index 365fb07be1..c2a6c5e586 100644 --- a/Contrib/Mizzou/Algebra/polynomials_division/poly_div_01.pg +++ b/Contrib/Mizzou/Algebra/polynomials_division/poly_div_01.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "parserRadioButtons.pl", "PGcourse.pl" @@ -75,7 +75,7 @@ $P = "x^3 + $e1 x^2 + $e2 x + $e3 "; Context()->texStrings; BEGIN_TEXT -Given the polynomial \(P(x) = $P\) and divisor \(d(x) = $D\), find the quotient \(Q(x)\) and remainder \(R(x)\). +Given the polynomial \(P(x) = $P\) and divisor \(d(x) = $D\), find the quotient \(Q(x)\) and remainder \(R(x)\). $PAR Write your answer in the form \( P(x) = d(x) Q(x) + R(x)\). $PAR @@ -98,7 +98,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/Algebra/polynomials_division/poly_div_01_2.pg b/Contrib/Mizzou/Algebra/polynomials_division/poly_div_01_2.pg index 0f27270382..e456ece4f1 100644 --- a/Contrib/Mizzou/Algebra/polynomials_division/poly_div_01_2.pg +++ b/Contrib/Mizzou/Algebra/polynomials_division/poly_div_01_2.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "parserRadioButtons.pl", "PGcourse.pl" @@ -75,7 +75,7 @@ $P = "x^3 + $e1 x^2 + $e2 x + $e3 "; Context()->texStrings; BEGIN_TEXT -Given the polynomial \(P = $P\) and divisor \(d = $D\), find the quotient \(Q\) and remainder \(R\). +Given the polynomial \(P = $P\) and divisor \(d = $D\), find the quotient \(Q\) and remainder \(R\). $PAR Write your answer in the form \( P = d \cdot Q + R\). $PAR @@ -98,7 +98,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/Algebra/polynomials_division/poly_div_02.pg b/Contrib/Mizzou/Algebra/polynomials_division/poly_div_02.pg index 8c331de516..1c7c889643 100644 --- a/Contrib/Mizzou/Algebra/polynomials_division/poly_div_02.pg +++ b/Contrib/Mizzou/Algebra/polynomials_division/poly_div_02.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "parserRadioButtons.pl", "PGcourse.pl" @@ -70,7 +70,7 @@ $r = $c + $d*$b; Context()->texStrings; BEGIN_TEXT -Given the polynomial \(P(x) = $P\) and divisor \(d(x) = $D\), find the quotient \(Q(x)\) and remainder \(R(x)\). +Given the polynomial \(P(x) = $P\) and divisor \(d(x) = $D\), find the quotient \(Q(x)\) and remainder \(R(x)\). $PAR Write your answer in the form \( P(x) = d(x) Q(x) + R(x)\). $PAR @@ -93,7 +93,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/Algebra/polynomials_division/poly_div_02_2.pg b/Contrib/Mizzou/Algebra/polynomials_division/poly_div_02_2.pg index 68bc2405b6..f3222e48b2 100644 --- a/Contrib/Mizzou/Algebra/polynomials_division/poly_div_02_2.pg +++ b/Contrib/Mizzou/Algebra/polynomials_division/poly_div_02_2.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "parserRadioButtons.pl", "PGcourse.pl" @@ -70,7 +70,7 @@ $r = $c + $d*$b; Context()->texStrings; BEGIN_TEXT -Given the polynomial \(P = $P\) and divisor \(d = $D\), find the quotient \(Q\) and remainder \(R\). +Given the polynomial \(P = $P\) and divisor \(d = $D\), find the quotient \(Q\) and remainder \(R\). $PAR Write your answer in the form \( P = d \cdot Q + R\). $PAR @@ -93,7 +93,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/Algebra/polynomials_division/poly_div_03.pg b/Contrib/Mizzou/Algebra/polynomials_division/poly_div_03.pg index f426d42583..375a9e0d73 100644 --- a/Contrib/Mizzou/Algebra/polynomials_division/poly_div_03.pg +++ b/Contrib/Mizzou/Algebra/polynomials_division/poly_div_03.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "parserRadioButtons.pl", "PGcourse.pl" @@ -69,7 +69,7 @@ $r = ($b)**5 + ($b)**3 +$b - $a; Context()->texStrings; BEGIN_TEXT -Given the polynomial \(P(x) = $P\) and divisor \(d(x) = $D\), find the quotient \(Q(x)\) and remainder \(R(x)\). +Given the polynomial \(P(x) = $P\) and divisor \(d(x) = $D\), find the quotient \(Q(x)\) and remainder \(R(x)\). $PAR Write your answer in the form \( P(x) = d(x) Q(x) + R(x)\). $PAR @@ -91,7 +91,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/Algebra/polynomials_division/poly_div_04.pg b/Contrib/Mizzou/Algebra/polynomials_division/poly_div_04.pg index 3dafa2fe1b..bd58b6e950 100644 --- a/Contrib/Mizzou/Algebra/polynomials_division/poly_div_04.pg +++ b/Contrib/Mizzou/Algebra/polynomials_division/poly_div_04.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "parserRadioButtons.pl", "PGcourse.pl" @@ -76,7 +76,7 @@ $P = "$c3 x^3 + $c2 x^2 + $c1 x + $c0"; Context()->texStrings; BEGIN_TEXT -Given the polynomial \(P(x) = $P\) and divisor \(d(x) = $D\), find the quotient \(Q(x)\) and remainder \(R(x)\). +Given the polynomial \(P(x) = $P\) and divisor \(d(x) = $D\), find the quotient \(Q(x)\) and remainder \(R(x)\). $PAR Write your answer in the form \( P(x) = d(x) Q(x) + R(x)\). $PAR @@ -99,7 +99,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/Algebra/polynomials_division/syn_div_eval_01.pg b/Contrib/Mizzou/Algebra/polynomials_division/syn_div_eval_01.pg index ec48ee4072..08d513f80a 100644 --- a/Contrib/Mizzou/Algebra/polynomials_division/syn_div_eval_01.pg +++ b/Contrib/Mizzou/Algebra/polynomials_division/syn_div_eval_01.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "parserRadioButtons.pl", "PGcourse.pl" @@ -70,7 +70,7 @@ $ans = $c4* ($a)**4 + $c3* ($a)**3 + $c2* ($a)**2 + $c1*$a + $c0; BEGIN_TEXT -Use the Remainder Theorem to find the function value listed below for the polynomial function \(P(x) = $P\). +Use the Remainder Theorem to find the function value listed below for the polynomial function \(P(x) = $P\). $PAR $SPACE \(P($a) = \) \{ans_rule(10)\} END_TEXT @@ -90,7 +90,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/Algebra/polynomials_division/syn_div_roots_01.pg b/Contrib/Mizzou/Algebra/polynomials_division/syn_div_roots_01.pg index ac2025ba91..3c2c0d64a1 100644 --- a/Contrib/Mizzou/Algebra/polynomials_division/syn_div_roots_01.pg +++ b/Contrib/Mizzou/Algebra/polynomials_division/syn_div_roots_01.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "parserRadioButtons.pl", "contextFraction.pl", @@ -97,7 +97,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/Algebra/polynomials_division/syn_div_roots_02.pg b/Contrib/Mizzou/Algebra/polynomials_division/syn_div_roots_02.pg index 0bece1cf17..1c5dd53738 100644 --- a/Contrib/Mizzou/Algebra/polynomials_division/syn_div_roots_02.pg +++ b/Contrib/Mizzou/Algebra/polynomials_division/syn_div_roots_02.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "parserRadioButtons.pl", "PGcourse.pl" @@ -92,7 +92,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/Algebra/polynomials_end_behavior/expanded_form_01.pg b/Contrib/Mizzou/Algebra/polynomials_end_behavior/expanded_form_01.pg index c5491d1cc2..d4b5e4f731 100644 --- a/Contrib/Mizzou/Algebra/polynomials_end_behavior/expanded_form_01.pg +++ b/Contrib/Mizzou/Algebra/polynomials_end_behavior/expanded_form_01.pg @@ -26,7 +26,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "parserRadioButtons.pl", "PGcourse.pl" @@ -111,8 +111,8 @@ $PAR $PAR where: $PAR -\{ image("A.png", width=>100, height=>100,tex_size=>100) \} -\{ image("B.png", width=>100, height=>100,tex_size=>100) \} +\{ image("A.png", width=>100, height=>100,tex_size=>100) \} +\{ image("B.png", width=>100, height=>100,tex_size=>100) \} \{ image("C.png", width=>100, height=>100,tex_size=>100) \} \{ image("D.png", width=>100, height=>100,tex_size=>100) \} END_TEXT @@ -132,7 +132,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/Algebra/polynomials_end_behavior/expanded_form_02.pg b/Contrib/Mizzou/Algebra/polynomials_end_behavior/expanded_form_02.pg index b523f1611d..e236f414e0 100644 --- a/Contrib/Mizzou/Algebra/polynomials_end_behavior/expanded_form_02.pg +++ b/Contrib/Mizzou/Algebra/polynomials_end_behavior/expanded_form_02.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "parserRadioButtons.pl", "PGcourse.pl" @@ -93,8 +93,8 @@ $PAR $PAR where: $PAR -\{ image("A.png", width=>100, height=>100, tex_size=>100) \} -\{ image("B.png", width=>100, height=>100, tex_size=>100) \} +\{ image("A.png", width=>100, height=>100, tex_size=>100) \} +\{ image("B.png", width=>100, height=>100, tex_size=>100) \} \{ image("C.png", width=>100, height=>100, tex_size=>100) \} \{ image("D.png", width=>100, height=>100, tex_size=>100) \} END_TEXT @@ -114,7 +114,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/Algebra/polynomials_end_behavior/expanded_form_03.pg b/Contrib/Mizzou/Algebra/polynomials_end_behavior/expanded_form_03.pg index 526829df43..dc25afa7d9 100644 --- a/Contrib/Mizzou/Algebra/polynomials_end_behavior/expanded_form_03.pg +++ b/Contrib/Mizzou/Algebra/polynomials_end_behavior/expanded_form_03.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "parserRadioButtons.pl", "PGcourse.pl" @@ -94,8 +94,8 @@ $PAR $PAR where: $PAR -\{ image("A.png", width=>100, height=>100, tex_size=>100) \} -\{ image("B.png", width=>100, height=>100, tex_size=>100) \} +\{ image("A.png", width=>100, height=>100, tex_size=>100) \} +\{ image("B.png", width=>100, height=>100, tex_size=>100) \} \{ image("C.png", width=>100, height=>100, tex_size=>100) \} \{ image("D.png", width=>100, height=>100, tex_size=>100) \} END_TEXT @@ -115,7 +115,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/Algebra/polynomials_end_behavior/factored_form_01.pg b/Contrib/Mizzou/Algebra/polynomials_end_behavior/factored_form_01.pg index aa2c6018ab..db52a03897 100644 --- a/Contrib/Mizzou/Algebra/polynomials_end_behavior/factored_form_01.pg +++ b/Contrib/Mizzou/Algebra/polynomials_end_behavior/factored_form_01.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "parserRadioButtons.pl", "PGcourse.pl" @@ -96,8 +96,8 @@ $PAR $PAR where: $PAR -\{ image("A.png", width=>100, height=>100, tex_size=>100) \} -\{ image("B.png", width=>100, height=>100, tex_size=>100) \} +\{ image("A.png", width=>100, height=>100, tex_size=>100) \} +\{ image("B.png", width=>100, height=>100, tex_size=>100) \} \{ image("C.png", width=>100, height=>100, tex_size=>100) \} \{ image("D.png", width=>100, height=>100, tex_size=>100) \} END_TEXT @@ -118,7 +118,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/Algebra/polynomials_end_behavior/factored_form_02.pg b/Contrib/Mizzou/Algebra/polynomials_end_behavior/factored_form_02.pg index 91eec2249a..f440801254 100644 --- a/Contrib/Mizzou/Algebra/polynomials_end_behavior/factored_form_02.pg +++ b/Contrib/Mizzou/Algebra/polynomials_end_behavior/factored_form_02.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "parserRadioButtons.pl", "PGcourse.pl" @@ -96,8 +96,8 @@ $PAR $PAR where: $PAR -\{ image("A.png", width=>100, height=>100, tex_size=>100) \} -\{ image("B.png", width=>100, height=>100, tex_size=>100) \} +\{ image("A.png", width=>100, height=>100, tex_size=>100) \} +\{ image("B.png", width=>100, height=>100, tex_size=>100) \} \{ image("C.png", width=>100, height=>100, tex_size=>100) \} \{ image("D.png", width=>100, height=>100, tex_size=>100) \} END_TEXT @@ -119,7 +119,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ diff --git a/Contrib/Mizzou/Algebra/polynomials_end_behavior/factored_form_03.pg b/Contrib/Mizzou/Algebra/polynomials_end_behavior/factored_form_03.pg index 1430951125..d58baf6c6b 100644 --- a/Contrib/Mizzou/Algebra/polynomials_end_behavior/factored_form_03.pg +++ b/Contrib/Mizzou/Algebra/polynomials_end_behavior/factored_form_03.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "parserRadioButtons.pl", "PGcourse.pl" @@ -87,8 +87,8 @@ $PAR $PAR where: $PAR -\{ image("A.png", width=>100, height=>100, tex_size=>100) \} -\{ image("B.png", width=>100, height=>100, tex_size=>100) \} +\{ image("A.png", width=>100, height=>100, tex_size=>100) \} +\{ image("B.png", width=>100, height=>100, tex_size=>100) \} \{ image("C.png", width=>100, height=>100, tex_size=>100) \} \{ image("D.png", width=>100, height=>100, tex_size=>100) \} END_TEXT @@ -109,7 +109,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/Algebra/quadratic_functions_apps/max_area_dim_from_vertex_01.pg b/Contrib/Mizzou/Algebra/quadratic_functions_apps/max_area_dim_from_vertex_01.pg index 77541044a0..da08d6cf53 100644 --- a/Contrib/Mizzou/Algebra/quadratic_functions_apps/max_area_dim_from_vertex_01.pg +++ b/Contrib/Mizzou/Algebra/quadratic_functions_apps/max_area_dim_from_vertex_01.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Asks for the area function, +# Asks for the area function, # ENDDESCRIPTION ## DBsubject('Algebra') @@ -12,12 +12,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -33,7 +33,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $secs = random(2,4); @@ -56,7 +56,7 @@ $fig1 = image( "Garden_$secs.png", width=>$gsize, height=>147, tex_size=>500 ); $case = random(0,1,1); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -89,7 +89,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### if ($case == 0) { ANS(Compute($width)->cmp()); @@ -123,7 +123,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/quadratic_functions_apps/max_height_from_vertex_01.pg b/Contrib/Mizzou/Algebra/quadratic_functions_apps/max_height_from_vertex_01.pg index 29cc868782..cc112778e5 100644 --- a/Contrib/Mizzou/Algebra/quadratic_functions_apps/max_height_from_vertex_01.pg +++ b/Contrib/Mizzou/Algebra/quadratic_functions_apps/max_height_from_vertex_01.pg @@ -12,12 +12,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -33,7 +33,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); do {$v0 = 32*random(2,6,.25)} until (floor($v0) == $v0); @@ -45,7 +45,7 @@ $max = $st->eval(x=>$time); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -58,7 +58,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($time)->cmp()); ANS(Compute($max)->cmp()); @@ -80,7 +80,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/quadratic_functions_apps/rocket-height-ineq-01.pg b/Contrib/Mizzou/Algebra/quadratic_functions_apps/rocket-height-ineq-01.pg index 29cc868782..cc112778e5 100644 --- a/Contrib/Mizzou/Algebra/quadratic_functions_apps/rocket-height-ineq-01.pg +++ b/Contrib/Mizzou/Algebra/quadratic_functions_apps/rocket-height-ineq-01.pg @@ -12,12 +12,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -33,7 +33,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); do {$v0 = 32*random(2,6,.25)} until (floor($v0) == $v0); @@ -45,7 +45,7 @@ $max = $st->eval(x=>$time); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -58,7 +58,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($time)->cmp()); ANS(Compute($max)->cmp()); @@ -80,7 +80,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/quadratic_functions_apps/rocket_height_ineq_01.pg b/Contrib/Mizzou/Algebra/quadratic_functions_apps/rocket_height_ineq_01.pg index fa94b09b5f..ccc514dda0 100644 --- a/Contrib/Mizzou/Algebra/quadratic_functions_apps/rocket_height_ineq_01.pg +++ b/Contrib/Mizzou/Algebra/quadratic_functions_apps/rocket_height_ineq_01.pg @@ -13,12 +13,12 @@ ################################################################# -# initialization +# initialization ################################################################# DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswers = 1; ################################################################# -# setup contexts and variables +# setup contexts and variables ################################################################# Context("Fraction"); @@ -79,14 +79,14 @@ $disp_eq = Compute("-$a_abs t^2 + $b t $c_sgn $c_abs"); Context("Interval"); ################################################################# -# state the problem +# state the problem ################################################################# Context()->texStrings; BEGIN_TEXT $PAR The height \(h\) in feet of a model rocket above the ground \(t\) seconds after lift-off is given by \(h(t) = $disp_eq\), \(0\le t \le $right_endpoint\). When is the rocket -at least \($h\) feet off the ground? +at least \($h\) feet off the ground? $PAR $BBOLD Answer: $EBOLD when the time \(t\) is between \{ans_rule(5)\} seconds and @@ -95,14 +95,14 @@ END_TEXT ################################################################# -# check the answer +# check the answer ################################################################# ANS(Compute($u)->cmp()); ANS(Compute($v)->cmp()); ################################################################# -# use PeriodicRerandomization to write the answer and generate a +# use PeriodicRerandomization to write the answer and generate a # new version of the problem ################################################################# if ($attempts_modp == 0 && $actualAttempts != 0) { @@ -118,7 +118,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/quadratic_functions_apps/three_sided_fencing_problem_01.pg b/Contrib/Mizzou/Algebra/quadratic_functions_apps/three_sided_fencing_problem_01.pg index e5b62d13dd..97569fac09 100644 --- a/Contrib/Mizzou/Algebra/quadratic_functions_apps/three_sided_fencing_problem_01.pg +++ b/Contrib/Mizzou/Algebra/quadratic_functions_apps/three_sided_fencing_problem_01.pg @@ -18,7 +18,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -50,10 +50,10 @@ $critical_x = (.25)*($fa+$bl); $max_area = $area_formula->eval(x=>$critical_x); $gsize = 540*2/3; -$fig1 = image( - "three_sided_fencing_problem_var_side_length_01.png", - width=>$gsize, - height=>147, +$fig1 = image( + "three_sided_fencing_problem_var_side_length_01.png", + width=>$gsize, + height=>147, tex_size=>500 ); @@ -109,7 +109,7 @@ PeriodicStatus(); COMMENT(' Last edited June 24, 2014. Features periodic randomization. - This problem always shows the same diagram. + This problem always shows the same diagram. '); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/quadratic_functions_apps/two_sided_fencing_problem_01.pg b/Contrib/Mizzou/Algebra/quadratic_functions_apps/two_sided_fencing_problem_01.pg index 2f9f877d78..052df2025c 100644 --- a/Contrib/Mizzou/Algebra/quadratic_functions_apps/two_sided_fencing_problem_01.pg +++ b/Contrib/Mizzou/Algebra/quadratic_functions_apps/two_sided_fencing_problem_01.pg @@ -18,7 +18,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -70,12 +70,12 @@ $fig1 = image( # (for example, case 1 refers to the image # two_side_fence_diag_01.png # -# 1: no inside dividers +# 1: no inside dividers # 2: 1 vertical divider # 3: 2 vertical dividers # 4: 1 horizontal divider # 5: 1 horizontal and one vertical divider -# 6: 2 horizontal dividers +# 6: 2 horizontal dividers # Here we solve our equation involving fence amount and x for the # variable we call y. y is a second degree polynomial whose @@ -88,27 +88,27 @@ if ($rand_fig == 1) { ($b,$a) = ($fence_amt,-1); } elsif ($rand_fig == 2) { # fa = 2x + y - $y = "$fence_amt - 2*x"; + $y = "$fence_amt - 2*x"; ($b,$a) = ($fence_amt,-2); } elsif ($rand_fig == 3) { # fa = 3x + y - $y = "$fence_amt - 3*x"; + $y = "$fence_amt - 3*x"; ($b,$a) = ($fence_amt,-3); } elsif ($rand_fig == 4) { # fa = 2y+x - $y = "(1/2)*($fence_amt - x)"; + $y = "(1/2)*($fence_amt - x)"; ($b,$a) = ((1/2)*$fence_amt,-1/2); } elsif ($rand_fig == 5) { # fa = 2y+2x - $y = "(1/2)*($fence_amt) - x"; + $y = "(1/2)*($fence_amt) - x"; ($b,$a) = ((1/2)*$fence_amt,-1); } elsif ($rand_fig == 6) { # fa = 3y+x $y = "(1/3)*($fence_amt - x)"; ($b,$a) = ((1/3)*$fence_amt,-1/3); -} +} -$area_formula = Compute("x*($y)"); +$area_formula = Compute("x*($y)"); $critical_x = -$b/(2*$a); $max_area = $area_formula->eval(x=>$critical_x); diff --git a/Contrib/Mizzou/Algebra/radicals_rationalizing/denominator_01.pg b/Contrib/Mizzou/Algebra/radicals_rationalizing/denominator_01.pg index e71b5c9468..b9bec08f40 100644 --- a/Contrib/Mizzou/Algebra/radicals_rationalizing/denominator_01.pg +++ b/Contrib/Mizzou/Algebra/radicals_rationalizing/denominator_01.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical expression', 'rationalize the denominator') -## DBsubject('Algebra') -## DBchapter('Basic Algebra') -## DBsection('Exponents and Radicals') +## DBsubject('Algebra') +## DBchapter('Basic Algebra') +## DBsection('Exponents and Radicals') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "PGunion.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -80,7 +80,7 @@ $multians = MultiAnswer($num, $den)->with( my ( $f1stu, $f2stu ) = @{$student}; my ( $f1, $f2 ) = @{$correct}; -if (( $f1==$f1stu && $f2==$f2stu) || (-$f1==$f1stu && -$f2==$f2stu)) {return [1,1];} +if (( $f1==$f1stu && $f2==$f2stu) || (-$f1==$f1stu && -$f2==$f2stu)) {return [1,1];} elsif ( $f1==$f1stu || -$f1==$f1stu) {return [1,0];} elsif ( ($numbogus==$f1stu || -$numbogus==$f1stu) || ($denbogus==$f2stu || -$denbogus==$f2stu) ) { @@ -126,7 +126,7 @@ $BCENTER $displayfrac $ECENTER $BR - Type an exact answer using radical notation if necessary. + Type an exact answer using radical notation if necessary. END_TEXT if ($attempts_modp == 0 && $actualAttempts != 0) { @@ -137,7 +137,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { $PAR END_TEXT } else { - BEGIN_TEXT + BEGIN_TEXT $PAR ${BBOLD}Help:${EBOLD} To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to give \(\sqrt{7x}\) as an answer, you would type sqrt(7x). If you mistakenly type sqrt 7x instead, Webwork will take this to mean \(x \sqrt{7}\), not \(\sqrt{7x}\). That is, you MUST put parenthesis around everything that you want to take the square root of. $BR @@ -146,7 +146,7 @@ To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/Algebra/radicals_rationalizing/denominator_02.pg b/Contrib/Mizzou/Algebra/radicals_rationalizing/denominator_02.pg index 5b90fbfc03..1e4d9cfa3a 100644 --- a/Contrib/Mizzou/Algebra/radicals_rationalizing/denominator_02.pg +++ b/Contrib/Mizzou/Algebra/radicals_rationalizing/denominator_02.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical expression', 'rationalize the denominator') -## DBsubject('Algebra') -## DBchapter('Basic Algebra') -## DBsection('Exponents and Radicals') +## DBsubject('Algebra') +## DBchapter('Basic Algebra') +## DBsection('Exponents and Radicals') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -25,7 +25,7 @@ loadMacros( "PGstandard.pl", "PGunion.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -78,7 +78,7 @@ $multians = MultiAnswer($num, $den)->with( my ( $f1stu, $f2stu ) = @{$student}; my ( $f1, $f2 ) = @{$correct}; -if (( $f1==$f1stu && $f2==$f2stu) || (-$f1==$f1stu && -$f2==$f2stu)) {return [1,1];} +if (( $f1==$f1stu && $f2==$f2stu) || (-$f1==$f1stu && -$f2==$f2stu)) {return [1,1];} elsif ( $f1==$f1stu || -$f1==$f1stu) {return [1,0];} elsif ( ($numbogus==$f1stu || -$numbogus==$f1stu) || ($denbogus==$f2stu || -$denbogus==$f2stu) ) { @@ -124,7 +124,7 @@ $BCENTER $displayfrac $ECENTER $BR - Type an exact answer using radical notation if necessary. + Type an exact answer using radical notation if necessary. END_TEXT if ($attempts_modp == 0 && $actualAttempts != 0) { @@ -135,7 +135,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { $PAR END_TEXT } else { - BEGIN_TEXT + BEGIN_TEXT $PAR ${BBOLD}Help:${EBOLD} To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to give \(\sqrt{7x}\) as an answer, you would type sqrt(7x). If you mistakenly type sqrt 7x instead, Webwork will take this to mean \(x \sqrt{7}\), not \(\sqrt{7x}\). That is, you MUST put parenthesis around everything that you want to take the square root of. $BR @@ -144,7 +144,7 @@ To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/Algebra/radicals_rationalizing/denominator_03.pg b/Contrib/Mizzou/Algebra/radicals_rationalizing/denominator_03.pg index a9b9df333f..3951967544 100644 --- a/Contrib/Mizzou/Algebra/radicals_rationalizing/denominator_03.pg +++ b/Contrib/Mizzou/Algebra/radicals_rationalizing/denominator_03.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical expression', 'rationalize the denominator') -## DBsubject('Algebra') -## DBchapter('Basic Algebra') -## DBsection('Exponents and Radicals') +## DBsubject('Algebra') +## DBchapter('Basic Algebra') +## DBsection('Exponents and Radicals') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "PGunion.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -76,7 +76,7 @@ $multians = MultiAnswer($num, $den)->with( my ( $f1stu, $f2stu ) = @{$student}; my ( $f1, $f2 ) = @{$correct}; -if (( $f1==$f1stu && $f2==$f2stu) || (-$f1==$f1stu && -$f2==$f2stu)) {return [1,1];} +if (( $f1==$f1stu && $f2==$f2stu) || (-$f1==$f1stu && -$f2==$f2stu)) {return [1,1];} elsif ( $f1==$f1stu || -$f1==$f1stu) {return [1,0];} elsif ( ($numbogus==$f1stu || -$numbogus==$f1stu) || ($denbogus==$f2stu || -$denbogus==$f2stu) ) { @@ -122,7 +122,7 @@ $BCENTER $displayfrac $ECENTER $BR - Type an exact answer using radical notation if necessary. + Type an exact answer using radical notation if necessary. END_TEXT if ($attempts_modp == 0 && $actualAttempts != 0) { @@ -133,7 +133,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { $PAR END_TEXT } else { - BEGIN_TEXT + BEGIN_TEXT $PAR ${BBOLD}Help:${EBOLD} To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to give \(\sqrt{7x}\) as an answer, you would type sqrt(7x). If you mistakenly type sqrt 7x instead, Webwork will take this to mean \(x \sqrt{7}\), not \(\sqrt{7x}\). That is, you MUST put parenthesis around everything that you want to take the square root of. $BR @@ -142,7 +142,7 @@ To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/Algebra/radicals_rationalizing/denominator_04.pg b/Contrib/Mizzou/Algebra/radicals_rationalizing/denominator_04.pg index c35711766a..01dd3a6c29 100644 --- a/Contrib/Mizzou/Algebra/radicals_rationalizing/denominator_04.pg +++ b/Contrib/Mizzou/Algebra/radicals_rationalizing/denominator_04.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical expression', 'rationalize the denominator') -## DBsubject('Algebra') -## DBchapter('Basic Algebra') -## DBsection('Exponents and Radicals') +## DBsubject('Algebra') +## DBchapter('Basic Algebra') +## DBsection('Exponents and Radicals') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "PGunion.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -76,7 +76,7 @@ $multians = MultiAnswer($num, $den)->with( my ( $correct, $student, $self ) = @_; my ( $f1stu, $f2stu ) = @{$student}; my ( $f1, $f2 ) = @{$correct}; - + if ( ( $f1==$f1stu && $f2==$f2stu) ) { return [1,1]; } elsif ( $f1==$f1stu ) { @@ -120,7 +120,7 @@ $BCENTER $displayfrac $ECENTER $BR - Type an exact answer using radical notation if necessary. + Type an exact answer using radical notation if necessary. END_TEXT if ($attempts_modp == 0 && $actualAttempts != 0) { @@ -131,7 +131,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { $PAR END_TEXT } else { - BEGIN_TEXT + BEGIN_TEXT $PAR ${BBOLD}Help:${EBOLD} To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to give \(\sqrt{7x}\) as an answer, you would type sqrt(7x). If you mistakenly type sqrt 7x instead, Webwork will take this to mean \(x \sqrt{7}\), not \(\sqrt{7x}\). That is, you MUST put parenthesis around everything that you want to take the square root of. $BR @@ -140,7 +140,7 @@ To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/Algebra/radicals_simplifying/foiling_01.pg b/Contrib/Mizzou/Algebra/radicals_simplifying/foiling_01.pg index 26a1d614d3..c158ead3c3 100644 --- a/Contrib/Mizzou/Algebra/radicals_simplifying/foiling_01.pg +++ b/Contrib/Mizzou/Algebra/radicals_simplifying/foiling_01.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# +# # ENDDESCRIPTION ## DBsubject('Algebra') @@ -11,14 +11,14 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -51,7 +51,7 @@ package main; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @vars = ("x","y","z","a","b","c","p","q","r"); @@ -73,7 +73,7 @@ $ans = Formula("$a $v - $b2")->reduce; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -83,12 +83,12 @@ $BCENTER \($disp =\) \{ans_rule(20)\} $ECENTER $PAR -Write your answer using radical notation if necessary. +Write your answer using radical notation if necessary. END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS( $ans-> cmp( checker => sub { my ($correct,$student,$ans) = @_; @@ -127,13 +127,13 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} - \{ AnswerFormatHelp("exponents", "Click here for help writing exponents and square roots.") \} + ${BBOLD}Help:${EBOLD} + \{ helpLink("exponents", "Click here for help writing exponents and square roots.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/radicals_simplifying/foiling_02.pg b/Contrib/Mizzou/Algebra/radicals_simplifying/foiling_02.pg index 85f842a6b5..021768d076 100644 --- a/Contrib/Mizzou/Algebra/radicals_simplifying/foiling_02.pg +++ b/Contrib/Mizzou/Algebra/radicals_simplifying/foiling_02.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical expression') -## DBsubject('Algebra') -## DBchapter('Basic Algebra') -## DBsection('Exponents and Radicals') +## DBsubject('Algebra') +## DBchapter('Basic Algebra') +## DBsection('Exponents and Radicals') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "PGunion.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -80,7 +80,7 @@ $PAR $BCENTER \($expr = \text{ }\) \{ANS_RULE(10)\} $ECENTER -$BR Write your answer using radical notation if necessary. +$BR Write your answer using radical notation if necessary. END_TEXT @@ -95,14 +95,14 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR ${BBOLD}Help:${EBOLD} - -To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to give \(\sqrt{7x}\) as an answer, you would type sqrt(7x). If you mistakenly type sqrt 7x instead, Webwork will take this to mean \(x \sqrt{7}\), not \(\sqrt{7x}\). That is, you MUST put parenthesis around everything that you want to take the square root of. + +To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to give \(\sqrt{7x}\) as an answer, you would type sqrt(7x). If you mistakenly type sqrt 7x instead, Webwork will take this to mean \(x \sqrt{7}\), not \(\sqrt{7x}\). That is, you MUST put parenthesis around everything that you want to take the square root of. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/Algebra/radicals_simplifying/foiling_03.pg b/Contrib/Mizzou/Algebra/radicals_simplifying/foiling_03.pg index 4f094d1876..6f10329f4b 100644 --- a/Contrib/Mizzou/Algebra/radicals_simplifying/foiling_03.pg +++ b/Contrib/Mizzou/Algebra/radicals_simplifying/foiling_03.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical expression') -## DBsubject('Algebra') -## DBchapter('Basic Algebra') -## DBsection('Exponents and Radicals') +## DBsubject('Algebra') +## DBchapter('Basic Algebra') +## DBsection('Exponents and Radicals') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "PGunion.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -83,7 +83,7 @@ $PAR $BCENTER \($expr = \text{ }\) \{ANS_RULE(10)\} $ECENTER -$BR Write your answer using radical notation if necessary. +$BR Write your answer using radical notation if necessary. END_TEXT @@ -98,14 +98,14 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR ${BBOLD}Help:${EBOLD} - -To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to give \(\sqrt{7x}\) as an answer, you would type sqrt(7x). If you mistakenly type sqrt 7x instead, Webwork will take this to mean \(x \sqrt{7}\), not \(\sqrt{7x}\). That is, you MUST put parenthesis around everything that you want to take the square root of. + +To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to give \(\sqrt{7x}\) as an answer, you would type sqrt(7x). If you mistakenly type sqrt 7x instead, Webwork will take this to mean \(x \sqrt{7}\), not \(\sqrt{7x}\). That is, you MUST put parenthesis around everything that you want to take the square root of. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/Algebra/radicals_simplifying/foiling_04.pg b/Contrib/Mizzou/Algebra/radicals_simplifying/foiling_04.pg index 271fa50061..8b1fbc7fd3 100644 --- a/Contrib/Mizzou/Algebra/radicals_simplifying/foiling_04.pg +++ b/Contrib/Mizzou/Algebra/radicals_simplifying/foiling_04.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# +# # ENDDESCRIPTION ## DBsubject('Algebra') @@ -11,14 +11,14 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -51,7 +51,7 @@ package main; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @vars = ("x","y","z","a","b","c","p","q","r"); @@ -81,7 +81,7 @@ if ($a == 1) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -91,12 +91,12 @@ $BCENTER \($disp =\) \{ans_rule(20)\} $ECENTER $PAR -Write your answer using radical notation if necessary. +Write your answer using radical notation if necessary. END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS( $ans-> cmp( checker => sub { my ($correct,$student,$ans) = @_; @@ -135,13 +135,13 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} - \{ AnswerFormatHelp("exponents", "Click here for help writing exponents and square roots.") \} + ${BBOLD}Help:${EBOLD} + \{ helpLink("exponents", "Click here for help writing exponents and square roots.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/radicals_simplifying/foiling_05.pg b/Contrib/Mizzou/Algebra/radicals_simplifying/foiling_05.pg index 422d1cd609..412c3162cb 100644 --- a/Contrib/Mizzou/Algebra/radicals_simplifying/foiling_05.pg +++ b/Contrib/Mizzou/Algebra/radicals_simplifying/foiling_05.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# +# # ENDDESCRIPTION ## DBsubject('Algebra') @@ -11,14 +11,14 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -51,7 +51,7 @@ package main; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @vars = ("x","y","z","a","b","c","p","q","r"); @@ -69,34 +69,34 @@ $b = non_zero_random(-9,9); if ($case == 0) { $disp = "\left(\sqrt{$a} + $b $v1\right)^2"; if ($b == 1) { - $disp = "\left(\sqrt{$a} + $v1\right)^2"; + $disp = "\left(\sqrt{$a} + $v1\right)^2"; } elsif ($b == -1) { - $disp = "\left(\sqrt{$a} - $v1\right)^2"; + $disp = "\left(\sqrt{$a} - $v1\right)^2"; } $e1 = ($b)**2; $e2 = abs(2*$b); $ans = Formula("$e1 $v1^2 + $a + $e2 $v1 sqrt($a)"); - if ($b < 0) { + if ($b < 0) { $ans = Formula("$e1 $v1^2 + $a - $e2 $v1 sqrt($a)"); } } else { $disp = "\left(\sqrt{$a $v2} + $b $v1\right)^2"; if ($b == 1) { - $disp = "\left(\sqrt{$a $v2 } + $v1\right)^2"; + $disp = "\left(\sqrt{$a $v2 } + $v1\right)^2"; } elsif ($b == -1) { - $disp = "\left(\sqrt{$a $v2} - $v1\right)^2"; + $disp = "\left(\sqrt{$a $v2} - $v1\right)^2"; } $e1 = ($b)**2; $e2 = abs(2*$b); $ans = Formula("$e1 $v1^2 + $a $v2 + $e2 $v1 sqrt($a $v2)"); - if ($b < 0) { + if ($b < 0) { $ans = Formula("$e1 $v1^2 + $a $v2 - $e2 $v1 sqrt($a $v2)"); } } ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -106,12 +106,12 @@ $BCENTER \($disp =\) \{ans_rule(20)\} $ECENTER $PAR -Write your answer using radical notation if necessary. +Write your answer using radical notation if necessary. END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS( $ans-> cmp( checker => sub { my ($correct,$student,$ans) = @_; @@ -150,13 +150,13 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} - \{ AnswerFormatHelp("exponents", "Click here for help writing exponents and square roots.") \} + ${BBOLD}Help:${EBOLD} + \{ helpLink("exponents", "Click here for help writing exponents and square roots.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/radicals_simplifying/foiling_06.pg b/Contrib/Mizzou/Algebra/radicals_simplifying/foiling_06.pg index cfb2a3978c..af9c7bba52 100644 --- a/Contrib/Mizzou/Algebra/radicals_simplifying/foiling_06.pg +++ b/Contrib/Mizzou/Algebra/radicals_simplifying/foiling_06.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# +# # ENDDESCRIPTION ## DBsubject('Algebra') @@ -11,14 +11,14 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -51,7 +51,7 @@ package main; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @vars = ("x","y","z","a","b","c","p","q","r"); @@ -79,7 +79,7 @@ $ans = Formula("$e1 $v + $e2 sqrt($v) + $e3")->reduce; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -89,12 +89,12 @@ $BCENTER \($disp =\) \{ans_rule(20)\} $ECENTER $PAR -Write your answer using radical notation if necessary. +Write your answer using radical notation if necessary. END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS( $ans-> cmp( checker => sub { my ($correct,$student,$ans) = @_; @@ -133,13 +133,13 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} - \{ AnswerFormatHelp("exponents", "Click here for help writing exponents and square roots.") \} + ${BBOLD}Help:${EBOLD} + \{ helpLink("exponents", "Click here for help writing exponents and square roots.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/radicals_simplifying/foiling_mc_01.pg b/Contrib/Mizzou/Algebra/radicals_simplifying/foiling_mc_01.pg index edafa31d08..c518ac1cb1 100644 --- a/Contrib/Mizzou/Algebra/radicals_simplifying/foiling_mc_01.pg +++ b/Contrib/Mizzou/Algebra/radicals_simplifying/foiling_mc_01.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical expression') -## DBsubject('Algebra') -## DBchapter('Basic Algebra') -## DBsection('Exponents and Radicals') +## DBsubject('Algebra') +## DBchapter('Basic Algebra') +## DBsection('Exponents and Radicals') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -29,7 +29,7 @@ loadMacros( "PGchoicemacros.pl", "PGunion.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -137,7 +137,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/Algebra/radicals_simplifying/foiling_three_parts_01.pg b/Contrib/Mizzou/Algebra/radicals_simplifying/foiling_three_parts_01.pg index ca098f7edc..51f8d4eb03 100644 --- a/Contrib/Mizzou/Algebra/radicals_simplifying/foiling_three_parts_01.pg +++ b/Contrib/Mizzou/Algebra/radicals_simplifying/foiling_three_parts_01.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# +# # ENDDESCRIPTION ## DBsubject('Algebra') @@ -11,14 +11,14 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -51,7 +51,7 @@ package main; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @vars = ("x","y","z","a","b","c","p","q","r"); @@ -106,7 +106,7 @@ if ($case3 == 0) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -118,12 +118,12 @@ $PAR $PAR (c) \($disp3 = \) \{ans_rule(20)\} $PAR -Write your answer using radical notation if necessary. +Write your answer using radical notation if necessary. END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS( $ansa-> cmp( checker => sub { my ($correct,$student,$ans) = @_; @@ -208,13 +208,13 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} - \{ AnswerFormatHelp("exponents", "Click here for help writing exponents and square roots.") \} + ${BBOLD}Help:${EBOLD} + \{ helpLink("exponents", "Click here for help writing exponents and square roots.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/radicals_simplifying/num_add_sub_01.pg b/Contrib/Mizzou/Algebra/radicals_simplifying/num_add_sub_01.pg index efab08ff3b..22c8277bb7 100644 --- a/Contrib/Mizzou/Algebra/radicals_simplifying/num_add_sub_01.pg +++ b/Contrib/Mizzou/Algebra/radicals_simplifying/num_add_sub_01.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# +# # ENDDESCRIPTION ## DBsubject('Algebra') @@ -11,7 +11,7 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( @@ -20,7 +20,7 @@ loadMacros( "PeriodicRerandomization.pl", "contextLimitedPowers.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -53,7 +53,7 @@ package main; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); Context()->functions->set(sqrt=>{class=>'my::Function::numeric'}); @@ -97,7 +97,7 @@ if ($c2 < 0) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -110,7 +110,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS( $ans-> cmp( checker => sub { my ($correct,$student,$ans) = @_; @@ -149,13 +149,13 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} - \{ AnswerFormatHelp("exponents", "Click here for help writing exponents and square roots.") \} + ${BBOLD}Help:${EBOLD} + \{ helpLink("exponents", "Click here for help writing exponents and square roots.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/radicals_simplifying/num_add_sub_two_parts_01.pg b/Contrib/Mizzou/Algebra/radicals_simplifying/num_add_sub_two_parts_01.pg index 52ec067653..76ce5b72e0 100644 --- a/Contrib/Mizzou/Algebra/radicals_simplifying/num_add_sub_two_parts_01.pg +++ b/Contrib/Mizzou/Algebra/radicals_simplifying/num_add_sub_two_parts_01.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# +# # ENDDESCRIPTION ## DBsubject('Algebra') @@ -11,7 +11,7 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( @@ -20,7 +20,7 @@ loadMacros( "PeriodicRerandomization.pl", "contextLimitedPowers.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -53,7 +53,7 @@ package main; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); Context()->functions->set(sqrt=>{class=>'my::Function::numeric'}); @@ -90,7 +90,7 @@ Context()->operators->undefine("**", "^"); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -105,7 +105,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS( $ansa-> cmp( checker => sub { my ($correct,$student,$ans) = @_; @@ -167,13 +167,13 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} - \{ AnswerFormatHelp("exponents", "Click here for help writing exponents and square roots.") \} + ${BBOLD}Help:${EBOLD} + \{ helpLink("exponents", "Click here for help writing exponents and square roots.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/radicals_simplifying/num_mult_div_two_parts_01.pg b/Contrib/Mizzou/Algebra/radicals_simplifying/num_mult_div_two_parts_01.pg index 1be0923346..192351417d 100644 --- a/Contrib/Mizzou/Algebra/radicals_simplifying/num_mult_div_two_parts_01.pg +++ b/Contrib/Mizzou/Algebra/radicals_simplifying/num_mult_div_two_parts_01.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# +# # ENDDESCRIPTION ## DBsubject('Algebra') @@ -11,7 +11,7 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( @@ -20,7 +20,7 @@ loadMacros( "PeriodicRerandomization.pl", "contextLimitedPowers.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -53,7 +53,7 @@ package main; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); Context()->functions->set(sqrt=>{class=>'my::Function::numeric'}); @@ -93,7 +93,7 @@ Context()->operators->undefine("**", "^"); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -108,7 +108,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS( $ansa-> cmp( checker => sub { my ($correct,$student,$ans) = @_; @@ -170,13 +170,13 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} - \{ AnswerFormatHelp("exponents", "Click here for help writing exponents and square roots.") \} + ${BBOLD}Help:${EBOLD} + \{ helpLink("exponents", "Click here for help writing exponents and square roots.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/radicals_simplifying/num_radicals_two_parts_01_ia.pg b/Contrib/Mizzou/Algebra/radicals_simplifying/num_radicals_two_parts_01_ia.pg index d9a656b446..95c1bb78c8 100644 --- a/Contrib/Mizzou/Algebra/radicals_simplifying/num_radicals_two_parts_01_ia.pg +++ b/Contrib/Mizzou/Algebra/radicals_simplifying/num_radicals_two_parts_01_ia.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# +# # ENDDESCRIPTION ## DBsubject('Algebra') @@ -11,7 +11,7 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( @@ -20,7 +20,7 @@ loadMacros( "PeriodicRerandomization.pl", "contextLimitedPowers.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -53,7 +53,7 @@ package main; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); Context()->functions->set(sqrt=>{class=>'my::Function::numeric'}); @@ -102,7 +102,7 @@ $ans2 = Formula("$b1/$b2"); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -117,7 +117,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS( $ans1-> cmp( checker => sub { my ($correct,$student,$ans) = @_; @@ -179,13 +179,13 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} - \{ AnswerFormatHelp("exponents", "Click here for help writing exponents and square roots.") \} + ${BBOLD}Help:${EBOLD} + \{ helpLink("exponents", "Click here for help writing exponents and square roots.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/radicals_simplifying/num_radicals_two_parts_02_ia.pg b/Contrib/Mizzou/Algebra/radicals_simplifying/num_radicals_two_parts_02_ia.pg index 3ecce8aa9a..8de03ecbef 100644 --- a/Contrib/Mizzou/Algebra/radicals_simplifying/num_radicals_two_parts_02_ia.pg +++ b/Contrib/Mizzou/Algebra/radicals_simplifying/num_radicals_two_parts_02_ia.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# +# # ENDDESCRIPTION ## DBsubject('Algebra') @@ -11,7 +11,7 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( @@ -20,7 +20,7 @@ loadMacros( "PeriodicRerandomization.pl", "contextLimitedPowers.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -53,7 +53,7 @@ package main; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); Context()->functions->set(sqrt=>{class=>'my::Function::numeric'}); @@ -99,7 +99,7 @@ if ($r2 == 2) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -114,7 +114,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### if (($case == 0 && $r1 % 2 != 0) || $case == 1) { $ans1 = Formula("-$a1"); @@ -190,13 +190,13 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} - \{ AnswerFormatHelp("exponents", "Click here for help writing exponents and square roots.") \} + ${BBOLD}Help:${EBOLD} + \{ helpLink("exponents", "Click here for help writing exponents and square roots.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/radicals_simplifying/simplify_quadratic_eq_expn.pg b/Contrib/Mizzou/Algebra/radicals_simplifying/simplify_quadratic_eq_expn.pg index 7fdac113b6..b344ec9e76 100644 --- a/Contrib/Mizzou/Algebra/radicals_simplifying/simplify_quadratic_eq_expn.pg +++ b/Contrib/Mizzou/Algebra/radicals_simplifying/simplify_quadratic_eq_expn.pg @@ -20,7 +20,7 @@ loadMacros( "PeriodicRerandomization.pl", "contextLimitedPowers.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -110,7 +110,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR ${BBOLD}Help:${EBOLD} - \{ AnswerFormatHelp("exponents", "Click here for help writing exponents and square roots.") \} + \{ helpLink("exponents", "Click here for help writing exponents and square roots.") \} $BR END_TEXT } diff --git a/Contrib/Mizzou/Algebra/radicals_simplifying/simplify_radicals_three_parts.pg b/Contrib/Mizzou/Algebra/radicals_simplifying/simplify_radicals_three_parts.pg index 9cdd0af270..c75bb3d00b 100644 --- a/Contrib/Mizzou/Algebra/radicals_simplifying/simplify_radicals_three_parts.pg +++ b/Contrib/Mizzou/Algebra/radicals_simplifying/simplify_radicals_three_parts.pg @@ -20,7 +20,7 @@ loadMacros( "PeriodicRerandomization.pl", "contextLimitedPowers.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -201,7 +201,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR ${BBOLD}Help:${EBOLD} - \{ AnswerFormatHelp("exponents", "Click here for help writing exponents and square roots.") \} + \{ helpLink("exponents", "Click here for help writing exponents and square roots.") \} $BR END_TEXT } diff --git a/Contrib/Mizzou/Algebra/radicals_simplifying/single_rad_01.pg b/Contrib/Mizzou/Algebra/radicals_simplifying/single_rad_01.pg index b80a4ceadd..58df9f86d4 100644 --- a/Contrib/Mizzou/Algebra/radicals_simplifying/single_rad_01.pg +++ b/Contrib/Mizzou/Algebra/radicals_simplifying/single_rad_01.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical expression') -## DBsubject('Algebra') -## DBchapter('Basic Algebra') -## DBsection('Exponents and Radicals') +## DBsubject('Algebra') +## DBchapter('Basic Algebra') +## DBsection('Exponents and Radicals') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -29,7 +29,7 @@ loadMacros( "PGunion.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "contextLimitedPowers.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -127,7 +127,7 @@ $BCENTER \( $expr = \text{ }~\) \{ans_rule(20)\} $ECENTER $BR -Write your answer using radical notation if necessary. +Write your answer using radical notation if necessary. END_TEXT ############################################################## @@ -145,14 +145,14 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR ${BBOLD}Help:${EBOLD} -To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to give \(\sqrt{7x}\) as an answer, you would type sqrt(7x). If you mistakenly type sqrt 7x instead, Webwork will take this to mean \(x \sqrt{7}\), not \(\sqrt{7x}\). That is, you MUST put parenthesis around everything that you want to take the square root of. +To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to give \(\sqrt{7x}\) as an answer, you would type sqrt(7x). If you mistakenly type sqrt 7x instead, Webwork will take this to mean \(x \sqrt{7}\), not \(\sqrt{7x}\). That is, you MUST put parenthesis around everything that you want to take the square root of. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/Algebra/radicals_simplifying/single_rad_02.pg b/Contrib/Mizzou/Algebra/radicals_simplifying/single_rad_02.pg index b5e21294fd..434536e8b1 100644 --- a/Contrib/Mizzou/Algebra/radicals_simplifying/single_rad_02.pg +++ b/Contrib/Mizzou/Algebra/radicals_simplifying/single_rad_02.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical expression') -## DBsubject('Algebra') -## DBchapter('Basic Algebra') -## DBsection('Exponents and Radicals') +## DBsubject('Algebra') +## DBchapter('Basic Algebra') +## DBsection('Exponents and Radicals') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -30,7 +30,7 @@ loadMacros( "MathObjects.pl", "parserMultiAnswer.pl", "contextLimitedPowers.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGcourse.pl" ); @@ -117,7 +117,7 @@ $BCENTER \( $expr = \) \{ans_rule(20)\} $ECENTER $BR - Write your answer using radical notation if necessary. + Write your answer using radical notation if necessary. END_TEXT if ($attempts_modp == 0 && $actualAttempts != 0) { @@ -132,14 +132,14 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { $PAR $BBOLD Help: $EBOLD -To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to give \(\sqrt{7x}\) as an answer, you would type sqrt(7x). If you mistakenly type sqrt 7x instead, Webwork will take this to mean \(x \sqrt{7}\), not \(\sqrt{7x}\). That is, you MUST put parenthesis around everything that you want to take the square root of. +To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to give \(\sqrt{7x}\) as an answer, you would type sqrt(7x). If you mistakenly type sqrt 7x instead, Webwork will take this to mean \(x \sqrt{7}\), not \(\sqrt{7x}\). That is, you MUST put parenthesis around everything that you want to take the square root of. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/Algebra/radicals_simplifying/single_rad_03.pg b/Contrib/Mizzou/Algebra/radicals_simplifying/single_rad_03.pg index 79cf700ab4..f854aec81f 100644 --- a/Contrib/Mizzou/Algebra/radicals_simplifying/single_rad_03.pg +++ b/Contrib/Mizzou/Algebra/radicals_simplifying/single_rad_03.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical expression') -## DBsubject('Algebra') -## DBchapter('Basic Algebra') -## DBsection('Exponents and Radicals') +## DBsubject('Algebra') +## DBchapter('Basic Algebra') +## DBsection('Exponents and Radicals') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -29,7 +29,7 @@ loadMacros( "PGunion.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "contextLimitedPowers.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -123,7 +123,7 @@ $PAR $BCENTER \( $expr = \text{ }~\) \{ans_rule(20)\} $ECENTER -$BR Write your answer using radical notation if necessary. +$BR Write your answer using radical notation if necessary. END_TEXT ############################################################## @@ -141,14 +141,14 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR ${BBOLD}Help:${EBOLD} -To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to give \(\sqrt{7x}\) as an answer, you would type sqrt(7x). If you mistakenly type sqrt 7x instead, Webwork will take this to mean \(x \sqrt{7}\), not \(\sqrt{7x}\). That is, you MUST put parenthesis around everything that you want to take the square root of. +To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to give \(\sqrt{7x}\) as an answer, you would type sqrt(7x). If you mistakenly type sqrt 7x instead, Webwork will take this to mean \(x \sqrt{7}\), not \(\sqrt{7x}\). That is, you MUST put parenthesis around everything that you want to take the square root of. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/Algebra/radicals_simplifying/single_rad_abs_val_01.pg b/Contrib/Mizzou/Algebra/radicals_simplifying/single_rad_abs_val_01.pg index d0d8c4348c..26f6dccf58 100644 --- a/Contrib/Mizzou/Algebra/radicals_simplifying/single_rad_abs_val_01.pg +++ b/Contrib/Mizzou/Algebra/radicals_simplifying/single_rad_abs_val_01.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical expression') -## DBsubject('Algebra') -## DBchapter('Basic Algebra') -## DBsection('Exponents and Radicals') +## DBsubject('Algebra') +## DBchapter('Basic Algebra') +## DBsection('Exponents and Radicals') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -29,7 +29,7 @@ loadMacros( "PGunion.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "contextLimitedPowers.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -120,7 +120,7 @@ $BCENTER \( $expr = \text{ }~\) \{ans_rule(20)\} $ECENTER $BR -Write your answer using radical notation if necessary. +Write your answer using radical notation if necessary. END_TEXT ############################################################## @@ -138,14 +138,14 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR ${BBOLD}Help:${EBOLD} -To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to give \(\sqrt{7x}\) as an answer, you would type sqrt(7x). If you mistakenly type sqrt 7x instead, Webwork will take this to mean \(x \sqrt{7}\), not \(\sqrt{7x}\). That is, you MUST put parenthesis around everything that you want to take the square root of. +To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to give \(\sqrt{7x}\) as an answer, you would type sqrt(7x). If you mistakenly type sqrt 7x instead, Webwork will take this to mean \(x \sqrt{7}\), not \(\sqrt{7x}\). That is, you MUST put parenthesis around everything that you want to take the square root of. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/Algebra/radicals_simplifying/single_rad_fractions_01.pg b/Contrib/Mizzou/Algebra/radicals_simplifying/single_rad_fractions_01.pg index b3c7823e8b..29231137f7 100644 --- a/Contrib/Mizzou/Algebra/radicals_simplifying/single_rad_fractions_01.pg +++ b/Contrib/Mizzou/Algebra/radicals_simplifying/single_rad_fractions_01.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical expression') -## DBsubject('Algebra') -## DBchapter('Basic Algebra') -## DBsection('Exponents and Radicals') +## DBsubject('Algebra') +## DBchapter('Basic Algebra') +## DBsection('Exponents and Radicals') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "PGunion.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "contextLimitedPowers.pl", @@ -86,7 +86,7 @@ $BCENTER \($expr = \text{ }\) \{ANS_RULE(10)\} $ECENTER $BR - Write your answer using radical notation if necessary. + Write your answer using radical notation if necessary. END_TEXT @@ -100,15 +100,15 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR -${BBOLD}Help:${EBOLD} -To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to give \(\sqrt{7x}\) as an answer, you would type sqrt(7x). If you mistakenly type sqrt 7x instead, Webwork will take this to mean \(x \sqrt{7}\), not \(\sqrt{7x}\). That is, you MUST put parenthesis around everything that you want to take the square root of. +${BBOLD}Help:${EBOLD} +To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to give \(\sqrt{7x}\) as an answer, you would type sqrt(7x). If you mistakenly type sqrt 7x instead, Webwork will take this to mean \(x \sqrt{7}\), not \(\sqrt{7x}\). That is, you MUST put parenthesis around everything that you want to take the square root of. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/Algebra/radicals_simplifying/single_rad_fractions_02.pg b/Contrib/Mizzou/Algebra/radicals_simplifying/single_rad_fractions_02.pg index f91442df61..17fefef33f 100644 --- a/Contrib/Mizzou/Algebra/radicals_simplifying/single_rad_fractions_02.pg +++ b/Contrib/Mizzou/Algebra/radicals_simplifying/single_rad_fractions_02.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# +# # ENDDESCRIPTION ## DBsubject('Algebra') @@ -11,7 +11,7 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( @@ -21,7 +21,7 @@ loadMacros( "contextLimitedPowers.pl", "parserMultiAnswer.pl", "unionTables.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -31,7 +31,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); LimitedPowers::OnlyPositiveIntegers(); @@ -105,7 +105,7 @@ if ($displayMode eq 'TeX') { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -115,12 +115,12 @@ $BCENTER $displayfrac $ECENTER $BR -Write your answer using radical notation if necessary. +Write your answer using radical notation if necessary. END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($multians->cmp()); @@ -139,12 +139,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR ${BBOLD}Help:${EBOLD} - \{ AnswerFormatHelp("exponents", "Click here for help writing exponents and square roots.") \} + \{ helpLink("exponents", "Click here for help writing exponents and square roots.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/radicals_simplifying/single_rad_fractions_03_ia.pg b/Contrib/Mizzou/Algebra/radicals_simplifying/single_rad_fractions_03_ia.pg index 98810113e8..33765f8fab 100644 --- a/Contrib/Mizzou/Algebra/radicals_simplifying/single_rad_fractions_03_ia.pg +++ b/Contrib/Mizzou/Algebra/radicals_simplifying/single_rad_fractions_03_ia.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# +# # ENDDESCRIPTION ## DBsubject('Algebra') @@ -11,7 +11,7 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( @@ -20,7 +20,7 @@ loadMacros( "PeriodicRerandomization.pl", "contextLimitedPowers.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -53,7 +53,7 @@ package main; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); Context()->functions->set(sqrt=>{class=>'my::Function::numeric'}); @@ -65,7 +65,7 @@ for ($i = 0; $i < random(20,50); $i++) { ## more random?? $case1 == random(0,1,1); # 0 - make negative, 1 - not $case2 == random(0,1,1); # nothing if root is not odd root, if odd 0 - neg inside, 1 - neg out $r2 = random(2,5,1); -} +} if ($r2 == 2) { $b = list_random(3,4,5,6,7,8,9,10,11,12,13,14,15,20); @@ -78,7 +78,7 @@ $br = ($b)**$r2; $p21 = random(2,13)*$r2; -do {$p22 = random(2,13)*$r2} until ($p22 != $p21); +do {$p22 = random(2,13)*$r2} until ($p22 != $p21); $k21 = $p21/$r2; $k22 = $p22/$r2; @@ -114,7 +114,7 @@ if ($r2 == 2) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -127,7 +127,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS( $ans1-> cmp( checker => sub { my ($correct,$student,$ans) = @_; @@ -166,13 +166,13 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} - \{ AnswerFormatHelp("exponents", "Click here for help writing exponents and square roots.") \} + ${BBOLD}Help:${EBOLD} + \{ helpLink("exponents", "Click here for help writing exponents and square roots.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization, constant in bottom always'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/radicals_simplifying/single_rad_fractions_04_ia.pg b/Contrib/Mizzou/Algebra/radicals_simplifying/single_rad_fractions_04_ia.pg index 95146dd148..311b5d9bad 100644 --- a/Contrib/Mizzou/Algebra/radicals_simplifying/single_rad_fractions_04_ia.pg +++ b/Contrib/Mizzou/Algebra/radicals_simplifying/single_rad_fractions_04_ia.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# +# # ENDDESCRIPTION ## DBsubject('Algebra') @@ -11,7 +11,7 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( @@ -20,7 +20,7 @@ loadMacros( "PeriodicRerandomization.pl", "contextLimitedPowers.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -53,7 +53,7 @@ package main; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); Context()->functions->set(sqrt=>{class=>'my::Function::numeric'}); @@ -77,7 +77,7 @@ $case2 == random(0,1,1); # nothing if root is not odd root, if odd 0 - neg insid $p21 = random(2,13)*$r2; -do {$p22 = random(2,13)*$r2} until ($p22 != $p21); +do {$p22 = random(2,13)*$r2} until ($p22 != $p21); $k21 = $p21/$r2; $k22 = $p22/$r2; @@ -113,7 +113,7 @@ if ($r2 == 2) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -126,7 +126,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS( $ans1-> cmp( checker => sub { my ($correct,$student,$ans) = @_; @@ -165,13 +165,13 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} - \{ AnswerFormatHelp("exponents", "Click here for help writing exponents and square roots.") \} + ${BBOLD}Help:${EBOLD} + \{ helpLink("exponents", "Click here for help writing exponents and square roots.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization, const in top always'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/radicals_simplifying/three_rad_add_sub_01.pg b/Contrib/Mizzou/Algebra/radicals_simplifying/three_rad_add_sub_01.pg index 6839160ce0..b49f20b1e8 100644 --- a/Contrib/Mizzou/Algebra/radicals_simplifying/three_rad_add_sub_01.pg +++ b/Contrib/Mizzou/Algebra/radicals_simplifying/three_rad_add_sub_01.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical expression') -## DBsubject('Algebra') -## DBchapter('Basic Algebra') -## DBsection('Exponents and Radicals') +## DBsubject('Algebra') +## DBchapter('Basic Algebra') +## DBsection('Exponents and Radicals') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -29,7 +29,7 @@ loadMacros( "PGunion.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "contextLimitedPowers.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -124,7 +124,7 @@ $PAR $BCENTER \( $expr = \text{ }~\) \{ans_rule(20)\} $ECENTER -$BR Write your answer using radical notation if necessary. +$BR Write your answer using radical notation if necessary. END_TEXT @@ -139,14 +139,14 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR ${BBOLD}Help:${EBOLD} - -To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to give \(\sqrt{7x}\) as an answer, you would type sqrt(7x). If you mistakenly type sqrt 7x instead, Webwork will take this to mean \(x \sqrt{7}\), not \(\sqrt{7x}\). That is, you MUST put parenthesis around everything that you want to take the square root of. + +To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to give \(\sqrt{7x}\) as an answer, you would type sqrt(7x). If you mistakenly type sqrt 7x instead, Webwork will take this to mean \(x \sqrt{7}\), not \(\sqrt{7x}\). That is, you MUST put parenthesis around everything that you want to take the square root of. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/Algebra/radicals_simplifying/two_rad_add_sub_01.pg b/Contrib/Mizzou/Algebra/radicals_simplifying/two_rad_add_sub_01.pg index d09eef195e..6bf3e36c30 100644 --- a/Contrib/Mizzou/Algebra/radicals_simplifying/two_rad_add_sub_01.pg +++ b/Contrib/Mizzou/Algebra/radicals_simplifying/two_rad_add_sub_01.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical expression') -## DBsubject('Algebra') -## DBchapter('Basic Algebra') -## DBsection('Exponents and Radicals') +## DBsubject('Algebra') +## DBchapter('Basic Algebra') +## DBsection('Exponents and Radicals') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -30,7 +30,7 @@ loadMacros( "MathObjects.pl", "parserMultiAnswer.pl", "contextLimitedPowers.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGcourse.pl" ); @@ -122,7 +122,7 @@ $PAR $BCENTER \($expr = \text{ }\) \{ANS_RULE(10)\} $ECENTER -$BR Write your answer using radical notation if necessary. +$BR Write your answer using radical notation if necessary. END_TEXT @@ -137,14 +137,14 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR ${BBOLD}Help:${EBOLD} - -To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to give \(\sqrt{7x}\) as an answer, you would type sqrt(7x). If you mistakenly type sqrt 7x instead, Webwork will take this to mean \(x \sqrt{7}\), not \(\sqrt{7x}\). That is, you MUST put parenthesis around everything that you want to take the square root of. + +To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to give \(\sqrt{7x}\) as an answer, you would type sqrt(7x). If you mistakenly type sqrt 7x instead, Webwork will take this to mean \(x \sqrt{7}\), not \(\sqrt{7x}\). That is, you MUST put parenthesis around everything that you want to take the square root of. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); @@ -155,7 +155,7 @@ $showPartialCorrectAnswers = 0; Context()->flags->set( tolerance=>0.0000001, tolType=>"absolute" ); -ANS(Compute($ans)->cmp); +ANS(Compute($ans)->cmp); #made tolerance obnoxiously low so students can't enter a decimal. COMMENT('MathObject version'); diff --git a/Contrib/Mizzou/Algebra/radicals_simplifying/two_rad_add_sub_02.pg b/Contrib/Mizzou/Algebra/radicals_simplifying/two_rad_add_sub_02.pg index 21858b3afa..146cf78db5 100644 --- a/Contrib/Mizzou/Algebra/radicals_simplifying/two_rad_add_sub_02.pg +++ b/Contrib/Mizzou/Algebra/radicals_simplifying/two_rad_add_sub_02.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# +# # ENDDESCRIPTION ## DBsubject('Algebra') @@ -11,14 +11,14 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -51,7 +51,7 @@ package main; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @vars = ("x","y","z","a","b","c","p","q","r"); @@ -116,7 +116,7 @@ Context()->operators->undefine("+", "-"); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -126,12 +126,12 @@ $BCENTER \($disp = \) \{ans_rule(15)\} $ECENTER $BR -Write your answer using radical notation if necessary. +Write your answer using radical notation if necessary. END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS( $ans-> cmp( checker => sub { my ($correct,$student,$ans) = @_; @@ -170,13 +170,13 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} - \{ AnswerFormatHelp("exponents", "Click here for help writing exponents and square roots.") \} + ${BBOLD}Help:${EBOLD} + \{ helpLink("exponents", "Click here for help writing exponents and square roots.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/radicals_simplifying/two_rad_fractions_01.pg b/Contrib/Mizzou/Algebra/radicals_simplifying/two_rad_fractions_01.pg index 0cdd606c65..36d72ff04b 100644 --- a/Contrib/Mizzou/Algebra/radicals_simplifying/two_rad_fractions_01.pg +++ b/Contrib/Mizzou/Algebra/radicals_simplifying/two_rad_fractions_01.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical expression') -## DBsubject('Algebra') -## DBchapter('Basic Algebra') -## DBsection('Exponents and Radicals') +## DBsubject('Algebra') +## DBchapter('Basic Algebra') +## DBsection('Exponents and Radicals') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "PGunion.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "contextFraction.pl", @@ -92,8 +92,8 @@ $multians = MultiAnswer($num, $den)->with( my ( $correct, $student, $self ) = @_; my ( $f1stu, $f2stu ) = @{$student}; my ( $f1, $f2 ) = @{$correct}; - - if ( ( $f1==$f1stu && $f2==$f2stu) || + + if ( ( $f1==$f1stu && $f2==$f2stu) || (-$f1==$f1stu && -$f2==$f2stu) ) { return [1,1]; } elsif ( $f1==$f1stu || -$f1==$f1stu) { @@ -139,7 +139,7 @@ $PAR $BCENTER $displayfrac $ECENTER -$BR Write your answer using radical notation if necessary. +$BR Write your answer using radical notation if necessary. END_TEXT @@ -155,14 +155,14 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR ${BBOLD}Help:${EBOLD} -To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to give \(\sqrt{7x}\) as an answer, you would type sqrt(7x). If you mistakenly type sqrt 7x instead, Webwork will take this to mean \(x \sqrt{7}\), not \(\sqrt{7x}\). That is, you MUST put parenthesis around everything that you want to take the square root of. +To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to give \(\sqrt{7x}\) as an answer, you would type sqrt(7x). If you mistakenly type sqrt 7x instead, Webwork will take this to mean \(x \sqrt{7}\), not \(\sqrt{7x}\). That is, you MUST put parenthesis around everything that you want to take the square root of. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/Algebra/radicals_simplifying/two_rad_fractions_02.pg b/Contrib/Mizzou/Algebra/radicals_simplifying/two_rad_fractions_02.pg index 23db77fa9c..ceb1632f87 100644 --- a/Contrib/Mizzou/Algebra/radicals_simplifying/two_rad_fractions_02.pg +++ b/Contrib/Mizzou/Algebra/radicals_simplifying/two_rad_fractions_02.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical expression') -## DBsubject('Algebra') -## DBchapter('Basic Algebra') -## DBsection('Exponents and Radicals') +## DBsubject('Algebra') +## DBchapter('Basic Algebra') +## DBsection('Exponents and Radicals') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "PGunion.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -83,7 +83,7 @@ $multians = MultiAnswer($num, $den)->with( my ( $f1stu, $f2stu ) = @{$student}; my ( $f1, $f2 ) = @{$correct}; -if (( $f1==$f1stu && $f2==$f2stu) || (-$f1==$f1stu && -$f2==$f2stu)) {return [1,1];} +if (( $f1==$f1stu && $f2==$f2stu) || (-$f1==$f1stu && -$f2==$f2stu)) {return [1,1];} elsif ( $f1==$f1stu || -$f1==$f1stu) {return [1,0];} elsif ( ($numbogus==$f1stu || -$numbogus==$f1stu) || ($denbogus==$f2stu || -$denbogus==$f2stu) ) { @@ -128,7 +128,7 @@ $BCENTER $displayfrac $ECENTER $BR - Write your answer using radical notation if necessary. + Write your answer using radical notation if necessary. END_TEXT @@ -144,14 +144,14 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR ${BBOLD}Help:${EBOLD} -To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to give \(\sqrt{7x}\) as an answer, you would type sqrt(7x). If you mistakenly type sqrt 7x instead, Webwork will take this to mean \(x \sqrt{7}\), not \(\sqrt{7x}\). That is, you MUST put parenthesis around everything that you want to take the square root of. +To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to give \(\sqrt{7x}\) as an answer, you would type sqrt(7x). If you mistakenly type sqrt 7x instead, Webwork will take this to mean \(x \sqrt{7}\), not \(\sqrt{7x}\). That is, you MUST put parenthesis around everything that you want to take the square root of. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/Algebra/radicals_simplifying/two_rad_fractions_03.pg b/Contrib/Mizzou/Algebra/radicals_simplifying/two_rad_fractions_03.pg index c92a2358bb..a3681acf72 100644 --- a/Contrib/Mizzou/Algebra/radicals_simplifying/two_rad_fractions_03.pg +++ b/Contrib/Mizzou/Algebra/radicals_simplifying/two_rad_fractions_03.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# +# # ENDDESCRIPTION ## DBsubject('Algebra') @@ -11,7 +11,7 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( @@ -21,7 +21,7 @@ loadMacros( "contextLimitedPowers.pl", "parserMultiAnswer.pl", "unionTables.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -31,7 +31,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); LimitedPowers::OnlyPositiveIntegers(); @@ -55,7 +55,7 @@ $ar = ($a)**($r+1); $b = $ar*$c; $ap1 = ($p1-$p2) % $r; -$ap2 = floor(($p1 - $p2)/$r); +$ap2 = floor(($p1 - $p2)/$r); $aq1 = ($q1-$q2) % $r; $aq2 = floor(($q1-$q2)/$r); @@ -98,8 +98,8 @@ $multians = MultiAnswer($num, $den)->with( my ( $correct, $student, $self ) = @_; my ( $f1stu, $f2stu ) = @{$student}; my ( $f1, $f2 ) = @{$correct}; - - if ( ( $f1==$f1stu && $f2==$f2stu) || + + if ( ( $f1==$f1stu && $f2==$f2stu) || (-$f1==$f1stu && -$f2==$f2stu) ) { return [1,1]; } elsif ( $f1==$f1stu || -$f1==$f1stu) { @@ -135,7 +135,7 @@ if ($displayMode eq 'TeX') { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -145,12 +145,12 @@ $BCENTER $displayfrac $ECENTER $BR -Write your answer using radical notation if necessary. +Write your answer using radical notation if necessary. END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### # Context()->variables->set(x=>{limits=>[1/9,2]}); ANS($multians->cmp()); @@ -170,12 +170,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR ${BBOLD}Help:${EBOLD} - \{ AnswerFormatHelp("exponents", "Click here for help writing exponents and square roots.") \} + \{ helpLink("exponents", "Click here for help writing exponents and square roots.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/radicals_simplifying/two_rad_fractions_04.pg b/Contrib/Mizzou/Algebra/radicals_simplifying/two_rad_fractions_04.pg index 930ab2b4d7..36f7f493f7 100644 --- a/Contrib/Mizzou/Algebra/radicals_simplifying/two_rad_fractions_04.pg +++ b/Contrib/Mizzou/Algebra/radicals_simplifying/two_rad_fractions_04.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# +# # ENDDESCRIPTION ## DBsubject('Algebra') @@ -11,7 +11,7 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( @@ -21,7 +21,7 @@ loadMacros( "contextLimitedPowers.pl", "parserMultiAnswer.pl", "unionTables.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -31,7 +31,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); LimitedPowers::OnlyPositiveIntegers(); @@ -103,7 +103,7 @@ if ($displayMode eq 'TeX') { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -113,12 +113,12 @@ $BCENTER $displayfrac $ECENTER $BR -Write your answer using radical notation if necessary. +Write your answer using radical notation if necessary. END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($multians->cmp()); @@ -137,12 +137,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR ${BBOLD}Help:${EBOLD} - \{ AnswerFormatHelp("exponents", "Click here for help writing exponents and square roots.") \} + \{ helpLink("exponents", "Click here for help writing exponents and square roots.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/radicals_simplifying/two_rad_mult_01.pg b/Contrib/Mizzou/Algebra/radicals_simplifying/two_rad_mult_01.pg index 047105427a..498827f60f 100644 --- a/Contrib/Mizzou/Algebra/radicals_simplifying/two_rad_mult_01.pg +++ b/Contrib/Mizzou/Algebra/radicals_simplifying/two_rad_mult_01.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical expression') -## DBsubject('Algebra') -## DBchapter('Basic Algebra') -## DBsection('Exponents and Radicals') +## DBsubject('Algebra') +## DBchapter('Basic Algebra') +## DBsection('Exponents and Radicals') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "PGunion.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -78,7 +78,7 @@ $PAR $BCENTER \( \sqrt[$n]{($var + $a)^{$exp1}} \sqrt[$n]{($var + $a)^{$exp2}} = \text{ }\) \{ANS_RULE(10)\} $ECENTER -$BR Write your answer using radical notation if necessary. +$BR Write your answer using radical notation if necessary. END_TEXT @@ -93,15 +93,15 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR ${BBOLD}Help:${EBOLD} - -To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to give \(\sqrt{7x}\) as an answer, you would type sqrt(7x). If you mistakenly type sqrt 7x instead, Webwork will take this to mean \(x \sqrt{7}\), not \(\sqrt{7x}\). That is, you MUST put parenthesis around everything that you want to take the square root of. + +To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to give \(\sqrt{7x}\) as an answer, you would type sqrt(7x). If you mistakenly type sqrt 7x instead, Webwork will take this to mean \(x \sqrt{7}\), not \(\sqrt{7x}\). That is, you MUST put parenthesis around everything that you want to take the square root of. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/Algebra/radicals_simplifying/two_rad_mult_02.pg b/Contrib/Mizzou/Algebra/radicals_simplifying/two_rad_mult_02.pg index fcceb48d25..4cd2e701b7 100644 --- a/Contrib/Mizzou/Algebra/radicals_simplifying/two_rad_mult_02.pg +++ b/Contrib/Mizzou/Algebra/radicals_simplifying/two_rad_mult_02.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical expression') -## DBsubject('Algebra') -## DBchapter('Basic Algebra') -## DBsection('Exponents and Radicals') +## DBsubject('Algebra') +## DBchapter('Basic Algebra') +## DBsection('Exponents and Radicals') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -30,7 +30,7 @@ loadMacros( "MathObjects.pl", "parserMultiAnswer.pl", "contextLimitedPowers.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGcourse.pl" ); @@ -114,12 +114,12 @@ $texanswer = "\($b \sqrt{$ac}\)"; ############################################################## BEGIN_TEXT -Simplify. +Simplify. $PAR $BCENTER \( $expr = \text{ }~\) \{ans_rule(20)\} $ECENTER -$BR Write your answer using radical notation if necessary. +$BR Write your answer using radical notation if necessary. END_TEXT @@ -134,14 +134,14 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR ${BBOLD}Help:${EBOLD} - -To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to give \(\sqrt{7x}\) as an answer, you would type sqrt(7x). If you mistakenly type sqrt 7x instead, Webwork will take this to mean \(x \sqrt{7}\), not \(\sqrt{7x}\). That is, you MUST put parenthesis around everything that you want to take the square root of. + +To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to give \(\sqrt{7x}\) as an answer, you would type sqrt(7x). If you mistakenly type sqrt 7x instead, Webwork will take this to mean \(x \sqrt{7}\), not \(\sqrt{7x}\). That is, you MUST put parenthesis around everything that you want to take the square root of. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/Algebra/radicals_simplifying/two_rad_mult_03.pg b/Contrib/Mizzou/Algebra/radicals_simplifying/two_rad_mult_03.pg index d5967ed96b..22308b08e7 100644 --- a/Contrib/Mizzou/Algebra/radicals_simplifying/two_rad_mult_03.pg +++ b/Contrib/Mizzou/Algebra/radicals_simplifying/two_rad_mult_03.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical expression') -## DBsubject('Algebra') -## DBchapter('Basic Algebra') -## DBsection('Exponents and Radicals') +## DBsubject('Algebra') +## DBchapter('Basic Algebra') +## DBsection('Exponents and Radicals') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "PGunion.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "contextLimitedPowers.pl", "PeriodicRerandomization.pl", @@ -127,7 +127,7 @@ $PAR $BCENTER \( $expr = \text{ }~\) \{ans_rule(20)\} $ECENTER -$BR Write your answer using radical notation if necessary. +$BR Write your answer using radical notation if necessary. END_TEXT @@ -142,14 +142,14 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR ${BBOLD}Help:${EBOLD} - -To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to give \(\sqrt{7x}\) as an answer, you would type sqrt(7x). If you mistakenly type sqrt 7x instead, Webwork will take this to mean \(x \sqrt{7}\), not \(\sqrt{7x}\). That is, you MUST put parenthesis around everything that you want to take the square root of. + +To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to give \(\sqrt{7x}\) as an answer, you would type sqrt(7x). If you mistakenly type sqrt 7x instead, Webwork will take this to mean \(x \sqrt{7}\), not \(\sqrt{7x}\). That is, you MUST put parenthesis around everything that you want to take the square root of. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/Algebra/radicals_simplifying/two_rad_mult_04_ia.pg b/Contrib/Mizzou/Algebra/radicals_simplifying/two_rad_mult_04_ia.pg index 778b7f47d6..92fc067318 100644 --- a/Contrib/Mizzou/Algebra/radicals_simplifying/two_rad_mult_04_ia.pg +++ b/Contrib/Mizzou/Algebra/radicals_simplifying/two_rad_mult_04_ia.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical expression') -## DBsubject('Algebra') -## DBchapter('Basic Algebra') -## DBsection('Exponents and Radicals') +## DBsubject('Algebra') +## DBchapter('Basic Algebra') +## DBsection('Exponents and Radicals') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -23,7 +23,7 @@ loadMacros( "PGstandard.pl", "PGunion.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -73,7 +73,7 @@ $PAR $BCENTER \( \sqrt[$n]{$var^{$exp1}} \sqrt[$n]{$var^{$exp2}} = \) \{ANS_RULE(10)\} $ECENTER -$BR Write your answer using radical notation if necessary. +$BR Write your answer using radical notation if necessary. END_TEXT @@ -88,15 +88,15 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR ${BBOLD}Help:${EBOLD} - -\{ AnswerFormatHelp("exponents", "Click here for help writing exponents and square roots.") \} + +\{ helpLink("exponents", "Click here for help writing exponents and square roots.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/Algebra/radicals_simplifying/var_radicals_two_parts_01_ia.pg b/Contrib/Mizzou/Algebra/radicals_simplifying/var_radicals_two_parts_01_ia.pg index 4bc27f6613..a3e6fc922b 100644 --- a/Contrib/Mizzou/Algebra/radicals_simplifying/var_radicals_two_parts_01_ia.pg +++ b/Contrib/Mizzou/Algebra/radicals_simplifying/var_radicals_two_parts_01_ia.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# +# # ENDDESCRIPTION ## DBsubject('Algebra') @@ -11,7 +11,7 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( @@ -20,7 +20,7 @@ loadMacros( "PeriodicRerandomization.pl", "contextLimitedPowers.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -53,7 +53,7 @@ package main; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); Context()->functions->set(sqrt=>{class=>'my::Function::numeric'}); @@ -84,7 +84,7 @@ do { $k12 = $p12/$r1; $p21 = random(2,13)*$r2; - do {$p22 = random(2,13)*$r2} until ($p22 != $p21); + do {$p22 = random(2,13)*$r2} until ($p22 != $p21); $k21 = $p21/$r2; $k22 = $p22/$r2; } until ($k21 != $k11 && $k22 != $k12); @@ -106,7 +106,7 @@ $ans2 = Formula("$b x^{$k21} y^{$k22}"); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -121,7 +121,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS( $ans1-> cmp( checker => sub { my ($correct,$student,$ans) = @_; @@ -183,13 +183,13 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} - \{ AnswerFormatHelp("exponents", "Click here for help writing exponents and square roots.") \} + ${BBOLD}Help:${EBOLD} + \{ helpLink("exponents", "Click here for help writing exponents and square roots.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/rational_expressions_domain/domain_01.pg b/Contrib/Mizzou/Algebra/rational_expressions_domain/domain_01.pg index 650f94f8a6..23ef770c1d 100644 --- a/Contrib/Mizzou/Algebra/rational_expressions_domain/domain_01.pg +++ b/Contrib/Mizzou/Algebra/rational_expressions_domain/domain_01.pg @@ -27,7 +27,7 @@ loadMacros( "PeriodicRerandomization.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "PGcourse.pl" @@ -54,21 +54,21 @@ $dom = Compute("(-inf,0) U (0, inf)"); ## Answers ANS( $dom->cmp() ); - + Context("Numeric"); ################################################ # Main text Context()->texStrings; BEGIN_TEXT -Find the domain of +Find the domain of $PAR \[ $f \] -$PAR +$PAR Write your answer in interval notation. $PAR -Domain: \{ans_rule(20)\} $SPACE $SPACE \{ AnswerFormatHelp("inequalities", "Click here for help using interval notation") \}. +Domain: \{ans_rule(20)\} $SPACE $SPACE \{ helpLink("inequalities", "Click here for help using interval notation") \}. END_TEXT if ($attempts_modp == 0 && $actualAttempts != 0) { @@ -86,7 +86,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ diff --git a/Contrib/Mizzou/Algebra/rational_expressions_domain/domain_02.pg b/Contrib/Mizzou/Algebra/rational_expressions_domain/domain_02.pg index 5d761da32e..0534855b54 100644 --- a/Contrib/Mizzou/Algebra/rational_expressions_domain/domain_02.pg +++ b/Contrib/Mizzou/Algebra/rational_expressions_domain/domain_02.pg @@ -27,7 +27,7 @@ loadMacros( "PeriodicRerandomization.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "PGcourse.pl" @@ -55,7 +55,7 @@ $texanswer = "\( \left(-\infty, \frac{$b}{$c}\right) \cup \left(\frac{$b}{$c},\i ## Answers ANS( $dom->cmp() ); - + Context("Numeric"); ################################################ # Main text @@ -69,7 +69,7 @@ $f $PAR Write your answer in interval notation. $PAR -Domain: \{ans_rule(20)\} $SPACE $SPACE \{ AnswerFormatHelp("inequalities", "Click here for help using interval notation") \}. +Domain: \{ans_rule(20)\} $SPACE $SPACE \{ helpLink("inequalities", "Click here for help using interval notation") \}. END_TEXT if ($attempts_modp == 0 && $actualAttempts != 0) { @@ -87,7 +87,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ # Answer evaluation diff --git a/Contrib/Mizzou/Algebra/rational_expressions_domain/domain_03.pg b/Contrib/Mizzou/Algebra/rational_expressions_domain/domain_03.pg index 40e0d88cd9..568590c85e 100644 --- a/Contrib/Mizzou/Algebra/rational_expressions_domain/domain_03.pg +++ b/Contrib/Mizzou/Algebra/rational_expressions_domain/domain_03.pg @@ -27,7 +27,7 @@ loadMacros( "PeriodicRerandomization.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "PGcourse.pl" @@ -57,14 +57,14 @@ $dom = Compute("(-inf,0)U (0, $b) U ($b, inf)"); ## Answers ANS( $dom->cmp() ); - + Context("Numeric"); ################################################ # Main text Context()->texStrings; BEGIN_TEXT -Find the domain +Find the domain $BR \[ $f @@ -72,7 +72,7 @@ $f $PAR Write your answer in interval notation. $PAR -Domain: \{ans_rule(20)\} $SPACE $SPACE \{ AnswerFormatHelp("inequalities", "Click here for help using interval notation") \}. +Domain: \{ans_rule(20)\} $SPACE $SPACE \{ helpLink("inequalities", "Click here for help using interval notation") \}. END_TEXT if ($attempts_modp == 0 && $actualAttempts != 0) { @@ -90,7 +90,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ diff --git a/Contrib/Mizzou/Algebra/rational_expressions_domain/domain_04.pg b/Contrib/Mizzou/Algebra/rational_expressions_domain/domain_04.pg index 89f9cbd5f8..8536e09245 100644 --- a/Contrib/Mizzou/Algebra/rational_expressions_domain/domain_04.pg +++ b/Contrib/Mizzou/Algebra/rational_expressions_domain/domain_04.pg @@ -27,7 +27,7 @@ loadMacros( "PeriodicRerandomization.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "PGcourse.pl" @@ -60,7 +60,7 @@ if ($m < $n) { ## Answers ANS( $dom->cmp() ); - + Context("Numeric"); ################################################ # Main text @@ -74,7 +74,7 @@ $f $BR Write your answer in interval notation. $PAR -Domain: \{ans_rule(20)\} $SPACE $SPACE \{ AnswerFormatHelp("inequalities", "Click here for help using interval notation") \}. +Domain: \{ans_rule(20)\} $SPACE $SPACE \{ helpLink("inequalities", "Click here for help using interval notation") \}. END_TEXT Context()->texStrings; if ($attempts_modp == 0 && $actualAttempts != 0) { @@ -92,7 +92,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/Algebra/real_numbers_interval_notation/conv_to_int_not_all_types.pg b/Contrib/Mizzou/Algebra/real_numbers_interval_notation/conv_to_int_not_all_types.pg index 63406fdab2..8366a99cf5 100644 --- a/Contrib/Mizzou/Algebra/real_numbers_interval_notation/conv_to_int_not_all_types.pg +++ b/Contrib/Mizzou/Algebra/real_numbers_interval_notation/conv_to_int_not_all_types.pg @@ -13,12 +13,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -30,7 +30,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Interval"); $a = random(-100,-15,1); @@ -76,7 +76,7 @@ if ($case == 1) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -87,7 +87,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ans->cmp()); @@ -105,12 +105,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited and updated in 2012/2013. $BR diff --git a/Contrib/Mizzou/Algebra/real_numbers_interval_notation/conv_to_int_not_infinity.pg b/Contrib/Mizzou/Algebra/real_numbers_interval_notation/conv_to_int_not_infinity.pg index d0c6ff64b6..072dae3d4a 100644 --- a/Contrib/Mizzou/Algebra/real_numbers_interval_notation/conv_to_int_not_infinity.pg +++ b/Contrib/Mizzou/Algebra/real_numbers_interval_notation/conv_to_int_not_infinity.pg @@ -13,12 +13,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -30,7 +30,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Interval"); $a = random(-100,100,1); @@ -51,7 +51,7 @@ if ($case == 1) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -62,7 +62,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ans->cmp()); @@ -80,12 +80,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited and updated in 2012/2013. $BR diff --git a/Contrib/Mizzou/Algebra/real_numbers_interval_notation/conv_to_int_not_intersection.pg b/Contrib/Mizzou/Algebra/real_numbers_interval_notation/conv_to_int_not_intersection.pg index b5d0f47253..0a21251103 100644 --- a/Contrib/Mizzou/Algebra/real_numbers_interval_notation/conv_to_int_not_intersection.pg +++ b/Contrib/Mizzou/Algebra/real_numbers_interval_notation/conv_to_int_not_intersection.pg @@ -13,7 +13,7 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); @@ -23,7 +23,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Interval"); $a = random(-100,-15,1); @@ -45,7 +45,7 @@ if ($case == 1) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -56,7 +56,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ans->cmp()); @@ -74,12 +74,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); # DESCRIPTION # Asks to convert given set notation to interval notation, always intersection. @@ -96,12 +96,12 @@ PeriodicStatus(); ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -113,7 +113,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Interval"); $a = random(-100,-15,1); @@ -135,7 +135,7 @@ if ($case == 1) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -146,7 +146,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ans->cmp()); @@ -164,12 +164,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited and updated in 2012/2013. $BR diff --git a/Contrib/Mizzou/Algebra/real_numbers_interval_notation/conv_to_int_not_two_prts_intsn_union.pg b/Contrib/Mizzou/Algebra/real_numbers_interval_notation/conv_to_int_not_two_prts_intsn_union.pg index 5447bedd35..4d6082857d 100644 --- a/Contrib/Mizzou/Algebra/real_numbers_interval_notation/conv_to_int_not_two_prts_intsn_union.pg +++ b/Contrib/Mizzou/Algebra/real_numbers_interval_notation/conv_to_int_not_two_prts_intsn_union.pg @@ -13,12 +13,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -30,7 +30,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Interval"); $a = random(-100,-15,1); @@ -77,11 +77,11 @@ if ($showfirst == 1) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT -Write in interval notation: +Write in interval notation: $PAR (a) \(${LBRACE} x \mbox{ }|\mbox{ } $dispineq1 ${RBRACE}\): \{ans_rule(20)\} $PAR @@ -90,7 +90,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ans1->cmp()); ANS($ans2->cmp()); @@ -103,7 +103,7 @@ ANS($ans2->cmp()); if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR - ${BBOLD}Answers:${EBOLD} + ${BBOLD}Answers:${EBOLD} $PAR (a) \($ans1\) $PAR @@ -113,12 +113,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited and updated in 2012/2013. $BR diff --git a/Contrib/Mizzou/Algebra/real_numbers_interval_notation/conv_to_int_not_union.pg b/Contrib/Mizzou/Algebra/real_numbers_interval_notation/conv_to_int_not_union.pg index b986bcd52d..77634c30c6 100644 --- a/Contrib/Mizzou/Algebra/real_numbers_interval_notation/conv_to_int_not_union.pg +++ b/Contrib/Mizzou/Algebra/real_numbers_interval_notation/conv_to_int_not_union.pg @@ -13,12 +13,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -30,7 +30,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Interval"); $a = random(-100,-15,1); @@ -52,7 +52,7 @@ if ($case == 1) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -63,7 +63,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ans->cmp()); @@ -81,12 +81,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited and updated in 2012/2013. $BR diff --git a/Contrib/Mizzou/Algebra/real_numbers_interval_notation/graph_one_int_all_types.pg b/Contrib/Mizzou/Algebra/real_numbers_interval_notation/graph_one_int_all_types.pg index 9932d1bdbe..ebbbad96e7 100644 --- a/Contrib/Mizzou/Algebra/real_numbers_interval_notation/graph_one_int_all_types.pg +++ b/Contrib/Mizzou/Algebra/real_numbers_interval_notation/graph_one_int_all_types.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -30,7 +30,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Interval"); $gwidth = 600; @@ -93,11 +93,11 @@ if ($caseb == 0) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT -Write interval notation for the given graph: +Write interval notation for the given graph: $PAR $BCENTER \{image(insertGraph($gr), width=>$gwidth, height=>$gheight, tex_size=>500)\} @@ -108,7 +108,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ans->cmp()); @@ -126,12 +126,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited and updated in 2012/2013. $BR diff --git a/Contrib/Mizzou/Algebra/real_numbers_interval_notation/graph_one_int_finite_endpts.pg b/Contrib/Mizzou/Algebra/real_numbers_interval_notation/graph_one_int_finite_endpts.pg index 240f503be4..573f092d57 100644 --- a/Contrib/Mizzou/Algebra/real_numbers_interval_notation/graph_one_int_finite_endpts.pg +++ b/Contrib/Mizzou/Algebra/real_numbers_interval_notation/graph_one_int_finite_endpts.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -30,7 +30,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Interval"); $gwidth = 600; @@ -77,11 +77,11 @@ if ($caseb == 0) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT -Write interval notation for the given graph: +Write interval notation for the given graph: $PAR $BCENTER \{image(insertGraph($gr), width=>$gwidth, height=>$gheight, tex_size=>500)\} @@ -92,7 +92,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ans->cmp()); @@ -110,12 +110,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited and updated in 2012/2013. $BR diff --git a/Contrib/Mizzou/Algebra/real_numbers_interval_notation/graph_one_int_left_infinity.pg b/Contrib/Mizzou/Algebra/real_numbers_interval_notation/graph_one_int_left_infinity.pg index a2cc5b6b5b..678a0c92ea 100644 --- a/Contrib/Mizzou/Algebra/real_numbers_interval_notation/graph_one_int_left_infinity.pg +++ b/Contrib/Mizzou/Algebra/real_numbers_interval_notation/graph_one_int_left_infinity.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -30,7 +30,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Interval"); $gwidth = 600; @@ -60,11 +60,11 @@ $gr->arrowTo(-11,0,'blue','3'); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT -Write interval notation for the given graph: +Write interval notation for the given graph: $PAR $BCENTER \{image(insertGraph($gr), width=>$gwidth, height=>$gheight, tex_size=>500)\} @@ -75,7 +75,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ans->cmp()); @@ -93,12 +93,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited and updated in 2012/2013. $BR diff --git a/Contrib/Mizzou/Algebra/real_numbers_interval_notation/graph_one_int_right_infinity.pg b/Contrib/Mizzou/Algebra/real_numbers_interval_notation/graph_one_int_right_infinity.pg index 94ad63dbdd..00e55f293d 100644 --- a/Contrib/Mizzou/Algebra/real_numbers_interval_notation/graph_one_int_right_infinity.pg +++ b/Contrib/Mizzou/Algebra/real_numbers_interval_notation/graph_one_int_right_infinity.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -30,7 +30,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Interval"); $gwidth = 600; @@ -60,11 +60,11 @@ $gr->arrowTo(11,0,'blue','3'); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT -Write interval notation for the given graph: +Write interval notation for the given graph: $PAR $BCENTER \{image(insertGraph($gr), width=>$gwidth, height=>$gheight, tex_size=>500)\} @@ -75,7 +75,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ans->cmp()); @@ -93,12 +93,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited and updated in 2012/2013. $BR diff --git a/Contrib/Mizzou/Algebra/real_numbers_interval_notation/graph_two_int_union.pg b/Contrib/Mizzou/Algebra/real_numbers_interval_notation/graph_two_int_union.pg index 4583d68a85..f54dd150c8 100644 --- a/Contrib/Mizzou/Algebra/real_numbers_interval_notation/graph_two_int_union.pg +++ b/Contrib/Mizzou/Algebra/real_numbers_interval_notation/graph_two_int_union.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -30,7 +30,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Interval"); $gwidth = 600; @@ -128,11 +128,11 @@ $ans = Compute($int); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT -Write interval notation for the given graph: +Write interval notation for the given graph: $PAR $BCENTER \{image(insertGraph($gr), width=>$gwidth, height=>$gheight, tex_size=>500)\} @@ -143,7 +143,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ans->cmp()); @@ -161,12 +161,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited and updated in 2012/2013. $BR diff --git a/Contrib/Mizzou/Algebra/real_numbers_simplifying_expns/eng_to_alg_expn_01.pg b/Contrib/Mizzou/Algebra/real_numbers_simplifying_expns/eng_to_alg_expn_01.pg index f0493e45b0..1fe463a35a 100644 --- a/Contrib/Mizzou/Algebra/real_numbers_simplifying_expns/eng_to_alg_expn_01.pg +++ b/Contrib/Mizzou/Algebra/real_numbers_simplifying_expns/eng_to_alg_expn_01.pg @@ -1,6 +1,6 @@ ##DESCRIPTION ## Asks for the algebraic expression for an English phrase -## +## ##ENDDESCRIPTION ## DBsubject('Intermediate Algebra') ## DBchapter('Ch 01: Algebra, Mathematical Models and Problem Solving') @@ -21,7 +21,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -52,9 +52,9 @@ Write each English phrase as an algebraic expression. Let \(x\) represent the number. $PAR -(a) $num[$a-1] $moreORless[$choose] than a number: \{ ans_rule(20) \} +(a) $num[$a-1] $moreORless[$choose] than a number: \{ ans_rule(20) \} $PAR -(b) $num[$b-1] $decORinc[$choose] by a number: \{ ans_rule(20) \} +(b) $num[$b-1] $decORinc[$choose] by a number: \{ ans_rule(20) \} END_TEXT ###################################### @@ -85,7 +85,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/set_operations/from_graph_01_ia_npl.pg b/Contrib/Mizzou/Algebra/set_operations/from_graph_01_ia_npl.pg index a5fb547aa3..69d62eb5da 100644 --- a/Contrib/Mizzou/Algebra/set_operations/from_graph_01_ia_npl.pg +++ b/Contrib/Mizzou/Algebra/set_operations/from_graph_01_ia_npl.pg @@ -1,6 +1,6 @@ ##DESCRIPTION ## Compound Inequalities -## +## ##ENDDESCRIPTION ## DBsubject('Intermediate Algebra') ## DBchapter('Ch 04: Inequalities and Problem Solving') @@ -25,7 +25,7 @@ loadMacros( "PGnauGraphics.pl", "contextInequalitiesAllowStrings.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -73,7 +73,7 @@ do { } until ($i > 5); add_functions( $graph,$f,$g); - + ###################################### # Main text @@ -96,10 +96,10 @@ END_TEXT Context("Interval"); Context()->strings->add(empty=>{}, "no solutions"=>{}, "no solution"=>{alias=>"no solutions"}); $ans_a = Union(Interval("(-infinity,$a]"),Interval("[$b,infinity)")); -ANS($ans_a->cmp); +ANS($ans_a->cmp); $ans_b = String("no solutions"); -ANS($ans_b->cmp); +ANS($ans_b->cmp); $showPartialCorrectAnswers = 1; @@ -117,12 +117,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} Type ${BBOLD}no solutions${EBOLD} if no such interval exists. \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} Type ${BBOLD}no solutions${EBOLD} if no such interval exists. \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/set_operations/from_graph_02_ia_npl.pg b/Contrib/Mizzou/Algebra/set_operations/from_graph_02_ia_npl.pg index fcad7ec62d..a52677e86a 100644 --- a/Contrib/Mizzou/Algebra/set_operations/from_graph_02_ia_npl.pg +++ b/Contrib/Mizzou/Algebra/set_operations/from_graph_02_ia_npl.pg @@ -1,6 +1,6 @@ ##DESCRIPTION ## Compound Inequalities -## +## ##ENDDESCRIPTION ## DBsubject('Intermediate Algebra') ## DBchapter('Ch 04: Inequalities and Problem Solving') @@ -24,7 +24,7 @@ loadMacros( "PGgraphmacros.pl", "PGnauGraphics.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -35,7 +35,7 @@ PeriodicRerandomization("3"); ###################################### # Setup -$a = random(1,4,1); +$a = random(1,4,1); $b = random(-4,0,1); @interval = ("<-6,$a]","($b,6>","<-6,$a)","[$b,6>"); @@ -73,7 +73,7 @@ do { } until ($i > 5); add_functions( $graph,$f,$g); - + ###################################### # Main text @@ -119,12 +119,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} Type ${BBOLD}no solutions${EBOLD} if no such interval exists. \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} Type ${BBOLD}no solutions${EBOLD} if no such interval exists. \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Algebra/set_operations/from_graph_03_ia_npl.pg b/Contrib/Mizzou/Algebra/set_operations/from_graph_03_ia_npl.pg index 40183dbd0a..77a5937fbc 100644 --- a/Contrib/Mizzou/Algebra/set_operations/from_graph_03_ia_npl.pg +++ b/Contrib/Mizzou/Algebra/set_operations/from_graph_03_ia_npl.pg @@ -1,6 +1,6 @@ ##DESCRIPTION ## Compound Inequalities -## +## ##ENDDESCRIPTION ## DBsubject('Intermediate Algebra') ## DBchapter('Ch 04: Inequalities and Problem Solving') @@ -24,7 +24,7 @@ loadMacros( "PGgraphmacros.pl", "PGnauGraphics.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -72,7 +72,7 @@ do { } until ($i > 5); add_functions( $graph,$f,$g); - + ###################################### # Main text @@ -101,7 +101,7 @@ ANS($ansa->cmp()); @ans_b = ("(-infinity,$a]","[$b,infinity)"); $ansb = Interval($ans_b[$choose/2]); -ANS($ansb->cmp); +ANS($ansb->cmp); $showPartialCorrectAnswers = 1; @@ -119,7 +119,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} Type ${BBOLD}no solutions${EBOLD} if no such interval exists. \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} Type ${BBOLD}no solutions${EBOLD} if no such interval exists. \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT } diff --git a/Contrib/Mizzou/Algebra/set_operations/from_graph_04_ia_npl.pg b/Contrib/Mizzou/Algebra/set_operations/from_graph_04_ia_npl.pg index 94cb5e5bf2..a2e5484b04 100644 --- a/Contrib/Mizzou/Algebra/set_operations/from_graph_04_ia_npl.pg +++ b/Contrib/Mizzou/Algebra/set_operations/from_graph_04_ia_npl.pg @@ -1,6 +1,6 @@ ##DESCRIPTION ## Compound Inequalities -## +## ##ENDDESCRIPTION ## DBsubject('Intermediate Algebra') ## DBchapter('Ch 04: Inequalities and Problem Solving') @@ -24,7 +24,7 @@ loadMacros( "PGgraphmacros.pl", "PGnauGraphics.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -72,7 +72,7 @@ do { } until ($i > 5); add_functions( $graph,$f,$g); - + ###################################### # Main text @@ -96,10 +96,10 @@ Context("Interval"); Context()->strings->add(empty=>{}, "no solutions"=>{}, "no solution"=>{alias=>"no solutions"}); $ans_a = Union(Interval("(-infinity,$a]"),Interval("[$b,infinity)")); -ANS($ans_a->cmp); +ANS($ans_a->cmp); $ans_b = String("no solutions"); -ANS($ans_b->cmp); +ANS($ans_b->cmp); $showPartialCorrectAnswers = 1; @@ -117,7 +117,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} Type ${BBOLD}no solutions${EBOLD} if no such interval exists. \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} Type ${BBOLD}no solutions${EBOLD} if no such interval exists. \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT } diff --git a/Contrib/Mizzou/College_Algebra/Equations_Linear/Distribute6.pg b/Contrib/Mizzou/College_Algebra/Equations_Linear/Distribute6.pg index d0030054e2..d7cc8d88ac 100644 --- a/Contrib/Mizzou/College_Algebra/Equations_Linear/Distribute6.pg +++ b/Contrib/Mizzou/College_Algebra/Equations_Linear/Distribute6.pg @@ -4,9 +4,9 @@ ## KEYWORDS('linear', 'equations') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Algebra: Form and Function') -## DBchapter('Equations and Inequalities') +## DBchapter('Equations and Inequalities') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGcourse.pl" ); diff --git a/Contrib/Mizzou/College_Algebra/Equations_Linear/DistributeDecimals2a.pg b/Contrib/Mizzou/College_Algebra/Equations_Linear/DistributeDecimals2a.pg index ba087761e6..a72109a4fa 100644 --- a/Contrib/Mizzou/College_Algebra/Equations_Linear/DistributeDecimals2a.pg +++ b/Contrib/Mizzou/College_Algebra/Equations_Linear/DistributeDecimals2a.pg @@ -4,9 +4,9 @@ ## KEYWORDS('linear', 'equations') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Algebra: Form and Function') -## DBchapter('Equations and Inequalities') +## DBchapter('Equations and Inequalities') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGcourse.pl" ); @@ -77,7 +77,7 @@ $eqn $BR \( $var = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("fraction") \} +\{ helpLink("fraction") \} $PAR $BR END_TEXT diff --git a/Contrib/Mizzou/College_Algebra/Equations_Linear/DistributeEq1.pg b/Contrib/Mizzou/College_Algebra/Equations_Linear/DistributeEq1.pg index 190e7f25bc..d3fd4e80ee 100644 --- a/Contrib/Mizzou/College_Algebra/Equations_Linear/DistributeEq1.pg +++ b/Contrib/Mizzou/College_Algebra/Equations_Linear/DistributeEq1.pg @@ -4,9 +4,9 @@ ## KEYWORDS('linear', 'equations') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Algebra: Form and Function') -## DBchapter('Equations and Inequalities') +## DBchapter('Equations and Inequalities') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -56,7 +56,7 @@ $BR $BR \( $var = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("fraction") \} +\{ helpLink("fraction") \} END_TEXT Context()->normalStrings; @@ -73,9 +73,9 @@ ANS($answer->cmp() ); ## KEYWORDS('linear', 'equations') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Algebra: Form and Function') -## DBchapter('Equations and Inequalities') +## DBchapter('Equations and Inequalities') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -97,7 +97,7 @@ loadMacros( "MathObjects.pl", "PeriodicRerandomization.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -143,7 +143,7 @@ $BR $BR \( $var = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("fraction") \} +\{ helpLink("fraction") \} $PAR $BR END_TEXT diff --git a/Contrib/Mizzou/College_Algebra/Equations_Linear/DistributeEq2.pg b/Contrib/Mizzou/College_Algebra/Equations_Linear/DistributeEq2.pg index cc25508c22..be6eef3515 100644 --- a/Contrib/Mizzou/College_Algebra/Equations_Linear/DistributeEq2.pg +++ b/Contrib/Mizzou/College_Algebra/Equations_Linear/DistributeEq2.pg @@ -4,9 +4,9 @@ ## KEYWORDS('linear', 'equations') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Algebra: Form and Function') -## DBchapter('Equations and Inequalities') +## DBchapter('Equations and Inequalities') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGcourse.pl" ); @@ -67,7 +67,7 @@ $eqn $PAR \( $var = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("fraction") \} +\{ helpLink("fraction") \} $PAR $BR END_TEXT diff --git a/Contrib/Mizzou/College_Algebra/Equations_Linear/DistributeEq3.pg b/Contrib/Mizzou/College_Algebra/Equations_Linear/DistributeEq3.pg index 0096561458..1ea93000d7 100644 --- a/Contrib/Mizzou/College_Algebra/Equations_Linear/DistributeEq3.pg +++ b/Contrib/Mizzou/College_Algebra/Equations_Linear/DistributeEq3.pg @@ -4,9 +4,9 @@ ## KEYWORDS('linear', 'equations') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Algebra: Form and Function') -## DBchapter('Equations and Inequalities') +## DBchapter('Equations and Inequalities') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGcourse.pl" ); @@ -67,7 +67,7 @@ $eqn $PAR \( $var = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("fraction") \} +\{ helpLink("fraction") \} $PAR $BR END_TEXT diff --git a/Contrib/Mizzou/College_Algebra/Equations_Linear/LinearEq2.pg b/Contrib/Mizzou/College_Algebra/Equations_Linear/LinearEq2.pg index 5cb4a4dfea..d432ef3370 100644 --- a/Contrib/Mizzou/College_Algebra/Equations_Linear/LinearEq2.pg +++ b/Contrib/Mizzou/College_Algebra/Equations_Linear/LinearEq2.pg @@ -4,9 +4,9 @@ ## KEYWORDS('linear', 'equations') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Algebra: Form and Function') -## DBchapter('Equations and Inequalities') +## DBchapter('Equations and Inequalities') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGcourse.pl" ); @@ -58,7 +58,7 @@ $answer = Fraction($num,$den); Context()->texStrings; BEGIN_TEXT -Solve the following equation for \($var\): +Solve the following equation for \($var\): $PAR \[ $eqn @@ -67,7 +67,7 @@ $BR $BR \( $var = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("fraction") \} +\{ helpLink("fraction") \} $PAR $BR END_TEXT diff --git a/Contrib/Mizzou/College_Algebra/Equations_Linear/LinearEq3.pg b/Contrib/Mizzou/College_Algebra/Equations_Linear/LinearEq3.pg index ba90a91102..8c16fb819e 100644 --- a/Contrib/Mizzou/College_Algebra/Equations_Linear/LinearEq3.pg +++ b/Contrib/Mizzou/College_Algebra/Equations_Linear/LinearEq3.pg @@ -4,9 +4,9 @@ ## KEYWORDS('linear', 'equations') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Algebra: Form and Function') -## DBchapter('Equations and Inequalities') +## DBchapter('Equations and Inequalities') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGcourse.pl" ); @@ -58,7 +58,7 @@ $answer = Fraction($num,$den); Context()->texStrings; BEGIN_TEXT -Solve the following equation for \($var\): +Solve the following equation for \($var\): $PAR \[ $eqn @@ -67,7 +67,7 @@ $BR $BR \( $var = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("fraction") \} +\{ helpLink("fraction") \} $PAR $BR END_TEXT diff --git a/Contrib/Mizzou/College_Algebra/Equations_Linear/LinearEq4.pg b/Contrib/Mizzou/College_Algebra/Equations_Linear/LinearEq4.pg index 33ab2adb9c..3672dc5659 100644 --- a/Contrib/Mizzou/College_Algebra/Equations_Linear/LinearEq4.pg +++ b/Contrib/Mizzou/College_Algebra/Equations_Linear/LinearEq4.pg @@ -4,9 +4,9 @@ ## KEYWORDS('linear', 'equations') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Algebra: Form and Function') -## DBchapter('Equations and Inequalities') +## DBchapter('Equations and Inequalities') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGcourse.pl" ); @@ -58,7 +58,7 @@ $answer = Fraction($num,$den); Context()->texStrings; BEGIN_TEXT -Solve the following equation for \($var\): +Solve the following equation for \($var\): $PAR \[ $eqn @@ -67,7 +67,7 @@ $BR $BR \( $var = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("fraction") \} +\{ helpLink("fraction") \} $PAR $BR END_TEXT diff --git a/Contrib/Mizzou/College_Algebra/Equations_Linear/Var5.pg b/Contrib/Mizzou/College_Algebra/Equations_Linear/Var5.pg index cf3c6b4c58..a47463b890 100644 --- a/Contrib/Mizzou/College_Algebra/Equations_Linear/Var5.pg +++ b/Contrib/Mizzou/College_Algebra/Equations_Linear/Var5.pg @@ -4,9 +4,9 @@ ## KEYWORDS('linear', 'equations') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Algebra: Form and Function') -## DBchapter('Equations and Inequalities') +## DBchapter('Equations and Inequalities') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "parserMultiAnswer.pl", "PGunion.pl", @@ -63,8 +63,8 @@ $multians = MultiAnswer($num, $den)->with( my ( $correct, $student, $self ) = @_; my ( $f1stu, $f2stu ) = @{$student}; my ( $f1, $f2 ) = @{$correct}; - - if ( ( $f1==$f1stu && $f2==$f2stu) || + + if ( ( $f1==$f1stu && $f2==$f2stu) || (-$f1==$f1stu && -$f2==$f2stu) ) { return [1,1]; } elsif ( $f1==$f1stu || -$f1==$f1stu) { @@ -118,7 +118,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { $texanswer $PAR END_TEXT -} +} else { BEGIN_TEXT $PAR @@ -126,11 +126,11 @@ else { Write your answer as a single fraction, and type the numerator and denominator separately in the answer blanks provided. $PAR END_TEXT -} +} Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################### diff --git a/Contrib/Mizzou/College_Algebra/Equations_Linear/Var6.pg b/Contrib/Mizzou/College_Algebra/Equations_Linear/Var6.pg index 686bd4b9fc..697efd3892 100644 --- a/Contrib/Mizzou/College_Algebra/Equations_Linear/Var6.pg +++ b/Contrib/Mizzou/College_Algebra/Equations_Linear/Var6.pg @@ -4,9 +4,9 @@ ## KEYWORDS('linear', 'equations') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Algebra: Form and Function') -## DBchapter('Equations and Inequalities') +## DBchapter('Equations and Inequalities') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "parserMultiAnswer.pl", "PGunion.pl", @@ -70,8 +70,8 @@ $multians = MultiAnswer($num, $den)->with( my ( $correct, $student, $self ) = @_; my ( $f1stu, $f2stu ) = @{$student}; my ( $f1, $f2 ) = @{$correct}; - - if ( ( $f1==$f1stu && $f2==$f2stu) || + + if ( ( $f1==$f1stu && $f2==$f2stu) || (-$f1==$f1stu && -$f2==$f2stu) ) { return [1,1]; } elsif ( $f1==$f1stu || -$f1==$f1stu) { @@ -141,7 +141,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Equations_Linear/Variables1.pg b/Contrib/Mizzou/College_Algebra/Equations_Linear/Variables1.pg index f61acac89e..3c286c47db 100644 --- a/Contrib/Mizzou/College_Algebra/Equations_Linear/Variables1.pg +++ b/Contrib/Mizzou/College_Algebra/Equations_Linear/Variables1.pg @@ -4,9 +4,9 @@ ## KEYWORDS('linear', 'equations') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Algebra: Form and Function') -## DBchapter('Equations and Inequalities') +## DBchapter('Equations and Inequalities') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGcourse.pl" ); @@ -82,7 +82,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Equations_Linear/Variables2.pg b/Contrib/Mizzou/College_Algebra/Equations_Linear/Variables2.pg index a2d27c1ec1..52d5c466bb 100644 --- a/Contrib/Mizzou/College_Algebra/Equations_Linear/Variables2.pg +++ b/Contrib/Mizzou/College_Algebra/Equations_Linear/Variables2.pg @@ -4,9 +4,9 @@ ## KEYWORDS('linear', 'equations') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Algebra: Form and Function') -## DBchapter('Equations and Inequalities') +## DBchapter('Equations and Inequalities') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "parserMultiAnswer.pl", "PGunion.pl", @@ -92,8 +92,8 @@ $multians = MultiAnswer($num, $den)->with( my ( $correct, $student, $self ) = @_; my ( $f1stu, $f2stu ) = @{$student}; my ( $f1, $f2 ) = @{$correct}; - - if ( ( $f1==$f1stu && $f2==$f2stu) || + + if ( ( $f1==$f1stu && $f2==$f2stu) || (-$f1==$f1stu && -$f2==$f2stu) ) { return [1,1]; } elsif ( $f1==$f1stu || -$f1==$f1stu) { @@ -149,7 +149,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { $texanswer $PAR END_TEXT -} +} else { BEGIN_TEXT $PAR @@ -157,10 +157,10 @@ else { Write your answer as a single fraction, and type the numerator and denominator separately in the answer blanks provided. $PAR END_TEXT -} +} Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Equations_Linear/Variables3.pg b/Contrib/Mizzou/College_Algebra/Equations_Linear/Variables3.pg index bb7aa0784a..b193a04316 100644 --- a/Contrib/Mizzou/College_Algebra/Equations_Linear/Variables3.pg +++ b/Contrib/Mizzou/College_Algebra/Equations_Linear/Variables3.pg @@ -4,9 +4,9 @@ ## KEYWORDS('linear', 'equations') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Algebra: Form and Function') -## DBchapter('Equations and Inequalities') +## DBchapter('Equations and Inequalities') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "parserMultiAnswer.pl", "PGunion.pl", @@ -66,7 +66,7 @@ if ($case = 0) { $num = Formula("$var2")->reduce; $den = Formula("$a $var3 - $b $var4")->reduce; } else { - $dispexpn = "$var2 + $b $var1 $var3 $var4 = $a $var1"; + $dispexpn = "$var2 + $b $var1 $var3 $var4 = $a $var1"; $num = Formula("$var2")->reduce; $den = Formula("$a - $b $var3 $var4")->reduce; } @@ -81,8 +81,8 @@ $multians = MultiAnswer($num, $den)->with( my ( $correct, $student, $self ) = @_; my ( $f1stu, $f2stu ) = @{$student}; my ( $f1, $f2 ) = @{$correct}; - - if ( ( $f1==$f1stu && $f2==$f2stu) || + + if ( ( $f1==$f1stu && $f2==$f2stu) || (-$f1==$f1stu && -$f2==$f2stu) ) { return [1,1]; } elsif ( $f1==$f1stu || -$f1==$f1stu) { @@ -153,7 +153,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { ${BBOLD}Answer:${EBOLD} \(\displaystyle $var1 = \frac{$num}{$den}\) $PAR END_TEXT -} +} else { BEGIN_TEXT $PAR @@ -161,9 +161,9 @@ else { Write your answer as a single fraction, and type the numerator and denominator separately in the answer blanks provided. $PAR END_TEXT -} +} Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Equations_Logarithmic/Log5.pg b/Contrib/Mizzou/College_Algebra/Equations_Logarithmic/Log5.pg index 8db0e090a8..1d0021aa09 100644 --- a/Contrib/Mizzou/College_Algebra/Equations_Logarithmic/Log5.pg +++ b/Contrib/Mizzou/College_Algebra/Equations_Logarithmic/Log5.pg @@ -4,8 +4,8 @@ ## KEYWORDS('logarithm', 'equation', 'logarithmic equation') -## DBsubject('Algebra') -## DBchapter('Equations and Inequalities') +## DBsubject('Algebra') +## DBchapter('Equations and Inequalities') ## DBsection('Other Equations') ## Date('Spring 2012') ## Author1('David Covert') @@ -26,7 +26,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -72,7 +72,7 @@ $eqn $PAR \( $var = \) \{ ans_rule(20) \} $PAR -(${BBOLD}Note:$EBOLD Write your answer in exact form using logarithmic and exponential notation if necessary (\{ AnswerFormatHelp("logarithms", "click here for help writing logarithms")\} or \{ AnswerFormatHelp("exponents", "click here for help writing exponents")\}). If there is more than one correct answer, enter your answers as a comma separated list. If the equation has no solution, write "No Solution") +(${BBOLD}Note:$EBOLD Write your answer in exact form using logarithmic and exponential notation if necessary (\{ helpLink("logarithms", "click here for help writing logarithms")\} or \{ helpLink("exponents", "click here for help writing exponents")\}). If there is more than one correct answer, enter your answers as a comma separated list. If the equation has no solution, write "No Solution") END_TEXT diff --git a/Contrib/Mizzou/College_Algebra/Equations_Logarithmic/Log7.pg b/Contrib/Mizzou/College_Algebra/Equations_Logarithmic/Log7.pg index 7606a63b47..ee0676f4d4 100644 --- a/Contrib/Mizzou/College_Algebra/Equations_Logarithmic/Log7.pg +++ b/Contrib/Mizzou/College_Algebra/Equations_Logarithmic/Log7.pg @@ -4,8 +4,8 @@ ## KEYWORDS('logarithm', 'equation', 'logarithmic equation') -## DBsubject('Algebra') -## DBchapter('Equations and Inequalities') +## DBsubject('Algebra') +## DBchapter('Equations and Inequalities') ## DBsection('Other Equations') ## Date('Spring 2012') ## Author1('David Covert') @@ -26,7 +26,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -70,7 +70,7 @@ $eqn $PAR \( $var = \) \{ ans_rule(20) \} $PAR -(${BBOLD}Note:$EBOLD Write your answer in exact form using logarithmic and exponential notation if necessary (\{ AnswerFormatHelp("logarithms", "click here for help writing logarithms")\} or \{ AnswerFormatHelp("exponents", "click here for help writing exponents")\}). If there is more than one correct answer, enter your answers as a comma separated list. If the equation has no solution, write "No Solution") +(${BBOLD}Note:$EBOLD Write your answer in exact form using logarithmic and exponential notation if necessary (\{ helpLink("logarithms", "click here for help writing logarithms")\} or \{ helpLink("exponents", "click here for help writing exponents")\}). If there is more than one correct answer, enter your answers as a comma separated list. If the equation has no solution, write "No Solution") END_TEXT diff --git a/Contrib/Mizzou/College_Algebra/Equations_Logarithmic/Log8.pg b/Contrib/Mizzou/College_Algebra/Equations_Logarithmic/Log8.pg index 182db6d9c4..6950f9c5b7 100644 --- a/Contrib/Mizzou/College_Algebra/Equations_Logarithmic/Log8.pg +++ b/Contrib/Mizzou/College_Algebra/Equations_Logarithmic/Log8.pg @@ -4,8 +4,8 @@ ## KEYWORDS('logarithm', 'equation', 'logarithmic equation') -## DBsubject('Algebra') -## DBchapter('Equations and Inequalities') +## DBsubject('Algebra') +## DBchapter('Equations and Inequalities') ## DBsection('Other Equations') ## Date('Spring 2012') ## Author1('David Covert') @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -83,14 +83,14 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } else { BEGIN_TEXT - ${BBOLD}Note:$EBOLD Write your answer in exact form using logarithmic and exponential notation if necessary (\{ AnswerFormatHelp("logarithms", "click here for help writing logarithms")\} or \{ AnswerFormatHelp("exponents", "click here for help writing exponents")\}). If there is more than one correct answer, enter your answers as a comma separated list. If the equation has no solution, write "No Solution") - $BR + ${BBOLD}Note:$EBOLD Write your answer in exact form using logarithmic and exponential notation if necessary (\{ helpLink("logarithms", "click here for help writing logarithms")\} or \{ helpLink("exponents", "click here for help writing exponents")\}). If there is more than one correct answer, enter your answers as a comma separated list. If the equation has no solution, write "No Solution") + $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); $showPartialCorrectAnswers = 1; diff --git a/Contrib/Mizzou/College_Algebra/Equations_Quadratic/CompSquare2a_02.pg b/Contrib/Mizzou/College_Algebra/Equations_Quadratic/CompSquare2a_02.pg index 40b6744778..a604f26b19 100644 --- a/Contrib/Mizzou/College_Algebra/Equations_Quadratic/CompSquare2a_02.pg +++ b/Contrib/Mizzou/College_Algebra/Equations_Quadratic/CompSquare2a_02.pg @@ -4,9 +4,9 @@ ## KEYWORDS('quadratic', 'equations') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Equations and Inequalities') -## DBchapter('Quadratic Equations') +## DBchapter('Quadratic Equations') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -60,7 +60,7 @@ $ans1 = Compute("(-$b + sqrt($b**2 + 4*$c))/2"); $ans2 = Compute("(-$b - sqrt($b**2 + 4*$c))/2"); Context("Fraction-NoDecimals"); -Context()->{error}{msg}{"You are only allowed to enter fractions, not decimal numbers"} +Context()->{error}{msg}{"You are only allowed to enter fractions, not decimal numbers"} = "Enter your answers in exact form"; $case = random(1,2,1); if ($case ==1){ @@ -119,7 +119,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); Context()->normalStrings; diff --git a/Contrib/Mizzou/College_Algebra/Equations_Quadratic/Complete_Square_Solve.pg b/Contrib/Mizzou/College_Algebra/Equations_Quadratic/Complete_Square_Solve.pg index f997c8462e..57fe59b7af 100644 --- a/Contrib/Mizzou/College_Algebra/Equations_Quadratic/Complete_Square_Solve.pg +++ b/Contrib/Mizzou/College_Algebra/Equations_Quadratic/Complete_Square_Solve.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "fracListChecker.pl", @@ -51,7 +51,7 @@ sub primefac { ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### setFracListFunctions(); # set up context for custom checker $num = random(2,9)*random(-1,1,2); @@ -81,12 +81,12 @@ $den2 = 4*(($den)**2)/gcd(($num)**2 - 4*(($den)**2)*$c,4*(($den)**2)); $insn = 1; $insd = 1; $outn = 1; $outd = 1; for ($i = 0; $i < scalar(@facsn); $i = $i+2) { - $insn = $insn*(($facsn[$i])**($facsn[$i+1]%2)); - $outn = $outn*(($facsn[$i])**(floor($facsn[$i+1]/2))); + $insn = $insn*(($facsn[$i])**($facsn[$i+1]%2)); + $outn = $outn*(($facsn[$i])**(floor($facsn[$i+1]/2))); } for ($i = 0; $i < scalar(@facsd); $i = $i+2) { - $insd = $insd*(($facsd[$i])**($facsd[$i+1]%2)); - $outd = $outd*(($facsd[$i])**(floor($facsd[$i+1]/2))); + $insd = $insd*(($facsd[$i])**($facsd[$i+1]%2)); + $outd = $outd*(($facsd[$i])**(floor($facsd[$i+1]/2))); } $out = Fraction($outn,$outd)->reduce; $ins = Fraction($insn,$insd)->reduce; @@ -111,12 +111,12 @@ $texanswer = "\(\displaystyle x = $dispa1, $dispa2\)"; $answer = ($ins != 1) ? List(Formula("$a1"), Formula("$a2")) : List(Fraction($a1)->reduce, Fraction($a2)->reduce); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT -Follow the steps to solve the equation: -$PAR \[$eqn\] $PAR +Follow the steps to solve the equation: +$PAR \[$eqn\] $PAR by completing the square. $BR $PAR ${BBOLD}Step 1:${EBOLD} First move \(c\) over and then add \(\left(\frac{b}{2}\right)^2\) to both sides. @@ -138,7 +138,7 @@ Context()->normalStrings; ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($LHSAns1->cmp(studentsMustReduceFractions=>1)); ANS($RHSAns1->cmp(studentsMustReduceFractions=>1)); @@ -155,7 +155,7 @@ Context()->texStrings; if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR - ${BBOLD}Answer:${EBOLD} + ${BBOLD}Answer:${EBOLD} $PAR ${BBOLD}Step 1:${EBOLD} \(x^2 + $b x + $LHSAns1 = $RHSConstant + $RHSAns1\) $PAR @@ -172,7 +172,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited and updated in 2012/2013. $BR diff --git a/Contrib/Mizzou/College_Algebra/Equations_Quadratic/Eqn_Quad_Non_Standard_Form_Expand_LHS.pg b/Contrib/Mizzou/College_Algebra/Equations_Quadratic/Eqn_Quad_Non_Standard_Form_Expand_LHS.pg index a7dd718ad7..e9fdc81b64 100644 --- a/Contrib/Mizzou/College_Algebra/Equations_Quadratic/Eqn_Quad_Non_Standard_Form_Expand_LHS.pg +++ b/Contrib/Mizzou/College_Algebra/Equations_Quadratic/Eqn_Quad_Non_Standard_Form_Expand_LHS.pg @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "parserMultiAnswer.pl", "PGcourse.pl" @@ -45,7 +45,7 @@ Context()->variables->are( x=>"Real", y=>"Real", r=>"Real", -s=>"Real", +s=>"Real", t=>"Real", u=>"Real", v=>"Real", @@ -94,7 +94,7 @@ $answer = List($ans1,$ans2); # Main text Context()->texStrings; BEGIN_TEXT -Solve the equation for \( $var \). If there is more than one +Solve the equation for \( $var \). If there is more than one correct answer, enter your answers as a comma separated list. $BR $BR @@ -103,7 +103,7 @@ $BR $BR \( $var \) = \{ ans_rule(30) \} $PAR -\{ AnswerFormatHelp("numbers", "Click here for help entering numbers in WeBWorK") \} +\{ helpLink("numbers", "Click here for help entering numbers in WeBWorK") \} END_TEXT @@ -122,7 +122,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ diff --git a/Contrib/Mizzou/College_Algebra/Equations_Quadratic/Eqn_Quad_Non_Standard_Form_Factor_LHS.pg b/Contrib/Mizzou/College_Algebra/Equations_Quadratic/Eqn_Quad_Non_Standard_Form_Factor_LHS.pg index 45e8591e0d..f4ae9631e9 100644 --- a/Contrib/Mizzou/College_Algebra/Equations_Quadratic/Eqn_Quad_Non_Standard_Form_Factor_LHS.pg +++ b/Contrib/Mizzou/College_Algebra/Equations_Quadratic/Eqn_Quad_Non_Standard_Form_Factor_LHS.pg @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "parserMultiAnswer.pl", "PGcourse.pl" @@ -45,7 +45,7 @@ Context()->variables->are( x=>"Real", y=>"Real", r=>"Real", -s=>"Real", +s=>"Real", t=>"Real", u=>"Real", v=>"Real", @@ -93,7 +93,7 @@ $answer = List($ans1,$ans2); # Main text Context()->texStrings; BEGIN_TEXT -Solve the equation for \( $var \). If there is more than one +Solve the equation for \( $var \). If there is more than one correct answer, enter your answers as a comma separated list. $BR $BR @@ -102,7 +102,7 @@ $BR $BR \( $var \) = \{ ans_rule(30) \} $PAR -\{ AnswerFormatHelp("numbers", "Click here for help entering numbers in WeBWorK") \} +\{ helpLink("numbers", "Click here for help entering numbers in WeBWorK") \} END_TEXT @@ -121,7 +121,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ diff --git a/Contrib/Mizzou/College_Algebra/Equations_Quadratic/Factoring2.pg b/Contrib/Mizzou/College_Algebra/Equations_Quadratic/Factoring2.pg index 757baf9d8b..b05b1a7135 100644 --- a/Contrib/Mizzou/College_Algebra/Equations_Quadratic/Factoring2.pg +++ b/Contrib/Mizzou/College_Algebra/Equations_Quadratic/Factoring2.pg @@ -4,9 +4,9 @@ ## KEYWORDS('quadratic', 'equations') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Algebra: Form and Function') -## DBchapter('Equations and Inequalities') +## DBchapter('Equations and Inequalities') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -29,7 +29,7 @@ loadMacros( "PeriodicRerandomization.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -41,7 +41,7 @@ TEXT(beginproblem()); Context("Numeric"); $a = list_random(-10,-9,-8,-7,-6,-5,-4,-3,-2,2,3,4,5,6,7,8,9,10); -do {$b = list_random(-10,-9,-8,-7,-6,-5,-4,-3,-2,2,3,4,5,6,7,8,9,10)} until($b != -$a -1 && $b != -$a && $b != 1 - $a); +do {$b = list_random(-10,-9,-8,-7,-6,-5,-4,-3,-2,2,3,4,5,6,7,8,9,10)} until($b != -$a -1 && $b != -$a && $b != 1 - $a); $e2 = $a + $b; $e3 = $a*$b; @@ -55,13 +55,13 @@ $answer = List( Compute("$a"), Compute("$b") ); # Main text BEGIN_TEXT -Solve the equation for \($var\). If there is more than one +Solve the equation for \($var\). If there is more than one correct answer, enter your answers as a comma separated list. $PAR \[ $eqn \] $PAR \( $var \) = \{ ans_rule(30) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $PAR $BR END_TEXT diff --git a/Contrib/Mizzou/College_Algebra/Equations_Quadratic/Factoring3.pg b/Contrib/Mizzou/College_Algebra/Equations_Quadratic/Factoring3.pg index 96c28f1cc9..43588aab05 100644 --- a/Contrib/Mizzou/College_Algebra/Equations_Quadratic/Factoring3.pg +++ b/Contrib/Mizzou/College_Algebra/Equations_Quadratic/Factoring3.pg @@ -4,9 +4,9 @@ ## KEYWORDS('quadratic', 'equations') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Algebra: Form and Function') -## DBchapter('Equations and Inequalities') +## DBchapter('Equations and Inequalities') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -29,7 +29,7 @@ loadMacros( "PeriodicRerandomization.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -41,7 +41,7 @@ TEXT(beginproblem()); Context("Numeric"); $a = list_random(-10,-9,-8,-7,-6,-5,-4,-3,-2,2,3,4,5,6,7,8,9,10); -do {$b = list_random(-10,-9,-8,-7,-6,-5,-4,-3,-2,2,3,4,5,6,7,8,9,10)} until($b != -$a -1 && $b != -$a && $b != 1 - $a); +do {$b = list_random(-10,-9,-8,-7,-6,-5,-4,-3,-2,2,3,4,5,6,7,8,9,10)} until($b != -$a -1 && $b != -$a && $b != 1 - $a); $e2 = $a + $b; $e3 = $a*$b; @@ -55,13 +55,13 @@ $answer = List( Compute("$a"), Compute("$b") ); # Main text BEGIN_TEXT -Solve the equation for \($var\). If there is more than one +Solve the equation for \($var\). If there is more than one correct answer, enter your answers as a comma separated list. $PAR \[ $eqn \] $PAR \( $var \) = \{ ans_rule(30) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $PAR $BR END_TEXT diff --git a/Contrib/Mizzou/College_Algebra/Equations_Quadratic/Factoring5.pg b/Contrib/Mizzou/College_Algebra/Equations_Quadratic/Factoring5.pg index 505565acd2..a508c485a0 100644 --- a/Contrib/Mizzou/College_Algebra/Equations_Quadratic/Factoring5.pg +++ b/Contrib/Mizzou/College_Algebra/Equations_Quadratic/Factoring5.pg @@ -4,9 +4,9 @@ ## KEYWORDS('quadratic', 'equations') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Algebra: Form and Function') -## DBchapter('Equations and Inequalities') +## DBchapter('Equations and Inequalities') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -29,7 +29,7 @@ loadMacros( "PeriodicRerandomization.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -42,7 +42,7 @@ Context("Numeric"); $c = list_random(-10,-9,-8,-7,-6,-5,-4,-3,-2,2,3,4,5,6,7,8,9,10); $m = list_random(-3,-2,2,3)*$c; -do {$n = list_random(-10,-9,-8,-7,-6,-5,-4,-3,-2,2,3,4,5,6,7,8,9,10)} +do {$n = list_random(-10,-9,-8,-7,-6,-5,-4,-3,-2,2,3,4,5,6,7,8,9,10)} until ($n != -$m && $n != -$m + 1 && $n != -$m - 1 ); $a = $m*$n/$c; $b = $m + $n; @@ -57,13 +57,13 @@ $answer = List( Compute("-$c/$m"), Compute("-$c/$n") ); # Main text BEGIN_TEXT -Solve the equation for \($var\). If there is more than one +Solve the equation for \($var\). If there is more than one correct answer, enter your answers as a comma separated list. $PAR \[ $eqn \] $PAR \( $var \) = \{ ans_rule(30) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $PAR $BR END_TEXT diff --git a/Contrib/Mizzou/College_Algebra/Equations_Quadratic/Factoring8.pg b/Contrib/Mizzou/College_Algebra/Equations_Quadratic/Factoring8.pg index 0567601400..321082a451 100644 --- a/Contrib/Mizzou/College_Algebra/Equations_Quadratic/Factoring8.pg +++ b/Contrib/Mizzou/College_Algebra/Equations_Quadratic/Factoring8.pg @@ -4,9 +4,9 @@ ## KEYWORDS('quadratic', 'equations') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Algebra: Form and Function') -## DBchapter('Equations and Inequalities') +## DBchapter('Equations and Inequalities') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -29,7 +29,7 @@ loadMacros( "PeriodicRerandomization.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -55,13 +55,13 @@ $answer = List( Compute("$b/$a"), Compute("-$b/$a") ); # Main text BEGIN_TEXT -Solve the equation for \($var\). If there is more than one +Solve the equation for \($var\). If there is more than one correct answer, enter your answers as a comma separated list. $PAR \[ $eqn \] $PAR \( $var \) = \{ ans_rule(30) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $PAR $BR END_TEXT diff --git a/Contrib/Mizzou/College_Algebra/Equations_Quadratic/FactoringNegativeCoeff.pg b/Contrib/Mizzou/College_Algebra/Equations_Quadratic/FactoringNegativeCoeff.pg index 496f819a97..07163e8b27 100644 --- a/Contrib/Mizzou/College_Algebra/Equations_Quadratic/FactoringNegativeCoeff.pg +++ b/Contrib/Mizzou/College_Algebra/Equations_Quadratic/FactoringNegativeCoeff.pg @@ -4,9 +4,9 @@ ## KEYWORDS('quadratic', 'equations') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Algebra: Form and Function') -## DBchapter('Equations and Inequalities') +## DBchapter('Equations and Inequalities') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -30,7 +30,7 @@ loadMacros( "PeriodicRerandomization.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -44,7 +44,7 @@ PeriodicRerandomization("3"); Context("Numeric"); $c = list_random(2,3,4,5,6,7,8,9,10); $m = list_random(-3,-2)*$c; -do {$n = list_random(2,3,4,5,6,7,8,9,10)} +do {$n = list_random(2,3,4,5,6,7,8,9,10)} until ($n != -$m && $n != -$m + 1 && $n != -$m - 1 ); $a = $m*$n/$c; $b = $m + $n; @@ -60,14 +60,14 @@ $answer = List( Fraction(-$c,$m), Fraction(-$c,$n) ); # Main text Context()->texStrings; BEGIN_TEXT -Solve the equation for \($var\). If there is more than one +Solve the equation for \($var\). If there is more than one correct answer, enter your answers as a comma separated list. $PAR \[ $eqn \] $PAR \( $var \) = \{ ans_rule(30) \} $PAR -\{ AnswerFormatHelp("numbers", "Click here for help entering numbers in WeBWorK") \} +\{ helpLink("numbers", "Click here for help entering numbers in WeBWorK") \} $BR END_TEXT @@ -82,7 +82,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Equations_Quadratic/GauranteedPositiveCoefficient.pg b/Contrib/Mizzou/College_Algebra/Equations_Quadratic/GauranteedPositiveCoefficient.pg index 4dbb6ad050..39c5be609f 100644 --- a/Contrib/Mizzou/College_Algebra/Equations_Quadratic/GauranteedPositiveCoefficient.pg +++ b/Contrib/Mizzou/College_Algebra/Equations_Quadratic/GauranteedPositiveCoefficient.pg @@ -4,9 +4,9 @@ ## KEYWORDS('quadratic', 'equations') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Algebra: Form and Function') -## DBchapter('Equations and Inequalities') +## DBchapter('Equations and Inequalities') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -30,7 +30,7 @@ loadMacros( "PeriodicRerandomization.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -60,14 +60,14 @@ $answer = List( Fraction(-$c,$m), Fraction(-$c,$n) ); Context()->texStrings; BEGIN_TEXT -Solve the equation for \($var\). If there is more than one +Solve the equation for \($var\). If there is more than one correct answer, enter your answers as a comma separated list. $PAR \[ $eqn \] $PAR \( $var \) = \{ ans_rule(30) \} $PAR -\{ AnswerFormatHelp("numbers", "Click here for help entering numbers in WeBWorK") \} +\{ helpLink("numbers", "Click here for help entering numbers in WeBWorK") \} $PAR END_TEXT @@ -82,7 +82,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ############################################# diff --git a/Contrib/Mizzou/College_Algebra/Equations_Quadratic/Sub2.pg b/Contrib/Mizzou/College_Algebra/Equations_Quadratic/Sub2.pg index c0e7e64db2..6826bbc068 100644 --- a/Contrib/Mizzou/College_Algebra/Equations_Quadratic/Sub2.pg +++ b/Contrib/Mizzou/College_Algebra/Equations_Quadratic/Sub2.pg @@ -4,9 +4,9 @@ ## KEYWORDS('quadratic', 'equations') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Algebra: Form and Function') -## DBchapter('Equations and Inequalities') +## DBchapter('Equations and Inequalities') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -29,7 +29,7 @@ loadMacros( "PeriodicRerandomization.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -41,7 +41,7 @@ TEXT(beginproblem()); Context("Numeric"); $a = random(3,5,1); -$b = random(3,6,1); +$b = random(3,6,1); $c = random(5,9,1); $ccpb = $c*$c + $b; @@ -56,12 +56,12 @@ $answer = List( Compute("$c-$a"), Compute("-$c-$a") ); # Main text BEGIN_TEXT -Solve the equation \( $eqn \). If there is more than one +Solve the equation \( $eqn \). If there is more than one correct answer, enter your answers as a comma separated list. $BR $BR \( $var \) = \{ ans_rule(30) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $PAR $BR END_TEXT diff --git a/Contrib/Mizzou/College_Algebra/Equations_Quadratic/Sub3.pg b/Contrib/Mizzou/College_Algebra/Equations_Quadratic/Sub3.pg index 043f50beaf..97c983871f 100644 --- a/Contrib/Mizzou/College_Algebra/Equations_Quadratic/Sub3.pg +++ b/Contrib/Mizzou/College_Algebra/Equations_Quadratic/Sub3.pg @@ -4,9 +4,9 @@ ## KEYWORDS('quadratic', 'equations') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Algebra: Form and Function') -## DBchapter('Equations and Inequalities') +## DBchapter('Equations and Inequalities') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -29,7 +29,7 @@ loadMacros( "PeriodicRerandomization.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -41,7 +41,7 @@ TEXT(beginproblem()); Context("Numeric"); $a = random(3,5,1); -$b = random(3,6,1); +$b = random(3,6,1); $c = random(5,9,1); $ccpb = $c*$c + $b; @@ -56,12 +56,12 @@ $answer = List( Compute("$c-$a"), Compute("-$c-$a") ); # Main text BEGIN_TEXT -Solve the equation \( $eqn \). If there is more than one +Solve the equation \( $eqn \). If there is more than one correct answer, enter your answers as a comma separated list. $BR $BR \( $var \) = \{ ans_rule(30) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $PAR $BR END_TEXT diff --git a/Contrib/Mizzou/College_Algebra/Equations_Radical/Rad7.pg b/Contrib/Mizzou/College_Algebra/Equations_Radical/Rad7.pg index 65ba205b01..80e50952c5 100644 --- a/Contrib/Mizzou/College_Algebra/Equations_Radical/Rad7.pg +++ b/Contrib/Mizzou/College_Algebra/Equations_Radical/Rad7.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical', 'equations') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Equations and Inequalities') -## DBchapter('Other Equations') +## DBchapter('Other Equations') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -96,14 +96,14 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } else { BEGIN_TEXT - ${BBOLD}Note:$EBOLD Write your answer in exact form using square roots or radical notation if necessary (\{ AnswerFormatHelp("exponents", "click here for help writing square roots")\}). If there is more than one correct answer, enter your answers as a comma separated list. If the equation has no real solution, write "No Solution". + ${BBOLD}Note:$EBOLD Write your answer in exact form using square roots or radical notation if necessary (\{ helpLink("exponents", "click here for help writing square roots")\}). If there is more than one correct answer, enter your answers as a comma separated list. If the equation has no real solution, write "No Solution". $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); $showPartialCorrectAnswers = 1; diff --git a/Contrib/Mizzou/College_Algebra/Equations_Radical/Radical3.pg b/Contrib/Mizzou/College_Algebra/Equations_Radical/Radical3.pg index a617ccc1c9..8d04882c15 100644 --- a/Contrib/Mizzou/College_Algebra/Equations_Radical/Radical3.pg +++ b/Contrib/Mizzou/College_Algebra/Equations_Radical/Radical3.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical', 'equations') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Equations and Inequalities') -## DBchapter('Other Equations') +## DBchapter('Other Equations') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -95,14 +95,14 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } } else { BEGIN_TEXT - ${BBOLD}Note:$EBOLD Write your answer in exact form using square roots or radical notation if necessary (\{ AnswerFormatHelp("exponents", "click here for help writing square roots")\}). If there is more than one correct answer, enter your answers as a comma separated list. If the equation has no real solution, write "No Solution". + ${BBOLD}Note:$EBOLD Write your answer in exact form using square roots or radical notation if necessary (\{ helpLink("exponents", "click here for help writing square roots")\}). If there is more than one correct answer, enter your answers as a comma separated list. If the equation has no real solution, write "No Solution". $PAR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); $showPartialCorrectAnswers = 1; diff --git a/Contrib/Mizzou/College_Algebra/Equations_Radical/Radical6a.pg b/Contrib/Mizzou/College_Algebra/Equations_Radical/Radical6a.pg index 4a2d760b62..5844f5b840 100644 --- a/Contrib/Mizzou/College_Algebra/Equations_Radical/Radical6a.pg +++ b/Contrib/Mizzou/College_Algebra/Equations_Radical/Radical6a.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical', 'equations') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Equations and Inequalities') -## DBchapter('Other Equations') +## DBchapter('Other Equations') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -105,14 +105,14 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } else { BEGIN_TEXT - ${BBOLD}Note:$EBOLD Write your answer in exact form using square roots or radical notation if necessary (\{ AnswerFormatHelp("exponents", "click here for help writing square roots")\}). If there is more than one correct answer, enter your answers as a comma separated list. If the equation has no real solution, write "No Solution". + ${BBOLD}Note:$EBOLD Write your answer in exact form using square roots or radical notation if necessary (\{ helpLink("exponents", "click here for help writing square roots")\}). If there is more than one correct answer, enter your answers as a comma separated list. If the equation has no real solution, write "No Solution". $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); $showPartialCorrectAnswers = 1; diff --git a/Contrib/Mizzou/College_Algebra/Equations_Rational/Solve_For_Variable.pg b/Contrib/Mizzou/College_Algebra/Equations_Rational/Solve_For_Variable.pg index 4d6332c232..28f9b81eee 100644 --- a/Contrib/Mizzou/College_Algebra/Equations_Rational/Solve_For_Variable.pg +++ b/Contrib/Mizzou/College_Algebra/Equations_Rational/Solve_For_Variable.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -28,7 +28,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); Context()->variables->are(x=>"Real", y=>"Real", z=>"Real", uc("x")=>"Real", uc("y")=>"Real", uc("z")=>"Real"); @@ -94,11 +94,11 @@ if ($case == 0) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT -Solve the following equation for \($solvefor\): +Solve the following equation for \($solvefor\): $PAR \[ \displaystyle $dispeqn @@ -109,7 +109,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($ans)->cmp()); @@ -121,7 +121,7 @@ ANS(Compute($ans)->cmp()); if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR - ${BBOLD}Answer:${EBOLD} + ${BBOLD}Answer:${EBOLD} \($solvefor = \displaystyle\frac{$num}{$den}\) $PAR END_TEXT @@ -131,7 +131,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Equations_Systems_of_Linear_Equations/Linear_Systems_Solve_By_Graphing.pg b/Contrib/Mizzou/College_Algebra/Equations_Systems_of_Linear_Equations/Linear_Systems_Solve_By_Graphing.pg index f88e9bc5d2..a4791936be 100644 --- a/Contrib/Mizzou/College_Algebra/Equations_Systems_of_Linear_Equations/Linear_Systems_Solve_By_Graphing.pg +++ b/Contrib/Mizzou/College_Algebra/Equations_Systems_of_Linear_Equations/Linear_Systems_Solve_By_Graphing.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -32,7 +32,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("LimitedPoint"); Context()->strings->add("no solution"=>{}, "no solutions"=>{alias=>"no solution"}, "no soln"=>{alias=>"no solution"}, "no solns"=>{alias=>"no solution"}, "none"=>{alias=>"no solution"}, "infinitely many"=>{}); @@ -114,7 +114,7 @@ if ($y0 == $y2) { $fun2->steps(1500); } # uncomment to put show intersection point on the graph -#$graph->stamps(new Circle($x0, $y0, 6, 'blue', 'blue')); +#$graph->stamps(new Circle($x0, $y0, 6, 'blue', 'blue')); # here in order to write the system in the problem statement $xcoeff1 = $y0-$y1; @@ -145,7 +145,7 @@ if ($ycoeff1 == 0 && $xcoeff2 == 0) { if ($xcoeff1 == 1) {$eqn = $eqn."x"} elsif ($xcoeff1 == -1) {$eqn = $eqn."-x"} else {$eqn = $eqn."$xcoeff1 x"}; $eqn = $eqn." & & & = & $const1\\"; if ($xcoeff2 == 1) {$eqn = $eqn."x"} elsif ($xcoeff2 == -1) {$eqn = $eqn."-x"} else {$eqn = $eqn."$xcoeff2 x"}; - $eqn = $eqn." & $sign2 & "; + $eqn = $eqn." & $sign2 & "; if ($ycoeff2 == 1) {$eqn = $eqn."y"} else {$eqn = $eqn."$ycoeff2 y"}; $eqn = $eqn."& = & $const2 \end{array} \right. \)"; } elsif ($ycoeff1 != 0 && $xcoeff2 == 0) { @@ -166,7 +166,7 @@ if ($ycoeff1 == 0 && $xcoeff2 == 0) { if ($ycoeff1 == 1) {$eqn = $eqn."y"} else {$eqn = $eqn."$ycoeff1 y"}; $eqn = $eqn." & = & $const1\\"; if ($xcoeff2 == 1) {$eqn = $eqn."x"} elsif ($xcoeff2 == -1) {$eqn = $eqn."-x"} else {$eqn = $eqn."$xcoeff2 x"}; - $eqn = $eqn." & $sign2 & "; + $eqn = $eqn." & $sign2 & "; if ($ycoeff2 == 1) {$eqn = $eqn."y"} else {$eqn = $eqn."$ycoeff2 y"}; $eqn = $eqn."& = & $const2 \end{array} \right. \)"; } @@ -174,7 +174,7 @@ $answer = Point("($x0,$y0)"); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -182,14 +182,14 @@ Solve the following system of equations graphically: $eqn $PAR $BCENTER \{ image( insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>800 ) \} -$ECENTER +$ECENTER $PAR -Answer: \{ans_rule(20)\} +Answer: \{ans_rule(20)\} END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp(tolType => 'absolute', tolerance => 0.2)); diff --git a/Contrib/Mizzou/College_Algebra/Exponential_Functions_Applications/ExpDomain1.pg b/Contrib/Mizzou/College_Algebra/Exponential_Functions_Applications/ExpDomain1.pg index 7a60366d33..7f27e7d18f 100644 --- a/Contrib/Mizzou/College_Algebra/Exponential_Functions_Applications/ExpDomain1.pg +++ b/Contrib/Mizzou/College_Algebra/Exponential_Functions_Applications/ExpDomain1.pg @@ -4,9 +4,9 @@ ## KEYWORDS('logarithm', 'laws of logarithms') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Exponential and Logarithmic Functions') -## DBchapter('Laws of Logarithms') +## DBchapter('Laws of Logarithms') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -26,7 +26,7 @@ loadMacros( "PGchoicemacros.pl", "PGunion.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -50,8 +50,8 @@ $ans = Compute(" R - {$a/$b }" ); Context()->texStrings; BEGIN_TEXT -Find the domain of the function \(f(x) = 2^{$exp}\). Write your answer using -\{AnswerFormatHelp("interval", "interval notation")\}. +Find the domain of the function \(f(x) = 2^{$exp}\). Write your answer using +\{helpLink("interval", "interval notation")\}. $PAR $SPACE The domain is \{ans_rule(20)\}. END_TEXT diff --git a/Contrib/Mizzou/College_Algebra/Factoring_GCF/GCF10.pg b/Contrib/Mizzou/College_Algebra/Factoring_GCF/GCF10.pg index 505ec77873..26e9cd7211 100644 --- a/Contrib/Mizzou/College_Algebra/Factoring_GCF/GCF10.pg +++ b/Contrib/Mizzou/College_Algebra/Factoring_GCF/GCF10.pg @@ -31,7 +31,7 @@ loadMacros( "PeriodicRerandomization.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -78,7 +78,7 @@ $multians = MultiAnswer($fac1, $fac2)->with( BEGIN_TEXT -Rewrite the expression $expression by taking +Rewrite the expression $expression by taking out the greatest common factor. $BR $BR @@ -87,7 +87,7 @@ $BR \( \big) \big( \) \{ $multians->ans_rule(10) \} \( \big) \) -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $PAR $BR END_TEXT diff --git a/Contrib/Mizzou/College_Algebra/Factoring_GCF/GCF11.pg b/Contrib/Mizzou/College_Algebra/Factoring_GCF/GCF11.pg index b365ada47a..d41e353c34 100644 --- a/Contrib/Mizzou/College_Algebra/Factoring_GCF/GCF11.pg +++ b/Contrib/Mizzou/College_Algebra/Factoring_GCF/GCF11.pg @@ -31,7 +31,7 @@ loadMacros( "PeriodicRerandomization.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -78,7 +78,7 @@ $multians = MultiAnswer($fac1, $fac2)->with( BEGIN_TEXT -Rewrite the expression $expression by taking +Rewrite the expression $expression by taking out the greatest common factor. $BR $BR @@ -87,7 +87,7 @@ $BR \( \big) \big( \) \{ $multians->ans_rule(10) \} \( \big) \) -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $PAR $BR END_TEXT diff --git a/Contrib/Mizzou/College_Algebra/Factoring_GCF/GCF12.pg b/Contrib/Mizzou/College_Algebra/Factoring_GCF/GCF12.pg index 30d03c96dc..28a8ba3f8d 100644 --- a/Contrib/Mizzou/College_Algebra/Factoring_GCF/GCF12.pg +++ b/Contrib/Mizzou/College_Algebra/Factoring_GCF/GCF12.pg @@ -31,7 +31,7 @@ loadMacros( "PeriodicRerandomization.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -78,7 +78,7 @@ $multians = MultiAnswer($fac1, $fac2)->with( BEGIN_TEXT -Rewrite the expression $expression by taking +Rewrite the expression $expression by taking out the greatest common factor. $BR $BR @@ -87,7 +87,7 @@ $BR \( \big) \big( \) \{ $multians->ans_rule(10) \} \( \big) \) -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $PAR $BR END_TEXT diff --git a/Contrib/Mizzou/College_Algebra/Factoring_GCF/GCF14.pg b/Contrib/Mizzou/College_Algebra/Factoring_GCF/GCF14.pg index 4baab41166..eec7e73159 100644 --- a/Contrib/Mizzou/College_Algebra/Factoring_GCF/GCF14.pg +++ b/Contrib/Mizzou/College_Algebra/Factoring_GCF/GCF14.pg @@ -31,7 +31,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -64,7 +64,7 @@ $expression = "\( $a1 x^{$exp1} + $b1 x^{$exp2} + $c1 x^{$exp3} \)"; BEGIN_TEXT -Rewrite the expression $expression by taking +Rewrite the expression $expression by taking out the greatest common factor and putting it in front. $BR @@ -73,7 +73,7 @@ $BR \( \big( \) \{ ans_rule(10) \} \( \big) \) -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $PAR $BR END_TEXT diff --git a/Contrib/Mizzou/College_Algebra/Factoring_GCF/GCF15.pg b/Contrib/Mizzou/College_Algebra/Factoring_GCF/GCF15.pg index 4baab41166..eec7e73159 100644 --- a/Contrib/Mizzou/College_Algebra/Factoring_GCF/GCF15.pg +++ b/Contrib/Mizzou/College_Algebra/Factoring_GCF/GCF15.pg @@ -31,7 +31,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -64,7 +64,7 @@ $expression = "\( $a1 x^{$exp1} + $b1 x^{$exp2} + $c1 x^{$exp3} \)"; BEGIN_TEXT -Rewrite the expression $expression by taking +Rewrite the expression $expression by taking out the greatest common factor and putting it in front. $BR @@ -73,7 +73,7 @@ $BR \( \big( \) \{ ans_rule(10) \} \( \big) \) -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $PAR $BR END_TEXT diff --git a/Contrib/Mizzou/College_Algebra/Factoring_GCF/GCF16.pg b/Contrib/Mizzou/College_Algebra/Factoring_GCF/GCF16.pg index 4baab41166..eec7e73159 100644 --- a/Contrib/Mizzou/College_Algebra/Factoring_GCF/GCF16.pg +++ b/Contrib/Mizzou/College_Algebra/Factoring_GCF/GCF16.pg @@ -31,7 +31,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -64,7 +64,7 @@ $expression = "\( $a1 x^{$exp1} + $b1 x^{$exp2} + $c1 x^{$exp3} \)"; BEGIN_TEXT -Rewrite the expression $expression by taking +Rewrite the expression $expression by taking out the greatest common factor and putting it in front. $BR @@ -73,7 +73,7 @@ $BR \( \big( \) \{ ans_rule(10) \} \( \big) \) -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $PAR $BR END_TEXT diff --git a/Contrib/Mizzou/College_Algebra/Factoring_GCF/GCF2.pg b/Contrib/Mizzou/College_Algebra/Factoring_GCF/GCF2.pg index b637f45dc7..8d350cdf75 100644 --- a/Contrib/Mizzou/College_Algebra/Factoring_GCF/GCF2.pg +++ b/Contrib/Mizzou/College_Algebra/Factoring_GCF/GCF2.pg @@ -29,7 +29,7 @@ loadMacros( "PeriodicRerandomization.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -76,7 +76,7 @@ $multians = MultiAnswer($fac1, $fac2)->with( BEGIN_TEXT -Factor the expression $expression. Simplify your +Factor the expression $expression. Simplify your answer as much as possible. $BR $BR @@ -85,7 +85,7 @@ $BR \( \big) \big( \) \{ $multians->ans_rule(10) \} \( \big) \) -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $PAR $BR END_TEXT diff --git a/Contrib/Mizzou/College_Algebra/Factoring_GCF/GCF3.pg b/Contrib/Mizzou/College_Algebra/Factoring_GCF/GCF3.pg index b637f45dc7..8d350cdf75 100644 --- a/Contrib/Mizzou/College_Algebra/Factoring_GCF/GCF3.pg +++ b/Contrib/Mizzou/College_Algebra/Factoring_GCF/GCF3.pg @@ -29,7 +29,7 @@ loadMacros( "PeriodicRerandomization.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -76,7 +76,7 @@ $multians = MultiAnswer($fac1, $fac2)->with( BEGIN_TEXT -Factor the expression $expression. Simplify your +Factor the expression $expression. Simplify your answer as much as possible. $BR $BR @@ -85,7 +85,7 @@ $BR \( \big) \big( \) \{ $multians->ans_rule(10) \} \( \big) \) -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $PAR $BR END_TEXT diff --git a/Contrib/Mizzou/College_Algebra/Factoring_GCF/GCF4.pg b/Contrib/Mizzou/College_Algebra/Factoring_GCF/GCF4.pg index b637f45dc7..8d350cdf75 100644 --- a/Contrib/Mizzou/College_Algebra/Factoring_GCF/GCF4.pg +++ b/Contrib/Mizzou/College_Algebra/Factoring_GCF/GCF4.pg @@ -29,7 +29,7 @@ loadMacros( "PeriodicRerandomization.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -76,7 +76,7 @@ $multians = MultiAnswer($fac1, $fac2)->with( BEGIN_TEXT -Factor the expression $expression. Simplify your +Factor the expression $expression. Simplify your answer as much as possible. $BR $BR @@ -85,7 +85,7 @@ $BR \( \big) \big( \) \{ $multians->ans_rule(10) \} \( \big) \) -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $PAR $BR END_TEXT diff --git a/Contrib/Mizzou/College_Algebra/Factoring_GCF/GCF6.pg b/Contrib/Mizzou/College_Algebra/Factoring_GCF/GCF6.pg index 831a492b6c..969750cbee 100644 --- a/Contrib/Mizzou/College_Algebra/Factoring_GCF/GCF6.pg +++ b/Contrib/Mizzou/College_Algebra/Factoring_GCF/GCF6.pg @@ -30,7 +30,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextPolynomialFactors.pl", "contextLimitedPowers.pl", "PGcourse.pl" @@ -68,13 +68,13 @@ $answer = Compute("(2 a) ($x a^2 + $yy b^2)"); # Main text BEGIN_TEXT -Factor the expression $expression. Simplify your +Factor the expression $expression. Simplify your answer as much as possible, but do not combine like factors. $BR $BR \{ ans_rule(30) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $PAR $BR END_TEXT diff --git a/Contrib/Mizzou/College_Algebra/Factoring_GCF/GCF7.pg b/Contrib/Mizzou/College_Algebra/Factoring_GCF/GCF7.pg index 831a492b6c..969750cbee 100644 --- a/Contrib/Mizzou/College_Algebra/Factoring_GCF/GCF7.pg +++ b/Contrib/Mizzou/College_Algebra/Factoring_GCF/GCF7.pg @@ -30,7 +30,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextPolynomialFactors.pl", "contextLimitedPowers.pl", "PGcourse.pl" @@ -68,13 +68,13 @@ $answer = Compute("(2 a) ($x a^2 + $yy b^2)"); # Main text BEGIN_TEXT -Factor the expression $expression. Simplify your +Factor the expression $expression. Simplify your answer as much as possible, but do not combine like factors. $BR $BR \{ ans_rule(30) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $PAR $BR END_TEXT diff --git a/Contrib/Mizzou/College_Algebra/Factoring_GCF/GCF8.pg b/Contrib/Mizzou/College_Algebra/Factoring_GCF/GCF8.pg index 831a492b6c..969750cbee 100644 --- a/Contrib/Mizzou/College_Algebra/Factoring_GCF/GCF8.pg +++ b/Contrib/Mizzou/College_Algebra/Factoring_GCF/GCF8.pg @@ -30,7 +30,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextPolynomialFactors.pl", "contextLimitedPowers.pl", "PGcourse.pl" @@ -68,13 +68,13 @@ $answer = Compute("(2 a) ($x a^2 + $yy b^2)"); # Main text BEGIN_TEXT -Factor the expression $expression. Simplify your +Factor the expression $expression. Simplify your answer as much as possible, but do not combine like factors. $BR $BR \{ ans_rule(30) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $PAR $BR END_TEXT diff --git a/Contrib/Mizzou/College_Algebra/Factoring_Grouping/Grouping2.pg b/Contrib/Mizzou/College_Algebra/Factoring_Grouping/Grouping2.pg index 907c9c4d17..94c0fdeed3 100644 --- a/Contrib/Mizzou/College_Algebra/Factoring_Grouping/Grouping2.pg +++ b/Contrib/Mizzou/College_Algebra/Factoring_Grouping/Grouping2.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -79,7 +79,7 @@ $multians = MultiAnswer($fac1, $fac2)->with( BEGIN_TEXT -Factor the expression $expression. Simplify your +Factor the expression $expression. Simplify your answer as much as possible. $BR $BR @@ -88,7 +88,7 @@ $BR \( \big) \big( \) \{ $multians->ans_rule(10) \} \( \big) \) -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $PAR $BR END_TEXT diff --git a/Contrib/Mizzou/College_Algebra/Factoring_Grouping/Grouping3.pg b/Contrib/Mizzou/College_Algebra/Factoring_Grouping/Grouping3.pg index 907c9c4d17..94c0fdeed3 100644 --- a/Contrib/Mizzou/College_Algebra/Factoring_Grouping/Grouping3.pg +++ b/Contrib/Mizzou/College_Algebra/Factoring_Grouping/Grouping3.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -79,7 +79,7 @@ $multians = MultiAnswer($fac1, $fac2)->with( BEGIN_TEXT -Factor the expression $expression. Simplify your +Factor the expression $expression. Simplify your answer as much as possible. $BR $BR @@ -88,7 +88,7 @@ $BR \( \big) \big( \) \{ $multians->ans_rule(10) \} \( \big) \) -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $PAR $BR END_TEXT diff --git a/Contrib/Mizzou/College_Algebra/Factoring_Grouping/Grouping4.pg b/Contrib/Mizzou/College_Algebra/Factoring_Grouping/Grouping4.pg index 907c9c4d17..94c0fdeed3 100644 --- a/Contrib/Mizzou/College_Algebra/Factoring_Grouping/Grouping4.pg +++ b/Contrib/Mizzou/College_Algebra/Factoring_Grouping/Grouping4.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -79,7 +79,7 @@ $multians = MultiAnswer($fac1, $fac2)->with( BEGIN_TEXT -Factor the expression $expression. Simplify your +Factor the expression $expression. Simplify your answer as much as possible. $BR $BR @@ -88,7 +88,7 @@ $BR \( \big) \big( \) \{ $multians->ans_rule(10) \} \( \big) \) -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $PAR $BR END_TEXT diff --git a/Contrib/Mizzou/College_Algebra/Factoring_Grouping/LeadingTermOne2.pg b/Contrib/Mizzou/College_Algebra/Factoring_Grouping/LeadingTermOne2.pg index 7eb6f5484a..e1e3a8c7aa 100644 --- a/Contrib/Mizzou/College_Algebra/Factoring_Grouping/LeadingTermOne2.pg +++ b/Contrib/Mizzou/College_Algebra/Factoring_Grouping/LeadingTermOne2.pg @@ -31,7 +31,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -86,7 +86,7 @@ $multians = MultiAnswer($fac1, $fac2)->with( BEGIN_TEXT -Factor the expression $expression. Simplify your +Factor the expression $expression. Simplify your answer as much as possible. $BR $BR @@ -95,7 +95,7 @@ $BR \( \big) \big( \) \{ $multians->ans_rule(10) \} \( \big) \) -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $PAR $BR END_TEXT diff --git a/Contrib/Mizzou/College_Algebra/Factoring_Grouping/LeadingTermOne3.pg b/Contrib/Mizzou/College_Algebra/Factoring_Grouping/LeadingTermOne3.pg index 7eb6f5484a..e1e3a8c7aa 100644 --- a/Contrib/Mizzou/College_Algebra/Factoring_Grouping/LeadingTermOne3.pg +++ b/Contrib/Mizzou/College_Algebra/Factoring_Grouping/LeadingTermOne3.pg @@ -31,7 +31,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -86,7 +86,7 @@ $multians = MultiAnswer($fac1, $fac2)->with( BEGIN_TEXT -Factor the expression $expression. Simplify your +Factor the expression $expression. Simplify your answer as much as possible. $BR $BR @@ -95,7 +95,7 @@ $BR \( \big) \big( \) \{ $multians->ans_rule(10) \} \( \big) \) -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $PAR $BR END_TEXT diff --git a/Contrib/Mizzou/College_Algebra/Factoring_Grouping/LeadingTermOne4.pg b/Contrib/Mizzou/College_Algebra/Factoring_Grouping/LeadingTermOne4.pg index 7eb6f5484a..e1e3a8c7aa 100644 --- a/Contrib/Mizzou/College_Algebra/Factoring_Grouping/LeadingTermOne4.pg +++ b/Contrib/Mizzou/College_Algebra/Factoring_Grouping/LeadingTermOne4.pg @@ -31,7 +31,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -86,7 +86,7 @@ $multians = MultiAnswer($fac1, $fac2)->with( BEGIN_TEXT -Factor the expression $expression. Simplify your +Factor the expression $expression. Simplify your answer as much as possible. $BR $BR @@ -95,7 +95,7 @@ $BR \( \big) \big( \) \{ $multians->ans_rule(10) \} \( \big) \) -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $PAR $BR END_TEXT diff --git a/Contrib/Mizzou/College_Algebra/Factoring_Grouping/MultiVar2.pg b/Contrib/Mizzou/College_Algebra/Factoring_Grouping/MultiVar2.pg index 892726fc0f..a274175a23 100644 --- a/Contrib/Mizzou/College_Algebra/Factoring_Grouping/MultiVar2.pg +++ b/Contrib/Mizzou/College_Algebra/Factoring_Grouping/MultiVar2.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -79,7 +79,7 @@ $multians = MultiAnswer($fac1, $fac2)->with( BEGIN_TEXT -Factor the expression $expression. Simplify your +Factor the expression $expression. Simplify your answer as much as possible. $BR $BR @@ -88,7 +88,7 @@ $BR \( \big) \big( \) \{ $multians->ans_rule(10) \} \( \big) \) -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $PAR $BR END_TEXT diff --git a/Contrib/Mizzou/College_Algebra/Factoring_Grouping/MultiVar4.pg b/Contrib/Mizzou/College_Algebra/Factoring_Grouping/MultiVar4.pg index 505646375e..5ec2938f4b 100644 --- a/Contrib/Mizzou/College_Algebra/Factoring_Grouping/MultiVar4.pg +++ b/Contrib/Mizzou/College_Algebra/Factoring_Grouping/MultiVar4.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -79,7 +79,7 @@ $multians = MultiAnswer($fac1, $fac2)->with( BEGIN_TEXT -Factor the expression $expression. Simplify your +Factor the expression $expression. Simplify your answer as much as possible. $BR $BR @@ -88,7 +88,7 @@ $BR \( \big) \big( \) \{ $multians->ans_rule(10) \} \( \big) \) -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $PAR $BR END_TEXT diff --git a/Contrib/Mizzou/College_Algebra/Factoring_Special_Cases/DiffOfCubes2.pg b/Contrib/Mizzou/College_Algebra/Factoring_Special_Cases/DiffOfCubes2.pg index 6ca2ddb7e2..0625ab62ba 100644 --- a/Contrib/Mizzou/College_Algebra/Factoring_Special_Cases/DiffOfCubes2.pg +++ b/Contrib/Mizzou/College_Algebra/Factoring_Special_Cases/DiffOfCubes2.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -41,7 +41,7 @@ Context("Numeric"); Context()->variables->are(x=>"Real"); $a = list_random(-12,-11,-10,-9,-8,-7-6,-5,-4,-3,-2,2,3,4,5,6,7,8,9,10,11,12); -do {$c = list_random(-10,-5,-4,-3,-2,-1,1,2,3,4,5,10)} +do {$c = list_random(-10,-5,-4,-3,-2,-1,1,2,3,4,5,10)} until (gcd($a, $c ) == 1); #$e1 = $a**3; $e3 = $c**3; @@ -76,7 +76,7 @@ $multians = MultiAnswer($fac1, $fac2)->with( BEGIN_TEXT -Factor the expression $expression. Simplify your +Factor the expression $expression. Simplify your answer as much as possible. $BR $BR @@ -85,7 +85,7 @@ $BR \( \big) \big( \) \{ $multians->ans_rule(10) \} \( \big) \) -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $PAR $BR END_TEXT diff --git a/Contrib/Mizzou/College_Algebra/Factoring_Special_Cases/DiffOfCubes3.pg b/Contrib/Mizzou/College_Algebra/Factoring_Special_Cases/DiffOfCubes3.pg index 6ca2ddb7e2..0625ab62ba 100644 --- a/Contrib/Mizzou/College_Algebra/Factoring_Special_Cases/DiffOfCubes3.pg +++ b/Contrib/Mizzou/College_Algebra/Factoring_Special_Cases/DiffOfCubes3.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -41,7 +41,7 @@ Context("Numeric"); Context()->variables->are(x=>"Real"); $a = list_random(-12,-11,-10,-9,-8,-7-6,-5,-4,-3,-2,2,3,4,5,6,7,8,9,10,11,12); -do {$c = list_random(-10,-5,-4,-3,-2,-1,1,2,3,4,5,10)} +do {$c = list_random(-10,-5,-4,-3,-2,-1,1,2,3,4,5,10)} until (gcd($a, $c ) == 1); #$e1 = $a**3; $e3 = $c**3; @@ -76,7 +76,7 @@ $multians = MultiAnswer($fac1, $fac2)->with( BEGIN_TEXT -Factor the expression $expression. Simplify your +Factor the expression $expression. Simplify your answer as much as possible. $BR $BR @@ -85,7 +85,7 @@ $BR \( \big) \big( \) \{ $multians->ans_rule(10) \} \( \big) \) -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $PAR $BR END_TEXT diff --git a/Contrib/Mizzou/College_Algebra/Factoring_Special_Cases/DiffOfCubes4.pg b/Contrib/Mizzou/College_Algebra/Factoring_Special_Cases/DiffOfCubes4.pg index 6ca2ddb7e2..0625ab62ba 100644 --- a/Contrib/Mizzou/College_Algebra/Factoring_Special_Cases/DiffOfCubes4.pg +++ b/Contrib/Mizzou/College_Algebra/Factoring_Special_Cases/DiffOfCubes4.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -41,7 +41,7 @@ Context("Numeric"); Context()->variables->are(x=>"Real"); $a = list_random(-12,-11,-10,-9,-8,-7-6,-5,-4,-3,-2,2,3,4,5,6,7,8,9,10,11,12); -do {$c = list_random(-10,-5,-4,-3,-2,-1,1,2,3,4,5,10)} +do {$c = list_random(-10,-5,-4,-3,-2,-1,1,2,3,4,5,10)} until (gcd($a, $c ) == 1); #$e1 = $a**3; $e3 = $c**3; @@ -76,7 +76,7 @@ $multians = MultiAnswer($fac1, $fac2)->with( BEGIN_TEXT -Factor the expression $expression. Simplify your +Factor the expression $expression. Simplify your answer as much as possible. $BR $BR @@ -85,7 +85,7 @@ $BR \( \big) \big( \) \{ $multians->ans_rule(10) \} \( \big) \) -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $PAR $BR END_TEXT diff --git a/Contrib/Mizzou/College_Algebra/Factoring_Special_Cases/DiffOfCubes6.pg b/Contrib/Mizzou/College_Algebra/Factoring_Special_Cases/DiffOfCubes6.pg index d451b5e7ba..8d8e74bd51 100644 --- a/Contrib/Mizzou/College_Algebra/Factoring_Special_Cases/DiffOfCubes6.pg +++ b/Contrib/Mizzou/College_Algebra/Factoring_Special_Cases/DiffOfCubes6.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -41,7 +41,7 @@ Context("Numeric"); Context()->variables->are(x=>"Real",y=>"Real"); $a = list_random(-10,-5,-4,-3,-2,2,3,4,5,10); -do {$c = list_random(-10,-5,-4,-3,-2,-1,1,2,3,4,5,10)} +do {$c = list_random(-10,-5,-4,-3,-2,-1,1,2,3,4,5,10)} until (gcd($a, $c ) == 1); $e1 = $a**3; $e3 = $c**3; @@ -76,7 +76,7 @@ $multians = MultiAnswer($fac1, $fac2)->with( BEGIN_TEXT -Factor the expression $expression. Simplify your +Factor the expression $expression. Simplify your answer as much as possible. $BR $BR @@ -85,7 +85,7 @@ $BR \( \big) \big( \) \{ $multians->ans_rule(10) \} \( \big) \) -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $PAR $BR END_TEXT diff --git a/Contrib/Mizzou/College_Algebra/Factoring_Special_Cases/DiffOfSquares2.pg b/Contrib/Mizzou/College_Algebra/Factoring_Special_Cases/DiffOfSquares2.pg index 2b10b995c5..456ff7d6cc 100644 --- a/Contrib/Mizzou/College_Algebra/Factoring_Special_Cases/DiffOfSquares2.pg +++ b/Contrib/Mizzou/College_Algebra/Factoring_Special_Cases/DiffOfSquares2.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -41,7 +41,7 @@ Context("Numeric"); Context()->variables->are(x=>"Real"); $a = list_random(-12,-11,-10,-9,-8,-7-6,-5,-4,-3,-2,2,3,4,5,6,7,8,9,10,11,12); -do {$c = list_random(-12,-11,-10,-9,-8,-7-6,-5,-4,-3,-2,2,3,4,5,6,7,8,9,10,11,12)} +do {$c = list_random(-12,-11,-10,-9,-8,-7-6,-5,-4,-3,-2,2,3,4,5,6,7,8,9,10,11,12)} until (gcd($a, $c ) == 1); $e1 = 1; $e3 = -$a**2; @@ -76,7 +76,7 @@ $multians = MultiAnswer($fac1, $fac2)->with( BEGIN_TEXT -Factor the expression $expression. Simplify your +Factor the expression $expression. Simplify your answer as much as possible. $BR $BR @@ -85,7 +85,7 @@ $BR \( \big) \big( \) \{ $multians->ans_rule(10) \} \( \big) \) -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $PAR $BR END_TEXT diff --git a/Contrib/Mizzou/College_Algebra/Factoring_Special_Cases/DiffOfSquares3.pg b/Contrib/Mizzou/College_Algebra/Factoring_Special_Cases/DiffOfSquares3.pg index 9d9df2debf..a9ac9eb3b4 100644 --- a/Contrib/Mizzou/College_Algebra/Factoring_Special_Cases/DiffOfSquares3.pg +++ b/Contrib/Mizzou/College_Algebra/Factoring_Special_Cases/DiffOfSquares3.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -41,7 +41,7 @@ Context("Numeric"); Context()->variables->are(x=>"Real"); $a = list_random(-12,-11,-10,-9,-8,-7-6,-5,-4,-3,-2,2,3,4,5,6,7,8,9,10,11,12); -do {$c = list_random(-12,-11,-10,-9,-8,-7-6,-5,-4,-3,-2,2,3,4,5,6,7,8,9,10,11,12)} +do {$c = list_random(-12,-11,-10,-9,-8,-7-6,-5,-4,-3,-2,2,3,4,5,6,7,8,9,10,11,12)} until (gcd($a, $c ) == 1); $e1 = 1; $e3 = -$a**2; @@ -76,7 +76,7 @@ $multians = MultiAnswer($fac1, $fac2)->with( BEGIN_TEXT -Factor the expression $expression. Simplify your +Factor the expression $expression. Simplify your answer as much as possible. $BR $BR @@ -85,7 +85,7 @@ $BR \( \big) \big( \) \{ $multians->ans_rule(10) \} \( \big) \) -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $PAR $BR END_TEXT diff --git a/Contrib/Mizzou/College_Algebra/Factoring_Special_Cases/DiffOfSquares4.pg b/Contrib/Mizzou/College_Algebra/Factoring_Special_Cases/DiffOfSquares4.pg index 1ccd14e533..3e085c15a5 100644 --- a/Contrib/Mizzou/College_Algebra/Factoring_Special_Cases/DiffOfSquares4.pg +++ b/Contrib/Mizzou/College_Algebra/Factoring_Special_Cases/DiffOfSquares4.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -41,7 +41,7 @@ Context("Numeric"); Context()->variables->are(x=>"Real"); $a = list_random(-12,-11,-10,-9,-8,-7-6,-5,-4,-3,-2,2,3,4,5,6,7,8,9,10,11,12); -do {$c = list_random(-12,-11,-10,-9,-8,-7-6,-5,-4,-3,-2,2,3,4,5,6,7,8,9,10,11,12)} +do {$c = list_random(-12,-11,-10,-9,-8,-7-6,-5,-4,-3,-2,2,3,4,5,6,7,8,9,10,11,12)} until (gcd($a, $c ) == 1); $e1 = 1; $e3 = -$a**2; @@ -76,7 +76,7 @@ $multians = MultiAnswer($fac1, $fac2)->with( BEGIN_TEXT -Factor the expression $expression. Simplify your +Factor the expression $expression. Simplify your answer as much as possible. $BR $BR @@ -85,7 +85,7 @@ $BR \( \big) \big( \) \{ $multians->ans_rule(10) \} \( \big) \) -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $PAR $BR END_TEXT diff --git a/Contrib/Mizzou/College_Algebra/Factoring_Special_Cases/DiffOfSquares6.pg b/Contrib/Mizzou/College_Algebra/Factoring_Special_Cases/DiffOfSquares6.pg index c4e7db5c0e..99e57a3bbd 100644 --- a/Contrib/Mizzou/College_Algebra/Factoring_Special_Cases/DiffOfSquares6.pg +++ b/Contrib/Mizzou/College_Algebra/Factoring_Special_Cases/DiffOfSquares6.pg @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -43,7 +43,7 @@ Context("Numeric"); Context()->variables->are(x=>"Real",y=>"Real",t=>"Real"); $a = list_random(-12,-11,-10,-9,-8,-7-6,-5,-4,-3,-2,2,3,4,5,6,7,8,9,10,11,12); -do {$c = list_random(2,3,4,5,6,7,8,9,10,11,12)} +do {$c = list_random(2,3,4,5,6,7,8,9,10,11,12)} until (gcd($a, $c ) == 1); $e1 = $c**2 ; $e3 = -$a**2; @@ -81,7 +81,7 @@ $multians = MultiAnswer($fac1, $fac2)->with( BEGIN_TEXT -Factor the expression $expression. Simplify your +Factor the expression $expression. Simplify your answer as much as possible. $BR $BR @@ -108,7 +108,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ # Answer evaluation diff --git a/Contrib/Mizzou/College_Algebra/Factoring_Special_Cases/DiffOfSquares7.pg b/Contrib/Mizzou/College_Algebra/Factoring_Special_Cases/DiffOfSquares7.pg index 94d405c04d..8c38e6f561 100644 --- a/Contrib/Mizzou/College_Algebra/Factoring_Special_Cases/DiffOfSquares7.pg +++ b/Contrib/Mizzou/College_Algebra/Factoring_Special_Cases/DiffOfSquares7.pg @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -43,7 +43,7 @@ Context("Numeric"); Context()->variables->are(x=>"Real",y=>"Real",t=>"Real"); $a = list_random(-12,-11,-10,-8,-7-6,-5,-3,-2,2,3,5,6,7,8,10,11,12); -do {$c = list_random(2,3,4,5,6,7,8,9,10,11,12)} +do {$c = list_random(2,3,4,5,6,7,8,9,10,11,12)} until (gcd($a, $c ) == 1); $e1 = $c**2 ; $e3 = -$a**2; @@ -81,7 +81,7 @@ $multians = MultiAnswer($fac1, $fac2)->with( BEGIN_TEXT -Factor the expression $expression. Simplify your +Factor the expression $expression. Simplify your answer as much as possible. $BR $BR @@ -108,7 +108,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ # Answer evaluation diff --git a/Contrib/Mizzou/College_Algebra/Factoring_Special_Cases/SquareQuadratic2.pg b/Contrib/Mizzou/College_Algebra/Factoring_Special_Cases/SquareQuadratic2.pg index f63b5310d1..b567d839ee 100644 --- a/Contrib/Mizzou/College_Algebra/Factoring_Special_Cases/SquareQuadratic2.pg +++ b/Contrib/Mizzou/College_Algebra/Factoring_Special_Cases/SquareQuadratic2.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -41,7 +41,7 @@ Context("Numeric"); Context()->variables->are(x=>"Real",y=>"Real",t=>"Real"); $a = list_random(-12,-11,-10,-8,-7-6,-5,-3,-2,2,3,5,6,7,8,10,11,12); -do {$c = list_random(-12,-11,-10,-9,-8,-7-6,-5,-4,-3,-2,2,3,4,5,6,7,8,9,10,11,12)} +do {$c = list_random(-12,-11,-10,-9,-8,-7-6,-5,-4,-3,-2,2,3,4,5,6,7,8,9,10,11,12)} until (gcd($a,$c) == 1); $e1 = $a**2; $e2 = 2*$a*$c; @@ -77,7 +77,7 @@ $multians = MultiAnswer($fac1, $fac2)->with( BEGIN_TEXT -Factor the expression $expression. Simplify your +Factor the expression $expression. Simplify your answer as much as possible. $BR $BR @@ -86,7 +86,7 @@ $BR \( \big) \big( \) \{ $multians->ans_rule(10) \} \( \big) \) -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $PAR $BR END_TEXT diff --git a/Contrib/Mizzou/College_Algebra/Factoring_Special_Cases/SquareQuadratic4.pg b/Contrib/Mizzou/College_Algebra/Factoring_Special_Cases/SquareQuadratic4.pg index df0959ba4e..1236852db2 100644 --- a/Contrib/Mizzou/College_Algebra/Factoring_Special_Cases/SquareQuadratic4.pg +++ b/Contrib/Mizzou/College_Algebra/Factoring_Special_Cases/SquareQuadratic4.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -42,7 +42,7 @@ Context()->variables->are(x=>"Real",y=>"Real",t=>"Real"); #$a = list_random(-12,-11,-10,-8,-7-6,-5,-3,-2,2,3,5,6,7,8,10,11,12); $a = 1; -do {$c = list_random(-12,-11,-10,-9,-8,-7-6,-5,-4,-3,-2,2,3,4,5,6,7,8,9,10,11,12)} +do {$c = list_random(-12,-11,-10,-9,-8,-7-6,-5,-4,-3,-2,2,3,4,5,6,7,8,9,10,11,12)} until (gcd($a,$c) == 1); $e1 = $a**2; $e2 = 2*$a*$c; @@ -78,7 +78,7 @@ $multians = MultiAnswer($fac1, $fac2)->with( BEGIN_TEXT -Factor the expression $expression. Simplify your +Factor the expression $expression. Simplify your answer as much as possible. $BR $BR @@ -87,7 +87,7 @@ $BR \( \big) \big( \) \{ $multians->ans_rule(10) \} \( \big) \) -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $PAR $BR END_TEXT diff --git a/Contrib/Mizzou/College_Algebra/Factoring_Substitution/LinearSub2.pg b/Contrib/Mizzou/College_Algebra/Factoring_Substitution/LinearSub2.pg index 334d89d4b4..94ff6824bb 100644 --- a/Contrib/Mizzou/College_Algebra/Factoring_Substitution/LinearSub2.pg +++ b/Contrib/Mizzou/College_Algebra/Factoring_Substitution/LinearSub2.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -80,7 +80,7 @@ $multians = MultiAnswer($fac1, $fac2)->with( BEGIN_TEXT -Factor the expression $expression. Simplify your +Factor the expression $expression. Simplify your answer as much as possible. $BR $BR @@ -89,7 +89,7 @@ $BR \( \big) \big( \) \{ $multians->ans_rule(10) \} \( \big) \) -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $PAR $BR END_TEXT diff --git a/Contrib/Mizzou/College_Algebra/Factoring_Substitution/LinearSub3.pg b/Contrib/Mizzou/College_Algebra/Factoring_Substitution/LinearSub3.pg index 7473405331..9748c12ce1 100644 --- a/Contrib/Mizzou/College_Algebra/Factoring_Substitution/LinearSub3.pg +++ b/Contrib/Mizzou/College_Algebra/Factoring_Substitution/LinearSub3.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -80,7 +80,7 @@ $multians = MultiAnswer($fac1, $fac2)->with( BEGIN_TEXT -Factor the expression $expression. Simplify your +Factor the expression $expression. Simplify your answer as much as possible. $BR $BR @@ -89,7 +89,7 @@ $BR \( \big) \big( \) \{ $multians->ans_rule(10) \} \( \big) \) -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $PAR $BR END_TEXT diff --git a/Contrib/Mizzou/College_Algebra/Factoring_Substitution/LinearSub4.pg b/Contrib/Mizzou/College_Algebra/Factoring_Substitution/LinearSub4.pg index 7473405331..9748c12ce1 100644 --- a/Contrib/Mizzou/College_Algebra/Factoring_Substitution/LinearSub4.pg +++ b/Contrib/Mizzou/College_Algebra/Factoring_Substitution/LinearSub4.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -80,7 +80,7 @@ $multians = MultiAnswer($fac1, $fac2)->with( BEGIN_TEXT -Factor the expression $expression. Simplify your +Factor the expression $expression. Simplify your answer as much as possible. $BR $BR @@ -89,7 +89,7 @@ $BR \( \big) \big( \) \{ $multians->ans_rule(10) \} \( \big) \) -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $PAR $BR END_TEXT diff --git a/Contrib/Mizzou/College_Algebra/Factoring_Substitution/VarSub2.pg b/Contrib/Mizzou/College_Algebra/Factoring_Substitution/VarSub2.pg index 9a3d6aeb38..f259ea6ce6 100644 --- a/Contrib/Mizzou/College_Algebra/Factoring_Substitution/VarSub2.pg +++ b/Contrib/Mizzou/College_Algebra/Factoring_Substitution/VarSub2.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -44,7 +44,7 @@ $a = list_random(-10,-9,-8,-7,-6,-5,-4,-3,-2,2,3,4,5,6,7,8,9,10); do {$b = list_random(-10,-9,-8,-7,-6,-5,-4,-3,-2,2,3,4,5,6,7,8,9,10)} until ( gcd($a,$b) == 1); $c = list_random(-10,-9,-8,-7,-6,-5,-4,-3,-2,2,3,4,5,6,7,8,9,10); do {$d = list_random(-10,-9,-8,-7,-6,-5,-4,-3,-2,2,3,4,5,6,7,8,9,10)} until ( gcd($c, $d) == 1); -$e1 = $a *$c;; +$e1 = $a *$c;; $e2 = $a*$c + $b*$d; $e3 = $b * $d; @@ -78,7 +78,7 @@ $multians = MultiAnswer($fac1, $fac2)->with( BEGIN_TEXT -Factor the expression $expression. Simplify your +Factor the expression $expression. Simplify your answer as much as possible. $BR $BR @@ -87,7 +87,7 @@ $BR \( \big) \big( \) \{ $multians->ans_rule(10) \} \( \big) \) -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $PAR $BR END_TEXT diff --git a/Contrib/Mizzou/College_Algebra/Factoring_Substitution/VarSub2a.pg b/Contrib/Mizzou/College_Algebra/Factoring_Substitution/VarSub2a.pg index 0a4427b164..587830b07d 100644 --- a/Contrib/Mizzou/College_Algebra/Factoring_Substitution/VarSub2a.pg +++ b/Contrib/Mizzou/College_Algebra/Factoring_Substitution/VarSub2a.pg @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -81,11 +81,11 @@ $multians = MultiAnswer($fac1, $fac2)->with( # Main text Context()->texStrings; BEGIN_TEXT -Factor the expression and simplify your +Factor the expression and simplify your answer as much as possible: $PAR ${BCENTER} -$expression \(= \) +$expression \(= \) \( \big( \) \{ $multians->ans_rule(20) \} \( \big) \big( \) @@ -107,11 +107,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { $texanswer $PAR END_TEXT -} +} Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ diff --git a/Contrib/Mizzou/College_Algebra/Factoring_Substitution/VarSub3.pg b/Contrib/Mizzou/College_Algebra/Factoring_Substitution/VarSub3.pg index 13c84e84f1..fdf3e92075 100644 --- a/Contrib/Mizzou/College_Algebra/Factoring_Substitution/VarSub3.pg +++ b/Contrib/Mizzou/College_Algebra/Factoring_Substitution/VarSub3.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -42,7 +42,7 @@ Context()->variables->are(x=>"Real",t=>"Real"); $b = list_random(-10,-8,-7,-6,-5,-3,-2,2,3,5,6,7,8,10); -do {$d = list_random(-10,-9,-8,-7,-6,-5,-4,-3,-2,2,3,4,5,6,7,8,9,10)} until ($d != -$b);; +do {$d = list_random(-10,-9,-8,-7,-6,-5,-4,-3,-2,2,3,4,5,6,7,8,9,10)} until ($d != -$b);; $e2 = $b + $d; $e3 = $b * $d; @@ -80,11 +80,11 @@ $multians = MultiAnswer($fac1, $fac2)->with( # Main text Context()->texStrings; BEGIN_TEXT -Factor the expression and simplify your +Factor the expression and simplify your answer as much as possible: $PAR ${BCENTER} -$expression \(= \) +$expression \(= \) \( \big( \) \{ $multians->ans_rule(20) \} \( \big) \big( \) @@ -106,11 +106,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { $texanswer $PAR END_TEXT -} +} Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ diff --git a/Contrib/Mizzou/College_Algebra/Factoring_Substitution/VarSub5.pg b/Contrib/Mizzou/College_Algebra/Factoring_Substitution/VarSub5.pg index 0702ab3119..0284cfb7d4 100644 --- a/Contrib/Mizzou/College_Algebra/Factoring_Substitution/VarSub5.pg +++ b/Contrib/Mizzou/College_Algebra/Factoring_Substitution/VarSub5.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -44,7 +44,7 @@ $a = list_random(-10,-9,-8,-7,-6,-5,-4,-3,-2,2,3,4,5,6,7,8,9,10); do {$b = list_random(-10,-8,-7,-6,-5,-3,-2,2,3,5,6,7,8,10)} until ( gcd($a,$b) == 1); $c = list_random(-10,-9,-8,-7,-6,-5,-4,-3,-2,2,3,4,5,6,7,8,9,10); do {$d = list_random(-10,-9,-8,-7,-6,-5,-4,-3,-2,2,3,4,5,6,7,8,9,10)} until ( gcd($c, $d) == 1); -$e1 = $a *$c;; +$e1 = $a *$c;; $e2 = $a*$c + $b*$d; $e3 = $b * $d; @@ -78,7 +78,7 @@ $multians = MultiAnswer($fac1, $fac2)->with( BEGIN_TEXT -Factor the expression $expression. Simplify your +Factor the expression $expression. Simplify your answer as much as possible. $BR $BR @@ -87,7 +87,7 @@ $BR \( \big) \big( \) \{ $multians->ans_rule(10) \} \( \big) \) -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $PAR $BR END_TEXT diff --git a/Contrib/Mizzou/College_Algebra/Factoring_Substitution/cubic2.pg b/Contrib/Mizzou/College_Algebra/Factoring_Substitution/cubic2.pg index 87388ad217..918e1a7833 100644 --- a/Contrib/Mizzou/College_Algebra/Factoring_Substitution/cubic2.pg +++ b/Contrib/Mizzou/College_Algebra/Factoring_Substitution/cubic2.pg @@ -4,11 +4,11 @@ ## KEYWORDS('Equations') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Algebra: Form and Function') -## DBchapter('Basic Algebra') +## DBchapter('Basic Algebra') ## BookChapter('Rules for Expressions and the Reasons for Them') -## DBsection('Expanding and Factoring') +## DBsection('Expanding and Factoring') ## BookSection('Expanding and Factoring') ## Date('01/01/10') ## Author('Paul Pearson') @@ -29,7 +29,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGcourse.pl" ); @@ -113,7 +113,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ diff --git a/Contrib/Mizzou/College_Algebra/Factoring_Substitution/twovar.pg b/Contrib/Mizzou/College_Algebra/Factoring_Substitution/twovar.pg index 0070393d2e..23b7036327 100644 --- a/Contrib/Mizzou/College_Algebra/Factoring_Substitution/twovar.pg +++ b/Contrib/Mizzou/College_Algebra/Factoring_Substitution/twovar.pg @@ -4,11 +4,11 @@ ## KEYWORDS('Equations') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Algebra: Form and Function') -## DBchapter('Basic Algebra') +## DBchapter('Basic Algebra') ## BookChapter('Rules for Expressions and the Reasons for Them') -## DBsection('Expanding and Factoring') +## DBsection('Expanding and Factoring') ## BookSection('Expanding and Factoring') ## Date('01/01/10') ## Author('Paul Pearson') @@ -29,7 +29,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGcourse.pl" ); @@ -75,11 +75,11 @@ $multians = MultiAnswer($fac1, $fac2)->with( # Main text Context()->texStrings; BEGIN_TEXT -Factor the expression and simplify your +Factor the expression and simplify your answer as much as possible: $PAR ${BCENTER} -$expression \(= \) +$expression \(= \) \( \big( \) \{ $multians->ans_rule(20) \} \( \big) \big( \) @@ -101,11 +101,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { $texanswer $PAR END_TEXT -} +} Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ diff --git a/Contrib/Mizzou/College_Algebra/Factoring_ax2_bx_c/Factoring1(maybe).pg b/Contrib/Mizzou/College_Algebra/Factoring_ax2_bx_c/Factoring1(maybe).pg index 47c7a0b021..4eee383785 100644 --- a/Contrib/Mizzou/College_Algebra/Factoring_ax2_bx_c/Factoring1(maybe).pg +++ b/Contrib/Mizzou/College_Algebra/Factoring_ax2_bx_c/Factoring1(maybe).pg @@ -30,7 +30,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextPolynomialFactors.pl", "contextLimitedPowers.pl", "PGcourse.pl" @@ -68,13 +68,13 @@ $answer = Compute(" ($ax + $b)($cx + $d)"); # Main text BEGIN_TEXT -Factor the expression below. Simplify your +Factor the expression below. Simplify your answer as much as possible, but do not combine like factors. $BR $BR $expression \( = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $PAR $BR END_TEXT diff --git a/Contrib/Mizzou/College_Algebra/Factoring_ax2_bx_c/Factoring1.pg b/Contrib/Mizzou/College_Algebra/Factoring_ax2_bx_c/Factoring1.pg index c7d0f9b0d1..3abbe6fcd5 100644 --- a/Contrib/Mizzou/College_Algebra/Factoring_ax2_bx_c/Factoring1.pg +++ b/Contrib/Mizzou/College_Algebra/Factoring_ax2_bx_c/Factoring1.pg @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -56,7 +56,7 @@ $expression = "$a x^2 + $b x + $c"; if ($b == -1) { $expression = "$a x^2 - x + $c"; } elsif ($b == 1) { - $expression = "$a x^2 + x + $c"; + $expression = "$a x^2 + x + $c"; } $multians = MultiAnswer($fac1, $fac2)->with( @@ -65,10 +65,10 @@ $multians = MultiAnswer($fac1, $fac2)->with( my ( $correct, $student, $self ) = @_; my ( $f1stu, $f2stu ) = @{$student}; my ( $f1, $f2 ) = @{$correct}; - - if ( ( $f1==$f1stu && $f2==$f2stu) || + + if ( ( $f1==$f1stu && $f2==$f2stu) || (-$f1==$f1stu && -$f2==$f2stu) || - ( $f1==$f2stu && $f2==$f1stu) || + ( $f1==$f2stu && $f2==$f1stu) || (-$f1==$f2stu && -$f2==$f1stu) ) { return [1,1];} if ( ($f1 == $f1stu && $f2 == $f2stu) || @@ -113,7 +113,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ diff --git a/Contrib/Mizzou/College_Algebra/Factoring_ax2_bx_c/Factoringminusplus.pg b/Contrib/Mizzou/College_Algebra/Factoring_ax2_bx_c/Factoringminusplus.pg index b47eba8a1d..fe9491aa34 100644 --- a/Contrib/Mizzou/College_Algebra/Factoring_ax2_bx_c/Factoringminusplus.pg +++ b/Contrib/Mizzou/College_Algebra/Factoring_ax2_bx_c/Factoringminusplus.pg @@ -1,5 +1,5 @@ ##DESCRIPTION -## College Algebra Review: +## College Algebra Review: ## Factoring quadratics with leading term greater than 1 ##ENDDESCRIPTION @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -94,11 +94,11 @@ $multians = MultiAnswer($fac1, $fac2)->with( # Main text Context()->texStrings; BEGIN_TEXT -Factor the expression and simplify your +Factor the expression and simplify your answer as much as possible: $PAR ${BCENTER} -$expression \( = \) +$expression \( = \) \( \big( \) \{ $multians->ans_rule(20) \} \( \big) \big( \) @@ -120,11 +120,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { $texanswer $PAR END_TEXT -} +} Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ diff --git a/Contrib/Mizzou/College_Algebra/Factoring_ax2_bx_c/Factoringplusminus.pg b/Contrib/Mizzou/College_Algebra/Factoring_ax2_bx_c/Factoringplusminus.pg index e94f042253..c428236c5f 100644 --- a/Contrib/Mizzou/College_Algebra/Factoring_ax2_bx_c/Factoringplusminus.pg +++ b/Contrib/Mizzou/College_Algebra/Factoring_ax2_bx_c/Factoringplusminus.pg @@ -1,5 +1,5 @@ ##DESCRIPTION -## College Algebra Review: +## College Algebra Review: ## Factoring quadratics with leading term greater than 1 ##ENDDESCRIPTION @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -94,11 +94,11 @@ $multians = MultiAnswer($fac1, $fac2)->with( # Main text Context()->texStrings; BEGIN_TEXT -Factor the expression and simplify your +Factor the expression and simplify your answer as much as possible: $PAR ${BCENTER} -$expression \( = \) +$expression \( = \) \( \big( \) \{ $multians->ans_rule(20) \} \( \big) \big( \) @@ -120,11 +120,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { $texanswer $PAR END_TEXT -} +} Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ diff --git a/Contrib/Mizzou/College_Algebra/Factoring_ax2_bx_c/Factoringplusplus.pg b/Contrib/Mizzou/College_Algebra/Factoring_ax2_bx_c/Factoringplusplus.pg index 9348b80ed4..05992d17c1 100644 --- a/Contrib/Mizzou/College_Algebra/Factoring_ax2_bx_c/Factoringplusplus.pg +++ b/Contrib/Mizzou/College_Algebra/Factoring_ax2_bx_c/Factoringplusplus.pg @@ -1,5 +1,5 @@ ##DESCRIPTION -## College Algebra Review: +## College Algebra Review: ## Factoring quadratics with leading term greater than 1 ##ENDDESCRIPTION @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -94,11 +94,11 @@ $multians = MultiAnswer($fac1, $fac2)->with( # Main text Context()->texStrings; BEGIN_TEXT -Factor the expression and simplify your +Factor the expression and simplify your answer as much as possible: $PAR ${BCENTER} -$expression \( = \) +$expression \( = \) \( \big( \) \{ $multians->ans_rule(20) \} \( \big) \big( \) @@ -120,11 +120,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { $texanswer $PAR END_TEXT -} +} Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ diff --git a/Contrib/Mizzou/College_Algebra/Factoring_ax2_bx_c/WithGCD2.pg b/Contrib/Mizzou/College_Algebra/Factoring_ax2_bx_c/WithGCD2.pg index 9b58672eaa..b33af70861 100644 --- a/Contrib/Mizzou/College_Algebra/Factoring_ax2_bx_c/WithGCD2.pg +++ b/Contrib/Mizzou/College_Algebra/Factoring_ax2_bx_c/WithGCD2.pg @@ -30,7 +30,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextPolynomialFactors.pl", "contextLimitedPowers.pl", "PGcourse.pl" @@ -67,13 +67,13 @@ $answer = Compute("($gcd ) ($a x + $b)($c x + $d)"); # Main text BEGIN_TEXT -Factor the expression below. Simplify your +Factor the expression below. Simplify your answer as much as possible, but do not combine like factors. $BR $BR $expression \( = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $PAR $BR END_TEXT diff --git a/Contrib/Mizzou/College_Algebra/Factoring_ax2_bx_c/WithGCD3.pg b/Contrib/Mizzou/College_Algebra/Factoring_ax2_bx_c/WithGCD3.pg index 1c337a1ac8..116db72317 100644 --- a/Contrib/Mizzou/College_Algebra/Factoring_ax2_bx_c/WithGCD3.pg +++ b/Contrib/Mizzou/College_Algebra/Factoring_ax2_bx_c/WithGCD3.pg @@ -26,7 +26,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextPolynomialFactors.pl", "contextLimitedPowers.pl", "PGcourse.pl" @@ -63,13 +63,13 @@ $answer = Compute("($gcd ) ($a t + $b)($c t + $d)"); # Main text BEGIN_TEXT -Factor the expression below. Simplify your +Factor the expression below. Simplify your answer as much as possible, but do not combine like factors. $BR $BR $expression \( = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $PAR $BR END_TEXT diff --git a/Contrib/Mizzou/College_Algebra/Factoring_ax2_bx_c/WithGCD5.pg b/Contrib/Mizzou/College_Algebra/Factoring_ax2_bx_c/WithGCD5.pg index 4ca8a58d88..74a4e52c33 100644 --- a/Contrib/Mizzou/College_Algebra/Factoring_ax2_bx_c/WithGCD5.pg +++ b/Contrib/Mizzou/College_Algebra/Factoring_ax2_bx_c/WithGCD5.pg @@ -30,7 +30,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextPolynomialFactors.pl", "contextLimitedPowers.pl", "PGcourse.pl" @@ -67,13 +67,13 @@ $answer = Compute("($gcd p ) ($a x + $b)($c x + $d)"); # Main text BEGIN_TEXT -Factor the expression below. Simplify your +Factor the expression below. Simplify your answer as much as possible, but do not combine like factors. $BR $BR $expression \( = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $PAR $BR END_TEXT diff --git a/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoring10.pg b/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoring10.pg index 98ee919d95..1d370e670e 100644 --- a/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoring10.pg +++ b/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoring10.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -75,7 +75,7 @@ $multians = MultiAnswer($fac1, $fac2)->with( BEGIN_TEXT -Factor the expression $expression. Simplify your +Factor the expression $expression. Simplify your answer as much as possible. $BR $BR @@ -84,7 +84,7 @@ $BR \( \big) \big( \) \{ $multians->ans_rule(10) \} \( \big) \) -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $PAR $BR END_TEXT diff --git a/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoring11.pg b/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoring11.pg index f0c413c102..079c38f9bc 100644 --- a/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoring11.pg +++ b/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoring11.pg @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -84,11 +84,11 @@ $multians = MultiAnswer($fac1, $fac2)->with( # Main text Context()->texStrings; BEGIN_TEXT -Factor the expression and simplify your +Factor the expression and simplify your answer as much as possible: $PAR ${BCENTER} -\($expression = \) +\($expression = \) \( \big( \) \{ $multians->ans_rule(25) \} \( \big) \big( \) @@ -108,7 +108,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ diff --git a/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoring12.pg b/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoring12.pg index e48069647a..882afa0816 100644 --- a/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoring12.pg +++ b/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoring12.pg @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -84,11 +84,11 @@ $multians = MultiAnswer($fac1, $fac2)->with( # Main text Context()->texStrings; BEGIN_TEXT -Factor the expression and simplify your +Factor the expression and simplify your answer as much as possible: $PAR ${BCENTER} -\($expression = \) +\($expression = \) \( \big( \) \{ $multians->ans_rule(25) \} \( \big) \big( \) @@ -108,7 +108,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ diff --git a/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoring13.pg b/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoring13.pg index 4657b3afca..422a381cdb 100644 --- a/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoring13.pg +++ b/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoring13.pg @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -84,11 +84,11 @@ $multians = MultiAnswer($fac1, $fac2)->with( # Main text Context()->texStrings; BEGIN_TEXT -Factor the expression and simplify your +Factor the expression and simplify your answer as much as possible: $PAR ${BCENTER} -\($expression = \) +\($expression = \) \( \big( \) \{ $multians->ans_rule(25) \} \( \big) \big( \) @@ -108,7 +108,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ diff --git a/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoring14.pg b/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoring14.pg index 9a25b0206b..e2902ad025 100644 --- a/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoring14.pg +++ b/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoring14.pg @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -84,11 +84,11 @@ $multians = MultiAnswer($fac1, $fac2)->with( # Main text Context()->texStrings; BEGIN_TEXT -Factor the expression and simplify your +Factor the expression and simplify your answer as much as possible: $PAR ${BCENTER} -\($expression = \) +\($expression = \) \( \big( \) \{ $multians->ans_rule(25) \} \( \big) \big( \) @@ -108,7 +108,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ diff --git a/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoring2.pg b/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoring2.pg index 98ee919d95..1d370e670e 100644 --- a/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoring2.pg +++ b/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoring2.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -75,7 +75,7 @@ $multians = MultiAnswer($fac1, $fac2)->with( BEGIN_TEXT -Factor the expression $expression. Simplify your +Factor the expression $expression. Simplify your answer as much as possible. $BR $BR @@ -84,7 +84,7 @@ $BR \( \big) \big( \) \{ $multians->ans_rule(10) \} \( \big) \) -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $PAR $BR END_TEXT diff --git a/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoring3.pg b/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoring3.pg index 98ee919d95..1d370e670e 100644 --- a/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoring3.pg +++ b/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoring3.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -75,7 +75,7 @@ $multians = MultiAnswer($fac1, $fac2)->with( BEGIN_TEXT -Factor the expression $expression. Simplify your +Factor the expression $expression. Simplify your answer as much as possible. $BR $BR @@ -84,7 +84,7 @@ $BR \( \big) \big( \) \{ $multians->ans_rule(10) \} \( \big) \) -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $PAR $BR END_TEXT diff --git a/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoring4.pg b/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoring4.pg index 98ee919d95..1d370e670e 100644 --- a/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoring4.pg +++ b/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoring4.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -75,7 +75,7 @@ $multians = MultiAnswer($fac1, $fac2)->with( BEGIN_TEXT -Factor the expression $expression. Simplify your +Factor the expression $expression. Simplify your answer as much as possible. $BR $BR @@ -84,7 +84,7 @@ $BR \( \big) \big( \) \{ $multians->ans_rule(10) \} \( \big) \) -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $PAR $BR END_TEXT diff --git a/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoring5.pg b/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoring5.pg index 98ee919d95..1d370e670e 100644 --- a/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoring5.pg +++ b/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoring5.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -75,7 +75,7 @@ $multians = MultiAnswer($fac1, $fac2)->with( BEGIN_TEXT -Factor the expression $expression. Simplify your +Factor the expression $expression. Simplify your answer as much as possible. $BR $BR @@ -84,7 +84,7 @@ $BR \( \big) \big( \) \{ $multians->ans_rule(10) \} \( \big) \) -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $PAR $BR END_TEXT diff --git a/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoring6.pg b/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoring6.pg index 98ee919d95..1d370e670e 100644 --- a/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoring6.pg +++ b/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoring6.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -75,7 +75,7 @@ $multians = MultiAnswer($fac1, $fac2)->with( BEGIN_TEXT -Factor the expression $expression. Simplify your +Factor the expression $expression. Simplify your answer as much as possible. $BR $BR @@ -84,7 +84,7 @@ $BR \( \big) \big( \) \{ $multians->ans_rule(10) \} \( \big) \) -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $PAR $BR END_TEXT diff --git a/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoring7.pg b/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoring7.pg index 98ee919d95..1d370e670e 100644 --- a/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoring7.pg +++ b/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoring7.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -75,7 +75,7 @@ $multians = MultiAnswer($fac1, $fac2)->with( BEGIN_TEXT -Factor the expression $expression. Simplify your +Factor the expression $expression. Simplify your answer as much as possible. $BR $BR @@ -84,7 +84,7 @@ $BR \( \big) \big( \) \{ $multians->ans_rule(10) \} \( \big) \) -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $PAR $BR END_TEXT diff --git a/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoring8.pg b/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoring8.pg index 98ee919d95..1d370e670e 100644 --- a/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoring8.pg +++ b/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoring8.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -75,7 +75,7 @@ $multians = MultiAnswer($fac1, $fac2)->with( BEGIN_TEXT -Factor the expression $expression. Simplify your +Factor the expression $expression. Simplify your answer as much as possible. $BR $BR @@ -84,7 +84,7 @@ $BR \( \big) \big( \) \{ $multians->ans_rule(10) \} \( \big) \) -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $PAR $BR END_TEXT diff --git a/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoring9.pg b/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoring9.pg index 98ee919d95..1d370e670e 100644 --- a/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoring9.pg +++ b/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoring9.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -75,7 +75,7 @@ $multians = MultiAnswer($fac1, $fac2)->with( BEGIN_TEXT -Factor the expression $expression. Simplify your +Factor the expression $expression. Simplify your answer as much as possible. $BR $BR @@ -84,7 +84,7 @@ $BR \( \big) \big( \) \{ $multians->ans_rule(10) \} \( \big) \) -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $PAR $BR END_TEXT diff --git a/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoringarbitrary.pg b/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoringarbitrary.pg index 221861562d..1a12ce52aa 100644 --- a/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoringarbitrary.pg +++ b/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoringarbitrary.pg @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -84,11 +84,11 @@ $multians = MultiAnswer($fac1, $fac2)->with( # Main text Context()->texStrings; BEGIN_TEXT -Factor the expression and simplify your +Factor the expression and simplify your answer as much as possible: $PAR ${BCENTER} -\($expression = \) +\($expression = \) \( \big( \) \{ $multians->ans_rule(20) \} \( \big) \big( \) @@ -108,7 +108,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ diff --git a/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoringminusminus.pg b/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoringminusminus.pg index eab86be4b4..76a12c6e2a 100644 --- a/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoringminusminus.pg +++ b/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoringminusminus.pg @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -84,11 +84,11 @@ $multians = MultiAnswer($fac1, $fac2)->with( # Main text Context()->texStrings; BEGIN_TEXT -Factor the expression and simplify your +Factor the expression and simplify your answer as much as possible: $PAR ${BCENTER} -\($expression = \) +\($expression = \) \( \big( \) \{ $multians->ans_rule(20) \} \( \big) \big( \) @@ -108,7 +108,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ diff --git a/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoringminusplug.pg b/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoringminusplug.pg index 9a25b0206b..e2902ad025 100644 --- a/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoringminusplug.pg +++ b/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoringminusplug.pg @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -84,11 +84,11 @@ $multians = MultiAnswer($fac1, $fac2)->with( # Main text Context()->texStrings; BEGIN_TEXT -Factor the expression and simplify your +Factor the expression and simplify your answer as much as possible: $PAR ${BCENTER} -\($expression = \) +\($expression = \) \( \big( \) \{ $multians->ans_rule(25) \} \( \big) \big( \) @@ -108,7 +108,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ diff --git a/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoringminusplus.pg b/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoringminusplus.pg index 75ee524ece..c450bc9638 100644 --- a/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoringminusplus.pg +++ b/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoringminusplus.pg @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -84,11 +84,11 @@ $multians = MultiAnswer($fac1, $fac2)->with( # Main text Context()->texStrings; BEGIN_TEXT -Factor the expression and simplify your +Factor the expression and simplify your answer as much as possible: $PAR ${BCENTER} -\($expression = \) +\($expression = \) \( \big( \) \{ $multians->ans_rule(20) \} \( \big) \big( \) @@ -108,7 +108,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ diff --git a/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoringplusminus.pg b/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoringplusminus.pg index 6d414710c3..ac816b41c8 100644 --- a/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoringplusminus.pg +++ b/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoringplusminus.pg @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -84,11 +84,11 @@ $multians = MultiAnswer($fac1, $fac2)->with( # Main text Context()->texStrings; BEGIN_TEXT -Factor the expression and simplify your +Factor the expression and simplify your answer as much as possible: $PAR ${BCENTER} -\($expression = \) +\($expression = \) \( \big( \) \{ $multians->ans_rule(20) \} \( \big) \big( \) @@ -108,7 +108,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ diff --git a/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoringplusplus.pg b/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoringplusplus.pg index fb1ffba659..1119860360 100644 --- a/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoringplusplus.pg +++ b/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoringplusplus.pg @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -84,11 +84,11 @@ $multians = MultiAnswer($fac1, $fac2)->with( # Main text Context()->texStrings; BEGIN_TEXT -Factor the expression and simplify your +Factor the expression and simplify your answer as much as possible: $PAR ${BCENTER} -\($expression = \) +\($expression = \) \( \big( \) \{ $multians->ans_rule(20) \} \( \big) \big( \) @@ -108,7 +108,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ diff --git a/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/WithGCD1.pg b/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/WithGCD1.pg index 3141aae09f..0d057130b8 100644 --- a/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/WithGCD1.pg +++ b/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/WithGCD1.pg @@ -31,7 +31,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextPolynomialFactors.pl", "contextLimitedPowers.pl", "PGcourse.pl" @@ -70,7 +70,7 @@ $answer = Compute(" (x + $a)(x + $b)"); # Main text BEGIN_TEXT -Factor out the greatest common factor first and place it in front. +Factor out the greatest common factor first and place it in front. $BR Then factoring the remaining expression as much as possible, and type your result in the second box: $PAR @@ -88,7 +88,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { $texanswer $PAR END_TEXT -} +} else { BEGIN_TEXT $PAR @@ -100,7 +100,7 @@ else { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ diff --git a/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/WithGCD2.pg b/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/WithGCD2.pg index bd2d14c051..42e73592d7 100644 --- a/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/WithGCD2.pg +++ b/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/WithGCD2.pg @@ -30,7 +30,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextPolynomialFactors.pl", "contextLimitedPowers.pl", "PGcourse.pl" @@ -67,13 +67,13 @@ $answer = Compute("($gcd) (x + $a)(x + $b)"); # Main text BEGIN_TEXT -Factor the expression below. Simplify your +Factor the expression below. Simplify your answer as much as possible, but do not combine like factors. $BR $BR $expression \( = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $PAR $BR END_TEXT diff --git a/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/WithGCD3.pg b/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/WithGCD3.pg index b0ee5ff9e7..120a5a98ca 100644 --- a/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/WithGCD3.pg +++ b/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/WithGCD3.pg @@ -30,7 +30,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextPolynomialFactors.pl", "contextLimitedPowers.pl", "PGcourse.pl" @@ -67,13 +67,13 @@ $answer = Compute("($gcd) (t + $a)(t + $b)"); # Main text BEGIN_TEXT -Factor the expression below. Simplify your +Factor the expression below. Simplify your answer as much as possible, but do not combine like factors. $BR $BR $expression \( = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $PAR $BR END_TEXT diff --git a/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/WithGCD4.pg b/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/WithGCD4.pg index b0ee5ff9e7..120a5a98ca 100644 --- a/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/WithGCD4.pg +++ b/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/WithGCD4.pg @@ -30,7 +30,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextPolynomialFactors.pl", "contextLimitedPowers.pl", "PGcourse.pl" @@ -67,13 +67,13 @@ $answer = Compute("($gcd) (t + $a)(t + $b)"); # Main text BEGIN_TEXT -Factor the expression below. Simplify your +Factor the expression below. Simplify your answer as much as possible, but do not combine like factors. $BR $BR $expression \( = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $PAR $BR END_TEXT diff --git a/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/WithGCD5.pg b/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/WithGCD5.pg index e36ece173e..f047cf99aa 100644 --- a/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/WithGCD5.pg +++ b/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/WithGCD5.pg @@ -30,7 +30,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextPolynomialFactors.pl", "contextLimitedPowers.pl", "PGcourse.pl" @@ -67,13 +67,13 @@ $answer = Compute("($gcd) (u + $a)(u + $b)"); # Main text BEGIN_TEXT -Factor the expression below. Simplify your +Factor the expression below. Simplify your answer as much as possible, but do not combine like factors. $BR $BR $expression \( = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $PAR $BR END_TEXT diff --git a/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/WithGCD6.pg b/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/WithGCD6.pg index 72177d1a0e..ff4bab1866 100644 --- a/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/WithGCD6.pg +++ b/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/WithGCD6.pg @@ -31,7 +31,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextPolynomialFactors.pl", "contextLimitedPowers.pl", "PGcourse.pl" @@ -70,7 +70,7 @@ $answer = Compute(" (t + $a)(t + $b)"); # Main text BEGIN_TEXT -Factor out the greatest common factor first and place it in front. +Factor out the greatest common factor first and place it in front. $BR Then factoring the remaining expression as much as possible, and type your result in the second box: $PAR @@ -88,7 +88,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { $texanswer $PAR END_TEXT -} +} else { BEGIN_TEXT $PAR @@ -100,7 +100,7 @@ else { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ diff --git a/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/WithGCD7.pg b/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/WithGCD7.pg index 076355de48..c7a038c836 100644 --- a/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/WithGCD7.pg +++ b/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/WithGCD7.pg @@ -31,7 +31,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextPolynomialFactors.pl", "contextLimitedPowers.pl", "PGcourse.pl" @@ -71,7 +71,7 @@ $answer = Compute("(y+ $a)(y + $b)"); # Main text BEGIN_TEXT -Factor out the greatest common factor first and place it in front. +Factor out the greatest common factor first and place it in front. $BR Then factoring the remaining expression as much as possible, and type your result in the second box: $PAR @@ -100,7 +100,7 @@ else { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ diff --git a/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/WithGCD8.pg b/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/WithGCD8.pg index ba61b0050b..9f7d4c5691 100644 --- a/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/WithGCD8.pg +++ b/Contrib/Mizzou/College_Algebra/Factoring_x2_bx_c/WithGCD8.pg @@ -31,7 +31,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextPolynomialFactors.pl", "contextLimitedPowers.pl", "PGcourse.pl" @@ -69,7 +69,7 @@ $answer = Compute("($gcd t*x) (x + $a)(x + $b)"); # Main text BEGIN_TEXT -Factor the expression below. Simplify your +Factor the expression below. Simplify your answer as much as possible. $BR $BR @@ -94,7 +94,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ # Answer evaluation diff --git a/Contrib/Mizzou/College_Algebra/Functions_Algebra_of_Functions/1.pg b/Contrib/Mizzou/College_Algebra/Functions_Algebra_of_Functions/1.pg index 792add7636..1ee17da872 100644 --- a/Contrib/Mizzou/College_Algebra/Functions_Algebra_of_Functions/1.pg +++ b/Contrib/Mizzou/College_Algebra/Functions_Algebra_of_Functions/1.pg @@ -27,7 +27,7 @@ loadMacros( "PeriodicRerandomization.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "PGcourse.pl" @@ -60,7 +60,7 @@ $ans4 = ($e3**2 + $b*$e3)*($e3 + $a); Context("Fraction-NoDecimals"); $ans5 = Fraction($e4 + $a, $e4**2 + $b*$e4); - + @@ -69,7 +69,7 @@ $ans5 = Fraction($e4 + $a, $e4**2 + $b*$e4); Context()->texStrings; BEGIN_TEXT Suppose that \(f(x) = $f\) and \( g(x) = $g\). Find the following, if they exist: -$PAR +$PAR $SPACE \( (f + g)($e1) = \) \{ ans_rule(20) \} $PAR $SPACE \( (f - g)($e2) = \) \{ans_rule(20)\} @@ -96,7 +96,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ # Answer evaluation diff --git a/Contrib/Mizzou/College_Algebra/Functions_Algebra_of_Functions/AlgFns2.pg b/Contrib/Mizzou/College_Algebra/Functions_Algebra_of_Functions/AlgFns2.pg index 28e4782670..fe24f316de 100644 --- a/Contrib/Mizzou/College_Algebra/Functions_Algebra_of_Functions/AlgFns2.pg +++ b/Contrib/Mizzou/College_Algebra/Functions_Algebra_of_Functions/AlgFns2.pg @@ -27,7 +27,7 @@ loadMacros( "PeriodicRerandomization.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "PGcourse.pl" @@ -96,7 +96,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ # Answer evaluation diff --git a/Contrib/Mizzou/College_Algebra/Functions_Algebra_of_Functions/AlgFns3.pg b/Contrib/Mizzou/College_Algebra/Functions_Algebra_of_Functions/AlgFns3.pg index 4863c66008..447c081b4a 100644 --- a/Contrib/Mizzou/College_Algebra/Functions_Algebra_of_Functions/AlgFns3.pg +++ b/Contrib/Mizzou/College_Algebra/Functions_Algebra_of_Functions/AlgFns3.pg @@ -27,7 +27,7 @@ loadMacros( "PeriodicRerandomization.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "PGcourse.pl" @@ -57,7 +57,7 @@ $f = "x + $a"; $g = "x^2 - $d2"; $ans1 = $e1 + $a - ($e1**2 - $d2); - + ANS( Compute($ans1)->cmp()); Context()->strings->add("undefined"); @@ -70,7 +70,7 @@ if ($case ==2){ do {$e2 = random(-10,10,1)} until($d != $e2 && $d != -$e2 ); $ans2 = Fraction($e2 + $a, $e2**2 - $d2); ANS( Compute($ans2)->cmp(studentsMustReduceFractions=>1) );} - + Context("Numeric"); @@ -117,7 +117,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ # Answer evaluation diff --git a/Contrib/Mizzou/College_Algebra/Functions_Algebra_of_Functions/Domain2.pg b/Contrib/Mizzou/College_Algebra/Functions_Algebra_of_Functions/Domain2.pg index 8c7bd3db7e..38f4a5eead 100644 --- a/Contrib/Mizzou/College_Algebra/Functions_Algebra_of_Functions/Domain2.pg +++ b/Contrib/Mizzou/College_Algebra/Functions_Algebra_of_Functions/Domain2.pg @@ -27,7 +27,7 @@ loadMacros( "PeriodicRerandomization.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "PGcourse.pl" @@ -80,7 +80,7 @@ $SPACE The domain of \( (f $sign g)(x) \): $SPACE \{ans_rule(10)\} $BR $SPACE The domain of \( \left( \frac{f}{g} \right)(x) \) $SPACE \{ans_rule(10)\} $PAR -Write the domains using \{ AnswerFormatHelp("intervals","interval notation") \}. +Write the domains using \{ helpLink("intervals","interval notation") \}. END_TEXT if ($attempts_modp == 0 && $actualAttempts != 0) { @@ -98,7 +98,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ diff --git a/Contrib/Mizzou/College_Algebra/Functions_Algebra_of_Functions/Find_Domains_Using_Graph.pg b/Contrib/Mizzou/College_Algebra/Functions_Algebra_of_Functions/Find_Domains_Using_Graph.pg index 76eac6c40b..19e58c9801 100644 --- a/Contrib/Mizzou/College_Algebra/Functions_Algebra_of_Functions/Find_Domains_Using_Graph.pg +++ b/Contrib/Mizzou/College_Algebra/Functions_Algebra_of_Functions/Find_Domains_Using_Graph.pg @@ -12,12 +12,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @@ -125,14 +125,14 @@ $domainF = Compute("[$x1,$x2]"); $domainG = Compute("[$x3,$x4]"); $domL = max($x1,$x3); $domR = min($x2,$x4); -$domainFolG = Compute("[$domL,$domR]"); # F overlap (ol) G +$domainFolG = Compute("[$domL,$domR]"); # F overlap (ol) G $domainFoG = Compute("$domainFolG - {$r1,$r2}"); # F over (o) G $domainGoF = Compute("$domainFolG - {$a,$b}"); # G over (o) F ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -140,7 +140,7 @@ BEGIN_TEXT $PAR $BCENTER \{ image(insertGraph($graph), width=>$gsize, height=>$gsize, tex_size=>500 ); \} -$ECENTER +$ECENTER $PAR Using the graph of \(F\) and \(G\) above, find the following and write your answers in interval notation: @@ -160,7 +160,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($domainF)->cmp()); ANS(Compute($domainG)->cmp()); @@ -195,12 +195,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals","Click here for help entering intervals.") \} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals","Click here for help entering intervals.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Functions_Algebra_of_Functions/Find_Domains_Using_Graph_01.pg b/Contrib/Mizzou/College_Algebra/Functions_Algebra_of_Functions/Find_Domains_Using_Graph_01.pg index 31dd32d690..6f0d30e0ac 100644 --- a/Contrib/Mizzou/College_Algebra/Functions_Algebra_of_Functions/Find_Domains_Using_Graph_01.pg +++ b/Contrib/Mizzou/College_Algebra/Functions_Algebra_of_Functions/Find_Domains_Using_Graph_01.pg @@ -12,12 +12,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @@ -129,14 +129,14 @@ $domainF = Compute("[$x1,$x2]"); $domainG = Compute("[$x3,$x4]"); $domL = max($x1,$x3); $domR = min($x2,$x4); -$domainFolG = Compute("[$domL,$domR]"); # F overlap (ol) G +$domainFolG = Compute("[$domL,$domR]"); # F overlap (ol) G $domainFoG = Compute("$domainFolG - {$r1,$r2}"); # F over (o) G $domainGoF = Compute("$domainFolG - {$a,$b}"); # G over (o) F ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -144,7 +144,7 @@ BEGIN_TEXT $PAR $BCENTER \{ image(insertGraph($graph), width=>$gsize, height=>$gsize, tex_size=>500 ); \} -$ECENTER +$ECENTER $PAR Using the graph of \(F\) and \(G\) above, find the following and write your answers in interval notation: @@ -158,7 +158,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($domainF)->cmp()); ANS(Compute($domainFolG)->cmp()); @@ -184,12 +184,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals","Click here for help entering intervals.") \} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals","Click here for help entering intervals.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Functions_Algebra_of_Functions/Find_Domains_Using_Graph_02.pg b/Contrib/Mizzou/College_Algebra/Functions_Algebra_of_Functions/Find_Domains_Using_Graph_02.pg index 790c97bba5..6410264d98 100644 --- a/Contrib/Mizzou/College_Algebra/Functions_Algebra_of_Functions/Find_Domains_Using_Graph_02.pg +++ b/Contrib/Mizzou/College_Algebra/Functions_Algebra_of_Functions/Find_Domains_Using_Graph_02.pg @@ -12,12 +12,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @@ -129,14 +129,14 @@ $domainF = Compute("[$x1,$x2]"); $domainG = Compute("[$x3,$x4]"); $domL = max($x1,$x3); $domR = min($x2,$x4); -$domainFolG = Compute("[$domL,$domR]"); # F overlap (ol) G +$domainFolG = Compute("[$domL,$domR]"); # F overlap (ol) G $domainFoG = Compute("$domainFolG - {$r1,$r2}"); # F over (o) G $domainGoF = Compute("$domainFolG - {$a,$b}"); # G over (o) F ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -144,7 +144,7 @@ BEGIN_TEXT $PAR $BCENTER \{ image(insertGraph($graph), width=>$gsize, height=>$gsize, tex_size=>500 ); \} -$ECENTER +$ECENTER $PAR Using the graph of \(F\) and \(G\) above, find the following and write your answers in interval notation: @@ -158,7 +158,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($domainG)->cmp()); ANS(Compute($domainFolG)->cmp()); @@ -184,12 +184,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals","Click here for help entering intervals.") \} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals","Click here for help entering intervals.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Functions_Algebra_of_Functions/Undefined.pg b/Contrib/Mizzou/College_Algebra/Functions_Algebra_of_Functions/Undefined.pg index f96a9788a3..93356be4d4 100644 --- a/Contrib/Mizzou/College_Algebra/Functions_Algebra_of_Functions/Undefined.pg +++ b/Contrib/Mizzou/College_Algebra/Functions_Algebra_of_Functions/Undefined.pg @@ -27,7 +27,7 @@ loadMacros( "PeriodicRerandomization.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "PGcourse.pl" @@ -58,7 +58,7 @@ $f = "x + $a"; $g = "x^2 - $d2"; $ans1 = ($e1 + $a)* ($e1**2 - $d2); - + ANS( Compute($ans1)->cmp()); $case = 1; @@ -75,7 +75,7 @@ if ($case ==2){ ANS( Compute($ans2)->cmp(studentsMustReduceFractions=>1) );} ANS (Compute(0)->cmp() ); - + Context("Numeric"); ################################################ @@ -107,11 +107,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $BR END_TEXT -} +} Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Functions_Algebra_of_Functions/sqrt.pg b/Contrib/Mizzou/College_Algebra/Functions_Algebra_of_Functions/sqrt.pg index ca40614103..5dbe9a8cab 100644 --- a/Contrib/Mizzou/College_Algebra/Functions_Algebra_of_Functions/sqrt.pg +++ b/Contrib/Mizzou/College_Algebra/Functions_Algebra_of_Functions/sqrt.pg @@ -27,7 +27,7 @@ loadMacros( "PeriodicRerandomization.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "PGcourse.pl" @@ -80,13 +80,13 @@ Context()->texStrings; BEGIN_TEXT Suppose that \(f(x) = $f\) and \( g(x) = $g\). Find the following if they exist: $PAR -$SPACE \( (f + g)($e1) = \) \{ans_rule(20)\} \{ AnswerFormatHelp("exponents","Click here for help entering square roots") \}. +$SPACE \( (f + g)($e1) = \) \{ans_rule(20)\} \{ helpLink("exponents","Click here for help entering square roots") \}. $PAR $SPACE The domain of \( (f $sign g)(x) \): $SPACE \{ans_rule(10)\} $BR $SPACE The domain of \( \left( \frac{f}{g} \right)(x) \) $SPACE \{ans_rule(10)\} $PAR -Write the domains using \{ AnswerFormatHelp("intervals","interval notation") \}. If any quantities do not exist, write "undefined" in the blank provided. +Write the domains using \{ helpLink("intervals","interval notation") \}. If any quantities do not exist, write "undefined" in the blank provided. END_TEXT if ($attempts_modp == 0 && $actualAttempts != 0) { @@ -107,7 +107,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ diff --git a/Contrib/Mizzou/College_Algebra/Functions_Composition/AlwaysUndefined.pg b/Contrib/Mizzou/College_Algebra/Functions_Composition/AlwaysUndefined.pg index 6e38418f69..de2c90d4e4 100644 --- a/Contrib/Mizzou/College_Algebra/Functions_Composition/AlwaysUndefined.pg +++ b/Contrib/Mizzou/College_Algebra/Functions_Composition/AlwaysUndefined.pg @@ -26,7 +26,7 @@ loadMacros( "PeriodicRerandomization.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "PGcourse.pl" @@ -62,12 +62,12 @@ else{ $dispans = "undefined"; } - - + + ################################################ # Main text @@ -83,8 +83,8 @@ END_TEXT if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR - ${BBOLD}Answer:${EBOLD} - $dispans + ${BBOLD}Answer:${EBOLD} + $dispans $PAR END_TEXT } else { @@ -93,7 +93,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ # Answer evaluation diff --git a/Contrib/Mizzou/College_Algebra/Functions_Composition/Composition1.pg b/Contrib/Mizzou/College_Algebra/Functions_Composition/Composition1.pg index bbc5a26cdd..2ca2f924cf 100644 --- a/Contrib/Mizzou/College_Algebra/Functions_Composition/Composition1.pg +++ b/Contrib/Mizzou/College_Algebra/Functions_Composition/Composition1.pg @@ -26,7 +26,7 @@ loadMacros( "PeriodicRerandomization.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "PGcourse.pl" @@ -71,7 +71,7 @@ ANS( Compute($fg)->cmp() ); ANS( Compute($gf)->cmp() ); ANS( Compute($hh)->cmp() ); - + Context("Numeric"); ################################################ @@ -101,7 +101,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ # Answer evaluation diff --git a/Contrib/Mizzou/College_Algebra/Functions_Composition/Composition13.pg b/Contrib/Mizzou/College_Algebra/Functions_Composition/Composition13.pg index b07a328bf6..abf03ae83f 100644 --- a/Contrib/Mizzou/College_Algebra/Functions_Composition/Composition13.pg +++ b/Contrib/Mizzou/College_Algebra/Functions_Composition/Composition13.pg @@ -26,7 +26,7 @@ loadMacros( "PeriodicRerandomization.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "PGcourse.pl" @@ -52,12 +52,12 @@ $f = "\frac{x - 1}{x+1}"; $g = Compute("x**{$n}"); ANS( Compute($g)->cmp() ); - - + + ################################################ # Main text Context()->texStrings; @@ -71,7 +71,7 @@ END_TEXT if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR - ${BBOLD}Answer:${EBOLD} + ${BBOLD}Answer:${EBOLD} \(g(x) = $g\) $PAR END_TEXT @@ -81,7 +81,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ # Answer evaluation diff --git a/Contrib/Mizzou/College_Algebra/Functions_Composition/Composition14.pg b/Contrib/Mizzou/College_Algebra/Functions_Composition/Composition14.pg index db439dc7b0..3481e6775f 100644 --- a/Contrib/Mizzou/College_Algebra/Functions_Composition/Composition14.pg +++ b/Contrib/Mizzou/College_Algebra/Functions_Composition/Composition14.pg @@ -26,7 +26,7 @@ loadMacros( "PeriodicRerandomization.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "PGcourse.pl" @@ -58,12 +58,12 @@ $f = Compute("$a x + $b"); $dispf = "$a x + $b"; ANS( Compute($f)->cmp() ); - - + + ################################################ # Main text @@ -76,7 +76,7 @@ END_TEXT if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR - ${BBOLD}Answer:${EBOLD} + ${BBOLD}Answer:${EBOLD} \(f(x) = $dispf\) $PAR END_TEXT @@ -86,7 +86,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ diff --git a/Contrib/Mizzou/College_Algebra/Functions_Composition/Composition2.pg b/Contrib/Mizzou/College_Algebra/Functions_Composition/Composition2.pg index bf8b339365..64de1bd4d9 100644 --- a/Contrib/Mizzou/College_Algebra/Functions_Composition/Composition2.pg +++ b/Contrib/Mizzou/College_Algebra/Functions_Composition/Composition2.pg @@ -26,7 +26,7 @@ loadMacros( "PeriodicRerandomization.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "PGcourse.pl" @@ -68,7 +68,7 @@ ANS( Compute($fg1)->cmp() ); ANS( Compute($gf1)->cmp() ); ANS( Compute($hh1)->cmp() ); - + Context("Numeric"); ################################################ @@ -90,7 +90,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR ${BBOLD}Answer:${EBOLD} from top to bottom \($fg1, $gf1, $hh1\) - + $PAR END_TEXT } else { @@ -99,7 +99,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ # Answer evaluation diff --git a/Contrib/Mizzou/College_Algebra/Functions_Composition/FracDomain.pg b/Contrib/Mizzou/College_Algebra/Functions_Composition/FracDomain.pg index aa9aaed26e..b95c35d428 100644 --- a/Contrib/Mizzou/College_Algebra/Functions_Composition/FracDomain.pg +++ b/Contrib/Mizzou/College_Algebra/Functions_Composition/FracDomain.pg @@ -26,7 +26,7 @@ loadMacros( "PeriodicRerandomization.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "PGcourse.pl" @@ -61,7 +61,7 @@ $dom = Compute("R - {$s, -$s} "); ANS( Compute($fg)->cmp() ); ANS( $dom->cmp() ); - + Context("Interval")->texStrings; ################################################ # Main text @@ -71,16 +71,16 @@ Given the functions \(f(x) = \displaystyle $f\) and \(g(x) = $g\), find the foll $PAR $SPACE \( (f \circ g)(x) = \) \{ans_rule(20)\} $SPACE $SPACE $PAR -$SPACE The domain of \((f \circ g)(x)\) is \{ans_rule(20)\} +$SPACE The domain of \((f \circ g)(x)\) is \{ans_rule(20)\} $PAR -Write the domain using \{ AnswerFormatHelp("inequalities", "interval notation") \}. If the quantities do not exist, write "undefined" in the blank provided. +Write the domain using \{ helpLink("inequalities", "interval notation") \}. If the quantities do not exist, write "undefined" in the blank provided. END_TEXT if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR - ${BBOLD}Answer:${EBOLD} + ${BBOLD}Answer:${EBOLD} \( (f\circ g)(x) = $dispfg\) and the domain is \($dom\) $PAR END_TEXT @@ -90,7 +90,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ # Answer evaluation diff --git a/Contrib/Mizzou/College_Algebra/Functions_Composition/FunctionAndDomain.pg b/Contrib/Mizzou/College_Algebra/Functions_Composition/FunctionAndDomain.pg index 07bd512ead..442502a276 100644 --- a/Contrib/Mizzou/College_Algebra/Functions_Composition/FunctionAndDomain.pg +++ b/Contrib/Mizzou/College_Algebra/Functions_Composition/FunctionAndDomain.pg @@ -26,7 +26,7 @@ loadMacros( "PeriodicRerandomization.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "PGcourse.pl" @@ -72,7 +72,7 @@ ANS( Compute($gf)->cmp() ); ANS( $R->cmp() ); ANS( $R->cmp() ); - + Context("Numeric"); ################################################ # Main text @@ -80,21 +80,21 @@ Context("Numeric"); BEGIN_TEXT Given the functions \(f(x) = $f\) and \(g(x) = $g\), find the following functions and their domains: $PAR -$SPACE \( (f \circ g)(x) = \) \{ans_rule(20)\} +$SPACE \( (f \circ g)(x) = \) \{ans_rule(20)\} $BR -$SPACE \( (g \circ f)(x) = \) \{ans_rule(20)\} +$SPACE \( (g \circ f)(x) = \) \{ans_rule(20)\} $PAR -$SPACE The domain of \((f \circ g)(x)\) is \{ans_rule(20)\} +$SPACE The domain of \((f \circ g)(x)\) is \{ans_rule(20)\} $BR -$SPACE The domain of \((g \circ f)(x)\) is \{ans_rule(20)\} +$SPACE The domain of \((g \circ f)(x)\) is \{ans_rule(20)\} $PAR -Write the domains using \{ AnswerFormatHelp("inequalities", "interval notation") \}. If the quantities do not exist, write "undefined" in the blank provided. +Write the domains using \{ helpLink("inequalities", "interval notation") \}. If the quantities do not exist, write "undefined" in the blank provided. END_TEXT if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR - ${BBOLD}Answer:${EBOLD} + ${BBOLD}Answer:${EBOLD} \((f\circ g)(x) = $dispfg\), \((g\circ f)(x) = $dispgf\), both of the domains are all real numbers. $PAR END_TEXT @@ -104,7 +104,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ # Answer evaluation diff --git a/Contrib/Mizzou/College_Algebra/Functions_Composition/FunctionAndDomain2.pg b/Contrib/Mizzou/College_Algebra/Functions_Composition/FunctionAndDomain2.pg index e7c9f0ba24..42a89edf5b 100644 --- a/Contrib/Mizzou/College_Algebra/Functions_Composition/FunctionAndDomain2.pg +++ b/Contrib/Mizzou/College_Algebra/Functions_Composition/FunctionAndDomain2.pg @@ -26,7 +26,7 @@ loadMacros( "PeriodicRerandomization.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "PGcourse.pl" @@ -107,7 +107,7 @@ ANS( $dom2->cmp() ); #There is an error with the WeBWorK answer checker on this problem. Since we are unable to quickly #resolve the issue, all students will receive 100% on this problem. Note that this applies ONLY to this #individual problem, and not the entire homework set/quiz. Please proceed to the next problem! $BR #$PAR $BR $PAR$BR $PAR $BR $PAR $BR #${EBOLD} #END_TEXT - + Context("Numeric"); ################################################ # Main text @@ -115,22 +115,22 @@ Context("Numeric"); BEGIN_TEXT Given the functions \(f(x) = $f\) and \(g(x) = $g\), find the following functions and their domains: $PAR -$SPACE \( (f \circ g)(x) = \) \{ans_rule(20)\} $SPACE $SPACE \{ AnswerFormatHelp("exponents", "Click here for help writing square roots") \} +$SPACE \( (f \circ g)(x) = \) \{ans_rule(20)\} $SPACE $SPACE \{ helpLink("exponents", "Click here for help writing square roots") \} $BR -$SPACE \( (g \circ f)(x) = \) \{ans_rule(20)\} +$SPACE \( (g \circ f)(x) = \) \{ans_rule(20)\} $PAR -$SPACE The domain of \((f \circ g)(x)\) is \{ans_rule(20)\} +$SPACE The domain of \((f \circ g)(x)\) is \{ans_rule(20)\} $BR -$SPACE The domain of \((g \circ f)(x)\) is \{ans_rule(20)\} +$SPACE The domain of \((g \circ f)(x)\) is \{ans_rule(20)\} $PAR -Write the domains using \{ AnswerFormatHelp("inequalities", "interval notation") \}. If the quantities do not exist, write "undefined" in the blank provided. +Write the domains using \{ helpLink("inequalities", "interval notation") \}. If the quantities do not exist, write "undefined" in the blank provided. END_TEXT Context()->texStrings; if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR - ${BBOLD}Answer:${EBOLD} + ${BBOLD}Answer:${EBOLD} \((f\circ g)(x) = $dispfg\), \((g\circ f)(x) = $dispgf\), the domain of \((f\circ g)(x)\) is \($dispdom1\), the domain of \((g\circ f)(x)\) is \($dispdom2\) $PAR END_TEXT @@ -140,7 +140,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ # Answer evaluation diff --git a/Contrib/Mizzou/College_Algebra/Functions_Composition/FunctionAndDomain3.pg b/Contrib/Mizzou/College_Algebra/Functions_Composition/FunctionAndDomain3.pg index ac9c328ba0..62e4082949 100644 --- a/Contrib/Mizzou/College_Algebra/Functions_Composition/FunctionAndDomain3.pg +++ b/Contrib/Mizzou/College_Algebra/Functions_Composition/FunctionAndDomain3.pg @@ -26,7 +26,7 @@ loadMacros( "PeriodicRerandomization.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "PGcourse.pl" @@ -73,7 +73,7 @@ ANS( Compute($gf)->cmp() ); ANS( $dom1->cmp() ); ANS( $dom2->cmp() ); - + Context("Numeric"); ################################################ # Main text @@ -81,22 +81,22 @@ Context("Numeric"); BEGIN_TEXT Given the functions \(f(x) = \displaystyle $f\) and \(g(x) = \displaystyle $g\) find the following functions and their domains: $PAR -$SPACE \( (f \circ g)(x) = \) \{ans_rule(20)\} $SPACE $SPACE \{ AnswerFormatHelp("exponents", "Click here for help writing square roots") \} +$SPACE \( (f \circ g)(x) = \) \{ans_rule(20)\} $SPACE $SPACE \{ helpLink("exponents", "Click here for help writing square roots") \} $BR -$SPACE \( (g \circ f)(x) = \) \{ans_rule(20)\} +$SPACE \( (g \circ f)(x) = \) \{ans_rule(20)\} $PAR -$SPACE The domain of \((f \circ g)(x)\) is \{ans_rule(20)\} +$SPACE The domain of \((f \circ g)(x)\) is \{ans_rule(20)\} $BR -$SPACE The domain of \((g \circ f)(x)\) is \{ans_rule(20)\} +$SPACE The domain of \((g \circ f)(x)\) is \{ans_rule(20)\} $PAR -Write the domains using \{ AnswerFormatHelp("inequalities", "interval notation") \}. If the quantities do not exist, write "undefined" in the blank provided. +Write the domains using \{ helpLink("inequalities", "interval notation") \}. If the quantities do not exist, write "undefined" in the blank provided. END_TEXT Context("Interval")->texStrings; if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR - ${BBOLD}Answer:${EBOLD} + ${BBOLD}Answer:${EBOLD} \((f\circ g)(x) = $dispfg\), \((g\circ f)(x) = $dispgf\), the domain of \((f\circ g)(x)\) is \($dom1\), the domain of \((g\circ f)(x)\) is \($dom2\) $PAR END_TEXT @@ -106,7 +106,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ # Answer evaluation diff --git a/Contrib/Mizzou/College_Algebra/Functions_Composition/FunctionAndDomain4.pg b/Contrib/Mizzou/College_Algebra/Functions_Composition/FunctionAndDomain4.pg index 421411440a..4063a8c389 100644 --- a/Contrib/Mizzou/College_Algebra/Functions_Composition/FunctionAndDomain4.pg +++ b/Contrib/Mizzou/College_Algebra/Functions_Composition/FunctionAndDomain4.pg @@ -26,7 +26,7 @@ loadMacros( "PeriodicRerandomization.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "PGcourse.pl" @@ -64,7 +64,7 @@ ANS( Compute($fg)->cmp() ); ANS( $dom1->cmp() ); #ANS( $dom2->cmp() ); - + Context("Interval")->texStrings; ################################################ # Main text @@ -72,17 +72,17 @@ Context("Interval")->texStrings; BEGIN_TEXT Given the functions \(f(x) = $f\) and \(g(x) = $g\), find the following function and its domain: $PAR -$SPACE \( (f \circ g)(x) = \) \{ans_rule(20)\} $SPACE $SPACE \{ AnswerFormatHelp("exponents", "Click here for help writing square roots") \} +$SPACE \( (f \circ g)(x) = \) \{ans_rule(20)\} $SPACE $SPACE \{ helpLink("exponents", "Click here for help writing square roots") \} $PAR -$SPACE The domain of \((f \circ g)(x)\) is \{ans_rule(20)\} +$SPACE The domain of \((f \circ g)(x)\) is \{ans_rule(20)\} $PAR -Write the domain using \{ AnswerFormatHelp("inequalities", "interval notation") \}. If the quantities do not exist, write "undefined" in the blank provided. +Write the domain using \{ helpLink("inequalities", "interval notation") \}. If the quantities do not exist, write "undefined" in the blank provided. END_TEXT if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR - ${BBOLD}Answer:${EBOLD} + ${BBOLD}Answer:${EBOLD} \((f\circ g)(x) = $dispfg\) and the domain is \($dom1\) $PAR END_TEXT @@ -92,7 +92,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ # Answer evaluation diff --git a/Contrib/Mizzou/College_Algebra/Functions_Composition/IterativePower.pg b/Contrib/Mizzou/College_Algebra/Functions_Composition/IterativePower.pg index 195d303672..683e38bb18 100644 --- a/Contrib/Mizzou/College_Algebra/Functions_Composition/IterativePower.pg +++ b/Contrib/Mizzou/College_Algebra/Functions_Composition/IterativePower.pg @@ -26,7 +26,7 @@ loadMacros( "PeriodicRerandomization.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "PGcourse.pl" @@ -58,7 +58,7 @@ $ans = ($e1)**($n); ANS( Compute($ff)->cmp() ); ANS (Compute($ans)->cmp() ); - + Context("Numeric"); ################################################ # Main text @@ -66,9 +66,9 @@ Context("Numeric"); BEGIN_TEXT Given the function \(f(x) = $f\), find the following quantities if they exists: $PAR -$SPACE \( (f \circ f)(x) = \) \{ans_rule(20)\} +$SPACE \( (f \circ f)(x) = \) \{ans_rule(20)\} $BR -$SPACE \( (f \circ f)($e1) = \) \{ans_rule(20)\} +$SPACE \( (f \circ f)($e1) = \) \{ans_rule(20)\} $PAR If the quantities do not exist, write "undefined" in the blank provided. END_TEXT @@ -77,7 +77,7 @@ END_TEXT if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR - ${BBOLD}Answer:${EBOLD} + ${BBOLD}Answer:${EBOLD} \((f\circ f) = $dispff\) $BR \((f\circ f)(1) = $ans\) $PAR END_TEXT @@ -87,7 +87,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ # Answer evaluation diff --git a/Contrib/Mizzou/College_Algebra/Functions_Composition/IterativeSquareRoot.pg b/Contrib/Mizzou/College_Algebra/Functions_Composition/IterativeSquareRoot.pg index 777c0348dc..f14a1a1a5e 100644 --- a/Contrib/Mizzou/College_Algebra/Functions_Composition/IterativeSquareRoot.pg +++ b/Contrib/Mizzou/College_Algebra/Functions_Composition/IterativeSquareRoot.pg @@ -26,7 +26,7 @@ loadMacros( "PeriodicRerandomization.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "PGcourse.pl" @@ -67,7 +67,7 @@ if ($a*$d+$b < 0) { #ANS( Compute($ff)->cmp() ); ANS( $ans->cmp() ); - + Context("Numeric"); ################################################ @@ -85,19 +85,19 @@ END_TEXT if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR - ${BBOLD}Answer:${EBOLD} + ${BBOLD}Answer:${EBOLD} $dispans $PAR END_TEXT } else { BEGIN_TEXT $PAR - \{ AnswerFormatHelp("exponents", "Click here for help entering square roots.") \} + \{ helpLink("exponents", "Click here for help entering square roots.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ # Answer evaluation diff --git a/Contrib/Mizzou/College_Algebra/Functions_Composition/Piecewise.pg b/Contrib/Mizzou/College_Algebra/Functions_Composition/Piecewise.pg index 2784cb6a85..6e703a1f4a 100644 --- a/Contrib/Mizzou/College_Algebra/Functions_Composition/Piecewise.pg +++ b/Contrib/Mizzou/College_Algebra/Functions_Composition/Piecewise.pg @@ -26,7 +26,7 @@ loadMacros( "PeriodicRerandomization.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "PGcourse.pl" @@ -77,13 +77,13 @@ ANS( Compute($ans2)->cmp() ); $lcb = "\{"; - + Context("Numeric"); ################################################ # Main text BEGIN_TEXT -Given the functions \(f(x) = \displaystyle $f\) and +Given the functions \(f(x) = \displaystyle $f\) and $PAR \[ g(x) = \left$lcb \begin{array}{lcr} @@ -93,7 +93,7 @@ g(x) = \left$lcb \begin{array}{lcr} \\ $g3 & & x \geq 8 -\end{array} \right. +\end{array} \right. \] $PAR find the following values: $PAR $SPACE \( (f \circ g)($e1) = \) \{ans_rule(10)\} @@ -104,7 +104,7 @@ END_TEXT if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR - ${BBOLD}Answer:${EBOLD} + ${BBOLD}Answer:${EBOLD} \( (f \circ g)($e1) = $ans1\), \( (g \circ f)($e2) = $ans2\) $PAR END_TEXT @@ -114,7 +114,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ # Answer evaluation diff --git a/Contrib/Mizzou/College_Algebra/Functions_Composition/PossiblyUndefined.pg b/Contrib/Mizzou/College_Algebra/Functions_Composition/PossiblyUndefined.pg index 503ab13c90..56c1329fb9 100644 --- a/Contrib/Mizzou/College_Algebra/Functions_Composition/PossiblyUndefined.pg +++ b/Contrib/Mizzou/College_Algebra/Functions_Composition/PossiblyUndefined.pg @@ -26,7 +26,7 @@ loadMacros( "PeriodicRerandomization.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "PGcourse.pl" @@ -60,7 +60,7 @@ else{ ANS( String("undefined")->cmp() ); $dispans = "undefined"; } - + ################################################ # Main text @@ -76,7 +76,7 @@ END_TEXT if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR - ${BBOLD}Answer:${EBOLD} + ${BBOLD}Answer:${EBOLD} $dispans $PAR END_TEXT @@ -86,7 +86,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ # Answer evaluation diff --git a/Contrib/Mizzou/College_Algebra/Functions_Difference_Quotient/Fraction.pg b/Contrib/Mizzou/College_Algebra/Functions_Difference_Quotient/Fraction.pg index e939e10aae..b510308491 100644 --- a/Contrib/Mizzou/College_Algebra/Functions_Difference_Quotient/Fraction.pg +++ b/Contrib/Mizzou/College_Algebra/Functions_Difference_Quotient/Fraction.pg @@ -27,7 +27,7 @@ loadMacros( "PeriodicRerandomization.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "PGcourse.pl" @@ -63,8 +63,8 @@ $multians = MultiAnswer($num, $den)->with( my ( $correct, $student, $self ) = @_; my ( $f1stu, $f2stu ) = @{$student}; my ( $f1, $f2 ) = @{$correct}; - - if ( ( $f1==$f1stu && $f2==$f2stu) || + + if ( ( $f1==$f1stu && $f2==$f2stu) || (-$f1==$f1stu && -$f2==$f2stu) ) { return [1,1]; } elsif ( $f1==$f1stu || -$f1==$f1stu) { @@ -90,7 +90,7 @@ ANS($multians->cmp() ); if ($displayMode eq 'TeX') { $displayfrac = - "\[ + "\[ \frac{f(x + h) - f(x)}{h} = ".$multians->ans_rule(10).$multians->ans_rule(10)." \]"; } else { $displayfrac = @@ -102,7 +102,7 @@ if ($displayMode eq 'TeX') { } - + Context("Numeric"); ################################################ @@ -126,7 +126,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ diff --git a/Contrib/Mizzou/College_Algebra/Functions_Difference_Quotient/Fraction2.pg b/Contrib/Mizzou/College_Algebra/Functions_Difference_Quotient/Fraction2.pg index 698ccac8c1..26472c09b1 100644 --- a/Contrib/Mizzou/College_Algebra/Functions_Difference_Quotient/Fraction2.pg +++ b/Contrib/Mizzou/College_Algebra/Functions_Difference_Quotient/Fraction2.pg @@ -27,7 +27,7 @@ loadMacros( "PeriodicRerandomization.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "PGcourse.pl" @@ -56,8 +56,8 @@ $multians = MultiAnswer($num, $den)->with( my ( $correct, $student, $self ) = @_; my ( $f1stu, $f2stu ) = @{$student}; my ( $f1, $f2 ) = @{$correct}; - - if ( ( $f1==$f1stu && $f2==$f2stu) || + + if ( ( $f1==$f1stu && $f2==$f2stu) || (-$f1==$f1stu && -$f2==$f2stu) ) { return [1,1]; } elsif ( $f2==$f2stu || -$f2==$f2stu ) { @@ -83,7 +83,7 @@ ANS($multians->cmp() ); if ($displayMode eq 'TeX') { $displayfrac = - "\[ + "\[ \frac{f(x + h) - f(x)}{h} = ".$multians->ans_rule(10).$multians->ans_rule(10)." \]"; } else { $displayfrac = @@ -95,7 +95,7 @@ if ($displayMode eq 'TeX') { } - + Context("Numeric"); ################################################ @@ -118,7 +118,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ diff --git a/Contrib/Mizzou/College_Algebra/Functions_Difference_Quotient/Linear.pg b/Contrib/Mizzou/College_Algebra/Functions_Difference_Quotient/Linear.pg index 87705bc074..a56496316c 100644 --- a/Contrib/Mizzou/College_Algebra/Functions_Difference_Quotient/Linear.pg +++ b/Contrib/Mizzou/College_Algebra/Functions_Difference_Quotient/Linear.pg @@ -27,7 +27,7 @@ loadMacros( "PeriodicRerandomization.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "PGcourse.pl" @@ -49,10 +49,10 @@ $b = non_zero_random(-10,10,1); $f = "$a x + $b"; $ans1 = $a; - + ANS( Compute($ans1)->cmp()); - + Context("Numeric"); ################################################ @@ -79,7 +79,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ diff --git a/Contrib/Mizzou/College_Algebra/Functions_Difference_Quotient/Quadratic(a).pg b/Contrib/Mizzou/College_Algebra/Functions_Difference_Quotient/Quadratic(a).pg index 0a31bea03b..69e3eb88be 100644 --- a/Contrib/Mizzou/College_Algebra/Functions_Difference_Quotient/Quadratic(a).pg +++ b/Contrib/Mizzou/College_Algebra/Functions_Difference_Quotient/Quadratic(a).pg @@ -27,7 +27,7 @@ loadMacros( "PeriodicRerandomization.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "PGcourse.pl" @@ -50,7 +50,7 @@ $ans1 = Compute("2*$a x + $a h + $b"); $texanswer = "\(".(2*$a)."x+ $a h + $b\)"; ANS( Compute($ans1)->cmp()); - + Context("Numeric"); ################################################ @@ -77,7 +77,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ diff --git a/Contrib/Mizzou/College_Algebra/Functions_Difference_Quotient/Quadratic.pg b/Contrib/Mizzou/College_Algebra/Functions_Difference_Quotient/Quadratic.pg index 6788e163b8..ef010db5e1 100644 --- a/Contrib/Mizzou/College_Algebra/Functions_Difference_Quotient/Quadratic.pg +++ b/Contrib/Mizzou/College_Algebra/Functions_Difference_Quotient/Quadratic.pg @@ -26,7 +26,7 @@ loadMacros( "PeriodicRerandomization.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "PGcourse.pl" @@ -47,10 +47,10 @@ do {$b = random(-1,1,2)*random(2,5,1)} until ($b != -2); $f = "$a x + $b"; $ans1 = $a; - + ANS( Compute($ans1)->cmp()); - + Context("Numeric"); ################################################ diff --git a/Contrib/Mizzou/College_Algebra/Functions_Difference_Quotient/cubic.pg b/Contrib/Mizzou/College_Algebra/Functions_Difference_Quotient/cubic.pg index 48b4a3f26d..3ef761ab0e 100644 --- a/Contrib/Mizzou/College_Algebra/Functions_Difference_Quotient/cubic.pg +++ b/Contrib/Mizzou/College_Algebra/Functions_Difference_Quotient/cubic.pg @@ -27,7 +27,7 @@ loadMacros( "PeriodicRerandomization.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "PGcourse.pl" @@ -48,10 +48,10 @@ $c = non_zero_random(-5,5,1); $f = "$a x^3"; $ans1 = Compute("$a* (3x^2 + 3 xh + h^2)"); - + ANS( Compute($ans1)->cmp()); $texanswer = "\(".(3*$a)."x^2 + ".(3*$a)."xh + $a h^2 \)"; - + Context("Numeric"); ################################################ @@ -78,7 +78,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ diff --git a/Contrib/Mizzou/College_Algebra/Functions_Domain_Range/DomainAbsValue.pg b/Contrib/Mizzou/College_Algebra/Functions_Domain_Range/DomainAbsValue.pg index 3c695a9426..298fa02c35 100644 --- a/Contrib/Mizzou/College_Algebra/Functions_Domain_Range/DomainAbsValue.pg +++ b/Contrib/Mizzou/College_Algebra/Functions_Domain_Range/DomainAbsValue.pg @@ -27,7 +27,7 @@ loadMacros( "PeriodicRerandomization.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "PGcourse.pl" @@ -54,13 +54,13 @@ $dom = Compute("(-inf, inf)"); ## Answers ANS( $dom->cmp() ); - + Context("Numeric"); ################################################ # Main text Context()->texStrings; BEGIN_TEXT -Find the domain of the function +Find the domain of the function $PAR \[ f(x) = $f @@ -68,7 +68,7 @@ f(x) = $f $PAR and write your answer in interval notation. $PAR -Domain: \{ans_rule(20)\} +Domain: \{ans_rule(20)\} END_TEXT if ($attempts_modp == 0 && $actualAttempts != 0) { @@ -81,14 +81,14 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help${EBOLD}: \{ AnswerFormatHelp("inequalities", "Click here for help entering intervals.") \} + ${BBOLD}Help${EBOLD}: \{ helpLink("inequalities", "Click here for help entering intervals.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Functions_Domain_Range/DomainFrac1.pg b/Contrib/Mizzou/College_Algebra/Functions_Domain_Range/DomainFrac1.pg index 37cf93da18..814e9c58de 100644 --- a/Contrib/Mizzou/College_Algebra/Functions_Domain_Range/DomainFrac1.pg +++ b/Contrib/Mizzou/College_Algebra/Functions_Domain_Range/DomainFrac1.pg @@ -27,7 +27,7 @@ loadMacros( "PeriodicRerandomization.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "PGcourse.pl" @@ -54,17 +54,17 @@ $dom = Compute("(-inf,0) U (0, inf)"); ## Answers ANS( $dom->cmp() ); - + Context("Numeric"); ################################################ # Main text Context()->texStrings; BEGIN_TEXT -Find the domain of the function +Find the domain of the function $PAR \[ f(x) = $f -\] +\] $PAR and write your answer in interval notation. $PAR @@ -81,14 +81,14 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help${EBOLD}: \{ AnswerFormatHelp("inequalities", "Click here for help entering intervals.") \} + ${BBOLD}Help${EBOLD}: \{ helpLink("inequalities", "Click here for help entering intervals.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ diff --git a/Contrib/Mizzou/College_Algebra/Functions_Domain_Range/DomainFrac2.pg b/Contrib/Mizzou/College_Algebra/Functions_Domain_Range/DomainFrac2.pg index 680014db98..50a6f7964c 100644 --- a/Contrib/Mizzou/College_Algebra/Functions_Domain_Range/DomainFrac2.pg +++ b/Contrib/Mizzou/College_Algebra/Functions_Domain_Range/DomainFrac2.pg @@ -27,7 +27,7 @@ loadMacros( "PeriodicRerandomization.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "PGcourse.pl" @@ -55,13 +55,13 @@ $texanswer = "\( \left(-\infty, \frac{$b}{$c}\right) \cup \left(\frac{$b}{$c},\i ## Answers ANS( $dom->cmp() ); - + Context("Numeric"); ################################################ # Main text Context()->texStrings; BEGIN_TEXT -Find the domain of the function +Find the domain of the function $PAR \[ f(x) = $f @@ -82,14 +82,14 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help${EBOLD}: \{ AnswerFormatHelp("inequalities", "Click here for help entering intervals.") \} + ${BBOLD}Help${EBOLD}: \{ helpLink("inequalities", "Click here for help entering intervals.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ # Answer evaluation diff --git a/Contrib/Mizzou/College_Algebra/Functions_Domain_Range/DomainFracQuadratic.pg b/Contrib/Mizzou/College_Algebra/Functions_Domain_Range/DomainFracQuadratic.pg index 27d781b820..5858d25b77 100644 --- a/Contrib/Mizzou/College_Algebra/Functions_Domain_Range/DomainFracQuadratic.pg +++ b/Contrib/Mizzou/College_Algebra/Functions_Domain_Range/DomainFracQuadratic.pg @@ -27,7 +27,7 @@ loadMacros( "PeriodicRerandomization.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "PGcourse.pl" @@ -59,13 +59,13 @@ if ($m < $n) { ## Answers ANS( $dom->cmp() ); - + Context("Numeric"); ################################################ # Main text BEGIN_TEXT -Find the domain of the function +Find the domain of the function $PAR \[ f(x) = $f @@ -86,14 +86,14 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help${EBOLD}: \{ AnswerFormatHelp("inequalities", "Click here for help entering intervals.") \} + ${BBOLD}Help${EBOLD}: \{ helpLink("inequalities", "Click here for help entering intervals.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Functions_Domain_Range/DomainFracQuadratic2.pg b/Contrib/Mizzou/College_Algebra/Functions_Domain_Range/DomainFracQuadratic2.pg index 3da3059936..0b89af088b 100644 --- a/Contrib/Mizzou/College_Algebra/Functions_Domain_Range/DomainFracQuadratic2.pg +++ b/Contrib/Mizzou/College_Algebra/Functions_Domain_Range/DomainFracQuadratic2.pg @@ -27,7 +27,7 @@ loadMacros( "PeriodicRerandomization.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "PGcourse.pl" @@ -57,14 +57,14 @@ $dom = Compute("(-inf,0)U (0, $b) U ($b, inf)"); ## Answers ANS( $dom->cmp() ); - + Context("Numeric"); ################################################ # Main text Context()->texStrings; BEGIN_TEXT -Find the domain of the function +Find the domain of the function $PAR \[ f(x) = $f @@ -85,14 +85,14 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help${EBOLD}: \{ AnswerFormatHelp("inequalities", "Click here for help entering intervals.") \} + ${BBOLD}Help${EBOLD}: \{ helpLink("inequalities", "Click here for help entering intervals.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ diff --git a/Contrib/Mizzou/College_Algebra/Functions_Domain_Range/DomainLinear.pg b/Contrib/Mizzou/College_Algebra/Functions_Domain_Range/DomainLinear.pg index 8b5aa2ce78..5911637caa 100644 --- a/Contrib/Mizzou/College_Algebra/Functions_Domain_Range/DomainLinear.pg +++ b/Contrib/Mizzou/College_Algebra/Functions_Domain_Range/DomainLinear.pg @@ -27,7 +27,7 @@ loadMacros( "PeriodicRerandomization.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "PGcourse.pl" @@ -54,13 +54,13 @@ $dom = Compute("(-inf, inf)"); ## Answers ANS( $dom->cmp() ); - + Context("Numeric"); ################################################ # Main text Context()->texStrings; BEGIN_TEXT -Find the domain of the function +Find the domain of the function $PAR \[ f(x) = $f @@ -83,14 +83,14 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR - ${BBOLD}Help${EBOLD}: \{ AnswerFormatHelp("inequalities", "Click here for help entering intervals.") \} + ${BBOLD}Help${EBOLD}: \{ helpLink("inequalities", "Click here for help entering intervals.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Functions_Domain_Range/Domain_Range_Graph_01.pg b/Contrib/Mizzou/College_Algebra/Functions_Domain_Range/Domain_Range_Graph_01.pg index 67c8a7f92e..2a27f74c0f 100644 --- a/Contrib/Mizzou/College_Algebra/Functions_Domain_Range/Domain_Range_Graph_01.pg +++ b/Contrib/Mizzou/College_Algebra/Functions_Domain_Range/Domain_Range_Graph_01.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -30,7 +30,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -73,7 +73,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.7,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.7,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.7,'10', 'black', 'bottom', 'right')); @@ -114,7 +114,7 @@ for ($i = 0; $i < $numx; $i++) { $maxy = $yvals[$i]; } if ($miny > $yvals[$i]) { - $miny = $yvals[$i]; + $miny = $yvals[$i]; } } @@ -188,9 +188,9 @@ if ($rcirc == 1 && $lcirc == 1) { } if ($lclosed == 0 && $rclosed == 0) { $range = Compute("($miny,$maxy)"); -} elsif ($lclosed == 1 && $rclosed == 0) { +} elsif ($lclosed == 1 && $rclosed == 0) { $range = Compute("[$miny,$maxy)"); -} elsif ($lclosed == 0 && $rclosed == 1) { +} elsif ($lclosed == 0 && $rclosed == 1) { $range = Compute("($miny,$maxy]"); } else { $range = Compute("[$miny,$maxy]"); @@ -244,14 +244,14 @@ for ($i = 1; $i < $numx; $i++) { if ($i != $numx - 1) { $graph->stamps(closed_circle($xvals[$i],$yvals[$i],'blue')); } -} +} HEADER_TEXT(<<'EOF'); EOF ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -259,7 +259,7 @@ BEGIN_TEXT $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $PAR Given the graph of \(f(x)\) above, find the following: @@ -271,7 +271,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($domain)->cmp()); ANS(Compute($range)->cmp()); @@ -295,12 +295,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR Write your answer using interval notation. $PAR - ${BBOLD}Help:${EBOLD} \{ AnswerFormatHelp("intervals","Click here for help entering intervals.") \} + ${BBOLD}Help:${EBOLD} \{ helpLink("intervals","Click here for help entering intervals.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Functions_Domain_Range/Domain_Range_Graph_02.pg b/Contrib/Mizzou/College_Algebra/Functions_Domain_Range/Domain_Range_Graph_02.pg index a6f79e0534..27881cb93c 100644 --- a/Contrib/Mizzou/College_Algebra/Functions_Domain_Range/Domain_Range_Graph_02.pg +++ b/Contrib/Mizzou/College_Algebra/Functions_Domain_Range/Domain_Range_Graph_02.pg @@ -16,12 +16,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxx = 11; @@ -112,7 +112,7 @@ if ($oc1 == 0) { $graph->stamps(new Circle($x4,$y4,5,'blue','blue')); $graph->stamps(new Circle($x5,$y5,5,'blue','white')); } - + # set up constant piece 2 $x6 = random($x5+2,$maxx-1); $y6 = $y5; @@ -128,7 +128,7 @@ if ($oc2 == 0) { # set up answers Context("Interval"); Context()->strings->add("none"=>{}); -if ($oc1 == 0) { +if ($oc1 == 0) { if ($oc2 == 0) { $domain = Compute("(-inf,$x4)U[$x5,$x6)"); } else { @@ -158,7 +158,7 @@ if ($flip == 1) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -166,7 +166,7 @@ BEGIN_TEXT $PAR $BCENTER \{ image(insertGraph($graph), width=>$gsize, height=>$gsize, tex_size=>500 ); \} -$ECENTER +$ECENTER $PAR Given the graph of \(f(x)\) above, find the following: @@ -178,7 +178,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($domain)->cmp()); ANS(Compute($range)->cmp()); @@ -201,13 +201,13 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - Write your answer using interval notation. - ${BBOLD}Help:${EBOLD} \{ AnswerFormatHelp("intervals","Click here for help entering intervals.") \} + Write your answer using interval notation. + ${BBOLD}Help:${EBOLD} \{ helpLink("intervals","Click here for help entering intervals.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Functions_Domain_Range/Domain_Range_Graph_03.pg b/Contrib/Mizzou/College_Algebra/Functions_Domain_Range/Domain_Range_Graph_03.pg index b29b243ace..295c4578d1 100644 --- a/Contrib/Mizzou/College_Algebra/Functions_Domain_Range/Domain_Range_Graph_03.pg +++ b/Contrib/Mizzou/College_Algebra/Functions_Domain_Range/Domain_Range_Graph_03.pg @@ -16,12 +16,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxx = 12; @@ -80,7 +80,7 @@ $y1 = non_zero_random(-4,3); $x2 = $x1 - random(1,2); $y2 = $y1 + (1,6); if ($x2 - $x1 == 1) { - $x3 = $x1 + 2; + $x3 = $x1 + 2; } else { $x3 = $x1 + 1; } @@ -169,7 +169,7 @@ $const = List(Compute("(-inf,$x1)")); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -177,7 +177,7 @@ BEGIN_TEXT $PAR $BCENTER \{ image(insertGraph($graph), width=>$gsize, height=>$gsize, tex_size=>500 ); \} -$ECENTER +$ECENTER $PAR Given the graph of \(f(x)\) above, find the following: @@ -189,7 +189,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($domain)->cmp()); ANS(Compute($range)->cmp()); @@ -212,13 +212,13 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - Write your answer using interval notation. - ${BBOLD}Help:${EBOLD} \{ AnswerFormatHelp("intervals","Click here for help entering intervals.") \} + Write your answer using interval notation. + ${BBOLD}Help:${EBOLD} \{ helpLink("intervals","Click here for help entering intervals.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Functions_Domain_Range/Domain_Range_Graph_04.pg b/Contrib/Mizzou/College_Algebra/Functions_Domain_Range/Domain_Range_Graph_04.pg index 3a33da3495..2a1c43a9e5 100644 --- a/Contrib/Mizzou/College_Algebra/Functions_Domain_Range/Domain_Range_Graph_04.pg +++ b/Contrib/Mizzou/College_Algebra/Functions_Domain_Range/Domain_Range_Graph_04.pg @@ -12,12 +12,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -31,7 +31,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxx = 11; @@ -101,7 +101,7 @@ if ($x1 > -6) { } # graph everything -$flipx = 1; # random(0,1); # 0 - no flip, 1 - flip x, +$flipx = 1; # random(0,1); # 0 - no flip, 1 - flip x, $flipy = 0;#random(0,1); # 0 - no flip, 1 - flip y if ($flipx == 1) { @@ -282,7 +282,7 @@ if ($flipy == 0) { $range = List(Compute("[$y1,$y1]U($y4,$y3]")); } else { $range = List(Compute("[$y1,$y1]U[$y4,$y3]")); - } + } } if ($flipx == 0) { @@ -315,7 +315,7 @@ if ($flipx == 0) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -323,7 +323,7 @@ BEGIN_TEXT $PAR $BCENTER \{ image(insertGraph($graph), width=>$gsize, height=>$gsize, tex_size=>500 ); \} -$ECENTER +$ECENTER $PAR Given the graph of \(f(x)\) above, find the following: @@ -335,7 +335,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($domain)->cmp()); ANS(Compute($range)->cmp()); @@ -358,13 +358,13 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - Write your answer using interval notation. - ${BBOLD}Help:${EBOLD} \{ AnswerFormatHelp("intervals","Click here for help entering intervals.") \} + Write your answer using interval notation. + ${BBOLD}Help:${EBOLD} \{ helpLink("intervals","Click here for help entering intervals.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Functions_Domain_Range/Domain_Range_Graph_05.pg b/Contrib/Mizzou/College_Algebra/Functions_Domain_Range/Domain_Range_Graph_05.pg index 464902a53b..eed8aa2244 100644 --- a/Contrib/Mizzou/College_Algebra/Functions_Domain_Range/Domain_Range_Graph_05.pg +++ b/Contrib/Mizzou/College_Algebra/Functions_Domain_Range/Domain_Range_Graph_05.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -30,7 +30,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -73,7 +73,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.7,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.7,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.7,'10', 'black', 'bottom', 'right')); @@ -96,9 +96,9 @@ do {$y[2] = random($min+1,$max-1)} until ($y[2] != $y[1]); do {$y[3] = random($min+1,$max-1)} until ($y[3] != $y[2]); do {$y[4] = random($min+4,$max-4)} until ($y[4] != $y[3]); do {$y[5] = random($min+2,$max-2)} until ($y[5] != $y[4]); -if ($y[4] < $y[5]) { - do {$y[6] = random($min+1,$max-1)} until ($y[6] < $y[5]); # forces -} else { # +if ($y[4] < $y[5]) { + do {$y[6] = random($min+1,$max-1)} until ($y[6] < $y[5]); # forces +} else { # do {$y[6] = random($min+1,$max-1)} until ($y[6] > $y[5]); # V shape } @@ -113,7 +113,7 @@ $graph->lineTo($x[6],$y[6],'blue',3); # draw dots, compute domain and range; $op[0] = random(0,1); # 0 - closed, 1 - open $op[1] = random(0,1); -if ($x[1] == $x[2]) { +if ($x[1] == $x[2]) { $op[2] = 1 - $op[1]; } else { $op[2] = random(0,1); @@ -249,7 +249,7 @@ $range = Compute("$range1 U $range2 U $range3"); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -257,7 +257,7 @@ BEGIN_TEXT $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $PAR Given the graph of \(f(x)\) above, find the following: @@ -269,7 +269,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($domain)->cmp()); ANS(Compute($range)->cmp()); @@ -292,12 +292,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - Write your answer using interval notation. ${BBOLD}Help:${EBOLD} \{ AnswerFormatHelp("intervals","Click here for help entering intervals.") \} + Write your answer using interval notation. ${BBOLD}Help:${EBOLD} \{ helpLink("intervals","Click here for help entering intervals.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Functions_Domain_Range/Domain_Range_Graph_06.pg b/Contrib/Mizzou/College_Algebra/Functions_Domain_Range/Domain_Range_Graph_06.pg index 81e95e4d1e..73324d8d3c 100644 --- a/Contrib/Mizzou/College_Algebra/Functions_Domain_Range/Domain_Range_Graph_06.pg +++ b/Contrib/Mizzou/College_Algebra/Functions_Domain_Range/Domain_Range_Graph_06.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -30,7 +30,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -73,7 +73,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.7,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.7,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.7,'10', 'black', 'bottom', 'right')); @@ -124,7 +124,7 @@ HEADER_TEXT(<<'EOF'); EOF ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -132,7 +132,7 @@ BEGIN_TEXT $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $PAR Given the graph of the relation above, find the following: @@ -144,7 +144,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($domain)->cmp()); ANS(Compute($range)->cmp()); @@ -168,12 +168,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR Write your answer using interval notation. $PAR - ${BBOLD}Help:${EBOLD} \{ AnswerFormatHelp("intervals","Click here for help entering intervals.") \} + ${BBOLD}Help:${EBOLD} \{ helpLink("intervals","Click here for help entering intervals.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Functions_Domain_Range/Domain_Range_Graph_07.pg b/Contrib/Mizzou/College_Algebra/Functions_Domain_Range/Domain_Range_Graph_07.pg index 7597c67228..1d6d94e2fe 100644 --- a/Contrib/Mizzou/College_Algebra/Functions_Domain_Range/Domain_Range_Graph_07.pg +++ b/Contrib/Mizzou/College_Algebra/Functions_Domain_Range/Domain_Range_Graph_07.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -30,7 +30,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -73,7 +73,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.7,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.7,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.7,'10', 'black', 'bottom', 'right')); @@ -116,7 +116,7 @@ HEADER_TEXT(<<'EOF'); EOF ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -124,7 +124,7 @@ BEGIN_TEXT $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $PAR Given the graph of the relation above, find the following: @@ -136,7 +136,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($domain)->cmp()); ANS(Compute($range)->cmp()); @@ -160,12 +160,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR Write your answer using interval notation. $PAR - ${BBOLD}Help:${EBOLD} \{ AnswerFormatHelp("intervals","Click here for help entering intervals.") \} + ${BBOLD}Help:${EBOLD} \{ helpLink("intervals","Click here for help entering intervals.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Functions_Domain_Range/Domain_Range_Graph_08.pg b/Contrib/Mizzou/College_Algebra/Functions_Domain_Range/Domain_Range_Graph_08.pg index 1966533cd6..929285df0e 100644 --- a/Contrib/Mizzou/College_Algebra/Functions_Domain_Range/Domain_Range_Graph_08.pg +++ b/Contrib/Mizzou/College_Algebra/Functions_Domain_Range/Domain_Range_Graph_08.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -30,7 +30,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -73,7 +73,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.7,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.7,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.7,'10', 'black', 'bottom', 'right')); @@ -204,7 +204,7 @@ HEADER_TEXT(<<'EOF'); EOF ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -212,7 +212,7 @@ BEGIN_TEXT $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $PAR Given the graph of the relation above, find the following: @@ -224,7 +224,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($domain)->cmp()); ANS(Compute($range)->cmp()); @@ -248,12 +248,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR Write your answer using interval notation. $PAR - ${BBOLD}Help:${EBOLD} \{ AnswerFormatHelp("intervals","Click here for help entering intervals.") \} + ${BBOLD}Help:${EBOLD} \{ helpLink("intervals","Click here for help entering intervals.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Functions_Domain_Range/Domain_Range_Graph_Arbitrary_02_03_04.pg b/Contrib/Mizzou/College_Algebra/Functions_Domain_Range/Domain_Range_Graph_Arbitrary_02_03_04.pg index e56cbd8f67..b76621f23f 100644 --- a/Contrib/Mizzou/College_Algebra/Functions_Domain_Range/Domain_Range_Graph_Arbitrary_02_03_04.pg +++ b/Contrib/Mizzou/College_Algebra/Functions_Domain_Range/Domain_Range_Graph_Arbitrary_02_03_04.pg @@ -16,12 +16,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); for ($i = 0; $i < random(10,50,1); $i++) { @@ -133,7 +133,7 @@ if ($case == 0) { # set up answers Context("Interval"); Context()->strings->add("none"=>{}); - if ($oc1 == 0) { + if ($oc1 == 0) { if ($oc2 == 0) { $domain = Compute("(-inf,$x4)U[$x5,$x6)"); } else { @@ -163,7 +163,7 @@ if ($case == 0) { ########################################################################### - # state the problem + # state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -171,7 +171,7 @@ if ($case == 0) { $PAR $BCENTER \{ image(insertGraph($graph), width=>$gsize, height=>$gsize, tex_size=>500 ); \} - $ECENTER + $ECENTER $PAR Given the graph of \(f(x)\) above, find the following: @@ -183,7 +183,7 @@ if ($case == 0) { ########################################################################### - # check the answer + # check the answer ########################################################################### ANS(Compute($domain)->cmp()); ANS(Compute($range)->cmp()); @@ -206,8 +206,8 @@ if ($case == 0) { } else { BEGIN_TEXT $PAR - Write your answer using interval notation. - ${BBOLD}Help:${EBOLD} \{ AnswerFormatHelp("intervals","Click here for help entering intervals.") \} + Write your answer using interval notation. + ${BBOLD}Help:${EBOLD} \{ helpLink("intervals","Click here for help entering intervals.") \} $BR END_TEXT } @@ -256,7 +256,7 @@ if ($case == 0) { $x2 = $x1 - random(1,2); $y2 = $y1 + (1,6); if ($x2 - $x1 == 1) { - $x3 = $x1 + 2; + $x3 = $x1 + 2; } else { $x3 = $x1 + 1; } @@ -341,7 +341,7 @@ if ($case == 0) { ########################################################################### - # state the problem + # state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -349,7 +349,7 @@ if ($case == 0) { $PAR $BCENTER \{ image(insertGraph($graph), width=>$gsize, height=>$gsize, tex_size=>500 ); \} - $ECENTER + $ECENTER $PAR Given the graph of \(f(x)\) above, find the following: @@ -361,7 +361,7 @@ if ($case == 0) { ########################################################################### - # check the answer + # check the answer ########################################################################### ANS(Compute($domain)->cmp()); ANS(Compute($range)->cmp()); @@ -384,8 +384,8 @@ if ($case == 0) { } else { BEGIN_TEXT $PAR - Write your answer using interval notation. - ${BBOLD}Help:${EBOLD} \{ AnswerFormatHelp("intervals","Click here for help entering intervals.") \} + Write your answer using interval notation. + ${BBOLD}Help:${EBOLD} \{ helpLink("intervals","Click here for help entering intervals.") \} $BR END_TEXT } @@ -459,7 +459,7 @@ if ($case == 0) { } # graph everything - $flipx = 1; # random(0,1); # 0 - no flip, 1 - flip x, + $flipx = 1; # random(0,1); # 0 - no flip, 1 - flip x, $flipy = 0;#random(0,1); # 0 - no flip, 1 - flip y if ($flipx == 1) { @@ -640,7 +640,7 @@ if ($case == 0) { $range = List(Compute("[$y1,$y1]U($y4,$y3]")); } else { $range = List(Compute("[$y1,$y1]U[$y4,$y3]")); - } + } } if ($flipx == 0) { @@ -673,7 +673,7 @@ if ($case == 0) { ########################################################################### - # state the problem + # state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -681,7 +681,7 @@ if ($case == 0) { $PAR $BCENTER \{ image(insertGraph($graph), width=>$gsize, height=>$gsize, tex_size=>500 ); \} - $ECENTER + $ECENTER $PAR Given the graph of \(f(x)\) above, find the following: @@ -693,7 +693,7 @@ if ($case == 0) { ########################################################################### - # check the answer + # check the answer ########################################################################### ANS(Compute($domain)->cmp()); ANS(Compute($range)->cmp()); @@ -716,8 +716,8 @@ if ($case == 0) { } else { BEGIN_TEXT $PAR - Write your answer using interval notation. - ${BBOLD}Help:${EBOLD} \{ AnswerFormatHelp("intervals","Click here for help entering intervals.") \} + Write your answer using interval notation. + ${BBOLD}Help:${EBOLD} \{ helpLink("intervals","Click here for help entering intervals.") \} $BR END_TEXT } diff --git a/Contrib/Mizzou/College_Algebra/Functions_Domain_Range/FracSqrt.pg b/Contrib/Mizzou/College_Algebra/Functions_Domain_Range/FracSqrt.pg index 259e9ce2eb..faec31186d 100644 --- a/Contrib/Mizzou/College_Algebra/Functions_Domain_Range/FracSqrt.pg +++ b/Contrib/Mizzou/College_Algebra/Functions_Domain_Range/FracSqrt.pg @@ -27,7 +27,7 @@ loadMacros( "PeriodicRerandomization.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "PGcourse.pl" @@ -57,13 +57,13 @@ $dom = Compute("(-inf,$a)"); ## Answers ANS( $dom->cmp() ); - + Context("Numeric"); ################################################ # Main text BEGIN_TEXT -Find the domain of the function +Find the domain of the function $PAR \[ f(x) = $f @@ -85,14 +85,14 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help${EBOLD}: \{ AnswerFormatHelp("inequalities", "Click here for help entering intervals.") \} + ${BBOLD}Help${EBOLD}: \{ helpLink("inequalities", "Click here for help entering intervals.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ diff --git a/Contrib/Mizzou/College_Algebra/Functions_Domain_Range/FracSqrt2.pg b/Contrib/Mizzou/College_Algebra/Functions_Domain_Range/FracSqrt2.pg index b3374347d7..e2788f06f2 100644 --- a/Contrib/Mizzou/College_Algebra/Functions_Domain_Range/FracSqrt2.pg +++ b/Contrib/Mizzou/College_Algebra/Functions_Domain_Range/FracSqrt2.pg @@ -27,7 +27,7 @@ loadMacros( "PeriodicRerandomization.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "PGcourse.pl" @@ -71,17 +71,17 @@ if($a > 0) { ## Answers ANS( $dom->cmp() ); - + Context("Fraction-NoDecimals")->texStrings; ################################################ # Main text BEGIN_TEXT -Find the domain of the function +Find the domain of the function $PAR \[ f(x) = \displaystyle $f -\] +\] $PAR and write your answer in interval notation. $PAR @@ -98,14 +98,14 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help${EBOLD}: \{ AnswerFormatHelp("inequalities", "Click here for help entering intervals.") \} + ${BBOLD}Help${EBOLD}: \{ helpLink("inequalities", "Click here for help entering intervals.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Functions_Domain_Range/Sqrt2.pg b/Contrib/Mizzou/College_Algebra/Functions_Domain_Range/Sqrt2.pg index a8ca6fe661..e3986e5725 100644 --- a/Contrib/Mizzou/College_Algebra/Functions_Domain_Range/Sqrt2.pg +++ b/Contrib/Mizzou/College_Algebra/Functions_Domain_Range/Sqrt2.pg @@ -27,7 +27,7 @@ loadMacros( "PeriodicRerandomization.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "PGcourse.pl" @@ -61,13 +61,13 @@ if($a > 0){ ## Answers ANS( $dom->cmp() ); - + Context("Numeric"); ################################################ # Main text BEGIN_TEXT -Find the domain of the function +Find the domain of the function $PAR \[ f(x) = $f @@ -88,14 +88,14 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help${EBOLD}: \{ AnswerFormatHelp("inequalities", "Click here for help entering intervals.") \} + ${BBOLD}Help${EBOLD}: \{ helpLink("inequalities", "Click here for help entering intervals.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ diff --git a/Contrib/Mizzou/College_Algebra/Functions_Evaluating/Evaluate_Graph_Cubic.pg b/Contrib/Mizzou/College_Algebra/Functions_Evaluating/Evaluate_Graph_Cubic.pg index ccbac8908f..96b8d040f4 100644 --- a/Contrib/Mizzou/College_Algebra/Functions_Evaluating/Evaluate_Graph_Cubic.pg +++ b/Contrib/Mizzou/College_Algebra/Functions_Evaluating/Evaluate_Graph_Cubic.pg @@ -13,12 +13,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -32,7 +32,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxx = 11; @@ -162,7 +162,7 @@ do {$x1pos = random(0,scalar(@possx)-1)} until ($x1pos != $x4pos && $x1pos != $x ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -170,7 +170,7 @@ BEGIN_TEXT $PAR $BCENTER \{ image(insertGraph($graph), width=>$gsize, height=>$gsize, tex_size=>500 ); \} -$ECENTER +$ECENTER $PAR Given the graph of \(f(x)\) above, find the following: @@ -186,7 +186,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($possy[$x1pos])->cmp()); ANS(Compute($possy[$x2pos])->cmp()); @@ -218,7 +218,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Functions_Evaluating/Frac.pg b/Contrib/Mizzou/College_Algebra/Functions_Evaluating/Frac.pg index 2ac98c5fb9..2777304d7d 100644 --- a/Contrib/Mizzou/College_Algebra/Functions_Evaluating/Frac.pg +++ b/Contrib/Mizzou/College_Algebra/Functions_Evaluating/Frac.pg @@ -27,7 +27,7 @@ loadMacros( "PeriodicRerandomization.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "PGcourse.pl" @@ -83,7 +83,7 @@ ANS( Compute($ans2)-> cmp() ); ANS( Compute($ans3)->cmp() ); ANS ( String("undefined")->cmp() ); - + Context("Numeric"); ################################################ # Main text @@ -91,7 +91,7 @@ Context("Numeric"); BEGIN_TEXT Given the function \(f(x) = $f\), find the following values: $PAR -$SPACE \( f($e1) = \) \{ans_rule(10)\} +$SPACE \( f($e1) = \) \{ans_rule(10)\} $BR $SPACE \( f($e2) = \) \{ans_rule(10)\} $BR @@ -128,7 +128,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ diff --git a/Contrib/Mizzou/College_Algebra/Functions_Evaluating/FracSqrt.pg b/Contrib/Mizzou/College_Algebra/Functions_Evaluating/FracSqrt.pg index f916001c93..e067a01221 100644 --- a/Contrib/Mizzou/College_Algebra/Functions_Evaluating/FracSqrt.pg +++ b/Contrib/Mizzou/College_Algebra/Functions_Evaluating/FracSqrt.pg @@ -27,7 +27,7 @@ loadMacros( "PeriodicRerandomization.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "PGcourse.pl" @@ -83,7 +83,7 @@ if ($sqrtc - floor($sqrtc) == 0) { } else { $texanswer = "\(\dfrac{$b}{\sqrt{$c}}\)"; } - + Context("Numeric"); ################################################ # Main text @@ -91,7 +91,7 @@ Context("Numeric"); BEGIN_TEXT Given the function \(f(x) = $f\), find the following values: $PAR -$SPACE \( f(0) = \) \{ans_rule(10)\} +$SPACE \( f(0) = \) \{ans_rule(10)\} $BR $SPACE \( f($a2) = \) \{ans_rule(10)\} $BR @@ -127,7 +127,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ # Answer evaluation diff --git a/Contrib/Mizzou/College_Algebra/Functions_Evaluating/Linear.pg b/Contrib/Mizzou/College_Algebra/Functions_Evaluating/Linear.pg index 8966689e33..e2976fadbe 100644 --- a/Contrib/Mizzou/College_Algebra/Functions_Evaluating/Linear.pg +++ b/Contrib/Mizzou/College_Algebra/Functions_Evaluating/Linear.pg @@ -27,7 +27,7 @@ loadMacros( "PeriodicRerandomization.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "contextLimitedPolynomial.pl", @@ -82,7 +82,7 @@ $ans2 = Compute("$c1 $var^2 + $c2 $var + $c3")->reduce; ## Answers ANS( Compute($ans1)->cmp(showTypeWarnings=>0) ); ANS( $ans2-> cmp() ); - + Context("Numeric"); ################################################ # Main text @@ -90,7 +90,7 @@ Context()->texStrings; BEGIN_TEXT Given the function \(f(x) = $f\), find the following values and simplify your answers as much as possible. $PAR -$SPACE \( f($e1) = \) \{ans_rule(10)\} +$SPACE \( f($e1) = \) \{ans_rule(10)\} $BR $SPACE \( f($var + $e2) = \) \{ans_rule(10)\} END_TEXT @@ -99,7 +99,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR $BBOLD Answer: $EBOLD - $PAR + $PAR \(f($e1) = $ans1\) $PAR \(f($var + $e2) = $ans2\) @@ -113,7 +113,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ diff --git a/Contrib/Mizzou/College_Algebra/Functions_Evaluating/Sqrt.pg b/Contrib/Mizzou/College_Algebra/Functions_Evaluating/Sqrt.pg index 06c7dcc127..b2016dfb1b 100644 --- a/Contrib/Mizzou/College_Algebra/Functions_Evaluating/Sqrt.pg +++ b/Contrib/Mizzou/College_Algebra/Functions_Evaluating/Sqrt.pg @@ -27,7 +27,7 @@ loadMacros( "PeriodicRerandomization.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "contextLimitedPolynomial.pl", @@ -52,7 +52,7 @@ $ans1 = Formula("sqrt($a x +$a h + $b)")->reduce; $texanswer = "\(\sqrt{$a x + $a h + $b}\)"; ANS( Compute($ans1)->cmp()); - + ################################################ # Main text @@ -60,7 +60,7 @@ Context()->texStrings; BEGIN_TEXT Given the function \(f(x) = $f\), find the following quantity if it exists. $PAR -$SPACE \( f(x+h) = \) \{ans_rule(20)\} $SPACE $SPACE \{AnswerFormatHelp("exponent","Click here for help entering square roots.")\} +$SPACE \( f(x+h) = \) \{ans_rule(20)\} $SPACE $SPACE \{helpLink("exponent","Click here for help entering square roots.")\} $PAR If the quantity does not exist, write "undefined" in the blank provided. END_TEXT @@ -79,7 +79,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ diff --git a/Contrib/Mizzou/College_Algebra/Functions_Evaluating/evaluateSQRT.pg b/Contrib/Mizzou/College_Algebra/Functions_Evaluating/evaluateSQRT.pg index bfcee4e57c..c85338f390 100644 --- a/Contrib/Mizzou/College_Algebra/Functions_Evaluating/evaluateSQRT.pg +++ b/Contrib/Mizzou/College_Algebra/Functions_Evaluating/evaluateSQRT.pg @@ -27,7 +27,7 @@ loadMacros( "PeriodicRerandomization.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "contextLimitedPolynomial.pl", @@ -61,9 +61,9 @@ ANS( String("undefined")->cmp() ); BEGIN_TEXT Given the function \(f(x) = $f\), find the following quantities if they exist. $PAR -$SPACE \( f\left(-\frac{$b}{$a} \right) = \) \{ans_rule(20)\} $SPACE $SPACE \{AnswerFormatHelp("exponent","Click here for help entering square roots.")\} +$SPACE \( f\left(-\frac{$b}{$a} \right) = \) \{ans_rule(20)\} $SPACE $SPACE \{helpLink("exponent","Click here for help entering square roots.")\} $PAR -$SPACE \( f($e2) = \) \{ans_rule(20)\} $SPACE $SPACE \{AnswerFormatHelp("exponent","Click here for help entering square roots.")\} +$SPACE \( f($e2) = \) \{ans_rule(20)\} $SPACE $SPACE \{helpLink("exponent","Click here for help entering square roots.")\} $PAR Write "undefined" if the value does not exist or if the value is not a real number. END_TEXT @@ -73,7 +73,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR $BBOLD Answer: $EBOLD - $PAR + $PAR \( f(-$b/$a) = 0\) $PAR \( f($e2) \) is undefined @@ -87,7 +87,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ diff --git a/Contrib/Mizzou/College_Algebra/Functions_Evaluating/frac2.pg b/Contrib/Mizzou/College_Algebra/Functions_Evaluating/frac2.pg index f9971d991f..d033d6e82a 100644 --- a/Contrib/Mizzou/College_Algebra/Functions_Evaluating/frac2.pg +++ b/Contrib/Mizzou/College_Algebra/Functions_Evaluating/frac2.pg @@ -27,7 +27,7 @@ loadMacros( "PeriodicRerandomization.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "contextLimitedPolynomial.pl", @@ -56,7 +56,7 @@ $multians = MultiAnswer($num, $den)->with( my ( $correct, $student, $self ) = @_; my ( $f1stu, $f2stu ) = @{$student}; my ( $f1, $f2 ) = @{$correct}; - + if ( ( $f1==$f1stu && $f2==$f2stu) ) { return [1,1]; } elsif ( $f1==$f1stu || -$f1==$f1stu) { @@ -127,7 +127,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################### diff --git a/Contrib/Mizzou/College_Algebra/Functions_Evaluating/quadratic.pg b/Contrib/Mizzou/College_Algebra/Functions_Evaluating/quadratic.pg index 4ddad6151c..c8a1ebf957 100644 --- a/Contrib/Mizzou/College_Algebra/Functions_Evaluating/quadratic.pg +++ b/Contrib/Mizzou/College_Algebra/Functions_Evaluating/quadratic.pg @@ -27,7 +27,7 @@ loadMacros( "PeriodicRerandomization.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "contextLimitedPolynomial.pl", @@ -54,7 +54,7 @@ Context("LimitedPolynomial-Strict"); $ans1 = Compute("$e2 x + $e3")->reduce; ANS( Compute($ans1)->cmp()); - + Context("Numeric"); ################################################ @@ -86,7 +86,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ # Answer evaluation diff --git a/Contrib/Mizzou/College_Algebra/Functions_Evaluating/quadratic2.pg b/Contrib/Mizzou/College_Algebra/Functions_Evaluating/quadratic2.pg index 2938252bc9..a512afbe1f 100644 --- a/Contrib/Mizzou/College_Algebra/Functions_Evaluating/quadratic2.pg +++ b/Contrib/Mizzou/College_Algebra/Functions_Evaluating/quadratic2.pg @@ -27,7 +27,7 @@ loadMacros( "PeriodicRerandomization.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "contextLimitedPolynomial.pl", @@ -52,7 +52,7 @@ Context("LimitedPolynomial-Strict"); $ans1 = Compute("$a x^2 - $b x + $c")->reduce; ANS( Compute($ans1)->cmp()); - + Context("Numeric"); ################################################ @@ -82,7 +82,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ # Answer evaluation diff --git a/Contrib/Mizzou/College_Algebra/Functions_Even_Odd_Symmetry/Determine_EOO_Abs_Even.pg b/Contrib/Mizzou/College_Algebra/Functions_Even_Odd_Symmetry/Determine_EOO_Abs_Even.pg index f9a89f41a0..b7a5f92afb 100644 --- a/Contrib/Mizzou/College_Algebra/Functions_Even_Odd_Symmetry/Determine_EOO_Abs_Even.pg +++ b/Contrib/Mizzou/College_Algebra/Functions_Even_Odd_Symmetry/Determine_EOO_Abs_Even.pg @@ -26,7 +26,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -76,12 +76,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("formulas", "Click here for help entering formulas." )\} + ${BBOLD}Help:${EBOLD} \{helpLink("formulas", "Click here for help entering formulas." )\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ diff --git a/Contrib/Mizzou/College_Algebra/Functions_Even_Odd_Symmetry/Determine_EOO_Abs_Neither.pg b/Contrib/Mizzou/College_Algebra/Functions_Even_Odd_Symmetry/Determine_EOO_Abs_Neither.pg index baa70ef554..35bbfae9b0 100644 --- a/Contrib/Mizzou/College_Algebra/Functions_Even_Odd_Symmetry/Determine_EOO_Abs_Neither.pg +++ b/Contrib/Mizzou/College_Algebra/Functions_Even_Odd_Symmetry/Determine_EOO_Abs_Neither.pg @@ -26,7 +26,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -76,12 +76,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("formulas", "Click here for help entering formulas." )\} + ${BBOLD}Help:${EBOLD} \{helpLink("formulas", "Click here for help entering formulas." )\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ diff --git a/Contrib/Mizzou/College_Algebra/Functions_Even_Odd_Symmetry/Determine_EOO_Poly_Over_Poly.pg b/Contrib/Mizzou/College_Algebra/Functions_Even_Odd_Symmetry/Determine_EOO_Poly_Over_Poly.pg index 3ea8132bfb..77c5bfea6d 100644 --- a/Contrib/Mizzou/College_Algebra/Functions_Even_Odd_Symmetry/Determine_EOO_Poly_Over_Poly.pg +++ b/Contrib/Mizzou/College_Algebra/Functions_Even_Odd_Symmetry/Determine_EOO_Poly_Over_Poly.pg @@ -24,7 +24,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -83,7 +83,7 @@ for ($i = $degt; $i >= 0; $i--) { $dispansfunt = ($dispansfunt)."x^{$i}"; } else { $dispansfunt = ($dispansfunt)."- x^{$i}"; - } + } } elsif ($ct[$i] == -1) { $dispfunt = ($dispfunt)."- x^{$i}"; if ($i % 2 == 0) { @@ -193,7 +193,7 @@ for ($i = $degb; $i >= 0; $i--) { $dispansfunb = ($dispansfunb)."x^{$i}"; } else { $dispansfunb = ($dispansfunb)."- x^{$i}"; - } + } } elsif ($cb[$i] == -1) { $dispfunb = ($dispfunb)."- x^{$i}"; if ($i % 2 == 0) { @@ -276,7 +276,7 @@ if (($eoot+$eoob) % 2 == 0) { # Main text BEGIN_TEXT -Let \(f(x) = \displaystyle $dispfun\). +Let \(f(x) = \displaystyle $dispfun\). $PAR Determine \(f(-x)\) first and then determine whether the function is even, odd, or neither. Write ${BBOLD}even${EBOLD} if the function is even, ${BBOLD}odd${EBOLD} if the function is odd, and ${BBOLD}neither${EBOLD} if the function is neither even nor odd. $PAR @@ -294,12 +294,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("formulas", "Click here for help entering formulas." )\} + ${BBOLD}Help:${EBOLD} \{helpLink("formulas", "Click here for help entering formulas." )\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ diff --git a/Contrib/Mizzou/College_Algebra/Functions_Even_Odd_Symmetry/Determine_EOO_Polynomial_Random.pg b/Contrib/Mizzou/College_Algebra/Functions_Even_Odd_Symmetry/Determine_EOO_Polynomial_Random.pg index e29e57819c..efbc920de2 100644 --- a/Contrib/Mizzou/College_Algebra/Functions_Even_Odd_Symmetry/Determine_EOO_Polynomial_Random.pg +++ b/Contrib/Mizzou/College_Algebra/Functions_Even_Odd_Symmetry/Determine_EOO_Polynomial_Random.pg @@ -24,7 +24,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -81,7 +81,7 @@ for ($i = $deg; $i >= 0; $i--) { $dispansfun = ($dispansfun)."x^{$i}"; } else { $dispansfun = ($dispansfun)."- x^{$i}"; - } + } } elsif ($c[$i] == -1) { $dispfun = ($dispfun)."- x^{$i}"; if ($i % 2 == 0) { @@ -179,12 +179,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("formulas", "Click here for help entering formulas." )\} + ${BBOLD}Help:${EBOLD} \{helpLink("formulas", "Click here for help entering formulas." )\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ diff --git a/Contrib/Mizzou/College_Algebra/Functions_Even_Odd_Symmetry/Determine_EOO_Rational_Neither.pg b/Contrib/Mizzou/College_Algebra/Functions_Even_Odd_Symmetry/Determine_EOO_Rational_Neither.pg index d6471bc446..e2c9d191a7 100644 --- a/Contrib/Mizzou/College_Algebra/Functions_Even_Odd_Symmetry/Determine_EOO_Rational_Neither.pg +++ b/Contrib/Mizzou/College_Algebra/Functions_Even_Odd_Symmetry/Determine_EOO_Rational_Neither.pg @@ -26,7 +26,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -61,7 +61,7 @@ $anseoo = "neither"; # Main text BEGIN_TEXT -Let \($dispfun\). +Let \($dispfun\). $PAR Determine \(f(-x)\) first and then determine whether the function is even, odd, or neither. Write ${BBOLD}even${EBOLD} if the function is even, ${BBOLD}odd${EBOLD} if the function is odd, and ${BBOLD}neither${EBOLD} if the function is neither even nor odd. $PAR @@ -79,12 +79,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("formulas", "Click here for help entering formulas." )\} + ${BBOLD}Help:${EBOLD} \{helpLink("formulas", "Click here for help entering formulas." )\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ diff --git a/Contrib/Mizzou/College_Algebra/Functions_Even_Odd_Symmetry/Determine_EOO_Rational_Odd.pg b/Contrib/Mizzou/College_Algebra/Functions_Even_Odd_Symmetry/Determine_EOO_Rational_Odd.pg index 019a1c9140..465aac8fb2 100644 --- a/Contrib/Mizzou/College_Algebra/Functions_Even_Odd_Symmetry/Determine_EOO_Rational_Odd.pg +++ b/Contrib/Mizzou/College_Algebra/Functions_Even_Odd_Symmetry/Determine_EOO_Rational_Odd.pg @@ -26,7 +26,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -61,7 +61,7 @@ $anseoo = "odd"; # Main text BEGIN_TEXT -Let \($dispfun\). +Let \($dispfun\). $PAR Determine \(f(-x)\) first and then determine whether the function is even, odd, or neither. Write ${BBOLD}even${EBOLD} if the function is even, ${BBOLD}odd${EBOLD} if the function is odd, and ${BBOLD}neither${EBOLD} if the function is neither even nor odd. $PAR @@ -79,12 +79,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("formulas", "Click here for help entering formulas." )\} + ${BBOLD}Help:${EBOLD} \{helpLink("formulas", "Click here for help entering formulas." )\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ diff --git a/Contrib/Mizzou/College_Algebra/Functions_Even_Odd_Symmetry/Find_Point_Symmetry.pg b/Contrib/Mizzou/College_Algebra/Functions_Even_Odd_Symmetry/Find_Point_Symmetry.pg index 29901d72de..c6b14e7180 100644 --- a/Contrib/Mizzou/College_Algebra/Functions_Even_Odd_Symmetry/Find_Point_Symmetry.pg +++ b/Contrib/Mizzou/College_Algebra/Functions_Even_Odd_Symmetry/Find_Point_Symmetry.pg @@ -12,12 +12,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -29,7 +29,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Point"); $x = random(-15,15); @@ -40,7 +40,7 @@ $oans = Point(-$x,-$y); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -55,7 +55,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($xans)->cmp()); ANS(Compute($yans)->cmp()); @@ -75,12 +75,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("points","Click here for help entering points.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("points","Click here for help entering points.")\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Functions_Even_Odd_Symmetry/Graph_Even_Odd_Neither.pg b/Contrib/Mizzou/College_Algebra/Functions_Even_Odd_Symmetry/Graph_Even_Odd_Neither.pg index 9b286767d9..f563197a22 100644 --- a/Contrib/Mizzou/College_Algebra/Functions_Even_Odd_Symmetry/Graph_Even_Odd_Neither.pg +++ b/Contrib/Mizzou/College_Algebra/Functions_Even_Odd_Symmetry/Graph_Even_Odd_Neither.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -32,7 +32,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); Context()->strings->add(A=>{}, B=>{}, C=>{}, D=>{}, E=>{}, "none"=>{}); @@ -318,7 +318,7 @@ for ($j = 0; $j < 4; $j++) { $fun2->domain(0.01,$max); $fun2->steps(1500); } elsif ($eoo == 1) { - $a5 = random(1,2.5,0.5)*random(-1,1,2); + $a5 = random(1,2.5,0.5)*random(-1,1,2); $expns[$pos[$j]] = sub { my $x = shift(); if ($x != 0) {$a5/(($x))} }; push(@oans, $possans[$pos[$j]]); $hasodd = 1; @@ -354,12 +354,12 @@ $oans = List(@oans); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -370,7 +370,7 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR List the letters of the graphs above which represent graphs that are @@ -384,7 +384,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($eans)->cmp()); ANS(Compute($oans)->cmp()); @@ -406,7 +406,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Functions_Increasing_Decreasing/Box_Volume.pg b/Contrib/Mizzou/College_Algebra/Functions_Increasing_Decreasing/Box_Volume.pg index c471efb0fe..e362ad33ed 100644 --- a/Contrib/Mizzou/College_Algebra/Functions_Increasing_Decreasing/Box_Volume.pg +++ b/Contrib/Mizzou/College_Algebra/Functions_Increasing_Decreasing/Box_Volume.pg @@ -13,12 +13,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $a = random(3,12,1); @@ -111,7 +111,7 @@ $anslw = MultiAnswer($width,$length)->with( ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -128,7 +128,7 @@ $ECENTER $PAR A(n) \($a \mbox{ in} \times $b \mbox{ in}\) piece of cardboard has squares cut out of each corner in order to make a box (see Figure 1). Let \(x\) represent the length of a cut-out square (the height of the box). -$PAR +$PAR (a) Find a function \(V(x)\) for the volume of the box in terms of \(x\). $PAR $SPACE $SPACE $SPACE\(V(x) =\) \{ans_rule(20)\} @@ -149,7 +149,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($vol)->cmp()); ANS(Compute($domain)->cmp()); @@ -176,12 +176,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("formulas", "Click here for help entering formulas")\} or \{AnswerFormatHelp("inequalities", "click here for help entering inequalities")\}. It does not matter which side you choose to be the width or length of the box. + ${BBOLD}Help:${EBOLD} \{helpLink("formulas", "Click here for help entering formulas")\} or \{helpLink("inequalities", "click here for help entering inequalities")\}. It does not matter which side you choose to be the width or length of the box. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Functions_Increasing_Decreasing/Corral.pg b/Contrib/Mizzou/College_Algebra/Functions_Increasing_Decreasing/Corral.pg index b5652859e7..54ea4484fc 100644 --- a/Contrib/Mizzou/College_Algebra/Functions_Increasing_Decreasing/Corral.pg +++ b/Contrib/Mizzou/College_Algebra/Functions_Increasing_Decreasing/Corral.pg @@ -13,12 +13,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $secs = random(2,4); @@ -88,7 +88,7 @@ $fig2 = image(insertGraph($graph), width=>$gsize, height=>$gsize, tex_size=>500 ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -105,7 +105,7 @@ $ECENTER $PAR Tessa has $tfence ft of fencing available to construct a fence that will divide her garden into $dispsecs rectangular sections. Her house forms one side of the garden and \(x\) represents the width, as shown in Figure 1. -$PAR +$PAR (a) Express the total area of the $dispsecs sections as a function of x. $PAR $SPACE $SPACE $SPACE\(A(x) =\) \{ans_rule(20)\} @@ -125,7 +125,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($area)->cmp()); ANS(Compute($domain)->cmp()); @@ -152,12 +152,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("formulas", "Click here for help entering formulas")\} or \{AnswerFormatHelp("inequalities", "click here for help entering inequalities")\}. + ${BBOLD}Help:${EBOLD} \{helpLink("formulas", "Click here for help entering formulas")\} or \{helpLink("inequalities", "click here for help entering inequalities")\}. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Functions_Increasing_Decreasing/Garden_Area.pg b/Contrib/Mizzou/College_Algebra/Functions_Increasing_Decreasing/Garden_Area.pg index b5652859e7..54ea4484fc 100644 --- a/Contrib/Mizzou/College_Algebra/Functions_Increasing_Decreasing/Garden_Area.pg +++ b/Contrib/Mizzou/College_Algebra/Functions_Increasing_Decreasing/Garden_Area.pg @@ -13,12 +13,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $secs = random(2,4); @@ -88,7 +88,7 @@ $fig2 = image(insertGraph($graph), width=>$gsize, height=>$gsize, tex_size=>500 ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -105,7 +105,7 @@ $ECENTER $PAR Tessa has $tfence ft of fencing available to construct a fence that will divide her garden into $dispsecs rectangular sections. Her house forms one side of the garden and \(x\) represents the width, as shown in Figure 1. -$PAR +$PAR (a) Express the total area of the $dispsecs sections as a function of x. $PAR $SPACE $SPACE $SPACE\(A(x) =\) \{ans_rule(20)\} @@ -125,7 +125,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($area)->cmp()); ANS(Compute($domain)->cmp()); @@ -152,12 +152,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("formulas", "Click here for help entering formulas")\} or \{AnswerFormatHelp("inequalities", "click here for help entering inequalities")\}. + ${BBOLD}Help:${EBOLD} \{helpLink("formulas", "Click here for help entering formulas")\} or \{helpLink("inequalities", "click here for help entering inequalities")\}. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Functions_Increasing_Decreasing/Inc_Dec_Const_Dom_Range_01.pg b/Contrib/Mizzou/College_Algebra/Functions_Increasing_Decreasing/Inc_Dec_Const_Dom_Range_01.pg index 8f5ffcae09..4ffead0e00 100644 --- a/Contrib/Mizzou/College_Algebra/Functions_Increasing_Decreasing/Inc_Dec_Const_Dom_Range_01.pg +++ b/Contrib/Mizzou/College_Algebra/Functions_Increasing_Decreasing/Inc_Dec_Const_Dom_Range_01.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -30,7 +30,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -73,7 +73,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.7,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.7,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.7,'10', 'black', 'bottom', 'right')); @@ -114,7 +114,7 @@ for ($i = 0; $i < $numx; $i++) { $maxy = $yvals[$i]; } if ($miny > $yvals[$i]) { - $miny = $yvals[$i]; + $miny = $yvals[$i]; } } @@ -188,9 +188,9 @@ if ($rcirc == 1 && $lcirc == 1) { } if ($lclosed == 0 && $rclosed == 0) { $range = Compute("($miny,$maxy)"); -} elsif ($lclosed == 1 && $rclosed == 0) { +} elsif ($lclosed == 1 && $rclosed == 0) { $range = Compute("[$miny,$maxy)"); -} elsif ($lclosed == 0 && $rclosed == 1) { +} elsif ($lclosed == 0 && $rclosed == 1) { $range = Compute("($miny,$maxy]"); } else { $range = Compute("[$miny,$maxy]"); @@ -250,8 +250,8 @@ for ($i = 1; $i < $numx - 1; $i++) { push(@minima, $yvals[$i]); } elsif ($yvals[$i] > $yvals[$i-1] && $yvals[$i] > $yvals[$i+1]) { push(@maxima, $yvals[$i]); - } -} + } +} if (scalar(@maxima) == 0) { $maxima = List(String("none")); @@ -267,7 +267,7 @@ if (scalar(@minima) == 0) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -275,7 +275,7 @@ BEGIN_TEXT $PAR $BCENTER \{ image(insertGraph($graph), width=>$gsize, height=>$gsize, tex_size=>500 ); \} -$ECENTER +$ECENTER $PAR Given the graph of \(f(x)\) above, find the following and write your answers using interval notation: @@ -297,7 +297,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($domain)->cmp()); ANS(Compute($range)->cmp()); @@ -335,12 +335,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} Write ${LQ}none${RQ} if no such interval(s) exist or if there is no relative maximum or relative minima. Separate multiple intervals by a comma when entering intervals for increasing, decreasing, and constant. \{ AnswerFormatHelp("intervals","Click here for help entering intervals.") \} + ${BBOLD}Help:${EBOLD} Write ${LQ}none${RQ} if no such interval(s) exist or if there is no relative maximum or relative minima. Separate multiple intervals by a comma when entering intervals for increasing, decreasing, and constant. \{ helpLink("intervals","Click here for help entering intervals.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Functions_Increasing_Decreasing/Inc_Dec_Const_Dom_Range_02.pg b/Contrib/Mizzou/College_Algebra/Functions_Increasing_Decreasing/Inc_Dec_Const_Dom_Range_02.pg index 27d4147e2e..85b3e33c0e 100644 --- a/Contrib/Mizzou/College_Algebra/Functions_Increasing_Decreasing/Inc_Dec_Const_Dom_Range_02.pg +++ b/Contrib/Mizzou/College_Algebra/Functions_Increasing_Decreasing/Inc_Dec_Const_Dom_Range_02.pg @@ -17,12 +17,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -36,7 +36,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxx = 11; @@ -136,7 +136,7 @@ if ($stop == 1) { $domain = Compute("(-inf,$x6)"); } else { $domain = Compute("(-inf,$x6]"); - } + } } else { $domain = Compute("(-inf,inf)"); } @@ -183,7 +183,7 @@ if ($stop == 1) { } ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -191,7 +191,7 @@ BEGIN_TEXT $PAR $BCENTER \{ image(insertGraph($graph), width=>$gsize, height=>$gsize, tex_size=>500 ); \} -$ECENTER +$ECENTER $PAR Given the graph of \(f(x)\) above, find the following and write your answers using interval notation: @@ -213,7 +213,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($domain)->cmp()); ANS(Compute($range)->cmp()); @@ -251,12 +251,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} Write ${LQ}none${RQ} if no such interval(s) exist or if there is no relative maximum or relative minima. Separate multiple intervals by a comma when entering intervals for increasing, decreasing, and constant. \{ AnswerFormatHelp("intervals","Click here for help entering intervals.") \} + ${BBOLD}Help:${EBOLD} Write ${LQ}none${RQ} if no such interval(s) exist or if there is no relative maximum or relative minima. Separate multiple intervals by a comma when entering intervals for increasing, decreasing, and constant. \{ helpLink("intervals","Click here for help entering intervals.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Functions_Increasing_Decreasing/Inc_Dec_Const_Dom_Range_03.pg b/Contrib/Mizzou/College_Algebra/Functions_Increasing_Decreasing/Inc_Dec_Const_Dom_Range_03.pg index 4b88b1a439..7ad8fa53d5 100644 --- a/Contrib/Mizzou/College_Algebra/Functions_Increasing_Decreasing/Inc_Dec_Const_Dom_Range_03.pg +++ b/Contrib/Mizzou/College_Algebra/Functions_Increasing_Decreasing/Inc_Dec_Const_Dom_Range_03.pg @@ -17,12 +17,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -36,7 +36,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxx = 11; @@ -81,7 +81,7 @@ $y1 = non_zero_random(-4,3); $x2 = $x1 - random(1,2); $y2 = $y1 + (1,6); if ($x2 - $x1 == 1) { - $x3 = $x1 + 2; + $x3 = $x1 + 2; } else { $x3 = $x1 + 1; } @@ -170,7 +170,7 @@ $const = List(Compute("(-inf,$x1)")); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -178,7 +178,7 @@ BEGIN_TEXT $PAR $BCENTER \{ image(insertGraph($graph), width=>$gsize, height=>$gsize, tex_size=>500 ); \} -$ECENTER +$ECENTER $PAR Given the graph of \(f(x)\) above, find the following and write your answers using interval notation: @@ -200,7 +200,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($domain)->cmp()); ANS(Compute($range)->cmp()); @@ -238,12 +238,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} Write ${LQ}none${RQ} if no such interval(s) exist or if there is no relative maximum or relative minima. Separate multiple intervals by a comma when entering intervals for increasing, decreasing, and constant. \{ AnswerFormatHelp("intervals","Click here for help entering intervals.") \} + ${BBOLD}Help:${EBOLD} Write ${LQ}none${RQ} if no such interval(s) exist or if there is no relative maximum or relative minima. Separate multiple intervals by a comma when entering intervals for increasing, decreasing, and constant. \{ helpLink("intervals","Click here for help entering intervals.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Functions_Increasing_Decreasing/Inc_Dec_Const_Dom_Range_04.pg b/Contrib/Mizzou/College_Algebra/Functions_Increasing_Decreasing/Inc_Dec_Const_Dom_Range_04.pg index 026815fc81..abf639a056 100644 --- a/Contrib/Mizzou/College_Algebra/Functions_Increasing_Decreasing/Inc_Dec_Const_Dom_Range_04.pg +++ b/Contrib/Mizzou/College_Algebra/Functions_Increasing_Decreasing/Inc_Dec_Const_Dom_Range_04.pg @@ -17,12 +17,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -36,7 +36,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -79,7 +79,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.7,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.7,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.7,'10', 'black', 'bottom', 'right')); @@ -106,9 +106,9 @@ if ($y[3] - $y[2] < 0) { $y[4] = random($min+1, $y[3]-2); } do {$y[5] = random($min+2,$max-2)} until ($y[5] != $y[4]); -if ($y[4] < $y[5]) { - do {$y[6] = random($min+1,$max-1)} until ($y[6] < $y[5]); # forces -} else { # +if ($y[4] < $y[5]) { + do {$y[6] = random($min+1,$max-1)} until ($y[6] < $y[5]); # forces +} else { # do {$y[6] = random($min+1,$max-1)} until ($y[6] > $y[5]); # V shape } @@ -123,7 +123,7 @@ $graph->lineTo($x[6],$y[6],'blue',3); # draw dots, compute domain and range; $op[0] = random(0,1); # 0 - closed, 1 - open $op[1] = random(0,1); -if ($x[1] == $x[2]) { +if ($x[1] == $x[2]) { $op[2] = 1 - $op[1]; } else { $op[2] = random(0,1); @@ -290,7 +290,7 @@ $const = List(Compute("($x[0],$x[1])")); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -298,7 +298,7 @@ BEGIN_TEXT $PAR $BCENTER \{ image(insertGraph($graph), width=>$gsize, height=>$gsize, tex_size=>500 ); \} -$ECENTER +$ECENTER $PAR Given the graph of \(f(x)\) above, find the following and write your answers using interval notation: @@ -320,7 +320,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($domain)->cmp()); ANS(Compute($range)->cmp()); @@ -358,12 +358,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} Write ${LQ}none${RQ} if no such interval(s) exist or if there is no relative maximum or relative minima. Separate multiple intervals by a comma when entering intervals for increasing, decreasing, and constant. \{ AnswerFormatHelp("intervals","Click here for help entering intervals.") \} + ${BBOLD}Help:${EBOLD} Write ${LQ}none${RQ} if no such interval(s) exist or if there is no relative maximum or relative minima. Separate multiple intervals by a comma when entering intervals for increasing, decreasing, and constant. \{ helpLink("intervals","Click here for help entering intervals.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Functions_Increasing_Decreasing/Inc_Dec_Const_Dom_Range_05.pg b/Contrib/Mizzou/College_Algebra/Functions_Increasing_Decreasing/Inc_Dec_Const_Dom_Range_05.pg index 6bedf3e4a9..aef57d4e94 100644 --- a/Contrib/Mizzou/College_Algebra/Functions_Increasing_Decreasing/Inc_Dec_Const_Dom_Range_05.pg +++ b/Contrib/Mizzou/College_Algebra/Functions_Increasing_Decreasing/Inc_Dec_Const_Dom_Range_05.pg @@ -13,12 +13,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -32,7 +32,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxx = 11; @@ -102,7 +102,7 @@ if ($x1 > -6) { } # graph everything -$flipx = 1; # random(0,1); # 0 - no flip, 1 - flip x, +$flipx = 1; # random(0,1); # 0 - no flip, 1 - flip x, $flipy = 0;#random(0,1); # 0 - no flip, 1 - flip y if ($flipx == 1) { @@ -283,7 +283,7 @@ if ($flipy == 0) { $range = List(Compute("[$y1,$y1]U($y4,$y3]")); } else { $range = List(Compute("[$y1,$y1]U[$y4,$y3]")); - } + } } if ($flipx == 0) { @@ -324,7 +324,7 @@ if ($flipx == 0) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -332,7 +332,7 @@ BEGIN_TEXT $PAR $BCENTER \{ image(insertGraph($graph), width=>$gsize, height=>$gsize, tex_size=>500 ); \} -$ECENTER +$ECENTER $PAR Given the graph of \(f(x)\) above, find the following and write your answers using interval notation: @@ -354,7 +354,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($domain)->cmp()); ANS(Compute($range)->cmp()); @@ -392,12 +392,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} Write ${LQ}none${RQ} if no such interval(s) exist or if there is no relative maximum or relative minima. Separate multiple intervals by a comma when entering intervals for increasing, decreasing, and constant. \{ AnswerFormatHelp("intervals","Click here for help entering intervals.") \} + ${BBOLD}Help:${EBOLD} Write ${LQ}none${RQ} if no such interval(s) exist or if there is no relative maximum or relative minima. Separate multiple intervals by a comma when entering intervals for increasing, decreasing, and constant. \{ helpLink("intervals","Click here for help entering intervals.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Functions_Piecewise/Three_Lines_Left_Piece_Constant.pg b/Contrib/Mizzou/College_Algebra/Functions_Piecewise/Three_Lines_Left_Piece_Constant.pg index a4682f31f3..ad3945fc18 100644 --- a/Contrib/Mizzou/College_Algebra/Functions_Piecewise/Three_Lines_Left_Piece_Constant.pg +++ b/Contrib/Mizzou/College_Algebra/Functions_Piecewise/Three_Lines_Left_Piece_Constant.pg @@ -13,12 +13,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxx = 16; @@ -189,7 +189,7 @@ if ($b1num < 0) { $tmp3 = -$b1num; if ($b1den == 1) { $dispeq1 = ($dispeq1)."- $tmp3"; - } else { + } else { $dispeq1 = ($dispeq1)."- \frac{$tmp3}{$b1den}"; } } else { @@ -224,7 +224,7 @@ $dispeq2 & \quad & \mbox{for } x $ineq4ans $x2\\ ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -233,7 +233,7 @@ $PAR $BCENTER \{ image(insertGraph($graph), width=>$gsize, height=>$gsize, tex_size=>500 ); \} -$ECENTER +$ECENTER $PAR The graph of a piecewise function, \(f(x)\), is depicted above. Find its equation: @@ -249,7 +249,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($piece1)->cmp()); ANS($ineq1->cmp()); @@ -281,12 +281,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Remarks:${EBOLD} Note that ${LQ}<=${RQ} stands for ${LQ}less than or equal${RQ} and ${LQ}>=${RQ} stands for ${LQ}greater than or equal.${RQ} You must have your browser window expanded wide enough to correctly display the above formula. \{AnswerFormatHelp("formulas","Click here for help entering formulas.") \} + ${BBOLD}Remarks:${EBOLD} Note that ${LQ}<=${RQ} stands for ${LQ}less than or equal${RQ} and ${LQ}>=${RQ} stands for ${LQ}greater than or equal.${RQ} You must have your browser window expanded wide enough to correctly display the above formula. \{helpLink("formulas","Click here for help entering formulas.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Functions_Piecewise/Three_Lines_Middle_Piece_Constant.pg b/Contrib/Mizzou/College_Algebra/Functions_Piecewise/Three_Lines_Middle_Piece_Constant.pg index 3e99f363ff..2bb22dcb3a 100644 --- a/Contrib/Mizzou/College_Algebra/Functions_Piecewise/Three_Lines_Middle_Piece_Constant.pg +++ b/Contrib/Mizzou/College_Algebra/Functions_Piecewise/Three_Lines_Middle_Piece_Constant.pg @@ -13,12 +13,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxx = 16; @@ -195,7 +195,7 @@ if ($b1num < 0) { $tmp3 = -$b1num; if ($b1den == 1) { $dispeq1 = ($dispeq1)."- $tmp3"; - } else { + } else { $dispeq1 = ($dispeq1)."- \frac{$tmp3}{$b1den}"; } } else { @@ -230,7 +230,7 @@ $dispeq2 & \quad & \mbox{for } x $ineq4ans $x3\\ ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -238,7 +238,7 @@ BEGIN_TEXT $PAR $BCENTER \{ image(insertGraph($graph), width=>$gsize, height=>$gsize, tex_size=>500 ); \} -$ECENTER +$ECENTER $PAR The graph of a piecewise function, \(f(x)\), is depicted above. Find its equation: @@ -254,7 +254,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($piece1)->cmp()); ANS($ineq1->cmp()); @@ -286,12 +286,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Remarks:${EBOLD} Note that ${LQ}<=${RQ} stands for ${LQ}less than or equal${RQ} and ${LQ}>=${RQ} stands for ${LQ}greater than or equal.${RQ} You must have your browser window expanded wide enough to correctly display the above formula. \{AnswerFormatHelp("formulas","Click here for help entering formulas.") \} + ${BBOLD}Remarks:${EBOLD} Note that ${LQ}<=${RQ} stands for ${LQ}less than or equal${RQ} and ${LQ}>=${RQ} stands for ${LQ}greater than or equal.${RQ} You must have your browser window expanded wide enough to correctly display the above formula. \{helpLink("formulas","Click here for help entering formulas.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Functions_Piecewise/Three_Lines_Right_Piece_Constant.pg b/Contrib/Mizzou/College_Algebra/Functions_Piecewise/Three_Lines_Right_Piece_Constant.pg index 10b8711145..90388d7f90 100644 --- a/Contrib/Mizzou/College_Algebra/Functions_Piecewise/Three_Lines_Right_Piece_Constant.pg +++ b/Contrib/Mizzou/College_Algebra/Functions_Piecewise/Three_Lines_Right_Piece_Constant.pg @@ -13,12 +13,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxx = 16; @@ -189,7 +189,7 @@ if ($b1num < 0) { $tmp3 = -$b1num; if ($b1den == 1) { $dispeq1 = ($dispeq1)."- $tmp3"; - } else { + } else { $dispeq1 = ($dispeq1)."- \frac{$tmp3}{$b1den}"; } } else { @@ -224,7 +224,7 @@ $y32 & \quad & \mbox{for } x $ineq4ans $x3\\ ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -232,7 +232,7 @@ BEGIN_TEXT $PAR $BCENTER \{ image(insertGraph($graph), width=>$gsize, height=>$gsize, tex_size=>500 ); \} -$ECENTER +$ECENTER $PAR The graph of a piecewise function, \(f(x)\), is depicted above. Find its equation: @@ -248,7 +248,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($piece1)->cmp()); ANS($ineq1->cmp()); @@ -280,12 +280,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Remarks:${EBOLD} Note that ${LQ}<=${RQ} stands for ${LQ}less than or equal${RQ} and ${LQ}>=${RQ} stands for ${LQ}greater than or equal.${RQ} You must have your browser window expanded wide enough to correctly display the above formula. \{AnswerFormatHelp("formulas","Click here for help entering formulas.") \} + ${BBOLD}Remarks:${EBOLD} Note that ${LQ}<=${RQ} stands for ${LQ}less than or equal${RQ} and ${LQ}>=${RQ} stands for ${LQ}greater than or equal.${RQ} You must have your browser window expanded wide enough to correctly display the above formula. \{helpLink("formulas","Click here for help entering formulas.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Functions_Testing/DiscreteAlwaysAFunction.pg b/Contrib/Mizzou/College_Algebra/Functions_Testing/DiscreteAlwaysAFunction.pg index 5ce08d4031..1952f0a2a2 100644 --- a/Contrib/Mizzou/College_Algebra/Functions_Testing/DiscreteAlwaysAFunction.pg +++ b/Contrib/Mizzou/College_Algebra/Functions_Testing/DiscreteAlwaysAFunction.pg @@ -27,7 +27,7 @@ loadMacros( "PeriodicRerandomization.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "PGcourse.pl" @@ -82,7 +82,7 @@ ANS( String("Yes")->cmp() ); ANS( Compute($domain)->cmp() ); ANS( Compute($r)-> cmp() ); - + Context("Numeric"); ################################################ # Main text @@ -115,7 +115,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ # Answer evaluation diff --git a/Contrib/Mizzou/College_Algebra/Functions_Testing/DiscreteNeverAFunction.pg b/Contrib/Mizzou/College_Algebra/Functions_Testing/DiscreteNeverAFunction.pg index 02700471d1..aad01a50ba 100644 --- a/Contrib/Mizzou/College_Algebra/Functions_Testing/DiscreteNeverAFunction.pg +++ b/Contrib/Mizzou/College_Algebra/Functions_Testing/DiscreteNeverAFunction.pg @@ -27,7 +27,7 @@ loadMacros( "PeriodicRerandomization.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "PGcourse.pl" @@ -77,7 +77,7 @@ else{ do {$e = random(-10,10,1)} until ($e == $a || $e ==$b || $e == $c || $e ==$d); $domain = List($a, $b, $c, $d); ANS( String("No")->cmp() );} - + $r1 = random(-10,10,1); do {$r2 = random(-10,10,1)} until ($r2 != $r1); @@ -96,7 +96,7 @@ $range = List($r1,$r2,$r3, $r4, $r5); ANS( Compute($domain)->cmp() ); ANS( Compute($range)-> cmp() ); - + Context("Numeric"); ################################################ # Main text @@ -108,7 +108,7 @@ $SPACE Is this relation a function? \{ans_rule(10)\} $SPACE $SPACE (Write either $PAR $SPACE What is the domain of this relation? $SPACE \( \big $lcb \) \{ans_rule(20)\} \( \big$rcb \) $BR -$SPACE What is the range of this relation? $SPACE \( \big $lcb \) \{ans_rule(20)\} \( \big $rcb \) +$SPACE What is the range of this relation? $SPACE \( \big $lcb \) \{ans_rule(20)\} \( \big $rcb \) $PAR Write "Does Not Exist" if the quantities do not exist. Also, when using set notation, do not list elements more than once. END_TEXT @@ -129,7 +129,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ diff --git a/Contrib/Mizzou/College_Algebra/Functions_Testing/DiscretePoints.1pg.pg b/Contrib/Mizzou/College_Algebra/Functions_Testing/DiscretePoints.1pg.pg index 6c4f4d5b7f..6f827a5eaa 100644 --- a/Contrib/Mizzou/College_Algebra/Functions_Testing/DiscretePoints.1pg.pg +++ b/Contrib/Mizzou/College_Algebra/Functions_Testing/DiscretePoints.1pg.pg @@ -26,7 +26,7 @@ loadMacros( "PeriodicRerandomization.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "PGcourse.pl" @@ -80,7 +80,7 @@ ANS( String("Yes")->cmp() ); ANS( Compute($domain)->cmp() ); ANS( Compute($r)-> cmp() ); - + Context("Numeric"); ################################################ # Main text diff --git a/Contrib/Mizzou/College_Algebra/Functions_Testing/DiscretePoints1.pg b/Contrib/Mizzou/College_Algebra/Functions_Testing/DiscretePoints1.pg index df2cbf60c0..e49669e247 100644 --- a/Contrib/Mizzou/College_Algebra/Functions_Testing/DiscretePoints1.pg +++ b/Contrib/Mizzou/College_Algebra/Functions_Testing/DiscretePoints1.pg @@ -26,7 +26,7 @@ loadMacros( "PeriodicRerandomization.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "PGcourse.pl" @@ -80,7 +80,7 @@ ANS( String("Yes")->cmp() ); ANS( Compute($domain)->cmp() ); ANS( Compute($r)-> cmp() ); - + Context("Numeric"); ################################################ # Main text diff --git a/Contrib/Mizzou/College_Algebra/Functions_Testing/DiscretePoints2.pg b/Contrib/Mizzou/College_Algebra/Functions_Testing/DiscretePoints2.pg index b10c63921d..e66a02c204 100644 --- a/Contrib/Mizzou/College_Algebra/Functions_Testing/DiscretePoints2.pg +++ b/Contrib/Mizzou/College_Algebra/Functions_Testing/DiscretePoints2.pg @@ -26,7 +26,7 @@ loadMacros( "PeriodicRerandomization.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "PGcourse.pl" @@ -74,7 +74,7 @@ else{ do {$e = random(-10,10,1)} until ($e == $a || $e ==$b || $e == $c || $e ==$d); $domain = List($a, $b, $c, $d); ANS( String("No")->cmp() );} - + $r1 = random(-10,10,1); do {$r2 = random(-10,10,1)} until ($r2 != $r1); @@ -93,7 +93,7 @@ $range = List($r1,$r2,$r3, $r4, $r5); ANS( Compute($domain)->cmp() ); ANS( Compute($range)-> cmp() ); - + Context("Numeric"); ################################################ # Main text diff --git a/Contrib/Mizzou/College_Algebra/Functions_Testing/PointsRandomlyFunctionOrNot.pg b/Contrib/Mizzou/College_Algebra/Functions_Testing/PointsRandomlyFunctionOrNot.pg index 68900ffc2a..9585b30ab0 100644 --- a/Contrib/Mizzou/College_Algebra/Functions_Testing/PointsRandomlyFunctionOrNot.pg +++ b/Contrib/Mizzou/College_Algebra/Functions_Testing/PointsRandomlyFunctionOrNot.pg @@ -27,7 +27,7 @@ loadMacros( "PeriodicRerandomization.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "PGcourse.pl" @@ -73,13 +73,13 @@ if ($case ==1) { do {$e = random(-10,10,1)} until ($e != $a && $e != $b && $e != $c && $e != $d); $domain = List($a, $b, $c, $d, $e); ANS( String("Yes")->cmp() );} - + else{ do {$e = random(-10,10,1)} until ($e == $a || $e ==$b || $e == $c || $e ==$d); $domain = List($a, $b, $c, $d); $yOrN = "is not a function"; ANS( String("No")->cmp() );} - + $r1 = random(-10,10,1); do {$r2 = random(-10,10,1)} until ($r2 != $r1); @@ -98,7 +98,7 @@ $range = List($r1,$r2,$r3, $r4, $r5); ANS( Compute($domain)->cmp() ); ANS( Compute($range)-> cmp() ); - + Context("Numeric"); ################################################ # Main text @@ -110,7 +110,7 @@ $SPACE Is this relation a function? \{ans_rule(10)\} $SPACE $SPACE (Write either $PAR $SPACE What is the domain of this relation? $SPACE \( \big $lcb \) \{ans_rule(20)\} \( \big$rcb \) $BR -$SPACE What is the range of this relation? $SPACE \( \big $lcb \) \{ans_rule(20)\} \( \big $rcb \) +$SPACE What is the range of this relation? $SPACE \( \big $lcb \) \{ans_rule(20)\} \( \big $rcb \) $PAR Write "Does Not Exist" if the quantities do not exist. Also, when using set notation, do not list elements more than once. END_TEXT @@ -131,7 +131,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Basics/Find_Intercepts_Quadratic.pg b/Contrib/Mizzou/College_Algebra/Graphing_Basics/Find_Intercepts_Quadratic.pg index d5b974a2dc..868d1a390d 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Basics/Find_Intercepts_Quadratic.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Basics/Find_Intercepts_Quadratic.pg @@ -12,12 +12,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "contextFraction.pl", @@ -31,7 +31,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Fraction-NoDecimals"); $A = non_zero_random(-7,7); @@ -88,21 +88,21 @@ Context("Fraction-NoDecimals"); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT Find the \(x\)-intercept(s) and \(y\)-intercept(s) of: \( $quad \). $PAR -\(x\)-intercept(s): \{ans_rule(20)\} +\(x\)-intercept(s): \{ans_rule(20)\} $BR -\(y\)-intercept(s): \{ans_rule(20)\} +\(y\)-intercept(s): \{ans_rule(20)\} END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($xints)->cmp(studentsMustReduceFractions=>1)); ANS(Compute($yints)->cmp(studentsMustReduceFractions=>1)); @@ -122,12 +122,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - $BBOLD Help: $EBOLD You must enter your answer as a point or a list of points. If there are multiple points, separate each one by a comma. \{AnswerFormatHelp("points", "Click here for help entering points.")\} + $BBOLD Help: $EBOLD You must enter your answer as a point or a list of points. If there are multiple points, separate each one by a comma. \{helpLink("points", "Click here for help entering points.")\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Basics/GraphInterceptsBothArbitrary.pg b/Contrib/Mizzou/College_Algebra/Graphing_Basics/GraphInterceptsBothArbitrary.pg index 5b9e1924fe..80b466e1a0 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Basics/GraphInterceptsBothArbitrary.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Basics/GraphInterceptsBothArbitrary.pg @@ -3,8 +3,8 @@ ## Intercepts are completely arbitrary. ##ENDDESCRIPTION -## DBsubject('Algebra') -## DBchapter('Coordinates and Graphs') +## DBsubject('Algebra') +## DBchapter('Coordinates and Graphs') ## DBsection('Lines') ## KEYWORDS('linear', 'x-intercepts', 'y-intercepts') ## Date('Summer 2012') @@ -27,14 +27,14 @@ loadMacros( "PGgraphmacros.pl", "MathObjects.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); TEXT(beginproblem()); $refreshCachedImages = 1; $showPartialCorrectAnswers = 1; -PeriodicRerandomization("3"); +PeriodicRerandomization("3"); ################################### @@ -90,9 +90,9 @@ $BCENTER \{ image( insertGraph($gr), width=>350, height=>350, tex_size=>500, extra_html_tags=>'alt="Click to enlarge."' ) \} $ECENTER $PAR -\(x\)-intercept: \{ ans_rule(20) \} +\(x\)-intercept: \{ ans_rule(20) \} $PAR -\(y\)-intercept: \{ ans_rule(20) \} +\(y\)-intercept: \{ ans_rule(20) \} END_TEXT if ($attempts_modp == 0 && $actualAttempts != 0) { @@ -105,7 +105,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{ AnswerFormatHelp("points", "Click here for help entering points as answers.") \} + ${BBOLD}Help:${EBOLD} \{ helpLink("points", "Click here for help entering points as answers.") \} $BR END_TEXT } diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Basics/GraphInterceptsNonOrigin.pg b/Contrib/Mizzou/College_Algebra/Graphing_Basics/GraphInterceptsNonOrigin.pg index 877df757ed..a626fcd066 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Basics/GraphInterceptsNonOrigin.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Basics/GraphInterceptsNonOrigin.pg @@ -3,8 +3,8 @@ ## The intercepts cannot be the origin. ##ENDDESCRIPTION -## DBsubject('Algebra') -## DBchapter('Coordinates and Graphs') +## DBsubject('Algebra') +## DBchapter('Coordinates and Graphs') ## DBsection('Lines') ## KEYWORDS('linear', 'x-intercepts', 'y-intercepts') ## Date('Summer 2012') @@ -27,7 +27,7 @@ loadMacros( "PGgraphmacros.pl", "MathObjects.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -84,9 +84,9 @@ $BCENTER \{ image( insertGraph($gr), width=>350, height=>350, tex_size=>500, extra_html_tags=>'alt="Click to enlarge."' ) \} $ECENTER $PAR -\(x\)-intercept: \{ ans_rule(20) \} +\(x\)-intercept: \{ ans_rule(20) \} $PAR -\(y\)-intercept: \{ ans_rule(20) \} +\(y\)-intercept: \{ ans_rule(20) \} END_TEXT if ($attempts_modp == 0 && $actualAttempts != 0) { @@ -99,7 +99,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{ AnswerFormatHelp("points", "Click here for help entering points as answers.") \} + ${BBOLD}Help:${EBOLD} \{ helpLink("points", "Click here for help entering points as answers.") \} $BR END_TEXT } diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Basics/PointGraph.pg b/Contrib/Mizzou/College_Algebra/Graphing_Basics/PointGraph.pg index ec222fba01..8eef5260cd 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Basics/PointGraph.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Basics/PointGraph.pg @@ -2,8 +2,8 @@ ## Draws five points and ask to determine one of them. ##ENDDESCRIPTION -## DBsubject('Algebra') -## DBchapter('Basic Algebra') +## DBsubject('Algebra') +## DBchapter('Basic Algebra') ## DBsection('Coordinate Geometry') ## KEYWORDS('point','points','graph') ## Date('Summer 2012') @@ -26,7 +26,7 @@ loadMacros( "PGgraphmacros.pl", "MathObjects.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "parserPopUp.pl", "PGcourse.pl" @@ -74,7 +74,7 @@ for ($i = 0; $i < 6; $i++) { if ($yVals[$j] == $yVals[$i]) { do {$yVals[$j] = random(-$gridSize+1,$gridSize-1,1)} while ($yVals[$j] == $yVals[$i]); } - } + } } } @letters = ("A","B","C","D","E"); @@ -82,18 +82,18 @@ for ($i = 0; $i < 5; $i++) { if ($xVals[$i] == 0 && $yVals[$i] == 0) { $pop[$i] = PopUp(["select", "QI", "QII", "QIII", "QIV", "x-axis", "y-axis", "origin"], "origin"); } elsif ($xVals[$i] == 0) { - $pop[$i] = PopUp(["select", "QI", "QII", "QIII", "QIV", "x-axis", "y-axis", "origin"], "y-axis"); + $pop[$i] = PopUp(["select", "QI", "QII", "QIII", "QIV", "x-axis", "y-axis", "origin"], "y-axis"); } elsif ($yVals[$i] == 0) { $pop[$i] = PopUp(["select", "QI", "QII", "QIII", "QIV", "x-axis", "y-axis", "origin"], "x-axis"); } elsif ($xVals[$i] > 0) { if ($yVals[$i] > 0) { - $pop[$i] = PopUp(["select", "QI", "QII", "QIII", "QIV", "x-axis", "y-axis", "origin"], "QI"); + $pop[$i] = PopUp(["select", "QI", "QII", "QIII", "QIV", "x-axis", "y-axis", "origin"], "QI"); } else { $pop[$i] = PopUp(["select", "QI", "QII", "QIII", "QIV", "x-axis", "y-axis", "origin"], "QIV"); } } elsif ($xVals[$i] < 0) { if ($yVals[$i] > 0) { - $pop[$i] = PopUp(["select", "QI", "QII", "QIII", "QIV", "x-axis", "y-axis", "origin"], "QII"); + $pop[$i] = PopUp(["select", "QI", "QII", "QIII", "QIV", "x-axis", "y-axis", "origin"], "QII"); } else { $pop[$i] = PopUp(["select", "QI", "QII", "QIII", "QIV", "x-axis", "y-axis", "origin"], "QIII"); } @@ -161,7 +161,7 @@ ${BBOLD}E:${EBOLD} Point - \($point[4]\), Location - \{$pop[4]->correct_ans()\} } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{ AnswerFormatHelp("points", "Click here for help entering points as answers.") \} + ${BBOLD}Help:${EBOLD} \{ helpLink("points", "Click here for help entering points as answers.") \} $BR END_TEXT } diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Exponential/Determine_Equation.pg b/Contrib/Mizzou/College_Algebra/Graphing_Exponential/Determine_Equation.pg index 08abc5fd26..4db9610f28 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Exponential/Determine_Equation.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Exponential/Determine_Equation.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -31,7 +31,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @bases = (2..10); @@ -188,24 +188,24 @@ $fig = image(insertGraph($graph), width=>$gsize, height=>$gsize, tex_size=>500 ) ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT Write an equation that represents the graph below by using transformations from \($dispeqn\). $PAR $BCENTER -\{ +\{ $fig \} -$ECENTER +$ECENTER $PAR Equation: \{ans_rule(25)\} END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($ans)->cmp()); @@ -223,12 +223,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("equations", "Click here for help entering equations.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("equations", "Click here for help entering equations.")\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Exponential/Find_All_Info_And_Graph_HShiftRefl.pg b/Contrib/Mizzou/College_Algebra/Graphing_Exponential/Find_All_Info_And_Graph_HShiftRefl.pg index ff9fe954a9..169d411b12 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Exponential/Find_All_Info_And_Graph_HShiftRefl.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Exponential/Find_All_Info_And_Graph_HShiftRefl.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -33,7 +33,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @bases = (2..10); @@ -95,7 +95,7 @@ if ($choice != exp(1) && $choice != 1/exp(1)) { $num = $num*((1/$choice)**(-$a)); } else { $den = $den*(($choice)**(-$a)); - } + } } elsif ($trans[3] != 1 && $a > 0) {# neg exponent if ($choice < 1) { $num = $num*((1/$choice)**($a)); @@ -126,7 +126,7 @@ if ($choice != exp(1) && $choice != 1/exp(1)) { $num = $num*((1/$choice)**(-$a)); } else { $den = $den*(($choice)**(-$a)); - } + } } elsif ($trans[3] != 1 && $a > 0) {# neg exponent if ($choice < 1) { $num = $num*((1/$choice)**($a)); @@ -835,12 +835,12 @@ $ans = $possans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -851,7 +851,7 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR Let \(f\) be the exponential function defined by $PAR @@ -872,7 +872,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($asym->cmp()); ANS(Compute($range)->cmp()); @@ -893,12 +893,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{AnswerFormatHelp("equations", "Click here for help entering equations")\}, \{AnswerFormatHelp("intervals", "click here for help entering intervals")\}, or \{AnswerFormatHelp("points", "click here for help entering points")\}. + ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{helpLink("equations", "Click here for help entering equations")\}, \{helpLink("intervals", "click here for help entering intervals")\}, or \{helpLink("points", "click here for help entering points")\}. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Exponential/Find_All_Info_And_Graph_HShift_VHRefl.pg b/Contrib/Mizzou/College_Algebra/Graphing_Exponential/Find_All_Info_And_Graph_HShift_VHRefl.pg index 7b0785a197..642f0f6d63 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Exponential/Find_All_Info_And_Graph_HShift_VHRefl.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Exponential/Find_All_Info_And_Graph_HShift_VHRefl.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -33,7 +33,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @bases = (2..10); @@ -95,7 +95,7 @@ if ($choice != exp(1) && $choice != 1/exp(1)) { $num = $num*((1/$choice)**(-$a)); } else { $den = $den*(($choice)**(-$a)); - } + } } elsif ($trans[3] != 1 && $a > 0) {# neg exponent if ($choice < 1) { $num = $num*((1/$choice)**($a)); @@ -126,7 +126,7 @@ if ($choice != exp(1) && $choice != 1/exp(1)) { $num = $num*((1/$choice)**(-$a)); } else { $den = $den*(($choice)**(-$a)); - } + } } elsif ($trans[3] != 1 && $a > 0) {# neg exponent if ($choice < 1) { $num = $num*((1/$choice)**($a)); @@ -835,12 +835,12 @@ $ans = $possans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -851,7 +851,7 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR Let \(f\) be the exponential function defined by $PAR @@ -872,7 +872,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($asym->cmp()); ANS(Compute($range)->cmp()); @@ -893,12 +893,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{AnswerFormatHelp("equations", "Click here for help entering equations")\}, \{AnswerFormatHelp("intervals", "click here for help entering intervals")\}, or \{AnswerFormatHelp("points", "click here for help entering points")\}. + ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{helpLink("equations", "Click here for help entering equations")\}, \{helpLink("intervals", "click here for help entering intervals")\}, or \{helpLink("points", "click here for help entering points")\}. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Exponential/Find_All_Info_And_Graph_HShift_VRefl.pg b/Contrib/Mizzou/College_Algebra/Graphing_Exponential/Find_All_Info_And_Graph_HShift_VRefl.pg index 3cf0c76fc9..81efed9839 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Exponential/Find_All_Info_And_Graph_HShift_VRefl.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Exponential/Find_All_Info_And_Graph_HShift_VRefl.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -33,7 +33,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @bases = (2..10); @@ -95,7 +95,7 @@ if ($choice != exp(1) && $choice != 1/exp(1)) { $num = $num*((1/$choice)**(-$a)); } else { $den = $den*(($choice)**(-$a)); - } + } } elsif ($trans[3] != 1 && $a > 0) {# neg exponent if ($choice < 1) { $num = $num*((1/$choice)**($a)); @@ -126,7 +126,7 @@ if ($choice != exp(1) && $choice != 1/exp(1)) { $num = $num*((1/$choice)**(-$a)); } else { $den = $den*(($choice)**(-$a)); - } + } } elsif ($trans[3] != 1 && $a > 0) {# neg exponent if ($choice < 1) { $num = $num*((1/$choice)**($a)); @@ -835,12 +835,12 @@ $ans = $possans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -851,7 +851,7 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR Let \(f\) be the exponential function defined by $PAR @@ -872,7 +872,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($asym->cmp()); ANS(Compute($range)->cmp()); @@ -893,12 +893,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{AnswerFormatHelp("equations", "Click here for help entering equations")\}, \{AnswerFormatHelp("intervals", "click here for help entering intervals")\}, or \{AnswerFormatHelp("points", "click here for help entering points")\}. + ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{helpLink("equations", "Click here for help entering equations")\}, \{helpLink("intervals", "click here for help entering intervals")\}, or \{helpLink("points", "click here for help entering points")\}. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Exponential/Find_All_Info_And_Graph_VHShift.pg b/Contrib/Mizzou/College_Algebra/Graphing_Exponential/Find_All_Info_And_Graph_VHShift.pg index d8003c885b..e3c9bb50af 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Exponential/Find_All_Info_And_Graph_VHShift.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Exponential/Find_All_Info_And_Graph_VHShift.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -33,7 +33,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @bases = (2..10); @@ -95,7 +95,7 @@ if ($choice != exp(1) && $choice != 1/exp(1)) { $num = $num*((1/$choice)**(-$a)); } else { $den = $den*(($choice)**(-$a)); - } + } } elsif ($trans[3] != 1 && $a > 0) {# neg exponent if ($choice < 1) { $num = $num*((1/$choice)**($a)); @@ -126,7 +126,7 @@ if ($choice != exp(1) && $choice != 1/exp(1)) { $num = $num*((1/$choice)**(-$a)); } else { $den = $den*(($choice)**(-$a)); - } + } } elsif ($trans[3] != 1 && $a > 0) {# neg exponent if ($choice < 1) { $num = $num*((1/$choice)**($a)); @@ -835,12 +835,12 @@ $ans = $possans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -851,7 +851,7 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR Let \(f\) be the exponential function defined by $PAR @@ -872,7 +872,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($asym->cmp()); ANS(Compute($range)->cmp()); @@ -893,12 +893,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{AnswerFormatHelp("equations", "Click here for help entering equations")\}, \{AnswerFormatHelp("intervals", "click here for help entering intervals")\}, or \{AnswerFormatHelp("points", "click here for help entering points")\}. + ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{helpLink("equations", "Click here for help entering equations")\}, \{helpLink("intervals", "click here for help entering intervals")\}, or \{helpLink("points", "click here for help entering points")\}. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Exponential/Find_All_Info_And_Graph_VHShift_HRefl.pg b/Contrib/Mizzou/College_Algebra/Graphing_Exponential/Find_All_Info_And_Graph_VHShift_HRefl.pg index ea10e9eebd..b5c45982d8 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Exponential/Find_All_Info_And_Graph_VHShift_HRefl.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Exponential/Find_All_Info_And_Graph_VHShift_HRefl.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -33,7 +33,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @bases = (2..10); @@ -95,7 +95,7 @@ if ($choice != exp(1) && $choice != 1/exp(1)) { $num = $num*((1/$choice)**(-$a)); } else { $den = $den*(($choice)**(-$a)); - } + } } elsif ($trans[3] != 1 && $a > 0) {# neg exponent if ($choice < 1) { $num = $num*((1/$choice)**($a)); @@ -126,7 +126,7 @@ if ($choice != exp(1) && $choice != 1/exp(1)) { $num = $num*((1/$choice)**(-$a)); } else { $den = $den*(($choice)**(-$a)); - } + } } elsif ($trans[3] != 1 && $a > 0) {# neg exponent if ($choice < 1) { $num = $num*((1/$choice)**($a)); @@ -835,12 +835,12 @@ $ans = $possans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -851,7 +851,7 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR Let \(f\) be the exponential function defined by $PAR @@ -872,7 +872,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($asym->cmp()); ANS(Compute($range)->cmp()); @@ -893,12 +893,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{AnswerFormatHelp("equations", "Click here for help entering equations")\}, \{AnswerFormatHelp("intervals", "click here for help entering intervals")\}, or \{AnswerFormatHelp("points", "click here for help entering points")\}. + ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{helpLink("equations", "Click here for help entering equations")\}, \{helpLink("intervals", "click here for help entering intervals")\}, or \{helpLink("points", "click here for help entering points")\}. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Exponential/Find_All_Info_And_Graph_VHShift_VHShift.pg b/Contrib/Mizzou/College_Algebra/Graphing_Exponential/Find_All_Info_And_Graph_VHShift_VHShift.pg index 326b7c2169..9cb75e4c81 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Exponential/Find_All_Info_And_Graph_VHShift_VHShift.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Exponential/Find_All_Info_And_Graph_VHShift_VHShift.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -33,7 +33,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @bases = (2..10); @@ -95,7 +95,7 @@ if ($choice != exp(1) && $choice != 1/exp(1)) { $num = $num*((1/$choice)**(-$a)); } else { $den = $den*(($choice)**(-$a)); - } + } } elsif ($trans[3] != 1 && $a > 0) {# neg exponent if ($choice < 1) { $num = $num*((1/$choice)**($a)); @@ -126,7 +126,7 @@ if ($choice != exp(1) && $choice != 1/exp(1)) { $num = $num*((1/$choice)**(-$a)); } else { $den = $den*(($choice)**(-$a)); - } + } } elsif ($trans[3] != 1 && $a > 0) {# neg exponent if ($choice < 1) { $num = $num*((1/$choice)**($a)); @@ -835,12 +835,12 @@ $ans = $possans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -851,7 +851,7 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR Let \(f\) be the exponential function defined by $PAR @@ -872,7 +872,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($asym->cmp()); ANS(Compute($range)->cmp()); @@ -893,12 +893,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{AnswerFormatHelp("equations", "Click here for help entering equations")\}, \{AnswerFormatHelp("intervals", "click here for help entering intervals")\}, or \{AnswerFormatHelp("points", "click here for help entering points")\}. + ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{helpLink("equations", "Click here for help entering equations")\}, \{helpLink("intervals", "click here for help entering intervals")\}, or \{helpLink("points", "click here for help entering points")\}. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Exponential/Find_All_Info_And_Graph_VHShift_VRefl.pg b/Contrib/Mizzou/College_Algebra/Graphing_Exponential/Find_All_Info_And_Graph_VHShift_VRefl.pg index 15f3ae140e..0a744d33e2 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Exponential/Find_All_Info_And_Graph_VHShift_VRefl.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Exponential/Find_All_Info_And_Graph_VHShift_VRefl.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -33,7 +33,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @bases = (2..10); @@ -95,7 +95,7 @@ if ($choice != exp(1) && $choice != 1/exp(1)) { $num = $num*((1/$choice)**(-$a)); } else { $den = $den*(($choice)**(-$a)); - } + } } elsif ($trans[3] != 1 && $a > 0) {# neg exponent if ($choice < 1) { $num = $num*((1/$choice)**($a)); @@ -126,7 +126,7 @@ if ($choice != exp(1) && $choice != 1/exp(1)) { $num = $num*((1/$choice)**(-$a)); } else { $den = $den*(($choice)**(-$a)); - } + } } elsif ($trans[3] != 1 && $a > 0) {# neg exponent if ($choice < 1) { $num = $num*((1/$choice)**($a)); @@ -835,12 +835,12 @@ $ans = $possans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -851,7 +851,7 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR Let \(f\) be the exponential function defined by $PAR @@ -872,7 +872,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($asym->cmp()); ANS(Compute($range)->cmp()); @@ -893,12 +893,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{AnswerFormatHelp("equations", "Click here for help entering equations")\}, \{AnswerFormatHelp("intervals", "click here for help entering intervals")\}, or \{AnswerFormatHelp("points", "click here for help entering points")\}. + ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{helpLink("equations", "Click here for help entering equations")\}, \{helpLink("intervals", "click here for help entering intervals")\}, or \{helpLink("points", "click here for help entering points")\}. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Exponential/Find_All_Info_And_Graph_VRefl_HRefl.pg b/Contrib/Mizzou/College_Algebra/Graphing_Exponential/Find_All_Info_And_Graph_VRefl_HRefl.pg index 37afe4e7c4..aaf52b1e0c 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Exponential/Find_All_Info_And_Graph_VRefl_HRefl.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Exponential/Find_All_Info_And_Graph_VRefl_HRefl.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -33,7 +33,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @bases = (2..10); @@ -95,7 +95,7 @@ if ($choice != exp(1) && $choice != 1/exp(1)) { $num = $num*((1/$choice)**(-$a)); } else { $den = $den*(($choice)**(-$a)); - } + } } elsif ($trans[3] != 1 && $a > 0) {# neg exponent if ($choice < 1) { $num = $num*((1/$choice)**($a)); @@ -126,7 +126,7 @@ if ($choice != exp(1) && $choice != 1/exp(1)) { $num = $num*((1/$choice)**(-$a)); } else { $den = $den*(($choice)**(-$a)); - } + } } elsif ($trans[3] != 1 && $a > 0) {# neg exponent if ($choice < 1) { $num = $num*((1/$choice)**($a)); @@ -835,12 +835,12 @@ $ans = $possans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -851,7 +851,7 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR Let \(f\) be the exponential function defined by $PAR @@ -872,7 +872,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($asym->cmp()); ANS(Compute($range)->cmp()); @@ -893,12 +893,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{AnswerFormatHelp("equations", "Click here for help entering equations")\}, \{AnswerFormatHelp("intervals", "click here for help entering intervals")\}, or \{AnswerFormatHelp("points", "click here for help entering points")\}. + ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{helpLink("equations", "Click here for help entering equations")\}, \{helpLink("intervals", "click here for help entering intervals")\}, or \{helpLink("points", "click here for help entering points")\}. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Exponential/Find_All_Info_And_Graph_VShiftRefl.pg b/Contrib/Mizzou/College_Algebra/Graphing_Exponential/Find_All_Info_And_Graph_VShiftRefl.pg index f8df3ad519..c4cffe24fa 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Exponential/Find_All_Info_And_Graph_VShiftRefl.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Exponential/Find_All_Info_And_Graph_VShiftRefl.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -33,7 +33,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @bases = (2..10); @@ -95,7 +95,7 @@ if ($choice != exp(1) && $choice != 1/exp(1)) { $num = $num*((1/$choice)**(-$a)); } else { $den = $den*(($choice)**(-$a)); - } + } } elsif ($trans[3] != 1 && $a > 0) {# neg exponent if ($choice < 1) { $num = $num*((1/$choice)**($a)); @@ -126,7 +126,7 @@ if ($choice != exp(1) && $choice != 1/exp(1)) { $num = $num*((1/$choice)**(-$a)); } else { $den = $den*(($choice)**(-$a)); - } + } } elsif ($trans[3] != 1 && $a > 0) {# neg exponent if ($choice < 1) { $num = $num*((1/$choice)**($a)); @@ -835,12 +835,12 @@ $ans = $possans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -851,7 +851,7 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR Let \(f\) be the exponential function defined by $PAR @@ -872,7 +872,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($asym->cmp()); ANS(Compute($range)->cmp()); @@ -893,12 +893,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{AnswerFormatHelp("equations", "Click here for help entering equations")\}, \{AnswerFormatHelp("intervals", "click here for help entering intervals")\}, or \{AnswerFormatHelp("points", "click here for help entering points")\}. + ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{helpLink("equations", "Click here for help entering equations")\}, \{helpLink("intervals", "click here for help entering intervals")\}, or \{helpLink("points", "click here for help entering points")\}. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Exponential/Find_All_Info_And_Graph_VShift_HRefl.pg b/Contrib/Mizzou/College_Algebra/Graphing_Exponential/Find_All_Info_And_Graph_VShift_HRefl.pg index bbbd62bee0..42b2e4abf3 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Exponential/Find_All_Info_And_Graph_VShift_HRefl.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Exponential/Find_All_Info_And_Graph_VShift_HRefl.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -33,7 +33,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @bases = (2..10); @@ -95,7 +95,7 @@ if ($choice != exp(1) && $choice != 1/exp(1)) { $num = $num*((1/$choice)**(-$a)); } else { $den = $den*(($choice)**(-$a)); - } + } } elsif ($trans[3] != 1 && $a > 0) {# neg exponent if ($choice < 1) { $num = $num*((1/$choice)**($a)); @@ -126,7 +126,7 @@ if ($choice != exp(1) && $choice != 1/exp(1)) { $num = $num*((1/$choice)**(-$a)); } else { $den = $den*(($choice)**(-$a)); - } + } } elsif ($trans[3] != 1 && $a > 0) {# neg exponent if ($choice < 1) { $num = $num*((1/$choice)**($a)); @@ -835,12 +835,12 @@ $ans = $possans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -851,7 +851,7 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR Let \(f\) be the exponential function defined by $PAR @@ -872,7 +872,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($asym->cmp()); ANS(Compute($range)->cmp()); @@ -893,12 +893,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{AnswerFormatHelp("equations", "Click here for help entering equations")\}, \{AnswerFormatHelp("intervals", "click here for help entering intervals")\}, or \{AnswerFormatHelp("points", "click here for help entering points")\}. + ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{helpLink("equations", "Click here for help entering equations")\}, \{helpLink("intervals", "click here for help entering intervals")\}, or \{helpLink("points", "click here for help entering points")\}. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Exponential/Find_All_Info_And_Graph_VShift_VHRefl.pg b/Contrib/Mizzou/College_Algebra/Graphing_Exponential/Find_All_Info_And_Graph_VShift_VHRefl.pg index 2268398785..7fae96f7e7 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Exponential/Find_All_Info_And_Graph_VShift_VHRefl.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Exponential/Find_All_Info_And_Graph_VShift_VHRefl.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -33,7 +33,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @bases = (2..10); @@ -95,7 +95,7 @@ if ($choice != exp(1) && $choice != 1/exp(1)) { $num = $num*((1/$choice)**(-$a)); } else { $den = $den*(($choice)**(-$a)); - } + } } elsif ($trans[3] != 1 && $a > 0) {# neg exponent if ($choice < 1) { $num = $num*((1/$choice)**($a)); @@ -126,7 +126,7 @@ if ($choice != exp(1) && $choice != 1/exp(1)) { $num = $num*((1/$choice)**(-$a)); } else { $den = $den*(($choice)**(-$a)); - } + } } elsif ($trans[3] != 1 && $a > 0) {# neg exponent if ($choice < 1) { $num = $num*((1/$choice)**($a)); @@ -835,12 +835,12 @@ $ans = $possans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -851,7 +851,7 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR Let \(f\) be the exponential function defined by $PAR @@ -872,7 +872,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($asym->cmp()); ANS(Compute($range)->cmp()); @@ -893,12 +893,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{AnswerFormatHelp("equations", "Click here for help entering equations")\}, \{AnswerFormatHelp("intervals", "click here for help entering intervals")\}, or \{AnswerFormatHelp("points", "click here for help entering points")\}. + ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{helpLink("equations", "Click here for help entering equations")\}, \{helpLink("intervals", "click here for help entering intervals")\}, or \{helpLink("points", "click here for help entering points")\}. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Linear/GraphInterceptsBothArbitrary.pg b/Contrib/Mizzou/College_Algebra/Graphing_Linear/GraphInterceptsBothArbitrary.pg index 904f758680..23dca155ea 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Linear/GraphInterceptsBothArbitrary.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Linear/GraphInterceptsBothArbitrary.pg @@ -2,8 +2,8 @@ ## Draws a line and asks for the x and y intercepts ##ENDDESCRIPTION -## DBsubject('Algebra') -## DBchapter('Coordinates and Graphs') +## DBsubject('Algebra') +## DBchapter('Coordinates and Graphs') ## DBsection('Lines') ## KEYWORDS('linear', 'x-intercepts', 'y-intercepts') ## Date('Summer 2012') @@ -26,7 +26,7 @@ loadMacros( "PGgraphmacros.pl", "MathObjects.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -89,9 +89,9 @@ $BCENTER \{ image( insertGraph($gr), width=>350, height=>350, tex_size=>500, extra_html_tags=>'alt="Click to enlarge."' ) \} $ECENTER $PAR -\(x\)-intercept: \{ ans_rule(20) \} \{ AnswerFormatHelp("points") \} +\(x\)-intercept: \{ ans_rule(20) \} \{ helpLink("points") \} $PAR -\(y\)-intercept: \{ ans_rule(20) \} \{ AnswerFormatHelp("points") \} +\(y\)-intercept: \{ ans_rule(20) \} \{ helpLink("points") \} $PAR END_TEXT Context()->normalStrings; diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Linear/Graph_Linear_Find_Equation_Always_H.pg b/Contrib/Mizzou/College_Algebra/Graphing_Linear/Graph_Linear_Find_Equation_Always_H.pg index badb8aee84..e7c70d389e 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Linear/Graph_Linear_Find_Equation_Always_H.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Linear/Graph_Linear_Find_Equation_Always_H.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Plots a line through arbitrary points and asks the student the give the +# Plots a line through arbitrary points and asks the student the give the # equation of the line passing through these points. # The line is completely arbitrary. # ENDDESCRIPTION @@ -13,12 +13,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = random(6,10,1); @@ -91,7 +91,7 @@ $line = Formula("y = $yCoordOne")->reduce; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -100,15 +100,15 @@ Write an equation for the line shown. $PAR $BCENTER \{ image( insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>800 ) \} -$ECENTER +$ECENTER $PAR -Equation: \{ans_rule(20)\} +Equation: \{ans_rule(20)\} END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### $texAnswer = "\(y = $yCoordOne\)"; ANS($line->cmp(studentsMustReduceFractions => 1)); @@ -131,7 +131,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Linear/Graph_Linear_Find_Equation_Always_V.pg b/Contrib/Mizzou/College_Algebra/Graphing_Linear/Graph_Linear_Find_Equation_Always_V.pg index 01e2fc14e0..f227540343 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Linear/Graph_Linear_Find_Equation_Always_V.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Linear/Graph_Linear_Find_Equation_Always_V.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Plots a line through arbitrary points and asks the student the give the +# Plots a line through arbitrary points and asks the student the give the # equation of the line passing through these points. # The line is always vertical. # ENDDESCRIPTION @@ -13,12 +13,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = random(6,10,1); @@ -87,11 +87,11 @@ $graph->stamps(closed_circle($xCoordTwo, $yCoordTwo, 'blue')); # compute the line, this will be used in answer check Context("Fraction-NoDecimals")->variables->are(x => 'Real', y => 'Real'); parser::Assignment->Allow; -$line = Formula("x = $xCoordOne")->reduce; +$line = Formula("x = $xCoordOne")->reduce; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -100,15 +100,15 @@ Write an equation for the line shown. $PAR $BCENTER \{ image( insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>800 ) \} -$ECENTER +$ECENTER $PAR -Equation: \{ans_rule(20)\} +Equation: \{ans_rule(20)\} END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### $texAnswer = "\(x = $xCoordOne\)"; ANS($line->cmp()); @@ -131,7 +131,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Linear/Graph_Linear_Find_Equation_Arbitrary.pg b/Contrib/Mizzou/College_Algebra/Graphing_Linear/Graph_Linear_Find_Equation_Arbitrary.pg index e43edfdb28..ef8d4a834d 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Linear/Graph_Linear_Find_Equation_Arbitrary.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Linear/Graph_Linear_Find_Equation_Arbitrary.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Plots a line through arbitrary points and asks the student the give the +# Plots a line through arbitrary points and asks the student the give the # equation of the line passing through these points. # The line is completely arbitrary. # ENDDESCRIPTION @@ -13,12 +13,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = random(6,10,1); @@ -136,7 +136,7 @@ $graph->stamps(closed_circle($xCoordTwo, $yCoordTwo, 'blue')); Context("Fraction-NoDecimals")->variables->are(x => 'Real', y => 'Real'); parser::Assignment->Allow; if ($vOrHLine == 1) { - $line = Formula("x = $xCoordOne")->reduce; + $line = Formula("x = $xCoordOne")->reduce; } else { $m = Compute("($yCoordOne - $yCoordTwo)/($xCoordOne - $xCoordTwo)"); $b = $yCoordOne - $m*$xCoordOne; @@ -145,7 +145,7 @@ if ($vOrHLine == 1) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -154,15 +154,15 @@ Write an equation for the line shown. $PAR $BCENTER \{ image( insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>800 ) \} -$ECENTER +$ECENTER $PAR -Equation: \{ans_rule(20)\} +Equation: \{ans_rule(20)\} END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### if ($vOrHLine == 0) { $texAnswer = "\(y = $yCoordOne\)"; @@ -172,18 +172,18 @@ if ($vOrHLine == 0) { ANS($line->cmp()); } else { $texAnswer = "\(y = $m x + $b\)"; - if ($m == 1) { + if ($m == 1) { if ($b == 0) { $texAnswer = "\( y = x \)"; } else { $texAnswer = "\( y = x + $b \)"; - } - } elsif ($m == -1) { + } + } elsif ($m == -1) { if ($b == 0) { $texAnswer = "\( y = -x \)"; } else { $texAnswer = "\( y = -x + $b \)"; - } + } } ANS($line->cmp(studentsMustReduceFractions => 1)); } @@ -206,7 +206,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Linear/Graph_Linear_Find_Equation_No_V_No_H.pg b/Contrib/Mizzou/College_Algebra/Graphing_Linear/Graph_Linear_Find_Equation_No_V_No_H.pg index fa149bce67..71a3b1c6ee 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Linear/Graph_Linear_Find_Equation_No_V_No_H.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Linear/Graph_Linear_Find_Equation_No_V_No_H.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Plots a line through arbitrary points and asks the student the give the +# Plots a line through arbitrary points and asks the student the give the # equation of the line passing through these points. # The line is never horizontal nor vertical. # ENDDESCRIPTION @@ -13,12 +13,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = random(6,10,1); @@ -119,7 +119,7 @@ $line = Formula("y = $m x + $b")->reduce; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -128,29 +128,29 @@ Write an equation for the line shown. $PAR $BCENTER \{ image( insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>800 ) \} -$ECENTER +$ECENTER $PAR -Equation: \{ans_rule(20)\} +Equation: \{ans_rule(20)\} END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### $texAnswer = "\(y = $m x + $b\)"; -if ($m == 1) { +if ($m == 1) { if ($b == 0) { $texAnswer = "\( y = x \)"; } else { $texAnswer = "\( y = x + $b \)"; - } -} elsif ($m == -1) { + } +} elsif ($m == -1) { if ($b == 0) { $texAnswer = "\( y = -x \)"; } else { $texAnswer = "\( y = -x + $b \)"; - } + } } ANS($line->cmp(studentsMustReduceFractions => 1)); @@ -172,7 +172,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Linear/Graph_Linear_Find_Slope.pg b/Contrib/Mizzou/College_Algebra/Graphing_Linear/Graph_Linear_Find_Slope.pg index 760635728b..79b458e03a 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Linear/Graph_Linear_Find_Slope.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Linear/Graph_Linear_Find_Slope.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -31,7 +31,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = random(6,10,1); @@ -144,7 +144,7 @@ $graph->stamps(closed_circle($xCoordTwo, $yCoordTwo, 'blue')); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -153,14 +153,14 @@ Find the slope of the line if it exists or write ${BBOLD}undefined${EBOLD} if th $PAR $BCENTER \{ image( insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>800 ) \} -$ECENTER +$ECENTER $PAR -\(m = \) \{ans_rule(20)\} +\(m = \) \{ans_rule(20)\} END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### if ($vOrHLine == 1) { $texAnswer = "The slope is undefined."; @@ -173,7 +173,7 @@ if ($vOrHLine == 1) { ########################################################################### # use PeriodicRerandomization to write the answer and generate a new -# version of the problem +# version of the problem ########################################################################### if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT @@ -188,7 +188,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Linear/Graph_Linear_Find_Slope_Always_H.pg b/Contrib/Mizzou/College_Algebra/Graphing_Linear/Graph_Linear_Find_Slope_Always_H.pg index 3c026fdf01..2538b3b1ea 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Linear/Graph_Linear_Find_Slope_Always_H.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Linear/Graph_Linear_Find_Slope_Always_H.pg @@ -12,12 +12,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -32,7 +32,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = random(6,10,1); @@ -90,7 +90,7 @@ $m = Compute("0"); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -99,15 +99,15 @@ Find the slope of the line if it exists or write ${BBOLD}undefined${EBOLD} if th $PAR $BCENTER \{ image( insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>800 ) \} -$ECENTER +$ECENTER $PAR -\(m = \) \{ans_rule(20)\} +\(m = \) \{ans_rule(20)\} END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### $texAnswer = "\(m = $m\)"; ANS($m->cmp(studentsMustReduceFractions => 1)); @@ -130,7 +130,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Linear/Graph_Linear_Find_Slope_Always_V.pg b/Contrib/Mizzou/College_Algebra/Graphing_Linear/Graph_Linear_Find_Slope_Always_V.pg index 4f7482d8b9..2647204a0b 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Linear/Graph_Linear_Find_Slope_Always_V.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Linear/Graph_Linear_Find_Slope_Always_V.pg @@ -12,12 +12,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -32,7 +32,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = random(6,10,1); @@ -90,7 +90,7 @@ $m = String("undefined"); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -99,15 +99,15 @@ Find the slope of the line if it exists or write ${BBOLD}undefined${EBOLD} if th $PAR $BCENTER \{ image( insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>800 ) \} -$ECENTER +$ECENTER $PAR -\(m = \) \{ans_rule(20)\} +\(m = \) \{ans_rule(20)\} END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### $texAnswer = "The slope is undefined."; ANS($m->cmp($studentsMustReduceFractions => 1)); @@ -130,7 +130,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Linear/Graph_Linear_Find_Slope_Arbitrary.pg b/Contrib/Mizzou/College_Algebra/Graphing_Linear/Graph_Linear_Find_Slope_Arbitrary.pg index fd36dda4e3..4d2fc0fa13 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Linear/Graph_Linear_Find_Slope_Arbitrary.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Linear/Graph_Linear_Find_Slope_Arbitrary.pg @@ -12,12 +12,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -32,7 +32,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = random(6,10,1); @@ -144,7 +144,7 @@ if ($vOrHLine == 1) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -153,15 +153,15 @@ Find the slope of the line if it exists or write ${BBOLD}undefined${EBOLD} if th $PAR $BCENTER \{ image( insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>800 ) \} -$ECENTER +$ECENTER $PAR -\(m = \) \{ans_rule(20)\} +\(m = \) \{ans_rule(20)\} END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### if ($vOrHLine == 1) { $texAnswer = "The slope is undefined."; @@ -189,7 +189,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Linear/Graph_Linear_Find_Slope_No_V_No_H.pg b/Contrib/Mizzou/College_Algebra/Graphing_Linear/Graph_Linear_Find_Slope_No_V_No_H.pg index 8cebdf7d42..020985ad63 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Linear/Graph_Linear_Find_Slope_No_V_No_H.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Linear/Graph_Linear_Find_Slope_No_V_No_H.pg @@ -12,12 +12,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -32,7 +32,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = random(6,10,1); @@ -116,7 +116,7 @@ $m = Compute("$num/$den")->reduce; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -125,15 +125,15 @@ Find the slope of the line if it exists or write ${BBOLD}undefined${EBOLD} if th $PAR $BCENTER \{ image( insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>800 ) \} -$ECENTER +$ECENTER $PAR -\(m = \) \{ans_rule(20)\} +\(m = \) \{ans_rule(20)\} END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### $texAnswer = "\(m = $m\)"; ANS($m->cmp(studentsMustReduceFractions => 1)); @@ -156,7 +156,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Logarithmic/Find_All_Info_And_Graph_HShiftRefl.pg b/Contrib/Mizzou/College_Algebra/Graphing_Logarithmic/Find_All_Info_And_Graph_HShiftRefl.pg index d1f6b62330..49463197f4 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Logarithmic/Find_All_Info_And_Graph_HShiftRefl.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Logarithmic/Find_All_Info_And_Graph_HShiftRefl.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -33,7 +33,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @bases = (2..10); @@ -605,12 +605,12 @@ $ans = $possans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -621,7 +621,7 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR Let \(f\) be the exponential function defined by $PAR @@ -640,7 +640,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($asym->cmp()); ANS(Compute($domain)->cmp()); @@ -660,12 +660,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{AnswerFormatHelp("equations", "Click here for help entering equations")\}, \{AnswerFormatHelp("intervals", "click here for help entering intervals")\}, or \{AnswerFormatHelp("points", "click here for help entering points")\}. + ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{helpLink("equations", "Click here for help entering equations")\}, \{helpLink("intervals", "click here for help entering intervals")\}, or \{helpLink("points", "click here for help entering points")\}. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Logarithmic/Find_All_Info_And_Graph_HShift_VHRefl.pg b/Contrib/Mizzou/College_Algebra/Graphing_Logarithmic/Find_All_Info_And_Graph_HShift_VHRefl.pg index b1c5221a30..ee2ff19b89 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Logarithmic/Find_All_Info_And_Graph_HShift_VHRefl.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Logarithmic/Find_All_Info_And_Graph_HShift_VHRefl.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -33,7 +33,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @bases = (2..10); @@ -605,12 +605,12 @@ $ans = $possans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -621,7 +621,7 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR Let \(f\) be the exponential function defined by $PAR @@ -640,7 +640,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($asym->cmp()); ANS(Compute($domain)->cmp()); @@ -660,12 +660,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{AnswerFormatHelp("equations", "Click here for help entering equations")\}, \{AnswerFormatHelp("intervals", "click here for help entering intervals")\}, or \{AnswerFormatHelp("points", "click here for help entering points")\}. + ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{helpLink("equations", "Click here for help entering equations")\}, \{helpLink("intervals", "click here for help entering intervals")\}, or \{helpLink("points", "click here for help entering points")\}. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Logarithmic/Find_All_Info_And_Graph_HShift_VRefl.pg b/Contrib/Mizzou/College_Algebra/Graphing_Logarithmic/Find_All_Info_And_Graph_HShift_VRefl.pg index 3c2cdb4eb8..46eb180da3 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Logarithmic/Find_All_Info_And_Graph_HShift_VRefl.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Logarithmic/Find_All_Info_And_Graph_HShift_VRefl.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -33,7 +33,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @bases = (2..10); @@ -605,12 +605,12 @@ $ans = $possans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -621,7 +621,7 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR Let \(f\) be the exponential function defined by $PAR @@ -640,7 +640,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($asym->cmp()); ANS(Compute($domain)->cmp()); @@ -660,12 +660,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{AnswerFormatHelp("equations", "Click here for help entering equations")\}, \{AnswerFormatHelp("intervals", "click here for help entering intervals")\}, or \{AnswerFormatHelp("points", "click here for help entering points")\}. + ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{helpLink("equations", "Click here for help entering equations")\}, \{helpLink("intervals", "click here for help entering intervals")\}, or \{helpLink("points", "click here for help entering points")\}. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Logarithmic/Find_All_Info_And_Graph_VHShift.pg b/Contrib/Mizzou/College_Algebra/Graphing_Logarithmic/Find_All_Info_And_Graph_VHShift.pg index fb088b4e45..d50a82f288 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Logarithmic/Find_All_Info_And_Graph_VHShift.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Logarithmic/Find_All_Info_And_Graph_VHShift.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -33,7 +33,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @bases = (2..10); @@ -605,12 +605,12 @@ $ans = $possans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -621,7 +621,7 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR Let \(f\) be the exponential function defined by $PAR @@ -640,7 +640,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($asym->cmp()); ANS(Compute($domain)->cmp()); @@ -660,12 +660,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{AnswerFormatHelp("equations", "Click here for help entering equations")\}, \{AnswerFormatHelp("intervals", "click here for help entering intervals")\}, or \{AnswerFormatHelp("points", "click here for help entering points")\}. + ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{helpLink("equations", "Click here for help entering equations")\}, \{helpLink("intervals", "click here for help entering intervals")\}, or \{helpLink("points", "click here for help entering points")\}. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Logarithmic/Find_All_Info_And_Graph_VHShift_HRefl.pg b/Contrib/Mizzou/College_Algebra/Graphing_Logarithmic/Find_All_Info_And_Graph_VHShift_HRefl.pg index b83adebdac..301a9f0b37 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Logarithmic/Find_All_Info_And_Graph_VHShift_HRefl.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Logarithmic/Find_All_Info_And_Graph_VHShift_HRefl.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -33,7 +33,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @bases = (2..10); @@ -605,12 +605,12 @@ $ans = $possans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -621,7 +621,7 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR Let \(f\) be the exponential function defined by $PAR @@ -640,7 +640,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($asym->cmp()); ANS(Compute($domain)->cmp()); @@ -660,12 +660,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{AnswerFormatHelp("equations", "Click here for help entering equations")\}, \{AnswerFormatHelp("intervals", "click here for help entering intervals")\}, or \{AnswerFormatHelp("points", "click here for help entering points")\}. + ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{helpLink("equations", "Click here for help entering equations")\}, \{helpLink("intervals", "click here for help entering intervals")\}, or \{helpLink("points", "click here for help entering points")\}. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Logarithmic/Find_All_Info_And_Graph_VHShift_VHShift.pg b/Contrib/Mizzou/College_Algebra/Graphing_Logarithmic/Find_All_Info_And_Graph_VHShift_VHShift.pg index ca55e874ad..b81cee7fdd 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Logarithmic/Find_All_Info_And_Graph_VHShift_VHShift.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Logarithmic/Find_All_Info_And_Graph_VHShift_VHShift.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -33,7 +33,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @bases = (2..10); @@ -605,12 +605,12 @@ $ans = $possans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -621,7 +621,7 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR Let \(f\) be the exponential function defined by $PAR @@ -640,7 +640,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($asym->cmp()); ANS(Compute($domain)->cmp()); @@ -660,12 +660,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{AnswerFormatHelp("equations", "Click here for help entering equations")\}, \{AnswerFormatHelp("intervals", "click here for help entering intervals")\}, or \{AnswerFormatHelp("points", "click here for help entering points")\}. + ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{helpLink("equations", "Click here for help entering equations")\}, \{helpLink("intervals", "click here for help entering intervals")\}, or \{helpLink("points", "click here for help entering points")\}. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Logarithmic/Find_All_Info_And_Graph_VHShift_VRefl.pg b/Contrib/Mizzou/College_Algebra/Graphing_Logarithmic/Find_All_Info_And_Graph_VHShift_VRefl.pg index f74adc080d..a8301e113f 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Logarithmic/Find_All_Info_And_Graph_VHShift_VRefl.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Logarithmic/Find_All_Info_And_Graph_VHShift_VRefl.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -33,7 +33,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @bases = (2..10); @@ -605,12 +605,12 @@ $ans = $possans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -621,7 +621,7 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR Let \(f\) be the exponential function defined by $PAR @@ -640,7 +640,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($asym->cmp()); ANS(Compute($domain)->cmp()); @@ -660,12 +660,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{AnswerFormatHelp("equations", "Click here for help entering equations")\}, \{AnswerFormatHelp("intervals", "click here for help entering intervals")\}, or \{AnswerFormatHelp("points", "click here for help entering points")\}. + ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{helpLink("equations", "Click here for help entering equations")\}, \{helpLink("intervals", "click here for help entering intervals")\}, or \{helpLink("points", "click here for help entering points")\}. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Logarithmic/Find_All_Info_And_Graph_VRefl_HRefl.pg b/Contrib/Mizzou/College_Algebra/Graphing_Logarithmic/Find_All_Info_And_Graph_VRefl_HRefl.pg index 2699cd0219..e360fe10af 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Logarithmic/Find_All_Info_And_Graph_VRefl_HRefl.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Logarithmic/Find_All_Info_And_Graph_VRefl_HRefl.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -33,7 +33,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @bases = (2..10); @@ -605,12 +605,12 @@ $ans = $possans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -621,7 +621,7 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR Let \(f\) be the exponential function defined by $PAR @@ -640,7 +640,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($asym->cmp()); ANS(Compute($domain)->cmp()); @@ -660,12 +660,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{AnswerFormatHelp("equations", "Click here for help entering equations")\}, \{AnswerFormatHelp("intervals", "click here for help entering intervals")\}, or \{AnswerFormatHelp("points", "click here for help entering points")\}. + ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{helpLink("equations", "Click here for help entering equations")\}, \{helpLink("intervals", "click here for help entering intervals")\}, or \{helpLink("points", "click here for help entering points")\}. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Logarithmic/Find_All_Info_And_Graph_VShiftRefl.pg b/Contrib/Mizzou/College_Algebra/Graphing_Logarithmic/Find_All_Info_And_Graph_VShiftRefl.pg index 72505a366f..b66a3ddfbd 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Logarithmic/Find_All_Info_And_Graph_VShiftRefl.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Logarithmic/Find_All_Info_And_Graph_VShiftRefl.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -33,7 +33,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @bases = (2..10); @@ -605,12 +605,12 @@ $ans = $possans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -621,7 +621,7 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR Let \(f\) be the exponential function defined by $PAR @@ -640,7 +640,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($asym->cmp()); ANS(Compute($domain)->cmp()); @@ -660,12 +660,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{AnswerFormatHelp("equations", "Click here for help entering equations")\}, \{AnswerFormatHelp("intervals", "click here for help entering intervals")\}, or \{AnswerFormatHelp("points", "click here for help entering points")\}. + ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{helpLink("equations", "Click here for help entering equations")\}, \{helpLink("intervals", "click here for help entering intervals")\}, or \{helpLink("points", "click here for help entering points")\}. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Logarithmic/Find_All_Info_And_Graph_VShift_HRefl.pg b/Contrib/Mizzou/College_Algebra/Graphing_Logarithmic/Find_All_Info_And_Graph_VShift_HRefl.pg index f0aafcb371..4abed67c2e 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Logarithmic/Find_All_Info_And_Graph_VShift_HRefl.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Logarithmic/Find_All_Info_And_Graph_VShift_HRefl.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -33,7 +33,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @bases = (2..10); @@ -605,12 +605,12 @@ $ans = $possans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -621,7 +621,7 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR Let \(f\) be the exponential function defined by $PAR @@ -640,7 +640,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($asym->cmp()); ANS(Compute($domain)->cmp()); @@ -660,12 +660,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{AnswerFormatHelp("equations", "Click here for help entering equations")\}, \{AnswerFormatHelp("intervals", "click here for help entering intervals")\}, or \{AnswerFormatHelp("points", "click here for help entering points")\}. + ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{helpLink("equations", "Click here for help entering equations")\}, \{helpLink("intervals", "click here for help entering intervals")\}, or \{helpLink("points", "click here for help entering points")\}. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Logarithmic/Find_All_Info_And_Graph_VShift_VHRefl.pg b/Contrib/Mizzou/College_Algebra/Graphing_Logarithmic/Find_All_Info_And_Graph_VShift_VHRefl.pg index fd83e57cd1..8b8b8e6cee 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Logarithmic/Find_All_Info_And_Graph_VShift_VHRefl.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Logarithmic/Find_All_Info_And_Graph_VShift_VHRefl.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -33,7 +33,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @bases = (2..10); @@ -605,12 +605,12 @@ $ans = $possans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -621,7 +621,7 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR Let \(f\) be the exponential function defined by $PAR @@ -640,7 +640,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($asym->cmp()); ANS(Compute($domain)->cmp()); @@ -660,12 +660,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{AnswerFormatHelp("equations", "Click here for help entering equations")\}, \{AnswerFormatHelp("intervals", "click here for help entering intervals")\}, or \{AnswerFormatHelp("points", "click here for help entering points")\}. + ${BBOLD}Help:${EBOLD} You may click a graph to enlarge it. \{helpLink("equations", "Click here for help entering equations")\}, \{helpLink("intervals", "click here for help entering intervals")\}, or \{helpLink("points", "click here for help entering points")\}. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Polynomials/Find_Factored_Form_From_Graph.pg b/Contrib/Mizzou/College_Algebra/Graphing_Polynomials/Find_Factored_Form_From_Graph.pg index 52ec4ee134..a6ae36c48d 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Polynomials/Find_Factored_Form_From_Graph.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Polynomials/Find_Factored_Form_From_Graph.pg @@ -13,12 +13,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -33,7 +33,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $c1 = random(3,5); @@ -208,7 +208,7 @@ if ($c1 == 4) { $z3 = 0; $z4 = 0; } elsif ($c3 == 3) { - # setting $num and $den here solves an issue brought + # setting $num and $den here solves an issue brought # up by a student $a = 1; $z1 = 4; @@ -347,7 +347,7 @@ if ($c1 == 4) { if ($z1 == $z2) { $dispans = ($dispans)."(x-$z1)^2"; } else { - $dispans = ($dispans)."(x-$z1)(x-$z2)"; + $dispans = ($dispans)."(x-$z1)(x-$z2)"; } } elsif ($z4 == 0) { $dispans = ($dispans)."x"; @@ -548,7 +548,7 @@ if ($c1 == 5) { if ($z1 == $z2) { $dispans = ($dispans)."(x-$z1)^2(x-$z3)"; } else { - $dispans = ($dispans)."(x-$z1)(x-$z2)(x-$z3)"; + $dispans = ($dispans)."(x-$z1)(x-$z2)(x-$z3)"; } } elsif ($z5 == 0) { $dispans = ($dispans)."x"; @@ -577,7 +577,7 @@ if ($c1 == 5) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -585,7 +585,7 @@ BEGIN_TEXT $PAR $BCENTER \{ image($imgname, width=>$width*3/5, height=>$height*3/5, tex_size=>300 ); \} -$ECENTER +$ECENTER $PAR Determine the equation of the polynomial, \(f(x)\), of minimum degree whose graph is shown above. Write your answer in factored form. @@ -595,7 +595,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($ans)->cmp()); @@ -613,12 +613,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("formulas", "Click here for help entering formulas.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("formulas", "Click here for help entering formulas.")\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Polynomials/Find_Factored_Form_From_Graph_Deg_3.pg b/Contrib/Mizzou/College_Algebra/Graphing_Polynomials/Find_Factored_Form_From_Graph_Deg_3.pg index aa8e192909..7ed7bbe0b9 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Polynomials/Find_Factored_Form_From_Graph_Deg_3.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Polynomials/Find_Factored_Form_From_Graph_Deg_3.pg @@ -13,12 +13,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -33,7 +33,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $c1 = 3; #random(3,5); @@ -345,7 +345,7 @@ if ($c1 == 4) { if ($z1 == $z2) { $dispans = ($dispans)."(x-$z1)^2"; } else { - $dispans = ($dispans)."(x-$z1)(x-$z2)"; + $dispans = ($dispans)."(x-$z1)(x-$z2)"; } } elsif ($z4 == 0) { $dispans = ($dispans)."x"; @@ -546,7 +546,7 @@ if ($c1 == 5) { if ($z1 == $z2) { $dispans = ($dispans)."(x-$z1)^2(x-$z3)"; } else { - $dispans = ($dispans)."(x-$z1)(x-$z2)(x-$z3)"; + $dispans = ($dispans)."(x-$z1)(x-$z2)(x-$z3)"; } } elsif ($z5 == 0) { $dispans = ($dispans)."x"; @@ -575,7 +575,7 @@ if ($c1 == 5) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -583,7 +583,7 @@ BEGIN_TEXT $PAR $BCENTER \{ image($imgname, width=>$width*3/5, height=>$height*3/5, tex_size=>300 ); \} -$ECENTER +$ECENTER $PAR Determine the equation of the polynomial, \(f(x)\), of minimum degree whose graph is shown above. Write your answer in factored form. @@ -593,7 +593,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($ans)->cmp()); @@ -611,12 +611,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("formulas", "Click here for help entering formulas.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("formulas", "Click here for help entering formulas.")\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Polynomials/Find_Factored_Form_From_Graph_Deg_4.pg b/Contrib/Mizzou/College_Algebra/Graphing_Polynomials/Find_Factored_Form_From_Graph_Deg_4.pg index fb7d5f01bc..d12cf324c9 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Polynomials/Find_Factored_Form_From_Graph_Deg_4.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Polynomials/Find_Factored_Form_From_Graph_Deg_4.pg @@ -13,12 +13,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -33,7 +33,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $c1 = 4; #random(3,5); @@ -346,7 +346,7 @@ if ($c1 == 4) { if ($z1 == $z2) { $dispans = ($dispans)."(x-$z1)^2"; } else { - $dispans = ($dispans)."(x-$z1)(x-$z2)"; + $dispans = ($dispans)."(x-$z1)(x-$z2)"; } } elsif ($z4 == 0) { $dispans = ($dispans)."x"; @@ -547,7 +547,7 @@ if ($c1 == 5) { if ($z1 == $z2) { $dispans = ($dispans)."(x-$z1)^2(x-$z3)"; } else { - $dispans = ($dispans)."(x-$z1)(x-$z2)(x-$z3)"; + $dispans = ($dispans)."(x-$z1)(x-$z2)(x-$z3)"; } } elsif ($z5 == 0) { $dispans = ($dispans)."x"; @@ -576,7 +576,7 @@ if ($c1 == 5) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -584,7 +584,7 @@ BEGIN_TEXT $PAR $BCENTER \{ image($imgname, width=>$width*3/5, height=>$height*3/5, tex_size=>300 ); \} -$ECENTER +$ECENTER $PAR Determine the equation of the polynomial, \(f(x)\), of minimum degree whose graph is shown above. Write your answer in factored form. @@ -594,7 +594,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($ans)->cmp()); @@ -612,12 +612,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("formulas", "Click here for help entering formulas.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("formulas", "Click here for help entering formulas.")\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Polynomials/Find_Factored_Form_From_Graph_Deg_5.pg b/Contrib/Mizzou/College_Algebra/Graphing_Polynomials/Find_Factored_Form_From_Graph_Deg_5.pg index 6aaeac9268..3000fd929e 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Polynomials/Find_Factored_Form_From_Graph_Deg_5.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Polynomials/Find_Factored_Form_From_Graph_Deg_5.pg @@ -13,12 +13,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -33,7 +33,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $c1 = 5; #random(3,5); @@ -345,7 +345,7 @@ if ($c1 == 4) { if ($z1 == $z2) { $dispans = ($dispans)."(x-$z1)^2"; } else { - $dispans = ($dispans)."(x-$z1)(x-$z2)"; + $dispans = ($dispans)."(x-$z1)(x-$z2)"; } } elsif ($z4 == 0) { $dispans = ($dispans)."x"; @@ -546,7 +546,7 @@ if ($c1 == 5) { if ($z1 == $z2) { $dispans = ($dispans)."(x-$z1)^2(x-$z3)"; } else { - $dispans = ($dispans)."(x-$z1)(x-$z2)(x-$z3)"; + $dispans = ($dispans)."(x-$z1)(x-$z2)(x-$z3)"; } } elsif ($z5 == 0) { $dispans = ($dispans)."x"; @@ -575,7 +575,7 @@ if ($c1 == 5) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -583,7 +583,7 @@ BEGIN_TEXT $PAR $BCENTER \{ image($imgname, width=>$width*3/5, height=>$height*3/5, tex_size=>300 ); \} -$ECENTER +$ECENTER $PAR Determine the equation of the polynomial, \(f(x)\), of minimum degree whose graph is shown above. Write your answer in factored form. @@ -593,7 +593,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($ans)->cmp()); @@ -611,12 +611,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("formulas", "Click here for help entering formulas.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("formulas", "Click here for help entering formulas.")\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Polynomials/Find_Factored_Form_From_Graph_Random_Deg_4_5.pg b/Contrib/Mizzou/College_Algebra/Graphing_Polynomials/Find_Factored_Form_From_Graph_Random_Deg_4_5.pg index f1b6cc627f..78d4dc709f 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Polynomials/Find_Factored_Form_From_Graph_Random_Deg_4_5.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Polynomials/Find_Factored_Form_From_Graph_Random_Deg_4_5.pg @@ -13,12 +13,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -33,7 +33,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $c1 = random(4,5); @@ -345,7 +345,7 @@ if ($c1 == 4) { if ($z1 == $z2) { $dispans = ($dispans)."(x-$z1)^2"; } else { - $dispans = ($dispans)."(x-$z1)(x-$z2)"; + $dispans = ($dispans)."(x-$z1)(x-$z2)"; } } elsif ($z4 == 0) { $dispans = ($dispans)."x"; @@ -546,7 +546,7 @@ if ($c1 == 5) { if ($z1 == $z2) { $dispans = ($dispans)."(x-$z1)^2(x-$z3)"; } else { - $dispans = ($dispans)."(x-$z1)(x-$z2)(x-$z3)"; + $dispans = ($dispans)."(x-$z1)(x-$z2)(x-$z3)"; } } elsif ($z5 == 0) { $dispans = ($dispans)."x"; @@ -575,7 +575,7 @@ if ($c1 == 5) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -583,7 +583,7 @@ BEGIN_TEXT $PAR $BCENTER \{ image($imgname, width=>$width*3/5, height=>$height*3/5, tex_size=>300 ); \} -$ECENTER +$ECENTER $PAR Determine the equation of the polynomial, \(f(x)\), of minimum degree whose graph is shown above. Write your answer in factored form. @@ -593,7 +593,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($ans)->cmp()); @@ -611,12 +611,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("formulas", "Click here for help entering formulas.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("formulas", "Click here for help entering formulas.")\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Polynomials/Find_Zeros_Mults_Degree_LeadCoeff.pg b/Contrib/Mizzou/College_Algebra/Graphing_Polynomials/Find_Zeros_Mults_Degree_LeadCoeff.pg index a6a3b65556..cf1b739d95 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Polynomials/Find_Zeros_Mults_Degree_LeadCoeff.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Polynomials/Find_Zeros_Mults_Degree_LeadCoeff.pg @@ -14,12 +14,12 @@ ################################################################# -# initialization +# initialization ################################################################# DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswers = 1; ################################################################# -# setup contexts and variables +# setup contexts and variables ################################################################# Context("Numeric"); Context()->strings->add("even"=>{}, "e"=>{alias=>"even"}, @@ -56,7 +56,7 @@ do { $powers[$i] = random(2,3); } else { $powers[$i] = random(1,2); - } + } $removed = 0; $count = 0; do { @@ -102,7 +102,7 @@ do { # this sub routine represents what is to be the graphed polynomial sub poly { - my $x = shift(); + my $x = shift(); $prod = 1; for ($i = 0; $i < $numzeros; $i++) { $prod = $prod*(($x - $zeros[$i])**$powers[$i]); @@ -126,7 +126,7 @@ do { } } - # this next bit is to be sure that the gap between the low or high point + # this next bit is to be sure that the gap between the low or high point # between zeros and the x-axis is not too small for ($i = 0; $i < $numzeros-1; $i++) { $maxs[$i] = 0; @@ -138,8 +138,8 @@ do { for ($k = 0; $k < $steps; $k++) { $tmp = abs(poly($zeros[$j]+$k*$stepsize)); if ($tmp > $maxs[$j]) { - $maxs[$j] = $tmp; - } + $maxs[$j] = $tmp; + } } } @@ -152,7 +152,7 @@ do { } until (abs($tmp2/$tmp1) < 3*$scale/2); $expn = sub { - my $x = shift(); + my $x = shift(); $prod = $a; for ($i = 0; $i < $numzeros; $i++) { $prod = $prod*(($x - $zeros[$i])**$powers[$i]); @@ -247,7 +247,7 @@ $ma = MultiAnswer(@answers)->with( } } for ($i = 0; $i < $num; $i++) { - $reans[0][$i] = $returnans[0][$i]; + $reans[0][$i] = $returnans[0][$i]; } return @reans; } @@ -280,7 +280,7 @@ $degree = PopUp([" ","even", "odd"], "$degreeans"); $lead_coef_sgn = PopUp([" ","positive", "negative"], "$leadcoeffans"); ################################################################# -# state the problem +# state the problem ################################################################# Context()->texStrings; @@ -289,13 +289,13 @@ BEGIN_TEXT $PAR $BCENTER \{ image(insertGraph($graph), width=>$gsize, height=>$gsize, tex_size=>300 ); \} -$ECENTER +$ECENTER $PAR Find the following information pertaining to the polynomial, \(f(x)\), graphed above. $BR Note:${EBOLD} Type ${BBOLD}even${EBOLD} or ${BBOLD}odd${EBOLD} for the multiplicities of each zero below. You must have the corresponding multiplicity correct for each zero in order to receive credit! $PAR -(a) The zeros of \(f(x)\) are \(x = \) \{ans_rule(15)\} (separate by commas) and +(a) The zeros of \(f(x)\) are \(x = \) \{ans_rule(15)\} (separate by commas) and END_TEXT for ($i = 0; $i < $numzeros; $i++) { @@ -328,7 +328,7 @@ END_TEXT ################################################################# -# check the answer +# check the answer ################################################################# ANS(Compute($zerosans)->cmp()); ANS($ma->cmp()); @@ -358,7 +358,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Polynomials/MC_Find_Graph.pg b/Contrib/Mizzou/College_Algebra/Graphing_Polynomials/MC_Find_Graph.pg index b34e06d273..4ca783a8a2 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Polynomials/MC_Find_Graph.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Polynomials/MC_Find_Graph.pg @@ -12,12 +12,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -33,7 +33,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $c1 = random(3,5); @@ -350,7 +350,7 @@ if ($c1 == 4) { if ($z1 == $z2) { $dispans = ($dispans)."(x-$z1)^2"; } else { - $dispans = ($dispans)."(x-$z1)(x-$z2)"; + $dispans = ($dispans)."(x-$z1)(x-$z2)"; } } elsif ($z4 == 0) { $dispans = ($dispans)."x"; @@ -550,7 +550,7 @@ if ($c1 == 5) { if ($z1 == $z2) { $dispans = ($dispans)."(x-$z1)^2(x-$z3)"; } else { - $dispans = ($dispans)."(x-$z1)(x-$z2)(x-$z3)"; + $dispans = ($dispans)."(x-$z1)(x-$z2)(x-$z3)"; } } elsif ($z5 == 0) { $dispans = ($dispans)."x"; @@ -577,14 +577,14 @@ if ($c1 == 5) { } ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $PAR $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -595,10 +595,10 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR -Given that +Given that $PAR \[ f(x) = $dispans @@ -611,7 +611,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($ans)->cmp()); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Polynomials/MC_Find_Graph_Factored_Deg_3.pg b/Contrib/Mizzou/College_Algebra/Graphing_Polynomials/MC_Find_Graph_Factored_Deg_3.pg index 05bf929285..985918f8b8 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Polynomials/MC_Find_Graph_Factored_Deg_3.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Polynomials/MC_Find_Graph_Factored_Deg_3.pg @@ -12,12 +12,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -33,7 +33,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $c1 = 3; #random(3,5); @@ -70,7 +70,7 @@ for ($i = 1; $i < 4; $i++) { for ($j = 0; $j < $i; $j++) { if ($choices[$pos[$j]] == $choices[$pos[$i]]) { $i--; - } + } } } @@ -90,25 +90,25 @@ $ans = $possans[$pos[0]]; if ($c1 == 3) { if ($c2 == 1) { if ($c3 == 1) { - $dispeqn = "f(x) = -2(x+1)(x-1)(x-4)"; + $dispeqn = "f(x) = -2(x+1)(x-1)(x-4)"; } elsif ($c3 == 2) { - $dispeqn = "f(x) = -2(x+1)(x-1)(x+4)"; + $dispeqn = "f(x) = -2(x+1)(x-1)(x+4)"; } elsif ($c3 == 3) { $dispeqn = "f(x) = 2(x+1)(x-1)(x-4)"; } elsif ($c3 == 4) { - $dispeqn = "f(x) = 2(x+1)(x-1)(x+4)"; + $dispeqn = "f(x) = 2(x+1)(x-1)(x+4)"; } elsif ($c3 == 5) { - $dispeqn = "f(x) = -(x-2)(x-1)(x+4)"; + $dispeqn = "f(x) = -(x-2)(x-1)(x+4)"; } elsif ($c3 == 6) { - $dispeqn = "f(x) =-(x+2)(x-1)(x-4)"; + $dispeqn = "f(x) =-(x+2)(x-1)(x-4)"; } elsif ($c3 == 7) { - $dispeqn = "f(x) = -2(x-1)^2(x-4)"; + $dispeqn = "f(x) = -2(x-1)^2(x-4)"; } elsif ($c3 == 8) { - $dispeqn = "f(x) = -2(x-1)^2(x+4)"; + $dispeqn = "f(x) = -2(x-1)^2(x+4)"; } elsif ($c3 == 9) { - $dispeqn = "f(x) = (x-2)(x-1)(x+4)"; + $dispeqn = "f(x) = (x-2)(x-1)(x+4)"; } elsif ($c3 == 10) { - $dispeqn = "f(x) = (x+2)(x-1)(x-4)"; + $dispeqn = "f(x) = (x+2)(x-1)(x-4)"; } } } @@ -116,37 +116,37 @@ if ($c1 == 3) { if ($c1 == 4) { if ($c2 == 1) { if ($c3 == 1) { - $dispeqn = "f(x) = (x+3)(x-3)(x+2)(x-2)"; + $dispeqn = "f(x) = (x+3)(x-3)(x+2)(x-2)"; } elsif ($c3 == 2) { - $dispeqn = "f(x) = (x-3)^2(x+2)^2"; + $dispeqn = "f(x) = (x-3)^2(x+2)^2"; } elsif ($c3 == 3) { $dispeqn = "f(x) = (x+3)^2(x-2)^2"; } elsif ($c3 == 4) { - $dispeqn = "f(x) = x^2(x-3)(x+2)"; + $dispeqn = "f(x) = x^2(x-3)(x+2)"; } elsif ($c3 == 5) { - $dispeqn = "f(x) = x^2(x+3)(x-2)"; + $dispeqn = "f(x) = x^2(x+3)(x-2)"; } elsif ($c3 == 6) { - $dispeqn = "f(x) = x(x+3)(x-3)(x-2)"; + $dispeqn = "f(x) = x(x+3)(x-3)(x-2)"; } elsif ($c3 == 7) { - $dispeqn = "f(x) = x(x+3)(x-3)(x+2)"; + $dispeqn = "f(x) = x(x+3)(x-3)(x+2)"; } elsif ($c3 == 8) { - $dispeqn = "f(x) = x(x-3)(x+2)(x-2)"; + $dispeqn = "f(x) = x(x-3)(x+2)(x-2)"; } elsif ($c3 == 9) { - $dispeqn = "f(x) = x(x+3)(x+2)(x-2)"; + $dispeqn = "f(x) = x(x+3)(x+2)(x-2)"; } } } ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $PAR $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -157,10 +157,10 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR -Given that +Given that $PAR \[ $dispeqn @@ -173,7 +173,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($ans)->cmp()); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Polynomials/MC_Find_Graph_Factored_Deg_4.pg b/Contrib/Mizzou/College_Algebra/Graphing_Polynomials/MC_Find_Graph_Factored_Deg_4.pg index ef98175c9a..25440086b9 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Polynomials/MC_Find_Graph_Factored_Deg_4.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Polynomials/MC_Find_Graph_Factored_Deg_4.pg @@ -12,12 +12,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -33,7 +33,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $c1 = 4; #random(3,5); #degree @@ -70,7 +70,7 @@ for ($i = 1; $i < 4; $i++) { for ($j = 0; $j < $i; $j++) { if ($choices[$pos[$j]] == $choices[$pos[$i]]) { $i--; - } + } } } @@ -90,25 +90,25 @@ $ans = $possans[$pos[0]]; if ($c1 == 3) { if ($c2 == 1) { if ($c3 == 1) { - $dispeqn = "f(x) = -2(x+1)(x-1)(x-4)"; + $dispeqn = "f(x) = -2(x+1)(x-1)(x-4)"; } elsif ($c3 == 2) { - $dispeqn = "f(x) = -2(x+1)(x-1)(x+4)"; + $dispeqn = "f(x) = -2(x+1)(x-1)(x+4)"; } elsif ($c3 == 3) { $dispeqn = "f(x) = 2(x+1)(x-1)(x-4)"; } elsif ($c3 == 4) { - $dispeqn = "f(x) = 2(x+1)(x-1)(x+4)"; + $dispeqn = "f(x) = 2(x+1)(x-1)(x+4)"; } elsif ($c3 == 5) { - $dispeqn = "f(x) = -(x-2)(x-1)(x+4)"; + $dispeqn = "f(x) = -(x-2)(x-1)(x+4)"; } elsif ($c3 == 6) { - $dispeqn = "f(x) =-(x+2)(x-1)(x-4)"; + $dispeqn = "f(x) =-(x+2)(x-1)(x-4)"; } elsif ($c3 == 7) { - $dispeqn = "f(x) = -2(x-1)^2(x-4)"; + $dispeqn = "f(x) = -2(x-1)^2(x-4)"; } elsif ($c3 == 8) { - $dispeqn = "f(x) = -2(x-1)^2(x+4)"; + $dispeqn = "f(x) = -2(x-1)^2(x+4)"; } elsif ($c3 == 9) { - $dispeqn = "f(x) = (x-2)(x-1)(x+4)"; + $dispeqn = "f(x) = (x-2)(x-1)(x+4)"; } elsif ($c3 == 10) { - $dispeqn = "f(x) = (x+2)(x-1)(x-4)"; + $dispeqn = "f(x) = (x+2)(x-1)(x-4)"; } } } @@ -116,37 +116,37 @@ if ($c1 == 3) { if ($c1 == 4) { if ($c2 == 1) { if ($c3 == 1) { - $dispeqn = "f(x) = (x+3)(x-3)(x+2)(x-2)"; + $dispeqn = "f(x) = (x+3)(x-3)(x+2)(x-2)"; } elsif ($c3 == 2) { - $dispeqn = "f(x) = (x-3)^2(x+2)^2"; + $dispeqn = "f(x) = (x-3)^2(x+2)^2"; } elsif ($c3 == 3) { $dispeqn = "f(x) = (x+3)^2(x-2)^2"; } elsif ($c3 == 4) { - $dispeqn = "f(x) = x^2(x-3)(x+2)"; + $dispeqn = "f(x) = x^2(x-3)(x+2)"; } elsif ($c3 == 5) { - $dispeqn = "f(x) = x^2(x+3)(x-2)"; + $dispeqn = "f(x) = x^2(x+3)(x-2)"; } elsif ($c3 == 6) { - $dispeqn = "f(x) = x(x+3)(x-3)(x-2)"; + $dispeqn = "f(x) = x(x+3)(x-3)(x-2)"; } elsif ($c3 == 7) { - $dispeqn = "f(x) = x(x+3)(x-3)(x+2)"; + $dispeqn = "f(x) = x(x+3)(x-3)(x+2)"; } elsif ($c3 == 8) { - $dispeqn = "f(x) = x(x-3)(x+2)(x-2)"; + $dispeqn = "f(x) = x(x-3)(x+2)(x-2)"; } elsif ($c3 == 9) { - $dispeqn = "f(x) = x(x+3)(x+2)(x-2)"; + $dispeqn = "f(x) = x(x+3)(x+2)(x-2)"; } } } ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $PAR $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -157,10 +157,10 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR -Given that +Given that $PAR \[ $dispeqn @@ -173,7 +173,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($ans)->cmp()); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Polynomials/MC_Find_Graph_Factored_Random_Deg_3_4.pg b/Contrib/Mizzou/College_Algebra/Graphing_Polynomials/MC_Find_Graph_Factored_Random_Deg_3_4.pg index 94cbf273ab..1887d7eb82 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Polynomials/MC_Find_Graph_Factored_Random_Deg_3_4.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Polynomials/MC_Find_Graph_Factored_Random_Deg_3_4.pg @@ -12,12 +12,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -33,7 +33,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $c1 = random(3,4); #degree @@ -70,7 +70,7 @@ for ($i = 1; $i < 4; $i++) { for ($j = 0; $j < $i; $j++) { if ($choices[$pos[$j]] == $choices[$pos[$i]]) { $i--; - } + } } } @@ -90,25 +90,25 @@ $ans = $possans[$pos[0]]; if ($c1 == 3) { if ($c2 == 1) { if ($c3 == 1) { - $dispeqn = "f(x) = -2(x+1)(x-1)(x-4)"; + $dispeqn = "f(x) = -2(x+1)(x-1)(x-4)"; } elsif ($c3 == 2) { - $dispeqn = "f(x) = -2(x+1)(x-1)(x+4)"; + $dispeqn = "f(x) = -2(x+1)(x-1)(x+4)"; } elsif ($c3 == 3) { $dispeqn = "f(x) = 2(x+1)(x-1)(x-4)"; } elsif ($c3 == 4) { - $dispeqn = "f(x) = 2(x+1)(x-1)(x+4)"; + $dispeqn = "f(x) = 2(x+1)(x-1)(x+4)"; } elsif ($c3 == 5) { - $dispeqn = "f(x) = -(x-2)(x-1)(x+4)"; + $dispeqn = "f(x) = -(x-2)(x-1)(x+4)"; } elsif ($c3 == 6) { - $dispeqn = "f(x) =-(x+2)(x-1)(x-4)"; + $dispeqn = "f(x) =-(x+2)(x-1)(x-4)"; } elsif ($c3 == 7) { - $dispeqn = "f(x) = -2(x-1)^2(x-4)"; + $dispeqn = "f(x) = -2(x-1)^2(x-4)"; } elsif ($c3 == 8) { - $dispeqn = "f(x) = -2(x-1)^2(x+4)"; + $dispeqn = "f(x) = -2(x-1)^2(x+4)"; } elsif ($c3 == 9) { - $dispeqn = "f(x) = (x-2)(x-1)(x+4)"; + $dispeqn = "f(x) = (x-2)(x-1)(x+4)"; } elsif ($c3 == 10) { - $dispeqn = "f(x) = (x+2)(x-1)(x-4)"; + $dispeqn = "f(x) = (x+2)(x-1)(x-4)"; } } } @@ -116,37 +116,37 @@ if ($c1 == 3) { if ($c1 == 4) { if ($c2 == 1) { if ($c3 == 1) { - $dispeqn = "f(x) = (x+3)(x-3)(x+2)(x-2)"; + $dispeqn = "f(x) = (x+3)(x-3)(x+2)(x-2)"; } elsif ($c3 == 2) { - $dispeqn = "f(x) = (x-3)^2(x+2)^2"; + $dispeqn = "f(x) = (x-3)^2(x+2)^2"; } elsif ($c3 == 3) { $dispeqn = "f(x) = (x+3)^2(x-2)^2"; } elsif ($c3 == 4) { - $dispeqn = "f(x) = x^2(x-3)(x+2)"; + $dispeqn = "f(x) = x^2(x-3)(x+2)"; } elsif ($c3 == 5) { - $dispeqn = "f(x) = x^2(x+3)(x-2)"; + $dispeqn = "f(x) = x^2(x+3)(x-2)"; } elsif ($c3 == 6) { - $dispeqn = "f(x) = x(x+3)(x-3)(x-2)"; + $dispeqn = "f(x) = x(x+3)(x-3)(x-2)"; } elsif ($c3 == 7) { - $dispeqn = "f(x) = x(x+3)(x-3)(x+2)"; + $dispeqn = "f(x) = x(x+3)(x-3)(x+2)"; } elsif ($c3 == 8) { - $dispeqn = "f(x) = x(x-3)(x+2)(x-2)"; + $dispeqn = "f(x) = x(x-3)(x+2)(x-2)"; } elsif ($c3 == 9) { - $dispeqn = "f(x) = x(x+3)(x+2)(x-2)"; + $dispeqn = "f(x) = x(x+3)(x+2)(x-2)"; } } } ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $PAR $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -157,10 +157,10 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR -Given that +Given that $PAR \[ $dispeqn @@ -173,7 +173,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($ans)->cmp()); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Polynomials/MC_Find_Graph_Not_Factored_Deg_3.pg b/Contrib/Mizzou/College_Algebra/Graphing_Polynomials/MC_Find_Graph_Not_Factored_Deg_3.pg index 195b5c618d..dcbe13e851 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Polynomials/MC_Find_Graph_Not_Factored_Deg_3.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Polynomials/MC_Find_Graph_Not_Factored_Deg_3.pg @@ -12,12 +12,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -33,7 +33,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $c1 = 3; #random(3,5); @@ -70,7 +70,7 @@ for ($i = 1; $i < 4; $i++) { for ($j = 0; $j < $i; $j++) { if ($choices[$pos[$j]] == $choices[$pos[$i]]) { $i--; - } + } } } @@ -90,13 +90,13 @@ $ans = $possans[$pos[0]]; if ($c1 == 3) { if ($c2 == 1) { if ($c3 == 1) { - $dispeqn = "f(x) = -2x^3+8x^2+2x-8"; + $dispeqn = "f(x) = -2x^3+8x^2+2x-8"; } elsif ($c3 == 2) { - $dispeqn = "f(x) = -2x^3-8x^2+2x+8"; + $dispeqn = "f(x) = -2x^3-8x^2+2x+8"; } elsif ($c3 == 3) { $dispeqn = "f(x) = 2x^3-8x^2-2x+8"; } elsif ($c3 == 4) { - $dispeqn = "f(x) = 2x^3+8x^2-2x-8"; + $dispeqn = "f(x) = 2x^3+8x^2-2x-8"; } } } @@ -104,37 +104,37 @@ if ($c1 == 3) { if ($c1 == 4) { if ($c2 == 1) { if ($c3 == 1) { - $dispeqn = "f(x) = x^4-13x^2+36"; + $dispeqn = "f(x) = x^4-13x^2+36"; } elsif ($c3 == 2) { - $dispeqn = "f(x) = (x^2-x-6)^2"; + $dispeqn = "f(x) = (x^2-x-6)^2"; } elsif ($c3 == 3) { $dispeqn = "f(x) = (x^2+x-6)^2"; } elsif ($c3 == 4) { - $dispeqn = "f(x) = x^4-x^3-6x^2"; + $dispeqn = "f(x) = x^4-x^3-6x^2"; } elsif ($c3 == 5) { - $dispeqn = "f(x) = x^4+x^3-6x^2"; + $dispeqn = "f(x) = x^4+x^3-6x^2"; } elsif ($c3 == 6) { - $dispeqn = "f(x) = x^4-2x^3-9x^2+18x"; + $dispeqn = "f(x) = x^4-2x^3-9x^2+18x"; } elsif ($c3 == 7) { - $dispeqn = "f(x) = x^4+2x^3-9x^2-18x"; + $dispeqn = "f(x) = x^4+2x^3-9x^2-18x"; } elsif ($c3 == 8) { - $dispeqn = "f(x) = x^4-3x^3-4x^2+12x"; + $dispeqn = "f(x) = x^4-3x^3-4x^2+12x"; } elsif ($c3 == 9) { - $dispeqn = "f(x) = x^4+3x^3-4x^2-12x"; + $dispeqn = "f(x) = x^4+3x^3-4x^2-12x"; } } } ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $PAR $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -145,10 +145,10 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR -Given that +Given that $PAR \[ $dispeqn @@ -161,7 +161,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($ans)->cmp()); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Polynomials/MC_Find_Graph_Not_Factored_Deg_4.pg b/Contrib/Mizzou/College_Algebra/Graphing_Polynomials/MC_Find_Graph_Not_Factored_Deg_4.pg index 2f02ccca60..0653640cdf 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Polynomials/MC_Find_Graph_Not_Factored_Deg_4.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Polynomials/MC_Find_Graph_Not_Factored_Deg_4.pg @@ -12,12 +12,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -33,7 +33,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $c1 = 4; #random(3,5); @@ -70,7 +70,7 @@ for ($i = 1; $i < 4; $i++) { for ($j = 0; $j < $i; $j++) { if ($choices[$pos[$j]] == $choices[$pos[$i]]) { $i--; - } + } } } @@ -90,13 +90,13 @@ $ans = $possans[$pos[0]]; if ($c1 == 3) { if ($c2 == 1) { if ($c3 == 1) { - $dispeqn = "f(x) = -2x^3+8x^2+2x-8"; + $dispeqn = "f(x) = -2x^3+8x^2+2x-8"; } elsif ($c3 == 2) { - $dispeqn = "f(x) = -2x^3-8x^2+2x+8"; + $dispeqn = "f(x) = -2x^3-8x^2+2x+8"; } elsif ($c3 == 3) { $dispeqn = "f(x) = 2x^3-8x^2-2x+8"; } elsif ($c3 == 4) { - $dispeqn = "f(x) = 2x^3+8x^2-2x-8"; + $dispeqn = "f(x) = 2x^3+8x^2-2x-8"; } } } @@ -104,37 +104,37 @@ if ($c1 == 3) { if ($c1 == 4) { if ($c2 == 1) { if ($c3 == 1) { - $dispeqn = "f(x) =x^4-13x^2+36"; + $dispeqn = "f(x) =x^4-13x^2+36"; } elsif ($c3 == 2) { - $dispeqn = "f(x) = (x^2-x-6)^2"; + $dispeqn = "f(x) = (x^2-x-6)^2"; } elsif ($c3 == 3) { $dispeqn = "f(x) = (x^2+x-6)^2"; } elsif ($c3 == 4) { - $dispeqn = "f(x) = x^4-x^3-6x^2"; + $dispeqn = "f(x) = x^4-x^3-6x^2"; } elsif ($c3 == 5) { - $dispeqn = "f(x) = x^4+x^3-6x^2"; + $dispeqn = "f(x) = x^4+x^3-6x^2"; } elsif ($c3 == 6) { - $dispeqn = "f(x) = x^4-2x^3-9x^2+18x"; + $dispeqn = "f(x) = x^4-2x^3-9x^2+18x"; } elsif ($c3 == 7) { - $dispeqn = "f(x) = x^4+2x^3-9x^2-18x"; + $dispeqn = "f(x) = x^4+2x^3-9x^2-18x"; } elsif ($c3 == 8) { - $dispeqn = "f(x) = x^4-3x^3-4x^2+12x"; + $dispeqn = "f(x) = x^4-3x^3-4x^2+12x"; } elsif ($c3 == 9) { - $dispeqn = "f(x) = x^4+3x^3-4x^2-12x"; + $dispeqn = "f(x) = x^4+3x^3-4x^2-12x"; } } } ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $PAR $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -145,10 +145,10 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR -Given that +Given that $PAR \[ $dispeqn @@ -161,7 +161,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($ans)->cmp()); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Polynomials/MC_Find_Graph_Not_Factored_Random_Deg_3_4.pg b/Contrib/Mizzou/College_Algebra/Graphing_Polynomials/MC_Find_Graph_Not_Factored_Random_Deg_3_4.pg index 48e9fe9b6a..02bf14de99 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Polynomials/MC_Find_Graph_Not_Factored_Random_Deg_3_4.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Polynomials/MC_Find_Graph_Not_Factored_Random_Deg_3_4.pg @@ -12,12 +12,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -33,7 +33,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $c1 = random(3,4); @@ -70,7 +70,7 @@ for ($i = 1; $i < 4; $i++) { for ($j = 0; $j < $i; $j++) { if ($choices[$pos[$j]] == $choices[$pos[$i]]) { $i--; - } + } } } @@ -90,13 +90,13 @@ $ans = $possans[$pos[0]]; if ($c1 == 3) { if ($c2 == 1) { if ($c3 == 1) { - $dispeqn = "f(x) = -2x^3+8x^2+2x-8"; + $dispeqn = "f(x) = -2x^3+8x^2+2x-8"; } elsif ($c3 == 2) { - $dispeqn = "f(x) = -2x^3-8x^2+2x+8"; + $dispeqn = "f(x) = -2x^3-8x^2+2x+8"; } elsif ($c3 == 3) { $dispeqn = "f(x) = 2x^3-8x^2-2x+8"; } elsif ($c3 == 4) { - $dispeqn = "f(x) = 2x^3+8x^2-2x-8"; + $dispeqn = "f(x) = 2x^3+8x^2-2x-8"; } } } @@ -104,37 +104,37 @@ if ($c1 == 3) { if ($c1 == 4) { if ($c2 == 1) { if ($c3 == 1) { - $dispeqn = "f(x) =x^4-13x^2+36"; + $dispeqn = "f(x) =x^4-13x^2+36"; } elsif ($c3 == 2) { - $dispeqn = "f(x) = (x^2-x-6)^2"; + $dispeqn = "f(x) = (x^2-x-6)^2"; } elsif ($c3 == 3) { $dispeqn = "f(x) = (x^2+x-6)^2"; } elsif ($c3 == 4) { - $dispeqn = "f(x) = x^4-x^3-6x^2"; + $dispeqn = "f(x) = x^4-x^3-6x^2"; } elsif ($c3 == 5) { - $dispeqn = "f(x) = x^4+x^3-6x^2"; + $dispeqn = "f(x) = x^4+x^3-6x^2"; } elsif ($c3 == 6) { - $dispeqn = "f(x) = x^4-2x^3-9x^2+18x"; + $dispeqn = "f(x) = x^4-2x^3-9x^2+18x"; } elsif ($c3 == 7) { - $dispeqn = "f(x) = x^4+2x^3-9x^2-18x"; + $dispeqn = "f(x) = x^4+2x^3-9x^2-18x"; } elsif ($c3 == 8) { - $dispeqn = "f(x) = x^4-3x^3-4x^2+12x"; + $dispeqn = "f(x) = x^4-3x^3-4x^2+12x"; } elsif ($c3 == 9) { - $dispeqn = "f(x) = x^4+3x^3-4x^2-12x"; + $dispeqn = "f(x) = x^4+3x^3-4x^2-12x"; } } } ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $PAR $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -145,10 +145,10 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR -Given that +Given that $PAR \[ $dispeqn @@ -161,7 +161,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($ans)->cmp()); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Polynomials/test.pg b/Contrib/Mizzou/College_Algebra/Graphing_Polynomials/test.pg index 83da8dac9c..33d3a08012 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Polynomials/test.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Polynomials/test.pg @@ -13,12 +13,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -33,7 +33,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); Context()->strings->add("even"=>{}, "e"=>{alias=>"even"}, @@ -52,7 +52,7 @@ do { $powers[$i] = random(2,3); } else { $powers[$i] = random(1,2); - } + } $removed = 0; $count = 0; do { @@ -98,7 +98,7 @@ do { # this sub routine represents what is to be the graphed polynomial sub poly { - my $x = shift(); + my $x = shift(); $prod = 1; for ($i = 0; $i < $numzeros; $i++) { $prod = $prod*(($x - $zeros[$i])**$powers[$i]); @@ -122,7 +122,7 @@ do { } } - # this next bit is to be sure that the gap between the low or high point + # this next bit is to be sure that the gap between the low or high point # between zeros and the x-axis is not too small for ($i = 0; $i < $numzeros-1; $i++) { $maxs[$i] = 0; @@ -134,8 +134,8 @@ do { for ($k = 0; $k < $steps; $k++) { $tmp = abs(poly($zeros[$j]+$k*$stepsize)); if ($tmp > $maxs[$j]) { - $maxs[$j] = $tmp; - } + $maxs[$j] = $tmp; + } } } @@ -148,7 +148,7 @@ do { } until (abs($tmp2/$tmp1) < 3*$scale/2 && $max < 20); $expn = sub { - my $x = shift(); + my $x = shift(); $prod = 1; for ($i = 0; $i < $numzeros; $i++) { $prod = $prod*(($x - $zeros[$i])**$powers[$i]); @@ -241,7 +241,7 @@ $ma = MultiAnswer(@answers)->with( } } for ($i = 0; $i < $num; $i++) { - $reans[0][$i] = $returnans[0][$i]; + $reans[0][$i] = $returnans[0][$i]; } return @reans; } @@ -273,7 +273,7 @@ for ($i = 1; $i < $numzeros; $i++) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -281,12 +281,12 @@ BEGIN_TEXT $PAR $BCENTER \{ image(insertGraph($graph), width=>$gsize, height=>$gsize, tex_size=>500 ); \} -$ECENTER +$ECENTER $PAR -Find the following information pertaining to the polynomial, \(f(x)\), graphed above. +Find the following information pertaining to the polynomial, \(f(x)\), graphed above. $PAR -(a) The zeros of \(f(x)\) are \(x = \) \{ans_rule(15)\} (separate by commas) and +(a) The zeros of \(f(x)\) are \(x = \) \{ans_rule(15)\} (separate by commas) and END_TEXT for ($i = 0; $i < $numzeros; $i++) { @@ -320,7 +320,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($zerosans)->cmp()); ANS($ma->cmp()); @@ -352,7 +352,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Quadratics/Find_Eqn_Opens_Arbitrarily.pg b/Contrib/Mizzou/College_Algebra/Graphing_Quadratics/Find_Eqn_Opens_Arbitrarily.pg index b09d46d782..c7c344f86c 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Quadratics/Find_Eqn_Opens_Arbitrarily.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Quadratics/Find_Eqn_Opens_Arbitrarily.pg @@ -12,12 +12,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @@ -97,7 +97,7 @@ if ($a < 0) { $dispeqn = ($dispeqn)."(x - $h)^2+$k"; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -105,7 +105,7 @@ BEGIN_TEXT $PAR $BCENTER \{ image(insertGraph($graph), width=>$gsize, height=>$gsize, tex_size=>500 ); \} -$ECENTER +$ECENTER $PAR Determine the equation of the quadratic function graphed above. Write your answer in standard form. @@ -115,7 +115,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($eqn)->cmp()); @@ -134,12 +134,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("equations","Click here for help entering equations.") \} + ${BBOLD}Help:${EBOLD} \{helpLink("equations","Click here for help entering equations.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Quadratics/Find_Eqn_Opens_Down.pg b/Contrib/Mizzou/College_Algebra/Graphing_Quadratics/Find_Eqn_Opens_Down.pg index 40994af1eb..f39373b3a6 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Quadratics/Find_Eqn_Opens_Down.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Quadratics/Find_Eqn_Opens_Down.pg @@ -12,12 +12,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @@ -91,7 +91,7 @@ $eqn = Formula("y = -(x - $h)**2 + $k")->reduce; $dispeqn = "y = -(x - $h)^2+$k"; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -99,7 +99,7 @@ BEGIN_TEXT $PAR $BCENTER \{ image(insertGraph($graph), width=>$gsize, height=>$gsize, tex_size=>500 ); \} -$ECENTER +$ECENTER $PAR Determine the equation of the quadratic function graphed above. Write your answer in standard form. @@ -109,7 +109,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($eqn)->cmp()); @@ -128,12 +128,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("equations","Click here for help entering equations.") \} + ${BBOLD}Help:${EBOLD} \{helpLink("equations","Click here for help entering equations.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Quadratics/Find_Eqn_Opens_Up.pg b/Contrib/Mizzou/College_Algebra/Graphing_Quadratics/Find_Eqn_Opens_Up.pg index 786b3b5134..fac4e393ec 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Quadratics/Find_Eqn_Opens_Up.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Quadratics/Find_Eqn_Opens_Up.pg @@ -12,12 +12,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @@ -91,7 +91,7 @@ $eqn = Formula("y = (x - $h)**2 + $k")->reduce; $dispeqn = "y = (x - $h)^2+$k"; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -99,7 +99,7 @@ BEGIN_TEXT $PAR $BCENTER \{ image(insertGraph($graph), width=>$gsize, height=>$gsize, tex_size=>500 ); \} -$ECENTER +$ECENTER $PAR Determine the equation of the quadratic function graphed above. Write your answer in standard form. @@ -109,7 +109,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($eqn)->cmp()); @@ -128,12 +128,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("equations","Click here for help entering equations.") \} + ${BBOLD}Help:${EBOLD} \{helpLink("equations","Click here for help entering equations.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Rational/Like_1_Over_x.pg b/Contrib/Mizzou/College_Algebra/Graphing_Rational/Like_1_Over_x.pg index 059564fe07..5075985031 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Rational/Like_1_Over_x.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Rational/Like_1_Over_x.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -32,7 +32,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $lead = random(-1,1,2); @@ -230,12 +230,12 @@ $letterans = $possletterans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1], $figs[2]]). TableSpace(5,0). @@ -250,10 +250,10 @@ BeginTable(). AlignedRow(["D", "E"]). EndTable(); \} -$ECENTER +$ECENTER $PAR -Determine the following information given that +Determine the following information given that $PAR \[$dispfun\] $PAR @@ -272,7 +272,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($hori)->cmp()); ANS(Compute($vert)->cmp()); @@ -288,7 +288,7 @@ ANS(String($letterans)->cmp()); if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR - ${BBOLD}Answer:${EBOLD} + ${BBOLD}Answer:${EBOLD} $PAR (a) \(y = $hori\) $PAR @@ -304,12 +304,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("points","Click here for help entering points.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("points","Click here for help entering points.")\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Rational/Like_1_Over_x2.pg b/Contrib/Mizzou/College_Algebra/Graphing_Rational/Like_1_Over_x2.pg index 37c72010d7..2aa8542107 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Rational/Like_1_Over_x2.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Rational/Like_1_Over_x2.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -32,7 +32,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $lead = random(-1,1,2); @@ -231,12 +231,12 @@ $letterans = $possletterans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1], $figs[2]]). TableSpace(5,0). @@ -251,10 +251,10 @@ BeginTable(). AlignedRow(["D", "E"]). EndTable(); \} -$ECENTER +$ECENTER $PAR -Determine the following information given that +Determine the following information given that $PAR \[$dispfun\] $PAR @@ -273,7 +273,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($hori)->cmp()); ANS(Compute($vert)->cmp()); @@ -289,7 +289,7 @@ ANS(String($letterans)->cmp()); if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR - ${BBOLD}Answer:${EBOLD} + ${BBOLD}Answer:${EBOLD} $PAR (a) \(y = $hori\) $PAR @@ -305,12 +305,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("points","Click here for help entering points.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("points","Click here for help entering points.")\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Rational/Linear_Over_Linear.pg b/Contrib/Mizzou/College_Algebra/Graphing_Rational/Linear_Over_Linear.pg index 22d34d51c7..3c36961ceb 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Rational/Linear_Over_Linear.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Rational/Linear_Over_Linear.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -32,7 +32,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $a = non_zero_random(-5,5); @@ -226,12 +226,12 @@ $letterans = $possletterans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1], $figs[2]]). TableSpace(5,0). @@ -246,10 +246,10 @@ BeginTable(). AlignedRow(["D", "E"]). EndTable(); \} -$ECENTER +$ECENTER $PAR -Determine the following information given that +Determine the following information given that $PAR \[$dispfun\] $PAR @@ -268,7 +268,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($hori)->cmp()); ANS(Compute($vert)->cmp()); @@ -284,7 +284,7 @@ ANS(String($letterans)->cmp()); if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR - ${BBOLD}Answer:${EBOLD} + ${BBOLD}Answer:${EBOLD} $PAR (a) \(y = $hori\) $PAR @@ -300,12 +300,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("points","Click here for help entering points.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("points","Click here for help entering points.")\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Rational/Linear_Over_Quad.pg b/Contrib/Mizzou/College_Algebra/Graphing_Rational/Linear_Over_Quad.pg index 99cd072755..0df336613b 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Rational/Linear_Over_Quad.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Rational/Linear_Over_Quad.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -32,7 +32,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $a = non_zero_random(-5,5); @@ -216,12 +216,12 @@ $letterans = $possletterans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -236,10 +236,10 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR -Determine the following information given that +Determine the following information given that $PAR \[$dispfun\] $PAR @@ -258,7 +258,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($hori)->cmp()); ANS(Compute($vert)->cmp()); @@ -274,7 +274,7 @@ ANS(String($letterans)->cmp()); if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR - ${BBOLD}Answer:${EBOLD} + ${BBOLD}Answer:${EBOLD} $PAR (a) \(y = $hori\) $PAR @@ -290,12 +290,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("points","Click here for help entering points.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("points","Click here for help entering points.")\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Abs_HShift.pg b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Abs_HShift.pg index 69c81572ef..343f835859 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Abs_HShift.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Abs_HShift.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of an abs value function and asks for the +# Gives the graph of an abs value function and asks for the # correct equation which has this graph. # The graph always has horizontal shift. # The graph has nothing else. @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -77,7 +77,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -176,7 +176,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -185,7 +185,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -193,7 +193,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -217,7 +217,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Abs_HShift_VRefl.pg b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Abs_HShift_VRefl.pg index 04ec793e3b..02645cb156 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Abs_HShift_VRefl.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Abs_HShift_VRefl.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of an abs value function and asks for the +# Gives the graph of an abs value function and asks for the # correct equation which has this graph. # The graph always has horizontal shift and vert refl. # The graph has nothing else. @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -77,7 +77,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -175,7 +175,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -184,7 +184,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -192,7 +192,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -216,7 +216,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Abs_HShift_VRefl_VStr.pg b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Abs_HShift_VRefl_VStr.pg index 77cdcb78e8..ebde75ce4e 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Abs_HShift_VRefl_VStr.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Abs_HShift_VRefl_VStr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of an abs value function and asks for the +# Gives the graph of an abs value function and asks for the # correct equation which has this graph. # The graph always has horizontal shift, vert refl, vert str. # The graph has nothing else. @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -77,7 +77,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -178,7 +178,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -187,7 +187,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -195,7 +195,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -219,11 +219,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. -$BR Function Type: abs value +Desc: Find formula of the function that is graphed in blue. +$BR Function Type: abs value $BR Transformations: horiz shift, vert reflect, vert str'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Abs_HShift_VRelf_VShr.pg b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Abs_HShift_VRelf_VShr.pg index 717c9012d1..e3b71eac7e 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Abs_HShift_VRelf_VShr.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Abs_HShift_VRelf_VShr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of an abs value function and asks for the +# Gives the graph of an abs value function and asks for the # correct equation which has this graph. # The graph always has horizontal shift, vert refl, vert shr. # The graph has nothing else. @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -77,7 +77,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -175,7 +175,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -184,7 +184,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -192,7 +192,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -216,11 +216,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. -$BR Function Type: abs value +Desc: Find formula of the function that is graphed in blue. +$BR Function Type: abs value $BR Transformations: horiz shift, vert refl, vert shr'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Abs_HShift_VShift.pg b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Abs_HShift_VShift.pg index 3b6d9dfb32..b8849eb468 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Abs_HShift_VShift.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Abs_HShift_VShift.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of an abs value function and asks for the +# Gives the graph of an abs value function and asks for the # correct equation which has this graph. # The graph always has horizontal shift and vert shift. # The graph has nothing else. @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -77,7 +77,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -175,7 +175,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -184,7 +184,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -192,7 +192,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -216,11 +216,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. -$BR Function Type: abs value +Desc: Find formula of the function that is graphed in blue. +$BR Function Type: abs value $BR Transformations: horiz shift, vert shift'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Abs_HShift_VShift_VRefl.pg b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Abs_HShift_VShift_VRefl.pg index 67fc5584d3..8d58486cc5 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Abs_HShift_VShift_VRefl.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Abs_HShift_VShift_VRefl.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of an abs value function and asks for the +# Gives the graph of an abs value function and asks for the # correct equation which has this graph. # The graph always has horizontal shift, vert shift, vert refl. # The graph has nothing else. @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -77,7 +77,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -175,7 +175,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -184,7 +184,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -192,7 +192,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -216,11 +216,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. -$BR Function Type: abs value +Desc: Find formula of the function that is graphed in blue. +$BR Function Type: abs value $BR Transformations: horiz shift, vshift, vrefl'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Abs_HShift_VShift_VRefl_VShr.pg b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Abs_HShift_VShift_VRefl_VShr.pg index 705fa12f2b..d334dc2546 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Abs_HShift_VShift_VRefl_VShr.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Abs_HShift_VShift_VRefl_VShr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of an abs value function and asks for the +# Gives the graph of an abs value function and asks for the # correct equation which has this graph. # The graph always has horizontal shift, vert shift, vert refl, vert shr. # The graph has nothing else. @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -77,7 +77,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -175,7 +175,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -184,7 +184,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -192,7 +192,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -216,11 +216,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. -$BR Function Type: abs value +Desc: Find formula of the function that is graphed in blue. +$BR Function Type: abs value $BR Transformations: horiz shift, vert shift, vert refl, vert shr'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Abs_HShift_VShift_VRefl_VStr.pg b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Abs_HShift_VShift_VRefl_VStr.pg index 6dc6b7acf4..63bce28b39 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Abs_HShift_VShift_VRefl_VStr.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Abs_HShift_VShift_VRefl_VStr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of an abs value function and asks for the +# Gives the graph of an abs value function and asks for the # correct equation which has this graph. # The graph always has horizontal shift, vert shift, vert refl, vert str. # The graph has nothing else. @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -77,7 +77,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -175,7 +175,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -184,7 +184,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -192,7 +192,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -216,11 +216,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. -$BR Function Type: abs value +Desc: Find formula of the function that is graphed in blue. +$BR Function Type: abs value $BR Transformations: horiz shift, vert shift, vert refl, vert str'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Abs_HShift_VShift_VShr.pg b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Abs_HShift_VShift_VShr.pg index 2597156105..0d8bd82dcc 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Abs_HShift_VShift_VShr.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Abs_HShift_VShift_VShr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of an abs value function and asks for the +# Gives the graph of an abs value function and asks for the # correct equation which has this graph. # The graph always has horizontal shift, vert shift, vert shr. # The graph has nothing else. @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -77,7 +77,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -174,7 +174,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -183,7 +183,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -191,7 +191,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -215,11 +215,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. -$BR Function Type: abs value +Desc: Find formula of the function that is graphed in blue. +$BR Function Type: abs value $BR Transformations: horiz shift, vert shift, vert shr'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Abs_HShift_VShift_VStr.pg b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Abs_HShift_VShift_VStr.pg index 4eecb7c826..d35afb7a38 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Abs_HShift_VShift_VStr.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Abs_HShift_VShift_VStr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of an abs value function and asks for the +# Gives the graph of an abs value function and asks for the # correct equation which has this graph. # The graph always has horizontal shift, vert shift, vert str. # The graph has nothing else. @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -77,7 +77,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -175,7 +175,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -184,7 +184,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -192,7 +192,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -216,11 +216,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. -$BR Function Type: abs value +Desc: Find formula of the function that is graphed in blue. +$BR Function Type: abs value $BR Transformations: horiz shift, vert shift, vert str'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Abs_HShift_VShr.pg b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Abs_HShift_VShr.pg index 0fbada9ef3..e07b3a18ad 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Abs_HShift_VShr.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Abs_HShift_VShr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of an abs value function and asks for the +# Gives the graph of an abs value function and asks for the # correct equation which has this graph. # The graph always has horizontal shift and vert shr. # The graph has nothing else. @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -77,7 +77,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -175,7 +175,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -184,7 +184,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -192,7 +192,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -216,11 +216,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. -$BR Function Type: abs value +Desc: Find formula of the function that is graphed in blue. +$BR Function Type: abs value $BR Transformations: horiz shift, vert shr'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Abs_HShift_VStr.pg b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Abs_HShift_VStr.pg index c06d6b3f08..56c781f866 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Abs_HShift_VStr.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Abs_HShift_VStr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of an abs value function and asks for the +# Gives the graph of an abs value function and asks for the # correct equation which has this graph. # The graph always has horizontal shift and vert str. # The graph has nothing else. @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -77,7 +77,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -175,7 +175,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -184,7 +184,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -192,7 +192,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -216,11 +216,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. -$BR Function Type: abs value +Desc: Find formula of the function that is graphed in blue. +$BR Function Type: abs value $BR Transformations: horiz shift, vert str'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Cubic_HShift.pg b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Cubic_HShift.pg index f3fcddd6e0..50b0af41e2 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Cubic_HShift.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Cubic_HShift.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed cubic function and asks for the +# Gives the graph of a transformed cubic function and asks for the # correct equation which has this graph. # The graph always has horizontal shift. # The graph has nothing else. @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -77,7 +77,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -177,7 +177,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -186,7 +186,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -194,7 +194,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -218,11 +218,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. +Desc: Find formula of the function that is graphed in blue. $BR Function Type: cubic $BR Transformations: horiz shift'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Cubic_HShift_VRefl.pg b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Cubic_HShift_VRefl.pg index 59487cc31d..85390da7fb 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Cubic_HShift_VRefl.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Cubic_HShift_VRefl.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed cubic function and asks for the +# Gives the graph of a transformed cubic function and asks for the # correct equation which has this graph. # The graph always has horizontal shift and vert refl. # The graph has nothing else. @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -77,7 +77,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -177,7 +177,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -186,7 +186,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -194,7 +194,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -218,11 +218,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. +Desc: Find formula of the function that is graphed in blue. $BR Function Type: cubic $BR Transformations: horiz shift, vert refl'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Cubic_HShift_VRefl_VShr.pg b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Cubic_HShift_VRefl_VShr.pg index 9b385e0c04..3cd89c350d 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Cubic_HShift_VRefl_VShr.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Cubic_HShift_VRefl_VShr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed cubic function and asks for the +# Gives the graph of a transformed cubic function and asks for the # correct equation which has this graph. # The graph always has horizontal shift, vert refl, vert shr. # The graph has nothing else. @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -77,7 +77,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -177,7 +177,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -186,7 +186,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -194,7 +194,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -218,11 +218,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. +Desc: Find formula of the function that is graphed in blue. $BR Function Type: cubic $BR Transformations: horiz shift, vert refl, vert shr'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Cubic_HShift_VRefl_VStr.pg b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Cubic_HShift_VRefl_VStr.pg index 632d0c35b3..f25d91f873 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Cubic_HShift_VRefl_VStr.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Cubic_HShift_VRefl_VStr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed cubic function and asks for the +# Gives the graph of a transformed cubic function and asks for the # correct equation which has this graph. # The graph always has horizontal shift, vert refl, vert str. # The graph has nothing else. @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -77,7 +77,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -177,7 +177,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -186,7 +186,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -194,7 +194,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -218,11 +218,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. +Desc: Find formula of the function that is graphed in blue. $BR Function Type: cubic $BR Transformations: horiz shift, vert refl, vert str'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Cubic_HShift_VShift.pg b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Cubic_HShift_VShift.pg index 849a2371e3..12c7cda20d 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Cubic_HShift_VShift.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Cubic_HShift_VShift.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed cubic function and asks for the +# Gives the graph of a transformed cubic function and asks for the # correct equation which has this graph. # The graph always has horizontal shift and vert shift. # The graph has nothing else. @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -77,7 +77,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -177,7 +177,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -186,7 +186,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -194,7 +194,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -218,11 +218,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. +Desc: Find formula of the function that is graphed in blue. $BR Function Type: cubic $BR Transformations: horiz shift, vert shift'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Cubic_HShift_VShift_VRefl.pg b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Cubic_HShift_VShift_VRefl.pg index 60cff687df..2ad673f2a0 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Cubic_HShift_VShift_VRefl.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Cubic_HShift_VShift_VRefl.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed cubic function and asks for the +# Gives the graph of a transformed cubic function and asks for the # correct equation which has this graph. # The graph always has horizontal shift, vert shift, vert refl. # The graph has nothing else. @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -77,7 +77,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -177,7 +177,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -186,7 +186,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -194,7 +194,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -218,11 +218,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. +Desc: Find formula of the function that is graphed in blue. $BR Function Type: cubic $BR Transformations: horiz shift, vert shift, vert refl'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Cubic_HShift_VShift_VRefl_VShr.pg b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Cubic_HShift_VShift_VRefl_VShr.pg index ad7d294a7e..1877f0ee75 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Cubic_HShift_VShift_VRefl_VShr.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Cubic_HShift_VShift_VRefl_VShr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed cubic function and asks for the +# Gives the graph of a transformed cubic function and asks for the # correct equation which has this graph. # The graph always has horizontal shift, vert shift, refl, vert shr. # The graph has nothing else. @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -77,7 +77,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -177,7 +177,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -186,7 +186,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -194,7 +194,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -218,11 +218,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. +Desc: Find formula of the function that is graphed in blue. $BR Function Type: cubic $BR Transformations: horiz shift, vert shift, vert refl, vert shr'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Cubic_HShift_VShift_VRefl_VStr.pg b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Cubic_HShift_VShift_VRefl_VStr.pg index e3765e2f4b..cd26ebf6c1 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Cubic_HShift_VShift_VRefl_VStr.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Cubic_HShift_VShift_VRefl_VStr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed cubic function and asks for the +# Gives the graph of a transformed cubic function and asks for the # correct equation which has this graph. # The graph always has horizontal shift, vert shift, vert refl, vert str. # The graph has nothing else. @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -77,7 +77,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -177,7 +177,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -186,7 +186,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -194,7 +194,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -218,11 +218,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. +Desc: Find formula of the function that is graphed in blue. $BR Function Type: cubic $BR Transformations: horiz shift, vert shift, vert refl, vert str'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Cubic_HShift_VShift_VShr.pg b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Cubic_HShift_VShift_VShr.pg index d2f9c14112..560bae1b97 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Cubic_HShift_VShift_VShr.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Cubic_HShift_VShift_VShr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed cubic function and asks for the +# Gives the graph of a transformed cubic function and asks for the # correct equation which has this graph. # The graph always has horizontal shift, vert shift, vert shr. # The graph has nothing else. @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -77,7 +77,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -177,7 +177,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -186,7 +186,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -194,7 +194,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -218,11 +218,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. +Desc: Find formula of the function that is graphed in blue. $BR Function Type: cubic $BR Transformations: horiz shift, vert shift, vert shr'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Cubic_HShift_VShift_VStr.pg b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Cubic_HShift_VShift_VStr.pg index 5a18bec168..43dc5f1f3b 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Cubic_HShift_VShift_VStr.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Cubic_HShift_VShift_VStr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed cubic function and asks for the +# Gives the graph of a transformed cubic function and asks for the # correct equation which has this graph. # The graph always has horizontal shift, vert shift, vert str. # The graph has nothing else. @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -77,7 +77,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -177,7 +177,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -186,7 +186,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -194,7 +194,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -218,11 +218,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. +Desc: Find formula of the function that is graphed in blue. $BR Function Type: cubic $BR Transformations: horiz shift, vert shift, vert str'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Cubic_HShift_VShr.pg b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Cubic_HShift_VShr.pg index 461f1e95d6..24ec4476c1 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Cubic_HShift_VShr.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Cubic_HShift_VShr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed cubic function and asks for the +# Gives the graph of a transformed cubic function and asks for the # correct equation which has this graph. # The graph always has horizontal shift and vert shr. # The graph has nothing else. @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -77,7 +77,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -177,7 +177,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -186,7 +186,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -194,7 +194,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -218,11 +218,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. +Desc: Find formula of the function that is graphed in blue. $BR Function Type: cubic $BR Transformations: horiz shift, vert shr'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Cubic_HShift_VStr.pg b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Cubic_HShift_VStr.pg index 2120071979..8cc7736d87 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Cubic_HShift_VStr.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Cubic_HShift_VStr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed cubic function and asks for the +# Gives the graph of a transformed cubic function and asks for the # correct equation which has this graph. # The graph always has horizontal shift and vert str. # The graph has nothing else. @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -77,7 +77,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -177,7 +177,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -186,7 +186,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -194,7 +194,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -218,11 +218,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. +Desc: Find formula of the function that is graphed in blue. $BR Function Type: cubic $BR Transformations: horiz shift, vert str'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Quad_HShift.pg b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Quad_HShift.pg index 122bfe9fb5..48ea9917bc 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Quad_HShift.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Quad_HShift.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed quadratic function and asks for the +# Gives the graph of a transformed quadratic function and asks for the # correct equation which has this graph. # The graph always has horizontal shift. # The graph has nothing else. @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -78,7 +78,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -176,7 +176,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -185,7 +185,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -193,7 +193,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -217,11 +217,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. +Desc: Find formula of the function that is graphed in blue. $BR Function Type: cubic $BR Transformations: horiz shift'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Quad_HShift_VRefl.pg b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Quad_HShift_VRefl.pg index 2a35bb509e..df9c46abd1 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Quad_HShift_VRefl.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Quad_HShift_VRefl.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed quadratic function and asks for the +# Gives the graph of a transformed quadratic function and asks for the # correct equation which has this graph. # The graph always has horizontal shift and vertical reflection. # The graph has nothing else. @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -78,7 +78,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -176,7 +176,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -185,7 +185,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -193,7 +193,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -217,11 +217,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. +Desc: Find formula of the function that is graphed in blue. $BR Function Type: cubic $BR Transformations: horiz shift, vert refl'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Quad_HShift_VRefl_VShr.pg b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Quad_HShift_VRefl_VShr.pg index b31832efa6..679cf3fb4c 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Quad_HShift_VRefl_VShr.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Quad_HShift_VRefl_VShr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed quadratic function and asks for the +# Gives the graph of a transformed quadratic function and asks for the # correct equation which has this graph. # The graph always has horizontal shift, vert refl, vert shr. # The graph has nothing else. @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -78,7 +78,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -176,7 +176,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -185,7 +185,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -193,7 +193,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -217,11 +217,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. +Desc: Find formula of the function that is graphed in blue. $BR Function Type: cubic $BR Transformations: horiz shift, vert refl, vert shr'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Quad_HShift_VRelf_VStr.pg b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Quad_HShift_VRelf_VStr.pg index a6169153a0..5ef79f7d5c 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Quad_HShift_VRelf_VStr.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Quad_HShift_VRelf_VStr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed quadratic function and asks for the +# Gives the graph of a transformed quadratic function and asks for the # correct equation which has this graph. # The graph always has horizontal shift, vert refl, vert str. # The graph has nothing else. @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -78,7 +78,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -179,7 +179,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -188,7 +188,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -196,7 +196,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -220,11 +220,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. +Desc: Find formula of the function that is graphed in blue. $BR Function Type: cubic $BR Transformations: horiz shift, vert refl, vert str'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Quad_HShift_VShift.pg b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Quad_HShift_VShift.pg index 5cc91e020a..979dfb56d1 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Quad_HShift_VShift.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Quad_HShift_VShift.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed quadratic function and asks for the +# Gives the graph of a transformed quadratic function and asks for the # correct equation which has this graph. # The graph always has horizontal shift and vertical shift. # The graph has nothing else. @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -78,7 +78,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -176,7 +176,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -185,7 +185,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -193,7 +193,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -217,11 +217,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. +Desc: Find formula of the function that is graphed in blue. $BR Function Type: cubic $BR Transformations: horiz shift, vert shift'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Quad_HShift_VShift_VRefl.pg b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Quad_HShift_VShift_VRefl.pg index 8dced146ba..ae654d07fc 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Quad_HShift_VShift_VRefl.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Quad_HShift_VShift_VRefl.pg @@ -1,7 +1,7 @@ # DESCRIPTION -# Gives the graph of a transformed quadratic function and asks for the +# Gives the graph of a transformed quadratic function and asks for the # correct equation which has this graph. -# The graph always has horizontal shift, vert shift, and vert refl. +# The graph always has horizontal shift, vert shift, and vert refl. # The graph has nothing else. # ENDDESCRIPTION @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -78,7 +78,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -176,7 +176,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -185,7 +185,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -193,7 +193,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -217,11 +217,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. +Desc: Find formula of the function that is graphed in blue. $BR Function Type: cubic $BR Transformations: horiz shift, vert shift, vert refl'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Quad_HShift_VShift_VRefl_VStr.pg b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Quad_HShift_VShift_VRefl_VStr.pg index 061cf7e10a..b020b624b5 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Quad_HShift_VShift_VRefl_VStr.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Quad_HShift_VShift_VRefl_VStr.pg @@ -1,7 +1,7 @@ # DESCRIPTION -# Gives the graph of a transformed quadratic function and asks for the +# Gives the graph of a transformed quadratic function and asks for the # correct equation which has this graph. -# The graph always has horizontal shift, vert shift, vert refl, vert str +# The graph always has horizontal shift, vert shift, vert refl, vert str # The graph has nothing else. # ENDDESCRIPTION @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -78,7 +78,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -179,7 +179,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -188,7 +188,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -196,7 +196,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -220,11 +220,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. +Desc: Find formula of the function that is graphed in blue. $BR Function Type: cubic $BR Transformations: horiz shift, vert shift, vert refl, vert str'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Quad_HShift_VShift_VRelf_VShr.pg b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Quad_HShift_VShift_VRelf_VShr.pg index a95aa77fa2..a625d82ae1 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Quad_HShift_VShift_VRelf_VShr.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Quad_HShift_VShift_VRelf_VShr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed quadratic function and asks for the +# Gives the graph of a transformed quadratic function and asks for the # correct equation which has this graph. # The graph always has horizontal shift, vert shift, vert refl, vert shr. # The graph has nothing else. @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -78,7 +78,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -176,7 +176,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -185,7 +185,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -193,7 +193,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -217,11 +217,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. +Desc: Find formula of the function that is graphed in blue. $BR Function Type: cubic $BR Transformations: horiz shift, vert shift, vert refl, vert shr'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Quad_HShift_VShift_VShr.pg b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Quad_HShift_VShift_VShr.pg index f6178572fc..151e7d541f 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Quad_HShift_VShift_VShr.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Quad_HShift_VShift_VShr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed quadratic function and asks for the +# Gives the graph of a transformed quadratic function and asks for the # correct equation which has this graph. # The graph always has horizontal shift, vert shift, vert shr. # The graph has nothing else. @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -78,7 +78,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -176,7 +176,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -185,7 +185,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -193,7 +193,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -217,11 +217,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. +Desc: Find formula of the function that is graphed in blue. $BR Function Type: cubic $BR Transformations: horiz shift, vert shift, vert shr'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Quad_HShift_VShift_VStr.pg b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Quad_HShift_VShift_VStr.pg index f340f3580e..3156bc08ca 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Quad_HShift_VShift_VStr.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Quad_HShift_VShift_VStr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed quadratic function and asks for the +# Gives the graph of a transformed quadratic function and asks for the # correct equation which has this graph. # The graph always has horizontal shift, vert shift, vert str # The graph has nothing else. @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -78,7 +78,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -176,7 +176,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -185,7 +185,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -193,7 +193,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -217,11 +217,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. +Desc: Find formula of the function that is graphed in blue. $BR Function Type: cubic $BR Transformations: horiz shift, vert shift, vert str'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Quad_HShift_VShr.pg b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Quad_HShift_VShr.pg index 0292ebc558..1d2e207325 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Quad_HShift_VShr.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Quad_HShift_VShr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed quadratic function and asks for the +# Gives the graph of a transformed quadratic function and asks for the # correct equation which has this graph. # The graph always has horizontal shift and vertical shrink. # The graph has nothing else. @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -78,7 +78,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -176,7 +176,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -185,7 +185,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -193,7 +193,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -217,11 +217,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. +Desc: Find formula of the function that is graphed in blue. $BR Function Type: cubic $BR Transformations: horiz shift, vert shr'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Quad_HShift_VStr.pg b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Quad_HShift_VStr.pg index 68950cf642..135b32e5a0 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Quad_HShift_VStr.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Quad_HShift_VStr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed quadratic function and asks for the +# Gives the graph of a transformed quadratic function and asks for the # correct equation which has this graph. # The graph always has horizontal shift and vertical stretch. # The graph has nothing else. @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -78,7 +78,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -176,7 +176,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -185,7 +185,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -193,7 +193,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -217,11 +217,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. +Desc: Find formula of the function that is graphed in blue. $BR Function Type: cubic $BR Transformations: horiz shift, vert str'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Sqrt_HVShift.pg b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Sqrt_HVShift.pg index df493d7470..0e61134be2 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Sqrt_HVShift.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Sqrt_HVShift.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed sqrt function and asks for the +# Gives the graph of a transformed sqrt function and asks for the # correct equation which has this graph. # The graph always has horizontal shift and vert shift. # The graph has nothing else. @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -77,7 +77,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -147,7 +147,7 @@ if ($HRefl == 0) { $dstart = -$maxXVal; $dend = $b; $answer = Formula("y = $a*sqrt(-(x-$b))+$c")->reduce; - Context()->flags->set(limits=>[$dend-1,$dend]); + Context()->flags->set(limits=>[$dend-1,$dend]); } $graph->stamps(closed_circle($b,$c,'blue')); $fun = new Fun($expn, $graph); @@ -197,7 +197,7 @@ $graph->stamps(closed_circle(0,0,'green')); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -206,7 +206,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -214,7 +214,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -238,11 +238,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. +Desc: Find formula of the function that is graphed in blue. $BR Function Type: cubic $BR Transformations: horiz shift, '); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Sqrt_HVShift_HRefl.pg b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Sqrt_HVShift_HRefl.pg index 572c82122f..0ac848bd82 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Sqrt_HVShift_HRefl.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Sqrt_HVShift_HRefl.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed sqrt function and asks for the +# Gives the graph of a transformed sqrt function and asks for the # correct equation which has this graph. # The graph always has horizontal shift and vert shift. # Also always has hori refl. @@ -15,12 +15,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -78,7 +78,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -148,7 +148,7 @@ if ($HRefl == 0) { $dstart = -$maxXVal; $dend = $b; $answer = Formula("y = $a*sqrt(-(x-$b))+$c")->reduce; - Context()->flags->set(limits=>[$dend-1,$dend]); + Context()->flags->set(limits=>[$dend-1,$dend]); } $graph->stamps(closed_circle($b,$c,'blue')); $fun = new Fun($expn, $graph); @@ -199,7 +199,7 @@ $graph->stamps(closed_circle(0,0,'green')); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -208,7 +208,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -216,7 +216,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -240,11 +240,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. +Desc: Find formula of the function that is graphed in blue. $BR Function Type: cubic $BR Transformations: horiz shift, vert shift, horiz refl'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Sqrt_HVShift_HRefl_VShr.pg b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Sqrt_HVShift_HRefl_VShr.pg index ae4dae0e37..e4c0a0821e 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Sqrt_HVShift_HRefl_VShr.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Sqrt_HVShift_HRefl_VShr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed sqrt function and asks for the +# Gives the graph of a transformed sqrt function and asks for the # correct equation which has this graph. # The graph always has horizontal shift and vert shift. # Also always has hori refl and vert shr @@ -15,12 +15,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -78,7 +78,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -148,7 +148,7 @@ if ($HRefl == 0) { $dstart = -$maxXVal; $dend = $b; $answer = Formula("y = $a*sqrt(-(x-$b))+$c")->reduce; - Context()->flags->set(limits=>[$dend-1,$dend]); + Context()->flags->set(limits=>[$dend-1,$dend]); } $graph->stamps(closed_circle($b,$c,'blue')); $fun = new Fun($expn, $graph); @@ -199,7 +199,7 @@ $graph->stamps(closed_circle(0,0,'green')); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -208,7 +208,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -216,7 +216,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -240,11 +240,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. +Desc: Find formula of the function that is graphed in blue. $BR Function Type: cubic $BR Transformations: horiz shift, vert shift, horiz refl, vert shr'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Sqrt_HVShift_HRefl_VStr.pg b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Sqrt_HVShift_HRefl_VStr.pg index 220a676106..8845de7546 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Sqrt_HVShift_HRefl_VStr.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Sqrt_HVShift_HRefl_VStr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed sqrt function and asks for the +# Gives the graph of a transformed sqrt function and asks for the # correct equation which has this graph. # The graph always has horizontal shift and vert shift. # Also always has hori refl and vert str @@ -15,12 +15,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -78,7 +78,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -150,7 +150,7 @@ if ($HRefl == 0) { $dstart = -$maxXVal; $dend = $b; $answer = Formula("y = $a*sqrt(-(x-$b))+$c")->reduce; - Context()->flags->set(limits=>[$dend-1,$dend]); + Context()->flags->set(limits=>[$dend-1,$dend]); $y = $a+$c; # $graph->stamps(closed_circle($b-1,$y,'blue')); } @@ -205,7 +205,7 @@ $graph->stamps(closed_circle(0,0,'green')); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -214,7 +214,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -222,7 +222,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -246,11 +246,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. +Desc: Find formula of the function that is graphed in blue. $BR Function Type: cubic $BR Transformations: horiz shift, vert shift, horiz refl, vert str'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Sqrt_HVShift_HVRefl.pg b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Sqrt_HVShift_HVRefl.pg index 69cce2f0a3..116e093d0e 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Sqrt_HVShift_HVRefl.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Sqrt_HVShift_HVRefl.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed sqrt function and asks for the +# Gives the graph of a transformed sqrt function and asks for the # correct equation which has this graph. # The graph always has horizontal shift and vert shift. # Also always has vert and hori refls @@ -15,12 +15,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -78,7 +78,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -148,7 +148,7 @@ if ($HRefl == 0) { $dstart = -$maxXVal; $dend = $b; $answer = Formula("y = $a*sqrt(-(x-$b))+$c")->reduce; - Context()->flags->set(limits=>[$dend-1,$dend]); + Context()->flags->set(limits=>[$dend-1,$dend]); } $graph->stamps(closed_circle($b,$c,'blue')); $fun = new Fun($expn, $graph); @@ -200,7 +200,7 @@ $graph->stamps(closed_circle(0,0,'green')); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -209,7 +209,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -217,7 +217,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -241,11 +241,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. +Desc: Find formula of the function that is graphed in blue. $BR Function Type: sqrt $BR Transformations: horiz shift, vert shift, horiz refl, vert refl'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Sqrt_HVShift_HVRefl_VShr.pg b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Sqrt_HVShift_HVRefl_VShr.pg index 96a24a1c5e..06714c2075 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Sqrt_HVShift_HVRefl_VShr.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Sqrt_HVShift_HVRefl_VShr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed sqrt function and asks for the +# Gives the graph of a transformed sqrt function and asks for the # correct equation which has this graph. # The graph always has horizontal shift and vert shift. # Also always has vert and hori refl, vert shr @@ -15,12 +15,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -78,7 +78,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -148,7 +148,7 @@ if ($HRefl == 0) { $dstart = -$maxXVal; $dend = $b; $answer = Formula("y = $a*sqrt(-(x-$b))+$c")->reduce; - Context()->flags->set(limits=>[$dend-1,$dend]); + Context()->flags->set(limits=>[$dend-1,$dend]); } $graph->stamps(closed_circle($b,$c,'blue')); $fun = new Fun($expn, $graph); @@ -200,7 +200,7 @@ $graph->stamps(closed_circle(0,0,'green')); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -209,7 +209,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -217,7 +217,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -241,11 +241,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. +Desc: Find formula of the function that is graphed in blue. $BR Function Type: sqrt $BR Transformations: horiz shift, vert shift, horiz refl, vert refl, vert shr'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Sqrt_HVShift_HVRefl_VStr.pg b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Sqrt_HVShift_HVRefl_VStr.pg index 7cbe6e1ba7..38d18daf86 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Sqrt_HVShift_HVRefl_VStr.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Sqrt_HVShift_HVRefl_VStr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed sqrt function and asks for the +# Gives the graph of a transformed sqrt function and asks for the # correct equation which has this graph. # The graph always has horizontal shift and vert shift. # Also always has vert and hori refl, vert str @@ -15,12 +15,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -78,7 +78,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -148,7 +148,7 @@ if ($HRefl == 0) { $dstart = -$maxXVal; $dend = $b; $answer = Formula("y = $a*sqrt(-(x-$b))+$c")->reduce; - Context()->flags->set(limits=>[$dend-1,$dend]); + Context()->flags->set(limits=>[$dend-1,$dend]); } $graph->stamps(closed_circle($b,$c,'blue')); $fun = new Fun($expn, $graph); @@ -198,7 +198,7 @@ $graph->stamps(closed_circle(0,0,'green')); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -207,7 +207,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -215,7 +215,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -239,11 +239,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. +Desc: Find formula of the function that is graphed in blue. $BR Function Type: sqrt $BR Transformations: horiz shift, vert shift, horiz refl, vert refl, vert str'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Sqrt_HVShift_Shr.pg b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Sqrt_HVShift_Shr.pg index 331f599250..6b2882e629 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Sqrt_HVShift_Shr.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Sqrt_HVShift_Shr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed sqrt function and asks for the +# Gives the graph of a transformed sqrt function and asks for the # correct equation which has this graph. # The graph always has horizontal shift and vert shift. # Also always has a vert shr @@ -15,12 +15,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -78,7 +78,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -148,7 +148,7 @@ if ($HRefl == 0) { $dstart = -$maxXVal; $dend = $b; $answer = Formula("y = $a*sqrt(-(x-$b))+$c")->reduce; - Context()->flags->set(limits=>[$dend-1,$dend]); + Context()->flags->set(limits=>[$dend-1,$dend]); } $graph->stamps(closed_circle($b,$c,'blue')); $fun = new Fun($expn, $graph); @@ -198,7 +198,7 @@ $graph->stamps(closed_circle(0,0,'green')); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -207,7 +207,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -215,7 +215,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -239,11 +239,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. +Desc: Find formula of the function that is graphed in blue. $BR Function Type: sqrt $BR Transformations: horiz shift, vert shift, vert shr'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Sqrt_HVShift_VRefl.pg b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Sqrt_HVShift_VRefl.pg index 9589d1c251..6b84e77c14 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Sqrt_HVShift_VRefl.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Sqrt_HVShift_VRefl.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed sqrt function and asks for the +# Gives the graph of a transformed sqrt function and asks for the # correct equation which has this graph. # The graph always has horizontal shift and vertical shift. # Also always has vert refl. @@ -15,12 +15,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -36,7 +36,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -79,7 +79,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -149,7 +149,7 @@ if ($HRefl == 0) { $dstart = -$maxXVal; $dend = $b; $answer = Formula("y = $a*sqrt(-(x-$b))+$c")->reduce; - Context()->flags->set(limits=>[$dend-1,$dend]); + Context()->flags->set(limits=>[$dend-1,$dend]); } $graph->stamps(closed_circle($b,$c,'blue')); $fun = new Fun($expn, $graph); @@ -201,7 +201,7 @@ $graph->stamps(closed_circle(0,0,'green')); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -210,7 +210,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -218,7 +218,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -242,11 +242,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. +Desc: Find formula of the function that is graphed in blue. $BR Function Type: sqrt $BR Transformations: horiz shift, vert shift, vert refl'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Sqrt_HVShift_VRefl_VShr.pg b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Sqrt_HVShift_VRefl_VShr.pg index c42b17eb93..e449528489 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Sqrt_HVShift_VRefl_VShr.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Sqrt_HVShift_VRefl_VShr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed sqrt function and asks for the +# Gives the graph of a transformed sqrt function and asks for the # correct equation which has this graph. # The graph always has horizontal shift and vert shift. # Also always has vert shift and shr @@ -15,12 +15,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -78,7 +78,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -148,7 +148,7 @@ if ($HRefl == 0) { $dstart = -$maxXVal; $dend = $b; $answer = Formula("y = $a*sqrt(-(x-$b))+$c")->reduce; - Context()->flags->set(limits=>[$dend-1,$dend]); + Context()->flags->set(limits=>[$dend-1,$dend]); } $graph->stamps(closed_circle($b,$c,'blue')); $fun = new Fun($expn, $graph); @@ -199,7 +199,7 @@ $graph->stamps(closed_circle(0,0,'green')); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -208,7 +208,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -216,7 +216,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -240,11 +240,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. +Desc: Find formula of the function that is graphed in blue. $BR Function Type: sqrt $BR Transformations: horiz shift, vert shift, vert refl, vert shr'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Sqrt_HVShift_VRefl_VStr.pg b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Sqrt_HVShift_VRefl_VStr.pg index 9a557b534c..299a2c5ff1 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Sqrt_HVShift_VRefl_VStr.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Sqrt_HVShift_VRefl_VStr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed sqrt function and asks for the +# Gives the graph of a transformed sqrt function and asks for the # correct equation which has this graph. # The graph always has horizontal shift and vert shift. # Also always has vert refl and str @@ -15,12 +15,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -78,7 +78,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -150,7 +150,7 @@ if ($HRefl == 0) { $dstart = -$maxXVal; $dend = $b; $answer = Formula("y = $a*sqrt(-(x-$b))+$c")->reduce; - Context()->flags->set(limits=>[$dend-1,$dend]); + Context()->flags->set(limits=>[$dend-1,$dend]); $y = $a+$c; $graph->stamps(closed_circle($b-1,$y,'blue')); } @@ -202,7 +202,7 @@ $graph->stamps(closed_circle(0,0,'green')); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -211,7 +211,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -219,7 +219,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -243,11 +243,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. +Desc: Find formula of the function that is graphed in blue. $BR Function Type: sqrt $BR Transformations: horiz shift, vert shift, vert refl, vert str'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Sqrt_HVShift_VStr.pg b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Sqrt_HVShift_VStr.pg index d961f7b37e..6307b6895f 100644 --- a/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Sqrt_HVShift_VStr.pg +++ b/Contrib/Mizzou/College_Algebra/Graphing_Transformations/Find_Eqn_Sqrt_HVShift_VStr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed sqrt function and asks for the +# Gives the graph of a transformed sqrt function and asks for the # correct equation which has this graph. # The graph always has horizontal shift and vert shift. # Also always has vert str. @@ -15,12 +15,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -78,7 +78,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -148,7 +148,7 @@ if ($HRefl == 0) { $dstart = -$maxXVal; $dend = $b; $answer = Formula("y = $a*sqrt(-(x-$b))+$c")->reduce; - Context()->flags->set(limits=>[$dend-1,$dend]); + Context()->flags->set(limits=>[$dend-1,$dend]); } $graph->stamps(closed_circle($b,$c,'blue')); $fun = new Fun($expn, $graph); @@ -199,7 +199,7 @@ $graph->stamps(closed_circle(0,0,'green')); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -208,7 +208,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -216,7 +216,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -240,11 +240,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. +Desc: Find formula of the function that is graphed in blue. $BR Function Type: sqrt $BR Transformations: horiz shift, vert shift, vert str'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Inequalities_Absolute_Value/AbsValue3.pg b/Contrib/Mizzou/College_Algebra/Inequalities_Absolute_Value/AbsValue3.pg index a5dbbe605b..dec3fce8ed 100644 --- a/Contrib/Mizzou/College_Algebra/Inequalities_Absolute_Value/AbsValue3.pg +++ b/Contrib/Mizzou/College_Algebra/Inequalities_Absolute_Value/AbsValue3.pg @@ -4,9 +4,9 @@ ## KEYWORDS('linear', 'inequality', 'absolute value') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Equations and Inequalities') -## DBchapter('Absolute Value') +## DBchapter('Absolute Value') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -26,7 +26,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -64,7 +64,7 @@ if($case ==1){ elsif($case ==2){ $string = '\leq'; $ans = Compute( " [$end1,$end2] " );} - + $ineq = "| $a $var + $b| $string $c "; ANS( Compute("$ans")->cmp() ); @@ -79,7 +79,7 @@ $end2f = Fraction($c-$b,$a); Context()->texStrings; BEGIN_TEXT -Solve the following inequality. Write your answer using \{ AnswerFormatHelp("intervals","interval notation") \}. +Solve the following inequality. Write your answer using \{ helpLink("intervals","interval notation") \}. $PAR \[ $ineq @@ -114,7 +114,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Inequalities_Absolute_Value/AllReals.pg b/Contrib/Mizzou/College_Algebra/Inequalities_Absolute_Value/AllReals.pg index 52a6eb6cee..427f608833 100644 --- a/Contrib/Mizzou/College_Algebra/Inequalities_Absolute_Value/AllReals.pg +++ b/Contrib/Mizzou/College_Algebra/Inequalities_Absolute_Value/AllReals.pg @@ -4,9 +4,9 @@ ## KEYWORDS('linear', 'inequality', 'absolute value') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Equations and Inequalities') -## DBchapter('Absolute Value') +## DBchapter('Absolute Value') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -26,14 +26,14 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" ); TEXT(beginproblem()); -PeriodicRerandomization("3"); +PeriodicRerandomization("3"); ################################### @@ -74,7 +74,7 @@ $ineq = "\left| $a $var - $b \right| $string $c "; Context()->texStrings; BEGIN_TEXT -Solve the following inequality. Write your answer using \{ AnswerFormatHelp("intervals","interval notation") \}. +Solve the following inequality. Write your answer using \{ helpLink("intervals","interval notation") \}. $PAR \[ $ineq @@ -100,7 +100,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Inequalities_Absolute_Value/GreaterThan.pg b/Contrib/Mizzou/College_Algebra/Inequalities_Absolute_Value/GreaterThan.pg index 4190c7b187..50d9ff77a5 100644 --- a/Contrib/Mizzou/College_Algebra/Inequalities_Absolute_Value/GreaterThan.pg +++ b/Contrib/Mizzou/College_Algebra/Inequalities_Absolute_Value/GreaterThan.pg @@ -4,9 +4,9 @@ ## KEYWORDS('linear', 'inequality', 'absolute value') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Equations and Inequalities') -## DBchapter('Absolute Value') +## DBchapter('Absolute Value') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -26,7 +26,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -62,7 +62,7 @@ if($case ==1){ elsif($case ==2){ $string = '\geq'; $ans = Compute( " (-inf,$end1]U[$end2,inf) " );} - + $ineq = "| $var| $string $a "; ANS( Compute("$ans")->cmp() ); @@ -73,7 +73,7 @@ ANS( Compute("$ans")->cmp() ); Context()->texStrings; BEGIN_TEXT -Solve the following inequality. Write your answer using \{ AnswerFormatHelp("intervals","interval notation") \}. +Solve the following inequality. Write your answer using \{ helpLink("intervals","interval notation") \}. $PAR \[ $ineq @@ -100,7 +100,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Inequalities_Absolute_Value/Ineq4.pg b/Contrib/Mizzou/College_Algebra/Inequalities_Absolute_Value/Ineq4.pg index da00310e2d..f57ac3a1b1 100644 --- a/Contrib/Mizzou/College_Algebra/Inequalities_Absolute_Value/Ineq4.pg +++ b/Contrib/Mizzou/College_Algebra/Inequalities_Absolute_Value/Ineq4.pg @@ -4,9 +4,9 @@ ## KEYWORDS('linear', 'inequality', 'absolute value') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Equations and Inequalities') -## DBchapter('Absolute Value') +## DBchapter('Absolute Value') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -26,7 +26,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -63,7 +63,7 @@ if($case ==1){ elsif($case ==2){ $string = '\leq'; $ans = Compute( " [$end1, $end2] " );} - + $ineq = "| $b - $a $var | $string $c "; ANS( Compute("$ans")->cmp() ); @@ -77,7 +77,7 @@ $end2f = Fraction($c+$b,$a); Context()->texStrings; BEGIN_TEXT -Solve the following inequality. Write your answer using \{ AnswerFormatHelp("intervals","interval notation") \}. +Solve the following inequality. Write your answer using \{ helpLink("intervals","interval notation") \}. $PAR \[ $ineq @@ -113,7 +113,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Inequalities_Absolute_Value/Ineq4b.pg b/Contrib/Mizzou/College_Algebra/Inequalities_Absolute_Value/Ineq4b.pg index aa71e13175..ed2de75e01 100644 --- a/Contrib/Mizzou/College_Algebra/Inequalities_Absolute_Value/Ineq4b.pg +++ b/Contrib/Mizzou/College_Algebra/Inequalities_Absolute_Value/Ineq4b.pg @@ -4,9 +4,9 @@ ## KEYWORDS('linear', 'inequality', 'absolute value') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Equations and Inequalities') -## DBchapter('Absolute Value') +## DBchapter('Absolute Value') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -26,7 +26,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -66,7 +66,7 @@ if($case ==1){ elsif($case ==2){ $string = '\leq'; $ans = Compute( " [$end1,$end2] " );} - + $ineq = "| $b - $a $var | - $d $string $c "; ANS( Compute("$ans")->cmp() ); @@ -77,7 +77,7 @@ ANS( Compute("$ans")->cmp() ); Context()->texStrings; BEGIN_TEXT -Solve the following inequality. Write your answer using \{ AnswerFormatHelp("intervals","interval notation") \}. +Solve the following inequality. Write your answer using \{ helpLink("intervals","interval notation") \}. $PAR \[ $ineq @@ -112,7 +112,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Inequalities_Absolute_Value/Ineq5.pg b/Contrib/Mizzou/College_Algebra/Inequalities_Absolute_Value/Ineq5.pg index 9a7c2dbbe0..cf055215d0 100644 --- a/Contrib/Mizzou/College_Algebra/Inequalities_Absolute_Value/Ineq5.pg +++ b/Contrib/Mizzou/College_Algebra/Inequalities_Absolute_Value/Ineq5.pg @@ -4,9 +4,9 @@ ## KEYWORDS('linear', 'inequality', 'absolute value') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Equations and Inequalities') -## DBchapter('Absolute Value') +## DBchapter('Absolute Value') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -26,7 +26,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -72,7 +72,7 @@ elsif($case ==2){ #elsif($case ==4){ # $string = '\leq'; # $ans = Compute( " (-inf,$end1] U [$end2,inf) " );} - + $ineq = "\left| $var + \frac{$a}{$b} \right| $string \frac{$c}{$b} "; ANS( Compute("$ans")->cmp() ); @@ -83,7 +83,7 @@ ANS( Compute("$ans")->cmp() ); Context()->texStrings; BEGIN_TEXT -Solve the following inequality. Write your answer using \{ AnswerFormatHelp("intervals","interval notation") \}. +Solve the following inequality. Write your answer using \{ helpLink("intervals","interval notation") \}. $PAR \[ $ineq @@ -118,7 +118,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Inequalities_Absolute_Value/Ineq6.pg b/Contrib/Mizzou/College_Algebra/Inequalities_Absolute_Value/Ineq6.pg index 5373625fd0..c2dcc80e92 100644 --- a/Contrib/Mizzou/College_Algebra/Inequalities_Absolute_Value/Ineq6.pg +++ b/Contrib/Mizzou/College_Algebra/Inequalities_Absolute_Value/Ineq6.pg @@ -4,9 +4,9 @@ ## KEYWORDS('linear', 'inequality', 'absolute value') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Equations and Inequalities') -## DBchapter('Absolute Value') +## DBchapter('Absolute Value') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -26,7 +26,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -70,7 +70,7 @@ elsif($case == 3){ elsif($case ==4){ $string = '\leq'; $ans = Compute( " (-inf,$end1] U [$end2,inf) " );} - + $ineq = "\left| \frac{ $var - $a}{$b} \right| $string $c "; ANS( Compute("$ans")->cmp() ); @@ -81,7 +81,7 @@ ANS( Compute("$ans")->cmp() ); Context()->texStrings; BEGIN_TEXT -Solve the following inequality. Write your answer using \{ AnswerFormatHelp("intervals","interval notation") \}. +Solve the following inequality. Write your answer using \{ helpLink("intervals","interval notation") \}. $PAR \[ $ineq @@ -107,7 +107,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); $showPartialCorrectAnswers = 1; diff --git a/Contrib/Mizzou/College_Algebra/Inequalities_Absolute_Value/LessThan.pg b/Contrib/Mizzou/College_Algebra/Inequalities_Absolute_Value/LessThan.pg index 6c3274d9ff..d5f52efdc5 100644 --- a/Contrib/Mizzou/College_Algebra/Inequalities_Absolute_Value/LessThan.pg +++ b/Contrib/Mizzou/College_Algebra/Inequalities_Absolute_Value/LessThan.pg @@ -4,9 +4,9 @@ ## KEYWORDS('linear', 'inequality', 'absolute value') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Equations and Inequalities') -## DBchapter('Absolute Value') +## DBchapter('Absolute Value') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -26,7 +26,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -70,7 +70,7 @@ elsif($case ==2){ # $string1 = '\leq'; # $string2 = '\geq'; # $ans = Compute( " (-inf,$end1] U [$end2,inf) " );} - + $ineq = "| $var| $string $a "; ANS( Compute("$ans")->cmp() ); @@ -81,7 +81,7 @@ ANS( Compute("$ans")->cmp() ); Context()->texStrings; BEGIN_TEXT -Solve the following inequality. Write your answer using \{ AnswerFormatHelp("intervals","interval notation") \}. +Solve the following inequality. Write your answer using \{ helpLink("intervals","interval notation") \}. $PAR \[ $ineq @@ -108,7 +108,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Inequalities_Absolute_Value/NoSolution.pg b/Contrib/Mizzou/College_Algebra/Inequalities_Absolute_Value/NoSolution.pg index 3ef51d1e0e..4df116601a 100644 --- a/Contrib/Mizzou/College_Algebra/Inequalities_Absolute_Value/NoSolution.pg +++ b/Contrib/Mizzou/College_Algebra/Inequalities_Absolute_Value/NoSolution.pg @@ -4,9 +4,9 @@ ## KEYWORDS('linear', 'inequality', 'absolute value') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Equations and Inequalities') -## DBchapter('Absolute Value') +## DBchapter('Absolute Value') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -26,7 +26,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -72,7 +72,7 @@ $ineq = "\left| $a $var - $b \right| $string $c "; Context()->texStrings; BEGIN_TEXT -Solve the following inequality. Write your answer using \{ AnswerFormatHelp("intervals","interval notation") \}. +Solve the following inequality. Write your answer using \{ helpLink("intervals","interval notation") \}. $PAR \[ $ineq @@ -98,7 +98,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Inequalities_Absolute_Value/NoSolution2.pg b/Contrib/Mizzou/College_Algebra/Inequalities_Absolute_Value/NoSolution2.pg index 3b21d2ed11..2900a6c32b 100644 --- a/Contrib/Mizzou/College_Algebra/Inequalities_Absolute_Value/NoSolution2.pg +++ b/Contrib/Mizzou/College_Algebra/Inequalities_Absolute_Value/NoSolution2.pg @@ -4,9 +4,9 @@ ## KEYWORDS('linear', 'inequality', 'absolute value') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Equations and Inequalities') -## DBchapter('Absolute Value') +## DBchapter('Absolute Value') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -26,7 +26,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -73,7 +73,7 @@ $ineq = "\left| $a $var - $b \right| - $d $string $c "; Context()->texStrings; BEGIN_TEXT -Solve the following inequality. Write your answer using \{ AnswerFormatHelp("intervals","interval notation") \}. +Solve the following inequality. Write your answer using \{ helpLink("intervals","interval notation") \}. $PAR \[ $ineq @@ -99,7 +99,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Inequalities_Absolute_Value/PossiblyNoSolution.pg b/Contrib/Mizzou/College_Algebra/Inequalities_Absolute_Value/PossiblyNoSolution.pg index a2ab4be9a7..d319226b7b 100644 --- a/Contrib/Mizzou/College_Algebra/Inequalities_Absolute_Value/PossiblyNoSolution.pg +++ b/Contrib/Mizzou/College_Algebra/Inequalities_Absolute_Value/PossiblyNoSolution.pg @@ -4,9 +4,9 @@ ## KEYWORDS('linear', 'inequality', 'absolute value') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Equations and Inequalities') -## DBchapter('Absolute Value') +## DBchapter('Absolute Value') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -26,7 +26,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -81,7 +81,7 @@ $ineq = "\left| $a $var - $b \right| $string $c "; Context()->texStrings; BEGIN_TEXT -Solve the following inequality. Write your answer using \{ AnswerFormatHelp("intervals","interval notation") \}. +Solve the following inequality. Write your answer using \{ helpLink("intervals","interval notation") \}. $PAR \[ $ineq @@ -107,7 +107,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Inequalities_Linear/Compound1.pg b/Contrib/Mizzou/College_Algebra/Inequalities_Linear/Compound1.pg index ec10f62dac..2f5ced7572 100644 --- a/Contrib/Mizzou/College_Algebra/Inequalities_Linear/Compound1.pg +++ b/Contrib/Mizzou/College_Algebra/Inequalities_Linear/Compound1.pg @@ -4,9 +4,9 @@ ## KEYWORDS('linear', 'inequality') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Equations and Inequalities') -## DBchapter('Linear Inequalities') +## DBchapter('Linear Inequalities') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -70,7 +70,7 @@ elsif($case ==4){ $string1 = '\leq'; $string2 = '\leq'; $ans = Compute( " [$end1,$end2] " );} - + $ineq = "$a $string1 $var + $b $string2 $ac "; $interval = Compute("[1,2)"); @@ -103,12 +103,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Inequalities_Linear/Compound2.pg b/Contrib/Mizzou/College_Algebra/Inequalities_Linear/Compound2.pg index 9ba0fd74ba..f6c82950cb 100644 --- a/Contrib/Mizzou/College_Algebra/Inequalities_Linear/Compound2.pg +++ b/Contrib/Mizzou/College_Algebra/Inequalities_Linear/Compound2.pg @@ -4,9 +4,9 @@ ## KEYWORDS('linear', 'inequality') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Equations and Inequalities') -## DBchapter('Linear Inequalities') +## DBchapter('Linear Inequalities') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -80,7 +80,7 @@ elsif($case ==4){ $string1 = '\leq'; $string2 = '\leq'; $ans = Compute( " [$end1,$end2] " );} - + $ineq = "$a $string1 $d $var + $b $string2 $ac "; ANS( Compute($ans)->cmp() ); @@ -130,18 +130,18 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { \(\left[$end1,$end2\right]\) $PAR END_TEXT - } + } } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); $showPartialCorrectAnswers = 1; diff --git a/Contrib/Mizzou/College_Algebra/Inequalities_Linear/Compound3.pg b/Contrib/Mizzou/College_Algebra/Inequalities_Linear/Compound3.pg index 47e7bca9b6..f3fa98c0aa 100644 --- a/Contrib/Mizzou/College_Algebra/Inequalities_Linear/Compound3.pg +++ b/Contrib/Mizzou/College_Algebra/Inequalities_Linear/Compound3.pg @@ -4,9 +4,9 @@ ## KEYWORDS('linear', 'inequality') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Equations and Inequalities') -## DBchapter('Linear Inequalities') +## DBchapter('Linear Inequalities') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -78,7 +78,7 @@ elsif($case ==4){ $string1 = '\leq'; $string2 = '\leq'; $ans = Compute( " [$end1,$end2] " );} - + $ineq = "$a $string1 $b - $var $string2 $ac "; ANS( Compute($ans)->cmp() ); @@ -110,14 +110,14 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Inequalities_Linear/Digital_Hubs.pg b/Contrib/Mizzou/College_Algebra/Inequalities_Linear/Digital_Hubs.pg index b6d648f662..b45d7560a5 100644 --- a/Contrib/Mizzou/College_Algebra/Inequalities_Linear/Digital_Hubs.pg +++ b/Contrib/Mizzou/College_Algebra/Inequalities_Linear/Digital_Hubs.pg @@ -17,12 +17,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "contextInequalities.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Inequalities-Only"); do { @@ -49,7 +49,7 @@ $ans = Compute("x >= $x"); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -60,7 +60,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($ans)->cmp()); @@ -78,12 +78,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("inequalities", "Click here for help entering inequalities.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("inequalities", "Click here for help entering inequalities.")\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Inequalities_Linear/FractionCompound.pg b/Contrib/Mizzou/College_Algebra/Inequalities_Linear/FractionCompound.pg index 3eecee138f..4138cd7ccb 100644 --- a/Contrib/Mizzou/College_Algebra/Inequalities_Linear/FractionCompound.pg +++ b/Contrib/Mizzou/College_Algebra/Inequalities_Linear/FractionCompound.pg @@ -4,9 +4,9 @@ ## KEYWORDS('linear', 'inequality') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Equations and Inequalities') -## DBchapter('Linear Inequalities') +## DBchapter('Linear Inequalities') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -77,7 +77,7 @@ elsif($case ==4){ $string1 = '\leq'; $string2 = '\leq'; $ans = Compute( " [$end1,$end2] " );} - + $ineq = "$a $string1 \frac{$var + $b}{$c} $string2 $ad "; $interval = Compute("[1,2)"); @@ -89,7 +89,7 @@ ANS( Compute($ans)->cmp() ); Context()->texStrings; BEGIN_TEXT -Solve the following inequality. Write your answer using \{ AnswerFormatHelp("intervals","interval notation") \}. +Solve the following inequality. Write your answer using \{ helpLink("intervals","interval notation") \}. $PAR \[ $ineq @@ -115,7 +115,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Inequalities_Linear/Income_Plans.pg b/Contrib/Mizzou/College_Algebra/Inequalities_Linear/Income_Plans.pg index b7d3321383..d66923c70b 100644 --- a/Contrib/Mizzou/College_Algebra/Inequalities_Linear/Income_Plans.pg +++ b/Contrib/Mizzou/College_Algebra/Inequalities_Linear/Income_Plans.pg @@ -16,12 +16,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "contextCurrency.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); do { @@ -75,7 +75,7 @@ Context("Inequalities-Only"); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -92,7 +92,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($ans)->cmp()); @@ -113,7 +113,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Inequalities_Linear/Ine2.pg b/Contrib/Mizzou/College_Algebra/Inequalities_Linear/Ine2.pg index 4b779dda9d..d0b3c08a67 100644 --- a/Contrib/Mizzou/College_Algebra/Inequalities_Linear/Ine2.pg +++ b/Contrib/Mizzou/College_Algebra/Inequalities_Linear/Ine2.pg @@ -4,9 +4,9 @@ ## KEYWORDS('linear', 'inequality') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Equations and Inequalities') -## DBchapter('Linear Inequalities') +## DBchapter('Linear Inequalities') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -120,18 +120,18 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { \(\left(-\infty,$endpoint\right]\) $PAR END_TEXT - } + } } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{ AnswerFormatHelp("intervals","Click here for help entering intervals as answers.") \}. + ${BBOLD}Help:${EBOLD} \{ helpLink("intervals","Click here for help entering intervals as answers.") \}. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); $showPartialCorrectAnswers = 1; diff --git a/Contrib/Mizzou/College_Algebra/Inequalities_Linear/Ineq1.pg b/Contrib/Mizzou/College_Algebra/Inequalities_Linear/Ineq1.pg index c3440852cd..fff675141a 100644 --- a/Contrib/Mizzou/College_Algebra/Inequalities_Linear/Ineq1.pg +++ b/Contrib/Mizzou/College_Algebra/Inequalities_Linear/Ineq1.pg @@ -4,9 +4,9 @@ ## KEYWORDS('linear' 'inequality') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Systems of Equations and Inequalities') -## DBchapter('Systems of Equations') +## DBchapter('Systems of Equations') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -26,7 +26,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -122,18 +122,18 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { \(\left(-\infty,$endpoint\right]\) $PAR END_TEXT - } + } } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{ AnswerFormatHelp("intervals","Click here for help entering intervals as answers.") \}. + ${BBOLD}Help:${EBOLD} \{ helpLink("intervals","Click here for help entering intervals as answers.") \}. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Inequalities_Linear/Ineq3.pg b/Contrib/Mizzou/College_Algebra/Inequalities_Linear/Ineq3.pg index dcec089c9a..d118b7aa4a 100644 --- a/Contrib/Mizzou/College_Algebra/Inequalities_Linear/Ineq3.pg +++ b/Contrib/Mizzou/College_Algebra/Inequalities_Linear/Ineq3.pg @@ -4,9 +4,9 @@ ## KEYWORDS('linear', 'inequality') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Equations and Inequalities') -## DBchapter('Linear Inequalities') +## DBchapter('Linear Inequalities') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -74,7 +74,7 @@ elsif($case == 3){ elsif($case ==4){ $string = '\leq'; $ans = Compute( " (-inf,$endpoint] " );} - + $ineq = "$ab $var + $a( $e + $var) $string $c $var + $d"; $interval = Compute("[1,2)"); @@ -86,7 +86,7 @@ ANS( Compute($ans)->cmp() ); Context()->texStrings; BEGIN_TEXT -Solve the following inequality. Write your answer using \{ AnswerFormatHelp("intervals","interval notation") \}. +Solve the following inequality. Write your answer using \{ helpLink("intervals","interval notation") \}. $PAR \[ $ineq @@ -126,7 +126,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { \(\left(-\infty,$endpoint\right]\) $PAR END_TEXT - } + } } else { BEGIN_TEXT $BR @@ -135,7 +135,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Inequalities_Linear/Ineq5.pg b/Contrib/Mizzou/College_Algebra/Inequalities_Linear/Ineq5.pg index 28c2142764..32609ee55f 100644 --- a/Contrib/Mizzou/College_Algebra/Inequalities_Linear/Ineq5.pg +++ b/Contrib/Mizzou/College_Algebra/Inequalities_Linear/Ineq5.pg @@ -4,9 +4,9 @@ ## KEYWORDS('linear', 'inequality') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Equations and Inequalities') -## DBchapter('Linear Inequalities') +## DBchapter('Linear Inequalities') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -75,7 +75,7 @@ elsif($case == 3){ elsif($case ==4){ $string = '\leq'; $ans = Compute( " (-inf,$endpoint] " );} - + $ineq = "$a ($b $var - $d)($var + $e) $string $ab $var ($var - $c)"; $interval = Compute("[1,2)"); @@ -87,7 +87,7 @@ ANS( Compute($ans)->cmp() ); Context()->texStrings; BEGIN_TEXT -Solve the following inequality. Write your answer using \{ AnswerFormatHelp("intervals","interval notation") \}. +Solve the following inequality. Write your answer using \{ helpLink("intervals","interval notation") \}. $PAR \[ $ineq @@ -127,7 +127,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { \(\left(-\infty,$endpoint\right]\) $PAR END_TEXT - } + } } else { BEGIN_TEXT $BR @@ -136,7 +136,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Inequalities_Linear/IneqFractions.pg b/Contrib/Mizzou/College_Algebra/Inequalities_Linear/IneqFractions.pg index f6bf7010f6..7169afd005 100644 --- a/Contrib/Mizzou/College_Algebra/Inequalities_Linear/IneqFractions.pg +++ b/Contrib/Mizzou/College_Algebra/Inequalities_Linear/IneqFractions.pg @@ -4,9 +4,9 @@ ## KEYWORDS('linear', 'inequality') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Equations and Inequalities') -## DBchapter('Linear Inequalities') +## DBchapter('Linear Inequalities') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -77,7 +77,7 @@ elsif($case == 3){ elsif($case ==4){ $string = '\leq'; $ans = Compute( " (-inf,$endpoint] " );} - + $ineq = "\frac{$e}{$f} $var - \frac{$c}{$d} $string - \frac{$a}{$b} $var"; $interval = Compute("[1,2)"); @@ -131,18 +131,18 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { \(\left(-\infty,$endpoint\right]\) $PAR END_TEXT - } + } } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{ AnswerFormatHelp("intervals","Click here for help entering intervals as answers.") \}. + ${BBOLD}Help:${EBOLD} \{ helpLink("intervals","Click here for help entering intervals as answers.") \}. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); $showPartialCorrectAnswers = 1; diff --git a/Contrib/Mizzou/College_Algebra/Inequalities_Linear/IneqUnion.pg b/Contrib/Mizzou/College_Algebra/Inequalities_Linear/IneqUnion.pg index 2374000e36..97c5091688 100644 --- a/Contrib/Mizzou/College_Algebra/Inequalities_Linear/IneqUnion.pg +++ b/Contrib/Mizzou/College_Algebra/Inequalities_Linear/IneqUnion.pg @@ -4,9 +4,9 @@ ## KEYWORDS('linear', 'inequality') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Equations and Inequalities') -## DBchapter('Linear Inequalities') +## DBchapter('Linear Inequalities') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -81,7 +81,7 @@ elsif($case ==4){ $string1 = '\leq'; $string2 = '\geq'; $ans = Compute( " (-inf,$end1] U [$end2,inf) " );} - + $ineq = "$a $var $string1 $minusb $or $var - $c $string2 $dc "; ANS( Compute("$ans")->cmp() ); @@ -92,7 +92,7 @@ ANS( Compute("$ans")->cmp() ); Context()->texStrings; BEGIN_TEXT -Solve the following inequality. Write your answer in interval notation or if no solutions exist write ${BBOLD}no solutions${EBOLD}. +Solve the following inequality. Write your answer in interval notation or if no solutions exist write ${BBOLD}no solutions${EBOLD}. $PAR \[ $ineq @@ -132,18 +132,18 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { \(\left(-\infty,$end1\right]\cup \left[$end2,\infty\right)\) $PAR END_TEXT - } + } } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Inequalities_Linear/Investment_Income.pg b/Contrib/Mizzou/College_Algebra/Inequalities_Linear/Investment_Income.pg index 79cd12a39d..9a2e9e16e5 100644 --- a/Contrib/Mizzou/College_Algebra/Inequalities_Linear/Investment_Income.pg +++ b/Contrib/Mizzou/College_Algebra/Inequalities_Linear/Investment_Income.pg @@ -16,12 +16,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "contextCurrency.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); do { @@ -52,7 +52,7 @@ $I = Currency($I); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -63,7 +63,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($x)->cmp()); @@ -84,7 +84,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Inequalities_Linear/Moving_Costs.pg b/Contrib/Mizzou/College_Algebra/Inequalities_Linear/Moving_Costs.pg index 73102aa22d..e327fbedc1 100644 --- a/Contrib/Mizzou/College_Algebra/Inequalities_Linear/Moving_Costs.pg +++ b/Contrib/Mizzou/College_Algebra/Inequalities_Linear/Moving_Costs.pg @@ -16,12 +16,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "contextInequalities.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Inequalities-Only")->variables->are(t => "Real"); $case = random(0,1); # 0 - less, 1 - more @@ -55,7 +55,7 @@ if ($case == 0) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -66,7 +66,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($ans)->cmp()); @@ -84,12 +84,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("inequalities", "Click here for help entering inequalities.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("inequalities", "Click here for help entering inequalities.")\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Inequalities_Polynomial/9.pg b/Contrib/Mizzou/College_Algebra/Inequalities_Polynomial/9.pg index 87df7d4f21..d1b4d03ff0 100644 --- a/Contrib/Mizzou/College_Algebra/Inequalities_Polynomial/9.pg +++ b/Contrib/Mizzou/College_Algebra/Inequalities_Polynomial/9.pg @@ -4,9 +4,9 @@ ## KEYWORDS('nonlinear inequality', 'polynomial') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Equations and Inequalities') -## DBchapter('Nonlinear Inequalities') +## DBchapter('Nonlinear Inequalities') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -26,7 +26,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -81,7 +81,7 @@ $ineq = " $var^3 - $a $var^2 - $a2 $var $string -$a3 "; Context()->texStrings; BEGIN_TEXT -Solve the following inequality. Write your answer using \{ AnswerFormatHelp("intervals","interval notation") \}. +Solve the following inequality. Write your answer using \{ helpLink("intervals","interval notation") \}. $PAR \[ $ineq @@ -92,14 +92,14 @@ $PAR END_TEXT if ($attempts_modp == 0 && $actualAttempts != 0) { - + BEGIN_TEXT $PAR $BBOLD Answer: $EBOLD \($ans\) $PAR END_TEXT - + } else { BEGIN_TEXT $BR @@ -108,7 +108,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Inequalities_Polynomial/Factored.pg b/Contrib/Mizzou/College_Algebra/Inequalities_Polynomial/Factored.pg index f543fecb21..f3943a6e82 100644 --- a/Contrib/Mizzou/College_Algebra/Inequalities_Polynomial/Factored.pg +++ b/Contrib/Mizzou/College_Algebra/Inequalities_Polynomial/Factored.pg @@ -4,9 +4,9 @@ ## KEYWORDS('nonlinear inequality', 'polynomial') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Equations and Inequalities') -## DBchapter('Nonlinear Inequalities') +## DBchapter('Nonlinear Inequalities') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -25,7 +25,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -81,7 +81,7 @@ $ineq = " -$c ($var - $a1)($var + $a2)^2($var - $a3) $string 0 "; Context()->texStrings; BEGIN_TEXT -Solve the following inequality. Write your answer using \{ AnswerFormatHelp("intervals","interval notation") \}. +Solve the following inequality. Write your answer using \{ helpLink("intervals","interval notation") \}. $PAR \[ $ineq diff --git a/Contrib/Mizzou/College_Algebra/Inequalities_Polynomial/Groupingb.pg b/Contrib/Mizzou/College_Algebra/Inequalities_Polynomial/Groupingb.pg index 90a596ab60..6bf0d3b87f 100644 --- a/Contrib/Mizzou/College_Algebra/Inequalities_Polynomial/Groupingb.pg +++ b/Contrib/Mizzou/College_Algebra/Inequalities_Polynomial/Groupingb.pg @@ -4,9 +4,9 @@ ## KEYWORDS('nonlinear inequality', 'polynomial') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Equations and Inequalities') -## DBchapter('Nonlinear Inequalities') +## DBchapter('Nonlinear Inequalities') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -25,7 +25,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -83,7 +83,7 @@ $ineq = " $e1 $var^2 + $e2 $var $string $e3 "; Context()->texStrings; BEGIN_TEXT -Solve the following inequality. Write your answer using \{ AnswerFormatHelp("intervals","interval notation") \}. +Solve the following inequality. Write your answer using \{ helpLink("intervals","interval notation") \}. $PAR \[ $ineq diff --git a/Contrib/Mizzou/College_Algebra/Inequalities_Polynomial/IneqPoly3.pg b/Contrib/Mizzou/College_Algebra/Inequalities_Polynomial/IneqPoly3.pg index 90a596ab60..6bf0d3b87f 100644 --- a/Contrib/Mizzou/College_Algebra/Inequalities_Polynomial/IneqPoly3.pg +++ b/Contrib/Mizzou/College_Algebra/Inequalities_Polynomial/IneqPoly3.pg @@ -4,9 +4,9 @@ ## KEYWORDS('nonlinear inequality', 'polynomial') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Equations and Inequalities') -## DBchapter('Nonlinear Inequalities') +## DBchapter('Nonlinear Inequalities') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -25,7 +25,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -83,7 +83,7 @@ $ineq = " $e1 $var^2 + $e2 $var $string $e3 "; Context()->texStrings; BEGIN_TEXT -Solve the following inequality. Write your answer using \{ AnswerFormatHelp("intervals","interval notation") \}. +Solve the following inequality. Write your answer using \{ helpLink("intervals","interval notation") \}. $PAR \[ $ineq diff --git a/Contrib/Mizzou/College_Algebra/Inequalities_Polynomial/Quadratic7.pg b/Contrib/Mizzou/College_Algebra/Inequalities_Polynomial/Quadratic7.pg index 99ebc3dfa1..e56f369b61 100644 --- a/Contrib/Mizzou/College_Algebra/Inequalities_Polynomial/Quadratic7.pg +++ b/Contrib/Mizzou/College_Algebra/Inequalities_Polynomial/Quadratic7.pg @@ -4,9 +4,9 @@ ## KEYWORDS('nonlinear inequality', 'polynomial') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Equations and Inequalities') -## DBchapter('Nonlinear Inequalities') +## DBchapter('Nonlinear Inequalities') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -26,7 +26,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -87,7 +87,7 @@ $ineq = " $var^2 + $f1 $var + $f2 $string $d1 $var + $d2 "; Context()->texStrings; BEGIN_TEXT -Solve the following inequality. Write your answer using \{ AnswerFormatHelp("intervals","interval notation") \}. +Solve the following inequality. Write your answer using \{ helpLink("intervals","interval notation") \}. $PAR \[ $ineq @@ -98,7 +98,7 @@ $PAR END_TEXT if ($attempts_modp == 0 && $actualAttempts != 0) { - + BEGIN_TEXT $PAR @@ -106,7 +106,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { \($ans\) $PAR END_TEXT - + } else { BEGIN_TEXT $BR @@ -115,7 +115,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Inequalities_Polynomial/multipliedGrouping.pg b/Contrib/Mizzou/College_Algebra/Inequalities_Polynomial/multipliedGrouping.pg index 75fd3f853a..cb6c079ac4 100644 --- a/Contrib/Mizzou/College_Algebra/Inequalities_Polynomial/multipliedGrouping.pg +++ b/Contrib/Mizzou/College_Algebra/Inequalities_Polynomial/multipliedGrouping.pg @@ -4,9 +4,9 @@ ## KEYWORDS('nonlinear inequality', 'polynomial') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Equations and Inequalities') -## DBchapter('Nonlinear Inequalities') +## DBchapter('Nonlinear Inequalities') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -25,7 +25,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -80,7 +80,7 @@ $ineq = " $var^3 - $a $var^2 + $a2 $var^2 $string $a3 "; Context()->texStrings; BEGIN_TEXT -Solve the following inequality. Write your answer using \{ AnswerFormatHelp("intervals","interval notation") \}. +Solve the following inequality. Write your answer using \{ helpLink("intervals","interval notation") \}. $PAR \[ $ineq diff --git a/Contrib/Mizzou/College_Algebra/Inequalities_Rational/Ratl1.pg b/Contrib/Mizzou/College_Algebra/Inequalities_Rational/Ratl1.pg index 49c34e66cf..2304e46cd6 100644 --- a/Contrib/Mizzou/College_Algebra/Inequalities_Rational/Ratl1.pg +++ b/Contrib/Mizzou/College_Algebra/Inequalities_Rational/Ratl1.pg @@ -4,9 +4,9 @@ ## KEYWORDS('nonlinear inequality', 'polynomial') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Equations and Inequalities') -## DBchapter('Nonlinear Inequalities') +## DBchapter('Nonlinear Inequalities') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -26,7 +26,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -81,7 +81,7 @@ $ineq = " \frac{$var - $a}{$var + $b} $string 0 "; Context()->texStrings; BEGIN_TEXT -Solve the following inequality. Write your answer using \{ AnswerFormatHelp("intervals","interval notation") \}. +Solve the following inequality. Write your answer using \{ helpLink("intervals","interval notation") \}. $PAR \[ $ineq @@ -92,7 +92,7 @@ $PAR END_TEXT if ($attempts_modp == 0 && $actualAttempts != 0) { - + BEGIN_TEXT $PAR $BBOLD Answer: $EBOLD @@ -108,7 +108,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Inequalities_Rational/Ratl1a.pg b/Contrib/Mizzou/College_Algebra/Inequalities_Rational/Ratl1a.pg index ac5a602f66..4f2031051f 100644 --- a/Contrib/Mizzou/College_Algebra/Inequalities_Rational/Ratl1a.pg +++ b/Contrib/Mizzou/College_Algebra/Inequalities_Rational/Ratl1a.pg @@ -4,9 +4,9 @@ ## KEYWORDS('nonlinear inequality', 'polynomial') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Equations and Inequalities') -## DBchapter('Nonlinear Inequalities') +## DBchapter('Nonlinear Inequalities') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -26,7 +26,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -80,7 +80,7 @@ $ineq = " \frac{$var}{($var - $b)^2} $string 0 "; Context()->texStrings; BEGIN_TEXT -Solve the following inequality. Write your answer using \{ AnswerFormatHelp("intervals","interval notation") \}. +Solve the following inequality. Write your answer using \{ helpLink("intervals","interval notation") \}. $PAR \[ $ineq @@ -105,7 +105,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Inequalities_Rational/Ratl2.pg b/Contrib/Mizzou/College_Algebra/Inequalities_Rational/Ratl2.pg index 643e0609e0..da152fb001 100644 --- a/Contrib/Mizzou/College_Algebra/Inequalities_Rational/Ratl2.pg +++ b/Contrib/Mizzou/College_Algebra/Inequalities_Rational/Ratl2.pg @@ -4,9 +4,9 @@ ## KEYWORDS('nonlinear inequality', 'polynomial') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Equations and Inequalities') -## DBchapter('Nonlinear Inequalities') +## DBchapter('Nonlinear Inequalities') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -26,7 +26,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -83,7 +83,7 @@ $ineq = " \frac{$a $var}{($var - $b)($var + $c)} $string 0 "; Context()->texStrings; BEGIN_TEXT -Solve the following inequality. Write your answer using \{ AnswerFormatHelp("intervals","interval notation") \}. +Solve the following inequality. Write your answer using \{ helpLink("intervals","interval notation") \}. $PAR \[ $ineq @@ -94,14 +94,14 @@ $PAR END_TEXT if ($attempts_modp == 0 && $actualAttempts != 0) { - + BEGIN_TEXT $PAR $BBOLD Answer: $EBOLD \($ans\) $PAR END_TEXT - + } else { BEGIN_TEXT $BR @@ -110,7 +110,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); $showPartialCorrectAnswers = 1; diff --git a/Contrib/Mizzou/College_Algebra/Inequalities_Rational/Ratl3.pg b/Contrib/Mizzou/College_Algebra/Inequalities_Rational/Ratl3.pg index 37324bfeb8..99bd6217bc 100644 --- a/Contrib/Mizzou/College_Algebra/Inequalities_Rational/Ratl3.pg +++ b/Contrib/Mizzou/College_Algebra/Inequalities_Rational/Ratl3.pg @@ -4,9 +4,9 @@ ## KEYWORDS('nonlinear inequality', 'polynomial') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Equations and Inequalities') -## DBchapter('Nonlinear Inequalities') +## DBchapter('Nonlinear Inequalities') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -26,7 +26,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -95,7 +95,7 @@ if ($e1 != 0) { Context()->texStrings; BEGIN_TEXT -Solve the following inequality. Write your answer using \{ AnswerFormatHelp("intervals","interval notation") \}. +Solve the following inequality. Write your answer using \{ helpLink("intervals","interval notation") \}. $PAR \[ $ineq @@ -113,7 +113,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { \($ans\) $PAR END_TEXT - + } else { BEGIN_TEXT $BR @@ -122,7 +122,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); $showPartialCorrectAnswers = 1; diff --git a/Contrib/Mizzou/College_Algebra/Inequalities_Rational/Ratl4.pg b/Contrib/Mizzou/College_Algebra/Inequalities_Rational/Ratl4.pg index 20895ff9dd..1cce91ae70 100644 --- a/Contrib/Mizzou/College_Algebra/Inequalities_Rational/Ratl4.pg +++ b/Contrib/Mizzou/College_Algebra/Inequalities_Rational/Ratl4.pg @@ -4,9 +4,9 @@ ## KEYWORDS('nonlinear inequality', 'polynomial') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Equations and Inequalities') -## DBchapter('Nonlinear Inequalities') +## DBchapter('Nonlinear Inequalities') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -26,7 +26,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -83,7 +83,7 @@ $ineq = " \frac{$a $var}{$var^2 - $b2} $string 0 "; Context()->texStrings; BEGIN_TEXT -Solve the following inequality. Write your answer using \{ AnswerFormatHelp("intervals","interval notation") \}. +Solve the following inequality. Write your answer using \{ helpLink("intervals","interval notation") \}. $PAR \[ $ineq @@ -108,7 +108,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Inequalities_Rational/Ratl5.pg b/Contrib/Mizzou/College_Algebra/Inequalities_Rational/Ratl5.pg index 479e371637..cbcc7a6f5a 100644 --- a/Contrib/Mizzou/College_Algebra/Inequalities_Rational/Ratl5.pg +++ b/Contrib/Mizzou/College_Algebra/Inequalities_Rational/Ratl5.pg @@ -4,9 +4,9 @@ ## KEYWORDS('nonlinear inequality', 'polynomial') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Equations and Inequalities') -## DBchapter('Nonlinear Inequalities') +## DBchapter('Nonlinear Inequalities') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -26,7 +26,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -86,7 +86,7 @@ $ineq = " \frac{ $var + $a }{ $var + $b } - \frac{ $var - $c }{ $var - $b } $str Context()->texStrings; BEGIN_TEXT -Solve the following inequality. Write your answer using \{ AnswerFormatHelp("intervals","interval notation") \}. +Solve the following inequality. Write your answer using \{ helpLink("intervals","interval notation") \}. $PAR \[ $ineq @@ -125,7 +125,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { \( \left(-\infty,$end1\right]\cup \left($end2,$end3\right)\) $PAR END_TEXT - } + } } else { BEGIN_TEXT $BR @@ -134,7 +134,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Inequalities_Rational/Ratl6(copy).pg b/Contrib/Mizzou/College_Algebra/Inequalities_Rational/Ratl6(copy).pg index 4214896e07..f752953bca 100644 --- a/Contrib/Mizzou/College_Algebra/Inequalities_Rational/Ratl6(copy).pg +++ b/Contrib/Mizzou/College_Algebra/Inequalities_Rational/Ratl6(copy).pg @@ -4,9 +4,9 @@ ## KEYWORDS('nonlinear inequality', 'polynomial') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Equations and Inequalities') -## DBchapter('Nonlinear Inequalities') +## DBchapter('Nonlinear Inequalities') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -26,7 +26,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -92,7 +92,7 @@ $ineq = " $c $string2 \frac{ $var - $a }{ $var + $b } "; Context()->texStrings; BEGIN_TEXT -Solve the following inequality. Write your answer using \{ AnswerFormatHelp("intervals","interval notation") \}. +Solve the following inequality. Write your answer using \{ helpLink("intervals","interval notation") \}. $PAR \[ $ineq @@ -130,7 +130,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { \( \left[$end1,$end2\right)\) $PAR END_TEXT - } + } } else { BEGIN_TEXT $BR @@ -139,7 +139,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Inequalities_Rational/Ratl6.pg b/Contrib/Mizzou/College_Algebra/Inequalities_Rational/Ratl6.pg index 43f4da9e90..086c1cc4c8 100644 --- a/Contrib/Mizzou/College_Algebra/Inequalities_Rational/Ratl6.pg +++ b/Contrib/Mizzou/College_Algebra/Inequalities_Rational/Ratl6.pg @@ -4,9 +4,9 @@ ## KEYWORDS('nonlinear inequality', 'polynomial') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Equations and Inequalities') -## DBchapter('Nonlinear Inequalities') +## DBchapter('Nonlinear Inequalities') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -25,7 +25,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -80,7 +80,7 @@ $ineq = " \frac{ $var - $a }{ $var + $b } $string $c "; Context()->texStrings; BEGIN_TEXT -Solve the following inequality. Write your answer using \{ AnswerFormatHelp("intervals","interval notation") \}. +Solve the following inequality. Write your answer using \{ helpLink("intervals","interval notation") \}. $PAR \[ $ineq diff --git a/Contrib/Mizzou/College_Algebra/Inequalities_Rational/Ratl6a.pg b/Contrib/Mizzou/College_Algebra/Inequalities_Rational/Ratl6a.pg index 7e1d3d5769..6208bfa7ed 100644 --- a/Contrib/Mizzou/College_Algebra/Inequalities_Rational/Ratl6a.pg +++ b/Contrib/Mizzou/College_Algebra/Inequalities_Rational/Ratl6a.pg @@ -4,9 +4,9 @@ ## KEYWORDS('nonlinear inequality', 'polynomial') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Equations and Inequalities') -## DBchapter('Nonlinear Inequalities') +## DBchapter('Nonlinear Inequalities') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -26,7 +26,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -85,7 +85,7 @@ $ineq = " \frac{ $var - $a }{ $var + $b } $string $c "; Context()->texStrings; BEGIN_TEXT -Solve the following inequality. Write your answer using \{ AnswerFormatHelp("intervals","interval notation") \}. +Solve the following inequality. Write your answer using \{ helpLink("intervals","interval notation") \}. $PAR \[ $ineq @@ -124,7 +124,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { \( \left[$end1,$end2\right)\) $PAR END_TEXT - } + } } else { BEGIN_TEXT $BR @@ -133,7 +133,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Introduction_to_Polynomials/DifferenceOfSquares2.pg b/Contrib/Mizzou/College_Algebra/Introduction_to_Polynomials/DifferenceOfSquares2.pg index 63a2217d6a..f7e7efa5b0 100644 --- a/Contrib/Mizzou/College_Algebra/Introduction_to_Polynomials/DifferenceOfSquares2.pg +++ b/Contrib/Mizzou/College_Algebra/Introduction_to_Polynomials/DifferenceOfSquares2.pg @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGcourse.pl" ); @@ -72,7 +72,7 @@ Context()->{error}{convert} = sub { BEGIN_TEXT -Expand the expression $expression and combine +Expand the expression $expression and combine like terms. Simplify your answer as much as possible. $BR @@ -92,7 +92,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ # Answer evaluation diff --git a/Contrib/Mizzou/College_Algebra/Introduction_to_Polynomials/DifferenceOfSquares3.pg b/Contrib/Mizzou/College_Algebra/Introduction_to_Polynomials/DifferenceOfSquares3.pg index d52d3874cc..f2f989cb7c 100644 --- a/Contrib/Mizzou/College_Algebra/Introduction_to_Polynomials/DifferenceOfSquares3.pg +++ b/Contrib/Mizzou/College_Algebra/Introduction_to_Polynomials/DifferenceOfSquares3.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGcourse.pl" ); @@ -70,7 +70,7 @@ Context()->{error}{convert} = sub { BEGIN_TEXT -Expand the expression $expression and combine +Expand the expression $expression and combine like terms. Simplify your answer as much as possible. $BR diff --git a/Contrib/Mizzou/College_Algebra/Introduction_to_Polynomials/DifferenceOfSquares4.pg b/Contrib/Mizzou/College_Algebra/Introduction_to_Polynomials/DifferenceOfSquares4.pg index d52d3874cc..f2f989cb7c 100644 --- a/Contrib/Mizzou/College_Algebra/Introduction_to_Polynomials/DifferenceOfSquares4.pg +++ b/Contrib/Mizzou/College_Algebra/Introduction_to_Polynomials/DifferenceOfSquares4.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGcourse.pl" ); @@ -70,7 +70,7 @@ Context()->{error}{convert} = sub { BEGIN_TEXT -Expand the expression $expression and combine +Expand the expression $expression and combine like terms. Simplify your answer as much as possible. $BR diff --git a/Contrib/Mizzou/College_Algebra/Introduction_to_Polynomials/Multiply(2x3)1.pg b/Contrib/Mizzou/College_Algebra/Introduction_to_Polynomials/Multiply(2x3)1.pg index 7e9bbf06f8..ed20ea0117 100644 --- a/Contrib/Mizzou/College_Algebra/Introduction_to_Polynomials/Multiply(2x3)1.pg +++ b/Contrib/Mizzou/College_Algebra/Introduction_to_Polynomials/Multiply(2x3)1.pg @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGcourse.pl" ); @@ -77,7 +77,7 @@ Context()->{error}{convert} = sub { BEGIN_TEXT -Expand the expression $expression and combine +Expand the expression $expression and combine like terms. Simplify your answer as much as possible. $BR @@ -97,7 +97,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ # Answer evaluation diff --git a/Contrib/Mizzou/College_Algebra/Introduction_to_Polynomials/Multiply(2x3)2.pg b/Contrib/Mizzou/College_Algebra/Introduction_to_Polynomials/Multiply(2x3)2.pg index 1f9d415b0a..c710c66298 100644 --- a/Contrib/Mizzou/College_Algebra/Introduction_to_Polynomials/Multiply(2x3)2.pg +++ b/Contrib/Mizzou/College_Algebra/Introduction_to_Polynomials/Multiply(2x3)2.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGcourse.pl" ); @@ -75,7 +75,7 @@ Context()->{error}{convert} = sub { BEGIN_TEXT -Expand the expression $expression and combine +Expand the expression $expression and combine like terms. Simplify your answer as much as possible. $BR diff --git a/Contrib/Mizzou/College_Algebra/Introduction_to_Polynomials/Multiply(2x3)3.pg b/Contrib/Mizzou/College_Algebra/Introduction_to_Polynomials/Multiply(2x3)3.pg index 3806fb1c41..a7124be756 100644 --- a/Contrib/Mizzou/College_Algebra/Introduction_to_Polynomials/Multiply(2x3)3.pg +++ b/Contrib/Mizzou/College_Algebra/Introduction_to_Polynomials/Multiply(2x3)3.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGcourse.pl" ); @@ -75,7 +75,7 @@ Context()->{error}{convert} = sub { BEGIN_TEXT -Expand the expression $expression and combine +Expand the expression $expression and combine like terms. Simplify your answer as much as possible. $BR diff --git a/Contrib/Mizzou/College_Algebra/Introduction_to_Polynomials/Multiply(2x3)4.pg b/Contrib/Mizzou/College_Algebra/Introduction_to_Polynomials/Multiply(2x3)4.pg index 1f9d415b0a..c710c66298 100644 --- a/Contrib/Mizzou/College_Algebra/Introduction_to_Polynomials/Multiply(2x3)4.pg +++ b/Contrib/Mizzou/College_Algebra/Introduction_to_Polynomials/Multiply(2x3)4.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGcourse.pl" ); @@ -75,7 +75,7 @@ Context()->{error}{convert} = sub { BEGIN_TEXT -Expand the expression $expression and combine +Expand the expression $expression and combine like terms. Simplify your answer as much as possible. $BR diff --git a/Contrib/Mizzou/College_Algebra/Introduction_to_Polynomials/Multiply_Polynomials1.pg b/Contrib/Mizzou/College_Algebra/Introduction_to_Polynomials/Multiply_Polynomials1.pg index 863593ad05..4ee4d7ec96 100644 --- a/Contrib/Mizzou/College_Algebra/Introduction_to_Polynomials/Multiply_Polynomials1.pg +++ b/Contrib/Mizzou/College_Algebra/Introduction_to_Polynomials/Multiply_Polynomials1.pg @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGcourse.pl" ); @@ -72,7 +72,7 @@ Context()->{error}{convert} = sub { BEGIN_TEXT -Expand the expression $expression and combine +Expand the expression $expression and combine like terms. Simplify your answer as much as possible. $BR @@ -93,7 +93,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ diff --git a/Contrib/Mizzou/College_Algebra/Introduction_to_Polynomials/Multiply_Polynomials2.pg b/Contrib/Mizzou/College_Algebra/Introduction_to_Polynomials/Multiply_Polynomials2.pg index 4ec968dff6..ecb6192d34 100644 --- a/Contrib/Mizzou/College_Algebra/Introduction_to_Polynomials/Multiply_Polynomials2.pg +++ b/Contrib/Mizzou/College_Algebra/Introduction_to_Polynomials/Multiply_Polynomials2.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGcourse.pl" ); @@ -70,7 +70,7 @@ Context()->{error}{convert} = sub { BEGIN_TEXT -Expand the expression $expression and combine +Expand the expression $expression and combine like terms. Simplify your answer as much as possible. $BR diff --git a/Contrib/Mizzou/College_Algebra/Introduction_to_Polynomials/Multiply_Polynomials3.pg b/Contrib/Mizzou/College_Algebra/Introduction_to_Polynomials/Multiply_Polynomials3.pg index 1664c49fd1..42f262b9fa 100644 --- a/Contrib/Mizzou/College_Algebra/Introduction_to_Polynomials/Multiply_Polynomials3.pg +++ b/Contrib/Mizzou/College_Algebra/Introduction_to_Polynomials/Multiply_Polynomials3.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGcourse.pl" ); @@ -73,7 +73,7 @@ Context()->{error}{convert} = sub { BEGIN_TEXT -Expand the expression $expression and combine +Expand the expression $expression and combine like terms. Simplify your answer as much as possible. $BR diff --git a/Contrib/Mizzou/College_Algebra/Introduction_to_Polynomials/Multiply_Polynomials4.pg b/Contrib/Mizzou/College_Algebra/Introduction_to_Polynomials/Multiply_Polynomials4.pg index 51ccca5e94..3c8cb70cf0 100644 --- a/Contrib/Mizzou/College_Algebra/Introduction_to_Polynomials/Multiply_Polynomials4.pg +++ b/Contrib/Mizzou/College_Algebra/Introduction_to_Polynomials/Multiply_Polynomials4.pg @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGcourse.pl" ); @@ -75,7 +75,7 @@ Context()->{error}{convert} = sub { BEGIN_TEXT -Expand the expression $expression and combine +Expand the expression $expression and combine like terms. Simplify your answer as much as possible. $BR @@ -95,7 +95,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ # Answer evaluation diff --git a/Contrib/Mizzou/College_Algebra/Introduction_to_Polynomials/Multiply_Polynomials5.pg b/Contrib/Mizzou/College_Algebra/Introduction_to_Polynomials/Multiply_Polynomials5.pg index a6572f16ab..6aae2b73ee 100644 --- a/Contrib/Mizzou/College_Algebra/Introduction_to_Polynomials/Multiply_Polynomials5.pg +++ b/Contrib/Mizzou/College_Algebra/Introduction_to_Polynomials/Multiply_Polynomials5.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGcourse.pl" ); @@ -75,7 +75,7 @@ Context()->{error}{convert} = sub { BEGIN_TEXT -Expand the expression $expression and combine +Expand the expression $expression and combine like terms. Simplify your answer as much as possible. $BR diff --git a/Contrib/Mizzou/College_Algebra/Introduction_to_Polynomials/Multiply_and_Add1.pg b/Contrib/Mizzou/College_Algebra/Introduction_to_Polynomials/Multiply_and_Add1.pg index 4e094a7532..e17afa03d9 100644 --- a/Contrib/Mizzou/College_Algebra/Introduction_to_Polynomials/Multiply_and_Add1.pg +++ b/Contrib/Mizzou/College_Algebra/Introduction_to_Polynomials/Multiply_and_Add1.pg @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGcourse.pl" ); @@ -79,7 +79,7 @@ Context()->{error}{convert} = sub { BEGIN_TEXT -Perform the operations below and combine +Perform the operations below and combine like terms. Simplify your answer as much as possible. $BR @@ -99,7 +99,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ # Answer evaluation diff --git a/Contrib/Mizzou/College_Algebra/Introduction_to_Polynomials/Multiply_and_Subtract1.pg b/Contrib/Mizzou/College_Algebra/Introduction_to_Polynomials/Multiply_and_Subtract1.pg index 64dfc65000..f152db73d9 100644 --- a/Contrib/Mizzou/College_Algebra/Introduction_to_Polynomials/Multiply_and_Subtract1.pg +++ b/Contrib/Mizzou/College_Algebra/Introduction_to_Polynomials/Multiply_and_Subtract1.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGcourse.pl" ); @@ -77,7 +77,7 @@ Context()->{error}{convert} = sub { BEGIN_TEXT -Perform the operations below and combine +Perform the operations below and combine like terms. Simplify your answer as much as possible. $BR diff --git a/Contrib/Mizzou/College_Algebra/Introduction_to_Polynomials/Square(TwoVariables)1.pg b/Contrib/Mizzou/College_Algebra/Introduction_to_Polynomials/Square(TwoVariables)1.pg index a53c7e0f28..6121702220 100644 --- a/Contrib/Mizzou/College_Algebra/Introduction_to_Polynomials/Square(TwoVariables)1.pg +++ b/Contrib/Mizzou/College_Algebra/Introduction_to_Polynomials/Square(TwoVariables)1.pg @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGcourse.pl" ); @@ -73,7 +73,7 @@ Context()->{error}{convert} = sub { BEGIN_TEXT -Expand the expression $expression and combine +Expand the expression $expression and combine like terms. Simplify your answer as much as possible. $BR @@ -93,7 +93,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ # Answer evaluation diff --git a/Contrib/Mizzou/College_Algebra/Introduction_to_Polynomials/Square(TwoVariables)2.pg b/Contrib/Mizzou/College_Algebra/Introduction_to_Polynomials/Square(TwoVariables)2.pg index dfe5c20429..2b998ed0c7 100644 --- a/Contrib/Mizzou/College_Algebra/Introduction_to_Polynomials/Square(TwoVariables)2.pg +++ b/Contrib/Mizzou/College_Algebra/Introduction_to_Polynomials/Square(TwoVariables)2.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGcourse.pl" ); @@ -71,7 +71,7 @@ Context()->{error}{convert} = sub { BEGIN_TEXT -Expand the expression $expression and combine +Expand the expression $expression and combine like terms. Simplify your answer as much as possible. $BR diff --git a/Contrib/Mizzou/College_Algebra/Introduction_to_Polynomials/Square1.pg b/Contrib/Mizzou/College_Algebra/Introduction_to_Polynomials/Square1.pg index 7f7c99674b..a2e69c3e63 100644 --- a/Contrib/Mizzou/College_Algebra/Introduction_to_Polynomials/Square1.pg +++ b/Contrib/Mizzou/College_Algebra/Introduction_to_Polynomials/Square1.pg @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGcourse.pl" ); @@ -71,7 +71,7 @@ Context()->{error}{convert} = sub { BEGIN_TEXT -Expand the expression $expression and combine +Expand the expression $expression and combine like terms. Simplify your answer as much as possible. $BR @@ -91,7 +91,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ # Answer evaluation diff --git a/Contrib/Mizzou/College_Algebra/Introduction_to_Polynomials/Square2.pg b/Contrib/Mizzou/College_Algebra/Introduction_to_Polynomials/Square2.pg index 6802295d7f..94ca41af3f 100644 --- a/Contrib/Mizzou/College_Algebra/Introduction_to_Polynomials/Square2.pg +++ b/Contrib/Mizzou/College_Algebra/Introduction_to_Polynomials/Square2.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGcourse.pl" ); @@ -69,7 +69,7 @@ Context()->{error}{convert} = sub { BEGIN_TEXT -Expand the expression $expression and combine +Expand the expression $expression and combine like terms. Simplify your answer as much as possible. $BR diff --git a/Contrib/Mizzou/College_Algebra/Introduction_to_Polynomials/Square3.pg b/Contrib/Mizzou/College_Algebra/Introduction_to_Polynomials/Square3.pg index 60a3b4ed49..02153283e1 100644 --- a/Contrib/Mizzou/College_Algebra/Introduction_to_Polynomials/Square3.pg +++ b/Contrib/Mizzou/College_Algebra/Introduction_to_Polynomials/Square3.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGcourse.pl" ); @@ -71,7 +71,7 @@ Context()->{error}{convert} = sub { BEGIN_TEXT -Expand the expression $expression and combine +Expand the expression $expression and combine like terms. Simplify your answer as much as possible. $BR diff --git a/Contrib/Mizzou/College_Algebra/Introduction_to_Polynomials/Square4.pg b/Contrib/Mizzou/College_Algebra/Introduction_to_Polynomials/Square4.pg index 9c56b977a3..3b774d90ff 100644 --- a/Contrib/Mizzou/College_Algebra/Introduction_to_Polynomials/Square4.pg +++ b/Contrib/Mizzou/College_Algebra/Introduction_to_Polynomials/Square4.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGcourse.pl" ); @@ -71,7 +71,7 @@ Context()->{error}{convert} = sub { BEGIN_TEXT -Expand the expression $expression and combine +Expand the expression $expression and combine like terms. Simplify your answer as much as possible. $BR diff --git a/Contrib/Mizzou/College_Algebra/Inverse_Functions_Finding_Inverse_Functions/Find_Intercepts_Exponential.pg b/Contrib/Mizzou/College_Algebra/Inverse_Functions_Finding_Inverse_Functions/Find_Intercepts_Exponential.pg index 30e6b37eb0..05042c52ab 100644 --- a/Contrib/Mizzou/College_Algebra/Inverse_Functions_Finding_Inverse_Functions/Find_Intercepts_Exponential.pg +++ b/Contrib/Mizzou/College_Algebra/Inverse_Functions_Finding_Inverse_Functions/Find_Intercepts_Exponential.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "contextFraction.pl", @@ -30,7 +30,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Fraction-NoDecimals")->texStrings; $base = list_random(exp(1),10,2,3,4,5,6,7,8,9); @@ -70,7 +70,7 @@ if (log(-$d/$a)/log($base) == floor(log(-$d/$a)/log($base))) { if ($base == exp(1)) { $dispxintcoord = "\frac{\ln\left($tmp\right) - $c}{$b}"; } elsif ($base == 10) { - $dispxintcoord = "\frac{\log\left($tmp\right) - $c}{$b}"; + $dispxintcoord = "\frac{\log\left($tmp\right) - $c}{$b}"; } else { $dispxintcoord = "\frac{\log_{$base}\left($tmp\right) - $c}{$b}"; } @@ -88,7 +88,7 @@ parserFunction("log(b,x)" => "ln(x)/ln(b)"); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -101,7 +101,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS( Compute($xint)->cmp(tolType=>'absolute', tolerance=>0.0000000001) ); ANS( Compute($yint)->cmp(tolType=>'absolute', tolerance=>0.0000000001) ); @@ -114,19 +114,19 @@ ANS( Compute($yint)->cmp(tolType=>'absolute', tolerance=>0.0000000001) ); if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR - ${BBOLD}Answer:${EBOLD} + ${BBOLD}Answer:${EBOLD} The \(x\)-intercept is \(\displaystyle$dispxint\) and the \(y\)-intercept is \(\displaystyle$dispyint\). $PAR END_TEXT } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} Use ${BBOLD}log(b,x)${EBOLD} to enter logarithms that are not base \(e\) nor base \(10\). For example, type ${BBOLD}log(3,5)${EBOLD} to enter \(\log_3(5)\). Use ${BBOLD}ln(15)${EBOLD} for \(\ln(15)\), and ${BBOLD}log10(20)${EBOLD} for \(\log(20)\). \{AnswerFormatHelp("points", "Click here for help entering points as an answer.")\} + ${BBOLD}Help:${EBOLD} Use ${BBOLD}log(b,x)${EBOLD} to enter logarithms that are not base \(e\) nor base \(10\). For example, type ${BBOLD}log(3,5)${EBOLD} to enter \(\log_3(5)\). Use ${BBOLD}ln(15)${EBOLD} for \(\ln(15)\), and ${BBOLD}log10(20)${EBOLD} for \(\log(20)\). \{helpLink("points", "Click here for help entering points as an answer.")\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Inverse_Functions_Finding_Inverse_Functions/Find_Intercepts_Logarithmic.pg b/Contrib/Mizzou/College_Algebra/Inverse_Functions_Finding_Inverse_Functions/Find_Intercepts_Logarithmic.pg index 73d88da404..44d873e1fd 100644 --- a/Contrib/Mizzou/College_Algebra/Inverse_Functions_Finding_Inverse_Functions/Find_Intercepts_Logarithmic.pg +++ b/Contrib/Mizzou/College_Algebra/Inverse_Functions_Finding_Inverse_Functions/Find_Intercepts_Logarithmic.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "contextFraction.pl", @@ -30,7 +30,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Fraction-NoDecimals")->texStrings; $base = list_random(exp(1),10,2,3,4,5,6,7,8,9); @@ -123,7 +123,7 @@ parserFunction("log(b,x)" => "ln(x)/ln(b)"); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -136,7 +136,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS( Compute($xint)->cmp(tolType=>'absolute', tolerance=>0.0000000001) ); if ($yintcoord != "n") { @@ -153,19 +153,19 @@ if ($yintcoord != "n") { if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR - ${BBOLD}Answer:${EBOLD} + ${BBOLD}Answer:${EBOLD} $dispxint $dispyint $PAR END_TEXT } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} Use ${BBOLD}log(b,x)${EBOLD} to enter logarithms that are not base \(e\) nor base \(10\). For example, type ${BBOLD}log(3,5)${EBOLD} to enter \(\log_3(5)\). Use ${BBOLD}ln(15)${EBOLD} for \(\ln(15)\), and ${BBOLD}log10(20)${EBOLD} for \(\log(20)\). \{AnswerFormatHelp("points", "Click here for help entering points as an answer.")\} + ${BBOLD}Help:${EBOLD} Use ${BBOLD}log(b,x)${EBOLD} to enter logarithms that are not base \(e\) nor base \(10\). For example, type ${BBOLD}log(3,5)${EBOLD} to enter \(\log_3(5)\). Use ${BBOLD}ln(15)${EBOLD} for \(\ln(15)\), and ${BBOLD}log10(20)${EBOLD} for \(\log(20)\). \{helpLink("points", "Click here for help entering points as an answer.")\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Inverse_Functions_Finding_Inverse_Functions/Find_Inverse_Exponential.pg b/Contrib/Mizzou/College_Algebra/Inverse_Functions_Finding_Inverse_Functions/Find_Inverse_Exponential.pg index ce85512293..d730afa642 100644 --- a/Contrib/Mizzou/College_Algebra/Inverse_Functions_Finding_Inverse_Functions/Find_Inverse_Exponential.pg +++ b/Contrib/Mizzou/College_Algebra/Inverse_Functions_Finding_Inverse_Functions/Find_Inverse_Exponential.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "contextFraction.pl", @@ -30,7 +30,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Fraction-NoDecimals")->texStrings; $base = list_random(exp(1),10,2,3,4,5,6,7,8,9); @@ -61,11 +61,11 @@ $ans = Formula("(log($base, (x - $d)/$a) - $c)/$b")->reduce; if ($a < 0) { Context()->flags->set(limits=>[$d-1,$d]); } else { - Context()->flags->set(limits=>[$d,$d+1]); + Context()->flags->set(limits=>[$d,$d+1]); } ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -77,7 +77,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS( Compute($ans)->cmp() ); @@ -88,19 +88,19 @@ ANS( Compute($ans)->cmp() ); if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR - ${BBOLD}Answer:${EBOLD} + ${BBOLD}Answer:${EBOLD} \($displayinverse\) $PAR END_TEXT } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} Use ${BBOLD}log(b,x)${EBOLD} to enter logarithms that are not base \(e\) nor base \(10\). For example, type ${BBOLD}log(3,5)${EBOLD} to enter \(\log_3(5)\). Use ${BBOLD}ln(15)${EBOLD} for \(\ln(15)\), and ${BBOLD}log10(20)${EBOLD} for \(\log(20)\). \{AnswerFormatHelp("formulas", "Click here for help entering formulas as an answer.")\} + ${BBOLD}Help:${EBOLD} Use ${BBOLD}log(b,x)${EBOLD} to enter logarithms that are not base \(e\) nor base \(10\). For example, type ${BBOLD}log(3,5)${EBOLD} to enter \(\log_3(5)\). Use ${BBOLD}ln(15)${EBOLD} for \(\ln(15)\), and ${BBOLD}log10(20)${EBOLD} for \(\log(20)\). \{helpLink("formulas", "Click here for help entering formulas as an answer.")\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Inverse_Functions_Finding_Inverse_Functions/Find_Inverse_Logarithm.pg b/Contrib/Mizzou/College_Algebra/Inverse_Functions_Finding_Inverse_Functions/Find_Inverse_Logarithm.pg index a0c988c5a9..93a7ec06f1 100644 --- a/Contrib/Mizzou/College_Algebra/Inverse_Functions_Finding_Inverse_Functions/Find_Inverse_Logarithm.pg +++ b/Contrib/Mizzou/College_Algebra/Inverse_Functions_Finding_Inverse_Functions/Find_Inverse_Logarithm.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "contextFraction.pl", @@ -30,7 +30,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Fraction-NoDecimals")->texStrings; $base = list_random(exp(1),10,2,3,4,5,6,7,8,9); @@ -83,7 +83,7 @@ parserFunction("log(b,x)" => "ln(x)/ln(b)"); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -94,7 +94,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS( Compute($ans)->cmp() ); @@ -106,19 +106,19 @@ ANS( Compute($ans)->cmp() ); if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR - ${BBOLD}Answer:${EBOLD} + ${BBOLD}Answer:${EBOLD} \($dispinverse\) $PAR END_TEXT } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} Use ${BBOLD}log(b,x)${EBOLD} to enter logarithms that are not base \(e\) nor base \(10\). For example, type ${BBOLD}log(3,5)${EBOLD} to enter \(\log_3(5)\). Use ${BBOLD}ln(15)${EBOLD} for \(\ln(15)\), and ${BBOLD}log10(20)${EBOLD} for \(\log(20)\). \{AnswerFormatHelp("formulas", "Click here for help entering formulas as an answer.")\} + ${BBOLD}Help:${EBOLD} Use ${BBOLD}log(b,x)${EBOLD} to enter logarithms that are not base \(e\) nor base \(10\). For example, type ${BBOLD}log(3,5)${EBOLD} to enter \(\log_3(5)\). Use ${BBOLD}ln(15)${EBOLD} for \(\ln(15)\), and ${BBOLD}log10(20)${EBOLD} for \(\log(20)\). \{helpLink("formulas", "Click here for help entering formulas as an answer.")\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Inverse_Functions_One_to_One_Functions/Determine_Point_On_Graph.pg b/Contrib/Mizzou/College_Algebra/Inverse_Functions_One_to_One_Functions/Determine_Point_On_Graph.pg index 69cbd63bc0..dbb7ca4d53 100644 --- a/Contrib/Mizzou/College_Algebra/Inverse_Functions_One_to_One_Functions/Determine_Point_On_Graph.pg +++ b/Contrib/Mizzou/College_Algebra/Inverse_Functions_One_to_One_Functions/Determine_Point_On_Graph.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -28,13 +28,13 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $a = random(-15,15); do {$b = random(-15,15)} until ($b != $a); -$choice = random(0,1,1); +$choice = random(0,1,1); if ($choice == 0) { Context("Point"); $ans = Compute("($b,$a)"); @@ -45,7 +45,7 @@ if ($choice == 0) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; if ($choice == 0) { @@ -62,7 +62,7 @@ if ($choice == 0) { ########################################################################### -# check the answer +# check the answer ########################################################################### if ($choice == 0) { ANS(Compute($ans)->cmp()); @@ -78,7 +78,7 @@ if ($choice == 0) { if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR - ${BBOLD}Answer:${EBOLD} + ${BBOLD}Answer:${EBOLD} END_TEXT if ($choice == 0) { BEGIN_TEXT @@ -100,13 +100,13 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("points", "Click here for help entering points.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("points", "Click here for help entering points.")\} $BR END_TEXT } } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Inverse_Functions_One_to_One_Functions/Determine_f_f_inv_of_a.pg b/Contrib/Mizzou/College_Algebra/Inverse_Functions_One_to_One_Functions/Determine_f_f_inv_of_a.pg index 938a0767b2..83db0ae574 100644 --- a/Contrib/Mizzou/College_Algebra/Inverse_Functions_One_to_One_Functions/Determine_f_f_inv_of_a.pg +++ b/Contrib/Mizzou/College_Algebra/Inverse_Functions_One_to_One_Functions/Determine_f_f_inv_of_a.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -28,12 +28,12 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $a = random(-1500,1500); -$choice = random(0,1,1); +$choice = random(0,1,1); if ($choice == 0) { $disp = "f^{-1}\left(f\left($a\right)\right)"; } else { @@ -42,7 +42,7 @@ if ($choice == 0) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -53,7 +53,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($a)->cmp()); @@ -74,7 +74,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Inverse_Functions_One_to_One_Functions/Find_Domain_Range_Line_Graph.pg b/Contrib/Mizzou/College_Algebra/Inverse_Functions_One_to_One_Functions/Find_Domain_Range_Line_Graph.pg index 3ac401928c..4d704dd5dd 100644 --- a/Contrib/Mizzou/College_Algebra/Inverse_Functions_One_to_One_Functions/Find_Domain_Range_Line_Graph.pg +++ b/Contrib/Mizzou/College_Algebra/Inverse_Functions_One_to_One_Functions/Find_Domain_Range_Line_Graph.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -30,7 +30,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Interval"); $x[0] = random(-8,-3); @@ -124,15 +124,15 @@ $fig = image(insertGraph($graph), width=>$gsize, height=>$gsize, tex_size=>500 ) ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ $fig \} -$ECENTER +$ECENTER $PAR The graph of \(f(x)\) is given above. Determine the domain and range of \(f^{-1}(x)\) using interval notation. $PAR @@ -143,7 +143,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($domain)->cmp()); ANS(Compute($range)->cmp()); @@ -161,12 +161,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals.")\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Linear_Functions_Applications/Find_Ct_Cable_Company.pg b/Contrib/Mizzou/College_Algebra/Linear_Functions_Applications/Find_Ct_Cable_Company.pg index 338a71197e..65d45a80ca 100644 --- a/Contrib/Mizzou/College_Algebra/Linear_Functions_Applications/Find_Ct_Cable_Company.pg +++ b/Contrib/Mizzou/College_Algebra/Linear_Functions_Applications/Find_Ct_Cable_Company.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -28,7 +28,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Interval"); Context()->variables->are(t => 'Real'); @@ -44,11 +44,11 @@ $texEqn = "C(t) = $mocost t + $install"; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT -A cable company charges a $$install installation fee and $$mocost per month of service. +A cable company charges a $$install installation fee and $$mocost per month of service. $PAR (a) Write a function for \(C(t)\) that represents the total cost of \(t\) months of cable service. $PAR @@ -69,7 +69,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($eqn)->cmp()); ANS(Compute($cost)->cmp()); @@ -84,7 +84,7 @@ ANS(Compute($range)->cmp()); if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR - ${BBOLD}Answer:${EBOLD} + ${BBOLD}Answer:${EBOLD} $PAR (a) \($texEqn\) $PAR @@ -98,12 +98,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("formulas", "Click here for help entering formulas")\} or \{AnswerFormatHelp("intervals", "click here for help entering intervals.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("formulas", "Click here for help entering formulas")\} or \{helpLink("intervals", "click here for help entering intervals.")\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Linear_Functions_Equations_of_Lines/Fractions.pg b/Contrib/Mizzou/College_Algebra/Linear_Functions_Equations_of_Lines/Fractions.pg index 0341273aea..39aacd2e3e 100644 --- a/Contrib/Mizzou/College_Algebra/Linear_Functions_Equations_of_Lines/Fractions.pg +++ b/Contrib/Mizzou/College_Algebra/Linear_Functions_Equations_of_Lines/Fractions.pg @@ -4,9 +4,9 @@ ## KEYWORDS('lines', 'slope') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Basic Algebra') -## DBchapter('Lines') +## DBchapter('Lines') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -25,7 +25,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGchoicemacros.pl", "parserAssignment.pl", @@ -82,7 +82,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Linear_Functions_Equations_of_Lines/HorizLine.pg b/Contrib/Mizzou/College_Algebra/Linear_Functions_Equations_of_Lines/HorizLine.pg index c0c86ccfe5..232daaeb23 100644 --- a/Contrib/Mizzou/College_Algebra/Linear_Functions_Equations_of_Lines/HorizLine.pg +++ b/Contrib/Mizzou/College_Algebra/Linear_Functions_Equations_of_Lines/HorizLine.pg @@ -4,9 +4,9 @@ ## KEYWORDS('lines', 'slope') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Basic Algebra') -## DBchapter('Lines') +## DBchapter('Lines') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -24,7 +24,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGchoicemacros.pl", "parserAssignment.pl", diff --git a/Contrib/Mizzou/College_Algebra/Linear_Functions_Equations_of_Lines/Horizontal.pg b/Contrib/Mizzou/College_Algebra/Linear_Functions_Equations_of_Lines/Horizontal.pg index 3a34f1b7df..7c9f3fd87a 100644 --- a/Contrib/Mizzou/College_Algebra/Linear_Functions_Equations_of_Lines/Horizontal.pg +++ b/Contrib/Mizzou/College_Algebra/Linear_Functions_Equations_of_Lines/Horizontal.pg @@ -4,9 +4,9 @@ ## KEYWORDS('lines', 'slope') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Basic Algebra') -## DBchapter('Lines') +## DBchapter('Lines') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -25,7 +25,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGchoicemacros.pl", "parserAssignment.pl", @@ -73,7 +73,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Linear_Functions_Equations_of_Lines/PerpLine.pg b/Contrib/Mizzou/College_Algebra/Linear_Functions_Equations_of_Lines/PerpLine.pg index 90feb8b41d..aeceaa11f4 100644 --- a/Contrib/Mizzou/College_Algebra/Linear_Functions_Equations_of_Lines/PerpLine.pg +++ b/Contrib/Mizzou/College_Algebra/Linear_Functions_Equations_of_Lines/PerpLine.pg @@ -4,9 +4,9 @@ ## KEYWORDS('lines', 'slope') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Basic Algebra') -## DBchapter('Lines') +## DBchapter('Lines') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -24,7 +24,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGchoicemacros.pl", "parserAssignment.pl", diff --git a/Contrib/Mizzou/College_Algebra/Linear_Functions_Equations_of_Lines/PointSlope.pg b/Contrib/Mizzou/College_Algebra/Linear_Functions_Equations_of_Lines/PointSlope.pg index 3ceafcd689..b6b48e21f7 100644 --- a/Contrib/Mizzou/College_Algebra/Linear_Functions_Equations_of_Lines/PointSlope.pg +++ b/Contrib/Mizzou/College_Algebra/Linear_Functions_Equations_of_Lines/PointSlope.pg @@ -4,9 +4,9 @@ ## KEYWORDS('lines', 'slope') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Basic Algebra') -## DBchapter('Lines') +## DBchapter('Lines') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -25,7 +25,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGchoicemacros.pl", "parserAssignment.pl", @@ -76,7 +76,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Linear_Functions_Equations_of_Lines/TwoPOints.pg b/Contrib/Mizzou/College_Algebra/Linear_Functions_Equations_of_Lines/TwoPOints.pg index e1cd716733..18f1f7b4cc 100644 --- a/Contrib/Mizzou/College_Algebra/Linear_Functions_Equations_of_Lines/TwoPOints.pg +++ b/Contrib/Mizzou/College_Algebra/Linear_Functions_Equations_of_Lines/TwoPOints.pg @@ -4,9 +4,9 @@ ## KEYWORDS('lines', 'slope') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Basic Algebra') -## DBchapter('Lines') +## DBchapter('Lines') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -25,7 +25,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGchoicemacros.pl", "parserAssignment.pl", @@ -75,7 +75,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Linear_Functions_Equations_of_Lines/VertLine.pg b/Contrib/Mizzou/College_Algebra/Linear_Functions_Equations_of_Lines/VertLine.pg index ebffa44206..d49f462ccb 100644 --- a/Contrib/Mizzou/College_Algebra/Linear_Functions_Equations_of_Lines/VertLine.pg +++ b/Contrib/Mizzou/College_Algebra/Linear_Functions_Equations_of_Lines/VertLine.pg @@ -4,9 +4,9 @@ ## KEYWORDS('lines', 'slope') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Basic Algebra') -## DBchapter('Lines') +## DBchapter('Lines') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -25,7 +25,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGchoicemacros.pl", "parserAssignment.pl", @@ -76,7 +76,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Linear_Functions_Parallel_Perpendicular/Horiz.pg b/Contrib/Mizzou/College_Algebra/Linear_Functions_Parallel_Perpendicular/Horiz.pg index b38a7b76ec..b2c2e03d60 100644 --- a/Contrib/Mizzou/College_Algebra/Linear_Functions_Parallel_Perpendicular/Horiz.pg +++ b/Contrib/Mizzou/College_Algebra/Linear_Functions_Parallel_Perpendicular/Horiz.pg @@ -4,9 +4,9 @@ ## KEYWORDS('lines', 'slope') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Basic Algebra') -## DBchapter('Lines') +## DBchapter('Lines') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -25,7 +25,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGchoicemacros.pl", "parserAssignment.pl", @@ -93,7 +93,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Linear_Functions_Parallel_Perpendicular/ParallelOrPerp.pg b/Contrib/Mizzou/College_Algebra/Linear_Functions_Parallel_Perpendicular/ParallelOrPerp.pg index bd5dcb7e39..eb028a01df 100644 --- a/Contrib/Mizzou/College_Algebra/Linear_Functions_Parallel_Perpendicular/ParallelOrPerp.pg +++ b/Contrib/Mizzou/College_Algebra/Linear_Functions_Parallel_Perpendicular/ParallelOrPerp.pg @@ -4,9 +4,9 @@ ## KEYWORDS('lines', 'slope') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Basic Algebra') -## DBchapter('Lines') +## DBchapter('Lines') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -25,7 +25,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGchoicemacros.pl", "parserAssignment.pl", @@ -90,7 +90,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Linear_Functions_Parallel_Perpendicular/Perp.pg b/Contrib/Mizzou/College_Algebra/Linear_Functions_Parallel_Perpendicular/Perp.pg index 0e0a8dbb8e..55f8b92155 100644 --- a/Contrib/Mizzou/College_Algebra/Linear_Functions_Parallel_Perpendicular/Perp.pg +++ b/Contrib/Mizzou/College_Algebra/Linear_Functions_Parallel_Perpendicular/Perp.pg @@ -4,9 +4,9 @@ ## KEYWORDS('lines', 'slope') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Basic Algebra') -## DBchapter('Lines') +## DBchapter('Lines') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -25,7 +25,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGchoicemacros.pl", "parserAssignment.pl", @@ -64,7 +64,7 @@ $line = Formula("y = $m x + $b "); Context()->texStrings; BEGIN_TEXT -Find the equation of the line though the point \( ($x1, $y1) \) and perpendicular to the line \(y = $m0 x + $b1 \). Write your answer in the form \(y = mx + b\). +Find the equation of the line though the point \( ($x1, $y1) \) and perpendicular to the line \(y = $m0 x + $b1 \). Write your answer in the form \(y = mx + b\). $PAR \{ ans_rule(20) \} END_TEXT @@ -85,7 +85,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Linear_Functions_Parallel_Perpendicular/Vert.pg b/Contrib/Mizzou/College_Algebra/Linear_Functions_Parallel_Perpendicular/Vert.pg index 99439b6bb1..59cf6addab 100644 --- a/Contrib/Mizzou/College_Algebra/Linear_Functions_Parallel_Perpendicular/Vert.pg +++ b/Contrib/Mizzou/College_Algebra/Linear_Functions_Parallel_Perpendicular/Vert.pg @@ -4,9 +4,9 @@ ## KEYWORDS('lines', 'slope') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Basic Algebra') -## DBchapter('Lines') +## DBchapter('Lines') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -25,7 +25,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGchoicemacros.pl", "parserAssignment.pl", @@ -87,7 +87,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Linear_Functions_Parallel_Perpendicular/axis.pg b/Contrib/Mizzou/College_Algebra/Linear_Functions_Parallel_Perpendicular/axis.pg index 7c7f7d8f65..10518dbe26 100644 --- a/Contrib/Mizzou/College_Algebra/Linear_Functions_Parallel_Perpendicular/axis.pg +++ b/Contrib/Mizzou/College_Algebra/Linear_Functions_Parallel_Perpendicular/axis.pg @@ -4,9 +4,9 @@ ## KEYWORDS('lines', 'slope') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Basic Algebra') -## DBchapter('Lines') +## DBchapter('Lines') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -25,7 +25,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGchoicemacros.pl", "parserAssignment.pl", @@ -98,7 +98,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Linear_Functions_Parallel_Perpendicular/blankProblem.pg b/Contrib/Mizzou/College_Algebra/Linear_Functions_Parallel_Perpendicular/blankProblem.pg index 4ebd17a873..adbf4a6036 100644 --- a/Contrib/Mizzou/College_Algebra/Linear_Functions_Parallel_Perpendicular/blankProblem.pg +++ b/Contrib/Mizzou/College_Algebra/Linear_Functions_Parallel_Perpendicular/blankProblem.pg @@ -4,9 +4,9 @@ ## KEYWORDS('lines', 'slope') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Basic Algebra') -## DBchapter('Lines') +## DBchapter('Lines') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -24,7 +24,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGchoicemacros.pl", "parserAssignment.pl", diff --git a/Contrib/Mizzou/College_Algebra/Linear_Functions_Parallel_Perpendicular/equation.pg b/Contrib/Mizzou/College_Algebra/Linear_Functions_Parallel_Perpendicular/equation.pg index dd39dddc46..685c7db96f 100644 --- a/Contrib/Mizzou/College_Algebra/Linear_Functions_Parallel_Perpendicular/equation.pg +++ b/Contrib/Mizzou/College_Algebra/Linear_Functions_Parallel_Perpendicular/equation.pg @@ -4,9 +4,9 @@ ## KEYWORDS('lines', 'slope') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Basic Algebra') -## DBchapter('Lines') +## DBchapter('Lines') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -25,7 +25,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGchoicemacros.pl", "parserAssignment.pl", @@ -84,7 +84,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Linear_Functions_Slope/FindSlope.pg b/Contrib/Mizzou/College_Algebra/Linear_Functions_Slope/FindSlope.pg index 8fa454b887..95844c9d36 100644 --- a/Contrib/Mizzou/College_Algebra/Linear_Functions_Slope/FindSlope.pg +++ b/Contrib/Mizzou/College_Algebra/Linear_Functions_Slope/FindSlope.pg @@ -4,9 +4,9 @@ ## KEYWORDS('lines', 'slope') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Basic Algebra') -## DBchapter('Lines') +## DBchapter('Lines') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -25,7 +25,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGchoicemacros.pl", "PGcourse.pl" @@ -77,7 +77,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Linear_Functions_Slope/Fractions.pg b/Contrib/Mizzou/College_Algebra/Linear_Functions_Slope/Fractions.pg index 9cd69dc1d3..080e4283b5 100644 --- a/Contrib/Mizzou/College_Algebra/Linear_Functions_Slope/Fractions.pg +++ b/Contrib/Mizzou/College_Algebra/Linear_Functions_Slope/Fractions.pg @@ -4,9 +4,9 @@ ## KEYWORDS('lines', 'slope') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Basic Algebra') -## DBchapter('Lines') +## DBchapter('Lines') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -25,7 +25,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGchoicemacros.pl", "PGcourse.pl" @@ -64,8 +64,8 @@ Context()->strings->add("undefined"); Context()->texStrings; BEGIN_TEXT Find the slope of the line containing the points -\(\left( $x1 , $y1 \right)\) -and +\(\left( $x1 , $y1 \right)\) +and \( \left( $x2 , $y2\right)\) if it exists or write ${BBOLD}undefined${EBOLD} if the slope is undefined. You must reduce your answer completely. $PAR \(m = \) \{ans_rule(10)\} @@ -87,7 +87,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Linear_Functions_Slope/Graph.pg b/Contrib/Mizzou/College_Algebra/Linear_Functions_Slope/Graph.pg index b9d9be660c..7f58ea77c4 100644 --- a/Contrib/Mizzou/College_Algebra/Linear_Functions_Slope/Graph.pg +++ b/Contrib/Mizzou/College_Algebra/Linear_Functions_Slope/Graph.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed quadratic function and asks for the +# Gives the graph of a transformed quadratic function and asks for the # correct equation which has this graph. # The graph always has horizontal shift and vertical shrink. # The graph has nothing else. @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -78,7 +78,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.8,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.8,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.8,'10', 'black', 'bottom', 'right')); @@ -132,7 +132,7 @@ if ($y2 != 0) { } ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -141,15 +141,15 @@ Determine the equation of the line given in the graph below. $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR -Equation: \{ans_rule\} \{ AnswerFormatHelp("equations") \}, +Equation: \{ans_rule\} \{ helpLink("equations") \}, END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp(studentsMustReduceFractions=>1)); @@ -171,7 +171,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Linear_Functions_Slope/HorizLine.pg b/Contrib/Mizzou/College_Algebra/Linear_Functions_Slope/HorizLine.pg index 604c79a1c9..20f26f1b09 100644 --- a/Contrib/Mizzou/College_Algebra/Linear_Functions_Slope/HorizLine.pg +++ b/Contrib/Mizzou/College_Algebra/Linear_Functions_Slope/HorizLine.pg @@ -4,9 +4,9 @@ ## KEYWORDS('lines', 'slope') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Basic Algebra') -## DBchapter('Lines') +## DBchapter('Lines') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -25,7 +25,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGchoicemacros.pl", "PGcourse.pl" @@ -95,7 +95,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Linear_Functions_Slope/PerpHorizSlope.pg b/Contrib/Mizzou/College_Algebra/Linear_Functions_Slope/PerpHorizSlope.pg index ab0c4f7abc..518c89a144 100644 --- a/Contrib/Mizzou/College_Algebra/Linear_Functions_Slope/PerpHorizSlope.pg +++ b/Contrib/Mizzou/College_Algebra/Linear_Functions_Slope/PerpHorizSlope.pg @@ -4,9 +4,9 @@ ## KEYWORDS('lines', 'slope') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Basic Algebra') -## DBchapter('Lines') +## DBchapter('Lines') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -24,7 +24,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGchoicemacros.pl", "PGcourse.pl" diff --git a/Contrib/Mizzou/College_Algebra/Linear_Functions_Slope/PerpendicularLine.pg b/Contrib/Mizzou/College_Algebra/Linear_Functions_Slope/PerpendicularLine.pg index 0e80aaef28..3045f4b066 100644 --- a/Contrib/Mizzou/College_Algebra/Linear_Functions_Slope/PerpendicularLine.pg +++ b/Contrib/Mizzou/College_Algebra/Linear_Functions_Slope/PerpendicularLine.pg @@ -4,9 +4,9 @@ ## KEYWORDS('lines', 'slope') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Basic Algebra') -## DBchapter('Lines') +## DBchapter('Lines') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -24,7 +24,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGchoicemacros.pl", "PGcourse.pl" diff --git a/Contrib/Mizzou/College_Algebra/Linear_Functions_Slope/Slope2.pg b/Contrib/Mizzou/College_Algebra/Linear_Functions_Slope/Slope2.pg index 022f5a385f..09edf4681b 100644 --- a/Contrib/Mizzou/College_Algebra/Linear_Functions_Slope/Slope2.pg +++ b/Contrib/Mizzou/College_Algebra/Linear_Functions_Slope/Slope2.pg @@ -4,9 +4,9 @@ ## KEYWORDS('lines', 'slope') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Basic Algebra') -## DBchapter('Lines') +## DBchapter('Lines') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -25,7 +25,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGchoicemacros.pl", "PGcourse.pl" @@ -77,7 +77,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Linear_Functions_Slope/SlopeFunctionNotation.pg b/Contrib/Mizzou/College_Algebra/Linear_Functions_Slope/SlopeFunctionNotation.pg index 8730676080..993b474db9 100644 --- a/Contrib/Mizzou/College_Algebra/Linear_Functions_Slope/SlopeFunctionNotation.pg +++ b/Contrib/Mizzou/College_Algebra/Linear_Functions_Slope/SlopeFunctionNotation.pg @@ -4,9 +4,9 @@ ## KEYWORDS('lines', 'slope') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Basic Algebra') -## DBchapter('Lines') +## DBchapter('Lines') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -25,7 +25,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGchoicemacros.pl", "PGcourse.pl" @@ -70,7 +70,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Linear_Functions_Slope/VertHorizSlope.pg b/Contrib/Mizzou/College_Algebra/Linear_Functions_Slope/VertHorizSlope.pg index 62cf83a6a5..3c9248dd35 100644 --- a/Contrib/Mizzou/College_Algebra/Linear_Functions_Slope/VertHorizSlope.pg +++ b/Contrib/Mizzou/College_Algebra/Linear_Functions_Slope/VertHorizSlope.pg @@ -4,9 +4,9 @@ ## KEYWORDS('lines', 'slope') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Basic Algebra') -## DBchapter('Lines') +## DBchapter('Lines') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -25,7 +25,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGchoicemacros.pl", "PGcourse.pl" @@ -94,7 +94,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Linear_Functions_Slope/VertLine.pg b/Contrib/Mizzou/College_Algebra/Linear_Functions_Slope/VertLine.pg index 3a139ab57b..82178f8a0d 100644 --- a/Contrib/Mizzou/College_Algebra/Linear_Functions_Slope/VertLine.pg +++ b/Contrib/Mizzou/College_Algebra/Linear_Functions_Slope/VertLine.pg @@ -4,9 +4,9 @@ ## KEYWORDS('lines', 'slope') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Basic Algebra') -## DBchapter('Lines') +## DBchapter('Lines') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -25,7 +25,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGchoicemacros.pl", "PGcourse.pl" @@ -96,7 +96,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Logarithmic_Equations_Change_of_Base/CoB3.pg b/Contrib/Mizzou/College_Algebra/Logarithmic_Equations_Change_of_Base/CoB3.pg index 4e6e3b4cf6..830ab2df7f 100644 --- a/Contrib/Mizzou/College_Algebra/Logarithmic_Equations_Change_of_Base/CoB3.pg +++ b/Contrib/Mizzou/College_Algebra/Logarithmic_Equations_Change_of_Base/CoB3.pg @@ -4,9 +4,9 @@ ## KEYWORDS('logarithm', 'laws of logarithms') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Exponential and Logarithmic Functions') -## DBchapter('Laws of Logarithms') +## DBchapter('Laws of Logarithms') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -27,7 +27,7 @@ loadMacros( "PGchoicemacros.pl", "PGunion.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -81,7 +81,7 @@ Context()->texStrings; BEGIN_TEXT Suppose that $PAR -\[ \log_{$b} ($a1) = $var1 ~ \text{and} ~ \log_{$b} ($a2) = $var2.\] +\[ \log_{$b} ($a1) = $var1 ~ \text{and} ~ \log_{$b} ($a2) = $var2.\] $PAR Then, write the following quantity in terms of \($var1\) and \($var2\). @@ -106,7 +106,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Logarithmic_Equations_Change_of_Base/CoB4.pg b/Contrib/Mizzou/College_Algebra/Logarithmic_Equations_Change_of_Base/CoB4.pg index 6ee617104a..166894551e 100644 --- a/Contrib/Mizzou/College_Algebra/Logarithmic_Equations_Change_of_Base/CoB4.pg +++ b/Contrib/Mizzou/College_Algebra/Logarithmic_Equations_Change_of_Base/CoB4.pg @@ -4,9 +4,9 @@ ## KEYWORDS('logarithm', 'laws of logarithms') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Exponential and Logarithmic Functions') -## DBchapter('Laws of Logarithms') +## DBchapter('Laws of Logarithms') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -27,7 +27,7 @@ loadMacros( "PGchoicemacros.pl", "PGunion.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -72,7 +72,7 @@ do {$b = random(2,15,1)} until ($b != 10); Context()->texStrings; BEGIN_TEXT -Using a change of base formula, one can write +Using a change of base formula, one can write $PAR \[ \frac{\log_{$b} ($a1)} {\log_{$b}($a2)} = \log_{m}(p), @@ -101,7 +101,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Logarithmic_Equations_Properties_of_Logarithms/7.pg b/Contrib/Mizzou/College_Algebra/Logarithmic_Equations_Properties_of_Logarithms/7.pg index 6b7f6c16b6..55dba264c9 100644 --- a/Contrib/Mizzou/College_Algebra/Logarithmic_Equations_Properties_of_Logarithms/7.pg +++ b/Contrib/Mizzou/College_Algebra/Logarithmic_Equations_Properties_of_Logarithms/7.pg @@ -4,9 +4,9 @@ ## KEYWORDS('logarithm', 'laws of logarithms') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Exponential and Logarithmic Functions') -## DBchapter('Laws of Logarithms') +## DBchapter('Laws of Logarithms') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -26,7 +26,7 @@ loadMacros( "PGchoicemacros.pl", "PGunion.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -79,7 +79,7 @@ Context()->texStrings; BEGIN_TEXT Suppose that $PAR -\[ \log_{$b} ($a1) = $var1, ~ \log_{$b} ($a2) = $var2, ~ \text{and} ~ \log_{$b} ($a3) = $var3.\] +\[ \log_{$b} ($a1) = $var1, ~ \log_{$b} ($a2) = $var2, ~ \text{and} ~ \log_{$b} ($a3) = $var3.\] $PAR Then, find the following quantities in terms of \($var1, $var2\), and \($var3\), if possible. If it is not possible to determine the quantity in terms of \($var1, $var2\), and \($var3\), then write "undefined" in the blank provided. @@ -111,7 +111,7 @@ ANS( String("undefined")-> cmp() ); if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR - ${BBOLD}Answer:${EBOLD} + ${BBOLD}Answer:${EBOLD} (a) \(2 $var1 - $var2 - $var3\), (b) \($var1 + $var2 + $var3\), (c) undefined $PAR END_TEXT @@ -121,7 +121,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('MathObject version'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Logarithmic_Equations_Properties_of_Logarithms/Domain1.pg b/Contrib/Mizzou/College_Algebra/Logarithmic_Equations_Properties_of_Logarithms/Domain1.pg index 9e547e14e6..842cda6713 100644 --- a/Contrib/Mizzou/College_Algebra/Logarithmic_Equations_Properties_of_Logarithms/Domain1.pg +++ b/Contrib/Mizzou/College_Algebra/Logarithmic_Equations_Properties_of_Logarithms/Domain1.pg @@ -4,9 +4,9 @@ ## KEYWORDS('logarithm', 'laws of logarithms') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Exponential and Logarithmic Functions') -## DBchapter('Laws of Logarithms') +## DBchapter('Laws of Logarithms') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -26,7 +26,7 @@ loadMacros( "PGchoicemacros.pl", "PGunion.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -51,7 +51,7 @@ $ans = Compute(" ($a,inf)"); Context()->texStrings; BEGIN_TEXT -Find the domain of the function \(f(x) = $f\). Write your answer using \{AnswerFormatHelp("interval", "interval notation")\}. +Find the domain of the function \(f(x) = $f\). Write your answer using \{helpLink("interval", "interval notation")\}. $PAR $SPACE The domain of \(f(x)\) is \{ans_rule(20)\}. @@ -70,7 +70,7 @@ ANS( $ans->cmp() ); if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR - ${BBOLD}Answer:${EBOLD} + ${BBOLD}Answer:${EBOLD} \($ans\) $PAR END_TEXT @@ -80,7 +80,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('MathObject version'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Logarithmic_Equations_Properties_of_Logarithms/Domain2.pg b/Contrib/Mizzou/College_Algebra/Logarithmic_Equations_Properties_of_Logarithms/Domain2.pg index b0ce477e7b..3906f676ab 100644 --- a/Contrib/Mizzou/College_Algebra/Logarithmic_Equations_Properties_of_Logarithms/Domain2.pg +++ b/Contrib/Mizzou/College_Algebra/Logarithmic_Equations_Properties_of_Logarithms/Domain2.pg @@ -4,9 +4,9 @@ ## KEYWORDS('logarithm', 'laws of logarithms') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Exponential and Logarithmic Functions') -## DBchapter('Laws of Logarithms') +## DBchapter('Laws of Logarithms') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -26,7 +26,7 @@ loadMacros( "PGchoicemacros.pl", "PGunion.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "contextFraction.pl", @@ -67,7 +67,7 @@ $dans = "\(\left($endpt,\infty\right)\)"; Context()->texStrings; BEGIN_TEXT -Find the domain of the function \(f(x) = $f\). Write your answer using \{AnswerFormatHelp("interval", "interval notation")\}. +Find the domain of the function \(f(x) = $f\). Write your answer using \{helpLink("interval", "interval notation")\}. $PAR $SPACE The domain of \(f(x)\) is \{ans_rule(20)\}. @@ -96,7 +96,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('MathObject version'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Logarithmic_Equations_Properties_of_Logarithms/Inverse_Properties.pg b/Contrib/Mizzou/College_Algebra/Logarithmic_Equations_Properties_of_Logarithms/Inverse_Properties.pg index 3698b455d6..cb9457881c 100644 --- a/Contrib/Mizzou/College_Algebra/Logarithmic_Equations_Properties_of_Logarithms/Inverse_Properties.pg +++ b/Contrib/Mizzou/College_Algebra/Logarithmic_Equations_Properties_of_Logarithms/Inverse_Properties.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGchoicemacros.pl", @@ -29,7 +29,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $base = list_random(exp(1),10,2,3,4,5,6,7,8,9); @@ -55,18 +55,18 @@ if ($case == 0) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT -Simplify: +Simplify: $PAR \($dispq = \) \{ans_rule(15)\} END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($num)->cmp()); @@ -78,7 +78,7 @@ ANS(Compute($num)->cmp()); if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR - ${BBOLD}Answer:${EBOLD} + ${BBOLD}Answer:${EBOLD} \($num\) $PAR END_TEXT @@ -88,7 +88,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Logarithmic_Equations_Properties_of_Logarithms/Inverse_Properties_01.pg b/Contrib/Mizzou/College_Algebra/Logarithmic_Equations_Properties_of_Logarithms/Inverse_Properties_01.pg index cc3b33b192..ec19905353 100644 --- a/Contrib/Mizzou/College_Algebra/Logarithmic_Equations_Properties_of_Logarithms/Inverse_Properties_01.pg +++ b/Contrib/Mizzou/College_Algebra/Logarithmic_Equations_Properties_of_Logarithms/Inverse_Properties_01.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -28,7 +28,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $base = list_random(exp(1),10,2,3,4,5,6,7,8,9); @@ -54,18 +54,18 @@ if ($case == 0) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT -Simplify: +Simplify: $PAR \($dispq = \) \{ans_rule(15)\} END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($num)->cmp()); @@ -77,7 +77,7 @@ ANS(Compute($num)->cmp()); if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR - ${BBOLD}Answer:${EBOLD} + ${BBOLD}Answer:${EBOLD} \($num\) $PAR END_TEXT @@ -87,7 +87,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Logarithmic_Equations_Properties_of_Logarithms/Inverse_Properties_02.pg b/Contrib/Mizzou/College_Algebra/Logarithmic_Equations_Properties_of_Logarithms/Inverse_Properties_02.pg index 0016287038..7d1751bcdc 100644 --- a/Contrib/Mizzou/College_Algebra/Logarithmic_Equations_Properties_of_Logarithms/Inverse_Properties_02.pg +++ b/Contrib/Mizzou/College_Algebra/Logarithmic_Equations_Properties_of_Logarithms/Inverse_Properties_02.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -28,7 +28,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); Context()->variables->are(x=>"Real", y=>"Real"); @@ -82,18 +82,18 @@ if ($a == 1 && $b == 1) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT -Simplify assuming all variables are positive: +Simplify assuming all variables are positive: $PAR \(\displaystyle $dispq = \) \{ans_rule(15)\} END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($ans)->cmp()); @@ -105,7 +105,7 @@ ANS(Compute($ans)->cmp()); if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR - ${BBOLD}Answer:${EBOLD} + ${BBOLD}Answer:${EBOLD} \($dispans\) $PAR END_TEXT @@ -115,7 +115,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Logarithmic_Equations_Properties_of_Logarithms/Inverse_Properties_03.pg b/Contrib/Mizzou/College_Algebra/Logarithmic_Equations_Properties_of_Logarithms/Inverse_Properties_03.pg index 706d27e286..ba67ef870f 100644 --- a/Contrib/Mizzou/College_Algebra/Logarithmic_Equations_Properties_of_Logarithms/Inverse_Properties_03.pg +++ b/Contrib/Mizzou/College_Algebra/Logarithmic_Equations_Properties_of_Logarithms/Inverse_Properties_03.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "contextFraction.pl", @@ -29,7 +29,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Fraction-NoDecimals"); Context()->variables->are(x=>"Real", y=>"Real"); @@ -52,18 +52,18 @@ if ($base == exp(1)) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT -Simplify assuming all variables are positive: +Simplify assuming all variables are positive: $PAR \(\displaystyle $dispq = \) \{ans_rule(15)\} END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($ans)->cmp(studentsMustReduceFractions=>1)); @@ -75,7 +75,7 @@ ANS(Compute($ans)->cmp(studentsMustReduceFractions=>1)); if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR - ${BBOLD}Answer:${EBOLD} + ${BBOLD}Answer:${EBOLD} \($ans\) $PAR END_TEXT @@ -85,7 +85,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Logarithmic_Equations_Properties_of_Logarithms/Prod.pg b/Contrib/Mizzou/College_Algebra/Logarithmic_Equations_Properties_of_Logarithms/Prod.pg index f268a42fb0..f9ddfad09e 100644 --- a/Contrib/Mizzou/College_Algebra/Logarithmic_Equations_Properties_of_Logarithms/Prod.pg +++ b/Contrib/Mizzou/College_Algebra/Logarithmic_Equations_Properties_of_Logarithms/Prod.pg @@ -4,9 +4,9 @@ ## KEYWORDS('logarithm', 'laws of logarithms') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Exponential and Logarithmic Functions') -## DBchapter('Laws of Logarithms') +## DBchapter('Laws of Logarithms') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -26,7 +26,7 @@ loadMacros( "PGchoicemacros.pl", "PGunion.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -96,7 +96,7 @@ $showPartialCorrectAnswers = 0; if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR - ${BBOLD}Answer:${EBOLD} + ${BBOLD}Answer:${EBOLD} \($k + $m\ln (x) - $n \ln (y)\) $PAR END_TEXT @@ -106,7 +106,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('MathObject version'); diff --git a/Contrib/Mizzou/College_Algebra/Logarithmic_Equations_Properties_of_Logarithms/Props1.pg b/Contrib/Mizzou/College_Algebra/Logarithmic_Equations_Properties_of_Logarithms/Props1.pg index 5cff87a4e4..b554f56f9a 100644 --- a/Contrib/Mizzou/College_Algebra/Logarithmic_Equations_Properties_of_Logarithms/Props1.pg +++ b/Contrib/Mizzou/College_Algebra/Logarithmic_Equations_Properties_of_Logarithms/Props1.pg @@ -4,9 +4,9 @@ ## KEYWORDS('nonlinear inequality', 'polynomial') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Exponential and Logarithmic Functions') -## DBchapter('Laws of Logarithms') +## DBchapter('Laws of Logarithms') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -23,7 +23,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -104,11 +104,11 @@ $ans = $possans[$pos[0]]; Context()->texStrings; BEGIN_TEXT -Which of the following is equal to \( \log_{$base}($a $var1) \)? +Which of the following is equal to \( \log_{$base}($a $var1) \)? $PAR A. $choices[0] $BR -B. $choices[1] +B. $choices[1] $BR C. $choices[2] $BR diff --git a/Contrib/Mizzou/College_Algebra/Logarithmic_Equations_Properties_of_Logarithms/SqrtRoot.pg b/Contrib/Mizzou/College_Algebra/Logarithmic_Equations_Properties_of_Logarithms/SqrtRoot.pg index 5777bea0c5..53a6b3533e 100644 --- a/Contrib/Mizzou/College_Algebra/Logarithmic_Equations_Properties_of_Logarithms/SqrtRoot.pg +++ b/Contrib/Mizzou/College_Algebra/Logarithmic_Equations_Properties_of_Logarithms/SqrtRoot.pg @@ -4,9 +4,9 @@ ## KEYWORDS('logarithm', 'laws of logarithms') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Exponential and Logarithmic Functions') -## DBchapter('Laws of Logarithms') +## DBchapter('Laws of Logarithms') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -26,7 +26,7 @@ loadMacros( "PGchoicemacros.pl", "PGunion.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); diff --git a/Contrib/Mizzou/College_Algebra/Logarithmic_Equations_Properties_of_Logarithms/SquareRoot.pg b/Contrib/Mizzou/College_Algebra/Logarithmic_Equations_Properties_of_Logarithms/SquareRoot.pg index b55f192b55..d29a83bf35 100644 --- a/Contrib/Mizzou/College_Algebra/Logarithmic_Equations_Properties_of_Logarithms/SquareRoot.pg +++ b/Contrib/Mizzou/College_Algebra/Logarithmic_Equations_Properties_of_Logarithms/SquareRoot.pg @@ -4,9 +4,9 @@ ## KEYWORDS('logarithm', 'laws of logarithms') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Exponential and Logarithmic Functions') -## DBchapter('Laws of Logarithms') +## DBchapter('Laws of Logarithms') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -26,7 +26,7 @@ loadMacros( "PGchoicemacros.pl", "PGunion.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "contextFraction.pl", @@ -108,7 +108,7 @@ $showPartialCorrectAnswers = 0; if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR - ${BBOLD}Answer:${EBOLD} + ${BBOLD}Answer:${EBOLD} \($ans1\log(x) +$ans2 \log(y)+ $ans3 \log(z)\) $PAR END_TEXT @@ -118,7 +118,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('MathObject version'); diff --git a/Contrib/Mizzou/College_Algebra/Logarithmic_Equations_Properties_of_Logarithms/SumToProduct.pg b/Contrib/Mizzou/College_Algebra/Logarithmic_Equations_Properties_of_Logarithms/SumToProduct.pg index 0452d3b86b..9fa4d5b318 100644 --- a/Contrib/Mizzou/College_Algebra/Logarithmic_Equations_Properties_of_Logarithms/SumToProduct.pg +++ b/Contrib/Mizzou/College_Algebra/Logarithmic_Equations_Properties_of_Logarithms/SumToProduct.pg @@ -4,9 +4,9 @@ ## KEYWORDS('logarithm', 'laws of logarithms') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Exponential and Logarithmic Functions') -## DBchapter('Laws of Logarithms') +## DBchapter('Laws of Logarithms') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -25,7 +25,7 @@ loadMacros( "PGstandard.pl", "PGchoicemacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "contextFraction.pl", "PGcourse.pl" @@ -39,7 +39,7 @@ PeriodicRerandomization("3"); $b = random(2,10); $m = random(1,3); $n = random(1,4-$m); -$case = random(0,1,1); +$case = random(0,1,1); if ($case == 0) { do { $a = random(2,9); @@ -106,7 +106,7 @@ $showPartialCorrectAnswers = 0; if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR - ${BBOLD}Answer:${EBOLD} + ${BBOLD}Answer:${EBOLD} \( $ans\) $PAR END_TEXT @@ -116,7 +116,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('MathObject version'); diff --git a/Contrib/Mizzou/College_Algebra/Logarithmic_Equations_Properties_of_Logarithms/True_False.pg b/Contrib/Mizzou/College_Algebra/Logarithmic_Equations_Properties_of_Logarithms/True_False.pg index 831a944ad3..3618f122e3 100644 --- a/Contrib/Mizzou/College_Algebra/Logarithmic_Equations_Properties_of_Logarithms/True_False.pg +++ b/Contrib/Mizzou/College_Algebra/Logarithmic_Equations_Properties_of_Logarithms/True_False.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGchoicemacros.pl", @@ -29,7 +29,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $num1 = random(2,7,1); @@ -62,7 +62,7 @@ $tf -> qa ("\(\displaystyle \log_b \frac{x}{y} = \frac{\log_b x}{\log_b y}\)", " $tf->choose(5); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -73,7 +73,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### install_problem_grader(~~&std_problem_grader); ANS( str_cmp( $tf->ra_correct_ans ) ); @@ -89,7 +89,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Logarithmic_Equations_Properties_of_Logarithms/prod6.pg b/Contrib/Mizzou/College_Algebra/Logarithmic_Equations_Properties_of_Logarithms/prod6.pg index 098e119326..55a61d0570 100644 --- a/Contrib/Mizzou/College_Algebra/Logarithmic_Equations_Properties_of_Logarithms/prod6.pg +++ b/Contrib/Mizzou/College_Algebra/Logarithmic_Equations_Properties_of_Logarithms/prod6.pg @@ -4,9 +4,9 @@ ## KEYWORDS('logarithm', 'laws of logarithms') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Exponential and Logarithmic Functions') -## DBchapter('Laws of Logarithms') +## DBchapter('Laws of Logarithms') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -27,7 +27,7 @@ loadMacros( "PGchoicemacros.pl", "PGunion.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -94,7 +94,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Logarithmic_Equations_Simplifying/Simplifying1.pg b/Contrib/Mizzou/College_Algebra/Logarithmic_Equations_Simplifying/Simplifying1.pg index 70cec92012..933cdf7410 100644 --- a/Contrib/Mizzou/College_Algebra/Logarithmic_Equations_Simplifying/Simplifying1.pg +++ b/Contrib/Mizzou/College_Algebra/Logarithmic_Equations_Simplifying/Simplifying1.pg @@ -4,9 +4,9 @@ ## KEYWORDS('nonlinear inequality', 'polynomial') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Exponential and Logarithmic Functions') -## DBchapter('Laws of Logarithms') +## DBchapter('Laws of Logarithms') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -26,7 +26,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" diff --git a/Contrib/Mizzou/College_Algebra/NPL_Files/Polynomials_Multiplication/52IntAlg_21_MultPoly.pg b/Contrib/Mizzou/College_Algebra/NPL_Files/Polynomials_Multiplication/52IntAlg_21_MultPoly.pg index d3359a9a03..d2d382c5e8 100644 --- a/Contrib/Mizzou/College_Algebra/NPL_Files/Polynomials_Multiplication/52IntAlg_21_MultPoly.pg +++ b/Contrib/Mizzou/College_Algebra/NPL_Files/Polynomials_Multiplication/52IntAlg_21_MultPoly.pg @@ -1,6 +1,6 @@ ###DESCRIPTION ## Multiplying Polynomials -## +## ##ENDDESCRIPTION ## DBsubject('Intermediate Algebra') ## DBchapter('Ch 05: Polynomials, Polynomial Functions, and Factoring') @@ -15,7 +15,7 @@ ## Institution('The College of Idaho') ## Date: 2007/10 # Pulled from NPL: Library/CollegeOfIdaho/setAlgebra_05_02_MultiplyPolynomials/52IntAlg_09_MultPoly.pg -# Edited for Periodic Re-randomization by Rick Lynch @ Mizzou +# Edited for Periodic Re-randomization by Rick Lynch @ Mizzou DOCUMENT(); # This should be the first executable line in the problem. @@ -23,7 +23,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGcourse.pl" ); @@ -36,7 +36,7 @@ PeriodicRerandomization("3"); Context("LimitedPolynomial-Strict"); -($a1,$a0) = (random(2,9,1), non_zero_random(-9,9,1)); +($a1,$a0) = (random(2,9,1), non_zero_random(-9,9,1)); $poly1 = Formula("$a1 x + $a0")->reduce; $poly2 = Formula("$a1 x - $a0")->reduce; @@ -45,7 +45,7 @@ $poly2 = Formula("$a1 x - $a0")->reduce; # Main text Context()->texStrings; BEGIN_TEXT -Multiply and simplify: $PAR\( ($poly1)($poly2) =\) \{ ans_rule(40) \} +Multiply and simplify: $PAR\( ($poly1)($poly2) =\) \{ ans_rule(40) \} END_TEXT ###################################### @@ -76,7 +76,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/NPL_Files/Real_Numbers/Simplifying_Expressions/11IntAlg_01_AlgebraicExpressions.pg b/Contrib/Mizzou/College_Algebra/NPL_Files/Real_Numbers/Simplifying_Expressions/11IntAlg_01_AlgebraicExpressions.pg index ffd14662ca..1fe463a35a 100644 --- a/Contrib/Mizzou/College_Algebra/NPL_Files/Real_Numbers/Simplifying_Expressions/11IntAlg_01_AlgebraicExpressions.pg +++ b/Contrib/Mizzou/College_Algebra/NPL_Files/Real_Numbers/Simplifying_Expressions/11IntAlg_01_AlgebraicExpressions.pg @@ -1,6 +1,6 @@ ##DESCRIPTION ## Asks for the algebraic expression for an English phrase -## +## ##ENDDESCRIPTION ## DBsubject('Intermediate Algebra') ## DBchapter('Ch 01: Algebra, Mathematical Models and Problem Solving') @@ -21,7 +21,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -52,9 +52,9 @@ Write each English phrase as an algebraic expression. Let \(x\) represent the number. $PAR -(a) $num[$a-1] $moreORless[$choose] than a number: \{ ans_rule(20) \} +(a) $num[$a-1] $moreORless[$choose] than a number: \{ ans_rule(20) \} $PAR -(b) $num[$b-1] $decORinc[$choose] by a number: \{ ans_rule(20) \} +(b) $num[$b-1] $decORinc[$choose] by a number: \{ ans_rule(20) \} END_TEXT ###################################### @@ -80,12 +80,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("formulas","Click here for help entering formulas.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("formulas","Click here for help entering formulas.")\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/NPL_Files/Real_Numbers/Simplifying_Expressions/11IntAlg_02_AlgebraicExpressions.pg b/Contrib/Mizzou/College_Algebra/NPL_Files/Real_Numbers/Simplifying_Expressions/11IntAlg_02_AlgebraicExpressions.pg index 064ebb0052..44e4148dad 100644 --- a/Contrib/Mizzou/College_Algebra/NPL_Files/Real_Numbers/Simplifying_Expressions/11IntAlg_02_AlgebraicExpressions.pg +++ b/Contrib/Mizzou/College_Algebra/NPL_Files/Real_Numbers/Simplifying_Expressions/11IntAlg_02_AlgebraicExpressions.pg @@ -1,6 +1,6 @@ ##DESCRIPTION ## Asks for the algebraic expression for an English phrase -## +## ##ENDDESCRIPTION ## DBsubject('Intermediate Algebra') ## DBchapter('Ch 01: Algebra, Mathematical Models and Problem Solving') @@ -21,7 +21,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -55,9 +55,9 @@ Write each English phrase as an algebraic expression. Let \(x\) represent the number. $PAR -(a) $phrase a number: \{ ans_rule(20) \} +(a) $phrase a number: \{ ans_rule(20) \} $PAR -(b) $num1[$b-2] $moreORless[$choose] than $num2[$c-2] a number: \{ ans_rule(20) \} +(b) $num1[$b-2] $moreORless[$choose] than $num2[$c-2] a number: \{ ans_rule(20) \} END_TEXT ###################################### @@ -83,12 +83,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("formulas","Click here for help entering formulas.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("formulas","Click here for help entering formulas.")\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/NPL_Files/Real_Numbers/Simplifying_Expressions/11IntAlg_03_AlgebraicExpressions.pg b/Contrib/Mizzou/College_Algebra/NPL_Files/Real_Numbers/Simplifying_Expressions/11IntAlg_03_AlgebraicExpressions.pg index 35f8da7651..4fa498b1b7 100644 --- a/Contrib/Mizzou/College_Algebra/NPL_Files/Real_Numbers/Simplifying_Expressions/11IntAlg_03_AlgebraicExpressions.pg +++ b/Contrib/Mizzou/College_Algebra/NPL_Files/Real_Numbers/Simplifying_Expressions/11IntAlg_03_AlgebraicExpressions.pg @@ -1,6 +1,6 @@ ##DESCRIPTION ## Asks for the algebraic expression for an English phrase -## +## ##ENDDESCRIPTION ## DBsubject('Intermediate Algebra') ## DBchapter('Ch 01: Algebra, Mathematical Models and Problem Solving') @@ -21,7 +21,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -46,7 +46,7 @@ $b = random(2,10,1); $c = random(2,9,1); @g = ("x / $c + $b","$c / x + $b","x / $c - $b","$c / x - $b"); @question_phrase_b = ("$num1[$b-2] more than the quotient of a number and $c", - "$num1[$b-2] more than the quotient of $c and a number", + "$num1[$b-2] more than the quotient of $c and a number", "$num1[$b-2] less than the quotient of a number and $c", "$num1[$b-2] less than the quotient of $c and a number"); $choose_b = random(0,3,1); @@ -59,9 +59,9 @@ Write each English phrase as an algebraic expression. Let \(x\) represent the number. $PAR -(a) The difference of $question_phrase_a[$choose_a]: \{ ans_rule(20) \} +(a) The difference of $question_phrase_a[$choose_a]: \{ ans_rule(20) \} $PAR -(b) $question_phrase_b[$choose_b]: \{ ans_rule(20) \} +(b) $question_phrase_b[$choose_b]: \{ ans_rule(20) \} END_TEXT ###################################### @@ -87,12 +87,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("formulas","Click here for help entering formulas.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("formulas","Click here for help entering formulas.")\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/.pg b/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/.pg index b939f8f271..723c68d084 100644 --- a/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/.pg +++ b/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGcourse.pl" ); diff --git a/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/Addition(cubic)1.pg b/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/Addition(cubic)1.pg index 53965a02ac..ab37b6310d 100644 --- a/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/Addition(cubic)1.pg +++ b/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/Addition(cubic)1.pg @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGcourse.pl" ); @@ -100,7 +100,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/Addition(cubic)2.pg b/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/Addition(cubic)2.pg index 19849250e4..ee868a27fa 100644 --- a/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/Addition(cubic)2.pg +++ b/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/Addition(cubic)2.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGcourse.pl" ); diff --git a/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/Addition(cubic)3.pg b/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/Addition(cubic)3.pg index a05a6214c7..e25b230d07 100644 --- a/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/Addition(cubic)3.pg +++ b/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/Addition(cubic)3.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGcourse.pl" ); diff --git a/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/Addition(cubic)4.pg b/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/Addition(cubic)4.pg index 4a1235db81..167a13df6f 100644 --- a/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/Addition(cubic)4.pg +++ b/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/Addition(cubic)4.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGcourse.pl" ); diff --git a/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/Addition1.pg b/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/Addition1.pg index 58a2970b5b..73f278a86a 100644 --- a/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/Addition1.pg +++ b/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/Addition1.pg @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGcourse.pl" ); @@ -97,7 +97,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/Addition2.pg b/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/Addition2.pg index 05138265e1..1172609665 100644 --- a/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/Addition2.pg +++ b/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/Addition2.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGcourse.pl" ); diff --git a/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/Addition3.pg b/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/Addition3.pg index c9fac3d60c..fe048c497a 100644 --- a/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/Addition3.pg +++ b/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/Addition3.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGcourse.pl" ); diff --git a/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/Addition4.pg b/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/Addition4.pg index fc18b268ae..283d8855c2 100644 --- a/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/Addition4.pg +++ b/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/Addition4.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGcourse.pl" ); diff --git a/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/MixedDegrees1.pg b/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/MixedDegrees1.pg index 5c002276ff..cd6c1963ec 100644 --- a/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/MixedDegrees1.pg +++ b/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/MixedDegrees1.pg @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGcourse.pl" ); @@ -101,7 +101,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/MixedDegrees2.pg b/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/MixedDegrees2.pg index 64a802fed7..081b7e7f0b 100644 --- a/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/MixedDegrees2.pg +++ b/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/MixedDegrees2.pg @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGcourse.pl" ); @@ -101,7 +101,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/MixedVariables.pg b/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/MixedVariables.pg index 7d7cb7f691..7d6ce81ea6 100644 --- a/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/MixedVariables.pg +++ b/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/MixedVariables.pg @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGcourse.pl" ); @@ -98,7 +98,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ diff --git a/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/MixedVariables2.pg b/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/MixedVariables2.pg index ba67e61ce0..40cb932ad2 100644 --- a/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/MixedVariables2.pg +++ b/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/MixedVariables2.pg @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGcourse.pl" ); @@ -106,7 +106,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ diff --git a/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/Subtraction(cubic)1.pg b/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/Subtraction(cubic)1.pg index c9712470b6..f37020bef1 100644 --- a/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/Subtraction(cubic)1.pg +++ b/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/Subtraction(cubic)1.pg @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGcourse.pl" ); @@ -101,7 +101,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ diff --git a/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/Subtraction(cubic)2.pg b/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/Subtraction(cubic)2.pg index 31d33f15c9..15cc5893b8 100644 --- a/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/Subtraction(cubic)2.pg +++ b/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/Subtraction(cubic)2.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGcourse.pl" ); diff --git a/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/Subtraction(cubic)3.pg b/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/Subtraction(cubic)3.pg index a94932c08a..89ae31eb5f 100644 --- a/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/Subtraction(cubic)3.pg +++ b/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/Subtraction(cubic)3.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGcourse.pl" ); diff --git a/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/Subtraction(cubic)4.pg b/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/Subtraction(cubic)4.pg index 32cba65617..18fb3114ca 100644 --- a/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/Subtraction(cubic)4.pg +++ b/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/Subtraction(cubic)4.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGcourse.pl" ); diff --git a/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/Subtraction1.pg b/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/Subtraction1.pg index ff792ada91..6457f5514d 100644 --- a/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/Subtraction1.pg +++ b/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/Subtraction1.pg @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGcourse.pl" ); @@ -98,7 +98,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/Subtraction2.pg b/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/Subtraction2.pg index 3b66403e15..64df539e85 100644 --- a/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/Subtraction2.pg +++ b/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/Subtraction2.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGcourse.pl" ); @@ -109,7 +109,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/Subtraction3.pg b/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/Subtraction3.pg index 4e8dd11ce8..749728ec5e 100644 --- a/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/Subtraction3.pg +++ b/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/Subtraction3.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGcourse.pl" ); diff --git a/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/Subtraction4.pg b/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/Subtraction4.pg index d1813ec47b..e28216019e 100644 --- a/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/Subtraction4.pg +++ b/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/Subtraction4.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGcourse.pl" ); diff --git a/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/blankProblem.pg b/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/blankProblem.pg index b8b13171d5..3a892191b4 100644 --- a/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/blankProblem.pg +++ b/Contrib/Mizzou/College_Algebra/Polynomials_Addition_Subtraction/blankProblem.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGcourse.pl" ); @@ -75,7 +75,7 @@ Context()->{error}{convert} = sub { BEGIN_TEXT -Expand the expression $expression and combine +Expand the expression $expression and combine like terms. Simplify your answer as much as possible. $BR diff --git a/Contrib/Mizzou/College_Algebra/Polynomials_Degree/Degree1.pg b/Contrib/Mizzou/College_Algebra/Polynomials_Degree/Degree1.pg index 163b2b457e..dc1fb5e24f 100644 --- a/Contrib/Mizzou/College_Algebra/Polynomials_Degree/Degree1.pg +++ b/Contrib/Mizzou/College_Algebra/Polynomials_Degree/Degree1.pg @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGcourse.pl" ); @@ -133,7 +133,7 @@ The degree of the entire polynomial is \($deg\). Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Polynomials_Degree/Degree2.pg b/Contrib/Mizzou/College_Algebra/Polynomials_Degree/Degree2.pg index 6f758f59ec..64feb27fb3 100644 --- a/Contrib/Mizzou/College_Algebra/Polynomials_Degree/Degree2.pg +++ b/Contrib/Mizzou/College_Algebra/Polynomials_Degree/Degree2.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGcourse.pl" ); @@ -108,7 +108,7 @@ The degree of the entire polynomial is $maxdeg. Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Polynomials_Degree/DegreeOfPolynomialOnly.pg b/Contrib/Mizzou/College_Algebra/Polynomials_Degree/DegreeOfPolynomialOnly.pg index 7618bd8f20..6afc26689d 100644 --- a/Contrib/Mizzou/College_Algebra/Polynomials_Degree/DegreeOfPolynomialOnly.pg +++ b/Contrib/Mizzou/College_Algebra/Polynomials_Degree/DegreeOfPolynomialOnly.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGcourse.pl" ); @@ -86,7 +86,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ diff --git a/Contrib/Mizzou/College_Algebra/Polynomials_End_Behavior/EndBehavior1.pg b/Contrib/Mizzou/College_Algebra/Polynomials_End_Behavior/EndBehavior1.pg index 8cbffb4664..540aaf9cff 100644 --- a/Contrib/Mizzou/College_Algebra/Polynomials_End_Behavior/EndBehavior1.pg +++ b/Contrib/Mizzou/College_Algebra/Polynomials_End_Behavior/EndBehavior1.pg @@ -26,7 +26,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "parserRadioButtons.pl", "PGcourse.pl" @@ -111,8 +111,8 @@ $PAR $PAR where: $PAR -\{ image("A.png", width=>100, height=>100) \} -\{ image("B.png", width=>100, height=>100) \} +\{ image("A.png", width=>100, height=>100) \} +\{ image("B.png", width=>100, height=>100) \} \{ image("C.png", width=>100, height=>100) \} \{ image("D.png", width=>100, height=>100) \} END_TEXT @@ -132,7 +132,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Polynomials_End_Behavior/EndBehavior2.pg b/Contrib/Mizzou/College_Algebra/Polynomials_End_Behavior/EndBehavior2.pg index ff97d10f91..493fbbd929 100644 --- a/Contrib/Mizzou/College_Algebra/Polynomials_End_Behavior/EndBehavior2.pg +++ b/Contrib/Mizzou/College_Algebra/Polynomials_End_Behavior/EndBehavior2.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "parserRadioButtons.pl", "PGcourse.pl" @@ -93,8 +93,8 @@ $PAR $PAR where: $PAR -\{ image("A.png", width=>100, height=>100) \} -\{ image("B.png", width=>100, height=>100) \} +\{ image("A.png", width=>100, height=>100) \} +\{ image("B.png", width=>100, height=>100) \} \{ image("C.png", width=>100, height=>100) \} \{ image("D.png", width=>100, height=>100) \} END_TEXT @@ -114,7 +114,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Polynomials_End_Behavior/FactoredForm.pg b/Contrib/Mizzou/College_Algebra/Polynomials_End_Behavior/FactoredForm.pg index 795c0c38f4..bb0027979c 100644 --- a/Contrib/Mizzou/College_Algebra/Polynomials_End_Behavior/FactoredForm.pg +++ b/Contrib/Mizzou/College_Algebra/Polynomials_End_Behavior/FactoredForm.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "parserRadioButtons.pl", "PGcourse.pl" @@ -96,8 +96,8 @@ $PAR $PAR where: $PAR -\{ image("A.png", width=>100, height=>100) \} -\{ image("B.png", width=>100, height=>100) \} +\{ image("A.png", width=>100, height=>100) \} +\{ image("B.png", width=>100, height=>100) \} \{ image("C.png", width=>100, height=>100) \} \{ image("D.png", width=>100, height=>100) \} END_TEXT @@ -118,7 +118,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Polynomials_End_Behavior/FactoredForm2.pg b/Contrib/Mizzou/College_Algebra/Polynomials_End_Behavior/FactoredForm2.pg index 9ce36c6b5d..6babbcb31d 100644 --- a/Contrib/Mizzou/College_Algebra/Polynomials_End_Behavior/FactoredForm2.pg +++ b/Contrib/Mizzou/College_Algebra/Polynomials_End_Behavior/FactoredForm2.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "parserRadioButtons.pl", "PGcourse.pl" @@ -96,8 +96,8 @@ $PAR $PAR where: $PAR -\{ image("A.png", width=>100, height=>100) \} -\{ image("B.png", width=>100, height=>100) \} +\{ image("A.png", width=>100, height=>100) \} +\{ image("B.png", width=>100, height=>100) \} \{ image("C.png", width=>100, height=>100) \} \{ image("D.png", width=>100, height=>100) \} END_TEXT @@ -119,7 +119,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ diff --git a/Contrib/Mizzou/College_Algebra/Polynomials_End_Behavior/FactoredForm3.pg b/Contrib/Mizzou/College_Algebra/Polynomials_End_Behavior/FactoredForm3.pg index bc939d110e..4f9d12aa50 100644 --- a/Contrib/Mizzou/College_Algebra/Polynomials_End_Behavior/FactoredForm3.pg +++ b/Contrib/Mizzou/College_Algebra/Polynomials_End_Behavior/FactoredForm3.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "parserRadioButtons.pl", "PGcourse.pl" @@ -87,8 +87,8 @@ $PAR $PAR where: $PAR -\{ image("A.png", width=>100, height=>100) \} -\{ image("B.png", width=>100, height=>100) \} +\{ image("A.png", width=>100, height=>100) \} +\{ image("B.png", width=>100, height=>100) \} \{ image("C.png", width=>100, height=>100) \} \{ image("D.png", width=>100, height=>100) \} END_TEXT @@ -109,7 +109,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Polynomials_End_Behavior/StraightForward.pg b/Contrib/Mizzou/College_Algebra/Polynomials_End_Behavior/StraightForward.pg index 185f5ad58c..94fe78c93b 100644 --- a/Contrib/Mizzou/College_Algebra/Polynomials_End_Behavior/StraightForward.pg +++ b/Contrib/Mizzou/College_Algebra/Polynomials_End_Behavior/StraightForward.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "parserRadioButtons.pl", "PGcourse.pl" @@ -94,8 +94,8 @@ $PAR $PAR where: $PAR -\{ image("A.png", width=>100, height=>100) \} -\{ image("B.png", width=>100, height=>100) \} +\{ image("A.png", width=>100, height=>100) \} +\{ image("B.png", width=>100, height=>100) \} \{ image("C.png", width=>100, height=>100) \} \{ image("D.png", width=>100, height=>100) \} END_TEXT @@ -115,7 +115,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Polynomials_Long_Division/ComputeValueBySythnethicDiv.pg b/Contrib/Mizzou/College_Algebra/Polynomials_Long_Division/ComputeValueBySythnethicDiv.pg index 00b637f0c6..215d731b16 100644 --- a/Contrib/Mizzou/College_Algebra/Polynomials_Long_Division/ComputeValueBySythnethicDiv.pg +++ b/Contrib/Mizzou/College_Algebra/Polynomials_Long_Division/ComputeValueBySythnethicDiv.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "parserRadioButtons.pl", "PGcourse.pl" @@ -70,7 +70,7 @@ $ans = $c4* ($a)**4 + $c3* ($a)**3 + $c2* ($a)**2 + $c1*$a + $c0; BEGIN_TEXT -Use synthetic division to find the function value listed below for the polynomial function \(P(x) = $P\). +Use synthetic division to find the function value listed below for the polynomial function \(P(x) = $P\). $PAR $SPACE \(P($a) = \) \{ans_rule(10)\} END_TEXT @@ -90,7 +90,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Polynomials_Long_Division/Cubic2.pg b/Contrib/Mizzou/College_Algebra/Polynomials_Long_Division/Cubic2.pg index 3dafa2fe1b..bd58b6e950 100644 --- a/Contrib/Mizzou/College_Algebra/Polynomials_Long_Division/Cubic2.pg +++ b/Contrib/Mizzou/College_Algebra/Polynomials_Long_Division/Cubic2.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "parserRadioButtons.pl", "PGcourse.pl" @@ -76,7 +76,7 @@ $P = "$c3 x^3 + $c2 x^2 + $c1 x + $c0"; Context()->texStrings; BEGIN_TEXT -Given the polynomial \(P(x) = $P\) and divisor \(d(x) = $D\), find the quotient \(Q(x)\) and remainder \(R(x)\). +Given the polynomial \(P(x) = $P\) and divisor \(d(x) = $D\), find the quotient \(Q(x)\) and remainder \(R(x)\). $PAR Write your answer in the form \( P(x) = d(x) Q(x) + R(x)\). $PAR @@ -99,7 +99,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Polynomials_Long_Division/Division1.pg b/Contrib/Mizzou/College_Algebra/Polynomials_Long_Division/Division1.pg index 365fb07be1..c2a6c5e586 100644 --- a/Contrib/Mizzou/College_Algebra/Polynomials_Long_Division/Division1.pg +++ b/Contrib/Mizzou/College_Algebra/Polynomials_Long_Division/Division1.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "parserRadioButtons.pl", "PGcourse.pl" @@ -75,7 +75,7 @@ $P = "x^3 + $e1 x^2 + $e2 x + $e3 "; Context()->texStrings; BEGIN_TEXT -Given the polynomial \(P(x) = $P\) and divisor \(d(x) = $D\), find the quotient \(Q(x)\) and remainder \(R(x)\). +Given the polynomial \(P(x) = $P\) and divisor \(d(x) = $D\), find the quotient \(Q(x)\) and remainder \(R(x)\). $PAR Write your answer in the form \( P(x) = d(x) Q(x) + R(x)\). $PAR @@ -98,7 +98,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Polynomials_Long_Division/Quartic.pg b/Contrib/Mizzou/College_Algebra/Polynomials_Long_Division/Quartic.pg index 8c331de516..1c7c889643 100644 --- a/Contrib/Mizzou/College_Algebra/Polynomials_Long_Division/Quartic.pg +++ b/Contrib/Mizzou/College_Algebra/Polynomials_Long_Division/Quartic.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "parserRadioButtons.pl", "PGcourse.pl" @@ -70,7 +70,7 @@ $r = $c + $d*$b; Context()->texStrings; BEGIN_TEXT -Given the polynomial \(P(x) = $P\) and divisor \(d(x) = $D\), find the quotient \(Q(x)\) and remainder \(R(x)\). +Given the polynomial \(P(x) = $P\) and divisor \(d(x) = $D\), find the quotient \(Q(x)\) and remainder \(R(x)\). $PAR Write your answer in the form \( P(x) = d(x) Q(x) + R(x)\). $PAR @@ -93,7 +93,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Polynomials_Long_Division/Quintic.pg b/Contrib/Mizzou/College_Algebra/Polynomials_Long_Division/Quintic.pg index f426d42583..375a9e0d73 100644 --- a/Contrib/Mizzou/College_Algebra/Polynomials_Long_Division/Quintic.pg +++ b/Contrib/Mizzou/College_Algebra/Polynomials_Long_Division/Quintic.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "parserRadioButtons.pl", "PGcourse.pl" @@ -69,7 +69,7 @@ $r = ($b)**5 + ($b)**3 +$b - $a; Context()->texStrings; BEGIN_TEXT -Given the polynomial \(P(x) = $P\) and divisor \(d(x) = $D\), find the quotient \(Q(x)\) and remainder \(R(x)\). +Given the polynomial \(P(x) = $P\) and divisor \(d(x) = $D\), find the quotient \(Q(x)\) and remainder \(R(x)\). $PAR Write your answer in the form \( P(x) = d(x) Q(x) + R(x)\). $PAR @@ -91,7 +91,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Polynomials_Long_Division/Root.pg b/Contrib/Mizzou/College_Algebra/Polynomials_Long_Division/Root.pg index ac2025ba91..3c2c0d64a1 100644 --- a/Contrib/Mizzou/College_Algebra/Polynomials_Long_Division/Root.pg +++ b/Contrib/Mizzou/College_Algebra/Polynomials_Long_Division/Root.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "parserRadioButtons.pl", "contextFraction.pl", @@ -97,7 +97,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Polynomials_Long_Division/ZeroesTheorem.pg b/Contrib/Mizzou/College_Algebra/Polynomials_Long_Division/ZeroesTheorem.pg index 0bece1cf17..1c5dd53738 100644 --- a/Contrib/Mizzou/College_Algebra/Polynomials_Long_Division/ZeroesTheorem.pg +++ b/Contrib/Mizzou/College_Algebra/Polynomials_Long_Division/ZeroesTheorem.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "parserRadioButtons.pl", "PGcourse.pl" @@ -92,7 +92,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Polynomials_Multiplication/Mult3.pg b/Contrib/Mizzou/College_Algebra/Polynomials_Multiplication/Mult3.pg index 01b639bbaa..53c6cf40a6 100644 --- a/Contrib/Mizzou/College_Algebra/Polynomials_Multiplication/Mult3.pg +++ b/Contrib/Mizzou/College_Algebra/Polynomials_Multiplication/Mult3.pg @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGcourse.pl" ); @@ -103,7 +103,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Polynomials_Multiplication/Mult4.pg b/Contrib/Mizzou/College_Algebra/Polynomials_Multiplication/Mult4.pg index 54368ad37b..6308458039 100644 --- a/Contrib/Mizzou/College_Algebra/Polynomials_Multiplication/Mult4.pg +++ b/Contrib/Mizzou/College_Algebra/Polynomials_Multiplication/Mult4.pg @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGcourse.pl" ); @@ -75,7 +75,7 @@ Context()->{error}{convert} = sub { BEGIN_TEXT -Perform the operations below and combine +Perform the operations below and combine like terms. Simplify your answer as much as possible. $BR @@ -95,7 +95,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ # Answer evaluation diff --git a/Contrib/Mizzou/College_Algebra/Polynomials_Multiplication/Mult5.pg b/Contrib/Mizzou/College_Algebra/Polynomials_Multiplication/Mult5.pg index 07c888576f..ac13d1733c 100644 --- a/Contrib/Mizzou/College_Algebra/Polynomials_Multiplication/Mult5.pg +++ b/Contrib/Mizzou/College_Algebra/Polynomials_Multiplication/Mult5.pg @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGcourse.pl" ); @@ -94,7 +94,7 @@ END_TEXT Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ # Answer evaluation diff --git a/Contrib/Mizzou/College_Algebra/Quadratic_Functions_Vertex_Form_and_Optimization/AlwaysMaximum.pg b/Contrib/Mizzou/College_Algebra/Quadratic_Functions_Vertex_Form_and_Optimization/AlwaysMaximum.pg index ab447e6011..db550950e1 100644 --- a/Contrib/Mizzou/College_Algebra/Quadratic_Functions_Vertex_Form_and_Optimization/AlwaysMaximum.pg +++ b/Contrib/Mizzou/College_Algebra/Quadratic_Functions_Vertex_Form_and_Optimization/AlwaysMaximum.pg @@ -30,7 +30,7 @@ loadMacros( "parserMultiAnswer.pl", "parserImplicitPlane.pl", "parserPopUp.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -84,7 +84,7 @@ $SPACE The function is decreasing on the interval \{ans_rule(10)\}. $BR $SPACE The function takes its \{$optimum->menu()\} value at \(y = \) \{ans_rule(5)\}. $BR $SPACE The domain of the function is the interval \{ans_rule(10)\}. $BR $SPACE The range of the function is the interval \{ans_rule(10)\}. $PAR -\{AnswerFormatHelp("interval","Click for help with writing interval notation")\}. +\{helpLink("interval","Click for help with writing interval notation")\}. END_TEXT @@ -95,19 +95,19 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { $PAR $BBOLD Answer: $EBOLD $BR - The vertex is the point \( \left($vertx,$verty\right)\). + The vertex is the point \( \left($vertx,$verty\right)\). $BR - The axis of symmetry is the line \($aos\). + The axis of symmetry is the line \($aos\). $BR - The function is increasing on the interval \($inc\). + The function is increasing on the interval \($inc\). $BR - The function is decreasing on the interval \($dec\). + The function is decreasing on the interval \($dec\). $BR - The function takes its $optans value at \(y = $verty\). + The function takes its $optans value at \(y = $verty\). $BR - The domain of the function is the interval \($domain\). + The domain of the function is the interval \($domain\). $BR - The range of the function is the interval \($range\). + The range of the function is the interval \($range\). $PAR END_TEXT } else { @@ -118,7 +118,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Quadratic_Functions_Vertex_Form_and_Optimization/Find_All_Info_Arbitrary_Lead_Coeff.pg b/Contrib/Mizzou/College_Algebra/Quadratic_Functions_Vertex_Form_and_Optimization/Find_All_Info_Arbitrary_Lead_Coeff.pg index b54e5b1dc5..121ea9b9a9 100644 --- a/Contrib/Mizzou/College_Algebra/Quadratic_Functions_Vertex_Form_and_Optimization/Find_All_Info_Arbitrary_Lead_Coeff.pg +++ b/Contrib/Mizzou/College_Algebra/Quadratic_Functions_Vertex_Form_and_Optimization/Find_All_Info_Arbitrary_Lead_Coeff.pg @@ -30,7 +30,7 @@ loadMacros( "parserMultiAnswer.pl", "parserImplicitPlane.pl", "parserPopUp.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -101,21 +101,21 @@ Context("Fraction-NoDecimals"); # Main text BEGIN_TEXT -Find the following information about the function \(f(x) = $f\). +Find the following information about the function \(f(x) = $f\). $PAR -(a) The vertex is the point \( \big( \) \{ans_rule(2) \} , \{ans_rule(2)\} \( \big) \). +(a) The vertex is the point \( \big( \) \{ans_rule(2) \} , \{ans_rule(2)\} \( \big) \). $PAR -(b) The axis of symmetry is the line \{ans_rule(10)\}. +(b) The axis of symmetry is the line \{ans_rule(10)\}. $PAR -(c) The function is increasing on the interval \{ans_rule(10)\}. +(c) The function is increasing on the interval \{ans_rule(10)\}. $PAR -(d) The function is decreasing on the interval \{ans_rule(10)\}. +(d) The function is decreasing on the interval \{ans_rule(10)\}. $PAR -(e) The function takes its \{$optimum->menu()\} value at \(y = \) \{ans_rule(5)\}. +(e) The function takes its \{$optimum->menu()\} value at \(y = \) \{ans_rule(5)\}. $PAR -(f) The domain of the function is the interval \{ans_rule(10)\}. +(f) The domain of the function is the interval \{ans_rule(10)\}. $PAR -(g) The range of the function is the interval \{ans_rule(10)\}. +(g) The range of the function is the interval \{ans_rule(10)\}. $PAR END_TEXT @@ -127,32 +127,32 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { $PAR $BBOLD Answer: $EBOLD $BR - (a) \( \left($vertx,$verty\right)\). + (a) \( \left($vertx,$verty\right)\). $PAR - (b) \($aosans\). + (b) \($aosans\). $PAR - (c) \($incans\). + (c) \($incans\). $PAR - (d) \($decans\). + (d) \($decans\). $PAR - (e) \{$optimum->correct_ans\} at \(y = $verty\). + (e) \{$optimum->correct_ans\} at \(y = $verty\). $PAR - (f) \($domain\). + (f) \($domain\). $PAR - (g) \($rangeans\). + (g) \($rangeans\). $PAR END_TEXT } else { BEGIN_TEXT $PAR - ${BBOLD}Help:$EBOLD \{AnswerFormatHelp("interval","Click for help with writing interval notation")\}. + ${BBOLD}Help:$EBOLD \{helpLink("interval","Click for help with writing interval notation")\}. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Quadratic_Functions_Vertex_Form_and_Optimization/Find_All_Info_Arbitrary_Lead_Coeff_No_Fractions.pg b/Contrib/Mizzou/College_Algebra/Quadratic_Functions_Vertex_Form_and_Optimization/Find_All_Info_Arbitrary_Lead_Coeff_No_Fractions.pg index 188dbb28c7..73cb29c003 100644 --- a/Contrib/Mizzou/College_Algebra/Quadratic_Functions_Vertex_Form_and_Optimization/Find_All_Info_Arbitrary_Lead_Coeff_No_Fractions.pg +++ b/Contrib/Mizzou/College_Algebra/Quadratic_Functions_Vertex_Form_and_Optimization/Find_All_Info_Arbitrary_Lead_Coeff_No_Fractions.pg @@ -30,7 +30,7 @@ loadMacros( "parserMultiAnswer.pl", "parserImplicitPlane.pl", "parserPopUp.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -101,21 +101,21 @@ Context("Fraction-NoDecimals"); # Main text BEGIN_TEXT -Find the following information about the function \(f(x) = $f\). +Find the following information about the function \(f(x) = $f\). $PAR -(a) The vertex is the point \( \big( \) \{ans_rule(2) \} , \{ans_rule(2)\} \( \big) \). +(a) The vertex is the point \( \big( \) \{ans_rule(2) \} , \{ans_rule(2)\} \( \big) \). $PAR -(b) The axis of symmetry is the line \{ans_rule(10)\}. +(b) The axis of symmetry is the line \{ans_rule(10)\}. $PAR -(c) The function is increasing on the interval \{ans_rule(10)\}. +(c) The function is increasing on the interval \{ans_rule(10)\}. $PAR -(d) The function is decreasing on the interval \{ans_rule(10)\}. +(d) The function is decreasing on the interval \{ans_rule(10)\}. $PAR -(e) The function takes its \{$optimum->menu()\} value at \(y = \) \{ans_rule(5)\}. +(e) The function takes its \{$optimum->menu()\} value at \(y = \) \{ans_rule(5)\}. $PAR -(f) The domain of the function is the interval \{ans_rule(10)\}. +(f) The domain of the function is the interval \{ans_rule(10)\}. $PAR -(g) The range of the function is the interval \{ans_rule(10)\}. +(g) The range of the function is the interval \{ans_rule(10)\}. $PAR END_TEXT @@ -127,32 +127,32 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { $PAR $BBOLD Answer: $EBOLD $BR - (a) \( \left($vertx,$verty\right)\). + (a) \( \left($vertx,$verty\right)\). $PAR - (b) \($aosans\). + (b) \($aosans\). $PAR - (c) \($incans\). + (c) \($incans\). $PAR - (d) \($decans\). + (d) \($decans\). $PAR - (e) \{$optimum->correct_ans\} at \(y = $verty\). + (e) \{$optimum->correct_ans\} at \(y = $verty\). $PAR - (f) \($domain\). + (f) \($domain\). $PAR - (g) \($rangeans\). + (g) \($rangeans\). $PAR END_TEXT } else { BEGIN_TEXT $PAR - ${BBOLD}Help:$EBOLD \{AnswerFormatHelp("interval","Click for help with writing interval notation")\}. + ${BBOLD}Help:$EBOLD \{helpLink("interval","Click for help with writing interval notation")\}. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Quadratic_Functions_Vertex_Form_and_Optimization/Find_All_Info_Negative_Lead_Coeff.pg b/Contrib/Mizzou/College_Algebra/Quadratic_Functions_Vertex_Form_and_Optimization/Find_All_Info_Negative_Lead_Coeff.pg index afc7fde4b0..1ba14bc0a6 100644 --- a/Contrib/Mizzou/College_Algebra/Quadratic_Functions_Vertex_Form_and_Optimization/Find_All_Info_Negative_Lead_Coeff.pg +++ b/Contrib/Mizzou/College_Algebra/Quadratic_Functions_Vertex_Form_and_Optimization/Find_All_Info_Negative_Lead_Coeff.pg @@ -30,7 +30,7 @@ loadMacros( "parserMultiAnswer.pl", "parserImplicitPlane.pl", "parserPopUp.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -101,21 +101,21 @@ Context("Fraction-NoDecimals"); # Main text BEGIN_TEXT -Find the following information about the function \(f(x) = $f\). +Find the following information about the function \(f(x) = $f\). $PAR -(a) The vertex is the point \( \big( \) \{ans_rule(2) \} , \{ans_rule(2)\} \( \big) \). +(a) The vertex is the point \( \big( \) \{ans_rule(2) \} , \{ans_rule(2)\} \( \big) \). $PAR -(b) The axis of symmetry is the line \{ans_rule(10)\}. +(b) The axis of symmetry is the line \{ans_rule(10)\}. $PAR -(c) The function is increasing on the interval \{ans_rule(10)\}. +(c) The function is increasing on the interval \{ans_rule(10)\}. $PAR -(d) The function is decreasing on the interval \{ans_rule(10)\}. +(d) The function is decreasing on the interval \{ans_rule(10)\}. $PAR -(e) The function takes its \{$optimum->menu()\} value at \(y = \) \{ans_rule(5)\}. +(e) The function takes its \{$optimum->menu()\} value at \(y = \) \{ans_rule(5)\}. $PAR -(f) The domain of the function is the interval \{ans_rule(10)\}. +(f) The domain of the function is the interval \{ans_rule(10)\}. $PAR -(g) The range of the function is the interval \{ans_rule(10)\}. +(g) The range of the function is the interval \{ans_rule(10)\}. $PAR END_TEXT @@ -127,32 +127,32 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { $PAR $BBOLD Answer: $EBOLD $BR - (a) \( \left($vertx,$verty\right)\). + (a) \( \left($vertx,$verty\right)\). $PAR - (b) \($aosans\). + (b) \($aosans\). $PAR - (c) \($incans\). + (c) \($incans\). $PAR - (d) \($decans\). + (d) \($decans\). $PAR - (e) \{$optimum->correct_ans\} at \(y = $verty\). + (e) \{$optimum->correct_ans\} at \(y = $verty\). $PAR - (f) \($domain\). + (f) \($domain\). $PAR - (g) \($rangeans\). + (g) \($rangeans\). $PAR END_TEXT } else { BEGIN_TEXT $PAR - ${BBOLD}Help:$EBOLD \{AnswerFormatHelp("interval","Click for help with writing interval notation")\}. + ${BBOLD}Help:$EBOLD \{helpLink("interval","Click for help with writing interval notation")\}. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Quadratic_Functions_Vertex_Form_and_Optimization/Find_All_Info_Positive_Lead_Coeff.pg b/Contrib/Mizzou/College_Algebra/Quadratic_Functions_Vertex_Form_and_Optimization/Find_All_Info_Positive_Lead_Coeff.pg index 387dc236d9..504cb5121d 100644 --- a/Contrib/Mizzou/College_Algebra/Quadratic_Functions_Vertex_Form_and_Optimization/Find_All_Info_Positive_Lead_Coeff.pg +++ b/Contrib/Mizzou/College_Algebra/Quadratic_Functions_Vertex_Form_and_Optimization/Find_All_Info_Positive_Lead_Coeff.pg @@ -30,7 +30,7 @@ loadMacros( "parserMultiAnswer.pl", "parserImplicitPlane.pl", "parserPopUp.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -101,21 +101,21 @@ Context("Fraction-NoDecimals"); # Main text BEGIN_TEXT -Find the following information about the function \(f(x) = $f\). +Find the following information about the function \(f(x) = $f\). $PAR -(a) The vertex is the point \( \big( \) \{ans_rule(2) \} , \{ans_rule(2)\} \( \big) \). +(a) The vertex is the point \( \big( \) \{ans_rule(2) \} , \{ans_rule(2)\} \( \big) \). $PAR -(b) The axis of symmetry is the line \{ans_rule(10)\}. +(b) The axis of symmetry is the line \{ans_rule(10)\}. $PAR -(c) The function is increasing on the interval \{ans_rule(10)\}. +(c) The function is increasing on the interval \{ans_rule(10)\}. $PAR -(d) The function is decreasing on the interval \{ans_rule(10)\}. +(d) The function is decreasing on the interval \{ans_rule(10)\}. $PAR -(e) The function takes its \{$optimum->menu()\} value at \(y = \) \{ans_rule(5)\}. +(e) The function takes its \{$optimum->menu()\} value at \(y = \) \{ans_rule(5)\}. $PAR -(f) The domain of the function is the interval \{ans_rule(10)\}. +(f) The domain of the function is the interval \{ans_rule(10)\}. $PAR -(g) The range of the function is the interval \{ans_rule(10)\}. +(g) The range of the function is the interval \{ans_rule(10)\}. $PAR END_TEXT @@ -127,32 +127,32 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { $PAR $BBOLD Answer: $EBOLD $BR - (a) \( \left($vertx,$verty\right)\). + (a) \( \left($vertx,$verty\right)\). $PAR - (b) \($aosans\). + (b) \($aosans\). $PAR - (c) \($incans\). + (c) \($incans\). $PAR - (d) \($decans\). + (d) \($decans\). $PAR - (e) \{$optimum->correct_ans\} at \(y = $verty\). + (e) \{$optimum->correct_ans\} at \(y = $verty\). $PAR - (f) \($domain\). + (f) \($domain\). $PAR - (g) \($rangeans\). + (g) \($rangeans\). $PAR END_TEXT } else { BEGIN_TEXT $PAR - ${BBOLD}Help:$EBOLD \{AnswerFormatHelp("interval","Click for help with writing interval notation")\}. + ${BBOLD}Help:$EBOLD \{helpLink("interval","Click for help with writing interval notation")\}. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Quadratic_Functions_Vertex_Form_and_Optimization/Find_Max_Area_Dimensions.pg b/Contrib/Mizzou/College_Algebra/Quadratic_Functions_Vertex_Form_and_Optimization/Find_Max_Area_Dimensions.pg index 77541044a0..da08d6cf53 100644 --- a/Contrib/Mizzou/College_Algebra/Quadratic_Functions_Vertex_Form_and_Optimization/Find_Max_Area_Dimensions.pg +++ b/Contrib/Mizzou/College_Algebra/Quadratic_Functions_Vertex_Form_and_Optimization/Find_Max_Area_Dimensions.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Asks for the area function, +# Asks for the area function, # ENDDESCRIPTION ## DBsubject('Algebra') @@ -12,12 +12,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -33,7 +33,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $secs = random(2,4); @@ -56,7 +56,7 @@ $fig1 = image( "Garden_$secs.png", width=>$gsize, height=>147, tex_size=>500 ); $case = random(0,1,1); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -89,7 +89,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### if ($case == 0) { ANS(Compute($width)->cmp()); @@ -123,7 +123,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Quadratic_Functions_Vertex_Form_and_Optimization/Find_Max_Height_Rocket.pg b/Contrib/Mizzou/College_Algebra/Quadratic_Functions_Vertex_Form_and_Optimization/Find_Max_Height_Rocket.pg index af08fc49a9..3030c0b543 100644 --- a/Contrib/Mizzou/College_Algebra/Quadratic_Functions_Vertex_Form_and_Optimization/Find_Max_Height_Rocket.pg +++ b/Contrib/Mizzou/College_Algebra/Quadratic_Functions_Vertex_Form_and_Optimization/Find_Max_Height_Rocket.pg @@ -17,12 +17,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -38,7 +38,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); do {$v0 = 32*random(2,6,.25)} until (floor($v0) == $v0); @@ -50,7 +50,7 @@ $max = $st->eval(x=>$time); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -63,7 +63,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($time)->cmp()); ANS(Compute($max)->cmp()); @@ -85,7 +85,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Quadratic_Functions_Vertex_Form_and_Optimization/Vert2.pg b/Contrib/Mizzou/College_Algebra/Quadratic_Functions_Vertex_Form_and_Optimization/Vert2.pg index cb7c4e96ac..5c458a11e2 100644 --- a/Contrib/Mizzou/College_Algebra/Quadratic_Functions_Vertex_Form_and_Optimization/Vert2.pg +++ b/Contrib/Mizzou/College_Algebra/Quadratic_Functions_Vertex_Form_and_Optimization/Vert2.pg @@ -30,7 +30,7 @@ loadMacros( "parserMultiAnswer.pl", "parserImplicitPlane.pl", "parserPopUp.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -71,21 +71,21 @@ $range = Compute("[$verty, inf)"); # Main text BEGIN_TEXT -Find the following information about the function \(f(x) = $f\). +Find the following information about the function \(f(x) = $f\). $PAR -(a) The vertex is the point \( \big( \) \{ans_rule(2) \} , \{ans_rule(2)\} \( \big) \). +(a) The vertex is the point \( \big( \) \{ans_rule(2) \} , \{ans_rule(2)\} \( \big) \). $PAR -(b) The axis of symmetry is the line \{ans_rule(10)\}. +(b) The axis of symmetry is the line \{ans_rule(10)\}. $PAR -(c) The function is increasing on the interval \{ans_rule(10)\}. +(c) The function is increasing on the interval \{ans_rule(10)\}. $PAR -(d) The function is decreasing on the interval \{ans_rule(10)\}. +(d) The function is decreasing on the interval \{ans_rule(10)\}. $PAR -(e) The function takes its \{$optimum->menu()\} value at \(y = \) \{ans_rule(5)\}. +(e) The function takes its \{$optimum->menu()\} value at \(y = \) \{ans_rule(5)\}. $PAR -(f) The domain of the function is the interval \{ans_rule(10)\}. +(f) The domain of the function is the interval \{ans_rule(10)\}. $PAR -(g) The range of the function is the interval \{ans_rule(10)\}. +(g) The range of the function is the interval \{ans_rule(10)\}. $PAR END_TEXT @@ -97,32 +97,32 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { $PAR $BBOLD Answer: $EBOLD $BR - (a) \( \left($vertx,$verty\right)\). + (a) \( \left($vertx,$verty\right)\). $PAR - (b) \($aos\). + (b) \($aos\). $PAR - (c) \($inc\). + (c) \($inc\). $PAR - (d) \($dec\). + (d) \($dec\). $PAR - (e) \{$optimum->correct_ans\} at \(y = $verty\). + (e) \{$optimum->correct_ans\} at \(y = $verty\). $PAR - (f) \($domain\). + (f) \($domain\). $PAR - (g) \($range\). + (g) \($range\). $PAR END_TEXT } else { BEGIN_TEXT $PAR - ${BBOLD}Help:$EBOLD \{AnswerFormatHelp("interval","Click for help with writing interval notation")\}. + ${BBOLD}Help:$EBOLD \{helpLink("interval","Click for help with writing interval notation")\}. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Quadratic_Functions_Vertex_Form_and_Optimization/Vertex1pg.pg b/Contrib/Mizzou/College_Algebra/Quadratic_Functions_Vertex_Form_and_Optimization/Vertex1pg.pg index adc7e839a9..52d99e45d3 100644 --- a/Contrib/Mizzou/College_Algebra/Quadratic_Functions_Vertex_Form_and_Optimization/Vertex1pg.pg +++ b/Contrib/Mizzou/College_Algebra/Quadratic_Functions_Vertex_Form_and_Optimization/Vertex1pg.pg @@ -30,7 +30,7 @@ loadMacros( "parserMultiAnswer.pl", "parserImplicitPlane.pl", "parserPopUp.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -70,21 +70,21 @@ $range = Compute("($verty,inf)"); # Main text BEGIN_TEXT -Find the following information about the function \(f(x) = $f\). +Find the following information about the function \(f(x) = $f\). $PAR -(a) The vertex is the point \( \big( \) \{ans_rule(2) \} , \{ans_rule(2)\} \( \big) \). +(a) The vertex is the point \( \big( \) \{ans_rule(2) \} , \{ans_rule(2)\} \( \big) \). $PAR -(b) The axis of symmetry is the line \{ans_rule(10)\}. +(b) The axis of symmetry is the line \{ans_rule(10)\}. $PAR -(c) The function is increasing on the interval \{ans_rule(10)\}. +(c) The function is increasing on the interval \{ans_rule(10)\}. $PAR -(d) The function is decreasing on the interval \{ans_rule(10)\}. +(d) The function is decreasing on the interval \{ans_rule(10)\}. $PAR -(e) The function takes its \{$optimum->menu()\} value at \(y = \) \{ans_rule(5)\}. +(e) The function takes its \{$optimum->menu()\} value at \(y = \) \{ans_rule(5)\}. $PAR -(f) The domain of the function is the interval \{ans_rule(10)\}. +(f) The domain of the function is the interval \{ans_rule(10)\}. $PAR -(g) The range of the function is the interval \{ans_rule(10)\}. +(g) The range of the function is the interval \{ans_rule(10)\}. $PAR END_TEXT @@ -96,32 +96,32 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { $PAR $BBOLD Answer: $EBOLD $BR - (a) \( \left($vertx,$verty\right)\). + (a) \( \left($vertx,$verty\right)\). $PAR - (b) \($aos\). + (b) \($aos\). $PAR - (c) \($inc\). + (c) \($inc\). $PAR - (d) \($dec\). + (d) \($dec\). $PAR - (e) \{$optimum->correct_ans\} at \(y = $verty\). + (e) \{$optimum->correct_ans\} at \(y = $verty\). $PAR - (f) \($domain\). + (f) \($domain\). $PAR - (g) \($range\). + (g) \($range\). $PAR END_TEXT } else { BEGIN_TEXT $PAR - ${BBOLD}Help:$EBOLD \{AnswerFormatHelp("interval","Click for help with writing interval notation")\}. + ${BBOLD}Help:$EBOLD \{helpLink("interval","Click for help with writing interval notation")\}. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ diff --git a/Contrib/Mizzou/College_Algebra/Quadratic_Functions_Vertex_Form_and_Optimization/Vertex3.pg b/Contrib/Mizzou/College_Algebra/Quadratic_Functions_Vertex_Form_and_Optimization/Vertex3.pg index 677f546420..f7b9a77a96 100644 --- a/Contrib/Mizzou/College_Algebra/Quadratic_Functions_Vertex_Form_and_Optimization/Vertex3.pg +++ b/Contrib/Mizzou/College_Algebra/Quadratic_Functions_Vertex_Form_and_Optimization/Vertex3.pg @@ -30,7 +30,7 @@ loadMacros( "parserMultiAnswer.pl", "parserImplicitPlane.pl", "parserPopUp.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -91,21 +91,21 @@ Context("Fraction-NoDecimals"); # Main text BEGIN_TEXT -Find the following information about the function \(f(x) = $f\). +Find the following information about the function \(f(x) = $f\). $PAR -(a) The vertex is the point \( \big( \) \{ans_rule(2) \} , \{ans_rule(2)\} \( \big) \). +(a) The vertex is the point \( \big( \) \{ans_rule(2) \} , \{ans_rule(2)\} \( \big) \). $PAR -(b) The axis of symmetry is the line \{ans_rule(10)\}. +(b) The axis of symmetry is the line \{ans_rule(10)\}. $PAR -(c) The function is increasing on the interval \{ans_rule(10)\}. +(c) The function is increasing on the interval \{ans_rule(10)\}. $PAR -(d) The function is decreasing on the interval \{ans_rule(10)\}. +(d) The function is decreasing on the interval \{ans_rule(10)\}. $PAR -(e) The function takes its \{$optimum->menu()\} value at \(y = \) \{ans_rule(5)\}. +(e) The function takes its \{$optimum->menu()\} value at \(y = \) \{ans_rule(5)\}. $PAR -(f) The domain of the function is the interval \{ans_rule(10)\}. +(f) The domain of the function is the interval \{ans_rule(10)\}. $PAR -(g) The range of the function is the interval \{ans_rule(10)\}. +(g) The range of the function is the interval \{ans_rule(10)\}. $PAR END_TEXT @@ -117,32 +117,32 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { $PAR $BBOLD Answer: $EBOLD $BR - (a) \( \left($vertx,$verty\right)\). + (a) \( \left($vertx,$verty\right)\). $PAR - (b) \($aos\). + (b) \($aos\). $PAR - (c) \($inc\). + (c) \($inc\). $PAR - (d) \($dec\). + (d) \($dec\). $PAR - (e) \{$optimum->correct_ans\} at \(y = $verty\). + (e) \{$optimum->correct_ans\} at \(y = $verty\). $PAR - (f) \($domain\). + (f) \($domain\). $PAR - (g) \($range\). + (g) \($range\). $PAR END_TEXT } else { BEGIN_TEXT $PAR - ${BBOLD}Help:$EBOLD \{AnswerFormatHelp("interval","Click for help with writing interval notation")\}. + ${BBOLD}Help:$EBOLD \{helpLink("interval","Click for help with writing interval notation")\}. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Rational_Expressions_Domain/DomainFrac1.pg b/Contrib/Mizzou/College_Algebra/Rational_Expressions_Domain/DomainFrac1.pg index 650f94f8a6..23ef770c1d 100644 --- a/Contrib/Mizzou/College_Algebra/Rational_Expressions_Domain/DomainFrac1.pg +++ b/Contrib/Mizzou/College_Algebra/Rational_Expressions_Domain/DomainFrac1.pg @@ -27,7 +27,7 @@ loadMacros( "PeriodicRerandomization.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "PGcourse.pl" @@ -54,21 +54,21 @@ $dom = Compute("(-inf,0) U (0, inf)"); ## Answers ANS( $dom->cmp() ); - + Context("Numeric"); ################################################ # Main text Context()->texStrings; BEGIN_TEXT -Find the domain of +Find the domain of $PAR \[ $f \] -$PAR +$PAR Write your answer in interval notation. $PAR -Domain: \{ans_rule(20)\} $SPACE $SPACE \{ AnswerFormatHelp("inequalities", "Click here for help using interval notation") \}. +Domain: \{ans_rule(20)\} $SPACE $SPACE \{ helpLink("inequalities", "Click here for help using interval notation") \}. END_TEXT if ($attempts_modp == 0 && $actualAttempts != 0) { @@ -86,7 +86,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ diff --git a/Contrib/Mizzou/College_Algebra/Rational_Expressions_Domain/DomainFrac2.pg b/Contrib/Mizzou/College_Algebra/Rational_Expressions_Domain/DomainFrac2.pg index 5d761da32e..0534855b54 100644 --- a/Contrib/Mizzou/College_Algebra/Rational_Expressions_Domain/DomainFrac2.pg +++ b/Contrib/Mizzou/College_Algebra/Rational_Expressions_Domain/DomainFrac2.pg @@ -27,7 +27,7 @@ loadMacros( "PeriodicRerandomization.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "PGcourse.pl" @@ -55,7 +55,7 @@ $texanswer = "\( \left(-\infty, \frac{$b}{$c}\right) \cup \left(\frac{$b}{$c},\i ## Answers ANS( $dom->cmp() ); - + Context("Numeric"); ################################################ # Main text @@ -69,7 +69,7 @@ $f $PAR Write your answer in interval notation. $PAR -Domain: \{ans_rule(20)\} $SPACE $SPACE \{ AnswerFormatHelp("inequalities", "Click here for help using interval notation") \}. +Domain: \{ans_rule(20)\} $SPACE $SPACE \{ helpLink("inequalities", "Click here for help using interval notation") \}. END_TEXT if ($attempts_modp == 0 && $actualAttempts != 0) { @@ -87,7 +87,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ # Answer evaluation diff --git a/Contrib/Mizzou/College_Algebra/Rational_Expressions_Domain/DomainFracQuadratic.pg b/Contrib/Mizzou/College_Algebra/Rational_Expressions_Domain/DomainFracQuadratic.pg index 79aa0e39e0..6a03a788d1 100644 --- a/Contrib/Mizzou/College_Algebra/Rational_Expressions_Domain/DomainFracQuadratic.pg +++ b/Contrib/Mizzou/College_Algebra/Rational_Expressions_Domain/DomainFracQuadratic.pg @@ -27,7 +27,7 @@ loadMacros( "PeriodicRerandomization.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "PGcourse.pl" @@ -60,7 +60,7 @@ if ($m < $n) { ## Answers ANS( $dom->cmp() ); - + Context("Numeric"); ################################################ # Main text @@ -74,7 +74,7 @@ $f $PAR Write your answer in interval notation. $PAR -Domain: \{ans_rule(20)\} $SPACE $SPACE \{ AnswerFormatHelp("inequalities", "Click here for help using interval notation") \}. +Domain: \{ans_rule(20)\} $SPACE $SPACE \{ helpLink("inequalities", "Click here for help using interval notation") \}. END_TEXT Context()->texStrings; if ($attempts_modp == 0 && $actualAttempts != 0) { @@ -92,7 +92,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Rational_Expressions_Domain/DomainFracQuadratic2.pg b/Contrib/Mizzou/College_Algebra/Rational_Expressions_Domain/DomainFracQuadratic2.pg index 40e0d88cd9..568590c85e 100644 --- a/Contrib/Mizzou/College_Algebra/Rational_Expressions_Domain/DomainFracQuadratic2.pg +++ b/Contrib/Mizzou/College_Algebra/Rational_Expressions_Domain/DomainFracQuadratic2.pg @@ -27,7 +27,7 @@ loadMacros( "PeriodicRerandomization.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "PGcourse.pl" @@ -57,14 +57,14 @@ $dom = Compute("(-inf,0)U (0, $b) U ($b, inf)"); ## Answers ANS( $dom->cmp() ); - + Context("Numeric"); ################################################ # Main text Context()->texStrings; BEGIN_TEXT -Find the domain +Find the domain $BR \[ $f @@ -72,7 +72,7 @@ $f $PAR Write your answer in interval notation. $PAR -Domain: \{ans_rule(20)\} $SPACE $SPACE \{ AnswerFormatHelp("inequalities", "Click here for help using interval notation") \}. +Domain: \{ans_rule(20)\} $SPACE $SPACE \{ helpLink("inequalities", "Click here for help using interval notation") \}. END_TEXT if ($attempts_modp == 0 && $actualAttempts != 0) { @@ -90,7 +90,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ diff --git a/Contrib/Mizzou/College_Algebra/Rational_Functions_Asymptotes/Determine_Function_01.pg b/Contrib/Mizzou/College_Algebra/Rational_Functions_Asymptotes/Determine_Function_01.pg index d9478ad51a..46676adc3f 100644 --- a/Contrib/Mizzou/College_Algebra/Rational_Functions_Asymptotes/Determine_Function_01.pg +++ b/Contrib/Mizzou/College_Algebra/Rational_Functions_Asymptotes/Determine_Function_01.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGchoicemacros.pl", @@ -29,7 +29,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric")->texStrings; $a = non_zero_random(-20,20); @@ -79,7 +79,7 @@ $ans = $possans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### BEGIN_TEXT Find a rational function \(f(x)\) that satisfies the given conditions: VA: \(x = $a\), \(x = $b\); \(x\)-intercept: \( ($c,0) \) @@ -99,7 +99,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(String($ans)->cmp()); @@ -119,7 +119,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Rational_Functions_Asymptotes/Determine_Function_02.pg b/Contrib/Mizzou/College_Algebra/Rational_Functions_Asymptotes/Determine_Function_02.pg index a3be880e62..e8d18bd643 100644 --- a/Contrib/Mizzou/College_Algebra/Rational_Functions_Asymptotes/Determine_Function_02.pg +++ b/Contrib/Mizzou/College_Algebra/Rational_Functions_Asymptotes/Determine_Function_02.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -28,7 +28,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric")->texStrings; do {$a = non_zero_random(-10,10)} until (abs($a) != 1); @@ -78,7 +78,7 @@ $ans = $possans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### BEGIN_TEXT Find a rational function \(f(x)\) that satisfies the given conditions: VA: \(x = $a\); HA: \(y = $b\); \(x\)-intercept: \( ($c,0) \) @@ -98,7 +98,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(String($ans)->cmp()); @@ -118,7 +118,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Rationalizing/Rationalize1.pg b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Rationalizing/Rationalize1.pg index e71b5c9468..b9bec08f40 100644 --- a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Rationalizing/Rationalize1.pg +++ b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Rationalizing/Rationalize1.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical expression', 'rationalize the denominator') -## DBsubject('Algebra') -## DBchapter('Basic Algebra') -## DBsection('Exponents and Radicals') +## DBsubject('Algebra') +## DBchapter('Basic Algebra') +## DBsection('Exponents and Radicals') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "PGunion.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -80,7 +80,7 @@ $multians = MultiAnswer($num, $den)->with( my ( $f1stu, $f2stu ) = @{$student}; my ( $f1, $f2 ) = @{$correct}; -if (( $f1==$f1stu && $f2==$f2stu) || (-$f1==$f1stu && -$f2==$f2stu)) {return [1,1];} +if (( $f1==$f1stu && $f2==$f2stu) || (-$f1==$f1stu && -$f2==$f2stu)) {return [1,1];} elsif ( $f1==$f1stu || -$f1==$f1stu) {return [1,0];} elsif ( ($numbogus==$f1stu || -$numbogus==$f1stu) || ($denbogus==$f2stu || -$denbogus==$f2stu) ) { @@ -126,7 +126,7 @@ $BCENTER $displayfrac $ECENTER $BR - Type an exact answer using radical notation if necessary. + Type an exact answer using radical notation if necessary. END_TEXT if ($attempts_modp == 0 && $actualAttempts != 0) { @@ -137,7 +137,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { $PAR END_TEXT } else { - BEGIN_TEXT + BEGIN_TEXT $PAR ${BBOLD}Help:${EBOLD} To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to give \(\sqrt{7x}\) as an answer, you would type sqrt(7x). If you mistakenly type sqrt 7x instead, Webwork will take this to mean \(x \sqrt{7}\), not \(\sqrt{7x}\). That is, you MUST put parenthesis around everything that you want to take the square root of. $BR @@ -146,7 +146,7 @@ To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Rationalizing/Rationalize2.pg b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Rationalizing/Rationalize2.pg index 5b90fbfc03..1e4d9cfa3a 100644 --- a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Rationalizing/Rationalize2.pg +++ b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Rationalizing/Rationalize2.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical expression', 'rationalize the denominator') -## DBsubject('Algebra') -## DBchapter('Basic Algebra') -## DBsection('Exponents and Radicals') +## DBsubject('Algebra') +## DBchapter('Basic Algebra') +## DBsection('Exponents and Radicals') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -25,7 +25,7 @@ loadMacros( "PGstandard.pl", "PGunion.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -78,7 +78,7 @@ $multians = MultiAnswer($num, $den)->with( my ( $f1stu, $f2stu ) = @{$student}; my ( $f1, $f2 ) = @{$correct}; -if (( $f1==$f1stu && $f2==$f2stu) || (-$f1==$f1stu && -$f2==$f2stu)) {return [1,1];} +if (( $f1==$f1stu && $f2==$f2stu) || (-$f1==$f1stu && -$f2==$f2stu)) {return [1,1];} elsif ( $f1==$f1stu || -$f1==$f1stu) {return [1,0];} elsif ( ($numbogus==$f1stu || -$numbogus==$f1stu) || ($denbogus==$f2stu || -$denbogus==$f2stu) ) { @@ -124,7 +124,7 @@ $BCENTER $displayfrac $ECENTER $BR - Type an exact answer using radical notation if necessary. + Type an exact answer using radical notation if necessary. END_TEXT if ($attempts_modp == 0 && $actualAttempts != 0) { @@ -135,7 +135,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { $PAR END_TEXT } else { - BEGIN_TEXT + BEGIN_TEXT $PAR ${BBOLD}Help:${EBOLD} To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to give \(\sqrt{7x}\) as an answer, you would type sqrt(7x). If you mistakenly type sqrt 7x instead, Webwork will take this to mean \(x \sqrt{7}\), not \(\sqrt{7x}\). That is, you MUST put parenthesis around everything that you want to take the square root of. $BR @@ -144,7 +144,7 @@ To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Rationalizing/Rationalize3.pg b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Rationalizing/Rationalize3.pg index a9b9df333f..3951967544 100644 --- a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Rationalizing/Rationalize3.pg +++ b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Rationalizing/Rationalize3.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical expression', 'rationalize the denominator') -## DBsubject('Algebra') -## DBchapter('Basic Algebra') -## DBsection('Exponents and Radicals') +## DBsubject('Algebra') +## DBchapter('Basic Algebra') +## DBsection('Exponents and Radicals') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "PGunion.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -76,7 +76,7 @@ $multians = MultiAnswer($num, $den)->with( my ( $f1stu, $f2stu ) = @{$student}; my ( $f1, $f2 ) = @{$correct}; -if (( $f1==$f1stu && $f2==$f2stu) || (-$f1==$f1stu && -$f2==$f2stu)) {return [1,1];} +if (( $f1==$f1stu && $f2==$f2stu) || (-$f1==$f1stu && -$f2==$f2stu)) {return [1,1];} elsif ( $f1==$f1stu || -$f1==$f1stu) {return [1,0];} elsif ( ($numbogus==$f1stu || -$numbogus==$f1stu) || ($denbogus==$f2stu || -$denbogus==$f2stu) ) { @@ -122,7 +122,7 @@ $BCENTER $displayfrac $ECENTER $BR - Type an exact answer using radical notation if necessary. + Type an exact answer using radical notation if necessary. END_TEXT if ($attempts_modp == 0 && $actualAttempts != 0) { @@ -133,7 +133,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { $PAR END_TEXT } else { - BEGIN_TEXT + BEGIN_TEXT $PAR ${BBOLD}Help:${EBOLD} To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to give \(\sqrt{7x}\) as an answer, you would type sqrt(7x). If you mistakenly type sqrt 7x instead, Webwork will take this to mean \(x \sqrt{7}\), not \(\sqrt{7x}\). That is, you MUST put parenthesis around everything that you want to take the square root of. $BR @@ -142,7 +142,7 @@ To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Rationalizing/Rationalize4.pg b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Rationalizing/Rationalize4.pg index c35711766a..01dd3a6c29 100644 --- a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Rationalizing/Rationalize4.pg +++ b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Rationalizing/Rationalize4.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical expression', 'rationalize the denominator') -## DBsubject('Algebra') -## DBchapter('Basic Algebra') -## DBsection('Exponents and Radicals') +## DBsubject('Algebra') +## DBchapter('Basic Algebra') +## DBsection('Exponents and Radicals') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "PGunion.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -76,7 +76,7 @@ $multians = MultiAnswer($num, $den)->with( my ( $correct, $student, $self ) = @_; my ( $f1stu, $f2stu ) = @{$student}; my ( $f1, $f2 ) = @{$correct}; - + if ( ( $f1==$f1stu && $f2==$f2stu) ) { return [1,1]; } elsif ( $f1==$f1stu ) { @@ -120,7 +120,7 @@ $BCENTER $displayfrac $ECENTER $BR - Type an exact answer using radical notation if necessary. + Type an exact answer using radical notation if necessary. END_TEXT if ($attempts_modp == 0 && $actualAttempts != 0) { @@ -131,7 +131,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { $PAR END_TEXT } else { - BEGIN_TEXT + BEGIN_TEXT $PAR ${BBOLD}Help:${EBOLD} To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to give \(\sqrt{7x}\) as an answer, you would type sqrt(7x). If you mistakenly type sqrt 7x instead, Webwork will take this to mean \(x \sqrt{7}\), not \(\sqrt{7x}\). That is, you MUST put parenthesis around everything that you want to take the square root of. $BR @@ -140,7 +140,7 @@ To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/AbsValue1.pg b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/AbsValue1.pg index d0d8c4348c..26f6dccf58 100644 --- a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/AbsValue1.pg +++ b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/AbsValue1.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical expression') -## DBsubject('Algebra') -## DBchapter('Basic Algebra') -## DBsection('Exponents and Radicals') +## DBsubject('Algebra') +## DBchapter('Basic Algebra') +## DBsection('Exponents and Radicals') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -29,7 +29,7 @@ loadMacros( "PGunion.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "contextLimitedPowers.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -120,7 +120,7 @@ $BCENTER \( $expr = \text{ }~\) \{ans_rule(20)\} $ECENTER $BR -Write your answer using radical notation if necessary. +Write your answer using radical notation if necessary. END_TEXT ############################################################## @@ -138,14 +138,14 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR ${BBOLD}Help:${EBOLD} -To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to give \(\sqrt{7x}\) as an answer, you would type sqrt(7x). If you mistakenly type sqrt 7x instead, Webwork will take this to mean \(x \sqrt{7}\), not \(\sqrt{7x}\). That is, you MUST put parenthesis around everything that you want to take the square root of. +To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to give \(\sqrt{7x}\) as an answer, you would type sqrt(7x). If you mistakenly type sqrt 7x instead, Webwork will take this to mean \(x \sqrt{7}\), not \(\sqrt{7x}\). That is, you MUST put parenthesis around everything that you want to take the square root of. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Diff_of_Rads_01.pg b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Diff_of_Rads_01.pg index 52ec067653..76ce5b72e0 100644 --- a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Diff_of_Rads_01.pg +++ b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Diff_of_Rads_01.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# +# # ENDDESCRIPTION ## DBsubject('Algebra') @@ -11,7 +11,7 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( @@ -20,7 +20,7 @@ loadMacros( "PeriodicRerandomization.pl", "contextLimitedPowers.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -53,7 +53,7 @@ package main; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); Context()->functions->set(sqrt=>{class=>'my::Function::numeric'}); @@ -90,7 +90,7 @@ Context()->operators->undefine("**", "^"); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -105,7 +105,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS( $ansa-> cmp( checker => sub { my ($correct,$student,$ans) = @_; @@ -167,13 +167,13 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} - \{ AnswerFormatHelp("exponents", "Click here for help writing exponents and square roots.") \} + ${BBOLD}Help:${EBOLD} + \{ helpLink("exponents", "Click here for help writing exponents and square roots.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Diff_of_Squares_Sqrt_01.pg b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Diff_of_Squares_Sqrt_01.pg index 26a1d614d3..c158ead3c3 100644 --- a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Diff_of_Squares_Sqrt_01.pg +++ b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Diff_of_Squares_Sqrt_01.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# +# # ENDDESCRIPTION ## DBsubject('Algebra') @@ -11,14 +11,14 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -51,7 +51,7 @@ package main; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @vars = ("x","y","z","a","b","c","p","q","r"); @@ -73,7 +73,7 @@ $ans = Formula("$a $v - $b2")->reduce; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -83,12 +83,12 @@ $BCENTER \($disp =\) \{ans_rule(20)\} $ECENTER $PAR -Write your answer using radical notation if necessary. +Write your answer using radical notation if necessary. END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS( $ans-> cmp( checker => sub { my ($correct,$student,$ans) = @_; @@ -127,13 +127,13 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} - \{ AnswerFormatHelp("exponents", "Click here for help writing exponents and square roots.") \} + ${BBOLD}Help:${EBOLD} + \{ helpLink("exponents", "Click here for help writing exponents and square roots.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/FractionofRadical.pg b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/FractionofRadical.pg index 23db77fa9c..ceb1632f87 100644 --- a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/FractionofRadical.pg +++ b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/FractionofRadical.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical expression') -## DBsubject('Algebra') -## DBchapter('Basic Algebra') -## DBsection('Exponents and Radicals') +## DBsubject('Algebra') +## DBchapter('Basic Algebra') +## DBsection('Exponents and Radicals') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "PGunion.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -83,7 +83,7 @@ $multians = MultiAnswer($num, $den)->with( my ( $f1stu, $f2stu ) = @{$student}; my ( $f1, $f2 ) = @{$correct}; -if (( $f1==$f1stu && $f2==$f2stu) || (-$f1==$f1stu && -$f2==$f2stu)) {return [1,1];} +if (( $f1==$f1stu && $f2==$f2stu) || (-$f1==$f1stu && -$f2==$f2stu)) {return [1,1];} elsif ( $f1==$f1stu || -$f1==$f1stu) {return [1,0];} elsif ( ($numbogus==$f1stu || -$numbogus==$f1stu) || ($denbogus==$f2stu || -$denbogus==$f2stu) ) { @@ -128,7 +128,7 @@ $BCENTER $displayfrac $ECENTER $BR - Write your answer using radical notation if necessary. + Write your answer using radical notation if necessary. END_TEXT @@ -144,14 +144,14 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR ${BBOLD}Help:${EBOLD} -To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to give \(\sqrt{7x}\) as an answer, you would type sqrt(7x). If you mistakenly type sqrt 7x instead, Webwork will take this to mean \(x \sqrt{7}\), not \(\sqrt{7x}\). That is, you MUST put parenthesis around everything that you want to take the square root of. +To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to give \(\sqrt{7x}\) as an answer, you would type sqrt(7x). If you mistakenly type sqrt 7x instead, Webwork will take this to mean \(x \sqrt{7}\), not \(\sqrt{7x}\). That is, you MUST put parenthesis around everything that you want to take the square root of. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/FractionofRadical2.pg b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/FractionofRadical2.pg index fd333c2ed5..2bced066bb 100644 --- a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/FractionofRadical2.pg +++ b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/FractionofRadical2.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical expression') -## DBsubject('Algebra') -## DBchapter('Basic Algebra') -## DBsection('Exponents and Radicals') +## DBsubject('Algebra') +## DBchapter('Basic Algebra') +## DBsection('Exponents and Radicals') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "PGunion.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "contextFraction.pl", @@ -89,8 +89,8 @@ $multians = MultiAnswer($num, $den)->with( my ( $correct, $student, $self ) = @_; my ( $f1stu, $f2stu ) = @{$student}; my ( $f1, $f2 ) = @{$correct}; - - if ( ( $f1==$f1stu && $f2==$f2stu) || + + if ( ( $f1==$f1stu && $f2==$f2stu) || (-$f1==$f1stu && -$f2==$f2stu) ) { return [1,1]; } elsif ( $f1==$f1stu || -$f1==$f1stu) { @@ -136,7 +136,7 @@ $PAR $BCENTER $displayfrac $ECENTER -$BR Write your answer using radical notation if necessary. +$BR Write your answer using radical notation if necessary. END_TEXT @@ -152,14 +152,14 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR ${BBOLD}Help:${EBOLD} -To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to give \(\sqrt{7x}\) as an answer, you would type sqrt(7x). If you mistakenly type sqrt 7x instead, Webwork will take this to mean \(x \sqrt{7}\), not \(\sqrt{7x}\). That is, you MUST put parenthesis around everything that you want to take the square root of. +To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to give \(\sqrt{7x}\) as an answer, you would type sqrt(7x). If you mistakenly type sqrt 7x instead, Webwork will take this to mean \(x \sqrt{7}\), not \(\sqrt{7x}\). That is, you MUST put parenthesis around everything that you want to take the square root of. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/MultiplyRadicals.pg b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/MultiplyRadicals.pg index 047105427a..498827f60f 100644 --- a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/MultiplyRadicals.pg +++ b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/MultiplyRadicals.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical expression') -## DBsubject('Algebra') -## DBchapter('Basic Algebra') -## DBsection('Exponents and Radicals') +## DBsubject('Algebra') +## DBchapter('Basic Algebra') +## DBsection('Exponents and Radicals') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "PGunion.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -78,7 +78,7 @@ $PAR $BCENTER \( \sqrt[$n]{($var + $a)^{$exp1}} \sqrt[$n]{($var + $a)^{$exp2}} = \text{ }\) \{ANS_RULE(10)\} $ECENTER -$BR Write your answer using radical notation if necessary. +$BR Write your answer using radical notation if necessary. END_TEXT @@ -93,15 +93,15 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR ${BBOLD}Help:${EBOLD} - -To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to give \(\sqrt{7x}\) as an answer, you would type sqrt(7x). If you mistakenly type sqrt 7x instead, Webwork will take this to mean \(x \sqrt{7}\), not \(\sqrt{7x}\). That is, you MUST put parenthesis around everything that you want to take the square root of. + +To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to give \(\sqrt{7x}\) as an answer, you would type sqrt(7x). If you mistakenly type sqrt 7x instead, Webwork will take this to mean \(x \sqrt{7}\), not \(\sqrt{7x}\). That is, you MUST put parenthesis around everything that you want to take the square root of. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Radical.pg b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Radical.pg index b5e21294fd..434536e8b1 100644 --- a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Radical.pg +++ b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Radical.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical expression') -## DBsubject('Algebra') -## DBchapter('Basic Algebra') -## DBsection('Exponents and Radicals') +## DBsubject('Algebra') +## DBchapter('Basic Algebra') +## DBsection('Exponents and Radicals') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -30,7 +30,7 @@ loadMacros( "MathObjects.pl", "parserMultiAnswer.pl", "contextLimitedPowers.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGcourse.pl" ); @@ -117,7 +117,7 @@ $BCENTER \( $expr = \) \{ans_rule(20)\} $ECENTER $BR - Write your answer using radical notation if necessary. + Write your answer using radical notation if necessary. END_TEXT if ($attempts_modp == 0 && $actualAttempts != 0) { @@ -132,14 +132,14 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { $PAR $BBOLD Help: $EBOLD -To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to give \(\sqrt{7x}\) as an answer, you would type sqrt(7x). If you mistakenly type sqrt 7x instead, Webwork will take this to mean \(x \sqrt{7}\), not \(\sqrt{7x}\). That is, you MUST put parenthesis around everything that you want to take the square root of. +To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to give \(\sqrt{7x}\) as an answer, you would type sqrt(7x). If you mistakenly type sqrt 7x instead, Webwork will take this to mean \(x \sqrt{7}\), not \(\sqrt{7x}\). That is, you MUST put parenthesis around everything that you want to take the square root of. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Radical2.pg b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Radical2.pg index b80a4ceadd..58df9f86d4 100644 --- a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Radical2.pg +++ b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Radical2.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical expression') -## DBsubject('Algebra') -## DBchapter('Basic Algebra') -## DBsection('Exponents and Radicals') +## DBsubject('Algebra') +## DBchapter('Basic Algebra') +## DBsection('Exponents and Radicals') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -29,7 +29,7 @@ loadMacros( "PGunion.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "contextLimitedPowers.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -127,7 +127,7 @@ $BCENTER \( $expr = \text{ }~\) \{ans_rule(20)\} $ECENTER $BR -Write your answer using radical notation if necessary. +Write your answer using radical notation if necessary. END_TEXT ############################################################## @@ -145,14 +145,14 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR ${BBOLD}Help:${EBOLD} -To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to give \(\sqrt{7x}\) as an answer, you would type sqrt(7x). If you mistakenly type sqrt 7x instead, Webwork will take this to mean \(x \sqrt{7}\), not \(\sqrt{7x}\). That is, you MUST put parenthesis around everything that you want to take the square root of. +To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to give \(\sqrt{7x}\) as an answer, you would type sqrt(7x). If you mistakenly type sqrt 7x instead, Webwork will take this to mean \(x \sqrt{7}\), not \(\sqrt{7x}\). That is, you MUST put parenthesis around everything that you want to take the square root of. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/RadicalNUmbers1.pg b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/RadicalNUmbers1.pg index d09eef195e..6bf3e36c30 100644 --- a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/RadicalNUmbers1.pg +++ b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/RadicalNUmbers1.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical expression') -## DBsubject('Algebra') -## DBchapter('Basic Algebra') -## DBsection('Exponents and Radicals') +## DBsubject('Algebra') +## DBchapter('Basic Algebra') +## DBsection('Exponents and Radicals') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -30,7 +30,7 @@ loadMacros( "MathObjects.pl", "parserMultiAnswer.pl", "contextLimitedPowers.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGcourse.pl" ); @@ -122,7 +122,7 @@ $PAR $BCENTER \($expr = \text{ }\) \{ANS_RULE(10)\} $ECENTER -$BR Write your answer using radical notation if necessary. +$BR Write your answer using radical notation if necessary. END_TEXT @@ -137,14 +137,14 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR ${BBOLD}Help:${EBOLD} - -To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to give \(\sqrt{7x}\) as an answer, you would type sqrt(7x). If you mistakenly type sqrt 7x instead, Webwork will take this to mean \(x \sqrt{7}\), not \(\sqrt{7x}\). That is, you MUST put parenthesis around everything that you want to take the square root of. + +To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to give \(\sqrt{7x}\) as an answer, you would type sqrt(7x). If you mistakenly type sqrt 7x instead, Webwork will take this to mean \(x \sqrt{7}\), not \(\sqrt{7x}\). That is, you MUST put parenthesis around everything that you want to take the square root of. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); @@ -155,7 +155,7 @@ $showPartialCorrectAnswers = 0; Context()->flags->set( tolerance=>0.0000001, tolType=>"absolute" ); -ANS(Compute($ans)->cmp); +ANS(Compute($ans)->cmp); #made tolerance obnoxiously low so students can't enter a decimal. COMMENT('MathObject version'); diff --git a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/RadicalOfFraction.pg b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/RadicalOfFraction.pg index b3c7823e8b..29231137f7 100644 --- a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/RadicalOfFraction.pg +++ b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/RadicalOfFraction.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical expression') -## DBsubject('Algebra') -## DBchapter('Basic Algebra') -## DBsection('Exponents and Radicals') +## DBsubject('Algebra') +## DBchapter('Basic Algebra') +## DBsection('Exponents and Radicals') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "PGunion.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "contextLimitedPowers.pl", @@ -86,7 +86,7 @@ $BCENTER \($expr = \text{ }\) \{ANS_RULE(10)\} $ECENTER $BR - Write your answer using radical notation if necessary. + Write your answer using radical notation if necessary. END_TEXT @@ -100,15 +100,15 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR -${BBOLD}Help:${EBOLD} -To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to give \(\sqrt{7x}\) as an answer, you would type sqrt(7x). If you mistakenly type sqrt 7x instead, Webwork will take this to mean \(x \sqrt{7}\), not \(\sqrt{7x}\). That is, you MUST put parenthesis around everything that you want to take the square root of. +${BBOLD}Help:${EBOLD} +To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to give \(\sqrt{7x}\) as an answer, you would type sqrt(7x). If you mistakenly type sqrt 7x instead, Webwork will take this to mean \(x \sqrt{7}\), not \(\sqrt{7x}\). That is, you MUST put parenthesis around everything that you want to take the square root of. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Reals2.pg b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Reals2.pg index 85f842a6b5..021768d076 100644 --- a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Reals2.pg +++ b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Reals2.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical expression') -## DBsubject('Algebra') -## DBchapter('Basic Algebra') -## DBsection('Exponents and Radicals') +## DBsubject('Algebra') +## DBchapter('Basic Algebra') +## DBsection('Exponents and Radicals') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "PGunion.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -80,7 +80,7 @@ $PAR $BCENTER \($expr = \text{ }\) \{ANS_RULE(10)\} $ECENTER -$BR Write your answer using radical notation if necessary. +$BR Write your answer using radical notation if necessary. END_TEXT @@ -95,14 +95,14 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR ${BBOLD}Help:${EBOLD} - -To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to give \(\sqrt{7x}\) as an answer, you would type sqrt(7x). If you mistakenly type sqrt 7x instead, Webwork will take this to mean \(x \sqrt{7}\), not \(\sqrt{7x}\). That is, you MUST put parenthesis around everything that you want to take the square root of. + +To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to give \(\sqrt{7x}\) as an answer, you would type sqrt(7x). If you mistakenly type sqrt 7x instead, Webwork will take this to mean \(x \sqrt{7}\), not \(\sqrt{7x}\). That is, you MUST put parenthesis around everything that you want to take the square root of. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Reals3.pg b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Reals3.pg index 4f094d1876..6f10329f4b 100644 --- a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Reals3.pg +++ b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Reals3.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical expression') -## DBsubject('Algebra') -## DBchapter('Basic Algebra') -## DBsection('Exponents and Radicals') +## DBsubject('Algebra') +## DBchapter('Basic Algebra') +## DBsection('Exponents and Radicals') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "PGunion.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -83,7 +83,7 @@ $PAR $BCENTER \($expr = \text{ }\) \{ANS_RULE(10)\} $ECENTER -$BR Write your answer using radical notation if necessary. +$BR Write your answer using radical notation if necessary. END_TEXT @@ -98,14 +98,14 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR ${BBOLD}Help:${EBOLD} - -To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to give \(\sqrt{7x}\) as an answer, you would type sqrt(7x). If you mistakenly type sqrt 7x instead, Webwork will take this to mean \(x \sqrt{7}\), not \(\sqrt{7x}\). That is, you MUST put parenthesis around everything that you want to take the square root of. + +To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to give \(\sqrt{7x}\) as an answer, you would type sqrt(7x). If you mistakenly type sqrt 7x instead, Webwork will take this to mean \(x \sqrt{7}\), not \(\sqrt{7x}\). That is, you MUST put parenthesis around everything that you want to take the square root of. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Simplify.pg b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Simplify.pg index fcceb48d25..4cd2e701b7 100644 --- a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Simplify.pg +++ b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Simplify.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical expression') -## DBsubject('Algebra') -## DBchapter('Basic Algebra') -## DBsection('Exponents and Radicals') +## DBsubject('Algebra') +## DBchapter('Basic Algebra') +## DBsection('Exponents and Radicals') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -30,7 +30,7 @@ loadMacros( "MathObjects.pl", "parserMultiAnswer.pl", "contextLimitedPowers.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGcourse.pl" ); @@ -114,12 +114,12 @@ $texanswer = "\($b \sqrt{$ac}\)"; ############################################################## BEGIN_TEXT -Simplify. +Simplify. $PAR $BCENTER \( $expr = \text{ }~\) \{ans_rule(20)\} $ECENTER -$BR Write your answer using radical notation if necessary. +$BR Write your answer using radical notation if necessary. END_TEXT @@ -134,14 +134,14 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR ${BBOLD}Help:${EBOLD} - -To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to give \(\sqrt{7x}\) as an answer, you would type sqrt(7x). If you mistakenly type sqrt 7x instead, Webwork will take this to mean \(x \sqrt{7}\), not \(\sqrt{7x}\). That is, you MUST put parenthesis around everything that you want to take the square root of. + +To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to give \(\sqrt{7x}\) as an answer, you would type sqrt(7x). If you mistakenly type sqrt 7x instead, Webwork will take this to mean \(x \sqrt{7}\), not \(\sqrt{7x}\). That is, you MUST put parenthesis around everything that you want to take the square root of. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/SimplifyProduct.pg b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/SimplifyProduct.pg index da21189960..09e5c15e80 100644 --- a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/SimplifyProduct.pg +++ b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/SimplifyProduct.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical expression') -## DBsubject('Algebra') -## DBchapter('Basic Algebra') -## DBsection('Exponents and Radicals') +## DBsubject('Algebra') +## DBchapter('Basic Algebra') +## DBsection('Exponents and Radicals') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "PGunion.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "contextLimitedPowers.pl", "PeriodicRerandomization.pl", @@ -123,7 +123,7 @@ $PAR $BCENTER \( $expr = \text{ }~\) \{ans_rule(20)\} $ECENTER -$BR Write your answer using radical notation if necessary. +$BR Write your answer using radical notation if necessary. END_TEXT @@ -138,14 +138,14 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR ${BBOLD}Help:${EBOLD} - -To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to give \(\sqrt{7x}\) as an answer, you would type sqrt(7x). If you mistakenly type sqrt 7x instead, Webwork will take this to mean \(x \sqrt{7}\), not \(\sqrt{7x}\). That is, you MUST put parenthesis around everything that you want to take the square root of. + +To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to give \(\sqrt{7x}\) as an answer, you would type sqrt(7x). If you mistakenly type sqrt 7x instead, Webwork will take this to mean \(x \sqrt{7}\), not \(\sqrt{7x}\). That is, you MUST put parenthesis around everything that you want to take the square root of. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/SimplifyRadical(twovariable).pg b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/SimplifyRadical(twovariable).pg index 79cf700ab4..f854aec81f 100644 --- a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/SimplifyRadical(twovariable).pg +++ b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/SimplifyRadical(twovariable).pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical expression') -## DBsubject('Algebra') -## DBchapter('Basic Algebra') -## DBsection('Exponents and Radicals') +## DBsubject('Algebra') +## DBchapter('Basic Algebra') +## DBsection('Exponents and Radicals') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -29,7 +29,7 @@ loadMacros( "PGunion.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "contextLimitedPowers.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -123,7 +123,7 @@ $PAR $BCENTER \( $expr = \text{ }~\) \{ans_rule(20)\} $ECENTER -$BR Write your answer using radical notation if necessary. +$BR Write your answer using radical notation if necessary. END_TEXT ############################################################## @@ -141,14 +141,14 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR ${BBOLD}Help:${EBOLD} -To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to give \(\sqrt{7x}\) as an answer, you would type sqrt(7x). If you mistakenly type sqrt 7x instead, Webwork will take this to mean \(x \sqrt{7}\), not \(\sqrt{7x}\). That is, you MUST put parenthesis around everything that you want to take the square root of. +To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to give \(\sqrt{7x}\) as an answer, you would type sqrt(7x). If you mistakenly type sqrt 7x instead, Webwork will take this to mean \(x \sqrt{7}\), not \(\sqrt{7x}\). That is, you MUST put parenthesis around everything that you want to take the square root of. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Simplify_Fraction_Radical_01.pg b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Simplify_Fraction_Radical_01.pg index e015b33dd7..b44d078eff 100644 --- a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Simplify_Fraction_Radical_01.pg +++ b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Simplify_Fraction_Radical_01.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# +# # ENDDESCRIPTION ## DBsubject('Algebra') @@ -11,7 +11,7 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( @@ -40,7 +40,7 @@ package main; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); Context()->functions->set(sqrt=>{class=>'my::Function::numeric'}); @@ -79,8 +79,8 @@ $multians = MultiAnswer($num, $den)->with( my ( $correct, $student, $self ) = @_; my ( $f1stu, $f2stu ) = @{$student}; my ( $f1, $f2 ) = @{$correct}; - - if ( ( $f1==$f1stu && $f2==$f2stu) || + + if ( ( $f1==$f1stu && $f2==$f2stu) || (-$f1==$f1stu && -$f2==$f2stu) ) { return [1,1]; } elsif ( $f1==$f1stu || -$f1==$f1stu) { @@ -116,7 +116,7 @@ if ($displayMode eq 'TeX') { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -126,12 +126,12 @@ $BCENTER $displayfrac $ECENTER $BR -Write your answer using radical notation if necessary. +Write your answer using radical notation if necessary. END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### my ($correct,$student,$ans) = @_; return 0 if $ans->{isPreview} || $correct != $student; @@ -162,12 +162,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR ${BBOLD}Help:${EBOLD} - \{ AnswerFormatHelp("exponents", "Click here for help writing exponents and square roots.") \} + \{ helpLink("exponents", "Click here for help writing exponents and square roots.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Simplify_Fractional_Radical_01.pg b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Simplify_Fractional_Radical_01.pg index 4892d8ee65..7689b013f1 100644 --- a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Simplify_Fractional_Radical_01.pg +++ b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Simplify_Fractional_Radical_01.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# +# # ENDDESCRIPTION ## DBsubject('Algebra') @@ -11,7 +11,7 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( @@ -21,7 +21,7 @@ loadMacros( "contextLimitedPowers.pl", "parserMultiAnswer.pl", "unionTables.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -31,7 +31,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); LimitedPowers::OnlyPositiveIntegers(); @@ -69,8 +69,8 @@ $multians = MultiAnswer($num, $den)->with( my ( $correct, $student, $self ) = @_; my ( $f1stu, $f2stu ) = @{$student}; my ( $f1, $f2 ) = @{$correct}; - - if ( ( $f1==$f1stu && $f2==$f2stu) || + + if ( ( $f1==$f1stu && $f2==$f2stu) || (-$f1==$f1stu && -$f2==$f2stu) ) { return [1,1]; } elsif ( $f1==$f1stu || -$f1==$f1stu) { @@ -106,7 +106,7 @@ if ($displayMode eq 'TeX') { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -116,12 +116,12 @@ $BCENTER $displayfrac $ECENTER $BR -Write your answer using radical notation if necessary. +Write your answer using radical notation if necessary. END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($multians->cmp()); @@ -140,12 +140,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR ${BBOLD}Help:${EBOLD} - \{ AnswerFormatHelp("exponents", "Click here for help writing exponents and square roots.") \} + \{ helpLink("exponents", "Click here for help writing exponents and square roots.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Simplify_Fractional_Radical_02.pg b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Simplify_Fractional_Radical_02.pg index e4877c158f..897715e343 100644 --- a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Simplify_Fractional_Radical_02.pg +++ b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Simplify_Fractional_Radical_02.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# +# # ENDDESCRIPTION ## DBsubject('Algebra') @@ -11,7 +11,7 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( @@ -21,7 +21,7 @@ loadMacros( "contextLimitedPowers.pl", "parserMultiAnswer.pl", "unionTables.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -31,7 +31,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); LimitedPowers::OnlyPositiveIntegers(); @@ -53,7 +53,7 @@ $ar = ($a)**($r+1); $b = $ar*$c; $ap1 = ($p1-$p2) % $r; -$ap2 = floor(($p1 - $p2)/$r); +$ap2 = floor(($p1 - $p2)/$r); $aq1 = ($q1-$q2) % $r; $aq2 = floor(($q1-$q2)/$r); @@ -96,8 +96,8 @@ $multians = MultiAnswer($num, $den)->with( my ( $correct, $student, $self ) = @_; my ( $f1stu, $f2stu ) = @{$student}; my ( $f1, $f2 ) = @{$correct}; - - if ( ( $f1==$f1stu && $f2==$f2stu) || + + if ( ( $f1==$f1stu && $f2==$f2stu) || (-$f1==$f1stu && -$f2==$f2stu) ) { return [1,1]; } elsif ( $f1==$f1stu || -$f1==$f1stu) { @@ -133,7 +133,7 @@ if ($displayMode eq 'TeX') { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -143,12 +143,12 @@ $BCENTER $displayfrac $ECENTER $BR -Write your answer using radical notation if necessary. +Write your answer using radical notation if necessary. END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($multians->cmp()); @@ -167,12 +167,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR ${BBOLD}Help:${EBOLD} - \{ AnswerFormatHelp("exponents", "Click here for help writing exponents and square roots.") \} + \{ helpLink("exponents", "Click here for help writing exponents and square roots.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Simplify_Fractional_Radical_03.pg b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Simplify_Fractional_Radical_03.pg index 0d3f7dd5b6..99186b527a 100644 --- a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Simplify_Fractional_Radical_03.pg +++ b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Simplify_Fractional_Radical_03.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# +# # ENDDESCRIPTION ## DBsubject('Algebra') @@ -11,7 +11,7 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( @@ -21,7 +21,7 @@ loadMacros( "contextLimitedPowers.pl", "parserMultiAnswer.pl", "unionTables.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -31,7 +31,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); LimitedPowers::OnlyPositiveIntegers(); @@ -71,8 +71,8 @@ $multians = MultiAnswer($num, $den)->with( my ( $correct, $student, $self ) = @_; my ( $f1stu, $f2stu ) = @{$student}; my ( $f1, $f2 ) = @{$correct}; - - if ( ( $f1==$f1stu && $f2==$f2stu) || + + if ( ( $f1==$f1stu && $f2==$f2stu) || (-$f1==$f1stu && -$f2==$f2stu) ) { return [1,1]; } elsif ( $f1==$f1stu || -$f1==$f1stu) { @@ -108,7 +108,7 @@ if ($displayMode eq 'TeX') { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -118,12 +118,12 @@ $BCENTER $displayfrac $ECENTER $BR -Write your answer using radical notation if necessary. +Write your answer using radical notation if necessary. END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($multians->cmp()); @@ -142,12 +142,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR ${BBOLD}Help:${EBOLD} - \{ AnswerFormatHelp("exponents", "Click here for help writing exponents and square roots.") \} + \{ helpLink("exponents", "Click here for help writing exponents and square roots.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Simplify_Fractional_Radical_Numbers_01.pg b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Simplify_Fractional_Radical_Numbers_01.pg index 1be0923346..192351417d 100644 --- a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Simplify_Fractional_Radical_Numbers_01.pg +++ b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Simplify_Fractional_Radical_Numbers_01.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# +# # ENDDESCRIPTION ## DBsubject('Algebra') @@ -11,7 +11,7 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( @@ -20,7 +20,7 @@ loadMacros( "PeriodicRerandomization.pl", "contextLimitedPowers.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -53,7 +53,7 @@ package main; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); Context()->functions->set(sqrt=>{class=>'my::Function::numeric'}); @@ -93,7 +93,7 @@ Context()->operators->undefine("**", "^"); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -108,7 +108,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS( $ansa-> cmp( checker => sub { my ($correct,$student,$ans) = @_; @@ -170,13 +170,13 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} - \{ AnswerFormatHelp("exponents", "Click here for help writing exponents and square roots.") \} + ${BBOLD}Help:${EBOLD} + \{ helpLink("exponents", "Click here for help writing exponents and square roots.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Sqrt_Squared_01.pg b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Sqrt_Squared_01.pg index 271fa50061..8b1fbc7fd3 100644 --- a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Sqrt_Squared_01.pg +++ b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Sqrt_Squared_01.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# +# # ENDDESCRIPTION ## DBsubject('Algebra') @@ -11,14 +11,14 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -51,7 +51,7 @@ package main; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @vars = ("x","y","z","a","b","c","p","q","r"); @@ -81,7 +81,7 @@ if ($a == 1) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -91,12 +91,12 @@ $BCENTER \($disp =\) \{ans_rule(20)\} $ECENTER $PAR -Write your answer using radical notation if necessary. +Write your answer using radical notation if necessary. END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS( $ans-> cmp( checker => sub { my ($correct,$student,$ans) = @_; @@ -135,13 +135,13 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} - \{ AnswerFormatHelp("exponents", "Click here for help writing exponents and square roots.") \} + ${BBOLD}Help:${EBOLD} + \{ helpLink("exponents", "Click here for help writing exponents and square roots.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/SquareRealMultipleChoice.pg b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/SquareRealMultipleChoice.pg index edafa31d08..c518ac1cb1 100644 --- a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/SquareRealMultipleChoice.pg +++ b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/SquareRealMultipleChoice.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical expression') -## DBsubject('Algebra') -## DBchapter('Basic Algebra') -## DBsection('Exponents and Radicals') +## DBsubject('Algebra') +## DBchapter('Basic Algebra') +## DBsection('Exponents and Radicals') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -29,7 +29,7 @@ loadMacros( "PGchoicemacros.pl", "PGunion.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -137,7 +137,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Square_Sqrt_01.pg b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Square_Sqrt_01.pg index 124960e692..05a22536d3 100644 --- a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Square_Sqrt_01.pg +++ b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Square_Sqrt_01.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# +# # ENDDESCRIPTION ## DBsubject('Algebra') @@ -11,14 +11,14 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -51,7 +51,7 @@ package main; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @vars = ("x","y","z","a","b","c","p","q","r"); @@ -69,34 +69,34 @@ $b = non_zero_random(-9,9); if ($case == 0) { $disp = "\left(\sqrt{$a} + $b $v1\right)^2"; if ($b == 1) { - $disp = "\left(\sqrt{$a} + $v1\right)^2"; + $disp = "\left(\sqrt{$a} + $v1\right)^2"; } elsif ($b == -1) { - $disp = "\left(\sqrt{$a} - $v1\right)^2"; + $disp = "\left(\sqrt{$a} - $v1\right)^2"; } $e1 = ($b)**2; $e2 = abs(2*$b); $ans = Formula("$e1 $v1^2 + $a + $e2 $v1 sqrt($a)"); - if ($b < 0) { + if ($b < 0) { $ans = Formula("$e1 $v1^2 + $a - $e2 $v1 sqrt($a)"); } } else { $disp = "\left(\sqrt{$a $v2} + $b $v1\right)^2"; if ($b == 1) { - $disp = "\left(\sqrt{$a $v2 } + $v1\right)^2"; + $disp = "\left(\sqrt{$a $v2 } + $v1\right)^2"; } elsif ($b == -1) { - $disp = "\left(\sqrt{$a $v2} - $v1\right)^2"; + $disp = "\left(\sqrt{$a $v2} - $v1\right)^2"; } $e1 = ($b)**2; $e2 = abs(2*$b); $ans = Formula("$e1 $v1^2 + $a $v2 + $e2 $v1 sqrt($a $v2)"); - if ($b < 0) { + if ($b < 0) { $ans = Formula("$e1 $v1^2 + $a $v2 - $e2 $v1 sqrt($a $v2)"); } } ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -106,12 +106,12 @@ $BCENTER \($disp =\) \{ans_rule(20)\} $ECENTER $PAR -Write your answer using radical notation if necessary. +Write your answer using radical notation if necessary. END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS( $ans-> cmp( checker => sub { my ($correct,$student,$ans) = @_; @@ -150,13 +150,13 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} - \{ AnswerFormatHelp("exponents", "Click here for help writing exponents and square roots.") \} + ${BBOLD}Help:${EBOLD} + \{ helpLink("exponents", "Click here for help writing exponents and square roots.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/SumOfRadicals.pg b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/SumOfRadicals.pg index 6839160ce0..b49f20b1e8 100644 --- a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/SumOfRadicals.pg +++ b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/SumOfRadicals.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical expression') -## DBsubject('Algebra') -## DBchapter('Basic Algebra') -## DBsection('Exponents and Radicals') +## DBsubject('Algebra') +## DBchapter('Basic Algebra') +## DBsection('Exponents and Radicals') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -29,7 +29,7 @@ loadMacros( "PGunion.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "contextLimitedPowers.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -124,7 +124,7 @@ $PAR $BCENTER \( $expr = \text{ }~\) \{ans_rule(20)\} $ECENTER -$BR Write your answer using radical notation if necessary. +$BR Write your answer using radical notation if necessary. END_TEXT @@ -139,14 +139,14 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR ${BBOLD}Help:${EBOLD} - -To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to give \(\sqrt{7x}\) as an answer, you would type sqrt(7x). If you mistakenly type sqrt 7x instead, Webwork will take this to mean \(x \sqrt{7}\), not \(\sqrt{7x}\). That is, you MUST put parenthesis around everything that you want to take the square root of. + +To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to give \(\sqrt{7x}\) as an answer, you would type sqrt(7x). If you mistakenly type sqrt 7x instead, Webwork will take this to mean \(x \sqrt{7}\), not \(\sqrt{7x}\). That is, you MUST put parenthesis around everything that you want to take the square root of. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Three_Parts_01.pg b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Three_Parts_01.pg index ca098f7edc..51f8d4eb03 100644 --- a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Three_Parts_01.pg +++ b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Three_Parts_01.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# +# # ENDDESCRIPTION ## DBsubject('Algebra') @@ -11,14 +11,14 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -51,7 +51,7 @@ package main; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @vars = ("x","y","z","a","b","c","p","q","r"); @@ -106,7 +106,7 @@ if ($case3 == 0) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -118,12 +118,12 @@ $PAR $PAR (c) \($disp3 = \) \{ans_rule(20)\} $PAR -Write your answer using radical notation if necessary. +Write your answer using radical notation if necessary. END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS( $ansa-> cmp( checker => sub { my ($correct,$student,$ans) = @_; @@ -208,13 +208,13 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} - \{ AnswerFormatHelp("exponents", "Click here for help writing exponents and square roots.") \} + ${BBOLD}Help:${EBOLD} + \{ helpLink("exponents", "Click here for help writing exponents and square roots.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Three_Terms.pg b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Three_Terms.pg index efab08ff3b..22c8277bb7 100644 --- a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Three_Terms.pg +++ b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Three_Terms.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# +# # ENDDESCRIPTION ## DBsubject('Algebra') @@ -11,7 +11,7 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( @@ -20,7 +20,7 @@ loadMacros( "PeriodicRerandomization.pl", "contextLimitedPowers.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -53,7 +53,7 @@ package main; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); Context()->functions->set(sqrt=>{class=>'my::Function::numeric'}); @@ -97,7 +97,7 @@ if ($c2 < 0) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -110,7 +110,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS( $ans-> cmp( checker => sub { my ($correct,$student,$ans) = @_; @@ -149,13 +149,13 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} - \{ AnswerFormatHelp("exponents", "Click here for help writing exponents and square roots.") \} + ${BBOLD}Help:${EBOLD} + \{ helpLink("exponents", "Click here for help writing exponents and square roots.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Two_Factors_Sqrt_Var_01.pg b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Two_Factors_Sqrt_Var_01.pg index cfb2a3978c..af9c7bba52 100644 --- a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Two_Factors_Sqrt_Var_01.pg +++ b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Two_Factors_Sqrt_Var_01.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# +# # ENDDESCRIPTION ## DBsubject('Algebra') @@ -11,14 +11,14 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -51,7 +51,7 @@ package main; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @vars = ("x","y","z","a","b","c","p","q","r"); @@ -79,7 +79,7 @@ $ans = Formula("$e1 $v + $e2 sqrt($v) + $e3")->reduce; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -89,12 +89,12 @@ $BCENTER \($disp =\) \{ans_rule(20)\} $ECENTER $PAR -Write your answer using radical notation if necessary. +Write your answer using radical notation if necessary. END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS( $ans-> cmp( checker => sub { my ($correct,$student,$ans) = @_; @@ -133,13 +133,13 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} - \{ AnswerFormatHelp("exponents", "Click here for help writing exponents and square roots.") \} + ${BBOLD}Help:${EBOLD} + \{ helpLink("exponents", "Click here for help writing exponents and square roots.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Two_Terms_With_Vars_Frac_01.pg b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Two_Terms_With_Vars_Frac_01.pg index 21858b3afa..146cf78db5 100644 --- a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Two_Terms_With_Vars_Frac_01.pg +++ b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Two_Terms_With_Vars_Frac_01.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# +# # ENDDESCRIPTION ## DBsubject('Algebra') @@ -11,14 +11,14 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -51,7 +51,7 @@ package main; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @vars = ("x","y","z","a","b","c","p","q","r"); @@ -116,7 +116,7 @@ Context()->operators->undefine("+", "-"); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -126,12 +126,12 @@ $BCENTER \($disp = \) \{ans_rule(15)\} $ECENTER $BR -Write your answer using radical notation if necessary. +Write your answer using radical notation if necessary. END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS( $ans-> cmp( checker => sub { my ($correct,$student,$ans) = @_; @@ -170,13 +170,13 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} - \{ AnswerFormatHelp("exponents", "Click here for help writing exponents and square roots.") \} + ${BBOLD}Help:${EBOLD} + \{ helpLink("exponents", "Click here for help writing exponents and square roots.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Rational_Exponents/Convert_to_Radical_01.pg b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Rational_Exponents/Convert_to_Radical_01.pg index 3c0b20d760..e2af97243f 100644 --- a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Rational_Exponents/Convert_to_Radical_01.pg +++ b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Rational_Exponents/Convert_to_Radical_01.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical expression', 'rational powers') -## DBsubject('Algebra') -## DBchapter('Basic Algebra') -## DBsection('Exponents and Radicals') +## DBsubject('Algebra') +## DBchapter('Basic Algebra') +## DBsection('Exponents and Radicals') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -29,7 +29,7 @@ loadMacros( "PGunion.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -103,7 +103,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); $showPartialCorrectAnswers = 1; diff --git a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Rational_Exponents/FracExponents.pg b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Rational_Exponents/FracExponents.pg index 08cee6be4e..662e23e834 100644 --- a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Rational_Exponents/FracExponents.pg +++ b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Rational_Exponents/FracExponents.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical expression', 'rational powers') -## DBsubject('Algebra') -## DBchapter('Basic Algebra') -## DBsection('Exponents and Radicals') +## DBsubject('Algebra') +## DBchapter('Basic Algebra') +## DBsection('Exponents and Radicals') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -29,7 +29,7 @@ loadMacros( "PGunion.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -94,7 +94,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); $showPartialCorrectAnswers = 1; diff --git a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Rational_Exponents/FracExponents2.pg b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Rational_Exponents/FracExponents2.pg index 6f8dfa5f6a..df1d7f5bcd 100644 --- a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Rational_Exponents/FracExponents2.pg +++ b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Rational_Exponents/FracExponents2.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical expression', 'rational powers') -## DBsubject('Algebra') -## DBchapter('Basic Algebra') -## DBsection('Exponents and Radicals') +## DBsubject('Algebra') +## DBchapter('Basic Algebra') +## DBsection('Exponents and Radicals') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -29,7 +29,7 @@ loadMacros( "PGunion.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -93,7 +93,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); $showPartialCorrectAnswers = 1; diff --git a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Rational_Exponents/NestedRadical.pg b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Rational_Exponents/NestedRadical.pg index 10fdfffc3b..8208b032b5 100644 --- a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Rational_Exponents/NestedRadical.pg +++ b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Rational_Exponents/NestedRadical.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical expression', 'rational powers') -## DBsubject('Algebra') -## DBchapter('Basic Algebra') -## DBsection('Exponents and Radicals') +## DBsubject('Algebra') +## DBchapter('Basic Algebra') +## DBsection('Exponents and Radicals') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -29,7 +29,7 @@ loadMacros( "PGunion.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -91,7 +91,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); $showPartialCorrectAnswers = 1; diff --git a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Rational_Exponents/Powers.pg b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Rational_Exponents/Powers.pg index cc9ab6e185..00e3d4be5b 100644 --- a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Rational_Exponents/Powers.pg +++ b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Rational_Exponents/Powers.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical expression', 'rational powers') -## DBsubject('Algebra') -## DBchapter('Basic Algebra') -## DBsection('Exponents and Radicals') +## DBsubject('Algebra') +## DBchapter('Basic Algebra') +## DBsection('Exponents and Radicals') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -29,7 +29,7 @@ loadMacros( "PGunion.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "contextLimitedPowers.pl", "contextFraction.pl", "PeriodicRerandomization.pl", @@ -143,7 +143,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); $showPartialCorrectAnswers = 1; diff --git a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Rational_Exponents/Powers2.pg b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Rational_Exponents/Powers2.pg index 83c75501ca..e03f6e4f15 100644 --- a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Rational_Exponents/Powers2.pg +++ b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Rational_Exponents/Powers2.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical expression', 'rational powers') -## DBsubject('Algebra') -## DBchapter('Basic Algebra') -## DBsection('Exponents and Radicals') +## DBsubject('Algebra') +## DBchapter('Basic Algebra') +## DBsection('Exponents and Radicals') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -29,7 +29,7 @@ loadMacros( "PGunion.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "contextLimitedPowers.pl", "contextFraction.pl", "PeriodicRerandomization.pl", @@ -145,7 +145,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); $showPartialCorrectAnswers = 1; diff --git a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Rational_Exponents/ProductRadical2.pg b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Rational_Exponents/ProductRadical2.pg index 6c190332cf..72f258786d 100644 --- a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Rational_Exponents/ProductRadical2.pg +++ b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Rational_Exponents/ProductRadical2.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical expression', 'rational powers') -## DBsubject('Algebra') -## DBchapter('Basic Algebra') -## DBsection('Exponents and Radicals') +## DBsubject('Algebra') +## DBchapter('Basic Algebra') +## DBsection('Exponents and Radicals') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -29,7 +29,7 @@ loadMacros( "PGunion.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "contextLimitedPowers.pl", "contextFraction.pl", "PeriodicRerandomization.pl", @@ -141,7 +141,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); $showPartialCorrectAnswers = 1; diff --git a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Rational_Exponents/RadicalToFractionalExponent.pg b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Rational_Exponents/RadicalToFractionalExponent.pg index ab48db1e2b..038c32d035 100644 --- a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Rational_Exponents/RadicalToFractionalExponent.pg +++ b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Rational_Exponents/RadicalToFractionalExponent.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical expression', 'rational powers') -## DBsubject('Algebra') -## DBchapter('Basic Algebra') -## DBsection('Exponents and Radicals') +## DBsubject('Algebra') +## DBchapter('Basic Algebra') +## DBsection('Exponents and Radicals') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -29,7 +29,7 @@ loadMacros( "PGunion.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -94,7 +94,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); $showPartialCorrectAnswers = 1; diff --git a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Rational_Exponents/RealProduct1.pg b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Rational_Exponents/RealProduct1.pg index f39dadfd7b..7e23f5b52c 100644 --- a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Rational_Exponents/RealProduct1.pg +++ b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Rational_Exponents/RealProduct1.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical expression') -## DBsubject('Algebra') -## DBchapter('Basic Algebra') -## DBsection('Exponents and Radicals') +## DBsubject('Algebra') +## DBchapter('Basic Algebra') +## DBsection('Exponents and Radicals') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -28,7 +28,7 @@ loadMacros( "PGunion.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "contextLimitedPowers.pl", "PGcourse.pl" ); @@ -121,8 +121,8 @@ $BCENTER \( $expr = \text{ }~\) \{ans_rule(20)\} $ECENTER $PAR -Write an exact answer using radical notation if necessary. -\{ AnswerFormatHelp("exponents", "Click here for help writing exponents and square roots.") \} +Write an exact answer using radical notation if necessary. +\{ helpLink("exponents", "Click here for help writing exponents and square roots.") \} END_TEXT ############################################################## diff --git a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Rational_Exponents/Reals2.pg b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Rational_Exponents/Reals2.pg index 61ef5187ee..08a51b5d16 100644 --- a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Rational_Exponents/Reals2.pg +++ b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Rational_Exponents/Reals2.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical expression', 'rational powers') -## DBsubject('Algebra') -## DBchapter('Basic Algebra') -## DBsection('Exponents and Radicals') +## DBsubject('Algebra') +## DBchapter('Basic Algebra') +## DBsection('Exponents and Radicals') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -29,7 +29,7 @@ loadMacros( "PGunion.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -101,7 +101,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); $showPartialCorrectAnswers = 1; diff --git a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Rational_Exponents/Simplify_Radical_01.pg b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Rational_Exponents/Simplify_Radical_01.pg index fc245e335a..31672461f8 100644 --- a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Rational_Exponents/Simplify_Radical_01.pg +++ b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Rational_Exponents/Simplify_Radical_01.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical expression', 'rational powers') -## DBsubject('Algebra') -## DBchapter('Basic Algebra') -## DBsection('Exponents and Radicals') +## DBsubject('Algebra') +## DBchapter('Basic Algebra') +## DBsection('Exponents and Radicals') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -29,7 +29,7 @@ loadMacros( "PGunion.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -80,7 +80,7 @@ Use rational exponents to simplify and write the following using a single radica $PAR \[$expression = $RHS \] $PAR -then +then $PAR \(n = \) \{ans_rule(5)\} and \(m = \) \{ans_rule(5)\} END_TEXT @@ -100,7 +100,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); $showPartialCorrectAnswers = 1; diff --git a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Rational_Exponents/Simplify_Radical_02.pg b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Rational_Exponents/Simplify_Radical_02.pg index 1b91885ef2..9f59d06eff 100644 --- a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Rational_Exponents/Simplify_Radical_02.pg +++ b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Rational_Exponents/Simplify_Radical_02.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical expression', 'rational powers') -## DBsubject('Algebra') -## DBchapter('Basic Algebra') -## DBsection('Exponents and Radicals') +## DBsubject('Algebra') +## DBchapter('Basic Algebra') +## DBsection('Exponents and Radicals') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -29,7 +29,7 @@ loadMacros( "PGunion.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -80,7 +80,7 @@ Use rational exponents to simplify and write the following using a single radica $PAR \[$expression = $RHS \] $PAR -then +then $PAR \(n = \) \{ans_rule(5)\} and \(m = \) \{ans_rule(5)\} END_TEXT @@ -100,7 +100,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); $showPartialCorrectAnswers = 1; diff --git a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Rational_Exponents/Simplify_Rational_01.pg b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Rational_Exponents/Simplify_Rational_01.pg index 687bfbbe05..1f461437cc 100644 --- a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Rational_Exponents/Simplify_Rational_01.pg +++ b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Rational_Exponents/Simplify_Rational_01.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical expression', 'rational powers') -## DBsubject('Algebra') -## DBchapter('Basic Algebra') -## DBsection('Exponents and Radicals') +## DBsubject('Algebra') +## DBchapter('Basic Algebra') +## DBsection('Exponents and Radicals') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -29,7 +29,7 @@ loadMacros( "PGunion.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -76,7 +76,7 @@ Simplify and write the following as a single rational exponent of \($var\). If $PAR \[$expression = $var^m \] $PAR -then +then $PAR \(m = \) \{ANS_RULE(5)\} END_TEXT @@ -96,7 +96,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); $showPartialCorrectAnswers = 1; diff --git a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Rational_Exponents/Simplify_Rational_02.pg b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Rational_Exponents/Simplify_Rational_02.pg index e45f2358c6..8223effd32 100644 --- a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Rational_Exponents/Simplify_Rational_02.pg +++ b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Rational_Exponents/Simplify_Rational_02.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical expression', 'rational powers') -## DBsubject('Algebra') -## DBchapter('Basic Algebra') -## DBsection('Exponents and Radicals') +## DBsubject('Algebra') +## DBchapter('Basic Algebra') +## DBsection('Exponents and Radicals') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -29,7 +29,7 @@ loadMacros( "PGunion.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -78,7 +78,7 @@ Simplify and write the following as a single rational exponent of \($var\). If $PAR \[$expression = $var^m \] $PAR -then +then $PAR \(m = \) \{ANS_RULE(5)\} END_TEXT @@ -98,7 +98,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); $showPartialCorrectAnswers = 1; diff --git a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Rational_Exponents/power3.pg b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Rational_Exponents/power3.pg index 52619d98cb..3d38e4777e 100644 --- a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Rational_Exponents/power3.pg +++ b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Rational_Exponents/power3.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical expression', 'rational powers') -## DBsubject('Algebra') -## DBchapter('Basic Algebra') -## DBsection('Exponents and Radicals') +## DBsubject('Algebra') +## DBchapter('Basic Algebra') +## DBsection('Exponents and Radicals') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -29,7 +29,7 @@ loadMacros( "PGunion.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -77,7 +77,7 @@ Simplify and write the following using a single rational exponent of \($var\). I $PAR \[$expression = $var^m \] $PAR -then +then $PAR \(m = \) \{ANS_RULE(5)\} END_TEXT @@ -97,7 +97,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); $showPartialCorrectAnswers = 1; diff --git a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Rational_Exponents/productRadical.pg b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Rational_Exponents/productRadical.pg index 3c814e5a92..4631872465 100644 --- a/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Rational_Exponents/productRadical.pg +++ b/Contrib/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Rational_Exponents/productRadical.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical expression', 'rational powers') -## DBsubject('Algebra') -## DBchapter('Basic Algebra') -## DBsection('Exponents and Radicals') +## DBsubject('Algebra') +## DBchapter('Basic Algebra') +## DBsection('Exponents and Radicals') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -29,7 +29,7 @@ loadMacros( "PGunion.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -95,7 +95,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); $showPartialCorrectAnswers = 1; diff --git a/Contrib/Mizzou/College_Algebra/Real_Numbers/Interval_Notation/Convert_To_Interval_Notation_All.pg b/Contrib/Mizzou/College_Algebra/Real_Numbers/Interval_Notation/Convert_To_Interval_Notation_All.pg index 63406fdab2..8366a99cf5 100644 --- a/Contrib/Mizzou/College_Algebra/Real_Numbers/Interval_Notation/Convert_To_Interval_Notation_All.pg +++ b/Contrib/Mizzou/College_Algebra/Real_Numbers/Interval_Notation/Convert_To_Interval_Notation_All.pg @@ -13,12 +13,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -30,7 +30,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Interval"); $a = random(-100,-15,1); @@ -76,7 +76,7 @@ if ($case == 1) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -87,7 +87,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ans->cmp()); @@ -105,12 +105,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited and updated in 2012/2013. $BR diff --git a/Contrib/Mizzou/College_Algebra/Real_Numbers/Interval_Notation/Convert_To_Interval_Notation_Infinity.pg b/Contrib/Mizzou/College_Algebra/Real_Numbers/Interval_Notation/Convert_To_Interval_Notation_Infinity.pg index d0c6ff64b6..072dae3d4a 100644 --- a/Contrib/Mizzou/College_Algebra/Real_Numbers/Interval_Notation/Convert_To_Interval_Notation_Infinity.pg +++ b/Contrib/Mizzou/College_Algebra/Real_Numbers/Interval_Notation/Convert_To_Interval_Notation_Infinity.pg @@ -13,12 +13,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -30,7 +30,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Interval"); $a = random(-100,100,1); @@ -51,7 +51,7 @@ if ($case == 1) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -62,7 +62,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ans->cmp()); @@ -80,12 +80,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited and updated in 2012/2013. $BR diff --git a/Contrib/Mizzou/College_Algebra/Real_Numbers/Interval_Notation/Convert_To_Interval_Notation_Intersection.pg b/Contrib/Mizzou/College_Algebra/Real_Numbers/Interval_Notation/Convert_To_Interval_Notation_Intersection.pg index 390b266519..d265ffc7e3 100644 --- a/Contrib/Mizzou/College_Algebra/Real_Numbers/Interval_Notation/Convert_To_Interval_Notation_Intersection.pg +++ b/Contrib/Mizzou/College_Algebra/Real_Numbers/Interval_Notation/Convert_To_Interval_Notation_Intersection.pg @@ -13,12 +13,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -30,7 +30,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Interval"); $a = random(-100,-15,1); @@ -52,7 +52,7 @@ if ($case == 1) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -63,7 +63,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ans->cmp()); @@ -81,12 +81,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited and updated in 2012/2013. $BR diff --git a/Contrib/Mizzou/College_Algebra/Real_Numbers/Interval_Notation/Convert_To_Interval_Notation_Union.pg b/Contrib/Mizzou/College_Algebra/Real_Numbers/Interval_Notation/Convert_To_Interval_Notation_Union.pg index b986bcd52d..77634c30c6 100644 --- a/Contrib/Mizzou/College_Algebra/Real_Numbers/Interval_Notation/Convert_To_Interval_Notation_Union.pg +++ b/Contrib/Mizzou/College_Algebra/Real_Numbers/Interval_Notation/Convert_To_Interval_Notation_Union.pg @@ -13,12 +13,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -30,7 +30,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Interval"); $a = random(-100,-15,1); @@ -52,7 +52,7 @@ if ($case == 1) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -63,7 +63,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ans->cmp()); @@ -81,12 +81,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited and updated in 2012/2013. $BR diff --git a/Contrib/Mizzou/College_Algebra/Real_Numbers/Interval_Notation/Convert_To_Interval_Notation_Union_Intersection.pg b/Contrib/Mizzou/College_Algebra/Real_Numbers/Interval_Notation/Convert_To_Interval_Notation_Union_Intersection.pg index 5447bedd35..4d6082857d 100644 --- a/Contrib/Mizzou/College_Algebra/Real_Numbers/Interval_Notation/Convert_To_Interval_Notation_Union_Intersection.pg +++ b/Contrib/Mizzou/College_Algebra/Real_Numbers/Interval_Notation/Convert_To_Interval_Notation_Union_Intersection.pg @@ -13,12 +13,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -30,7 +30,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Interval"); $a = random(-100,-15,1); @@ -77,11 +77,11 @@ if ($showfirst == 1) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT -Write in interval notation: +Write in interval notation: $PAR (a) \(${LBRACE} x \mbox{ }|\mbox{ } $dispineq1 ${RBRACE}\): \{ans_rule(20)\} $PAR @@ -90,7 +90,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ans1->cmp()); ANS($ans2->cmp()); @@ -103,7 +103,7 @@ ANS($ans2->cmp()); if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR - ${BBOLD}Answers:${EBOLD} + ${BBOLD}Answers:${EBOLD} $PAR (a) \($ans1\) $PAR @@ -113,12 +113,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited and updated in 2012/2013. $BR diff --git a/Contrib/Mizzou/College_Algebra/Real_Numbers/Interval_Notation/Graph_One_Interval_All.pg b/Contrib/Mizzou/College_Algebra/Real_Numbers/Interval_Notation/Graph_One_Interval_All.pg index 9932d1bdbe..ebbbad96e7 100644 --- a/Contrib/Mizzou/College_Algebra/Real_Numbers/Interval_Notation/Graph_One_Interval_All.pg +++ b/Contrib/Mizzou/College_Algebra/Real_Numbers/Interval_Notation/Graph_One_Interval_All.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -30,7 +30,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Interval"); $gwidth = 600; @@ -93,11 +93,11 @@ if ($caseb == 0) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT -Write interval notation for the given graph: +Write interval notation for the given graph: $PAR $BCENTER \{image(insertGraph($gr), width=>$gwidth, height=>$gheight, tex_size=>500)\} @@ -108,7 +108,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ans->cmp()); @@ -126,12 +126,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited and updated in 2012/2013. $BR diff --git a/Contrib/Mizzou/College_Algebra/Real_Numbers/Interval_Notation/Graph_One_Interval_Finite_Endpts.pg b/Contrib/Mizzou/College_Algebra/Real_Numbers/Interval_Notation/Graph_One_Interval_Finite_Endpts.pg index 240f503be4..573f092d57 100644 --- a/Contrib/Mizzou/College_Algebra/Real_Numbers/Interval_Notation/Graph_One_Interval_Finite_Endpts.pg +++ b/Contrib/Mizzou/College_Algebra/Real_Numbers/Interval_Notation/Graph_One_Interval_Finite_Endpts.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -30,7 +30,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Interval"); $gwidth = 600; @@ -77,11 +77,11 @@ if ($caseb == 0) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT -Write interval notation for the given graph: +Write interval notation for the given graph: $PAR $BCENTER \{image(insertGraph($gr), width=>$gwidth, height=>$gheight, tex_size=>500)\} @@ -92,7 +92,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ans->cmp()); @@ -110,12 +110,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited and updated in 2012/2013. $BR diff --git a/Contrib/Mizzou/College_Algebra/Real_Numbers/Interval_Notation/Graph_One_Interval_Left_Inf.pg b/Contrib/Mizzou/College_Algebra/Real_Numbers/Interval_Notation/Graph_One_Interval_Left_Inf.pg index a2cc5b6b5b..678a0c92ea 100644 --- a/Contrib/Mizzou/College_Algebra/Real_Numbers/Interval_Notation/Graph_One_Interval_Left_Inf.pg +++ b/Contrib/Mizzou/College_Algebra/Real_Numbers/Interval_Notation/Graph_One_Interval_Left_Inf.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -30,7 +30,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Interval"); $gwidth = 600; @@ -60,11 +60,11 @@ $gr->arrowTo(-11,0,'blue','3'); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT -Write interval notation for the given graph: +Write interval notation for the given graph: $PAR $BCENTER \{image(insertGraph($gr), width=>$gwidth, height=>$gheight, tex_size=>500)\} @@ -75,7 +75,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ans->cmp()); @@ -93,12 +93,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited and updated in 2012/2013. $BR diff --git a/Contrib/Mizzou/College_Algebra/Real_Numbers/Interval_Notation/Graph_One_Interval_Right_Inf.pg b/Contrib/Mizzou/College_Algebra/Real_Numbers/Interval_Notation/Graph_One_Interval_Right_Inf.pg index 94ad63dbdd..00e55f293d 100644 --- a/Contrib/Mizzou/College_Algebra/Real_Numbers/Interval_Notation/Graph_One_Interval_Right_Inf.pg +++ b/Contrib/Mizzou/College_Algebra/Real_Numbers/Interval_Notation/Graph_One_Interval_Right_Inf.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -30,7 +30,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Interval"); $gwidth = 600; @@ -60,11 +60,11 @@ $gr->arrowTo(11,0,'blue','3'); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT -Write interval notation for the given graph: +Write interval notation for the given graph: $PAR $BCENTER \{image(insertGraph($gr), width=>$gwidth, height=>$gheight, tex_size=>500)\} @@ -75,7 +75,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ans->cmp()); @@ -93,12 +93,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited and updated in 2012/2013. $BR diff --git a/Contrib/Mizzou/College_Algebra/Real_Numbers/Interval_Notation/Graph_Two_Intervals_Union.pg b/Contrib/Mizzou/College_Algebra/Real_Numbers/Interval_Notation/Graph_Two_Intervals_Union.pg index 4583d68a85..f54dd150c8 100644 --- a/Contrib/Mizzou/College_Algebra/Real_Numbers/Interval_Notation/Graph_Two_Intervals_Union.pg +++ b/Contrib/Mizzou/College_Algebra/Real_Numbers/Interval_Notation/Graph_Two_Intervals_Union.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -30,7 +30,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Interval"); $gwidth = 600; @@ -128,11 +128,11 @@ $ans = Compute($int); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT -Write interval notation for the given graph: +Write interval notation for the given graph: $PAR $BCENTER \{image(insertGraph($gr), width=>$gwidth, height=>$gheight, tex_size=>500)\} @@ -143,7 +143,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ans->cmp()); @@ -161,12 +161,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization. Edited and updated in 2012/2013. $BR diff --git a/Contrib/Mizzou/College_Algebra/Real_Numbers/Simplifying_Expressions/Write_English_Into_Algebraic_01.pg b/Contrib/Mizzou/College_Algebra/Real_Numbers/Simplifying_Expressions/Write_English_Into_Algebraic_01.pg index bcfdb68da6..e8f503c392 100644 --- a/Contrib/Mizzou/College_Algebra/Real_Numbers/Simplifying_Expressions/Write_English_Into_Algebraic_01.pg +++ b/Contrib/Mizzou/College_Algebra/Real_Numbers/Simplifying_Expressions/Write_English_Into_Algebraic_01.pg @@ -11,12 +11,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -28,7 +28,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $a1 = random(2,10); @@ -51,7 +51,7 @@ $ans2 = Formula($f2[$choice2]); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -64,7 +64,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($ans1)->cmp()); ANS(Compute($ans2)->cmp()); @@ -83,12 +83,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("formulas","Click here for help entering formulas.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("formulas","Click here for help entering formulas.")\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/College_Algebra/online/functions_even_odd_symmetry/even01.pg b/Contrib/Mizzou/College_Algebra/online/functions_even_odd_symmetry/even01.pg index 8cf6c1c74a..f38656c2f0 100644 --- a/Contrib/Mizzou/College_Algebra/online/functions_even_odd_symmetry/even01.pg +++ b/Contrib/Mizzou/College_Algebra/online/functions_even_odd_symmetry/even01.pg @@ -26,7 +26,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -70,7 +70,7 @@ $anseoo = "even"; # Main text BEGIN_TEXT -Let \($dispfun\). +Let \($dispfun\). $PAR Determine \(f(-x)\) first and then determine whether the function is even, odd, or neither. Write ${BBOLD}even${EBOLD} if the function is even, ${BBOLD}odd${EBOLD} if the function is odd, and ${BBOLD}neither${EBOLD} if the function is neither even nor odd. $PAR @@ -93,7 +93,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ diff --git a/Contrib/Mizzou/Intermediate_Algebra/Compound_Inequalities/Like_57_58.pg b/Contrib/Mizzou/Intermediate_Algebra/Compound_Inequalities/Like_57_58.pg index 5e326d6288..caf0f58533 100644 --- a/Contrib/Mizzou/Intermediate_Algebra/Compound_Inequalities/Like_57_58.pg +++ b/Contrib/Mizzou/Intermediate_Algebra/Compound_Inequalities/Like_57_58.pg @@ -11,14 +11,14 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -29,7 +29,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Fraction-NoDecimals"); @ineqs = ("<", "\leq"); @@ -67,11 +67,11 @@ if ($casex == 0) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT -Solve the following inequality. Write your answer in interval notation or if no solutions exist write ${BBOLD}no solutions${EBOLD}. +Solve the following inequality. Write your answer in interval notation or if no solutions exist write ${BBOLD}no solutions${EBOLD}. $PAR \[ $dispineq @@ -82,7 +82,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ans->cmp(tolerance=>0.000000001, tolType=>"absolute")); @@ -100,12 +100,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{ AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.") \} + ${BBOLD}Help:${EBOLD} \{ helpLink("intervals", "Click here for help entering intervals as answers.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Intermediate_Algebra/Compound_Inequalities/Like_59_60.pg b/Contrib/Mizzou/Intermediate_Algebra/Compound_Inequalities/Like_59_60.pg index 28456886c2..073d665c8c 100644 --- a/Contrib/Mizzou/Intermediate_Algebra/Compound_Inequalities/Like_59_60.pg +++ b/Contrib/Mizzou/Intermediate_Algebra/Compound_Inequalities/Like_59_60.pg @@ -11,14 +11,14 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -29,7 +29,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Fraction-NoDecimals"); @ineqs = ("<", "\leq"); @@ -53,11 +53,11 @@ Context("Interval"); $ans = Compute("$bracks1[$case1] $lep, $rep $bracks2[$case2]"); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT -Solve the following inequality. Write your answer in interval notation or if no solutions exist write ${BBOLD}no solutions${EBOLD}. +Solve the following inequality. Write your answer in interval notation or if no solutions exist write ${BBOLD}no solutions${EBOLD}. $PAR \[ $dispineq @@ -68,7 +68,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ans->cmp(tolerance=>0.000000001, tolType=>"absolute")); @@ -86,12 +86,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{ AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.") \} + ${BBOLD}Help:${EBOLD} \{ helpLink("intervals", "Click here for help entering intervals as answers.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Intermediate_Algebra/Compound_Inequalities/Like_67_70.pg b/Contrib/Mizzou/Intermediate_Algebra/Compound_Inequalities/Like_67_70.pg index 3f1b247d78..c3e1aee367 100644 --- a/Contrib/Mizzou/Intermediate_Algebra/Compound_Inequalities/Like_67_70.pg +++ b/Contrib/Mizzou/Intermediate_Algebra/Compound_Inequalities/Like_67_70.pg @@ -11,14 +11,14 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -29,7 +29,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Fraction-NoDecimals"); @ineqs = ("<", "\leq"); @@ -73,11 +73,11 @@ if ($casex == 0) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT -Solve the following inequality. Write your answer in interval notation or if no solutions exist write ${BBOLD}no solutions${EBOLD}. +Solve the following inequality. Write your answer in interval notation or if no solutions exist write ${BBOLD}no solutions${EBOLD}. $PAR \[ $dispineq @@ -88,7 +88,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ans->cmp(tolerance=>0.000000001, tolType=>"absolute")); @@ -106,12 +106,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{ AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.") \} + ${BBOLD}Help:${EBOLD} \{ helpLink("intervals", "Click here for help entering intervals as answers.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Intermediate_Algebra/Compound_Inequalities/P_01.pg b/Contrib/Mizzou/Intermediate_Algebra/Compound_Inequalities/P_01.pg index 44f63318c2..df6fadbc7e 100644 --- a/Contrib/Mizzou/Intermediate_Algebra/Compound_Inequalities/P_01.pg +++ b/Contrib/Mizzou/Intermediate_Algebra/Compound_Inequalities/P_01.pg @@ -11,14 +11,14 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -28,7 +28,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Interval"); Context()->strings->add("no solutions"=>{}, "no solution"=>{alias=>"no solutions"}); @@ -76,7 +76,7 @@ if ($swap == 1) { $tmp2 = $ans1; $ans1 = $ans2; $ans2 = $tmp2; - + $tmp3 = $dispansa; $dispansa = $dispansb; $dispansb = $tmp3; @@ -85,7 +85,7 @@ if ($swap == 1) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -98,7 +98,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ans1->cmp()); ANS($ans2->cmp()); @@ -117,12 +117,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.") \} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Intermediate_Algebra/Compound_Inequalities/P_01_02_03_04_Arbitrary.pg b/Contrib/Mizzou/Intermediate_Algebra/Compound_Inequalities/P_01_02_03_04_Arbitrary.pg index a7a5c4dc71..3a2d63cef9 100644 --- a/Contrib/Mizzou/Intermediate_Algebra/Compound_Inequalities/P_01_02_03_04_Arbitrary.pg +++ b/Contrib/Mizzou/Intermediate_Algebra/Compound_Inequalities/P_01_02_03_04_Arbitrary.pg @@ -11,14 +11,14 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -28,7 +28,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Interval"); Context()->strings->add("no solutions"=>{}, "no solution"=>{alias=>"no solutions"}); @@ -199,7 +199,7 @@ if ($swap == 1) { $tmp2 = $ans1; $ans1 = $ans2; $ans2 = $tmp2; - + $tmp3 = $dispansa; $dispansa = $dispansb; $dispansb = $tmp3; @@ -207,7 +207,7 @@ if ($swap == 1) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -220,7 +220,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ans1->cmp()); ANS($ans2->cmp()); @@ -239,12 +239,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.") \} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Intermediate_Algebra/Compound_Inequalities/P_02.pg b/Contrib/Mizzou/Intermediate_Algebra/Compound_Inequalities/P_02.pg index da69e41fbf..e5f59a6e0a 100644 --- a/Contrib/Mizzou/Intermediate_Algebra/Compound_Inequalities/P_02.pg +++ b/Contrib/Mizzou/Intermediate_Algebra/Compound_Inequalities/P_02.pg @@ -11,14 +11,14 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -28,7 +28,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Interval"); Context()->strings->add("no solutions"=>{}, "no solution"=>{alias=>"no solutions"}); @@ -74,7 +74,7 @@ if ($swap == 1) { $tmp2 = $ans1; $ans1 = $ans2; $ans2 = $tmp2; - + $tmp3 = $dispansa; $dispansa = $dispansb; $dispansb = $tmp3; @@ -83,7 +83,7 @@ if ($swap == 1) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -96,7 +96,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ans1->cmp()); ANS($ans2->cmp()); @@ -115,12 +115,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.") \} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Intermediate_Algebra/Compound_Inequalities/P_03.pg b/Contrib/Mizzou/Intermediate_Algebra/Compound_Inequalities/P_03.pg index 5090aa7752..0954120bc0 100644 --- a/Contrib/Mizzou/Intermediate_Algebra/Compound_Inequalities/P_03.pg +++ b/Contrib/Mizzou/Intermediate_Algebra/Compound_Inequalities/P_03.pg @@ -11,14 +11,14 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -28,7 +28,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Interval"); Context()->strings->add("no solutions"=>{}, "no solution"=>{alias=>"no solutions"}); @@ -78,7 +78,7 @@ if ($swap == 1) { $tmp2 = $ans1; $ans1 = $ans2; $ans2 = $tmp2; - + $tmp3 = $dispansa; $dispansa = $dispansb; $dispansb = $tmp3; @@ -87,7 +87,7 @@ if ($swap == 1) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -100,7 +100,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ans1->cmp()); ANS($ans2->cmp()); @@ -119,12 +119,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.") \} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Intermediate_Algebra/Compound_Inequalities/P_04.pg b/Contrib/Mizzou/Intermediate_Algebra/Compound_Inequalities/P_04.pg index 6543249422..23cb7c582c 100644 --- a/Contrib/Mizzou/Intermediate_Algebra/Compound_Inequalities/P_04.pg +++ b/Contrib/Mizzou/Intermediate_Algebra/Compound_Inequalities/P_04.pg @@ -11,14 +11,14 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -28,7 +28,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Interval"); Context()->strings->add("no solutions"=>{}, "no solution"=>{alias=>"no solutions"}); @@ -74,7 +74,7 @@ if ($swap == 1) { $tmp2 = $ans1; $ans1 = $ans2; $ans2 = $tmp2; - + $tmp3 = $dispansa; $dispansa = $dispansb; $dispansb = $tmp3; @@ -83,7 +83,7 @@ if ($swap == 1) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -96,7 +96,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ans1->cmp()); ANS($ans2->cmp()); @@ -115,12 +115,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.") \} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Intermediate_Algebra/Equations_Linear/Distribute4.pg b/Contrib/Mizzou/Intermediate_Algebra/Equations_Linear/Distribute4.pg index 3504102d02..88e1669603 100644 --- a/Contrib/Mizzou/Intermediate_Algebra/Equations_Linear/Distribute4.pg +++ b/Contrib/Mizzou/Intermediate_Algebra/Equations_Linear/Distribute4.pg @@ -4,9 +4,9 @@ ## KEYWORDS('linear', 'equations') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Algebra: Form and Function') -## DBchapter('Equations and Inequalities') +## DBchapter('Equations and Inequalities') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -26,7 +26,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGcourse.pl" ); @@ -95,12 +95,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Note:${EBOLD} Write ${BBOLD}no solutions${EBOLD} if no solutions exist or ${BBOLD}infinitely many${EBOLD} if there are infinitely many solutions. + ${BBOLD}Note:${EBOLD} Write ${BBOLD}no solutions${EBOLD} if no solutions exist or ${BBOLD}infinitely many${EBOLD} if there are infinitely many solutions. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Intermediate_Algebra/Equations_Linear/Distribute5.pg b/Contrib/Mizzou/Intermediate_Algebra/Equations_Linear/Distribute5.pg index 0114560b41..f31221784f 100644 --- a/Contrib/Mizzou/Intermediate_Algebra/Equations_Linear/Distribute5.pg +++ b/Contrib/Mizzou/Intermediate_Algebra/Equations_Linear/Distribute5.pg @@ -4,9 +4,9 @@ ## KEYWORDS('linear', 'equations') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Algebra: Form and Function') -## DBchapter('Equations and Inequalities') +## DBchapter('Equations and Inequalities') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGcourse.pl" ); @@ -83,7 +83,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Note:${EBOLD} Write ${BBOLD}no solutions${EBOLD} if no solutions exist or ${BBOLD}infinitely many${EBOLD} if there are infinitely many solutions. + ${BBOLD}Note:${EBOLD} Write ${BBOLD}no solutions${EBOLD} if no solutions exist or ${BBOLD}infinitely many${EBOLD} if there are infinitely many solutions. $BR END_TEXT } @@ -101,7 +101,7 @@ $showPartialCorrectAnswers = 1; ANS($answer->cmp(studentsMustReduceFractions=>1) ); -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Intermediate_Algebra/Equations_Linear/Distribute7.pg b/Contrib/Mizzou/Intermediate_Algebra/Equations_Linear/Distribute7.pg index 907cd06427..37a414552d 100644 --- a/Contrib/Mizzou/Intermediate_Algebra/Equations_Linear/Distribute7.pg +++ b/Contrib/Mizzou/Intermediate_Algebra/Equations_Linear/Distribute7.pg @@ -4,9 +4,9 @@ ## KEYWORDS('linear', 'equations') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Algebra: Form and Function') -## DBchapter('Equations and Inequalities') +## DBchapter('Equations and Inequalities') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGcourse.pl" ); @@ -97,12 +97,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Note:${EBOLD} Write ${BBOLD}no solutions${EBOLD} if no solutions exist or ${BBOLD}infinitely many${EBOLD} if there are infinitely many solutions. + ${BBOLD}Note:${EBOLD} Write ${BBOLD}no solutions${EBOLD} if no solutions exist or ${BBOLD}infinitely many${EBOLD} if there are infinitely many solutions. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Intermediate_Algebra/Equations_Linear/DistributeDecimals1.pg b/Contrib/Mizzou/Intermediate_Algebra/Equations_Linear/DistributeDecimals1.pg index 8cd5f39dfe..8345dca24d 100644 --- a/Contrib/Mizzou/Intermediate_Algebra/Equations_Linear/DistributeDecimals1.pg +++ b/Contrib/Mizzou/Intermediate_Algebra/Equations_Linear/DistributeDecimals1.pg @@ -4,9 +4,9 @@ ## KEYWORDS('linear', 'equations') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Algebra: Form and Function') -## DBchapter('Equations and Inequalities') +## DBchapter('Equations and Inequalities') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGcourse.pl" ); @@ -91,14 +91,14 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Note:${EBOLD} Write ${BBOLD}no solutions${EBOLD} if no solutions exist or ${BBOLD}infinitely many${EBOLD} if there are infinitely many solutions. + ${BBOLD}Note:${EBOLD} Write ${BBOLD}no solutions${EBOLD} if no solutions exist or ${BBOLD}infinitely many${EBOLD} if there are infinitely many solutions. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/Intermediate_Algebra/Equations_Linear/DistributeEq1a.pg b/Contrib/Mizzou/Intermediate_Algebra/Equations_Linear/DistributeEq1a.pg index b2dcc55e02..13e98743ea 100644 --- a/Contrib/Mizzou/Intermediate_Algebra/Equations_Linear/DistributeEq1a.pg +++ b/Contrib/Mizzou/Intermediate_Algebra/Equations_Linear/DistributeEq1a.pg @@ -4,9 +4,9 @@ ## KEYWORDS('linear', 'equations') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Algebra: Form and Function') -## DBchapter('Equations and Inequalities') +## DBchapter('Equations and Inequalities') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGcourse.pl" ); @@ -88,14 +88,14 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Note:${EBOLD} Write ${BBOLD}no solutions${EBOLD} if no solutions exist or ${BBOLD}infinitely many${EBOLD} if there are infinitely many solutions. + ${BBOLD}Note:${EBOLD} Write ${BBOLD}no solutions${EBOLD} if no solutions exist or ${BBOLD}infinitely many${EBOLD} if there are infinitely many solutions. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/Intermediate_Algebra/Equations_Linear/LinearEq1.pg b/Contrib/Mizzou/Intermediate_Algebra/Equations_Linear/LinearEq1.pg index 435f3a384c..20bb0ad6d8 100644 --- a/Contrib/Mizzou/Intermediate_Algebra/Equations_Linear/LinearEq1.pg +++ b/Contrib/Mizzou/Intermediate_Algebra/Equations_Linear/LinearEq1.pg @@ -4,9 +4,9 @@ ## KEYWORDS('linear', 'equations') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Algebra: Form and Function') -## DBchapter('Equations and Inequalities') +## DBchapter('Equations and Inequalities') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGcourse.pl" ); @@ -60,7 +60,7 @@ $answer = Fraction($num,$den); Context()->texStrings; BEGIN_TEXT -Solve the following equation for \($var\): +Solve the following equation for \($var\): $PAR \[ $eqn @@ -80,14 +80,14 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Note:${EBOLD} Write ${BBOLD}no solutions${EBOLD} if no solutions exist or ${BBOLD}infinitely many${EBOLD} if there are infinitely many solutions. + ${BBOLD}Note:${EBOLD} Write ${BBOLD}no solutions${EBOLD} if no solutions exist or ${BBOLD}infinitely many${EBOLD} if there are infinitely many solutions. $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/Intermediate_Algebra/Equations_Radical/Prob_01.pg b/Contrib/Mizzou/Intermediate_Algebra/Equations_Radical/Prob_01.pg index 86c1f984e0..4c00ff7791 100644 --- a/Contrib/Mizzou/Intermediate_Algebra/Equations_Radical/Prob_01.pg +++ b/Contrib/Mizzou/Intermediate_Algebra/Equations_Radical/Prob_01.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# +# # ENDDESCRIPTION ## DBsubject('Algebra') @@ -11,14 +11,14 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -29,7 +29,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Fraction-NoDecimals"); Context()->strings->add("no solution"=>{}); @@ -68,7 +68,7 @@ if ($case2 == 0) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -81,7 +81,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ansa->cmp(studentsMustReduceFractions=>1)); if ($case2 == 0) { @@ -89,7 +89,7 @@ if ($case2 == 0) { } else { $dansb = "\(x = $tmp\)"; ANS($ansb->cmp(studentsMustReduceFractions=>1)); -} +} ########################################################################### @@ -105,12 +105,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Note:$EBOLD Write your answer in exact form using square roots or radical notation if necessary. \{ AnswerFormatHelp("exponents", "Click here for help writing square roots.")\} If there is more than one correct answer, enter your answers as a comma separated list. If the equation has no real solution, write "No Solution." + ${BBOLD}Note:$EBOLD Write your answer in exact form using square roots or radical notation if necessary. \{ helpLink("exponents", "Click here for help writing square roots.")\} If there is more than one correct answer, enter your answers as a comma separated list. If the equation has no real solution, write "No Solution." $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Intermediate_Algebra/Equations_Radical/Prob_02.pg b/Contrib/Mizzou/Intermediate_Algebra/Equations_Radical/Prob_02.pg index 83e4c462d9..a247e8790d 100644 --- a/Contrib/Mizzou/Intermediate_Algebra/Equations_Radical/Prob_02.pg +++ b/Contrib/Mizzou/Intermediate_Algebra/Equations_Radical/Prob_02.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# +# # ENDDESCRIPTION ## DBsubject('Algebra') @@ -11,14 +11,14 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -29,7 +29,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Fraction-NoDecimals"); Context()->strings->add("no solution"=>{}); @@ -48,7 +48,7 @@ $ans = Fraction("(($d-$c)**3 - $b)/$a"); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -63,7 +63,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ans->cmp(studentsMustReduceFractions=>1)); @@ -81,12 +81,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Note:$EBOLD Write your answer in exact form using square roots or radical notation if necessary. \{ AnswerFormatHelp("exponents", "Click here for help writing square roots.")\} If there is more than one correct answer, enter your answers as a comma separated list. If the equation has no real solution, write "No Solution." + ${BBOLD}Note:$EBOLD Write your answer in exact form using square roots or radical notation if necessary. \{ helpLink("exponents", "Click here for help writing square roots.")\} If there is more than one correct answer, enter your answers as a comma separated list. If the equation has no real solution, write "No Solution." $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Intermediate_Algebra/Equations_Radical/Prob_03.pg b/Contrib/Mizzou/Intermediate_Algebra/Equations_Radical/Prob_03.pg index d75ecdba1b..df15d053bc 100644 --- a/Contrib/Mizzou/Intermediate_Algebra/Equations_Radical/Prob_03.pg +++ b/Contrib/Mizzou/Intermediate_Algebra/Equations_Radical/Prob_03.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# +# # ENDDESCRIPTION ## DBsubject('Algebra') @@ -11,14 +11,14 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -29,7 +29,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Fraction-NoDecimals"); Context()->strings->add("no solution"=>{}); @@ -73,7 +73,7 @@ if ($aq >= 0) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -88,7 +88,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### if (scalar(@ans) > 0) { $ans = List(@ans); @@ -113,12 +113,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Note:$EBOLD Write your answer in exact form using square roots or radical notation if necessary. \{ AnswerFormatHelp("exponents", "Click here for help writing square roots.")\} If there is more than one correct answer, enter your answers as a comma separated list. If the equation has no real solution, write "No Solution." + ${BBOLD}Note:$EBOLD Write your answer in exact form using square roots or radical notation if necessary. \{ helpLink("exponents", "Click here for help writing square roots.")\} If there is more than one correct answer, enter your answers as a comma separated list. If the equation has no real solution, write "No Solution." $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Intermediate_Algebra/Equations_Radical/Prob_04.pg b/Contrib/Mizzou/Intermediate_Algebra/Equations_Radical/Prob_04.pg index c5081f2e97..ad4ce24bd9 100644 --- a/Contrib/Mizzou/Intermediate_Algebra/Equations_Radical/Prob_04.pg +++ b/Contrib/Mizzou/Intermediate_Algebra/Equations_Radical/Prob_04.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# +# # ENDDESCRIPTION ## DBsubject('Algebra') @@ -11,14 +11,14 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -28,7 +28,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); Context()->strings->add("no solution"=>{}); @@ -42,7 +42,7 @@ $disp = ($p == 2) ? "-\sqrt{$a x} + $b = $c" : "-\sqrt[3]{$a x} + $b = $c"; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -57,7 +57,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ans->cmp()); @@ -75,12 +75,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Note:$EBOLD Write your answer in exact form using square roots or radical notation if necessary. \{ AnswerFormatHelp("exponents", "Click here for help writing square roots.")\} If there is more than one correct answer, enter your answers as a comma separated list. If the equation has no real solution, write "No Solution." + ${BBOLD}Note:$EBOLD Write your answer in exact form using square roots or radical notation if necessary. \{ helpLink("exponents", "Click here for help writing square roots.")\} If there is more than one correct answer, enter your answers as a comma separated list. If the equation has no real solution, write "No Solution." $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Intermediate_Algebra/Equations_Rational/8.pg b/Contrib/Mizzou/Intermediate_Algebra/Equations_Rational/8.pg index 4be3852ae4..7069667dc3 100644 --- a/Contrib/Mizzou/Intermediate_Algebra/Equations_Rational/8.pg +++ b/Contrib/Mizzou/Intermediate_Algebra/Equations_Rational/8.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical', 'equations') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Equations and Inequalities') -## DBchapter('Other Equations') +## DBchapter('Other Equations') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -99,7 +99,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); $showPartialCorrectAnswers = 1; diff --git a/Contrib/Mizzou/Intermediate_Algebra/Equations_Rational/AlwaysHasSolution11.pg b/Contrib/Mizzou/Intermediate_Algebra/Equations_Rational/AlwaysHasSolution11.pg index d41994f16e..e3efd75a6b 100644 --- a/Contrib/Mizzou/Intermediate_Algebra/Equations_Rational/AlwaysHasSolution11.pg +++ b/Contrib/Mizzou/Intermediate_Algebra/Equations_Rational/AlwaysHasSolution11.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical', 'equations') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Equations and Inequalities') -## DBchapter('Other Equations') +## DBchapter('Other Equations') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -118,7 +118,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); $showPartialCorrectAnswers = 1; COMMENT('MathObject version', 'Features PeriodicRerandomization'); diff --git a/Contrib/Mizzou/Intermediate_Algebra/Equations_Rational/Eq1.pg b/Contrib/Mizzou/Intermediate_Algebra/Equations_Rational/Eq1.pg index 24da3f7c9b..960340c3dc 100644 --- a/Contrib/Mizzou/Intermediate_Algebra/Equations_Rational/Eq1.pg +++ b/Contrib/Mizzou/Intermediate_Algebra/Equations_Rational/Eq1.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical', 'equations') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Equations and Inequalities') -## DBchapter('Other Equations') +## DBchapter('Other Equations') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -97,7 +97,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/Intermediate_Algebra/Equations_Rational/Eq2.pg b/Contrib/Mizzou/Intermediate_Algebra/Equations_Rational/Eq2.pg index d4c833f151..e1c683a21e 100644 --- a/Contrib/Mizzou/Intermediate_Algebra/Equations_Rational/Eq2.pg +++ b/Contrib/Mizzou/Intermediate_Algebra/Equations_Rational/Eq2.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical', 'equations') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Equations and Inequalities') -## DBchapter('Other Equations') +## DBchapter('Other Equations') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -101,7 +101,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/Intermediate_Algebra/Equations_Rational/Eq3.pg b/Contrib/Mizzou/Intermediate_Algebra/Equations_Rational/Eq3.pg index bd2f4ef82c..46e8f71b24 100644 --- a/Contrib/Mizzou/Intermediate_Algebra/Equations_Rational/Eq3.pg +++ b/Contrib/Mizzou/Intermediate_Algebra/Equations_Rational/Eq3.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical', 'equations') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Equations and Inequalities') -## DBchapter('Other Equations') +## DBchapter('Other Equations') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -87,7 +87,7 @@ END_TEXT if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR - ${BBOLD}Answer:${EBOLD} + ${BBOLD}Answer:${EBOLD} \($var = $ans\) $PAR END_TEXT @@ -99,7 +99,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('MathObject version', 'Features PeriodicRerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Intermediate_Algebra/Equations_Rational/Eq4.pg b/Contrib/Mizzou/Intermediate_Algebra/Equations_Rational/Eq4.pg index df97e01d1a..7c8c96a550 100644 --- a/Contrib/Mizzou/Intermediate_Algebra/Equations_Rational/Eq4.pg +++ b/Contrib/Mizzou/Intermediate_Algebra/Equations_Rational/Eq4.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical', 'equations') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Equations and Inequalities') -## DBchapter('Other Equations') +## DBchapter('Other Equations') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -98,7 +98,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); $showPartialCorrectAnswers = 1; COMMENT('MathObject version', 'Features PeriodicRerandomization'); diff --git a/Contrib/Mizzou/Intermediate_Algebra/Equations_Rational/Eq5.pg b/Contrib/Mizzou/Intermediate_Algebra/Equations_Rational/Eq5.pg index 4f0ea936a1..3341e89cb4 100644 --- a/Contrib/Mizzou/Intermediate_Algebra/Equations_Rational/Eq5.pg +++ b/Contrib/Mizzou/Intermediate_Algebra/Equations_Rational/Eq5.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical', 'equations') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Equations and Inequalities') -## DBchapter('Other Equations') +## DBchapter('Other Equations') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -116,7 +116,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); $showPartialCorrectAnswers = 1; diff --git a/Contrib/Mizzou/Intermediate_Algebra/Equations_Rational/PossiblyNoSolution.pg b/Contrib/Mizzou/Intermediate_Algebra/Equations_Rational/PossiblyNoSolution.pg index c9c0197ec2..74d8a420ac 100644 --- a/Contrib/Mizzou/Intermediate_Algebra/Equations_Rational/PossiblyNoSolution.pg +++ b/Contrib/Mizzou/Intermediate_Algebra/Equations_Rational/PossiblyNoSolution.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical', 'equations') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Equations and Inequalities') -## DBchapter('Other Equations') +## DBchapter('Other Equations') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -117,7 +117,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); $showPartialCorrectAnswers = 1; diff --git a/Contrib/Mizzou/Intermediate_Algebra/Equations_Rational/alwaysHasSolution10.pg b/Contrib/Mizzou/Intermediate_Algebra/Equations_Rational/alwaysHasSolution10.pg index d96b92a0cc..b931c51fa8 100644 --- a/Contrib/Mizzou/Intermediate_Algebra/Equations_Rational/alwaysHasSolution10.pg +++ b/Contrib/Mizzou/Intermediate_Algebra/Equations_Rational/alwaysHasSolution10.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical', 'equations') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Equations and Inequalities') -## DBchapter('Other Equations') +## DBchapter('Other Equations') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -116,7 +116,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); $showPartialCorrectAnswers = 1; COMMENT('MathObject version', 'Features PeriodicRerandomization'); diff --git a/Contrib/Mizzou/Intermediate_Algebra/Exponent_Laws/Neg_One_Power.pg b/Contrib/Mizzou/Intermediate_Algebra/Exponent_Laws/Neg_One_Power.pg index 8a0da1c2ca..3663ca9860 100644 --- a/Contrib/Mizzou/Intermediate_Algebra/Exponent_Laws/Neg_One_Power.pg +++ b/Contrib/Mizzou/Intermediate_Algebra/Exponent_Laws/Neg_One_Power.pg @@ -11,14 +11,14 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "contextLimitedPowers.pl", "PGcourse.pl" ); @@ -29,7 +29,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @vars = ("x","y","z","s","t"); @@ -52,7 +52,7 @@ Context()->operators->undefine("^","**"); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -65,7 +65,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ansa->cmp()); ANS($ansb->cmp()); @@ -84,12 +84,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("formulas", "Click here for help entering formulas as answers.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("formulas", "Click here for help entering formulas as answers.")\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Intermediate_Algebra/Factoring_Substitution/LinearSub1.pg b/Contrib/Mizzou/Intermediate_Algebra/Factoring_Substitution/LinearSub1.pg index 5b9631cc8a..27823ab439 100644 --- a/Contrib/Mizzou/Intermediate_Algebra/Factoring_Substitution/LinearSub1.pg +++ b/Contrib/Mizzou/Intermediate_Algebra/Factoring_Substitution/LinearSub1.pg @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "PeriodicRerandomization.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "contextLimitedPolynomial.pl", "PGcourse.pl" @@ -90,11 +90,11 @@ $multians = MultiAnswer($fac1, $fac2)->with( # Main text Context()->texStrings; BEGIN_TEXT -Factor the expression and simplify your +Factor the expression and simplify your answer as much as possible: $PAR ${BCENTER} -$expression \(= \) +$expression \(= \) \( \big( \) \{ $multians->ans_rule(20) \} \( \big) \big( \) @@ -116,11 +116,11 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { $texanswer $PAR END_TEXT -} +} Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ diff --git a/Contrib/Mizzou/Intermediate_Algebra/Linear_Inequalities/Basic_01.pg b/Contrib/Mizzou/Intermediate_Algebra/Linear_Inequalities/Basic_01.pg index 609fb39074..3d6e3fd2bf 100644 --- a/Contrib/Mizzou/Intermediate_Algebra/Linear_Inequalities/Basic_01.pg +++ b/Contrib/Mizzou/Intermediate_Algebra/Linear_Inequalities/Basic_01.pg @@ -11,14 +11,14 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -28,7 +28,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Interval"); $a = random(2,15); @@ -71,7 +71,7 @@ if ($case == 0) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -86,7 +86,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ans->cmp()); @@ -104,12 +104,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Intermediate_Algebra/Linear_Inequalities/Basic_01_alwaysneg.pg b/Contrib/Mizzou/Intermediate_Algebra/Linear_Inequalities/Basic_01_alwaysneg.pg index 24fff24ff5..07e079ca8d 100644 --- a/Contrib/Mizzou/Intermediate_Algebra/Linear_Inequalities/Basic_01_alwaysneg.pg +++ b/Contrib/Mizzou/Intermediate_Algebra/Linear_Inequalities/Basic_01_alwaysneg.pg @@ -11,14 +11,14 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -28,7 +28,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Interval"); $a = random(2,15); @@ -71,7 +71,7 @@ if ($case == 0) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -86,7 +86,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ans->cmp()); @@ -104,12 +104,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Intermediate_Algebra/Linear_Inequalities/Basic_02.pg b/Contrib/Mizzou/Intermediate_Algebra/Linear_Inequalities/Basic_02.pg index f5c98b3352..561d9005e8 100644 --- a/Contrib/Mizzou/Intermediate_Algebra/Linear_Inequalities/Basic_02.pg +++ b/Contrib/Mizzou/Intermediate_Algebra/Linear_Inequalities/Basic_02.pg @@ -11,14 +11,14 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -28,7 +28,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Interval"); $a = random(2,8,1); @@ -72,7 +72,7 @@ if ($d < 0) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -87,7 +87,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ans->cmp()); @@ -105,12 +105,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Intermediate_Algebra/Linear_Inequalities/Basic_03.pg b/Contrib/Mizzou/Intermediate_Algebra/Linear_Inequalities/Basic_03.pg index 613d9ec33c..1434ecf70f 100644 --- a/Contrib/Mizzou/Intermediate_Algebra/Linear_Inequalities/Basic_03.pg +++ b/Contrib/Mizzou/Intermediate_Algebra/Linear_Inequalities/Basic_03.pg @@ -11,14 +11,14 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -28,7 +28,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Interval"); $a = random(2,5); @@ -101,7 +101,7 @@ if ($b == 1) { $dispineq = "\displaystyle \frac{$a + x}{$d1}"; } else { $dispineq = "\displaystyle \frac{$a - $b x}{$d1}"; -} +} if ($d == 1) { $dispineq = $dispineq."- \frac{$c - x}{$d2} $sign $r"; @@ -113,7 +113,7 @@ if ($d == 1) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -128,7 +128,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ans->cmp()); @@ -146,12 +146,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Intermediate_Algebra/Linear_Inequalities/Basic_04.pg b/Contrib/Mizzou/Intermediate_Algebra/Linear_Inequalities/Basic_04.pg index f2b1d8bf5d..429095118a 100644 --- a/Contrib/Mizzou/Intermediate_Algebra/Linear_Inequalities/Basic_04.pg +++ b/Contrib/Mizzou/Intermediate_Algebra/Linear_Inequalities/Basic_04.pg @@ -11,14 +11,14 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -28,7 +28,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Interval"); $a1 = random(2,7); @@ -39,7 +39,7 @@ do {$d1 = random(2,5)*random(-1,1,2)} until ($d1 != -$a1*$b1); $a2 = random(2,7); $b2 = random(-1,1,2)*random(2,5); $c2 = random(2,6); -do {$d2 = non_zero_random(-7,7)} until (gcd($d2,$c2) == 1); +do {$d2 = non_zero_random(-7,7)} until (gcd($d2,$c2) == 1); do {$e2 = non_zero_random(-7,7)} until ($a1*$b1 + $d1 != $b2*$c2 + $e2 && $e2 != -$b2*$c2); for ($i = 0; $i < random(10,50); $i++) { @@ -108,7 +108,7 @@ if ($e2 == 1) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -123,7 +123,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ans->cmp()); @@ -141,12 +141,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Intermediate_Algebra/Linear_Inequalities/Basic_05.pg b/Contrib/Mizzou/Intermediate_Algebra/Linear_Inequalities/Basic_05.pg index 175d163a05..7edb8ab83f 100644 --- a/Contrib/Mizzou/Intermediate_Algebra/Linear_Inequalities/Basic_05.pg +++ b/Contrib/Mizzou/Intermediate_Algebra/Linear_Inequalities/Basic_05.pg @@ -11,14 +11,14 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -28,7 +28,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Interval"); $d1 = random(2,4); @@ -107,7 +107,7 @@ if ($a1 == 1) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -122,7 +122,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ans->cmp()); @@ -140,12 +140,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Intermediate_Algebra/NPL_Files/15IntAlg_13_ProblemSolve.pg b/Contrib/Mizzou/Intermediate_Algebra/NPL_Files/15IntAlg_13_ProblemSolve.pg index 8a06cf2d64..893c1abb5d 100644 --- a/Contrib/Mizzou/Intermediate_Algebra/NPL_Files/15IntAlg_13_ProblemSolve.pg +++ b/Contrib/Mizzou/Intermediate_Algebra/NPL_Files/15IntAlg_13_ProblemSolve.pg @@ -1,6 +1,6 @@ ##DESCRIPTION ## Word problem -## +## ##ENDDESCRIPTION ## DBsubject('Intermediate Algebra') ## DBchapter('Ch 01: Algebra, Mathematical Models and Problem Solving') @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "parserMultiAnswer.pl", "PGunion.pl", @@ -74,8 +74,8 @@ $multians = MultiAnswer($num, $den)->with( my ( $correct, $student, $self ) = @_; my ( $f1stu, $f2stu ) = @{$student}; my ( $f1, $f2 ) = @{$correct}; - - if ( ( $f1==$f1stu && $f2==$f2stu) || + + if ( ( $f1==$f1stu && $f2==$f2stu) || (-$f1==$f1stu && -$f2==$f2stu) ) { return [1,1]; } elsif ( $f1==$f1stu || -$f1==$f1stu) { @@ -148,10 +148,10 @@ else { Write your answer as a single fraction, and type the numerator and denominator separately in the answer blanks provided. $PAR END_TEXT -} +} Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Intermediate_Algebra/NPL_Files/15IntAlg_15_ProblemSolve.pg b/Contrib/Mizzou/Intermediate_Algebra/NPL_Files/15IntAlg_15_ProblemSolve.pg index f18df78fa1..b4b6387632 100644 --- a/Contrib/Mizzou/Intermediate_Algebra/NPL_Files/15IntAlg_15_ProblemSolve.pg +++ b/Contrib/Mizzou/Intermediate_Algebra/NPL_Files/15IntAlg_15_ProblemSolve.pg @@ -1,6 +1,6 @@ ##DESCRIPTION ## Word problem -## +## ##ENDDESCRIPTION ## DBsubject('Intermediate Algebra') ## DBchapter('Ch 01: Algebra, Mathematical Models and Problem Solving') @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "parserMultiAnswer.pl", "PGunion.pl", @@ -68,8 +68,8 @@ $multians = MultiAnswer($num, $den)->with( my ( $correct, $student, $self ) = @_; my ( $f1stu, $f2stu ) = @{$student}; my ( $f1, $f2 ) = @{$correct}; - - if ( ( $f1==$f1stu && $f2==$f2stu) || + + if ( ( $f1==$f1stu && $f2==$f2stu) || (-$f1==$f1stu && -$f2==$f2stu) ) { return [1,1]; } elsif ( $f1==$f1stu || -$f1==$f1stu) { @@ -142,9 +142,9 @@ else { Write your answer as a single fraction, and type the numerator and denominator separately in the answer blanks provided. $PAR END_TEXT -} +} Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Intermediate_Algebra/NPL_Files/15IntAlg_17_ProblemSolve.pg b/Contrib/Mizzou/Intermediate_Algebra/NPL_Files/15IntAlg_17_ProblemSolve.pg index 73c88447f5..22dc1596e7 100644 --- a/Contrib/Mizzou/Intermediate_Algebra/NPL_Files/15IntAlg_17_ProblemSolve.pg +++ b/Contrib/Mizzou/Intermediate_Algebra/NPL_Files/15IntAlg_17_ProblemSolve.pg @@ -1,6 +1,6 @@ ##DESCRIPTION ## Word problem -## +## ##ENDDESCRIPTION ## DBsubject('Intermediate Algebra') ## DBchapter('Ch 01: Algebra, Mathematical Models and Problem Solving') @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "parserMultiAnswer.pl", "PGunion.pl", @@ -71,8 +71,8 @@ $multians = MultiAnswer($num, $den)->with( my ( $correct, $student, $self ) = @_; my ( $f1stu, $f2stu ) = @{$student}; my ( $f1, $f2 ) = @{$correct}; - - if ( ( $f1==$f1stu && $f2==$f2stu) || + + if ( ( $f1==$f1stu && $f2==$f2stu) || (-$f1==$f1stu && -$f2==$f2stu) ) { return [1,1]; } elsif ( $f1==$f1stu || -$f1==$f1stu) { @@ -145,9 +145,9 @@ else { Write your answer as a single fraction, and type the numerator and denominator separately in the answer blanks provided. $PAR END_TEXT -} +} Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Intermediate_Algebra/NPL_Files/15IntAlg_18_ProblemSolve.pg b/Contrib/Mizzou/Intermediate_Algebra/NPL_Files/15IntAlg_18_ProblemSolve.pg index 8d9b32b808..9ca6797902 100644 --- a/Contrib/Mizzou/Intermediate_Algebra/NPL_Files/15IntAlg_18_ProblemSolve.pg +++ b/Contrib/Mizzou/Intermediate_Algebra/NPL_Files/15IntAlg_18_ProblemSolve.pg @@ -1,6 +1,6 @@ ##DESCRIPTION ## Word problem -## +## ##ENDDESCRIPTION ## DBsubject('Intermediate Algebra') ## DBchapter('Ch 01: Algebra, Mathematical Models and Problem Solving') @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "parserMultiAnswer.pl", "PGunion.pl", @@ -68,8 +68,8 @@ $multians = MultiAnswer($num, $den)->with( my ( $correct, $student, $self ) = @_; my ( $f1stu, $f2stu ) = @{$student}; my ( $f1, $f2 ) = @{$correct}; - - if ( ( $f1==$f1stu && $f2==$f2stu) || + + if ( ( $f1==$f1stu && $f2==$f2stu) || (-$f1==$f1stu && -$f2==$f2stu) ) { return [1,1]; } elsif ( $f1==$f1stu || -$f1==$f1stu) { @@ -142,9 +142,9 @@ else { Write your answer as a single fraction, and type the numerator and denominator separately in the answer blanks provided. $PAR END_TEXT -} +} Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_03_CompoundIneq.pg b/Contrib/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_03_CompoundIneq.pg index db109b6ba7..07468a31a5 100644 --- a/Contrib/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_03_CompoundIneq.pg +++ b/Contrib/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_03_CompoundIneq.pg @@ -1,6 +1,6 @@ ##DESCRIPTION ## Compound Inequalities -## +## ##ENDDESCRIPTION ## DBsubject('Intermediate Algebra') ## DBchapter('Ch 04: Inequalities and Problem Solving') @@ -25,7 +25,7 @@ loadMacros( "PGnauGraphics.pl", "contextInequalitiesAllowStrings.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -73,7 +73,7 @@ do { } until ($i > 5); add_functions( $graph,$f,$g); - + ###################################### # Main text @@ -96,10 +96,10 @@ END_TEXT Context("Interval"); Context()->strings->add(empty=>{}, "no solutions"=>{}, "no solution"=>{alias=>"no solutions"}); $ans_a = Union(Interval("(-infinity,$a]"),Interval("[$b,infinity)")); -ANS($ans_a->cmp); +ANS($ans_a->cmp); $ans_b = String("no solutions"); -ANS($ans_b->cmp); +ANS($ans_b->cmp); $showPartialCorrectAnswers = 1; @@ -117,12 +117,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} Type ${BBOLD}no solutions${EBOLD} if no such interval exists. \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} Type ${BBOLD}no solutions${EBOLD} if no such interval exists. \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_04_CompoundIneq.pg b/Contrib/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_04_CompoundIneq.pg index b8e2acde2a..96947d8745 100644 --- a/Contrib/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_04_CompoundIneq.pg +++ b/Contrib/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_04_CompoundIneq.pg @@ -1,6 +1,6 @@ ##DESCRIPTION ## Compound Inequalities -## +## ##ENDDESCRIPTION ## DBsubject('Intermediate Algebra') ## DBchapter('Ch 04: Inequalities and Problem Solving') @@ -24,7 +24,7 @@ loadMacros( "PGgraphmacros.pl", "PGnauGraphics.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -35,7 +35,7 @@ PeriodicRerandomization("3"); ###################################### # Setup -$a = random(1,4,1); +$a = random(1,4,1); $b = random(-4,0,1); @interval = ("<-6,$a]","($b,6>","<-6,$a)","[$b,6>"); @@ -73,7 +73,7 @@ do { } until ($i > 5); add_functions( $graph,$f,$g); - + ###################################### # Main text @@ -119,12 +119,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} Type ${BBOLD}no solutions${EBOLD} if no such interval exists. \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} Type ${BBOLD}no solutions${EBOLD} if no such interval exists. \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_05_CompoundIneq.pg b/Contrib/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_05_CompoundIneq.pg index 089a7432bc..7c60196fbd 100644 --- a/Contrib/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_05_CompoundIneq.pg +++ b/Contrib/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_05_CompoundIneq.pg @@ -1,6 +1,6 @@ ##DESCRIPTION ## Compound Inequalities -## +## ##ENDDESCRIPTION ## DBsubject('Intermediate Algebra') ## DBchapter('Ch 04: Inequalities and Problem Solving') @@ -24,7 +24,7 @@ loadMacros( "PGgraphmacros.pl", "PGnauGraphics.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -72,7 +72,7 @@ do { } until ($i > 5); add_functions( $graph,$f,$g); - + ###################################### # Main text @@ -101,7 +101,7 @@ ANS($ansa->cmp()); @ans_b = ("(-infinity,$a]","[$b,infinity)"); $ansb = Interval($ans_b[$choose/2]); -ANS($ansb->cmp); +ANS($ansb->cmp); $showPartialCorrectAnswers = 1; @@ -119,7 +119,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} Type ${BBOLD}no solutions${EBOLD} if no such interval exists. \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} Type ${BBOLD}no solutions${EBOLD} if no such interval exists. \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT } diff --git a/Contrib/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_07_CompoundIneq.pg b/Contrib/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_07_CompoundIneq.pg index 9e27cf4eb6..14222f7fbe 100644 --- a/Contrib/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_07_CompoundIneq.pg +++ b/Contrib/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_07_CompoundIneq.pg @@ -1,6 +1,6 @@ ##DESCRIPTION ## Compound Inequalities -## +## ##ENDDESCRIPTION ## DBsubject('Intermediate Algebra') ## DBchapter('Ch 04: Inequalities and Problem Solving') @@ -24,7 +24,7 @@ loadMacros( "PGgraphmacros.pl", "PGnauGraphics.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -72,7 +72,7 @@ do { } until ($i > 5); add_functions( $graph,$f,$g); - + ###################################### # Main text @@ -96,10 +96,10 @@ Context("Interval"); Context()->strings->add(empty=>{}, "no solutions"=>{}, "no solution"=>{alias=>"no solutions"}); $ans_a = Union(Interval("(-infinity,$a]"),Interval("[$b,infinity)")); -ANS($ans_a->cmp); +ANS($ans_a->cmp); $ans_b = String("no solutions"); -ANS($ans_b->cmp); +ANS($ans_b->cmp); $showPartialCorrectAnswers = 1; @@ -117,7 +117,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} Type ${BBOLD}no solutions${EBOLD} if no such interval exists. \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} Type ${BBOLD}no solutions${EBOLD} if no such interval exists. \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT } diff --git a/Contrib/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_12_CompoundIneq.pg b/Contrib/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_12_CompoundIneq.pg index 117f377d66..17b86848be 100644 --- a/Contrib/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_12_CompoundIneq.pg +++ b/Contrib/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_12_CompoundIneq.pg @@ -1,6 +1,6 @@ ##DESCRIPTION ## Compound Inequalities -## +## ##ENDDESCRIPTION ## DBsubject('Intermediate Algebra') ## DBchapter('Ch 04: Inequalities and Problem Solving') @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "contextInequalities.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -44,7 +44,7 @@ $f = $n*$b+$d; @inequal = ("x -$c \geq $e","$n x + $d < $f" ); @slice = NchooseK(2,2); - + ###################################### # Main text @@ -60,8 +60,8 @@ END_TEXT Context("Interval")->strings->add("no solutions"=>{}, "no solution"=>{alias=>{"no solutions"}}); $ans = Compute("[$a,$b)"); -ANS($ans->cmp); - +ANS($ans->cmp); + $showPartialCorrectAnswers = 1; Context()->texStrings; ########################################################################### @@ -77,7 +77,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT } diff --git a/Contrib/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_13_CompoundIneq.pg b/Contrib/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_13_CompoundIneq.pg index 3c339b6c3f..420eb9614d 100644 --- a/Contrib/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_13_CompoundIneq.pg +++ b/Contrib/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_13_CompoundIneq.pg @@ -1,6 +1,6 @@ ##DESCRIPTION ## Compound Inequalities -## +## ##ENDDESCRIPTION ## DBsubject('Intermediate Algebra') ## DBchapter('Ch 04: Inequalities and Problem Solving') @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "contextInequalities.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -45,7 +45,7 @@ $f = ($b-$d); @inequal = ("$m($c-x) < $e","\displaystyle \frac{x - $d}{$n} \leq \frac{$f}{$n}" ); @slice = NchooseK(2,2); - + ###################################### # Main text @@ -63,7 +63,7 @@ Context()->strings->add("No solution"=>{}); if ($a>$b) {$ans = String("no solutions"); $dispans = "no solutions"} else {$ans = Compute("($a,$b]"); $dispans = "\($ans\)"}; -ANS($ans->cmp); +ANS($ans->cmp); $showPartialCorrectAnswers = 1; @@ -80,7 +80,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT } diff --git a/Contrib/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_21_CompoundIneq.pg b/Contrib/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_21_CompoundIneq.pg index 066340fc1e..d9a1018161 100644 --- a/Contrib/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_21_CompoundIneq.pg +++ b/Contrib/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_21_CompoundIneq.pg @@ -1,6 +1,6 @@ ##DESCRIPTION ## Compound Inequalities -## +## ##ENDDESCRIPTION ## DBsubject('Intermediate Algebra') ## DBchapter('Ch 04: Inequalities and Problem Solving') @@ -22,7 +22,7 @@ loadMacros( "PGchoicemacros.pl", "MathObjects.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -39,7 +39,7 @@ do {$b = random(1,9,1);} while ($a==$b); @inequal = ("x < $a","x > $b" ); @slice = NchooseK(2,2); - + ###################################### # Main text @@ -55,7 +55,7 @@ END_TEXT Context("Interval")->strings->add("no solutions"=>{}, "no solution"=>{alias=>{"no solutions"}}); $ans = Compute("(-inf,$a)U($b,inf)")->reduce; -ANS($ans->cmp); +ANS($ans->cmp); Context()->texStrings; $showPartialCorrectAnswers = 1; @@ -72,7 +72,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT } diff --git a/Contrib/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_22_CompoundIneq.pg b/Contrib/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_22_CompoundIneq.pg index a3ec7e10b0..6b73b7eeb3 100644 --- a/Contrib/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_22_CompoundIneq.pg +++ b/Contrib/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_22_CompoundIneq.pg @@ -1,6 +1,6 @@ ##DESCRIPTION ## Compound Inequalities -## +## ##ENDDESCRIPTION ## DBsubject('Intermediate Algebra') ## DBchapter('Ch 04: Inequalities and Problem Solving') @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "contextInequalities.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -43,7 +43,7 @@ $bd = $b*$d; @inequal = ("$c x < $ac","$d x > $bd" ); @slice = NchooseK(2,2); - + ###################################### # Main text @@ -60,9 +60,9 @@ END_TEXT Context("Interval")->strings->add("no solutions"=>{}, "no solution"=>{alias=>{"no solutions"}}); -$ans = Compute("(-inf,$a)"); +$ans = Compute("(-inf,$a)"); if ($a<$b) {$ans = Compute("(-inf,$b)");} -ANS($ans->cmp); +ANS($ans->cmp); $showPartialCorrectAnswers = 1; Context()->texStrings; @@ -79,12 +79,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_23_CompoundIneq.pg b/Contrib/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_23_CompoundIneq.pg index 83509810a2..08cab09261 100644 --- a/Contrib/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_23_CompoundIneq.pg +++ b/Contrib/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_23_CompoundIneq.pg @@ -1,6 +1,6 @@ ##DESCRIPTION ## Compound Inequalities -## +## ##ENDDESCRIPTION ## DBsubject('Intermediate Algebra') ## DBchapter('Ch 04: Inequalities and Problem Solving') @@ -22,7 +22,7 @@ loadMacros( "PGchoicemacros.pl", "MathObjects.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -43,7 +43,7 @@ $f = $n*$b+$d; @inequal = ("x ? {$c} \leq $e","$n x ? {$d} > $f" ); @slice = NchooseK(2,2); - + ###################################### # Main text @@ -59,7 +59,7 @@ END_TEXT Context("Interval")->strings->add("no solutions"=>{}, "no solution"=>{alias=>{"no solutions"}}); $ans = Compute("(-inf,$a] U ($b,inf)")->reduce; -ANS($ans->cmp); +ANS($ans->cmp); $showPartialCorrectAnswers = 1; @@ -77,7 +77,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT } diff --git a/Contrib/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_24_CompoundIneq.pg b/Contrib/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_24_CompoundIneq.pg index 908c8efa62..3ec04bdb23 100644 --- a/Contrib/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_24_CompoundIneq.pg +++ b/Contrib/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_24_CompoundIneq.pg @@ -1,6 +1,6 @@ ##DESCRIPTION ## Compound Inequalities -## +## ##ENDDESCRIPTION ## DBsubject('Intermediate Algebra') ## DBchapter('Ch 04: Inequalities and Problem Solving') @@ -22,7 +22,7 @@ loadMacros( "PGchoicemacros.pl", "MathObjects.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -48,7 +48,7 @@ $exp = nicestring([$f,$g],["","x"]); @inequal = ("$c ? {$m} x > $e","$p x ? {$d} > $exp" ); @slice = NchooseK(2,2); - + ###################################### # Main text @@ -64,8 +64,8 @@ END_TEXT Context("Interval")->strings->add("no solutions"=>{}, "no solution"=>{alias=>{"no solutions"}}); $ans = Compute("(-inf,$a)U($b,inf)"); -ANS($ans->cmp); - +ANS($ans->cmp); + $showPartialCorrectAnswers = 1; Context()->texStrings; @@ -82,7 +82,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT } diff --git a/Contrib/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_25_CompoundIneq.pg b/Contrib/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_25_CompoundIneq.pg index 75c79100cd..92f2ef07ae 100644 --- a/Contrib/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_25_CompoundIneq.pg +++ b/Contrib/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_25_CompoundIneq.pg @@ -1,6 +1,6 @@ ##DESCRIPTION ## Compound Inequalities -## +## ##ENDDESCRIPTION ## DBsubject('Intermediate Algebra') ## DBchapter('Ch 04: Inequalities and Problem Solving') @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "PGchoicemacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGcourse.pl" ); @@ -51,7 +51,7 @@ $endpt2 = ($g+$d)/(1-$f); @slice = NchooseK(2,2); for ($i = 0; $i < random(10,50); $i++) { $case = random(0,1,1); -} +} $word = ($case == 0) ? "and" : "or"; if ($case == 0) { $num1 = ($e - $c)/gcd($e-$c,$n); @@ -72,7 +72,7 @@ if ($case == 0) { $dispans = "\($ans\)"; } - + ###################################### # Main text @@ -85,7 +85,7 @@ END_TEXT ###################################### # Answer -ANS($ans->cmp(tolerance=>0.00000001, tolType=>'absolute')); +ANS($ans->cmp(tolerance=>0.00000001, tolType=>'absolute')); $showPartialCorrectAnswers = 1; @@ -103,7 +103,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT } diff --git a/Contrib/Mizzou/Intermediate_Algebra/NPL_Files/Inequalities/41IntAlg_22_LinearIneq.pg b/Contrib/Mizzou/Intermediate_Algebra/NPL_Files/Inequalities/41IntAlg_22_LinearIneq.pg index 9131c52ff0..e09d644e4e 100644 --- a/Contrib/Mizzou/Intermediate_Algebra/NPL_Files/Inequalities/41IntAlg_22_LinearIneq.pg +++ b/Contrib/Mizzou/Intermediate_Algebra/NPL_Files/Inequalities/41IntAlg_22_LinearIneq.pg @@ -1,6 +1,6 @@ ##DESCRIPTION ## Linear Inequalities -## +## ##ENDDESCRIPTION ## DBsubject('Intermediate Algebra') ## DBchapter('Ch 04: Inequalities and Problem Solving') @@ -23,7 +23,7 @@ loadMacros( "contextInequalitiesAllowStrings.pl", "answerHints.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -91,12 +91,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{ AnswerFormatHelp("intervals","Click here for help entering intervals as answers.") \} + ${BBOLD}Help:${EBOLD} \{ helpLink("intervals","Click here for help entering intervals as answers.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Intermediate_Algebra/NPL_Files/Word_Problems/lh1-3_54.pg b/Contrib/Mizzou/Intermediate_Algebra/NPL_Files/Word_Problems/lh1-3_54.pg index 6dc8f7df2c..9f15dfbe6a 100644 --- a/Contrib/Mizzou/Intermediate_Algebra/NPL_Files/Word_Problems/lh1-3_54.pg +++ b/Contrib/Mizzou/Intermediate_Algebra/NPL_Files/Word_Problems/lh1-3_54.pg @@ -17,13 +17,13 @@ ##Section1('') ##Problem1('') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PeriodicRerandomization.pl", "contextInequalities.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -90,7 +90,7 @@ do { BEGIN_TEXT -Madoka has scores \($a\), \($b\), and \($c\), each out of \($test\) points, on her algebra tests. Use an inequality to find the score she must make on the final exam to pass the course with an average of $percentc percent or higher, given that the final is worth \($final\) points. +Madoka has scores \($a\), \($b\), and \($c\), each out of \($test\) points, on her algebra tests. Use an inequality to find the score she must make on the final exam to pass the course with an average of $percentc percent or higher, given that the final is worth \($final\) points. $PAR Minimum score needed on the final exam: \{ans_rule(20) \} out of \($final\) points END_TEXT @@ -105,7 +105,7 @@ ANS(Compute($ans)->cmp(tolerance => 0.01, tolType => absolute)); if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR - ${BBOLD}Answer:${EBOLD} \($tmp \) + ${BBOLD}Answer:${EBOLD} \($tmp \) $PAR END_TEXT } else { @@ -114,7 +114,7 @@ $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Intermediate_Algebra/Radicals/Evaluate_Function_Sqrt.pg b/Contrib/Mizzou/Intermediate_Algebra/Radicals/Evaluate_Function_Sqrt.pg index 587c9db489..04b7021bb5 100644 --- a/Contrib/Mizzou/Intermediate_Algebra/Radicals/Evaluate_Function_Sqrt.pg +++ b/Contrib/Mizzou/Intermediate_Algebra/Radicals/Evaluate_Function_Sqrt.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# +# # ENDDESCRIPTION ## DBsubject('Algebra') @@ -11,7 +11,7 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( @@ -20,7 +20,7 @@ loadMacros( "PeriodicRerandomization.pl", "contextLimitedPowers.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -53,7 +53,7 @@ package main; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); Context()->functions->set(sqrt=>{class=>'my::Function::numeric'}); @@ -93,7 +93,7 @@ $ans3 = Formula("$ins3"); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -110,7 +110,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS( $ans0-> cmp( checker => sub { my ($correct,$student,$ans) = @_; @@ -218,13 +218,13 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} - \{ AnswerFormatHelp("exponents", "Click here for help writing exponents and square roots.") \} + ${BBOLD}Help:${EBOLD} + \{ helpLink("exponents", "Click here for help writing exponents and square roots.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Intermediate_Algebra/Radicals/Roots_Numbers.pg b/Contrib/Mizzou/Intermediate_Algebra/Radicals/Roots_Numbers.pg index d9a656b446..95c1bb78c8 100644 --- a/Contrib/Mizzou/Intermediate_Algebra/Radicals/Roots_Numbers.pg +++ b/Contrib/Mizzou/Intermediate_Algebra/Radicals/Roots_Numbers.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# +# # ENDDESCRIPTION ## DBsubject('Algebra') @@ -11,7 +11,7 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( @@ -20,7 +20,7 @@ loadMacros( "PeriodicRerandomization.pl", "contextLimitedPowers.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -53,7 +53,7 @@ package main; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); Context()->functions->set(sqrt=>{class=>'my::Function::numeric'}); @@ -102,7 +102,7 @@ $ans2 = Formula("$b1/$b2"); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -117,7 +117,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS( $ans1-> cmp( checker => sub { my ($correct,$student,$ans) = @_; @@ -179,13 +179,13 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} - \{ AnswerFormatHelp("exponents", "Click here for help writing exponents and square roots.") \} + ${BBOLD}Help:${EBOLD} + \{ helpLink("exponents", "Click here for help writing exponents and square roots.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Intermediate_Algebra/Radicals/Roots_Numbers_Neg.pg b/Contrib/Mizzou/Intermediate_Algebra/Radicals/Roots_Numbers_Neg.pg index 3ecce8aa9a..8de03ecbef 100644 --- a/Contrib/Mizzou/Intermediate_Algebra/Radicals/Roots_Numbers_Neg.pg +++ b/Contrib/Mizzou/Intermediate_Algebra/Radicals/Roots_Numbers_Neg.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# +# # ENDDESCRIPTION ## DBsubject('Algebra') @@ -11,7 +11,7 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( @@ -20,7 +20,7 @@ loadMacros( "PeriodicRerandomization.pl", "contextLimitedPowers.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -53,7 +53,7 @@ package main; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); Context()->functions->set(sqrt=>{class=>'my::Function::numeric'}); @@ -99,7 +99,7 @@ if ($r2 == 2) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -114,7 +114,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### if (($case == 0 && $r1 % 2 != 0) || $case == 1) { $ans1 = Formula("-$a1"); @@ -190,13 +190,13 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} - \{ AnswerFormatHelp("exponents", "Click here for help writing exponents and square roots.") \} + ${BBOLD}Help:${EBOLD} + \{ helpLink("exponents", "Click here for help writing exponents and square roots.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Intermediate_Algebra/Radicals/Roots_Numbers_Neg_Variables.pg b/Contrib/Mizzou/Intermediate_Algebra/Radicals/Roots_Numbers_Neg_Variables.pg index 4bc27f6613..a3e6fc922b 100644 --- a/Contrib/Mizzou/Intermediate_Algebra/Radicals/Roots_Numbers_Neg_Variables.pg +++ b/Contrib/Mizzou/Intermediate_Algebra/Radicals/Roots_Numbers_Neg_Variables.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# +# # ENDDESCRIPTION ## DBsubject('Algebra') @@ -11,7 +11,7 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( @@ -20,7 +20,7 @@ loadMacros( "PeriodicRerandomization.pl", "contextLimitedPowers.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -53,7 +53,7 @@ package main; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); Context()->functions->set(sqrt=>{class=>'my::Function::numeric'}); @@ -84,7 +84,7 @@ do { $k12 = $p12/$r1; $p21 = random(2,13)*$r2; - do {$p22 = random(2,13)*$r2} until ($p22 != $p21); + do {$p22 = random(2,13)*$r2} until ($p22 != $p21); $k21 = $p21/$r2; $k22 = $p22/$r2; } until ($k21 != $k11 && $k22 != $k12); @@ -106,7 +106,7 @@ $ans2 = Formula("$b x^{$k21} y^{$k22}"); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -121,7 +121,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS( $ans1-> cmp( checker => sub { my ($correct,$student,$ans) = @_; @@ -183,13 +183,13 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} - \{ AnswerFormatHelp("exponents", "Click here for help writing exponents and square roots.") \} + ${BBOLD}Help:${EBOLD} + \{ helpLink("exponents", "Click here for help writing exponents and square roots.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Intermediate_Algebra/Radicals/Roots_Variables_Fraction_Const_Bot.pg b/Contrib/Mizzou/Intermediate_Algebra/Radicals/Roots_Variables_Fraction_Const_Bot.pg index 9e08f95f23..a7e6e1e3db 100644 --- a/Contrib/Mizzou/Intermediate_Algebra/Radicals/Roots_Variables_Fraction_Const_Bot.pg +++ b/Contrib/Mizzou/Intermediate_Algebra/Radicals/Roots_Variables_Fraction_Const_Bot.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# +# # ENDDESCRIPTION ## DBsubject('Algebra') @@ -11,7 +11,7 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( @@ -20,7 +20,7 @@ loadMacros( "PeriodicRerandomization.pl", "contextLimitedPowers.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -53,7 +53,7 @@ package main; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); Context()->functions->set(sqrt=>{class=>'my::Function::numeric'}); @@ -65,7 +65,7 @@ for ($i = 0; $i < random(20,50); $i++) { ## more random?? $case1 == random(0,1,1); # 0 - make negative, 1 - not $case2 == random(0,1,1); # nothing if root is not odd root, if odd 0 - neg inside, 1 - neg out $r2 = random(2,5,1); -} +} if ($r2 == 2) { $b = list_random(3,4,5,6,7,8,9,10,11,12,13,14,15,20); @@ -78,7 +78,7 @@ $br = ($b)**$r2; $p21 = random(2,13)*$r2; -do {$p22 = random(2,13)*$r2} until ($p22 != $p21); +do {$p22 = random(2,13)*$r2} until ($p22 != $p21); $k21 = $p21/$r2; $k22 = $p22/$r2; @@ -114,7 +114,7 @@ if ($r2 == 2) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -127,7 +127,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS( $ans1-> cmp( checker => sub { my ($correct,$student,$ans) = @_; @@ -166,13 +166,13 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} - \{ AnswerFormatHelp("exponents", "Click here for help writing exponents and square roots.") \} + ${BBOLD}Help:${EBOLD} + \{ helpLink("exponents", "Click here for help writing exponents and square roots.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Intermediate_Algebra/Radicals/Roots_Variables_Fraction_Const_Top.pg b/Contrib/Mizzou/Intermediate_Algebra/Radicals/Roots_Variables_Fraction_Const_Top.pg index 0257184080..9e2ecf8fc8 100644 --- a/Contrib/Mizzou/Intermediate_Algebra/Radicals/Roots_Variables_Fraction_Const_Top.pg +++ b/Contrib/Mizzou/Intermediate_Algebra/Radicals/Roots_Variables_Fraction_Const_Top.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# +# # ENDDESCRIPTION ## DBsubject('Algebra') @@ -11,7 +11,7 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( @@ -20,7 +20,7 @@ loadMacros( "PeriodicRerandomization.pl", "contextLimitedPowers.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -53,7 +53,7 @@ package main; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); Context()->functions->set(sqrt=>{class=>'my::Function::numeric'}); @@ -77,7 +77,7 @@ $case2 == random(0,1,1); # nothing if root is not odd root, if odd 0 - neg insid $p21 = random(2,13)*$r2; -do {$p22 = random(2,13)*$r2} until ($p22 != $p21); +do {$p22 = random(2,13)*$r2} until ($p22 != $p21); $k21 = $p21/$r2; $k22 = $p22/$r2; @@ -113,7 +113,7 @@ if ($r2 == 2) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -126,7 +126,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS( $ans1-> cmp( checker => sub { my ($correct,$student,$ans) = @_; @@ -165,13 +165,13 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} - \{ AnswerFormatHelp("exponents", "Click here for help writing exponents and square roots.") \} + ${BBOLD}Help:${EBOLD} + \{ helpLink("exponents", "Click here for help writing exponents and square roots.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Intermediate_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/MultiplyRadicals.pg b/Contrib/Mizzou/Intermediate_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/MultiplyRadicals.pg index 63ecf9324b..576fda718d 100644 --- a/Contrib/Mizzou/Intermediate_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/MultiplyRadicals.pg +++ b/Contrib/Mizzou/Intermediate_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/MultiplyRadicals.pg @@ -4,9 +4,9 @@ ## KEYWORDS('radical expression') -## DBsubject('Algebra') -## DBchapter('Basic Algebra') -## DBsection('Exponents and Radicals') +## DBsubject('Algebra') +## DBchapter('Basic Algebra') +## DBsection('Exponents and Radicals') ## Date('Spring 2012') ## Author1('David Covert') ## Author2('Teri Christiansen') @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "PGunion.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -78,7 +78,7 @@ $PAR $BCENTER \( \sqrt[$n]{$var^{$exp1}} \sqrt[$n]{$var^{$exp2}} = \) \{ANS_RULE(10)\} $ECENTER -$BR Write your answer using radical notation if necessary. +$BR Write your answer using radical notation if necessary. END_TEXT @@ -93,15 +93,15 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR ${BBOLD}Help:${EBOLD} - -\{ AnswerFormatHelp("exponents", "Click here for help writing exponents and square roots.") \} + +\{ helpLink("exponents", "Click here for help writing exponents and square roots.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/Contrib/Mizzou/Intermediate_Algebra/Word_Problems/Bicycle_Rental_Inequality.pg b/Contrib/Mizzou/Intermediate_Algebra/Word_Problems/Bicycle_Rental_Inequality.pg index 3e3a90085d..bd5fbeee7a 100644 --- a/Contrib/Mizzou/Intermediate_Algebra/Word_Problems/Bicycle_Rental_Inequality.pg +++ b/Contrib/Mizzou/Intermediate_Algebra/Word_Problems/Bicycle_Rental_Inequality.pg @@ -11,7 +11,7 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( @@ -19,7 +19,7 @@ loadMacros( "MathObjects.pl", "PeriodicRerandomization.pl", "contextInequalities.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -29,7 +29,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Inequalities-Only"); $a = random(9,16,1); @@ -42,7 +42,7 @@ $b = sprintf("%0.2f", $b ); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -53,7 +53,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($hours)->cmp()); @@ -74,7 +74,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Intermediate_Algebra/Word_Problems/Car_Rental_Inequality.pg b/Contrib/Mizzou/Intermediate_Algebra/Word_Problems/Car_Rental_Inequality.pg index 09f16dc9e2..4f327723bf 100644 --- a/Contrib/Mizzou/Intermediate_Algebra/Word_Problems/Car_Rental_Inequality.pg +++ b/Contrib/Mizzou/Intermediate_Algebra/Word_Problems/Car_Rental_Inequality.pg @@ -11,7 +11,7 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( @@ -19,7 +19,7 @@ loadMacros( "MathObjects.pl", "PeriodicRerandomization.pl", "contextInequalities.pl", - "AnswerFormatHelp.pl", + "parserPopUp.pl", "PGcourse.pl" ); @@ -30,7 +30,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Inequalities-Only")->variables->are(x=>"Real"); for ($i = 0; $i < random(10,50); $i++) { @@ -53,7 +53,7 @@ $ans = $p; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -63,14 +63,14 @@ Plan A: ${DOLLAR}$a per day and unlimited mileage $BR Plan B: ${DOLLAR}$b per day plus ${DOLLAR}0.$cents per mile $PAR -Use an inequality to find the number of daily miles for which plan B costs $word than plan A. +Use an inequality to find the number of daily miles for which plan B costs $word than plan A. $PAR Answer: \{$pop->menu\} \{ans_rule(20)\} miles END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($pop->cmp()); ANS(Compute($ans)->cmp()); @@ -92,7 +92,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/Mizzou/Intermediate_Algebra/Word_Problems/Truck_Beams_Inequality.pg b/Contrib/Mizzou/Intermediate_Algebra/Word_Problems/Truck_Beams_Inequality.pg index 0fc8939e9d..8404b7db11 100644 --- a/Contrib/Mizzou/Intermediate_Algebra/Word_Problems/Truck_Beams_Inequality.pg +++ b/Contrib/Mizzou/Intermediate_Algebra/Word_Problems/Truck_Beams_Inequality.pg @@ -11,14 +11,14 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "contextInequalities.pl", "PGcourse.pl" ); @@ -29,7 +29,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Inequalities-Only"); $truckw = random(3500,4500,100); @@ -39,7 +39,7 @@ $ans = floor(($bridgew - $truckw)/$beamw); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -50,7 +50,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($ans)->cmp()); @@ -71,7 +71,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); COMMENT('Features Periodic Rerandomization'); ENDDOCUMENT(); diff --git a/Contrib/NAU/setCalcIII/Jacobian3.pg b/Contrib/NAU/setCalcIII/Jacobian3.pg index 34d80a1095..ed972dafbb 100644 --- a/Contrib/NAU/setCalcIII/Jacobian3.pg +++ b/Contrib/NAU/setCalcIII/Jacobian3.pg @@ -16,12 +16,12 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGchoicemacros.pl", "PGcourse.pl" ); $showPartialCorrectAnswers = 1; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Matrix'); # Context()->variables->add(x => ['Real']); @@ -55,7 +55,7 @@ $BR Find the derivative of \( f:\mathbb{R}^3\to\mathbb{R}^2\) defined by \( f(x,y,z)=($a x^2 y, e^{$b y+$c z}) \). The derivative \( f':\mathbb{R}^3\to\mathbb{R}^{2\times 3}\) is defined by $BR -\( f'(x,y,z) = \) +\( f'(x,y,z) = \) \{ $Df->ans_array(10)\} END_TEXT diff --git a/Contrib/NAU/setCalcIII/Jacobian4.pg b/Contrib/NAU/setCalcIII/Jacobian4.pg index 2f5c2dadc4..9de07d91d5 100644 --- a/Contrib/NAU/setCalcIII/Jacobian4.pg +++ b/Contrib/NAU/setCalcIII/Jacobian4.pg @@ -16,12 +16,12 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGchoicemacros.pl", "PGcourse.pl" ); $showPartialCorrectAnswers = 1; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Matrix'); # Context()->variables->add(x => ['Real']); @@ -42,7 +42,7 @@ Context()->texStrings; BEGIN_TEXT Find the derivative of \( f:\mathbb{R}^2\to\mathbb{R}\) defined by \( f(x,y)=$a x^3 y \). The derivative \( f':\mathbb{R}^2\to\mathbb{R}^{1\times 2}\) is defined by $BR -\( f'(x,y) = \) +\( f'(x,y) = \) \{ $Df->ans_array(10)\} END_TEXT diff --git a/Contrib/NAU/setCalcIII/Jacobian5.pg b/Contrib/NAU/setCalcIII/Jacobian5.pg index 23455d6030..f29a4cf9cc 100644 --- a/Contrib/NAU/setCalcIII/Jacobian5.pg +++ b/Contrib/NAU/setCalcIII/Jacobian5.pg @@ -16,12 +16,12 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGchoicemacros.pl", "PGcourse.pl" ); $showPartialCorrectAnswers = 1; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Matrix'); Context()->variables->add(t => ['Real']); @@ -45,7 +45,7 @@ Context()->texStrings; BEGIN_TEXT Find the derivative of \( f:\mathbb{R}\to\mathbb{R}^2\) defined by \( f(t)=($a t^2,\sin($b t) \). The derivative \( f':\mathbb{R}\to\mathbb{R}^{2\times 1}\) is defined by $BR -\( f'(x,y) = \) +\( f'(x,y) = \) \{ $Df->ans_array(10)\} END_TEXT diff --git a/Contrib/NAU/setCalcIII/chain.pg b/Contrib/NAU/setCalcIII/chain.pg index 18620d03bb..da512b9128 100644 --- a/Contrib/NAU/setCalcIII/chain.pg +++ b/Contrib/NAU/setCalcIII/chain.pg @@ -17,12 +17,12 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGchoicemacros.pl", "PGcourse.pl" ); $showPartialCorrectAnswers = 1; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Matrix'); { @@ -59,7 +59,7 @@ BEGIN_TEXT Let \(h=f\circ g \) where \( f:\mathbb{R}^2\to\mathbb{R}\) and \( g:\mathbb{R}^2\to\mathbb{R}^2\) is defined by \( g(x,y)=($g1,$g2) \). Find the derivative \( h'($x0,$y0) \) if \(f_x($g1out,$g2out)= $f_x \) and \(f_y($g1out,$g2out)= $f_y \). $BR -\( h'($x0,$y0) = \) +\( h'($x0,$y0) = \) \{ $ans->ans_array(10)\} $BR Find the following: diff --git a/Contrib/NAU/setCalcIII/crossWithParam.pg b/Contrib/NAU/setCalcIII/crossWithParam.pg index 454193db62..ad5f40d764 100644 --- a/Contrib/NAU/setCalcIII/crossWithParam.pg +++ b/Contrib/NAU/setCalcIII/crossWithParam.pg @@ -15,7 +15,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "unorderedAnswer.pl", ); @@ -32,19 +32,19 @@ Context()->texStrings; BEGIN_TEXT Let \( x=(a,2,$p) \) and \( y=(1,2,a)\). Find \( a \) if the second component of \( x\times y \) is \( -1 \). $BR -\( a = \) +\( a = \) \{ ans_rule(5) \} or -\( a = \) +\( a = \) \{ ans_rule(5) \} END_TEXT Context()->normalStrings; $showPartialCorrectAnswers = 1; -UNORDERED_ANS( -$answer1->cmp(), -$answer2->cmp(), +UNORDERED_ANS( +$answer1->cmp(), +$answer2->cmp(), ); ENDDOCUMENT(); diff --git a/Contrib/NAU/setCalcIII/dotWithParam.pg b/Contrib/NAU/setCalcIII/dotWithParam.pg index 198ae23763..a5b5f03cb8 100644 --- a/Contrib/NAU/setCalcIII/dotWithParam.pg +++ b/Contrib/NAU/setCalcIII/dotWithParam.pg @@ -15,7 +15,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "unorderedAnswer.pl", ); @@ -28,21 +28,21 @@ $answer2 = Compute("1"); Context()->texStrings; BEGIN_TEXT -Find \( x \) if the vectors \( (x-3,x+3,1) \) and \( (x,x-1,2)\) are orthogonal. +Find \( x \) if the vectors \( (x-3,x+3,1) \) and \( (x,x-1,2)\) are orthogonal. $BR -\( x = \) +\( x = \) \{ ans_rule(5) \} or -\( x = \) +\( x = \) \{ ans_rule(5) \} END_TEXT Context()->normalStrings; $showPartialCorrectAnswers = 1; -UNORDERED_ANS( -$answer1->cmp(), -$answer2->cmp(), +UNORDERED_ANS( +$answer1->cmp(), +$answer2->cmp(), ); ENDDOCUMENT(); diff --git a/Contrib/NAU/setCalcIII/initialValue.pg b/Contrib/NAU/setCalcIII/initialValue.pg index 0dd7f17c26..52f615e5d0 100644 --- a/Contrib/NAU/setCalcIII/initialValue.pg +++ b/Contrib/NAU/setCalcIII/initialValue.pg @@ -15,7 +15,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + ); TEXT(beginproblem()); @@ -27,9 +27,9 @@ $p = non_zero_random(-9,9,1); $answer = Compute("sqrt(1+($p)^2)"); BEGIN_TEXT -Find \( \|r(0)\| \) if \( r'(t)=(\cos(2t),2t,e^t) \) and \( r(0)=($p,1,0) \). +Find \( \|r(0)\| \) if \( r'(t)=(\cos(2t),2t,e^t) \) and \( r(0)=($p,1,0) \). $BR -\( \|r(0)\| = \) +\( \|r(0)\| = \) \{ ans_rule(5) \} END_TEXT diff --git a/Contrib/NAU/setCalcIII/linearization.pg b/Contrib/NAU/setCalcIII/linearization.pg index 76dfdd98b9..08294d353a 100644 --- a/Contrib/NAU/setCalcIII/linearization.pg +++ b/Contrib/NAU/setCalcIII/linearization.pg @@ -11,12 +11,12 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGchoicemacros.pl", "PGcourse.pl" ); $showPartialCorrectAnswers = 1; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Matrix'); # Context()->variables->add(x => ['Real']); @@ -63,19 +63,19 @@ $ans10=Formula("2*$b*$x0*x + $c*y - $b*($x0)^2")->reduce; Context()->texStrings; BEGIN_TEXT -Consider the function \( f:\mathbb{R}^2\to\mathbb{R}^2\) defined by \( f(x,y)=($a x y^2, $b x^2+$c y) \). +Consider the function \( f:\mathbb{R}^2\to\mathbb{R}^2\) defined by \( f(x,y)=($a x y^2, $b x^2+$c y) \). $BR a. The value of \( f \) at \( ($x0,$y0) \) is \( f($x0,$y0)=( \) \{ $val1->ans_rule(10)\} , \{ $val2->ans_rule(10)\} \( ) \). $BR b. The derivative \( f':\mathbb{R}^2\to\mathbb{R}^{2\times 2}\) is defined by $BR -\( f'(x,y) = \) +\( f'(x,y) = \) \{ $Df->ans_array(10)\}. $BR c. The value of \( f' \) at \( ($x0,$y0) \) is $BR -\( f'($x0,$y0) = \) +\( f'($x0,$y0) = \) \{ $Dfat->ans_array(10)\}. $BR d. The local linearization of \( f \) at \( ($x0,$y0)\) is defined by diff --git a/Contrib/NAU/setCalcIII/linearization2.pg b/Contrib/NAU/setCalcIII/linearization2.pg index 98ae2ba7da..ea786d9db0 100644 --- a/Contrib/NAU/setCalcIII/linearization2.pg +++ b/Contrib/NAU/setCalcIII/linearization2.pg @@ -11,11 +11,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); $showPartialCorrectAnswers = 1; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Matrix'); # Context()->variables->add(x => ['Real']); @@ -62,19 +62,19 @@ $ans10=Formula("$val2+($ans7)*(x-($x0))+($ans8)*(y-($y0))")->reduce; Context()->texStrings; BEGIN_TEXT -Consider the function \( f:\mathbb{R}^2\to\mathbb{R}^2\) defined by \( f(x,y)=($a e^{2x} + $c y^2, $b x^2 y) \). +Consider the function \( f:\mathbb{R}^2\to\mathbb{R}^2\) defined by \( f(x,y)=($a e^{2x} + $c y^2, $b x^2 y) \). $BR a. The value of \( f \) at \( ($x0,$y0) \) is \( f($x0,$y0)=( \) \{ $val1->ans_rule(10)\} , \{ $val2->ans_rule(10)\} \( ) \). $BR b. The derivative \( f':\mathbb{R}^2\to\mathbb{R}^{2\times 2}\) is defined by $BR -\( f'(x,y) = \) +\( f'(x,y) = \) \{ $Df->ans_array(10)\}. $BR c. The value of \( f' \) at \( ($x0,$y0) \) is $BR -\( f'($x0,$y0) = \) +\( f'($x0,$y0) = \) \{ $Dfat->ans_array(10)\}. $BR d. The local linearization of \( f \) at \( ($x0,$y0)\) is defined by diff --git a/Contrib/NAU/setCalcIII/vectorMultWithParam.pg b/Contrib/NAU/setCalcIII/vectorMultWithParam.pg index 9bd61f89b7..5b7caac7a0 100644 --- a/Contrib/NAU/setCalcIII/vectorMultWithParam.pg +++ b/Contrib/NAU/setCalcIII/vectorMultWithParam.pg @@ -15,7 +15,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + ); TEXT(beginproblem()); @@ -30,7 +30,7 @@ $answer = Compute("(1+2*$p)/3"); BEGIN_TEXT Let \( A=(4,0,$p) \), \( B=(1,a,b)\), and \( X=(a,b,c)\). Find \( c \) if \( \overrightarrow{AB} = 3 \overrightarrow{AX} \). $BR -\( c = \) +\( c = \) \{ ans_rule(5) \} END_TEXT # Context()->normalStrings; diff --git a/Contrib/NAU/setGraphTheory/Adjacency.pg b/Contrib/NAU/setGraphTheory/Adjacency.pg index 9d81825d99..dada1e4717 100644 --- a/Contrib/NAU/setGraphTheory/Adjacency.pg +++ b/Contrib/NAU/setGraphTheory/Adjacency.pg @@ -12,13 +12,13 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + # "MatrixReduce.pl", "PGcourse.pl", "parserPopUp.pl", ); $showPartialCorrectAnswers = 1; -TEXT(beginproblem()); +TEXT(beginproblem()); Context("Matrix"); # Context("Fraction"); diff --git a/Contrib/NAU/setGraphTheory/AdjacencyDirected.pg b/Contrib/NAU/setGraphTheory/AdjacencyDirected.pg index 921fe8ec04..a0753e7dbd 100644 --- a/Contrib/NAU/setGraphTheory/AdjacencyDirected.pg +++ b/Contrib/NAU/setGraphTheory/AdjacencyDirected.pg @@ -12,13 +12,13 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + # "MatrixReduce.pl", "PGcourse.pl", "parserPopUp.pl", ); $showPartialCorrectAnswers = 1; -TEXT(beginproblem()); +TEXT(beginproblem()); Context("Matrix"); # Context("Fraction"); @@ -66,7 +66,7 @@ answer = \{ $ans2->ans_rule(10) \} $PAR -3.What is the in-degree of vertex \( v_3 \)? +3.What is the in-degree of vertex \( v_3 \)? $BR in-degree = \{ $ans3->ans_rule(10) \} @@ -80,14 +80,14 @@ out-degree = \{ $ans4->ans_rule(10) \} $PAR -5. What is the in-degree of vertex \( v_5 \)? +5. What is the in-degree of vertex \( v_5 \)? $BR in-degree = \{ $ans5->ans_rule(10) \} $PAR -6. What is the out-degree of vertex \( v_5 \)? +6. What is the out-degree of vertex \( v_5 \)? $BR out-degree = \{ $ans5->ans_rule(10) \} diff --git a/Contrib/NAU/setGraphTheory/DegreSequences.pg b/Contrib/NAU/setGraphTheory/DegreSequences.pg index 944fd8aecf..f8fe6f76c0 100644 --- a/Contrib/NAU/setGraphTheory/DegreSequences.pg +++ b/Contrib/NAU/setGraphTheory/DegreSequences.pg @@ -15,7 +15,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); diff --git a/Contrib/NAU/setLinearAlgebra/coordinatesZeroMagix.pg b/Contrib/NAU/setLinearAlgebra/coordinatesZeroMagix.pg index 920a842ff7..8bd3b07f7c 100644 --- a/Contrib/NAU/setLinearAlgebra/coordinatesZeroMagix.pg +++ b/Contrib/NAU/setLinearAlgebra/coordinatesZeroMagix.pg @@ -18,13 +18,13 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "MatrixReduce.pl", "rank.pl", "PGcourse.pl" ); $showPartialCorrectAnswers = 1; -TEXT(beginproblem()); +TEXT(beginproblem()); Context("Fraction"); Context() -> parens -> set ("[" => {formMatrix => 1}); @@ -39,9 +39,9 @@ $MB = Matrix([[$a],[$b]]); sub magic { my ($m) = @_; -return 0 if $m->element(1,1)+$m->element(1,2)+$m->element(1,3) !=0; +return 0 if $m->element(1,1)+$m->element(1,2)+$m->element(1,3) !=0; return 0 if $m->element(2,1)+$m->element(2,2)+$m->element(2,3) !=0; -return 0 if $m->element(3,1)+$m->element(3,2)+$m->element(3,3) !=0; +return 0 if $m->element(3,1)+$m->element(3,2)+$m->element(3,3) !=0; return 0 if $m->element(1,1)+$m->element(1,2)+$m->element(1,3) !=0; return 0 if $m->element(2,1)+$m->element(2,2)+$m->element(2,3) !=0; return 0 if $m->element(3,1)+$m->element(3,2)+$m->element(3,3) !=0; @@ -55,18 +55,18 @@ checker => sub { my ( $correct, $student, $self ) = @_; my @s = @{$student}; my @c = @{$correct}; -my $s0 = Matrix($s[0]); +my $s0 = Matrix($s[0]); my $s1 = Matrix($s[1]); my $coo = Matrix($s[2]); if (! magic($s0)) { $self->setMessage(1,"Not half-magic."); return 0 ; -} +} if (! magic($s1)) { $self->setMessage(2,"Not half-magic."); return 0 ; -} +} if (rank(Matrix( [$s0->element(1,1),$s0->element(1,2),$s0->element(1,3), $s0->element(2,1),$s0->element(2,2),$s0->element(2,3), @@ -91,19 +91,19 @@ return 1; Context()->texStrings; BEGIN_TEXT -A square matrix \( A \) is called $BITALIC zero-magic $EITALIC +A square matrix \( A \) is called $BITALIC zero-magic $EITALIC if the sum of the numbers in each row, column, and diagonal is 0. Let \( V \) be the vector space of \( 3\times 3\) zero-magic squares. -$BR +$BR -(a) Find an ordered basis \( B \) for \( V \). +(a) Find an ordered basis \( B \) for \( V \). $BR \( B = ( \) \{ $multians->ans_array(3) \}, -\{ $multians->ans_array(3) \} +\{ $multians->ans_array(3) \} \( ) \). $BR diff --git a/Contrib/NCSU/ECE220_Problem_1.21c-f.pg b/Contrib/NCSU/ECE220_Problem_1.21c-f.pg index 07016e547a..fa3e6298e8 100644 --- a/Contrib/NCSU/ECE220_Problem_1.21c-f.pg +++ b/Contrib/NCSU/ECE220_Problem_1.21c-f.pg @@ -20,7 +20,7 @@ loadMacros( "PGstandard.pl", "PGchoicemacros.pl", "PGgraphmacros.pl", - "AnswerFormatHelp.pl", + "extraAnswerEvaluators.pl", "unionLists.pl", "parserAssignment.pl", @@ -42,10 +42,10 @@ BEGIN_TEXT This corresponds to Problem 1.21c - f $BR Consider the function \( f(t) = sin(2 \pi $F t) \). $PAR -(c) For what value(s) of t is \( f(t) = 1\)? If there are more than one values, give the three values that are closest to \( t = 0, \) as a comma separated list. +(c) For what value(s) of t is \( f(t) = 1\)? If there are more than one values, give the three values that are closest to \( t = 0, \) as a comma separated list. $BR \{ ans_rule(35)\} $PAR -(d) For what value(s) of t is \( f(t) = 0\)? If there are more than one values, give the three values that are closest to \( t = 0, \) as a comma separated list. +(d) For what value(s) of t is \( f(t) = 0\)? If there are more than one values, give the three values that are closest to \( t = 0, \) as a comma separated list. $BR \{ ans_rule(35)\} $PAR diff --git a/Contrib/NCSU/ECE220_Problem_2.52.pg b/Contrib/NCSU/ECE220_Problem_2.52.pg index 6dcdd565a5..c9acf80465 100644 --- a/Contrib/NCSU/ECE220_Problem_2.52.pg +++ b/Contrib/NCSU/ECE220_Problem_2.52.pg @@ -19,7 +19,7 @@ loadMacros( "PGstandard.pl", "PGchoicemacros.pl", "PGgraphmacros.pl", - "AnswerFormatHelp.pl", + "extraAnswerEvaluators.pl", "unionLists.pl", "parserAssignment.pl", @@ -38,7 +38,7 @@ Context("Numeric")->functions->add( }, ); -## define base function and limits on graph +## define base function and limits on graph ## add t to varaibles Context()->variables->add(t=>'Real'); ##Context()->variables->add(x=>'Real',y=>'Real'); @@ -47,7 +47,7 @@ parser::Assignment->Function("s"); parser::Assignment->Function("p"); $eqn = Formula("s(t) = p(t)"); -#$ans = Formula("s(t) = -2 p(t/4+9/4) + p(t) + p(t-2) + 3 p(t/5 - 4/5)"); +#$ans = Formula("s(t) = -2 p(t/4+9/4) + p(t) + p(t-2) + 3 p(t/5 - 4/5)"); $ans = Formula("s(t) = p(t)"); $c1 = -2; $a1 = 1/4; $t1 = -9/4; $c2 = 1; $a2 = 1; $t2 = 0; @@ -111,19 +111,19 @@ $PAR Express \( h(t) \) in terms of the time scaled and shifted versions of the unit pulse, \( p(t) = u(t) - u(t-1) \). While there are many correct ways to do this, the answer we want is one that uses four (4) pulses that are NOT overlapping. The answer has the form $BR \( h(t) = c_1 p(a_1 t - t_1) + c_2 p(a_2 t - t_2) + c_3 p(a_3 t - t_3) + c_4 p(a_4 t - t_4) \) -$BR where the numbering starts with the leftmost pulse. Give the values of the amplitudes, scale factors and shifts as a comma separated list. +$BR where the numbering starts with the leftmost pulse. Give the values of the amplitudes, scale factors and shifts as a comma separated list. $BR \( c_1 , a_1, t_1 \)\{ ans_rule(30) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR \( c_2 , a_2, t_2 \)\{ ans_rule(30) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR \( c_3 , a_3, t_3 \)\{ ans_rule(30) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR \( c_4 , a_4, t_4 \)\{ ans_rule(30) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR END_TEXT @@ -156,4 +156,4 @@ END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/Contrib/NCSU/ECE220_Problem_3.7.pg b/Contrib/NCSU/ECE220_Problem_3.7.pg index b97fbf47d6..5287e1f64d 100644 --- a/Contrib/NCSU/ECE220_Problem_3.7.pg +++ b/Contrib/NCSU/ECE220_Problem_3.7.pg @@ -17,13 +17,13 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "PGchoicemacros.pl", "PGgraphmacros.pl", - "AnswerFormatHelp.pl", + "extraAnswerEvaluators.pl", "unionLists.pl", "parserAssignment.pl", @@ -74,7 +74,7 @@ for ($t = $t_min;$t <= $Tmax;$t = $t+$step) { $fmin = min(@f); $fmax = max(@f); -#minimum of sum is -2.56, maximum is 5.00, set tolerance so +#minimum of sum is -2.56, maximum is 5.00, set tolerance so # range is [-3.0,-2.6] and [5.05,5,45], -2.8 +/- 0.2, and 5.25 +/- 0.2 $fmin = -2.56; $fmax = 5.0; @@ -106,7 +106,7 @@ Compute($upper_lim)->with( tolType => 'absolute', tolerance => $dy)); Context()->texStrings; BEGIN_TEXT -This problem is related to Problem 3.7 in the text. consider reviewing Section 3.2.1.1. +This problem is related to Problem 3.7 in the text. consider reviewing Section 3.2.1.1. $PAR The following MATLAB program plots the function \( @@ -123,26 +123,26 @@ $BR axis([xmin,xmax,ymin,ymax]) $PAR -What is the period of the signal \( v(t) \)? +What is the period of the signal \( v(t) \)? \{ ans_rule(10) \} $PAR Suppose that we want to produce a plot that covers exactly 4 periods and has exactly 20 -samples per period. Determine the appropriate values of +samples per period. Determine the appropriate values of $BR step \{ ans_rule(10) \} $BR -$BR Tmax \{ ans_rule(10) \}. +$BR Tmax \{ ans_rule(10) \}. $PAR -Determine the values of xmin, xmax, ymin, and ymax to give a good visual plot and avoid the function hitting the boundaries of the plot. +Determine the values of xmin, xmax, ymin, and ymax to give a good visual plot and avoid the function hitting the boundaries of the plot. $BR [xmin, xmax] = \{$xlimits_vec->ans_array\} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR [ymin, ymax] = \{$ylimits_vec->ans_array\} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR END_TEXT Context()->normalStrings; @@ -152,7 +152,7 @@ Context()->normalStrings; # \($V\) = \{$V->ans_array\} # END_TEXT # Context()->normalStrings; - + # ANS($V->cmp); # Answers diff --git a/Contrib/NCSU/ECE220_Problem_4.50.pg b/Contrib/NCSU/ECE220_Problem_4.50.pg index 6af6b5cab8..3477bd6b76 100644 --- a/Contrib/NCSU/ECE220_Problem_4.50.pg +++ b/Contrib/NCSU/ECE220_Problem_4.50.pg @@ -17,12 +17,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGgraphmacros.pl", "unionTables.pl", "PGcourse.pl" @@ -58,17 +58,17 @@ $y = Formula("2*a/(a**2 + w**2) "); Context()->texStrings; BEGIN_TEXT -This problem is related to Problem 4.50 in the text. +This problem is related to Problem 4.50 in the text. $PAR -Compute the integral and write it in both Cartesian and polar (exponential) form. Note that it will be a function of \( \omega . \). Use w instead of \( \omega \) when entering the formulas. +Compute the integral and write it in both Cartesian and polar (exponential) form. Note that it will be a function of \( \omega . \). Use w instead of \( \omega \) when entering the formulas. $PAR \( A(w) = \int_{-\infty}^{\infty} e^{-a |t|}e^{-j\omega t} dt \) $PAR Cartesian \( A(w) = \) -\{ ans_rule(15)\} + j\{ ans_rule(15)\} \{ AnswerFormatHelp("formulas") \} +\{ ans_rule(15)\} + j\{ ans_rule(15)\} \{ helpLink("formulas") \} $PAR Polar \( A(w) = \) -\{ ans_rule(15)\} \( \angle \) \{ ans_rule(15)\} \( ^\circ \) \{ AnswerFormatHelp("formulas") \} +\{ ans_rule(15)\} \( \angle \) \{ ans_rule(15)\} \( ^\circ \) \{ helpLink("formulas") \} diff --git a/Contrib/NCSU/ECE220_Problem_5.15.pg b/Contrib/NCSU/ECE220_Problem_5.15.pg index e834212a34..f364ea1f4e 100644 --- a/Contrib/NCSU/ECE220_Problem_5.15.pg +++ b/Contrib/NCSU/ECE220_Problem_5.15.pg @@ -20,7 +20,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGmatrixmacros.pl", "PGcourse.pl" ); @@ -70,12 +70,12 @@ $b[3][3] = $a[0][0]*$a[1][1]*$a[2][2]/$det; Context()->texStrings; BEGIN_TEXT -This problem is related to Problem 5.23 in the text. +This problem is related to Problem 5.23 in the text. $PAR This is a practice problem. You are not required to work it $PAR -If \{ mbox([ '\(A=\)', display_matrix([[$a[0][0], $a[0][1], $a[0][2], $a[0][3]], +If \{ mbox([ '\(A=\)', display_matrix([[$a[0][0], $a[0][1], $a[0][2], $a[0][3]], [$a[1][0], $a[1][1], $a[1][2], $a[1][3]], [$a[2][0], $a[2][1], $a[2][2], $a[2][3]], [$a[3][0], $a[3][1], $a[3][2], $a[3][3]]]) ]) \} $BR diff --git a/Contrib/NCSU/ECE220_Problem_7.10-18a.pg b/Contrib/NCSU/ECE220_Problem_7.10-18a.pg index c0357bd973..b79dae506f 100644 --- a/Contrib/NCSU/ECE220_Problem_7.10-18a.pg +++ b/Contrib/NCSU/ECE220_Problem_7.10-18a.pg @@ -18,12 +18,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionLists.pl", "answerHints.pl", "parserFunction.pl", @@ -59,7 +59,7 @@ $r1 = random(2,9,1); do { $r2 = random(1,9,1); } until ($r2 != $r1); if ($r2 < $r1) {$temp = $r1; $r1 = $r2; $r2 = $temp;}; - + $b = $r1 + $r2; $c = $r1*$r2; @@ -102,34 +102,34 @@ $answer[2] = Formula("($D1 e^(-$r1 t) + $D2 e^(-$r2 t) + $B) u(t) ")->reduce; Context()->texStrings; BEGIN_TEXT -This problem is related to Problems 7.10-7.18 in the text. +This problem is related to Problems 7.10-7.18 in the text. $PAR Instructions for forms of answers in differential equation problems: $BR For second order DEs, the roots of the characteristic equation may be real or complex. If the roots are real, the complementary solution is the weighted sum of real exponentials. Use C1 and C2 for the weights, where C1 is associated with the root with smaller magnitude. If the roots are complex, the complementary solution is the weighted sum of complex conjugate exponentials, which can be written as a constant times a decaying exponential times a cosine with phase. Use C1 for the constant and Phi for the phase. -$PAR All numerical angles(phases) should be given in radian angles (not degrees). +$PAR All numerical angles(phases) should be given in radian angles (not degrees). $BR Remember to use \( u(t) \) in Webwork answers when the solution is for \( t \ge 0\). $PAR -Given the differential equation \( y'' + $b y' + $c y = $A u(t) \) . +Given the differential equation \( y'' + $b y' + $c y = $A u(t) \) . \{ BeginList("OL",type=>"a") \} $ITEM Find the functional form of the complementary solution, \( y_c(t) \). $BR \( y_c(t) = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $ITEMSEP $ITEM Find the particular solution, \( y_p(t) \). $BR \( y_p(t) = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $ITEMSEP $ITEM Find the total solution, \( y(t) \) for the initial conditions \( y(0) = $y0 \) and \( y'(0) = $ydot0 \). $BR \( y(t) = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} @@ -150,7 +150,7 @@ ANS( $answer[2]->cmp() ); COMMENT("MathObject version."); SOLUTION(EV3(<<'END_SOLUTION')); -Let's review the procedure for solving all differential equations: Find the form of the complementary solution, solve for the particular solution, find the coefficients of the complementary solution as part of the total solution from a system of equations determined by the initial conditions. +Let's review the procedure for solving all differential equations: Find the form of the complementary solution, solve for the particular solution, find the coefficients of the complementary solution as part of the total solution from a system of equations determined by the initial conditions. To find the form of the complementary solution, we find the roots of the characteristic equation \( \lambda^2 + $b\lambda + $c = 0\).For this example, the roots are real and are given by \( -$r1 \) and \( -$r2 \). This means the complementary solution has the form \( v_c(t) = C_1 e^{-$r1 t} + C_2 e^{-$r2 t} \). $PAR @@ -159,13 +159,13 @@ $PAR Now, we determine the coefficients of the complementary solution. The total solution has the form, \( v_t(t) = C_1 e^{-$r1 t} + C_2 e^{-$r2 t} + $B \), where we are leaving off the step function, \( u(t) = step(t) \) for now. We differentiate the total solution as needed and substitute into the equations for the initial conditions. This gives $PAR \( C_1 e^{-$r1 t} + C_2 e^{-$r2 t} + $B|_{t=0} = $y0 \), and -\( -$r1*C_1 e^{-$r1 t} - $r2*C_2 e^{-$r2 t}|_{t=0} = $ydot0 \). +\( -$r1*C_1 e^{-$r1 t} - $r2*C_2 e^{-$r2 t}|_{t=0} = $ydot0 \). $PAR So \( C_1 + C_2 = $b1 \) and \( -$r1*C_1 - $r2*C_2 = $b2 \). This is a linear system of equations for \( C_1 \) and \( C_2 \). We can write \( C_2 \) in terms of \( C_1 \) as \( C_2 = $b1 - C_1 \), then substitute \( C_2 \) into the derivative equation, and obtain $PAR \( -$r1*C_1 - $r2*($b1 - C_1) = $b2 \), therefore \( C_1 = $D1 \), and (substituting back into \( C_1 + C_2 = $b1 \) ), \( C_2 = $b1 - $D1 = $D2 \). $PAR -Substituting into the total solution and including the step function, we have +Substituting into the total solution and including the step function, we have $PAR \( ($D1 e^{-$r1 t} + $D2 e^{-$r2 t} + $B)u(t) \) END_SOLUTION diff --git a/Contrib/NCSU/ECE220_Problem_7.10-18b.pg b/Contrib/NCSU/ECE220_Problem_7.10-18b.pg index 1e0bac4673..8c0a9d5fb9 100644 --- a/Contrib/NCSU/ECE220_Problem_7.10-18b.pg +++ b/Contrib/NCSU/ECE220_Problem_7.10-18b.pg @@ -18,12 +18,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionLists.pl", "answerHints.pl", "parserFunction.pl", @@ -112,32 +112,32 @@ $answer[2] = Formula("($D1 e^(-$r1 t) + $D2 e^(-$r2 t) + $mag cos($w t + $phase) Context()->texStrings; BEGIN_TEXT -This problem is related to Problems 7.10-7.18 in the text. +This problem is related to Problems 7.10-7.18 in the text. $PAR Instructions for forms of answers in differential equation problems: $BR For second order DEs, the roots of the characteristic equation may be real or complex. If the roots are real, the complementary solution is the weighted sum of real exponentials. Use C1 and C2 for the weights, where C1 is associated with the root with smaller magnitude. If the roots are complex, the complementary solution is the weighted sum of complex conjugate exponentials, which can be written as a constant times a decaying exponential times a cosine with phase. Use C1 for the constant and Phi for the phase. -$PAR All numerical angles(phases) should be given in radian angles (not degrees). +$PAR All numerical angles(phases) should be given in radian angles (not degrees). -Given the differential equation \( y'' + $b y' + $c y = $A cos($w t + $theta) u(t) \) . +Given the differential equation \( y'' + $b y' + $c y = $A cos($w t + $theta) u(t) \) . \{ BeginList("OL",type=>"a") \} $ITEM Find the functional form of the complementary solution, \( y_c(t) \). $BR \( y_c(t) = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $ITEMSEP $ITEM Find the particular solution, \( y_p(t) \). $BR \( y_p(t) = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $ITEMSEP $ITEM Find the total solution, \( y(t) \) for the initial condition \( y(0) = $y0 \) and \( y'(0) = $ydot0 \). $BR \( y(t) = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} @@ -158,14 +158,14 @@ ANS( $answer[2]->cmp() ); COMMENT("MathObject version."); SOLUTION(EV3(<<'END_SOLUTION')); -Let's review the procedure for solving all differential equations: Find the form of the complementary solution, solve for the particular solution, find the coefficients of the complementary solution as part of the total solution from a system of equations determined by the initial conditions. +Let's review the procedure for solving all differential equations: Find the form of the complementary solution, solve for the particular solution, find the coefficients of the complementary solution as part of the total solution from a system of equations determined by the initial conditions. To find the form of the complementary solution, we find the roots of the characteristic equation \( \lambda^2 + $b\lambda + $c = 0\).For this example, the roots are real and are given by \( -$r1 \) and \( -$r2 \). This means the complementary solution has the form \( v_c(t) = C_1 e^{-$r1 t} + C_2 e^{-$r2 t} \). $PAR -To find the particular solution, we know the form of the particular solution is the same as that of the driving function. In this case, the driving force is sinusoidal of the form \( v_s(t) = A \cos(\omega_0 t + \theta) u(t) = $A \cos($w t + $theta) u(t) \), so the particular solution takes the form \( v_p(t) = B \cos(\omega_0 t + \theta + \phi) u(t) = B \cos($w t + $theta + \phi) u(t) \), where +To find the particular solution, we know the form of the particular solution is the same as that of the driving function. In this case, the driving force is sinusoidal of the form \( v_s(t) = A \cos(\omega_0 t + \theta) u(t) = $A \cos($w t + $theta) u(t) \), so the particular solution takes the form \( v_p(t) = B \cos(\omega_0 t + \theta + \phi) u(t) = B \cos($w t + $theta + \phi) u(t) \), where +$PAR +\( B = \frac{A}{\sqrt{(c-\omega_0^2)^2 + (b\omega_0)^2}} = \frac{$A}{\sqrt{($c-$w^2)^2 + ($b*$w)^2}} = $mag \) $PAR -\( B = \frac{A}{\sqrt{(c-\omega_0^2)^2 + (b\omega_0)^2}} = \frac{$A}{\sqrt{($c-$w^2)^2 + ($b*$w)^2}} = $mag \) -$PAR \( \phi = -\arctan(\frac{b*\omega_0}{c - \omega_0^2}) = -\arctan(\frac{$b*$w}{$c - $w^2}) = $phi \) $PAR so @@ -179,7 +179,7 @@ $PAR \( C_1 e^{-$r1 t} + C_2 e^{-$r2 t} + $mag \cos($w t + $phase)|_{t=0} = $y0 \) and for the derivative $PAR \( -$r1*C_1 e^{-$r1 t} - $r2*C_2 e^{-$r2 t} - $w*$mag \sin($w t + $phase)|_{t=0} = $ydot0 \) -Evaluating the functions at \( t = 0\), we have +Evaluating the functions at \( t = 0\), we have $PAR \( C_1 + C_2 + $mag \cos($phase) = $y0 \) and $PAR @@ -189,7 +189,7 @@ So \( C_1 + C_2 = $b1 \) and \( -$r1*C_1 - $r2*C_2 = $b2 \). This is a linear sy $PAR \( -$r1*C_1 - $r2*($b1 - C_1) = $b2 \), therefore \( C_1 = $D1 \), and (substituting back into \( C_1 + C_2 = $b1 \) ), \( C_2 = $b1 - $D1 = $D2 \). $PAR -Substituting into the total solution and including the step function, we have +Substituting into the total solution and including the step function, we have \( ($D1 e^{-$r1 t} + $D2 e^{-$r2 t} + $mag \cos($w t + $phase))u(t) \) END_SOLUTION diff --git a/Contrib/NCSU/ECE220_Problem_7.10.pg b/Contrib/NCSU/ECE220_Problem_7.10.pg index 25b068bb55..6960500259 100644 --- a/Contrib/NCSU/ECE220_Problem_7.10.pg +++ b/Contrib/NCSU/ECE220_Problem_7.10.pg @@ -18,12 +18,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionLists.pl", "answerHints.pl", "parserFunction.pl", @@ -80,7 +80,7 @@ $denom = $r1 - $r2; $D1 = (-$r2*$b1 - $b2)/$denom; $D2 = ($r1*$b1 + $b2)/$denom; -$b3 = ($ydot0 + $a * $b1)/(-$wc*$b1) ; # needed for solution write up +$b3 = ($ydot0 + $a * $b1)/(-$wc*$b1) ; # needed for solution write up $b4 = sqrt($b3**2 + 1); Context()->flags->set( @@ -131,27 +131,27 @@ Instructions for forms of answers in differential equation problems: $BR For second order DEs, the roots of the characteristic equation may be real or complex. If the roots are real, the complementary solution is the weighted sum of real exponentials. Use C1 and C2 for the weights, where C1 is associated with the root with smaller magnitude. If the roots are complex, the complementary solution is the weighted sum of complex conjugate exponentials, which can be written as a constant times a decaying exponential times a cosine with phase. Use C1 for the constant and Phi for the phase. (Note: Some equations in the text give the constant multiplying the decaying exponential as 2C1. This was done for the derivation. The constant for this problem should be C1 alone.) -$PAR All numerical angles(phases) should be given in radian angles (not degrees). +$PAR All numerical angles(phases) should be given in radian angles (not degrees). -Given the differential equation \( y'' + $b y' + $c y = $A u(t) \) . +Given the differential equation \( y'' + $b y' + $c y = $A u(t) \) . \{ BeginList("OL",type=>"a") \} $ITEM Write the functional form of the complementary solution, \( y_c(t) \). $BR \( y_c(t) = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $ITEMSEP $ITEM Find the particular solution, \( y_p(t) \). $BR \( y_p(t) = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $ITEMSEP $ITEM Find the total solution, \( y(t) \) for the initial conditions \( y(0) = $y0 \) and \( y'(0) = $ydot0 \). $BR \( y(t) = \) \{ ans_rule(60) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} @@ -175,40 +175,40 @@ SOLUTION(EV3(<<'END_SOLUTION')); $PAR $BBOLD SOLUTION $EBOLD $PAR -Let's review the procedure for solving all differential equations: Find the form of the complementary solution, solve for the particular solution, find the coefficients of the complementary solution as part of the total solution from a system of equations determined by the initial conditions. +Let's review the procedure for solving all differential equations: Find the form of the complementary solution, solve for the particular solution, find the coefficients of the complementary solution as part of the total solution from a system of equations determined by the initial conditions. -To find the form of the complementary solution, we find the roots of the characteristic equation \( \lambda^2 + $b\lambda + $c = 0\).For this example, the roots are complex and are given by \( -$a \pm j$wc \). This means the complementary solution has the form \( v_c(t) = C_1 e^{(-$a + j$wc)t} + C_2 e^{(-$a - j$wc) t} \). We know that since the solution is real and the roots are complex conjugates that \( C_1 \) and \( C_2 \) are complex conjugates. This means that we can write the complementary solution in the form \( v_c(t) = C_1 e^{-$a t} cos($wc t + \phi) \). +To find the form of the complementary solution, we find the roots of the characteristic equation \( \lambda^2 + $b\lambda + $c = 0\).For this example, the roots are complex and are given by \( -$a \pm j$wc \). This means the complementary solution has the form \( v_c(t) = C_1 e^{(-$a + j$wc)t} + C_2 e^{(-$a - j$wc) t} \). We know that since the solution is real and the roots are complex conjugates that \( C_1 \) and \( C_2 \) are complex conjugates. This means that we can write the complementary solution in the form \( v_c(t) = C_1 e^{-$a t} cos($wc t + \phi) \). $PAR To find the particular solution, we know the form of the particular solution is the same as that of the driving function. In this case, it is a constant, \( v_p(t) = B \). We differentiate the particular solution as needed and substitute into the differential equation. Since \( \dot{v}_p(t) = \ddot{v}_p(t) = 0\), we have the equation, \( $c v_p(t) = $c B = $A.\) We solve for \( B \) to obtain \( B = $A/$c = $B.\) $PAR Now, we determine the coefficients of the complementary solution. The total solution has the form, \( v_t(t) = C_1 e^{-$a t} cos($wc t + \phi) + $B \), where we are leaving off the step function, \( u(t) = step(t) \) for now. We differentiate the total solution as needed and substitute into the equations for the initial conditions. This gives \( C_1 e^{-$a t} cos($wc t + \phi) + $B |_{t=0} = $y0 \) and for the derivative $BR -\( -$a C_1 e^{-$a t} cos($wc t + \phi) - $wc C_1 e^{-$a t} sin($wc t + \phi) |_{t=0} = $ydot0 \). +\( -$a C_1 e^{-$a t} cos($wc t + \phi) - $wc C_1 e^{-$a t} sin($wc t + \phi) |_{t=0} = $ydot0 \). $BR -Evaluating the functions at \( t = 0\), we have +Evaluating the functions at \( t = 0\), we have $BR \( C_1 cos( \phi) = $y0 -$B = $b1\), and $BR \( -$a C_1 cos(\phi) - $wc C_1 sin( \phi) = $ydot0 \). $BR -This is a nonlinear system of equations for \( C_1 \) and \( \phi \). We can write \( C_1 \) in terms of \( cos( \phi) \) as +This is a nonlinear system of equations for \( C_1 \) and \( \phi \). We can write \( C_1 \) in terms of \( cos( \phi) \) as $BR \( C_1 = $b1/cos( \phi) \), then substitute \( C_1 \) into the derivative equation, and obtain $BR \( -$a \cdot ($b1) - $wc \cdot ($b1) tan( \phi) = $ydot0 \). $BR -This gives the formula for \( tan( \phi) \) as +This gives the formula for \( tan( \phi) \) as $BR \( tan( \phi) = [$ydot0 + $a \cdot ($b1)]/[-$wc($b1)] = $b3 .\) $BR We need cosine and sine of \( \phi \), which we can obtain by use trig definitions: the side of the right triangle opposite \( \phi \) is \( $b3\) and the side adjacent is 1. The hypotenuse is \( \sqrt{($b3)^2 + 1} = $b4\), which gives the cosine as $BR -\( cos(\phi) = \frac{1}{$b4} \) which gives +\( cos(\phi) = \frac{1}{$b4} \) which gives $BR \( C_1 = ($b1) \cdot $b4 = $mag \) $BR -Substituting into the total solution and including the step function, we have +Substituting into the total solution and including the step function, we have $BR \( ($mag * e^{-$a t} * cos($wc t + $ph) + $B) u(t) \). diff --git a/Contrib/NCSU/ECE220_Problem_7.11.pg b/Contrib/NCSU/ECE220_Problem_7.11.pg index a9726aa88e..184ed537c5 100644 --- a/Contrib/NCSU/ECE220_Problem_7.11.pg +++ b/Contrib/NCSU/ECE220_Problem_7.11.pg @@ -18,13 +18,13 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PGchoicemacros.pl", - "AnswerFormatHelp.pl", + "unionLists.pl", "answerHints.pl", "parserFunction.pl", @@ -132,28 +132,28 @@ $PAR Instructions for forms of answers in differential equation problems: $BR For second order DEs, the roots of the characteristic equation may be real or complex. If the roots are real, the complementary solution is the weighted sum of real exponentials. Use C1 and C2 for the weights, where C1 is associated with the root with smaller magnitude. If the roots are complex, the complementary solution is the weighted sum of complex conjugate exponentials, which can be written as a constant times a decaying exponential times a cosine with phase. Use C1 for the constant and Phi for the phase. (Note: Some equations in the text give the constant multiplying the decaying exponential as 2C1. This was done for the derivation. The constant for this problem should be C1 alone.) -$PAR All numerical angles(phases) should be given in radian angles (not degrees). +$PAR All numerical angles(phases) should be given in radian angles (not degrees). $PAR -Given the differential equation \( y'' + $b y' + $c y = $A cos($w t + $theta) u(t) \) . +Given the differential equation \( y'' + $b y' + $c y = $A cos($w t + $theta) u(t) \) . \{ BeginList("OL",type=>"a") \} -$ITEM Write the functional form of the complementary solution, \( y_c(t) \), +$ITEM Write the functional form of the complementary solution, \( y_c(t) \), $BR \( y_c(t) = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $ITEMSEP $ITEM Find the particular solution, \( y_p(t) \). $BR \( y_p(t) = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $ITEMSEP $ITEM Find the total solution, \( y(t) \) for the initial condition \( y(0) = $y0 \) and \( y'(0) = $ydot0 \). $BR \( y(t) = \) \{ ans_rule(60) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} diff --git a/Contrib/NCSU/ECE220_Problem_7.25.pg b/Contrib/NCSU/ECE220_Problem_7.25.pg index b2d666a34d..25641feec4 100644 --- a/Contrib/NCSU/ECE220_Problem_7.25.pg +++ b/Contrib/NCSU/ECE220_Problem_7.25.pg @@ -23,7 +23,7 @@ loadMacros( "PGmatrixmacros.pl", "PGnumericalmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "PGcourse.pl" ); @@ -42,14 +42,14 @@ $w = random(2,9,1); $a[1] = random(2,6,1) * random(-1,1,2); $a[2] = $a[1]; $a[3] = random(2,6,1) * random(-1,1,2); -$a[4] = $a[3]; +$a[4] = $a[3]; $tag = random(1,4,1); $a[$tag] = - $a[$tag]; $m = random(2,5,1); $n = random(2,5,1); -if ($m == $n) {$n = $n+1;} +if ($m == $n) {$n = $n+1;} $p = random(2,9,1); $vd = Formula(" t*cos($w * t^2) "); @@ -69,10 +69,10 @@ $v1h2 = $v1h + $h*(-$c1)*$v1h + $h* $h*cos($w * $h**2); $v1h3 = $v1h2 + $h*(-$c1)*$v1h2+ $h* $h2*cos($w * $h2**2); BEGIN_TEXT -This problem is related to Problem 7.21 in the text. +This problem is related to Problem 7.21 in the text. $PAR Given the differential equation \( v' +$c1 v = $vd u(t)\) -$BR Using Euler's method to compute \( v(t+h) \) from information of the function at time \( t \), i.e., you know \( v(t) \) and initial condition. +$BR Using Euler's method to compute \( v(t+h) \) from information of the function at time \( t \), i.e., you know \( v(t) \) and initial condition. $PAR \( v(t+h)\) = \( v(t)\) + h \{ ans_rule(15)\}\( v(t)\) + h \{ ans_rule(15)\} diff --git a/Contrib/NCSU/ECE220_Problem_7.25a.pg b/Contrib/NCSU/ECE220_Problem_7.25a.pg index 1e38db588b..fc09dbc1b3 100644 --- a/Contrib/NCSU/ECE220_Problem_7.25a.pg +++ b/Contrib/NCSU/ECE220_Problem_7.25a.pg @@ -23,7 +23,7 @@ loadMacros( "PGmatrixmacros.pl", "PGnumericalmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "PGcourse.pl" ); @@ -42,26 +42,26 @@ $w = random(2,9,1); $a[1] = random(2,6,1) * random(-1,1,2); $a[2] = $a[1]; $a[3] = random(2,6,1) * random(-1,1,2); -$a[4] = $a[3]; +$a[4] = $a[3]; $tag = random(1,4,1); $a[$tag] = - $a[$tag]; $m = random(2,5,1); $n = random(2,5,1); -if ($m == $n) {$n = $n+1;} +if ($m == $n) {$n = $n+1;} $p = random(2,9,1); #$vd = Formula("sqrt( abs(cos($w * t^2)) ) "); $vd = "sqrt{ cos($w * t^2)) " ; -# det = $a[1] * $a[4] * e^(($m+$n)*t); +# det = $a[1] * $a[4] * e^(($m+$n)*t); BEGIN_TEXT -This problem is related to Problem 7.21 in the text. +This problem is related to Problem 7.21 in the text. $PAR Given the differential equation \(v' + $c1 v = \sqrt{ |cos($w * t^2)| } u(t)\) -$BR Write the equation for using Euler's method to compute \( v(t+h) \) from information of the function at time \( t \), i.e., you know \( v(t) \) and initial conditions. +$BR Write the equation for using Euler's method to compute \( v(t+h) \) from information of the function at time \( t \), i.e., you know \( v(t) \) and initial conditions. $PAR \( v(t+h)\) = \( v(t)\) + h \{ ans_rule(15)\}\( v(t)\) + h \{ ans_rule(15)\} diff --git a/Contrib/NCSU/ECE220_Problem_7.26.pg b/Contrib/NCSU/ECE220_Problem_7.26.pg index 887e852086..099df23f74 100644 --- a/Contrib/NCSU/ECE220_Problem_7.26.pg +++ b/Contrib/NCSU/ECE220_Problem_7.26.pg @@ -22,7 +22,7 @@ loadMacros( "PGmatrixmacros.pl", "PGnumericalmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "parserAssignment.pl", "parserImplicitEquation.pl", @@ -47,26 +47,26 @@ $w = random(10,100,10); $a[1] = random(2,6,1) * random(-1,1,2); $a[2] = $a[1]; $a[3] = random(2,6,1) * random(-1,1,2); -$a[4] = $a[3]; +$a[4] = $a[3]; $tag = random(1,4,1); $a[$tag] = - $a[$tag]; $m = random(2,5,1); $n = random(2,5,1); -if ($m == $n) {$n = $n+1;} +if ($m == $n) {$n = $n+1;} $p = random(2,9,1); $vd = Formula(" $c3 t cos(t) "); $yd = Formula(" $c4 sin($w t)^2 "); -# det = $a[1] * $a[4] * e^(($m+$n)*t); +# det = $a[1] * $a[4] * e^(($m+$n)*t); BEGIN_TEXT -This problem is related to Problem 7.23-24 in the text. +This problem is related to Problem 7.23-24 in the text. $PAR Given the system of differential equations -$PAR +$PAR \( v' + $c1 y = $vd u(t)\) $PAR \( y' + $c2 v = $yd u(t) \) @@ -78,8 +78,8 @@ Define the functions \( x_1 \) and \( x_2 \) in terms of \( v \) and \( y. \) $BR \( x_1 = \)\{ ans_rule(15)\} \( x_2 = \)\{ ans_rule(15)\} $PAR -\{ mbox( display_matrix([["\( \frac{d x_1(t)}{dt}\)"], - ["\( \frac{d x_2(t)}{dt}\) "]]), ' = ' , answer_matrix(2,2,15) , display_matrix([["\( x_1(t)\)"], +\{ mbox( display_matrix([["\( \frac{d x_1(t)}{dt}\)"], + ["\( \frac{d x_2(t)}{dt}\) "]]), ' = ' , answer_matrix(2,2,15) , display_matrix([["\( x_1(t)\)"], ["\( x_2(t)\)"]]) , '+', answer_matrix(2,1,15) ) \} END_TEXT diff --git a/Contrib/NCSU/ECE220_Problem_7.26a.pg b/Contrib/NCSU/ECE220_Problem_7.26a.pg index 3ee57ad7a0..b0e0a15ef7 100644 --- a/Contrib/NCSU/ECE220_Problem_7.26a.pg +++ b/Contrib/NCSU/ECE220_Problem_7.26a.pg @@ -22,7 +22,7 @@ loadMacros( "PGmatrixmacros.pl", "PGnumericalmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "parserAssignment.pl", "parserImplicitEquation.pl", @@ -47,26 +47,26 @@ $w = random(10,100,10); $a[1] = random(2,6,1) * random(-1,1,2); $a[2] = $a[1]; $a[3] = random(2,6,1) * random(-1,1,2); -$a[4] = $a[3]; +$a[4] = $a[3]; $tag = random(1,4,1); $a[$tag] = - $a[$tag]; $m = random(2,5,1); $n = random(2,5,1); -if ($m == $n) {$n = $n+1;} +if ($m == $n) {$n = $n+1;} $p = random(2,9,1); $vd = Formula(" $c3 t cos(t) "); $yd = Formula(" $c4 sin($w t)^2 "); -# det = $a[1] * $a[4] * e^(($m+$n)*t); +# det = $a[1] * $a[4] * e^(($m+$n)*t); BEGIN_TEXT -This problem is related to Problem 7.23-24 in the text. +This problem is related to Problem 7.23-24 in the text. $PAR Given the system of differential equations -$PAR +$PAR \( v' + $c1 y = $vd u(t)\) $PAR \( y' + $c2 v = $yd u(t) \) @@ -78,9 +78,9 @@ Define the functions \( x_1 \) and \( x_2 \) in terms of \( v \) and \( y. \) $BR \( x_1 = \)\{ ans_rule(15)\} \( x_2 = \)\{ ans_rule(15)\} $PAR -\{ mbox( display_matrix([["\( x_1(t+h)\)"], - ["\( x_2(t+h)\) "]]), ' = ' , display_matrix([["\( x_1(t)\)"], - ["\( x_2(t)\) "]]), "+", "h" , answer_matrix(2,2,15) , display_matrix([["\( x_1(t)\)"], +\{ mbox( display_matrix([["\( x_1(t+h)\)"], + ["\( x_2(t+h)\) "]]), ' = ' , display_matrix([["\( x_1(t)\)"], + ["\( x_2(t)\) "]]), "+", "h" , answer_matrix(2,2,15) , display_matrix([["\( x_1(t)\)"], ["\( x_2(t)\)"]]) , '+', "h" , answer_matrix(2,1,15) ) \} END_TEXT diff --git a/Contrib/NCSU/ECE220_Problem_7.26b.pg b/Contrib/NCSU/ECE220_Problem_7.26b.pg index 02c72b11fb..2e13f3a696 100644 --- a/Contrib/NCSU/ECE220_Problem_7.26b.pg +++ b/Contrib/NCSU/ECE220_Problem_7.26b.pg @@ -23,7 +23,7 @@ loadMacros( "PGmatrixmacros.pl", "PGnumericalmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "parserAssignment.pl", "parserImplicitEquation.pl", @@ -54,14 +54,14 @@ $w = random(10,100,10); $a[1] = random(2,6,1) * random(-1,1,2); $a[2] = $a[1]; $a[3] = random(2,6,1) * random(-1,1,2); -$a[4] = $a[3]; +$a[4] = $a[3]; $tag = random(1,4,1); $a[$tag] = - $a[$tag]; $m = random(2,5,1); $n = random(2,5,1); -if ($m == $n) {$n = $n+1;} +if ($m == $n) {$n = $n+1;} $p = random(2,9,1); $vd = Formula(" $c3 t cos(t) "); @@ -91,13 +91,13 @@ $yh2 = $yh + $h*(-$c2)*$vh + $h*$ydh; $vh3 = $vh2 + $h*(-$c1)*$yh2 + $h*$vdh2; $yh3 = $yh2 + $h*(-$c2)*$vh2 + $h*$ydh2; -# det = $a[1] * $a[4] * e^(($m+$n)*t); +# det = $a[1] * $a[4] * e^(($m+$n)*t); BEGIN_TEXT -This problem is related to Problem 7.23-24 in the text. +This problem is related to Problem 7.23-24 in the text. $PAR Given the system of differential equations -$PAR +$PAR \( v' + $c1 y = $vd u(t)\) $PAR \( y' + $c2 v = $yd u(t) \) diff --git a/Contrib/NCSU/ECE220_Problem_7.26c.pg b/Contrib/NCSU/ECE220_Problem_7.26c.pg index ff0d316930..494a0d75f7 100644 --- a/Contrib/NCSU/ECE220_Problem_7.26c.pg +++ b/Contrib/NCSU/ECE220_Problem_7.26c.pg @@ -19,7 +19,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -44,7 +44,7 @@ $w = random(10,100,10); $m = random(2,5,1); $n = random(2,5,1); -if ($m == $n) {$n = $n+1;} +if ($m == $n) {$n = $n+1;} $p = random(2,9,1); $vd = Formula(" $c3 t cos(t) "); @@ -77,10 +77,10 @@ $yh3 = $yh2 + $h*(-$c2)*$vh2 + $h*$ydh2; Context()->texStrings; BEGIN_TEXT -This problem is related to Problem 7.23-24 in the text. +This problem is related to Problem 7.23-24 in the text. $PAR Given the system of differential equations -$PAR +$PAR \( v' + $c1 y = $vd u(t)\) $PAR \( y' + $c2 v = $yd u(t) \) diff --git a/Contrib/NCSU/ECE220_Problem_7.27.pg b/Contrib/NCSU/ECE220_Problem_7.27.pg index d245e1c196..07cbb4b18c 100644 --- a/Contrib/NCSU/ECE220_Problem_7.27.pg +++ b/Contrib/NCSU/ECE220_Problem_7.27.pg @@ -23,7 +23,7 @@ loadMacros( "PGmatrixmacros.pl", "PGnumericalmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "parserAssignment.pl", "parserImplicitEquation.pl", @@ -46,22 +46,22 @@ $w = random(2,9,1); $a[1] = random(2,6,1) * random(-1,1,2); $a[2] = $a[1]; $a[3] = random(2,6,1) * random(-1,1,2); -$a[4] = $a[3]; +$a[4] = $a[3]; $tag = random(1,4,1); $a[$tag] = - $a[$tag]; $m = random(2,5,1); $n = random(2,5,1); -if ($m == $n) {$n = $n+1;} +if ($m == $n) {$n = $n+1;} $p = random(2,9,1); $vd = Formula(" cos($w * t)^3 "); -# det = $a[1] * $a[4] * e^(($m+$n)*t); +# det = $a[1] * $a[4] * e^(($m+$n)*t); BEGIN_TEXT -This problem is related to Problem 7.23-24 in the text. +This problem is related to Problem 7.23-24 in the text. $PAR Given the differential equation \( v'' + $c2 v' +$c1 v = $vd u(t)\) $BR Write the matrix equation for using Euler's method to compute \( v(t+h) \) from information of the function at time \( t \), i.e., you know \( v(t) \) and initial conditions. It is assumed you will use two auxiliary functions, \( v_1 \) and \( v_2. \) @@ -71,8 +71,8 @@ Define the functions \( v_1 \) and \( v_2 \) in terms of \( v \) and \( v'. \) $BR \( v_1 = \)\{ ans_rule(15)\} \( v_2 = \)\{ ans_rule(15)\} $PAR -\{ mbox( display_matrix([["\( \frac{d v_1(t)}{dt}\)"], - ["\( \frac{d v_2(t)}{dt}\) "]]), ' = ' , answer_matrix(2,2,15) , display_matrix([["\( v_1(t)\)"], +\{ mbox( display_matrix([["\( \frac{d v_1(t)}{dt}\)"], + ["\( \frac{d v_2(t)}{dt}\) "]]), ' = ' , answer_matrix(2,2,15) , display_matrix([["\( v_1(t)\)"], ["\( v_2(t)\)"]]) , '+', answer_matrix(2,1,15) ) \} END_TEXT diff --git a/Contrib/NCSU/ECE220_Problem_7.27a.pg b/Contrib/NCSU/ECE220_Problem_7.27a.pg index 371bf13520..27499e8dad 100644 --- a/Contrib/NCSU/ECE220_Problem_7.27a.pg +++ b/Contrib/NCSU/ECE220_Problem_7.27a.pg @@ -23,7 +23,7 @@ loadMacros( "PGmatrixmacros.pl", "PGnumericalmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "PGcourse.pl" ); @@ -42,22 +42,22 @@ $w = random(2,9,1); $a[1] = random(2,6,1) * random(-1,1,2); $a[2] = $a[1]; $a[3] = random(2,6,1) * random(-1,1,2); -$a[4] = $a[3]; +$a[4] = $a[3]; $tag = random(1,4,1); $a[$tag] = - $a[$tag]; $m = random(2,5,1); $n = random(2,5,1); -if ($m == $n) {$n = $n+1;} +if ($m == $n) {$n = $n+1;} $p = random(2,9,1); $vd = Formula(" cos($w * t)^3 "); -# det = $a[1] * $a[4] * e^(($m+$n)*t); +# det = $a[1] * $a[4] * e^(($m+$n)*t); BEGIN_TEXT -This problem is related to Problem 7.23-24 in the text. +This problem is related to Problem 7.23-24 in the text. $PAR Given the differential equation \( v'' + $c2 v' +$c1 v = $vd u(t)\) $BR Write the matrix equation for using Euler's method to compute \( v(t+h) \) from information of the function at time \( t \), i.e., you know \( v(t) \) and initial conditions. It is assumed you will use two auxiliary functions, \( v_1(t) \) and \( v_2(t). \) @@ -65,9 +65,9 @@ $BR Write the matrix equation for using Euler's method to compute \( v(t+h) \) f $PAR -\{ mbox( display_matrix([["\( v_1(t+h)\)"], - ["\( v_2(t+h)\) "]]), ' = ' , display_matrix([["\( v_1(t)\)"], - ["\( v_2(t)\) "]]), "+", "h" , answer_matrix(2,2,15) , display_matrix([["\( v_1(t)\)"], +\{ mbox( display_matrix([["\( v_1(t+h)\)"], + ["\( v_2(t+h)\) "]]), ' = ' , display_matrix([["\( v_1(t)\)"], + ["\( v_2(t)\) "]]), "+", "h" , answer_matrix(2,2,15) , display_matrix([["\( v_1(t)\)"], ["\( v_2(t)\)"]]) , '+', "h" , answer_matrix(2,1,15) ) \} END_TEXT diff --git a/Contrib/NCSU/ECE220_Problem_7.27b.pg b/Contrib/NCSU/ECE220_Problem_7.27b.pg index 63c2c017d6..ed67c693ec 100644 --- a/Contrib/NCSU/ECE220_Problem_7.27b.pg +++ b/Contrib/NCSU/ECE220_Problem_7.27b.pg @@ -23,7 +23,7 @@ loadMacros( "PGmatrixmacros.pl", "PGnumericalmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "PGcourse.pl" ); @@ -42,14 +42,14 @@ $w = random(2,9,1); $a[1] = random(2,6,1) * random(-1,1,2); $a[2] = $a[1]; $a[3] = random(2,6,1) * random(-1,1,2); -$a[4] = $a[3]; +$a[4] = $a[3]; $tag = random(1,4,1); $a[$tag] = - $a[$tag]; $m = random(2,5,1); $n = random(2,5,1); -if ($m == $n) {$n = $n+1;} +if ($m == $n) {$n = $n+1;} $p = random(2,9,1); $vd = Formula(" cos($w * t)^3 "); @@ -73,15 +73,15 @@ $v1h3 = $v1h2 + $h*$v2h2; $v2h3 = $v2h2 + $h*(-$c1*$v1h2 -$c2*$v2h2 + cos($w*$h2)**3); BEGIN_TEXT -This problem is related to Problem 7.23-24 in the text. +This problem is related to Problem 7.23-24 in the text. $PAR Given the differential equation \( v'' + $c2 v' +$c1 v = $vd u(t)\) $BR Write the matrix equation for using Euler's method to compute \( v(t+h) \) from information of the function at time \( t \), i.e., you know \( v(t) \) and initial conditions. It is assumed you will use two auxiliary functions, \( v_1(t) \) and \( v_2(t). \) $PAR -\{ mbox( display_matrix([["\( v_1(t+h)\)"], - ["\( v_2(t+h)\) "]]), ' = ' , display_matrix([["\( v_1(t)\)"], - ["\( v_2(t)\) "]]), "+", "h" , answer_matrix(2,2,15) , display_matrix([["\( v_1(t)\)"], +\{ mbox( display_matrix([["\( v_1(t+h)\)"], + ["\( v_2(t+h)\) "]]), ' = ' , display_matrix([["\( v_1(t)\)"], + ["\( v_2(t)\) "]]), "+", "h" , answer_matrix(2,2,15) , display_matrix([["\( v_1(t)\)"], ["\( v_2(t)\)"]]) , '+', "h" , answer_matrix(2,1,15) ) \} $PAR For \( h = $h \), compute the solution for \( t = 0, $h, $h2, $h3 \), when the initial conditions are \( v(0) = $v0 \) and \( v'(0) = $vdot0 \). diff --git a/Contrib/NCSU/ECE220_Problem_7.34.pg b/Contrib/NCSU/ECE220_Problem_7.34.pg index e76f02ad8d..50c81f7aff 100644 --- a/Contrib/NCSU/ECE220_Problem_7.34.pg +++ b/Contrib/NCSU/ECE220_Problem_7.34.pg @@ -18,12 +18,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -50,7 +50,7 @@ $A = $c*$D; Context()->texStrings; BEGIN_TEXT -Novel problem not in text. +Novel problem not in text. $PAR The driving function and particular solution that define a second order differential equation \( v'' + b v' + c v = v_s(t) \), are given by $BR \( v_s(t) = ($E e^{-$a t} + $A )u(t) \), @@ -62,12 +62,12 @@ $BR $BR \( b = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR $BR \( c = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/NCSU/ECE220_Problem_7.35.pg b/Contrib/NCSU/ECE220_Problem_7.35.pg index a510b72785..223b3f5bd8 100644 --- a/Contrib/NCSU/ECE220_Problem_7.35.pg +++ b/Contrib/NCSU/ECE220_Problem_7.35.pg @@ -18,12 +18,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionLists.pl", "contextPolynomialFactors.pl", "contextLimitedPowers.pl", @@ -67,7 +67,7 @@ $answer[2] = List(Real(-$r1),Real($r2)); # Main text Context()->texStrings; BEGIN_TEXT -This is a teaching problem. It is not required. It gives an exercise in the steps used to obtain a solution. +This is a teaching problem. It is not required. It gives an exercise in the steps used to obtain a solution. $PAR Let \( y'' + $p1 y' - $p0 y = 0 \). \{ BeginList('OL',type=>'a') \} @@ -77,24 +77,24 @@ for some unknown constant \( r \), by substituting it into the differential equation. $BR \{ ans_rule(30) \} \( = 0 \). -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $ITEMSEP -$ITEM Simplify and factor your equation in the previous part +$ITEM Simplify and factor your equation in the previous part as much as possible. Be sure to divide out any terms guaranteed to be nonzero. $BR -\{ ans_rule(30) \} \( = 0 \). -\{ AnswerFormatHelp("formulas") \} +\{ ans_rule(30) \} \( = 0 \). +\{ helpLink("formulas") \} $ITEMSEP -$ITEM Find all values of \( r \) such that \( y = e^{rx} \) +$ITEM Find all values of \( r \) such that \( y = e^{rx} \) satisfies the differential equation. If there is more than one correct answer, enter your answers as a comma separated list. $BR -\( r = \) +\( r = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} \{ EndList('OL') \} END_TEXT diff --git a/Contrib/NCSU/ECE220_Problem_7.7-8a.pg b/Contrib/NCSU/ECE220_Problem_7.7-8a.pg index 7680434d44..ab302dbf34 100644 --- a/Contrib/NCSU/ECE220_Problem_7.7-8a.pg +++ b/Contrib/NCSU/ECE220_Problem_7.7-8a.pg @@ -18,12 +18,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionLists.pl", "answerHints.pl", "parserFunction.pl", @@ -81,30 +81,30 @@ $answer[2] = Formula("($D e^(-$a t) + $B) u(t) ")->reduce; Context()->texStrings; BEGIN_TEXT -This problem is related to Problems 7.5-7.8 in the text. +This problem is related to Problems 7.5-7.8 in the text. $PAR -Given the differential equation \( y' + $a y = $A u(t) \). +Given the differential equation \( y' + $a y = $A u(t) \). $BR Remember to use \( u(t) \) in Webwork answers when the solution is for \( t \ge 0\). -$BR For differential equations, angles are given in radians. +$BR For differential equations, angles are given in radians. \{ BeginList("OL",type=>"a") \} -$ITEM Find the complementary solution, \( y_c(t) \), with constants denoted C1, +$ITEM Find the complementary solution, \( y_c(t) \), with constants denoted C1, C2, ... $BR \( y_c(t) = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $ITEMSEP $ITEM Find the particular solution, \( y_p(t) \). $BR \( y_p(t) = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $ITEMSEP $ITEM Find the total solution, \( y(t) \) for the initial condition \( y(0) = $y0 \). $BR \( y(t) = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} diff --git a/Contrib/NCSU/ECE220_Problem_7.7-8b.pg b/Contrib/NCSU/ECE220_Problem_7.7-8b.pg index 7b8661e777..706ad2c9b2 100644 --- a/Contrib/NCSU/ECE220_Problem_7.7-8b.pg +++ b/Contrib/NCSU/ECE220_Problem_7.7-8b.pg @@ -18,12 +18,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionLists.pl", "answerHints.pl", "parserFunction.pl", @@ -85,30 +85,30 @@ $answer[2] = Formula("($C e^(-$a t) + $mag cos($w t + $phase)) u(t) "); Context()->texStrings; BEGIN_TEXT -This problem is related to Problems 7.5-7.8 in the text. +This problem is related to Problems 7.5-7.8 in the text. $PAR -Given the differential equation \( y' + $a y = $A cos($w t + $theta) u(t) \). +Given the differential equation \( y' + $a y = $A cos($w t + $theta) u(t) \). $BR Remember to use \( u(t) \) in Webwork answers when the solution is for \( t \ge 0\). -$BR For differential equations, angles are given in radians. +$BR For differential equations, angles are given in radians. \{ BeginList("OL",type=>"a") \} -$ITEM Find the complementary solution, \( y_c(t) \), with constants denoted C1, +$ITEM Find the complementary solution, \( y_c(t) \), with constants denoted C1, C2, ... $BR \( y_c(t) = \) \{ ans_rule(50) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $ITEMSEP $ITEM Find the particular solution, \( y_p(t) \). $BR \( y_p(t) = \) \{ ans_rule(50) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $ITEMSEP $ITEM Find the total solution, \( y(t) \) for the initial condition \( y(0) = $y0 \). $BR \( y(t) = \) \{ ans_rule(50) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} diff --git a/Contrib/NCSU/ECE220_Problem_8.13-15a.pg b/Contrib/NCSU/ECE220_Problem_8.13-15a.pg index 31c4e6fe57..d4bc13f952 100644 --- a/Contrib/NCSU/ECE220_Problem_8.13-15a.pg +++ b/Contrib/NCSU/ECE220_Problem_8.13-15a.pg @@ -18,12 +18,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "unorderedAnswer.pl", "parserMultiAnswer.pl", @@ -73,8 +73,8 @@ do {$r3 = -random(1,9,1);} until ($r3 != $r1 & $r3 != $r2); # third root $c1 = non_zero_random(-6,6,1); # constant multiplying real exp. -$c2 = non_zero_random(-6,6,1); # constant multiplying real exp. -$c3 = non_zero_random(-6,6,1); # constant multiplying real exp. +$c2 = non_zero_random(-6,6,1); # constant multiplying real exp. +$c3 = non_zero_random(-6,6,1); # constant multiplying real exp. # combine first two roots into quadratic (a*s - b)/(s^2 - d1*s + d0) $a = $c1 + $c2; @@ -103,12 +103,12 @@ $ft = Formula("($c1*e^($r1*t) + $c2*e^($r2*t) + $c3*e^($r3*t))*u(t)")->reduce; Context()->texStrings; BEGIN_TEXT -This problem is related to Problems 8.9-13 in the text. +This problem is related to Problems 8.9-13 in the text. $PAR Consider the function \( \displaystyle F(s) = $frac \). $PAR -Find the partial fraction decomposition of \( F(s) \). Enter all factors as first order terms in \( s \), that is, all terms should be of the form \( \frac{c}{s-p} \), where \( c \) is a constant and the root \( p \) is a constant. Both \( c \) and \( p \) may be complex. +Find the partial fraction decomposition of \( F(s) \). Enter all factors as first order terms in \( s \), that is, all terms should be of the form \( \frac{c}{s-p} \), where \( c \) is a constant and the root \( p \) is a constant. Both \( c \) and \( p \) may be complex. $BR $BR \( \displaystyle $frac = \) \{ ans_rule(20)\} \(+\) \{ ans_rule(20)\} \(+\) \{ ans_rule(20)\} @@ -118,7 +118,7 @@ $BR $BR \( \displaystyle f(t) = {\mathcal L}^{-1} \left\lbrace F(s) \right\rbrace = \) \{ ans_rule(50) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT @@ -131,7 +131,7 @@ Context()->normalStrings; $showPartialCorrectAnswers = 1; # note that ALL answers in a problem must be unordered!! -# in this case, the terms are unordered and checked as such, but it is +# in this case, the terms are unordered and checked as such, but it is # highly unlikely anyone would enter the last answer in the wrong place # but so what if they did diff --git a/Contrib/NCSU/ECE220_Problem_8.13-15b.pg b/Contrib/NCSU/ECE220_Problem_8.13-15b.pg index c498a7c9c8..4b3d1752b5 100644 --- a/Contrib/NCSU/ECE220_Problem_8.13-15b.pg +++ b/Contrib/NCSU/ECE220_Problem_8.13-15b.pg @@ -18,12 +18,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "unorderedAnswer.pl", "parserMultiAnswer.pl", @@ -70,7 +70,7 @@ $a = -random(1,6,1); $w = random(1,6,1); # root is r = $a+i*$w $b = random(1,6,1); # roots for constant multiplying decaying exponential $d = non_zero_random(-6,6,1); # roots for constant multiplying decaying exp. -$c = non_zero_random(-5,5,1); # constant multiplying real exp. +$c = non_zero_random(-5,5,1); # constant multiplying real exp. $r1 = -random(1,6,1); # rate for real exp. $c2 = $c + 2*$b; @@ -85,13 +85,13 @@ $C0 = $a**2 + $w**2; $frac = Formula(" ($c2*s^2 +$c1*s + $c0 )/[(s-$r1)*(s^2 - 2*$a*s + (($a)**2 + ($w)**2))] ")->reduce; -$Fs = Formula("($c2*s^2 + $c1*s + $c0)/(s^3 + (-$r1-2*$a)*s^2 + (($a)**2 + ($w)**2+2*$r1*$a)*s - $r1*(($a)**2 + ($w)**2))")->reduce; +$Fs = Formula("($c2*s^2 + $c1*s + $c0)/(s^3 + (-$r1-2*$a)*s^2 + (($a)**2 + ($w)**2+2*$r1*$a)*s - $r1*(($a)**2 + ($w)**2))")->reduce; $fac1 = Formula("$c/(s-$r1)")->reduce; $fac2 = Formula("($b+($d * i))/(s-($a+($w*i)))")->reduce; $fac3 = Formula("($b-($d * i))/(s-($a-($w*i)))")->reduce; $B = 2*sqrt($b**2 + $d**2); -$phi = atan($d/$b); # since $b > 0, $phi is always in (-pi/2, pi/2) +$phi = atan($d/$b); # since $b > 0, $phi is always in (-pi/2, pi/2) $ft = Formula("($B*exp($a*t)*cos($w*t + $phi) + $c*exp($r1*t))*u(t)"); @@ -101,12 +101,12 @@ $ft = Formula("($B*exp($a*t)*cos($w*t + $phi) + $c*exp($r1*t))*u(t)"); Context()->texStrings; BEGIN_TEXT -This problem is related to Problems 8.9-11 in the text. +This problem is related to Problems 8.9-11 in the text. $PAR Consider the function \( \displaystyle F(s) = $frac \). $PAR -Find the partial fraction decomposition of \( F(s) \). Enter all factors as first order terms in \( s \), that is, all terms should be of the form \( \frac{c}{s-p} \), where \( c \) is a constant and the root \( p \) is a constant. Both \( c \) and \( p \) may be complex. +Find the partial fraction decomposition of \( F(s) \). Enter all factors as first order terms in \( s \), that is, all terms should be of the form \( \frac{c}{s-p} \), where \( c \) is a constant and the root \( p \) is a constant. Both \( c \) and \( p \) may be complex. $BR \( \displaystyle $Fs = \) \{ ans_rule(20)\} \(+\) \{ ans_rule(20)\} \(+\) \{ ans_rule(20)\} @@ -116,7 +116,7 @@ $BR $BR \( \displaystyle f(t) = {\mathcal L}^{-1} \left\lbrace F(s) \right\rbrace = \) \{ ans_rule(50) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT @@ -129,7 +129,7 @@ Context()->normalStrings; $showPartialCorrectAnswers = 1; # note that ALL answers in a problem must be unordered!! -# in this case, the terms are unordered and checked as such, but it is +# in this case, the terms are unordered and checked as such, but it is # highly unlikely anyone would enter the last answer in the wrong place # but so what if they did diff --git a/Contrib/NCSU/ECE220_Problem_8.14.pg b/Contrib/NCSU/ECE220_Problem_8.14.pg index ebd5e6fa7f..5a0edf7ce6 100644 --- a/Contrib/NCSU/ECE220_Problem_8.14.pg +++ b/Contrib/NCSU/ECE220_Problem_8.14.pg @@ -18,12 +18,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "parserMultiAnswer.pl", "PGcourse.pl" @@ -50,7 +50,7 @@ $aplusb = $a+$b; $C = random(1,5,1); $D = random(1,5,1); -$Fs = Compute("(($C+$D)*s + (-$C*$b - $D*$a))/(s^2 - $aplusb*s + $a*$b)")->reduce; +$Fs = Compute("(($C+$D)*s + (-$C*$b - $D*$a))/(s^2 - $aplusb*s + $a*$b)")->reduce; $fac1 = Compute("$C/(s-$a)"); $fac2 = Compute("$D/(s-$b)"); $ft = Compute("$C*e^($a*t) + $D*e^($b*t)"); @@ -83,7 +83,7 @@ $multians = MultiAnswer($fac1, $fac2)->with( Context()->texStrings; BEGIN_TEXT -This problem is a practice problem that is related to Problem 8.9 and 8.10 in the text. +This problem is a practice problem that is related to Problem 8.9 and 8.10 in the text. $PAR Consider the function \( \displaystyle F(s) = $Fs \). @@ -99,10 +99,10 @@ $ITEM Find the inverse Laplace transform of \( \displaystyle F(s) \) for \( t \ $BR $BR \( \displaystyle f(t) = {\mathcal L}^{-1} \left\lbrace F(s) \right\rbrace = \) -\{ - ans_rule(50) +\{ + ans_rule(50) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} \{ EndList('OL', type=>'a') \} END_TEXT diff --git a/Contrib/NCSU/ECE220_Problem_8.17a.pg b/Contrib/NCSU/ECE220_Problem_8.17a.pg index b4373ea877..cf1d2268dc 100644 --- a/Contrib/NCSU/ECE220_Problem_8.17a.pg +++ b/Contrib/NCSU/ECE220_Problem_8.17a.pg @@ -18,12 +18,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "unorderedAnswer.pl", "parserMultiAnswer.pl", @@ -73,8 +73,8 @@ do {$r3 = -random(1,9,1);} until ($r3 != $r1 & $r3 != $r2); # third root $c1 = non_zero_random(-6,6,1); # constant multiplying real exp. -$c2 = non_zero_random(-6,6,1); # constant multiplying real exp. -$c3 = non_zero_random(-6,6,1); # constant multiplying real exp. +$c2 = non_zero_random(-6,6,1); # constant multiplying real exp. +$c3 = non_zero_random(-6,6,1); # constant multiplying real exp. # combine first two roots into quadratic (a*s - b)/(s^2 - d1*s + d0) $a = $c1 + $c2; @@ -88,9 +88,9 @@ $f2 = $a + $c3; $f1 = $b + $a*$r3 + $c3*$d1; $f0 = $b*$r3 + $c3*$d0; -# constants for DiffEq +# constants for DiffEq $a1 = -($r1 + $r2); -$a0 = $r1*$r2; +$a0 = $r1*$r2; # solve for coefficients of diffEq y'' +a1*y'+a0 = A y_s @@ -101,7 +101,7 @@ $a0 = $r1*$r2; # this gives Y(s) = [s^2 * y0 + s*(ydot0 + a1*y0 - r3*y0) + (A -r3*ydot0 - r3*a1*y0) ]/[(s-r3)(s^2+a1*s+a0)] # using s^2*f2 - s*f1 + f0 = s^2 * y0 + s*(ydot0 + a1*y0 - r3*y0) + (A -r3*ydot0 - r3*a1*y0) # we have - this had a sign error and now works - left here for later checking -# $y0 = $f2; +# $y0 = $f2; # $ydot0 = -$f1 -$a1*$y0 + $r3*$y0; # $A = $f0 + $r3*$ydot0 + $r3*$a1*$y0; @@ -109,7 +109,7 @@ $a0 = $r1*$r2; # y(t) = c1*e^(r1*t) + c2*e^(r2*t) + c3*e^(r3*t) $y0 = $c1 + $c2 + $c3; $ydot0 = $r1*$c1 + $r2*$c2 + $r3*$c3; -$A = $c3*(($r3)**2 + $a1*$r3 + $a0); +$A = $c3*(($r3)**2 + $a1*$r3 + $a0); # old calc #$y0 = $c1+$c2+$c3; @@ -135,13 +135,13 @@ BEGIN_TEXT This problem is related to Problems 8.17 in the text. $PAR -Consider the differential equation \( y''(t) + $a1 y'(t) + $a0 y(t) = $A e^{$r3 t} u(t) \), +Consider the differential equation \( y''(t) + $a1 y'(t) + $a0 y(t) = $A e^{$r3 t} u(t) \), $BR with initial conditions \( y(0) = $y0,\) and \(y'(0) = $ydot0. \) $PAR -Find the Laplace transform of the solution \( Y(s). \) Write the solution as a single fraction in \( s \) +Find the Laplace transform of the solution \( Y(s). \) Write the solution as a single fraction in \( s \) $BR -\( Y(s) = \) \{ ans_rule(60)\} \{ AnswerFormatHelp("formulas") \} +\( Y(s) = \) \{ ans_rule(60)\} \{ helpLink("formulas") \} $PAR END_TEXT @@ -149,7 +149,7 @@ END_TEXT ANS( $frac-> cmp()); BEGIN_TEXT -Find the partial fraction decomposition of \( Y(s) \). Enter all factors as first order terms in \( s \), that is, all terms should be of the form \( \frac{c}{s-p} \), where \( c \) is a constant and the root \( p \) is a constant. Both \( c \) and \( p \) may be complex. +Find the partial fraction decomposition of \( Y(s) \). Enter all factors as first order terms in \( s \), that is, all terms should be of the form \( \frac{c}{s-p} \), where \( c \) is a constant and the root \( p \) is a constant. Both \( c \) and \( p \) may be complex. $BR $BR \( \displaystyle Y(s) = \) \{ ans_rule(20)\} \(+\) \{ ans_rule(20)\} \(+\) \{ ans_rule(20)\} @@ -163,7 +163,7 @@ $BR $BR \( \displaystyle y(t) = {\mathcal L}^{-1} \left\lbrace Y(s) \right\rbrace = \) \{ ans_rule(50) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT @@ -176,7 +176,7 @@ Context()->normalStrings; $showPartialCorrectAnswers = 1; # note that ALL answers in a problem must be unordered!! -# in this case, the terms are unordered and checked as such, but it is +# in this case, the terms are unordered and checked as such, but it is # highly unlikely anyone would enter the last answer in the wrong place # but so what if they did diff --git a/Contrib/NCSU/ECE220_Problem_8.19-22a.pg b/Contrib/NCSU/ECE220_Problem_8.19-22a.pg index 7e28ddb911..e66d300fe3 100644 --- a/Contrib/NCSU/ECE220_Problem_8.19-22a.pg +++ b/Contrib/NCSU/ECE220_Problem_8.19-22a.pg @@ -18,12 +18,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unorderedAnswer.pl", "parserMultiAnswer.pl", "parserFunction.pl", @@ -66,9 +66,9 @@ Context()->flags->set( # create differential equation with roots below # real roots for the input, real for the system- 1st order -# this means swapping r3 and r1 +# this means swapping r3 and r1 # force pure cosine f0r this problem -# PFE of c1/(s+r1) + c2/(s-r2) +# PFE of c1/(s+r1) + c2/(s-r2) $r1 = -random(1,9,1); # root for input @@ -106,11 +106,11 @@ $ft = Compute("($c1*e^($r1*t) + $c3*e^($r3*t))*u(t)"); Context()->texStrings; BEGIN_TEXT -This problem is related to Problems 8.16-21 in the text. -$BR +This problem is related to Problems 8.16-21 in the text. +$BR $PAR -Consider the differential equation \( y'(t) - $r3 y(t) = $A e^{ $r1 t} u(t) \), -$BR with initial condition \( y(0) = $y0,\) +Consider the differential equation \( y'(t) - $r3 y(t) = $A e^{ $r1 t} u(t) \), +$BR with initial condition \( y(0) = $y0,\) $PAR Find the Laplace transform of the solution \( Y(s). \) Write the solution as a single fraction in \( s \) @@ -120,12 +120,12 @@ ANS( $frac-> cmp() ); BEGIN_TEXT -\( Y(s) = \) \{ ans_rule(60)\} \{ AnswerFormatHelp("formulas") \} +\( Y(s) = \) \{ ans_rule(60)\} \{ helpLink("formulas") \} $PAR -Find the partial fraction decomposition of \( Y(s) \). Enter all factors as first order terms in \( s \), that is, all terms should be of the form \( \frac{c}{s-p} \), where \( c \) is a constant and the root \( p \) is a constant. Both \( c \) and \( p \) may be complex. +Find the partial fraction decomposition of \( Y(s) \). Enter all factors as first order terms in \( s \), that is, all terms should be of the form \( \frac{c}{s-p} \), where \( c \) is a constant and the root \( p \) is a constant. Both \( c \) and \( p \) may be complex. $BR $BR -\( \displaystyle Y(s) = \) \{ ans_rule(20)\} \(+\) \{ ans_rule(20)\} +\( \displaystyle Y(s) = \) \{ ans_rule(20)\} \(+\) \{ ans_rule(20)\} END_TEXT UNORDERED_ANS( $fac1->cmp(), $fac3->cmp()); @@ -137,7 +137,7 @@ $BR $BR \( \displaystyle y(t) = {\mathcal L}^{-1} \left\lbrace Y(s) \right\rbrace = \) \{ ans_rule(50) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT diff --git a/Contrib/NCSU/ECE220_Problem_8.19-22b.pg b/Contrib/NCSU/ECE220_Problem_8.19-22b.pg index 2e3567feae..fe078b5563 100644 --- a/Contrib/NCSU/ECE220_Problem_8.19-22b.pg +++ b/Contrib/NCSU/ECE220_Problem_8.19-22b.pg @@ -17,12 +17,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unorderedAnswer.pl", "parserMultiAnswer.pl", "parserFunction.pl", @@ -63,7 +63,7 @@ Context()->flags->set( # create differential equation with roots below # complex roots for the input, real for the system- 1st order -# this means swapping r3 and (r1 and r2) +# this means swapping r3 and (r1 and r2) # force pure cosine f0r this problem # PFE of c1/(s+r1) + c2/(s-r2) + c3/(s-r3) @@ -111,7 +111,7 @@ $c2im = -($c2-$c2conj)*i; $c2re = $c2+$c2conj; # compute phi in range [-pi,pi] -if ($c2re > 0 ) {$phi = atan($c2im/$c2re);} +if ($c2re > 0 ) {$phi = atan($c2im/$c2re);} elsif ($c2im > 0) {$phi = atan($c2im/$c2re) + pi;} else {$phi = atan($c2im/$c2re) - pi;} @@ -129,16 +129,16 @@ $ft = Formula("(2*$mag*cos($w*t+$phi) + $c3*e^($r3*t))*u(t)")->reduce; Context()->texStrings; BEGIN_TEXT -This problem is related to Problems 8.16-21 in the text. +This problem is related to Problems 8.16-21 in the text. $PAR -Consider the differential equation \( y'(t) - $r3 y(t) = $A cos( $w t) u(t) \), -$BR with initial condition \( y(0) = $y0,\) +Consider the differential equation \( y'(t) - $r3 y(t) = $A cos( $w t) u(t) \), +$BR with initial condition \( y(0) = $y0,\) $PAR Find the Laplace transform of the solution \( Y(s). \) Write the solution as a single fraction in \( s \) $BR -\( Y(s) = \) \{ ans_rule(60)\} \{ AnswerFormatHelp("formulas") \} +\( Y(s) = \) \{ ans_rule(60)\} \{ helpLink("formulas") \} $PAR END_TEXT @@ -148,7 +148,7 @@ ANS( $frac-> cmp()); BEGIN_TEXT -Find the partial fraction decomposition of \( Y(s) \). Enter all factors as first order terms in \( s \), that is, all terms should be of the form \( \frac{c}{s-p} \), where \( c \) is a constant and the root \( p \) is a constant. Both \( c \) and \( p \) may be complex. +Find the partial fraction decomposition of \( Y(s) \). Enter all factors as first order terms in \( s \), that is, all terms should be of the form \( \frac{c}{s-p} \), where \( c \) is a constant and the root \( p \) is a constant. Both \( c \) and \( p \) may be complex. $BR $BR \( \displaystyle Y(s) = \) \{ ans_rule(20)\} \(+\) \{ ans_rule(20)\} \(+\) \{ ans_rule(20)\} @@ -165,7 +165,7 @@ $BR $BR \( \displaystyle y(t) = {\mathcal L}^{-1} \left\lbrace Y(s) \right\rbrace = \) \{ ans_rule(50) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT @@ -178,7 +178,7 @@ Context()->normalStrings; $showPartialCorrectAnswers = 1; # note that ALL answers in a problem must be unordered!! -# in this case, the terms are unordered and checked as such, but it is +# in this case, the terms are unordered and checked as such, but it is # highly unlikely anyone would enter the last answer in the wrong place # but so what if they did diff --git a/Contrib/NCSU/ECE220_Problem_8.19-22c.pg b/Contrib/NCSU/ECE220_Problem_8.19-22c.pg index 4a66ec0756..a8e3dd996f 100644 --- a/Contrib/NCSU/ECE220_Problem_8.19-22c.pg +++ b/Contrib/NCSU/ECE220_Problem_8.19-22c.pg @@ -18,12 +18,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unorderedAnswer.pl", "parserMultiAnswer.pl", "parserFunction.pl", @@ -77,8 +77,8 @@ $r3 = -random(1,9,1); ; # third root $c1r = non_zero_random(-6,6,1); # constant multiplying complex exp. $c1i = non_zero_random(0,6,1); # constant multiplying complex exp. $c1 = $c1r + $c1i*i; -$c2 = $c1r - $c1i*i; -$c3 = non_zero_random(-6,6,1); # constant multiplying real exp. +$c2 = $c1r - $c1i*i; +$c3 = non_zero_random(-6,6,1); # constant multiplying real exp. # combine first two roots into quadratic (a*s - b)/(s^2 - d1*s + d0) $a = $c1 + $c2; @@ -92,9 +92,9 @@ $f2 = $a + $c3; $f1 = $b + $a*$r3 + $c3*$d1; $f0 = $b*$r3 + $c3*$d0; -# constants for DiffEq +# constants for DiffEq $a1 = -($r1 + $r2); -$a0 = $r1*$r2; +$a0 = $r1*$r2; # solve for coefficients of diffEq y'' +a1*y'+a0 = A y_s # where Y_s(s) = A/(s-r3) r3 is real @@ -109,7 +109,7 @@ $A = $r3*($ydot0+$y0*(-$r1-$r2)) + $c1*$r2*$r3 + $c2*$r1*$r3 + $c3*$r2*$r1; # y(t) = c1*e^(r1*t) + c2*e^(r2*t) + c3*e^(r3*t) $y0 = $c1 + $c2 + $c3; $ydot0 = $r1*$c1 + $r2*$c2 + $r3*$c3; -$A = $c3*(($r3)**2 + $a1*$r3 + $a0); +$A = $c3*(($r3)**2 + $a1*$r3 + $a0); $frac = Formula(" ($f2 s^2 - $f1*s + $f0 )/[(s-$r3)*(s^2 - $d1*s + $d0)] ")->reduce; @@ -120,7 +120,7 @@ $fac3 = Formula("$c3/(s-$r3)")->reduce; $mag = abs($c1)*2; # compute phi in range [-pi,pi] -if ($c1r > 0 ) {$phi = atan($c1i/$c1r);} +if ($c1r > 0 ) {$phi = atan($c1i/$c1r);} elsif ($c1i > 0) {$phi = atan($c1i/$c1r) + pi;} else {$phi = atan($c1i/$c1r) - pi;} @@ -135,13 +135,13 @@ BEGIN_TEXT This problem is related to Problems 8.16-21 in the text. $PAR -Consider the differential equation \( y''(t) + $a1 y'(t) + $a0 y(t) = $A e^{$r3 t} u(t) \), +Consider the differential equation \( y''(t) + $a1 y'(t) + $a0 y(t) = $A e^{$r3 t} u(t) \), $BR with initial conditions \( y(0) = $y0,\) and \(y'(0) = $ydot0. \) $PAR Find the Laplace transform of the solution \( Y(s). \) Write the solution as a single fraction in \( s \) $BR -\( Y(s) = \) \{ ans_rule(60)\} \{ AnswerFormatHelp("formulas") \} +\( Y(s) = \) \{ ans_rule(60)\} \{ helpLink("formulas") \} $PAR END_TEXT @@ -149,7 +149,7 @@ ANS( $frac-> cmp()); BEGIN_TEXT -Find the partial fraction decomposition of \( Y(s) \). Enter all factors as first order terms in \( s \), that is, all terms should be of the form \( \frac{c}{s-p} \), where \( c \) is a constant and the root \( p \) is a constant. Both \( c \) and \( p \) may be complex. +Find the partial fraction decomposition of \( Y(s) \). Enter all factors as first order terms in \( s \), that is, all terms should be of the form \( \frac{c}{s-p} \), where \( c \) is a constant and the root \( p \) is a constant. Both \( c \) and \( p \) may be complex. $BR $BR \( \displaystyle Y(s) = \) \{ ans_rule(20)\} \(+\) \{ ans_rule(20)\} \(+\) \{ ans_rule(20)\} @@ -164,7 +164,7 @@ $BR $BR \( \displaystyle y(t) = {\mathcal L}^{-1} \left\lbrace Y(s) \right\rbrace = \) \{ ans_rule(50) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT @@ -177,7 +177,7 @@ Context()->normalStrings; $showPartialCorrectAnswers = 1; # note that ALL answers in a problem must be unordered!! -# in this case, the terms are unordered and checked as such, but it is +# in this case, the terms are unordered and checked as such, but it is # highly unlikely anyone would enter the last answer in the wrong place # but so what if they did diff --git a/Contrib/NCSU/ECE220_Problem_8.19-22d.pg b/Contrib/NCSU/ECE220_Problem_8.19-22d.pg index 9ff85b29f7..42780beda3 100644 --- a/Contrib/NCSU/ECE220_Problem_8.19-22d.pg +++ b/Contrib/NCSU/ECE220_Problem_8.19-22d.pg @@ -19,12 +19,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "parserFunction.pl", "PGcourse.pl" @@ -88,7 +88,7 @@ $BR \{ ans_rule(40) \} \( = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $ITEMSEP $ITEM Solve your equation for \( Y(s) \). diff --git a/Contrib/NCSU/ECE220_Problem_8.19-22e.pg b/Contrib/NCSU/ECE220_Problem_8.19-22e.pg index 295495538d..5d7e482fe6 100644 --- a/Contrib/NCSU/ECE220_Problem_8.19-22e.pg +++ b/Contrib/NCSU/ECE220_Problem_8.19-22e.pg @@ -18,12 +18,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "parserFunction.pl", "PGcourse.pl" @@ -74,18 +74,18 @@ Consider the initial value problem \{ BeginList('OL', type=>'a') \} -$ITEM Take the Laplace transform of both sides of the -given differential equation to create the corresponding -algebraic equation. Denote the Laplace transform of -\( y(t) \) by \( Y(s) \). Do not move any terms from -one side of the equation to the other (until you get +$ITEM Take the Laplace transform of both sides of the +given differential equation to create the corresponding +algebraic equation. Denote the Laplace transform of +\( y(t) \) by \( Y(s) \). Do not move any terms from +one side of the equation to the other (until you get to part (b) below). $BR $BR \{ ans_rule(40) \} \( = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $ITEMSEP $ITEM Solve your equation for \( Y(s) \). diff --git a/Contrib/NCSU/ECE220_Problem_8.21a.pg b/Contrib/NCSU/ECE220_Problem_8.21a.pg index ecf211efec..3ffffea4f8 100644 --- a/Contrib/NCSU/ECE220_Problem_8.21a.pg +++ b/Contrib/NCSU/ECE220_Problem_8.21a.pg @@ -18,12 +18,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "parserFunction.pl", "PGcourse.pl" @@ -87,7 +87,7 @@ $BR \{ ans_rule(40) \} \( = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $ITEMSEP $ITEM Solve your equation for \( Y(s) \). diff --git a/Contrib/NCSU/ECE220_Problem_8.23-26a.pg b/Contrib/NCSU/ECE220_Problem_8.23-26a.pg index 0f261ed9d1..d985a746e1 100644 --- a/Contrib/NCSU/ECE220_Problem_8.23-26a.pg +++ b/Contrib/NCSU/ECE220_Problem_8.23-26a.pg @@ -18,12 +18,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "unorderedAnswer.pl", "parserMultiAnswer.pl", @@ -73,10 +73,10 @@ do {$r3 = -random(1,9,1);} until ($r3 != $r1 & $r3 != $r2); # third root $c0 = non_zero_random(-6,6,1); # constant multiplying real exp. -$c1 = random(-6,6,1); # constant multiplying real exp. -$c2 = non_zero_random(-6,6,1); # constant multiplying real exp. +$c1 = random(-6,6,1); # constant multiplying real exp. +$c2 = non_zero_random(-6,6,1); # constant multiplying real exp. -# +# @@ -88,16 +88,16 @@ $frac = Formula(" 1/($c2*s^2 + $c1*s + $c0) "); Context()->texStrings; BEGIN_TEXT -This problem is related to Problems 8.23-26 in the text. +This problem is related to Problems 8.23-26 in the text. $PAR -A system is described by the differential equation \( $c2 y''(t) + $c1 y'(t) + $c0 y(t) = y_s(t) \), +A system is described by the differential equation \( $c2 y''(t) + $c1 y'(t) + $c0 y(t) = y_s(t) \), $PAR Find the transfer function associated with this system \( H(s). \) Write the solution as a single fraction in \( s \) $BR -\( H(s) = \) \{ ans_rule(60)\} \{ AnswerFormatHelp("formulas") \} +\( H(s) = \) \{ ans_rule(60)\} \{ helpLink("formulas") \} $PAR @@ -111,7 +111,7 @@ Context()->normalStrings; $showPartialCorrectAnswers = 1; # note that ALL answers in a problem must be unordered!! -# in this case, the terms are unordered and checked as such, but it is +# in this case, the terms are unordered and checked as such, but it is # highly unlikely anyone would enter the last answer in the wrong place # but so what if they did diff --git a/Contrib/NCSU/ECE220_Problem_8.23-26b.pg b/Contrib/NCSU/ECE220_Problem_8.23-26b.pg index 0a8de88eee..0b8697a5b3 100644 --- a/Contrib/NCSU/ECE220_Problem_8.23-26b.pg +++ b/Contrib/NCSU/ECE220_Problem_8.23-26b.pg @@ -19,12 +19,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "answerHints.pl", "parserAssignment.pl", @@ -69,7 +69,7 @@ where \( a, b, c \) are constants and \( f(t) \) is a known function. We can vi $BR $BR -Suppose an input \( f(t) = $ft \), when applied to the linear system above, produces the output \( y(t) = $yt, \ t\geq 0. \) +Suppose an input \( f(t) = $ft \), when applied to the linear system above, produces the output \( y(t) = $yt, \ t\geq 0. \) \{ BeginList('OL', type=>'a') \} @@ -91,7 +91,7 @@ $BR \( \displaystyle \Theta(s) = \) \{ ans_rule(60) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} \{ EndList('OL', type=>'a') \} END_TEXT diff --git a/Contrib/NCSU/ECE220_Problem_8.3.pg b/Contrib/NCSU/ECE220_Problem_8.3.pg index 3e39154b80..8ef13b37bb 100644 --- a/Contrib/NCSU/ECE220_Problem_8.3.pg +++ b/Contrib/NCSU/ECE220_Problem_8.3.pg @@ -18,12 +18,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "unorderedAnswer.pl", "parserMultiAnswer.pl", @@ -73,8 +73,8 @@ do {$r3 = -random(1,9,1);} until ($r3 != $r1 & $r3 != $r2); # third root $c1 = non_zero_random(-6,6,1); # constant multiplying real exp. -$c2 = non_zero_random(-6,6,1); # constant multiplying real exp. -$c3 = non_zero_random(-6,6,1); # constant multiplying real exp. +$c2 = non_zero_random(-6,6,1); # constant multiplying real exp. +$c3 = non_zero_random(-6,6,1); # constant multiplying real exp. # combine first two roots into quadratic (a*s - b)/(s^2 - d1*s + d0) $a = $c1 + $c2; @@ -88,9 +88,9 @@ $f2 = $a + $c3; $f1 = $b + $a*$r3 + $c3*$d1; $f0 = $b*$r3 + $c3*$d0; -# constants for DiffEq +# constants for DiffEq $a1 = -($r1 + $r2); -$a0 = $r1*$r2; +$a0 = $r1*$r2; # solve for coefficients of diffEq y'' +a1*y'+a0 = A y_s @@ -101,7 +101,7 @@ $a0 = $r1*$r2; # this gives Y(s) = [s^2 * y0 + s*(ydot0 + a1*y0 - r3*y0) + (A -r3*ydot0 - r3*a1*y0) ]/[(s-r3)(s^2+a1*s+a0)] # using s^2*f2 - s*f1 + f0 = s^2 * y0 + s*(ydot0 + a1*y0 - r3*y0) + (A -r3*ydot0 - r3*a1*y0) # we have - this had a sign error and now works - left here for later checking -# $y0 = $f2; +# $y0 = $f2; # $ydot0 = -$f1 -$a1*$y0 + $r3*$y0; # $A = $f0 + $r3*$ydot0 + $r3*$a1*$y0; @@ -109,7 +109,7 @@ $a0 = $r1*$r2; # y(t) = c1*e^(r1*t) + c2*e^(r2*t) + c3*e^(r3*t) $y0 = $c1 + $c2 + $c3; $ydot0 = $r1*$c1 + $r2*$c2 + $r3*$c3; -$A = $c3*(($r3)**2 + $a1*$r3 + $a0); +$A = $c3*(($r3)**2 + $a1*$r3 + $a0); # old calc #$y0 = $c1+$c2+$c3; @@ -135,13 +135,13 @@ BEGIN_TEXT This problem is related to Problems 8.16-21 in the text. $PAR -Consider the differential equation \( y''(t) + $a1 y'(t) + $a0 y(t) = $A e^{$r3 t} u(t) \), +Consider the differential equation \( y''(t) + $a1 y'(t) + $a0 y(t) = $A e^{$r3 t} u(t) \), $BR with initial conditions \( y(0) = $y0,\) and \(y'(0) = $ydot0. \) $PAR -Find the Laplace transform of the solution \( Y(s). \) Write the solution as a single fraction in \( s \) +Find the Laplace transform of the solution \( Y(s). \) Write the solution as a single fraction in \( s \) $BR -\( Y(s) = \) \{ ans_rule(60)\} \{ AnswerFormatHelp("formulas") \} +\( Y(s) = \) \{ ans_rule(60)\} \{ helpLink("formulas") \} $PAR END_TEXT @@ -149,7 +149,7 @@ END_TEXT ANS( $frac-> cmp()); BEGIN_TEXT -Find the partial fraction decomposition of \( Y(s) \). Enter all factors as first order terms in \( s \), that is, all terms should be of the form \( \frac{c}{s-p} \), where \( c \) is a constant and the root \( p \) is a constant. Both \( c \) and \( p \) may be complex. +Find the partial fraction decomposition of \( Y(s) \). Enter all factors as first order terms in \( s \), that is, all terms should be of the form \( \frac{c}{s-p} \), where \( c \) is a constant and the root \( p \) is a constant. Both \( c \) and \( p \) may be complex. $BR $BR \( \displaystyle Y(s) = \) \{ ans_rule(20)\} \(+\) \{ ans_rule(20)\} \(+\) \{ ans_rule(20)\} @@ -163,7 +163,7 @@ $BR $BR \( \displaystyle y(t) = {\mathcal L}^{-1} \left\lbrace Y(s) \right\rbrace = \) \{ ans_rule(50) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT @@ -176,7 +176,7 @@ Context()->normalStrings; $showPartialCorrectAnswers = 1; # note that ALL answers in a problem must be unordered!! -# in this case, the terms are unordered and checked as such, but it is +# in this case, the terms are unordered and checked as such, but it is # highly unlikely anyone would enter the last answer in the wrong place # but so what if they did diff --git a/Contrib/NCSU/ECE220_Problem_8.7.pg b/Contrib/NCSU/ECE220_Problem_8.7.pg index 69cd59246c..36dd4e4bb0 100644 --- a/Contrib/NCSU/ECE220_Problem_8.7.pg +++ b/Contrib/NCSU/ECE220_Problem_8.7.pg @@ -17,12 +17,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "answerHints.pl", "parserAssignment.pl", @@ -71,7 +71,7 @@ $diff = $v2 - $v1; $answera = Formula("$v1*u(t-$d1) + $diff*u(t-$d2) - $v2*u(t-$d3)")->reduce; -#$answera->{limits} = [$d2-1,$d3+1]; #[0,$d3+1] is too lax since it selects test point randomly. for a large interval, we miss critical points - +#$answera->{limits} = [$d2-1,$d3+1]; #[0,$d3+1] is too lax since it selects test point randomly. for a large interval, we miss critical points - # better to use test_points below # to use individual test points you MUST give values for ALL variables that are set by the Context()->variables->are(t=>"Real",s=>"Real" command @@ -87,10 +87,10 @@ $answerb = Formula("$v1*e^(-$d1*s)/s + $diff*e^(-$d2*s)/s - $v2*e^(-$d3*s)/s ")- Context()->texStrings; BEGIN_TEXT -This problem is related to Problem 8.3 and 8.4 in the text. +This problem is related to Problem 8.3 and 8.4 in the text. $PAR -Consider the function \[ f(t) = \left\lbrace \begin{array}{ l l } 0 & \mbox{ if } 0\leq t < $d1 \\ $v1 & \mbox{ if } $d1 \leq t < $d2 \\ -$v2 & \mbox{ if } $d2 \leq t < $d3 \\ +Consider the function \[ f(t) = \left\lbrace \begin{array}{ l l } 0 & \mbox{ if } 0\leq t < $d1 \\ $v1 & \mbox{ if } $d1 \leq t < $d2 \\ +$v2 & \mbox{ if } $d2 \leq t < $d3 \\ 0 & \mbox{ if } $d3 \leq t < \infty. \end{array} \right. \] @@ -98,16 +98,16 @@ $v2 & \mbox{ if } $d2 \leq t < $d3 \\ $PAR Use the graph of this function to write it in terms of the step function. Use \( u(t-a) \) for the step function shifted \( a \) units horizontally. $BR $BR -\( f(t) = \) +\( f(t) = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $PAR Find the Laplace transform \( F(s) = {\mathcal L}\left\lbrace f(t) \right\rbrace \) for \( s \neq 0 \). $BR $BR \( \displaystyle F(s) = {\mathcal L}\left\lbrace f(t) \right\rbrace = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT diff --git a/Contrib/NCSU/ECE220_Problem_8.7a.pg b/Contrib/NCSU/ECE220_Problem_8.7a.pg index d4382e9ccf..ed34d957e2 100644 --- a/Contrib/NCSU/ECE220_Problem_8.7a.pg +++ b/Contrib/NCSU/ECE220_Problem_8.7a.pg @@ -18,12 +18,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "answerHints.pl", "parserAssignment.pl", @@ -69,14 +69,14 @@ $answer = Compute("e^(-$a*s)*1/(s-$b)")->reduce; Context()->texStrings; BEGIN_TEXT -This is a practice problem that is related to Problems 8.1-4 in the text. +This is a practice problem that is related to Problems 8.1-4 in the text. $PAR Find the Laplace transform \( F(s) = {\mathcal L}\left\lbrace f(t) \right\rbrace \) of the function \( f(t) = $ft \), defined on the interval \( t \geq 0 \). $BR $BR \( \displaystyle F(s) = {\mathcal L}\left\lbrace $ft \right\rbrace = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/NCSU/ECE220_Problem_8.7b.pg b/Contrib/NCSU/ECE220_Problem_8.7b.pg index 04186d7498..d05b743286 100644 --- a/Contrib/NCSU/ECE220_Problem_8.7b.pg +++ b/Contrib/NCSU/ECE220_Problem_8.7b.pg @@ -17,12 +17,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "answerHints.pl", "parserAssignment.pl", @@ -63,7 +63,7 @@ $BR $BR \( \displaystyle F(s) = {\mathcal L}\left\lbrace $ft \right\rbrace = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/NCSU/ECE220_Problem_8.9.pg b/Contrib/NCSU/ECE220_Problem_8.9.pg index 965e973ae4..2b1e5caa14 100644 --- a/Contrib/NCSU/ECE220_Problem_8.9.pg +++ b/Contrib/NCSU/ECE220_Problem_8.9.pg @@ -19,12 +19,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "answerHints.pl", "parserAssignment.pl", @@ -50,17 +50,17 @@ $c = random(9,12,1); $mc = new_checkbox_multiple_choice(); $mc -> qa ( -"Select ALL terms below that occur in the general form of the complete partial fraction decomposition of \( F(s) \). The capital letters A, B, C, . . . , L denote constants.", +"Select ALL terms below that occur in the general form of the complete partial fraction decomposition of \( F(s) \). The capital letters A, B, C, . . . , L denote constants.", "\( \displaystyle\frac{Bs+C}{s^2+$b} \) $BR", -"\( \displaystyle\frac{Es+F}{(s^2+$b)^2} \) $BR", -"\( \displaystyle\frac{G}{s+$c} \) $BR", +"\( \displaystyle\frac{Es+F}{(s^2+$b)^2} \) $BR", +"\( \displaystyle\frac{G}{s+$c} \) $BR", "\( \displaystyle\frac{J}{(s+$c)^2} \) $BR" ); $mc -> extra( "\( \displaystyle\frac{A}{s^2+$b} \) $BR", "\( \displaystyle\frac{D}{(s^2+$b)^2} \) $BR", -"\( \displaystyle\frac{Hs+I}{s+$c} \) $BR", +"\( \displaystyle\frac{Hs+I}{s+$c} \) $BR", "\( \displaystyle\frac{Ks+L}{(s+$c)^2} \) $BR" ); diff --git a/Contrib/NCSU/ECE220_Problem_9.11.pg b/Contrib/NCSU/ECE220_Problem_9.11.pg index a8935f857b..261544325e 100644 --- a/Contrib/NCSU/ECE220_Problem_9.11.pg +++ b/Contrib/NCSU/ECE220_Problem_9.11.pg @@ -19,7 +19,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "parserMultiAnswer.pl", "parserFunction.pl", @@ -71,13 +71,13 @@ $alpha4p = -$alpha1p; TEXT(EV2(< eval(n=>-2); $alpham1 = $FSeries -> eval(n=>-1); -$alpha0 = Compute(($d1*$a1 + $d2*$a2)/$T); +$alpha0 = Compute(($d1*$a1 + $d2*$a2)/$T); $alphap1 = $FSeries -> eval(n=>1); $alphap2 = $FSeries -> eval(n=>2); @@ -74,12 +74,12 @@ if ($alpha0 < 0) {$alpha0p = pi;} # check back for adding pi for correct quadrant $alphap2r = 0.5*($alphap2 + conj($alphap2)); $alphap2i = (-1)*i*0.5*($alphap2 - conj($alphap2)); -if ($alphap2r > 0 ) {$alphap2p = atan($alphap2i/$alphap2r);} +if ($alphap2r > 0 ) {$alphap2p = atan($alphap2i/$alphap2r);} elsif ($alphap2i > 0) {$alphap2p = atan($alphap2i/$alphap2r) + pi;} else {$alphap2p = atan($alphap2i/$alphap2r) - pi;} $alphap1r = 0.5*($alphap1 + conj($alphap1)); $alphap1i = (-1)*i*0.5*($alphap1 - conj($alphap1)); -if ($alphap1r > 0 ) {$alphap1p = atan($alphap1i/$alphap1r);} +if ($alphap1r > 0 ) {$alphap1p = atan($alphap1i/$alphap1r);} elsif ($alphap1i > 0) {$alphap1p = atan($alphap1i/$alphap1r) + pi;} else {$alphap1p = atan($alphap1i/$alphap1r) - pi;} $alpham1p = -$alphap1p; @@ -92,13 +92,13 @@ $f_approx = Formula(" $alpha0 + 2*$alphap1m*cos($w0*t + $alphap1p) + 2*$alphap2m TEXT(EV2(<reduce; $alpham2 = $FSeries_even -> eval(n=>-2); $alpham1 = i/4; -$alpha0 = $FSeries_even -> eval(n=>0); +$alpha0 = $FSeries_even -> eval(n=>0); $alphap1 = (-1)*i/4; $alphap1m = 1/4; $alphap2 = $FSeries_even -> eval(n=>2); @@ -75,32 +75,32 @@ $f_approx = Formula(" $alpha0 + 2*$alphap1m*cos(2*pi*$F*t - pi/2) + 2*$alphap2*c TEXT(EV2(<reduce; @@ -72,16 +72,16 @@ $Sn = Formula("$alpha0*[$a1*exp((-1)*j*$w0*$t0*n) + $a2*exp((-1)*j*$w0*($t0 + $t TEXT(EV2(<texStrings; BEGIN_TEXT This problem is related to Problems 9.33 - 9.38 in the text. $PAR -We have solved differential equations using the method of undetermined coefficients (Chapter 7) and Laplace transforms (Chapter 8). We can use Fourier series to find the particular solution of an arbitrary order differential equation - as long as the driving function is periodic and can be represented by a Fourier series. +We have solved differential equations using the method of undetermined coefficients (Chapter 7) and Laplace transforms (Chapter 8). We can use Fourier series to find the particular solution of an arbitrary order differential equation - as long as the driving function is periodic and can be represented by a Fourier series. -$PAR In the problem description and answers, all numerical angles(phases) should be given in radian angles (not degrees). +$PAR In the problem description and answers, all numerical angles(phases) should be given in radian angles (not degrees). $PAR -Given the differential equation \( y'' + $b y' + $c y = $A1 cos($w1 t + $theta1) u(t) \) . +Given the differential equation \( y'' + $b y' + $c y = $A1 cos($w1 t + $theta1) u(t) \) . \{ BeginList("OL",type=>"a") \} $ITEM Since there is only one frequency involved for this problem, we can set \( w_0 = $w1 \). Write the transfer function for this system as a function of \( n \). (See page 530 of the text.) $BR \( H(n) = \) \{ ans_rule(50) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $ITEMSEP $ITEM Find the particular solution, \( y_p(t) \). No step function in this answer. $BR -Note the accuracy is 0.01% relative error. If the numbers of small, that means you need more decimal places to get the right answer. +Note the accuracy is 0.01% relative error. If the numbers of small, that means you need more decimal places to get the right answer. $BR \( y_p(t) = \) \{ ans_rule(50) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} diff --git a/Contrib/NCSU/ECE220_Problem_9.34-38b.pg b/Contrib/NCSU/ECE220_Problem_9.34-38b.pg index 3052db266d..df103ad097 100644 --- a/Contrib/NCSU/ECE220_Problem_9.34-38b.pg +++ b/Contrib/NCSU/ECE220_Problem_9.34-38b.pg @@ -18,13 +18,13 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PGchoicemacros.pl", - "AnswerFormatHelp.pl", + "unionLists.pl", "answerHints.pl", "PGcomplexmacros.pl", @@ -126,31 +126,31 @@ Context()->texStrings; BEGIN_TEXT This problem is related to Problems 9.33 - 9.38 in the text. $PAR -We have solved differential equations using the method of undetermined coefficients (Chapter 7) and Laplace transforms (Chapter 8). We can use Fourier series to find the particular solution of an arbitrary order differential equation - as long as the driving function is periodic and can be represented by a Fourier series. +We have solved differential equations using the method of undetermined coefficients (Chapter 7) and Laplace transforms (Chapter 8). We can use Fourier series to find the particular solution of an arbitrary order differential equation - as long as the driving function is periodic and can be represented by a Fourier series. -$PAR In the problem description and answers, all numerical angles(phases) should be given in radian angles (not degrees). +$PAR In the problem description and answers, all numerical angles(phases) should be given in radian angles (not degrees). $PAR -Given the differential equation \( y'' + $b y' + $c y = $A1 cos($w1 t + $theta1) + $A2 cos($w2 t + $theta2) \) . +Given the differential equation \( y'' + $b y' + $c y = $A1 cos($w1 t + $theta1) + $A2 cos($w2 t + $theta2) \) . \{ BeginList("OL",type=>"a") \} -$ITEM Write the fundamental frequency that you will use for this system. +$ITEM Write the fundamental frequency that you will use for this system. $BR \( w_o = \) \{ ans_rule(50) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $ITEMSEP $ITEM Write the transfer function for this system as a function of \( n \). (See page 530 of the text.) $BR \( H(n) = \) \{ ans_rule(50) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $ITEMSEP -$ITEM Find the particular solution, \( y_p(t) \). No step function in this answer. -$BR Note the accuracy is 0.01% relative error. If the numbers of small, that means you need more decimal places to get the right answer. +$ITEM Find the particular solution, \( y_p(t) \). No step function in this answer. +$BR Note the accuracy is 0.01% relative error. If the numbers of small, that means you need more decimal places to get the right answer. $BR \( y_p(t) = \) \{ ans_rule(50) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} diff --git a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_1.13.pg b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_1.13.pg index 5ce927b100..758b4508e8 100644 --- a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_1.13.pg +++ b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_1.13.pg @@ -20,7 +20,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "unionLists.pl", "answerHints.pl", "parserFunction.pl", @@ -46,13 +46,13 @@ $B_lower = $f/(2.5*10**8); $B_upper = 3*$B_lower; $B_delta = 0.1*$B_lower; $B= Real(random($B_lower,$B_upper,$B_delta )); # wavelength in meters -$lambda = 1/$B; +$lambda = 1/$B; $z0 = Real(random(1.5,3.0,0.1)); # distance from generator in meters $V0 = Real(random(0.1*$A,0.5*$A,0.05*$A)); # $alpha=Real(0.46); # put here to check homework answers from written solution -# debug parameters +# debug parameters # $A = 5; $f = Real(2*10**9); $lambda = Real(0.1); $z0 = 2;$B=10; #$V0 =Real( 2); # answers @@ -69,12 +69,12 @@ The voltage of an electromagnetic wave traveling on a transmmission line is give (a) Find the frequency, wavelength and phase velocity of the wave. $PAR -\(f= \) \{ans_rule(20)\} \(GHz\) \{ AnswerFormatHelp("numbers") \}$BR -\(\lambda = \) \{ans_rule(20)\} \(cm\) \{ AnswerFormatHelp("numbers") \}$BR -\(u_p = \) \{ans_rule(20)\} \(\cdot 10^3 km/s\) \{ AnswerFormatHelp("numbers") \}$PAR +\(f= \) \{ans_rule(20)\} \(GHz\) \{ helpLink("numbers") \}$BR +\(\lambda = \) \{ans_rule(20)\} \(cm\) \{ helpLink("numbers") \}$BR +\(u_p = \) \{ans_rule(20)\} \(\cdot 10^3 km/s\) \{ helpLink("numbers") \}$PAR (b) At \(z = $z0 m\), the amplitude of the wave was measured to be \($V0 V\). Find \(\alpha\).$BR Your answer for part (b) will be validated to \(\pm 0.01\) absolute. $BR -\(\alpha = \) \{ans_rule(20)\} \(Np/m\) \{ AnswerFormatHelp("numbers") \}$BR +\(\alpha = \) \{ans_rule(20)\} \(Np/m\) \{ helpLink("numbers") \}$BR END_TEXT Context()->normalStrings; @@ -91,8 +91,8 @@ ANS( $alpha->cmp( tolerance => 0.01, # Solution Context()->texStrings; BEGIN_SOLUTION -$PAR -Part a). This equation is similar to that of Eq. (1.28) in the textbook with +$PAR +Part a). This equation is similar to that of Eq. (1.28) in the textbook with \(\omega=2 \pi \cdot $f rad/s, \beta=2 \pi \cdot $B rad/m\). From Eq. (1.29a), \(f=\frac{\omega}{2 \pi}=$fg GHz\); from Eq. (1.29b), \(\lambda=\frac{2 \pi}{\beta}=$lambda m \). From Eq. (1.30), \(u_p=\frac{\omega}{\beta}=$u_p \cdot 10^3 km/s\). $PAR diff --git a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_1.16.pg b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_1.16.pg index 279d2a6d42..04cd08f04f 100644 --- a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_1.16.pg +++ b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_1.16.pg @@ -20,7 +20,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -92,17 +92,17 @@ BEGIN_TEXT $BBOLD This problem is related to Problem 1.16 in the "The Fundamentals of Applied Electromagnetic 7Ed, (Ulaby & Ravaioli)" $EBOLD $BR -Evaluate each of the following complex numbers and express the result in rectangular form, your answers will be validated to \(\pm 0.01\) absolute. +Evaluate each of the following complex numbers and express the result in rectangular form, your answers will be validated to \(\pm 0.01\) absolute. $PAR -(a) \(z_1=$modz1 e^{j \cdot \pi/$angz1inv} \)= \{ans_rule(10)\} + j \{ans_rule(10)\} \{ AnswerFormatHelp("numbers") \} $BR -(b) \(z_2=\sqrt{$z2sqr} \cdot e^{j \cdot \pi \cdot $angz2num/$angz2den} \)= \{ans_rule(10)\} + j \{ans_rule(10)\} \{ AnswerFormatHelp("numbers") \}$BR - -(c) \(z_3=$modz3 \cdot e^{j \cdot \pi/($angz3inv)} \)= \{ans_rule(10)\} + j \{ans_rule(10)\} \{ AnswerFormatHelp("numbers") \}$BR -(d) \(z_4=j^{$z4pwr }\)= \{ans_rule(10)\} + j \{ans_rule(10)\} \{ AnswerFormatHelp("numbers") \}$BR -(e) \(z_5=j^{$z5pwr}\)= \{ans_rule(10)\} + j \{ans_rule(10)\} \{ AnswerFormatHelp("numbers") \}$BR -(f) \(z_6=(1-j)^{$z6pwr} \)= \{ans_rule(10)\} + j \{ans_rule(10)\} \{ AnswerFormatHelp("numbers") \}$BR -(g) \(z_7=(1-j)^{1/$z7pwrinv}\)= \{ans_rule(80)\} \{ AnswerFormatHelp("numbers") \}$BR -Note: There are multiple solutions for (g), please enter your answers in comma separated list. Your answers may be listed in any order. +(a) \(z_1=$modz1 e^{j \cdot \pi/$angz1inv} \)= \{ans_rule(10)\} + j \{ans_rule(10)\} \{ helpLink("numbers") \} $BR +(b) \(z_2=\sqrt{$z2sqr} \cdot e^{j \cdot \pi \cdot $angz2num/$angz2den} \)= \{ans_rule(10)\} + j \{ans_rule(10)\} \{ helpLink("numbers") \}$BR + +(c) \(z_3=$modz3 \cdot e^{j \cdot \pi/($angz3inv)} \)= \{ans_rule(10)\} + j \{ans_rule(10)\} \{ helpLink("numbers") \}$BR +(d) \(z_4=j^{$z4pwr }\)= \{ans_rule(10)\} + j \{ans_rule(10)\} \{ helpLink("numbers") \}$BR +(e) \(z_5=j^{$z5pwr}\)= \{ans_rule(10)\} + j \{ans_rule(10)\} \{ helpLink("numbers") \}$BR +(f) \(z_6=(1-j)^{$z6pwr} \)= \{ans_rule(10)\} + j \{ans_rule(10)\} \{ helpLink("numbers") \}$BR +(g) \(z_7=(1-j)^{1/$z7pwrinv}\)= \{ans_rule(80)\} \{ helpLink("numbers") \}$BR +Note: There are multiple solutions for (g), please enter your answers in comma separated list. Your answers may be listed in any order. END_TEXT Context()->normalStrings; @@ -125,7 +125,7 @@ ANS($L->cmp); # Solution Context()->texStrings; BEGIN_SOLUTION -$PAR +$PAR a) \($rez1+$imz1 j\), b) \($rez2+$imz2 j\), c) \($rez3+$imz3 j\), diff --git a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_1.26.pg b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_1.26.pg index 42daf21b8d..ffd6e74a05 100644 --- a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_1.26.pg +++ b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_1.26.pg @@ -20,7 +20,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -72,9 +72,9 @@ $angz5inv2=Real($array2[$indx]); #end solution check -$formula_a = Formula("$modz1*exp(i*pi/$angz1inv)")->reduce; -$formula_b = Formula("$modz2*exp(-pi*(1/2-1/$angz2inv)*i)")->reduce; -$formula_c = Formula("$modz31*exp($modz32*x)*exp(-pi*(1/2-1/$angz3inv)*i)")->reduce; +$formula_a = Formula("$modz1*exp(i*pi/$angz1inv)")->reduce; +$formula_b = Formula("$modz2*exp(-pi*(1/2-1/$angz2inv)*i)")->reduce; +$formula_c = Formula("$modz31*exp($modz32*x)*exp(-pi*(1/2-1/$angz3inv)*i)")->reduce; $modd=abs($modz4); $phd=-(1-$angz4num/$angz4inv)*180; $mode=$modz51+$modz52; @@ -84,22 +84,22 @@ Context()->texStrings; BEGIN_TEXT $BBOLD This problem is related to Problem 1.26 in the "The Fundamentals of Applied Electromagnetic 7Ed, (Ulaby & Ravaioli)" $EBOLD $BR -Evaluate each of the following complex numbers and express the result in phasor form. +Evaluate each of the following complex numbers and express the result in phasor form. $PAR The answers to the first three questions should be expressed in imaginary exponential form with respect to variable \(x\) and/or \(t\). In these three questions, your answers will be validated to \(\pm 0.01\) absolute. $BR (a) \(v(t)=$modz1 cos(\omega t +\frac{\pi}{$angz1inv}) \) \(V\) $BR - \(\tilde{V}=\)\{ans_rule(40)\} \(V\) \{ AnswerFormatHelp("formula") \}$BR + \(\tilde{V}=\)\{ans_rule(40)\} \(V\) \{ helpLink("formula") \}$BR (b) \(v(t)=$modz2 sin(\omega t +\frac{\pi}{$angz2inv}) \) \(V\) $BR - \(\tilde{V}=\) \{ans_rule(40)\} \(V\) \{ AnswerFormatHelp("formula") \}$BR + \(\tilde{V}=\) \{ans_rule(40)\} \(V\) \{ helpLink("formula") \}$BR (c) \(i(x,t)=$modz31 e^{$modz32 x} sin(\omega t +\frac{\pi}{$angz3inv}) \) \(A\) $BR -\(\tilde{I}=\) \{ans_rule(40)\} \(A\) \{ AnswerFormatHelp("formula") \}$PAR +\(\tilde{I}=\) \{ans_rule(40)\} \(A\) \{ helpLink("formula") \}$PAR In the following two questions, the phase angles should be expressed in degrees. In these two questions, your answers will be validated to \(\pm 1%\).$BR -(d) \(i(t)=$modz4 cos(\omega t +\frac{$angz4num \pi}{$angz4inv}) \) \(A\) $BR \(\tilde{I}=\) \{ans_rule(10)\} \(\angle \) \{ans_rule(10)\} \(^{\circ} A\) \{ AnswerFormatHelp("numbers") \} $BR +(d) \(i(t)=$modz4 cos(\omega t +\frac{$angz4num \pi}{$angz4inv}) \) \(A\) $BR \(\tilde{I}=\) \{ans_rule(10)\} \(\angle \) \{ans_rule(10)\} \(^{\circ} A\) \{ helpLink("numbers") \} $BR (e) \(i(t)=$modz51 sin(\omega t +\frac{\pi}{$angz5inv1}) + $modz52 cos(\omega t - \frac{\pi}{$angz5inv2}) \) \(A\) $BR -\(\tilde{I}=\) \{ans_rule(10)\} \(\angle \) \{ans_rule(10)\} \(^{\circ} A\) \{ AnswerFormatHelp("numbers") \}$BR +\(\tilde{I}=\) \{ans_rule(10)\} \(\angle \) \{ans_rule(10)\} \(^{\circ} A\) \{ helpLink("numbers") \}$BR END_TEXT Context()->normalStrings; @@ -119,7 +119,7 @@ tolType => "relative",) ); # Solution Context()->texStrings; BEGIN_SOLUTION -$PAR +$PAR a) \($formula_a V\),$BR b) \(v(t)=$modz2 sin(\omega t +\frac{\pi}{$angz2inv})=$modz2 cos(\frac{\pi}{2}-\omega t +\frac{\pi}{$angz2inv})=$formula_b V\),$BR c) \(v(t)=$modz31 e^{$modz32 x} sin(\omega t +\frac{\pi}{$angz3inv})=$modz31 e^{$modz32 x} cos(\frac{\pi}{2} - \omega t -\frac{\pi}{$angz3inv})=$formula_c A\),$BR diff --git a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_1.28.pg b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_1.28.pg index b2f6076ea2..a25dd717a3 100644 --- a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_1.28.pg +++ b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_1.28.pg @@ -20,12 +20,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "unionLists.pl", "answerHints.pl", "parserFunction.pl", @@ -85,25 +85,25 @@ $PAR A series RLC circuit is connected to a generator with a voltage with \( v_s(t) = V_0 cos(\omega t + \pi/3) \) Volts. $PAR -a) Write the voltage loop equation in terms of the current \(i(t)\), using the symbolic values \( R\), \( L\), \( C\), \( v_s(t)\). +a) Write the voltage loop equation in terms of the current \(i(t)\), using the symbolic values \( R\), \( L\), \( C\), \( v_s(t)\). $BR -\(\Large{ v_s(t) = }\) \{ ans_rule(10) \}\( \Large{ \frac{di(t)}{dt} } \) + \{ ans_rule(10) \}\( \Large{ \int i(t) dt } \) + \{ ans_rule(10) \}\( \Large{ i(t) } \) -\{ AnswerFormatHelp("formulas") \} +\(\Large{ v_s(t) = }\) \{ ans_rule(10) \}\( \Large{ \frac{di(t)}{dt} } \) + \{ ans_rule(10) \}\( \Large{ \int i(t) dt } \) + \{ ans_rule(10) \}\( \Large{ i(t) } \) +\{ helpLink("formulas") \} -$PAR +$PAR b) Write the corresponding phasor-domain equation. In addition to the variables specified in Part a), use upper case \(I\) for the phasor current \(\tilde{I}\) and \(w\) for the frequency \(\omega\).$BR \(\tilde{V}_s = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} -$PAR +$PAR c) Solve the equation to obtain an expression for the phasor current \(\tilde{ I }\). $BR \( \tilde{I} = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_1.9.pg b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_1.9.pg index 5ef40c6334..08ab56f964 100644 --- a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_1.9.pg +++ b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_1.9.pg @@ -20,7 +20,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "unionLists.pl", "answerHints.pl", "parserFunction.pl", @@ -75,15 +75,15 @@ The form of the solution is \( y(x,t) = A \cos(2\pi f t+ \beta x + \phi) \) with (a) \(y(x,0) = 0\) at \(x = $x0\) cm $BR There are two phases, \(\phi_1\) and \(\phi_2\) that will work for this case. The phases should in the interval \([-\pi,\pi] \).$BR Give the two phases, where \(\phi_1 > \phi_2 \): $BR -\(\phi_1 = \) \{ans_rule(20)\} and \(\phi_2 = \) \{ans_rule(20)\} radians \{ AnswerFormatHelp("numbers") \}$BR - \(y(x,t) = \) \{ans_rule(30)\} (cm) for phase 1 \{ AnswerFormatHelp("formulas") \}$BR - \(y(x,t) = \) \{ans_rule(30)\} (cm) for phase 2 \{ AnswerFormatHelp("formulas") \} $PAR +\(\phi_1 = \) \{ans_rule(20)\} and \(\phi_2 = \) \{ans_rule(20)\} radians \{ helpLink("numbers") \}$BR + \(y(x,t) = \) \{ans_rule(30)\} (cm) for phase 1 \{ helpLink("formulas") \}$BR + \(y(x,t) = \) \{ans_rule(30)\} (cm) for phase 2 \{ helpLink("formulas") \} $PAR (b) \(y(x,0) = 0\) at \(x = $x1\) cm$BR There are two phases, \(\phi_1\) and \(\phi_2\) that will work for this case. The phases should in the interval \([-\pi,\pi] \).$BR Give the two phases, where \(\phi_1 > \phi_2 \): $BR -\(\phi_1 = \) \{ans_rule(20)\} and \(\phi_2 = \) \{ans_rule(20)\} radians \{ AnswerFormatHelp("numbers") \}$BR - \(y(x,t) = \) \{ans_rule(30)\} (cm) for phase 1 \{ AnswerFormatHelp("formulas") \}$BR - \(y(x,t) = \) \{ans_rule(30)\} (cm) for phase 2 \{ AnswerFormatHelp("formulas") \}$BR +\(\phi_1 = \) \{ans_rule(20)\} and \(\phi_2 = \) \{ans_rule(20)\} radians \{ helpLink("numbers") \}$BR + \(y(x,t) = \) \{ans_rule(30)\} (cm) for phase 1 \{ helpLink("formulas") \}$BR + \(y(x,t) = \) \{ans_rule(30)\} (cm) for phase 2 \{ helpLink("formulas") \}$BR END_TEXT Context()->normalStrings; @@ -107,7 +107,7 @@ ANS($yxt4->cmp( tolerance => 0.1, # Solution Context()->texStrings; BEGIN_SOLUTION -$PAR +$PAR For a wave travelling in the negative \(x\)-direction, we use Eq. (1.17) in the textbook with \(\omega=2 \pi f =$omega rad/s, \beta=\frac{2\pi} {\lambda}=$beta rad/s, A=$A cm,\) and \(x\) assigned a positive sign: $BR \(y(x,t)=$A cos($omega \cdot t + $beta x+\phi_0) cm,\) with \(x\) in meters. $PAR diff --git a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.1.pg b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.1.pg index 2f6021578a..6a89ecb3db 100644 --- a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.1.pg +++ b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.1.pg @@ -1,26 +1,26 @@ # DESCRIPTION -# Problem for 'NCSU ECE303 Ulaby 7Ed P2.1'. +# Problem for 'NCSU ECE303 Ulaby 7Ed P2.1'. # WeBWorK problem written by H. J. Trussell, # ENDDESCRIPTION ## DBsubject(Electrical Engineering) -## DBchapter(CHAPTER 2 Transmission Lines) -## DBsection(Section 2-1: General Considerations) +## DBchapter(CHAPTER 2 Transmission Lines) +## DBsection(Section 2-1: General Considerations) ## Institution(North Carolina State University) ## Autho(H. J. Trussell) ## TitleText1('Fundamentals of Applied Electromagnetics') ## AuthorText1('Fawwaz T. Ulaby', 'Umberto Ravaioli') ## EditionText1('7') -## Problem1('2.1') +## Problem1('2.1') ## Keywords('waves','frequency') -## Resources() +## Resources() DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGchoicemacros.pl", "PGanswermacros.pl", "parserPopUp.pl", @@ -63,7 +63,7 @@ $delta_4 = 5*$l4_min; $l4 = random($l4_min,$l4_max,$delta_l4); -# debug parameters - +# debug parameters - # use print out of l*f/c and compare to 0.01 # answers @@ -95,7 +95,7 @@ $PAR $PAR (b) \( l = $l2 m, f = $f2 Hz \) \{ $popup2->menu() \} $PAR -(c) \( l = $l3 m, f = $f3 Hz \) \{ $popup3->menu() \} +(c) \( l = $l3 m, f = $f3 Hz \) \{ $popup3->menu() \} $PAR (d) \( l = $l4 m, f = $f4 Hz \) \{ $popup4->menu() \}$BR @@ -113,7 +113,7 @@ ANS( $popup4->cmp() ); # Solution Context()->texStrings; BEGIN_SOLUTION -$PAR +$PAR a) \(\frac{l}{\lambda}=\frac{l f}{u_p}=\frac{$l1 \cdot $f1}{3 \cdot 10^8}<0.01\) (negligible) $BR b) \(\frac{l}{\lambda}=\frac{l f}{u_p}=\frac{$l2 \cdot $f2}{3 \cdot 10^8}=0.01\) (borderline) $BR c) \(\frac{l}{\lambda}=\frac{l f}{u_p}=\frac{$l3 \cdot $f3}{3 \cdot 10^8}>0.01\) (nonnegligible) $BR diff --git a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.18.pg b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.18.pg index ea59d95dbf..0e898b246e 100644 --- a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.18.pg +++ b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.18.pg @@ -1,26 +1,26 @@ # DESCRIPTION -# Problem for 'NCSU ECE303 Ulaby 7Ed P2.18'. +# Problem for 'NCSU ECE303 Ulaby 7Ed P2.18'. # WeBWorK problem written by H. J. Trussell, # ENDDESCRIPTION ## DBsubject(Electrical Engineering) -## DBchapter(CHAPTER 2 Transmission Lines) -## DBsection(Section 2-2: Lumped-Element Model) +## DBchapter(CHAPTER 2 Transmission Lines) +## DBsection(Section 2-2: Lumped-Element Model) ## Institution(North Carolina State University) ## Autho(H. J. Trussell) ## TitleText1('Fundamentals of Applied Electromagnetics') ## AuthorText1('Fawwaz T. Ulaby', 'Umberto Ravaioli') ## EditionText1('7') -## Problem('2.18') -## Keywords('polyethylene','insulating material', 'coaxial line') -## Resources() +## Problem('2.18') +## Keywords('polyethylene','insulating material', 'coaxial line') +## Resources() DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "unionLists.pl", "answerHints.pl", "parserFunction.pl", @@ -43,7 +43,7 @@ Context()->flags->set( $ir = Real(random(0.8,2.0,0.1)*10**(-3)); # width mm but formula is in meters $Z_0= Real(random( 25,75,5)); # characteristic impedance -$epsilon_r = Real(random(2.1,2.9.0.1)); # dielectric +$epsilon_r = Real(random(2.1,2.9.0.1)); # dielectric $epsilon_0 = Compute((10**(-9))/(36*pi)); $mu_0 = Real(4*pi*10**(-7)); @@ -57,7 +57,7 @@ $c = Real(3*10**8); # m/s #$ir = Real(1.2*10**(-3)); # width mm but formula is in meters #$Z_0= Real(50); # characteristic impedance -#$epsilon_r = Real(2.25); # dielectric +#$epsilon_r = Real(2.25); # dielectric #end debug @@ -78,8 +78,8 @@ $PAR A special polyethylene with \(\varepsilon_r = $epsilon_r\) is used as the insulating material in a lossless coaxial line with characteristic impedance of \($Z_0 \Omega\). The radius of the inner conductor is \($ir_mm mm\). Find the following: $PAR -outer radius of the conductor is: \{ans_rule(20)\} \(mm\) \{ AnswerFormatHelp("numbers") \}$BR -\(u_p = \) \{ans_rule(20)\} \(m/s\) \{ AnswerFormatHelp("numbers") \}$BR +outer radius of the conductor is: \{ans_rule(20)\} \(mm\) \{ helpLink("numbers") \}$BR +\(u_p = \) \{ans_rule(20)\} \(m/s\) \{ helpLink("numbers") \}$BR END_TEXT @@ -95,8 +95,8 @@ Context()->texStrings; BEGIN_SOLUTION -$PAR -Given a lossless coaxial line, +$PAR +Given a lossless coaxial line, \(Z_0 = $Z_0 \Omega \), \(\varepsilon_r = $epsilon_r \), \(a = $ir_mm mm\):$BR $PAR (a) From Table 2-2, \( Z_0 = (60 / \sqrt{\varepsilon_r}) ln(b / a) \) which can be rearranged to give $BR diff --git a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.19.pg b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.19.pg index 73f8fe87a1..e9897426c9 100644 --- a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.19.pg +++ b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.19.pg @@ -20,7 +20,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "unionLists.pl", "answerHints.pl", "parserFunction.pl", @@ -74,10 +74,10 @@ A $Z_0 \(\Omega\) lossless transmission line is terminated in a load with impeda Note: Your answers are validated to \(\pm \)0.01 absolute. $BR -(a) The reflection coefficient at the load: \{ans_rule(20)\} \(\angle \) \{ans_rule(20)\} \(^{\circ} \) \{ AnswerFormatHelp("numbers") \}$BR -(b) the standing wave ratio on the line: \{ans_rule(20)\} \{ AnswerFormatHelp("numbers") \}$BR -(c) the position of the voltage maximum nearest the load: \{ans_rule(20)\} \(cm\) \{ AnswerFormatHelp("numbers") \}$BR -(d) the position of the current maximum nearest the load: \{ans_rule(20)\} \(cm\) \{ AnswerFormatHelp("numbers") \}$BR +(a) The reflection coefficient at the load: \{ans_rule(20)\} \(\angle \) \{ans_rule(20)\} \(^{\circ} \) \{ helpLink("numbers") \}$BR +(b) the standing wave ratio on the line: \{ans_rule(20)\} \{ helpLink("numbers") \}$BR +(c) the position of the voltage maximum nearest the load: \{ans_rule(20)\} \(cm\) \{ helpLink("numbers") \}$BR +(d) the position of the current maximum nearest the load: \{ans_rule(20)\} \(cm\) \{ helpLink("numbers") \}$BR END_TEXT Context()->normalStrings; @@ -93,20 +93,20 @@ Context()->texStrings; BEGIN_SOLUTION -$PAR +$PAR Given: $BR -a) +a) \(Z_L= R+j \omega L =$Z_L \Omega \), $BR \(\Gamma=\large{\frac{Z_L-Z_0}{Z_L+Z_0}}=\frac{$Z_L-$Z_0}{$Z_L+$Z_0}=$mag e ^{$ang_deg^{\circ}}\). $PAR b) \(S=\large{\frac{1+|\Gamma|}{1-|\Gamma|}}=\frac{1+$reflec}{1-$reflec}=$S\). $PAR -c) \(d_{max}=\Large{ \frac{\theta_r \lambda}{4 \pi}+\frac{n \lambda}{2}}=\frac{$ang_deg ^{\circ} \pi}{180 ^ {\circ}}\frac{60}{4 \pi} + \frac{$lambda \cdot n }{2}=$d_max_0+\frac{$lambda \cdot n }{2}=$d_max m\). $PAR +c) \(d_{max}=\Large{ \frac{\theta_r \lambda}{4 \pi}+\frac{n \lambda}{2}}=\frac{$ang_deg ^{\circ} \pi}{180 ^ {\circ}}\frac{60}{4 \pi} + \frac{$lambda \cdot n }{2}=$d_max_0+\frac{$lambda \cdot n }{2}=$d_max m\). $PAR d) The locations of current maxima correspond to voltage minima and vice versa. Hence the location of the current maximum nearest the load is the same as location of voltage minimum nearest the load. Thus $BR -\(d_{min}=d_{max}+\frac{\lambda}{4} =$d_max-$lambda/4=$d_min m \). +\(d_{min}=d_{max}+\frac{\lambda}{4} =$d_max-$lambda/4=$d_min m \). END_SOLUTION diff --git a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.20.pg b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.20.pg index 3ce727d7af..df50e2cca7 100644 --- a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.20.pg +++ b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.20.pg @@ -24,7 +24,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "unionLists.pl", "answerHints.pl", "parserFunction.pl", @@ -59,7 +59,7 @@ $fourpi = Real(2*$twopi); $Z_LmH = $Z_Li*10**3; # indcutance in mH $w = $f*2*pi; # radian freq -$f_MHz = $f*10**(-6); +$f_MHz = $f*10**(-6); $Z_L = $Z_Lr + j*$twopi*$f*$Z_Li; $Gamma = ($Z_L-$Z_0)/($Z_L+$Z_0); $lambda = 3*10**8/$f; @@ -87,10 +87,10 @@ Note: Your answers are validated to \(\pm \)0.01 absolute. $BR -(a) The reflection coefficient, \(\Gamma\) = \{ans_rule(20)\} \(\angle \) \{ans_rule(20)\} \(^{\circ} \) \{ AnswerFormatHelp("numbers") \}$BR -(b) the standing wave ratio on the line, \(S\): \{ans_rule(20)\} \{ AnswerFormatHelp("numbers") \}$BR -(c) the position of the voltage maximum nearest the load: \{ans_rule(20)\} \(m\) \{ AnswerFormatHelp("numbers") \}$BR -(d) the position of the current maximum nearest the load: \{ans_rule(20)\} \(m\) \{ AnswerFormatHelp("numbers") \}$BR +(a) The reflection coefficient, \(\Gamma\) = \{ans_rule(20)\} \(\angle \) \{ans_rule(20)\} \(^{\circ} \) \{ helpLink("numbers") \}$BR +(b) the standing wave ratio on the line, \(S\): \{ans_rule(20)\} \{ helpLink("numbers") \}$BR +(c) the position of the voltage maximum nearest the load: \{ans_rule(20)\} \(m\) \{ helpLink("numbers") \}$BR +(d) the position of the current maximum nearest the load: \{ans_rule(20)\} \(m\) \{ helpLink("numbers") \}$BR END_TEXT Context()->normalStrings; @@ -106,7 +106,7 @@ Context()->texStrings; BEGIN_SOLUTION -$PAR +$PAR Given: $BR @@ -116,12 +116,12 @@ a) \(\omega=2 \pi \cdot $f rad/s\) $BR b) \(S=\large{\frac{1+|\Gamma|}{1-|\Gamma|}}=\frac{1+$Gamma}{1-$Gamma}=$S\). $PAR -c) \(l_{max}=\large{\frac{\theta_r \lambda}{4 \pi}}=\frac{$ang_deg ^{\circ} \pi}{180 ^ {\circ}}\frac{60}{4 \pi} \), +c) \(l_{max}=\large{\frac{\theta_r \lambda}{4 \pi}}=\frac{$ang_deg ^{\circ} \pi}{180 ^ {\circ}}\frac{60}{4 \pi} \), \( (\lambda=\frac{3 \cdot 10^8}{5 \cdot 10^6}=$lambda m) \) $BR \(=$d_max m\) $PAR d) The locations of current maxima correspond to voltage minima and vice versa. Hence the location of the current maximum nearest the load is the same as location of voltage minimum nearest the load. Thus $BR -\(l_{min}=l_{max}+\frac{\lambda}{4} =$d_max+$lambda/4=$d_min m \), as \(l_{max}<\frac{$lambda}{4}\). +\(l_{min}=l_{max}+\frac{\lambda}{4} =$d_max+$lambda/4=$d_min m \), as \(l_{max}<\frac{$lambda}{4}\). END_SOLUTION diff --git a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.22.pg b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.22.pg index 8016ef1d41..34b559718f 100644 --- a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.22.pg +++ b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.22.pg @@ -1,11 +1,11 @@ # DESCRIPTION -# Problem for 'NCSU ECE303 Ulaby 7Ed P2.22'. # +# Problem for 'NCSU ECE303 Ulaby 7Ed P2.22'. # # WeBWorK problem written by H. J. Trussell, # ENDDESCRIPTION ## DBsubject(Electrical Engineering) -## DBchapter(CHAPTER 2 Transmission Lines) -## DBsection(Section 2-6: THE LOSSLESS TRANSMISSION LINE: GENERAL CONSIDERATIONS) # +## DBchapter(CHAPTER 2 Transmission Lines) +## DBsection(Section 2-6: THE LOSSLESS TRANSMISSION LINE: GENERAL CONSIDERATIONS) # ## Institution(North Carolina State University) ## Autho(H. J. Trussell) ## TitleText1('Fundamentals of Applied Electromagnetics') @@ -13,14 +13,14 @@ ## EditionText1('7') ## Problem1('2.22') # ## Keywords('slotted line','lossless', 'load impedance') # -## Resources() +## Resources() DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "unionLists.pl", "answerHints.pl", "parserFunction.pl", @@ -80,14 +80,14 @@ $BBOLD This problem is related to Problem 2.22 in the "The Fundamentals of Appli $PAR -Using a slotted line, the following results were obtained: -distance of first minimum from the load \(d_{min(0)} = $d0_min cm\) ; -distance of second minimum from the load \(d_{min(1)} = $d1_min cm\); +Using a slotted line, the following results were obtained: +distance of first minimum from the load \(d_{min(0)} = $d0_min cm\) ; +distance of second minimum from the load \(d_{min(1)} = $d1_min cm\); voltage standingwave ratio \(S = $S \). $BR $PAR If the line is lossless and \(Z_0 = $Z0 \Omega \), find the load impedance: $BR $PAR -\(Z_L = \) \{ans_rule(20)\} \(\Omega\) \{ AnswerFormatHelp("numbers") \}$BR +\(Z_L = \) \{ans_rule(20)\} \(\Omega\) \{ helpLink("numbers") \}$BR $PAR $BBOLD Note: You can use either a+bj or A*exp(jB) (the angle B should be in radians) to represent the complex number. $EBOLD diff --git a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.24.pg b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.24.pg index e3c759a1ff..1c15634646 100644 --- a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.24.pg +++ b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.24.pg @@ -1,11 +1,11 @@ # DESCRIPTION -# Problem for 'NCSU ECE303 Ulaby 7Ed P2.24'. # +# Problem for 'NCSU ECE303 Ulaby 7Ed P2.24'. # # WeBWorK problem written by H. J. Trussell, # ENDDESCRIPTION ## DBsubject(Electrical Engineering) -## DBchapter(CHAPTER 2 Transmission Lines) -## DBsection(Section 2-6: THE LOSSLESS TRANSMISSION LINE: GENERAL CONSIDERATIONS) # +## DBchapter(CHAPTER 2 Transmission Lines) +## DBsection(Section 2-6: THE LOSSLESS TRANSMISSION LINE: GENERAL CONSIDERATIONS) # ## Institution(North Carolina State University) ## Autho(H. J. Trussell) ## TitleText1('Fundamentals of Applied Electromagnetics') @@ -13,14 +13,14 @@ ## EditionText1('7') ## Problem1('2.24') # ## Keywords('lossless', 'load impedance') # -## Resources() +## Resources() DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "unionLists.pl", "answerHints.pl", "parserFunction.pl", @@ -36,7 +36,7 @@ Context()->variables->are( t=>"Real"); Context()->flags->set( tolerance => 0.01, - tolType => "relative", # + tolType => "relative", # ); $S = Real(random(1, 5, 0.5)); # voltage standing-wave ratio @@ -83,13 +83,13 @@ $BBOLD This problem is related to Problem 2.24 in the "The Fundamentals of Appli $PAR -A \(Z_0 = $Z0 \Omega \) lossless line terminated in a purely resistive load has a voltage standing-wave ratio of \(S = $S\). $BR +A \(Z_0 = $Z0 \Omega \) lossless line terminated in a purely resistive load has a voltage standing-wave ratio of \(S = $S\). $BR $PAR Find all possible values of \(Z_L\). $BR Note: Please enter your answers in comma separated list. Your answers may be listed in any order. $BR $PAR -\(Z_{L} = \) \{ans_rule(30)\} \(\Omega\) \{ AnswerFormatHelp("numbers") \} +\(Z_{L} = \) \{ans_rule(30)\} \(\Omega\) \{ helpLink("numbers") \} $PAR $BBOLD Note: You can use either a+bj or A*exp(jB) (the angle B should be in radians) to represent the complex number if necessary. $EBOLD $BR diff --git a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.27.pg b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.27.pg index f50a647491..84759243ee 100644 --- a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.27.pg +++ b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.27.pg @@ -1,11 +1,11 @@ # DESCRIPTION -# Problem for 'NCSU ECE303 Ulaby 7Ed P2.27'. # +# Problem for 'NCSU ECE303 Ulaby 7Ed P2.27'. # # WeBWorK problem written by H. J. Trussell, # ENDDESCRIPTION ## DBsubject(Electrical Engineering) -## DBchapter(CHAPTER 2 Transmission Lines) -## DBsection(Section 2-7: WAVE IMPEDANCE OF THE LOSSLESS LINE) # +## DBchapter(CHAPTER 2 Transmission Lines) +## DBsection(Section 2-7: WAVE IMPEDANCE OF THE LOSSLESS LINE) # ## Institution(North Carolina State University) ## Autho(H. J. Trussell) ## TitleText1('Fundamentals of Applied Electromagnetics') @@ -13,14 +13,14 @@ ## EditionText1('7') ## Problem1('2.27') # ## Keywords('lossless', 'input impedance') # -## Resources() +## Resources() DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "unionLists.pl", "answerHints.pl", "parserFunction.pl", @@ -36,7 +36,7 @@ Context()->variables->are( t=>"Real"); Context()->flags->set( tolerance => 0.01, - tolType => "relative", # + tolType => "relative", # ); $f = Real(random(100, 500, 50)); # operating frequency MHz @@ -80,11 +80,11 @@ BEGIN_TEXT $PAR -At an operating frequency of \(f = $f MHz\), a lossless \(Z_0 = $Z0 \Omega\) +At an operating frequency of \(f = $f MHz\), a lossless \(Z_0 = $Z0 \Omega\) air-spaced transmission line \(l = $l m \) in length is terminated with an impedance \(Z_L = $ZL_Re + j $ZL_Im \Omega\). $BR Find the input impedance: $BR $PAR -\(Z_{in} = \) \{ans_rule(20)\} \(\Omega\) \{ AnswerFormatHelp("numbers") \}$BR +\(Z_{in} = \) \{ans_rule(20)\} \(\Omega\) \{ helpLink("numbers") \}$BR $PAR $BBOLD Note: You can use either a+bj or A*exp(jB) (the angle B should be in radians) to represent the complex number. $EBOLD diff --git a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.28.pg b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.28.pg index eaf0969c31..83f9550238 100644 --- a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.28.pg +++ b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.28.pg @@ -1,11 +1,11 @@ # DESCRIPTION -# Problem for 'NCSU ECE303 Ulaby 7Ed P2.28'. # +# Problem for 'NCSU ECE303 Ulaby 7Ed P2.28'. # # WeBWorK problem written by H. J. Trussell, # ENDDESCRIPTION ## DBsubject(Electrical Engineering) -## DBchapter(CHAPTER 2 Transmission Lines) -## DBsection(Section 2-7: WAVE IMPEDANCE OF THE LOSSLESS LINE) # +## DBchapter(CHAPTER 2 Transmission Lines) +## DBsection(Section 2-7: WAVE IMPEDANCE OF THE LOSSLESS LINE) # ## Institution(North Carolina State University) ## Autho(H. J. Trussell) ## TitleText1('Fundamentals of Applied Electromagnetics') @@ -13,14 +13,14 @@ ## EditionText1('7') ## Problem1('2.28') # ## Keywords('lossless', 'load impedance') # -## Resources() +## Resources() DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "unionLists.pl", "answerHints.pl", "parserFunction.pl", @@ -72,7 +72,7 @@ $gamm_Im = Im($gamma); $S = (1 + $gamma_abs) / (1 - $gamma_abs); -$beta = 2*pi / $lambda; +$beta = 2*pi / $lambda; $beta_lth = $beta * $lth * $lambda; $beta_lth_pi = $beta_lth / pi; $beta_lth_deg = $beta_lth * 180 / pi; @@ -94,14 +94,14 @@ Given \(Z_0 = $Z0 \Omega \) and \(Z_L = ($ZL_Re + j $ZL_Im ) \Omega \), find \(\ \{image("ECE303_Ulaby_Ed7_2_28.png",height=>150, width=>250)\} $BR $PAR -(a) -\(\Gamma = \) \{ans_rule(20)\} \{ AnswerFormatHelp("numbers") \}$BR +(a) +\(\Gamma = \) \{ans_rule(20)\} \{ helpLink("numbers") \}$BR $PAR -(b) -\(S = \) \{ans_rule(20)\} \{ AnswerFormatHelp("numbers") \}$BR +(b) +\(S = \) \{ans_rule(20)\} \{ helpLink("numbers") \}$BR $PAR -(c) -\(Z_{in} = \) \{ans_rule(20)\} \(\Omega\) \{ AnswerFormatHelp("numbers") \}$BR +(c) +\(Z_{in} = \) \{ans_rule(20)\} \(\Omega\) \{ helpLink("numbers") \}$BR $PAR $BBOLD Note: Your answers will be validated to \(\pm 0.01\) absolute. You can use either a+bj or A*exp(jB) (the angle B should be in radians) to represent the complex number. $EBOLD $BR diff --git a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.2a.pg b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.2a.pg index 0cda6ccee2..b92bf9923f 100644 --- a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.2a.pg +++ b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.2a.pg @@ -1,26 +1,26 @@ # DESCRIPTION -# Problem for 'NCSU ECE303 Ulaby 7Ed P2.2'. +# Problem for 'NCSU ECE303 Ulaby 7Ed P2.2'. # WeBWorK problem written by H. J. Trussell, # ENDDESCRIPTION ## DBsubject(Electrical Engineering) -## DBchapter(CHAPTER 2 Transmission Lines) -## DBsection(Section 2-1: General Considerations) +## DBchapter(CHAPTER 2 Transmission Lines) +## DBsection(Section 2-1: General Considerations) ## Institution(North Carolina State University) ## Autho(H. J. Trussell) ## TitleText1('Fundamentals of Applied Electromagnetics') ## AuthorText1('Fawwaz T. Ulaby', 'Umberto Ravaioli') ## EditionText1('7') -## Problem1('2.2') +## Problem1('2.2') ## Keywords('waves','frequency') -## Resources() +## Resources() DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "unionLists.pl", "answerHints.pl", "parserFunction.pl", @@ -43,7 +43,7 @@ $f = Real(random(1.5,2.5,0.1)*10**9); # GHz $d = Real(random(1.5,2.5,0.5)*10**(-3)); # diameter in mm, formula uses meters $D = Real(random(3,5,0.5)*10**(-2)); # cm but formula is in meters $sigma_c = Real(5.8*10**(7)); # S/m for copper, constant -$epsilon = Real(random(2.0,4.0,0.1)); # dielectric +$epsilon = Real(random(2.0,4.0,0.1)); # dielectric $sigma = Real(2*10**(-6)); # S/m , constant $mu_0 = Real(4*pi*10**(-7)); $mu_c = $mu_0; @@ -54,7 +54,7 @@ $epsilon_0 = Real(8.854*10**(-12)); #$f = 2*10**9; # Hz #$d = 2*10**(-3); # diameter m, formula uses meters #$D = 3*10**(-2); # in meters -#$epsilon = 2.6; # dielectric +#$epsilon = 2.6; # dielectric #end debug @@ -62,7 +62,7 @@ $epsilon_0 = Real(8.854*10**(-12)); # change the unit $f_GHz = $f*10**(-9); -$d_mm = $d*10**3; +$d_mm = $d*10**3; $D_cm = $D*10**2; $R_s = sqrt(pi*$f*$mu_c/$sigma_c) ; @@ -81,15 +81,15 @@ BEGIN_TEXT $BBOLD This problem is related to Problem 2.2 in the "The Fundamentals of Applied Electromagnetic 7Ed, (Ulaby & Ravaioli)" $EBOLD $PAR -A two-wire copper transmission line is embedded in a dielectric material with \( \varepsilon_r = $epsilon\) and \(\sigma = $sigma S/m\).$BR +A two-wire copper transmission line is embedded in a dielectric material with \( \varepsilon_r = $epsilon\) and \(\sigma = $sigma S/m\).$BR Its wires are separated by \($D_cm cm\) and their diameters are \($d_mm mm\) each. $PAR Calculate the line parameters, \(R'\), \(L'\), \(G'\) and \(C'\) at \($f_GHz GHz\). $PAR -\(R' = \) \{ans_rule(20)\} \(\Omega/m\) \{ AnswerFormatHelp("numbers") \}$BR -\(L' = \) \{ans_rule(20)\} \(\mu H/m\) \{ AnswerFormatHelp("numbers") \}$BR -\(G' = \) \{ans_rule(20)\} \(\mu S/m\) \{ AnswerFormatHelp("numbers") \}$BR -\(C' = \) \{ans_rule(20)\} \( pF/m\) \{ AnswerFormatHelp("numbers") \}$BR +\(R' = \) \{ans_rule(20)\} \(\Omega/m\) \{ helpLink("numbers") \}$BR +\(L' = \) \{ans_rule(20)\} \(\mu H/m\) \{ helpLink("numbers") \}$BR +\(G' = \) \{ans_rule(20)\} \(\mu S/m\) \{ helpLink("numbers") \}$BR +\(C' = \) \{ans_rule(20)\} \( pF/m\) \{ helpLink("numbers") \}$BR END_TEXT Context()->normalStrings; @@ -103,7 +103,7 @@ ANS( $C_pp->cmp() ); # Solution Context()->texStrings; BEGIN_SOLUTION -$PAR +$PAR From Table 2-1: $BR \(R_s = \sqrt{\pi f\mu_0 / \sigma_c}\) \( = \sqrt{\pi \cdot $f \cdot $mu_0 / ($sigma_c)}\) diff --git a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.33.pg b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.33.pg index 37681f1fad..d8b811729e 100644 --- a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.33.pg +++ b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.33.pg @@ -1,11 +1,11 @@ # DESCRIPTION -# Problem for 'NCSU ECE303 Ulaby 7Ed P2.33'. # +# Problem for 'NCSU ECE303 Ulaby 7Ed P2.33'. # # WeBWorK problem written by H. J. Trussell, # ENDDESCRIPTION ## DBsubject(Electrical Engineering) -## DBchapter(CHAPTER 2 Transmission Lines) -## DBsection(Section 2-8: SPECIAL CASES OF THE LOSSLESS LINE) # +## DBchapter(CHAPTER 2 Transmission Lines) +## DBsection(Section 2-8: SPECIAL CASES OF THE LOSSLESS LINE) # ## Institution(North Carolina State University) ## Autho(H. J. Trussell) ## TitleText1('Fundamentals of Applied Electromagnetics') @@ -13,14 +13,14 @@ ## EditionText1('7') ## Problem1('2.33') # ## Keywords('lossless', 'dipole antennas') # -## Resources('ECE303_Ulaby_Ed7_2_33.png') +## Resources('ECE303_Ulaby_Ed7_2_33.png') DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "unionLists.pl", "answerHints.pl", "parserFunction.pl", @@ -95,21 +95,21 @@ $BBOLD This problem is related to Problem 2.33 in the "The Fundamentals of Appli $PAR -Two half-wave dipole antennas, each with an impedance of \(Z_L = $ZL \Omega \), -are connected in parallel through a pair of transmissionlines, and the combination is connected to a feed transmission line, as shown in Fig. P2.33. +Two half-wave dipole antennas, each with an impedance of \(Z_L = $ZL \Omega \), +are connected in parallel through a pair of transmissionlines, and the combination is connected to a feed transmission line, as shown in Fig. P2.33. Given: \(l_0 = $l0 \lambda \), \(l_1 = $l1 \lambda\) (\(\lambda\) represents the wavelength of the microwave).$BR All lines are lossless with impedance \(Z_0 = $Z0 \Omega \). $BR \{image("ECE303_Ulaby_Ed7_2_33.png",height=>270, width=>360)\} $BR $PAR (a) Calculate \(Z_{in1}\) , the input impedance of the antennaterminatedline, at the parallel juncture. $BR -\(Z_{in1} = \) \{ans_rule(20)\} \(\Omega\) \{ AnswerFormatHelp("numbers") \}$BR +\(Z_{in1} = \) \{ans_rule(20)\} \(\Omega\) \{ helpLink("numbers") \}$BR $PAR (b) Combine \(Z_{in1}\) and \(Z_{in2}\) in parallel to obtain \(Z'_L\), the effective load impedance of the feedline. $BR -\(Z'_L = \) \{ans_rule(20)\} \(\Omega\) \{ AnswerFormatHelp("numbers") \}$BR +\(Z'_L = \) \{ans_rule(20)\} \(\Omega\) \{ helpLink("numbers") \}$BR $PAR (c) Calculate \(Z_{in}\) of the feedline. $BR -\(Z_{in} = \) \{ans_rule(20)\} \(\Omega\) \{ AnswerFormatHelp("numbers") \}$BR +\(Z_{in} = \) \{ans_rule(20)\} \(\Omega\) \{ helpLink("numbers") \}$BR $PAR $BBOLD Notes: You can use either a+bj or A*exp(jB) (the angle B should be in radians) to represent the complex number. $EBOLD diff --git a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.35.pg b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.35.pg index 72ac51df91..c3b0bd3e75 100644 --- a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.35.pg +++ b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.35.pg @@ -1,11 +1,11 @@ # DESCRIPTION -# Problem for 'NCSU ECE303 Ulaby 7Ed P2.35'. # +# Problem for 'NCSU ECE303 Ulaby 7Ed P2.35'. # # WeBWorK problem written by H. J. Trussell, # ENDDESCRIPTION ## DBsubject(Electrical Engineering) -## DBchapter(CHAPTER 2 Transmission Lines) -## DBsection(Section 2-7: WAVE IMPEDANCE OF THE LOSSLESS LINE) # +## DBchapter(CHAPTER 2 Transmission Lines) +## DBsection(Section 2-7: WAVE IMPEDANCE OF THE LOSSLESS LINE) # ## Institution(North Carolina State University) ## Autho(H. J. Trussell) ## TitleText1('Fundamentals of Applied Electromagnetics') @@ -13,14 +13,14 @@ ## EditionText1('7') ## Problem1('2.35') # ## Keywords('lossless', 'lumped-element', 'insulating layer') # -## Resources('ECE303_Ulaby_Ed7_2_35.png') +## Resources('ECE303_Ulaby_Ed7_2_35.png') DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "unionLists.pl", "answerHints.pl", "parserFunction.pl", @@ -36,7 +36,7 @@ Context()->variables->are( t=>"Real"); Context()->flags->set( tolerance => 0.01, - tolType => "relative", # + tolType => "relative", # ); @@ -67,7 +67,7 @@ $f_Hz = $f * 10**6; # Hz # calculation $up = $c; $lambda = $up / $f_Hz / sqrt($epsilon); -$beta = 2*pi / $lambda; +$beta = 2*pi / $lambda; $beta_l = $beta * $l; # \beta * l $beta_l_pi = $beta_l / pi; @@ -92,7 +92,7 @@ $BBOLD This problem is related to Problem 2.35 in the "The Fundamentals of Appli $PAR -For the lossless transmission line circuit shown in Fig. P2.35, +For the lossless transmission line circuit shown in Fig. P2.35, determine the equivalent series lumped-element circuit at \(f = $f MHz\) at the input to the line. The line has a characteristic impedance of \(Z_0 = $Z0 \Omega \), the insulating layer has \(\epsilon_r = $epsilon\). Further in the diagram below, \(Z_L=$ZL \Omega\) and \(l= $l m\).$BR Notes: The system can be thought of as an equivalent \(RL\) (lumped) circuit.$BR @@ -101,14 +101,14 @@ Notes: The system can be thought of as an equivalent \(RL\) (lumped) circuit.$BR Notes: \(u_p = c = $c m/s \). $PAR (a) Determine the input impedance \(Z_{in}\). $BR -\(Z_{in} = \) \{ans_rule(20)\} \(\Omega\) \{ AnswerFormatHelp("numbers") \}$BR +\(Z_{in} = \) \{ans_rule(20)\} \(\Omega\) \{ helpLink("numbers") \}$BR $PAR $BBOLD Notes: You can use either a+bj or A*exp(jB) (the angle B should be in radians) to represent the complex number. $EBOLD $PAR (b) Let \(Z_{in}\) is equivalent to a series RL circuit, then determine the the inductance \(L\). $BR -\(L = \) \{ans_rule(20)\} \(nH\) \{ AnswerFormatHelp("numbers") \}$BR +\(L = \) \{ans_rule(20)\} \(nH\) \{ helpLink("numbers") \}$BR END_TEXT Context()->normalStrings; diff --git a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.36.pg b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.36.pg index fe1f204495..26ab01f146 100644 --- a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.36.pg +++ b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.36.pg @@ -1,11 +1,11 @@ # DESCRIPTION -# Problem for 'NCSU ECE303 Ulaby 7Ed P2.36'. # +# Problem for 'NCSU ECE303 Ulaby 7Ed P2.36'. # # WeBWorK problem written by H. J. Trussell, # ENDDESCRIPTION ## DBsubject(Electrical Engineering) -## DBchapter(CHAPTER 2 Transmission Lines) -## DBsection(Section 2-8: SPECIAL CASES OF THE LOSSLESS LINE) # +## DBchapter(CHAPTER 2 Transmission Lines) +## DBsection(Section 2-8: SPECIAL CASES OF THE LOSSLESS LINE) # ## Institution(North Carolina State University) ## Autho(H. J. Trussell) ## TitleText1('Fundamentals of Applied Electromagnetics') @@ -13,14 +13,14 @@ ## EditionText1('7') ## Problem1('2.36') # ## Keywords('lossless', 'input impedance') # -## Resources() +## Resources() DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "unionLists.pl", "answerHints.pl", "parserFunction.pl", @@ -77,15 +77,15 @@ $BBOLD This problem is related to Problem 2.36 in the "The Fundamentals of Appli $PAR -At an operating frequency of \(f = $f MHz\), +At an operating frequency of \(f = $f MHz\), it is desired to use a section of a lossless \(Z_0 = $Z0 \Omega \) transmission line terminated -in a short circuit to construct an equivalent load with reactance\(X = 40 \Omega \). -If the phase velocity of the line is \(u_p = $up c\) \((c = $c m/s)\), +in a short circuit to construct an equivalent load with reactance\(X = 40 \Omega \). +If the phase velocity of the line is \(u_p = $up c\) \((c = $c m/s)\), determine the shortest possible line length \(l_{min}\) that would exhibit the desired reactance at its input. $BR $PAR -\(l_{min} = \) \{ans_rule(20)\} \(cm\) \{ AnswerFormatHelp("numbers") \}$BR +\(l_{min} = \) \{ans_rule(20)\} \(cm\) \{ helpLink("numbers") \}$BR END_TEXT Context()->normalStrings; diff --git a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.4.pg b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.4.pg index e5c2259e98..c7732ecb5c 100644 --- a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.4.pg +++ b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.4.pg @@ -1,26 +1,26 @@ # DESCRIPTION -# Problem for 'NCSU ECE303 Ulaby 7Ed P2.4'. +# Problem for 'NCSU ECE303 Ulaby 7Ed P2.4'. # WeBWorK problem written by H. J. Trussell, # ENDDESCRIPTION ## DBsubject(Electrical Engineering) -## DBchapter(CHAPTER 2 Transmission Lines) -## DBsection(Section 2-2: Lumped-Element Model) +## DBchapter(CHAPTER 2 Transmission Lines) +## DBsection(Section 2-2: Lumped-Element Model) ## Institution(North Carolina State University) ## Autho(H. J. Trussell) ## TitleText1('Fundamentals of Applied Electromagnetics') ## AuthorText1('Fawwaz T. Ulaby', 'Umberto Ravaioli') ## EditionText1('7') -## Problem('2.4') -## Keywords('waves', 'frequency') -## Resources() +## Problem('2.4') +## Keywords('waves', 'frequency') +## Resources() DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "unionLists.pl", "answerHints.pl", "parserFunction.pl", @@ -54,7 +54,7 @@ $mu = $mu_0; # $alpha=Real(0.46); # put here to check homework answers from written solution -# debug parameters +# debug parameters #$f = Real(1*10**9); #Hz #$w = Real(1.2*10**(-2)); # meters #$d = Real(1.5*10**(-3)); # meters @@ -90,23 +90,23 @@ BEGIN_TEXT $BBOLD This problem is related to Problem 2.4 in the "The Fundamentals of Applied Electromagnetic 7Ed, (Ulaby & Ravaioli)". $EBOLD $PAR -A \($f_GHz GHz\) parallel-plate transmission line consists of \($w_cm cm\) wide copper strips, separated by a \($d_cm cm\) thick layer of polystyrene.$BR +A \($f_GHz GHz\) parallel-plate transmission line consists of \($w_cm cm\) wide copper strips, separated by a \($d_cm cm\) thick layer of polystyrene.$BR Appendix B gives \( \mu_c = \mu_0 = 4 \pi \times 10^{-7} (H/m)\) and \(\sigma_c = $sigma_c (S/m)\) for copper, and \(\varepsilon_r = 2.6\) for polystyrene. Use Table 2-1 to determine the line parameters of the transmission line.$BR Assume \(\mu = \mu_0\) and \(\sigma \approx 0\) for polystyrene. $PAR (a)Calculate the line parameters, \(R'\), \(L'\), \(G'\) and \(C'\) at \($f_GHz GHz\). $PAR -\(R' = \) \{ans_rule(20)\} \(\Omega /m\) \{ AnswerFormatHelp("numbers") \}$BR -\(L' = \) \{ans_rule(20)\} \(\mu H/m\) \{ AnswerFormatHelp("numbers") \}$BR -\(G' = \) \{ans_rule(20)\} \(\mu S/m\) \{ AnswerFormatHelp("numbers") \}$BR -\(C' = \) \{ans_rule(20)\} \(pF/m\) \{ AnswerFormatHelp("numbers") \}$PAR +\(R' = \) \{ans_rule(20)\} \(\Omega /m\) \{ helpLink("numbers") \}$BR +\(L' = \) \{ans_rule(20)\} \(\mu H/m\) \{ helpLink("numbers") \}$BR +\(G' = \) \{ans_rule(20)\} \(\mu S/m\) \{ helpLink("numbers") \}$BR +\(C' = \) \{ans_rule(20)\} \(pF/m\) \{ helpLink("numbers") \}$PAR (b)Using the values obtained above and the equations in Table 2-2 from the textbook , find the following parameters: $PAR -\(\alpha = \) \{ans_rule(20)\} \(Np /m\) \{ AnswerFormatHelp("numbers") \}$BR -\(\beta = \) \{ans_rule(20)\} \(m/s\) \{ AnswerFormatHelp("numbers") \}$BR -\(u_p = \) \{ans_rule(20)\} \(S/m\) \{ AnswerFormatHelp("numbers") \}$BR -\(Z_0 = \) \{ans_rule(20)\} \(\Omega\) \{ AnswerFormatHelp("numbers") \}$BR +\(\alpha = \) \{ans_rule(20)\} \(Np /m\) \{ helpLink("numbers") \}$BR +\(\beta = \) \{ans_rule(20)\} \(m/s\) \{ helpLink("numbers") \}$BR +\(u_p = \) \{ans_rule(20)\} \(S/m\) \{ helpLink("numbers") \}$BR +\(Z_0 = \) \{ans_rule(20)\} \(\Omega\) \{ helpLink("numbers") \}$BR END_TEXT @@ -129,7 +129,7 @@ Context()->texStrings; BEGIN_SOLUTION -$PAR +$PAR (a) $BR \(R_s = \sqrt{\pi f \mu_0 / \sigma_c}\) \( = \sqrt{\pi \times $f \times $mu_0 / $sigma_c}\) @@ -158,7 +158,7 @@ $PAR $PAR \(\gamma = \sqrt{(R' + j w L') \times (G' + j w C')}\) $BR \(\gamma = \sqrt{($R_p + j \times $omega \times $L_p) \ times ($G_p + j \times $omega \times $C_p)}\) -\( = $gamma \)$BR +\( = $gamma \)$BR $PAR \(\alpha = Re(\gamma)\) \( = $alpha N_p/s\) $BR diff --git a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.42.pg b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.42.pg index f23dff63c2..5e8aa52cc9 100644 --- a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.42.pg +++ b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.42.pg @@ -1,11 +1,11 @@ # DESCRIPTION -# Problem for 'NCSU ECE303 Ulaby 7Ed P2.42'. # +# Problem for 'NCSU ECE303 Ulaby 7Ed P2.42'. # # WeBWorK problem written by H. J. Trussell, # ENDDESCRIPTION ## DBsubject(Electrical Engineering) -## DBchapter(CHAPTER 2 Transmission Lines) -## DBsection(Section 2-7: WAVE IMPEDANCE OF THE LOSSLESS LINE) # +## DBchapter(CHAPTER 2 Transmission Lines) +## DBsection(Section 2-7: WAVE IMPEDANCE OF THE LOSSLESS LINE) # ## Institution(North Carolina State University) ## Autho(H. J. Trussell) ## TitleText1('Fundamentals of Applied Electromagnetics') @@ -13,7 +13,7 @@ ## EditionText1('7') ## Problem1('2.42') # ## Keywords('lossless line', 'generator circuit', 'time-average power') # -## Resources('ECE303_Ulaby_Ed7_2_42.png') +## Resources('ECE303_Ulaby_Ed7_2_42.png') DOCUMENT(); # This should be the first executable line in the problem. @@ -28,7 +28,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -68,7 +68,7 @@ $lth = Real(0.15); # length # calculation # (a) -$beta = 2*pi / $lambda; +$beta = 2*pi / $lambda; $beta_lth = $beta * $lth * $lambda; # \beta * lth $theta = $beta_lth; # define the angle $theta_deg = $theta*180/pi; @@ -130,29 +130,29 @@ You can use either a+bj or A*exp(jB) (the angle B should be in radians) to repre $PAR (a) Compute \(Z_{in} \), the input impedance of the line at the generator end. $BR -\(Z_{in1} = \) \{ans_rule(20)\} \(\Omega\) \{ AnswerFormatHelp("numbers") \}$BR +\(Z_{in1} = \) \{ans_rule(20)\} \(\Omega\) \{ helpLink("numbers") \}$BR (b) Compute \(\tilde{I_i} \) and \(\tilde{V_i} \). $BR -\(\tilde{I_i} = \) \{ans_rule(20)\} \( A \) \{ AnswerFormatHelp("numbers") \}$BR +\(\tilde{I_i} = \) \{ans_rule(20)\} \( A \) \{ helpLink("numbers") \}$BR -\(\tilde{V_i} = \) \{ans_rule(20)\} \( V \) \{ AnswerFormatHelp("numbers") \}$BR +\(\tilde{V_i} = \) \{ans_rule(20)\} \( V \) \{ helpLink("numbers") \}$BR (c) Compute the time-average power delivered to the line, \(P_{in} = 0.5 * Re(\tilde {V_i} \tilde {I_i^*})\). $BR -\(P_{in} = \) \{ans_rule(20)\} \(W \) \{ AnswerFormatHelp("numbers") \}$BR +\(P_{in} = \) \{ans_rule(20)\} \(W \) \{ helpLink("numbers") \}$BR (d) Compute \(\tilde {V_L^*}\), \(\tilde {I_L^*}\) and the time-average power delivered to the load, \(P_L = 0.5 * Re(\tilde {V_L} \tilde {I_L^*})\). $BR -\(\tilde{I_L} = \) \{ans_rule(20)\} \( A \) \{ AnswerFormatHelp("numbers") \}$BR -\(\tilde{V_L} = \) \{ans_rule(20)\} \( V \) \{ AnswerFormatHelp("numbers") \}$BR -\(P_L = \) \{ans_rule(20)\} \(W \) \{ AnswerFormatHelp("numbers") \}$BR +\(\tilde{I_L} = \) \{ans_rule(20)\} \( A \) \{ helpLink("numbers") \}$BR +\(\tilde{V_L} = \) \{ans_rule(20)\} \( V \) \{ helpLink("numbers") \}$BR +\(P_L = \) \{ans_rule(20)\} \(W \) \{ helpLink("numbers") \}$BR Be prepared to relate \(P_{in}\) to \(P_L\). Is \(P_L\) \{ $PL_Pin ->menu() \} \(P_{in}\)? $BR Be able to explain why you would expect that result. $BR (e) Compute the time-average power delivered by the generator, \(P_g\), and the timeaverage power \({P_Z}_g\)dissipated in \(Z_g\). $BR -\(P_g = \) \{ans_rule(20)\} \(W \) \{ AnswerFormatHelp("numbers") \}$BR -\({P_Z}_g = \) \{ans_rule(20)\} \(W \) \{ AnswerFormatHelp("numbers") \}$BR +\(P_g = \) \{ans_rule(20)\} \(W \) \{ helpLink("numbers") \}$BR +\({P_Z}_g = \) \{ans_rule(20)\} \(W \) \{ helpLink("numbers") \}$BR For the conservation of power in this system, is \(P_g\) \{ $Pg_Pout ->menu() \} \( (P_{Z_g} + P_{in})\)? $BR diff --git a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.46.pg b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.46.pg index abc8299ebf..dd4b90371a 100644 --- a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.46.pg +++ b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.46.pg @@ -1,11 +1,11 @@ # DESCRIPTION -# Problem for 'NCSU ECE303 Ulaby 7Ed P2.46'. # +# Problem for 'NCSU ECE303 Ulaby 7Ed P2.46'. # # WeBWorK problem written by H. J. Trussell, # ENDDESCRIPTION ## DBsubject(Electrical Engineering) -## DBchapter(CHAPTER 2 Transmission Lines) -## DBsection(Section 2-11: IMPEDANCE MATCHING) # +## DBchapter(CHAPTER 2 Transmission Lines) +## DBsection(Section 2-11: IMPEDANCE MATCHING) # ## Institution(North Carolina State University) ## Autho(H. J. Trussell) ## TitleText1('Fundamentals of Applied Electromagnetics') @@ -13,14 +13,14 @@ ## EditionText1('7') ## Problem1('2.46') # ## Keywords('lossless line', 'matched conditions', 'impedance matching') # -## Resources('ECE303_Ulaby_Ed7_2_46.png') +## Resources('ECE303_Ulaby_Ed7_2_46.png') DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "unionLists.pl", "answerHints.pl", "parserFunction.pl", @@ -36,7 +36,7 @@ Context()->variables->are( t=>"Real"); Context()->flags->set( tolerance => 0.01, - tolType => "relative", # + tolType => "relative", # ); @@ -71,16 +71,16 @@ BEGIN_TEXT $BBOLD This problem is related to Problem 2.46 in the "The Fundamentals of Applied Electromagnetic 7Ed, (Ulaby & Ravaioli)" $EBOLD $PAR -An antenna with a load impedance \(Z_L = ($ZL_Re + j $ZL_Im) \Omega \) +An antenna with a load impedance \(Z_L = ($ZL_Re + j $ZL_Im) \Omega \) is connected to a transmitter through a \(Z_0 = $Z0 \Omega \) lossless transmission line. $BR \{image("ECE303_Ulaby_Ed7_2_46.png",height=>320, width=>400)\} $BR $PAR -Under the matched conditions ( \($Z0 \Omega \) load) that the transmitter can deliver \(P_L = $PL W \) to the load and \(Z_g = Z_0\), +Under the matched conditions ( \($Z0 \Omega \) load) that the transmitter can deliver \(P_L = $PL W \) to the load and \(Z_g = Z_0\), determine power \(P_{av}\) delivered to the antenna. $BR $PAR -\(P_{av} = \) \{ans_rule(20)\} \(W \) \{ AnswerFormatHelp("numbers") \}$BR +\(P_{av} = \) \{ans_rule(20)\} \(W \) \{ helpLink("numbers") \}$BR END_TEXT @@ -96,14 +96,14 @@ BEGIN_SOLUTION $PAR From Eqs. (2.82) and (2.76), $BR -\(V_0^+ = (\tilde{V_g} Z_{in} / (Z_g + Z_{in})) / ( e^{j\beta l} + \Gamma e^{-j \beta l} )\).$BR -\( = \Large \frac{ \tilde{V_g} Z_0 [1+\Gamma e^{-j 2 \beta l} ] / [1-\Gamma e^{-j 2 \beta l} ] }{Z_0 + Z_0 [1+\Gamma e^{-j 2 \beta l} ] / [1-\Gamma e^{-j 2 \beta l} ]} * \frac{e^{-j \beta l}}{1+\Gamma e^{-j 2 \beta l}}\).$BR -\( = \Large \frac{ \tilde{V_g} e^{-j \beta l} }{ (1-\Gamma e^{-j 2 \beta l}) + (1+\Gamma e^{-j 2 \beta l}) } \).$BR -\( = 0.5 \tilde{V_g} e^{-j \beta l} \).$BR +\(V_0^+ = (\tilde{V_g} Z_{in} / (Z_g + Z_{in})) / ( e^{j\beta l} + \Gamma e^{-j \beta l} )\).$BR +\( = \Large \frac{ \tilde{V_g} Z_0 [1+\Gamma e^{-j 2 \beta l} ] / [1-\Gamma e^{-j 2 \beta l} ] }{Z_0 + Z_0 [1+\Gamma e^{-j 2 \beta l} ] / [1-\Gamma e^{-j 2 \beta l} ]} * \frac{e^{-j \beta l}}{1+\Gamma e^{-j 2 \beta l}}\).$BR +\( = \Large \frac{ \tilde{V_g} e^{-j \beta l} }{ (1-\Gamma e^{-j 2 \beta l}) + (1+\Gamma e^{-j 2 \beta l}) } \).$BR +\( = 0.5 \tilde{V_g} e^{-j \beta l} \).$BR Thus, in Eq. (2.106), $BR -\(P_{av} = ( |V_0^+|^{2} / (2 Z_0) * (1 - |\Gamma|^{2}) \) -\( = |\tilde{V_g}|^{2} / (8 Z_0) * (1 - |\Gamma|^{2}) \).$BR +\(P_{av} = ( |V_0^+|^{2} / (2 Z_0) * (1 - |\Gamma|^{2}) \) +\( = |\tilde{V_g}|^{2} / (8 Z_0) * (1 - |\Gamma|^{2}) \).$BR Under the matched condition, \(|\Gamma| = 0 \) and \( P_L = $PL W \), so, $BR \( ( |\tilde{V_g}|^{2} / (8 Z_0) = $PL W \).$BR diff --git a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.6.pg b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.6.pg index 19f380273a..29b5e4cc54 100644 --- a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.6.pg +++ b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.6.pg @@ -20,7 +20,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "unionLists.pl", "answerHints.pl", "parserFunction.pl", @@ -45,9 +45,9 @@ $do_lower = $di*10**2 + 0.1; $do_upper = $do_lower + 1; $do_delta = 0.1; $do = Real(random( $do_lower, $do_upper,$do_delta)*10**(-2)); # outer diameter in cm, formula uses meters -$sigma = Real(random(1,2,0.1)*10**(-3)); # S/m +$sigma = Real(random(1,2,0.1)*10**(-3)); # S/m $sigma_c = Real(5.8*10**(7)); # S/m for copper -$epsilon_r = Real(random(3.8,5.0,.1)); # +$epsilon_r = Real(random(3.8,5.0,.1)); # $epsilon_0 = Compute((10**(-9))/(36*pi)); $mu_0 = Real(4*pi*10**(-7)); $mu_c = $mu_0; @@ -59,13 +59,13 @@ $mu = $mu_0; #$f = Real(1*10**9); # GHz #$di = Real(0.5*10**(-2)); # inner diameter cm but formula is in meters #$do = Real(1*10**(-2)); # outer diameter in cm, formula uses meters -#$sigma = Real(1*10**(-3)); # S/m +#$sigma = Real(1*10**(-3)); # S/m #$sigma_c = Real(5.8*10**(7)); # S/m for copper -#$epsilon_r = Real(4.5); # +#$epsilon_r = Real(4.5); # #$epsilon_0 = Compute((10**(-9))/(36*pi)); #$mu_0 = Real(4*pi*10**(-7)); #$mu_c = $mu_0; -#$mu = $mu_0; +#$mu = $mu_0; # answers @@ -107,17 +107,17 @@ The conductors are made of copper (\(\sigma_c=5.8 \times 10^7 S/m \)). Assume \( Pay attention to the units requested for each parameter. $PAR -\(R' = \) \{ans_rule(20)\} \(\Omega /m\) \{ AnswerFormatHelp("numbers") \}$BR -\(L' = \) \{ans_rule(20)\} \(nH/m\) \{ AnswerFormatHelp("numbers") \}$BR -\(G' = \) \{ans_rule(20)\} \(mS/m\) \{ AnswerFormatHelp("numbers") \}$BR -\(C' = \) \{ans_rule(20)\} \(pF/m\) \{ AnswerFormatHelp("numbers") \}$BR +\(R' = \) \{ans_rule(20)\} \(\Omega /m\) \{ helpLink("numbers") \}$BR +\(L' = \) \{ans_rule(20)\} \(nH/m\) \{ helpLink("numbers") \}$BR +\(G' = \) \{ans_rule(20)\} \(mS/m\) \{ helpLink("numbers") \}$BR +\(C' = \) \{ans_rule(20)\} \(pF/m\) \{ helpLink("numbers") \}$BR $PAR (b) Using the values obtained above and Table 2-2, find the following parameters: $PAR -\(\alpha = \) \{ans_rule(20)\} \(Np /m\) \{ AnswerFormatHelp("numbers") \}$BR -\(\beta = \) \{ans_rule(20)\} \(m/s\) \{ AnswerFormatHelp("numbers") \}$BR -\(u_p = \) \{ans_rule(20)\} \(S/m\) \{ AnswerFormatHelp("numbers") \}$BR -\(Z_0 = \) \{ans_rule(20)\} \(\Omega\) \{ AnswerFormatHelp("numbers") \}$BR +\(\alpha = \) \{ans_rule(20)\} \(Np /m\) \{ helpLink("numbers") \}$BR +\(\beta = \) \{ans_rule(20)\} \(m/s\) \{ helpLink("numbers") \}$BR +\(u_p = \) \{ans_rule(20)\} \(S/m\) \{ helpLink("numbers") \}$BR +\(Z_0 = \) \{ans_rule(20)\} \(\Omega\) \{ helpLink("numbers") \}$BR END_TEXT Context()->normalStrings; @@ -140,7 +140,7 @@ Context()->texStrings; BEGIN_SOLUTION -$PAR +$PAR (a) Given: $BR \(a = d_{in} / 2 cm\) \( = $di_cm cm\) $BR @@ -177,7 +177,7 @@ $PAR $PAR \(\gamma = \sqrt{(R' + j w L') \times (G' + j w C')}\) \(\gamma = \sqrt{($R_p + j \times $omega \times $L_p) \ times ($G_p + j \times $omega \times $C_p)}\) -\( = $gamma \)$BR +\( = $gamma \)$BR $PAR \(\alpha = Re(\gamma)\) \( = $alpha N_p/s\) $BR diff --git a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.9.pg b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.9.pg index 70610e5962..a22fe6d564 100644 --- a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.9.pg +++ b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.9.pg @@ -1,26 +1,26 @@ # DESCRIPTION -# Problem for 'NCSU ECE303 Ulaby 7Ed P2.9'. +# Problem for 'NCSU ECE303 Ulaby 7Ed P2.9'. # WeBWorK problem written by H. J. Trussell, # ENDDESCRIPTION ## DBsubject(Electrical Engineering) -## DBchapter(CHAPTER 2 Transmission Lines) -## DBsection(Section 2-5: The Lossless Microstrip Line) +## DBchapter(CHAPTER 2 Transmission Lines) +## DBsection(Section 2-5: The Lossless Microstrip Line) ## Institution(North Carolina State University) ## Autho(H. J. Trussell) ## TitleText1('Fundamentals of Applied Electromagnetics') ## AuthorText1('Fawwaz T. Ulaby', 'Umberto Ravaioli') ## EditionText1('7') -## Problem('2.9') -## Keywords('lossless','microstrip') -## Resources() +## Problem('2.9') +## Keywords('lossless','microstrip') +## Resources() DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "unionLists.pl", "answerHints.pl", "parserFunction.pl", @@ -42,9 +42,9 @@ $f = Real(random(4,12,0.1)*10**9); # GHz $w = Real(random(0.8,2.0,0.1)*10**(-3)); # width cm but formula is in meters $h= Real(random( 1.0,2.0,0.1)*10**(-2)); # thicknessr in mm, formula uses meters -$sigma = Real(2*10**(-6)); # S/m +$sigma = Real(2*10**(-6)); # S/m $sigma_c = Real(5.8*10**(7)); # S/m for copper -$epsilon_r = Real(random(2.1,2.9.0.1)); # dielectric +$epsilon_r = Real(random(2.1,2.9.0.1)); # dielectric $epsilon_0 = Compute((10**(-9))/(36*pi)); $mu_0 = Real(4*pi*10**(-7)); @@ -58,7 +58,7 @@ $c = Real(3*10**8); # m/s #$f = Real(10*10**9); # GHz #$w = Real(1*10**(-3)); # width cm but formula is in meters #$h= Real(1*10**(-2)); # thicknessr in mm, formula uses meters -#$epsilon_r = Real(2.5); # dielectric +#$epsilon_r = Real(2.5); # dielectric # answers @@ -90,10 +90,10 @@ $BBOLD This problem is related to Problem 2.9 in the "The Fundamentals of Applie $PAR A lossless microstrip line uses \($w_mm mm\) wide conducting strip over a \($h_cm cm\) thick substrate with \(\varepsilon _r = $epsilon_r\). Using the equations in the text, determine the line parameters, \(\varepsilon_{eff}\), \(Z_0\) and \(\beta\) at \($f_GHz GHz\). compare your results with those obtained by using CD Module 2.3. $PAR -\(\varepsilon_{eff} = \) \{ans_rule(20)\} \{ AnswerFormatHelp("numbers") \}$BR -\(Z_0 = \) \{ans_rule(20)\} \(\Omega\) \{ AnswerFormatHelp("numbers") \}$BR -\(\beta= \) \{ans_rule(20)\} \(rad/m\) \{ AnswerFormatHelp("numbers") \}$BR -The wavelength on the transmission line \(\lambda=\) \{ans_rule(20)\} \(mm\) \{ AnswerFormatHelp("numbers") \}$BR +\(\varepsilon_{eff} = \) \{ans_rule(20)\} \{ helpLink("numbers") \}$BR +\(Z_0 = \) \{ans_rule(20)\} \(\Omega\) \{ helpLink("numbers") \}$BR +\(\beta= \) \{ans_rule(20)\} \(rad/m\) \{ helpLink("numbers") \}$BR +The wavelength on the transmission line \(\lambda=\) \{ans_rule(20)\} \(mm\) \{ helpLink("numbers") \}$BR END_TEXT Context()->normalStrings; @@ -113,7 +113,7 @@ Context()->texStrings; BEGIN_SOLUTION -$PAR +$PAR Given: $BR \(w = $w m \), \(h = $h m \), @@ -143,7 +143,7 @@ Hence, $BR Also, $BR \(\beta =\Large{ \frac{w}{c} \sqrt{\varepsilon_{eff}}} \) \( = \frac{$w}{$c} \times \sqrt{$eps_eff} \) -\( = $beta rad/m\). $BR +\( = $beta rad/m\). $BR And, $BR \(\lambda = 2 \pi / \beta \) \( = 2 \pi / $beta \) diff --git a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.20a.pg b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.20a.pg index f636ab6001..2afaf617c3 100644 --- a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.20a.pg +++ b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.20a.pg @@ -20,7 +20,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -106,17 +106,17 @@ The following figure demonstrates the spatial variation of vector field \(E= $PAR Following the same convention, determine values of the vector field (the vector values of the arrows in vector field plot) for \(- \hat{\textbf{x}} y\) at the following four points: $BR -At \($Vec1\), the vector field value is \{ans_rule(20)\} \{ AnswerFormatHelp("vectors") \} $PAR -At \($Vec2\), the vector field value is \{ans_rule(20)\} \{ AnswerFormatHelp("vectors") \} $PAR -At \($Vec3\), the vector field value is \{ans_rule(20)\} \{ AnswerFormatHelp("vectors") \} $PAR -At \($Vec4\), the vector field value is \{ans_rule(20)\} \{ AnswerFormatHelp("vectors") \} $BR +At \($Vec1\), the vector field value is \{ans_rule(20)\} \{ helpLink("vectors") \} $PAR +At \($Vec2\), the vector field value is \{ans_rule(20)\} \{ helpLink("vectors") \} $PAR +At \($Vec3\), the vector field value is \{ans_rule(20)\} \{ helpLink("vectors") \} $PAR +At \($Vec4\), the vector field value is \{ans_rule(20)\} \{ helpLink("vectors") \} $BR Note: Your answers should be the form of \(\langle x,y \rangle \). $PAR \{ $mc->print_q() \} $BR \{ $mc->print_a() \} $BR -$PAR +$PAR END_TEXT Context()->normalStrings; diff --git a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.20b.pg b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.20b.pg index 5bbf698c0a..f41a05b3df 100644 --- a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.20b.pg +++ b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.20b.pg @@ -20,7 +20,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -105,17 +105,17 @@ The following figure demonstrates the spatial variation of vector field \(E=\hat $PAR Following the same convention, determine values of the vector field (the vector values of the arrows in vector field plot) for \( \hat{\textbf{y}} x\) at the following four points: $BR -At \($Vec1\), the vector field value is \{ans_rule(20)\} \{ AnswerFormatHelp("vectors") \} $PAR -At \($Vec2\), the vector field value is \{ans_rule(20)\} \{ AnswerFormatHelp("vectors") \} $PAR -At \($Vec3\), the vector field value is \{ans_rule(20)\} \{ AnswerFormatHelp("vectors") \} $PAR -At \($Vec4\), the vector field value is \{ans_rule(20)\} \{ AnswerFormatHelp("vectors") \} $BR +At \($Vec1\), the vector field value is \{ans_rule(20)\} \{ helpLink("vectors") \} $PAR +At \($Vec2\), the vector field value is \{ans_rule(20)\} \{ helpLink("vectors") \} $PAR +At \($Vec3\), the vector field value is \{ans_rule(20)\} \{ helpLink("vectors") \} $PAR +At \($Vec4\), the vector field value is \{ans_rule(20)\} \{ helpLink("vectors") \} $BR Note: Your answers should be in the form of \(\langle x,y \rangle \). $PAR \{ $mc->print_q() \} $BR \{ $mc->print_a() \} $BR -$PAR +$PAR END_TEXT Context()->normalStrings; diff --git a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.20c.pg b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.20c.pg index 373e3d4e52..893cb5d832 100644 --- a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.20c.pg +++ b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.20c.pg @@ -20,7 +20,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -104,17 +104,17 @@ The following figure demonstrates the spatial variation of vector field \(E=\hat $PAR Following the same convention, determine values of the vector field (the vector values of the arrows in vector field plot) for \( \hat x x + \hat y y \) at the following four points: $BR -At \($Vec1\), the vector field value is \{ans_rule(20)\} \{ AnswerFormatHelp("vectors") \} $PAR -At \($Vec2\), the vector field value is \{ans_rule(20)\} \{ AnswerFormatHelp("vectors") \} $PAR -At \($Vec3\), the vector field value is \{ans_rule(20)\} \{ AnswerFormatHelp("vectors") \} $PAR -At \($Vec4\), the vector field value is \{ans_rule(20)\} \{ AnswerFormatHelp("vectors") \} $BR +At \($Vec1\), the vector field value is \{ans_rule(20)\} \{ helpLink("vectors") \} $PAR +At \($Vec2\), the vector field value is \{ans_rule(20)\} \{ helpLink("vectors") \} $PAR +At \($Vec3\), the vector field value is \{ans_rule(20)\} \{ helpLink("vectors") \} $PAR +At \($Vec4\), the vector field value is \{ans_rule(20)\} \{ helpLink("vectors") \} $BR Note: Your answers should be enclosed in \(\langle x,y \rangle \). $PAR \{ $mc->print_q() \} $BR \{ $mc->print_a() \} $BR -$PAR +$PAR END_TEXT Context()->normalStrings; diff --git a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.20d.pg b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.20d.pg index a28b352c79..c79c2f7015 100644 --- a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.20d.pg +++ b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.20d.pg @@ -20,7 +20,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -104,17 +104,17 @@ The following figure demonstrates the spatial variation of vector field \(E=\hat $PAR Following the same convention, determine values of the vector field (the vector values of the arrows in vector field plot) for \( \hat x x +2 \hat y y \) at the following four points: $BR -At \($Vec1\), the vector field value is \{ans_rule(20)\} \{ AnswerFormatHelp("vectors") \} $PAR -At \($Vec2\), the vector field value is \{ans_rule(20)\} \{ AnswerFormatHelp("vectors") \} $PAR -At \($Vec3\), the vector field value is \{ans_rule(20)\} \{ AnswerFormatHelp("vectors") \} $PAR -At \($Vec4\), the vector field value is \{ans_rule(20)\} \{ AnswerFormatHelp("vectors") \} $BR +At \($Vec1\), the vector field value is \{ans_rule(20)\} \{ helpLink("vectors") \} $PAR +At \($Vec2\), the vector field value is \{ans_rule(20)\} \{ helpLink("vectors") \} $PAR +At \($Vec3\), the vector field value is \{ans_rule(20)\} \{ helpLink("vectors") \} $PAR +At \($Vec4\), the vector field value is \{ans_rule(20)\} \{ helpLink("vectors") \} $BR Note: Your answers should be enclosed in \(\langle x,y \rangle \). $PAR \{ $mc->print_q() \} $BR \{ $mc->print_a() \} $BR -$PAR +$PAR END_TEXT Context()->normalStrings; diff --git a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.20e.pg b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.20e.pg index 65be712127..b807ba7523 100644 --- a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.20e.pg +++ b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.20e.pg @@ -20,7 +20,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -110,17 +110,17 @@ The following figure demonstrates the spatial variation of vector field \(E=\hat $PAR Following the same convention, determine values of the vector field (the vector values of the arrows in vector field plot) for \(\hat{\bf{\phi}} r \) at the following four points: $BR -At \($Vec1\), the vector field value is \{ans_rule(20)\} \{ AnswerFormatHelp("vectors") \} $PAR -At \($Vec2\), the vector field value is \{ans_rule(20)\} \{ AnswerFormatHelp("vectors") \} $PAR -At \($Vec3\), the vector field value is \{ans_rule(20)\} \{ AnswerFormatHelp("vectors") \} $PAR -At \($Vec4\), the vector field value is \{ans_rule(20)\} \{ AnswerFormatHelp("vectors") \} $BR +At \($Vec1\), the vector field value is \{ans_rule(20)\} \{ helpLink("vectors") \} $PAR +At \($Vec2\), the vector field value is \{ans_rule(20)\} \{ helpLink("vectors") \} $PAR +At \($Vec3\), the vector field value is \{ans_rule(20)\} \{ helpLink("vectors") \} $PAR +At \($Vec4\), the vector field value is \{ans_rule(20)\} \{ helpLink("vectors") \} $BR Note: Your answers should be enclosed in \(\langle x,y \rangle \). $PAR \{ $mc->print_q() \} $BR \{ $mc->print_a() \} $BR -$PAR +$PAR END_TEXT Context()->normalStrings; diff --git a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.20f.pg b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.20f.pg index a70c7a3eba..776f064a72 100644 --- a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.20f.pg +++ b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.20f.pg @@ -20,7 +20,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -109,17 +109,17 @@ The following figure demonstrates the spatial variation of vector field \(E=\hat $PAR Following the same convention, determine values of the vector field (the vector values of the arrows in vector field plot) for \( \hat{\textbf{r}} sin \phi \) at the following four points (Note: your answers will be validated to \(\pm 0.01\) absolute): $BR -At \($Vec1\), the vector field value is \{ans_rule(20)\} \{ AnswerFormatHelp("vectors") \} $PAR -At \($Vec2\), the vector field value is \{ans_rule(20)\} \{ AnswerFormatHelp("vectors") \} $PAR -At \($Vec3\), the vector field value is \{ans_rule(20)\} \{ AnswerFormatHelp("vectors") \} $PAR -At \($Vec4\), the vector field value is \{ans_rule(20)\} \{ AnswerFormatHelp("vectors") \} $BR +At \($Vec1\), the vector field value is \{ans_rule(20)\} \{ helpLink("vectors") \} $PAR +At \($Vec2\), the vector field value is \{ans_rule(20)\} \{ helpLink("vectors") \} $PAR +At \($Vec3\), the vector field value is \{ans_rule(20)\} \{ helpLink("vectors") \} $PAR +At \($Vec4\), the vector field value is \{ans_rule(20)\} \{ helpLink("vectors") \} $BR Note: Your answers should be enclosed in \(\langle x,y \rangle \). $PAR \{ $mc->print_q() \} $BR \{ $mc->print_a() \} $BR -$PAR +$PAR END_TEXT Context()->normalStrings; diff --git a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.22.pg b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.22.pg index e06d6651ac..d68e022a44 100644 --- a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.22.pg +++ b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.22.pg @@ -20,7 +20,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -104,20 +104,20 @@ $BBOLD \( P_4 \) $EBOLD \(=$Dv \). $BR Note: The coordinates are enclosed in \(\langle \rangle \) in Webwork. Any angular values in the cylindrical and spherical coordinates should be expressed in radians. Your answers will be validated to \(\pm 0.01\) absolute.$PAR In cylindrical coordinates \( \langle r , \theta , z \rangle \), $BR -$BBOLD \(P_1\) $EBOLD =\{ans_rule(30)\} \{ AnswerFormatHelp("vectors") \} $BR -$BBOLD \( P_2 \) $EBOLD=\{ans_rule(30)\} \{ AnswerFormatHelp("vectors") \} +$BBOLD \(P_1\) $EBOLD =\{ans_rule(30)\} \{ helpLink("vectors") \} $BR +$BBOLD \( P_2 \) $EBOLD=\{ans_rule(30)\} \{ helpLink("vectors") \} $BR -$BBOLD \(P_3\) $EBOLD =\{ans_rule(30)\} \{ AnswerFormatHelp("vectors") \} $BR -$BBOLD \( P_4 \) $EBOLD=\{ans_rule(30)\} \{ AnswerFormatHelp("vectors") \} +$BBOLD \(P_3\) $EBOLD =\{ans_rule(30)\} \{ helpLink("vectors") \} $BR +$BBOLD \( P_4 \) $EBOLD=\{ans_rule(30)\} \{ helpLink("vectors") \} $PAR In spherical coordinates \( \langle R , \theta , \phi \rangle \), $BR -$BBOLD \(P_1\) $EBOLD =\{ans_rule(30)\} \{ AnswerFormatHelp("vectors") \} $BR -$BBOLD \( P_2 \) $EBOLD=\{ans_rule(30)\} \{ AnswerFormatHelp("vectors") \} +$BBOLD \(P_1\) $EBOLD =\{ans_rule(30)\} \{ helpLink("vectors") \} $BR +$BBOLD \( P_2 \) $EBOLD=\{ans_rule(30)\} \{ helpLink("vectors") \} $BR -$BBOLD \(P_3\) $EBOLD =\{ans_rule(30)\} \{ AnswerFormatHelp("vectors") \} $BR -$BBOLD \( P_4 \) $EBOLD=\{ans_rule(30)\} \{ AnswerFormatHelp("vectors") \} +$BBOLD \(P_3\) $EBOLD =\{ans_rule(30)\} \{ helpLink("vectors") \} $BR +$BBOLD \( P_4 \) $EBOLD=\{ans_rule(30)\} \{ helpLink("vectors") \} $PAR END_TEXT @@ -135,7 +135,7 @@ ANS( $Sp4->cmp() ); # Solution Context()->texStrings; BEGIN_SOLUTION -$PAR +$PAR In your calculation, ensure the angles are in the correct quadrants. $BR In cylindrical coordinates, $BR \(P_1=\langle \sqrt{$Ax^2+$Ay^2},atan($Ay/$Ax),$Az \rangle =$Cy1\); $BR diff --git a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.25.pg b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.25.pg index f9f22b0420..1886d016d2 100644 --- a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.25.pg +++ b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.25.pg @@ -20,7 +20,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -78,13 +78,13 @@ $BBOLD This problem is related to Problem 3.25 in the "The Fundamentals of Appli $PAR Use the appropriate expression for the differential surface area \(ds\) to determine the area of each of the following surfaces (denoted as \(A\)): $BR (a) \( $rbmin \le r \le $rbmax\); \( $angbmin \pi \le \phi \le $angbmax \pi \); \(z=$zb\). $BR -\( A \)=\{ans_rule(20)\} \{ AnswerFormatHelp("numbers") \}$PAR +\( A \)=\{ans_rule(20)\} \{ helpLink("numbers") \}$PAR (b) \( R=$rd\); \( 0 \le \theta \le \pi/$thetadinv \); \( 0 \le \phi \le \pi/$phidinv \). $BR -\( A \)=\{ans_rule(20)\} \{ AnswerFormatHelp("numbers") \}$PAR +\( A \)=\{ans_rule(20)\} \{ helpLink("numbers") \}$PAR (c) \( 0 \le R \le $remax\); \( \theta = \pi/$thetaeinv \); \( 0 \le \phi \le $phie \pi \). $BR -\( A \)=\{ans_rule(20)\} \{ AnswerFormatHelp("numbers") \}$PAR +\( A \)=\{ans_rule(20)\} \{ helpLink("numbers") \}$PAR @@ -99,7 +99,7 @@ ANS( $Ae->cmp() ); # Solution Context()->texStrings; BEGIN_SOLUTION -$PAR +$PAR a) \(A=\int_{r=$rbmin}^{$rbmax} \int_{\phi=$angbmin \pi }^{$angbmax \pi} (r)|_{z=0} d \phi dr =$Ab \) $PAR diff --git a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.27.pg b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.27.pg index 4c267b1170..0b717c17b9 100644 --- a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.27.pg +++ b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.27.pg @@ -20,7 +20,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -58,8 +58,8 @@ $BBOLD This problem is related to Problem 3.27 in the "The Fundamentals of Appli $PAR A section of a sphere is described by \( 0 \le R \le $R\) (in meters) ; \( \theta = \pi/$thetainv \); \( \pi/$phiinvmin \le \phi \le \pi/$phiinvmax \). $PAR -(a) the surface area of the spherical section is \{ans_rule(20)\} \(m^2\) \{ AnswerFormatHelp("numbers") \}$PAR -(b) the enclosed volume is \{ans_rule(20)\} \(m^3 \) \{ AnswerFormatHelp("numbers") \}$PAR +(a) the surface area of the spherical section is \{ans_rule(20)\} \(m^2\) \{ helpLink("numbers") \}$PAR +(b) the enclosed volume is \{ans_rule(20)\} \(m^3 \) \{ helpLink("numbers") \}$PAR END_TEXT @@ -73,7 +73,7 @@ ANS( $Vv->cmp() ); # Solution Context()->texStrings; BEGIN_SOLUTION -$PAR +$PAR \(A=\int_{\phi=\pi/ $phiinvmin}^{\pi/ $phiinvmax } \int_{\theta=0 }^{ \pi/$thetainv} (R^2 sin \theta)|_{R=$R} d \theta d \phi =$Av m^2 \) $PAR diff --git a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.31.pg b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.31.pg index c1365cbd24..6e709861b7 100644 --- a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.31.pg +++ b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.31.pg @@ -20,7 +20,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -99,13 +99,13 @@ $BBOLD This problem is related to Problem 3.31 in the "The Fundamentals of Appli $PAR Find the distance between the following pairs of points: $BR (a) \(P_1=($Ax,$Ay,$Az) \) and \(P_2=($Bx,$By,$Bz) \) in Cartesian coordinates. $BR -The distance is =\{ans_rule(20)\} \(m\) \{ AnswerFormatHelp("numbers") \} $PAR - +The distance is =\{ans_rule(20)\} \(m\) \{ helpLink("numbers") \} $PAR + (b) \(P_3=($Abx,\pi / $AngbAinv,$Zba) \) and \(P_4=($Bbx,\pi / $AngbBinv,$Zbb) \) in Cylindrical coordinates. $BR -The distance is =\{ans_rule(20)\} \(m\) \{ AnswerFormatHelp("numbers") \} $PAR +The distance is =\{ans_rule(20)\} \(m\) \{ helpLink("numbers") \} $PAR (c) \(P_5=($Acx,$Thetaca \cdot \pi , $Phica \cdot \pi) \) and \(P_6=($Bcx,$Thetacb \cdot \pi ,$Phicb \cdot \pi ) \) in Spherical coordinates. $BR -The distance is =\{ans_rule(20)\} \(m\) \{ AnswerFormatHelp("numbers") \} $PAR +The distance is =\{ans_rule(20)\} \(m\) \{ helpLink("numbers") \} $PAR Note: distances in meters @@ -120,7 +120,7 @@ ANS( $Dist3->cmp() ); # Solution Context()->texStrings; BEGIN_SOLUTION -$PAR +$PAR a) \(d=[($Ax-$Bx)^2+($Ay - $By)^2 +($Az - $Bz)^2]^{0.5}=$Dist1 m\) $PAR b) \(d=[r_2^2+r_1^2-2r_1r_2 cos(\phi_2 -\phi_1)+(z_2-z_1)^2]^{0.5}\) $PAR diff --git a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.36.pg b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.36.pg index f6c1fdcbeb..d37ff5bd3c 100644 --- a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.36.pg +++ b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.36.pg @@ -29,7 +29,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -50,7 +50,7 @@ Context()->flags->set( ); Context()->variables->are(x=>'Real',y=>'Real',z=>'Real',p=>'Real',t=>'Real',R=>'Real',r=>'Real',); -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; #Initialize element values, to be changed for each question $Px=random(1,4,1); $Py=random(1,4,1); @@ -88,7 +88,7 @@ $PAR $BBOLD This problem is related to Problem 3.36 in the "The Fundamentals of Applied Electromagnetic 7Ed, (Ulaby & Ravaioli)" $EBOLD $PAR Find the gradient of the following scalar functions. In your answers, use \(t\) to represent \(\theta\), \(p\) to represent \(\phi\) and note that \(r\) and \(R\) are not equivalent. $PAR -(a) \(\nabla (x^$Px y^$Py z^$Pz)\)=\{ans_rule(12) \} \(\bf{\hat x}\)+\{ans_rule(12) \} \(\bf{\hat y}\)+ \{ans_rule(12) \} \(\bf{\hat z}\). \{ AnswerFormatHelp("formula") \} +(a) \(\nabla (x^$Px y^$Py z^$Pz)\)=\{ans_rule(12) \} \(\bf{\hat x}\)+\{ans_rule(12) \} \(\bf{\hat y}\)+ \{ans_rule(12) \} \(\bf{\hat z}\). \{ helpLink("formula") \} $PAR (b) \( \nabla (z^$Pz2 cos \phi /(1+r^$Pr))\)= \{ans_rule(12) \} \(\bf{\hat r}\)+\{ans_rule(12) \} \(\bf{\hat{\phi}}\)+ \{ans_rule(12) \} \(\bf{\hat z}\). $PAR (c) \( \nabla (e^{$Cr \cdot R}sin($Ct \cdot \theta)+$Cp \cdot \phi)\)= \{ans_rule(12) \} \(\bf{\hat R}\)+\{ans_rule(12) \} \(\bf{\hat{\theta}}\)+ \{ans_rule(12) \} \(\bf{\hat{\phi}}\). $PAR @@ -135,7 +135,7 @@ From equation 3.72 in the textbook, $BR From equation 3.82 in the textbook, $BR \( \Large \nabla (z^$Pz2 cos \phi /(1+r^$Pr))=$Gr2 \hat{\textbf r}+$Gp2 \hat{\bf{\phi}} + $Gz2 \hat{\textbf z}\). $PAR From equation 3.83 in the textbook, $BR - \( \nabla (e^{$Cr R}sin($Ct \cdot \theta)+$Cp \cdot \phi) =$Gr3 \hat{\textbf R} + $Gt3 \hat{\bf{\theta}} +$Gp3 \hat{\bf{\phi}}\). + \( \nabla (e^{$Cr R}sin($Ct \cdot \theta)+$Cp \cdot \phi) =$Gr3 \hat{\textbf R} + $Gt3 \hat{\bf{\theta}} +$Gp3 \hat{\bf{\phi}}\). END_SOLUTION diff --git a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.36b.pg b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.36b.pg index 9e38d45618..e30d8be280 100644 --- a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.36b.pg +++ b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.36b.pg @@ -29,7 +29,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -50,7 +50,7 @@ Context()->flags->set( ); Context()->variables->are(x=>'Real',y=>'Real',z=>'Real',a=>'Real',b=>'Real',c=>'Real'); -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; $nabladA=Formula("a*cos(ax)+exp(-b*x)+c*y")->reduce; $nablacAx=Formula("c*z")->reduce; $nablacAy=Formula("0")->reduce; @@ -68,10 +68,10 @@ $PAR $BBOLD This problem is related to Problem 3.36 in the "The Fundamentals of Applied Electromagnetic 7Ed, (Ulaby & Ravaioli)" $EBOLD $PAR Let \(A(x,y,z)=\hat{\textbf{x}} sin(ax) + \hat{\textbf{y}} y e^{-bx} +\hat{\textbf{z}} cyz \) (\(a,b,c\) are random parameters). The variables allowed in your answers are \(a,b,c,x,y,z\). $PAR -a) \(\nabla \cdot \textbf{A}\)= \{ans_rule(12) \} \{ AnswerFormatHelp("formula") \} $PAR +a) \(\nabla \cdot \textbf{A}\)= \{ans_rule(12) \} \{ helpLink("formula") \} $PAR b) \( \nabla \times \textbf{A}\)=\{ans_rule(12) \} \(\hat{\textbf{x}}\)+\{ans_rule(12) \} \(\hat{\textbf{y}}\)+ \{ans_rule(12) \} \(\hat{\textbf{z}}\) $PAR -c) \( \nabla \cdot (\nabla \times \textbf{A}) \)=\{ans_rule(12) \} +c) \( \nabla \cdot (\nabla \times \textbf{A}) \)=\{ans_rule(12) \} diff --git a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.36c.pg b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.36c.pg index cf0b6e8f94..7d2fe1e2c0 100644 --- a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.36c.pg +++ b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.36c.pg @@ -29,7 +29,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -66,7 +66,7 @@ Context()->flags->set( ); Context()->variables->are(x=>'Real',y=>'Real',z=>'Real'); # -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; $nabladA=Formula("$a*cos($a*x)+exp($b*x)+$c*y")->reduce; # should not be a problem since a b c are given $nablacAx=Formula("$c*z")->reduce; @@ -81,10 +81,10 @@ $PAR $BBOLD This problem is related to Problem 3.36 in the "The Fundamentals of Applied Electromagnetic 7Ed, (Ulaby & Ravaioli)" $EBOLD $PAR Let \(A(x,y,z)=\hat{\textbf{x}} sin($a x) + \hat{\textbf{y}} y e^{$b x} +\hat{\textbf{z}} $c yz \) . The variables allowed in your answers are \(x,y,z\). $PAR -a) \(\nabla \cdot \textbf{A}\)= \{ans_rule(12) \} \{ AnswerFormatHelp("formula") \} $PAR +a) \(\nabla \cdot \textbf{A}\)= \{ans_rule(12) \} \{ helpLink("formula") \} $PAR b) \( \nabla \times \textbf{A}\)=\{ans_rule(12) \} \(\hat{\textbf{x}}\)+\{ans_rule(12) \} \(\hat{\textbf{y}}\)+ \{ans_rule(12) \} \(\hat{\textbf{z}}\) $PAR -c) \( \nabla \cdot (\nabla \times \textbf{A}) \)=\{ans_rule(12) \} +c) \( \nabla \cdot (\nabla \times \textbf{A}) \)=\{ans_rule(12) \} diff --git a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.5.pg b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.5.pg index ae49553840..478a7f63d1 100644 --- a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.5.pg +++ b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.5.pg @@ -20,7 +20,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -123,32 +123,32 @@ Given \(\bf{C}=$Cv \). $BR Evaluate each of the following vector manipulations following the right hand convention. $BR -NOTE: You may use "x","y" and "z" to represent \( \bf{\hat x}, \bf{\hat y}\) and \(\bf{\hat z}\) respectively in your answer. Your answers will be validated to \(\pm 0.01\) absolute.$PAR +NOTE: You may use "x","y" and "z" to represent \( \bf{\hat x}, \bf{\hat y}\) and \(\bf{\hat z}\) respectively in your answer. Your answers will be validated to \(\pm 0.01\) absolute.$PAR $BBOLD a) $EBOLD $BR -\(|\bf{A}|\)=\{ans_rule(10)\} \{ AnswerFormatHelp("numbers") \} $BR -\( \bf{\hat a} \)=\{ans_rule(20)\} (The unit vector in \(\bf{A}\) direction) \{ AnswerFormatHelp("vectors") \}$PAR +\(|\bf{A}|\)=\{ans_rule(10)\} \{ helpLink("numbers") \} $BR +\( \bf{\hat a} \)=\{ans_rule(20)\} (The unit vector in \(\bf{A}\) direction) \{ helpLink("vectors") \}$PAR $BBOLD b) $EBOLD $BR -The component of \(\bf{B} \) in \(\bf{C}\) is \{ans_rule(10)\} \{ AnswerFormatHelp("numbers") \}$PAR +The component of \(\bf{B} \) in \(\bf{C}\) is \{ans_rule(10)\} \{ helpLink("numbers") \}$PAR $BBOLD c) $EBOLD $BR - \( \theta_{AC}\)=\{ans_rule(6)\} \(^{\circ} \) \{ AnswerFormatHelp("numbers") \}$PAR + \( \theta_{AC}\)=\{ans_rule(6)\} \(^{\circ} \) \{ helpLink("numbers") \}$PAR $BBOLD d) $EBOLD $BR -\( \bf{A} \times \bf{C}\)=\{ans_rule(20)\} \{ AnswerFormatHelp("vectors") \}$PAR +\( \bf{A} \times \bf{C}\)=\{ans_rule(20)\} \{ helpLink("vectors") \}$PAR $BBOLD e) $EBOLD $BR -\(\bf{A} \cdot (\bf{B} \times \bf{C})\)=\{ans_rule(10)\} \{ AnswerFormatHelp("numbers") \} $PAR +\(\bf{A} \cdot (\bf{B} \times \bf{C})\)=\{ans_rule(10)\} \{ helpLink("numbers") \} $PAR $BBOLD f) $EBOLD $BR -\(\bf{A} \times (\bf{B} \times \bf{C})\)=\{ans_rule(20)\} \{ AnswerFormatHelp("vectors") \}$PAR +\(\bf{A} \times (\bf{B} \times \bf{C})\)=\{ans_rule(20)\} \{ helpLink("vectors") \}$PAR -$BBOLD g) $EBOLD $BR -\(\bf{\hat x} \times \bf{B}\)=\{ans_rule(20)\} \{ AnswerFormatHelp("vectors") \}$PAR +$BBOLD g) $EBOLD $BR +\(\bf{\hat x} \times \bf{B}\)=\{ans_rule(20)\} \{ helpLink("vectors") \}$PAR $BBOLD h) $EBOLD $BR -\((\bf{A} \times \bf{\hat y}) \cdot \bf{\hat z}\)=\{ans_rule(20)\} \{AnswerFormatHelp("numbers") \}$PAR +\((\bf{A} \times \bf{\hat y}) \cdot \bf{\hat z}\)=\{ans_rule(20)\} \{helpLink("numbers") \}$PAR END_TEXT @@ -167,7 +167,7 @@ ANS( $Ayz->cmp() ); # Solution Context()->texStrings; BEGIN_SOLUTION -$PAR +$PAR a) \( $normAv \), \($unitAv \)$BR b) \( $Bc \)$BR c) \( $AngAC \)$BR diff --git a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.14.pg b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.14.pg index 37e4b06ece..5ad8f16e3b 100644 --- a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.14.pg +++ b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.14.pg @@ -20,7 +20,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -73,7 +73,7 @@ A line of charge with uniform density \( \rho_l = $rho (\mu C/m) \) exists in ai NOTE: Your answer should be in the form of "ax+by+cz", where "x", "y" and "z" represent \( \bf{\hat x}, \bf{\hat y}\) and \(\bf{\hat z}\) respectively and "a", "b" and "c" are vector coefficients determined by you. Use \(\varepsilon_0=\frac{10^{-9}}{36 \pi}\). Make sure the unit is consistent. $PAR -\( \bf{E} \)=\{ans_rule(20)\} \((kV/m)\) \{ AnswerFormatHelp("vectors") \} +\( \bf{E} \)=\{ans_rule(20)\} \((kV/m)\) \{ helpLink("vectors") \} END_TEXT Context()->normalStrings; @@ -85,7 +85,7 @@ ANS( $Ev->cmp() ); # Solution Context()->texStrings; BEGIN_SOLUTION -$PAR +$PAR Use of Eq. 4.21c from the textbook for line of charge gives: $BR diff --git a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.15.pg b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.15.pg index 6c2616db5b..d8b1325db4 100644 --- a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.15.pg +++ b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.15.pg @@ -20,7 +20,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -95,9 +95,9 @@ Electric charge is distributed along an arc located in the x-y plane and defined NOTE:Your answer should be in the form of "ax+by+cz", where "x", "y" and "z" represent \( \bf{\hat x}, \bf{\hat y}\) and \(\bf{\hat z}\) respectively and "a", "b" and "c" are vector coefficients determined by you. Use \(\varepsilon_0=\frac{10^{-9}}{36 \pi}\). Make sure the unit is consistent. $PAR -a) At \(z=0\), \(\bf{E}\)=\{ans_rule(20)\} \((kV/m)\) \{ AnswerFormatHelp("vectors") \} $BR -b) At \(z=$zb cm\), \(\bf{E}\)=\{ans_rule(20)\} \((kV/m)\) \{ AnswerFormatHelp("vectors") \} $BR -c) At \(z=$zc cm\), \(\bf{E}\)=\{ans_rule(20)\} \((kV/m)\) \{ AnswerFormatHelp("vectors") \} +a) At \(z=0\), \(\bf{E}\)=\{ans_rule(20)\} \((kV/m)\) \{ helpLink("vectors") \} $BR +b) At \(z=$zb cm\), \(\bf{E}\)=\{ans_rule(20)\} \((kV/m)\) \{ helpLink("vectors") \} $BR +c) At \(z=$zc cm\), \(\bf{E}\)=\{ans_rule(20)\} \((kV/m)\) \{ helpLink("vectors") \} END_TEXT @@ -110,7 +110,7 @@ ANS( $Vecc->cmp() ); # Solution Context()->texStrings; BEGIN_SOLUTION -$PAR +$PAR For an arc of charge, \(dl=r d \phi=\frac{$rv}{100} d \phi \), and \( \hat{\bf R}'=-\hat{\bf x} $rv/100 cos \phi -\hat{\bf y} $rv/100 sin \phi + \hat{\bf z} z\). Use of Eq. 4.21c from the textbook for line of charge gives: $BR \(\bf{E}=\Large \frac{1}{4 \pi \varepsilon_0} \int_{l'} \hat{ \bf R}'\frac{\rho_l dl'}{ R'^2} \) $BR \(=\Large \frac{1}{4 \pi \varepsilon_0} \int_{\phi=0}^{\frac{\pi}{$phiinv}} \rho_l \frac{(-\hat{ \bf x} \frac{$rv}{100} cos \phi -\hat{ \bf y} \frac{$rv}{100} sin \phi + \hat{ \bf z} z)}{((\frac{$rv}{100})^2+z^2)^{1.5}} \cdot \frac{$rv}{100} d \phi \) diff --git a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.22.pg b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.22.pg index 145d212cc3..2c2e8e610a 100644 --- a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.22.pg +++ b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.22.pg @@ -20,7 +20,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -61,12 +61,12 @@ $Qc=Real($Ff+$Fb+$Fr+$Fl); Context()->texStrings; BEGIN_TEXT Given the electric flux density \(\hat{\bf D}=\hat{\bf x} ($Xx x+$Xy y)+\hat{\bf y} ($Yx x +$Yy y) (C/m^2)\), determine $BR -a) Using Eq. 4.26 in the textbook, \(\rho_v\)=\{ans_rule(20)\} \((C/m^3)\) \{ AnswerFormatHelp("numbers") \}$BR +a) Using Eq. 4.26 in the textbook, \(\rho_v\)=\{ans_rule(20)\} \((C/m^3)\) \{ helpLink("numbers") \}$BR -b) The total charge enclosed in a cube with a side length of \($Len (m)\), located in the first octant with three of its sides coincident with the \(x\)-,\(y\)-, and \(z\)-axes and one of its corners at the origin, \(Q\)=\{ans_rule(20)\} \((C)\) \{ AnswerFormatHelp("numbers") \} +b) The total charge enclosed in a cube with a side length of \($Len (m)\), located in the first octant with three of its sides coincident with the \(x\)-,\(y\)-, and \(z\)-axes and one of its corners at the origin, \(Q\)=\{ans_rule(20)\} \((C)\) \{ helpLink("numbers") \} $BR -c) Apply Eq.4.29 in the textbook, the total charge in the cube, \(Q\)=\{ans_rule(20)\} \((C)\) \{ AnswerFormatHelp("numbers") \} +c) Apply Eq.4.29 in the textbook, the total charge in the cube, \(Q\)=\{ans_rule(20)\} \((C)\) \{ helpLink("numbers") \} @@ -82,7 +82,7 @@ ANS( $Qc->cmp() ); # Solution Context()->texStrings; BEGIN_SOLUTION -$PAR +$PAR a) By appling Eq.4.26 in the textbook, \(\rho_v=\nabla \cdot \hat{\bf D} =\frac{\partial ($Xx x+$Xy y}{\partial x}+\frac{$Yx x+$Yy y}{y}=$rhov C/m^3 \) $BR diff --git a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.24.pg b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.24.pg index 3da32a0e09..b959baf25e 100644 --- a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.24.pg +++ b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.24.pg @@ -20,7 +20,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -36,7 +36,7 @@ tolType => "relative", ); Context()->variables->are(Q1=>'Real',Q2=>'Real',eps=>'Real',R=>'Real'); -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; $fa = Formula("0"); $fb = Formula("(Q1)/(4*pi*R^2*eps)"); @@ -46,13 +46,13 @@ $fc = Formula("((Q1+Q2))/(4*pi*R^2*eps)"); Context()->texStrings; BEGIN_TEXT $PAR -Charge \(Q_1\) is uniformly distributed over a thin spherical shell of radius \( a \), and charge \(Q_2\) is uniformly distributed over a second spherical shell of radius \( b\) , with \(b \gt a \). Apply Gauss's law to find \(\textbf{E}\) in the regions \(R \lt a\), \(a \lt R \lt b\), and \(R \gt b\). Note: you may use "Q1", "Q2", "R", "a", "b", "pi" (\(\pi\)) and "eps" (\(\varepsilon\)). +Charge \(Q_1\) is uniformly distributed over a thin spherical shell of radius \( a \), and charge \(Q_2\) is uniformly distributed over a second spherical shell of radius \( b\) , with \(b \gt a \). Apply Gauss's law to find \(\textbf{E}\) in the regions \(R \lt a\), \(a \lt R \lt b\), and \(R \gt b\). Note: you may use "Q1", "Q2", "R", "a", "b", "pi" (\(\pi\)) and "eps" (\(\varepsilon\)). $PAR -a) For \(R \lt a\), \(\textbf{E}\)=\{ans_rule(30)\} \(\hat{\bf R}\) \( (V/m)\) \{ AnswerFormatHelp("formula") \}$BR +a) For \(R \lt a\), \(\textbf{E}\)=\{ans_rule(30)\} \(\hat{\bf R}\) \( (V/m)\) \{ helpLink("formula") \}$BR -b) For \(a \lt R \lt b\), \(\textbf{E}\)=\{ans_rule(30)\} \(\hat{\bf R}\) \( (V/m)\) \{ AnswerFormatHelp("formula") \} $BR +b) For \(a \lt R \lt b\), \(\textbf{E}\)=\{ans_rule(30)\} \(\hat{\bf R}\) \( (V/m)\) \{ helpLink("formula") \} $BR -c) For \(R \gt b\), \(\textbf{E}\)=\{ans_rule(30)\} \(\hat{\bf R}\) \( (V/m)\) \{ AnswerFormatHelp("formula") \}$BR +c) For \(R \gt b\), \(\textbf{E}\)=\{ans_rule(30)\} \(\hat{\bf R}\) \( (V/m)\) \{ helpLink("formula") \}$BR @@ -70,12 +70,12 @@ ANS( $fc->cmp() ); # Solution Context()->texStrings; BEGIN_SOLUTION -$PAR +$PAR Using symmetry considerations, we know \(\hat{\bf R} =D_R\). From Table 3.1, \(d\textbf{s}=\hat{\bf R} R^2 sin \theta d \theta d \phi \) for an element of a spherical surface. Using Gauss's law integral form Eq.4.29, \(Q=\oint D \cdot d\textbf{s}=Q_{tot}\), where \(Q_{tot}\) is the total charge enclosed in S. $BR For a spherical surface of radius \(R\), \(\int_{\phi=0}^{2 \pi} \int_{\theta=0}^{\pi} \hat{\bf R} D_R \cdot \hat{\bf R} R^2 sin \theta d \theta d \phi = Q_{tot}\). $BR \(D_R R^2 (2 \pi) [-cos \theta]_0^{\pi}=Q_{tot}\). $BR \(D_R=\frac{Q_{tot}}{4 \pi R^2} \). $BR -From Eq.4.15, we know a linear, isotropic material has the consitutive relationship, \(D=\varepsilon E\). +From Eq.4.15, we know a linear, isotropic material has the consitutive relationship, \(D=\varepsilon E\). $PARThus we find \(\textbf{E}\) from \(D\): $BR a) In the region \(R \lt a\), \(Q_{tot}=0\),$BR\(\textbf{E}=\hat{\bf R} E_R =\frac{\hat{\bf R} Q_{tot}}{4 \pi R^2 \varepsilon}=0\) $PAR diff --git a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.24b.pg b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.24b.pg index 46aaca0644..ff1e5137ff 100644 --- a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.24b.pg +++ b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.24b.pg @@ -20,7 +20,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -48,7 +48,7 @@ tolType => "relative", # ); Context()->variables->are(eps=>'Real',R=>'Real'); # -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; $fa = Formula("0"); $fb = Formula("($Q1)/(4*pi*R^2*eps)"); @@ -59,14 +59,14 @@ $Qt = $Q1+$Q2; Context()->texStrings; BEGIN_TEXT $PAR -Charge \(Q_1 = $Q1 (C)\) is uniformly distributed over a thin spherical shell of radius \( a \), and charge \(Q_2 = $Q2 (C)\) is uniformly distributed over a second spherical shell of radius \( b\) , with \(b \gt a \). -Apply Gauss's law to find \(\textbf{E}\) in the regions \(R \lt a\), \(a \lt R \lt b\), and \(R \gt b\). Note: you may use ""R", "a", "b", "pi" (\(\pi\)) and "eps" (\(\varepsilon\)). +Charge \(Q_1 = $Q1 (C)\) is uniformly distributed over a thin spherical shell of radius \( a \), and charge \(Q_2 = $Q2 (C)\) is uniformly distributed over a second spherical shell of radius \( b\) , with \(b \gt a \). +Apply Gauss's law to find \(\textbf{E}\) in the regions \(R \lt a\), \(a \lt R \lt b\), and \(R \gt b\). Note: you may use ""R", "a", "b", "pi" (\(\pi\)) and "eps" (\(\varepsilon\)). $PAR -a) For \(R \lt a\), \(\textbf{E}\)=\{ans_rule(30)\} \(\hat{\bf R}\) \( (V/m)\) \{ AnswerFormatHelp("formula") \}$BR +a) For \(R \lt a\), \(\textbf{E}\)=\{ans_rule(30)\} \(\hat{\bf R}\) \( (V/m)\) \{ helpLink("formula") \}$BR -b) For \(a \lt R \lt b\), \(\textbf{E}\)=\{ans_rule(30)\} \(\hat{\bf R}\) \( (V/m)\) \{ AnswerFormatHelp("formula") \} $BR +b) For \(a \lt R \lt b\), \(\textbf{E}\)=\{ans_rule(30)\} \(\hat{\bf R}\) \( (V/m)\) \{ helpLink("formula") \} $BR -c) For \(R \gt b\), \(\textbf{E}\)=\{ans_rule(30)\} \(\hat{\bf R}\) \( (V/m)\) \{ AnswerFormatHelp("formula") \}$BR +c) For \(R \gt b\), \(\textbf{E}\)=\{ans_rule(30)\} \(\hat{\bf R}\) \( (V/m)\) \{ helpLink("formula") \}$BR END_TEXT @@ -81,12 +81,12 @@ ANS( $fc->cmp() ); # Solution Context()->texStrings; BEGIN_SOLUTION -$PAR +$PAR Using symmetry considerations, we know \(\hat{\bf R} =D_R\). From Table 3.1, \(d\textbf{s}=\hat{\bf R} R^2 sin \theta d \theta d \phi \) for an element of a spherical surface. Using Gauss's law integral form Eq.4.29, \(Q=\oint D \cdot d\textbf{s}=Q_{tot}\), where \(Q_{tot}\) is the total charge enclosed in S. $BR For a spherical surface of radius \(R\), \(\int_{\phi=0}^{2 \pi} \int_{\theta=0}^{\pi} \hat{\bf R} D_R \cdot \hat{\bf R} R^2 sin \theta d \theta d \phi = Q_{tot}\). $BR \(D_R R^2 (2 \pi) [-cos \theta]_0^{\pi}=Q_{tot}\). $BR \(D_R=\frac{Q_{tot}}{4 \pi R^2} \). $BR -From Eq.4.15, we know a linear, isotropic material has the consitutive relationship, \(D=\varepsilon E\). +From Eq.4.15, we know a linear, isotropic material has the consitutive relationship, \(D=\varepsilon E\). $PARThus we find \(\textbf{E}\) from \(D\): $BR a) In the region \(R \lt a\), \(Q_{tot}=0\),$BR\(\textbf{E}=\hat{\bf R} E_R =\frac{\hat{\bf R} Q_{tot}}{4 \pi R^2 \varepsilon}=0\) $PAR diff --git a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.31.pg b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.31.pg index b9cb0e2ad8..a9ddf3c7c4 100644 --- a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.31.pg +++ b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.31.pg @@ -20,7 +20,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "parserPopUp.pl", "answerHints.pl", @@ -53,7 +53,7 @@ Context()->constants->set( Context()->variables->are(rhos=>'Real',esp0=>'Real',a=>'Real',zs=>'Real'); -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; $V = Formula("rhos/(2*esp0)*((a^2+zs^2)^(0.5) - zs)"); $Coefz = Formula("rhos/(2*esp0)*(1 - zs/(a^2+zs^2)^(0.5) )"); @@ -71,11 +71,11 @@ $PAR \{image("ECE303_Ulaby_Ed7_4_31.png",height=>300, width=>320)\} $BR $PAR (a) Obtain an expression for the electric potential \(V\) at a point \( P = (0,0, z)\) on the z-axis. $BR -\(V \) = \{ans_rule(30)\} \{ AnswerFormatHelp("formula") \}$BR +\(V \) = \{ans_rule(30)\} \{ helpLink("formula") \}$BR $BBOLD Notes: You may use "rhos"\((\rho_s)\), "eps0"\((\varepsilon_0)\), "a"(\(a)\), "zs"(\(z)\) in your answers. $BR $EBOLD $PAR (b) Use your result to find \(\bf{E} \) and then evaluate it for point P in the diagram above. $BR -\(\bf{E} \) = \{ans_rule(30)\} \{ AnswerFormatHelp("formula") \}$BR +\(\bf{E} \) = \{ans_rule(30)\} \{ helpLink("formula") \}$BR NOTE: Your answer should be in the form of "ax+by+cz", where "x", "y" and "z" represent \( \bf{\hat x}, \bf{\hat y}\) and \(\bf{\hat z}\) respectively and "a", "b" and "c" are vector coefficients determined by you. You should also use "rhos"\((\rho_s)\), "eps0"\((\varepsilon_0)\), "a"(\(a)\), "zs"(\(z)\) in your answers when required. $PAR Does this expression of \(\bf{E} \) comply with the Eq.(4.24) in the textbook? $BR diff --git a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.31b.pg b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.31b.pg index 5ea380754e..543f1b2ca0 100644 --- a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.31b.pg +++ b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.31b.pg @@ -20,7 +20,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "parserPopUp.pl", "answerHints.pl", @@ -46,7 +46,7 @@ $zs = 3; Context("Vector"); Context()->flags->set( - tolerance => 0.01, + tolerance => 0.01, tolType => "absolute", # formula special case, results < 1 #tolType => "relative", ijk=>1, @@ -67,7 +67,7 @@ Context()->constants->set( Context()->variables->are(rhos=>'Real',esp0=>'Real'); # -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; $V = Formula("rhos/(2*esp0)*(($a^2+$zs^2)^(0.5) - $zs)")->with(limits=>[[0.99,1],[0.99,1]]); @@ -92,13 +92,13 @@ $PAR Note: Your answers are validated to \(\pm \)0.01 absolute for the numbers. $BR -(a) Obtain an expression for the electric potential \(V\) at a point \( P = (0,0, $zs)\) on the z-axis +(a) Obtain an expression for the electric potential \(V\) at a point \( P = (0,0, $zs)\) on the z-axis and for a disk radius of \(a = $a\). $BR -\(V \) = \{ans_rule(30)\} \{ AnswerFormatHelp("formula") \}$BR +\(V \) = \{ans_rule(30)\} \{ helpLink("formula") \}$BR $BBOLD Notes: You may use "rhos"\((\rho_s)\), "eps0"\((\varepsilon_0)\) in your answers. All the values are in SI units. $BR $EBOLD $PAR (b) Use your result \(V \) to find \(\bf{E} \) and then evaluate it for point \( P = (0,0, $zs)\) in the diagram above. $BR -\(\bf{E} \) = \{ans_rule(30)\} \{ AnswerFormatHelp("formula") \}$BR +\(\bf{E} \) = \{ans_rule(30)\} \{ helpLink("formula") \}$BR Note: Your answer should be in the form of "ax+by+cz", where "x", "y" and "z" represent \( \bf{\hat x}, \bf{\hat y}\) and \(\bf{\hat z}\) respectively and "a", "b" and "c" are vector coefficients determined by you. You should also use "rhos"\((\rho_s)\), "eps0"\((\varepsilon_0)\) in your answers when required. $PAR Does this expression of \(\bf{E} \) comply with the Eq.(4.24) in the textbook? $BR diff --git a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.34.pg b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.34.pg index 7fb56a0f1f..25307a0d0b 100644 --- a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.34.pg +++ b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.34.pg @@ -20,7 +20,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "parserPopUp.pl", "answerHints.pl", @@ -37,7 +37,7 @@ tolType => "relative", ); Context()->variables->are(rhol=>'Real',eps=>'Real',l=>'Real',b=>'Real'); -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; $Vb = Formula("rhol/(4*pi*eps)*ln( (l+(l^2+4*b^2)^(0.5)) / (-l+(l^2+4*b^2)^(0.5)) )"); @@ -55,7 +55,7 @@ $PAR \{image("ECE303_Ulaby_Ed7_4_34.png",height=>300, width=>400)\} $BR $PAR -\(V(b) \) = \{ans_rule(30)\} \{ AnswerFormatHelp("formula") \}$BR +\(V(b) \) = \{ans_rule(30)\} \{ helpLink("formula") \}$BR $BBOLD Notes: You may use "rhol"\((\rho_l)\), "eps"\((\varepsilon)\), "l" (\(l)\), "b" (\(b)\) in your answers. $BR $EBOLD diff --git a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.34b.pg b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.34b.pg index d111f301cb..df8208d594 100644 --- a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.34b.pg +++ b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.34b.pg @@ -20,7 +20,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "parserPopUp.pl", "answerHints.pl", @@ -48,7 +48,7 @@ tolType => "absolute", # formula special case, results < 1 ); Context()->variables->are(rhol=>'Real',eps=>'Real'); -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; $Vb = Formula("rhol/(4*pi*eps)*ln( ($l+($l^2+4*$b^2)^(0.5)) / (-$l+($l^2+4*$b^2)^(0.5)) )")->with(limits=>[[0.99,1],[0.99,1]]); @@ -71,7 +71,7 @@ $PAR $PAR Note: Your answers are validated to \(\pm \)0.01 absolute for the numbers. $BR -\(V(b=$b, l=$l) \) = \{ans_rule(30)\} \{ AnswerFormatHelp("formula") \}$BR +\(V(b=$b, l=$l) \) = \{ans_rule(30)\} \{ helpLink("formula") \}$BR $BBOLD Note: You may use "rhol"\((\rho_l)\), "eps"\((\varepsilon)\) in your answers. $BR $EBOLD diff --git a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.36.pg b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.36.pg index 0d9c731cd6..132eec542b 100644 --- a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.36.pg +++ b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.36.pg @@ -31,7 +31,7 @@ loadMacros("PG.pl", # "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + # "answerHints.pl", ); @@ -52,7 +52,7 @@ Context()->flags->set( ); Context()->variables->are(x=>'Real'); -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; #Initialize element values, to be changed for each question $SL01v=random(1,5,1); @@ -107,7 +107,7 @@ $graph0->lb(new Label(0,0,"(0,0)",'black','left','top')); $graph0->lb(new Label(0,$ULM,"$ULM",'black','left','top')); $graph0->lb(new Label(0,$LLM,"$LLM",'black','left','bottom')); $graph0->lb(new Label(0.3 ,$ULM,"V (V)",'black','left','top')); -$fig0 = image(insertGraph($graph0),width => 600,height => 400,tex_size => 1000); #tex_size latex export pdf size +$fig0 = image(insertGraph($graph0),width => 600,height => 400,tex_size => 1000); #tex_size latex export pdf size #Context()->texStrings; BEGIN_TEXT @@ -116,25 +116,25 @@ $PAR Part a) The distribution of the electric potential \(V\) is shown below. Determine the corresponding distribution of \(E\) as a function of \(x\). Note: The grid lines (dashed lines) are exactly 1 unit apart in both \(x\) and \(y\) directions. $BR $fig0 $BR Determine the expression for \( E(x) \). $BR -For \( 0normalStrings; @@ -166,7 +166,7 @@ $PAR This is a differentiator circuit. $BR a) $BR For \( 0normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.36a.pg b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.36a.pg index c74024ee26..bab530647b 100644 --- a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.36a.pg +++ b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.36a.pg @@ -31,20 +31,20 @@ loadMacros("PG.pl", # "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", "AppletObjects.pl", ); TEXT(beginproblem()); $showPartialCorrectAnswers = 1; -Context("Numeric"); +Context("Numeric"); $ans = Compute("1"); $success = 1; ################################### - # Create link to applet + # Create link to applet ################################### $appletName = "ECE303_Ulaby_Ed7_4.36a"; $applet = FlashApplet( @@ -63,7 +63,7 @@ $success = 1; width => '750', bgcolor => '#ffffff', debugMode => 0, - submitActionScript => + submitActionScript => qq{getQE("answerBox").value=getApplet("$appletName").getAnswer() }, ); BEGIN_TEXT @@ -77,7 +77,7 @@ END_TEXT ################################### # Configure applet ################################### - + #Will pass empty xml - applet will generate new problem as a result. $applet->configuration(qq{ }); $applet->initialState(qq{ }); @@ -106,4 +106,4 @@ NAMED_ANS('answerBox'=>$ans->cmp()); COMMENT('This problem requires that Flash be enabled on your device. Click try it to see what students will see.'); -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.36b.pg b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.36b.pg index 4fd768c851..d573d80120 100644 --- a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.36b.pg +++ b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.36b.pg @@ -31,20 +31,20 @@ loadMacros("PG.pl", # "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", "AppletObjects.pl", ); TEXT(beginproblem()); $showPartialCorrectAnswers = 1; -Context("Numeric"); +Context("Numeric"); $ans = Compute("1"); $success = 1; ################################### - # Create link to applet + # Create link to applet ################################### $appletName = "ECE303_Ulaby_Ed7_4.36b"; $applet = FlashApplet( @@ -63,7 +63,7 @@ $success = 1; width => '750', bgcolor => '#ffffff', debugMode => 0, - submitActionScript => + submitActionScript => qq{getQE("answerBox").value=getApplet("$appletName").getAnswer() }, ); BEGIN_TEXT @@ -75,7 +75,7 @@ END_TEXT ################################### # Configure applet ################################### - + #Will pass empty xml - applet will generate new problem as a result. $applet->configuration(qq{ }); $applet->initialState(qq{ }); @@ -104,4 +104,4 @@ NAMED_ANS('answerBox'=>$ans->cmp()); COMMENT('This problem requires that Flash be enabled on your device. Click try it to see what students will see.'); -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.36c.pg b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.36c.pg index 73b31d3a45..d8fbe66c17 100644 --- a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.36c.pg +++ b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.36c.pg @@ -31,20 +31,20 @@ loadMacros("PG.pl", # "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", "AppletObjects.pl", ); TEXT(beginproblem()); $showPartialCorrectAnswers = 1; -Context("Numeric"); +Context("Numeric"); $ans = Compute("1"); $success = 1; ################################### - # Create link to applet + # Create link to applet ################################### $appletName = "ECE303_Ulaby_Ed7_4.36c"; $applet = FlashApplet( @@ -63,7 +63,7 @@ $success = 1; width => '750', bgcolor => '#ffffff', debugMode => 0, - submitActionScript => + submitActionScript => qq{getQE("answerBox").value=getApplet("$appletName").getAnswer() }, ); BEGIN_TEXT @@ -77,7 +77,7 @@ END_TEXT ################################### # Configure applet ################################### - + #Will pass empty xml - applet will generate new problem as a result. $applet->configuration(qq{ }); $applet->initialState(qq{ }); @@ -106,4 +106,4 @@ NAMED_ANS('answerBox'=>$ans->cmp()); COMMENT('This problem requires that Flash be enabled on your device. Click try it to see what students will see.'); -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.38.pg b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.38.pg index eb5f3d73f1..f28511bc78 100644 --- a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.38.pg +++ b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.38.pg @@ -21,7 +21,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -50,7 +50,7 @@ $ZB = -4; # =cut # unit change -$VAB = ($E/$ZA + $E/$ZB) *pi / pi; # there was an error +$VAB = ($E/$ZA + $E/$ZB) *pi / pi; # there was an error Context()->texStrings; BEGIN_TEXT @@ -65,7 +65,7 @@ $PAR \{image("ECE303_Ulaby_Ed7_4_38.png",height=>300, width=>240)\} $BR $PAR -\(V_{AB} = \) \{ans_rule(20)\} \( (V) \) \{ AnswerFormatHelp("numbers") \}$BR +\(V_{AB} = \) \{ans_rule(20)\} \( (V) \) \{ helpLink("numbers") \}$BR END_TEXT @@ -77,7 +77,7 @@ ANS( $VAB->cmp() ); ############################## # Solution Context()->texStrings; -BEGIN_SOLUTION +BEGIN_SOLUTION $PAR \[{V_{AB}} = {V_A} - {V_B} = - \int_B^A \textbf{E} \cdot dl.\] diff --git a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.50.pg b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.50.pg index 5ded560cd2..60fd9f4231 100644 --- a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.50.pg +++ b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.50.pg @@ -20,7 +20,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -32,11 +32,11 @@ loadMacros( Context()->flags->set( tolerance => 0.01, - tolType => "relative", # + tolType => "relative", # ); Context()->variables->are(eps0=>'Real'); -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; $V = random(105, 195, 5); # voltage @@ -62,11 +62,11 @@ BEGIN_TEXT $PAR -If \(\textbf{E}=\hat{\textbf R} $V (V/m)\) at the surface of a conducting sphere centered at the origin with \(r = $r (cm) \), +If \(\textbf{E}=\hat{\textbf R} $V (V/m)\) at the surface of a conducting sphere centered at the origin with \(r = $r (cm) \), what is the total charge \(Q \) on the sphere\('\) s surface? $BR $PAR -\(Q = \) \{ans_rule(20)\} \(\cdot \varepsilon_0 (C) \) \{ AnswerFormatHelp("numbers") \}$BR +\(Q = \) \{ans_rule(20)\} \(\cdot \varepsilon_0 (C) \) \{ helpLink("numbers") \}$BR $BBOLD Notes: \(\varepsilon_0\) represents the electrical permittivity of free space. $BR $EBOLD @@ -79,7 +79,7 @@ ANS( $Q->cmp() ); ############################## # Solution Context()->texStrings; -BEGIN_SOLUTION +BEGIN_SOLUTION $PAR From the Table 4-3 in the textbook, \(\hat{\bf n} \cdot (D_1 - D_2) = \rho_s\). $BR diff --git a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.51.pg b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.51.pg index 3e16131521..141fcdab94 100644 --- a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.51.pg +++ b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.51.pg @@ -20,7 +20,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -32,7 +32,7 @@ loadMacros( Context()->flags->set( tolerance => 0.01, - tolType => "relative", # + tolType => "relative", # ); $th_0_deg = random(25, 45, 5); # theta 0 @@ -77,7 +77,7 @@ Figure P4.51 shows three planar dielectric slabs of equal thickness but with different dielectric constants. If \(E_0\) in air makes an angle of \(\theta_0 = $th_0_deg^{o} \) with respect to the \(Z \) axis, find the angle of \(E\) in each of the other layers. $BR -Labeling the upper air layer as layer 0, the parameters for other layers are \(\varepsilon_1 = $e_1 \varepsilon_0 \), +Labeling the upper air layer as layer 0, the parameters for other layers are \(\varepsilon_1 = $e_1 \varepsilon_0 \), \(\varepsilon_2 = $e_2 \varepsilon_0 \), \(\varepsilon_3 = $e_3 \varepsilon_0 \). $BR In the lower air layer, \(\varepsilon_4 = \varepsilon_0 \).$BR @@ -86,10 +86,10 @@ $PAR $PAR -\(\theta_1 = \) \{ans_rule(20)\} \( ^{o} \) \{ AnswerFormatHelp("numbers") \}$BR -\(\theta_2 = \) \{ans_rule(20)\} \( ^{o} \) \{ AnswerFormatHelp("numbers") \}$BR -\(\theta_3 = \) \{ans_rule(20)\} \( ^{o} \) \{ AnswerFormatHelp("numbers") \}$BR -\(\theta_4 = \) \{ans_rule(20)\} \( ^{o} \) \{ AnswerFormatHelp("numbers") \}$BR +\(\theta_1 = \) \{ans_rule(20)\} \( ^{o} \) \{ helpLink("numbers") \}$BR +\(\theta_2 = \) \{ans_rule(20)\} \( ^{o} \) \{ helpLink("numbers") \}$BR +\(\theta_3 = \) \{ans_rule(20)\} \( ^{o} \) \{ helpLink("numbers") \}$BR +\(\theta_4 = \) \{ans_rule(20)\} \( ^{o} \) \{ helpLink("numbers") \}$BR @@ -106,7 +106,7 @@ ANS( $th_4_deg->cmp() ); ############################## # Solution Context()->texStrings; -BEGIN_SOLUTION +BEGIN_SOLUTION $PAR Labeling the upper air layer as layer 0 and using Eq.(4.99) in the textbook, $BR diff --git a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.56.pg b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.56.pg index 5053e65738..07e4758fb3 100644 --- a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.56.pg +++ b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.56.pg @@ -20,7 +20,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "parserPopUp.pl", "answerHints.pl", @@ -37,7 +37,7 @@ tolType => "relative", ); Context()->variables->are(d=>'Real',V=>'Real',eps1=>'Real',eps2=>'Real', A1=>'Real', A2=>'Real'); -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; $E1 = Formula("V/d"); $E2 = Formula("V/d"); @@ -54,7 +54,7 @@ Context()->texStrings; BEGIN_TEXT $PAR -Figure P4.56(a) depicts a capacitor consisting of two parallel, conducting plates separated by a distance \(d \). +Figure P4.56(a) depicts a capacitor consisting of two parallel, conducting plates separated by a distance \(d \). The space between the plates contains two adjacent dielectrics, one with permittivity \(\varepsilon_1\) and surface area \(A_1 \) and another with \(\varepsilon_2\) and \(A_2 \). $BR @@ -69,19 +69,19 @@ $PAR To this end, proceed as follows: $BR $BBOLD Notes: You may use "V"\((V)\), "d"\((d)\), "eps1" (\(\varepsilon_1)\), , "eps2" (\(\varepsilon_2)\), "A1"\((A_1)\), "A2"\((A_2)\) in your answers. $BR $EBOLD (a) Find the electric fields \(E_1 \) and \(E_2 \) in the two dielectric layers. $BR -\(E_1 \) = \{ans_rule(20)\} \{ AnswerFormatHelp("formula") \}$BR -\(E_2 \) = \{ans_rule(20)\} \{ AnswerFormatHelp("formula") \}$BR +\(E_1 \) = \{ans_rule(20)\} \{ helpLink("formula") \}$BR +\(E_2 \) = \{ans_rule(20)\} \{ helpLink("formula") \}$BR (b) Calculate the energy stored in each section and use the result to calculate \(C_1 \) and \(C_2 \). $BR -\(W_{e_1} \) = \{ans_rule(20)\} \{ AnswerFormatHelp("formula") \}$BR -\(W_{e_2} \) = \{ans_rule(20)\} \{ AnswerFormatHelp("formula") \}$BR +\(W_{e_1} \) = \{ans_rule(20)\} \{ helpLink("formula") \}$BR +\(W_{e_2} \) = \{ans_rule(20)\} \{ helpLink("formula") \}$BR -\(C_1 \) = \{ans_rule(20)\} \{ AnswerFormatHelp("formula") \}$BR -\(C_2 \) = \{ans_rule(20)\} \{ AnswerFormatHelp("formula") \}$BR +\(C_1 \) = \{ans_rule(20)\} \{ helpLink("formula") \}$BR +\(C_2 \) = \{ans_rule(20)\} \{ helpLink("formula") \}$BR (c) Use the total energy stored in the capacitor to obtain an expression for \(C \). $BR -\(C \) = \{ans_rule(20)\} \{ AnswerFormatHelp("formula") \}$BR +\(C \) = \{ans_rule(20)\} \{ helpLink("formula") \}$BR Is \(C \) \{ $Ct ->menu() \} \( (C_1 + C_2) \)? $BR diff --git a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.56b.pg b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.56b.pg index 5b484b8364..ec06d58be5 100644 --- a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.56b.pg +++ b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.56b.pg @@ -20,7 +20,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "parserPopUp.pl", "answerHints.pl", @@ -52,7 +52,7 @@ tolType => "relative", # ); Context()->variables->are(V=>'Real',eps1=>'Real',eps2=>'Real'); -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; $E1 = Formula("V/$d"); $E2 = Formula("V/$d"); @@ -72,7 +72,7 @@ Context()->texStrings; BEGIN_TEXT $PAR -Figure P4.56(a) depicts a capacitor consisting of two parallel, conducting plates separated by a distance \(d \). +Figure P4.56(a) depicts a capacitor consisting of two parallel, conducting plates separated by a distance \(d \). The space between the plates contains two adjacent dielectrics, one with permittivity \(\varepsilon_1\) and surface area \(A_1 \) and another with \(\varepsilon_2\) and \(A_2 \). $BR @@ -87,19 +87,19 @@ $PAR Given \(d = $d (m), A_1 = $A1 (m^2), A_2 = $A2 (m^2)\), proceed as follows: $BR $BBOLD Note: You may use "V"\((V)\), "eps1" (\(\varepsilon_1)\), , "eps2" (\(\varepsilon_2)\) in your answers. $BR $EBOLD (a) Find the electric fields \(E_1 \) and \(E_2 \) in the two dielectsric layers. $BR -\(E_1 \) = \{ans_rule(20)\} \{ AnswerFormatHelp("formula") \}$BR -\(E_2 \) = \{ans_rule(20)\} \{ AnswerFormatHelp("formula") \}$BR +\(E_1 \) = \{ans_rule(20)\} \{ helpLink("formula") \}$BR +\(E_2 \) = \{ans_rule(20)\} \{ helpLink("formula") \}$BR (b) Calculate the energy stored in each section and use the result to calculate \(C_1 \) and \(C_2 \). $BR -\(W_{e_1} \) = \{ans_rule(20)\} \{ AnswerFormatHelp("formula") \}$BR -\(W_{e_2} \) = \{ans_rule(20)\} \{ AnswerFormatHelp("formula") \}$BR +\(W_{e_1} \) = \{ans_rule(20)\} \{ helpLink("formula") \}$BR +\(W_{e_2} \) = \{ans_rule(20)\} \{ helpLink("formula") \}$BR -\(C_1 \) = \{ans_rule(20)\} \{ AnswerFormatHelp("formula") \}$BR -\(C_2 \) = \{ans_rule(20)\} \{ AnswerFormatHelp("formula") \}$BR +\(C_1 \) = \{ans_rule(20)\} \{ helpLink("formula") \}$BR +\(C_2 \) = \{ans_rule(20)\} \{ helpLink("formula") \}$BR (c) Use the total energy stored in the capacitor to obtain an expression for \(C \). $BR -\(C \) = \{ans_rule(20)\} \{ AnswerFormatHelp("formula") \}$BR +\(C \) = \{ans_rule(20)\} \{ helpLink("formula") \}$BR Is \(C \) \{ $Ct ->menu() \} \( (C_1 + C_2) \)? $BR diff --git a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.6.pg b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.6.pg index 6977e0f98c..c457ec639d 100644 --- a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.6.pg +++ b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.6.pg @@ -20,7 +20,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -54,7 +54,7 @@ BEGIN_TEXT \{image("ECE303_Ulaby_Ed7_4_6.png",height=>300, width=>320)\} $BR If \(\textbf{J} =\hat{\bf y} 4 x z \, (A/m^2)\), find the current \( I\) flowing through a square with corners at \( \langle 0,0,0 \rangle\),\( \langle $Xmax,0,0 \rangle\), \( \langle $Xmax,0,$Ymax \rangle\), and \( \langle 0,0, $Ymax \rangle\). $PAR -\( I \)=\{ans_rule(20)\} \(A\) \{ AnswerFormatHelp("numbers") \} +\( I \)=\{ans_rule(20)\} \(A\) \{ helpLink("numbers") \} @@ -74,7 +74,7 @@ ANS( $I->cmp() ); # Solution Context()->texStrings; BEGIN_SOLUTION -$PAR +$PAR \(A=\int_{x=0}^{$Xmax} \int_{z=0 }^{$Ymax} \textbf{J}|_{y=0} \cdot (\hat{\bf{ y}}) d z dx = x^2 z^2 |_{z=0}^{$Ymax}|_{x=0}^{$Xmax}=$I A \) $PAR diff --git a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_5.12.pg b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_5.12.pg index 5cea599528..6999f22e7e 100644 --- a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_5.12.pg +++ b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_5.12.pg @@ -20,7 +20,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -68,7 +68,7 @@ Context()->constants->set( # define variables Context()->variables->are(mu0=>'Real'); # -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; $B = Formula("mu0*$I/(2*pi)*(1/$d + 1/($lth-$d))"); $temp = 1/$d + 1/($lth-$d); @@ -87,7 +87,7 @@ $PAR Determine the magnetic flux density at point P in Fig. P5.12, with \(d = $d \rm{m} \) and \(l = $lth \rm{m} \). $BR -\(\bf{B}\)=\{ans_rule(20)\} \( \hat {\boldsymbol \phi} \) \( (\rm{T}) \) \{ AnswerFormatHelp("formula") \} $BR +\(\bf{B}\)=\{ans_rule(20)\} \( \hat {\boldsymbol \phi} \) \( (\rm{T}) \) \{ helpLink("formula") \} $BR Note: You may use "pi" ( \(\pi\) ) and "mu0" ( \(\mu_0\) ) in your answer. $BR @@ -101,7 +101,7 @@ ANS( $B->cmp() ); # Solution Context()->texStrings; BEGIN_SOLUTION -$PAR +$PAR Solution: \[{\bf{B}} = \hat {\boldsymbol \phi} \frac{{{\mu _0}{I_1}}}{{2\pi d}} + \hat {\boldsymbol \phi} \frac{{{\mu _0}{I_2}}}{{2\pi (l - d)}} = \hat {\boldsymbol \phi} \frac{{{\mu _0}I}}{{2\pi }}\left( {\frac{1}{$d} - \frac{1}{{$lth - $d}}} \right) = \hat {\boldsymbol \phi} \frac{{{\mu _0}I}}{{2\pi }} ($temp)\] diff --git a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_5.16.pg b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_5.16.pg index e7d2e82d04..964802931b 100644 --- a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_5.16.pg +++ b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_5.16.pg @@ -20,7 +20,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -87,7 +87,7 @@ Context()->texStrings; BEGIN_TEXT $PAR -The long, straight conductor shown in Fig. P5.16 lies in the plane of the rectangular loop +The long, straight conductor shown in Fig. P5.16 lies in the plane of the rectangular loop at a distance \(d = $d \rm{m} \). The loop has dimensions \(a = $a \rm{m} \) and \(b = $b \rm{m} \), and the currents are \(I_1 = $I1 \rm{A} \) and \(I_2 = $I2 \rm{A} \). $BR @@ -99,10 +99,10 @@ Determine the net magnetic force acting on the loop.$BR Note: Your answers are validated to \(\pm \)0.01 absolute. $BR -\(\vec{F}\)=\{ans_rule(20)\} \( \rm(mN)\) \{ AnswerFormatHelp("vectors") \} $BR +\(\vec{F}\)=\{ans_rule(20)\} \( \rm(mN)\) \{ helpLink("vectors") \} $BR -Note: Your answer should be in the form of "px+qy+rz", where "x", "y" and "z" represent \( \bf{\hat x}, \bf{\hat y}\) and \(\bf{\hat z}\) respectively +Note: Your answer should be in the form of "px+qy+rz", where "x", "y" and "z" represent \( \bf{\hat x}, \bf{\hat y}\) and \(\bf{\hat z}\) respectively and "p", "q" and "r" are vector coefficients determined by you. $PAR END_TEXT @@ -114,7 +114,7 @@ ANS( $F->cmp() ); # Solution Context()->texStrings; BEGIN_SOLUTION -$PAR +$PAR Solution: The net magnetic force on the loop is due to the magnetic field surrounding the wire carrying current \(I_1 \). The magnetic forces on the loop as a whole diff --git a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_5.22.pg b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_5.22.pg index ca2145da13..bfa187c36e 100644 --- a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_5.22.pg +++ b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_5.22.pg @@ -20,7 +20,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -73,10 +73,10 @@ Obtain the values for the magnetic field \(\bf{\vec H} \) for $BR $PAR (a) \(r = $r1 \rm{m} \) $BR -\(\bf{\vec H}_1 \)=\{ans_rule(20)\} \(\hat {\boldsymbol \phi} \) \( (\rm{A/mm}) \) \{ AnswerFormatHelp("numbers") \} $BR +\(\bf{\vec H}_1 \)=\{ans_rule(20)\} \(\hat {\boldsymbol \phi} \) \( (\rm{A/mm}) \) \{ helpLink("numbers") \} $BR $PAR (b) \(r = $r2 \rm{m} \) $BR -\(\bf{\vec H}_2 \)=\{ans_rule(20)\} \( \hat {\boldsymbol \phi} \) \( (\rm{A/mm}) \) \{ AnswerFormatHelp("numbers") \} $BR +\(\bf{\vec H}_2 \)=\{ans_rule(20)\} \( \hat {\boldsymbol \phi} \) \( (\rm{A/mm}) \) \{ helpLink("numbers") \} $BR END_TEXT @@ -89,7 +89,7 @@ ANS( $H2->cmp() ); # Solution Context()->texStrings; BEGIN_SOLUTION -$PAR +$PAR Solution: This problem is very similar to Example 5-5. $BR (a) For \(0 \le {r_1} \le a\), the total current flowing within the contour \(C_1\) is diff --git a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_5.33.pg b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_5.33.pg index 7c85e4be78..580d80d282 100644 --- a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_5.33.pg +++ b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_5.33.pg @@ -20,7 +20,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -84,9 +84,9 @@ y = 0, the interface between two magnetic media, and \(\bf{H_1} = \hat{\bf z}\) $PAR \{image("ECE303_Ulaby_Ed7_5_33.png",height=>260, width=>300)\} $PAR -\(\bf{H_2} \)=\{ans_rule(20)\} ( \(\rm{A/m} \) ) \{ AnswerFormatHelp("vectors") \} $BR +\(\bf{H_2} \)=\{ans_rule(20)\} ( \(\rm{A/m} \) ) \{ helpLink("vectors") \} $BR -Note:Your answer should be in the form of "ax+by+cz", where "x", "y" and "z" represent \( \bf{\hat x}, \bf{\hat y}\) and \(\bf{\hat z}\) respectively +Note:Your answer should be in the form of "ax+by+cz", where "x", "y" and "z" represent \( \bf{\hat x}, \bf{\hat y}\) and \(\bf{\hat z}\) respectively and "a", "b" and "c" are vector coefficients determined by you. $PAR END_TEXT @@ -98,7 +98,7 @@ ANS( $H2->cmp() ); # Solution Context()->texStrings; BEGIN_SOLUTION -$PAR +$PAR Solution: \[{{\bf{J}}_s} = {\bf{\hat x}}a\;({\rm{A/m}}),\;\;a = $Js,\] diff --git a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_5.34.pg b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_5.34.pg index 4556794246..871ec35eb7 100644 --- a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_5.34.pg +++ b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_5.34.pg @@ -20,7 +20,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -69,7 +69,7 @@ Context()->constants->set( # define variables Context()->variables->are(mu1=>'Real', mu2=>'Real'); # -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; $B2n_x = -($b-$a)/2; $B2n_y = ($b-$a)/2; @@ -98,7 +98,7 @@ BEGIN_TEXT $PAR -In Fig. P5.34, the plane defined by \(x\)-\(y\)=1 separates medium 1 of permeability \(\mu_1\) from medium 2 of permeability \(\mu_2\). +In Fig. P5.34, the plane defined by \(x\)-\(y\)=1 separates medium 1 of permeability \(\mu_1\) from medium 2 of permeability \(\mu_2\). If no surface current exists on the boundary and \[\textbf{B}_1 = \hat{\bf{x}} \rm{$a} + \hat{\bf{y}} \rm{$b} \;\;\; ({\rm{T}}) \] @@ -109,10 +109,10 @@ $PAR \{image("ECE303_Ulaby_Ed7_5_34.png",height=>280, width=>340)\} $PAR -\(\textbf{B}_2 (\mu_1, \mu_2)\) =\{ans_rule(20)\} \( (\rm{T}) \) \{ AnswerFormatHelp("vectors") \} $BR -\(\textbf{B}_2 (\mu_1 = $k \mu_2)\) =\{ans_rule(20)\} \( (\rm{T}) \) \{ AnswerFormatHelp("vectors") \} $BR +\(\textbf{B}_2 (\mu_1, \mu_2)\) =\{ans_rule(20)\} \( (\rm{T}) \) \{ helpLink("vectors") \} $BR +\(\textbf{B}_2 (\mu_1 = $k \mu_2)\) =\{ans_rule(20)\} \( (\rm{T}) \) \{ helpLink("vectors") \} $BR -Note: Your answer should be in the form of "ax+by+cz", where "x", "y" and "z" represent \( \bf{\hat x}, \bf{\hat y}\) and \(\bf{\hat z}\) respectively +Note: Your answer should be in the form of "ax+by+cz", where "x", "y" and "z" represent \( \bf{\hat x}, \bf{\hat y}\) and \(\bf{\hat z}\) respectively and "a", "b" and "c" are vector coefficients determined by you. You may use "mu1" ( \(\mu_1\) ) and "mu2" ( \(\mu_2\) ) in your answer. $BR $BR END_TEXT @@ -125,7 +125,7 @@ ANS( $B2_test->cmp() ); # Solution Context()->texStrings; BEGIN_SOLUTION -$PAR +$PAR Solution: We need to find \({{{\bf{\hat n}}}_2}\). To do so, we start by finding any two vectors in the plane x-y = 1, and to do that, we need three non-collinear points in that plane. We choose (0,-1,0), (1,0,0), and (1,0,1). @@ -140,7 +140,7 @@ given plane, from medium 2 to medium 1, Suppose: \[{{\bf{B}}_1} = {\bf{\hat x}}a + {\bf{\hat y}}b ,\;where\;a =$a,\;\;b =$b\] -In medium 1, normal component is +In medium 1, normal component is \[{B_{1n}} = {{{\bf{\hat n}}}_2} \cdot {{\bf{B}}_1} = \left( {\frac{{{\bf{\hat y}}}}{{\sqrt 2 }} - \frac{{{\bf{\hat x}}}}{{\sqrt 2 }}} \right) \cdot \left( {{\bf{\hat x}}a + {\bf{\hat y}}b} \right) = \frac{{b - a}}{{\sqrt 2 }},\] diff --git a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_5.37.pg b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_5.37.pg index cb3068dbda..4ac1b9f1f9 100644 --- a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_5.37.pg +++ b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_5.37.pg @@ -20,7 +20,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -71,12 +71,12 @@ Context()->constants->set( # define variables Context()->variables->are(I=>'Real', l=>'Real'); # -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; # calculation # (a) B1 and B2 -$B1_y_uT = Formula("$mu*I/(2*$x)"); -## $B1_y_uT = Formula("$mu*I/(2*pi*$x)"); +$B1_y_uT = Formula("$mu*I/(2*$x)"); +## $B1_y_uT = Formula("$mu*I/(2*pi*$x)"); $B2_y_uT = Formula("$mu*I/(2*($d-$x) )"); $B1 = Vector(0, $B1_y_uT, 0); @@ -96,9 +96,9 @@ BEGIN_TEXT $PAR -Obtain an expression for the self-inductance per unit length \( (L_{pu}) \) for the parallel wire transmission line of Fig. 5.37 +Obtain an expression for the self-inductance per unit length \( (L_{pu}) \) for the parallel wire transmission line of Fig. 5.37 in terms of \(\mu \), where \(\mu= 4 \pi \times {10^{-7}} \rm{(H/ m)} \) is the permeability of the medium in which they reside. Before getting that expression, you are -required to obtain the expression for magnetic fields \((\vec B_1\) and \(\vec B_2 )\) and magnetic flux \( (\Phi) \) first.$BR +required to obtain the expression for magnetic fields \((\vec B_1\) and \(\vec B_2 )\) and magnetic flux \( (\Phi) \) first.$BR Parameter \(a = $a \rm{m} \) is the radius of the wires and \(d = $d \rm{m} \) is the axis-to-axis distance between the wires. $BR @@ -107,23 +107,23 @@ $PAR $PAR (a) Find an expression for magnetic fields\(\vec B_1\) and \(\vec B_2\) generated by each wire at point \(P = ($x, 0, z)\). $BR -\(\vec B_1\)=\{ans_rule(20)\} \(({\rm{nT}})\) \{ AnswerFormatHelp("vectors") \} $BR -\(\vec B_2\)=\{ans_rule(20)\} \(({\rm{nT}})\) \{ AnswerFormatHelp("vectors") \} $BR +\(\vec B_1\)=\{ans_rule(20)\} \(({\rm{nT}})\) \{ helpLink("vectors") \} $BR +\(\vec B_2\)=\{ans_rule(20)\} \(({\rm{nT}})\) \{ helpLink("vectors") \} $BR -Note: Your answer should be in the form of "ax+by+cz", where "x", "y" and "z" represent \( \bf{\hat x}, \bf{\hat y}\) and \(\bf{\hat z}\) respectively -and "a", "b" and "c" are vector coefficients determined by you. -You may use "mu" ( \(\mu \) ), "I" ( \(I \) ), and "l" ( \(l\) ) in your answer for (a) and (b). +Note: Your answer should be in the form of "ax+by+cz", where "x", "y" and "z" represent \( \bf{\hat x}, \bf{\hat y}\) and \(\bf{\hat z}\) respectively +and "a", "b" and "c" are vector coefficients determined by you. +You may use "mu" ( \(\mu \) ), "I" ( \(I \) ), and "l" ( \(l\) ) in your answer for (a) and (b). Be careful about the current "I" ( \(I \) ) and length "l" ( \(l\) ) since they are similar in this font. $BR (b) Find the magnetic flux crossing the surface area between the wires over a length \(l \) of the wire structure. $BR -\(\Phi\)=\{ans_rule(20)\} \(({\rm{nH}} \cdot {\rm{A}})\) \{ AnswerFormatHelp("formula") \} $BR +\(\Phi\)=\{ans_rule(20)\} \(({\rm{nH}} \cdot {\rm{A}})\) \{ helpLink("formula") \} $BR (c) The inductance per unit length is: $BR -\(L_{pu} \) =\{ans_rule(20)\} \(({\rm{n H/m}})\) \{ AnswerFormatHelp("formula") \} $BR +\(L_{pu} \) =\{ans_rule(20)\} \(({\rm{n H/m}})\) \{ helpLink("formula") \} $BR END_TEXT Context()->normalStrings; @@ -137,7 +137,7 @@ ANS( $Lpu_u->cmp() ); # Solution Context()->texStrings; BEGIN_SOLUTION -(a) $PAR +(a) $PAR Let us place the two wires in the x-z plane and orient the current in one of them to be along the+z-direction and the current in the other one to be along the -z-direction, as shown in Fig. P5.37. From Eq. (5.30), the magnetic field at point \( P = (x=$x,0, z)\) due to wire 1 is @@ -152,7 +152,7 @@ Given that the current in wire 2 is opposite that in wire 1, the magnetic field by wire 2 at point \( P = (x=$x,0, z)\) is in the same direction as that created by wire 1, and it is given by \[{{\vec B}_2} = {\bf{\hat y}}\frac{{\mu I}}{{2\pi (d - x)}} ({\rm{T}}) \] -$BBOLD Note: Be careful on converting the units: \({\rm{nT}}\;{\rm{ = }}\;{\rm{1}}{{\rm{0}}^{ - 9}}\;{\rm{T}}\). $EBOLD $BR +$BBOLD Note: Be careful on converting the units: \({\rm{nT}}\;{\rm{ = }}\;{\rm{1}}{{\rm{0}}^{ - 9}}\;{\rm{T}}\). $EBOLD $BR (b) $PAR Based on the results from (a), the total magnetic field in the region between the wires is @@ -166,7 +166,7 @@ of the wire structure is \[\Phi = \left. {\frac{{\mu Ild}}{{2\pi }}\left( {\frac{1}{d}\ln \left( {\frac{x}{{d - x}}} \right)} \right)} \right|_{x = a}^{d - a}\] \[\Phi = \frac{{\mu Il}}{{2\pi }}\left( {\ln \left( {\frac{{d - a}}{a}} \right) - \ln \left( {\frac{a}{{d - a}}} \right)} \right)\] \[\Phi = \frac{{\mu Il}}{{2\pi }} \times 2\ln \left( {\frac{{d - a}}{a}} \right) = \frac{{\mu Il}}{\pi }\ln \left( {\frac{{d - a}}{a}} \right) ({\rm{H}} \cdot {\rm{A}}) \] -$BBOLD Note: Be careful on converting the units: \({\rm{nH}}\;{\rm{ = }}\;{\rm{1}}{{\rm{0}}^{ - 9}}\;{\rm{H}}\). $EBOLD $BR +$BBOLD Note: Be careful on converting the units: \({\rm{nH}}\;{\rm{ = }}\;{\rm{1}}{{\rm{0}}^{ - 9}}\;{\rm{H}}\). $EBOLD $BR (c) $PAR Since the number of turns in this structure is 1, Eq. (5.93) states that the flux linkage is the same as magnetic flux: \(\Lambda = \Phi \). Then Eq. (5.94) gives a total inductance over @@ -174,7 +174,7 @@ the length \(l \) as \[L = \frac{\Lambda }{I} = \frac{\Phi }{I} = \frac{{\mu l}}{\pi }\ln \left( {\frac{{d - a}}{a}} \right)\;\;({\rm{H}}).\] Therefore, the inductance per unit length is \[{L_{pu}} = \frac{L}{l} = \frac{\mu }{\pi }\ln \left( {\frac{{d - a}}{a}} \right) \approx \frac{\mu }{\pi }\ln \left( {\frac{d}{a}} \right)\;\;({\rm{H/m}}),\] -$BBOLD Note: Be careful on converting the units: \({\rm{nH}}\;{\rm{ = }}\;{\rm{1}}{{\rm{0}}^{ - 9}}\;{\rm{H}}\). $EBOLD $BR +$BBOLD Note: Be careful on converting the units: \({\rm{nH}}\;{\rm{ = }}\;{\rm{1}}{{\rm{0}}^{ - 9}}\;{\rm{H}}\). $EBOLD $BR where the last approximation recognizes that the wires are thin compared to the separation distance (i.e., that \(d \gg a\) ). This has been an implied condition from the beginning of this analysis, where the flux passing through the wires themselves have diff --git a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_5.6.pg b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_5.6.pg index 03c0b39161..0ee2d99bc0 100644 --- a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_5.6.pg +++ b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_5.6.pg @@ -20,7 +20,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -130,21 +130,21 @@ Note: Your answers are validated to \(\pm \)0.01 absolute. $BR \[\textbf{B} = 2 \times {10^{ - 2}}(\hat{\bf{x}} + \hat{\bf{y}} \rm{$b}) \;\;\; ({\rm{T}}) \] and the angle \(\phi = {$phi_a_deg^o}\), determine the torque acting on the coil. $BR -\(\bf{T}\)=\{ans_rule(20)\} \( \rm(N \cdot m)\) \{ AnswerFormatHelp("vectors") \} $BR +\(\bf{T}\)=\{ans_rule(20)\} \( \rm(N \cdot m)\) \{ helpLink("vectors") \} $BR -Note: Your answer should be in the form of "ax+by+cz", where "x", "y" and "z" represent \( \bf{\hat x}, \bf{\hat y}\) and \(\bf{\hat z}\) respectively +Note: Your answer should be in the form of "ax+by+cz", where "x", "y" and "z" represent \( \bf{\hat x}, \bf{\hat y}\) and \(\bf{\hat z}\) respectively and "a", "b" and "c" are vector coefficients determined by you. $PAR (b) At what angle \(\phi \) (in degree) is the torque zero? $BR -\(\bf{\phi_0}\)=\{ans_rule(20)\} \(^{o}\) \{ AnswerFormatHelp("numbers") \} $BR -Note: There are multiple solutions for the angles here, please enter your answers in comma separated list. +\(\bf{\phi_0}\)=\{ans_rule(20)\} \(^{o}\) \{ helpLink("numbers") \} $BR +Note: There are multiple solutions for the angles here, please enter your answers in comma separated list. Give ALL angles in \([-\pi, \pi]\) that satisfy the conditions. Your answers may be listed in any order. $BR (c) At what angle \(\phi \) (in degree) is the torque maximum? Determine the maximal torque \(\bf{T_{max}} \).$BR -\(\bf{\phi}_{max}\)=\{ans_rule(20)\} \(^{o}\) \{ AnswerFormatHelp("numbers") \} $BR -\(\bf{T_{max}}\)=\{ans_rule(20)\} \( \rm(N \cdot m)\) \{ AnswerFormatHelp("vectors") \} $BR +\(\bf{\phi}_{max}\)=\{ans_rule(20)\} \(^{o}\) \{ helpLink("numbers") \} $BR +\(\bf{T_{max}}\)=\{ans_rule(20)\} \( \rm(N \cdot m)\) \{ helpLink("vectors") \} $BR -Note: There are multiple solutions for the angles here, please enter your answers in comma separated list. +Note: There are multiple solutions for the angles here, please enter your answers in comma separated list. Give ALL angles in \([-\pi, \pi]\) that satisfy the conditions. Your answers may be listed in any order. $BR END_TEXT @@ -158,7 +158,7 @@ ANS( $T_max->cmp() ); # Solution Context()->texStrings; BEGIN_SOLUTION -$PAR +$PAR Solution: (a) The magnetic field is in direction ( \({\bf{\hat x}}a + {\bf{\hat y}}b,\;a = $a,\;b = $b \) ), which makes an angle \[{\phi_{B0}} = atan(b/a) = {$phi_B0_deg^ \circ }.\] @@ -188,11 +188,11 @@ equating it to zero to find the values of f at which \(\left| {\bf{T}} \right|\) \[\frac{{\partial {\rm{T}}}}{{\partial \phi }} = \frac{\partial }{{\partial \phi }}\left( {$k0(b\cos \phi - a\sin \phi )} \right) = 0\] -or +or \[ - b\sin \phi - a\cos \phi = 0,\] -which gives \(\tan \phi = - ($a/$b)\), or +which gives \(\tan \phi = - ($a/$b)\), or \[\phi = {$phi_max_1_deg^ \circ }\;or\;{$phi_max_2_deg^ \circ }.\] diff --git a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_5.7.pg b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_5.7.pg index 624aabccce..2d11d76e74 100644 --- a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_5.7.pg +++ b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_5.7.pg @@ -20,7 +20,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -53,7 +53,7 @@ Context()->constants->set( Context()->{format}{number} = "%.4e"; # constant -$mu = 4*pi*10**(-7); +$mu = 4*pi*10**(-7); # randomized parameters @@ -72,7 +72,7 @@ $I = 50; # unit change $a = $a_cm*10**(-2); # cm to m -$b = $b_cm*10**(-2); +$b = $b_cm*10**(-2); @@ -99,7 +99,7 @@ BEGIN_TEXT $PAR An \(a \times b = $a_cm \rm{cm} \times $b_cm \rm{cm} \) rectangular loop of wire is situated in the x-y plane with -the center of the loop at the origin and its long sides parallel to the x-axis. +the center of the loop at the origin and its long sides parallel to the x-axis. The loop has a current of \(I = $I \rm{A} \) flowing clockwise (when viewed from above). $BR $PAR @@ -109,9 +109,9 @@ $PAR Determine the magnetic field at the center of the loop. $BR Note: Your answers are validated to \(\pm \)0.01 absolute. $BR -\(\bf{B}\)=\{ans_rule(20)\} \( (\rm{mT}) \) \{ AnswerFormatHelp("vectors") \} $BR +\(\bf{B}\)=\{ans_rule(20)\} \( (\rm{mT}) \) \{ helpLink("vectors") \} $BR -Note:Your answer should be in the form of "ax+by+cz", where "x", "y" and "z" represent \( \bf{\hat x}, \bf{\hat y}\) and \(\bf{\hat z}\) respectively +Note:Your answer should be in the form of "ax+by+cz", where "x", "y" and "z" represent \( \bf{\hat x}, \bf{\hat y}\) and \(\bf{\hat z}\) respectively and "a", "b" and "c" are vector coefficients determined by you. $PAR @@ -124,7 +124,7 @@ ANS( $B_mT->cmp() ); # Solution Context()->texStrings; BEGIN_SOLUTION -$PAR +$PAR Solution: The total magnetic field is the vector sum of the individual fields of each of the four wire segments: \(\vec B = {\vec B_1} + {\vec B_2} + {\vec B_3} + {\vec B_4}\). An expression for the magnetic field from a wire segment is given by Eq. (5.29). For all segments shown in Fig. P5.7, the combination of the direction of the current and the right-hand rule gives the direction diff --git a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_6.2.pg b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_6.2.pg index 87fab29a79..e174d78863 100644 --- a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_6.2.pg +++ b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_6.2.pg @@ -20,7 +20,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -72,8 +72,8 @@ ANS( $popup4->cmp() ); # Solution Context()->texStrings; BEGIN_SOLUTION -$PAR -\(I=V_{emf}/R\). Since the single-turn loop is not moving or changing shape with time, \(V_{emf}^m=0 V\) and \(V_{emf}=V_{emf}^{tr}\). Therefore, from Eq.(6.8), +$PAR +\(I=V_{emf}/R\). Since the single-turn loop is not moving or changing shape with time, \(V_{emf}^m=0 V\) and \(V_{emf}=V_{emf}^{tr}\). Therefore, from Eq.(6.8), \(I=V_{emf}^{tr}/R=\frac{-1}{R}\int_S \frac{\partial \vec{\textbf {x}} }{\partial t} \cdot d \vec{\textbf{s}}\) $BR If we take surface normal to be \(+\hat{\textbf{z}}\), then the right hand rule gives positive flowing current to be in \(+ \hat{\boldsymbol \phi }\) direction. $BR \(I=\frac{A}{R}\frac{\partial}{\partial t}B_0 sin (\omega t) =\frac{-AB_0 \omega}{R}cos (\omega t) \ (A) \), $BR diff --git a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_6.3.pg b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_6.3.pg index ce03583204..b5a1987fe4 100644 --- a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_6.3.pg +++ b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_6.3.pg @@ -20,7 +20,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -35,7 +35,7 @@ Context()->flags->set( tolerance => 0.01, tolType => "relative", ); -Context()->variables->are(t=>'Real'); +Context()->variables->are(t=>'Real'); $Turn=random(100,120,5); $side=random(0.25,0.35,0.05); @@ -57,13 +57,13 @@ BEGIN_TEXT A coil consists of \($Turn\) turns of wire wrapped around a square frame of sides \($side\) m. The coil is centered at the origin with each of its sides parallel to the \(x\)- or \(y\)-axis. Find the induced emf across the open-circuited ends of the coil as a function of "t" if the magnetic field is given by $PAR (a) \(\hat{\textbf{B}} = \hat{\textbf{z}} $Amp e^{-3t} (T) \) $BR -\(emf\)=\{ans_rule(30)\} \((V) \) \{ AnswerFormatHelp("formula") \} $BR +\(emf\)=\{ans_rule(30)\} \((V) \) \{ helpLink("formula") \} $BR (b) \(\hat{\textbf{B}} = \hat{\textbf{z}} $Amp cos(x) cos(10^3t) (T)\) $BR -\(emf\)=\{ans_rule(30)\} \((kV) \) \{ AnswerFormatHelp("formula") \} $BR +\(emf\)=\{ans_rule(30)\} \((kV) \) \{ helpLink("formula") \} $BR (c) \(\hat{\textbf{B}} = \hat{\textbf{z}} $Amp cos(x) sin(2y) cos(10^3t) (T)\) $BR -\(emf\)=\{ans_rule(30)\} \((V) \) \{ AnswerFormatHelp("formula") \} $BR +\(emf\)=\{ans_rule(30)\} \((V) \) \{ helpLink("formula") \} $BR Note: Ensure your unit is consistent. @@ -77,10 +77,10 @@ ANS( $emfc->cmp() ); # Solution Context()->texStrings; BEGIN_SOLUTION -$PAR -Since the single-turn loop is not moving or changing shape with time, \(V_{emf}^m=0 V\) and \(V_{emf}=V_{emf}^{tr}\). Therefore, from Eq.(6.6), +$PAR +Since the single-turn loop is not moving or changing shape with time, \(V_{emf}^m=0 V\) and \(V_{emf}=V_{emf}^{tr}\). Therefore, from Eq.(6.6), \(V_{emf}=-N\frac{d}{dt} \int_S \vec{\textbf {B}} \cdot d \vec{\textbf{s}} = -N\frac{d}{dt} \int_{-$side/2}^{$side/2} \int_{-$side/2}^{$side/2} \vec{\textbf {B}} \cdot (\vec{\textbf{z}} dx dy) \), $BR -where N=$Turn and the surface normal was chosen to be in the \(+\hat{\textbf{z}}\). +where N=$Turn and the surface normal was chosen to be in the \(+\hat{\textbf{z}}\). $PAR (a) For \(\vec{\textbf{B}}=\hat{\textbf{z}} $Amp e^{-3t} (T)\), $BR diff --git a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_6.6.pg b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_6.6.pg index 86c952c098..66a25eddfe 100644 --- a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_6.6.pg +++ b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_6.6.pg @@ -20,7 +20,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -35,7 +35,7 @@ Context()->flags->set( tolerance => 0.01, tolType => "relative", ); -Context()->variables->are(t=>'Real'); +Context()->variables->are(t=>'Real'); $mu0=4*pi/10000000; @@ -66,11 +66,11 @@ carrying a current \(I(t)=$Amp cos(2 \pi \cdot $t t) (A)\), \(a=$a (cm)\), and \(b=$b (cm).\)$BR Note: Ensure your unit is consistent. $PAR -(a) The emf induced across a small gap created in the loop is \{ans_rule(30)\} \(( mV) \) \{ AnswerFormatHelp("formula") \} $BR +(a) The emf induced across a small gap created in the loop is \{ans_rule(30)\} \(( mV) \) \{ helpLink("formula") \} $BR (b) Determine the current that would flow through a \($R1-\Omega\) resistor connected across the gap, The loop has an internal resistance of \($R2-\Omega\).$BR -\(I(t)\)=\{ans_rule(30)\} \((mA) \) \{ AnswerFormatHelp("formula") \} $BR -Note: Your current function should follow the convention that when looking into the \(-\hat{\textbf{x}}\) direction as shown in the diagram above, the current is positive when it is flowing counter clockwise which can also be described as following the right hand rule along the \(\hat{\textbf{x}}\) direction . +\(I(t)\)=\{ans_rule(30)\} \((mA) \) \{ helpLink("formula") \} $BR +Note: Your current function should follow the convention that when looking into the \(-\hat{\textbf{x}}\) direction as shown in the diagram above, the current is positive when it is flowing counter clockwise which can also be described as following the right hand rule along the \(\hat{\textbf{x}}\) direction . END_TEXT @@ -82,14 +82,14 @@ ANS( $Lin->cmp() ); # Solution Context()->texStrings; BEGIN_SOLUTION -$PAR +$PAR (a) The magnetic field due to the wire is $BR \(\textbf {B}=\hat{\boldsymbol \phi}\frac{\mu_0 l}{2 \pi r}=-\hat{\bf x}\frac{\mu_0 l}{2 \pi y}\), $BR where in the plane of the loop, \(\hat{\boldsymbol \phi}=-\hat{\bf x}\) and \(r=y\). The flux passing through the loop is $BR \(\Phi= \int_S \vec{\textbf {B}} \cdot s= \int_{$a cm}^{($a+$b) cm} - \hat{\textbf {x}} \frac{\mu_0 I}{2 \pi y} \cdot [ - \hat{\textbf {x}} $b (cm)] dy\) $BR \(= \frac{4 \pi 10^{-7} \cdot $Amp cos(2 \pi \cdot $t t) \cdot $b/10}{2 \pi} \cdot ln \frac{$b+$a}{$a} \) $BR -\(=$phi \mu Wb\) Note the unit here. $PAR +\(=$phi \mu Wb\) Note the unit here. $PAR \(V_{emf}=-\frac{d \Phi}{dt}=\Phi \cdot 2 \pi \cdot $t sin(2 \pi \cdot $t t) (V) \) $BR \(=$emf (mV)\) Note the unit here. $PAR diff --git a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_6.8.pg b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_6.8.pg index 48f8e6aca5..b25d1daaa1 100644 --- a/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_6.8.pg +++ b/Contrib/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_6.8.pg @@ -20,7 +20,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -35,7 +35,7 @@ Context()->flags->set( tolerance => 0.01, tolType => "relative", ); -Context()->variables->are(t=>'Real'); +Context()->variables->are(t=>'Real'); $mu0=4*pi/10000000; @@ -63,7 +63,7 @@ the z-axis carrying a current \(I = I_0 cos(\omega t)\), coupling magnetic energ coil situated in the \(x-y\) plane and centered at the origin. The toroidal core uses iron material with relative permeability \(\mu_r=$mu\), around which \($Turn\) turns of a tightly wound coil serves to induce a voltage \(V_{emf}\), as shown in the figure. Calculate \(V_{emf}\) for \(f=$Hz Hz, a=$a cm, b = $b cm, c= $c cm\), and \(I_0 = $I0 A\).$BR -\(V_{emf}\)= \{ans_rule(30)\} \(( V) \) \{ AnswerFormatHelp("formula") \} $BR +\(V_{emf}\)= \{ans_rule(30)\} \(( V) \) \{ helpLink("formula") \} $BR @@ -76,7 +76,7 @@ ANS( $emf->cmp() ); # Solution Context()->texStrings; BEGIN_SOLUTION -$PAR +$PAR Refer to the figure above, the magnetic flux through the coil \(\Phi\) is given by: $BR \(\Phi= \int_S \vec{\textbf {B}} \cdot s= \int_{a}^{b} \hat{\textbf {x}} \frac{\mu I}{2 \pi r} \cdot [ \hat{\textbf {x}} c] dr=\frac{\mu c I}{2 \pi} ln \frac{b}{a}\) $BR \(V_{emf}=-N\frac{d \Phi}{dt}=-\frac{\mu cN }{2 \pi }ln \frac{b}{a} \frac{dI}{dt} =\frac{\mu c N \omega I_0}{2 \pi}ln \frac{b}{a} sin(\omega t) (V) \) $BR diff --git a/Contrib/NCSU/Power/ECE305_HW2_P01_White.pg b/Contrib/NCSU/Power/ECE305_HW2_P01_White.pg index 6622b998d3..09e5ad2f05 100644 --- a/Contrib/NCSU/Power/ECE305_HW2_P01_White.pg +++ b/Contrib/NCSU/Power/ECE305_HW2_P01_White.pg @@ -29,7 +29,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -43,7 +43,7 @@ tolType => "absolute", ); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; #Initialize element values, to be changed for each question $Fv=random(50,60,10); @@ -112,7 +112,7 @@ $grapha->lb(new Label($Pvax/2,0,"B",'blue','right','top')); $grapha->lb(new Label($Pvax,$Pvay/2,"A",'blue','right','bottom')); $grapha->lb(new Label($Tmax,0,"R",'black','right','bottom')); $grapha->lb(new Label(0 ,$ULMa,"i",'black','left','top')); -$figa = image(insertGraph($grapha),width => 400,height => 250,tex_size => 200); +$figa = image(insertGraph($grapha),width => 400,height => 250,tex_size => 200); $popupia = PopUp(["?", "Active", "Reactive", "Apparent"], "Reactive"); $popupib = PopUp(["?", "Active", "Reactive", "Apparent"], "Active"); $popupic = PopUp(["?", "Active", "Reactive", "Apparent"], "Apparent"); @@ -149,14 +149,14 @@ Determine power values for all the labelled current and voltage:$BR $PAR -$BBOLD b). $EBOLD +$BBOLD b). $EBOLD $PAR The phasor diagram below represents the power triangle diagram, please answer the following questions: $BR $figa $BR $PAR -Vector \( A \) represents \{ $popupia ->menu() \} $BR +Vector \( A \) represents \{ $popupia ->menu() \} $BR Vector \( B \) represents \{ $popupib ->menu() \} $BR -Vector \( C \) represents \{ $popupic ->menu() \} $BR +Vector \( C \) represents \{ $popupic ->menu() \} $BR $PAR END_TEXT @@ -209,4 +209,4 @@ Vector C corresponds to \( P_{apparent} \) $BR END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/NCSU/Power/ECE305_HW2_P02_White.pg b/Contrib/NCSU/Power/ECE305_HW2_P02_White.pg index 2dda63d984..32390cd496 100644 --- a/Contrib/NCSU/Power/ECE305_HW2_P02_White.pg +++ b/Contrib/NCSU/Power/ECE305_HW2_P02_White.pg @@ -30,7 +30,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -40,7 +40,7 @@ TEXT(beginproblem()); Context("Complex"); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.5f#"; +Context()->{format}{number} = "%.5f#"; #Initialize element values, to be changed for each question $Iv=random(15,20,1); @@ -67,8 +67,8 @@ $C=Real($Qadd/2/pi/$Fv/$Vv/$Vv*1000000000); BEGIN_TEXT A single phase motor draws a line current of $Iv Amp at $PF pf, lagging, when operated from a $Vv Volt, $Fv Hz source. Determine the following:$BR 1. The phase angle of the current with respect to the voltage $BR \(\phi=\)\{ans_rule(10)\} \(^{\circ} \). $BR -2. The real power drawn by the motor $BR \( P_{active, motor} = \) \{ans_rule(10)\} \( kW \) \{AnswerFormatHelp("numbers") \}. $BR -3. The reactive power drawn by the motor $BR \( Q_{motor} = \) \{ans_rule(10)\} \( kVAR\) \{AnswerFormatHelp("numbers") \}.$BR +2. The real power drawn by the motor $BR \( P_{active, motor} = \) \{ans_rule(10)\} \( kW \) \{helpLink("numbers") \}. $BR +3. The reactive power drawn by the motor $BR \( Q_{motor} = \) \{ans_rule(10)\} \( kVAR\) \{helpLink("numbers") \}.$BR 4. \{ans_rule(10)\} \( kVAR \) addition impedance will be required to improve the power factor to 0.9, lagging, while keeping the real power constant. (Use the absolute impedance to answer this question). $BR 5. \( C_{compensate} = \) \{ans_rule(10)\} \( uF\) is needed to accomplish the goal of Part 4 above. @@ -120,4 +120,4 @@ For a new PF= $PF2, END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/NCSU/Power/ECE305_HW2_P03_White.pg b/Contrib/NCSU/Power/ECE305_HW2_P03_White.pg index ba2fe38e5e..b120dac189 100644 --- a/Contrib/NCSU/Power/ECE305_HW2_P03_White.pg +++ b/Contrib/NCSU/Power/ECE305_HW2_P03_White.pg @@ -30,7 +30,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -40,7 +40,7 @@ TEXT(beginproblem()); Context("Complex"); Context()->variables->are(t=>'Real',w=>'Real',Phi=>'Real',Vmax=>'Real',Imax=>'Real'); -Context()->{format}{number} = "%.5f#"; +Context()->{format}{number} = "%.5f#"; $Vt_formula=Formula("Vmax*sin(w*t)"); $It_formula=Formula("Imax*sin(w*t+Phi)"); @@ -50,7 +50,7 @@ BEGIN_TEXT Given that the voltage and current through an impedance are the following values: $BR \(v(t)=V_{max} sin (\omega t)\); $BR \(i(t)=I_{max} sin (\omega t+ \phi)\); $BR -\( P_{ave} = \) \{ans_rule(20)\} (Use 'Imax', 'Vmax','Phi', and 'w' in your answer). \{ AnswerFormatHelp("formula") \} +\( P_{ave} = \) \{ans_rule(20)\} (Use 'Imax', 'Vmax','Phi', and 'w' in your answer). \{ helpLink("formula") \} END_TEXT Context()->normalStrings; @@ -82,4 +82,4 @@ Thus$BR END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/NCSU/Power/ECE305_HW2_P04_White.pg b/Contrib/NCSU/Power/ECE305_HW2_P04_White.pg index 7bbf1f1ea0..5c9347813c 100644 --- a/Contrib/NCSU/Power/ECE305_HW2_P04_White.pg +++ b/Contrib/NCSU/Power/ECE305_HW2_P04_White.pg @@ -28,7 +28,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -42,7 +42,7 @@ tolType => "absolute", ); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; #Initialize element values, to be changed for each question $Van=Real(random(250,300,5)); @@ -107,7 +107,7 @@ $grapha->lb(new Label($modVbc*cos($argVbc/180*pi), $modVbc*sin($argVbc/180*pi)," $grapha->lb(new Label($modVca*cos($argVca/180*pi), $modVca*sin($argVca/180*pi),"X",'blue','left','top')); -$figa = image(insertGraph($grapha),width => 400,height => 400,tex_size => 200); +$figa = image(insertGraph($grapha),width => 400,height => 400,tex_size => 200); $popupU = PopUp(["?", "Vbn", "Vcn", "Vab","Vbc","Vca","none"], "Vcn"); @@ -133,13 +133,13 @@ A balanced three-phase, wye-connected load is connected to an acb sequence gener 2. The following is the voltage phasor diagram with \(V_{an}\) as the reference. Answer the questions about the phasor diagram. $BR $figa $BR $PAR -Vector \( U \) represents \{ $popupU ->menu() \} $BR +Vector \( U \) represents \{ $popupU ->menu() \} $BR Vector \( W \) represents \{ $popupW ->menu() \} $BR -Vector \( X \) represents \{ $popupX ->menu() \} $BR +Vector \( X \) represents \{ $popupX ->menu() \} $BR Vector \( Y \) represents \{ $popupY ->menu() \} $BR -Vector \( Z \) represents \{ $popupZ ->menu() \} $BR +Vector \( Z \) represents \{ $popupZ ->menu() \} $BR -Note: Make sure you can draw the phasor diagram yourself during the exam. +Note: Make sure you can draw the phasor diagram yourself during the exam. $PAR END_TEXT @@ -216,4 +216,4 @@ Vector Z is \(V_{bc}\) END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/NCSU/Power/ECE305_HW2_P05_White.pg b/Contrib/NCSU/Power/ECE305_HW2_P05_White.pg index 5f9ba51070..2733828631 100644 --- a/Contrib/NCSU/Power/ECE305_HW2_P05_White.pg +++ b/Contrib/NCSU/Power/ECE305_HW2_P05_White.pg @@ -29,7 +29,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -43,7 +43,7 @@ tolType => "absolute", ); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; #Initialize element values, to be changed for each question $Vab=Real(random(200,240,10)); @@ -111,7 +111,7 @@ $grapha->lb(new Label($modVbc*cos($argVbc/180*pi), $modVbc*sin($argVbc/180*pi)," $grapha->lb(new Label($modVca*cos($argVca/180*pi), $modVca*sin($argVca/180*pi),"X",'blue','right','bottom')); -$figa = image(insertGraph($grapha),width => 400,height => 400,tex_size => 200); +$figa = image(insertGraph($grapha),width => 400,height => 400,tex_size => 200); $popupV = PopUp(["?", "Van","Vbn", "Vcn", "Vab","Vbc","Vca","none"], "Van"); $popupU = PopUp(["?", "Vbn", "Vcn", "Vab","Vbc","Vca","none"], "Vcn"); @@ -137,10 +137,10 @@ A balanced three-phase, wye-connected load is supplied by a delta-connected abc 2. The following is the voltage phasor diagram with \(V_{an}\) as the reference. Answer the questions about the phasor diagram. $BR $figa $BR $PAR -Vector \( U \) represents \{ $popupU ->menu() \} $BR -Vector \( V \) represents \{ $popupV ->menu() \} $BR +Vector \( U \) represents \{ $popupU ->menu() \} $BR +Vector \( V \) represents \{ $popupV ->menu() \} $BR Vector \( W \) represents \{ $popupW ->menu() \} $BR -Vector \( X \) represents \{ $popupX ->menu() \} $BR +Vector \( X \) represents \{ $popupX ->menu() \} $BR Vector \( Y \) represents \{ $popupY ->menu() \} $BR Note: Make sure you can draw the phasor diagram yourself during the exam. $BR @@ -227,4 +227,4 @@ $PAR END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/NCSU/Power/ECE305_HW2_P06_White.pg b/Contrib/NCSU/Power/ECE305_HW2_P06_White.pg index dc4055a86a..f925edfcdf 100644 --- a/Contrib/NCSU/Power/ECE305_HW2_P06_White.pg +++ b/Contrib/NCSU/Power/ECE305_HW2_P06_White.pg @@ -29,7 +29,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -43,7 +43,7 @@ tolType => "absolute", ); Context()->variables->are(Vp=>'Real'); -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; #Initialize element values, to be changed for each question $Z1=random(0.5,1,0.1)+random(1.8,2.3,0.1)*i; @@ -138,7 +138,7 @@ $grapha->lb(new Label($isxv/2,$isyv/2,"Is",'blue','right','top')); $grapha->lb(new Label($Tmax,0,"Ref",'black','right','bottom')); $grapha->lb(new Label(0 ,$ULMa,"Imag",'black','left','top')); -$figa = image(insertGraph($grapha),width => 400,height => 400,tex_size => 200); +$figa = image(insertGraph($grapha),width => 400,height => 400,tex_size => 200); $popupia = PopUp(["?", "Active", "Reactive", "Apparent"], "Reactive"); $popupib = PopUp(["?", "Active", "Reactive", "Apparent"], "Active"); $popupic = PopUp(["?", "Active", "Reactive", "Apparent"], "Apparent"); @@ -163,12 +163,12 @@ $PAR In the rest of the question, consider \(V_p\) as the magnitude of \(\tilde{ V_p}\), which should be considered as a common factor. $PAR -$BBOLD b). $EBOLD +$BBOLD b). $EBOLD Find the load voltages and currents of the WYE-connected load. $BR \(\tilde{ V}_C= \) \{ans_rule(10)\} \(\cdot V_p\) \( \angle \) \{ans_rule(10)\} \( ^{ \circ } V \)$BR \(\tilde{ I}_C= \) \{ans_rule(10)\} \(\cdot V_p\) \( \angle \) \{ans_rule(10)\} \( ^{ \circ } A \)$PAR -$BBOLD c). $EBOLD +$BBOLD c). $EBOLD Find the real and reactive power and power factor of the WYE-connected load. $BR \(P_{C}= \) \{ans_rule(10)\} \(\cdot V_p^2 W \) $BR \(Q_{C}= \) \{ans_rule(10)\} \(\cdot V_p^2 VAR \) $BR (Use the absolute value for \(Q_C\))$BR @@ -186,7 +186,7 @@ The power factor is \{ans_rule(10)\} \{ $popupQb ->menu() \} for the DELTA-conne $BBOLD f). $EBOLD The source line currents in the per-phase circuit is: $BR \(\tilde{I}_{s,eq}= \) \{ans_rule(10)\} \(\cdot V_p\) \( \angle \) \{ans_rule(10)\} \( ^{ \circ } A \)$BR -The magnitude of the actual line current through each voltage source \(V_s\) is: $BR +The magnitude of the actual line current through each voltage source \(V_s\) is: $BR \(|\tilde{I}|_{s}= \) \{ans_rule(10)\} \( A \)$PAR $BBOLD g). $EBOLD Find the total real and reactive power of the source. @@ -199,7 +199,7 @@ $figa $BR $PAR Vector \( A \) represents total active power, vector \( B \) represents total reactive power. $BR -Then vector \( C \) represents the total apparent power drawn by the load. $BR +Then vector \( C \) represents the total apparent power drawn by the load. $BR Its value |S| is \{ans_rule(10)\}\(\cdot V_p^2\) \( VA \), $BR In the per-phase equivalent circuit, the phase angle for the total load apparent power is \{ans_rule(10)\} \( ^{ \circ } \)$BR @@ -352,4 +352,4 @@ In the per-phase equivalent circuit, apparently the phase angle of S will be det END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/NCSU/Power/ECE305_HW3_P01_White.pg b/Contrib/NCSU/Power/ECE305_HW3_P01_White.pg index 17c90dc029..389d908aaf 100644 --- a/Contrib/NCSU/Power/ECE305_HW3_P01_White.pg +++ b/Contrib/NCSU/Power/ECE305_HW3_P01_White.pg @@ -30,7 +30,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -38,7 +38,7 @@ TEXT(beginproblem()); Context("Complex"); -Context()->{format}{number} = "%.5f#"; +Context()->{format}{number} = "%.5f#"; #Initialize element values, to be changed for each question $CS=random(35,45,1);#cm^2 @@ -59,7 +59,7 @@ $I=($H*$Ln+$Lg/4/pi*10000000)/$N; BEGIN_TEXT A silicon-steel core has a uniform cross-section area of \($CS cm^2 \), a mean path length of \($Len cm\), and $BR a gap length of \($Gap mm\). $BR -A. The current in the \($N \) turn coil that will result in an air gap flux density of \(1 Wb/m^2\) is \{ans_rule(10)\} \(A\) \{AnswerFormatHelp("numbers") \} $BR +A. The current in the \($N \) turn coil that will result in an air gap flux density of \(1 Wb/m^2\) is \{ans_rule(10)\} \(A\) \{helpLink("numbers") \} $BR B. What is the maximum air gap flux density that can occur with this physical arrangement? END_TEXT @@ -92,4 +92,4 @@ For Gap:$BR END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/NCSU/Power/ECE305_HW3_P02_03_White.pg b/Contrib/NCSU/Power/ECE305_HW3_P02_03_White.pg index 904a081fc3..222a4e8f8b 100644 --- a/Contrib/NCSU/Power/ECE305_HW3_P02_03_White.pg +++ b/Contrib/NCSU/Power/ECE305_HW3_P02_03_White.pg @@ -28,7 +28,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -39,7 +39,7 @@ Context("Complex"); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.5f#"; +Context()->{format}{number} = "%.5f#"; #Initialize element values, to be changed for each question $CS=random(35,45,1);#cm @@ -109,22 +109,22 @@ $PAR \{image("ECE305_HW3_2_White_P1.png",height=>400, width=>500)\} $BR $PAR -The electromagnet shown above has a cross-section area of \($CS cm^2\); the area is uniform throughout the structure. On one leg there is a $N1 turn coil; the other leg has a $N2 turn coil. The coils are connected such that the MMF from the individual coils will add. The mean magnetic path length of the top section is \($Lnt cm\); the mean length of the bottom section is \($Lnb cm\). Note that the materials of the two sections are different. $BR +The electromagnet shown above has a cross-section area of \($CS cm^2\); the area is uniform throughout the structure. On one leg there is a $N1 turn coil; the other leg has a $N2 turn coil. The coils are connected such that the MMF from the individual coils will add. The mean magnetic path length of the top section is \($Lnt cm\); the mean length of the bottom section is \($Lnb cm\). Note that the materials of the two sections are different. $BR $BR -A. The current that will estabalish a flux of \($Phi mWb\) in each of the \($Lg cm\) air gaps is \{ans_rule(10)\} A. \{AnswerFormatHelp("numbers") \} $PAR +A. The current that will estabalish a flux of \($Phi mWb\) in each of the \($Lg cm\) air gaps is \{ans_rule(10)\} A. \{helpLink("numbers") \} $PAR B. Find the self inductances of and mutual inductances, in Henries, of the coils.$BR -\(L_{11}=\) \{ans_rule(10)\} \(H\) \{AnswerFormatHelp("numbers") \} $BR -\(L_{22}=\) \{ans_rule(10)\} \(H\) \{AnswerFormatHelp("numbers") \} $BR -\(L_{12}=\) \{ans_rule(10)\} \(H\) \{AnswerFormatHelp("numbers") \} $BR -\(L_{21}=\) \{ans_rule(10)\} \(H\) \{AnswerFormatHelp("numbers") \} $PAR +\(L_{11}=\) \{ans_rule(10)\} \(H\) \{helpLink("numbers") \} $BR +\(L_{22}=\) \{ans_rule(10)\} \(H\) \{helpLink("numbers") \} $BR +\(L_{12}=\) \{ans_rule(10)\} \(H\) \{helpLink("numbers") \} $BR +\(L_{21}=\) \{ans_rule(10)\} \(H\) \{helpLink("numbers") \} $PAR C. The energy stored in the field of each coil.$BR -\(W_{1}=\) \{ans_rule(10)\} \(J\) \{AnswerFormatHelp("numbers") \} $BR -\(W_{2}=\) \{ans_rule(10)\} \(J\) \{AnswerFormatHelp("numbers") \} $PAR +\(W_{1}=\) \{ans_rule(10)\} \(J\) \{helpLink("numbers") \} $BR +\(W_{2}=\) \{ans_rule(10)\} \(J\) \{helpLink("numbers") \} $PAR D. The total energy stored in the completed assembly.$BR -\(W_{total}=\) \{ans_rule(10)\} \(J\) \{AnswerFormatHelp("numbers") \} $PAR +\(W_{total}=\) \{ans_rule(10)\} \(J\) \{helpLink("numbers") \} $PAR E. If the current through both coils is \(i=$I1 sin($Omg t) A\). What are the individual coil emfs? $BR -\(emf_{1}=\) \{ans_rule(30)\} \(V\) \{AnswerFormatHelp("formula") \} $BR -\(emf_{2}=\) \{ans_rule(30)\} \(V\) \{AnswerFormatHelp("formula") \} $BR +\(emf_{1}=\) \{ans_rule(30)\} \(V\) \{helpLink("formula") \} $BR +\(emf_{2}=\) \{ans_rule(30)\} \(V\) \{helpLink("formula") \} $BR $PAR @@ -212,7 +212,7 @@ Part b) $BR Part c) $BR Energy in the coils: $BR \(W_1=\frac{1}{2}L_{11}I^2=$W1 J\) $BR -\(W_2=\frac{1}{2}L_{22}I^2=$W2 J\) $BR +\(W_2=\frac{1}{2}L_{22}I^2=$W2 J\) $BR Note I was found in Part a). $PAR Part d) $BR @@ -232,4 +232,4 @@ Part e) $BR END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/NCSU/Power/ECE305_HW3_P04_White.pg b/Contrib/NCSU/Power/ECE305_HW3_P04_White.pg index cc1e81f3d0..702c522d44 100644 --- a/Contrib/NCSU/Power/ECE305_HW3_P04_White.pg +++ b/Contrib/NCSU/Power/ECE305_HW3_P04_White.pg @@ -29,7 +29,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", "scaffold.pl", ); @@ -41,7 +41,7 @@ Context("Complex"); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.5f#"; +Context()->{format}{number} = "%.5f#"; #Initialize element values, to be changed for each question $CS=random(12,18,1);#cm^2 @@ -75,9 +75,9 @@ BEGIN_TEXT \{image("ECE305_HW3_4_White_P1.png",height=>150, width=>200)\} $BR $PAR The silicon steel core shown above has a uniform cross-section area of \($CS cm^2\) , a mean path length of \($Len cm\), and a gap length of \($Gap mm\). If the $N turn coil carries \($I A\). Neglect air gap fringing. Firstly, determine the air gap magnetic flux density assuming all the flux is across the air gap. $BR -\(B_g=\) \{ans_rule(10)\} \(Wb/m^2\). \{AnswerFormatHelp("numbers") \}$BR +\(B_g=\) \{ans_rule(10)\} \(Wb/m^2\). \{helpLink("numbers") \}$BR From the B-H curve, approximate \(H_{core}\). $BR -\(H_{core}=\)\{ans_rule(10)\} \(A \cdot t/m\). \{AnswerFormatHelp("numbers") \}$BR +\(H_{core}=\)\{ans_rule(10)\} \(A \cdot t/m\). \{helpLink("numbers") \}$BR $PAR END_TEXT @@ -92,7 +92,7 @@ Section::Begin("Part 2: Refine Bg"); BEGIN_TEXT Now given \(H_{core}=125 A \cdot t/m \). Refine the value for \(B_g\) taking into the account of core loss. $BR -\(B_g=\) \{ans_rule(10)\} \(Wb/m^2\). \{AnswerFormatHelp("numbers") \}$BR +\(B_g=\) \{ans_rule(10)\} \(Wb/m^2\). \{helpLink("numbers") \}$BR END_TEXT $B1t=(abs($B1)>=1?"relative":"absolute"); ANS($B1->cmp(tolerance => 0.01,tolType => $B1t)); @@ -134,4 +134,4 @@ Now the refined \(B_g=\frac{4 \pi \cdot 10^{-7} \cdot $N1\cdot $I}{$Lg}=$B1 Wb/m END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/NCSU/Power/ECE305_HW3_P05_White.pg b/Contrib/NCSU/Power/ECE305_HW3_P05_White.pg index ac026028e1..ba45ceb3cb 100644 --- a/Contrib/NCSU/Power/ECE305_HW3_P05_White.pg +++ b/Contrib/NCSU/Power/ECE305_HW3_P05_White.pg @@ -28,7 +28,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -39,7 +39,7 @@ Context("Complex"); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.5f#"; +Context()->{format}{number} = "%.5f#"; #Initialize element values, to be changed for each question $L11=random(0.9,1.2,0.1); @@ -55,7 +55,7 @@ $k=Real($L12/sqrt($L11*$L22)); BEGIN_TEXT Two identical coils have the values \(L_{11} =$L11 H; L_{22} =$L22 H; L_{12} = $L12 H\) What is the coefficient of coupling? $BR -\(k =\) \{ans_rule(10)\}. \{AnswerFormatHelp("numbers") \}$BR +\(k =\) \{ans_rule(10)\}. \{helpLink("numbers") \}$BR END_TEXT Context()->normalStrings; @@ -76,4 +76,4 @@ $BBOLD SOLUTION $EBOLD END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/NCSU/Power/ECE305_HW3_P06_White.pg b/Contrib/NCSU/Power/ECE305_HW3_P06_White.pg index 3427e31709..c5da0dfc29 100644 --- a/Contrib/NCSU/Power/ECE305_HW3_P06_White.pg +++ b/Contrib/NCSU/Power/ECE305_HW3_P06_White.pg @@ -28,7 +28,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -39,7 +39,7 @@ Context("Complex"); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.5f#"; +Context()->{format}{number} = "%.5f#"; #Initialize element values, to be changed for each question $CS=random(35,45,1);#cm @@ -77,20 +77,20 @@ Three coils are wound on a core with infinite permeability. There is an air gap a gap length of \($Lg m\) and an area of \($Ac m^2\). Coil N1 has $N1 turns, coil N2 has $N2 turns, and coil N3 has $N3 turns. The coils are connected such that the fluxes add; a current of \($I A\) flows through all coils.$PAR A. Find the self inductances of and mutual inductances, in Henries, of the coils.$BR -\(L_{11}=\) \{ans_rule(10)\} \(H\) \{AnswerFormatHelp("numbers") \} $BR -\(L_{22}=\) \{ans_rule(10)\} \(H\) \{AnswerFormatHelp("numbers") \} $BR -\(L_{33}=\) \{ans_rule(10)\} \(H\) \{AnswerFormatHelp("numbers") \} $BR -\(L_{12}=L_{21}=\) \{ans_rule(10)\} \(H\) \{AnswerFormatHelp("numbers") \} $BR -\(L_{13}=L_{31}=\) \{ans_rule(10)\} \(H\) \{AnswerFormatHelp("numbers") \} +\(L_{11}=\) \{ans_rule(10)\} \(H\) \{helpLink("numbers") \} $BR +\(L_{22}=\) \{ans_rule(10)\} \(H\) \{helpLink("numbers") \} $BR +\(L_{33}=\) \{ans_rule(10)\} \(H\) \{helpLink("numbers") \} $BR +\(L_{12}=L_{21}=\) \{ans_rule(10)\} \(H\) \{helpLink("numbers") \} $BR +\(L_{13}=L_{31}=\) \{ans_rule(10)\} \(H\) \{helpLink("numbers") \} $BR -\(L_{23}=L_{32}=\) \{ans_rule(10)\} \(H\) \{AnswerFormatHelp("numbers") \} $PAR +\(L_{23}=L_{32}=\) \{ans_rule(10)\} \(H\) \{helpLink("numbers") \} $PAR B. The total energy stored in the magnetic field.$BR -\(W_{total}=\) \{ans_rule(10)\} \(J\) \{AnswerFormatHelp("numbers") \} $PAR +\(W_{total}=\) \{ans_rule(10)\} \(J\) \{helpLink("numbers") \} $PAR C. If the current through both coils is \(i=$I1 sin($Omg t) A\). What are the voltages across individual coils? $BR -\(emf_{1}=\) \{ans_rule(30)\} \(V\) \{AnswerFormatHelp("formula") \} $BR -\(emf_{2}=\) \{ans_rule(30)\} \(V\) \{AnswerFormatHelp("formula") \} $BR -\(emf_{3}=\) \{ans_rule(30)\} \(V\) \{AnswerFormatHelp("formula") \} $BR +\(emf_{1}=\) \{ans_rule(30)\} \(V\) \{helpLink("formula") \} $BR +\(emf_{2}=\) \{ans_rule(30)\} \(V\) \{helpLink("formula") \} $BR +\(emf_{3}=\) \{ans_rule(30)\} \(V\) \{helpLink("formula") \} $BR @@ -159,8 +159,8 @@ Since the permeability is infinite for the core, we only need to consider the pe Part b) $BR Energy in the coils: $BR \(W_1=\frac{1}{2}L_{11}I^2=$W1 J\) $BR -\(W_2=\frac{1}{2}L_{22}I^2=$W2 J\) $BR -\(W_3=\frac{1}{2}L_{33}I^2=$W2 J\) $BR +\(W_2=\frac{1}{2}L_{22}I^2=$W2 J\) $BR +\(W_3=\frac{1}{2}L_{33}I^2=$W2 J\) $BR \(W_{12}=\frac{1}{2}L_{12}I_1 I_2 \) $BR \(W_{21}=\frac{1}{2}L_{21}I_2 I_1 \) $BR @@ -189,4 +189,4 @@ Part c) $BR END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/NCSU/Power/ECE305_HW4_P01_White.pg b/Contrib/NCSU/Power/ECE305_HW4_P01_White.pg index 4e5a7d2b28..16cc07ca24 100644 --- a/Contrib/NCSU/Power/ECE305_HW4_P01_White.pg +++ b/Contrib/NCSU/Power/ECE305_HW4_P01_White.pg @@ -28,7 +28,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -39,7 +39,7 @@ Context("Complex"); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.5f#"; +Context()->{format}{number} = "%.5f#"; #Initialize element values, to be changed for each question $NP=Real(random(350,500,50)); @@ -69,17 +69,17 @@ BEGIN_TEXT A generator supplies an ideal transformer that has $NP turns on the primary and $NS turns on the secondary. The load voltage is \( $Vld V (RMS)\); the load impedance is \($modZld \angle $argZld ^{\circ}\). $BR Part a) $BR -\(V_{primary} =\) \{ans_rule(10)\} \(\angle\) \{ans_rule(10)\} \(^{\circ} V_{rms}\) \{AnswerFormatHelp("numbers") \}$BR +\(V_{primary} =\) \{ans_rule(10)\} \(\angle\) \{ans_rule(10)\} \(^{\circ} V_{rms}\) \{helpLink("numbers") \}$BR -\(V_{secondary} =\) \{ans_rule(10)\} \(\angle\) \{ans_rule(10)\} \(^{\circ} V_{rms}\) \{AnswerFormatHelp("numbers") \}$PAR +\(V_{secondary} =\) \{ans_rule(10)\} \(\angle\) \{ans_rule(10)\} \(^{\circ} V_{rms}\) \{helpLink("numbers") \}$PAR Part b) $BR -\(I_{primary} =\) \{ans_rule(10)\} \(\angle\) \{ans_rule(10)\} \(^{\circ} A_{rms}\) \{AnswerFormatHelp("numbers") \}$BR +\(I_{primary} =\) \{ans_rule(10)\} \(\angle\) \{ans_rule(10)\} \(^{\circ} A_{rms}\) \{helpLink("numbers") \}$BR -\(I_{secondary} =\) \{ans_rule(10)\} \(\angle\) \{ans_rule(10)\} \(^{\circ} A_{rms}\) \{AnswerFormatHelp("numbers") \}$PAR +\(I_{secondary} =\) \{ans_rule(10)\} \(\angle\) \{ans_rule(10)\} \(^{\circ} A_{rms}\) \{helpLink("numbers") \}$PAR Part c) $BR -\(Z_{primary} =\) \{ans_rule(10)\} \(\angle\) \{ans_rule(10)\} \(^{\circ} \Omega \) \{AnswerFormatHelp("numbers") \}$BR +\(Z_{primary} =\) \{ans_rule(10)\} \(\angle\) \{ans_rule(10)\} \(^{\circ} \Omega \) \{helpLink("numbers") \}$BR $PAR @@ -129,8 +129,8 @@ $PAR \(Z_{primary}=Z_{secondary} \frac{$NP^2}{$NS^2}=$modZldp \angle $argZldp ^{\circ} \Omega \) $BR -$BR +$BR END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/NCSU/Power/ECE305_HW4_P02_White.pg b/Contrib/NCSU/Power/ECE305_HW4_P02_White.pg index e4718dfbed..4993bca5ff 100644 --- a/Contrib/NCSU/Power/ECE305_HW4_P02_White.pg +++ b/Contrib/NCSU/Power/ECE305_HW4_P02_White.pg @@ -29,7 +29,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -39,11 +39,11 @@ TEXT(beginproblem()); Context("Complex"); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.5f#"; +Context()->{format}{number} = "%.5f#"; #Initialize element values, to be changed for each question -$Pva =random(5,15,1); #kVA -$Vpr=1000; +$Pva =random(5,15,1); #kVA +$Vpr=1000; $Vsec=500; $Freq=60; $R1=random(1.5,3,0.1); @@ -105,7 +105,7 @@ $grapha->arrowTo($i1x,$i1y,"blue",1); $grapha->lb('reset'); $grapha->lb(new Label($i1x,$i1y,"Vector A",'blue','left','top')); $grapha->lb(new Label($i2x,$i2y,"Vector B",'blue','right','bottom')); -$figa = image(insertGraph($grapha),width => 400,height => 250,tex_size => 400); +$figa = image(insertGraph($grapha),width => 400,height => 250,tex_size => 400); $popupAa = PopUp(["?", "i1", "i2","V1", "V2","iC", "im"], "V1"); $popupAb = PopUp(["?", "i1", "i2","V1", "V2","iC", "im"], "i1"); $popupAc = PopUp(["?", "i1", "i2","V1", "V2","iC", "im"], "i2"); @@ -116,30 +116,30 @@ BEGIN_TEXT $PAR A transformer is rated \( $Pva kVA\), \($Vpr-$Vsec V \), \($Freq Hz \). The equivalent circuit parameters are found to be: $BR -The primary impedance is \( R_1 =$R1 \Omega; X_1=$X1 \Omega \); $BR +The primary impedance is \( R_1 =$R1 \Omega; X_1=$X1 \Omega \); $BR The secondary impedance is \( R_2 =$R2 \Omega; X_2=$X2 \Omega \); $BR The exciting admittance is \( G_c =$Gc \mu S; B_m=$Bm \mu S \); $PAR -Use the approximate nonideal model ("cantilever" model) discussed in class to solve this problem. Draw your own equivalent circuit diagram on a piece of paper following the labelling convention used in class, and be sure that you can draw the equivalent diagram in the exams. +Use the approximate nonideal model ("cantilever" model) discussed in class to solve this problem. Draw your own equivalent circuit diagram on a piece of paper following the labelling convention used in class, and be sure that you can draw the equivalent diagram in the exams. $PAR a) What is the primary voltage if the transformer delivers rated kVA, \($pf \) P.F. leading, at rated voltage to a load. $BR -\(\tilde{V}_{1} =\) \{ans_rule(10)\} \(\angle\) \{ans_rule(10)\} \(^{\circ} V\). \{AnswerFormatHelp("numbers") \}$PAR +\(\tilde{V}_{1} =\) \{ans_rule(10)\} \(\angle\) \{ans_rule(10)\} \(^{\circ} V\). \{helpLink("numbers") \}$PAR b)The plot below represents the phaser diagram for the circuit with horizontal axis as the reference for voltage \( \tilde{V}_2 \).$BR \{image("ECE305_HW4_2_White_P1.png",height=>250, width=>300)\} $BR $BR Note that the phasers in the diagram are not in scale but the relative phase and magnitude relationship between the phasers are maintained. Denote \( \tilde{V}_1 \) as "V1", \( \tilde{i}_1 \) as "i1", and \( \tilde{i}_m \) as "im" etc.. Answer the following questions about the phasor diagram. $BR -Vector \( A \) represents \{ $popupAa ->menu() \}. $BR +Vector \( A \) represents \{ $popupAa ->menu() \}. $BR Vector \( B \) represents \{ $popupAb ->menu() \}. $BR Vector \( C \) represents \{ $popupAc ->menu() \}. $BR Vector \( D \) represents \{ $popupAd ->menu() \}. $BR Be sure you can draw the phaser diagram if required in the exam. $PAR c) Calculate the net hysteresis and eddy-current loss $PAR -\(P_{loss} =\) \{ans_rule(10)\} \( W\). \{AnswerFormatHelp("numbers") \} $BR +\(P_{loss} =\) \{ans_rule(10)\} \( W\). \{helpLink("numbers") \} $BR d) Calculate the vars required to setup the core field $PAR -\(Q_{mag} =\) \{ans_rule(10)\} \( VAr\). \{AnswerFormatHelp("numbers") \} $BR +\(Q_{mag} =\) \{ans_rule(10)\} \( VAr\). \{helpLink("numbers") \} $BR e) Calculate the vars required to setup the leakage field $PAR -\(Q_{leak} =\) \{ans_rule(10)\} \(VAr\). \{AnswerFormatHelp("numbers") \} $PAR +\(Q_{leak} =\) \{ans_rule(10)\} \(VAr\). \{helpLink("numbers") \} $PAR f) Calculate the efficiency of the transformer at rated kVA, \($pf \) P.F. leading. $BR -\( \eta =\) \{ans_rule(10)\} \(%\). \{AnswerFormatHelp("numbers") \} $BR +\( \eta =\) \{ans_rule(10)\} \(%\). \{helpLink("numbers") \} $BR $PAR @@ -194,4 +194,4 @@ Based on the phase relationship, it is obvious that Vector A is \( \tilde{V}_2\) END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/NCSU/Power/ECE305_HW4_P03_White.pg b/Contrib/NCSU/Power/ECE305_HW4_P03_White.pg index f2525f988f..b0220f6464 100644 --- a/Contrib/NCSU/Power/ECE305_HW4_P03_White.pg +++ b/Contrib/NCSU/Power/ECE305_HW4_P03_White.pg @@ -28,7 +28,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -39,7 +39,7 @@ Context("Complex"); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.5f#"; +Context()->{format}{number} = "%.5f#"; #Initialize element values, to be changed for each question $Voc=random(3,5,0.5); #kV @@ -97,10 +97,10 @@ $PAR A $VA kVA, $Vp:$Vs kV, $Fv Hz transformer has the following open-circuit/short-circuit ratings: $BR OC: $Voc kV, $Ioc A, $Poc kW $BR SC: $Vsc V, $Isc A, $Psc kW. $BR -A. The \{ $popupOC->menu() \} side of the transformer is open-circuited for the open-circuit test. $BR -B. The \{ $popupSC->menu() \} side of the transformer is short-circuited for the short-circuit test. $BR -C. The primary voltage if the transformer delivers rated kVA, rated voltage, at $PF PF lagging is \{ans_rule(10)\} \(\angle\) \{ans_rule(10)\} \(^{\circ} kV\) \{AnswerFormatHelp("numbers") \}$BR -D. At the above load, the efficiency of the transformer is \{ans_rule(10)\} \(%\) and the voltage regulation is \{ans_rule(10)\} \(%\). \{AnswerFormatHelp("numbers") \} +A. The \{ $popupOC->menu() \} side of the transformer is open-circuited for the open-circuit test. $BR +B. The \{ $popupSC->menu() \} side of the transformer is short-circuited for the short-circuit test. $BR +C. The primary voltage if the transformer delivers rated kVA, rated voltage, at $PF PF lagging is \{ans_rule(10)\} \(\angle\) \{ans_rule(10)\} \(^{\circ} kV\) \{helpLink("numbers") \}$BR +D. At the above load, the efficiency of the transformer is \{ans_rule(10)\} \(%\) and the voltage regulation is \{ans_rule(10)\} \(%\). \{helpLink("numbers") \} END_TEXT Context()->normalStrings; @@ -168,8 +168,8 @@ By on KVL: $BR -$BR +$BR END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/NCSU/Power/ECE305_HW4_P04_White.pg b/Contrib/NCSU/Power/ECE305_HW4_P04_White.pg index ea35dac917..612fee9e09 100644 --- a/Contrib/NCSU/Power/ECE305_HW4_P04_White.pg +++ b/Contrib/NCSU/Power/ECE305_HW4_P04_White.pg @@ -28,7 +28,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -39,11 +39,11 @@ Context("Complex"); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.5f#"; +Context()->{format}{number} = "%.5f#"; #Initialize element values, to be changed for each question -$Pva =random(800,1500,100); #VA -$Vpr=240; +$Pva =random(800,1500,100); #VA +$Vpr=240; $Vsec=120; $Voc=$Vsec; $ioc=random(0.15,0.3,0.01); #A @@ -54,7 +54,7 @@ $Psc=random(9,15,0.1); #W $pf=random(0.75,0.85,0.01); #W ## Debugging Code Parameters From Textbook -#$Pva =1000;$ioc=0.2;$Poc=5.2;$Vsc=10.8; $isc=4.15;$Psc=11.8;$pf=0.8; +#$Pva =1000;$ioc=0.2;$Poc=5.2;$Vsc=10.8; $isc=4.15;$Psc=11.8;$pf=0.8; # Answer calculation #Part a) @@ -107,22 +107,22 @@ A \($Pva\)-kVA, \($Vpr/$Vsec\)-V transformer has been tested to determine its eq Draw your own equivalent circuit diagram on a piece of paper following the labelling convention used in class, and be sure that you can draw the equivalent diagram in the exams. $PAR (a) Find the equivalent circuit parameters for this transformer referred to the low-voltage side of the transformer: $BR - \( R_c=\)\{ans_rule(10)\} \(k \Omega\). \{AnswerFormatHelp("numbers") \} $BR - \( X_m=\)\{ans_rule(10)\} \(k \Omega\). \{AnswerFormatHelp("numbers") \}$BR - \( R=\)\{ans_rule(10)\} \(\Omega\). \{AnswerFormatHelp("numbers") \}$BR - \( X=\)\{ans_rule(10)\} \(\Omega\). \{AnswerFormatHelp("numbers") \}$BR + \( R_c=\)\{ans_rule(10)\} \(k \Omega\). \{helpLink("numbers") \} $BR + \( X_m=\)\{ans_rule(10)\} \(k \Omega\). \{helpLink("numbers") \}$BR + \( R=\)\{ans_rule(10)\} \(\Omega\). \{helpLink("numbers") \}$BR + \( X=\)\{ans_rule(10)\} \(\Omega\). \{helpLink("numbers") \}$BR $PAR (b) Find the equivalent circuit for this transformer in per-unit: $BR - \( R_{c,pu}=\)\{ans_rule(10)\} \(P.U.\)\{AnswerFormatHelp("numbers") \} $BR - \( X_{m,pu}=\)\{ans_rule(10)\}\(P.U.\) \{AnswerFormatHelp("numbers") \}$BR - \( R_{pu}=\)\{ans_rule(10)\}\(P.U.\) \{AnswerFormatHelp("numbers") \}$BR - \( X_{pu}=\)\{ans_rule(10)\}\(P.U.\) \{AnswerFormatHelp("numbers") \}$BR + \( R_{c,pu}=\)\{ans_rule(10)\} \(P.U.\)\{helpLink("numbers") \} $BR + \( X_{m,pu}=\)\{ans_rule(10)\}\(P.U.\) \{helpLink("numbers") \}$BR + \( R_{pu}=\)\{ans_rule(10)\}\(P.U.\) \{helpLink("numbers") \}$BR + \( X_{pu}=\)\{ans_rule(10)\}\(P.U.\) \{helpLink("numbers") \}$BR $PAR (c) Calculate the voltage regulation at rated load conditions for (i) \($pf\) PF leading and (ii) \($pf\) PF lagging. Do this using per unit calculations: $BR -\( V.R._{$pf leading} =\)\{ans_rule(10)\}. \{AnswerFormatHelp("numbers") \}$BR -\( V.R._{$pf lagging} =\)\{ans_rule(10)\}. \{AnswerFormatHelp("numbers") \}$PAR +\( V.R._{$pf leading} =\)\{ans_rule(10)\}. \{helpLink("numbers") \}$BR +\( V.R._{$pf lagging} =\)\{ans_rule(10)\}. \{helpLink("numbers") \}$PAR (d) Determine the transformer's efficiency at rated load conditions at \($pf\) PF lagging $BR -\( \eta =\)\{ans_rule(10)\} \(%\). \{AnswerFormatHelp("numbers") \}$BR +\( \eta =\)\{ans_rule(10)\} \(%\). \{helpLink("numbers") \}$BR $R2test END_TEXT Context()->normalStrings; @@ -189,4 +189,4 @@ $PAR END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/NCSU/Power/ECE305_HW4_P06_White.pg b/Contrib/NCSU/Power/ECE305_HW4_P06_White.pg index f7fac8d3be..c98904d5f6 100644 --- a/Contrib/NCSU/Power/ECE305_HW4_P06_White.pg +++ b/Contrib/NCSU/Power/ECE305_HW4_P06_White.pg @@ -29,7 +29,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -39,10 +39,10 @@ TEXT(beginproblem()); Context("Complex"); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.5f#"; +Context()->{format}{number} = "%.5f#"; #Initialize element values, to be changed for each question -$Pva =random(45,60,1); #kVA +$Pva =random(45,60,1); #kVA $Vp=7200; $Vs=240; $Z=random(2,3,0.1); @@ -74,11 +74,11 @@ X/R: $Ratio $BR Determine the following: $BR Note in this question, you may use either 'i' or 'j' to express \(\sqrt{-1}\) $PAR -A. Transformer complex impedance looking into the primary side is \{ans_rule(10)\} \( \Omega \). \{AnswerFormatHelp("numbers") \} $BR +A. Transformer complex impedance looking into the primary side is \{ans_rule(10)\} \( \Omega \). \{helpLink("numbers") \} $BR + +B. Transformer complex impedance looking into the secondary side is \{ans_rule(10)\} \( m \Omega \). \{helpLink("numbers") \} $BR -B. Transformer complex impedance looking into the secondary side is \{ans_rule(10)\} \( m \Omega \). \{AnswerFormatHelp("numbers") \} $BR - -C. The maximum current the transformer can deliver under short-circuit conditions assuming an infinite bus on the primary side is \{ans_rule(10)\} \( kA \). \{AnswerFormatHelp("numbers") \} $BR +C. The maximum current the transformer can deliver under short-circuit conditions assuming an infinite bus on the primary side is \{ans_rule(10)\} \( kA \). \{helpLink("numbers") \} $BR END_TEXT Context()->normalStrings; @@ -113,4 +113,4 @@ $PAR END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/NCSU/Power/ECE305_HW5_P01_02_White.pg b/Contrib/NCSU/Power/ECE305_HW5_P01_02_White.pg index a524e52a5b..8bed607beb 100644 --- a/Contrib/NCSU/Power/ECE305_HW5_P01_02_White.pg +++ b/Contrib/NCSU/Power/ECE305_HW5_P01_02_White.pg @@ -28,7 +28,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", "scaffold.pl", ); @@ -39,7 +39,7 @@ TEXT(beginproblem()); Context("Complex"); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.5f#"; +Context()->{format}{number} = "%.5f#"; #Initialize element values, to be changed for each question $V1=random(10,14,0.5); #kV @@ -194,46 +194,46 @@ A delta (high)-delta (low) three-phase transformer bank consists of three-indivi $V1 - $V2 kV $BR $S1 kVA $BR Req2 = \( $Req2 \Omega\) ; Xeq2 = \($Xeq2 \Omega \) [referred to the low side] $PAR -(a) Determine the three-phase bank power and voltage ratings. $BR -\(S_{rat} =\) \{ans_rule(10)\} \( kVA\). \{AnswerFormatHelp("numbers") \} $BR -\(V_{pri} =\)\{ans_rule(10)\} \( kV\). \{AnswerFormatHelp("numbers") \} $BR -\(V_{sec} =\)\{ans_rule(10)\} \( kV\). \{AnswerFormatHelp("numbers") \} $PAR +(a) Determine the three-phase bank power and voltage ratings. $BR +\(S_{rat} =\) \{ans_rule(10)\} \( kVA\). \{helpLink("numbers") \} $BR +\(V_{pri} =\)\{ans_rule(10)\} \( kV\). \{helpLink("numbers") \} $BR +\(V_{sec} =\)\{ans_rule(10)\} \( kV\). \{helpLink("numbers") \} $PAR (b) Sketch the per-phase equivalent circuit to the high-voltage side on a piece of paper and find the numerical values according to the labelling convention used in class $BR -\(R_{eq,pri} =\) \{ans_rule(10)\} \( \Omega \). \{AnswerFormatHelp("numbers") \} $BR -\(X_{eq,pri} =\)\{ans_rule(10)\} \(\Omega\). \{AnswerFormatHelp("numbers") \} $BR +\(R_{eq,pri} =\) \{ans_rule(10)\} \( \Omega \). \{helpLink("numbers") \} $BR +\(X_{eq,pri} =\)\{ans_rule(10)\} \(\Omega\). \{helpLink("numbers") \} $BR Make sure you can sketch the circuit in the exam $PAR (c) Sketch the per-phase equivalent circuit to the low-voltage side on a piece of paper and find the numerical values according to the labelling convention used in class $BR -\(R_{eq,sec} =\) \{ans_rule(10)\} \( \Omega \). \{AnswerFormatHelp("numbers") \} $BR -\(X_{eq,sec} =\)\{ans_rule(10)\} \(\Omega\). \{AnswerFormatHelp("numbers") \} $BR +\(R_{eq,sec} =\) \{ans_rule(10)\} \( \Omega \). \{helpLink("numbers") \} $BR +\(X_{eq,sec} =\)\{ans_rule(10)\} \(\Omega\). \{helpLink("numbers") \} $BR Make sure you can sketch the circuit in the exam $PAR (d) The transformer bank is delivering rated kVA, rated voltage, at a power factor of $pf lagging. $BR -\(|V_{in,line}| = \) \{ans_rule(10)\} \( kV \) \{AnswerFormatHelp("numbers") \} +\(|V_{in,line}| = \) \{ans_rule(10)\} \( kV \) \{helpLink("numbers") \} $PAR -(e) In the condition described in (d), the per-phase load impedance as seen from the high voltage side is \{ans_rule(10)\} \(\angle\) \{ans_rule(10)\} \( ^{\circ} \Omega \) \{AnswerFormatHelp("numbers") \} $PAR +(e) In the condition described in (d), the per-phase load impedance as seen from the high voltage side is \{ans_rule(10)\} \(\angle\) \{ans_rule(10)\} \( ^{\circ} \Omega \) \{helpLink("numbers") \} $PAR (f) The transformer bank efficiency in the condition described in (d) is : $BR -\(\eta = \) \{ans_rule(10)\} \( % \) \{AnswerFormatHelp("numbers") \} $PAR +\(\eta = \) \{ans_rule(10)\} \( % \) \{helpLink("numbers") \} $PAR (g) Determine the voltage regulation assuming a power factor of $pf lagging $BR -\(V.R. = \) \{ans_rule(10)\} \( %\) \{AnswerFormatHelp("numbers") \} $PAR +\(V.R. = \) \{ans_rule(10)\} \( %\) \{helpLink("numbers") \} $PAR -(h) Assume that the load is changed to a leading power factor with all other values unchanged, the load impedance as seem from the high voltage side is \{ans_rule(10)\} \(\angle\) \{ans_rule(10)\} \( ^{\circ} \Omega \) \{AnswerFormatHelp("numbers") \} $PAR +(h) Assume that the load is changed to a leading power factor with all other values unchanged, the load impedance as seem from the high voltage side is \{ans_rule(10)\} \(\angle\) \{ans_rule(10)\} \( ^{\circ} \Omega \) \{helpLink("numbers") \} $PAR (i) The transformer bank efficiency in the condition described in (h) is : $BR -\(\eta = \) \{ans_rule(10)\} \( % \) \{AnswerFormatHelp("numbers") \} $PAR +\(\eta = \) \{ans_rule(10)\} \( % \) \{helpLink("numbers") \} $PAR (j) Under the conditions in Part H above, what is the voltage regulation? $BR -\(V.R. = \) \{ans_rule(10)\} \( %\) \{AnswerFormatHelp("numbers") \} $PAR +\(V.R. = \) \{ans_rule(10)\} \( %\) \{helpLink("numbers") \} $PAR (k) What is the transformer bank impedance in per-unit? $BR -\(Z_{pu} =\)\{ans_rule(10)\} \(%\). \{AnswerFormatHelp("numbers") \} $PAR +\(Z_{pu} =\)\{ans_rule(10)\} \(%\). \{helpLink("numbers") \} $PAR + - END_TEXT @@ -309,45 +309,45 @@ $V1 - $V2 kV $BR $S1 kVA $BR Pcore = $Pc kW; Qcore = $Qc kVARs [obtained from open circuit test at rated voltage] $BR Req2 = \( $Req2 \Omega\) ; Xeq2 = \($Xeq2 \Omega \) [referred to the low side] $PAR -(a) Determine the three-phase bank power and voltage ratings. $BR -\(S_{rat} =\) \{ans_rule(10)\} \( kVA\). \{AnswerFormatHelp("numbers") \} $BR -\(V_{pri} =\)\{ans_rule(10)\} \( kV\). \{AnswerFormatHelp("numbers") \} $BR -\(V_{sec} =\)\{ans_rule(10)\} \( kV\). \{AnswerFormatHelp("numbers") \} $PAR +(a) Determine the three-phase bank power and voltage ratings. $BR +\(S_{rat} =\) \{ans_rule(10)\} \( kVA\). \{helpLink("numbers") \} $BR +\(V_{pri} =\)\{ans_rule(10)\} \( kV\). \{helpLink("numbers") \} $BR +\(V_{sec} =\)\{ans_rule(10)\} \( kV\). \{helpLink("numbers") \} $PAR (b) Sketch the per-phase equivalent circuit to the high-voltage side on a piece of paper and find the numerical values according to the labelling convention used in class $BR -\(R_{eq,pri} =\) \{ans_rule(10)\} \( \Omega \). \{AnswerFormatHelp("numbers") \} $BR -\(X_{eq,pri} =\)\{ans_rule(10)\} \(\Omega\). \{AnswerFormatHelp("numbers") \} $BR +\(R_{eq,pri} =\) \{ans_rule(10)\} \( \Omega \). \{helpLink("numbers") \} $BR +\(X_{eq,pri} =\)\{ans_rule(10)\} \(\Omega\). \{helpLink("numbers") \} $BR Make sure you can sketch the circuit in the exam $PAR (c) Sketch the per-phase equivalent circuit to the low-voltage side on a piece of paper and find the numerical values according to the labelling convention used in class $BR -\(R_{eq,sec} =\) \{ans_rule(10)\} \( \Omega \). \{AnswerFormatHelp("numbers") \} $BR -\(X_{eq,sec} =\)\{ans_rule(10)\} \(\Omega\). \{AnswerFormatHelp("numbers") \} $BR +\(R_{eq,sec} =\) \{ans_rule(10)\} \( \Omega \). \{helpLink("numbers") \} $BR +\(X_{eq,sec} =\)\{ans_rule(10)\} \(\Omega\). \{helpLink("numbers") \} $BR Make sure you can sketch the circuit in the exam $PAR (d) The transformer bank is delivering rated kVA, rated voltage, at a power factor of $pf lagging. $BR -\(|V_{in,line}| = \) \{ans_rule(10)\} \( kV \) \{AnswerFormatHelp("numbers") \} +\(|V_{in,line}| = \) \{ans_rule(10)\} \( kV \) \{helpLink("numbers") \} $PAR -(e) In the condition described in (d), the per-phase load impedance as seen from the high voltage side is \{ans_rule(10)\} \(\angle\) \{ans_rule(10)\} \( ^{\circ} \Omega \) \{AnswerFormatHelp("numbers") \} $PAR +(e) In the condition described in (d), the per-phase load impedance as seen from the high voltage side is \{ans_rule(10)\} \(\angle\) \{ans_rule(10)\} \( ^{\circ} \Omega \) \{helpLink("numbers") \} $PAR (f) The transformer bank efficiency in the condition described in (d) is : $BR -\(\eta = \) \{ans_rule(10)\} \( % \) \{AnswerFormatHelp("numbers") \} $PAR +\(\eta = \) \{ans_rule(10)\} \( % \) \{helpLink("numbers") \} $PAR (g) Determine the voltage regulation assuming a power factor of $pf lagging $BR -\(V.R. = \) \{ans_rule(10)\} \( %\) \{AnswerFormatHelp("numbers") \} $BR +\(V.R. = \) \{ans_rule(10)\} \( %\) \{helpLink("numbers") \} $BR $PAR -(h) Assume that the load is changed to a leading power factor with all other values unchanged, the load impedance as seem from the high voltage side is \{ans_rule(10)\} \(\angle\) \{ans_rule(10)\} \( ^{\circ} \Omega \) \{AnswerFormatHelp("numbers") \} $PAR +(h) Assume that the load is changed to a leading power factor with all other values unchanged, the load impedance as seem from the high voltage side is \{ans_rule(10)\} \(\angle\) \{ans_rule(10)\} \( ^{\circ} \Omega \) \{helpLink("numbers") \} $PAR (i) The transformer bank efficiency in the condition described in (h) is : $BR -\(\eta = \) \{ans_rule(10)\} \( % \) \{AnswerFormatHelp("numbers") \} $PAR +\(\eta = \) \{ans_rule(10)\} \( % \) \{helpLink("numbers") \} $PAR (j) Under the conditions in Part H above, what is the voltage regulation? $BR -\(V.R. = \) \{ans_rule(10)\} \( %\) \{AnswerFormatHelp("numbers") \} $PAR +\(V.R. = \) \{ans_rule(10)\} \( %\) \{helpLink("numbers") \} $PAR (k) What is the transformer bank impedance in per-unit? $BR -\(Z_{pu} =\)\{ans_rule(10)\} \(%\). \{AnswerFormatHelp("numbers") \} $PAR +\(Z_{pu} =\)\{ans_rule(10)\} \(%\). \{helpLink("numbers") \} $PAR Lastly compare the results between the two types of configurations. END_TEXT @@ -446,4 +446,4 @@ Part e) $BR END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/NCSU/Power/ECE305_HW6_P01_White.pg b/Contrib/NCSU/Power/ECE305_HW6_P01_White.pg index 5d342215a8..059365df86 100644 --- a/Contrib/NCSU/Power/ECE305_HW6_P01_White.pg +++ b/Contrib/NCSU/Power/ECE305_HW6_P01_White.pg @@ -29,7 +29,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -43,7 +43,7 @@ tolType => "absolute", ); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; #Initialize element values, to be changed for each question $R=random(0.2,0.8,0.1); @@ -76,14 +76,14 @@ A simple conductor with a resistance between the end points of \($R \Omega\) is \{image("ECE305_HW6_1_White_P1.png",height=>150, width=>300)\} $BR $PAR -a)\(F_{Lorentz}=\)\{ans_rule(10)\} \(N \) \{AnswerFormatHelp("numbers") \} $BR +a)\(F_{Lorentz}=\)\{ans_rule(10)\} \(N \) \{helpLink("numbers") \} $BR b)The direction of the Lorentz force is \{ $popupB ->menu() \} $BR -c)The Faraday emf is \{ans_rule(10)\} \(V \) \{AnswerFormatHelp("numbers") \} $BR -d)The direction of the Faraday emf is \{ $popupD ->menu() \} $BR +c)The Faraday emf is \{ans_rule(10)\} \(V \) \{helpLink("numbers") \} $BR +d)The direction of the Faraday emf is \{ $popupD ->menu() \} $BR e)This machine is a \{ $popupE ->menu() \} $BR -f) The electrical power involved in this process is \{ans_rule(10)\} \(W \) \{AnswerFormatHelp("numbers") \} $BR -g)This power is \{ $popupG ->menu() \} by the machine $BR -h)The mechanical power involved in this process is \{ans_rule(10)\} \(W \) \{AnswerFormatHelp("numbers") \} $BR +f) The electrical power involved in this process is \{ans_rule(10)\} \(W \) \{helpLink("numbers") \} $BR +g)This power is \{ $popupG ->menu() \} by the machine $BR +h)The mechanical power involved in this process is \{ans_rule(10)\} \(W \) \{helpLink("numbers") \} $BR i)The machine is \{ $popupI ->menu() \} the mechanical power $BR END_TEXT @@ -128,4 +128,4 @@ As a motor, the mechanical power is supplied by the machine. END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/NCSU/Power/ECE305_HW6_P02_White.pg b/Contrib/NCSU/Power/ECE305_HW6_P02_White.pg index 4235aeb074..8ba8fcd6b3 100644 --- a/Contrib/NCSU/Power/ECE305_HW6_P02_White.pg +++ b/Contrib/NCSU/Power/ECE305_HW6_P02_White.pg @@ -28,7 +28,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -39,7 +39,7 @@ Context("Complex"); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.5f#"; +Context()->{format}{number} = "%.5f#"; #Initialize element values, to be changed for each question $Vs=random(20,50,5); @@ -61,11 +61,11 @@ $PAR The voltage induced in conductor moving in a uniform magnetic field is $Vs Volts when the velocity of the conductor is $Vel cm/s. Calculate the induced EMF when:$BR A. The field flux is increased by 15 percent. $BR -\(EMF =\) \{ans_rule(10)\} \(V\) \{AnswerFormatHelp("numbers") \}$BR +\(EMF =\) \{ans_rule(10)\} \(V\) \{helpLink("numbers") \}$BR B. The velocity is reduced by 30 percent. $BR -\(EMF =\) \{ans_rule(10)\} \(V\) \{AnswerFormatHelp("numbers") \}$BR +\(EMF =\) \{ans_rule(10)\} \(V\) \{helpLink("numbers") \}$BR C. The velocity is increased by 20 percent and the flux is reduced by 10 percent. $BR -\(EMF =\) \{ans_rule(10)\} \(V\) \{AnswerFormatHelp("numbers") \}$BR +\(EMF =\) \{ans_rule(10)\} \(V\) \{helpLink("numbers") \}$BR $PAR END_TEXT @@ -98,4 +98,4 @@ Part a) $emfa V $BR Part b) $emfb V $BR Part c) $emfc V END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/NCSU/Power/ECE305_HW6_P03_White.pg b/Contrib/NCSU/Power/ECE305_HW6_P03_White.pg index 57f698f722..eba9af8f90 100644 --- a/Contrib/NCSU/Power/ECE305_HW6_P03_White.pg +++ b/Contrib/NCSU/Power/ECE305_HW6_P03_White.pg @@ -28,7 +28,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -39,7 +39,7 @@ Context("Complex"); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.5f#"; +Context()->{format}{number} = "%.5f#"; #Initialize element values, to be changed for each question $Len=random(0.8,1.5,0.1); @@ -57,7 +57,7 @@ BEGIN_TEXT $PAR A single conductor $Len m long moves perpendicular to a uniform magnetic field of $Gau Gauss at a uniform velocity of $Vs m/s. What is the EMF inducted in the conductor? -\(EMF =\) \{ans_rule(10)\} \(V\) \{AnswerFormatHelp("numbers") \}$BR +\(EMF =\) \{ans_rule(10)\} \(V\) \{helpLink("numbers") \}$BR $PAR @@ -84,8 +84,8 @@ $BBOLD SOLUTION $EBOLD $PAR Gauss is the CGS units for flux density, in MKS it is Tesla, or \(1 Gauss= 10^{-4} Wb/m^2 (T) \). $BR Then \(emf=BLv=$Gau/10000 \cdot $Len \cdot $Vs=$emf V\) -$BR +$BR END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/NCSU/Power/ECE305_HW6_P05_White.pg b/Contrib/NCSU/Power/ECE305_HW6_P05_White.pg index 0bb6c4f3d3..cbc64565d9 100644 --- a/Contrib/NCSU/Power/ECE305_HW6_P05_White.pg +++ b/Contrib/NCSU/Power/ECE305_HW6_P05_White.pg @@ -29,7 +29,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -43,7 +43,7 @@ tolType => "absolute", ); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; #Initialize element values, to be changed for each question $R=random(0.2,0.8,0.1); @@ -78,27 +78,27 @@ A horizontal copper bar slides up and down along two perfectly conducting, frict \{image("ECE305_HW6_5_White_P1.png",height=>200, width=>150)\} $BR $PAR -A uniform flux density \(B=$B Wb/m^2 \), is directed into the screen. The length, resistance, and weight of the bar are given as: \(L=$Len m, R=$R \Omega, W=mg=$W N \). $BR +A uniform flux density \(B=$B Wb/m^2 \), is directed into the screen. The length, resistance, and weight of the bar are given as: \(L=$Len m, R=$R \Omega, W=mg=$W N \). $BR Answer the following questions about this system: $BR a) If the bar is to move upward at a constant velocity of 10.0 m/s,$BR - \(V\)=\{ans_rule(10)\} \(V \) \{AnswerFormatHelp("numbers") \} $BR - \(I\)=\{ans_rule(10)\} \(A \) \{AnswerFormatHelp("numbers") \} $BR - + \(V\)=\{ans_rule(10)\} \(V \) \{helpLink("numbers") \} $BR + \(I\)=\{ans_rule(10)\} \(A \) \{helpLink("numbers") \} $BR + b) How much energy does the battery supply in moving the bar up 1.0 m, $BR - \(W\)=\{ans_rule(10)\} \(J \) \{AnswerFormatHelp("numbers") \} $BR + \(W\)=\{ans_rule(10)\} \(J \) \{helpLink("numbers") \} $BR c) The following is the power diagram showing all powers in the system. $BR \{image("ECE305_HW6_5_White_P2.png",height=>200, width=>400)\} $BR Calculate the quantities of all power terms in the diagram. $PAR - \(P_{IN}\)=\{ans_rule(10)\} \(W \) \{AnswerFormatHelp("numbers") \} $BR - \(P_{Cu}\)=\{ans_rule(10)\} \(W \) \{AnswerFormatHelp("numbers") \} $BR - \(P_{E}\)=\{ans_rule(10)\} \(W \) \{AnswerFormatHelp("numbers") \} $BR - \(P_{Core}\)=\{ans_rule(10)\} \(W \) \{AnswerFormatHelp("numbers") \} $BR - \(P_{M}\)=\{ans_rule(10)\} \(W \) \{AnswerFormatHelp("numbers") \} $BR - \(P_{F,WI}\)=\{ans_rule(10)\} \(W \) \{AnswerFormatHelp("numbers") \} $BR - \(P_{OUT}\)=\{ans_rule(10)\} \(W \) \{AnswerFormatHelp("numbers") \} $BR - + \(P_{IN}\)=\{ans_rule(10)\} \(W \) \{helpLink("numbers") \} $BR + \(P_{Cu}\)=\{ans_rule(10)\} \(W \) \{helpLink("numbers") \} $BR + \(P_{E}\)=\{ans_rule(10)\} \(W \) \{helpLink("numbers") \} $BR + \(P_{Core}\)=\{ans_rule(10)\} \(W \) \{helpLink("numbers") \} $BR + \(P_{M}\)=\{ans_rule(10)\} \(W \) \{helpLink("numbers") \} $BR + \(P_{F,WI}\)=\{ans_rule(10)\} \(W \) \{helpLink("numbers") \} $BR + \(P_{OUT}\)=\{ans_rule(10)\} \(W \) \{helpLink("numbers") \} $BR + @@ -166,4 +166,4 @@ By inspecting the power diagram, the student should be able to identify the mean END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/NCSU/Power/ECE305_HW6_P06_White.pg b/Contrib/NCSU/Power/ECE305_HW6_P06_White.pg index 59f4d8cf45..0540739614 100644 --- a/Contrib/NCSU/Power/ECE305_HW6_P06_White.pg +++ b/Contrib/NCSU/Power/ECE305_HW6_P06_White.pg @@ -27,7 +27,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -38,18 +38,18 @@ Context("Complex"); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.5f#"; +Context()->{format}{number} = "%.5f#"; #Initialize element values, to be changed for each question -$B=random(0.5,1.5,0.1); -$Ts=random(0.1,0.5,0.1); +$B=random(0.5,1.5,0.1); +$Ts=random(0.1,0.5,0.1); #calculation $ans=Real(0); BEGIN_TEXT -A single turn loop of wire is linked to a magnetic flux of $B \(Wb/m^2 [T]\). If the flux decays linearly to zero in $Ts ms determine the average EMF induced in the loop is \{ans_rule(10)\} V. \{AnswerFormatHelp("numbers") \}$BR +A single turn loop of wire is linked to a magnetic flux of $B \(Wb/m^2 [T]\). If the flux decays linearly to zero in $Ts ms determine the average EMF induced in the loop is \{ans_rule(10)\} V. \{helpLink("numbers") \}$BR END_TEXT @@ -75,8 +75,8 @@ $PAR \{image("ECE305_HW6_6_White_P1.png",height=>300, width=>300)\} $BR -$BR +$BR END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/NCSU/Power/ECE305_HW7_White_P1.pg b/Contrib/NCSU/Power/ECE305_HW7_White_P1.pg index 8d4d210e77..0753d6e39a 100644 --- a/Contrib/NCSU/Power/ECE305_HW7_White_P1.pg +++ b/Contrib/NCSU/Power/ECE305_HW7_White_P1.pg @@ -28,7 +28,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -42,7 +42,7 @@ tolType => "absolute", ); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; #Initialize element values, to be changed for each question $Freq1=60; @@ -102,4 +102,4 @@ c) $BR END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/NCSU/Power/ECE305_HW7_White_P2.pg b/Contrib/NCSU/Power/ECE305_HW7_White_P2.pg index ebf4e2a839..2b0b4ff9ce 100644 --- a/Contrib/NCSU/Power/ECE305_HW7_White_P2.pg +++ b/Contrib/NCSU/Power/ECE305_HW7_White_P2.pg @@ -28,7 +28,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -42,7 +42,7 @@ tolType => "absolute", ); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; #Initialize element values, to be changed for each question $Freq1=60; @@ -57,7 +57,7 @@ $RPM=Real(120*$Freq1/$NP); BEGIN_TEXT -A synchronous generator with a rating of 988 kVA at 4160 Volts, $Freq1 Hz, delta connected, is +A synchronous generator with a rating of 988 kVA at 4160 Volts, $Freq1 Hz, delta connected, is driven by a small hydroelectric plant. The shaft speed of the generator is $RPM RPM. The generator has \{ans_rule(10)\} poles. END_TEXT @@ -84,4 +84,4 @@ $PAR END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/NCSU/Power/ECE305_HW7_White_P3.pg b/Contrib/NCSU/Power/ECE305_HW7_White_P3.pg index 0f4a768535..4d7bfde390 100644 --- a/Contrib/NCSU/Power/ECE305_HW7_White_P3.pg +++ b/Contrib/NCSU/Power/ECE305_HW7_White_P3.pg @@ -28,7 +28,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -42,7 +42,7 @@ tolType => "absolute", ); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; #Initialize element values, to be changed for each question $Freq1=60; @@ -139,4 +139,4 @@ Note: Positive \(\delta\) is used as cos function obscures the sign, draw the p END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/NCSU/Power/ECE305_HW7_White_P4.pg b/Contrib/NCSU/Power/ECE305_HW7_White_P4.pg index 81f380ce2a..f387e2108c 100644 --- a/Contrib/NCSU/Power/ECE305_HW7_White_P4.pg +++ b/Contrib/NCSU/Power/ECE305_HW7_White_P4.pg @@ -28,7 +28,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -42,7 +42,7 @@ tolType => "absolute", ); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; #Initialize element values, to be changed for each question $Fv=random(50,60,10); @@ -104,7 +104,7 @@ $grapha->lb(new Label($xVt/2,$yVt/2,"Vt",'blue','left','bottom')); $grapha->lb(new Label($xIL,$yIL,"A",'blue','left','bottom')); $grapha->lb(new Label($xEf/2,$yEf/2,"B",'blue','right','top')); $grapha->lb(new Label($xEf/2+$xVt/2,$yEf/2+$yVt/2,"C",'blue','right','bottom')); -$figa = image(insertGraph($grapha),width => 400,height => 250,tex_size => 200); +$figa = image(insertGraph($grapha),width => 400,height => 250,tex_size => 200); $popupia = PopUp(["?", "IL", "Ef","Neither"], "IL"); $popupib = PopUp(["?", "IL", "Ef", "Neither"], "Ef"); $popupic = PopUp(["?", "IL", "Ef", "Neither"], "Neither"); @@ -129,11 +129,11 @@ Vector \( C \) represents \{ $popupic ->menu() \} $BR And Vector C = \{ans_rule(10)\} \( \angle \) \{ans_rule(10)\} \( ^{ \circ } \) $PAR Note: The units should be in A or V in the answers. $PAR -B. If the mechanical loading in part 'A' is kept constant, and the rotor field excitation is changed, what is the minimum line current that can be draw? +B. If the mechanical loading in part 'A' is kept constant, and the rotor field excitation is changed, what is the minimum line current that can be draw? $BR - \( I_{a,min}= \) \{ans_rule(10)\} \( \angle \) \{ans_rule(10)\} \( ^{ \circ } A \) + \( I_{a,min}= \) \{ans_rule(10)\} \( \angle \) \{ans_rule(10)\} \( ^{ \circ } A \) $PAR -C. For the condition described in part 'B', \(I_{a,min}\) is in the direction of \{ $popupc ->menu() \} +C. For the condition described in part 'B', \(I_{a,min}\) is in the direction of \{ $popupc ->menu() \} END_TEXT Context()->normalStrings; @@ -187,7 +187,7 @@ Angle is \(\phi=-cos^{-1}($pf)=$phi^{\circ}\). Negative sign due to lagging $BR \(\tilde{I}_L=$modIL \angle $phi ^{\circ} A\) $BR Based on the energy flow of a motor, $BR \(-V_t \angle 0^{\circ}+\tilde{I}_L \cdot X_sj+ \tilde{E}_f=0\)$BR -\(E_f \angle \delta= V_t \angle 0^{\circ} - \tilde{I}_L \cdot X_s j=$Vtp \angle 0^{\circ}-$modIL \angle $phi ^{\circ} \cdot $Xs j=$modEf \angle $delta^{\circ} V\) +\(E_f \angle \delta= V_t \angle 0^{\circ} - \tilde{I}_L \cdot X_s j=$Vtp \angle 0^{\circ}-$modIL \angle $phi ^{\circ} \cdot $Xs j=$modEf \angle $delta^{\circ} V\) \(I_L \cdot X_s j=$modVC \angle $argVC^{\circ}\) @@ -207,4 +207,4 @@ This also indicates that \(\tilde{I}_{a,min} \) is in the direction of \(\tilde{ END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/NCSU/Power/ECE305_HW7_White_P5.pg b/Contrib/NCSU/Power/ECE305_HW7_White_P5.pg index 503bb07591..9bcdbf4e8a 100644 --- a/Contrib/NCSU/Power/ECE305_HW7_White_P5.pg +++ b/Contrib/NCSU/Power/ECE305_HW7_White_P5.pg @@ -28,7 +28,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", "niceTables.pl", ); @@ -43,7 +43,7 @@ tolType => "absolute", ); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; #Initialize element values, to be changed for each question $Fv=random(50,60,10); @@ -105,7 +105,7 @@ $grapha->lb(new Label($xVt/2,$yVt/2,"Vt",'blue','left','bottom')); $grapha->lb(new Label($xIL,$yIL,"A",'blue','left','bottom')); $grapha->lb(new Label($xEf/2,$yEf/2,"B",'blue','right','top')); $grapha->lb(new Label($xEf/2+$xVt/2,$yEf/2+$yVt/2,"C",'blue','right','bottom')); -$figa = image(insertGraph($grapha),width => 400,height => 250,tex_size => 200); +$figa = image(insertGraph($grapha),width => 400,height => 250,tex_size => 200); $popupia = PopUp(["?", "IL", "Ef","Neither"], "IL"); $popupib = PopUp(["?", "IL", "Ef", "Neither"], "Ef"); $popupic = PopUp(["?", "IL", "Ef", "Neither"], "Neither"); @@ -140,14 +140,14 @@ Note: The units should be in A or V in the answers. $PAR |Pie |- |Butter -|Ice cream +|Ice cream |} -B. If the mechanical loading in part 'A' is kept constant, and the rotor field excitation is changed, what is the minimum line current that can be draw? +B. If the mechanical loading in part 'A' is kept constant, and the rotor field excitation is changed, what is the minimum line current that can be draw? $BR - \( I_{a,min}= \) \{ans_rule(10)\} \( \angle \) \{ans_rule(10)\} \( ^{ \circ } A \) + \( I_{a,min}= \) \{ans_rule(10)\} \( \angle \) \{ans_rule(10)\} \( ^{ \circ } A \) $PAR -C. For the condition described in part 'B', \(I_{a,min}\) is in the direction of \{ $popupc ->menu() \} +C. For the condition described in part 'B', \(I_{a,min}\) is in the direction of \{ $popupc ->menu() \} END_TEXT Context()->normalStrings; @@ -201,7 +201,7 @@ Angle is \(\phi=-cos^{-1}($pf)=$phi^{\circ}\). Negative sign due to lagging $BR \(\tilde{I}_L=$modIL \angle $phi ^{\circ} A\) $BR Based on the energy flow of a motor, $BR \(-V_t \angle 0^{\circ}+\tilde{I}_L \cdot X_sj+ \tilde{E}_f=0\)$BR -\(E_f \angle \delta= V_t \angle 0^{\circ} - \tilde{I}_L \cdot X_s j=$Vtp \angle 0^{\circ}-$modIL \angle $phi ^{\circ} \cdot $Xs j=$modEf \angle $delta^{\circ} V\) +\(E_f \angle \delta= V_t \angle 0^{\circ} - \tilde{I}_L \cdot X_s j=$Vtp \angle 0^{\circ}-$modIL \angle $phi ^{\circ} \cdot $Xs j=$modEf \angle $delta^{\circ} V\) \(I_L \cdot X_s j=$modVC \angle $argVC^{\circ}\) @@ -221,4 +221,4 @@ This also indicates that \(\tilde{I}_{a,min} \) is in the direction of \(\tilde{ END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/NCSU/Power/ECE305_HW_01_Spr16_P01a.pg b/Contrib/NCSU/Power/ECE305_HW_01_Spr16_P01a.pg index 24035e733f..8c01a53bdb 100644 --- a/Contrib/NCSU/Power/ECE305_HW_01_Spr16_P01a.pg +++ b/Contrib/NCSU/Power/ECE305_HW_01_Spr16_P01a.pg @@ -24,7 +24,7 @@ loadMacros( "PGgraphmacros.pl", "extraAnswerEvaluators.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", "PGcourse.pl" ); @@ -46,7 +46,7 @@ Context()->flags->set( ); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.5f#"; +Context()->{format}{number} = "%.5f#"; #Initialize element values, to be changed for each question $T1v=random(2400,7200,800);#uS $SL01v=random(0.1,1,0.1); @@ -79,7 +79,7 @@ $grapha->lb(new Label(0,0,"(0,0)",'black','left','top')); $grapha->lb(new Label(0,$Pt1v,"$Pt1v",'black','left','top')); $grapha->lb(new Label(0,$LLM,"$LLM",'black','left','bottom')); $grapha->lb(new Label(0.1*$T1v ,$ULM,"f(t)",'black','left','top')); -$figa = image(insertGraph($grapha),width => 400,height => 250,tex_size => 200); +$figa = image(insertGraph($grapha),width => 400,height => 250,tex_size => 200); $Aavg=Real($Pt1v/2); $Arms=Real($Pt1v/sqrt(3)); @@ -99,10 +99,10 @@ For the waveform shown below, compute the following. Note that there are no unit $PAR $figa $BR $PAR -Average = \{ans_rule(10)\} \{ AnswerFormatHelp("numbers") \} $BR -RMS = \{ans_rule(10)\} \{ AnswerFormatHelp("numbers") \} $BR -Period = \{ans_rule(10)\} \( ms \) \{ AnswerFormatHelp("numbers") \} $BR -Frequency = \{ans_rule(10)\} \( kHz \) \{ AnswerFormatHelp("numbers") \} $BR +Average = \{ans_rule(10)\} \{ helpLink("numbers") \} $BR +RMS = \{ans_rule(10)\} \{ helpLink("numbers") \} $BR +Period = \{ans_rule(10)\} \( ms \) \{ helpLink("numbers") \} $BR +Frequency = \{ans_rule(10)\} \( kHz \) \{ helpLink("numbers") \} $BR END_TEXT Context()->normalStrings; @@ -137,4 +137,4 @@ The RMS value is defined as $BR END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/Contrib/NCSU/Power/ECE305_HW_01_Spr16_P01b.pg b/Contrib/NCSU/Power/ECE305_HW_01_Spr16_P01b.pg index 03e582e214..34219a2a54 100644 --- a/Contrib/NCSU/Power/ECE305_HW_01_Spr16_P01b.pg +++ b/Contrib/NCSU/Power/ECE305_HW_01_Spr16_P01b.pg @@ -24,7 +24,7 @@ loadMacros( "PGgraphmacros.pl", "extraAnswerEvaluators.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -45,7 +45,7 @@ Context()->flags->set( ); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.5f#"; +Context()->{format}{number} = "%.5f#"; #Initialize element values, to be changed for each question $T2v=random(2400,7200,800);#uS $SL02v=random(0.1,1,0.1); @@ -78,7 +78,7 @@ $graphb->lb(new Label(0,0,"(0,0)",'black','left','top')); $graphb->lb(new Label(0,$Pt2v,"$Pt2v",'black','left','top')); $graphb->lb(new Label(0,$LLM,"$LLM",'black','left','bottom')); $graphb->lb(new Label(0.1*$T2v ,$ULM,"f(t)",'black','left','top')); -$figb = image(insertGraph($graphb),width => 400,height => 250,tex_size => 200); +$figb = image(insertGraph($graphb),width => 400,height => 250,tex_size => 200); $Bavg=Real($Pt2v/2); @@ -105,10 +105,10 @@ For the waveform shown below, compute the following. Note that there are no unit $PAR $figb $BR $PAR -Average = \{ans_rule(10)\} \{ AnswerFormatHelp("numbers") \} $BR -RMS = \{ans_rule(10)\} \{ AnswerFormatHelp("numbers") \} $BR -Period = \{ans_rule(10)\} \( s \) \{ AnswerFormatHelp("numbers") \} $BR -Frequency = \{ans_rule(10)\} \( Hz \) \{ AnswerFormatHelp("numbers") \} $BR +Average = \{ans_rule(10)\} \{ helpLink("numbers") \} $BR +RMS = \{ans_rule(10)\} \{ helpLink("numbers") \} $BR +Period = \{ans_rule(10)\} \( s \) \{ helpLink("numbers") \} $BR +Frequency = \{ans_rule(10)\} \( Hz \) \{ helpLink("numbers") \} $BR @@ -152,4 +152,4 @@ The RMS value is defined as $BR END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/Contrib/NCSU/Power/ECE305_HW_01_Spr16_P01c.pg b/Contrib/NCSU/Power/ECE305_HW_01_Spr16_P01c.pg index 18865c8cbf..b15c3ef047 100644 --- a/Contrib/NCSU/Power/ECE305_HW_01_Spr16_P01c.pg +++ b/Contrib/NCSU/Power/ECE305_HW_01_Spr16_P01c.pg @@ -24,7 +24,7 @@ loadMacros( "PGgraphmacros.pl", "extraAnswerEvaluators.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -45,7 +45,7 @@ Context()->flags->set( ); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.5f#"; +Context()->{format}{number} = "%.5f#"; #Initialize element values, to be changed for each question $T3v=random(0.024,0.064,0.008);#S $Amp3v=random(50,200,10); @@ -74,7 +74,7 @@ $graphc->lb(new Label(0.1*$T3v ,$ULM,"f(t)",'black','left','top')); ($f3) = plot_functions( $graphc, $g3); $f3->steps(200); -$figc = image(insertGraph($graphc),width => 400,height => 250,tex_size => 200); +$figc = image(insertGraph($graphc),width => 400,height => 250,tex_size => 200); $Cavg=Real(-$Amp3v/pi/2*$T3hv*(cos(pi)-cos(0))/($T3v/4)); $Crms=Real($Amp3v/sqrt(2)); $Cperiod=Real($T3v/4);#mS @@ -91,10 +91,10 @@ For the waveform shown below, compute the following. Note that there are no unit $PAR $figc $BR $PAR -Average = \{ans_rule(10)\} \{ AnswerFormatHelp("numbers") \} $BR -RMS = \{ans_rule(10)\} \{ AnswerFormatHelp("numbers") \} $BR -Period = \{ans_rule(10)\} \( s \) \{ AnswerFormatHelp("numbers") \} $BR -Frequency = \{ans_rule(10)\} \( Hz \) \{ AnswerFormatHelp("numbers") \} $BR +Average = \{ans_rule(10)\} \{ helpLink("numbers") \} $BR +RMS = \{ans_rule(10)\} \{ helpLink("numbers") \} $BR +Period = \{ans_rule(10)\} \( s \) \{ helpLink("numbers") \} $BR +Frequency = \{ans_rule(10)\} \( Hz \) \{ helpLink("numbers") \} $BR END_TEXT Context()->normalStrings; @@ -133,4 +133,4 @@ The RMS value is defined as $BR END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/Contrib/NCSU/Power/ECE305_HW_01_Spr16_P01d.pg b/Contrib/NCSU/Power/ECE305_HW_01_Spr16_P01d.pg index a903bd39fe..86763f1748 100644 --- a/Contrib/NCSU/Power/ECE305_HW_01_Spr16_P01d.pg +++ b/Contrib/NCSU/Power/ECE305_HW_01_Spr16_P01d.pg @@ -24,7 +24,7 @@ loadMacros( "PGgraphmacros.pl", "extraAnswerEvaluators.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -45,7 +45,7 @@ Context()->flags->set( ); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.5f#"; +Context()->{format}{number} = "%.5f#"; #Initialize element values, to be changed for each question $T4v=random(0.024,0.064,0.008);#S $Amp4v=random(50,200,10); @@ -79,7 +79,7 @@ $graphd->lb(new Label(0.1*$T4v ,$ULM,"f(t)",'black','left','top')); #($f42) = plot_functions( $graphd, $g42); $f4->steps(200); #$f42->steps(200); -$figd = image(insertGraph($graphd),width => 400,height => 250,tex_size => 200); +$figd = image(insertGraph($graphd),width => 400,height => 250,tex_size => 200); $Davg=Real(-$Amp4v/pi/2*$T4hv*(cos(pi)-cos(0))/($T4v/2)); $Drms=Real($Amp4v/2); $Dperiod=Real($T4v/2);#S @@ -97,10 +97,10 @@ For the waveform shown below, compute the following. Note that there are no unit $PAR $figd $BR $PAR -Average = \{ans_rule(10)\} \{ AnswerFormatHelp("numbers") \} $BR -RMS = \{ans_rule(10)\} \{ AnswerFormatHelp("numbers") \} $BR -Period = \{ans_rule(10)\} \( s \) \{ AnswerFormatHelp("numbers") \} $BR -Frequency = \{ans_rule(10)\} \( Hz \) \{ AnswerFormatHelp("numbers") \} $BR +Average = \{ans_rule(10)\} \{ helpLink("numbers") \} $BR +RMS = \{ans_rule(10)\} \{ helpLink("numbers") \} $BR +Period = \{ans_rule(10)\} \( s \) \{ helpLink("numbers") \} $BR +Frequency = \{ans_rule(10)\} \( Hz \) \{ helpLink("numbers") \} $BR END_TEXT @@ -139,4 +139,4 @@ The RMS value is defined as $BR END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/Contrib/NCSU/Power/ECE305_HW_01_Spr16_P02.pg b/Contrib/NCSU/Power/ECE305_HW_01_Spr16_P02.pg index dd075e5261..23b0a64493 100644 --- a/Contrib/NCSU/Power/ECE305_HW_01_Spr16_P02.pg +++ b/Contrib/NCSU/Power/ECE305_HW_01_Spr16_P02.pg @@ -21,7 +21,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl" @@ -34,10 +34,10 @@ Context()->flags->set( tolerance => 0.01, tolType => "absolute", ); -Context()->{format}{number} = "%.5f#"; -Context()->variables->are(t => "Real"), +Context()->{format}{number} = "%.5f#"; +Context()->variables->are(t => "Real"), -# note that we use v to indicate a value. Sometimes we may want to use +# note that we use v to indicate a value. Sometimes we may want to use # the non-v variable as a function or variable in a formula $Abs1av=random(1,30,1); $Arg1av=random(30,150,5); @@ -105,19 +105,19 @@ $PAR Convert the following values to rectangular format.$BR $PAR -\( $Abs1av \angle $Arg1av ^{ \circ } = \) \{ans_rule(10)\} \( + j \cdot ( \) \{ans_rule(10)\} \( ) \) \{ AnswerFormatHelp("numbers") \} $BR +\( $Abs1av \angle $Arg1av ^{ \circ } = \) \{ans_rule(10)\} \( + j \cdot ( \) \{ans_rule(10)\} \( ) \) \{ helpLink("numbers") \} $BR -\( ( $Rl1bv+j \cdot $Im1bv ) + $Abs2bv \angle $Arg2bv ^{ \circ } = \) \{ans_rule(10)\} \( + j \cdot ( \) \{ans_rule(10)\} \( ) \) \{ AnswerFormatHelp("numbers") \} $BR +\( ( $Rl1bv+j \cdot $Im1bv ) + $Abs2bv \angle $Arg2bv ^{ \circ } = \) \{ans_rule(10)\} \( + j \cdot ( \) \{ans_rule(10)\} \( ) \) \{ helpLink("numbers") \} $BR -\( $Abs1cv \angle $Arg1cv ^{ \circ } - $Abs2cv \angle $Arg2cv ^{ \circ } = \) \{ans_rule(10)\} \( + j \cdot ( \) \{ans_rule(10)\} \( ) \) \{ AnswerFormatHelp("numbers") \} $BR +\( $Abs1cv \angle $Arg1cv ^{ \circ } - $Abs2cv \angle $Arg2cv ^{ \circ } = \) \{ans_rule(10)\} \( + j \cdot ( \) \{ans_rule(10)\} \( ) \) \{ helpLink("numbers") \} $BR -\($Abs1dv \angle $Arg1dv ^{ \circ } + ( $Rl2dv+j \cdot $Im2dv ) = \) \{ans_rule(10)\} \( + j \cdot ( \) \{ans_rule(10)\} \( ) \) \{ AnswerFormatHelp("numbers") \} $BR +\($Abs1dv \angle $Arg1dv ^{ \circ } + ( $Rl2dv+j \cdot $Im2dv ) = \) \{ans_rule(10)\} \( + j \cdot ( \) \{ans_rule(10)\} \( ) \) \{ helpLink("numbers") \} $BR -\( $Abs1ev e^{j \cdot $Arg1evR} = \) \{ans_rule(10)\} \( + j \cdot ( \) \{ans_rule(10)\} \( ) \) \{ AnswerFormatHelp("numbers") \} $BR +\( $Abs1ev e^{j \cdot $Arg1evR} = \) \{ans_rule(10)\} \( + j \cdot ( \) \{ans_rule(10)\} \( ) \) \{ helpLink("numbers") \} $BR -\( \frac{$Abs1fv \angle $Arg1fv ^{ \circ } }{ ( $Rl2fv+j \cdot $Im2fv ) } = \) \{ans_rule(10)\} \( + j \cdot ( \) \{ans_rule(10)\} \( ) \) \{ AnswerFormatHelp("numbers") \} $BR +\( \frac{$Abs1fv \angle $Arg1fv ^{ \circ } }{ ( $Rl2fv+j \cdot $Im2fv ) } = \) \{ans_rule(10)\} \( + j \cdot ( \) \{ans_rule(10)\} \( ) \) \{ helpLink("numbers") \} $BR END_TEXT @@ -144,7 +144,7 @@ ANS( $Imfout-> cmp() ); # Solution Context()->texStrings; BEGIN_SOLUTION -$PAR +$PAR \( $Abs1av \angle $Arg1av ^{ \circ } = $Rlaout+j \cdot ($Imaout) \) $BR \( ( $Rl1bv+j \cdot $Im1bv ) + $Abs2bv \angle $Arg2bv ^{ \circ } = $Rlbout+j \cdot ($Imbout) \) $BR \( $Abs1cv \angle $Arg1cv ^{ \circ } - $Abs2cv \angle $Arg2cv ^{ \circ } = $Rlcout+j \cdot ($Imcout) \) $BR diff --git a/Contrib/NCSU/Power/ECE305_HW_01_Spr16_P03_04a.pg b/Contrib/NCSU/Power/ECE305_HW_01_Spr16_P03_04a.pg index b70122ff47..c8f5a81936 100644 --- a/Contrib/NCSU/Power/ECE305_HW_01_Spr16_P03_04a.pg +++ b/Contrib/NCSU/Power/ECE305_HW_01_Spr16_P03_04a.pg @@ -25,7 +25,7 @@ loadMacros( "extraAnswerEvaluators.pl", "parserPopUp.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", "PGcourse.pl" ); @@ -42,7 +42,7 @@ tolType => "absolute", Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; #Initialize element values, to be changed for each question $Tv=random(0.01,0.03,0.02); @@ -97,7 +97,7 @@ $grapha->lb(new Label($Ampv/2,0,"Vector C",'blue','right','bottom')); $grapha->lb(new Label(($Vraxv+$Ampv)/2,$Vrayv/2,"Vector B",'blue','left','top')); $grapha->lb(new Label($Tav,0,"R",'black','right','bottom')); $grapha->lb(new Label(0.05*$Tav ,$ULMa,"i",'black','left','top')); -$figa = image(insertGraph($grapha),width => 400,height => 250,tex_size => 200); +$figa = image(insertGraph($grapha),width => 400,height => 250,tex_size => 200); $popupAa = PopUp(["?", "VL", "VR"], "VR"); $popupAb = PopUp(["?", "VL", "VR"], "VL"); $popupAc = PopUp(["?", "A", "B", "C", "None"], "A"); @@ -107,14 +107,14 @@ BEGIN_TEXT \{image("ECE305_hw1_spr16_3a.png",height=>150, width=>200)\} $BR $PAR \( R = $Rav \Omega, L = $Lav mH. \)$BR -\( i(t)= \) \{ans_rule(30)\} \( A \) \{AnswerFormatHelp("formula") \} $BR +\( i(t)= \) \{ans_rule(30)\} \( A \) \{helpLink("formula") \} $BR $PAR The plot below represents the voltage phasor diagram for the circuit with horizontal axis as the reference for voltage \( v(t) \).$BR $figa $BR $PAR Denote voltage across inductor \( \bar{V}_L \) as "VL" and voltage across resistor \( \bar{V}_R \) as "VR" etc.. Answer the following questions about the phasor diagram. $BR -Vector \( A \) represents \{ $popupAa ->menu() \} and equals to \{ans_rule(10)\} \( \angle \) \{ans_rule(10)\} \( ^{ \circ } V \). \{AnswerFormatHelp("numbers") \}$BR -Vector \( B \) represents \{ $popupAb ->menu() \} and equals to \{ans_rule(10)\} \( \angle \) \{ans_rule(10)\} \( ^{ \circ } V \). \{AnswerFormatHelp("numbers") \}$BR +Vector \( A \) represents \{ $popupAa ->menu() \} and equals to \{ans_rule(10)\} \( \angle \) \{ans_rule(10)\} \( ^{ \circ } V \). \{helpLink("numbers") \}$BR +Vector \( B \) represents \{ $popupAb ->menu() \} and equals to \{ans_rule(10)\} \( \angle \) \{ans_rule(10)\} \( ^{ \circ } V \). \{helpLink("numbers") \}$BR Current \( \bar{i} \) through the circuit is in the direction of vector \{ $popupAc ->menu() \}. $BR If \( \bar{i} \) is not in the direction of any of the vectors, select "None".$BR @@ -161,10 +161,10 @@ $PAR Vector A is \( \bar{V}_R \) $BR Vector B is \( \bar{V}_L \) $BR -The current vector \( \bar{i} \) is in the same direction as vector \( \bar{V}_R \) based on the phasor angle +The current vector \( \bar{i} \) is in the same direction as vector \( \bar{V}_R \) based on the phasor angle END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/Contrib/NCSU/Power/ECE305_HW_01_Spr16_P03_04b.pg b/Contrib/NCSU/Power/ECE305_HW_01_Spr16_P03_04b.pg index 41d602f5b7..32adc9480a 100644 --- a/Contrib/NCSU/Power/ECE305_HW_01_Spr16_P03_04b.pg +++ b/Contrib/NCSU/Power/ECE305_HW_01_Spr16_P03_04b.pg @@ -26,7 +26,7 @@ loadMacros( "extraAnswerEvaluators.pl", "parserPopUp.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", "PGcourse.pl" ); @@ -41,12 +41,12 @@ tolType => "absolute", ); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; #Initialize element values, to be changed for each question $Tv=random(0.01,0.05,0.02); $Ampv0=random(100,500,5); -$Rcbvabs=random(1,5,0.5); +$Rcbvabs=random(1,5,0.5); $Rcbv=-1*i*$Rcbvabs; #Ohm $Rbv=random(3,8,0.5); #Ohm @@ -96,7 +96,7 @@ $graphb->lb(new Label($Ampv/2,0,"Vector C",'blue','right','bottom')); $graphb->lb(new Label(($Vrbxv+$Ampv)/2,$Vrbyv/2,"Vector B",'blue','left','bottom')); $graphb->lb(new Label($Tbv,0,"R",'black','right','bottom')); $graphb->lb(new Label(0.05*$Tbv ,$ULMb,"i",'black','left','top')); -$figb = image(insertGraph($graphb),width => 400,height => 250,tex_size => 200); +$figb = image(insertGraph($graphb),width => 400,height => 250,tex_size => 200); $popupBa = PopUp(["?", "VC", "VR"], "VR"); $popupBb = PopUp(["?", "VC", "VR"], "VC"); $popupBc = PopUp(["?", "A", "B", "C", "None"], "A"); @@ -107,14 +107,14 @@ BEGIN_TEXT \{image("ECE305_hw1_spr16_3b.png",height=>150, width=>200)\} $BR $PAR \( R = $Rbv \Omega, R_c = -j \cdot $Rcbvabs \Omega. \)$BR -\( i(t)= \) \{ans_rule(30)\} \( A \) \{AnswerFormatHelp("formula") \} $BR +\( i(t)= \) \{ans_rule(30)\} \( A \) \{helpLink("formula") \} $BR $PAR The plot below represents the voltage phasor diagram for the circuit with horizontal axis as the reference for voltage \( v(t) \):$BR $figb $BR $PAR Denote the voltage across capacitor \( \bar{V}_C \) as "VC" and voltage across resistor \( \bar{V}_R \) as "VR" etc.. Answer following questions about the phasor diagram. $BR -Vector \( A \) represents \{ $popupBa ->menu() \} and equals to \{ans_rule(10)\} \( \angle \) \{ans_rule(10)\} \( ^{ \circ } V \). \{AnswerFormatHelp("numbers") \}$BR -Vector \( B \) represents \{ $popupBb ->menu() \} and equals to \{ans_rule(10)\} \( \angle \) \{ans_rule(10)\} \( ^{ \circ } V \). \{AnswerFormatHelp("numbers") \}$BR +Vector \( A \) represents \{ $popupBa ->menu() \} and equals to \{ans_rule(10)\} \( \angle \) \{ans_rule(10)\} \( ^{ \circ } V \). \{helpLink("numbers") \}$BR +Vector \( B \) represents \{ $popupBb ->menu() \} and equals to \{ans_rule(10)\} \( \angle \) \{ans_rule(10)\} \( ^{ \circ } V \). \{helpLink("numbers") \}$BR Current \( \bar{i} \) through the circuit is in the direction of vector \{ $popupBc->menu() \}. $BR Note: If \( \bar{i} \) is not in the direction of any of the vectors, select "None".$BR $PAR @@ -151,8 +151,8 @@ $PAR \( \bar{V}= R_C \cdot \bar{i} =$modvcbv \angle $argvcbdv^{ \circ } V \) $BR Vector A is \( \bar{V}_R \) $BR Vector B is \( \bar{V}_C \) $BR -The current vector \( \bar{i} \) is in the same direction as vector \( V_R \) based on the phasor angle +The current vector \( \bar{i} \) is in the same direction as vector \( V_R \) based on the phasor angle END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/Contrib/NCSU/Power/ECE305_HW_01_Spr16_P03_04c.pg b/Contrib/NCSU/Power/ECE305_HW_01_Spr16_P03_04c.pg index 9193528be9..4e326736f7 100644 --- a/Contrib/NCSU/Power/ECE305_HW_01_Spr16_P03_04c.pg +++ b/Contrib/NCSU/Power/ECE305_HW_01_Spr16_P03_04c.pg @@ -26,7 +26,7 @@ loadMacros( "extraAnswerEvaluators.pl", "parserPopUp.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", "PGcourse.pl" ); @@ -41,7 +41,7 @@ tolType => "absolute", ); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; #Initialize element values, to be changed for each question $Tv=random(0.01,0.05,0.01); @@ -113,7 +113,7 @@ $graphc->lb(new Label($Ampv/2,0,"Vector C",'blue','right','bottom')); $graphc->lb(new Label(($Vrcxv+$Ampv)/2,$Vrcyv/2,"Vector B",'blue','left','bottom')); $graphc->lb(new Label($Tcv,0,"R",'black','right','bottom')); $graphc->lb(new Label(0.05*$Tcv ,$ULMc,"i",'black','left','top')); -$figc = image(insertGraph($graphc),width => 400,height => 250,tex_size => 200); +$figc = image(insertGraph($graphc),width => 400,height => 250,tex_size => 200); $popupCa = PopUp(["?", "VL", "VR", "VC"], "VR"); $popupCb = PopUp(["?", "VL", "VR", "VC"], "VC"); $popupCc = PopUp(["?", "VL", "VR", "VC"], "VL"); @@ -137,7 +137,7 @@ $popupCd = PopUp(["?", "A", "B", "C", "None"], "None"); #$graphc2->lb(new Label(($icxv)/2,($icyv)/2,"Vector C",'blue','left','top')); #$graphc2->lb(new Label($Tcv2,0,"R",'black','right','bottom')); #$graphc2->lb(new Label(0.05*$Tcv2 ,$ULMc2,"i",'black','left','top')); -#$figc2 = image(insertGraph($graphc2),width => 400,height => 250,tex_size => 200); +#$figc2 = image(insertGraph($graphc2),width => 400,height => 250,tex_size => 200); #$popupCa2 = PopUp(["?", "VL", "VR", "VC"], "VR"); #$popupCb2 = PopUp(["?", "VL", "VR", "VC"], "VC"); #$popupCc2 = PopUp(["?", "VL", "VR", "VC"], "VL"); @@ -150,7 +150,7 @@ BEGIN_TEXT \{image("ECE305_hw1_spr16_3c.png",height=>150, width=>200)\} $BR $PAR \( R = $Rcv \Omega, R_c = -j \cdot $Rccvabs \Omega, L = $Lcv mH. \)$BR -\( i(t)= \) \{ans_rule(30)\} \( A \) \{AnswerFormatHelp("formula") \} $BR +\( i(t)= \) \{ans_rule(30)\} \( A \) \{helpLink("formula") \} $BR $PAR The plot below represents the voltage phasor diagram for the circuit with horizontal axis as the reference for voltage \( v(t) \): $BR @@ -159,13 +159,13 @@ $PAR Denote the voltage across capacitor \( \bar{V}_C \) as "VC" and voltage across resistor \( \bar{V}_R \) as "VR" etc.. Answer following questions about the phasor diagram. $BR -Vector \( A \) represents \{ $popupCa ->menu() \} and equals to \{ans_rule(10)\} \( \angle \) \{ans_rule(10)\} \( ^{ \circ } V \). \{AnswerFormatHelp("numbers") \}$BR -Vector \( B \) represents \{ $popupCb ->menu() \} and equals to \{ans_rule(10)\} \( \angle \) \{ans_rule(10)\} \( ^{ \circ } V \). \{AnswerFormatHelp("numbers") \}$BR -Vector \( C \) represents \{ $popupCc ->menu() \} and equals to \{ans_rule(10)\} \( \angle \) \{ans_rule(10)\} \( ^{ \circ } V \). \{AnswerFormatHelp("numbers") \}$BR +Vector \( A \) represents \{ $popupCa ->menu() \} and equals to \{ans_rule(10)\} \( \angle \) \{ans_rule(10)\} \( ^{ \circ } V \). \{helpLink("numbers") \}$BR +Vector \( B \) represents \{ $popupCb ->menu() \} and equals to \{ans_rule(10)\} \( \angle \) \{ans_rule(10)\} \( ^{ \circ } V \). \{helpLink("numbers") \}$BR +Vector \( C \) represents \{ $popupCc ->menu() \} and equals to \{ans_rule(10)\} \( \angle \) \{ans_rule(10)\} \( ^{ \circ } V \). \{helpLink("numbers") \}$BR $PAR Determine the following currents in phasor form: $BR -\(\bar{ i }_{RC}= \) \{ans_rule(10)\} \( \angle \) \{ans_rule(10)\} \( ^{ \circ } A \). \{AnswerFormatHelp("numbers") \}$BR -\( \bar{ i}_{L}= \) \{ans_rule(10)\} \( \angle \) \{ans_rule(10)\} \( ^{ \circ } A \). \{AnswerFormatHelp("numbers") \}$BR +\(\bar{ i }_{RC}= \) \{ans_rule(10)\} \( \angle \) \{ans_rule(10)\} \( ^{ \circ } A \). \{helpLink("numbers") \}$BR +\( \bar{ i}_{L}= \) \{ans_rule(10)\} \( \angle \) \{ans_rule(10)\} \( ^{ \circ } A \). \{helpLink("numbers") \}$BR $PAR By considering the configuration of the circuit in general without taking into the account of numerical values , current \( \bar{i} \) through the whole circuit should be in the direction of vector \{ $popupCd ->menu() \}. $BR Note: If \( \bar{i} \) is not in the direction of any of the vectors, select "None".$BR @@ -217,9 +217,9 @@ Vector C is \( \bar{V}_L \) which is \( $modvcv \angle $argvcdv^{ \circ } V \) Current through the capacitor and the resistor \( \bar{i}_{RC} = $modirccv \angle $argirccdv^{ \circ } A \) $BR Current through the inductor \( \bar{i}_{L} = $modilcv \angle $argilcdv^{ \circ } A \) $BR $PAR -In general situation, the current vector \( \bar{i} \) is not in the direction of vector \( \bar{V}_R \), \( \bar{V}_{C} \) or \( \bar{V}_{L} \) as the current is the sum of two parallel circuits. $BR +In general situation, the current vector \( \bar{i} \) is not in the direction of vector \( \bar{V}_R \), \( \bar{V}_{C} \) or \( \bar{V}_{L} \) as the current is the sum of two parallel circuits. $BR END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/Contrib/NCSU/Power/ECE305_HW_01_Spr16_P03_04d.pg b/Contrib/NCSU/Power/ECE305_HW_01_Spr16_P03_04d.pg index 8c8de233e0..734b10307d 100644 --- a/Contrib/NCSU/Power/ECE305_HW_01_Spr16_P03_04d.pg +++ b/Contrib/NCSU/Power/ECE305_HW_01_Spr16_P03_04d.pg @@ -26,7 +26,7 @@ loadMacros( "extraAnswerEvaluators.pl", "parserPopUp.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", "PGcourse.pl" ); @@ -41,12 +41,12 @@ tolType => "absolute", ); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; #Initialize element values, to be changed for each question $Tv=random(0.01,0.05,0.01); $Ampv0=random(100,500,5); -$Rldvabs=random(10,15,0.5); +$Rldvabs=random(10,15,0.5); $Rldv=i*$Rldvabs; $Rcdvabs=random(2,5,0.5); $Rcdv=-1*i*$Rcdvabs; #Ohm @@ -135,7 +135,7 @@ $graphd->lb(new Label(($Pt2xv+$Pt3xv)/2,($Pt2yv+$Pt3yv)/2,"C",'blue','right','bo $graphd->lb(new Label(($Pt3xv+0)/2,($Pt3yv)/2,"D",'blue','right','bottom')); $graphd->lb(new Label($Tdmaxv ,0,"R",'black','right','bottom')); $graphd->lb(new Label(0 ,$ULMd,"i",'black','left','top')); -$figd = image(insertGraph($graphd),width => 400,height => 250,tex_size => 200); +$figd = image(insertGraph($graphd),width => 400,height => 250,tex_size => 200); $popupDa = PopUp(["?", "VL", "VR", "VC"], "VC"); $popupDb = PopUp(["?", "VL", "VR", "VC"], "VR"); $popupDc = PopUp(["?", "VL", "VR", "VC"], "VL"); @@ -149,16 +149,16 @@ BEGIN_TEXT \{image("ECE305_hw1_spr16_3d.png",height=>150, width=>200)\} $BR $PAR \( R = $Rdv \Omega, R_c = -j \cdot $Rcdvabs \Omega, R_L = j \cdot $Rldvabs \Omega. \)$BR -\( i(t)= \) \{ans_rule(30)\} \( A \) \{AnswerFormatHelp("formula") \} $BR -\( v_{in}(t)= \) \{ans_rule(30)\} \( V \) \{AnswerFormatHelp("formula") \} +\( i(t)= \) \{ans_rule(30)\} \( A \) \{helpLink("formula") \} $BR +\( v_{in}(t)= \) \{ans_rule(30)\} \( V \) \{helpLink("formula") \} $PAR The plot below represents the voltage phasor diagram for the circuit with the horizontal axis as the reference for \( \bar{V}_{in} \):$BR $figd $BR Denote the voltage across capacitor \( \bar{V}_C \) as "VC" and voltage across resistor \( \bar{V}_R \) as "VR" etc.. Answer following questions about the phasor diagram. $BR -Vector \( A \) represents \{ $popupDa ->menu() \} and equals to \{ans_rule(10)\} \( \angle \) \{ans_rule(10)\} \( ^{ \circ } V \). \{AnswerFormatHelp("numbers") \}$BR -Vector \( B \) represents \{ $popupDb ->menu() \} and equals to \{ans_rule(10)\} \( \angle \) \{ans_rule(10)\} \( ^{ \circ } V \). \{AnswerFormatHelp("numbers") \}$BR -Vector \( C \) represents \{ $popupDc ->menu() \} and equals to \{ans_rule(10)\} \( \angle \) \{ans_rule(10)\} \( ^{ \circ } V \). \{AnswerFormatHelp("numbers") \}$BR +Vector \( A \) represents \{ $popupDa ->menu() \} and equals to \{ans_rule(10)\} \( \angle \) \{ans_rule(10)\} \( ^{ \circ } V \). \{helpLink("numbers") \}$BR +Vector \( B \) represents \{ $popupDb ->menu() \} and equals to \{ans_rule(10)\} \( \angle \) \{ans_rule(10)\} \( ^{ \circ } V \). \{helpLink("numbers") \}$BR +Vector \( C \) represents \{ $popupDc ->menu() \} and equals to \{ans_rule(10)\} \( \angle \) \{ans_rule(10)\} \( ^{ \circ } V \). \{helpLink("numbers") \}$BR Current \( \bar{i} \) through the circuit is in the direction of vector \{ $popupDd ->menu() \}. $BR $PAR END_TEXT @@ -204,10 +204,10 @@ Vector A is \( \bar{V}_C \) $BR Vector B is \( \bar{V}_R \) $BR Vector C is \( \bar{V}_L \) $BR -The current vector \( \bar{i} \) is in the direction of vector \( \bar{V}_R \). $BR +The current vector \( \bar{i} \) is in the direction of vector \( \bar{V}_R \). $BR END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/Contrib/NCSU/Power/ECE305_HW_01_Spr16_P05.pg b/Contrib/NCSU/Power/ECE305_HW_01_Spr16_P05.pg index aa92909509..bc87107c67 100644 --- a/Contrib/NCSU/Power/ECE305_HW_01_Spr16_P05.pg +++ b/Contrib/NCSU/Power/ECE305_HW_01_Spr16_P05.pg @@ -26,7 +26,7 @@ loadMacros( "extraAnswerEvaluators.pl", "parserPopUp.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", "PGcourse.pl" ); @@ -41,7 +41,7 @@ tolType => "absolute", ); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.5f#"; +Context()->{format}{number} = "%.5f#"; #Initialize element values, to be changed for each question $Fv=random(50,60,10); @@ -136,7 +136,7 @@ $grapha->lb(new Label($isxv/2,$isyv/2,"C",'blue','right','top')); $grapha->lb(new Label(($i1xv+$isxv)/2,($i1yv+$isyv)/2,"B",'blue','right','bottom')); $grapha->lb(new Label($Tmax,0,"R",'black','right','bottom')); $grapha->lb(new Label(0 ,$ULMa,"i",'black','left','top')); -$figa = image(insertGraph($grapha),width => 400,height => 250,tex_size => 200); +$figa = image(insertGraph($grapha),width => 400,height => 250,tex_size => 200); $popupia = PopUp(["?", "is", "i1", "i2"], "i1"); $popupib = PopUp(["?", "is", "i1", "i2"], "i2"); $popupic = PopUp(["?", "is", "i1", "i2"], "is"); @@ -164,7 +164,7 @@ $graphb->lb(new Label($Vsxv/2,$Vsyv/2,"C",'blue','right','top')); $graphb->lb(new Label(($Vl2xv+$Vsxv)/2,($Vl2yv+$Vsyv)/2,"B",'blue','right','bottom')); $graphb->lb(new Label($Tmax,0,"R",'black','right','bottom')); $graphb->lb(new Label(0 ,$ULMb,"i",'black','left','top')); -$figb = image(insertGraph($graphb),width => 400,height => 250,tex_size => 200); +$figb = image(insertGraph($graphb),width => 400,height => 250,tex_size => 200); $popupv = PopUp(["?", "R-L1", "C-L2"], "C-L2"); BEGIN_TEXT @@ -192,9 +192,9 @@ $PAR The plot below represents the current phasor diagram: $BR $figa $BR $PAR -Vector \( A \) represents \{ $popupia ->menu() \} $BR +Vector \( A \) represents \{ $popupia ->menu() \} $BR Vector \( B \) represents \{ $popupib ->menu() \} $BR -Vector \( C \) represents \{ $popupic ->menu() \} $BR +Vector \( C \) represents \{ $popupic ->menu() \} $BR $PAR The plot below represents the voltage phasor diagram for the \{ $popupv ->menu() \} branch of the circuit $BR $figb $BR @@ -259,4 +259,4 @@ the phasor diagram corresponds to the L2-C circuit. END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/Contrib/NCSU/Power/ECE305_HW_02_Sum16_P01_Boxuan.pg b/Contrib/NCSU/Power/ECE305_HW_02_Sum16_P01_Boxuan.pg index 4c2b9748c8..c4c9bd7646 100644 --- a/Contrib/NCSU/Power/ECE305_HW_02_Sum16_P01_Boxuan.pg +++ b/Contrib/NCSU/Power/ECE305_HW_02_Sum16_P01_Boxuan.pg @@ -23,7 +23,7 @@ loadMacros("PG.pl", "PGauxiliaryFunctions.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -33,7 +33,7 @@ TEXT(beginproblem()); Context("Complex"); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.5f#"; +Context()->{format}{number} = "%.5f#"; #Initialize element values, to be changed for each question $zm=random(20,30,2); @@ -43,7 +43,7 @@ $Vab=208; ## Debugging purpose #$zm=24;$zd=30; $Rc=1; -## Answer will be 2.78 -28.9 4.82 -58.9 200.7 121.15 1453 1523.6614 +## Answer will be 2.78 -28.9 4.82 -58.9 200.7 121.15 1453 1523.6614 $van=$Vab/sqrt(3)*exp(-1*pi/6*i); @@ -59,7 +59,7 @@ $iabd = arg($iab)*180/pi; $vadn=$Z*$ia; -$vcdn = mod($vadn)*(cos(arg($vadn)+120/180*pi)+ i*sin(arg($vadn)+120/180*pi)); +$vcdn = mod($vadn)*(cos(arg($vadn)+120/180*pi)+ i*sin(arg($vadn)+120/180*pi)); $vdca = $vcdn-$vadn; $vdcam = mod($vdca); $vdcad = arg($vdca)*180/pi; @@ -75,9 +75,9 @@ A balanced three-phase delta-connected source is connected by a cable \{image("ECE305_HW2_p1.png",height=>150, width=>300)\} $BR Calculate the following phasor voltages and currents which are marked in the figure below, supplying both the magnitude and angle:$BR -\( I_{ab} = \) \{ans_rule(10)\} \( \angle \) \{ans_rule(10)\} \(^{ \circ } A \) \{AnswerFormatHelp("numbers") \} $BR -\( I_{a} = \) \{ans_rule(10)\} \( \angle \) \{ans_rule(10)\} \(^{ \circ } A \) \{AnswerFormatHelp("numbers") \} $BR -\( V_{c'a'} = \) \{ans_rule(10)\} \( \angle \) \{ans_rule(10)\} \(^{ \circ } V \) \{AnswerFormatHelp("numbers") \} $BR +\( I_{ab} = \) \{ans_rule(10)\} \( \angle \) \{ans_rule(10)\} \(^{ \circ } A \) \{helpLink("numbers") \} $BR +\( I_{a} = \) \{ans_rule(10)\} \( \angle \) \{ans_rule(10)\} \(^{ \circ } A \) \{helpLink("numbers") \} $BR +\( V_{c'a'} = \) \{ans_rule(10)\} \( \angle \) \{ans_rule(10)\} \(^{ \circ } V \) \{helpLink("numbers") \} $BR Also determine the following: $BR Total three-phase real power consumed by the delta-connected load. $BR \(P_{load} = \) \{ans_rule(10)\} kW $BR @@ -129,9 +129,9 @@ The per-phase equivalent circuit:$BR \(\bar{V}_{a'n} = Z*\bar{I}_{a}= $vadnm \angle $vadnd^{\circ} \) V $BR \(\bar{V}_{c'n} = $vcdnm \angle $vcdnd^{\circ}\) V $BR \(\bar{V}_{c'a'} = \bar{V}_{c'n}\sqrt{3}exp(j\frac{\pi}{6}) = $vdcam \angle $vdcad^{\circ}\) V $BR -\(P_{load} = real(3\bar{V}_{a'n} \bar{I}_{a}^*) = $pl\) kW $BR -\(P_{source} = real(3\bar{V}_{an} \bar{I}_{a}^*) = $ps\) kW $BR +\(P_{load} = real(3\bar{V}_{a'n} \bar{I}_{a}^*) = $pl\) kW $BR +\(P_{source} = real(3\bar{V}_{an} \bar{I}_{a}^*) = $ps\) kW $BR END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/NCSU/Power/ECE305_HW_02_Sum16_P02_Boxuan.pg b/Contrib/NCSU/Power/ECE305_HW_02_Sum16_P02_Boxuan.pg index 8e97b48e1a..17c537e547 100644 --- a/Contrib/NCSU/Power/ECE305_HW_02_Sum16_P02_Boxuan.pg +++ b/Contrib/NCSU/Power/ECE305_HW_02_Sum16_P02_Boxuan.pg @@ -23,7 +23,7 @@ loadMacros("PG.pl", "PGauxiliaryFunctions.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -33,7 +33,7 @@ TEXT(beginproblem()); Context("Complex"); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.5f#"; +Context()->{format}{number} = "%.5f#"; #Initialize element values, to be changed for each question $ia=Real(random(8,20,2)); @@ -72,21 +72,21 @@ Suppose that you are taking measurements at an industrial site using a three-pha \{image("ECE305_HW2_p2.png",height=>150, width=>300)\} $BR a)Initially Switch A is closed and Switch B and C are opened. If the analyzer measures 208 V, $ia A and $pa W, then determine the power factor for motor A. $BR -\( power factor = \) \{ans_rule(10)\} \{AnswerFormatHelp("numbers") \} $BR +\( power factor = \) \{ans_rule(10)\} \{helpLink("numbers") \} $BR b)Next, Switch A is opened and Switch B is closed. If the analyzer measures 208 V, $ib A and $pb W, then determine the three-phase reactive power used by motor B. $BR -\(Q_B = \) \{ans_rule(10)\} VAr \{AnswerFormatHelp("numbers") \} $BR +\(Q_B = \) \{ans_rule(10)\} VAr \{helpLink("numbers") \} $BR c)Now both Switch A and Switch B are closed (with Switch C opened), if the line voltage is still 208 V, then what should the total line current and the apparent power as measured by the analyzer set-up be? $BR -Apparent power \(S_{source} = \) \{ans_rule(10)\} VA \{AnswerFormatHelp("numbers") \} $BR -Total line current \(I_L = \) \{ans_rule(10)\} A \{AnswerFormatHelp("numbers") \} $BR +Apparent power \(S_{source} = \) \{ans_rule(10)\} VA \{helpLink("numbers") \} $BR +Total line current \(I_L = \) \{ans_rule(10)\} A \{helpLink("numbers") \} $BR d)Finally Switch C is closed, adding the $var VAR capacitor bank to the circuit. If the line voltage is still 208 V, then what should the total line current and the apparent power as measured by the analyzer set-up be?$BR -Apparent power \(S_{source} = \) \{ans_rule(10)\} VA \{AnswerFormatHelp("numbers") \} $BR -Total line current \(I_L = \) \{ans_rule(10)\} A \{AnswerFormatHelp("numbers") \} $BR +Apparent power \(S_{source} = \) \{ans_rule(10)\} VA \{helpLink("numbers") \} $BR +Total line current \(I_L = \) \{ans_rule(10)\} A \{helpLink("numbers") \} $BR e)What is the capacitance of each of the three identical Y-connected capacitors?$BR -\(C = \) \{ans_rule(10)\} \(\mu F\) \{AnswerFormatHelp("numbers") \} $BR +\(C = \) \{ans_rule(10)\} \(\mu F\) \{helpLink("numbers") \} $BR $PAR END_TEXT @@ -144,4 +144,4 @@ So \(C = $C \mu F\)$BR END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/NCSU/Power/ECE305_HW_02_Sum16_P03_YZHOU26.pg b/Contrib/NCSU/Power/ECE305_HW_02_Sum16_P03_YZHOU26.pg index ee3256cc9c..d754c96587 100644 --- a/Contrib/NCSU/Power/ECE305_HW_02_Sum16_P03_YZHOU26.pg +++ b/Contrib/NCSU/Power/ECE305_HW_02_Sum16_P03_YZHOU26.pg @@ -27,7 +27,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -37,7 +37,7 @@ TEXT(beginproblem()); Context("Complex"); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.5f#"; +Context()->{format}{number} = "%.5f#"; #Initialize element values, to be changed for each question $Fv=random(50,60,10); @@ -113,36 +113,36 @@ $BBOLD a). $EBOLD The following is the per-phase equivalent circuit for this problem. Determine the equivalent \( \tilde{V}_{sp} \). Further assume the motor can be modelled by a constant series impedance, determine the equivalent impedance for the feeder cable and the motor. $BR \{image("ECE305_hw2_1a.png",height=>150, width=>250)\} $BR -\( \tilde{V}_{sp} = \) \{ans_rule(10)\} \(\angle 0 ^{\circ} V_{rms} \) \{AnswerFormatHelp("numbers") \} $BR +\( \tilde{V}_{sp} = \) \{ans_rule(10)\} \(\angle 0 ^{\circ} V_{rms} \) \{helpLink("numbers") \} $BR Note: For convenience, the phase angle for \( \tilde{V}_{sp} \) is set as the reference. $PAR -\( R_{feeder} = \) \{ans_rule(10)\} \( \Omega \) \{AnswerFormatHelp("numbers") \} $BR -\( R_{motor} = \) \{ans_rule(10)\} \( \Omega \) \{AnswerFormatHelp("numbers") \} $BR -\( L_{feeder} = \) \{ans_rule(10)\} \( mH \) \{AnswerFormatHelp("numbers") \} $BR -\( L_{motor} = \) \{ans_rule(10)\} \( mH \) \{AnswerFormatHelp("numbers") \} $BR +\( R_{feeder} = \) \{ans_rule(10)\} \( \Omega \) \{helpLink("numbers") \} $BR +\( R_{motor} = \) \{ans_rule(10)\} \( \Omega \) \{helpLink("numbers") \} $BR +\( L_{feeder} = \) \{ans_rule(10)\} \( mH \) \{helpLink("numbers") \} $BR +\( L_{motor} = \) \{ans_rule(10)\} \( mH \) \{helpLink("numbers") \} $BR $PAR $BBOLD b). $EBOLD Calculate the motor load line voltage and line current. $BR -\( \tilde{I}_{feeder} = \) \{ans_rule(10)\} \(\angle\) \{ans_rule(10)\} \(^{\circ} A \) \{AnswerFormatHelp("numbers") \}$BR -\( \tilde{V}_{load,motor} = \) \{ans_rule(10)\} \(\angle\) \{ans_rule(10)\} \(^{\circ} V_{rms} \) \{AnswerFormatHelp("numbers") \} $BR +\( \tilde{I}_{feeder} = \) \{ans_rule(10)\} \(\angle\) \{ans_rule(10)\} \(^{\circ} A \) \{helpLink("numbers") \}$BR +\( \tilde{V}_{load,motor} = \) \{ans_rule(10)\} \(\angle\) \{ans_rule(10)\} \(^{\circ} V_{rms} \) \{helpLink("numbers") \} $BR $PAR $BBOLD c). $EBOLD Calculate the apparent power (VA) supplied by the voltage source and the feeder line loss.$BR -\( S_{source} = \) \{ans_rule(10)\} \( kVA \) \{AnswerFormatHelp("numbers") \} $BR -\( P_{loss,feeder} = \) \{ans_rule(10)\} \( kW \) \{AnswerFormatHelp("numbers") \} $BR +\( S_{source} = \) \{ans_rule(10)\} \( kVA \) \{helpLink("numbers") \} $BR +\( P_{loss,feeder} = \) \{ans_rule(10)\} \( kW \) \{helpLink("numbers") \} $BR $PAR $BBOLD d). $EBOLD A shunt capacitor is introduced at the load to correct the load power factor to $pfmv2 lagging power factor. Determine the size of the capacitor and reactive power (kVAR) at the shunt capacitor. $BR -\( Q_{shunt} = \) \{ans_rule(10)\} \( kVAR \) \{AnswerFormatHelp("numbers") \} $BR -\( C_{shunt} = \) \{ans_rule(10)\} \( uF \) \{AnswerFormatHelp("numbers") \} $BR +\( Q_{shunt} = \) \{ans_rule(10)\} \( kVAR \) \{helpLink("numbers") \} $BR +\( C_{shunt} = \) \{ans_rule(10)\} \( uF \) \{helpLink("numbers") \} $BR $PAR $BBOLD e). $EBOLD Now considering the feeder system, re-compute the motor load line voltage, source apparent power (VA) and the line loss (W) with the shunt capacitor added in parallel to the load. $BR -\( \tilde{V}_{load,motor} = \) \{ans_rule(10)\} \(\angle\) \{ans_rule(10)\} \(^{\circ} V_{rms} \) \{AnswerFormatHelp("numbers") \} $BR -\( S_{source} = \) \{ans_rule(10)\} \( kVA \) \{AnswerFormatHelp("numbers") \} $BR -\( P_{loss,feeder} = \) \{ans_rule(10)\} \( kW \) \{AnswerFormatHelp("numbers") \} $BR +\( \tilde{V}_{load,motor} = \) \{ans_rule(10)\} \(\angle\) \{ans_rule(10)\} \(^{\circ} V_{rms} \) \{helpLink("numbers") \} $BR +\( S_{source} = \) \{ans_rule(10)\} \( kVA \) \{helpLink("numbers") \} $BR +\( P_{loss,feeder} = \) \{ans_rule(10)\} \( kW \) \{helpLink("numbers") \} $BR @@ -256,4 +256,4 @@ Part e). $BR END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/NCSU/Power/ECE305_HW_03_Fall16_P01_YZHOU26.pg b/Contrib/NCSU/Power/ECE305_HW_03_Fall16_P01_YZHOU26.pg index 0ebf54ade2..46b645b81d 100644 --- a/Contrib/NCSU/Power/ECE305_HW_03_Fall16_P01_YZHOU26.pg +++ b/Contrib/NCSU/Power/ECE305_HW_03_Fall16_P01_YZHOU26.pg @@ -26,7 +26,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -36,10 +36,10 @@ TEXT(beginproblem()); Context("Complex"); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.5f#"; +Context()->{format}{number} = "%.5f#"; #Initialize element values, to be changed for each question -$N=random(500,1500,100); +$N=random(500,1500,100); $g=random(0.5,2,0.1); #cm $Ac=random(1000,3000,100);#cm^2 $lc=random(30,50,5);#cm @@ -69,13 +69,13 @@ The magnetic structure of a synchronous machine is shown in the figure. If the a \( N=$N turns, g=$g cm, A_c=$Ac cm^2, l_c=$lc cm, l_{c1}=$lc1 cm \).$PAR a) Find the current. $BR -\(i =\) \{ans_rule(10)\} \( A\). \{AnswerFormatHelp("numbers") \}$PAR +\(i =\) \{ans_rule(10)\} \( A\). \{helpLink("numbers") \}$PAR b) What is the coil inductance. $BR -\(L =\) \{ans_rule(10)\} \( H\). \{AnswerFormatHelp("numbers") \}$PAR +\(L =\) \{ans_rule(10)\} \( H\). \{helpLink("numbers") \}$PAR c) What is the energy stored in the field. $BR -\( W_f=\) \{ans_rule(10)\} \( J\). \{AnswerFormatHelp("numbers") \}$PAR +\( W_f=\) \{ans_rule(10)\} \( J\). \{helpLink("numbers") \}$PAR $PAR @@ -122,4 +122,4 @@ As the core permeability is infinity, \(R_1=R_2=R_3=0\) in the top circuit diagr END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/NCSU/Power/ECE305_HW_03_Fall16_P02_Bzhong2.pg b/Contrib/NCSU/Power/ECE305_HW_03_Fall16_P02_Bzhong2.pg index 5f87d836f3..de562eddc2 100644 --- a/Contrib/NCSU/Power/ECE305_HW_03_Fall16_P02_Bzhong2.pg +++ b/Contrib/NCSU/Power/ECE305_HW_03_Fall16_P02_Bzhong2.pg @@ -26,7 +26,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -37,13 +37,13 @@ Context("Complex"); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.5f#"; +Context()->{format}{number} = "%.5f#"; #Initialize element values, to be changed for each question $ac=random(2,4,0.1); $lc=random(10,30,5); $N=random(50,100,5); -$mu=random(1000,3500,100); +$mu=random(1000,3500,100); $h=random(4,8,0.5); #mH ## Debugging Code Parameters From Textbook @@ -60,7 +60,7 @@ $PAR $PAR An inductor of the form shown in the figure below has dimensions: Cross-sectional area \(A_c = $ac cm^2\), Mean core length \(l_c = $lc cm, N = $N\) turns. Assuming a core permeability of \(\mu= $mu \mu_0\) and neglecting the effects of leakage flux and fringing fields, calculate the air-gap length required to achieve an inductance of $h mH. -The air-gap length \(g =\) \{ans_rule(10)\} mm. \{AnswerFormatHelp("numbers") \}$BR +The air-gap length \(g =\) \{ans_rule(10)\} mm. \{helpLink("numbers") \}$BR $PAR @@ -85,9 +85,9 @@ BEGIN_SOLUTION; $PAR $BBOLD SOLUTION $EBOLD $PAR -\(L = \frac{\lambda}{I} = \frac{N*\phi}{I} = \frac{N*\mathcal{F}}{I(R_c + R_g)} = \frac{\mu_0 A_c N^2}{g+\frac{l_c}{\mu_r}}\) $BR -So air-gap length \(g = \frac{\mu_0 A_c N^2}{L} - \frac{l_c}{\mu_r} = $g mm\)$BR +\(L = \frac{\lambda}{I} = \frac{N*\phi}{I} = \frac{N*\mathcal{F}}{I(R_c + R_g)} = \frac{\mu_0 A_c N^2}{g+\frac{l_c}{\mu_r}}\) $BR +So air-gap length \(g = \frac{\mu_0 A_c N^2}{L} - \frac{l_c}{\mu_r} = $g mm\)$BR END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/NCSU/Power/ECE305_HW_03_Fall16_P03_Bzhong2.pg b/Contrib/NCSU/Power/ECE305_HW_03_Fall16_P03_Bzhong2.pg index 1c2a0575b2..fcaf6b9130 100644 --- a/Contrib/NCSU/Power/ECE305_HW_03_Fall16_P03_Bzhong2.pg +++ b/Contrib/NCSU/Power/ECE305_HW_03_Fall16_P03_Bzhong2.pg @@ -22,7 +22,7 @@ loadMacros("PG.pl", "PGauxiliaryFunctions.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + ); TEXT(beginproblem()); @@ -68,39 +68,39 @@ The magnetic circuit in the figure below has two windings and two air gaps. The \(\mu_0 = 4 \cdot \pi \cdot 10^{-7}\) $BR a) Assuming coil 1 to be carrying a current I1 and the current in coil 2 to be zero, calculate $BR (i) The magnetic flux density in each of the air gaps : $BR -\(B_{g1} = \) \{ans_rule(10)\} \{AnswerFormatHelp("numbers") \}$BR -\(B_{g2} = \) \{ans_rule(10)\} \{AnswerFormatHelp("numbers") \}$BR +\(B_{g1} = \) \{ans_rule(10)\} \{helpLink("numbers") \}$BR +\(B_{g2} = \) \{ans_rule(10)\} \{helpLink("numbers") \}$BR (ii) The flux linkage of winding l $BR -\(\lambda_1 = \) \{ans_rule(10)\} \{AnswerFormatHelp("numbers") \}$BR +\(\lambda_1 = \) \{ans_rule(10)\} \{helpLink("numbers") \}$BR (iii)The flux linkage of winding 2$BR -\(\lambda_2 = \) \{ans_rule(10)\} \{AnswerFormatHelp("numbers") \}$BR +\(\lambda_2 = \) \{ans_rule(10)\} \{helpLink("numbers") \}$BR $PAR b) Assuming zero current in winding 1 and a current I2 in winding 2, calculate $BR (i) The magnetic flux density in each of the air gaps : $BR -\(B_{g1} = \) \{ans_rule(10)\} \{AnswerFormatHelp("numbers") \}$BR -\(B_{g2} = \) \{ans_rule(10)\} \{AnswerFormatHelp("numbers") \}$BR +\(B_{g1} = \) \{ans_rule(10)\} \{helpLink("numbers") \}$BR +\(B_{g2} = \) \{ans_rule(10)\} \{helpLink("numbers") \}$BR (ii) The flux linkage of winding l $BR -\(\lambda_1 = \) \{ans_rule(10)\} \{AnswerFormatHelp("numbers") \}$BR +\(\lambda_1 = \) \{ans_rule(10)\} \{helpLink("numbers") \}$BR (iii)The flux linkage of winding 2$BR -\(\lambda_2 = \) \{ans_rule(10)\} \{AnswerFormatHelp("numbers") \}$BR +\(\lambda_2 = \) \{ans_rule(10)\} \{helpLink("numbers") \}$BR $PAR c)Assuming the current in winding 1 to be I1 and the current in winding 2 to be I2, calculate $BR (i) The magnetic flux density in each of the air gaps : $BR -\(B_{g1} = \) \{ans_rule(10)\} \{AnswerFormatHelp("numbers") \}$BR -\(B_{g2} = \) \{ans_rule(10)\} \{AnswerFormatHelp("numbers") \}$BR +\(B_{g1} = \) \{ans_rule(10)\} \{helpLink("numbers") \}$BR +\(B_{g2} = \) \{ans_rule(10)\} \{helpLink("numbers") \}$BR (ii) The flux linkage of winding l $BR -\(\lambda_1 = \) \{ans_rule(10)\} \{AnswerFormatHelp("numbers") \}$BR +\(\lambda_1 = \) \{ans_rule(10)\} \{helpLink("numbers") \}$BR (iii)The flux linkage of winding 2$BR -\(\lambda_2 = \) \{ans_rule(10)\} \{AnswerFormatHelp("numbers") \}$BR +\(\lambda_2 = \) \{ans_rule(10)\} \{helpLink("numbers") \}$BR $PAR -d)Find the self-inductances of windings 1 and 2 and the mutual inductance between the windings. $BR -\(L_{11} = \) \{ans_rule(10)\} H \{AnswerFormatHelp("numbers") \}$BR -\(L_{22} = \) \{ans_rule(10)\} H \{AnswerFormatHelp("numbers") \}$BR -\(L_{12} = \) \{ans_rule(10)\} H \{AnswerFormatHelp("numbers") \}$BR -\(L_{21} = \) \{ans_rule(10)\} H \{AnswerFormatHelp("numbers") \}$BR +d)Find the self-inductances of windings 1 and 2 and the mutual inductance between the windings. $BR +\(L_{11} = \) \{ans_rule(10)\} H \{helpLink("numbers") \}$BR +\(L_{22} = \) \{ans_rule(10)\} H \{helpLink("numbers") \}$BR +\(L_{12} = \) \{ans_rule(10)\} H \{helpLink("numbers") \}$BR +\(L_{21} = \) \{ans_rule(10)\} H \{helpLink("numbers") \}$BR END_TEXT Context()->normalStrings; @@ -155,39 +155,39 @@ $PAR $BBOLD SOLUTION $EBOLD a) Assuming coil 1 to be carrying a current I1 and the current in coil 2 to be zero, calculate $BR (i) The magnetic flux density in each of the air gaps : $BR -\(B_{g1} = \) $bg1a $BR -\(B_{g2} = \) $bg2a $BR +\(B_{g1} = \) $bg1a $BR +\(B_{g2} = \) $bg2a $BR (ii) The flux linkage of winding l $BR -\(\lambda_1 = \) $lambda1a $BR +\(\lambda_1 = \) $lambda1a $BR (iii)The flux linkage of winding 2$BR -\(\lambda_2 = \) $lambda2a $BR +\(\lambda_2 = \) $lambda2a $BR $PAR b) Assuming zero current in winding 1 and a current I2 in winding 2, calculate $BR (i) The magnetic flux density in each of the air gaps : $BR -\(B_{g1} = \) $bg1b $BR -\(B_{g2} = \) $bg2b $BR +\(B_{g1} = \) $bg1b $BR +\(B_{g2} = \) $bg2b $BR (ii) The flux linkage of winding l $BR -\(\lambda_1 = \) $lambda1b $BR +\(\lambda_1 = \) $lambda1b $BR (iii)The flux linkage of winding 2$BR -\(\lambda_2 = \) $lambda2b $BR +\(\lambda_2 = \) $lambda2b $BR $PAR c)Assuming the current in winding 1 to be I1 and the current in winding 2 to be I2, calculate $BR (i) The magnetic flux density in each of the air gaps : $BR -\(B_{g1} = \) $bg1c $BR -\(B_{g2} = \) $bg2c $BR +\(B_{g1} = \) $bg1c $BR +\(B_{g2} = \) $bg2c $BR (ii) The flux linkage of winding l $BR -\(\lambda_1 = \) $lambda1c $BR +\(\lambda_1 = \) $lambda1c $BR (iii)The flux linkage of winding 2$BR -\(\lambda_2 = \) $lambda2c $BR +\(\lambda_2 = \) $lambda2c $BR $PAR -d)Find the self-inductances of windings 1 and 2 and the mutual inductance between the windings. $BR -\(L_{11} = \) $L11 H $BR -\(L_{22} = \) $L22 H $BR -\(L_{12} = \) $L12 H $BR -\(L_{21} = \) $L12 H $BR +d)Find the self-inductances of windings 1 and 2 and the mutual inductance between the windings. $BR +\(L_{11} = \) $L11 H $BR +\(L_{22} = \) $L22 H $BR +\(L_{12} = \) $L12 H $BR +\(L_{21} = \) $L12 H $BR END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/NCSU/Power/ECE305_HW_04_Fall16_P01.pg b/Contrib/NCSU/Power/ECE305_HW_04_Fall16_P01.pg index 84b113c153..23be7cacdb 100644 --- a/Contrib/NCSU/Power/ECE305_HW_04_Fall16_P01.pg +++ b/Contrib/NCSU/Power/ECE305_HW_04_Fall16_P01.pg @@ -28,7 +28,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -38,11 +38,11 @@ TEXT(beginproblem()); Context("Complex"); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.5f#"; +Context()->{format}{number} = "%.5f#"; #Initialize element values, to be changed for each question -$Pva =random(5,15,1); #kVA -$Vpr=1000; +$Pva =random(5,15,1); #kVA +$Vpr=1000; $Vsec=500; $Freq=60; $R1=random(1.5,3,0.1); @@ -104,7 +104,7 @@ $grapha->arrowTo($i1x,$i1y,"blue",1); $grapha->lb('reset'); $grapha->lb(new Label($i1x,$i1y,"Vector A",'blue','left','top')); $grapha->lb(new Label($i2x,$i2y,"Vector B",'blue','right','bottom')); -$figa = image(insertGraph($grapha),width => 400,height => 250,tex_size => 400); +$figa = image(insertGraph($grapha),width => 400,height => 250,tex_size => 400); $popupAa = PopUp(["?", "i1", "i2","V1", "V2","iC", "im"], "V1"); $popupAb = PopUp(["?", "i1", "i2","V1", "V2","iC", "im"], "i1"); $popupAc = PopUp(["?", "i1", "i2","V1", "V2","iC", "im"], "i2"); @@ -115,30 +115,30 @@ BEGIN_TEXT $PAR A transformer is rated \( $Pva kVA\), \($Vpr-$Vsec V \), \($Freq Hz \). The equivalent circuit parameters are found to be: $BR -The primary impedance is \( R_1 =$R1 \Omega; X_1=$X1 \Omega \); $BR +The primary impedance is \( R_1 =$R1 \Omega; X_1=$X1 \Omega \); $BR The secondary impedance is \( R_2 =$R2 \Omega; X_2=$X2 \Omega \); $BR The exciting admittance is \( G_c =$Gc \mu S; B_m=$Bm \mu S \); $PAR -Use the approximate nonideal model ("cantilever" model) discussed in class to solve this problem. Draw your own equivalent circuit diagram on a piece of paper following the labelling convention used in class, and be sure that you can draw the equivalent diagram in the exams. +Use the approximate nonideal model ("cantilever" model) discussed in class to solve this problem. Draw your own equivalent circuit diagram on a piece of paper following the labelling convention used in class, and be sure that you can draw the equivalent diagram in the exams. $PAR a) What is the primary voltage if the transformer delivers rated kVA, \($pf \) P.F. leading, at rated voltage to a load. $BR -\(\tilde{V}_{1} =\) \{ans_rule(10)\} \(\angle\) \{ans_rule(10)\} \(^{\circ} V\). \{AnswerFormatHelp("numbers") \}$PAR +\(\tilde{V}_{1} =\) \{ans_rule(10)\} \(\angle\) \{ans_rule(10)\} \(^{\circ} V\). \{helpLink("numbers") \}$PAR b)The plot below represents the phaser diagram for the circuit with horizontal axis as the reference for voltage \( \tilde{V}_2 \).$BR \{image("ECE305_hw4_1.png",height=>200, width=>300)\} $BR $BR Note that the phasers in the diagram are not in scale but the relative phase and magnitude relationship between the phasers are maintained. Denote \( \tilde{V}_1 \) as "V1", \( \tilde{i}_1 \) as "i1", and \( \tilde{i}_m \) as "im" etc.. Answer the following questions about the phasor diagram. $BR -Vector \( A \) represents \{ $popupAa ->menu() \}. $BR +Vector \( A \) represents \{ $popupAa ->menu() \}. $BR Vector \( B \) represents \{ $popupAb ->menu() \}. $BR Vector \( C \) represents \{ $popupAc ->menu() \}. $BR Vector \( D \) represents \{ $popupAd ->menu() \}. $BR Be sure you can draw the phaser diagram if required in the exam. $PAR c) Calculate the net hysteresis and eddy-current loss $PAR -\(P_{loss} =\) \{ans_rule(10)\} \( W\). \{AnswerFormatHelp("numbers") \} $BR +\(P_{loss} =\) \{ans_rule(10)\} \( W\). \{helpLink("numbers") \} $BR d) Calculate the vars required to setup the core field $PAR -\(Q_{mag} =\) \{ans_rule(10)\} \( VAr\). \{AnswerFormatHelp("numbers") \} $BR +\(Q_{mag} =\) \{ans_rule(10)\} \( VAr\). \{helpLink("numbers") \} $BR e) Calculate the vars required to setup the leakage field $PAR -\(Q_{leak} =\) \{ans_rule(10)\} \(VAr\). \{AnswerFormatHelp("numbers") \} $PAR +\(Q_{leak} =\) \{ans_rule(10)\} \(VAr\). \{helpLink("numbers") \} $PAR f) Calculate the efficiency of the transformer at rated kVA, \($pf \) P.F. leading. $BR -\( \eta =\) \{ans_rule(10)\} \(%\). \{AnswerFormatHelp("numbers") \} $BR +\( \eta =\) \{ans_rule(10)\} \(%\). \{helpLink("numbers") \} $BR $PAR @@ -193,4 +193,4 @@ Based on the phase relationship, it is obvious that Vector A is \( \tilde{V}_2\) END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/NCSU/Power/ECE305_HW_04_Fall16_P02.pg b/Contrib/NCSU/Power/ECE305_HW_04_Fall16_P02.pg index fd1b91d6a2..a48fdfd87a 100644 --- a/Contrib/NCSU/Power/ECE305_HW_04_Fall16_P02.pg +++ b/Contrib/NCSU/Power/ECE305_HW_04_Fall16_P02.pg @@ -27,7 +27,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -37,11 +37,11 @@ TEXT(beginproblem()); Context("Complex"); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.5f#"; +Context()->{format}{number} = "%.5f#"; #Initialize element values, to be changed for each question -$Pva =random(5,15,1); #kVA -$Vpr=2300; +$Pva =random(5,15,1); #kVA +$Vpr=2300; $Vsec=230; $R1=random(3,5,0.1); $X1=random(5,8,0.1); @@ -86,12 +86,12 @@ Consider that the secondary of the transformer is not connected to a load (open- Draw your own equivalent circuit diagram on a piece of paper following the labelling convention in class, and be sure that you can draw the equivalent diagram in the exams. $PAR (a) Find the transformer primary side current magnitude \( | I_1| \) (This is the excitation current) : $BR - \( | \tilde{I}_1| =\)\{ans_rule(10)\} \(A\). \{AnswerFormatHelp("numbers") \}$PAR + \( | \tilde{I}_1| =\)\{ans_rule(10)\} \(A\). \{helpLink("numbers") \}$PAR Now a load of value \($Zld \Omega \) is connected to the secondary side. With the load in the circuit, calculate: $BR (b) The transformer secondary side voltage magnitude |V2| : $BR - \( | \tilde{V}_2| =\)\{ans_rule(10)\} \(V\). \{AnswerFormatHelp("numbers") \}$PAR + \( | \tilde{V}_2| =\)\{ans_rule(10)\} \(V\). \{helpLink("numbers") \}$PAR (c) The total transformer losses (core and winding) in Watts for this load condition: $BR -\( P_{loss} =\)\{ans_rule(10)\} \(W\). \{AnswerFormatHelp("numbers") \}$BR +\( P_{loss} =\)\{ans_rule(10)\} \(W\). \{helpLink("numbers") \}$BR END_TEXT Context()->normalStrings; @@ -128,8 +128,8 @@ b) When the load of \($Zld \Omega \) is connected, where $BR \( R+jX=R2+\frac{X2}{a^2}+R1+\frac{X1}{a^2}\) $BR Substituting in the values: -\( |\tilde{V}_2|=$modV2 V \) $BR -c) +\( |\tilde{V}_2|=$modV2 V \) $BR +c) \(|I_2|=| \frac{V_2}{Z_{load}} |=$modI2 A\) $BR The total transformer loss is $BR @@ -141,4 +141,4 @@ The total transformer loss is $BR END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/NCSU/Power/ECE305_HW_04_Fall16_P03.pg b/Contrib/NCSU/Power/ECE305_HW_04_Fall16_P03.pg index 301c0fa3a3..8b9d777eb2 100644 --- a/Contrib/NCSU/Power/ECE305_HW_04_Fall16_P03.pg +++ b/Contrib/NCSU/Power/ECE305_HW_04_Fall16_P03.pg @@ -27,7 +27,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -38,11 +38,11 @@ Context("Complex"); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.5f#"; +Context()->{format}{number} = "%.5f#"; #Initialize element values, to be changed for each question -$Pva =random(800,1500,100); #VA -$Vpr=240; +$Pva =random(800,1500,100); #VA +$Vpr=240; $Vsec=120; $Voc=$Vsec; $ioc=random(0.15,0.3,0.01); #A @@ -53,7 +53,7 @@ $Psc=random(9,15,0.1); #W $pf=random(0.75,0.85,0.01); #W ## Debugging Code Parameters From Textbook -#$Pva =1000;$ioc=0.2;$Poc=5.2;$Vsc=10.8; $isc=4.15;$Psc=11.8;$pf=0.8; +#$Pva =1000;$ioc=0.2;$Poc=5.2;$Vsc=10.8; $isc=4.15;$Psc=11.8;$pf=0.8; # Answer calculation #Part a) @@ -106,22 +106,22 @@ A \($Pva\)-kVA, \($Vpr/$Vsec\)-V transformer has been tested to determine its eq Draw your own equivalent circuit diagram on a piece of paper following the labelling convention used in class, and be sure that you can draw the equivalent diagram in the exams. $PAR (a) Find the equivalent circuit parameters for this transformer referred to the low-voltage side of the transformer: $BR - \( R_c=\)\{ans_rule(10)\} \(k \Omega\). \{AnswerFormatHelp("numbers") \} $BR - \( X_m=\)\{ans_rule(10)\} \(k \Omega\). \{AnswerFormatHelp("numbers") \}$BR - \( R=\)\{ans_rule(10)\} \(\Omega\). \{AnswerFormatHelp("numbers") \}$BR - \( X=\)\{ans_rule(10)\} \(\Omega\). \{AnswerFormatHelp("numbers") \}$BR + \( R_c=\)\{ans_rule(10)\} \(k \Omega\). \{helpLink("numbers") \} $BR + \( X_m=\)\{ans_rule(10)\} \(k \Omega\). \{helpLink("numbers") \}$BR + \( R=\)\{ans_rule(10)\} \(\Omega\). \{helpLink("numbers") \}$BR + \( X=\)\{ans_rule(10)\} \(\Omega\). \{helpLink("numbers") \}$BR $PAR (b) Find the equivalent circuit for this transformer in per-unit: $BR - \( R_{c,pu}=\)\{ans_rule(10)\} \(P.U.\)\{AnswerFormatHelp("numbers") \} $BR - \( X_{m,pu}=\)\{ans_rule(10)\}\(P.U.\) \{AnswerFormatHelp("numbers") \}$BR - \( R_{pu}=\)\{ans_rule(10)\}\(P.U.\) \{AnswerFormatHelp("numbers") \}$BR - \( X_{pu}=\)\{ans_rule(10)\}\(P.U.\) \{AnswerFormatHelp("numbers") \}$BR + \( R_{c,pu}=\)\{ans_rule(10)\} \(P.U.\)\{helpLink("numbers") \} $BR + \( X_{m,pu}=\)\{ans_rule(10)\}\(P.U.\) \{helpLink("numbers") \}$BR + \( R_{pu}=\)\{ans_rule(10)\}\(P.U.\) \{helpLink("numbers") \}$BR + \( X_{pu}=\)\{ans_rule(10)\}\(P.U.\) \{helpLink("numbers") \}$BR $PAR (c) Calculate the voltage regulation at rated load conditions for (i) \($pf\) PF leading and (ii) \($pf\) PF lagging. Do this using per unit calculations: $BR -\( V.R._{$pf leading} =\)\{ans_rule(10)\}. \{AnswerFormatHelp("numbers") \}$BR -\( V.R._{$pf lagging} =\)\{ans_rule(10)\}. \{AnswerFormatHelp("numbers") \}$PAR +\( V.R._{$pf leading} =\)\{ans_rule(10)\}. \{helpLink("numbers") \}$BR +\( V.R._{$pf lagging} =\)\{ans_rule(10)\}. \{helpLink("numbers") \}$PAR (d) Determine the transformer's efficiency at rated load conditions at \($pf\) PF lagging $BR -\( \eta =\)\{ans_rule(10)\} \(%\). \{AnswerFormatHelp("numbers") \}$BR +\( \eta =\)\{ans_rule(10)\} \(%\). \{helpLink("numbers") \}$BR $R2test END_TEXT Context()->normalStrings; @@ -188,4 +188,4 @@ $PAR END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/NCSU/Power/ECE305_HW_05_Fall16_P01.pg b/Contrib/NCSU/Power/ECE305_HW_05_Fall16_P01.pg index ab0209843f..e93b9e200a 100644 --- a/Contrib/NCSU/Power/ECE305_HW_05_Fall16_P01.pg +++ b/Contrib/NCSU/Power/ECE305_HW_05_Fall16_P01.pg @@ -30,7 +30,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -40,13 +40,13 @@ TEXT(beginproblem()); Context("Complex"); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.5f#"; +Context()->{format}{number} = "%.5f#"; #Initialize element values, to be changed for each question -$Vpr=random(6.4,7.6,0.1); #kV +$Vpr=random(6.4,7.6,0.1); #kV $Vse=random(180,230,1); #V $Sr=random(300,350,1);#kVA -$Vprd=random(10,16,1); #kV +$Vprd=random(10,16,1); #kV ## Debugging Code Parameters From Textbook $Vpr=7.2; $Vse=208; $Sr=333; $Vprd=13; @@ -143,4 +143,4 @@ $PAR END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/NCSU/Power/ECE305_HW_05_Fall16_P02.pg b/Contrib/NCSU/Power/ECE305_HW_05_Fall16_P02.pg index 43e8a3554b..5b25e2f6b9 100644 --- a/Contrib/NCSU/Power/ECE305_HW_05_Fall16_P02.pg +++ b/Contrib/NCSU/Power/ECE305_HW_05_Fall16_P02.pg @@ -28,7 +28,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -38,7 +38,7 @@ TEXT(beginproblem()); Context("Complex"); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.5f#"; +Context()->{format}{number} = "%.5f#"; #Initialize element values, to be changed for each question $V1=random(10,14,0.5); #kV @@ -91,27 +91,27 @@ $V1 - $V2 kV $BR $S1 kVA $BR Pcore = $Pc kW; Qcore = $Qc kVARs [obtained from open circuit test at rated voltage] $BR Req2 = \( $Req2 \Omega\) ; Xeq2 = \($Xeq2 \Omega \) [referred to the low side] $PAR -(a) Determine the three-phase bank power and voltage ratings. $BR -\(S_{rat} =\) \{ans_rule(10)\} \( kVA\). \{AnswerFormatHelp("numbers") \} $BR -\(V_{pri} =\)\{ans_rule(10)\} \( kV\). \{AnswerFormatHelp("numbers") \} $BR -\(V_{sec} =\)\{ans_rule(10)\} \( kV\). \{AnswerFormatHelp("numbers") \} $PAR +(a) Determine the three-phase bank power and voltage ratings. $BR +\(S_{rat} =\) \{ans_rule(10)\} \( kVA\). \{helpLink("numbers") \} $BR +\(V_{pri} =\)\{ans_rule(10)\} \( kV\). \{helpLink("numbers") \} $BR +\(V_{sec} =\)\{ans_rule(10)\} \( kV\). \{helpLink("numbers") \} $PAR (b) Sketch the per-phase equivalent circuit to the high-voltage side on a piece of paper and find the numerical values according to the labelling convention used in class $BR -\(R_{eq,pri} =\) \{ans_rule(10)\} \( \Omega \). \{AnswerFormatHelp("numbers") \} $BR -\(X_{eq,pri} =\)\{ans_rule(10)\} \(\Omega\). \{AnswerFormatHelp("numbers") \} $BR -\(R_{c,pri} =\)\{ans_rule(10)\} \( k \Omega \). \{AnswerFormatHelp("numbers") \} $BR -\(X_{m,pri} =\)\{ans_rule(10)\} \( k \Omega \). \{AnswerFormatHelp("numbers") \} $PAR +\(R_{eq,pri} =\) \{ans_rule(10)\} \( \Omega \). \{helpLink("numbers") \} $BR +\(X_{eq,pri} =\)\{ans_rule(10)\} \(\Omega\). \{helpLink("numbers") \} $BR +\(R_{c,pri} =\)\{ans_rule(10)\} \( k \Omega \). \{helpLink("numbers") \} $BR +\(X_{m,pri} =\)\{ans_rule(10)\} \( k \Omega \). \{helpLink("numbers") \} $PAR (c) Sketch the per-phase equivalent circuit to the low-voltage side on a piece of paper and find the numerical values according to the labelling convention used in class $BR -\(R_{c,sec} =\) \{ans_rule(10)\} \( k \Omega \). \{AnswerFormatHelp("numbers") \} $BR -\(X_{m,sec} =\)\{ans_rule(10)\} \( k \Omega \). \{AnswerFormatHelp("numbers") \} $PAR +\(R_{c,sec} =\) \{ans_rule(10)\} \( k \Omega \). \{helpLink("numbers") \} $BR +\(X_{m,sec} =\)\{ans_rule(10)\} \( k \Omega \). \{helpLink("numbers") \} $PAR (d) Determine the three-phase bank efficiency at rated load and rated voltage, $pf power factor lagging $BR -\(\eta = \) \{ans_rule(10)\} \( % \) \{AnswerFormatHelp("numbers") \} $PAR +\(\eta = \) \{ans_rule(10)\} \( % \) \{helpLink("numbers") \} $PAR (e) Determine the voltage regulation assuming a power factor of $pf lagging $BR -\(V.R. = \) \{ans_rule(10)\} \( %\) \{AnswerFormatHelp("numbers") \} $BR +\(V.R. = \) \{ans_rule(10)\} \( %\) \{helpLink("numbers") \} $BR $PAR END_TEXT @@ -190,4 +190,4 @@ Part e) $BR END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/NCSU/Power/ECE305_HW_05_Fall16_P03.pg b/Contrib/NCSU/Power/ECE305_HW_05_Fall16_P03.pg index 1e721a9ff3..799e09f45e 100644 --- a/Contrib/NCSU/Power/ECE305_HW_05_Fall16_P03.pg +++ b/Contrib/NCSU/Power/ECE305_HW_05_Fall16_P03.pg @@ -28,7 +28,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -38,7 +38,7 @@ TEXT(beginproblem()); Context("Complex"); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.5f#"; +Context()->{format}{number} = "%.5f#"; #Initialize element values, to be changed for each question $S1=random(80,120,5); #kVA @@ -82,11 +82,11 @@ $PAR Three single-phase, $S1 kVA, $V1/$V2 V, $freq Hz transformers are connected to form a three-phase, $V1/$V2 V transformer bank. The equivalent impedance of each transformer referred to its low voltage side is \( $R2+$X2 \cdot j m \Omega \). The transformer is connected to a three-phase source through three-phase feeders, the impedance of each feeder being \($Rl+$Xl \cdot j \Omega\). The transformer delivers full load at \( $V2 V \)and \($pf \) pf (lagging). $PAR a) The transformer should be connected in a \{ $popupA ->menu() \} - \{ $popupB ->menu() \} configuration. $PAR b) Sketch the per-phase Wye equivalent circuit on a piece of paper, and determine the element values. Represent the load as the equivalent impedance. $BR -\(Z_{line,primary} =\) \{ans_rule(10)\} \( \Omega \). \{AnswerFormatHelp("numbers") \} $BR -\(Z_{transformer,secondary} =\)\{ans_rule(10)\} \( \Omega \). \{AnswerFormatHelp("numbers") \} $BR -\(Z_{load,secondary} =\)\{ans_rule(10)\} \( \Omega \). \{AnswerFormatHelp("numbers") \} $PAR +\(Z_{line,primary} =\) \{ans_rule(10)\} \( \Omega \). \{helpLink("numbers") \} $BR +\(Z_{transformer,secondary} =\)\{ans_rule(10)\} \( \Omega \). \{helpLink("numbers") \} $BR +\(Z_{load,secondary} =\)\{ans_rule(10)\} \( \Omega \). \{helpLink("numbers") \} $PAR c) Determine the high voltage side line voltage of the three-phase source (rms). $BR -\(V_{1,L} =\)\{ans_rule(10)\} \(\angle\) \{ans_rule(10)\} \( ^{\circ} kV \). \{AnswerFormatHelp("numbers") \} $PAR +\(V_{1,L} =\)\{ans_rule(10)\} \(\angle\) \{ans_rule(10)\} \( ^{\circ} kV \). \{helpLink("numbers") \} $PAR END_TEXT Context()->normalStrings; @@ -141,4 +141,4 @@ This is a Delta-Delta transformer. $BR END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/NCSU/Power/ECE305_HW_05_Fall16_P04.pg b/Contrib/NCSU/Power/ECE305_HW_05_Fall16_P04.pg index 076d4d6a35..46f6ed131a 100644 --- a/Contrib/NCSU/Power/ECE305_HW_05_Fall16_P04.pg +++ b/Contrib/NCSU/Power/ECE305_HW_05_Fall16_P04.pg @@ -30,7 +30,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -40,10 +40,10 @@ TEXT(beginproblem()); Context("Complex"); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.5f#"; +Context()->{format}{number} = "%.5f#"; #Initialize element values, to be changed for each question -$Vpr=random(1500,2000,1); #V +$Vpr=random(1500,2000,1); #V $Vse=random(400,600,1); #V $Freq=random(50,60); #Hz $Sr=random(20,40,1);#kVA @@ -77,14 +77,14 @@ BEGIN_TEXT $PAR A three-phase \( Y- \Delta \) step down transformer is rated at $Sr kVA, $Vpr:$Vse V, $Freq Hz. The transformer impedance referred to the high side is shown in the diagram below. The magnetizing branch has been ignored. $BR \{image("ECE305_hw5_4.png",height=>200, width=>400)\} $BR - -A synchronous motor rated at $Sr kVA, $Vse V is connected to the secondary of the transformer. The motor operates at the motor rated voltage and power, power factor $pf lagging. Calculate + +A synchronous motor rated at $Sr kVA, $Vse V is connected to the secondary of the transformer. The motor operates at the motor rated voltage and power, power factor $pf lagging. Calculate (a) rms values V1 and I1, and V2. $BR -\(V_{1,rms} =\) \{ans_rule(10)\} \(\angle \) \{ans_rule(10)\} \(^{\circ} kV\) \{AnswerFormatHelp("numbers") \} $BR -\(I_{1,rms} =\)\{ans_rule(10)\} \(\angle \) \{ans_rule(10)\} \(^{\circ} A\) \{AnswerFormatHelp("numbers") \} $BR -\(V_{2,rms} =\)\{ans_rule(10)\} \(\angle \) \{ans_rule(10)\} \(^{\circ} V\) \{AnswerFormatHelp("numbers") \} $BR +\(V_{1,rms} =\) \{ans_rule(10)\} \(\angle \) \{ans_rule(10)\} \(^{\circ} kV\) \{helpLink("numbers") \} $BR +\(I_{1,rms} =\)\{ans_rule(10)\} \(\angle \) \{ans_rule(10)\} \(^{\circ} A\) \{helpLink("numbers") \} $BR +\(V_{2,rms} =\)\{ans_rule(10)\} \(\angle \) \{ans_rule(10)\} \(^{\circ} V\) \{helpLink("numbers") \} $BR (b) the input power factor (i.e. power factor at the three-phase source determined by the phase angle between I1 and V1).$BR -\(P.F._{input} \)=\{ans_rule(10)\} \{AnswerFormatHelp("numbers") \} $BR +\(P.F._{input} \)=\{ans_rule(10)\} \{helpLink("numbers") \} $BR $PAR @@ -128,4 +128,4 @@ The input power factor is $pf1. END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/NCSU/Power/ECE305_HW_06_Fall16_P01.pg b/Contrib/NCSU/Power/ECE305_HW_06_Fall16_P01.pg index 453689aae1..f85277e65b 100644 --- a/Contrib/NCSU/Power/ECE305_HW_06_Fall16_P01.pg +++ b/Contrib/NCSU/Power/ECE305_HW_06_Fall16_P01.pg @@ -29,7 +29,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -43,7 +43,7 @@ tolType => "absolute", ); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; #Initialize element values, to be changed for each question $R=random(0.2,0.8,0.1); @@ -76,14 +76,14 @@ A simple conductor with a resistance between the end points of \($R \Omega\) is \{image("ECE305_hw6_1.png",height=>150, width=>300)\} $BR $PAR -a)\(F_{Lorentz}=\)\{ans_rule(10)\} \(N \) \{AnswerFormatHelp("numbers") \} $BR +a)\(F_{Lorentz}=\)\{ans_rule(10)\} \(N \) \{helpLink("numbers") \} $BR b)The direction of the Lorentz force is \{ $popupB ->menu() \} $BR -c)The Faraday emf is \{ans_rule(10)\} \(V \) \{AnswerFormatHelp("numbers") \} $BR -d)The direction of the Faraday emf is \{ $popupD ->menu() \} $BR +c)The Faraday emf is \{ans_rule(10)\} \(V \) \{helpLink("numbers") \} $BR +d)The direction of the Faraday emf is \{ $popupD ->menu() \} $BR e)This machine is a \{ $popupE ->menu() \} $BR -f) The electrical power involved in this process is \{ans_rule(10)\} \(W \) \{AnswerFormatHelp("numbers") \} $BR -g)This power is \{ $popupG ->menu() \} by the machine $BR -h)The mechanical power involved in this process is \{ans_rule(10)\} \(W \) \{AnswerFormatHelp("numbers") \} $BR +f) The electrical power involved in this process is \{ans_rule(10)\} \(W \) \{helpLink("numbers") \} $BR +g)This power is \{ $popupG ->menu() \} by the machine $BR +h)The mechanical power involved in this process is \{ans_rule(10)\} \(W \) \{helpLink("numbers") \} $BR i)The machine is \{ $popupI ->menu() \} the mechanical power $BR END_TEXT @@ -128,4 +128,4 @@ As a motor, the mechanical power is supplied by the machine. END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/NCSU/Power/ECE305_HW_06_Fall16_P02.pg b/Contrib/NCSU/Power/ECE305_HW_06_Fall16_P02.pg index 996989c785..8189bccf1a 100644 --- a/Contrib/NCSU/Power/ECE305_HW_06_Fall16_P02.pg +++ b/Contrib/NCSU/Power/ECE305_HW_06_Fall16_P02.pg @@ -29,7 +29,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -43,7 +43,7 @@ tolType => "absolute", ); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; #Initialize element values, to be changed for each question $R=random(0.2,0.8,0.1); @@ -72,10 +72,10 @@ BEGIN_TEXT \{image("ECE305_hw6_2.png",height=>150, width=>200)\} $BR The linear machine illustrated in the figure above has a magnetic flux density of \(B=$B T \), a conductor resistance of \($R \Omega\) and a conductor bar length of \($Len m \). The battery is represented by the voltage source symbol. The lines of the magnetic flux density B are perpendicular to the conductor. For the circuit shown above operating in a motor mode, you want to move the bar at \(u=$u m/s \) and drive a mechanical load force of \(f_{load}=$F N \). Windage and friction force can be neglected. Determine: $BR -a) The voltage source required is \{ans_rule(10)\} \(V \) \{AnswerFormatHelp("numbers") \} $BR -b) The power delivered by the source in steady-state is \{ans_rule(10)\} \(W \) \{AnswerFormatHelp("numbers") \} $BR -c) The starting current for the voltage calculated in part a) is \{ans_rule(10)\} \(A \) \{AnswerFormatHelp("numbers") \} $BR -d) For the voltage calculated in part a) and a mechanical load of \(f_{load}=$F N\), if the air gap flux density B is cut in half, the new steady-state speed of the bar \(v_1\) is \{ans_rule(10)\} \(m/s \) \{AnswerFormatHelp("numbers") \} $BR +a) The voltage source required is \{ans_rule(10)\} \(V \) \{helpLink("numbers") \} $BR +b) The power delivered by the source in steady-state is \{ans_rule(10)\} \(W \) \{helpLink("numbers") \} $BR +c) The starting current for the voltage calculated in part a) is \{ans_rule(10)\} \(A \) \{helpLink("numbers") \} $BR +d) For the voltage calculated in part a) and a mechanical load of \(f_{load}=$F N\), if the air gap flux density B is cut in half, the new steady-state speed of the bar \(v_1\) is \{ans_rule(10)\} \(m/s \) \{helpLink("numbers") \} $BR END_TEXT Context()->normalStrings; @@ -121,4 +121,4 @@ Repeat the similar process for \( \frac{B}{2}\), $BR END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/NCSU/Power/ECE305_HW_06_Fall16_P03.pg b/Contrib/NCSU/Power/ECE305_HW_06_Fall16_P03.pg index 9d99e9cfea..f83f489840 100644 --- a/Contrib/NCSU/Power/ECE305_HW_06_Fall16_P03.pg +++ b/Contrib/NCSU/Power/ECE305_HW_06_Fall16_P03.pg @@ -29,7 +29,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -43,7 +43,7 @@ tolType => "absolute", ); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; #Initialize element values, to be changed for each question $R=random(0.2,0.8,0.1); @@ -78,27 +78,27 @@ A horizontal copper bar slides up and down along two perfectly conducting, frict \{image("ECE305_hw6_3.png",height=>200, width=>150)\} $BR $PAR -A uniform flux density \(B=$B Wb/m^2 \), is directed into the screen. The length, resistance, and weight of the bar are given as: \(L=$Len m, R=$R \Omega, W=mg=$W N \). $BR +A uniform flux density \(B=$B Wb/m^2 \), is directed into the screen. The length, resistance, and weight of the bar are given as: \(L=$Len m, R=$R \Omega, W=mg=$W N \). $BR Answer the following questions about this system: $BR a) If the bar is to move upward at a constant velocity of 10.0 m/s,$BR - \(V\)=\{ans_rule(10)\} \(V \) \{AnswerFormatHelp("numbers") \} $BR - \(I\)=\{ans_rule(10)\} \(A \) \{AnswerFormatHelp("numbers") \} $BR - + \(V\)=\{ans_rule(10)\} \(V \) \{helpLink("numbers") \} $BR + \(I\)=\{ans_rule(10)\} \(A \) \{helpLink("numbers") \} $BR + b) How much energy does the battery supply in moving the bar up 1.0 m, $BR - \(W\)=\{ans_rule(10)\} \(J \) \{AnswerFormatHelp("numbers") \} $BR + \(W\)=\{ans_rule(10)\} \(J \) \{helpLink("numbers") \} $BR c) The following is the power diagram showing all powers in the system. $BR \{image("ECE305_hw6_3c.png",height=>200, width=>400)\} $BR Calculate the quantities of all power terms in the diagram. $PAR - \(P_{IN}\)=\{ans_rule(10)\} \(W \) \{AnswerFormatHelp("numbers") \} $BR - \(P_{Cu}\)=\{ans_rule(10)\} \(W \) \{AnswerFormatHelp("numbers") \} $BR - \(P_{E}\)=\{ans_rule(10)\} \(W \) \{AnswerFormatHelp("numbers") \} $BR - \(P_{Core}\)=\{ans_rule(10)\} \(W \) \{AnswerFormatHelp("numbers") \} $BR - \(P_{M}\)=\{ans_rule(10)\} \(W \) \{AnswerFormatHelp("numbers") \} $BR - \(P_{F,WI}\)=\{ans_rule(10)\} \(W \) \{AnswerFormatHelp("numbers") \} $BR - \(P_{OUT}\)=\{ans_rule(10)\} \(W \) \{AnswerFormatHelp("numbers") \} $BR - + \(P_{IN}\)=\{ans_rule(10)\} \(W \) \{helpLink("numbers") \} $BR + \(P_{Cu}\)=\{ans_rule(10)\} \(W \) \{helpLink("numbers") \} $BR + \(P_{E}\)=\{ans_rule(10)\} \(W \) \{helpLink("numbers") \} $BR + \(P_{Core}\)=\{ans_rule(10)\} \(W \) \{helpLink("numbers") \} $BR + \(P_{M}\)=\{ans_rule(10)\} \(W \) \{helpLink("numbers") \} $BR + \(P_{F,WI}\)=\{ans_rule(10)\} \(W \) \{helpLink("numbers") \} $BR + \(P_{OUT}\)=\{ans_rule(10)\} \(W \) \{helpLink("numbers") \} $BR + @@ -166,4 +166,4 @@ By inspecting the power diagram, the student should be able to identify the mean END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/NCSU/Power/ECE305_HW_07_Fall16_P01.pg b/Contrib/NCSU/Power/ECE305_HW_07_Fall16_P01.pg index 355418c5f6..dd18be7358 100644 --- a/Contrib/NCSU/Power/ECE305_HW_07_Fall16_P01.pg +++ b/Contrib/NCSU/Power/ECE305_HW_07_Fall16_P01.pg @@ -28,7 +28,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -42,7 +42,7 @@ tolType => "absolute", ); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; #Initialize element values, to be changed for each question $Ra=random(2,5,0.5); @@ -79,12 +79,12 @@ $omga=Real($Eca/$k/$Iac); BEGIN_TEXT Consider a series DC motor with armature resistance of \($Ra \Omega\) and field resistance of \($Rf \Omega\) excited by a \($V V DC \) supply. $PAR -a) The motor produces an armature current of \($ia A\) at \($omg rad/sec\) at steady state. The starting torque when the \($V V DC\) supply is applied to the terminals (ignore the motor inductance) is \{ans_rule(10)\} \(k Nm \) \{AnswerFormatHelp("numbers") \} $BR +a) The motor produces an armature current of \($ia A\) at \($omg rad/sec\) at steady state. The starting torque when the \($V V DC\) supply is applied to the terminals (ignore the motor inductance) is \{ans_rule(10)\} \(k Nm \) \{helpLink("numbers") \} $BR + +b) To ensure the amature current never exceeds $ib A, the necessary resistance that would have to be added to the armature circuit is \{ans_rule(10)\} \(\Omega \) \{helpLink("numbers") \} $BR -b) To ensure the amature current never exceeds $ib A, the necessary resistance that would have to be added to the armature circuit is \{ans_rule(10)\} \(\Omega \) \{AnswerFormatHelp("numbers") \} $BR - -c) Assume that a constant torque load of TI= $Tc Nm is connected to the motor, without the additional armature resistance of part (b), the speed of the motor in steady state is \{ans_rule(10)\} \(rad/s \) \{AnswerFormatHelp("numbers") \} $BR -Now with the additional armature resistance of part (b), the speed of motor in steady state is \{ans_rule(10)\} \(rad/s \) \{AnswerFormatHelp("numbers") \} $BR +c) Assume that a constant torque load of TI= $Tc Nm is connected to the motor, without the additional armature resistance of part (b), the speed of the motor in steady state is \{ans_rule(10)\} \(rad/s \) \{helpLink("numbers") \} $BR +Now with the additional armature resistance of part (b), the speed of motor in steady state is \{ans_rule(10)\} \(rad/s \) \{helpLink("numbers") \} $BR END_TEXT Context()->normalStrings; @@ -112,14 +112,14 @@ BEGIN_SOLUTION; $PAR $BBOLD SOLUTION $EBOLD $PAR -a) +a) \(\omega_1= $omg V\) $BR \(I_{a,1}=$Ia A\) $BR \(E_{a,1}=V_a-(R_a+R_f)I_{a,1}=$Ea V \) $BR \(k=\frac{E_{a,1}}{\omega_1 I_a}=$k Vs/(A \cdot rad) \) $BR \(\omega=0 => E_a=0 => V_a=(R_a+R_f)I_{a,ST} => I_{a,ST}=\frac{V_a}{R_a+R_f}=$iast A\) $BR \(T_{st}=kI^2_{a,ST}=$k \cdot $iast^2=$Ta kNm\) $BR -b) +b) \(\omega=0 => E_a=0 => V_a=(R_a+R_f+R_{add})I_{a,ST,1} => R_{add}=\frac{$V}{$iast}-$Ra-$Rf=$Rb \Omega \) $BR c)\(I_a=\sqrt{\frac{T}{k}}=$Iac A\) $BR \(E_a(R_{add}=0)=$V-($Ra+$Rf) \cdot $Iac=$Ec0 V\) $BR @@ -129,4 +129,4 @@ c)\(I_a=\sqrt{\frac{T}{k}}=$Iac A\) $BR END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/NCSU/Power/ECE305_HW_07_Fall16_P02.pg b/Contrib/NCSU/Power/ECE305_HW_07_Fall16_P02.pg index 3576323480..bcbc53bbd8 100644 --- a/Contrib/NCSU/Power/ECE305_HW_07_Fall16_P02.pg +++ b/Contrib/NCSU/Power/ECE305_HW_07_Fall16_P02.pg @@ -27,7 +27,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -41,7 +41,7 @@ tolType => "absolute", ); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; #Initialize element values, to be changed for each question $P=random(20,30,1); @@ -62,7 +62,7 @@ $nfl=Real($RPM*$Eafl/$Eanl); BEGIN_TEXT -A \($P-kW, $V-V\) shunt motor has an armature resistance of \($Ra \Omega\) and a field resistance of \($Rf \Omega\). At no load and rated voltage, the speed is \($RPM r/min\) and the armature current is \($ia A\). At full load and rated voltage, the armature current is \($iaf A\). The full-load speed is \{ans_rule(10)\} \(rpm \) \{AnswerFormatHelp("numbers") \} $BR +A \($P-kW, $V-V\) shunt motor has an armature resistance of \($Ra \Omega\) and a field resistance of \($Rf \Omega\). At no load and rated voltage, the speed is \($RPM r/min\) and the armature current is \($ia A\). At full load and rated voltage, the armature current is \($iaf A\). The full-load speed is \{ans_rule(10)\} \(rpm \) \{helpLink("numbers") \} $BR END_TEXT @@ -89,4 +89,4 @@ $PAR END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/NCSU/Power/ECE305_HW_07_Fall16_P03.pg b/Contrib/NCSU/Power/ECE305_HW_07_Fall16_P03.pg index a36010c87a..feaa18e854 100644 --- a/Contrib/NCSU/Power/ECE305_HW_07_Fall16_P03.pg +++ b/Contrib/NCSU/Power/ECE305_HW_07_Fall16_P03.pg @@ -28,7 +28,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -42,7 +42,7 @@ tolType => "absolute", ); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; #Initialize element values, to be changed for each question $P=random(18,25,1);#kW @@ -70,10 +70,10 @@ $eta=Real($P*1000/($Pm+$Prl)*100); BEGIN_TEXT A \($P kW, $V V \), self-excited dc shunt generator is driven at its rated speed of \($RPM rpm\) and it is delivering rated power at rated terminal voltage. Its armature-circuit resistance is \($Ra \Omega\), and the field current is \($if A\). If its rotational loss is given as \($Prl W\), determine the following:$BR -a) The internal generated voltage is \{ans_rule(10)\} \(V\) \{AnswerFormatHelp("numbers") \} $BR +a) The internal generated voltage is \{ans_rule(10)\} \(V\) \{helpLink("numbers") \} $BR -b) The developed torque is \{ans_rule(10)\} \(Nm\) \{AnswerFormatHelp("numbers") \} $BR -c) The percent efficiency of the generator is \{ans_rule(10)\} \(%\) \{AnswerFormatHelp("numbers") \} $BR +b) The developed torque is \{ans_rule(10)\} \(Nm\) \{helpLink("numbers") \} $BR +c) The percent efficiency of the generator is \{ans_rule(10)\} \(%\) \{helpLink("numbers") \} $BR @@ -103,7 +103,7 @@ BEGIN_SOLUTION; $PAR $BBOLD SOLUTION $EBOLD $PAR -a) +a) \(I_{out}=\frac{P_{out}}{V_a}=\frac{$P k}{$V}=$Iout A\) $BR \(I_{a}=I_{a}+I_{out}=$Ia A\) $BR \(E_{a}=R_aI_{a}+$V=$Ea V\) $BR @@ -119,4 +119,4 @@ c) END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/NCSU/Power/ECE305_HW_08_Fall16_P01.pg b/Contrib/NCSU/Power/ECE305_HW_08_Fall16_P01.pg index 62aefc61e1..3e8390e096 100644 --- a/Contrib/NCSU/Power/ECE305_HW_08_Fall16_P01.pg +++ b/Contrib/NCSU/Power/ECE305_HW_08_Fall16_P01.pg @@ -28,7 +28,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -42,7 +42,7 @@ tolType => "absolute", ); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; #Initialize element values, to be changed for each question $Vr=random(430,460,10); @@ -79,11 +79,11 @@ BEGIN_TEXT A $Vr-V, $Pr-kW, $Freq-Hz, three-phase synchronous motor has a synchronous reactance of Xs = $Xs \(\Omega\) /phase. The motor is operating at rated terminal voltage and an output power of $Pa kW. $BR a) If the motor is operating at $pf power factor lagging, $BR -the line to neutral generated voltage \(E_f\) = \{ans_rule(10)\}\(\angle\) \{ans_rule(10)\} \(^{\circ} V \) \{AnswerFormatHelp("numbers") \} $PAR +the line to neutral generated voltage \(E_f\) = \{ans_rule(10)\}\(\angle\) \{ans_rule(10)\} \(^{\circ} V \) \{helpLink("numbers") \} $PAR b) If the motor is operating at $pf power factor leading, $BR -the line to neutral generated voltage \(E_f\) = \{ans_rule(10)\}\(\angle\) \{ans_rule(10)\} \(^{\circ} V \) \{AnswerFormatHelp("numbers") \} $BR +the line to neutral generated voltage \(E_f\) = \{ans_rule(10)\}\(\angle\) \{ans_rule(10)\} \(^{\circ} V \) \{helpLink("numbers") \} $BR END_TEXT Context()->normalStrings; @@ -128,4 +128,4 @@ b) $BR END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/NCSU/Power/ECE305_HW_08_Fall16_P02.pg b/Contrib/NCSU/Power/ECE305_HW_08_Fall16_P02.pg index 121220bc37..3a25a2e695 100644 --- a/Contrib/NCSU/Power/ECE305_HW_08_Fall16_P02.pg +++ b/Contrib/NCSU/Power/ECE305_HW_08_Fall16_P02.pg @@ -28,7 +28,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -42,7 +42,7 @@ tolType => "absolute", ); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; #Initialize element values, to be changed for each question $Vr=random(200,220,2); @@ -71,10 +71,10 @@ $Q=3*$Vt/$Xs*($modEfa*cos($del/180*pi)-$Vt)/1000; BEGIN_TEXT A 3-phase, 60 Hz, $NP-pole, $Pr kVA, $Vr V, Y-connected synchronous generator, with a reactance, Xs = $Xs \(\Omega\)/phase, is connected to a $Vr-volt, infinite bus.$BR -a) If the generator delivers $Pr kVA, $pf pf lagging, to the bus, the excitation emf \(E_f\)= \{ans_rule(10)\}\(\angle\) \{ans_rule(10)\} \(^{\circ} V \) \{AnswerFormatHelp("numbers") \} $PAR +a) If the generator delivers $Pr kVA, $pf pf lagging, to the bus, the excitation emf \(E_f\)= \{ans_rule(10)\}\(\angle\) \{ans_rule(10)\} \(^{\circ} V \) \{helpLink("numbers") \} $PAR b) With constant field current, if the prime mover torque is adjusted so that the machine is delivering $Pw kW. $BR -The new torque angle \(\delta\)=\{ans_rule(10)\} \(^{\circ} \) \{AnswerFormatHelp("numbers") \} $BR -The reactive power delivered to the bus \(Q\)=\{ans_rule(10)\} \(kVAR \) \{AnswerFormatHelp("numbers") \} $BR +The new torque angle \(\delta\)=\{ans_rule(10)\} \(^{\circ} \) \{helpLink("numbers") \} $BR +The reactive power delivered to the bus \(Q\)=\{ans_rule(10)\} \(kVAR \) \{helpLink("numbers") \} $BR END_TEXT Context()->normalStrings; @@ -121,4 +121,4 @@ Now \(P=$Pw kW, E_f=$modEfa \angle $argEfa^{\circ} V_{L-N} \) $BR END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/NCSU/Power/ECE305_HW_08_Fall16_P03.pg b/Contrib/NCSU/Power/ECE305_HW_08_Fall16_P03.pg index 7b070d2e21..27a8fbc9fd 100644 --- a/Contrib/NCSU/Power/ECE305_HW_08_Fall16_P03.pg +++ b/Contrib/NCSU/Power/ECE305_HW_08_Fall16_P03.pg @@ -28,7 +28,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -42,7 +42,7 @@ tolType => "absolute", ); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; #Initialize element values, to be changed for each question $NP=random(4,8,2); @@ -84,23 +84,23 @@ A gas-driven turbine is used to drive a small synchronous generator. The machine a) Suppose that the generator is initially delivering $Pvai MVA at a power factor of $pf lagging. Calculate:$BR i. the three-phase real and reactive power delivered to the electrical load,$BR -\(P\)=\{ans_rule(10)\} \( MW \) \{AnswerFormatHelp("numbers") \} $BR -\(Q\)=\{ans_rule(10)\} \( MVAR \) \{AnswerFormatHelp("numbers") \} $BR -ii. the line current,$BR -\(I_a\)=\{ans_rule(10)\} \(\angle\) \{ans_rule(10)\}\(^{\circ} kA\) \{AnswerFormatHelp("numbers") \} $BR +\(P\)=\{ans_rule(10)\} \( MW \) \{helpLink("numbers") \} $BR +\(Q\)=\{ans_rule(10)\} \( MVAR \) \{helpLink("numbers") \} $BR +ii. the line current,$BR +\(I_a\)=\{ans_rule(10)\} \(\angle\) \{ans_rule(10)\}\(^{\circ} kA\) \{helpLink("numbers") \} $BR iii. the internal voltage,$BR -\(E_f\)=\{ans_rule(10)\} \(\angle\) \{ans_rule(10)\}\(^{\circ}kV_{L-N} \) \{AnswerFormatHelp("numbers") \} $BR +\(E_f\)=\{ans_rule(10)\} \(\angle\) \{ans_rule(10)\}\(^{\circ}kV_{L-N} \) \{helpLink("numbers") \} $BR iv. the developed torque, $BR -\(T\)=\{ans_rule(10)\} \(kNm \) \{AnswerFormatHelp("numbers") \} $PAR +\(T\)=\{ans_rule(10)\} \(kNm \) \{helpLink("numbers") \} $PAR b) Suppose that a fault develops in the excitation circuit which drops the field current to 50% from the original condition described in part (a). The prime mover torque and power input to the machine stays constant. Assume that the internal voltage magnitude is linearly related to the field current and recalculate:$BR i. the three-phase real and reactive power delivered to the utility system,$BR -\(P\)=\{ans_rule(10)\} \( MW \) \{AnswerFormatHelp("numbers") \} $BR -\(Q\)=\{ans_rule(10)\} \( MVAR \) \{AnswerFormatHelp("numbers") \} $BR +\(P\)=\{ans_rule(10)\} \( MW \) \{helpLink("numbers") \} $BR +\(Q\)=\{ans_rule(10)\} \( MVAR \) \{helpLink("numbers") \} $BR ii. the line current,$BR -\(I_a\)=\{ans_rule(10)\} \(\angle\) \{ans_rule(10)\}\(^{\circ} kA\) \{AnswerFormatHelp("numbers") \} $BR +\(I_a\)=\{ans_rule(10)\} \(\angle\) \{ans_rule(10)\}\(^{\circ} kA\) \{helpLink("numbers") \} $BR iii. the internal voltage, $BR -\(E_f\)=\{ans_rule(10)\} \(\angle\) \{ans_rule(10)\}\(^{\circ}kV_{L-N} \) \{AnswerFormatHelp("numbers") \} $BR +\(E_f\)=\{ans_rule(10)\} \(\angle\) \{ans_rule(10)\}\(^{\circ}kV_{L-N} \) \{helpLink("numbers") \} $BR END_TEXT Context()->normalStrings; @@ -171,4 +171,4 @@ b) $BR END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/OKState/DiffForms/diffforms-convert-to-standard1.pg b/Contrib/OKState/DiffForms/diffforms-convert-to-standard1.pg index bad7c4b198..effcef2e0a 100644 --- a/Contrib/OKState/DiffForms/diffforms-convert-to-standard1.pg +++ b/Contrib/OKState/DiffForms/diffforms-convert-to-standard1.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserFunction.pl", "PGcourse.pl", ); @@ -78,7 +78,7 @@ $PAR c) \( dy \wedge \bigl( $a \sin(x) \, dz \wedge dx + $b y^2 dx \wedge dy \bigr) = {} \) \{ ans_rule(20) \} \( dx \wedge dy \wedge dz \) $PAR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/OKState/DiffForms/diffforms-cylindrical1.pg b/Contrib/OKState/DiffForms/diffforms-cylindrical1.pg index 7c449d2464..5008c734ed 100644 --- a/Contrib/OKState/DiffForms/diffforms-cylindrical1.pg +++ b/Contrib/OKState/DiffForms/diffforms-cylindrical1.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -53,11 +53,11 @@ Let [`\omega = [$a] xy \, dx + [$b] z\, dy + [$c] y\,dz`]. Write the form in cylindrical coordinates. Type "r", "theta", and "z" for the variables [`r`], [`\theta`], and [`z`]. -[`\omega ={}`][____________]{"$a r^2 (cos(theta))^2 sin(theta) + $b z sin(theta)"}{30}[`dr + {}`] -[`\phantom{\omega ={}}`][____________]{"-$a r^3 cos(theta) (sin(theta))^2 + $b r z cos(theta)"}{30}[`d\theta + {}`] +[`\omega ={}`][____________]{"$a r^2 (cos(theta))^2 sin(theta) + $b z sin(theta)"}{30}[`dr + {}`] +[`\phantom{\omega ={}}`][____________]{"-$a r^3 cos(theta) (sin(theta))^2 + $b r z cos(theta)"}{30}[`d\theta + {}`] [`\phantom{\omega ={}}`][____________]{"$c r sin(theta)"}{30}[`dz`] -[@ AnswerFormatHelp("formulas") @]* +[@ helpLink("formulas") @]* END_PGML ENDDOCUMENT(); diff --git a/Contrib/OKState/DiffForms/diffforms-d-of-oneform1.pg b/Contrib/OKState/DiffForms/diffforms-d-of-oneform1.pg index 9f481b2ed2..6c0d95738d 100644 --- a/Contrib/OKState/DiffForms/diffforms-d-of-oneform1.pg +++ b/Contrib/OKState/DiffForms/diffforms-d-of-oneform1.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -57,7 +57,7 @@ Compute [____________]{"$a*x*y"}{10} [`dz \wedge dx + {}`] [____________]{"-$a*x*z"}{10} [`dx \wedge dy`] -[@ AnswerFormatHelp("formulas") @]* +[@ helpLink("formulas") @]* END_PGML ENDDOCUMENT(); diff --git a/Contrib/OKState/DiffForms/diffforms-d-of-twoform1.pg b/Contrib/OKState/DiffForms/diffforms-d-of-twoform1.pg index 01f4451f94..a2f14a9aca 100644 --- a/Contrib/OKState/DiffForms/diffforms-d-of-twoform1.pg +++ b/Contrib/OKState/DiffForms/diffforms-d-of-twoform1.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -54,14 +54,14 @@ Let [`\omega = ([$a]x+[$b]y+[$c]z) \, dy \wedge dz + xe^{[$d] y} \, dz \wedge d [`d \omega ={}`] [____________]{"$a+$d*x*e^($d y)+x*y"}{30} [`dx \wedge dy \wedge dz \quad`] -[@ AnswerFormatHelp("formulas") @]* +[@ helpLink("formulas") @]* Let [`\eta = ([$a]x^2+[$b]y^2+[$c]z^2) \, dx \wedge dz + [$d] x^2 \, dx \wedge dy`]. Compute [`d \eta ={}`] [____________]{"-2*$b*y"}{30} [`dx \wedge dy \wedge dz \quad`] -[@ AnswerFormatHelp("formulas") @]* +[@ helpLink("formulas") @]* Let [`\alpha = yz^{[$a]} \, dy \wedge dz + @@ -71,7 +71,7 @@ xy^{[$c]} \, dx \wedge dy`]. Compute [`d \alpha ={}`] [____________]{"0"}{30} [`dx \wedge dy \wedge dz \quad`] -[@ AnswerFormatHelp("formulas") @]* +[@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/OKState/DiffForms/diffforms-oneform-fundthm1.pg b/Contrib/OKState/DiffForms/diffforms-oneform-fundthm1.pg index b59d7207c5..b4cec285a0 100644 --- a/Contrib/OKState/DiffForms/diffforms-oneform-fundthm1.pg +++ b/Contrib/OKState/DiffForms/diffforms-oneform-fundthm1.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -58,11 +58,11 @@ Compute [____________]{"$a*x"}{10} [`dy + {}`] [____________]{"2z"}{10} [`dz`] -[@ AnswerFormatHelp("formulas") @]* +[@ helpLink("formulas") @]* If [`C`] is a path from [`(1,1,0)`] to [`([$b],[$c],[$d])`], compute: -[`\int_C df = {}`] [____________]{"$a*$b*$c + ($d)^2 - ($a)"}{30} [@ AnswerFormatHelp("numbers") @]* +[`\int_C df = {}`] [____________]{"$a*$b*$c + ($d)^2 - ($a)"}{30} [@ helpLink("numbers") @]* END_PGML ENDDOCUMENT(); diff --git a/Contrib/OKState/DiffForms/diffforms-oneform-integral1.pg b/Contrib/OKState/DiffForms/diffforms-oneform-integral1.pg index efdfbd005e..2ab5810895 100644 --- a/Contrib/OKState/DiffForms/diffforms-oneform-integral1.pg +++ b/Contrib/OKState/DiffForms/diffforms-oneform-integral1.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -53,7 +53,7 @@ Let [`\omega = [$a] x \, dx + y \, dz`] be a 1-form. Let Evaluate: [`\int_C \omega ={}`] [____________]{"($c*$d+$a*($b)^2)/2"}{25} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* END_PGML ENDDOCUMENT(); diff --git a/Contrib/OKState/DiffForms/diffforms-oneform-integrals1.pg b/Contrib/OKState/DiffForms/diffforms-oneform-integrals1.pg index 002148f2ab..34d80c9ffc 100644 --- a/Contrib/OKState/DiffForms/diffforms-oneform-integrals1.pg +++ b/Contrib/OKState/DiffForms/diffforms-oneform-integrals1.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -57,7 +57,7 @@ $PAR ={} \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BRBR where \(L\) is the straight line from the point \((0,$d,1)\) to the point \((1,$d,1)\). $PAR @@ -66,7 +66,7 @@ $PAR ={} \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BRBR where \(I\) is the straight line from the point \((0,0,0)\) to the point \(($a,$b,$c)\). $PAR @@ -75,7 +75,7 @@ $PAR ={} \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BRBR where \(C\) is the graph of \(y = $d x^2 \) in the plane for \( 0 \leq x \leq 1 \) END_TEXT @@ -96,14 +96,14 @@ ANS( $answer3->cmp() ); Context()->texStrings; BEGIN_SOLUTION -\( +\( \displaystyle \int_L $a x^2 z \, dx + $b e^z \,dy + $c \cos(xyz) \, dz = \int_0^1 $a x^2 (1) \, dx = $answer1 \) $PAR -\( +\( \displaystyle \int_I xz \, dx + z^2 \,dy + yz \, dz = @@ -111,7 +111,7 @@ $PAR = $answer2 \) $PAR -\( +\( \displaystyle \int_C $a xy \, dx + $b x^{$c} \,dy = diff --git a/Contrib/OKState/DiffForms/diffforms-stokes-threeform1.pg b/Contrib/OKState/DiffForms/diffforms-stokes-threeform1.pg index 06f45dbe33..1f024d9025 100644 --- a/Contrib/OKState/DiffForms/diffforms-stokes-threeform1.pg +++ b/Contrib/OKState/DiffForms/diffforms-stokes-threeform1.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -57,12 +57,12 @@ First apply the theorem ([`B`] is the inside of the unit sphere): [``\int_S \omega = \int_B ``] [____________]{"$a"}{15} [`dx \wedge dy \wedge dz \quad`] -[@ AnswerFormatHelp("formulas") @]* +[@ helpLink("formulas") @]* Now compute the integral: [``\int_S \omega ={}``] [____________]{"$a*(4/3)*pi"}{25} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* _*Hint:* The volume of the inside of the unit sphere is [`\frac{4}{3}\pi.`]_ END_PGML diff --git a/Contrib/OKState/DiffForms/diffforms-stokes-twoform1.pg b/Contrib/OKState/DiffForms/diffforms-stokes-twoform1.pg index 7502b575c5..af5428b739 100644 --- a/Contrib/OKState/DiffForms/diffforms-stokes-twoform1.pg +++ b/Contrib/OKState/DiffForms/diffforms-stokes-twoform1.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -59,8 +59,8 @@ First apply the theorem: [``\int_C \omega = \int_S``] [____________]{"0"}{10} [`dy \wedge dz + {}`] [____________]{"0"}{10} [`dz \wedge dx + {}`] -[____________]{"-$a"}{10} [`dx \wedge dy`] -[@ AnswerFormatHelp("formulas") @]* +[____________]{"-$a"}{10} [`dx \wedge dy`] +[@ helpLink("formulas") @]* Above, [`S`] is the unit disc in the [`xy`]-plane (the inside of the unit circle). @@ -69,7 +69,7 @@ Now compute the integral: [``\int_C \omega ={}``] [____________]{"-$a*pi"}{25} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* END_PGML ############################ diff --git a/Contrib/OKState/DiffForms/diffforms-threeform-integrals1.pg b/Contrib/OKState/DiffForms/diffforms-threeform-integrals1.pg index b6310e9b65..66b1fd7e90 100644 --- a/Contrib/OKState/DiffForms/diffforms-threeform-integrals1.pg +++ b/Contrib/OKState/DiffForms/diffforms-threeform-integrals1.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -55,7 +55,7 @@ $PAR \) = \{ ans_rule(30) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BRBR where \(R\) is the region \( 0 \leq x \leq 1 \), \( 0 \leq y \leq 1\), \( 0 \leq z \leq 1 \). $PAR @@ -64,7 +64,7 @@ $PAR \) = \{ ans_rule(30) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BRBR where \(R\) is the same region as above. END_TEXT @@ -83,7 +83,7 @@ ANS( $answer2->cmp() ); Context()->texStrings; BEGIN_SOLUTION -\( +\( \displaystyle \int_R ($a xy^2 z^3 + $b) \, dx \wedge dy \wedge dz = @@ -93,7 +93,7 @@ dx \, dy \, dz = $answer1 \) $PAR -\( +\( \displaystyle \int_R ($a xy^2 z^3 + $b) \, dy \wedge dx \wedge dz = diff --git a/Contrib/OKState/DiffForms/diffforms-twoform-integrals1.pg b/Contrib/OKState/DiffForms/diffforms-twoform-integrals1.pg index 68568036a7..7bb8b4106f 100644 --- a/Contrib/OKState/DiffForms/diffforms-twoform-integrals1.pg +++ b/Contrib/OKState/DiffForms/diffforms-twoform-integrals1.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -56,11 +56,11 @@ $PAR = {} \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BRBR where \(S\) is the surface given by \(z=x^2-y^2\), \( 0 \leq x \leq 1 \), \( 0 \leq y \leq 1\), oriented in the standard way, -that is with the unit normal going upwards. +that is with the unit normal going upwards. $PAR \(\displaystyle \int_T @@ -70,7 +70,7 @@ $c x \,dx \wedge dy = {} \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BRBR where \(T\) is the surface parametrized by \(u,v\) as \( x = u+v^2 \), @@ -94,7 +94,7 @@ ANS( $answer2->cmp() ); Context()->texStrings; BEGIN_SOLUTION -\( +\( \displaystyle \int_S $a xy \, dy \wedge dz + $b y z \,dx \wedge dy = @@ -115,7 +115,7 @@ $b y (x^2-y^2) \, (1) = $answer1 \) $PAR -\( +\( \displaystyle \int_T $a z \, dy \wedge dz + diff --git a/Contrib/OKState/DiffForms/diffforms-wedge-oneforms1.pg b/Contrib/OKState/DiffForms/diffforms-wedge-oneforms1.pg index 9cc3819ca2..20317bfba5 100644 --- a/Contrib/OKState/DiffForms/diffforms-wedge-oneforms1.pg +++ b/Contrib/OKState/DiffForms/diffforms-wedge-oneforms1.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -58,7 +58,7 @@ Compute [____________]{"$d*$a*y"}{10} [`dz \wedge dx + {}`] [____________]{"$b*x^2-($c*$a*z)"}{10} [`dx \wedge dy`] -[@ AnswerFormatHelp("formulas") @]* +[@ helpLink("formulas") @]* END_PGML ENDDOCUMENT(); diff --git a/Contrib/OKState/DiffForms/diffforms-zeroform-integrals1.pg b/Contrib/OKState/DiffForms/diffforms-zeroform-integrals1.pg index ea62a28d6d..b460147a88 100644 --- a/Contrib/OKState/DiffForms/diffforms-zeroform-integrals1.pg +++ b/Contrib/OKState/DiffForms/diffforms-zeroform-integrals1.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,13 +51,13 @@ BEGIN_PGML Let [`f=[$a]xy+z^2`] be a 0-form. Let [`P=([$b],[$c],[$d])`] and [`Q=(0,0,1)`] be positively oriented. Evaluate: [`\int_P f ={}`] [____________]{"$a*$b*$c + ($d)^2"}{25} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* [`\int_{-P} f ={}`] [____________]{"-($a*$b*$c + ($d)^2)"}{25} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* [`\int_{P-Q} f ={}`] [____________]{"$a*$b*$c + ($d)^2 - 1"}{25} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* END_PGML ENDDOCUMENT(); diff --git a/Contrib/OKState/FourierSeries/evenoddext1.pg b/Contrib/OKState/FourierSeries/evenoddext1.pg index cd566ff203..d30e4893c0 100644 --- a/Contrib/OKState/FourierSeries/evenoddext1.pg +++ b/Contrib/OKState/FourierSeries/evenoddext1.pg @@ -26,7 +26,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -101,7 +101,7 @@ $BR \(F_{\text{even}}(-$conepointfive) = {} \) \{ ans_rule(20) \} $BR $BR -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/OKState/FourierSeries/expected-ders1.pg b/Contrib/OKState/FourierSeries/expected-ders1.pg index df9fa6f195..9bdf5439fc 100644 --- a/Contrib/OKState/FourierSeries/expected-ders1.pg +++ b/Contrib/OKState/FourierSeries/expected-ders1.pg @@ -26,7 +26,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl" ); diff --git a/Contrib/OKState/FourierSeries/finite-fourier1.pg b/Contrib/OKState/FourierSeries/finite-fourier1.pg index a7cb5a8fa3..fd0b1fedd3 100644 --- a/Contrib/OKState/FourierSeries/finite-fourier1.pg +++ b/Contrib/OKState/FourierSeries/finite-fourier1.pg @@ -27,12 +27,12 @@ ########################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -89,7 +89,7 @@ $BR \(b_4 = {}\) \{ ans_rule(10) \} $BR $BR -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; @@ -106,4 +106,4 @@ ANS($b2->cmp); ANS($b3->cmp); ANS($b4->cmp); -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/Contrib/OKState/FourierSeries/finite-fourier2.pg b/Contrib/OKState/FourierSeries/finite-fourier2.pg index 45ef33cb47..39aacfe9b2 100644 --- a/Contrib/OKState/FourierSeries/finite-fourier2.pg +++ b/Contrib/OKState/FourierSeries/finite-fourier2.pg @@ -26,12 +26,12 @@ ########################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -89,7 +89,7 @@ $BR \(b_4 = {}\) \{ ans_rule(10) \} $BR $BR -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; @@ -106,4 +106,4 @@ ANS($b2->cmp); ANS($b3->cmp); ANS($b4->cmp); -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/Contrib/OKState/FourierSeries/finite-fourier3.pg b/Contrib/OKState/FourierSeries/finite-fourier3.pg index 09a69fb172..af412e225e 100644 --- a/Contrib/OKState/FourierSeries/finite-fourier3.pg +++ b/Contrib/OKState/FourierSeries/finite-fourier3.pg @@ -28,7 +28,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -59,7 +59,7 @@ and \[ \int_{-\pi}^\pi f(t) \sin( n t) \, dt = 0, \] -for all \(n\), and +for all \(n\), and \[ \int_{-\pi}^\pi f(t) \cos( n t) \, dt = 0 \] @@ -71,7 +71,7 @@ What is \(f(t)\) for \(t\) between \(-\pi\) and \(\pi\). $PAR \(f(t)=\) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/OKState/FourierSeries/fourier-antider1.pg b/Contrib/OKState/FourierSeries/fourier-antider1.pg index a50191229b..17f283bb67 100644 --- a/Contrib/OKState/FourierSeries/fourier-antider1.pg +++ b/Contrib/OKState/FourierSeries/fourier-antider1.pg @@ -26,7 +26,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -71,7 +71,7 @@ $BR \( b_n = {} \) \{ ans_rule(40) \} $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/OKState/FourierSeries/fourier-differ1.pg b/Contrib/OKState/FourierSeries/fourier-differ1.pg index d7f0f3ad1d..6aae164b61 100644 --- a/Contrib/OKState/FourierSeries/fourier-differ1.pg +++ b/Contrib/OKState/FourierSeries/fourier-differ1.pg @@ -26,7 +26,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -64,7 +64,7 @@ $BR \( b_n = {} \) \{ ans_rule(40) \} $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/OKState/FourierSeries/fourier-series1.pg b/Contrib/OKState/FourierSeries/fourier-series1.pg index 6920f30d11..ae650fe1d9 100644 --- a/Contrib/OKState/FourierSeries/fourier-series1.pg +++ b/Contrib/OKState/FourierSeries/fourier-series1.pg @@ -28,7 +28,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGchoicemacros.pl", "PGcourse.pl" ); @@ -67,7 +67,7 @@ $SPACE $SPACE $SPACE \(\displaystyle \sum_{n=1}^{\infty} \) \{ ans_rule(25) \} \(\cos(n t) + {}\) \{ ans_rule(25) \} \(\sin(n t)\). $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/OKState/FourierSeries/periodicext1.pg b/Contrib/OKState/FourierSeries/periodicext1.pg index a87e3de250..467d304a09 100644 --- a/Contrib/OKState/FourierSeries/periodicext1.pg +++ b/Contrib/OKState/FourierSeries/periodicext1.pg @@ -26,7 +26,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); TEXT(beginproblem()); @@ -76,7 +76,7 @@ $BR \(f($t5) = {}\) \{ ans_rule(40); \} $BR $BR -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/OKState/LinearAlgebra/eigenvectors1.pg b/Contrib/OKState/LinearAlgebra/eigenvectors1.pg index 29eaa88d8b..9dbe80c56e 100644 --- a/Contrib/OKState/LinearAlgebra/eigenvectors1.pg +++ b/Contrib/OKState/LinearAlgebra/eigenvectors1.pg @@ -23,7 +23,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -72,7 +72,7 @@ Context()->texStrings; BEGIN_TEXT The matrix \($A\) has eigenvalues -\( \lambda_1 = $lambda1 \) and \( \lambda_2 = $lambda2 \). +\( \lambda_1 = $lambda1 \) and \( \lambda_2 = $lambda2 \). Find the corresponding eigenvectors. $PAR @@ -81,7 +81,7 @@ $PAR and \( \ {\vec{v}_2} = \) \{ $v2->ans_array(5) \} -\{ AnswerFormatHelp("matrices") \} +\{ helpLink("matrices") \} END_TEXT Context()->normalStrings; @@ -104,4 +104,4 @@ ANS($v2->cmp( COMMENT('Given distinct real eigenvalues, find eigenvectors.'); -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/Contrib/OKState/ODE/boundaryvalue/dirich-fourier-nonhomog.pg b/Contrib/OKState/ODE/boundaryvalue/dirich-fourier-nonhomog.pg index 04085b1cb0..3cd2696e15 100644 --- a/Contrib/OKState/ODE/boundaryvalue/dirich-fourier-nonhomog.pg +++ b/Contrib/OKState/ODE/boundaryvalue/dirich-fourier-nonhomog.pg @@ -26,7 +26,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -71,7 +71,7 @@ $BR \{ ans_rule(50) \} $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/OKState/ODE/boundaryvalue/neumann-fourier-nonhomog.pg b/Contrib/OKState/ODE/boundaryvalue/neumann-fourier-nonhomog.pg index 4907e22da4..feace5c83b 100644 --- a/Contrib/OKState/ODE/boundaryvalue/neumann-fourier-nonhomog.pg +++ b/Contrib/OKState/ODE/boundaryvalue/neumann-fourier-nonhomog.pg @@ -26,7 +26,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -63,7 +63,7 @@ $BR \( x(t) = {} \) \{ ans_rule(50) \} $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/OKState/ODE/boundaryvalue/stringpop1.pg b/Contrib/OKState/ODE/boundaryvalue/stringpop1.pg index cdfd48e925..4547039056 100644 --- a/Contrib/OKState/ODE/boundaryvalue/stringpop1.pg +++ b/Contrib/OKState/ODE/boundaryvalue/stringpop1.pg @@ -27,7 +27,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); TEXT(beginproblem()); @@ -62,7 +62,7 @@ $BR Angular velocity: \{ ans_rule(40); \} $BR $BR -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/OKState/ODE/boundaryvalue/stringpop2.pg b/Contrib/OKState/ODE/boundaryvalue/stringpop2.pg index 7cbf1daeea..5bbc255abe 100644 --- a/Contrib/OKState/ODE/boundaryvalue/stringpop2.pg +++ b/Contrib/OKState/ODE/boundaryvalue/stringpop2.pg @@ -27,7 +27,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); TEXT(beginproblem()); @@ -64,7 +64,7 @@ $BR Tension: \{ ans_rule(40); \} $BR $BR -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/OKState/ODE/boundaryvalue/stringpop3.pg b/Contrib/OKState/ODE/boundaryvalue/stringpop3.pg index af94138606..1329a3075b 100644 --- a/Contrib/OKState/ODE/boundaryvalue/stringpop3.pg +++ b/Contrib/OKState/ODE/boundaryvalue/stringpop3.pg @@ -27,7 +27,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserOneOf.pl", "PGcourse.pl", ); @@ -53,7 +53,7 @@ $ans = OneOf("$c*sin(k*(pi/$a)*x)", "-$c*sin(k*(pi/$a)*x)"); Context()->texStrings; BEGIN_TEXT -Suppose we have a whirling string (spinning around its axis) of length \( $a \) meters. +Suppose we have a whirling string (spinning around its axis) of length \( $a \) meters. Suppose it is popped out using the \(k\)-th eigenvalue of the underlying eigenvalue problem, that is, it crosses the axis \(k-1\) times. Further suppose that the maximum displacement from the axis @@ -62,7 +62,7 @@ $BR \( y = {} \) \{ ans_rule(40); \} $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/OKState/ODE/first-order/autonomous1.pg b/Contrib/OKState/ODE/first-order/autonomous1.pg index 5df4e9e356..9a329ddd96 100644 --- a/Contrib/OKState/ODE/first-order/autonomous1.pg +++ b/Contrib/OKState/ODE/first-order/autonomous1.pg @@ -24,7 +24,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -72,20 +72,20 @@ if ($func->eval(x=>$avg3) > 0) { ############################################################## BEGIN_PGML -A function [:x(t):] satisfies the differential equation +A function [:x(t):] satisfies the differential equation >>[`` \frac{dx}{dt} = [$func]. ``]<< Compute the following limits. You can use words like "Infinity" and "DNE" if you need to. If [:x(0) = [$avg1]:], then -[``\lim_{t\to\infty} x(t) = ``] [___________]{"$lim1"} [@ AnswerFormatHelp("numbers") @]* +[``\lim_{t\to\infty} x(t) = ``] [___________]{"$lim1"} [@ helpLink("numbers") @]* If [:x(0) = [$avg2]:], then -[``\lim_{t\to\infty} x(t) = ``] [___________]{"$lim2"} [@ AnswerFormatHelp("numbers") @]* +[``\lim_{t\to\infty} x(t) = ``] [___________]{"$lim2"} [@ helpLink("numbers") @]* If [:x(0) = [$avg3]:], then -[``\lim_{t\to\infty} x(t) = ``] [___________]{"$lim3"} [@ AnswerFormatHelp("numbers") @]* +[``\lim_{t\to\infty} x(t) = ``] [___________]{"$lim3"} [@ helpLink("numbers") @]* END_PGML ############################################################## diff --git a/Contrib/OKState/ODE/first-order/autonomous2.pg b/Contrib/OKState/ODE/first-order/autonomous2.pg index fbdb647d3d..223028bafd 100644 --- a/Contrib/OKState/ODE/first-order/autonomous2.pg +++ b/Contrib/OKState/ODE/first-order/autonomous2.pg @@ -24,7 +24,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -67,7 +67,7 @@ Let [:x(t):] be the solution to [:x'=f(x):] and [:x(0) = [$limini]:]. Compute: [``\lim_{t\to\infty} x(t) = ``] -[______________]{"$lim"} [@ AnswerFormatHelp("numbers") @]* +[______________]{"$lim"} [@ helpLink("numbers") @]* END_PGML ############################################################## diff --git a/Contrib/OKState/ODE/first-order/substitution1.pg b/Contrib/OKState/ODE/first-order/substitution1.pg index 76f031bcab..51a7be70b9 100644 --- a/Contrib/OKState/ODE/first-order/substitution1.pg +++ b/Contrib/OKState/ODE/first-order/substitution1.pg @@ -19,12 +19,12 @@ ############################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -55,9 +55,9 @@ x y' = $a y + $b x , \] $PAR -\( y = \) +\( y = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/OKState/ODE/first-order/substitution2.pg b/Contrib/OKState/ODE/first-order/substitution2.pg index ffb3bcbc35..72958de614 100644 --- a/Contrib/OKState/ODE/first-order/substitution2.pg +++ b/Contrib/OKState/ODE/first-order/substitution2.pg @@ -19,12 +19,12 @@ ############################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -54,9 +54,9 @@ e^y y' = e^y + $a x , \] $PAR -\( y = \) +\( y = \) \{ ans_rule(50) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/OKState/ODE/lin-systems/matrixexponential4.pg b/Contrib/OKState/ODE/lin-systems/matrixexponential4.pg index 904cb68fed..bc2cf541c7 100644 --- a/Contrib/OKState/ODE/lin-systems/matrixexponential4.pg +++ b/Contrib/OKState/ODE/lin-systems/matrixexponential4.pg @@ -26,7 +26,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGmatrixmacros.pl", "PGcourse.pl" ); @@ -87,14 +87,14 @@ Compute the matrix exponential $PAR \{ mbox("\( e^{tA} = \)", $matrix_exp->ans_array(20), - AnswerFormatHelp("formulas").$BR.AnswerFormatHelp("matrices")) + helpLink("formulas").$BR.helpLink("matrices")) \} $PAR Next, use the exponential to find the solution to \(\vec{x}' = A \vec{x}\) with initial condition \(\vec{x}(0) = $v \): $PAR \{ mbox("\( \vec{x}(t) = \)", $sol->ans_array(40), - AnswerFormatHelp("formulas").$BR.AnswerFormatHelp("matrices")) + helpLink("formulas").$BR.helpLink("matrices")) \} END_TEXT Context()->normalStrings; diff --git a/Contrib/OKState/ODE/lin-systems/matrixexponential5.pg b/Contrib/OKState/ODE/lin-systems/matrixexponential5.pg index e4b440bd78..293727002b 100644 --- a/Contrib/OKState/ODE/lin-systems/matrixexponential5.pg +++ b/Contrib/OKState/ODE/lin-systems/matrixexponential5.pg @@ -27,7 +27,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGmatrixmacros.pl", "PGcourse.pl" ); @@ -92,14 +92,14 @@ the term with \(t^2\)) of $PAR \{ mbox("\( e^{tA} \approx \)", $approxetA->ans_array(20), - AnswerFormatHelp("formulas").$BR.AnswerFormatHelp("matrices")) + helpLink("formulas").$BR.helpLink("matrices")) \} $PAR Next, use the above approximation to the exponential to find an approximation (for small \(t\)) of the solution to \(\vec{x}' = A \vec{x}\) with initial condition \(\vec{x}(0) = $v \): $PAR \{ mbox("\( \vec{x}(t) \approx \)", $approxsol->ans_array(40), - AnswerFormatHelp("formulas").$BR.AnswerFormatHelp("matrices")) + helpLink("formulas").$BR.helpLink("matrices")) \} END_TEXT Context()->normalStrings; @@ -119,7 +119,7 @@ The Taylor series up to second order is \[ e^{tA} \approx I + tA + \frac{t^2}{2}A^2 = -$id + t $A + t^2 $halfAsq +$id + t $A + t^2 $halfAsq = $approxetA \] diff --git a/Contrib/OKState/ODE/lin-systems/matrixexponential6.pg b/Contrib/OKState/ODE/lin-systems/matrixexponential6.pg index 359e954511..efd5adcb35 100644 --- a/Contrib/OKState/ODE/lin-systems/matrixexponential6.pg +++ b/Contrib/OKState/ODE/lin-systems/matrixexponential6.pg @@ -27,7 +27,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGmatrixmacros.pl", "PGcourse.pl" ); @@ -88,7 +88,7 @@ Compute the matrix exponential $PAR \{ mbox("\( e^{tA} = \)", $matrix_exp->ans_array(20), - AnswerFormatHelp("formulas").$BR.AnswerFormatHelp("matrices")) + helpLink("formulas").$BR.helpLink("matrices")) \} END_TEXT Context()->normalStrings; diff --git a/Contrib/OKState/ODE/lin-systems/rewrite-second-order-to-sys1.pg b/Contrib/OKState/ODE/lin-systems/rewrite-second-order-to-sys1.pg index 0c5ae38698..38171575cf 100644 --- a/Contrib/OKState/ODE/lin-systems/rewrite-second-order-to-sys1.pg +++ b/Contrib/OKState/ODE/lin-systems/rewrite-second-order-to-sys1.pg @@ -27,7 +27,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -71,14 +71,14 @@ $PAR \( x' = {} \) \{ ans_rule(5) \} \( x + {} \) \{ ans_rule(5) \} \( y + {} \) -\{ ans_rule(5) \} -\{ AnswerFormatHelp("numbers") \} +\{ ans_rule(5) \} +\{ helpLink("numbers") \} $PAR \( y' = {} \) \{ ans_rule(5) \} \( x + {} \) \{ ans_rule(5) \} \( y + {} \) -\{ ans_rule(5) \} -\{ AnswerFormatHelp("numbers") \} +\{ ans_rule(5) \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; @@ -104,7 +104,7 @@ BEGIN_SOLUTION As \( x'=y \), that is the first equation. $PAR For the second equation, substitute \( x'' = y' \) and \( x' = y\) into -\( x'' + $a x' + $b x + $c = 0\) so +\( x'' + $a x' + $b x + $c = 0\) so \( y' + $a y + $b x + $c = 0\). Now solve for \(y'\), that is, \( y' = - $b x - $a y - $c \). diff --git a/Contrib/OKState/ODE/lin-systems/rewrite-second-order-to-sys2.pg b/Contrib/OKState/ODE/lin-systems/rewrite-second-order-to-sys2.pg index bce51acfff..a16b1586ea 100644 --- a/Contrib/OKState/ODE/lin-systems/rewrite-second-order-to-sys2.pg +++ b/Contrib/OKState/ODE/lin-systems/rewrite-second-order-to-sys2.pg @@ -27,7 +27,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -68,11 +68,11 @@ what \(x'\) and \(y'\) are in terms of \(x\) and \(y\): $PAR \( x' = {} \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $PAR \( y' = {} \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; @@ -94,7 +94,7 @@ BEGIN_SOLUTION As \( x'=y \), that is the first equation. $PAR For the second equation, substitute \( x'' = y' \) and \( x' = y\) into -\( x'' = \sin($a t) x' + $b t x \) so +\( x'' = \sin($a t) x' + $b t x \) so \( y' = \sin($a t) y + $b t x \). END_SOLUTION Context()->normalStrings; diff --git a/Contrib/OKState/ODE/nonlin-systems/convert-equation-to-1st-ord-sys-1.pg b/Contrib/OKState/ODE/nonlin-systems/convert-equation-to-1st-ord-sys-1.pg index 86589db7bd..a8db13346c 100644 --- a/Contrib/OKState/ODE/nonlin-systems/convert-equation-to-1st-ord-sys-1.pg +++ b/Contrib/OKState/ODE/nonlin-systems/convert-equation-to-1st-ord-sys-1.pg @@ -26,7 +26,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -61,11 +61,11 @@ to a nonlinear first order system in \(x\) and \(y\) where \(y\) is the derivati $PAR \(x' = \) \{ ans_rule(50); \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $PAR \(y' = \) \{ ans_rule(50); \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/OKState/ODE/nonlin-systems/critical-points-curve1.pg b/Contrib/OKState/ODE/nonlin-systems/critical-points-curve1.pg index 8d494950b5..1fcba1ae3c 100644 --- a/Contrib/OKState/ODE/nonlin-systems/critical-points-curve1.pg +++ b/Contrib/OKState/ODE/nonlin-systems/critical-points-curve1.pg @@ -28,7 +28,7 @@ loadMacros( "MathObjects.pl", "MatrixCheckers.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); TEXT(beginproblem()); @@ -59,7 +59,7 @@ $BR \( y = {} \) \{ ans_rule(40); \} $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/OKState/ODE/nonlin-systems/find-crit-points-list-1.pg b/Contrib/OKState/ODE/nonlin-systems/find-crit-points-list-1.pg index 68875893f4..9e39557f7c 100644 --- a/Contrib/OKState/ODE/nonlin-systems/find-crit-points-list-1.pg +++ b/Contrib/OKState/ODE/nonlin-systems/find-crit-points-list-1.pg @@ -26,7 +26,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGcourse.pl", ); @@ -74,7 +74,7 @@ y' & = $funy. Enter the points as a comma separated list: $PAR \{ ans_rule(70); \} -\{ AnswerFormatHelp("points") \} +\{ helpLink("points") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/OKState/ODE/nonlin-systems/linearization-only-1.pg b/Contrib/OKState/ODE/nonlin-systems/linearization-only-1.pg index 817cac32fe..7bdc28cf05 100644 --- a/Contrib/OKState/ODE/nonlin-systems/linearization-only-1.pg +++ b/Contrib/OKState/ODE/nonlin-systems/linearization-only-1.pg @@ -26,7 +26,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGcourse.pl", ); @@ -94,7 +94,7 @@ u \\ v \end{bmatrix} \) $SPACE $SPACE -\{ AnswerFormatHelp("matrices") \} +\{ helpLink("matrices") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/OKState/ODE/nonlin-systems/pendulum1.pg b/Contrib/OKState/ODE/nonlin-systems/pendulum1.pg index 6bdf2920bd..77738c6c9e 100644 --- a/Contrib/OKState/ODE/nonlin-systems/pendulum1.pg +++ b/Contrib/OKState/ODE/nonlin-systems/pendulum1.pg @@ -24,7 +24,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserPopUp.pl", "PGML.pl", "PGcourse.pl", @@ -91,24 +91,24 @@ We write the equation as a system [` \theta' = \omega `] -[` \omega' = `] [_____________]{"-mu*omega-($g/$L)*sin(theta)"}{50} [@ AnswerFormatHelp("formulas") @]* +[` \omega' = `] [_____________]{"-mu*omega-($g/$L)*sin(theta)"}{50} [@ helpLink("formulas") @]* There are infinitely many critical points [`(\theta,\omega)`] and they are all of the form ([`k`] is an integer): -[`\Bigl( `] [_______]{"pi"} [` k , \ 0 \Bigr) `] [@ $SPACE @]* [@ AnswerFormatHelp("numbers") @]* +[`\Bigl( `] [_______]{"pi"} [` k , \ 0 \Bigr) `] [@ $SPACE @]* [@ helpLink("numbers") @]* The Jacobian matrix is [____________________]*{$jac} [@ $BR @]* -[@ AnswerFormatHelp("formulas") @]* -[@ AnswerFormatHelp("matrices") @]* +[@ helpLink("formulas") @]* +[@ helpLink("matrices") @]* At a critical point for an odd [`k`], as function of [`\mu`], the two eigenvalues are [_________]{$lambdasodd}{50} -[@ AnswerFormatHelp("formulas") @]* +[@ helpLink("formulas") @]* At a critical point for an even [`k`], as function of [`\mu`], the two eigenvalues are [_________]{$lambdaseven}{50} -[@ AnswerFormatHelp("formulas") @]* +[@ helpLink("formulas") @]* Suppose that [` \mu^2 < \frac{4g}{L} = \frac{4([$g])}{[$L]} `], that is, the friction is small. diff --git a/Contrib/OKState/ODE/nonlin-systems/pendulum2.pg b/Contrib/OKState/ODE/nonlin-systems/pendulum2.pg index 815cdb32c4..f3334fcb90 100644 --- a/Contrib/OKState/ODE/nonlin-systems/pendulum2.pg +++ b/Contrib/OKState/ODE/nonlin-systems/pendulum2.pg @@ -24,7 +24,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserPopUp.pl", "PGML.pl", "PGcourse.pl", @@ -61,7 +61,7 @@ if (-(2*9.8/$L) + ($omega0)**2 - (2*9.8/$L)*cos($theta0) >= 0) { BEGIN_PGML Consider the nonlinear pendulum equation [` \theta'' + \left( \frac{g}{L} \right) \sin \theta = 0 . `] -The [`g`] denotes the gravitational acceleration +The [`g`] denotes the gravitational acceleration and [`L`] denotes length. Suppose gravity [`g`] is 9.8 meters per second squared, and the length of the pendulum is @@ -73,12 +73,12 @@ Find the formula for the trajectory of the pendulum. _Write "theta" for [`\theta`]._ [`\omega^2 = `] [_________________________________]{"(2*9.8/$L)cos(theta) + ($omega0)^2 - (2*9.8/$L)cos($theta0)"} -[@ AnswerFormatHelp("formulas") @]* +[@ helpLink("formulas") @]* Now find the maximum angular velocity of the pendulum given these initial conditions. [`\omega_{\text{max}} = `] [_________________________________]{"sqrt((2*9.8/$L) + ($omega0)^2 - (2*9.8/$L)cos($theta0))"} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* Does the pendulum swing back and forth or keep rotating around its axis? [@ $popup->menu() @]* diff --git a/Contrib/OKState/ODE/nonlin-systems/pendulum3.pg b/Contrib/OKState/ODE/nonlin-systems/pendulum3.pg index d99646c804..38dff180e2 100644 --- a/Contrib/OKState/ODE/nonlin-systems/pendulum3.pg +++ b/Contrib/OKState/ODE/nonlin-systems/pendulum3.pg @@ -24,7 +24,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -47,7 +47,7 @@ $L = random(2,10,1); BEGIN_PGML Consider the nonlinear pendulum equation [` \theta'' + \left( \frac{g}{L} \right) \sin \theta = 0 . `] -The [`g`] denotes the gravitational acceleration +The [`g`] denotes the gravitational acceleration and [`L`] denotes length. Suppose gravity [`g`] is 9.8 meters per second squared, and the length of the pendulum is @@ -59,12 +59,12 @@ Find the formula for the trajectory of the pendulum. _Write "theta" for [`\theta`]._ [`\omega^2 = `] [_________________________________]{"(2*9.8/$L)cos(theta) + ($omega0)^2 - (2*9.8/$L)cos($theta0)"} -[@ AnswerFormatHelp("formulas") @]* +[@ helpLink("formulas") @]* Now find the maximum angule that the pendulum attains given these initial conditions. [`\theta_{\text{max}} = `] [_________________________________]{"arccos( - ($L/(2*9.8)) ($omega0)^2 + cos($theta0))"} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/OKState/ODE/numerical/euler1.pg b/Contrib/OKState/ODE/numerical/euler1.pg index 6be51c8d3c..7ced6f5a8a 100644 --- a/Contrib/OKState/ODE/numerical/euler1.pg +++ b/Contrib/OKState/ODE/numerical/euler1.pg @@ -23,7 +23,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -32,7 +32,7 @@ loadMacros( TEXT(beginproblem()); $showPartialCorrectAnswers = 1; - + Context("Numeric"); $a = non_zero_random(2,5,1); @@ -76,11 +76,11 @@ $error4 = Compute("|$realans-$yy4|"); ###################################################### BEGIN_PGML -Consider the differential equation [` y' = [$a] y `] +Consider the differential equation [` y' = [$a] y `] with initial condition [` y(0) = [$y0] `]. The actual solution is [` y(1) = {} `] [_________]{"$realans"}{10} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* We wish to analyze what happens to the error when estimating [` y(1) `] @@ -89,33 +89,33 @@ via Euler's method. Start with step size [`h=1`] (1 step). Compute [`y(1) \approx {}`] [_________]{"$yy1"}{10} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* [`\text{Error} \approx {}`] [_________]{"$error1"}{10} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* _*Note:* Remember that the error is the absolute value!_ Let us half the step size to [`h=0.5`] (2 steps). Compute [`y(1) \approx {}`] [_________]{"$yy2"}{10} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* [`\text{Error} \approx {}`] [_________]{"$error2"}{10} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* The error went down by the factor: [`\dfrac{\text{Error}}{\text{Previous error}} \approx {}`] [_________]{"$error2/$error1"}{10} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* Let us half the step size to [`h=0.25`] (4 steps). Compute [`y(1) \approx {}`] [_________]{"$yy4"}{10} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* [`\text{Error} \approx {}`] [_________]{"$error4"}{10} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* The error went down by the factor: [`\dfrac{\text{Error}}{\text{Previous error}} \approx {}`] [_________]{"$error4/$error2"}{10} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* _Euler's method is a first order method so we expect the error to go down by a factor of 0.5 each halving. Of course, that's only very approximate, so the numbers you get above are not exactly 0.5._ diff --git a/Contrib/OKState/ODE/numerical/rungekutta1.pg b/Contrib/OKState/ODE/numerical/rungekutta1.pg index 3da35ead29..de5e0bcdc8 100644 --- a/Contrib/OKState/ODE/numerical/rungekutta1.pg +++ b/Contrib/OKState/ODE/numerical/rungekutta1.pg @@ -24,7 +24,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -33,7 +33,7 @@ loadMacros( TEXT(beginproblem()); $showPartialCorrectAnswers = 1; - + Context("Numeric"); $a = non_zero_random(2,5,1); @@ -70,7 +70,7 @@ $y2 = $y; ###################################################### BEGIN_PGML -Consider the differential equation [` y' = [$a] xy `] +Consider the differential equation [` y' = [$a] xy `] with initial condition [` y(0) = [$y0] `]. Recall that Runge-Kutta method has the following formula @@ -92,11 +92,11 @@ Using Runge-Kutta step size [:h = [$step]:]: Estimate [` y([$step]) \approx {} `] [_________]{"$y1"}{10} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* Estimate [` y([$twostep]) \approx {} `] [_________]{"$y2"}{10} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* END_PGML ###################################################### diff --git a/Contrib/OKState/ODE/power-series/recenter-series-1.pg b/Contrib/OKState/ODE/power-series/recenter-series-1.pg index 8645d7577f..b7a7918684 100644 --- a/Contrib/OKState/ODE/power-series/recenter-series-1.pg +++ b/Contrib/OKState/ODE/power-series/recenter-series-1.pg @@ -23,7 +23,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -58,7 +58,7 @@ Expand [:f(x) = [$c2] x^2 + [$c1] x + [$c0] :] as a power series around [: [$x0] [___________]{"$a1"}{15} [` (x-[$x0]) + `] [___________]{"$a0"}{15} -[`\quad`] [@ AnswerFormatHelp("numbers") @]* +[`\quad`] [@ helpLink("numbers") @]* END_PGML ################################################# diff --git a/Contrib/OKState/ODE/power-series/recurrence1.pg b/Contrib/OKState/ODE/power-series/recurrence1.pg index 9b8c1d33f0..132e2238f1 100644 --- a/Contrib/OKState/ODE/power-series/recurrence1.pg +++ b/Contrib/OKState/ODE/power-series/recurrence1.pg @@ -23,7 +23,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -65,13 +65,13 @@ For \( k \geq 0\), $PAR \( a_{k+2} = \) \{ $r1->ans_rule \} \(a_{k+1} + \) \{ $r2->ans_rule \} \(a_k\) . $SPACE -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $PAR -We also have +We also have $PAR \( a_{1} = \) \{ $r0->ans_rule \} \(a_{0}\) . $SPACE -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $PAR Therefore, write the first few terms of a solution where \(y(0) = $y0 \) $PAR @@ -87,7 +87,7 @@ $PAR \(\phantom{y = }\) \{ $a4->ans_rule \} \( x^4 + \cdots \) $SPACE -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/OKState/ODE/second-order-linear/affine-solution-to-nonhomog-2ndorder.pg b/Contrib/OKState/ODE/second-order-linear/affine-solution-to-nonhomog-2ndorder.pg index f0f632f231..a4f4ec6eb3 100644 --- a/Contrib/OKState/ODE/second-order-linear/affine-solution-to-nonhomog-2ndorder.pg +++ b/Contrib/OKState/ODE/second-order-linear/affine-solution-to-nonhomog-2ndorder.pg @@ -29,7 +29,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "PGcourse.pl", ); @@ -61,19 +61,19 @@ $answer2 = Formula("($b/$a)x + ($c-$b/$a)/($a)"); Context()->texStrings; BEGIN_TEXT Guess an (affine) linear solution -(affine linear is of the form \(ax+b\)) to +(affine linear is of the form \(ax+b\)) to \( y'' + $a y = $b x + $c \). $PAR \( y = {} \) \{ ans_rule(20) \} $PAR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $PAR -Guess an (affine) linear solution to +Guess an (affine) linear solution to \( y'' + y' + $a y = $b x + $c \). $PAR \( y = {} \) \{ ans_rule(20) \} $PAR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/OKState/ODE/second-order-linear/check-linear-indep-two-1.pg b/Contrib/OKState/ODE/second-order-linear/check-linear-indep-two-1.pg index d54493f310..12b3f3f734 100644 --- a/Contrib/OKState/ODE/second-order-linear/check-linear-indep-two-1.pg +++ b/Contrib/OKState/ODE/second-order-linear/check-linear-indep-two-1.pg @@ -28,7 +28,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "parserPopUp.pl", "PGcourse.pl", @@ -65,7 +65,7 @@ $PAR Solve for \(A\) in \( f(x) = A g(x) \) $BR \( A = {} \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $PAR Is \( A \) constant? \{ $answer2->menu() \} $PAR diff --git a/Contrib/OKState/ODE/second-order-linear/check-linear-indep-two-2.pg b/Contrib/OKState/ODE/second-order-linear/check-linear-indep-two-2.pg index 88ddb83eff..efffb76c58 100644 --- a/Contrib/OKState/ODE/second-order-linear/check-linear-indep-two-2.pg +++ b/Contrib/OKState/ODE/second-order-linear/check-linear-indep-two-2.pg @@ -28,7 +28,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "parserPopUp.pl", "PGcourse.pl", @@ -65,7 +65,7 @@ $PAR Solve for \(A\) in \( f(x) = A g(x) \) $BR \( A = {} \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $PAR Is \( A \) constant? \{ $answer2->menu() \} $PAR diff --git a/Contrib/OKState/ODE/second-order-linear/linear-dependence-1.pg b/Contrib/OKState/ODE/second-order-linear/linear-dependence-1.pg index 532a431a9b..1a7d191aa2 100644 --- a/Contrib/OKState/ODE/second-order-linear/linear-dependence-1.pg +++ b/Contrib/OKState/ODE/second-order-linear/linear-dependence-1.pg @@ -23,7 +23,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -67,15 +67,15 @@ The two functions [:f(x):] and [:g(x):] are linearly dependent. Fill in the mis [:f([$xb]) = [$fb]:] -[:g([$xb]) = :] [___________]{"$gb"} [@ AnswerFormatHelp("numbers") @]* +[:g([$xb]) = :] [___________]{"$gb"} [@ helpLink("numbers") @]* [:f([$xc]) = [$fc]:] -[:g([$xc]) = :] [___________]{"$gc"} [@ AnswerFormatHelp("numbers") @]* +[:g([$xc]) = :] [___________]{"$gc"} [@ helpLink("numbers") @]* [:f([$xd]) = [$fd]:] -[:g([$xd]) = :] [___________]{"$gd"} [@ AnswerFormatHelp("numbers") @]* +[:g([$xd]) = :] [___________]{"$gd"} [@ helpLink("numbers") @]* END_PGML ############################################################## diff --git a/Contrib/OKState/ODE/second-order-linear/mass-spring-1.pg b/Contrib/OKState/ODE/second-order-linear/mass-spring-1.pg index cd0930cf15..33a747e53a 100644 --- a/Contrib/OKState/ODE/second-order-linear/mass-spring-1.pg +++ b/Contrib/OKState/ODE/second-order-linear/mass-spring-1.pg @@ -23,7 +23,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -69,7 +69,7 @@ A [$mass] kg railcar hits a bumper (a spring) at [$speed] m/s, and the spring compresses by [$compress] m. Assume no damping. Find [:k=:] [____________]{"$k"}{25} N/m -[@ $SPACE @]* [@ AnswerFormatHelp("numbers") @]* +[@ $SPACE @]* [@ helpLink("numbers") @]* _*Hint:* Solve the differential equation leaving [:k:] as unknown. The compression of the spring is the maximum displacement. @@ -80,21 +80,21 @@ How far does the spring compress when a [$mass2] kg railcar hits the spring at the same speed? [____________]{"$compress2"}{25} m -[@ $SPACE @]* [@ AnswerFormatHelp("numbers") @]* +[@ $SPACE @]* [@ helpLink("numbers") @]* If the spring would break if it compresses further than [$compresscrit] m, what is the maximum mass of a railcar that can hit it at [$speed] m/s? [____________]{"$masscrit"}{25} kg -[@ $SPACE @]* [@ AnswerFormatHelp("numbers") @]* +[@ $SPACE @]* [@ helpLink("numbers") @]* What is the maximum mass of a railcar that can hit the spring without breaking at [$dspeed] m/s? [____________]{"$masscritdouble"}{25} kg -[@ $SPACE @]* [@ AnswerFormatHelp("numbers") @]* +[@ $SPACE @]* [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/OKState/ODE/second-order-linear/steady-state-periodic-1.pg b/Contrib/OKState/ODE/second-order-linear/steady-state-periodic-1.pg index 68a632019e..9548a3f0e6 100644 --- a/Contrib/OKState/ODE/second-order-linear/steady-state-periodic-1.pg +++ b/Contrib/OKState/ODE/second-order-linear/steady-state-periodic-1.pg @@ -26,7 +26,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -57,7 +57,7 @@ Let \(F(t) = $a \sin($b\pi t) + $c \cos($d \pi t)\). Find the steady periodic solution to \(x'' + \sqrt{2}\, x = F(t)\). $PAR \( x(t) = {} \) \{ ans_rule(50) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/OKState/ODE/second-order-linear/steady-state-periodic-2.pg b/Contrib/OKState/ODE/second-order-linear/steady-state-periodic-2.pg index 725bf946ed..8c12ee9232 100644 --- a/Contrib/OKState/ODE/second-order-linear/steady-state-periodic-2.pg +++ b/Contrib/OKState/ODE/second-order-linear/steady-state-periodic-2.pg @@ -26,7 +26,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -65,7 +65,7 @@ $PAR \{ ans_rule(25) \} \( \sin(n t) \Bigr]\) $SPACE -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/OKState/ODE/second-order-linear/steady-state-periodic-3.pg b/Contrib/OKState/ODE/second-order-linear/steady-state-periodic-3.pg index 674d4f78ba..b113e5c396 100644 --- a/Contrib/OKState/ODE/second-order-linear/steady-state-periodic-3.pg +++ b/Contrib/OKState/ODE/second-order-linear/steady-state-periodic-3.pg @@ -26,7 +26,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -57,7 +57,7 @@ Let \(F(t) = $a \sin($b t) + $c \cos($d t)\). Find the steady periodic solution to \(x'' + $bsq \, x = F(t)\). $PAR \( x(t) = {} \) \{ ans_rule(50) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/OKState/ODE/second-order-linear/superposition1.pg b/Contrib/OKState/ODE/second-order-linear/superposition1.pg index 76a39e1726..57060e28ef 100644 --- a/Contrib/OKState/ODE/second-order-linear/superposition1.pg +++ b/Contrib/OKState/ODE/second-order-linear/superposition1.pg @@ -28,7 +28,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "PGcourse.pl", ); @@ -70,14 +70,14 @@ Find the solution to $PAR \( y = {} \) \{ ans_rule(40) \} $PAR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $PAR Now find the solution to \( y'' + f(x) y' + g(x) y = $b \sin($a x) + $c e^x \). $PAR \( y = {} \) \{ ans_rule(40) \} $PAR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/OKState/ODE/secondorder-systems/forced-vibrations.pg b/Contrib/OKState/ODE/secondorder-systems/forced-vibrations.pg index 20b845dccf..d86f44e031 100644 --- a/Contrib/OKState/ODE/secondorder-systems/forced-vibrations.pg +++ b/Contrib/OKState/ODE/secondorder-systems/forced-vibrations.pg @@ -26,7 +26,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl", ); @@ -58,7 +58,7 @@ do { $denom = ($Ma*$Md+$Cf*$Cf*$Md-$Mb*$Mc+$Cf*$Cf*$Ma+$Cf*$Cf*$Cf*$Cf); # make sure the forcing frequency is not a natural frequency } until ($denom != 0); - + #make sure the denominators don't became huge } until ($denom*$m1 < 1000 && $denom*$m2 < 1000); @@ -76,13 +76,13 @@ $answer2 = Compute("$v2*cos($Cf*t)")->reduce; Context()->texStrings; BEGIN_TEXT -Take the system +Take the system \[ {\vec{x}\,}'' = \begin{bmatrix} $Ma & $Mb \\ $Mc & $Md \end{bmatrix} -\vec{x} + +\vec{x} + \begin{bmatrix} $Cc \cos($Cf t) \\ 0 \end{bmatrix} @@ -100,7 +100,7 @@ $BR \{ ans_rule(40) \} $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/OKState/ODE/secondorder-systems/natural-freqs.pg b/Contrib/OKState/ODE/secondorder-systems/natural-freqs.pg index cb27595dde..4be849ec30 100644 --- a/Contrib/OKState/ODE/secondorder-systems/natural-freqs.pg +++ b/Contrib/OKState/ODE/secondorder-systems/natural-freqs.pg @@ -26,7 +26,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "unorderedAnswer.pl", "PGcourse.pl", @@ -69,7 +69,7 @@ $answer2 = Compute("sqrt(-$eig2)")->reduce; Context()->texStrings; BEGIN_TEXT -Take the system +Take the system \[ {\vec{x}\,}'' = \begin{bmatrix} @@ -90,7 +90,7 @@ $BR \{ ans_rule(40) \} $BR $BR -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/OKState/ODE/secondorder-systems/positive-eigenvalues-second-order.pg b/Contrib/OKState/ODE/secondorder-systems/positive-eigenvalues-second-order.pg index d1c144a882..d613accfa4 100644 --- a/Contrib/OKState/ODE/secondorder-systems/positive-eigenvalues-second-order.pg +++ b/Contrib/OKState/ODE/secondorder-systems/positive-eigenvalues-second-order.pg @@ -26,7 +26,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl", ); @@ -66,7 +66,7 @@ BEGIN_TEXT While often the eigenvalues for the second order linear systems end up being negative in applications, the technique works just as well with positive eigenvalues. -Take the system +Take the system \[ {\vec{x}\,}'' = \begin{bmatrix} @@ -87,7 +87,7 @@ $BR \{ ans_rule(40) \} $BR $BR -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR $BR Guess a solution of the form \( \vec{x} = \vec{v} e^{\omega t} \), @@ -117,7 +117,7 @@ $BR \{ ans_rule(40) \} $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; @@ -148,7 +148,7 @@ Plugging in \( \vec{x} = \vec{v} e^{ \omega t } \) into \( {\vec{x}\,}' = A \vec{x} \) gives us \[ - \omega^2 \vec{v} e^{\omega t} = + \omega^2 \vec{v} e^{\omega t} = {\vec{x}\,}' = A \vec{x} = A \vec{v} e^{ \omega t } \] So @@ -159,9 +159,9 @@ c_1 \vec{v}_1 e^{$e1 t}+c_2 \vec{v}_1 e^{-$e1 t} + c_3 \vec{v}_2 e^{$e2 t}+c_4 \vec{v}_2 e^{-$e2 t} \] Plugging in the two initial conditions we find that -\(c_1 = 1\), -\(c_2 = -1\), -\(c_3 = \frac{$e1}{$e2}\), +\(c_1 = 1\), +\(c_2 = -1\), +\(c_3 = \frac{$e1}{$e2}\), \(c_4 = \frac{-$e1}{$e2}\) which gives us \[ \vec{x}_1 = $answer3 diff --git a/Contrib/OKState/PDE/classify/canon1.pg b/Contrib/OKState/PDE/classify/canon1.pg index 750b2ddd1e..07ff1bb1d1 100644 --- a/Contrib/OKState/PDE/classify/canon1.pg +++ b/Contrib/OKState/PDE/classify/canon1.pg @@ -27,7 +27,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -70,7 +70,7 @@ $BR \( u_{xx} + $aplusb u_{xy} + $atimesb u_{yy} + $c u_x + $d u_y + $e u = 0 \) $BR into characteristic coordinates \(\xi, \eta\), that is the equation should become -\( u_{\xi\eta} + \text{lower order terms} = 0 \). +\( u_{\xi\eta} + \text{lower order terms} = 0 \). $BR The change of coordinates should be linear of the form \( \xi = y+ \cdots \) and \(\eta = y+\cdots \) @@ -88,7 +88,7 @@ $BR \( u_{\xi\eta} + {} \) \{ ans_rule(40) \} \( {} = 0 \) $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/OKState/PDE/classify/canon2.pg b/Contrib/OKState/PDE/classify/canon2.pg index a29fd0be51..9ed0b3288c 100644 --- a/Contrib/OKState/PDE/classify/canon2.pg +++ b/Contrib/OKState/PDE/classify/canon2.pg @@ -28,7 +28,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "PGcourse.pl", ); @@ -95,7 +95,7 @@ $BR \( u(x,y) = {} \) \{ ans_rule(40) \} $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/OKState/PDE/firstorder/characteristics1.pg b/Contrib/OKState/PDE/firstorder/characteristics1.pg index 05e88854b1..0e6c052b2f 100644 --- a/Contrib/OKState/PDE/firstorder/characteristics1.pg +++ b/Contrib/OKState/PDE/firstorder/characteristics1.pg @@ -27,7 +27,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -86,7 +86,7 @@ $BR \(u = {} \) \{ ans_rule(40) \} $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/OKState/PDE/firstorder/characteristics2.pg b/Contrib/OKState/PDE/firstorder/characteristics2.pg index 3c361b1fe1..ab2866cf2b 100644 --- a/Contrib/OKState/PDE/firstorder/characteristics2.pg +++ b/Contrib/OKState/PDE/firstorder/characteristics2.pg @@ -27,7 +27,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -93,7 +93,7 @@ $BR \(u = {} \) \{ ans_rule(40) \} $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/OKState/PDE/firstorder/characteristics3.pg b/Contrib/OKState/PDE/firstorder/characteristics3.pg index e960ed1b33..5fb56dd91a 100644 --- a/Contrib/OKState/PDE/firstorder/characteristics3.pg +++ b/Contrib/OKState/PDE/firstorder/characteristics3.pg @@ -27,7 +27,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -84,7 +84,7 @@ picked so that when \(s=t=0\) then \(\xi = x\), and that the equation becomes an ODE in \(s\): $BR \(u_s + {} \) \{ ans_rule(40) \} \( {} = {} \) -\{ ans_rule(40) \} +\{ ans_rule(40) \} $BR with initial condition \(u|_{s=0} = {} \) \{ ans_rule(40) \} @@ -100,7 +100,7 @@ $BR \(u = {} \) \{ ans_rule(40) \} $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/OKState/PDE/firstorder/characteristics4.pg b/Contrib/OKState/PDE/firstorder/characteristics4.pg index 579c3af3fa..b706daca52 100644 --- a/Contrib/OKState/PDE/firstorder/characteristics4.pg +++ b/Contrib/OKState/PDE/firstorder/characteristics4.pg @@ -27,7 +27,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -97,7 +97,7 @@ $BR \(u = {} \) \{ ans_rule(40) \} $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/OKState/PDE/firstorder/solve-convect-only1.pg b/Contrib/OKState/PDE/firstorder/solve-convect-only1.pg index c533da063f..e17f8f5d21 100644 --- a/Contrib/OKState/PDE/firstorder/solve-convect-only1.pg +++ b/Contrib/OKState/PDE/firstorder/solve-convect-only1.pg @@ -32,7 +32,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -63,13 +63,13 @@ Solve $BR PDE: \( \quad u_t = - $b u_x , \qquad -\infty < x < \infty , \quad t > 0 \) $BR -IC: \( \quad u(x,0) = $c \sin( $a x ) \) +IC: \( \quad u(x,0) = $c \sin( $a x ) \) $BR $BR \(u(x,t) = {} \) \{ ans_rule(40) \} $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/OKState/PDE/firstorder/solve-convect-only2.pg b/Contrib/OKState/PDE/firstorder/solve-convect-only2.pg index 809448789a..5da9ec2dbc 100644 --- a/Contrib/OKState/PDE/firstorder/solve-convect-only2.pg +++ b/Contrib/OKState/PDE/firstorder/solve-convect-only2.pg @@ -31,7 +31,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -65,7 +65,7 @@ $BR $BR And suppose you know that for some fixed time \( t= t_0 \) $BR - \( u(x,t_0) = $c\sin($a x) \) + \( u(x,t_0) = $c\sin($a x) \) $BR $BR Then (write "t0" for \(t_0\)) @@ -73,7 +73,7 @@ $BR \(u(x,0) = {} \) \{ ans_rule(40) \} $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/OKState/PDE/firstorder/traffic1.pg b/Contrib/OKState/PDE/firstorder/traffic1.pg index 527c6f773e..1d3a2897cb 100644 --- a/Contrib/OKState/PDE/firstorder/traffic1.pg +++ b/Contrib/OKState/PDE/firstorder/traffic1.pg @@ -25,7 +25,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -91,7 +91,7 @@ $BR \( t = {} \) \{ ans_rule(40) \} $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/OKState/PDE/heat/heat-convection.pg b/Contrib/OKState/PDE/heat/heat-convection.pg index 8c128d46d5..dc49e09c0f 100644 --- a/Contrib/OKState/PDE/heat/heat-convection.pg +++ b/Contrib/OKState/PDE/heat/heat-convection.pg @@ -26,7 +26,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -65,7 +65,7 @@ $BR \{ ans_rule(80) \} $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/OKState/PDE/heat/heat-dimensionless1.pg b/Contrib/OKState/PDE/heat/heat-dimensionless1.pg index c9919abfbe..86a6f3cf9a 100644 --- a/Contrib/OKState/PDE/heat/heat-dimensionless1.pg +++ b/Contrib/OKState/PDE/heat/heat-dimensionless1.pg @@ -27,7 +27,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -66,15 +66,15 @@ Transform the problem $BR PDE: \( \quad u_{t} = $asq u_{xx} , \qquad 0 < x < $b , \quad t > 0 \) $BR -BC: \( \quad u(0,t) = $c \quad u($b,t) = $d \) +BC: \( \quad u(0,t) = $c \quad u($b,t) = $d \) $BR -IC: \( \quad u(x,0) = x^2 \) +IC: \( \quad u(x,0) = x^2 \) $BR into a dimensionless problem: $BR PDE: \( \quad U_{\tau} = U_{\xi\xi} , \qquad 0 < \xi < 1 , \quad \tau > 0 \) $BR -BC: \( \quad U(0,\tau) = 0 \quad u(1,\tau) = 1 \) +BC: \( \quad U(0,\tau) = 0 \quad u(1,\tau) = 1 \) $BR IC: \( \quad U(\xi,0) = {} \) \{ ans_rule(40) \} $BR @@ -96,7 +96,7 @@ $BR \(\tau = {} \) \{ ans_rule(40) \} $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/OKState/PDE/heat/heat-dimensionless2.pg b/Contrib/OKState/PDE/heat/heat-dimensionless2.pg index 7298889436..dc18a83b03 100644 --- a/Contrib/OKState/PDE/heat/heat-dimensionless2.pg +++ b/Contrib/OKState/PDE/heat/heat-dimensionless2.pg @@ -26,7 +26,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -58,16 +58,16 @@ Transform the problem $BR PDE: \( \quad u_{t} = $asq u_{xx} , \qquad 0 < x < 1 , \quad t > $b \) $BR -BC: \( \quad u(0,t) = 0 \quad u(1,t) = 0 \) +BC: \( \quad u(0,t) = 0 \quad u(1,t) = 0 \) $BR -IC: \( \quad u(x,$b) = f(x) \) +IC: \( \quad u(x,$b) = f(x) \) $BR into a dimensionless problem. Assume \(x\) and \(u\) already do not have units, so you only change time. You wish to arrive at $BR PDE: \( \quad u_{\tau} = u_{xx} , \qquad 0 < x < 1 , \quad \tau > 0 \) $BR -BC: \( \quad u(0,\tau) = 0 \quad u(1,\tau) = 0 \) +BC: \( \quad u(0,\tau) = 0 \quad u(1,\tau) = 0 \) $BR IC: \( \quad u(x,0) = f(x) \) $BR @@ -77,7 +77,7 @@ $BR \(\tau = {} \) \{ ans_rule(40) \} $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/OKState/PDE/heat/heat-dimensionless3.pg b/Contrib/OKState/PDE/heat/heat-dimensionless3.pg index 3a20b76ab8..6f5c1b05b9 100644 --- a/Contrib/OKState/PDE/heat/heat-dimensionless3.pg +++ b/Contrib/OKState/PDE/heat/heat-dimensionless3.pg @@ -26,7 +26,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "PGcourse.pl", ); @@ -66,15 +66,15 @@ We want to solve the problem $BR PDE: \( \quad u_{t} = $asq u_{xx} , \qquad 0 < x < $b , \quad t > 0 \) $BR -BC: \( \quad u(0,t) = $c \quad u($b,t) = $d \) +BC: \( \quad u(0,t) = $c \quad u($b,t) = $d \) $BR -IC: \( \quad u(x,0) = 0 \) +IC: \( \quad u(x,0) = 0 \) $BR And we have the solution of the problem $BR PDE: \( \quad v_{\tau} = v_{\xi\xi} , \qquad 0 < \xi < 1 , \quad \tau > 0 \) $BR -BC: \( \quad v(0,\tau) = 0 \quad v(1,\tau) = 1 \) +BC: \( \quad v(0,\tau) = 0 \quad v(1,\tau) = 1 \) $BR IC: \( \quad v(\xi,0) = 0 \) $BR @@ -83,7 +83,7 @@ Write \(u(x,t)\) in terms of \(v(\xi,\tau)\) \(u(x,t) = {} \) \{ ans_rule(40) \} $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/OKState/PDE/heat/heat-find-max.pg b/Contrib/OKState/PDE/heat/heat-find-max.pg index 609ec8781d..00e81ada08 100644 --- a/Contrib/OKState/PDE/heat/heat-find-max.pg +++ b/Contrib/OKState/PDE/heat/heat-find-max.pg @@ -31,7 +31,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -66,7 +66,7 @@ $BR What is the maximum temperature in the rod at any particular time. That is, $BR \( M(t) = {} \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("functions") \} +\{ helpLink("functions") \} $BR where \(M(t)\) is the maximum temperature at time \(t\). Use your intuition. diff --git a/Contrib/OKState/PDE/heat/heat-inhomog.pg b/Contrib/OKState/PDE/heat/heat-inhomog.pg index 8d308a19f0..97d49771f4 100644 --- a/Contrib/OKState/PDE/heat/heat-inhomog.pg +++ b/Contrib/OKState/PDE/heat/heat-inhomog.pg @@ -26,7 +26,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -101,7 +101,7 @@ $BR where \( f_n(t) = {} \) \{ ans_rule(40) \} $BR -You find that +You find that $BR \( \displaystyle U(x,t) = \sum_{j=1}^\infty T_n(t) X_n(x) \) , $BR @@ -115,7 +115,7 @@ $BR Then \( u(x,t) = S(x,t) + U(x,t) \) $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/OKState/PDE/heat/heat-loss.pg b/Contrib/OKState/PDE/heat/heat-loss.pg index 900b3bbdb1..231130873a 100644 --- a/Contrib/OKState/PDE/heat/heat-loss.pg +++ b/Contrib/OKState/PDE/heat/heat-loss.pg @@ -26,7 +26,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -80,7 +80,7 @@ $BR \{ ans_rule(40) \} $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/OKState/PDE/heat/heat-nonhomogeqandbc.pg b/Contrib/OKState/PDE/heat/heat-nonhomogeqandbc.pg index 929b376d63..85e24438bd 100644 --- a/Contrib/OKState/PDE/heat/heat-nonhomogeqandbc.pg +++ b/Contrib/OKState/PDE/heat/heat-nonhomogeqandbc.pg @@ -26,7 +26,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -71,7 +71,7 @@ Solve: \(u(x,t) = {} \) \{ ans_rule(40) \} $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/OKState/PDE/heat/heat-plugin-values.pg b/Contrib/OKState/PDE/heat/heat-plugin-values.pg index 5324efe1ac..c916b5b1f9 100644 --- a/Contrib/OKState/PDE/heat/heat-plugin-values.pg +++ b/Contrib/OKState/PDE/heat/heat-plugin-values.pg @@ -31,7 +31,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -74,7 +74,7 @@ $BR $BR \( \displaystyle u\Big(\frac{1}{2},t\Big) = {} \) \{ ans_rule(20) \} $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/OKState/PDE/heat/heat-setup1.pg b/Contrib/OKState/PDE/heat/heat-setup1.pg index f77607ea55..df81d75144 100644 --- a/Contrib/OKState/PDE/heat/heat-setup1.pg +++ b/Contrib/OKState/PDE/heat/heat-setup1.pg @@ -23,13 +23,13 @@ ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "parserRadioButtons.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -86,7 +86,7 @@ $BR \(u(x,0) = {} \) \{ ans_rule(5) \} $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/OKState/PDE/heat/heat-ss-transform.pg b/Contrib/OKState/PDE/heat/heat-ss-transform.pg index 1b85a0032e..e918b4ab4d 100644 --- a/Contrib/OKState/PDE/heat/heat-ss-transform.pg +++ b/Contrib/OKState/PDE/heat/heat-ss-transform.pg @@ -25,7 +25,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -81,7 +81,7 @@ $BR solves the original problem above. $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/OKState/PDE/heat/heat-steadystate1.pg b/Contrib/OKState/PDE/heat/heat-steadystate1.pg index ae53d539ea..99411b50a9 100644 --- a/Contrib/OKState/PDE/heat/heat-steadystate1.pg +++ b/Contrib/OKState/PDE/heat/heat-steadystate1.pg @@ -26,7 +26,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -51,14 +51,14 @@ Context()->texStrings; BEGIN_TEXT Consider the equation \( u_t = u_{xx} + $a \), \( 0 < x < 1 \), \( t > 0 \), that is, there is uniform heat source. Suppose further that -ends are kept as \( u(0,t) = 0 , u(1,t) = $b \). What is the +ends are kept as \( u(0,t) = 0 , u(1,t) = $b \). What is the steady state solution \(U(x)\), if it exists? That is, a solution after a very long time. $BR Hint: a steady-state solution does not depend on time. -$BR +$BR \( U(x) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; @@ -82,7 +82,7 @@ for \(U(x)\) as \( 0 = U'' + $a \) with boundary conditions \(U(0)=0\) and \(U(1)=$b\). The solution to the equation is \( U(x) = A + Bx - \frac{$a}{2} x^2 \). Plugging in the boundary conditions we find that \( A = 0 \) -and \(B=$b\) so +and \(B=$b\) so \( U(x) = $answer \). END_SOLUTION Context()->normalStrings; diff --git a/Contrib/OKState/PDE/heat/heat-steadystate2.pg b/Contrib/OKState/PDE/heat/heat-steadystate2.pg index 86a211b0dd..7482c9246f 100644 --- a/Contrib/OKState/PDE/heat/heat-steadystate2.pg +++ b/Contrib/OKState/PDE/heat/heat-steadystate2.pg @@ -26,7 +26,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -52,14 +52,14 @@ BEGIN_TEXT Consider the equation \( u_t = u_{xx} - $asq u \), \( 0 < x < 1 \), \( t > 0 \), that is, there is a lateral heat loss. Suppose further that ends are kept as \( u(0,t) = 0 , u(1,t) = $b (e^{$a}-e^{-$a}) \). -What is the +What is the steady state solution \(U(x)\), if it exists? That is, a solution after a very long time. $BR Hint: a steady-state solution does not depend on time. -$BR +$BR \( U(x) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; @@ -85,7 +85,7 @@ and \(U(1)=$b(e^{$a}-e^{-$a})\). The general solution to the equation is Plugging in the boundary condition \(U(0)=0\) we find that \( C_1 = -C_2 \), and plugging in the second boundary condition \(U(1)=$b(e^{$a}-e^{-$a})\), we find that \(C_1 = $b\). -So +So \( U(x) = $answer \). END_SOLUTION Context()->normalStrings; diff --git a/Contrib/OKState/PDE/heat/heat-steadystate3.pg b/Contrib/OKState/PDE/heat/heat-steadystate3.pg index f949b6b300..58e955fa62 100644 --- a/Contrib/OKState/PDE/heat/heat-steadystate3.pg +++ b/Contrib/OKState/PDE/heat/heat-steadystate3.pg @@ -32,7 +32,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -65,10 +65,10 @@ $BR What were the boundary values? $BR \( u(0,t) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR \( u(1,t) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; @@ -88,7 +88,7 @@ Context()->texStrings; BEGIN_SOLUTION We evaluate the steady state at \( x = 0 \) and \( x = 1 \), -to obtain that +to obtain that \( u(0,t) = $b \) and \( u(1,t) = $c \). END_SOLUTION diff --git a/Contrib/OKState/PDE/heat/heat-superpos.pg b/Contrib/OKState/PDE/heat/heat-superpos.pg index 64fb1fd0de..3917d5b9e5 100644 --- a/Contrib/OKState/PDE/heat/heat-superpos.pg +++ b/Contrib/OKState/PDE/heat/heat-superpos.pg @@ -28,7 +28,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -121,7 +121,7 @@ $BR \(u(x,t) = {} \) \{ ans_rule(40) \} $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/OKState/PDE/heat/heat-units.pg b/Contrib/OKState/PDE/heat/heat-units.pg index 7dc0f7adf8..4faf7973a3 100644 --- a/Contrib/OKState/PDE/heat/heat-units.pg +++ b/Contrib/OKState/PDE/heat/heat-units.pg @@ -23,12 +23,12 @@ ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "parserRadioButtons.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -77,7 +77,7 @@ $unts2 = RadioButtons( BEGIN_TEXT -Suppose +Suppose \(u\) has units degree Celsius (\({}^\circ\)C), time \(t\) is in seconds (s), \(x\) is in centemeters (cm). We have the equation \(u_t = \alpha^2 u_{xx} - \nu u_x\) $BR diff --git a/Contrib/OKState/PDE/heat/heat-useformula1.pg b/Contrib/OKState/PDE/heat/heat-useformula1.pg index 491f0a202b..eb6f73f8f3 100644 --- a/Contrib/OKState/PDE/heat/heat-useformula1.pg +++ b/Contrib/OKState/PDE/heat/heat-useformula1.pg @@ -32,7 +32,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -64,7 +64,7 @@ Suppose \( u(0,t) = 0 , u(1,t) = 0 \). Suppose $BR \( u(x,0) = -$a1 \sin(\pi x) + +$a1 \sin(\pi x) + $a2 \sin(2 \pi x) + $a3 \sin(3 \pi x) + $a4 \sin(4 \pi x) \) @@ -78,7 +78,7 @@ $BR \{ ans_rule(5) \} \( e^{-(3\pi)^2t} \sin(3 \pi x) + {} \) \{ ans_rule(5) \} \( e^{-(4\pi)^2t} \sin(4 \pi x) \) $BR -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/OKState/PDE/heat/heat-useformula2.pg b/Contrib/OKState/PDE/heat/heat-useformula2.pg index 185a85458c..fadcf4d667 100644 --- a/Contrib/OKState/PDE/heat/heat-useformula2.pg +++ b/Contrib/OKState/PDE/heat/heat-useformula2.pg @@ -37,7 +37,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -91,7 +91,7 @@ what is \(\lim_{t\to \infty} u(x,t) = {} \) \{ ans_rule(40) \} $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/OKState/PDE/heat/heat-useformula3.pg b/Contrib/OKState/PDE/heat/heat-useformula3.pg index d0cca30c85..a1c0bfa7e4 100644 --- a/Contrib/OKState/PDE/heat/heat-useformula3.pg +++ b/Contrib/OKState/PDE/heat/heat-useformula3.pg @@ -32,7 +32,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -72,7 +72,7 @@ $BR \( \displaystyle u(x,t) = \sum_{n=1}^\infty \) \{ ans_rule(20) \} \( e^{-(n\pi)^2t} \sin(n\pi x) \) $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/OKState/PDE/heat/solve-heat-convect1.pg b/Contrib/OKState/PDE/heat/solve-heat-convect1.pg index ff971e34f9..f4ab14bafe 100644 --- a/Contrib/OKState/PDE/heat/solve-heat-convect1.pg +++ b/Contrib/OKState/PDE/heat/solve-heat-convect1.pg @@ -26,7 +26,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -61,7 +61,7 @@ We wish to solve the problem $BR PDE: \( \quad u_t = $asq u_{xx} - $b u_x , \qquad -\infty < x < \infty , \quad t > 0 \) $BR -IC: \( \quad u(x,0) = $c \sin( x ) \) +IC: \( \quad u(x,0) = $c \sin( x ) \) $BR $BR First we change variables to \(\xi = x- $b t, \tau = t\). The solution in @@ -75,7 +75,7 @@ $BR \(u = {} \) \{ ans_rule(40) \} $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/OKState/PDE/heat/solve-heat-convect2.pg b/Contrib/OKState/PDE/heat/solve-heat-convect2.pg index a3f624c0f5..7fc110c032 100644 --- a/Contrib/OKState/PDE/heat/solve-heat-convect2.pg +++ b/Contrib/OKState/PDE/heat/solve-heat-convect2.pg @@ -27,7 +27,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -62,7 +62,7 @@ We wish to solve the problem $BR PDE: \( \quad u_t = $asq u_{xx} - $b u_x , \qquad -\infty < x < \infty , \quad t > 0 \) $BR -IC: \( \quad u(x,0) = $d + $c \cos( x ) + \sin(\pi x) \) +IC: \( \quad u(x,0) = $d + $c \cos( x ) + \sin(\pi x) \) $BR $BR First we change variables to \(\xi = x- $b t, \tau = t\). The solution in @@ -76,7 +76,7 @@ $BR \(u = {} \) \{ ans_rule(40) \} $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/OKState/PDE/heat/solve-heat-convect3.pg b/Contrib/OKState/PDE/heat/solve-heat-convect3.pg index f9620a52ee..ca4af639f5 100644 --- a/Contrib/OKState/PDE/heat/solve-heat-convect3.pg +++ b/Contrib/OKState/PDE/heat/solve-heat-convect3.pg @@ -26,7 +26,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -55,7 +55,7 @@ Solve the problem $BR PDE: \( \quad u_t = u_{xx} - $b u_x , \qquad -\infty < x < \infty , \quad t > 0 \) $BR -IC: \( \quad u(x,0) = $a e^{-(x^2)/4} \) +IC: \( \quad u(x,0) = $a e^{-(x^2)/4} \) $BR $BR First, get rid of the convection term by changing variables, then use the Fourier transform. @@ -63,7 +63,7 @@ $BR \(u = {} \) \{ ans_rule(40) \} $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/OKState/PDE/heat/solve-heat-laplace.pg b/Contrib/OKState/PDE/heat/solve-heat-laplace.pg index ceab38f885..0575ff5592 100644 --- a/Contrib/OKState/PDE/heat/solve-heat-laplace.pg +++ b/Contrib/OKState/PDE/heat/solve-heat-laplace.pg @@ -26,7 +26,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -60,7 +60,7 @@ We wish to solve the problem $BR PDE: \( \quad w_t = $a^2 w_{xx} , \qquad -\infty < x < \infty , \quad t > 0 \) $BR -IC: \( \quad w(x,0) = $c \sin( $b x ) \) +IC: \( \quad w(x,0) = $c \sin( $b x ) \) $BR using the Laplace transform. $BR @@ -72,10 +72,10 @@ $BR $BR $BR The solution then is -\( w(x,t) = {} \) \{ ans_rule(60) \} +\( w(x,t) = {} \) \{ ans_rule(60) \} $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/OKState/PDE/heat/solving-inf-heat-delta.pg b/Contrib/OKState/PDE/heat/solving-inf-heat-delta.pg index c7157164c0..53ad89858a 100644 --- a/Contrib/OKState/PDE/heat/solving-inf-heat-delta.pg +++ b/Contrib/OKState/PDE/heat/solving-inf-heat-delta.pg @@ -26,7 +26,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -68,7 +68,7 @@ u(x,t) = {} \) \{ ans_rule(60) \} $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/OKState/PDE/heat/solving-inf-heat-gauss.pg b/Contrib/OKState/PDE/heat/solving-inf-heat-gauss.pg index 46c2ad845d..7303dc8fcb 100644 --- a/Contrib/OKState/PDE/heat/solving-inf-heat-gauss.pg +++ b/Contrib/OKState/PDE/heat/solving-inf-heat-gauss.pg @@ -26,7 +26,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -68,7 +68,7 @@ u(x,t) = {} \) \{ ans_rule(60) \} $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/OKState/PDE/laplace/dirichcirc1.pg b/Contrib/OKState/PDE/laplace/dirichcirc1.pg index 8331b557b2..31af4d2c93 100644 --- a/Contrib/OKState/PDE/laplace/dirichcirc1.pg +++ b/Contrib/OKState/PDE/laplace/dirichcirc1.pg @@ -31,7 +31,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -78,7 +78,7 @@ $BR (Write theta for \(\theta\)) $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/OKState/PDE/laplace/dirichcirc2.pg b/Contrib/OKState/PDE/laplace/dirichcirc2.pg index e14dc8d4ac..d2d911513d 100644 --- a/Contrib/OKState/PDE/laplace/dirichcirc2.pg +++ b/Contrib/OKState/PDE/laplace/dirichcirc2.pg @@ -31,7 +31,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -78,7 +78,7 @@ $BR (Write theta for \(\theta\)) $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/OKState/PDE/laplace/dirichpoiss1.pg b/Contrib/OKState/PDE/laplace/dirichpoiss1.pg index 771f01da5d..ee830177f5 100644 --- a/Contrib/OKState/PDE/laplace/dirichpoiss1.pg +++ b/Contrib/OKState/PDE/laplace/dirichpoiss1.pg @@ -31,7 +31,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -62,7 +62,7 @@ Suppose \(u\) is a solution of $BR \( \nabla^2 u = 0 \) $BR -inside the unit circle +inside the unit circle for the boundary condition that \(u\) is equal to $a for a quarter of the circle, and $b for the remaining 3 quarters of the circle. Find \(u\) at the origin: $BR @@ -73,7 +73,7 @@ $BR Use what you know about the Poisson formula and your intuition. $BR $BR -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/OKState/PDE/laplace/dirichpoiss2.pg b/Contrib/OKState/PDE/laplace/dirichpoiss2.pg index 96d46376e4..86514586a5 100644 --- a/Contrib/OKState/PDE/laplace/dirichpoiss2.pg +++ b/Contrib/OKState/PDE/laplace/dirichpoiss2.pg @@ -32,7 +32,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -76,7 +76,7 @@ $a & \text{if } 0 < \theta < \pi \\ \) $PAR \( \displaystyle u(r,\theta) = \frac{1}{2\pi} \int_0^{\pi} \) \{ ans_rule(45) \} \( d \alpha \) -$SPACE \{ AnswerFormatHelp("formulas") \} +$SPACE \{ helpLink("formulas") \} $PAR $BITALIC $BBOLD Note:$EBOLD Use ${LQ}theta${RQ} for \(\theta\) and ${LQ}alpha${RQ} for \(\alpha\), the variable of integration. $EITALIC $PAR @@ -88,7 +88,7 @@ $PAR w(1,\theta) = \theta^2 , \quad -\pi < \theta \leq \pi \) $PAR \( \displaystyle w(r,\theta) = \frac{1}{2\pi} \int_{-\pi}^{\pi} \) \{ ans_rule(45) \} \( d \alpha \) -$SPACE \{ AnswerFormatHelp("formulas") \} +$SPACE \{ helpLink("formulas") \} $PAR $BITALIC $BBOLD Note:$EBOLD Use ${LQ}theta${RQ} for \(\theta\) and ${LQ}alpha${RQ} for \(\alpha\), the variable of integration. $EITALIC END_TEXT diff --git a/Contrib/OKState/PDE/laplace/laplace-3d-strip-1.pg b/Contrib/OKState/PDE/laplace/laplace-3d-strip-1.pg index 120820ee09..c4051814db 100644 --- a/Contrib/OKState/PDE/laplace/laplace-3d-strip-1.pg +++ b/Contrib/OKState/PDE/laplace/laplace-3d-strip-1.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -57,12 +57,12 @@ BEGIN_TEXT We wish to solve \( \nabla^2 \psi = 0 \) in the region in 3-space given by \( -$a < z < $b \) and \(-\infty < x,y < \infty\). -Suppose that when \( z =-$a \), then \(\psi = $c \) and +Suppose that when \( z =-$a \), then \(\psi = $c \) and when \( z =$b \), then \(\psi = $d \). Suppose that \(\psi\) depends neither on \(x\) nor on \(y\). $PAR \(\psi = {} \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/OKState/PDE/laplace/laplace-annulus1.pg b/Contrib/OKState/PDE/laplace/laplace-annulus1.pg index bb8a8d0b3d..c1ea40fbd3 100644 --- a/Contrib/OKState/PDE/laplace/laplace-annulus1.pg +++ b/Contrib/OKState/PDE/laplace/laplace-annulus1.pg @@ -24,7 +24,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -70,7 +70,7 @@ that is, \(u\) is a function of \(r\) alone. Write down the Laplacian in this case and solve. $PAR \(u = {} \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/OKState/PDE/laplace/laplace-rect-1.pg b/Contrib/OKState/PDE/laplace/laplace-rect-1.pg index b5902e51a5..00f852c60c 100644 --- a/Contrib/OKState/PDE/laplace/laplace-rect-1.pg +++ b/Contrib/OKState/PDE/laplace/laplace-rect-1.pg @@ -24,7 +24,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -56,14 +56,14 @@ Solve the partial differential equation problem $PAR \( \quad u_{xx} + u_{xx} = 0 , \qquad 0 < x < 1 , \quad 0 < y < 1 \) $PAR -\( \quad +\( \quad u(x,0) = $a \sin(\pi x) + $b \sin($c \pi x) , \quad u(x,1) = 0, \quad u(0,y) = 0, \quad u(1,y) = 0. \) $PAR \(u(x,y) = {} \) \{ ans_rule(60) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/OKState/PDE/laplace/laplace-rect-2.pg b/Contrib/OKState/PDE/laplace/laplace-rect-2.pg index 1b1ab4749e..485088d7ae 100644 --- a/Contrib/OKState/PDE/laplace/laplace-rect-2.pg +++ b/Contrib/OKState/PDE/laplace/laplace-rect-2.pg @@ -24,7 +24,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -55,14 +55,14 @@ Solve the partial differential equation problem $PAR \( \quad u_{xx} + u_{xx} = 0 , \qquad 0 < x < 1 , \quad 0 < y < 1 \) $PAR -\( \quad +\( \quad u(x,0) = 0, \quad u(x,1) = $a \sin($b \pi x), \quad u(0,y) = 0, \quad u(1,y) = 0. \) $PAR \(u(x,y) = {} \) \{ ans_rule(60) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/OKState/PDE/laplace/laplace-rect-3.pg b/Contrib/OKState/PDE/laplace/laplace-rect-3.pg index b0e8bc0aaa..4d6816a053 100644 --- a/Contrib/OKState/PDE/laplace/laplace-rect-3.pg +++ b/Contrib/OKState/PDE/laplace/laplace-rect-3.pg @@ -24,7 +24,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -55,14 +55,14 @@ Solve the partial differential equation problem $PAR \( \quad u_{xx} + u_{xx} = 0 , \qquad 0 < x < 1 , \quad 0 < y < 1 \) $PAR -\( \quad +\( \quad u(x,0) = 0, \quad u(x,1) = 0, \quad u(0,y) = $a \sin($b \pi x), \quad u(1,y) = 0. \) $PAR \(u(x,y) = {} \) \{ ans_rule(60) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/OKState/PDE/laplace/laplace-rect-4.pg b/Contrib/OKState/PDE/laplace/laplace-rect-4.pg index 0ce3af92b7..7244cd97d5 100644 --- a/Contrib/OKState/PDE/laplace/laplace-rect-4.pg +++ b/Contrib/OKState/PDE/laplace/laplace-rect-4.pg @@ -24,7 +24,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -56,14 +56,14 @@ Solve the partial differential equation problem $PAR \( \quad u_{xx} + u_{xx} = 0 , \qquad 0 < x < 1 , \quad 0 < y < 1 \) $PAR -\( \quad +\( \quad u(x,0) = 0 , \quad u(x,1) = $a \sin(\pi x), \quad u(0,y) = $b \sin($c \pi y), \quad u(1,y) = 0. \) $PAR \(u(x,y) = {} \) \{ ans_rule(60) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/OKState/PDE/laplace/laplace-rect-5.pg b/Contrib/OKState/PDE/laplace/laplace-rect-5.pg index 2bc7a7f1b1..eb17ae1323 100644 --- a/Contrib/OKState/PDE/laplace/laplace-rect-5.pg +++ b/Contrib/OKState/PDE/laplace/laplace-rect-5.pg @@ -24,7 +24,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -57,14 +57,14 @@ Solve the partial differential equation problem $PAR \( \quad u_{xx} + u_{xx} = 0 , \qquad 0 < x < $a , \quad 0 < y < $b \) $PAR -\( \quad +\( \quad u(x,0) = $c \sin\left( \frac{$d \pi}{$a} x\right) , \quad u(x,$b) = 0, \quad u(0,y) = 0, \quad u($a,y) = 0. \) $PAR \(u(x,y) = {} \) \{ ans_rule(60) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/OKState/PDE/laplace/laplace-rect-6.pg b/Contrib/OKState/PDE/laplace/laplace-rect-6.pg index ede94d885e..1eef20b3b3 100644 --- a/Contrib/OKState/PDE/laplace/laplace-rect-6.pg +++ b/Contrib/OKState/PDE/laplace/laplace-rect-6.pg @@ -24,7 +24,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -52,14 +52,14 @@ Solve the partial differential equation problem $PAR \( \quad u_{xx} + u_{xx} = 0 , \qquad 0 < x < 1 , \quad 0 < y < 1 \) $PAR -\( \quad +\( \quad u(x,0) = $a , \quad u(x,1) = $a, \quad u(0,y) = $a, \quad u(1,y) = $a. \) $PAR \(u(x,y) = {} \) \{ ans_rule(60) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $PAR Think about it before jumping headlong into a long computation, the answer is really simple if you think about what it would mean if it was the steady state diff --git a/Contrib/OKState/PDE/laplace/laplace-strip-1.pg b/Contrib/OKState/PDE/laplace/laplace-strip-1.pg index b25e613ee5..3417799cbb 100644 --- a/Contrib/OKState/PDE/laplace/laplace-strip-1.pg +++ b/Contrib/OKState/PDE/laplace/laplace-strip-1.pg @@ -26,7 +26,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -60,12 +60,12 @@ Context()->texStrings; BEGIN_TEXT We wish to solve \( \nabla^2 \psi = \psi_{xx} + \psi_{yy} = 0 \) in the region in the plane given by \( -$a < x < $b \) and \(-\infty < y < \infty\). Suppose that -when \( x =-$a \), then \(\psi = $c \) and +when \( x =-$a \), then \(\psi = $c \) and when \( x =$b \), then \(\psi = $d \). Suppose that \(\psi\) does not depend on \(y\). $PAR \(\psi = {} \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/OKState/PDE/transforms/fourier-derivatives.pg b/Contrib/OKState/PDE/transforms/fourier-derivatives.pg index 6855b3f1e2..1662dc97f6 100644 --- a/Contrib/OKState/PDE/transforms/fourier-derivatives.pg +++ b/Contrib/OKState/PDE/transforms/fourier-derivatives.pg @@ -26,7 +26,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -60,7 +60,7 @@ $BR $BR \( \displaystyle -\mathcal{F}[f'''(x)] +\mathcal{F}[f'''(x)] = {} \) \{ ans_rule(40) \} @@ -69,7 +69,7 @@ $BR $BR \( \displaystyle -\mathcal{F}[f^{(4)}(x)] +\mathcal{F}[f^{(4)}(x)] = {} \) \{ ans_rule(40) \} @@ -78,14 +78,14 @@ $BR $BR \( \displaystyle -\mathcal{F}[$a f(x) + $b f'(x) + $c f''(x)] -= ( +\mathcal{F}[$a f(x) + $b f'(x) + $c f''(x)] += ( \) \{ ans_rule(40) \} \( ) \, \hat{f}(\xi) \) $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; @@ -111,14 +111,14 @@ $BR $BR \( \displaystyle -\mathcal{F}[f'''(x)] = +\mathcal{F}[f'''(x)] = -i\xi^3 \hat{f}(\xi) \) $BR $BR \( \displaystyle -\mathcal{F}[f^{(4)}(x)] = +\mathcal{F}[f^{(4)}(x)] = \xi^4 \hat{f}(\xi) \) $BR diff --git a/Contrib/OKState/PDE/transforms/fourier-exp.pg b/Contrib/OKState/PDE/transforms/fourier-exp.pg index 217b975a2f..5902124d07 100644 --- a/Contrib/OKState/PDE/transforms/fourier-exp.pg +++ b/Contrib/OKState/PDE/transforms/fourier-exp.pg @@ -26,7 +26,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -56,18 +56,18 @@ Compute the Fourier transform of the following functions in the exponential form. Use "xi" for the transformed variable name. That is, we wish to compute \[ -\mathcal{F}[f(x)] = \hat{f}(\xi) = \frac{1}{\sqrt{2\pi}} \int_{-\infty}^\infty f(x) e^{-i\xi x} \, dx +\mathcal{F}[f(x)] = \hat{f}(\xi) = \frac{1}{\sqrt{2\pi}} \int_{-\infty}^\infty f(x) e^{-i\xi x} \, dx \] $BR $BR -\(\displaystyle +\(\displaystyle \mathcal{F}[e^{-$a|x|}] = {} \) \{ ans_rule(40) \} $BR $BR -\(\displaystyle +\(\displaystyle \mathcal{F}[f(x)] = {} \) @@ -76,7 +76,7 @@ $BR where \(f(x)\) is 0 for all \(x\) except \( 0 \leq x \leq $b \) where \(f(x) = $a \) $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/OKState/PDE/transforms/fourier-sin-cos.pg b/Contrib/OKState/PDE/transforms/fourier-sin-cos.pg index d79fb569ec..fbef9bdb08 100644 --- a/Contrib/OKState/PDE/transforms/fourier-sin-cos.pg +++ b/Contrib/OKState/PDE/transforms/fourier-sin-cos.pg @@ -26,7 +26,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -58,21 +58,21 @@ f(x) = \int_0^\infty a(\xi) \cos(\xi x) d\xi + \int_0^\infty b(\xi) \sin(\xi x) \] $BR $BR -\(\displaystyle +\(\displaystyle a(\xi) = {} \) \{ ans_rule(40) \} $BR $BR -\(\displaystyle +\(\displaystyle b(\xi) = {} \) \{ ans_rule(40) \} $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/OKState/PDE/transforms/sin-trans.pg b/Contrib/OKState/PDE/transforms/sin-trans.pg index 62ba9adb6d..fa79df705b 100644 --- a/Contrib/OKState/PDE/transforms/sin-trans.pg +++ b/Contrib/OKState/PDE/transforms/sin-trans.pg @@ -27,7 +27,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -58,14 +58,14 @@ remind you, the definition is \] $BR $BR -\(\displaystyle +\(\displaystyle \mathcal{F}_s [ e^{-$a x} ] = {} \) \{ ans_rule(40) \} $BR $BR -\(\displaystyle +\(\displaystyle \mathcal{F}_s [ H($a-x) ] = {} \) @@ -76,7 +76,7 @@ where \( H(x) \) is the Heaviside function, which is 0 for negative numbers and for positive numbers. $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; @@ -96,13 +96,13 @@ ANS( $answer2->cmp() ); Context()->texStrings; BEGIN_SOLUTION ${PAR}SOLUTION:$PAR -\(\displaystyle +\(\displaystyle \mathcal{F}_s [ e^{-$a x} ] = $answer1 \) $BR $BR -\(\displaystyle +\(\displaystyle \mathcal{F}_s [ H($a-x) ] = $answer2 \) diff --git a/Contrib/OKState/PDE/wave/frequencies1.pg b/Contrib/OKState/PDE/wave/frequencies1.pg index 114ec79ea6..d6bab1c654 100644 --- a/Contrib/OKState/PDE/wave/frequencies1.pg +++ b/Contrib/OKState/PDE/wave/frequencies1.pg @@ -33,7 +33,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -63,7 +63,7 @@ Take the vibrating string satisfying $BR PDE: \( \quad u_{tt} = \alpha^2 u_{xx} , \qquad 0 < x < L , \quad t > 0 \) $BR -BC: \( \quad u(0,t) = u(L,t)= 0 \) +BC: \( \quad u(0,t) = u(L,t)= 0 \) $BR The constant \(\alpha^2 = \frac{T}{\rho} \) where \(T\) is tension and \(\rho\) is linear density of the string. @@ -82,7 +82,7 @@ the frequency \(\omega\) gets multiplied by \{ ans_rule(20) \}. $BR $BR -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/OKState/PDE/wave/one-dim-wave-propagation-speed.pg b/Contrib/OKState/PDE/wave/one-dim-wave-propagation-speed.pg index 1b3445b018..958e38ef32 100644 --- a/Contrib/OKState/PDE/wave/one-dim-wave-propagation-speed.pg +++ b/Contrib/OKState/PDE/wave/one-dim-wave-propagation-speed.pg @@ -26,7 +26,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -55,13 +55,13 @@ Suppose the equation for a particular channel is where as usual [`x`] is the position along the channel and [`t`] is time (let us not worry about the units). Suppose the channel is very very long so that we don't have to worry about its ends. -At time [`t=0`] the water is completely quiet with no waves at all, when suddenly a large boulder +At time [`t=0`] the water is completely quiet with no waves at all, when suddenly a large boulder falls into the channel and makes a wave at the position [`x=0.`] At what time will Bob standing at position [`x=[$b]`] see the wave? [`t={}`] [________]{"$b/$a"} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* END_PGML ##################### diff --git a/Contrib/OKState/PDE/wave/planar1.pg b/Contrib/OKState/PDE/wave/planar1.pg index 73f278f32e..b7f2a25cb8 100644 --- a/Contrib/OKState/PDE/wave/planar1.pg +++ b/Contrib/OKState/PDE/wave/planar1.pg @@ -26,7 +26,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -105,7 +105,7 @@ $BR \(u(x,y,z,t) = {} \) \{ ans_rule(40) \} $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/OKState/PDE/wave/planar2.pg b/Contrib/OKState/PDE/wave/planar2.pg index 51118913e6..50de1ebe57 100644 --- a/Contrib/OKState/PDE/wave/planar2.pg +++ b/Contrib/OKState/PDE/wave/planar2.pg @@ -26,7 +26,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -82,7 +82,7 @@ solution, the constants may be somewhat different that you first think. $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/OKState/PDE/wave/setup-guitar-2.pg b/Contrib/OKState/PDE/wave/setup-guitar-2.pg index 731af37acf..0dea2a6874 100644 --- a/Contrib/OKState/PDE/wave/setup-guitar-2.pg +++ b/Contrib/OKState/PDE/wave/setup-guitar-2.pg @@ -18,12 +18,12 @@ ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGcourse.pl" ); @@ -76,8 +76,8 @@ $PAR $PAR \(u_t(x,0) = {} \) \{ ans_rule(5) \} $PAR -\{ AnswerFormatHelp("numbers") \} $SPACE -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("numbers") \} $SPACE +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; @@ -100,4 +100,4 @@ ANS( $azero->cmp() ); ANS( $ainit->cmp() ); ANS( $atinit->cmp() ); -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/Contrib/OKState/PDE/wave/solve-finite-string-dal1.pg b/Contrib/OKState/PDE/wave/solve-finite-string-dal1.pg index 93243f6c32..7e9a890540 100644 --- a/Contrib/OKState/PDE/wave/solve-finite-string-dal1.pg +++ b/Contrib/OKState/PDE/wave/solve-finite-string-dal1.pg @@ -32,7 +32,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -79,9 +79,9 @@ Take the problem $BR PDE: \( \quad u_{tt} = $asq u_{xx} , \qquad 0 < x < $b , \quad t > 0 \) $BR -BC: \( \quad u(0,t) = u($b,t)= 0 \) +BC: \( \quad u(0,t) = u($b,t)= 0 \) $BR -IC: \( \quad u(x,0) = x($b-x), \qquad u_t(x,0) = 0 \) +IC: \( \quad u(x,0) = x($b-x), \qquad u_t(x,0) = 0 \) $BR $BR Use the D'Alembert solution (remember to make the function odd and periodic) to find @@ -95,7 +95,7 @@ $BR \(u($bhalf,10) = {} \) \{ ans_rule(20) \} $BR $BR -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; @@ -123,7 +123,7 @@ which equals \(f(\xi)\) for \( 0 \leq \xi \leq $b \). That is, \(F(\xi) = F(\xi+2 \cdot $b)\) can be used to only consider \(\xi\) between \(-$b\) and \($b\). After this, if \(\xi \geq 0\), then \(F(\xi) = f(\xi)\), -and +and if \(\xi < 0\), then \(F(\xi) = -f(-\xi)\). The solution is \(u(x,t) = \frac{1}{2} \bigl( F(x-$a t) + F(x+$a t) \bigr)\). Therefore, diff --git a/Contrib/OKState/PDE/wave/solve-finite-string-simple1.pg b/Contrib/OKState/PDE/wave/solve-finite-string-simple1.pg index 87ff4cffcc..7035d94e6b 100644 --- a/Contrib/OKState/PDE/wave/solve-finite-string-simple1.pg +++ b/Contrib/OKState/PDE/wave/solve-finite-string-simple1.pg @@ -29,7 +29,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -61,15 +61,15 @@ Solve the problem $BR PDE: \( \quad u_{tt} = $asq u_{xx} , \qquad 0 < x < 1 , \quad t > 0 \) $BR -BC: \( \quad u(0,t) = u(1,t) = 0 \) +BC: \( \quad u(0,t) = u(1,t) = 0 \) $BR -IC: \( \quad u(x,0) = $b \sin( 2 \pi x) , \qquad u_t(x,0) = $c \sin( 3 \pi x) \) +IC: \( \quad u(x,0) = $b \sin( 2 \pi x) , \qquad u_t(x,0) = $c \sin( 3 \pi x) \) $BR $BR \(u(x,t) = {} \) \{ ans_rule(40) \} $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/OKState/PDE/wave/solve-wave-dal1.pg b/Contrib/OKState/PDE/wave/solve-wave-dal1.pg index e295784cfa..d17a1c1be2 100644 --- a/Contrib/OKState/PDE/wave/solve-wave-dal1.pg +++ b/Contrib/OKState/PDE/wave/solve-wave-dal1.pg @@ -27,7 +27,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -58,12 +58,12 @@ Solve the problem $BR PDE: \( \quad u_{tt} = $asq u_{xx} , \qquad -\infty < x < \infty , \quad t > 0 \) $BR -IC: \( \quad u(x,0) = $b e^{-x^2}, \qquad u_t(x,0) = 0 \) +IC: \( \quad u(x,0) = $b e^{-x^2}, \qquad u_t(x,0) = 0 \) $BR \(u = {} \) \{ ans_rule(40) \} $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/OKState/PDE/wave/solve-wave-dal2.pg b/Contrib/OKState/PDE/wave/solve-wave-dal2.pg index 48515d1815..26576cebd6 100644 --- a/Contrib/OKState/PDE/wave/solve-wave-dal2.pg +++ b/Contrib/OKState/PDE/wave/solve-wave-dal2.pg @@ -27,7 +27,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -63,7 +63,7 @@ $BR \(u = {} \) \{ ans_rule(40) \} $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/OKState/PDE/wave/solve-wave-dal3.pg b/Contrib/OKState/PDE/wave/solve-wave-dal3.pg index 08d502c281..e23b03f591 100644 --- a/Contrib/OKState/PDE/wave/solve-wave-dal3.pg +++ b/Contrib/OKState/PDE/wave/solve-wave-dal3.pg @@ -27,7 +27,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -70,7 +70,7 @@ $BR \(B = {} \) \{ ans_rule(20) \} $BR $BR -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/OKState/PDE/wave/solve-wave-dal4.pg b/Contrib/OKState/PDE/wave/solve-wave-dal4.pg index 30b8e9ef5b..43411fc35a 100644 --- a/Contrib/OKState/PDE/wave/solve-wave-dal4.pg +++ b/Contrib/OKState/PDE/wave/solve-wave-dal4.pg @@ -26,7 +26,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -55,14 +55,14 @@ Take the problem $PAR \( \quad u_{tt} = $asq u_{xx} , \qquad 0 < x < $b , \quad t > 0 \) $PAR -\( \quad u(0,t) = u($b,t)= 0 \) +\( \quad u(0,t) = u($b,t)= 0 \) $PAR -\( \quad u(x,0) = $c \sin^{$ex}\bigl(\frac{\pi}{$b} x\bigr), \qquad u_t(x,0) = 0 \) +\( \quad u(x,0) = $c \sin^{$ex}\bigl(\frac{\pi}{$b} x\bigr), \qquad u_t(x,0) = 0 \) $PAR Use the d'Alembert solution (notice that something above is odd and periodic): $PAR \(u(x,t) = {} \) \{ ans_rule(50) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/OKState/PDE/wave/solve-wave-guess1.pg b/Contrib/OKState/PDE/wave/solve-wave-guess1.pg index c02b410821..04f47b3680 100644 --- a/Contrib/OKState/PDE/wave/solve-wave-guess1.pg +++ b/Contrib/OKState/PDE/wave/solve-wave-guess1.pg @@ -27,7 +27,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -74,7 +74,7 @@ $BR \(u = {} \) \{ ans_rule(40) \} $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/OKState/PDE/wave/wave-dimensionless.pg b/Contrib/OKState/PDE/wave/wave-dimensionless.pg index 4e35157115..c2d0b94269 100644 --- a/Contrib/OKState/PDE/wave/wave-dimensionless.pg +++ b/Contrib/OKState/PDE/wave/wave-dimensionless.pg @@ -27,7 +27,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -67,15 +67,15 @@ Transform the problem $BR PDE: \( \quad u_{tt} = $asq u_{xx} , \qquad 0 < x < $b , \quad t > 0 \) $BR -BC: \( \quad u(0,t) = $c \quad u($b,t) = $d \) +BC: \( \quad u(0,t) = $c \quad u($b,t) = $d \) $BR -IC: \( \quad u(x,0) = x^2, \quad u_t(x,0) = x^3\) +IC: \( \quad u(x,0) = x^2, \quad u_t(x,0) = x^3\) $BR into a dimensionless problem: $BR PDE: \( \quad U_{\tau\tau} = U_{\xi\xi} , \qquad 0 < \xi < 1 , \quad \tau > 0 \) $BR -BC: \( \quad U(0,\tau) = 0 \quad u(1,\tau) = 1 \) +BC: \( \quad U(0,\tau) = 0 \quad u(1,\tau) = 1 \) $BR IC: \( \quad U(\xi,0) = {} \) \{ ans_rule(40) \} $BR @@ -99,7 +99,7 @@ $BR \(\tau = {} \) \{ ans_rule(40) \} $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/OKState/PDE/wave/wave-speed-zero.pg b/Contrib/OKState/PDE/wave/wave-speed-zero.pg index fe4cecd0f8..437ab68b13 100644 --- a/Contrib/OKState/PDE/wave/wave-speed-zero.pg +++ b/Contrib/OKState/PDE/wave/wave-speed-zero.pg @@ -26,7 +26,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserPopUp.pl", "PGML.pl", "PGcourse.pl", @@ -71,13 +71,13 @@ In the wave equation suppose we let [`a`] go to zero. -As [`a`] becomes smaller the frequency of oscillation +As [`a`] becomes smaller the frequency of oscillation [__________]{$freqpop} and the length (in time) of one cycle [__________]{$cyclepop} When [`a=0,`] then the frequency is [__________]{"0"} -([@ AnswerFormatHelp("numbers") @]*) +([@ helpLink("numbers") @]*) and the length of the cycle is [__________]{$zerocyclepop} diff --git a/Contrib/OKState/PDE/wave/wavefront1.pg b/Contrib/OKState/PDE/wave/wavefront1.pg index a412825c6e..0d237213b9 100644 --- a/Contrib/OKState/PDE/wave/wavefront1.pg +++ b/Contrib/OKState/PDE/wave/wavefront1.pg @@ -27,7 +27,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -80,7 +80,7 @@ nonzero. $BR \(t = {}\) \{ ans_rule(20) \} $BR -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/OKState/VectorCalculus/cyl-div-1.pg b/Contrib/OKState/VectorCalculus/cyl-div-1.pg index b0940fd3e9..29853ba5bb 100644 --- a/Contrib/OKState/VectorCalculus/cyl-div-1.pg +++ b/Contrib/OKState/VectorCalculus/cyl-div-1.pg @@ -17,12 +17,12 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", ); Context("Numeric"); - + $showPartialCorrectAnswers = 1; $a = random(2,9,1); @@ -54,7 +54,7 @@ $SPACE $SPACE \{ans_rule(40)\} \(\hat{e}_r + {}\) $BR $SPACE $SPACE \{ans_rule(40)\} \(\hat{e}_{\theta} + {}\) $BR $SPACE $SPACE \{ans_rule(40)\} \( \hat{k} \). $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $PAR $BITALIC $BBOLD Note: $EBOLD \(\hat{e}_r\) is the unit vector in the direction of \(r\) and \(\hat{e}_{\theta}\) is the unit vector in the direction of \(\theta\). $EITALIC @@ -64,7 +64,7 @@ Compute the divergence in polar coordinates (as a function of \((r,\theta,z)\). $PAR \(\nabla \cdot \vec{F} = {} \) \{ans_rule(40)\} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; @@ -82,12 +82,12 @@ Context()->texStrings; BEGIN_SOLUTION a) \( -\vec{F} = $answer1_1 \, \hat{e}_r + $answer1_2 \, \hat{e}_{\theta} + $answer1_3 \, \hat{k} +\vec{F} = $answer1_1 \, \hat{e}_r + $answer1_2 \, \hat{e}_{\theta} + $answer1_3 \, \hat{k} \). $PAR b) \( -\nabla \cdot \vec{F} = $answer2 +\nabla \cdot \vec{F} = $answer2 \). END_SOLUTION Context()->normalStrings; diff --git a/Contrib/OKState/VectorCalculus/flux-integral-additivity1.pg b/Contrib/OKState/VectorCalculus/flux-integral-additivity1.pg index 1675b42915..089aaa357e 100644 --- a/Contrib/OKState/VectorCalculus/flux-integral-additivity1.pg +++ b/Contrib/OKState/VectorCalculus/flux-integral-additivity1.pg @@ -14,12 +14,12 @@ ########################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -41,11 +41,11 @@ and Then [``\iint_S \vec{F} \cdot \hat{n} \, dS = ``][_________________]{"$a+$b"} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* END_PGML ########################### COMMENT("Check that the student understands that additivity of integrals still works for surface integrals"); -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/Contrib/OKState/VectorCalculus/flux-integral1.pg b/Contrib/OKState/VectorCalculus/flux-integral1.pg index 86455e30c4..f717a0338d 100644 --- a/Contrib/OKState/VectorCalculus/flux-integral1.pg +++ b/Contrib/OKState/VectorCalculus/flux-integral1.pg @@ -14,12 +14,12 @@ ########################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -40,7 +40,7 @@ and [`0 \leq y \leq 1`], and the unit normal [`\hat{n}`] points upward. Let [`\ Compute [``\iint_S \vec{F} \cdot \hat{n} \, dS = ``][_________________]{"-(4*$a*$c-3*$b-6*$a)/12"} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* END_PGML ########################### diff --git a/Contrib/OKState/VectorCalculus/hessian3d.pg b/Contrib/OKState/VectorCalculus/hessian3d.pg index 26e9749f44..cb26d239f3 100644 --- a/Contrib/OKState/VectorCalculus/hessian3d.pg +++ b/Contrib/OKState/VectorCalculus/hessian3d.pg @@ -19,7 +19,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserPopUp.pl", "PGML.pl", "PGcourse.pl", @@ -90,13 +90,13 @@ Compute the Hessian at the origin: [`H_f|_{(0,0,0)} = {}`] [_________]*{$hessian} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* Now compute and check the signs of [``\frac{\partial^2 f}{\partial x^2}\Big|_{(0,0,0)} = {}``] [_________]{"$hd1"} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* [``\det \begin{bmatrix} \frac{\partial^2 f}{\partial x^2}\Big|_{(0,0,0)} & @@ -105,11 +105,11 @@ Now compute and check the signs of \frac{\partial^2 f}{\partial y^2}\Big|_{(0,0,0)} \end{bmatrix} = {} ``] [_________]{"$hd2"} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* [``\det H_f\big|_{(0,0,0)} = {} ``] [_________]{"$hd3"} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* So the critical point is a [_______]{$popup} END_PGML diff --git a/Contrib/OKState/VectorCalculus/laplace-operator1.pg b/Contrib/OKState/VectorCalculus/laplace-operator1.pg index 31dd94deaf..6de8583974 100644 --- a/Contrib/OKState/VectorCalculus/laplace-operator1.pg +++ b/Contrib/OKState/VectorCalculus/laplace-operator1.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -59,16 +59,16 @@ BEGIN_TEXT Compute $PAR \(\nabla^2 \bigl( $a x^2 - y^2 + $b z + $c x \bigr) = {} \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $PAR \(\nabla^2 \bigl( $b xy + $a x + $c y + e^x \cos(y) \bigr) = {} \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $PAR \(\nabla^2 \bigl( $c e^x y z\bigl) = {} \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $PAR \(\nabla^2 \bigl( $d \ln (x^2+y^2+z^2) \bigr) = {} \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $PAR $BITALIC $BBOLD Note: $EBOLD diff --git a/Contrib/OKState/VectorCalculus/line-integrals-lines1.pg b/Contrib/OKState/VectorCalculus/line-integrals-lines1.pg index 34874da708..0ba486ae74 100644 --- a/Contrib/OKState/VectorCalculus/line-integrals-lines1.pg +++ b/Contrib/OKState/VectorCalculus/line-integrals-lines1.pg @@ -19,7 +19,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -49,25 +49,25 @@ BEGIN_PGML Compute the following integrals: a) If [:C:] is a -straight line from [`(0,0)`] to [`([$a],[$b])`], compute +straight line from [`(0,0)`] to [`([$a],[$b])`], compute [``\int_C [$c] x \, dx + [$d] y \, dy ={}``] [_______________]{"($b^2*$d+$a^2*$c)/2"}{40} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* b) If [:C:] is a -straight line from [`([$e],[$f])`] to [`(1,0)`], compute +straight line from [`([$e],[$f])`] to [`(1,0)`], compute [``\int_C [$g] x^{2}y \, dx + [$h] xy^{3} \, dy ={}``] [_______________]{"-((12*$e+3)*$f^4*$h+(15*$e^3-5*$e^2-5*$e-5)*$f*$g)/60"}{40} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* c) If [:C:] is a straight line from [`(1,0)`] to [`(0,1)`], [`\vec{F} = \langle [$a] \pi \cos(\pi y), \pi \sin (\pi x) + [$b] y \rangle`], and [`\hat{t}`] the unit tangent vector, -compute +compute [``\int_C \vec{F} \cdot \hat{t} \, ds ={}``] [_______________]{"($b+4)/2"}{40} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* d) If [:C:] is a straight line from [`(0,0,0)`] to [`([$a],[$b],[$c])`], @@ -77,10 +77,10 @@ straight line from [`(0,0,0)`] to [`([$a],[$b],[$c])`], [$b] x + [$c] y + [$d] z \rangle`], and [`\hat{t}`] the unit tangent vector, -compute +compute [``\int_C \vec{F} \cdot \hat{t} \, ds ={}``] [_______________]{"($b^2*$h+$a*$b*$g+$a*$c*$f+$a*$b*$e+($c^2+$a^2)*$d+$b*$c^2+2*$a*$b*$c)/2"}{40} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* END_PGML ##################### diff --git a/Contrib/OKState/VectorCalculus/line-integrals-lines2.pg b/Contrib/OKState/VectorCalculus/line-integrals-lines2.pg index 5b1fe502cf..c13ed1fd9d 100644 --- a/Contrib/OKState/VectorCalculus/line-integrals-lines2.pg +++ b/Contrib/OKState/VectorCalculus/line-integrals-lines2.pg @@ -19,7 +19,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,17 +48,17 @@ BEGIN_PGML Compute the following integrals: a) If [:C:] is a -straight line from [`(0,0)`] to [`([$a],[$b])`], compute +straight line from [`(0,0)`] to [`([$a],[$b])`], compute [``\int_C ( [$c] x^2 + [$d] y^2 + [$e] x) \, ds ={}``] [_______________]{"(sqrt($b^2+$a^2)*(3*$a*$e+2*$b^2*$d+2*$a^2*$c))/6"}{40} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* b) If [:C:] is a straight line from [`(1,-1,0)`] to [`([$a],[$b],[$c])`] -compute +compute [``\int_C ([$d] xy + [$e] z^2) \, ds ={}``] [_______________]{"(sqrt($c^2+($b+1)^2+($a-1)^2)*(2*$c^2*$e+((2*$a+1)*$b-$a-2)*$d))/6"}{40} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* END_PGML ##################### diff --git a/Contrib/OKState/VectorCalculus/surface-integral1.pg b/Contrib/OKState/VectorCalculus/surface-integral1.pg index ae5ef7bf4a..d300274032 100644 --- a/Contrib/OKState/VectorCalculus/surface-integral1.pg +++ b/Contrib/OKState/VectorCalculus/surface-integral1.pg @@ -14,12 +14,12 @@ ########################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -40,7 +40,7 @@ and [`0 \leq y \leq [$b]`]. Compute [``\iint_S [$c] z\sqrt{1+4x^2+4y^2} \, dS = ``][_________________]{"-((12*$a*$b^5+5*$a*$b^3+(-12*$a^5-5*$a^3)*$b)*$c)/15"} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* END_PGML ########################### diff --git a/Contrib/OKState/VectorCalculus/surface-integral2.pg b/Contrib/OKState/VectorCalculus/surface-integral2.pg index 5c798b7118..8e4b615c5e 100644 --- a/Contrib/OKState/VectorCalculus/surface-integral2.pg +++ b/Contrib/OKState/VectorCalculus/surface-integral2.pg @@ -14,12 +14,12 @@ ########################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -40,7 +40,7 @@ and [`0 \leq y \leq 1`]. Compute [``\iint_S [$c]xz^2 \, dS = ``][_________________]{"(sqrt($b^2+$a^2+1)*(2*$b^2+4*$a*$b+3*$a^2)*$c)/12"} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* END_PGML ########################### diff --git a/Contrib/OKState/VectorCalculus/surface-normals1.pg b/Contrib/OKState/VectorCalculus/surface-normals1.pg index 37278e909d..e130db8687 100644 --- a/Contrib/OKState/VectorCalculus/surface-normals1.pg +++ b/Contrib/OKState/VectorCalculus/surface-normals1.pg @@ -18,12 +18,12 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", ); Context("Numeric"); - + $showPartialCorrectAnswers = 1; $a = random(2,9,1); @@ -59,7 +59,7 @@ $BR $BR \( \qquad + \) \{ans_rule(40)\} \( \hat{k} \). $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $PAR b) For the surface given by \(z = e^{$b x}-$c y \), find the unit normal (the one pointing roughly upwards) @@ -73,7 +73,7 @@ $BR \(\qquad + \) \{ans_rule(40)\} \( \hat{k} \). $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; @@ -95,12 +95,12 @@ Context()->texStrings; BEGIN_SOLUTION a) \( -$answer1_1 \hat{\imath} + $answer1_2 \hat{\jmath} + $answer1_3 \hat{k} +$answer1_1 \hat{\imath} + $answer1_2 \hat{\jmath} + $answer1_3 \hat{k} \). $PAR b) \( -$answer2_1 \hat{\imath} + $answer2_2 \hat{\jmath} + $answer2_3 \hat{k} +$answer2_1 \hat{\imath} + $answer2_2 \hat{\jmath} + $answer2_3 \hat{k} \). END_SOLUTION Context()->normalStrings; diff --git a/Contrib/OKState/VectorCalculus/surfacearea1.pg b/Contrib/OKState/VectorCalculus/surfacearea1.pg index 35a5c2fd6c..314d77cea7 100644 --- a/Contrib/OKState/VectorCalculus/surfacearea1.pg +++ b/Contrib/OKState/VectorCalculus/surfacearea1.pg @@ -14,12 +14,12 @@ ########################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -37,7 +37,7 @@ Let [`S`] be a surface with surface area [$a]. Compute the following. If not possible, write "impossible". [``\iint_S [$b] \, dS = ``][_________________]{"$a*$b"} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* END_PGML ########################### diff --git a/Contrib/PCC/BasicAlgebra/AbsoluteValue/absoluteValueInequalityByGraph10.pg b/Contrib/PCC/BasicAlgebra/AbsoluteValue/absoluteValueInequalityByGraph10.pg index 7f678990fc..cbbdb2daee 100644 --- a/Contrib/PCC/BasicAlgebra/AbsoluteValue/absoluteValueInequalityByGraph10.pg +++ b/Contrib/PCC/BasicAlgebra/AbsoluteValue/absoluteValueInequalityByGraph10.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGgraphmacros.pl", "PCCmacros.pl", "PGcourse.pl", @@ -45,14 +45,14 @@ do { $x2 = max(-$b+$e,-$b-$e); $y1 = $func->eval(x=>$x1); $y2 = $func->eval(x=>$x2); -} until +} until abs($x1) < $boundary && abs($x2) < $boundary && int($y1) == $y1 && int($y2) == $y2 && abs($y1) < $boundary && abs($y2) < $boundary; - + @signs = ('\gt','\ge','\lt','\le'); $index1 = random(0,3,1); if ($index1 <= 1) { diff --git a/Contrib/PCC/BasicAlgebra/AbsoluteValue/absoluteValueInequalityByGraph20.pg b/Contrib/PCC/BasicAlgebra/AbsoluteValue/absoluteValueInequalityByGraph20.pg index b24589bbd5..992448cef0 100644 --- a/Contrib/PCC/BasicAlgebra/AbsoluteValue/absoluteValueInequalityByGraph20.pg +++ b/Contrib/PCC/BasicAlgebra/AbsoluteValue/absoluteValueInequalityByGraph20.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGgraphmacros.pl", "PCCmacros.pl", "PGcourse.pl", @@ -45,14 +45,14 @@ do { $x2 = max(-$b+$e,-$b-$e); $y1 = $func->eval(x=>$x1); $y2 = $func->eval(x=>$x2); -} until +} until abs($x1) < $boundary && abs($x2) < $boundary && int($y1) == $y1 && int($y2) == $y2 && abs($y1) < $boundary && abs($y2) < $boundary; - + @signs = ('\gt','\ge','\lt','\le'); $index1 = random(0,3,1); if ($index1 <= 1) { diff --git a/Contrib/PCC/BasicAlgebra/Calculator/DesmosIntersection30.pg b/Contrib/PCC/BasicAlgebra/Calculator/DesmosIntersection30.pg index 9d7166435c..5505768363 100644 --- a/Contrib/PCC/BasicAlgebra/Calculator/DesmosIntersection30.pg +++ b/Contrib/PCC/BasicAlgebra/Calculator/DesmosIntersection30.pg @@ -29,7 +29,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "parserPopUp.pl", "PCCgraphMacros.pl", "PCCmacros.pl", diff --git a/Contrib/PCC/BasicAlgebra/Calculator/DesmosIntersection40.pg b/Contrib/PCC/BasicAlgebra/Calculator/DesmosIntersection40.pg index 9e81c0c2f8..6f5d548fc4 100644 --- a/Contrib/PCC/BasicAlgebra/Calculator/DesmosIntersection40.pg +++ b/Contrib/PCC/BasicAlgebra/Calculator/DesmosIntersection40.pg @@ -29,7 +29,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "parserPopUp.pl", "PCCgraphMacros.pl", "PCCmacros.pl", diff --git a/Contrib/PCC/BasicAlgebra/Calculator/DesmosQuadraticFunction100.pg b/Contrib/PCC/BasicAlgebra/Calculator/DesmosQuadraticFunction100.pg index 0829302a22..fda0e11500 100644 --- a/Contrib/PCC/BasicAlgebra/Calculator/DesmosQuadraticFunction100.pg +++ b/Contrib/PCC/BasicAlgebra/Calculator/DesmosQuadraticFunction100.pg @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "parserPopUp.pl", "PCCgraphMacros.pl", "PCCmacros.pl", @@ -93,7 +93,7 @@ for my $i (0..2) { if (Real($j) == 0) {next;} $gr[$i]->lb( new Label(-$marksep[0]/8, $j, $j,'black','right','middle')); } - + add_functions($gr[$i], "$f for x in <$min[0],$max[0]> using color:blue and weight:2"); add_functions($gr[$i], "$g for x in <$min[0],$max[0]> using color:blue and weight:2"); $lor0 = $x0<$x1 ? 'left' : 'right'; diff --git a/Contrib/PCC/BasicAlgebra/Calculator/DesmosQuadraticFunction110.pg b/Contrib/PCC/BasicAlgebra/Calculator/DesmosQuadraticFunction110.pg index 2085e98a84..ded1379455 100644 --- a/Contrib/PCC/BasicAlgebra/Calculator/DesmosQuadraticFunction110.pg +++ b/Contrib/PCC/BasicAlgebra/Calculator/DesmosQuadraticFunction110.pg @@ -29,7 +29,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "contextFiniteSolutionSets.pl", "PCCmacros.pl", "PCCgraphMacros.pl", diff --git a/Contrib/PCC/BasicAlgebra/Calculator/DesmosQuadraticFunction70.pg b/Contrib/PCC/BasicAlgebra/Calculator/DesmosQuadraticFunction70.pg index 10c1f4a24c..defb07b9bb 100644 --- a/Contrib/PCC/BasicAlgebra/Calculator/DesmosQuadraticFunction70.pg +++ b/Contrib/PCC/BasicAlgebra/Calculator/DesmosQuadraticFunction70.pg @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PCCmacros.pl", "PGgraphmacros.pl", "PCCgraphMacros.pl", diff --git a/Contrib/PCC/BasicAlgebra/Calculator/DesmosQuadraticFunction80.pg b/Contrib/PCC/BasicAlgebra/Calculator/DesmosQuadraticFunction80.pg index 528c64debb..b65395c6b8 100644 --- a/Contrib/PCC/BasicAlgebra/Calculator/DesmosQuadraticFunction80.pg +++ b/Contrib/PCC/BasicAlgebra/Calculator/DesmosQuadraticFunction80.pg @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PCCmacros.pl", "PGgraphmacros.pl", "PCCgraphMacros.pl", diff --git a/Contrib/PCC/BasicAlgebra/Calculator/DesmosQuadraticFunction90.pg b/Contrib/PCC/BasicAlgebra/Calculator/DesmosQuadraticFunction90.pg index 86a9e598fa..b4d39c603d 100644 --- a/Contrib/PCC/BasicAlgebra/Calculator/DesmosQuadraticFunction90.pg +++ b/Contrib/PCC/BasicAlgebra/Calculator/DesmosQuadraticFunction90.pg @@ -29,7 +29,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "contextFiniteSolutionSets.pl", "PCCmacros.pl", "PCCgraphMacros.pl", diff --git a/Contrib/PCC/BasicAlgebra/Calculator/DesmosSolvingCubicEquation10.pg b/Contrib/PCC/BasicAlgebra/Calculator/DesmosSolvingCubicEquation10.pg index 1b29d615c1..8d61ef6333 100644 --- a/Contrib/PCC/BasicAlgebra/Calculator/DesmosSolvingCubicEquation10.pg +++ b/Contrib/PCC/BasicAlgebra/Calculator/DesmosSolvingCubicEquation10.pg @@ -30,7 +30,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "contextFiniteSolutionSets.pl", "PCCmacros.pl", "PGgraphmacros.pl", @@ -86,7 +86,7 @@ $rightb = $max[0]+1; if (Real($j) == 0) {next;} $gr->lb( new Label(-$marksep[0]/8, $j, $j,'black','right','middle')); } - + add_functions($gr, "$func0 for $var in <$leftb,$rightb> using color:blue and weight:2"); add_functions($gr, "$func1 for $var in <$leftb,$rightb> using color:blue and weight:2"); $gr->stamps( closed_circle($x0,$y0,'red') ); diff --git a/Contrib/PCC/BasicAlgebra/Calculator/DesmosSolvingInequality30.pg b/Contrib/PCC/BasicAlgebra/Calculator/DesmosSolvingInequality30.pg index fbd87e0c65..46ca05bb59 100644 --- a/Contrib/PCC/BasicAlgebra/Calculator/DesmosSolvingInequality30.pg +++ b/Contrib/PCC/BasicAlgebra/Calculator/DesmosSolvingInequality30.pg @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PCCmacros.pl", "PCCgraphMacros.pl", "PGgraphmacros.pl", @@ -154,9 +154,9 @@ if ($a>0) { BEGIN_PGML -Use technology to solve the following inequalities. +Use technology to solve the following inequalities. -* Enter *inf* to represent infinity. +* Enter *inf* to represent infinity. * Enter capitalized "U" to represent the union symbol, if needed. 1. Solve [`[$f] [$symbol0] [$g]\text{.}`] diff --git a/Contrib/PCC/BasicAlgebra/Calculator/DesmosSolvingInequality40.pg b/Contrib/PCC/BasicAlgebra/Calculator/DesmosSolvingInequality40.pg index 3de781c96b..4258520c62 100644 --- a/Contrib/PCC/BasicAlgebra/Calculator/DesmosSolvingInequality40.pg +++ b/Contrib/PCC/BasicAlgebra/Calculator/DesmosSolvingInequality40.pg @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "parserPopUp.pl", "PCCgraphMacros.pl", "PCCmacros.pl", @@ -95,7 +95,7 @@ for my $i (0..2) { if (Real($j) == 0) {next;} $gr[$i]->lb( new Label(-$marksep[0]/8, $j, $j,'black','right','middle')); } - + add_functions($gr[$i], "$f for x in <$min[0],$max[0]> using color:blue and weight:2"); add_functions($gr[$i], "$g for x in <$min[0],$max[0]> using color:blue and weight:2"); $lor0 = $x0<$x1 ? 'left' : 'right'; @@ -172,7 +172,7 @@ BEGIN_PGML Use technology to solve the following inequalities. -* Enter *inf* to represent infinity. +* Enter *inf* to represent infinity. * Use capitalized 'U' to represent the union symbol, if needed. 1. Solve [`[$g] [$symbol0] [$f] \text{.}`] diff --git a/Contrib/PCC/BasicAlgebra/Calculator/DesmosSolvingQuadraticEquation10.pg b/Contrib/PCC/BasicAlgebra/Calculator/DesmosSolvingQuadraticEquation10.pg index 122f4b8eef..acb19365d3 100644 --- a/Contrib/PCC/BasicAlgebra/Calculator/DesmosSolvingQuadraticEquation10.pg +++ b/Contrib/PCC/BasicAlgebra/Calculator/DesmosSolvingQuadraticEquation10.pg @@ -30,7 +30,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "contextFiniteSolutionSets.pl", "PCCmacros.pl", "PGgraphmacros.pl", @@ -87,7 +87,7 @@ $x1Show = Round($x1,3); if (Real($j) == 0) {next;} $gr->lb( new Label(-$marksep[0]/8, $j, $j,'black','right','middle')); } - + add_functions($gr, "$func for $var in <$min[0],$max[0]> using color:blue and weight:2"); add_functions($gr, "$e for $var in <$min[0],$max[0]> using color:blue and weight:2"); $lor0 = $x0<$x1 ? 'left' : 'right'; diff --git a/Contrib/PCC/BasicAlgebra/Calculator/DesmosTable10.pg b/Contrib/PCC/BasicAlgebra/Calculator/DesmosTable10.pg index 2ccc3a865a..b5432edcd3 100644 --- a/Contrib/PCC/BasicAlgebra/Calculator/DesmosTable10.pg +++ b/Contrib/PCC/BasicAlgebra/Calculator/DesmosTable10.pg @@ -1,9 +1,9 @@ ####################################### -### Generated from PreTeXt source -### on 2018-08-20T01:24:28-07:00 -### -### http://mathbook.pugetsound.edu -### +### Generated from PreTeXt source +### on 2018-08-20T01:24:28-07:00 +### +### http://mathbook.pugetsound.edu +### ####################################### ## DBsubject() ## DBchapter() @@ -29,7 +29,7 @@ loadMacros( "MathObjects.pl", "PGML.pl", "niceTables.pl", - "AnswerFormatHelp.pl", + "PCCmacros.pl", "parserMultiAnswer.pl", "PGcourse.pl", diff --git a/Contrib/PCC/BasicAlgebra/Calculator/DesmosTable20.pg b/Contrib/PCC/BasicAlgebra/Calculator/DesmosTable20.pg index 408b1ee6ed..e061a842e9 100644 --- a/Contrib/PCC/BasicAlgebra/Calculator/DesmosTable20.pg +++ b/Contrib/PCC/BasicAlgebra/Calculator/DesmosTable20.pg @@ -1,9 +1,9 @@ ####################################### -### Generated from PreTeXt source -### on 2018-08-20T01:24:28-07:00 -### -### http://mathbook.pugetsound.edu -### +### Generated from PreTeXt source +### on 2018-08-20T01:24:28-07:00 +### +### http://mathbook.pugetsound.edu +### ####################################### ## DBsubject() ## DBchapter() @@ -29,7 +29,7 @@ loadMacros( "MathObjects.pl", "PGML.pl", "niceTables.pl", - "AnswerFormatHelp.pl", + "PCCmacros.pl", "parserMultiAnswer.pl", "PGcourse.pl", diff --git a/Contrib/PCC/BasicAlgebra/Calculator/DesmosWindowView10.pg b/Contrib/PCC/BasicAlgebra/Calculator/DesmosWindowView10.pg index b1bb016a04..c2a0776f11 100644 --- a/Contrib/PCC/BasicAlgebra/Calculator/DesmosWindowView10.pg +++ b/Contrib/PCC/BasicAlgebra/Calculator/DesmosWindowView10.pg @@ -1,9 +1,9 @@ ####################################### -### Generated from PreTeXt source -### on 2018-08-20T01:24:29-07:00 -### -### http://mathbook.pugetsound.edu -### +### Generated from PreTeXt source +### on 2018-08-20T01:24:29-07:00 +### +### http://mathbook.pugetsound.edu +### ####################################### ## DBsubject() ## DBchapter() @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PCCmacros.pl", "parserMultiAnswer.pl", "PGgraphmacros.pl", @@ -103,7 +103,7 @@ $multians = MultiAnswer($x, $y)->with( my ($xmin,$xmax) = $xstu->value; my ($ymin,$ymax) = $ystu->value; #check end points are not infinite - if ($xmin->type eq 'Infinity' or $xmax->type eq 'Infinity' or $ymin->type eq 'Infinity' or $ymax->type eq 'Infinity') + if ($xmin->type eq 'Infinity' or $xmax->type eq 'Infinity' or $ymin->type eq 'Infinity' or $ymax->type eq 'Infinity') {Value::Error("The dimensions of a viewing window cannot be infinite.");} my @errors; #Check important points are all present; diff --git a/Contrib/PCC/BasicAlgebra/Calculator/DesmosWindowView20.pg b/Contrib/PCC/BasicAlgebra/Calculator/DesmosWindowView20.pg index edafd9a7ac..d7d61ddc22 100644 --- a/Contrib/PCC/BasicAlgebra/Calculator/DesmosWindowView20.pg +++ b/Contrib/PCC/BasicAlgebra/Calculator/DesmosWindowView20.pg @@ -1,9 +1,9 @@ ####################################### -### Generated from PreTeXt source -### on 2018-08-20T01:24:29-07:00 -### -### http://mathbook.pugetsound.edu -### +### Generated from PreTeXt source +### on 2018-08-20T01:24:29-07:00 +### +### http://mathbook.pugetsound.edu +### ####################################### ## DBsubject() ## DBchapter() @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PCCmacros.pl", "parserMultiAnswer.pl", "PGgraphmacros.pl", diff --git a/Contrib/PCC/BasicAlgebra/Exponents/exponentsMultiplication55.pg b/Contrib/PCC/BasicAlgebra/Exponents/exponentsMultiplication55.pg index 4e7d9485c1..ae6b26c7ea 100644 --- a/Contrib/PCC/BasicAlgebra/Exponents/exponentsMultiplication55.pg +++ b/Contrib/PCC/BasicAlgebra/Exponents/exponentsMultiplication55.pg @@ -1,9 +1,9 @@ ####################################### -### Generated from PreTeXt source -### on 2017-11-29T13:56:31-08:00 -### -### http://mathbook.pugetsound.edu -### +### Generated from PreTeXt source +### on 2017-11-29T13:56:31-08:00 +### +### http://mathbook.pugetsound.edu +### ####################################### ## DBsubject() ## DBchapter() @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "contextLimitedPolynomial.pl", "answerHints.pl", "PCCmacros.pl", diff --git a/Contrib/PCC/BasicAlgebra/Geometry/Trapezoid10.pg b/Contrib/PCC/BasicAlgebra/Geometry/Trapezoid10.pg index 49fd949e0b..5ba0194801 100644 --- a/Contrib/PCC/BasicAlgebra/Geometry/Trapezoid10.pg +++ b/Contrib/PCC/BasicAlgebra/Geometry/Trapezoid10.pg @@ -1,9 +1,9 @@ ####################################### -### Generated from PreTeXt source -### on 2017-10-02T18:11:53-07:00 -### -### http://mathbook.pugetsound.edu -### +### Generated from PreTeXt source +### on 2017-10-02T18:11:53-07:00 +### +### http://mathbook.pugetsound.edu +### ####################################### ## DBsubject() ## DBchapter() @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGgraphmacros.pl", "parserNumberWithUnits.pl", "PGcourse.pl", @@ -75,11 +75,11 @@ $picture->lb( new Label(($x[1]+$x[2])/2, $y[1]+0.5,"$base2U",'black','center','m $picture->lb( new Label($x[1]+0.5,($y[0]+$y[1])/2,"$heightU",'black','left','middle')); $picture->new_color("lightblue", 200,200,255); # RGB -$picture->new_color("darkblue", 100,100,255); +$picture->new_color("darkblue", 100,100,255); $picture->moveTo($x[0],$y[0]); $picture->lineTo($x[3],$y[0], darkblue,3); -$picture->lineTo($x[2],$y[1], darkblue,3); +$picture->lineTo($x[2],$y[1], darkblue,3); $picture->lineTo($x[1],$y[1], darkblue,3); $picture->lineTo($x[0],$y[0], darkblue,3); diff --git a/Contrib/PCC/Math95/AbsValueEquations/MCH1-3-3-12-Absolute-value.pg b/Contrib/PCC/Math95/AbsValueEquations/MCH1-3-3-12-Absolute-value.pg index 9c429bc743..d5d32b5670 100644 --- a/Contrib/PCC/Math95/AbsValueEquations/MCH1-3-3-12-Absolute-value.pg +++ b/Contrib/PCC/Math95/AbsValueEquations/MCH1-3-3-12-Absolute-value.pg @@ -31,7 +31,7 @@ loadMacros( "MathObjects.pl", "parserMultiAnswer.pl", "parserImplicitPlane.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PCCmacros.pl", "PGcourse.pl" @@ -98,7 +98,7 @@ Context()->{error}{convert} = sub { BEGIN_PGML a. Write the equation [`[$eqn]`] as two separate equations. Neither of your equations should use absolute value. - [__]{$multians}{width=>30} + [__]{$multians}{width=>30} [__]{$multians}{width=>30} a. Solve both equations above. [@KeyboardInstructions('Enter your solutions as a comma-separated list.')@]** diff --git a/Contrib/PCC/Math95/AbsValueEquations/MCH1-3-3-14-Absolute-value.pg b/Contrib/PCC/Math95/AbsValueEquations/MCH1-3-3-14-Absolute-value.pg index 1bfae126be..34f20e5719 100644 --- a/Contrib/PCC/Math95/AbsValueEquations/MCH1-3-3-14-Absolute-value.pg +++ b/Contrib/PCC/Math95/AbsValueEquations/MCH1-3-3-14-Absolute-value.pg @@ -31,7 +31,7 @@ loadMacros( "MathObjects.pl", "parserMultiAnswer.pl", "parserImplicitPlane.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PCCmacros.pl", "parserImplicitEquation.pl", diff --git a/Contrib/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_11.pg b/Contrib/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_11.pg index d01353f7f5..62cf6aaaf5 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_11.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_11.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -65,11 +65,11 @@ $ans = List( Point("($a,$b)")); # Main text BEGIN_PGML -Solve the system ->>[` [$f] = [$d] `]<< +Solve the system +>>[` [$f] = [$d] `]<< >>[` [$g] = [$p] `]<< -Solution: [_______________]{$ans} [@ AnswerFormatHelp("points") @]* +Solution: [_______________]{$ans} [@ helpLink("points") @]* If there is one solution, enter the solution as an ordered pair, [` (a,b) `], including the parentheses. If there are no solutions, enter NONE. If there are infinitely many solutions, enter solutions as [`(x,f(x))`] where [`y=f(x)`]. diff --git a/Contrib/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_12.pg b/Contrib/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_12.pg index 38b397597c..21abeb19f2 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_12.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_12.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -66,11 +66,11 @@ $ans = List( Point("($a,$b)")); # Main text BEGIN_PGML -Solve the system ->>[` [$f] = [$d] `]<< +Solve the system +>>[` [$f] = [$d] `]<< >>[` [$g] = [$p] `]<< -Solution: [_______________]{$ans} [@ AnswerFormatHelp("points") @]* +Solution: [_______________]{$ans} [@ helpLink("points") @]* If there is one solution, enter the solution as an ordered pair, [` (a,b) `], including the parentheses. If there are no solutions, enter NONE. If there are infinitely many solutions, enter solutions as [`(x,f(x))`] where [`y=f(x)`]. diff --git a/Contrib/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_15.pg b/Contrib/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_15.pg index 5a4e58b60a..71d9c14efa 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_15.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_15.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -66,11 +66,11 @@ $ans = List( Point("($a,$b)")); # Main text BEGIN_PGML -Solve the system ->>[` [$f] = [$d] `]<< +Solve the system +>>[` [$f] = [$d] `]<< >>[` [$g] = [$p] `]<< -Solution: [_______________]{$ans} [@ AnswerFormatHelp("points") @]* +Solution: [_______________]{$ans} [@ helpLink("points") @]* If there is one solution, enter the solution as an ordered pair, [` (a,b) `], including the parentheses. If there are no solutions, enter NONE. If there are infinitely many solutions, enter solutions as [`(x,f(x))`] where [`y=f(x)`]. diff --git a/Contrib/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_17.pg b/Contrib/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_17.pg index 7aa68a024e..089c314e5d 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_17.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_17.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -55,11 +55,11 @@ $h = Formula("x")->reduce; # Main text BEGIN_PGML -Solve the system ->>[` [$f] = [$c] `]<< +Solve the system +>>[` [$f] = [$c] `]<< >>[` [$g] = [$multc] `]<< -Solution: [_______________]{"NONE"} [@ AnswerFormatHelp("points") @]* +Solution: [_______________]{"NONE"} [@ helpLink("points") @]* If there is one solution, enter the solution as an ordered pair, [` (a,b) `], including the parentheses. If there are no solutions, enter NONE. If there are infinitely many solutions, enter solutions as [`(x,f(x))`] where [`y=f(x)`]. diff --git a/Contrib/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_21.pg b/Contrib/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_21.pg index 089597dfe3..6dbcfcfc2d 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_21.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_21.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -67,11 +67,11 @@ $ans = List( Point("($a,$b)")); # Main text BEGIN_PGML -Solve the system ->>[` [$f] = [$d] `]<< +Solve the system +>>[` [$f] = [$d] `]<< >>[` [$g] = [$p] `]<< -Solution: [_______________]{$ans} [@ AnswerFormatHelp("points") @]* +Solution: [_______________]{$ans} [@ helpLink("points") @]* If there is one solution, enter the solution as an ordered pair, [` (a,b) `], including the parentheses. If there are no solutions, enter NONE. If there are infinitely many solutions, enter solutions as [`(x,f(x))`] where [`y=f(x)`]. diff --git a/Contrib/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_24.pg b/Contrib/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_24.pg index b095625cec..a0ee20bdd4 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_24.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_24.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -55,11 +55,11 @@ $ans = List( Point("($xans,$yans)")); # Main text BEGIN_PGML -Solve the system ->>[` [$f] = [$b] `]<< +Solve the system +>>[` [$f] = [$b] `]<< >>[` [$g] = [$m] `]<< -Solution: [_______________]{$ans} [@ AnswerFormatHelp("points") @]* +Solution: [_______________]{$ans} [@ helpLink("points") @]* If there is one solution, enter the solution as an ordered pair, [` (a,b) `], including the parentheses. If there are no solutions, enter NONE. If there are infinitely many solutions, enter solutions as [`(x,f(x))`] where [`y=f(x)`]. diff --git a/Contrib/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_26.pg b/Contrib/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_26.pg index a767f40bf4..bbba63825f 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_26.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_26.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -57,11 +57,11 @@ $ans = List( Point("(x,$h)")); # Main text BEGIN_PGML -Solve the system ->>[` [$f] = [$c] `]<< +Solve the system +>>[` [$f] = [$c] `]<< >>[` [$g] = [$dc] `]<< -Solution: [_______________]{$ans} [@ AnswerFormatHelp("points") @]* +Solution: [_______________]{$ans} [@ helpLink("points") @]* If there is one solution, enter the solution as an ordered pair, [` (a,b) `], including the parentheses. If there are no solutions, enter NONE. If there are infinitely many solutions, enter solutions as [`(x,f(x))`] where [`y=f(x)`]. diff --git a/Contrib/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_29.pg b/Contrib/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_29.pg index a8c6bdf27a..494e213e50 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_29.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_29.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -65,11 +65,11 @@ $ans = List( Point("($a,$b)")); # Main text BEGIN_PGML -Solve the system ->>[` [$f] = [$d] `]<< +Solve the system +>>[` [$f] = [$d] `]<< >>[` [$g] = [$p] `]<< -Solution: [_______________]{$ans} [@ AnswerFormatHelp("points") @]* +Solution: [_______________]{$ans} [@ helpLink("points") @]* If there is one solution, enter the solution as an ordered pair, [` (a,b) `], including the parentheses. If there are no solutions, enter NONE. If there are infinitely many solutions, enter solutions as [`(x,f(x))`] where [`y=f(x)`]. diff --git a/Contrib/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_31.pg b/Contrib/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_31.pg index a8c6bdf27a..494e213e50 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_31.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_31.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -65,11 +65,11 @@ $ans = List( Point("($a,$b)")); # Main text BEGIN_PGML -Solve the system ->>[` [$f] = [$d] `]<< +Solve the system +>>[` [$f] = [$d] `]<< >>[` [$g] = [$p] `]<< -Solution: [_______________]{$ans} [@ AnswerFormatHelp("points") @]* +Solution: [_______________]{$ans} [@ helpLink("points") @]* If there is one solution, enter the solution as an ordered pair, [` (a,b) `], including the parentheses. If there are no solutions, enter NONE. If there are infinitely many solutions, enter solutions as [`(x,f(x))`] where [`y=f(x)`]. diff --git a/Contrib/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_37.pg b/Contrib/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_37.pg index 4f8b8614e0..65983de972 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_37.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_37.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -58,12 +58,12 @@ $ans = List( Point("(x,$h)")); # Main text BEGIN_PGML -Solve the system ->>[`` \frac{[$a]}{2}x-\frac{[$b]}{2}y = [$c2] ``]<< +Solve the system +>>[`` \frac{[$a]}{2}x-\frac{[$b]}{2}y = [$c2] ``]<< >>[`` -\frac{[$da]}{4}x+\frac{[$db]}{4}y = -[$dc] ``]<< -Solution: [_______________]{$ans} [@ AnswerFormatHelp("points") @]* +Solution: [_______________]{$ans} [@ helpLink("points") @]* If there is one solution, enter the solution as an ordered pair, [` (a,b) `], including the parentheses. If there are no solutions, enter NONE. If there are infinitely many solutions, enter solutions as [`(x,f(x))`] where [`y=f(x)`]. diff --git a/Contrib/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_38.pg b/Contrib/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_38.pg index dbfda0c82c..3b5acf4125 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_38.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_38.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -61,12 +61,12 @@ $ans = List( Point("($a,$b)")); # Main text BEGIN_PGML -Solve the system ->>[`` \frac{[$r]}{3}x+\frac{[$c]}{3}y = [$d] ``]<< +Solve the system +>>[`` \frac{[$r]}{3}x+\frac{[$c]}{3}y = [$d] ``]<< >>[`` \frac{[$m]}{5}x+\frac{[$n]}{5}y = [$p] ``]<< -Solution: [_______________]{$ans} [@ AnswerFormatHelp("points") @]* +Solution: [_______________]{$ans} [@ helpLink("points") @]* If there is one solution, enter the solution as an ordered pair, [` (a,b) `], including the parentheses. If there are no solutions, enter NONE. If there are infinitely many solutions, enter solutions as [`(x,f(x))`] where [`y=f(x)`]. diff --git a/Contrib/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_43.pg b/Contrib/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_43.pg index 4e975fb902..619c5f47d4 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_43.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_43.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -65,11 +65,11 @@ $ans = List( Point("($a,$b)")); # Main text BEGIN_PGML -Solve the system ->>[` [$f] = [$d] `]<< +Solve the system +>>[` [$f] = [$d] `]<< >>[` [$g] = [$p] `]<< -Solution: [_______________]{$ans} [@ AnswerFormatHelp("points") @]* +Solution: [_______________]{$ans} [@ helpLink("points") @]* If there is one solution, enter the solution as an ordered pair, [` (a,b) `], including the parentheses. If there are no solutions, enter NONE. If there are infinitely many solutions, enter solutions as [`(x,f(x))`] where [`y=f(x)`]. diff --git a/Contrib/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_57.pg b/Contrib/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_57.pg index a194a1c7e5..8444c4f7cc 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_57.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_57.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -54,7 +54,7 @@ $ans1 = $b/($m-$a); BEGIN_PGML A fast-food restaurant has a cost production of [`C(x)=[$C] `] and a revenue function of [`R(x)=[$R] `], where [`x`] represents the number of milkshakes they make. When does the company start to turn a profit? -[`x=`] [_______________]{$ans1} milkshakes [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_______________]{$ans1} milkshakes [@ helpLink("numbers") @]* diff --git a/Contrib/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_61.pg b/Contrib/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_61.pg index 462b74cb7d..7211a4dca2 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_61.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_61.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -45,9 +45,9 @@ $ans1 = List(($a+$b)/2,($a-$b)/2); # Main text BEGIN_PGML -Find two numbers whose sum is [`[$a]`] and difference is [`[$b]`]. Enter the numbers as a comma separated list. +Find two numbers whose sum is [`[$a]`] and difference is [`[$b]`]. Enter the numbers as a comma separated list. -Numbers: [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +Numbers: [_______________]{$ans1} [@ helpLink("numbers") @]* diff --git a/Contrib/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_11.pg b/Contrib/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_11.pg index 81394e2618..b52e96589a 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_11.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_11.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -77,13 +77,13 @@ $ans = List( Point("($a,$b,$c)")); BEGIN_PGML Solve the system by substitution. ->>[` [$f] = [$l] `]<< +>>[` [$f] = [$l] `]<< >>[` [$g] = [$q] `]<< >>[` [$h] = [$u] `]<< -Solution: [_______________]{$ans} [@ AnswerFormatHelp("points") @]* +Solution: [_______________]{$ans} [@ helpLink("points") @]* If there is one solution, enter the solution as an ordered triple, [` (a,b,c) `], including the parentheses. If there are no solutions, enter NONE. If there are infinitely many solutions, enter solutions as [`(f(z),g(z),z)`] where [`x=f(z), y=g(z)`]. diff --git a/Contrib/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_13.pg b/Contrib/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_13.pg index da074ef2fb..652505fe8b 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_13.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_13.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -77,13 +77,13 @@ $ans = List( Point("($a,$b,$c)")); BEGIN_PGML Solve the system by substitution. ->>[` [$f] = [$l] `]<< +>>[` [$f] = [$l] `]<< >>[` [$g] = [$q] `]<< >>[` [$h] = [$u] `]<< -Solution: [_______________]{$ans} [@ AnswerFormatHelp("points") @]* +Solution: [_______________]{$ans} [@ helpLink("points") @]* If there is one solution, enter the solution as an ordered triple, [` (a,b,c) `], including the parentheses. If there are no solutions, enter NONE. If there are infinitely many solutions, enter solutions as [`(f(z),g(z),z)`] where [`x=f(z), y=g(z)`]. diff --git a/Contrib/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_15.pg b/Contrib/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_15.pg index e33311266e..652505fe8b 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_15.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_15.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -76,14 +76,14 @@ $ans = List( Point("($a,$b,$c)")); # Main text BEGIN_PGML -Solve the system by substitution. ->>[` [$f] = [$l] `]<< +Solve the system by substitution. +>>[` [$f] = [$l] `]<< >>[` [$g] = [$q] `]<< >>[` [$h] = [$u] `]<< -Solution: [_______________]{$ans} [@ AnswerFormatHelp("points") @]* +Solution: [_______________]{$ans} [@ helpLink("points") @]* If there is one solution, enter the solution as an ordered triple, [` (a,b,c) `], including the parentheses. If there are no solutions, enter NONE. If there are infinitely many solutions, enter solutions as [`(f(z),g(z),z)`] where [`x=f(z), y=g(z)`]. diff --git a/Contrib/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_17.pg b/Contrib/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_17.pg index b51566803b..b11e4af6fd 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_17.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_17.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "AppletObjects.pl", "unionTables.pl", @@ -85,21 +85,21 @@ Context("Numeric"); # Main text BEGIN_TEXT -Solve the system by Gaussian elimination using the technology at this -\{ htmlLink( "javascript:windowpopup();", "link" ) \}. +Solve the system by Gaussian elimination using the technology at this +\{ htmlLink( "javascript:windowpopup();", "link" ) \}. END_TEXT BEGIN_PGML ->>[` [$f] = [$l] `]<< +>>[` [$f] = [$l] `]<< >>[` [$g] = [$q] `]<< >>[` [$h] = [$u] `]<< -Solution: [_______________]{"NONE"} [@ AnswerFormatHelp("points") @]* +Solution: [_______________]{"NONE"} [@ helpLink("points") @]* If there is one solution, enter the solution as an ordered triple, [` (a,b,c) `], -including the parentheses. If there are no solutions, enter NONE. If there are infinitely many solutions, enter solutions as [`(f(z),g(z),z)`] where [`x=f(z), y=g(z)`]. +including the parentheses. If there are no solutions, enter NONE. If there are infinitely many solutions, enter solutions as [`(f(z),g(z),z)`] where [`x=f(z), y=g(z)`]. END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_21.pg b/Contrib/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_21.pg index 78d4267fad..313adc6ece 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_21.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_21.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "AppletObjects.pl", "unionTables.pl", "parserNumberWithUnits.pl", @@ -91,22 +91,22 @@ $ans = List( Point("($a,$b,$c)")); ########################### # Main text BEGIN_TEXT -Solve the system by Gaussian elimination using the technology at this -\{ htmlLink( "javascript:windowpopup();", "link" ) \}. +Solve the system by Gaussian elimination using the technology at this +\{ htmlLink( "javascript:windowpopup();", "link" ) \}. END_TEXT BEGIN_PGML ->>[` [$f] = [$l] `]<< +>>[` [$f] = [$l] `]<< >>[` [$g] = [$q] `]<< >>[` [$h] = [$u] `]<< -Solution: [_______________]{$ans} [@ AnswerFormatHelp("points") @]* +Solution: [_______________]{$ans} [@ helpLink("points") @]* If there is one solution, enter the solution as an ordered triple, [` (a,b,c) `], -including the parentheses. If there are no solutions, enter NONE. If there are infinitely many solutions, enter solutions as [`(f(z),g(z),z)`] where [`x=f(z), y=g(z)`]. +including the parentheses. If there are no solutions, enter NONE. If there are infinitely many solutions, enter solutions as [`(f(z),g(z),z)`] where [`x=f(z), y=g(z)`]. END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_25.pg b/Contrib/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_25.pg index 67fb504a9d..4b99a3d960 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_25.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_25.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "AppletObjects.pl", "unionTables.pl", @@ -93,22 +93,22 @@ $ans = List( Point("($xz,$yz,z)")); ########################### # Main text BEGIN_TEXT -Solve the system by Gaussian elimination using the technology at this -\{ htmlLink( "javascript:windowpopup();", "link" ) \}. +Solve the system by Gaussian elimination using the technology at this +\{ htmlLink( "javascript:windowpopup();", "link" ) \}. END_TEXT BEGIN_PGML - ->>[` [$f] = [$l] `]<< + +>>[` [$f] = [$l] `]<< >>[` [$g] = [$q] `]<< >>[` [$h] = [$u] `]<< -Solution: [________________________]{$ans} [@ AnswerFormatHelp("points") @]* +Solution: [________________________]{$ans} [@ helpLink("points") @]* If there is one solution, enter the solution as an ordered triple, [` (a,b,c) `], -including the parentheses. If there are no solutions, enter NONE. If there are infinitely many solutions, enter solutions as [`(f(z),g(z),z)`] where [`x=f(z), y=g(z)`]. +including the parentheses. If there are no solutions, enter NONE. If there are infinitely many solutions, enter solutions as [`(f(z),g(z),z)`] where [`x=f(z), y=g(z)`]. END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_28.pg b/Contrib/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_28.pg index 128822db62..9fdfaa73e5 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_28.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_28.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "AppletObjects.pl", "unionTables.pl", @@ -91,22 +91,22 @@ $ans = List( Point("($a,$b,$c)")); ########################### # Main text BEGIN_TEXT -Solve the system by Gaussian elimination using the technology at this -\{ htmlLink( "javascript:windowpopup();", "link" ) \}. +Solve the system by Gaussian elimination using the technology at this +\{ htmlLink( "javascript:windowpopup();", "link" ) \}. END_TEXT BEGIN_PGML - ->>[` [$f] = [$l] `]<< + +>>[` [$f] = [$l] `]<< >>[` [$g] = [$q] `]<< >>[` [$h] = [$u] `]<< -Solution: [_______________]{$ans} [@ AnswerFormatHelp("points") @]* +Solution: [_______________]{$ans} [@ helpLink("points") @]* If there is one solution, enter the solution as an ordered triple, [` (a,b,c) `], -including the parentheses. If there are no solutions, enter NONE. If there are infinitely many solutions, enter solutions as [`(f(z),g(z),z)`] where [`x=f(z), y=g(z)`]. +including the parentheses. If there are no solutions, enter NONE. If there are infinitely many solutions, enter solutions as [`(f(z),g(z),z)`] where [`x=f(z), y=g(z)`]. END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_39.pg b/Contrib/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_39.pg index 897d68a3e9..8e837261c4 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_39.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_39.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -76,14 +76,14 @@ $ans = List( Point("($a,$b,$c)")); # Main text BEGIN_PGML -Solve the system ->>[` [$f] = [$l] `]<< +Solve the system +>>[` [$f] = [$l] `]<< >>[` [$g] = [$q] `]<< >>[` [$h] = [$u] `]<< -Solution: [_______________]{$ans} [@ AnswerFormatHelp("points") @]* +Solution: [_______________]{$ans} [@ helpLink("points") @]* If there is one solution, enter the solution as an ordered triple, [` (a,b,c) `], including the parentheses. If there are no solutions, enter NONE. If there are infinitely many solutions, enter solutions as [`(x,f(x),g(x))`] where [`y=f(x), z=g(x)`]. diff --git a/Contrib/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_47.pg b/Contrib/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_47.pg index 37705c4997..8e1c314515 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_47.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_47.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -77,14 +77,14 @@ $ans = List( Point("($a,$b,$c)")); # Main text BEGIN_PGML -Solve the system ->>[` [$f] = [$l] `]<< +Solve the system +>>[` [$f] = [$l] `]<< >>[` [$g] = [$q] `]<< >>[` [$h] = [$u] `]<< -Solution: [_______________]{$ans} [@ AnswerFormatHelp("points") @]* +Solution: [_______________]{$ans} [@ helpLink("points") @]* If there is one solution, enter the solution as an ordered triple, [` (a,b,c) `], including the parentheses. If there are no solutions, enter NONE. If there are infinitely many solutions, enter solutions as [`(x,f(x),g(x))`] where [`y=f(x), z=g(x)`]. diff --git a/Contrib/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_51.pg b/Contrib/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_51.pg index 93b5909281..cae411a472 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_51.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_51.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -44,9 +44,9 @@ $ans = List("(4/9)*$a,(2/9)*$a,(1/3)*$a"); # Main text BEGIN_PGML -Three even numbers sum up to [`[$a]`]. The smallest is half the largest and the middle number is 3/4 the largest. What are the three numbers? Enter as a comma separated list. +Three even numbers sum up to [`[$a]`]. The smallest is half the largest and the middle number is 3/4 the largest. What are the three numbers? Enter as a comma separated list. -Solution: [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +Solution: [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_54.pg b/Contrib/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_54.pg index 79092e4eb8..dbd5bab194 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_54.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_54.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -47,13 +47,13 @@ $r = (1/5)*$a; # Main text BEGIN_PGML -An animal shelter has a total of [`[$a]`] animals comprised of cats, dogs, and rabbits. If the number of rabbits is 5 less than one-half the number of cats, and there are 20 more cats than dogs, how many of each animal are at the shelter? +An animal shelter has a total of [`[$a]`] animals comprised of cats, dogs, and rabbits. If the number of rabbits is 5 less than one-half the number of cats, and there are 20 more cats than dogs, how many of each animal are at the shelter? -cats: [_______________]{$c} [@ AnswerFormatHelp("numbers") @]* +cats: [_______________]{$c} [@ helpLink("numbers") @]* -dogs: [_______________]{$d} [@ AnswerFormatHelp("numbers") @]* +dogs: [_______________]{$d} [@ helpLink("numbers") @]* -rabbits: [_______________]{$r} [@ AnswerFormatHelp("numbers") @]* +rabbits: [_______________]{$r} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_7.pg b/Contrib/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_7.pg index a28ea73c05..a3053e90ba 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_7.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_7.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -73,14 +73,14 @@ $ans = List( Point("($a,$b,$c)")); Context("ArbitraryString"); BEGIN_PGML -Is [` [$ans] `] a solution to, ->>[` [$f] = [$l] `]<< +Is [` [$ans] `] a solution to, +>>[` [$f] = [$l] `]<< >>[` [$g] = [$q] `]<< >>[` [$h] = [$u] `]<< -Enter yes or no: [____________]{"yes"} +Enter yes or no: [____________]{"yes"} END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_9.pg b/Contrib/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_9.pg index dd5ae87957..60a8979b2b 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_9.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_9.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -73,14 +73,14 @@ $ans = List( Point("($a+1,$b,$c)")); Context("ArbitraryString"); BEGIN_PGML -Is [` [$ans] `] a solution to, ->>[` [$f] = [$l] `]<< +Is [` [$ans] `] a solution to, +>>[` [$f] = [$l] `]<< >>[` [$g] = [$q] `]<< >>[` [$h] = [$u] `]<< -Enter yes or no: [____________]{"no"} +Enter yes or no: [____________]{"no"} END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_10.pg b/Contrib/RRCC/College_Algebra/MAT121/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_10.pg index 3444f799e1..6753fa82e7 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_10.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_10.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -45,10 +45,10 @@ $ans = List( Point("($a,$c)"), Point("($a,-$c)") ); BEGIN_PGML What is the solution (are the solutions) to the following system of nonlinear equations? ->>[` x = [$a] `]<< +>>[` x = [$a] `]<< >>[` x^2+y^2 = [$b] `]<< - -Solution(s): [_______________]{$ans} [@ AnswerFormatHelp("points") @]* + +Solution(s): [_______________]{$ans} [@ helpLink("points") @]* Enter the solution as an ordered pair, [` (a,b) `], or solutions as a comma separated list of ordered pairs, [` (a,b), (c,d) `], including the parentheses. diff --git a/Contrib/RRCC/College_Algebra/MAT121/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_16.pg b/Contrib/RRCC/College_Algebra/MAT121/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_16.pg index 98497fcf78..777b008601 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_16.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_16.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -55,10 +55,10 @@ $ans = List( Point("($a,$ya)"), Point("($b,$yb)") ); BEGIN_PGML What is the solution (are the solutions) to the following system of nonlinear equations? ->>[` [$f] = [$d] `]<< +>>[` [$f] = [$d] `]<< >>[` [$h] = [$n] `]<< - -Solution(s): [_______________]{$ans} [@ AnswerFormatHelp("points") @]* + +Solution(s): [_______________]{$ans} [@ helpLink("points") @]* Enter the solution as an ordered pair, [` (a,b) `], or solutions as a comma separated list of ordered pairs, [` (a,b), (c,d) `], including the parentheses. diff --git a/Contrib/RRCC/College_Algebra/MAT121/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_17.pg b/Contrib/RRCC/College_Algebra/MAT121/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_17.pg index dac8d0c58d..56a1a3c3b9 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_17.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_17.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -54,10 +54,10 @@ $ans = List( Point("($a,$ya)"), Point("($b,$yb)") ); BEGIN_PGML What is the solution (are the solutions) to the following system of nonlinear equations? ->>[` [$f] = [$d] `]<< +>>[` [$f] = [$d] `]<< >>[` [$m] x + y = [$n] `]<< - -Solution(s): [_______________]{$ans} [@ AnswerFormatHelp("points") @]* + +Solution(s): [_______________]{$ans} [@ helpLink("points") @]* Enter the solution as an ordered pair, [` (a,b) `], or solutions as a comma separated list of ordered pairs, [` (a,b), (c,d) `], including the parentheses. diff --git a/Contrib/RRCC/College_Algebra/MAT121/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_29.pg b/Contrib/RRCC/College_Algebra/MAT121/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_29.pg index 2532db9116..11faf6189b 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_29.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_29.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -53,10 +53,10 @@ $ans = List( Point("($a,$ya)"), Point("($b,$yb)") ); BEGIN_PGML What is the solution (are the solutions) to the following system of nonlinear equations? ->>[` [$f] = [$d] `]<< +>>[` [$f] = [$d] `]<< >>[` 2 y = [$n] x `]<< - -Solution(s): [_______________]{$ans} [@ AnswerFormatHelp("points") @]* + +Solution(s): [_______________]{$ans} [@ helpLink("points") @]* Enter the solution as an ordered pair, [` (a,b) `], or solutions as a comma separated list of ordered pairs, [` (a,b), (c,d) `], including the parentheses. diff --git a/Contrib/RRCC/College_Algebra/MAT121/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_31.pg b/Contrib/RRCC/College_Algebra/MAT121/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_31.pg index 2e1dccfcec..cc19aaf795 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_31.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_31.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -45,10 +45,10 @@ Context(Point); BEGIN_PGML What is the solution (are the solutions) to the following system of nonlinear equations? ->>[` x^2+y^2 = [$r2] `]<< +>>[` x^2+y^2 = [$r2] `]<< >>[` y^2 = x^2 `]<< - -Solution(s): [___________________________]{"($a,$a),($a,-$a),(-$a,-$a),(-$a,$a)"} [@ AnswerFormatHelp("points") @]* + +Solution(s): [___________________________]{"($a,$a),($a,-$a),(-$a,-$a),(-$a,$a)"} [@ helpLink("points") @]* Enter the solution as an ordered pair, [` (a,b) `], or solutions as a comma separated list of ordered pairs, [` (a,b), (c,d), (m,n), (p,q) `], including the parentheses. diff --git a/Contrib/RRCC/College_Algebra/MAT121/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_6.pg b/Contrib/RRCC/College_Algebra/MAT121/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_6.pg index 8698674ae1..68a7884310 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_6.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_6.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -47,10 +47,10 @@ $ans = List( Point("($b,$c-$b)"), Point("(($c-$b),$b)") ); BEGIN_PGML What is the solution (are the solutions) to the following system of nonlinear equations? ->>[` x+y = [$c] `]<< +>>[` x+y = [$c] `]<< >>[` x^2+y^2 = [$r2] `]<< - -Solution(s): [_______________]{$ans} [@ AnswerFormatHelp("points") @]* + +Solution(s): [_______________]{$ans} [@ helpLink("points") @]* Enter the solution as an ordered pair, [` (a,b) `], or solutions as a comma separated list of ordered pairs, [` (a,b), (c,d) `], including the parentheses. diff --git a/Contrib/RRCC/College_Algebra/MAT121/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_7.pg b/Contrib/RRCC/College_Algebra/MAT121/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_7.pg index 100684fbeb..d0c13b9fac 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_7.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_7.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -47,10 +47,10 @@ $ans = List( Point("($a,-$b)"), Point("($b,-$a)") ); BEGIN_PGML What is the solution (are the solutions) to the following system of nonlinear equations? ->>[` y = x - [$c] `]<< +>>[` y = x - [$c] `]<< >>[` x^2+y^2 = [$r2] `]<< - -Solution(s): [_______________]{$ans} [@ AnswerFormatHelp("points") @]* + +Solution(s): [_______________]{$ans} [@ helpLink("points") @]* Enter the solution as an ordered pair, [` (a,b) `], or solutions as a comma separated list of ordered pairs, [` (a,b), (c,d) `], including the parentheses. diff --git a/Contrib/RRCC/College_Algebra/MAT121/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_8.pg b/Contrib/RRCC/College_Algebra/MAT121/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_8.pg index 1bb074eec5..b9108af5d3 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_8.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_8.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -45,10 +45,10 @@ Context(Point); BEGIN_PGML What is the solution (are the solutions) to the following system of nonlinear equations? ->>[` y = x `]<< +>>[` y = x `]<< >>[` x^2+y^2 = [$r2] `]<< - -Solution(s): [_______________________________]{"(sqrt($m),sqrt($m)), (- sqrt($m),- sqrt($m))"} [@ AnswerFormatHelp("points") @]* + +Solution(s): [_______________________________]{"(sqrt($m),sqrt($m)), (- sqrt($m),- sqrt($m))"} [@ helpLink("points") @]* Enter the solution as an ordered pair, [` (a,b) `], or solutions as a comma separated list of ordered pairs, [` (a,b), (c,d) `], including the parentheses. diff --git a/Contrib/RRCC/College_Algebra/MAT121/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_9.pg b/Contrib/RRCC/College_Algebra/MAT121/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_9.pg index dd62f7fb98..8fd53d772b 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_9.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_9.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -45,10 +45,10 @@ Context(Point); BEGIN_PGML What is the solution (are the solutions) to the following system of nonlinear equations? ->>[` y = -x `]<< +>>[` y = -x `]<< >>[` x^2+y^2 = [$r2] `]<< - -Solution(s): [_____________________________________]{"(sqrt($m),-sqrt($m)), (- sqrt($m),sqrt($m))"} [@ AnswerFormatHelp("points") @]* + +Solution(s): [_____________________________________]{"(sqrt($m),-sqrt($m)), (- sqrt($m),sqrt($m))"} [@ helpLink("points") @]* Enter the solution as an ordered pair, [` (a,b) `], or solutions as a comma separated list of ordered pairs, [` (a,b), (c,d) `], including the parentheses. diff --git a/Contrib/RRCC/College_Algebra/MAT121/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_12.pg b/Contrib/RRCC/College_Algebra/MAT121/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_12.pg index e8d8a01f60..ec85f8094d 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_12.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_12.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -49,11 +49,11 @@ $answer = $k*$A ; BEGIN_PGML Suppose ->> [``A = [$A] ``] << +>> [``A = [$A] ``] << Perform the scalar multiplication [` [$k]A`]. -[` [$k]A = `][_____]*{$answer} [@ AnswerFormatHelp("matrices") @]* +[` [$k]A = `][_____]*{$answer} [@ helpLink("matrices") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_18.pg b/Contrib/RRCC/College_Algebra/MAT121/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_18.pg index c385188d6e..63859bd0b3 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_18.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_18.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -56,7 +56,7 @@ Suppose Find the product [`AB`]. -[` AB = `][_____]*{$answer} [@ AnswerFormatHelp("matrices") @]* +[` AB = `][_____]*{$answer} [@ helpLink("matrices") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_19.pg b/Contrib/RRCC/College_Algebra/MAT121/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_19.pg index 48b042b8ff..825efdb6ec 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_19.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_19.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -56,7 +56,7 @@ Suppose Find the product [`AB`]. -[` AB = `][_____]*{$answer} [@ AnswerFormatHelp("matrices") @]* +[` AB = `][_____]*{$answer} [@ helpLink("matrices") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_30.pg b/Contrib/RRCC/College_Algebra/MAT121/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_30.pg index a82dbb0e5b..58cf18dd4d 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_30.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_30.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "AppletObjects.pl", "unionTables.pl", "parserNumberWithUnits.pl", @@ -74,17 +74,17 @@ END_PGML BEGIN_TEXT $BR -Find the product \(AB\) using technology at this -\{ htmlLink( "javascript:windowpopup();", "link" ) \}. +Find the product \(AB\) using technology at this +\{ htmlLink( "javascript:windowpopup();", "link" ) \}. END_TEXT BEGIN_PGML -[` AB = `][_____]*{$answer1} [@ AnswerFormatHelp("matrices") @]* - - +[` AB = `][_____]*{$answer1} [@ helpLink("matrices") @]* + + Find the product [`BA`] using technology. -[` BA = `][_____]*{$answer2} [@ AnswerFormatHelp("matrices") @]* +[` BA = `][_____]*{$answer2} [@ helpLink("matrices") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_32.pg b/Contrib/RRCC/College_Algebra/MAT121/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_32.pg index 579bccd7a0..d5c0f4766c 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_32.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_32.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "AppletObjects.pl", "unionTables.pl", "parserNumberWithUnits.pl", @@ -73,12 +73,12 @@ END_PGML BEGIN_TEXT $BR -Find the product \(BA\) using technology at this -\{ htmlLink( "javascript:windowpopup();", "link" ) \}. +Find the product \(BA\) using technology at this +\{ htmlLink( "javascript:windowpopup();", "link" ) \}. END_TEXT BEGIN_PGML -[` BA = `][_____]*{$answer} [@ AnswerFormatHelp("matrices") @]* +[` BA = `][_____]*{$answer} [@ helpLink("matrices") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_50.pg b/Contrib/RRCC/College_Algebra/MAT121/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_50.pg index e876a0a173..7e58a0ae6c 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_50.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_50.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "AppletObjects.pl", "unionTables.pl", "parserNumberWithUnits.pl", @@ -75,18 +75,18 @@ END_PGML BEGIN_TEXT $BR -Find the product \(AB\) using technology at this -\{ htmlLink( "javascript:windowpopup();", "link" ) \}. +Find the product \(AB\) using technology at this +\{ htmlLink( "javascript:windowpopup();", "link" ) \}. END_TEXT BEGIN_PGML -[` AB = `][_____]*{$answer1} [@ AnswerFormatHelp("matrices") @]* +[` AB = `][_____]*{$answer1} [@ helpLink("matrices") @]* + + - - Find the product [`BA`] using technology. -[` BA = `][_____]*{$answer2} [@ AnswerFormatHelp("matrices") @]* +[` BA = `][_____]*{$answer2} [@ helpLink("matrices") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_7.pg b/Contrib/RRCC/College_Algebra/MAT121/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_7.pg index 2fb31313d9..0251d996c0 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_7.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_7.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -56,7 +56,7 @@ Suppose Find the sum [`A+B`]. -[` A + B = `][_____]*{$answer} [@ AnswerFormatHelp("matrices") @]* +[` A + B = `][_____]*{$answer} [@ helpLink("matrices") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_10.pg b/Contrib/RRCC/College_Algebra/MAT121/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_10.pg index c6e9d38b2a..44408f84b8 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_10.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_10.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -67,13 +67,13 @@ $answer = $A; # Main text BEGIN_PGML ->>[` [$eqn1]=[$d] `]<< ->>[` [$eqn2] = [$b] `]<< +>>[` [$eqn1]=[$d] `]<< +>>[` [$eqn2] = [$b] `]<< >>[` [$eqn3] = [$a] `]<< Find the augmented matrix for this system. -Augmented matrix: [_____]*{$answer} [@ AnswerFormatHelp("matrices") @]* +Augmented matrix: [_____]*{$answer} [@ helpLink("matrices") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_11.pg b/Contrib/RRCC/College_Algebra/MAT121/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_11.pg index a8a8b43e4e..821e6c49d6 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_11.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_11.pg @@ -19,7 +19,7 @@ DOCUMENT(); loadMacros( "MathObjects.pl", "PGstandard.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -29,7 +29,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Matrix"); @@ -41,7 +41,7 @@ $e=random(-5,5); $f=random(-5,5); ##### -#commented out because I couldn't figure out how to get the vertical line in an augmented matrix into PGML +#commented out because I couldn't figure out how to get the vertical line in an augmented matrix into PGML #$A = Matrix([ #[$a,$b,$c], #[$d,$e,$f], @@ -62,7 +62,7 @@ $rhs2 = Formula("$f"); BEGIN_TEXT -Convert the augmented matrix to the equivalent linear system. +Convert the augmented matrix to the equivalent linear system. $PAR \[ \left[ \begin{array} {rr} @@ -80,14 +80,14 @@ Use the variables `x` and `y`. END_TEXT ##### -#Convert the augmented matrix to the equivalent linear system. -#>> [``A=[$A]``] << +#Convert the augmented matrix to the equivalent linear system. +#>> [``A=[$A]``] << #Use the variables x and y. ##### BEGIN_PGML -[__________]*{$lhs1} = [____]*{$rhs1} +[__________]*{$lhs1} = [____]*{$rhs1} [__________]*{$lhs2} = [____]*{$rhs2} END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_16.pg b/Contrib/RRCC/College_Algebra/MAT121/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_16.pg index 3719718e91..48276e903f 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_16.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_16.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -63,7 +63,7 @@ BEGIN_PGML -Solution: [_______________]{$ans} [@ AnswerFormatHelp("points") @]* +Solution: [_______________]{$ans} [@ helpLink("points") @]* Enter the solution as an ordered pair, [` (a,b) `], including the parentheses. diff --git a/Contrib/RRCC/College_Algebra/MAT121/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_19.pg b/Contrib/RRCC/College_Algebra/MAT121/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_19.pg index bd43b7036d..06da2cdbd6 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_19.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_19.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -68,7 +68,7 @@ BEGIN_PGML -Solution: [_______________]{$ans} [@ AnswerFormatHelp("points") @]* +Solution: [_______________]{$ans} [@ helpLink("points") @]* Enter the solution as an ordered pair, [` (a,b) `], including the parentheses. diff --git a/Contrib/RRCC/College_Algebra/MAT121/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_22.pg b/Contrib/RRCC/College_Algebra/MAT121/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_22.pg index 48d0b18a76..65871cc10e 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_22.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_22.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "AppletObjects.pl", "unionTables.pl", "parserNumberWithUnits.pl", @@ -71,16 +71,16 @@ $ans = Point("($xans,$yans)"); ################## # Main text BEGIN_TEXT -Solve the system by Gaussian elimination using the technology at this -\{ htmlLink( "javascript:windowpopup();", "link" ) \}. +Solve the system by Gaussian elimination using the technology at this +\{ htmlLink( "javascript:windowpopup();", "link" ) \}. END_TEXT BEGIN_PGML ->>[` [$eqn1]=[$c] `]<< +>>[` [$eqn1]=[$c] `]<< >>[` [$eqn2] = [$d] `]<< -Solution: [_______________]{$ans} [@ AnswerFormatHelp("points") @]* +Solution: [_______________]{$ans} [@ helpLink("points") @]* Enter the solution as an ordered pair, [` (a,b) `], including the parentheses. diff --git a/Contrib/RRCC/College_Algebra/MAT121/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_30.pg b/Contrib/RRCC/College_Algebra/MAT121/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_30.pg index 26b6684cbe..39741f28e6 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_30.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_30.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "AppletObjects.pl", "unionTables.pl", "parserNumberWithUnits.pl", @@ -73,16 +73,16 @@ $ans = Point("($xans,$yans)"); ################## # Main text BEGIN_TEXT -Solve the system by Gaussian elimination using the technology at this -\{ htmlLink( "javascript:windowpopup();", "link" ) \}. +Solve the system by Gaussian elimination using the technology at this +\{ htmlLink( "javascript:windowpopup();", "link" ) \}. END_TEXT BEGIN_PGML ->>[` [$eqn1]=[$c] `]<< +>>[` [$eqn1]=[$c] `]<< >>[` [$eqn2] = [$d] `]<< -Solution: [_______________]{$ans} [@ AnswerFormatHelp("points") @]* +Solution: [_______________]{$ans} [@ helpLink("points") @]* Enter the solution as an ordered pair, [` (a,b) `], including the parentheses. diff --git a/Contrib/RRCC/College_Algebra/MAT121/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_40.pg b/Contrib/RRCC/College_Algebra/MAT121/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_40.pg index 6933e03be2..2bf472f288 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_40.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_40.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "AppletObjects.pl", "unionTables.pl", "parserNumberWithUnits.pl", @@ -74,17 +74,17 @@ $ans = Point("($xans,$yans, $zans)"); ################## # Main text BEGIN_TEXT -Solve the system by Gaussian elimination using the technology at this -\{ htmlLink( "javascript:windowpopup();", "link" ) \}. +Solve the system by Gaussian elimination using the technology at this +\{ htmlLink( "javascript:windowpopup();", "link" ) \}. END_TEXT BEGIN_PGML ->>[` [$eqn1] = [$c] `]<< ->>[` [$eqn2] = [$c] `]<< +>>[` [$eqn1] = [$c] `]<< +>>[` [$eqn2] = [$c] `]<< >>[` [$eqn3] = [$e] `]<< -Solution: [_______________]{$ans} [@ AnswerFormatHelp("points") @]* +Solution: [_______________]{$ans} [@ helpLink("points") @]* Enter the solution as an ordered triple, [` (a,b,c) `], including the parentheses. diff --git a/Contrib/RRCC/College_Algebra/MAT121/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_52.pg b/Contrib/RRCC/College_Algebra/MAT121/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_52.pg index 3cfdc3b1c4..f24685608e 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_52.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_52.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,9 +48,9 @@ BEGIN_PGML Every day, a cupcake store sells [$b] cupcakes in chocolate and vanilla flavors. If the chocolate flavor is [$c] times as popular as the vanilla flavor, how many of each cupcake is sold per day? -Vanilla cupcakes: [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +Vanilla cupcakes: [_______________]{$ans1} [@ helpLink("numbers") @]* -Chocolate cupcakes: [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +Chocolate cupcakes: [_______________]{$ans2} [@ helpLink("numbers") @]* diff --git a/Contrib/RRCC/College_Algebra/MAT121/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_6.pg b/Contrib/RRCC/College_Algebra/MAT121/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_6.pg index 6ce10bb0ea..3c7076f6bb 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_6.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_6.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -61,12 +61,12 @@ BEGIN_PGML Find the augmented matrix for this system. ->>[` [$eqn1]=[$c] `]<< +>>[` [$eqn1]=[$c] `]<< >>[` [$eqn2] = [$f] `]<< -Augmented matrix: [_____]*{$answer} [@ AnswerFormatHelp("matrices") @]* +Augmented matrix: [_____]*{$answer} [@ helpLink("matrices") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_60.pg b/Contrib/RRCC/College_Algebra/MAT121/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_60.pg index 8227fdb4f1..b4a3919379 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_60.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_60.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -52,11 +52,11 @@ BEGIN_PGML A bag of mixed nuts contains cashews, pistachios, and almonds. There are [$size] total nuts in the bag, and there are [$less] fewer almonds than pistachios. Each cashew weighs [$a] g, each pistachio weighs [$a+1] g, and each almond weighs [$a+3] g. If the bag weighs [$d/10] kg, find out how many of each type of nut is in the bag. -Cashews: [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +Cashews: [_______________]{$ans1} [@ helpLink("numbers") @]* -Pistachios: [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +Pistachios: [_______________]{$ans2} [@ helpLink("numbers") @]* -Almonds: [_______________]{$ans3} [@ AnswerFormatHelp("numbers") @]* +Almonds: [_______________]{$ans3} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_13.pg b/Contrib/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_13.pg index ccd2102077..918f9ea9b5 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_13.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_13.pg @@ -23,8 +23,8 @@ loadMacros( "MathObjects.pl", "parserAssignment.pl", "parserImplicitEquation.pl", -"contextFraction.pl", -"AnswerFormatHelp.pl", +"contextFraction.pl", + "PGML.pl", "PGcourse.pl", ); @@ -57,9 +57,9 @@ $ans = Formula("-$a/$b*x+$c/$b"); BEGIN_PGML -Solve the equation [` [$f]=[$g] `] for [` y `] in terms of [`x`]. +Solve the equation [` [$f]=[$g] `] for [` y `] in terms of [`x`]. -[`y=`] [_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`y=`] [_______________]{$ans} [@ helpLink("formulas") @]* diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_17.pg b/Contrib/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_17.pg index 6c0de988ff..3699d63bc8 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_17.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_17.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "contextLimitedPowers.pl", "PGML.pl", @@ -53,9 +53,9 @@ $ans=Compute(sqrt(($a-$c)**2+($b-$d)**2)); # Main text BEGIN_PGML -Find the distance between [` [$pt1] `] and [` [$pt2] `]. +Find the distance between [` [$pt1] `] and [` [$pt2] `]. - [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* + [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_19.pg b/Contrib/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_19.pg index aeb389c206..064bb4ae53 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_19.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_19.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -53,9 +53,9 @@ $ans=Compute(sqrt(($a-$c)**2+($b-$d)**2)); # Main text BEGIN_PGML -Find the distance between [` [$pt1] `] and [` [$pt2] `]. +Find the distance between [` [$pt1] `] and [` [$pt2] `]. -[_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_23.pg b/Contrib/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_23.pg index ad5abf9a9c..1feacd2e62 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_23.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_23.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -50,12 +50,12 @@ $midpt = List( Point("(($a+$c)/2,($b+$d)/2)")); # Main text BEGIN_PGML -Find the coordinates of the midpoint of the line segment that joins the two points [` [$pt1] `] and [` [$pt2] `]. +Find the coordinates of the midpoint of the line segment that joins the two points [` [$pt1] `] and [` [$pt2] `]. Enter a point as [` (a,b) `], -including the parentheses. +including the parentheses. -midpoint: [_______________]{$midpt} [@ AnswerFormatHelp("points") @]* +midpoint: [_______________]{$midpt} [@ helpLink("points") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_25.pg b/Contrib/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_25.pg index 25f2e9023c..dc303487e9 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_25.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_25.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -49,11 +49,11 @@ $midpt = List( Point("(($a+$c)/2,($b+$d)/2)")); # Main text BEGIN_PGML -Find the coordinates of the midpoint of the line segment that joins the two points [` [$pt1] `] and [` [$pt2] `]. +Find the coordinates of the midpoint of the line segment that joins the two points [` [$pt1] `] and [` [$pt2] `]. -Enter a point as [` (a,b) `], including the parentheses. +Enter a point as [` (a,b) `], including the parentheses. -midpoint: [_______________]{$midpt} [@ AnswerFormatHelp("points") @]* +midpoint: [_______________]{$midpt} [@ helpLink("points") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_27.pg b/Contrib/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_27.pg index 0d50f5ca9b..fda366e12e 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_27.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_27.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -41,11 +41,11 @@ $origin = List( Point("(0,0)")); # Main text BEGIN_PGML -What are the coordinates of the origin? +What are the coordinates of the origin? -Enter a point as [` (a,b) `], including the parentheses. +Enter a point as [` (a,b) `], including the parentheses. - [_______________]{$origin} [@ AnswerFormatHelp("points") @]* + [_______________]{$origin} [@ helpLink("points") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_28.pg b/Contrib/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_28.pg index da0eb1284f..a908e4c84e 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_28.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_28.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -43,7 +43,7 @@ $ans=Compute(0); BEGIN_PGML If a point is located on the y-axis, what is the x-coordinate? - [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* + [_______________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_29.pg b/Contrib/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_29.pg index f62ad9669b..e07573e9ec 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_29.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_29.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -43,7 +43,7 @@ $ans=Compute(0); BEGIN_PGML If a point is located on the x-axis, what is the y-coordinate? -[_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_30.pg b/Contrib/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_30.pg index b1f0bfee84..bfdb5ff9ce 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_30.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_30.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserPopUp.pl", "unionTables.pl", @@ -93,7 +93,7 @@ Context()->texStrings; BEGIN_TEXT Match the following points A, B, and C with their coordinates. $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>400,height=>400,tex_size=>800 ) \} $BR (Click on graph to enlarge) diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_34.pg b/Contrib/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_34.pg index efe4d968cf..11d8efc57c 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_34.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_34.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "PGchoicemacros.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserPopUp.pl", "PGML.pl", @@ -107,21 +107,21 @@ BEGIN_PGML Name the quadrant, or axis, in which the following points are located. -1. ([$a],[$b]): [_________________]{$popup1} +1. ([$a],[$b]): [_________________]{$popup1} -2. ([$c],[$d]): [_________________]{$popup2} +2. ([$c],[$d]): [_________________]{$popup2} -3. ([$e],[$f]): [_________________]{$popup3} +3. ([$e],[$f]): [_________________]{$popup3} -4. ([$g],[$h]): [_________________]{$popup4} +4. ([$g],[$h]): [_________________]{$popup4} -5. ([$j],[$i]): [_________________]{$popup5} +5. ([$j],[$i]): [_________________]{$popup5} -6. ([$j],[$g]): [_________________]{$popup6} +6. ([$j],[$g]): [_________________]{$popup6} -7. ([$m],[$n]): [_________________]{$popup7} +7. ([$m],[$n]): [_________________]{$popup7} -8. ([$o],[$p]): [_________________]{$popup8} +8. ([$o],[$p]): [_________________]{$popup8} END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_43.pg b/Contrib/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_43.pg index a89f136189..1611391137 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_43.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_43.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGgraphmacros.pl", "PGstandard.pl", -"AnswerFormatHelp.pl", + "MathObjects.pl", "contextLimitedPoint.pl", "PGML.pl", @@ -87,9 +87,9 @@ BEGIN_PGML -Find the distance between the two endpoints for the line segment shown in the graph. +Find the distance between the two endpoints for the line segment shown in the graph. -[_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_44.pg b/Contrib/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_44.pg index bf6c24dec8..56ff2d1444 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_44.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_44.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGgraphmacros.pl", "PGstandard.pl", -"AnswerFormatHelp.pl", + "MathObjects.pl", "contextLimitedPoint.pl", "PGML.pl", @@ -82,10 +82,10 @@ BEGIN_PGML -Find the midpoint between the two endpoints for the line segment shown in the graph. Enter a point as [` (a,b) `], +Find the midpoint between the two endpoints for the line segment shown in the graph. Enter a point as [` (a,b) `], including the parentheses. -[_______________]{$midpt} [@ AnswerFormatHelp("points") @]* +[_______________]{$midpt} [@ helpLink("points") @]* diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_45.pg b/Contrib/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_45.pg index 6757038d3b..3821fe90b0 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_45.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_45.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGgraphmacros.pl", "PGstandard.pl", -"AnswerFormatHelp.pl", + "MathObjects.pl", "contextLimitedPoint.pl", "PGML.pl", @@ -79,9 +79,9 @@ BEGIN_PGML -Find the distance between the point [` [$pt1] `] and the origin. +Find the distance between the point [` [$pt1] `] and the origin. -[_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_5.pg b/Contrib/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_5.pg index c50b1080f8..f7929fe1d0 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_5.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_5.pg @@ -21,9 +21,9 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", - "contextFraction.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", ); @@ -57,13 +57,13 @@ $yint = List( Point("(0,$b)") ); BEGIN_PGML Find the x-intercept and y-intercept -of [` y = [$f] `]. +of [` y = [$f] `]. Enter a point as [` (a,b) `], -including the parentheses. +including the parentheses. -x-intercept: [__________________]{$xint} [@ AnswerFormatHelp("points") @]* -y-intercept: [__________________]{$yint} [@ AnswerFormatHelp("points") @]* +x-intercept: [__________________]{$xint} [@ helpLink("points") @]* +y-intercept: [__________________]{$yint} [@ helpLink("points") @]* diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_54.pg b/Contrib/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_54.pg index fca7bb063e..a433e230b4 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_54.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_54.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGgraphmacros.pl", "PGstandard.pl", -"AnswerFormatHelp.pl", + "MathObjects.pl", "contextLimitedPoint.pl", "PGML.pl", @@ -56,11 +56,11 @@ BEGIN_PGML A man drove [` [$a] `] miles directly east from his home, made a left turn at an intersection, and then traveled [` [$b] `] miles due north to his place of work. If a road was made directly from his home to his place of work, what would its distance be? -[_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans1} [@ helpLink("numbers") @]* If the road was made as described above, how much shorter would the man's one-way trip be every day? -[_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans2} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_9.pg b/Contrib/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_9.pg index fe53d3846e..eef4408a67 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_9.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_9.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserImplicitEquation.pl", "PGML.pl", @@ -59,15 +59,15 @@ $yint = List( Point("(0,$c/$b)") ); Context()->texStrings; BEGIN_PGML Enter the x-intercept(s) and y-intercept(s) -of [` [$f]=[$g] `]. +of [` [$f]=[$g] `]. Enter a point as [` (a,b) `], -including the parentheses. If there is more -than one correct answer, enter a comma +including the parentheses. If there is more +than one correct answer, enter a comma separated list of points. -x-intercept(s): [_______________]{$xint} [@ AnswerFormatHelp("points") @]* -y-intercept(s): [_______________]{$yint} [@ AnswerFormatHelp("points") @]* +x-intercept(s): [_______________]{$xint} [@ helpLink("points") @]* +y-intercept(s): [_______________]{$yint} [@ helpLink("points") @]* diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.1/RRCC_CCCS_Circles_1.pg b/Contrib/RRCC/College_Algebra/MAT121/2.1/RRCC_CCCS_Circles_1.pg index ccbafd5c1a..c376231c5b 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.1/RRCC_CCCS_Circles_1.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.1/RRCC_CCCS_Circles_1.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -52,12 +52,12 @@ $cen = Point("($h,$k)"); # Main text BEGIN_PGML -Find the center and radius of the following circle. Enter the center as an ordered pair. +Find the center and radius of the following circle. Enter the center as an ordered pair. >>[`` [$f]=[$r2] ``]<< -+ center: [______]{$cen} [@ AnswerFormatHelp("points") @]* ++ center: [______]{$cen} [@ helpLink("points") @]* -+ radius: [___]{$r} [@ AnswerFormatHelp("numbers") @]* ++ radius: [___]{$r} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.1/RRCC_CCCS_Circles_2.pg b/Contrib/RRCC/College_Algebra/MAT121/2.1/RRCC_CCCS_Circles_2.pg index 6b5c69b683..90d93458d1 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.1/RRCC_CCCS_Circles_2.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.1/RRCC_CCCS_Circles_2.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -51,12 +51,12 @@ $cen = Point("(0,$k)"); # Main text BEGIN_PGML -Find the center and radius of the following circle. Enter the center as an ordered pair. +Find the center and radius of the following circle. Enter the center as an ordered pair. >>[`` [$f]=[$r2] ``]<< -+ center: [______]{$cen} [@ AnswerFormatHelp("points") @]* ++ center: [______]{$cen} [@ helpLink("points") @]* -+ radius: [___]{$r} [@ AnswerFormatHelp("numbers") @]* ++ radius: [___]{$r} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.1/RRCC_CCCS_Circles_3.pg b/Contrib/RRCC/College_Algebra/MAT121/2.1/RRCC_CCCS_Circles_3.pg index 353c3674cb..02b96d1c6e 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.1/RRCC_CCCS_Circles_3.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.1/RRCC_CCCS_Circles_3.pg @@ -2,7 +2,7 @@ ## College Algebra ## ENDDESCRIPTION - + ## DBsubject(Algebra) ## DBchapter(Cartesian coordinate system) ## DBsection(Circles) @@ -12,7 +12,7 @@ ## MO(1) ## KEYWORDS('college algebra') - + ########################### # Initialization @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -47,23 +47,23 @@ $r2 = ($r)**2; # The two sides of the correct answer $ans1=Formula("(x-$h)^2+(y-$k)^2")->reduce; $ans2=Formula("$r2"); - + ########################### # Main text BEGIN_PGML -Find the equation for the circle with center [` ([$h],[$k]) `] and radius of length [` [$r] `]. - - [____________][`=`] [__________] [@ AnswerFormatHelp("numbers") @]* +Find the equation for the circle with center [` ([$h],[$k]) `] and radius of length [` [$r] `]. + + [____________][`=`] [__________] [@ helpLink("numbers") @]* END_PGML - - + + ############################ #Answers @@ -71,9 +71,9 @@ $showPartialCorrectAnswers = 0; install_problem_grader(~~&std_problem_grader); -UNORDERED_ANS( -$ans1->cmp(), -$ans2->cmp(), +UNORDERED_ANS( +$ans1->cmp(), +$ans2->cmp(), ); # Solution diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.1/RRCC_CCCS_Circles_4.pg b/Contrib/RRCC/College_Algebra/MAT121/2.1/RRCC_CCCS_Circles_4.pg index 68332e5b32..2a34898143 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.1/RRCC_CCCS_Circles_4.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.1/RRCC_CCCS_Circles_4.pg @@ -2,7 +2,7 @@ ## College Algebra ## ENDDESCRIPTION - + ## DBsubject(Algebra) ## DBchapter(Cartesian coordinate system) ## DBsection(Circles) @@ -12,7 +12,7 @@ ## MO(1) ## KEYWORDS('college algebra') - + ########################### # Initialization @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "unorderedAnswer.pl", @@ -47,24 +47,24 @@ $r2 = ($r/2)**2; $ans1=Formula("(x-$h)^2+(y-$k)^2")->reduce; $ans2=Formula("$r2"); - - + + ########################### # Main text BEGIN_PGML -Find the equation for the circle with center [` ([$h],[$k]) `] and diameter of length [` [$r] `]. - - [______________] [`=`] [____________] [@ AnswerFormatHelp("numbers") @]* +Find the equation for the circle with center [` ([$h],[$k]) `] and diameter of length [` [$r] `]. + + [______________] [`=`] [____________] [@ helpLink("numbers") @]* END_PGML - - + + ############################ #Answers @@ -72,9 +72,9 @@ $showPartialCorrectAnswers = 0; install_problem_grader(~~&std_problem_grader); -UNORDERED_ANS( -$ans1->cmp(), -$ans2->cmp(), +UNORDERED_ANS( +$ans1->cmp(), +$ans2->cmp(), ); diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.1/RRCC_CCCS_Circles_5.pg b/Contrib/RRCC/College_Algebra/MAT121/2.1/RRCC_CCCS_Circles_5.pg index 2b385d12ba..c72e63c6d1 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.1/RRCC_CCCS_Circles_5.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.1/RRCC_CCCS_Circles_5.pg @@ -6,17 +6,17 @@ ## Author(Brenda Forland; EDIT: James Morski 8/30/17) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -24,10 +24,10 @@ loadMacros( "PGML.pl", "PGcourse.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -45,26 +45,26 @@ $r2 = Compute("($a-$h)**2+($b-$k)**2"); # The two sides of the correct answer $ans1=Formula("(x-$h)^2+(y-$k)^2")->reduce; $ans2=Formula("$r2"); - - - + + + ########################### # Main text - + BEGIN_PGML -Find the equation for the circle with center [` ([$h],[$k]) `] and and passes through [` ([$a],[$b]) `]. - - [_______________] [`=`] [_____________][@ AnswerFormatHelp("numbers") @]* - +Find the equation for the circle with center [` ([$h],[$k]) `] and and passes through [` ([$a],[$b]) `]. + + [_______________] [`=`] [_____________][@ helpLink("numbers") @]* + + - END_PGML - - - + + + ############################ #Answers @@ -72,20 +72,20 @@ $showPartialCorrectAnswers = 0; install_problem_grader(~~&std_problem_grader); -UNORDERED_ANS( -$ans1->cmp(), -$ans2->cmp(), +UNORDERED_ANS( +$ans1->cmp(), +$ans2->cmp(), ); # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_10.pg b/Contrib/RRCC/College_Algebra/MAT121/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_10.pg index c815bc46b8..236cc72f30 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_10.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_10.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -53,11 +53,11 @@ if ($sign == 1) { $solution = (-$d*$a - $b*$e)/($c*$b); BEGIN_PGML -Solve the following equation for [`x`]: +Solve the following equation for [`x`]: [``- \dfrac{[$a]}{[$b]} - \dfrac{[$c]}{[$d]}x = \dfrac{[$e]}{[$d]}``] -[` x = `] [_______________]{$solution} [@ AnswerFormatHelp("numbers") @]* +[` x = `] [_______________]{$solution} [@ helpLink("numbers") @]* END_PGML @@ -68,11 +68,11 @@ else { $solution = (-$d*$a + $b*$e)/($c*$b); BEGIN_PGML -Solve the following equation for [`x`]: +Solve the following equation for [`x`]: [``- \dfrac{[$a]}{[$b]} - \dfrac{[$c]}{[$d]}x = -\dfrac{[$e]}{[$d]}``] -[`x=`][_______________]{$solution} [@ AnswerFormatHelp("numbers") @]* +[`x=`][_______________]{$solution} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_36.pg b/Contrib/RRCC/College_Algebra/MAT121/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_36.pg index af7af0d4e0..6575309d2f 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_36.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_36.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -36,7 +36,7 @@ $showPartialCorrectAnswers = 1; $a=non_zero_random(1,3); # choose parallel, perpendicular, or neither as answer -# used to generate slopes +# used to generate slopes $b=list_random(3,5,7,9); $c=list_random(2,4,6,8); @@ -60,13 +60,13 @@ if ($a == 1) { # parallel lines BEGIN_PGML -Describe the following pair of lines as parallel, perpendicular, or neither. +Describe the following pair of lines as parallel, perpendicular, or neither. [`` y = \dfrac{{[$b]}}{{[$c]}} x + {[$d]}``] [`` y = \dfrac{{[$b*$f]}}{{[$c*$f]}} x - {[$e]} ``] -[_______________]{$radio} +[_______________]{$radio} END_PGML @@ -78,12 +78,12 @@ END_PGML BEGIN_PGML -Describe the following pair of lines as parallel, perpendicular, or neither. +Describe the following pair of lines as parallel, perpendicular, or neither. [`` y = \dfrac{{[$c*$f]}}{{[$b*$f]}} x + {[$d]} \\ y = - \dfrac{{[$b]}}{{[$c]}} x - {[$e]} ``] -[_______________]{$radio} +[_______________]{$radio} @@ -97,11 +97,11 @@ END_PGML BEGIN_PGML -Describe the following pair of lines as parallel, perpendicular, or neither. +Describe the following pair of lines as parallel, perpendicular, or neither. [`` y = \dfrac{{[$c*$f]}}{{[$b*$f]}} x + {[$d]} \\ y = - \dfrac{{[$c]}}{{[$b]}} x - {[$e]} ``] -[_______________]{$radio} +[_______________]{$radio} END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_36b.pg b/Contrib/RRCC/College_Algebra/MAT121/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_36b.pg index bf508ae7af..18323511f8 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_36b.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_36b.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -36,7 +36,7 @@ $showPartialCorrectAnswers = 1; $a=non_zero_random(1,3); # choose parallel, perpendicular, or neither as answer -# used to generate slopes +# used to generate slopes $b=list_random(3,5,7,9); $c=list_random(2,4,6,8); @@ -60,13 +60,13 @@ if ($a == 1) { # parallel lines BEGIN_PGML -Describe the following pair of lines as parallel, perpendicular, or neither. +Describe the following pair of lines as parallel, perpendicular, or neither. [``{[$b*$f]} x - {[$c*$f]} y = \dfrac{{[$d]}}{{[$e]}}``] [`` -{[$b]} x + {[$c]} y = -\dfrac{{[$e]}}{{[$d]}} ``] -[_______________]{$radio} +[_______________]{$radio} END_PGML @@ -78,11 +78,11 @@ END_PGML BEGIN_PGML -Describe the following pair of lines as parallel, perpendicular, or neither. +Describe the following pair of lines as parallel, perpendicular, or neither. [``-{[$b*$f]} x - {[$c*$f]} y = \dfrac{{[$d]}}{{[$e]}} \\ -{[$c]} x + {[$b]} y = \dfrac{{[$d]}}{{[$e]}} ``] -[_______________]{$radio} +[_______________]{$radio} @@ -96,11 +96,11 @@ END_PGML BEGIN_PGML -Describe the following pair of lines as parallel, perpendicular, or neither. +Describe the following pair of lines as parallel, perpendicular, or neither. [``{[$b*$f]} x + {[$c*$f]} y = \dfrac{{[$d]}}{{[$e]}} \\ -{[$b]} x + {[$c]} y = -\dfrac{{[$e]}}{{[$d]}} ``] -[_______________]{$radio} +[_______________]{$radio} END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_37.pg b/Contrib/RRCC/College_Algebra/MAT121/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_37.pg index 5300b93496..e0f6e60dad 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_37.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_37.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -58,13 +58,13 @@ if ($a == 1) { # parallel lines BEGIN_PGML -Describe the following pair of lines as parallel, perpendicular, or neither. +Describe the following pair of lines as parallel, perpendicular, or neither. [`` {[$c]}x - {[$b]}y = {[$e]} ``] [`` {[$b * $d]}y - {[$c * $d]}x = {[$f]} ``] -[_______________]{$radio} +[_______________]{$radio} END_PGML @@ -76,11 +76,11 @@ END_PGML BEGIN_PGML -Describe the following pair of lines as parallel, perpendicular, or neither. +Describe the following pair of lines as parallel, perpendicular, or neither. [`` {[$c]}x - {[$b]}y = {[$e]} \\ {[$c * $d]}y + {[$b * $d]}x = {[$f]} ``] -[_______________]{$radio} +[_______________]{$radio} @@ -94,11 +94,11 @@ END_PGML BEGIN_PGML -Describe the following pair of lines as parallel, perpendicular, or neither. +Describe the following pair of lines as parallel, perpendicular, or neither. [`` {[$c]}x - {[$e]} = {[$b]}y \\ {[$b * $d]}y + {[$c * $d]}x = {[$f]} ``] -[_______________]{$radio} +[_______________]{$radio} END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_39.pg b/Contrib/RRCC/College_Algebra/MAT121/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_39.pg index 56177121b7..21f94bf445 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_39.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_39.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -56,13 +56,13 @@ if ($a == 1) { # parallel lines BEGIN_PGML -Describe the following pair of lines as parallel, perpendicular, or neither. +Describe the following pair of lines as parallel, perpendicular, or neither. [`` x = \dfrac{{[$b]}}{{[$c]}}``] [`` x = -\dfrac{{[$c]}}{{[$b]}} ``] -[_______________]{$radio} +[_______________]{$radio} END_PGML @@ -74,11 +74,11 @@ END_PGML BEGIN_PGML -Describe the following pair of lines as parallel, perpendicular, or neither. +Describe the following pair of lines as parallel, perpendicular, or neither. [`` x = \dfrac{{[$b]}}{{[$c]}} \\ y = \dfrac{{[$b]}}{{[$c]}} ``] -[_______________]{$radio} +[_______________]{$radio} @@ -92,11 +92,11 @@ END_PGML BEGIN_PGML -Describe the following pair of lines as parallel, perpendicular, or neither. +Describe the following pair of lines as parallel, perpendicular, or neither. [`` x = \dfrac{{[$b]}}{{[$c]}} \\ x + y = - \dfrac{{[$c]}}{{[$b]}} ``] -[_______________]{$radio} +[_______________]{$radio} END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_41.pg b/Contrib/RRCC/College_Algebra/MAT121/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_41.pg index 74ff92daa5..1957564c7f 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_41.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_41.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -52,9 +52,9 @@ $ans = (2 * $y1 - 1) / (2 * $x1 - 1); BEGIN_PGML Find the slope of the line between the points [` \left( {[$x1]}, {[$y1]} \right) `] and -[` \left( {[$x2]}, {[$y2]} \right) `]. +[` \left( {[$x2]}, {[$y2]} \right) `]. - [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* + [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_45.pg b/Contrib/RRCC/College_Algebra/MAT121/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_45.pg index 3057f02e0d..ba06add9ac 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_45.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_45.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -36,7 +36,7 @@ $showPartialCorrectAnswers = 1; $u=non_zero_random(1,3); if ($u == 1) { - # Setup parameters + # Setup parameters $a=non_zero_random(2,7); $b=non_zero_random(1,3); @@ -64,12 +64,12 @@ if ($u == 1) { ); BEGIN_PGML - Find the slope of the line passing between each pair of points, and then determine if the - lines are parallel, perpendicular, or neither. + Find the slope of the line passing between each pair of points, and then determine if the + lines are parallel, perpendicular, or neither. [`` \left( {[$x1]}, {[$y1]} \right) \text{ and } \left( {[$x2]}, {[$y2]} \right) ``] - -[`` \left( {[$x3]} , {[$y3]} \right) \text{ and } \left( {[$x4]}, {[$y4]} \right) ``] + +[`` \left( {[$x3]} , {[$y3]} \right) \text{ and } \left( {[$x4]}, {[$y4]} \right) ``] [_______________]{$radio} @@ -85,7 +85,7 @@ if ($u == 1) { #END_PGML_SOLUTION } elsif ($u == 2) { # perpendicular lines - # Setup parameters + # Setup parameters $a=non_zero_random(2,7); $b=non_zero_random(1,3); @@ -113,11 +113,11 @@ if ($u == 1) { ); BEGIN_PGML - Find the slope of the line passing between each pair of points, and then determine if the - lines are parallel, perpendicular, or neither. + Find the slope of the line passing between each pair of points, and then determine if the + lines are parallel, perpendicular, or neither. - [`` \left( {[$x1]}, {[$y1]} \right) \text{ and } \left( {[$x2]}, {[$y2]} \right) \\ - \left( {[$x3]} , {[$y3]} \right) \text{ and } \left( {[$x4]}, {[$y4]} \right) ``] + [`` \left( {[$x1]}, {[$y1]} \right) \text{ and } \left( {[$x2]}, {[$y2]} \right) \\ + \left( {[$x3]} , {[$y3]} \right) \text{ and } \left( {[$x4]}, {[$y4]} \right) ``] [_______________]{$radio} @@ -131,7 +131,7 @@ if ($u == 1) { #Solution explanation goes here. #END_PGML_SOLUTION } else { # neither parallel or perpendicular - # Setup parameters + # Setup parameters $a=non_zero_random(2,7); $b=non_zero_random(1,3); @@ -159,11 +159,11 @@ if ($u == 1) { ); BEGIN_PGML - Find the slope of the line passing between each pair of points, and then determine if the - lines are parallel, perpendicular, or neither. + Find the slope of the line passing between each pair of points, and then determine if the + lines are parallel, perpendicular, or neither. - [`` \left( {[$x1]}, {[$y1]} \right) \text{ and } \left( {[$x2]}, {[$y2]} \right) \\ - \left( {[$x3]} , {[$y3]} \right) \text{ and } \left( {[$x4]}, {[$y4]} \right) ``] + [`` \left( {[$x1]}, {[$y1]} \right) \text{ and } \left( {[$x2]}, {[$y2]} \right) \\ + \left( {[$x3]} , {[$y3]} \right) \text{ and } \left( {[$x4]}, {[$y4]} \right) ``] [_______________]{$radio} diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_50.pg b/Contrib/RRCC/College_Algebra/MAT121/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_50.pg index 787aae078e..8539049012 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_50.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_50.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -44,12 +44,12 @@ Context()->variables->add(m => 'Real'); BEGIN_PGML Start with the point-slope formula for a line -[`` y - y_1 = m \left( x - x_1 \right) ``] +[`` y - y_1 = m \left( x - x_1 \right) ``] and solve to find [`x`] in terms of [` m, x_1, y, `] and [`y_1`]. In order to enter a subscript, type x1 to get `x_1`. -[`x =`] [_______________]{Compute("(y - y1)/m + x1")->cmp()} -[@ AnswerFormatHelp("formulas") @]* +[`x =`] [_______________]{Compute("(y - y1)/m + x1")->cmp()} +[@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_57.pg b/Contrib/RRCC/College_Algebra/MAT121/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_57.pg index 9b5097672e..496c6963ed 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_57.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_57.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "scaffold.pl", @@ -32,9 +32,9 @@ $showPartialCorrectAnswers = 1; ########################### -# Setup +# Setup $u=non_zero_random(1,3); # three possibilities for the details of the rental car contract -if ($u == 1) { +if ($u == 1) { $m = 0.15; $b = 65; } elsif ($u == 2) { @@ -61,7 +61,7 @@ $ans3 = round(($cost2 - $b) / $m); # Main text Scaffold::Begin(); - + Section::Begin("Part 1"); BEGIN_PGML @@ -72,20 +72,20 @@ Suppose that the cost of a rental car is $[`{[$b]}`] for a week plus $[`{[$m]}`] where [`x`] is the number of miles driven. What is the total cost of the car if you travel [`{[$mileage]}`] miles? - [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* + [_______________]{$ans1} [@ helpLink("numbers") @]* END_PGML Section::End(); - + Section::Begin("Part 2"); BEGIN_PGML -If the total cost of your rental for one week is $[`{[$cost]}`], how many miles did you travel? +If the total cost of your rental for one week is $[`{[$cost]}`], how many miles did you travel? - [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* + [_______________]{$ans2} [@ helpLink("numbers") @]* END_PGML @@ -96,12 +96,12 @@ Section::Begin("Part 3"); BEGIN_PGML Suppose that you have a maximum of $[`{[$cost2]}`] to spend on a car rental. What is the maximum number of miles that you can travel? Round your answer to the nearest whole number. - [_______________]{$ans3} [@ AnswerFormatHelp("numbers") @]* + [_______________]{$ans3} [@ helpLink("numbers") @]* END_PGML Section::End(); - + Scaffold::End(); ############################ diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_13.pg b/Contrib/RRCC/College_Algebra/MAT121/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_13.pg index 1ebf97ad62..71c4f25eaa 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_13.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_13.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -47,11 +47,11 @@ $answer1 = ($e+$a*$c)/($a*$b+1-$d); # Main text BEGIN_PGML -Solve the following equation for [`x`]: +Solve the following equation for [`x`]: [`` [$a]([$b]x-[$c])+x = [$d]x+[$e]``] -[`x =`][_______________]{$answer1} [@ AnswerFormatHelp("numbers") @]* +[`x =`][_______________]{$answer1} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_22.pg b/Contrib/RRCC/College_Algebra/MAT121/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_22.pg index 51db3112e6..bd2dbebbaf 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_22.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_22.pg @@ -22,7 +22,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,9 +50,9 @@ $eqn = Formula("-$c/$d*x+($b+($a*$c)/$d)")->reduce; BEGIN_PGML -Find the equation of the line that contains point [`([$a],[$b])`] with a slope of [` -\dfrac{[$c]}{[$d]} `]. +Find the equation of the line that contains point [`([$a],[$b])`] with a slope of [` -\dfrac{[$c]}{[$d]} `]. -[`y=`] [___________]{$eqn} [@ AnswerFormatHelp("equation") @]* +[`y=`] [___________]{$eqn} [@ helpLink("equation") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_23.pg b/Contrib/RRCC/College_Algebra/MAT121/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_23.pg index 67c62f7de2..78503d51a9 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_23.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_23.pg @@ -22,7 +22,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -54,9 +54,9 @@ $eqn = Formula("($c/$d)*x+($b-($a*$c)/$d)")->reduce; BEGIN_PGML -Find the equation of the line that contains the point [`([$a],[$b])`] and has a slope of [` \dfrac{[$c]}{[$d]} `]. +Find the equation of the line that contains the point [`([$a],[$b])`] and has a slope of [` \dfrac{[$c]}{[$d]} `]. -[`y=`][___________]{$eqn} [@ AnswerFormatHelp("formulas") @]* +[`y=`][___________]{$eqn} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_29.pg b/Contrib/RRCC/College_Algebra/MAT121/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_29.pg index 529edfad22..1342f5a8bf 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_29.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_29.pg @@ -22,7 +22,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,10 +50,10 @@ $ans = Formula("-$c*x+($a*$c+$b)")->reduce; BEGIN_PGML -Find an equation of the line perpendicular to [` [$c]*y=x-[$d] `] that passes through the point [`([$a],[$b])`]. +Find an equation of the line perpendicular to [` [$c]*y=x-[$d] `] that passes through the point [`([$a],[$b])`]. -[`y=`] [___________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`y=`] [___________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_30.pg b/Contrib/RRCC/College_Algebra/MAT121/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_30.pg index d44fe51f52..f6aa88bf00 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_30.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_30.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,11 +51,11 @@ $ans = Formula("$slope*x+$intercept")->reduce; BEGIN_PGML Find the equation of the line passing through the points [` ([$a] ,[$b] ) `] and -[` ( [$c], [$d]) . `] +[` ( [$c], [$d]) . `] -[`y=`] [_______________]{$ans} -[@ AnswerFormatHelp("formulas") @]* +[`y=`] [_______________]{$ans} +[@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_6.pg b/Contrib/RRCC/College_Algebra/MAT121/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_6.pg index e9d91b88c7..bd6588ea8a 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_6.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_6.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -46,11 +46,11 @@ $answer1 =($d-$b)/($a-$c); # Main text BEGIN_PGML -Solve the following equation for [`x`]: +Solve the following equation for [`x`]: [`[$a]x+[$b]=[$c]x+[$d]`] -[` x = `][_______________]{$answer1} [@ AnswerFormatHelp("numbers") @]* +[` x = `][_______________]{$answer1} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_8.pg b/Contrib/RRCC/College_Algebra/MAT121/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_8.pg index 561a58821c..d165641035 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_8.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_8.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -52,11 +52,11 @@ $answer1 = ($c*$e-$b-$a*$d)/($a-$c); # Main text BEGIN_PGML -Solve the following equation for [`x`]: +Solve the following equation for [`x`]: [`[$f]=[$g]`] -[` x = `][_______________]{$answer1} [@ AnswerFormatHelp("numbers") @]* +[` x = `][_______________]{$answer1} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_21.pg b/Contrib/RRCC/College_Algebra/MAT121/2.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_21.pg index d920e21efb..c361faf5fb 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_21.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_21.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,9 +48,9 @@ $x1 = $z * $w; # Main text BEGIN_PGML -Evaluate [` ([$z]) ([$w]) `] and express as a simplified complex number. +Evaluate [` ([$z]) ([$w]) `] and express as a simplified complex number. - [_______________]{$x1} [@ AnswerFormatHelp("numbers") @]* + [_______________]{$x1} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_49.pg b/Contrib/RRCC/College_Algebra/MAT121/2.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_49.pg index 9d27f1d302..fd213958a2 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_49.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_49.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,9 +48,9 @@ $i=Complex(0,1); # Main text BEGIN_PGML -Evaluate [` i^{[$a]} ( 1 + i^{[$b]} ) `] and express the answer as a simplified complex number. +Evaluate [` i^{[$a]} ( 1 + i^{[$b]} ) `] and express the answer as a simplified complex number. - [_______________]{$i**$a * (1 + $i**$b)} [@ AnswerFormatHelp("numbers") @]* + [_______________]{$i**$a * (1 + $i**$b)} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_50.pg b/Contrib/RRCC/College_Algebra/MAT121/2.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_50.pg index ffc09500e7..3b3a48abbf 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_50.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_50.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,9 +48,9 @@ $i=Complex(0,1); # Main text BEGIN_PGML -Evaluate [` i^{-[$a]} + [$b] \, i^{[$c]} `] and express the answer as a simplified complex number. +Evaluate [` i^{-[$a]} + [$b] \, i^{[$c]} `] and express the answer as a simplified complex number. - [_______________]{$i**(-1*$a) + $b * $i**$c} [@ AnswerFormatHelp("numbers") @]* + [_______________]{$i**(-1*$a) + $b * $i**$c} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_16.pg b/Contrib/RRCC/College_Algebra/MAT121/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_16.pg index b06079de80..652276729b 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_16.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_16.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,9 +50,9 @@ $w=Complex($c,$d); # Main text BEGIN_PGML -Evaluate [` ([$z]) + ([$w]) `] and express as a simplified complex number. +Evaluate [` ([$z]) + ([$w]) `] and express as a simplified complex number. - [_______________]{$z+$w} [@ AnswerFormatHelp("numbers") @]* + [_______________]{$z+$w} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_17.pg b/Contrib/RRCC/College_Algebra/MAT121/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_17.pg index 6005e1c09d..14d2b6c2b2 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_17.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_17.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,9 +50,9 @@ $w=Complex($c,$d); # Main text BEGIN_PGML -Evaluate [` ([$z]) - ([$w]) `] and express as a simplified complex number. +Evaluate [` ([$z]) - ([$w]) `] and express as a simplified complex number. - [_______________]{$z-$w} [@ AnswerFormatHelp("numbers") @]* + [_______________]{$z-$w} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_25.pg b/Contrib/RRCC/College_Algebra/MAT121/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_25.pg index b5b822b710..65a4ba1635 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_25.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_25.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,9 +50,9 @@ $w=Complex($c,$d); # Main text BEGIN_PGML -Evaluate [` ([$z])([$w]) `] and express as a simplified complex number. +Evaluate [` ([$z])([$w]) `] and express as a simplified complex number. - [_______________]{$z*$w} [@ AnswerFormatHelp("numbers") @]* + [_______________]{$z*$w} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_33.pg b/Contrib/RRCC/College_Algebra/MAT121/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_33.pg index 087e6213e6..b7894a0e2e 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_33.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_33.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,9 +50,9 @@ $ans=$z/$w; # Main text BEGIN_PGML -Evaluate [`` \frac{[$z]}{[$w]} ``] and express as a simplified complex number. +Evaluate [`` \frac{[$z]}{[$w]} ``] and express as a simplified complex number. - [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* + [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_40a.pg b/Contrib/RRCC/College_Algebra/MAT121/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_40a.pg index 06bb028ce6..63339a18d0 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_40a.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_40a.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -43,9 +43,9 @@ $ans=Complex(0,-1); # Main text BEGIN_PGML -Simplify [`` i^{[$a]} ``]. +Simplify [`` i^{[$a]} ``]. - [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* + [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_40b.pg b/Contrib/RRCC/College_Algebra/MAT121/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_40b.pg index fa65c2b266..04fbf23383 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_40b.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_40b.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -43,9 +43,9 @@ $ans=Complex(1,0); # Main text BEGIN_PGML -Simplify [`` i^{[$a]} ``]. +Simplify [`` i^{[$a]} ``]. - [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* + [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_12.pg b/Contrib/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_12.pg index 4cd364f840..b0012746bc 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_12.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_12.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -49,11 +49,11 @@ $ans = List( -$c, -$b/$a ); # Main text BEGIN_PGML -Solve [`[$f]=0 `] by factoring. If there is more -than one correct answer, enter a comma +Solve [`[$f]=0 `] by factoring. If there is more +than one correct answer, enter a comma separated list. -[`x=`] [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_________________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_19.pg b/Contrib/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_19.pg index 5bb02d8c24..dfafb40486 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_19.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_19.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -47,11 +47,11 @@ $ans = List( $a, -$a ); # Main text BEGIN_PGML -Solve [`[$f]=[$a2] `] by using the square root property. If there is more -than one correct answer, enter a comma +Solve [`[$f]=[$a2] `] by using the square root property. If there is more +than one correct answer, enter a comma separated list. -[`x=`] [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_________________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_21.pg b/Contrib/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_21.pg index d493712d3a..7c483977e7 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_21.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_21.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,11 +48,11 @@ $ans = List( $b+$a, $b-$a ); # Main text BEGIN_PGML -Solve [`[$f]=[$a2] `] by using the square root property. If there is more -than one correct answer, enter a comma +Solve [`[$f]=[$a2] `] by using the square root property. If there is more +than one correct answer, enter a comma separated list. -[`x=`] [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_25.pg b/Contrib/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_25.pg index 61ac046b6d..4485e9eaf5 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_25.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_25.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "contextLimitedRadical.pl", "PGML.pl", @@ -41,51 +41,51 @@ Context("Numeric"); $chooser=random(1,5,1); if ( $chooser ==1) {$eqn1=Formula("x^2-10x-22"); -} +} elsif ( $chooser ==2) {$eqn1=Formula("x^2+2x-5"); -} +} elsif ( $chooser ==3) {$eqn1=Formula("x^2+6x+7"); -} +} elsif ( $chooser ==4) {$eqn1=Formula("x^2-4x-1"); -} +} if ( $chooser ==5) {$eqn1=Formula("x^2-6x-5"); -} +} if ( $chooser ==1) {$eqn2=0; -} +} elsif ( $chooser ==2) {$eqn2=0; -} +} elsif ( $chooser ==3) {$eqn2=0; -} +} elsif ( $chooser ==4) {$eqn2=0; -} +} if ( $chooser ==5) {$eqn2=0; -} +} elsif ( $chooser ==1) {$ans=List("5-sqrt47, 5+sqrt47"); -} +} if ( $chooser ==2) {$ans=List("-1+sqrt6, -1-sqrt6"); -} +} elsif ( $chooser ==3) {$ans=List("-3-sqrt2, -3+sqrt2"); -} +} elsif ( $chooser ==4) {$ans=List("2+sqrt5, 2-sqrt5"); -} +} if ( $chooser ==5) {$ans=List("3+sqrt14, 3-sqrt14"); -} +} @@ -93,11 +93,11 @@ if ( $chooser ==5) {$ans=List("3+sqrt14, 3-sqrt14"); # Main text BEGIN_PGML -Solve [`[$eqn1]=[$eqn2] `] by completing the square. If there is more -than one correct answer, enter a comma -separated list. +Solve [`[$eqn1]=[$eqn2] `] by completing the square. If there is more +than one correct answer, enter a comma +separated list. -[`x=`] [_________________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_________________________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_26.pg b/Contrib/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_26.pg index 7762493721..1219413e01 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_26.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_26.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -40,52 +40,52 @@ Context("Numeric"); $chooser=random(1,5,1); if ( $chooser ==1) {$eqn1=Formula("x^2-3x-1"); -} +} elsif ( $chooser ==2) {$eqn1=Formula("x^2-x-3"); -} +} elsif ( $chooser ==3) {$eqn1=Formula("x^2-5x-7"); -} +} elsif ( $chooser ==4) {$eqn1=Formula("x^2+3x-9"); -} +} if ( $chooser ==5) {$eqn1=Formula("x^2+3x-5"); -} +} if ( $chooser ==1) {$eqn2=0; -} +} elsif ( $chooser ==2) {$eqn2=0; -} +} elsif ( $chooser ==3) {$eqn2=0; -} +} elsif ( $chooser ==4) {$eqn2=0; -} +} if ( $chooser ==5) {$eqn2=0; -} +} elsif ( $chooser ==1) {$ans=List("(3-sqrt13)/2,(3+sqrt13)/2"); -} +} if ( $chooser ==2) {$ans=List("(1-sqrt13)/2,(1+sqrt13)/2"); -} +} elsif ( $chooser ==3) {$ans=List("(5+sqrt53)/2, (5-sqrt53)/2"); -} +} elsif ( $chooser ==4) {$ans=List("(-3+3sqrt5)/2,(-3-3sqrt5)/2"); -} +} if ( $chooser ==5) {$ans=List("(-3-sqrt29)/2,(-3+sqrt29)/2"); -} +} @@ -93,11 +93,11 @@ if ( $chooser ==5) {$ans=List("(-3-sqrt29)/2,(-3+sqrt29)/2"); # Main text BEGIN_PGML -Solve [`[$eqn1]=[$eqn2] `] by completing the square. If there is more -than one correct answer, enter a comma -separated list. +Solve [`[$eqn1]=[$eqn2] `] by completing the square. If there is more +than one correct answer, enter a comma +separated list. -[`x=`] [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_________________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_32.pg b/Contrib/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_32.pg index aca0ff605a..25d1f224d6 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_32.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_32.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserPopUp.pl", "PGML.pl", "PGcourse.pl", @@ -67,11 +67,11 @@ elsif ($ans==0) {$popup = PopUp( # Main text BEGIN_PGML -Determine the discriminant for [`[$f]=0`] -[_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +Determine the discriminant for [`[$f]=0`] +[_________________]{$ans} [@ helpLink("numbers") @]* -Based on the discriminant, what is the nature of the solution(s) for the equation? -[_________________]{$popup} +Based on the discriminant, what is the nature of the solution(s) for the equation? +[_________________]{$popup} END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_35.pg b/Contrib/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_35.pg index ea0a1eee28..9b38388355 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_35.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_35.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserPopUp.pl", "PGML.pl", "PGcourse.pl", @@ -53,11 +53,11 @@ $popup = PopUp( # Main text BEGIN_PGML -Determine the discriminant for [`[$f]=0`] -[_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +Determine the discriminant for [`[$f]=0`] +[_________________]{$ans} [@ helpLink("numbers") @]* -Based on the discriminant, what is the nature of the solution(s) for the equation? -[_________________]{$popup} +Based on the discriminant, what is the nature of the solution(s) for the equation? +[_________________]{$popup} diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_38.pg b/Contrib/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_38.pg index a4d607dc98..eae47f6ba0 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_38.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_38.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -54,11 +54,11 @@ $ans = List( $ans1, $ans2); BEGIN_PGML -Solve [`[$f]=0 `] by using the quadratic formula. If there is more -than one correct answer, enter a comma -separated list. +Solve [`[$f]=0 `] by using the quadratic formula. If there is more +than one correct answer, enter a comma +separated list. -[`x=`] [______________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [______________________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_39.pg b/Contrib/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_39.pg index d9265ee92e..735efa1e5d 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_39.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_39.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -49,11 +49,11 @@ $ans = List( (-1+sqrt(1-4*$c))/2, (-1-sqrt(1-4*$c))/2 ); BEGIN_PGML -Solve [`[$f]=0 `] by using the quadratic formula. If there is more -than one correct answer, enter a comma -separated list. +Solve [`[$f]=0 `] by using the quadratic formula. If there is more +than one correct answer, enter a comma +separated list. -[`x=`] [__________________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [__________________________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_41.pg b/Contrib/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_41.pg index 8ef268882d..e4384e6137 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_41.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_41.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -52,11 +52,11 @@ $ans = List( -$b/(2*$a) ); BEGIN_PGML -Solve [`[$f]=0 `] by using the quadratic formula. If there is more -than one correct answer, enter a comma -separated list. +Solve [`[$f]=0 `] by using the quadratic formula. If there is more +than one correct answer, enter a comma +separated list. -[`x=`] [________________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [________________________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_56.pg b/Contrib/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_56.pg index a7bb0c6fd2..2a5c626b07 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_56.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_56.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -46,11 +46,11 @@ $ans=Compute((-$b+sqrt(($b)**2-4*$a*(-$c)))/(2*$a)); # Main text BEGIN_PGML -A falling object travels a distance given by the formula [` d=[$d]`], where [`d`] is measured in feet and [`t`] is measured in seconds. How many seconds will it take for the object to travel [`[$c]`] feet? +A falling object travels a distance given by the formula [` d=[$d]`], where [`d`] is measured in feet and [`t`] is measured in seconds. How many seconds will it take for the object to travel [`[$c]`] feet? [_______________]{$ans} seconds -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_57.pg b/Contrib/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_57.pg index be0d880c47..95672b745f 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_57.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_57.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -45,7 +45,7 @@ $ans=Compute((-54+sqrt(2916-(16*(180-$a))))/8); BEGIN_TEXT $BR $BCENTER -\{ image( "garden.png", width=>250, height=>250, +\{ image( "garden.png", width=>250, height=>250, tex_size=>700, extra_html_tags=>'alt="Square garden with uniform width x all the way around."' ) \} $ECENTER $BR @@ -59,7 +59,7 @@ A vacant lot is being converted into a community garden. The garden and and a w [_______________]{$ans}Feet -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_6.pg b/Contrib/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_6.pg index 059acfafc5..422a4d71fc 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_6.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_6.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -47,11 +47,11 @@ $ans = List( $a, $b ); # Main text BEGIN_PGML -Solve the quadratic equation [`[$f]=0 `] by factoring. If there is more -than one correct answer, enter a comma +Solve the quadratic equation [`[$f]=0 `] by factoring. If there is more +than one correct answer, enter a comma separated list. -[`x=`] [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_________________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_7.pg b/Contrib/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_7.pg index 5bf76ad3b5..b45842e69c 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_7.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_7.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -47,11 +47,11 @@ $ans = List( $a, $b ); # Main text BEGIN_PGML -Solve the quadratic equation [`[$f]=0 `] by factoring. If there is more -than one correct answer, enter a comma +Solve the quadratic equation [`[$f]=0 `] by factoring. If there is more +than one correct answer, enter a comma separated list. -[`x=`] [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_8.pg b/Contrib/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_8.pg index 07676d5812..9b53dcbbcd 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_8.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_8.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -47,11 +47,11 @@ $ans = -1*$a; # Main text BEGIN_PGML -Solve the quadratic equation [`[$f]=0 `] by factoring. If there is more -than one correct answer, enter a comma +Solve the quadratic equation [`[$f]=0 `] by factoring. If there is more +than one correct answer, enter a comma separated list. -[`x=`] [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_37.pg b/Contrib/RRCC/College_Algebra/MAT121/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_37.pg index 72890d5b1f..5867565496 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_37.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_37.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -40,13 +40,13 @@ $b=random(3,6); # Main text BEGIN_PGML -Solve the equation by identifying the quadratic form. Use a substitute variable and find all real solutions by factoring. +Solve the equation by identifying the quadratic form. Use a substitute variable and find all real solutions by factoring. If you find more than one solution, give your answer as a comma-separated list. [`` x^4 - [$a**2 + $b**2] x^2 + [$a**2 * $b**2] = 0 ``] -[`x=`] [_______________]{List($a,-$a,$b,-$b)} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_______________]{List($a,-$a,$b,-$b)} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_38.pg b/Contrib/RRCC/College_Algebra/MAT121/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_38.pg index 38f2cdfa28..3882e9c354 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_38.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_38.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -46,7 +46,7 @@ $neg_c = (-1) * $p * $r; # Value subtracted from t $u = random(1,5); - + # Solutions of quadratic equation with substitution $x1 = -$p/$q; $x2 = -$r/$s; @@ -56,7 +56,7 @@ $ans = List($x1 + $u,$x2 + $u); ########################### # Main text -if ($b == 0) { +if ($b == 0) { # no linear term on LHS BEGIN_PGML @@ -66,7 +66,7 @@ If you find more than one solution, give your answer as a comma-separated list. [` {[$a]} \left( t - {[$u]} \right)^2 = {[$neg_c]} `] -[`t=`] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`t=`] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML @@ -81,7 +81,7 @@ If you find more than one solution, give your answer as a comma-separated list. [` {[$a]} \left( t - {[$u]} \right)^2 + {[$b]} \left( t - {[$u]} \right) = {[$neg_c]} `] -[`t=`] [_______________]{List($ans)} [@ AnswerFormatHelp("numbers") @]* +[`t=`] [_______________]{List($ans)} [@ helpLink("numbers") @]* @@ -101,7 +101,7 @@ Solve the equation by identifying the quadratic form. Use a substitute variable If you find more than one solution, give your answer as a comma-separated list. -[`t=`] [_______________]{List($ans)} [@ AnswerFormatHelp("numbers") @]* +[`t=`] [_______________]{List($ans)} [@ helpLink("numbers") @]* diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_40.pg b/Contrib/RRCC/College_Algebra/MAT121/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_40.pg index 86625bfc80..7532c98203 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_40.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_40.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -55,7 +55,7 @@ If you find more than one solution, give your answer as a comma-separated list. [` \left( x + {[$w]} \right)^2 - {[$b]} \left( x + {[$w]} \right) - {[$c]} = 0 `] -[`x=`] [_______________]{List($x1, $x2)} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_______________]{List($x1, $x2)} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_7.pg b/Contrib/RRCC/College_Algebra/MAT121/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_7.pg index a874a6a091..ea85c53632 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_7.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_7.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -58,7 +58,7 @@ If you find more than one solution, give your answer as a comma-separated list. [` x^{[$b-1]/[$b]} = [$c] `]. -[`x=`] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_9.pg b/Contrib/RRCC/College_Algebra/MAT121/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_9.pg index 66f27b28cb..af80975323 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_9.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_9.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -57,7 +57,7 @@ Solve [` \left( x - [$d] \right)^{[$b-1]/[$b]} = [$c] `]. If you find more than one solution, give your answer as a comma-separated list. -[`x=`] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_______________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_21.pg b/Contrib/RRCC/College_Algebra/MAT121/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_21.pg index 607936e076..47f835cd52 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_21.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_21.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -44,13 +44,13 @@ $ans=Compute($b**2+$a); # Main text BEGIN_PGML -Solve the radical equation. Be sure to check for extraneous solutions. +Solve the radical equation. Be sure to check for extraneous solutions. If you find more than one solution, give your answer as a comma-separated list. [` \sqrt{x-[$a]}=[$b] `]. -[`x=`] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_22.pg b/Contrib/RRCC/College_Algebra/MAT121/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_22.pg index 1e2c78d505..e01a05813c 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_22.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_22.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -33,7 +33,7 @@ $showPartialCorrectAnswers = 1; # Setup #note that $a-$b/2>0 for both solutions to work so forcing that with selection of $a and $b. -$a=random(5,10); +$a=random(5,10); do {$b=random(2,8,2); } until ($a != $b); $c=$b**2/4-$a*$b; @@ -46,13 +46,13 @@ $ans = List($a, $b ); # Main text BEGIN_PGML -Solve the radical equation. Be sure to check for extraneous solutions. +Solve the radical equation. Be sure to check for extraneous solutions. If you find more than one solution, give your answer as a comma-separated list. [` \sqrt{[$f]}=[$g] `]. -[`x=`] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_24.pg b/Contrib/RRCC/College_Algebra/MAT121/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_24.pg index 095043244f..7eb0faa531 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_24.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_24.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -45,13 +45,13 @@ $ans=Compute(($c-$b)**2+$a); # Main text BEGIN_PGML -Solve the radical equation. Be sure to check for extraneous solutions. +Solve the radical equation. Be sure to check for extraneous solutions. If you find more than one solution, give your answer as a comma-separated list. [` \sqrt{x-[$a]}+[$b]=[$c] `]. -[`x= `] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x= `] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_28.pg b/Contrib/RRCC/College_Algebra/MAT121/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_28.pg index f395042f06..4aed6f409e 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_28.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_28.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -37,13 +37,13 @@ $showPartialCorrectAnswers = 1; # Main text BEGIN_PGML -Solve the radical equation. Be sure to check for extraneous solutions. +Solve the radical equation. Be sure to check for extraneous solutions. If you find more than one solution, give your answer as a comma-separated list. [` \sqrt{3x+7}+\sqrt{x+2}=1 `]. -[`x = `] [_______________]{-2} [@ AnswerFormatHelp("numbers") @]* +[`x = `] [_______________]{-2} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_29.pg b/Contrib/RRCC/College_Algebra/MAT121/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_29.pg index 27da232fd8..73be7cef72 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_29.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_29.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -49,7 +49,7 @@ If you find more than one solution, give your answer as a comma-separated list. [` |x-[$a]|=[$b] `]. -[`x= `][_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x= `][_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_31.pg b/Contrib/RRCC/College_Algebra/MAT121/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_31.pg index ec62a69e3e..6e0d226ce9 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_31.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_31.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,7 +50,7 @@ If you find more than one solution, give your answer as a comma-separated list. [` |x-[$a]|-[$b]=[$c] `]. -[`x=`] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_35.pg b/Contrib/RRCC/College_Algebra/MAT121/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_35.pg index a0eddce356..64c7122a6c 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_35.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_35.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -43,14 +43,14 @@ $ans=List($a); # Main text BEGIN_PGML -Solve the equation involving absolute value. +Solve the equation involving absolute value. If you find more than one solution, give your answer as a comma-separated list. [` |x-[$a]|=0 `]. -[`x=`] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.6/checking_fraction_answers.pg b/Contrib/RRCC/College_Algebra/MAT121/2.6/checking_fraction_answers.pg index 32b15cd1d3..c1d0d400af 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.6/checking_fraction_answers.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.6/checking_fraction_answers.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -47,8 +47,8 @@ $neg_c = (-1) * $q * $s; # Coefficient subtracted from t $u = non_zero_random(1,5); - -# Solutions + +# Solutions Context("LimitedFraction"); $x1 = Compute("1/2"); $x2 = Compute("-1/2"); @@ -56,12 +56,12 @@ $x2 = Compute("-1/2"); ########################### # Main text -if ($b == 0) { +if ($b == 0) { # no linear term on LHS BEGIN_PGML Solve [` {[$a]} \left( t - {[$u]} \right)^2 = {[$neg_c]} `]. Begin by using a substitution to simplify the equation. - [_______________]{List($x1,$x2)} [@ AnswerFormatHelp("numbers") @]* + [_______________]{List($x1,$x2)} [@ helpLink("numbers") @]* For more questions like this, go to section 2.6 numbers 37-41. @@ -71,7 +71,7 @@ END_PGML BEGIN_PGML Solve [` {[$a]} \left( t - {[$u]} \right)^2 + {[$b]} \left( t - {[$u]} \right) = {[$neg_c]} `]. Begin by using a substitution to simplify the equation. - [_______________]{List(-1,1,-3,3)} [@ AnswerFormatHelp("numbers") @]* + [_______________]{List(-1,1,-3,3)} [@ helpLink("numbers") @]* For more questions like this, go to section 2.6 numbers 37-41. @@ -83,7 +83,7 @@ $b = -$b; BEGIN_PGML Solve [` {[$a]} \left( t - {[$u]} \right)^2 - {[$b]} \left( t - {[$u]} \right) = {[$neg_c]} `]. Begin by using a substitution to simplify the equation. - [_______________]{List(1/2,-1/2)} [@ AnswerFormatHelp("numbers") @]* + [_______________]{List(1/2,-1/2)} [@ helpLink("numbers") @]* For more questions like this, go to section 2.6 numbers 37-41. diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_10.pg b/Contrib/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_10.pg index efab6aa271..1335db3eee 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_10.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_10.pg @@ -11,7 +11,7 @@ ## Author(James Morski) ## MO(1) ## KEYWORDS('college algebra', 'linear inequality') - + ############################################## DOCUMENT(); @@ -20,7 +20,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "contextInequalitySetBuilder.pl", "parserOneOf.pl", @@ -53,11 +53,11 @@ TEXT(beginproblem()); BEGIN_PGML -Solve the following inequality for [`x`]. Enter your answer in interval notation. +Solve the following inequality for [`x`]. Enter your answer in interval notation. [`-\dfrac{[$a]}{2}x \leq - \dfrac{[$c]}{[$d]}+\dfrac{[$e]}{8}x `] -[_______________]{$intans} [@ AnswerFormatHelp("intervals") @]* +[_______________]{$intans} [@ helpLink("intervals") @]* diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_11.pg b/Contrib/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_11.pg index 99af39e536..286a842964 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_11.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_11.pg @@ -11,7 +11,7 @@ ## Author(James Morski) ## MO(1) ## KEYWORDS('college algebra', 'linear inequality') - + ############################################## DOCUMENT(); @@ -20,7 +20,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "contextInequalitySetBuilder.pl", "parserOneOf.pl", @@ -51,11 +51,11 @@ TEXT(beginproblem()); BEGIN_PGML -Solve the following inequality for [`x`]. Enter your answer in interval notation. +Solve the following inequality for [`x`]. Enter your answer in interval notation. [`[$a](x+[$b])+[$c] > [$d]x+[$e]+[$f]x`] -[_______________]{$intans} [@ AnswerFormatHelp("intervals") @]* +[_______________]{$intans} [@ helpLink("intervals") @]* END_PGML ############################ diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_15.pg b/Contrib/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_15.pg index fb0dc503b8..4dda8267d7 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_15.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_15.pg @@ -20,7 +20,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "contextInequalitySetBuilder.pl", "parserOneOf.pl", @@ -47,11 +47,11 @@ TEXT(beginproblem()); BEGIN_PGML -Solve the following inequality involving absolute value. Enter the answer in interval notation. +Solve the following inequality involving absolute value. Enter the answer in interval notation. [`[$f] > [$b] `] -[____________________]{$intans} [@ AnswerFormatHelp("intervals") @]* +[____________________]{$intans} [@ helpLink("intervals") @]* diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_17.pg b/Contrib/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_17.pg index 381795ccd4..52f4dedd47 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_17.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_17.pg @@ -11,7 +11,7 @@ ## Author(James Morski) ## MO(1) ## KEYWORDS('college algebra', 'absolute value linear inequality') - + ############################################## DOCUMENT(); @@ -21,7 +21,7 @@ loadMacros( "MathObjects.pl", "PGML.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "contextInequalitySetBuilder.pl", "parserOneOf.pl", "PGcourse.pl", @@ -52,11 +52,11 @@ TEXT(beginproblem()); BEGIN_PGML -Solve the following inequality involving absolute value. Enter your answer in interval notation. +Solve the following inequality involving absolute value. Enter your answer in interval notation. [` [$f]> [$c]`] -[_______________]{$intans} [@ AnswerFormatHelp("intervals") @]* +[_______________]{$intans} [@ helpLink("intervals") @]* diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_19.pg b/Contrib/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_19.pg index a00336476e..b42619d998 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_19.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_19.pg @@ -11,7 +11,7 @@ ## Author(James Morski) ## MO(1) ## KEYWORDS('college algebra', 'absolute value linear inequality') - + ############################################## DOCUMENT(); @@ -21,7 +21,7 @@ loadMacros( "MathObjects.pl", "PGML.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "contextInequalitySetBuilder.pl", "parserOneOf.pl", "PGcourse.pl", @@ -50,11 +50,11 @@ TEXT(beginproblem()); BEGIN_PGML -Solve the following inequality involving absolute value. Enter your answer in interval notation. +Solve the following inequality involving absolute value. Enter your answer in interval notation. [` [$f] + [$c] > [$d] `] - -[_______________]{$intans}[@ AnswerFormatHelp("intervals") @]* + +[_______________]{$intans}[@ helpLink("intervals") @]* diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_21.pg b/Contrib/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_21.pg index 7e85912c58..157f7491e6 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_21.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_21.pg @@ -11,7 +11,7 @@ ## Author(James Morski) ## MO(1) ## KEYWORDS('college algebra', 'absolute value linear inequality') - + ############################################## DOCUMENT(); @@ -19,7 +19,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "contextInequalitySetBuilder.pl", @@ -49,11 +49,11 @@ TEXT(beginproblem()); BEGIN_PGML -Solve the following inequality involving absolute value. Enter your answer in interval notation. +Solve the following inequality involving absolute value. Enter your answer in interval notation. [` [$f] \geq [$d] `] -[_______________]{$intans} [@ AnswerFormatHelp("intervals") @]* +[_______________]{$intans} [@ helpLink("intervals") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_28.pg b/Contrib/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_28.pg index 9ee492ea22..933fb9f4a8 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_28.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_28.pg @@ -11,7 +11,7 @@ ## Author(James Morski) ## MO(1) ## KEYWORDS('college algebra', 'compound linear inequality') - + ############################################## DOCUMENT(); @@ -19,7 +19,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "contextInequalities.pl", "contextFraction.pl", @@ -56,7 +56,7 @@ Solve the following inequality for [`x`]. Enter your answer in interval notatio [` [$a]<[$b]x+[$c] \leq [$d]`] -[_______________]{$intans} [@ AnswerFormatHelp("intervals") @]* +[_______________]{$intans} [@ helpLink("intervals") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_6.pg b/Contrib/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_6.pg index 09aa8be9bc..e1816f8abb 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_6.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_6.pg @@ -11,7 +11,7 @@ ## Author(James Morski) ## MO(1) ## KEYWORDS('college algebra', 'linear inequality') - + ############################################## DOCUMENT(); @@ -22,7 +22,7 @@ loadMacros( "PGML.pl", "contextFraction.pl", "contextInequalitySetBuilder.pl", -"AnswerFormatHelp.pl", + "parserOneOf.pl", "PGcourse.pl", ); @@ -53,11 +53,11 @@ TEXT(beginproblem()); BEGIN_PGML -Solve the following inequality for [`x`]. Enter your answer in interval notation. +Solve the following inequality for [`x`]. Enter your answer in interval notation. [` [$a]x-[$b] \leq [$c]`] -[_______________]{$intans} [@ AnswerFormatHelp("intervals") @]* +[_______________]{$intans} [@ helpLink("intervals") @]* diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_7.pg b/Contrib/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_7.pg index a21531d590..54874709ce 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_7.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_7.pg @@ -11,7 +11,7 @@ ## Author(James Morski) ## MO(1) ## KEYWORDS('college algebra', 'linear inequality') - + ############################################## DOCUMENT(); @@ -21,7 +21,7 @@ loadMacros( "MathObjects.pl", "PGML.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "contextInequalitySetBuilder.pl", "parserOneOf.pl", "PGcourse.pl", @@ -53,13 +53,13 @@ TEXT(beginproblem()); BEGIN_PGML -Solve the following inequality for [`x`]. Enter your answer in interval notation. +Solve the following inequality for [`x`]. Enter your answer in interval notation. [` [$a]x+[$b] \geq [$c]x-[$d]`] -[_______________]{$intans} [@ AnswerFormatHelp("intervals") @]* +[_______________]{$intans} [@ helpLink("intervals") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_2_7_440.pg b/Contrib/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_2_7_440.pg index a068b60786..9af608ba64 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_2_7_440.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_2_7_440.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -56,7 +56,7 @@ Solve the absolute value equation. If there is more than one correct answer, en [`|[$a]y-[$b]|+[$c]=[$d]`] -[`y =`] [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`y =`] [_________________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_2_7_442.pg b/Contrib/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_2_7_442.pg index cf81b5a813..d7b740368d 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_2_7_442.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_2_7_442.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -56,7 +56,7 @@ Solve the absolute value equation. If there is more than one correct answer, en [`2\mid x+[$b]\mid-[$c]=[$d]`] -[`x =`] [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x =`] [_________________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_2_7_443.pg b/Contrib/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_2_7_443.pg index 58c9fcddad..edf8af729c 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_2_7_443.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_2_7_443.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -53,7 +53,7 @@ Solve the absolute value equation. If there is more than one correct answer, en [`3|x+[$a]|+[$c]=[$d]`] -[`x =`][_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x =`][_________________]{$ans} [@ helpLink("numbers") @]* diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_2_7_447.pg b/Contrib/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_2_7_447.pg index 93795e5ead..978e4e1873 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_2_7_447.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_2_7_447.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -55,7 +55,7 @@ Solve the absolute value equation. If there is more than one correct answer, en [`[$a]|[$b]+z|+[$c]=[$d]`] -[`z=`] [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`z=`] [_________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_2_7_449.pg b/Contrib/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_2_7_449.pg index 6990b0d4db..dff818c06f 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_2_7_449.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_2_7_449.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -53,7 +53,7 @@ Solve the absolute value equation. If there is more than one correct answer, en [`\left|\dfrac{[$a]}{[$b]}t-[$c]\right|+[$d]=[$e]`] -[`t =`][_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`t =`][_________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_15.pg b/Contrib/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_15.pg index ca5da475dd..fb5e89c592 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_15.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_15.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserPopUp.pl", "parserImplicitEquation.pl", "PGML.pl", @@ -88,9 +88,9 @@ BEGIN_PGML Do the following relations represent [`y`] as a function of [`x`]? -+ [`` y=[$f1] ``] [___________]{$popup1} ++ [`` y=[$f1] ``] [___________]{$popup1} -+ [`` y=[$f2]``] [___________]{$popup2} ++ [`` y=[$f2]``] [___________]{$popup2} + [`` x=[$f3]``] [___________]{$popup3} diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_27.pg b/Contrib/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_27.pg index 932bf6f4a9..2eedd308b4 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_27.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_27.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -61,17 +61,17 @@ $ans6=Compute("-$b*a-$c"); BEGIN_PGML Evaluate [`f(x)=[$f]`] at the following values: -+ [`f([$d])=`] [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* ++ [`f([$d])=`] [_______________]{$ans1} [@ helpLink("numbers") @]* -+ [`f([$e])=`] [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* ++ [`f([$e])=`] [_______________]{$ans2} [@ helpLink("numbers") @]* -+ [`f(a)=`] [_______________]{$ans3} [@ AnswerFormatHelp("formulas") @]* ++ [`f(a)=`] [_______________]{$ans3} [@ helpLink("formulas") @]* -+ [`f(a+h)=`] [_______________]{$ans4} [@ AnswerFormatHelp("formulas") @]* ++ [`f(a+h)=`] [_______________]{$ans4} [@ helpLink("formulas") @]* -+ [`f(-a)=`] [_______________]{$ans5} [@ AnswerFormatHelp("formulas") @]* ++ [`f(-a)=`] [_______________]{$ans5} [@ helpLink("formulas") @]* -+ [`-f(a)=`] [_______________]{$ans6} [@ AnswerFormatHelp("formulas") @]* ++ [`-f(a)=`] [_______________]{$ans6} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_28.pg b/Contrib/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_28.pg index 1500648276..334f869eb2 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_28.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_28.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -61,17 +61,17 @@ $ans6=Formula("-$g*(a)**2-$b*(a)-$c")->reduce; BEGIN_PGML Evaluate [`f(x)=[$f]`] at the following values: -+ [`f([$d])=`] [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* ++ [`f([$d])=`] [_______________]{$ans1} [@ helpLink("numbers") @]* -+ [`f([$e])=`] [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* ++ [`f([$e])=`] [_______________]{$ans2} [@ helpLink("numbers") @]* -+ [`f(a)=`] [_______________]{$ans3} [@ AnswerFormatHelp("formulas") @]* ++ [`f(a)=`] [_______________]{$ans3} [@ helpLink("formulas") @]* -+ [`f(a+h)=`] [________________________________]{$ans4} [@ AnswerFormatHelp("formulas") @]* ++ [`f(a+h)=`] [________________________________]{$ans4} [@ helpLink("formulas") @]* -+ [`f(-a)=`] [_______________]{$ans5} [@ AnswerFormatHelp("formulas") @]* ++ [`f(-a)=`] [_______________]{$ans5} [@ helpLink("formulas") @]* -+ [`-f(a)=`] [_______________]{$ans6} [@ AnswerFormatHelp("formulas") @]* ++ [`-f(a)=`] [_______________]{$ans6} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_29.pg b/Contrib/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_29.pg index d96753318e..9b9605f6f5 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_29.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_29.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -57,17 +57,17 @@ $ans6=Formula("-sqrt($b - a) - $c")->reduce; BEGIN_PGML Evaluate [`f(x)=[$f]`] at the following values: -+ [`f([$d])=`] [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* ++ [`f([$d])=`] [_______________]{$ans1} [@ helpLink("numbers") @]* -+ [`f([$b])=`] [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* ++ [`f([$b])=`] [_______________]{$ans2} [@ helpLink("numbers") @]* -+ [`f(a)=`] [_______________]{$ans3} [@ AnswerFormatHelp("formulas") @]* ++ [`f(a)=`] [_______________]{$ans3} [@ helpLink("formulas") @]* -+ [`f(a+h)=`] [_______________]{$ans4} [@ AnswerFormatHelp("formulas") @]* ++ [`f(a+h)=`] [_______________]{$ans4} [@ helpLink("formulas") @]* -+ [`f(-a)=`] [_______________]{$ans5} [@ AnswerFormatHelp("formulas") @]* ++ [`f(-a)=`] [_______________]{$ans5} [@ helpLink("formulas") @]* -+ [`-f(a)=`] [_______________]{$ans6} [@ AnswerFormatHelp("formulas") @]* ++ [`-f(a)=`] [_______________]{$ans6} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_30.pg b/Contrib/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_30.pg index 9d911f9fa8..2e9475513b 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_30.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_30.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -63,17 +63,17 @@ $ans6=Formula("-($b*a+$c)/($d*a+$e)")->reduce; BEGIN_PGML Evaluate [``f(x)=[$f]``] at the following values: -+ [`f([$m])=`] [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* ++ [`f([$m])=`] [_______________]{$ans1} [@ helpLink("numbers") @]* -+ [`f([$n])=`] [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* ++ [`f([$n])=`] [_______________]{$ans2} [@ helpLink("numbers") @]* -+ [`f(a)=`] [_______________]{$ans3} [@ AnswerFormatHelp("formulas") @]* ++ [`f(a)=`] [_______________]{$ans3} [@ helpLink("formulas") @]* -+ [`f(a+h)=`] [_______________]{$ans4} [@ AnswerFormatHelp("formulas") @]* ++ [`f(a+h)=`] [_______________]{$ans4} [@ helpLink("formulas") @]* -+ [`f(-a)=`] [_______________]{$ans5} [@ AnswerFormatHelp("formulas") @]* ++ [`f(-a)=`] [_______________]{$ans5} [@ helpLink("formulas") @]* -+ [`-f(a)=`] [_______________]{$ans6} [@ AnswerFormatHelp("formulas") @]* ++ [`-f(a)=`] [_______________]{$ans6} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_31.pg b/Contrib/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_31.pg index f3a8e4321b..3a6d6a0925 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_31.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_31.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -58,17 +58,17 @@ $ans6=Formula("-abs(a - $b) + abs(a + $c)")->reduce; BEGIN_PGML Evaluate [`f(x)=[$f]`] at the following values: -+ [`f([$d])=`] [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* ++ [`f([$d])=`] [_______________]{$ans1} [@ helpLink("numbers") @]* -+ [`f([$e])=`] [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* ++ [`f([$e])=`] [_______________]{$ans2} [@ helpLink("numbers") @]* -+ [`f(a)=`] [_______________]{$ans3} [@ AnswerFormatHelp("formulas") @]* ++ [`f(a)=`] [_______________]{$ans3} [@ helpLink("formulas") @]* -+ [`f(a+h)=`] [_______________]{$ans4} [@ AnswerFormatHelp("formulas") @]* ++ [`f(a+h)=`] [_______________]{$ans4} [@ helpLink("formulas") @]* -+ [`f(-a)=`] [_______________]{$ans5} [@ AnswerFormatHelp("formulas") @]* ++ [`f(-a)=`] [_______________]{$ans5} [@ helpLink("formulas") @]* -+ [`-f(a)=`] [_______________]{$ans6} [@ AnswerFormatHelp("formulas") @]* ++ [`-f(a)=`] [_______________]{$ans6} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_35.pg b/Contrib/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_35.pg index e80d224784..94a2ef5f05 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_35.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_35.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -55,10 +55,10 @@ $ans2 = $g; BEGIN_PGML Let [` f(x) = [$f] `]. -+ Evaluate [`f([$c])=`] [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* ++ Evaluate [`f([$c])=`] [_______________]{$ans1} [@ helpLink("numbers") @]* -+ Solve [`f(x)=[$d]`]. -[`x=`] [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* ++ Solve [`f(x)=[$d]`]. +[`x=`] [_______________]{$ans2} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_37.pg b/Contrib/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_37.pg index b37ca85a1d..51d6b7e290 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_37.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_37.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,10 +51,10 @@ $ans2=List(-$b/2); BEGIN_PGML Let [` f(x) = [$f] `]. -+ Evaluate [`f([$c])=`] [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* ++ Evaluate [`f([$c])=`] [_______________]{$ans1} [@ helpLink("numbers") @]* -+ Solve [`f(x)=[$d]`]. -[`x=`][_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* ++ Solve [`f(x)=[$d]`]. +[`x=`][_______________]{$ans2} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_41.pg b/Contrib/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_41.pg index 7956ea889e..4987cbb2ca 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_41.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_41.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserPopUp.pl", "PGML.pl", @@ -70,7 +70,7 @@ Use the vertical line test to determine whether the following graph shows a rela $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>300,height=>300,tex_size=>800 ) \} $BR (Click on graph to enlarge) @@ -82,7 +82,7 @@ Context()->normalStrings; BEGIN_PGML -[___________]{$popup} +[___________]{$popup} END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_43.pg b/Contrib/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_43.pg index a7a1e2a992..ccf8f71e58 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_43.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_43.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserPopUp.pl", "PGML.pl", @@ -52,7 +52,7 @@ $gr->lb( new Label(-.25,5.75,'y', $gr->lb( new Label(5.75,0.25,'x', 'red','center','middle')); -$refreshCachedImages = 1; +$refreshCachedImages = 1; Context("Interval"); $ans1=Interval("(-infinity,infinity)"); @@ -73,7 +73,7 @@ Use the vertical line test to determine whether the following graph shows a rela $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>300,height=>300,tex_size=>800 ) \} $BR (Click on graph to enlarge) @@ -85,7 +85,7 @@ Context()->normalStrings; BEGIN_PGML -[___________]{$popup} +[___________]{$popup} END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_45.pg b/Contrib/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_45.pg index c2e7a18e2d..798201e6f5 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_45.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_45.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserPopUp.pl", "PGML.pl", @@ -72,7 +72,7 @@ Use the vertical line test to determine whether the following graph shows a rela $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>300,height=>300,tex_size=>800 ) \} $BR (Click on graph to enlarge) @@ -84,7 +84,7 @@ Context()->normalStrings; BEGIN_PGML -[___________]{$popup} +[___________]{$popup} END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_47.pg b/Contrib/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_47.pg index b965121330..9c0a7d4953 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_47.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_47.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserPopUp.pl", "PGML.pl", @@ -72,7 +72,7 @@ Use the vertical line test to determine whether the following graph shows a rela $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>300,height=>300,tex_size=>800 ) \} $BR (Click on graph to enlarge) @@ -84,7 +84,7 @@ Context()->normalStrings; BEGIN_PGML -[___________]{$popup} +[___________]{$popup} END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_53.pg b/Contrib/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_53.pg index e00709b785..f78b1555c7 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_53.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_53.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserPopUp.pl", "PGML.pl", @@ -72,7 +72,7 @@ BEGIN_TEXT $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>400,height=>400,tex_size=>800 ) \} $BR (Click on graph to enlarge) @@ -85,13 +85,13 @@ Context()->normalStrings; BEGIN_PGML Evaluate [`f(0)`], and solve for [`f(x) = [$min]`]. If part b has more than one answer, input the larger number in the second field. Otherwise leave the second field blank. -(a) [`f(0) = `] [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +(a) [`f(0) = `] [_______________]{$ans1} [@ helpLink("numbers") @]* -(b) [`f(`] [_]{$ans2} [`) = [$min]`] [@ AnswerFormatHelp("numbers") @]* +(b) [`f(`] [_]{$ans2} [`) = [$min]`] [@ helpLink("numbers") @]* -[`f(`] [_]{$ans3} [`) = [$min]`] [@ AnswerFormatHelp("numbers") @]* +[`f(`] [_]{$ans3} [`) = [$min]`] [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_63.pg b/Contrib/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_63.pg index 1ea7f16a84..51fc2fe9b3 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_63.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_63.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserPopUp.pl", "niceTables.pl", "PGML.pl", @@ -61,7 +61,7 @@ LayoutTable( [ ['\(x\)' , '$x1' ,'$x2', '$x3'], ['\(y\)' , '$y1' ,'$y2', '$y3'], - ], + ], midrules => 1, align => '| c | c | c | c |', center => 0, @@ -76,7 +76,7 @@ BEGIN_PGML Does the relation represented in table form above represent [`y`] as a function of [`x`]? - [___________]{$popup} + [___________]{$popup} END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_65.pg b/Contrib/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_65.pg index f9abf9eade..90fc20ea22 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_65.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_65.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserPopUp.pl", "niceTables.pl", "PGML.pl", @@ -61,7 +61,7 @@ LayoutTable( [ ['\(x\)' , '$x1' ,'$x2', '$x3'], ['\(y\)' , '$y1' ,'$y2', '$y3'], - ], + ], midrules => 1, align => '| c | c | c | c |', center => 0, @@ -76,7 +76,7 @@ BEGIN_PGML Does the relation represented in table form above represent [`y`] as a function of [`x`]? -[___________]{$popup} +[___________]{$popup} END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_66.pg b/Contrib/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_66.pg index 7a1f08fc79..25ad11bf49 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_66.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_66.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserPopUp.pl", "niceTables.pl", "PGML.pl", @@ -69,7 +69,7 @@ LayoutTable( [ ['\(x\)' , '0', '1' ,'2' ,'3' ,'4' ,'5' ,'6','7','8','9'], ['\(y\)' , '$y0', $y1 ,$y2 ,$y3 ,$y4 ,$y5 ,$y6, $y7, $y8, $y9], - ], + ], midrules => 1, align => '| c | c | c | c | c | c | c | c | c | c | c |', center => 0, @@ -84,9 +84,9 @@ BEGIN_PGML Evaluate [`f([$ax])`], and solve for [`f(x) = [$by]`]: -+ [`f([$ax]) = `] [_____]{$ay} [@ AnswerFormatHelp("numbers") @]* ++ [`f([$ax]) = `] [_____]{$ay} [@ helpLink("numbers") @]* -+ The [`x`] value such that [`f(x) = [$by]`] is [`x=`] [_____]{$bx} [@ AnswerFormatHelp("numbers") @]* ++ The [`x`] value such that [`f(x) = [$by]`] is [`x=`] [_____]{$bx} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_7.pg b/Contrib/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_7.pg index d7c77d8da4..f00351500a 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_7.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_7.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserPopUp.pl", "parserImplicitEquation.pl", "PGML.pl", @@ -77,9 +77,9 @@ BEGIN_PGML Does each of the following relations represent a function? -+ [` \{([$i1],[$d1]),([$i2],[$d2]),([$i3],[$d3])\} `] [___________]{$popup1} ++ [` \{([$i1],[$d1]),([$i2],[$d2]),([$i3],[$d3])\} `] [___________]{$popup1} -+ [` \{([$ck1],[$cf1]),([$ck2],[$cf2]),([$ck3],[$cf3])\} `] [___________]{$popup1} ++ [` \{([$ck1],[$cf1]),([$ck2],[$cf2]),([$ck3],[$cf3])\} `] [___________]{$popup1} END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_71.pg b/Contrib/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_71.pg index 03eac6162f..e166c1e0a4 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_71.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_71.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -53,15 +53,15 @@ $ans5=$f->eval(x=>$g); BEGIN_PGML Evaluate [`f(x)=[$f]`] at the following values: -+ [`f([$b])=`] [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* ++ [`f([$b])=`] [_______________]{$ans1} [@ helpLink("numbers") @]* -+ [`f([$c])=`] [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* ++ [`f([$c])=`] [_______________]{$ans2} [@ helpLink("numbers") @]* -+ [`f([$d])=`] [_______________]{$ans3} [@ AnswerFormatHelp("numbers") @]* ++ [`f([$d])=`] [_______________]{$ans3} [@ helpLink("numbers") @]* -+ [`f([$e])=`] [_______________]{$ans4} [@ AnswerFormatHelp("numbers") @]* ++ [`f([$e])=`] [_______________]{$ans4} [@ helpLink("numbers") @]* -+ [`f([$g])=`] [_______________]{$ans5} [@ AnswerFormatHelp("numbers") @]* ++ [`f([$g])=`] [_______________]{$ans5} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_75.pg b/Contrib/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_75.pg index 5491b35ead..f00534056a 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_75.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_75.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -55,9 +55,9 @@ $ans1=Formula("$ansf - $ansh")->reduce; # Main text BEGIN_PGML -Given the functions [`f(x)=[$f]`] and [`h(x)=[$h]`], evaluate the expression: +Given the functions [`f(x)=[$f]`] and [`h(x)=[$h]`], evaluate the expression: -[`f(7/[$i])-h([$j])=`] [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +[`f(7/[$i])-h([$j])=`] [_______________]{$ans1} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_9.pg b/Contrib/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_9.pg index acf522102d..680762b395 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_9.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_9.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserPopUp.pl", "parserImplicitEquation.pl", "PGML.pl", @@ -91,9 +91,9 @@ BEGIN_PGML Do the following relations represent [`y`] as a function of [`x`]? -+ [` y=[$f1] `] [___________]{$popup1} ++ [` y=[$f1] `] [___________]{$popup1} -+ [`[$f2]+y=[$c]`] [___________]{$popup2} ++ [`[$f2]+y=[$c]`] [___________]{$popup2} + [`[$f3]+[$f32]=[$e]`] [___________]{$popup3} diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_10.pg b/Contrib/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_10.pg index abbb125522..f6415c53b0 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_10.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_10.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,7 +50,7 @@ BEGIN_PGML Find the domain of [` f(x)=[$f] `]. Enter your solution in interval notation. -[_______________]{$ans} [@ AnswerFormatHelp("intervals") @]* +[_______________]{$ans} [@ helpLink("intervals") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_15.pg b/Contrib/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_15.pg index 26dbc6726b..17fcb720ad 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_15.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_15.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -52,7 +52,7 @@ BEGIN_PGML Find the domain of [`` f(x)=[$f] ``]. Enter your solution in interval notation. -[_______________]{$ans} [@ AnswerFormatHelp("intervals") @]* +[_______________]{$ans} [@ helpLink("intervals") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_17.pg b/Contrib/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_17.pg index 4f65ab8726..bd3a4037b0 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_17.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_17.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,7 +50,7 @@ BEGIN_PGML Find the domain of [`` f(x)=[$f] ``]. Enter your solution in interval notation. -[_______________________]{$ans} [@ AnswerFormatHelp("intervals") @]* +[_______________________]{$ans} [@ helpLink("intervals") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_27.pg b/Contrib/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_27.pg index d24d6a5ee0..61d7b2589f 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_27.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_27.pg @@ -23,7 +23,7 @@ loadMacros( "PGnumericalmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -60,18 +60,18 @@ Find the domain and range of \( y=f(x) \) whose graph is given below. $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>300,height=>300,tex_size=>800 ) \} $BR (Click on graph to enlarge) $BR $BR Domain: \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR $BR Range: \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR $BR $ECENTER diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_31.pg b/Contrib/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_31.pg index 82e24f77aa..e0c8fef62b 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_31.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_31.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -62,22 +62,22 @@ $ans2=Interval("[-$a,1/$c*($e-$b)**2-$a]"); Context()->texStrings; BEGIN_TEXT $BR -Find the domain and range of \( y=f(x) \) whose graph is given below. +Find the domain and range of \( y=f(x) \) whose graph is given below. $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>300,height=>300,tex_size=>800 ) \} $BR (Click on graph to enlarge) $BR $BR Domain: \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR $BR Range: \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR $BR $ECENTER diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_32.pg b/Contrib/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_32.pg index 14b2f6a7ba..489b33af1d 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_32.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_32.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -63,18 +63,18 @@ Find the domain and range of \( y=f(x) \) whose graph is given below. $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>300,height=>300,tex_size=>800 ) \} $BR (Click on graph to enlarge) $BR $BR Domain: \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR $BR Range: \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR $BR $ECENTER diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_33.pg b/Contrib/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_33.pg index 94e606810d..905e6b66c4 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_33.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_33.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -32,10 +32,10 @@ TEXT(beginproblem()); ########################### # Setup -$a=random(2,5); -$b=non_zero_random(0,5); +$a=random(2,5); +$b=non_zero_random(0,5); + - $gr = init_graph(-6,-6,6,6, axes=>[0,0], grid=>[12,12], @@ -65,7 +65,7 @@ Find the domain and range of the transformed square root function whose graph is $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>300,height=>300,tex_size=>800 ) \} $BR (Click on graph to enlarge) @@ -73,11 +73,11 @@ $BR $BR $BR Domain: \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR $BR Range: \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR $BR $ECENTER diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_39.pg b/Contrib/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_39.pg index e1154e3773..0748c508f6 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_39.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_39.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "contextPiecewiseFunction.pl", @@ -46,7 +46,7 @@ $range = "(-infinity, -$d]U($f,infinity)"; Context("PiecewiseFunction"); Context()->noreduce("(-x)-y"); -$fun = PiecewiseFunction("$c*x-$d if x <= 0 else $e*x+$f if x > 0")->reduce; +$fun = PiecewiseFunction("$c*x-$d if x <= 0 else $e*x+$f if x > 0")->reduce; @@ -56,13 +56,13 @@ $fun = PiecewiseFunction("$c*x-$d if x <= 0 else $e*x+$f if x > 0")->reduce; BEGIN_PGML -Graph the piecewise function to find the domain and range +Graph the piecewise function to find the domain and range [` f(x)=[$fun] `]. - Domain: [_________________]{$domain} [@ AnswerFormatHelp("intervals") @]* + Domain: [_________________]{$domain} [@ helpLink("intervals") @]* - Range: [_________________]{$range} [@ AnswerFormatHelp("intervals") @]* + Range: [_________________]{$range} [@ helpLink("intervals") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_41.pg b/Contrib/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_41.pg index 3cd68dcf3a..cdfe5f6111 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_41.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_41.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "contextPiecewiseFunction.pl", "PGML.pl", @@ -45,7 +45,7 @@ $range = Interval("[0,infinity)"); Context("PiecewiseFunction"); Context()->noreduce("(-x)-y"); -$fun = PiecewiseFunction("$d if x < -$a else x**2 if x >= -$a")->reduce; +$fun = PiecewiseFunction("$d if x < -$a else x**2 if x >= -$a")->reduce; ############################################## @@ -57,9 +57,9 @@ Graph the function to find the domain and range. [` f(x)=[$fun] `]. - Domain: [_________________]{$domain} [@ AnswerFormatHelp("intervals") @]* + Domain: [_________________]{$domain} [@ helpLink("intervals") @]* - Range: [_________________]{$range} [@ AnswerFormatHelp("intervals") @]* + Range: [_________________]{$range} [@ helpLink("intervals") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_44.pg b/Contrib/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_44.pg index f5f47eaf65..d82745ad96 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_44.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_44.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -50,7 +50,7 @@ $domain = Interval("(-infinity,infinity)"); if ($d+$a*$c > $f-$a*$e) { $range = Interval("(-infinity, $d+$a*$c)"); -} else { +} else { $range = Interval("(-infinity, $f-$a*$e]"); } @@ -65,7 +65,7 @@ $BR Graph the piecewise function to find its domain and range. $max $BR \[ -f(x) = +f(x) = \left\lbrace \begin{array}{lcl} $f1, && \mbox{ if } x < $a, \\ @@ -81,10 +81,10 @@ $BR $BR Domain: \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR Range: \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_45.pg b/Contrib/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_45.pg index 598855e6b9..e98fc0c713 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_45.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_45.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "contextPiecewiseFunction.pl", "PGML.pl", @@ -53,20 +53,20 @@ $range = Interval("(-infinity, -$d-$c*$b)U(sqrt($a),infinity)"); Context("PiecewiseFunction"); Context()->noreduce("(-x)-y"); -$fun = PiecewiseFunction("$c*x-$d if x < -$b else sqrt(x) if x > $a")->reduce; +$fun = PiecewiseFunction("$c*x-$d if x < -$b else sqrt(x) if x > $a")->reduce; ############################################## # Main text BEGIN_PGML -Graph the piecewise function to find its domain and range. +Graph the piecewise function to find its domain and range. [` f(x)=[$fun] `]. - Domain: [_________________]{$domain} [@ AnswerFormatHelp("intervals") @]* + Domain: [_________________]{$domain} [@ helpLink("intervals") @]* - Range: [_________________]{$range} [@ AnswerFormatHelp("intervals") @]* + Range: [_________________]{$range} [@ helpLink("intervals") @]* diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_47.pg b/Contrib/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_47.pg index 0299da5848..011a5971a8 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_47.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_47.pg @@ -17,7 +17,7 @@ # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PG.pl", @@ -28,7 +28,7 @@ loadMacros( "PGgraphmacros.pl", "extraAnswerEvaluators.pl", "contextPiecewiseFunction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,7 +48,7 @@ Context()->noreduce("(-x)-y"); $f1=Formula("$a"); $f2=Formula("$b"); -$fun = PiecewiseFunction("$f1 if x < 0 else $f2 if x >= 0")->reduce; +$fun = PiecewiseFunction("$f1 if x < 0 else $f2 if x >= 0")->reduce; Context("Numeric"); @@ -59,13 +59,13 @@ Given the piecewise function, find the function values. [` f(x)=[$fun] `]. - [`f([$c])=`] [_________________]{if ($c<0) {$f1->eval(x=>$c)} else{$f2->eval(x=>$c)}} [@ AnswerFormatHelp("numbers") @]* + [`f([$c])=`] [_________________]{if ($c<0) {$f1->eval(x=>$c)} else{$f2->eval(x=>$c)}} [@ helpLink("numbers") @]* - [`f(0)=`] [_________________]{if (0<0) {$f1->eval(x=>0)} else{$f2->eval(x=>0)}}[@ AnswerFormatHelp("numbers") @]* + [`f(0)=`] [_________________]{if (0<0) {$f1->eval(x=>0)} else{$f2->eval(x=>0)}}[@ helpLink("numbers") @]* - [`f([$d])=`] [_________________]{if ($d<0) {$f1->eval(x=>$d)} else{$f2->eval(x=>$d)}} [@ AnswerFormatHelp("numbers") @]* + [`f([$d])=`] [_________________]{if ($d<0) {$f1->eval(x=>$d)} else{$f2->eval(x=>$d)}} [@ helpLink("numbers") @]* - [`f([$e])=`] [_________________]{if ($e<0) {$f1->eval(x=>$e)} else{$f2->eval(x=>$e)}} [@ AnswerFormatHelp("numbers") @]* + [`f([$e])=`] [_________________]{if ($e<0) {$f1->eval(x=>$e)} else{$f2->eval(x=>$e)}} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_49.pg b/Contrib/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_49.pg index dade77da91..e24ed48a50 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_49.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_49.pg @@ -17,7 +17,7 @@ # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PG.pl", @@ -28,7 +28,7 @@ loadMacros( "PGgraphmacros.pl", "extraAnswerEvaluators.pl", "contextPiecewiseFunction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,7 +51,7 @@ Context()->noreduce("(-x)-y"); $f1=Formula("$a*x+$f"); $f2=Formula("$b*x+$g"); -$fun = PiecewiseFunction("$f1 if x < $h else $f2 if x >= $h")->reduce; +$fun = PiecewiseFunction("$f1 if x < $h else $f2 if x >= $h")->reduce; Context("Numeric"); @@ -62,13 +62,13 @@ Given the piecewise function, find the function values. [` f(x)=[$fun] `]. - [`f([$c])=`] [_________________]{if ($c<$h) {$f1->eval(x=>$c)} else{$f2->eval(x=>$c)}} [@ AnswerFormatHelp("numbers") @]* + [`f([$c])=`] [_________________]{if ($c<$h) {$f1->eval(x=>$c)} else{$f2->eval(x=>$c)}} [@ helpLink("numbers") @]* - [`f(0)=`] [_________________]{if (0<$h) {$f1->eval(x=>0)} else{$f2->eval(x=>0)}}[@ AnswerFormatHelp("numbers") @]* + [`f(0)=`] [_________________]{if (0<$h) {$f1->eval(x=>0)} else{$f2->eval(x=>0)}}[@ helpLink("numbers") @]* - [`f([$d])=`] [_________________]{if ($d<$h) {$f1->eval(x=>$d)} else{$f2->eval(x=>$d)}} [@ AnswerFormatHelp("numbers") @]* + [`f([$d])=`] [_________________]{if ($d<$h) {$f1->eval(x=>$d)} else{$f2->eval(x=>$d)}} [@ helpLink("numbers") @]* - [`f([$e])=`] [_________________]{if ($e<$h) {$f1->eval(x=>$e)} else{$f2->eval(x=>$e)}} [@ AnswerFormatHelp("numbers") @]* + [`f([$e])=`] [_________________]{if ($e<$h) {$f1->eval(x=>$e)} else{$f2->eval(x=>$e)}} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_51.pg b/Contrib/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_51.pg index 6527f3ece2..c8e58fd623 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_51.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_51.pg @@ -17,7 +17,7 @@ # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PG.pl", @@ -28,7 +28,7 @@ loadMacros( "PGgraphmacros.pl", "extraAnswerEvaluators.pl", "contextPiecewiseFunction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -54,7 +54,7 @@ $f1=Formula("$a*x+$f"); $f2=Formula("$e"); $f3=Formula("$b*x+$g"); -$fun = PiecewiseFunction("$f1 if x < $h else $f2 if $h <= x < $i else $f3 if x>=$i")->reduce; +$fun = PiecewiseFunction("$f1 if x < $h else $f2 if $h <= x < $i else $f3 if x>=$i")->reduce; Context("Numeric"); @@ -65,13 +65,13 @@ Graph the function to find the function values. [` f(x)=[$fun] `]. - [`f([$c])=`] [_________________]{if ($c<$h) {$f1->eval(x=>$c)} elsif ($c>=$i) {$f3->eval(x=>$c)} else{$f2->eval(x=>$c)}} [@ AnswerFormatHelp("numbers") @]* + [`f([$c])=`] [_________________]{if ($c<$h) {$f1->eval(x=>$c)} elsif ($c>=$i) {$f3->eval(x=>$c)} else{$f2->eval(x=>$c)}} [@ helpLink("numbers") @]* - [`f(0)=`] [_________________]{if (0<$h) {$f1->eval(x=>0)} elsif (0>=$i) {$f3->eval(x=>0)} else{$f2->eval(x=>0)}}[@ AnswerFormatHelp("numbers") @]* + [`f(0)=`] [_________________]{if (0<$h) {$f1->eval(x=>0)} elsif (0>=$i) {$f3->eval(x=>0)} else{$f2->eval(x=>0)}}[@ helpLink("numbers") @]* - [`f([$d])=`] [_________________]{if ($d<$h) {$f1->eval(x=>$d)} elsif ($d>=$i) {$f3->eval(x=>$d)} else{$f2->eval(x=>$d)}} [@ AnswerFormatHelp("numbers") @]* + [`f([$d])=`] [_________________]{if ($d<$h) {$f1->eval(x=>$d)} elsif ($d>=$i) {$f3->eval(x=>$d)} else{$f2->eval(x=>$d)}} [@ helpLink("numbers") @]* - [`f([$e])=`] [_________________]{if ($e<$h) {$f1->eval(x=>$e)} elsif ($e>=$i) {$f3->eval(x=>$e)} else{$f2->eval(x=>$e)}} [@ AnswerFormatHelp("numbers") @]* + [`f([$e])=`] [_________________]{if ($e<$h) {$f1->eval(x=>$e)} elsif ($e>=$i) {$f3->eval(x=>$e)} else{$f2->eval(x=>$e)}} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_6.pg b/Contrib/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_6.pg index 892d163a87..a2dba67ace 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_6.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_6.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,7 +50,7 @@ BEGIN_PGML Find the domain of [` f(x)=[$f] `]. Enter your solution in interval notation. -[_______________]{$ans} [@ AnswerFormatHelp("intervals") @]* +[_______________]{$ans} [@ helpLink("intervals") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_8.pg b/Contrib/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_8.pg index 6fdf09ac7c..48fd0fa4b1 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_8.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_8.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -49,7 +49,7 @@ BEGIN_PGML Find the domain of [` f(x)=[$f] `]. Enter your solution in interval notation. -[_______________]{$ans} [@ AnswerFormatHelp("intervals") @]* +[_______________]{$ans} [@ helpLink("intervals") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_StepPractice.pg b/Contrib/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_StepPractice.pg index a1897d1981..d035df54fd 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_StepPractice.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_StepPractice.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -68,7 +68,7 @@ Find the domain and range of \( y=f(x) \) whose graph is given below. $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>200,height=>200,tex_size=>800 ) \} $BR (Click on graph to enlarge) @@ -76,11 +76,11 @@ $BCENTER $BR $BR Domain: \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR $BR Range: \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR $BR diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_VIDEO.pg b/Contrib/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_VIDEO.pg index b5283bd391..27b792d76d 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_VIDEO.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_VIDEO.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -62,7 +62,7 @@ $BR Graph the piecewise function to find its domain and range. $BR \[ -f(x) = +f(x) = \left\lbrace \begin{array}{lcl} $f1, && \mbox{ if } x < -$a, \\ @@ -78,10 +78,10 @@ $BR $BR Domain: \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR Range: \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_VIDEO_1.pg b/Contrib/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_VIDEO_1.pg index 5bd553ba65..37ad549f63 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_VIDEO_1.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_VIDEO_1.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "contextPiecewiseFunction.pl", @@ -45,21 +45,21 @@ $f = random(3,10,1); Context("PiecewiseFunction"); Context()->noreduce("(-x)-y"); -$fun = PiecewiseFunction("$c*x+$d if x < 1 else -$e*x+$f if x >= 1")->reduce; +$fun = PiecewiseFunction("$c*x+$d if x < 1 else -$e*x+$f if x >= 1")->reduce; $domain = Interval("(-infinity,infinity)"); if ($d+$c > $f-$e) { $range = Interval("(-infinity, $d+$c)"); -} else { +} else { $range = Interval("(-infinity, $f-$e]"); } Context("Interval"); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -71,16 +71,16 @@ BEGIN_PGML >> [$video]* << ->> YouTube video of Craig Faulhaber, mathemagician, embedded using an iframe. << +>> YouTube video of Craig Faulhaber, mathemagician, embedded using an iframe. << >> If the video does not work, [@ htmlLink("https://youtu.be/RxnkI19AFb4","click here to go to YouTube directly.") @]* << -Graph the piecewise function to find the domain and range +Graph the piecewise function to find the domain and range [` f(x)=[$fun] `]. - Domain: [_______________]{$domain} [@ AnswerFormatHelp("intervals") @]* + Domain: [_______________]{$domain} [@ helpLink("intervals") @]* - Range: [_______________]{$range} [@ AnswerFormatHelp("intervals") @]* + Range: [_______________]{$range} [@ helpLink("intervals") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_11.pg b/Contrib/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_11.pg index c68a31ce91..b6c05e988f 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_11.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_11.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,7 +50,7 @@ $ans=Compute("-1/(($b+$a)*($b+h+$a))")->reduce; BEGIN_PGML Find the average rate of change for [``f(t)=[$f]``] over the interval [`[[$b],[$b]+h] `]. -[_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_16.pg b/Contrib/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_16.pg index 6e0c8f2944..b120392bda 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_16.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_16.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -65,14 +65,14 @@ Let the graph of \( y=f(x) \) be given below. $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>200,height=>200,tex_size=>800 ) \} $BR (Click on graph to enlarge) $BR $BR Estimate the average rate of change for the graph above from \(x=1\) to \(x=4\). \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $ECENTER END_TEXT Context()->normalStrings; diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_17.pg b/Contrib/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_17.pg index 79afde4f09..61f912078a 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_17.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_17.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -65,7 +65,7 @@ Let the graph of \( y=f(x) \) be given below. $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>200,height=>200,tex_size=>800 ) \} $BR (Click on graph to enlarge) @@ -73,7 +73,7 @@ $BR $BR $BR Estimate the average rate of change for the graph above from \(x=2\) to \(x=3\). \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $ECENTER END_TEXT Context()->normalStrings; diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_18.pg b/Contrib/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_18.pg index 74d4c0b537..725fb389a3 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_18.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_18.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -63,22 +63,22 @@ Find the intervals where the function \( y=f(x) \), whose graph is given below, $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>200,height=>200,tex_size=>800 ) \} $BR (Click on graph to enlarge) $BR $BR Increasing: \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR $BR Decreasing: \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR $BR Absolute minimum y = \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $ECENTER END_TEXT Context()->normalStrings; diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_22.pg b/Contrib/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_22.pg index c956c63318..9acfe56027 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_22.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_22.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -68,7 +68,7 @@ Find the intervals where the function \( y=f(x) \), whose graph is given below, $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>200,height=>200,tex_size=>800 ) \} $BR (Click on graph to enlarge) @@ -76,19 +76,19 @@ $BR $BR $BR Increasing: \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR $BR Decreasing: \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR $BR Local maximum y = \{ ans_rule(20) \} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} $BR $BR Local minimum y = \{ ans_rule(20) \} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} $BR $BR $ECENTER diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_23.pg b/Contrib/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_23.pg index 9d48005bf3..2787bfb08d 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_23.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_23.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserPopUp.pl", "contextLimitedPoint.pl", "PGML.pl", @@ -78,7 +78,7 @@ Find the intervals where the function \( y=f(x) \), whose graph is given below, $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>200,height=>200,tex_size=>800 ) \} $BR (Click on graph to enlarge) @@ -88,13 +88,13 @@ Context()->normalStrings; BEGIN_PGML ->>Increasing: [______]{$ans1}[@ AnswerFormatHelp("intervals") @]*<< +>>Increasing: [______]{$ans1}[@ helpLink("intervals") @]*<< ->>Decreasing: [______]{$ans2}[@ AnswerFormatHelp("intervals") @]*<< +>>Decreasing: [______]{$ans2}[@ helpLink("intervals") @]*<< ->>Local maximum: [______]{$popup1} [` = `] [______]{$ans3}[@ AnswerFormatHelp("numbers") @]*<< +>>Local maximum: [______]{$popup1} [` = `] [______]{$ans3}[@ helpLink("numbers") @]*<< ->>Local minimum: [______]{$popup1} [` = `] [______]{$ans4}[@ AnswerFormatHelp("numbers") @]*<< +>>Local minimum: [______]{$popup1} [` = `] [______]{$ans4}[@ helpLink("numbers") @]*<< END_PGML ############################ diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_24.pg b/Contrib/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_24.pg index ac562feaf9..d286f763bc 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_24.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_24.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserPopUp.pl", "contextLimitedPoint.pl", "PGML.pl", @@ -70,7 +70,7 @@ Find the intervals where the function \( y=f(x) \), whose graph is given below, $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>200,height=>200,tex_size=>800 ) \} $BR (Click on graph to enlarge) @@ -80,11 +80,11 @@ Context()->normalStrings; BEGIN_PGML ->>Increasing: [______]{$ans1}[@ AnswerFormatHelp("intervals") @]*<< +>>Increasing: [______]{$ans1}[@ helpLink("intervals") @]*<< ->>Decreasing: [______]{$ans2}[@ AnswerFormatHelp("intervals") @]*<< +>>Decreasing: [______]{$ans2}[@ helpLink("intervals") @]*<< ->>Absolute minimum: [______]{$popup1} [` = `] [______]{$ans3}[@ AnswerFormatHelp("numbers") @]*<< +>>Absolute minimum: [______]{$popup1} [` = `] [______]{$ans3}[@ helpLink("numbers") @]*<< END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_25.pg b/Contrib/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_25.pg index 86620119d4..5712dd4a36 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_25.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_25.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserPopUp.pl", "contextLimitedPoint.pl", "PGML.pl", @@ -71,7 +71,7 @@ Find the intervals where the function \( y=f(x) \), whose graph is given below, $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>200,height=>200,tex_size=>800 ) \} $BR (Click on graph to enlarge) @@ -82,11 +82,11 @@ Context()->normalStrings; BEGIN_PGML ->>Increasing: [______]{$ans1}[@ AnswerFormatHelp("intervals") @]*<< +>>Increasing: [______]{$ans1}[@ helpLink("intervals") @]*<< ->>Decreasing: [______]{$ans2}[@ AnswerFormatHelp("intervals") @]*<< +>>Decreasing: [______]{$ans2}[@ helpLink("intervals") @]*<< ->>Absolute maximum: [______]{$popup1} [` = `] [______]{$ans3}[@ AnswerFormatHelp("numbers") @]*<< +>>Absolute maximum: [______]{$popup1} [` = `] [______]{$ans3}[@ helpLink("numbers") @]*<< END_PGML ############################ diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_26.pg b/Contrib/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_26.pg index 6db95da20f..1428c8158d 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_26.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_26.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "niceTables.pl", "PGML.pl", "PGcourse.pl", @@ -60,7 +60,7 @@ LayoutTable( [ ['Year' , '1998' ,'1999' ,'2000' ,'2001' ,'2002' ,'2003','2004','2005','2006'], ['Sales (millions of dollars)' , '201' ,'219' ,'233' ,$a ,$b ,'251',$c,'243','233'], - ], + ], midrules => 1, align => '| c | c | c | c | c | c | c | c | c | c |', center => 0, diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_44.pg b/Contrib/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_44.pg index e5dce9d4c9..08b38c2b32 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_44.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_44.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "niceTables.pl", "PGML.pl", "PGcourse.pl", diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_45.pg b/Contrib/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_45.pg index 4e8bb116d6..1770feb8e7 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_45.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_45.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "niceTables.pl", "PGML.pl", "PGcourse.pl", diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_7.pg b/Contrib/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_7.pg index 472dca9219..201645ccfb 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_7.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_7.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,7 +50,7 @@ $ans= $a; BEGIN_PGML Find the average rate of change for [``f(x)=[$f]``] over the interval [`[[$x1],[$x2]] `]. You must simplify your answer. -[_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_9.pg b/Contrib/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_9.pg index 5e3d3a2da0..b1253be32f 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_9.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_9.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,7 +50,7 @@ $ans=Compute("2*$a*x+$a*h")->reduce; BEGIN_PGML Find the average rate of change for [``f(x)=[$f]``] over the interval [`[x,x+h] `]. You must simplify your answer. -[_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup1.pg b/Contrib/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup1.pg index db84c87cf6..b4c919979d 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup1.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup1.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,7 +50,7 @@ Context()->operators->remove('^','**','/'); BEGIN_PGML Find and simplify the difference quotient for [``f(x)=[$f]``]. Your answer must be simplified for it to be counted correct. -[`` \frac{f(x+h)-f(x)}{h}=``] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`` \frac{f(x+h)-f(x)}{h}=``] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup2.pg b/Contrib/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup2.pg index 9a164ff6b6..ad8c760505 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup2.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup2.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,7 +51,7 @@ Context()->operators->remove('^','**','/'); BEGIN_PGML Find and simplify the difference quotient for [``f(x)=[$f]``]. Your answer must be simplified for it to be counted correct. -[`` \frac{f(x+h)-f(x)}{h}=``] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`` \frac{f(x+h)-f(x)}{h}=``] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup3.pg b/Contrib/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup3.pg index 3d6266bdcc..7a27787a8a 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup3.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup3.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -49,7 +49,7 @@ Context()->operators->remove('^','**','/'); BEGIN_PGML Find and simplify the difference quotient for [``f(x)=[$f]``]. Your answer must be simplified for it to be counted correct. -[`` \frac{f(x+h)-f(x)}{h}=``] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`` \frac{f(x+h)-f(x)}{h}=``] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup4.pg b/Contrib/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup4.pg index e3e61a8a66..c6495d7dc3 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup4.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup4.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,7 +48,7 @@ $ans=Compute("-$a/(x*(x+h))")->reduce; BEGIN_PGML Find and simplify the difference quotient for [``f(x)=[$f]``]. Your answer must be simplified for it to be counted correct. -[`` \frac{f(x+h)-f(x)}{h}=``] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`` \frac{f(x+h)-f(x)}{h}=``] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup5.pg b/Contrib/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup5.pg index 96d5decdd0..e828606016 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup5.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup5.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -49,7 +49,7 @@ Context()->operators->remove('/'); BEGIN_PGML Find and simplify the difference quotient for [``f(x)=[$f]``]. Your answer must be simplified for it to be counted correct. -[`` \frac{f(x+h)-f(x)}{h}=``] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`` \frac{f(x+h)-f(x)}{h}=``] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup6.pg b/Contrib/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup6.pg index 92d1be118c..eb93761235 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup6.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup6.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,7 +48,7 @@ $ans=Compute("(-2*$a*x-$a*h)/(x^2*(x+h)^2)")->reduce; BEGIN_PGML Find and simplify the difference quotient for [``f(x)=[$f]``]. Your answer must be simplified for it to be counted correct. -[`` \frac{f(x+h)-f(x)}{h}=``] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`` \frac{f(x+h)-f(x)}{h}=``] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.4/Openstax_AlgTrig_AT-1-001-AS_3_4_43.pg b/Contrib/RRCC/College_Algebra/MAT121/3.4/Openstax_AlgTrig_AT-1-001-AS_3_4_43.pg index e31e0a4d28..749a9648d3 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.4/Openstax_AlgTrig_AT-1-001-AS_3_4_43.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.4/Openstax_AlgTrig_AT-1-001-AS_3_4_43.pg @@ -12,14 +12,14 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "MathObjects.pl", "PGstandard.pl", "PGgraphmacros.pl", - "AnswerFormatHelp.pl", + "PGchoicemacros.pl", "unionTables.pl", ); @@ -30,7 +30,7 @@ $refreshCachedImages = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); do { @@ -88,32 +88,32 @@ Context()->strings->add("undefined"=>{}); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], "$SPACE $SPACE $SPACE $SPACE", $figs[1]]). TableSpace(5,25). AlignedRow(["\(y = f(x)\)", "$SPACE $SPACE $SPACE $SPACE", "\(y = g(x)\)"]). EndTable(); \} -$ECENTER +$ECENTER $PAR -Use the graphs of \(y = f(x)\) and \(y = g(x)\) above to the find the function value. +Use the graphs of \(y = f(x)\) and \(y = g(x)\) above to the find the function value. $PAR -$SPACE $SPACE (a) \(g(f($a)) = \) \{ans_rule(5)\} \{ AnswerFormatHelp("numbers") \} +$SPACE $SPACE (a) \(g(f($a)) = \) \{ans_rule(5)\} \{ helpLink("numbers") \} $BR $BR -$SPACE $SPACE (b) \(g(g($b)) = \) \{ans_rule(5)\} \{ AnswerFormatHelp("numbers") \} +$SPACE $SPACE (b) \(g(g($b)) = \) \{ans_rule(5)\} \{ helpLink("numbers") \} END_TEXT Context()->normalStrings; ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute("$answer1")->cmp()); ANS(Compute("$answer2")->cmp()); diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.4/Openstax_AlgTrig_AT-1-001-AS_3_4_45.pg b/Contrib/RRCC/College_Algebra/MAT121/3.4/Openstax_AlgTrig_AT-1-001-AS_3_4_45.pg index e31e0a4d28..749a9648d3 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.4/Openstax_AlgTrig_AT-1-001-AS_3_4_45.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.4/Openstax_AlgTrig_AT-1-001-AS_3_4_45.pg @@ -12,14 +12,14 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "MathObjects.pl", "PGstandard.pl", "PGgraphmacros.pl", - "AnswerFormatHelp.pl", + "PGchoicemacros.pl", "unionTables.pl", ); @@ -30,7 +30,7 @@ $refreshCachedImages = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); do { @@ -88,32 +88,32 @@ Context()->strings->add("undefined"=>{}); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], "$SPACE $SPACE $SPACE $SPACE", $figs[1]]). TableSpace(5,25). AlignedRow(["\(y = f(x)\)", "$SPACE $SPACE $SPACE $SPACE", "\(y = g(x)\)"]). EndTable(); \} -$ECENTER +$ECENTER $PAR -Use the graphs of \(y = f(x)\) and \(y = g(x)\) above to the find the function value. +Use the graphs of \(y = f(x)\) and \(y = g(x)\) above to the find the function value. $PAR -$SPACE $SPACE (a) \(g(f($a)) = \) \{ans_rule(5)\} \{ AnswerFormatHelp("numbers") \} +$SPACE $SPACE (a) \(g(f($a)) = \) \{ans_rule(5)\} \{ helpLink("numbers") \} $BR $BR -$SPACE $SPACE (b) \(g(g($b)) = \) \{ans_rule(5)\} \{ AnswerFormatHelp("numbers") \} +$SPACE $SPACE (b) \(g(g($b)) = \) \{ans_rule(5)\} \{ helpLink("numbers") \} END_TEXT Context()->normalStrings; ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute("$answer1")->cmp()); ANS(Compute("$answer2")->cmp()); diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_11.pg b/Contrib/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_11.pg index 7bfdb0d6a9..beffe9f541 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_11.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_11.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -55,14 +55,14 @@ $ans3 = Formula("$a*($c*$m+$d)^2+$b")->reduce(); # Main text BEGIN_PGML -Let [`f(x) = [$f]`] and [`g(x) = [$g]`]. +Let [`f(x) = [$f]`] and [`g(x) = [$g]`]. + ++ [` f(g(x)) = `] [_______________]{$ans1} [@ helpLink("formulas") @]* -+ [` f(g(x)) = `] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* ++ [` g(f(x)) = `] [_______________]{$ans2} [@ helpLink("formulas") @]* -+ [` g(f(x)) = `] [_______________]{$ans2} [@ AnswerFormatHelp("formulas") @]* ++ [` f(g([$m])) = `] [_______________]{$ans3} [@ helpLink("numbers") @]* -+ [` f(g([$m])) = `] [_______________]{$ans3} [@ AnswerFormatHelp("numbers") @]* - END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_13.pg b/Contrib/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_13.pg index 03c8596680..9073bd428a 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_13.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_13.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,11 +50,11 @@ $ans2 = Compute("(sqrt(x)+$a)^2+$b")->reduce(); # Main text BEGIN_PGML -Let [`f(x) = [$f]`] and [`g(x) = [$g]`]. +Let [`f(x) = [$f]`] and [`g(x) = [$g]`]. -+ [` (f\circ g)(x) = `] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* ++ [` (f\circ g)(x) = `] [_______________]{$ans1} [@ helpLink("formulas") @]* -+ [` (g \circ f)(x) = `] [_______________]{$ans2} [@ AnswerFormatHelp("formulas") @]* ++ [` (g \circ f)(x) = `] [_______________]{$ans2} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_16.pg b/Contrib/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_16.pg index 7aca99ec41..2ba40b6454 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_16.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_16.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,11 +51,11 @@ $ans2 = Formula("$b*x+($c-$a*$b)")->reduce(); # Main text BEGIN_PGML -Let [``f(x) = [$f]``] and [``g(x) = [$g]``]. +Let [``f(x) = [$f]``] and [``g(x) = [$g]``]. -+ [`` f(g(x)) = ``] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* ++ [`` f(g(x)) = ``] [_______________]{$ans1} [@ helpLink("formulas") @]* -+ [`` g(f(x)) = ``] [_______________]{$ans2} [@ AnswerFormatHelp("formulas") @]* ++ [`` g(f(x)) = ``] [_______________]{$ans2} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_17.pg b/Contrib/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_17.pg index 9b56e69601..1868108b6f 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_17.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_17.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -52,11 +52,11 @@ $ans2 = Formula("$b*x+($c-$a*$b)")->reduce(); # Main text BEGIN_PGML -Let [``f(x) = [$f]``] and [``g(x) = [$g]``]. +Let [``f(x) = [$f]``] and [``g(x) = [$g]``]. -+ [` (f \circ g)(x) = `] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* ++ [` (f \circ g)(x) = `] [_______________]{$ans1} [@ helpLink("formulas") @]* -+ [` (g \circ f)(x) = `] [_______________]{$ans2} [@ AnswerFormatHelp("formulas") @]* ++ [` (g \circ f)(x) = `] [_______________]{$ans2} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_27.pg b/Contrib/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_27.pg index 6cb08a7ca0..c97539a05c 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_27.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_27.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,9 +51,9 @@ $ans1 = Compute("x**$b")->reduce(); BEGIN_PGML Let [`h(x) = f(g(x)) = [$h] `]. Find [`f(x)`] given [`g(x)=x-[$a] `]. - [` f(x) = `] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* + [` f(x) = `] [_______________]{$ans1} [@ helpLink("formulas") @]* + - END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_29.pg b/Contrib/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_29.pg index 9b80c406d9..e69c4b3690 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_29.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_29.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,7 +51,7 @@ $ans1 = Compute("4/x**$b")->reduce(); BEGIN_PGML Let [``h(x) = (f \circ g)(x) = [$h] ``]. Find [`f(x)`] given [``g(x)=x+[$a] ``]. - [` f(x) = `] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* + [` f(x) = `] [_______________]{$ans1} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_39.pg b/Contrib/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_39.pg index 51958f1603..0a14bf6481 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_39.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_39.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,7 +51,7 @@ $ans1 = Compute("1/x**$b")->reduce(); BEGIN_PGML Let [``h(x) = f(g(x)) = [$h] ``]. Find [`f(x)`] given [``g(x)=x-[$a] ``]. - [` f(x) = `] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* + [` f(x) = `] [_______________]{$ans1} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_5.pg b/Contrib/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_5.pg index 3bd7e0e153..c5bd36cbc8 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_5.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_5.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -58,25 +58,25 @@ $ans8 = Compute("(-infinity,-sqrt($b))U(-sqrt($b),sqrt($b))U(sqrt($b),infinity)" # Main text BEGIN_PGML -Let [`f(x) = [$f]`] and [`g(x) = [$g]`]. +Let [`f(x) = [$f]`] and [`g(x) = [$g]`]. + ++ [` (f + g)(x) = `] [_______________]{$ans1} [@ helpLink("formulas") @]* -+ [` (f + g)(x) = `] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* ++ [` (f - g)(x) = `] [_______________]{$ans2} [@ helpLink("formulas") @]* -+ [` (f - g)(x) = `] [_______________]{$ans2} [@ AnswerFormatHelp("formulas") @]* ++ [` (fg)(x) = `] [_______________]{$ans3} [@ helpLink("formulas") @]* -+ [` (fg)(x) = `] [_______________]{$ans3} [@ AnswerFormatHelp("formulas") @]* ++ [` \left(\frac{f}{g}\right)(x) = `] [_______________]{$ans4} [@ helpLink("formulas") @]* -+ [` \left(\frac{f}{g}\right)(x) = `] [_______________]{$ans4} [@ AnswerFormatHelp("formulas") @]* ++ The domain of [` (f + g)(x) `] is: [_______________]{$ans5} [@ helpLink("intervals") @]* -+ The domain of [` (f + g)(x) `] is: [_______________]{$ans5} [@ AnswerFormatHelp("intervals") @]* ++ The domain of [` (f - g)(x) `] is: [_______________]{$ans6} [@ helpLink("intervals") @]* -+ The domain of [` (f - g)(x) `] is: [_______________]{$ans6} [@ AnswerFormatHelp("intervals") @]* ++ The domain of [` (fg)(x) `] is: [_______________]{$ans7} [@ helpLink("intervals") @]* -+ The domain of [` (fg)(x) `] is: [_______________]{$ans7} [@ AnswerFormatHelp("intervals") @]* ++ The domain of [` \left(\frac{f}{g}\right)(x) `] is: [_______________]{$ans8} [@ helpLink("intervals") @]* -+ The domain of [` \left(\frac{f}{g}\right)(x) `] is: [_______________]{$ans8} [@ AnswerFormatHelp("intervals") @]* - END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_59.pg b/Contrib/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_59.pg index 902746208b..09653260cd 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_59.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_59.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "niceTables.pl", "PGML.pl", "PGcourse.pl", @@ -241,7 +241,7 @@ LayoutTable( ['\(x\)' , '1' ,'2' ,'3' ,'4' ,'5' ,'6','7','8','9'], ['\(f(x)\)' , $f1 ,$f2 ,$f3 ,$f4 ,$f5 ,$f6, $f7, $f8, $f9], ['\(g(x)\)' , $g1,$g2 ,$g3 ,$g4,$g5,$g6,$g7,$g8,$g9], - ], + ], midrules => 1, align => '| c | c | c | c | c | c | c | c | c | c |', center => 0, @@ -251,7 +251,7 @@ LayoutTable( $BR Use the table to evaluate the expression, $BR -\(f(g($s))=\) \{ans_rule(20)\} \{ AnswerFormatHelp("numbers") \} +\(f(g($s))=\) \{ans_rule(20)\} \{ helpLink("numbers") \} $ECENTER END_TEXT diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_61.pg b/Contrib/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_61.pg index 55ccad7918..7eaf8c4a5c 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_61.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_61.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "niceTables.pl", "PGML.pl", "PGcourse.pl", @@ -241,7 +241,7 @@ LayoutTable( ['\(x\)' , '1' ,'2' ,'3' ,'4' ,'5' ,'6','7','8','9'], ['\(f(x)\)' , $f1 ,$f2 ,$f3 ,$f4 ,$f5 ,$f6, $f7, $f8, $f9], ['\(g(x)\)' , $g1,$g2 ,$g3 ,$g4,$g5,$g6,$g7,$g8,$g9], - ], + ], midrules => 1, align => '| c | c | c | c | c | c | c | c | c | c |', center => 0, @@ -251,7 +251,7 @@ LayoutTable( $BR Use the table to evaluate the expression, $BR -\( (g \circ f)($s)= \) \{ans_rule(20)\} \{ AnswerFormatHelp("numbers") \} +\( (g \circ f)($s)= \) \{ans_rule(20)\} \{ helpLink("numbers") \} $ECENTER END_TEXT diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_73.pg b/Contrib/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_73.pg index e4a48f0072..6e45fc7ce5 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_73.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_73.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -45,7 +45,7 @@ $m = random(-3,3,1); $f = Formula("$a*x+$b")->reduce; $g = Formula("$c+$d*x^2")->reduce; -$hold = $g->eval(x=>$m); +$hold = $g->eval(x=>$m); $ans1 = $f->eval(x=>$hold); @@ -53,10 +53,10 @@ $ans1 = $f->eval(x=>$hold); # Main text BEGIN_PGML -Let [`f(x) = [$f]`] and [`g(x) = [$g]`]. +Let [`f(x) = [$f]`] and [`g(x) = [$g]`]. -+ [` f(g([$m])) = `] [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* ++ [` f(g([$m])) = `] [_______________]{$ans1} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_77.pg b/Contrib/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_77.pg index 2d8f39ad84..52628d6db8 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_77.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_77.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,10 +50,10 @@ $ans1 = Compute("$a*($d*x + $c)**$e-$b")->reduce; # Main text BEGIN_PGML -Let [`f(x) = [$f]`] and [`g(x) = [$g]`]. +Let [`f(x) = [$f]`] and [`g(x) = [$g]`]. + ++ [` (f \circ g)(x) = `] [_______________]{$ans1} [@ helpLink("formulas") @]* -+ [` (f \circ g)(x) = `] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* - END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_9.pg b/Contrib/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_9.pg index 26f9a446fa..b10a648f6d 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_9.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_9.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -60,23 +60,23 @@ $ans8 = Compute("($b,infinity)"); # Main text BEGIN_PGML -Let [`f(x) = [$f]`] and [`g(x) = [$g]`]. +Let [`f(x) = [$f]`] and [`g(x) = [$g]`]. -+ [` (f + g)(x) = `] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* ++ [` (f + g)(x) = `] [_______________]{$ans1} [@ helpLink("formulas") @]* -+ [` (f - g)(x) = `] [_______________]{$ans2} [@ AnswerFormatHelp("formulas") @]* ++ [` (f - g)(x) = `] [_______________]{$ans2} [@ helpLink("formulas") @]* -+ [` (fg)(x) = `] [_______________]{$ans3} [@ AnswerFormatHelp("formulas") @]* ++ [` (fg)(x) = `] [_______________]{$ans3} [@ helpLink("formulas") @]* -+ [` \left(\frac{f}{g}\right)(x) = `] [_______________]{$ans4} [@ AnswerFormatHelp("formulas") @]* ++ [` \left(\frac{f}{g}\right)(x) = `] [_______________]{$ans4} [@ helpLink("formulas") @]* -+ The domain of [` (f + g)(x) `] is: [_______________]{$ans5} [@ AnswerFormatHelp("intervals") @]* ++ The domain of [` (f + g)(x) `] is: [_______________]{$ans5} [@ helpLink("intervals") @]* -+ The domain of [` (f - g)(x) `] is: [_______________]{$ans6} [@ AnswerFormatHelp("intervals") @]* ++ The domain of [` (f - g)(x) `] is: [_______________]{$ans6} [@ helpLink("intervals") @]* -+ The domain of [` (fg)(x) `] is: [_______________]{$ans7} [@ AnswerFormatHelp("intervals") @]* ++ The domain of [` (fg)(x) `] is: [_______________]{$ans7} [@ helpLink("intervals") @]* -+ The domain of [` \left(\frac{f}{g}\right)(x) `] is: [_______________]{$ans8} [@ AnswerFormatHelp("intervals") @]* ++ The domain of [` \left(\frac{f}{g}\right)(x) `] is: [_______________]{$ans8} [@ helpLink("intervals") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_21.pg b/Contrib/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_21.pg index 55c4f9d812..f428cc6ef8 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_21.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_21.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -53,9 +53,9 @@ $ansdecr = Compute("(-infinity,$bound)"); BEGIN_PGML Determine the interval(s) on which [`f(x) = [$g][$f]`] is increasing and decreasing. -+ Increasing: [_______________]{$ansincr} [@ AnswerFormatHelp("intervals") @]* ++ Increasing: [_______________]{$ansincr} [@ helpLink("intervals") @]* -+ Decreasing: [_______________]{$ansdecr} [@ AnswerFormatHelp("intervals") @]* ++ Decreasing: [_______________]{$ansdecr} [@ helpLink("intervals") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_31.pg b/Contrib/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_31.pg index 01dbc80d2d..eeb14b3a27 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_31.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_31.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswers = 1; # Setup Context("LimitedPoint"); -Context()->noreduce("(-x)-y"); +Context()->noreduce("(-x)-y"); $a=random(-13,13); $b=random(-5,5); @@ -49,10 +49,10 @@ $ans = Point("(($a,$c*$b+$d))"); # Main text BEGIN_PGML -Suppose [` [$pt1] `] is a point on the graph of [`y=f(x)`]. What is a point that will be on the graph of [`y=[$c]*f(x)+[$d] `]? +Suppose [` [$pt1] `] is a point on the graph of [`y=f(x)`]. What is a point that will be on the graph of [`y=[$c]*f(x)+[$d] `]? -[_______________]{$ans} [@ AnswerFormatHelp("points") @]* -Enter a point as [` (a,b) `], including the parentheses. +[_______________]{$ans} [@ helpLink("points") @]* +Enter a point as [` (a,b) `], including the parentheses. END_PGML ############################ diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_32.pg b/Contrib/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_32.pg index 43964de307..8839dee6fc 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_32.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_32.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -49,10 +49,10 @@ $ans = Point("(($a/$c,$b+$d))"); # Main text BEGIN_PGML -Suppose [` [$pt1] `] is a point on the graph of [`y=f(x)`]. What is a point that will be on the graph of [`y = f([$c]x) + [$d]`]? +Suppose [` [$pt1] `] is a point on the graph of [`y=f(x)`]. What is a point that will be on the graph of [`y = f([$c]x) + [$d]`]? -[_______________]{$ans} [@ AnswerFormatHelp("points") @]* -Enter a point as [` (a,b) `], including the parentheses. +[_______________]{$ans} [@ helpLink("points") @]* +Enter a point as [` (a,b) `], including the parentheses. END_PGML ############################ diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_32b.pg b/Contrib/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_32b.pg index fee3e9375c..c51d89497e 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_32b.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_32b.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -48,10 +48,10 @@ $ans = Point("(($a+$c,-$b))"); # Main text BEGIN_PGML -Suppose [` [$pt1] `] is a point on the graph of [`y=f(x)`]. What is a point that will be on the graph of [`y = -f(x-[$c])`]? +Suppose [` [$pt1] `] is a point on the graph of [`y=f(x)`]. What is a point that will be on the graph of [`y = -f(x-[$c])`]? -[_______________]{$ans} [@ AnswerFormatHelp("points") @]* -Enter a point as [` (a,b) `], including the parentheses. +[_______________]{$ans} [@ helpLink("points") @]* +Enter a point as [` (a,b) `], including the parentheses. END_PGML ############################ diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_35.pg b/Contrib/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_35.pg index 50cc2a5150..c7fab54d53 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_35.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_35.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -59,7 +59,7 @@ Write an equation for the graphed function by using transformations of the graph $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>300,height=>300,tex_size=>800 ) \} $BR $BR @@ -69,7 +69,7 @@ $BR $BR $BR y = \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR $ECENTER diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_37.pg b/Contrib/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_37.pg index f3056cfd12..7bcb78ce41 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_37.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_37.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -43,7 +43,7 @@ size=>[400,400] add_functions($gr, "(x+$a)^2+$b for x in <-6,6> using color:blue and weight:2"); -($gr->fn)[0]->steps(300); +($gr->fn)[0]->steps(300); $refreshCachedImages=1; @@ -61,7 +61,7 @@ Find an equation for the graphed function below by using transformations of the $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>300,height=>300,tex_size=>800 ) \} $BR (Click on graph to enlarge) @@ -69,7 +69,7 @@ $BR $BR $BR \( y= \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR $ECENTER diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_39.pg b/Contrib/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_39.pg index 1a1f5cd6ba..ed83fc1856 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_39.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_39.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -43,7 +43,7 @@ size=>[400,400] add_functions($gr, "abs{x+$a}+$b for x in <-6,6> using color:blue and weight:2"); -($gr->fn)[0]->steps(300); +($gr->fn)[0]->steps(300); $refreshCachedImages=1; @@ -61,7 +61,7 @@ Find an equation for the graphed function below by using transformations of the $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>300,height=>300,tex_size=>800 ) \} $BR (Click on graph to enlarge) @@ -69,7 +69,7 @@ $BR $BR $BR \( y= \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR $ECENTER diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_47.pg b/Contrib/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_47.pg index f24e2818eb..adf591d4b3 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_47.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_47.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserPopUp.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -54,9 +54,9 @@ $popup = PopUp( BEGIN_PGML Let [``f(x) = [$f]``]. Find [``f(-x)``] and [``-f(x)``]. Use them to determine whether or not [``f(x)``] is even, odd, or neither. -[` f(-x) = `] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* +[` f(-x) = `] [_______________]{$ans1} [@ helpLink("formulas") @]* -[` -f(x) = `] [_______________]{$ans2} [@ AnswerFormatHelp("formulas") @]* +[` -f(x) = `] [_______________]{$ans2} [@ helpLink("formulas") @]* Is [``f(x)``] odd, even, or neither? [@ $popup->menu() @]* diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_49.pg b/Contrib/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_49.pg index a6a9ea66d6..b8175a3708 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_49.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_49.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserPopUp.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -53,9 +53,9 @@ $popup = PopUp( BEGIN_PGML Let [``f(x) = [$f]``]. Find [``f(-x)``] and [``-f(x)``]. Use them to determine whether or not [``f(x)``] is even, odd, or neither. -[` f(-x) = `] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* +[` f(-x) = `] [_______________]{$ans1} [@ helpLink("formulas") @]* -[` -f(x) = `] [_______________]{$ans2} [@ AnswerFormatHelp("formulas") @]* +[` -f(x) = `] [_______________]{$ans2} [@ helpLink("formulas") @]* Is [``f(x)``] odd, even, or neither? [@ $popup->menu() @]* diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_50.pg b/Contrib/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_50.pg index 3853810899..c7db09c020 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_50.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_50.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserPopUp.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -55,9 +55,9 @@ $popup = PopUp( BEGIN_PGML Let [``f(x) = [$f]``]. Find [``f(-x)``] and [``-f(x)``]. Use them to determine whether or not [``f(x)``] is even, odd, or neither. -[` f(-x) = `] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* +[` f(-x) = `] [_______________]{$ans1} [@ helpLink("formulas") @]* -[` -f(x) = `] [_______________]{$ans2} [@ AnswerFormatHelp("formulas") @]* +[` -f(x) = `] [_______________]{$ans2} [@ helpLink("formulas") @]* Is [``f(x)``] odd, even, or neither? [@ $popup->menu() @]* diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_6.pg b/Contrib/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_6.pg index 26754c5742..0c7ba12268 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_6.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_6.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -46,9 +46,9 @@ $ans1 = Compute("sqrt{x+$b}+$a")->reduce(); # Main text BEGIN_PGML -Let [`f(x) = \sqrt{x}`]. Find [`g(x)`], the function that is [`f(x)`] shifted up [`[$a]`] units and left [`[$b]`] units. +Let [`f(x) = \sqrt{x}`]. Find [`g(x)`], the function that is [`f(x)`] shifted up [`[$a]`] units and left [`[$b]`] units. - [` g(x) = `] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* + [` g(x) = `] [_______________]{$ans1} [@ helpLink("formulas") @]* diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_64.pg b/Contrib/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_64.pg index 7187c9a2e7..67e43cca4b 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_64.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_64.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -44,9 +44,9 @@ Context()->variables->set(x=>{limits=>[$a+1,$a+5]}); # Main text BEGIN_PGML -Let [``f(x) = \sqrt{x}``]. Find [`g(x)`], the function that is [`f(x)`] reflected over the [`x`]-axis and horizontally stretched by a factor of [`[$a]`]. +Let [``f(x) = \sqrt{x}``]. Find [`g(x)`], the function that is [`f(x)`] reflected over the [`x`]-axis and horizontally stretched by a factor of [`[$a]`]. - [` g(x) = `] [_______________]{"-sqrt{1/$a*x}"} [@ AnswerFormatHelp("formulas") @]* + [` g(x) = `] [_______________]{"-sqrt{1/$a*x}"} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_8.pg b/Contrib/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_8.pg index 598eab82fd..a1c03350a4 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_8.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_8.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -46,9 +46,9 @@ $ans1 = Compute("(1)/(x-$b)-$a")->reduce(); # Main text BEGIN_PGML -Let [``f(x) = \frac{1}{x}``]. Find [`g(x)`], the function that is [`f(x)`] shifted down [`[$a]`] units and right [`[$b]`] units. +Let [``f(x) = \frac{1}{x}``]. Find [`g(x)`], the function that is [`f(x)`] shifted down [`[$a]`] units and right [`[$b]`] units. - [` g(x) = `] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* + [` g(x) = `] [_______________]{$ans1} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_11.pg b/Contrib/RRCC/College_Algebra/MAT121/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_11.pg index a2657e61e4..597e0308ff 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_11.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_11.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -50,15 +50,15 @@ $yint = List( Point("(0,$a|$b|-$c)") ); BEGIN_PGML Find the x-intercept(s) and y-intercept(s) -of [` y = [$f] `]. +of [` y = [$f] `]. Enter a point as [` (a,b) `], -including the parentheses. If there is more -than one correct answer, enter a comma +including the parentheses. If there is more +than one correct answer, enter a comma separated list of points. -x-intercept(s): [_______________]{"($b+$c/$a,0),($b-$c/$a,0)"} [@ AnswerFormatHelp("points") @]* -y-intercept(s): [_______________]{$yint} [@ AnswerFormatHelp("points") @]* +x-intercept(s): [_______________]{"($b+$c/$a,0),($b-$c/$a,0)"} [@ helpLink("points") @]* +y-intercept(s): [_______________]{$yint} [@ helpLink("points") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_40.pg b/Contrib/RRCC/College_Algebra/MAT121/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_40.pg index c6cf38f2f9..ebd41532ec 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_40.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_40.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -17,12 +17,12 @@ # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGchoicemacros.pl", "PGcourse.pl", @@ -39,8 +39,8 @@ $ans1=Interval("[$b-$a, $b+$a]"); $mc = new_checkbox_multiple_choice(); $mc -> qa ( -"In absolute value notation, where \( x \) represents the score on the test, this is:", -"\( |x-$b| \leq $a \)$BR", +"In absolute value notation, where \( x \) represents the score on the test, this is:", +"\( |x-$b| \leq $a \)$BR", ); $mc -> extra( "\( |x-$b| \geq $a \)$BR", @@ -54,11 +54,11 @@ $mc -> makeLast("None of the above"); # Main text BEGIN_TEXT -A patient needs to keep their blood sugar levels within \( $a \) milligrams per deciliter of \( $b \) milligrams per deciliter. What blood sugar levels are okay for that patient? Enter solution as an interval or union of intervals. (Note: this is a hypothetical situation.) +A patient needs to keep their blood sugar levels within \( $a \) milligrams per deciliter of \( $b \) milligrams per deciliter. What blood sugar levels are okay for that patient? Enter solution as an interval or union of intervals. (Note: this is a hypothetical situation.) $BR $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR $BR \{ $mc -> print_q() \} diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_41.pg b/Contrib/RRCC/College_Algebra/MAT121/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_41.pg index 604ca2ae40..4b02def7ca 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_41.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_41.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -17,12 +17,12 @@ # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGchoicemacros.pl", "PGcourse.pl", @@ -39,8 +39,8 @@ $ans1=Interval("[$b-$a, $b+$a]"); $mc = new_checkbox_multiple_choice(); $mc -> qa ( -"In absolute value notation, where \( x \) represents the machined diameter, this is:", -"\( |x-$b| \leq $a \)$BR", +"In absolute value notation, where \( x \) represents the machined diameter, this is:", +"\( |x-$b| \leq $a \)$BR", ); $mc -> extra( "\( |x-$b| \geq $a \)$BR", @@ -54,11 +54,11 @@ $mc -> makeLast("None of the above"); # Main text BEGIN_TEXT -A machinist must produce a bearing that is within \( $a \) inches of the correct diameter of \( $b \) inches. What are the possible diameters that will work? Enter solution as an interval or union of intervals. +A machinist must produce a bearing that is within \( $a \) inches of the correct diameter of \( $b \) inches. What are the possible diameters that will work? Enter solution as an interval or union of intervals. $BR $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR $BR \{ $mc -> print_q() \} diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_5.pg b/Contrib/RRCC/College_Algebra/MAT121/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_5.pg index c24d1b77d3..629625217b 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_5.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_5.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -17,12 +17,12 @@ # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGchoicemacros.pl", "PGcourse.pl", @@ -39,8 +39,8 @@ $ans1=List("$b-$a, $b+$a"); $mc = new_checkbox_multiple_choice(); $mc -> qa ( -"In absolute value notation, where \( x \) represents the numbers, this is:", -"\( |x-$b|=$a \)$BR", +"In absolute value notation, where \( x \) represents the numbers, this is:", +"\( |x-$b|=$a \)$BR", ); $mc -> extra( "\( |x+$b|=$a \)$BR", @@ -54,11 +54,11 @@ $mc -> makeLast("None of the above"); # Main text BEGIN_TEXT -List all numbers that are a distance of \( $a \) from the number \( $b \). Enter as a comma separated list. +List all numbers that are a distance of \( $a \) from the number \( $b \). Enter as a comma separated list. $BR $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR $BR \{ $mc -> print_q() \} diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_7.pg b/Contrib/RRCC/College_Algebra/MAT121/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_7.pg index a3d16aa756..c19efc4a28 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_7.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_7.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -17,12 +17,12 @@ # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGchoicemacros.pl", "PGcourse.pl", @@ -39,8 +39,8 @@ $ans1=Interval("(-infinity,$b-$a]U[$b+$a,infinity)"); $mc = new_checkbox_multiple_choice(); $mc -> qa ( -"In absolute value notation, where \( x \) represents the numbers, this is:", -"\( |x-$b| \geq $a \)$BR", +"In absolute value notation, where \( x \) represents the numbers, this is:", +"\( |x-$b| \geq $a \)$BR", ); $mc -> extra( "\( |x-$b|\leq$a \)$BR", @@ -54,11 +54,11 @@ $mc -> makeLast("None of the above"); # Main text BEGIN_TEXT -Find the interval(s) of numbers that are at least a distance of \( $a \) from \( $b \). Enter solution as an interval or union of intervals. +Find the interval(s) of numbers that are at least a distance of \( $a \) from \( $b \). Enter solution as an interval or union of intervals. $BR $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR $BR \{ $mc -> print_q() \} diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_8.pg b/Contrib/RRCC/College_Algebra/MAT121/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_8.pg index 28f2d0775f..5e86b9bad2 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_8.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_8.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -17,12 +17,12 @@ # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGchoicemacros.pl", "PGcourse.pl", @@ -39,8 +39,8 @@ $ans1=Interval("($b-$a, $b+$a)"); $mc = new_checkbox_multiple_choice(); $mc -> qa ( -"In absolute value notation, where \( x \) represents the numbers, this is:", -"\( |x-$b| < $a \)$BR", +"In absolute value notation, where \( x \) represents the numbers, this is:", +"\( |x-$b| < $a \)$BR", ); $mc -> extra( "\( |x-$b| > $a \)$BR", @@ -54,11 +54,11 @@ $mc -> makeLast("None of the above"); # Main text BEGIN_TEXT -Find the interval(s) of numbers that are less than a distance of \( $a \) from \( $b \). Enter solution as an interval or union of intervals. +Find the interval(s) of numbers that are less than a distance of \( $a \) from \( $b \). Enter solution as an interval or union of intervals. $BR $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR $BR \{ $mc -> print_q() \} diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_9.pg b/Contrib/RRCC/College_Algebra/MAT121/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_9.pg index a2657e61e4..597e0308ff 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_9.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_9.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -50,15 +50,15 @@ $yint = List( Point("(0,$a|$b|-$c)") ); BEGIN_PGML Find the x-intercept(s) and y-intercept(s) -of [` y = [$f] `]. +of [` y = [$f] `]. Enter a point as [` (a,b) `], -including the parentheses. If there is more -than one correct answer, enter a comma +including the parentheses. If there is more +than one correct answer, enter a comma separated list of points. -x-intercept(s): [_______________]{"($b+$c/$a,0),($b-$c/$a,0)"} [@ AnswerFormatHelp("points") @]* -y-intercept(s): [_______________]{$yint} [@ AnswerFormatHelp("points") @]* +x-intercept(s): [_______________]{"($b+$c/$a,0),($b-$c/$a,0)"} [@ helpLink("points") @]* +y-intercept(s): [_______________]{$yint} [@ helpLink("points") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_11.pg b/Contrib/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_11.pg index 5376ed8bd7..4d3a06cc0b 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_11.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_11.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,7 +50,7 @@ $ans1 = Formula("(-$b*x)/(x-$a)")->reduce(); BEGIN_PGML Let [``f(x) = [$f]``]. Find [` f^{-1}(x) `]. - [` f^{-1}(x) = `] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* + [` f^{-1}(x) = `] [_______________]{$ans1} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_12.pg b/Contrib/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_12.pg index 489e0c14ae..34f1917917 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_12.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_12.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -52,7 +52,7 @@ $ans1 = Formula("($b-$d*x)/($c*x-$a)")->reduce(); BEGIN_PGML Let [``f(x) = [$f]``]. Find [` f^{-1}(x) `]. - [` f^{-1}(x) = `] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* + [` f^{-1}(x) = `] [_______________]{$ans1} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_13.pg b/Contrib/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_13.pg index 75a74ea6f0..9e7990dbb4 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_13.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_13.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "contextPiecewiseFunction.pl", @@ -41,7 +41,7 @@ Context("Interval"); $domain = Interval("[$b,$a]"); Context("Numeric"); -$fun = Formula("(x-$b)^2 ")->reduce; +$fun = Formula("(x-$b)^2 ")->reduce; $inv = Formula("sqrt(x) + $b"); @@ -54,15 +54,15 @@ $g = $fun->eval(x => 0); BEGIN_PGML -Find the largest domain for [` f(x)=[$fun] `], with upper [`x`] bound [$a], such that the function [`f`] is one-to one and non-decreasing . +Find the largest domain for [` f(x)=[$fun] `], with upper [`x`] bound [$a], such that the function [`f`] is one-to one and non-decreasing . - One-to-one domain: [_________________]{$domain} [@ AnswerFormatHelp("intervals") @]* + One-to-one domain: [_________________]{$domain} [@ helpLink("intervals") @]* Your answers must be in interval notation. Find the inverse of [`f`] restricted to that domain. - [`f^{-1}(x) = `] [___________________]{$inv} [@ AnswerFormatHelp("formulas") @]* + [`f^{-1}(x) = `] [___________________]{$inv} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_15.pg b/Contrib/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_15.pg index 0c47ccad35..b0effc815e 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_15.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_15.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "contextPiecewiseFunction.pl", @@ -41,7 +41,7 @@ Context("Interval"); $domain = Interval("[0,$a]"); Context("Numeric"); -$fun = Formula("(x^2-$b)")->reduce; +$fun = Formula("(x^2-$b)")->reduce; $inv = Formula("sqrt(x+$b)"); @@ -54,15 +54,15 @@ $g = $fun->eval(x => 0); BEGIN_PGML -Find the largest domain for [` f(x)=[$fun] `], with upper [`x`] bound [$a], such that the function [`f`] is one-to one and non-decreasing . +Find the largest domain for [` f(x)=[$fun] `], with upper [`x`] bound [$a], such that the function [`f`] is one-to one and non-decreasing . - One-to-one domain: [_________________]{$domain} [@ AnswerFormatHelp("intervals") @]* + One-to-one domain: [_________________]{$domain} [@ helpLink("intervals") @]* Your answers must be in interval notation. Find the inverse of [`f`] restricted to that domain. - [`f^{-1}(x) = `] [___________________]{$inv} [@ AnswerFormatHelp("formulas") @]* + [`f^{-1}(x) = `] [___________________]{$inv} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_25.pg b/Contrib/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_25.pg index 05a727d7cb..c57c86090d 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_25.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_25.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -59,7 +59,7 @@ Let the graph of \( f(x) \) be given below. Find the following. $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>300,height=>300,tex_size=>800 ) \} $BR $BR @@ -69,11 +69,11 @@ $BR $BR $BR \( f(0) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR $BR \( f^{-1}(0) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR $BR $ECENTER diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_37.pg b/Contrib/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_37.pg index 147a1d81b7..d9843dcd5d 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_37.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_37.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "niceTables.pl", "PGML.pl", "PGcourse.pl", @@ -35,14 +35,14 @@ $showPartialCorrectAnswers = 1; # Setup #future thought, build these using a permutation of-10 through 10 and grab first 9 -$f1 = list_random(1,-9,-13); -$f2 = list_random(2,-8,12); +$f1 = list_random(1,-9,-13); +$f2 = list_random(2,-8,12); $f3 = list_random(3,-7,-11); -$f4 = list_random(4,-6,10); -$f5 = list_random(5,-5,0); +$f4 = list_random(4,-6,10); +$f5 = list_random(5,-5,0); $f6 = list_random(6,-4,-10); -$f7 = list_random(7,-3,11); -$f8 = list_random(8,-2,-12); +$f7 = list_random(7,-3,11); +$f8 = list_random(8,-2,-12); $f9 = list_random(9,-1,13); $s = random(1,9,1); @@ -106,7 +106,7 @@ LayoutTable( [ ['\(x\)' , '1' ,'2' ,'3' ,'4' ,'5' ,'6','7','8','9'], ['\(f(x)\)' , $f1 ,$f2 ,$f3 ,$f4 ,$f5 ,$f6, $f7, $f8, $f9], - ], + ], midrules => 1, align => '| c | c | c | c | c | c | c | c | c | c |', center => 0, @@ -117,16 +117,16 @@ $BR Use the table to evaluate the expressions: $BR $BR -\(f($s)=\) \{ans_rule(20)\} \{ AnswerFormatHelp("numbers") \} +\(f($s)=\) \{ans_rule(20)\} \{ helpLink("numbers") \} $BR $BR -\(f($t)=\) \{ans_rule(20)\} \{ AnswerFormatHelp("numbers") \} +\(f($t)=\) \{ans_rule(20)\} \{ helpLink("numbers") \} $BR $BR -\(f^{-1}($u)=\) \{ans_rule(20)\} \{ AnswerFormatHelp("numbers") \} +\(f^{-1}($u)=\) \{ans_rule(20)\} \{ helpLink("numbers") \} $BR $BR -\(f^{-1}($v)=\) \{ans_rule(20)\} \{ AnswerFormatHelp("numbers") \} +\(f^{-1}($v)=\) \{ans_rule(20)\} \{ helpLink("numbers") \} $ECENTER END_TEXT diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_45.pg b/Contrib/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_45.pg index 349c96fa7c..16138b65d0 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_45.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_45.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "niceTables.pl", "PGML.pl", "PGcourse.pl", @@ -46,7 +46,7 @@ $ans1 = Formula("5/9*x - 5/9*32"); BEGIN_PGML To convert from x degrees Celsius to y degrees Fahrenheit, we use the formula [`` f(x) = \frac{9}{5} x + 32 ``]. Find the inverse function, if it exists, and be sure you could explain its meaning. -[`f^{-1}(x)=`] [___________________________]{"5/9*x-160/9"} [@ AnswerFormatHelp("formulas") @]* +[`f^{-1}(x)=`] [___________________________]{"5/9*x-160/9"} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_7.pg b/Contrib/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_7.pg index 8cbe0780e1..651bc1eb8a 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_7.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_7.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,7 +50,7 @@ $ans1 = Formula("(x-$b)/$a")->reduce(); BEGIN_PGML Let [`f(x) = [$f]`]. Find [` f^{-1}(x) `]. - [` f^{-1}(x) = `] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* + [` f^{-1}(x) = `] [_______________]{$ans1} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_7_box.pg b/Contrib/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_7_box.pg index ec08a949af..cbd9cdc532 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_7_box.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_7_box.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGchoicemacros.pl", "PGML.pl", "PGcourse.pl", @@ -36,8 +36,8 @@ $showPartialCorrectAnswers = 1; $mc = new_checkbox_multiple_choice(); $mc -> qa ( -"", -"\( f^{-1}(x) \)$BR", +"", +"\( f^{-1}(x) \)$BR", ); $mc -> extra( "\( f(x) \)$BR", @@ -63,7 +63,7 @@ $ans1 = Formula("(x-$b)/$a")->reduce(); BEGIN_PGML Let [`f(x) = [$f]`]. Find and enter the inverse of [`f(x)`] -[_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* +[_______________]{$ans1} [@ helpLink("formulas") @]* Select the correct notation for the inverse of [`f(x)`]. END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_7_16.pg b/Contrib/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_7_16.pg index b1388a314e..ed157b59e1 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_7_16.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_7_16.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "niceTables.pl", "PGML.pl", "PGcourse.pl", diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_7_18.pg b/Contrib/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_7_18.pg index 689645e361..7a802b6370 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_7_18.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_7_18.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "niceTables.pl", "PGML.pl", "PGcourse.pl", diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_7_21.pg b/Contrib/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_7_21.pg index 31fba32895..dfe0182028 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_7_21.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_7_21.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "niceTables.pl", "PGML.pl", "PGcourse.pl", diff --git a/Contrib/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_7_57.pg b/Contrib/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_7_57.pg index 0bcc51295a..e7fe647fe7 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_7_57.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_7_57.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "niceTables.pl", "PGML.pl", "PGcourse.pl", diff --git a/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_01.pg b/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_01.pg index 5a029c5ae6..28e664e9fb 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_01.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_01.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) ## DBsection(Applications and models) @@ -11,17 +11,17 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,7 +29,7 @@ loadMacros( "PGcourse.pl", "parserPopUp.pl", ); - + TEXT(beginproblem()); $showPartialCorrectAnswers = 0; @@ -40,41 +40,41 @@ Context("Numeric"); $start=random(2000,4000,200); $speed=random(40,80,5); -# Adding the two letters as variables +# Adding the two letters as variables Context()->variables->add(t => "Real"); $popupTime = PopUp(["?", "hour", "minute", "second", "day"], "second"); -$popupDist = PopUp(["?", "meters", "feet", "inches"], "feet"); +$popupDist = PopUp(["?", "meters", "feet", "inches"], "feet"); + + - - ########################### # Main text - + BEGIN_PGML Terry is skiing down a steep hill. Terry's elevation, [`E(t)`], in feet after [`t`] seconds is given by the equation - [`E(t)=[$start]-[$speed]t `]. + [`E(t)=[$start]-[$speed]t `]. + +Complete the following sentence describing Terry's starting elevation and how it is changing over time. + -Complete the following sentence describing Terry's starting elevation and how it is changing over time. - - - He is starting from a height of [____]{$start} feet and is skiing downhill at a speed of [____]{$speed} [_____]{$popupDist} per [_____]{$popupTime} [@ AnswerFormatHelp("numbers") @]* + He is starting from a height of [____]{$start} feet and is skiing downhill at a speed of [____]{$speed} [_____]{$popupDist} per [_____]{$popupTime} [@ helpLink("numbers") @]* Note: to get the problem correct, you must provide the correct answer to every part - + END_PGML - - + + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_02.pg b/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_02.pg index f2be99d239..f4d8c2541e 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_02.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_02.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) ## DBsection(Applications and models) @@ -11,17 +11,17 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,10 +29,10 @@ loadMacros( "PGcourse.pl", "parserPopUp.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -50,32 +50,32 @@ $endDist=non_zero_random(0,2,0.2); $speed= Formula(($startDist-$endDist)/(($endTime-$startTime)/60)); - + ########################### # Main text - + BEGIN_PGML Fernando is walking home from a friend\'s house at a constant speed. After [$startTime] minutes he is [$startDist] miles from home. [$endTime] minutes after leaving, he is [$endDist] miles -from home. +from home. What is his rate in *miles per hour* (mph)? -[_____]{$speed} mph. [@ AnswerFormatHelp("numbers") @]* +[_____]{$speed} mph. [@ helpLink("numbers") @]* + - END_PGML - - + + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_03.pg b/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_03.pg index 512b9514fb..95a957067a 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_03.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_03.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) ## DBsection(Applications and models) @@ -11,37 +11,37 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", "PGML.pl", "PGcourse.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); - + $distance=non_zero_random(40,200,20); $speed = random(10,30,2); -# Adding the two letters as variables +# Adding the two letters as variables Context()->variables->add(t => "Real"); Context()->variables->add(d => "Real"); @@ -49,7 +49,7 @@ Context()->variables->add(d => "Real"); # The two sides of the correct answer $ans1=d; $ans2=Formula("$distance- t*$speed"); - + # Allows for the correct equation to be given in either order $multians = MultiAnswer($ans1, $ans2)->with( @@ -60,38 +60,38 @@ $multians = MultiAnswer($ans1, $ans2)->with( my ( $f1, $f2) = @{$correct}; if ( ( $f1 == $stu1 && $f2 == $stu2) || ( $f1 == $stu2 && $f2 == $stu1) ) -{return [1,1];} - +{return [1,1];} + else { return [0,0]; } - + } ); - - + + ########################### # Main text - + BEGIN_PGML -A boat is [$distance] miles away from the marina, sailing directly toward it at [$speed] miles per hour. +A boat is [$distance] miles away from the marina, sailing directly toward it at [$speed] miles per hour. + +Write an equation for the distance of the boat from the marina, [`d`], after [`t`] hours. + + [____]{$multians} [`=`] [____]{$multians} [@ helpLink("numbers") @]* + -Write an equation for the distance of the boat from the marina, [`d`], after [`t`] hours. - - [____]{$multians} [`=`] [____]{$multians} [@ AnswerFormatHelp("numbers") @]* - - END_PGML - - - + + + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_04.pg b/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_04.pg index 226d6335d9..59790107ef 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_04.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_04.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) ## DBsection(Parallel and perpendicular lines) @@ -11,17 +11,17 @@ ## Author(Michael Sulock, Edited: Steven Wray 7/22/17) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,48 +29,48 @@ loadMacros( "PGcourse.pl", "parserPopUp.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Fraction"); - -# Do we want a negative numerator? + +# Do we want a negative numerator? $numerator=non_zero_random(-20,20,1); $denominator=random(1,20,1); -# Adding the two letters as variables +# Adding the two letters as variables Context()->variables->add(t => "Real"); $slope = Fraction($numerator,$denominator); $answer = Compute("-$denominator/$numerator"); - - + + ########################### # Main text - + BEGIN_PGML -Given a linear equation with a slope of [`\displaystyle[$slope]`], determine the slope of a line that is perpendicular. +Given a linear equation with a slope of [`\displaystyle[$slope]`], determine the slope of a line that is perpendicular. + +[____]{$answer} [@ helpLink("numbers") @]* -[____]{$answer} [@ AnswerFormatHelp("numbers") @]* - END_PGML - - + + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_05.pg b/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_05.pg index 304e9724fa..2257aa9a4b 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_05.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_05.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) ## DBsection(Parallel and perpendicular lines) @@ -11,17 +11,17 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,45 +29,45 @@ loadMacros( "PGcourse.pl", "parserPopUp.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Point"); - + $letterN=random(0,10,1); @letter = qw/ a b c d e f g h j k m/; $var = $letter[$letterN]; -# Adding the two letters as variables +# Adding the two letters as variables Context()->variables->add($var => "Real"); $answer = Point("($var, $var)"); - - + + ########################### # Main text - + BEGIN_PGML -If a horizontal line has the equation [`f(x) = [$var]`] and a vertical line has the equation [`x = [$var]`], what is the point of their intersection? +If a horizontal line has the equation [`f(x) = [$var]`] and a vertical line has the equation [`x = [$var]`], what is the point of their intersection? + +[____]{$answer} [@ helpLink("points") @]* -[____]{$answer} [@ AnswerFormatHelp("points") @]* - END_PGML - - + + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_07.pg b/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_07.pg index 3e7f2907ba..1cd99c6f3a 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_07.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_07.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) ## DBsection(Linear functions) @@ -11,17 +11,17 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,10 +29,10 @@ loadMacros( "PGcourse.pl", "parserPopUp.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup @@ -58,27 +58,27 @@ if ( $chooser == 0) { $popup = PopUp(["?","yes", "no"], "yes"); } - + ########################### # Main text - + BEGIN_PGML -Determine whether the following equation can be written as a linear function. +Determine whether the following equation can be written as a linear function. [`y = [$equation]`] -[____]{$popup} - +[____]{$popup} + END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_09.pg b/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_09.pg index 7ca2973114..ddda5b1460 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_09.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_09.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) ## DBsection(Linear functions) @@ -11,17 +11,17 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,10 +29,10 @@ loadMacros( "PGcourse.pl", "parserPopUp.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -64,27 +64,27 @@ if ( $chooser == 0) { $popup = PopUp(["?", "yes", "no"], "yes"); } - + ########################### # Main text - + BEGIN_PGML -Determine whether the following equation can be written as a linear function. +Determine whether the following equation can be written as a linear function. [` [$equation] = [$rightSide]`] -[____]{$popup} - +[____]{$popup} + END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_11.pg b/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_11.pg index ee60c4c0dd..69e84da5d9 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_11.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_11.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) ## DBsection(Linear functions) @@ -11,17 +11,17 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,10 +29,10 @@ loadMacros( "PGcourse.pl", "parserPopUp.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -64,27 +64,27 @@ if ( $chooser == 0) { $popup = PopUp(["?","yes", "no"], "no"); } - + ########################### # Main text - + BEGIN_PGML -Determine whether the following equation can be written as a linear function. +Determine whether the following equation can be written as a linear function. [` [$equation] = [$rightSide]`] -[____]{$popup} - +[____]{$popup} + END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_13.pg b/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_13.pg index ab7a92ccfc..6e92bde6b9 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_13.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_13.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) ## DBsection(Linear functions) @@ -11,17 +11,17 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,10 +29,10 @@ loadMacros( "PGcourse.pl", "parserPopUp.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -66,27 +66,27 @@ if ( $chooser == 0) { $popup = PopUp(["?","yes", "no"], "yes"); } - + ########################### # Main text - + BEGIN_PGML -Determine whether the following equation can be written as a linear function. +Determine whether the following equation can be written as a linear function. [` \displaystyle[$equation] = [$rightSide]*y`] -[____]{$popup} - +[____]{$popup} + END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_15.pg b/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_15.pg index 10c51d2c30..ad6b2d293f 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_15.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_15.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) ## DBsection(Linear functions) @@ -11,17 +11,17 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,10 +29,10 @@ loadMacros( "PGcourse.pl", "parserPopUp.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -67,27 +67,27 @@ if ( $chooser == 0) { $popup = PopUp(["?","increasing", "decreasing"], "increasing"); } - + ########################### # Main text - + BEGIN_PGML Determine whether the following function is increasing or decreasing. [` g(x) = [$equation]`] -[____]{$popup} - +[____]{$popup} + END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_17.pg b/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_17.pg index ad8743e031..1ffbea8e90 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_17.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_17.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) ## DBsection(Linear functions) @@ -11,17 +11,17 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,10 +29,10 @@ loadMacros( "PGcourse.pl", "parserPopUp.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -67,27 +67,27 @@ if ( $chooser == 0) { $popup = PopUp(["?","increasing", "decreasing"], "increasing"); } - + ########################### # Main text - + BEGIN_PGML -Determine whether the following function is increasing or decreasing. +Determine whether the following function is increasing or decreasing. [` g(x) = [$equation]`] -[____]{$popup} - +[____]{$popup} + END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_19.pg b/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_19.pg index dffcbf35f0..f11b0f52c7 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_19.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_19.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) ## DBsection(Linear functions) @@ -11,17 +11,17 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,10 +29,10 @@ loadMacros( "PGcourse.pl", "parserPopUp.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -68,27 +68,27 @@ if ( $chooser == 0) { $popup = PopUp(["?","increasing", "decreasing"], "increasing"); } - + ########################### # Main text - + BEGIN_PGML -Determine whether the following function is increasing or decreasing. +Determine whether the following function is increasing or decreasing. [` g(x) = [$equation]`] -[____]{$popup} - +[____]{$popup} + END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_21.pg b/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_21.pg index 7cfc680562..c34b68d523 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_21.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_21.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) ## DBsection(Linear functions) @@ -11,17 +11,17 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,10 +29,10 @@ loadMacros( "PGcourse.pl", "parserPopUp.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Fraction"); @@ -68,27 +68,27 @@ if ( $chooser == 0) { $popup = PopUp(["?","increasing", "decreasing"], "increasing"); } - + ########################### # Main text - + BEGIN_PGML -Determine whether the following function is increasing or decreasing. +Determine whether the following function is increasing or decreasing. [` g(x) = [$equation]`] -[____]{$popup} - +[____]{$popup} + END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_23.pg b/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_23.pg index 0f6c9bc30a..ac646986c4 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_23.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_23.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) ## DBsection(Linear functions) @@ -10,17 +10,17 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -28,10 +28,10 @@ loadMacros( "PGcourse.pl", "parserPopUp.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Fraction"); @@ -63,27 +63,27 @@ if ( $chooser == 0) { $popup = PopUp(["?","increasing", "decreasing"], "decreasing"); } - + ########################### # Main text - + BEGIN_PGML -Determine whether the following function is increasing or decreasing. +Determine whether the following function is increasing or decreasing. [` g(x) = [$equation]`] -[____]{$popup} - +[____]{$popup} + END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_25.pg b/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_25.pg index 004d06d2e7..903cebc50a 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_25.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_25.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) ## DBsection(Finding the slope) @@ -11,17 +11,17 @@ ## Author(Michael Sulock, Edited: Steven Wray, 7/22/17) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,10 +29,10 @@ loadMacros( "PGcourse.pl", "parserPopUp.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -48,30 +48,30 @@ $y2 = non_zero_random (-10,10,1); $ans = Formula("($y1-$y2)/($x1-$x2)"); - + ########################### # Main text - + BEGIN_PGML Find the slope of the line that passes through the following points -[` ([$x1],[$y1])`] and [` ([$x2],[$y2])`] +[` ([$x1],[$y1])`] and [` ([$x2],[$y2])`] + +[____]{$ans} [@ helpLink("numbers") @]* -[____]{$ans} [@ AnswerFormatHelp("numbers") @]* - END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - -COMMENT('MathObject version. Uses PGML.'); - + +COMMENT('MathObject version. Uses PGML.'); + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_27.pg b/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_27.pg index f03a793d79..07ebb9fae9 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_27.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_27.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) ## DBsection(Finding the slope) @@ -11,17 +11,17 @@ ## Author(Michael Sulock, Edited: Steven Wray 7/22/17) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,10 +29,10 @@ loadMacros( "PGcourse.pl", "parserPopUp.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -48,32 +48,32 @@ $y2 = non_zero_random (-20,10,1); $ans = Formula("($y1-$y2)/($x1-$x2)"); - + ########################### # Main text - + BEGIN_PGML Find the slope of the line that passes through the following points -[` ([$x1],[$y1])`] and [` ([$x2],[$y2])`] +[` ([$x1],[$y1])`] and [` ([$x2],[$y2])`] + +[____]{$ans} [@ helpLink("numbers") @]* -[____]{$ans} [@ AnswerFormatHelp("numbers") @]* - END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_29.pg b/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_29.pg index 795bb59541..ce21f10c93 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_29.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_29.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) ## DBsection(Equations of lines: slope-intercept form) @@ -11,17 +11,17 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -30,10 +30,10 @@ loadMacros( "parserPopUp.pl", "parserAssignment.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric")->variables->are(x=>"Real"); @@ -50,29 +50,29 @@ $y2 = Formula($slope*$x2+$yint); $ans =Formula("$slope(x)+$yint"); - + ########################### # Main text - + BEGIN_PGML Find a linear equation satisfying the following [`f([$x1]) = [$y1]`] and [`f([$x2]) = [$y2]`] -[`f(x) = `][____]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`f(x) = `][____]{$ans} [@ helpLink("formulas") @]* + - END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_31.pg b/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_31.pg index c45048c5f7..df6da20a1e 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_31.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_31.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) ## DBsection(Equations of lines: slope-intercept form) @@ -11,17 +11,17 @@ ## Author(Michael Sulock, Edited: Steven Wray, 7/22/17) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -30,10 +30,10 @@ loadMacros( "parserPopUp.pl", "parserAssignment.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric")->variables->are(x=>"Real"); @@ -50,29 +50,29 @@ $y2 = Formula($slope*$x2+$yint); $ans =Formula("$slope(x)+$yint"); - + ########################### # Main text - + BEGIN_PGML Find a linear equation satisfying the following conditions: Passes through the points [`([$x1],[$y1])`] and [`([$x2],[$y2])`] -[`f(x) = `][____]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`f(x) = `][____]{$ans} [@ helpLink("formulas") @]* + - END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_33.pg b/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_33.pg index 6924860922..0d483a627a 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_33.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_33.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) ## DBsection(Equations of lines: slope-intercept form) @@ -11,17 +11,17 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -30,10 +30,10 @@ loadMacros( "parserPopUp.pl", "parserAssignment.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric")->variables->are(x=>"Real"); @@ -50,29 +50,29 @@ $y2 = Formula($slope*$x2+$yint); $ans =Formula("$slope(x)+$yint"); - + ########################### # Main text - + BEGIN_PGML Find a linear equation satisfying the following conditions: Passes through the points [`([$x1],[$y1])`] and [`([$x2],[$y2])`] -[`f(x) = `][____]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`f(x) = `][____]{$ans} [@ helpLink("formulas") @]* + - END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_35.pg b/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_35.pg index 4ef205b621..0f35200133 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_35.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_35.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) ## DBsection(Equations of lines: slope-intercept form) @@ -11,17 +11,17 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -30,10 +30,10 @@ loadMacros( "parserPopUp.pl", "parserAssignment.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -51,29 +51,29 @@ $ans =Formula("$slope(x)+$yint"); #[-\frac{[$yint]}{[$slope]}] - + ########################### # Main text - + BEGIN_PGML Find a linear equation satisfying the following conditions: x-Intercept at [`(\displaystyle[$xint], 0)`] and y-intercept at [`(0,[$yint])`] -[`f(x) = `][____]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`f(x) = `][____]{$ans} [@ helpLink("formulas") @]* + - END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_37.pg b/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_37.pg index d256a14f97..ef8fe1ac6a 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_37.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_37.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) ## DBsection(Parallel and perpendicular lines) @@ -11,17 +11,17 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,10 +29,10 @@ loadMacros( "PGcourse.pl", "parserPopUp.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -75,30 +75,30 @@ if ( $chooser == 0) { $popup = PopUp(["?","parallel", "perpendicular", "neither"], "neither"); } - + ########################### # Main text - + BEGIN_PGML -Determine whether the following equations are parallel, perpendicular, or neither. +Determine whether the following equations are parallel, perpendicular, or neither. [` [$equation1] = [$rightSide1]`] [` [$equation2] = [$rightSide2]`] -[____]{$popup} - +[____]{$popup} + END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_39.pg b/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_39.pg index f11ed495ab..056091faa1 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_39.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_39.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) ## DBsection(Parallel and perpendicular lines) @@ -11,17 +11,17 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,10 +29,10 @@ loadMacros( "PGcourse.pl", "parserPopUp.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -56,7 +56,7 @@ do {$f = random(2,9,1);} until ($f*$mult != $c); # Creates 4 equations and the corresponding correct answer # in a dropdown menu if ( $chooser == 0) { - + $e= $b*$mult; $d = $a*$mult; @@ -68,37 +68,37 @@ if ( $chooser == 0) { $popup = PopUp(["?","parallel", "perpendicular", "neither"], "perpendicular"); } else { - + $e = $a+1; $d = $b+$mult; $popup = PopUp(["?","parallel", "perpendicular", "neither"], "neither"); -} - +} + ########################### # Main text - + BEGIN_PGML -Determine whether the following equations are parallel, perpendicular, or neither. +Determine whether the following equations are parallel, perpendicular, or neither. [` [$a]y-[$b]x = [$c]`] [` [$d]y = [$e]x+[$f]`] -[____]{$popup} - +[____]{$popup} + END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_41.pg b/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_41.pg index 7e026c63d1..44762c68c5 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_41.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_41.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) ## DBsection(Graphs of lines) @@ -11,17 +11,17 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,10 +29,10 @@ loadMacros( "PGcourse.pl", "parserPopUp.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Point"); @@ -49,30 +49,30 @@ $yintP = Point(0, $yint); $xintP = Point($xint, 0); - + ########################### # Main text - + BEGIN_PGML Find the x and y intercepts of the following equation [`h(x) = [$slope]x+[$yint]`] -x intercept is [______]{$xintP} [@ AnswerFormatHelp("points") @]* +x intercept is [______]{$xintP} [@ helpLink("points") @]* + +y intercept is [______]{$yintP} [@ helpLink("points") @]* -y intercept is [______]{$yintP} [@ AnswerFormatHelp("points") @]* - END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_43.pg b/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_43.pg index 742bf4e1bd..1b1a058d01 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_43.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_43.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) ## DBsection(Graphs of lines) @@ -11,17 +11,17 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,10 +29,10 @@ loadMacros( "PGcourse.pl", "parserPopUp.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Point"); @@ -49,30 +49,30 @@ $yintP = Point(0, $yint); $xintP = Point($xint, 0); - + ########################### # Main text - + BEGIN_PGML Find the x and y intercepts of the following equation [`g(x) = [$slope]x+[$yint]`] -x intercept is [______]{$xintP} [@ AnswerFormatHelp("points") @]* +x intercept is [______]{$xintP} [@ helpLink("points") @]* + +y intercept is [______]{$yintP} [@ helpLink("points") @]* -y intercept is [______]{$yintP} [@ AnswerFormatHelp("points") @]* - END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_45.pg b/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_45.pg index d90202f809..f61d4f123b 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_45.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_45.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) ## DBsection(Graphs of lines) @@ -11,17 +11,17 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,10 +29,10 @@ loadMacros( "PGcourse.pl", "parserPopUp.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Point"); @@ -51,30 +51,30 @@ $yintP = Point(0, $yint); $xintP = Point($xint, 0); - + ########################### # Main text - + BEGIN_PGML Find the x and y intercepts of the following equation [`[$coeffX]x+[$coeffY]y = [$rightSide]`] -x intercept is [______]{$xintP} [@ AnswerFormatHelp("points") @]* +x intercept is [______]{$xintP} [@ helpLink("points") @]* + +y intercept is [______]{$yintP} [@ helpLink("points") @]* -y intercept is [______]{$yintP} [@ AnswerFormatHelp("points") @]* - END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_53.pg b/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_53.pg index a61ee02a9d..49f5f45425 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_53.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_53.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) ## DBsection(Parallel and perpendicular lines) @@ -11,17 +11,17 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,10 +29,10 @@ loadMacros( "PGcourse.pl", "parserPopUp.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -49,26 +49,26 @@ $ansYint = ($yCord-$slope*($xCord)); $ans = Formula("$slope(x)+$ansYint")-> reduce; - + ########################### # Main text - + BEGIN_PGML Write an equation for the line parallel to [`g(x) = [$slope]x+[$intercept]`] and passing through the point [`([$xCord], [$yCord])`]. - -[`P(x) = `] [______]{$ans} [@ AnswerFormatHelp("formulas") @]* + +[`P(x) = `] [______]{$ans} [@ helpLink("formulas") @]* END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_55.pg b/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_55.pg index 2a23d616d6..e83e3c33d9 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_55.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_55.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) ## DBsection(Parallel and perpendicular lines) @@ -11,17 +11,17 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,10 +29,10 @@ loadMacros( "PGcourse.pl", "parserPopUp.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup @@ -51,23 +51,23 @@ $ans = Formula("$ansSlope(x)+$ansYint")->reduce; ########################### # Main text - + BEGIN_PGML Write an equation for the line perpendicular to [`g(x) = [$slope]x+[$intercept]`] and passing through the point [`([$xCord], [$yCord])`] -[`P(x) = `] [______]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`P(x) = `] [______]{$ans} [@ helpLink("formulas") @]* END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_57.pg b/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_57.pg index b91ded6bfc..81ffe82c47 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_57.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_57.pg @@ -1,7 +1,7 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - + ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) ## DBsection(Finding the slope) @@ -10,33 +10,33 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", "PGcourse.pl", "contextLimitedPoint.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup -# +# $limit = 5; @@ -52,31 +52,31 @@ texsize=>300, ); -add_functions($gr, "($slope(x)+$intercept) for x in <-$limit,$limit>" . +add_functions($gr, "($slope(x)+$intercept) for x in <-$limit,$limit>" . " using color:blue and weight:2"); ########################### # Main text - + BEGIN_PGML -Find the slope of the graphed line. +Find the slope of the graphed line. >> [@ image(insertGraph($gr), tex_size=>16000, width=>400, height=>400), @]* << -The slope is [______]{$slope} [@ AnswerFormatHelp("numbers") @]* +The slope is [______]{$slope} [@ helpLink("numbers") @]* END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_59.pg b/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_59.pg index c9e0692b28..0d110d8eb8 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_59.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_59.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) ## DBsection(Equations of lines: slope-intercept form) @@ -11,33 +11,33 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", "PGcourse.pl", "contextLimitedPoint.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup -# +# $limit = 5; @@ -53,7 +53,7 @@ texsize=>300, ); -add_functions($gr, "($slope(x)+$intercept) for x in <-$limit,$limit>" . +add_functions($gr, "($slope(x)+$intercept) for x in <-$limit,$limit>" . " using color:blue and weight:2"); Context("Numeric"); @@ -62,23 +62,23 @@ $ans = Formula(" $slope(x) +$intercept")->reduce; ########################### # Main text - + BEGIN_PGML -Find the equation of the graphed line. +Find the equation of the graphed line. >> [@ image(insertGraph($gr), tex_size=>16000, width=>400, height=>400), @]* << -[`f(x) = `] [______]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`f(x) = `] [______]{$ans} [@ helpLink("formulas") @]* END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_61.pg b/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_61.pg index b8285a89ef..b5acfc6e20 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_61.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_61.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) ## DBsection(Equations of lines: slope-intercept form) @@ -11,33 +11,33 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", "PGcourse.pl", "contextLimitedPoint.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup -# +# $limit = 5; @@ -53,7 +53,7 @@ texsize=>300, ); -add_functions($gr, "($slope(x)+$intercept) for x in <-$limit,$limit>" . +add_functions($gr, "($slope(x)+$intercept) for x in <-$limit,$limit>" . " using color:blue and weight:2"); Context("Numeric"); @@ -62,23 +62,23 @@ $ans = Formula(" $slope(x) +$intercept")->reduce; ########################### # Main text - + BEGIN_PGML -Find the equation of the graphed line. +Find the equation of the graphed line. >> [@ image(insertGraph($gr), tex_size=>16000, width=>400, height=>400), @]* << -[`f(x) = `] [______]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`f(x) = `] [______]{$ans} [@ helpLink("numbers") @]* END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_10.pg b/Contrib/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_10.pg index d2b73b77e6..970a660bae 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_10.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_10.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -55,9 +55,9 @@ $ans3=Point("($h,$k)"); BEGIN_PGML Rewrite the quadratic function [`f(x)=[$f]`] in standard form, [`f(x)=a(x-h)^2+k`], and give the vertex. -[` f(x) = `][_]{$a}[`(x-`][_]{$ans1}[`)^2+`] [_]{$ans2} [@ AnswerFormatHelp("numbers") @]* +[` f(x) = `][_]{$a}[`(x-`][_]{$ans1}[`)^2+`] [_]{$ans2} [@ helpLink("numbers") @]* -+ Vertex: [_________]{$ans3} [@ AnswerFormatHelp("points") @]* ++ Vertex: [_________]{$ans3} [@ helpLink("points") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_14.pg b/Contrib/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_14.pg index 4a5919c63f..3da9b3b1b7 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_14.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_14.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", @@ -62,14 +62,14 @@ Determine whether \( \displaystyle f(x)= $f \) has a minimum or maximum value. F $BR $BR \( f(x) \) has a : -$BR +$BR \{ $radio->buttons() \} $BR $BR -The value of the minimum or maximum is: \{ ans_rule(20) \} \{ AnswerFormatHelp("numbers") \} +The value of the minimum or maximum is: \{ ans_rule(20) \} \{ helpLink("numbers") \} $BR $BR -The axis of symmetry for \( f(x) \) is given by \( x=\) \{ ans_rule(20) \} \{ AnswerFormatHelp("numbers") \} +The axis of symmetry for \( f(x) \) is given by \( x=\) \{ ans_rule(20) \} \{ helpLink("numbers") \} $BR $BR END_TEXT diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_16.pg b/Contrib/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_16.pg index dcb1e4869c..350b15b903 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_16.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_16.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", @@ -64,14 +64,14 @@ Determine whether \( \displaystyle f(x)= $f \) has a minimum or maximum value. F $BR $BR \( f(x) \) has a : -$BR +$BR \{ $radio->buttons() \} $BR $BR -The value of the minimum or maximum is: \{ ans_rule(20) \} \{ AnswerFormatHelp("numbers") \} +The value of the minimum or maximum is: \{ ans_rule(20) \} \{ helpLink("numbers") \} $BR $BR -The axis of symmetry for \( f(x) \) is given by \( x=\) \{ ans_rule(20) \} \{ AnswerFormatHelp("numbers") \} +The axis of symmetry for \( f(x) \) is given by \( x=\) \{ ans_rule(20) \} \{ helpLink("numbers") \} $BR $BR END_TEXT diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_21.pg b/Contrib/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_21.pg index 888787704b..f3de87de23 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_21.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_21.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,9 +51,9 @@ BEGIN_PGML Determine the domain and range of [` f(x)= [$g][$f] `]. Enter your solution in interval notation. -+ Domain: [_______________]{$ans1} [@ AnswerFormatHelp("intervals") @]* ++ Domain: [_______________]{$ans1} [@ helpLink("intervals") @]* -+ Range: [_______________]{$ans2} [@ AnswerFormatHelp("intervals") @]* ++ Range: [_______________]{$ans2} [@ helpLink("intervals") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_23.pg b/Contrib/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_23.pg index 35a667c31d..a0935da5ea 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_23.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_23.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -55,9 +55,9 @@ BEGIN_PGML Determine the domain and range of [` f(x)=[$f] `]. Enter your solution in interval notation. -+ Domain: [_______________]{$ans1} [@ AnswerFormatHelp("intervals") @]* ++ Domain: [_______________]{$ans1} [@ helpLink("intervals") @]* -+ Range: [_______________]{$ans2} [@ AnswerFormatHelp("intervals") @]* ++ Range: [_______________]{$ans2} [@ helpLink("intervals") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_27.pg b/Contrib/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_27.pg index b674698151..5f21f67b90 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_27.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_27.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -61,7 +61,7 @@ $BR $BR \( f(x) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR $ECENTER diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_29.pg b/Contrib/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_29.pg index 0a94394b0c..fb849ba8a1 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_29.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_29.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -62,7 +62,7 @@ $BR $BR \( f(x) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR $ECENTER diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_35.pg b/Contrib/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_35.pg index 1e6f8a23ae..c83c34069e 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_35.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_35.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -59,11 +59,11 @@ $den = 2*$a; BEGIN_PGML For the quadratic equation [`f(x)=[$f]`], find the vertex, the axis of symmetry, and the x-intercept(s). Express the vertex as a coordinate pair and intercepts as a comma separated list of points if there is more than one. -+ Vertex: [_______________]{$vertex} [@ AnswerFormatHelp("points") @]* ++ Vertex: [_______________]{$vertex} [@ helpLink("points") @]* -+ Axis, x = [_______________]{$vx} [@ AnswerFormatHelp("numbers") @]* ++ Axis, x = [_______________]{$vx} [@ helpLink("numbers") @]* -+ [`x`]-Intercept(s): [___________________________]{"((-$b - sqrt($sqrt))/($den),0),((-$b + sqrt($sqrt))/($den),0)"} [@ AnswerFormatHelp("points") @]* ++ [`x`]-Intercept(s): [___________________________]{"((-$b - sqrt($sqrt))/($den),0),((-$b + sqrt($sqrt))/($den),0)"} [@ helpLink("points") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_39.pg b/Contrib/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_39.pg index d56e04e843..9040306488 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_39.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_39.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -59,11 +59,11 @@ $den = 2*$a; BEGIN_PGML For the quadratic equation [`f(x)=[$f]`], find the vertex, the axis of symmetry, and the x-intercept(s). Express the vertex as a coordinate pair and intercepts as a comma separated list of points if there is more than one. -+ Vertex: [_______________]{$vertex} [@ AnswerFormatHelp("points") @]* ++ Vertex: [_______________]{$vertex} [@ helpLink("points") @]* -+ Axis, x = [_______________]{$vx} [@ AnswerFormatHelp("numbers") @]* ++ Axis, x = [_______________]{$vx} [@ helpLink("numbers") @]* -+ [`x`]-Intercept(s): [_______________________________]{"((-$b+sqrt($sqrt))/$den,0),((-$b-sqrt($sqrt))/$den,0)"} [@ AnswerFormatHelp("points") @]* ++ [`x`]-Intercept(s): [_______________________________]{"((-$b+sqrt($sqrt))/$den,0),((-$b-sqrt($sqrt))/$den,0)"} [@ helpLink("points") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_41.pg b/Contrib/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_41.pg index a3e6f808a3..3edfcfb7e9 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_41.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_41.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -58,7 +58,7 @@ Write the equation for the graphed function. $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>400,height=>400,tex_size=>800 ) \} $BR $BR @@ -68,7 +68,7 @@ $BR $BR $BR \( f(x) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR $ECENTER diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_43.pg b/Contrib/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_43.pg index 8d3299ad76..e62eff1023 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_43.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_43.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -58,7 +58,7 @@ Write the equation for the graphed function. $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>400,height=>400,tex_size=>800 ) \} $BR $BR @@ -68,7 +68,7 @@ $BR $BR $BR \( f(x) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR $ECENTER diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_56.pg b/Contrib/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_56.pg index f4dd97a026..f25732b0da 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_56.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_56.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -53,11 +53,11 @@ $d = Compute("(-infinity,infinity)"); # Main text BEGIN_PGML -Find the domain and range for a quadratic function with the vertex [`([$vx],[$vy])`] if the graph opens [`[$concavity]`]. +Find the domain and range for a quadratic function with the vertex [`([$vx],[$vy])`] if the graph opens [`[$concavity]`]. -+ Domain: [_______________]{$d} [@ AnswerFormatHelp("intervals") @]* ++ Domain: [_______________]{$d} [@ helpLink("intervals") @]* -+ Range: [_______________]{$r} [@ AnswerFormatHelp("intervals") @]* ++ Range: [_______________]{$r} [@ helpLink("intervals") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_6.pg b/Contrib/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_6.pg index eef90cbfc8..94b8c94893 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_6.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_6.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -55,9 +55,9 @@ $ans3=Point("($h,$k)"); BEGIN_PGML Rewrite the quadratic function [`f(x)=[$f]`] in standard form, [`f(x)=a(x-h)^2+k`], and give the vertex. -[` f(x) = `][_]{$a}[`(x-`][_]{$ans1}[`)^2+`] [_]{$ans2} [@ AnswerFormatHelp("numbers") @]* +[` f(x) = `][_]{$a}[`(x-`][_]{$ans1}[`)^2+`] [_]{$ans2} [@ helpLink("numbers") @]* -+ Vertex: [_________]{$ans3} [@ AnswerFormatHelp("points") @]* ++ Vertex: [_________]{$ans3} [@ helpLink("points") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_67.pg b/Contrib/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_67.pg index c3accb145b..59ab6ee7e2 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_67.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_67.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -46,11 +46,11 @@ $ans = List( $x, $y ); # Main text BEGIN_PGML - + Find the dimensions of a rectangular corral split into 2 pens of the same size producing the greatest possible enclosed area given [`[$a]`] feet of fencing. Enter the dimensions as a comma separated list. ->>[_______________]{$ans} [@ AnswerFormatHelp("numbers") @]*<< +>>[_______________]{$ans} [@ helpLink("numbers") @]*<< END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_73.pg b/Contrib/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_73.pg index e414dfc0b5..f1c06f64f3 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_73.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_73.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -49,7 +49,7 @@ $t=$v0/$g; BEGIN_PGML A ball is thrown in the air from the top of a building. Its height, in meters above ground, as a function of time, in seconds, is given by [`h(t)=[$h]`]. How long does it take to reach maximum height? -+ [`t=`] [_______________]{$t} [@ AnswerFormatHelp("numbers") @]* ++ [`t=`] [_______________]{$t} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_12.pg b/Contrib/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_12.pg index ed9d7da0f3..001cfab717 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_12.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_12.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -53,9 +53,9 @@ $ans2=Compute($b); BEGIN_PGML Find the degree and leading coefficient for [`y=[$f]`]. -+ Degree: [___]{$ans1} [@ AnswerFormatHelp("numbers") @]* ++ Degree: [___]{$ans1} [@ helpLink("numbers") @]* -+ Leading Coefficient: [____]{$ans2} [@ AnswerFormatHelp("numbers") @]* ++ Leading Coefficient: [____]{$ans2} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_13.pg b/Contrib/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_13.pg index 6ec6f941a7..107180df56 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_13.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_13.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -49,9 +49,9 @@ $ans2=Compute($a); BEGIN_PGML Find the degree and leading coefficient for [`y=[$f]`]. -+ Degree: [___]{$ans1} [@ AnswerFormatHelp("numbers") @]* ++ Degree: [___]{$ans1} [@ helpLink("numbers") @]* -+ Leading Coefficient: [____]{$ans2} [@ AnswerFormatHelp("numbers") @]* ++ Leading Coefficient: [____]{$ans2} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_14.pg b/Contrib/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_14.pg index 32b8e22df5..ffa47d6264 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_14.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_14.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -51,9 +51,9 @@ $ans2=Compute($a); BEGIN_PGML Find the degree and leading coefficient for [`y=[$f]`]. -+ Degree: [___]{$ans1} [@ AnswerFormatHelp("numbers") @]* ++ Degree: [___]{$ans1} [@ helpLink("numbers") @]* -+ Leading Coefficient: [____]{$ans2} [@ AnswerFormatHelp("numbers") @]* ++ Leading Coefficient: [____]{$ans2} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_17.pg b/Contrib/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_17.pg index b6adfec837..8a3b64be64 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_17.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_17.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -46,9 +46,9 @@ $f=Formula("$a*x^4")->reduce; BEGIN_PGML Determine the end behavior for [`y=[$f]`]. -+ As [`x \to -\infty `], [`y \to `] [___]{"infinity"} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to -\infty `], [`y \to `] [___]{"infinity"} [@ helpLink("numbers") @]* -+ As [`x \to \infty `], [`y \to `] [____]{"infinity"} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to \infty `], [`y \to `] [____]{"infinity"} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_20.pg b/Contrib/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_20.pg index 5585364ace..69ea7c6c4d 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_20.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_20.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -50,9 +50,9 @@ $f=$g+$h+$j; BEGIN_PGML Determine the end behavior for [`y=[$f]`]. -+ As [`x \to -\infty `], [`y \to `] [___]{"infinity"} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to -\infty `], [`y \to `] [___]{"infinity"} [@ helpLink("numbers") @]* -+ As [`x \to \infty `], [`y \to `] [____]{"-infinity"} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to \infty `], [`y \to `] [____]{"-infinity"} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_22.pg b/Contrib/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_22.pg index 2adca94080..b91be11691 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_22.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_22.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -51,9 +51,9 @@ $f=$g+$h+$j; BEGIN_PGML Determine the end behavior for [`y=[$f]`]. -+ As [`x \to -\infty `], [`y \to `] [___]{"infinity"} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to -\infty `], [`y \to `] [___]{"infinity"} [@ helpLink("numbers") @]* -+ As [`x \to \infty `], [`y \to `] [____]{"-infinity"} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to \infty `], [`y \to `] [____]{"-infinity"} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_23.pg b/Contrib/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_23.pg index 1638fd7196..08895dc68c 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_23.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_23.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -51,9 +51,9 @@ $f=$g*($h+$j); BEGIN_PGML Determine the end behavior for [`y=[$f]`]. -+ As [`x \to -\infty `], [`y \to `] [___]{"-infinity"} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to -\infty `], [`y \to `] [___]{"-infinity"} [@ helpLink("numbers") @]* -+ As [`x \to \infty `], [`y \to `] [____]{"infinity"} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to \infty `], [`y \to `] [____]{"infinity"} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_24.pg b/Contrib/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_24.pg index 19950eb383..087b1e1f91 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_24.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_24.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -48,9 +48,9 @@ $f= Formula("(x + $b)^2") -> reduce; BEGIN_PGML Determine the end behavior for [`y=[$f]`]. -+ As [`x \to -\infty `], [`y \to `] [___]{"infinity"} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to -\infty `], [`y \to `] [___]{"infinity"} [@ helpLink("numbers") @]* -+ As [`x \to \infty `], [`y \to `] [____]{"infinity"} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to \infty `], [`y \to `] [____]{"infinity"} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_25.pg b/Contrib/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_25.pg index 6d47b5e317..94baec7605 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_25.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_25.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -54,9 +54,9 @@ $xint = List( Point("($b,0)"),Point("($c,0)"),Point("($d,0)")); BEGIN_PGML Find the intercepts of [`f(x)=[$f]`]. Enter intercepts as points. If you have more than one point, enter them as a comma separated list. -+ [`y`]-intercept: [_________]{$yint} [@ AnswerFormatHelp("points") @]* ++ [`y`]-intercept: [_________]{$yint} [@ helpLink("points") @]* -+ [`x`]-intercept(s) [_________________]{$xint} [@ AnswerFormatHelp("points") @]* ++ [`x`]-intercept(s) [_________________]{$xint} [@ helpLink("points") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_28.pg b/Contrib/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_28.pg index 56baa6fa5f..4c810682a0 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_28.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_28.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -52,9 +52,9 @@ $xint = List( Point("(-$a,0)")); BEGIN_PGML Find the intercepts of [`f(x)=[$f]`]. Enter intercepts as points. If you have more than one point, enter them as a comma separated list. -+ [`y`]-intercept: [___]{$yint} [@ AnswerFormatHelp("points") @]* ++ [`y`]-intercept: [___]{$yint} [@ helpLink("points") @]* -+ [`x`]-intercept(s) [____]{$xint} [@ AnswerFormatHelp("points") @]* ++ [`x`]-intercept(s) [____]{$xint} [@ helpLink("points") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_31.pg b/Contrib/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_31.pg index 430245dd20..f676a9e8bf 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_31.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_31.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "PGgraphmacros.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -75,7 +75,7 @@ Determine the least possible degree of the polynomial function shown. $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>300,height=>300,tex_size=>800 ) \} $BR (Click on graph to enlarge) diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_33.pg b/Contrib/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_33.pg index f43ce9f0a1..9ba66d4504 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_33.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_33.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "PGgraphmacros.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -75,7 +75,7 @@ Determine the least possible degree of the polynomial function shown. $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>300,height=>300,tex_size=>800 ) \} $BR (Click on graph to enlarge) diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_34.pg b/Contrib/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_34.pg index 8806144117..efe32fc026 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_34.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_34.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "PGgraphmacros.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -78,7 +78,7 @@ Determine the least possible degree of the polynomial function shown. $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>200,height=>200,tex_size=>800 ) \} $BR (Click on graph to enlarge) diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_36.pg b/Contrib/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_36.pg index a349bcf96a..98a346bd09 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_36.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_36.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "PGgraphmacros.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -78,7 +78,7 @@ Determine the least possible degree of the polynomial function shown. $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>200,height=>200,tex_size=>800 ) \} $BR (Click on graph to enlarge) diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_37.pg b/Contrib/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_37.pg index 59476fcc98..840417d2c3 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_37.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_37.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "PGgraphmacros.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -79,7 +79,7 @@ Determine the least possible degree of the polynomial function shown. $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>200,height=>200,tex_size=>800 ) \} $BR (Click on graph to enlarge) diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_51.pg b/Contrib/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_51.pg index b5ef8b7dc3..4edc5ed302 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_51.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_51.pg @@ -21,7 +21,7 @@ loadMacros( "AppletObjects.pl", "unionTables.pl", "parserNumberWithUnits.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl", "contextLimitedPoint.pl", @@ -43,7 +43,7 @@ HEADER_TEXT(MODES( )); $desmos_div = MODES( - HTML=>qq(
), + HTML=>qq(
), TeX=>'Interactive graph best viewed online' ); @@ -75,11 +75,11 @@ BEGIN_PGML For [` f(x) = [$f] `], Determine the [`x`]-intercepts and the end behavior. Enter intercepts as a comma separated list of points. The Desmos graphing tool below may help investigate the function. -[`x`]-Intercepts : [__________]{$xint} [@ AnswerFormatHelp("points") @]* +[`x`]-Intercepts : [__________]{$xint} [@ helpLink("points") @]* -+ As [`x \to -\infty `], [`f \to `] [___]{"infinity"} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to -\infty `], [`f \to `] [___]{"infinity"} [@ helpLink("numbers") @]* -+ As [`x \to \infty `], [`f \to `] [____]{"infinity"} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to \infty `], [`f \to `] [____]{"infinity"} [@ helpLink("numbers") @]* END_PGML @@ -108,10 +108,10 @@ TEXT( MODES(TeX=>'', HTML=><qq(
), + HTML=>qq(
), TeX=>'Interactive graph best viewed online' ); @@ -66,13 +66,13 @@ Context("Numeric"); BEGIN_PGML For [` f(x) = [$f] `], Determine the [`x`]-intercepts -and the end behavior. Enter intercepts as a comma separated list of points. The Desmos graphing tool below may help investigate the function. +and the end behavior. Enter intercepts as a comma separated list of points. The Desmos graphing tool below may help investigate the function. -[`x`]-Intercepts : [__________]{$xint} [@ AnswerFormatHelp("points") @]* +[`x`]-Intercepts : [__________]{$xint} [@ helpLink("points") @]* -+ As [`x \to -\infty `], [`f \to `] [___]{"infinity"} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to -\infty `], [`f \to `] [___]{"infinity"} [@ helpLink("numbers") @]* -+ As [`x \to \infty `], [`f \to `] [____]{"infinity"} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to \infty `], [`f \to `] [____]{"infinity"} [@ helpLink("numbers") @]* END_PGML @@ -101,10 +101,10 @@ TEXT( MODES(TeX=>'', HTML=><qq(
), + HTML=>qq(
), TeX=>'Interactive graph best viewed online' ); @@ -72,11 +72,11 @@ BEGIN_PGML For [` f(x) = [$f] `], Determine the [`x`]-intercepts and the end behavior. Enter intercepts as a comma separated list of points. The Desmos graphing tool below may help investigate the function. -[`x`]-Intercepts : [_____________________________]{$xint} [@ AnswerFormatHelp("points") @]* +[`x`]-Intercepts : [_____________________________]{$xint} [@ helpLink("points") @]* -+ As [`x \to -\infty `], [`f \to `] [___]{"-infinity"} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to -\infty `], [`f \to `] [___]{"-infinity"} [@ helpLink("numbers") @]* -+ As [`x \to \infty `], [`f \to `] [____]{"-infinity"} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to \infty `], [`f \to `] [____]{"-infinity"} [@ helpLink("numbers") @]* END_PGML @@ -104,10 +104,10 @@ TEXT( MODES(TeX=>'', HTML=><qq(
), + HTML=>qq(
), TeX=>'Interactive graph best viewed online' ); @@ -64,13 +64,13 @@ Context("Numeric"); BEGIN_PGML For [` f(x) = [$f] `], Determine the [`x`]-intercepts -and the end behavior. Enter intercepts as a comma separated list of points. The Desmos graphing tool below may help investigate the function. +and the end behavior. Enter intercepts as a comma separated list of points. The Desmos graphing tool below may help investigate the function. -[`x`]-Intercepts : [__________]{$xint} [@ AnswerFormatHelp("points") @]* +[`x`]-Intercepts : [__________]{$xint} [@ helpLink("points") @]* -+ As [`x \to -\infty `], [`f \to `] [___]{"-infinity"} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to -\infty `], [`f \to `] [___]{"-infinity"} [@ helpLink("numbers") @]* -+ As [`x \to \infty `], [`f \to `] [____]{"infinity"} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to \infty `], [`f \to `] [____]{"infinity"} [@ helpLink("numbers") @]* END_PGML @@ -98,10 +98,10 @@ TEXT( MODES(TeX=>'', HTML=><qq(
), + HTML=>qq(
), TeX=>'Interactive graph best viewed online' ); @@ -72,11 +72,11 @@ BEGIN_PGML For [` f(x) = [$f] `], Determine the [`x`]-intercepts and the end behavior. Enter intercepts as a comma separated list of points. The Desmos graphing tool below may help investigate the function. -[`x`]-Intercepts : [__________]{$xint} [@ AnswerFormatHelp("points") @]* +[`x`]-Intercepts : [__________]{$xint} [@ helpLink("points") @]* -+ As [`x \to -\infty `], [`f \to `] [___]{"infinity"} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to -\infty `], [`f \to `] [___]{"infinity"} [@ helpLink("numbers") @]* -+ As [`x \to \infty `], [`f \to `] [____]{"infinity"} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to \infty `], [`f \to `] [____]{"infinity"} [@ helpLink("numbers") @]* END_PGML @@ -104,10 +104,10 @@ TEXT( MODES(TeX=>'', HTML=><with( my ( $correct, $student, $self ) = @_; my ( $stu1, $stu2, $stu3, $stu4) = @{$student}; my ( $a1, $a2, $a3, $a4) = @{$correct}; - if ( + if ( ( ($stu1 == $a1 && $stu2 == $a2) && ($stu3 == $a3 && $stu4 == $a4) || ( $stu1 == $a3 && $stu2 == $a4) && ($stu3 == $a1 && $stu4 == $a2 ) ) ) -{return [1,1,1,1];} +{return [1,1,1,1];} -else { return [0,0,0,0]; } +else { return [0,0,0,0]; } } ); @@ -68,13 +68,13 @@ else { return [0,0,0,0]; } # Main text BEGIN_PGML -Find the zeros and give the multiplicity of each for [`f(x)=[$f]`]. +Find the zeros and give the multiplicity of each for [`f(x)=[$f]`]. Note: to get the problem correct, you must get all answers correct. -+ One zero is [`x=`][____]{$multians} and its multiplicity is: [____]{$multians} [@ AnswerFormatHelp("numbers") @]* ++ One zero is [`x=`][____]{$multians} and its multiplicity is: [____]{$multians} [@ helpLink("numbers") @]* -+ The other zero is [`x=`][____]{$multians} and its multiplicity is: [____]{$multians} [@ AnswerFormatHelp("numbers") @]* ++ The other zero is [`x=`][____]{$multians} and its multiplicity is: [____]{$multians} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_32.pg b/Contrib/RRCC/College_Algebra/MAT121/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_32.pg index c28bed59e7..a99bfa88a1 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_32.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_32.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserMultiAnswer.pl", "PGML.pl", @@ -55,7 +55,7 @@ $multians = MultiAnswer($a, $m2, 0, $m1, $b, $m3)->with( my ( $correct, $student, $self ) = @_; my ( $stu1, $stu2, $stu3, $stu4, $stu5, $stu6) = @{$student}; my ( $a1, $a2, $a3, $a4, $a5, $a6) = @{$correct}; - if ( + if ( ( (($stu1 == $a1 && $stu2 == $a2 ) && ($stu3 == $a3 && $stu4 == $a4) && ($stu5 == $a5 && $stu6 == $a6)) || ( ($stu1 == $a3 && $stu2 == $a4) && ($stu3 == $a1 && $stu4 == $a2 ) && ($stu5 == $a5 && $stu6 == $a6)) || ( ($stu1 == $a3 && $stu2 == $a4) && ($stu3 == $a5 && $stu4 == $a6 ) && ($stu5 == $a1 && $stu6 == $a2)) || @@ -64,9 +64,9 @@ $multians = MultiAnswer($a, $m2, 0, $m1, $b, $m3)->with( (($stu1 == $a5 && $stu2 == $a6 ) && ($stu3 == $a1 && $stu4 == $a2) && ($stu5 == $a3 && $stu6 == $a4)) ) ) -{return [1,1,1,1,1,1];} +{return [1,1,1,1,1,1];} -else { return [0,0,0,0,0,0]; } +else { return [0,0,0,0,0,0]; } } ); @@ -75,17 +75,17 @@ else { return [0,0,0,0,0,0]; } # Main text BEGIN_PGML -Find the zeros and give the multiplicity of each for [`f(x)=[$f]`]. +Find the zeros and give the multiplicity of each for [`f(x)=[$f]`]. Note: to be counted as correct, you must get all answers correct. -+ One zero is [`x=`][____]{$multians} and has a multiplicity of [____]{$multians} [@ AnswerFormatHelp("numbers") @]* ++ One zero is [`x=`][____]{$multians} and has a multiplicity of [____]{$multians} [@ helpLink("numbers") @]* -+ Another zero is [`x=`][____]{$multians} and has a multiplicity of: [____]{$multians} [@ AnswerFormatHelp("numbers") @]* ++ Another zero is [`x=`][____]{$multians} and has a multiplicity of: [____]{$multians} [@ helpLink("numbers") @]* -+ The last zero is [`x=`][____]{$multians} and has a multiplicity of: [____]{$multians} [@ AnswerFormatHelp("numbers") @]* ++ The last zero is [`x=`][____]{$multians} and has a multiplicity of: [____]{$multians} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_37.pg b/Contrib/RRCC/College_Algebra/MAT121/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_37.pg index 6d935b7124..f2cd89fb1c 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_37.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_37.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserMultiAnswer.pl", "PGML.pl", @@ -49,7 +49,7 @@ $multians = MultiAnswer(0, $m, $a, 1, $b, 1)->with( my ( $correct, $student, $self ) = @_; my ( $stu1, $stu2, $stu3, $stu4, $stu5, $stu6) = @{$student}; my ( $a1, $a2, $a3, $a4, $a5, $a6) = @{$correct}; - if ( + if ( ( (($stu1 == $a1 && $stu2 == $a2 ) && ($stu3 == $a3 && $stu4 == $a4) && ($stu5 == $a5 && $stu6 == $a6)) || ( ($stu1 == $a3 && $stu2 == $a4) && ($stu3 == $a1 && $stu4 == $a2 ) && ($stu5 == $a5 && $stu6 == $a6)) || ( ($stu1 == $a3 && $stu2 == $a4) && ($stu3 == $a5 && $stu4 == $a6 ) && ($stu5 == $a1 && $stu6 == $a2)) || @@ -57,9 +57,9 @@ $multians = MultiAnswer(0, $m, $a, 1, $b, 1)->with( (($stu1 == $a5 && $stu2 == $a6 ) && ($stu3 == $a3 && $stu4 == $a4) && ($stu5 == $a1 && $stu6 == $a2)) || (($stu1 == $a5 && $stu2 == $a6 ) && ($stu3 == $a1 && $stu4 == $a2) && ($stu5 == $a3 && $stu6 == $a4)) ) ) -{return [1,1,1,1,1,1];} +{return [1,1,1,1,1,1];} -else { return [0,0,0,0,0,0]; } +else { return [0,0,0,0,0,0]; } } ); @@ -68,17 +68,17 @@ else { return [0,0,0,0,0,0]; } # Main text BEGIN_PGML -Find the zeros and give the multiplicity of each for [`f(x)=[$f]`]. +Find the zeros and give the multiplicity of each for [`f(x)=[$f]`]. Note: to be counted as correct, you must get all answers correct. -+ One zero is [`x=`][____]{$multians} and has a multiplicity of [____]{$multians} [@ AnswerFormatHelp("numbers") @]* ++ One zero is [`x=`][____]{$multians} and has a multiplicity of [____]{$multians} [@ helpLink("numbers") @]* -+ Another zero is [`x=`][____]{$multians} and has a multiplicity of: [____]{$multians} [@ AnswerFormatHelp("numbers") @]* ++ Another zero is [`x=`][____]{$multians} and has a multiplicity of: [____]{$multians} [@ helpLink("numbers") @]* -+ The last zero is [`x=`][____]{$multians} and has a multiplicity of: [____]{$multians} [@ AnswerFormatHelp("numbers") @]* ++ The last zero is [`x=`][____]{$multians} and has a multiplicity of: [____]{$multians} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_46.pg b/Contrib/RRCC/College_Algebra/MAT121/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_46.pg index a22a740b11..a59bf42c63 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_46.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_46.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -53,13 +53,13 @@ Context("Numeric"); BEGIN_PGML Graph the polynomial [`y=[$f]`]. Note [`x`]-intercept(s), [`y`]-intercept, and end behavior below, and draw the graph by hand on paper for your own reference. -+ [`x`]-intercept(s): [____________]{$xint} [@ AnswerFormatHelp("points") @]* ++ [`x`]-intercept(s): [____________]{$xint} [@ helpLink("points") @]* -+ [`y`]-intercept: [____]{$yint} [@ AnswerFormatHelp("points") @]* ++ [`y`]-intercept: [____]{$yint} [@ helpLink("points") @]* -+ As [`x \to -\infty `], [`y \to `] [___]{"infinity"} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to -\infty `], [`y \to `] [___]{"infinity"} [@ helpLink("numbers") @]* -+ As [`x \to \infty `], [`y \to `] [____]{"-infinity"} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to \infty `], [`y \to `] [____]{"-infinity"} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_48.pg b/Contrib/RRCC/College_Algebra/MAT121/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_48.pg index 4940c15d3b..64075eb64f 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_48.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_48.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -59,7 +59,7 @@ Let the graph of \( f(x) \) be given below. Find the formula of \( f(x) \), a po $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>300,height=>300,tex_size=>800 ) \} $BR $BR @@ -69,7 +69,7 @@ $BR $BR $BR \( f(x) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR $ECENTER diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_51.pg b/Contrib/RRCC/College_Algebra/MAT121/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_51.pg index 47543b65f3..0a1d973174 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_51.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_51.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -39,7 +39,7 @@ size=>[400,400] ); $a = list_random(-4,4); -$b = non_zero_random(-2,2); +$b = non_zero_random(-2,2); add_functions($gr, "1/4*(x-$a)*(x-$b)^2 for x in <-5,5> using color:blue and weight:2"); @@ -57,7 +57,7 @@ Let the graph of \( f(x) \) be given below. Find the formula of \( f(x) \), a po $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>300,height=>300,tex_size=>800 ) \} $BR $BR @@ -67,7 +67,7 @@ $BR $BR $BR \( f(x) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR $ECENTER diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_57.pg b/Contrib/RRCC/College_Algebra/MAT121/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_57.pg index 20206126b1..629b176e79 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_57.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_57.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -38,7 +38,7 @@ Context("Numeric"); $a = non_zero_random(-4,4); do { $b = non_zero_random(-4,4); } until ( $b != $a ); do { $c = non_zero_random(-4,4); } until (( $c != $a ) and ( $c != $b ) ); -$yint = random(4,12,4); +$yint = random(4,12,4); $g=Formula("(x-$a)*(x-$b)*(x-$c)")->reduce; $d=$g->eval(x=>0); @@ -51,7 +51,7 @@ $ans1=Formula("$yfactor*(x-$a)*(x-$b)*(x-$c)")->reduce; # Main text BEGIN_PGML -Find the equation for a polynomial [`f(x)`] that satisfies the following: +Find the equation for a polynomial [`f(x)`] that satisfies the following: + Degree [`3`] + Zero at [`x=[$a]`] + Zero at [`x=[$b]`] @@ -59,10 +59,10 @@ Find the equation for a polynomial [`f(x)`] that satisfies the following: + [`y`]-intercept of [`(0,[$yint])`] - [` f(x) = `] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* + [` f(x) = `] [_______________]{$ans1} [@ helpLink("formulas") @]* + - END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_60.pg b/Contrib/RRCC/College_Algebra/MAT121/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_60.pg index bd4469ecbc..edee796027 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_60.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_60.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -64,9 +64,9 @@ Find the equation for a polynomial [`f(x)`] that satisfies the following: + [`y`]-intercept of [`(0,[$yint])`] - [` f(x) = `] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* + [` f(x) = `] [_______________]{$ans1} [@ helpLink("formulas") @]* + - END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_75.pg b/Contrib/RRCC/College_Algebra/MAT121/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_75.pg index 2686ef4dc6..ca0ffdfb8f 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_75.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_75.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -36,7 +36,7 @@ $showPartialCorrectAnswers = 1; Context("Numeric"); $a = non_zero_random(10,20, 2); -$b = non_zero_random(4,8); +$b = non_zero_random(4,8); $ans1=Formula("x*($a-2x)*($b-2x)")->reduce; @@ -48,10 +48,10 @@ BEGIN_PGML A rectangle has a length of [$a] units and a width of [$b] units. Squares of x by x units are cut out of each corner, and then the sides are folded up to create an open box. Express the volume of the box as a polynomial function in terms of x. - [` f(x) = `] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* + [` f(x) = `] [_______________]{$ans1} [@ helpLink("formulas") @]* + - END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_79.pg b/Contrib/RRCC/College_Algebra/MAT121/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_79.pg index 1e03f8f699..d0b60f3378 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_79.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_79.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -52,10 +52,10 @@ BEGIN_PGML A right circular cone has a radius of [`[$f]`] and a height [`[$c]`] units less than its radius. Express the volume of the cone as a polynomial function. The volume of a cone is [`V = 1/3 \pi r^2 h`] for radius r and height h. Enter [`\pi`] as pi. - [` V(x) = `] [____________________]{"(1/3)*$ans"} [@ AnswerFormatHelp("formulas") @]* + [` V(x) = `] [____________________]{"(1/3)*$ans"} [@ helpLink("formulas") @]* + - END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_8.pg b/Contrib/RRCC/College_Algebra/MAT121/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_8.pg index e197d33000..18eb5dc07f 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_8.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_8.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -52,7 +52,7 @@ $xint = List(Point("(0,0)"), Point("($b,0)"),Point("($c,0)")); BEGIN_PGML Find the [`x`]-intercept(s) of [`f(x)=[$f][$g]`]. Enter intercept(s) as points. If there is more than one point, enter them as a comma separated list. -+ [`x`]-intercept(s): [_______________]{$xint} [@ AnswerFormatHelp("points") @]* ++ [`x`]-intercept(s): [_______________]{$xint} [@ helpLink("points") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.3/RRCC_Openstax_Alg_Section5.3_Num30_scaffold practice.pg b/Contrib/RRCC/College_Algebra/MAT121/5.3/RRCC_Openstax_Alg_Section5.3_Num30_scaffold practice.pg index 3205b12fc3..ae997ff16f 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.3/RRCC_Openstax_Alg_Section5.3_Num30_scaffold practice.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.3/RRCC_Openstax_Alg_Section5.3_Num30_scaffold practice.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "scaffold.pl", @@ -54,9 +54,9 @@ Scaffold::Begin(); Section::Begin("Part 1: The first part"); BEGIN_PGML -Find the zeros and give the multiplicity of each for [`f(x)=[$f]`]. Enter zeros from greatest to least. +Find the zeros and give the multiplicity of each for [`f(x)=[$f]`]. Enter zeros from greatest to least. -+ One zero is `x=`[____]{$x=OneOf($a,$b)} and its multiplicity is: [____]{$m} [@ AnswerFormatHelp("numbers") @]* ++ One zero is `x=`[____]{$x=OneOf($a,$b)} and its multiplicity is: [____]{$m} [@ helpLink("numbers") @]* END_PGML Section::End(); @@ -66,9 +66,9 @@ Section::End(); Section::Begin("Part 2: The second part"); BEGIN_PGML -[$studentsa] is a number +[$studentsa] is a number -+ The other zero is `x=`[____]{$b} and its multiplicity is: [____]{$n} [@ AnswerFormatHelp("numbers") @]* ++ The other zero is `x=`[____]{$b} and its multiplicity is: [____]{$n} [@ helpLink("numbers") @]* END_PGML Section::End(); diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_14.pg b/Contrib/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_14.pg index 6dbfc5d253..be0e3e2a97 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_14.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_14.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,9 +51,9 @@ $ans1 = Formula("$a*x^2+($b+$a*$m)*x+($m*($b+$a*$m)+$c)")->reduce(); # Main text BEGIN_PGML -Use synthetic division to find the quotient of [`([$f])/(x-[$m])`]. +Use synthetic division to find the quotient of [`([$f])/(x-[$m])`]. -+ Quotient: [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* ++ Quotient: [_______________]{$ans1} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_15.pg b/Contrib/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_15.pg index 0db6275d41..59c34feef3 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_15.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_15.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,9 +51,9 @@ $ans1 = Formula("$a*x^2+($b+$a*$m)*x+($m*($b+$a*$m)+$c)")->reduce(); # Main text BEGIN_PGML -Use synthetic division to find the quotient of [`([$f])/(x-[$m])`]. +Use synthetic division to find the quotient of [`([$f])/(x-[$m])`]. -+ Quotient: [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* ++ Quotient: [_______________]{$ans1} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_27.pg b/Contrib/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_27.pg index 6a13044860..0a72ea68ed 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_27.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_27.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,9 +51,9 @@ $ans1 = Formula("$a*x^2+$a*$m*x+($a*($m)^2+$c)")->reduce; # Main text BEGIN_PGML -Use synthetic division to find the quotient of [`([$f])/(x-[$m])`]. +Use synthetic division to find the quotient of [`([$f])/(x-[$m])`]. -+ Quotient: [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* ++ Quotient: [_______________]{$ans1} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_3.pg b/Contrib/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_3.pg index 07130dd9d5..de15a77eef 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_3.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_3.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -49,11 +49,11 @@ $ans2= $c+$a*($b+$a); # Main text BEGIN_PGML -Use long division to perform the division [`([$f])/(x-[$a])`]. Find the quotient and remainder. +Use long division to perform the division [`([$f])/(x-[$a])`]. Find the quotient and remainder. -+ Quotient: [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* ++ Quotient: [_______________]{$ans1} [@ helpLink("formulas") @]* -+ Remainder: [_______________]{$ans2} [@ AnswerFormatHelp("formulas") @]* ++ Remainder: [_______________]{$ans2} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_38.pg b/Contrib/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_38.pg index b83e6df884..e50f79d04a 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_38.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_38.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -55,18 +55,18 @@ if($fac==$m){$remain = Compute("0");} else{$remain=($c-$b*$m)*$fac+($b-$a*$m+$a*$fac)*(($fac)**2)-$c*$m;} Context()->strings->add(Yes => {}, No => {}); -if($remain == 0){$ans="Yes";} +if($remain == 0){$ans="Yes";} else{$ans="No";} ########################### # Main text BEGIN_PGML -Use synthetic division to determine whether or not [`(x-[$fac])`] is a factor of [` ([$f]) `]. +Use synthetic division to determine whether or not [`(x-[$fac])`] is a factor of [` ([$f]) `]. -+ Quotient: [_______________]{$quot} [@ AnswerFormatHelp("formulas") @]* ++ Quotient: [_______________]{$quot} [@ helpLink("formulas") @]* -+ Remainder: [_______________]{$remain} [@ AnswerFormatHelp("numbers") @]* ++ Remainder: [_______________]{$remain} [@ helpLink("numbers") @]* + Is it a factor? [_______________]{$ans} (enter Yes or No) diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_39.pg b/Contrib/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_39.pg index 26fb9d0da1..b1667cdb82 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_39.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_39.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -55,18 +55,18 @@ if($fac==$m){$remain = Compute("0");} else{$remain=($c-$b*$m)*$fac+($b-$a*$m+$a*$fac)*($fac)**2-$c*$m;} Context()->strings->add(Yes => {}, No => {}); -if($remain == 0){$ans="Yes";} +if($remain == 0){$ans="Yes";} else{$ans="No";} ########################### # Main text BEGIN_PGML -Use synthetic division to determine whether or not [`(x-[$fac])`] is a factor of [` ([$f]) `]. +Use synthetic division to determine whether or not [`(x-[$fac])`] is a factor of [` ([$f]) `]. -+ Quotient: [_______________]{$quot} [@ AnswerFormatHelp("formulas") @]* ++ Quotient: [_______________]{$quot} [@ helpLink("formulas") @]* -+ Remainder: [_______________]{$remain} [@ AnswerFormatHelp("numbers") @]* ++ Remainder: [_______________]{$remain} [@ helpLink("numbers") @]* + Is it a factor? [_______________]{$ans} (enter Yes or No) diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_44.pg b/Contrib/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_44.pg index ed9542c42e..0caef87472 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_44.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_44.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -61,7 +61,7 @@ Use the graph of \( f(x) \) below, and the fact that \( $f \) is a factor of \( $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>300,height=>300,tex_size=>800 ) \} $BR $BR @@ -71,7 +71,7 @@ $BR $BR $BR \( f(x) \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR $ECENTER diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_49.pg b/Contrib/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_49.pg index ff79723a82..77b13ea3db 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_49.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_49.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -49,11 +49,11 @@ $ans2= $b+$a*($c)**3; # Main text BEGIN_PGML -Use synthetic division to find the quotient and remainder of [``[$f]``]. +Use synthetic division to find the quotient and remainder of [``[$f]``]. -+ Quotient: [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* ++ Quotient: [_______________]{$ans1} [@ helpLink("formulas") @]* -+ Remainder: [_______________]{$ans2} [@ AnswerFormatHelp("formulas") @]* ++ Remainder: [_______________]{$ans2} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_51.pg b/Contrib/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_51.pg index 119a459d0b..8b6042443f 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_51.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_51.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,11 +50,11 @@ $ans2= $c+$b*$d+$a*($d)**3; # Main text BEGIN_PGML -Use synthetic division to find the quotient and remainder of [``[$f]``]. +Use synthetic division to find the quotient and remainder of [``[$f]``]. -+ Quotient: [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* ++ Quotient: [_______________]{$ans1} [@ helpLink("formulas") @]* -+ Remainder: [_______________]{$ans2} [@ AnswerFormatHelp("formulas") @]* ++ Remainder: [_______________]{$ans2} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_65.pg b/Contrib/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_65.pg index 80f5dd9c1c..2144c577ba 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_65.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_65.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,9 +51,9 @@ $ans1 = Formula("$a*x^2+$b*x+$c")->reduce(); # Main text BEGIN_PGML -Suppose the area of a rectangle is [`[$area]`] and the length is [`[$len]`]. What is the width of the rectangle? +Suppose the area of a rectangle is [`[$area]`] and the length is [`[$len]`]. What is the width of the rectangle? -+ Width: [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* ++ Width: [_______________]{$ans1} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_7.pg b/Contrib/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_7.pg index 1a0efc33e9..3b94a5bcbe 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_7.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_7.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,11 +50,11 @@ $ans2= $c+$d*($b+$a*$d); # Main text BEGIN_PGML -Use long division to perform the division [`([$f])/(x-[$d])`]. Find the quotient and remainder. +Use long division to perform the division [`([$f])/(x-[$d])`]. Find the quotient and remainder. -+ Quotient: [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* ++ Quotient: [_______________]{$ans1} [@ helpLink("formulas") @]* -+ Remainder: [_______________]{$ans2} [@ AnswerFormatHelp("formulas") @]* ++ Remainder: [_______________]{$ans2} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_9.pg b/Contrib/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_9.pg index 05f0d90ea9..b4a6d3273d 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_9.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_9.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,11 +50,11 @@ $ans2= $c+$d*($b+$a*$d); # Main text BEGIN_PGML -Use long division to perform the division [`([$f])/(x-[$d])`]. Find the quotient and remainder. +Use long division to perform the division [`([$f])/(x-[$d])`]. Find the quotient and remainder. -+ Quotient: [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* ++ Quotient: [_______________]{$ans1} [@ helpLink("formulas") @]* -+ Remainder: [_______________]{$ans2} [@ AnswerFormatHelp("formulas") @]* ++ Remainder: [_______________]{$ans2} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_14.pg b/Contrib/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_14.pg index ea3eb2303a..a005885fb5 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_14.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_14.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,7 +51,7 @@ BEGIN_PGML Use the Factor Theorem to find all the zeros of [`f(x)=[$f]`] given that [`(x-[$m])`] is a factor. Enter all the zeros as a comma separated list. -+ Zeros: [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* ++ Zeros: [_______________]{$ans1} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_16.pg b/Contrib/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_16.pg index b2be8cc2df..0b5333216a 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_16.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_16.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,7 +51,7 @@ BEGIN_PGML Use the Factor Theorem to find all the zeros of [`f(x)=[$f]`] given that [`(x-[$m])`] is a factor. Enter all the zeros as a comma separated list. -+ Zeros: [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* ++ Zeros: [_______________]{$ans1} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_17.pg b/Contrib/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_17.pg index 8979e9df24..96b5ee4cf4 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_17.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_17.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,7 +51,7 @@ BEGIN_PGML Use the Factor Theorem to find all the zeros of [`f(x)=[$f]`] given that [`(x-[$b])`] is a factor. Enter all the zeros as a comma separated list. -+ Zeros: [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* ++ Zeros: [_______________]{$ans1} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_23.pg b/Contrib/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_23.pg index 00d3e13993..648eeade70 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_23.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_23.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -52,7 +52,7 @@ BEGIN_PGML Use the Rational Zero Theorem to find all the zeros of [`f(x)=[$f]`]. Enter all the zeros as a comma separated list. -+ Zeros: [_______________]{"$a,$b,1/$c"} [@ AnswerFormatHelp("numbers") @]* ++ Zeros: [_______________]{"$a,$b,1/$c"} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_25.pg b/Contrib/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_25.pg index 9f28ec417d..41c6b42f5f 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_25.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_25.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -52,7 +52,7 @@ BEGIN_PGML Use the Rational Zero Theorem to find all the zeros of [`f(x)=[$f]`]. Enter all the zeros as a comma separated list. -+ Zeros: [_______________]{"$a,$b,1/$c"} [@ AnswerFormatHelp("numbers") @]* ++ Zeros: [_______________]{"$a,$b,1/$c"} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_27.pg b/Contrib/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_27.pg index 783c18e4d0..5bd0dff812 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_27.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_27.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -52,7 +52,7 @@ BEGIN_PGML Use the Rational Zero Theorem to find all the zeros of [`f(x)=[$f]`]. Enter all the zeros as a comma separated list. -+ Zeros: [_______________]{"$a,$b,1/$c"} [@ AnswerFormatHelp("numbers") @]* ++ Zeros: [_______________]{"$a,$b,1/$c"} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_29.pg b/Contrib/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_29.pg index 769cec3c78..c0c3fcde20 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_29.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_29.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -52,7 +52,7 @@ BEGIN_PGML Use the Rational Zero Theorem to find all the zeros of [`f(x)=[$f]`]. Enter all the zeros as a comma separated list. -+ Zeros: [_______________]{"$a,$b,1/$c"} [@ AnswerFormatHelp("numbers") @]* ++ Zeros: [_______________]{"$a,$b,1/$c"} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_31.pg b/Contrib/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_31.pg index 769cec3c78..c0c3fcde20 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_31.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_31.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -52,7 +52,7 @@ BEGIN_PGML Use the Rational Zero Theorem to find all the zeros of [`f(x)=[$f]`]. Enter all the zeros as a comma separated list. -+ Zeros: [_______________]{"$a,$b,1/$c"} [@ AnswerFormatHelp("numbers") @]* ++ Zeros: [_______________]{"$a,$b,1/$c"} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_33.pg b/Contrib/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_33.pg index ea1ece4f45..170feefd7d 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_33.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_33.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -52,7 +52,7 @@ BEGIN_PGML Use the Rational Zero Theorem to find all the zeros of [`f(x)=[$f]`]. Enter all the zeros as a comma separated list. -+ Zeros: [_______________]{"$a,$b/2,1/$c"} [@ AnswerFormatHelp("numbers") @]* ++ Zeros: [_______________]{"$a,$b/2,1/$c"} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_35.pg b/Contrib/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_35.pg index 69f5f9d2dc..89d30cdf65 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_35.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_35.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -52,7 +52,7 @@ BEGIN_PGML Use the Rational Zero Theorem to find all the zeros of [`f(x)=[$f]`]. Enter all the zeros as a comma separated list. -+ Zeros: [_______________]{"$a,$b/2,1/$c"} [@ AnswerFormatHelp("numbers") @]* ++ Zeros: [_______________]{"$a,$b/2,1/$c"} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_41.pg b/Contrib/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_41.pg index b4b983df4b..d00ac04d8d 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_41.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_41.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -38,7 +38,7 @@ Context()->noreduce('(-x)-y','(-x)+y'); Context()->variables->add(i => "Real"); $a=non_zero_random(1,4,1); -$b = non_zero_random(-4,4,1); +$b = non_zero_random(-4,4,1); #f=(x^2+a^2)(x-b) expanded $f=Formula("x^3-$b*x^2+($a)^2*x-($a)^2*$b")->reduce; @@ -54,7 +54,7 @@ BEGIN_PGML Find all the zeros of [`f(x)=[$f]`]. Enter all the zeros as a comma separated list. -+ Zeros: [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* ++ Zeros: [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_43.pg b/Contrib/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_43.pg index d4e66c9bb2..6b4b29d247 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_43.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_43.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -38,7 +38,7 @@ Context()->noreduce('(-x)-y','(-x)+y'); Context()->variables->add(i => "Real"); $a=non_zero_random(1,4,1); -$b = non_zero_random(-4,4,1); +$b = non_zero_random(-4,4,1); $d = list_random(-2,-1,2); #f=$d(x^2+a^2)(x-b) expanded @@ -55,7 +55,7 @@ BEGIN_PGML Use the Rational Zero Theorem to find all the zeros of [`f(x)=[$f]`]. Enter all the zeros as a comma separated list. -+ Zeros: [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* ++ Zeros: [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_45.pg b/Contrib/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_45.pg index 528ca4e107..0d6fd81e03 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_45.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_45.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -38,7 +38,7 @@ Context()->noreduce('(-x)-y','(-x)+y'); Context()->variables->add(i => "Real"); $a=non_zero_random(1,4,1); -$b = non_zero_random(-4,4,1); +$b = non_zero_random(-4,4,1); $c = non_zero_random(-4,4,1); #f=(x-(a+bi))(x-(a-bi))(x-c) expanded @@ -54,7 +54,7 @@ BEGIN_PGML Use the Rational Zero Theorem to find all the zeros of [`f(x)=[$f]`]. Enter all the zeros as a comma separated list. -+ Zeros: [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* ++ Zeros: [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_7.pg b/Contrib/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_7.pg index 86de4e650d..fc305ea914 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_7.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_7.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,7 +51,7 @@ BEGIN_PGML Use the Remainder Theorem to find [`f([$m])`] for [`f(x)=[$f]`]. -+ [`f([$m])=`] [_______________]{$n} [@ AnswerFormatHelp("numbers") @]* ++ [`f([$m])=`] [_______________]{$n} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_8.pg b/Contrib/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_8.pg index 22899d7171..29b9313477 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_8.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_8.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -52,7 +52,7 @@ BEGIN_PGML Use the Remainder Theorem to find [`f([$m])`] for [`f(x)=[$f]`]. -+ [`f([$m])=`] [_______________]{$n} [@ AnswerFormatHelp("numbers") @]* ++ [`f([$m])=`] [_______________]{$n} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_9.pg b/Contrib/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_9.pg index 23f5245a98..0f982f70d4 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_9.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_9.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,10 +48,10 @@ $f=Formula("$a*x^3+($b-$a*$m)*x^2+($c-$b*$m)*x+(-$c*$m+$n)")->reduce; # Main text BEGIN_PGML -Use the Remainder Theorem to find [`f([$m])`] for [`f(x)=[$f]`]. +Use the Remainder Theorem to find [`f([$m])`] for [`f(x)=[$f]`]. -+ [`f([$m])=`] [_______________]{$n} [@ AnswerFormatHelp("numbers") @]* ++ [`f([$m])=`] [_______________]{$n} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_10.pg b/Contrib/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_10.pg index ba2d8004db..cd913e343c 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_10.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_10.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,13 +51,13 @@ $ans3=Compute("0"); BEGIN_PGML -Let [`` f(x)=[$f] ``]. Find the domain, vertical asymptote(s), and horizontal asymptote. +Let [`` f(x)=[$f] ``]. Find the domain, vertical asymptote(s), and horizontal asymptote. -+ Domain: [_______________]{$ans1} [@ AnswerFormatHelp("intervals") @]* ++ Domain: [_______________]{$ans1} [@ helpLink("intervals") @]* -+ Vertical Asymptote(s): [`x=`] [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* (Enter as a comma separated list if more than one) ++ Vertical Asymptote(s): [`x=`] [_______________]{$ans2} [@ helpLink("numbers") @]* (Enter as a comma separated list if more than one) -+ Horizontal Asymptote: [`y=`] [_______________]{$ans3} [@ AnswerFormatHelp("numbers") @]* ++ Horizontal Asymptote: [`y=`] [_______________]{$ans3} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_13.pg b/Contrib/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_13.pg index 6dcda9f271..b25c4744a5 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_13.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_13.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -55,13 +55,13 @@ $ans3=Compute("1"); BEGIN_PGML -Let [`` f(x)=[$f] ``]. Find the domain, vertical asymptote(s), and horizontal asymptote. +Let [`` f(x)=[$f] ``]. Find the domain, vertical asymptote(s), and horizontal asymptote. -+ Domain: [______________________]{$ans1} [@ AnswerFormatHelp("intervals") @]* ++ Domain: [______________________]{$ans1} [@ helpLink("intervals") @]* -+ Vertical Asymptote(s): [`x=`] [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* (Enter values as a comma separated list if more than one) ++ Vertical Asymptote(s): [`x=`] [_______________]{$ans2} [@ helpLink("numbers") @]* (Enter values as a comma separated list if more than one) -+ Horizontal Asymptote: [`y=`] [_______________]{$ans3} [@ AnswerFormatHelp("numbers") @]* ++ Horizontal Asymptote: [`y=`] [_______________]{$ans3} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_15.pg b/Contrib/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_15.pg index 20255aec48..516b80cda9 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_15.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_15.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -53,13 +53,13 @@ $ans3=Compute("0"); BEGIN_PGML -Let [`` f(x)=[$f] ``]. Find the domain, vertical asymptote(s), and horizontal asymptote. +Let [`` f(x)=[$f] ``]. Find the domain, vertical asymptote(s), and horizontal asymptote. -+ Domain: [______________________]{$ans1} [@ AnswerFormatHelp("intervals") @]* ++ Domain: [______________________]{$ans1} [@ helpLink("intervals") @]* -+ Vertical Asymptote(s): [`x=`] [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* (Enter values as a comma separated list if more than one) ++ Vertical Asymptote(s): [`x=`] [_______________]{$ans2} [@ helpLink("numbers") @]* (Enter values as a comma separated list if more than one) -+ Horizontal Asymptote: [`y=`] [_______________]{$ans3} [@ AnswerFormatHelp("numbers") @]* ++ Horizontal Asymptote: [`y=`] [_______________]{$ans3} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_17.pg b/Contrib/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_17.pg index 8b394d63b4..0108f7f91e 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_17.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_17.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,13 +50,13 @@ $ans3=Compute("0"); BEGIN_PGML -Let [`` f(x)=[$f] ``]. Find the domain, vertical asymptote(s), and horizontal asymptote. +Let [`` f(x)=[$f] ``]. Find the domain, vertical asymptote(s), and horizontal asymptote. -+ Domain: [______________________]{$ans1} [@ AnswerFormatHelp("intervals") @]* ++ Domain: [______________________]{$ans1} [@ helpLink("intervals") @]* -+ Vertical Asymptote(s): [`x=`] [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* (Enter values as a comma separated list if more than one) ++ Vertical Asymptote(s): [`x=`] [_______________]{$ans2} [@ helpLink("numbers") @]* (Enter values as a comma separated list if more than one) -+ Horizontal Asymptote: [`y=`] [_______________]{$ans3} [@ AnswerFormatHelp("numbers") @]* ++ Horizontal Asymptote: [`y=`] [_______________]{$ans3} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_19.pg b/Contrib/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_19.pg index 1d99519710..6367640379 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_19.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_19.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -54,13 +54,13 @@ $ans3=Formula("$a/$c")->reduce; BEGIN_PGML -Let [`` f(x)=[$f] ``]. Find the domain, vertical asymptote(s), and horizontal asymptote. +Let [`` f(x)=[$f] ``]. Find the domain, vertical asymptote(s), and horizontal asymptote. -+ Domain: [______________________]{$ans1} [@ AnswerFormatHelp("intervals") @]* ++ Domain: [______________________]{$ans1} [@ helpLink("intervals") @]* -+ Vertical Asymptote(s): [`x=`] [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* (Enter values as a comma separated list if more than one) ++ Vertical Asymptote(s): [`x=`] [_______________]{$ans2} [@ helpLink("numbers") @]* (Enter values as a comma separated list if more than one) -+ Horizontal Asymptote: [`y=`] [_______________]{$ans3} [@ AnswerFormatHelp("numbers") @]* ++ Horizontal Asymptote: [`y=`] [_______________]{$ans3} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_20.pg b/Contrib/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_20.pg index 5204d30206..84a452d0ca 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_20.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_20.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -51,9 +51,9 @@ BEGIN_PGML Find the [`x`] and [`y`]-intercepts for [`` f(x)=[$f] ``]. If there is more than one, enter them as a comma separated list. -+ [`x`]-intercept(s): [______________________]{$xint} [@ AnswerFormatHelp("points") @]* ++ [`x`]-intercept(s): [______________________]{$xint} [@ helpLink("points") @]* -+ [`y`]-intercept: [_______________]{$yint} [@ AnswerFormatHelp("points") @]* ++ [`y`]-intercept: [_______________]{$yint} [@ helpLink("points") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_39.pg b/Contrib/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_39.pg index 1cd271ca3e..4ff4232246 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_39.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_39.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -58,17 +58,17 @@ $ans5=Compute("$c"); BEGIN_PGML -Let [`` f(x)=[$f] ``]. Find the domain, vertical asymptote, behavior of the vertical asymptote, and horizontal asymptote. +Let [`` f(x)=[$f] ``]. Find the domain, vertical asymptote, behavior of the vertical asymptote, and horizontal asymptote. -+ Domain: [_______________]{$ans1} [@ AnswerFormatHelp("intervals") @]* ++ Domain: [_______________]{$ans1} [@ helpLink("intervals") @]* -+ Vertical Asymptote: [`x=`] [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* ++ Vertical Asymptote: [`x=`] [_______________]{$ans2} [@ helpLink("numbers") @]* -+ As [`x \to [$b]^-`], [`f(x) \to`] [_______________]{$ans3} [@ AnswerFormatHelp("numbers") @]* (enter infinity or -infinity) ++ As [`x \to [$b]^-`], [`f(x) \to`] [_______________]{$ans3} [@ helpLink("numbers") @]* (enter infinity or -infinity) -+ As [`x \to [$b]^+`], [`f(x) \to`] [_______________]{$ans4} [@ AnswerFormatHelp("numbers") @]* (enter infinity or -infinity) ++ As [`x \to [$b]^+`], [`f(x) \to`] [_______________]{$ans4} [@ helpLink("numbers") @]* (enter infinity or -infinity) -+ Horizontal Asymptote: [`y=`] [_______________]{$ans5} [@ AnswerFormatHelp("numbers") @]* ++ Horizontal Asymptote: [`y=`] [_______________]{$ans5} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_40.pg b/Contrib/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_40.pg index 80defd8058..3cd57524a5 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_40.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_40.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -62,17 +62,17 @@ $asymp=-$d; BEGIN_PGML -Let [`` f(x)=[$f] ``]. Find the domain, vertical asymptote, behavior of the vertical asymptote, and horizontal asymptote. +Let [`` f(x)=[$f] ``]. Find the domain, vertical asymptote, behavior of the vertical asymptote, and horizontal asymptote. -+ Domain: [_______________]{$ans1} [@ AnswerFormatHelp("intervals") @]* ++ Domain: [_______________]{$ans1} [@ helpLink("intervals") @]* -+ Vertical Asymptote: [`x=`] [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* ++ Vertical Asymptote: [`x=`] [_______________]{$ans2} [@ helpLink("numbers") @]* -+ As [`x \to [$asymp]^-`], [`f(x) \to`] [_______________]{$ans3} [@ AnswerFormatHelp("numbers") @]* (enter infinity or -infinity) ++ As [`x \to [$asymp]^-`], [`f(x) \to`] [_______________]{$ans3} [@ helpLink("numbers") @]* (enter infinity or -infinity) -+ As [`x \to [$asymp]^+`], [`f(x) \to`] [_______________]{$ans4} [@ AnswerFormatHelp("numbers") @]* (enter infinity or -infinity) ++ As [`x \to [$asymp]^+`], [`f(x) \to`] [_______________]{$ans4} [@ helpLink("numbers") @]* (enter infinity or -infinity) -+ Horizontal Asymptote: [`y=`] [_______________]{$ans5} [@ AnswerFormatHelp("numbers") @]* ++ Horizontal Asymptote: [`y=`] [_______________]{$ans5} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_43.pg b/Contrib/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_43.pg index fdc7f80c4d..13a84d2b60 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_43.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_43.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -70,21 +70,21 @@ $ans7=Formula("$a/$m")->reduce(); BEGIN_PGML -Let [`` f(x)=[$f] ``]. Find the domain, vertical asymptotes, behavior of the vertical asymptotes, and horizontal asymptote. +Let [`` f(x)=[$f] ``]. Find the domain, vertical asymptotes, behavior of the vertical asymptotes, and horizontal asymptote. -+ Domain: [____________________]{$ans1} [@ AnswerFormatHelp("intervals") @]* ++ Domain: [____________________]{$ans1} [@ helpLink("intervals") @]* -+ Vertical Asymptotes: [`x=`] [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* (Enter values as a comma separated list) ++ Vertical Asymptotes: [`x=`] [_______________]{$ans2} [@ helpLink("numbers") @]* (Enter values as a comma separated list) -+ As [`x \to [$l]^-`], [`f(x) \to`] [_______________]{$ans3} [@ AnswerFormatHelp("numbers") @]* (enter infinity or -infinity) ++ As [`x \to [$l]^-`], [`f(x) \to`] [_______________]{$ans3} [@ helpLink("numbers") @]* (enter infinity or -infinity) -+ As [`x \to [$l]^+`], [`f(x) \to`] [_______________]{$ans4} [@ AnswerFormatHelp("numbers") @]* (enter infinity or -infinity) ++ As [`x \to [$l]^+`], [`f(x) \to`] [_______________]{$ans4} [@ helpLink("numbers") @]* (enter infinity or -infinity) -+ As [`x \to [$r]^-`], [`f(x) \to`] [_______________]{$ans5} [@ AnswerFormatHelp("numbers") @]* (enter infinity or -infinity) ++ As [`x \to [$r]^-`], [`f(x) \to`] [_______________]{$ans5} [@ helpLink("numbers") @]* (enter infinity or -infinity) -+ As [`x \to [$r]^+`], [`f(x) \to`] [_______________]{$ans6} [@ AnswerFormatHelp("numbers") @]* (enter infinity or -infinity) ++ As [`x \to [$r]^+`], [`f(x) \to`] [_______________]{$ans6} [@ helpLink("numbers") @]* (enter infinity or -infinity) -+ Horizontal Asymptote: [`y=`] [_______________]{$ans7} [@ AnswerFormatHelp("numbers") @]* ++ Horizontal Asymptote: [`y=`] [_______________]{$ans7} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_45.pg b/Contrib/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_45.pg index e42f0ca646..7a514f128e 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_45.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_45.pg @@ -1,5 +1,5 @@ # DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -19,7 +19,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "PGchoicemacros.pl", -"AnswerFormatHelp.pl", + "PGgraphmacros.pl", "unionTables.pl", "parserPopUp.pl", @@ -86,7 +86,7 @@ $gr[3]->lb(new Label(0.25,9.75,'y','black','center','middle')); @perm = shuffle(4); for $i (0..3) { - plot_functions( $gr[$perm[$i]], $f[$perm[$i]]); + plot_functions( $gr[$perm[$i]], $f[$perm[$i]]); ($gr[$perm[$i]]->fn)[0]->steps(4000); $fig[$i]=image(insertGraph($gr[$perm[$i]]), width=>200,height=>200,tex_size=>450); @@ -111,18 +111,18 @@ $popup = PopUp(["?","A","B","C","D"], $letter[$k]); BEGIN_PGML Let [``f(x)=[$f]``]. Find the domain, vertical asymptotes, horizontal asymptote, and select the correct graph. -+ Domain: [____________________]{$ans1} [@ AnswerFormatHelp("intervals") @]* ++ Domain: [____________________]{$ans1} [@ helpLink("intervals") @]* -+ Vertical Asymptotes: [`x=`] [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* (Enter values as a comma separated list) ++ Vertical Asymptotes: [`x=`] [_______________]{$ans2} [@ helpLink("numbers") @]* (Enter values as a comma separated list) -+ Horizontal Asymptote: [`y=`] [_______________]{$ans3} [@ AnswerFormatHelp("numbers") @]* ++ Horizontal Asymptote: [`y=`] [_______________]{$ans3} [@ helpLink("numbers") @]* END_PGML BEGIN_TEXT $BR $BR -Which of the following is the graph of \( f(x) \)? +Which of the following is the graph of \( f(x) \)? \{ $popup->menu() \} $BR (Note, window is from [-10,10] so some of graph may be off the window) diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_48.pg b/Contrib/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_48.pg index 6ff17399a7..371439b9f3 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_48.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_48.pg @@ -1,5 +1,5 @@ # DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -19,7 +19,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "PGchoicemacros.pl", -"AnswerFormatHelp.pl", + "PGgraphmacros.pl", "unionTables.pl", "parserPopUp.pl", @@ -84,7 +84,7 @@ $gr[3]->lb(new Label(0.25,9.75,'y','black','center','middle')); @perm = shuffle(4); for $i (0..3) { - plot_functions( $gr[$perm[$i]], $f[$perm[$i]]); + plot_functions( $gr[$perm[$i]], $f[$perm[$i]]); ($gr[$perm[$i]]->fn)[0]->steps(4000); $fig[$i]=image(insertGraph($gr[$perm[$i]]), width=>200,height=>200,tex_size=>450); @@ -109,18 +109,18 @@ $popup = PopUp(["?","A","B","C","D"], $letter[$k]); BEGIN_PGML Let [``f(x)=[$f]``]. Find the domain, vertical asymptotes, slant asymptote, and select the correct graph. -+ Domain: [____________________]{$ans1} [@ AnswerFormatHelp("intervals") @]* ++ Domain: [____________________]{$ans1} [@ helpLink("intervals") @]* -+ Vertical Asymptotes: [`x=`] [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* ++ Vertical Asymptotes: [`x=`] [_______________]{$ans2} [@ helpLink("numbers") @]* -+ Slant Asymptote: [`y=`] [_______________]{$ans3} [@ AnswerFormatHelp("formulas") @]* ++ Slant Asymptote: [`y=`] [_______________]{$ans3} [@ helpLink("formulas") @]* END_PGML BEGIN_TEXT $BR $BR -Which of the following is the graph of \( f(x) \)? +Which of the following is the graph of \( f(x) \)? \{ $popup->menu() \} $BR (Note, window is from [-10,10] so some of graph may be off the window) diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_51.pg b/Contrib/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_51.pg index 6842bb61d4..f4a121c74b 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_51.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_51.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -67,7 +67,7 @@ Find an equation, [`f(x)`], for a rational function that satisfies the following + [`y`]-intercept at [`(0,[$yint])`] -[`f(x)=`] [_________________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`f(x)=`] [_________________________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_57.pg b/Contrib/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_57.pg index f4476675f0..033d397f52 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_57.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_57.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -65,7 +65,7 @@ Write an equation for the graphed function. $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>200,height=>200,tex_size=>800 ) \} $BR $BR @@ -75,7 +75,7 @@ $BR $BR $BR y = \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR $ECENTER diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_6.pg b/Contrib/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_6.pg index b1404704a4..782b250f02 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_6.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_6.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,7 +50,7 @@ BEGIN_PGML Find the domain of [`` f(x)=[$f] ``]. Enter your solution in interval notation. -[_______________]{$ans} [@ AnswerFormatHelp("intervals") @]* +[_______________]{$ans} [@ helpLink("intervals") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_61.pg b/Contrib/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_61.pg index 60593911f9..77b8ac10dc 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_61.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_61.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -65,7 +65,7 @@ Write an equation for the graphed function. $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>200,height=>200,tex_size=>800 ) \} $BR $BR @@ -75,7 +75,7 @@ $BR $BR $BR y = \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR $ECENTER diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_71.pg b/Contrib/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_71.pg index d6659f6dbd..a0d5e6e702 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_71.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_71.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "AppletObjects.pl", "unionTables.pl", @@ -43,7 +43,7 @@ HEADER_TEXT(MODES( )); $desmos_div = MODES( - HTML=>qq(
), + HTML=>qq(
), TeX=>'Interactive graph best viewed online' ); @@ -70,11 +70,11 @@ if($sign>0){$ans=Compute("($endpt,infinity)");}else{$ans=Compute("(-infinity,$en BEGIN_PGML -Use Desmos graphing tool below to graph [`` f(x)=[$f] ``]. +Use Desmos graphing tool below to graph [`` f(x)=[$f] ``]. Use the graph to solve [`f(x)>0`]. Enter the solution as an interval of [`x`] values that make the inequality true. -[_______________________]{$ans} [@ AnswerFormatHelp("intervals") @]* +[_______________________]{$ans} [@ helpLink("intervals") @]* END_PGML @@ -103,10 +103,10 @@ TEXT( MODES(TeX=>'', HTML=><qq(
), + HTML=>qq(
), TeX=>'Interactive graph best viewed online' ); @@ -68,11 +68,11 @@ $ans=Compute("($b,$a)U($c,infinity)"); BEGIN_PGML -Use Desmos graphing tool below to graph [`` f(x)=[$f] ``]. +Use Desmos graphing tool below to graph [`` f(x)=[$f] ``]. Use the graph to solve [`f(x)>0`]. Enter the solution as an interval of [`x`] values that make the inequality true. -[_______________________]{$ans} [@ AnswerFormatHelp("intervals") @]* +[_______________________]{$ans} [@ helpLink("intervals") @]* END_PGML @@ -101,10 +101,10 @@ TEXT( MODES(TeX=>'', HTML=><qq(
), + HTML=>qq(
), TeX=>'Interactive graph best viewed online' ); @@ -69,10 +69,10 @@ $ans=Compute("sqrt($c/$b)"); BEGIN_PGML -The concentration [`C`] of a drug in a patient's bloodstream [`t`] hours after injection is given by [`` C(t)=[$f] ``]. Use Desmos graphing tool below to approximate the time when the concentration is highest. +The concentration [`C`] of a drug in a patient's bloodstream [`t`] hours after injection is given by [`` C(t)=[$f] ``]. Use Desmos graphing tool below to approximate the time when the concentration is highest. - [`t=`] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* + [`t=`] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML @@ -101,10 +101,10 @@ TEXT( MODES(TeX=>'', HTML=><qq(
), + HTML=>qq(
), TeX=>'Interactive graph best viewed online' ); @@ -72,18 +72,18 @@ BEGIN_PGML A right circular cylinder has a volume of [`[$a]`] cubic inches. Find the radius and height that will yield minimum surface area. To do so, answer the following: -+ volume of a right circular cylinder with radius [`r`] and height [`h`]: ++ volume of a right circular cylinder with radius [`r`] and height [`h`]: [`V=`][_______________]{$ans1} (should be in terms of [`r`] and [`h`], enter [`\pi`] as pi) -+ surface area of a right circular cylinder with radius [`r`] and height [`h`]: ++ surface area of a right circular cylinder with radius [`r`] and height [`h`]: [`SA=`] [_______________]{$ans2} (should be in terms of [`r`] and [`h`]) -+ surface area of this right circular cylinder in terms of only [`r`]: ++ surface area of this right circular cylinder in terms of only [`r`]: [`SA=`][_______________]{$ans3} (should be in terms of just [`r`], no [`h`]) -+ Use technology below to find the [`r`] and [`h`] that minimize the surface area. - [`r=`] [_______________]{$ans4} - [`h=`] [_______________]{$ans5} ++ Use technology below to find the [`r`] and [`h`] that minimize the surface area. + [`r=`] [_______________]{$ans4} + [`h=`] [_______________]{$ans5} END_PGML @@ -111,10 +111,10 @@ TEXT( MODES(TeX=>'', HTML=><reduce(); # Main text BEGIN_PGML -Write an equation that describes the following relationship: [`y`] varies inversely as the fourth power of [`x`] and when [`x=[$x0]`], [`y=[$y0]`]. +Write an equation that describes the following relationship: [`y`] varies inversely as the fourth power of [`x`] and when [`x=[$x0]`], [`y=[$y0]`]. -[`y=`] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* +[`y=`] [_______________]{$ans1} [@ helpLink("formulas") @]* diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_15.pg b/Contrib/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_15.pg index 9b9da535db..9f7a7bbb4f 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_15.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_15.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -46,9 +46,9 @@ $k=$y0*$x0**(1/3); # Main text BEGIN_PGML -Write an equation that describes the following relationship: [`y`] varies inversely as the cube root of [`x`] and when [`x=[$x0]`], [`y=[$y0]`]. +Write an equation that describes the following relationship: [`y`] varies inversely as the cube root of [`x`] and when [`x=[$x0]`], [`y=[$y0]`]. -[`y=`] [_______________]{"$k/x^(1/3)"} [@ AnswerFormatHelp("formulas") @]* +[`y=`] [_______________]{"$k/x^(1/3)"} [@ helpLink("formulas") @]* diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_17.pg b/Contrib/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_17.pg index 1e0a6dd898..2475eeb7bf 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_17.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_17.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,9 +51,9 @@ $ans1 = Formula("$k*x*z*w")->reduce(); # Main text BEGIN_PGML -Write an equation that describes the following relationship: [`y`] varies jointly as [`x`], [`z`], and [`w`] and when [`x=[$x0]`], [`z=[$z0]`], [`w=[$w0]`], then [`y=[$y0]`]. +Write an equation that describes the following relationship: [`y`] varies jointly as [`x`], [`z`], and [`w`] and when [`x=[$x0]`], [`z=[$z0]`], [`w=[$w0]`], then [`y=[$y0]`]. -[`y=`] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* +[`y=`] [_______________]{$ans1} [@ helpLink("formulas") @]* diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_19.pg b/Contrib/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_19.pg index 518aa46aca..280cd62723 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_19.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_19.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,9 +50,9 @@ $ans1 = Formula("$k*x*sqrt(z)")->reduce(); # Main text BEGIN_PGML -Write an equation that describes the following relationship: [`y`] varies jointly as [`x`] and the square root of [`z`], and when [`x=[$x0]`] and [`z=[$z0]`], then [`y=[$y0]`]. +Write an equation that describes the following relationship: [`y`] varies jointly as [`x`] and the square root of [`z`], and when [`x=[$x0]`] and [`z=[$z0]`], then [`y=[$y0]`]. -[`y=`] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* +[`y=`] [_______________]{$ans1} [@ helpLink("formulas") @]* diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_25.pg b/Contrib/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_25.pg index bb1437d129..3dd65f3bb2 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_25.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_25.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,10 +48,10 @@ $ans1 = $f->eval(x=>$x1); # Main text BEGIN_PGML -Use the given information to find the unknown value: -[`y`] varies directly as the square of [`x`]. When [`x=[$x0]`], then [`y=[$y0]`]. Find [`y`] when [`x=[$x1]`]. +Use the given information to find the unknown value: +[`y`] varies directly as the square of [`x`]. When [`x=[$x0]`], then [`y=[$y0]`]. Find [`y`] when [`x=[$x1]`]. -[`y=`] [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +[`y=`] [_______________]{$ans1} [@ helpLink("numbers") @]* diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_26.pg b/Contrib/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_26.pg index 7cc6f8f985..c2be3be25d 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_26.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_26.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,10 +48,10 @@ $ans1 = $f->eval(x=>$x1); # Main text BEGIN_PGML -Use the given information to find the unknown value: -[`y`] varies directly as the cube of [`x`]. When [`x=[$x0]`], then [`y=[$y0]`]. Find [`y`] when [`x=[$x1]`]. +Use the given information to find the unknown value: +[`y`] varies directly as the cube of [`x`]. When [`x=[$x0]`], then [`y=[$y0]`]. Find [`y`] when [`x=[$x1]`]. -[`y=`] [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +[`y=`] [_______________]{$ans1} [@ helpLink("numbers") @]* diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_29.pg b/Contrib/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_29.pg index 1425bbd0c9..875a6c1e87 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_29.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_29.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,10 +48,10 @@ $ans1 = $f->eval(x=>$x1); # Main text BEGIN_PGML -Use the given information to find the unknown value: -[`y`] varies inversely with [`x`]. When [`x=[$x0]`], then [`y=[$y0]`]. Find [`y`] when [`x=[$x1]`]. +Use the given information to find the unknown value: +[`y`] varies inversely with [`x`]. When [`x=[$x0]`], then [`y=[$y0]`]. Find [`y`] when [`x=[$x1]`]. -[`y=`] [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +[`y=`] [_______________]{$ans1} [@ helpLink("numbers") @]* diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_35.pg b/Contrib/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_35.pg index e93dfe0506..3cda3be74c 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_35.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_35.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -54,10 +54,10 @@ $ans1 = $f->eval(x=>$x1,z=>$z1,w=>$w1); # Main text BEGIN_PGML -Use the given information to find the unknown value: -[`y`] varies jointly as [`x`], [`z`], and [`w`]. When [`x=[$x0]`], [`z=[$z0]`], and [`w=[$w0]`], then [`y=[$y0]`]. Find [`y`] when [`x=[$x1]`], [`z=[$z1]`], and [`w=[$w1]`]. +Use the given information to find the unknown value: +[`y`] varies jointly as [`x`], [`z`], and [`w`]. When [`x=[$x0]`], [`z=[$z0]`], and [`w=[$w0]`], then [`y=[$y0]`]. Find [`y`] when [`x=[$x1]`], [`z=[$z1]`], and [`w=[$w1]`]. -[`y=`] [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +[`y=`] [_______________]{$ans1} [@ helpLink("numbers") @]* diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_37.pg b/Contrib/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_37.pg index c535809fa9..28537f9a3c 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_37.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_37.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,10 +51,10 @@ $ans1 = $f->eval(x=>$x1,z=>$z1); # Main text BEGIN_PGML -Use the given information to find the unknown value: -[`y`] varies jointly as the square of [`x`] and the square root of [`z`]. When [`x=[$x0]`] and [`z=[$z0]`], then [`y=[$y0]`]. Find [`y`] when [`x=[$x1]`] and [`z=[$z1]`]. +Use the given information to find the unknown value: +[`y`] varies jointly as the square of [`x`] and the square root of [`z`]. When [`x=[$x0]`] and [`z=[$z0]`], then [`y=[$y0]`]. Find [`y`] when [`x=[$x1]`] and [`z=[$z1]`]. -[`y=`] [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +[`y=`] [_______________]{$ans1} [@ helpLink("numbers") @]* diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_5.pg b/Contrib/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_5.pg index bd82dbd882..68da48a71d 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_5.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_5.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -46,9 +46,9 @@ $ans1 = Formula("$k*x^2")->reduce(); # Main text BEGIN_PGML -Write an equation that describes the following relationship: [`y`] varies directly as the square of [`x`] and when [`x=[$x0]`], [`y=[$y0]`]. +Write an equation that describes the following relationship: [`y`] varies directly as the square of [`x`] and when [`x=[$x0]`], [`y=[$y0]`]. -[`y=`] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* +[`y=`] [_______________]{$ans1} [@ helpLink("formulas") @]* diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_51.pg b/Contrib/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_51.pg index 95f88a30a5..4a0380ebf1 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_51.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_51.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -49,9 +49,9 @@ $ans1 = $f->eval(s=>$s1); # Main text BEGIN_PGML -The distance [`s`] that an object falls varies directly with the square of the time, [`t`], of the fall. If an object falls [`[$s0]`] feet in one second, how long will it take for it to fall [`[$s1]`] feet? +The distance [`s`] that an object falls varies directly with the square of the time, [`t`], of the fall. If an object falls [`[$s0]`] feet in one second, how long will it take for it to fall [`[$s1]`] feet? -[`t=`] [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +[`t=`] [_______________]{$ans1} [@ helpLink("numbers") @]* diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_57.pg b/Contrib/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_57.pg index 8b2b1ee61e..650f454e07 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_57.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_57.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -52,7 +52,7 @@ $ans1 = $f->eval(r=>$r1); BEGIN_PGML The current in a circuit varies inversely with its resistance measured in ohms. When the current in a circuit is [`[$c0]`] amperes, the resistance is [`[$r0]`] ohms. Find the current if the resistance is [`[$r1]`] ohms. -Current [`=`] [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +Current [`=`] [_______________]{$ans1} [@ helpLink("numbers") @]* diff --git a/Contrib/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_9.pg b/Contrib/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_9.pg index 354bb841c4..f077482f14 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_9.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_9.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -46,9 +46,9 @@ $ans1 = Formula("$k*x^4")->reduce(); # Main text BEGIN_PGML -Write an equation that describes the following relationship: [`y`] varies directly as the fourth power of [`x`] and when [`x=[$x0]`], [`y=[$y0]`]. +Write an equation that describes the following relationship: [`y`] varies directly as the fourth power of [`x`] and when [`x=[$x0]`], [`y=[$y0]`]. -[`y=`] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* +[`y=`] [_______________]{$ans1} [@ helpLink("formulas") @]* diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_18.pg b/Contrib/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_18.pg index f34cf3b9c9..39ef7a1d74 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_18.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_18.pg @@ -23,7 +23,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "parserPopUp.pl", "PGcourse.pl", @@ -60,7 +60,7 @@ $fun = Formula("y=$h($n^x)"); BEGIN_PGML Find the formula for an exponential equation that passes through the points, ([$a],[$b]) and ([$c],[$d]). The exponential equation should be of the form [`y=ab^x`]. -[___________________]{$fun} [@ AnswerFormatHelp("equation") @]* +[___________________]{$fun} [@ helpLink("equation") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_21.pg b/Contrib/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_21.pg index 72c7a267f2..2530df1285 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_21.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_21.pg @@ -23,7 +23,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "parserPopUp.pl", @@ -65,9 +65,9 @@ $fun = Formula("y=$h($n^x)"); # Main text BEGIN_PGML -Find the formula for an exponential equation that passes through the points ([$a],[$b]) and ([$c],[$d]). The exponential equation should be of the form [`y=ab^x`]. +Find the formula for an exponential equation that passes through the points ([$a],[$b]) and ([$c],[$d]). The exponential equation should be of the form [`y=ab^x`]. -[____________________]{$fun} [@ AnswerFormatHelp("equation") @]* +[____________________]{$fun} [@ helpLink("equation") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_23.pg b/Contrib/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_23.pg index ec8807c620..f59256717a 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_23.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_23.pg @@ -24,7 +24,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "niceTables.pl", "parserPopUp.pl", @@ -74,9 +74,9 @@ END_TEXT BEGIN_PGML -[_________________]{$popup1} +[_________________]{$popup1} -[` f(x) `] =[___________________________]{$ans} [@ AnswerFormatHelp("formula") @]* +[` f(x) `] =[___________________________]{$ans} [@ helpLink("formula") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_24.pg b/Contrib/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_24.pg index fcd7561ae8..238a26db3e 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_24.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_24.pg @@ -24,7 +24,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "niceTables.pl", "parserPopUp.pl", @@ -71,9 +71,9 @@ END_TEXT BEGIN_PGML -[_________________]{$popup} +[_________________]{$popup} -[` f(x) `] =[_________________________]{$ans} [@ AnswerFormatHelp("formula") @]* +[` f(x) `] =[_________________________]{$ans} [@ helpLink("formula") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_25.pg b/Contrib/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_25.pg index fe21cae237..75578c5170 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_25.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_25.pg @@ -24,7 +24,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "niceTables.pl", "parserPopUp.pl", @@ -71,9 +71,9 @@ END_TEXT BEGIN_PGML -[_________________]{$popup} +[_________________]{$popup} -[` f(x) `] =[________________________]{$ans} [@ AnswerFormatHelp("formula") @]* +[` f(x) `] =[________________________]{$ans} [@ helpLink("formula") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_26.pg b/Contrib/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_26.pg index bda124031a..89de47c3ca 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_26.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_26.pg @@ -24,7 +24,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "niceTables.pl", "parserPopUp.pl", @@ -71,9 +71,9 @@ END_TEXT BEGIN_PGML -[_________________]{$popup} +[_________________]{$popup} -[` f(x) `] =[_________________________]{$ans} [@ AnswerFormatHelp("formula") @]* +[` f(x) `] =[_________________________]{$ans} [@ helpLink("formula") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_28.pg b/Contrib/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_28.pg index b4bbbf6a35..a68469230c 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_28.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_28.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -60,17 +60,17 @@ $answer3 = Compute($rate); BEGIN_PGML How much money is in an investment account at time [`t = [$t]`] (in years) if the account is represented by the formula, -[``A(t) = [$p]\left(1+\frac{[$r]}{12}\right)^{12t} ``] +[``A(t) = [$p]\left(1+\frac{[$r]}{12}\right)^{12t} ``] -[________________]{$answer1} [@ AnswerFormatHelp("number") @]* +[________________]{$answer1} [@ helpLink("number") @]* What is the principal value of the account? In other words, what is [`A(0)`]? -[____________]{$answer2} [@ AnswerFormatHelp("number") @]* +[____________]{$answer2} [@ helpLink("number") @]* What is the interest rate for the account? Enter your answer as a percentage. -[____________]{$answer3} [@ AnswerFormatHelp("number") @]* +[____________]{$answer3} [@ helpLink("number") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_4.pg b/Contrib/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_4.pg index f43920b3f2..25399248c2 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_4.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_4.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "PGchoicemacros.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", @@ -38,12 +38,12 @@ TEXT(beginproblem()); $radio1 = RadioButtons( ["exponential function","linear function"], - "exponential function" + "exponential function" ); $radio2 = RadioButtons( ["exponential function","linear function"], - "linear function" + "linear function" ); # Main text @@ -52,27 +52,27 @@ BEGIN_PGML Determine whether the following statements represent an exponential function or a linear function. -+ The average annual population of a pack of wolves increases each year by 25 wolves. ++ The average annual population of a pack of wolves increases each year by 25 wolves. - [_______________]{$radio2} + [_______________]{$radio2} -+ The value of a coin collection has increased by 3.25% annually over the last 20 years. ++ The value of a coin collection has increased by 3.25% annually over the last 20 years. - [_______________]{$radio1} + [_______________]{$radio1} -+ A population of bacteria decreases by a factor of [`\frac{1}{4}`] every 24 hours. ++ A population of bacteria decreases by a factor of [`\frac{1}{4}`] every 24 hours. - [_______________]{$radio1} + [_______________]{$radio1} -+ For each training session, a personal trainer charges his clients $5 less than the previous training session. ++ For each training session, a personal trainer charges his clients $5 less than the previous training session. [______________]{$radio2} -+ The population of a certain country at time `t` is represented by the function [`f(t)=50000(1.02)^{.25t}`]. ++ The population of a certain country at time `t` is represented by the function [`f(t)=50000(1.02)^{.25t}`]. [______________]{$radio1} diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_44.pg b/Contrib/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_44.pg index 4d38ffc78d..4fc7a5e518 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_44.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_44.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -53,10 +53,10 @@ $ans=Compute("$answer"); BEGIN_PGML -For the function [`f(x)= [$a]([$b])^x`], find [`f([$c])`]. +For the function [`f(x)= [$a]([$b])^x`], find [`f([$c])`]. -[`f([$c])=`][_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`f([$c])=`][_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_45.pg b/Contrib/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_45.pg index ac202bde0b..7f7977a80e 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_45.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_45.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -55,10 +55,10 @@ $answer = Compute("$calc")->reduce; BEGIN_PGML -For the function [`f(x)= [$f]`], find [`f([$d])`]. +For the function [`f(x)= [$f]`], find [`f([$d])`]. [`f([$d])=`] [_______________]{$answer} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_48.pg b/Contrib/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_48.pg index 7bf35005b1..fdc5b01ba4 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_48.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_48.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -49,9 +49,9 @@ $ans = $f; # Main text BEGIN_PGML -For the function [`f(x)= [$a]([$b])^{-x+1}+[$c]`], find [`f([$d])`]. +For the function [`f(x)= [$a]([$b])^{-x+1}+[$c]`], find [`f([$d])`]. -[`f([$d])=`] [__________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`f([$d])=`] [__________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_61.pg b/Contrib/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_61.pg index 7b52f2059a..e75987c00f 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_61.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_61.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -52,16 +52,16 @@ $ans2 = Compute("$b*e^($a*.08)"); BEGIN_PGML -The fox population in a certain region has an annual growth rate of [$a]% per year. In the year 2012, there were [$b] fox counted in the area. +The fox population in a certain region has an annual growth rate of [$a]% per year. In the year 2012, there were [$b] fox counted in the area. Write a function, [`f(t)`], that models the number of fox in the population at [`t`] years after 2012. Assume a continuous growth rate. -[`f(t)`]=[_______________]{$ans1} [@ AnswerFormatHelp("formula") @]* +[`f(t)`]=[_______________]{$ans1} [@ helpLink("formula") @]* What is the fox population predicted to be in 2020? -[_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans2} [@ helpLink("numbers") @]* diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_65.pg b/Contrib/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_65.pg index 86e443a369..5e4bf580ec 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_65.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_65.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextCurrency.pl", @@ -59,9 +59,9 @@ $ans=Compute("$c/(1+(($a*.01)/365))^(365*$b)"); BEGIN_PGML -[$name] wants to save $[$c] for a down payment on a home. How much will [$pronoun] need to invest in an account with [$a]% APR, compounding daily, in order to reach [$poss] goal in [$b] years? +[$name] wants to save $[$c] for a down payment on a home. How much will [$pronoun] need to invest in an account with [$a]% APR, compounding daily, in order to reach [$poss] goal in [$b] years? -$[_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +$[_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_11.pg b/Contrib/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_11.pg index db0f37dbf4..a2cadea8aa 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_11.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_11.pg @@ -24,7 +24,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -66,22 +66,22 @@ $gr1->lb( new Label(5,8,'F', 'red','center','middle')); -add_functions($gr1, "2(0.69)^x for x in <-10,10>" . +add_functions($gr1, "2(0.69)^x for x in <-10,10>" . " using color:blue and weight:2"); -add_functions($gr1, "2(1.28)^x for x in <-10,10>" . +add_functions($gr1, "2(1.28)^x for x in <-10,10>" . " using color:red and weight:2"); -add_functions($gr1, "2(0.81)^x for x in <-10,10>" . +add_functions($gr1, "2(0.81)^x for x in <-10,10>" . " using color:red and weight:2"); -add_functions($gr1, "4(1.28)^x for x in <-10,10>" . +add_functions($gr1, "4(1.28)^x for x in <-10,10>" . " using color:orange and weight:2"); -add_functions($gr1, "2(1.59)^x for x in <-10,10>" . +add_functions($gr1, "2(1.59)^x for x in <-10,10>" . " using color:blue and weight:2"); -add_functions($gr1, "4(0.69)^x for x in <-10,10>" . +add_functions($gr1, "4(0.69)^x for x in <-10,10>" . " using color:black and weight:2"); $popup1 = PopUp(["?", "A","B", "C", "D", "E", "F"], diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_19.pg b/Contrib/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_19.pg index e68e4591af..7efe758aee 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_19.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_19.pg @@ -24,7 +24,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -65,22 +65,22 @@ $gr1->lb( new Label(7,8,'F', 'black','center','middle')); -add_functions($gr1, "5(.9)^x for x in <-10,10>" . +add_functions($gr1, "5(.9)^x for x in <-10,10>" . " using color:blue and weight:2"); -add_functions($gr1, "8(.7)^x for x in <-10,10>" . +add_functions($gr1, "8(.7)^x for x in <-10,10>" . " using color:red and weight:2"); -add_functions($gr1, "4(.5)^x for x in <-10,10>" . +add_functions($gr1, "4(.5)^x for x in <-10,10>" . " using color:black and weight:2"); -add_functions($gr1, "3(3)^x for x in <-10,10>" . +add_functions($gr1, "3(3)^x for x in <-10,10>" . " using color:orange and weight:2"); -add_functions($gr1, "2.2(1.8)^x for x in <-10,10>" . +add_functions($gr1, "2.2(1.8)^x for x in <-10,10>" . " using color:blue and weight:2"); -add_functions($gr1, "2(1.2)^x for x in <-10,10>" . +add_functions($gr1, "2(1.2)^x for x in <-10,10>" . " using color:black and weight:2"); $popup1 = PopUp(["?", "A","B", "C", "D", "E", "F"], diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_27.pg b/Contrib/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_27.pg index e95bc0971d..4db7d6b1c0 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_27.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_27.pg @@ -24,7 +24,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -74,16 +74,16 @@ size=>[600,600] ); -add_functions($grA, "$a^(x-$b) for x in <-6,6>" . +add_functions($grA, "$a^(x-$b) for x in <-6,6>" . " using color:blue and weight:2"); -add_functions($grB, "$a^(x+.5*$b) for x in <-6,6>" . +add_functions($grB, "$a^(x+.5*$b) for x in <-6,6>" . " using color:blue and weight:2"); -add_functions($grC, "$a^x+$b for x in <-6,6>" . +add_functions($grC, "$a^x+$b for x in <-6,6>" . " using color:blue and weight:2"); -add_functions($grD, "$a^x-$b for x in <-6,6>" . +add_functions($grD, "$a^x-$b for x in <-6,6>" . " using color:blue and weight:2"); @@ -119,7 +119,7 @@ $ans8 = List( Point("(0,$b+1)")); BEGIN_PGML -Consider the graph of [`f(x)=[$fun]`]. +Consider the graph of [`f(x)=[$fun]`]. Which of the following shows the related graph [`h(x)=[$transfun]`]? [_____________]{$popup1} @@ -129,21 +129,21 @@ Which of the following shows the related graph [`h(x)=[$transfun]`]? [_________ >>C. [@ image(insertGraph($grC), width=>300, height=>300), @]* D. [@ image(insertGraph($grD), width=>300, height=>300), @]*<< -What is the horizontal asymptote of [`f(x)`]? [_____________]{$popup2}=[_____________]{$ans1} [@ AnswerFormatHelp("equations") @]* +What is the horizontal asymptote of [`f(x)`]? [_____________]{$popup2}=[_____________]{$ans1} [@ helpLink("equations") @]* + +What is the domain of [`f(x)`]? [_____________]{$ans2} [@ helpLink("intervals") @]* -What is the domain of [`f(x)`]? [_____________]{$ans2} [@ AnswerFormatHelp("intervals") @]* +What is the range of [`f(x)`]? [_____________]{$ans3} [@ helpLink("intervals") @]* -What is the range of [`f(x)`]? [_____________]{$ans3} [@ AnswerFormatHelp("intervals") @]* +What is the [`y`]-intercept of [`f(x)`]? [_____________]{$ans4} [@ helpLink("points") @]* -What is the [`y`]-intercept of [`f(x)`]? [_____________]{$ans4} [@ AnswerFormatHelp("points") @]* - -What is the horizontal asymptote of [`h(x)`]? [_____________]{$popup2}=[_____________]{$ans5} [@ AnswerFormatHelp("equations") @]* +What is the horizontal asymptote of [`h(x)`]? [_____________]{$popup2}=[_____________]{$ans5} [@ helpLink("equations") @]* -What is the domain of [`h(x)`]? [_____________]{$ans6} [@ AnswerFormatHelp("intervals") @]* +What is the domain of [`h(x)`]? [_____________]{$ans6} [@ helpLink("intervals") @]* -What is the range of [`h(x)`]? [_____________]{$ans7} [@ AnswerFormatHelp("intervals") @]* +What is the range of [`h(x)`]? [_____________]{$ans7} [@ helpLink("intervals") @]* -What is the [`y`]-intercept of [`h(x)`]? [_____________]{$ans8} [@ AnswerFormatHelp("points") @]* +What is the [`y`]-intercept of [`h(x)`]? [_____________]{$ans8} [@ helpLink("points") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_28.pg b/Contrib/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_28.pg index 7002aae72a..27456353bf 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_28.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_28.pg @@ -24,7 +24,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -75,22 +75,22 @@ size=>[600,600] -add_functions($grA, "$a^(x-$b) for x in <-6,6>" . +add_functions($grA, "$a^(x-$b) for x in <-6,6>" . " using color:blue and weight:2"); ($grA->fn)[0]->steps(2000); -add_functions($grB, "$a^(x+$b) for x in <-6,6>" . +add_functions($grB, "$a^(x+$b) for x in <-6,6>" . " using color:blue and weight:2"); ($grB->fn)[0]->steps(2000); -add_functions($grC, "$a^x+$b for x in <-6,6>" . +add_functions($grC, "$a^x+$b for x in <-6,6>" . " using color:blue and weight:2"); ($grC->fn)[0]->steps(2000); -add_functions($grD, "$a^x-$b for x in <-6,6>" . +add_functions($grD, "$a^x-$b for x in <-6,6>" . " using color:blue and weight:2"); ($grD->fn)[0]->steps(2000); @@ -127,7 +127,7 @@ $ans8 = List( Point("(0,$hint)")); BEGIN_PGML -Consider the graph of [`f(x)=[$fun]`]. +Consider the graph of [`f(x)=[$fun]`]. Which of the following shows the related graph [`h(x)=[$transfun]`]? [_____________]{$popup1} @@ -137,21 +137,21 @@ Which of the following shows the related graph [`h(x)=[$transfun]`]? [_________ >>C. [@ image(insertGraph($grC), width=>300, height=>300), @]* D. [@ image(insertGraph($grD), width=>300, height=>300), @]*<< -What is the horizontal asymptote of [`f(x)`]? [_____________]{$popup2}=[_____________]{$ans1} [@ AnswerFormatHelp("equations") @]* +What is the horizontal asymptote of [`f(x)`]? [_____________]{$popup2}=[_____________]{$ans1} [@ helpLink("equations") @]* + +What is the domain of [`f(x)`]? [_____________]{$ans2} [@ helpLink("intervals") @]* -What is the domain of [`f(x)`]? [_____________]{$ans2} [@ AnswerFormatHelp("intervals") @]* +What is the range of [`f(x)`]? [_____________]{$ans3} [@ helpLink("intervals") @]* -What is the range of [`f(x)`]? [_____________]{$ans3} [@ AnswerFormatHelp("intervals") @]* +What is the [`y`]-intercept of [`f(x)`]? [_____________]{$ans4} [@ helpLink("points") @]* -What is the [`y`]-intercept of [`f(x)`]? [_____________]{$ans4} [@ AnswerFormatHelp("points") @]* - -What is the horizontal asymptote of [`h(x)`]? [_____________]{$popup2}=[_____________]{$ans5} [@ AnswerFormatHelp("equations") @]* +What is the horizontal asymptote of [`h(x)`]? [_____________]{$popup2}=[_____________]{$ans5} [@ helpLink("equations") @]* -What is the domain of [`h(x)`]? [_____________]{$ans6} [@ AnswerFormatHelp("intervals") @]* +What is the domain of [`h(x)`]? [_____________]{$ans6} [@ helpLink("intervals") @]* -What is the range of [`h(x)`]? [_____________]{$ans7} [@ AnswerFormatHelp("intervals") @]* +What is the range of [`h(x)`]? [_____________]{$ans7} [@ helpLink("intervals") @]* -What is the [`y`]-intercept of [`h(x)`]? [_____________]{$ans8} [@ AnswerFormatHelp("points") @]* +What is the [`y`]-intercept of [`h(x)`]? [_____________]{$ans8} [@ helpLink("points") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_32.pg b/Contrib/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_32.pg index 5cb5eafb3f..be1f3f1528 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_32.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_32.pg @@ -25,7 +25,7 @@ loadMacros( "PGML.pl", "MathObjects.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + ); TEXT(beginproblem()); @@ -51,17 +51,17 @@ BEGIN_PGML For the following exercises, start with the graph of [`f(x)=[$fun]`]. Then write a function, [`g(x)`], that results from the given transformation. -Shift [`f(x)`] [`[$b]`] units upward: [`g(x)`]=[_________________]{$ans1}[@ AnswerFormatHelp("formula") @]* +Shift [`f(x)`] [`[$b]`] units upward: [`g(x)`]=[_________________]{$ans1}[@ helpLink("formula") @]* -Shift [`f(x)`] [`[$c]`] units downward: [`g(x)`]=[_________________]{$ans2}[@ AnswerFormatHelp("formula") @]* +Shift [`f(x)`] [`[$c]`] units downward: [`g(x)`]=[_________________]{$ans2}[@ helpLink("formula") @]* -Shift [`f(x)`] [`[$d]`] units left: [`g(x)`]=[_________________]{$ans3}[@ AnswerFormatHelp("formula") @]* +Shift [`f(x)`] [`[$d]`] units left: [`g(x)`]=[_________________]{$ans3}[@ helpLink("formula") @]* -Shift [`f(x)`] [`[$e]`] units right: [`g(x)`]=[_________________]{$ans4}[@ AnswerFormatHelp("formula") @]* +Shift [`f(x)`] [`[$e]`] units right: [`g(x)`]=[_________________]{$ans4}[@ helpLink("formula") @]* -Reflect [`f(x)`] about the [`x`]-axis: [`g(x)`]=[_________________]{$ans5}[@ AnswerFormatHelp("formula") @]* +Reflect [`f(x)`] about the [`x`]-axis: [`g(x)`]=[_________________]{$ans5}[@ helpLink("formula") @]* -Reflect [`f(x)`] about the [`y`]-axis: [`g(x)`]=[_________________]{$ans6}[@ AnswerFormatHelp("formula") @]* +Reflect [`f(x)`] about the [`y`]-axis: [`g(x)`]=[_________________]{$ans6}[@ helpLink("formula") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_43.pg b/Contrib/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_43.pg index 322102d366..caad712836 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_43.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_43.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -55,7 +55,7 @@ $ans=Compute("$calc"); BEGIN_PGML -For the exponential function [``g(x)=\frac{1}{[$a]}[$fun]``], find [`g([$d])`]. +For the exponential function [``g(x)=\frac{1}{[$a]}[$fun]``], find [`g([$d])`]. [`g([$d])=`][_______________]{$ans} diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_44.pg b/Contrib/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_44.pg index 819ae42284..8ac21946a3 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_44.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_44.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_45.pg b/Contrib/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_45.pg index 18e532c00d..83e80f9a43 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_45.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_45.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -54,7 +54,7 @@ $ans = Compute("$calc"); BEGIN_PGML Evaluate the exponential function `h(x)=[$fun]` for `h([$c])`. Round to 4 decimal places, if necessary. -`h([$c])` = [_______________]{$ans} [@ AnswerFormatHelp("formula") @]* +`h([$c])` = [_______________]{$ans} [@ helpLink("formula") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_7.pg b/Contrib/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_7.pg index 09e0b531e7..65802bd50d 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_7.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_7.pg @@ -25,7 +25,7 @@ loadMacros( "PGchoicemacros.pl", "contextLimitedPoint.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + "contextInequalitySetBuilder.pl", "PGML.pl", "niceTables.pl", @@ -65,15 +65,15 @@ $ans4 = Compute("(-inf,-$a)"); BEGIN_PGML -The graph of [`f(x)=[$fun]`] is reflected across the [`x`]-axis, shifted downward [$a] units, and then shifted left [$b] units. +The graph of [`f(x)=[$fun]`] is reflected across the [`x`]-axis, shifted downward [$a] units, and then shifted left [$b] units. -Let [`g(x)`] represent the new function. What is an equation for this function? [`g(x)`] = [_________________]{$ans1} [@ AnswerFormatHelp("formula") @]* +Let [`g(x)`] represent the new function. What is an equation for this function? [`g(x)`] = [_________________]{$ans1} [@ helpLink("formula") @]* -What is the y-intercept of [`g(x)`]? Enter the answer as an ordered pair. [_________________]{$ans2} [@ AnswerFormatHelp("points") @]* +What is the y-intercept of [`g(x)`]? Enter the answer as an ordered pair. [_________________]{$ans2} [@ helpLink("points") @]* -What is the domain of [`g(x)`]? Enter the answer as an interval. [_________________]{$ans3} [@ AnswerFormatHelp("intervals") @]* +What is the domain of [`g(x)`]? Enter the answer as an interval. [_________________]{$ans3} [@ helpLink("intervals") @]* -What is the range of [`g(x)`]? Enter the answer as an interval. [_________________]{$ans4} [@ AnswerFormatHelp("intervals") @]* +What is the range of [`g(x)`]? Enter the answer as an interval. [_________________]{$ans4} [@ helpLink("intervals") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_9.pg b/Contrib/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_9.pg index 76222200a3..2fe5d4efcc 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_9.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_9.pg @@ -24,7 +24,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -74,19 +74,19 @@ grid=>[10,10], size=>[600,600] ); -add_functions($gr, "$a($b)^x for x in <-6,10>" . +add_functions($gr, "$a($b)^x for x in <-6,10>" . " using color:blue and weight:2"); -add_functions($gr1, "$a($b)^-x for x in <-10,6>" . +add_functions($gr1, "$a($b)^-x for x in <-10,6>" . " using color:blue and weight:2"); -add_functions($gr2, "-$a($b)^(x) for x in <-6,10>" . +add_functions($gr2, "-$a($b)^(x) for x in <-6,10>" . " using color:blue and weight:2"); -add_functions($gr3, "-$a($b)^(-x) for x in <-10,8>" . +add_functions($gr3, "-$a($b)^(-x) for x in <-10,8>" . " using color:blue and weight:2"); -add_functions($gr4, "-$a(3*$b)^(x) for x in <-10,10>" . +add_functions($gr4, "-$a(3*$b)^(x) for x in <-10,10>" . " using color:blue and weight:2"); Context("Numeric"); @@ -118,16 +118,16 @@ The graph of [`f(x)=[$fun]`] is given below (click on graph to enlarge): -Let [`g(x)`] be the reflection of [`f(x)`] across the [`x`]-axis. Which of the following graphs represents the graph of [`g(x)`]? [_________________]{$popup1} +Let [`g(x)`] be the reflection of [`f(x)`] across the [`x`]-axis. Which of the following graphs represents the graph of [`g(x)`]? [_________________]{$popup1} ->>A. [@ image(insertGraph($gr1), width=>200, height=>200), @]* B. [@ image(insertGraph($gr2), width=>200, height=>200), @]* << +>>A. [@ image(insertGraph($gr1), width=>200, height=>200), @]* B. [@ image(insertGraph($gr2), width=>200, height=>200), @]* << >>C. [@ image(insertGraph($gr3), width=>200, height=>200), @]* D. [@ image(insertGraph($gr4), width=>200, height=>200), @]* << -What is the equation for [`g(x)`]? [`g(x)`]= [_________________]{$ans1} [@ AnswerFormatHelp("formulas") @]* +What is the equation for [`g(x)`]? [`g(x)`]= [_________________]{$ans1} [@ helpLink("formulas") @]* -What is the [`y`]-intercept of [`g(x)`]? Enter an ordered pair for the intercept. [_________________]{$ans2} [@ AnswerFormatHelp("points") @]* +What is the [`y`]-intercept of [`g(x)`]? Enter an ordered pair for the intercept. [_________________]{$ans2} [@ helpLink("points") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_9a.pg b/Contrib/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_9a.pg index 0d22319533..b49bf42e74 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_9a.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_9a.pg @@ -24,7 +24,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -77,27 +77,27 @@ grid=>[8,8], size=>[600,600] ); -add_functions($gr, "($a*$b^x) for x in <-8,8>" . +add_functions($gr, "($a*$b^x) for x in <-8,8>" . " using color:blue and weight:2"); ($gr->fn)[0]->steps(2000); -add_functions($gr1, "($a*$b^(x+$c)-$d) for x in <-8,8>" . +add_functions($gr1, "($a*$b^(x+$c)-$d) for x in <-8,8>" . " using color:blue and weight:2"); ($gr1->fn)[0]->steps(2000); -add_functions($gr2, "(-$a*$b^(x)-$c) for x in <-8,8>" . +add_functions($gr2, "(-$a*$b^(x)-$c) for x in <-8,8>" . " using color:blue and weight:2"); ($gr2->fn)[0]->steps(2000); -add_functions($gr3, "($a*$b^(x-$d)-$c) for x in <-8,8>" . +add_functions($gr3, "($a*$b^(x-$d)-$c) for x in <-8,8>" . " using color:blue and weight:2"); ($gr3->fn)[0]->steps(2000); -add_functions($gr4, "($a*$b^(x+$d)+$c) for x in <-8,8>" . +add_functions($gr4, "($a*$b^(x+$d)+$c) for x in <-8,8>" . " using color:blue and weight:2"); ($gr4->fn)[0]->steps(2000); @@ -136,11 +136,11 @@ The graph of [`f(x)=[$fun]`] is given below (click on graph to enlarge): Let [`g(x)`] be the transformation of [`f(x)`] up [`[$c]`] units and left [`[$d]`] units. Which of the following graphs represents the graph of [`g(x)`]? [_________________]{$popup1} ->>A. [@ image(insertGraph($gr1), width=>200, height=>200), @]* B. [@ image(insertGraph($gr2), width=>200, height=>200), @]* << +>>A. [@ image(insertGraph($gr1), width=>200, height=>200), @]* B. [@ image(insertGraph($gr2), width=>200, height=>200), @]* << >>C. [@ image(insertGraph($gr4), width=>200, height=>200), @]* D. [@ image(insertGraph($gr3), width=>200, height=>200), @]* << -What is the equation for [`g(x)`]? [`g(x)`]= [_________________]{$ans1} [@ AnswerFormatHelp("formulas") @]* +What is the equation for [`g(x)`]? [`g(x)`]= [_________________]{$ans1} [@ helpLink("formulas") @]* What is the horizontal asymptote of [`g(x)`]? Enter the equation of a line. [_________________]{$popup2} = [_________________]{$ans2} diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.2/VideoH.pg b/Contrib/RRCC/College_Algebra/MAT121/6.2/VideoH.pg index b4d1b97367..88112836f4 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.2/VideoH.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.2/VideoH.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## KEYWORDS() @@ -25,7 +25,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -48,8 +48,8 @@ $dom=Interval("(-infinity,infinity)"); $ran=Interval("($b,infinity)"); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -61,18 +61,18 @@ BEGIN_PGML >> [$video]* << ->> YouTube video of David Johnson, internet mathemagician, embedded using an iframe. << +>> YouTube video of David Johnson, internet mathemagician, embedded using an iframe. << >> If the video does not work, [@ htmlLink("https://youtu.be/sR7fNt0uoB8","click here to go to YouTube directly.") @]* << #Video Quiz: Find the equation for the graph of [` [$c]^x`] shifted right by [`[$a]`] and up by [`[$b]`]. -+ [`f(x)=`] [_______________]{$f} [@ AnswerFormatHelp("formulas") @]* ++ [`f(x)=`] [_______________]{$f} [@ helpLink("formulas") @]* -+ The domain of [`f(x)`] is: [_______________]{$dom} [@ AnswerFormatHelp("intervals") @]* ++ The domain of [`f(x)`] is: [_______________]{$dom} [@ helpLink("intervals") @]* -+ The range of [`f(x)`] is: [_______________]{$ran} [@ AnswerFormatHelp("intervals") @]* ++ The range of [`f(x)`] is: [_______________]{$ran} [@ helpLink("intervals") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.2/test b/Contrib/RRCC/College_Algebra/MAT121/6.2/test index 3ee1c45bfb..c383115486 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.2/test +++ b/Contrib/RRCC/College_Algebra/MAT121/6.2/test @@ -24,7 +24,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -77,19 +77,19 @@ grid=>[10,10], size=>[600,600] ); -add_functions($gr, "$a*($b)^x for x in <-10,10>" . +add_functions($gr, "$a*($b)^x for x in <-10,10>" . " using color:blue and weight:2"); -add_functions($gr1, "($a($b)^(x+$c)-$d) for x in <-10,10>" . +add_functions($gr1, "($a($b)^(x+$c)-$d) for x in <-10,10>" . " using color:blue and weight:2"); -add_functions($gr2, "-$a($b)^(x)-$c for x in <-10,10>" . +add_functions($gr2, "-$a($b)^(x)-$c for x in <-10,10>" . " using color:blue and weight:2"); -add_functions($gr3, "$a($b)^(x-$d)-$c for x in <-10,10>" . +add_functions($gr3, "$a($b)^(x-$d)-$c for x in <-10,10>" . " using color:blue and weight:2"); -add_functions($gr4, "$a($b)^(x+$d)+$c for x in <-10,10>" . +add_functions($gr4, "$a($b)^(x+$d)+$c for x in <-10,10>" . " using color:blue and weight:2"); Context("Numeric"); @@ -121,16 +121,16 @@ The graph of `f(x)=[$fun]` is given below (click on graph to enlarge): -Let `g(x)` be the transformation of `f(x)` up `[$c]` units and left `[$d]` units Which of the following graphs represents the graph of `g(x)`? [_________________]{$popup1} +Let `g(x)` be the transformation of `f(x)` up `[$c]` units and left `[$d]` units Which of the following graphs represents the graph of `g(x)`? [_________________]{$popup1} ->>A. [@ image(insertGraph($gr1), width=>200, height=>200), @]* B. [@ image(insertGraph($gr2), width=>200, height=>200), @]* << +>>A. [@ image(insertGraph($gr1), width=>200, height=>200), @]* B. [@ image(insertGraph($gr2), width=>200, height=>200), @]* << >>C. [@ image(insertGraph($gr4), width=>200, height=>200), @]* D. [@ image(insertGraph($gr3), width=>200, height=>200), @]* << -What is the equation for `g(x)`? `g(x)`= [_________________]{$ans1} [@ AnswerFormatHelp("formulas") @]* +What is the equation for `g(x)`? `g(x)`= [_________________]{$ans1} [@ helpLink("formulas") @]* -What is the `y`-intercept of `g(x)`? Enter an ordered pair for the intercept. [_________________]{$ans2} [@ AnswerFormatHelp("points") @]* +What is the `y`-intercept of `g(x)`? Enter an ordered pair for the intercept. [_________________]{$ans2} [@ helpLink("points") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_09.pg b/Contrib/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_09.pg index dc4dddbe9b..0e82ec1357 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_09.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_09.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Exponential and logarithmic equations) @@ -11,32 +11,32 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", "PGML.pl", "PGcourse.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); install_problem_grader(~~&std_problem_grader); - + # A random integer $a=non_zero_random(2,8,1); @@ -53,7 +53,7 @@ do {$n2 = random(0,10,1);} until ($n2!= $n1); $var1 = $letter[$n1] ; $var2=$letter[$n2] ; -# Adding the two letters as variables +# Adding the two letters as variables Context()->variables->add($var1 => "Real"); Context()->variables->set($var1=>{limits=>[1,5]}); Context()->variables->add($var2 => "Real"); @@ -62,7 +62,7 @@ Context()->variables->set($var2=>{limits=>[1,5]}); # The two sides of the correct answer $ans1=Formula("$a"); $ans2=Formula("$var1^$var2"); - + # Allows for the correct equation to be given in either order @@ -91,33 +91,33 @@ $multians = MultiAnswer($ans1, $ans2)->with( - - + + ########################### # Main text - + BEGIN_PGML -Rewrite the following equation in exponential form. +Rewrite the following equation in exponential form. + +[`\log_[$var1]([$a])=[$var2] `] + + [____]{$multians} [`=`] [____]{$multians} [@ helpLink("numbers") @]* + -[`\log_[$var1]([$a])=[$var2] `] - - [____]{$multians} [`=`] [____]{$multians} [@ AnswerFormatHelp("numbers") @]* - - END_PGML - - - + + + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_11.pg b/Contrib/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_11.pg index 71b7397a07..51657ad4c6 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_11.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_11.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Exponential and logarithmic equations) @@ -11,17 +11,17 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -30,16 +30,16 @@ loadMacros( ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); install_problem_grader(~~&std_problem_grader); - -# A random integer + +# A random integer $a=non_zero_random(2,8,1); # Two random integer to grab letters @@ -53,7 +53,7 @@ do {$n2 = random(0,10,1);} until ($n2!= $n1); $var1 =$letter[$n1] ; $var2=$letter[$n2] ; -# Adding the two letters as variables +# Adding the two letters as variables Context()->variables->add($var1 => "Real"); Context()->variables->set($var1=>{limits=>[1,5]}); Context()->variables->add($var2 => "Real"); @@ -62,7 +62,7 @@ Context()->variables->set($var2=>{limits=>[1,5]}); # The two sides of the correct answer $ans1=Formula("$a"); $ans2=Formula("$var1^$var2"); - + # Allows for the correct equation to be given in either order @@ -86,31 +86,31 @@ $multians = MultiAnswer($ans1, $ans2)->with( } } ); - - + + ########################### # Main text - + BEGIN_PGML -Rewrite the following equation in exponential form. +Rewrite the following equation in exponential form. + +[`\log_[$var1]([$a])=[$var2] `] + +[____]{$multians} [`=`] [____]{$multians} [@ helpLink("numbers") @]* -[`\log_[$var1]([$a])=[$var2] `] - -[____]{$multians} [`=`] [____]{$multians} [@ AnswerFormatHelp("numbers") @]* - END_PGML - - + + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_17.pg b/Contrib/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_17.pg index f958a20dc3..dffdacf890 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_17.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_17.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject() ## DBchapter() ## DBsection() @@ -11,31 +11,31 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", "PGML.pl", "PGcourse.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); - + # Two random integer to grab letters $n1=random(0,10,1); $n2=random(0,10,1); @@ -47,14 +47,14 @@ $n2=random(0,10,1); $var1 = $letter[$n1] ; $var2=$letter[$n2] ; -# Adding the two letters as variables +# Adding the two letters as variables Context()->variables->add($var1 => "Real"); Context()->variables->add($var2 => "Real"); # The two sides of the correct answer $ans1=Formula("$var1"); $ans2=Formula("log($var2)"); - + # Allows for the correct equation to be given in either order $multians = MultiAnswer($ans1, $ans2)->with( @@ -65,36 +65,36 @@ $multians = MultiAnswer($ans1, $ans2)->with( my ( $f1, $f2) = @{$correct}; if ( ( $f1 == $stu1 && $f2 == $stu2) || ( $f1 == $stu2 && $f2 == $stu1) ) -{return [1,1];} - +{return [1,1];} + else { return [0,0]; } - + } ); - - + + ########################### # Main text - + BEGIN_PGML Rewrite the following equation in logarithmic form. -[`10^{[$var1]}=[$var2] `] - - [____]{$multians} [`=`] [____]{$multians} [@ AnswerFormatHelp("logarithms") @]* - +[`10^{[$var1]}=[$var2] `] + + [____]{$multians} [`=`] [____]{$multians} [@ helpLink("logarithms") @]* + END_PGML - - + + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_19.pg b/Contrib/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_19.pg index 55dbe9eb19..59a2416c51 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_19.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_19.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Exponential and logarithmic equations) @@ -11,32 +11,32 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", "PGML.pl", "PGcourse.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); install_problem_grader(~~&std_problem_grader); - + # Two random integer to grab letters $n1=random(0,10,1); do {$n2 = random(0,10,1);} until ($n2!= $n1); @@ -49,7 +49,7 @@ do {$n2 = random(0,10,1);} until ($n2!= $n1); $var1 = $letter[$n1] ; $var2=$letter[$n2] ; -# Adding the letters as variables +# Adding the letters as variables Context()->variables->add($var1 => "Real"); Context()->variables->add($var2 => "Real"); Context()->variables->set($var2=>{limits=>[5,10]}); @@ -58,7 +58,7 @@ Context()->variables->add(e => "Real"); # The two sides of the correct answer $ans1=Formula("$var1"); $ans2=Formula("ln($var2)"); - + # Allows for the correct equation to be given in either order @@ -82,31 +82,31 @@ $multians = MultiAnswer($ans1, $ans2)->with( } } ); - - + + ########################### # Main text - + BEGIN_PGML -Rewrite the following equation in logarithmic form. +Rewrite the following equation in logarithmic form. + +[`e^{[$var1]}=[$var2] `] + + [____]{$multians} [`=`] [____]{$multians} [@ helpLink("logarithms") @]* -[`e^{[$var1]}=[$var2] `] - - [____]{$multians} [`=`] [____]{$multians} [@ AnswerFormatHelp("logarithms") @]* - END_PGML - - + + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_21.pg b/Contrib/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_21.pg index 7ec5f461b1..f6629b9b53 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_21.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_21.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject() ## DBchapter() ## DBsection() @@ -11,31 +11,31 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", "PGML.pl", "PGcourse.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); - + $var1=non_zero_random(0,5,1); $var2=Formula("10^$var1") ; @@ -43,7 +43,7 @@ $var2=Formula("10^$var1") ; # The two sides of the correct answer $ans1=Formula("log($var2)"); $ans2=Formula("$var1"); - + # Allows for the correct equation to be given in either order $multians = MultiAnswer($ans1, $ans2)->with( @@ -54,39 +54,39 @@ $multians = MultiAnswer($ans1, $ans2)->with( my ( $f1, $f2) = @{$correct}; if ( ( $f1 == $stu1 && $f2 == $stu2) || ( $f1 == $stu2 && $f2 == $stu1) ) -{return [1,1];} - +{return [1,1];} + else { return [0,0]; } - + } ); - - + + ########################### # Main text - + BEGIN_PGML -Rewrite the following equation in logarithmic form. +Rewrite the following equation in logarithmic form. + +[`10^{[$var1]}=[$var2] `] + + + [________]{$multians} [`=`] [__________]{$multians} [@ helpLink("logarithms") @]* -[`10^{[$var1]}=[$var2] `] - - [________]{$multians} [`=`] [__________]{$multians} [@ AnswerFormatHelp("logarithms") @]* - - END_PGML - - - + + + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_23.pg b/Contrib/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_23.pg index 7706d87c34..ce1c353b43 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_23.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_23.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Exponential and logarithmic equations) @@ -11,32 +11,32 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - + ### Currently this problem DOES NOT require the fraction to be simplified ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", "PGML.pl", "PGcourse.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); install_problem_grader(~~&std_problem_grader); - + $numerator=non_zero_random(1,100,1); $denominator=non_zero_random(1,100,1); @@ -81,33 +81,33 @@ $multians = MultiAnswer($ans1, $ans2)->with( } } ); - - + + ########################### # Main text - + BEGIN_PGML -Rewrite the following equation in logarithmic form. +Rewrite the following equation in logarithmic form. + +[`e^{[$var1]}=\frac{[$numerator]}{[$denominator]} `] + + + [____]{$multians} [`=`] [____]{$multians} [@ helpLink("logarithms") @]* -[`e^{[$var1]}=\frac{[$numerator]}{[$denominator]} `] - - [____]{$multians} [`=`] [____]{$multians} [@ AnswerFormatHelp("logarithms") @]* - - END_PGML - - - + + + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_25.pg b/Contrib/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_25.pg index dddd227bef..6164a55511 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_25.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_25.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Exponential and logarithmic equations) @@ -11,32 +11,32 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", "PGML.pl", "PGcourse.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); install_problem_grader(~~&std_problem_grader); - + # Two random integer to grab letters $n1=random(0,10,1); do {$n2 = random(0,10,1);} until ($n2!= $n1); @@ -48,7 +48,7 @@ do {$n2 = random(0,10,1);} until ($n2!= $n1); $var1 = $letter[$n1] ; $var2=$letter[$n2] ; -# Adding the two letters as variables +# Adding the two letters as variables Context()->variables->add($var1 => "Real"); Context()->variables->add($var2 => "Real"); Context()->variables->set($var2=>{limits=>[5,10]}); @@ -56,7 +56,7 @@ Context()->variables->set($var2=>{limits=>[5,10]}); # The two sides of the correct answer $ans1=Formula("$var1"); $ans2=Formula("log($var2)"); - + # Allows for the correct equation to be given in either order @@ -80,31 +80,31 @@ $multians = MultiAnswer($ans1, $ans2)->with( } } ); - - + + ########################### # Main text - + BEGIN_PGML -Rewrite the following equation in logarithmic form. +Rewrite the following equation in logarithmic form. + +[`[$var2] = 10^{[$var1]} `] + +[____]{$multians} `=` [____]{$multians} [@ helpLink("logarithms") @]* -[`[$var2] = 10^{[$var1]} `] - -[____]{$multians} `=` [____]{$multians} [@ AnswerFormatHelp("logarithms") @]* - END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_27.pg b/Contrib/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_27.pg index 657bbb715e..516868045c 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_27.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_27.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Exponential and logarithmic equations) @@ -11,61 +11,61 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", "PGML.pl", "PGcourse.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); $base = random(2, 8, 1); $exponent = non_zero_random(-8, -2, 1); - + # The two sides of the correct answer $ans=Formula("$base^$exponent"); - - + + ########################### # Main text - + BEGIN_PGML -Solve for [`x`] by converting the logarithmic equation to exponential form. +Solve for [`x`] by converting the logarithmic equation to exponential form. + +[`\log_{[$base]}(x) = [$exponent] `] + +[`x =`] [____]{$ans} [@ helpLink("numbers") @]* -[`\log_{[$base]}(x) = [$exponent] `] - -[`x =`] [____]{$ans} [@ AnswerFormatHelp("numbers") @]* - END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_29.pg b/Contrib/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_29.pg index 67d889e1fd..1d952997ef 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_29.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_29.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Exponential and logarithmic equations) @@ -11,27 +11,27 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", "PGML.pl", "PGcourse.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -45,39 +45,39 @@ $n1=random(0,10,1); # Grabbing a letter $base = $letter[$n1] ; -# Adding the letters as variables +# Adding the letters as variables Context()->variables->add($base => "Real"); Context()->variables->set($base=>{limits=>[1,5]}); $exponent = non_zero_random(2, 6, 1); - + # The two sides of the correct answer $ans=Formula("$base^$exponent"); - - + + ########################### # Main text - + BEGIN_PGML -Solve for [`x`] by converting the logarithmic equation to exponential form +Solve for [`x`] by converting the logarithmic equation to exponential form + + [`\log_{[$base]}(x) = [$exponent] `] + + [`x =`] [____]{$ans} [@ helpLink("numbers") @]* - [`\log_{[$base]}(x) = [$exponent] `] - - [`x =`] [____]{$ans} [@ AnswerFormatHelp("numbers") @]* - END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_35.pg b/Contrib/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_35.pg index 8b3d174f6c..af518b6cd7 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_35.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_35.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Exponential and logarithmic equations) @@ -11,61 +11,61 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", "PGML.pl", "PGcourse.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); $exponent = non_zero_random(2, 8, 1); - + # The two sides of the correct answer $ans=Formula("e^$exponent"); - - + + ########################### # Main text - + BEGIN_PGML -Solve for [`x`] by converting the logarithmic equation to exponential form. +Solve for [`x`] by converting the logarithmic equation to exponential form. + + [`\ln(x) = [$exponent] `] + + [`x =`] [____]{$ans} [@ helpLink("numbers") @]* - [`\ln(x) = [$exponent] `] - - [`x =`] [____]{$ans} [@ AnswerFormatHelp("numbers") @]* - END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_41.pg b/Contrib/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_41.pg index bb3b1d59a5..2e376f1b94 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_41.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_41.pg @@ -1,7 +1,7 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Properties of logarithms) @@ -10,27 +10,27 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", "PGML.pl", "PGcourse.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -38,34 +38,34 @@ Context("Numeric"); $var1 = non_zero_random(2, 8, 0.01); $var2 = non_zero_random(2, 8, 1); - + # The two sides of the correct answer $ans=Formula("$var1+$var2"); - - + + ########################### # Main text - + BEGIN_PGML Use the definition of common and natural logarithms to simplify. -[`e^{\ln([$var1])} + [$var2] `] +[`e^{\ln([$var1])} + [$var2] `] + +[____]{$ans} [@ helpLink("numbers") @]* -[____]{$ans} [@ AnswerFormatHelp("numbers") @]* - END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_47.pg b/Contrib/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_47.pg index 94c6957316..e10c595d3d 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_47.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_47.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject() ## DBchapter() ## DBsection() @@ -11,17 +11,17 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,10 +29,10 @@ loadMacros( "PGcourse.pl", "contextFraction.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -40,39 +40,39 @@ Context("Numeric"); $var1 = random(-5, 0, 1); -#This is not behaving correct. If va1=-2, var2 = 1/8. I don't get it. +#This is not behaving correct. If va1=-2, var2 = 1/8. I don't get it. Context("Fraction"); $var2 = Fraction(1,10^abs($var1)); - + Context("Numeric"); # The correct answer $ans=$var1; - - + + ########################### # Main text - + BEGIN_PGML Evaluate the common logarithmic expression without using a calculator. - [`\log\left([$var2]\right) `] - - [____]{$ans} [@ AnswerFormatHelp("numbers") @]* + [`\log\left([$var2]\right) `] + + [____]{$ans} [@ helpLink("numbers") @]* END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_49.pg b/Contrib/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_49.pg index c380ae376d..c2df771b8c 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_49.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_49.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Properties of logarithms) @@ -11,27 +11,27 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", "PGML.pl", "PGcourse.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -41,34 +41,34 @@ $var1 = random(-5, 0, 1); $var2 = non_zero_random(2, 8, 1); $var3 = list_random(10, 100, 1000, 10000); - + # The correct answer $ans=$var2*$var1*(log10($var3)); - - + + ########################### # Main text - + BEGIN_PGML Evaluate the common logarithmic expression without using a calculator. - [`[$var2]\log([$var3]^{[$var1]}) `] - - [_____________]{$ans} [@ AnswerFormatHelp("numbers") @]* - + [`[$var2]\log([$var3]^{[$var1]}) `] + + [_____________]{$ans} [@ helpLink("numbers") @]* + END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_53.pg b/Contrib/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_53.pg index c380ae376d..c2df771b8c 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_53.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_53.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Properties of logarithms) @@ -11,27 +11,27 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", "PGML.pl", "PGcourse.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -41,34 +41,34 @@ $var1 = random(-5, 0, 1); $var2 = non_zero_random(2, 8, 1); $var3 = list_random(10, 100, 1000, 10000); - + # The correct answer $ans=$var2*$var1*(log10($var3)); - - + + ########################### # Main text - + BEGIN_PGML Evaluate the common logarithmic expression without using a calculator. - [`[$var2]\log([$var3]^{[$var1]}) `] - - [_____________]{$ans} [@ AnswerFormatHelp("numbers") @]* - + [`[$var2]\log([$var3]^{[$var1]}) `] + + [_____________]{$ans} [@ helpLink("numbers") @]* + END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_36.pg b/Contrib/RRCC/College_Algebra/MAT121/6.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_36.pg index 5f77eee43a..1872449635 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_36.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_36.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -45,11 +45,11 @@ Context()->functions->disable("log","log10","ln"); # Main text BEGIN_PGML -Use the definition of logarithms to completely simplify. +Use the definition of logarithms to completely simplify. -[`\log([$m]^[$p])`] +[`\log([$m]^[$p])`] -[_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_39.pg b/Contrib/RRCC/College_Algebra/MAT121/6.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_39.pg index 00387dc471..d9e4c60e4d 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_39.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_39.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -42,11 +42,11 @@ Context()->functions->disable("log","log10","ln"); # Main text BEGIN_PGML -Use the definition of logarithms to completely simplify. +Use the definition of logarithms to completely simplify. -[``e^{\ln([$m])}``] +[``e^{\ln([$m])}``] -[_______________]{$m} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$m} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_43.pg b/Contrib/RRCC/College_Algebra/MAT121/6.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_43.pg index 634e8f35cb..11e70485f6 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_43.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_43.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -43,11 +43,11 @@ Context()->functions->disable("log","log10","ln"); # Main text BEGIN_PGML -Use the definition of logarithms to completely simplify. +Use the definition of logarithms to completely simplify. -[`\log_{[$b]}(\sqrt{[$b]})`] +[`\log_{[$b]}(\sqrt{[$b]})`] -[_______________]{"1/2"} [@ AnswerFormatHelp("numbers") @]* +[_______________]{"1/2"} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_44.pg b/Contrib/RRCC/College_Algebra/MAT121/6.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_44.pg index d9b2629c02..8013da83d3 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_44.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_44.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -49,9 +49,9 @@ Context()->functions->disable("log","log10","ln"); BEGIN_PGML Evaluate the following without using a calculator. Simplify completely. -[`\log_{[$b]}\left(\frac{1}{[$denom]}\right)+[$k]`] +[`\log_{[$b]}\left(\frac{1}{[$denom]}\right)+[$k]`] -[_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_51.pg b/Contrib/RRCC/College_Algebra/MAT121/6.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_51.pg index 7ac2beb4a5..af65448a83 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_51.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_51.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -43,17 +43,17 @@ BEGIN_PGML Evaluate the following without using a calculator. Simplify completely. -[`\ln(1)=`] [_______________]{"0"} [@ AnswerFormatHelp("numbers") @]* +[`\ln(1)=`] [_______________]{"0"} [@ helpLink("numbers") @]* + +[`\log(1)=`] [_______________]{"0"} [@ helpLink("numbers") @]* -[`\log(1)=`] [_______________]{"0"} [@ AnswerFormatHelp("numbers") @]* +[`\log_b(1)=`] [_______________]{"0"} [@ helpLink("numbers") @]* -[`\log_b(1)=`] [_______________]{"0"} [@ AnswerFormatHelp("numbers") @]* +[`\log(10)=`] [_______________]{"1"} [@ helpLink("numbers") @]* -[`\log(10)=`] [_______________]{"1"} [@ AnswerFormatHelp("numbers") @]* +[`\ln(e)=`] [_______________]{"1"} [@ helpLink("numbers") @]* -[`\ln(e)=`] [_______________]{"1"} [@ AnswerFormatHelp("numbers") @]* - END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_15.pg b/Contrib/RRCC/College_Algebra/MAT121/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_15.pg index 92ec03ee0e..0475332993 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_15.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_15.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserPopUp.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -58,9 +58,9 @@ BEGIN_PGML Find the domain and vertical asymptote of [`` f(x)=[$f] ``]. Enter your solutions in interval notation. -Domain: [_______________]{$ans1} [@ AnswerFormatHelp("intervals") @]* +Domain: [_______________]{$ans1} [@ helpLink("intervals") @]* -Vertical asymptote: [________]{$popup} [________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +Vertical asymptote: [________]{$popup} [________]{$ans2} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_39.pg b/Contrib/RRCC/College_Algebra/MAT121/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_39.pg index 81594bc7e7..4a90b8aeab 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_39.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_39.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject() ## DBchapter() ## DBsection() @@ -11,29 +11,29 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", "PGcourse.pl", "contextLimitedPoint.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup @@ -99,7 +99,7 @@ Context("Numeric"); if ( $chooser == 1) { - + $popup1 = PopUp( ["?","Green","Red", "Blue", "Black"], "Green", ); @@ -111,10 +111,10 @@ $popup2 = PopUp( $popup3 = PopUp( ["?","Green","Red", "Blue", "Black"], "Blue", ); -} +} elsif ( $chooser == 2 ) { - + $popup1 = PopUp( ["?","Green","Red", "Blue", "Black"], "Black", ); @@ -138,7 +138,7 @@ $popup2 = PopUp( $popup3 = PopUp( ["?","Green","Red", "Blue", "Black"], "Green", ); -} +} else { @@ -163,7 +163,7 @@ $popup3 = PopUp( ########################### # Main text - + BEGIN_PGML >>Match each equation with its graph. << @@ -177,14 +177,14 @@ BEGIN_PGML [$chooser] END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_41.pg b/Contrib/RRCC/College_Algebra/MAT121/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_41.pg index 5e1359bd45..d75dd5b8cd 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_41.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_41.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Graphs) @@ -11,29 +11,29 @@ ## Author(Michael Sulock; EDIT: James Morski 10/19/2017) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", "PGcourse.pl", "contextLimitedPoint.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup @@ -157,7 +157,7 @@ $popup = PopUp( ########################### # Main text - + BEGIN_PGML >>Which of the following is the graph of [`f(x)=\log_{2}(x+[$constant])`] << @@ -167,14 +167,14 @@ BEGIN_PGML END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_43.pg b/Contrib/RRCC/College_Algebra/MAT121/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_43.pg index 3bc64f3777..1e2699b28f 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_43.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_43.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Graphs) @@ -11,29 +11,29 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", "PGcourse.pl", "contextLimitedPoint.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup @@ -83,7 +83,7 @@ $popup = PopUp( ########################### # Main text - + BEGIN_PGML >>Which of the following displays the graph of [`f(x)=\ln(-x)`] << @@ -94,14 +94,14 @@ BEGIN_PGML END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_45.pg b/Contrib/RRCC/College_Algebra/MAT121/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_45.pg index e6d4506b93..46b5a5f324 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_45.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_45.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Graphs) @@ -11,29 +11,29 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", "PGcourse.pl", "contextLimitedPoint.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup @@ -103,7 +103,7 @@ $popup = PopUp( ########################### # Main text - + BEGIN_PGML >>Which of the following displays the graph of [`f(x)=\log([$shiftIn]+x)`] << @@ -114,14 +114,14 @@ BEGIN_PGML END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_13.pg b/Contrib/RRCC/College_Algebra/MAT121/6.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_13.pg index f0228b3863..f3857b3fa5 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_13.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_13.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserPopUp.pl", "PGML.pl", "PGcourse.pl", @@ -57,9 +57,9 @@ BEGIN_PGML Find the domain and vertical asymptote of [`` f(x)=[$f] ``]. Enter your solutions in interval notation. -Domain: [_______________]{$ans1} [@ AnswerFormatHelp("intervals") @]* +Domain: [_______________]{$ans1} [@ helpLink("intervals") @]* -Vertical asymptote: [_________________]{$popup}[________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +Vertical asymptote: [_________________]{$popup}[________]{$ans2} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_17.pg b/Contrib/RRCC/College_Algebra/MAT121/6.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_17.pg index 848657e1d2..08c5f03d1f 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_17.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_17.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserPopUp.pl", "PGML.pl", "PGcourse.pl", @@ -54,9 +54,9 @@ BEGIN_PGML Find the domain and vertical asymptote of [`` f(x)=[$f] ``]. Enter your solutions in interval notation. -Domain: [_______________]{$ans1} [@ AnswerFormatHelp("intervals") @]* +Domain: [_______________]{$ans1} [@ helpLink("intervals") @]* -Vertical asymptote [_________________]{$popup} [________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +Vertical asymptote [_________________]{$popup} [________]{$ans2} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_26.pg b/Contrib/RRCC/College_Algebra/MAT121/6.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_26.pg index 6e1507526a..67a9aedb62 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_26.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_26.pg @@ -27,7 +27,7 @@ loadMacros( "MathObjects.pl", "parserPopUp.pl", "parserMultiAnswer.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -81,7 +81,7 @@ Match each function with one of the graphs. $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>400,height=>400,tex_size=>800 ) \} $BR (Click on graph to enlarge) diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_52.pg b/Contrib/RRCC/College_Algebra/MAT121/6.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_52.pg index 12f8458835..03896fa9f4 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_52.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_52.pg @@ -24,7 +24,7 @@ loadMacros( "AppletObjects.pl", "unionTables.pl", "parserNumberWithUnits.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -43,7 +43,7 @@ HEADER_TEXT(MODES( )); $desmos_div = MODES( - HTML=>qq(
), + HTML=>qq(
), TeX=>'Interactive graph best viewed online' ); @@ -71,9 +71,9 @@ $ans=Formula("(10^(($c-$d)/2)+$a)/$b")->reduce; BEGIN_PGML -Use the Desmos graphing technology below to find approximate solutions of [` [$f]=[$g]`]. +Use the Desmos graphing technology below to find approximate solutions of [` [$f]=[$g]`]. -[`x=`] [________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [________]{$ans} [@ helpLink("numbers") @]* END_PGML @@ -101,10 +101,10 @@ TEXT( MODES(TeX=>'', HTML=><operators->undefine("/"); @@ -46,7 +46,7 @@ $ans = ("ln($numerator)-ln(x)"); ########################### # Main text - + BEGIN_PGML Expand the following logarithm as much as possible. Rewrite as a sum, difference, or product of logs. @@ -59,14 +59,14 @@ Expand the following logarithm as much as possible. Rewrite as a sum, differenc END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_12.pg b/Contrib/RRCC/College_Algebra/MAT121/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_12.pg index 8c811c6e46..d5bb7fafdd 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_12.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_12.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -42,9 +42,9 @@ Context()->variables->set(c=>{limits=>[1,5]}); # Main text BEGIN_PGML -Condense into a single logarithm. +Condense into a single logarithm. ->>[`\log(a)-\log(b)-\log(c)=\log(`] [_______________]{"a/(bc)"} [`)`] [@ AnswerFormatHelp("formulas") @]*<< +>>[`\log(a)-\log(b)-\log(c)=\log(`] [_______________]{"a/(bc)"} [`)`] [@ helpLink("formulas") @]*<< END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_13.pg b/Contrib/RRCC/College_Algebra/MAT121/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_13.pg index d4d1e0b733..7868547445 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_13.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_13.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Properties of logarithms) @@ -11,42 +11,42 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", "PGcourse.pl", "contextLimitedPoint.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context()->operators->undefine("/"); Context()->variables->set(x => {limits => [10,25]}); -$denominator = random(1,20,1); +$denominator = random(1,20,1); $ans = Formula("log(x)"); ########################### # Main text - + BEGIN_PGML Expand the following logarithm as much as possible. Rewrite as a sum, difference, or product of logs. @@ -55,14 +55,14 @@ Expand the following logarithm as much as possible. Rewrite as a sum, difference [___________]{$ans} END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_15.pg b/Contrib/RRCC/College_Algebra/MAT121/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_15.pg index ba1bc52fd5..c18411f652 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_15.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_15.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Properties of logarithms) @@ -11,29 +11,29 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", "PGcourse.pl", "contextLimitedPoint.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -43,9 +43,9 @@ Context()->operators->undefine("/", "^"); Context()->variables->add(y => 'Real'); Context()->variables->add(z => 'Real'); -$expX = random(3,9,1); -$expY = random(5,7,1); -$expZ = random(3,9,1); +$expX = random(3,9,1); +$expY = random(5,7,1); +$expZ = random(3,9,1); @@ -55,7 +55,7 @@ $ans->{test_points} = [[1,1,1], [2,2,2]]; ########################### # Main text - + BEGIN_PGML Use the properties of logarithms to expand the following logarithm as much as possible. Rewrite as a sum, difference, or product of logs. @@ -65,14 +65,14 @@ Use the properties of logarithms to expand the following logarithm as much as po END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_19.pg b/Contrib/RRCC/College_Algebra/MAT121/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_19.pg index 7152717d85..ffa2e1f3dd 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_19.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_19.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Properties of logarithms) @@ -11,29 +11,29 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", "PGcourse.pl", "contextLimitedPoint.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -42,10 +42,10 @@ Context()->operators->undefine("^"); Context()->variables->add(y => 'Real'); Context()->variables->add(z => 'Real'); -$expX = random(3,9,1); -$expY = random(5,7,1); -$expX2 = random(3,9,1); -$expY2 = random(5,7,1); +$expX = random(3,9,1); +$expY = random(5,7,1); +$expX2 = random(3,9,1); +$expY2 = random(5,7,1); $root = random(3,9,1); @@ -60,7 +60,7 @@ $ans->{test_points} = [[1,1,1], [2,2,2]]; ########################### # Main text - + BEGIN_PGML Use the properties of logarithms to expand the following logarithm as much as possible. Rewrite as a sum, difference, or product of logs. @@ -70,14 +70,14 @@ Use the properties of logarithms to expand the following logarithm as much as po END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_21.pg b/Contrib/RRCC/College_Algebra/MAT121/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_21.pg index bce544a5ca..0f81a4d65d 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_21.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_21.pg @@ -4,8 +4,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Properties of logarithms) @@ -14,19 +14,19 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -34,10 +34,10 @@ loadMacros( "contextLimitedPoint.pl", "contextFraction.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -45,11 +45,11 @@ Context("Numeric"); Context()->variables->add(y => 'Real'); -$coeffX = random(3,9,1); +$coeffX = random(3,9,1); do {$coeffX2 = random(5,7,1); } until ($coeffX2 != $coeffX); -$expX = random(3,9,1); +$expX = random(3,9,1); do {$expX2 = random(5,7,1); } until ($expX2 != $expX); $numerator = Formula("$coeffX*x^{$expX}"); @@ -65,7 +65,7 @@ $ans = Formula("ln($inside)"); ########################### # Main text - + BEGIN_PGML >>Condense the following expression to a single logarithm using the properties of logarithms.<< @@ -78,14 +78,14 @@ BEGIN_PGML [$ans]; %] END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_23.pg b/Contrib/RRCC/College_Algebra/MAT121/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_23.pg index 50ffc0c879..763dab8305 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_23.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_23.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -53,7 +53,7 @@ Condense the left-hand side into a single logarithm. Then solve the resulting >>[`\log(x)-\frac{1}{[$b]}\log(y)+[$a]\log(z)=\log(A)`] << >>[`A=`] [_______________]{"(x*z^($a))/y^(1/$b)"} - [@ AnswerFormatHelp("formulas") @]*<< + [@ helpLink("formulas") @]*<< END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_27.pg b/Contrib/RRCC/College_Algebra/MAT121/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_27.pg index cdf5c3c468..ed8ce93225 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_27.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_27.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,10 +48,10 @@ Context()->variables->add(a => 'Real', b => 'Real'); BEGIN_PGML Suppose [` \log_{[$p]}([$m])=a`] and [` \log_{[$p]}([$n])=b`]. Use the change of base formula along with properties of logarithms to rewrite the following in terms of [`a`] and [`b`]. -+ [`\log_{[$n]}([$p])=`] [_______________]{"1/b"} [@ AnswerFormatHelp("formulas") @]* ++ [`\log_{[$n]}([$p])=`] [_______________]{"1/b"} [@ helpLink("formulas") @]* + ++ [`\log_{[$n]}\left(\frac{[$m]}{[$n]}\right)=`] [_______________]{"a/b-1"} [@ helpLink("formulas") @]* -+ [`\log_{[$n]}\left(\frac{[$m]}{[$n]}\right)=`] [_______________]{"a/b-1"} [@ AnswerFormatHelp("formulas") @]* - END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_29.pg b/Contrib/RRCC/College_Algebra/MAT121/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_29.pg index fb32983645..3cd4d76258 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_29.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_29.pg @@ -1,11 +1,11 @@ -#### This problem is incomplete +#### This problem is incomplete ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Properties of logarithms) @@ -14,19 +14,19 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -34,10 +34,10 @@ loadMacros( "contextLimitedPoint.pl", "contextFraction.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -59,7 +59,7 @@ $ans = Formula("$exp*a-1"); ########################### # Main text - + BEGIN_PGML >>suppose [`\log_{[$base]}([$a]) = a`] and [`\log_{[$base]}(11) = b.`] Use the change-of-base formula along with properties of logarithms to rewrite the following expression in terms of a and b.<< @@ -69,14 +69,14 @@ BEGIN_PGML END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_31.pg b/Contrib/RRCC/College_Algebra/MAT121/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_31.pg index 23344fc716..b44e455f4f 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_31.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_31.pg @@ -1,11 +1,11 @@ -#### This problem is incomplete +#### This problem is incomplete ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Properties of logarithms) @@ -15,18 +15,18 @@ ## MO(1) ## KEYWORDS('college algebra') - + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -34,10 +34,10 @@ loadMacros( "contextLimitedPoint.pl", "contextFraction.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -60,7 +60,7 @@ $ans = Formula("$const1+$exp1/($const2*$exp2)"); ########################### # Main text - + BEGIN_PGML >>Use properties of logarithms to evaluate without using a calculator<< @@ -71,14 +71,14 @@ BEGIN_PGML END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_9.pg b/Contrib/RRCC/College_Algebra/MAT121/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_9.pg index 0e39faae5e..72a4148721 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_9.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_9.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,10 +48,10 @@ Context()->variables->set(x=>{limits=>[2,5]}); BEGIN_PGML Condense into a single logarithm. ->>[`\log([$a])+\log(x)+\log(y)=\log( `] [_________]{"$a*xy"} [`)`] [@ AnswerFormatHelp("formulas") @]* << +>>[`\log([$a])+\log(x)+\log(y)=\log( `] [_________]{"$a*xy"} [`)`] [@ helpLink("formulas") @]* << + - END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.5/VideoI.pg b/Contrib/RRCC/College_Algebra/MAT121/6.5/VideoI.pg index 57668a1c13..a5bc1e4d5b 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.5/VideoI.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.5/VideoI.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## KEYWORDS() @@ -25,7 +25,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -38,8 +38,8 @@ TEXT(beginproblem()); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -51,12 +51,12 @@ BEGIN_PGML >> [$video]* << ->> YouTube video of Craig Faulhaber, internet mathemagician, embedded using an iframe. << +>> YouTube video of Craig Faulhaber, internet mathemagician, embedded using an iframe. << >> If the video does not work, [@ htmlLink("https://youtu.be/nUnOs9h3hlE?list=PLIOf9vAXVvjBi7zgxRihNg0OcW74-svu6","click here to go to YouTube directly.") @]* << #Video Quiz: -Evaluate [` \log_{2}(64)=`] [_______________]{6} [@ AnswerFormatHelp("formulas") @]* +Evaluate [` \log_{2}(64)=`] [_______________]{6} [@ helpLink("formulas") @]* diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_13.pg b/Contrib/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_13.pg index 6d02041844..1892ac8a94 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_13.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_13.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## College Algebra, solve an exponential equation +## College Algebra, solve an exponential equation ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -52,13 +52,13 @@ Context()->strings->add( BEGIN_PGML -Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". +Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". If there is more than one solution, enter the answers as a comma-separated list. -[` e^{r + {[$u]}} - {[$v]} = - {[$w]} `] +[` e^{r + {[$u]}} - {[$v]} = - {[$w]} `] -[_______________]{$x1} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$x1} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_15.pg b/Contrib/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_15.pg index df49e86813..789f7adb74 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_15.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_15.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## College Algebra, solve an exponential equation +## College Algebra, solve an exponential equation ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -62,13 +62,13 @@ Context()->strings->add( BEGIN_PGML -Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". +Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". If there is more than one solution, enter the answers as a comma-separated list. -[` -{[$v]} \cdot {[$b]}^{\, p + {[$u]}} - {[$w]} = -{[$x]} `] +[` -{[$v]} \cdot {[$b]}^{\, p + {[$u]}} - {[$w]} = -{[$x]} `] -[_______________]{$x1} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$x1} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_17.pg b/Contrib/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_17.pg index dec04d8982..08650531ca 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_17.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_17.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -34,9 +34,9 @@ $showPartialCorrectAnswers = 1; # Setup # Parameters -$u = random(2,9); -$v = random(1,9); -$w = random(36,54); +$u = random(2,9); +$v = random(1,9); +$w = random(36,54); # Solution if (($w - $v) <= 0) { @@ -58,13 +58,13 @@ Context()->strings->add( BEGIN_PGML -Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". +Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". If there is more than one solution, enter the answers as a comma-separated list. -[` e^{\, -{[$u]} k} + {[$v]} = {[$w]} `] +[` e^{\, -{[$u]} k} + {[$v]} = {[$w]} `] -[_______________]{$x1} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$x1} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_19.pg b/Contrib/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_19.pg index 413c39f51e..8172171219 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_19.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_19.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -35,9 +35,9 @@ $showPartialCorrectAnswers = 1; # Setup # Parameters -$u = random(6,9); -$v = random(2,9); -$w = random(1,9); +$u = random(6,9); +$v = random(2,9); +$w = random(1,9); $x = random(1,10); $y = random(66,84); @@ -61,13 +61,13 @@ Context()->strings->add( BEGIN_PGML -Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". +Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". If there is more than one solution, enter the answers as a comma-separated list. -[` -{[$u]} e^{\, {[$v]} k + {[$w]}} + {[$x]} = -{[$y]} `] +[` -{[$u]} e^{\, {[$v]} k + {[$w]}} + {[$x]} = -{[$y]} `] -[_______________]{$x1} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$x1} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_21.pg b/Contrib/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_21.pg index 7c23448d45..cc21c1ab37 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_21.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_21.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -36,10 +36,10 @@ $showPartialCorrectAnswers = 1; # Parameters -$u = random(2,10); +$u = random(2,10); do { $v = random(2, 10); } until ($v != $u); -$w = random(1,5); +$w = random(1,5); $x = 2; Context()->noreduce('(-x)-y','(-x)+y'); @@ -61,26 +61,26 @@ if($u > $v) { if($w == 1) { BEGIN_PGML -Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". +Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". If there is more than one solution, enter the answers as a comma-separated list. -[` [$f] = 0 `] +[` [$f] = 0 `] -[_______________]{$x1} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$x1} [@ helpLink("numbers") @]* END_PGML } else { BEGIN_PGML -Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". +Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". If you find more than one solution, enter your answer as a comma-separated list. -[` e^{ {[$x *$w]} x} - {[$u - $v]} e^{ {[$w]} x} - {[$u * $v]} = 0 `] +[` e^{ {[$x *$w]} x} - {[$u - $v]} e^{ {[$w]} x} - {[$u * $v]} = 0 `] -[_______________]{$x1} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$x1} [@ helpLink("numbers") @]* END_PGML } @@ -89,26 +89,26 @@ else { if (w == 1) { BEGIN_PGML -Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". +Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". If you find more than one solution, enter your answer as a comma-separated list. -[` e^{2x} + {[$v - $u]} e^x - {[$u * $v]} = 0 `] +[` e^{2x} + {[$v - $u]} e^x - {[$u * $v]} = 0 `] -[_______________]{$x1} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$x1} [@ helpLink("numbers") @]* END_PGML } else { BEGIN_PGML -Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". +Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". If you find more than one solution, enter your answer as a comma-separated list. -[` e^{ {[$x *$w]} x} + {[$v - $u]} e^{ {[$w]} x} - {[$u * $v]} = 0 `] +[` e^{ {[$x *$w]} x} + {[$v - $u]} e^{ {[$w]} x} - {[$u * $v]} = 0 `] -[_______________]{$x1} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$x1} [@ helpLink("numbers") @]* END_PGML } diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_23.pg b/Contrib/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_23.pg index 9a29b3881c..bf590189c7 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_23.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_23.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## College Algebra, work with an exponential equation +## College Algebra, work with an exponential equation ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -35,9 +35,9 @@ $showPartialCorrectAnswers = 1; # Setup # Parameters -$u = random(8,12); -$v = random(4,8); -$w = random(1,3); +$u = random(8,12); +$v = random(4,8); +$w = random(1,3); $x = random(1,4); $y = random(7,13); @@ -61,13 +61,13 @@ Context()->strings->add( BEGIN_PGML -Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". +Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". If there is more than one solution, enter the answers as a comma-separated list. -[` {[$u]} e^{\, {[$v]} k + {[$w]}} + {[$x]} = {[$y]} `] +[` {[$u]} e^{\, {[$v]} k + {[$w]}} + {[$x]} = {[$y]} `] -[_______________]{$x1} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$x1} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_25.pg b/Contrib/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_25.pg index 9c8e6824fc..4dce474a1b 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_25.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_25.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -35,9 +35,9 @@ $showPartialCorrectAnswers = 1; # Setup # Parameters -$u = random(8,12); -$v = random(4,8); -$w = random(1,3); +$u = random(8,12); +$v = random(4,8); +$w = random(1,3); $x = random(1,4); $y = random(71,96); @@ -61,13 +61,13 @@ Context()->strings->add( BEGIN_PGML -Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". +Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". If there is more than one solution, enter the answers as a comma-separated list. -[` {[$u]} e^{\, -{[$v]} k - {[$w]}} - {[$x]} = -{[$y]} `] +[` {[$u]} e^{\, -{[$v]} k - {[$w]}} - {[$x]} = -{[$y]} `] -[_______________]{$x1} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$x1} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_29.pg b/Contrib/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_29.pg index 7f0599883d..e30ee263d2 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_29.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_29.pg @@ -15,28 +15,28 @@ ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", "PGML.pl", "PGcourse.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); install_problem_grader(~~&std_problem_grader); - + # A random integer $a=non_zero_random(2,5,1); $b = non_zero_random(-3,-2,1); @@ -47,7 +47,7 @@ $d = $a**$abs; # The two sides of the correct answer $ans1=Compute("$a**$b"); $ans2=Compute("1/$d"); - + # Allows for the correct equation to be given in either order @@ -76,33 +76,33 @@ $multians = MultiAnswer($ans1, $ans2)->with( - - + + ########################### # Main text - + BEGIN_PGML -Rewrite the following equation in exponential form. +Rewrite the following equation in exponential form. + +[``\log_[$a]\left(\frac{1}{[$d]}\right)=[$b] ``] + + [____]{$multians} [`=`] [____]{$multians} [@ helpLink("numbers") @]* + -[``\log_[$a]\left(\frac{1}{[$d]}\right)=[$b] ``] - - [____]{$multians} [`=`] [____]{$multians} [@ AnswerFormatHelp("numbers") @]* - - END_PGML - - - + + + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_39.pg b/Contrib/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_39.pg index f6f4985ad2..7d3769824d 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_39.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_39.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -37,8 +37,8 @@ $showPartialCorrectAnswers = 1; # Parameters $a = random(1,3); # different variations of problem -$u = random(2,5); -$v = random(6,10); +$u = random(2,5); +$v = random(6,10); $w = random(1,7); # Solution @@ -56,7 +56,7 @@ else{ $x1 = $v + $u; if (($x1^2 - $v*$x1 + $w) <= 0) { $x1 = List(0); - } + } else { $x1 = List(0, $x1); } @@ -73,27 +73,27 @@ Context()->strings->add( if ($a == 1) { BEGIN_PGML -Give all solutions to the equation, or state that there are no solutions by entering "NONE". +Give all solutions to the equation, or state that there are no solutions by entering "NONE". If there is more than one solution, enter the answers as a comma-separated list. -[` \ln \left( - {[$u]} x \right) = \ln \left( x^2 - {[$v]} x \right) `] +[` \ln \left( - {[$u]} x \right) = \ln \left( x^2 - {[$v]} x \right) `] -[`x =`] [_______________]{$x1} [@ AnswerFormatHelp("numbers") @]* +[`x =`] [_______________]{$x1} [@ helpLink("numbers") @]* END_PGML } elsif ($a == 2) { BEGIN_PGML -Give all solutions to the equation, or state that there are no solutions by entering "NONE". +Give all solutions to the equation, or state that there are no solutions by entering "NONE". If there is more than one solution, enter the answers as a comma-separated list. -[` \ln \left( {[$u]} x \right) = \ln \left( x^2 - {[$v]} x \right) `] +[` \ln \left( {[$u]} x \right) = \ln \left( x^2 - {[$v]} x \right) `] -[`x =`] [_______________]{$x1} [@ AnswerFormatHelp("numbers") @]* +[`x =`] [_______________]{$x1} [@ helpLink("numbers") @]* END_PGML } @@ -104,9 +104,9 @@ Give all solutions to the equation, or state that there are no solutions by ente If there is more than one solution, enter the answers as a comma-separated list. -[` \ln \left( {[$u]} x + {[$w]} \right) = \ln \left( x^2 - {[$v]} x + {[$w]} \right) `] +[` \ln \left( {[$u]} x + {[$w]} \right) = \ln \left( x^2 - {[$v]} x + {[$w]} \right) `] -[`x =`] [_______________]{$x1} [@ AnswerFormatHelp("numbers") @]* +[`x =`] [_______________]{$x1} [@ helpLink("numbers") @]* END_PGML } diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_41.pg b/Contrib/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_41.pg index 366900b2f4..064ce61cbd 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_41.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_41.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -44,8 +44,8 @@ $a = random(1,2); # Parameters -$u = random(2,10); -$v = random(45,55); +$u = random(2,10); +$v = random(45,55); # Solution if ($a == 1) { @@ -61,27 +61,27 @@ else { if ($a == 1) { BEGIN_PGML -Give all solutions to the equation, or state that there are no solutions by entering "NONE". +Give all solutions to the equation, or state that there are no solutions by entering "NONE". If there is more than one solution, enter the answers as a comma-separated list. -[` \ln \left( x - {[$u]} \right) - \ln \left( x \right) = \ln \left( {[$v]} \right) `] +[` \ln \left( x - {[$u]} \right) - \ln \left( x \right) = \ln \left( {[$v]} \right) `] -[`x =`] [_______________]{$x1} [@ AnswerFormatHelp("numbers") @]* +[`x =`] [_______________]{$x1} [@ helpLink("numbers") @]* END_PGML } else { BEGIN_PGML -Give all solutions to the equation, or state that there are no solutions by entering "NONE". +Give all solutions to the equation, or state that there are no solutions by entering "NONE". If there is more than one solution, enter the answers as a comma-separated list. -[` \ln \left( x + {[$u]} \right) - \ln \left( x \right) = \ln \left( {[$v]} \right) `] +[` \ln \left( x + {[$u]} \right) - \ln \left( x \right) = \ln \left( {[$v]} \right) `] -[`x =`] [_______________]{$x1} [@ AnswerFormatHelp("numbers") @]* +[`x =`] [_______________]{$x1} [@ helpLink("numbers") @]* END_PGML } diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_43.pg b/Contrib/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_43.pg index 2424edb287..a6e9217e01 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_43.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_43.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -63,14 +63,14 @@ else { BEGIN_PGML -Give all solutions to the equation, or state that there are no solutions by entering "NONE". +Give all solutions to the equation, or state that there are no solutions by entering "NONE". If there is more than one solution, enter the answers as a comma-separated list. [`` \ln \left( x^2 - {[$x]} \right) + \ln \left( {[$t]} \right) = \ln \left( {[$k]} \right) ``] -[`x=`] [_____________________]{$x1} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_____________________]{$x1} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_47.pg b/Contrib/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_47.pg index 3152d4b61c..85ec54c13b 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_47.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_47.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -68,14 +68,14 @@ Context()->strings->add( BEGIN_PGML -Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". +Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". If there is more than one solution, enter the answers as a comma-separated list. [`` \ln \left( {[$u]} \right) + \ln \left( {[$v]} - {[$w]} x^2 \right) = \ln \left( {[$C]} \right) ``] -[`x =`] [____________________]{$x1} [@ AnswerFormatHelp("numbers") @]* +[`x =`] [____________________]{$x1} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_49.pg b/Contrib/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_49.pg index e20639a39b..e4c94a888d 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_49.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_49.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -66,14 +66,14 @@ if ($u - $v * $x1 <= 0) { BEGIN_PGML -Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". +Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". If there is more than one solution, enter the answers as a comma-separated list. [`` \ln \left( {[$t]} \right) - \ln \left( {[$u]} - {[$v]} x \right) = \ln \left( {[$w]} \right) ``] -[`x =`] [____________________]{$x1} [@ AnswerFormatHelp("numbers") @]* +[`x =`] [____________________]{$x1} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_5.pg b/Contrib/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_5.pg index 777e58db4e..cea84b2a02 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_5.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_5.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -46,7 +46,7 @@ BEGIN_PGML Use like bases to solve the exponential equation [`[$c] \cdot [$a]^{[$d]x} = [$b]`]. -[`x=`] [________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_57.pg b/Contrib/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_57.pg index c419914caa..f5b5cfb53f 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_57.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_57.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -58,14 +58,14 @@ $x1 = (exp($v - $w) + $u) / $t; BEGIN_PGML -Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". +Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". If there is more than one solution, enter the answers as a comma-separated list. [`` \ln \left( {[$t]} x - {[$u]} \right) - {[$v]} = - {[$w]} ``] -[`x =`] [____________________]{$x1} [@ AnswerFormatHelp("numbers") @]* +[`x =`] [____________________]{$x1} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_67.pg b/Contrib/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_67.pg index c2a6924696..f89383b9cc 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_67.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_67.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -63,12 +63,12 @@ Let [`P(t)`] be the population of a certain city in Colorado. Suppose that this [``P(t) = {[$u]} \, e^{ {[$v]} t},``] -where [`t`] is time in years. In how many years will the city's population reach [`{[$population]} {,} 000`]? +where [`t`] is time in years. In how many years will the city's population reach [`{[$population]} {,} 000`]? [_____________________]{$x1} years -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_8.pg b/Contrib/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_8.pg index a5e39f511c..aeb3741c3e 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_8.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_8.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -46,7 +46,7 @@ BEGIN_PGML Use like bases to solve the exponential equation [`[$c] \cdot [$a]^{[$d]x+[$d]} = [$b]`]. -[`x=`] [________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_11.pg b/Contrib/RRCC/College_Algebra/MAT121/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_11.pg index 59e8c655b4..ab32dfadc0 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_11.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_11.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -44,7 +44,7 @@ BEGIN_PGML Use logarithms to solve [` [$b]^{x-[$a]}=1 `]. If there is more than one solution, enter them as a comma separated list. If there is no solution, enter "NONE". -[`x=`] [________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_12.pg b/Contrib/RRCC/College_Algebra/MAT121/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_12.pg index fa2229fdcb..f1afcbaae5 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_12.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_12.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -45,7 +45,7 @@ BEGIN_PGML Use logarithms to solve [` [$a] e^{[$c]*x}=[$b] `]. If there is more than one solution, enter them as a comma separated list. If there is no solution, enter "NONE". -[`x=`] [________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_31.pg b/Contrib/RRCC/College_Algebra/MAT121/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_31.pg index eaf3dc8cf5..7f27c3c8da 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_31.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_31.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -45,7 +45,7 @@ BEGIN_PGML Solve [` [$a] \log_{[$b]}(x)=[$c] `]. If there is more than one solution, enter them as a comma separated list. If there is no solution, enter "NONE". -[`x=`] [________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_33.pg b/Contrib/RRCC/College_Algebra/MAT121/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_33.pg index a439998044..3a5db7ffc3 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_33.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_33.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -46,7 +46,7 @@ BEGIN_PGML Solve [` [$a] + \log_{[$b]}([$c]*x)=[$d] `]. If there is more than one solution, enter them as a comma separated list. If there is no solution, enter "NONE". -[`x=`] [________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_37.pg b/Contrib/RRCC/College_Algebra/MAT121/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_37.pg index b315761535..a21892c5ac 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_37.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_37.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -47,7 +47,7 @@ BEGIN_PGML Solve [` \log_{[$b]}([$a]*x-[$c])= \log_{[$b]}([$d]-[$e]*x) `]. If there is more than one solution, enter them as a comma separated list. If there is no solution, enter "NONE". -[`x=`] [________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_45.pg b/Contrib/RRCC/College_Algebra/MAT121/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_45.pg index caf05c4382..bfd90e2dd7 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_45.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_45.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -40,7 +40,7 @@ BEGIN_PGML Solve [` \ln(x)+\ln(x-3)=\ln(7x) `]. If there is more than one solution, enter them as a comma separated list. If there is no solution, enter "NONE". -[`x=`] [________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_7.pg b/Contrib/RRCC/College_Algebra/MAT121/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_7.pg index 5ef690791f..9362211c5a 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_7.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_7.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -46,7 +46,7 @@ BEGIN_PGML Use like bases to solve the exponential equation [`\left(\frac{1}{[$b]}\right)^{[$d]*x} \cdot [$c]=[$a]^{[$e]}`]. -[`x=`] [________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.6/VideoJ.pg b/Contrib/RRCC/College_Algebra/MAT121/6.6/VideoJ.pg index ae2b377d38..749e472bc9 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.6/VideoJ.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.6/VideoJ.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## KEYWORDS() @@ -25,7 +25,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -38,8 +38,8 @@ TEXT(beginproblem()); $ans=List("2,5"); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -51,14 +51,14 @@ BEGIN_PGML >> [$video]* << ->> YouTube video of Adam Forland, internet mathemagician, embedded using an iframe. << +>> YouTube video of Adam Forland, internet mathemagician, embedded using an iframe. << >> If the video does not work, [@ htmlLink("https://youtu.be/VqYBzt0pkPo","click here to go to YouTube directly.") @]* << #Video Quiz: Solve [` \ln(10)-\ln(7-x)=\ln(x)`]. If you have more than one solution, enter them as a comma separated list. -[`x = `] [_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`x = `] [_______________]{$ans} [@ helpLink("formulas") @]* diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_7_18.pg b/Contrib/RRCC/College_Algebra/MAT121/6.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_7_18.pg index c5674cd3f5..8c4da36fba 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_7_18.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_7_18.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "scaffold.pl", @@ -69,13 +69,13 @@ $x5 = (($u + 0.0)/$v); # Main text Scaffold::Begin(); - + BEGIN_PGML Let [`P(t)`] denote the number of fish in a pond. Suppose that it is given by the formula [`` P(t) = \dfrac{ {[$u]} }{ {[$v]} + {[$w]} e^{- {[$x]} t}}, ``] -where [`t`] is time in years. +where [`t`] is time in years. END_PGML @@ -86,7 +86,7 @@ What is the size of the initial population? [_______________]{$initial_population} fish -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* END_PGML @@ -95,18 +95,18 @@ Section::End(); Section::Begin("Part 2"); BEGIN_PGML -What is the doubling time for this population? +What is the doubling time for this population? [_______________]{$x2} years END_PGML Section::End(); - + Section::Begin("Part 3"); BEGIN_PGML -What is the size of the population after [`{[$time]}`] years? +What is the size of the population after [`{[$time]}`] years? [_______________]{$x3} fish @@ -114,11 +114,11 @@ What is the size of the population after [`{[$time]}`] years? END_PGML Section::End(); - + Section::Begin("Part 4"); BEGIN_PGML -How long will it take until the population contains [`{[$size]}`] individuals? +How long will it take until the population contains [`{[$size]}`] individuals? [_______________]{$x4} years @@ -126,18 +126,18 @@ How long will it take until the population contains [`{[$size]}`] individuals? END_PGML Section::End(); - + Section::Begin("Part 5"); BEGIN_PGML -Make a graph of this function, and then use your graph to estimate the carrying capacity of the pond. +Make a graph of this function, and then use your graph to estimate the carrying capacity of the pond. [_______________]{$x5} fish END_PGML Section::End(); - + Scaffold::End(); ############################ diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_7_24.pg b/Contrib/RRCC/College_Algebra/MAT121/6.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_7_24.pg index b5a5131375..f2ef401fa4 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_7_24.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_7_24.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "scaffold.pl", @@ -54,16 +54,16 @@ $ans2=log($u/$w)/((log(.5))/$hl); # Main text Scaffold::Begin(); - + Section::Begin("Part 1"); BEGIN_PGML -A certain radioactive isotope has a half-life of [`{[$hl]}`] minutes. If we initially have +A certain radioactive isotope has a half-life of [`{[$hl]}`] minutes. If we initially have [`{[$w]}`] grams of this substance, how many half-lives will pass until [`{[$u]}`] grams remain? Your answer should be a whole number. -[_______________]{$ans1} +[_______________]{$ans1} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* END_PGML @@ -73,16 +73,16 @@ Section::Begin("Part 2"); BEGIN_PGML -What length of time is needed for this decay process to occur? +What length of time is needed for this decay process to occur? [_______________]{$ans2} minutes -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* END_PGML Section::End(); - + Scaffold::End(); ############################ diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_7_29.pg b/Contrib/RRCC/College_Algebra/MAT121/6.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_7_29.pg index 2df2a42c40..ea548c741a 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_7_29.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_7_29.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "scaffold.pl", @@ -69,9 +69,9 @@ Section::Begin("Part 1"); BEGIN_PGML -Write an exponential model for the [`A(t)`], the amount of the drug in the patient's system after [`t`] hours have passed. +Write an exponential model for the [`A(t)`], the amount of the drug in the patient's system after [`t`] hours have passed. -[`A(t)=`] [_______________]{$f} [@ AnswerFormatHelp("formula") @]* +[`A(t)=`] [_______________]{$f} [@ helpLink("formula") @]* END_PGML @@ -83,11 +83,11 @@ Context("Numeric"); BEGIN_PGML -Use your formula to find the amount of the drug remaining after [`{[$w]}`] hours have passed. +Use your formula to find the amount of the drug remaining after [`{[$w]}`] hours have passed. [_______________]{$x1} mg -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* END_PGML @@ -97,14 +97,14 @@ Section::Begin("Part 3"); BEGIN_PGML -What is the half-life of this drug? +What is the half-life of this drug? [_______________]{$x2} hours END_PGML Section::End(); - + Scaffold::End(); ############################ diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_7_51.pg b/Contrib/RRCC/College_Algebra/MAT121/6.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_7_51.pg index ddab2555a7..c733f29ce1 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_7_51.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_7_51.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "scaffold.pl", @@ -63,27 +63,27 @@ $x2 = ($u + 0.0)/$v; # Main text Scaffold::Begin(); - + BEGIN_PGML Let [`N(t)`] be the number of people at a school who have heard a certain rumor. Suppose that this can be modeled by the function [`` N(t) = \dfrac{ {[$u]} }{ {[$v]} + {[$w]} e^{- {[$x]} t}}, ``] -where [`t`] is time in days. +where [`t`] is time in days. END_PGML Section::Begin("Part 1"); BEGIN_PGML -How many people have heard the rumor after [`{[$time]}`] days? +How many people have heard the rumor after [`{[$time]}`] days? [_______________]{$x1} people END_PGML Section::End(); - + Section::Begin("Part 2"); BEGIN_PGML @@ -94,7 +94,7 @@ What number of people will have heard the rumor in the long run? A graph is one END_PGML Section::End(); - + Scaffold::End(); ############################ diff --git a/Contrib/RRCC/College_Algebra/MAT121/6.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_7_6.pg b/Contrib/RRCC/College_Algebra/MAT121/6.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_7_6.pg index 5a96afe563..e001a44d98 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/6.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_7_6.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/6.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_7_6.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -59,12 +59,12 @@ Let [`T(t)`] be the temperature of a piece of metal in degrees Fahrenheit, and s [`` T \left( t \right) = {[$u]} e^{ -{[$v]} t } + {[$w]} ``] -where [`t`] is time in minutes. What is the temperature of the metal after [`1`] hour and [` {[$minutes]} `] minutes? +where [`t`] is time in minutes. What is the temperature of the metal after [`1`] hour and [` {[$minutes]} `] minutes? -[_______________]{$x1} [` {}^{\text{O}}F `] +[_______________]{$x1} [` {}^{\text{O}}F `] -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_197.pg b/Contrib/RRCC/College_Algebra/MAT121/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_197.pg index 8106814ca3..160f870be4 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_197.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_197.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "parserPopUp.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,7 +48,7 @@ if ($b-$a*$a == 0) {$ans1 = NONE; } elsif ( $ans==($b*$a)/($b-$a*$a)) {$ans1=($b*$a)/($b-$a*$a); -} +} Context("Fraction-NoDecimals"); @@ -64,7 +64,7 @@ Solve the rational equation. Enter the answer as a reduced fraction. If there [`\dfrac{1}{a}+\dfrac{[$a]}{[$b]}=\dfrac{1}{[$a]}`] -[`a`] = [_________________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +[`a`] = [_________________]{$ans2} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_199.pg b/Contrib/RRCC/College_Algebra/MAT121/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_199.pg index 23afbdd4d2..6c146c9b2a 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_199.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_199.pg @@ -23,7 +23,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,7 +48,7 @@ if ($a*$a+$b== 0) {$ans1 = NONE; } elsif ( $ans=($a*$b*$c)/($a*$a+$b)) {$ans1=($a*$b*$c)/($a*$a+$b); -} +} Context("Fraction-NoDecimals"); @@ -62,9 +62,9 @@ BEGIN_PGML Solve the rational equation. Enter the answer as a reduced fraction. If there is more than one correct answer, enter a comma separated list. If there is no answer, enter "NONE". -[`\dfrac{[$a]}{[$b]}+\dfrac{1}{[$a]}=\dfrac{[$c]}{v}`] +[`\dfrac{[$a]}{[$b]}+\dfrac{1}{[$a]}=\dfrac{[$c]}{v}`] -[`v`] = [_________________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +[`v`] = [_________________]{$ans2} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_203.pg b/Contrib/RRCC/College_Algebra/MAT121/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_203.pg index 78952aac83..3bfcc0ee28 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_203.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_203.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,7 +51,7 @@ Solve the rational equation. If there is more than one correct answer, enter a 1+[`\dfrac{[$c]}{p}=-\dfrac{[$d]}{p^2}`] -[`p`] = [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`p`] = [_________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_209.pg b/Contrib/RRCC/College_Algebra/MAT121/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_209.pg index 897df78703..65d5fd1718 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_209.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_209.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -45,7 +45,7 @@ $ans=(5-$a*$c-$b*$c)/($a-$b); if ($ans == -$c) {$ans1 = NONE; -} +} elsif ($ans == $c) {$ans1 = NONE; } @@ -62,12 +62,12 @@ $ans2=Fraction($ans1); BEGIN_PGML -Solve the rational equation. Enter the answer as a reduced fraction. If there is more than one correct answer, enter a comma separated list. If there is no answer, enter "NONE". +Solve the rational equation. Enter the answer as a reduced fraction. If there is more than one correct answer, enter a comma separated list. If there is no answer, enter "NONE". [`\dfrac{[$a]}{z-[$c]}-\dfrac{[$b]}{z+[$c]}=\dfrac{5}{z^2-[$d]}`] -[`z`] = [_________________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +[`z`] = [_________________]{$ans2} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_213.pg b/Contrib/RRCC/College_Algebra/MAT121/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_213.pg index 2b28966e06..4cf4ad761b 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_213.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_213.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,7 +48,7 @@ $g= $b*$c; $ans=($a-$d*$c+$e*$b)/(1-$d+$e); if ($ans == $b) {$ans1 = NONE;} -elsif ($ans == $c) {$ans1 = NONE;} +elsif ($ans == $c) {$ans1 = NONE;} elsif ( $ans ==($a-$d*$c+$e*$b)/(1-$d+$e)) {$ans1=($a-$d*$c+$e*$b)/(1-$d+$e);} ########################### @@ -56,14 +56,14 @@ elsif ( $ans ==($a-$d*$c+$e*$b)/(1-$d+$e)) {$ans1=($a-$d*$c+$e*$b)/(1-$d+$e);} BEGIN_PGML -Solve the rational equation. If there is more than one correct answer, enter a comma separated list. If there is no answer, enter "NONE". +Solve the rational equation. If there is more than one correct answer, enter a comma separated list. If there is no answer, enter "NONE". [`\dfrac{v-[$a]}{v^2-[$f]*v+[$g]} = \dfrac{[$d]}{v-[$b]} - \dfrac{[$e]}{v-[$c]}`] -[`v`] = [_________________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +[`v`] = [_________________]{$ans1} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_217.pg b/Contrib/RRCC/College_Algebra/MAT121/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_217.pg index 55552df45a..ece8dceada 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_217.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_217.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -49,11 +49,11 @@ BEGIN_PGML Solve the rational equation. If there is more than one correct answer, enter a comma separated list. If there is no answer, enter "NONE". -[`\dfrac{b+[$a]}{[$a]b}+\dfrac{b}{[$c]}=\dfrac{1}{b}`] +[`\dfrac{b+[$a]}{[$a]b}+\dfrac{b}{[$c]}=\dfrac{1}{b}`] -[`b`] = [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`b`] = [_________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_219.pg b/Contrib/RRCC/College_Algebra/MAT121/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_219.pg index aad6a23713..b8e149f170 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_219.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_219.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -39,35 +39,35 @@ $chooser=random(1,5,1); if ( $chooser ==1) {$eqn=Formula("x/(x+6)-(180)/(x^2-36)-7"); -} +} elsif ( $chooser ==2) {$eqn=Formula("x/(x+3)-(18)/(x^2-9)-4"); -} +} elsif ( $chooser ==3) {$eqn=Formula("x/(x+5)-(50)/(x^2-25)-6"); -} +} elsif ( $chooser ==4) {$eqn=Formula("x/(x+5)+(130)/(x^2-25)-6"); -} +} elsif ( $chooser ==5) {$eqn=Formula("x/(x-4)-(18)/(x^2-16)-3"); -} +} if ( $chooser ==1) {$ans=List(-4,3); -} +} elsif ( $chooser ==2) {$ans=2; -} +} elsif ( $chooser ==3) {$ans=4; -} +} elsif ( $chooser ==4) {$ans=List(7,-8); -} +} elsif ( $chooser ==5) {$ans=List(-3,5); -} +} @@ -82,7 +82,7 @@ Solve the rational equation. If there is more than one correct answer, enter a -[`x`] = [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x`] = [_________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_235.pg b/Contrib/RRCC/College_Algebra/MAT121/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_235.pg index 4b4e6ac1be..9fbdb4b6a0 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_235.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_235.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -43,26 +43,26 @@ Context("Numeric"); $chooser=random(1,2,1); if ( $chooser ==1) {$eqn1=Formula("C/r"); -} +} elsif ( $chooser ==2) {$eqn1=Formula("I/r"); -} +} if ( $chooser ==1) {$eqn2=Formula("2*pi"); -} +} elsif ( $chooser ==2) {$eqn2=Formula("P"); -} +} if ( $chooser ==1) {$ans=Formula("C/(2*pi)"); -} +} elsif ( $chooser ==2) {$ans=Formula("I/P"); -} +} @@ -79,7 +79,7 @@ Solve the following equation for [`r`]. -[`r`] = [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`r`] = [_________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_239.pg b/Contrib/RRCC/College_Algebra/MAT121/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_239.pg index e662c28d30..e9426b332b 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_239.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_239.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "PGcourse.pl", @@ -44,45 +44,45 @@ Context("Numeric"); $chooser=random(1,4,1); if ( $chooser ==1) {$eqn1=Formula("c"); -} +} elsif ( $chooser ==2) {$eqn1=Formula("(b+3)/(w-2)"); -} +} elsif ( $chooser ==3) {$eqn1=Formula("(a+3)/(w-1)"); -} +} elsif ( $chooser ==4) {$eqn1=Formula("(a+5)/(2-w)"); -} +} if ( $chooser ==1) {$eqn2=Formula("w/(2-w)"); -} +} elsif ( $chooser ==2) {$eqn2=Formula("a"); -} +} elsif ( $chooser ==3) {$eqn2=("1/2"); -} +} elsif ( $chooser ==4) {$eqn2=("4/3"); -} +} if ( $chooser ==1) {$ans=Formula("2c/(c+1)"); -} +} elsif ( $chooser ==2) {$ans=Formula("(b+3+2a)/a"); -} +} elsif ( $chooser ==3) {$ans=Formula("2a+7"); -} +} elsif ( $chooser ==4) {$ans=Formula("(3a+7)/-4"); -} +} @@ -99,7 +99,7 @@ Solve the following equation for [`w`]. -[`w`] = [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`w`] = [_________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_241.pg b/Contrib/RRCC/College_Algebra/MAT121/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_241.pg index 4cf8f11f9f..097af4fd22 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_241.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_241.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "PGcourse.pl", @@ -40,52 +40,52 @@ Context("Numeric"); $chooser=random(1,5,1); if ( $chooser ==1) {$eqn1=Formula("1/p+2/q"); -} +} elsif ( $chooser ==2) {$eqn1=Formula("3/p+1/q"); -} +} elsif ( $chooser ==3) {$eqn1=("2/q+1/5"); -} +} elsif ( $chooser ==4) {$eqn1=("6/q+2/3"); -} +} elsif ( $chooser ==5) {$eqn1=Formula("(q+3)/(p-2)"); -} +} if ( $chooser ==1) {$eqn2=("4"); -} +} elsif ( $chooser ==2) {$eqn2=("2"); -} +} elsif ( $chooser ==3) {$eqn2=Formula("3/p"); -} +} elsif ( $chooser ==4) {$eqn2=Formula("1/p"); -} +} elsif ( $chooser ==5) {$eqn2=("4/5"); -} +} if ( $chooser ==1) {$ans=Formula("q/(4q-2)"); -} +} elsif ( $chooser ==2) {$ans=Formula("3q/(2q-1)"); -} +} elsif ( $chooser ==3) {$ans=Formula("15q/(10+q)"); -} +} elsif ( $chooser ==4) {$ans=Formula("3q/(18+2q)"); -} +} elsif ( $chooser ==5) {$ans=Formula("(5q+23)/4"); -} +} @@ -101,7 +101,7 @@ Solve the following equation for [`p`]. -[`p`] = [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`p`] = [_________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Contrib/RRCC/College_Algebra/MAT121/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_339.pg b/Contrib/RRCC/College_Algebra/MAT121/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_339.pg index d23df46f7e..2467adea1f 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_339.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_339.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,15 +50,15 @@ else { ########################### # Main text -if ($a == 1) +if ($a == 1) { BEGIN_PGML -Solve the rational inequality. Write your answer in interval notation. +Solve the rational inequality. Write your answer in interval notation. [`` \dfrac{x - {[$u]}}{x + {[$v]}} \ge 0 ``] - [_______________]{$x1} [@ AnswerFormatHelp("intervals") @]* + [_______________]{$x1} [@ helpLink("intervals") @]* END_PGML } @@ -67,11 +67,11 @@ else { BEGIN_PGML -Solve the rational inequality. Write your answer in interval notation. +Solve the rational inequality. Write your answer in interval notation. [`` \dfrac{x + {[$u]}}{x - {[$v]}} \ge 0 ``] - [_______________]{$x1} [@ AnswerFormatHelp("intervals") @]* + [_______________]{$x1} [@ helpLink("intervals") @]* END_PGML } diff --git a/Contrib/RRCC/College_Algebra/MAT121/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_343.pg b/Contrib/RRCC/College_Algebra/MAT121/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_343.pg index 86a78b53bd..df445536eb 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_343.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_343.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -60,15 +60,15 @@ else { ########################### # Main text -if ($a == 1) +if ($a == 1) { BEGIN_PGML -Solve the rational inequality. Write your answer in interval notation. +Solve the rational inequality. Write your answer in interval notation. [`` \dfrac{x - {[$u]}}{x - {[$v]}} > 0 ``] - [_______________]{$x1} [@ AnswerFormatHelp("intervals") @]* + [_______________]{$x1} [@ helpLink("intervals") @]* END_PGML } @@ -76,11 +76,11 @@ else { BEGIN_PGML -Solve the rational inequality. Write your answer in interval notation. +Solve the rational inequality. Write your answer in interval notation. [`` \dfrac{x + {[$u]}}{x + {[$v]}} > 0 ``] - [_______________]{$x1} [@ AnswerFormatHelp("numbers") @]* + [_______________]{$x1} [@ helpLink("numbers") @]* END_PGML } diff --git a/Contrib/RRCC/College_Algebra/MAT121/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_347.pg b/Contrib/RRCC/College_Algebra/MAT121/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_347.pg index 2ae77d58ef..fa13ae6fe9 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_347.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_347.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -52,7 +52,7 @@ else { } if ($a == 1) { - # c2 is always less than c1 here + # c2 is always less than c1 here $x1 = Interval("($c2,$c1)"); } else { @@ -70,15 +70,15 @@ else { ########################### # Main text -if ($a == 1) +if ($a == 1) { BEGIN_PGML -Solve the rational inequality. Write your answer in interval notation. +Solve the rational inequality. Write your answer in interval notation. [`` \dfrac{{[$u]}x}{x - {[$v]}} < {[$w]} ``] - [_______________]{$x1} [@ AnswerFormatHelp("numbers") @]* + [_______________]{$x1} [@ helpLink("numbers") @]* END_PGML } @@ -90,7 +90,7 @@ Solve the rational inequality. Write your answer in interval notation. [`` \dfrac{{[$u]}x}{x - {[$v]}} < -{[$w]} ``] - [_______________]{$x1} [@ AnswerFormatHelp("intervals") @]* + [_______________]{$x1} [@ helpLink("intervals") @]* END_PGML } diff --git a/Contrib/RRCC/College_Algebra/MAT121/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_349.pg b/Contrib/RRCC/College_Algebra/MAT121/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_349.pg index 825fbeddbb..b5883a65ce 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_349.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_349.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -62,19 +62,19 @@ else { Context("Interval"); $x1 = Union("(-inf,$min)U($max,inf)"); - + ########################### # Main text -if ($a == 1) +if ($a == 1) { BEGIN_PGML -Solve the rational inequality. Write your answer in interval notation. +Solve the rational inequality. Write your answer in interval notation. [`` \dfrac{{[$u]}x}{x - {[$v]}} > {[$w]} ``] - [_______________]{$x1} [@ AnswerFormatHelp("intervals") @]* + [_______________]{$x1} [@ helpLink("intervals") @]* END_PGML } @@ -82,11 +82,11 @@ else { BEGIN_PGML -Solve the rational inequality. Write your answer in interval notation. +Solve the rational inequality. Write your answer in interval notation. [`` \dfrac{{[$u]}x}{x - {[$v]}} > -{[$w]} ``] - [_______________]{$x1} [@ AnswerFormatHelp("intervals") @]* + [_______________]{$x1} [@ helpLink("intervals") @]* END_PGML } diff --git a/Contrib/RRCC/College_Algebra/MAT121/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_352.pg b/Contrib/RRCC/College_Algebra/MAT121/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_352.pg index ba5065f545..1915737e8c 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_352.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_352.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -60,19 +60,19 @@ if ($c1 < $c2) { else { $x1 = Interval("[$c2,$c1)"); } - + ########################### # Main text -if ($a == 1) +if ($a == 1) { BEGIN_PGML -Solve the rational inequality. Write your answer in interval notation. +Solve the rational inequality. Write your answer in interval notation. [`` \dfrac{{[$t]}x - {[$u]}}{x - {[$v]}} \le {[$w]} ``] - [_______________]{$x1} [@ AnswerFormatHelp("intervals") @]* + [_______________]{$x1} [@ helpLink("intervals") @]* END_PGML } @@ -80,11 +80,11 @@ else { BEGIN_PGML -Solve the rational inequality. Write your answer in interval notation. +Solve the rational inequality. Write your answer in interval notation. [`` \dfrac{{[$t]}x - {[$u]}}{x - {[$v]}} \le -{[$w]} ``] - [_______________]{$x1} [@ AnswerFormatHelp("numbers") @]* + [_______________]{$x1} [@ helpLink("numbers") @]* END_PGML } diff --git a/Contrib/RRCC/College_Algebra/MAT121/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_354.pg b/Contrib/RRCC/College_Algebra/MAT121/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_354.pg index 2b3f89e3a1..199419b4ad 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_354.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_354.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -62,19 +62,19 @@ if ($c1 < $c2) { else { $x1 = Union("(-inf,$c2]U($c1,inf)"); } - + ########################### # Main text -if ($a == 1) +if ($a == 1) { BEGIN_PGML -Solve the rational inequality. Write your answer in interval notation. +Solve the rational inequality. Write your answer in interval notation. [`` \dfrac{{[$t]}x - {[$u]}}{x - {[$v]}} \ge {[$w]} ``] - [_______________]{$x1} [@ AnswerFormatHelp("intervals") @]* + [_______________]{$x1} [@ helpLink("intervals") @]* END_PGML } @@ -82,11 +82,11 @@ else { BEGIN_PGML -Solve the rational inequality. Write your answer in interval notation. +Solve the rational inequality. Write your answer in interval notation. [`` \dfrac{{[$t]}x - {[$u]}}{x - {[$v]}} \ge -{[$w]} ``] - [_______________]{$x1} [@ AnswerFormatHelp("intervals") @]* + [_______________]{$x1} [@ helpLink("intervals") @]* END_PGML } diff --git a/Contrib/RRCC/College_Algebra/MAT121/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_357.pg b/Contrib/RRCC/College_Algebra/MAT121/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_357.pg index 47dc46bb50..9aef8178ab 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_357.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_357.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -39,7 +39,7 @@ $a = random(1,2); # different forms of problem $u = random(1,6); $v = random(1,10); -do{ $w = random(1,10); } until ($w != $v); +do{ $w = random(1,10); } until ($w != $v); # Solutions Context("Interval"); @@ -63,15 +63,15 @@ else { ########################### # Main text -if ($a == 1) +if ($a == 1) { BEGIN_PGML -Solve the rational inequality. Write your answer in interval notation. +Solve the rational inequality. Write your answer in interval notation. [`` \dfrac{{[$u]}} {x^2 - {[$v+$w]} x + {[$v*$w]}} < 0 ``] - [_______________]{$x1} [@ AnswerFormatHelp("interval") @]* + [_______________]{$x1} [@ helpLink("interval") @]* END_PGML } @@ -79,11 +79,11 @@ else { BEGIN_PGML -Solve the rational inequality. Write your answer in interval notation. +Solve the rational inequality. Write your answer in interval notation. [`` \dfrac{{[$u]}} {x^2 + {[$v+$w]} x + {[$v*$w]}} < 0 ``] - [_______________]{$x1} [@ AnswerFormatHelp("interval") @]* + [_______________]{$x1} [@ helpLink("interval") @]* END_PGML } diff --git a/Contrib/RRCC/College_Algebra/MAT121/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_365.pg b/Contrib/RRCC/College_Algebra/MAT121/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_365.pg index 47746e3c6d..3fd15ad4b4 100644 --- a/Contrib/RRCC/College_Algebra/MAT121/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_365.pg +++ b/Contrib/RRCC/College_Algebra/MAT121/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_365.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -58,15 +58,15 @@ $x1 = Union($i1,$i2); ########################### # Main text -if ($problem_type == 1) +if ($problem_type == 1) { BEGIN_PGML -Solve the rational inequality. Write your answer in interval notation. +Solve the rational inequality. Write your answer in interval notation. [`` \dfrac{1}{{[$w]}} - \dfrac{ {[$a*$b*$w]} }{x^2} \le \dfrac{ {[$a - $b]} }{x} ``] - [_______________]{$x1} [@ AnswerFormatHelp("interval") @]* + [_______________]{$x1} [@ helpLink("interval") @]* END_PGML } @@ -74,11 +74,11 @@ else { BEGIN_PGML -Solve the rational inequality. Write your answer in interval notation. +Solve the rational inequality. Write your answer in interval notation. [`` \dfrac{1}{{[$w]}} - \dfrac{ {[$a*$b*$w]} }{x^2} \le -\dfrac{ {[$b - $a]} }{x} ``] - [_______________]{$x1} [@ AnswerFormatHelp("interval") @]* + [_______________]{$x1} [@ helpLink("interval") @]* END_PGML } diff --git a/Contrib/Rochester-SigPrep/M1_ComplexNumbers/M1_Q1.pg b/Contrib/Rochester-SigPrep/M1_ComplexNumbers/M1_Q1.pg index a56e138c3c..f4fd3618c9 100644 --- a/Contrib/Rochester-SigPrep/M1_ComplexNumbers/M1_Q1.pg +++ b/Contrib/Rochester-SigPrep/M1_ComplexNumbers/M1_Q1.pg @@ -12,14 +12,14 @@ ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", # Standard macros for PG language "MathObjects.pl", "answerHints.pl", "parserOneOf.pl", - "AnswerFormatHelp.pl", + #"source.pl", # allows code to be displayed on certain sites. #"PGcourse.pl", # Customization file for the course ); @@ -82,8 +82,8 @@ For the complex number given in Cartesian representation in each of the followin $PAR $BBOLD Hint: Sketching the numbers on the complex plane should allow you to readily figure out the answers for this problem. Additionally, you may find it helpful to look up values of trignometric functions for "special angles" such as \(0, \pm \pi/6, \pm \pi/4, \pm 2\pi/6, \pi \).$EBOLD -$PAR -$BBOLD Note: If would like help in using mathematical operations to enter in your answers, please see: \{ AnswerFormatHelp("formulas") \} $EBOLD +$PAR +$BBOLD Note: If would like help in using mathematical operations to enter in your answers, please see: \{ helpLink("formulas") \} $EBOLD $PAR $PAR @@ -92,11 +92,11 @@ $BBOLD a) $EBOLD \( 4 \) $BR $BR $PAR $BBOLD b) $EBOLD \( -5j \) $BR -\( r = \) \{ans_rule(5)\}, \( \theta = \) \{ans_rule(5)\} \( \pi \) radians $BR +\( r = \) \{ans_rule(5)\}, \( \theta = \) \{ans_rule(5)\} \( \pi \) radians $BR $PAR $BBOLD c) $EBOLD \( $x3 + j \) $BR \( r = \) \{ans_rule(5)\}, \( \theta = \) \{ans_rule(5)\} \( \pi \) radians -$BR +$BR $PAR $BBOLD d) $EBOLD \( -\sqrt{3} + -\sqrt{3}j \) $BR \( r = \) \{ans_rule(5)\}, \( \theta = \) \{ans_rule(5)\} \( \pi \) radians @@ -104,7 +104,7 @@ $BR $PAR $BBOLD e) $EBOLD \( $x5 + \sqrt{3}j \) $BR \( r = \) \{ans_rule(5)\}, \( \theta = \) \{ans_rule(5)\} \( \pi \) radians -$BR +$BR $PAR $BBOLD f) $EBOLD \( -\frac{\sqrt{3}}{2} + \frac{1}{2} j \) $BR \( r = \) \{ans_rule(5)\}, \( \theta = \) \{ans_rule(5)\} \( \pi \) radians @@ -112,7 +112,7 @@ $BR $PAR $BBOLD g) $EBOLD \( \sqrt{12} - 6j \) $BR \( r = \) \{ans_rule(5)\}, \( \theta = \) \{ans_rule(5)\} \( \pi \) radians -$BR +$BR @@ -161,11 +161,11 @@ ANS(num_cmp( $seventh -> theta/pi)); #Enter a value for \(\pi\) if you don't mind are you still the same PLEASE: \{$pi->ans_rule\} #$PAR -#Calculate the following: +#Calculate the following: #$PAR #\( $a + $b \): \{ans_rule(20)\} #ANS($pi->with(tolerance=>.0001)->cmp); #ANS(($a + $b)->cmp()); #--> for complex context -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/Rochester-SigPrep/M1_ComplexNumbers/M1_Q6.pg b/Contrib/Rochester-SigPrep/M1_ComplexNumbers/M1_Q6.pg index f967aa3bbb..b1f2472fd0 100644 --- a/Contrib/Rochester-SigPrep/M1_ComplexNumbers/M1_Q6.pg +++ b/Contrib/Rochester-SigPrep/M1_ComplexNumbers/M1_Q6.pg @@ -17,7 +17,7 @@ loadMacros( "MathObjects.pl", "PGcourse.pl", # Customization file for the course "parserFunction.pl", -"AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -42,10 +42,10 @@ $power_a1 = 2; $root_a1 = 2; $root_a1power = $root_a1**$power_a1; $theta_a1 = 0; -$z_a1r = $root_a1**$power_a1*cos($theta_a1); -$z_a1i = $root_a1**$power_a1*sin($theta_a1); +$z_a1r = $root_a1**$power_a1*cos($theta_a1); +$z_a1i = $root_a1**$power_a1*sin($theta_a1); -$z_a1 = $z_a1r + $z_a1i* i; +$z_a1 = $z_a1r + $z_a1i* i; $theta_a1_0 = $theta_a1/$power_a1; $theta_a1_1 = $theta_a1_0 + 2*pi/$power_a1; $sol1 = Compute("$root_a1 (cos($theta_a1_0) + sin($theta_a1_0)j)"); @@ -57,10 +57,10 @@ $power_a2 = 3; $root_a2 = 2; $root_a2power = $root_a2**$power_a2; $theta_a2 = pi; -$z_a2r = $root_a2**$power_a2*cos($theta_a2); -$z_a2i = $root_a2**$power_a2*sin($theta_a2); +$z_a2r = $root_a2**$power_a2*cos($theta_a2); +$z_a2i = $root_a2**$power_a2*sin($theta_a2); -$z_a2 = $z_a2r + $z_a2i* i; +$z_a2 = $z_a2r + $z_a2i* i; $theta_a2_0 = $theta_a2/$power_a2; $theta_a2_1 = $theta_a2_0 + 2*pi/$power_a2; $theta_a2_2 = $theta_a2_0 + 4*pi/$power_a2; @@ -73,10 +73,10 @@ $power_a3 = 4; $root_a3 = 2; $root_a3power = $root_a3**$power_a3; $theta_a3 = pi/2; -$z_a3r = $root_a3**$power_a3*cos($theta_a3); -$z_a3i = $root_a3**$power_a3*sin($theta_a3); +$z_a3r = $root_a3**$power_a3*cos($theta_a3); +$z_a3i = $root_a3**$power_a3*sin($theta_a3); -$z_a3 = $z_a3r + $z_a3i* i; +$z_a3 = $z_a3r + $z_a3i* i; $theta_a3_0 = $theta_a3/$power_a3; $theta_a3_1 = $theta_a3_0 + 2*pi/$power_a3; $theta_a3_2 = $theta_a3_0 + 4*pi/$power_a3; @@ -91,10 +91,10 @@ $power_a4 = 5; $root_a4 = 2; $root_a4power = $root_a4**$power_a4; $theta_a4 = -(pi)/2; -$z_a4r = $root_a4**$power_a4*cos($theta_a4); -$z_a4i = $root_a4**$power_a4*sin($theta_a4); +$z_a4r = $root_a4**$power_a4*cos($theta_a4); +$z_a4i = $root_a4**$power_a4*sin($theta_a4); -$z_a4 = $z_a4r + $z_a4i* i; +$z_a4 = $z_a4r + $z_a4i* i; $theta_a4_0 = $theta_a4/$power_a4; $theta_a4_1 = $theta_a4_0 + 2*pi/$power_a4; $theta_a4_2 = $theta_a4_0 + 4*pi/$power_a4; @@ -118,20 +118,20 @@ $BBOLD Hint: Writing the complex number in polar form as \( z = r e^{j \theta} $EBOLD $PAR -$BBOLD a) $EBOLD \( z^2 = $root_a1power \) -$BR -\(z=\)\{ans_rule(80)\} +$BBOLD a) $EBOLD \( z^2 = $root_a1power \) +$BR +\(z=\)\{ans_rule(80)\} $PAR -$BBOLD b) $EBOLD \( z^3 = -8 \) -$BR +$BBOLD b) $EBOLD \( z^3 = -8 \) +$BR \(z=\)\{ans_rule(80)\} $PAR -$BBOLD c) $EBOLD \( z^4 = 16j \) -$BR +$BBOLD c) $EBOLD \( z^4 = 16j \) +$BR \(z=\)\{ans_rule(80)\} $PAR -$BBOLD d) $EBOLD \( z^5 = -32j \) -$BR +$BBOLD d) $EBOLD \( z^5 = -32j \) +$BR \(z=\)\{ans_rule(80)\} END_TEXT diff --git a/Contrib/Rochester-SigPrep/M1_ComplexNumbers/M1_Q7.pg b/Contrib/Rochester-SigPrep/M1_ComplexNumbers/M1_Q7.pg index ece584f3ac..c45951d91a 100644 --- a/Contrib/Rochester-SigPrep/M1_ComplexNumbers/M1_Q7.pg +++ b/Contrib/Rochester-SigPrep/M1_ComplexNumbers/M1_Q7.pg @@ -16,7 +16,7 @@ loadMacros( "MathObjects.pl", "PGcourse.pl", # Customization file for the course "parserFunction.pl", -"AnswerFormatHelp.pl", + "answerHints.pl", ) ; #sub i (); #make i act like the imaginary unit. @@ -47,12 +47,12 @@ $vi_pow2 = non_zero_random(4,96,4); BEGIN_TEXT $BBOLD Basic algebra with imaginary numbers $EBOLD $PAR -Perform the indicated computation in each part to obtain the final answer as a complex number in Cartesian representation: +Perform the indicated computation in each part to obtain the final answer as a complex number in Cartesian representation: $PAR $BBOLD a) $EBOLD \( $k + $l \) = \{ans_rule(20)\} $PAR $BBOLD b) $EBOLD \( $a $b \) = \{ans_rule(20)\} -$PAR +$PAR $BBOLD c) $EBOLD \( (j^{3} ) $d \) = \{ans_rule(20)\} $PAR $BBOLD d) $EBOLD \( $e (1+j)^{2} \) = \{ans_rule(20)\} @@ -90,15 +90,15 @@ ANS(($e*$f)->cmp()); ANS(($g*$h)->cmp()); ANS(($i*$j)->cmp()); -ENDDOCUMENT() ; +ENDDOCUMENT() ; ################################################## my $XML_INFORMATION = <<'END_OF_XML_TRAILER_INFO'; Webwork Team MTH163 - Differential equations - frac&#123;dy&#125;&#123;dt&#125; - y = a exp(t) + B exp(k t) + Differential equations + frac&#123;dy&#125;&#123;dt&#125; - y = a exp(t) + B exp(k t) setDEFOLinear/12.pg University of Rochester diff --git a/Contrib/Rochester-SigPrep/M1_ComplexNumbers/M1_Q8.pg b/Contrib/Rochester-SigPrep/M1_ComplexNumbers/M1_Q8.pg index 4107310f0c..6316c13acf 100644 --- a/Contrib/Rochester-SigPrep/M1_ComplexNumbers/M1_Q8.pg +++ b/Contrib/Rochester-SigPrep/M1_ComplexNumbers/M1_Q8.pg @@ -16,7 +16,7 @@ loadMacros( "MathObjects.pl", "PGcourse.pl", # Customization file for the course "parserFunction.pl", -"AnswerFormatHelp.pl", + "answerHints.pl", ) ; #sub i (); #make i act like the imaginary unit. @@ -58,30 +58,30 @@ $BBOLD Complex conjugate and division of complex numbers $EBOLD $PAR $BBOLD Note: $EBOLD The operator \( ^{*} \) represents the conjugate of a number, i.e., \( (a + b j)^{*} \) = \( a - b j \) (where \( a\) and \( b \) are real-valued) $PAR -Compute the following in Cartesian format: +Compute the following in Cartesian format: $PAR $BBOLD a) $EBOLD \( ($a)^{*} \) = \{ans_rule(20)\} $PAR $BBOLD b) $EBOLD \( ($b)^{*} \) = \{ans_rule(20)\} $PAR $BBOLD c) $EBOLD \( $c^{*} \) = \{ans_rule(20)\} -$PAR +$PAR $BBOLD d) $EBOLD \( $d^{*} \) = \{ans_rule(20)\} -$PAR +$PAR $BBOLD e) $EBOLD \( $e^{*} \) = \{ans_rule(20)\} -$PAR +$PAR $BBOLD f) $EBOLD \( $f1 $f1^{*} \) = \{ans_rule(20)\} -$PAR +$PAR $BBOLD g) $EBOLD \( $g1 $g1^{*} \) = \{ans_rule(20)\} -$PAR +$PAR $BBOLD h) $EBOLD \( \frac{1}{$h1} \) = \{ans_rule(20)\} + \{ans_rule(20)\}j $PAR $BBOLD i) $EBOLD \( \frac{$i1}{$i2} \) = \{ans_rule(20)\} -$PAR +$PAR $BBOLD j) $EBOLD \( [\frac{$ja1}{$ja2} + \frac{$jb1}{$jb2}]\frac{$jc1}{$jc2} \) = \{ans_rule(20)\} $PAR $BBOLD k) $EBOLD \( [(\frac{1}{2} + \frac{j}{2})^{10}] [(\frac{$kb1}{$kb2})^{2}] (\frac{$kc1}{$kc2})^{*} \) = \{ans_rule(20)\} -$PAR +$PAR END_TEXT @@ -114,15 +114,15 @@ ANS(($i)->cmp()); ANS(($j)->cmp()); ANS(($k)->cmp()); -ENDDOCUMENT() ; +ENDDOCUMENT() ; ################################################## my $XML_INFORMATION = <<'END_OF_XML_TRAILER_INFO'; Webwork Team MTH163 - Differential equations - frac&#123;dy&#125;&#123;dt&#125; - y = a exp(t) + B exp(k t) + Differential equations + frac&#123;dy&#125;&#123;dt&#125; - y = a exp(t) + B exp(k t) setDEFOLinear/12.pg University of Rochester diff --git a/Contrib/Rochester-SigPrep/M1_ComplexNumbers/M1_Q9.pg b/Contrib/Rochester-SigPrep/M1_ComplexNumbers/M1_Q9.pg index b2e9eec256..03f6b60a19 100644 --- a/Contrib/Rochester-SigPrep/M1_ComplexNumbers/M1_Q9.pg +++ b/Contrib/Rochester-SigPrep/M1_ComplexNumbers/M1_Q9.pg @@ -16,7 +16,7 @@ loadMacros( "MathObjects.pl", "PGcourse.pl", # Customization file for the course "parserFunction.pl", -"AnswerFormatHelp.pl", + ) ; #sub i (); #make i act like the imaginary unit. # TEXT(beginproblem()) ; @@ -89,30 +89,30 @@ $t6 = non_zero_random(-8,10,1); BEGIN_TEXT $BBOLD End of complex numbers module test $EBOLD $PAR -Compute the following in Cartesian format: +Compute the following in Cartesian format: $PAR $BBOLD a) $EBOLD \( {\Large $a + $b + ($cc ) $c} \) = \{ans_rule(20)\} $PAR $BBOLD b) $EBOLD \( {\Large 5 \sqrt 2 e^{\frac{3 \pi}{4} j } + (4 \sqrt -2 ) $mag3 e^{\frac{\pi}{4} j } } \) = \{ans_rule(20)\} $PAR $BBOLD c) $EBOLD \( {\Large $g $h^{*} - [$i $j]^{*} } \) = \{ans_rule(20)\} -$PAR +$PAR $BBOLD d) $EBOLD \( {\Large (1+j)^{2} (1-j)^{3} - $m1^{2} } \) = \{ans_rule(20)\} -$PAR +$PAR $BBOLD e) $EBOLD \( {\Large \frac{$n1}{$n2} } \) = \{ans_rule(20)\} -$PAR +$PAR $BBOLD f) $EBOLD \( {\Large [\frac{$oa1}{$oa2} + \frac{$ob1}{$ob2}]\frac{$oc1}{$oc2} } \) = \{ans_rule(20)\} -$PAR +$PAR $BBOLD g) $EBOLD\( {\Large ( j^{$vii_pow1} + j^{$vii_pow2} )^{2}( j^{$vii_pow3} + j^{$vii_pow4})^{3} } \) = \{ans_rule(20)\} -$PAR +$PAR $BBOLD h) $EBOLD\( {\Large \frac{\sqrt 128 e^{ $viii_pow1 \pi j} }{8 e^{ $viii_pow2 \pi j} } } \) = \{ans_rule(20)\} $PAR $BBOLD i) $EBOLD \( {\Large \frac{ (\sqrt 6 e^{ \frac{3 \pi}{16} j} )^{4} }{ (2 e^{ \frac{\pi}{12} j} )^{3} } } \) = \{ans_rule(20)\} -$PAR +$PAR $BBOLD j) $EBOLD \( {\Large \frac{(\sqrt 32-\sqrt 8)\angle $alpha1^{\circ} - 4\angle $alpha2^{\circ}}{\sqrt 2 \angle $alpha3^{\circ}} } \) = \{ans_rule(20)\} $PAR $BBOLD k) $EBOLD With \( {\Large z^{$s} } \) being a real number, how many possible unique values does \(z\) have? \{ans_rule(20)\} -$PAR +$PAR $BBOLD l) $EBOLD At what angle (in degrees) are the roots of \( {\Large z^{$s} } \) separated from each other on the imaginary plane? \{ans_rule(20)\} $PAR $BBOLD m) $EBOLD What is the internal angle (in degrees) of the convex polygon when you connect all the points representing the roots of the equation @@ -138,15 +138,15 @@ ANS(($s)->cmp()); ANS((360/$s)->cmp()); ANS((180-(360/$t))->cmp()); -ENDDOCUMENT() ; +ENDDOCUMENT() ; ################################################## my $XML_INFORMATION = <<'END_OF_XML_TRAILER_INFO'; Webwork Team MTH163 - Differential equations - frac&#123;dy&#125;&#123;dt&#125; - y = a exp(t) + B exp(k t) + Differential equations + frac&#123;dy&#125;&#123;dt&#125; - y = a exp(t) + B exp(k t) setDEFOLinear/12.pg University of Rochester diff --git a/Contrib/Rochester-SigPrep/M2_TrigonometricIdentities/M2_Q1.pg b/Contrib/Rochester-SigPrep/M2_TrigonometricIdentities/M2_Q1.pg index 45f832189d..9ca46da543 100644 --- a/Contrib/Rochester-SigPrep/M2_TrigonometricIdentities/M2_Q1.pg +++ b/Contrib/Rochester-SigPrep/M2_TrigonometricIdentities/M2_Q1.pg @@ -13,7 +13,7 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); # modified to use j for i = sqrt(-1) # $complexJ =1; # 0 => i, 1 => j # $I = ($complexJ)? 'j': 'i'; @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -74,11 +74,11 @@ $BBOLD Basic trigonometric identities $EBOLD $PAR Please enter appropriate coefficients into the bars provided so that the following trigonometric equalities hold: $PAR -$BBOLD Note: $EBOLD You should know the following identities +$BBOLD Note: $EBOLD You should know the following identities $PAR $BBOLD Hint: Plotting the \( cos(t), sin(t) \) on the unit circle helps to answer following questions $EBOLD -$PAR -$BBOLD Note: If you would like to check out how to enter formulas please see: \{ AnswerFormatHelp("formulas") \} $EBOLD +$PAR +$BBOLD Note: If you would like to check out how to enter formulas please see: \{ helpLink("formulas") \} $EBOLD $PAR $BBOLD a) $EBOLD \( {\Large $f1 } =\) \{ ans_rule(5)\} \( {\Large $sin } \) \( + \) \{ ans_rule(5)\} \( {\Large $cos }\) diff --git a/Contrib/Rochester-SigPrep/M2_TrigonometricIdentities/M2_Q2.pg b/Contrib/Rochester-SigPrep/M2_TrigonometricIdentities/M2_Q2.pg index 417be6108e..174339c140 100644 --- a/Contrib/Rochester-SigPrep/M2_TrigonometricIdentities/M2_Q2.pg +++ b/Contrib/Rochester-SigPrep/M2_TrigonometricIdentities/M2_Q2.pg @@ -15,7 +15,7 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); # modified to use j for i = sqrt(-1) # $complexJ =1; # 0 => i, 1 => j # $I = ($complexJ)? 'j': 'i'; @@ -23,7 +23,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -85,9 +85,9 @@ $BBOLD Basic trigonometric identities $EBOLD $PAR Please enter appropriate coefficients into the bars provided so that the following trigonometric equalities hold: $PAR -$BBOLD Note: $EBOLD You should know the following identities +$BBOLD Note: $EBOLD You should know the following identities $PAR -$BBOLD Hint: Using unit circle and considering the location of points \( ( \sin(\theta), \cos(\theta) ) \) for appropriately chosen values of \(\theta\) should help you to answer following questions $EBOLD +$BBOLD Hint: Using unit circle and considering the location of points \( ( \sin(\theta), \cos(\theta) ) \) for appropriately chosen values of \(\theta\) should help you to answer following questions $EBOLD $PAR $BBOLD a) $EBOLD \( {\Large $f3 } =\) \{ ans_rule(5)\} \( {\Large $sin } \) \( + \) \{ ans_rule(5)\} \( {\Large $cos }\) diff --git a/Contrib/Rochester-SigPrep/M2_TrigonometricIdentities/M2_Q3.pg b/Contrib/Rochester-SigPrep/M2_TrigonometricIdentities/M2_Q3.pg index e94d2e054a..bb67e7e45d 100644 --- a/Contrib/Rochester-SigPrep/M2_TrigonometricIdentities/M2_Q3.pg +++ b/Contrib/Rochester-SigPrep/M2_TrigonometricIdentities/M2_Q3.pg @@ -13,7 +13,7 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); # modified to use j for i = sqrt(-1) # $complexJ =1; # 0 => i, 1 => j # $I = ($complexJ)? 'j': 'i'; @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -82,9 +82,9 @@ $BBOLD Basic trigonometric identities $EBOLD $PAR Please enter appropriate coefficients into the bars provided so that the following trigonometric equalities hold:: $PAR -$BBOLD Note: $EBOLD You should know the following identities +$BBOLD Note: $EBOLD You should know the following identities $PAR -$BBOLD Hint: Using unit circle and considering the location of points \( ( \sin(\theta), \cos(\theta) ) \) for appropriately chosen values of \(\theta\) should help you to answer following questions $EBOLD +$BBOLD Hint: Using unit circle and considering the location of points \( ( \sin(\theta), \cos(\theta) ) \) for appropriately chosen values of \(\theta\) should help you to answer following questions $EBOLD $PAR $BBOLD a) $EBOLD \( {\Large $f7 } =\) \{ ans_rule(5)\} \( {\Large $sin } \) \( + \) \{ ans_rule(5)\} \( {\Large $cos }\) diff --git a/Contrib/Rochester-SigPrep/M2_TrigonometricIdentities/M2_Q4.pg b/Contrib/Rochester-SigPrep/M2_TrigonometricIdentities/M2_Q4.pg index c5f006db5d..4decaed948 100644 --- a/Contrib/Rochester-SigPrep/M2_TrigonometricIdentities/M2_Q4.pg +++ b/Contrib/Rochester-SigPrep/M2_TrigonometricIdentities/M2_Q4.pg @@ -13,7 +13,7 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); # modified to use j for i = sqrt(-1) # $complexJ =1; # 0 => i, 1 => j # $I = ($complexJ)? 'j': 'i'; @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -71,7 +71,7 @@ $BBOLD Basic trigonometric identities $EBOLD $PAR Please enter the equivalent of the following trigonometric expressions: $PAR -$BBOLD Note: $EBOLD You should know the following identities +$BBOLD Note: $EBOLD You should know the following identities $PAR $BBOLD Hint: $EBOLD Using unit circle helps to answer following questions $PAR diff --git a/Contrib/Rochester-SigPrep/M2_TrigonometricIdentities/M2_Q5.pg b/Contrib/Rochester-SigPrep/M2_TrigonometricIdentities/M2_Q5.pg index 76034dbdcd..f38c742f03 100644 --- a/Contrib/Rochester-SigPrep/M2_TrigonometricIdentities/M2_Q5.pg +++ b/Contrib/Rochester-SigPrep/M2_TrigonometricIdentities/M2_Q5.pg @@ -13,7 +13,7 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); # modified to use j for i = sqrt(-1) # $complexJ =1; # 0 => i, 1 => j # $I = ($complexJ)? 'j': 'i'; @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -84,10 +84,10 @@ Please enter appropriate trigonometric functions into the boxes provided so that $PAR Note: You don't have to memorize the following expressions. However, you are expected to be comfortable with using them $PAR -$BBOLD Hint: The answers can be readily figured out using Euler's formula $EBOLD +$BBOLD Hint: The answers can be readily figured out using Euler's formula $EBOLD $PAR -$BBOLD Sum of angles $EBOLD +$BBOLD Sum of angles $EBOLD $PAR $BBOLD a) $EBOLD \( {\Large $f15 } =\) \{ ans_rule(10)\} \( {\Large $cos } \) \( + \) \{ ans_rule(10)\} \( {\Large $sin }\) $PAR diff --git a/Contrib/Rochester-SigPrep/M3_Differentiation/M3_Q1.pg b/Contrib/Rochester-SigPrep/M3_Differentiation/M3_Q1.pg index 6dbe8c8b6f..a91fbd2650 100644 --- a/Contrib/Rochester-SigPrep/M3_Differentiation/M3_Q1.pg +++ b/Contrib/Rochester-SigPrep/M3_Differentiation/M3_Q1.pg @@ -14,7 +14,7 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); # modified to use j for i = sqrt(-1) # $complexJ =1; # 0 => i, 1 => j # $I = ($complexJ)? 'j': 'i'; @@ -22,7 +22,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -78,8 +78,8 @@ Please compute the derivative for each of the functions given below: $PAR -$BBOLD Note: If you would like to check out how to enter formulas please see: \{ AnswerFormatHelp("formulas") \} $EBOLD -$PAR +$BBOLD Note: If you would like to check out how to enter formulas please see: \{ helpLink("formulas") \} $EBOLD +$PAR $BBOLD a) $EBOLD\( f_1(w) \) = \( {\Large $f1 } \) $PAR \( \frac{d f_1( w)}{d w } =\) \{ ans_rule(40)\} diff --git a/Contrib/Rochester-SigPrep/M3_Differentiation/M3_Q2.pg b/Contrib/Rochester-SigPrep/M3_Differentiation/M3_Q2.pg index ff667f4166..1b93f4c917 100644 --- a/Contrib/Rochester-SigPrep/M3_Differentiation/M3_Q2.pg +++ b/Contrib/Rochester-SigPrep/M3_Differentiation/M3_Q2.pg @@ -13,7 +13,7 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); # modified to use j for i = sqrt(-1) # $complexJ =1; # 0 => i, 1 => j # $I = ($complexJ)? 'j': 'i'; @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -82,11 +82,11 @@ $PAR \( \frac{d f_2( w)}{d w } =\) \{ ans_rule(40)\} $PAR -$BBOLD c) $EBOLD \( f_3(w) \) = \( {\Large $f3 } \) +$BBOLD c) $EBOLD \( f_3(w) \) = \( {\Large $f3 } \) $PAR \( \frac{d f_3( w)}{d w } =\) \{ ans_rule(40)\} -$PAR +$PAR Click \{ htmlLink("https://www.youtube.com/watch?v=TDHI-aieyfk", "here", "TARGET='_blank'") \} to watch derivatives of basic trigonometric and exponential functions video. diff --git a/Contrib/Rochester-SigPrep/M3_Differentiation/M3_Q3.pg b/Contrib/Rochester-SigPrep/M3_Differentiation/M3_Q3.pg index eb5fa50a0e..347a95b866 100644 --- a/Contrib/Rochester-SigPrep/M3_Differentiation/M3_Q3.pg +++ b/Contrib/Rochester-SigPrep/M3_Differentiation/M3_Q3.pg @@ -13,7 +13,7 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); # modified to use j for i = sqrt(-1) # $complexJ =1; # 0 => i, 1 => j # $I = ($complexJ)? 'j': 'i'; @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -65,7 +65,7 @@ $g = non_zero_random(-8,8,1); $f2 = Formula("($e * w + $g)^{3} ")->reduce; $df2 = $f2->D('w'); -$h = non_zero_random(-8,8,1); +$h = non_zero_random(-8,8,1); $f3 = Formula("(e^{j*$h*w}) ")->reduce; $df3 = $f3->D('w'); @@ -87,7 +87,7 @@ $f6 = Formula("(e^{j*sin($m*w) - cos($n*w^{$o} + $p)}) ")->reduce; $df6 = $f6->D('w'); $La1 = -random(1,9,1); # -$Lb1= random(1,6,1); # +$Lb1= random(1,6,1); # $Lc1 = non_zero_random(-6,6,1); # constant multiplying complex exp. $Ld1= non_zero_random(0,6,1); # constant multiplying complex exp. $Lf2 = Formula("($Lc1* j *w +$Ld1)/((j*w)**2 + $La1*j*w + $Lb1) ")->reduce; diff --git a/Contrib/Rochester-SigPrep/M4_Series/M4_Q1.pg b/Contrib/Rochester-SigPrep/M4_Series/M4_Q1.pg index c2932e389f..7e0800c600 100644 --- a/Contrib/Rochester-SigPrep/M4_Series/M4_Q1.pg +++ b/Contrib/Rochester-SigPrep/M4_Series/M4_Q1.pg @@ -19,7 +19,7 @@ loadMacros( "PGunion.pl", "PGcourse.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + ); ##################################################################### @@ -53,12 +53,12 @@ BEGIN_TEXT $BBOLD Computation of series sums (analytic) $EBOLD $PAR Please enter the analytic closed-form expressions for the following series sums: -$PAR -$BBOLD Note: If you would like to check out how to enter formulas please see: \{ AnswerFormatHelp("formulas") \} $EBOLD +$PAR +$BBOLD Note: If you would like to check out how to enter formulas please see: \{ helpLink("formulas") \} $EBOLD $PAR $BBOLD a) $EBOLD \(\displaystyle \sum_{k=1}^{N}k \) = \{ans_rule(20)\} $PAR $BBOLD b) $EBOLD \(\displaystyle \sum_{k=0}^{N-1}r^{k} \) = \{ans_rule(20)\} $PAR -$BBOLD c) $EBOLD \(\displaystyle \sum_{k=0}^{\infty}r^{k} \), where \( |r| < 1\) = \{ans_rule(20)\} $PAR +$BBOLD c) $EBOLD \(\displaystyle \sum_{k=0}^{\infty}r^{k} \), where \( |r| < 1\) = \{ans_rule(20)\} $PAR END_TEXT @@ -77,9 +77,9 @@ END_HINT ##################################################################### ANS(($ans1)->cmp()); -#ANS(($ans1)->cmp()->withPostFilter(AnswerHints( +#ANS(($ans1)->cmp()->withPostFilter(AnswerHints( # 1 => "HAHAHA you are wrong!!! Watch this: ", -# Compute("N*(N+1)/2")->reduce => "Wow! Einstein", +# Compute("N*(N+1)/2")->reduce => "Wow! Einstein", #))); ANS(($ans2)->cmp()); ANS(($ans3)->cmp()); diff --git a/Contrib/Rochester-SigPrep/M5_DifferentialEquations/M5_Q1.pg b/Contrib/Rochester-SigPrep/M5_DifferentialEquations/M5_Q1.pg index f4d20e1408..47b71a7a13 100644 --- a/Contrib/Rochester-SigPrep/M5_DifferentialEquations/M5_Q1.pg +++ b/Contrib/Rochester-SigPrep/M5_DifferentialEquations/M5_Q1.pg @@ -11,14 +11,14 @@ ## Level('') ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "PGchoicemacros.pl", "PGcourse.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + ); # Print problem number and point value (weight) for the problem @@ -34,9 +34,9 @@ $showPartialCorrectAnswers = 0; # Make a new checkbox multiple choice $cmc = new_checkbox_multiple_choice(); $cmc -> qa ( -"Check all that apply to the differential equation \(\frac{dy(t)}{dt}+\sin^2(t)y(t)=\cos^2(t)y(t)\)", -"linear", -"homogeneous", +"Check all that apply to the differential equation \(\frac{dy(t)}{dt}+\sin^2(t)y(t)=\cos^2(t)y(t)\)", +"linear", +"homogeneous", "first order", "Ordinary differential equation", ); @@ -60,7 +60,7 @@ $cmc -> makeLast( BEGIN_TEXT $BBOLD Classification of differential equations $EBOLD $PAR -$BBOLD Note: If you would like to check out how to enter formulas please see: \{ AnswerFormatHelp("formulas") \} $EBOLD +$BBOLD Note: If you would like to check out how to enter formulas please see: \{ helpLink("formulas") \} $EBOLD $PAR @@ -83,6 +83,6 @@ ANS(checkbox_cmp($cmc->correct_ans)); -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/Contrib/Rochester-SigPrep/M5_DifferentialEquations/M5_Q5.pg b/Contrib/Rochester-SigPrep/M5_DifferentialEquations/M5_Q5.pg index 505ed9ffd2..4c7e599d49 100644 --- a/Contrib/Rochester-SigPrep/M5_DifferentialEquations/M5_Q5.pg +++ b/Contrib/Rochester-SigPrep/M5_DifferentialEquations/M5_Q5.pg @@ -12,12 +12,12 @@ ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -76,7 +76,7 @@ For part-II click \{ htmlLink("https://www.youtube.com/watch?v=4qgLz0TF8-M","her $PAR For part-III click \{ htmlLink("https://www.youtube.com/watch?v=2NRBn6ZLmDc&t=7s","here", "TARGET='_blank'") \} $PAR -\{ image( "RC_final.png", width=>150, height=>150, +\{ image( "RC_final.png", width=>150, height=>150, tex_size=>700, extra_html_tags=>'alt="Graph of a function."' ) \} $PAR @@ -102,7 +102,7 @@ ANS( $f3-> cmp()); # default tolerance is .01 or one percent. -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/Contrib/Rochester-SigPrep/M5_DifferentialEquations/M5_Q6.pg b/Contrib/Rochester-SigPrep/M5_DifferentialEquations/M5_Q6.pg index 7626e676c0..3eda8ff4c3 100644 --- a/Contrib/Rochester-SigPrep/M5_DifferentialEquations/M5_Q6.pg +++ b/Contrib/Rochester-SigPrep/M5_DifferentialEquations/M5_Q6.pg @@ -12,12 +12,12 @@ ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -76,7 +76,7 @@ For the video click \{ htmlLink("https://www.youtube.com/watch?v=_W3p2euSH5Q", " $PAR $PAR -\{ image( "RL_new20.png", width=>150, height=>150, +\{ image( "RL_new20.png", width=>150, height=>150, tex_size=>700, extra_html_tags=>'alt="Graph of a function."' ) \} $PAR @@ -102,6 +102,6 @@ ANS( $f3-> cmp()); # default tolerance is .01 or one percent. -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/Contrib/Rochester-SigPrep/M5_DifferentialEquations/M5_Q7.pg b/Contrib/Rochester-SigPrep/M5_DifferentialEquations/M5_Q7.pg index 4249ac42c3..131191f205 100644 --- a/Contrib/Rochester-SigPrep/M5_DifferentialEquations/M5_Q7.pg +++ b/Contrib/Rochester-SigPrep/M5_DifferentialEquations/M5_Q7.pg @@ -12,12 +12,12 @@ ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -84,7 +84,7 @@ $PAR For part-V click \{ htmlLink("https://www.youtube.com/watch?v=51UHJnjUOSs&t=1s","here", "TARGET='_blank'") \} $PAR -\{ image( "LC_final.png", width=>150, height=>150, +\{ image( "LC_final.png", width=>150, height=>150, tex_size=>700, extra_html_tags=>'alt="Graph of a function."' ) \} $PAR @@ -108,5 +108,5 @@ ANS( $f3-> cmp()); # default tolerance is .01 or one percent. -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/Contrib/Rochester-SigPrep/M5_DifferentialEquations/M5_Q8.pg b/Contrib/Rochester-SigPrep/M5_DifferentialEquations/M5_Q8.pg index 9a5fea724f..b2e8eb6569 100644 --- a/Contrib/Rochester-SigPrep/M5_DifferentialEquations/M5_Q8.pg +++ b/Contrib/Rochester-SigPrep/M5_DifferentialEquations/M5_Q8.pg @@ -12,12 +12,12 @@ ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -70,9 +70,9 @@ $f3 = Formula(" d^2I(t)/(dt^2) + R/LdI(t)/(dt) + 1/(LC)I(t) "); BEGIN_TEXT $BBOLD Differential equation for R-L-C circuit $EBOLD $PAR -Based on the videos you have watched you should be able to answer this question without watching another video. +Based on the videos you have watched you should be able to answer this question without watching another video. $PAR -\{ image( "RLC_final.png", width=>150, height=>150, +\{ image( "RLC_final.png", width=>150, height=>150, tex_size=>700, extra_html_tags=>'alt="Graph of a function."' ) \} $PAR @@ -97,7 +97,7 @@ ANS( $f3-> cmp()); # default tolerance is .01 or one percent. -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/Contrib/Rochester-SigPrep/M6_Integration/M6_Q1.pg b/Contrib/Rochester-SigPrep/M6_Integration/M6_Q1.pg index d9d68a503e..4bd2b6f3f6 100644 --- a/Contrib/Rochester-SigPrep/M6_Integration/M6_Q1.pg +++ b/Contrib/Rochester-SigPrep/M6_Integration/M6_Q1.pg @@ -19,7 +19,7 @@ loadMacros( "PGcourse.pl", "PGcomplexmacros.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + ); ################################### @@ -51,8 +51,8 @@ $PAR Calculate the following indefinite integrals: $PAR -$BBOLD Note: If you would like to check out how to enter formulas please see: \{ AnswerFormatHelp("formulas") \} $EBOLD -$PAR +$BBOLD Note: If you would like to check out how to enter formulas please see: \{ helpLink("formulas") \} $EBOLD +$PAR $BBOLD a) $EBOLD \( \displaystyle\int \, dt \) = \{ans_rule(40)\} \( + c\) $PAR diff --git a/Contrib/Rochester-SigPrep/M6_Integration/M6_Q7.pg b/Contrib/Rochester-SigPrep/M6_Integration/M6_Q7.pg index e980395ce2..710519e365 100644 --- a/Contrib/Rochester-SigPrep/M6_Integration/M6_Q7.pg +++ b/Contrib/Rochester-SigPrep/M6_Integration/M6_Q7.pg @@ -18,7 +18,7 @@ loadMacros( #"PGauxiliaryFunctions.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", "answerHints.pl" ); @@ -57,7 +57,7 @@ $liml4 = random(-8,-1,1); $limu4 = -$liml4; BEGIN_TEXT -$BBOLD Definite Integrals of Basic Functions $EBOLD +$BBOLD Definite Integrals of Basic Functions $EBOLD $PAR Calculate the following definite integrals $PAR @@ -90,7 +90,7 @@ $ans2 = (($c**2)/(2*$cc+1))*($limu2**(2*$cc+1) - $liml2**(2*$cc+1)) ((2*$d*$c)/($cc + 1))*($limu2**($cc+1)-$liml2**($cc+1)); #$ans2 = "(($c^2)/(2*$cc+1))*($limu2^(2*$cc+1) - $liml2^(2*$cc+1)) -#+ ($d^2)*($limu2-$liml2) + +#+ ($d^2)*($limu2-$liml2) + #((2*$d*$c)/($cc + 1))*($limu2^($cc+1)-$liml2^($cc+1))"; #$ans2 = "($c^2/(2*$cc+1))*($limu2^(2*$cc+1)) + ($d^2)*$limu2 + (2*$d*$c/($cc #+ 1))*($limu2)^($cc+1) - ($c^2/(2*$cc+1))*($liml2^(2*$cc+1)) - ($d^2)*$liml2 #- (2*$d*$c/($cc + 1))*($liml2)^($cc+1)"; diff --git a/Contrib/Rochester-SigPrep/M8_SignalManipulation/M8_Q5.pg b/Contrib/Rochester-SigPrep/M8_SignalManipulation/M8_Q5.pg index 198e686901..707e6f8dea 100644 --- a/Contrib/Rochester-SigPrep/M8_SignalManipulation/M8_Q5.pg +++ b/Contrib/Rochester-SigPrep/M8_SignalManipulation/M8_Q5.pg @@ -15,7 +15,7 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); # modified to use j for i = sqrt(-1) # $complexJ =1; # 0 => i, 1 => j # $I = ($complexJ)? 'j': 'i'; @@ -23,7 +23,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", diff --git a/Contrib/Rochester/LinearAlgebra/JordanForm2_jfonly_v2.pg b/Contrib/Rochester/LinearAlgebra/JordanForm2_jfonly_v2.pg index aaf55fcf9a..c128a92a80 100644 --- a/Contrib/Rochester/LinearAlgebra/JordanForm2_jfonly_v2.pg +++ b/Contrib/Rochester/LinearAlgebra/JordanForm2_jfonly_v2.pg @@ -13,11 +13,11 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); $showPartialCorrectAnswers = 1; -TEXT(beginproblem()); +TEXT(beginproblem()); Context("Matrix"); diff --git a/Contrib/SFU/SEE110/Assignment_3/A3Q4.pg b/Contrib/SFU/SEE110/Assignment_3/A3Q4.pg index aa98e44c46..8d42fb4531 100644 --- a/Contrib/SFU/SEE110/Assignment_3/A3Q4.pg +++ b/Contrib/SFU/SEE110/Assignment_3/A3Q4.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Find generation, costs, and lcoe from a solar panel array +# Find generation, costs, and lcoe from a solar panel array # ENDDESCRIPTION ## DBsubject(Sustainable Energy Engineering) @@ -12,11 +12,11 @@ ## Resources() # This work is licensed under -# Creative Commons Attribution 4.0 International +# Creative Commons Attribution 4.0 International # CC-BY-4.0 (https://creativecommons.org/licenses/by/4.0/) ########################################## -# Initialization +# Initialization ########################################## DOCUMENT(); @@ -27,7 +27,7 @@ loadMacros( "PGML.pl", "PGcourse.pl", "niceTables.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", "scaffold.pl" ); @@ -38,7 +38,7 @@ Context("Numeric"); Context()->flags->set(tolerance => .02); ########################################## -# Problem Setup +# Problem Setup ########################################## $lifespan = random(15,25,1); @@ -81,7 +81,7 @@ $lcoe = sprintf("%0.2f",($CRF*$installCost+$operationCost)/($energyYearlykWh/100 $DOLLARSYMBOL = '\$'; ########################################## -# Problem Statement +# Problem Statement ########################################## Scaffold::Begin( @@ -89,8 +89,8 @@ Scaffold::Begin( BEGIN_PGML -Tim installs solar panels on his roof in an effort to make his home more -sustainable. He calls a solar panel installation company and they give him +Tim installs solar panels on his roof in an effort to make his home more +sustainable. He calls a solar panel installation company and they give him the following quote: END_PGML @@ -111,7 +111,7 @@ DataTable( ['Lifespan', '\($lifespan\)', 'Years'], - ], + ], caption => 'Quote from Solar Company', ); \} @@ -119,20 +119,20 @@ $PAR END_TEXT ########################################## -# Problem One +# Problem One ########################################## Section::Begin("Part 1: Energy Calculation", is_open => "always",); BEGIN_PGML -Tim first wants to get a better understanding of how the system will perform. -He knows that solar generation varies throughout the year as daily sunlight -hours change. He looks at the average number of sunny hours for each season -from the previous year, and compiles the table below. +Tim first wants to get a better understanding of how the system will perform. +He knows that solar generation varies throughout the year as daily sunlight +hours change. He looks at the average number of sunny hours for each season +from the previous year, and compiles the table below. -Find the energy generated for each season if Tim installs the system quoted. -Assume that during sunlight hours the panel operates at max capacity, and +Find the energy generated for each season if Tim installs the system quoted. +Assume that during sunlight hours the panel operates at max capacity, and during non-sunny hours the panel does not generate electricity. END_PGML @@ -165,7 +165,7 @@ DataTable( '\($hoursTotal\)', ans_rule(6), ans_rule(6)] - ], + ], caption => 'Energy Generation per season', ); @@ -186,79 +186,79 @@ ANS(num_cmp($energyWinterkWh, reltol=>2), BEGIN_PGML_SOLUTION -[``[$capacity]\text{kW} \cdot -[$hoursWinter]\text{hours} = +[``[$capacity]\text{kW} \cdot +[$hoursWinter]\text{hours} = [$energyWinterkWh]\text{ kWh in the Winter}``] -[``[$energyWinterkWh]\text{kWh} \cdot -\frac{\text{3600 sec}}{\text{1 hr}} \cdot -\frac{\text{1 MJ}}{\text{1000 kJ}} = +[``[$energyWinterkWh]\text{kWh} \cdot +\frac{\text{3600 sec}}{\text{1 hr}} \cdot +\frac{\text{1 MJ}}{\text{1000 kJ}} = [$energyWinterMJ]\text{ MJ in the Winter}``] ------------------------------------ -[``[$capacity]\text{kW} \cdot -[$hoursSpring]\text{hours} = +[``[$capacity]\text{kW} \cdot +[$hoursSpring]\text{hours} = [$energySpringkWh]\text{ kWh in the Spring}``] -[``[$energySpringkWh]\text{kWh} \cdot -\frac{\text{3600 sec}}{\text{1 hr}} \cdot -\frac{\text{1 MJ}}{\text{1000 kJ}} = +[``[$energySpringkWh]\text{kWh} \cdot +\frac{\text{3600 sec}}{\text{1 hr}} \cdot +\frac{\text{1 MJ}}{\text{1000 kJ}} = [$energySpringMJ]\text{ MJ in the Spring}``] ------------------------------------ -[``[$capacity]\text{kW} \cdot -[$hoursSummer]\text{hours} = +[``[$capacity]\text{kW} \cdot +[$hoursSummer]\text{hours} = [$energySummerkWh]\text{ kWh in the Summer}``] -[``[$energySummerkWh]\text{kWh} \cdot -\frac{\text{3600 sec}}{\text{1 hr}} \cdot -\frac{\text{1 MJ}}{\text{1000 kJ}} = +[``[$energySummerkWh]\text{kWh} \cdot +\frac{\text{3600 sec}}{\text{1 hr}} \cdot +\frac{\text{1 MJ}}{\text{1000 kJ}} = [$energySummerMJ]\text{ MJ in the Summer}``] ------------------------------------ -[``[$capacity]\text{kW} \cdot -[$hoursFall]\text{hours} = +[``[$capacity]\text{kW} \cdot +[$hoursFall]\text{hours} = [$energyFallkWh]\text{ kWh in the Fall}``] -[``[$energyFallkWh]\text{kWh} \cdot -\frac{\text{3600 sec}}{\text{1 hr}} \cdot -\frac{\text{1 MJ}}{\text{1000 kJ}} = +[``[$energyFallkWh]\text{kWh} \cdot +\frac{\text{3600 sec}}{\text{1 hr}} \cdot +\frac{\text{1 MJ}}{\text{1000 kJ}} = [$energyFallMJ]\text{ MJ in the Fall}``] ------------------------------------ -[``[$capacity]\text{kW} \cdot -[$hoursTotal]\text{hours} = +[``[$capacity]\text{kW} \cdot +[$hoursTotal]\text{hours} = [$energyYearlykWh]\text{ kWh Total}``] -[``[$energyYearlykWh]\text{kWh} \cdot -\frac{\text{3600 sec}}{\text{1 hr}} \cdot -\frac{\text{1 MJ}}{\text{1000 kJ}} = +[``[$energyYearlykWh]\text{kWh} \cdot +\frac{\text{3600 sec}}{\text{1 hr}} \cdot +\frac{\text{1 MJ}}{\text{1000 kJ}} = [$energyYearlyMJ]\text{ MJ Total}``] END_PGML_SOLUTION Section::End(); ########################################## -# Problem Two +# Problem Two ########################################## Section::Begin("Part 2: Capacity Factor", can_open => "when_previous_correct",); BEGIN_PGML -Curious about how this compares to the theoretical yearly electricity -generation, Tim calculates the yearly max possible electricity generation +Curious about how this compares to the theoretical yearly electricity +generation, Tim calculates the yearly max possible electricity generation from the solar panels. [__________]{$theoryGenMWh}[`\text{MWh}`] [__________]{$theoryGenGJ}[`\text{GJ}`] -What is the yearly capacity factor of the solar panel? +What is the yearly capacity factor of the solar panel? [__________]{$capFactor} % @@ -266,44 +266,44 @@ END_PGML BEGIN_PGML_SOLUTION -[``[$capacity]\text{kW} \cdot -\frac{\text{8760 hrs}}{\text{year}} \cdot -\frac{\text{1 MWh}}{\text{1000 kWh}} = +[``[$capacity]\text{kW} \cdot +\frac{\text{8760 hrs}}{\text{year}} \cdot +\frac{\text{1 MWh}}{\text{1000 kWh}} = [$theoryGenMWh]\text{ MWh} ``] -[``[$theoryGenMWh]\text{ MWh} \cdot -\frac{\text{3600 sec}}{\text{1 hr}} \cdot -\frac{\text{1 GJ}}{\text{1000 MJ}} = +[``[$theoryGenMWh]\text{ MWh} \cdot +\frac{\text{3600 sec}}{\text{1 hr}} \cdot +\frac{\text{1 GJ}}{\text{1000 MJ}} = [$theoryGenGJ]\text{ GJ} ``] -[``\frac{\text{Actual Generation}}{\text{Theoretical Generation}} = -\frac{[$energyYearlykWh]\text{ kWh}}{[$theoryGenMWh]\text{ MWh} \cdot -\frac{\text{1000 kWh}}{\text{1 MWh}}} = +[``\frac{\text{Actual Generation}}{\text{Theoretical Generation}} = +\frac{[$energyYearlykWh]\text{ kWh}}{[$theoryGenMWh]\text{ MWh} \cdot +\frac{\text{1000 kWh}}{\text{1 MWh}}} = [$capFactor]% ``] END_PGML_SOLUTION Section::End(); ########################################## -# Problem Three +# Problem Three ########################################## Section::Begin("Part 3: Cost Savings", can_open => "when_previous_correct",); BEGIN_PGML -Tim next wants to understand how long it will take him to repay his inital -investment. Looking at his most recent electricity bill, he is charged at a -rate of [$electricityCost][`\frac{\text{cents}}{\text{kWh}}`]. Tim assumes -this cost of electricity never changes, and that he can always use all the +Tim next wants to understand how long it will take him to repay his inital +investment. Looking at his most recent electricity bill, he is charged at a +rate of [$electricityCost][`\frac{\text{cents}}{\text{kWh}}`]. Tim assumes +this cost of electricity never changes, and that he can always use all the electricity he generates from the solar panel. How much does he save during one year of operation? *$* [__________]{$savingsYear} -If the number of sunlight hours is the same every year, how long does it take -Tim to recoup the *capital cost* of the solar panels based *only* on annual +If the number of sunlight hours is the same every year, how long does it take +Tim to recoup the *capital cost* of the solar panels based *only* on annual electricity savings? [__________]{$paybackTime} *years* @@ -312,28 +312,28 @@ END_PGML BEGIN_PGML_SOLUTION -[``[$energyYearlykWh]\text{ kWh} \cdot -\frac{[$electricityCost]\text{ cents}}{\text{kWh}} \cdot -\frac{[$DOLLARSYMBOL]\text{1}}{\text{100 cents}} = +[``[$energyYearlykWh]\text{ kWh} \cdot +\frac{[$electricityCost]\text{ cents}}{\text{kWh}} \cdot +\frac{[$DOLLARSYMBOL]\text{1}}{\text{100 cents}} = [$DOLLARSYMBOL][$savingsYear]``] [``\frac{[$DOLLARSYMBOL][$installCost]\text{ CAPEX}} -{[$DOLLARSYMBOL][$savingsYear]\text{ saved per year}} = +{[$DOLLARSYMBOL][$savingsYear]\text{ saved per year}} = [$paybackTime]\text{ years}``] END_PGML_SOLUTION Section::End(); ########################################## -# Problem Four +# Problem Four ########################################## Section::Begin("Part 4: Levelized Cost of Electricity", can_open => "when_previous_correct",); BEGIN_PGML -Finally, if Tim assumes a discount rate of [$discountRate][$PERCENT] and that -he does not pay taxes on the project, what is the levelized cost of +Finally, if Tim assumes a discount rate of [$discountRate][$PERCENT] and that +he does not pay taxes on the project, what is the levelized cost of electricity? [__________]{$lcoe}[`\frac{[$DOLLARSYMBOL]}{\text{MWh}}`] @@ -342,21 +342,21 @@ END_PGML BEGIN_PGML_SOLUTION -[``\text{LCOE} = +[``\text{LCOE} = \frac{\text{CRF}\times\text{Capital Cost} + -\text{Operation Cost}}{\text{Energy Produced}} + -\text{ Fuel Cost } + +\text{Operation Cost}}{\text{Energy Produced}} + +\text{ Fuel Cost } + \text{ Taxes}``] -[``\text{CRF } = +[``\text{CRF } = \frac{[$discountRateDecimal]([$discountRateDecimal]+1)^{[$lifespan]}} -{([$discountRateDecimal]+1)^{[$lifespan]}-1} = +{([$discountRateDecimal]+1)^{[$lifespan]}-1} = [$CRF]``] -[``\text{LCOE } = -\frac{[$CRF]\cdot[$DOLLARSYMBOL][$installCost] + -[$DOLLARSYMBOL][$operationCost]}{[$energyYearlykWh]\text{kWh} \cdot -\frac{\text{1 MWh}}{\text{1000 kWh}}} = +[``\text{LCOE } = +\frac{[$CRF]\cdot[$DOLLARSYMBOL][$installCost] + +[$DOLLARSYMBOL][$operationCost]}{[$energyYearlykWh]\text{kWh} \cdot +\frac{\text{1 MWh}}{\text{1000 kWh}}} = [$lcoe]\frac{[$DOLLARSYMBOL]}{\text{MWh}}``] END_PGML_SOLUTION diff --git a/Contrib/SLU/excelcalculus/ch1/sec1/ch1.sec1.q1-6.pg b/Contrib/SLU/excelcalculus/ch1/sec1/ch1.sec1.q1-6.pg index a368a553c7..9d6b4f2a9c 100644 --- a/Contrib/SLU/excelcalculus/ch1/sec1/ch1.sec1.q1-6.pg +++ b/Contrib/SLU/excelcalculus/ch1/sec1/ch1.sec1.q1-6.pg @@ -22,7 +22,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + ); TEXT(beginproblem()); @@ -49,7 +49,7 @@ BEGIN_TEXT Given two points, \(($x1,$y1)\) and \(($x2,$y2)\), in the \((q,p)\) plane and a value \(q_0=$q0\): $BR -a. Find the slope of the line determined by the points: +a. Find the slope of the line determined by the points: \{ ans_rule(20) \} $BR b. Give the equation of the line determined by the points: \(p=\) @@ -91,4 +91,4 @@ Context()->normalStrings; COMMENT('MathObject version.'); -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/Contrib/SLU/excelcalculus/ch1/sec1/ch1.sec1.q12.pg b/Contrib/SLU/excelcalculus/ch1/sec1/ch1.sec1.q12.pg index 62daa8853d..6731a81725 100644 --- a/Contrib/SLU/excelcalculus/ch1/sec1/ch1.sec1.q12.pg +++ b/Contrib/SLU/excelcalculus/ch1/sec1/ch1.sec1.q12.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGessaymacros.pl", "parserPopUp.pl", ); @@ -42,10 +42,10 @@ $answer1 = Compute("$x1"); $answer3 = Compute("$x1"); $popup1 = PopUp ( - ["?", "The line is vertical and q is never equal to q0.", -"We have not been given enough information to solve the problem.", -"The designated value of q occurs several times.", -"The line is horizontal and q is never equal to q0.", + ["?", "The line is vertical and q is never equal to q0.", +"We have not been given enough information to solve the problem.", +"The designated value of q occurs several times.", +"The line is horizontal and q is never equal to q0.", ], "The line is vertical and q is never equal to q0.", ); @@ -96,4 +96,4 @@ Context()->normalStrings; COMMENT('MathObject version.'); -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/SLU/excelcalculus/ch1/sec1/ch1.sec1.q13and18.pg b/Contrib/SLU/excelcalculus/ch1/sec1/ch1.sec1.q13and18.pg index c85f476c8a..bccf8e770a 100644 --- a/Contrib/SLU/excelcalculus/ch1/sec1/ch1.sec1.q13and18.pg +++ b/Contrib/SLU/excelcalculus/ch1/sec1/ch1.sec1.q13and18.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserSolutionFor.pl", ); @@ -80,13 +80,13 @@ Give the q-intercept or, if there is no intercept, say none: q= \{ ans_rule(20) \} $BR $BR -c. Give two points that are on the line but not on the axes: +c. Give two points that are on the line but not on the axes: $BR (q,p)=\{ ans_rule(20) \} $BR (q,p)=\{ ans_rule(20) \} $BR -\{ AnswerFormatHelp("points") \} +\{ helpLink("points") \} END_TEXT Context()->normalStrings; @@ -109,11 +109,11 @@ $BR b. To get the \(p\)-intercept we set \(q=0\), so that \($x(p)=$z\), and we get \(p=$answer21\) To get the \(q\)-intercept we set \(p=0\), so that \($y(p)=$z\), and we get \(q=$answer22\) $BR $BR -c. We can pick any two values for \(q\) (except 0 and $answer22 because those are intercepts), so arbitrarily pick some values: say \(q=$q1\) and \(q=$q2\). If \(q=$q1\), then \($x*p+($y*$q1)=$z\), and hence \(p=$q1sol\) so the point would be \((q,p)=($q1,$q1sol)\). If \(q=$q2\), then \($x*p+($y*$q2)=$z\), and hence \(p=$q2sol\) so the point would be \((q,p)=($q2,$q2sol)\). +c. We can pick any two values for \(q\) (except 0 and $answer22 because those are intercepts), so arbitrarily pick some values: say \(q=$q1\) and \(q=$q2\). If \(q=$q1\), then \($x*p+($y*$q1)=$z\), and hence \(p=$q1sol\) so the point would be \((q,p)=($q1,$q1sol)\). If \(q=$q2\), then \($x*p+($y*$q2)=$z\), and hence \(p=$q2sol\) so the point would be \((q,p)=($q2,$q2sol)\). END_SOLUTION Context()->normalStrings; COMMENT('MathObject version.'); -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/SLU/excelcalculus/ch1/sec1/ch1.sec1.q14.pg b/Contrib/SLU/excelcalculus/ch1/sec1/ch1.sec1.q14.pg index 0ab290db48..3591e198db 100644 --- a/Contrib/SLU/excelcalculus/ch1/sec1/ch1.sec1.q14.pg +++ b/Contrib/SLU/excelcalculus/ch1/sec1/ch1.sec1.q14.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserSolutionFor.pl", ); @@ -84,13 +84,13 @@ Give the q-intercept or, if there is no intercept, say none: q= \{ ans_rule(20) \} $BR $BR -c. Give two points that are on the line but not on the axes: +c. Give two points that are on the line but not on the axes: $BR (q,p)=\{ ans_rule(20) \} $BR (q,p)=\{ ans_rule(20) \} $BR -\{ AnswerFormatHelp("points") \} +\{ helpLink("points") \} END_TEXT Context()->normalStrings; @@ -113,7 +113,7 @@ $BR b. To get the \(p\)-intercept we set \(q=0\), so that \($x(p)=$z\), and we get \(p=$answer21\) To get the \(q\)-intercept we set \(p=0\), so that \($y(p)=$z\), and we get \(q=$answer22\) $BR $BR -c. We can pick any two values for \(q\) (except 0 and $answer22 because those are intercepts), so arbitrarily pick some values: say \(q=$q1\) and \(q=$q2\). If \(q=$q1\), then \($x*p+($y*$q1)=$z\), and hence \(p=$q1sol\) so the point would be \((q,p)=($q1,$q1sol)\). If \(q=$q2\), then \($x*p+($y*$q2)=$z\), and hence \(p=$q2sol\) so the point would be \((q,p)=($q2,$q2sol)\). +c. We can pick any two values for \(q\) (except 0 and $answer22 because those are intercepts), so arbitrarily pick some values: say \(q=$q1\) and \(q=$q2\). If \(q=$q1\), then \($x*p+($y*$q1)=$z\), and hence \(p=$q1sol\) so the point would be \((q,p)=($q1,$q1sol)\). If \(q=$q2\), then \($x*p+($y*$q2)=$z\), and hence \(p=$q2sol\) so the point would be \((q,p)=($q2,$q2sol)\). END_SOLUTION @@ -121,4 +121,4 @@ Context()->normalStrings; COMMENT('MathObject version.'); -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/SLU/excelcalculus/ch1/sec1/ch1.sec1.q15.pg b/Contrib/SLU/excelcalculus/ch1/sec1/ch1.sec1.q15.pg index 5e7fa57b95..10060e08a0 100644 --- a/Contrib/SLU/excelcalculus/ch1/sec1/ch1.sec1.q15.pg +++ b/Contrib/SLU/excelcalculus/ch1/sec1/ch1.sec1.q15.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserSolutionFor.pl", ); @@ -59,13 +59,13 @@ Give the p-intercept or, if there is no intercept, say none : p= \{ ans_rule(20) \} $BR $BR -c. Give two points that are on the line but not on the axes: +c. Give two points that are on the line but not on the axes: $BR (q,p)=\{ ans_rule(20) \} $BR (q,p)=\{ ans_rule(20) \} $BR -\{ AnswerFormatHelp("points") \} +\{ helpLink("points") \} END_TEXT Context()->normalStrings; @@ -95,4 +95,4 @@ Context()->normalStrings; COMMENT('MathObject version.'); -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/Contrib/SLU/excelcalculus/ch1/sec1/ch1.sec1.q16.pg b/Contrib/SLU/excelcalculus/ch1/sec1/ch1.sec1.q16.pg index e34bc0a8e4..469c88bdd4 100644 --- a/Contrib/SLU/excelcalculus/ch1/sec1/ch1.sec1.q16.pg +++ b/Contrib/SLU/excelcalculus/ch1/sec1/ch1.sec1.q16.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserSolutionFor.pl", ); @@ -57,13 +57,13 @@ Give the y-intercept or, if there is no intercept, say none : y= \{ ans_rule(20) \} $BR $BR -c. Give two points that are on the line but not on the axes: +c. Give two points that are on the line but not on the axes: $BR (x, y)=\{ ans_rule(20) \} $BR (x, y)=\{ ans_rule(20) \} $BR -\{ AnswerFormatHelp("points") \} +\{ helpLink("points") \} END_TEXT Context()->normalStrings; @@ -94,4 +94,4 @@ Context()->normalStrings; COMMENT('MathObject version.'); -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/SLU/excelcalculus/ch1/sec1/ch1.sec1.q17.pg b/Contrib/SLU/excelcalculus/ch1/sec1/ch1.sec1.q17.pg index d06180005d..36e6f19741 100644 --- a/Contrib/SLU/excelcalculus/ch1/sec1/ch1.sec1.q17.pg +++ b/Contrib/SLU/excelcalculus/ch1/sec1/ch1.sec1.q17.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserSolutionFor.pl", ); @@ -69,13 +69,13 @@ Give the q-intercept or, if there is no intercept, say none: q= \{ ans_rule(20) \} $BR $BR -c. Give two points that are on the line but not on the axes: +c. Give two points that are on the line but not on the axes: $BR (q,p)=\{ ans_rule(20) \} $BR (q,p)=\{ ans_rule(20) \} $BR -\{ AnswerFormatHelp("points") \} +\{ helpLink("points") \} END_TEXT @@ -108,4 +108,4 @@ Context()->normalStrings; COMMENT('MathObject version.'); -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/SLU/excelcalculus/ch1/sec1/ch1.sec1.q19.pg b/Contrib/SLU/excelcalculus/ch1/sec1/ch1.sec1.q19.pg index 8b5f7359ee..c398fae5e3 100644 --- a/Contrib/SLU/excelcalculus/ch1/sec1/ch1.sec1.q19.pg +++ b/Contrib/SLU/excelcalculus/ch1/sec1/ch1.sec1.q19.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + ); TEXT(beginproblem()); diff --git a/Contrib/SLU/excelcalculus/ch1/sec1/ch1.sec1.q20.pg b/Contrib/SLU/excelcalculus/ch1/sec1/ch1.sec1.q20.pg index 088ff25003..d2d3fd76e7 100644 --- a/Contrib/SLU/excelcalculus/ch1/sec1/ch1.sec1.q20.pg +++ b/Contrib/SLU/excelcalculus/ch1/sec1/ch1.sec1.q20.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + ); TEXT(beginproblem()); diff --git a/Contrib/SLU/excelcalculus/ch1/sec1/ch1.sec1.q7-11.pg b/Contrib/SLU/excelcalculus/ch1/sec1/ch1.sec1.q7-11.pg index e037d4f7c1..482f575b25 100644 --- a/Contrib/SLU/excelcalculus/ch1/sec1/ch1.sec1.q7-11.pg +++ b/Contrib/SLU/excelcalculus/ch1/sec1/ch1.sec1.q7-11.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + ); TEXT(beginproblem()); @@ -86,4 +86,4 @@ Context()->normalStrings; COMMENT('MathObject version.'); -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/SLU/excelcalculus/ch1/sec2/ch1.sec2.q1.pg b/Contrib/SLU/excelcalculus/ch1/sec2/ch1.sec2.q1.pg index 32fa928001..d56c7a6eb6 100644 --- a/Contrib/SLU/excelcalculus/ch1/sec2/ch1.sec2.q1.pg +++ b/Contrib/SLU/excelcalculus/ch1/sec2/ch1.sec2.q1.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGessaymacros.pl", "parserPopUp.pl", ); @@ -32,20 +32,20 @@ Context("Numeric"); Context()->texStrings; $mc1 = PopUp( -[ "?", -"Make a positive", -"Make a negative", -"Make b positive", -"Make b negative", +[ "?", +"Make a positive", +"Make a negative", +"Make b positive", +"Make b negative", "None of the above" ], "Make b positive" ); $mc2 = PopUp( -[ "?", -"Make a positive", -"Make a negative", -"Make b positive", -"Make b negative", +[ "?", +"Make a positive", +"Make a negative", +"Make b positive", +"Make b negative", "None of the above" ], "Make a negative" ); diff --git a/Contrib/SLU/excelcalculus/ch1/sec2/ch1.sec2.q11.pg b/Contrib/SLU/excelcalculus/ch1/sec2/ch1.sec2.q11.pg index 93729eaf85..5c462268fd 100644 --- a/Contrib/SLU/excelcalculus/ch1/sec2/ch1.sec2.q11.pg +++ b/Contrib/SLU/excelcalculus/ch1/sec2/ch1.sec2.q11.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGessaymacros.pl", ); diff --git a/Contrib/SLU/excelcalculus/ch1/sec2/ch1.sec2.q12.pg b/Contrib/SLU/excelcalculus/ch1/sec2/ch1.sec2.q12.pg index 08fc22165c..9b831ea07c 100644 --- a/Contrib/SLU/excelcalculus/ch1/sec2/ch1.sec2.q12.pg +++ b/Contrib/SLU/excelcalculus/ch1/sec2/ch1.sec2.q12.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGessaymacros.pl", ); diff --git a/Contrib/SLU/excelcalculus/ch1/sec2/ch1.sec2.q13.pg b/Contrib/SLU/excelcalculus/ch1/sec2/ch1.sec2.q13.pg index 358ab75956..92a80cc9b1 100644 --- a/Contrib/SLU/excelcalculus/ch1/sec2/ch1.sec2.q13.pg +++ b/Contrib/SLU/excelcalculus/ch1/sec2/ch1.sec2.q13.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGessaymacros.pl", ); diff --git a/Contrib/SLU/excelcalculus/ch1/sec2/ch1.sec2.q2.pg b/Contrib/SLU/excelcalculus/ch1/sec2/ch1.sec2.q2.pg index e0978a2d2c..a62ffe8f9d 100644 --- a/Contrib/SLU/excelcalculus/ch1/sec2/ch1.sec2.q2.pg +++ b/Contrib/SLU/excelcalculus/ch1/sec2/ch1.sec2.q2.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGessaymacros.pl", "parserPopUp.pl", ); @@ -33,24 +33,24 @@ Context("Numeric"); Context()->texStrings; $mc1 = PopUp( -[ "?", -"Make a positive", -"Make a negative", -"Make b positive", -"Make b negative", -"Make c positive", -"Make c negative", +[ "?", +"Make a positive", +"Make a negative", +"Make b positive", +"Make b negative", +"Make c positive", +"Make c negative", "None of the above" ], "Make a negative" ); $mc2 = PopUp( -[ "?", -"Make a positive", -"Make a negative", -"Make b^2-4ac positive", -"Make ab negative and 4ac>0 and less than b^2", -"Make b positive", -"Make c negative", +[ "?", +"Make a positive", +"Make a negative", +"Make b^2-4ac positive", +"Make ab negative and 4ac>0 and less than b^2", +"Make b positive", +"Make c negative", "None of the above" ], "Make ab negative and 4ac>0 and less than b^2" ); diff --git a/Contrib/SLU/excelcalculus/ch1/sec2/ch1.sec2.q3.pg b/Contrib/SLU/excelcalculus/ch1/sec2/ch1.sec2.q3.pg index 3f0820afc6..bdcdf4d989 100644 --- a/Contrib/SLU/excelcalculus/ch1/sec2/ch1.sec2.q3.pg +++ b/Contrib/SLU/excelcalculus/ch1/sec2/ch1.sec2.q3.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGessaymacros.pl", "parserPopUp.pl", ); diff --git a/Contrib/SLU/excelcalculus/ch1/sec2/ch1.sec2.q4.pg b/Contrib/SLU/excelcalculus/ch1/sec2/ch1.sec2.q4.pg index 448ec98a44..bea0eba788 100644 --- a/Contrib/SLU/excelcalculus/ch1/sec2/ch1.sec2.q4.pg +++ b/Contrib/SLU/excelcalculus/ch1/sec2/ch1.sec2.q4.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGessaymacros.pl", "parserPopUp.pl", ); diff --git a/Contrib/SLU/excelcalculus/ch1/sec2/ch1.sec2.q5.pg b/Contrib/SLU/excelcalculus/ch1/sec2/ch1.sec2.q5.pg index 3f8b248ed0..92567c6498 100644 --- a/Contrib/SLU/excelcalculus/ch1/sec2/ch1.sec2.q5.pg +++ b/Contrib/SLU/excelcalculus/ch1/sec2/ch1.sec2.q5.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGessaymacros.pl", "PGchoicemacros.pl", ); @@ -34,7 +34,7 @@ Context()->texStrings; $p=non_zero_random(0,100,1); $mc = new_multiple_choice(); $mc->qa( -"For an exponential model, \(f(x)=P*e^{rx}\), how do I get a graph with \(f(0)=$p\), that goes to zero as x gets large?", +"For an exponential model, \(f(x)=P*e^{rx}\), how do I get a graph with \(f(0)=$p\), that goes to zero as x gets large?", "Make P= $p and make r negative." ); $mc->extra( diff --git a/Contrib/SLU/excelcalculus/ch1/sec2/ch1.sec2.q6.pg b/Contrib/SLU/excelcalculus/ch1/sec2/ch1.sec2.q6.pg index b35a80ccbd..f1edb77a34 100644 --- a/Contrib/SLU/excelcalculus/ch1/sec2/ch1.sec2.q6.pg +++ b/Contrib/SLU/excelcalculus/ch1/sec2/ch1.sec2.q6.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGessaymacros.pl", ); @@ -51,10 +51,10 @@ Context()->texStrings; BEGIN_SOLUTION ${PAR}SOLUTION:${PAR} -For the limit to be \($x\), \(r\) should be negative, and \(b\) should be \($x\). +For the limit to be \($x\), \(r\) should be negative, and \(b\) should be \($x\). $BR $BR -For \(f(20)\) to additionally be at least \($y\), \(P*e^{20r}\) should be at least \(-1\). +For \(f(20)\) to additionally be at least \($y\), \(P*e^{20r}\) should be at least \(-1\). $BR This happens if \(P\) is positive, or if \(P\) is negative with \(|P|normalStrings; COMMENT('MathObject version.'); -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/SLU/excelcalculus/ch3/sec1/ch3.sec1.q11.pg b/Contrib/SLU/excelcalculus/ch3/sec1/ch3.sec1.q11.pg index 949ca957f8..0558ffcc33 100644 --- a/Contrib/SLU/excelcalculus/ch3/sec1/ch3.sec1.q11.pg +++ b/Contrib/SLU/excelcalculus/ch3/sec1/ch3.sec1.q11.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserPopUp.pl", "PGchoicemacros.pl", "PGgraphmacros.pl", @@ -71,8 +71,8 @@ $answerf = Compute("always positive"); $mc = new_checkbox_multiple_choice(); $mc -> qa ( -"Choose the graph below that looks the closest to the one you created.", -"4 $BR", +"Choose the graph below that looks the closest to the one you created.", +"4 $BR", ); $mc -> extra( @@ -105,13 +105,13 @@ $BR $BR a. Fill in the chart of the function and the marginal function as q goes from 0 to 30. $BR -\{ +\{ begintable(5) . row( "\(q = \)","10","11","12","13","14","15") . row( "\(Cost(q) = \)", ans_rule(5), ans_rule(5), ans_rule(5), ans_rule(5), ans_rule(5),ans_rule(5) ) . row( "\(Cost(q+1) = \)", ans_rule(5), ans_rule(5), ans_rule(5), ans_rule(5), ans_rule(5), ans_rule(5) ) . row( "\(MC(q+1) = \)", ans_rule(5), ans_rule(5), ans_rule(5), ans_rule(5), ans_rule(5), ans_rule(5) ) . -endtable(); +endtable(); \} $BR $BR @@ -120,9 +120,9 @@ $BR $BR \{ $mc -> print_q() \} $BR -1. \{image(insertGraph($gra), width=>100, height=>100, tex_size=>700)\} 2. -\{image(insertGraph($grb), width=>100, height=>100, tex_size=>700)\} 3. -\{image(insertGraph($grc), width=>100, height=>100, tex_size=>700)\} 4. +1. \{image(insertGraph($gra), width=>100, height=>100, tex_size=>700)\} 2. +\{image(insertGraph($grb), width=>100, height=>100, tex_size=>700)\} 3. +\{image(insertGraph($grc), width=>100, height=>100, tex_size=>700)\} 4. \{image(insertGraph($grd), width=>100, height=>100, tex_size=>700)\} \{ $mc -> print_a() \} @@ -169,19 +169,19 @@ Context()->texStrings; BEGIN_SOLUTION ${PAR}SOLUTION:${PAR} -a. Recall that +a. Recall that $BR \(MarginalCost(q+1)=Cost(q+1)-Cost(q)\) $BR $BR -The values in the cells should be -\{ +The values in the cells should be +\{ begintable(5) . row( "\(q \)","10","11","12","13","14","15") . row( "\(Cost(q) = \)", "$answer[10]", "$answer[11]", "$answer[12]", "$answer[13]", "$answer[14]", "$answer[15]" ) . row( "\(Cost(q+1) = \)", "$answer[11]", "$answer[12]", "$answer[13]", "$answer[14]", "$answer[15]", "$answer[16]" ) . row( "\(MC(q+1) = \)", "$newAnswer[10]", "$newAnswer[11]", "$newAnswer[12]", "$newAnswer[13]", "$newAnswer[14]", "$newAnswer[15]" ) . -endtable(); +endtable(); \} $BR $BR @@ -193,7 +193,7 @@ $BR c. The table and the graph indicate that the marginal function is a quadratic function. $BR $BR -d. $BCENTER +d. $BCENTER \(MCost(q)=$answerd\) $ECENTER $BR @@ -208,4 +208,4 @@ Context()->normalStrings; COMMENT('MathObject version.'); -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/SLU/excelcalculus/ch3/sec1/ch3.sec1.q12.pg b/Contrib/SLU/excelcalculus/ch3/sec1/ch3.sec1.q12.pg index acf6e0b56b..0507a4410e 100644 --- a/Contrib/SLU/excelcalculus/ch3/sec1/ch3.sec1.q12.pg +++ b/Contrib/SLU/excelcalculus/ch3/sec1/ch3.sec1.q12.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserPopUp.pl", "PGchoicemacros.pl", "PGgraphmacros.pl", @@ -71,8 +71,8 @@ $answerf = Compute("always negative"); $mc = new_checkbox_multiple_choice(); $mc -> qa ( -"Choose the graph below that looks the closest to the one you created.", -"4 $BR", +"Choose the graph below that looks the closest to the one you created.", +"4 $BR", ); $mc -> extra( @@ -103,13 +103,13 @@ $BR $BR a. Fill in the chart of the function and the marginal function as q goes from 0 to 30. $BR -\{ +\{ begintable(5) . row( "\(q = \)","10","11","12","13","14","15") . row( "\(Cost(q) = \)", ans_rule(5), ans_rule(5), ans_rule(5), ans_rule(5), ans_rule(5),ans_rule(5) ) . row( "\(Cost(q+1) = \)", ans_rule(5), ans_rule(5), ans_rule(5), ans_rule(5), ans_rule(5), ans_rule(5) ) . row( "\(MC(q+1) = \)", ans_rule(5), ans_rule(5), ans_rule(5), ans_rule(5), ans_rule(5), ans_rule(5) ) . -endtable(); +endtable(); \} $BR $BR @@ -118,9 +118,9 @@ $BR $BR \{ $mc -> print_q() \} $BR -1. \{image(insertGraph($gra), width=>100, height=>100, tex_size=>700)\} 2. -\{image(insertGraph($grb), width=>100, height=>100, tex_size=>700)\} 3. -\{image(insertGraph($grc), width=>100, height=>100, tex_size=>700)\} 4. +1. \{image(insertGraph($gra), width=>100, height=>100, tex_size=>700)\} 2. +\{image(insertGraph($grb), width=>100, height=>100, tex_size=>700)\} 3. +\{image(insertGraph($grc), width=>100, height=>100, tex_size=>700)\} 4. \{image(insertGraph($grd), width=>100, height=>100, tex_size=>700)\} \{ $mc -> print_a() \} @@ -168,19 +168,19 @@ Context()->texStrings; BEGIN_SOLUTION ${PAR}SOLUTION:${PAR} -a. Recall that +a. Recall that $BR \(MarginalCost(q+1)=Cost(q+1)-Cost(q)\) $BR $BR -The values in the cells should be -\{ +The values in the cells should be +\{ begintable(5) . row( "\(q \)","10","11","12","13","14","15") . row( "\(Cost(q) = \)", "$answer[10]", "$answer[11]", "$answer[12]", "$answer[13]", "$answer[14]", "$answer[15]" ) . row( "\(Cost(q+1) = \)", "$answer[11]", "$answer[12]", "$answer[13]", "$answer[14]", "$answer[15]", "$answer[16]" ) . row( "\(MC(q+1) = \)", "$newAnswer[10]", "$newAnswer[11]", "$newAnswer[12]", "$newAnswer[13]", "$newAnswer[14]", "$newAnswer[15]" ) . -endtable(); +endtable(); \} $BR $BR @@ -192,7 +192,7 @@ $BR c. The table and the graph indicate that the marginal function is an exponential function. $BR $BR -d. $BCENTER +d. $BCENTER \(MCost(q+1)=$answerd\) $ECENTER $BR @@ -208,4 +208,4 @@ Context()->normalStrings; COMMENT('MathObject version.'); -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/Contrib/SLU/excelcalculus/ch3/sec1/ch3.sec1.q2.pg b/Contrib/SLU/excelcalculus/ch3/sec1/ch3.sec1.q2.pg index 064a0ff1ea..8128b1c6f0 100644 --- a/Contrib/SLU/excelcalculus/ch3/sec1/ch3.sec1.q2.pg +++ b/Contrib/SLU/excelcalculus/ch3/sec1/ch3.sec1.q2.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + ); TEXT(beginproblem()); @@ -71,4 +71,4 @@ Context()->normalStrings; COMMENT('MathObject version.'); -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/SLU/excelcalculus/ch3/sec1/ch3.sec1.q3.pg b/Contrib/SLU/excelcalculus/ch3/sec1/ch3.sec1.q3.pg index 5c8f25a071..599921800d 100644 --- a/Contrib/SLU/excelcalculus/ch3/sec1/ch3.sec1.q3.pg +++ b/Contrib/SLU/excelcalculus/ch3/sec1/ch3.sec1.q3.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + ); TEXT(beginproblem()); @@ -70,4 +70,4 @@ Context()->normalStrings; COMMENT('MathObject version.'); -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/SLU/excelcalculus/ch3/sec1/ch3.sec1.q4.pg b/Contrib/SLU/excelcalculus/ch3/sec1/ch3.sec1.q4.pg index 7a6cc3948c..10bb62c647 100644 --- a/Contrib/SLU/excelcalculus/ch3/sec1/ch3.sec1.q4.pg +++ b/Contrib/SLU/excelcalculus/ch3/sec1/ch3.sec1.q4.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + ); TEXT(beginproblem()); @@ -71,4 +71,4 @@ Context()->normalStrings; COMMENT('MathObject version.'); -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/SLU/excelcalculus/ch3/sec1/ch3.sec1.q5.pg b/Contrib/SLU/excelcalculus/ch3/sec1/ch3.sec1.q5.pg index 8785ab6344..6cd5ca2fb0 100644 --- a/Contrib/SLU/excelcalculus/ch3/sec1/ch3.sec1.q5.pg +++ b/Contrib/SLU/excelcalculus/ch3/sec1/ch3.sec1.q5.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + ); TEXT(beginproblem()); @@ -35,7 +35,7 @@ $answer1 = Compute("0"); Context()->texStrings; BEGIN_TEXT -If \(cost(q)\) is a constant function what can you say about the marginal cost function? (Use algebra to find a formula for the marginal function.) +If \(cost(q)\) is a constant function what can you say about the marginal cost function? (Use algebra to find a formula for the marginal function.) $BR \(marginal cost(q)=\)\{ ans_rule(20) \} @@ -67,4 +67,4 @@ Context()->normalStrings; COMMENT('MathObject version.'); -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/SLU/excelcalculus/ch3/sec1/ch3.sec1.q6.pg b/Contrib/SLU/excelcalculus/ch3/sec1/ch3.sec1.q6.pg index a2705fc5ae..32de92d0eb 100644 --- a/Contrib/SLU/excelcalculus/ch3/sec1/ch3.sec1.q6.pg +++ b/Contrib/SLU/excelcalculus/ch3/sec1/ch3.sec1.q6.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + ); TEXT(beginproblem()); @@ -35,7 +35,7 @@ $answer1 = String('m'); Context()->texStrings; BEGIN_TEXT -If \(revenue(q)\) is a linear function with slope m, what can you say about the marginal revenue function? (Use algebra to find a formula for the marginal function. How much does \(revenue(q)\) increase when \(q\) increases by 1?) +If \(revenue(q)\) is a linear function with slope m, what can you say about the marginal revenue function? (Use algebra to find a formula for the marginal function. How much does \(revenue(q)\) increase when \(q\) increases by 1?) $BR \(marginal \ revenue(q+1)=\)\{ ans_rule(20) \} @@ -67,4 +67,4 @@ Context()->normalStrings; COMMENT('MathObject version.'); -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/SLU/excelcalculus/ch3/sec1/ch3.sec1.q7.pg b/Contrib/SLU/excelcalculus/ch3/sec1/ch3.sec1.q7.pg index 0c2965c630..d56f2a0006 100644 --- a/Contrib/SLU/excelcalculus/ch3/sec1/ch3.sec1.q7.pg +++ b/Contrib/SLU/excelcalculus/ch3/sec1/ch3.sec1.q7.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserPopUp.pl", "PGchoicemacros.pl", "PGgraphmacros.pl", @@ -68,8 +68,8 @@ $answer4 = String("ALWAYS POSITIVE"); $mc = new_checkbox_multiple_choice(); $mc -> qa ( -"Choose the graph below that looks the closest to the one you created.", -"1 $BR", +"Choose the graph below that looks the closest to the one you created.", +"1 $BR", ); $mc -> extra( @@ -99,13 +99,13 @@ $BR $BR a. Using excel, fill in a chart of the function and the marginal function as q goes from 0 to 30. Fill in the chart below with the numbers from the chart. $BR -\{ +\{ begintable(5) . row( "\(q \)","10","11","12","13","14","15") . row( "\(Cost(q) = \)", ans_rule(5), ans_rule(5), ans_rule(5), ans_rule(5), ans_rule(5),ans_rule(5) ) . row( "\(Cost(q+1) = \)", ans_rule(5), ans_rule(5), ans_rule(5), ans_rule(5), ans_rule(5), ans_rule(5) ) . row( "\(MC(q+1) = \)", ans_rule(5), ans_rule(5), ans_rule(5), ans_rule(5), ans_rule(5), ans_rule(5) ) . -endtable(); +endtable(); \} $BR $BR @@ -114,9 +114,9 @@ $BR $BR \{ $mc -> print_q() \} $BR -1. \{image(insertGraph($gra), width=>100, height=>100, tex_size=>700)\} 2. -\{image(insertGraph($grb), width=>100, height=>100, tex_size=>700)\} 3. -\{image(insertGraph($grc), width=>100, height=>100, tex_size=>700)\} 4. +1. \{image(insertGraph($gra), width=>100, height=>100, tex_size=>700)\} 2. +\{image(insertGraph($grb), width=>100, height=>100, tex_size=>700)\} 3. +\{image(insertGraph($grc), width=>100, height=>100, tex_size=>700)\} 4. \{image(insertGraph($grd), width=>100, height=>100, tex_size=>700)\} \{ $mc -> print_a() \} @@ -164,19 +164,19 @@ Context()->texStrings; BEGIN_SOLUTION ${PAR}SOLUTION:${PAR} -a. Recall that +a. Recall that $BR \(MarginalCost(q+1)=Cost(q+1)-Cost(q)\) $BR $BR -The values in the cells should be -\{ +The values in the cells should be +\{ begintable(5) . row( "\(q \)","10","11","12","13","14","15") . row( "\(Cost(q) = \)", "$answer[10]", "$answer[11]", "$answer[12]", "$answer[13]", "$answer[14]", "$answer[15]" ) . row( "\(Cost(q+1) = \)", "$answer[11]", "$answer[12]", "$answer[13]", "$answer[14]", "$answer[15]", "$answer[16]" ) . row( "\(MC(q+1) = \)", "$newAnswer[10]", "$newAnswer[11]", "$newAnswer[12]", "$newAnswer[13]", "$newAnswer[14]", "$newAnswer[15]" ) . -endtable(); +endtable(); \} $BR $BR @@ -188,7 +188,7 @@ $BR c. The table and the graph indicate that the marginal function is a constant (\($b\) to be precise) $BR $BR -d. $BCENTER +d. $BCENTER \(MCost(q)=$answer2\) $ECENTER $BR @@ -203,4 +203,4 @@ Context()->normalStrings; COMMENT('MathObject version.'); -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/Contrib/SLU/excelcalculus/ch3/sec1/ch3.sec1.q8.pg b/Contrib/SLU/excelcalculus/ch3/sec1/ch3.sec1.q8.pg index 7b79fd2338..418c991de7 100644 --- a/Contrib/SLU/excelcalculus/ch3/sec1/ch3.sec1.q8.pg +++ b/Contrib/SLU/excelcalculus/ch3/sec1/ch3.sec1.q8.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserPopUp.pl", "PGchoicemacros.pl", "PGgraphmacros.pl", @@ -66,8 +66,8 @@ $answer4 = String("always positive"); $mc = new_checkbox_multiple_choice(); $mc -> qa ( -"Choose the graph below that looks the closest to the one you created.", -"3 $BR", +"Choose the graph below that looks the closest to the one you created.", +"3 $BR", ); $mc -> extra( @@ -97,13 +97,13 @@ $BR $BR a. Fill in the chart of the function and the marginal function as q goes from 0 to 30. $BR -\{ +\{ begintable(5) . row( "\(q = \)","10","11","12","13","14","15") . row( "\(Cost(q) = \)", ans_rule(5), ans_rule(5), ans_rule(5), ans_rule(5), ans_rule(5),ans_rule(5) ) . row( "\(Cost(q+1) = \)", ans_rule(5), ans_rule(5), ans_rule(5), ans_rule(5), ans_rule(5), ans_rule(5) ) . row( "\(MC(q+1) = \)", ans_rule(5), ans_rule(5), ans_rule(5), ans_rule(5), ans_rule(5), ans_rule(5) ) . -endtable(); +endtable(); \} $BR $BR @@ -112,9 +112,9 @@ $BR $BR \{ $mc -> print_q() \} $BR -1. \{image(insertGraph($gra), width=>100, height=>100, tex_size=>700)\} 2. -\{image(insertGraph($grb), width=>100, height=>100, tex_size=>700)\} 3. -\{image(insertGraph($grc), width=>100, height=>100, tex_size=>700)\} 4. +1. \{image(insertGraph($gra), width=>100, height=>100, tex_size=>700)\} 2. +\{image(insertGraph($grb), width=>100, height=>100, tex_size=>700)\} 3. +\{image(insertGraph($grc), width=>100, height=>100, tex_size=>700)\} 4. \{image(insertGraph($grd), width=>100, height=>100, tex_size=>700)\} \{ $mc -> print_a() \} @@ -162,19 +162,19 @@ Context()->texStrings; BEGIN_SOLUTION ${PAR}SOLUTION:${PAR} -a. Recall that +a. Recall that $BR \(MarginalCost(q+1)=Cost(q+1)-Cost(q)\) $BR $BR -The values in the cells should be -\{ +The values in the cells should be +\{ begintable(5) . row( "\(q \)","10","11","12","13","14","15") . row( "\(Cost(q) = \)", "$answer[10]", "$answer[11]", "$answer[12]", "$answer[13]", "$answer[14]", "$answer[15]" ) . row( "\(Cost(q+1) = \)", "$answer[11]", "$answer[12]", "$answer[13]", "$answer[14]", "$answer[15]", "$answer[16]" ) . row( "\(MC(q+1) = \)", "$newAnswer[10]", "$newAnswer[11]", "$newAnswer[12]", "$newAnswer[13]", "$newAnswer[14]", "$newAnswer[15]" ) . -endtable(); +endtable(); \} $BR $BR @@ -186,7 +186,7 @@ $BR c. The table and the graph indicate that the marginal function is a constant (\($b\) to be precise) $BR $BR -d. $BCENTER +d. $BCENTER \(MCost(q+1)=$answer2\) $ECENTER $BR @@ -201,4 +201,4 @@ Context()->normalStrings; COMMENT('MathObject version.'); -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/SLU/excelcalculus/ch3/sec1/ch3.sec1.q9-10.pg b/Contrib/SLU/excelcalculus/ch3/sec1/ch3.sec1.q9-10.pg index 9f883008ab..d65ba41b94 100644 --- a/Contrib/SLU/excelcalculus/ch3/sec1/ch3.sec1.q9-10.pg +++ b/Contrib/SLU/excelcalculus/ch3/sec1/ch3.sec1.q9-10.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserPopUp.pl", "PGchoicemacros.pl", "PGgraphmacros.pl", @@ -68,16 +68,16 @@ if ($help<30) { $answere = Compute("(-$a-$b)/(2*$a)")->with(tolerance => 1.5, tolType => 'absolute'); $answerf = Compute("(-$a-$b)/(2*$a)")->with(tolerance => 1.5, tolType => 'absolute'); -} else { -$answere = String("always increasing"); -$answerf = String("always positive"); +} else { +$answere = String("always increasing"); +$answerf = String("always positive"); }; $mc = new_checkbox_multiple_choice(); $mc -> qa ( -"Choose the graph below that looks the closest to the one you created.", -"2 $BR", +"Choose the graph below that looks the closest to the one you created.", +"2 $BR", ); $mc -> extra( @@ -107,13 +107,13 @@ $BR $BR a. Fill in the chart of the function and the marginal function as q goes from 0 to 30. $BR -\{ +\{ begintable(5) . row( "\(q = \)","10","11","12","13","14","15") . row( "\(Cost(q) = \)", ans_rule(5), ans_rule(5), ans_rule(5), ans_rule(5), ans_rule(5),ans_rule(5) ) . row( "\(Cost(q+1) = \)", ans_rule(5), ans_rule(5), ans_rule(5), ans_rule(5), ans_rule(5), ans_rule(5) ) . row( "\(MC(q+1) = \)", ans_rule(5), ans_rule(5), ans_rule(5), ans_rule(5), ans_rule(5), ans_rule(5) ) . -endtable(); +endtable(); \} $BR $BR @@ -122,9 +122,9 @@ $BR $BR \{ $mc -> print_q() \} $BR -1. \{image(insertGraph($gra), width=>100, height=>100, tex_size=>700)\} 2. -\{image(insertGraph($grb), width=>100, height=>100, tex_size=>700)\} 3. -\{image(insertGraph($grc), width=>100, height=>100, tex_size=>700)\} 4. +1. \{image(insertGraph($gra), width=>100, height=>100, tex_size=>700)\} 2. +\{image(insertGraph($grb), width=>100, height=>100, tex_size=>700)\} 3. +\{image(insertGraph($grc), width=>100, height=>100, tex_size=>700)\} 4. \{image(insertGraph($grd), width=>100, height=>100, tex_size=>700)\} \{ $mc -> print_a() \} @@ -167,19 +167,19 @@ Context()->texStrings; BEGIN_SOLUTION ${PAR}SOLUTION:${PAR} -a. Recall that +a. Recall that $BR \(MarginalCost(q+1)=Cost(q+1)-Cost(q)\) $BR $BR -The values in the cells should be -\{ +The values in the cells should be +\{ begintable(5) . row( "\(q \)","10","11","12","13","14","15") . row( "\(Cost(q) = \)", "$answer[10]", "$answer[11]", "$answer[12]", "$answer[13]", "$answer[14]", "$answer[15]" ) . row( "\(Cost(q+1) = \)", "$answer[11]", "$answer[12]", "$answer[13]", "$answer[14]", "$answer[15]", "$answer[16]" ) . row( "\(MC(q+1) = \)", "$newAnswer[10]", "$newAnswer[11]", "$newAnswer[12]", "$newAnswer[13]", "$newAnswer[14]", "$newAnswer[15]" ) . -endtable(); +endtable(); \} $BR $BR @@ -191,7 +191,7 @@ $BR c. The table and the graph indicate that the marginal function is a line. $BR $BR -d. $BCENTER +d. $BCENTER \(MCost(q)=$answerd\) $ECENTER $BR @@ -201,4 +201,4 @@ Context()->normalStrings; COMMENT('MathObject version.'); -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/Contrib/SLU/excelcalculus/ch3/sec3/ch3.sec3.q1.pg b/Contrib/SLU/excelcalculus/ch3/sec3/ch3.sec3.q1.pg index 0b1e22b118..f5df570256 100644 --- a/Contrib/SLU/excelcalculus/ch3/sec3/ch3.sec3.q1.pg +++ b/Contrib/SLU/excelcalculus/ch3/sec3/ch3.sec3.q1.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserPopUp.pl", ); @@ -77,6 +77,6 @@ Context()->normalStrings; COMMENT('MathObject version.'); -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/Contrib/SLU/excelcalculus/ch3/sec3/ch3.sec3.q1and3.pg b/Contrib/SLU/excelcalculus/ch3/sec3/ch3.sec3.q1and3.pg index 8e53e5f0ea..0bf427e26f 100644 --- a/Contrib/SLU/excelcalculus/ch3/sec3/ch3.sec3.q1and3.pg +++ b/Contrib/SLU/excelcalculus/ch3/sec3/ch3.sec3.q1and3.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserPopUp.pl", ); @@ -65,7 +65,7 @@ Context()->texStrings; BEGIN_SOLUTION ${PAR}SOLUTION:${PAR} -$BR +$BR \(mf=f($x01)-f($x0)=$fx01-$fx=$mfx;\) $BR \(f(x)\approx f($x0)+mf*(x-$x0)\) @@ -81,6 +81,6 @@ Context()->normalStrings; COMMENT('MathObject version.'); -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/Contrib/SLU/excelcalculus/ch3/sec3/ch3.sec3.q2,.pg b/Contrib/SLU/excelcalculus/ch3/sec3/ch3.sec3.q2,.pg index 80e4b2407a..c2c8eaa121 100644 --- a/Contrib/SLU/excelcalculus/ch3/sec3/ch3.sec3.q2,.pg +++ b/Contrib/SLU/excelcalculus/ch3/sec3/ch3.sec3.q2,.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserPopUp.pl", ); @@ -77,4 +77,4 @@ Context()->normalStrings; COMMENT('MathObject version.'); -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/SLU/excelcalculus/ch3/sec3/ch3.sec3.q2.pg b/Contrib/SLU/excelcalculus/ch3/sec3/ch3.sec3.q2.pg index 7ed9b7488e..a738a9c5e8 100644 --- a/Contrib/SLU/excelcalculus/ch3/sec3/ch3.sec3.q2.pg +++ b/Contrib/SLU/excelcalculus/ch3/sec3/ch3.sec3.q2.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserPopUp.pl", ); @@ -77,4 +77,4 @@ Context()->normalStrings; COMMENT('MathObject version.'); -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/Contrib/SLU/excelcalculus/ch3/sec3/ch3.sec3.q4and5.pg b/Contrib/SLU/excelcalculus/ch3/sec3/ch3.sec3.q4and5.pg index d4db8fdffe..b7f1b7a65e 100644 --- a/Contrib/SLU/excelcalculus/ch3/sec3/ch3.sec3.q4and5.pg +++ b/Contrib/SLU/excelcalculus/ch3/sec3/ch3.sec3.q4and5.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserPopUp.pl", ); @@ -87,4 +87,4 @@ Context()->normalStrings; COMMENT('MathObject version.'); -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/Contrib/SLU/excelcalculus/ch3/sec3/ch3.sec3.q7.pg b/Contrib/SLU/excelcalculus/ch3/sec3/ch3.sec3.q7.pg index 12a9af65b8..683d5de6fe 100644 --- a/Contrib/SLU/excelcalculus/ch3/sec3/ch3.sec3.q7.pg +++ b/Contrib/SLU/excelcalculus/ch3/sec3/ch3.sec3.q7.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserPopUp.pl", ); @@ -83,7 +83,7 @@ ${PAR}SOLUTION:${PAR} a. \(g(x)\approx g($x0)+g'($x0)*(x-$x0)\) $BR -Note that \(g($x0)= \sqrt{$x0} = $gx0\) and +Note that \(g($x0)= \sqrt{$x0} = $gx0\) and $BR \(g'($x0) \approx \frac{g($x0+.001)-g($x0-.001)}{0.002} = $answera\) $BR @@ -108,4 +108,4 @@ Context()->normalStrings; COMMENT('MathObject version.'); -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Contrib/SLU/excelcalculus/ch5/sec3/ch5.sec3.q11.pg b/Contrib/SLU/excelcalculus/ch5/sec3/ch5.sec3.q11.pg index e59a7353eb..b839343619 100644 --- a/Contrib/SLU/excelcalculus/ch5/sec3/ch5.sec3.q11.pg +++ b/Contrib/SLU/excelcalculus/ch5/sec3/ch5.sec3.q11.pg @@ -19,7 +19,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGessaymacros.pl", ); diff --git a/Contrib/SLU/excelcalculus/ch5/sec3/ch5.sec3.q12.pg b/Contrib/SLU/excelcalculus/ch5/sec3/ch5.sec3.q12.pg index f2c4a8d249..a5f6f6c5da 100644 --- a/Contrib/SLU/excelcalculus/ch5/sec3/ch5.sec3.q12.pg +++ b/Contrib/SLU/excelcalculus/ch5/sec3/ch5.sec3.q12.pg @@ -19,7 +19,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGessaymacros.pl", ); diff --git a/Contrib/SUNYOneonta/Integers/Factors01.pg b/Contrib/SUNYOneonta/Integers/Factors01.pg index 89b0a38f11..3266ab3f0d 100644 --- a/Contrib/SUNYOneonta/Integers/Factors01.pg +++ b/Contrib/SUNYOneonta/Integers/Factors01.pg @@ -19,7 +19,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", "niceTables.pl", #"contextArbitraryString.pl", @@ -49,19 +49,19 @@ for($i = 2; $i < ($Num01/2); $i++) # After halfway point, only duplicates await { $tempA = List($i); $tempB = List(($Num01/$i)); - + if($tempB > $tempA) # Second value read should be greater than first value recorded { $PosFactors01 = $PosFactors01 + $tempA; $PosFactors01 = $PosFactors01 + $tempB; } - elsif($tempB == $tempA) # Root of Num01 was found, tempA^2 = Num01 + elsif($tempB == $tempA) # Root of Num01 was found, tempA^2 = Num01 { $PosFactors01 = $PosFactors01 + $tempA; } - + } # End of if statement for Num01 factors - + } # End of Num01 for Loop $tempA = List($Num01); $PosFactors01 = $PosFactors01 + $tempA; # Order of student answer doesn't matter, only that all right answers are used @@ -73,19 +73,19 @@ for($i = 2; $i < ($Num02/2); $i++) # After halfway point, only duplicates await { $tempA = List($i); $tempB = List(($Num02/$i)); - + if($tempB > $tempA) # Second value read should be greater than first value recorded { $PosFactors02 = $PosFactors02 + $tempA; $PosFactors02 = $PosFactors02 + $tempB; } - elsif($tempB == $tempA) # Root of Num01 was found, tempA^2 = Num01 + elsif($tempB == $tempA) # Root of Num01 was found, tempA^2 = Num01 { $PosFactors02 = $PosFactors02 + $tempA; } - + } # End of if statement for Num01 factors - + } # End of Num01 for Loop $tempA = List($Num02); $PosFactors02 = $PosFactors02 + $tempA; # Order of student answer doesn't matter, only that all right answers are used @@ -120,17 +120,17 @@ $PAR Consider the numbers $Num01 and $Num02. $BR When answering with multiple numbers, use a comma to separate each value. Ex. 1,2,3 -$BR +$BR $BR $BBOLD Part A: $EBOLD $BR List all of the positive factors of $Num01: \{ ans_rule(30) \} -$BR +$BR $BR $BBOLD Part B: $EBOLD $BR -List all of the positive factors of $Num02: \{ ans_rule(30) \} -$BR +List all of the positive factors of $Num02: \{ ans_rule(30) \} +$BR $BR @@ -139,7 +139,7 @@ $BR END_TEXT Context()->normalStrings; -#\{ AnswerFormatHelp("numbers") \} Use this in texStrings to allows students to see formulas +#\{ helpLink("numbers") \} Use this in texStrings to allows students to see formulas ############################ # Answer evaluation diff --git a/Contrib/SUNYOneonta/Integers/GCD01.pg b/Contrib/SUNYOneonta/Integers/GCD01.pg index 7ab2058f7e..a6acecc29d 100644 --- a/Contrib/SUNYOneonta/Integers/GCD01.pg +++ b/Contrib/SUNYOneonta/Integers/GCD01.pg @@ -19,7 +19,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", "niceTables.pl", #"contextArbitraryString.pl", @@ -49,19 +49,19 @@ for($i = 2; $i < ($Num01/2); $i++) # After halfway point, only duplicates await { $tempA = List($i); $tempB = List(($Num01/$i)); - + if($tempB > $tempA) # Second value read should be greater than first value recorded { $PosFactors01 = $PosFactors01 + $tempA; $PosFactors01 = $PosFactors01 + $tempB; } - elsif($tempB == $tempA) # Root of Num01 was found, tempA^2 = Num01 + elsif($tempB == $tempA) # Root of Num01 was found, tempA^2 = Num01 { $PosFactors01 = $PosFactors01 + $tempA; } - + } # End of if statement for Num01 factors - + } # End of Num01 for Loop $tempA = List($Num01); $PosFactors01 = $PosFactors01 + $tempA; # Order of student answer doesn't matter, only that all right answers are used @@ -73,19 +73,19 @@ for($i = 2; $i < ($Num02/2); $i++) # After halfway point, only duplicates await { $tempA = List($i); $tempB = List(($Num02/$i)); - + if($tempB > $tempA) # Second value read should be greater than first value recorded { $PosFactors02 = $PosFactors02 + $tempA; $PosFactors02 = $PosFactors02 + $tempB; } - elsif($tempB == $tempA) # Root of Num01 was found, tempA^2 = Num01 + elsif($tempB == $tempA) # Root of Num01 was found, tempA^2 = Num01 { $PosFactors02 = $PosFactors02 + $tempA; } - + } # End of if statement for Num01 factors - + } # End of Num01 for Loop $tempA = List($Num02); $PosFactors02 = $PosFactors02 + $tempA; # Order of student answer doesn't matter, only that all right answers are used @@ -120,45 +120,45 @@ $PAR Consider the numbers $Num01 and $Num02. $BR When answering with multiple numbers, use a comma to separate each value. Ex. 1,2,3 -$BR +$BR $BR $BBOLD Part A: $EBOLD $BR List all of the positive factors of $Num01: \{ ans_rule(30) \} -$BR +$BR $BR $BBOLD Part B: $EBOLD $BR -List all of the positive factors of $Num02: \{ ans_rule(30) \} -$BR +List all of the positive factors of $Num02: \{ ans_rule(30) \} +$BR $BR $BBOLD Part C: $EBOLD $BR -Find the greatest common divisor of $Num01 and $Num02: \{ ans_rule(4) \} -$BR +Find the greatest common divisor of $Num01 and $Num02: \{ ans_rule(4) \} +$BR $BR $BBOLD Part D: $EBOLD $BR -List the first 10 multiples of $Num01: \{ ans_rule(60) \} -$BR +List the first 10 multiples of $Num01: \{ ans_rule(60) \} +$BR $BR $BBOLD Part E: $EBOLD $BR -List the first 10 multiples of $Num02: \{ ans_rule(60) \} -$BR +List the first 10 multiples of $Num02: \{ ans_rule(60) \} +$BR $BR $BBOLD Part F: $EBOLD $BR Find the least common multiple of $Num01 and $Num02: \{ ans_rule(5) \} $BR $BR -$BBOLD Note: $EBOLD The list of multiples you found may not be sufficient to determine the LCM. +$BBOLD Note: $EBOLD The list of multiples you found may not be sufficient to determine the LCM. $BR You may need to compute additional multiples to complete the last part of the problem. $BR END_TEXT Context()->normalStrings; -#\{ AnswerFormatHelp("numbers") \} Use this in texStrings to allows students to see formulas +#\{ helpLink("numbers") \} Use this in texStrings to allows students to see formulas ############################ # Answer evaluation diff --git a/Contrib/SUNYOneonta/Integers/GCD01a.pg b/Contrib/SUNYOneonta/Integers/GCD01a.pg index 35bd8ea72c..f42c81f91d 100644 --- a/Contrib/SUNYOneonta/Integers/GCD01a.pg +++ b/Contrib/SUNYOneonta/Integers/GCD01a.pg @@ -20,7 +20,7 @@ loadMacros( "PGstandard.pl", "PGML.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "scaffold.pl", "PGcourse.pl", @@ -49,19 +49,19 @@ for($i = 2; $i < ($Num01/2); $i++) # After halfway point, only duplicates await { $tempA = List($i); $tempB = List(($Num01/$i)); - + if($tempB > $tempA) # Second value read should be greater than first value recorded { $PosFactors01 = $PosFactors01 + $tempA; $PosFactors01 = $PosFactors01 + $tempB; } - elsif($tempB == $tempA) # Root of Num01 was found, tempA^2 = Num01 + elsif($tempB == $tempA) # Root of Num01 was found, tempA^2 = Num01 { $PosFactors01 = $PosFactors01 + $tempA; } - + } # End of if statement for Num01 factors - + } # End of Num01 for Loop $tempA = List($Num01); $PosFactors01 = $PosFactors01 + $tempA; # Order of student answer doesn't matter, only that all right answers are used @@ -73,19 +73,19 @@ for($i = 2; $i < ($Num02/2); $i++) # After halfway point, only duplicates await { $tempA = List($i); $tempB = List(($Num02/$i)); - + if($tempB > $tempA) # Second value read should be greater than first value recorded { $PosFactors02 = $PosFactors02 + $tempA; $PosFactors02 = $PosFactors02 + $tempB; } - elsif($tempB == $tempA) # Root of Num01 was found, tempA^2 = Num01 + elsif($tempB == $tempA) # Root of Num01 was found, tempA^2 = Num01 { $PosFactors02 = $PosFactors02 + $tempA; } - + } # End of if statement for Num01 factors - + } # End of Num01 for Loop $tempA = List($Num02); $PosFactors02 = $PosFactors02 + $tempA; # Order of student answer doesn't matter, only that all right answers are used @@ -152,7 +152,7 @@ BEGIN_PGML List all of the positive factors of [$Num01]: [____________________________]{$PosFactors01} [@ $PAR @]* List all of the positive factors of [$Num02]: [____________________________]{$PosFactors02} -[@ $PAR @]* +[@ $PAR @]* END_PGML Section::End(); @@ -163,7 +163,7 @@ Section::Begin("Part 2: Greatest Common Divisor"); BEGIN_PGML [@ $PAR @]* Find the GCD of [$Num01] and [$Num02]. [______]{$GCD} -[@ $PAR @]* +[@ $PAR @]* END_PGML Section::End(); @@ -173,10 +173,10 @@ Section::Begin("Part 3: Multiples"); BEGIN_PGML [@ $PAR @]* - List the first 10 multiples of [$Num01]: [________________________________________________]{$Mult01} + List the first 10 multiples of [$Num01]: [________________________________________________]{$Mult01} [@ $PAR @]* List the first 10 multiples of [$Num02]: [________________________________________________]{$Mult02} -[@ $PAR @]* +[@ $PAR @]* END_PGML Section::End(); @@ -187,10 +187,10 @@ Section::Begin("Part 4: Least Common Multiple"); BEGIN_PGML [@ $PAR @]* Find the LCM of [$Num01] and [$Num02]. [______]{$LCM} -[@ $PAR @]* +[@ $PAR @]* END_PGML BEGIN_TEXT -$BBOLD Note: $EBOLD The list of multiples you found may not be sufficient to determine the LCM. +$BBOLD Note: $EBOLD The list of multiples you found may not be sufficient to determine the LCM. $BR You may need to compute additional multiples to complete the last part of the problem. $BR END_TEXT @@ -200,7 +200,7 @@ Section::End(); Scaffold::End(); Context()->normalStrings; -#\{ AnswerFormatHelp("numbers") \} Use this in texStrings to allows students to see formulas +#\{ helpLink("numbers") \} Use this in texStrings to allows students to see formulas ############################ # Answer evaluation diff --git a/Contrib/SUNYOneonta/Integers/GCD02.pg b/Contrib/SUNYOneonta/Integers/GCD02.pg index 5c4048213a..8055574470 100644 --- a/Contrib/SUNYOneonta/Integers/GCD02.pg +++ b/Contrib/SUNYOneonta/Integers/GCD02.pg @@ -19,7 +19,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", "niceTables.pl", #"contextArbitraryString.pl", @@ -48,19 +48,19 @@ for($i = 2; $i < ($Num01/2); $i++) # After halfway point, only duplicates await { $tempA = List($i); $tempB = List(($Num01/$i)); - + if($tempB > $tempA) # Second value read should be greater than first value recorded { $PosFactors01 = $PosFactors01 + $tempA; $PosFactors01 = $PosFactors01 + $tempB; } - elsif($tempB == $tempA) # Root of Num01 was found, tempA^2 = Num01 + elsif($tempB == $tempA) # Root of Num01 was found, tempA^2 = Num01 { $PosFactors01 = $PosFactors01 + $tempA; } - + } # End of if statement for Num01 factors - + } # End of Num01 for Loop $tempA = List($Num01); $PosFactors01 = $PosFactors01 + $tempA; # Order of student answer doesn't matter, only that all right answers are used @@ -72,19 +72,19 @@ for($i = 2; $i < ($Num02/2); $i++) # After halfway point, only duplicates await { $tempA = List($i); $tempB = List(($Num02/$i)); - + if($tempB > $tempA) # Second value read should be greater than first value recorded { $PosFactors02 = $PosFactors02 + $tempA; $PosFactors02 = $PosFactors02 + $tempB; } - elsif($tempB == $tempA) # Root of Num01 was found, tempA^2 = Num01 + elsif($tempB == $tempA) # Root of Num01 was found, tempA^2 = Num01 { $PosFactors02 = $PosFactors02 + $tempA; } - + } # End of if statement for Num01 factors - + } # End of Num01 for Loop $tempA = List($Num02); $PosFactors02 = $PosFactors02 + $tempA; # Order of student answer doesn't matter, only that all right answers are used @@ -119,45 +119,45 @@ $PAR Consider the numbers $Num01 and $Num02. $BR When answering with multiple numbers, use a comma to separate each value. Ex. 1,2,3 -$BR +$BR $BR $BBOLD Part A: $EBOLD $BR List all of the positive factors of $Num01: \{ ans_rule(30) \} -$BR +$BR $BR $BBOLD Part B: $EBOLD $BR -List all of the positive factors of $Num02: \{ ans_rule(30) \} -$BR +List all of the positive factors of $Num02: \{ ans_rule(30) \} +$BR $BR $BBOLD Part C: $EBOLD $BR -Find the greatest common divisor of $Num01 and $Num02: \{ ans_rule(4) \} -$BR +Find the greatest common divisor of $Num01 and $Num02: \{ ans_rule(4) \} +$BR $BR $BBOLD Part D: $EBOLD $BR -List the first 10 multiples of $Num01: \{ ans_rule(60) \} -$BR +List the first 10 multiples of $Num01: \{ ans_rule(60) \} +$BR $BR $BBOLD Part E: $EBOLD $BR -List the first 10 multiples of $Num02: \{ ans_rule(60) \} -$BR +List the first 10 multiples of $Num02: \{ ans_rule(60) \} +$BR $BR $BBOLD Part F: $EBOLD $BR Find the least common multiple of $Num01 and $Num02: \{ ans_rule(5) \} $BR $BR -$BBOLD Note: $EBOLD The list of multiples you found may not be sufficient to determine the LCM. +$BBOLD Note: $EBOLD The list of multiples you found may not be sufficient to determine the LCM. $BR You may need to compute additional multiples to complete the last part of the problem. $BR END_TEXT Context()->normalStrings; -#\{ AnswerFormatHelp("numbers") \} Use this in texStrings to allows students to see formulas +#\{ helpLink("numbers") \} Use this in texStrings to allows students to see formulas ############################ # Answer evaluation diff --git a/Contrib/SUNYOneonta/Integers/GCD02a.pg b/Contrib/SUNYOneonta/Integers/GCD02a.pg index 20e0784865..e30d0545af 100644 --- a/Contrib/SUNYOneonta/Integers/GCD02a.pg +++ b/Contrib/SUNYOneonta/Integers/GCD02a.pg @@ -19,7 +19,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "scaffold.pl", "PGcourse.pl", @@ -158,13 +158,13 @@ Section::Begin("Part 1: Prime Factorization"); BEGIN_PGML [@ $PAR @]* -The prime factorization of each of these numbers is of the form: [`2^{a} \cdot 3^{b} \cdot 5^{c} \cdot 7^{d}`] +The prime factorization of each of these numbers is of the form: [`2^{a} \cdot 3^{b} \cdot 5^{c} \cdot 7^{d}`] If a number does not appear in the prime factorization, enter 0. [@ $PAR @]* Find the prime factorization of [$Num01]: [`{a}`] = [__]{$a1} [`{b}`] = [__]{$b1} [`{c}`] = [__]{$c1} [`{d}`] = [__]{$d1} [@ $PAR @]* Find the prime factorization of [$Num02]: [`{a}`] = [__]{$a2} [`{b}`] = [__]{$b2} [`{c}`] = [__]{$c2} [`{d}`] = [__]{$d2} -[@ $PAR @]* +[@ $PAR @]* END_PGML Section::End(); @@ -175,7 +175,7 @@ Section::Begin("Part 2: Greatest Common Divisor"); BEGIN_PGML [@ $PAR @]* Find the GCD of [$Num01] and [$Num02]. [______]{$GCD} -[@ $PAR @]* +[@ $PAR @]* END_PGML Section::End(); @@ -186,13 +186,13 @@ Section::Begin("Part 3: Least Common Multiple"); BEGIN_PGML [@ $PAR @]* Find the LCM of [$Num01] and [$Num02]. [______]{$LCM} -[@ $PAR @]* +[@ $PAR @]* END_PGML Section::End(); Scaffold::End(); -#\{ AnswerFormatHelp("numbers") \} Use this in texStrings to allows students to see formulas +#\{ helpLink("numbers") \} Use this in texStrings to allows students to see formulas ############################ # Answer evaluation diff --git a/Contrib/SUNYOneonta/Integers/GCD03.pg b/Contrib/SUNYOneonta/Integers/GCD03.pg index 0be09215cc..0dfd35dd64 100644 --- a/Contrib/SUNYOneonta/Integers/GCD03.pg +++ b/Contrib/SUNYOneonta/Integers/GCD03.pg @@ -19,7 +19,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", "niceTables.pl", #"contextArbitraryString.pl", @@ -46,19 +46,19 @@ for($i = 2; $i < ($Num01/2); $i++) # After halfway point, only duplicates await { $tempA = List($i); $tempB = List(($Num01/$i)); - + if($tempB > $tempA) # Second value read should be greater than first value recorded { $PosFactors01 = $PosFactors01 + $tempA; $PosFactors01 = $PosFactors01 + $tempB; } - elsif($tempB == $tempA) # Root of Num01 was found, tempA^2 = Num01 + elsif($tempB == $tempA) # Root of Num01 was found, tempA^2 = Num01 { $PosFactors01 = $PosFactors01 + $tempA; } - + } # End of if statement for Num01 factors - + } # End of Num01 for Loop $tempA = List($Num01); $PosFactors01 = $PosFactors01 + $tempA; # Order of student answer doesn't matter, only that all right answers are used @@ -70,19 +70,19 @@ for($i = 2; $i < ($Num02/2); $i++) # After halfway point, only duplicates await { $tempA = List($i); $tempB = List(($Num02/$i)); - + if($tempB > $tempA) # Second value read should be greater than first value recorded { $PosFactors02 = $PosFactors02 + $tempA; $PosFactors02 = $PosFactors02 + $tempB; } - elsif($tempB == $tempA) # Root of Num01 was found, tempA^2 = Num01 + elsif($tempB == $tempA) # Root of Num01 was found, tempA^2 = Num01 { $PosFactors02 = $PosFactors02 + $tempA; } - + } # End of if statement for Num01 factors - + } # End of Num01 for Loop $tempA = List($Num02); $PosFactors02 = $PosFactors02 + $tempA; # Order of student answer doesn't matter, only that all right answers are used @@ -137,45 +137,45 @@ $PAR Consider the numbers $Num01 and $Num02. $BR When answering with multiple numbers, use a comma to separate each value. Ex. 1,2,3 -$BR +$BR $BR $BBOLD Part A: $EBOLD $BR List all of the positive factors of $Num01: \{ ans_rule(30) \} -$BR +$BR $BR $BBOLD Part B: $EBOLD $BR -List all of the positive factors of $Num02: \{ ans_rule(30) \} -$BR +List all of the positive factors of $Num02: \{ ans_rule(30) \} +$BR $BR $BBOLD Part C: $EBOLD $BR -Find the greatest common divisor of $Num01 and $Num02: \{ ans_rule(4) \} -$BR +Find the greatest common divisor of $Num01 and $Num02: \{ ans_rule(4) \} +$BR $BR $BBOLD Part D: $EBOLD $BR -List the first 10 multiples of $Num01: \{ ans_rule(60) \} -$BR +List the first 10 multiples of $Num01: \{ ans_rule(60) \} +$BR $BR $BBOLD Part E: $EBOLD $BR -List the first 10 multiples of $Num02: \{ ans_rule(60) \} -$BR +List the first 10 multiples of $Num02: \{ ans_rule(60) \} +$BR $BR $BBOLD Part F: $EBOLD $BR Find the least common multiple of $Num01 and $Num02: \{ ans_rule(5) \} $BR $BR -$BBOLD Note: $EBOLD The list of multiples you found may not be sufficient to determine the LCM. +$BBOLD Note: $EBOLD The list of multiples you found may not be sufficient to determine the LCM. $BR You may need to compute additional multiples to complete the last part of the problem. $BR END_TEXT Context()->normalStrings; -#\{ AnswerFormatHelp("numbers") \} Use this in texStrings to allows students to see formulas +#\{ helpLink("numbers") \} Use this in texStrings to allows students to see formulas ############################ # Answer evaluation diff --git a/Contrib/SUNYOneonta/Integers/GCD03a.pg b/Contrib/SUNYOneonta/Integers/GCD03a.pg index 956ccf98f8..6aebe1ca3d 100644 --- a/Contrib/SUNYOneonta/Integers/GCD03a.pg +++ b/Contrib/SUNYOneonta/Integers/GCD03a.pg @@ -19,7 +19,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "scaffold.pl", "PGcourse.pl", @@ -116,13 +116,13 @@ Section::Begin("Part 1: Prime Factorization"); BEGIN_PGML [@ $PAR @]* -The prime factorization of each of these numbers is of the form: [`2^{a} \cdot 3^{b} \cdot 13^{c}`] +The prime factorization of each of these numbers is of the form: [`2^{a} \cdot 3^{b} \cdot 13^{c}`] If a number does not appear in the prime factorization, enter 0. [@ $PAR @]* Find the prime factorization of [$Num01]: [`{a}`] = [__]{$a1} [`{b}`] = [__]{$b1} [`{c}`] = [__]{$c1} [@ $PAR @]* Find the prime factorization of [$Num02]: [`{a}`] = [__]{$a2} [`{b}`] = [__]{$b2} [`{c}`] = [__]{$c2} -[@ $PAR @]* +[@ $PAR @]* END_PGML Section::End(); @@ -133,7 +133,7 @@ Section::Begin("Part 2: Greatest Common Divisor"); BEGIN_PGML [@ $PAR @]* Find the GCD of [$Num01] and [$Num02]. [______]{$GCD} -[@ $PAR @]* +[@ $PAR @]* END_PGML Section::End(); @@ -144,7 +144,7 @@ Section::Begin("Part 3: Least Common Multiple"); BEGIN_PGML [@ $PAR @]* Find the LCM of [$Num01] and [$Num02]. [______]{$LCM} -[@ $PAR @]* +[@ $PAR @]* END_PGML Section::End(); @@ -152,7 +152,7 @@ Section::End(); Scaffold::End(); Context()->normalStrings; -#\{ AnswerFormatHelp("numbers") \} Use this in texStrings to allows students to see formulas +#\{ helpLink("numbers") \} Use this in texStrings to allows students to see formulas ############################ # Answer evaluation diff --git a/Contrib/SUNYOneonta/Integers/GCD04.pg b/Contrib/SUNYOneonta/Integers/GCD04.pg index b995cb01bc..83964d53b3 100644 --- a/Contrib/SUNYOneonta/Integers/GCD04.pg +++ b/Contrib/SUNYOneonta/Integers/GCD04.pg @@ -19,7 +19,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", "niceTables.pl", #"contextArbitraryString.pl", @@ -47,19 +47,19 @@ for($i = 2; $i < ($Num01/2); $i++) # After halfway point, only duplicates await { $tempA = List($i); $tempB = List(($Num01/$i)); - + if($tempB > $tempA) # Second value read should be greater than first value recorded { $PosFactors01 = $PosFactors01 + $tempA; $PosFactors01 = $PosFactors01 + $tempB; } - elsif($tempB == $tempA) # Root of Num01 was found, tempA^2 = Num01 + elsif($tempB == $tempA) # Root of Num01 was found, tempA^2 = Num01 { $PosFactors01 = $PosFactors01 + $tempA; } - + } # End of if statement for Num01 factors - + } # End of Num01 for Loop $tempA = List($Num01); $PosFactors01 = $PosFactors01 + $tempA; # Order of student answer doesn't matter, only that all right answers are used @@ -71,19 +71,19 @@ for($i = 2; $i < ($Num02/2); $i++) # After halfway point, only duplicates await { $tempA = List($i); $tempB = List(($Num02/$i)); - + if($tempB > $tempA) # Second value read should be greater than first value recorded { $PosFactors02 = $PosFactors02 + $tempA; $PosFactors02 = $PosFactors02 + $tempB; } - elsif($tempB == $tempA) # Root of Num01 was found, tempA^2 = Num01 + elsif($tempB == $tempA) # Root of Num01 was found, tempA^2 = Num01 { $PosFactors02 = $PosFactors02 + $tempA; } - + } # End of if statement for Num01 factors - + } # End of Num01 for Loop $tempA = List($Num02); $PosFactors02 = $PosFactors02 + $tempA; # Order of student answer doesn't matter, only that all right answers are used @@ -118,45 +118,45 @@ $PAR Consider the numbers $Num01 and $Num02. $BR When answering with multiple numbers, use a comma to separate each value. Ex. 1,2,3 -$BR +$BR $BR $BBOLD Part A: $EBOLD $BR List all of the positive factors of $Num01: \{ ans_rule(30) \} -$BR +$BR $BR $BBOLD Part B: $EBOLD $BR -List all of the positive factors of $Num02: \{ ans_rule(30) \} -$BR +List all of the positive factors of $Num02: \{ ans_rule(30) \} +$BR $BR $BBOLD Part C: $EBOLD $BR -Find the greatest common divisor of $Num01 and $Num02: \{ ans_rule(4) \} -$BR +Find the greatest common divisor of $Num01 and $Num02: \{ ans_rule(4) \} +$BR $BR $BBOLD Part D: $EBOLD $BR -List the first 10 multiples of $Num01: \{ ans_rule(60) \} -$BR +List the first 10 multiples of $Num01: \{ ans_rule(60) \} +$BR $BR $BBOLD Part E: $EBOLD $BR -List the first 10 multiples of $Num02: \{ ans_rule(60) \} -$BR +List the first 10 multiples of $Num02: \{ ans_rule(60) \} +$BR $BR $BBOLD Part F: $EBOLD $BR Find the least common multiple of $Num01 and $Num02: \{ ans_rule(5) \} $BR $BR -$BBOLD Note: $EBOLD The list of multiples you found may not be sufficient to determine the LCM. +$BBOLD Note: $EBOLD The list of multiples you found may not be sufficient to determine the LCM. $BR You may need to compute additional multiples to complete the last part of the problem. $BR END_TEXT Context()->normalStrings; -#\{ AnswerFormatHelp("numbers") \} Use this in texStrings to allows students to see formulas +#\{ helpLink("numbers") \} Use this in texStrings to allows students to see formulas ############################ # Answer evaluation diff --git a/Contrib/SUNYOneonta/Integers/GCD05.pg b/Contrib/SUNYOneonta/Integers/GCD05.pg index dcf8a5aa0e..c03dd286e8 100644 --- a/Contrib/SUNYOneonta/Integers/GCD05.pg +++ b/Contrib/SUNYOneonta/Integers/GCD05.pg @@ -21,7 +21,7 @@ loadMacros( "PGcourse.pl", "unionTables.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "niceTables.pl", #"contextArbitraryString.pl", ); @@ -119,38 +119,38 @@ Consider the numbers $Num01 and $Num02. $BR The prime factorization of each of these numbers is of the form: \( 2^{a} \cdot 3^{b} \cdot 5^{c} \cdot 7^{d} \) $BR -If a number does not appear in the prime factorization, enter 0. +If a number does not appear in the prime factorization, enter 0. \{ DataTable( [ [' ',' ',['\( \)', headerrow => 1],'\( \)',' ',' ',' ',' ',' ',' ',' ',' '], ['$BBOLD Part A: $EBOLD',' ','\( \)',ans_rule(2),' ','\( \)',ans_rule(2),' ','\( \)',ans_rule(2),' ','\( \)',ans_rule(2)], [' ','Find the prime factorization of $Num01: ','\(2\)',' ','\( \cdot \)','\(3\)',' ','\( \cdot \)','\(5\)',' ','\( \cdot \)','\(7\)',' '] - ], + ], caption => ' ', center => 0, ); \} -$BR +$BR \{ DataTable( [ [' ',' ',['\( \)', headerrow => 1],'\( \)',' ',' ',' ',' ',' ',' ',' ',' '], ['$BBOLD Part B: $EBOLD',' ','\( \)',ans_rule(2),' ','\( \)',ans_rule(2),' ','\( \)',ans_rule(2),' ','\( \)',ans_rule(2)], [' ','Find the prime factorization of $Num02: ','\(2\)',' ','\( \cdot \)','\(3\)',' ','\( \cdot \)','\(5\)',' ','\( \cdot \)','\(7\)',' '] - ], + ], caption => ' ', center => 0, ); \} -$BR +$BR \{ DataTable( [ [['\( \)', headerrow => 1],'\( \)',' '], ['$BBOLD Part C: $EBOLD',' ','\( \)'], [' ','Find the GCD of $Num01 and $Num02: ',ans_rule(5)] - ], + ], caption => ' ', center => 0, ); @@ -162,7 +162,7 @@ DataTable( [['\( \)', headerrow => 1],'\( \)',' '], ['$BBOLD Part D: $EBOLD',' ','\( \)'], [' ','Find the LCM of $Num01 and $Num02: ',ans_rule(5)] - ], + ], caption => ' ', center => 0, ); @@ -170,7 +170,7 @@ DataTable( $BR END_TEXT Context()->normalStrings; -#\{ AnswerFormatHelp("numbers") \} Use this in texStrings to allows students to see formulas +#\{ helpLink("numbers") \} Use this in texStrings to allows students to see formulas ############################ # Answer evaluation diff --git a/Contrib/SUNYOneonta/Integers/GCD06.pg b/Contrib/SUNYOneonta/Integers/GCD06.pg index 8ac2f159d3..135f178c89 100644 --- a/Contrib/SUNYOneonta/Integers/GCD06.pg +++ b/Contrib/SUNYOneonta/Integers/GCD06.pg @@ -19,7 +19,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", "niceTables.pl", #"contextArbitraryString.pl", @@ -117,38 +117,38 @@ Consider the numbers $Num01 and $Num02. $BR The prime factorization of each of these numbers is of the form: \( 2^{a} \cdot 3^{b} \cdot 11^{c} \cdot 13^{d} \) $BR -If a number does not appear in the prime factorization, enter 0. +If a number does not appear in the prime factorization, enter 0. \{ DataTable( [ [' ',' ',['\( \)', headerrow => 1],'\( \)',' ',' ',' ',' ',' ',' ',' ',' '], ['$BBOLD Part A: $EBOLD',' ','\( \)',ans_rule(2),' ','\( \)',ans_rule(2),' ','\( \)',ans_rule(2),' ','\( \)',ans_rule(2)], [' ','Find the prime factorization of $Num01: ','\(2\)',' ','\( \cdot \)','\(3\)',' ','\( \cdot \)','\(11\)',' ','\( \cdot \)','\(13\)',' '] - ], + ], caption => ' ', center => 0, ); \} -$BR +$BR \{ DataTable( [ [' ',' ',['\( \)', headerrow => 1],'\( \)',' ',' ',' ',' ',' ',' ',' ',' '], ['$BBOLD Part B: $EBOLD',' ','\( \)',ans_rule(2),' ','\( \)',ans_rule(2),' ','\( \)',ans_rule(2),' ','\( \)',ans_rule(2)], [' ','Find the prime factorization of $Num02: ','\(2\)',' ','\( \cdot \)','\(3\)',' ','\( \cdot \)','\(11\)',' ','\( \cdot \)','\(13\)',' '] - ], + ], caption => ' ', center => 0, ); \} -$BR +$BR \{ DataTable( [ [['\( \)', headerrow => 1],'\( \)',' '], ['$BBOLD Part C: $EBOLD',' ','\( \)'], [' ','Find the GCD of $Num01 and $Num02: ',ans_rule(5)] - ], + ], caption => ' ', center => 0, ); @@ -160,7 +160,7 @@ DataTable( [['\( \)', headerrow => 1],'\( \)',' '], ['$BBOLD Part D: $EBOLD',' ','\( \)'], [' ','Find the LCM of $Num01 and $Num02: ',ans_rule(5)] - ], + ], caption => ' ', center => 0, ); @@ -168,7 +168,7 @@ DataTable( $BR END_TEXT Context()->normalStrings; -#\{ AnswerFormatHelp("numbers") \} Use this in texStrings to allows students to see formulas +#\{ helpLink("numbers") \} Use this in texStrings to allows students to see formulas ############################ # Answer evaluation diff --git a/Contrib/SUNYOneonta/Integers/GCD07.pg b/Contrib/SUNYOneonta/Integers/GCD07.pg index e182327041..2132cbbfc3 100644 --- a/Contrib/SUNYOneonta/Integers/GCD07.pg +++ b/Contrib/SUNYOneonta/Integers/GCD07.pg @@ -19,7 +19,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", "niceTables.pl", #"contextArbitraryString.pl", @@ -103,38 +103,38 @@ Consider the numbers $Num01 and $Num02. $BR The prime factorization of each of these numbers is of the form: \( 2^{a} \cdot 3^{b} \cdot 13^{c} \) $BR -If a number does not appear in the prime factorization, enter 0. +If a number does not appear in the prime factorization, enter 0. \{ DataTable( [ [' ',' ',['\( \)', headerrow => 1],'\( \)',' ',' ',' ',' ',' ',' ',' ',' '], ['$BBOLD Part A: $EBOLD',' ','\( \)',ans_rule(2),' ','\( \)',ans_rule(2),' ','\( \)',ans_rule(2)], [' ','Find the prime factorization of $Num01: ','\(2\)',' ','\( \cdot \)','\(3\)',' ','\( \cdot \)','\(13\)',' '] - ], + ], caption => ' ', center => 0, ); \} -$BR +$BR \{ DataTable( [ [' ',' ',['\( \)', headerrow => 1],'\( \)',' ',' ',' ',' ',' ',' ',' ',' '], ['$BBOLD Part B: $EBOLD',' ','\( \)',ans_rule(2),' ','\( \)',ans_rule(2),' ','\( \)',ans_rule(2)], [' ','Find the prime factorization of $Num02: ','\(2\)',' ','\( \cdot \)','\(3\)',' ','\( \cdot \)','\(13\)',' '] - ], + ], caption => ' ', center => 0, ); \} -$BR +$BR \{ DataTable( [ [['\( \)', headerrow => 1],'\( \)',' '], ['$BBOLD Part C: $EBOLD',' ','\( \)'], [' ','Find the GCD of $Num01 and $Num02: ',ans_rule(5)] - ], + ], caption => ' ', center => 0, ); @@ -146,7 +146,7 @@ DataTable( [['\( \)', headerrow => 1],'\( \)',' '], ['$BBOLD Part D: $EBOLD',' ','\( \)'], [' ','Find the LCM of $Num01 and $Num02: ',ans_rule(5)] - ], + ], caption => ' ', center => 0, ); @@ -154,7 +154,7 @@ DataTable( $BR END_TEXT Context()->normalStrings; -#\{ AnswerFormatHelp("numbers") \} Use this in texStrings to allows students to see formulas +#\{ helpLink("numbers") \} Use this in texStrings to allows students to see formulas ############################ # Answer evaluation diff --git a/Contrib/SUNYOneonta/Integers/GCD08.pg b/Contrib/SUNYOneonta/Integers/GCD08.pg index 2541a18ba7..7aaa1225cc 100644 --- a/Contrib/SUNYOneonta/Integers/GCD08.pg +++ b/Contrib/SUNYOneonta/Integers/GCD08.pg @@ -21,7 +21,7 @@ loadMacros( "PGcourse.pl", "unionTables.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "niceTables.pl", #"contextArbitraryString.pl", ); @@ -119,38 +119,38 @@ Consider the numbers $Num01 and $Num02. $BR The prime factorization of each of these numbers is of the form: \( 2^{a} \cdot 3^{b} \cdot 5^{c} \cdot 7^{d} \) $BR -If a number does not appear in the prime factorization, enter 0. +If a number does not appear in the prime factorization, enter 0. \{ DataTable( [ [' ',' ',['\( \)', headerrow => 1],'\( \)',' ',' ',' ',' ',' ',' ',' ',' '], ['$BBOLD Part A: $EBOLD',' ','\( \)',ans_rule(3),' ','\( \)',ans_rule(3),' ','\( \)',ans_rule(3),' ','\( \)',ans_rule(3)], [' ','Find the prime factorization of $Num01: ','\(2\)',' ','\( \cdot \)','\(3\)',' ','\( \cdot \)','\(5\)',' ','\( \cdot \)','\(7\)',' '] - ], + ], caption => ' ', center => 0, ); \} -$BR +$BR \{ DataTable( [ [' ',' ',['\( \)', headerrow => 1],'\( \)',' ',' ',' ',' ',' ',' ',' ',' '], ['$BBOLD Part B: $EBOLD',' ','\( \)',ans_rule(3),' ','\( \)',ans_rule(3),' ','\( \)',ans_rule(3),' ','\( \)',ans_rule(3)], [' ','Find the prime factorization of $Num02: ','\(2\)',' ','\( \cdot \)','\(3\)',' ','\( \cdot \)','\(5\)',' ','\( \cdot \)','\(7\)',' '] - ], + ], caption => ' ', center => 0, ); \} -$BR +$BR \{ DataTable( [ [['\( \)', headerrow => 1],'\( \)',' '], ['$BBOLD Part C: $EBOLD',' ','\( \)'], [' ','Find the GCD of $Num01 and $Num02: ',ans_rule(5)] - ], + ], caption => ' ', center => 0, ); @@ -162,7 +162,7 @@ DataTable( [['\( \)', headerrow => 1],'\( \)',' '], ['$BBOLD Part D: $EBOLD',' ','\( \)'], [' ','Find the LCM of $Num01 and $Num02: ',ans_rule(5)] - ], + ], caption => ' ', center => 0, ); @@ -170,7 +170,7 @@ DataTable( $BR END_TEXT Context()->normalStrings; -#\{ AnswerFormatHelp("numbers") \} Use this in texStrings to allows students to see formulas +#\{ helpLink("numbers") \} Use this in texStrings to allows students to see formulas ############################ # Answer evaluation diff --git a/Contrib/SUNYOneonta/Integers/factors02.pg b/Contrib/SUNYOneonta/Integers/factors02.pg index 341bd7ea74..19158ce7c7 100644 --- a/Contrib/SUNYOneonta/Integers/factors02.pg +++ b/Contrib/SUNYOneonta/Integers/factors02.pg @@ -19,7 +19,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", "niceTables.pl", #"contextArbitraryString.pl", @@ -48,19 +48,19 @@ for($i = 2; $i < ($Num01/2); $i++) # After halfway point, only duplicates await { $tempA = List($i); $tempB = List(($Num01/$i)); - + if($tempB > $tempA) # Second value read should be greater than first value recorded { $PosFactors01 = $PosFactors01 + $tempA; $PosFactors01 = $PosFactors01 + $tempB; } - elsif($tempB == $tempA) # Root of Num01 was found, tempA^2 = Num01 + elsif($tempB == $tempA) # Root of Num01 was found, tempA^2 = Num01 { $PosFactors01 = $PosFactors01 + $tempA; } - + } # End of if statement for Num01 factors - + } # End of Num01 for Loop $tempA = List($Num01); $PosFactors01 = $PosFactors01 + $tempA; # Order of student answer doesn't matter, only that all right answers are used @@ -72,19 +72,19 @@ for($i = 2; $i < ($Num02/2); $i++) # After halfway point, only duplicates await { $tempA = List($i); $tempB = List(($Num02/$i)); - + if($tempB > $tempA) # Second value read should be greater than first value recorded { $PosFactors02 = $PosFactors02 + $tempA; $PosFactors02 = $PosFactors02 + $tempB; } - elsif($tempB == $tempA) # Root of Num01 was found, tempA^2 = Num01 + elsif($tempB == $tempA) # Root of Num01 was found, tempA^2 = Num01 { $PosFactors02 = $PosFactors02 + $tempA; } - + } # End of if statement for Num01 factors - + } # End of Num01 for Loop $tempA = List($Num02); $PosFactors02 = $PosFactors02 + $tempA; # Order of student answer doesn't matter, only that all right answers are used @@ -119,24 +119,24 @@ $PAR Consider the numbers $Num01 and $Num02. $BR When answering with multiple numbers, use a comma to separate each value. Ex. 1,2,3 -$BR +$BR $BR $BBOLD Part A: $EBOLD $BR List all of the positive factors of $Num01: \{ ans_rule(30) \} -$BR +$BR $BR $BBOLD Part B: $EBOLD $BR -List all of the positive factors of $Num02: \{ ans_rule(30) \} -$BR +List all of the positive factors of $Num02: \{ ans_rule(30) \} +$BR $BR $BR END_TEXT Context()->normalStrings; -#\{ AnswerFormatHelp("numbers") \} Use this in texStrings to allows students to see formulas +#\{ helpLink("numbers") \} Use this in texStrings to allows students to see formulas ############################ # Answer evaluation diff --git a/Contrib/SUNYOneonta/Integers/factors03.pg b/Contrib/SUNYOneonta/Integers/factors03.pg index ad0f4aad08..77d7ce66fc 100644 --- a/Contrib/SUNYOneonta/Integers/factors03.pg +++ b/Contrib/SUNYOneonta/Integers/factors03.pg @@ -19,7 +19,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", "niceTables.pl", #"contextArbitraryString.pl", @@ -46,19 +46,19 @@ for($i = 2; $i < ($Num01/2); $i++) # After halfway point, only duplicates await { $tempA = List($i); $tempB = List(($Num01/$i)); - + if($tempB > $tempA) # Second value read should be greater than first value recorded { $PosFactors01 = $PosFactors01 + $tempA; $PosFactors01 = $PosFactors01 + $tempB; } - elsif($tempB == $tempA) # Root of Num01 was found, tempA^2 = Num01 + elsif($tempB == $tempA) # Root of Num01 was found, tempA^2 = Num01 { $PosFactors01 = $PosFactors01 + $tempA; } - + } # End of if statement for Num01 factors - + } # End of Num01 for Loop $tempA = List($Num01); $PosFactors01 = $PosFactors01 + $tempA; # Order of student answer doesn't matter, only that all right answers are used @@ -70,19 +70,19 @@ for($i = 2; $i < ($Num02/2); $i++) # After halfway point, only duplicates await { $tempA = List($i); $tempB = List(($Num02/$i)); - + if($tempB > $tempA) # Second value read should be greater than first value recorded { $PosFactors02 = $PosFactors02 + $tempA; $PosFactors02 = $PosFactors02 + $tempB; } - elsif($tempB == $tempA) # Root of Num01 was found, tempA^2 = Num01 + elsif($tempB == $tempA) # Root of Num01 was found, tempA^2 = Num01 { $PosFactors02 = $PosFactors02 + $tempA; } - + } # End of if statement for Num01 factors - + } # End of Num01 for Loop $tempA = List($Num02); $PosFactors02 = $PosFactors02 + $tempA; # Order of student answer doesn't matter, only that all right answers are used @@ -137,24 +137,24 @@ $PAR Consider the numbers $Num01 and $Num02. $BR When answering with multiple numbers, use a comma to separate each value. Ex. 1,2,3 -$BR +$BR $BR $BBOLD Part A: $EBOLD $BR List all of the positive factors of $Num01: \{ ans_rule(30) \} -$BR +$BR $BR $BBOLD Part B: $EBOLD $BR -List all of the positive factors of $Num02: \{ ans_rule(30) \} -$BR +List all of the positive factors of $Num02: \{ ans_rule(30) \} +$BR $BR $BR END_TEXT Context()->normalStrings; -#\{ AnswerFormatHelp("numbers") \} Use this in texStrings to allows students to see formulas +#\{ helpLink("numbers") \} Use this in texStrings to allows students to see formulas ############################ # Answer evaluation diff --git a/Contrib/SUNYOneonta/Integers/factors04.pg b/Contrib/SUNYOneonta/Integers/factors04.pg index 03e7bdcb5d..2c6fd10e07 100644 --- a/Contrib/SUNYOneonta/Integers/factors04.pg +++ b/Contrib/SUNYOneonta/Integers/factors04.pg @@ -19,7 +19,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", "niceTables.pl", #"contextArbitraryString.pl", @@ -47,19 +47,19 @@ for($i = 2; $i < ($Num01/2); $i++) # After halfway point, only duplicates await { $tempA = List($i); $tempB = List(($Num01/$i)); - + if($tempB > $tempA) # Second value read should be greater than first value recorded { $PosFactors01 = $PosFactors01 + $tempA; $PosFactors01 = $PosFactors01 + $tempB; } - elsif($tempB == $tempA) # Root of Num01 was found, tempA^2 = Num01 + elsif($tempB == $tempA) # Root of Num01 was found, tempA^2 = Num01 { $PosFactors01 = $PosFactors01 + $tempA; } - + } # End of if statement for Num01 factors - + } # End of Num01 for Loop $tempA = List($Num01); $PosFactors01 = $PosFactors01 + $tempA; # Order of student answer doesn't matter, only that all right answers are used @@ -71,19 +71,19 @@ for($i = 2; $i < ($Num02/2); $i++) # After halfway point, only duplicates await { $tempA = List($i); $tempB = List(($Num02/$i)); - + if($tempB > $tempA) # Second value read should be greater than first value recorded { $PosFactors02 = $PosFactors02 + $tempA; $PosFactors02 = $PosFactors02 + $tempB; } - elsif($tempB == $tempA) # Root of Num01 was found, tempA^2 = Num01 + elsif($tempB == $tempA) # Root of Num01 was found, tempA^2 = Num01 { $PosFactors02 = $PosFactors02 + $tempA; } - + } # End of if statement for Num01 factors - + } # End of Num01 for Loop $tempA = List($Num02); $PosFactors02 = $PosFactors02 + $tempA; # Order of student answer doesn't matter, only that all right answers are used @@ -118,22 +118,22 @@ $PAR Consider the numbers $Num01 and $Num02. $BR When answering with multiple numbers, use a comma to separate each value. Ex. 1,2,3 -$BR +$BR $BR $BBOLD Part A: $EBOLD $BR List all of the positive factors of $Num01: \{ ans_rule(30) \} -$BR +$BR $BR $BBOLD Part B: $EBOLD $BR -List all of the positive factors of $Num02: \{ ans_rule(30) \} -$BR +List all of the positive factors of $Num02: \{ ans_rule(30) \} +$BR $BR END_TEXT Context()->normalStrings; -#\{ AnswerFormatHelp("numbers") \} Use this in texStrings to allows students to see formulas +#\{ helpLink("numbers") \} Use this in texStrings to allows students to see formulas ############################ # Answer evaluation diff --git a/Contrib/SUNYOneonta/Integers/factors05.pg b/Contrib/SUNYOneonta/Integers/factors05.pg index f515109d44..c3d5a1b660 100644 --- a/Contrib/SUNYOneonta/Integers/factors05.pg +++ b/Contrib/SUNYOneonta/Integers/factors05.pg @@ -21,7 +21,7 @@ loadMacros( "PGcourse.pl", "unionTables.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "niceTables.pl", #"contextArbitraryString.pl", ); @@ -119,36 +119,36 @@ Consider the numbers $Num01 and $Num02. $BR The prime factorization of each of these numbers is of the form: \( 2^{a} \cdot 3^{b} \cdot 5^{c} \cdot 7^{d} \) $BR -If a number does not appear in the prime factorization, enter 0. +If a number does not appear in the prime factorization, enter 0. \{ DataTable( [ [' ',' ',['\( \)', headerrow => 1],'\( \)',' ',' ',' ',' ',' ',' ',' ',' '], ['$BBOLD Part A: $EBOLD',' ','\( \)',ans_rule(2),' ','\( \)',ans_rule(2),' ','\( \)',ans_rule(2),' ','\( \)',ans_rule(2)], [' ','Find the prime factorization of $Num01: ','\(2\)',' ','\( \cdot \)','\(3\)',' ','\( \cdot \)','\(5\)',' ','\( \cdot \)','\(7\)',' '] - ], + ], caption => ' ', center => 0, ); \} -$BR +$BR \{ DataTable( [ [' ',' ',['\( \)', headerrow => 1],'\( \)',' ',' ',' ',' ',' ',' ',' ',' '], ['$BBOLD Part B: $EBOLD',' ','\( \)',ans_rule(2),' ','\( \)',ans_rule(2),' ','\( \)',ans_rule(2),' ','\( \)',ans_rule(2)], [' ','Find the prime factorization of $Num02: ','\(2\)',' ','\( \cdot \)','\(3\)',' ','\( \cdot \)','\(5\)',' ','\( \cdot \)','\(7\)',' '] - ], + ], caption => ' ', center => 0, ); \} -$BR +$BR $BR END_TEXT Context()->normalStrings; -#\{ AnswerFormatHelp("numbers") \} Use this in texStrings to allows students to see formulas +#\{ helpLink("numbers") \} Use this in texStrings to allows students to see formulas ############################ # Answer evaluation diff --git a/Contrib/SUNYOneonta/Integers/factors06.pg b/Contrib/SUNYOneonta/Integers/factors06.pg index 6fc9dcb762..1426e38346 100644 --- a/Contrib/SUNYOneonta/Integers/factors06.pg +++ b/Contrib/SUNYOneonta/Integers/factors06.pg @@ -19,7 +19,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", "niceTables.pl", #"contextArbitraryString.pl", @@ -117,35 +117,35 @@ Consider the numbers $Num01 and $Num02. $BR The prime factorization of each of these numbers is of the form: \( 2^{a} \cdot 3^{b} \cdot 11^{c} \cdot 13^{d} \) $BR -If a number does not appear in the prime factorization, enter 0. +If a number does not appear in the prime factorization, enter 0. \{ DataTable( [ [' ',' ',['\( \)', headerrow => 1],'\( \)',' ',' ',' ',' ',' ',' ',' ',' '], ['$BBOLD Part A: $EBOLD',' ','\( \)',ans_rule(2),' ','\( \)',ans_rule(2),' ','\( \)',ans_rule(2),' ','\( \)',ans_rule(2)], [' ','Find the prime factorization of $Num01: ','\(2\)',' ','\( \cdot \)','\(3\)',' ','\( \cdot \)','\(11\)',' ','\( \cdot \)','\(13\)',' '] - ], + ], caption => ' ', center => 0, ); \} -$BR +$BR \{ DataTable( [ [' ',' ',['\( \)', headerrow => 1],'\( \)',' ',' ',' ',' ',' ',' ',' ',' '], ['$BBOLD Part B: $EBOLD',' ','\( \)',ans_rule(2),' ','\( \)',ans_rule(2),' ','\( \)',ans_rule(2),' ','\( \)',ans_rule(2)], [' ','Find the prime factorization of $Num02: ','\(2\)',' ','\( \cdot \)','\(3\)',' ','\( \cdot \)','\(11\)',' ','\( \cdot \)','\(13\)',' '] - ], + ], caption => ' ', center => 0, ); \} -$BR +$BR END_TEXT Context()->normalStrings; -#\{ AnswerFormatHelp("numbers") \} Use this in texStrings to allows students to see formulas +#\{ helpLink("numbers") \} Use this in texStrings to allows students to see formulas ############################ # Answer evaluation diff --git a/Contrib/SUNYOneonta/Integers/factors07.pg b/Contrib/SUNYOneonta/Integers/factors07.pg index 4e8c3d24ad..0c47d5da3d 100644 --- a/Contrib/SUNYOneonta/Integers/factors07.pg +++ b/Contrib/SUNYOneonta/Integers/factors07.pg @@ -19,7 +19,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", "niceTables.pl", #"contextArbitraryString.pl", @@ -103,36 +103,36 @@ Consider the numbers $Num01 and $Num02. $BR The prime factorization of each of these numbers is of the form: \( 2^{a} \cdot 3^{b} \cdot 13^{c} \) $BR -If a number does not appear in the prime factorization, enter 0. +If a number does not appear in the prime factorization, enter 0. \{ DataTable( [ [' ',' ',['\( \)', headerrow => 1],'\( \)',' ',' ',' ',' ',' ',' ',' ',' '], ['$BBOLD Part A: $EBOLD',' ','\( \)',ans_rule(2),' ','\( \)',ans_rule(2),' ','\( \)',ans_rule(2)], [' ','Find the prime factorization of $Num01: ','\(2\)',' ','\( \cdot \)','\(3\)',' ','\( \cdot \)','\(13\)',' '] - ], + ], caption => ' ', center => 0, ); \} -$BR +$BR \{ DataTable( [ [' ',' ',['\( \)', headerrow => 1],'\( \)',' ',' ',' ',' ',' ',' ',' ',' '], ['$BBOLD Part B: $EBOLD',' ','\( \)',ans_rule(2),' ','\( \)',ans_rule(2),' ','\( \)',ans_rule(2)], [' ','Find the prime factorization of $Num02: ','\(2\)',' ','\( \cdot \)','\(3\)',' ','\( \cdot \)','\(13\)',' '] - ], + ], caption => ' ', center => 0, ); \} -$BR +$BR $BR END_TEXT Context()->normalStrings; -#\{ AnswerFormatHelp("numbers") \} Use this in texStrings to allows students to see formulas +#\{ helpLink("numbers") \} Use this in texStrings to allows students to see formulas ############################ # Answer evaluation diff --git a/Contrib/SUNYOneonta/Integers/factors08.pg b/Contrib/SUNYOneonta/Integers/factors08.pg index 4e52cb69e9..22f4f1294f 100644 --- a/Contrib/SUNYOneonta/Integers/factors08.pg +++ b/Contrib/SUNYOneonta/Integers/factors08.pg @@ -21,7 +21,7 @@ loadMacros( "PGcourse.pl", "unionTables.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "niceTables.pl", #"contextArbitraryString.pl", ); @@ -119,35 +119,35 @@ Consider the numbers $Num01 and $Num02. $BR The prime factorization of each of these numbers is of the form: \( 2^{a} \cdot 3^{b} \cdot 5^{c} \cdot 7^{d} \) $BR -If a number does not appear in the prime factorization, enter 0. +If a number does not appear in the prime factorization, enter 0. \{ DataTable( [ [' ',' ',['\( \)', headerrow => 1],'\( \)',' ',' ',' ',' ',' ',' ',' ',' '], ['$BBOLD Part A: $EBOLD',' ','\( \)',ans_rule(3),' ','\( \)',ans_rule(3),' ','\( \)',ans_rule(3),' ','\( \)',ans_rule(3)], [' ','Find the prime factorization of $Num01: ','\(2\)',' ','\( \cdot \)','\(3\)',' ','\( \cdot \)','\(5\)',' ','\( \cdot \)','\(7\)',' '] - ], + ], caption => ' ', center => 0, ); \} -$BR +$BR \{ DataTable( [ [' ',' ',['\( \)', headerrow => 1],'\( \)',' ',' ',' ',' ',' ',' ',' ',' '], ['$BBOLD Part B: $EBOLD',' ','\( \)',ans_rule(3),' ','\( \)',ans_rule(3),' ','\( \)',ans_rule(3),' ','\( \)',ans_rule(3)], [' ','Find the prime factorization of $Num02: ','\(2\)',' ','\( \cdot \)','\(3\)',' ','\( \cdot \)','\(5\)',' ','\( \cdot \)','\(7\)',' '] - ], + ], caption => ' ', center => 0, ); \} -$BR +$BR END_TEXT Context()->normalStrings; -#\{ AnswerFormatHelp("numbers") \} Use this in texStrings to allows students to see formulas +#\{ helpLink("numbers") \} Use this in texStrings to allows students to see formulas ############################ # Answer evaluation diff --git a/Contrib/SUNYOneonta/Numeration/Babylonian/Babylonian01a.pg b/Contrib/SUNYOneonta/Numeration/Babylonian/Babylonian01a.pg index 621bbca68a..07dd3f1961 100644 --- a/Contrib/SUNYOneonta/Numeration/Babylonian/Babylonian01a.pg +++ b/Contrib/SUNYOneonta/Numeration/Babylonian/Babylonian01a.pg @@ -19,7 +19,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", "niceTables.pl", "contextArbitraryString.pl", @@ -87,21 +87,21 @@ BEGIN_TEXT $PAR Write $ShownValue as a Babylonian numeral. Use the following key to input your answer: -$BR +$BR $BR -$BR -\{ +$BR +\{ DataTable( [ [['Babylonian Symbol', headerrow => 1],'Keyboard Input'], [image("babylonian1_01a.png",width=>23,height=>32,tex_size=>40, extra_html_tags=>'alt="Babylonian Numeral 1."'),'V'], [image("babylonian10_01a.png",width=>23,height=>32,tex_size=>40, extra_html_tags=>'alt="Babylonian Numeral 10."'), '\( \lt \)' ] - ], + ], caption => ' ', ); \} -$BR $BR +$BR $BR $BCENTER $ShownValue = \{ ans_rule(58) \} $ECENTER @@ -109,7 +109,7 @@ $BR END_TEXT Context()->normalStrings; -#\{ AnswerFormatHelp("numbers") \} Use this in texStrings to allows students to see formulas +#\{ helpLink("numbers") \} Use this in texStrings to allows students to see formulas ############################ # Answer evaluation @@ -120,24 +120,24 @@ $showPartialCorrectAnswers = 1; ANS(Compute($strAns)->cmp(checker => sub{ my ($correct, $student, $ansHash) = @_; - + $student = uc $student; # Convert student answer to uppercase - + @resultA = split(' ', $student, length($student)); # Used to check entire string placement @resultB = split(' ', $strAns, length($strAns)); - + $arrSize = @resultA; # Size of array $altCorrect = $correct; # copy of correct answer $altCorrect =~ s/ //g; # Removes spaces from correct answer! - + @resultC = split('', $student, length($student)); # Used solely for checking spaces/typos - #@resultD = split('', $strAns, length($student)); # Used solely for checking spaces/typos - + #@resultD = split('', $strAns, length($student)); # Used solely for checking spaces/typos + if($arrSize == 1 && $student eq $altCorrect) # Student didn't use spaces but has right answer { Value->Error("Place values must be separated with a single space"); } - + for($var01 = 0; $var01 < length($student); $var01++) #Check for any additional spaces that aren't needed { if($resultC[$var01] eq ' ') @@ -145,7 +145,7 @@ ANS(Compute($strAns)->cmp(checker => sub{ $var03 += 1; # Count each space being used } } - + if($var03 == 1) # Not enough spaces are being used. IN THIS VERSION, there are either 0 or 2 spaces { Value->Error("Place values must be separated with a single space"); @@ -154,9 +154,9 @@ ANS(Compute($strAns)->cmp(checker => sub{ { Value->Error("You have too many spaces in your answer! Double check your answer for unnecessary spaces"); } - + $var03 = 0; # This value MUST equal the number of symbols - 1 by the end of the loop - + for($var01 = 0; $var01 < length($student); $var01++) #Check for any additional spaces that aren't needed { if($resultC[$var01] eq ' ') @@ -165,7 +165,7 @@ ANS(Compute($strAns)->cmp(checker => sub{ } if($var01 < (length($student) - 1)) #Check to see if there's a minor typo, compares current char with next char - { + { if($resultC[$var01] eq 'V' && $resultC[$var01+1] eq $AddMe)# && $resultD[$var01] eq $AddMe && $resultD[$var01+1] eq 'V') # V then < { Value->Error("Symbols must be in decreasing order."); @@ -173,20 +173,20 @@ ANS(Compute($strAns)->cmp(checker => sub{ } } # End of For loop - + if($resultB[0] ne $resultB[2]) # First and last symbol in the answer aren't the same symbol { if($resultA[0] eq $resultB[2] || $resultA[2] eq $resultB[0]) # Student's answer is in wrong order { - Value->Error("Symbols must be in decreasing order!"); + Value->Error("Symbols must be in decreasing order!"); } } - + if($student ne $correct) # If all other checks fail, directly check strings { Value->Error(); # No error message } - + return 1; })); diff --git a/Contrib/SUNYOneonta/Numeration/Babylonian/Babylonian01b.pg b/Contrib/SUNYOneonta/Numeration/Babylonian/Babylonian01b.pg index ed85ee1b0a..fa9d18a734 100644 --- a/Contrib/SUNYOneonta/Numeration/Babylonian/Babylonian01b.pg +++ b/Contrib/SUNYOneonta/Numeration/Babylonian/Babylonian01b.pg @@ -18,7 +18,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", "niceTables.pl", "contextArbitraryString.pl", @@ -86,21 +86,21 @@ BEGIN_TEXT $PAR Write $ShownValue as a Babylonian numeral. Use the following key to input your answer: -$BR +$BR $BR -$BR -\{ +$BR +\{ DataTable( [ [['Babylonian Symbol', headerrow => 1],'Keyboard Input'], [image("babylonian1_01b.png",width=>23,height=>32,tex_size=>40, extra_html_tags=>'alt="Babylonian Numeral 1."'),'V'], [image("babylonian10_01b.png",width=>23,height=>32,tex_size=>40, extra_html_tags=>'alt="Babylonian Numeral 10."'), '\( \lt \)' ] - ], + ], caption => ' ', ); \} -$BR $BR +$BR $BR $BCENTER $ShownValue = \{ ans_rule(58) \} $ECENTER @@ -108,7 +108,7 @@ $BR END_TEXT Context()->normalStrings; -#\{ AnswerFormatHelp("numbers") \} Use this in texStrings to allows students to see formulas +#\{ helpLink("numbers") \} Use this in texStrings to allows students to see formulas ############################ # Answer evaluation @@ -119,24 +119,24 @@ $showPartialCorrectAnswers = 1; ANS(Compute($strAns)->cmp(checker => sub{ my ($correct, $student, $ansHash) = @_; - + $student = uc $student; # Convert student answer to uppercase - + @resultA = split(' ', $student, length($student)); # Used to check entire string placement @resultB = split(' ', $strAns, length($strAns)); - + $arrSize = @resultA; # Size of array $altCorrect = $correct; # copy of correct answer $altCorrect =~ s/ //g; # Removes spaces from correct answer! - + @resultC = split('', $student, length($student)); # Used solely for checking spaces/typos - #@resultD = split('', $strAns, length($student)); # Used solely for checking spaces/typos - + #@resultD = split('', $strAns, length($student)); # Used solely for checking spaces/typos + if($arrSize == 1 && $student eq $altCorrect) # Student didn't use spaces but has right answer { Value->Error("Place values must be seperated with a single space"); } - + for($var01 = 0; $var01 < length($student); $var01++) #Check for any additional spaces that aren't needed { if($resultC[$var01] eq ' ') @@ -144,7 +144,7 @@ ANS(Compute($strAns)->cmp(checker => sub{ $var03 += 1; # Count each space being used } } - + if($var03 == 1) # Not enough spaces are being used. IN THIS VERSION, there are either 0 or 2 spaces { Value->Error("Place values must be seperated with a single space"); @@ -153,9 +153,9 @@ ANS(Compute($strAns)->cmp(checker => sub{ { Value->Error("You have too many spaces in your answer! Double check your answer for unnecessary spaces"); } - + $var03 = 0; # This value MUST equal the number of symbols - 1 by the end of the loop - + for($var01 = 0; $var01 < length($student); $var01++) #Check for any additional spaces that aren't needed { if($resultC[$var01] eq ' ') @@ -164,7 +164,7 @@ ANS(Compute($strAns)->cmp(checker => sub{ } if($var01 < (length($student) - 1)) #Check to see if there's a minor typo, compares current char with next char - { + { if($resultC[$var01] eq 'V' && $resultC[$var01+1] eq $AddMe)# && $resultD[$var01] eq $AddMe && $resultD[$var01+1] eq 'V') # V then < { Value->Error("Symbols must be in decreasing order."); @@ -172,20 +172,20 @@ ANS(Compute($strAns)->cmp(checker => sub{ } } # End of For loop - + if($resultB[0] ne $resultB[2]) # First and last symbol in the answer aren't the same symbol { if($resultA[0] eq $resultB[2] || $resultA[2] eq $resultB[0]) # Student's answer is in wrong order { - Value->Error("Symbols must be in decreasing order!"); + Value->Error("Symbols must be in decreasing order!"); } } - + if($student ne $correct) # If all other checks fail, directly check strings { Value->Error(); # No error message } - + return 1; })); diff --git a/Contrib/SUNYOneonta/Numeration/Babylonian/Babylonian01c.pg b/Contrib/SUNYOneonta/Numeration/Babylonian/Babylonian01c.pg index 2e47bc1954..4271900d44 100644 --- a/Contrib/SUNYOneonta/Numeration/Babylonian/Babylonian01c.pg +++ b/Contrib/SUNYOneonta/Numeration/Babylonian/Babylonian01c.pg @@ -18,7 +18,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", "niceTables.pl", "contextArbitraryString.pl", @@ -86,21 +86,21 @@ BEGIN_TEXT $PAR Write $ShownValue as a Babylonian numeral. Use the following key to input your answer: -$BR +$BR $BR -$BR -\{ +$BR +\{ DataTable( [ [['Babylonian Symbol', headerrow => 1],'Keyboard Input'], [image("babylonian1_01c.png",width=>23,height=>32,tex_size=>40, extra_html_tags=>'alt="Babylonian Numeral 1."'),'V'], [image("babylonian10_01c.png",width=>23,height=>32,tex_size=>40, extra_html_tags=>'alt="Babylonian Numeral 10."'), '\( \lt \)' ] - ], + ], caption => ' ', ); \} -$BR $BR +$BR $BR $BCENTER $ShownValue = \{ ans_rule(58) \} $ECENTER @@ -108,7 +108,7 @@ $BR END_TEXT Context()->normalStrings; -#\{ AnswerFormatHelp("numbers") \} Use this in texStrings to allows students to see formulas +#\{ helpLink("numbers") \} Use this in texStrings to allows students to see formulas ############################ # Answer evaluation @@ -119,24 +119,24 @@ $showPartialCorrectAnswers = 1; ANS(Compute($strAns)->cmp(checker => sub{ my ($correct, $student, $ansHash) = @_; - + $student = uc $student; # Convert student answer to uppercase - + @resultA = split(' ', $student, length($student)); # Used to check entire string placement @resultB = split(' ', $strAns, length($strAns)); - + $arrSize = @resultA; # Size of array $altCorrect = $correct; # copy of correct answer $altCorrect =~ s/ //g; # Removes spaces from correct answer! - + @resultC = split('', $student, length($student)); # Used solely for checking spaces/typos - #@resultD = split('', $strAns, length($student)); # Used solely for checking spaces/typos - + #@resultD = split('', $strAns, length($student)); # Used solely for checking spaces/typos + if($arrSize == 1 && $student eq $altCorrect) # Student didn't use spaces but has right answer { Value->Error("Place values must be seperated with a single space"); } - + for($var01 = 0; $var01 < length($student); $var01++) #Check for any additional spaces that aren't needed { if($resultC[$var01] eq ' ') @@ -144,7 +144,7 @@ ANS(Compute($strAns)->cmp(checker => sub{ $var03 += 1; # Count each space being used } } - + if($var03 == 1) # Not enough spaces are being used. IN THIS VERSION, there are either 0 or 2 spaces { Value->Error("Place values must be seperated with a single space"); @@ -153,9 +153,9 @@ ANS(Compute($strAns)->cmp(checker => sub{ { Value->Error("You have too many spaces in your answer! Double check your answer for unnecessary spaces"); } - + $var03 = 0; # This value MUST equal the number of symbols - 1 by the end of the loop - + for($var01 = 0; $var01 < length($student); $var01++) #Check for any additional spaces that aren't needed { if($resultC[$var01] eq ' ') @@ -164,7 +164,7 @@ ANS(Compute($strAns)->cmp(checker => sub{ } if($var01 < (length($student) - 1)) #Check to see if there's a minor typo, compares current char with next char - { + { if($resultC[$var01] eq 'V' && $resultC[$var01+1] eq $AddMe)# && $resultD[$var01] eq $AddMe && $resultD[$var01+1] eq 'V') # V then < { Value->Error("Symbols must be in decreasing order."); @@ -172,20 +172,20 @@ ANS(Compute($strAns)->cmp(checker => sub{ } } # End of For loop - + if($resultB[0] ne $resultB[2]) # First and last symbol in the answer aren't the same symbol { if($resultA[0] eq $resultB[2] || $resultA[2] eq $resultB[0]) # Student's answer is in wrong order { - Value->Error("Symbols must be in decreasing order!"); + Value->Error("Symbols must be in decreasing order!"); } } - + if($student ne $correct) # If all other checks fail, directly check strings { Value->Error(); # No error message } - + return 1; })); diff --git a/Contrib/SUNYOneonta/Numeration/Egyptian/Egyptian01a.pg b/Contrib/SUNYOneonta/Numeration/Egyptian/Egyptian01a.pg index 846f476910..9dd0fc8631 100644 --- a/Contrib/SUNYOneonta/Numeration/Egyptian/Egyptian01a.pg +++ b/Contrib/SUNYOneonta/Numeration/Egyptian/Egyptian01a.pg @@ -18,7 +18,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", "niceTables.pl", "answerHints.pl", @@ -74,8 +74,8 @@ $PAR Write $ShownValue as an Egyptian numeral. Use the following key to input your answer: $BR - $BR - \{ + $BR + \{ DataTable( [ [['Egyptian Symbol', headerrow => 1],'Keyboard Input'], @@ -83,18 +83,18 @@ DataTable( [image("egyptian10_01a.png",width=>23,height=>32,tex_size=>40, extra_html_tags=>'alt="Egyptian Numeral 10."'),'h'], [image("egyptian100_01a.png",width=>23,height=>32,tex_size=>40, extra_html_tags=>'alt="Egyptian Numeral 100."'),'s'], [image("egyptian1000_01a.png",width=>23,height=>32,tex_size=>40, extra_html_tags=>'alt="Egyptian Numeral 1000."'),'f'] - ], + ], caption => ' ', ); \} -$BR -$BCENTER +$BR +$BCENTER $ShownValue = \{ ans_rule(20) \} $ECENTER END_TEXT Context()->normalStrings; -#\{ AnswerFormatHelp("numbers") \} Use this in texStrings to allows students to see formulas +#\{ helpLink("numbers") \} Use this in texStrings to allows students to see formulas ############################ # Answer evaluation @@ -105,9 +105,9 @@ $showPartialCorrectAnswers = 1; ANS(Compute($strAns)->cmp(checker => sub{ my ($correct, $student, $ansHash) = @_; - + $student =~ s/ //g; # Removes spaces from student answer! - + @resultA = split('', $student, length($student)); @resultB = split('', $correct, length($correct)); @@ -115,51 +115,51 @@ ANS(Compute($strAns)->cmp(checker => sub{ { Value->Error("Symbols must be in decreasing order!"); # 'f' is 1st character } - + if($resultA[0] eq 'i' && $resultA[length($student)-1] eq 's' && $resultB[0] eq 's' && $resultB[length($correct) - 1] eq 'i') { Value->Error("Symbols must be in decreasing order!"); # 's' is 1st character } - + if($resultA[0] eq 'i' && $resultA[length($student)-1] eq 'h' && $resultB[0] eq 'h' && $resultB[length($correct) - 1] eq 'i') { Value->Error("Symbols must be in decreasing order!"); # 'h' is 1st character } - + for($var01 = 0; $var01 < length($student); $var01++) #Check for any symbols in incorrect order { - + if($var01 < (length($student) - 1)) #Check to see if there's a minor typo, compares current char with next char { if($resultA[$var01] eq 'i' && $resultA[$var01+1] eq 'h') { Value->Error("Symbols must be in decreasing order."); # 'i' and 'h' are mixed up } - + if($resultA[$var01] eq 'h' && $resultA[$var01+1] eq 's') { Value->Error("Symbols must be in decreasing order."); # 'h' and 's' are mixed up } - + if($resultA[$var01] eq 's' && $resultA[$var01+1] eq 'f') # V then < { Value->Error("Symbols must be in decreasing order."); } - - } - + + } + } # End of For loop - + if(length($student) != length($correct)) { Value->Error(); # Length of value must be correct to proceed } - + if($student ne $correct) # If all other checks fail, directly check strings { - Value->Error(); + Value->Error(); } - + return 1; })); diff --git a/Contrib/SUNYOneonta/Numeration/Egyptian/Egyptian01b.pg b/Contrib/SUNYOneonta/Numeration/Egyptian/Egyptian01b.pg index 91da35f234..99ee2e890f 100644 --- a/Contrib/SUNYOneonta/Numeration/Egyptian/Egyptian01b.pg +++ b/Contrib/SUNYOneonta/Numeration/Egyptian/Egyptian01b.pg @@ -18,7 +18,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", "niceTables.pl", "answerHints.pl", @@ -75,8 +75,8 @@ $PAR Write $ShownValue as an Egyptian numeral. Use the following key to input your answer: $BR - $BR - \{ + $BR + \{ DataTable( [ [['Egyptian Symbol', headerrow => 1],'Keyboard Input'], @@ -84,18 +84,18 @@ DataTable( [image("egyptian10_01b.png",width=>23,height=>32,tex_size=>40, extra_html_tags=>'alt="Egyptian Numeral 10."'),'h'], [image("egyptian100_01b.png",width=>23,height=>32,tex_size=>40, extra_html_tags=>'alt="Egyptian Numeral 100."'),'s'], [image("egyptian1000_01b.png",width=>23,height=>32,tex_size=>40, extra_html_tags=>'alt="Egyptian Numeral 1000."'),'f'] - ], + ], caption => ' ', ); \} -$BR -$BCENTER +$BR +$BCENTER $ShownValue = \{ ans_rule(20) \} $ECENTER END_TEXT Context()->normalStrings; -#\{ AnswerFormatHelp("numbers") \} Use this in texStrings to allows students to see formulas +#\{ helpLink("numbers") \} Use this in texStrings to allows students to see formulas ############################ # Answer evaluation @@ -106,9 +106,9 @@ $showPartialCorrectAnswers = 1; ANS(Compute($strAns)->cmp(checker => sub{ my ($correct, $student, $ansHash) = @_; - + $student =~ s/ //g; # Removes spaces from student answer! - + @resultA = split('', $student, length($student)); @resultB = split('', $correct, length($correct)); @@ -116,51 +116,51 @@ ANS(Compute($strAns)->cmp(checker => sub{ { Value->Error("Symbols must be in decreasing order!"); # 'f' is 1st character } - + if($resultA[0] eq 'i' && $resultA[length($student)-1] eq 's' && $resultB[0] eq 's' && $resultB[length($correct) - 1] eq 'i') { Value->Error("Symbols must be in decreasing order!"); # 's' is 1st character } - + if($resultA[0] eq 'i' && $resultA[length($student)-1] eq 'h' && $resultB[0] eq 'h' && $resultB[length($correct) - 1] eq 'i') { Value->Error("Symbols must be in decreasing order!"); # 'h' is 1st character } - + for($var01 = 0; $var01 < length($student); $var01++) #Check for any symbols in incorrect order { - + if($var01 < (length($student) - 1)) #Check to see if there's a minor typo, compares current char with next char { if($resultA[$var01] eq 'i' && $resultA[$var01+1] eq 'h') { Value->Error("Symbols must be in decreasing order."); # 'i' and 'h' are mixed up } - + if($resultA[$var01] eq 'h' && $resultA[$var01+1] eq 's') { Value->Error("Symbols must be in decreasing order."); # 'h' and 's' are mixed up } - - if($resultA[$var01] eq 's' && $resultA[$var01+1] eq 'f') + + if($resultA[$var01] eq 's' && $resultA[$var01+1] eq 'f') { Value->Error("Symbols must be in decreasing order."); # 's' and 'f' are mixed up } - - } - + + } + } # End of For loop - + if(length($student) != length($correct)) { Value->Error(); # Length of value must be correct to proceed } - + if($student ne $correct) # If all other checks fail, directly check strings { - Value->Error(); + Value->Error(); } - + return 1; })); diff --git a/Contrib/SUNYOneonta/Numeration/Egyptian/Egyptian01c.pg b/Contrib/SUNYOneonta/Numeration/Egyptian/Egyptian01c.pg index 41811db665..be66c42494 100644 --- a/Contrib/SUNYOneonta/Numeration/Egyptian/Egyptian01c.pg +++ b/Contrib/SUNYOneonta/Numeration/Egyptian/Egyptian01c.pg @@ -18,7 +18,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", "niceTables.pl", "answerHints.pl", @@ -75,8 +75,8 @@ $PAR Write $ShownValue as an Egyptian numeral. Use the following key to input your answer: $BR - $BR - \{ + $BR + \{ DataTable( [ [['Egyptian Symbol', headerrow => 1],'Keyboard Input'], @@ -84,18 +84,18 @@ DataTable( [image("egyptian10_01c.png",width=>23,height=>32,tex_size=>40, extra_html_tags=>'alt="Egyptian Numeral 10."'),'h'], [image("egyptian100_01c.png",width=>23,height=>32,tex_size=>40, extra_html_tags=>'alt="Egyptian Numeral 100."'),'s'], [image("egyptian1000_01c.png",width=>23,height=>32,tex_size=>40, extra_html_tags=>'alt="Egyptian Numeral 1000."'),'f'] - ], + ], caption => ' ', ); \} -$BR -$BCENTER +$BR +$BCENTER $ShownValue = \{ ans_rule(20) \} $ECENTER END_TEXT Context()->normalStrings; -#\{ AnswerFormatHelp("numbers") \} Use this in texStrings to allows students to see formulas +#\{ helpLink("numbers") \} Use this in texStrings to allows students to see formulas ############################ # Answer evaluation @@ -106,9 +106,9 @@ $showPartialCorrectAnswers = 1; ANS(Compute($strAns)->cmp(checker => sub{ my ($correct, $student, $ansHash) = @_; - + $student =~ s/ //g; # Removes spaces from student answer! - + @resultA = split('', $student, length($student)); @resultB = split('', $correct, length($correct)); @@ -116,51 +116,51 @@ ANS(Compute($strAns)->cmp(checker => sub{ { Value->Error("Symbols must be in decreasing order!"); # 'f' is 1st character } - + if($resultA[0] eq 'i' && $resultA[length($student)-1] eq 's' && $resultB[0] eq 's' && $resultB[length($correct) - 1] eq 'i') { Value->Error("Symbols must be in decreasing order!"); # 's' is 1st character } - + if($resultA[0] eq 'i' && $resultA[length($student)-1] eq 'h' && $resultB[0] eq 'h' && $resultB[length($correct) - 1] eq 'i') { Value->Error("Symbols must be in decreasing order!"); # 'h' is 1st character } - + for($var01 = 0; $var01 < length($student); $var01++) #Check for any symbols in incorrect order { - + if($var01 < (length($student) - 1)) #Check to see if there's a minor typo, compares current char with next char { if($resultA[$var01] eq 'i' && $resultA[$var01+1] eq 'h') { Value->Error("Symbols must be in decreasing order."); # 'i' and 'h' are mixed up } - + if($resultA[$var01] eq 'h' && $resultA[$var01+1] eq 's') { Value->Error("Symbols must be in decreasing order."); # 'h' and 's' are mixed up } - - if($resultA[$var01] eq 's' && $resultA[$var01+1] eq 'f') + + if($resultA[$var01] eq 's' && $resultA[$var01+1] eq 'f') { Value->Error("Symbols must be in decreasing order."); # 's' and 'f' are mixed up } - - } - + + } + } # End of For loop - + if(length($student) != length($correct)) { Value->Error(); # Length of value must be correct to proceed } - + if($student ne $correct) # If all other checks fail, directly check strings { - Value->Error(); + Value->Error(); } - + return 1; })); diff --git a/Contrib/SUNYOneonta/Numeration/Mayan/Mayan01a.pg b/Contrib/SUNYOneonta/Numeration/Mayan/Mayan01a.pg index 473a2575de..8b2fa1d7d0 100644 --- a/Contrib/SUNYOneonta/Numeration/Mayan/Mayan01a.pg +++ b/Contrib/SUNYOneonta/Numeration/Mayan/Mayan01a.pg @@ -18,7 +18,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", "niceTables.pl", "contextArbitraryString.pl", @@ -50,7 +50,7 @@ chop $Ans02; $Ans03 = (' '); # Creates a string for storing variables in, 20s value chop $Ans03; -#Begin First String +#Begin First String if ($val01 == 0) { @@ -98,11 +98,11 @@ while($val01 > 0) if ($val02 == 0) # 1/20 chance this happens { if($val01 > 0) # Top Row is actually in use - {$Ans02 = join '', $Ans02, '0';} + {$Ans02 = join '', $Ans02, '0';} else - {$Ans02 = join '', $Ans02, 'none';} + {$Ans02 = join '', $Ans02, 'none';} } - + if (($val02 == 9) || ($val02 == 14) || ($val02 == 19)) { $Ans02 = join '', $strAns, '****'; # if 4 dots are needed, very top row $val02 -= 4; @@ -183,7 +183,7 @@ while($val03 > 0) } #The value of each answer field is ascending, with the bottom -# field being the 1s power, the middle field being the 20s power, and so forth. +# field being the 1s power, the middle field being the 20s power, and so forth. #(Note: The 1s value is an asterisk) # ########################### @@ -194,20 +194,20 @@ BEGIN_TEXT $PAR Write $ShownValue as a Mayan numeral. If an answer blank is not needed, enter ‘none’. Use the following key to input your answer: -\{ +\{ DataTable( [ [['Mayan Value', headerrow => 1],'Keyboard Input'], [image("mayan1_01a.png",width=>50,height=>20, extra_html_tags=>'alt="Mayan Numeral 1."'),'*'], [image("mayan5_01a.png",width=>30,height=>20, extra_html_tags=>'alt="Mayan Numeral 5."'),'-'], [image("mayan0_01a.png",width=>30,height=>20, extra_html_tags=>'alt="Mayan Numeral 0."'),'0'] - ], + ], caption => ' ', ); \} $BCENTER - $BR -$BR + $BR +$BR \{ ans_rule(20) \} $BR $BR @@ -221,7 +221,7 @@ $ECENTER END_TEXT Context()->normalStrings; -#\{ AnswerFormatHelp("numbers") \} Use this in texStrings to allows students to see formulas +#\{ helpLink("numbers") \} Use this in texStrings to allows students to see formulas ############################ # Answer evaluation @@ -232,44 +232,44 @@ $showPartialCorrectAnswers = 1; ANS(Compute($Ans01)->cmp(checker => sub{ my ($correct, $student, $ansHash) = @_; - + @resultA = split('', $student, length($student)); @resultB = split('', $correct, length($correct)); $check = length($student) - 1; - + $student =~ s/ //g; # Removes spaces from student answer! - + if($student eq $Ans03 && $Ans01 ne $Ans03) # Make sure student understands direction of Mayan numerals { - Value->Error("Symbols must be placed in increasing order."); + Value->Error("Symbols must be placed in increasing order."); } - + if(length($student) != length($correct)) { Value->Error(); # Check length of student input first } - - if($flag01 == 1) # First symbol is * , last symbol is - - { + + if($flag01 == 1) # First symbol is * , last symbol is - + { if($resultA[$check] eq '*' && $resultA[0] eq '-') # User put '*' in last spot, and '-' in first spot { Value->Error("Symbols must be placed in increasing order."); } - + #}else{ # Value is 1-5, 10, or 15 - + # if($resultA[0] ne $resultA[$check] || $resultA[0] ne $resultB[0]) # { # Value->Error("Double check your input; ' * ' isn't equal to ' - '."); # } - + } - + if($student ne $correct) { Value->Error(); # If all other checks fail, directly check strings } - + return 1; })); @@ -278,37 +278,37 @@ ANS(Compute($Ans01)->cmp(checker => sub{ ANS(Compute($Ans02)->cmp(checker => sub{ my ($correct, $student, $ansHash) = @_; - + @resultA = split('', $student, length($student)); @resultB = split('', $correct, length($correct)); $check = length($student) - 1; - + if(length($student) != length($correct)) { Value->Error(); # Check length of student input first } if($flag02 == 1) # First symbol is *, last symbol is - - { + { if($resultA[$check] eq '*' && $resultA[0] eq '-') # User put '*' in last spot, and '-' in first spot { Value->Error("Symbols must be placed in increasing order.."); } - + #}else{ # Value is 1-5, 10, or 15 - + # if($resultA[0] ne $resultA[$check] || $resultA[0] ne $resultB[0]) # { # Value->Error("Double check your input; ' * ' isn't equal to ' - '."); # } - + } - + if($student ne $correct) { Value->Error(); # If all other checks fail, directly check strings } - + return 1; })); @@ -317,42 +317,42 @@ ANS(Compute($Ans02)->cmp(checker => sub{ ANS(Compute($Ans03)->cmp(checker => sub{ my ($correct, $student, $ansHash) = @_; - + @resultA = split('', $student, length($student)); @resultB = split('', $correct, length($correct)); $check = length($student) - 1; - + if($student eq $Ans01 && $Ans01 ne $Ans03) # Make sure student understands direction of Mayan numerals { - Value->Error("Symbols must be placed in increasing order..."); + Value->Error("Symbols must be placed in increasing order..."); } - + if(length($student) != length($correct)) { Value->Error(); # Check length of student input first } if($flag03 == 1) # First symbol is *, last symbol is - - { + { if($resultA[$check] eq '*' && $resultA[0] eq '-') # User put '*' in last spot, and '-' in first spot { Value->Error("Symbols must be placed in increasing order..."); } - + #}else{ # Value is 1-5, 10, or 15 - + # if($resultA[0] ne $resultA[$check] || $resultA[0] ne $resultB[0]) # { # Value->Error("Double check your input; ' * ' isn't equal to ' - '."); # } - + } - + if($student ne $correct) { Value->Error(); # If all other checks fail, directly check strings } - + return 1; })); diff --git a/Contrib/SUNYOneonta/Numeration/Mayan/Mayan01b.pg b/Contrib/SUNYOneonta/Numeration/Mayan/Mayan01b.pg index 4a71df07af..bb592e12f2 100644 --- a/Contrib/SUNYOneonta/Numeration/Mayan/Mayan01b.pg +++ b/Contrib/SUNYOneonta/Numeration/Mayan/Mayan01b.pg @@ -18,7 +18,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", "niceTables.pl", "contextArbitraryString.pl", @@ -50,7 +50,7 @@ chop $Ans02; $Ans03 = (' '); # Creates a string for storing variables in, 20s value chop $Ans03; -#Begin First String +#Begin First String if ($val01 == 0) { @@ -98,11 +98,11 @@ while($val01 > 0) if ($val02 == 0) # 1/20 chance this happens { if($val01 > 0) # Top Row is actually in use - {$Ans02 = join '', $Ans02, '0';} + {$Ans02 = join '', $Ans02, '0';} else {$Ans02 = join '', $Ans02, '0';} #For this problem top row is in use and we need 0 here so this is fixing a bug quick dirty } - + if (($val02 == 9) || ($val02 == 14) || ($val02 == 19)) { $Ans02 = join '', $strAns, '****'; # if 4 dots are needed, very top row $val02 -= 4; @@ -183,7 +183,7 @@ while($val03 > 0) } #The value of each answer field is ascending, with the bottom -# field being the 1s power, the middle field being the 20s power, and so forth. +# field being the 1s power, the middle field being the 20s power, and so forth. #(Note: The 1s value is an asterisk) # ########################### @@ -194,20 +194,20 @@ BEGIN_TEXT $PAR Write $ShownValue as a Mayan numeral. If an answer blank is not needed, enter ‘none’. Use the following key to input your answer: -\{ +\{ DataTable( [ [['Mayan Value', headerrow => 1],'Keyboard Input'], [image("mayan1_01b.png",width=>50,height=>20, extra_html_tags=>'alt="Mayan Numeral 1."'),'*'], [image("mayan5_01b.png",width=>30,height=>20, extra_html_tags=>'alt="Mayan Numeral 5."'),'-'], [image("mayan0_01b.png",width=>30,height=>20, extra_html_tags=>'alt="Mayan Numeral 0."'),'0'] - ], + ], caption => ' ', ); \} $BCENTER - $BR -$BR + $BR +$BR \{ ans_rule(20) \} $BR $BR @@ -221,7 +221,7 @@ $ECENTER END_TEXT Context()->normalStrings; -#\{ AnswerFormatHelp("numbers") \} Use this in texStrings to allows students to see formulas +#\{ helpLink("numbers") \} Use this in texStrings to allows students to see formulas ############################ # Answer evaluation @@ -232,44 +232,44 @@ $showPartialCorrectAnswers = 1; ANS(Compute($Ans01)->cmp(checker => sub{ my ($correct, $student, $ansHash) = @_; - + @resultA = split('', $student, length($student)); @resultB = split('', $correct, length($correct)); $check = length($student) - 1; - + $student =~ s/ //g; # Removes spaces from student answer! - + if($student eq $Ans03 && $Ans01 ne $Ans03) # Make sure student understands direction of Mayan numerals { - Value->Error("Symbols must be placed in increasing order."); + Value->Error("Symbols must be placed in increasing order."); } - + if(length($student) != length($correct)) { Value->Error(); # Check length of student input first } - - if($flag01 == 1) # First symbol is * , last symbol is - - { + + if($flag01 == 1) # First symbol is * , last symbol is - + { if($resultA[$check] eq '*' && $resultA[0] eq '-') # User put '*' in last spot, and '-' in first spot { Value->Error("Symbols must be placed in increasing order."); } - + #}else{ # Value is 1-5, 10, or 15 - + # if($resultA[0] ne $resultA[$check] || $resultA[0] ne $resultB[0]) # { # Value->Error("Double check your input; ' * ' isn't equal to ' - '."); # } - + } - + if($student ne $correct) { Value->Error(); # If all other checks fail, directly check strings } - + return 1; })); @@ -278,37 +278,37 @@ ANS(Compute($Ans01)->cmp(checker => sub{ ANS(Compute($Ans02)->cmp(checker => sub{ my ($correct, $student, $ansHash) = @_; - + @resultA = split('', $student, length($student)); @resultB = split('', $correct, length($correct)); $check = length($student) - 1; - + if(length($student) != length($correct)) { Value->Error(); # Check length of student input first } if($flag02 == 1) # First symbol is *, last symbol is - - { + { if($resultA[$check] eq '*' && $resultA[0] eq '-') # User put '*' in last spot, and '-' in first spot { Value->Error("Symbols must be placed in increasing order.."); } - + #}else{ # Value is 1-5, 10, or 15 - + # if($resultA[0] ne $resultA[$check] || $resultA[0] ne $resultB[0]) # { # Value->Error("Double check your input; ' * ' isn't equal to ' - '."); # } - + } - + if($student ne $correct) { Value->Error(); # If all other checks fail, directly check strings } - + return 1; })); @@ -317,42 +317,42 @@ ANS(Compute($Ans02)->cmp(checker => sub{ ANS(Compute($Ans03)->cmp(checker => sub{ my ($correct, $student, $ansHash) = @_; - + @resultA = split('', $student, length($student)); @resultB = split('', $correct, length($correct)); $check = length($student) - 1; - + if($student eq $Ans01 && $Ans01 ne $Ans03) # Make sure student understands direction of Mayan numerals { - Value->Error("Symbols must be placed in increasing order..."); + Value->Error("Symbols must be placed in increasing order..."); } - + if(length($student) != length($correct)) { Value->Error(); # Check length of student input first } if($flag03 == 1) # First symbol is *, last symbol is - - { + { if($resultA[$check] eq '*' && $resultA[0] eq '-') # User put '*' in last spot, and '-' in first spot { Value->Error("Symbols must be placed in increasing order..."); } - + #}else{ # Value is 1-5, 10, or 15 - + # if($resultA[0] ne $resultA[$check] || $resultA[0] ne $resultB[0]) # { # Value->Error("Double check your input; ' * ' isn't equal to ' - '."); # } - + } - + if($student ne $correct) { Value->Error(); # If all other checks fail, directly check strings } - + return 1; })); diff --git a/Contrib/SUNYOneonta/Numeration/Mayan/Mayan01c.pg b/Contrib/SUNYOneonta/Numeration/Mayan/Mayan01c.pg index 09f1ebd75f..059f5037b7 100644 --- a/Contrib/SUNYOneonta/Numeration/Mayan/Mayan01c.pg +++ b/Contrib/SUNYOneonta/Numeration/Mayan/Mayan01c.pg @@ -18,7 +18,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", "niceTables.pl", "contextArbitraryString.pl", @@ -50,7 +50,7 @@ chop $Ans02; $Ans03 = (' '); # Creates a string for storing variables in, 20s value chop $Ans03; -#Begin First String +#Begin First String if ($val01 == 0) { @@ -98,11 +98,11 @@ while($val01 > 0) if ($val02 == 0) # 1/20 chance this happens { if($val01 > 0) # Top Row is actually in use - {$Ans02 = join '', $Ans02, '0';} + {$Ans02 = join '', $Ans02, '0';} else - {$Ans02 = join '', $Ans02, 'none';} + {$Ans02 = join '', $Ans02, 'none';} } - + if (($val02 == 9) || ($val02 == 14) || ($val02 == 19)) { $Ans02 = join '', $strAns, '****'; # if 4 dots are needed, very top row $val02 -= 4; @@ -183,7 +183,7 @@ while($val03 > 0) } #The value of each answer field is ascending, with the bottom -# field being the 1s power, the middle field being the 20s power, and so forth. +# field being the 1s power, the middle field being the 20s power, and so forth. #(Note: The 1s value is an asterisk) # ########################### @@ -194,20 +194,20 @@ BEGIN_TEXT $PAR Write $ShownValue as a Mayan numeral. If an answer blank is not needed, enter ‘none’. Use the following key to input your answer: -\{ +\{ DataTable( [ [['Mayan Value', headerrow => 1],'Keyboard Input'], [image("mayan1_01c.png",width=>50,height=>20, extra_html_tags=>'alt="Mayan Numeral 1."'),'*'], [image("mayan5_01c.png",width=>30,height=>20, extra_html_tags=>'alt="Mayan Numeral 5."'),'-'], [image("mayan0_01c.png",width=>30,height=>20, extra_html_tags=>'alt="Mayan Numeral 0."'),'0'] - ], + ], caption => ' ', ); \} $BCENTER - $BR -$BR + $BR +$BR \{ ans_rule(20) \} $BR $BR @@ -221,7 +221,7 @@ $ECENTER END_TEXT Context()->normalStrings; -#\{ AnswerFormatHelp("numbers") \} Use this in texStrings to allows students to see formulas +#\{ helpLink("numbers") \} Use this in texStrings to allows students to see formulas ############################ # Answer evaluation @@ -232,44 +232,44 @@ $showPartialCorrectAnswers = 1; ANS(Compute($Ans01)->cmp(checker => sub{ my ($correct, $student, $ansHash) = @_; - + @resultA = split('', $student, length($student)); @resultB = split('', $correct, length($correct)); $check = length($student) - 1; - + $student =~ s/ //g; # Removes spaces from student answer! - + if($student eq $Ans03 && $Ans01 ne $Ans03) # Make sure student understands direction of Mayan numerals { - Value->Error("Symbols must be placed in increasing order."); + Value->Error("Symbols must be placed in increasing order."); } - + if(length($student) != length($correct)) { Value->Error(); # Check length of student input first } - - if($flag01 == 1) # First symbol is * , last symbol is - - { + + if($flag01 == 1) # First symbol is * , last symbol is - + { if($resultA[$check] eq '*' && $resultA[0] eq '-') # User put '*' in last spot, and '-' in first spot { Value->Error("Symbols must be placed in increasing order."); } - + #}else{ # Value is 1-5, 10, or 15 - + # if($resultA[0] ne $resultA[$check] || $resultA[0] ne $resultB[0]) # { # Value->Error("Double check your input; ' * ' isn't equal to ' - '."); # } - + } - + if($student ne $correct) { Value->Error(); # If all other checks fail, directly check strings } - + return 1; })); @@ -278,37 +278,37 @@ ANS(Compute($Ans01)->cmp(checker => sub{ ANS(Compute($Ans02)->cmp(checker => sub{ my ($correct, $student, $ansHash) = @_; - + @resultA = split('', $student, length($student)); @resultB = split('', $correct, length($correct)); $check = length($student) - 1; - + if(length($student) != length($correct)) { Value->Error(); # Check length of student input first } if($flag02 == 1) # First symbol is *, last symbol is - - { + { if($resultA[$check] eq '*' && $resultA[0] eq '-') # User put '*' in last spot, and '-' in first spot { Value->Error("Symbols must be placed in increasing order.."); } - + #}else{ # Value is 1-5, 10, or 15 - + # if($resultA[0] ne $resultA[$check] || $resultA[0] ne $resultB[0]) # { # Value->Error("Double check your input; ' * ' isn't equal to ' - '."); # } - + } - + if($student ne $correct) { Value->Error(); # If all other checks fail, directly check strings } - + return 1; })); @@ -317,42 +317,42 @@ ANS(Compute($Ans02)->cmp(checker => sub{ ANS(Compute($Ans03)->cmp(checker => sub{ my ($correct, $student, $ansHash) = @_; - + @resultA = split('', $student, length($student)); @resultB = split('', $correct, length($correct)); $check = length($student) - 1; - + if($student eq $Ans01 && $Ans01 ne $Ans03) # Make sure student understands direction of Mayan numerals { - Value->Error("Symbols must be placed in increasing order..."); + Value->Error("Symbols must be placed in increasing order..."); } - + if(length($student) != length($correct)) { Value->Error(); # Check length of student input first } if($flag03 == 1) # First symbol is *, last symbol is - - { + { if($resultA[$check] eq '*' && $resultA[0] eq '-') # User put '*' in last spot, and '-' in first spot { Value->Error("Symbols must be placed in increasing order..."); } - + #}else{ # Value is 1-5, 10, or 15 - + # if($resultA[0] ne $resultA[$check] || $resultA[0] ne $resultB[0]) # { # Value->Error("Double check your input; ' * ' isn't equal to ' - '."); # } - + } - + if($student ne $correct) { Value->Error(); # If all other checks fail, directly check strings } - + return 1; })); diff --git a/Contrib/UatBuffalo/DifferentialEquations/prob151.pg b/Contrib/UatBuffalo/DifferentialEquations/prob151.pg index 10b0c2e4e6..56edb7fb0f 100644 --- a/Contrib/UatBuffalo/DifferentialEquations/prob151.pg +++ b/Contrib/UatBuffalo/DifferentialEquations/prob151.pg @@ -14,14 +14,14 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserFormulaUpToConstant.pl", "PGcourse.pl", "PGML.pl" ); Context("Numeric")->variables->add( - 'C1'=>"Real", 'C2'=>"Real", 'C3'=>"Real", 'A'=>"Real", + 'C1'=>"Real", 'C2'=>"Real", 'C3'=>"Real", 'A'=>"Real", 'B'=>"Real", 'C'=>"Real", 'D'=>"Real", 'E'=>"Real", 'F'=>"Real", 'G'=>"Real", 'H'=>"Real", 'C4'=>"Real", 'C5'=>"Real" ); @@ -40,7 +40,7 @@ $showPartialCorrectAnswers = 1; sub isConstant { my $f = Formula(@_); for (0..5){ - if ($f->eval(x=>random(-19.9,19.9,0.2)) != + if ($f->eval(x=>random(-19.9,19.9,0.2)) != $f->eval(x=>random(-19.9,19.9,0.2))){ return 0; } @@ -79,13 +79,13 @@ sub CreateCmp { }else{ @terms2 = @inputs[$splitter+1..$n]; } - + return $actual->cmp( checker => sub { my ($corr,$stu,$ansHash) = @_; - + my @correct_terms = (0) x scalar(@terms1); - + if ($particular){ for my $i (@letters){ $dstu = $stu->D($i); @@ -117,13 +117,13 @@ sub CreateCmp { $validstu = 1; } } - + Value->Error("Your answer is not efficient due to the " . $dstu . " term.") if ($validstu == 0); } }} - for my $i (0..$#correct_terms){ + for my $i (0..$#correct_terms){ if ($correct_terms[$i] > 1){ $wrong = $terms1[$i]; if ($wrong == "1"){ @@ -139,7 +139,7 @@ sub CreateCmp { Value->Error("Terms are missing, try adding an " . $wrong . " term."); } } - + return 1; } ) @@ -159,17 +159,17 @@ $cmp3 = CreateCmp("C1+C2 e^(-2x)+C3 e^(2x)", $cmp4 = CreateCmp("Ax^3 + Bx^2 + C x + D x e^(2x) + E e^(3x)", "x^3", "x^2", "x", "x e^(2x)", "e^(3x)", "1", "e^(-2x)", "e^(2x)", "5"); - + $cmp5 = CreateCmp("C1 + C2 e^(-2x)cos(3x) + C3 e^(-2x)sin(3x)", "1", "e^(-2x)cos(3x)", "e^(-2x)sin(3x)", "3"); - + $cmp6 = CreateCmp("Ax^3 + Bx^2 + C x + D x e^(-2x)cos(3x) + E x e^(-2x)sin(3x)", "x^3", "x^2", "x", "x e^(-2x)cos(3x)", "x e^(-2x)sin(3x)", "1", "e^(-2x)cos(3x)", "e^(-2x)sin(3x)", "5"); $cmp7 = CreateCmp("C1 + C2 x + C3 x^2 + C4 e^(-x)cos(x) + C5 e^(-x)sin(x)", "1", "x", "x^2", "e^(-x)cos(x)", "e^(-x)sin(x)", "5"); - + $cmp8 = CreateCmp("Ax^6 + Bx^5 + C x^4 + D x^3 + E x e^(-x)sin(x) + F x e^(-x)cos(x)", "x^6", "x^5", "x^4", "x^3", "x e^(-x)sin(x)", "x e^(-x)cos(x)", "1", "x", "x^2", "e^(-x)cos(x)", "e^(-x)sin(x)", "6"); diff --git a/Contrib/Utah/Intermediate_Algebra/1.1/pr6.pg b/Contrib/Utah/Intermediate_Algebra/1.1/pr6.pg index 5fbeddbbf7..23e3e7a690 100644 --- a/Contrib/Utah/Intermediate_Algebra/1.1/pr6.pg +++ b/Contrib/Utah/Intermediate_Algebra/1.1/pr6.pg @@ -38,7 +38,7 @@ loadMacros( "PGstandard.pl", "PGchoicemacros.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", "MathObjects.pl", ); @@ -136,7 +136,7 @@ that a person weighing $weight[$wt] pounds uses in $timea[$t] of $activities[$a]. $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} $PAR (b) The table illustrates a relationship between the number of calories used per minute $activities[$a] and a diff --git a/Contrib/Utah/Intermediate_Algebra/1.4/pr2.pg b/Contrib/Utah/Intermediate_Algebra/1.4/pr2.pg index 44b4708aea..656cae2af5 100644 --- a/Contrib/Utah/Intermediate_Algebra/1.4/pr2.pg +++ b/Contrib/Utah/Intermediate_Algebra/1.4/pr2.pg @@ -29,14 +29,14 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "PGchoicemacros.pl", "MathObjects.pl", "PGcourse.pl", -"AnswerFormatHelp.pl", + ); TEXT(beginproblem()); @@ -98,7 +98,7 @@ foreach my $i (0..4) { Context()->texStrings; BEGIN_TEXT -Suppose the function \( g \) is given by the +Suppose the function \( g \) is given by the following table of values. $BCENTER \{ begintable(6) \} @@ -108,11 +108,11 @@ $BCENTER $ECENTER $PAR Use the table to fill in the missing values. -There may be more than one correct answer, in -which case you should enter your answers as a +There may be more than one correct answer, in +which case you should enter your answers as a comma separated list. If there are no correct answers, enter ${BITALIC}NONE.${EITALIC} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $PAR \( g(0) \) = \{ ans_rule(5) \} $PAR diff --git a/Contrib/Utah/Intermediate_Algebra/1.6/pr7.pg b/Contrib/Utah/Intermediate_Algebra/1.6/pr7.pg index f2ac2ef849..4c8c5110d0 100644 --- a/Contrib/Utah/Intermediate_Algebra/1.6/pr7.pg +++ b/Contrib/Utah/Intermediate_Algebra/1.6/pr7.pg @@ -18,7 +18,7 @@ DOCUMENT(); # This should be the first executable line in the problem. DOCUMENT(); # This should be the first executable line in the problem. loadMacros( - + "PGstandard.pl", "PGchoicemacros.pl", "MathObjects.pl", @@ -28,7 +28,7 @@ loadMacros( "unionTables.pl", "parserPopUp.pl", "unionImage.pl", -"AnswerFormatHelp.pl" +"helpLink.pl" ); TEXT(beginproblem()); @@ -60,7 +60,7 @@ $ineq4 = Compute("x<=2"); BEGIN_TEXT Provide the inequality notation and interval notation for the given intervals. If you need to know how to enter in inequalities and intervals, for example how to enter \(\leq\) or \(\infty\) in WeBWork, use this link: -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} $BR$BR diff --git a/Contrib/Utah/Intermediate_Algebra/10.1A/pr1.pg b/Contrib/Utah/Intermediate_Algebra/10.1A/pr1.pg index f28bd94a68..8ca6cbbdba 100644 --- a/Contrib/Utah/Intermediate_Algebra/10.1A/pr1.pg +++ b/Contrib/Utah/Intermediate_Algebra/10.1A/pr1.pg @@ -29,7 +29,7 @@ loadMacros( "unionTables.pl", "parserPopUp.pl", "unionImage.pl", -"AnswerFormatHelp.pl", + "PG.pl", "PGbasicmacros.pl", "PGanswermacros.pl", @@ -78,7 +78,7 @@ $BR$BR You are given: \(x^2+ $s1 x+ \) _____. $BR$BR -Use the table model to find the term to add that lets the polynomial be factored into a perfect square. Then factor. +Use the table model to find the term to add that lets the polynomial be factored into a perfect square. Then factor. $BR$BR diff --git a/Contrib/Utah/Intermediate_Algebra/10.1A/pr2.pg b/Contrib/Utah/Intermediate_Algebra/10.1A/pr2.pg index d23280d4c5..dc58a7cb25 100644 --- a/Contrib/Utah/Intermediate_Algebra/10.1A/pr2.pg +++ b/Contrib/Utah/Intermediate_Algebra/10.1A/pr2.pg @@ -28,7 +28,7 @@ loadMacros( "unionTables.pl", "parserPopUp.pl", "unionImage.pl", -"AnswerFormatHelp.pl", + "PG.pl", "PGbasicmacros.pl", "PGanswermacros.pl", @@ -75,7 +75,7 @@ BEGIN_TEXT $BR$BR -You are given: \(x^2+ $s1 x+ $c\). Use a table model to rewrite this quadratic in completed square form. +You are given: \(x^2+ $s1 x+ $c\). Use a table model to rewrite this quadratic in completed square form. $BR$BR @@ -102,7 +102,7 @@ B. When we enter the parts of \(x^2+ $s1 x\) into the the lower right four squar $BR$BR -C. When we complete the square, we add something to the expression \(x^2+ $s1 x\) that was not originally there. What must we now add, so that we do not change the original expression? +C. When we complete the square, we add something to the expression \(x^2+ $s1 x\) that was not originally there. What must we now add, so that we do not change the original expression? \{ans_rule(20)\} @@ -121,7 +121,7 @@ END_TEXT ANS($x->cmp()); ANS($hfs->cmp()); ANS($x->cmp()); -ANS($halfsecondx->cmp()); +ANS($halfsecondx->cmp()); ANS($hfs->cmp()); ANS($halfsecondx->cmp()); ANS($third->cmp()); diff --git a/Contrib/Utah/Intermediate_Algebra/10.1A/pr3.pg b/Contrib/Utah/Intermediate_Algebra/10.1A/pr3.pg index 4529205dd5..52cf05320b 100644 --- a/Contrib/Utah/Intermediate_Algebra/10.1A/pr3.pg +++ b/Contrib/Utah/Intermediate_Algebra/10.1A/pr3.pg @@ -28,7 +28,7 @@ loadMacros( "unionTables.pl", "parserPopUp.pl", "unionImage.pl", -"AnswerFormatHelp.pl", + "PG.pl", "PGbasicmacros.pl", "PGanswermacros.pl", @@ -78,7 +78,7 @@ BEGIN_TEXT $BR$BR -You are given: \($f x^2+ $fs1 x+ $c\). Use the table model to rewrite this quadratic in standard form (i.e., in completed square form). +You are given: \($f x^2+ $fs1 x+ $c\). Use the table model to rewrite this quadratic in standard form (i.e., in completed square form). $BR$BR @@ -125,7 +125,7 @@ ANS($first->cmp()); ANS($x->cmp()); ANS($hfs->cmp()); ANS($x->cmp()); -ANS($halfsecondx->cmp()); +ANS($halfsecondx->cmp()); ANS($hfs->cmp()); ANS($halfsecondx->cmp()); ANS($third->cmp()); diff --git a/Contrib/Utah/Intermediate_Algebra/10.1B/pr1.pg b/Contrib/Utah/Intermediate_Algebra/10.1B/pr1.pg index feb7be3a68..53455b9296 100644 --- a/Contrib/Utah/Intermediate_Algebra/10.1B/pr1.pg +++ b/Contrib/Utah/Intermediate_Algebra/10.1B/pr1.pg @@ -11,11 +11,11 @@ ## KEYWORDS('quadratic functions') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Algebra: Form and Function') -## DBchapter('Quadratic Functions') +## DBchapter('Quadratic Functions') ## BookChapter('Quadratic Functions, Expressions, and Equations') -## DBsection('Completing the Square') +## DBsection('Completing the Square') ## BookSection('Solving Quadratic Equations by Completing the Square') ## Date('01/01/10') ## Author('Paul Pearson') @@ -30,12 +30,12 @@ #################################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -74,7 +74,7 @@ $r2 = Compute("-($h) - sqrt($hh + $b)"); Context()->texStrings; BEGIN_TEXT (a) Complete the square by writing \( $expr \) in the form -\( ($var-h)^2+k \). Note: the numbers \( h \) and \( k \) +\( ($var-h)^2+k \). Note: the numbers \( h \) and \( k \) can be positive or negative. $BR $BR @@ -82,10 +82,10 @@ $BR \{ ans_rule(10) \} \( \big)^2 + \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR -(b) Solve the equation \( $expr = 0 \) by completing the +(b) Solve the equation \( $expr = 0 \) by completing the square. If there is more than one correct answer, enter your answers as a comma separated list. If there are no solutions, enter @@ -93,7 +93,7 @@ ${BITALIC}NONE.${EITALIC} $BR $BR \( x \) = \{ ans_rule(30) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT diff --git a/Contrib/Utah/Intermediate_Algebra/10.1B/pr2.pg b/Contrib/Utah/Intermediate_Algebra/10.1B/pr2.pg index aaecb7189f..1939cf962a 100644 --- a/Contrib/Utah/Intermediate_Algebra/10.1B/pr2.pg +++ b/Contrib/Utah/Intermediate_Algebra/10.1B/pr2.pg @@ -11,11 +11,11 @@ ## KEYWORDS('quadratic functions', 'quadratic', 'completing the square') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Algebra: Form and Function') -## DBchapter('Quadratic Functions') +## DBchapter('Quadratic Functions') ## BookChapter('Quadratic Functions, Expressions, and Equations') -## DBsection('Completing the Square') +## DBsection('Completing the Square') ## BookSection('Solving Quadratic Equations by Completing the Square') ## Date('01/01/10') ## Author('Paul Pearson') @@ -30,12 +30,12 @@ #################################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -70,26 +70,26 @@ $r2 = Compute("-($h) - sqrt( ($ahh - 1) / ($a) )"); Context()->texStrings; BEGIN_TEXT (a) Complete the square by writing \( $expr \) in the form -\( a($var-h)^2+k \). Note: the numbers \( a, h \) and \( k \) +\( a($var-h)^2+k \). Note: the numbers \( a, h \) and \( k \) can be positive or negative. $BR $BR -\( $expr = \) +\( $expr = \) \{ ans_rule(5) \} \( \cdot \big( \) \{ ans_rule(10) \} \( \big)^2 + \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR -(b) Solve the equation \( $expr = 0 \) by completing the square. If there is more than one -correct answer, enter your answers as a comma separated list. +(b) Solve the equation \( $expr = 0 \) by completing the square. If there is more than one +correct answer, enter your answers as a comma separated list. If there are no solutions, enter ${BITALIC}NONE.${EITALIC} $BR $BR \( x \) = \{ ans_rule(30) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/Utah/Intermediate_Algebra/10.4B/pr4.pg b/Contrib/Utah/Intermediate_Algebra/10.4B/pr4.pg index 505b7504e4..f516ceae3b 100644 --- a/Contrib/Utah/Intermediate_Algebra/10.4B/pr4.pg +++ b/Contrib/Utah/Intermediate_Algebra/10.4B/pr4.pg @@ -10,11 +10,11 @@ ## KEYWORDS('quadratic functions', 'quadratic') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Algebra: Form and Function') -## DBchapter('Quadratic Functions') +## DBchapter('Quadratic Functions') ## BookChapter('Quadratic Functions, Expressions, and Equations') -## DBsection('Quadratic Functions') +## DBsection('Quadratic Functions') ## BookSection('Quadratic Functions') ## Date('01/01/10') ## Author('Paul Pearson') @@ -32,12 +32,12 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", "parserNumberWithUnits.pl", ); -TEXT(beginproblem()); +TEXT(beginproblem()); #################################### # Setup @@ -60,28 +60,28 @@ $answerb = NumberWithUnits("$a","s"); Context()->texStrings; BEGIN_TEXT A coin, thrown upward at time \( t = 0 \) from -an office in the Empire State Building, +an office in the Empire State Building, has height in feet above the ground \( t \) seconds -later given by +later given by $PAR $BCENTER -\( -h(t) -= $p[2] t^2 + $p[1] t + $p[0] +\( +h(t) += $p[2] t^2 + $p[1] t + $p[0] = -16 (t-$a)(t+$b). \) $ECENTER $PAR (a) From what height is the coin thrown? Include units in your answer. -\{ ans_rule(20) \} -\{ AnswerFormatHelp("units","help (units)") \} +\{ ans_rule(20) \} +\{ helpLink("units","help (units)") \} $BR $BR (b) At what time does the coin hit the ground? Include units in your answer. -\{ ans_rule(20) \} -\{ AnswerFormatHelp("units","help (units)") \} +\{ ans_rule(20) \} +\{ helpLink("units","help (units)") \} $BR$BR Hint: Think about how the x-intercept(s), y-intercept, and the vertex of the graph correspond to different parts of the scenario of this problem. END_TEXT diff --git a/Contrib/Utah/Intermediate_Algebra/10.4B/pr5.pg b/Contrib/Utah/Intermediate_Algebra/10.4B/pr5.pg index d96df26eeb..6184f11cb5 100644 --- a/Contrib/Utah/Intermediate_Algebra/10.4B/pr5.pg +++ b/Contrib/Utah/Intermediate_Algebra/10.4B/pr5.pg @@ -11,11 +11,11 @@ ## KEYWORDS('quadratic functions') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Algebra: Form and Function') -## DBchapter('Quadratic Functions') +## DBchapter('Quadratic Functions') ## BookChapter('Quadratic Functions, Expressions, and Equations') -## DBsection('Completing the Square') +## DBsection('Completing the Square') ## BookSection('Solving Quadratic Equations by Completing the Square') ## Date('01/01/10') ## Author('Paul Pearson') @@ -30,12 +30,12 @@ #################################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", "parserNumberWithUnits.pl", ); @@ -68,14 +68,14 @@ from which the sunglasses were dropped. Include units in your answer. $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("units") \} +\{ helpLink("units") \} $BR $BR (b) When do the sunglasses hit the ground? Include units in your answer. $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("units") \} +\{ helpLink("units") \} $BR$BR Hint: Think about how the x-intercept(s), y-intercept, and the vertex of the graph correspond to different parts of the scenario of this problem. END_TEXT diff --git a/Contrib/Utah/Intermediate_Algebra/13.1/pr12.pg b/Contrib/Utah/Intermediate_Algebra/13.1/pr12.pg index a3e3b3f070..0f24984a9d 100644 --- a/Contrib/Utah/Intermediate_Algebra/13.1/pr12.pg +++ b/Contrib/Utah/Intermediate_Algebra/13.1/pr12.pg @@ -16,12 +16,12 @@ ## Section1('11.2') ## Problem1('30') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -32,7 +32,7 @@ TEXT(beginproblem()); Context("Numeric"); Context()->variables->are(t=>"Real"); -Context()->flags->set(useBaseTenLog=>1); +Context()->flags->set(useBaseTenLog=>1); Context()->flags->set( tolerance => 0.01, tolType => "absolute"); $b = 10; @@ -59,7 +59,7 @@ $BR $BR$BR Enter your answer in the form, "log(number)". $BR$BR -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/Utah/Intermediate_Algebra/13.1/pr9.pg b/Contrib/Utah/Intermediate_Algebra/13.1/pr9.pg index 20b5f05977..f874ea738b 100644 --- a/Contrib/Utah/Intermediate_Algebra/13.1/pr9.pg +++ b/Contrib/Utah/Intermediate_Algebra/13.1/pr9.pg @@ -19,12 +19,12 @@ ## Problem1('16') ## KEYWORDS('exponential functions','growth rate','growth factor') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -35,7 +35,7 @@ TEXT(beginproblem()); Context("Numeric"); Context()->variables->are(t=>"Real"); -Context()->flags->set(useBaseTenLog=>1); +Context()->flags->set(useBaseTenLog=>1); Context()->flags->set( tolerance => 0.01, tolType => "absolute"); $a = random(3,7,1); @@ -58,7 +58,7 @@ $BR $BR $BR \(t = \) \{ ans_rule(20)\} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/Contrib/Utah/Intermediate_Algebra/13.2/pr4.pg b/Contrib/Utah/Intermediate_Algebra/13.2/pr4.pg index 08938fc6e5..0c9aa6e8ce 100644 --- a/Contrib/Utah/Intermediate_Algebra/13.2/pr4.pg +++ b/Contrib/Utah/Intermediate_Algebra/13.2/pr4.pg @@ -20,11 +20,11 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "PGstandard.pl", @@ -39,7 +39,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @bases = (2..10); @@ -101,7 +101,7 @@ if ($choice != exp(1) && $choice != 1/exp(1)) { $num = $num*((1/$choice)**(-$a)); } else { $den = $den*(($choice)**(-$a)); - } + } } elsif ($trans[3] != 1 && $a > 0) {# neg exponent if ($choice < 1) { $num = $num*((1/$choice)**($a)); @@ -132,7 +132,7 @@ if ($choice != exp(1) && $choice != 1/exp(1)) { $num = $num*((1/$choice)**(-$a)); } else { $den = $den*(($choice)**(-$a)); - } + } } elsif ($trans[3] != 1 && $a > 0) {# neg exponent if ($choice < 1) { $num = $num*((1/$choice)**($a)); @@ -841,12 +841,12 @@ $ans = $possans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -857,7 +857,7 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR Let \(f\) be the exponential function defined by $PAR @@ -877,7 +877,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($asym->cmp()); diff --git a/Contrib/Utah/Intermediate_Algebra/2.1/pr1.pg b/Contrib/Utah/Intermediate_Algebra/2.1/pr1.pg index 8bc17f2c17..2753d4a694 100644 --- a/Contrib/Utah/Intermediate_Algebra/2.1/pr1.pg +++ b/Contrib/Utah/Intermediate_Algebra/2.1/pr1.pg @@ -5,9 +5,9 @@ ## DESCRIPTION ## Linear expressions ## ENDDESCRIPTION -## DBsubject('Algebra') -## DBchapter('Linear equations and functions') -## DBsection('Graphs of lines') +## DBsubject('Algebra') +## DBchapter('Linear equations and functions') +## DBsection('Graphs of lines') ## KEYWORDS('slope' 'intercept') @@ -31,13 +31,13 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PGgraphmacros.pl", -"AnswerFormatHelp.pl", + "unionTables.pl", ); @@ -72,7 +72,7 @@ $b1 = list_random(6,8,1); $f[0] = "$m0*x+$b0 for x in <$xmin,$xmax> using color:blue and weight:2"; $f[1] = "$m1*x+$b1 for x in <$xmin,$xmax> using color:red and weight:2"; -plot_functions( $graph, @f); +plot_functions( $graph, @f); # function labels $graph->lb(new Label(0.5,$b0-0.4, "B",'blue','left','bottom')); @@ -103,7 +103,7 @@ $BR. "Line A (in red) has slope ".ans_rule(8).".".$SPACE. $BR. "The \(y\)-coordinate of Line A's (the red line) \(y\)-intercept is".ans_rule(8).".".$SPACE. -$BR. +$BR. $BR. "Line B (in blue) has slope ".ans_rule(8).".".$SPACE. $BR. diff --git a/Contrib/Utah/Intermediate_Algebra/2.1/pr10.pg b/Contrib/Utah/Intermediate_Algebra/2.1/pr10.pg index 7e27da6929..97b6552d10 100644 --- a/Contrib/Utah/Intermediate_Algebra/2.1/pr10.pg +++ b/Contrib/Utah/Intermediate_Algebra/2.1/pr10.pg @@ -33,7 +33,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", "PG.pl", "PGbasicmacros.pl", diff --git a/Contrib/Utah/Intermediate_Algebra/2.4/pr6.pg b/Contrib/Utah/Intermediate_Algebra/2.4/pr6.pg index 545f0cafc6..5cb4c047b2 100644 --- a/Contrib/Utah/Intermediate_Algebra/2.4/pr6.pg +++ b/Contrib/Utah/Intermediate_Algebra/2.4/pr6.pg @@ -35,7 +35,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + ); TEXT(beginproblem()); @@ -52,8 +52,8 @@ $m = random(2,4,1); $f = Formula("$b + $m * x"); @x = ("0","2","10","20"); -foreach my $i (0..3) { - $F[$i] = $b + $m * $x[$i]; +foreach my $i (0..3) { + $F[$i] = $b + $m * $x[$i]; $x[$i] = "$SPACE $x[$i] $SPACE"; $F[$i] = "$SPACE $F[$i] $SPACE"; } @@ -65,7 +65,7 @@ $table = begintable(5).row("$SPACE \(x \) $SPACE", @x).row("$SPACE \(y \) $SPACE BEGIN_TEXT Could the table represent the values of a linear -function? If it could, give a formula. If not, +function? If it could, give a formula. If not, enter ${BITALIC}NONE.${EITALIC} $PAR $BCENTER @@ -74,7 +74,7 @@ $ECENTER $PAR \( f(x) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT diff --git a/Contrib/Utah/Intermediate_Algebra/2.5A/pr6.pg b/Contrib/Utah/Intermediate_Algebra/2.5A/pr6.pg index ee4dae5385..f90e85d110 100644 --- a/Contrib/Utah/Intermediate_Algebra/2.5A/pr6.pg +++ b/Contrib/Utah/Intermediate_Algebra/2.5A/pr6.pg @@ -1,6 +1,6 @@ ## This problem is a modification of the following problem ## Library/FortLewis/Algebra/5-2-Linear-expressions/MCH1-5-2-23b-Linear-expressions.pg -## Modifications were made by R. Noonan Heale +## Modifications were made by R. Noonan Heale ## ORIGINAL PROBLEM DESCRIPTION: @@ -10,11 +10,11 @@ ## KEYWORDS('linear expressions') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Algebra: Form and Function') -## DBchapter('Linear Functions') +## DBchapter('Linear Functions') ## BookChapter('Linear functions, expressions, and equations') -## DBsection('Linear Expressions') +## DBsection('Linear Expressions') ## BookSection('Working with linear expressions') ## Date('01/01/10') ## Author('Paul Pearson') @@ -29,13 +29,13 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PGgraphmacros.pl", -"AnswerFormatHelp.pl", + "unionTables.pl", ); @@ -70,7 +70,7 @@ $b1 = list_random(6,8,1); $f[0] = "$m0*x+$b0 for x in <$xmin,$xmax> using color:blue and weight:2"; $f[1] = "$m1*x+$b1 for x in <$xmin,$xmax> using color:red and weight:2"; -plot_functions( $graph, @f); +plot_functions( $graph, @f); # function labels $graph->lb(new Label(0.5,$b0-0.4, "B",'blue','left','bottom')); @@ -98,10 +98,10 @@ ColumnTable( "Find an equation for of each of the lines in the figure.". $BR. $BR. -"Line A (in red) has equation $BR \( y = \) ".ans_rule(20).$SPACE.AnswerFormatHelp("formulas"). -$BR. +"Line A (in red) has equation $BR \( y = \) ".ans_rule(20).$SPACE.helpLink("formulas"). +$BR. $BR. -"Line B (in blue) has equation $BR \( y = \) ".ans_rule(20).$SPACE.AnswerFormatHelp("formulas"), +"Line B (in blue) has equation $BR \( y = \) ".ans_rule(20).$SPACE.helpLink("formulas"), image(insertGraph($graph), width => 400, height => 400, tex_size => 700). $BR.$BCENTER."(Click on graph to enlarge)".$ECENTER, indent => 0, separation => 30, valign => "TOP" diff --git a/Contrib/Utah/Intermediate_Algebra/2.6/pr7.pg b/Contrib/Utah/Intermediate_Algebra/2.6/pr7.pg index eb1b153a90..c0aac39721 100644 --- a/Contrib/Utah/Intermediate_Algebra/2.6/pr7.pg +++ b/Contrib/Utah/Intermediate_Algebra/2.6/pr7.pg @@ -20,11 +20,11 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGstandard.pl", "contextInequalities.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Inequalities-Only"); do { @@ -49,7 +49,7 @@ $ans = Compute("x >= $x"); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -60,7 +60,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($ans)->cmp()); @@ -71,7 +71,7 @@ ANS(Compute($ans)->cmp()); ########################################################################### BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("inequalities", "Click here for help entering inequalities.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("inequalities", "Click here for help entering inequalities.")\} $BR END_TEXT Context()->normalStrings; diff --git a/Contrib/Utah/Intermediate_Algebra/2.6/pr8.pg b/Contrib/Utah/Intermediate_Algebra/2.6/pr8.pg index 8169326dd4..dfe6d2322f 100644 --- a/Contrib/Utah/Intermediate_Algebra/2.6/pr8.pg +++ b/Contrib/Utah/Intermediate_Algebra/2.6/pr8.pg @@ -33,12 +33,12 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextInequalities.pl", "PGcourse.pl", ); -TEXT(beginproblem()); +TEXT(beginproblem()); #################################### # Setup @@ -57,13 +57,13 @@ $domain = Compute("0 <= t <= $b/$m"); Context()->texStrings; BEGIN_TEXT -The value, \( V \), of a car that is \( t \) +The value, \( V \), of a car that is \( t \) years old is given by \( V = f(t) = $b - $m t \). -What is the largest domain of \( f(t) \) that make sense in this context? How about range? +What is the largest domain of \( f(t) \) that make sense in this context? How about range? $BR $BR Domain: \{ ans_rule(20) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} $BR END_TEXT @@ -79,7 +79,7 @@ $range = Compute("0 <= V <= $b"); BEGIN_TEXT Range: $SPACE \{ ans_rule(20) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} $BR $BR Hint: When using inequalities, check that the variables you use match the ones the question uses. diff --git a/Contrib/Utah/Intermediate_Algebra/3.4/pr6.pg b/Contrib/Utah/Intermediate_Algebra/3.4/pr6.pg index 026ce660a6..d265b74105 100644 --- a/Contrib/Utah/Intermediate_Algebra/3.4/pr6.pg +++ b/Contrib/Utah/Intermediate_Algebra/3.4/pr6.pg @@ -43,7 +43,7 @@ loadMacros("PG.pl", # "extraAnswerEvaluators.pl", # "PGauxiliaryFunctions.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", "unionTables.pl", #"parserImplicitPlane.pl", @@ -121,11 +121,11 @@ or, enter ${BITALIC}NONE${EITALIC} if its graph does not have that type of inter $BR The graph has an \(x\)-intercept at the point \{ ans_rule(10) \} -\{ AnswerFormatHelp("points") \} +\{ helpLink("points") \} $BR The graph has a \(y\)-intercept at the point \{ ans_rule(10) \} -\{ AnswerFormatHelp("points") \} +\{ helpLink("points") \} $PAR (b) Without using a calculator, sketch the graph of this equation on paper, labeling the features above. $PAR diff --git a/Contrib/Utah/Intermediate_Algebra/4.1B/pr7.pg b/Contrib/Utah/Intermediate_Algebra/4.1B/pr7.pg index 97909c2082..01a4634f20 100644 --- a/Contrib/Utah/Intermediate_Algebra/4.1B/pr7.pg +++ b/Contrib/Utah/Intermediate_Algebra/4.1B/pr7.pg @@ -1,6 +1,6 @@ ##DESCRIPTION ## Preparing for factoring quadratics using area model, checking work -## +## ##ENDDESCRIPTION ## DBsubject(Algebra) @@ -26,7 +26,7 @@ loadMacros( "unionTables.pl", "parserPopUp.pl", "unionImage.pl", -"AnswerFormatHelp.pl", + "PG.pl", "PGbasicmacros.pl", "PGanswermacros.pl", diff --git a/Contrib/Utah/Intermediate_Algebra/4.1B/pr8.pg b/Contrib/Utah/Intermediate_Algebra/4.1B/pr8.pg index 3c1ba83b83..98ad20b6f8 100644 --- a/Contrib/Utah/Intermediate_Algebra/4.1B/pr8.pg +++ b/Contrib/Utah/Intermediate_Algebra/4.1B/pr8.pg @@ -1,6 +1,6 @@ ##DESCRIPTION ## Preparing for factoring quadratics using area model, checking work -## +## ##ENDDESCRIPTION ## DBsubject(Algebra) @@ -24,7 +24,7 @@ loadMacros( "unionTables.pl", "parserPopUp.pl", "unionImage.pl", -"AnswerFormatHelp.pl", + "PG.pl", "PGbasicmacros.pl", "PGanswermacros.pl", diff --git a/Contrib/Utah/Intermediate_Algebra/4.1B/pr9.pg b/Contrib/Utah/Intermediate_Algebra/4.1B/pr9.pg index 733361360f..98be6af3e6 100644 --- a/Contrib/Utah/Intermediate_Algebra/4.1B/pr9.pg +++ b/Contrib/Utah/Intermediate_Algebra/4.1B/pr9.pg @@ -1,6 +1,6 @@ ## DESCRIPTION ## Preparing for factoring quadratics using area model, checking work -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -25,7 +25,7 @@ loadMacros( "unionTables.pl", "parserPopUp.pl", "unionImage.pl", -"AnswerFormatHelp.pl", + "PG.pl", "PGbasicmacros.pl", "PGanswermacros.pl", diff --git a/Contrib/Utah/Intermediate_Algebra/4.2/pr12.pg b/Contrib/Utah/Intermediate_Algebra/4.2/pr12.pg index f33afe9826..71df073b65 100644 --- a/Contrib/Utah/Intermediate_Algebra/4.2/pr12.pg +++ b/Contrib/Utah/Intermediate_Algebra/4.2/pr12.pg @@ -19,11 +19,11 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "PGstandard.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Interval"); $x[0] = random(-8,-3); @@ -129,15 +129,15 @@ $fig = image(insertGraph($graph), width=>$gsize, height=>$gsize, tex_size=>250 ) ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ $fig \} -$ECENTER +$ECENTER $PAR The graph of \(f(x)\) is given above. Determine the domain of \(f^{-1}(x)\) using interval notation. $PAR @@ -146,7 +146,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($domain)->cmp()); diff --git a/Contrib/Utah/Intermediate_Algebra/5.4/pr5.pg b/Contrib/Utah/Intermediate_Algebra/5.4/pr5.pg index b5ee762993..0bec4351ac 100644 --- a/Contrib/Utah/Intermediate_Algebra/5.4/pr5.pg +++ b/Contrib/Utah/Intermediate_Algebra/5.4/pr5.pg @@ -42,7 +42,7 @@ loadMacros("PG.pl", # "MathObjects.pl", #"parserImplicitEquation.pl", "parserImplicitPlane.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -93,17 +93,17 @@ $PAR (a) $eqn[0] has a \{ pop_up_list(["?","horizontal","vertical","none"]) \} asymptote with equation \{ ans_rule(10) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} $PAR (b) $eqn[1] has a \{ pop_up_list(["?","horizontal","vertical","none"]) \} asymptote with equation \{ ans_rule(10) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} $PAR (c) $eqn[2] has a \{ pop_up_list(["?","horizontal","vertical","none"]) \} asymptote with equation \{ ans_rule(10) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} $PAR $BITALIC(Hint: Recall that a horizontal asymptote is expressed by an equation for a horizontal line of the form \(y = k\) and a vertical diff --git a/Contrib/Utah/Intermediate_Algebra/7.1/pr5.pg b/Contrib/Utah/Intermediate_Algebra/7.1/pr5.pg index eda54f43c8..b8a28f2996 100644 --- a/Contrib/Utah/Intermediate_Algebra/7.1/pr5.pg +++ b/Contrib/Utah/Intermediate_Algebra/7.1/pr5.pg @@ -34,13 +34,13 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", "PGgraphmacros.pl", "unionTables.pl", ); -TEXT(beginproblem()); +TEXT(beginproblem()); $refreshCachedImages=1; @@ -78,10 +78,10 @@ ColumnTable( $BR. $BR. -"Hint: no scale is given on the \(y\)-axis. You are also asked for a POSSIBLE formula. Thinking about the \(x\)-intercepts is important, but you can choose from an infinite number of leading coefficients.". +"Hint: no scale is given on the \(y\)-axis. You are also asked for a POSSIBLE formula. Thinking about the \(x\)-intercepts is important, but you can choose from an infinite number of leading coefficients.". $BR. $BR. -"\( f(x) = \) ".ans_rule(30).$SPACE.AnswerFormatHelp("formulas") +"\( f(x) = \) ".ans_rule(30).$SPACE.helpLink("formulas") , image(insertGraph($gr),width=>300,height=>300,tex_size=>400) , @@ -99,11 +99,11 @@ $showPartialCorrectAnswers = 1; sub mycheck { my ($correct, $student, $ansHash) = @_; - if ( + if ( ( ($student->eval(x=>-$a)) == 0 ) && ( ($student->eval(x=>$b)) == 0 ) && ( ($student->D('x')->eval(x=>($b-$a)/2)) == 0 ) && - ( ($student->D('x')->D('x')->D('x')) == 0 ) + ( ($student->D('x')->D('x')->D('x')) == 0 ) ) { if ( ( $s==1 && ( ($student->eval(x=>0)) < 0 ) ) || ( $s==-1 && ( ($student->eval(x=>0)) > 0 ) ) diff --git a/Contrib/Utah/Intermediate_Algebra/7.2/pr4.pg b/Contrib/Utah/Intermediate_Algebra/7.2/pr4.pg index fd336c4127..a3a0d35ae6 100644 --- a/Contrib/Utah/Intermediate_Algebra/7.2/pr4.pg +++ b/Contrib/Utah/Intermediate_Algebra/7.2/pr4.pg @@ -28,7 +28,7 @@ loadMacros( "unionTables.pl", "parserPopUp.pl", "unionImage.pl", -"AnswerFormatHelp.pl", + "PG.pl", "PGbasicmacros.pl", "PGanswermacros.pl", @@ -93,7 +93,7 @@ BEGIN_TEXT In this problem, you will use the area model to factor a polynomial. This is similar to using a picture. $BR$BR -Factor:$BR +Factor:$BR \[ x^2 + {$prod2} x + {$prod3}.\] $BR @@ -117,8 +117,8 @@ $BR$BR B. Factor the polynomial:$BR$BR -\( x^2 + {$prod2} x + {$prod3} = ( \) \{ans_rule(20)\} - \( +$a2 )( \) \{ans_rule(20)\} +\( x^2 + {$prod2} x + {$prod3} = ( \) \{ans_rule(20)\} + \( +$a2 )( \) \{ans_rule(20)\} \( ) \). diff --git a/Contrib/Utah/Intermediate_Algebra/7.2/pr5.pg b/Contrib/Utah/Intermediate_Algebra/7.2/pr5.pg index c02f22fa80..74534391e5 100644 --- a/Contrib/Utah/Intermediate_Algebra/7.2/pr5.pg +++ b/Contrib/Utah/Intermediate_Algebra/7.2/pr5.pg @@ -27,7 +27,7 @@ loadMacros( "unionTables.pl", "parserPopUp.pl", "unionImage.pl", -"AnswerFormatHelp.pl", + "PG.pl", "PGbasicmacros.pl", "PGanswermacros.pl", @@ -92,7 +92,7 @@ BEGIN_TEXT In this problem, you will use the area model to factor a polynomial. This is similar to using a picture. $BR$BR -Factor:$BR +Factor:$BR \[ {$a1} x^2 + {$prod2} x - {$prod3}.\] $BR diff --git a/Contrib/Utah/Intermediate_Algebra/7.2/pr6.pg b/Contrib/Utah/Intermediate_Algebra/7.2/pr6.pg index 9e11b64df0..f429dec3aa 100644 --- a/Contrib/Utah/Intermediate_Algebra/7.2/pr6.pg +++ b/Contrib/Utah/Intermediate_Algebra/7.2/pr6.pg @@ -28,7 +28,7 @@ loadMacros( "unionTables.pl", "parserPopUp.pl", "unionImage.pl", -"AnswerFormatHelp.pl", + "PG.pl", "PGbasicmacros.pl", "PGanswermacros.pl", @@ -93,7 +93,7 @@ BEGIN_TEXT In this problem, you will use the area model to factor a polynomial. This is similar to using a picture. $BR$BR -Factor:$BR +Factor:$BR \[ {$prod1} x^2 + {$prod2} x + {$prod3}.\] $BR diff --git a/Contrib/Utah/Intermediate_Algebra/7.4/pr7.pg b/Contrib/Utah/Intermediate_Algebra/7.4/pr7.pg index 1bf420fec6..91de0515be 100644 --- a/Contrib/Utah/Intermediate_Algebra/7.4/pr7.pg +++ b/Contrib/Utah/Intermediate_Algebra/7.4/pr7.pg @@ -22,12 +22,12 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", "contextInequalities.pl", ); -TEXT(beginproblem()); +TEXT(beginproblem()); #################################### # Setup @@ -66,19 +66,19 @@ Suppose \( f(x) = $f \). $BR $BR (a) For which values of \( x \) is the function -\( f(x) \) positive? Enter your answer using +\( f(x) \) positive? Enter your answer using inequalities. $BR -\{ ans_rule(30) \} -\{ AnswerFormatHelp("inequalities") \} +\{ ans_rule(30) \} +\{ helpLink("inequalities") \} $BR $BR (a) For which values of \( x \) is the function -\( f(x) \) negative? Enter your answer using +\( f(x) \) negative? Enter your answer using inequalities. $BR -\{ ans_rule(30) \} -\{ AnswerFormatHelp("inequalities") \}$BR$BR +\{ ans_rule(30) \} +\{ helpLink("inequalities") \}$BR$BR HINT: Use factoring to rewrite the function so that it is in a form that is easy to graph. Then graph the function and answer the question. END_TEXT diff --git a/Contrib/Utah/Intermediate_Algebra/9.2/pr3.pg b/Contrib/Utah/Intermediate_Algebra/9.2/pr3.pg index b395bc6a34..c4c79efc51 100644 --- a/Contrib/Utah/Intermediate_Algebra/9.2/pr3.pg +++ b/Contrib/Utah/Intermediate_Algebra/9.2/pr3.pg @@ -10,11 +10,11 @@ ## KEYWORDS('quadratic functions') -## DBsubject('Algebra') +## DBsubject('Algebra') ## BookTitle('Algebra: Form and Function') -## DBchapter('Quadratic Functions') +## DBchapter('Quadratic Functions') ## BookChapter('Quadratic Functions, Expressions, and Equations') -## DBsection('Completing the Square') +## DBsection('Completing the Square') ## BookSection('Solving Quadratic Equations by Completing the Square') ## Date('01/01/10') ## Author('Paul Pearson') @@ -33,11 +33,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); -TEXT(beginproblem()); +TEXT(beginproblem()); #################################### @@ -61,11 +61,11 @@ $answer = List(Real("$c-$a"),Real("-$c-$a")); BEGIN_TEXT Solve the quadratic equation \( ( x + $a)^2 = $bb \) by taking square roots. If there is more than one correct -answer, enter your answers as a comma separated list. +answer, enter your answers as a comma separated list. $BR $BR -\( x \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\( x \) = \{ ans_rule(20) \} +\{ helpLink("numbers") \} END_TEXT diff --git a/Contrib/Westmont/EoDM3/Inquiry_3_1/iprob3_3.pg b/Contrib/Westmont/EoDM3/Inquiry_3_1/iprob3_3.pg index 143aedaa1d..65c15e596b 100644 --- a/Contrib/Westmont/EoDM3/Inquiry_3_1/iprob3_3.pg +++ b/Contrib/Westmont/EoDM3/Inquiry_3_1/iprob3_3.pg @@ -19,7 +19,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -36,7 +36,7 @@ $answer = join(", ",@seq); $answer = Compute("$answer"); BEGIN_TEXT - The $BITALIC odd numbers $EITALIC are the numbers in the sequence \(1, 3, 5, 7, 9, \ldots\). Define the sequence of $BITALIC S-numbers $EITALIC as follows: $PAR + The $BITALIC odd numbers $EITALIC are the numbers in the sequence \(1, 3, 5, 7, 9, \ldots\). Define the sequence of $BITALIC S-numbers $EITALIC as follows: $PAR The first S-number is 1. $BR The second S-number is the sum of the first S-number and the second odd number.$BR The third S-number is the sum of the second S-number and the third odd number.$BR @@ -45,7 +45,7 @@ BEGIN_TEXT etc., \(\ldots\) $PAR Compute the first seven S-numbers. Make a note of any patterns you notice. Enter the first seven S-numbers as a comma-separated list: $PAR -First seven S-numbers = \{ans_rule(20)\} \{ AnswerFormatHelp("numbers") \} +First seven S-numbers = \{ans_rule(20)\} \{ helpLink("numbers") \} $PAR END_TEXT Context()->normalStrings; diff --git a/Contrib/WinonaState/StewartCalcEarlyTran7ed/Chap11Section05/SCalcET7-11-5-ex2.pg b/Contrib/WinonaState/StewartCalcEarlyTran7ed/Chap11Section05/SCalcET7-11-5-ex2.pg index 432fbd2115..128ab3aa0d 100644 --- a/Contrib/WinonaState/StewartCalcEarlyTran7ed/Chap11Section05/SCalcET7-11-5-ex2.pg +++ b/Contrib/WinonaState/StewartCalcEarlyTran7ed/Chap11Section05/SCalcET7-11-5-ex2.pg @@ -31,7 +31,7 @@ loadMacros( "PGstandard.pl", "parserPopUp.pl", "scaffold.pl", - "AnswerFormatHelp.pl", + ); @@ -64,9 +64,9 @@ END_TEXT ########################################### # The scaffold Scaffold::Begin( can_open => "when_previous_correct", - is_open => "correct_or_first_incorrect"); + is_open => "correct_or_first_incorrect"); -#only the active section is open, but students can open previous sections if they want. +#only the active section is open, but students can open previous sections if they want. ########################################### Section::Begin("Part 1: Divergence Test"); @@ -145,7 +145,7 @@ value=>escapeSolutionHTML(EV3P(" First use a reduction formula to get \\[\\sum_{n=1}^\\infty \\frac{(-1)^n\\sin^2(\ $a n)}{n} = \\sum_{n=1}^\\infty \\frac{(-1)^n}{2n} - \\sum_{n=1}^\\infty \\frac{(-1)^n\\cos(\ $a2 n)}{2n}.\\] The first series converges (by simple Alternating Series Test). For \\(\\sum_{n=1}^\\infty \\frac{(-1)^n\\cos(\ $a2 n)}{2n}\\) use the Abel Transformation (i.e. the series version of integration by parts) which gives \\[\\sum_{n=1}^\\infty \\left(\\frac{1}{2n}\\right)(-1)^n\\cos(\ $a2 n) = 0 - \\sum_{n=1}^\\infty \\left(\\sum_{k=1}^n(-1)^k\\cos(\ $a2 k) \\right)\\left(\\frac{1}{2(n+1)}-\\frac{1}{2n}\\right). \\] Then use Lagrange's trig identity: \\[\\displaystyle \\sum_{k=1}^n(-1)^k\\cos(\ $a2 k) = \\frac{-1}{2}+\\frac{(-1)^n \\cos(\ $a2 n + \ $a)}{2\\cos(\ $a )}.\\] -Thus \\[\\sum_{n=1}^\\infty \\frac{(-1)^n\\cos(\ $a2 n)}{2n} = \\sum_{n=1}^\\infty \\left(\\frac{-1}{2}+\\frac{(-1)^n \\cos(\ $a2 n + \ $a)}{2\\cos(\ $a )} \\right) \\left(\\frac{1}{2(n^2+n)}\\right) = -\\sum_{n=1}^\\infty \\frac{1}{4(n^2+n)}+\\sum_{n=1}^\\infty \\frac{(-1)^n \\cos(\ $a2 n + \ $a)}{4\\cos(\ $a )(n^2+n)}\\] and both of these converge absolutely by comparison to \\(\\sum \\frac{1}{n^2}\\). Hence the original alternating series converges. +Thus \\[\\sum_{n=1}^\\infty \\frac{(-1)^n\\cos(\ $a2 n)}{2n} = \\sum_{n=1}^\\infty \\left(\\frac{-1}{2}+\\frac{(-1)^n \\cos(\ $a2 n + \ $a)}{2\\cos(\ $a )} \\right) \\left(\\frac{1}{2(n^2+n)}\\right) = -\\sum_{n=1}^\\infty \\frac{1}{4(n^2+n)}+\\sum_{n=1}^\\infty \\frac{(-1)^n \\cos(\ $a2 n + \ $a)}{4\\cos(\ $a )(n^2+n)}\\] and both of these converge absolutely by comparison to \\(\\sum \\frac{1}{n^2}\\). Hence the original alternating series converges. Furthermore, computational software gives \\(\\sum_{n=1}^\\infty \\frac{(-1)^n\\sin^2(\ $a n)}{n} = \\frac{1}{2} \\ln |\\cos (\ $a)|\\). ")), base64=>1); diff --git a/OpenProblemLibrary/ASU-topics/setAlgebraFunctions/p1.pg b/OpenProblemLibrary/ASU-topics/setAlgebraFunctions/p1.pg index d5a49f6530..8f8a3da290 100644 --- a/OpenProblemLibrary/ASU-topics/setAlgebraFunctions/p1.pg +++ b/OpenProblemLibrary/ASU-topics/setAlgebraFunctions/p1.pg @@ -23,7 +23,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -38,17 +38,17 @@ $d=random(-15,-1); BEGIN_TEXT Given that \(\displaystyle f(x)=\frac{$a}{x-$b} \) and \(\displaystyle g(x)=\frac{$c}{x - $d} \), find the following $PAR -(a) \((f+g)(x)\)= \{ans_rule(25)\} \{AnswerFormatHelp("formulas")\}$BR -and its domain is \{ans_rule(40)\} \{AnswerFormatHelp("intervals")\} +(a) \((f+g)(x)\)= \{ans_rule(25)\} \{helpLink("formulas")\}$BR +and its domain is \{ans_rule(40)\} \{helpLink("intervals")\} $PAR -(b) \((f-g)(x)\)= \{ans_rule(25)\} \{AnswerFormatHelp("formulas")\}$BR -and its domain is \{ans_rule(40)\} \{AnswerFormatHelp("intervals")\} +(b) \((f-g)(x)\)= \{ans_rule(25)\} \{helpLink("formulas")\}$BR +and its domain is \{ans_rule(40)\} \{helpLink("intervals")\} $PAR -(c) \((fg)(x)\)= \{ans_rule(25)\} \{AnswerFormatHelp("formulas")\}$BR -and its domain is \{ans_rule(40)\} \{AnswerFormatHelp("intervals")\} +(c) \((fg)(x)\)= \{ans_rule(25)\} \{helpLink("formulas")\}$BR +and its domain is \{ans_rule(40)\} \{helpLink("intervals")\} $PAR -(d) \((f/g)(x)\)= \{ans_rule(25)\} \{AnswerFormatHelp("formulas")\}$BR -and its domain is \{ans_rule(40)\} \{AnswerFormatHelp("intervals")\} +(d) \((f/g)(x)\)= \{ans_rule(25)\} \{helpLink("formulas")\}$BR +and its domain is \{ans_rule(40)\} \{helpLink("intervals")\} END_TEXT Context("Numeric"); diff --git a/OpenProblemLibrary/ASU-topics/setCalculus/stef/stef2_3p2.pg b/OpenProblemLibrary/ASU-topics/setCalculus/stef/stef2_3p2.pg index a0a2e9e913..d89e1c7f7b 100644 --- a/OpenProblemLibrary/ASU-topics/setCalculus/stef/stef2_3p2.pg +++ b/OpenProblemLibrary/ASU-topics/setCalculus/stef/stef2_3p2.pg @@ -29,7 +29,7 @@ loadMacros( "PGstandard.pl", "PGchoicemacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -53,21 +53,21 @@ Let \(f(x) = $BR$BR Calculate the following limits. $BR$BR -\( \displaystyle{\lim_{x\to -$x^-}f(x)=} \) \{ans_rule(15)\} \{ AnswerFormatHelp("limits") \} +\( \displaystyle{\lim_{x\to -$x^-}f(x)=} \) \{ans_rule(15)\} \{ helpLink("limits") \} END_TEXT $ans1 = Compute("Infinity"); ANS($ans1->cmp); BEGIN_TEXT -\( \displaystyle{\lim_{x\to -$x^+}f(x)=} \) \{ans_rule(15)\} \{ AnswerFormatHelp("limits") \} +\( \displaystyle{\lim_{x\to -$x^+}f(x)=} \) \{ans_rule(15)\} \{ helpLink("limits") \} END_TEXT $ans2 = Compute("-$m*$x+$b"); ANS($ans2->cmp); BEGIN_TEXT -\( \displaystyle{\lim_{x\to -$x}f(x)=} \) \{ans_rule(15)\} \{ AnswerFormatHelp("limits") \} +\( \displaystyle{\lim_{x\to -$x}f(x)=} \) \{ans_rule(15)\} \{ helpLink("limits") \} END_TEXT $ans3 = Compute("DNE"); diff --git a/OpenProblemLibrary/ASU-topics/setDerivativeBasicFunctions/3-4-02.pg b/OpenProblemLibrary/ASU-topics/setDerivativeBasicFunctions/3-4-02.pg index d35c15fe9b..1206ec286f 100644 --- a/OpenProblemLibrary/ASU-topics/setDerivativeBasicFunctions/3-4-02.pg +++ b/OpenProblemLibrary/ASU-topics/setDerivativeBasicFunctions/3-4-02.pg @@ -29,7 +29,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); diff --git a/OpenProblemLibrary/ASU-topics/setDerivativeBasicFunctions/3-4-19.pg b/OpenProblemLibrary/ASU-topics/setDerivativeBasicFunctions/3-4-19.pg index 21f661ada7..c68f7f44e8 100644 --- a/OpenProblemLibrary/ASU-topics/setDerivativeBasicFunctions/3-4-19.pg +++ b/OpenProblemLibrary/ASU-topics/setDerivativeBasicFunctions/3-4-19.pg @@ -30,7 +30,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); diff --git a/OpenProblemLibrary/ASU-topics/setDerivativeBasicFunctions/3-4-33.pg b/OpenProblemLibrary/ASU-topics/setDerivativeBasicFunctions/3-4-33.pg index 9c460f7adf..6cdb0348f4 100644 --- a/OpenProblemLibrary/ASU-topics/setDerivativeBasicFunctions/3-4-33.pg +++ b/OpenProblemLibrary/ASU-topics/setDerivativeBasicFunctions/3-4-33.pg @@ -31,7 +31,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); diff --git a/OpenProblemLibrary/ASU-topics/setDerivativeBasicFunctions/3-4-34.pg b/OpenProblemLibrary/ASU-topics/setDerivativeBasicFunctions/3-4-34.pg index 4a6b523a82..bfc9b752fc 100644 --- a/OpenProblemLibrary/ASU-topics/setDerivativeBasicFunctions/3-4-34.pg +++ b/OpenProblemLibrary/ASU-topics/setDerivativeBasicFunctions/3-4-34.pg @@ -30,7 +30,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); diff --git a/OpenProblemLibrary/ASU-topics/setDerivativeFunction/s2_1_7.pg b/OpenProblemLibrary/ASU-topics/setDerivativeFunction/s2_1_7.pg index 9583a311a5..2db9327280 100644 --- a/OpenProblemLibrary/ASU-topics/setDerivativeFunction/s2_1_7.pg +++ b/OpenProblemLibrary/ASU-topics/setDerivativeFunction/s2_1_7.pg @@ -29,7 +29,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -55,7 +55,7 @@ Context()->texStrings; BEGIN_TEXT If \( f(x) = $f\), find the equation of the line tangent to the curve \( f( x ) \) at \(x=$x1\). - + $BR$BR The tangent line is \(y=\) \{ans_rule(40) \} diff --git a/OpenProblemLibrary/ASU-topics/setInequalities/p8.pg b/OpenProblemLibrary/ASU-topics/setInequalities/p8.pg index eb637d6780..9f45a82774 100644 --- a/OpenProblemLibrary/ASU-topics/setInequalities/p8.pg +++ b/OpenProblemLibrary/ASU-topics/setInequalities/p8.pg @@ -25,7 +25,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -41,7 +41,7 @@ $d=$b+$a; BEGIN_TEXT Solve the following inequality. Write the answer in interval notation. \[ |x-$a| < $b \] -Answer: \{ans_rule(35) \} \{AnswerFormatHelp("intervals")\} +Answer: \{ans_rule(35) \} \{helpLink("intervals")\} END_TEXT Context("Interval"); diff --git a/OpenProblemLibrary/ASU-topics/setIntegralSubstitution/sc5_5_25.pg b/OpenProblemLibrary/ASU-topics/setIntegralSubstitution/sc5_5_25.pg index 18c5eb9d9d..1edf119cf9 100644 --- a/OpenProblemLibrary/ASU-topics/setIntegralSubstitution/sc5_5_25.pg +++ b/OpenProblemLibrary/ASU-topics/setIntegralSubstitution/sc5_5_25.pg @@ -31,7 +31,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserFormulaUpToConstant.pl", "PGcourse.pl" ); diff --git a/OpenProblemLibrary/ASU-topics/setRateChange/ns_2_1_5.pg b/OpenProblemLibrary/ASU-topics/setRateChange/ns_2_1_5.pg index 283ee44f07..4aafd9d55e 100644 --- a/OpenProblemLibrary/ASU-topics/setRateChange/ns_2_1_5.pg +++ b/OpenProblemLibrary/ASU-topics/setRateChange/ns_2_1_5.pg @@ -21,7 +21,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "parserNumberWithUnits.pl", "PGcourse.pl" ); @@ -44,19 +44,19 @@ BEGIN_TEXT A ball is thrown into the air by a baby alien on a planet in the system of Alpha Centauri with a velocity of $a1 ft/s. Its height in feet after \(t\) seconds is -given by \( y=${a1}t-${b1}t^{2} \). +given by \( y=${a1}t-${b1}t^{2} \). $PAR -A. Find the average velocity (include units \{ AnswerFormatHelp("units") \}) for the time period beginning -when \(t=$init_time\) and lasting +A. Find the average velocity (include units \{ helpLink("units") \}) for the time period beginning +when \(t=$init_time\) and lasting $BR $times[0]:\{ ans_rule(30)\} $BR $times[1]:\{ ans_rule(30)\} $BR $times[2]:\{ ans_rule(30)\} $BR $times[3]:\{ ans_rule(30)\} $BR -NOTE: For the above answers, you may have to enter 6 or 7 significant digits if you are using a calculator. +NOTE: For the above answers, you may have to enter 6 or 7 significant digits if you are using a calculator. $PAR -B. Estimate the instantaneous velocity when \(t=$init_time\) (include units \{ AnswerFormatHelp("units") \}). +B. Estimate the instantaneous velocity when \(t=$init_time\) (include units \{ helpLink("units") \}). $BR Answer: \{ ans_rule(20)\} END_TEXT diff --git a/OpenProblemLibrary/ASU-topics/setRateChange/s1_1_5.pg b/OpenProblemLibrary/ASU-topics/setRateChange/s1_1_5.pg index a76fe25a9c..10779d97cd 100644 --- a/OpenProblemLibrary/ASU-topics/setRateChange/s1_1_5.pg +++ b/OpenProblemLibrary/ASU-topics/setRateChange/s1_1_5.pg @@ -20,7 +20,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserNumberWithUnits.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -34,16 +34,16 @@ BEGIN_TEXT If a ball is thrown straight up into the air with an initial velocity of \( $v0 \) ft/s, its height in feet after \( t \) second is given by \( y = {$v0}t - 16t^2 \). Find the average -velocity (include units, \{ AnswerFormatHelp("units") \}) for the time period begining when \( t = $t0 \) seconds and lasting -$PAR +velocity (include units, \{ helpLink("units") \}) for the time period begining when \( t = $t0 \) seconds and lasting +$PAR (i) \( 0.5 \) seconds $BR -Average velocity:\{ans_rule(35) \} +Average velocity:\{ans_rule(35) \} $PAR (ii) \( 0.1 \) seconds $BR -Average velocity:\{ans_rule(35) \} +Average velocity:\{ans_rule(35) \} $PAR (iii) \( 0.01 \) seconds $BR -Average velocity: \{ans_rule(35) \} +Average velocity: \{ans_rule(35) \} $BR $BR Finally based on the above results, guess what the instantaneous velocity of the ball is when \( t =$t0 \). $BR diff --git a/OpenProblemLibrary/AlfredUniv/anton8e/chapter3/3.4/dprob2.pg b/OpenProblemLibrary/AlfredUniv/anton8e/chapter3/3.4/dprob2.pg index ccc165e21e..e858482f42 100644 --- a/OpenProblemLibrary/AlfredUniv/anton8e/chapter3/3.4/dprob2.pg +++ b/OpenProblemLibrary/AlfredUniv/anton8e/chapter3/3.4/dprob2.pg @@ -33,10 +33,10 @@ loadMacros( "PGgraphmacros.pl", "MathObjects.pl", "parserNumberWithUnits.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); - + ## Show partial correct answers $showPartialCorrectAnswers = 1; ## Display the problem information @@ -53,17 +53,17 @@ $dPdt = NumberWithUnits("($Tprime*$V - $T*$Vprime)/($V^2)","Pa/s"); Context()->texStrings; BEGIN_TEXT -The pressure, measured in Pascals (abbreviated Pa) on a certain object B is proportional to the temperature measured in degrees Kelvin (degK), and inversely proportional to the volume of B in cubic meters: -\[P=\frac{T}{V}\; c\] -where \(c\) is a physical constant that depends on B and converts the units to Pascals. In this problem it is +The pressure, measured in Pascals (abbreviated Pa) on a certain object B is proportional to the temperature measured in degrees Kelvin (degK), and inversely proportional to the volume of B in cubic meters: +\[P=\frac{T}{V}\; c\] +where \(c\) is a physical constant that depends on B and converts the units to Pascals. In this problem it is \[ c = 1 \frac{\text{Pa}*\text{m}^3}{\text{degK}}.\] -Suppose the temperature and the volume both depend on time, hence so the does the pressure: \(P(t) = \frac{T(t)}{V(t)} c\). At time \(t=$t\) seconds the temperature of B is \($T \; \text{degK}\) and is increasing at a rate of \($Tprime \; \frac{\text{degK}}{\text{s}}\), and the volume is \($V\; \text{m}^3\) and is increasing at the rate \($Vprime\; \frac{\text{m}^3}{\text{s}}\). +Suppose the temperature and the volume both depend on time, hence so the does the pressure: \(P(t) = \frac{T(t)}{V(t)} c\). At time \(t=$t\) seconds the temperature of B is \($T \; \text{degK}\) and is increasing at a rate of \($Tprime \; \frac{\text{degK}}{\text{s}}\), and the volume is \($V\; \text{m}^3\) and is increasing at the rate \($Vprime\; \frac{\text{m}^3}{\text{s}}\). $PAR Using the quotient rule, the pressure on the object is changing at the rate \{ans_rule(20)\} $BR -Your answer should include units. - +Your answer should include units. + END_TEXT Context()->normalStrings; ANS($dPdt->cmp); diff --git a/OpenProblemLibrary/AlfredUniv/diffeq/laplace/operationalproperties/DEdirac.pg b/OpenProblemLibrary/AlfredUniv/diffeq/laplace/operationalproperties/DEdirac.pg index 7f313d77dc..64aa3816ec 100644 --- a/OpenProblemLibrary/AlfredUniv/diffeq/laplace/operationalproperties/DEdirac.pg +++ b/OpenProblemLibrary/AlfredUniv/diffeq/laplace/operationalproperties/DEdirac.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserFunction.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -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 diff --git a/OpenProblemLibrary/BentleyUniversity/MathematicsOfComputerGraphics/setMoCG-Ch5/5-17-MatrixEfficiencyInHardware.pg b/OpenProblemLibrary/BentleyUniversity/MathematicsOfComputerGraphics/setMoCG-Ch5/5-17-MatrixEfficiencyInHardware.pg index bb7e2d86f8..6aad99df3e 100755 --- a/OpenProblemLibrary/BentleyUniversity/MathematicsOfComputerGraphics/setMoCG-Ch5/5-17-MatrixEfficiencyInHardware.pg +++ b/OpenProblemLibrary/BentleyUniversity/MathematicsOfComputerGraphics/setMoCG-Ch5/5-17-MatrixEfficiencyInHardware.pg @@ -22,7 +22,7 @@ loadMacros( "MathObjects.pl", "PGML.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + ); Context("Matrix"); diff --git a/OpenProblemLibrary/Berkeley/StewCalcET7e/1.1/1-1-x01.pg b/OpenProblemLibrary/Berkeley/StewCalcET7e/1.1/1-1-x01.pg index e9f6309b58..458638a6d0 100644 --- a/OpenProblemLibrary/Berkeley/StewCalcET7e/1.1/1-1-x01.pg +++ b/OpenProblemLibrary/Berkeley/StewCalcET7e/1.1/1-1-x01.pg @@ -26,7 +26,7 @@ loadMacros( "MathObjects.pl", "contextFraction.pl", "PGpolynomialmacros.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); diff --git a/OpenProblemLibrary/Berkeley/StewCalcET7e/1.6/1-6-x01.pg b/OpenProblemLibrary/Berkeley/StewCalcET7e/1.6/1-6-x01.pg index 20f532a118..cfa5bf7e96 100644 --- a/OpenProblemLibrary/Berkeley/StewCalcET7e/1.6/1-6-x01.pg +++ b/OpenProblemLibrary/Berkeley/StewCalcET7e/1.6/1-6-x01.pg @@ -25,7 +25,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); diff --git a/OpenProblemLibrary/Berkeley/StewCalcET7e/5.3/5-3-61.pg b/OpenProblemLibrary/Berkeley/StewCalcET7e/5.3/5-3-61.pg index cadff67b59..8d56ee1700 100644 --- a/OpenProblemLibrary/Berkeley/StewCalcET7e/5.3/5-3-61.pg +++ b/OpenProblemLibrary/Berkeley/StewCalcET7e/5.3/5-3-61.pg @@ -25,7 +25,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -68,7 +68,7 @@ concave ${upordown}ward? $PAR Answer (in interval notation): \{ ans_rule(15) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} END_TEXT diff --git a/OpenProblemLibrary/CSUOhio/differential_equations/intro/indDepVar1.pg b/OpenProblemLibrary/CSUOhio/differential_equations/intro/indDepVar1.pg index ff55e6b9ed..2ff6ceeb06 100644 --- a/OpenProblemLibrary/CSUOhio/differential_equations/intro/indDepVar1.pg +++ b/OpenProblemLibrary/CSUOhio/differential_equations/intro/indDepVar1.pg @@ -24,12 +24,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionLists.pl", "parserPopUp.pl", "PGcourse.pl" @@ -39,7 +39,7 @@ TEXT(beginproblem()); ############################# -# Setup +# Setup Context("Numeric")->variables->are( y=>"Real", @@ -66,7 +66,7 @@ $popup11c = PopUp(["?", "linear", "nonlinear"], "nonlinear"); $popup12c = PopUp(["?", "linear", "nonlinear"], "linear"); ############################# -# Main text +# Main text Context()->texStrings; BEGIN_TEXT @@ -93,7 +93,7 @@ Context()->normalStrings; ############################## -# Answer evaluation +# Answer evaluation $showPartialCorrectAnswers = 1; ANS( Compute("x")->cmp() ); diff --git a/OpenProblemLibrary/CSUOhio/differential_equations/intro/indDepVar2.pg b/OpenProblemLibrary/CSUOhio/differential_equations/intro/indDepVar2.pg index 7f13f8338e..18dad74a13 100644 --- a/OpenProblemLibrary/CSUOhio/differential_equations/intro/indDepVar2.pg +++ b/OpenProblemLibrary/CSUOhio/differential_equations/intro/indDepVar2.pg @@ -23,12 +23,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionLists.pl", "parserPopUp.pl", "PGcourse.pl" @@ -38,7 +38,7 @@ TEXT(beginproblem()); ############################# -# Setup +# Setup Context("Numeric")->variables->are( y=>"Real", @@ -58,7 +58,7 @@ $popup6c = PopUp(["?", "linear", "nonlinear"], "linear"); ############################# -# Main text +# Main text Context()->texStrings; BEGIN_TEXT @@ -84,7 +84,7 @@ Context()->normalStrings; ############################## -# Answer evaluation +# Answer evaluation $showPartialCorrectAnswers = 1; diff --git a/OpenProblemLibrary/CSUOhio/differential_equations/intro/indDepVar3.pg b/OpenProblemLibrary/CSUOhio/differential_equations/intro/indDepVar3.pg index fb4defd20a..d05d8b08a8 100644 --- a/OpenProblemLibrary/CSUOhio/differential_equations/intro/indDepVar3.pg +++ b/OpenProblemLibrary/CSUOhio/differential_equations/intro/indDepVar3.pg @@ -23,12 +23,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionLists.pl", "parserPopUp.pl", "PGcourse.pl" @@ -38,7 +38,7 @@ TEXT(beginproblem()); ############################# -# Setup +# Setup Context("Numeric")->variables->are( y=>"Real", @@ -56,7 +56,7 @@ $popup8c = PopUp(["?", "linear", "nonlinear"], "nonlinear"); $popup9c = PopUp(["?", "linear", "nonlinear"], "linear"); ############################# -# Main text +# Main text Context()->texStrings; BEGIN_TEXT @@ -83,7 +83,7 @@ Context()->normalStrings; ############################## -# Answer evaluation +# Answer evaluation $showPartialCorrectAnswers = 1; diff --git a/OpenProblemLibrary/CSUOhio/differential_equations/intro/indDepVar4.pg b/OpenProblemLibrary/CSUOhio/differential_equations/intro/indDepVar4.pg index 36b4f38e5f..10b2636ce2 100644 --- a/OpenProblemLibrary/CSUOhio/differential_equations/intro/indDepVar4.pg +++ b/OpenProblemLibrary/CSUOhio/differential_equations/intro/indDepVar4.pg @@ -23,12 +23,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionLists.pl", "parserPopUp.pl", "PGcourse.pl" @@ -38,7 +38,7 @@ TEXT(beginproblem()); ############################# -# Setup +# Setup Context("Numeric")->variables->are( y=>"Real", @@ -56,7 +56,7 @@ $popup11c = PopUp(["?", "linear", "nonlinear"], "nonlinear"); $popup12c = PopUp(["?", "linear", "nonlinear"], "linear"); ############################# -# Main text +# Main text Context()->texStrings; BEGIN_TEXT @@ -83,7 +83,7 @@ Context()->normalStrings; ############################## -# Answer evaluation +# Answer evaluation $showPartialCorrectAnswers = 1; diff --git a/OpenProblemLibrary/CSUOhio/differential_equations/intro/whenLinear.pg b/OpenProblemLibrary/CSUOhio/differential_equations/intro/whenLinear.pg index 43b16a4f20..78e051942d 100644 --- a/OpenProblemLibrary/CSUOhio/differential_equations/intro/whenLinear.pg +++ b/OpenProblemLibrary/CSUOhio/differential_equations/intro/whenLinear.pg @@ -21,12 +21,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionLists.pl", "parserPopUp.pl", "PGcourse.pl" @@ -36,7 +36,7 @@ TEXT(beginproblem()); ############################# -# Setup +# Setup Context("Numeric")->variables->are( a=>"Real", ); @@ -44,7 +44,7 @@ $a=random(1,3); $expr = Compute("a^2-$a*a")->reduce(); ############################# -# Main text +# Main text Context()->texStrings; BEGIN_TEXT @@ -62,7 +62,7 @@ Context()->normalStrings; ############################## -# Answer evaluation +# Answer evaluation $showPartialCorrectAnswers = 1; ANS( num_cmp( $a ) ); diff --git a/OpenProblemLibrary/CSUOhio/differential_equations/logistic/logistic.pg b/OpenProblemLibrary/CSUOhio/differential_equations/logistic/logistic.pg index a31e4d13db..ef6d45661c 100644 --- a/OpenProblemLibrary/CSUOhio/differential_equations/logistic/logistic.pg +++ b/OpenProblemLibrary/CSUOhio/differential_equations/logistic/logistic.pg @@ -16,7 +16,7 @@ # ## Feb. 2021: G. Jennings replaced Flash applet with html5 canvas. ######################################################################## -# This work is supported in part by the National Science Foundation +# This work is supported in part by the National Science Foundation # under the grant DUE-0941388. ######################################################################## @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "AppletObjects.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGasu.pl", "PGcourse.pl" ); @@ -59,12 +59,12 @@ $N = $params_array[$choice][1]; $a = $params_array[$choice][2]; # the diffeq is P' = kP(1-P/N)-a which is zero when -# P = N/2*(1 +/- sqrt(1-4a/(Nk))). For the above +# P = N/2*(1 +/- sqrt(1-4a/(Nk))). For the above # values 4a "[ $label ]", @@ -90,7 +90,7 @@ sub buttonElement { ); } -## the canvas +## the canvas # FIXME add image("somefile.png") sub canvasElement { @@ -113,13 +113,13 @@ const a = $a; const canvasWidth = $canvasWidth; const canvasHeight = $canvasHeight; -const margin = 10; -const Pmax = $Pmax; +const margin = 10; +const Pmax = $Pmax; const Tmax = $Tmax; const PmaxY = 2*margin; // from top edge const TmaxX = canvasWidth-2*margin; // from right edge -const PaxisX = 3*margin; // x-coord of P axis -const TaxisY = canvasHeight-6*margin; // y-coord of T axis +const PaxisX = 3*margin; // x-coord of P axis +const TaxisY = canvasHeight-6*margin; // y-coord of T axis // rates of change: axis (T,P) to canvas (x,y) const YperP = (PmaxY-TaxisY)/Pmax; // negative! @@ -140,7 +140,7 @@ function XtoT(X){ return (X - PaxisX)/XperT; } -// ticks on P axis are at 0.2 intervals +// ticks on P axis are at 0.2 intervals function drawPAxis(ctx){ ctx.textAlign="center"; @@ -152,7 +152,7 @@ function drawPAxis(ctx){ ctx.font="14px Arial"; ctx.fillText("P", PaxisX-2*margin, PtoY(Pmax)); // P axis ticks - let y; + let y; for (let i=Math.ceil(YtoP(TaxisY+4*margin)/0.2); i*0.2 < Pmax; i++){ //if (i==0){ continue; } ctx.beginPath(); @@ -164,7 +164,7 @@ function drawPAxis(ctx){ } } -// ticks on T axis are at 0.2*tstep intervals. +// ticks on T axis are at 0.2*tstep intervals. // if Tmax = A*10^n with 1<=A<10 then tstep = 10^n const tstep = Math.round(10**Math.floor(Math.log(Tmax)/Math.log(10))); // for T-labels @@ -179,7 +179,7 @@ function drawTAxis(ctx){ ctx.font="14px Arial"; ctx.fillText("t", TmaxX+margin, TaxisY); // T axis ticks - let x; + let x; for (let i=Math.ceil(XtoT(PaxisX-margin)/(tstep*0.2)); i*0.2*tstep < Tmax; i++){ if (i==0){ continue;} ctx.beginPath(); @@ -193,7 +193,7 @@ function drawTAxis(ctx){ // To plot solutions I'll use a program for a simple -// Runge-Kutta 4th order solver (rk4) copied from Numerical +// Runge-Kutta 4th order solver (rk4) copied from Numerical // Mathematics and Computing (2nd ed.) by W. Cheney and D. Kincaid // (1980) pp. 394. @@ -203,7 +203,7 @@ dP = function (T,P){ return k*P*(1-P/N)-a; } // Runge-Kutta 4 numerical ODE solver. X = [t,P] function F(X) { - return [ dT(X[0],X[1]), dP(X[0],X[1]) ]; + return [ dT(X[0],X[1]), dP(X[0],X[1]) ]; } function rk4step (X,h) { @@ -216,16 +216,16 @@ function rk4step (X,h) { // min, max refer to the parameter, which is T in this case because dT=1 -drawSolutionCurve = function (ctx,T,P,h,min,max) { +drawSolutionCurve = function (ctx,T,P,h,min,max) { let X = [T,P]; // initial value ctx.lineWidth = 2; ctx.strokeStyle = "blue"; - // forward + // forward ctx.beginPath() ctx.moveTo(TtoX(X[0]),PtoY(X[1])); for (let i=0; i < (Tmax-T)/h+1; i++){ Y = rk4step(X,h); - if (Y[1] < -1 ){break;} // sanity check + if (Y[1] < -1 ){break;} // sanity check ctx.lineTo(TtoX(Y[0]),PtoY(Y[1])); X=Y; } @@ -255,7 +255,7 @@ drawArrow = function (ctx,T,P,scale){ let x = TtoX(T); let y = PtoY(P); // draw vector: - // arrowhead + // arrowhead let head = new Path2D(); head.moveTo(x+2*dx/3+dy/6,y+2*dy/3-dx/6); head.lineTo(x+dx,y+dy); @@ -291,9 +291,9 @@ document.addEventListener("DOMContentLoaded", function() { const h = 1; const min = XtoT(2*margin); const max = XtoT(canvasWidth-margin); - + const clear_button = document.getElementById("logistic_clear"); - + drawPAxis(ctx); drawTAxis(ctx); drawVecField(ctx); @@ -306,7 +306,7 @@ document.addEventListener("DOMContentLoaded", function() { clear_button.addEventListener('click', function(e) { e.preventDefault(); - ctx.clearRect(0,0,canvas.width,canvas.height); + ctx.clearRect(0,0,canvas.width,canvas.height); ctx.strokeStyle="black"; drawPAxis(ctx); drawTAxis(ctx); @@ -331,18 +331,18 @@ MODES ( Context()->texStrings; BEGIN_TEXT -In this assignment, we consider a logistic model of population growth that has been modified -to include a term that accounts for "harvesting". +In this assignment, we consider a logistic model of population growth that has been modified +to include a term that accounts for "harvesting". $PAR We consider a model in which a fixed number of fish are harvested each day. The differential equation for this case is: \[\frac{dp}{dt}=kp\left(1-\frac{p}{N}\right)-a,\] -a logistic model of the rate of change of population \(P(t)\) in an environment with carrying capacity \(N\) and constant harvesting at a rate \(a\). For this example, consider the case particular case \(k=$k\), \(N=$N\) and \(a=$a\), that is, the equation is: +a logistic model of the rate of change of population \(P(t)\) in an environment with carrying capacity \(N\) and constant harvesting at a rate \(a\). For this example, consider the case particular case \(k=$k\), \(N=$N\) and \(a=$a\), that is, the equation is: \[\frac{dp}{dt}=$k p\left(1-\frac{p}{$N}\right)-$a\] (Of course in real life \(P\), \(t\), \(N\), and \(a\) would be measured on some appropriate scales, for example \(P\), \(N\), and \(a\) might represent hundreds of tons and \(t\) might represent months or years, but we'll ignore that.) -$PAR +$PAR In the applet below you may click on specific initial conditions to draw solution curves for the differential equation. - + $PAR \{ canvasElement() \} $BR \{ buttonElement('clear','Clear the solution curves') \} diff --git a/OpenProblemLibrary/CollegeOfIdaho/setAlgebra_04_02_CompoundIneq/42IntAlg_11_CompoundIneq.pg b/OpenProblemLibrary/CollegeOfIdaho/setAlgebra_04_02_CompoundIneq/42IntAlg_11_CompoundIneq.pg index b46d8984be..19f9ea6f5f 100644 --- a/OpenProblemLibrary/CollegeOfIdaho/setAlgebra_04_02_CompoundIneq/42IntAlg_11_CompoundIneq.pg +++ b/OpenProblemLibrary/CollegeOfIdaho/setAlgebra_04_02_CompoundIneq/42IntAlg_11_CompoundIneq.pg @@ -1,6 +1,6 @@ ##DESCRIPTION ## Compound Inequalities -## +## ##ENDDESCRIPTION ## DBsubject(Algebra) ## DBchapter(Algebra of real numbers and simplifying expressions) @@ -24,7 +24,7 @@ loadMacros( "PGchoicemacros.pl", "MathObjects.pl", "contextInequalitiesAllowStrings.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -36,14 +36,14 @@ TEXT(beginproblem()); @num = (random(-4,4,1),random(5,9,1)); @inequal = ("x < $num[0]","x > $num[1]" ); @slice = NchooseK(2,2); - + ###################################### # Main text BEGIN_TEXT -Solve the compound inequality. +Solve the compound inequality. \[ $inequal[$slice[0]] \mbox{ and } $inequal[$slice[1]] \] -Answer: \{ ans_rule(20) \} \{AnswerFormatHelp("inequalities")\} +Answer: \{ ans_rule(20) \} \{helpLink("inequalities")\} END_TEXT ###################################### @@ -52,7 +52,7 @@ END_TEXT Context("Inequalities-AllowStrings"); $ans = Compute("NONE"); -ANS($ans->cmp()); +ANS($ans->cmp()); $showPartialCorrectAnswers = 1; diff --git a/OpenProblemLibrary/CollegeOfIdaho/setAlgebra_05_06_Factoring/56IntAlg_19AnswerHelp_Factor.pg b/OpenProblemLibrary/CollegeOfIdaho/setAlgebra_05_06_Factoring/56IntAlg_19AnswerHelp_Factor.pg index eae9171e39..ef707c2c9c 100644 --- a/OpenProblemLibrary/CollegeOfIdaho/setAlgebra_05_06_Factoring/56IntAlg_19AnswerHelp_Factor.pg +++ b/OpenProblemLibrary/CollegeOfIdaho/setAlgebra_05_06_Factoring/56IntAlg_19AnswerHelp_Factor.pg @@ -1,6 +1,6 @@ ##DESCRIPTION ## Factoring Trinomials -## +## ##ENDDESCRIPTION ## DBsubject(Algebra) ## DBchapter(Factoring) @@ -22,7 +22,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextPolynomialFactors.pl", "contextLimitedPowers.pl", "PGcourse.pl" @@ -52,7 +52,7 @@ $polynomial = Formula("($a*$d) $var^2 + ($a*$c + $b*$d) $var + ($b*$c)")->reduce BEGIN_TEXT Factor completely: $PAR -\( $polynomial = \) \{ ans_rule(30) \} +\( $polynomial = \) \{ ans_rule(30) \} END_TEXT ###################################### @@ -67,13 +67,13 @@ minPower => 0, maxPower => 1 ); Context()->variables->are($var=>'Real'); -Context()->{error}{msg}{"Powers must be integer constants"} +Context()->{error}{msg}{"Powers must be integer constants"} = "Not completely factored"; Context()->strings->add('Does not factor'=>{}); $factoredform = Formula("($a $var + $b) ($d $var + $c)")->reduce; -ANS($factoredform->cmp); +ANS($factoredform->cmp); ###################################### # Solution diff --git a/OpenProblemLibrary/FortLewis/Algebra/1-1-Expressions/MCH1-1-1-02-Expressions.pg b/OpenProblemLibrary/FortLewis/Algebra/1-1-Expressions/MCH1-1-1-02-Expressions.pg index 27d99811c1..a9dc008f0b 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/1-1-Expressions/MCH1-1-1-02-Expressions.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/1-1-Expressions/MCH1-1-1-02-Expressions.pg @@ -24,12 +24,12 @@ ######################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -60,7 +60,7 @@ Evaluate the expression \( $f \) when \(t=$t\). $BR $BR \{ ans_rule(10) \} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/1-1-Expressions/MCH1-1-1-04-Expressions.pg b/OpenProblemLibrary/FortLewis/Algebra/1-1-Expressions/MCH1-1-1-04-Expressions.pg index 3c2f8c809f..54afc5b6c3 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/1-1-Expressions/MCH1-1-1-04-Expressions.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/1-1-Expressions/MCH1-1-1-04-Expressions.pg @@ -24,12 +24,12 @@ ######################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -62,13 +62,13 @@ Context()->functions->disable("All"); Context()->texStrings; BEGIN_TEXT -Evaluate the expression -\( \displaystyle \frac{1}{$absapc} \big( x + $a \big)^2 - $b \) +Evaluate the expression +\( \displaystyle \frac{1}{$absapc} \big( x + $a \big)^2 - $b \) when \( x = $c \). $BR $BR \{ ans_rule(10) \} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/1-1-Expressions/MCH1-1-1-06-Expressions.pg b/OpenProblemLibrary/FortLewis/Algebra/1-1-Expressions/MCH1-1-1-06-Expressions.pg index 2b4ab8775e..845f360fa5 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/1-1-Expressions/MCH1-1-1-06-Expressions.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/1-1-Expressions/MCH1-1-1-06-Expressions.pg @@ -24,12 +24,12 @@ ######################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -59,13 +59,13 @@ Context()->functions->disable("All"); Context()->texStrings; BEGIN_TEXT -Evaluate the expression -\( \displaystyle \frac{1}{2} h \big( B + b \big) \) +Evaluate the expression +\( \displaystyle \frac{1}{2} h \big( B + b \big) \) when \( h = $h, \ B = $B, \ b = $b. \) $BR $BR \{ ans_rule(10) \} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/1-1-Expressions/MCH1-1-1-28-Expressions.pg b/OpenProblemLibrary/FortLewis/Algebra/1-1-Expressions/MCH1-1-1-28-Expressions.pg index 20f2e321d2..e7756a7f1c 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/1-1-Expressions/MCH1-1-1-28-Expressions.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/1-1-Expressions/MCH1-1-1-28-Expressions.pg @@ -24,12 +24,12 @@ ######################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -60,7 +60,7 @@ $BR $BR ${DOLLAR} \{ ans_rule(30) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/1-1-Expressions/MCH1-1-1-30-Expressions.pg b/OpenProblemLibrary/FortLewis/Algebra/1-1-Expressions/MCH1-1-1-30-Expressions.pg index 0474c970e6..be1fb2e52a 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/1-1-Expressions/MCH1-1-1-30-Expressions.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/1-1-Expressions/MCH1-1-1-30-Expressions.pg @@ -24,12 +24,12 @@ ######################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -56,23 +56,23 @@ $answer2 = $answer1->eval(a=>$applecost,p=>$pearcost); Context()->texStrings; BEGIN_TEXT -(a) Write an expression for the total cost of buying -$apples apples at ${DOLLAR}\( a \) each and $pears pears -at ${DOLLAR}\( p \) each. Your expression should be in +(a) Write an expression for the total cost of buying +$apples apples at ${DOLLAR}\( a \) each and $pears pears +at ${DOLLAR}\( p \) each. Your expression should be in terms of \( a \) and \( p \). $BR ${DOLLAR} \{ ans_rule(30) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $BR $BR -(b) Find the total cost if apples cost -${DOLLAR}\( $applecost \) each and pears cost +(b) Find the total cost if apples cost +${DOLLAR}\( $applecost \) each and pears cost ${DOLLAR}\( $pearcost \) each. $BR ${DOLLAR} \{ ans_rule(30) \} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/1-1-Expressions/MCH1-1-1-32-Expressions.pg b/OpenProblemLibrary/FortLewis/Algebra/1-1-Expressions/MCH1-1-1-32-Expressions.pg index 3d5ebe5a86..aa26ad7612 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/1-1-Expressions/MCH1-1-1-32-Expressions.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/1-1-Expressions/MCH1-1-1-32-Expressions.pg @@ -24,12 +24,12 @@ ######################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -54,21 +54,21 @@ $answer1 = $answer2->eval(x=>$a,y=>$b); Context()->texStrings; BEGIN_TEXT -(a) Suppose you pick two numbers $a and $b. -Find their sum and product, but do ${BITALIC}not${EITALIC} -enter it below. Then, find the average of their sum and +(a) Suppose you pick two numbers $a and $b. +Find their sum and product, but do ${BITALIC}not${EITALIC} +enter it below. Then, find the average of their sum and product and enter it below. $BR \{ ans_rule(30) \} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} $BR $BR -(b) Using the variables \( x \) and \( y \) to stand for +(b) Using the variables \( x \) and \( y \) to stand for the two numbers, write an algebraic expression that represents this calculation. $BR \{ ans_rule(30) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/1-1-Expressions/MCH1-1-1-52-Expressions.pg b/OpenProblemLibrary/FortLewis/Algebra/1-1-Expressions/MCH1-1-1-52-Expressions.pg index 5d3d680eee..5a2be7e719 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/1-1-Expressions/MCH1-1-1-52-Expressions.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/1-1-Expressions/MCH1-1-1-52-Expressions.pg @@ -25,12 +25,12 @@ ######################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unorderedAnswer.pl", "PGcourse.pl" ); @@ -55,7 +55,7 @@ Context()->texStrings; BEGIN_TEXT Decide whether the expression -\[ +\[ \frac{$b y}{y + $b} \] can be put in the form @@ -64,18 +64,18 @@ can be put in the form \] where \( a \) is a constant and \( x \) may involve variables. If it can be put in this form, identify \( a \) -and \( x \). If it cannot be put in this form, -enter ${BITALIC}NONE${EITALIC} for both \( a \) +and \( x \). If it cannot be put in this form, +enter ${BITALIC}NONE${EITALIC} for both \( a \) and \( x \) below. $BR $BR \( a = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("formula","help (number or formula)") \} +\{ helpLink("formula","help (number or formula)") \} $BR \( x = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("formula","help (number or formula)") \} +\{ helpLink("formula","help (number or formula)") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/1-1-Expressions/MCH1-1-1-54-Expressions.pg b/OpenProblemLibrary/FortLewis/Algebra/1-1-Expressions/MCH1-1-1-54-Expressions.pg index eae4979cc3..e62faadfeb 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/1-1-Expressions/MCH1-1-1-54-Expressions.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/1-1-Expressions/MCH1-1-1-54-Expressions.pg @@ -26,12 +26,12 @@ ######################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unorderedAnswer.pl", "PGcourse.pl" ); @@ -58,7 +58,7 @@ Context()->texStrings; BEGIN_TEXT Decide whether the expression -\[ +\[ \frac{$bc y}{$c y + $b} \] can be put in the form @@ -67,18 +67,18 @@ can be put in the form \] where \( a \) is a constant and \( x \) may involve variables. If it can be put in this form, identify \( a \) -and \( x \). If it cannot be put in this form, -enter ${BITALIC}NONE${EITALIC} for both \( a \) +and \( x \). If it cannot be put in this form, +enter ${BITALIC}NONE${EITALIC} for both \( a \) and \( x \) below. $BR $BR \( a = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formula","help (number or formula)") \} +\{ helpLink("formula","help (number or formula)") \} $BR \( x = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formula","help (number or formula)") \} +\{ helpLink("formula","help (number or formula)") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/1-2-Equations/MCH1-1-2-02-Equations.pg b/OpenProblemLibrary/FortLewis/Algebra/1-2-Equations/MCH1-1-2-02-Equations.pg index ea45270ec6..2146aa46ec 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/1-2-Equations/MCH1-1-2-02-Equations.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/1-2-Equations/MCH1-1-2-02-Equations.pg @@ -25,12 +25,12 @@ ######################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserImplicitEquation.pl", "PGcourse.pl" ); @@ -59,13 +59,13 @@ Context()->texStrings; BEGIN_TEXT The cost for $n dinners plus a ${DOLLAR}$t tip is -${DOLLAR}$c. Write an equation representing +${DOLLAR}$c. Write an equation representing the situation if \( p \) is the price of a dinner in dollars. You may asssume there is no tax. $BR $BR \{ ans_rule(40) \} -\{ AnswerFormatHelp("equation") \} +\{ helpLink("equation") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/1-2-Equations/MCH1-1-2-04-Equations.pg b/OpenProblemLibrary/FortLewis/Algebra/1-2-Equations/MCH1-1-2-04-Equations.pg index 59fec46e15..83f9ee0a74 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/1-2-Equations/MCH1-1-2-04-Equations.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/1-2-Equations/MCH1-1-2-04-Equations.pg @@ -24,12 +24,12 @@ ######################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserImplicitEquation.pl", "PGcourse.pl" ); @@ -59,13 +59,13 @@ Context()->texStrings; BEGIN_TEXT The cost for $n dinners plus a $t${PERCENT} tip is -${DOLLAR}$c. Write an equation representing +${DOLLAR}$c. Write an equation representing the situation if \( p \) is the price of the dinner in dollars. You may asssume there is no tax. $BR $BR \{ ans_rule(40) \} -\{ AnswerFormatHelp("equation") \} +\{ helpLink("equation") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/1-2-Equations/MCH1-1-2-26-Equations.pg b/OpenProblemLibrary/FortLewis/Algebra/1-2-Equations/MCH1-1-2-26-Equations.pg index 86e58619ba..61d1716fee 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/1-2-Equations/MCH1-1-2-26-Equations.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/1-2-Equations/MCH1-1-2-26-Equations.pg @@ -25,12 +25,12 @@ ######################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -60,7 +60,7 @@ $BR $BR \( x = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/1-2-Equations/MCH1-1-2-30-Equations.pg b/OpenProblemLibrary/FortLewis/Algebra/1-2-Equations/MCH1-1-2-30-Equations.pg index 2bb82e56f6..b9e4bc1038 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/1-2-Equations/MCH1-1-2-30-Equations.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/1-2-Equations/MCH1-1-2-30-Equations.pg @@ -25,12 +25,12 @@ ######################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -60,7 +60,7 @@ $BR $BR \( T = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/1-2-Equations/MCH1-1-2-34-Equations.pg b/OpenProblemLibrary/FortLewis/Algebra/1-2-Equations/MCH1-1-2-34-Equations.pg index 4eca62076b..19ccddeecd 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/1-2-Equations/MCH1-1-2-34-Equations.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/1-2-Equations/MCH1-1-2-34-Equations.pg @@ -25,12 +25,12 @@ ######################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -60,7 +60,7 @@ $BR $BR \( w = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/1-2-Equations/MCH1-1-2-38-Equations.pg b/OpenProblemLibrary/FortLewis/Algebra/1-2-Equations/MCH1-1-2-38-Equations.pg index 34f79289a7..d05072c378 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/1-2-Equations/MCH1-1-2-38-Equations.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/1-2-Equations/MCH1-1-2-38-Equations.pg @@ -24,12 +24,12 @@ ######################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserImplicitEquation.pl", "PGcourse.pl" ); @@ -59,13 +59,13 @@ Context()->texStrings; BEGIN_TEXT (a) Eric plans to spend ${DOLLAR}$c on ice cream cones -at ${DOLLAR}$p each. Write an equation whose solution -is the number of ice cream cones he can buy. Use \( n \) -for the number of ice cream cones. You may asssume there +at ${DOLLAR}$p each. Write an equation whose solution +is the number of ice cream cones he can buy. Use \( n \) +for the number of ice cream cones. You may asssume there is no tax. $BR \{ ans_rule(40) \} -\{ AnswerFormatHelp("equation") \} +\{ helpLink("equation") \} $BR $BR (b) Solve your equation above for the number of ice cream @@ -73,7 +73,7 @@ cones \( n \). $BR \( n = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/1-2-Equations/MCH1-1-2-42-Equations.pg b/OpenProblemLibrary/FortLewis/Algebra/1-2-Equations/MCH1-1-2-42-Equations.pg index 8aa2936e8f..228dd733c8 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/1-2-Equations/MCH1-1-2-42-Equations.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/1-2-Equations/MCH1-1-2-42-Equations.pg @@ -24,12 +24,12 @@ ######################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserImplicitEquation.pl", "PGcourse.pl" ); @@ -57,19 +57,19 @@ $answer = ImplicitEquation("$d = 6 + $v * t - 16 * t**2",solutions=>[[$sol1],[$s Context()->texStrings; BEGIN_TEXT -A ball thrown vertically upward at a speed of \( v \) -feet per second rises a distance \( d \) feet in -\( t \) seconds, given by +A ball thrown vertically upward at a speed of \( v \) +feet per second rises a distance \( d \) feet in +\( t \) seconds, given by \[ d = 6 + vt - 16t^2 \] -Write an equation whose solution is the time it -takes a ball thrown at \( $v \) feet per second -to rise \( $d \) feet. Do not solve the equation. +Write an equation whose solution is the time it +takes a ball thrown at \( $v \) feet per second +to rise \( $d \) feet. Do not solve the equation. $BR $BR \{ ans_rule(40) \} -\{ AnswerFormatHelp("equation") \} +\{ helpLink("equation") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/1-2-Equations/MCH1-1-2-44-Equations.pg b/OpenProblemLibrary/FortLewis/Algebra/1-2-Equations/MCH1-1-2-44-Equations.pg index 2931148979..15c8e9ef3e 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/1-2-Equations/MCH1-1-2-44-Equations.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/1-2-Equations/MCH1-1-2-44-Equations.pg @@ -24,12 +24,12 @@ ######################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserImplicitEquation.pl", "PGcourse.pl" ); @@ -57,19 +57,19 @@ $answer = ImplicitEquation("$d = 6 + v * $t - 16 * $t**2",solutions=>$sol); Context()->texStrings; BEGIN_TEXT -A ball thrown vertically upward at a speed of \( v \) -feet per second rises a distance \( d \) feet in -\( t \) seconds, given by +A ball thrown vertically upward at a speed of \( v \) +feet per second rises a distance \( d \) feet in +\( t \) seconds, given by \[ d = 6 + vt - 16t^2 \] -Write an equation whose solution is the speed with +Write an equation whose solution is the speed with which the ball must be thrown to rise \( $d \) feet -in \( $t \) seconds. Do not solve the equation. +in \( $t \) seconds. Do not solve the equation. $BR $BR \{ ans_rule(40) \} -\{ AnswerFormatHelp("equation") \} +\{ helpLink("equation") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/1-4-Equivalent-equations/MCH1-1-4-02-Equivalent-equations.pg b/OpenProblemLibrary/FortLewis/Algebra/1-4-Equivalent-equations/MCH1-1-4-02-Equivalent-equations.pg index 686470e911..5833834c36 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/1-4-Equivalent-equations/MCH1-1-4-02-Equivalent-equations.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/1-4-Equivalent-equations/MCH1-1-4-02-Equivalent-equations.pg @@ -24,13 +24,13 @@ ######################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PGchoicemacros.pl", - "AnswerFormatHelp.pl", + "weightedGrader.pl", "PGcourse.pl" ); @@ -52,8 +52,8 @@ $answer = Real("-($a + $b)"); $mc = new_multiple_choice(); $mc->qa( "What operation on both sides of the equation -\( -$a = $b + r \) isolates the variable on -one side?", +\( -$a = $b + r \) isolates the variable on +one side?", "Subtracting \( $b\)" ); $mc->extra( @@ -72,7 +72,7 @@ Context()->functions->disable("All"); Context()->texStrings; BEGIN_TEXT -(a) +(a) \{ $mc->print_q() \} \{ $mc->print_a() \} $BR @@ -80,7 +80,7 @@ $BR $BR \( r = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/1-4-Equivalent-equations/MCH1-1-4-06-Equivalent-equations.pg b/OpenProblemLibrary/FortLewis/Algebra/1-4-Equivalent-equations/MCH1-1-4-06-Equivalent-equations.pg index 92803c57ac..e33088db92 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/1-4-Equivalent-equations/MCH1-1-4-06-Equivalent-equations.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/1-4-Equivalent-equations/MCH1-1-4-06-Equivalent-equations.pg @@ -24,13 +24,13 @@ ######################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PGchoicemacros.pl", - "AnswerFormatHelp.pl", + "weightedGrader.pl", "PGcourse.pl" ); @@ -53,8 +53,8 @@ $answer = Real("-($a)"); $mc = new_multiple_choice(); $mc->qa( "What operation on both sides of the equation -\( $a1 x = $a x - $a \) isolates the variable on -one side?", +\( $a1 x = $a x - $a \) isolates the variable on +one side?", "Subtracting \( $a x \)" ); $mc->extra( @@ -75,7 +75,7 @@ Context()->functions->disable("All"); Context()->texStrings; BEGIN_TEXT -(a) +(a) \{ $mc->print_q() \} \{ $mc->print_a() \} $BR @@ -83,7 +83,7 @@ $BR $BR \( x = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/1-4-Equivalent-equations/MCH1-1-4-10-Equivalent-equations.pg b/OpenProblemLibrary/FortLewis/Algebra/1-4-Equivalent-equations/MCH1-1-4-10-Equivalent-equations.pg index c41a0156af..8cc69d4cfe 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/1-4-Equivalent-equations/MCH1-1-4-10-Equivalent-equations.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/1-4-Equivalent-equations/MCH1-1-4-10-Equivalent-equations.pg @@ -24,13 +24,13 @@ ######################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PGchoicemacros.pl", - "AnswerFormatHelp.pl", + "weightedGrader.pl", "PGcourse.pl" ); @@ -54,9 +54,9 @@ $answer = Real("$b"); $mc = new_checkbox_multiple_choice(); $mc->qa( "What operation on both sides of the equation -\( $a x = $ab \) isolates the variable on +\( $a x = $ab \) isolates the variable on one side? There may be more than one correct -answer.", +answer.", "Dividing by \( $a \)", "Multiplying by \( 1 / $a \)", ); @@ -78,7 +78,7 @@ Context()->functions->disable("All"); Context()->texStrings; BEGIN_TEXT -(a) +(a) \{ $mc->print_q() \} \{ $mc->print_a() \} $BR @@ -86,7 +86,7 @@ $BR $BR \( x = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/1-4-Equivalent-equations/MCH1-1-4-12-Equivalent-equations.pg b/OpenProblemLibrary/FortLewis/Algebra/1-4-Equivalent-equations/MCH1-1-4-12-Equivalent-equations.pg index d6065731d7..0e3fdc12e5 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/1-4-Equivalent-equations/MCH1-1-4-12-Equivalent-equations.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/1-4-Equivalent-equations/MCH1-1-4-12-Equivalent-equations.pg @@ -24,13 +24,13 @@ ######################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PGchoicemacros.pl", - "AnswerFormatHelp.pl", + "weightedGrader.pl", "PGcourse.pl" ); @@ -53,9 +53,9 @@ $answer = Real("$a"); $mc = new_checkbox_multiple_choice(); $mc->qa( "What operation on both sides of the equation -\( x^3 = $a3 \) isolates the variable on +\( x^3 = $a3 \) isolates the variable on one side? There may be more than one correct -answer.", +answer.", "Taking the cube root of both sides", #"Raising both sides to the \( 1/3 \) power", ); @@ -76,7 +76,7 @@ Context()->functions->disable("All"); Context()->texStrings; BEGIN_TEXT -(a) +(a) \{ $mc->print_q() \} \{ $mc->print_a() \} $BR @@ -84,7 +84,7 @@ $BR $BR \( x = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/1-4-Equivalent-equations/MCH1-1-4-14-Equivalent-equations.pg b/OpenProblemLibrary/FortLewis/Algebra/1-4-Equivalent-equations/MCH1-1-4-14-Equivalent-equations.pg index aa72ce3ed6..c2974be6f2 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/1-4-Equivalent-equations/MCH1-1-4-14-Equivalent-equations.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/1-4-Equivalent-equations/MCH1-1-4-14-Equivalent-equations.pg @@ -24,13 +24,13 @@ ######################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PGchoicemacros.pl", - "AnswerFormatHelp.pl", + "weightedGrader.pl", "PGcourse.pl" ); @@ -55,11 +55,11 @@ $equation = "\( $a (x + $b) = $c \)"; $mc = new_checkbox_multiple_choice(); $mc->qa( -"The equation $equation can be solved by -performing two operations on both sides. +"The equation $equation can be solved by +performing two operations on both sides. State the operations in order of use. -There may be more than one correct answer.", -"Divide both sides by \( $a \) first, then +There may be more than one correct answer.", +"Divide both sides by \( $a \) first, then subtract \( $b \) from both sides", ); $mc->extra( @@ -81,7 +81,7 @@ Context()->functions->disable("All"); Context()->texStrings; BEGIN_TEXT -(a) +(a) \{ $mc->print_q() \} \{ $mc->print_a() \} $BR @@ -89,7 +89,7 @@ $BR $BR \( x = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/1-4-Equivalent-equations/MCH1-1-4-16-Equivalent-equations.pg b/OpenProblemLibrary/FortLewis/Algebra/1-4-Equivalent-equations/MCH1-1-4-16-Equivalent-equations.pg index 782edde943..c3aedcf2b6 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/1-4-Equivalent-equations/MCH1-1-4-16-Equivalent-equations.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/1-4-Equivalent-equations/MCH1-1-4-16-Equivalent-equations.pg @@ -24,13 +24,13 @@ ######################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PGchoicemacros.pl", - "AnswerFormatHelp.pl", + "weightedGrader.pl", "PGcourse.pl" ); @@ -55,11 +55,11 @@ $answer = Real("($b * $c) - $a"); $mc = new_checkbox_multiple_choice(); $mc->qa( -"The equation $equation can be solved by -performing two operations on both sides. +"The equation $equation can be solved by +performing two operations on both sides. State the operations in order of use. -There may be more than one correct answer.", -"Multiply both sides by \( $b \) first, then +There may be more than one correct answer.", +"Multiply both sides by \( $b \) first, then subtract \( $a \) from both sides", ); $mc->extra( @@ -83,7 +83,7 @@ Context()->functions->disable("All"); Context()->texStrings; BEGIN_TEXT -(a) +(a) \{ $mc->print_q() \} \{ $mc->print_a() \} $BR @@ -91,7 +91,7 @@ $BR $BR \( x = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/1-4-Equivalent-equations/MCH1-1-4-20-Equivalent-equations.pg b/OpenProblemLibrary/FortLewis/Algebra/1-4-Equivalent-equations/MCH1-1-4-20-Equivalent-equations.pg index aafa5dd658..4fb97eac4a 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/1-4-Equivalent-equations/MCH1-1-4-20-Equivalent-equations.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/1-4-Equivalent-equations/MCH1-1-4-20-Equivalent-equations.pg @@ -23,12 +23,12 @@ ######################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "PGchoicemacros.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -58,8 +58,8 @@ $equation1 $BR $BR $equation2 -$ECENTER -If so, what is the operation?", +$ECENTER +If so, what is the operation?", "Multiply both sides by \( $ab \)", ); $mc->extra( diff --git a/OpenProblemLibrary/FortLewis/Algebra/1-4-Equivalent-equations/MCH1-1-4-24-Equivalent-equations.pg b/OpenProblemLibrary/FortLewis/Algebra/1-4-Equivalent-equations/MCH1-1-4-24-Equivalent-equations.pg index 0ef252ac05..f491d82b3a 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/1-4-Equivalent-equations/MCH1-1-4-24-Equivalent-equations.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/1-4-Equivalent-equations/MCH1-1-4-24-Equivalent-equations.pg @@ -23,13 +23,13 @@ ######################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PGchoicemacros.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -58,8 +58,8 @@ $equation1 $BR $BR $equation2 -$ECENTER -If so, what is the operation?", +$ECENTER +If so, what is the operation?", "There is no valid operation that transforms the first equation into the second equation", ); $mc->extra( diff --git a/OpenProblemLibrary/FortLewis/Algebra/1-4-Equivalent-equations/MCH1-1-4-28-Equivalent-equations.pg b/OpenProblemLibrary/FortLewis/Algebra/1-4-Equivalent-equations/MCH1-1-4-28-Equivalent-equations.pg index ba56c75395..7f89c387ef 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/1-4-Equivalent-equations/MCH1-1-4-28-Equivalent-equations.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/1-4-Equivalent-equations/MCH1-1-4-28-Equivalent-equations.pg @@ -23,13 +23,13 @@ ######################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PGchoicemacros.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -49,15 +49,15 @@ $equation2 = "\( \displaystyle x = $a \)"; $mc = new_multiple_choice(); $mc->qa( -"Are the two equations equivalent? +"Are the two equations equivalent? $BCENTER $equation1 $BR $BR $equation2 -$ECENTER -If they are equivalent, what operation transforms -the first into the second?", +$ECENTER +If they are equivalent, what operation transforms +the first into the second?", "Divide both sides by \( x \)", ); $mc->extra( diff --git a/OpenProblemLibrary/FortLewis/Algebra/1-4-Equivalent-equations/MCH1-1-4-30-Equivalent-equations.pg b/OpenProblemLibrary/FortLewis/Algebra/1-4-Equivalent-equations/MCH1-1-4-30-Equivalent-equations.pg index 1b34bc404f..d65116ca18 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/1-4-Equivalent-equations/MCH1-1-4-30-Equivalent-equations.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/1-4-Equivalent-equations/MCH1-1-4-30-Equivalent-equations.pg @@ -23,13 +23,13 @@ ######################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PGchoicemacros.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -52,15 +52,15 @@ $equation2 = "\( \displaystyle $b x = $d \)"; $mc = new_multiple_choice(); $mc->qa( -"Are the two equations equivalent? +"Are the two equations equivalent? $BCENTER $equation1 $BR $BR $equation2 -$ECENTER -If they are equivalent, what operation transforms -the first into the second?", +$ECENTER +If they are equivalent, what operation transforms +the first into the second?", "The equations are not equivalent", ); $mc->extra( diff --git a/OpenProblemLibrary/FortLewis/Algebra/1-4-Equivalent-equations/MCH1-1-4-38-Equivalent-equations.pg b/OpenProblemLibrary/FortLewis/Algebra/1-4-Equivalent-equations/MCH1-1-4-38-Equivalent-equations.pg index a541e30914..dafa650d0c 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/1-4-Equivalent-equations/MCH1-1-4-38-Equivalent-equations.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/1-4-Equivalent-equations/MCH1-1-4-38-Equivalent-equations.pg @@ -24,13 +24,13 @@ ######################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PGchoicemacros.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -64,7 +64,7 @@ $BR $BR \( x = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/1-4-Equivalent-equations/MCH1-1-4-42-Equivalent-equations.pg b/OpenProblemLibrary/FortLewis/Algebra/1-4-Equivalent-equations/MCH1-1-4-42-Equivalent-equations.pg index 4a20e8eaa6..4b5429b87b 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/1-4-Equivalent-equations/MCH1-1-4-42-Equivalent-equations.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/1-4-Equivalent-equations/MCH1-1-4-42-Equivalent-equations.pg @@ -25,13 +25,13 @@ ######################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PGchoicemacros.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -64,7 +64,7 @@ $BR $BR \( x = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/1-4-Equivalent-equations/MCH1-1-4-46-Equivalent-equations.pg b/OpenProblemLibrary/FortLewis/Algebra/1-4-Equivalent-equations/MCH1-1-4-46-Equivalent-equations.pg index 903d81ca1a..3b0a4666dc 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/1-4-Equivalent-equations/MCH1-1-4-46-Equivalent-equations.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/1-4-Equivalent-equations/MCH1-1-4-46-Equivalent-equations.pg @@ -25,12 +25,12 @@ ######################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -72,7 +72,7 @@ $BR $BR \( x = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("fraction") \} +\{ helpLink("fraction") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/1-4-Equivalent-equations/MCH1-1-4-64-Equivalent-equations.pg b/OpenProblemLibrary/FortLewis/Algebra/1-4-Equivalent-equations/MCH1-1-4-64-Equivalent-equations.pg index ef3e584708..60779a828b 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/1-4-Equivalent-equations/MCH1-1-4-64-Equivalent-equations.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/1-4-Equivalent-equations/MCH1-1-4-64-Equivalent-equations.pg @@ -24,13 +24,13 @@ ######################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PGchoicemacros.pl", - "AnswerFormatHelp.pl", + "weightedGrader.pl", "PGcourse.pl" ); @@ -54,8 +54,8 @@ $answer = Real("-($a * $b)"); $mc = new_checkbox_multiple_choice(); $mc->qa( "What operation on both sides of the equation -$equation isolates the variable on one side? -There may be more than one correct answer.", +$equation isolates the variable on one side? +There may be more than one correct answer.", "Multiplying both sides by \( $b \)", ); $mc->extra( @@ -74,7 +74,7 @@ Context()->functions->disable("All"); Context()->texStrings; BEGIN_TEXT -(a) +(a) \{ $mc->print_q() \} \{ $mc->print_a() \} $BR @@ -82,7 +82,7 @@ $BR $BR \( s = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/1-4-Equivalent-equations/MCH1-1-4-66-Equivalent-equations.pg b/OpenProblemLibrary/FortLewis/Algebra/1-4-Equivalent-equations/MCH1-1-4-66-Equivalent-equations.pg index ce8754b758..73a337eb3e 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/1-4-Equivalent-equations/MCH1-1-4-66-Equivalent-equations.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/1-4-Equivalent-equations/MCH1-1-4-66-Equivalent-equations.pg @@ -24,13 +24,13 @@ ######################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PGchoicemacros.pl", - "AnswerFormatHelp.pl", + "weightedGrader.pl", "PGcourse.pl" ); @@ -55,8 +55,8 @@ $answer = Real("$a4"); $mc = new_checkbox_multiple_choice(); $mc->qa( "What operation on both sides of the equation -$equation isolates the variable on one side? -There may be more than one correct answer.", +$equation isolates the variable on one side? +There may be more than one correct answer.", "Square both sides", ); $mc->extra( @@ -76,7 +76,7 @@ Context()->functions->disable("All"); Context()->texStrings; BEGIN_TEXT -(a) +(a) \{ $mc->print_q() \} \{ $mc->print_a() \} $BR @@ -84,7 +84,7 @@ $BR $BR \( r = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/1-4-Equivalent-equations/MCH1-1-4-68-Equivalent-equations.pg b/OpenProblemLibrary/FortLewis/Algebra/1-4-Equivalent-equations/MCH1-1-4-68-Equivalent-equations.pg index c6bb9debbf..8968d6739a 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/1-4-Equivalent-equations/MCH1-1-4-68-Equivalent-equations.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/1-4-Equivalent-equations/MCH1-1-4-68-Equivalent-equations.pg @@ -24,13 +24,13 @@ ######################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PGchoicemacros.pl", - "AnswerFormatHelp.pl", + "weightedGrader.pl", "contextFraction.pl", "PGcourse.pl" @@ -56,8 +56,8 @@ $answer = Fraction($b,$a); $mc = new_checkbox_multiple_choice(); $mc->qa( "What operation on both sides of the equation -$equation isolates the variable on one side? -There may be more than one correct answer.", +$equation isolates the variable on one side? +There may be more than one correct answer.", "Take the reciprocal of both sides", #"Raise both sides to the power \( -1 \)" ); @@ -77,7 +77,7 @@ $mc->extra( Context()->texStrings; BEGIN_TEXT -(a) +(a) \{ $mc->print_q() \} \{ $mc->print_a() \} $BR @@ -85,7 +85,7 @@ $BR $BR \( B = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("fraction") \} +\{ helpLink("fraction") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/10-1-Exponential-Functions/MCH1-10-1-14.pg b/OpenProblemLibrary/FortLewis/Algebra/10-1-Exponential-Functions/MCH1-10-1-14.pg index edee73290c..7e541341f2 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/10-1-Exponential-Functions/MCH1-10-1-14.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/10-1-Exponential-Functions/MCH1-10-1-14.pg @@ -18,12 +18,12 @@ ## Problem1('14') ## KEYWORDS('exponential functions','growth rate','growth factor') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -48,7 +48,7 @@ BEGIN_TEXT The balance in an account, \(B\), starts at \($a\) dollars and increases \(n\) years in a row by a factor of \($b\) each year. Write a formula for \(B = f(n)\). $BR \( B = f(n)=\)\{ ans_rule(20) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/10-1-Exponential-Functions/MCH1-10-1-34.pg b/OpenProblemLibrary/FortLewis/Algebra/10-1-Exponential-Functions/MCH1-10-1-34.pg index a59d1124f2..1e7fed2130 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/10-1-Exponential-Functions/MCH1-10-1-34.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/10-1-Exponential-Functions/MCH1-10-1-34.pg @@ -18,15 +18,15 @@ ## Problem1('34') ## KEYWORDS('exponents') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); - + TEXT(beginproblem()); # standard preamble to each problem. Context("Numeric"); @@ -47,10 +47,10 @@ $BR $BR $BR \( a = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR \( b = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT ANS( Real("$a1")->cmp() ); diff --git a/OpenProblemLibrary/FortLewis/Algebra/10-1-Exponential-Functions/MCH1-10-1-36.pg b/OpenProblemLibrary/FortLewis/Algebra/10-1-Exponential-Functions/MCH1-10-1-36.pg index 16511dc246..836deada49 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/10-1-Exponential-Functions/MCH1-10-1-36.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/10-1-Exponential-Functions/MCH1-10-1-36.pg @@ -18,15 +18,15 @@ ## Problem1('36') ## KEYWORDS('exponents') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); - + TEXT(beginproblem()); # standard preamble to each problem. Context("Numeric"); @@ -45,10 +45,10 @@ $BR $BR $BR \( a = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR \( b = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT ANS( Real("$r1")->cmp() ); diff --git a/OpenProblemLibrary/FortLewis/Algebra/10-1-Exponential-Functions/MCH1-10-1-38.pg b/OpenProblemLibrary/FortLewis/Algebra/10-1-Exponential-Functions/MCH1-10-1-38.pg index 364e4faf5b..a99234251d 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/10-1-Exponential-Functions/MCH1-10-1-38.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/10-1-Exponential-Functions/MCH1-10-1-38.pg @@ -18,15 +18,15 @@ ## Problem1('36') ## KEYWORDS('exponents') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); - + TEXT(beginproblem()); # standard preamble to each problem. Context("Numeric"); @@ -46,10 +46,10 @@ $BR $BR $BR \( a = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR \( b = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT ANS( Real("$a2")->cmp() ); diff --git a/OpenProblemLibrary/FortLewis/Algebra/10-1-Exponential-Functions/MCH1-10-1-6.pg b/OpenProblemLibrary/FortLewis/Algebra/10-1-Exponential-Functions/MCH1-10-1-6.pg index a006faf6a0..21f6ecc852 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/10-1-Exponential-Functions/MCH1-10-1-6.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/10-1-Exponential-Functions/MCH1-10-1-6.pg @@ -19,15 +19,15 @@ ## Problem1('6') ## KEYWORDS('exponents') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); - + TEXT(beginproblem()); # standard preamble to each problem. Context("Numeric"); @@ -46,10 +46,10 @@ $BR $BR $BR \( a = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR \( b = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT ANS( Real("$a1")->cmp() ); diff --git a/OpenProblemLibrary/FortLewis/Algebra/10-1-Exponential-Functions/MCH1-10-1-8.pg b/OpenProblemLibrary/FortLewis/Algebra/10-1-Exponential-Functions/MCH1-10-1-8.pg index 7fb7d21bd2..01d7c3873f 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/10-1-Exponential-Functions/MCH1-10-1-8.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/10-1-Exponential-Functions/MCH1-10-1-8.pg @@ -18,15 +18,15 @@ ## Problem1('8') ## KEYWORDS('exponents') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); - + TEXT(beginproblem()); # standard preamble to each problem. Context("Numeric"); @@ -45,10 +45,10 @@ $BR $BR $BR \( a = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR \( b = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT ANS( Real("$a1")->cmp() ); diff --git a/OpenProblemLibrary/FortLewis/Algebra/10-1-Exponential-Functions/MCH1-10-18c-.pg b/OpenProblemLibrary/FortLewis/Algebra/10-1-Exponential-Functions/MCH1-10-18c-.pg index 72a86505bc..15bef65d22 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/10-1-Exponential-Functions/MCH1-10-18c-.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/10-1-Exponential-Functions/MCH1-10-18c-.pg @@ -24,12 +24,12 @@ ## Problem2('18') ## KEYWORDS('exponential functions','growth rate','growth factor') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -52,14 +52,14 @@ $f = Formula("$a * ($b)**n"); Context()->texStrings; BEGIN_TEXT -The area covered by a marsh, \(A\), starts at \($a\) -acres and drops by a factor of \(\dfrac{1}{$q}\) -each year for \(n\) years. Write a formula for +The area covered by a marsh, \(A\), starts at \($a\) +acres and drops by a factor of \(\dfrac{1}{$q}\) +each year for \(n\) years. Write a formula for \(A = f(n)\). $BR $BR \( A = f(n)=\)\{ ans_rule(20) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/10-1-Exponential-Functions/MCH1-10-26-.pg b/OpenProblemLibrary/FortLewis/Algebra/10-1-Exponential-Functions/MCH1-10-26-.pg index 41f467adde..8660a1a6b4 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/10-1-Exponential-Functions/MCH1-10-26-.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/10-1-Exponential-Functions/MCH1-10-26-.pg @@ -18,12 +18,12 @@ ## Problem1('27') ## KEYWORDS('exponential functions','growth rate','growth factor') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -58,13 +58,13 @@ $BR (a) Write a formula for \(f(t)\). $BR \( P = f(t) = \)\{ ans_rule(20) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $BR $BR (b) According to your formula, what will the population of Bhutan be in \( $y \)? $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/10-2-Working-with-the-Base/MCH-10-2-16.pg b/OpenProblemLibrary/FortLewis/Algebra/10-2-Working-with-the-Base/MCH-10-2-16.pg index 7a9e153d34..ff10890837 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/10-2-Working-with-the-Base/MCH-10-2-16.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/10-2-Working-with-the-Base/MCH-10-2-16.pg @@ -19,13 +19,13 @@ ## Problem1('16') ## KEYWORDS('exponential functions','growth rate','growth factor') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "parserPopUp.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -50,22 +50,22 @@ Context()->texStrings; BEGIN_TEXT Suppose \( Q = $a($b)^t \). Give the starting value \( a \), the growth -${BITALIC}factor${EITALIC} \( b \), and the percent +${BITALIC}factor${EITALIC} \( b \), and the percent growth or decay ${BITALIC}rate${EITALIC} \( r \). $BR $BR \( a = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} $BR \( b = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} $BR \( r = \) \{ ans_rule(10) \} ${PERCENT} \{ $popup->menu() \} $SPACE$SPACE$SPACE -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/10-2-Working-with-the-Base/MCH-10-2-18.pg b/OpenProblemLibrary/FortLewis/Algebra/10-2-Working-with-the-Base/MCH-10-2-18.pg index 7e0c6dfe7d..fbbddaee52 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/10-2-Working-with-the-Base/MCH-10-2-18.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/10-2-Working-with-the-Base/MCH-10-2-18.pg @@ -19,13 +19,13 @@ ## Problem1('18') ## KEYWORDS('exponential functions','growth rate','growth factor') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "parserPopUp.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -52,22 +52,22 @@ Context()->texStrings; BEGIN_TEXT Suppose \( Q = $a(\frac{$p}{$q})^t \). Give the starting value \( a \), the growth -${BITALIC}factor${EITALIC} \( b \), and the percent +${BITALIC}factor${EITALIC} \( b \), and the percent growth or decay ${BITALIC}rate${EITALIC} \( r \). $BR $BR \( a = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} $BR \( b = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} $BR \( r = \) \{ ans_rule(10) \} ${PERCENT} \{ $popup->menu() \} $SPACE$SPACE$SPACE -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/10-2-Working-with-the-Base/MCH-10-2-20_22.pg b/OpenProblemLibrary/FortLewis/Algebra/10-2-Working-with-the-Base/MCH-10-2-20_22.pg index 8740331948..add2ca595f 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/10-2-Working-with-the-Base/MCH-10-2-20_22.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/10-2-Working-with-the-Base/MCH-10-2-20_22.pg @@ -19,12 +19,12 @@ ## KEYWORDS('exponential functions','annual growth rate','linear growth') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -50,17 +50,17 @@ $Q = Formula("$a * ($b)**t"); Context()->texStrings; BEGIN_TEXT -An investment is worth $a dollars at time \( t = 0 \), +An investment is worth $a dollars at time \( t = 0 \), with \( t \) measured in years. $BR $BR -(a) If the investment's value grows by $n dollars -per year, find a formula for the value, -\( V \), at time \( t \). +(a) If the investment's value grows by $n dollars +per year, find a formula for the value, +\( V \), at time \( t \). $BR \( V = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $BR $BR (b) If the investment's value grows by $rpercent${PERCENT} @@ -69,7 +69,7 @@ at time \( t \). $BR \( V = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/10-2-Working-with-the-Base/MCH-10-2-36.pg b/OpenProblemLibrary/FortLewis/Algebra/10-2-Working-with-the-Base/MCH-10-2-36.pg index 4cc91c020d..3a375f2761 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/10-2-Working-with-the-Base/MCH-10-2-36.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/10-2-Working-with-the-Base/MCH-10-2-36.pg @@ -19,13 +19,13 @@ ## Problem1('36') ## KEYWORDS('exponential functions','growth rate','growth factor') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "parserPopUp.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -51,22 +51,22 @@ BEGIN_TEXT Suppose \( Q = $a\cdot $b^{-t} \). Give the starting value \( a \), the growth -${BITALIC}factor${EITALIC} \( b \), and the percent +${BITALIC}factor${EITALIC} \( b \), and the percent growth or decay ${BITALIC}rate${EITALIC} \( r \). $BR $BR \( a = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} $BR \( b = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} $BR \( r = \) \{ ans_rule(10) \} ${PERCENT} \{ $popup->menu() \} $SPACE$SPACE$SPACE -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/10-2-Working-with-the-Base/MCH-10-2-38.pg b/OpenProblemLibrary/FortLewis/Algebra/10-2-Working-with-the-Base/MCH-10-2-38.pg index 4a7c095e80..68247b6659 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/10-2-Working-with-the-Base/MCH-10-2-38.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/10-2-Working-with-the-Base/MCH-10-2-38.pg @@ -19,13 +19,13 @@ ## Problem1('38') ## KEYWORDS('exponential functions','growth rate','growth factor') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "parserPopUp.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -51,22 +51,22 @@ Context()->texStrings; BEGIN_TEXT Suppose \( Q = \frac{$a}{$p \cdot $q^t} \). Give the starting value \( a \), the growth -${BITALIC}factor${EITALIC} \( b \), and the percent +${BITALIC}factor${EITALIC} \( b \), and the percent growth or decay ${BITALIC}rate${EITALIC} \( r \). $BR $BR \( a = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} $BR \( b = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} $BR \( r = \) \{ ans_rule(10) \} ${PERCENT} \{ $popup->menu() \} $SPACE$SPACE$SPACE -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/10-2-Working-with-the-Base/MCH-10-2-49_50.pg b/OpenProblemLibrary/FortLewis/Algebra/10-2-Working-with-the-Base/MCH-10-2-49_50.pg index dd0f5f2840..c4200f2c39 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/10-2-Working-with-the-Base/MCH-10-2-49_50.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/10-2-Working-with-the-Base/MCH-10-2-49_50.pg @@ -21,12 +21,12 @@ ## KEYWORDS('exponential functions','annual growth rate','linear growth') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "weightedGrader.pl", "PGcourse.pl" ); @@ -68,7 +68,7 @@ if ($select == 0) { $string2 = "linear"; $answer2 = $i; @array2 = @ivals; - + } else { $string2 = "exponential"; @@ -86,8 +86,8 @@ if ($select == 0) { Context()->texStrings; BEGIN_TEXT -(a) Determine whether function whose values -are given in the table below could be +(a) Determine whether function whose values +are given in the table below could be linear or exponential. $BR \{ pop_up_list(["?","linear","exponential"]) \} @@ -103,11 +103,11 @@ Find a possible formula for this function. $BR \( y = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $BR $BR -(b) Determine whether function whose values -are given in the table below could be +(b) Determine whether function whose values +are given in the table below could be linear or exponential. $BR \{ pop_up_list(["?","linear","exponential"]) \} @@ -123,7 +123,7 @@ Find a possible formula for this function. $BR \( y = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/10-3-TheExponent/MCH-10-3-10.pg b/OpenProblemLibrary/FortLewis/Algebra/10-3-TheExponent/MCH-10-3-10.pg index 1ad21bc4a3..253e224d2f 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/10-3-TheExponent/MCH-10-3-10.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/10-3-TheExponent/MCH-10-3-10.pg @@ -22,16 +22,16 @@ ############################ # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); - -TEXT(beginproblem()); + +TEXT(beginproblem()); $showPartialCorrectAnswers = 1; @@ -51,14 +51,14 @@ $b = 1-$r/100; Context()->texStrings; BEGIN_TEXT -The size \(P\) of a population of animals -in year \(t\) is given by the formula -\( P = $a \cdot ($b)^{12t}\). Find the +The size \(P\) of a population of animals +in year \(t\) is given by the formula +\( P = $a \cdot ($b)^{12t}\). Find the monthly percent decay rate in \(P\). $BR $BR Monthly percent decay rate = \{ ans_rule(5) \} ${PERCENT} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/10-3-TheExponent/MCH-10-3-11.pg b/OpenProblemLibrary/FortLewis/Algebra/10-3-TheExponent/MCH-10-3-11.pg index 162885d5ea..2afc3589d7 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/10-3-TheExponent/MCH-10-3-11.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/10-3-TheExponent/MCH-10-3-11.pg @@ -21,16 +21,16 @@ ##################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); - -TEXT(beginproblem()); + +TEXT(beginproblem()); $showPartialCorrectAnswers = 1; @@ -49,14 +49,14 @@ $T = random(6,12,1); Context()->texStrings; BEGIN_TEXT -The value \(V\) of an investment in year -\(t\) is given by \( V = $a \cdot 3^{t/$T} \). -How many years does it take for the value to +The value \(V\) of an investment in year +\(t\) is given by \( V = $a \cdot 3^{t/$T} \). +How many years does it take for the value to triple? $BR $BR Tripling time \(= \)\{ ans_rule(5) \} years. -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/10-3-TheExponent/MCH-10-3-12.pg b/OpenProblemLibrary/FortLewis/Algebra/10-3-TheExponent/MCH-10-3-12.pg index b3168471da..356d9d9761 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/10-3-TheExponent/MCH-10-3-12.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/10-3-TheExponent/MCH-10-3-12.pg @@ -19,12 +19,12 @@ ## Problem1('12') ## KEYWORDS('exponential functions','growth rate','growth factor') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -51,16 +51,16 @@ $BR $BR \( a = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} $BR \( b = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} $BR \( T = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("number") \} - +\{ helpLink("number") \} + END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/10-3-TheExponent/MCH-10-3-14.pg b/OpenProblemLibrary/FortLewis/Algebra/10-3-TheExponent/MCH-10-3-14.pg index 69322a770f..30b13c1a70 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/10-3-TheExponent/MCH-10-3-14.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/10-3-TheExponent/MCH-10-3-14.pg @@ -20,12 +20,12 @@ ## Problem1('14') ## KEYWORDS('exponential functions','growth rate','growth factor') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -52,15 +52,15 @@ $BR $BR \( a = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} $BR \( b = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} $BR \( T = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/10-3-TheExponent/MCH-10-3-16.pg b/OpenProblemLibrary/FortLewis/Algebra/10-3-TheExponent/MCH-10-3-16.pg index 0098d2bf93..442fcdd741 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/10-3-TheExponent/MCH-10-3-16.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/10-3-TheExponent/MCH-10-3-16.pg @@ -19,12 +19,12 @@ ## Problem1('16') ## KEYWORDS('exponential functions','growth rate','growth factor') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -51,16 +51,16 @@ $BR $BR \( a = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} $BR \( b = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} $BR \( T = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("number") \} - +\{ helpLink("number") \} + END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/10-3-TheExponent/MCH-10-3-18.pg b/OpenProblemLibrary/FortLewis/Algebra/10-3-TheExponent/MCH-10-3-18.pg index 83e9ba6c15..44edaada18 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/10-3-TheExponent/MCH-10-3-18.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/10-3-TheExponent/MCH-10-3-18.pg @@ -19,12 +19,12 @@ ## Problem1('18') ## KEYWORDS('exponential functions','growth rate','growth factor') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -46,24 +46,24 @@ $b = 5; Context()->texStrings; BEGIN_TEXT -The quantity, \(Q\), of a drug in the blood stream begins with \($a\) mg -and decays to one-fifth its value over every \($T\) minute period. -Give the constants \( a \), \( b \), and \( T \) so that \(Q\) is +The quantity, \(Q\), of a drug in the blood stream begins with \($a\) mg +and decays to one-fifth its value over every \($T\) minute period. +Give the constants \( a \), \( b \), and \( T \) so that \(Q\) is represented by a function of the form \(Q = ab^{-t/T}\), where \(t\) is the time in minutes after the drug is injected. $BR $BR \( a = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} $BR \( b = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} $BR \( T = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("number") \} - +\{ helpLink("number") \} + END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/10-3-TheExponent/MCH-10-3-2.pg b/OpenProblemLibrary/FortLewis/Algebra/10-3-TheExponent/MCH-10-3-2.pg index ae24be9ebc..15707f7e65 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/10-3-TheExponent/MCH-10-3-2.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/10-3-TheExponent/MCH-10-3-2.pg @@ -18,12 +18,12 @@ ## Problem1('2') ## KEYWORDS('exponential functions','growth rate','growth factor') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -47,14 +47,14 @@ $f = Formula("$a * ($b)**(t/$T)"); Context()->texStrings; BEGIN_TEXT -Find a formula for the value, \( V \), of an -investment, in dollars, initially worth ${DOLLAR}\( $a \) -that grows by \( $r \) ${PERCENT} every \( $T \) +Find a formula for the value, \( V \), of an +investment, in dollars, initially worth ${DOLLAR}\( $a \) +that grows by \( $r \) ${PERCENT} every \( $T \) years. $BR $BR \( V = f(t)= \)\{ ans_rule(20) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/10-3-TheExponent/MCH-10-3-30.pg b/OpenProblemLibrary/FortLewis/Algebra/10-3-TheExponent/MCH-10-3-30.pg index bfdc237965..64e5fd1ecc 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/10-3-TheExponent/MCH-10-3-30.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/10-3-TheExponent/MCH-10-3-30.pg @@ -20,12 +20,12 @@ ## Problem1('30') ## KEYWORDS('exponential functions','growth rate','growth factor') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGchoicemacros.pl", "PGcourse.pl" ); @@ -47,7 +47,7 @@ $f2 = Formula("100 * $B**t"); if(($A<$B)){ $mc = new_multiple_choice(); $mc->qa( -"Of which substance is there less in the long term?", +"Of which substance is there less in the long term?", "There is less of substance A in the long term." ); $mc->extra( @@ -57,7 +57,7 @@ $mc->makeLast("There is no way to tell."); else{ $mc = new_multiple_choice(); $mc->qa( -"Of which substance is there less in the long term?", +"Of which substance is there less in the long term?", "There is less of substance B in the long term." ); $mc->extra( @@ -73,19 +73,19 @@ BEGIN_TEXT The half life of substance A is \($T\) years, and substance B decays at a rate of \(30\) % each decade. $BR $BR -(a) Find a formula for a function \(f(t)\) that gives the amount of substance A, in milligrams, left after \(t\) years, given that the initial quantity was \(100\) milligrams. +(a) Find a formula for a function \(f(t)\) that gives the amount of substance A, in milligrams, left after \(t\) years, given that the initial quantity was \(100\) milligrams. $BR \( f(t)=\)\{ ans_rule(20) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $BR $BR -(a) Find a formula for a function \(g(t)\) that gives the amount of substance B, in milligrams, left after \(t\) years, given that the initial quantity was \(100\) milligrams. +(a) Find a formula for a function \(g(t)\) that gives the amount of substance B, in milligrams, left after \(t\) years, given that the initial quantity was \(100\) milligrams. $BR \( g(t)=\)\{ ans_rule(20) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $BR $BR -(c) +(c) \{ $mc->print_q() \} $BR diff --git a/OpenProblemLibrary/FortLewis/Algebra/10-3-TheExponent/MCH-10-3-4.pg b/OpenProblemLibrary/FortLewis/Algebra/10-3-TheExponent/MCH-10-3-4.pg index bf043e15a3..68dde0fb68 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/10-3-TheExponent/MCH-10-3-4.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/10-3-TheExponent/MCH-10-3-4.pg @@ -18,12 +18,12 @@ ## Problem1('4') ## KEYWORDS('exponential functions','growth rate','growth factor') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGchoicemacros.pl", "PGcourse.pl" ); @@ -47,7 +47,7 @@ $f2 = Formula("$a * ($b2)**(t)"); $mc = new_multiple_choice(); $mc->qa( -"Which scenario has the largest monthly percent growth rate?", +"Which scenario has the largest monthly percent growth rate?", "Earning \($r1\) ${PERCENT} every month." ); $mc->extra( @@ -62,23 +62,23 @@ $mc->makeLast("They have the same monthly percent growth rate."); Context()->texStrings; BEGIN_TEXT -Let \(A = f(t)\) be the amount of money in an account, -in dollars, \(t\) months after an initial investment of -${DOLLAR}\($a\). +Let \(A = f(t)\) be the amount of money in an account, +in dollars, \(t\) months after an initial investment of +${DOLLAR}\($a\). $BR $BR -(a) Find a formula for \(A\) given that it grows by -\($r1\) ${PERCENT} each month. +(a) Find a formula for \(A\) given that it grows by +\($r1\) ${PERCENT} each month. $BR \( A = f(t)=\)\{ ans_rule(20) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $BR $BR -(b) Find a formula for \(A\) given that it grows by -\($r2\) ${PERCENT} every \($T\) months. +(b) Find a formula for \(A\) given that it grows by +\($r2\) ${PERCENT} every \($T\) months. $BR \( A = f(t)=\)\{ ans_rule(20) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $BR $BR (c) \{ $mc->print_q() \} diff --git a/OpenProblemLibrary/FortLewis/Algebra/10-3-TheExponent/MCH-10-3-42.pg b/OpenProblemLibrary/FortLewis/Algebra/10-3-TheExponent/MCH-10-3-42.pg index 7c968046f3..154bd937e7 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/10-3-TheExponent/MCH-10-3-42.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/10-3-TheExponent/MCH-10-3-42.pg @@ -17,15 +17,15 @@ ## Problem1('42') ## KEYWORDS('exponents') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); - + TEXT(beginproblem()); # standard preamble to each problem. Context("Numeric"); @@ -40,7 +40,7 @@ The value of an investment increases by \($rdaily\) % each day. By what percent $BR $BR Annual growth rate \(= \)\{ ans_rule(10) \}% -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/10-3-TheExponent/MCH-10-3-44.pg b/OpenProblemLibrary/FortLewis/Algebra/10-3-TheExponent/MCH-10-3-44.pg index 453abc004f..3dee4c0bfd 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/10-3-TheExponent/MCH-10-3-44.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/10-3-TheExponent/MCH-10-3-44.pg @@ -18,15 +18,15 @@ ## Problem1('44') ## KEYWORDS('exponents') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); - + TEXT(beginproblem()); # standard preamble to each problem. Context("Numeric"); @@ -43,7 +43,7 @@ The area of a wetland drops by \(\frac{1}{$b}\) every \($n\) years. What percent $BR $BR Percent lost \(= \)\{ ans_rule(10) \}% -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/10-3-TheExponent/MCH-10-3-6.pg b/OpenProblemLibrary/FortLewis/Algebra/10-3-TheExponent/MCH-10-3-6.pg index 93d3d6cc49..b2ad1211dc 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/10-3-TheExponent/MCH-10-3-6.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/10-3-TheExponent/MCH-10-3-6.pg @@ -21,15 +21,15 @@ ############################ # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); - + TEXT(beginproblem()); @@ -50,8 +50,8 @@ $d1 = random(3,5,2); Context()->texStrings; BEGIN_TEXT -Write the given exponential function in the -form \(ab^t\) and identify the initial value +Write the given exponential function in the +form \(ab^t\) and identify the initial value and the growth factor. $BR $BR @@ -59,10 +59,10 @@ $BR $BR $BR \( a = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR \( b = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/10-3-TheExponent/MCH-10-3-8.pg b/OpenProblemLibrary/FortLewis/Algebra/10-3-TheExponent/MCH-10-3-8.pg index 80dc559272..106343d37c 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/10-3-TheExponent/MCH-10-3-8.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/10-3-TheExponent/MCH-10-3-8.pg @@ -21,15 +21,15 @@ ########################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); - + TEXT(beginproblem()); $showPartialCorrectAnswers = 1; @@ -50,8 +50,8 @@ $b = $b1*$d1; Context()->texStrings; BEGIN_TEXT -Write the given exponential function in -the form \(ab^t\) and identify the +Write the given exponential function in +the form \(ab^t\) and identify the initial value and the growth factor. $BR $BR @@ -59,10 +59,10 @@ $BR $BR $BR \( a = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR \( b = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/10-5-Modeling-with-Exponentials/MCH-10-5-14.pg b/OpenProblemLibrary/FortLewis/Algebra/10-5-Modeling-with-Exponentials/MCH-10-5-14.pg index cefe618fa0..cb28ea9a08 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/10-5-Modeling-with-Exponentials/MCH-10-5-14.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/10-5-Modeling-with-Exponentials/MCH-10-5-14.pg @@ -20,12 +20,12 @@ ## Problem1('14') ## KEYWORDS('exponential functions','growth rate','growth factor') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -51,11 +51,11 @@ The amount of water used in a community increases by \($rT\) % over a \($T\) yea $BR $BR \( b=\)\{ ans_rule(20) \} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} $BR $BR \( r=\)\{ ans_rule(20)\} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} END_TEXT @@ -71,4 +71,4 @@ ANS(Real("$b")->cmp() ); ANS(Real("$r")->cmp() ); ; -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/FortLewis/Algebra/10-5-Modeling-with-Exponentials/MCH-10-5-18.pg b/OpenProblemLibrary/FortLewis/Algebra/10-5-Modeling-with-Exponentials/MCH-10-5-18.pg index ee2f556c96..eb642aaac2 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/10-5-Modeling-with-Exponentials/MCH-10-5-18.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/10-5-Modeling-with-Exponentials/MCH-10-5-18.pg @@ -20,12 +20,12 @@ ## KEYWORDS('exponential functions','annual growth rate','linear growth') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -53,7 +53,7 @@ Find a formula for an exponential function \( y = f(x)\) whose graph contains th $BR $BR \( y = f(x) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $BR $BR diff --git a/OpenProblemLibrary/FortLewis/Algebra/10-5-Modeling-with-Exponentials/MCH-10-5-19.pg b/OpenProblemLibrary/FortLewis/Algebra/10-5-Modeling-with-Exponentials/MCH-10-5-19.pg index 0a148bb9f1..a89eed6f1f 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/10-5-Modeling-with-Exponentials/MCH-10-5-19.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/10-5-Modeling-with-Exponentials/MCH-10-5-19.pg @@ -20,12 +20,12 @@ ## KEYWORDS('exponential functions','annual growth rate','linear growth') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -53,7 +53,7 @@ Find a formula for an exponential function \( y = f(x)\) whose graph contains th $BR $BR \( y = f(x) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $BR $BR diff --git a/OpenProblemLibrary/FortLewis/Algebra/10-5-Modeling-with-Exponentials/MCH-10-5-26.pg b/OpenProblemLibrary/FortLewis/Algebra/10-5-Modeling-with-Exponentials/MCH-10-5-26.pg index 240c1afaea..a512e4a746 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/10-5-Modeling-with-Exponentials/MCH-10-5-26.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/10-5-Modeling-with-Exponentials/MCH-10-5-26.pg @@ -19,12 +19,12 @@ ## KEYWORDS('exponential functions','annual growth rate','linear growth') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -53,7 +53,7 @@ An investment is worth \( V =\) $\($y1\) in year \(t = $x1\) and \(V =\) $\($y2\ $BR $BR \( V = f(t) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $BR $BR diff --git a/OpenProblemLibrary/FortLewis/Algebra/10-5-Modeling-with-Exponentials/MCH-10-5-39.pg b/OpenProblemLibrary/FortLewis/Algebra/10-5-Modeling-with-Exponentials/MCH-10-5-39.pg index 89646cab88..b84ed36288 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/10-5-Modeling-with-Exponentials/MCH-10-5-39.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/10-5-Modeling-with-Exponentials/MCH-10-5-39.pg @@ -20,12 +20,12 @@ ## KEYWORDS('exponential functions','annual growth rate','linear growth') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -52,28 +52,28 @@ $f2 = $y1/(($y2/$y1)**($x1/$r1))*($y2/$y1)**(6/$r1); Context()->texStrings; BEGIN_TEXT -Nicotine leaves the body at a constant rate. At a time of \($x1\) hours after smoking a cigarette, \($y1\) mg of nicotine remain in a person's body; \($r1\) hours later (\($x2\) hours after smoking the cigarette), there are \($y2\) mg of nicotine in the body. +Nicotine leaves the body at a constant rate. At a time of \($x1\) hours after smoking a cigarette, \($y1\) mg of nicotine remain in a person's body; \($r1\) hours later (\($x2\) hours after smoking the cigarette), there are \($y2\) mg of nicotine in the body. $BR $BR (a) Find a formula for the amount of nicotine \(A\) left in the body \(t\) hours after smoking a cigarette. $BR $BR \( A = f(t) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $BR $BR (b) How much nicotine is in the body immediately after smoking. $BR $BR \{ ans_rule(20) \} -\{AnswerFormatHelp("number") \} +\{helpLink("number") \} $BR $BR (c) How much nicotine is in the body \(6\) hours after smoking. $BR $BR \{ ans_rule(20) \} -\{AnswerFormatHelp("number") \} +\{helpLink("number") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/10-5-Modeling-with-Exponentials/MCH-10-5-6.pg b/OpenProblemLibrary/FortLewis/Algebra/10-5-Modeling-with-Exponentials/MCH-10-5-6.pg index c57992c2c1..409cc9bf9c 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/10-5-Modeling-with-Exponentials/MCH-10-5-6.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/10-5-Modeling-with-Exponentials/MCH-10-5-6.pg @@ -20,12 +20,12 @@ ## Problem1('6') ## KEYWORDS('exponential functions','growth rate','growth factor') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -50,11 +50,11 @@ Suppose a population's doubling time is \($T\) years. Find its annual growth fac $BR $BR \( b=\)\{ ans_rule(20) \} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} $BR $BR \( r=\)\{ ans_rule(20)\} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/10-5-Modeling-with-Exponentials/MCH-10-5-8.pg b/OpenProblemLibrary/FortLewis/Algebra/10-5-Modeling-with-Exponentials/MCH-10-5-8.pg index cb66bcbc10..edd62e69ba 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/10-5-Modeling-with-Exponentials/MCH-10-5-8.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/10-5-Modeling-with-Exponentials/MCH-10-5-8.pg @@ -19,12 +19,12 @@ ## Problem1('8') ## KEYWORDS('exponential functions','growth rate','growth factor') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -45,20 +45,20 @@ $r = (1-$b)*100; Context()->texStrings; BEGIN_TEXT -The half life of a drug in the body is \($T\) hours. +The half life of a drug in the body is \($T\) hours. $BR $BR (a) By what factor, \(b\), is the amount of drug in the body multiplied by for each passing hour? $BR \( b=\)\{ ans_rule(20) \} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} $BR $BR -(b) What is the hourly percent decay rate, \(r\), of drug in the body? +(b) What is the hourly percent decay rate, \(r\), of drug in the body? $BR \( r=\)\{ ans_rule(20)\} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/11-2-Solving-with-Logs/MCH-11-2-10.pg b/OpenProblemLibrary/FortLewis/Algebra/11-2-Solving-with-Logs/MCH-11-2-10.pg index 1f896ee45c..fafffb2a04 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/11-2-Solving-with-Logs/MCH-11-2-10.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/11-2-Solving-with-Logs/MCH-11-2-10.pg @@ -20,12 +20,12 @@ ## Problem1('10') ## KEYWORDS('exponential functions','growth rate','growth factor') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -36,7 +36,7 @@ TEXT(beginproblem()); Context("Numeric"); Context()->variables->are(t=>"Real"); -Context()->flags->set(useBaseTenLog=>1); +Context()->flags->set(useBaseTenLog=>1); Context()->flags->set( tolerance => 0.01, tolType => "absolute"); $b = random(78,85,1); @@ -57,7 +57,7 @@ $BR $BR $BR \(w = \) \{ ans_rule(20)\} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/11-2-Solving-with-Logs/MCH-11-2-16.pg b/OpenProblemLibrary/FortLewis/Algebra/11-2-Solving-with-Logs/MCH-11-2-16.pg index ee6b34fb0d..c30fbafa28 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/11-2-Solving-with-Logs/MCH-11-2-16.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/11-2-Solving-with-Logs/MCH-11-2-16.pg @@ -19,12 +19,12 @@ ## Problem1('16') ## KEYWORDS('exponential functions','growth rate','growth factor') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -35,7 +35,7 @@ TEXT(beginproblem()); Context("Numeric"); Context()->variables->are(t=>"Real"); -Context()->flags->set(useBaseTenLog=>1); +Context()->flags->set(useBaseTenLog=>1); Context()->flags->set( tolerance => 0.01, tolType => "absolute"); $a = random(3,7,1); @@ -57,7 +57,7 @@ $BR $BR $BR \(t = \) \{ ans_rule(20)\} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/11-2-Solving-with-Logs/MCH-11-2-18.pg b/OpenProblemLibrary/FortLewis/Algebra/11-2-Solving-with-Logs/MCH-11-2-18.pg index a0f705c63a..b0d15cb340 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/11-2-Solving-with-Logs/MCH-11-2-18.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/11-2-Solving-with-Logs/MCH-11-2-18.pg @@ -19,12 +19,12 @@ ## Problem1('18') ## KEYWORDS('exponential functions','growth rate','growth factor') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -35,7 +35,7 @@ TEXT(beginproblem()); Context("Numeric"); Context()->variables->are(t=>"Real"); -Context()->flags->set(useBaseTenLog=>1); +Context()->flags->set(useBaseTenLog=>1); Context()->flags->set( tolerance => 0.01, tolType => "absolute"); $b = 10; @@ -57,7 +57,7 @@ $BR $BR $BR \(t = \) \{ ans_rule(20)\} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/11-2-Solving-with-Logs/MCH-11-2-20.pg b/OpenProblemLibrary/FortLewis/Algebra/11-2-Solving-with-Logs/MCH-11-2-20.pg index 1cf1fc33bd..7d9e0232bc 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/11-2-Solving-with-Logs/MCH-11-2-20.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/11-2-Solving-with-Logs/MCH-11-2-20.pg @@ -19,12 +19,12 @@ ## Problem1('20') ## KEYWORDS('exponential functions','growth rate','growth factor') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -35,7 +35,7 @@ TEXT(beginproblem()); Context("Numeric"); Context()->variables->are(t=>"Real"); -Context()->flags->set(useBaseTenLog=>1); +Context()->flags->set(useBaseTenLog=>1); Context()->flags->set( tolerance => 0.01, tolType => "absolute"); $b = 10; @@ -57,7 +57,7 @@ $BR $BR $BR \(t = \) \{ ans_rule(20)\} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/11-2-Solving-with-Logs/MCH-11-2-22.pg b/OpenProblemLibrary/FortLewis/Algebra/11-2-Solving-with-Logs/MCH-11-2-22.pg index da98b635ad..0fff27e278 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/11-2-Solving-with-Logs/MCH-11-2-22.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/11-2-Solving-with-Logs/MCH-11-2-22.pg @@ -19,12 +19,12 @@ ## Problem1('22') ## KEYWORDS('exponential functions','growth rate','growth factor') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -35,7 +35,7 @@ TEXT(beginproblem()); Context("Numeric"); Context()->variables->are(t=>"Real"); -Context()->flags->set(useBaseTenLog=>1); +Context()->flags->set(useBaseTenLog=>1); Context()->flags->set( tolerance => 0.01, tolType => "absolute"); $b = 2; @@ -57,7 +57,7 @@ $BR $BR $BR \(p = \) \{ ans_rule(20)\} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/11-2-Solving-with-Logs/MCH-11-2-24.pg b/OpenProblemLibrary/FortLewis/Algebra/11-2-Solving-with-Logs/MCH-11-2-24.pg index 1fcee769f0..f53940358e 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/11-2-Solving-with-Logs/MCH-11-2-24.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/11-2-Solving-with-Logs/MCH-11-2-24.pg @@ -19,12 +19,12 @@ ## Problem1('24') ## KEYWORDS('exponential functions','growth rate','growth factor') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -35,7 +35,7 @@ TEXT(beginproblem()); Context("Numeric"); Context()->variables->are(t=>"Real"); -Context()->flags->set(useBaseTenLog=>1); +Context()->flags->set(useBaseTenLog=>1); Context()->flags->set( tolerance => 0.01, tolType => "absolute"); $b = random(.98,.99,.001); @@ -57,7 +57,7 @@ $BR $BR $BR \(r = \) \{ ans_rule(20)\} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/11-2-Solving-with-Logs/MCH-11-2-28.pg b/OpenProblemLibrary/FortLewis/Algebra/11-2-Solving-with-Logs/MCH-11-2-28.pg index 07fac384d0..979c58ad28 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/11-2-Solving-with-Logs/MCH-11-2-28.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/11-2-Solving-with-Logs/MCH-11-2-28.pg @@ -20,12 +20,12 @@ ## Problem1('28') ## KEYWORDS('exponential functions','growth rate','growth factor') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -36,7 +36,7 @@ TEXT(beginproblem()); Context("Numeric"); Context()->variables->are(t=>"Real"); -Context()->flags->set(useBaseTenLog=>1); +Context()->flags->set(useBaseTenLog=>1); Context()->flags->set( tolerance => 0.01, tolType => "absolute"); $Q = random(300,350,10); @@ -59,7 +59,7 @@ $BR $BR $BR \(t = \) \{ ans_rule(20)\} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/11-2-Solving-with-Logs/MCH-11-2-30.pg b/OpenProblemLibrary/FortLewis/Algebra/11-2-Solving-with-Logs/MCH-11-2-30.pg index ddce94304e..a4d6c3c632 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/11-2-Solving-with-Logs/MCH-11-2-30.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/11-2-Solving-with-Logs/MCH-11-2-30.pg @@ -20,12 +20,12 @@ ## Problem1('30') ## KEYWORDS('exponential functions','growth rate','growth factor') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -36,7 +36,7 @@ TEXT(beginproblem()); Context("Numeric"); Context()->variables->are(t=>"Real"); -Context()->flags->set(useBaseTenLog=>1); +Context()->flags->set(useBaseTenLog=>1); Context()->flags->set( tolerance => 0.01, tolType => "absolute"); $b = 10; @@ -60,7 +60,7 @@ $BR $BR $BR \(y = \) \{ ans_rule(20)\} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/11-2-Solving-with-Logs/MCH-11-2-32.pg b/OpenProblemLibrary/FortLewis/Algebra/11-2-Solving-with-Logs/MCH-11-2-32.pg index a7d2bfdfaa..e4fa820cd6 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/11-2-Solving-with-Logs/MCH-11-2-32.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/11-2-Solving-with-Logs/MCH-11-2-32.pg @@ -18,12 +18,12 @@ ## Problem1('32') ## KEYWORDS('exponential functions','growth rate','growth factor') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -35,7 +35,7 @@ TEXT(beginproblem()); Context("Numeric"); Context()->variables->are(t=>"Real"); Context()->strings->add(none=>{}); -Context()->flags->set(useBaseTenLog=>1); +Context()->flags->set(useBaseTenLog=>1); Context()->flags->set( tolerance => 0.01, tolType => "absolute"); $b1 = random(.6,.9,.01); @@ -64,7 +64,7 @@ If there are no solutions, enter $BBOLD none $EBOLD. $BR $BR \(t = \) \{ ans_rule(20)\} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/11-2-Solving-with-Logs/MCH-11-2-35.pg b/OpenProblemLibrary/FortLewis/Algebra/11-2-Solving-with-Logs/MCH-11-2-35.pg index 53705857f1..3f4ab2e3d4 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/11-2-Solving-with-Logs/MCH-11-2-35.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/11-2-Solving-with-Logs/MCH-11-2-35.pg @@ -19,12 +19,12 @@ ## Problem1('35') ## KEYWORDS('exponential functions','growth rate','growth factor') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -35,7 +35,7 @@ TEXT(beginproblem()); Context("Numeric"); Context()->variables->are(t=>"Real"); -Context()->flags->set(useBaseTenLog=>1); +Context()->flags->set(useBaseTenLog=>1); Context()->flags->set( tolerance => 0.01, tolType => "absolute"); $b1 = random(1.1,1.9,.01); @@ -58,7 +58,7 @@ $BR $BR $BR \(t = \) \{ ans_rule(20)\} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/11-2-Solving-with-Logs/MCH-11-2-40.pg b/OpenProblemLibrary/FortLewis/Algebra/11-2-Solving-with-Logs/MCH-11-2-40.pg index f025a73908..13d5997f7f 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/11-2-Solving-with-Logs/MCH-11-2-40.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/11-2-Solving-with-Logs/MCH-11-2-40.pg @@ -18,12 +18,12 @@ ## Problem1('40') ## KEYWORDS('exponential functions','growth rate','growth factor') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -34,7 +34,7 @@ TEXT(beginproblem()); Context("Numeric"); Context()->variables->are(t=>"Real"); -Context()->flags->set(useBaseTenLog=>1); +Context()->flags->set(useBaseTenLog=>1); Context()->flags->set( tolerance => 0.01, tolType => "absolute"); $b = random(2,5,1); @@ -54,7 +54,7 @@ $BR $BR $BR \(x = \) \{ ans_rule(20)\} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/11-2-Solving-with-Logs/MCH-11-2-42.pg b/OpenProblemLibrary/FortLewis/Algebra/11-2-Solving-with-Logs/MCH-11-2-42.pg index 2e3446d893..2ebd119c3c 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/11-2-Solving-with-Logs/MCH-11-2-42.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/11-2-Solving-with-Logs/MCH-11-2-42.pg @@ -18,12 +18,12 @@ ## Problem1('42') ## KEYWORDS('exponential functions','growth rate','growth factor') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -34,7 +34,7 @@ TEXT(beginproblem()); Context("Numeric"); Context()->variables->are(t=>"Real"); -Context()->flags->set(useBaseTenLog=>1); +Context()->flags->set(useBaseTenLog=>1); Context()->flags->set( tolerance => 0.01, tolType => "absolute"); $b = random(3,6,1); @@ -54,7 +54,7 @@ $BR $BR $BR \(x = \) \{ ans_rule(20)\} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/11-2-Solving-with-Logs/MCH-11-2-44.pg b/OpenProblemLibrary/FortLewis/Algebra/11-2-Solving-with-Logs/MCH-11-2-44.pg index 44f2092491..b9683b5340 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/11-2-Solving-with-Logs/MCH-11-2-44.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/11-2-Solving-with-Logs/MCH-11-2-44.pg @@ -18,12 +18,12 @@ ## Problem1('44') ## KEYWORDS('exponential functions','growth rate','growth factor') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -34,7 +34,7 @@ TEXT(beginproblem()); Context("Numeric"); Context()->variables->are(t=>"Real"); -Context()->flags->set(useBaseTenLog=>1); +Context()->flags->set(useBaseTenLog=>1); Context()->flags->set( tolerance => 0.01, tolType => "absolute"); $b = random(3,6,1); @@ -56,7 +56,7 @@ $BR $BR $BR \(x = \) \{ ans_rule(20)\} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/11-2-Solving-with-Logs/MCH-11-2-46.pg b/OpenProblemLibrary/FortLewis/Algebra/11-2-Solving-with-Logs/MCH-11-2-46.pg index fc0b93ab82..ad73b72078 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/11-2-Solving-with-Logs/MCH-11-2-46.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/11-2-Solving-with-Logs/MCH-11-2-46.pg @@ -18,12 +18,12 @@ ## Problem1('46') ## KEYWORDS('exponential functions','growth rate','growth factor') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -34,7 +34,7 @@ TEXT(beginproblem()); Context("Numeric"); Context()->variables->are(t=>"Real"); -Context()->flags->set(useBaseTenLog=>1); +Context()->flags->set(useBaseTenLog=>1); Context()->flags->set( tolerance => 0.01, tolType => "absolute"); $b = random(3,6,1); @@ -57,7 +57,7 @@ $BR $BR $BR \(x = \) \{ ans_rule(20)\} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/11-2-Solving-with-Logs/MCH-11-2-56.pg b/OpenProblemLibrary/FortLewis/Algebra/11-2-Solving-with-Logs/MCH-11-2-56.pg index 1a6b1399ed..e7c9e9cb1e 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/11-2-Solving-with-Logs/MCH-11-2-56.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/11-2-Solving-with-Logs/MCH-11-2-56.pg @@ -18,12 +18,12 @@ ## Problem1('56') ## KEYWORDS('exponential functions','growth rate','growth factor') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -34,7 +34,7 @@ TEXT(beginproblem()); Context("Numeric"); Context()->variables->are(t=>"Real"); -Context()->flags->set(useBaseTenLog=>1); +Context()->flags->set(useBaseTenLog=>1); Context()->flags->set( tolerance => 0.01, tolType => "absolute"); $Q = 30; @@ -54,7 +54,7 @@ A travel mug of \($a^{\circ}\)C coffee is left on the roof of a parked car on a $BR $BR \(t = \) \{ ans_rule(20)\} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/11-2-Solving-with-Logs/MCH-11-2-58.pg b/OpenProblemLibrary/FortLewis/Algebra/11-2-Solving-with-Logs/MCH-11-2-58.pg index 7533f0c485..22aaf0bc9d 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/11-2-Solving-with-Logs/MCH-11-2-58.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/11-2-Solving-with-Logs/MCH-11-2-58.pg @@ -18,12 +18,12 @@ ## Problem1('58') ## KEYWORDS('exponential functions','growth rate','growth factor') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -34,7 +34,7 @@ TEXT(beginproblem()); Context("Numeric"); Context()->variables->are(t=>"Real"); -Context()->flags->set(useBaseTenLog=>1); +Context()->flags->set(useBaseTenLog=>1); Context()->flags->set( tolerance => 0.01, tolType => "absolute"); $b1 = random(1.1,1.2,.01); @@ -54,7 +54,7 @@ The dollar value of two investments after \(t\) years is given by \(f(t) = $a1($ $BR $BR \(t = \) \{ ans_rule(20)\} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/11-2-Solving-with-Logs/MCH-11-2-6.pg b/OpenProblemLibrary/FortLewis/Algebra/11-2-Solving-with-Logs/MCH-11-2-6.pg index db80ce3a3b..1b64de26e5 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/11-2-Solving-with-Logs/MCH-11-2-6.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/11-2-Solving-with-Logs/MCH-11-2-6.pg @@ -19,12 +19,12 @@ ## Problem1('6') ## KEYWORDS('exponential functions','growth rate','growth factor') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -57,7 +57,7 @@ $BR $BR $BR \(x = \) \{ ans_rule(20)\} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/11-2-Solving-with-Logs/MCH-11-2-8.pg b/OpenProblemLibrary/FortLewis/Algebra/11-2-Solving-with-Logs/MCH-11-2-8.pg index 2c46774380..a6f0b37748 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/11-2-Solving-with-Logs/MCH-11-2-8.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/11-2-Solving-with-Logs/MCH-11-2-8.pg @@ -19,12 +19,12 @@ ## Problem1('8') ## KEYWORDS('exponential functions','growth rate','growth factor') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -56,7 +56,7 @@ $BR $BR $BR \(x = \) \{ ans_rule(20)\} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/2-1-Reordering-and-regrouping/MCH1-2-1-12-Reordering-and-regrouping.pg b/OpenProblemLibrary/FortLewis/Algebra/2-1-Reordering-and-regrouping/MCH1-2-1-12-Reordering-and-regrouping.pg index 97e256fe80..758a394c63 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/2-1-Reordering-and-regrouping/MCH1-2-1-12-Reordering-and-regrouping.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/2-1-Reordering-and-regrouping/MCH1-2-1-12-Reordering-and-regrouping.pg @@ -31,7 +31,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -66,7 +66,7 @@ simpler form, if possible. If it is not possible to simplify, re-write the given $BR $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/2-1-Reordering-and-regrouping/MCH1-2-1-14-Reordering-and-regrouping.pg b/OpenProblemLibrary/FortLewis/Algebra/2-1-Reordering-and-regrouping/MCH1-2-1-14-Reordering-and-regrouping.pg index 2b9be276e4..825cc38e56 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/2-1-Reordering-and-regrouping/MCH1-2-1-14-Reordering-and-regrouping.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/2-1-Reordering-and-regrouping/MCH1-2-1-14-Reordering-and-regrouping.pg @@ -31,7 +31,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -70,7 +70,7 @@ simpler form, if possible. If it is not possible to simplify, re-write the given $BR $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/2-1-Reordering-and-regrouping/MCH1-2-1-16-Reordering-and-regrouping-new.pg b/OpenProblemLibrary/FortLewis/Algebra/2-1-Reordering-and-regrouping/MCH1-2-1-16-Reordering-and-regrouping-new.pg index 0d6502837a..da5be7a443 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/2-1-Reordering-and-regrouping/MCH1-2-1-16-Reordering-and-regrouping-new.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/2-1-Reordering-and-regrouping/MCH1-2-1-16-Reordering-and-regrouping-new.pg @@ -30,7 +30,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -61,7 +61,7 @@ simpler form, if possible. $BR $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/2-1-Reordering-and-regrouping/MCH1-2-1-16-Reordering-and-regrouping.pg b/OpenProblemLibrary/FortLewis/Algebra/2-1-Reordering-and-regrouping/MCH1-2-1-16-Reordering-and-regrouping.pg index d76f2c3323..615616b726 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/2-1-Reordering-and-regrouping/MCH1-2-1-16-Reordering-and-regrouping.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/2-1-Reordering-and-regrouping/MCH1-2-1-16-Reordering-and-regrouping.pg @@ -30,7 +30,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -61,7 +61,7 @@ simpler form, if possible. If it is not possible to simplify, re-write the given $BR $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/2-1-Reordering-and-regrouping/MCH1-2-1-18-Reordering-and-regrouping.pg b/OpenProblemLibrary/FortLewis/Algebra/2-1-Reordering-and-regrouping/MCH1-2-1-18-Reordering-and-regrouping.pg index de86f20291..1342e531a8 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/2-1-Reordering-and-regrouping/MCH1-2-1-18-Reordering-and-regrouping.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/2-1-Reordering-and-regrouping/MCH1-2-1-18-Reordering-and-regrouping.pg @@ -30,7 +30,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -66,7 +66,7 @@ simpler form, if possible. If it is not possible to simplify, re-write the given $BR $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/2-1-Reordering-and-regrouping/MCH1-2-1-20-Reordering-and-regrouping.pg b/OpenProblemLibrary/FortLewis/Algebra/2-1-Reordering-and-regrouping/MCH1-2-1-20-Reordering-and-regrouping.pg index a3a8fed4ef..5fcd70e95b 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/2-1-Reordering-and-regrouping/MCH1-2-1-20-Reordering-and-regrouping.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/2-1-Reordering-and-regrouping/MCH1-2-1-20-Reordering-and-regrouping.pg @@ -29,7 +29,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -65,7 +65,7 @@ If \( x + y + z = $xyz \), find the value of $BR $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/2-1-Reordering-and-regrouping/MCH1-2-1-22-Reordering-and-regrouping.pg b/OpenProblemLibrary/FortLewis/Algebra/2-1-Reordering-and-regrouping/MCH1-2-1-22-Reordering-and-regrouping.pg index 52664fa5dc..2f16f09196 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/2-1-Reordering-and-regrouping/MCH1-2-1-22-Reordering-and-regrouping.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/2-1-Reordering-and-regrouping/MCH1-2-1-22-Reordering-and-regrouping.pg @@ -29,7 +29,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -69,7 +69,7 @@ If \( xyz = $xyz \), find the value of $BR $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/2-2-Distributive-law/MCH1-2-2-02-Distributive-law.pg b/OpenProblemLibrary/FortLewis/Algebra/2-2-Distributive-law/MCH1-2-2-02-Distributive-law.pg index aa77d5f099..afe2a9901d 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/2-2-Distributive-law/MCH1-2-2-02-Distributive-law.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/2-2-Distributive-law/MCH1-2-2-02-Distributive-law.pg @@ -31,7 +31,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -71,13 +71,13 @@ Context()->{error}{convert} = sub { BEGIN_TEXT -Use the distributive law to rewrite the -expression $expression as an equivalent +Use the distributive law to rewrite the +expression $expression as an equivalent expression with no parentheses. $BR $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/2-2-Distributive-law/MCH1-2-2-04-Distributive-law.pg b/OpenProblemLibrary/FortLewis/Algebra/2-2-Distributive-law/MCH1-2-2-04-Distributive-law.pg index 966b161433..891c527fae 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/2-2-Distributive-law/MCH1-2-2-04-Distributive-law.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/2-2-Distributive-law/MCH1-2-2-04-Distributive-law.pg @@ -31,7 +31,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -75,13 +75,13 @@ Context()->{error}{convert} = sub { BEGIN_TEXT -Use the distributive law to rewrite the -expression $expression as an equivalent +Use the distributive law to rewrite the +expression $expression as an equivalent expression with no parentheses. $BR $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/2-2-Distributive-law/MCH1-2-2-06-Distributive-law.pg b/OpenProblemLibrary/FortLewis/Algebra/2-2-Distributive-law/MCH1-2-2-06-Distributive-law.pg index 0a867be8de..39d2d170b8 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/2-2-Distributive-law/MCH1-2-2-06-Distributive-law.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/2-2-Distributive-law/MCH1-2-2-06-Distributive-law.pg @@ -32,7 +32,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -77,13 +77,13 @@ Context()->{error}{convert} = sub { BEGIN_TEXT -Use the distributive law to rewrite the -expression $expression as an equivalent +Use the distributive law to rewrite the +expression $expression as an equivalent expression with no parentheses. $BR $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/2-2-Distributive-law/MCH1-2-2-08-Distributive-law.pg b/OpenProblemLibrary/FortLewis/Algebra/2-2-Distributive-law/MCH1-2-2-08-Distributive-law.pg index f89b045eca..4a22e049c1 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/2-2-Distributive-law/MCH1-2-2-08-Distributive-law.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/2-2-Distributive-law/MCH1-2-2-08-Distributive-law.pg @@ -31,7 +31,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -70,13 +70,13 @@ Context()->{error}{convert} = sub { BEGIN_TEXT -Use the distributive law to rewrite the -expression $expression as an equivalent +Use the distributive law to rewrite the +expression $expression as an equivalent expression with no parentheses. $BR $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/2-2-Distributive-law/MCH1-2-2-10-Distributive-law.pg b/OpenProblemLibrary/FortLewis/Algebra/2-2-Distributive-law/MCH1-2-2-10-Distributive-law.pg index 3f692e4fc9..13a0e61b8e 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/2-2-Distributive-law/MCH1-2-2-10-Distributive-law.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/2-2-Distributive-law/MCH1-2-2-10-Distributive-law.pg @@ -30,7 +30,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -56,7 +56,7 @@ $expression = "\( $a x + $ab \)"; BEGIN_TEXT -Rewrite the expression $expression by taking +Rewrite the expression $expression by taking out the greatest common factor and putting it in front. $BR @@ -65,7 +65,7 @@ $BR \( \big( \) \{ ans_rule(10) \} \( \big) \) -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/2-2-Distributive-law/MCH1-2-2-12-Distributive-law.pg b/OpenProblemLibrary/FortLewis/Algebra/2-2-Distributive-law/MCH1-2-2-12-Distributive-law.pg index 786b19e970..d7de584be0 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/2-2-Distributive-law/MCH1-2-2-12-Distributive-law.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/2-2-Distributive-law/MCH1-2-2-12-Distributive-law.pg @@ -30,7 +30,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -56,7 +56,7 @@ $expression = "\( $a x^2 - $ab x \)"; BEGIN_TEXT -Rewrite the expression $expression by taking +Rewrite the expression $expression by taking out the greatest common factor and putting it in front. $BR @@ -65,7 +65,7 @@ $BR \( \big( \) \{ ans_rule(10) \} \( \big) \) -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/2-2-Distributive-law/MCH1-2-2-14-Distributive-law.pg b/OpenProblemLibrary/FortLewis/Algebra/2-2-Distributive-law/MCH1-2-2-14-Distributive-law.pg index 3e53610d7d..11a9b8539a 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/2-2-Distributive-law/MCH1-2-2-14-Distributive-law.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/2-2-Distributive-law/MCH1-2-2-14-Distributive-law.pg @@ -30,7 +30,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -59,7 +59,7 @@ $expression = "\( $ac x^2 + $bc x + $c \)"; BEGIN_TEXT -Rewrite the expression $expression by taking +Rewrite the expression $expression by taking out the greatest common factor and putting it in front. $BR @@ -68,7 +68,7 @@ $BR \( \big( \) \{ ans_rule(15) \} \( \big) \) -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/2-2-Distributive-law/MCH1-2-2-16-Distributive-law-old.pg b/OpenProblemLibrary/FortLewis/Algebra/2-2-Distributive-law/MCH1-2-2-16-Distributive-law-old.pg index 1cec39da5c..f8a5ceedef 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/2-2-Distributive-law/MCH1-2-2-16-Distributive-law-old.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/2-2-Distributive-law/MCH1-2-2-16-Distributive-law-old.pg @@ -31,7 +31,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -78,7 +78,7 @@ $multians = MultiAnswer($fac1, $fac2)->with( BEGIN_TEXT -Rewrite the expression $expression by taking +Rewrite the expression $expression by taking out the greatest common factor. $BR $BR @@ -87,7 +87,7 @@ $BR \( \big) \big( \) \{ $multians->ans_rule(10) \} \( \big) \) -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/2-2-Distributive-law/MCH1-2-2-18-Distributive-law-old.pg b/OpenProblemLibrary/FortLewis/Algebra/2-2-Distributive-law/MCH1-2-2-18-Distributive-law-old.pg index c51a43b73c..e7731ac87c 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/2-2-Distributive-law/MCH1-2-2-18-Distributive-law-old.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/2-2-Distributive-law/MCH1-2-2-18-Distributive-law-old.pg @@ -31,7 +31,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -79,7 +79,7 @@ $multians = MultiAnswer($fac1, $fac2)->with( BEGIN_TEXT -Rewrite the expression $expression by taking +Rewrite the expression $expression by taking out the greatest common factor. $BR $BR @@ -88,7 +88,7 @@ $BR \( \big) \big( \) \{ $multians->ans_rule(10) \} \( \big) \) -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-02-Expanding-and-factoring.pg b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-02-Expanding-and-factoring.pg index d8af3a7529..a7ecac4651 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-02-Expanding-and-factoring.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-02-Expanding-and-factoring.pg @@ -31,7 +31,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -72,13 +72,13 @@ Context()->{error}{convert} = sub { BEGIN_TEXT -Expand the expression $expression and combine +Expand the expression $expression and combine like terms. Simplify your answer as much as possible. $BR $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-04-Expanding-and-factoring.pg b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-04-Expanding-and-factoring.pg index 5297254e7d..16e318428a 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-04-Expanding-and-factoring.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-04-Expanding-and-factoring.pg @@ -31,7 +31,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -75,13 +75,13 @@ Context()->{error}{convert} = sub { BEGIN_TEXT -Expand the expression $expression and combine +Expand the expression $expression and combine like terms. Simplify your answer as much as possible. $BR $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-06-Expanding-and-factoring.pg b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-06-Expanding-and-factoring.pg index 27c722407d..11eca1ce3b 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-06-Expanding-and-factoring.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-06-Expanding-and-factoring.pg @@ -31,7 +31,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -50,7 +50,7 @@ if ($s == 1) { $expression = "\( (a+b+c)(a+b-c) \)"; $answer = Formula("a**2 + b**2 - c**2 + 2*a*b")->reduce; } else { - $expression = "\( (a+b+c)(a-b+c) \)"; + $expression = "\( (a+b+c)(a-b+c) \)"; $answer = Formula("a**2 - b**2 + c**2 + 2*a*c")->reduce; } @@ -74,13 +74,13 @@ Context()->{error}{convert} = sub { BEGIN_TEXT -Expand the expression $expression and combine +Expand the expression $expression and combine like terms. Simplify your answer as much as possible. $BR $BR \{ ans_rule(30) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-08-Expanding-and-factoring.pg b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-08-Expanding-and-factoring.pg index 4802868873..bec2ccd386 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-08-Expanding-and-factoring.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-08-Expanding-and-factoring.pg @@ -32,7 +32,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -74,13 +74,13 @@ Context()->{error}{convert} = sub { BEGIN_TEXT -Expand the expression $expression and combine +Expand the expression $expression and combine like terms. Simplify your answer as much as possible. $BR $BR \{ ans_rule(30) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-09-Expanding-and-factoring.pg b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-09-Expanding-and-factoring.pg index 7dc6b515b2..97bc102993 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-09-Expanding-and-factoring.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-09-Expanding-and-factoring.pg @@ -31,7 +31,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -73,13 +73,13 @@ Context()->{error}{convert} = sub { BEGIN_TEXT -Expand the expression $expression and combine +Expand the expression $expression and combine like terms. Simplify your answer as much as possible. $BR $BR \{ ans_rule(30) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-12-Expanding-and-factoring.pg b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-12-Expanding-and-factoring.pg index 2bf37a6b94..8069e5934c 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-12-Expanding-and-factoring.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-12-Expanding-and-factoring.pg @@ -31,7 +31,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -72,13 +72,13 @@ Context()->{error}{convert} = sub { BEGIN_TEXT -Expand the expression $expression and combine +Expand the expression $expression and combine like terms. Simplify your answer as much as possible. $BR $BR \{ ans_rule(30) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-14-Expanding-and-factoring.pg b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-14-Expanding-and-factoring.pg index 627b3cf16d..7bb30ba44a 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-14-Expanding-and-factoring.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-14-Expanding-and-factoring.pg @@ -31,7 +31,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -75,13 +75,13 @@ Context()->{error}{convert} = sub { BEGIN_TEXT -Expand the expression $expression and combine +Expand the expression $expression and combine like terms. Simplify your answer as much as possible. $BR $BR \{ ans_rule(30) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-16-Expanding-and-factoring.pg b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-16-Expanding-and-factoring.pg index 60c9fa884f..1f93c57331 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-16-Expanding-and-factoring.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-16-Expanding-and-factoring.pg @@ -30,7 +30,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -74,13 +74,13 @@ Context()->{error}{convert} = sub { BEGIN_TEXT -Expand the expression $expression and combine +Expand the expression $expression and combine like terms. Simplify your answer as much as possible. $BR $BR \{ ans_rule(30) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-20-Expanding-and-factoring.pg b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-20-Expanding-and-factoring.pg index 4fea97071a..04ca6f3d6f 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-20-Expanding-and-factoring.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-20-Expanding-and-factoring.pg @@ -31,7 +31,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -72,13 +72,13 @@ Context()->{error}{convert} = sub { BEGIN_TEXT -Expand the expression $expression and combine +Expand the expression $expression and combine like terms. Simplify your answer as much as possible. $BR $BR \{ ans_rule(30) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-22-Expanding-and-factoring.pg b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-22-Expanding-and-factoring.pg index 9c0970dcb7..c8f7a5d7a3 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-22-Expanding-and-factoring.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-22-Expanding-and-factoring.pg @@ -32,7 +32,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -78,13 +78,13 @@ Context()->{error}{convert} = sub { BEGIN_TEXT -Expand the expression $expression and combine +Expand the expression $expression and combine like terms. Simplify your answer as much as possible. $BR $BR \{ ans_rule(30) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-24-Expanding-and-factoring.pg b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-24-Expanding-and-factoring.pg index eb1b0e7857..aa5ad0294f 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-24-Expanding-and-factoring.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-24-Expanding-and-factoring.pg @@ -31,7 +31,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -78,13 +78,13 @@ Context()->{error}{convert} = sub { BEGIN_TEXT -Expand the expression $expression and combine +Expand the expression $expression and combine like terms. Simplify your answer as much as possible. $BR $BR \{ ans_rule(30) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-26-Expanding-and-factoring-old.pg b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-26-Expanding-and-factoring-old.pg index 439dff17ce..9a05ba2e9a 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-26-Expanding-and-factoring-old.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-26-Expanding-and-factoring-old.pg @@ -31,7 +31,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -83,7 +83,7 @@ $multians = MultiAnswer($fac1, $fac2)->with( BEGIN_TEXT -Factor the expression $expression. Simplify your +Factor the expression $expression. Simplify your answer as much as possible. $BR $BR @@ -92,7 +92,7 @@ $BR \( \big) \big( \) \{ $multians->ans_rule(10) \} \( \big) \) -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-26-Expanding-and-factoring.pg b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-26-Expanding-and-factoring.pg index a43286b715..13a0be747a 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-26-Expanding-and-factoring.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-26-Expanding-and-factoring.pg @@ -30,7 +30,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextPolynomialFactors.pl", "contextLimitedPowers.pl", "PGcourse.pl" @@ -65,13 +65,13 @@ $answer = Compute("(x + $a) (x + $b)"); # Main text BEGIN_TEXT -Factor the expression $expression. Simplify your +Factor the expression $expression. Simplify your answer as much as possible, but do not combine like factors. $BR $BR \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-28-Expanding-and-factoring.pg b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-28-Expanding-and-factoring.pg index 80306df512..a5c465512b 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-28-Expanding-and-factoring.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-28-Expanding-and-factoring.pg @@ -29,7 +29,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextPolynomialFactors.pl", "contextLimitedPowers.pl", "PGcourse.pl" @@ -63,13 +63,13 @@ $answer = Compute("(n + $a) (n - $b)"); # Main text BEGIN_TEXT -Factor the expression $expression. Simplify your +Factor the expression $expression. Simplify your answer as much as possible, but do not combine like factors. $BR $BR \{ ans_rule(30) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-30-Expanding-and-factoring-old.pg b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-30-Expanding-and-factoring-old.pg index 67d75b9794..67feae8460 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-30-Expanding-and-factoring-old.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-30-Expanding-and-factoring-old.pg @@ -31,7 +31,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -82,7 +82,7 @@ $multians = MultiAnswer($fac1, $fac2)->with( BEGIN_TEXT -Factor the expression $expression. Simplify your +Factor the expression $expression. Simplify your answer as much as possible. $BR $BR @@ -91,7 +91,7 @@ $BR \( \big) \big( \) \{ $multians->ans_rule(10) \} \( \big) \) -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-30-Expanding-and-factoring.pg b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-30-Expanding-and-factoring.pg index dab9026564..4429792971 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-30-Expanding-and-factoring.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-30-Expanding-and-factoring.pg @@ -30,7 +30,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextPolynomialFactors.pl", "contextLimitedPowers.pl", "PGcourse.pl" @@ -66,13 +66,13 @@ $answer = Compute("(t - $aa)(t - $b)"); # Main text BEGIN_TEXT -Factor the expression $expression. Simplify your +Factor the expression $expression. Simplify your answer as much as possible, but do not combine like factors. $BR $BR \{ ans_rule(30) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-32-Expanding-and-factoring-old.pg b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-32-Expanding-and-factoring-old.pg index 164f43bba4..4df6303a80 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-32-Expanding-and-factoring-old.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-32-Expanding-and-factoring-old.pg @@ -30,7 +30,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -80,7 +80,7 @@ $multians = MultiAnswer($fac1, $fac2)->with( BEGIN_TEXT -Factor the expression $expression. Simplify your +Factor the expression $expression. Simplify your answer as much as possible. $BR $BR @@ -89,7 +89,7 @@ $BR \( \big) \big( \) \{ $multians->ans_rule(10) \} \( \big) \) -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-32-Expanding-and-factoring.pg b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-32-Expanding-and-factoring.pg index 4ee79e65c9..a094825e18 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-32-Expanding-and-factoring.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-32-Expanding-and-factoring.pg @@ -29,7 +29,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextPolynomialFactors.pl", "contextLimitedPowers.pl", "PGcourse.pl" @@ -63,13 +63,13 @@ $answer = Compute("(b - $a)(b + $c)"); # Main text BEGIN_TEXT -Factor the expression $expression. Simplify your +Factor the expression $expression. Simplify your answer as much as possible, but do not combine like factors. $BR $BR \{ ans_rule(30) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-34-Expanding-and-factoring-old.pg b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-34-Expanding-and-factoring-old.pg index e29ee755ac..fa658218d6 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-34-Expanding-and-factoring-old.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-34-Expanding-and-factoring-old.pg @@ -30,7 +30,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -93,7 +93,7 @@ $multians = MultiAnswer($fac0, $fac1, $fac2)->with( BEGIN_TEXT -Factor the expression $expression. Simplify your +Factor the expression $expression. Simplify your answer as much as possible, and put the greatest common factor in the first answer box. $BR @@ -104,7 +104,7 @@ $BR \( \big) \big( \) \{ $multians->ans_rule(10) \} \( \big) \) -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-34-Expanding-and-factoring.pg b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-34-Expanding-and-factoring.pg index f220dfe9ac..25a51da6c4 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-34-Expanding-and-factoring.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-34-Expanding-and-factoring.pg @@ -29,7 +29,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextPolynomialFactors.pl", "contextLimitedPowers.pl", "PGcourse.pl" @@ -66,13 +66,13 @@ $answer = Compute("$k (z - 1) (z + $b)"); # Main text BEGIN_TEXT -Factor the expression $expression. Simplify your -answer as much as possible, but do not combine +Factor the expression $expression. Simplify your +answer as much as possible, but do not combine like factors. $BR $BR \{ ans_rule(30) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-38-Expanding-and-factoring-old.pg b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-38-Expanding-and-factoring-old.pg index d678a4ff3c..7b17b09746 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-38-Expanding-and-factoring-old.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-38-Expanding-and-factoring-old.pg @@ -30,7 +30,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -93,7 +93,7 @@ $multians = MultiAnswer($fac0, $fac1, $fac2)->with( BEGIN_TEXT -Factor the expression $expression. Simplify your +Factor the expression $expression. Simplify your answer as much as possible, and put the greatest common factor in the first answer box. $BR @@ -104,7 +104,7 @@ $BR \( \big) \big( \) \{ $multians->ans_rule(10) \} \( \big) \) -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-38-Expanding-and-factoring.pg b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-38-Expanding-and-factoring.pg index 91fd941ce7..fc7de523c6 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-38-Expanding-and-factoring.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-38-Expanding-and-factoring.pg @@ -29,7 +29,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextLimitedFactor.pl", "PGcourse.pl" ); @@ -59,13 +59,13 @@ $answer = Compute("$k (n + $a) (n - $b)"); # Main text BEGIN_TEXT -Factor the expression $expression. Simplify your +Factor the expression $expression. Simplify your answer as much as possible, but do not combine like factors. $BR $BR \{ ans_rule(30) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-40-Expanding-and-factoring-old.pg b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-40-Expanding-and-factoring-old.pg index ed518e0788..a2a373920f 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-40-Expanding-and-factoring-old.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-40-Expanding-and-factoring-old.pg @@ -32,7 +32,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -80,7 +80,7 @@ $multians = MultiAnswer($fac1, $fac2)->with( BEGIN_TEXT -Factor the expression $expression. Simplify your +Factor the expression $expression. Simplify your answer as much as possible. $BR $BR @@ -89,7 +89,7 @@ $BR \( \big) \big( \) \{ $multians->ans_rule(10) \} \( \big) \) -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-40-Expanding-and-factoring.pg b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-40-Expanding-and-factoring.pg index 30149cea84..ba823d6645 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-40-Expanding-and-factoring.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-40-Expanding-and-factoring.pg @@ -29,7 +29,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextPolynomialFactors.pl", "contextLimitedPowers.pl", "PGcourse.pl" @@ -61,13 +61,13 @@ $answer = Compute("(x + $a) (x - $a)"); # Main text BEGIN_TEXT -Factor the expression $expression. Simplify your +Factor the expression $expression. Simplify your answer as much as possible, but do not combine like factors. $BR $BR \{ ans_rule(30) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-44-Expanding-and-factoring-old.pg b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-44-Expanding-and-factoring-old.pg index 3a62533003..53b7f1485c 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-44-Expanding-and-factoring-old.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-44-Expanding-and-factoring-old.pg @@ -30,7 +30,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -77,7 +77,7 @@ $multians = MultiAnswer($fac1, $fac2)->with( BEGIN_TEXT -Factor the expression $expression. Simplify your +Factor the expression $expression. Simplify your answer as much as possible. $BR $BR @@ -86,7 +86,7 @@ $BR \( \big) \big( \) \{ $multians->ans_rule(10) \} \( \big) \) -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-44-Expanding-and-factoring.pg b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-44-Expanding-and-factoring.pg index 9376c81d0f..e87117df58 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-44-Expanding-and-factoring.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-44-Expanding-and-factoring.pg @@ -29,7 +29,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextPolynomialFactors.pl", "contextLimitedPowers.pl", "PGcourse.pl" @@ -59,13 +59,13 @@ $answer = Compute("x (x + $a)"); # Main text BEGIN_TEXT -Factor the expression $expression. Simplify your +Factor the expression $expression. Simplify your answer as much as possible, but do not combine like factors. $BR $BR \{ ans_rule(30) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-46-Expanding-and-factoring-old.pg b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-46-Expanding-and-factoring-old.pg index f4abd31f5b..ace248e05a 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-46-Expanding-and-factoring-old.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-46-Expanding-and-factoring-old.pg @@ -31,7 +31,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -80,7 +80,7 @@ $multians = MultiAnswer($fac1, $fac2)->with( BEGIN_TEXT -Factor the expression $expression. Simplify your +Factor the expression $expression. Simplify your answer as much as possible. $BR $BR @@ -89,7 +89,7 @@ $BR \( \big) \big( \) \{ $multians->ans_rule(10) \} \( \big) \) -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-48-Expanding-and-factoring-old.pg b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-48-Expanding-and-factoring-old.pg index 3c74539bb1..3494e5e9a5 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-48-Expanding-and-factoring-old.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-48-Expanding-and-factoring-old.pg @@ -30,7 +30,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -81,7 +81,7 @@ $multians = MultiAnswer($fac1, $fac2)->with( BEGIN_TEXT -Factor the expression $expression. Simplify your +Factor the expression $expression. Simplify your answer as much as possible. $BR $BR @@ -90,7 +90,7 @@ $BR \( \big) \big( \) \{ $multians->ans_rule(10) \} \( \big) \) -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-48-Expanding-and-factoring.pg b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-48-Expanding-and-factoring.pg index 7813fb0b39..e6aa30fbe8 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-48-Expanding-and-factoring.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-48-Expanding-and-factoring.pg @@ -30,7 +30,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextPolynomialFactors.pl", "contextLimitedPowers.pl", "PGcourse.pl" @@ -64,13 +64,13 @@ $answer = Compute("(x - $a) (x - $b)"); # Main text BEGIN_TEXT -Factor the expression $expression. Simplify your +Factor the expression $expression. Simplify your answer as much as possible, but do not combine like factors. $BR $BR \{ ans_rule(30) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-50-Expanding-and-factoring-old.pg b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-50-Expanding-and-factoring-old.pg index f3ba60f7f5..00626457b4 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-50-Expanding-and-factoring-old.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-50-Expanding-and-factoring-old.pg @@ -31,7 +31,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -78,7 +78,7 @@ $multians = MultiAnswer($fac1, $fac2)->with( BEGIN_TEXT -Factor the expression $expression. Simplify your +Factor the expression $expression. Simplify your answer as much as possible. $BR $BR @@ -87,7 +87,7 @@ $BR \( \big) \big( \) \{ $multians->ans_rule(10) \} \( \big) \) -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-50-Expanding-and-factoring.pg b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-50-Expanding-and-factoring.pg index f234c0a69d..6b419e90d1 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-50-Expanding-and-factoring.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-50-Expanding-and-factoring.pg @@ -31,7 +31,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextPolynomialFactors.pl", "contextLimitedPowers.pl", "PGcourse.pl" @@ -63,13 +63,13 @@ $answer = Compute("(x - $a)(x + d)"); # Main text BEGIN_TEXT -Factor the expression $expression. Simplify your -answer as much as possible, but do not combine +Factor the expression $expression. Simplify your +answer as much as possible, but do not combine like factors. $BR $BR \{ ans_rule(30) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-52-Expanding-and-factoring.pg b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-52-Expanding-and-factoring.pg index d8fbf635ba..490b235405 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-52-Expanding-and-factoring.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-52-Expanding-and-factoring.pg @@ -30,7 +30,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextPolynomialFactors.pl", "contextLimitedPowers.pl", "PGcourse.pl" @@ -64,13 +64,13 @@ $answer = Compute("(q*x - $a) (2*x + p)"); # Main text BEGIN_TEXT -Factor the expression $expression. Simplify your +Factor the expression $expression. Simplify your answer as much as possible, but do not combine like factors. $BR $BR \{ ans_rule(30) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-54-Expanding-and-factoring.pg b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-54-Expanding-and-factoring.pg index 08670e6cf4..7998179384 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-54-Expanding-and-factoring.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-54-Expanding-and-factoring.pg @@ -30,7 +30,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextPolynomialFactors.pl", "contextLimitedPowers.pl", "PGcourse.pl" @@ -62,13 +62,13 @@ $answer = Compute("(x^3 + $a) (x^3 - $b)"); # Main text BEGIN_TEXT -Factor the expression $expression. Simplify your +Factor the expression $expression. Simplify your answer as much as possible, but do not combine like factors. $BR $BR \{ ans_rule(30) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-56-Expanding-and-factoring-old.pg b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-56-Expanding-and-factoring-old.pg index 428ce753f2..9f05a3f162 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-56-Expanding-and-factoring-old.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-56-Expanding-and-factoring-old.pg @@ -30,7 +30,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -82,7 +82,7 @@ $multians = MultiAnswer($fac1, $fac2)->with( BEGIN_TEXT -Factor the expression $expression. Simplify your +Factor the expression $expression. Simplify your answer as much as possible. $BR $BR @@ -91,7 +91,7 @@ $BR \( \big) \big( \) \{ $multians->ans_rule(10) \} \( \big) \) -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-58-Expanding-and-factoring.pg b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-58-Expanding-and-factoring.pg index 070f2aa189..1ee633332f 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-58-Expanding-and-factoring.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-58-Expanding-and-factoring.pg @@ -29,7 +29,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextPolynomialFactors.pl", "contextLimitedPowers.pl", "PGcourse.pl" @@ -62,12 +62,12 @@ $answer = Compute("(a y) (1 - a^$n1 y^$n1)"); # Main text BEGIN_TEXT -Factor out the greatest common factor from the expression $expression. +Factor out the greatest common factor from the expression $expression. $BR $BR \{ ans_rule(30) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-60-Expanding-and-factoring-old.pg b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-60-Expanding-and-factoring-old.pg index adff70a024..346e719b36 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-60-Expanding-and-factoring-old.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-60-Expanding-and-factoring-old.pg @@ -31,7 +31,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -79,7 +79,7 @@ $multians = MultiAnswer($fac1, $fac2)->with( BEGIN_TEXT -Factor the expression $expression. Simplify your +Factor the expression $expression. Simplify your answer as much as possible. $BR $BR @@ -88,7 +88,7 @@ $BR \( \big) \big( \) \{ $multians->ans_rule(10) \} \( \big) \) -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-60-Expanding-and-factoring.pg b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-60-Expanding-and-factoring.pg index cdf3d05fdf..25ecb46cb8 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-60-Expanding-and-factoring.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-60-Expanding-and-factoring.pg @@ -29,7 +29,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextPolynomialFactors.pl", "contextLimitedPowers.pl", "PGcourse.pl" @@ -62,13 +62,13 @@ $answer = Compute("(a + b + $n) (a + b - $n)"); # Main text BEGIN_TEXT -Factor the expression $expression. Simplify your +Factor the expression $expression. Simplify your answer as much as possible, but do not combine like factors. $BR $BR \{ ans_rule(30) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-62-Expanding-and-factoring-old.pg b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-62-Expanding-and-factoring-old.pg index e39a9e7b6a..ef9e27c80a 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-62-Expanding-and-factoring-old.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-62-Expanding-and-factoring-old.pg @@ -30,7 +30,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -79,7 +79,7 @@ $multians = MultiAnswer($fac1, $fac2)->with( BEGIN_TEXT -Factor the expression $expression. Simplify your +Factor the expression $expression. Simplify your answer as much as possible. $BR $BR @@ -88,7 +88,7 @@ $BR \( \big) \big( \) \{ $multians->ans_rule(10) \} \( \big) \) -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-62-Expanding-and-factoring.pg b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-62-Expanding-and-factoring.pg index 1b8ba46d8e..8db789cb29 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-62-Expanding-and-factoring.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-62-Expanding-and-factoring.pg @@ -30,7 +30,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextPolynomialFactors.pl", "contextLimitedPowers.pl", "PGcourse.pl" @@ -63,13 +63,13 @@ $answer = Compute("(x + $a + y) (x + $a - y)"); # Main text BEGIN_TEXT -Factor (by grouping, if possible) the expression $expression. Simplify your +Factor (by grouping, if possible) the expression $expression. Simplify your answer as much as possible, but do not combine like factors. $BR $BR \{ ans_rule(30) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-64-Expanding-and-factoring.pg b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-64-Expanding-and-factoring.pg index a4048704ba..b6191df670 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-64-Expanding-and-factoring.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-64-Expanding-and-factoring.pg @@ -30,7 +30,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextPolynomialFactors.pl", "contextLimitedPowers.pl", "PGcourse.pl" @@ -67,13 +67,13 @@ $answer = Compute("(t + $a) (t + $amb) (t + $apb)")->reduce; # Main text BEGIN_TEXT -Factor the expression $expression. Simplify your +Factor the expression $expression. Simplify your answer as much as possible, but do not combine like factors. $BR $BR \{ ans_rule(30) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-66-Expanding-and-factoring-old.pg b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-66-Expanding-and-factoring-old.pg index d3bad03dd5..08b0dda8b1 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-66-Expanding-and-factoring-old.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-66-Expanding-and-factoring-old.pg @@ -30,7 +30,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -51,7 +51,7 @@ do { $p2 = $k * $a * $a; $p1 = 2 * $k * $a * $b; -$p0 = $k * $b * $b; +$p0 = $k * $b * $b; $expression = "\( $p2 t^2 + $p1 t + $p0 \)"; @@ -86,7 +86,7 @@ $multians = MultiAnswer($fac1, $fac2)->with( BEGIN_TEXT -Factor the expression $expression. Simplify your +Factor the expression $expression. Simplify your answer as much as possible. $BR $BR @@ -95,7 +95,7 @@ $BR \( \big) \big( \) \{ $multians->ans_rule(10) \} \( \big) \) -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-66-Expanding-and-factoring.pg b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-66-Expanding-and-factoring.pg index d895564358..c8324f66d4 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-66-Expanding-and-factoring.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-66-Expanding-and-factoring.pg @@ -30,7 +30,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextPolynomialFactors.pl", "contextLimitedPowers.pl", "PGcourse.pl" @@ -58,7 +58,7 @@ while ($a == $b) { $b = random(2,5,1); } $p2 = $k * $a * $a; $p1 = 2 * $k * $a * $b; -$p0 = $k * $b * $b; +$p0 = $k * $b * $b; $expression = "\( $p2 t^2 + $p1 t + $p0 \)"; @@ -70,13 +70,13 @@ $answer = Compute("$k ($a * t + $b) ($a * t + $b)"); # Main text BEGIN_TEXT -Factor the expression $expression. Simplify your +Factor the expression $expression. Simplify your answer as much as possible, but do not combine like factors. $BR $BR \{ ans_rule(30) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-68-Expanding-and-factoring-old.pg b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-68-Expanding-and-factoring-old.pg index bba4df75b0..87d273aa91 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-68-Expanding-and-factoring-old.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-68-Expanding-and-factoring-old.pg @@ -31,7 +31,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -80,7 +80,7 @@ $multians = MultiAnswer($fac1, $fac2)->with( BEGIN_TEXT -Factor the expression $expression. Simplify your +Factor the expression $expression. Simplify your answer as much as possible. $BR $BR @@ -89,7 +89,7 @@ $BR \( \big) \big( \) \{ $multians->ans_rule(10) \} \( \big) \) -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-68-Expanding-and-factoring.pg b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-68-Expanding-and-factoring.pg index 4cb5254cd2..4b6bcffbb5 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-68-Expanding-and-factoring.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-68-Expanding-and-factoring.pg @@ -30,7 +30,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextPolynomialFactors.pl", "contextLimitedPowers.pl", "PGcourse.pl" @@ -64,13 +64,13 @@ $answer = Compute("(r + 1 + $a t) (r + 1 + $a t)"); # Main text BEGIN_TEXT -Factor the expression $expression. Simplify your +Factor the expression $expression. Simplify your answer as much as possible, but do not combine like factors. $BR $BR \{ ans_rule(30) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-70-Expanding-and-factoring.pg b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-70-Expanding-and-factoring.pg index e84b5be298..0aabaee9f2 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-70-Expanding-and-factoring.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/2-3-Expanding-and-factoring/MCH1-2-3-70-Expanding-and-factoring.pg @@ -32,7 +32,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -78,13 +78,13 @@ Context()->{error}{convert} = sub { BEGIN_TEXT -Expand the expression $expression and combine +Expand the expression $expression and combine like terms. Simplify your answer as much as possible. $BR $BR \{ ans_rule(50) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/3-1-Solving-equations/MCH1-3-1-04-Solving-equations.pg b/OpenProblemLibrary/FortLewis/Algebra/3-1-Solving-equations/MCH1-3-1-04-Solving-equations.pg index 0eda51d79c..fe3010f9c2 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/3-1-Solving-equations/MCH1-3-1-04-Solving-equations.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/3-1-Solving-equations/MCH1-3-1-04-Solving-equations.pg @@ -32,7 +32,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -67,7 +67,7 @@ $BR $BR \( $var = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("fraction") \} +\{ helpLink("fraction") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/3-1-Solving-equations/MCH1-3-1-08-Solving-equations.pg b/OpenProblemLibrary/FortLewis/Algebra/3-1-Solving-equations/MCH1-3-1-08-Solving-equations.pg index 4db70829f8..380597dc64 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/3-1-Solving-equations/MCH1-3-1-08-Solving-equations.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/3-1-Solving-equations/MCH1-3-1-08-Solving-equations.pg @@ -31,7 +31,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -70,7 +70,7 @@ $BR $BR \( $var = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("fraction") \} +\{ helpLink("fraction") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/3-1-Solving-equations/MCH1-3-1-12-Solving-equations.pg b/OpenProblemLibrary/FortLewis/Algebra/3-1-Solving-equations/MCH1-3-1-12-Solving-equations.pg index 5831fc9491..f82e54791b 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/3-1-Solving-equations/MCH1-3-1-12-Solving-equations.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/3-1-Solving-equations/MCH1-3-1-12-Solving-equations.pg @@ -31,7 +31,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -67,7 +67,7 @@ $BR $BR \( $var = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("fraction") \} +\{ helpLink("fraction") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/3-1-Solving-equations/MCH1-3-1-16-Solving-equations.pg b/OpenProblemLibrary/FortLewis/Algebra/3-1-Solving-equations/MCH1-3-1-16-Solving-equations.pg index 0b32ca7e28..f6651b8f2e 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/3-1-Solving-equations/MCH1-3-1-16-Solving-equations.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/3-1-Solving-equations/MCH1-3-1-16-Solving-equations.pg @@ -30,7 +30,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -72,7 +72,7 @@ $BR $BR \( $var = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("fraction") \} +\{ helpLink("fraction") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/3-1-Solving-equations/MCH1-3-1-20-Solving-equations.pg b/OpenProblemLibrary/FortLewis/Algebra/3-1-Solving-equations/MCH1-3-1-20-Solving-equations.pg index dfa22b74d3..f1884bd272 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/3-1-Solving-equations/MCH1-3-1-20-Solving-equations.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/3-1-Solving-equations/MCH1-3-1-20-Solving-equations.pg @@ -30,7 +30,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -68,7 +68,7 @@ $BR $BR \( $var = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("fraction") \} +\{ helpLink("fraction") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/3-1-Solving-equations/MCH1-3-1-24-Solving-equations.pg b/OpenProblemLibrary/FortLewis/Algebra/3-1-Solving-equations/MCH1-3-1-24-Solving-equations.pg index 493c811328..ea9138de5f 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/3-1-Solving-equations/MCH1-3-1-24-Solving-equations.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/3-1-Solving-equations/MCH1-3-1-24-Solving-equations.pg @@ -32,7 +32,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -80,7 +80,7 @@ $BR $BR \( $var = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("fraction") \} +\{ helpLink("fraction") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/3-1-Solving-equations/MCH1-3-1-28-Solving-equations.pg b/OpenProblemLibrary/FortLewis/Algebra/3-1-Solving-equations/MCH1-3-1-28-Solving-equations.pg index 953ae65a53..dda3c0dacb 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/3-1-Solving-equations/MCH1-3-1-28-Solving-equations.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/3-1-Solving-equations/MCH1-3-1-28-Solving-equations.pg @@ -30,7 +30,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -62,7 +62,7 @@ $BR $BR \( $var = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/3-1-Solving-equations/MCH1-3-1-32-Solving-equations.pg b/OpenProblemLibrary/FortLewis/Algebra/3-1-Solving-equations/MCH1-3-1-32-Solving-equations.pg index 66803fd742..9d1f7b699c 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/3-1-Solving-equations/MCH1-3-1-32-Solving-equations.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/3-1-Solving-equations/MCH1-3-1-32-Solving-equations.pg @@ -31,7 +31,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -62,13 +62,13 @@ $answer = Formula("(-$a x + $b y - $c z) / (x + y - z)"); Context()->texStrings; BEGIN_TEXT -Solve the equation \( \displaystyle $eqn \) for \( $var \), +Solve the equation \( \displaystyle $eqn \) for \( $var \), assuming that \( x + y - z \not= 0 \). $BR $BR \( $var = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/3-1-Solving-equations/MCH1-3-1-36-Solving-equations.pg b/OpenProblemLibrary/FortLewis/Algebra/3-1-Solving-equations/MCH1-3-1-36-Solving-equations.pg index 33898f27ac..ca76d4eff6 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/3-1-Solving-equations/MCH1-3-1-36-Solving-equations.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/3-1-Solving-equations/MCH1-3-1-36-Solving-equations.pg @@ -30,7 +30,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -66,7 +66,7 @@ $BR $BR \( $var = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/3-2-Solving-inequalities/MCH1-3-2-02-Solving-inequalities.pg b/OpenProblemLibrary/FortLewis/Algebra/3-2-Solving-inequalities/MCH1-3-2-02-Solving-inequalities.pg index 98677a659f..68430524a0 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/3-2-Solving-inequalities/MCH1-3-2-02-Solving-inequalities.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/3-2-Solving-inequalities/MCH1-3-2-02-Solving-inequalities.pg @@ -30,7 +30,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextInequalities.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", "PGcourse.pl" ); @@ -75,16 +75,16 @@ if ($select == 0) { Context()->texStrings; BEGIN_TEXT -Water is a liquid when its temperature, -\( T \), in degrees $deg is above $lower +Water is a liquid when its temperature, +\( T \), in degrees $deg is above $lower and below $upper. Enter the temperature -range for liquid water using inequalities. -Use the variable \( T \) in your answer +range for liquid water using inequalities. +Use the variable \( T \) in your answer and ${BITALIC}do not include units.${EITALIC} $BR $BR \{ ans_rule(40) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} END_TEXT Context()->normalStrings; @@ -94,7 +94,7 @@ Context()->normalStrings; $showPartialCorrectAnswers = 1; -ANS($answer->cmp(tolerance=>"0.001",tolType=>"absolute") +ANS($answer->cmp(tolerance=>"0.001",tolType=>"absolute") ->withPostFilter(AnswerHints( [ Compute("32 <= T <= 212"), @@ -106,7 +106,7 @@ Compute("273.15 < T <= 373.15"), Compute("0 <= T <= 100"), Compute("0 <= T < 100"), Compute("0 < T <= 100"), -] +] => ["Check whether your endpoints should be included or excluded",replaceMessage=>1], )) ); diff --git a/OpenProblemLibrary/FortLewis/Algebra/3-2-Solving-inequalities/MCH1-3-2-06-Solving-inequalities.pg b/OpenProblemLibrary/FortLewis/Algebra/3-2-Solving-inequalities/MCH1-3-2-06-Solving-inequalities.pg index 0f9809662b..218e0b621d 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/3-2-Solving-inequalities/MCH1-3-2-06-Solving-inequalities.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/3-2-Solving-inequalities/MCH1-3-2-06-Solving-inequalities.pg @@ -30,7 +30,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextInequalities.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", "PGcourse.pl" ); @@ -43,7 +43,7 @@ TEXT(beginproblem()); Context("Inequalities-Only"); Context()->variables->are(L=>"Real"); -#Context()->{error}{msg}{"The type of interval is incorrect"} +#Context()->{error}{msg}{"The type of interval is incorrect"} #= "Check whether your endpoints should be included or excluded"; $a = random(5000,12000,250); @@ -58,15 +58,15 @@ Context()->texStrings; BEGIN_TEXT An insurance policy covers losses, \(L\), of more than ${DOLLAR}$a but not more than ${DOLLAR}$b. Enter -the range of losses covered by this insurance -policy using inequalities. Use the variable -\( L \) in your answer and use only whole dollar amounts -(no cents). ${BITALIC}Do not use dollar signs or -commas in your answer.${EITALIC} +the range of losses covered by this insurance +policy using inequalities. Use the variable +\( L \) in your answer and use only whole dollar amounts +(no cents). ${BITALIC}Do not use dollar signs or +commas in your answer.${EITALIC} $BR $BR \{ ans_rule(40) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} END_TEXT Context()->normalStrings; @@ -75,14 +75,14 @@ Context()->normalStrings; $showPartialCorrectAnswers = 1; -ANS($answer->cmp(tolerance=>"0.001",tolType=>"absolute") -->withPostFilter(AnswerHints( +ANS($answer->cmp(tolerance=>"0.001",tolType=>"absolute") +->withPostFilter(AnswerHints( [ -Compute("$a < L < $b"), +Compute("$a < L < $b"), Compute("$a <= L < $b"), Compute("$a <= L <= $b"), ] -=> +=> ["Check whether your endpoints should be included or excluded",replaceMessage=>1], )) ); diff --git a/OpenProblemLibrary/FortLewis/Algebra/3-2-Solving-inequalities/MCH1-3-2-08-Solving-inequalities.pg b/OpenProblemLibrary/FortLewis/Algebra/3-2-Solving-inequalities/MCH1-3-2-08-Solving-inequalities.pg index 8e01c3fa22..a5e164def8 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/3-2-Solving-inequalities/MCH1-3-2-08-Solving-inequalities.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/3-2-Solving-inequalities/MCH1-3-2-08-Solving-inequalities.pg @@ -31,7 +31,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextInequalities.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -61,7 +61,7 @@ Enter your answer using inequality notation. $BR $BR \{ ans_rule(40) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/3-2-Solving-inequalities/MCH1-3-2-12-Solving-inequalities.pg b/OpenProblemLibrary/FortLewis/Algebra/3-2-Solving-inequalities/MCH1-3-2-12-Solving-inequalities.pg index 272f98fb61..21d5fb4239 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/3-2-Solving-inequalities/MCH1-3-2-12-Solving-inequalities.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/3-2-Solving-inequalities/MCH1-3-2-12-Solving-inequalities.pg @@ -31,7 +31,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextInequalities.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -60,7 +60,7 @@ Enter your answer using inequality notation. $BR $BR \{ ans_rule(40) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/3-2-Solving-inequalities/MCH1-3-2-14-Solving-inequalities.pg b/OpenProblemLibrary/FortLewis/Algebra/3-2-Solving-inequalities/MCH1-3-2-14-Solving-inequalities.pg index 8e00c546d6..a8e2af9d96 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/3-2-Solving-inequalities/MCH1-3-2-14-Solving-inequalities.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/3-2-Solving-inequalities/MCH1-3-2-14-Solving-inequalities.pg @@ -32,7 +32,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextInequalities.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -68,7 +68,7 @@ Enter your answer using inequality notation. $BR $BR \{ ans_rule(40) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/3-2-Solving-inequalities/MCH1-3-2-18-Solving-inequalities.pg b/OpenProblemLibrary/FortLewis/Algebra/3-2-Solving-inequalities/MCH1-3-2-18-Solving-inequalities.pg index 2c2fd53a90..50c699fdf1 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/3-2-Solving-inequalities/MCH1-3-2-18-Solving-inequalities.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/3-2-Solving-inequalities/MCH1-3-2-18-Solving-inequalities.pg @@ -31,7 +31,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextInequalities.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -53,7 +53,7 @@ while (($c-$a/$b)==0) { $c = random(1,9,1); } $ineq = "\frac{$a}{$b} x \geq $c x - $b"; - + if (($c-$a/$b) > 0) { $num = $b; @@ -80,7 +80,7 @@ Enter your answer using inequality notation. $BR $BR \{ ans_rule(40) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/3-2-Solving-inequalities/MCH1-3-2-22-Solving-inequalities.pg b/OpenProblemLibrary/FortLewis/Algebra/3-2-Solving-inequalities/MCH1-3-2-22-Solving-inequalities.pg index 2de3448330..1be69f942b 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/3-2-Solving-inequalities/MCH1-3-2-22-Solving-inequalities.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/3-2-Solving-inequalities/MCH1-3-2-22-Solving-inequalities.pg @@ -30,7 +30,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextInequalities.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", "PGcourse.pl" ); @@ -60,20 +60,20 @@ $answer = Compute("$lo <= T <= $hi"); Context()->texStrings; BEGIN_TEXT -An oven's heating element turns on when the +An oven's heating element turns on when the internal temperature falls to $below degrees -below the set temperature and turns off when -the temperature reaches $above degrees above -the set temperature. You preheat the oven +below the set temperature and turns off when +the temperature reaches $above degrees above +the set temperature. You preheat the oven to $settemp degrees before putting a cake -in and baking it for an hour at $settemp. +in and baking it for an hour at $settemp. Write an inequality in terms of the temperature, -\( T \), that describes the temperature range +\( T \), that describes the temperature range of the oven while the cake is baking. $BR $BR \{ ans_rule(40) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} END_TEXT Context()->normalStrings; @@ -83,7 +83,7 @@ Context()->normalStrings; $showPartialCorrectAnswers = 1; -ANS($answer->cmp(tolerance=>"0.001",tolType=>"absolute") +ANS($answer->cmp(tolerance=>"0.001",tolType=>"absolute") ->withPostFilter(AnswerHints( [Compute("$lo < T <= $hi"),Compute("$lo <= T < $hi"),Compute("$lo < T < $hi")] => ["Check whether your endpoints should be included or excluded",replaceMessage=>1], diff --git a/OpenProblemLibrary/FortLewis/Algebra/3-2-Solving-inequalities/MCH1-3-2-24-Solving-inequalities.pg b/OpenProblemLibrary/FortLewis/Algebra/3-2-Solving-inequalities/MCH1-3-2-24-Solving-inequalities.pg index c9894099a7..286dd27d3e 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/3-2-Solving-inequalities/MCH1-3-2-24-Solving-inequalities.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/3-2-Solving-inequalities/MCH1-3-2-24-Solving-inequalities.pg @@ -31,7 +31,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextInequalities.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", "PGcourse.pl" ); @@ -72,7 +72,7 @@ an inequality. $BR $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} END_TEXT Context()->normalStrings; @@ -82,7 +82,7 @@ Context()->normalStrings; $showPartialCorrectAnswers = 1; -ANS($answer->cmp() +ANS($answer->cmp() ->withPostFilter(AnswerHints( $incorrect => ["Is $a - $a = 0 $sign? Check your type of inequality.",replaceMessage=>1], )) diff --git a/OpenProblemLibrary/FortLewis/Algebra/3-2-Solving-inequalities/MCH1-3-2-26-Solving-inequalities.pg b/OpenProblemLibrary/FortLewis/Algebra/3-2-Solving-inequalities/MCH1-3-2-26-Solving-inequalities.pg index fe3db0376c..fe28a66e1e 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/3-2-Solving-inequalities/MCH1-3-2-26-Solving-inequalities.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/3-2-Solving-inequalities/MCH1-3-2-26-Solving-inequalities.pg @@ -30,7 +30,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextInequalities.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", "PGcourse.pl" ); @@ -63,7 +63,7 @@ an inequality. $BR $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} END_TEXT Context()->normalStrings; @@ -73,10 +73,10 @@ Context()->normalStrings; $showPartialCorrectAnswers = 1; -ANS($answer->cmp() +ANS($answer->cmp() ->withPostFilter(AnswerHints( -[Compute("-$b <= x < $a"),Compute("-$b < x <= $a"),Compute("-$b <= x <= $a")] -=> +[Compute("-$b <= x < $a"),Compute("-$b < x <= $a"),Compute("-$b <= x <= $a")] +=> ["Check whether your endpoints should be included or excluded",replaceMessage=>1], )) ); diff --git a/OpenProblemLibrary/FortLewis/Algebra/3-3-Absolute-value/MCH1-3-3-10a-Absolute-value.pg b/OpenProblemLibrary/FortLewis/Algebra/3-3-Absolute-value/MCH1-3-3-10a-Absolute-value.pg index 2e5802b59c..74af13981f 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/3-3-Absolute-value/MCH1-3-3-10a-Absolute-value.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/3-3-Absolute-value/MCH1-3-3-10a-Absolute-value.pg @@ -31,7 +31,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserImplicitEquation.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -59,17 +59,17 @@ BEGIN_TEXT Suppose the distance between \( x \) and zero is exactly \( $a \). $BR $BR -(a) Then \( x = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} -If there is more than one correct answer, enter your answers as a +(a) Then \( x = \) \{ ans_rule(10) \} +\{ helpLink("numbers") \} +If there is more than one correct answer, enter your answers as a comma separated list. $BR $BR -(b) Enter an absolute value equation that describes this situation. -Enter absolute value using vertical bars \( | \ | \) or \( \mathrm{abs}( \ ) \). +(b) Enter an absolute value equation that describes this situation. +Enter absolute value using vertical bars \( | \ | \) or \( \mathrm{abs}( \ ) \). $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/3-3-Absolute-value/MCH1-3-3-10b-Absolute-value.pg b/OpenProblemLibrary/FortLewis/Algebra/3-3-Absolute-value/MCH1-3-3-10b-Absolute-value.pg index f4e735930e..f9990842e1 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/3-3-Absolute-value/MCH1-3-3-10b-Absolute-value.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/3-3-Absolute-value/MCH1-3-3-10b-Absolute-value.pg @@ -32,7 +32,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserImplicitEquation.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -65,16 +65,16 @@ Suppose the distance between \( x \) and \( $a \) is exactly \( $b \). $BR $BR (a) Then \( x = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} -If there is more than one correct answer, enter your answers as a +\{ helpLink("numbers") \} +If there is more than one correct answer, enter your answers as a comma separated list. $BR $BR -(b) Enter an absolute value equation that describes this situation. -Enter absolute value using vertical bars \( | \ | \) or \( \mathrm{abs}( \ ) \). +(b) Enter an absolute value equation that describes this situation. +Enter absolute value using vertical bars \( | \ | \) or \( \mathrm{abs}( \ ) \). $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/3-3-Absolute-value/MCH1-3-3-10c-Absolute-value.pg b/OpenProblemLibrary/FortLewis/Algebra/3-3-Absolute-value/MCH1-3-3-10c-Absolute-value.pg index 765c81f79c..3b721c5d7b 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/3-3-Absolute-value/MCH1-3-3-10c-Absolute-value.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/3-3-Absolute-value/MCH1-3-3-10c-Absolute-value.pg @@ -30,7 +30,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserImplicitEquation.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -65,16 +65,16 @@ Suppose the distance between \( t \) and \( $a \) is exactly \( $b \). $BR $BR (a) Then \( t = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} -If there is more than one correct answer, enter your answers as a +\{ helpLink("numbers") \} +If there is more than one correct answer, enter your answers as a comma separated list. $BR $BR -(b) Enter an absolute value equation that describes this situation. -Enter absolute value using vertical bars \( | \ | \) or \( \mathrm{abs}( \ ) \). +(b) Enter an absolute value equation that describes this situation. +Enter absolute value using vertical bars \( | \ | \) or \( \mathrm{abs}( \ ) \). $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/3-3-Absolute-value/MCH1-3-3-10d-Absolute-value.pg b/OpenProblemLibrary/FortLewis/Algebra/3-3-Absolute-value/MCH1-3-3-10d-Absolute-value.pg index b341c8f362..09288c5134 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/3-3-Absolute-value/MCH1-3-3-10d-Absolute-value.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/3-3-Absolute-value/MCH1-3-3-10d-Absolute-value.pg @@ -32,7 +32,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextInequalities.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -65,18 +65,18 @@ $BR $BR $BR \{ ans_rule(30) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} $BR $BR (b) Complete the absolute value inequality below that describes this situation. -One answer box should have a function involving absolute value, and the other answer box should have a number. -Enter absolute value using vertical bars \( | \ | \) or \( \mathrm{abs}( \ ) \). +One answer box should have a function involving absolute value, and the other answer box should have a number. +Enter absolute value using vertical bars \( | \ | \) or \( \mathrm{abs}( \ ) \). $BR $BR \{ ans_rule(10) \} \( < \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("formulas") \} -and -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("formulas") \} +and +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/3-3-Absolute-value/MCH1-3-3-10e-Absolute-value.pg b/OpenProblemLibrary/FortLewis/Algebra/3-3-Absolute-value/MCH1-3-3-10e-Absolute-value.pg index c0a0c4fe9e..39d5f389bd 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/3-3-Absolute-value/MCH1-3-3-10e-Absolute-value.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/3-3-Absolute-value/MCH1-3-3-10e-Absolute-value.pg @@ -31,7 +31,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextInequalities.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -64,18 +64,18 @@ $BR $BR $BR \{ ans_rule(30) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} $BR $BR (b) Complete the absolute value inequality below that describes this situation. -One answer box should have a function involving absolute value, and the other answer box should have a number. -Enter absolute value using vertical bars \( | \ | \) or \( \mathrm{abs}( \ ) \). +One answer box should have a function involving absolute value, and the other answer box should have a number. +Enter absolute value using vertical bars \( | \ | \) or \( \mathrm{abs}( \ ) \). $BR $BR \{ ans_rule(10) \} \( \geq \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("formulas") \} -and -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("formulas") \} +and +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/3-3-Absolute-value/MCH1-3-3-10f-Absolute-value.pg b/OpenProblemLibrary/FortLewis/Algebra/3-3-Absolute-value/MCH1-3-3-10f-Absolute-value.pg index 0030c2e6e6..217f7a687b 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/3-3-Absolute-value/MCH1-3-3-10f-Absolute-value.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/3-3-Absolute-value/MCH1-3-3-10f-Absolute-value.pg @@ -31,7 +31,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextInequalities.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -68,16 +68,16 @@ $BR $BR $BR \{ ans_rule(30) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} $BR $BR (b) Complete the absolute value inequality below that describes this situation. -One answer box should have a function involving absolute value, and the other answer box should have a number. -Enter absolute value using vertical bars \( | \ | \) or \( \mathrm{abs}( \ ) \). +One answer box should have a function involving absolute value, and the other answer box should have a number. +Enter absolute value using vertical bars \( | \ | \) or \( \mathrm{abs}( \ ) \). $BR $BR \{ ans_rule(10) \} \( > \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/3-3-Absolute-value/MCH1-3-3-12-Absolute-value.pg b/OpenProblemLibrary/FortLewis/Algebra/3-3-Absolute-value/MCH1-3-3-12-Absolute-value.pg index 3a6f92dbf0..7cf27e22af 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/3-3-Absolute-value/MCH1-3-3-12-Absolute-value.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/3-3-Absolute-value/MCH1-3-3-12-Absolute-value.pg @@ -31,7 +31,7 @@ loadMacros( "MathObjects.pl", "parserMultiAnswer.pl", "parserImplicitPlane.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -98,17 +98,17 @@ BEGIN_TEXT $BR $BR \{ $multians->ans_rule(30) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} $BR \{ $multians->ans_rule(30) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} $BR $BR (b) Solve both equations above, and enter your answers as a comma separated list. $BR $BR \( x = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/3-3-Absolute-value/MCH1-3-3-14-Absolute-value.pg b/OpenProblemLibrary/FortLewis/Algebra/3-3-Absolute-value/MCH1-3-3-14-Absolute-value.pg index 5396fbf3c9..fb0b2f55f6 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/3-3-Absolute-value/MCH1-3-3-14-Absolute-value.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/3-3-Absolute-value/MCH1-3-3-14-Absolute-value.pg @@ -31,7 +31,7 @@ loadMacros( "MathObjects.pl", "parserMultiAnswer.pl", "parserImplicitPlane.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -101,17 +101,17 @@ BEGIN_TEXT $BR $BR \{ $multians->ans_rule(30) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} $BR \{ $multians->ans_rule(30) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} $BR $BR (b) Solve both equations above, and enter your answers as a comma separated list. $BR $BR \( r = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/3-3-Absolute-value/MCH1-3-3-16-Absolute-value.pg b/OpenProblemLibrary/FortLewis/Algebra/3-3-Absolute-value/MCH1-3-3-16-Absolute-value.pg index 96a950c8fd..f6f7e70a1f 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/3-3-Absolute-value/MCH1-3-3-16-Absolute-value.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/3-3-Absolute-value/MCH1-3-3-16-Absolute-value.pg @@ -31,7 +31,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextInequalities.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -65,7 +65,7 @@ Solve the inequality \( $eqn \). Enter your answer as an inequality. $BR $BR \{ ans_rule(30) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/3-3-Absolute-value/MCH1-3-3-18-Absolute-value.pg b/OpenProblemLibrary/FortLewis/Algebra/3-3-Absolute-value/MCH1-3-3-18-Absolute-value.pg index ae152dc256..b7ccfac6b7 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/3-3-Absolute-value/MCH1-3-3-18-Absolute-value.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/3-3-Absolute-value/MCH1-3-3-18-Absolute-value.pg @@ -31,7 +31,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextInequalities.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -67,7 +67,7 @@ Solve the inequality \( $eqn \). Enter your answer as an inequality. $BR $BR \{ ans_rule(30) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/4-1-What-is-a-function/MCH1-4-1-06-What-is-a-function.pg b/OpenProblemLibrary/FortLewis/Algebra/4-1-What-is-a-function/MCH1-4-1-06-What-is-a-function.pg index 0cabdc5569..7b57a61214 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/4-1-What-is-a-function/MCH1-4-1-06-What-is-a-function.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/4-1-What-is-a-function/MCH1-4-1-06-What-is-a-function.pg @@ -25,12 +25,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -57,12 +57,12 @@ Context()->functions->disable("All"); Context()->texStrings; BEGIN_TEXT -Evaluate the function \( \displaystyle f(x) = $f \) for \( x = $a \) without using a calculator. +Evaluate the function \( \displaystyle f(x) = $f \) for \( x = $a \) without using a calculator. Simplify your answer as much as possible. $BR $BR -\( f($a) = \) \{ans_rule(20)\} -\{ AnswerFormatHelp('numbers') \} +\( f($a) = \) \{ans_rule(20)\} +\{ helpLink('numbers') \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/4-1-What-is-a-function/MCH1-4-1-08-What-is-a-function.pg b/OpenProblemLibrary/FortLewis/Algebra/4-1-What-is-a-function/MCH1-4-1-08-What-is-a-function.pg index 562fc2d8b0..a1952ce9ba 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/4-1-What-is-a-function/MCH1-4-1-08-What-is-a-function.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/4-1-What-is-a-function/MCH1-4-1-08-What-is-a-function.pg @@ -25,12 +25,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextLimitedPolynomial.pl", "alignedChoice.pl", "answerHints.pl", @@ -61,7 +61,7 @@ $q[1] = $p[1] * $c; $fx = Formula("$p[2] x^2 + $p[1] x + $p[0]"); $fa = Formula("$p[2] a^2 + $p[1] a + $p[0]"); -$fc = Formula("$q[2] a^2 + $q[1] a + $p[0]")->reduce; +$fc = Formula("$q[2] a^2 + $q[1] a + $p[0]")->reduce; $answera = $fx->eval(x=>$a)->reduce; $answerb = $fa; @@ -85,11 +85,11 @@ $al->qa( Context()->texStrings; BEGIN_TEXT -Suppose \( \displaystyle f(x) = $fx \). -Evaluate the following without using a -calculator, and simplify your answers +Suppose \( \displaystyle f(x) = $fx \). +Evaluate the following without using a +calculator, and simplify your answers as much as possible. -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} \{ $al->print_q() \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/4-1-What-is-a-function/MCH1-4-1-10-What-is-a-function.pg b/OpenProblemLibrary/FortLewis/Algebra/4-1-What-is-a-function/MCH1-4-1-10-What-is-a-function.pg index 1ee1892818..bb92ecacb0 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/4-1-What-is-a-function/MCH1-4-1-10-What-is-a-function.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/4-1-What-is-a-function/MCH1-4-1-10-What-is-a-function.pg @@ -26,12 +26,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -59,12 +59,12 @@ Context()->functions->disable("All"); Context()->texStrings; BEGIN_TEXT -Evaluate the function \( \displaystyle g(x) = $f \) for \( x = 0 \) without using a calculator. +Evaluate the function \( \displaystyle g(x) = $f \) for \( x = 0 \) without using a calculator. Simplify your answer as much as possible. $BR $BR -\( g(0) = \) \{ans_rule(20)\} -\{ AnswerFormatHelp("fractions") \} +\( g(0) = \) \{ans_rule(20)\} +\{ helpLink("fractions") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/4-1-What-is-a-function/MCH1-4-1-12-What-is-a-function.pg b/OpenProblemLibrary/FortLewis/Algebra/4-1-What-is-a-function/MCH1-4-1-12-What-is-a-function.pg index a332d034c5..abb54d6e1a 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/4-1-What-is-a-function/MCH1-4-1-12-What-is-a-function.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/4-1-What-is-a-function/MCH1-4-1-12-What-is-a-function.pg @@ -25,12 +25,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -61,12 +61,12 @@ Context()->functions->disable("All"); Context()->texStrings; BEGIN_TEXT -Evaluate the function \( \displaystyle f(y) = $f \) for \( y = $b \) without using a calculator. +Evaluate the function \( \displaystyle f(y) = $f \) for \( y = $b \) without using a calculator. Simplify your answer as much as possible. $BR $BR -\( f($b) = \) \{ans_rule(20)\} -\{ AnswerFormatHelp("fractions") \} +\( f($b) = \) \{ans_rule(20)\} +\{ helpLink("fractions") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/4-1-What-is-a-function/MCH1-4-1-14-What-is-a-function.pg b/OpenProblemLibrary/FortLewis/Algebra/4-1-What-is-a-function/MCH1-4-1-14-What-is-a-function.pg index a351a129d7..9f2c2786b6 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/4-1-What-is-a-function/MCH1-4-1-14-What-is-a-function.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/4-1-What-is-a-function/MCH1-4-1-14-What-is-a-function.pg @@ -25,12 +25,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -60,12 +60,12 @@ Context()->functions->disable("All"); Context()->texStrings; BEGIN_TEXT -Evaluate the function \( \displaystyle g(x) = $f \) for \( x = \sqrt{$n} \) without using a calculator. +Evaluate the function \( \displaystyle g(x) = $f \) for \( x = \sqrt{$n} \) without using a calculator. Simplify your answer as much as possible. $BR $BR -\( g(\sqrt{$n}) = \) \{ans_rule(20)\} -\{ AnswerFormatHelp("fractions") \} +\( g(\sqrt{$n}) = \) \{ans_rule(20)\} +\{ helpLink("fractions") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/4-1-What-is-a-function/MCH1-4-1-16-What-is-a-function.pg b/OpenProblemLibrary/FortLewis/Algebra/4-1-What-is-a-function/MCH1-4-1-16-What-is-a-function.pg index bd8b58abcf..420d36464a 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/4-1-What-is-a-function/MCH1-4-1-16-What-is-a-function.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/4-1-What-is-a-function/MCH1-4-1-16-What-is-a-function.pg @@ -26,12 +26,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextLimitedPolynomial.pl", "answerHints.pl", "PGcourse.pl" @@ -64,13 +64,13 @@ Context()->functions->disable("All"); Context()->texStrings; BEGIN_TEXT -Evaluate the function \( \displaystyle h(t) = $h \) -for \( t = $c u \) without using a calculator. +Evaluate the function \( \displaystyle h(t) = $h \) +for \( t = $c u \) without using a calculator. Simplify your answer as much as possible. $BR $BR -\( h($c u) = \) \{ans_rule(20)\} -\{ AnswerFormatHelp("formulas") \} +\( h($c u) = \) \{ans_rule(20)\} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; @@ -81,9 +81,9 @@ Context()->normalStrings; $showPartialCorrectAnswers = 1; ANS($answer->cmp() -->withPostFilter(AnswerHints( +->withPostFilter(AnswerHints( Compute("$a - $d t") => "Are you using the correct variable?", -# Compute("$a - $d u") => "Good work!", +# Compute("$a - $d u") => "Good work!", )) ); diff --git a/OpenProblemLibrary/FortLewis/Algebra/4-1-What-is-a-function/MCH1-4-1-18-What-is-a-function.pg b/OpenProblemLibrary/FortLewis/Algebra/4-1-What-is-a-function/MCH1-4-1-18-What-is-a-function.pg index 1b889edf20..0157c4fd39 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/4-1-What-is-a-function/MCH1-4-1-18-What-is-a-function.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/4-1-What-is-a-function/MCH1-4-1-18-What-is-a-function.pg @@ -25,12 +25,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextLimitedPolynomial.pl", "answerHints.pl", "PGcourse.pl" @@ -63,13 +63,13 @@ Context()->functions->disable("All"); Context()->texStrings; BEGIN_TEXT -Evaluate the function \( \displaystyle h(t) = $h \) -for \( t = $c - n \) without using a calculator. +Evaluate the function \( \displaystyle h(t) = $h \) +for \( t = $c - n \) without using a calculator. Simplify your answer as much as possible. $BR $BR -\( h($c - n) = \) \{ans_rule(20)\} -\{ AnswerFormatHelp("formulas") \} +\( h($c - n) = \) \{ans_rule(20)\} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; @@ -80,9 +80,9 @@ Context()->normalStrings; $showPartialCorrectAnswers = 1; ANS($answer->cmp() -->withPostFilter(AnswerHints( +->withPostFilter(AnswerHints( Compute("$d + $b t") => "Are you using the correct variable?", -# Compute("$d + $b n") => "Good work!", +# Compute("$d + $b n") => "Good work!", )) ); diff --git a/OpenProblemLibrary/FortLewis/Algebra/4-1-What-is-a-function/MCH1-4-1-20-What-is-a-function.pg b/OpenProblemLibrary/FortLewis/Algebra/4-1-What-is-a-function/MCH1-4-1-20-What-is-a-function.pg index df49ef384f..a7e14760e3 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/4-1-What-is-a-function/MCH1-4-1-20-What-is-a-function.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/4-1-What-is-a-function/MCH1-4-1-20-What-is-a-function.pg @@ -25,12 +25,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextLimitedPolynomial.pl", "PGcourse.pl" ); @@ -62,13 +62,13 @@ Context()->functions->disable("All"); Context()->texStrings; BEGIN_TEXT -Evaluate the function \( \displaystyle h(t) = $h \) -at \( $c - t^3 \) without using a calculator. +Evaluate the function \( \displaystyle h(t) = $h \) +at \( $c - t^3 \) without using a calculator. Simplify your answer as much as possible. $BR $BR -\( h($c - t^3) = \) \{ans_rule(20)\} -\{ AnswerFormatHelp("formulas") \} +\( h($c - t^3) = \) \{ans_rule(20)\} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; @@ -79,9 +79,9 @@ Context()->normalStrings; $showPartialCorrectAnswers = 1; ANS($answer->cmp()); -#->withPostFilter(AnswerHints( +#->withPostFilter(AnswerHints( # Compute("$d + $b t") => "Are you using the correct variable?", -## Compute("$d + $b n") => "Good work!", +## Compute("$d + $b n") => "Good work!", #)) #); diff --git a/OpenProblemLibrary/FortLewis/Algebra/4-1-What-is-a-function/MCH1-4-1-24-What-is-a-function.pg b/OpenProblemLibrary/FortLewis/Algebra/4-1-What-is-a-function/MCH1-4-1-24-What-is-a-function.pg index c1b6c2678c..c8915e5d02 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/4-1-What-is-a-function/MCH1-4-1-24-What-is-a-function.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/4-1-What-is-a-function/MCH1-4-1-24-What-is-a-function.pg @@ -25,13 +25,13 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "PGchoicemacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -94,7 +94,7 @@ foreach my $i (0..4) { Context()->texStrings; BEGIN_TEXT -Suppose the function \( g \) is given by the +Suppose the function \( g \) is given by the following table of values. $BCENTER \{ begintable(6) \} @@ -104,11 +104,11 @@ $BCENTER $ECENTER $PAR Use the table to fill in the missing values. -There may be more than one correct answer, in -which case you should enter your answers as a +There may be more than one correct answer, in +which case you should enter your answers as a comma separated list. If there are no correct answers, enter ${BITALIC}NONE.${EITALIC} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $PAR \( g(0) \) = \{ ans_rule(5) \} $PAR diff --git a/OpenProblemLibrary/FortLewis/Algebra/4-1-What-is-a-function/MCH1-4-1-26-What-is-a-function.pg b/OpenProblemLibrary/FortLewis/Algebra/4-1-What-is-a-function/MCH1-4-1-26-What-is-a-function.pg index 0ca82f3ece..43efab8ad2 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/4-1-What-is-a-function/MCH1-4-1-26-What-is-a-function.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/4-1-What-is-a-function/MCH1-4-1-26-What-is-a-function.pg @@ -24,13 +24,13 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "PGchoicemacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -90,7 +90,7 @@ foreach my $i (0..scalar(@t)-1) { Context()->texStrings; BEGIN_TEXT -Suppose a function \( h \) is given by the +Suppose a function \( h \) is given by the following table of values. $BCENTER \{ begintable(8) \} @@ -99,12 +99,12 @@ $BCENTER \{ endtable() \} $ECENTER $PAR -Use the table to fill in the missing values. -There may be more than one correct answer, in -which case you should enter your answers as a +Use the table to fill in the missing values. +There may be more than one correct answer, in +which case you should enter your answers as a comma separated list. If there are no correct answers, enter ${BITALIC}NONE.${EITALIC} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $PAR \( h \big( \) \{ ans_rule(7) \} \( \big) = 2h($t[$inv[3]]) \) $PAR diff --git a/OpenProblemLibrary/FortLewis/Algebra/4-1-What-is-a-function/MCH1-4-1-27-What-is-a-function.pg b/OpenProblemLibrary/FortLewis/Algebra/4-1-What-is-a-function/MCH1-4-1-27-What-is-a-function.pg index 2a2f19edf8..5640ac077e 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/4-1-What-is-a-function/MCH1-4-1-27-What-is-a-function.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/4-1-What-is-a-function/MCH1-4-1-27-What-is-a-function.pg @@ -26,7 +26,7 @@ loadMacros( "PGstandard.pl", "PGgraphmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "PGcourse.pl" ); @@ -75,20 +75,20 @@ Context()->texStrings; BEGIN_TEXT \{ ColumnTable( -"Use the graph to find the missing values. -There may be more than one correct answer, +"Use the graph to find the missing values. +There may be more than one correct answer, in which case you should enter your answers as a comma separated list. If there are no correct answers, enter ${BITALIC}NONE.${EITALIC}". $BR. $BR. -"(a) \( f(0) = \) ". +"(a) \( f(0) = \) ". ans_rule(7).$SPACE. -AnswerFormatHelp("numbers"). +helpLink("numbers"). $BR. $BR. "(b) \( f \big( \) ".ans_rule(7)." \( \big) = 0 \). ". -AnswerFormatHelp("numbers"), +helpLink("numbers"), image(insertGraph($gr), width=>400, height=>400, tex_size=>700). $BR.$BCENTER. "(Click on graph to enlarge)". diff --git a/OpenProblemLibrary/FortLewis/Algebra/4-1-What-is-a-function/MCH1-4-1-28-What-is-a-function.pg b/OpenProblemLibrary/FortLewis/Algebra/4-1-What-is-a-function/MCH1-4-1-28-What-is-a-function.pg index 8051f6a459..d423fc7bc6 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/4-1-What-is-a-function/MCH1-4-1-28-What-is-a-function.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/4-1-What-is-a-function/MCH1-4-1-28-What-is-a-function.pg @@ -26,7 +26,7 @@ loadMacros( "PGstandard.pl", "PGgraphmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "PGcourse.pl" ); @@ -68,20 +68,20 @@ Context()->texStrings; BEGIN_TEXT \{ ColumnTable( -"Use the graph to find the missing values. -There may be more than one correct answer, +"Use the graph to find the missing values. +There may be more than one correct answer, in which case you should enter your answers as a comma separated list. If there are no correct answers, enter ${BITALIC}NONE.${EITALIC}". $BR. $BR. -"(a) \( h(0) = \) ". +"(a) \( h(0) = \) ". ans_rule(7).$SPACE. -AnswerFormatHelp("numbers"). +helpLink("numbers"). $BR. $BR. "(b) \( h \big( \) ".ans_rule(7)." \( \big) = 0 \). ". -AnswerFormatHelp("numbers"), +helpLink("numbers"), image(insertGraph($gr), width=>400, height=>400, tex_size=>700). $BR.$BCENTER. "(Click on graph to enlarge)". diff --git a/OpenProblemLibrary/FortLewis/Algebra/4-2-Functions-and-expressions/MCH1-4-2-06-Functions-and-expressions.pg b/OpenProblemLibrary/FortLewis/Algebra/4-2-Functions-and-expressions/MCH1-4-2-06-Functions-and-expressions.pg index 0ea91cf2f8..a268b8a334 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/4-2-Functions-and-expressions/MCH1-4-2-06-Functions-and-expressions.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/4-2-Functions-and-expressions/MCH1-4-2-06-Functions-and-expressions.pg @@ -25,12 +25,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextLimitedPolynomial.pl", "answerHints.pl", "PGcourse.pl" @@ -63,23 +63,23 @@ ${BBOLD}Part 1 of 2:${EBOLD} $BR $BR Suppose \( \displaystyle f(t) = $f \). Determine -if the expressions below are equivalent by expanding +if the expressions below are equivalent by expanding and simplifying them. $BR $BR \( f(t^2) \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR -\( \big( f(t) \big)^2 \) = \{ans_rule(20)\} -\{ AnswerFormatHelp("formulas") \} +\( \big( f(t) \big)^2 \) = \{ans_rule(20)\} +\{ helpLink("formulas") \} $BR $BR END_TEXT Context()->normalStrings; $ans_eval1 = $answer1->cmp(); -$ans_eval2 = $answer2->cmp()->withPostFilter(AnswerHints( +$ans_eval2 = $answer2->cmp()->withPostFilter(AnswerHints( Formula("t^2/4 + $bb") => "Hint: (a+b)^2 does not equal a^2 + b^2", )) ; @@ -102,7 +102,7 @@ if ((1 == $ans_hash1->{score}) && (1 == $ans_hash2->{score})) { BEGIN_TEXT $PAR $HR -${BBOLD}Part 2 of 2:${EBOLD} +${BBOLD}Part 2 of 2:${EBOLD} $BR $BR Are the expressions \( f(t^2) \) and \( \big( f(t) \big)^2 \) equivalent? @@ -114,7 +114,7 @@ $ans_eval3 = str_cmp("No"); ANS($ans_eval3 ); -} +} COMMENT("This is a multi-part problem in which the next part is revealed only after the previous part is correct."); diff --git a/OpenProblemLibrary/FortLewis/Algebra/4-2-Functions-and-expressions/MCH1-4-2-08-Functions-and-expressions.pg b/OpenProblemLibrary/FortLewis/Algebra/4-2-Functions-and-expressions/MCH1-4-2-08-Functions-and-expressions.pg index 6e3b171781..bc39ae61c4 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/4-2-Functions-and-expressions/MCH1-4-2-08-Functions-and-expressions.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/4-2-Functions-and-expressions/MCH1-4-2-08-Functions-and-expressions.pg @@ -26,12 +26,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextLimitedPolynomial.pl", "answerHints.pl", "PGcourse.pl" @@ -67,23 +67,23 @@ ${BBOLD}Part 1 of 2:${EBOLD} $BR $BR Suppose \( \displaystyle f(t) = $f \). Determine -if the expressions below are equivalent by expanding +if the expressions below are equivalent by expanding and simplifying them. $BR $BR \( f($aaa t^3) \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR -\( f\big( ($a t)^3 \big) \) = \{ans_rule(20)\} -\{ AnswerFormatHelp("formulas") \} +\( f\big( ($a t)^3 \big) \) = \{ans_rule(20)\} +\{ helpLink("formulas") \} $BR $BR END_TEXT Context()->normalStrings; $ans_eval1 = $answer1->cmp(); -$ans_eval2 = $answer2->cmp()->withPostFilter(AnswerHints( +$ans_eval2 = $answer2->cmp()->withPostFilter(AnswerHints( Formula("($a3/2) t^3 + $b") => "Hint: $a^3 does not equal $a3", Formula("($a/2) t^3 + $b") => "Hint: did you cube everything you were supposed to?", )) @@ -107,19 +107,19 @@ if ((1 == $ans_hash1->{score}) && (1 == $ans_hash2->{score})) { BEGIN_TEXT $PAR $HR -${BBOLD}Part 2 of 2:${EBOLD} +${BBOLD}Part 2 of 2:${EBOLD} $BR $BR Are the expressions \( f($aaa t^3) \) and \( f \big( ($a t)^3 \big) \) equivalent? \{ pop_up_list(["Choose","Yes","No","Cannot be determined"]) \} -Be sure you can explain why, and write your explanation in your notebook. +Be sure you can explain why, and write your explanation in your notebook. END_TEXT $ans_eval3 = str_cmp("Yes"); ANS($ans_eval3 ); -} +} COMMENT("This is a multi-part problem in which the next part is revealed only after the previous part is correct."); diff --git a/OpenProblemLibrary/FortLewis/Algebra/4-2-Functions-and-expressions/MCH1-4-2-10-Functions-and-expressions.pg b/OpenProblemLibrary/FortLewis/Algebra/4-2-Functions-and-expressions/MCH1-4-2-10-Functions-and-expressions.pg index 2251a7a8ba..a364491a32 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/4-2-Functions-and-expressions/MCH1-4-2-10-Functions-and-expressions.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/4-2-Functions-and-expressions/MCH1-4-2-10-Functions-and-expressions.pg @@ -25,12 +25,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextLimitedPolynomial.pl", "answerHints.pl", "PGcourse.pl" @@ -71,15 +71,15 @@ BEGIN_TEXT ${BBOLD}Part 1 of 2:${EBOLD} $BR $BR -Expand and simplify \( \displaystyle f(x) = $f \). +Expand and simplify \( \displaystyle f(x) = $f \). $BR $BR \( f(x) \) = \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; -$ans_eval1 = $answer1->cmp()->withPostFilter(AnswerHints( +$ans_eval1 = $answer1->cmp()->withPostFilter(AnswerHints( Formula("x^2 + $q[1] x - $q[0]") => "Hint: Did you multiply everything?", Formula("$a x^2 - $p[0]") => "Hint: Did you multiply inner and outer terms with each other (FOIL)?", )); @@ -102,18 +102,18 @@ Context()->texStrings; BEGIN_TEXT $PAR $HR -${BBOLD}Part 2 of 2:${EBOLD} +${BBOLD}Part 2 of 2:${EBOLD} $BR $BR Are the expressions \( f(x) \), given above, and \( g(x) = $g \) equivalent? \{ pop_up_list(["Choose","Yes","No","Cannot be determined"]) \} -Be sure you can explain why, and write your explanation in your notebook. +Be sure you can explain why, and write your explanation in your notebook. END_TEXT Context()->normalStrings; ANS(str_cmp($answer2) ); -} +} COMMENT("This is a multi-part problem in which the next part is revealed only after the previous part is correct."); diff --git a/OpenProblemLibrary/FortLewis/Algebra/4-2-Functions-and-expressions/MCH1-4-2-12-Functions-and-expressions.pg b/OpenProblemLibrary/FortLewis/Algebra/4-2-Functions-and-expressions/MCH1-4-2-12-Functions-and-expressions.pg index 68a38169fb..f2286c83c9 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/4-2-Functions-and-expressions/MCH1-4-2-12-Functions-and-expressions.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/4-2-Functions-and-expressions/MCH1-4-2-12-Functions-and-expressions.pg @@ -24,12 +24,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextLimitedPolynomial.pl", "answerHints.pl", "PGcourse.pl" @@ -66,16 +66,16 @@ BEGIN_TEXT ${BBOLD}Part 1 of 2:${EBOLD} $BR $BR -Expand and simplify \( \displaystyle $fname = $f \). +Expand and simplify \( \displaystyle $fname = $f \). $BR $BR \( $fname \) = \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; $ans_eval1 = $answer1->cmp(); -#->withPostFilter(AnswerHints( +#->withPostFilter(AnswerHints( # Formula("x^2 + $q[1] x - $q[0]") => "Hint: Did you multiply everything?", # Formula("$a x^2 - $p[0]") => "Hint: Did you multiply inner and outer terms with each other?", #)); @@ -98,18 +98,18 @@ Context()->texStrings; BEGIN_TEXT $PAR $HR -${BBOLD}Part 2 of 2:${EBOLD} +${BBOLD}Part 2 of 2:${EBOLD} $BR $BR Are the expressions \( $fname \), given above, and \( $gname = $g \) equivalent? \{ pop_up_list(["Choose","Yes","No","Cannot be determined"]) \} -Be sure you can explain why, and write your explanation in your notebook. +Be sure you can explain why, and write your explanation in your notebook. END_TEXT Context()->normalStrings; ANS(str_cmp($answer2) ); -} +} COMMENT("This is a multi-part problem in which the next part is revealed only after the previous part is correct."); diff --git a/OpenProblemLibrary/FortLewis/Algebra/4-2-Functions-and-expressions/MCH1-4-2-14-Functions-and-expressions.pg b/OpenProblemLibrary/FortLewis/Algebra/4-2-Functions-and-expressions/MCH1-4-2-14-Functions-and-expressions.pg index 23c47ec823..db7601bf2b 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/4-2-Functions-and-expressions/MCH1-4-2-14-Functions-and-expressions.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/4-2-Functions-and-expressions/MCH1-4-2-14-Functions-and-expressions.pg @@ -24,12 +24,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextLimitedPolynomial.pl", "answerHints.pl", "PGcourse.pl" @@ -65,15 +65,15 @@ BEGIN_TEXT ${BBOLD}Part 1 of 2:${EBOLD} $BR $BR -Expand and simplify \( \displaystyle $fname = $f \). +Expand and simplify \( \displaystyle $fname = $f \). $BR $BR \( $fname \) = \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; -$ans_eval1 = $answer1->cmp()->withPostFilter(AnswerHints( +$ans_eval1 = $answer1->cmp()->withPostFilter(AnswerHints( Formula("-$a t") => "Hint: Check your signs", )); @@ -95,18 +95,18 @@ Context()->texStrings; BEGIN_TEXT $PAR $HR -${BBOLD}Part 2 of 2:${EBOLD} +${BBOLD}Part 2 of 2:${EBOLD} $BR $BR Are the expressions \( $fname \), given above, and \( $gname = $g \) equivalent? \{ pop_up_list(["Choose","Yes","No","Cannot be determined"]) \} -Be sure you can explain why, and write your explanation in your notebook. +Be sure you can explain why, and write your explanation in your notebook. END_TEXT Context()->normalStrings; ANS(str_cmp($answer2) ); -} +} COMMENT("This is a multi-part problem in which the next part is revealed only after the previous part is correct."); diff --git a/OpenProblemLibrary/FortLewis/Algebra/4-2-Functions-and-expressions/MCH1-4-2-16-Functions-and-expressions.pg b/OpenProblemLibrary/FortLewis/Algebra/4-2-Functions-and-expressions/MCH1-4-2-16-Functions-and-expressions.pg index 2163af8b4b..42cfe69b34 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/4-2-Functions-and-expressions/MCH1-4-2-16-Functions-and-expressions.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/4-2-Functions-and-expressions/MCH1-4-2-16-Functions-and-expressions.pg @@ -24,12 +24,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextLimitedPolynomial.pl", "answerHints.pl", "PGcourse.pl" @@ -67,15 +67,15 @@ BEGIN_TEXT ${BBOLD}Part 1 of 2:${EBOLD} $BR $BR -Expand and simplify \( \displaystyle $fname = $f \). +Expand and simplify \( \displaystyle $fname = $f \). $BR $BR \( $fname \) = \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; -$ans_eval1 = $answer1->cmp()->withPostFilter(AnswerHints( +$ans_eval1 = $answer1->cmp()->withPostFilter(AnswerHints( Formula("$a - $ab v^2") => "Hint: (a+b)/v is not equal to (a/v + b)", Formula("$a - $b v") => "Hint: When you multiply, distribute the $a", $answer1 => "Note: The unexpanded B(v) and expanded B(v) are equal as long as v is not zero", @@ -99,18 +99,18 @@ Context()->texStrings; BEGIN_TEXT $PAR $HR -${BBOLD}Part 2 of 2:${EBOLD} +${BBOLD}Part 2 of 2:${EBOLD} $BR $BR Are the expressions \( $fname \), given above, and \( \displaystyle $gname = $g \) equivalent? \{ pop_up_list(["Choose","Yes","No","Cannot be determined"]) \} -Be sure you can explain why, and write your explanation in your notebook. +Be sure you can explain why, and write your explanation in your notebook. END_TEXT Context()->normalStrings; ANS(str_cmp($answer2) ); -} +} COMMENT("This is a multi-part problem in which the next part is revealed only after the previous part is correct."); diff --git a/OpenProblemLibrary/FortLewis/Algebra/4-2-Functions-and-expressions/MCH1-4-2-26-Functions-and-expressions.pg b/OpenProblemLibrary/FortLewis/Algebra/4-2-Functions-and-expressions/MCH1-4-2-26-Functions-and-expressions.pg index 6afc0466ff..450c713b12 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/4-2-Functions-and-expressions/MCH1-4-2-26-Functions-and-expressions.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/4-2-Functions-and-expressions/MCH1-4-2-26-Functions-and-expressions.pg @@ -24,12 +24,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -53,11 +53,11 @@ $answer = Formula("n+$a"); Context()->texStrings; BEGIN_TEXT Put the function \( Q = t(n+$a) \) in the form -\( Q = k t \) and state the value of \( k \). +\( Q = k t \) and state the value of \( k \). $BR $BR \( k \) = \{ ans_rule(10) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/4-2-Functions-and-expressions/MCH1-4-2-28-Functions-and-expressions.pg b/OpenProblemLibrary/FortLewis/Algebra/4-2-Functions-and-expressions/MCH1-4-2-28-Functions-and-expressions.pg index af37a8165f..e1a565b725 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/4-2-Functions-and-expressions/MCH1-4-2-28-Functions-and-expressions.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/4-2-Functions-and-expressions/MCH1-4-2-28-Functions-and-expressions.pg @@ -24,12 +24,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -55,11 +55,11 @@ $answer = Compute("sqrt($a)/$b"); Context()->texStrings; BEGIN_TEXT Put the function \( \displaystyle Q = \frac{1}{$b} t \sqrt{$a} \) in the form -\( Q = k t \) and state the value of \( k \). +\( Q = k t \) and state the value of \( k \). $BR $BR \( k \) = \{ ans_rule(10) \} -\{ AnswerFormatHelp("fractions") \} +\{ helpLink("fractions") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/4-2-Functions-and-expressions/MCH1-4-2-30-Functions-and-expressions.pg b/OpenProblemLibrary/FortLewis/Algebra/4-2-Functions-and-expressions/MCH1-4-2-30-Functions-and-expressions.pg index 9eddeddeac..e7c0ade924 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/4-2-Functions-and-expressions/MCH1-4-2-30-Functions-and-expressions.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/4-2-Functions-and-expressions/MCH1-4-2-30-Functions-and-expressions.pg @@ -24,12 +24,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -55,11 +55,11 @@ $answer = Compute("(a - $d b)/c"); Context()->texStrings; BEGIN_TEXT Put the function \( \displaystyle Q = \frac{a t - $d b t}{c} \) in the form -\( Q = k t \) and state the value of \( k \). +\( Q = k t \) and state the value of \( k \). $BR $BR \( k \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/4-3-Functions-and-equations/MCH1-4-3-02-Functions-and-equations.pg b/OpenProblemLibrary/FortLewis/Algebra/4-3-Functions-and-equations/MCH1-4-3-02-Functions-and-equations.pg index 6eb9b74f16..789535b1db 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/4-3-Functions-and-equations/MCH1-4-3-02-Functions-and-equations.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/4-3-Functions-and-equations/MCH1-4-3-02-Functions-and-equations.pg @@ -25,12 +25,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -58,7 +58,7 @@ Suppose \( f(x) = $a - $b x \). Solve \( f(x) = 0 \) for \( x \). $BR $BR \( x \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("fractions") \} +\{ helpLink("fractions") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/4-3-Functions-and-equations/MCH1-4-3-04-Functions-and-equations.pg b/OpenProblemLibrary/FortLewis/Algebra/4-3-Functions-and-equations/MCH1-4-3-04-Functions-and-equations.pg index 480b6786d0..dd69b4beda 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/4-3-Functions-and-equations/MCH1-4-3-04-Functions-and-equations.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/4-3-Functions-and-equations/MCH1-4-3-04-Functions-and-equations.pg @@ -24,12 +24,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -57,7 +57,7 @@ Suppose \( f(x) = $a x^2 - $abb \). Solve \( f(x) = 0 \) for \( x \). $BR $BR \( x \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/4-3-Functions-and-equations/MCH1-4-3-06-Functions-and-equations.pg b/OpenProblemLibrary/FortLewis/Algebra/4-3-Functions-and-equations/MCH1-4-3-06-Functions-and-equations.pg index afb3d3c6d9..fcba3fb769 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/4-3-Functions-and-equations/MCH1-4-3-06-Functions-and-equations.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/4-3-Functions-and-equations/MCH1-4-3-06-Functions-and-equations.pg @@ -25,12 +25,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -61,7 +61,7 @@ Suppose \( f(x) = $a ($a x - $b) + $a \). Solve \( f(x) = 0 \) for \( x \). $BR $BR \( x \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("fractions") \} +\{ helpLink("fractions") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/4-3-Functions-and-equations/MCH1-4-3-08-Functions-and-equations.pg b/OpenProblemLibrary/FortLewis/Algebra/4-3-Functions-and-equations/MCH1-4-3-08-Functions-and-equations.pg index ad83cc4581..0921cd4f5f 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/4-3-Functions-and-equations/MCH1-4-3-08-Functions-and-equations.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/4-3-Functions-and-equations/MCH1-4-3-08-Functions-and-equations.pg @@ -25,12 +25,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -63,7 +63,7 @@ Suppose \( \displaystyle f(t) = \frac{$a}{$b} t + $c \). Solve \( f(t) = $d \) $BR $BR \( t \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("fractions") \} +\{ helpLink("fractions") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/4-3-Functions-and-equations/MCH1-4-3-10-Functions-and-equations.pg b/OpenProblemLibrary/FortLewis/Algebra/4-3-Functions-and-equations/MCH1-4-3-10-Functions-and-equations.pg index 8e9325ebdb..fd9470b380 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/4-3-Functions-and-equations/MCH1-4-3-10-Functions-and-equations.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/4-3-Functions-and-equations/MCH1-4-3-10-Functions-and-equations.pg @@ -24,12 +24,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -63,7 +63,7 @@ Suppose \( \displaystyle f(t) = \frac{t-$a}{$b} \). Solve \( f(t) = $c \) for \ $BR $BR \( t \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("fractions") \} +\{ helpLink("fractions") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/4-3-Functions-and-equations/MCH1-4-3-12-Functions-and-equations.pg b/OpenProblemLibrary/FortLewis/Algebra/4-3-Functions-and-equations/MCH1-4-3-12-Functions-and-equations.pg index b0b45f7db0..aef528ff51 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/4-3-Functions-and-equations/MCH1-4-3-12-Functions-and-equations.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/4-3-Functions-and-equations/MCH1-4-3-12-Functions-and-equations.pg @@ -26,7 +26,7 @@ loadMacros( "PGstandard.pl", "PGgraphmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "PGcourse.pl" ); @@ -56,7 +56,7 @@ $ymax = 100; ###################################################### # Begin Automatic Graph Setup # -$gr = init_graph($xmin,$ymin,$xmax,$ymax,axes=>[$axes[0],$axes[1]]); +$gr = init_graph($xmin,$ymin,$xmax,$ymax,axes=>[$axes[0],$axes[1]]); # Horizontal gridlines manually foreach my $y (@hgrid) { @@ -94,7 +94,7 @@ $D = random(40,60,20); # Vertical Shift add_functions($gr, "$A*sin(2*pi*x/$P)+$D for x in <0,100> using color:blue and weight:2"); $gr -> lb(new Label ( 3*$P/4,$A+$D-5,'y = v(x)','black','center','middle')); -if ($P==40) { +if ($P==40) { $answera = List(10,50,90); $input = 70; $output = $D+$A; @@ -104,7 +104,7 @@ if ($P==40) { $input = 60; $output = $D+$A; $answerb = List($D-$A); -} +} @@ -115,20 +115,20 @@ Context()->texStrings; BEGIN_TEXT \{ ColumnTable( -"Use the graph to find the missing values. -There may be more than one correct answer, +"Use the graph to find the missing values. +There may be more than one correct answer, in which case you should enter your answers as a comma separated list. If there are no correct answers, enter ${BITALIC}NONE.${EITALIC}". $BR. $BR. "(a) Solve \( v (x) = $output \). $SPACE \( x = \) ".ans_rule(7).$SPACE. -AnswerFormatHelp("numbers"). +helpLink("numbers"). $BR. $BR. -"(b) \( v($input) = \) ". +"(b) \( v($input) = \) ". ans_rule(7).$SPACE. -AnswerFormatHelp("numbers"), +helpLink("numbers"), image(insertGraph($gr), width=>400, height=>400, tex_size=>700). $BR.$BCENTER. "(Click on graph to enlarge)". diff --git a/OpenProblemLibrary/FortLewis/Algebra/4-3-Functions-and-equations/MCH1-4-3-14-Functions-and-equations.pg b/OpenProblemLibrary/FortLewis/Algebra/4-3-Functions-and-equations/MCH1-4-3-14-Functions-and-equations.pg index 9ebe49f2c6..41e68c58a6 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/4-3-Functions-and-equations/MCH1-4-3-14-Functions-and-equations.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/4-3-Functions-and-equations/MCH1-4-3-14-Functions-and-equations.pg @@ -26,7 +26,7 @@ loadMacros( "PGstandard.pl", "PGgraphmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "PGcourse.pl" ); @@ -74,20 +74,20 @@ Context()->texStrings; BEGIN_TEXT \{ ColumnTable( -"Use the graph to find the missing values. -There may be more than one correct answer, +"Use the graph to find the missing values. +There may be more than one correct answer, in which case you should enter your answers as a comma separated list. If there are no correct answers, enter ${BITALIC}NONE.${EITALIC}". $BR. $BR. -"(a) \( f(0) = \) ". +"(a) \( f(0) = \) ". ans_rule(7).$SPACE. -AnswerFormatHelp("numbers"). +helpLink("numbers"). $BR. $BR. "(b) \( f \big( \) ".ans_rule(7)." \( \big) = 0 \). ". -AnswerFormatHelp("numbers"), +helpLink("numbers"), image(insertGraph($gr), width=>400, height=>400, tex_size=>700). $BR.$BCENTER. "(Click on graph to enlarge)". diff --git a/OpenProblemLibrary/FortLewis/Algebra/4-3-Functions-and-equations/MCH1-4-3-16-Functions-and-equations.pg b/OpenProblemLibrary/FortLewis/Algebra/4-3-Functions-and-equations/MCH1-4-3-16-Functions-and-equations.pg index c99995a59f..df759fa0d9 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/4-3-Functions-and-equations/MCH1-4-3-16-Functions-and-equations.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/4-3-Functions-and-equations/MCH1-4-3-16-Functions-and-equations.pg @@ -26,7 +26,7 @@ loadMacros( "PGstandard.pl", "PGgraphmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "PGcourse.pl" ); @@ -74,20 +74,20 @@ Context()->texStrings; BEGIN_TEXT \{ ColumnTable( -"Use the graph to find the missing values. -There may be more than one correct answer, +"Use the graph to find the missing values. +There may be more than one correct answer, in which case you should enter your answers as a comma separated list. If there are no correct answers, enter ${BITALIC}NONE.${EITALIC}". $BR. $BR. -"(a) \( f(0) = \) ". +"(a) \( f(0) = \) ". ans_rule(7).$SPACE. -AnswerFormatHelp("numbers"). +helpLink("numbers"). $BR. $BR. "(b) \( f \big( \) ".ans_rule(7)." \( \big) = 0 \). ". -AnswerFormatHelp("numbers"), +helpLink("numbers"), image(insertGraph($gr), width=>400, height=>400, tex_size=>700). $BR.$BCENTER. "(Click on graph to enlarge)". diff --git a/OpenProblemLibrary/FortLewis/Algebra/4-3-Functions-and-equations/MCH1-4-3-22-Functions-and-equations.pg b/OpenProblemLibrary/FortLewis/Algebra/4-3-Functions-and-equations/MCH1-4-3-22-Functions-and-equations.pg index 886b9b2b59..b69f1bc3af 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/4-3-Functions-and-equations/MCH1-4-3-22-Functions-and-equations.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/4-3-Functions-and-equations/MCH1-4-3-22-Functions-and-equations.pg @@ -24,12 +24,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -63,7 +63,7 @@ Suppose \( \displaystyle h(x) = $a - \frac{$b}{x} \). Solve \( $c h(x) + $d = $ $BR $BR \( x \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("fractions") \} +\{ helpLink("fractions") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/4-3-Functions-and-equations/MCH1-4-3-24-Functions-and-equations.pg b/OpenProblemLibrary/FortLewis/Algebra/4-3-Functions-and-equations/MCH1-4-3-24-Functions-and-equations.pg index 3317429be8..b75beaae20 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/4-3-Functions-and-equations/MCH1-4-3-24-Functions-and-equations.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/4-3-Functions-and-equations/MCH1-4-3-24-Functions-and-equations.pg @@ -24,12 +24,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -57,7 +57,7 @@ If \( \displaystyle w(x) = $w \). Solve \( $eqn \) for \( x \). $BR $BR \( x \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/4-3-Functions-and-equations/MCH1-4-3-28-Functions-and-equations.pg b/OpenProblemLibrary/FortLewis/Algebra/4-3-Functions-and-equations/MCH1-4-3-28-Functions-and-equations.pg index b118cdb9ca..fa963a8c86 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/4-3-Functions-and-equations/MCH1-4-3-28-Functions-and-equations.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/4-3-Functions-and-equations/MCH1-4-3-28-Functions-and-equations.pg @@ -24,12 +24,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "PGcourse.pl" ); @@ -61,8 +61,8 @@ $g = Formula("$n v + $q")->reduce; foreach $i (0..6) { - $fval[$i] = $f->eval(v=>"$i"); - $gval[$i] = $g->eval(v=>"$i"); + $fval[$i] = $f->eval(v=>"$i"); + $gval[$i] = $g->eval(v=>"$i"); } @v = (0..6); @@ -94,7 +94,7 @@ if ($m < $n) { Context()->texStrings; BEGIN_TEXT -The table below shows values of \( v \) and the +The table below shows values of \( v \) and the expressions \( $f \) and \( $g \). $PAR $BCENTER @@ -108,19 +108,19 @@ $PAR For which values of \( v \) in the table is: $BR $BR -(a) \( $f < $g \)? +(a) \( $f < $g \)? \( v \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR $BR -(b) \( $f > $g \)? +(b) \( $f > $g \)? \( v \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR $BR -(c) \( $f = $g \)? +(c) \( $f = $g \)? \( v \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $PAR If there is more than one answer, enter your answers as a comma separated list. If there are no solutions, enter diff --git a/OpenProblemLibrary/FortLewis/Algebra/4-5-Functions-and-modeling/MCH1-4-5-01-Functions-and-modeling.pg b/OpenProblemLibrary/FortLewis/Algebra/4-5-Functions-and-modeling/MCH1-4-5-01-Functions-and-modeling.pg index f6aa215afe..a2c20b468f 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/4-5-Functions-and-modeling/MCH1-4-5-01-Functions-and-modeling.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/4-5-Functions-and-modeling/MCH1-4-5-01-Functions-and-modeling.pg @@ -24,12 +24,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionLists.pl", "PGcourse.pl" ); @@ -59,47 +59,47 @@ $D = random(10,20,1); Context()->texStrings; BEGIN_TEXT \{ BeginList("OL") \} -$ITEM Suppose \( d \) is the distance traveled +$ITEM Suppose \( d \) is the distance traveled in miles and \( t \) is the time traveled in hours -at a speed of \( $a \) miles per hour. Is \( d \) -directly proportional to \( t \)? -If it is, enter the constant of proportionality. +at a speed of \( $a \) miles per hour. Is \( d \) +directly proportional to \( t \)? +If it is, enter the constant of proportionality. Otherwise, enter ${BITALIC}NO.${EITALIC} Do not enter units. $BR \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $ITEMSEP $ITEM Suppose \( P \) is the price paid in dollars for \( b \) barrels of oil at a price of ${DOLLAR}${b}. Is \( P \) directly proportional to \( b \)? -If it is, enter the constant of proportionality. -Otherwise, enter ${BITALIC}NO.${EITALIC} Do not enter +If it is, enter the constant of proportionality. +Otherwise, enter ${BITALIC}NO.${EITALIC} Do not enter a dollar sign. $BR \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $ITEMSEP $ITEM Suppose \( p \) is the sale price of an item -whose original price is \( p_0 \) in a $c${PERCENT} +whose original price is \( p_0 \) in a $c${PERCENT} off sale. Is \( p \) directly proportional to \( p_0 \)? If it is, enter the constant of proportionality as a decimal, -not a percent. +not a percent. Otherwise, enter ${BITALIC}NO.${EITALIC} Do not enter a percent symbol. $BR \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $ITEMSEP $ITEM Suppose \( C \) is the cost of having \( n \) -drinks at a club, where each drink is ${DOLLAR}${d} -and there is a cover charge of ${DOLLAR}${D}. +drinks at a club, where each drink is ${DOLLAR}${d} +and there is a cover charge of ${DOLLAR}${D}. Is \( C \) directly proportional to \( n \)? -If it is, enter the constant of proportionality. +If it is, enter the constant of proportionality. Otherwise, enter ${BITALIC}NO.${EITALIC} Do not enter a dollar sign. $BR \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} \{ EndList() \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/4-5-Functions-and-modeling/MCH1-4-5-06-Functions-and-modeling.pg b/OpenProblemLibrary/FortLewis/Algebra/4-5-Functions-and-modeling/MCH1-4-5-06-Functions-and-modeling.pg index 98bdbcaa5b..6702cc8ec1 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/4-5-Functions-and-modeling/MCH1-4-5-06-Functions-and-modeling.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/4-5-Functions-and-modeling/MCH1-4-5-06-Functions-and-modeling.pg @@ -25,12 +25,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -52,14 +52,14 @@ $a = random(3,9,1); Context()->texStrings; BEGIN_TEXT -Suppose \( y = x \cdot $a \). Is \( y \) -directly proportional to \( x \)? -If it is, enter the constant of proportionality. -Otherwise, enter ${BITALIC}NO.${EITALIC} +Suppose \( y = x \cdot $a \). Is \( y \) +directly proportional to \( x \)? +If it is, enter the constant of proportionality. +Otherwise, enter ${BITALIC}NO.${EITALIC} $BR $BR \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/4-5-Functions-and-modeling/MCH1-4-5-08-Functions-and-modeling.pg b/OpenProblemLibrary/FortLewis/Algebra/4-5-Functions-and-modeling/MCH1-4-5-08-Functions-and-modeling.pg index 0e04fbc0ce..bd95811cb7 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/4-5-Functions-and-modeling/MCH1-4-5-08-Functions-and-modeling.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/4-5-Functions-and-modeling/MCH1-4-5-08-Functions-and-modeling.pg @@ -25,12 +25,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -53,14 +53,14 @@ $a = list_random(2,3,5,6,7,8); Context()->texStrings; BEGIN_TEXT -Suppose \( y = \sqrt{$a} \cdot x \). Is \( y \) -directly proportional to \( x \)? -If it is, enter the constant of proportionality. -Otherwise, enter ${BITALIC}NO.${EITALIC} +Suppose \( y = \sqrt{$a} \cdot x \). Is \( y \) +directly proportional to \( x \)? +If it is, enter the constant of proportionality. +Otherwise, enter ${BITALIC}NO.${EITALIC} $BR $BR \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/4-5-Functions-and-modeling/MCH1-4-5-10-Functions-and-modeling.pg b/OpenProblemLibrary/FortLewis/Algebra/4-5-Functions-and-modeling/MCH1-4-5-10-Functions-and-modeling.pg index 1511bf01b1..1502c916fa 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/4-5-Functions-and-modeling/MCH1-4-5-10-Functions-and-modeling.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/4-5-Functions-and-modeling/MCH1-4-5-10-Functions-and-modeling.pg @@ -26,12 +26,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -54,14 +54,14 @@ $a = random(2,9,1); Context()->texStrings; BEGIN_TEXT -Suppose \( \displaystyle y = \frac{$a}{x} \). Is \( y \) -directly proportional to \( x \)? -If it is, enter the constant of proportionality. -Otherwise, enter ${BITALIC}NO.${EITALIC} +Suppose \( \displaystyle y = \frac{$a}{x} \). Is \( y \) +directly proportional to \( x \)? +If it is, enter the constant of proportionality. +Otherwise, enter ${BITALIC}NO.${EITALIC} $BR $BR \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/4-5-Functions-and-modeling/MCH1-4-5-12-Functions-and-modeling.pg b/OpenProblemLibrary/FortLewis/Algebra/4-5-Functions-and-modeling/MCH1-4-5-12-Functions-and-modeling.pg index 7e40e119fb..6f27ca0517 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/4-5-Functions-and-modeling/MCH1-4-5-12-Functions-and-modeling.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/4-5-Functions-and-modeling/MCH1-4-5-12-Functions-and-modeling.pg @@ -25,12 +25,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -54,14 +54,14 @@ $b = random(2,9,1); Context()->texStrings; BEGIN_TEXT -Suppose \( y = $a (x + $b) \). Is \( y \) -directly proportional to \( x \)? -If it is, enter the constant of proportionality. -Otherwise, enter ${BITALIC}NO.${EITALIC} +Suppose \( y = $a (x + $b) \). Is \( y \) +directly proportional to \( x \)? +If it is, enter the constant of proportionality. +Otherwise, enter ${BITALIC}NO.${EITALIC} $BR $BR \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/4-5-Functions-and-modeling/MCH1-4-5-14-Functions-and-modeling.pg b/OpenProblemLibrary/FortLewis/Algebra/4-5-Functions-and-modeling/MCH1-4-5-14-Functions-and-modeling.pg index 829d819299..5cc77a090b 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/4-5-Functions-and-modeling/MCH1-4-5-14-Functions-and-modeling.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/4-5-Functions-and-modeling/MCH1-4-5-14-Functions-and-modeling.pg @@ -26,12 +26,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -62,12 +62,12 @@ $y1 = $f->eval(x=>"$x1"); Context()->texStrings; BEGIN_TEXT Suppose \( $yvar \) is directly proportional to \( $xvar \). -If \( $yvar = $y0 \) when \( $xvar = $x0 \), find +If \( $yvar = $y0 \) when \( $xvar = $x0 \), find \( $yvar \) when \( $xvar = $x1 \). $BR $BR \( $yvar \) = \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/4-5-Functions-and-modeling/MCH1-4-5-16-Functions-and-modeling.pg b/OpenProblemLibrary/FortLewis/Algebra/4-5-Functions-and-modeling/MCH1-4-5-16-Functions-and-modeling.pg index e6a2825349..90d6f85e90 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/4-5-Functions-and-modeling/MCH1-4-5-16-Functions-and-modeling.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/4-5-Functions-and-modeling/MCH1-4-5-16-Functions-and-modeling.pg @@ -25,12 +25,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -61,12 +61,12 @@ $y1 = $f->eval(x=>"$x1"); Context()->texStrings; BEGIN_TEXT Suppose \( $yvar \) is directly proportional to \( $xvar \). -If \( $yvar = $y1 \) when \( $xvar = $x1 \), find +If \( $yvar = $y1 \) when \( $xvar = $x1 \), find \( $yvar \) when \( $xvar = $x0 \). $BR $BR \( $yvar \) = \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/4-5-Functions-and-modeling/MCH1-4-5-20-Functions-and-modeling.pg b/OpenProblemLibrary/FortLewis/Algebra/4-5-Functions-and-modeling/MCH1-4-5-20-Functions-and-modeling.pg index 1aab0d3f45..fc0a04275b 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/4-5-Functions-and-modeling/MCH1-4-5-20-Functions-and-modeling.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/4-5-Functions-and-modeling/MCH1-4-5-20-Functions-and-modeling.pg @@ -26,7 +26,7 @@ loadMacros( "PGstandard.pl", "PGgraphmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "PGcourse.pl" ); @@ -56,7 +56,7 @@ $ymax = 15; ###################################################### # Begin Automatic Graph Setup # -$gr = init_graph($xmin,$ymin,$xmax,$ymax,axes=>[$axes[0],$axes[1]],size=>[300,300]); +$gr = init_graph($xmin,$ymin,$xmax,$ymax,axes=>[$axes[0],$axes[1]],size=>[300,300]); # Horizontal gridlines manually foreach my $y (@hgrid) { @@ -102,12 +102,12 @@ BEGIN_TEXT ColumnTable( "Does the graph define a direct proportion? If it does, enter the constant -of proportionality. If it does not, enter +of proportionality. If it does not, enter ${BITALIC}NO.${EITALIC}". $BR. $BR. ans_rule(10).$SPACE. -AnswerFormatHelp("numbers"), +helpLink("numbers"), image(insertGraph($gr), width=>300, height=>300, tex_size=>500). $BR.$BCENTER. "(Click on graph to enlarge)". diff --git a/OpenProblemLibrary/FortLewis/Algebra/4-5-Functions-and-modeling/MCH1-4-5-21-Functions-and-modeling.pg b/OpenProblemLibrary/FortLewis/Algebra/4-5-Functions-and-modeling/MCH1-4-5-21-Functions-and-modeling.pg index c877517487..db440b84b1 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/4-5-Functions-and-modeling/MCH1-4-5-21-Functions-and-modeling.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/4-5-Functions-and-modeling/MCH1-4-5-21-Functions-and-modeling.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "PGgraphmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "PGcourse.pl" ); @@ -57,7 +57,7 @@ $ymax = 15; ###################################################### # Begin Automatic Graph Setup # -$gr = init_graph($xmin,$ymin,$xmax,$ymax,axes=>[$axes[0],$axes[1]],size=>[300,300]); +$gr = init_graph($xmin,$ymin,$xmax,$ymax,axes=>[$axes[0],$axes[1]],size=>[300,300]); # Horizontal gridlines manually foreach my $y (@hgrid) { @@ -103,12 +103,12 @@ BEGIN_TEXT ColumnTable( "Does the graph define a direct proportion? If it does, enter the constant -of proportionality. If it does not, enter +of proportionality. If it does not, enter ${BITALIC}NO.${EITALIC}". $BR. $BR. ans_rule(10).$SPACE. -AnswerFormatHelp("numbers"), +helpLink("numbers"), image(insertGraph($gr), width=>300, height=>300, tex_size=>500). $BR.$BCENTER. "(Click on graph to enlarge)". diff --git a/OpenProblemLibrary/FortLewis/Algebra/4-5-Functions-and-modeling/MCH1-4-5-22-Functions-and-modeling.pg b/OpenProblemLibrary/FortLewis/Algebra/4-5-Functions-and-modeling/MCH1-4-5-22-Functions-and-modeling.pg index 11df718d68..a7e6e4798e 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/4-5-Functions-and-modeling/MCH1-4-5-22-Functions-and-modeling.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/4-5-Functions-and-modeling/MCH1-4-5-22-Functions-and-modeling.pg @@ -26,7 +26,7 @@ loadMacros( "PGstandard.pl", "PGgraphmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "PGcourse.pl" ); @@ -56,7 +56,7 @@ $ymax = 15; ###################################################### # Begin Automatic Graph Setup # -$gr = init_graph($xmin,$ymin,$xmax,$ymax,axes=>[$axes[0],$axes[1]],size=>[300,300]); +$gr = init_graph($xmin,$ymin,$xmax,$ymax,axes=>[$axes[0],$axes[1]],size=>[300,300]); # Horizontal gridlines manually foreach my $y (@hgrid) { @@ -102,12 +102,12 @@ BEGIN_TEXT ColumnTable( "Does the graph define a direct proportion? If it does, enter the constant -of proportionality. If it does not, enter +of proportionality. If it does not, enter ${BITALIC}NO.${EITALIC}". $BR. $BR. ans_rule(10).$SPACE. -AnswerFormatHelp("numbers"), +helpLink("numbers"), image(insertGraph($gr), width=>300, height=>300, tex_size=>500). $BR.$BCENTER. "(Click on graph to enlarge)". diff --git a/OpenProblemLibrary/FortLewis/Algebra/4-5-Functions-and-modeling/MCH1-4-5-23-Functions-and-modeling.pg b/OpenProblemLibrary/FortLewis/Algebra/4-5-Functions-and-modeling/MCH1-4-5-23-Functions-and-modeling.pg index bae303fef7..90161e6ba2 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/4-5-Functions-and-modeling/MCH1-4-5-23-Functions-and-modeling.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/4-5-Functions-and-modeling/MCH1-4-5-23-Functions-and-modeling.pg @@ -26,7 +26,7 @@ loadMacros( "PGstandard.pl", "PGgraphmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "PGcourse.pl" ); @@ -56,7 +56,7 @@ $ymax = 3; ###################################################### # Begin Automatic Graph Setup # -$gr = init_graph($xmin,$ymin,$xmax,$ymax,axes=>[$axes[0],$axes[1]],size=>[300,300]); +$gr = init_graph($xmin,$ymin,$xmax,$ymax,axes=>[$axes[0],$axes[1]],size=>[300,300]); # Horizontal gridlines manually foreach my $y (@hgrid) { @@ -102,12 +102,12 @@ BEGIN_TEXT ColumnTable( "Does the graph define a direct proportion? If it does, enter the constant -of proportionality. If it does not, enter +of proportionality. If it does not, enter ${BITALIC}NO.${EITALIC}". $BR. $BR. ans_rule(10).$SPACE. -AnswerFormatHelp("numbers"), +helpLink("numbers"), image(insertGraph($gr), width=>300, height=>300, tex_size=>500). $BR.$BCENTER. "(Click on graph to enlarge)". diff --git a/OpenProblemLibrary/FortLewis/Algebra/4-5-Functions-and-modeling/MCH1-4-5-24-Functions-and-modeling.pg b/OpenProblemLibrary/FortLewis/Algebra/4-5-Functions-and-modeling/MCH1-4-5-24-Functions-and-modeling.pg index d2a0dde5ef..06f4eeea6d 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/4-5-Functions-and-modeling/MCH1-4-5-24-Functions-and-modeling.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/4-5-Functions-and-modeling/MCH1-4-5-24-Functions-and-modeling.pg @@ -26,7 +26,7 @@ loadMacros( "PGstandard.pl", "PGgraphmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "PGcourse.pl" ); @@ -56,7 +56,7 @@ $ymax = 15; ###################################################### # Begin Automatic Graph Setup # -$gr = init_graph($xmin,$ymin,$xmax,$ymax,axes=>[$axes[0],$axes[1]],size=>[300,300]); +$gr = init_graph($xmin,$ymin,$xmax,$ymax,axes=>[$axes[0],$axes[1]],size=>[300,300]); # Horizontal gridlines manually foreach my $y (@hgrid) { @@ -102,12 +102,12 @@ BEGIN_TEXT ColumnTable( "Does the graph define a direct proportion? If it does, enter the constant -of proportionality. If it does not, enter +of proportionality. If it does not, enter ${BITALIC}NO.${EITALIC}". $BR. $BR. ans_rule(10).$SPACE. -AnswerFormatHelp("numbers"), +helpLink("numbers"), image(insertGraph($gr), width=>300, height=>300, tex_size=>500). $BR.$BCENTER. "(Click on graph to enlarge)". diff --git a/OpenProblemLibrary/FortLewis/Algebra/4-5-Functions-and-modeling/MCH1-4-5-25-Functions-and-modeling.pg b/OpenProblemLibrary/FortLewis/Algebra/4-5-Functions-and-modeling/MCH1-4-5-25-Functions-and-modeling.pg index 5fd933d1aa..814c693f34 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/4-5-Functions-and-modeling/MCH1-4-5-25-Functions-and-modeling.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/4-5-Functions-and-modeling/MCH1-4-5-25-Functions-and-modeling.pg @@ -26,7 +26,7 @@ loadMacros( "PGstandard.pl", "PGgraphmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "PGcourse.pl" ); @@ -56,7 +56,7 @@ $ymax = 3; ###################################################### # Begin Automatic Graph Setup # -$gr = init_graph($xmin,$ymin,$xmax,$ymax,axes=>[$axes[0],$axes[1]],size=>[300,300]); +$gr = init_graph($xmin,$ymin,$xmax,$ymax,axes=>[$axes[0],$axes[1]],size=>[300,300]); # Horizontal gridlines manually foreach my $y (@hgrid) { @@ -102,12 +102,12 @@ BEGIN_TEXT ColumnTable( "Does the graph define a direct proportion? If it does, enter the constant -of proportionality. If it does not, enter +of proportionality. If it does not, enter ${BITALIC}NO.${EITALIC}". $BR. $BR. ans_rule(10).$SPACE. -AnswerFormatHelp("numbers"), +helpLink("numbers"), image(insertGraph($gr), width=>300, height=>300, tex_size=>500). $BR.$BCENTER. "(Click on graph to enlarge)". diff --git a/OpenProblemLibrary/FortLewis/Algebra/4-5-Functions-and-modeling/MCH1-4-5-26-Functions-and-modeling.pg b/OpenProblemLibrary/FortLewis/Algebra/4-5-Functions-and-modeling/MCH1-4-5-26-Functions-and-modeling.pg index 4f7e66edbd..35e131e488 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/4-5-Functions-and-modeling/MCH1-4-5-26-Functions-and-modeling.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/4-5-Functions-and-modeling/MCH1-4-5-26-Functions-and-modeling.pg @@ -26,7 +26,7 @@ loadMacros( "PGstandard.pl", "PGgraphmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "PGcourse.pl" ); @@ -56,7 +56,7 @@ $ymax = 3; ###################################################### # Begin Automatic Graph Setup # -$gr = init_graph($xmin,$ymin,$xmax,$ymax,axes=>[$axes[0],$axes[1]],size=>[300,300]); +$gr = init_graph($xmin,$ymin,$xmax,$ymax,axes=>[$axes[0],$axes[1]],size=>[300,300]); # Horizontal gridlines manually foreach my $y (@hgrid) { @@ -103,12 +103,12 @@ BEGIN_TEXT ColumnTable( "Does the graph define a direct proportion? If it does, enter the constant -of proportionality. If it does not, enter +of proportionality. If it does not, enter ${BITALIC}NO.${EITALIC}". $BR. $BR. ans_rule(10).$SPACE. -AnswerFormatHelp("numbers"), +helpLink("numbers"), image(insertGraph($gr), width=>300, height=>300, tex_size=>500). $BR.$BCENTER. "(Click on graph to enlarge)". diff --git a/OpenProblemLibrary/FortLewis/Algebra/4-5-Functions-and-modeling/MCH1-4-5-27-Functions-and-modeling.pg b/OpenProblemLibrary/FortLewis/Algebra/4-5-Functions-and-modeling/MCH1-4-5-27-Functions-and-modeling.pg index 69bb8b8da4..82619b5a4c 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/4-5-Functions-and-modeling/MCH1-4-5-27-Functions-and-modeling.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/4-5-Functions-and-modeling/MCH1-4-5-27-Functions-and-modeling.pg @@ -26,7 +26,7 @@ loadMacros( "PGstandard.pl", "PGgraphmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "PGcourse.pl" ); @@ -56,7 +56,7 @@ $ymax = 3; ###################################################### # Begin Automatic Graph Setup # -$gr = init_graph($xmin,$ymin,$xmax,$ymax,axes=>[$axes[0],$axes[1]],size=>[300,300]); +$gr = init_graph($xmin,$ymin,$xmax,$ymax,axes=>[$axes[0],$axes[1]],size=>[300,300]); # Horizontal gridlines manually foreach my $y (@hgrid) { @@ -102,12 +102,12 @@ BEGIN_TEXT ColumnTable( "Does the graph define a direct proportion? If it does, enter the constant -of proportionality. If it does not, enter +of proportionality. If it does not, enter ${BITALIC}NO.${EITALIC}". $BR. $BR. ans_rule(10).$SPACE. -AnswerFormatHelp("numbers"), +helpLink("numbers"), image(insertGraph($gr), width=>300, height=>300, tex_size=>500). $BR.$BCENTER. "(Click on graph to enlarge)". diff --git a/OpenProblemLibrary/FortLewis/Algebra/4-5-Functions-and-modeling/MCH1-4-5-34-Functions-and-modeling.pg b/OpenProblemLibrary/FortLewis/Algebra/4-5-Functions-and-modeling/MCH1-4-5-34-Functions-and-modeling.pg index b9aa84d517..528d5cf612 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/4-5-Functions-and-modeling/MCH1-4-5-34-Functions-and-modeling.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/4-5-Functions-and-modeling/MCH1-4-5-34-Functions-and-modeling.pg @@ -24,12 +24,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserPopUp.pl", "PGcourse.pl" ); @@ -65,24 +65,24 @@ $units2 = PopUp(["Choose","BTUs","feet","square feet","BTUs per foot","BTUs per Context()->texStrings; BEGIN_TEXT The required cooling capacity, in BTUs, for a room -air conditioner is directly proportional to the +air conditioner is directly proportional to the area of the room being cooled. A room of \( $x0 \) -square feet requires an air conditioner whose +square feet requires an air conditioner whose cooling capacity is \( $y0 \) BTUs. $BR $BR -(a) What is the constant of proportionality, and +(a) What is the constant of proportionality, and what are its units? \{ ans_rule(10) \} \{ $units1->menu() \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR $BR -(b) If an air conditioner has a cooling capacity of +(b) If an air conditioner has a cooling capacity of \( $y1 \) BTUs, how large a room can it cool? \{ ans_rule(10) \} \{ $units2->menu() \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/4-5-Functions-and-modeling/MCH1-4-5-36-Functions-and-modeling.pg b/OpenProblemLibrary/FortLewis/Algebra/4-5-Functions-and-modeling/MCH1-4-5-36-Functions-and-modeling.pg index 5de5c84230..dce3c50f95 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/4-5-Functions-and-modeling/MCH1-4-5-36-Functions-and-modeling.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/4-5-Functions-and-modeling/MCH1-4-5-36-Functions-and-modeling.pg @@ -24,12 +24,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserImplicitEquation.pl", "PGcourse.pl" ); @@ -60,17 +60,17 @@ $eqn = ImplicitEquation("m = k * r"); Context()->texStrings; BEGIN_TEXT -The length \( m \), in inches, of a model train is -directly proportional to the length \( r \), in +The length \( m \), in inches, of a model train is +directly proportional to the length \( r \), in inches, of the corresponding real train. $BR $BR -(a) Write an equation that expresses \( m \) as a +(a) Write an equation that expresses \( m \) as a function of \( r \), using \( k \) for the constant of proportionality. -$BR +$BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} $BR $BR END_TEXT @@ -105,19 +105,19 @@ $answerc = Real("12 * $c / $scale[$i-1]"); Context()->texStrings; BEGIN_TEXT -(b) $AN[$i] ${BBOLD}$scalename[$i]${EBOLD} scale model -train is 1/$scale[$i]th the size of a real train. +(b) $AN[$i] ${BBOLD}$scalename[$i]${EBOLD} scale model +train is 1/$scale[$i]th the size of a real train. What is the constant of proportionality? $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR -What is the length, in feet, of a real locomotive -if its ${BBOLD}$scalename[$i]${EBOLD} scale model is +What is the length, in feet, of a real locomotive +if its ${BBOLD}$scalename[$i]${EBOLD} scale model is \( $b \) inches long? $BR \{ ans_rule(20) \} feet. -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR $BR (c) $AN[$i-1] ${BBOLD}$scalename[$i-1]${EBOLD} scale model @@ -125,14 +125,14 @@ train is 1/$scale[$i-1]th the size of a real train. What is the constant of proportionality? $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR -What is the length, in inches, of $an[$i-1] -${BBOLD}$scalename[$i-1]${EBOLD} scale model if its +What is the length, in inches, of $an[$i-1] +${BBOLD}$scalename[$i-1]${EBOLD} scale model if its real locomotive is is \( $c \) feet long? $BR \{ ans_rule(20) \} inches. -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings(); diff --git a/OpenProblemLibrary/FortLewis/Algebra/4-5-Functions-and-modeling/MCH1-4-5-40-Functions-and-modeling.pg b/OpenProblemLibrary/FortLewis/Algebra/4-5-Functions-and-modeling/MCH1-4-5-40-Functions-and-modeling.pg index 0712ec9223..3b1c20ec94 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/4-5-Functions-and-modeling/MCH1-4-5-40-Functions-and-modeling.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/4-5-Functions-and-modeling/MCH1-4-5-40-Functions-and-modeling.pg @@ -24,13 +24,13 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "PGchoicemacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserPopUp.pl", "PGcourse.pl" ); @@ -58,7 +58,7 @@ $car = @cars[random(0,9,1)]; $mc = new_multiple_choice(); $mc->qa( -"What is the meaning of the constant of proportionality \( k \)?", +"What is the meaning of the constant of proportionality \( k \)?", "A $car on the highway will travel \( k \) miles on a gallon of gas." ); $mc->extra( @@ -74,22 +74,22 @@ $mc->makeLast("None of the above"); Context()->texStrings; BEGIN_TEXT -The distance a car travels -on a flat highway is directly proportional to +The distance a car travels +on a flat highway is directly proportional to the quantity of gas consumed. A $car travels \( $miles \) miles on \( $gallons \) gallons of gas. $BR $BR -(a) What is the constant of proportionality, +(a) What is the constant of proportionality, and what are it units? $BR \{ ans_rule(10) \} \{ $units->menu() \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR $BR -(b) +(b) \{ $mc->print_q() \} \{ $mc->print_a() \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/5-1-Linear-functions/MCH1-5-1-01-Linear-functions.pg b/OpenProblemLibrary/FortLewis/Algebra/5-1-Linear-functions/MCH1-5-1-01-Linear-functions.pg index 729f1eb4ee..061dd37502 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/5-1-Linear-functions/MCH1-5-1-01-Linear-functions.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/5-1-Linear-functions/MCH1-5-1-01-Linear-functions.pg @@ -25,12 +25,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserAssignment.pl", "answerHints.pl", "PGcourse.pl" @@ -52,7 +52,7 @@ $m = random(25,50,25); $x = random(10,20,1); $b = $m * $x; -$answer = Formula("D = $b - $m d"); +$answer = Formula("D = $b - $m d"); ############################################## # Main text @@ -61,20 +61,20 @@ Context()->texStrings; BEGIN_TEXT A homing pigeon starts $b miles from home and flies $m miles toward home each day. Express -the distance from home \( D \), in miles, as a +the distance from home \( D \), in miles, as a function of the number of days \( d \). Enter your answer as an equation with \(D\) on the left side, and an expression involving \(d\) on the right. $BR $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} END_TEXT Context()->normalStrings; -ANS($answer->cmp() -->withPostFilter(AnswerHints( +ANS($answer->cmp() +->withPostFilter(AnswerHints( Formula("D = $b + $m d") => "The distance from home should decrease over time", )) ); diff --git a/OpenProblemLibrary/FortLewis/Algebra/5-1-Linear-functions/MCH1-5-1-02-Linear-functions.pg b/OpenProblemLibrary/FortLewis/Algebra/5-1-Linear-functions/MCH1-5-1-02-Linear-functions.pg index 0bc49e75eb..c665c96bd0 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/5-1-Linear-functions/MCH1-5-1-02-Linear-functions.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/5-1-Linear-functions/MCH1-5-1-02-Linear-functions.pg @@ -25,12 +25,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserAssignment.pl", "answerHints.pl", "PGcourse.pl" @@ -53,27 +53,27 @@ $m = random(0.2,0.8,0.2); $b = random(5,9,1); $binches = $b * 12; -$answer = Formula("h = $binches + $m t"); +$answer = Formula("h = $binches + $m t"); ############################################## # Main text Context()->texStrings; BEGIN_TEXT -You buy a saguaro cactus $b feet high and it +You buy a saguaro cactus $b feet high and it grows at a rate of $m inches each year. Express -its height \( h \), in inches, as a function of +its height \( h \), in inches, as a function of time \( t \), in years, since the purchase. Enter your answer as an equation with \(h\) on the left side, and an expression involving \(t\) on the right. $BR $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} END_TEXT Context()->normalStrings; -ANS($answer->cmp() -->withPostFilter(AnswerHints( +ANS($answer->cmp() +->withPostFilter(AnswerHints( Formula("h = $b + $m t") => "Shouldn't everything be in inches?", )) ); diff --git a/OpenProblemLibrary/FortLewis/Algebra/5-1-Linear-functions/MCH1-5-1-03-Linear-functions.pg b/OpenProblemLibrary/FortLewis/Algebra/5-1-Linear-functions/MCH1-5-1-03-Linear-functions.pg index 817113465d..0c63127f47 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/5-1-Linear-functions/MCH1-5-1-03-Linear-functions.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/5-1-Linear-functions/MCH1-5-1-03-Linear-functions.pg @@ -25,12 +25,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserAssignment.pl", "answerHints.pl", "PGcourse.pl" @@ -53,8 +53,8 @@ $m = random(0.01,0.09,0.01); $b = random(25,30,1); #$answer = ImplicitPlane("T = $b - $m d"); - -$answer = Formula("T = $b - $m d"); + +$answer = Formula("T = $b - $m d"); ############################################## # Main text @@ -63,20 +63,20 @@ Context()->texStrings; BEGIN_TEXT The temperature of the soil is \( $b \ {}^{\circ}\mathrm{C} \) at the surface and decreases by \( $m \ {}^{\circ}\mathrm{C} \) -for each centimeter below the surface. Express -temperature \( T \), in degrees Celsius, as a function +for each centimeter below the surface. Express +temperature \( T \), in degrees Celsius, as a function of depth \( d \), in centimeters, below the surface. -Enter your answer as an equation with \(T\) on the left side, -and an expression involving \(d\) on the right. +Enter your answer as an equation with \(T\) on the left side, +and an expression involving \(d\) on the right. $BR $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} END_TEXT Context()->normalStrings; -ANS($answer->cmp() -->withPostFilter(AnswerHints( +ANS($answer->cmp() +->withPostFilter(AnswerHints( Formula("T = $b + $m d") => "Shouldn't the temperature decrease as depth increases?", )) ); diff --git a/OpenProblemLibrary/FortLewis/Algebra/5-1-Linear-functions/MCH1-5-1-38-Linear-functions.pg b/OpenProblemLibrary/FortLewis/Algebra/5-1-Linear-functions/MCH1-5-1-38-Linear-functions.pg index c412381fc5..817126a509 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/5-1-Linear-functions/MCH1-5-1-38-Linear-functions.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/5-1-Linear-functions/MCH1-5-1-38-Linear-functions.pg @@ -25,12 +25,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -52,15 +52,15 @@ $b = random(200,300,1); Context()->texStrings; BEGIN_TEXT -Give the slope and \(y\)-intercept +Give the slope and \(y\)-intercept for the graph of the function \( f(x) = $b - $m x \). $BR $BR The slope is \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR The \(y\)-intercept is \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/5-1-Linear-functions/MCH1-5-1-39-Linear-functions.pg b/OpenProblemLibrary/FortLewis/Algebra/5-1-Linear-functions/MCH1-5-1-39-Linear-functions.pg index cabf0aaab8..4b286d15dc 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/5-1-Linear-functions/MCH1-5-1-39-Linear-functions.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/5-1-Linear-functions/MCH1-5-1-39-Linear-functions.pg @@ -23,12 +23,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -51,20 +51,20 @@ do { $b = random(3,15,1); } until ($b != $a); Context()->texStrings; BEGIN_TEXT -Give the slope and ${BITALIC}y${EITALIC}-intercept +Give the slope and ${BITALIC}y${EITALIC}-intercept for the graph of the function \( \displaystyle f(x) = \frac{1}{$a} x + $b \). $BR $BR The slope is \{ ans_rule(20) \} -\{ AnswerFormatHelp("fractions") \} +\{ helpLink("fractions") \} $BR The ${BITALIC}y${EITALIC}-intercept is \{ ans_rule(20) \} -\{ AnswerFormatHelp("fractions") \} +\{ helpLink("fractions") \} END_TEXT Context()->normalStrings; ANS( Compute("1/$a")->cmp(tolerance=>"0.001",tolType=>"absolute") ); ANS( Real("$b")->cmp(tolerance=>"0.001",tolType=>"absolute") ); -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/FortLewis/Algebra/5-1-Linear-functions/MCH1-5-1-40-Linear-functions.pg b/OpenProblemLibrary/FortLewis/Algebra/5-1-Linear-functions/MCH1-5-1-40-Linear-functions.pg index 6a89d91a3c..4df1f7b853 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/5-1-Linear-functions/MCH1-5-1-40-Linear-functions.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/5-1-Linear-functions/MCH1-5-1-40-Linear-functions.pg @@ -26,12 +26,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -54,16 +54,16 @@ $b = random(3,15,1); Context()->texStrings; BEGIN_TEXT -Give the slope and ${BITALIC}y${EITALIC}-intercept +Give the slope and ${BITALIC}y${EITALIC}-intercept for the graph of the function \( \displaystyle f(x) = \frac{x}{$m} - $b \). $BR $BR The slope is \{ ans_rule(20) \} -\{ AnswerFormatHelp("fractions") \} +\{ helpLink("fractions") \} $BR The ${BITALIC}y${EITALIC}-intercept is \{ ans_rule(20) \} -\{ AnswerFormatHelp("fractions") \} +\{ helpLink("fractions") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/5-1-Linear-functions/MCH1-5-1-40a-Linear-functions.pg b/OpenProblemLibrary/FortLewis/Algebra/5-1-Linear-functions/MCH1-5-1-40a-Linear-functions.pg index 96f846c28c..6c33847034 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/5-1-Linear-functions/MCH1-5-1-40a-Linear-functions.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/5-1-Linear-functions/MCH1-5-1-40a-Linear-functions.pg @@ -23,12 +23,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -52,14 +52,14 @@ $b = random(3,15,1); Context()->texStrings; BEGIN_TEXT Put the function \( \displaystyle -f(x) = -\frac{x}{$a} - $b \) in the form +f(x) = -\frac{x}{$a} - $b \) in the form \( f(x) = b + m x \). $BR $BR -\( f(x) = \) -\{ ans_rule(10) \} \( + \Big( \) -\{ ans_rule(10) \} \( \Big) x \). -\{ AnswerFormatHelp("fractions") \} +\( f(x) = \) +\{ ans_rule(10) \} \( + \Big( \) +\{ ans_rule(10) \} \( \Big) x \). +\{ helpLink("fractions") \} END_TEXT Context()->normalStrings; @@ -67,4 +67,4 @@ ANS( Real("-($b)")->cmp(tolerance=>"0.001",tolType=>"absolute") ); ANS( Compute("-1/$a")->cmp(tolerance=>"0.001",tolType=>"absolute") ); -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/FortLewis/Algebra/5-1-Linear-functions/MCH1-5-1-41-Linear-functions.pg b/OpenProblemLibrary/FortLewis/Algebra/5-1-Linear-functions/MCH1-5-1-41-Linear-functions.pg index 6bbf2b60aa..5c90544989 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/5-1-Linear-functions/MCH1-5-1-41-Linear-functions.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/5-1-Linear-functions/MCH1-5-1-41-Linear-functions.pg @@ -23,12 +23,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -56,16 +56,16 @@ $slope = Compute("-$b / $c"); Context()->texStrings; BEGIN_TEXT -Give the slope and ${BITALIC}y${EITALIC}-intercept +Give the slope and ${BITALIC}y${EITALIC}-intercept for the graph of the function \( \displaystyle f(x) = \frac{$a - $b x}{$c} \). $BR $BR The slope is \{ ans_rule(20) \} -\{ AnswerFormatHelp("fractions") \} +\{ helpLink("fractions") \} $BR The ${BITALIC}y${EITALIC}-intercept is \{ ans_rule(20) \} -\{ AnswerFormatHelp("fractions") \} +\{ helpLink("fractions") \} END_TEXT Context()->normalStrings; @@ -73,4 +73,4 @@ ANS( $slope->cmp(tolerance=>"0.001",tolType=>"absolute") ); ANS( $constant->cmp(tolerance=>"0.001",tolType=>"absolute") ); -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/FortLewis/Algebra/5-1-Linear-functions/MCH1-5-1-41a-Linear-functions.pg b/OpenProblemLibrary/FortLewis/Algebra/5-1-Linear-functions/MCH1-5-1-41a-Linear-functions.pg index 3d9328f9c0..3305fff171 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/5-1-Linear-functions/MCH1-5-1-41a-Linear-functions.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/5-1-Linear-functions/MCH1-5-1-41a-Linear-functions.pg @@ -22,12 +22,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -55,17 +55,17 @@ $slope = Compute("-$b / $c"); Context()->texStrings; BEGIN_TEXT -Put the function \( \displaystyle -f(x) = \frac{$a - $b x}{$c} \) in the form +Put the function \( \displaystyle +f(x) = \frac{$a - $b x}{$c} \) in the form \( f(x) = b + m x \).$BR -Your answer must be exact; use +Your answer must be exact; use \{ helpLink("fractions") \}, not decimals. $PAR -\( f(x) = \) -\{ ans_rule(10) \} \( + \Big( \) -\{ ans_rule(10) \} \( \Big) x \). +\( f(x) = \) +\{ ans_rule(10) \} \( + \Big( \) +\{ ans_rule(10) \} \( \Big) x \). END_TEXT Context()->normalStrings; @@ -73,4 +73,4 @@ ANS( $constant->cmp(tolerance=>"0.001",tolType=>"absolute") ); ANS( $slope->cmp(tolerance=>"0.001",tolType=>"absolute") ); -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/FortLewis/Algebra/5-1-Linear-functions/MCH1-5-1-41b-Linear-functions.pg b/OpenProblemLibrary/FortLewis/Algebra/5-1-Linear-functions/MCH1-5-1-41b-Linear-functions.pg index 31899cf759..03005bf456 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/5-1-Linear-functions/MCH1-5-1-41b-Linear-functions.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/5-1-Linear-functions/MCH1-5-1-41b-Linear-functions.pg @@ -23,12 +23,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -58,15 +58,15 @@ $slope = Compute("$b / $c"); Context()->texStrings; BEGIN_TEXT -Put the function \( \displaystyle -f(x) = \frac{$a + $b x}{$c} + $d \) in the form +Put the function \( \displaystyle +f(x) = \frac{$a + $b x}{$c} + $d \) in the form \( f(x) = b + m x \). $BR $BR -\( f(x) = \) -\{ ans_rule(10) \} \( + \Big( \) -\{ ans_rule(10) \} \( \Big) x \). -\{ AnswerFormatHelp("fractions") \} +\( f(x) = \) +\{ ans_rule(10) \} \( + \Big( \) +\{ ans_rule(10) \} \( \Big) x \). +\{ helpLink("fractions") \} END_TEXT Context()->normalStrings; @@ -74,4 +74,4 @@ ANS( $constant->cmp(tolerance=>"0.001",tolType=>"absolute") ); ANS( $slope->cmp(tolerance=>"0.001",tolType=>"absolute") ); -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/FortLewis/Algebra/5-1-Linear-functions/MCH1-5-1-42-Linear-functions.pg b/OpenProblemLibrary/FortLewis/Algebra/5-1-Linear-functions/MCH1-5-1-42-Linear-functions.pg index 5e2a3df1df..cc56728f88 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/5-1-Linear-functions/MCH1-5-1-42-Linear-functions.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/5-1-Linear-functions/MCH1-5-1-42-Linear-functions.pg @@ -24,12 +24,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -53,16 +53,16 @@ $d = random(2,5,1); Context()->texStrings; BEGIN_TEXT -Give the slope and ${BITALIC}y${EITALIC}-intercept -for the graph of the function \( +Give the slope and ${BITALIC}y${EITALIC}-intercept +for the graph of the function \( f(x) = $a - $b ($c - $d x) \). $BR $BR The slope is \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR The ${BITALIC}y${EITALIC}-intercept is \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/5-1-Linear-functions/MCH1-5-1-42a-Linear-functions.pg b/OpenProblemLibrary/FortLewis/Algebra/5-1-Linear-functions/MCH1-5-1-42a-Linear-functions.pg index d3580263f1..e91ec7ae0c 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/5-1-Linear-functions/MCH1-5-1-42a-Linear-functions.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/5-1-Linear-functions/MCH1-5-1-42a-Linear-functions.pg @@ -23,12 +23,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -56,14 +56,14 @@ $slope = Real("$b * $d"); Context()->texStrings; BEGIN_TEXT -Put the function \( f(x) = $a - $b ($c - $d x) \) in the form +Put the function \( f(x) = $a - $b ($c - $d x) \) in the form \( f(x) = b + m x \). $BR $BR -\( f(x) = \) -\{ ans_rule(10) \} \( + \Big( \) -\{ ans_rule(10) \} \( \Big) x \). -\{ AnswerFormatHelp("fractions") \} +\( f(x) = \) +\{ ans_rule(10) \} \( + \Big( \) +\{ ans_rule(10) \} \( \Big) x \). +\{ helpLink("fractions") \} END_TEXT Context()->normalStrings; @@ -71,4 +71,4 @@ ANS( $constant->cmp(tolerance=>"0.001",tolType=>"absolute") ); ANS( $slope->cmp(tolerance=>"0.001",tolType=>"absolute") ); -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/FortLewis/Algebra/5-1-Linear-functions/MCH1-5-1-43-Linear-functions.pg b/OpenProblemLibrary/FortLewis/Algebra/5-1-Linear-functions/MCH1-5-1-43-Linear-functions.pg index 536177c1a4..94a9a4b1c2 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/5-1-Linear-functions/MCH1-5-1-43-Linear-functions.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/5-1-Linear-functions/MCH1-5-1-43-Linear-functions.pg @@ -23,12 +23,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -56,20 +56,20 @@ $slope = Compute("$a / $b"); Context()->texStrings; BEGIN_TEXT -Give the slope and ${BITALIC}y${EITALIC}-intercept +Give the slope and ${BITALIC}y${EITALIC}-intercept for the graph of the function \( \displaystyle f(x) = \frac{$a x}{$b} \). $BR $BR The slope is \{ ans_rule(20) \} -\{ AnswerFormatHelp("fractions") \} +\{ helpLink("fractions") \} $BR The ${BITALIC}y${EITALIC}-intercept is \{ ans_rule(20) \} -\{ AnswerFormatHelp("fractions") \} +\{ helpLink("fractions") \} END_TEXT Context()->normalStrings; ANS( $slope->cmp(tolerance=>"0.001",tolType=>"absolute") ); ANS( $constant->cmp(tolerance=>"0.001",tolType=>"absolute") ); -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/FortLewis/Algebra/5-1-Linear-functions/MCH1-5-1-43a-Linear-functions.pg b/OpenProblemLibrary/FortLewis/Algebra/5-1-Linear-functions/MCH1-5-1-43a-Linear-functions.pg index 7890cde6d4..c561e29afb 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/5-1-Linear-functions/MCH1-5-1-43a-Linear-functions.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/5-1-Linear-functions/MCH1-5-1-43a-Linear-functions.pg @@ -23,12 +23,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -56,15 +56,15 @@ $slope = Compute("$a / $b"); Context()->texStrings; BEGIN_TEXT -Put the function \( \displaystyle -f(x) = \frac{$a x}{$b} \) in the form +Put the function \( \displaystyle +f(x) = \frac{$a x}{$b} \) in the form \( f(x) = b + m x \). $BR $BR -\( f(x) = \) -\{ ans_rule(10) \} \( + \Big( \) -\{ ans_rule(10) \} \( \Big) x \). -\{ AnswerFormatHelp("fractions") \} +\( f(x) = \) +\{ ans_rule(10) \} \( + \Big( \) +\{ ans_rule(10) \} \( \Big) x \). +\{ helpLink("fractions") \} END_TEXT Context()->normalStrings; @@ -72,4 +72,4 @@ ANS( $constant->cmp(tolerance=>"0.001",tolType=>"absolute") ); ANS( $slope->cmp(tolerance=>"0.001",tolType=>"absolute") ); -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/FortLewis/Algebra/5-2-Linear-expressions/MCH1-5-2-10-Linear-expressions.pg b/OpenProblemLibrary/FortLewis/Algebra/5-2-Linear-expressions/MCH1-5-2-10-Linear-expressions.pg index 443b978c35..f8e49d0c1e 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/5-2-Linear-expressions/MCH1-5-2-10-Linear-expressions.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/5-2-Linear-expressions/MCH1-5-2-10-Linear-expressions.pg @@ -25,12 +25,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -52,16 +52,16 @@ $b = random(2,5,1); Context()->texStrings; BEGIN_TEXT -Give the constant term and the coefficient of \( x \) +Give the constant term and the coefficient of \( x \) in the linear expression \( $a x - x + $b \). $BR $BR The constant term is \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR The coefficient of \( x \) is \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/5-2-Linear-expressions/MCH1-5-2-10a-Linear-expressions.pg b/OpenProblemLibrary/FortLewis/Algebra/5-2-Linear-expressions/MCH1-5-2-10a-Linear-expressions.pg index c3ec2f6e68..29b07da77e 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/5-2-Linear-expressions/MCH1-5-2-10a-Linear-expressions.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/5-2-Linear-expressions/MCH1-5-2-10a-Linear-expressions.pg @@ -23,12 +23,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextLimitedPolynomial.pl", "PGcourse.pl" ); @@ -60,20 +60,20 @@ BEGIN_TEXT in the form \( b + m x \). $BR $BR -\{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ ans_rule(20) \} +\{ helpLink("formulas") \} $BR $BR -(b) Give the constant term and the coefficient of \( x \) +(b) Give the constant term and the coefficient of \( x \) in the linear expression \( - $c x + $b + $a x \). $BR $BR The constant term is \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR The coefficient of \( x \) is \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; @@ -83,4 +83,4 @@ ANS( $f->cmp() ); ANS( Real("$b")->cmp(tolerance=>"0.001",tolType=>"absolute") ); ANS( Real("$d")->cmp(tolerance=>"0.001",tolType=>"absolute") ); -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/FortLewis/Algebra/5-2-Linear-expressions/MCH1-5-2-12-Linear-expressions.pg b/OpenProblemLibrary/FortLewis/Algebra/5-2-Linear-expressions/MCH1-5-2-12-Linear-expressions.pg index 0a2f303a27..b8fbc727ac 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/5-2-Linear-expressions/MCH1-5-2-12-Linear-expressions.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/5-2-Linear-expressions/MCH1-5-2-12-Linear-expressions.pg @@ -25,12 +25,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -52,16 +52,16 @@ $a = random(3,12,1); Context()->texStrings; BEGIN_TEXT -Give the constant term and the coefficient of \( x \) +Give the constant term and the coefficient of \( x \) in the linear expression \( $a x + r x \). $BR $BR The constant term is \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR The coefficient of \( x \) is \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/5-2-Linear-expressions/MCH1-5-2-12a-Linear-expressions.pg b/OpenProblemLibrary/FortLewis/Algebra/5-2-Linear-expressions/MCH1-5-2-12a-Linear-expressions.pg index 17857a1180..cb958e8daf 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/5-2-Linear-expressions/MCH1-5-2-12a-Linear-expressions.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/5-2-Linear-expressions/MCH1-5-2-12a-Linear-expressions.pg @@ -23,12 +23,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -62,16 +62,16 @@ $BR \( \Big) x \) $BR $BR -(b) Give the constant term and the coefficient of \( x \) +(b) Give the constant term and the coefficient of \( x \) in the linear expression \( x r + $b x \). $BR $BR The constant term is \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR The coefficient of \( x \) is \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; @@ -81,4 +81,4 @@ ANS( Real("$a + r")->cmp(tolerance=>"0.001",tolType=>"absolute") ); ANS( Real("0")->cmp(tolerance=>"0.001",tolType=>"absolute") ); ANS( Real("$b + r")->cmp(tolerance=>"0.001",tolType=>"absolute") ); -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/FortLewis/Algebra/5-2-Linear-expressions/MCH1-5-2-14-Linear-expressions.pg b/OpenProblemLibrary/FortLewis/Algebra/5-2-Linear-expressions/MCH1-5-2-14-Linear-expressions.pg index f3c879c637..16269e8142 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/5-2-Linear-expressions/MCH1-5-2-14-Linear-expressions.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/5-2-Linear-expressions/MCH1-5-2-14-Linear-expressions.pg @@ -26,12 +26,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -59,16 +59,16 @@ Context()->operators->undefine("+","-","*"); Context()->texStrings; BEGIN_TEXT -Give the constant term and the coefficient of \( x \) +Give the constant term and the coefficient of \( x \) in the linear expression \( $a[0] - $a[1] (x + $a[2]) + $a[3] ($a[4] x + $a[5]) \). $BR $BR The constant term is \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR The coefficient of \( x \) is \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/5-2-Linear-expressions/MCH1-5-2-14a-Linear-expressions.pg b/OpenProblemLibrary/FortLewis/Algebra/5-2-Linear-expressions/MCH1-5-2-14a-Linear-expressions.pg index 9071bc6083..fd1c94e821 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/5-2-Linear-expressions/MCH1-5-2-14a-Linear-expressions.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/5-2-Linear-expressions/MCH1-5-2-14a-Linear-expressions.pg @@ -24,12 +24,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextLimitedPolynomial.pl", "PGcourse.pl" ); @@ -66,19 +66,19 @@ in the form \( m x + b \). $BR $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR -(b) Give the constant term and the coefficient of \( x \) +(b) Give the constant term and the coefficient of \( x \) in the linear expression \( $a[0] - $a[1] (x + $a[2]) + $a[3] ($a[4] x + $a[5]) \). $BR $BR The constant term is \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR The coefficient of \( x \) is \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; @@ -87,4 +87,4 @@ ANS( $answer->cmp() ); ANS( $answera->cmp(tolerance=>"0.001",tolType=>"absolute") ); ANS( $answerb->cmp(tolerance=>"0.001",tolType=>"absolute") ); -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/FortLewis/Algebra/5-2-Linear-expressions/MCH1-5-2-23a-Linear-expressions.pg b/OpenProblemLibrary/FortLewis/Algebra/5-2-Linear-expressions/MCH1-5-2-23a-Linear-expressions.pg index 375f43dd2e..45b3163750 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/5-2-Linear-expressions/MCH1-5-2-23a-Linear-expressions.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/5-2-Linear-expressions/MCH1-5-2-23a-Linear-expressions.pg @@ -24,13 +24,13 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PGgraphmacros.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "PGcourse.pl" ); @@ -66,7 +66,7 @@ $b1 = list_random(6,8,1); $f[0] = "$m0*x+$b0 for x in <$xmin,$xmax> using color:blue and weight:2"; $f[1] = "$m1*x+$b1 for x in <$xmin,$xmax> using color:red and weight:2"; -plot_functions( $graph, @f); +plot_functions( $graph, @f); # function labels $graph->lb(new Label(0.5,$b0-0.4, "B",'blue','left','bottom')); @@ -94,14 +94,14 @@ ColumnTable( "Find the slope and y-intercept of each of the lines in the figure.". $BR. $BR. -"Line A (in red) has slope ".ans_rule(10).$SPACE.AnswerFormatHelp("numbers"). +"Line A (in red) has slope ".ans_rule(10).$SPACE.helpLink("numbers"). +$BR. +"and y-intercept ".ans_rule(10).$SPACE.helpLink("numbers"). $BR. -"and y-intercept ".ans_rule(10).$SPACE.AnswerFormatHelp("numbers"). -$BR. $BR. -"Line B (in blue) has slope ".ans_rule(10).$SPACE.AnswerFormatHelp("numbers"). +"Line B (in blue) has slope ".ans_rule(10).$SPACE.helpLink("numbers"). $BR. -"and y-intercept ".ans_rule(10).$SPACE.AnswerFormatHelp("numbers"), +"and y-intercept ".ans_rule(10).$SPACE.helpLink("numbers"), image(insertGraph($graph), width => 400, height => 400, tex_size => 700). $BR.$BCENTER."(Click on graph to enlarge)".$ECENTER, indent => 0, separation => 30, valign => "TOP" diff --git a/OpenProblemLibrary/FortLewis/Algebra/5-2-Linear-expressions/MCH1-5-2-23b-Linear-expressions.pg b/OpenProblemLibrary/FortLewis/Algebra/5-2-Linear-expressions/MCH1-5-2-23b-Linear-expressions.pg index 0a771ecd0e..bf4efb3249 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/5-2-Linear-expressions/MCH1-5-2-23b-Linear-expressions.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/5-2-Linear-expressions/MCH1-5-2-23b-Linear-expressions.pg @@ -24,13 +24,13 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PGgraphmacros.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "PGcourse.pl" ); @@ -66,7 +66,7 @@ $b1 = list_random(6,8,1); $f[0] = "$m0*x+$b0 for x in <$xmin,$xmax> using color:blue and weight:2"; $f[1] = "$m1*x+$b1 for x in <$xmin,$xmax> using color:red and weight:2"; -plot_functions( $graph, @f); +plot_functions( $graph, @f); # function labels $graph->lb(new Label(0.5,$b0-0.4, "B",'blue','left','bottom')); @@ -94,10 +94,10 @@ ColumnTable( "Find an equation for of each of the lines in the figure.". $BR. $BR. -"Line A (in red) has equation \( y = \) ".ans_rule(20).$SPACE.AnswerFormatHelp("formulas"). -$BR. +"Line A (in red) has equation \( y = \) ".ans_rule(20).$SPACE.helpLink("formulas"). +$BR. $BR. -"Line B (in blue) has equation \( y = \) ".ans_rule(20).$SPACE.AnswerFormatHelp("formulas"), +"Line B (in blue) has equation \( y = \) ".ans_rule(20).$SPACE.helpLink("formulas"), image(insertGraph($graph), width => 400, height => 400, tex_size => 700). $BR.$BCENTER."(Click on graph to enlarge)".$ECENTER, indent => 0, separation => 30, valign => "TOP" diff --git a/OpenProblemLibrary/FortLewis/Algebra/5-2-Linear-expressions/MCH1-5-2-36-Linear-expressions.pg b/OpenProblemLibrary/FortLewis/Algebra/5-2-Linear-expressions/MCH1-5-2-36-Linear-expressions.pg index bd68dc287f..36d4871dea 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/5-2-Linear-expressions/MCH1-5-2-36-Linear-expressions.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/5-2-Linear-expressions/MCH1-5-2-36-Linear-expressions.pg @@ -24,12 +24,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -53,14 +53,14 @@ $a = random(2,9,1); Context()->texStrings; BEGIN_TEXT -Is the expression \( \displaystyle \frac{a+b}{$a} \) -linear in the variable \( a \)? If it is linear, -enter the slope. If it is not linear, enter +Is the expression \( \displaystyle \frac{a+b}{$a} \) +linear in the variable \( a \)? If it is linear, +enter the slope. If it is not linear, enter ${BITALIC}NO.${EITALIC} $BR $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/5-2-Linear-expressions/MCH1-5-2-40-Linear-expressions.pg b/OpenProblemLibrary/FortLewis/Algebra/5-2-Linear-expressions/MCH1-5-2-40-Linear-expressions.pg index 075c0c198b..b88f760d48 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/5-2-Linear-expressions/MCH1-5-2-40-Linear-expressions.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/5-2-Linear-expressions/MCH1-5-2-40-Linear-expressions.pg @@ -24,12 +24,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -52,14 +52,14 @@ $c = random(2,9,1); Context()->texStrings; BEGIN_TEXT -Is the expression \( \displaystyle a x^2 + $b x + $c \) -linear in the variable \( x \)? If it is linear, -enter the slope. If it is not linear, enter +Is the expression \( \displaystyle a x^2 + $b x + $c \) +linear in the variable \( x \)? If it is linear, +enter the slope. If it is not linear, enter ${BITALIC}NO.${EITALIC} $BR $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/5-2-Linear-expressions/MCH1-5-2-44-Linear-expressions.pg b/OpenProblemLibrary/FortLewis/Algebra/5-2-Linear-expressions/MCH1-5-2-44-Linear-expressions.pg index 0afe7c5390..15bef25b46 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/5-2-Linear-expressions/MCH1-5-2-44-Linear-expressions.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/5-2-Linear-expressions/MCH1-5-2-44-Linear-expressions.pg @@ -24,12 +24,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -56,14 +56,14 @@ $d = random(9,12,1); Context()->texStrings; BEGIN_TEXT -Is the expression \( $a xy + $b x + $c - $d y \) -linear in the variable \( y \)? If it is linear, -enter the slope. If it is not linear, enter +Is the expression \( $a xy + $b x + $c - $d y \) +linear in the variable \( y \)? If it is linear, +enter the slope. If it is not linear, enter ${BITALIC}NO.${EITALIC} $BR $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/5-2-Linear-expressions/MCH1-5-2-44a-Linear-expressions.pg b/OpenProblemLibrary/FortLewis/Algebra/5-2-Linear-expressions/MCH1-5-2-44a-Linear-expressions.pg index 2602027bf4..b803c88174 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/5-2-Linear-expressions/MCH1-5-2-44a-Linear-expressions.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/5-2-Linear-expressions/MCH1-5-2-44a-Linear-expressions.pg @@ -23,12 +23,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -65,14 +65,14 @@ $BR \( \Big) x \). $BR $BR -(b) Is the expression \( $a xy + $b x + $c - $d y \) -linear in the variable \( x \)? If it is linear, -enter the slope. If it is not linear, enter +(b) Is the expression \( $a xy + $b x + $c - $d y \) +linear in the variable \( x \)? If it is linear, +enter the slope. If it is not linear, enter ${BITALIC}NO.${EITALIC} $BR $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; @@ -81,4 +81,4 @@ ANS( Compute("$a k - $d")->cmp() ); ANS( Compute("$a y - $d")->cmp() ); -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/FortLewis/Algebra/5-3-Linear-equations/MCH1-5-3-01-Linear-equations.pg b/OpenProblemLibrary/FortLewis/Algebra/5-3-Linear-equations/MCH1-5-3-01-Linear-equations.pg index 84a7d0eb2c..77fd79be4c 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/5-3-Linear-equations/MCH1-5-3-01-Linear-equations.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/5-3-Linear-equations/MCH1-5-3-01-Linear-equations.pg @@ -24,12 +24,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -57,23 +57,23 @@ $cost2 = $b + $m * $C2; Context()->texStrings; BEGIN_TEXT -The tuition cost for part-time students taking +The tuition cost for part-time students taking \( C \) credits at Stonewall College is given by \( $b + $m C \) dollars. $BR $BR -(a) Find the tuition cost for $C1 credits. -Do not use dollar signs or commas in your answer. +(a) Find the tuition cost for $C1 credits. +Do not use dollar signs or commas in your answer. $BR ${DOLLAR}\{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR $BR (b) If the tuition cost is ${DOLLAR}${cost2}, how -many credits are taken? +many credits are taken? $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/5-3-Linear-equations/MCH1-5-3-03-Linear-equations.pg b/OpenProblemLibrary/FortLewis/Algebra/5-3-Linear-equations/MCH1-5-3-03-Linear-equations.pg index 180c16eaf7..c4f18a1e40 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/5-3-Linear-equations/MCH1-5-3-03-Linear-equations.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/5-3-Linear-equations/MCH1-5-3-03-Linear-equations.pg @@ -25,12 +25,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -71,13 +71,13 @@ $BR (a) Evaluate \( f($t) \). $BR \( f($t) \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("fractions") \} +\{ helpLink("fractions") \} $BR $BR -(b) Solve \( f(t) = $y \). +(b) Solve \( f(t) = $y \). $BR \( t \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("fractions") \} +\{ helpLink("fractions") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/5-3-Linear-equations/MCH1-5-3-03a-Linear-equations.pg b/OpenProblemLibrary/FortLewis/Algebra/5-3-Linear-equations/MCH1-5-3-03a-Linear-equations.pg index 3f7ca3f2c4..0a84968a7a 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/5-3-Linear-equations/MCH1-5-3-03a-Linear-equations.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/5-3-Linear-equations/MCH1-5-3-03a-Linear-equations.pg @@ -22,12 +22,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -67,18 +67,18 @@ BEGIN_TEXT Suppose \( \displaystyle f(t) = \frac{$a t + $b}{$c} \). $BR $BR -(a) The equation \( f(t) = $y \) can be written +(a) The equation \( f(t) = $y \) can be written \{ ans_rule(20) \} \( = $y \). $BR $BR -(b) Solve \( f(t) = $y \). +(b) Solve \( f(t) = $y \). $BR \( t \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("fractions") \} +\{ helpLink("fractions") \} END_TEXT Context()->normalStrings; ANS( $answer1->cmp() ); ANS( $answer2->cmp() ); -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/FortLewis/Algebra/5-3-Linear-equations/MCH1-5-3-10-Linear-equations.pg b/OpenProblemLibrary/FortLewis/Algebra/5-3-Linear-equations/MCH1-5-3-10-Linear-equations.pg index a9b956f2e1..65dc2c0899 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/5-3-Linear-equations/MCH1-5-3-10-Linear-equations.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/5-3-Linear-equations/MCH1-5-3-10-Linear-equations.pg @@ -24,12 +24,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -63,7 +63,7 @@ Solve the equation \( $a - $b y = $c \). $BR $BR \( y \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("fractions") \} +\{ helpLink("fractions") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/5-3-Linear-equations/MCH1-5-3-12-Linear-equations.pg b/OpenProblemLibrary/FortLewis/Algebra/5-3-Linear-equations/MCH1-5-3-12-Linear-equations.pg index cf86f55b92..27ae113708 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/5-3-Linear-equations/MCH1-5-3-12-Linear-equations.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/5-3-Linear-equations/MCH1-5-3-12-Linear-equations.pg @@ -24,12 +24,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -63,7 +63,7 @@ Solve the equation \( \displaystyle $a t + \frac{ $b(t-1) }{ $c } = $d \). $BR $BR \( t \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("fractions") \} +\{ helpLink("fractions") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/5-3-Linear-equations/MCH1-5-3-12a-Linear-equations.pg b/OpenProblemLibrary/FortLewis/Algebra/5-3-Linear-equations/MCH1-5-3-12a-Linear-equations.pg index cf6f5bc61f..8f42321f41 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/5-3-Linear-equations/MCH1-5-3-12a-Linear-equations.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/5-3-Linear-equations/MCH1-5-3-12a-Linear-equations.pg @@ -22,12 +22,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -55,22 +55,22 @@ $answer = Compute("$num / $den"); Context()->texStrings; BEGIN_TEXT -Multiplying both sides of the equation +Multiplying both sides of the equation \( \displaystyle $a t + \frac{ $b(t-1) }{ $c } = $d \) -by -\{ ans_rule(10) \}, +by +\{ ans_rule(10) \}, we can clear the denominator and obtain the equation $BR $BR \{ ans_rule(20) \} = \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR This equation can be solved for $BR $BR \( t \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("fractions") \} +\{ helpLink("fractions") \} END_TEXT Context()->normalStrings; @@ -81,4 +81,4 @@ ANS( Compute("$c * $d")->cmp() ); ANS( $answer->cmp() ); -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/FortLewis/Algebra/5-3-Linear-equations/MCH1-5-3-14-Linear-equations.pg b/OpenProblemLibrary/FortLewis/Algebra/5-3-Linear-equations/MCH1-5-3-14-Linear-equations.pg index 7003bb4d57..9e93f0de16 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/5-3-Linear-equations/MCH1-5-3-14-Linear-equations.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/5-3-Linear-equations/MCH1-5-3-14-Linear-equations.pg @@ -24,12 +24,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -61,7 +61,7 @@ Solve the equation \( \displaystyle $a x + x = $b \). $BR $BR \( x \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("fractions") \} +\{ helpLink("fractions") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/5-3-Linear-equations/MCH1-5-3-16-Linear-equations.pg b/OpenProblemLibrary/FortLewis/Algebra/5-3-Linear-equations/MCH1-5-3-16-Linear-equations.pg index baa5f4fbe5..a90832b9dd 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/5-3-Linear-equations/MCH1-5-3-16-Linear-equations.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/5-3-Linear-equations/MCH1-5-3-16-Linear-equations.pg @@ -24,12 +24,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -62,7 +62,7 @@ Solve the equation \( \displaystyle \frac{$a}{x-$b} - \frac{$c}{1-x} = 0 \). $BR $BR \( x \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("fractions") \} +\{ helpLink("fractions") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/5-3-Linear-equations/MCH1-5-3-16a-Linear-equations.pg b/OpenProblemLibrary/FortLewis/Algebra/5-3-Linear-equations/MCH1-5-3-16a-Linear-equations.pg index 662aba6773..e52d7b5c15 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/5-3-Linear-equations/MCH1-5-3-16a-Linear-equations.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/5-3-Linear-equations/MCH1-5-3-16a-Linear-equations.pg @@ -22,12 +22,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "parserMultiAnswer.pl", "PGcourse.pl" @@ -82,24 +82,24 @@ $multians = MultiAnswer($fac1, $fac2)->with( Context()->texStrings; BEGIN_TEXT -If +If \( \displaystyle \frac{$a}{x-$b} - \frac{$c}{1-x} = 0 \), then \( \displaystyle \frac{$a}{x-$b} = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR -By cross-multiplying in the last equation, we get an +By cross-multiplying in the last equation, we get an equation $BR $BR \{ $multians->ans_rule(20) \} = \{ $multians->ans_rule(20) \}, $BR $BR -which can be solved for +which can be solved for \( x \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("fractions") \} +\{ helpLink("fractions") \} END_TEXT Context()->normalStrings; @@ -109,4 +109,4 @@ ANS( $multians->cmp() ); ANS( $answer->cmp() ); -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/FortLewis/Algebra/5-3-Linear-equations/MCH1-5-3-52-Linear-equations.pg b/OpenProblemLibrary/FortLewis/Algebra/5-3-Linear-equations/MCH1-5-3-52-Linear-equations.pg index f24ee6eb4b..52db7a4896 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/5-3-Linear-equations/MCH1-5-3-52-Linear-equations.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/5-3-Linear-equations/MCH1-5-3-52-Linear-equations.pg @@ -24,12 +24,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserPopUp.pl", "parserImplicitPlane.pl", "PGcourse.pl" @@ -56,21 +56,21 @@ $answer = Compute("NONE"); Context()->texStrings; BEGIN_TEXT -Suppose \( f(t) = $a t + $b \). Does the equation -\( 2 f(t) = f(2t) \) have no solution, one solution, +Suppose \( f(t) = $a t + $b \). Does the equation +\( 2 f(t) = f(2t) \) have no solution, one solution, or infinitely many solutions? $BR \{ $pop->menu() \} $BR $BR -If it has no solution, enter ${BITALIC}NONE.${EITALIC} +If it has no solution, enter ${BITALIC}NONE.${EITALIC} If it has one solution, enter your solution as an equation \( t = a \) for some number \( a \). If it -has infinitely many solutions, enter an equation +has infinitely many solutions, enter an equation \( y = b + m t \) for some numbers \( b \) and \( m \). $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/5-3-Linear-equations/MCH1-5-3-52a-Linear-equations.pg b/OpenProblemLibrary/FortLewis/Algebra/5-3-Linear-equations/MCH1-5-3-52a-Linear-equations.pg index 409cfefdaa..07fb2e6088 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/5-3-Linear-equations/MCH1-5-3-52a-Linear-equations.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/5-3-Linear-equations/MCH1-5-3-52a-Linear-equations.pg @@ -21,12 +21,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserPopUp.pl", "parserImplicitPlane.pl", "PGcourse.pl" @@ -57,7 +57,7 @@ $f2 = Formula("$a (2 t) + $b"); Context()->texStrings; BEGIN_TEXT -Suppose \( f(t) = $a t + $b \). +Suppose \( f(t) = $a t + $b \). $BR $BR (a) Find \( 2 f(t) \) and \( f(2t) \). @@ -68,21 +68,21 @@ $BR $BR $BR (b) Solve the equation \( 2 f(t) = f(2t) \). -Does the equation \( 2 f(t) = f(2t) \) -have no solution, one solution, +Does the equation \( 2 f(t) = f(2t) \) +have no solution, one solution, or infinitely many solutions? $BR \{ $pop->menu() \} $BR $BR -If it has no solution, enter ${BITALIC}NONE.${EITALIC} +If it has no solution, enter ${BITALIC}NONE.${EITALIC} If it has one solution, enter your solution as an equation \( t = a \) for some number \( a \). If it -has infinitely many solutions, enter an equation +has infinitely many solutions, enter an equation \( y = b + m t \) for some numbers \( b \) and \( m \). $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} END_TEXT Context()->normalStrings; @@ -92,4 +92,4 @@ ANS( $f2->cmp() ); ANS( $pop->cmp() ); ANS( $answer->cmp(typeMatch=>ImplicitPlane("y=5t+3")) ); -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/FortLewis/Algebra/5-3-Linear-equations/MCH1-5-3-54-Linear-equations.pg b/OpenProblemLibrary/FortLewis/Algebra/5-3-Linear-equations/MCH1-5-3-54-Linear-equations.pg index a22fddef82..98a6ebbd5c 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/5-3-Linear-equations/MCH1-5-3-54-Linear-equations.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/5-3-Linear-equations/MCH1-5-3-54-Linear-equations.pg @@ -23,12 +23,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserPopUp.pl", "parserImplicitPlane.pl", "PGcourse.pl" @@ -55,21 +55,21 @@ $answer = ImplicitPlane("t=0"); Context()->texStrings; BEGIN_TEXT -Suppose \( f(t) = $a t + $b \). Does the equation -\( f(t) = f(-t) \) have no solution, one solution, +Suppose \( f(t) = $a t + $b \). Does the equation +\( f(t) = f(-t) \) have no solution, one solution, or infinitely many solutions? $BR \{ $pop->menu() \} $BR $BR -If it has no solution, enter ${BITALIC}NONE.${EITALIC} +If it has no solution, enter ${BITALIC}NONE.${EITALIC} If it has one solution, enter your solution as an equation \( t = a \) for some number \( a \). If it -has infinitely many solutions, enter an equation +has infinitely many solutions, enter an equation \( y = b + m t \) for some numbers \( b \) and \( m \). $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/5-3-Linear-equations/MCH1-5-3-54b-Linear-equations.pg b/OpenProblemLibrary/FortLewis/Algebra/5-3-Linear-equations/MCH1-5-3-54b-Linear-equations.pg index ad62a15583..bc220c8846 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/5-3-Linear-equations/MCH1-5-3-54b-Linear-equations.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/5-3-Linear-equations/MCH1-5-3-54b-Linear-equations.pg @@ -23,12 +23,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserPopUp.pl", "parserImplicitPlane.pl", "PGcourse.pl" @@ -57,31 +57,31 @@ $f1 = Formula("-$a t + $b"); Context()->texStrings; BEGIN_TEXT -Suppose \( f(t) = $a t + $b \). +Suppose \( f(t) = $a t + $b \). $BR $BR (a) Find \( f(-t) \). $BR \( f(-t) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR -(b) Does the equation -\( f(t) = f(-t) \) have no solution, one solution, +(b) Does the equation +\( f(t) = f(-t) \) have no solution, one solution, or infinitely many solutions? $BR \{ $pop->menu() \} $BR $BR -If it has no solution, enter ${BITALIC}NONE.${EITALIC} +If it has no solution, enter ${BITALIC}NONE.${EITALIC} If it has one solution, enter your solution as an equation \( t = a \) for some number \( a \). If it -has infinitely many solutions, enter an equation +has infinitely many solutions, enter an equation \( y = b + m t \) for some numbers \( b \) and \( m \). $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} END_TEXT Context()->normalStrings; @@ -90,4 +90,4 @@ ANS( $f1->cmp() ); ANS( $pop->cmp() ); ANS( $answer->cmp(typeMatch=>ImplicitPlane("y=5t+3")) ); -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/FortLewis/Algebra/5-3-Linear-equations/MCH1-5-3-56-Linear-equations.pg b/OpenProblemLibrary/FortLewis/Algebra/5-3-Linear-equations/MCH1-5-3-56-Linear-equations.pg index dcf5ffccc3..be4ea3898a 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/5-3-Linear-equations/MCH1-5-3-56-Linear-equations.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/5-3-Linear-equations/MCH1-5-3-56-Linear-equations.pg @@ -24,12 +24,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserPopUp.pl", "parserImplicitPlane.pl", "PGcourse.pl" @@ -64,21 +64,21 @@ if ($a == 1) { Context()->texStrings; BEGIN_TEXT -Suppose \( $eqn \). Does the equation -\( f(t)+1 = f(t+1) \) have no solution, one solution, +Suppose \( $eqn \). Does the equation +\( f(t)+1 = f(t+1) \) have no solution, one solution, or infinitely many solutions? $BR \{ $pop->menu() \} $BR $BR -If it has no solution, enter ${BITALIC}NONE.${EITALIC} +If it has no solution, enter ${BITALIC}NONE.${EITALIC} If it has one solution, enter your solution as an equation \( t = a \) for some number \( a \). If it -has infinitely many solutions, enter an equation +has infinitely many solutions, enter an equation \( y = b + m t \) for some numbers \( b \) and \( m \). $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/5-3-Linear-equations/MCH1-5-3-56a-Linear-equations.pg b/OpenProblemLibrary/FortLewis/Algebra/5-3-Linear-equations/MCH1-5-3-56a-Linear-equations.pg index e4d30d34ac..a8b12d33dd 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/5-3-Linear-equations/MCH1-5-3-56a-Linear-equations.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/5-3-Linear-equations/MCH1-5-3-56a-Linear-equations.pg @@ -22,12 +22,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserPopUp.pl", "parserImplicitPlane.pl", "PGcourse.pl" @@ -67,35 +67,35 @@ if ($a == 1) { Context()->texStrings; BEGIN_TEXT -Suppose \( $eqn \). +Suppose \( $eqn \). $BR $BR (a) Find \( f(t)+1 \) and \( f(t+1) \). $BR -\( f(t+1) = \) +\( f(t+1) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR -\( f(t)+1 = \) +\( f(t)+1 = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR -(b) Does the equation -\( f(t)+1 = f(t+1) \) have no solution, one solution, +(b) Does the equation +\( f(t)+1 = f(t+1) \) have no solution, one solution, or infinitely many solutions? $BR \{ $pop->menu() \} $BR $BR -If it has no solution, enter ${BITALIC}NONE.${EITALIC} +If it has no solution, enter ${BITALIC}NONE.${EITALIC} If it has one solution, enter your solution as an equation \( t = a \) for some number \( a \). If it -has infinitely many solutions, enter an equation +has infinitely many solutions, enter an equation \( y = b + m t \) for some numbers \( b \) and \( m \). $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} END_TEXT Context()->normalStrings; @@ -105,4 +105,4 @@ ANS( $f2->cmp() ); ANS( $pop->cmp() ); ANS( $answer->cmp(typeMatch=>ImplicitPlane("y=5t+3")) ); -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/FortLewis/Algebra/5-4-Equations-for-lines/MCH1-5-4-02-Equations-for-lines.pg b/OpenProblemLibrary/FortLewis/Algebra/5-4-Equations-for-lines/MCH1-5-4-02-Equations-for-lines.pg index 3f19652a4c..8dad74427f 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/5-4-Equations-for-lines/MCH1-5-4-02-Equations-for-lines.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/5-4-Equations-for-lines/MCH1-5-4-02-Equations-for-lines.pg @@ -23,12 +23,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextLimitedPolynomial.pl", "parserAssignment.pl", "PGcourse.pl" @@ -58,13 +58,13 @@ $answer = Formula("y = ($c / $b) - ($a / $b) * x"); Context()->texStrings; BEGIN_TEXT -Write the linear equation \( $a x + $b y = $c \) +Write the linear equation \( $a x + $b y = $c \) in slope-intercept form \( y = m x + b \). Enter your answer as an equation in slope-intercept form. $BR $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/5-4-Equations-for-lines/MCH1-5-4-02a-Equations-for-lines.pg b/OpenProblemLibrary/FortLewis/Algebra/5-4-Equations-for-lines/MCH1-5-4-02a-Equations-for-lines.pg index 2790bc2dd1..83b96a157f 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/5-4-Equations-for-lines/MCH1-5-4-02a-Equations-for-lines.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/5-4-Equations-for-lines/MCH1-5-4-02a-Equations-for-lines.pg @@ -21,12 +21,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextLimitedPolynomial.pl", "parserAssignment.pl", "PGcourse.pl" @@ -63,21 +63,21 @@ $eqn = Compute("y = m x + b"); Context()->texStrings; BEGIN_TEXT (a) Write an equation for the line through the -point \( (0,b) \) with slope \( m \). Use +point \( (0,b) \) with slope \( m \). Use \( x \) and \( y \) for variable names. $BR $BR \{ ans_rule(30) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} $BR $BR -(b) Write the linear equation \( $a x + $b y = $c \) +(b) Write the linear equation \( $a x + $b y = $c \) in slope-intercept form. Enter your answer as an equation in slope-intercept form. $BR $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} END_TEXT Context()->normalStrings; @@ -85,4 +85,4 @@ ANS( $eqn->cmp() ); ANS( $answer->cmp() ); -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/FortLewis/Algebra/5-4-Equations-for-lines/MCH1-5-4-02b-Equations-for-lines.pg b/OpenProblemLibrary/FortLewis/Algebra/5-4-Equations-for-lines/MCH1-5-4-02b-Equations-for-lines.pg index 0893dccede..8f6a59852b 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/5-4-Equations-for-lines/MCH1-5-4-02b-Equations-for-lines.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/5-4-Equations-for-lines/MCH1-5-4-02b-Equations-for-lines.pg @@ -22,12 +22,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextLimitedPolynomial.pl", "parserAssignment.pl", "PGcourse.pl" @@ -59,21 +59,21 @@ $B = Compute("$c / $b"); Context()->texStrings; BEGIN_TEXT -Write the linear equation \( $a x + $b y = $c \) +Write the linear equation \( $a x + $b y = $c \) in slope-intercept form. Enter your answer as an equation in slope-intercept form. $BR $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} $BR $BR -The slope is \( m = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +The slope is \( m = \) \{ ans_rule(10) \} +\{ helpLink("numbers") \} $BR $BR -The \( y \)-intercept is \( b = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +The \( y \)-intercept is \( b = \) \{ ans_rule(10) \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; @@ -81,4 +81,4 @@ ANS( $answer->cmp() ); ANS( $M->cmp() ); ANS( $B->cmp() ); -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/FortLewis/Algebra/5-4-Equations-for-lines/MCH1-5-4-02c-Equations-for-lines.pg b/OpenProblemLibrary/FortLewis/Algebra/5-4-Equations-for-lines/MCH1-5-4-02c-Equations-for-lines.pg index 741c354ebc..32688cde45 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/5-4-Equations-for-lines/MCH1-5-4-02c-Equations-for-lines.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/5-4-Equations-for-lines/MCH1-5-4-02c-Equations-for-lines.pg @@ -21,12 +21,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextLimitedPolynomial.pl", "parserAssignment.pl", "PGcourse.pl" @@ -57,25 +57,25 @@ $M = Compute("-$a / $b"); Context()->texStrings; BEGIN_TEXT -Write the linear equation \( $a x + $b y = $c \) +Write the linear equation \( $a x + $b y = $c \) in slope-intercept form \( y = m x + b \). Enter your answer as an equation in slope-intercept form. $BR $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} $BR $BR -Suppose \( L \) is a line parallel to -\( $a x + $b y = $c \). What is the slope of -the line \( L \)? +Suppose \( L \) is a line parallel to +\( $a x + $b y = $c \). What is the slope of +the line \( L \)? $BR -Slope = \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +Slope = \{ ans_rule(10) \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; ANS( $answer->cmp() ); ANS( $M->cmp() ); -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/FortLewis/Algebra/5-4-Equations-for-lines/MCH1-5-4-14-Equations-for-lines.pg b/OpenProblemLibrary/FortLewis/Algebra/5-4-Equations-for-lines/MCH1-5-4-14-Equations-for-lines.pg index d39636ee93..ad7d73c9ab 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/5-4-Equations-for-lines/MCH1-5-4-14-Equations-for-lines.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/5-4-Equations-for-lines/MCH1-5-4-14-Equations-for-lines.pg @@ -25,12 +25,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -84,7 +84,7 @@ form \( y = y_0 + m(x-x_0) \). $BR $BR \( y = \) \{ $multians->ans_rule(10) \} + \{ $multians->ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/5-4-Equations-for-lines/MCH1-5-4-14a-Equations-for-lines.pg b/OpenProblemLibrary/FortLewis/Algebra/5-4-Equations-for-lines/MCH1-5-4-14a-Equations-for-lines.pg index b9402fc9ea..d0fb620aca 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/5-4-Equations-for-lines/MCH1-5-4-14a-Equations-for-lines.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/5-4-Equations-for-lines/MCH1-5-4-14a-Equations-for-lines.pg @@ -22,12 +22,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "parserAssignment.pl", "PGcourse.pl" @@ -85,16 +85,16 @@ $multians = MultiAnswer($fac1, $fac2)->with( Context()->texStrings; BEGIN_TEXT -(a) Write an equation for the line through +(a) Write an equation for the line through the point \( (x_0,y_0) \) with slope \( m \) in point-slope form. Enter \( x_0 \) as ${BTT}x0${ETT} -and \( y_0 \) as ${BTT}y0${ETT}. Use +and \( y_0 \) as ${BTT}y0${ETT}. Use \( x \) and \( y \) for the variable names. -Your equation should be of the form \( y = \ldots\). +Your equation should be of the form \( y = \ldots\). $BR $BR -\{ ans_rule(30) \} -\{ AnswerFormatHelp("equations") \} +\{ ans_rule(30) \} +\{ helpLink("equations") \} $BR $BR (b) Write an equation for the line through the point @@ -102,11 +102,11 @@ $BR $BR $BR \( y = \) \{ $multians->ans_rule(10) \} + \{ $multians->ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; ANS( $eqn->cmp() ); ANS( $multians->cmp() ); -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/FortLewis/Algebra/5-4-Equations-for-lines/MCH1-5-4-16-Equations-for-lines.pg b/OpenProblemLibrary/FortLewis/Algebra/5-4-Equations-for-lines/MCH1-5-4-16-Equations-for-lines.pg index a5e8d6f241..6b1a2c412d 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/5-4-Equations-for-lines/MCH1-5-4-16-Equations-for-lines.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/5-4-Equations-for-lines/MCH1-5-4-16-Equations-for-lines.pg @@ -25,12 +25,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -98,7 +98,7 @@ form \( y = y_0 + m(x-x_0) \). $BR $BR \( y = \) \{ $multians->ans_rule(10) \} + \{ $multians->ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/5-4-Equations-for-lines/MCH1-5-4-16a-Equations-for-lines.pg b/OpenProblemLibrary/FortLewis/Algebra/5-4-Equations-for-lines/MCH1-5-4-16a-Equations-for-lines.pg index faed5199db..468da6006c 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/5-4-Equations-for-lines/MCH1-5-4-16a-Equations-for-lines.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/5-4-Equations-for-lines/MCH1-5-4-16a-Equations-for-lines.pg @@ -22,12 +22,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "parserAssignment.pl", "PGcourse.pl" @@ -99,16 +99,16 @@ $slope = Compute("$dy / $dx"); Context()->texStrings; BEGIN_TEXT -(a) Write an equation for the line through +(a) Write an equation for the line through the point \( (x_0,y_0) \) with slope \( m \) in point-slope form. Enter \( x_0 \) as ${BTT}x0${ETT} -and \( y_0 \) as ${BTT}y0${ETT}. Use +and \( y_0 \) as ${BTT}y0${ETT}. Use \( x \) and \( y \) for variable names. -Your equation should be of the form \( y = \ldots\). +Your equation should be of the form \( y = \ldots\). $BR $BR -\{ ans_rule(30) \} -\{ AnswerFormatHelp("equations") \} +\{ ans_rule(30) \} +\{ helpLink("equations") \} $BR $BR (b) What is the slope of the line through the points @@ -116,7 +116,7 @@ $BR $BR $BR \( m = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR $BR (c) Write an equation for the line through the points @@ -125,7 +125,7 @@ form. $BR $BR \( y = \) \{ $multians->ans_rule(10) \} + \{ $multians->ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; @@ -136,4 +136,4 @@ ANS( $slope->cmp() ); ANS( $multians->cmp() ); -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/FortLewis/Algebra/5-4-Equations-for-lines/MCH1-5-4-20-Equations-for-lines.pg b/OpenProblemLibrary/FortLewis/Algebra/5-4-Equations-for-lines/MCH1-5-4-20-Equations-for-lines.pg index 1656d59072..e116026313 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/5-4-Equations-for-lines/MCH1-5-4-20-Equations-for-lines.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/5-4-Equations-for-lines/MCH1-5-4-20-Equations-for-lines.pg @@ -25,12 +25,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -80,12 +80,12 @@ $multians = MultiAnswer($fac1, $fac2)->with( Context()->texStrings; BEGIN_TEXT Write an equation for the line through the point -\( ($x,$y) \) and parallel to the line \( y = $m x - $b \) +\( ($x,$y) \) and parallel to the line \( y = $m x - $b \) in point-slope form \( y = y_0 + m(x-x_0) \). $BR $BR \( y = \) \{ $multians->ans_rule(10) \} + \{ $multians->ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/5-4-Equations-for-lines/MCH1-5-4-20a-Equations-for-lines.pg b/OpenProblemLibrary/FortLewis/Algebra/5-4-Equations-for-lines/MCH1-5-4-20a-Equations-for-lines.pg index 9c58a001b0..2767c34059 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/5-4-Equations-for-lines/MCH1-5-4-20a-Equations-for-lines.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/5-4-Equations-for-lines/MCH1-5-4-20a-Equations-for-lines.pg @@ -22,12 +22,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "parserAssignment.pl", "PGcourse.pl" @@ -87,33 +87,33 @@ $slope = Compute("$m"); Context()->texStrings; BEGIN_TEXT -(a) Write an equation for the line through +(a) Write an equation for the line through the point \( (x_0,y_0) \) with slope \( m \) in point-slope form. Enter \( x_0 \) as ${BTT}x0${ETT} -and \( y_0 \) as ${BTT}y0${ETT}. Use +and \( y_0 \) as ${BTT}y0${ETT}. Use \( x \) and \( y \) for variable names. -Your equation should be of the form \( y = \ldots\). +Your equation should be of the form \( y = \ldots\). $BR $BR -\{ ans_rule(30) \} -\{ AnswerFormatHelp("equations") \} +\{ ans_rule(30) \} +\{ helpLink("equations") \} $BR $BR -(b) What is the slope of any line parallel +(b) What is the slope of any line parallel to the line \( y = $m x - $b \)? $BR $BR \( m = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR $BR (c) Write an equation for the line through the point -\( ($x,$y) \) and parallel to the line \( y = $m x - $b \) +\( ($x,$y) \) and parallel to the line \( y = $m x - $b \) in point-slope form. $BR $BR \( y = \) \{ $multians->ans_rule(10) \} + \{ $multians->ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; @@ -121,4 +121,4 @@ ANS( $eqn->cmp() ); ANS( $slope->cmp() ); ANS( $multians->cmp() ); -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/FortLewis/Algebra/5-4-Equations-for-lines/MCH1-5-4-56-Equations-for-lines.pg b/OpenProblemLibrary/FortLewis/Algebra/5-4-Equations-for-lines/MCH1-5-4-56-Equations-for-lines.pg index f751cbe76c..1a74e70878 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/5-4-Equations-for-lines/MCH1-5-4-56-Equations-for-lines.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/5-4-Equations-for-lines/MCH1-5-4-56-Equations-for-lines.pg @@ -22,12 +22,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "alignedChoice.pl", "contextLimitedPolynomial.pl", "parserAssignment.pl", @@ -57,14 +57,14 @@ $answer = Formula("y = $m x + $b"); Context()->texStrings; BEGIN_TEXT -Write the equation for the line -\( y - $y = $m (x - $x) \) in the form +Write the equation for the line +\( y - $y = $m (x - $x) \) in the form \( y = m x + b \), and enter your answer in this form. $BR $BR -\{ ans_rule(30) \} -\{ AnswerFormatHelp("equations") \} +\{ ans_rule(30) \} +\{ helpLink("equations") \} END_TEXT Context()->normalStrings; @@ -72,5 +72,5 @@ $showPartialCorrectAnswers = 1; ANS( $answer->cmp() ); -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/FortLewis/Algebra/5-4-Equations-for-lines/MCH1-5-4-56a-Equations-for-lines.pg b/OpenProblemLibrary/FortLewis/Algebra/5-4-Equations-for-lines/MCH1-5-4-56a-Equations-for-lines.pg index 0260f426c6..ffb16cdc64 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/5-4-Equations-for-lines/MCH1-5-4-56a-Equations-for-lines.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/5-4-Equations-for-lines/MCH1-5-4-56a-Equations-for-lines.pg @@ -23,12 +23,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "alignedChoice.pl", "contextLimitedPolynomial.pl", "parserAssignment.pl", @@ -58,14 +58,14 @@ $answer = Formula("y = $m x + $b"); Context()->texStrings; BEGIN_TEXT -Write the equation for the line +Write the equation for the line \( y - $y = $m (x - $x) \) in the slope-intercept form, and enter your answer in this form. $BR $BR -\{ ans_rule(30) \} -\{ AnswerFormatHelp("equations") \} +\{ ans_rule(30) \} +\{ helpLink("equations") \} END_TEXT Context()->normalStrings; @@ -73,5 +73,5 @@ $showPartialCorrectAnswers = 1; ANS( $answer->cmp() ); -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/FortLewis/Algebra/5-4-Equations-for-lines/MCH1-5-4-58-Equations-for-lines.pg b/OpenProblemLibrary/FortLewis/Algebra/5-4-Equations-for-lines/MCH1-5-4-58-Equations-for-lines.pg index a8cfa97fcf..c0e6bccfc0 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/5-4-Equations-for-lines/MCH1-5-4-58-Equations-for-lines.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/5-4-Equations-for-lines/MCH1-5-4-58-Equations-for-lines.pg @@ -24,12 +24,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextLimitedPolynomial.pl", "parserAssignment.pl", "PGcourse.pl" @@ -59,13 +59,13 @@ $answer = Compute("y = (-$a/$b) x + $c/$b"); Context()->texStrings; BEGIN_TEXT -Write the equation for the line -\( $a x + $b y = $c \) in the form +Write the equation for the line +\( $a x + $b y = $c \) in the form \( y = m x + b \), and enter it in this form. $BR $BR \{ ans_rule(30) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/5-4-Equations-for-lines/MCH1-5-4-58a-Equations-for-lines.pg b/OpenProblemLibrary/FortLewis/Algebra/5-4-Equations-for-lines/MCH1-5-4-58a-Equations-for-lines.pg index 40c65ff792..fd387e2b10 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/5-4-Equations-for-lines/MCH1-5-4-58a-Equations-for-lines.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/5-4-Equations-for-lines/MCH1-5-4-58a-Equations-for-lines.pg @@ -22,12 +22,12 @@ ############################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextLimitedPolynomial.pl", "parserAssignment.pl", "PGcourse.pl" @@ -57,13 +57,13 @@ $answer = Compute("y = (-$a/$b) x + $c/$b"); Context()->texStrings; BEGIN_TEXT -Write the equation for the line -\( $a x + $b y = $c \) in the form +Write the equation for the line +\( $a x + $b y = $c \) in the form slope-intercept form, and enter it in this form. $BR $BR \{ ans_rule(30) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} END_TEXT Context()->normalStrings; @@ -71,4 +71,4 @@ $showPartialCorrectAnswers = 1; ANS( $answer->cmp() ); -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/FortLewis/Algebra/5-5-Linear-modeling/MCH1-5-5-01a-Linear-modeling.pg b/OpenProblemLibrary/FortLewis/Algebra/5-5-Linear-modeling/MCH1-5-5-01a-Linear-modeling.pg index bf8225931c..08993cd9a1 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/5-5-Linear-modeling/MCH1-5-5-01a-Linear-modeling.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/5-5-Linear-modeling/MCH1-5-5-01a-Linear-modeling.pg @@ -29,7 +29,7 @@ loadMacros( "PGchoicemacros.pl", "MathObjects.pl", "parserPopUp.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -63,31 +63,31 @@ BEGIN_TEXT (a) Find the slope of the line connecting the point \( ($x[0],$y[0]) \) to the point \( ($x[1],$y[1]) \). $BR -Slope = \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +Slope = \{ ans_rule(20) \} +\{ helpLink("numbers") \} $BR $BR (b) Find the slope of the line connecting the point \( ($x[1],$y[1]) \) to the point \( ($x[2],$y[2]) \). $BR Slope = \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR $BR (c) Find the slope of the line connecting the point \( ($x[2],$y[2]) \) to the point \( ($x[3],$y[3]) \). $BR Slope = \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR $BR -(d) +(d) Could the table below represent a linear function? \{ $popup->menu() \} $BR $BR $BCENTER -\{ +\{ begintable(2). row( $SPACE."\(x \)".$SPACE, $SPACE."\( y \)".$SPACE ). row( $SPACE."$x[0]".$SPACE, $SPACE."$y[0]".$SPACE ). @@ -99,13 +99,13 @@ endtable(); $ECENTER $BR $BR -(e) If the table could represent a linear function, -give a formula for the linear function. If it is not +(e) If the table could represent a linear function, +give a formula for the linear function. If it is not a linear function, enter ${BITALIC}NONE${EITALIC}. $BR -\( y = \) +\( y = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; @@ -121,4 +121,4 @@ ANS( $popup->cmp() ); ANS( $f->cmp() ); -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/FortLewis/Algebra/5-5-Linear-modeling/MCH1-5-5-01c-Linear-modeling.pg b/OpenProblemLibrary/FortLewis/Algebra/5-5-Linear-modeling/MCH1-5-5-01c-Linear-modeling.pg index f36049c97a..0f9ca057e4 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/5-5-Linear-modeling/MCH1-5-5-01c-Linear-modeling.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/5-5-Linear-modeling/MCH1-5-5-01c-Linear-modeling.pg @@ -30,7 +30,7 @@ loadMacros( "PGchoicemacros.pl", "MathObjects.pl", "parserPopUp.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -64,31 +64,31 @@ BEGIN_TEXT (a) Find the slope of the line connecting the point \( ($x[0],$y[0]) \) to the point \( ($x[1],$y[1]) \). $BR -Slope = \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +Slope = \{ ans_rule(20) \} +\{ helpLink("numbers") \} $BR $BR (b) Find the slope of the line connecting the point \( ($x[0],$y[0]) \) to the point \( ($x[2],$y[2]) \). $BR Slope = \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR $BR (c) Find the slope of the line connecting the point \( ($x[0],$y[0]) \) to the point \( ($x[3],$y[3]) \). $BR Slope = \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR $BR -(d) +(d) Could the table below represent a linear function? \{ $popup->menu() \} $BR $BR $BCENTER -\{ +\{ begintable(2). row( $SPACE."\(x \)".$SPACE, $SPACE."\( y \)".$SPACE ). row( $SPACE."$x[0]".$SPACE, $SPACE."$y[0]".$SPACE ). @@ -100,13 +100,13 @@ endtable(); $ECENTER $BR $BR -(e) If the table could represent a linear function, -give a formula for the linear function. If it is not +(e) If the table could represent a linear function, +give a formula for the linear function. If it is not a linear function, enter ${BITALIC}NONE${EITALIC}. $BR -\( y = \) +\( y = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; @@ -122,4 +122,4 @@ ANS( $popup->cmp() ); ANS( $f->cmp() ); -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/FortLewis/Algebra/5-5-Linear-modeling/MCH1-5-5-01d-Linear-modeling.pg b/OpenProblemLibrary/FortLewis/Algebra/5-5-Linear-modeling/MCH1-5-5-01d-Linear-modeling.pg index 694b8e4409..9e0f0ab411 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/5-5-Linear-modeling/MCH1-5-5-01d-Linear-modeling.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/5-5-Linear-modeling/MCH1-5-5-01d-Linear-modeling.pg @@ -29,7 +29,7 @@ loadMacros( "PGchoicemacros.pl", "MathObjects.pl", "parserPopUp.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -63,31 +63,31 @@ BEGIN_TEXT (a) Find the slope of the line connecting the point \( ($x[0],$y[0]) \) to the point \( ($x[1],$y[1]) \). $BR -Slope = \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +Slope = \{ ans_rule(20) \} +\{ helpLink("numbers") \} $BR $BR (b) Find the slope of the line connecting the point \( ($x[1],$y[1]) \) to the point \( ($x[2],$y[2]) \). $BR Slope = \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR $BR (c) Find the slope of the line connecting the point \( ($x[2],$y[2]) \) to the point \( ($x[3],$y[3]) \). $BR Slope = \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR $BR -(d) +(d) Could the table below represent a linear function? \{ $popup->menu() \} $BR $BR $BCENTER -\{ +\{ begintable(2). row( $SPACE."\(x \)".$SPACE, $SPACE."\( y \)".$SPACE ). row( $SPACE."$x[0]".$SPACE, $SPACE."$y[0]".$SPACE ). @@ -99,13 +99,13 @@ endtable(); $ECENTER $BR $BR -(e) If the table could represent a linear function, -give a formula for the linear function. If it is not +(e) If the table could represent a linear function, +give a formula for the linear function. If it is not a linear function, enter ${BITALIC}NONE${EITALIC}. $BR -\( y = \) +\( y = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; @@ -121,4 +121,4 @@ ANS( $popup->cmp() ); ANS( $f->cmp() ); -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/FortLewis/Algebra/5-5-Linear-modeling/MCH1-5-5-08-Linear-modeling.pg b/OpenProblemLibrary/FortLewis/Algebra/5-5-Linear-modeling/MCH1-5-5-08-Linear-modeling.pg index dda6369f04..5baa279809 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/5-5-Linear-modeling/MCH1-5-5-08-Linear-modeling.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/5-5-Linear-modeling/MCH1-5-5-08-Linear-modeling.pg @@ -29,7 +29,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -47,8 +47,8 @@ $m = random(2,4,1); $f = Formula("$b + $m * x"); @x = ("0","2","10","20"); -foreach my $i (0..3) { - $F[$i] = $b + $m * $x[$i]; +foreach my $i (0..3) { + $F[$i] = $b + $m * $x[$i]; $x[$i] = $SPACE.$x[$i].$SPACE; $F[$i] = $SPACE.$F[$i].$SPACE; } @@ -60,7 +60,7 @@ $table = begintable(5).row("$SPACE \(x = \) $SPACE", @x).row("$SPACE \(y = \) $S BEGIN_TEXT Could the table represent the values of a linear -function? If it could, give a formula. If not, +function? If it could, give a formula. If not, enter ${BITALIC}NONE.${EITALIC} $PAR $BCENTER @@ -69,7 +69,7 @@ $ECENTER $PAR \( y = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/5-5-Linear-modeling/MCH1-5-5-10-Linear-modeling.pg b/OpenProblemLibrary/FortLewis/Algebra/5-5-Linear-modeling/MCH1-5-5-10-Linear-modeling.pg index a01b83f650..18ba5a001e 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/5-5-Linear-modeling/MCH1-5-5-10-Linear-modeling.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/5-5-Linear-modeling/MCH1-5-5-10-Linear-modeling.pg @@ -30,7 +30,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserImplicitPlane.pl", "parserMultiAnswer.pl", "PGgraphmacros.pl", @@ -68,7 +68,7 @@ $multians = MultiAnswer($w, $d)->with( if ( $f1stu<=0 || $f2stu<=0 ) { $self->setMessage(1,'Both w and d must be positive.'); return 0; - } + } if ( ($speedwalk * $f1stu + $speeddrive * $f2stu) == 60 ) { return 1; } else { @@ -127,41 +127,41 @@ BEGIN_TEXT \{ ColumnTable( "Suppose you walk for \( w \) hours at \( $speedwalk \) -miles per hour and then drive a car -for \( d \) hours at \( $speeddrive \) miles per hour, +miles per hour and then drive a car +for \( d \) hours at \( $speeddrive \) miles per hour, covering a total distance of 60 miles.". $BR. $BR. -"(a) Write a constraint equation that relates the +"(a) Write a constraint equation that relates the time spent walking and driving to the total distance covered.". $BR. ans_rule(20).$SPACE. -AnswerFormatHelp("equations"). +helpLink("equations"). $BR. $BR. -"(b) If you only walk and do not drive, how much time +"(b) If you only walk and do not drive, how much time do you spend walking?". $BR. "\( w \) = ".ans_rule(10)." hours ". -AnswerFormatHelp("numbers"). +helpLink("numbers"). $BR. $BR. -"(c) If you only drive and do not walk, how much time +"(c) If you only drive and do not walk, how much time do you spend driving?". $BR. "\( d \) = ".ans_rule(10)." hours ". -AnswerFormatHelp("numbers"). +helpLink("numbers"). $BR. $BR. "(d) Find a solution to your equation in part (a) that has spends some time driving and some time walking.". $BR. "\( w \) = ".$multians->ans_rule(10)." hours ". -AnswerFormatHelp("numbers"). +helpLink("numbers"). $BR. "\( d \) = ".$multians->ans_rule(10)." hours ". -AnswerFormatHelp("numbers"). +helpLink("numbers"). $BR. $BR. "(e) On a piece of paper, sketch a graph your equation diff --git a/OpenProblemLibrary/FortLewis/Algebra/5-5-Linear-modeling/MCH1-5-5-12-Linear-modeling.pg b/OpenProblemLibrary/FortLewis/Algebra/5-5-Linear-modeling/MCH1-5-5-12-Linear-modeling.pg index 91fca83209..3ad55f717f 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/5-5-Linear-modeling/MCH1-5-5-12-Linear-modeling.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/5-5-Linear-modeling/MCH1-5-5-12-Linear-modeling.pg @@ -29,7 +29,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserImplicitPlane.pl", "parserMultiAnswer.pl", "PGgraphmacros.pl", @@ -68,7 +68,7 @@ $multians = MultiAnswer($w, $d)->with( if ( $f1stu<=0 || $f2stu<=0 ) { $self->setMessage(1,'Both w and d must be positive.'); return 0; - } + } if ( ($speedwalk * $f1stu + $speeddrive * $f2stu) == $totaldistance ) { return 1; } else { @@ -127,41 +127,41 @@ BEGIN_TEXT \{ ColumnTable( "Suppose you walk for \( w \) hours at \( $speedwalk \) -miles per hour and then canoe -for \( c \) hours at \( $speeddrive \) miles per hour, +miles per hour and then canoe +for \( c \) hours at \( $speeddrive \) miles per hour, covering a total distance of \( $totaldistance \) miles.". $BR. $BR. -"(a) Write a constraint equation that relates the +"(a) Write a constraint equation that relates the time spent walking and canoeing to the total distance covered.". $BR. ans_rule(20).$SPACE. -AnswerFormatHelp("equations"). +helpLink("equations"). $BR. $BR. -"(b) If you only walk and do not canoe, how much time +"(b) If you only walk and do not canoe, how much time do you spend walking?". $BR. "\( w \) = ".ans_rule(10)." hours ". -AnswerFormatHelp("numbers"). +helpLink("numbers"). $BR. $BR. -"(c) If you only canoe and do not walk, how much time +"(c) If you only canoe and do not walk, how much time do you spend canoeing?". $BR. "\( c \) = ".ans_rule(10)." hours ". -AnswerFormatHelp("numbers"). +helpLink("numbers"). $BR. $BR. "(d) Find a solution to your equation in part (a) that has spends some time canoeing and some time walking.". $BR. "\( w \) = ".$multians->ans_rule(10)." hours ". -AnswerFormatHelp("numbers"). +helpLink("numbers"). $BR. "\( c \) = ".$multians->ans_rule(10)." hours ". -AnswerFormatHelp("numbers"). +helpLink("numbers"). $BR. $BR. "(e) On a piece of paper, sketch a graph your equation diff --git a/OpenProblemLibrary/FortLewis/Algebra/5-5-Linear-modeling/MCH1-5-5-19-Linear-modeling.pg b/OpenProblemLibrary/FortLewis/Algebra/5-5-Linear-modeling/MCH1-5-5-19-Linear-modeling.pg index 1d08800ec2..a7bbe5b225 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/5-5-Linear-modeling/MCH1-5-5-19-Linear-modeling.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/5-5-Linear-modeling/MCH1-5-5-19-Linear-modeling.pg @@ -29,7 +29,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserImplicitPlane.pl", "PGcourse.pl" ); @@ -57,17 +57,17 @@ $answer = ImplicitPlane("$arabicayield * a + $robustayield * r = $totalyield"); BEGIN_TEXT The coffee variety ${BITALIC}Arabica${EITALIC} yields about $arabicayield kg of coffee beans per hectare, -while ${BITALIC}Robusta${EITALIC} yields about -$robustayield kg per hectare. Suppose that a +while ${BITALIC}Robusta${EITALIC} yields about +$robustayield kg per hectare. Suppose that a plantation has \( a \) hectares of ${BITALIC}Arabica${EITALIC} -and \( r \) hectares of ${BITALIC}Robusta.${EITALIC} -Write an equation relating \( a \) and \( r \) if the -plantation yields $totalyield kg of coffee. Do +and \( r \) hectares of ${BITALIC}Robusta.${EITALIC} +Write an equation relating \( a \) and \( r \) if the +plantation yields $totalyield kg of coffee. Do not enter any commas or units in your answer. $BR $BR \{ ans_rule(30) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/5-5-Linear-modeling/MCH1-5-5-20-Linear-modeling.pg b/OpenProblemLibrary/FortLewis/Algebra/5-5-Linear-modeling/MCH1-5-5-20-Linear-modeling.pg index 59aa69632a..3cf5c6b0c1 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/5-5-Linear-modeling/MCH1-5-5-20-Linear-modeling.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/5-5-Linear-modeling/MCH1-5-5-20-Linear-modeling.pg @@ -29,7 +29,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserImplicitPlane.pl", "PGcourse.pl" ); @@ -60,20 +60,20 @@ $answer = ImplicitPlane("$arabicaprice * $arabicayield * a + $robustaprice * $ro BEGIN_TEXT The coffee variety ${BITALIC}Arabica${EITALIC} yields about $arabicayield kg of coffee beans per hectare, -while ${BITALIC}Robusta${EITALIC} yields about -$robustayield kg per hectare. -Suppose the world market price is ${DOLLAR}$arabicaprice +while ${BITALIC}Robusta${EITALIC} yields about +$robustayield kg per hectare. +Suppose the world market price is ${DOLLAR}$arabicaprice per kg for ${BITALIC}Arabica${EITALIC} -and ${DOLLAR}$robustaprice per kg for ${BITALIC}Robusta.${EITALIC} +and ${DOLLAR}$robustaprice per kg for ${BITALIC}Robusta.${EITALIC} If a plantation has \( a \) hectares of ${BITALIC}Arabica${EITALIC} and \( r \) hectares of ${BITALIC}Robusta,${EITALIC} -write an equation relating \( a \) and \( r \) if the -plantation produces coffee worth ${DOLLAR}${totalprice}. Do +write an equation relating \( a \) and \( r \) if the +plantation produces coffee worth ${DOLLAR}${totalprice}. Do not enter any commas, dollar signs, or units in your answer. $BR $BR \{ ans_rule(40) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/5-5-Linear-modeling/chickens-and-pigs.pg b/OpenProblemLibrary/FortLewis/Algebra/5-5-Linear-modeling/chickens-and-pigs.pg index 3ce1af62cd..64f4422538 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/5-5-Linear-modeling/chickens-and-pigs.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/5-5-Linear-modeling/chickens-and-pigs.pg @@ -27,7 +27,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserImplicitPlane.pl", "PGcourse.pl" ); @@ -56,7 +56,7 @@ $answerb = Compute("$p"); BEGIN_TEXT A barnyard is full of chickens and pigs, and the total -number of chicken feet and pig feet is \( $f \). +number of chicken feet and pig feet is \( $f \). $BR $BR (a) If there are \( c \) chickens and \( p \) pigs in the @@ -64,16 +64,16 @@ barnyard, write an equation relating the number of chickens and pigs to the total number of feet in the barnyard. $BR $BR -\{ ans_rule(30) \} -\{ AnswerFormatHelp("equations") \} +\{ ans_rule(30) \} +\{ helpLink("equations") \} $BR $BR (b) If there are \( $c \) chickens, how many pigs are there? $BR $BR -Number of pigs = -\{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +Number of pigs = +\{ ans_rule(20) \} +\{ helpLink("numbers") \} END_TEXT @@ -85,4 +85,4 @@ $showPartialCorrectAnswers = 1; ANS( $answera->cmp() ); ANS( $answerb->cmp() ); -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/FortLewis/Algebra/5-6-Linear-systems/MCH1-5-6-02-Linear-systems.pg b/OpenProblemLibrary/FortLewis/Algebra/5-6-Linear-systems/MCH1-5-6-02-Linear-systems.pg index c47c07c58a..874ca33de2 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/5-6-Linear-systems/MCH1-5-6-02-Linear-systems.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/5-6-Linear-systems/MCH1-5-6-02-Linear-systems.pg @@ -29,7 +29,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -86,17 +86,17 @@ $BCENTER \left\lbrace \begin{array}{rcl} $top & = & $e \\ -$bot & = & $f +$bot & = & $f \end{array} \right. \) $ECENTER $BR \( x \) = \{ ans_rule(10) \} -\{ AnswerFormatHelp("fractions") \} +\{ helpLink("fractions") \} $BR \( y \) = \{ ans_rule(10) \} -\{ AnswerFormatHelp("fractions") \} +\{ helpLink("fractions") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/5-6-Linear-systems/MCH1-5-6-04-Linear-systems.pg b/OpenProblemLibrary/FortLewis/Algebra/5-6-Linear-systems/MCH1-5-6-04-Linear-systems.pg index 8db84e7b8e..0f9a6c20d4 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/5-6-Linear-systems/MCH1-5-6-04-Linear-systems.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/5-6-Linear-systems/MCH1-5-6-04-Linear-systems.pg @@ -28,7 +28,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -84,17 +84,17 @@ $BCENTER \left\lbrace \begin{array}{l} x = $top \\ -$bot = $f +$bot = $f \end{array} \right. \) $ECENTER $BR \( x \) = \{ ans_rule(10) \} -\{ AnswerFormatHelp("fractions") \} +\{ helpLink("fractions") \} $BR \( y \) = \{ ans_rule(10) \} -\{ AnswerFormatHelp("fractions") \} +\{ helpLink("fractions") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/5-6-Linear-systems/MCH1-5-6-08-Linear-systems.pg b/OpenProblemLibrary/FortLewis/Algebra/5-6-Linear-systems/MCH1-5-6-08-Linear-systems.pg index b537772444..4ce53d660d 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/5-6-Linear-systems/MCH1-5-6-08-Linear-systems.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/5-6-Linear-systems/MCH1-5-6-08-Linear-systems.pg @@ -29,7 +29,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -86,17 +86,17 @@ $BCENTER \left\lbrace \begin{array}{rcl} $top & = & $e \\ -$bot & = & $f +$bot & = & $f \end{array} \right. \) $ECENTER $BR \( r \) = \{ ans_rule(10) \} -\{ AnswerFormatHelp("fractions") \} +\{ helpLink("fractions") \} $BR \( s \) = \{ ans_rule(10) \} -\{ AnswerFormatHelp("fractions") \} +\{ helpLink("fractions") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/5-6-Linear-systems/MCH1-5-6-12-Linear-systems.pg b/OpenProblemLibrary/FortLewis/Algebra/5-6-Linear-systems/MCH1-5-6-12-Linear-systems.pg index 556d7eff41..1256792b10 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/5-6-Linear-systems/MCH1-5-6-12-Linear-systems.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/5-6-Linear-systems/MCH1-5-6-12-Linear-systems.pg @@ -29,7 +29,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -86,17 +86,17 @@ $BCENTER \left\lbrace \begin{array}{lcr} $top & = & $e \\ -$bot & = & $f +$bot & = & $f \end{array} \right. \) $ECENTER $BR \( r \) = \{ ans_rule(10) \} -\{ AnswerFormatHelp("fractions") \} +\{ helpLink("fractions") \} $BR \( s \) = \{ ans_rule(10) \} -\{ AnswerFormatHelp("fractions") \} +\{ helpLink("fractions") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/5-6-Linear-systems/MCH1-5-6-22-Linear-systems.pg b/OpenProblemLibrary/FortLewis/Algebra/5-6-Linear-systems/MCH1-5-6-22-Linear-systems.pg index cfc01e2b87..fca6d85ddc 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/5-6-Linear-systems/MCH1-5-6-22-Linear-systems.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/5-6-Linear-systems/MCH1-5-6-22-Linear-systems.pg @@ -28,7 +28,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGgraphmacros.pl", "unionTables.pl", @@ -111,9 +111,9 @@ given that line \( A \), in red, has equation \( y = x + $e \) and line \( B \), in blue, has equation \( 2 x + 3 y = $f \).". $BR. $BR. -"\( x \) = ".ans_rule(10).$SPACE.AnswerFormatHelp("fractions"). +"\( x \) = ".ans_rule(10).$SPACE.helpLink("fractions"). $BR. -"\( y \) = ".ans_rule(10).$SPACE.AnswerFormatHelp("fractions"), +"\( y \) = ".ans_rule(10).$SPACE.helpLink("fractions"), image(insertGraph($graph), width => 400, height => 400, tex_size => 700). $BR.$BCENTER."(Click on graph to enlarge)".$ECENTER, indent => 0, separation => 30, valign => "TOP" diff --git a/OpenProblemLibrary/FortLewis/Algebra/5-6-Linear-systems/MCH1-5-6-34-Linear-systems.pg b/OpenProblemLibrary/FortLewis/Algebra/5-6-Linear-systems/MCH1-5-6-34-Linear-systems.pg index 819996fe7c..99088d03dd 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/5-6-Linear-systems/MCH1-5-6-34-Linear-systems.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/5-6-Linear-systems/MCH1-5-6-34-Linear-systems.pg @@ -29,7 +29,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -85,17 +85,17 @@ $BCENTER \left\lbrace \begin{array}{rcl} $top & = & $e \\ -$bot & = & $f +$bot & = & $f \end{array} \right. \) $ECENTER $BR \( x \) = \{ ans_rule(10) \} -\{ AnswerFormatHelp("fractions") \} +\{ helpLink("fractions") \} $BR \( y \) = \{ ans_rule(10) \} -\{ AnswerFormatHelp("fractions") \} +\{ helpLink("fractions") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/5-6-Linear-systems/MCH1-5-6-38-Linear-systems.pg b/OpenProblemLibrary/FortLewis/Algebra/5-6-Linear-systems/MCH1-5-6-38-Linear-systems.pg index be81eb2c3e..3e5b872a21 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/5-6-Linear-systems/MCH1-5-6-38-Linear-systems.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/5-6-Linear-systems/MCH1-5-6-38-Linear-systems.pg @@ -29,7 +29,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -85,17 +85,17 @@ $BCENTER \left\lbrace \begin{array}{rcl} $top & = & $e \\ -$bot & = & $f +$bot & = & $f \end{array} \right. \) $ECENTER $BR \( a \) = \{ ans_rule(10) \} -\{ AnswerFormatHelp("fractions") \} +\{ helpLink("fractions") \} $BR \( b \) = \{ ans_rule(10) \} -\{ AnswerFormatHelp("fractions") \} +\{ helpLink("fractions") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/5-6-Linear-systems/MCH1-5-6-40-Linear-systems.pg b/OpenProblemLibrary/FortLewis/Algebra/5-6-Linear-systems/MCH1-5-6-40-Linear-systems.pg index fbccb96b90..ade8cfe1c8 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/5-6-Linear-systems/MCH1-5-6-40-Linear-systems.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/5-6-Linear-systems/MCH1-5-6-40-Linear-systems.pg @@ -28,7 +28,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -86,17 +86,17 @@ $BCENTER \left\lbrace \begin{array}{rcl} 3(e+f) & = & 5e + f + $e \\ -4(f-e) & = & e + 2f - $absf +4(f-e) & = & e + 2f - $absf \end{array} \right. \) $ECENTER $BR \( e \) = \{ ans_rule(10) \} -\{ AnswerFormatHelp("fractions") \} +\{ helpLink("fractions") \} $BR \( f \) = \{ ans_rule(10) \} -\{ AnswerFormatHelp("fractions") \} +\{ helpLink("fractions") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-02-Exponent-rules.pg b/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-02-Exponent-rules.pg index 2acb2fab92..76fc3ee54b 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-02-Exponent-rules.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-02-Exponent-rules.pg @@ -29,7 +29,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "answerHints.pl", "alignedChoice.pl", @@ -71,8 +71,8 @@ Context()->texStrings; BEGIN_TEXT Evaluate the following expressions without using a calculator. Simplify your answers as much -as possible. -\{ AnswerFormatHelp("numbers") \} +as possible. +\{ helpLink("numbers") \} $BR \{ $al->print_q() \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-08-Exponent-rules.pg b/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-08-Exponent-rules.pg index 325bfb066a..753a48fef8 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-08-Exponent-rules.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-08-Exponent-rules.pg @@ -29,7 +29,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "answerHints.pl", "alignedChoice.pl", @@ -67,8 +67,8 @@ Context()->texStrings; BEGIN_TEXT Evaluate the following expressions without using a calculator. Simplify your answers as much -as possible. -\{ AnswerFormatHelp("numbers") \} +as possible. +\{ helpLink("numbers") \} $BR \{ $al->print_q() \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-14-Exponent-rules.pg b/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-14-Exponent-rules.pg index 601cdd084b..2045fee518 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-14-Exponent-rules.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-14-Exponent-rules.pg @@ -28,7 +28,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "alignedChoice.pl", "PGcourse.pl" @@ -74,8 +74,8 @@ BEGIN_TEXT Evaluate the following expressions for \( x = $x \), \( y = $y \), and \( z = $z \) without using a calculator. Simplify your answers as much -as possible, and enter your answers as fractions. -\{ AnswerFormatHelp("fractions") \} +as possible, and enter your answers as fractions. +\{ helpLink("fractions") \} $BR \{ $al->print_q() \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-20-Exponent-rules.pg b/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-20-Exponent-rules.pg index b5f0db5e5b..0846775432 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-20-Exponent-rules.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-20-Exponent-rules.pg @@ -28,7 +28,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "alignedChoice.pl", "PGcourse.pl" @@ -74,8 +74,8 @@ BEGIN_TEXT Evaluate the following expressions for \( x = $x \), \( y = $y \), and \( z = $z \) without using a calculator. Simplify your answers as much -as possible, and enter your answers as fractions. -\{ AnswerFormatHelp("fractions") \} +as possible, and enter your answers as fractions. +\{ helpLink("fractions") \} $BR \{ $al->print_q() \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-24-Exponent-rules.pg b/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-24-Exponent-rules.pg index 85fd33ce21..cd2cafbeb8 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-24-Exponent-rules.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-24-Exponent-rules.pg @@ -29,7 +29,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextLimitedPolynomial.pl", "alignedChoice.pl", "PGcourse.pl" @@ -55,13 +55,13 @@ $e1 = $b + $c - $a; Context()->texStrings; BEGIN_TEXT Write the following expression in the form -\( x^n \), assuming \( x \not= 0 \). -Simplify your answer as much as possible. +\( x^n \), assuming \( x \not= 0 \). +Simplify your answer as much as possible. $BR $BR -\( \displaystyle \frac{x^{$b} \cdot x^{$c}}{x^{$a}} \) = +\( \displaystyle \frac{x^{$b} \cdot x^{$c}}{x^{$a}} \) = \{ ans_rule(10) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-26-Exponent-rules.pg b/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-26-Exponent-rules.pg index d17f74ac87..3720cb01d6 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-26-Exponent-rules.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-26-Exponent-rules.pg @@ -29,7 +29,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextLimitedPolynomial.pl", "alignedChoice.pl", "PGcourse.pl" @@ -55,13 +55,13 @@ $e2 = ($c - $a) * $b; Context()->texStrings; BEGIN_TEXT Write the following expression in the form -\( x^n \), assuming \( x \not= 0 \). -Simplify your answer as much as possible. +\( x^n \), assuming \( x \not= 0 \). +Simplify your answer as much as possible. $BR $BR \( \displaystyle \left( \frac{x^{$c}}{x^{$a}} \right)^{$b} \) = \{ ans_rule(10) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-28-Exponent-rules.pg b/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-28-Exponent-rules.pg index 0f654ae53d..589e432717 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-28-Exponent-rules.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-28-Exponent-rules.pg @@ -29,7 +29,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextLimitedPolynomial.pl", "alignedChoice.pl", "PGcourse.pl" @@ -56,13 +56,13 @@ $e1 = $d + $c - $b - 1; Context()->texStrings; BEGIN_TEXT Write the following expression in the form -\( x^n \), assuming \( x \not= 0 \). -Simplify your answer as much as possible. +\( x^n \), assuming \( x \not= 0 \). +Simplify your answer as much as possible. $BR $BR \( \displaystyle \frac{ x^{$d} }{ x^{$b} } \cdot \frac{ x^{$c} }{ x } \) = \{ ans_rule(10) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-30-Exponent-rules.pg b/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-30-Exponent-rules.pg index af372bb47e..7bcb5acf9f 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-30-Exponent-rules.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-30-Exponent-rules.pg @@ -29,7 +29,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextLimitedPolynomial.pl", "alignedChoice.pl", "PGcourse.pl" @@ -57,13 +57,13 @@ $e2 = 2*($d + 1) - (3 * $b); Context()->texStrings; BEGIN_TEXT Write the following expression in the form -\( x^n \), assuming \( x \not= 0 \). -Simplify your answer as much as possible. +\( x^n \), assuming \( x \not= 0 \). +Simplify your answer as much as possible. $BR $BR \( \displaystyle \frac{ \left( x \cdot x^{$d} \right)^2 }{ \left( x^{$b} \right)^3 } \) = \{ ans_rule(10) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-32-Exponent-rules.pg b/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-32-Exponent-rules.pg index 1858ed739f..f6d6e32e6a 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-32-Exponent-rules.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-32-Exponent-rules.pg @@ -29,7 +29,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -56,7 +56,7 @@ Rewrite the following using a single exponent. $BR $BR \( 4^{$a} \cdot 4^n = 4^x \) for \( x \) = \{ ans_rule(10) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-34-Exponent-rules.pg b/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-34-Exponent-rules.pg index 639a307a3b..4f7c080179 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-34-Exponent-rules.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-34-Exponent-rules.pg @@ -29,7 +29,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "PGcourse.pl" ); @@ -77,7 +77,7 @@ Context()->normalStrings; Context()->texStrings; BEGIN_TEXT Rewrite the following using a single exponent. -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR $showpower diff --git a/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-36-Exponent-rules.pg b/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-36-Exponent-rules.pg index 799b629c5b..0f5ccd7b9e 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-36-Exponent-rules.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-36-Exponent-rules.pg @@ -30,7 +30,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -60,7 +60,7 @@ Rewrite the following using a single exponent. $BR $BR \( \displaystyle \frac{$a^a $b^a}{$ab^b} = $ab^x \) for \( x \) = \{ ans_rule(10) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-38-Exponent-rules.pg b/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-38-Exponent-rules.pg index 5ed06c9fc7..7ef6849883 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-38-Exponent-rules.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-38-Exponent-rules.pg @@ -29,7 +29,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "PGcourse.pl" ); @@ -77,7 +77,7 @@ Context()->normalStrings; Context()->texStrings; BEGIN_TEXT Rewrite the following using a single exponent. -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR $showpower diff --git a/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-40-Exponent-rules.pg b/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-40-Exponent-rules.pg index c6314f361b..885d46e1b5 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-40-Exponent-rules.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-40-Exponent-rules.pg @@ -28,7 +28,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "PGcourse.pl" ); @@ -76,7 +76,7 @@ Context()->normalStrings; Context()->texStrings; BEGIN_TEXT Rewrite the following using a single exponent. -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR $showpower diff --git a/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-42-Exponent-rules.pg b/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-42-Exponent-rules.pg index 21847112f6..be8fd2c9a7 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-42-Exponent-rules.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-42-Exponent-rules.pg @@ -29,7 +29,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "PGcourse.pl" ); @@ -79,7 +79,7 @@ Context()->normalStrings; Context()->texStrings; BEGIN_TEXT Rewrite the following using a single exponent. -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR $showpower diff --git a/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-44-Exponent-rules.pg b/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-44-Exponent-rules.pg index 0784b680d4..ccfb02000f 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-44-Exponent-rules.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-44-Exponent-rules.pg @@ -29,7 +29,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "PGcourse.pl" ); @@ -78,7 +78,7 @@ Context()->normalStrings; Context()->texStrings; BEGIN_TEXT Rewrite the following using a single exponent. -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR $showpower diff --git a/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-60-Exponent-rules.pg b/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-60-Exponent-rules.pg index f2c8c52390..7bc0467a8a 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-60-Exponent-rules.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-60-Exponent-rules.pg @@ -29,7 +29,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "PGcourse.pl" ); @@ -48,7 +48,7 @@ $fraction = "\left( \frac{a}{b} \right)^{$c}"; $num = Formula("a^$c")->reduce; $den = Formula("b^$c")->reduce; -# +# # Display the fraction and answer blanks nicely # Context()->texStrings; @@ -73,9 +73,9 @@ Context()->normalStrings; Context()->texStrings; BEGIN_TEXT Rewrite the following expression without parentheses. -Simplify your answer as much as possible, and +Simplify your answer as much as possible, and assume that all variables are positive. -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR $showfraction diff --git a/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-62-Exponent-rules.pg b/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-62-Exponent-rules.pg index 4862d06953..7b25a52728 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-62-Exponent-rules.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-62-Exponent-rules.pg @@ -29,7 +29,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "contextLimitedPolynomial.pl", "PGcourse.pl" @@ -54,7 +54,7 @@ $fraction = "\left( \frac{$a p}{ q^{$c} } \right)^{$b}"; $num = Formula("$atob * p^$b")->reduce; $den = Formula("q^$bc")->reduce; -# +# # Display the fraction and answer blanks nicely # Context()->texStrings; @@ -79,9 +79,9 @@ Context()->normalStrings; Context()->texStrings; BEGIN_TEXT Rewrite the following expression without parentheses. -Simplify your answer as much as possible, and +Simplify your answer as much as possible, and assume that all variables are positive. -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR $showfraction diff --git a/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-64-Exponent-rules.pg b/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-64-Exponent-rules.pg index f33142e59e..527496b14a 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-64-Exponent-rules.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-64-Exponent-rules.pg @@ -29,7 +29,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "contextLimitedPolynomial.pl", "PGcourse.pl" @@ -53,7 +53,7 @@ $fraction = "\left( \frac{$a}{w^{$b}} \right)^{4}"; $num = Formula("$ato4")->reduce; $den = Formula("w^($b4)")->reduce; -# +# # Display the fraction and answer blanks nicely # Context()->texStrings; @@ -78,9 +78,9 @@ Context()->normalStrings; Context()->texStrings; BEGIN_TEXT Rewrite the following expression without parentheses. -Simplify your answer as much as possible, and +Simplify your answer as much as possible, and assume that all variables are positive. -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR $showfraction diff --git a/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-66-Exponent-rules.pg b/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-66-Exponent-rules.pg index fd616ac44f..4c29177920 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-66-Exponent-rules.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-66-Exponent-rules.pg @@ -28,7 +28,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -72,14 +72,14 @@ $multians = MultiAnswer($fac1, $fac2)->with( Context()->texStrings; BEGIN_TEXT Rewrite the following expression without parentheses. -Simplify your answer as much as possible, and +Simplify your answer as much as possible, and assume that all variables are positive. -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR \( \big( cf \big)^{$b} \) = \{$multians->ans_rule(6)\} -\( \cdot \) +\( \cdot \) \{$multians->ans_rule(6)\} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-68-Exponent-rules.pg b/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-68-Exponent-rules.pg index d5b9fffce2..d3ffbf85f5 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-68-Exponent-rules.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-68-Exponent-rules.pg @@ -28,7 +28,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "PGcourse.pl" ); @@ -52,7 +52,7 @@ $fraction = "\left( \frac{$a}{$b} \right)^{$c}"; $num = Formula("$atoc")->reduce; $den = Formula("$btoc")->reduce; -# +# # Display the fraction and answer blanks nicely # Context()->texStrings; @@ -78,9 +78,9 @@ Context()->operators->undefine("+","-","*","^","**","/"); Context()->texStrings; BEGIN_TEXT Rewrite the following expression without parentheses. -Simplify your answer as much as possible, and +Simplify your answer as much as possible, and assume that all variables are positive. -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR $showfraction diff --git a/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-70-Exponent-rules.pg b/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-70-Exponent-rules.pg index ebd15f32f0..aaf461bee0 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-70-Exponent-rules.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-70-Exponent-rules.pg @@ -28,7 +28,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -47,7 +47,7 @@ $fac1 = Formula("$a*100*t^2")->reduce; $fac2 = Formula("e^(2*$b*t)")->reduce; $multians = MultiAnswer($fac1,$fac2)->with( - singleResult => 1, + singleResult => 1, separator => " * ", tex_separator => " \cdot ", @@ -59,7 +59,7 @@ $multians = MultiAnswer($fac1,$fac2)->with( Value::Error('Neither factor can be constant') unless $f->isFormula && $g->isFormula; - Value::Error('Your product does not equal the original (it is incomplete)') + Value::Error('Your product does not equal the original (it is incomplete)') unless $F*$G == $f*$g; # return 0 unless $F*$G == $f*$g; @@ -69,7 +69,7 @@ $multians = MultiAnswer($fac1,$fac2)->with( my $a = Formula($context,'a'); $f = Formula($context,$f); my $result = ($a*$F == $f || $a*$G == $f); - Value::Error('Factor as the product of a polynomial and an exponential function') + Value::Error('Factor as the product of a polynomial and an exponential function') unless ($result == 1); return $result; @@ -87,11 +87,11 @@ BEGIN_TEXT Using laws of exponents, rewrite the following expression as a product. $BR $BR -\( $a \big( 10 t e^{$b t} \big)^2 \) = +\( $a \big( 10 t e^{$b t} \big)^2 \) = \{$multians->ans_rule(10)\} -\( \cdot \) +\( \cdot \) \{$multians->ans_rule(10)\} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-72-Exponent-rules.pg b/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-72-Exponent-rules.pg index 7c53871fac..fe4993f66f 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-72-Exponent-rules.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-72-Exponent-rules.pg @@ -29,7 +29,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -74,16 +74,16 @@ $multians = MultiAnswer($fac1, $fac2)->with( Context()->texStrings; BEGIN_TEXT -Rewrite the following expression without the existing +Rewrite the following expression without the existing parentheses. -Simplify your answer as much as possible, and +Simplify your answer as much as possible, and assume that all variables are positive. -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR -\( \big( $a x^{$b} \big)^{$c n} \) = +\( \big( $a x^{$b} \big)^{$c n} \) = \{$multians->ans_rule(6)\} -\( \cdot \) +\( \cdot \) \{$multians->ans_rule(6)\} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-78-Exponent-rules.pg b/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-78-Exponent-rules.pg index 6364268519..5e3ee951d5 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-78-Exponent-rules.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-78-Exponent-rules.pg @@ -28,7 +28,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -76,11 +76,11 @@ BEGIN_TEXT Using laws of exponents, rewrite the following expression as a product. $BR $BR -\( $c^{$a + $b} \) = +\( $c^{$a + $b} \) = \{$multians->ans_rule(6)\} -\( \cdot \) +\( \cdot \) \{$multians->ans_rule(6)\} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-84-Exponent-rules.pg b/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-84-Exponent-rules.pg index 3614593172..da48bd34b0 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-84-Exponent-rules.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-84-Exponent-rules.pg @@ -29,7 +29,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "PGcourse.pl" ); @@ -49,7 +49,7 @@ $fraction = "$b^{a-$c}"; $num = Formula("$b^a")->reduce; $den = Formula("$b^$c")->reduce; -# +# # Display the fraction and answer blanks nicely # Context()->texStrings; @@ -75,7 +75,7 @@ Context()->texStrings; BEGIN_TEXT Using laws of exponents, rewrite the following expression as a quotient. -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR $BR $showfraction diff --git a/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-90-Exponent-rules.pg b/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-90-Exponent-rules.pg index ded3d72b74..32b5289384 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-90-Exponent-rules.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/6-1-Exponent-rules/MCH1-6-1-90-Exponent-rules.pg @@ -28,7 +28,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "PGcourse.pl" ); @@ -48,7 +48,7 @@ $fraction = "e^{t-$b} (t+$c)"; $num = Formula("e^t * (t+$c)")->reduce; $den = Formula("e^$b")->reduce; -# +# # Display the fraction and answer blanks nicely # Context()->texStrings; @@ -74,7 +74,7 @@ Context()->texStrings; BEGIN_TEXT Using laws of exponents, rewrite the following expression as a quotient. -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR $BR $showfraction diff --git a/OpenProblemLibrary/FortLewis/Algebra/6-2-Fractional-exponents/MCH1-6-2-02-Fractional-exponents.pg b/OpenProblemLibrary/FortLewis/Algebra/6-2-Fractional-exponents/MCH1-6-2-02-Fractional-exponents.pg index 48a562d362..4c747e2abb 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/6-2-Fractional-exponents/MCH1-6-2-02-Fractional-exponents.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/6-2-Fractional-exponents/MCH1-6-2-02-Fractional-exponents.pg @@ -29,7 +29,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -57,11 +57,11 @@ Context()->texStrings; BEGIN_TEXT Evaluate the following expression without using a calculator. Simplify your answer as much -as possible, and enter your answer as a fraction. +as possible, and enter your answer as a fraction. $BR $BR \( $aa^{-1/2} \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("fractions") \} +\{ helpLink("fractions") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/6-2-Fractional-exponents/MCH1-6-2-04-Fractional-exponents.pg b/OpenProblemLibrary/FortLewis/Algebra/6-2-Fractional-exponents/MCH1-6-2-04-Fractional-exponents.pg index 46fe90b988..7f8bc8c3cb 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/6-2-Fractional-exponents/MCH1-6-2-04-Fractional-exponents.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/6-2-Fractional-exponents/MCH1-6-2-04-Fractional-exponents.pg @@ -30,7 +30,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -62,12 +62,12 @@ Context()->texStrings; BEGIN_TEXT Evaluate the following expression without using a calculator. Simplify your answer as much -as possible, and enter your answer as a fraction. +as possible, and enter your answer as a fraction. $BR $BR -\( \displaystyle \left( \frac{$aaa}{$bbb} \right)^{-1/3} \) +\( \displaystyle \left( \frac{$aaa}{$bbb} \right)^{-1/3} \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("fractions") \} +\{ helpLink("fractions") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/6-2-Fractional-exponents/MCH1-6-2-06-Fractional-exponents.pg b/OpenProblemLibrary/FortLewis/Algebra/6-2-Fractional-exponents/MCH1-6-2-06-Fractional-exponents.pg index 7c332746ac..31051d5e4d 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/6-2-Fractional-exponents/MCH1-6-2-06-Fractional-exponents.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/6-2-Fractional-exponents/MCH1-6-2-06-Fractional-exponents.pg @@ -29,7 +29,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "PGcourse.pl" ); @@ -51,7 +51,7 @@ $fraction = "\left( \frac{ $b^{$d a} }{ $c^{$d a} } \right)^{1/3}"; $num = Formula("$b^($e * a)")->reduce; $den = Formula("$c^($e * a)")->reduce; -# +# # Display the fraction and answer blanks nicely # Context()->texStrings; @@ -76,9 +76,9 @@ Context()->normalStrings; Context()->texStrings; BEGIN_TEXT Rewrite the following expression without parentheses. -Simplify your answer as much as possible, and +Simplify your answer as much as possible, and assume that all variables are positive. -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR $showfraction diff --git a/OpenProblemLibrary/FortLewis/Algebra/6-2-Fractional-exponents/MCH1-6-2-08-Fractional-exponents.pg b/OpenProblemLibrary/FortLewis/Algebra/6-2-Fractional-exponents/MCH1-6-2-08-Fractional-exponents.pg index 331e247f0f..6f0b3dadf3 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/6-2-Fractional-exponents/MCH1-6-2-08-Fractional-exponents.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/6-2-Fractional-exponents/MCH1-6-2-08-Fractional-exponents.pg @@ -29,7 +29,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "contextLimitedPolynomial.pl", "PGcourse.pl" @@ -63,7 +63,7 @@ $BR $BR \( \sqrt[4]{$aa x^{$c}} \, \sqrt[4]{$aa x^{$bmc}} \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/6-2-Fractional-exponents/MCH1-6-2-10-Fractional-exponents.pg b/OpenProblemLibrary/FortLewis/Algebra/6-2-Fractional-exponents/MCH1-6-2-10-Fractional-exponents.pg index 670ac94653..37f601b165 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/6-2-Fractional-exponents/MCH1-6-2-10-Fractional-exponents.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/6-2-Fractional-exponents/MCH1-6-2-10-Fractional-exponents.pg @@ -30,7 +30,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "contextLimitedPolynomial.pl", "PGcourse.pl" @@ -72,7 +72,7 @@ $BR $BR \( \displaystyle \frac{ \sqrt[3]{ $aaa x^{$cpd3} y^{$e3p1} } }{ \sqrt[3]{ $bbb x^{$c} y } } \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/6-2-Fractional-exponents/MCH1-6-2-12-Fractional-exponents-old.pg b/OpenProblemLibrary/FortLewis/Algebra/6-2-Fractional-exponents/MCH1-6-2-12-Fractional-exponents-old.pg index afb650f28a..f75ef5dac8 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/6-2-Fractional-exponents/MCH1-6-2-12-Fractional-exponents-old.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/6-2-Fractional-exponents/MCH1-6-2-12-Fractional-exponents-old.pg @@ -30,7 +30,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -54,12 +54,12 @@ Context()->texStrings; BEGIN_TEXT Write the expression as an equivalent expression in the form \( x^n \). Simplify your answer as much -as possible, and enter your answer as a fraction. +as possible, and enter your answer as a fraction. $BR $BR -\( \displaystyle \frac{1}{x^{$a}} = x^n \) for +\( \displaystyle \frac{1}{x^{$a}} = x^n \) for \( n = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("fractions") \} +\{ helpLink("fractions") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/6-2-Fractional-exponents/MCH1-6-2-12-Fractional-exponents.pg b/OpenProblemLibrary/FortLewis/Algebra/6-2-Fractional-exponents/MCH1-6-2-12-Fractional-exponents.pg index 14b0b93c69..738074f494 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/6-2-Fractional-exponents/MCH1-6-2-12-Fractional-exponents.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/6-2-Fractional-exponents/MCH1-6-2-12-Fractional-exponents.pg @@ -29,7 +29,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextLimitedPolynomial.pl", "contextLimitedPowers.pl", "PGcourse.pl" @@ -55,11 +55,11 @@ $answer = Formula("x^(-$a)"); Context()->texStrings; BEGIN_TEXT Write the expression as an equivalent expression -in the form \( x^n \). +in the form \( x^n \). $BR $BR \( \displaystyle \frac{1}{x^{$a}} \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/6-2-Fractional-exponents/MCH1-6-2-14-Fractional-exponents.pg b/OpenProblemLibrary/FortLewis/Algebra/6-2-Fractional-exponents/MCH1-6-2-14-Fractional-exponents.pg index 29084f8cc2..53d09980aa 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/6-2-Fractional-exponents/MCH1-6-2-14-Fractional-exponents.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/6-2-Fractional-exponents/MCH1-6-2-14-Fractional-exponents.pg @@ -29,7 +29,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -53,12 +53,12 @@ Context()->texStrings; BEGIN_TEXT Write the expression as an equivalent expression in the form \( x^n \). Simplify your answer as much -as possible, and enter your answer as a fraction. +as possible, and enter your answer as a fraction. $BR $BR -\( \sqrt[3]{x^{$a}} = x^n \) for +\( \sqrt[3]{x^{$a}} = x^n \) for \( n = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("fractions") \} +\{ helpLink("fractions") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/6-2-Fractional-exponents/MCH1-6-2-16-Fractional-exponents.pg b/OpenProblemLibrary/FortLewis/Algebra/6-2-Fractional-exponents/MCH1-6-2-16-Fractional-exponents.pg index 33c65ed412..fde2a9cb8f 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/6-2-Fractional-exponents/MCH1-6-2-16-Fractional-exponents.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/6-2-Fractional-exponents/MCH1-6-2-16-Fractional-exponents.pg @@ -29,7 +29,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -58,12 +58,12 @@ Context()->texStrings; BEGIN_TEXT Write the expression as an equivalent expression in the form \( x^n \). Simplify your answer as much -as possible, and enter your answer as a fraction. +as possible, and enter your answer as a fraction. $BR $BR -\( \displaystyle \frac{ \big( x^{$a} \big)^{$b} }{ x^{$a} x^{$b} } = x^n \) for +\( \displaystyle \frac{ \big( x^{$a} \big)^{$b} }{ x^{$a} x^{$b} } = x^n \) for \( n = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("fractions") \} +\{ helpLink("fractions") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/6-2-Fractional-exponents/MCH1-6-2-20-Fractional-exponents.pg b/OpenProblemLibrary/FortLewis/Algebra/6-2-Fractional-exponents/MCH1-6-2-20-Fractional-exponents.pg index c12db07b80..30a4f3345c 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/6-2-Fractional-exponents/MCH1-6-2-20-Fractional-exponents.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/6-2-Fractional-exponents/MCH1-6-2-20-Fractional-exponents.pg @@ -28,7 +28,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -56,12 +56,12 @@ Context()->operators->undefine("+","-"); Context()->texStrings; BEGIN_TEXT -Combine radicals, if possible. Simplify your -answer as much as possible. +Combine radicals, if possible. Simplify your +answer as much as possible. $BR $BR \( \sqrt[3]{$d x} + $a \sqrt[3]{$d x} - $b \sqrt[3]{$d x} \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/6-2-Fractional-exponents/MCH1-6-2-24-Fractional-exponents.pg b/OpenProblemLibrary/FortLewis/Algebra/6-2-Fractional-exponents/MCH1-6-2-24-Fractional-exponents.pg index b684ffdb8e..2873510fd6 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/6-2-Fractional-exponents/MCH1-6-2-24-Fractional-exponents.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/6-2-Fractional-exponents/MCH1-6-2-24-Fractional-exponents.pg @@ -28,7 +28,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -57,16 +57,16 @@ $answerb = Compute("$d t"); Context()->texStrings; BEGIN_TEXT -Combine radicals, if possible. Simplify your -answer as much as possible. +Combine radicals, if possible. Simplify your +answer as much as possible. $BR $BR -\( $a \sqrt{12t^3} + $b t \sqrt{128t} - $c t \sqrt{48t} \) = -\( \Big( \) \{ ans_rule(20) \} -\( \Big) \sqrt{2t} + +\( $a \sqrt{12t^3} + $b t \sqrt{128t} - $c t \sqrt{48t} \) = +\( \Big( \) \{ ans_rule(20) \} +\( \Big) \sqrt{2t} + \Big( \) \{ ans_rule(20) \} \( \Big) \sqrt{3t} \) -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/7-1-Power-functions/MCH1-7-1-02-Power-functions.pg b/OpenProblemLibrary/FortLewis/Algebra/7-1-Power-functions/MCH1-7-1-02-Power-functions.pg index 765c096520..cf952e89ea 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/7-1-Power-functions/MCH1-7-1-02-Power-functions.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/7-1-Power-functions/MCH1-7-1-02-Power-functions.pg @@ -28,7 +28,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -49,16 +49,16 @@ $i = random(0,3,1); Context()->texStrings; BEGIN_TEXT -Identify the exponent and the coefficient in the -following power function: The perimeter of a +Identify the exponent and the coefficient in the +following power function: The perimeter of a $shape[$i] of side \( x \) is \( P = $coeff[$i] x \). $BR $BR Exponent = \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR Coefficient = \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/7-1-Power-functions/MCH1-7-1-05-Power-functions.pg b/OpenProblemLibrary/FortLewis/Algebra/7-1-Power-functions/MCH1-7-1-05-Power-functions.pg index b8369820e8..db6a9da359 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/7-1-Power-functions/MCH1-7-1-05-Power-functions.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/7-1-Power-functions/MCH1-7-1-05-Power-functions.pg @@ -28,7 +28,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -51,16 +51,16 @@ $i = random(0,1,1); Context()->texStrings; BEGIN_TEXT -Identify the exponent and the coefficient in the -following power function: The surface area of a +Identify the exponent and the coefficient in the +following power function: The surface area of a $shape[$i] of $type[$i] \( r \) is \( P = $coefftex[$i] r^2 \). $BR $BR Exponent = \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR Coefficient = \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/7-1-Power-functions/MCH1-7-1-08-Power-functions.pg b/OpenProblemLibrary/FortLewis/Algebra/7-1-Power-functions/MCH1-7-1-08-Power-functions.pg index 468efb083c..6133985088 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/7-1-Power-functions/MCH1-7-1-08-Power-functions.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/7-1-Power-functions/MCH1-7-1-08-Power-functions.pg @@ -28,7 +28,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserNumberWithUnits.pl", "PGcourse.pl" ); @@ -60,34 +60,34 @@ $answerc = NumberWithUnits($fc,"m"); Context()->texStrings; BEGIN_TEXT -A ball dropped into a hole reaches a depth -\( d = $f \) meters, where \( t \) is the +A ball dropped into a hole reaches a depth +\( d = $f \) meters, where \( t \) is the time in seconds since it was dropped. $BR $BR -(a) Identify the coefficient and the exponent of +(a) Identify the coefficient and the exponent of this power function. $BR Exponent = \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR Coefficient = \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR $BR (b) How deep is the ball after $b seconds? Include units in your answer. $BR -\{ ans_rule(20) \} -\{ AnswerFormatHelp("units") \} +\{ ans_rule(20) \} +\{ helpLink("units") \} $BR $BR (c) If the ball hits the bottom of the hole after $c seconds, how deep is the hole? Include units in your answer. $BR -\{ ans_rule(20) \} -\{ AnswerFormatHelp("units") \} +\{ ans_rule(20) \} +\{ helpLink("units") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/7-2-Power-expressions/MCH1-7-2-08-Power-expressions.pg b/OpenProblemLibrary/FortLewis/Algebra/7-2-Power-expressions/MCH1-7-2-08-Power-expressions.pg index df0949ab58..96c539a868 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/7-2-Power-expressions/MCH1-7-2-08-Power-expressions.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/7-2-Power-expressions/MCH1-7-2-08-Power-expressions.pg @@ -29,7 +29,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -48,15 +48,15 @@ $a = list_random(2,3,5,7); Context()->texStrings; BEGIN_TEXT -Identify the exponent and the coefficient in the +Identify the exponent and the coefficient in the power expression \( \sqrt{$a b} \). $BR $BR Exponent = \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR Coefficient = \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/7-2-Power-expressions/MCH1-7-2-12-Power-expressions.pg b/OpenProblemLibrary/FortLewis/Algebra/7-2-Power-expressions/MCH1-7-2-12-Power-expressions.pg index 78165db181..880e85ea4d 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/7-2-Power-expressions/MCH1-7-2-12-Power-expressions.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/7-2-Power-expressions/MCH1-7-2-12-Power-expressions.pg @@ -29,7 +29,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -49,15 +49,15 @@ $n = random(3,7,2); Context()->texStrings; BEGIN_TEXT -Identify the exponent and the coefficient in the +Identify the exponent and the coefficient in the power expression \( \displaystyle \left( \frac{1}{ $a \sqrt{x} } \right)^{$n} \). $BR $BR Exponent = \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR Coefficient = \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/7-2-Power-expressions/MCH1-7-2-16-Power-expressions.pg b/OpenProblemLibrary/FortLewis/Algebra/7-2-Power-expressions/MCH1-7-2-16-Power-expressions.pg index 2157ab133f..01c220393a 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/7-2-Power-expressions/MCH1-7-2-16-Power-expressions.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/7-2-Power-expressions/MCH1-7-2-16-Power-expressions.pg @@ -29,7 +29,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -50,15 +50,15 @@ $n = random(3,7,2); Context()->texStrings; BEGIN_TEXT -Identify the exponent and the coefficient in the +Identify the exponent and the coefficient in the power expression \( \sqrt{\sqrt{ $aa t^{$n} }} \). $BR $BR Exponent = \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR Coefficient = \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/7-2-Power-expressions/MCH1-7-2-20-Power-expressions.pg b/OpenProblemLibrary/FortLewis/Algebra/7-2-Power-expressions/MCH1-7-2-20-Power-expressions.pg index b41a5801c5..738d6ba8b1 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/7-2-Power-expressions/MCH1-7-2-20-Power-expressions.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/7-2-Power-expressions/MCH1-7-2-20-Power-expressions.pg @@ -29,7 +29,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -55,17 +55,17 @@ $p = Compute("-$n/2"); Context()->texStrings; BEGIN_TEXT -Can the expression \( \displaystyle $expr \) be written in the +Can the expression \( \displaystyle $expr \) be written in the form \( y = k x^p \)? If it can, enter the values -for \( k \) and \( p \). If it cannot, enter +for \( k \) and \( p \). If it cannot, enter ${BITALIC}NONE${EITALIC} in both answer blanks. $BR $BR \( k \) = \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR \( p \) = \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/7-2-Power-expressions/MCH1-7-2-26-Power-expressions.pg b/OpenProblemLibrary/FortLewis/Algebra/7-2-Power-expressions/MCH1-7-2-26-Power-expressions.pg index b3ee28d909..648f41f7cc 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/7-2-Power-expressions/MCH1-7-2-26-Power-expressions.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/7-2-Power-expressions/MCH1-7-2-26-Power-expressions.pg @@ -30,7 +30,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -56,17 +56,17 @@ $p = Compute("$n/2"); Context()->texStrings; BEGIN_TEXT -Can the expression \( \displaystyle $expr \) be written in the +Can the expression \( \displaystyle $expr \) be written in the form \( y = k x^p \)? If it can, enter the values -for \( k \) and \( p \). If it cannot, enter +for \( k \) and \( p \). If it cannot, enter ${BITALIC}NONE${EITALIC} in both answer blanks. $BR $BR \( k \) = \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR \( p \) = \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/7-2-Power-expressions/MCH1-7-2-28-Power-expressions.pg b/OpenProblemLibrary/FortLewis/Algebra/7-2-Power-expressions/MCH1-7-2-28-Power-expressions.pg index e4919701be..e3de0e8646 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/7-2-Power-expressions/MCH1-7-2-28-Power-expressions.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/7-2-Power-expressions/MCH1-7-2-28-Power-expressions.pg @@ -30,7 +30,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -66,17 +66,17 @@ $p = Compute("NONE"); Context()->texStrings; BEGIN_TEXT -Can the expression \( \displaystyle $expr \) be written in the +Can the expression \( \displaystyle $expr \) be written in the form \( y = k x^p \)? If it can, enter the values -for \( k \) and \( p \). If it cannot, enter +for \( k \) and \( p \). If it cannot, enter ${BITALIC}NONE${EITALIC} in both answer blanks. $BR $BR \( k \) = \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR \( p \) = \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/7-2-Power-expressions/MCH1-7-2-38-Power-expressions.pg b/OpenProblemLibrary/FortLewis/Algebra/7-2-Power-expressions/MCH1-7-2-38-Power-expressions.pg index 9b581949de..7f192e83e6 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/7-2-Power-expressions/MCH1-7-2-38-Power-expressions.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/7-2-Power-expressions/MCH1-7-2-38-Power-expressions.pg @@ -33,7 +33,7 @@ loadMacros( "PGgraphmacros.pl", "parserPopUp.pl", "unionTables.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -81,19 +81,19 @@ $popup = PopUp(["?","A","B","C","D"], $letter[$inv[0]]); Context()->texStrings; BEGIN_TEXT The number of species, \( N \), on an island as -a function of the area, \( A \), of the island +a function of the area, \( A \), of the island is \( N = k \sqrt[3]{A} \). $BR $BR (a) What is the exponent of this power function? $BR \( p \) = \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR $BR (b) Assuming the constant \( k \) is positive, which graph A-D best matches the graph of this -power function? +power function? \{ $popup->menu() \} $BR $BR diff --git a/OpenProblemLibrary/FortLewis/Algebra/7-2-Power-expressions/MCH1-7-2-43-Power-expressions.pg b/OpenProblemLibrary/FortLewis/Algebra/7-2-Power-expressions/MCH1-7-2-43-Power-expressions.pg index 13ee564445..96b326572a 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/7-2-Power-expressions/MCH1-7-2-43-Power-expressions.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/7-2-Power-expressions/MCH1-7-2-43-Power-expressions.pg @@ -33,7 +33,7 @@ loadMacros( "PGgraphmacros.pl", "parserPopUp.pl", "unionTables.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -82,19 +82,19 @@ $popup = PopUp(["?","A","B","C","D"], $letter[$inv[0]]); Context()->texStrings; BEGIN_TEXT The number of animal species, \( N \), of a certain -body length as a function of the body length, \( L \), +body length as a function of the body length, \( L \), is \( \displaystyle N = \frac{A}{L^{$a}} \). $BR $BR (a) What is the exponent of this power function? $BR \( p \) = \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR $BR (b) Assuming the constant \( A \) is positive, which graph A-D best matches the graph of this -power function? +power function? \{ $popup->menu() \} $BR $BR diff --git a/OpenProblemLibrary/FortLewis/Algebra/7-2-Power-expressions/MCH1-7-2-48-Power-expressions.pg b/OpenProblemLibrary/FortLewis/Algebra/7-2-Power-expressions/MCH1-7-2-48-Power-expressions.pg index b15ca71c5a..df4692a60d 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/7-2-Power-expressions/MCH1-7-2-48-Power-expressions.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/7-2-Power-expressions/MCH1-7-2-48-Power-expressions.pg @@ -33,7 +33,7 @@ loadMacros( "PGgraphmacros.pl", "parserPopUp.pl", "unionTables.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -81,19 +81,19 @@ $popup = PopUp(["?","A","B","C","D"], $letter[$inv[0]]); Context()->texStrings; BEGIN_TEXT The blood mass, \( M \), of a mammal as a function -of its body mass, \( B \), +of its body mass, \( B \), is \( M = k B \). $BR $BR (a) What is the exponent of this power function? $BR \( p \) = \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR $BR (b) Assuming the constant \( k \) is positive, which graph A-D best matches the graph of this -power function? +power function? \{ $popup->menu() \} $BR $BR diff --git a/OpenProblemLibrary/FortLewis/Algebra/7-2-Power-expressions/MCH1-7-2-70-Power-expressions.pg b/OpenProblemLibrary/FortLewis/Algebra/7-2-Power-expressions/MCH1-7-2-70-Power-expressions.pg index 486548baa6..6b77c414df 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/7-2-Power-expressions/MCH1-7-2-70-Power-expressions.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/7-2-Power-expressions/MCH1-7-2-70-Power-expressions.pg @@ -30,7 +30,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserAssignment.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -54,24 +54,24 @@ $answerb = Formula("w=$k/((4000+h)^2)"); Context()->texStrings; BEGIN_TEXT An astronaut \( r \) thousand miles from the center -of the earth weighs \( $k / r^2 \) pounds. The +of the earth weighs \( $k / r^2 \) pounds. The surface of the earth is 4000 miles from the center. $BR $BR (a) If the astronaut is \( h \) miles above the surface -of the earth, express \( r \) as a function of \( h \). +of the earth, express \( r \) as a function of \( h \). Enter your answer as an equation, such as \( r = 5h-1 \). $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} $BR $BR (b) Express the astronaut's weight \( w \), in pounds, -as a function of \( h \). Enter your answer as an equation, +as a function of \( h \). Enter your answer as an equation, such as \( w = 5h-1 \). $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/7-3-Power-equations/MCH1-7-3-02-Power-equations.pg b/OpenProblemLibrary/FortLewis/Algebra/7-3-Power-equations/MCH1-7-3-02-Power-equations.pg index a597b732ac..e27431018e 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/7-3-Power-equations/MCH1-7-3-02-Power-equations.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/7-3-Power-equations/MCH1-7-3-02-Power-equations.pg @@ -28,7 +28,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -52,12 +52,12 @@ $answer = List( Compute("sqrt($b/$a)"), Compute("-sqrt($b/$a)") ); # Main text BEGIN_TEXT -Solve the equation \( $eqn \). If there is more than one +Solve the equation \( $eqn \). If there is more than one correct answer, enter your answers as a comma separated list. $BR $BR \( $var \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/7-3-Power-equations/MCH1-7-3-04-Power-equations.pg b/OpenProblemLibrary/FortLewis/Algebra/7-3-Power-equations/MCH1-7-3-04-Power-equations.pg index aef3074c91..8600460809 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/7-3-Power-equations/MCH1-7-3-04-Power-equations.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/7-3-Power-equations/MCH1-7-3-04-Power-equations.pg @@ -29,7 +29,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -39,7 +39,7 @@ TEXT(beginproblem()); # Setup Context("Numeric"); -Context()->{error}{msg}{"Can't raise a negative number to a non-integer power"} +Context()->{error}{msg}{"Can't raise a negative number to a non-integer power"} = "Enter -(a^n) instead of (-a)^n"; $a = random(2,5,1); @@ -56,12 +56,12 @@ $answer = List( Compute("-($b/$a)^(1/3)") ); # Main text BEGIN_TEXT -Solve the equation \( $eqn \). If there is more than one +Solve the equation \( $eqn \). If there is more than one correct answer, enter your answers as a comma separated list. $BR $BR \( $var \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/7-3-Power-equations/MCH1-7-3-06-Power-equations.pg b/OpenProblemLibrary/FortLewis/Algebra/7-3-Power-equations/MCH1-7-3-06-Power-equations.pg index 22a9fcc2a9..18c8b29d07 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/7-3-Power-equations/MCH1-7-3-06-Power-equations.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/7-3-Power-equations/MCH1-7-3-06-Power-equations.pg @@ -29,7 +29,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -56,12 +56,12 @@ $answer = List( Compute("(($cc+$b)/$a)^(1/4)"), Compute("-(($cc+$b)/$a)^(1/4)") # Main text BEGIN_TEXT -Solve the equation \( $eqn \). If there is more than one +Solve the equation \( $eqn \). If there is more than one correct answer, enter your answers as a comma separated list. $BR $BR \( $var \) = \{ ans_rule(30) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/7-3-Power-equations/MCH1-7-3-08-Power-equations.pg b/OpenProblemLibrary/FortLewis/Algebra/7-3-Power-equations/MCH1-7-3-08-Power-equations.pg index e1b38f2c4e..c5b9ea0e74 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/7-3-Power-equations/MCH1-7-3-08-Power-equations.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/7-3-Power-equations/MCH1-7-3-08-Power-equations.pg @@ -28,7 +28,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -40,7 +40,7 @@ TEXT(beginproblem()); Context("Numeric"); $a = random(3,5,1); -$b = random(3,6,1); +$b = random(3,6,1); $c = random(5,9,1); $abpc = $a*$b + $c; @@ -55,12 +55,12 @@ $answer = List( Compute("$b^3") ); # Main text BEGIN_TEXT -Solve the equation \( $eqn \). If there is more than one +Solve the equation \( $eqn \). If there is more than one correct answer, enter your answers as a comma separated list. $BR $BR \( $var \) = \{ ans_rule(30) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/7-3-Power-equations/MCH1-7-3-10-Power-equations.pg b/OpenProblemLibrary/FortLewis/Algebra/7-3-Power-equations/MCH1-7-3-10-Power-equations.pg index f599b91902..deab7d9ef2 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/7-3-Power-equations/MCH1-7-3-10-Power-equations.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/7-3-Power-equations/MCH1-7-3-10-Power-equations.pg @@ -28,7 +28,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -40,7 +40,7 @@ TEXT(beginproblem()); Context("Numeric"); $a = random(3,5,1); -$b = random(3,6,1); +$b = random(3,6,1); $c = random(5,9,1); $eqn = "\sqrt{$a y - $b} = $c"; @@ -53,12 +53,12 @@ $answer = List( Compute("($c^2+$b)/$a") ); # Main text BEGIN_TEXT -Solve the equation \( $eqn \). If there is more than one +Solve the equation \( $eqn \). If there is more than one correct answer, enter your answers as a comma separated list. $BR $BR \( $var \) = \{ ans_rule(30) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/7-3-Power-equations/MCH1-7-3-12-Power-equations.pg b/OpenProblemLibrary/FortLewis/Algebra/7-3-Power-equations/MCH1-7-3-12-Power-equations.pg index 1c59912b82..a7715d5fd8 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/7-3-Power-equations/MCH1-7-3-12-Power-equations.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/7-3-Power-equations/MCH1-7-3-12-Power-equations.pg @@ -28,7 +28,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -40,7 +40,7 @@ TEXT(beginproblem()); Context("Numeric"); $a = random(3,5,1); -$b = random(3,6,1); +$b = random(3,6,1); $c = random(5,9,1); $ccpb = $c*$c + $b; @@ -55,12 +55,12 @@ $answer = List( Compute("$c-$a"), Compute("-$c-$a") ); # Main text BEGIN_TEXT -Solve the equation \( $eqn \). If there is more than one +Solve the equation \( $eqn \). If there is more than one correct answer, enter your answers as a comma separated list. $BR $BR \( $var \) = \{ ans_rule(30) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/7-3-Power-equations/MCH1-7-3-14-Power-equations.pg b/OpenProblemLibrary/FortLewis/Algebra/7-3-Power-equations/MCH1-7-3-14-Power-equations.pg index 10c0e715b2..ba8f08f539 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/7-3-Power-equations/MCH1-7-3-14-Power-equations.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/7-3-Power-equations/MCH1-7-3-14-Power-equations.pg @@ -28,7 +28,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -52,12 +52,12 @@ $answer = List( Compute("$a") ); # Main text BEGIN_TEXT -Solve the equation \( $eqn \). If there is more than one +Solve the equation \( $eqn \). If there is more than one correct answer, enter your answers as a comma separated list. $BR $BR \( $var \) = \{ ans_rule(30) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/7-3-Power-equations/MCH1-7-3-16-Power-equations.pg b/OpenProblemLibrary/FortLewis/Algebra/7-3-Power-equations/MCH1-7-3-16-Power-equations.pg index 43db6e86b5..7d06e2f860 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/7-3-Power-equations/MCH1-7-3-16-Power-equations.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/7-3-Power-equations/MCH1-7-3-16-Power-equations.pg @@ -28,7 +28,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -52,12 +52,12 @@ $answer = List( Compute("$a"), Compute("-$a") ); # Main text BEGIN_TEXT -Solve the equation \( \displaystyle $eqn \). If there is more than one +Solve the equation \( \displaystyle $eqn \). If there is more than one correct answer, enter your answers as a comma separated list. $BR $BR \( $var \) = \{ ans_rule(30) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/7-3-Power-equations/MCH1-7-3-18-Power-equations.pg b/OpenProblemLibrary/FortLewis/Algebra/7-3-Power-equations/MCH1-7-3-18-Power-equations.pg index 97b8ae56a3..83c7589710 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/7-3-Power-equations/MCH1-7-3-18-Power-equations.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/7-3-Power-equations/MCH1-7-3-18-Power-equations.pg @@ -28,7 +28,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -60,12 +60,12 @@ $answer = List( Compute("$r"), Compute("-$r") ); # Main text BEGIN_TEXT -Solve the equation \( \displaystyle $eqn \). If there is more than one +Solve the equation \( \displaystyle $eqn \). If there is more than one correct answer, enter your answers as a comma separated list. $BR $BR \( $var \) = \{ ans_rule(30) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/7-3-Power-equations/MCH1-7-3-20-Power-equations.pg b/OpenProblemLibrary/FortLewis/Algebra/7-3-Power-equations/MCH1-7-3-20-Power-equations.pg index d7ddcf027d..6e7eaa11a5 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/7-3-Power-equations/MCH1-7-3-20-Power-equations.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/7-3-Power-equations/MCH1-7-3-20-Power-equations.pg @@ -28,7 +28,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -53,12 +53,12 @@ $answer = List( Compute("($c * ($a-$b)/2)^2"), Compute("0") ); # Main text BEGIN_TEXT -Solve the equation \( \displaystyle $eqn \). If there is more than one +Solve the equation \( \displaystyle $eqn \). If there is more than one correct answer, enter your answers as a comma separated list. $BR $BR \( $var \) = \{ ans_rule(30) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/7-3-Power-equations/MCH1-7-3-22-Power-equations.pg b/OpenProblemLibrary/FortLewis/Algebra/7-3-Power-equations/MCH1-7-3-22-Power-equations.pg index 8b4d8ee682..78dfd5a955 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/7-3-Power-equations/MCH1-7-3-22-Power-equations.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/7-3-Power-equations/MCH1-7-3-22-Power-equations.pg @@ -28,7 +28,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -54,12 +54,12 @@ $answer = List( Compute("sqrt(y/k)"), Compute("-sqrt(y/k)") ); BEGIN_TEXT Solve the equation \( \displaystyle $eqn \) for the variable \( $var \). Assume that all other letters represent positive -constants. If there is more than one correct answer, enter +constants. If there is more than one correct answer, enter your answers as a comma separated list. $BR $BR \( $var \) = \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/7-3-Power-equations/MCH1-7-3-24-Power-equations.pg b/OpenProblemLibrary/FortLewis/Algebra/7-3-Power-equations/MCH1-7-3-24-Power-equations.pg index df6f01c40c..5b0a1d1dd7 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/7-3-Power-equations/MCH1-7-3-24-Power-equations.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/7-3-Power-equations/MCH1-7-3-24-Power-equations.pg @@ -28,7 +28,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -56,12 +56,12 @@ $answer = List( Compute("(L/(k*B^$n))^(1/3)") ); BEGIN_TEXT Solve the equation \( \displaystyle $eqn \) for the variable \( $var \). Assume that all other letters represent nonzero -constants. If there is more than one correct answer, enter +constants. If there is more than one correct answer, enter your answers as a comma separated list. $BR $BR \( $var \) = \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/7-3-Power-equations/MCH1-7-3-26-Power-equations.pg b/OpenProblemLibrary/FortLewis/Algebra/7-3-Power-equations/MCH1-7-3-26-Power-equations.pg index a7ad726d7c..243e41e00b 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/7-3-Power-equations/MCH1-7-3-26-Power-equations.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/7-3-Power-equations/MCH1-7-3-26-Power-equations.pg @@ -28,7 +28,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -56,12 +56,12 @@ $answer = List( Compute("t*(w/($a*pi))^2") ); BEGIN_TEXT Solve the equation \( \displaystyle $eqn \) for the variable \( $var \). Assume that all other letters represent nonzero -constants. If there is more than one correct answer, enter +constants. If there is more than one correct answer, enter your answers as a comma separated list. $BR $BR \( $var \) = \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/7-3-Power-equations/MCH1-7-3-50-Power-equations.pg b/OpenProblemLibrary/FortLewis/Algebra/7-3-Power-equations/MCH1-7-3-50-Power-equations.pg index cf12d2c984..1c89c4908e 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/7-3-Power-equations/MCH1-7-3-50-Power-equations.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/7-3-Power-equations/MCH1-7-3-50-Power-equations.pg @@ -28,7 +28,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -49,14 +49,14 @@ $answer = Compute("sqrt(3*$a/$h)"); # Main text BEGIN_TEXT -The volume of a cone of height \( $h \) and -radius \( r \) is \( \displaystyle V = +The volume of a cone of height \( $h \) and +radius \( r \) is \( \displaystyle V = \frac{$h}{3} \pi r^2 \). What is the radius -of such a cone whose volume is \( $a \pi \)? +of such a cone whose volume is \( $a \pi \)? $BR $BR \( r \) = \{ ans_rule(30) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/7-3-Power-equations/MCH1-7-3-54-Power-equations.pg b/OpenProblemLibrary/FortLewis/Algebra/7-3-Power-equations/MCH1-7-3-54-Power-equations.pg index 68cb849e84..905f2e4c90 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/7-3-Power-equations/MCH1-7-3-54-Power-equations.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/7-3-Power-equations/MCH1-7-3-54-Power-equations.pg @@ -28,7 +28,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -56,44 +56,44 @@ $Vcone = Compute("sqrt((3 V)/(pi h))"); # Main text BEGIN_TEXT -Solve each of the following geometric formulas for the +Solve each of the following geometric formulas for the radius \( r \). Enter \( \pi \) as pi. $BR $BR -(a) The circumference of a circle of radius \( r \) +(a) The circumference of a circle of radius \( r \) is \( C = 2 \pi r \). -$BR +$BR \( r \) = \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR -(b) The area of a circle of radius \( r \) +(b) The area of a circle of radius \( r \) is \( A = \pi r^2 \). -$BR +$BR \( r \) = \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR -(c) The volume of a sphere of radius \( r \) +(c) The volume of a sphere of radius \( r \) is \( \displaystyle V = \frac{4}{3} \pi r^3 \). -$BR +$BR \( r \) = \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR -(d) The volume of a cylinder of radius \( r \) +(d) The volume of a cylinder of radius \( r \) and height \( h \) is \( V = \pi r^2 h \). -$BR +$BR \( r \) = \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR -(e) The volume of a cone of radius \( r \) -and height \( h \) is \( \displaystyle V = +(e) The volume of a cone of radius \( r \) +and height \( h \) is \( \displaystyle V = \frac{1}{3} \pi r^2 h \). -$BR +$BR \( r \) = \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/7-4-Power-functions-modeling/MCH1-7-4-01-Power-functions-modeling.pg b/OpenProblemLibrary/FortLewis/Algebra/7-4-Power-functions-modeling/MCH1-7-4-01-Power-functions-modeling.pg index 0431951946..52d1526ee7 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/7-4-Power-functions-modeling/MCH1-7-4-01-Power-functions-modeling.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/7-4-Power-functions-modeling/MCH1-7-4-01-Power-functions-modeling.pg @@ -30,7 +30,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserAssignment.pl", "PGcourse.pl" ); @@ -67,7 +67,7 @@ power of \( x \), and \( y = $y \) when \( x = $x \). $BR $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/7-4-Power-functions-modeling/MCH1-7-4-02-Power-functions-modeling.pg b/OpenProblemLibrary/FortLewis/Algebra/7-4-Power-functions-modeling/MCH1-7-4-02-Power-functions-modeling.pg index 22e1743a02..854b9ec4dd 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/7-4-Power-functions-modeling/MCH1-7-4-02-Power-functions-modeling.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/7-4-Power-functions-modeling/MCH1-7-4-02-Power-functions-modeling.pg @@ -29,7 +29,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserAssignment.pl", "PGcourse.pl" ); @@ -59,7 +59,7 @@ with constant of proportionality \( $k \). $BR $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/7-4-Power-functions-modeling/MCH1-7-4-03-Power-functions-modeling.pg b/OpenProblemLibrary/FortLewis/Algebra/7-4-Power-functions-modeling/MCH1-7-4-03-Power-functions-modeling.pg index e371d97ea7..fb4c7fca2f 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/7-4-Power-functions-modeling/MCH1-7-4-03-Power-functions-modeling.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/7-4-Power-functions-modeling/MCH1-7-4-03-Power-functions-modeling.pg @@ -31,7 +31,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserAssignment.pl", "PGcourse.pl" ); @@ -65,7 +65,7 @@ and \( y = $y \) when \( x = $x \). $BR $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/7-4-Power-functions-modeling/MCH1-7-4-05-Power-functions-modeling.pg b/OpenProblemLibrary/FortLewis/Algebra/7-4-Power-functions-modeling/MCH1-7-4-05-Power-functions-modeling.pg index f5cc4a682c..d4c95aee85 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/7-4-Power-functions-modeling/MCH1-7-4-05-Power-functions-modeling.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/7-4-Power-functions-modeling/MCH1-7-4-05-Power-functions-modeling.pg @@ -30,7 +30,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserAssignment.pl", "PGcourse.pl" ); @@ -64,7 +64,7 @@ and \( s = $s \) when \( t = $t \). $BR $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/7-4-Power-functions-modeling/MCH1-7-4-06-Power-functions-modeling.pg b/OpenProblemLibrary/FortLewis/Algebra/7-4-Power-functions-modeling/MCH1-7-4-06-Power-functions-modeling.pg index 3402440576..95c8ccd296 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/7-4-Power-functions-modeling/MCH1-7-4-06-Power-functions-modeling.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/7-4-Power-functions-modeling/MCH1-7-4-06-Power-functions-modeling.pg @@ -30,7 +30,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserAssignment.pl", "PGcourse.pl" ); @@ -61,11 +61,11 @@ Context()->texStrings; BEGIN_TEXT If \( A \) is inversely proportional to the cube of \( B \), and \( A = $A \) when \( B = $B \), write -\( A \) as a power function of \( B \). +\( A \) as a power function of \( B \). $BR $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/7-4-Power-functions-modeling/MCH1-7-4-07-Power-functions-modeling.pg b/OpenProblemLibrary/FortLewis/Algebra/7-4-Power-functions-modeling/MCH1-7-4-07-Power-functions-modeling.pg index 996f8b165b..46df9ea0e7 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/7-4-Power-functions-modeling/MCH1-7-4-07-Power-functions-modeling.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/7-4-Power-functions-modeling/MCH1-7-4-07-Power-functions-modeling.pg @@ -29,7 +29,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserAssignment.pl", "unionLists.pl", "PGcourse.pl" @@ -51,7 +51,7 @@ $B = random(3,5,1); $A = $f->eval(B=>$B); $B1 = random(6,8,1); -$answer[0] = Real("$k"); +$answer[0] = Real("$k"); $answer[1] = Formula("A = $k B^2"); $answer[2] = $f->eval(B=>$B1); @@ -61,30 +61,30 @@ $answer[2] = $f->eval(B=>$B1); Context()->texStrings; BEGIN_TEXT -Suppose \( A \) is directly proportional to the +Suppose \( A \) is directly proportional to the square of \( B \), and \( A = $A \) when \( B = $B \). \{ BeginList('OL') \} -$ITEM +$ITEM Find the constant of proportionality. $BR \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $ITEMSEP -$ITEM +$ITEM Write the formula for \( A \) in terms of \( B \). $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} $ITEMSEP $ITEM Use your formula to find \( A \) when \( B = $B1 \). $BR -\( A = \) +\( A = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} \{ EndList('OL') \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/7-4-Power-functions-modeling/MCH1-7-4-08-Power-functions-modeling.pg b/OpenProblemLibrary/FortLewis/Algebra/7-4-Power-functions-modeling/MCH1-7-4-08-Power-functions-modeling.pg index 3a1a540d1a..98b8e8904e 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/7-4-Power-functions-modeling/MCH1-7-4-08-Power-functions-modeling.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/7-4-Power-functions-modeling/MCH1-7-4-08-Power-functions-modeling.pg @@ -29,7 +29,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserAssignment.pl", "unionLists.pl", "PGcourse.pl" @@ -52,7 +52,7 @@ $k = $A * ($B)**2; $B1 = random(6,9,1); -$answer[0] = Real("$k"); +$answer[0] = Real("$k"); $answer[1] = Formula("A = $k * (B^(-2))"); $answer[2] = Compute("$k / $B1^2"); @@ -63,30 +63,30 @@ $answer[2] = Compute("$k / $B1^2"); Context()->texStrings; BEGIN_TEXT -Suppose \( A \) is inversely proportional to the +Suppose \( A \) is inversely proportional to the square of \( B \), and \( A = $A \) when \( B = $B \). \{ BeginList('OL') \} -$ITEM +$ITEM Find the constant of proportionality. $BR \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $ITEMSEP -$ITEM +$ITEM Write the formula for \( A \) in terms of \( B \). $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} $ITEMSEP $ITEM Use your formula to find \( A \) when \( B = $B1 \). $BR -\( A = \) +\( A = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} \{ EndList('OL') \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/7-4-Power-functions-modeling/MCH1-7-4-20-Power-functions-modeling.pg b/OpenProblemLibrary/FortLewis/Algebra/7-4-Power-functions-modeling/MCH1-7-4-20-Power-functions-modeling.pg index 982696c8ca..3085a86ad0 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/7-4-Power-functions-modeling/MCH1-7-4-20-Power-functions-modeling.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/7-4-Power-functions-modeling/MCH1-7-4-20-Power-functions-modeling.pg @@ -29,7 +29,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -58,15 +58,15 @@ When an aircraft takes off, it accelerates until it reaches its takeoff speed \( V \). In doing so it uses up a distance \( R \) of the runway, where \( R \) is proportional to the square of the of -the takeoff speed. If \( V \) is measured in +the takeoff speed. If \( V \) is measured in miles per hour and \( R \) is measured in feet, then \( $k \) is the constant of proportionality. If an aircraft has -a takeoff speed of about \( $V \) miles per hour, how +a takeoff speed of about \( $V \) miles per hour, how much runway does it need? $BR $BR \{ ans_rule(10) \} feet -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/7-4-Power-functions-modeling/MCH1-7-4-28-Power-functions-modeling.pg b/OpenProblemLibrary/FortLewis/Algebra/7-4-Power-functions-modeling/MCH1-7-4-28-Power-functions-modeling.pg index 9ccd4e1bdc..b253a610f1 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/7-4-Power-functions-modeling/MCH1-7-4-28-Power-functions-modeling.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/7-4-Power-functions-modeling/MCH1-7-4-28-Power-functions-modeling.pg @@ -29,7 +29,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserPopUp.pl", "PGcourse.pl" ); @@ -58,11 +58,11 @@ BEGIN_TEXT A square of side length \( x \) has area \( x^2 \). $BR $BR -(a) By what factor does the area change if the side +(a) By what factor does the area change if the side length is doubled? \{ $popupdoubled->menu() \} $BR $BR -(b) By what factor does the area change if the side +(b) By what factor does the area change if the side length is halved? \{ $popuphalved->menu() \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/8-1-Domain-range/MCH1-8-1-02-Domain-range.pg b/OpenProblemLibrary/FortLewis/Algebra/8-1-Domain-range/MCH1-8-1-02-Domain-range.pg index cdcb5bf330..115909f352 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/8-1-Domain-range/MCH1-8-1-02-Domain-range.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/8-1-Domain-range/MCH1-8-1-02-Domain-range.pg @@ -29,12 +29,12 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextInequalities.pl", "PGcourse.pl" ); -TEXT(beginproblem()); +TEXT(beginproblem()); #################################### # Setup @@ -53,12 +53,12 @@ $domain = Compute("-infinity < x < infinity"); Context()->texStrings; BEGIN_TEXT -Find the domain and range of the function +Find the domain and range of the function \( y = f(x) = $f \). $BR $BR Domain: \{ ans_rule(20) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} $BR END_TEXT @@ -74,7 +74,7 @@ $range = Compute("y >= 0"); BEGIN_TEXT Range: $SPACE \{ ans_rule(20) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/8-1-Domain-range/MCH1-8-1-04-Domain-range.pg b/OpenProblemLibrary/FortLewis/Algebra/8-1-Domain-range/MCH1-8-1-04-Domain-range.pg index a82b725f39..57a1142df9 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/8-1-Domain-range/MCH1-8-1-04-Domain-range.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/8-1-Domain-range/MCH1-8-1-04-Domain-range.pg @@ -38,12 +38,12 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextInequalities.pl", "PGcourse.pl" ); -TEXT(beginproblem()); +TEXT(beginproblem()); #################################### # Setup @@ -63,12 +63,12 @@ $domain = Compute("-infinity < x < infinity"); Context()->texStrings; BEGIN_TEXT -Find the domain and range of the function +Find the domain and range of the function \( y = f(x) = $f \). $BR $BR Domain: \{ ans_rule(20) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} END_TEXT $showPartialCorrectAnswers = 1; @@ -83,7 +83,7 @@ $range = Compute("y >= -$a"); BEGIN_TEXT $BR Range: $SPACE \{ ans_rule(20) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/8-1-Domain-range/MCH1-8-1-06-Domain-range.pg b/OpenProblemLibrary/FortLewis/Algebra/8-1-Domain-range/MCH1-8-1-06-Domain-range.pg index 9640daa0e6..a9f622d50c 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/8-1-Domain-range/MCH1-8-1-06-Domain-range.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/8-1-Domain-range/MCH1-8-1-06-Domain-range.pg @@ -28,12 +28,12 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextInequalities.pl", "PGcourse.pl" ); -TEXT(beginproblem()); +TEXT(beginproblem()); #################################### # Setup @@ -55,12 +55,12 @@ $domain = Compute("-infinity < x < infinity"); Context()->texStrings; BEGIN_TEXT -Find the domain and range of the function +Find the domain and range of the function \( y = f(x) = $f \). $BR $BR Domain: \{ ans_rule(20) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} $BR END_TEXT @@ -76,7 +76,7 @@ $range = Compute("-infinity < y < infinity"); BEGIN_TEXT Range: $SPACE \{ ans_rule(20) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/8-1-Domain-range/MCH1-8-1-10-Domain-range.pg b/OpenProblemLibrary/FortLewis/Algebra/8-1-Domain-range/MCH1-8-1-10-Domain-range.pg index 2d134ee283..0649d29ae7 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/8-1-Domain-range/MCH1-8-1-10-Domain-range.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/8-1-Domain-range/MCH1-8-1-10-Domain-range.pg @@ -29,12 +29,12 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextInequalities.pl", "PGcourse.pl" ); -TEXT(beginproblem()); +TEXT(beginproblem()); #################################### # Setup @@ -56,12 +56,12 @@ $domain = Compute("-inf < x < $a or $a < x < inf"); Context()->texStrings; BEGIN_TEXT -Find the domain and range of the function +Find the domain and range of the function \( \displaystyle y = f(x) = $f \). $BR $BR Domain: \{ ans_rule(20) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} $BR END_TEXT @@ -76,7 +76,7 @@ $range = Compute("-inf < y < 0 or 0 < y < inf"); BEGIN_TEXT Range: $SPACE \{ ans_rule(20) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/8-1-Domain-range/MCH1-8-1-14-Domain-range.pg b/OpenProblemLibrary/FortLewis/Algebra/8-1-Domain-range/MCH1-8-1-14-Domain-range.pg index 722c458e99..e0770e135f 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/8-1-Domain-range/MCH1-8-1-14-Domain-range.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/8-1-Domain-range/MCH1-8-1-14-Domain-range.pg @@ -29,12 +29,12 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextInequalities.pl", "PGcourse.pl" ); -TEXT(beginproblem()); +TEXT(beginproblem()); #################################### # Setup @@ -55,16 +55,16 @@ $domain = Compute("0 <= t <= 12"); Context()->texStrings; BEGIN_TEXT -A restaurant is open from $b pm to $b am on -Saturday and a maximum of $a people are allowed +A restaurant is open from $b pm to $b am on +Saturday and a maximum of $a people are allowed inside. If \( f(t) \) is the number of -people in the restaurant \( t \) hours +people in the restaurant \( t \) hours after $b pm on Saturday, what is a reasonable domain and range for \( y = f(t) \)? $BR $BR Domain: \{ ans_rule(20) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} $BR END_TEXT @@ -79,7 +79,7 @@ $range = Compute("0 <= y <= $a"); BEGIN_TEXT Range: $SPACE \{ ans_rule(20) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/8-1-Domain-range/MCH1-8-1-16-Domain-range.pg b/OpenProblemLibrary/FortLewis/Algebra/8-1-Domain-range/MCH1-8-1-16-Domain-range.pg index 0c947ad4df..cb91f94e09 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/8-1-Domain-range/MCH1-8-1-16-Domain-range.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/8-1-Domain-range/MCH1-8-1-16-Domain-range.pg @@ -25,18 +25,18 @@ ######################################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextInequalities.pl", "PGgraphmacros.pl", "unionTables.pl", "PGcourse.pl" ); - + TEXT(beginproblem()); ########################################## @@ -83,7 +83,7 @@ if ($pick == 0) { @leftendpt = (2,5); @rightendpt = (4,20); } - + Context("Inequalities")->variables->are(y=>"Real"); @@ -130,7 +130,7 @@ $graph->lb(new Label(9,-.2,"x",'black','left','top')); $graph->lb(new Label(-.2,23,"y",'black','right','top')); $graph->stamps( closed_circle($leftendpt[0],$leftendpt[1],'blue') ); $graph->stamps( closed_circle($rightendpt[0],$rightendpt[1],'blue') ); -plot_functions( $graph, $f[$pick]); +plot_functions( $graph, $f[$pick]); @@ -145,11 +145,11 @@ ColumnTable( $BR. $BR. "(a) What is the domain of \( f(x) \)? ". -$ans_rule1.$SPACE.AnswerFormatHelp("inequality"). +$ans_rule1.$SPACE.helpLink("inequality"). $BR. $BR. "(b) What is the range of \( f(x) \)? ". -$ans_rule2.$SPACE.AnswerFormatHelp("inequality") +$ans_rule2.$SPACE.helpLink("inequality") , $BCENTER. image(insertGraph($graph), width => 400, height => 400, tex_size => 700). @@ -189,7 +189,7 @@ The domain is \( \lbrack $d_disp[$pick] \rbrack \). The range is \( \lbrack $r $BR END_SOLUTION - + ; ENDDOCUMENT(); diff --git a/OpenProblemLibrary/FortLewis/Algebra/8-1-Domain-range/MCH1-8-1-17-Domain-range.pg b/OpenProblemLibrary/FortLewis/Algebra/8-1-Domain-range/MCH1-8-1-17-Domain-range.pg index e842f19872..559a86db52 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/8-1-Domain-range/MCH1-8-1-17-Domain-range.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/8-1-Domain-range/MCH1-8-1-17-Domain-range.pg @@ -24,18 +24,18 @@ ################################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextInequalities.pl", "PGgraphmacros.pl", "unionTables.pl", "PGcourse.pl" ); - + TEXT(beginproblem()); ####################################### @@ -73,8 +73,8 @@ $graph->lb(new Label(9,-.3,"x",'black','left','top')); $graph->lb(new Label(-.2,23+.4,"y",'black','right','top')); $graph->stamps( closed_circle(1,16,'blue') ); $graph->stamps( closed_circle(7,4,'blue') ); -#plot_functions( $graph, $f, @tick); -plot_functions( $graph, $f ); +#plot_functions( $graph, $f, @tick); +plot_functions( $graph, $f ); # x-axis ticks entered as y-value, color, list of x-values $graph->h_ticks(0,"black",1,3,7); @@ -110,11 +110,11 @@ ColumnTable( $BR. $BR. "(a) What is the domain of \( f(x) \)? ". -$ans_rule1.$SPACE.AnswerFormatHelp("inequality"). +$ans_rule1.$SPACE.helpLink("inequality"). $BR. $BR. "(b) What is the range of \( f(x) \)? ". -$ans_rule2.$SPACE.AnswerFormatHelp("inequality") +$ans_rule2.$SPACE.helpLink("inequality") , $BCENTER. image(insertGraph($graph), width => 400, height => 400, tex_size => 700). @@ -149,7 +149,7 @@ The domain is \( \lbrack $x_down , $x_up \rbrack \). The range is \( \lbrack $ $BR END_SOLUTION - + ; ENDDOCUMENT(); diff --git a/OpenProblemLibrary/FortLewis/Algebra/8-1-Domain-range/MCH1-8-1-20-Domain-range.pg b/OpenProblemLibrary/FortLewis/Algebra/8-1-Domain-range/MCH1-8-1-20-Domain-range.pg index 160576fecc..e194ad7239 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/8-1-Domain-range/MCH1-8-1-20-Domain-range.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/8-1-Domain-range/MCH1-8-1-20-Domain-range.pg @@ -28,12 +28,12 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextInequalities.pl", "PGcourse.pl" ); -TEXT(beginproblem()); +TEXT(beginproblem()); #################################### # Setup @@ -52,13 +52,13 @@ $domain = Compute("0 <= t <= $b/$m"); Context()->texStrings; BEGIN_TEXT -The value, \( V \), of a car that is \( t \) +The value, \( V \), of a car that is \( t \) years old is given by \( V = f(t) = $b - $m t \). Find the domain and range of \( f(t) \). $BR $BR Domain: \{ ans_rule(20) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} $BR END_TEXT @@ -74,7 +74,7 @@ $range = Compute("0 <= V <= $b"); BEGIN_TEXT Range: $SPACE \{ ans_rule(20) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/8-1-Domain-range/MCH1-8-1-28-Domain-range.pg b/OpenProblemLibrary/FortLewis/Algebra/8-1-Domain-range/MCH1-8-1-28-Domain-range.pg index 2473c7cd69..1815d8193d 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/8-1-Domain-range/MCH1-8-1-28-Domain-range.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/8-1-Domain-range/MCH1-8-1-28-Domain-range.pg @@ -29,13 +29,13 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextInequalities.pl", "parserAssignment.pl", "PGcourse.pl" ); -TEXT(beginproblem()); +TEXT(beginproblem()); #################################### # Setup @@ -46,7 +46,7 @@ TEXT(beginproblem()); #Context()->variables->are(@var); Context("Numeric")->variables->are(@var); -parser::Assignment->Allow; +parser::Assignment->Allow; $n = random(200,700,50); $r = random(50,100,50); @@ -69,20 +69,20 @@ people. After the movie ends, people start leaving at the rate of \( $r \) each minute. $BR $BR -(a) Find an equation for \( N \), the number of +(a) Find an equation for \( N \), the number of people in the theater, as a function of \( t \), the number of minutes after the movie ends. Enter your answer as an equation, such as \( N = 5t-1 \). $BR \{ ans_rule(30) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} $BR $BR (b) For what values of \( t \) does the equation make sense in practical terms. $BR Domain: \{ ans_rule(20) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/8-1-Domain-range/MCH1-8-1-32-Domain-range.pg b/OpenProblemLibrary/FortLewis/Algebra/8-1-Domain-range/MCH1-8-1-32-Domain-range.pg index 4909306880..936391b925 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/8-1-Domain-range/MCH1-8-1-32-Domain-range.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/8-1-Domain-range/MCH1-8-1-32-Domain-range.pg @@ -28,12 +28,12 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextInequalities.pl", "PGcourse.pl" ); -TEXT(beginproblem()); +TEXT(beginproblem()); #################################### # Setup @@ -57,17 +57,17 @@ BEGIN_TEXT Let \( T = w(r) \) give the total number of minutes of radio advertising bought in a month by a small company as a function of the rate \( r \) in -dollars per minute. Rates vary depending on the +dollars per minute. Rates vary depending on the time of day the ad runs, ranging from ${DOLLAR}$a to ${DOLLAR}$b per minute. The company's monthly radio advertising budget is ${DOLLAR}$m. Find the domain and the range of the function \( T = w(r) \), -assuming that all of the money in the advertising +assuming that all of the money in the advertising budget is spent. $BR $BR Domain: \{ ans_rule(20) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} $BR END_TEXT @@ -82,7 +82,7 @@ $range = Compute("$m/$b <= T <= $m/$a"); BEGIN_TEXT Range:$SPACE$SPACE \{ ans_rule(20) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/8-1-Domain-range/MCH1-8-1-40-Domain-range.pg b/OpenProblemLibrary/FortLewis/Algebra/8-1-Domain-range/MCH1-8-1-40-Domain-range.pg index a99a17de5f..851963b923 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/8-1-Domain-range/MCH1-8-1-40-Domain-range.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/8-1-Domain-range/MCH1-8-1-40-Domain-range.pg @@ -29,12 +29,12 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextInequalities.pl", "PGcourse.pl" ); -TEXT(beginproblem()); +TEXT(beginproblem()); #################################### # Setup @@ -54,13 +54,13 @@ $range = Compute("-inf < y < 0 or 0 < y < inf"); Context()->texStrings; BEGIN_TEXT -Find the range of the function \( \displaystyle y = f(x) = -\frac{$a}{$b x + $c} \) by finding the values of \( a \) +Find the range of the function \( \displaystyle y = f(x) = +\frac{$a}{$b x + $c} \) by finding the values of \( a \) for which \( f(x) = a \) has a solution. $BR $BR Range: \{ ans_rule(20) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/8-2-Function-composition/MCH1-8-2-02-Function-composition.pg b/OpenProblemLibrary/FortLewis/Algebra/8-2-Function-composition/MCH1-8-2-02-Function-composition.pg index 0d5dde55f6..3fe97d0f86 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/8-2-Function-composition/MCH1-8-2-02-Function-composition.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/8-2-Function-composition/MCH1-8-2-02-Function-composition.pg @@ -28,12 +28,12 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserAssignment.pl", "PGcourse.pl" ); -TEXT(beginproblem()); +TEXT(beginproblem()); #################################### # Setup @@ -48,7 +48,7 @@ $d = random(1,5,1); $c2 = $a * $c * $c; $c1 = -2 * $a * $c * $d; -$c0 = $a * $d**2; +$c0 = $a * $d**2; $f = Formula("y = $c2 x^2 + $c1 x + $c0"); @@ -58,14 +58,14 @@ $f = Formula("y = $c2 x^2 + $c1 x + $c0"); Context()->texStrings; BEGIN_TEXT -Use substitution to compose \( y = $a u^{2} \) +Use substitution to compose \( y = $a u^{2} \) and \( u = $c x - $d \). Enter your answer as an -equation, and simplify your answer as much as +equation, and simplify your answer as much as possible. $BR $BR \{ ans_rule(30) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/8-2-Function-composition/MCH1-8-2-04-Function-composition.pg b/OpenProblemLibrary/FortLewis/Algebra/8-2-Function-composition/MCH1-8-2-04-Function-composition.pg index 6572106cdc..c9cac77154 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/8-2-Function-composition/MCH1-8-2-04-Function-composition.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/8-2-Function-composition/MCH1-8-2-04-Function-composition.pg @@ -28,13 +28,13 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserAssignment.pl", "contextLimitedPolynomial.pl", "PGcourse.pl" ); -TEXT(beginproblem()); +TEXT(beginproblem()); #################################### # Setup @@ -58,14 +58,14 @@ $f = Formula("D = $ab q^$c - $d"); Context()->texStrings; BEGIN_TEXT -Use substitution to compose \( D = $a p - $d \) +Use substitution to compose \( D = $a p - $d \) and \( p = $b q^{$c} \). Enter your answer as an -equation, and simplify your answer as much as +equation, and simplify your answer as much as possible. $BR $BR \{ ans_rule(30) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/8-2-Function-composition/MCH1-8-2-08-Function-composition.pg b/OpenProblemLibrary/FortLewis/Algebra/8-2-Function-composition/MCH1-8-2-08-Function-composition.pg index bca4b74797..3f4e6ce58e 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/8-2-Function-composition/MCH1-8-2-08-Function-composition.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/8-2-Function-composition/MCH1-8-2-08-Function-composition.pg @@ -29,13 +29,13 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserAssignment.pl", "contextLimitedPolynomial.pl", "PGcourse.pl" ); -TEXT(beginproblem()); +TEXT(beginproblem()); #################################### # Setup @@ -62,13 +62,13 @@ $f = Formula("y = $c2 x^$e2 + $c1 x^$e + $c"); Context()->texStrings; BEGIN_TEXT -Use substitution to compose \( y = $a u^2 + $b u + $c \) +Use substitution to compose \( y = $a u^2 + $b u + $c \) and \( u = $d x^{$e} \). Enter your answer as an equation, and simplify your answer as much as possible. $BR $BR \{ ans_rule(30) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/8-2-Function-composition/MCH1-8-2-09-Function-composition.pg b/OpenProblemLibrary/FortLewis/Algebra/8-2-Function-composition/MCH1-8-2-09-Function-composition.pg index 9dbb01e271..57f8aa3f24 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/8-2-Function-composition/MCH1-8-2-09-Function-composition.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/8-2-Function-composition/MCH1-8-2-09-Function-composition.pg @@ -28,13 +28,13 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "answerComposition.pl", "PGinfo.pl", "PGcourse.pl" ); -TEXT(beginproblem()); +TEXT(beginproblem()); #################################### # Setup @@ -52,17 +52,17 @@ $g = Formula("x^2+$a"); Context()->texStrings; BEGIN_TEXT -Express the function \( y = \sqrt{ x^2 + $a } \) +Express the function \( y = \sqrt{ x^2 + $a } \) as a composition \( y = f(g(x)) \) of two simpler functions \( y = f(u) \) and \( u = g(x) \). $BR $BR \( f(u) \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR \( g(x) \) = \{ ans_rule(20) \} -\{ -AnswerFormatHelp("formulas") +\{ +helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/8-2-Function-composition/MCH1-8-2-10-Function-composition.pg b/OpenProblemLibrary/FortLewis/Algebra/8-2-Function-composition/MCH1-8-2-10-Function-composition.pg index e03a75967c..95a4b59269 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/8-2-Function-composition/MCH1-8-2-10-Function-composition.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/8-2-Function-composition/MCH1-8-2-10-Function-composition.pg @@ -27,12 +27,12 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "answerComposition.pl", "PGcourse.pl" ); -TEXT(beginproblem()); +TEXT(beginproblem()); #################################### # Setup @@ -52,16 +52,16 @@ $g = Formula("x - $b"); Context()->texStrings; BEGIN_TEXT -Express the function \( y = $a (x - $b)^{$c} \) +Express the function \( y = $a (x - $b)^{$c} \) as a composition \( y = f(g(x)) \) of two simpler functions \( y = f(u) \) and \( u = g(x) \). $BR $BR \( f(u) \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR \( g(x) \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/8-2-Function-composition/MCH1-8-2-11-Function-composition.pg b/OpenProblemLibrary/FortLewis/Algebra/8-2-Function-composition/MCH1-8-2-11-Function-composition.pg index b0a46668b9..1e71558020 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/8-2-Function-composition/MCH1-8-2-11-Function-composition.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/8-2-Function-composition/MCH1-8-2-11-Function-composition.pg @@ -27,12 +27,12 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "answerComposition.pl", "PGcourse.pl" ); -TEXT(beginproblem()); +TEXT(beginproblem()); #################################### # Setup @@ -52,16 +52,16 @@ $g = Formula("x^$b"); Context()->texStrings; BEGIN_TEXT -Express the function \( y = $a x^{$b} - $c \) +Express the function \( y = $a x^{$b} - $c \) as a composition \( y = f(g(x)) \) of two simpler functions \( y = f(u) \) and \( u = g(x) \). $BR $BR \( f(u) \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR \( g(x) \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/8-2-Function-composition/MCH1-8-2-14-Function-composition.pg b/OpenProblemLibrary/FortLewis/Algebra/8-2-Function-composition/MCH1-8-2-14-Function-composition.pg index b2eac15447..0f660daa9f 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/8-2-Function-composition/MCH1-8-2-14-Function-composition.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/8-2-Function-composition/MCH1-8-2-14-Function-composition.pg @@ -28,11 +28,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); -TEXT(beginproblem()); +TEXT(beginproblem()); #################################### # Setup @@ -52,21 +52,21 @@ $h = Formula("$a - x^$b"); Context()->texStrings; BEGIN_TEXT -Write the function \( y = \sqrt{$a - x^{$b}} \) +Write the function \( y = \sqrt{$a - x^{$b}} \) in the form \( y = k \cdot (h(x))^p \) for some -function \( h(x) \) and some constants \( k \) +function \( h(x) \) and some constants \( k \) and \( p \). $BR $BR \( k \) = \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR \( p \) = \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR $BR \( h(x) \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/8-2-Function-composition/MCH1-8-2-20-Function-composition.pg b/OpenProblemLibrary/FortLewis/Algebra/8-2-Function-composition/MCH1-8-2-20-Function-composition.pg index e0a370579f..b02159426f 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/8-2-Function-composition/MCH1-8-2-20-Function-composition.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/8-2-Function-composition/MCH1-8-2-20-Function-composition.pg @@ -28,12 +28,12 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserPopUp.pl", "PGcourse.pl" ); -TEXT(beginproblem()); +TEXT(beginproblem()); #################################### # Setup @@ -62,32 +62,32 @@ $popup = PopUp(["Choose","Inside","Outside"],"Inside"); Context()->texStrings; BEGIN_TEXT -The two functions \( \displaystyle $eqn1 \) and -\( \displaystyle $eqn2 \) share either an inside +The two functions \( \displaystyle $eqn1 \) and +\( \displaystyle $eqn2 \) share either an inside function or an outside function. $BR $BR (a) What is this shared function? $BR \( u \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR Is \( u \) an inside function or an outside function? \{ $popup->menu() \} $BR $BR -(b) Writing \( u \) for this shared function, +(b) Writing \( u \) for this shared function, express \( $eqn1 \) in terms of \( u \). $BR \( y \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR -(c) Writing \( u \) for this shared function, +(c) Writing \( u \) for this shared function, express \( $eqn2 \) in terms of \( u \). $BR \( y \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/8-2-Function-composition/MCH1-8-2-24-Function-composition.pg b/OpenProblemLibrary/FortLewis/Algebra/8-2-Function-composition/MCH1-8-2-24-Function-composition.pg index 293e8e01a6..c04c1239ca 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/8-2-Function-composition/MCH1-8-2-24-Function-composition.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/8-2-Function-composition/MCH1-8-2-24-Function-composition.pg @@ -26,11 +26,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); -TEXT(beginproblem()); +TEXT(beginproblem()); #################################### # Setup @@ -52,7 +52,7 @@ Suppose \( \displaystyle V(r) = \frac{4}{3} \pi r^3 \) and $BR $BR \( p($a) \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/8-2-Function-composition/MCH1-8-2-28-Function-composition.pg b/OpenProblemLibrary/FortLewis/Algebra/8-2-Function-composition/MCH1-8-2-28-Function-composition.pg index 4788e5e680..481f95b55c 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/8-2-Function-composition/MCH1-8-2-28-Function-composition.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/8-2-Function-composition/MCH1-8-2-28-Function-composition.pg @@ -28,11 +28,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); -TEXT(beginproblem()); +TEXT(beginproblem()); #################################### # Setup @@ -58,11 +58,11 @@ Suppose \( f(x) = x^{$n}+$a \) and $BR $BR \( f(g(x)) \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR \( g(f(x)) \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/8-2-Function-composition/MCH1-8-2-30-Function-composition.pg b/OpenProblemLibrary/FortLewis/Algebra/8-2-Function-composition/MCH1-8-2-30-Function-composition.pg index aaf7e1524e..32f5cd91c5 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/8-2-Function-composition/MCH1-8-2-30-Function-composition.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/8-2-Function-composition/MCH1-8-2-30-Function-composition.pg @@ -29,11 +29,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); -TEXT(beginproblem()); +TEXT(beginproblem()); #################################### # Setup @@ -58,7 +58,7 @@ If \( f(g(x)) = $a(x^{$b}+$c)^{$d} \) and $BR $BR \( f(x) \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/8-3-Shifting-and-scaling/MCH1-8-3-02-Shifting-and-scaling.pg b/OpenProblemLibrary/FortLewis/Algebra/8-3-Shifting-and-scaling/MCH1-8-3-02-Shifting-and-scaling.pg index a072a032c8..178a4aa322 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/8-3-Shifting-and-scaling/MCH1-8-3-02-Shifting-and-scaling.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/8-3-Shifting-and-scaling/MCH1-8-3-02-Shifting-and-scaling.pg @@ -32,7 +32,7 @@ loadMacros( "PGgraphmacros.pl", "parserPopUp.pl", "unionTables.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -81,18 +81,18 @@ $popup = PopUp(["?","A","B","C"], $letter[$inv[0]]); Context()->texStrings; BEGIN_TEXT -Suppose \( f(x) = x^3 \) and the graph of \( g(x) \) -is the graph of \( f(x) \) shifted vertically down -\( $a \) units. +Suppose \( f(x) = x^3 \) and the graph of \( g(x) \) +is the graph of \( f(x) \) shifted vertically down +\( $a \) units. $BR $BR (a) Find a formula for \( g(x) \). $BR \( g(x) \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR -(b) Which graph A-C below could be a graph +(b) Which graph A-C below could be a graph of \( g(x) \)? \{ $popup->menu() \} $BR $BR diff --git a/OpenProblemLibrary/FortLewis/Algebra/8-3-Shifting-and-scaling/MCH1-8-3-06-Shifting-and-scaling.pg b/OpenProblemLibrary/FortLewis/Algebra/8-3-Shifting-and-scaling/MCH1-8-3-06-Shifting-and-scaling.pg index fc20e0c280..7c6590e997 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/8-3-Shifting-and-scaling/MCH1-8-3-06-Shifting-and-scaling.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/8-3-Shifting-and-scaling/MCH1-8-3-06-Shifting-and-scaling.pg @@ -32,7 +32,7 @@ loadMacros( "PGgraphmacros.pl", "parserPopUp.pl", "unionTables.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -82,19 +82,19 @@ $popup = PopUp(["?","A","B","C"], $letter[$inv[0]]); Context()->texStrings; BEGIN_TEXT -Suppose \( f(x) = x^3 \) and the graph of \( g(x) \) -is the graph of \( f(x) \) shifted vertically up -\( $d \) units and horizontally to the right -\( $b \) units. +Suppose \( f(x) = x^3 \) and the graph of \( g(x) \) +is the graph of \( f(x) \) shifted vertically up +\( $d \) units and horizontally to the right +\( $b \) units. $BR $BR (a) Find a formula for \( g(x) \). $BR \( g(x) \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR -(b) Which graph A-C below could be a graph +(b) Which graph A-C below could be a graph of \( g(x) \)? \{ $popup->menu() \} $BR $BR diff --git a/OpenProblemLibrary/FortLewis/Algebra/8-3-Shifting-and-scaling/MCH1-8-3-12-Shifting-and-scaling.pg b/OpenProblemLibrary/FortLewis/Algebra/8-3-Shifting-and-scaling/MCH1-8-3-12-Shifting-and-scaling.pg index 4ef807ccbb..5a8c5a83e6 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/8-3-Shifting-and-scaling/MCH1-8-3-12-Shifting-and-scaling.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/8-3-Shifting-and-scaling/MCH1-8-3-12-Shifting-and-scaling.pg @@ -30,7 +30,7 @@ loadMacros( "MathObjects.pl", "PGgraphmacros.pl", "unionTables.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -72,14 +72,14 @@ $g = Formula("x^2+($d)")->reduce; Context()->texStrings; BEGIN_TEXT -\{ +\{ ColumnTable( -"The graph in the figure is a horizontal and/or a +"The graph in the figure is a horizontal and/or a vertical shift of the graph of \( y = x^2 \). Find a formula for the function graphed in the figure.". $BR. $BR. -"\( g(x) \) = ".ans_rule(20).$SPACE.AnswerFormatHelp("formulas") +"\( g(x) \) = ".ans_rule(20).$SPACE.helpLink("formulas") , $BCENTER. $fig. diff --git a/OpenProblemLibrary/FortLewis/Algebra/8-3-Shifting-and-scaling/MCH1-8-3-14-Shifting-and-scaling.pg b/OpenProblemLibrary/FortLewis/Algebra/8-3-Shifting-and-scaling/MCH1-8-3-14-Shifting-and-scaling.pg index 6348eb4cc5..57a8205ec0 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/8-3-Shifting-and-scaling/MCH1-8-3-14-Shifting-and-scaling.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/8-3-Shifting-and-scaling/MCH1-8-3-14-Shifting-and-scaling.pg @@ -30,7 +30,7 @@ loadMacros( "MathObjects.pl", "PGgraphmacros.pl", "unionTables.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -72,14 +72,14 @@ $g = Formula("(x+($b))^2")->reduce; Context()->texStrings; BEGIN_TEXT -\{ +\{ ColumnTable( -"The graph in the figure is a horizontal and/or a +"The graph in the figure is a horizontal and/or a vertical shift of the graph of \( y = x^2 \). Find a formula for the function graphed in the figure.". $BR. $BR. -"\( g(x) \) = ".ans_rule(20).$SPACE.AnswerFormatHelp("formulas") +"\( g(x) \) = ".ans_rule(20).$SPACE.helpLink("formulas") , $BCENTER. $fig. diff --git a/OpenProblemLibrary/FortLewis/Algebra/8-3-Shifting-and-scaling/MCH1-8-3-16-Shifting-and-scaling.pg b/OpenProblemLibrary/FortLewis/Algebra/8-3-Shifting-and-scaling/MCH1-8-3-16-Shifting-and-scaling.pg index 81d575d94a..bc783b0023 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/8-3-Shifting-and-scaling/MCH1-8-3-16-Shifting-and-scaling.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/8-3-Shifting-and-scaling/MCH1-8-3-16-Shifting-and-scaling.pg @@ -30,7 +30,7 @@ loadMacros( "MathObjects.pl", "PGgraphmacros.pl", "unionTables.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -73,14 +73,14 @@ $g = Formula("(x+($b))^2+($d)")->reduce; Context()->texStrings; BEGIN_TEXT -\{ +\{ ColumnTable( -"The graph in the figure is a horizontal and/or a +"The graph in the figure is a horizontal and/or a vertical shift of the graph of \( y = x^2 \). Find a formula for the function graphed in the figure.". $BR. $BR. -"\( g(x) \) = ".ans_rule(20).$SPACE.AnswerFormatHelp("formulas") +"\( g(x) \) = ".ans_rule(20).$SPACE.helpLink("formulas") , $BCENTER. $fig. diff --git a/OpenProblemLibrary/FortLewis/Algebra/8-3-Shifting-and-scaling/MCH1-8-3-34-Shifting-and-scaling.pg b/OpenProblemLibrary/FortLewis/Algebra/8-3-Shifting-and-scaling/MCH1-8-3-34-Shifting-and-scaling.pg index 313b378439..da00dd231e 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/8-3-Shifting-and-scaling/MCH1-8-3-34-Shifting-and-scaling.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/8-3-Shifting-and-scaling/MCH1-8-3-34-Shifting-and-scaling.pg @@ -29,12 +29,12 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserFunction.pl", "PGcourse.pl" ); -TEXT(beginproblem()); +TEXT(beginproblem()); #################################### # Setup @@ -55,12 +55,12 @@ of fuel oil burned in \( t \) hours, and Find a formula for \( g \) by scaling the output of \( f \). Use the fact that 1 gallon equals 3.785 liters. You may enter -the function \( f(t) \) verbatim, as you +the function \( f(t) \) verbatim, as you would for any other named function. $BR $BR \( g(t) \) = \{ ans_rule(20) \} gallons -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/8-3-Shifting-and-scaling/MCH1-8-3-38-Shifting-and-scaling.pg b/OpenProblemLibrary/FortLewis/Algebra/8-3-Shifting-and-scaling/MCH1-8-3-38-Shifting-and-scaling.pg index d84b46bc02..2c73963e01 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/8-3-Shifting-and-scaling/MCH1-8-3-38-Shifting-and-scaling.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/8-3-Shifting-and-scaling/MCH1-8-3-38-Shifting-and-scaling.pg @@ -28,13 +28,13 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl" ); -TEXT(beginproblem()); +TEXT(beginproblem()); #################################### # Setup @@ -57,12 +57,12 @@ of a town in year \( t \), and Find a formula for \( g \) by scaling the output of \( f \). Use the fact that 1 mile equals $a kilometers. You may enter -the function \( f(t) \) verbatim, as you +the function \( f(t) \) verbatim, as you would for any other named function. $BR $BR \( g(t) \) = \{ ans_rule(20) \} square kilometers -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; @@ -72,7 +72,7 @@ Context()->normalStrings; $showPartialCorrectAnswers = 1; ANS($answer->cmp() -->withPostFilter(AnswerHints( +->withPostFilter(AnswerHints( Formula("$a * f(t)") => "Hint: You need to convert from SQUARE miles to SQUARE kilometers", )) ); diff --git a/OpenProblemLibrary/FortLewis/Algebra/8-3-Shifting-and-scaling/MCH1-8-3-40-Shifting-and-scaling.pg b/OpenProblemLibrary/FortLewis/Algebra/8-3-Shifting-and-scaling/MCH1-8-3-40-Shifting-and-scaling.pg index 7364821155..762f937d81 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/8-3-Shifting-and-scaling/MCH1-8-3-40-Shifting-and-scaling.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/8-3-Shifting-and-scaling/MCH1-8-3-40-Shifting-and-scaling.pg @@ -28,13 +28,13 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl" ); -TEXT(beginproblem()); +TEXT(beginproblem()); #################################### # Setup @@ -49,7 +49,7 @@ $answer = Formula("f(7*r)"); Context()->texStrings; BEGIN_TEXT -Let \( f(t) \) give the number of liters of +Let \( f(t) \) give the number of liters of fuel oil burned in \( t \) days, and \( w(r) \) the liters burned in \( r \) weeks. Find a formula for \( w \) by scaling @@ -57,7 +57,7 @@ the input of \( f \). $BR $BR \( w(r) \) = \{ ans_rule(20) \} liters -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; @@ -67,7 +67,7 @@ Context()->normalStrings; $showPartialCorrectAnswers = 1; ANS($answer->cmp() -->withPostFilter(AnswerHints( +->withPostFilter(AnswerHints( Formula("f(7*t)") => "Hint: w is a function of the variable r, not t", )) ); diff --git a/OpenProblemLibrary/FortLewis/Algebra/8-3-Shifting-and-scaling/MCH1-8-3-44-Shifting-and-scaling.pg b/OpenProblemLibrary/FortLewis/Algebra/8-3-Shifting-and-scaling/MCH1-8-3-44-Shifting-and-scaling.pg index 053b8a2881..cea1ab298d 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/8-3-Shifting-and-scaling/MCH1-8-3-44-Shifting-and-scaling.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/8-3-Shifting-and-scaling/MCH1-8-3-44-Shifting-and-scaling.pg @@ -28,13 +28,13 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl" ); -TEXT(beginproblem()); +TEXT(beginproblem()); #################################### # Setup @@ -58,7 +58,7 @@ the input of \( f \). $BR $BR \( w(q) \) = \{ ans_rule(20) \} songs -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; @@ -68,7 +68,7 @@ Context()->normalStrings; $showPartialCorrectAnswers = 1; ANS($answer->cmp() -->withPostFilter(AnswerHints( +->withPostFilter(AnswerHints( Formula("f(p/100)") => "Hint: w is a function of the variable q, not p", )) ); diff --git a/OpenProblemLibrary/FortLewis/Algebra/8-3-Shifting-and-scaling/MCH1-8-3-46-Shifting-and-scaling.pg b/OpenProblemLibrary/FortLewis/Algebra/8-3-Shifting-and-scaling/MCH1-8-3-46-Shifting-and-scaling.pg index a527784e27..386c94b1eb 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/8-3-Shifting-and-scaling/MCH1-8-3-46-Shifting-and-scaling.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/8-3-Shifting-and-scaling/MCH1-8-3-46-Shifting-and-scaling.pg @@ -28,12 +28,12 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserFunction.pl", "PGcourse.pl" ); -TEXT(beginproblem()); +TEXT(beginproblem()); #################################### # Setup @@ -50,7 +50,7 @@ $answer = Formula("$a * f(t)"); Context()->texStrings; BEGIN_TEXT -Let \( f(t) \) give the area in acres of a county's +Let \( f(t) \) give the area in acres of a county's topsoil lost to erosion in year \( t \), and \( g(t) \) give the area in hectares lost. Find a formula for \( g \) by scaling @@ -59,7 +59,7 @@ the input and/or output of \( f \). Use the fact that $BR $BR \( g(t) \) = \{ ans_rule(20) \} hectares -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/8-3-Shifting-and-scaling/MCH1-8-3-50-Shifting-and-scaling.pg b/OpenProblemLibrary/FortLewis/Algebra/8-3-Shifting-and-scaling/MCH1-8-3-50-Shifting-and-scaling.pg index 11c5bf4048..7c385a0b27 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/8-3-Shifting-and-scaling/MCH1-8-3-50-Shifting-and-scaling.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/8-3-Shifting-and-scaling/MCH1-8-3-50-Shifting-and-scaling.pg @@ -28,13 +28,13 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl" ); -TEXT(beginproblem()); +TEXT(beginproblem()); #################################### # Setup @@ -51,7 +51,7 @@ $answer = Formula("$a * f(n/24)"); Context()->texStrings; BEGIN_TEXT -Let \( f(t) \) give the number of acres lost to a +Let \( f(t) \) give the number of acres lost to a wildfire \( t \) days after it is set, and \( g(n) \) give the area in hectares lost after \( n \) hours. @@ -61,7 +61,7 @@ the input and/or output of \( f \). Use the fact that $BR $BR \( g(n) \) = \{ ans_rule(20) \} hectares -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; @@ -71,7 +71,7 @@ Context()->normalStrings; $showPartialCorrectAnswers = 1; ANS($answer->cmp() -->withPostFilter(AnswerHints( +->withPostFilter(AnswerHints( Formula("$a * f(t/24)") => "Hint: g is a function of the variable n, not t", )) ); diff --git a/OpenProblemLibrary/FortLewis/Algebra/8-4-Inverse-functions/MCH1-8-4-13-Inverse-functions.pg b/OpenProblemLibrary/FortLewis/Algebra/8-4-Inverse-functions/MCH1-8-4-13-Inverse-functions.pg index 1fc3506d2f..ba52deced5 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/8-4-Inverse-functions/MCH1-8-4-13-Inverse-functions.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/8-4-Inverse-functions/MCH1-8-4-13-Inverse-functions.pg @@ -28,13 +28,13 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl" ); -TEXT(beginproblem()); +TEXT(beginproblem()); #################################### # Setup @@ -62,19 +62,19 @@ Context()->texStrings; BEGIN_TEXT (a) Write a function of \( x \) that performs the following operations: Raise \( x \) to the -$ordinal[$i] power, multiply by $a, and then +$ordinal[$i] power, multiply by $a, and then add $b. $BR \( y = f(x) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR -(b) +(b) Find the inverse to the function you found in part (a). $BR -\( x = g(y) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\( x = g(y) = \) \{ ans_rule(20) \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; @@ -85,15 +85,15 @@ Context()->normalStrings; $showPartialCorrectAnswers = 1; ANS( $answer1->cmp() -->withPostFilter(AnswerHints( +->withPostFilter(AnswerHints( Formula("$a y^($n) + $b")->with(limits=>[[10,11],[0,1]]) => "Hint: f is a function of the variable x, not y", )) ); ANS( $answer2->cmp() -->withPostFilter(AnswerHints( - Formula("( (x-$b) / $a )^(1/$n)")->with(limits=>[[10,11],[0,1]]) +->withPostFilter(AnswerHints( + Formula("( (x-$b) / $a )^(1/$n)")->with(limits=>[[10,11],[0,1]]) => "Hint: g is a function of the variable y, not x", )) ); diff --git a/OpenProblemLibrary/FortLewis/Algebra/8-4-Inverse-functions/MCH1-8-4-14-Inverse-functions.pg b/OpenProblemLibrary/FortLewis/Algebra/8-4-Inverse-functions/MCH1-8-4-14-Inverse-functions.pg index b0dc76e955..7ecce2d987 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/8-4-Inverse-functions/MCH1-8-4-14-Inverse-functions.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/8-4-Inverse-functions/MCH1-8-4-14-Inverse-functions.pg @@ -27,13 +27,13 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl" ); -TEXT(beginproblem()); +TEXT(beginproblem()); #################################### # Setup @@ -60,19 +60,19 @@ $answer2 = Compute("$b y^($n) + $a"); Context()->texStrings; BEGIN_TEXT (a) Write a function of \( x \) that performs -the following operations: Subtract $a from \( x \), +the following operations: Subtract $a from \( x \), divide by $b, and take the $roottype[$i] root. $BR \( y = f(x) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR -(b) +(b) Find the inverse to the function you found in part (a). $BR -\( x = g(y) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\( x = g(y) = \) \{ ans_rule(20) \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; @@ -84,13 +84,13 @@ $showPartialCorrectAnswers = 1; ANS( $answer1->cmp() -->withPostFilter(AnswerHints( +->withPostFilter(AnswerHints( Formula("((y - $a) / $b)^(1/$n)")->with(limits=>[[0,1],[10,11]]) => "Hint: f is a function of the variable x, not y", )) ); ANS( $answer2->cmp() -->withPostFilter(AnswerHints( +->withPostFilter(AnswerHints( Formula("$b x^($n) + $a")->with(limits=>[[0,1],[10,11]]) => "Hint: g is a function of the variable y, not x", )) ); diff --git a/OpenProblemLibrary/FortLewis/Algebra/8-4-Inverse-functions/MCH1-8-4-21-Inverse-functions.pg b/OpenProblemLibrary/FortLewis/Algebra/8-4-Inverse-functions/MCH1-8-4-21-Inverse-functions.pg index 05ebc1f860..c50bf0cfb7 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/8-4-Inverse-functions/MCH1-8-4-21-Inverse-functions.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/8-4-Inverse-functions/MCH1-8-4-21-Inverse-functions.pg @@ -27,13 +27,13 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", "parserPopUp.pl", "PGcourse.pl" ); -TEXT(beginproblem()); +TEXT(beginproblem()); #################################### # Setup @@ -50,24 +50,24 @@ $pop = PopUp(["?","Yes","No"],"Yes"); Context()->texStrings; BEGIN_TEXT -Suppose \( f(x) = $a x - $b \) and +Suppose \( f(x) = $a x - $b \) and \( \displaystyle g(y) = \frac{y}{$a} + \frac{$b}{$a} \). $BR $BR (a) -Find the composition -\( g(f(x)) = \) +Find the composition +\( g(f(x)) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR (b) Find the composition \( f(g(y)) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR -(c) -Are the functions \( f \) and \( g \) inverse to +(c) +Are the functions \( f \) and \( g \) inverse to each other? \{ $pop->menu() \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/8-4-Inverse-functions/MCH1-8-4-24-Inverse-functions.pg b/OpenProblemLibrary/FortLewis/Algebra/8-4-Inverse-functions/MCH1-8-4-24-Inverse-functions.pg index 6bb514c486..b3f8ba1891 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/8-4-Inverse-functions/MCH1-8-4-24-Inverse-functions.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/8-4-Inverse-functions/MCH1-8-4-24-Inverse-functions.pg @@ -27,12 +27,12 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", "PGcourse.pl" ); -TEXT(beginproblem()); +TEXT(beginproblem()); #################################### # Setup @@ -49,24 +49,24 @@ do { $c = random(2,8,2); } until ($c != $a); Context()->texStrings; BEGIN_TEXT -Suppose \( \displaystyle f(x) = $a \left( x + \frac{$b}{$c} \right) \) and +Suppose \( \displaystyle f(x) = $a \left( x + \frac{$b}{$c} \right) \) and \( g(y) \) is inverse to \( f(x) \). $BR $BR (a) Find the composition -\( g(f(x)) = \) +\( g(f(x)) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR (b) Find the composition \( f(g(y)) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR -(c) A formula for \( x = g(y) \) is +(c) A formula for \( x = g(y) \) is \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; @@ -80,8 +80,8 @@ $showPartialCorrectAnswers = 1; ANS( Compute("x")->cmp() ); ANS( Compute("y")->cmp() ); -ANS( Compute("y/$a - $b/$c")->cmp() -->withPostFilter(AnswerHints( +ANS( Compute("y/$a - $b/$c")->cmp() +->withPostFilter(AnswerHints( Formula("x/$a - $b/$c") => "Hint: g is a function of the variable y, not x", )) ); diff --git a/OpenProblemLibrary/FortLewis/Algebra/8-4-Inverse-functions/MCH1-8-4-30-Inverse-functions.pg b/OpenProblemLibrary/FortLewis/Algebra/8-4-Inverse-functions/MCH1-8-4-30-Inverse-functions.pg index 34cda71836..d1468d98cb 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/8-4-Inverse-functions/MCH1-8-4-30-Inverse-functions.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/8-4-Inverse-functions/MCH1-8-4-30-Inverse-functions.pg @@ -28,13 +28,13 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl" ); -TEXT(beginproblem()); +TEXT(beginproblem()); #################################### # Setup @@ -56,8 +56,8 @@ BEGIN_TEXT Find the inverse function to \( y = f(x) = $a x + $b \). $BR $BR -\( x = g(y) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\( x = g(y) = \) \{ ans_rule(20) \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; @@ -67,7 +67,7 @@ Context()->normalStrings; $showPartialCorrectAnswers = 1; ANS($answer->cmp() -->withPostFilter(AnswerHints( +->withPostFilter(AnswerHints( Formula("(x-$b)/$a") => "Hint: g is a function of the variable y, not x", )) ); diff --git a/OpenProblemLibrary/FortLewis/Algebra/8-4-Inverse-functions/MCH1-8-4-32-Inverse-functions.pg b/OpenProblemLibrary/FortLewis/Algebra/8-4-Inverse-functions/MCH1-8-4-32-Inverse-functions.pg index 44bca1ceee..0b801e2721 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/8-4-Inverse-functions/MCH1-8-4-32-Inverse-functions.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/8-4-Inverse-functions/MCH1-8-4-32-Inverse-functions.pg @@ -28,13 +28,13 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl" ); -TEXT(beginproblem()); +TEXT(beginproblem()); #################################### # Setup @@ -55,8 +55,8 @@ BEGIN_TEXT Find the inverse function to \( y = f(x) = \sqrt[$a]{x+$b} \). $BR $BR -\( x = g(y) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\( x = g(y) = \) \{ ans_rule(20) \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; @@ -66,7 +66,7 @@ Context()->normalStrings; $showPartialCorrectAnswers = 1; ANS($answer->cmp() -->withPostFilter(AnswerHints( +->withPostFilter(AnswerHints( Formula("x^$a - $b") => "Hint: g is a function of the variable y, not x", )) ); diff --git a/OpenProblemLibrary/FortLewis/Algebra/8-4-Inverse-functions/MCH1-8-4-34-Inverse-functions.pg b/OpenProblemLibrary/FortLewis/Algebra/8-4-Inverse-functions/MCH1-8-4-34-Inverse-functions.pg index cc98b694c3..fed54fb81a 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/8-4-Inverse-functions/MCH1-8-4-34-Inverse-functions.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/8-4-Inverse-functions/MCH1-8-4-34-Inverse-functions.pg @@ -29,13 +29,13 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl" ); -TEXT(beginproblem()); +TEXT(beginproblem()); #################################### # Setup @@ -62,8 +62,8 @@ Find the inverse function to \( \displaystyle y = f(x) = \frac{$a - $b x}{$c - $d x} \). $BR $BR -\( x = g(y) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\( x = g(y) = \) \{ ans_rule(20) \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; @@ -73,7 +73,7 @@ Context()->normalStrings; $showPartialCorrectAnswers = 1; ANS($answer->cmp() -->withPostFilter(AnswerHints( +->withPostFilter(AnswerHints( Formula("($a - $c x)/($b - $d x)") => "Hint: g is a function of the variable y, not x", )) ); diff --git a/OpenProblemLibrary/FortLewis/Algebra/9-1-Quadratic-functions/MCH1-9-1-02-Quadratic-functions.pg b/OpenProblemLibrary/FortLewis/Algebra/9-1-Quadratic-functions/MCH1-9-1-02-Quadratic-functions.pg index 48e003ed93..1555ba3eb9 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/9-1-Quadratic-functions/MCH1-9-1-02-Quadratic-functions.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/9-1-Quadratic-functions/MCH1-9-1-02-Quadratic-functions.pg @@ -27,12 +27,12 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserNumberWithUnits.pl", "PGcourse.pl" ); -TEXT(beginproblem()); +TEXT(beginproblem()); #################################### # Setup @@ -55,28 +55,28 @@ $answerb = NumberWithUnits("$a","s"); Context()->texStrings; BEGIN_TEXT A coin, thrown upward at time \( t = 0 \) from -an office in the Empire State Building, +an office in the Empire State Building, has height in feet above the ground \( t \) seconds -later given by +later given by $PAR $BCENTER -\( -h(t) -= $p[2] t^2 + $p[1] t + $p[0] +\( +h(t) += $p[2] t^2 + $p[1] t + $p[0] = -16 (t-$a)(t+$b). \) $ECENTER $PAR (a) From what height is the coin thrown? Include units in your answer. -\{ ans_rule(20) \} -\{ AnswerFormatHelp("units","help (units)") \} +\{ ans_rule(20) \} +\{ helpLink("units","help (units)") \} $BR $BR (b) At what time does the coin hit the ground? Include units in your answer. -\{ ans_rule(20) \} -\{ AnswerFormatHelp("units","help (units)") \} +\{ ans_rule(20) \} +\{ helpLink("units","help (units)") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/9-1-Quadratic-functions/MCH1-9-1-04-Quadratic-functions.pg b/OpenProblemLibrary/FortLewis/Algebra/9-1-Quadratic-functions/MCH1-9-1-04-Quadratic-functions.pg index 3a3de6c913..0c0ecb4c32 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/9-1-Quadratic-functions/MCH1-9-1-04-Quadratic-functions.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/9-1-Quadratic-functions/MCH1-9-1-04-Quadratic-functions.pg @@ -27,12 +27,12 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextInequalities.pl", "PGcourse.pl" ); -TEXT(beginproblem()); +TEXT(beginproblem()); #################################### # Setup @@ -56,19 +56,19 @@ Suppose \( f(x) = (x-$b)(x+$a) \). $BR $BR (a) For which values of \( x \) is the function -\( f(x) \) positive? Enter your answer using +\( f(x) \) positive? Enter your answer using inequalities. $BR -\{ ans_rule(30) \} -\{ AnswerFormatHelp("inequalities") \} +\{ ans_rule(30) \} +\{ helpLink("inequalities") \} $BR $BR (a) For which values of \( x \) is the function -\( f(x) \) negative? Enter your answer using +\( f(x) \) negative? Enter your answer using inequalities. $BR -\{ ans_rule(30) \} -\{ AnswerFormatHelp("inequalities") \} +\{ ans_rule(30) \} +\{ helpLink("inequalities") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/9-1-Quadratic-functions/MCH1-9-1-06-Quadratic-functions.pg b/OpenProblemLibrary/FortLewis/Algebra/9-1-Quadratic-functions/MCH1-9-1-06-Quadratic-functions.pg index e01d04c761..cf25ef1505 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/9-1-Quadratic-functions/MCH1-9-1-06-Quadratic-functions.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/9-1-Quadratic-functions/MCH1-9-1-06-Quadratic-functions.pg @@ -27,12 +27,12 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextInequalities.pl", "PGcourse.pl" ); -TEXT(beginproblem()); +TEXT(beginproblem()); #################################### # Setup @@ -71,19 +71,19 @@ Suppose \( f(x) = $f \). $BR $BR (a) For which values of \( x \) is the function -\( f(x) \) positive? Enter your answer using +\( f(x) \) positive? Enter your answer using inequalities. $BR -\{ ans_rule(30) \} -\{ AnswerFormatHelp("inequalities") \} +\{ ans_rule(30) \} +\{ helpLink("inequalities") \} $BR $BR (a) For which values of \( x \) is the function -\( f(x) \) negative? Enter your answer using +\( f(x) \) negative? Enter your answer using inequalities. $BR -\{ ans_rule(30) \} -\{ AnswerFormatHelp("inequalities") \} +\{ ans_rule(30) \} +\{ helpLink("inequalities") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/9-1-Quadratic-functions/MCH1-9-1-32-Quadratic-functions.pg b/OpenProblemLibrary/FortLewis/Algebra/9-1-Quadratic-functions/MCH1-9-1-32-Quadratic-functions.pg index b5c88b0c8e..b3bc0680e4 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/9-1-Quadratic-functions/MCH1-9-1-32-Quadratic-functions.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/9-1-Quadratic-functions/MCH1-9-1-32-Quadratic-functions.pg @@ -27,12 +27,12 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextInequalities.pl", "PGcourse.pl" ); -TEXT(beginproblem()); +TEXT(beginproblem()); #################################### # Setup @@ -51,14 +51,14 @@ $answera = Compute("x <= -$a or $b <= x"); Context()->texStrings; BEGIN_TEXT -Use what you know about the graphs of quadratic -functions to find the domain of -\( f(x) = \sqrt{(x-$b)(x+$a)} \). Enter your +Use what you know about the graphs of quadratic +functions to find the domain of +\( f(x) = \sqrt{(x-$b)(x+$a)} \). Enter your answer using inequalities. $BR $BR -\{ ans_rule(30) \} -\{ AnswerFormatHelp("inequalities") \} +\{ ans_rule(30) \} +\{ helpLink("inequalities") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/9-2-Quadratic-expressions/MCH1-9-2-02-Quadratic-expressions.pg b/OpenProblemLibrary/FortLewis/Algebra/9-2-Quadratic-expressions/MCH1-9-2-02-Quadratic-expressions.pg index e380180074..ef01014613 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/9-2-Quadratic-expressions/MCH1-9-2-02-Quadratic-expressions.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/9-2-Quadratic-expressions/MCH1-9-2-02-Quadratic-expressions.pg @@ -27,13 +27,13 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGgraphmacros.pl", "unionTables.pl", "PGcourse.pl" ); -TEXT(beginproblem()); +TEXT(beginproblem()); $refreshCachedImages=1; @@ -70,7 +70,7 @@ ColumnTable( "Find a possible formula for the quadratic function in the graph.". $BR. $BR. -"\( f(x) = \) ".ans_rule(30).$SPACE.AnswerFormatHelp("formulas") +"\( f(x) = \) ".ans_rule(30).$SPACE.helpLink("formulas") , image(insertGraph($gr),width=>300,height=>300,tex_size=>400) , @@ -88,11 +88,11 @@ $showPartialCorrectAnswers = 1; sub mycheck { my ($correct, $student, $ansHash) = @_; - if ( + if ( ( ($student->eval(x=>-$a)) == 0 ) && ( ($student->eval(x=>$b)) == 0 ) && ( ($student->D('x')->eval(x=>($b-$a)/2)) == 0 ) && - ( ($student->D('x')->D('x')->D('x')) == 0 ) + ( ($student->D('x')->D('x')->D('x')) == 0 ) ) { if ( ( $s==1 && ( ($student->eval(x=>0)) < 0 ) ) || ( $s==-1 && ( ($student->eval(x=>0)) > 0 ) ) diff --git a/OpenProblemLibrary/FortLewis/Algebra/9-2-Quadratic-expressions/MCH1-9-2-05-Quadratic-expressions.pg b/OpenProblemLibrary/FortLewis/Algebra/9-2-Quadratic-expressions/MCH1-9-2-05-Quadratic-expressions.pg index 983f5f2275..b1a68c21a2 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/9-2-Quadratic-expressions/MCH1-9-2-05-Quadratic-expressions.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/9-2-Quadratic-expressions/MCH1-9-2-05-Quadratic-expressions.pg @@ -25,11 +25,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); -TEXT(beginproblem()); +TEXT(beginproblem()); #################################### @@ -70,9 +70,9 @@ whose graph has vertex \( ($h,$k) \) and \(y\)-intercept \( $yint \). $BR $BR -\( f(x) = \) +\( f(x) = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/9-2-Quadratic-expressions/MCH1-9-2-10-Quadratic-expressions.pg b/OpenProblemLibrary/FortLewis/Algebra/9-2-Quadratic-expressions/MCH1-9-2-10-Quadratic-expressions.pg index 4e4020cfa2..c0131321ae 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/9-2-Quadratic-expressions/MCH1-9-2-10-Quadratic-expressions.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/9-2-Quadratic-expressions/MCH1-9-2-10-Quadratic-expressions.pg @@ -27,11 +27,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); -TEXT(beginproblem()); +TEXT(beginproblem()); #################################### @@ -43,7 +43,7 @@ $a = random(2,3,1); if ($a==2) { $atext = "twice"; } else { - $atext = "three times"; + $atext = "three times"; } $b = random(2,8,1); @@ -55,17 +55,17 @@ $answer = Formula("x ($a x + $b) / 2"); # Main text BEGIN_TEXT -The height of a right triangle is \( $b \) +The height of a right triangle is \( $b \) feet more than $atext the length of its -base. Express the area of the triangle +base. Express the area of the triangle as a function of the length of its base, \( x \), in feet. $BR $BR -\( f(x) = \) +\( f(x) = \) \{ ans_rule(30) \} square feet -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/9-2-Quadratic-expressions/MCH1-9-2-12-Quadratic-expressions.pg b/OpenProblemLibrary/FortLewis/Algebra/9-2-Quadratic-expressions/MCH1-9-2-12-Quadratic-expressions.pg index f4d00db647..483e5f6663 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/9-2-Quadratic-expressions/MCH1-9-2-12-Quadratic-expressions.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/9-2-Quadratic-expressions/MCH1-9-2-12-Quadratic-expressions.pg @@ -27,14 +27,14 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextLimitedPolynomial.pl", "contextPolynomialFactors.pl", "contextLimitedPowers.pl", "PGcourse.pl" ); -TEXT(beginproblem()); +TEXT(beginproblem()); #################################### @@ -85,34 +85,34 @@ The quadratic expression \( $vertexform \) is written in vertex form. $BR $BR -(a) Write the expression in standard form +(a) Write the expression in standard form \( ax^2 + bx + c \). $BR \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR (b) Write the expression in factored form \( k(ax+b)(cx+d) \). $BR \{ ans_rule(20)\} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR -(c) Evaluate the expression at \( x = 0 \) -using each of the three forms, compare +(c) Evaluate the expression at \( x = 0 \) +using each of the three forms, compare the results, and enter your answer below. $BR \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR $BR -(d) Evaluate the expression at \( x = $r \) -using each of the three forms, compare +(d) Evaluate the expression at \( x = $r \) +using each of the three forms, compare the results, and enter your answer below. $BR \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/9-2-Quadratic-expressions/MCH1-9-2-16-Quadratic-expressions.pg b/OpenProblemLibrary/FortLewis/Algebra/9-2-Quadratic-expressions/MCH1-9-2-16-Quadratic-expressions.pg index 58a6b09f02..a452d83a19 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/9-2-Quadratic-expressions/MCH1-9-2-16-Quadratic-expressions.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/9-2-Quadratic-expressions/MCH1-9-2-16-Quadratic-expressions.pg @@ -27,11 +27,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); -TEXT(beginproblem()); +TEXT(beginproblem()); #################################### @@ -51,7 +51,7 @@ $C = Compute("$c"); # Main text BEGIN_TEXT -Express the quadratic function +Express the quadratic function \( f(p) = $c - \sqrt{$a} p^2 \) in standard form \( a p^2 + b p + c \) and identify the coefficients \( a, b, \) @@ -59,13 +59,13 @@ and \( c \). $BR $BR \( a \) = \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR \( b \) = \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR \( c \) = \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/9-2-Quadratic-expressions/MCH1-9-2-22-Quadratic-expressions.pg b/OpenProblemLibrary/FortLewis/Algebra/9-2-Quadratic-expressions/MCH1-9-2-22-Quadratic-expressions.pg index 0048a1cef3..63f5e37e36 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/9-2-Quadratic-expressions/MCH1-9-2-22-Quadratic-expressions.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/9-2-Quadratic-expressions/MCH1-9-2-22-Quadratic-expressions.pg @@ -27,12 +27,12 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextLimitedPolynomial.pl", "PGcourse.pl" ); -TEXT(beginproblem()); +TEXT(beginproblem()); #################################### @@ -55,13 +55,13 @@ $f = Formula("$p[2] t^2 + $p[1] t + $p[0]")->reduce; # Main text BEGIN_TEXT -Express the quadratic function +Express the quadratic function \( f(t) = $a ($b t - 1) (t + $c) \) in standard form \( a t^2 + b t + c \). $BR $BR \( f(t) \) = \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/9-2-Quadratic-expressions/MCH1-9-2-26-Quadratic-expressions.pg b/OpenProblemLibrary/FortLewis/Algebra/9-2-Quadratic-expressions/MCH1-9-2-26-Quadratic-expressions.pg index 7871f06c46..e1aeee04d6 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/9-2-Quadratic-expressions/MCH1-9-2-26-Quadratic-expressions.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/9-2-Quadratic-expressions/MCH1-9-2-26-Quadratic-expressions.pg @@ -29,7 +29,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextPolynomialFactors.pl", "contextLimitedPowers.pl", "PGcourse.pl" @@ -65,9 +65,9 @@ Write the expression $expression in factored form \( k (ax+b)(cx+d) \). $BR $BR -$expression = +$expression = \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/9-2-Quadratic-expressions/MCH1-9-2-28-Quadratic-expressions.pg b/OpenProblemLibrary/FortLewis/Algebra/9-2-Quadratic-expressions/MCH1-9-2-28-Quadratic-expressions.pg index 9474f0fec2..888ef45838 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/9-2-Quadratic-expressions/MCH1-9-2-28-Quadratic-expressions.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/9-2-Quadratic-expressions/MCH1-9-2-28-Quadratic-expressions.pg @@ -29,7 +29,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextPolynomialFactors.pl", "contextLimitedPowers.pl", "PGcourse.pl" @@ -63,13 +63,13 @@ $p[2] = $a * $a; Context()->texStrings; BEGIN_TEXT -Write the expression \( $p[2] t^2 + $p[1] t + $p[0] \) +Write the expression \( $p[2] t^2 + $p[1] t + $p[0] \) in factored form \( k (at+b)(ct+d) \). $BR $BR -\( $p[2] t^2 + $p[1] t + $p[0] \) = +\( $p[2] t^2 + $p[1] t + $p[0] \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/9-2-Quadratic-expressions/MCH1-9-2-32-Quadratic-expressions.pg b/OpenProblemLibrary/FortLewis/Algebra/9-2-Quadratic-expressions/MCH1-9-2-32-Quadratic-expressions.pg index 04fd72ff4e..1ceba85785 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/9-2-Quadratic-expressions/MCH1-9-2-32-Quadratic-expressions.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/9-2-Quadratic-expressions/MCH1-9-2-32-Quadratic-expressions.pg @@ -29,7 +29,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -54,22 +54,22 @@ $K = Compute("-$c"); Context()->texStrings; BEGIN_TEXT -Put the function \( \displaystyle y = \frac{(x+$a)^2}{$b} - $c \) -in vertex form \( f(x) = a(x-h)^2 + k \) and determine the +Put the function \( \displaystyle y = \frac{(x+$a)^2}{$b} - $c \) +in vertex form \( f(x) = a(x-h)^2 + k \) and determine the values of \( a, h, \) and \( k \). $BR $BR -\( a \) = +\( a \) = \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR -\( h \) = +\( h \) = \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR -\( k \) = +\( k \) = \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/9-2-Quadratic-expressions/MCH1-9-2-36-Quadratic-expressions.pg b/OpenProblemLibrary/FortLewis/Algebra/9-2-Quadratic-expressions/MCH1-9-2-36-Quadratic-expressions.pg index e9949191fc..48e498d92c 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/9-2-Quadratic-expressions/MCH1-9-2-36-Quadratic-expressions.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/9-2-Quadratic-expressions/MCH1-9-2-36-Quadratic-expressions.pg @@ -29,7 +29,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -58,22 +58,22 @@ $K = Compute("$cmabb"); Context()->texStrings; BEGIN_TEXT -Put the function \( \displaystyle y = $a x^2 + $ab2 x + $c \) -in vertex form \( f(x) = a(x-h)^2 + k \) and determine the +Put the function \( \displaystyle y = $a x^2 + $ab2 x + $c \) +in vertex form \( f(x) = a(x-h)^2 + k \) and determine the values of \( a, h, \) and \( k \). $BR $BR -\( a \) = +\( a \) = \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR -\( h \) = +\( h \) = \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR -\( k \) = +\( k \) = \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/9-2-Quadratic-expressions/MCH1-9-2-46-Quadratic-expressions.pg b/OpenProblemLibrary/FortLewis/Algebra/9-2-Quadratic-expressions/MCH1-9-2-46-Quadratic-expressions.pg index fbc57b629a..f0e35365d7 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/9-2-Quadratic-expressions/MCH1-9-2-46-Quadratic-expressions.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/9-2-Quadratic-expressions/MCH1-9-2-46-Quadratic-expressions.pg @@ -29,7 +29,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -55,25 +55,25 @@ $p[2] = $a; Context()->texStrings; BEGIN_TEXT -Suppose \( y = $p[2] x^2 + $p[1] x + $p[0] \). +Suppose \( y = $p[2] x^2 + $p[1] x + $p[0] \). In each part below, if there is more than one correct -answer, enter your answers as a comma separated list. +answer, enter your answers as a comma separated list. If there are no correct answers, enter ${BITALIC}NONE.${EITALIC} $BR $BR (a) Find the y-intercept(s). $BR -\( y \) = +\( y \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR $BR -(b) Find the x-intercept(s). +(b) Find the x-intercept(s). $BR -\( x \) = +\( x \) = \{ ans_rule(40) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/9-2-Quadratic-expressions/MCH1-9-2-50-Quadratic-expressions.pg b/OpenProblemLibrary/FortLewis/Algebra/9-2-Quadratic-expressions/MCH1-9-2-50-Quadratic-expressions.pg index d3b02bb8c8..c8ff43e2eb 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/9-2-Quadratic-expressions/MCH1-9-2-50-Quadratic-expressions.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/9-2-Quadratic-expressions/MCH1-9-2-50-Quadratic-expressions.pg @@ -29,7 +29,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserVectorUtils.pl", "PGcourse.pl" ); @@ -56,14 +56,14 @@ $K = Real("$a^2+$b"); Context()->texStrings; BEGIN_TEXT -Find the vertex of the parabola +Find the vertex of the parabola \( y = $a2 x + $b - x^2 \). Enter your answer as a point \( (h,k) \), including the parentheses. $BR $BR -The vertex is at the point +The vertex is at the point \{ ans_rule(20) \} -\{ AnswerFormatHelp("points") \} +\{ helpLink("points") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/9-2-Quadratic-expressions/MCH1-9-2-54-Quadratic-expressions.pg b/OpenProblemLibrary/FortLewis/Algebra/9-2-Quadratic-expressions/MCH1-9-2-54-Quadratic-expressions.pg index b2d95c783f..cfc9596c43 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/9-2-Quadratic-expressions/MCH1-9-2-54-Quadratic-expressions.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/9-2-Quadratic-expressions/MCH1-9-2-54-Quadratic-expressions.pg @@ -29,7 +29,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -65,19 +65,19 @@ if ($s == 1) { Context()->texStrings; BEGIN_TEXT Find the minimum and maximum value of the function -\( y = $expr \). Enter -${BITALIC}infinity${EITALIC} or -${BITALIC}-infinity${EITALIC} if the function +\( y = $expr \). Enter +${BITALIC}infinity${EITALIC} or +${BITALIC}-infinity${EITALIC} if the function never stops increasing or decreasing. $BR $BR -Maximum value = +Maximum value = \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR -Minimum value = +Minimum value = \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/9-3-Completing-the-square/MCH1-9-3-06-Completing-the-square.pg b/OpenProblemLibrary/FortLewis/Algebra/9-3-Completing-the-square/MCH1-9-3-06-Completing-the-square.pg index 29f39bde26..348070aee4 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/9-3-Completing-the-square/MCH1-9-3-06-Completing-the-square.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/9-3-Completing-the-square/MCH1-9-3-06-Completing-the-square.pg @@ -28,11 +28,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); -TEXT(beginproblem()); +TEXT(beginproblem()); #################################### @@ -73,8 +73,8 @@ Write the equation \( -$a ($b x - $c) (x - 1) = 0 \) in the standard form \( a x^2 + b x + c = 0 \). $BR $BR -\{ ans_rule(20) \} \( = 0. \) $SPACE$SPACE -\{ AnswerFormatHelp("formulas") \} +\{ ans_rule(20) \} \( = 0. \) $SPACE$SPACE +\{ helpLink("formulas") \} END_TEXT @@ -83,7 +83,7 @@ END_TEXT $showPartialCorrectAnswers = 1; -ANS($answer->cmp(checker => +ANS($answer->cmp(checker => sub { my ( $correct, $student, $self ) = @_; my $context = Context()->copy; diff --git a/OpenProblemLibrary/FortLewis/Algebra/9-3-Completing-the-square/MCH1-9-3-08-Completing-the-square.pg b/OpenProblemLibrary/FortLewis/Algebra/9-3-Completing-the-square/MCH1-9-3-08-Completing-the-square.pg index 41b00b0bce..bc9f56bb34 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/9-3-Completing-the-square/MCH1-9-3-08-Completing-the-square.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/9-3-Completing-the-square/MCH1-9-3-08-Completing-the-square.pg @@ -28,11 +28,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); -TEXT(beginproblem()); +TEXT(beginproblem()); #################################### @@ -77,8 +77,8 @@ Write the equation \( $a x ($a - x - $b (x - $a)) = ($c x - $d)($d x - $c) \) in the standard form \( a x^2 + b x + c = 0 \). $BR $BR -\{ ans_rule(20) \} \( = 0. \) $SPACE$SPACE -\{ AnswerFormatHelp("formulas") \} +\{ ans_rule(20) \} \( = 0. \) $SPACE$SPACE +\{ helpLink("formulas") \} END_TEXT @@ -87,7 +87,7 @@ END_TEXT $showPartialCorrectAnswers = 1; -ANS($answer->cmp(checker => +ANS($answer->cmp(checker => sub { my ( $correct, $student, $self ) = @_; my $context = Context()->copy; diff --git a/OpenProblemLibrary/FortLewis/Algebra/9-3-Completing-the-square/MCH1-9-3-10-Completing-the-square.pg b/OpenProblemLibrary/FortLewis/Algebra/9-3-Completing-the-square/MCH1-9-3-10-Completing-the-square.pg index 4240373fa5..47eaf4a20d 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/9-3-Completing-the-square/MCH1-9-3-10-Completing-the-square.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/9-3-Completing-the-square/MCH1-9-3-10-Completing-the-square.pg @@ -28,11 +28,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); -TEXT(beginproblem()); +TEXT(beginproblem()); #################################### @@ -68,13 +68,13 @@ Context()->{error}{convert} = sub { # Main text BEGIN_TEXT -Write the equation \( $a x \big( (x+1)^2 - $b \big) +Write the equation \( $a x \big( (x+1)^2 - $b \big) = $a x \big( (x+1)^2 - x \big) \) in the standard form \( a x^2 + b x + c = 0 \). $BR $BR -\{ ans_rule(20) \} \( = 0. \) $SPACE$SPACE -\{ AnswerFormatHelp("formulas") \} +\{ ans_rule(20) \} \( = 0. \) $SPACE$SPACE +\{ helpLink("formulas") \} END_TEXT @@ -83,7 +83,7 @@ END_TEXT $showPartialCorrectAnswers = 1; -ANS($answer->cmp(checker => +ANS($answer->cmp(checker => sub { my ( $correct, $student, $self ) = @_; my $context = Context()->copy; diff --git a/OpenProblemLibrary/FortLewis/Algebra/9-3-Completing-the-square/MCH1-9-3-14-Completing-the-square.pg b/OpenProblemLibrary/FortLewis/Algebra/9-3-Completing-the-square/MCH1-9-3-14-Completing-the-square.pg index 16f534cc49..d4818e18c8 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/9-3-Completing-the-square/MCH1-9-3-14-Completing-the-square.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/9-3-Completing-the-square/MCH1-9-3-14-Completing-the-square.pg @@ -28,11 +28,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); -TEXT(beginproblem()); +TEXT(beginproblem()); #################################### @@ -55,12 +55,12 @@ $answer = List(Real("$b-$a"),Real("-$b-$a")); BEGIN_TEXT Solve the quadratic equation \( (x + $a)^2 - $bb = 0 \) by taking square roots. If there is more than one correct -answer, enter your answers as a comma separated list. If +answer, enter your answers as a comma separated list. If there are no real solutions, enter ${BITALIC}NONE.${EITALIC} $BR $BR -\( x \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\( x \) = \{ ans_rule(20) \} +\{ helpLink("numbers") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/9-3-Completing-the-square/MCH1-9-3-16-Completing-the-square.pg b/OpenProblemLibrary/FortLewis/Algebra/9-3-Completing-the-square/MCH1-9-3-16-Completing-the-square.pg index 287edcb0ce..f5473cd095 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/9-3-Completing-the-square/MCH1-9-3-16-Completing-the-square.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/9-3-Completing-the-square/MCH1-9-3-16-Completing-the-square.pg @@ -28,11 +28,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); -TEXT(beginproblem()); +TEXT(beginproblem()); #################################### @@ -55,12 +55,12 @@ $answer = List(Compute("NONE")); BEGIN_TEXT Solve the quadratic equation \( (x + $a)^2 + $bb = 0 \) by taking square roots. If there is more than one correct -answer, enter your answers as a comma separated list. If +answer, enter your answers as a comma separated list. If there are no real solutions, enter ${BITALIC}NONE.${EITALIC} $BR $BR -\( x \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\( x \) = \{ ans_rule(20) \} +\{ helpLink("numbers") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/9-3-Completing-the-square/MCH1-9-3-24-Completing-the-square.pg b/OpenProblemLibrary/FortLewis/Algebra/9-3-Completing-the-square/MCH1-9-3-24-Completing-the-square.pg index 03218007bc..ca363b1857 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/9-3-Completing-the-square/MCH1-9-3-24-Completing-the-square.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/9-3-Completing-the-square/MCH1-9-3-24-Completing-the-square.pg @@ -28,11 +28,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); -TEXT(beginproblem()); +TEXT(beginproblem()); #################################### @@ -56,12 +56,12 @@ $answer = List(Real("$a + sqrt($aa+$b)"),Real("$a - sqrt($aa+$b)")); BEGIN_TEXT Solve the quadratic equation \( x^2 - $a2 x - $b = 0 \). If there is more than one correct -answer, enter your answers as a comma separated list. If +answer, enter your answers as a comma separated list. If there are no real solutions, enter ${BITALIC}NONE.${EITALIC} $BR $BR -\( x \) = \{ ans_rule(30) \} -\{ AnswerFormatHelp("numbers") \} +\( x \) = \{ ans_rule(30) \} +\{ helpLink("numbers") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/9-3-Completing-the-square/MCH1-9-3-28-Completing-the-square.pg b/OpenProblemLibrary/FortLewis/Algebra/9-3-Completing-the-square/MCH1-9-3-28-Completing-the-square.pg index dd48e094f3..9533501b67 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/9-3-Completing-the-square/MCH1-9-3-28-Completing-the-square.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/9-3-Completing-the-square/MCH1-9-3-28-Completing-the-square.pg @@ -29,11 +29,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); -TEXT(beginproblem()); +TEXT(beginproblem()); #################################### @@ -62,12 +62,12 @@ $answer = List($x1,$x2); BEGIN_TEXT Solve the quadratic equation \( ($a x + $b) (x - $c) = $d \). If there is more than one correct -answer, enter your answers as a comma separated list. If +answer, enter your answers as a comma separated list. If there are no real solutions, enter ${BITALIC}NONE.${EITALIC} $BR $BR -\( x \) = \{ ans_rule(40) \} -\{ AnswerFormatHelp("numbers") \} +\( x \) = \{ ans_rule(40) \} +\{ helpLink("numbers") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/9-3-Completing-the-square/MCH1-9-3-34-Completing-the-square.pg b/OpenProblemLibrary/FortLewis/Algebra/9-3-Completing-the-square/MCH1-9-3-34-Completing-the-square.pg index 095181191b..979524546b 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/9-3-Completing-the-square/MCH1-9-3-34-Completing-the-square.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/9-3-Completing-the-square/MCH1-9-3-34-Completing-the-square.pg @@ -26,12 +26,12 @@ #################################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -70,7 +70,7 @@ $r2 = Compute("-($h) - sqrt($hh + $b)"); Context()->texStrings; BEGIN_TEXT (a) Complete the square by writing \( $expr \) in the form -\( ($var-h)^2+k \). Note: the numbers \( h \) and \( k \) +\( ($var-h)^2+k \). Note: the numbers \( h \) and \( k \) can be positive or negative. $BR $BR @@ -78,10 +78,10 @@ $BR \{ ans_rule(10) \} \( \big)^2 + \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR -(b) Solve the equation \( $expr = 0 \) by completing the +(b) Solve the equation \( $expr = 0 \) by completing the square or using the quadratic formula. If there is more than one correct answer, enter your answers as a comma separated list. If there are no real solutions, enter @@ -89,7 +89,7 @@ ${BITALIC}NONE.${EITALIC} $BR $BR \( x \) = \{ ans_rule(30) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/9-3-Completing-the-square/MCH1-9-3-38-Completing-the-square.pg b/OpenProblemLibrary/FortLewis/Algebra/9-3-Completing-the-square/MCH1-9-3-38-Completing-the-square.pg index 0147b0083a..e6481f9c7a 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/9-3-Completing-the-square/MCH1-9-3-38-Completing-the-square.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/9-3-Completing-the-square/MCH1-9-3-38-Completing-the-square.pg @@ -25,12 +25,12 @@ #################################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -65,27 +65,27 @@ $r2 = Compute("-($h) - sqrt( ($ahh - 1) / ($a) )"); Context()->texStrings; BEGIN_TEXT (a) Complete the square by writing \( $expr \) in the form -\( a($var-h)^2+k \). Note: the numbers \( a, h \) and \( k \) +\( a($var-h)^2+k \). Note: the numbers \( a, h \) and \( k \) can be positive or negative. $BR $BR -\( $expr = \) +\( $expr = \) \{ ans_rule(5) \} \( \cdot \big( \) \{ ans_rule(10) \} \( \big)^2 + \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR -(b) Solve the equation \( $expr = 0 \) by completing the square -or using the quadratic formula. If there is more than one -correct answer, enter your answers as a comma separated list. +(b) Solve the equation \( $expr = 0 \) by completing the square +or using the quadratic formula. If there is more than one +correct answer, enter your answers as a comma separated list. If there are no real solutions, enter ${BITALIC}NONE.${EITALIC} $BR $BR \( x \) = \{ ans_rule(30) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/9-3-Completing-the-square/MCH1-9-3-44-Completing-the-square.pg b/OpenProblemLibrary/FortLewis/Algebra/9-3-Completing-the-square/MCH1-9-3-44-Completing-the-square.pg index 9c4825ff41..7188ef9c55 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/9-3-Completing-the-square/MCH1-9-3-44-Completing-the-square.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/9-3-Completing-the-square/MCH1-9-3-44-Completing-the-square.pg @@ -25,12 +25,12 @@ #################################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -59,27 +59,27 @@ $ansc = Formula("$b - $a/4"); Context()->texStrings; BEGIN_TEXT (a) Complete the square by writing \( $expr \) in the form -\( a($var-h)^2+k \). Note: the numbers \( a, h \) and \( k \) +\( a($var-h)^2+k \). Note: the numbers \( a, h \) and \( k \) can be positive or negative. $BR $BR -\( $expr = \) +\( $expr = \) \{ ans_rule(5) \} \( \cdot \big( \) \{ ans_rule(10) \} \( \big)^2 + \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR -(b) Solve the equation \( $expr = 0 \) by completing the square -or using the quadratic formula. If there is more than one -correct answer, enter your answers as a comma separated list. +(b) Solve the equation \( $expr = 0 \) by completing the square +or using the quadratic formula. If there is more than one +correct answer, enter your answers as a comma separated list. If there are no real solutions, enter ${BITALIC}NONE.${EITALIC} $BR $BR \( x \) = \{ ans_rule(30) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/9-3-Completing-the-square/MCH1-9-3-48-Completing-the-square.pg b/OpenProblemLibrary/FortLewis/Algebra/9-3-Completing-the-square/MCH1-9-3-48-Completing-the-square.pg index 3e137a5193..5146561a25 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/9-3-Completing-the-square/MCH1-9-3-48-Completing-the-square.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/9-3-Completing-the-square/MCH1-9-3-48-Completing-the-square.pg @@ -26,12 +26,12 @@ #################################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserPopUp.pl", "PGcourse.pl" ); @@ -78,7 +78,7 @@ if ($b == 2) { $c = $s * (9,3)[$i]; } else { $a = $s * (2,4)[$i]; - $c = $s * (8,4)[$i]; + $c = $s * (8,4)[$i]; } $expr = Formula("$a x^2 + $b x + $c")->reduce; @@ -111,11 +111,11 @@ BEGIN_TEXT (a) Find the discriminant of the equation \( $expr = 0 \). $BR Discriminant = \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR $BR (b) Use the discriminant to say whether the equation has -two (distinct) solutions, one solution, or no +two (distinct) solutions, one solution, or no solutions. $BR The equation has \{ $popup->menu() \}. diff --git a/OpenProblemLibrary/FortLewis/Algebra/9-3-Completing-the-square/MCH1-9-3-50-Completing-the-square.pg b/OpenProblemLibrary/FortLewis/Algebra/9-3-Completing-the-square/MCH1-9-3-50-Completing-the-square.pg index 8963e07124..3b49eb86a9 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/9-3-Completing-the-square/MCH1-9-3-50-Completing-the-square.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/9-3-Completing-the-square/MCH1-9-3-50-Completing-the-square.pg @@ -25,12 +25,12 @@ #################################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserPopUp.pl", "PGcourse.pl" ); @@ -77,7 +77,7 @@ if ($b == 2) { $c = $s * (9,3)[$i]; } else { $a = $s * (2,4)[$i]; - $c = $s * (8,4)[$i]; + $c = $s * (8,4)[$i]; } $expr = Formula("$a x^2 + $b x + $c")->reduce; @@ -109,11 +109,11 @@ BEGIN_TEXT (a) Find the discriminant of the equation \( $expr = 0 \). $BR Discriminant = \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR $BR (b) Use the discriminant to say whether the equation has -two (distinct) solutions, one solution, or no +two (distinct) solutions, one solution, or no solutions. $BR The equation has \{ $popup->menu() \}. diff --git a/OpenProblemLibrary/FortLewis/Algebra/9-3-Completing-the-square/MCH1-9-3-52-Completing-the-square.pg b/OpenProblemLibrary/FortLewis/Algebra/9-3-Completing-the-square/MCH1-9-3-52-Completing-the-square.pg index fa02243bfa..0fc7435f1e 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/9-3-Completing-the-square/MCH1-9-3-52-Completing-the-square.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/9-3-Completing-the-square/MCH1-9-3-52-Completing-the-square.pg @@ -25,12 +25,12 @@ #################################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserPopUp.pl", "PGcourse.pl" ); @@ -77,7 +77,7 @@ if ($b == 2) { $c = $s * (9,3)[$i]; } else { $a = $s * (2,4)[$i]; - $c = $s * (8,4)[$i]; + $c = $s * (8,4)[$i]; } $expr = Formula("$a x^2 + $b x + $c")->reduce; @@ -109,11 +109,11 @@ BEGIN_TEXT (a) Find the discriminant of the equation \( $expr = 0 \). $BR Discriminant = \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR $BR (b) Use the discriminant to say whether the equation has -two (distinct) solutions, one solution, or no +two (distinct) solutions, one solution, or no solutions. $BR The equation has \{ $popup->menu() \}. diff --git a/OpenProblemLibrary/FortLewis/Algebra/9-3-Completing-the-square/MCH1-9-3-54-Completing-the-square.pg b/OpenProblemLibrary/FortLewis/Algebra/9-3-Completing-the-square/MCH1-9-3-54-Completing-the-square.pg index ba21c27576..490f284e1d 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/9-3-Completing-the-square/MCH1-9-3-54-Completing-the-square.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/9-3-Completing-the-square/MCH1-9-3-54-Completing-the-square.pg @@ -26,12 +26,12 @@ #################################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserNumberWithUnits.pl", "PGcourse.pl" ); @@ -53,7 +53,7 @@ Context()->texStrings; BEGIN_TEXT At time \( t = 0 \), in seconds, a pair of sunglasses is dropped from the Eiffel Tower in Paris. At time \( t \), -its height in feet above the ground is given by +its height in feet above the ground is given by \( h(t) = -16t^2 + $h \). $BR $BR @@ -62,14 +62,14 @@ from which the sunglasses were dropped? Include units in your answer. $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("units") \} +\{ helpLink("units") \} $BR $BR (b) When do the sunglasses hit the ground? Include units in your answer. $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("units") \} +\{ helpLink("units") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/9-4-Factoring-quadratics/MCH1-9-4-04-Factoring-quadratics.pg b/OpenProblemLibrary/FortLewis/Algebra/9-4-Factoring-quadratics/MCH1-9-4-04-Factoring-quadratics.pg index 26efa45bd3..e1102b11da 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/9-4-Factoring-quadratics/MCH1-9-4-04-Factoring-quadratics.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/9-4-Factoring-quadratics/MCH1-9-4-04-Factoring-quadratics.pg @@ -29,7 +29,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextPolynomialFactors.pl", "contextLimitedPowers.pl", "PGcourse.pl" @@ -68,7 +68,7 @@ BEGIN_TEXT If it cannot be factored, enter ${BITALIC}NONE.${EITALIC} $BR \{ ans_rule(30)\} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR (b) Solve the equation \( $p[2] x^2 + $p[1] x + $p[0] = 0 \). @@ -77,7 +77,7 @@ as a comma separated list. If there are no solutions, enter ${BITALIC}NONE.${EITALIC} $BR \( x \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/9-4-Factoring-quadratics/MCH1-9-4-06-Factoring-quadratics.pg b/OpenProblemLibrary/FortLewis/Algebra/9-4-Factoring-quadratics/MCH1-9-4-06-Factoring-quadratics.pg index d6e91c865a..453385f072 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/9-4-Factoring-quadratics/MCH1-9-4-06-Factoring-quadratics.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/9-4-Factoring-quadratics/MCH1-9-4-06-Factoring-quadratics.pg @@ -28,7 +28,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextPolynomialFactors.pl", "contextLimitedPowers.pl", "PGcourse.pl" @@ -62,7 +62,7 @@ ${BITALIC}NONE.${EITALIC} $BR $BR \( x \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/9-4-Factoring-quadratics/MCH1-9-4-08-Factoring-quadratics.pg b/OpenProblemLibrary/FortLewis/Algebra/9-4-Factoring-quadratics/MCH1-9-4-08-Factoring-quadratics.pg index 0cc9ec7459..1aca1a5b71 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/9-4-Factoring-quadratics/MCH1-9-4-08-Factoring-quadratics.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/9-4-Factoring-quadratics/MCH1-9-4-08-Factoring-quadratics.pg @@ -30,7 +30,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextPolynomialFactors.pl", "contextLimitedPowers.pl", "PGcourse.pl" @@ -65,7 +65,7 @@ BEGIN_TEXT If it cannot be factored, enter ${BITALIC}NONE.${EITALIC} $BR \{ ans_rule(30)\} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR (b) Solve the equation \( x^4 - $aaaa = 0 \). @@ -74,7 +74,7 @@ as a comma separated list. If there are no solutions, enter ${BITALIC}NONE.${EITALIC} $BR \( x \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/9-4-Factoring-quadratics/MCH1-9-4-14-Factoring-quadratics.pg b/OpenProblemLibrary/FortLewis/Algebra/9-4-Factoring-quadratics/MCH1-9-4-14-Factoring-quadratics.pg index 02dd42904b..15773e4a1f 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/9-4-Factoring-quadratics/MCH1-9-4-14-Factoring-quadratics.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/9-4-Factoring-quadratics/MCH1-9-4-14-Factoring-quadratics.pg @@ -25,12 +25,12 @@ #################################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextPolynomialFactors.pl", "contextLimitedPowers.pl", "PGcourse.pl" @@ -74,16 +74,16 @@ BEGIN_TEXT Enter the factored form below. $BR \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR -(b) Solve the equation \( $eqn \). -If there is more than one correct answer, -enter your answers as a comma separated list. +(b) Solve the equation \( $eqn \). +If there is more than one correct answer, +enter your answers as a comma separated list. If there are no answers, enter ${BITALIC}NONE.${EITALIC} $BR \( x = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/9-4-Factoring-quadratics/MCH1-9-4-16-Factoring-quadratics.pg b/OpenProblemLibrary/FortLewis/Algebra/9-4-Factoring-quadratics/MCH1-9-4-16-Factoring-quadratics.pg index baa712ff61..7b22b5bc97 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/9-4-Factoring-quadratics/MCH1-9-4-16-Factoring-quadratics.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/9-4-Factoring-quadratics/MCH1-9-4-16-Factoring-quadratics.pg @@ -25,12 +25,12 @@ #################################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextPolynomialFactors.pl", "contextLimitedPowers.pl", "PGcourse.pl" @@ -68,16 +68,16 @@ BEGIN_TEXT (a) Factor the expression \( $a x^2 + $b x \). $BR \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR -(b) Solve the equation \( $eqn \). If there is -more than one correct answer, enter your answers -as a comma separated list. If there are no +(b) Solve the equation \( $eqn \). If there is +more than one correct answer, enter your answers +as a comma separated list. If there are no solutions, enter ${BITALIC}NONE.${EITALIC} $BR \( x = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/9-4-Factoring-quadratics/MCH1-9-4-20-Factoring-quadratics.pg b/OpenProblemLibrary/FortLewis/Algebra/9-4-Factoring-quadratics/MCH1-9-4-20-Factoring-quadratics.pg index 084862c290..83676114b5 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/9-4-Factoring-quadratics/MCH1-9-4-20-Factoring-quadratics.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/9-4-Factoring-quadratics/MCH1-9-4-20-Factoring-quadratics.pg @@ -26,12 +26,12 @@ #################################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextPolynomialFactors.pl", "contextLimitedPowers.pl", "PGcourse.pl" @@ -75,16 +75,16 @@ BEGIN_TEXT (a) Factor the expression \( $expr \). $BR \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR -(b) Solve the equation \( $expr = 0 \). If there is -more than one correct answer, enter your answers -as a comma separated list. If there are no +(b) Solve the equation \( $expr = 0 \). If there is +more than one correct answer, enter your answers +as a comma separated list. If there are no solutions, enter ${BITALIC}NONE.${EITALIC} $BR \( x = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/9-4-Factoring-quadratics/MCH1-9-4-26-Factoring-quadratics.pg b/OpenProblemLibrary/FortLewis/Algebra/9-4-Factoring-quadratics/MCH1-9-4-26-Factoring-quadratics.pg index 1db3391781..2fc8537c3b 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/9-4-Factoring-quadratics/MCH1-9-4-26-Factoring-quadratics.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/9-4-Factoring-quadratics/MCH1-9-4-26-Factoring-quadratics.pg @@ -24,12 +24,12 @@ #################################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -45,7 +45,7 @@ sub notInteger { my $n = shift; my $N = floor($n); return $n != $N; # uses tolerance and tolType set above } - + sub notSquare { my $n = shift; my $N = sqrt($n); return notInteger($N); # uses tolerance and tolType set above @@ -76,14 +76,14 @@ $r2 = Compute("( -($B) - sqrt(($B)^2 - 4*$A*$C) )/(2*$A)"); Context()->texStrings; BEGIN_TEXT Find the zeros of the quadratic function -\( y = $a x^2 - $b x - $c \). If there is -more than one correct answer, enter your answers -as a comma separated list. If there are no +\( y = $a x^2 - $b x - $c \). If there is +more than one correct answer, enter your answers +as a comma separated list. If there are no solutions, enter ${BITALIC}NONE.${EITALIC} $BR $BR \( x = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/9-4-Factoring-quadratics/MCH1-9-4-27-Factoring-quadratics.pg b/OpenProblemLibrary/FortLewis/Algebra/9-4-Factoring-quadratics/MCH1-9-4-27-Factoring-quadratics.pg index 472e551d01..a254122fef 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/9-4-Factoring-quadratics/MCH1-9-4-27-Factoring-quadratics.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/9-4-Factoring-quadratics/MCH1-9-4-27-Factoring-quadratics.pg @@ -25,12 +25,12 @@ #################################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextPolynomialFactors.pl", "contextLimitedPowers.pl", "PGcourse.pl" @@ -52,9 +52,9 @@ message => "either 0 or 1", $a = random(2,7,1); $b = random(2,7,1); while ($a == $b) { $b = random(2,7,1); } -do { +do { $c = random(4,7,1); - $d = random(2,3,1); + $d = random(2,3,1); } until ($a * $c != $b * $d); $ad = $a * $d; @@ -77,16 +77,16 @@ BEGIN_TEXT (a) Factor the quadratic function \( y = $expr \). $BR \( y \) = \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR -(b) Find the zeros of \( y = $expr \). If there is -more than one correct answer, enter your answers -as a comma separated list. If there are no +(b) Find the zeros of \( y = $expr \). If there is +more than one correct answer, enter your answers +as a comma separated list. If there are no solutions, enter ${BITALIC}NONE.${EITALIC} $BR \( x = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/9-4-Factoring-quadratics/MCH1-9-4-28-Factoring-quadratics.pg b/OpenProblemLibrary/FortLewis/Algebra/9-4-Factoring-quadratics/MCH1-9-4-28-Factoring-quadratics.pg index 29944ed889..911c35f2dc 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/9-4-Factoring-quadratics/MCH1-9-4-28-Factoring-quadratics.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/9-4-Factoring-quadratics/MCH1-9-4-28-Factoring-quadratics.pg @@ -29,13 +29,13 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextLimitedPowers.pl", "contextPolynomialFactors.pl", "PGcourse.pl" ); -TEXT(beginproblem()); +TEXT(beginproblem()); #################################### # Setup @@ -67,12 +67,12 @@ $answer = Formula("(x - sqrt($a)) (x + sqrt($b))"); # Main text BEGIN_TEXT -Write a quadratic equation in the variable \( x \) +Write a quadratic equation in the variable \( x \) with the solutions \( \sqrt{$a} \) and \( -\sqrt{$b} \). $BR -$BR +$BR \( 0 = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Algebra/9-4-Factoring-quadratics/MCH1-9-4-38-Factoring-quadratics.pg b/OpenProblemLibrary/FortLewis/Algebra/9-4-Factoring-quadratics/MCH1-9-4-38-Factoring-quadratics.pg index 304492eea2..e67d661893 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/9-4-Factoring-quadratics/MCH1-9-4-38-Factoring-quadratics.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/9-4-Factoring-quadratics/MCH1-9-4-38-Factoring-quadratics.pg @@ -28,7 +28,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -57,7 +57,7 @@ ${BITALIC}NONE.${EITALIC} $BR $BR \( x \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/9-4-Factoring-quadratics/MCH1-9-4-39-Factoring-quadratics.pg b/OpenProblemLibrary/FortLewis/Algebra/9-4-Factoring-quadratics/MCH1-9-4-39-Factoring-quadratics.pg index 268b90c98b..4e01d69778 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/9-4-Factoring-quadratics/MCH1-9-4-39-Factoring-quadratics.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/9-4-Factoring-quadratics/MCH1-9-4-39-Factoring-quadratics.pg @@ -29,7 +29,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -52,7 +52,7 @@ $roots = List(Compute("$a")); Context()->texStrings; BEGIN_TEXT -Solve the equation \( \displaystyle +Solve the equation \( \displaystyle x + \frac{$aa}{x} = $a2 \). If there is more than one correct answer, enter your answers as a comma separated list. If there are no solutions, enter @@ -60,7 +60,7 @@ ${BITALIC}NONE.${EITALIC} $BR $BR \( x \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/9-4-Factoring-quadratics/MCH1-9-4-40-Factoring-quadratics.pg b/OpenProblemLibrary/FortLewis/Algebra/9-4-Factoring-quadratics/MCH1-9-4-40-Factoring-quadratics.pg index e17381d4ed..987e546e13 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/9-4-Factoring-quadratics/MCH1-9-4-40-Factoring-quadratics.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/9-4-Factoring-quadratics/MCH1-9-4-40-Factoring-quadratics.pg @@ -28,7 +28,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -50,7 +50,7 @@ $roots = List(Compute("1"),Compute("$a")); Context()->texStrings; BEGIN_TEXT -Solve the equation \( \displaystyle +Solve the equation \( \displaystyle \frac{$a}{y} - \frac{$a}{y-$b} - $b = 0 \). If there is more than one correct answer, enter your answers as a comma separated list. If there are no solutions, enter @@ -58,7 +58,7 @@ ${BITALIC}NONE.${EITALIC} $BR $BR \( y \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Algebra/9-4-Factoring-quadratics/MCH1-9-4-45-Factoring-quadratics.pg b/OpenProblemLibrary/FortLewis/Algebra/9-4-Factoring-quadratics/MCH1-9-4-45-Factoring-quadratics.pg index c9228c6a95..da2cb94f4e 100644 --- a/OpenProblemLibrary/FortLewis/Algebra/9-4-Factoring-quadratics/MCH1-9-4-45-Factoring-quadratics.pg +++ b/OpenProblemLibrary/FortLewis/Algebra/9-4-Factoring-quadratics/MCH1-9-4-45-Factoring-quadratics.pg @@ -29,7 +29,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -56,7 +56,7 @@ $roots = List(Compute("$a + $b^(1/3)"),Compute("$a + $c^(1/3)")); Context()->texStrings; BEGIN_TEXT -Solve the equation \( \displaystyle +Solve the equation \( \displaystyle (t-$a)^6 - $bpc (t-$a)^3 + $bc = 0 \). If there is more than one correct answer, enter your answers as a comma separated list. If there are no solutions, enter @@ -64,7 +64,7 @@ ${BITALIC}NONE.${EITALIC} $BR $BR \( t \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Authoring/Templates/Algebra/EquationDefiningFunction1_PGML.pg b/OpenProblemLibrary/FortLewis/Authoring/Templates/Algebra/EquationDefiningFunction1_PGML.pg index 103e964e56..48acc08701 100644 --- a/OpenProblemLibrary/FortLewis/Authoring/Templates/Algebra/EquationDefiningFunction1_PGML.pg +++ b/OpenProblemLibrary/FortLewis/Authoring/Templates/Algebra/EquationDefiningFunction1_PGML.pg @@ -23,7 +23,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserAssignment.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -49,9 +49,9 @@ $fun = Formula("f(x)=3x^2+2x"); # Main text BEGIN_PGML -Enter [` [$eqn] `] [___________]{$eqn} [@ AnswerFormatHelp("equation") @]* +Enter [` [$eqn] `] [___________]{$eqn} [@ helpLink("equation") @]* -Enter [` [$fun] `] [___________]{$fun} [@ AnswerFormatHelp("equation") @]* +Enter [` [$fun] `] [___________]{$fun} [@ helpLink("equation") @]* END_PGML diff --git a/OpenProblemLibrary/FortLewis/Authoring/Templates/Algebra/EquationImplicitFunction1.pg b/OpenProblemLibrary/FortLewis/Authoring/Templates/Algebra/EquationImplicitFunction1.pg index cf6ca12ee6..15ec547903 100644 --- a/OpenProblemLibrary/FortLewis/Authoring/Templates/Algebra/EquationImplicitFunction1.pg +++ b/OpenProblemLibrary/FortLewis/Authoring/Templates/Algebra/EquationImplicitFunction1.pg @@ -16,13 +16,13 @@ #################################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "parserImplicitEquation.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -49,7 +49,7 @@ $r = random(2,5,1); $answer = ImplicitEquation( "(x-$a)^2 + (y-$b)^2 = $r^2", - solutions=>[ + solutions=>[ [$a,$b+$r], [$a,$b-$r], [$a+$r,$b], @@ -64,12 +64,12 @@ $answer = ImplicitEquation( Context()->texStrings; BEGIN_TEXT -Enter an equation for a circle in the xy-plane +Enter an equation for a circle in the xy-plane of radius \( $r \) centered at \( ($a,$b) \). $BR $BR \{ ans_rule(40) \} -\{ AnswerFormatHelp("equation") \} +\{ helpLink("equation") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Authoring/Templates/Algebra/EquationImplicitFunction1_PGML.pg b/OpenProblemLibrary/FortLewis/Authoring/Templates/Algebra/EquationImplicitFunction1_PGML.pg index ee572d91bd..c5dd2ce0d6 100644 --- a/OpenProblemLibrary/FortLewis/Authoring/Templates/Algebra/EquationImplicitFunction1_PGML.pg +++ b/OpenProblemLibrary/FortLewis/Authoring/Templates/Algebra/EquationImplicitFunction1_PGML.pg @@ -16,13 +16,13 @@ #################################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "parserImplicitEquation.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -53,7 +53,7 @@ $p = Compute("($a,$b)"); $answer = ImplicitEquation( "(x-$a)^2 + (y-$b)^2 = $r^2", - solutions=>[ + solutions=>[ [$a,$b+$r], [$a,$b-$r], [$a+$r,$b], @@ -67,11 +67,11 @@ $answer = ImplicitEquation( # Main text BEGIN_PGML -Enter an equation for a circle in the [`xy`]-plane +Enter an equation for a circle in the [`xy`]-plane of radius [` [$r] `] centered at [` [$p] `]. [________________________]{$answer} -[@ AnswerFormatHelp("equation") @]* +[@ helpLink("equation") @]* END_PGML diff --git a/OpenProblemLibrary/FortLewis/Authoring/Templates/Algebra/ExpandedPolynomial1_PGML.pg b/OpenProblemLibrary/FortLewis/Authoring/Templates/Algebra/ExpandedPolynomial1_PGML.pg index b9c1951974..66f5a33dac 100644 --- a/OpenProblemLibrary/FortLewis/Authoring/Templates/Algebra/ExpandedPolynomial1_PGML.pg +++ b/OpenProblemLibrary/FortLewis/Authoring/Templates/Algebra/ExpandedPolynomial1_PGML.pg @@ -23,12 +23,12 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); -TEXT(beginproblem()); +TEXT(beginproblem()); $showPartialCorrectAnswers = 1; @@ -57,10 +57,10 @@ $expandedform = Formula("x^2 + $b x + $c")->reduce(); BEGIN_PGML The quadratic expression [` [$vertexform] `] -is written in vertex form. Write the +is written in vertex form. Write the expression in expanded form [` ax^2 + bx + c `]. -[_____________________]{$expandedform} [@ AnswerFormatHelp("formulas") @]* +[_____________________]{$expandedform} [@ helpLink("formulas") @]* END_PGML diff --git a/OpenProblemLibrary/FortLewis/Authoring/Templates/Algebra/FactoredPolynomial1_PGML.pg b/OpenProblemLibrary/FortLewis/Authoring/Templates/Algebra/FactoredPolynomial1_PGML.pg index e21d80347b..25914648d2 100644 --- a/OpenProblemLibrary/FortLewis/Authoring/Templates/Algebra/FactoredPolynomial1_PGML.pg +++ b/OpenProblemLibrary/FortLewis/Authoring/Templates/Algebra/FactoredPolynomial1_PGML.pg @@ -24,12 +24,12 @@ loadMacros( "MathObjects.pl", "contextPolynomialFactors.pl", "contextLimitedPowers.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); -TEXT(beginproblem()); +TEXT(beginproblem()); $showPartialCorrectAnswers = 1; @@ -63,7 +63,7 @@ Write the quadratic expression [` [$poly] `] in factored form [` k(ax+b)(cx+d) `]. -[____________________]{$factored} [@ AnswerFormatHelp("formulas") @]* +[____________________]{$factored} [@ helpLink("formulas") @]* END_PGML diff --git a/OpenProblemLibrary/FortLewis/Authoring/Templates/Algebra/FractionAnswer1.pg b/OpenProblemLibrary/FortLewis/Authoring/Templates/Algebra/FractionAnswer1.pg index 91f257e06e..5f5f868330 100644 --- a/OpenProblemLibrary/FortLewis/Authoring/Templates/Algebra/FractionAnswer1.pg +++ b/OpenProblemLibrary/FortLewis/Authoring/Templates/Algebra/FractionAnswer1.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -47,7 +47,7 @@ $BR $BR Answer = \{ ans_rule(20) \} -\{ AnswerFormatHelp("fractions") \} +\{ helpLink("fractions") \} END_TEXT Context()->normalStrings; @@ -60,8 +60,8 @@ $showPartialCorrectAnswers = 1; ANS( $answer->cmp( studentsMustReduceFractions=>1, reduceFractions=>1, - allowMixedNumbers=>0, - ) + allowMixedNumbers=>0, + ) ); @@ -71,7 +71,7 @@ ANS( $answer->cmp( Context()->texStrings; BEGIN_SOLUTION -Factor and cancel to obtain +Factor and cancel to obtain \( \displaystyle $answer \) END_SOLUTION Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Authoring/Templates/Algebra/FractionAnswer1_PGML.pg b/OpenProblemLibrary/FortLewis/Authoring/Templates/Algebra/FractionAnswer1_PGML.pg index 5b9fcd886e..7daeba76f3 100644 --- a/OpenProblemLibrary/FortLewis/Authoring/Templates/Algebra/FractionAnswer1_PGML.pg +++ b/OpenProblemLibrary/FortLewis/Authoring/Templates/Algebra/FractionAnswer1_PGML.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -49,9 +49,9 @@ Simplify [` \displaystyle \frac{6}{4} `]. Answer = [_______________]{$answer->cmp( studentsMustReduceFractions=>1, reduceFractions=>1, - allowMixedNumbers=>0, + allowMixedNumbers=>0, )} -[@ AnswerFormatHelp("fractions") @]* +[@ helpLink("fractions") @]* END_PGML diff --git a/OpenProblemLibrary/FortLewis/Authoring/Templates/Algebra/InequalityAnswer1.pg b/OpenProblemLibrary/FortLewis/Authoring/Templates/Algebra/InequalityAnswer1.pg index 98d5fa40d3..c26ae573a1 100644 --- a/OpenProblemLibrary/FortLewis/Authoring/Templates/Algebra/InequalityAnswer1.pg +++ b/OpenProblemLibrary/FortLewis/Authoring/Templates/Algebra/InequalityAnswer1.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextInequalities.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -52,7 +52,7 @@ Enter your answer using inequality notation. $BR $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Authoring/Templates/Algebra/InequalityAnswer1_PGML.pg b/OpenProblemLibrary/FortLewis/Authoring/Templates/Algebra/InequalityAnswer1_PGML.pg index 73a8c7ba7b..8d13386025 100644 --- a/OpenProblemLibrary/FortLewis/Authoring/Templates/Algebra/InequalityAnswer1_PGML.pg +++ b/OpenProblemLibrary/FortLewis/Authoring/Templates/Algebra/InequalityAnswer1_PGML.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextInequalities.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -52,7 +52,7 @@ BEGIN_PGML Solve the inequality [` \displaystyle [$ineq] `]. Enter your answer using inequality notation. -[_________________]{$answer} [@ AnswerFormatHelp("inequalities") \]* +[_________________]{$answer} [@ helpLink("inequalities") \]* END_PGML diff --git a/OpenProblemLibrary/FortLewis/Authoring/Templates/Algebra/Logarithms1.pg b/OpenProblemLibrary/FortLewis/Authoring/Templates/Algebra/Logarithms1.pg index 83ec3214ee..de2f1e176a 100644 --- a/OpenProblemLibrary/FortLewis/Authoring/Templates/Algebra/Logarithms1.pg +++ b/OpenProblemLibrary/FortLewis/Authoring/Templates/Algebra/Logarithms1.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -55,15 +55,15 @@ Context()->functions->undefine("sqrt"); Context()->texStrings; BEGIN_TEXT -Using laws of logarithms, write the expression -below using sums and/or differences -of logarithmic expressions which do not contain +Using laws of logarithms, write the expression +below using sums and/or differences +of logarithmic expressions which do not contain the logarithms of products, quotients, or powers. $BR $BR -\( \displaystyle $expr = \) +\( \displaystyle $expr = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Authoring/Templates/Algebra/Logarithms1_PGML.pg b/OpenProblemLibrary/FortLewis/Authoring/Templates/Algebra/Logarithms1_PGML.pg index c1ea99a252..1fe6de2c9e 100644 --- a/OpenProblemLibrary/FortLewis/Authoring/Templates/Algebra/Logarithms1_PGML.pg +++ b/OpenProblemLibrary/FortLewis/Authoring/Templates/Algebra/Logarithms1_PGML.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -57,12 +57,12 @@ Context()->functions->undefine("sqrt"); # Main text BEGIN_PGML -Using laws of logarithms, write the expression -below using sums and/or differences -of logarithmic expressions which do not contain +Using laws of logarithms, write the expression +below using sums and/or differences +of logarithmic expressions which do not contain the logarithms of products, quotients, or powers. -[` \displaystyle [$expr] = `] [____________________]{$answer} [@ AnswerFormatHelp("formulas") @]* +[` \displaystyle [$expr] = `] [____________________]{$answer} [@ helpLink("formulas") @]* END_PGML diff --git a/OpenProblemLibrary/FortLewis/Authoring/Templates/Algebra/SolutionForEquation1.pg b/OpenProblemLibrary/FortLewis/Authoring/Templates/Algebra/SolutionForEquation1.pg index 08028e8d59..15ded001d9 100644 --- a/OpenProblemLibrary/FortLewis/Authoring/Templates/Algebra/SolutionForEquation1.pg +++ b/OpenProblemLibrary/FortLewis/Authoring/Templates/Algebra/SolutionForEquation1.pg @@ -16,13 +16,13 @@ #################################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "parserSolutionFor.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -45,9 +45,9 @@ $answer = SolutionFor("x^2+y^2+z^2=$r^2", [$r,0,0] ); Context()->texStrings; BEGIN_TEXT A solution to the equation \( $answer->{f} \) -is \( (x,y,z) = \) +is \( (x,y,z) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("points") \} +\{ helpLink("points") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Authoring/Templates/Algebra/SolutionForEquation1_PGML.pg b/OpenProblemLibrary/FortLewis/Authoring/Templates/Algebra/SolutionForEquation1_PGML.pg index 96a75ec93b..730c19ca73 100644 --- a/OpenProblemLibrary/FortLewis/Authoring/Templates/Algebra/SolutionForEquation1_PGML.pg +++ b/OpenProblemLibrary/FortLewis/Authoring/Templates/Algebra/SolutionForEquation1_PGML.pg @@ -16,13 +16,13 @@ #################################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "parserSolutionFor.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -48,8 +48,8 @@ $eqn = $answer->{f}; BEGIN_PGML A solution to the equation [` [$eqn] `] -is [` (x,y,z) = `] -[_______________]{$answer} [@ AnswerFormatHelp("points") @]* +is [` (x,y,z) = `] +[_______________]{$answer} [@ helpLink("points") @]* END_PGML diff --git a/OpenProblemLibrary/FortLewis/Authoring/Templates/Algebra/UnorderedAnswers1.pg b/OpenProblemLibrary/FortLewis/Authoring/Templates/Algebra/UnorderedAnswers1.pg index 96841a9953..f9ed370d1e 100644 --- a/OpenProblemLibrary/FortLewis/Authoring/Templates/Algebra/UnorderedAnswers1.pg +++ b/OpenProblemLibrary/FortLewis/Authoring/Templates/Algebra/UnorderedAnswers1.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unorderedAnswer.pl", "PGcourse.pl" ); @@ -46,18 +46,18 @@ $answer3 = Compute("z^$a"); Context()->texStrings; BEGIN_TEXT -Rewrite the following expression without parentheses. -Simplify your answer as much as possible, and assume +Rewrite the following expression without parentheses. +Simplify your answer as much as possible, and assume that all variables are positive. $BR $BR -\( (xyz)^{$a} = \) +\( (xyz)^{$a} = \) \{ ans_rule(5) \} \( \cdot \) \{ ans_rule(5) \} \( \cdot \) \{ ans_rule(5) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; @@ -71,9 +71,9 @@ $showPartialCorrectAnswers = 1; # install_problem_grader(~~&std_problem_grader); -UNORDERED_ANS( -$answer1->cmp(), -$answer2->cmp(), +UNORDERED_ANS( +$answer1->cmp(), +$answer2->cmp(), $answer3->cmp(), ); diff --git a/OpenProblemLibrary/FortLewis/Authoring/Templates/Algebra/UnorderedAnswers1_PGML.pg b/OpenProblemLibrary/FortLewis/Authoring/Templates/Algebra/UnorderedAnswers1_PGML.pg index fc86b83291..adb1cde3a9 100644 --- a/OpenProblemLibrary/FortLewis/Authoring/Templates/Algebra/UnorderedAnswers1_PGML.pg +++ b/OpenProblemLibrary/FortLewis/Authoring/Templates/Algebra/UnorderedAnswers1_PGML.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unorderedAnswer.pl", "PGML.pl", "PGcourse.pl" @@ -54,7 +54,7 @@ Rewrite the following expression without parentheses. Simplify your answer as m [_____] [` \cdot `] [_____] -[@ AnswerFormatHelp("formulas") @]* +[@ helpLink("formulas") @]* END_PGML @@ -67,9 +67,9 @@ $showPartialCorrectAnswers = 0; install_problem_grader(~~&std_problem_grader); -UNORDERED_ANS( -$answer1->cmp(), -$answer2->cmp(), +UNORDERED_ANS( +$answer1->cmp(), +$answer2->cmp(), $answer3->cmp(), ); diff --git a/OpenProblemLibrary/FortLewis/Authoring/Templates/DiffCalc/DifferentiateFunction1.pg b/OpenProblemLibrary/FortLewis/Authoring/Templates/DiffCalc/DifferentiateFunction1.pg index 219a8e7f53..8afd491cb2 100644 --- a/OpenProblemLibrary/FortLewis/Authoring/Templates/DiffCalc/DifferentiateFunction1.pg +++ b/OpenProblemLibrary/FortLewis/Authoring/Templates/DiffCalc/DifferentiateFunction1.pg @@ -16,12 +16,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionLists.pl", "PGcourse.pl" ); @@ -60,23 +60,23 @@ $answer[2] = $fx->substitute(x=>$a*pi,k=>$k); # formula Context()->texStrings; BEGIN_TEXT -Suppose \( f(x) = $f \) where \( k \) is a +Suppose \( f(x) = $f \) where \( k \) is a constant. \{ BeginList("OL",type=>"a") \} -$ITEM \( f'(x) = \) +$ITEM \( f'(x) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $ITEMSEP $ITEM If \( k = $k \) then \( f'(x) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $ITEMSEP $ITEM If \( k = $k \) then \( f'($a\pi) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} \{ EndList("OL") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Authoring/Templates/DiffCalc/DifferentiateFunction1_PGML.pg b/OpenProblemLibrary/FortLewis/Authoring/Templates/DiffCalc/DifferentiateFunction1_PGML.pg index e018512a41..d53feeb0e5 100644 --- a/OpenProblemLibrary/FortLewis/Authoring/Templates/DiffCalc/DifferentiateFunction1_PGML.pg +++ b/OpenProblemLibrary/FortLewis/Authoring/Templates/DiffCalc/DifferentiateFunction1_PGML.pg @@ -16,12 +16,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionLists.pl", "PGML.pl", "PGcourse.pl" @@ -64,11 +64,11 @@ $answer[2] = $fx->substitute(x=>$a*pi,k=>$k); # formula BEGIN_PGML Suppose [` f(x) = [$f] `] where [` k `] is a constant. -a. [` f ' (x) = `] [_______________] [@ AnswerFormatHelp("formulas") @]* +a. [` f ' (x) = `] [_______________] [@ helpLink("formulas") @]* -b. If [` k = [$k] `] then [` f ' (x) = `] [_______________] [@ AnswerFormatHelp("formulas") @]* +b. If [` k = [$k] `] then [` f ' (x) = `] [_______________] [@ helpLink("formulas") @]* -c. If [` k = [$k] `] then [` f ' ([$a]\pi) = `] [_______________] [@ AnswerFormatHelp("formulas") @]* +c. If [` k = [$k] `] then [` f ' ([$a]\pi) = `] [_______________] [@ helpLink("formulas") @]* END_PGML diff --git a/OpenProblemLibrary/FortLewis/Authoring/Templates/DiffCalc/LinearApprox1.pg b/OpenProblemLibrary/FortLewis/Authoring/Templates/DiffCalc/LinearApprox1.pg index feda149cdc..2feacaf54e 100644 --- a/OpenProblemLibrary/FortLewis/Authoring/Templates/DiffCalc/LinearApprox1.pg +++ b/OpenProblemLibrary/FortLewis/Authoring/Templates/DiffCalc/LinearApprox1.pg @@ -16,12 +16,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", "parserAssignment.pl", "PGcourse.pl" @@ -51,12 +51,12 @@ $answer = Compute("y = $a + (1/$a2) * (x-$aa)"); Context()->texStrings; BEGIN_TEXT Find the linear approximation to \( f(x) = $f \) -at \( x = $aa \). Your answer should be an +at \( x = $aa \). Your answer should be an equation in the variables \( x \) and \( y \). $BR $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} END_TEXT Context()->normalStrings; @@ -66,9 +66,9 @@ Context()->normalStrings; $showPartialCorrectAnswers = 1; -ANS( $answer->cmp() -->withPostFilter(AnswerHints( - [Formula("1/$a2"),Formula("y=1/$a2")] => +ANS( $answer->cmp() +->withPostFilter(AnswerHints( + [Formula("1/$a2"),Formula("y=1/$a2")] => ["Your answer should be an equation for a non-horizontal line.", replaceMessage=>1], )) diff --git a/OpenProblemLibrary/FortLewis/Authoring/Templates/DiffCalc/LinearApprox1_PGML.pg b/OpenProblemLibrary/FortLewis/Authoring/Templates/DiffCalc/LinearApprox1_PGML.pg index 4e98149d1a..f221ff442a 100644 --- a/OpenProblemLibrary/FortLewis/Authoring/Templates/DiffCalc/LinearApprox1_PGML.pg +++ b/OpenProblemLibrary/FortLewis/Authoring/Templates/DiffCalc/LinearApprox1_PGML.pg @@ -16,12 +16,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", "parserAssignment.pl", "PGML.pl", @@ -54,7 +54,7 @@ $answer = Compute("y = $a + (1/$a2) * (x-$aa)"); BEGIN_PGML Find the linear approximation to [` f(x) = [$f] `] at [` x = [$aa] `]. Your answer should be an equation in the variables [` x `] and [` y `]. -[____________________] [@ AnswerFormatHelp("equations") @]* +[____________________] [@ helpLink("equations") @]* END_PGML @@ -62,9 +62,9 @@ END_PGML # Answers -ANS( $answer->cmp() -->withPostFilter(AnswerHints( - [Formula("1/$a2"),Formula("y=1/$a2")] => +ANS( $answer->cmp() +->withPostFilter(AnswerHints( + [Formula("1/$a2"),Formula("y=1/$a2")] => ["Your answer should be an equation for a non-horizontal line.", replaceMessage=>1], )) diff --git a/OpenProblemLibrary/FortLewis/Authoring/Templates/DiffCalcMV/ImplicitPlane1.pg b/OpenProblemLibrary/FortLewis/Authoring/Templates/DiffCalcMV/ImplicitPlane1.pg index 202c4c25bf..17bad3501c 100644 --- a/OpenProblemLibrary/FortLewis/Authoring/Templates/DiffCalcMV/ImplicitPlane1.pg +++ b/OpenProblemLibrary/FortLewis/Authoring/Templates/DiffCalcMV/ImplicitPlane1.pg @@ -16,14 +16,14 @@ #################################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "parserImplicitPlane.pl", "parserVectorUtils.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -54,24 +54,24 @@ BEGIN_TEXT (a) Enter an equation for the plane through the point \( $A \) and perpendicular to \( $N \). -$BR +$BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} $BR $BR (b) Enter an equation for the line in the -xy-plane with x-intercept \( 3 \) and +xy-plane with x-intercept \( 3 \) and y-intercept \( 4 \). $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} $BR $BR -(c) Enter an equation for the vertical line +(c) Enter an equation for the vertical line in the xy-plane through the point \( (3,1) \). $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Authoring/Templates/DiffCalcMV/ImplicitPlane1_PGML.pg b/OpenProblemLibrary/FortLewis/Authoring/Templates/DiffCalcMV/ImplicitPlane1_PGML.pg index aa95613756..5123a3a069 100644 --- a/OpenProblemLibrary/FortLewis/Authoring/Templates/DiffCalcMV/ImplicitPlane1_PGML.pg +++ b/OpenProblemLibrary/FortLewis/Authoring/Templates/DiffCalcMV/ImplicitPlane1_PGML.pg @@ -16,14 +16,14 @@ #################################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "parserImplicitPlane.pl", "parserVectorUtils.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -56,15 +56,15 @@ $answer3 = ImplicitPlane("x=3"); BEGIN_PGML a. Enter an equation for the plane through the point [` [$A] `] and perpendicular to [` [$N] `]. - + [______________] [@ AnswerFormatHelp("equations") @]* + + [______________] [@ helpLink("equations") @]* b. Enter an equation for the line in the [` xy `]-plane with [` x `]-intercept [` 3 `] and [` y `]-intercept [` 4 `]. - + [______________] [@ AnswerFormatHelp("equations") @]* + + [______________] [@ helpLink("equations") @]* c. Enter an equation for the vertical line in the [` xy `]-plane through the point [` (3,1) `]. - + [______________] [@ AnswerFormatHelp("equations") @]* + + [______________] [@ helpLink("equations") @]* END_PGML ANS( $answer1->cmp ); diff --git a/OpenProblemLibrary/FortLewis/Authoring/Templates/DiffEq/GeneralSolutionODE1_PGML.pg b/OpenProblemLibrary/FortLewis/Authoring/Templates/DiffEq/GeneralSolutionODE1_PGML.pg index 7e628f118c..32a7827c7b 100644 --- a/OpenProblemLibrary/FortLewis/Authoring/Templates/DiffEq/GeneralSolutionODE1_PGML.pg +++ b/OpenProblemLibrary/FortLewis/Authoring/Templates/DiffEq/GeneralSolutionODE1_PGML.pg @@ -19,7 +19,7 @@ loadMacros( "PGunion.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "parserAssignment.pl", "PGcourse.pl" ); @@ -54,17 +54,17 @@ $answer = Compute("y = c1 e^x + c2 cos(sqrt($a) x) + c3 sin(sqrt($a) x)"); BEGIN_PGML Find the general solution to [` [$diffeq] `]. -In your answer, use [` c_1, c_2 `] and [` c_3 `] to -denote arbitrary constants and [` x `] +In your answer, use [` c_1, c_2 `] and [` c_3 `] to +denote arbitrary constants and [` x `] the independent variable. Your answer should -be an equation of the form [`y = \ldots`] and -you should enter -[` c_1 `] as [| c1 |]*, +be an equation of the form [`y = \ldots`] and +you should enter +[` c_1 `] as [| c1 |]*, [` c_2 `] as [| c2 |]*, and [` c_3 `] as [| c3 |]*. [_________________________________] -[@ AnswerFormatHelp("equations") @]* +[@ helpLink("equations") @]* END_PGML @@ -76,11 +76,11 @@ ANS( $answer->cmp( checker => sub { ################################# # Check for arbitrary constants # - Value->Error("Is your answer the most general solution?") - if ( - Formula($stu->D('c1'))==Formula(0) || - Formula($stu->D('c2'))==Formula(0) || - Formula($stu->D('c3'))==Formula(0) + Value->Error("Is your answer the most general solution?") + if ( + Formula($stu->D('c1'))==Formula(0) || + Formula($stu->D('c2'))==Formula(0) || + Formula($stu->D('c3'))==Formula(0) ); @@ -101,14 +101,14 @@ ANS( $answer->cmp( checker => sub { my $a32 = $stu->D('x','x')->eval('c1'=>0,'c2'=>1,'c3'=>0,x=>$x,y=>0); my $a33 = $stu->D('x','x')->eval('c1'=>0,'c2'=>0,'c3'=>1,x=>$x,y=>0); - # my $wronskian = + # my $wronskian = # $a11*($a22*$a33-$a32*$a23) - # $a12*($a21*$a33-$a31*$a23) + # $a13*($a21*$a32-$a31*$a22); - # Value->Error("Your functions are not linearly independent or your answer is not complete") + # Value->Error("Your functions are not linearly independent or your answer is not complete") # if ($wronskian==Real(0)); - Value->Error("Your functions are not linearly independent or your answer is not complete") + Value->Error("Your functions are not linearly independent or your answer is not complete") if (($a11*($a22*$a33-$a32*$a23)+$a13*($a21*$a32-$a31*$a22)) == ($a12*($a21*$a33-$a31*$a23))); diff --git a/OpenProblemLibrary/FortLewis/Authoring/Templates/DiffEq/HeavisideStep1.pg b/OpenProblemLibrary/FortLewis/Authoring/Templates/DiffEq/HeavisideStep1.pg index 3d6a0e16b1..58d0f1ac47 100644 --- a/OpenProblemLibrary/FortLewis/Authoring/Templates/DiffEq/HeavisideStep1.pg +++ b/OpenProblemLibrary/FortLewis/Authoring/Templates/DiffEq/HeavisideStep1.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserFunction.pl", "PGcourse.pl" ); @@ -55,7 +55,7 @@ $answer1 = List($fstep->eval(t=>2),$fstep->eval(t=>3),$fstep->eval(t=>4)); Context()->texStrings; BEGIN_TEXT -Let \( u(t) \) be the Heaviside step function +Let \( u(t) \) be the Heaviside step function defined by \( \displaystyle u(t) = @@ -68,12 +68,12 @@ u(t) = \) $BR $BR -(a) Evaluate the function \( $ftex \) when -\( t \) is \(2\), \(3\), and \(4\) and enter +(a) Evaluate the function \( $ftex \) when +\( t \) is \(2\), \(3\), and \(4\) and enter your answers as a comma separated list. $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; @@ -102,7 +102,7 @@ parserFunction("u(t)" => "step(t)"); $f = Formula("5 u(t-$a)"); $answer2 = $f->with( - limits=>[$a-5,$a+5], + limits=>[$a-5,$a+5], test_at => [[$a-1],[$a],[$a+0.0000001],[$a+1]], num_points=>10, ); @@ -118,7 +118,7 @@ $BR (b) Suppose the answer is the function \( $ftex \). $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Authoring/Templates/DiffEq/HeavisideStep1_PGML.pg b/OpenProblemLibrary/FortLewis/Authoring/Templates/DiffEq/HeavisideStep1_PGML.pg index 9aaf5e48d5..33e12bf242 100644 --- a/OpenProblemLibrary/FortLewis/Authoring/Templates/DiffEq/HeavisideStep1_PGML.pg +++ b/OpenProblemLibrary/FortLewis/Authoring/Templates/DiffEq/HeavisideStep1_PGML.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserFunction.pl", "PGML.pl", "PGcourse.pl" @@ -52,7 +52,7 @@ $f = Formula("5 u(t-$a)"); $answer1 = List( $f->eval(t=>2), $f->eval(t=>3), $f->eval(t=>4) ); $answer2 = $f->with( - limits=>[$a-5,$a+5], + limits=>[$a-5,$a+5], test_at => [[$a-1],[$a-0.0000001],[$a],[$a+0.0000001],[$a+1]], num_points=>10, ); @@ -75,11 +75,11 @@ u(t) = a. Evaluate the function [` [$f] `] when [` t `] is [` 2 `], [` 3 `], and [` 4 `] and enter your answers as a comma separated list. - + [________________]{ $answer1->cmp(ordered=>1) } [@ AnswerFormatHelp("numbers") @]* + + [________________]{ $answer1->cmp(ordered=>1) } [@ helpLink("numbers") @]* b. Suppose the answer is the function [` [$f] `]. - + [________________]{ $answer2 } [@ AnswerFormatHelp("formulas") @]* + + [________________]{ $answer2 } [@ helpLink("formulas") @]* END_PGML diff --git a/OpenProblemLibrary/FortLewis/Authoring/Templates/DiffEq/PrimesInFormulas1.pg b/OpenProblemLibrary/FortLewis/Authoring/Templates/DiffEq/PrimesInFormulas1.pg index 3dd4425420..516c62b72f 100644 --- a/OpenProblemLibrary/FortLewis/Authoring/Templates/DiffEq/PrimesInFormulas1.pg +++ b/OpenProblemLibrary/FortLewis/Authoring/Templates/DiffEq/PrimesInFormulas1.pg @@ -16,12 +16,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserImplicitEquation.pl", "PGcourse.pl" ); @@ -49,20 +49,20 @@ $diffeq = ImplicitEquation("y'' + 2y' + y = cos(t)"); Context()->texStrings; BEGIN_TEXT -Suppose this is a word problem that asks -students to set up a differential equation +Suppose this is a word problem that asks +students to set up a differential equation and enter their differential equation as the answer. $BR $BR -Enter your differential equation below in terms of -\( y, y^{\,\prime}, y^{\,\prime\prime}, t \). -(Suppose the answer is the differential equation +Enter your differential equation below in terms of +\( y, y^{\,\prime}, y^{\,\prime\prime}, t \). +(Suppose the answer is the differential equation \( $diffeq \).) $BR $BR \{ ans_rule(40) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Authoring/Templates/DiffEq/PrimesInFormulas1_PGML.pg b/OpenProblemLibrary/FortLewis/Authoring/Templates/DiffEq/PrimesInFormulas1_PGML.pg index 4f84c9e521..2f970a3a9f 100644 --- a/OpenProblemLibrary/FortLewis/Authoring/Templates/DiffEq/PrimesInFormulas1_PGML.pg +++ b/OpenProblemLibrary/FortLewis/Authoring/Templates/DiffEq/PrimesInFormulas1_PGML.pg @@ -16,12 +16,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserImplicitEquation.pl", "PGML.pl", "PGcourse.pl" @@ -56,7 +56,7 @@ as the answer. Enter your differential equation below in terms of [` y, y^{\,\prime}, y^{\,\prime\prime}, t `]. (Suppose the answer is the differential equation [` [$diffeq] `].) -[___________________]{$diffeq} [@ AnswerFormatHelp("equations") @]* +[___________________]{$diffeq} [@ helpLink("equations") @]* END_PGML diff --git a/OpenProblemLibrary/FortLewis/Authoring/Templates/IntegralCalc/GraphShading1.pg b/OpenProblemLibrary/FortLewis/Authoring/Templates/IntegralCalc/GraphShading1.pg index 0193ff01b4..0b72539004 100644 --- a/OpenProblemLibrary/FortLewis/Authoring/Templates/IntegralCalc/GraphShading1.pg +++ b/OpenProblemLibrary/FortLewis/Authoring/Templates/IntegralCalc/GraphShading1.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGgraphmacros.pl", "unionTables.pl", "PGcourse.pl" @@ -66,7 +66,7 @@ $gr->lb( new Label(0.2,4.7,'y','black','center','middle')); # $gr->new_color("lightblue", 214,230,244); # RGB $gr->new_color("darkblue", 100,100,255); -$gr->new_color("lightgreen",156,215,151); +$gr->new_color("lightgreen",156,215,151); $gr->new_color("darkgreen", 0, 86, 34); $gr->new_color("lightred", 245,234,229); # light red-purple $gr->new_color("darkred", 159, 64, 16); # red-brown @@ -102,9 +102,9 @@ ColumnTable( region under \( f(x) = $f \). $BR $BR -Area = " . +Area = " . ans_rule(20).$SPACE. -AnswerFormatHelp("numbers") +helpLink("numbers") , image( insertGraph($gr),height=>300,width=>300,tex_size=>800 ). $BR.$BCENTER. diff --git a/OpenProblemLibrary/FortLewis/Authoring/Templates/IntegralCalc/GraphShading1_PGML.pg b/OpenProblemLibrary/FortLewis/Authoring/Templates/IntegralCalc/GraphShading1_PGML.pg index 56b98d45aa..e521ffe516 100644 --- a/OpenProblemLibrary/FortLewis/Authoring/Templates/IntegralCalc/GraphShading1_PGML.pg +++ b/OpenProblemLibrary/FortLewis/Authoring/Templates/IntegralCalc/GraphShading1_PGML.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGgraphmacros.pl", "unionTables.pl", "PGML.pl", @@ -68,7 +68,7 @@ $gr->lb( new Label(0.2,4.7,'y','black','center','middle')); # $gr->new_color("lightblue", 214,230,244); # RGB $gr->new_color("darkblue", 100,100,255); -$gr->new_color("lightgreen",156,215,151); +$gr->new_color("lightgreen",156,215,151); $gr->new_color("darkgreen", 0, 86, 34); $gr->new_color("lightred", 245,234,229); # light red-purple $gr->new_color("darkred", 159, 64, 16); # red-brown @@ -98,7 +98,7 @@ Use the graph to find the area of the shaded region under [`` f(x) = $ftex ``]. Area = [______________]{$answer} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* END_PGML $column2 = image( insertGraph($gr),height=>300,width=>300,tex_size=>800 ). diff --git a/OpenProblemLibrary/FortLewis/Authoring/Templates/IntegralCalc/IndefiniteIntegrals1.pg b/OpenProblemLibrary/FortLewis/Authoring/Templates/IntegralCalc/IndefiniteIntegrals1.pg index c8d993ae57..4c5274e5a0 100644 --- a/OpenProblemLibrary/FortLewis/Authoring/Templates/IntegralCalc/IndefiniteIntegrals1.pg +++ b/OpenProblemLibrary/FortLewis/Authoring/Templates/IntegralCalc/IndefiniteIntegrals1.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserFormulaUpToConstant.pl", "PGcourse.pl" ); @@ -52,14 +52,14 @@ $general = FormulaUpToConstant("e^x"); Context()->texStrings; BEGIN_TEXT -Enter a specific antiderivative for \( e^x \): +Enter a specific antiderivative for \( e^x \): \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR -Enter the most general antiderivative for \( e^x \): +Enter the most general antiderivative for \( e^x \): \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Authoring/Templates/IntegralCalc/IndefiniteIntegrals1_PGML.pg b/OpenProblemLibrary/FortLewis/Authoring/Templates/IntegralCalc/IndefiniteIntegrals1_PGML.pg index 171f02766e..7af9edfba9 100644 --- a/OpenProblemLibrary/FortLewis/Authoring/Templates/IntegralCalc/IndefiniteIntegrals1_PGML.pg +++ b/OpenProblemLibrary/FortLewis/Authoring/Templates/IntegralCalc/IndefiniteIntegrals1_PGML.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserFormulaUpToConstant.pl", "PGML.pl", "PGcourse.pl" @@ -53,9 +53,9 @@ $general = FormulaUpToConstant("e^x"); # Main text BEGIN_PGML -+ Enter a specific antiderivative for [` e^x `]: [____________]{$specific->cmp(upToConstant=>1)} [@ AnswerFormatHelp("formulas") @]* ++ Enter a specific antiderivative for [` e^x `]: [____________]{$specific->cmp(upToConstant=>1)} [@ helpLink("formulas") @]* -+ Enter the most general antiderivative for [` e^x `]: [____________]{$general} [@ AnswerFormatHelp("formulas") @]* ++ Enter the most general antiderivative for [` e^x `]: [____________]{$general} [@ helpLink("formulas") @]* END_PGML diff --git a/OpenProblemLibrary/FortLewis/Authoring/Templates/LinAlg/MatrixAnswer1.pg b/OpenProblemLibrary/FortLewis/Authoring/Templates/LinAlg/MatrixAnswer1.pg index 286a008989..5f60d558fb 100644 --- a/OpenProblemLibrary/FortLewis/Authoring/Templates/LinAlg/MatrixAnswer1.pg +++ b/OpenProblemLibrary/FortLewis/Authoring/Templates/LinAlg/MatrixAnswer1.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -53,7 +53,7 @@ Context()->texStrings; BEGIN_TEXT Suppose \[ -A = $A +A = $A \ \ \mbox{and} \ \ B = $B. \] @@ -62,7 +62,7 @@ $BR $BR \( A B^T = \) \{ $answer->ans_array(5) \} -\{ AnswerFormatHelp("matrices") \} +\{ helpLink("matrices") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Authoring/Templates/LinAlg/MatrixAnswer1_PGML.pg b/OpenProblemLibrary/FortLewis/Authoring/Templates/LinAlg/MatrixAnswer1_PGML.pg index cfa53dc816..58241a6da9 100644 --- a/OpenProblemLibrary/FortLewis/Authoring/Templates/LinAlg/MatrixAnswer1_PGML.pg +++ b/OpenProblemLibrary/FortLewis/Authoring/Templates/LinAlg/MatrixAnswer1_PGML.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -55,7 +55,7 @@ Suppose >> [``A = [$A] \ \ \mbox{and} \ \ B = [$B]. ``] << Evaluate the following matrix product. -[` A B^T = `][_____]*{$answer} [@ AnswerFormatHelp("matrices") @]* +[` A B^T = `][_____]*{$answer} [@ helpLink("matrices") @]* END_PGML diff --git a/OpenProblemLibrary/FortLewis/Authoring/Templates/LinAlg/MatrixCustomAnswerChecker1.pg b/OpenProblemLibrary/FortLewis/Authoring/Templates/LinAlg/MatrixCustomAnswerChecker1.pg index f4faa4c903..df12924b1e 100644 --- a/OpenProblemLibrary/FortLewis/Authoring/Templates/LinAlg/MatrixCustomAnswerChecker1.pg +++ b/OpenProblemLibrary/FortLewis/Authoring/Templates/LinAlg/MatrixCustomAnswerChecker1.pg @@ -21,11 +21,11 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); $showPartialCorrectAnswers = 0; -TEXT(beginproblem()); +TEXT(beginproblem()); ############################# @@ -41,7 +41,7 @@ $multians = MultiAnswer($A, $B)->with( checker => sub { my ( $correct, $student, $answerHash ) = @_; my @s = @{$student}; - $s0 = Matrix($s[0]); + $s0 = Matrix($s[0]); $s1 = Matrix($s[1]); return $s0 * $s1 != $s1 * $s0; } diff --git a/OpenProblemLibrary/FortLewis/Authoring/Templates/LinAlg/MatrixCustomAnswerChecker1_PGML.pg b/OpenProblemLibrary/FortLewis/Authoring/Templates/LinAlg/MatrixCustomAnswerChecker1_PGML.pg index 956e9c5a1f..9296e7ce5b 100644 --- a/OpenProblemLibrary/FortLewis/Authoring/Templates/LinAlg/MatrixCustomAnswerChecker1_PGML.pg +++ b/OpenProblemLibrary/FortLewis/Authoring/Templates/LinAlg/MatrixCustomAnswerChecker1_PGML.pg @@ -20,12 +20,12 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); $showPartialCorrectAnswers = 0; -TEXT(beginproblem()); +TEXT(beginproblem()); install_problem_grader(~~&std_problem_grader); @@ -43,7 +43,7 @@ $multians = MultiAnswer($A, $B)->with( checker => sub { my ( $correct, $student, $answerHash ) = @_; my @s = @{$student}; - $s0 = Matrix($s[0]); + $s0 = Matrix($s[0]); $s1 = Matrix($s[1]); return $s0 * $s1 != $s1 * $s0; } @@ -56,7 +56,7 @@ $multians = MultiAnswer($A, $B)->with( BEGIN_PGML Give an example of two [` 2 \times 2 `] matrices [` A `] and [` B `] such that [` AB \ne BA `]. - + [` A = `] [_____]*{$multians} [` B = `] [_____]*{$multians} diff --git a/OpenProblemLibrary/FortLewis/Authoring/Templates/LinAlg/MatrixOperations1.pg b/OpenProblemLibrary/FortLewis/Authoring/Templates/LinAlg/MatrixOperations1.pg index 0718cb72e6..4063905b2e 100644 --- a/OpenProblemLibrary/FortLewis/Authoring/Templates/LinAlg/MatrixOperations1.pg +++ b/OpenProblemLibrary/FortLewis/Authoring/Templates/LinAlg/MatrixOperations1.pg @@ -17,11 +17,11 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserPopUp.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); $showPartialCorrectAnswers = 0; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Matrix'); @@ -39,23 +39,23 @@ $popup = PopUp(['Choose','True','False'],'False'); Context()->texStrings; BEGIN_TEXT -Let +Let \[ A = $A,\] \[ B = $B.\] -If possible, compute the following. +If possible, compute the following. If an answer does not exist, enter ${BBOLD}DNE${EBOLD}. $BR $BR \( AB = \) -\{ ans_box(3,30).$SPACE.AnswerFormatHelp('matrices') \} +\{ ans_box(3,30).$SPACE.helpLink('matrices') \} $BR $BR \( BA = \) -\{ ans_box(3,30).$SPACE.AnswerFormatHelp('matrices') \} +\{ ans_box(3,30).$SPACE.helpLink('matrices') \} $BR $BR -\{ $popup->menu \} True or False: For any two matrices -\( A \) and \( B \), both of the products \( AB \) and \( BA \) +\{ $popup->menu \} True or False: For any two matrices +\( A \) and \( B \), both of the products \( AB \) and \( BA \) are always defined. END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Authoring/Templates/LinAlg/MatrixOperations1_PGML.pg b/OpenProblemLibrary/FortLewis/Authoring/Templates/LinAlg/MatrixOperations1_PGML.pg index 6740ee6cf7..c0e67a4a0c 100644 --- a/OpenProblemLibrary/FortLewis/Authoring/Templates/LinAlg/MatrixOperations1_PGML.pg +++ b/OpenProblemLibrary/FortLewis/Authoring/Templates/LinAlg/MatrixOperations1_PGML.pg @@ -16,13 +16,13 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserPopUp.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); $showPartialCorrectAnswers = 0; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Matrix'); @@ -39,19 +39,19 @@ $B = Matrix([ $popup = PopUp(['Choose','True','False'],'False'); BEGIN_PGML -Let +Let >> [`` A = [$A],``] << >> [`` B = [$B]. ``] << If possible, compute the following. If an answer does not exist, enter **DNE**. [` AB = `] -[@ ans_box(3,30).$SPACE.AnswerFormatHelp('matrices') @]* +[@ ans_box(3,30).$SPACE.helpLink('matrices') @]* [` BA = `] -[@ ans_box(3,30).$SPACE.AnswerFormatHelp('matrices') @]* +[@ ans_box(3,30).$SPACE.helpLink('matrices') @]* -[@ $popup->menu @]* True or False: For any two matrices -[` A `] and [` B `], both of the products [` AB `] and [` BA `] +[@ $popup->menu @]* True or False: For any two matrices +[` A `] and [` B `], both of the products [` AB `] and [` BA `] are always defined. END_PGML diff --git a/OpenProblemLibrary/FortLewis/Authoring/Templates/Misc/FormulaAnswer1.pg b/OpenProblemLibrary/FortLewis/Authoring/Templates/Misc/FormulaAnswer1.pg index 8392e575bc..b21b681fed 100644 --- a/OpenProblemLibrary/FortLewis/Authoring/Templates/Misc/FormulaAnswer1.pg +++ b/OpenProblemLibrary/FortLewis/Authoring/Templates/Misc/FormulaAnswer1.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -46,15 +46,15 @@ $answer2 = Compute("($a x^($b) + $b)/x")->reduce(); Context()->texStrings; BEGIN_TEXT (a) Suppose the correct answer is \( $answer1 \). -$BR +$BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR $BR (b) Suppose the correct answer is \( \displaystyle $answer2 \). $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Authoring/Templates/Misc/FormulaAnswer1_PGML.pg b/OpenProblemLibrary/FortLewis/Authoring/Templates/Misc/FormulaAnswer1_PGML.pg index 74ca730790..97264b6aec 100644 --- a/OpenProblemLibrary/FortLewis/Authoring/Templates/Misc/FormulaAnswer1_PGML.pg +++ b/OpenProblemLibrary/FortLewis/Authoring/Templates/Misc/FormulaAnswer1_PGML.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -47,10 +47,10 @@ $answer2 = Compute("($a x^($b) + $b)/x")->reduce(); BEGIN_PGML a. Suppose the correct answer is [` [$answer1] `]. - + [_______________]{$answer1} [@ AnswerFormatHelp("numbers") @]* + + [_______________]{$answer1} [@ helpLink("numbers") @]* b. Suppose the correct answer is [` \displaystyle [$answer2] `]. - + [_______________]{$answer2} [@ AnswerFormatHelp("formulas") @]* + + [_______________]{$answer2} [@ helpLink("formulas") @]* END_PGML diff --git a/OpenProblemLibrary/FortLewis/Authoring/Templates/Misc/FormulaDomain1.pg b/OpenProblemLibrary/FortLewis/Authoring/Templates/Misc/FormulaDomain1.pg index 9675b5a1b0..28c93b2c6e 100644 --- a/OpenProblemLibrary/FortLewis/Authoring/Templates/Misc/FormulaDomain1.pg +++ b/OpenProblemLibrary/FortLewis/Authoring/Templates/Misc/FormulaDomain1.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -47,18 +47,18 @@ $answer2->{test_points} = [[-5],[-4],[1],[$a-1],[7],[8]]; Context()->texStrings; BEGIN_TEXT -(a) Suppose the first answer is +(a) Suppose the first answer is \( \displaystyle $answer1 \). $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR -(b) Suppose the second answer is +(b) Suppose the second answer is \( \displaystyle $answer2 \) $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; @@ -73,9 +73,9 @@ ANS( $answer2->cmp() ); #ANS( $answer2->cmp() #->withPostFilter(AnswerHints( -# [Compute("ln(x/(x-$a))"),Compute("ln(x)-ln(x-$a)")] => +# [Compute("ln(x/(x-$a))"),Compute("ln(x)-ln(x-$a)")] => # "Don't forget to use absolute value", -#)) +#)) #); diff --git a/OpenProblemLibrary/FortLewis/Authoring/Templates/Misc/FormulaDomain1_PGML.pg b/OpenProblemLibrary/FortLewis/Authoring/Templates/Misc/FormulaDomain1_PGML.pg index 80940333ea..5b5b0c7f55 100644 --- a/OpenProblemLibrary/FortLewis/Authoring/Templates/Misc/FormulaDomain1_PGML.pg +++ b/OpenProblemLibrary/FortLewis/Authoring/Templates/Misc/FormulaDomain1_PGML.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -49,10 +49,10 @@ $answer2->{test_points} = [[-5],[-4],[1],[$a-1],[7],[8]]; BEGIN_PGML a. Suppose the first answer is [`` [$answer1] ``]. - + [_______________] [@ AnswerFormatHelp("formulas") @]* + + [_______________] [@ helpLink("formulas") @]* b. Suppose the second answer is [`` [$answer2] ``] - + [_______________] [@ AnswerFormatHelp("formulas") @]* + + [_______________] [@ helpLink("formulas") @]* END_PGML ############################ @@ -63,9 +63,9 @@ ANS( $answer2->cmp() ); #ANS( $answer2->cmp() #->withPostFilter(AnswerHints( -# [Compute("ln(x/(x-$a))"),Compute("ln(x)-ln(x-$a)")] => +# [Compute("ln(x/(x-$a))"),Compute("ln(x)-ln(x-$a)")] => # "Don't forget to use absolute value", -#)) +#)) #); diff --git a/OpenProblemLibrary/FortLewis/Authoring/Templates/Misc/IframeEmbedding1.pg b/OpenProblemLibrary/FortLewis/Authoring/Templates/Misc/IframeEmbedding1.pg index 51e51e423a..8bed65ebed 100644 --- a/OpenProblemLibrary/FortLewis/Authoring/Templates/Misc/IframeEmbedding1.pg +++ b/OpenProblemLibrary/FortLewis/Authoring/Templates/Misc/IframeEmbedding1.pg @@ -25,7 +25,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); TEXT(beginproblem()); @@ -37,17 +37,17 @@ TEXT(beginproblem()); Context("Numeric"); $slideshow = MODES( -HTML=> +HTML=> "", +frameborder='0' width='555' height='451'>", TeX => "An embedded Google slide show." ); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -67,7 +67,7 @@ $video $BR YouTube video of Arthur Benjamin, mathemagician, embedded using an iframe. $BR -If the video does not work, +If the video does not work, \{ htmlLink("http://www.youtube.com/embed/NpDXXjClErk","click here to go to YouTube directly.") \} ${ECENTER} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Authoring/Templates/Misc/IframeEmbedding1_PGML.pg b/OpenProblemLibrary/FortLewis/Authoring/Templates/Misc/IframeEmbedding1_PGML.pg index 025b62afde..56c3396e94 100644 --- a/OpenProblemLibrary/FortLewis/Authoring/Templates/Misc/IframeEmbedding1_PGML.pg +++ b/OpenProblemLibrary/FortLewis/Authoring/Templates/Misc/IframeEmbedding1_PGML.pg @@ -25,7 +25,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -38,17 +38,17 @@ TEXT(beginproblem()); Context("Numeric"); $slideshow = MODES( -HTML=> +HTML=> "", +frameborder='0' width='555' height='451'>", TeX => "An embedded Google slide show." ); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -67,7 +67,7 @@ BEGIN_PGML >> [$video]* << ->> YouTube video of Arthur Benjamin, mathemagician, embedded using an iframe. << +>> YouTube video of Arthur Benjamin, mathemagician, embedded using an iframe. << >> If the video does not work, [@ htmlLink("http://www.youtube.com/embed/NpDXXjClErk","click here to go to YouTube directly.") @]* << END_PGML diff --git a/OpenProblemLibrary/FortLewis/Authoring/Templates/Parametric/PolarGraph1.pg b/OpenProblemLibrary/FortLewis/Authoring/Templates/Parametric/PolarGraph1.pg index a5ce83d3b3..7f0749f3ea 100644 --- a/OpenProblemLibrary/FortLewis/Authoring/Templates/Parametric/PolarGraph1.pg +++ b/OpenProblemLibrary/FortLewis/Authoring/Templates/Parametric/PolarGraph1.pg @@ -16,13 +16,13 @@ ########################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PGgraphmacros.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "PGcourse.pl" ); @@ -49,7 +49,7 @@ $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); # If the polar curve is r = f(t) = cos(5*t), then @@ -71,19 +71,19 @@ $gr->fillRegion([0.5,0.1,'lightgreen']); ########################## -# Main Text +# Main Text Context()->texStrings; BEGIN_TEXT \{ ColumnTable( -"Find the area enclosed by one petal of the +"Find the area enclosed by one petal of the rose curve \( r = f(\theta) = \cos(5\theta) \). $BR $BR Area = ". ans_rule(20).$SPACE. -AnswerFormatHelp("numbers") +helpLink("numbers") , $BCENTER. image( insertGraph($gr), width=>300, height=>300 ). @@ -92,7 +92,7 @@ $PAR. $ECENTER , indent => 0, separation => 30, valign => "TOP" -); +); \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Authoring/Templates/Parametric/PolarGraph1_PGML.pg b/OpenProblemLibrary/FortLewis/Authoring/Templates/Parametric/PolarGraph1_PGML.pg index 3d24b68d1f..0b1f03e4af 100644 --- a/OpenProblemLibrary/FortLewis/Authoring/Templates/Parametric/PolarGraph1_PGML.pg +++ b/OpenProblemLibrary/FortLewis/Authoring/Templates/Parametric/PolarGraph1_PGML.pg @@ -15,13 +15,13 @@ ########################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PGgraphmacros.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "PGML.pl", "PGcourse.pl" @@ -50,7 +50,7 @@ $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); # If the polar curve is r = f(t) = cos(5*t), then @@ -72,11 +72,11 @@ $gr->fillRegion([0.5,0.1,'lightgreen']); $column1 = PGML::Format(< 0, separation => 30, valign => "TOP")); +TEXT(ColumnTable($column1, $column2, indent => 0, separation => 30, valign => "TOP")); ############################ diff --git a/OpenProblemLibrary/FortLewis/Authoring/Templates/Parametric/Spacecurve1.pg b/OpenProblemLibrary/FortLewis/Authoring/Templates/Parametric/Spacecurve1.pg index 6dc2e88c6c..07ee4f4048 100644 --- a/OpenProblemLibrary/FortLewis/Authoring/Templates/Parametric/Spacecurve1.pg +++ b/OpenProblemLibrary/FortLewis/Authoring/Templates/Parametric/Spacecurve1.pg @@ -16,13 +16,13 @@ ########################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -57,23 +57,23 @@ $multians = MultiAnswer($x, $y, $z)->with( ########################## -# Main Text +# Main Text Context()->texStrings; BEGIN_TEXT -Find a parametrization of the curve \( x = $a z^2 \) -in the \(xz\)-plane. Use \( t \) as the +Find a parametrization of the curve \( x = $a z^2 \) +in the \(xz\)-plane. Use \( t \) as the parameter for all of your answers. $BR $BR \( x(t) = \) \{$multians->ans_rule(20)\} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR \( y(t) = \) \{$multians->ans_rule(20)\} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR \( z(t) = \) \{$multians->ans_rule(20)\} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Authoring/Templates/Parametric/Spacecurve1_PGML.pg b/OpenProblemLibrary/FortLewis/Authoring/Templates/Parametric/Spacecurve1_PGML.pg index 2552528825..0ae15ee729 100644 --- a/OpenProblemLibrary/FortLewis/Authoring/Templates/Parametric/Spacecurve1_PGML.pg +++ b/OpenProblemLibrary/FortLewis/Authoring/Templates/Parametric/Spacecurve1_PGML.pg @@ -15,13 +15,13 @@ ########################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -59,16 +59,16 @@ $multians = MultiAnswer($x, $y, $z)->with( ########################## -# Main Text +# Main Text BEGIN_PGML Find a parametrization of the curve [` x = [$a] z^2 `] -in the [`xz`]-plane. Use [` t `] as the +in the [`xz`]-plane. Use [` t `] as the parameter for all of your answers. -[` x(t) = `] [______________]{$multians} [@ AnswerFormatHelp("formulas") @]* -[` y(t) = `] [______________]{$multians} [@ AnswerFormatHelp("formulas") @]* -[` z(t) = `] [______________]{$multians} [@ AnswerFormatHelp("formulas") @]* +[` x(t) = `] [______________]{$multians} [@ helpLink("formulas") @]* +[` y(t) = `] [______________]{$multians} [@ helpLink("formulas") @]* +[` z(t) = `] [______________]{$multians} [@ helpLink("formulas") @]* END_PGML diff --git a/OpenProblemLibrary/FortLewis/Authoring/Templates/Parametric/VectorParametric2.pg b/OpenProblemLibrary/FortLewis/Authoring/Templates/Parametric/VectorParametric2.pg index 69f5980bac..03dea110f6 100644 --- a/OpenProblemLibrary/FortLewis/Authoring/Templates/Parametric/VectorParametric2.pg +++ b/OpenProblemLibrary/FortLewis/Authoring/Templates/Parametric/VectorParametric2.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserVectorUtils.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -45,15 +45,15 @@ $answer = Vector("<2t,(2t)^2>"); Context()->texStrings; BEGIN_TEXT -Find a vector parametric function \( \vec{r}(t) \) -for a bug that moves along the parabola \( y = x^2 \) -with velocity \( \vec{v}(t) = \langle 2, 8t \rangle \) +Find a vector parametric function \( \vec{r}(t) \) +for a bug that moves along the parabola \( y = x^2 \) +with velocity \( \vec{v}(t) = \langle 2, 8t \rangle \) for all \( t \). $BR $BR -\( \vec{r}(t) = \) +\( \vec{r}(t) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("vectors") \} +\{ helpLink("vectors") \} END_TEXT Context()->normalStrings; @@ -69,7 +69,7 @@ sub mycheck { my $ystu = $student . Vector(0,1); if ( ($xstu->D('t')==Formula("2")) && ($ystu->D('t')==Formula("8t")) ) - { return 1; } else { return 0; } + { return 1; } else { return 0; } } ANS( $answer->cmp( checker=>~~&mycheck ) ); @@ -85,4 +85,4 @@ Solution explanation goes here. END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/FortLewis/Authoring/Templates/Parametric/VectorParametric2_PGML.pg b/OpenProblemLibrary/FortLewis/Authoring/Templates/Parametric/VectorParametric2_PGML.pg index 3022b19c76..0d1931cdfd 100644 --- a/OpenProblemLibrary/FortLewis/Authoring/Templates/Parametric/VectorParametric2_PGML.pg +++ b/OpenProblemLibrary/FortLewis/Authoring/Templates/Parametric/VectorParametric2_PGML.pg @@ -22,7 +22,7 @@ loadMacros( "MathObjects.pl", "parserVectorUtils.pl", "contextLimitedVector.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -44,12 +44,12 @@ $answer = Vector("<2t,(2t)^2>"); # Main text BEGIN_PGML -Find a vector parametric function [` \vec{r}(t) `] -for a bug that moves along the parabola [` y = x^2 `] -with velocity [` \vec{v}(t) = \langle 2, 8t \rangle `] +Find a vector parametric function [` \vec{r}(t) `] +for a bug that moves along the parabola [` y = x^2 `] +with velocity [` \vec{v}(t) = \langle 2, 8t \rangle `] for all [` t `]. -[` \vec{r}(t) = `] [______________] [@ AnswerFormatHelp("vectors") @]* +[` \vec{r}(t) = `] [______________] [@ helpLink("vectors") @]* END_PGML @@ -64,7 +64,7 @@ sub mycheck { my $ystu = $student . Vector(0,1); if ( ($xstu->D('t')==Formula("2")) && ($ystu->D('t')==Formula("8t")) ) - { return 1; } else { return 0; } + { return 1; } else { return 0; } } ANS( $answer->cmp( checker=>~~&mycheck ) ); @@ -77,4 +77,4 @@ BEGIN_PGML_SOLUTION Solution explanation goes here. END_PGML_SOLUTION -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/FortLewis/Authoring/Templates/Parametric/VectorParametricLines1_PGML.pg b/OpenProblemLibrary/FortLewis/Authoring/Templates/Parametric/VectorParametricLines1_PGML.pg index 34ebf22eee..05911f2df7 100644 --- a/OpenProblemLibrary/FortLewis/Authoring/Templates/Parametric/VectorParametricLines1_PGML.pg +++ b/OpenProblemLibrary/FortLewis/Authoring/Templates/Parametric/VectorParametricLines1_PGML.pg @@ -22,7 +22,7 @@ loadMacros( "MathObjects.pl", "parserVectorUtils.pl", "parserParametricLine.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -52,18 +52,18 @@ $particular = Line($P,$V,'2t'); # Main text BEGIN_PGML -a. Find any vector parametric equation for the -line that goes through the points [` [$P] `] and -[` [$Q1] `]. +a. Find any vector parametric equation for the +line that goes through the points [` [$P] `] and +[` [$Q1] `]. - [` \vec{L}(t) = `] [____________________]{$general} [@ AnswerFormatHelp("vectors") @]* + [` \vec{L}(t) = `] [____________________]{$general} [@ helpLink("vectors") @]* -b. Find a vector parametric equation for the -line that goes through the point [` [$P] `] +b. Find a vector parametric equation for the +line that goes through the point [` [$P] `] when [` t = 0 `] and the point [` [$Q2] `] when -[` t = 1 `]. +[` t = 1 `]. - [` \vec{L}(t) = `] [____________________]{$particular} [@ AnswerFormatHelp("vectors") @]* + [` \vec{L}(t) = `] [____________________]{$particular} [@ helpLink("vectors") @]* END_PGML @@ -76,4 +76,4 @@ END_PGML_SOLUTION COMMENT('Uses PGML.'); -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/FortLewis/Authoring/Templates/Precalc/AnswerUpToMultiplication1.pg b/OpenProblemLibrary/FortLewis/Authoring/Templates/Precalc/AnswerUpToMultiplication1.pg index 7e345a2d7a..6321dfccba 100644 --- a/OpenProblemLibrary/FortLewis/Authoring/Templates/Precalc/AnswerUpToMultiplication1.pg +++ b/OpenProblemLibrary/FortLewis/Authoring/Templates/Precalc/AnswerUpToMultiplication1.pg @@ -21,11 +21,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); -TEXT(beginproblem()); +TEXT(beginproblem()); ########################### @@ -41,12 +41,12 @@ $aSolution = Compute("(x-2)(x+1)"); Context()->texStrings; BEGIN_TEXT -Find a quadratic equation in terms of the variable +Find a quadratic equation in terms of the variable \( x \) with roots \( -1 \) and \( 2 \). $BR $BR \( y = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Authoring/Templates/Precalc/AnswerUpToMultiplication1_PGML.pg b/OpenProblemLibrary/FortLewis/Authoring/Templates/Precalc/AnswerUpToMultiplication1_PGML.pg index 816d41ad70..369d76d93a 100644 --- a/OpenProblemLibrary/FortLewis/Authoring/Templates/Precalc/AnswerUpToMultiplication1_PGML.pg +++ b/OpenProblemLibrary/FortLewis/Authoring/Templates/Precalc/AnswerUpToMultiplication1_PGML.pg @@ -20,12 +20,12 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); -TEXT(beginproblem()); +TEXT(beginproblem()); ########################### @@ -40,10 +40,10 @@ $aSolution = Compute("(x-2)(x+1)"); # Main text BEGIN_PGML -Find a quadratic equation in terms of the variable +Find a quadratic equation in terms of the variable [` x `] with roots [` -1 `] and [` 2 `]. -[` y = `] [______________] [@ AnswerFormatHelp("formulas") @]* +[` y = `] [______________] [@ helpLink("formulas") @]* END_PGML ############################ diff --git a/OpenProblemLibrary/FortLewis/Authoring/Templates/Precalc/DomainRange1.pg b/OpenProblemLibrary/FortLewis/Authoring/Templates/Precalc/DomainRange1.pg index 7527d4401d..2864858d16 100644 --- a/OpenProblemLibrary/FortLewis/Authoring/Templates/Precalc/DomainRange1.pg +++ b/OpenProblemLibrary/FortLewis/Authoring/Templates/Precalc/DomainRange1.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextInequalities.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -46,13 +46,13 @@ $domain = Compute("x >= 4"); Context()->texStrings; BEGIN_TEXT -Suppose \( f(x) = $f \). Enter inequalities for the +Suppose \( f(x) = $f \). Enter inequalities for the domain and range of \( f \). $BR $BR -Domain: +Domain: \{ ans_rule(20) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} $BR END_TEXT Context()->normalStrings; @@ -82,7 +82,7 @@ Context()->texStrings; BEGIN_TEXT Range:$SPACE$SPACE \{ ans_rule(20) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Authoring/Templates/Precalc/DomainRange1_PGML.pg b/OpenProblemLibrary/FortLewis/Authoring/Templates/Precalc/DomainRange1_PGML.pg index 6bdaf3a714..5a7e495b1d 100644 --- a/OpenProblemLibrary/FortLewis/Authoring/Templates/Precalc/DomainRange1_PGML.pg +++ b/OpenProblemLibrary/FortLewis/Authoring/Templates/Precalc/DomainRange1_PGML.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextInequalities.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -48,10 +48,10 @@ $domain = Compute("x >= 4"); # Main Text 1 BEGIN_PGML -Suppose [` f(x) = $f `]. Enter inequalities for the +Suppose [` f(x) = $f `]. Enter inequalities for the domain and range of [` f `]. -Domain: [_________________]{$domain} [@ AnswerFormatHelp("inequalities") @]* +Domain: [_________________]{$domain} [@ helpLink("inequalities") @]* END_PGML @@ -67,7 +67,7 @@ $range = Compute("y >= 0"); # Main text 2 BEGIN_PGML -Range: [_________________]{$range} [@ AnswerFormatHelp("inequalities") @]* +Range: [_________________]{$range} [@ helpLink("inequalities") @]* END_PGML diff --git a/OpenProblemLibrary/FortLewis/Authoring/Templates/Precalc/DynamicGraph1.pg b/OpenProblemLibrary/FortLewis/Authoring/Templates/Precalc/DynamicGraph1.pg index ff52b8e557..4afc96eec6 100644 --- a/OpenProblemLibrary/FortLewis/Authoring/Templates/Precalc/DynamicGraph1.pg +++ b/OpenProblemLibrary/FortLewis/Authoring/Templates/Precalc/DynamicGraph1.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGgraphmacros.pl", "unionTables.pl", "PGML.pl", @@ -77,10 +77,10 @@ as a comma separated list. If there are no correct answers, enter _NONE._ a. [` f(0) = `] [________]{List($c)} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* b. [` f \big( `] [______]{List(-$a,$b)} [` \big) = 0 `]. -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* END_PGML $column2 = image(insertGraph($gr), width=>300, height=>300, tex_size=>700). diff --git a/OpenProblemLibrary/FortLewis/Authoring/Templates/Precalc/DynamicGraph1_PGML.pg b/OpenProblemLibrary/FortLewis/Authoring/Templates/Precalc/DynamicGraph1_PGML.pg index 23a381bf45..f300786c07 100644 --- a/OpenProblemLibrary/FortLewis/Authoring/Templates/Precalc/DynamicGraph1_PGML.pg +++ b/OpenProblemLibrary/FortLewis/Authoring/Templates/Precalc/DynamicGraph1_PGML.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGgraphmacros.pl", "unionTables.pl", "PGML.pl", @@ -71,20 +71,20 @@ add_functions($gr, "$A*x**2+$B*x+$C for x in <-5,5> using color:blue and weight: Context()->texStrings; $table = ColumnTable( -"Use the graph to find the missing values. -There may be more than one correct answer, +"Use the graph to find the missing values. +There may be more than one correct answer, in which case you should enter your answers as a comma separated list. If there are no correct answers, enter ${BITALIC}NONE.${EITALIC} $BR $BR -(a) \( f(0) = \) " . +(a) \( f(0) = \) " . ans_rule(7).$SPACE. -AnswerFormatHelp("numbers"). +helpLink("numbers"). "$BR $BR (b) \( f \big( \) ".ans_rule(7)." \( \big) = 0 \). ". -AnswerFormatHelp("numbers") +helpLink("numbers") , image(insertGraph($gr), width=>300, height=>300, tex_size=>700). $BR.$BCENTER. diff --git a/OpenProblemLibrary/FortLewis/Authoring/Templates/Precalc/FunctionDecomposition1.pg b/OpenProblemLibrary/FortLewis/Authoring/Templates/Precalc/FunctionDecomposition1.pg index 18cf3d969b..6a555350b5 100644 --- a/OpenProblemLibrary/FortLewis/Authoring/Templates/Precalc/FunctionDecomposition1.pg +++ b/OpenProblemLibrary/FortLewis/Authoring/Templates/Precalc/FunctionDecomposition1.pg @@ -27,11 +27,11 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerComposition.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); -TEXT(beginproblem()); +TEXT(beginproblem()); ########################### @@ -51,16 +51,16 @@ $g = Formula("x^2+$a"); Context()->texStrings; BEGIN_TEXT -Express the function \( y = \sqrt{ x^2 + $a } \) +Express the function \( y = \sqrt{ x^2 + $a } \) as a composition \( y = f(g(x)) \) of two simpler functions \( y = f(u) \) and \( u = g(x) \). $BR $BR \( f(u) \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR \( g(x) \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Authoring/Templates/Precalc/FunctionDecomposition1_PGML.pg b/OpenProblemLibrary/FortLewis/Authoring/Templates/Precalc/FunctionDecomposition1_PGML.pg index a46eec597e..ab7ae8a010 100644 --- a/OpenProblemLibrary/FortLewis/Authoring/Templates/Precalc/FunctionDecomposition1_PGML.pg +++ b/OpenProblemLibrary/FortLewis/Authoring/Templates/Precalc/FunctionDecomposition1_PGML.pg @@ -27,12 +27,12 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "answerComposition.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); -TEXT(beginproblem()); +TEXT(beginproblem()); ########################### @@ -55,9 +55,9 @@ Express the function [` y = \sqrt{ x^2 + [$a] } `] as a composition [` y = f(g(x)) `] of two simpler functions [` y = f(u) `] and [` u = g(x) `]. -+ [` f(u) = `] [_______________] [@ AnswerFormatHelp("formulas") @]* ++ [` f(u) = `] [_______________] [@ helpLink("formulas") @]* -+ [` g(x) = `] [_______________] [@ AnswerFormatHelp("formulas") @]* ++ [` g(x) = `] [_______________] [@ helpLink("formulas") @]* END_PGML diff --git a/OpenProblemLibrary/FortLewis/Authoring/Templates/Precalc/PointAnswers1.pg b/OpenProblemLibrary/FortLewis/Authoring/Templates/Precalc/PointAnswers1.pg index aba06e3d34..5f5add8da8 100644 --- a/OpenProblemLibrary/FortLewis/Authoring/Templates/Precalc/PointAnswers1.pg +++ b/OpenProblemLibrary/FortLewis/Authoring/Templates/Precalc/PointAnswers1.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGcourse.pl" ); @@ -48,16 +48,16 @@ Context()->texStrings; BEGIN_TEXT Enter the x-intercept(s) and y-intercept(s) of \( y = $f \). Enter a point as \( (a,b) \), -including the parentheses. If there is more -than one correct answer, enter a comma +including the parentheses. If there is more +than one correct answer, enter a comma separated list of points. $BR $BR x-intercept(s): \{ ans_rule(20) \} -\{ AnswerFormatHelp("points") \} +\{ helpLink("points") \} $BR y-intercept(s): \{ ans_rule(20) \} -\{ AnswerFormatHelp("points") \} +\{ helpLink("points") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Authoring/Templates/Precalc/PointAnswers1_PGML.pg b/OpenProblemLibrary/FortLewis/Authoring/Templates/Precalc/PointAnswers1_PGML.pg index cd61a9126d..a2f827a844 100644 --- a/OpenProblemLibrary/FortLewis/Authoring/Templates/Precalc/PointAnswers1_PGML.pg +++ b/OpenProblemLibrary/FortLewis/Authoring/Templates/Precalc/PointAnswers1_PGML.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl" @@ -48,13 +48,13 @@ $yint = List( Point("(0,-1)") ); BEGIN_PGML Enter the [`x`]-intercept(s) and [`y`]-intercept(s) of [` y = [$f] `]. Enter a point as [` (a,b) `], -including the parentheses. If there is more -than one correct answer, enter a comma +including the parentheses. If there is more +than one correct answer, enter a comma separated list of points. -+ [`x`]-intercept(s): [_________________]{$xint} [@ AnswerFormatHelp("points") @]* ++ [`x`]-intercept(s): [_________________]{$xint} [@ helpLink("points") @]* -+ [`y`]-intercept(s): [_________________]{$yint} [@ AnswerFormatHelp("points") @]* ++ [`y`]-intercept(s): [_________________]{$yint} [@ helpLink("points") @]* END_PGML diff --git a/OpenProblemLibrary/FortLewis/Authoring/Templates/Precalc/ScalingTranslating1.pg b/OpenProblemLibrary/FortLewis/Authoring/Templates/Precalc/ScalingTranslating1.pg index 849e23ba5f..3ffd429465 100644 --- a/OpenProblemLibrary/FortLewis/Authoring/Templates/Precalc/ScalingTranslating1.pg +++ b/OpenProblemLibrary/FortLewis/Authoring/Templates/Precalc/ScalingTranslating1.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserFunction.pl", "PGcourse.pl" ); @@ -46,13 +46,13 @@ $answer = Formula("f(x-2) + 1"); Context()->texStrings; BEGIN_TEXT A function \( f(x) \) is shifted to the right -\( 2 \) units and up \( 1 \) unit. Find a formula +\( 2 \) units and up \( 1 \) unit. Find a formula for this shifted function in terms of the function \( f(x) \). $BR $BR Answer = \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Authoring/Templates/Precalc/ScalingTranslating1_PGML.pg b/OpenProblemLibrary/FortLewis/Authoring/Templates/Precalc/ScalingTranslating1_PGML.pg index cf3fb39457..9fd2cb4beb 100644 --- a/OpenProblemLibrary/FortLewis/Authoring/Templates/Precalc/ScalingTranslating1_PGML.pg +++ b/OpenProblemLibrary/FortLewis/Authoring/Templates/Precalc/ScalingTranslating1_PGML.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserFunction.pl", "PGML.pl", "PGcourse.pl" @@ -45,11 +45,11 @@ $answer = Formula("f(x-2) + 1"); BEGIN_PGML A function [` f(x) `] is shifted to the right -[` 2 `] units and up [` 1 `] unit. Find a formula +[` 2 `] units and up [` 1 `] unit. Find a formula for this shifted function in terms of the function [` f(x) `]. -Answer = [_______________]{$answer} [@ AnswerFormatHelp("formulas") @]* +Answer = [_______________]{$answer} [@ helpLink("formulas") @]* END_PGML diff --git a/OpenProblemLibrary/FortLewis/Authoring/Templates/Precalc/StringOrOtherType1.pg b/OpenProblemLibrary/FortLewis/Authoring/Templates/Precalc/StringOrOtherType1.pg index 71293c692f..a2d1b2448a 100644 --- a/OpenProblemLibrary/FortLewis/Authoring/Templates/Precalc/StringOrOtherType1.pg +++ b/OpenProblemLibrary/FortLewis/Authoring/Templates/Precalc/StringOrOtherType1.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -47,14 +47,14 @@ if ($y < 4) { Context()->texStrings; BEGIN_TEXT -Is there a line through the points \( (0,0) \), -\( (1,2) \), and \( (2,$y) \)? If there is, +Is there a line through the points \( (0,0) \), +\( (1,2) \), and \( (2,$y) \)? If there is, enter the equation for this line. If not, enter ${BITALIC}NONE${EITALIC}. $BR $BR \( y = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Authoring/Templates/Precalc/StringOrOtherType1_PGML.pg b/OpenProblemLibrary/FortLewis/Authoring/Templates/Precalc/StringOrOtherType1_PGML.pg index 36a3bd1666..81e6006e3b 100644 --- a/OpenProblemLibrary/FortLewis/Authoring/Templates/Precalc/StringOrOtherType1_PGML.pg +++ b/OpenProblemLibrary/FortLewis/Authoring/Templates/Precalc/StringOrOtherType1_PGML.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -48,12 +48,12 @@ if ($y < 4) { # Main text BEGIN_PGML -Is there a line through the points [` (0,0) `], -[` (1,2) `], and [` (2,[$y]) `]? If there is, +Is there a line through the points [` (0,0) `], +[` (1,2) `], and [` (2,[$y]) `]? If there is, enter the equation for this line. If not, enter _NONE_. -[` y = `] [_______________]{$answer} [@ AnswerFormatHelp("formulas") @]* +[` y = `] [_______________]{$answer} [@ helpLink("formulas") @]* END_PGML diff --git a/OpenProblemLibrary/FortLewis/Authoring/Templates/Precalc/TableOfValues1.pg b/OpenProblemLibrary/FortLewis/Authoring/Templates/Precalc/TableOfValues1.pg index 8102e7d366..bd50480eb6 100644 --- a/OpenProblemLibrary/FortLewis/Authoring/Templates/Precalc/TableOfValues1.pg +++ b/OpenProblemLibrary/FortLewis/Authoring/Templates/Precalc/TableOfValues1.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -48,14 +48,14 @@ foreach my $i (0..2) { Context()->texStrings; BEGIN_TEXT If \( f(x) = $f \), fill in the table of values with numbers. -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $PAR $BCENTER -\{ +\{ begintable(5) . row( "\(x = \)", "0", "1", "2" ) . row( "\(f(x) = \)", ans_rule(5), ans_rule(5), ans_rule(5) ) . -endtable(); +endtable(); \} $ECENTER END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Authoring/Templates/Precalc/TableOfValues1_PGML.pg b/OpenProblemLibrary/FortLewis/Authoring/Templates/Precalc/TableOfValues1_PGML.pg index eff864e530..9e43347685 100644 --- a/OpenProblemLibrary/FortLewis/Authoring/Templates/Precalc/TableOfValues1_PGML.pg +++ b/OpenProblemLibrary/FortLewis/Authoring/Templates/Precalc/TableOfValues1_PGML.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -44,7 +44,7 @@ foreach my $i (0..2) { $table = $BCENTER.begintable(5) . row( "\(x = \)", "0", "1", "2" ) . row( "\(f(x) = \)", ans_rule(5), ans_rule(5), ans_rule(5) ) . -endtable().$ECENTER; +endtable().$ECENTER; ########################### @@ -52,7 +52,7 @@ endtable().$ECENTER; BEGIN_PGML If [` f(x) = [$f] `], fill in the table of values with numbers. -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* [@ $table @]*** END_PGML diff --git a/OpenProblemLibrary/FortLewis/Authoring/Templates/Sequences/AnswerOrderedList1.pg b/OpenProblemLibrary/FortLewis/Authoring/Templates/Sequences/AnswerOrderedList1.pg index e9e8cfb231..74598ea52d 100644 --- a/OpenProblemLibrary/FortLewis/Authoring/Templates/Sequences/AnswerOrderedList1.pg +++ b/OpenProblemLibrary/FortLewis/Authoring/Templates/Sequences/AnswerOrderedList1.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -50,13 +50,13 @@ Context()->texStrings; BEGIN_TEXT If \( s_1 = $seq[0] \), \( s_2 = $seq[1] \), and \( s_n = s_{n-1} + s_{n-2} \), find the first seven -terms of this sequence, including \( s_1 \) and +terms of this sequence, including \( s_1 \) and \( s_2 \). Enter your answer as a comma separated list of numbers. $BR $BR Sequence = \{ ans_rule(40) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Authoring/Templates/Sequences/AnswerOrderedList1_PGML.pg b/OpenProblemLibrary/FortLewis/Authoring/Templates/Sequences/AnswerOrderedList1_PGML.pg index 05e4c086b7..a7c7c15cdc 100644 --- a/OpenProblemLibrary/FortLewis/Authoring/Templates/Sequences/AnswerOrderedList1_PGML.pg +++ b/OpenProblemLibrary/FortLewis/Authoring/Templates/Sequences/AnswerOrderedList1_PGML.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -51,11 +51,11 @@ $answer_cmp = Compute("$answer_string")->cmp(ordered=>1); BEGIN_PGML If [` s_1 = [$seq[0]] `], [` s_2 = [$seq[1]] `], and [` s_n = s_{n-1} + s_{n-2} `], find the first seven -terms of this sequence, including [` s_1 `] and +terms of this sequence, including [` s_1 `] and [` s_2 `]. Enter your answer as a comma separated list of numbers. -Sequence = [___________________]{$answer_cmp} [@ AnswerFormatHelp("numbers") @]* +Sequence = [___________________]{$answer_cmp} [@ helpLink("numbers") @]* END_PGML diff --git a/OpenProblemLibrary/FortLewis/Authoring/Templates/Sequences/ExplicitSequence1.pg b/OpenProblemLibrary/FortLewis/Authoring/Templates/Sequences/ExplicitSequence1.pg index 27222eb998..c617e8a2ac 100644 --- a/OpenProblemLibrary/FortLewis/Authoring/Templates/Sequences/ExplicitSequence1.pg +++ b/OpenProblemLibrary/FortLewis/Authoring/Templates/Sequences/ExplicitSequence1.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -60,7 +60,7 @@ $BR $BR \( a_n = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Authoring/Templates/Sequences/ExplicitSequence1_PGML.pg b/OpenProblemLibrary/FortLewis/Authoring/Templates/Sequences/ExplicitSequence1_PGML.pg index b686049934..eaf4e1f29e 100644 --- a/OpenProblemLibrary/FortLewis/Authoring/Templates/Sequences/ExplicitSequence1_PGML.pg +++ b/OpenProblemLibrary/FortLewis/Authoring/Templates/Sequences/ExplicitSequence1_PGML.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -58,7 +58,7 @@ $sequence = join(", ", @seq); BEGIN_PGML Find a formula for [` n^{th} `] term of the sequence [` [$sequence] `]. -[` a_n = `] [__________________]{$answer} [@ AnswerFormatHelp("formulas") @]* +[` a_n = `] [__________________]{$answer} [@ helpLink("formulas") @]* END_PGML diff --git a/OpenProblemLibrary/FortLewis/Authoring/Templates/Sequences/RecursiveSequence1_PGML.pg b/OpenProblemLibrary/FortLewis/Authoring/Templates/Sequences/RecursiveSequence1_PGML.pg index 7d736fb937..3ad2a85138 100644 --- a/OpenProblemLibrary/FortLewis/Authoring/Templates/Sequences/RecursiveSequence1_PGML.pg +++ b/OpenProblemLibrary/FortLewis/Authoring/Templates/Sequences/RecursiveSequence1_PGML.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserFunction.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -45,12 +45,12 @@ $fn = Formula("3 f(n-1) + 2"); # Main text BEGIN_PGML -The current value [` f(n) `] is three +The current value [` f(n) `] is three times the previous value, plus two. Find a recursive definition for [` f(n) `]. Enter [` f_{n-1} `] as [` f(n-1) `]. -[` f(n) = `] [______________]{$fn} [@ AnswerFormatHelp("formulas") @]* +[` f(n) = `] [______________]{$fn} [@ helpLink("formulas") @]* END_PGML diff --git a/OpenProblemLibrary/FortLewis/Authoring/Templates/Trig/DisableFunctions1.pg b/OpenProblemLibrary/FortLewis/Authoring/Templates/Trig/DisableFunctions1.pg index 973c236425..f9c103a755 100644 --- a/OpenProblemLibrary/FortLewis/Authoring/Templates/Trig/DisableFunctions1.pg +++ b/OpenProblemLibrary/FortLewis/Authoring/Templates/Trig/DisableFunctions1.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -34,11 +34,11 @@ TEXT(beginproblem()); Context("Fraction-NoDecimals"); -# Prevent pi from becoming 3.1415... and cos(pi) from +# Prevent pi from becoming 3.1415... and cos(pi) from # becoming -1. -Context()->constants->set(pi => {keepName => 1}); +Context()->constants->set(pi => {keepName => 1}); -# The next context changes are not necessary to +# The next context changes are not necessary to # prevent cos(pi) from becoming -1, but they cannot hurt. Context()->flags->set( reduceConstants=>0, @@ -65,12 +65,12 @@ $BR $BR \( $f1 = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("fractions") \} +\{ helpLink("fractions") \} $BR $BR \( $f2 = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("fractions") \} +\{ helpLink("fractions") \} END_TEXT Context()->normalStrings; @@ -91,7 +91,7 @@ ANS( $answer2->cmp() ); Context()->texStrings; BEGIN_SOLUTION -The cosine of an angle is zero when +The cosine of an angle is zero when the angle is an integer multiple of \( \pi \). END_SOLUTION Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Authoring/Templates/Trig/DisableFunctions1_PGML.pg b/OpenProblemLibrary/FortLewis/Authoring/Templates/Trig/DisableFunctions1_PGML.pg index 0c5fbaa561..25d54ec881 100644 --- a/OpenProblemLibrary/FortLewis/Authoring/Templates/Trig/DisableFunctions1_PGML.pg +++ b/OpenProblemLibrary/FortLewis/Authoring/Templates/Trig/DisableFunctions1_PGML.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl" @@ -37,11 +37,11 @@ $showPartialCorrectAnswers = 1; Context("Fraction-NoDecimals"); -# Prevent pi from becoming 3.1415... and cos(pi) from +# Prevent pi from becoming 3.1415... and cos(pi) from # becoming -1. -Context()->constants->set(pi => {keepName => 1}); +Context()->constants->set(pi => {keepName => 1}); -# The next context changes are not necessary to +# The next context changes are not necessary to # prevent cos(pi) from becoming -1, but they cannot hurt. Context()->flags->set( reduceConstants=>0, @@ -64,9 +64,9 @@ $answer2 = Compute("sqrt(3)/2"); BEGIN_PGML Enter your answers as simplified fractions. -+ [` [$f1] = `] [_____________]{$answer1} [@ AnswerFormatHelp("fractions") @]* ++ [` [$f1] = `] [_____________]{$answer1} [@ helpLink("fractions") @]* -+ [` [$f2] = `] [_____________]{$answer2} [@ AnswerFormatHelp("fractions") @]* ++ [` [$f2] = `] [_____________]{$answer2} [@ helpLink("fractions") @]* END_PGML @@ -74,7 +74,7 @@ END_PGML # Solution BEGIN_PGML_SOLUTION -The cosine of an angle is zero when +The cosine of an angle is zero when the angle is an integer multiple of \( \pi \). END_PGML_SOLUTION diff --git a/OpenProblemLibrary/FortLewis/Authoring/Templates/Trig/PeriodicAnswers1.pg b/OpenProblemLibrary/FortLewis/Authoring/Templates/Trig/PeriodicAnswers1.pg index a456b63daf..a9d55fb8d4 100644 --- a/OpenProblemLibrary/FortLewis/Authoring/Templates/Trig/PeriodicAnswers1.pg +++ b/OpenProblemLibrary/FortLewis/Authoring/Templates/Trig/PeriodicAnswers1.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -46,7 +46,7 @@ $BR $BR \( \theta = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("angles") \} +\{ helpLink("angles") \} END_TEXT Context()->normalStrings; @@ -65,7 +65,7 @@ ANS( $answer->cmp() ); Context()->texStrings; BEGIN_SOLUTION -The cosine of an angle is zero when +The cosine of an angle is zero when the angle is an integer multiple of \( \pi \). END_SOLUTION Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Authoring/Templates/Trig/PeriodicAnswers1_PGML.pg b/OpenProblemLibrary/FortLewis/Authoring/Templates/Trig/PeriodicAnswers1_PGML.pg index df719497d5..78b74c1f4c 100644 --- a/OpenProblemLibrary/FortLewis/Authoring/Templates/Trig/PeriodicAnswers1_PGML.pg +++ b/OpenProblemLibrary/FortLewis/Authoring/Templates/Trig/PeriodicAnswers1_PGML.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -45,7 +45,7 @@ $answer = Real("pi/2")->with(period=>pi); BEGIN_PGML Enter a solution to [` \cos(\theta) = 0 `]. -[` \theta = `] [____________]{$answer} [@ AnswerFormatHelp("angles") @]* +[` \theta = `] [____________]{$answer} [@ helpLink("angles") @]* END_PGML @@ -53,7 +53,7 @@ END_PGML # Solution BEGIN_PGML_SOLUTION -The cosine of an angle is zero when +The cosine of an angle is zero when the angle is an integer multiple of \( \pi \). END_PGML_SOLUTION diff --git a/OpenProblemLibrary/FortLewis/Authoring/Templates/Trig/TrigFunctionsDegrees1.pg b/OpenProblemLibrary/FortLewis/Authoring/Templates/Trig/TrigFunctionsDegrees1.pg index 5e38839fe9..9ab9df9079 100644 --- a/OpenProblemLibrary/FortLewis/Authoring/Templates/Trig/TrigFunctionsDegrees1.pg +++ b/OpenProblemLibrary/FortLewis/Authoring/Templates/Trig/TrigFunctionsDegrees1.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -38,7 +38,7 @@ Context("Numeric"); Context()->functions->remove("cos"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub cos { @@ -48,14 +48,14 @@ sub cos { package main; # Make it work on formulas as well as numbers # if uncommented, this next line will generate error messages -#sub cos {Parser::Function->call('cos',@_)} +#sub cos {Parser::Function->call('cos',@_)} # Add the new functions to the Context Context()->functions->add( cos => {class => 'NewFunc', TeX => '\cos'}, ); Context()->functions->remove("sin"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub sin { @@ -65,14 +65,14 @@ sub sin { package main; # Make it work on formulas as well as numbers # if uncommented, this next line will generate error messages -#sub sin {Parser::Function->call('sin',@_)} +#sub sin {Parser::Function->call('sin',@_)} # Add the new functions to the Context Context()->functions->add( sin => {class => 'NewFunc', TeX => '\sin'}, ); Context()->functions->remove("tan"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub tan { @@ -88,7 +88,7 @@ Context()->functions->add( tan => {class => 'NewFunc', TeX => '\tan'}, ); Context()->functions->remove("sec"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub sec { @@ -97,14 +97,14 @@ sub sec { } package main; # Make it work on formulas as well as numbers -sub sec {Parser::Function->call('sec',@_)} +sub sec {Parser::Function->call('sec',@_)} # Add the new functions to the Context Context()->functions->add( sec => {class => 'NewFunc', TeX => '\sec'}, ); Context()->functions->remove("csc"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub csc { @@ -113,14 +113,14 @@ sub csc { } package main; # Make it work on formulas as well as numbers -sub csc {Parser::Function->call('csc',@_)} +sub csc {Parser::Function->call('csc',@_)} # Add the new functions to the Context Context()->functions->add( csc => {class => 'NewFunc', TeX => '\csc'}, ); Context()->functions->remove("cot"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub cot { @@ -145,7 +145,7 @@ Context()->functions->add( cot => {class => 'NewFunc', TeX => '\cot'}, ); Context()->functions->remove("acos"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub acos {CORE::atan2(CORE::sqrt(1-$_[1]*$_[1]),$_[1])*180/3.14159265358979} @@ -158,7 +158,7 @@ Context()->functions->add( acos => {class => 'NewFunc', TeX => '\arccos'}, ); Context()->functions->remove("asin"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub asin {CORE::atan2($_[1],CORE::sqrt(1-$_[1]*$_[1]))*180/3.14159265358979} @@ -171,7 +171,7 @@ Context()->functions->add( asin => {class => 'NewFunc', TeX => '\arcsin'}, ); Context()->functions->remove("atan"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub atan {CORE::atan2($_[1],1)*180/3.14159265358979} @@ -184,7 +184,7 @@ Context()->functions->add( atan => {class => 'NewFunc', TeX => '\arctan'}, ); Context()->functions->remove("asec"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub asec {CORE::atan2($_[1],CORE::sqrt(1-$_[1]*$_[1]))*180/3.14159265358979} @@ -198,7 +198,7 @@ Context()->functions->add( asec => {class => 'NewFunc', TeX => '\arcsec'}, ); Context()->functions->remove("acsc"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub acsc {CORE::atan2(CORE::sqrt(1-$_[1]*$_[1]),$_[1])*180/3.14159265358979} @@ -212,7 +212,7 @@ Context()->functions->add( acsc => {class => 'NewFunc', TeX => '\arccsc'}, ); Context()->functions->remove("acot"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub acot {CORE::atan2(1,$_[1])*180/3.14159265358979} @@ -233,13 +233,13 @@ Context()->functions->add( acot => {class => 'NewFunc', TeX => '\arccot'}, ); Context()->texStrings; BEGIN_TEXT -Enter \( \sin(30) \): +Enter \( \sin(30) \): \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR -Enter \( \arcsin(1/2) \): +Enter \( \arcsin(1/2) \): \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR Caution: Enter \( \arcsin(x) \) as \( \arcsin(x) \) or \( \mathrm{asin}(x) \), but not \( \sin^{-1}(x) \). diff --git a/OpenProblemLibrary/FortLewis/Authoring/Templates/Trig/TrigIdentities1.pg b/OpenProblemLibrary/FortLewis/Authoring/Templates/Trig/TrigIdentities1.pg index 06b1aa7760..8d26a3ff02 100644 --- a/OpenProblemLibrary/FortLewis/Authoring/Templates/Trig/TrigIdentities1.pg +++ b/OpenProblemLibrary/FortLewis/Authoring/Templates/Trig/TrigIdentities1.pg @@ -16,12 +16,12 @@ #################################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", "PGcourse.pl" ); @@ -41,7 +41,7 @@ Context("Numeric"); # Context()->functions->remove("tan"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub tan { @@ -50,9 +50,9 @@ sub tan { } package main; # Make it work on formulas as well as numbers -sub tan {Parser::Function->call('tan',@_)} +sub tan {Parser::Function->call('tan',@_)} # Add the new functions to the Context -Context()->functions->add( +Context()->functions->add( tan => {class =>'NewFunc', TeX =>'\tan'}, ); @@ -66,7 +66,7 @@ Simplify the expression as much as possible. $BR $BR \( \tan(x) \cos(x) \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; @@ -76,9 +76,9 @@ Context()->normalStrings; $showPartialCorrectAnswers = 1; -ANS(Formula("sin(x)")->cmp() +ANS(Formula("sin(x)")->cmp() ->withPostFilter(AnswerHints( - Compute("tan(x)*cos(x)") => + Compute("tan(x)*cos(x)") => "No credit for entering what you were given.", )) ); diff --git a/OpenProblemLibrary/FortLewis/Authoring/Templates/Trig/TrigIdentities1_PGML.pg b/OpenProblemLibrary/FortLewis/Authoring/Templates/Trig/TrigIdentities1_PGML.pg index 848a2d3651..4ffffa95f1 100644 --- a/OpenProblemLibrary/FortLewis/Authoring/Templates/Trig/TrigIdentities1_PGML.pg +++ b/OpenProblemLibrary/FortLewis/Authoring/Templates/Trig/TrigIdentities1_PGML.pg @@ -15,12 +15,12 @@ #################################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", "PGML.pl", "PGcourse.pl" @@ -43,7 +43,7 @@ Context("Numeric"); # Context()->functions->remove("tan"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub tan { @@ -52,14 +52,14 @@ sub tan { } package main; # Make it work on formulas as well as numbers -sub tan {Parser::Function->call('tan',@_)} +sub tan {Parser::Function->call('tan',@_)} # Add the new functions to the Context -Context()->functions->add( +Context()->functions->add( tan => {class =>'NewFunc', TeX =>'\tan'}, ); -$answer_cmp = Formula("sin(x)")->cmp() +$answer_cmp = Formula("sin(x)")->cmp() ->withPostFilter(AnswerHints( - Compute("tan(x)*cos(x)") => + Compute("tan(x)*cos(x)") => "No credit for entering what you were given.", )); @@ -69,7 +69,7 @@ $answer_cmp = Formula("sin(x)")->cmp() BEGIN_PGML Simplify the expression as much as possible. -[` \tan(x) \cos(x) = `] [________________]{$answer_cmp} [@ AnswerFormatHelp("formulas") @]* +[` \tan(x) \cos(x) = `] [________________]{$answer_cmp} [@ helpLink("formulas") @]* END_PGML diff --git a/OpenProblemLibrary/FortLewis/Calc1/04-06-Related-rates/04-06-Related-rates-02.pg b/OpenProblemLibrary/FortLewis/Calc1/04-06-Related-rates/04-06-Related-rates-02.pg index 93eafcbd19..f5b11f3d46 100644 --- a/OpenProblemLibrary/FortLewis/Calc1/04-06-Related-rates/04-06-Related-rates-02.pg +++ b/OpenProblemLibrary/FortLewis/Calc1/04-06-Related-rates/04-06-Related-rates-02.pg @@ -26,13 +26,13 @@ ####################################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "parserNumberWithUnits.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -49,7 +49,7 @@ $r = random(3,7,1); $h = random(5,12,1); $d = $h - random(2,4,1); -$dhdt = NumberWithUnits("$dVdt / (pi * $r^2)","ft/min"); +$dhdt = NumberWithUnits("$dVdt / (pi * $r^2)","ft/min"); ################################################ @@ -57,17 +57,17 @@ $dhdt = NumberWithUnits("$dVdt / (pi * $r^2)","ft/min"); Context()->texStrings; BEGIN_TEXT -Suppose that water is pouring into a swimming pool -in the shape of a right circular cylinder at a -constant rate of \( $dVdt \) cubic feet per minute. -If the pool has radius \( $r \) feet and height -\( $h \) feet, what is the rate of change of the -height of the water in the pool when the depth of -the water in the pool is \( $d \) feet? +Suppose that water is pouring into a swimming pool +in the shape of a right circular cylinder at a +constant rate of \( $dVdt \) cubic feet per minute. +If the pool has radius \( $r \) feet and height +\( $h \) feet, what is the rate of change of the +height of the water in the pool when the depth of +the water in the pool is \( $d \) feet? $BR $BR \{ans_rule(30)\} -(Include \{ AnswerFormatHelp("units") \} with your +(Include \{ helpLink("units") \} with your answer.) END_TEXT diff --git a/OpenProblemLibrary/FortLewis/Calc1/04-06-Related-rates/04-06-Related-rates-03.pg b/OpenProblemLibrary/FortLewis/Calc1/04-06-Related-rates/04-06-Related-rates-03.pg index 677935fa66..9470bd583f 100644 --- a/OpenProblemLibrary/FortLewis/Calc1/04-06-Related-rates/04-06-Related-rates-03.pg +++ b/OpenProblemLibrary/FortLewis/Calc1/04-06-Related-rates/04-06-Related-rates-03.pg @@ -26,13 +26,13 @@ ####################################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "parserNumberWithUnits.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -48,7 +48,7 @@ $dhdt = random(0.1,0.9,0.1); $r = random(3,7,1); $h = random(5,12,1); -$drdt = NumberWithUnits("-($r * $dhdt) / (2 * $h)","cm/s"); +$drdt = NumberWithUnits("-($r * $dhdt) / (2 * $h)","cm/s"); ################################################ @@ -56,18 +56,18 @@ $drdt = NumberWithUnits("-($r * $dhdt) / (2 * $h)","cm/s"); Context()->texStrings; BEGIN_TEXT -A potter forms a piece of clay into a right circular cylinder. -As she rolls it, the height \( h \) of the cylinder -increases and the radius \( r \) decreases. Assume that -no clay is lost in the process. Suppose the height of -the cylinder is increasing by \( $dhdt \) centimeters -per second. What is the rate at which the radius is -changing when the radius is \( $r \) centimeters and the +A potter forms a piece of clay into a right circular cylinder. +As she rolls it, the height \( h \) of the cylinder +increases and the radius \( r \) decreases. Assume that +no clay is lost in the process. Suppose the height of +the cylinder is increasing by \( $dhdt \) centimeters +per second. What is the rate at which the radius is +changing when the radius is \( $r \) centimeters and the height is \( $h \) centimeters? $BR $BR \{ans_rule(30)\} -(Include \{ AnswerFormatHelp("units") \} with your +(Include \{ helpLink("units") \} with your answer.) END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Calc2/11-4-Separation-of-variables/Logistic-01.pg b/OpenProblemLibrary/FortLewis/Calc2/11-4-Separation-of-variables/Logistic-01.pg index 36d7542fe8..fadefb7d7b 100644 --- a/OpenProblemLibrary/FortLewis/Calc2/11-4-Separation-of-variables/Logistic-01.pg +++ b/OpenProblemLibrary/FortLewis/Calc2/11-4-Separation-of-variables/Logistic-01.pg @@ -22,12 +22,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -51,14 +51,14 @@ $answer = Compute("2 / (1 + e^(2x-$a2)) - 1"); Context()->texStrings; BEGIN_TEXT -Solve \( \displaystyle \frac{dy}{dx} = (y-1)(y+1) \) if the -solution passes through the point \( (x,y) = ($a,0) \). +Solve \( \displaystyle \frac{dy}{dx} = (y-1)(y+1) \) if the +solution passes through the point \( (x,y) = ($a,0) \). Graph the solution. $BR $BR \( y(x) = \) -\{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ ans_rule(40) \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/Calc2/8-5-Work/spring1.pg b/OpenProblemLibrary/FortLewis/Calc2/8-5-Work/spring1.pg index fab38603bc..bc5e75e445 100644 --- a/OpenProblemLibrary/FortLewis/Calc2/8-5-Work/spring1.pg +++ b/OpenProblemLibrary/FortLewis/Calc2/8-5-Work/spring1.pg @@ -23,14 +23,14 @@ ###################################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "parserNumberWithUnits.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "unionLists.pl", "PGcourse.pl" ); @@ -52,27 +52,27 @@ $xm = $x/100; # displacement in meters BEGIN_TEXT \{ BeginList('OL',type=>'a') \} $ITEM -Work of $w Joules is done in stretching a -spring from its natural length to $x cm beyond +Work of $w Joules is done in stretching a +spring from its natural length to $x cm beyond its natural length. What is the spring constant \( k > 0 \)? $BR -\( k = \) +\( k = \) \{ans_rule(20)\} -Don't forget to enter the correct -\{ AnswerFormatHelp('units','units') \}. +Don't forget to enter the correct +\{ helpLink('units','units') \}. $ITEMSEP $ITEM -If the spring is stretched to the same -distance ($x cm), what is the restoring force -that pulls the spring back toward its equilibrium -position? +If the spring is stretched to the same +distance ($x cm), what is the restoring force +that pulls the spring back toward its equilibrium +position? $BR -Restoring force = +Restoring force = \{ans_rule(20)\} -Don't forget to enter the correct -\{ AnswerFormatHelp('units','units') \}. +Don't forget to enter the correct +\{ helpLink('units','units') \}. \{ EndList('OL') \} END_TEXT @@ -83,18 +83,18 @@ END_TEXT $showPartialCorrectAnswers = 1; -ANS( NumberWithUnits("2 * $w / ($xm^2)","N/m")->cmp() +ANS( NumberWithUnits("2 * $w / ($xm^2)","N/m")->cmp() ->withPostFilter(AnswerHints( - NumberWithUnits("2 * $w / ($x^2)","N/m") => + NumberWithUnits("2 * $w / ($x^2)","N/m") => "You forgot to convert from cm to m", )) ); -ANS( NumberWithUnits("-200 * $w / $x","N")->cmp() +ANS( NumberWithUnits("-200 * $w / $x","N")->cmp() ->withPostFilter(AnswerHints( - NumberWithUnits("200 * $w / $x","N") => + NumberWithUnits("200 * $w / $x","N") => "Your force has the wrong direction (it has the wrong sign)", - [NumberWithUnits("2 * $w / $x","N"),NumberWithUnits("-2 * $w / $x","N")] => + [NumberWithUnits("2 * $w / $x","N"),NumberWithUnits("-2 * $w / $x","N")] => "You forgot to convert from cm to m", )) ); diff --git a/OpenProblemLibrary/FortLewis/DiffEq/0-Introduction/KJ-1-2-12.pg b/OpenProblemLibrary/FortLewis/DiffEq/0-Introduction/KJ-1-2-12.pg index 519cdf2026..77e7539180 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/0-Introduction/KJ-1-2-12.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/0-Introduction/KJ-1-2-12.pg @@ -22,12 +22,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -51,19 +51,19 @@ $y0 = Compute("$a"); Context()->texStrings; BEGIN_TEXT -Suppose \( y(t) = $a e^{-$b t} \) is a solution of the +Suppose \( y(t) = $a e^{-$b t} \) is a solution of the initial value problem \( y^{\,\prime} + ky = 0 \), \( y(0) = y_0 \). What are the constants \( k \) and \( y_0 \)? $BR $BR \( k = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR $BR \( y_0 = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/DiffEq/0-Introduction/KJ-1-2-20a.pg b/OpenProblemLibrary/FortLewis/DiffEq/0-Introduction/KJ-1-2-20a.pg index f215a0d3e4..def1b57bad 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/0-Introduction/KJ-1-2-20a.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/0-Introduction/KJ-1-2-20a.pg @@ -22,12 +22,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionLists.pl", "PGcourse.pl" ); @@ -57,11 +57,11 @@ $answer = Formula("$y0 e^($s * $k t)")->reduce(); Context()->texStrings; BEGIN_TEXT -Given that \( y(t) = c_1 e^{$k t} + c_2 e^{-$k t} \) is -a solution to the differential equation -\( y^{\,\prime\prime} - $kk y = 0 \), where \( c_1 \) and \( c_2 \) +Given that \( y(t) = c_1 e^{$k t} + c_2 e^{-$k t} \) is +a solution to the differential equation +\( y^{\,\prime\prime} - $kk y = 0 \), where \( c_1 \) and \( c_2 \) are arbitrary constants, find a function \( y(t) \) -that satisfies the conditions +that satisfies the conditions \{ BeginList("UL") \} $ITEM \( y^{\,\prime\prime} - $kk y = 0, \) $ITEMSEP @@ -72,7 +72,7 @@ $ITEM \( \displaystyle \lim_{t \to $sign\infty} y(t) = 0. \) $BR \( y(t) = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/DiffEq/0-Introduction/KJ-1-2-20b.pg b/OpenProblemLibrary/FortLewis/DiffEq/0-Introduction/KJ-1-2-20b.pg index a6d94d9aeb..90908c7b7a 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/0-Introduction/KJ-1-2-20b.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/0-Introduction/KJ-1-2-20b.pg @@ -22,12 +22,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionLists.pl", "PGcourse.pl" ); @@ -57,11 +57,11 @@ $answer = Formula("$y0 e^(-1*$s * $k t)")->reduce(); Context()->texStrings; BEGIN_TEXT -Given that \( y(t) = c_1 e^{$k t} + c_2 e^{-$k t} \) is -a solution to the differential equation -\( y^{\,\prime\prime} - $kk y = 0 \), where \( c_1 \) and \( c_2 \) +Given that \( y(t) = c_1 e^{$k t} + c_2 e^{-$k t} \) is +a solution to the differential equation +\( y^{\,\prime\prime} - $kk y = 0 \), where \( c_1 \) and \( c_2 \) are arbitrary constants, find a function \( y(t) \) -that satisfies the conditions +that satisfies the conditions \{ BeginList("UL") \} $ITEM \( y^{\,\prime\prime} - $kk y = 0, \) $ITEMSEP @@ -72,7 +72,7 @@ $ITEM \( \displaystyle \lim_{t \to $sign\infty} y(t) = 0. \) $BR \( y(t) = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/DiffEq/0-Introduction/KJ-1-2-22.pg b/OpenProblemLibrary/FortLewis/DiffEq/0-Introduction/KJ-1-2-22.pg index 7d51423bf8..0d90b39eae 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/0-Introduction/KJ-1-2-22.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/0-Introduction/KJ-1-2-22.pg @@ -22,12 +22,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGgraphmacros.pl", "unionTables.pl", "PGcourse.pl" @@ -90,14 +90,14 @@ the following.". $BR. $BR. "\( m = \) ". -ans_rule(10).$SPACE.AnswerFormatHelp("numbers"). +ans_rule(10).$SPACE.helpLink("numbers"). $BR. "\( t_0 = \) ". -ans_rule(10).$SPACE.AnswerFormatHelp("numbers"). +ans_rule(10).$SPACE.helpLink("numbers"). $BR. $BR. "\( y(t) = \) ". -ans_rule(30).$SPACE.AnswerFormatHelp("formulas") +ans_rule(30).$SPACE.helpLink("formulas") , $BCENTER. image(insertGraph($gr), width=>400, height=>400, tex_size=>700). diff --git a/OpenProblemLibrary/FortLewis/DiffEq/0-Introduction/KJ-1-2-24.pg b/OpenProblemLibrary/FortLewis/DiffEq/0-Introduction/KJ-1-2-24.pg index de83ef4175..0b0fb0f226 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/0-Introduction/KJ-1-2-24.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/0-Introduction/KJ-1-2-24.pg @@ -22,12 +22,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserNumberWithUnits.pl", "PGcourse.pl" ); @@ -55,27 +55,27 @@ $position = NumberWithUnits("$a * $t^2 / 2", "ft"); Context()->texStrings; BEGIN_TEXT -A car, initially at rest, begins moving at time +A car, initially at rest, begins moving at time \( t = 0 \) with a constant acceleration down a straight track. If the car achieves a speed of 60 miles per hour (88 feet per second) at time -\( t = $t \) seconds, what is the car's +\( t = $t \) seconds, what is the car's acceleration? Include units in your answer. $BR $BR -acceleration = +acceleration = \{ ans_rule(10) \} -\{ AnswerFormatHelp("units") \} +\{ helpLink("units") \} $BR $BR -How far down the track will the car have -traveled when its speed reaches 60 miles per +How far down the track will the car have +traveled when its speed reaches 60 miles per hour? Include units in your answer. $BR $BR -distance traveled = +distance traveled = \{ ans_rule(10) \} -\{ AnswerFormatHelp("units") \} +\{ helpLink("units") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/DiffEq/0-Introduction/Lebl-0-2-01.pg b/OpenProblemLibrary/FortLewis/DiffEq/0-Introduction/Lebl-0-2-01.pg index cf299f30bc..98e9163ffe 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/0-Introduction/Lebl-0-2-01.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/0-Introduction/Lebl-0-2-01.pg @@ -22,12 +22,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionLists.pl", "parserAssignment.pl", "PGcourse.pl" @@ -70,38 +70,38 @@ $answer[3] = Formula("y=$fk"); Context()->texStrings; BEGIN_TEXT -Suppose \( y = $f \) where \( k > 0 \) is a +Suppose \( y = $f \) where \( k > 0 \) is a constant, and \( c_1 \) and \( c_2 \) are arbitrary -constants. Find the following. Enter \( c_1 \) +constants. Find the following. Enter \( c_1 \) as ${BTT}c1${ETT} and \( c_2 \) as ${BTT}c2${ETT}. - + \{ BeginList("OL",type=>"a") \} -$ITEM \( \displaystyle \frac{dy}{dx} = \) +$ITEM \( \displaystyle \frac{dy}{dx} = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $ITEMSEP $ITEM \( \displaystyle \frac{d^2y}{dx^2} = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $ITEMSEP -$ITEM Rewrite your answer to the previous part +$ITEM Rewrite your answer to the previous part in terms of \( y \). $BR \( \displaystyle \frac{d^2y}{dx^2} = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $ITEMSEP -$ITEM Find the general solution to +$ITEM Find the general solution to \( \displaystyle \frac{d^2y}{dx^2} = - $kk y \). Enter your answer as an equation \( y = \ldots \). $BR $BR \{ ans_rule(30) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} \{ EndList("OL") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/DiffEq/0-Introduction/Lebl-0-2-02.pg b/OpenProblemLibrary/FortLewis/DiffEq/0-Introduction/Lebl-0-2-02.pg index 64ffec406b..c396b8bc98 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/0-Introduction/Lebl-0-2-02.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/0-Introduction/Lebl-0-2-02.pg @@ -22,12 +22,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionLists.pl", "parserAssignment.pl", "parserOneOf.pl", @@ -72,38 +72,38 @@ $answer[3] = OneOf(Formula("y=$fk"),Formula("y=$fk_alt")); Context()->texStrings; BEGIN_TEXT -Suppose \( y = $f \) where \( k > 0 \) is a +Suppose \( y = $f \) where \( k > 0 \) is a constant, and \( c_1 \) and \( c_2 \) are arbitrary -constants. Find the following. Enter \( c_1 \) +constants. Find the following. Enter \( c_1 \) as ${BTT}c1${ETT} and \( c_2 \) as ${BTT}c2${ETT}. \{ BeginList("OL",type=>"a") \} -$ITEM \( \displaystyle \frac{dy}{dx} = \) +$ITEM \( \displaystyle \frac{dy}{dx} = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $ITEMSEP $ITEM \( \displaystyle \frac{d^2y}{dx^2} = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $ITEMSEP -$ITEM Rewrite your answer to the previous part +$ITEM Rewrite your answer to the previous part in terms of \( y \). $BR \( \displaystyle \frac{d^2y}{dx^2} = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $ITEMSEP -$ITEM Find the general solution to +$ITEM Find the general solution to \( \displaystyle \frac{d^2y}{dx^2} = $kk y \). Enter your answer as an equation \( y = \ldots \). $BR $BR \{ ans_rule(30) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} \{ EndList("OL") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/DiffEq/0-Introduction/Lebl-0-2-03.pg b/OpenProblemLibrary/FortLewis/DiffEq/0-Introduction/Lebl-0-2-03.pg index d0739409cc..c759718968 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/0-Introduction/Lebl-0-2-03.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/0-Introduction/Lebl-0-2-03.pg @@ -27,12 +27,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionLists.pl", "parserAssignment.pl", "PGcourse.pl" @@ -75,38 +75,38 @@ $answer[3] = Formula("y=$fk"); Context()->texStrings; BEGIN_TEXT -Suppose \( y = $f \) where \( k > 0 \) is a +Suppose \( y = $f \) where \( k > 0 \) is a constant, and \( c_1 \) and \( c_2 \) are arbitrary -constants. Find the following. Enter \( c_1 \) +constants. Find the following. Enter \( c_1 \) as ${BTT}c1${ETT} and \( c_2 \) as ${BTT}c2${ETT}. \{ BeginList("OL",type=>"a") \} -$ITEM \( \displaystyle \frac{dy}{dx} = \) +$ITEM \( \displaystyle \frac{dy}{dx} = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $ITEMSEP $ITEM \( \displaystyle \frac{d^2y}{dx^2} = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $ITEMSEP -$ITEM Rewrite your answer to the previous part +$ITEM Rewrite your answer to the previous part in terms of \( y \). $BR \( \displaystyle \frac{d^2y}{dx^2} = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $ITEMSEP -$ITEM Find the general solution to +$ITEM Find the general solution to \( \displaystyle \frac{d^2y}{dx^2} = $kk y \). Enter your answer as an equation \( y = \ldots \). $BR $BR \{ ans_rule(30) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} \{ EndList("OL") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/DiffEq/0-Introduction/Lebl-0-2-04.pg b/OpenProblemLibrary/FortLewis/DiffEq/0-Introduction/Lebl-0-2-04.pg index 5747d3c886..8d01952402 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/0-Introduction/Lebl-0-2-04.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/0-Introduction/Lebl-0-2-04.pg @@ -27,12 +27,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionLists.pl", "parserPrime.pl", "parserPopUp.pl", @@ -80,7 +80,7 @@ $answer[6] = PopUp(["Choose","Yes","No"],"No"); Context()->texStrings; BEGIN_TEXT -Suppose \( x = $x \). +Suppose \( x = $x \). \{ BeginList("OL",type=>"a") \} $ITEM Find the value of the expression @@ -94,17 +94,17 @@ $BR \{ ans_rule(10) \} + \{ ans_rule(10) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $ITEMSEP $ITEM Simplify your answer to the previous part to obtain a differential equation in terms of the dependent variable \( x \) satisfied -by \( x = $x \). +by \( x = $x \). $BR -\( $expr = \) +\( $expr = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $ITEMSEP $ITEM Is \( x = e^t \) a solution to your @@ -126,21 +126,21 @@ ANS( $answer[0]->cmp() ); ANS( $answer[1]->cmp()->withPostFilter(AnswerHints( [Compute("-$answer[1]"), Compute("-1/(3*$k)*$answer[1]"), - Compute(" 1/(3*$k)*$answer[1]")] => + Compute(" 1/(3*$k)*$answer[1]")] => "Check your signs and the coefficients in the D.E.", -)) +)) ); ANS( $answer[2]->cmp()->withPostFilter(AnswerHints( - [Compute("1/(3*$k^2)*$answer[2]")] => + [Compute("1/(3*$k^2)*$answer[2]")] => "Check your signs and the coefficients in the D.E.", -)) +)) ); ANS( $answer[3]->cmp()->withPostFilter(AnswerHints( [Compute("-$answer[3]"), Compute("-1/($k^3)*$answer[3]"), - Compute(" 1/($k^3)*$answer[3]")] => + Compute(" 1/($k^3)*$answer[3]")] => "Check your signs and the coefficients in the D.E.", -)) +)) ); #ANS( $answer[4]->cmp() ); ANS( $answer[5]->cmp() ); diff --git a/OpenProblemLibrary/FortLewis/DiffEq/0-Introduction/Lebl-0-2-04a.pg b/OpenProblemLibrary/FortLewis/DiffEq/0-Introduction/Lebl-0-2-04a.pg index 19735c9654..909fb93e3f 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/0-Introduction/Lebl-0-2-04a.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/0-Introduction/Lebl-0-2-04a.pg @@ -27,12 +27,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionLists.pl", "parserPrime.pl", "parserPopUp.pl", @@ -80,7 +80,7 @@ $answer[6] = PopUp(["Choose","Yes","No"],"No"); Context()->texStrings; BEGIN_TEXT -Suppose \( x = $x \). +Suppose \( x = $x \). \{ BeginList("OL",type=>"a") \} $ITEM Find the value of the expression @@ -94,17 +94,17 @@ $BR \{ ans_rule(10) \} + \{ ans_rule(10) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $ITEMSEP $ITEM Simplify your answer to the previous part and enter a differential equation in terms of the dependent variable \( x \) satisfied -by \( x = $x \). Enter the derivatives of +by \( x = $x \). Enter the derivatives of \( x \) using prime notation (\( x', x'', x'''\)). $BR \{ ans_rule(30) \} = \{ ans_rule(10) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $ITEMSEP $ITEM Is \( x = e^t \) a solution to your @@ -126,21 +126,21 @@ ANS( $answer[0]->cmp() ); ANS( $answer[1]->cmp()->withPostFilter(AnswerHints( [Compute("-$answer[1]"), Compute("-1/(3*$k)*$answer[1]"), - Compute(" 1/(3*$k)*$answer[1]")] => + Compute(" 1/(3*$k)*$answer[1]")] => "Check your signs and the coefficients in the D.E.", -)) +)) ); ANS( $answer[2]->cmp()->withPostFilter(AnswerHints( - [Compute("1/(3*$k^2)*$answer[2]")] => + [Compute("1/(3*$k^2)*$answer[2]")] => "Check your signs and the coefficients in the D.E.", -)) +)) ); ANS( $answer[3]->cmp()->withPostFilter(AnswerHints( [Compute("-$answer[3]"), Compute("-1/($k^3)*$answer[3]"), - Compute(" 1/($k^3)*$answer[3]")] => + Compute(" 1/($k^3)*$answer[3]")] => "Check your signs and the coefficients in the D.E.", -)) +)) ); ANS( $answer[4]->cmp() ); ANS( $answer[5]->cmp() ); diff --git a/OpenProblemLibrary/FortLewis/DiffEq/0-Introduction/Lebl-0-2-06.pg b/OpenProblemLibrary/FortLewis/DiffEq/0-Introduction/Lebl-0-2-06.pg index 23316a1a1d..837ad37b0e 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/0-Introduction/Lebl-0-2-06.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/0-Introduction/Lebl-0-2-06.pg @@ -27,12 +27,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -69,21 +69,21 @@ $answer[1] = Formula("1-($y)^2"); Context()->texStrings; BEGIN_TEXT -Show that \( y = $y \) is a solution to -\( \displaystyle +Show that \( y = $y \) is a solution to +\( \displaystyle \left( \frac{dy}{dt} \right)^2 = 1 - y^2 -\). Enter your answers below in terms of +\). Enter your answers below in terms of the independent variable \( t \) in the order -in which the terms were given. Be sure you +in which the terms were given. Be sure you can justify your answer. $BR $BR \{ ans_rule(20) \} = \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/DiffEq/0-Introduction/Lebl-0-2-07.pg b/OpenProblemLibrary/FortLewis/DiffEq/0-Introduction/Lebl-0-2-07.pg index 52f8d21e59..ff332f6c14 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/0-Introduction/Lebl-0-2-07.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/0-Introduction/Lebl-0-2-07.pg @@ -27,12 +27,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionLists.pl", "contextPolynomialFactors.pl", "contextLimitedPowers.pl", @@ -85,24 +85,24 @@ for some unknown constant \( r \), by substituting it into the differential equation. $BR \{ ans_rule(30) \} \( = 0 \). -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $ITEMSEP -$ITEM Simplify and factor your equation in the previous part +$ITEM Simplify and factor your equation in the previous part as much as possible. Be sure to divide out any factors guaranteed to be nonzero. $BR -\{ ans_rule(30) \} \( = 0 \). -\{ AnswerFormatHelp("formulas") \} +\{ ans_rule(30) \} \( = 0 \). +\{ helpLink("formulas") \} $ITEMSEP -$ITEM Find all values of \( r \) such that \( y = e^{rx} \) +$ITEM Find all values of \( r \) such that \( y = e^{rx} \) satisfies the differential equation. If there is more than one correct answer, enter your answers as a comma separated list. $BR -\( r = \) +\( r = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} \{ EndList('OL') \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/DiffEq/0-Introduction/Lebl-0-2-09.pg b/OpenProblemLibrary/FortLewis/DiffEq/0-Introduction/Lebl-0-2-09.pg index b5ef20a957..be779cb933 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/0-Introduction/Lebl-0-2-09.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/0-Introduction/Lebl-0-2-09.pg @@ -27,12 +27,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionLists.pl", "answerHints.pl", "PGcourse.pl" @@ -81,12 +81,12 @@ $answer[3] = Compute("$Anum / $kp1 e^(-t) + $Bnum / $kp1 e^($k t)"); Context()->texStrings; BEGIN_TEXT -Suppose \( x = $x \). +Suppose \( x = $x \). \{ BeginList("OL",type=>"a") \} $ITEM Verify that \( x = $x \) is a solution to \( x^{\,\prime\prime} - $km1 x^{\,\prime} - $k x = 0 \) by substituting it -into the differential equation. +into the differential equation. (Enter the terms in the order given. Enter \( c_1 \) as ${BTT}c1${ETT} and \( c_2 \) as ${BTT}c2${ETT}.) $BR @@ -96,13 +96,13 @@ $BR + \{ ans_rule(20) \} \( = 0 \). -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $ITEMSEP $ITEM Find \( x(t) \) if \( x(0) = $C \) and \( x^{\,\prime}(0) = $D \). $BR -\( x(t) = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\( x(t) = \) \{ ans_rule(30) \} +\{ helpLink("formulas") \} \{ EndList("OL") \} END_TEXT @@ -118,16 +118,16 @@ ANS( $answer[0]->cmp() ); ANS( $answer[1]->cmp()->withPostFilter(AnswerHints( [Compute("-$answer[1]"), Compute(" 1/$km1 * $answer[1]"), - Compute("-1/$km1 * $answer[1]")] => + Compute("-1/$km1 * $answer[1]")] => "Check your signs and the coefficients in the original D.E.", -)) +)) ); ANS( $answer[2]->cmp()->withPostFilter(AnswerHints( [Compute("-$answer[1]"), Compute(" 1/$k * $answer[1]"), - Compute("-1/$k * $answer[1]")] => + Compute("-1/$k * $answer[1]")] => "Check your signs and the coefficients in the original D.E.", -)) +)) ); ANS( $answer[3]->cmp() ); diff --git a/OpenProblemLibrary/FortLewis/DiffEq/0-Introduction/Lebl-0-2-10.pg b/OpenProblemLibrary/FortLewis/DiffEq/0-Introduction/Lebl-0-2-10.pg index 83ed7ca2af..2e8207d911 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/0-Introduction/Lebl-0-2-10.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/0-Introduction/Lebl-0-2-10.pg @@ -27,12 +27,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -66,13 +66,13 @@ Context()->flags->set( Context()->texStrings; BEGIN_TEXT -Find a non-constant solution to \( $expr \) using your +Find a non-constant solution to \( $expr \) using your knowledge of derivatives from basic calculus. $BR $BR \( x(t) = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; @@ -82,7 +82,7 @@ Context()->normalStrings; $showPartialCorrectAnswers = 1; -ANS( $answer->cmp( +ANS( $answer->cmp( checker=>sub { my ( $correct, $student, $ansHash ) = @_; return 0 unless $student->isFormula; diff --git a/OpenProblemLibrary/FortLewis/DiffEq/0-Introduction/Lebl-0-2-11a.pg b/OpenProblemLibrary/FortLewis/DiffEq/0-Introduction/Lebl-0-2-11a.pg index 94cf9d91fc..fa9743651b 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/0-Introduction/Lebl-0-2-11a.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/0-Introduction/Lebl-0-2-11a.pg @@ -27,12 +27,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -64,14 +64,14 @@ $answer = Formula("$A0 * e^($k t)"); Context()->texStrings; BEGIN_TEXT -Find a solution to +Find a solution to \( \displaystyle \frac{dA}{dt} = $k A \) if \( A(0) = $A0 \). $BR $BR \( A(t) = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; @@ -81,7 +81,7 @@ Context()->normalStrings; $showPartialCorrectAnswers = 1; -ANS( $answer->cmp( +ANS( $answer->cmp( checker=>sub { my ( $correct, $student, $ansHash ) = @_; return 0 unless $student->isFormula; diff --git a/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/01-Integrals-as-solutions/Lebl-1-1-02.pg b/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/01-Integrals-as-solutions/Lebl-1-1-02.pg index 0fca3b2692..d5b1ac3ae2 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/01-Integrals-as-solutions/Lebl-1-1-02.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/01-Integrals-as-solutions/Lebl-1-1-02.pg @@ -23,12 +23,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "answerHints.pl", "PGcourse.pl" @@ -48,8 +48,8 @@ t=>"Real", dt=>"Real", $a = random(1,5,1); $ya = random(6,20,1); -$fx = Formula("x^2 + x"); -$ft = $fx->substitute(x=>'t'); +$fx = Formula("x^2 + x"); +$ft = $fx->substitute(x=>'t'); $fname = "y(x)"; $dummyvar = "t"; @@ -62,12 +62,12 @@ Context()->texStrings; if ($displayMode eq 'TeX') { $integral = "\(\displaystyle $fname = ". - ans_rule(4). - "+ \int_{$dummyvar = ". - ans_rule(4). - "}^{$dummyvar = ". ans_rule(4). - '}'. + "+ \int_{$dummyvar = ". + ans_rule(4). + "}^{$dummyvar = ". + ans_rule(4). + '}'. ans_rule(20). '\)'; } else { @@ -89,7 +89,7 @@ Context()->texStrings; BEGIN_TEXT \{ BeginList('OL',type=>'a') \} -$ITEM Set up an integral for solving +$ITEM Set up an integral for solving \( \displaystyle \frac{dy}{dx} = x^2 + x \) when \( y($a) = $ya \). $BR @@ -97,13 +97,13 @@ $BR $integral $ITEMSEP -$ITEM Evaluate your answer to the previous part +$ITEM Evaluate your answer to the previous part to find \( y(x) \). $BR $BR \( $fname = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} \{ EndList('OL') \} END_TEXT @@ -119,11 +119,11 @@ ANS( Compute("$ya")->cmp() ); ANS( Compute("x")->cmp() ); ANS( Compute("$a")->cmp() ); ANS( Compute("$ft * dt")->cmp() -->withPostFilter(AnswerHints( - [Formula("$fx"),Formula("$fx*dx"),Formula("x^2+x*dx")] => +->withPostFilter(AnswerHints( + [Formula("$fx"),Formula("$fx*dx"),Formula("x^2+x*dx")] => "Are you using the correct variable?", - Formula("$ft") => "Don't forget the differential dt", - Formula("t^2 + t*dt") => "Don't forget parentheses", + Formula("$ft") => "Don't forget the differential dt", + Formula("t^2 + t*dt") => "Don't forget parentheses", )) ); diff --git a/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/01-Integrals-as-solutions/Lebl-1-1-03.pg b/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/01-Integrals-as-solutions/Lebl-1-1-03.pg index 6d1abff2f2..6a71d3766c 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/01-Integrals-as-solutions/Lebl-1-1-03.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/01-Integrals-as-solutions/Lebl-1-1-03.pg @@ -23,12 +23,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "answerHints.pl", "PGcourse.pl" @@ -49,8 +49,8 @@ $a = 0; $ya = non_zero_random(-10,10,1); $k = random(2,9,1); -$fx = Formula("sin($k x)"); -$ft = $fx->substitute(x=>'t'); +$fx = Formula("sin($k x)"); +$ft = $fx->substitute(x=>'t'); $fname = "y(x)"; $dummyvar = "t"; @@ -63,12 +63,12 @@ Context()->texStrings; if ($displayMode eq 'TeX') { $integral = "\(\displaystyle $fname = ". - ans_rule(4). - "+ \int_{$dummyvar = ". - ans_rule(4). - "}^{$dummyvar = ". ans_rule(4). - '}'. + "+ \int_{$dummyvar = ". + ans_rule(4). + "}^{$dummyvar = ". + ans_rule(4). + '}'. ans_rule(20). '\)'; } else { @@ -90,7 +90,7 @@ Context()->texStrings; BEGIN_TEXT \{ BeginList('OL',type=>'a') \} -$ITEM Set up an integral for solving +$ITEM Set up an integral for solving \( \displaystyle \frac{dy}{dx} = $fx \) when \( y($a) = $ya \). $BR @@ -98,13 +98,13 @@ $BR $integral $ITEMSEP -$ITEM Evaluate your answer to the previous part +$ITEM Evaluate your answer to the previous part to find \( $fname \). $BR $BR \( $fname = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} \{ EndList('OL') \} END_TEXT @@ -120,10 +120,10 @@ ANS( Compute("$ya")->cmp() ); ANS( Compute("x")->cmp() ); ANS( Compute("$a")->cmp() ); ANS( Compute("$ft * dt")->cmp() -->withPostFilter(AnswerHints( - [Formula("$fx"),Formula("$fx*dx")] => +->withPostFilter(AnswerHints( + [Formula("$fx"),Formula("$fx*dx")] => "Are you using the correct variable?", - Formula("$ft") => "Don't forget the differential dt", + Formula("$ft") => "Don't forget the differential dt", )) ); diff --git a/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/01-Integrals-as-solutions/Lebl-1-1-04.pg b/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/01-Integrals-as-solutions/Lebl-1-1-04.pg index 0ee652dbbd..eed08eccfd 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/01-Integrals-as-solutions/Lebl-1-1-04.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/01-Integrals-as-solutions/Lebl-1-1-04.pg @@ -24,12 +24,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "answerHints.pl", "PGcourse.pl" @@ -53,8 +53,8 @@ $c2 = 2 * $c; $a = 0; $ya = 0; -$fx = Formula("1/(x^2-$cc)"); -$ft = $fx->substitute(x=>'t'); +$fx = Formula("1/(x^2-$cc)"); +$ft = $fx->substitute(x=>'t'); $fname = "y(x)"; $dummyvar = "t"; @@ -67,12 +67,12 @@ Context()->texStrings; if ($displayMode eq 'TeX') { $integral = "\(\displaystyle $fname = ". - ans_rule(4). - "+ \int_{$dummyvar = ". - ans_rule(4). - "}^{$dummyvar = ". ans_rule(4). - '}'. + "+ \int_{$dummyvar = ". + ans_rule(4). + "}^{$dummyvar = ". + ans_rule(4). + '}'. ans_rule(20). '\)'; } else { @@ -94,7 +94,7 @@ Context()->texStrings; BEGIN_TEXT \{ BeginList('OL',type=>'a') \} -$ITEM Set up an integral for solving +$ITEM Set up an integral for solving \( \displaystyle \frac{dy}{dx} = $fx \) when \( y($a) = $ya \). $BR @@ -102,13 +102,13 @@ $BR $integral $ITEMSEP -$ITEM Evaluate your answer to the previous part +$ITEM Evaluate your answer to the previous part to find \( $fname \). $BR $BR \( $fname = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} \{ EndList('OL') \} END_TEXT @@ -124,19 +124,19 @@ ANS( Compute("$ya")->cmp() ); ANS( Compute("x")->cmp() ); ANS( Compute("$a")->cmp() ); ANS( Compute("$ft * dt")->cmp() -->withPostFilter(AnswerHints( - [Formula("$fx"),Formula("$fx*dx")] => +->withPostFilter(AnswerHints( + [Formula("$fx"),Formula("$fx*dx")] => "Are you using the correct variable?", - Formula("$ft") => "Don't forget the differential dt", + Formula("$ft") => "Don't forget the differential dt", )) ); $y = Compute("1/$c2 ln(abs(x-$c)) - 1/$c2 ln(abs(x+$c))")->with(test_at=>[[0,0,0,-0.5],[0,0,0,0.5]]); $ybogus = Compute("1/$c2 ln(x-$c) - 1/$c2 ln(x+$c)")->with(test_points=>[[0,0,0,6],[0,0,0,7]]); -ANS( $y->cmp() -->withPostFilter(AnswerHints( - $ybogus => "Don't forget the absolute value", +ANS( $y->cmp() +->withPostFilter(AnswerHints( + $ybogus => "Don't forget the absolute value", )) ); diff --git a/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/01-Integrals-as-solutions/Lebl-1-1-05.pg b/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/01-Integrals-as-solutions/Lebl-1-1-05.pg index 244f041ba6..8df1a7ba41 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/01-Integrals-as-solutions/Lebl-1-1-05.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/01-Integrals-as-solutions/Lebl-1-1-05.pg @@ -23,12 +23,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unorderedAnswer.pl", "PGcourse.pl" ); @@ -59,7 +59,7 @@ $BR $BR \( y(x) = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/01-Integrals-as-solutions/Lebl-1-1-08.pg b/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/01-Integrals-as-solutions/Lebl-1-1-08.pg index 59c5f128b1..5f7eef4ce1 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/01-Integrals-as-solutions/Lebl-1-1-08.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/01-Integrals-as-solutions/Lebl-1-1-08.pg @@ -23,12 +23,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -52,13 +52,13 @@ $answer = Compute("-sin(x) + $ap1 x"); Context()->texStrings; BEGIN_TEXT -Solve \( y^{\,\prime\prime} = \sin(x) \) if \( y(0) = 0 \) +Solve \( y^{\,\prime\prime} = \sin(x) \) if \( y(0) = 0 \) and \( y'(0) = $a \). $BR $BR \( y(x) = \) -\{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ ans_rule(30) \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/01-Integrals-as-solutions/Lebl-1-1-09.pg b/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/01-Integrals-as-solutions/Lebl-1-1-09.pg index 68d95f2402..5a6d462d62 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/01-Integrals-as-solutions/Lebl-1-1-09.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/01-Integrals-as-solutions/Lebl-1-1-09.pg @@ -22,12 +22,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserNumberWithUnits.pl", "PGcourse.pl" ); @@ -60,9 +60,9 @@ from earth. How far is it from earth one minute after time \( t = 0 \ \mathrm{s} \)? Include units in your answer. $BR $BR -Distance = -\{ ans_rule(30) \} -\{ AnswerFormatHelp("units") \} +Distance = +\{ ans_rule(30) \} +\{ helpLink("units") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/01-Integrals-as-solutions/Lebl-1-1-10.pg b/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/01-Integrals-as-solutions/Lebl-1-1-10.pg index 1e775a3f37..5026c08dc8 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/01-Integrals-as-solutions/Lebl-1-1-10.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/01-Integrals-as-solutions/Lebl-1-1-10.pg @@ -23,12 +23,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "answerHints.pl", "PGcourse.pl" @@ -49,8 +49,8 @@ $a = random(1,5,1); $ya = random(6,20,1); $n = random(2,9,1); -$fx = Formula("sin(x^$n) + x"); -$ft = $fx->substitute(x=>'t'); +$fx = Formula("sin(x^$n) + x"); +$ft = $fx->substitute(x=>'t'); $fname = "y(x)"; $dummyvar = "t"; @@ -63,12 +63,12 @@ Context()->texStrings; if ($displayMode eq 'TeX') { $integral = "\(\displaystyle $fname = ". - ans_rule(4). - "+ \int_{$dummyvar = ". - ans_rule(4). - "}^{$dummyvar = ". ans_rule(4). - '}'. + "+ \int_{$dummyvar = ". + ans_rule(4). + "}^{$dummyvar = ". + ans_rule(4). + '}'. ans_rule(20). '\)'; } else { @@ -88,7 +88,7 @@ Context()->normalStrings; Context()->texStrings; BEGIN_TEXT -Set up an integral for solving +Set up an integral for solving \( \displaystyle \frac{dy}{dx} = \sin(x^{$n}) + x \) when \( y($a) = $ya \). $BR @@ -107,11 +107,11 @@ ANS( Compute("$ya")->cmp() ); ANS( Compute("x")->cmp() ); ANS( Compute("$a")->cmp() ); ANS( Compute("$ft * dt")->cmp() -->withPostFilter(AnswerHints( - [Formula("$fx"),Formula("$fx*dx"),Formula("sin(x^$n)+x*dx")] => +->withPostFilter(AnswerHints( + [Formula("$fx"),Formula("$fx*dx"),Formula("sin(x^$n)+x*dx")] => "Are you using the correct variable?", - Formula("$ft") => "Don't forget the differential dt", - Formula("sin(t^$n) + t*dt") => "Don't forget parentheses", + Formula("$ft") => "Don't forget the differential dt", + Formula("sin(t^$n) + t*dt") => "Don't forget parentheses", )) ); diff --git a/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/02-Slope-fields/KJ-1-3-08.pg b/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/02-Slope-fields/KJ-1-3-08.pg index 0bbf490b3a..f54b0c01e2 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/02-Slope-fields/KJ-1-3-08.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/02-Slope-fields/KJ-1-3-08.pg @@ -23,14 +23,14 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PGgraphmacros.pl", "unionTables.pl", - "AnswerFormatHelp.pl", + "parserImplicitPlane.pl", "parserPopUp.pl", "PGchoicemacros.pl", @@ -72,7 +72,7 @@ foreach my $i (1,2) { } $gr[$k]->lb( new Label(2.75,0.2,'t','black','center','middle')); $gr[$k]->lb( new Label(0.2,2.75,'y','black','center','middle')); -$gr[$k]->new_color("dodgerblue",30, 144, 255); +$gr[$k]->new_color("dodgerblue",30, 144, 255); } # End graph canvas setup @@ -81,7 +81,7 @@ $gr[$k]->new_color("dodgerblue",30, 144, 255); ###################################### # Begin filament -# A little procedure for generating little +# A little procedure for generating little # line segments of slope $m at point ($x,$y) sub filament { @@ -256,23 +256,23 @@ $BR $BR Isocline for \( c = -1: \) $SPACE \{ ans_rule(20) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} $BR $BR Isocline for \( c = 0: \) $SPACE \{ ans_rule(20) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} $BR $BR Isocline for \( c = 1: \) $SPACE \{ ans_rule(20) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} $BR $BR (b) On each of the isoclines in part (a), draw -representative direction field filaments. -Which graph A-D below most closely matches -the graph you drew? +representative direction field filaments. +Which graph A-D below most closely matches +the graph you drew? $BR Answer: \{ $popup->menu() \} $BR diff --git a/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/02-Slope-fields/KJ-1-3-10.pg b/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/02-Slope-fields/KJ-1-3-10.pg index 744600051a..611de53096 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/02-Slope-fields/KJ-1-3-10.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/02-Slope-fields/KJ-1-3-10.pg @@ -24,12 +24,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionLists.pl", "PGcourse.pl" ); @@ -55,9 +55,9 @@ BEGIN_TEXT Find an autonomous differential equation with all of the following properties: \{ BeginList("UL") \} -$ITEM -equilibrium solutions at \( y = 0 \) and -\( y = $a \), +$ITEM +equilibrium solutions at \( y = 0 \) and +\( y = $a \), $ITEMSEP $ITEM @@ -65,14 +65,14 @@ $ITEM $ITEMSEP $ITEM \( y^{\,\prime} < 0 \) for \( -\infty < y < 0 \) -and \( $a < y < \infty \). +and \( $a < y < \infty \). \{ EndList("UL") \} $BR \( \displaystyle \frac{dy}{dt} = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; @@ -94,7 +94,7 @@ sub { if ($yp_stu[$y] != $yp_cor[$y]) { return 0; } } return 1; -} +} )); diff --git a/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/02-Slope-fields/KJ-1-3-13.pg b/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/02-Slope-fields/KJ-1-3-13.pg index 06e8d0505e..7e82a3bc79 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/02-Slope-fields/KJ-1-3-13.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/02-Slope-fields/KJ-1-3-13.pg @@ -23,12 +23,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionLists.pl", "PGcourse.pl" ); @@ -52,13 +52,13 @@ $answer = Compute("sin($d pi y)"); Context()->texStrings; BEGIN_TEXT Find an autonomous differential equation with -equilibrium solutions at \( y = n/$d \) for -\( n = 0, \pm 1, \pm 2, \ldots \) +equilibrium solutions at \( y = n/$d \) for +\( n = 0, \pm 1, \pm 2, \ldots \) $BR $BR \( \displaystyle \frac{dy}{dt} = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; @@ -77,16 +77,16 @@ sub { my @yp_stu = (); foreach my $n (0..80) { my $nmod4 = $n % 4; - my $y = ($n - 40) / (4 * $d); + my $y = ($n - 40) / (4 * $d); $yp_stu[$n] = $student->eval(y=>$y); if ($nmod4 == 0) { if ( $yp_stu[$n] != 0) { return 0; } } else { - if ( $yp_stu[$n] == 0) { return 0; } + if ( $yp_stu[$n] == 0) { return 0; } } } return 1; -} +} )); diff --git a/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/03-Separable/KJ-2-6-22.pg b/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/03-Separable/KJ-2-6-22.pg index 3621af7ab1..2ba4c1621d 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/03-Separable/KJ-2-6-22.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/03-Separable/KJ-2-6-22.pg @@ -22,12 +22,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -55,7 +55,7 @@ BEGIN_TEXT Consider the initial value problem $PAR \[ -y^{\,\prime} = $k y^2, +y^{\,\prime} = $k y^2, \ \ \ y(0) = y_0. \] @@ -67,14 +67,14 @@ $BR $BR \( y_0 = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; ############################## -# Answer evaluation +# Answer evaluation ANS( $y0->cmp() ); diff --git a/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/03-Separable/KJ-2-6-27.pg b/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/03-Separable/KJ-2-6-27.pg index 991b4acb7a..f71ee18da3 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/03-Separable/KJ-2-6-27.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/03-Separable/KJ-2-6-27.pg @@ -23,12 +23,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionLists.pl", "parserPopUp.pl", "PGcourse.pl" @@ -68,36 +68,36 @@ Let \( Q(t) \) represent the amount of a certain reactant present at time \( t \). Suppose that the rate of decrease of \( Q(t) \) is proportional to \( Q^3(t) \). That is, \( Q^{\,\prime} = -kQ^3 \), where -\( k \) is a positive constant of proportionality. +\( k \) is a positive constant of proportionality. \{ BeginList("OL",type=>'a') \} $ITEM -Suppose \( \displaystyle Q(0) = \frac{1}{$den1} \). -How long will it take for the reactant to be reduced +Suppose \( \displaystyle Q(0) = \frac{1}{$den1} \). +How long will it take for the reactant to be reduced to one half of its original amount? $BR $BR \( t = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $ITEMSEP $ITEM -Suppose \( \displaystyle Q(0) = \frac{1}{$den2} \). -How long will it take for the reactant to be reduced +Suppose \( \displaystyle Q(0) = \frac{1}{$den2} \). +How long will it take for the reactant to be reduced to one half of its original amount? $BR $BR \( t = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $ITEMSEP $ITEM -Recall that, in problems of radioactive decay where +Recall that, in problems of radioactive decay where the differential equation has the form \( Q^{\,\prime} = -kQ \), -the half-life was independent of the amount of the +the half-life was independent of the amount of the amount of radioactive material initially present. What happens in the case of \( Q^{\,\prime} = -kQ^3 \)? Does half-life depend on \( Q(0) \), the amount initially @@ -113,7 +113,7 @@ Context()->normalStrings; ############################## -# Answer evaluation +# Answer evaluation $showPartialCorrectAnswers = 1; diff --git a/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/03-Separable/KJ-2-6-31.pg b/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/03-Separable/KJ-2-6-31.pg index c25e40dce7..ebc50a1d4c 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/03-Separable/KJ-2-6-31.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/03-Separable/KJ-2-6-31.pg @@ -23,12 +23,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserImplicitEquation.pl", "PGcourse.pl" ); @@ -79,20 +79,20 @@ Obtain an implicit solution of the initial value problem. Michaelis-Menten equation, arises in the study of biochemical reactions.) $BR -$BR -Enter the constant \( S_0 \) as ${BTT}S0${ETT} +$BR +Enter the constant \( S_0 \) as ${BTT}S0${ETT} (with a zero, not the letter O). $BR $BR \{ ans_rule(60) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} END_TEXT Context()->normalStrings; ############################## -# Answer evaluation +# Answer evaluation $showPartialCorrectAnswers = 1; diff --git a/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/03-Separable/KJ-2-6-35.pg b/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/03-Separable/KJ-2-6-35.pg index 9864ce616d..2344e61cae 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/03-Separable/KJ-2-6-35.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/03-Separable/KJ-2-6-35.pg @@ -22,12 +22,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionLists.pl", "PGcourse.pl" ); @@ -59,17 +59,17 @@ $answer = Compute("(-1) / (t - $t1 - 1/$z1) - t"); Context()->texStrings; BEGIN_TEXT Sometimes a change of variable can be used to convert -a differential equation \( y^{\,\prime} = f(t,y) \) into a +a differential equation \( y^{\,\prime} = f(t,y) \) into a separable equation. One common change of variable technique is as follows. \{ BeginList("OL") \} $ITEM -Consider a differential equation of the form -\( y^{\,\prime} = f(\alpha t + \beta y + \gamma) \), where +Consider a differential equation of the form +\( y^{\,\prime} = f(\alpha t + \beta y + \gamma) \), where \( \alpha, \beta \), and \( \gamma \) are constants. Use the change of variable \( z = \alpha t + \beta y + \gamma \) -to rewrite the differential equation as a separable +to rewrite the differential equation as a separable equation of the form \( z^{\,\prime} = g(z) \). $BR $BR @@ -78,7 +78,7 @@ $BR Solve the initial value problem $PAR \[ -y^{\,\prime} = (t+y)^{2} - 1, +y^{\,\prime} = (t+y)^{2} - 1, \ \ \ y($t1) = $y1. \] @@ -86,19 +86,19 @@ $BR $BR (a) \( g(z) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR (b) \( y(t) = \) \{ ans_rule(50) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; ############################## -# Answer evaluation +# Answer evaluation $showPartialCorrectAnswers = 1; diff --git a/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/03-Separable/Lebl-1-3-02.pg b/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/03-Separable/Lebl-1-3-02.pg index 90317c94f8..42542f9dcd 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/03-Separable/Lebl-1-3-02.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/03-Separable/Lebl-1-3-02.pg @@ -22,12 +22,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "answerHints.pl", "parserAssignment.pl", @@ -55,19 +55,19 @@ $answer = Compute("y = $a / (e^(1/$np1)) e^(x^$np1 / $np1)"); Context()->texStrings; BEGIN_TEXT -Find the equation of the solution to +Find the equation of the solution to \( \displaystyle \frac{dy}{dx} = x^{$n} y \) through the point \( (x,y) = (1,$a) \). $BR $BR \{ ans_rule(30) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} END_TEXT Context()->normalStrings; ############################## -# Answer evaluation +# Answer evaluation $showPartialCorrectAnswers = 1; diff --git a/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/03-Separable/Lebl-1-3-04.pg b/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/03-Separable/Lebl-1-3-04.pg index 48395e12db..b21a7e6b96 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/03-Separable/Lebl-1-3-04.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/03-Separable/Lebl-1-3-04.pg @@ -22,13 +22,13 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "parserAssignment.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -56,20 +56,20 @@ $answer = Compute("y = k * e^(x^2/2 + $b x) - $a"); Context()->texStrings; BEGIN_TEXT -Find a solution to +Find a solution to \( \displaystyle \frac{dy}{dx} = xy + $a x + $b y + $ab \). If necessary, use \( k \) to denote an arbitrary constant. $BR $BR \{ ans_rule(30) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} END_TEXT Context()->normalStrings; ############################## -# Answer evaluation +# Answer evaluation $showHint = 2; BEGIN_HINT diff --git a/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/04-Linear-integrating-factor/KJ-2-2-22.pg b/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/04-Linear-integrating-factor/KJ-2-2-22.pg index 78137768f7..968e2071ab 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/04-Linear-integrating-factor/KJ-2-2-22.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/04-Linear-integrating-factor/KJ-2-2-22.pg @@ -22,12 +22,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserAssignment.pl", "PGcourse.pl" ); @@ -36,7 +36,7 @@ TEXT(beginproblem()); ############################# -# Setup +# Setup Context("Numeric")->variables->are( t=>"Real", @@ -58,11 +58,11 @@ $answer = Compute("y = ( t^5/5 + $kk t^3/3 + C ) / (t^2 + $kk)"); ############################# -# Main text +# Main text Context()->texStrings; BEGIN_TEXT -Find the general solution to +Find the general solution to $PAR \[ (t^2 + $kk) y^{\,\prime} + 2 t y = t^2 (t^2 + $kk). @@ -74,13 +74,13 @@ Use \( C \) to denote the arbitrary constant in your answer. $BR $BR \{ ans_rule(50) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} END_TEXT Context()->normalStrings; ############################## -# Answer evaluation +# Answer evaluation $showPartialCorrectAnswers = 1; @@ -91,10 +91,10 @@ ANS( $answer->cmp( checker => sub { ################################ # Check for arbitrary constants # - Value->Error("Is your answer the most general solution?") + Value->Error("Is your answer the most general solution?") if ( Formula($stu->D('C'))==Formula(0) ); return 0 if $stu->isConstant; - + ######################################################## # Check that the student answer is a solution to the DE # diff --git a/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/04-Linear-integrating-factor/KJ-2-2-29.pg b/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/04-Linear-integrating-factor/KJ-2-2-29.pg index acb9d0c45e..46c7e03bfd 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/04-Linear-integrating-factor/KJ-2-2-29.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/04-Linear-integrating-factor/KJ-2-2-29.pg @@ -22,12 +22,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionLists.pl", "parserPopUp.pl", "PGcourse.pl" @@ -37,7 +37,7 @@ TEXT(beginproblem()); ############################# -# Setup +# Setup Context("Numeric")->variables->are( c=>"Real", @@ -59,17 +59,17 @@ $popup = PopUp(['?','yes','no'],'no'); ############################# -# Main text +# Main text Context()->texStrings; BEGIN_TEXT -Active oxygen and free radicals are believed to be +Active oxygen and free radicals are believed to be exacerbating factors in causing cell injury and aging in living tissue (see citation below). -Researchers are therefore interested in +Researchers are therefore interested in understanding the protective role of natural -antioxidants. In the study of one such -antioxidant (Hsian-tsao leaf gum), the +antioxidants. In the study of one such +antioxidant (Hsian-tsao leaf gum), the antioxidation activity of the substance has been found to depend on concentration in the following way: @@ -82,16 +82,16 @@ k[L - A(c)], A(0) = 0. \] $BR -In this equation, the dependent variable \( A \) +In this equation, the dependent variable \( A \) is a quantitative measure of antioxidant activity at concentration \( c \). The constant \( L \) -represents a limiting or equilibrium value of +represents a limiting or equilibrium value of this activity, and \( k \) a positive rate constant. \{ BeginList("OL",type=>'a') \} -$ITEM +$ITEM Let \( B(c) = A(c) - L \) and reformulate the given initial value problem in terms of this new dependent variable, \( B \). @@ -99,23 +99,23 @@ $BR $BR \( \displaystyle \frac{dB(c)}{dc} = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR \( B(0) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $ITEMSEP -$ITEM +$ITEM Solve the new initial value problem for \( B(c) \) and then determine the quantity \( A(c) \). $BR $BR \( A(c) = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR Does the activity \( A(c) \) ever exceed the value @@ -127,13 +127,13 @@ $ITEMSEP $ITEM Determine the concentration at which $limit${PERCENT} of the limiting antioxidation activity is achieved. -(Your answer is a function of the rate constant +(Your answer is a function of the rate constant \( k \).) $BR $BR \( c = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} \{ EndList("OL") \} @@ -142,7 +142,7 @@ Lih-Shiuh, Su-Tze Chou, and Wen-Wan Chao, "Studies on the Antioxidative Activities of Hsian-tsao (${BITALIC}Mesona procumbens Hemsl${EITALIC}) Leaf Gum," ${BITALIC}J. -Agric. Food Chem.,${EITALIC} Vol. 49, +Agric. Food Chem.,${EITALIC} Vol. 49, 2001, pp. 963-968. END_TEXT @@ -150,7 +150,7 @@ Context()->normalStrings; ############################## -# Answer evaluation +# Answer evaluation $showPartialCorrectAnswers = 1; diff --git a/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/04-Linear-integrating-factor/KJ-2-2-34.pg b/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/04-Linear-integrating-factor/KJ-2-2-34.pg index 8374ae5603..9c7d134700 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/04-Linear-integrating-factor/KJ-2-2-34.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/04-Linear-integrating-factor/KJ-2-2-34.pg @@ -23,12 +23,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -36,7 +36,7 @@ TEXT(beginproblem()); ############################# -# Setup +# Setup Context("Numeric")->variables->are(t=>"Real"); @@ -53,36 +53,36 @@ $g = $y + $yp; ############################# -# Main text +# Main text Context()->texStrings; BEGIN_TEXT The unique solution to the initial value problem $PAR \[ -y^{\,\prime} + y = g(t), +y^{\,\prime} + y = g(t), \ \ \ y(0) = y_0, \] $BR -is \( y(t) = $y \). Determine the constant \( y_0 \) +is \( y(t) = $y \). Determine the constant \( y_0 \) and the function \( g(t) \). $BR $BR \( y_0 = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR $BR \( g(t) = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; ############################## -# Answer evaluation +# Answer evaluation $showPartialCorrectAnswers = 1; diff --git a/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/04-Linear-integrating-factor/KJ-2-2-37.pg b/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/04-Linear-integrating-factor/KJ-2-2-37.pg index d02cce944a..3a99231306 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/04-Linear-integrating-factor/KJ-2-2-37.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/04-Linear-integrating-factor/KJ-2-2-37.pg @@ -23,12 +23,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionLists.pl", "parserAssignment.pl", "PGcourse.pl" @@ -38,7 +38,7 @@ TEXT(beginproblem()); ############################# -# Setup +# Setup Context("Numeric")->variables->are( t=>"Real", @@ -62,7 +62,7 @@ $limit = Real("-1"); ############################# -# Main text +# Main text Context()->texStrings; BEGIN_TEXT @@ -76,20 +76,20 @@ y(0) = $y0. \] $BR \{ ans_rule(50) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} $ITEMSEP $ITEM -Discuss the behavior of the solution \( y(t) \) +Discuss the behavior of the solution \( y(t) \) as \( t \) becomes large. Does \( \displaystyle -\lim_{t \to \infty} y(t) \) exist? If the limit -exists, enter its value. If the limit does +\lim_{t \to \infty} y(t) \) exist? If the limit +exists, enter its value. If the limit does not exist, enter ${BITALIC}DNE${EITALIC}. $BR $BR \( \displaystyle \lim_{t \to \infty} y(t) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} \{ EndList("OL") \} END_TEXT @@ -97,7 +97,7 @@ Context()->normalStrings; ############################## -# Answer evaluation +# Answer evaluation $showPartialCorrectAnswers = 1; diff --git a/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/04-Linear-integrating-factor/KJ-2-2-41.pg b/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/04-Linear-integrating-factor/KJ-2-2-41.pg index 6f1eac91fb..0d05448c6c 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/04-Linear-integrating-factor/KJ-2-2-41.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/04-Linear-integrating-factor/KJ-2-2-41.pg @@ -25,12 +25,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "PGcourse.pl" ); @@ -39,7 +39,7 @@ TEXT(beginproblem()); ############################# -# Setup +# Setup Context("Numeric")->variables->are(t=>"Real"); @@ -62,15 +62,15 @@ if ($displayMode eq 'TeX') { $piecewise = "\(\displaystyle $left_hand_side = \left\lbrace". "\begin{array}{c}". - ans_rule(40). - "\mbox{ if } $top_limits, \\". - ans_rule(40). + ans_rule(40). + "\mbox{ if } $top_limits, \\". + ans_rule(40). "\mbox{ if } $bot_limits.". "\end{array}". - "\right.". + "\right.". '\)'; } else { - $piecewise = + $piecewise = BeginTable(center=>0). Row([ "\( $left_hand_side =\) ". @@ -86,19 +86,19 @@ Context()->normalStrings; ############################# -# Main text +# Main text Context()->texStrings; BEGIN_TEXT Find a solution to the initial value problem $PAR \[ -y^{\,\prime} + \sin(t) y = g(t), +y^{\,\prime} + \sin(t) y = g(t), \ \ \ y(0) = $y0, \] $BR -that is continuous on the interval +that is continuous on the interval \( \lbrack 0, 2\pi \rbrack \) where $PAR @@ -119,7 +119,7 @@ Context()->normalStrings; ############################## -# Answer evaluation +# Answer evaluation $showPartialCorrectAnswers = 1; diff --git a/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/04-Linear-integrating-factor/KJ-2-3-08.pg b/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/04-Linear-integrating-factor/KJ-2-3-08.pg index 9db8ebe24d..3e7e03c87f 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/04-Linear-integrating-factor/KJ-2-3-08.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/04-Linear-integrating-factor/KJ-2-3-08.pg @@ -23,12 +23,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionLists.pl", "PGcourse.pl" ); @@ -37,7 +37,7 @@ TEXT(beginproblem()); ############################# -# Setup +# Setup Context("Numeric")->variables->are(t=>"Real"); Context()->variables->set(t=>{limits=>[-100,100]}); @@ -57,13 +57,13 @@ $c_in = Compute("(1-$v /($b*$f) )*e^(-t/$b)/$a"); ############################# -# Main text +# Main text Context()->texStrings; BEGIN_TEXT A tank, containing $v liters of liquid, -has a brine solution entering at a constant -rate of $f liters per minute. The +has a brine solution entering at a constant +rate of $f liters per minute. The well-stirred solution leaves the tank at the same rate. The concentration within the tank is monitored and found to be @@ -76,16 +76,16 @@ c(t) = $c \ \ \mathrm{kg/L}. $ITEM Determine the amount of salt initially -present within the tank. +present within the tank. $BR $BR Initial amount of salt = \{ ans_rule(20) \} kg $ITEMSEP $ITEM -Determine the inflow concentration +Determine the inflow concentration \( c_{in}(t) \), where \( c_{in}(t) \) -denotes the concentration of salt in the +denotes the concentration of salt in the brine solution flowing into the tank. $BR $BR @@ -98,7 +98,7 @@ Context()->normalStrings; ############################## -# Answer evaluation +# Answer evaluation $showPartialCorrectAnswers = 1; diff --git a/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/04-Linear-integrating-factor/KJ-2-3-12/KJ-2-3-12.pg b/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/04-Linear-integrating-factor/KJ-2-3-12/KJ-2-3-12.pg index 7591159ff3..5742b9759e 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/04-Linear-integrating-factor/KJ-2-3-12/KJ-2-3-12.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/04-Linear-integrating-factor/KJ-2-3-12/KJ-2-3-12.pg @@ -23,12 +23,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "parserPopUp.pl", "PGcourse.pl" @@ -38,7 +38,7 @@ TEXT(beginproblem()); ############################# -# Setup +# Setup Context("Numeric")->variables->are(Q=>"Real", r=>"Real", @@ -48,7 +48,7 @@ t=>"Real", $v = random(2,5,1); $dye_in = list_random(0.25,0.4,0.5,0.6,0.75); -do { $dye_out = list_random(0.1,0.2,0.25,0.4,0.5,0.6); } +do { $dye_out = list_random(0.1,0.2,0.25,0.4,0.5,0.6); } until ($dye_out < $dye_in && ($dye_in - $dye_out) != $dye_out); $de = Compute("10*0 + r * $dye_in - (10+r) * Q/$v"); @@ -63,24 +63,24 @@ $t = Compute("-ln(1 - $dye_out * $pp * (10+$rans) / ($dye_in * $rans)) * $v / (1 ############################# -# Main text +# Main text Context()->texStrings; BEGIN_TEXT \{ ColumnTable( -"Consider the mixing process shown in the +"Consider the mixing process shown in the figure. -A mixing chamber initially contains $v liters -of a clear liquid. Clear liquid flows into +A mixing chamber initially contains $v liters +of a clear liquid. Clear liquid flows into the chamber at a rate of 10 liters per minute. A dye solution having a concentration -of ${dye_in} kilograms per liter is -injected into the mixing chamber at a constant rate +of ${dye_in} kilograms per liter is +injected into the mixing chamber at a constant rate of \( r \) liters per minute. When the mixing process is started, the well-stirred mixture -is pumped from the chamber at a rate of -\( 10 + r \) liters per minute. +is pumped from the chamber at a rate of +\( 10 + r \) liters per minute. $BR $BR (a) Develop a mathematical model for the mixing @@ -93,7 +93,7 @@ $BR $BR (b) The objective is to obtain a dye concentration in the outflow mixture of ${dye_out} kilograms -per liter. What injection rate \( r \) is +per liter. What injection rate \( r \) is required to achieve this equilibrium solution? $BR \( r = \) ". @@ -101,8 +101,8 @@ ans_rule(30). " L / min". $BR. $BR. -"Would this equilibrium value of \( r \) be -different if the fluid in the chamber at +"Would this equilibrium value of \( r \) be +different if the fluid in the chamber at time \( t = 0 \) contained some dye? ". $popup->menu(). " @@ -110,9 +110,9 @@ $BR $BR (c) Assume the mixing chamber contains $v liters of clear liquid at time \( t = 0 \). How many -minutes will it take for the outflow +minutes will it take for the outflow concentration to rise to within $p${PERCENT} -of the desired concentration of ${dye_out} +of the desired concentration of ${dye_out} kilograms per liter?". $BR. "\( t = \) ". @@ -132,7 +132,7 @@ Context()->normalStrings; ############################## -# Answer evaluation +# Answer evaluation $showPartialCorrectAnswers = 1; diff --git a/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/04-Linear-integrating-factor/KJ-2-4-12.pg b/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/04-Linear-integrating-factor/KJ-2-4-12.pg index 7eee67913f..2a502f829e 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/04-Linear-integrating-factor/KJ-2-4-12.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/04-Linear-integrating-factor/KJ-2-4-12.pg @@ -23,12 +23,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "parserPopUp.pl", "PGcourse.pl" @@ -38,7 +38,7 @@ TEXT(beginproblem()); ############################# -# Setup +# Setup Context("Numeric")->variables->are(t=>"Real"); Context()->constants->add(k=>1.19327*3.14159/2.718); @@ -55,27 +55,27 @@ $popup2 = PopUp(["Choose","colony 1","colony 2","cannot be determined"],"colony ############################# -# Main text +# Main text Context()->texStrings; BEGIN_TEXT -Assume that two colonies each have \( $P0 \) -members at time \( t = 0 \) and that each +Assume that two colonies each have \( $P0 \) +members at time \( t = 0 \) and that each evolves with a constant relative birth rate -\( k = r_{b} - r_{d} \). For colony 1, -assume that individuals migrate into the -colony at a rate of \( $M \) individuals -per unit time. Assume that this immigration +\( k = r_{b} - r_{d} \). For colony 1, +assume that individuals migrate into the +colony at a rate of \( $M \) individuals +per unit time. Assume that this immigration occurs for \( 0 \leq t \leq 1 \) and ceases -thereafter. For colony 2, assume that a -similar migration pattern occurs but is -delayed by one unit of time; that is, +thereafter. For colony 2, assume that a +similar migration pattern occurs but is +delayed by one unit of time; that is, individuals immigrate at a rate of \( $M \) individuals per unit time, \( 1 \leq t \leq 2 \). Suppose we are interested in comparing the -evolution of these two populations over the +evolution of these two populations over the time interval \( 0 \leq t \leq 2 \). The -initial value problems governing the two +initial value problems governing the two populations are $PAR \[ @@ -83,7 +83,7 @@ $PAR \displaystyle \frac{dP_1}{dt} = k P_1 + M_1(t), && P_1(0) = $P0, && -M_1(t) = +M_1(t) = \left\lbrace \begin{array}{rcl} $M, && 0 \leq t \leq 1, \\ @@ -95,7 +95,7 @@ $M, && 0 \leq t \leq 1, \\ \displaystyle \frac{dP_2}{dt} = k P_2 + M_2(t), && P_2(0) = $P0, && -M_2(t) = +M_2(t) = \left\lbrace \begin{array}{rcl} 0, && 0 \leq t < 1, \\ @@ -108,7 +108,7 @@ $BR \{ BeginList("OL",type=>'a') \} -$ITEM +$ITEM Solve both problems to find \( P_1 \) and \( P_2 \) at time \( t = 2 \). $BR @@ -120,25 +120,25 @@ $BR $ITEMSEP $ITEM -Show that -\( \displaystyle -P_1(2) - P_2(2) -= +Show that +\( \displaystyle +P_1(2) - P_2(2) += \frac{$M}{k} \left( e^k - 1 \right)^2 \). $BR -If \( k > 0 \), which population is larger +If \( k > 0 \), which population is larger at time \( t = 2 \)? \{ $popup1->menu() \} $BR -If \( k < 0 \), which population is larger +If \( k < 0 \), which population is larger at time \( t = 2 \)? \{ $popup2->menu() \} $ITEMSEP $ITEM -Suppose that there is a fixed number of -individuals that can be introduced into a +Suppose that there is a fixed number of +individuals that can be introduced into a population at any time through migration and that the objective is to maximize the population at some fixed future time. Do @@ -153,7 +153,7 @@ Context()->normalStrings; ############################## -# Answer evaluation +# Answer evaluation $showPartialCorrectAnswers = 1; diff --git a/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/04-Linear-integrating-factor/integrating-factor-01.pg b/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/04-Linear-integrating-factor/integrating-factor-01.pg index 857f0088db..493205b8da 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/04-Linear-integrating-factor/integrating-factor-01.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/04-Linear-integrating-factor/integrating-factor-01.pg @@ -22,12 +22,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionLists.pl", "PGcourse.pl" ); @@ -38,7 +38,7 @@ $showPartialCorrectAnswers = 1; ############################################# -# Setup +# Setup Context("Numeric")->variables->are(t=>'Real'); @@ -59,7 +59,7 @@ BEGIN_TEXT Consider the intial value problem $PAR \[ -\frac{dy}{dt} + $a y = $b, +\frac{dy}{dt} + $a y = $b, \ \ \ y(0) = 0. \] @@ -69,7 +69,7 @@ Find a nonzero solution to the associated homogeneous differential equation. $BR \( y = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; @@ -96,7 +96,7 @@ Find a particular solution to the nonhomogeneous differential equation. $BR \( y = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; @@ -121,7 +121,7 @@ $ITEM Find the solution to the initial value problem. $BR \( y = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} \{ EndList("OL") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/04-Linear-integrating-factor/integrating-factor-02.pg b/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/04-Linear-integrating-factor/integrating-factor-02.pg index cce002ed21..e642c3f7b7 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/04-Linear-integrating-factor/integrating-factor-02.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/04-Linear-integrating-factor/integrating-factor-02.pg @@ -22,12 +22,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserAssignment.pl", "PGcourse.pl" ); @@ -36,7 +36,7 @@ TEXT(beginproblem()); ############################# -# Setup +# Setup Context("Numeric")->variables->are( t=>"Real", @@ -57,11 +57,11 @@ $answer = Compute("r = ($k e^t + C ) / (ln(t))"); ############################# -# Main text +# Main text Context()->texStrings; BEGIN_TEXT -Find the general solution to +Find the general solution to $PAR \[ t \ln(t) \frac{dr}{dt} + r = $k t e^t. @@ -73,13 +73,13 @@ Use \( C \) to denote the arbitrary constant in your answer. $BR $BR \{ ans_rule(50) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} END_TEXT Context()->normalStrings; ############################## -# Answer evaluation +# Answer evaluation $showPartialCorrectAnswers = 1; @@ -90,7 +90,7 @@ ANS( $answer->cmp( checker => sub { ################################ # Check for arbitrary constants # - Value->Error("Is your answer the most general solution?") + Value->Error("Is your answer the most general solution?") if ( Formula($stu->D('C'))==Formula(0) ); ######################################################## diff --git a/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/05-Substitution-Bernoulli/Lebl-1-5-02.pg b/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/05-Substitution-Bernoulli/Lebl-1-5-02.pg index b7c689ff7c..21b95a0524 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/05-Substitution-Bernoulli/Lebl-1-5-02.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/05-Substitution-Bernoulli/Lebl-1-5-02.pg @@ -22,12 +22,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "answerHints.pl", "parserAssignment.pl", @@ -39,7 +39,7 @@ TEXT(beginproblem()); ############################# -# Part A +# Part A Context("Numeric"); Context()->variables->{namePattern} = qr/[a-z][a-z0-9_]*'*/i; @@ -51,7 +51,7 @@ $a = random(2,6,1); do { $c = random(4,9,1); } until ($c != $a && $c**2 > $a); $cc = $c**2; -$answera1 = Formula("y^2"); +$answera1 = Formula("y^2"); $answera2 = Formula("sqrt(u)")->with(limits=>[1,2]); @@ -68,29 +68,29 @@ with \( y(0) = $c \). $ITEM To solve this, we should use the substitution $BR -\( u = \) +\( u = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR -With this substitution, +With this substitution, $BR -\( y = \) +\( y = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR \( y^{\,\prime} = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR -Enter derivatives using prime notation (e.g., +Enter derivatives using prime notation (e.g., you would enter \( y^{\,\prime} \) for \( \frac{dy}{dx} \)). END_TEXT Context()->normalStrings; ANS( $answera1->cmp() ); ANS( $answera2->cmp() ); -ANS( $answera3->cmp() -->withPostFilter(AnswerHints( +ANS( $answera3->cmp() +->withPostFilter(AnswerHints( $answera3bogus => "Don't forget the chain rule", )) ); @@ -117,11 +117,11 @@ Context()->texStrings; BEGIN_TEXT $ITEMSEP $ITEM After the substitution from the previous -part, we obtain the following linear differential +part, we obtain the following linear differential equation in \( x, u, u^{\,\prime} \). $BR \{ ans_rule(30) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} END_TEXT Context()->normalStrings; @@ -147,7 +147,7 @@ $ITEM The solution to the original initial value problem is described by the following equation in \( x, y \). $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} \{ EndList('OL') \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/05-Substitution-Bernoulli/Lebl-1-5-04.pg b/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/05-Substitution-Bernoulli/Lebl-1-5-04.pg index c39ff27de7..96bfc36c1b 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/05-Substitution-Bernoulli/Lebl-1-5-04.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/05-Substitution-Bernoulli/Lebl-1-5-04.pg @@ -22,12 +22,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "parserAssignment.pl", "parserImplicitEquation.pl", @@ -38,7 +38,7 @@ TEXT(beginproblem()); ############################# -# Part A +# Part A Context("Numeric"); Context()->variables->{namePattern} = qr/[a-z][a-z0-9_]*'*/i; @@ -61,7 +61,7 @@ if (round(sqrt($c)) == sqrt($c)) { $y0 = "-\sqrt{$c}"; } -$answera1 = Formula("x^2 + y^2"); +$answera1 = Formula("x^2 + y^2"); $answera2 = Formula("2 x + 2 y y'"); @@ -76,15 +76,15 @@ with \( y($x0) = $y0 \). $ITEM To solve this, we should use the substitution $BR -\( u = \) +\( u = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR -\( u^{\,\prime} = \) +\( u^{\,\prime} = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR -Enter derivatives using prime notation (e.g., +Enter derivatives using prime notation (e.g., you would enter \( y^{\,\prime} \) for \( \frac{dy}{dx} \)). END_TEXT Context()->normalStrings; @@ -117,11 +117,11 @@ Context()->texStrings; BEGIN_TEXT $ITEMSEP $ITEM After the substitution from the previous -part, we obtain the following linear differential +part, we obtain the following linear differential equation in \( x, u, u^{\,\prime} \). $BR \{ ans_rule(30) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} END_TEXT Context()->normalStrings; @@ -147,7 +147,7 @@ $ITEM The solution to the original initial value problem is described by the following equation in \( x, y \). $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} \{ EndList('OL') \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/05-Substitution-Bernoulli/Lebl-1-5-05.pg b/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/05-Substitution-Bernoulli/Lebl-1-5-05.pg index cc1b37c83d..8b34573e40 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/05-Substitution-Bernoulli/Lebl-1-5-05.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/05-Substitution-Bernoulli/Lebl-1-5-05.pg @@ -22,12 +22,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "parserAssignment.pl", "parserImplicitEquation.pl", @@ -38,7 +38,7 @@ TEXT(beginproblem()); ############################# -# Part A +# Part A Context("Numeric"); Context()->variables->{namePattern} = qr/[a-z][a-z0-9_]*'*/i; @@ -48,7 +48,7 @@ x=>"Real",y=>"Real","y'"=>"Real", $a = random(1,4,1); -$answera1 = Formula("x + y - $a"); +$answera1 = Formula("x + y - $a"); $answera2 = Formula("1 + y'"); @@ -63,15 +63,15 @@ with \( y(0) = 0 \). $ITEM To solve this, we should use the substitution $BR -\( u = \) +\( u = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR -\( u^{\,\prime} = \) +\( u^{\,\prime} = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR -Enter derivatives using prime notation (e.g., +Enter derivatives using prime notation (e.g., you would enter \( y^{\,\prime} \) for \( \frac{dy}{dx} \)). END_TEXT Context()->normalStrings; @@ -96,11 +96,11 @@ Context()->texStrings; BEGIN_TEXT $ITEMSEP $ITEM After the substitution from the previous -part, we obtain the following differential +part, we obtain the following differential equation in \( x, u, u^{\,\prime} \). $BR \{ ans_rule(30) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} END_TEXT Context()->normalStrings; @@ -126,7 +126,7 @@ $ITEM The solution to the original initial value problem is described by the following equation in \( x, y \). $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} \{ EndList('OL') \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/05-Substitution-Bernoulli/Lebl-1-5-06.pg b/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/05-Substitution-Bernoulli/Lebl-1-5-06.pg index faf1857a67..6701e8b55a 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/05-Substitution-Bernoulli/Lebl-1-5-06.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/05-Substitution-Bernoulli/Lebl-1-5-06.pg @@ -23,12 +23,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -46,7 +46,7 @@ $x0 = 2; $y0 = random(2,5,1); $c = 4 * ($y0**2 - 2); -$answer = Formula("sqrt( x^2/2 + $c/(x^2) )")->reduce(); +$answer = Formula("sqrt( x^2/2 + $c/(x^2) )")->reduce(); ###################### @@ -60,7 +60,7 @@ with \( y($x0) = $y0 \). $BR $BR \(y=\)\{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/06-Autonomous/BDH-1-7-01.pg b/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/06-Autonomous/BDH-1-7-01.pg index 66e6f63e9c..746325fea8 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/06-Autonomous/BDH-1-7-01.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/06-Autonomous/BDH-1-7-01.pg @@ -26,7 +26,7 @@ loadMacros( "PGunion.pl", "imageChoice.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -38,7 +38,7 @@ $refreshCachedImages = 1; # Setup Context("Numeric"); - + $answer = Compute("0"); @de = ( @@ -106,7 +106,7 @@ $ml = new_image_match_list( size => [60,200], # image size in pixels tex_size => 200, # tex size in precent times 10 columns => 4, # number of columns - separation => 20, # separation between image columns + separation => 20, # separation between image columns ); $ml->rf_print_q(~~&pop_up_list_print_q); # use pop-up-lists @@ -126,16 +126,16 @@ BEGIN_TEXT \{ ColumnTable( "Determine the bifurcation value(s) for the -one-parameter family +one-parameter family $PAR \[ \displaystyle \frac{dy}{dt} = y^2 + k. \]". $BR. "\( k = \) ". -ans_rule(20).$SPACE.AnswerFormatHelp("numbers"). +ans_rule(20).$SPACE.helpLink("numbers"). $BR. $BR. "Determine which differential equation -corresponds to each phase line. You +corresponds to each phase line. You should be able to state briefly how you know your choices are correct.". $ml->print_q() diff --git a/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/06-Autonomous/BDH-1-7-03.pg b/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/06-Autonomous/BDH-1-7-03.pg index 64aaf4763b..27dfbc9d12 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/06-Autonomous/BDH-1-7-03.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/06-Autonomous/BDH-1-7-03.pg @@ -25,7 +25,7 @@ loadMacros( "PGunion.pl", "imageChoice.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -107,7 +107,7 @@ $ml = new_image_match_list( size => [60,200], # image size in pixels tex_size => 200, # tex size in precent times 10 columns => 4, # number of columns - separation => 20, # separation between image columns + separation => 20, # separation between image columns ); $ml->rf_print_q(~~&pop_up_list_print_q); # use pop-up-lists @@ -127,16 +127,16 @@ BEGIN_TEXT \{ ColumnTable( "Determine the bifurcation value(s) for the -one-parameter family +one-parameter family $PAR \[ \displaystyle \frac{dy}{dt} = y^2 + $a y + k. \]". $BR. "\( k = \) ". -ans_rule(20).$SPACE.AnswerFormatHelp("numbers"). +ans_rule(20).$SPACE.helpLink("numbers"). $BR. $BR. "Determine which differential equation -corresponds to each phase line. You +corresponds to each phase line. You should be able to state briefly how you know your choices are correct.". $ml->print_q() diff --git a/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/08-Existence-uniqueness/KJ-2-1-04.pg b/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/08-Existence-uniqueness/KJ-2-1-04.pg index 64f0a2cdbe..2f20404f82 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/08-Existence-uniqueness/KJ-2-1-04.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/08-Existence-uniqueness/KJ-2-1-04.pg @@ -23,12 +23,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserPopUp.pl", "PGcourse.pl" ); diff --git a/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/08-Existence-uniqueness/KJ-2-1-06.pg b/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/08-Existence-uniqueness/KJ-2-1-06.pg index 38f1828f91..be2b728ec8 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/08-Existence-uniqueness/KJ-2-1-06.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/08-Existence-uniqueness/KJ-2-1-06.pg @@ -23,12 +23,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserPopUp.pl", "PGcourse.pl" ); @@ -62,16 +62,16 @@ into the form \( y^{\,\prime} + p(t) y = g(t)\) and find \( p(t) \) and \( g(t) \). $BR $BR -\( p(t) = \) +\( p(t) = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR -\( g(t) = \) +\( g(t) = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR -Is the differential equation +Is the differential equation \( \displaystyle $a t y + e^t y^{\,\prime} = \frac{y}{t^2+$aa} \) linear and homogeneous, linear and nonhomogeneous, or nonlinear? $BR diff --git a/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/08-Existence-uniqueness/KJ-2-1-09.pg b/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/08-Existence-uniqueness/KJ-2-1-09.pg index f4a5407595..9642a60587 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/08-Existence-uniqueness/KJ-2-1-09.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/08-Existence-uniqueness/KJ-2-1-09.pg @@ -22,12 +22,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserPopUp.pl", "PGcourse.pl" ); @@ -62,16 +62,16 @@ into the form \( y^{\,\prime} + p(t) y = g(t)\) and find \( p(t) \) and \( g(t) \). $BR $BR -\( p(t) = \) +\( p(t) = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR -\( g(t) = \) +\( g(t) = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR -Is the differential equation +Is the differential equation \( \displaystyle \frac{t y^{\,\prime}}{(t^{$n}+$a) y} = \cos(t) + \frac{e^{$b t}}{y} \) linear and homogeneous, linear and nonhomogeneous, or nonlinear? $BR diff --git a/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/08-Existence-uniqueness/KJ-2-1-13.pg b/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/08-Existence-uniqueness/KJ-2-1-13.pg index d78f4b6bfa..354635f5c0 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/08-Existence-uniqueness/KJ-2-1-13.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/08-Existence-uniqueness/KJ-2-1-13.pg @@ -22,12 +22,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionLists.pl", "contextInequalities.pl", "PGcourse.pl" @@ -71,11 +71,11 @@ BEGIN_TEXT Consider the first order differential equation $PAR \[ -y^{\,\prime} + \frac{t}{t^2-$aa} y = \frac{e^t}{t-$b}. +y^{\,\prime} + \frac{t}{t^2-$aa} y = \frac{e^t}{t-$b}. \] $BR -For each of the initial conditions below, determine the -largest interval \( a < t < b \) on which the +For each of the initial conditions below, determine the +largest interval \( a < t < b \) on which the existence and uniqueness theorem for first order linear differential equations guarantees the existence of a unique solution. @@ -86,31 +86,31 @@ $BR $ITEM \( y(-$c) = $f[0] \). $BR \{ ans_rule(30) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} $ITEMSEP $ITEM \( y(-$d) = $f[1] \). $BR \{ ans_rule(30) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} $ITEMSEP $ITEM \( y(0) = 0 \). $BR \{ ans_rule(30) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} $ITEMSEP $ITEM \( y($h) = $f[2] \). $BR \{ ans_rule(30) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} $ITEMSEP $ITEM \( y($j) = $f[3] \). $BR \{ ans_rule(30) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} \{ EndList("OL") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/08-Existence-uniqueness/KJ-2-1-16.pg b/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/08-Existence-uniqueness/KJ-2-1-16.pg index abb27e84c6..0dd3e58679 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/08-Existence-uniqueness/KJ-2-1-16.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/08-Existence-uniqueness/KJ-2-1-16.pg @@ -22,12 +22,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionLists.pl", "contextInequalities.pl", "PGcourse.pl" @@ -77,23 +77,23 @@ initial value problem. $BR \( y = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $ITEMSEP $ITEM Determine the largest interval of the form \( a < t < b \) on which the existence and uniqueness -theorem for first order linear differential equations +theorem for first order linear differential equations guarantees the existence of a unique solution. $BR \{ ans_rule(30) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} $ITEMSEP -$ITEM What is the actual interval of existence for +$ITEM What is the actual interval of existence for the solution (from part a)? $BR \{ ans_rule(30) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} \{ EndList("OL") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/08-Existence-uniqueness/Lebl-1-2-04.pg b/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/08-Existence-uniqueness/Lebl-1-2-04.pg index 81c34d9721..57738197dc 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/08-Existence-uniqueness/Lebl-1-2-04.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/1-First-order/08-Existence-uniqueness/Lebl-1-2-04.pg @@ -22,12 +22,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserPopUp.pl", "unionLists.pl", "PGcourse.pl" @@ -74,18 +74,18 @@ BEGIN_TEXT Suppose \( \displaystyle y^{\,\prime} = f(x,y) = $f \). \{ BeginList('OL',type=>'a') \} -$ITEM \( \displaystyle \frac{\partial f}{\partial y} = \) +$ITEM \( \displaystyle \frac{\partial f}{\partial y} = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $ITEMSEP -$ITEM Since the function \( f(x,y) \) is -\{ $answer[1]->menu() \} at the point \( (0,0) \), +$ITEM Since the function \( f(x,y) \) is +\{ $answer[1]->menu() \} at the point \( (0,0) \), the partial derivative \( \frac{\partial f}{\partial y} \) \{ $answer[2]->menu() \} and is \{ $answer[3]->menu() \} -at and near the point \( (0,0) \), the solution to -\( y' = f(x,y) \) -\{ $answer[4]->menu() \} near \( y(0) = 0 \) +at and near the point \( (0,0) \), the solution to +\( y' = f(x,y) \) +\{ $answer[4]->menu() \} near \( y(0) = 0 \) \{ EndList('OL') \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/02-Linear-2nd-order-cc/Lebl-2-2-06.pg b/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/02-Linear-2nd-order-cc/Lebl-2-2-06.pg index 117457c710..b900974105 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/02-Linear-2nd-order-cc/Lebl-2-2-06.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/02-Linear-2nd-order-cc/Lebl-2-2-06.pg @@ -24,12 +24,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserAssignment.pl", "PGcourse.pl" ); @@ -70,14 +70,14 @@ BEGIN_TEXT Find the general solution to \( $diffeq \). $BR Enter your answer as \(y = \dots\) . -In your answer, use \( c_1 \) and \( c_2 \) to -denote arbitrary constants and \( x \) +In your answer, use \( c_1 \) and \( c_2 \) to +denote arbitrary constants and \( x \) the independent variable. Enter \( c_1 \) as ${BTT}c1${ETT} and \( c_2 \) as ${BTT}c2${ETT}. $BR $BR \{ ans_rule(40) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} END_TEXT Context()->normalStrings; @@ -94,10 +94,10 @@ ANS( $answer->cmp( checker => sub { ################################ # Check for arbitrary constants # - Value->Error("Is your answer the most general solution?") - if ( - Formula($stu->D('c1'))==Formula(0) || - Formula($stu->D('c2'))==Formula(0) + Value->Error("Is your answer the most general solution?") + if ( + Formula($stu->D('c1'))==Formula(0) || + Formula($stu->D('c2'))==Formula(0) ); ############################################ @@ -107,15 +107,15 @@ ANS( $answer->cmp( checker => sub { my $a11 = $stu->eval('c1'=>1,'c2'=>0,x=>$x,y=>0); my $a12 = $stu->eval('c1'=>0,'c2'=>1,x=>$x,y=>0); - + my $a21 = $stu->D('x')->eval('c1'=>1,'c2'=>0,x=>$x,y=>0); my $a22 = $stu->D('x')->eval('c1'=>0,'c2'=>1,x=>$x,y=>0); # my $wronskian = $a11*$a22 - $a21*$a12; - # Value->Error("Your functions are not linearly independent or your answer is not complete") + # Value->Error("Your functions are not linearly independent or your answer is not complete") # if ($wronskian==Real(0)); - Value->Error("Your functions are not linearly independent or your answer is not complete") + Value->Error("Your functions are not linearly independent or your answer is not complete") if ($a11 * $a22 == $a21 * $a12); ######################################################## diff --git a/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/02-Linear-2nd-order-cc/Lebl-2-2-07.pg b/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/02-Linear-2nd-order-cc/Lebl-2-2-07.pg index 6b0950bc8f..6e052f0af5 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/02-Linear-2nd-order-cc/Lebl-2-2-07.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/02-Linear-2nd-order-cc/Lebl-2-2-07.pg @@ -23,12 +23,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserAssignment.pl", "PGcourse.pl" ); @@ -63,14 +63,14 @@ $answer = Compute("y = c1 e^($a x) + c2 e^(-$b x)"); Context()->texStrings; BEGIN_TEXT Find the general solution to \( $diffeq \). -Give your answer as \( y = . . . \ \). In your answer, use \( c_1 \) and \( c_2 \) to -denote arbitrary constants and \( x \) +Give your answer as \( y = . . . \ \). In your answer, use \( c_1 \) and \( c_2 \) to +denote arbitrary constants and \( x \) the independent variable. Enter \( c_1 \) as ${BTT}c1${ETT} and \( c_2 \) as ${BTT}c2${ETT}. $BR $BR \{ ans_rule(40) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} END_TEXT Context()->normalStrings; @@ -87,10 +87,10 @@ ANS( $answer->cmp( checker => sub { ################################ # Check for arbitrary constants # - Value->Error("Is your answer the most general solution?") - if ( - Formula($stu->D('c1'))==Formula(0) || - Formula($stu->D('c2'))==Formula(0) + Value->Error("Is your answer the most general solution?") + if ( + Formula($stu->D('c1'))==Formula(0) || + Formula($stu->D('c2'))==Formula(0) ); ############################################ @@ -100,15 +100,15 @@ ANS( $answer->cmp( checker => sub { my $a11 = $stu->eval('c1'=>1,'c2'=>0,x=>$x,y=>0); my $a12 = $stu->eval('c1'=>0,'c2'=>1,x=>$x,y=>0); - + my $a21 = $stu->D('x')->eval('c1'=>1,'c2'=>0,x=>$x,y=>0); my $a22 = $stu->D('x')->eval('c1'=>0,'c2'=>1,x=>$x,y=>0); # my $wronskian = $a11*$a22 - $a21*$a12; - # Value->Error("Your functions are not linearly independent or your answer is not complete") + # Value->Error("Your functions are not linearly independent or your answer is not complete") # if ($wronskian==Real(0)); - Value->Error("Your functions are not linearly independent or your answer is not complete") + Value->Error("Your functions are not linearly independent or your answer is not complete") if ($a11 * $a22 == $a21 * $a12); ######################################################## diff --git a/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/02-Linear-2nd-order-cc/Lebl-2-2-08.pg b/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/02-Linear-2nd-order-cc/Lebl-2-2-08.pg index 38c750c983..cff9866006 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/02-Linear-2nd-order-cc/Lebl-2-2-08.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/02-Linear-2nd-order-cc/Lebl-2-2-08.pg @@ -22,12 +22,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserAssignment.pl", "PGcourse.pl" ); @@ -69,21 +69,21 @@ BEGIN_TEXT (a) Find the general solution to \( $diffeq \). $BR Enter your answer as \(y = \dots\) . -In your answer, use \( c_1 \) and \( c_2 \) to -denote arbitrary constants and \( x \) -the independent variable. Enter \( c_1 \) as +In your answer, use \( c_1 \) and \( c_2 \) to +denote arbitrary constants and \( x \) +the independent variable. Enter \( c_1 \) as ${BTT}c1${ETT} and \( c_2 \) as ${BTT}c2${ETT}. $BR \{ ans_rule(40) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} $BR $BR -(b) Find the solution that satisfies the +(b) Find the solution that satisfies the initial conditions \( y(0) = $y0 \) and \( y^{\,\prime}(0) = 0 \). $BR \{ ans_rule(40) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} END_TEXT Context()->normalStrings; @@ -100,10 +100,10 @@ ANS( $answera->cmp( checker => sub { ################################ # Check for arbitrary constants # - Value->Error("Is your answer the most general solution?") - if ( - Formula($stu->D('c1'))==Formula(0) || - Formula($stu->D('c2'))==Formula(0) + Value->Error("Is your answer the most general solution?") + if ( + Formula($stu->D('c1'))==Formula(0) || + Formula($stu->D('c2'))==Formula(0) ); ############################################ @@ -113,15 +113,15 @@ ANS( $answera->cmp( checker => sub { my $a11 = $stu->eval('c1'=>1,'c2'=>0,x=>$x,y=>0); my $a12 = $stu->eval('c1'=>0,'c2'=>1,x=>$x,y=>0); - + my $a21 = $stu->D('x')->eval('c1'=>1,'c2'=>0,x=>$x,y=>0); my $a22 = $stu->D('x')->eval('c1'=>0,'c2'=>1,x=>$x,y=>0); # my $wronskian = $a11*$a22 - $a21*$a12; - # Value->Error("Your functions are not linearly independent or your answer is not complete") + # Value->Error("Your functions are not linearly independent or your answer is not complete") # if ($wronskian==Real(0)); - Value->Error("Your functions are not linearly independent or your answer is not complete") + Value->Error("Your functions are not linearly independent or your answer is not complete") if ($a11 * $a22 == $a21 * $a12); ######################################################## diff --git a/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/02-Linear-2nd-order-cc/Lebl-2-2-09.pg b/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/02-Linear-2nd-order-cc/Lebl-2-2-09.pg index 11e7cdc34d..8a44b1c337 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/02-Linear-2nd-order-cc/Lebl-2-2-09.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/02-Linear-2nd-order-cc/Lebl-2-2-09.pg @@ -22,12 +22,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserAssignment.pl", "PGcourse.pl" ); @@ -67,21 +67,21 @@ $answerb = Compute("y = $ap1/$a - 1/$a e^(-$a x)"); Context()->texStrings; BEGIN_TEXT (a) Find the general solution to \( $diffeq \). -Give your answer as \( y = . . . \ \). -In your answer, use \( c_1 \) and \( c_2 \) to -denote arbitrary constants and \( x \) -the independent variable. Enter \( c_1 \) as +Give your answer as \( y = . . . \ \). +In your answer, use \( c_1 \) and \( c_2 \) to +denote arbitrary constants and \( x \) +the independent variable. Enter \( c_1 \) as ${BTT}c1${ETT} and \( c_2 \) as ${BTT}c2${ETT}. $BR \{ ans_rule(40) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} $BR $BR (b) Find the particular solution that satisfies \( y(0) = 1 \) and \( y^{\,\prime}(0) = 1 \). $BR \{ ans_rule(40) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} END_TEXT Context()->normalStrings; @@ -98,10 +98,10 @@ ANS( $answera->cmp( checker => sub { ################################ # Check for arbitrary constants # - Value->Error("Is your answer the most general solution?") - if ( - Formula($stu->D('c1'))==Formula(0) || - Formula($stu->D('c2'))==Formula(0) + Value->Error("Is your answer the most general solution?") + if ( + Formula($stu->D('c1'))==Formula(0) || + Formula($stu->D('c2'))==Formula(0) ); ############################################ @@ -111,15 +111,15 @@ ANS( $answera->cmp( checker => sub { my $a11 = $stu->eval('c1'=>1,'c2'=>0,x=>$x,y=>0); my $a12 = $stu->eval('c1'=>0,'c2'=>1,x=>$x,y=>0); - + my $a21 = $stu->D('x')->eval('c1'=>1,'c2'=>0,x=>$x,y=>0); my $a22 = $stu->D('x')->eval('c1'=>0,'c2'=>1,x=>$x,y=>0); - Value->Error("Your functions are not linearly independent or your answer is not complete") + Value->Error("Your functions are not linearly independent or your answer is not complete") if ($a11 * $a22 == $a21 * $a12); # my $wronskian = $a11*$a22 - $a21*$a12; - # Value->Error("Your functions are not linearly independent or your answer is not complete") + # Value->Error("Your functions are not linearly independent or your answer is not complete") # if ($wronskian==Real(0)); ######################################################## diff --git a/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/02-Linear-2nd-order-cc/Lebl-2-2-10.pg b/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/02-Linear-2nd-order-cc/Lebl-2-2-10.pg index f5e4a9975c..3641f5e4da 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/02-Linear-2nd-order-cc/Lebl-2-2-10.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/02-Linear-2nd-order-cc/Lebl-2-2-10.pg @@ -22,12 +22,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserAssignment.pl", "PGcourse.pl" ); @@ -70,14 +70,14 @@ $answer = Compute("y = c1 cos($a x) + c2 sin($a x)"); Context()->texStrings; BEGIN_TEXT Find the general solution to \( $diffeq \). -Give your answer as \( y = . . . \ \). In your answer, use \( c_1 \) and \( c_2 \) to -denote arbitrary constants and \( x \) -the independent variable. Enter \( c_1 \) as +Give your answer as \( y = . . . \ \). In your answer, use \( c_1 \) and \( c_2 \) to +denote arbitrary constants and \( x \) +the independent variable. Enter \( c_1 \) as ${BTT}c1${ETT} and \( c_2 \) as ${BTT}c2${ETT}. $BR $BR \{ ans_rule(40) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} END_TEXT Context()->normalStrings; @@ -94,10 +94,10 @@ ANS( $answer->cmp( checker => sub { ################################ # Check for arbitrary constants # - Value->Error("Is your answer the most general solution?") - if ( - Formula($stu->D('c1'))==Formula(0) || - Formula($stu->D('c2'))==Formula(0) + Value->Error("Is your answer the most general solution?") + if ( + Formula($stu->D('c1'))==Formula(0) || + Formula($stu->D('c2'))==Formula(0) ); ############################################ @@ -107,15 +107,15 @@ ANS( $answer->cmp( checker => sub { my $a11 = $stu->eval('c1'=>1,'c2'=>0,x=>$x,y=>0); my $a12 = $stu->eval('c1'=>0,'c2'=>1,x=>$x,y=>0); - + my $a21 = $stu->D('x')->eval('c1'=>1,'c2'=>0,x=>$x,y=>0); my $a22 = $stu->D('x')->eval('c1'=>0,'c2'=>1,x=>$x,y=>0); # my $wronskian = $a11*$a22 - $a21*$a12; - # Value->Error("Your functions are not linearly independent or your answer is not complete") + # Value->Error("Your functions are not linearly independent or your answer is not complete") # if ($wronskian==Real(0)); - Value->Error("Your functions are not linearly independent or your answer is not complete") + Value->Error("Your functions are not linearly independent or your answer is not complete") if ($a11 * $a22 == $a21 * $a12); ######################################################## diff --git a/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/02-Linear-2nd-order-cc/Lebl-2-2-11.pg b/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/02-Linear-2nd-order-cc/Lebl-2-2-11.pg index 2d4597ad19..1fc99efd50 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/02-Linear-2nd-order-cc/Lebl-2-2-11.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/02-Linear-2nd-order-cc/Lebl-2-2-11.pg @@ -22,12 +22,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserAssignment.pl", "PGcourse.pl" ); @@ -79,14 +79,14 @@ Context()->texStrings; BEGIN_TEXT Find the general solution to \( $diffeq \). Give your answer as \( y = . . . \). -In your answer, use \( c_1 \) and \( c_2 \) to -denote arbitrary constants and \( x \) +In your answer, use \( c_1 \) and \( c_2 \) to +denote arbitrary constants and \( x \) the independent variable. Enter \( c_1 \) as ${BTT}c1${ETT} and \( c_2 \) as ${BTT}c2${ETT}. $BR $BR \{ ans_rule(40) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} END_TEXT Context()->normalStrings; @@ -102,10 +102,10 @@ ANS( $answer->cmp( checker => sub { ################################ # Check for arbitrary constants # - Value->Error("Is your answer the most general solution?") - if ( - Formula($stu->D('c1'))==Formula(0) || - Formula($stu->D('c2'))==Formula(0) + Value->Error("Is your answer the most general solution?") + if ( + Formula($stu->D('c1'))==Formula(0) || + Formula($stu->D('c2'))==Formula(0) ); ############################################ @@ -115,15 +115,15 @@ ANS( $answer->cmp( checker => sub { my $a11 = $stu->eval('c1'=>1,'c2'=>0,x=>$x,y=>0); my $a12 = $stu->eval('c1'=>0,'c2'=>1,x=>$x,y=>0); - + my $a21 = $stu->D('x')->eval('c1'=>1,'c2'=>0,x=>$x,y=>0); my $a22 = $stu->D('x')->eval('c1'=>0,'c2'=>1,x=>$x,y=>0); # my $wronskian = $a11*$a22 - $a21*$a12; - # Value->Error("Your functions are not linearly independent or your answer is not complete") + # Value->Error("Your functions are not linearly independent or your answer is not complete") # if ($wronskian==Real(0)); - Value->Error("Your functions are not linearly independent or your answer is not complete") + Value->Error("Your functions are not linearly independent or your answer is not complete") if ($a11 * $a22 == $a21 * $a12); diff --git a/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/03-Linear-higher-order/Lebl-2-3-01.pg b/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/03-Linear-higher-order/Lebl-2-3-01.pg index e5464beea2..c82c9e9d4d 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/03-Linear-higher-order/Lebl-2-3-01.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/03-Linear-higher-order/Lebl-2-3-01.pg @@ -22,12 +22,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserAssignment.pl", "PGcourse.pl" ); @@ -69,16 +69,16 @@ $answer = Compute("y = c1 e^x + c2 cos(sqrt($a) x) + c3 sin(sqrt($a) x)"); Context()->texStrings; BEGIN_TEXT Find the general solution to \( $diffeq \). -In your answer, use \( c_1, c_2 \) and \( c_3 \) to -denote arbitrary constants and \( x \) -the independent variable. Enter -\( c_1 \) as ${BTT}c1${ETT}, -\( c_2 \) as ${BTT}c2${ETT}, and +In your answer, use \( c_1, c_2 \) and \( c_3 \) to +denote arbitrary constants and \( x \) +the independent variable. Enter +\( c_1 \) as ${BTT}c1${ETT}, +\( c_2 \) as ${BTT}c2${ETT}, and \( c_3 \) as ${BTT}c3${ETT}. $BR $BR \{ ans_rule(50) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} END_TEXT Context()->normalStrings; @@ -97,11 +97,11 @@ ANS( $answer->cmp( checker => sub { ################################# # Check for arbitrary constants # - Value->Error("Is your answer the most general solution?") - if ( - Formula($stu->D('c1'))==Formula(0) || - Formula($stu->D('c2'))==Formula(0) || - Formula($stu->D('c3'))==Formula(0) + Value->Error("Is your answer the most general solution?") + if ( + Formula($stu->D('c1'))==Formula(0) || + Formula($stu->D('c2'))==Formula(0) || + Formula($stu->D('c3'))==Formula(0) ); @@ -122,14 +122,14 @@ ANS( $answer->cmp( checker => sub { my $a32 = $stu->D('x','x')->eval('c1'=>0,'c2'=>1,'c3'=>0,x=>$x,y=>0); my $a33 = $stu->D('x','x')->eval('c1'=>0,'c2'=>0,'c3'=>1,x=>$x,y=>0); - # my $wronskian = + # my $wronskian = # $a11*($a22*$a33-$a32*$a23) - # $a12*($a21*$a33-$a31*$a23) + # $a13*($a21*$a32-$a31*$a22); - # Value->Error("Your functions are not linearly independent or your answer is not complete") + # Value->Error("Your functions are not linearly independent or your answer is not complete") # if ($wronskian==Real(0)); - Value->Error("Your functions are not linearly independent or your answer is not complete") + Value->Error("Your functions are not linearly independent or your answer is not complete") if (($a11*($a22*$a33-$a32*$a23)+$a13*($a21*$a32-$a31*$a22)) == ($a12*($a21*$a33-$a31*$a23))); diff --git a/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/03-Linear-higher-order/Lebl-2-3-02.pg b/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/03-Linear-higher-order/Lebl-2-3-02.pg index 246939d724..bb4dd9ffc2 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/03-Linear-higher-order/Lebl-2-3-02.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/03-Linear-higher-order/Lebl-2-3-02.pg @@ -22,12 +22,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserAssignment.pl", "PGcourse.pl" ); @@ -74,16 +74,16 @@ $answer = Compute("y = c1 + c2 x + c3 e^($a x) + c4 e^($b x)"); Context()->texStrings; BEGIN_TEXT Find the general solution to \( $diffeq \). -In your answer, use \( c_1, c_2, c_3 \) and \( c_4 \) to -denote arbitrary constants and \( x \) +In your answer, use \( c_1, c_2, c_3 \) and \( c_4 \) to +denote arbitrary constants and \( x \) the independent variable. Enter -\( c_1 \) as ${BTT}c1${ETT}, -\( c_2 \) as ${BTT}c2${ETT}, +\( c_1 \) as ${BTT}c1${ETT}, +\( c_2 \) as ${BTT}c2${ETT}, etc. $BR $BR \{ ans_rule(50) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} END_TEXT Context()->normalStrings; @@ -93,7 +93,7 @@ Context()->normalStrings; $showPartialCorrectAnswers = 1; -ANS( $answer->cmp( # tolType=>'absolute', tolerance=>0.001, +ANS( $answer->cmp( # tolType=>'absolute', tolerance=>0.001, checker => sub { my ( $correct, $student, $answerHash ) = @_; @@ -102,10 +102,10 @@ ANS( $answer->cmp( # tolType=>'absolute', tolerance=>0.001, ################################# # Check for arbitrary constants # - Value->Error("Is your answer the most general solution?") - if ( - Formula($stu->D('c1'))==Formula(0) || - Formula($stu->D('c2'))==Formula(0) || + Value->Error("Is your answer the most general solution?") + if ( + Formula($stu->D('c1'))==Formula(0) || + Formula($stu->D('c2'))==Formula(0) || Formula($stu->D('c3'))==Formula(0) || Formula($stu->D('c4'))==Formula(0) ); @@ -120,7 +120,7 @@ ANS( $answer->cmp( # tolType=>'absolute', tolerance=>0.001, my $a12 = $stu->eval('c1'=>0,'c2'=>1,'c3'=>0,'c4'=>0,x=>$x,y=>0); my $a13 = $stu->eval('c1'=>0,'c2'=>0,'c3'=>1,'c4'=>0,x=>$x,y=>0); my $a14 = $stu->eval('c1'=>0,'c2'=>0,'c3'=>0,'c4'=>1,x=>$x,y=>0); - + my $a21 = $stu->D('x')->eval('c1'=>1,'c2'=>0,'c3'=>0,'c4'=>0,x=>$x,y=>0); my $a22 = $stu->D('x')->eval('c1'=>0,'c2'=>1,'c3'=>0,'c4'=>0,x=>$x,y=>0); my $a23 = $stu->D('x')->eval('c1'=>0,'c2'=>0,'c3'=>1,'c4'=>0,x=>$x,y=>0); @@ -136,7 +136,7 @@ ANS( $answer->cmp( # tolType=>'absolute', tolerance=>0.001, my $a43 = $stu->D('x','x','x')->eval('c1'=>0,'c2'=>0,'c3'=>1,'c4'=>0,x=>$x,y=>0); my $a44 = $stu->D('x','x','x')->eval('c1'=>0,'c2'=>0,'c3'=>0,'c4'=>1,x=>$x,y=>0); - # my $wronskian = + # my $wronskian = # $a11 * ( $a22*($a33*$a44-$a43*$a34) - # $a23*($a32*$a44-$a42*$a34) + # $a24*($a32*$a43-$a42*$a33) ) @@ -148,15 +148,15 @@ ANS( $answer->cmp( # tolType=>'absolute', tolerance=>0.001, # +$a13 * ( $a21*($a32*$a44-$a42*$a34) - # $a22*($a31*$a44-$a41*$a34) + # $a24*($a31*$a42-$a41*$a32) ) - # + # # -$a14 * ( $a21*($a32*$a43-$a42*$a33) - # $a22*($a31*$a43-$a41*$a33) + # $a23*($a31*$a42-$a41*$a32) ); - # Value->Error("Your functions are not linearly independent or your answer is not complete") + # Value->Error("Your functions are not linearly independent or your answer is not complete") # if ($wronskian==Real(0)); - my $w1 = + my $w1 = $a11 * ( $a22*($a33*$a44-$a43*$a34) - $a23*($a32*$a44-$a42*$a34) + $a24*($a32*$a43-$a42*$a33) ) @@ -164,7 +164,7 @@ ANS( $answer->cmp( # tolType=>'absolute', tolerance=>0.001, $a22*($a31*$a44-$a41*$a34) + $a24*($a31*$a42-$a41*$a32) ); - my $w2 = + my $w2 = $a12 * ( $a21*($a33*$a44-$a43*$a34) - $a23*($a31*$a44-$a41*$a34) + $a24*($a31*$a43-$a41*$a33) ) @@ -172,7 +172,7 @@ ANS( $answer->cmp( # tolType=>'absolute', tolerance=>0.001, $a22*($a31*$a43-$a41*$a33) + $a23*($a31*$a42-$a41*$a32) ); - Value->Error("Your functions are not linearly independent or your answer is not complete") + Value->Error("Your functions are not linearly independent or your answer is not complete") if ($w1 == $w2); diff --git a/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/03-Linear-higher-order/Lebl-2-3-03.pg b/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/03-Linear-higher-order/Lebl-2-3-03.pg index 663e421306..4c934e8982 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/03-Linear-higher-order/Lebl-2-3-03.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/03-Linear-higher-order/Lebl-2-3-03.pg @@ -22,12 +22,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserAssignment.pl", "PGcourse.pl" ); @@ -77,13 +77,13 @@ $answer = Compute("y = c1 + c2 e^(-$a x) cos($b x) + c3 e^(-$a x) sin($b x)"); Context()->texStrings; BEGIN_TEXT Find the general solution to \( $diffeq \). -In your answer, use \( c_1, c_2 \) and \( c_3 \) to -denote arbitrary constants and \( x \) +In your answer, use \( c_1, c_2 \) and \( c_3 \) to +denote arbitrary constants and \( x \) the independent variable. $BR $BR \{ ans_rule(50) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} END_TEXT Context()->normalStrings; @@ -101,11 +101,11 @@ ANS( $answer->cmp( bypass_equivalence_test => 1, checker => sub { ################################# # Check for arbitrary constants # - Value->Error("Is your answer the most general solution?") - if ( - Formula($stu->D('c1'))==Formula(0) || - Formula($stu->D('c2'))==Formula(0) || - Formula($stu->D('c3'))==Formula(0) + Value->Error("Is your answer the most general solution?") + if ( + Formula($stu->D('c1'))==Formula(0) || + Formula($stu->D('c2'))==Formula(0) || + Formula($stu->D('c3'))==Formula(0) ); @@ -126,15 +126,15 @@ ANS( $answer->cmp( bypass_equivalence_test => 1, checker => sub { my $a32 = $stu->D('x','x')->eval('c1'=>0,'c2'=>1,'c3'=>0,x=>$x,y=>0); my $a33 = $stu->D('x','x')->eval('c1'=>0,'c2'=>0,'c3'=>1,x=>$x,y=>0); - # my $wronskian = + # my $wronskian = # $a11*($a22*$a33-$a32*$a23) - # $a12*($a21*$a33-$a31*$a23) + # $a13*($a21*$a32-$a31*$a22); - # Value->Error("Your functions are not linearly independent or your answer is not complete") + # Value->Error("Your functions are not linearly independent or your answer is not complete") # if ($wronskian==Real(0)); - Value->Error("Your functions are not linearly independent or your answer is not complete") + Value->Error("Your functions are not linearly independent or your answer is not complete") if ( $a11*($a22*$a33-$a32*$a23) + $a13*($a21*$a32-$a31*$a22) ) == ($a12*($a21*$a33-$a31*$a23)); @@ -150,7 +150,7 @@ ANS( $answer->cmp( bypass_equivalence_test => 1, checker => sub { # my $stuDE = Formula($stu3 + $c2*$stu2 + $c1*$stu1) # ->with(test_points=>[[1,1,2,0.1,0],[2,1,1,0,0],[1,2,-1,-0.1,0],[-2,1,1,0,1]]); # return ($stuDE==Formula(0)); - + })); diff --git a/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/03-Linear-higher-order/Lebl-2-3-04.pg b/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/03-Linear-higher-order/Lebl-2-3-04.pg index 60971ae561..78422b1f98 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/03-Linear-higher-order/Lebl-2-3-04.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/03-Linear-higher-order/Lebl-2-3-04.pg @@ -22,12 +22,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserAssignment.pl", "parserImplicitEquation.pl", "PGcourse.pl" @@ -64,19 +64,19 @@ $diffeq = ImplicitEquation("y'''' - $c3 y''' + $c2 y'' - $c1 y' + $c0 y = 0"); Context()->texStrings; BEGIN_TEXT -Suppose that the characteristic equation for a +Suppose that the characteristic equation for a differential equation is \( $charpoly = 0\). $BR $BR (a) Find such a differential equation, assuming it is homogeneous and has constant coefficients. -Enter your answer using -\( y, y^{\,\prime}, y^{\,\prime\prime}, +Enter your answer using +\( y, y^{\,\prime}, y^{\,\prime\prime}, y^{\,\prime\prime\prime}, y^{\,\prime\prime\prime\prime} \) for the dependent variable and its derivatives. $BR \{ ans_rule(40) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} $BR $BR END_TEXT @@ -123,17 +123,17 @@ $answer = Compute("y = (c1 + c2 x) e^($a x) + (c3 + c4 x) e^($b x)"); # Main text 2 Context()->texStrings; BEGIN_TEXT -(b) Find the general solution to this -differential equation. -In your answer, use \( c_1, c_2, c_3 \) and \( c_4 \) to -denote arbitrary constants, use \( y \) for the +(b) Find the general solution to this +differential equation. +In your answer, use \( c_1, c_2, c_3 \) and \( c_4 \) to +denote arbitrary constants, use \( y \) for the dependent variable, and use \( x \) for -the independent variable. Enter -\( c_1 \) as ${BTT}c1${ETT}, +the independent variable. Enter +\( c_1 \) as ${BTT}c1${ETT}, \( c_2 \) as ${BTT}c2${ETT}, etc. $BR \{ ans_rule(40) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} END_TEXT Context()->normalStrings; @@ -141,7 +141,7 @@ Context()->normalStrings; ###################### # Answer evaluation 2 -ANS( $answer->cmp( #tolType=>'absolute', tolerance=>0.1, +ANS( $answer->cmp( #tolType=>'absolute', tolerance=>0.1, checker => sub { my ( $correct, $student, $answerHash ) = @_; @@ -150,10 +150,10 @@ ANS( $answer->cmp( #tolType=>'absolute', tolerance=>0.1, ################################# # Check for arbitrary constants # - Value->Error("Is your answer the most general solution?") - if ( - Formula($stu->D('c1'))==Formula(0) || - Formula($stu->D('c2'))==Formula(0) || + Value->Error("Is your answer the most general solution?") + if ( + Formula($stu->D('c1'))==Formula(0) || + Formula($stu->D('c2'))==Formula(0) || Formula($stu->D('c3'))==Formula(0) || Formula($stu->D('c4'))==Formula(0) ); @@ -168,7 +168,7 @@ ANS( $answer->cmp( #tolType=>'absolute', tolerance=>0.1, my $a12 = $stu->eval('c1'=>0,'c2'=>1,'c3'=>0,'c4'=>0,x=>$x,y=>0); my $a13 = $stu->eval('c1'=>0,'c2'=>0,'c3'=>1,'c4'=>0,x=>$x,y=>0); my $a14 = $stu->eval('c1'=>0,'c2'=>0,'c3'=>0,'c4'=>1,x=>$x,y=>0); - + my $a21 = $stu->D('x')->eval('c1'=>1,'c2'=>0,'c3'=>0,'c4'=>0,x=>$x,y=>0); my $a22 = $stu->D('x')->eval('c1'=>0,'c2'=>1,'c3'=>0,'c4'=>0,x=>$x,y=>0); my $a23 = $stu->D('x')->eval('c1'=>0,'c2'=>0,'c3'=>1,'c4'=>0,x=>$x,y=>0); @@ -184,7 +184,7 @@ ANS( $answer->cmp( #tolType=>'absolute', tolerance=>0.1, my $a43 = $stu->D('x','x','x')->eval('c1'=>0,'c2'=>0,'c3'=>1,'c4'=>0,x=>$x,y=>0); my $a44 = $stu->D('x','x','x')->eval('c1'=>0,'c2'=>0,'c3'=>0,'c4'=>1,x=>$x,y=>0); - # my $wronskian = + # my $wronskian = # $a11 * ( $a22*($a33*$a44-$a43*$a34) - # $a23*($a32*$a44-$a42*$a34) + # $a24*($a32*$a43-$a42*$a33) ) @@ -201,11 +201,11 @@ ANS( $answer->cmp( #tolType=>'absolute', tolerance=>0.1, # $a22*($a31*$a43-$a41*$a33) + # $a23*($a31*$a42-$a41*$a32) ); - # Value->Error("Your functions are not linearly independent or your answer is not complete") + # Value->Error("Your functions are not linearly independent or your answer is not complete") # if ($wronskian==Real(0)); - my $w1 = + my $w1 = $a11 * ( $a22*($a33*$a44-$a43*$a34) - $a23*($a32*$a44-$a42*$a34) + $a24*($a32*$a43-$a42*$a33) ) @@ -213,7 +213,7 @@ ANS( $answer->cmp( #tolType=>'absolute', tolerance=>0.1, $a22*($a31*$a44-$a41*$a34) + $a24*($a31*$a42-$a41*$a32) ); - my $w2 = + my $w2 = $a12 * ( $a21*($a33*$a44-$a43*$a34) - $a23*($a31*$a44-$a41*$a34) + $a24*($a31*$a43-$a41*$a33) ) @@ -221,7 +221,7 @@ ANS( $answer->cmp( #tolType=>'absolute', tolerance=>0.1, $a22*($a31*$a43-$a41*$a33) + $a23*($a31*$a42-$a41*$a32) ); - Value->Error("Your functions are not linearly independent or your answer is not complete") + Value->Error("Your functions are not linearly independent or your answer is not complete") if ($w1 == $w2); ######################################################## diff --git a/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/03-Linear-higher-order/Lebl-2-3-05.pg b/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/03-Linear-higher-order/Lebl-2-3-05.pg index f367ec0ce2..08e7811806 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/03-Linear-higher-order/Lebl-2-3-05.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/03-Linear-higher-order/Lebl-2-3-05.pg @@ -22,12 +22,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "alignedChoice.pl", "PGcourse.pl" ); @@ -48,7 +48,7 @@ Context("Numeric"); if (random(0,1,1)==0) { $term = Formula("$b e^($a x) x cos(x)"); } else { - $term = Formula("$b e^($a x) x sin(x)"); + $term = Formula("$b e^($a x) x sin(x)"); } $y0 = $term->eval(x=>0); @@ -73,7 +73,7 @@ Context()->normalStrings; Context()->texStrings; BEGIN_TEXT -Suppose that a fourth order differential equation +Suppose that a fourth order differential equation has a solution \( y = $term \). Find the initial conditions that this solution satisfies. $BR diff --git a/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/03-Linear-higher-order/Lebl-2-3-06.pg b/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/03-Linear-higher-order/Lebl-2-3-06.pg index b8f81a0e93..82de9d0547 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/03-Linear-higher-order/Lebl-2-3-06.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/03-Linear-higher-order/Lebl-2-3-06.pg @@ -22,12 +22,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserAssignment.pl", "parserImplicitEquation.pl", "PGcourse.pl" @@ -71,7 +71,7 @@ $diffeq = ImplicitEquation("y'''' - $c3 y''' + $c2 y'' - $c1 y' + $c0 y = 0"); Context()->texStrings; BEGIN_TEXT -Suppose that a fourth order differential equation +Suppose that a fourth order differential equation has a solution \( y = $term \). $BR $BR @@ -79,7 +79,7 @@ $BR it is homogeneous and has constant coefficients. $BR \{ ans_rule(40) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} $BR $BR END_TEXT @@ -122,16 +122,16 @@ $answer = Compute("y = (c1 + c2 x) e^($a x) sin(x) + (c3 + c4 x) e^($a x) cos(x) # Main text 2 Context()->texStrings; BEGIN_TEXT -(b) Find the general solution to this -differential equation. -In your answer, use \( c_1, c_2, c_3 \) and \( c_4 \) to -denote arbitrary constants and \( x \) +(b) Find the general solution to this +differential equation. +In your answer, use \( c_1, c_2, c_3 \) and \( c_4 \) to +denote arbitrary constants and \( x \) the independent variable. Enter -\( c_1 \) as ${BTT}c1${ETT}, +\( c_1 \) as ${BTT}c1${ETT}, \( c_2 \) as ${BTT}c2${ETT}, etc. $BR \{ ans_rule(60) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} END_TEXT Context()->normalStrings; @@ -139,7 +139,7 @@ Context()->normalStrings; ###################### # Answer evaluation 2 -ANS( $answer->cmp( # tolType=>'absolute', tolerance=>0.001, +ANS( $answer->cmp( # tolType=>'absolute', tolerance=>0.001, checker => sub { my ( $correct, $student, $answerHash ) = @_; @@ -148,10 +148,10 @@ ANS( $answer->cmp( # tolType=>'absolute', tolerance=>0.001, ################################# # Check for arbitrary constants # - Value->Error("Is your answer the most general solution?") - if ( - Formula($stu->D('c1'))==Formula(0) || - Formula($stu->D('c2'))==Formula(0) || + Value->Error("Is your answer the most general solution?") + if ( + Formula($stu->D('c1'))==Formula(0) || + Formula($stu->D('c2'))==Formula(0) || Formula($stu->D('c3'))==Formula(0) || Formula($stu->D('c4'))==Formula(0) ); @@ -166,7 +166,7 @@ ANS( $answer->cmp( # tolType=>'absolute', tolerance=>0.001, my $a12 = $stu->eval('c1'=>0,'c2'=>1,'c3'=>0,'c4'=>0,x=>$x,y=>0); my $a13 = $stu->eval('c1'=>0,'c2'=>0,'c3'=>1,'c4'=>0,x=>$x,y=>0); my $a14 = $stu->eval('c1'=>0,'c2'=>0,'c3'=>0,'c4'=>1,x=>$x,y=>0); - + my $a21 = $stu->D('x')->eval('c1'=>1,'c2'=>0,'c3'=>0,'c4'=>0,x=>$x,y=>0); my $a22 = $stu->D('x')->eval('c1'=>0,'c2'=>1,'c3'=>0,'c4'=>0,x=>$x,y=>0); my $a23 = $stu->D('x')->eval('c1'=>0,'c2'=>0,'c3'=>1,'c4'=>0,x=>$x,y=>0); @@ -182,7 +182,7 @@ ANS( $answer->cmp( # tolType=>'absolute', tolerance=>0.001, my $a43 = $stu->D('x','x','x')->eval('c1'=>0,'c2'=>0,'c3'=>1,'c4'=>0,x=>$x,y=>0); my $a44 = $stu->D('x','x','x')->eval('c1'=>0,'c2'=>0,'c3'=>0,'c4'=>1,x=>$x,y=>0); - # my $wronskian = + # my $wronskian = # $a11 * ( $a22*($a33*$a44-$a43*$a34) - # $a23*($a32*$a44-$a42*$a34) + # $a24*($a32*$a43-$a42*$a33) ) @@ -199,10 +199,10 @@ ANS( $answer->cmp( # tolType=>'absolute', tolerance=>0.001, # $a22*($a31*$a43-$a41*$a33) + # $a23*($a31*$a42-$a41*$a32) ); - # Value->Error("Your functions are not linearly independent or your answer is not complete") + # Value->Error("Your functions are not linearly independent or your answer is not complete") # if ($wronskian==Real(0)); - my $w1 = + my $w1 = $a11 * ( $a22*($a33*$a44-$a43*$a34) - $a23*($a32*$a44-$a42*$a34) + $a24*($a32*$a43-$a42*$a33) ) @@ -210,7 +210,7 @@ ANS( $answer->cmp( # tolType=>'absolute', tolerance=>0.001, $a22*($a31*$a44-$a41*$a34) + $a24*($a31*$a42-$a41*$a32) ); - my $w2 = + my $w2 = $a12 * ( $a21*($a33*$a44-$a43*$a34) - $a23*($a31*$a44-$a41*$a34) + $a24*($a31*$a43-$a41*$a33) ) @@ -218,7 +218,7 @@ ANS( $answer->cmp( # tolType=>'absolute', tolerance=>0.001, $a22*($a31*$a43-$a41*$a33) + $a23*($a31*$a42-$a41*$a32) ); - Value->Error("Your functions are not linearly independent or your answer is not complete") + Value->Error("Your functions are not linearly independent or your answer is not complete") if ($w1 == $w2); diff --git a/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/04-Mechanical-vibrations/Lebl-2-4-03.pg b/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/04-Mechanical-vibrations/Lebl-2-4-03.pg index bf5e5da3d5..6874b7d997 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/04-Mechanical-vibrations/Lebl-2-4-03.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/04-Mechanical-vibrations/Lebl-2-4-03.pg @@ -23,12 +23,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserAssignment.pl", "parserImplicitEquation.pl", "unionLists.pl", @@ -64,24 +64,24 @@ $diffeq = ImplicitEquation("$m x'' + $c x' + $k x = 0"); Context()->texStrings; BEGIN_TEXT Suppose a spring with spring constant \( $k \ \mathrm{N/m} \) -is horizontal and has one end attached to a wall and the -other end attached to a \( $m \ \mathrm{kg} \) mass. Suppose -that the friction of the mass with the floor (i.e., the -damping constant) is -\( $c \ \mathrm{N \cdot s / m} \). +is horizontal and has one end attached to a wall and the +other end attached to a \( $m \ \mathrm{kg} \) mass. Suppose +that the friction of the mass with the floor (i.e., the +damping constant) is +\( $c \ \mathrm{N \cdot s / m} \). \{ BeginList('OL',type=>'a') \} -$ITEM Set up a differential equation that describes this +$ITEM Set up a differential equation that describes this system. Let \( x \) to denote the displacement, in meters, of the mass from its equilibrium position, and give your answer -in terms of \( x, x^{\,\prime}, x^{\,\prime\prime} \). -Assume that positive displacement +in terms of \( x, x^{\,\prime}, x^{\,\prime\prime} \). +Assume that positive displacement means the mass is farther from the wall than when the system is at equilibrium. $BR \{ ans_rule(30) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} END_TEXT Context()->normalStrings; @@ -115,26 +115,26 @@ $pop = PopUp(["?","over damped","critically damped","under damped"],"critically Context()->texStrings; BEGIN_TEXT $ITEMSEP -$ITEM Find the general solution to your -differential equation from the previous part. +$ITEM Find the general solution to your +differential equation from the previous part. Use \( c_1 \) and \( c_2 \) to denote arbitrary -constants. Use \( t \) for independent variable +constants. Use \( t \) for independent variable to represent the time elapsed in seconds. Enter \( c_1 \) as ${BTT}c1${ETT} and \( c_2 \) as ${BTT}c2${ETT}. $BR \{ ans_rule(40) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} $ITEMSEP -$ITEM Is this system under damped, over damped, -or critically damped? -\{ $pop->menu() \} Enter a value for the +$ITEM Is this system under damped, over damped, +or critically damped? +\{ $pop->menu() \} Enter a value for the damping constant that would make the system critically damped. $BR \{ ans_rule(10) \} \( \mathrm{N \cdot s / m} \) -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} \{ EndList('OL') \} @@ -150,10 +150,10 @@ ANS( $answer->cmp( # tolerance=>0.1, tolType=>'absolute', ################################# # Check for arbitrary constants # - Value->Error("Is your answer the most general solution?") - if ( - Formula($stu->D('c1'))==Formula(0) || - Formula($stu->D('c2'))==Formula(0) + Value->Error("Is your answer the most general solution?") + if ( + Formula($stu->D('c1'))==Formula(0) || + Formula($stu->D('c2'))==Formula(0) ); @@ -168,11 +168,11 @@ ANS( $answer->cmp( # tolerance=>0.1, tolType=>'absolute', my $a21 = $stu->D('t')->eval('c1'=>1,'c2'=>0,t=>$t,x=>0); my $a22 = $stu->D('t')->eval('c1'=>0,'c2'=>1,t=>$t,x=>0); - # my $wronskian = $a11*$a22 - $a21*$a12; - # Value->Error("Your functions are not linearly independent or your answer is not complete") + # my $wronskian = $a11*$a22 - $a21*$a12; + # Value->Error("Your functions are not linearly independent or your answer is not complete") # if ($wronskian==Real(0)); - Value->Error("Your functions are not linearly independent or your answer is not complete") + Value->Error("Your functions are not linearly independent or your answer is not complete") if ($a11 * $a22 == $a21 * $a12); diff --git a/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/04-Mechanical-vibrations/Lebl-2-4-04.pg b/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/04-Mechanical-vibrations/Lebl-2-4-04.pg index 174e1671dd..e5c4f94653 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/04-Mechanical-vibrations/Lebl-2-4-04.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/04-Mechanical-vibrations/Lebl-2-4-04.pg @@ -22,12 +22,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserNumberWithUnits.pl", "PGcourse.pl" ); @@ -50,19 +50,19 @@ $m = NumberWithUnits("$k / ( 4 pi^2 $f^2)","kg"); Context()->texStrings; BEGIN_TEXT Suppose a spring with spring constant -\( $k \ \mathrm{N/m} \) is horizontal -and has one end attached to a wall and +\( $k \ \mathrm{N/m} \) is horizontal +and has one end attached to a wall and the other end attached to a mass. You -want to use the spring to weigh items. -You put the spring into motion and -find the frequency to be \( $f \ -\mathrm{Hz} \) (cycles per second). +want to use the spring to weigh items. +You put the spring into motion and +find the frequency to be \( $f \ +\mathrm{Hz} \) (cycles per second). What is the mass? Assume there is no friction. $BR $BR Mass = \{ ans_rule(20) \} -\{ AnswerFormatHelp("units") \} +\{ helpLink("units") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/04-Mechanical-vibrations/trig-identity.pg b/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/04-Mechanical-vibrations/trig-identity.pg index 7448680280..9d7b5bee65 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/04-Mechanical-vibrations/trig-identity.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/04-Mechanical-vibrations/trig-identity.pg @@ -17,12 +17,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -34,14 +34,14 @@ TEXT(beginproblem()); Context("Numeric")->variables->are(t=>"Real"); Context()->reduction->set( '(-x)-y'=>0, # turn off the reduction rule (-x)-y = -(x+y) -'(-x)+y'=>0, # turn off the reduction rule (-x)+y = y-x -); +'(-x)+y'=>0, # turn off the reduction rule (-x)+y = y-x +); # redefine sine to prevent students from entering exactly # what they were given Context()->functions->remove("sin"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub sin { @@ -51,7 +51,7 @@ sub sin { package main; # Make it work on formulas as well as numbers # if uncommented, this next line will generate error messages -#sub sin {Parser::Function->call('sin',@_)} +#sub sin {Parser::Function->call('sin',@_)} # Add the new functions to the Context Context()->functions->add( sin => {class => 'NewFunc', TeX => '\sin'}, ); @@ -78,42 +78,42 @@ $answer3 = Formula("sqrt($CC) e^(-$p t) cos($omega0 t - $gamma1)")->reduce; Context()->texStrings; BEGIN_TEXT -(a) Using a trig identity, write \( x(t) = $x1 \) +(a) Using a trig identity, write \( x(t) = $x1 \) using only one cosine function. $BR $BR \( x(t) = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR -(b) Using a trig identity, write \( x(t) = $x2 \) +(b) Using a trig identity, write \( x(t) = $x2 \) using only one cosine function. $BR $BR \( x(t) = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR -(c) Using a trig identity, write \( x(t) = $x3 \) +(c) Using a trig identity, write \( x(t) = $x3 \) using only one cosine function in your answer. $BR $BR \( x(t) = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; $showHint = 3; BEGIN_HINT -Use the trigonometric identity +Use the trigonometric identity \[ -A \cos( \omega t ) + B \sin( \omega t ) +A \cos( \omega t ) + B \sin( \omega t ) = C \cos( \omega t - \gamma ) \] -where \( C = \sqrt{A^2+B^2} \), -\( \sin( \gamma ) = \frac{B}{C} \) and -\( \cos( \gamma ) = \frac{A}{C} \). +where \( C = \sqrt{A^2+B^2} \), +\( \sin( \gamma ) = \frac{B}{C} \) and +\( \cos( \gamma ) = \frac{A}{C} \). END_HINT ########################## diff --git a/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/05-Nonhomogeneous/KJ-3-7-20.pg b/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/05-Nonhomogeneous/KJ-3-7-20.pg index bf7d1cc3aa..60d7af5c0f 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/05-Nonhomogeneous/KJ-3-7-20.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/05-Nonhomogeneous/KJ-3-7-20.pg @@ -22,12 +22,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserAssignment.pl", "unionLists.pl", "PGcourse.pl" @@ -58,9 +58,9 @@ is a particular solution to the differential equation \( y^{\,\prime\prime} + $c y = g(t) \). Find \( g(t) \). $BR $BR -\( g(t) = \) +\( g(t) = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/05-Nonhomogeneous/KJ-3-8-14.pg b/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/05-Nonhomogeneous/KJ-3-8-14.pg index a69f2b07e6..e59055c94e 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/05-Nonhomogeneous/KJ-3-8-14.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/05-Nonhomogeneous/KJ-3-8-14.pg @@ -24,12 +24,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserAssignment.pl", "unionLists.pl", "PGcourse.pl" @@ -67,13 +67,13 @@ Context()->texStrings; BEGIN_TEXT \{ BeginList('OL',type=>'a') \} -$ITEM Find a particular solution to the +$ITEM Find a particular solution to the nonhomogeneous differential equation \( $diffeq \). $BR $BR -\( y_p = \) +\( y_p = \) \{ ans_rule(60) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; @@ -106,28 +106,28 @@ Context()->texStrings; BEGIN_TEXT $ITEMSEP -$ITEM Find the most general solution to the -associated homogeneous differential equation. -Use \( c_1 \) and \( c_2 \) in your answer to denote +$ITEM Find the most general solution to the +associated homogeneous differential equation. +Use \( c_1 \) and \( c_2 \) in your answer to denote arbitrary constants, and enter them as ${BTT}c1${ETT} and ${BTT}c2${ETT}. $BR $BR \( y_h = \) \{ ans_rule(60) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $ITEMSEP -$ITEM Find the most general solution to the -original nonhomogeneous differential equation. -Use \( c_1 \) and \( c_2 \) in your answer to denote +$ITEM Find the most general solution to the +original nonhomogeneous differential equation. +Use \( c_1 \) and \( c_2 \) in your answer to denote arbitrary constants. $BR $BR \( y = \) \{ ans_rule(60) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} \{ EndList('OL') \} END_TEXT @@ -138,7 +138,7 @@ Context()->normalStrings; # Answer evaluation -ANS( $yhomogeneous->cmp( +ANS( $yhomogeneous->cmp( checker => sub { my ( $correct, $student, $answerHash ) = @_; my $stu = Formula($student); @@ -146,10 +146,10 @@ ANS( $yhomogeneous->cmp( ################################ # Check for arbitrary constants # - Value->Error("Is your answer the most general solution?") - if ( - Formula($stu->D('c1'))==Formula(0) || - Formula($stu->D('c2'))==Formula(0) + Value->Error("Is your answer the most general solution?") + if ( + Formula($stu->D('c1'))==Formula(0) || + Formula($stu->D('c2'))==Formula(0) ); ############################################ @@ -159,15 +159,15 @@ ANS( $yhomogeneous->cmp( my $a11 = $stu->eval('c1'=>1,'c2'=>0,x=>$x,y=>0); my $a12 = $stu->eval('c1'=>0,'c2'=>1,x=>$x,y=>0); - + my $a21 = $stu->D('x')->eval('c1'=>1,'c2'=>0,x=>$x,y=>0); my $a22 = $stu->D('x')->eval('c1'=>0,'c2'=>1,x=>$x,y=>0); # my $wronskian = $a11*$a22 - $a21*$a12; - # Value->Error("Your functions are not linearly independent or your answer is not complete") + # Value->Error("Your functions are not linearly independent or your answer is not complete") # if ($wronskian==Real(0)); - Value->Error("Your functions are not linearly independent or your answer is not complete") + Value->Error("Your functions are not linearly independent or your answer is not complete") if ($a11 * $a22 == $a21 * $a12); ######################################################## @@ -175,7 +175,7 @@ ANS( $yhomogeneous->cmp( # my $stu1 = Formula($stu->D('x')); my $stu2 = Formula($stu->D('x','x')); - return ($stu2 + 5 * $stu) == -4 * $stu1; + return ($stu2 + 5 * $stu) == -4 * $stu1; })); @@ -187,10 +187,10 @@ ANS( $ygeneral->cmp( checker => sub { ################################ # Check for arbitrary constants # - Value->Error("Is your answer the most general solution?") - if ( - Formula($stu->D('c1'))==Formula(0) || - Formula($stu->D('c2'))==Formula(0) + Value->Error("Is your answer the most general solution?") + if ( + Formula($stu->D('c1'))==Formula(0) || + Formula($stu->D('c2'))==Formula(0) ); ############################################ @@ -200,15 +200,15 @@ ANS( $ygeneral->cmp( checker => sub { my $a11 = $stu->eval('c1'=>1,'c2'=>0,x=>$x,y=>0); my $a12 = $stu->eval('c1'=>0,'c2'=>1,x=>$x,y=>0); - + my $a21 = $stu->D('x')->eval('c1'=>1,'c2'=>0,x=>$x,y=>0); my $a22 = $stu->D('x')->eval('c1'=>0,'c2'=>1,x=>$x,y=>0); # my $wronskian = $a11*$a22 - $a21*$a12; - # Value->Error("Your functions are not linearly independent or your answer is not complete") + # Value->Error("Your functions are not linearly independent or your answer is not complete") # if ($wronskian==Real(0)); - Value->Error("Your functions are not linearly independent or your answer is not complete") + Value->Error("Your functions are not linearly independent or your answer is not complete") if ($a11 * $a22 == $a21 * $a12); ######################################################## @@ -216,7 +216,7 @@ ANS( $ygeneral->cmp( checker => sub { # my $stu1 = Formula($stu->D('x')); my $stu2 = Formula($stu->D('x','x')); - return ($stu2 + 4 * $stu1 + 5 * $stu) == Formula("$B5 x + $C2 e^(-x)"); + return ($stu2 + 4 * $stu1 + 5 * $stu) == Formula("$B5 x + $C2 e^(-x)"); })); diff --git a/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/05-Nonhomogeneous/KJ-3-8-28.pg b/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/05-Nonhomogeneous/KJ-3-8-28.pg index eb28572bbf..aa0ea5c240 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/05-Nonhomogeneous/KJ-3-8-28.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/05-Nonhomogeneous/KJ-3-8-28.pg @@ -22,12 +22,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -47,20 +47,20 @@ $beta = Real("0"); Context()->texStrings; BEGIN_TEXT -Consider the differential equation +Consider the differential equation $PAR -\[ -y^{\,\prime\prime} + \alpha y^{\,\prime} + \beta y -= -t + e^{$k t}. -\] +\[ +y^{\,\prime\prime} + \alpha y^{\,\prime} + \beta y += +t + e^{$k t}. +\] $BR -Suppose the form of the particular solution to this +Suppose the form of the particular solution to this differential equation as prescribed -by the method of undetermined coefficients is +by the method of undetermined coefficients is $PAR \[ -y_p(t) +y_p(t) = A_1 t^2 + A_0 t + B_0 t e^{$k t}. \] @@ -69,10 +69,10 @@ Determine the constants \( \alpha \) and \( \beta \). $BR $BR \( \alpha = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR \( \beta = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/05-Nonhomogeneous/KJ-3-8-31.pg b/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/05-Nonhomogeneous/KJ-3-8-31.pg index 64fc7748bd..6637539d7e 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/05-Nonhomogeneous/KJ-3-8-31.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/05-Nonhomogeneous/KJ-3-8-31.pg @@ -24,12 +24,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -53,28 +53,28 @@ Context()->texStrings; BEGIN_TEXT Consider the initial value problem $PAR -\[ +\[ y^{\,\prime\prime} + $kk y = e^{-t}, \ \ \ y(0) = y_0, \ \ \ -y^{\,\prime}(0) = y_0^{\prime}. -\] +y^{\,\prime}(0) = y_0^{\prime}. +\] $BR -Suppose we know that \( y(t) \to 0 \) -as \( t \to \infty \). Determine the +Suppose we know that \( y(t) \to 0 \) +as \( t \to \infty \). Determine the solution and the initial conditions. $BR $BR \( y(t) = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR \( y(0) = \) $SPACE \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR \( y^{\,\prime}(0) = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/05-Nonhomogeneous/KJ-3-8-32.pg b/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/05-Nonhomogeneous/KJ-3-8-32.pg index 29d6c60b1d..345022209b 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/05-Nonhomogeneous/KJ-3-8-32.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/05-Nonhomogeneous/KJ-3-8-32.pg @@ -23,12 +23,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -53,25 +53,25 @@ Context()->texStrings; BEGIN_TEXT Consider the initial value problem $PAR -\[ +\[ y^{\,\prime\prime} - $kk y = e^{-t}, \ \ \ y(0) = 1, \ \ \ -y^{\,\prime}(0) = y_0^{\prime}. -\] +y^{\,\prime}(0) = y_0^{\prime}. +\] $BR -Suppose we know that \( y(t) \to 0 \) -as \( t \to \infty \). Determine the +Suppose we know that \( y(t) \to 0 \) +as \( t \to \infty \). Determine the solution and the unknown initial condition. $BR $BR \( y(t) = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR \( y^{\,\prime}(0) = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/05-Nonhomogeneous/Lebl-2-5-02.pg b/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/05-Nonhomogeneous/Lebl-2-5-02.pg index 5f84c047c1..ba7a23ffc1 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/05-Nonhomogeneous/Lebl-2-5-02.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/05-Nonhomogeneous/Lebl-2-5-02.pg @@ -23,12 +23,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserAssignment.pl", "unionLists.pl", "PGcourse.pl" @@ -71,13 +71,13 @@ Context()->texStrings; BEGIN_TEXT \{ BeginList('OL',type=>'a') \} -$ITEM Find a particular solution to the +$ITEM Find a particular solution to the nonhomogeneous differential equation \( $diffeq \). $BR $BR -\( y_p = \) +\( y_p = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; @@ -109,28 +109,28 @@ Context()->texStrings; BEGIN_TEXT $ITEMSEP -$ITEM Find the most general solution to the -associated homogeneous differential equation. -Use \( c_1 \) and \( c_2 \) in your answer to denote +$ITEM Find the most general solution to the +associated homogeneous differential equation. +Use \( c_1 \) and \( c_2 \) in your answer to denote arbitrary constants, and enter them as ${BTT}c1${ETT} and ${BTT}c2${ETT}. $BR $BR \( y_h = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $ITEMSEP -$ITEM Find the most general solution to the -original nonhomogeneous differential equation. -Use \( c_1 \) and \( c_2 \) in your answer to denote +$ITEM Find the most general solution to the +original nonhomogeneous differential equation. +Use \( c_1 \) and \( c_2 \) in your answer to denote arbitrary constants. $BR $BR \( y = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} \{ EndList('OL') \} END_TEXT @@ -141,7 +141,7 @@ Context()->normalStrings; # Answer evaluation -ANS( $yhomogeneous->cmp( +ANS( $yhomogeneous->cmp( checker => sub { my ( $correct, $student, $answerHash ) = @_; my $stu = Formula($student); @@ -149,10 +149,10 @@ ANS( $yhomogeneous->cmp( ################################ # Check for arbitrary constants # - Value->Error("Is your answer the most general solution?") - if ( - Formula($stu->D('c1'))==Formula(0) || - Formula($stu->D('c2'))==Formula(0) + Value->Error("Is your answer the most general solution?") + if ( + Formula($stu->D('c1'))==Formula(0) || + Formula($stu->D('c2'))==Formula(0) ); ############################################ @@ -162,15 +162,15 @@ ANS( $yhomogeneous->cmp( my $a11 = $stu->eval('c1'=>1,'c2'=>0,x=>$x,y=>0); my $a12 = $stu->eval('c1'=>0,'c2'=>1,x=>$x,y=>0); - + my $a21 = $stu->D('x')->eval('c1'=>1,'c2'=>0,x=>$x,y=>0); my $a22 = $stu->D('x')->eval('c1'=>0,'c2'=>1,x=>$x,y=>0); # my $wronskian = $a11*$a22 - $a21*$a12; - # Value->Error("Your functions are not linearly independent or your answer is not complete") + # Value->Error("Your functions are not linearly independent or your answer is not complete") # if ($wronskian==Real(0)); - Value->Error("Your functions are not linearly independent or your answer is not complete") + Value->Error("Your functions are not linearly independent or your answer is not complete") if ($a11 * $a22 == $a21 * $a12); ######################################################## @@ -178,7 +178,7 @@ ANS( $yhomogeneous->cmp( # my $stu1 = Formula($stu->D('x')); my $stu2 = Formula($stu->D('x','x')); - return ($stu2 + $bma * $stu1) == $ab * $stu; + return ($stu2 + $bma * $stu1) == $ab * $stu; # old answer checker may be unreliable since checking whether something is zero may cause tolerance type errors # my $stuDE = Formula($stuxx+$bma*$stux - $ab*$stu) @@ -186,7 +186,7 @@ ANS( $yhomogeneous->cmp( # return ($stuDE==Formula(0)); # new answer checker: rewrite the equation $stuDE = 0. - # return ($stuxx + $bma * $stux) == $ab * $stu; + # return ($stuxx + $bma * $stux) == $ab * $stu; })); @@ -198,10 +198,10 @@ ANS( $ygeneral->cmp( checker => sub { ################################ # Check for arbitrary constants # - Value->Error("Is your answer the most general solution?") - if ( - Formula($stu->D('c1'))==Formula(0) || - Formula($stu->D('c2'))==Formula(0) + Value->Error("Is your answer the most general solution?") + if ( + Formula($stu->D('c1'))==Formula(0) || + Formula($stu->D('c2'))==Formula(0) ); ############################################ @@ -211,15 +211,15 @@ ANS( $ygeneral->cmp( checker => sub { my $a11 = $stu->eval('c1'=>1,'c2'=>0,x=>$x,y=>0); my $a12 = $stu->eval('c1'=>0,'c2'=>1,x=>$x,y=>0); - + my $a21 = $stu->D('x')->eval('c1'=>1,'c2'=>0,x=>$x,y=>0); my $a22 = $stu->D('x')->eval('c1'=>0,'c2'=>1,x=>$x,y=>0); # my $wronskian = $a11*$a22 - $a21*$a12; - # Value->Error("Your functions are not linearly independent or your answer is not complete") + # Value->Error("Your functions are not linearly independent or your answer is not complete") # if ($wronskian==Real(0)); - Value->Error("Your functions are not linearly independent or your answer is not complete") + Value->Error("Your functions are not linearly independent or your answer is not complete") if ($a11 * $a22 == $a21 * $a12); ######################################################## @@ -232,7 +232,7 @@ ANS( $ygeneral->cmp( checker => sub { # my $stuDE = Formula($stu2+$bma*$stu1 - $ab*$stu) # ->with(test_points=>[[1,1,1,0],[1,1,0,0],[2,1,1,0],[1,2,0,0]]); # return ($stuDE==Formula("e^($k x)")); - + })); diff --git a/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/05-Nonhomogeneous/Lebl-2-5-03.pg b/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/05-Nonhomogeneous/Lebl-2-5-03.pg index 345a3f5969..2acc771f4d 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/05-Nonhomogeneous/Lebl-2-5-03.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/05-Nonhomogeneous/Lebl-2-5-03.pg @@ -22,12 +22,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserAssignment.pl", "unionLists.pl", "PGcourse.pl" @@ -62,13 +62,13 @@ Context()->texStrings; BEGIN_TEXT \{ BeginList('OL',type=>'a') \} -$ITEM Find a particular solution to the +$ITEM Find a particular solution to the nonhomogeneous differential equation \( $diffeq \). $BR $BR -\( y_p = \) +\( y_p = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; @@ -102,28 +102,28 @@ $ygeneral = Compute("1/2 x^2 e^($k x) + (c1 x + c2) e^($k x)"); Context()->texStrings; BEGIN_TEXT $ITEMSEP -$ITEM Find the most general solution to the -associated homogeneous differential equation. -Use \( c_1 \) and \( c_2 \) in your answer to denote -arbitrary constants and enter them as ${BTT}c1${ETT} +$ITEM Find the most general solution to the +associated homogeneous differential equation. +Use \( c_1 \) and \( c_2 \) in your answer to denote +arbitrary constants and enter them as ${BTT}c1${ETT} and ${BTT}c2${ETT}. $BR $BR \( y_h = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $ITEMSEP -$ITEM Find the most general solution to the -original nonhomogeneous differential equation. -Use \( c_1 \) and \( c_2 \) in your answer to denote +$ITEM Find the most general solution to the +original nonhomogeneous differential equation. +Use \( c_1 \) and \( c_2 \) in your answer to denote arbitrary constants. $BR $BR \( y = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} \{ EndList('OL') \} END_TEXT @@ -142,10 +142,10 @@ ANS( $yhomogeneous->cmp( ################################ # Check for arbitrary constants # - Value->Error("Is your answer the most general solution?") - if ( - Formula($stu->D('c1'))==Formula(0) || - Formula($stu->D('c2'))==Formula(0) + Value->Error("Is your answer the most general solution?") + if ( + Formula($stu->D('c1'))==Formula(0) || + Formula($stu->D('c2'))==Formula(0) ); ############################################ @@ -155,15 +155,15 @@ ANS( $yhomogeneous->cmp( my $a11 = $stu->eval('c1'=>1,'c2'=>0,x=>$x,y=>0); my $a12 = $stu->eval('c1'=>0,'c2'=>1,x=>$x,y=>0); - + my $a21 = $stu->D('x')->eval('c1'=>1,'c2'=>0,x=>$x,y=>0); my $a22 = $stu->D('x')->eval('c1'=>0,'c2'=>1,x=>$x,y=>0); # my $wronskian = $a11*$a22 - $a21*$a12; - # Value->Error("Your functions are not linearly independent or your answer is not complete") + # Value->Error("Your functions are not linearly independent or your answer is not complete") # if ($wronskian==Real(0)); - Value->Error("Your functions are not linearly independent or your answer is not complete") + Value->Error("Your functions are not linearly independent or your answer is not complete") if ($a11 * $a22 == $a21 * $a12); @@ -180,7 +180,7 @@ ANS( $yhomogeneous->cmp( # ->with(test_at=>[[1,-1,1,-1],[1,2,3,1],[2,1,1,3],[1,2,4,-1],[2,4,1,-3]]); # return ($stuDE==Formula("0")); - # new code that seems to work very reliably is obtained by simply rewriting + # new code that seems to work very reliably is obtained by simply rewriting # the equation $stuDE = 0, so that both sides of the equation vary. # return $stuxx + $kk * $stu == $k2 * $stux; @@ -197,10 +197,10 @@ ANS( $ygeneral->cmp( checker => sub { ################################ # Check for arbitrary constants # - Value->Error("Is your answer the most general solution?") - if ( - Formula($stu->D('c1'))==Formula(0) || - Formula($stu->D('c2'))==Formula(0) + Value->Error("Is your answer the most general solution?") + if ( + Formula($stu->D('c1'))==Formula(0) || + Formula($stu->D('c2'))==Formula(0) ); ############################################ @@ -210,15 +210,15 @@ ANS( $ygeneral->cmp( checker => sub { my $a11 = $stu->eval('c1'=>1,'c2'=>0,x=>$x,y=>0); my $a12 = $stu->eval('c1'=>0,'c2'=>1,x=>$x,y=>0); - + my $a21 = $stu->D('x')->eval('c1'=>1,'c2'=>0,x=>$x,y=>0); my $a22 = $stu->D('x')->eval('c1'=>0,'c2'=>1,x=>$x,y=>0); # my $wronskian = $a11*$a22 - $a21*$a12; - # Value->Error("Your functions are not linearly independent or your answer is not complete") + # Value->Error("Your functions are not linearly independent or your answer is not complete") # if ($wronskian==Real(0)); - Value->Error("Your functions are not linearly independent or your answer is not complete") + Value->Error("Your functions are not linearly independent or your answer is not complete") if ($a11 * $a22 == $a21 * $a12); diff --git a/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/05-Nonhomogeneous/Lebl-2-5-04.pg b/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/05-Nonhomogeneous/Lebl-2-5-04.pg index 7486cf0a85..370ac46f56 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/05-Nonhomogeneous/Lebl-2-5-04.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/05-Nonhomogeneous/Lebl-2-5-04.pg @@ -23,12 +23,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserAssignment.pl", "unionLists.pl", "PGcourse.pl" @@ -65,13 +65,13 @@ Context()->texStrings; BEGIN_TEXT \{ BeginList('OL',type=>'a') \} -$ITEM Find a particular solution to the +$ITEM Find a particular solution to the nonhomogeneous differential equation \( $diffeq \). $BR $BR -\( y_p = \) +\( y_p = \) \{ ans_rule(60) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; @@ -104,29 +104,29 @@ Context()->texStrings; BEGIN_TEXT $ITEMSEP -$ITEM Find the most general solution to the -associated homogeneous differential equation. -Use \( c_1 \) and \( c_2 \) in your answer to denote -arbitrary constants. Enter +$ITEM Find the most general solution to the +associated homogeneous differential equation. +Use \( c_1 \) and \( c_2 \) in your answer to denote +arbitrary constants. Enter \( c_1 \) as ${BTT}c1${ETT} and \( c_2 \) as ${BTT}c2${ETT}. $BR $BR \( y_h = \) \{ ans_rule(60) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $ITEMSEP -$ITEM Find the solution to the original +$ITEM Find the solution to the original nonhomogeneous differential equation satisfying -the initial conditions \( y(0) = $y0 \) and +the initial conditions \( y(0) = $y0 \) and \( y^{\,\prime}(0) = $yprime0 \). $BR $BR \( y = \) \{ ans_rule(60) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} \{ EndList('OL') \} END_TEXT @@ -138,7 +138,7 @@ Context()->normalStrings; -ANS( $yhomogeneous->cmp( +ANS( $yhomogeneous->cmp( checker => sub { my ( $correct, $student, $answerHash ) = @_; my $stu = Formula($student); @@ -146,10 +146,10 @@ ANS( $yhomogeneous->cmp( ################################ # Check for arbitrary constants # - Value->Error("Is your answer the most general solution?") - if ( - Formula($stu->D('c1'))==Formula(0) || - Formula($stu->D('c2'))==Formula(0) + Value->Error("Is your answer the most general solution?") + if ( + Formula($stu->D('c1'))==Formula(0) || + Formula($stu->D('c2'))==Formula(0) ); ############################################ @@ -159,15 +159,15 @@ ANS( $yhomogeneous->cmp( my $a11 = $stu->eval('c1'=>1,'c2'=>0,x=>$x,y=>0); my $a12 = $stu->eval('c1'=>0,'c2'=>1,x=>$x,y=>0); - + my $a21 = $stu->D('x')->eval('c1'=>1,'c2'=>0,x=>$x,y=>0); my $a22 = $stu->D('x')->eval('c1'=>0,'c2'=>1,x=>$x,y=>0); # my $wronskian = $a11*$a22 - $a21*$a12; - # Value->Error("Your functions are not linearly independent or your answer is not complete") + # Value->Error("Your functions are not linearly independent or your answer is not complete") # if ($wronskian==Real(0)); - Value->Error("Your functions are not linearly independent or your answer is not complete") + Value->Error("Your functions are not linearly independent or your answer is not complete") if ($a11 * $a22 == $a21 * $a12); ######################################################## diff --git a/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/06-Forcing-resonance/KJ-3-10-02.pg b/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/06-Forcing-resonance/KJ-3-10-02.pg index fb904601a8..ebbdb69793 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/06-Forcing-resonance/KJ-3-10-02.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/06-Forcing-resonance/KJ-3-10-02.pg @@ -23,12 +23,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionLists.pl", "parserImplicitEquation.pl", "PGcourse.pl" @@ -73,20 +73,20 @@ $yp0 = Compute("0"); Context()->texStrings; BEGIN_TEXT -A \( $m \) kilogram object suspended from the +A \( $m \) kilogram object suspended from the end of a vertically hanging spring stretches the spring -\( 9.8 \) centimeters. At time \( t = 0 \), the -resulting mass-spring system is disturbed from its +\( 9.8 \) centimeters. At time \( t = 0 \), the +resulting mass-spring system is disturbed from its rest state by the force \( F(t) = $F \). The force \( F(t) \) is expressed in Newtons and is positive -in the downward direction, and time is measured in +in the downward direction, and time is measured in seconds. \{ BeginList("OL",type=>'a') \} -$ITEM +$ITEM Determine the spring constant \( k \). $BR -\( k = \) +\( k = \) \{ ans_rule(10) \} Newtons / meter @@ -101,12 +101,12 @@ $BR $BR Differential equation: \{ ans_rule(40) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} $BR $BR Initial conditions: \( y(0) = \) \{ ans_rule(5) \} and -\( y^{\,\prime}(0) = \) \{ ans_rule(5) \} -\{ AnswerFormatHelp("numbers") \} +\( y^{\,\prime}(0) = \) \{ ans_rule(5) \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; @@ -140,18 +140,18 @@ Solve the initial value problem for \( y(t) \). $BR \( y(t) = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $ITEMSEP $ITEM -Plot the solution and determine the maximum +Plot the solution and determine the maximum excursion from equilibrium made by the object on -the time interval \( 0 \leq t < \infty \). If +the time interval \( 0 \leq t < \infty \). If there is no such maximum, enter ${BITALIC}NONE${EITALIC}. $BR -maximum excursion = +maximum excursion = \{ ans_rule(20) \} meters -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} \{ EndList("OL") \} diff --git a/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/06-Forcing-resonance/KJ-3-10-04.pg b/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/06-Forcing-resonance/KJ-3-10-04.pg index e65ae87354..0ea70538b6 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/06-Forcing-resonance/KJ-3-10-04.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/06-Forcing-resonance/KJ-3-10-04.pg @@ -24,12 +24,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionLists.pl", "parserImplicitEquation.pl", "PGcourse.pl" @@ -74,20 +74,20 @@ $yp0 = Compute("0"); Context()->texStrings; BEGIN_TEXT -A \( $m \) kilogram object suspended from the +A \( $m \) kilogram object suspended from the end of a vertically hanging spring stretches the spring -\( 9.8 \) centimeters. At time \( t = 0 \), the -resulting mass-spring system is disturbed from its +\( 9.8 \) centimeters. At time \( t = 0 \), the +resulting mass-spring system is disturbed from its rest state by the force \( F(t) = $F \). The force \( F(t) \) is expressed in Newtons and is positive -in the downward direction, and time is measured in +in the downward direction, and time is measured in seconds. \{ BeginList("OL",type=>'a') \} -$ITEM +$ITEM Determine the spring constant \( k \). $BR -\( k = \) +\( k = \) \{ ans_rule(10) \} Newtons / meter @@ -102,12 +102,12 @@ $BR $BR Differential equation: \{ ans_rule(40) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} $BR $BR Initial conditions: \( y(0) = \) \{ ans_rule(5) \} and -\( y^{\,\prime}(0) = \) \{ ans_rule(5) \} -\{ AnswerFormatHelp("numbers") \} +\( y^{\,\prime}(0) = \) \{ ans_rule(5) \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; @@ -141,18 +141,18 @@ Solve the initial value problem for \( y(t) \). $BR \( y(t) = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $ITEMSEP $ITEM -Plot the solution and determine the maximum +Plot the solution and determine the maximum excursion from equilibrium made by the object on -the time interval \( 0 \leq t < \infty \). If +the time interval \( 0 \leq t < \infty \). If there is no such maximum, enter ${BITALIC}NONE${EITALIC}. $BR -maximum excursion = +maximum excursion = \{ ans_rule(20) \} meters -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} \{ EndList("OL") \} diff --git a/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/06-Forcing-resonance/KJ-3-10-07.pg b/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/06-Forcing-resonance/KJ-3-10-07.pg index 9b631fc2bf..9157842b49 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/06-Forcing-resonance/KJ-3-10-07.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/06-Forcing-resonance/KJ-3-10-07.pg @@ -23,12 +23,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionLists.pl", "weightedGrader.pl", "PGcourse.pl" @@ -40,7 +40,7 @@ TEXT(beginproblem()); ############################# -# Setup +# Setup Context("Numeric"); Context()->variables->are(t=>"Real"); @@ -74,7 +74,7 @@ BEGIN_TEXT Consider the initial value problem $PAR \[ -m y^{\,\prime\prime} + c y^{\,\prime} + k y = F(t), +m y^{\,\prime\prime} + c y^{\,\prime} + k y = F(t), \ \ \ y(0) = 0, \ \ \ @@ -82,11 +82,11 @@ y^{\,\prime}(0) = 0 \] $BR modeling the motion of a spring-mass-dashpot system -initially at rest and subjected to an applied -force \( F(t) \), where the unit of force is the -Newton (N). Assume that \( m = $m \) kilograms, -\( c = $c \) kilograms per second, \( k = $k \) -Newtons per meter, and \( F(t) = $F \) Newtons. +initially at rest and subjected to an applied +force \( F(t) \), where the unit of force is the +Newton (N). Assume that \( m = $m \) kilograms, +\( c = $c \) kilograms per second, \( k = $k \) +Newtons per meter, and \( F(t) = $F \) Newtons. \{ BeginList("OL",type=>'a') \} @@ -95,7 +95,7 @@ Solve the initial value problem. $BR $BR \( y(t) = \) \{ ans_box(2,50) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $ITEMSEP $ITEM @@ -106,10 +106,10 @@ approximates \( y(t) \) for very large positive values of \( t \). $BR $BR -For very large positive values of \( t \), +For very large positive values of \( t \), \( y(t) \approx \) \{ ans_rule(50) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} \{ EndList("OL") \} diff --git a/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/06-Forcing-resonance/KJ-3-10-08.pg b/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/06-Forcing-resonance/KJ-3-10-08.pg index 2b5fce70e6..2dfa4f09a5 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/06-Forcing-resonance/KJ-3-10-08.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/06-Forcing-resonance/KJ-3-10-08.pg @@ -23,12 +23,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionLists.pl", "weightedGrader.pl", "PGcourse.pl" @@ -40,7 +40,7 @@ TEXT(beginproblem()); ############################# -# Setup +# Setup Context("Numeric"); Context()->variables->are(t=>"Real"); @@ -74,7 +74,7 @@ BEGIN_TEXT Consider the initial value problem $PAR \[ -m y^{\,\prime\prime} + c y^{\,\prime} + k y = F(t), +m y^{\,\prime\prime} + c y^{\,\prime} + k y = F(t), \ \ \ y(0) = 0, \ \ \ @@ -82,11 +82,11 @@ y^{\,\prime}(0) = 0 \] $BR modeling the motion of a spring-mass-dashpot system -initially at rest and subjected to an applied -force \( F(t) \), where the unit of force is the -Newton (N). Assume that \( m = $m \) kilograms, -\( c = $c \) kilograms per second, \( k = $k \) -Newtons per meter, and \( F(t) = $F \) Newtons. +initially at rest and subjected to an applied +force \( F(t) \), where the unit of force is the +Newton (N). Assume that \( m = $m \) kilograms, +\( c = $c \) kilograms per second, \( k = $k \) +Newtons per meter, and \( F(t) = $F \) Newtons. \{ BeginList("OL",type=>'a') \} @@ -95,7 +95,7 @@ Solve the initial value problem. $BR $BR \( y(t) = \) \{ ans_box(2,50) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $ITEMSEP $ITEM @@ -106,10 +106,10 @@ approximates \( y(t) \) for very large positive values of \( t \). $BR $BR -For very large positive values of \( t \), +For very large positive values of \( t \), \( y(t) \approx \) \{ ans_rule(50) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} \{ EndList("OL") \} diff --git a/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/06-Forcing-resonance/KJ-3-10-09.pg b/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/06-Forcing-resonance/KJ-3-10-09.pg index 7312e7550a..8414896f4e 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/06-Forcing-resonance/KJ-3-10-09.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/06-Forcing-resonance/KJ-3-10-09.pg @@ -24,12 +24,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionLists.pl", "weightedGrader.pl", "PGcourse.pl" @@ -41,7 +41,7 @@ TEXT(beginproblem()); ############################# -# Setup +# Setup Context("Numeric"); Context()->variables->are(t=>"Real"); @@ -76,7 +76,7 @@ BEGIN_TEXT Consider the initial value problem $PAR \[ -m y^{\,\prime\prime} + c y^{\,\prime} + k y = F(t), +m y^{\,\prime\prime} + c y^{\,\prime} + k y = F(t), \ \ \ y(0) = 0, \ \ \ @@ -84,11 +84,11 @@ y^{\,\prime}(0) = 0 \] $BR modeling the motion of a spring-mass-dashpot system -initially at rest and subjected to an applied -force \( F(t) \), where the unit of force is the -Newton (N). Assume that \( m = $m \) kilograms, -\( c = $c \) kilograms per second, \( k = $k \) -Newtons per meter, and \( F(t) = $F \) Newtons. +initially at rest and subjected to an applied +force \( F(t) \), where the unit of force is the +Newton (N). Assume that \( m = $m \) kilograms, +\( c = $c \) kilograms per second, \( k = $k \) +Newtons per meter, and \( F(t) = $F \) Newtons. \{ BeginList("OL",type=>'a') \} @@ -97,7 +97,7 @@ Solve the initial value problem. $BR $BR \( y(t) = \) \{ ans_box(2,50) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $ITEMSEP $ITEM @@ -108,10 +108,10 @@ approximates \( y(t) \) for very large positive values of \( t \). $BR $BR -For very large positive values of \( t \), +For very large positive values of \( t \), \( y(t) \approx \) \{ ans_rule(50) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} \{ EndList("OL") \} diff --git a/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/06-Forcing-resonance/KJ-3-10-10.pg b/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/06-Forcing-resonance/KJ-3-10-10.pg index 28822c3f4c..5e289729f7 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/06-Forcing-resonance/KJ-3-10-10.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/2-Higher-order/06-Forcing-resonance/KJ-3-10-10.pg @@ -22,12 +22,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionLists.pl", "weightedGrader.pl", "PGcourse.pl" @@ -39,7 +39,7 @@ TEXT(beginproblem()); ############################# -# Setup +# Setup Context("Numeric"); Context()->variables->are(t=>"Real"); @@ -76,7 +76,7 @@ BEGIN_TEXT Consider the initial value problem $PAR \[ -m y^{\,\prime\prime} + c y^{\,\prime} + k y = F(t), +m y^{\,\prime\prime} + c y^{\,\prime} + k y = F(t), \ \ \ y(0) = 0, \ \ \ @@ -84,15 +84,15 @@ y^{\,\prime}(0) = 0 \] $BR modeling the motion of a spring-mass-dashpot system -initially at rest and subjected to an applied -force \( F(t) \), where the unit of force is the -Newton (N). Assume that \( m = $m \) kilograms, -\( c = $c \) kilograms per second, \( k = $k \) +initially at rest and subjected to an applied +force \( F(t) \), where the unit of force is the +Newton (N). Assume that \( m = $m \) kilograms, +\( c = $c \) kilograms per second, \( k = $k \) Newtons per meter, and the applied force in Newtons is $PAR \[ -F(t) +F(t) = \left\lbrace \begin{array}{lcl} @@ -101,24 +101,24 @@ $a && \mbox{if } 0 \leq t \leq \pi/2, \\ \end{array} \right. \] - + \{ BeginList("OL",type=>'a') \} $ITEM Solve the initial value problem, using that the displacement \( y(t) \) and velocity \( y^{\,\prime}(t) \) -remain continuous when the applied force is -discontinuous. +remain continuous when the applied force is +discontinuous. $BR $BR For \( 0 \leq t \leq \pi/2 \), $SPACE \( y(t) = \) \{ ans_rule(50) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR For \( t > \pi/2 \), $SPACE \( y(t) = \) \{ ans_rule(50) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $ITEMSEP $ITEM Determine the long-term behavior of the system. @@ -128,10 +128,10 @@ approximates \( y(t) \) for very large positive values of \( t \). $BR $BR -For very large positive values of \( t \), +For very large positive values of \( t \), \( y(t) \approx \) \{ ans_rule(50) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} \{ EndList("OL") \} diff --git a/OpenProblemLibrary/FortLewis/DiffEq/3-Linear-systems/01-Intro-to-systems/Lebl-3-1-02.pg b/OpenProblemLibrary/FortLewis/DiffEq/3-Linear-systems/01-Intro-to-systems/Lebl-3-1-02.pg index 21fcaf1d5b..99c8f07782 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/3-Linear-systems/01-Intro-to-systems/Lebl-3-1-02.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/3-Linear-systems/01-Intro-to-systems/Lebl-3-1-02.pg @@ -23,12 +23,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserAssignment.pl", "unionLists.pl", "PGcourse.pl" @@ -70,13 +70,13 @@ $BR if \( x(0) = $x0 \) and \( y(0) = $y0 \). $BR $BR -\( x(t) = \) +\( x(t) = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR -\( y(t) = \) +\( y(t) = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/DiffEq/3-Linear-systems/01-Intro-to-systems/Lebl-3-1-03.pg b/OpenProblemLibrary/FortLewis/DiffEq/3-Linear-systems/01-Intro-to-systems/Lebl-3-1-03.pg index 43a0d03594..fb58b83e9d 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/3-Linear-systems/01-Intro-to-systems/Lebl-3-1-03.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/3-Linear-systems/01-Intro-to-systems/Lebl-3-1-03.pg @@ -23,12 +23,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserAssignment.pl", "unionLists.pl", "PGcourse.pl" @@ -73,7 +73,7 @@ $PAR \[ \begin{array}{lcl} x^{\,\prime} & = & y \\ -y^{\,\prime} & = & $ab x + $bma y +y^{\,\prime} & = & $ab x + $bma y \end{array} \] $BR @@ -81,13 +81,13 @@ $BR if \( x(0) = $x0 \) and \( y(0) = $y0 \). $BR $BR -\( x(t) = \) +\( x(t) = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR -\( y(t) = \) +\( y(t) = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/DiffEq/3-Linear-systems/02-Matrices/KJ-4-1-13-multians.pg b/OpenProblemLibrary/FortLewis/DiffEq/3-Linear-systems/02-Matrices/KJ-4-1-13-multians.pg index 31e7488f5f..92741ab3d4 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/3-Linear-systems/02-Matrices/KJ-4-1-13-multians.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/3-Linear-systems/02-Matrices/KJ-4-1-13-multians.pg @@ -23,7 +23,7 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", @@ -33,7 +33,7 @@ loadMacros( "parserMultiAnswer.pl", "weightedGrader.pl", "contextInequalities.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -120,9 +120,9 @@ $multians2 = MultiAnswer($app11, $app12, $app21, $app22)->with( Context()->texStrings; BEGIN_TEXT Let -$PAR +$PAR \[ -A(t) = +A(t) = \left\lbrack \begin{array}{cc} $a11 & $a12 \\ @@ -137,11 +137,11 @@ $BR $ITEM Find \( A'(t) \). $BCENTER -\{ +\{ mbox( "\( A'(t) = \)", display_matrix([ - [$multians1->ans_rule(25),$multians1->ans_rule(25)], + [$multians1->ans_rule(25),$multians1->ans_rule(25)], [$multians1->ans_rule(25),$multians1->ans_rule(25)] ], align=>'cc') ); @@ -152,11 +152,11 @@ $ITEMSEP $ITEM Find \( A''(t) \). $BCENTER -\{ +\{ mbox( "\( A''(t) = \)", display_matrix([ - [$multians2->ans_rule(25),$multians2->ans_rule(25)], + [$multians2->ans_rule(25),$multians2->ans_rule(25)], [$multians2->ans_rule(25),$multians2->ans_rule(25)] ], align=>'cc') ); @@ -178,19 +178,19 @@ BEGIN_TEXT $ITEMSEP $ITEM -\( A(t) \) is defined for all \( t \) in the interval(s) +\( A(t) \) is defined for all \( t \) in the interval(s) \{ ans_rule(30) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR $BR -\( A'(t) \) is defined for all \( t \) in the interval(s) +\( A'(t) \) is defined for all \( t \) in the interval(s) \{ ans_rule(30) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR $BR -\( A''(t) \) is defined for all \( t \) in the interval(s) +\( A''(t) \) is defined for all \( t \) in the interval(s) \{ ans_rule(30) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} \{ EndList("OL") \} diff --git a/OpenProblemLibrary/FortLewis/DiffEq/3-Linear-systems/03-Linear-systems/KJ-4-2-04-multians.pg b/OpenProblemLibrary/FortLewis/DiffEq/3-Linear-systems/03-Linear-systems/KJ-4-2-04-multians.pg index 5502c02d15..840e33cbad 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/3-Linear-systems/03-Linear-systems/KJ-4-2-04-multians.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/3-Linear-systems/03-Linear-systems/KJ-4-2-04-multians.pg @@ -22,7 +22,7 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", @@ -33,7 +33,7 @@ loadMacros( "PGunion.pl", "parserPopUp.pl", "contextInequalities.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -122,7 +122,7 @@ $PAR \[ \begin{array}{rclcl} (t + $a) y_1^{\,\prime} & = & $Q11 y_1 + $Q12 y_2, && y_1(1) = 0, \\ -(t - $b) y_2^{\,\prime} & = & $Q21 y_1 + $Q22 y_2, && y_2(1) = 2. +(t - $b) y_2^{\,\prime} & = & $Q21 y_1 + $Q22 y_2, && y_2(1) = 2. \end{array} \] $BR @@ -130,17 +130,17 @@ $BR \{ BeginList("OL",type=>'a') \} $ITEM This system of linear differential equations can -be put in the form +be put in the form \( \boldsymbol{\vec{y}^{\,\prime}} = P(t) \boldsymbol{\vec{y}} + \boldsymbol{\vec{g}}(t) \). Determine \( P(t) \) and \( \boldsymbol{\vec{g}}(t) \). $PAR $BCENTER -\{ +\{ mbox( "\( P(t) = \)", display_matrix([ - [$multians1->ans_rule(15),$multians1->ans_rule(15)], + [$multians1->ans_rule(15),$multians1->ans_rule(15)], [$multians1->ans_rule(15),$multians1->ans_rule(15)] ], align=>'cc') ); @@ -149,11 +149,11 @@ $ECENTER $PAR $BCENTER -\{ +\{ mbox( "\( \boldsymbol{\vec{g}}(t) = \)", display_matrix([ - [$multians2->ans_rule(15)], + [$multians2->ans_rule(15)], [$multians2->ans_rule(15)] ], align=>'cc') ); @@ -162,7 +162,7 @@ $ECENTER $ITEMSEP $ITEM -Is the system homogeneous or nonhomogeneous? +Is the system homogeneous or nonhomogeneous? \{ $popup->menu() \} END_TEXT @@ -188,14 +188,14 @@ Context()->texStrings; BEGIN_TEXT $ITEMSEP $ITEM -Find the largest interval \( a < t < b \) -such that a unique solution of the initial +Find the largest interval \( a < t < b \) +such that a unique solution of the initial value problem is guaranteed to exist. $BR $BR -Interval: +Interval: \{ ans_rule(30) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} \{ EndList("OL") \} diff --git a/OpenProblemLibrary/FortLewis/DiffEq/3-Linear-systems/03-Linear-systems/KJ-4-2-15.pg b/OpenProblemLibrary/FortLewis/DiffEq/3-Linear-systems/03-Linear-systems/KJ-4-2-15.pg index 4bc786e7a7..15998cbf7a 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/3-Linear-systems/03-Linear-systems/KJ-4-2-15.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/3-Linear-systems/03-Linear-systems/KJ-4-2-15.pg @@ -23,13 +23,13 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "parserImplicitEquation.pl", - "AnswerFormatHelp.pl", + "unionLists.pl", "weightedGrader.pl", "PGcourse.pl" @@ -97,12 +97,12 @@ $PAR y_1^{\,\prime} \\ y_2^{\,\prime} \end{array} -\right\rbrack +\right\rbrack = -\left\lbrack +\left\lbrack \begin{array}{rr} $P11 & $P12 \\ -$P21 & $P22 +$P21 & $P22 \end{array} \right\rbrack \left\lbrack @@ -110,23 +110,23 @@ $P21 & $P22 y_1 \\ y_2 \end{array} -\right\rbrack +\right\rbrack + \left\lbrack \begin{array}{c} $g1 \\ $g2 \end{array} -\right\rbrack, +\right\rbrack, \] $PAR -\[ +\[ \left\lbrack \begin{array}{c} y_1($tinit) \\ y_2($tinit) \end{array} -\right\rbrack = +\right\rbrack = \left\lbrack \begin{array}{r} $y1init \\ @@ -135,35 +135,35 @@ $y2init \right\rbrack. \] $BR -This initial value problem was obtained from +This initial value problem was obtained from an initial value problem for a higher order -scalar differential equation, via the change of variables \( y_1 = y \) and \( y_2 = y' \). What is the +scalar differential equation, via the change of variables \( y_1 = y \) and \( y_2 = y' \). What is the corresponding scalar initial value problem? \{ BeginList("OL",type=>'a') \} $ITEM Differential equation: \{ ans_rule(50) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} $BR $BR (Give your answer in terms of \( y, y^{\,\prime}, y^{\,\prime\prime}, t \). ) - + $ITEMSEP $ITEM Initial conditions: \{ ans_rule(15) \} and \{ ans_rule(15) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} $BR $BR (Give your first answer in the form \( y(t_0) = y_0 \). Give your second answer in the form \( y'(t_0) = y_0' \). -) +) \{ EndList("OL") \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/DiffEq/3-Linear-systems/08-Complex-eigenvalues/KJ-4-6-31.pg b/OpenProblemLibrary/FortLewis/DiffEq/3-Linear-systems/08-Complex-eigenvalues/KJ-4-6-31.pg index 31be92ee4d..7f5f930dd3 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/3-Linear-systems/08-Complex-eigenvalues/KJ-4-6-31.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/3-Linear-systems/08-Complex-eigenvalues/KJ-4-6-31.pg @@ -28,7 +28,7 @@ loadMacros( "MathObjects.pl", "unionLists.pl", "contextInequalities.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -52,7 +52,7 @@ Context()->texStrings; BEGIN_TEXT Consider initial value problem $PAR -\[ +\[ \displaystyle \boldsymbol{ \vec{y}^{\,\prime} } = @@ -64,49 +64,49 @@ k & 1 \right\rbrack \boldsymbol{\vec{y}}, \ \ \ -\boldsymbol{\vec{y}}(0) -= +\boldsymbol{\vec{y}}(0) += \boldsymbol{\vec{y}_0}, \] $BR -where \( k \) is a real parameter. +where \( k \) is a real parameter. \{ BeginList("OL",type=>"a") \} $ITEM Determine all values of \( k \) for which -the coefficient matrix has distinct real +the coefficient matrix has distinct real eigenvalues. Enter ${BITALIC}NONE${EITALIC} -if there are no values of \( k \) for +if there are no values of \( k \) for which the coefficient matrix has distinct real eigenvalues. $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} $ITEMSEP $ITEM Determine all values of \( k \) for which -the coefficient matrix has distinct complex +the coefficient matrix has distinct complex eigenvalues. Enter ${BITALIC}NONE${EITALIC} -if there are no values of \( k \) for +if there are no values of \( k \) for which the coefficient matrix has distinct complex eigenvalues. $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} $ITEMSEP $ITEM -For what values of \( k \) found in part (a) -does \( \sqrt{y_1(t)^2 + y_2(t)^2} \to 0 \) +For what values of \( k \) found in part (a) +does \( \sqrt{y_1(t)^2 + y_2(t)^2} \to 0 \) as \( t \to 0 \) for every initial vector -\( \boldsymbol{\vec{y}_0} \)? Enter +\( \boldsymbol{\vec{y}_0} \)? Enter ${BITALIC}NONE${EITALIC} if there are no values of \( k \) for which this is true. $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} \{ EndList("OL") \} @@ -128,4 +128,4 @@ ANS( Compute("NONE")->cmp() ); ; -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-1-01.pg b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-1-01.pg index a45739cf90..a67403ca42 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-1-01.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-1-01.pg @@ -24,12 +24,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "answerHints.pl", "parserAssignment.pl", @@ -73,7 +73,7 @@ $BR $BR \( \displaystyle F(s) = {\mathcal L}\left\lbrace f(t) \right\rbrace = \int_A^B \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR where \( A = \) \{ ans_rule(5) \} and \( B = \) \{ ans_rule(5) \}. @@ -100,7 +100,7 @@ Context()->normalStrings; $showPartialCorrectAnswers = 1; -ANS( $answera->cmp() +ANS( $answera->cmp() ->withPostFilter(AnswerHints( Formula("$ft * e^(-s*t)") => "Don't forget the differential dt" )) @@ -132,7 +132,7 @@ $ITEM Where does the Laplace transform you found exist? In other words, what is $BR $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} \{ EndList('OL') \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-1-04.pg b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-1-04.pg index 2de5099261..4fd511da88 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-1-04.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-1-04.pg @@ -26,12 +26,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "answerHints.pl", "parserAssignment.pl", @@ -75,7 +75,7 @@ $BR $BR \( \displaystyle F(s) = {\mathcal L}\left\lbrace f(t) \right\rbrace = \int_A^B \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR where \( A = \) \{ ans_rule(5) \} and \( B = \) \{ ans_rule(5) \}. @@ -102,10 +102,10 @@ Context()->normalStrings; $showPartialCorrectAnswers = 1; -ANS( $answera->cmp() +ANS( $answera->cmp() ->withPostFilter(AnswerHints( Formula("$ft * e^(-s*t)") => "Don't forget the differential dt", - [Formula("t - $a * e^(-s*t)*dt"), Formula("t - $a * e^(-s*t)")] => "Don't forget parentheses", + [Formula("t - $a * e^(-s*t)*dt"), Formula("t - $a * e^(-s*t)")] => "Don't forget parentheses", )) ); ANS( $answerb->cmp() ); @@ -135,7 +135,7 @@ $ITEM Where does the Laplace transform you found exist? In other words, what is $BR $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} \{ EndList('OL') \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-1-06.pg b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-1-06.pg index c19177bc4c..8bfedbf01d 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-1-06.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-1-06.pg @@ -21,12 +21,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "answerHints.pl", "parserAssignment.pl", @@ -51,16 +51,16 @@ $a = random(1, 6, 1); $ft = Formula("e^((t-$a)^2)"); $mc = new_multiple_choice(); -$mc->qa("The function \( f(t) \) is", "continuous on \( 0\leq t < \infty \)."); +$mc->qa("The function \( f(t) \) is", "continuous on \( 0\leq t < \infty \)."); $mc->makeLast("continuous on \( 0\leq t < \infty \).","discontinuous but piecewise continuous on \( 0\leq t < \infty \).","neither."); $popup1 = PopUp( - ["?", "yes", "no"], + ["?", "yes", "no"], "no" ); $popup2 = PopUp( - ["?", "yes", "no"], + ["?", "yes", "no"], "no" ); diff --git a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-1-10.pg b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-1-10.pg index af831759da..b6fe620357 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-1-10.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-1-10.pg @@ -26,12 +26,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "answerHints.pl", "parserAssignment.pl", @@ -84,7 +84,7 @@ $f2, & \ \ $b \leq t. $BR \( \displaystyle F(s) = {\mathcal L}\left\lbrace f(t) \right\rbrace = \int_A^B \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR where \( A = \) \{ ans_rule(5) \} and \( B = \) \{ ans_rule(5) \}. @@ -111,10 +111,10 @@ Context()->normalStrings; $showPartialCorrectAnswers = 1; -ANS( $answera->cmp() +ANS( $answera->cmp() ->withPostFilter(AnswerHints( Formula("$f2 * e^(-s*t)") => "Don't forget the differential dt", - [Formula("t - $a * e^(-s*t)*dt"), Formula("t - $a * e^(-s*t)")] => "Don't forget parentheses", + [Formula("t - $a * e^(-s*t)*dt"), Formula("t - $a * e^(-s*t)")] => "Don't forget parentheses", )) ); ANS( $answerb->cmp() ); @@ -144,7 +144,7 @@ $ITEM Where does the Laplace transform you found exist? In other words, what is $BR $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} \{ EndList('OL') \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-1-16.pg b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-1-16.pg index d4941ad100..4342d08e78 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-1-16.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-1-16.pg @@ -27,12 +27,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "answerHints.pl", "parserAssignment.pl", @@ -54,18 +54,18 @@ w=>"Real", a=>"Real", b=>"Real", C=>"Real", T=>"Real" ); -$ft = Formula("cos(w*t)"); +$ft = Formula("cos(w*t)"); $answera = Compute("e^(-s*T)*(-s*cos(w*T) + w*sin(w*T))/(s^2+w^2) + s/(s^2+w^2)"); $answerb = Compute("1/w*sin(w*T)"); -if ($displayMode eq 'TeX') { - $ansrule1 = ans_rule(20); - $ansrule2 = ans_rule(20); -} else { - $ansrule1 = ans_rule(60); - $ansrule2 = ans_rule(60); +if ($displayMode eq 'TeX') { + $ansrule1 = ans_rule(20); + $ansrule2 = ans_rule(20); +} else { + $ansrule1 = ans_rule(60); + $ansrule2 = ans_rule(60); } @@ -93,7 +93,7 @@ $BR \( \displaystyle \int_0^{\infty} $ft e^{-st} \,dt \ = \ \lim_{T\to\infty} \) \{ $ansrule2 \} if \( s=0. \) -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; @@ -104,13 +104,13 @@ Context()->normalStrings; $showPartialCorrectAnswers = 1; -ANS( $answera->cmp() +ANS( $answera->cmp() ->withPostFilter(AnswerHints( Formula("e^(-s*t)*(-s*cos(w*t) + w*sin(w*t))/(s^2+w^2) + s/(s^2+w^2)") => "Use capital T for the upper limit of integration", [Formula("e^(-s*t)*(-s*cos(w*t) + w*sin(w*t))/(s^2+w^2)"), Formula("e^(-s*T)*(-s*cos(w*T) + w*sin(w*T))/(s^2+w^2)")] => "Be sure to compute a definite integral, not an antiderivative" )) ); -ANS( $answerb->cmp() +ANS( $answerb->cmp() ->withPostFilter(AnswerHints( Formula("1/w*sin(w*t)") => "Use capital T for the upper limit of integration" )) @@ -139,7 +139,7 @@ $ITEM For which values of \( s \) do the limits above exist? In other words, wh $BR $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} END_TEXT Context()->normalStrings; @@ -175,7 +175,7 @@ $BR $BR \( F(s) = {\mathcal L} \left\lbrace $ft \right\rbrace = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} \{ EndList('OL') \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-1-21.pg b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-1-21.pg index 12f092e20c..10baa0f48d 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-1-21.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-1-21.pg @@ -28,12 +28,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "answerHints.pl", "parserAssignment.pl", @@ -57,18 +57,18 @@ T=>"Real" $k = random(1, 5, 1); do { $w = random(2, 5, 1); } until ($w != $k); -$ft = Formula("e^($k*t)*cos($w*t)"); +$ft = Formula("e^($k*t)*cos($w*t)"); $answera = Compute("e^(($k-s)*T)*(($k-s)*cos($w*T) + $w*sin($w*T))/(($k-s)^2+$w^2) + (s-$k)/((s-$k)^2+$w^2)"); $answerb = Compute("1/$w*sin($w*T)"); -if ($displayMode eq 'TeX') { - $ansrule1 = ans_rule(20); - $ansrule2 = ans_rule(20); -} else { - $ansrule1 = ans_rule(80); - $ansrule2 = ans_rule(80); +if ($displayMode eq 'TeX') { + $ansrule1 = ans_rule(20); + $ansrule2 = ans_rule(20); +} else { + $ansrule1 = ans_rule(80); + $ansrule2 = ans_rule(80); } @@ -96,7 +96,7 @@ $BR \( \displaystyle \int_0^{\infty} $ft e^{-st} \,dt \ = \ \lim_{T\to\infty} \) \{ $ansrule2 \} if \( s=$k. \) -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; @@ -107,13 +107,13 @@ Context()->normalStrings; $showPartialCorrectAnswers = 1; -ANS( $answera->cmp() +ANS( $answera->cmp() ->withPostFilter(AnswerHints( Formula("e^(($k-s)*t)*(($k-s)*cos($w*t) + $w*sin($w*t))/(($k-s)^2+$w^2) + (s-$k)/((s-$k)^2+$w^2)") => "Use capital T for the upper limit of integration", [Formula("e^(($k-s)*t)*(($k-s)*cos($w*t) + $w*sin($w*t))/(($k-s)^2+$w^2)"), Formula("e^(($k-s)*T)*(($k-s)*cos($w*T) + $w*sin($w*T))/(($k-s)^2+$w^2)")] => "Be sure to compute a definite integral, not an antiderivative" )) ); -ANS( $answerb->cmp() +ANS( $answerb->cmp() ->withPostFilter(AnswerHints( Formula("1/$w*sin($w*t)") => "Use capital T for the upper limit of integration" )) @@ -142,7 +142,7 @@ $ITEM For which values of \( s \) do the limits above exist? In other words, wh $BR $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} END_TEXT Context()->normalStrings; @@ -178,7 +178,7 @@ $BR $BR \( F(s) = {\mathcal L}\left\lbrace $ft \right\rbrace = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} \{ EndList('OL') \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-1-23.pg b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-1-23.pg index f92282c772..3b1a3da576 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-1-23.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-1-23.pg @@ -22,12 +22,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "answerHints.pl", "parserAssignment.pl", @@ -65,14 +65,14 @@ Context()->texStrings; BEGIN_TEXT \{ BeginList('OL', type=>'a') \} -$ITEM Find the Laplace transform -\( F(s) = {\mathcal L}\left\lbrace f(t) \right\rbrace \) +$ITEM Find the Laplace transform +\( F(s) = {\mathcal L}\left\lbrace f(t) \right\rbrace \) of the function \( f(t) = $ft \), defined on the interval \( t \geq 0 \). $BR $BR \( \displaystyle F(s) = {\mathcal L}\left\lbrace $ft \right\rbrace = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; @@ -108,7 +108,7 @@ $ITEM For what values of \( s \) does the Laplace transform exist? $BR $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} \{ EndList('OL') \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-1-24.pg b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-1-24.pg index 4b0e8bbb1f..44d4b901cc 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-1-24.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-1-24.pg @@ -22,12 +22,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "answerHints.pl", "parserAssignment.pl", @@ -50,18 +50,18 @@ t=>"Real" $ft = Formula("tan(t)"); $mc = new_multiple_choice(); -#$mc->qa("The function \( f(t) \) is","discontinuous but piecewise continuous on \( 0\leq t < \infty \)."); -$mc->qa("The function \( f(t) \) is","neither."); +#$mc->qa("The function \( f(t) \) is","discontinuous but piecewise continuous on \( 0\leq t < \infty \)."); +$mc->qa("The function \( f(t) \) is","neither."); $mc->makeLast("continuous on \( 0\leq t < \infty \).","discontinuous but piecewise continuous on \( 0\leq t < \infty \).","neither."); $popup1 = PopUp( - ["?", "yes", "no"], + ["?", "yes", "no"], "no" ); $popup2 = PopUp( - ["?", "yes", "no"], + ["?", "yes", "no"], "no" ); diff --git a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-1-25.pg b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-1-25.pg index a0325ab447..9b06ea20b8 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-1-25.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-1-25.pg @@ -21,12 +21,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "answerHints.pl", "parserAssignment.pl", @@ -52,16 +52,16 @@ $b = random(2, 7, 1); $ft = Formula("$b*e^(t/$a)*sin(t)"); $mc = new_multiple_choice(); -$mc->qa("The function \( f(t) \) is", "continuous on \( 0\leq t < \infty \)."); +$mc->qa("The function \( f(t) \) is", "continuous on \( 0\leq t < \infty \)."); $mc->makeLast("continuous on \( 0\leq t < \infty \).","discontinuous but piecewise continuous on \( 0\leq t < \infty \).","neither."); $popup1 = PopUp( - ["?", "yes", "no"], + ["?", "yes", "no"], "yes" ); $popup2 = PopUp( - ["?", "yes", "no"], + ["?", "yes", "no"], "yes" ); diff --git a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-1-26.pg b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-1-26.pg index 7de3df7d58..0d15aff11d 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-1-26.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-1-26.pg @@ -21,12 +21,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "answerHints.pl", "parserAssignment.pl", @@ -52,16 +52,16 @@ $b = random(1, 7, 1); $ft = Formula("t^$a*e^(-$b*t)"); $mc = new_multiple_choice(); -$mc->qa("The function \( f(t) \) is", "continuous on \( 0\leq t < \infty \)."); +$mc->qa("The function \( f(t) \) is", "continuous on \( 0\leq t < \infty \)."); $mc->makeLast("continuous on \( 0\leq t < \infty \).","discontinuous but piecewise continuous on \( 0\leq t < \infty \).","neither."); $popup1 = PopUp( - ["?", "yes", "no"], + ["?", "yes", "no"], "yes" ); $popup2 = PopUp( - ["?", "yes", "no"], + ["?", "yes", "no"], "yes" ); diff --git a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-1-37.pg b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-1-37.pg index f461eb6c5d..c4466b7461 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-1-37.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-1-37.pg @@ -22,12 +22,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "answerHints.pl", "parserAssignment.pl", @@ -62,14 +62,14 @@ $answera = Compute("$a*t + $b*e^($c*t)")->reduce; Context()->texStrings; BEGIN_TEXT -Find the inverse Laplace transform -\( f(t) = {\mathcal L}^{-1} \left\lbrace F(s) \right\rbrace \) +Find the inverse Laplace transform +\( f(t) = {\mathcal L}^{-1} \left\lbrace F(s) \right\rbrace \) of the function \( \displaystyle F(s) = $Fs \). $BR $BR \( \displaystyle f(t) = {\mathcal L}^{-1} \left\lbrace $Fs \right\rbrace = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-1-38.pg b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-1-38.pg index 99dad0071e..6cf0b020fe 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-1-38.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-1-38.pg @@ -21,12 +21,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "answerHints.pl", "parserAssignment.pl", @@ -60,16 +60,16 @@ $answera = Compute("$a*e^(-$b*t) + $a*e^($b*t)")->reduce; Context()->texStrings; BEGIN_TEXT -Find the inverse Laplace transform -\( f(t) = {\mathcal L}^{-1} \left\lbrace F(s) \right\rbrace \) +Find the inverse Laplace transform +\( f(t) = {\mathcal L}^{-1} \left\lbrace F(s) \right\rbrace \) of the function \( \displaystyle F(s) = $Fs \). $BR $BR -\( \displaystyle f(t) = {\mathcal L}^{-1} -\left\lbrace $Fs \right\rbrace = +\( \displaystyle f(t) = {\mathcal L}^{-1} +\left\lbrace $Fs \right\rbrace = {\mathcal L}^{-1} \left\lbrace \frac{$a}{s+$b} + \frac{$a}{s-$b} \right\rbrace = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-2-01.pg b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-2-01.pg index 08662c98ab..bd6eb97600 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-2-01.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-2-01.pg @@ -22,12 +22,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "answerHints.pl", "parserAssignment.pl", @@ -64,14 +64,14 @@ Context()->texStrings; BEGIN_TEXT \{ BeginList('OL', type=>'a') \} -$ITEM Find the Laplace transform -\( F(s) = {\mathcal L}\left\lbrace f(t) \right\rbrace \) +$ITEM Find the Laplace transform +\( F(s) = {\mathcal L}\left\lbrace f(t) \right\rbrace \) of the function \( f(t) = $ft \), defined on the interval \( t \geq 0 \). $BR $BR \( \displaystyle F(s) = {\mathcal L}\left\lbrace $ft \right\rbrace = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; @@ -107,7 +107,7 @@ $ITEM For what values of \( s \) does the Laplace transform exist? $BR $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} \{ EndList('OL') \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-2-03.pg b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-2-03.pg index 37973fe513..d2ba595e28 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-2-03.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-2-03.pg @@ -21,12 +21,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "answerHints.pl", "parserAssignment.pl", @@ -66,7 +66,7 @@ $BR $BR \( \displaystyle F(s) = {\mathcal L}\left\lbrace $ft \right\rbrace = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; @@ -102,7 +102,7 @@ $ITEM For what values of \( s \) does the Laplace transform exist? $BR $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} \{ EndList('OL') \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-2-06.pg b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-2-06.pg index e4f39a5397..d591dceca7 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-2-06.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-2-06.pg @@ -21,12 +21,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "answerHints.pl", "parserAssignment.pl", @@ -64,7 +64,7 @@ $BR $BR \( \displaystyle F(s) = {\mathcal L}\left\lbrace $ft \right\rbrace = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR ${BBOLD}Hint:${EBOLD} Use a double-angle trigonometric identity. @@ -104,7 +104,7 @@ $ITEM For what values of \( s \) does the Laplace transform exist? $BR $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} \{ EndList('OL') \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-2-13.pg b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-2-13.pg index ce7261d834..4f22102e20 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-2-13.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-2-13.pg @@ -21,12 +21,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "answerHints.pl", "parserAssignment.pl", @@ -65,7 +65,7 @@ $BR $BR \( \displaystyle f(t) = {\mathcal L}^{-1} \left\lbrace $Fs \right\rbrace = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-2-14.pg b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-2-14.pg index ffcfc65a2e..4811564507 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-2-14.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-2-14.pg @@ -21,12 +21,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "answerHints.pl", "parserAssignment.pl", @@ -67,7 +67,7 @@ $BR $BR \( \displaystyle f(t) = {\mathcal L}^{-1} \left\lbrace $Fs \right\rbrace = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-2-14b.pg b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-2-14b.pg index 5b5ae6e309..e1767597e5 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-2-14b.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-2-14b.pg @@ -22,12 +22,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "answerHints.pl", "parserAssignment.pl", @@ -67,7 +67,7 @@ $BR $BR \( \displaystyle f(t) = {\mathcal L}^{-1} \left\lbrace $Fs \right\rbrace = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-2-22.pg b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-2-22.pg index e5b3a2166c..8bcaa416da 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-2-22.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-2-22.pg @@ -21,12 +21,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "answerHints.pl", "parserAssignment.pl", @@ -68,11 +68,11 @@ if ($displayMode eq 'TeX') { $function = "\(\displaystyle $ft = \left\lbrace". "\begin{array}{c}". - ans_rule(10). "\mbox{ \ if \ } 0 \leq t < $a, \\". + ans_rule(10). "\mbox{ \ if \ } 0 \leq t < $a, \\". ans_rule(10). "\mbox{ \ if \ } $a \leq t < $b, \\". ans_rule(10). "\mbox{ \ if \ } $b \leq t < \infty.". "\end{array}". - "\right.". + "\right.". '\)'; } else { $function = @@ -99,17 +99,17 @@ $ITEM Graph the function \( f(t) = $ft \) for \(0 \leq t < \infty \). Use your $BR $BR $function -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $ITEMSEP -$ITEM Find the Laplace transform -\( F(s) = {\mathcal L}\left\lbrace f(t) \right\rbrace \) +$ITEM Find the Laplace transform +\( F(s) = {\mathcal L}\left\lbrace f(t) \right\rbrace \) of the function \( f(t) = $ft \). $BR $BR \( \displaystyle F(s) = {\mathcal L}\left\lbrace f(t) \right\rbrace = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR \{ EndList('OL') \} diff --git a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-2-24.pg b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-2-24.pg index c1cb3a799a..4740fa0f42 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-2-24.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-2-24.pg @@ -22,12 +22,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "answerHints.pl", "parserAssignment.pl", @@ -69,11 +69,11 @@ if ($displayMode eq 'TeX') { $function = "\(\displaystyle $ft = \left\lbrace". "\begin{array}{c}". - ans_rule(10). "\mbox{ \ if \ } 0 \leq t < $a, \\". + ans_rule(10). "\mbox{ \ if \ } 0 \leq t < $a, \\". ans_rule(10). "\mbox{ \ if \ } $a \leq t < $b, \\". ans_rule(10). "\mbox{ \ if \ } $b \leq t < \infty.". "\end{array}". - "\right.". + "\right.". '\)'; } else { $function = @@ -100,7 +100,7 @@ $ITEM Graph the function \( f(t) = $ft \) for \(0 \leq t < \infty \). Use your $BR $BR $function -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $ITEMSEP $ITEM Evaluate \( f($c) \). @@ -108,7 +108,7 @@ $BR $BR \( \displaystyle f($c) = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR \{ EndList('OL') \} diff --git a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-2-36.pg b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-2-36.pg index 80ca5609e3..4691c0c3b6 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-2-36.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-2-36.pg @@ -24,12 +24,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "PGgraphmacros.pl", "parserFunction.pl", @@ -84,15 +84,15 @@ Context()->texStrings; BEGIN_TEXT \{ ColumnTable( -"The graph of \( f(t) \) is given in the figure. -Represent \( f(t) \) using a combination of -Heaviside step functions. Use \( h(t-a) \) -for the Heaviside function shifted \( a \) +"The graph of \( f(t) \) is given in the figure. +Represent \( f(t) \) using a combination of +Heaviside step functions. Use \( h(t-a) \) +for the Heaviside function shifted \( a \) units horizontally.". $BR. $BR. "\( f(t) = \) ". -ans_rule(60).$SPACE.AnswerFormatHelp("formulas") +ans_rule(60).$SPACE.helpLink("formulas") , $BCENTER. image( insertGraph($gr), width=>300,height=>300,tex_size=>900 ). diff --git a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-2-37.pg b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-2-37.pg index c8a7a7164e..61bbb81fec 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-2-37.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/01-Laplace-transforms/KJ-5-2-37.pg @@ -23,12 +23,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "PGgraphmacros.pl", "parserFunction.pl", @@ -105,15 +105,15 @@ Context()->texStrings; BEGIN_TEXT \{ ColumnTable( -"The graph of \( f(t) \) is given in the figure. -Represent \( f(t) \) using a combination of -Heaviside step functions. Use \( h(t-a) \) -for the Heaviside function shifted \( a \) +"The graph of \( f(t) \) is given in the figure. +Represent \( f(t) \) using a combination of +Heaviside step functions. Use \( h(t-a) \) +for the Heaviside function shifted \( a \) units horizontally.". $BR. $BR. "\( f(t) = \) ". -ans_rule(60).$SPACE.AnswerFormatHelp("formulas") +ans_rule(60).$SPACE.helpLink("formulas") , $BCENTER. image( insertGraph($gr), width=>300,height=>300,tex_size=>900 ). diff --git a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/02-Shifts-and-IVPs/KJ-5-2-04.pg b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/02-Shifts-and-IVPs/KJ-5-2-04.pg index 71e98d8f43..e900e3bbda 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/02-Shifts-and-IVPs/KJ-5-2-04.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/02-Shifts-and-IVPs/KJ-5-2-04.pg @@ -22,12 +22,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "answerHints.pl", "parserAssignment.pl", @@ -70,7 +70,7 @@ $BR $BR \( \displaystyle F(s) = {\mathcal L}\left\lbrace $ft \right\rbrace = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/02-Shifts-and-IVPs/KJ-5-2-09.pg b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/02-Shifts-and-IVPs/KJ-5-2-09.pg index 7f2c594f16..880d9c7f42 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/02-Shifts-and-IVPs/KJ-5-2-09.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/02-Shifts-and-IVPs/KJ-5-2-09.pg @@ -21,12 +21,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "answerHints.pl", "parserAssignment.pl", @@ -69,7 +69,7 @@ $BR $BR \( \displaystyle F(s) = {\mathcal L}\left\lbrace $ft \right\rbrace = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/02-Shifts-and-IVPs/KJ-5-2-10.pg b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/02-Shifts-and-IVPs/KJ-5-2-10.pg index b994e79c44..51e7f6fcc7 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/02-Shifts-and-IVPs/KJ-5-2-10.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/02-Shifts-and-IVPs/KJ-5-2-10.pg @@ -21,12 +21,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "answerHints.pl", "parserAssignment.pl", @@ -66,7 +66,7 @@ $BR $BR \( \displaystyle F(s) = {\mathcal L}\left\lbrace $ft \right\rbrace = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/02-Shifts-and-IVPs/KJ-5-2-17.pg b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/02-Shifts-and-IVPs/KJ-5-2-17.pg index 442bce3975..59ae6f93cf 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/02-Shifts-and-IVPs/KJ-5-2-17.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/02-Shifts-and-IVPs/KJ-5-2-17.pg @@ -21,12 +21,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "answerHints.pl", "parserAssignment.pl", @@ -68,7 +68,7 @@ $BR $BR \( \displaystyle f(t) = {\mathcal L}^{-1} \left\lbrace $Fs \right\rbrace = \) \{ ans_rule(50) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/02-Shifts-and-IVPs/KJ-5-2-19.pg b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/02-Shifts-and-IVPs/KJ-5-2-19.pg index 00ed175236..66577d55ce 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/02-Shifts-and-IVPs/KJ-5-2-19.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/02-Shifts-and-IVPs/KJ-5-2-19.pg @@ -22,12 +22,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "answerHints.pl", "parserAssignment.pl", @@ -71,7 +71,7 @@ $BR $BR \( \displaystyle f(t) = {\mathcal L}^{-1} \left\lbrace $Fs \right\rbrace = \) \{ ans_rule(50) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/02-Shifts-and-IVPs/KJ-5-2-20.pg b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/02-Shifts-and-IVPs/KJ-5-2-20.pg index 6e279ab9c8..71285bcae7 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/02-Shifts-and-IVPs/KJ-5-2-20.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/02-Shifts-and-IVPs/KJ-5-2-20.pg @@ -22,12 +22,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "answerHints.pl", "parserAssignment.pl", @@ -74,7 +74,7 @@ $BR $BR \( \displaystyle f(t) = {\mathcal L}^{-1} \left\lbrace $Fs \right\rbrace = \) \{ ans_rule(50) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/02-Shifts-and-IVPs/KJ-5-2-23.pg b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/02-Shifts-and-IVPs/KJ-5-2-23.pg index 99a36aacc7..4cb9852b15 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/02-Shifts-and-IVPs/KJ-5-2-23.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/02-Shifts-and-IVPs/KJ-5-2-23.pg @@ -22,12 +22,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "answerHints.pl", "parserAssignment.pl", @@ -72,9 +72,9 @@ Consider the function \[ f(t) = \left\lbrace \begin{array}{ l l } 0 & \mbox{ if $ITEM Use the graph of this function to write it in terms of the Heaviside function. Use \( h(t-a) \) for the Heaviside function shifted \( a \) units horizontally. $BR $BR -\( f(t) = \) +\( f(t) = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $ITEMSEP $ITEM Find the Laplace transform \( F(s) = {\mathcal L}\left\lbrace f(t) \right\rbrace \). @@ -82,7 +82,7 @@ $BR $BR \( \displaystyle F(s) = {\mathcal L}\left\lbrace f(t) \right\rbrace = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} \{ EndList('OL', type=>'a') \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/02-Shifts-and-IVPs/KJ-5-2-26.pg b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/02-Shifts-and-IVPs/KJ-5-2-26.pg index 91598c38af..bb298530bc 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/02-Shifts-and-IVPs/KJ-5-2-26.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/02-Shifts-and-IVPs/KJ-5-2-26.pg @@ -21,12 +21,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "answerHints.pl", "parserAssignment.pl", @@ -73,9 +73,9 @@ Consider the function \[ f(t) = \left\lbrace \begin{array}{ l l } 0 & \mbox{ if $ITEM Use the graph of this function to write it in terms of the Heaviside function. Use \( h(t-a) \) for the Heaviside function shifted \( a \) units horizontally. $BR $BR -\( f(t) = \) +\( f(t) = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $ITEMSEP $ITEM Find the Laplace transform \( F(s) = {\mathcal L}\left\lbrace f(t) \right\rbrace \) for \( s \neq 0 \). @@ -83,7 +83,7 @@ $BR $BR \( \displaystyle F(s) = {\mathcal L}\left\lbrace f(t) \right\rbrace = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} \{ EndList('OL', type=>'a') \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/02-Shifts-and-IVPs/KJ-5-2-27.pg b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/02-Shifts-and-IVPs/KJ-5-2-27.pg index 93d19f287b..38e5a58a6b 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/02-Shifts-and-IVPs/KJ-5-2-27.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/02-Shifts-and-IVPs/KJ-5-2-27.pg @@ -22,12 +22,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "answerHints.pl", "parserAssignment.pl", @@ -72,7 +72,7 @@ $BR $BR \( \displaystyle F(s) = {\mathcal L}\left\lbrace f(t) \right\rbrace = \) \{ ans_rule(60) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/02-Shifts-and-IVPs/KJ-5-2-34.pg b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/02-Shifts-and-IVPs/KJ-5-2-34.pg index c7ac79e372..0d548e7c02 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/02-Shifts-and-IVPs/KJ-5-2-34.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/02-Shifts-and-IVPs/KJ-5-2-34.pg @@ -22,12 +22,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "answerHints.pl", "parserAssignment.pl", @@ -80,7 +80,7 @@ BEGIN_TEXT The graph of \( f(t) \) is given below: $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>200,height=>200,tex_size=>500 ) \} $BR (Click on graph to enlarge) @@ -94,7 +94,7 @@ $BR $BR \( f(t) = \) \{ ans_rule(60) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $ITEMSEP $ITEM Find the Laplace transform \( F(s) = {\mathcal L}\left\lbrace f(t) \right\rbrace \) for \( s \neq 0 \). @@ -102,7 +102,7 @@ $BR $BR \( \displaystyle F(s) = {\mathcal L}\left\lbrace f(t) \right\rbrace = \) \{ ans_rule(60) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} \{ EndList('OL', type=>'a') \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/02-Shifts-and-IVPs/KJ-5-2-35.pg b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/02-Shifts-and-IVPs/KJ-5-2-35.pg index b263f1defb..d24b28bbc8 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/02-Shifts-and-IVPs/KJ-5-2-35.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/02-Shifts-and-IVPs/KJ-5-2-35.pg @@ -21,12 +21,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "answerHints.pl", "parserAssignment.pl", @@ -80,7 +80,7 @@ BEGIN_TEXT The graph of \( f(t) \) is given below: $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>200,height=>200,tex_size=>500 ) \} $BR (Click on graph to enlarge) @@ -94,7 +94,7 @@ $BR $BR \( f(t) = \) \{ ans_rule(60) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $ITEMSEP $ITEM Find the Laplace transform \( F(s) = {\mathcal L}\left\lbrace f(t) \right\rbrace \) for \( s \neq 0 \). @@ -102,7 +102,7 @@ $BR $BR \( \displaystyle F(s) = {\mathcal L}\left\lbrace f(t) \right\rbrace = \) \{ ans_rule(60) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} \{ EndList('OL', type=>'a') \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/02-Shifts-and-IVPs/KJ-5-2-42.pg b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/02-Shifts-and-IVPs/KJ-5-2-42.pg index 205dab341d..a08519aa95 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/02-Shifts-and-IVPs/KJ-5-2-42.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/02-Shifts-and-IVPs/KJ-5-2-42.pg @@ -21,12 +21,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "parserFunction.pl", "PGcourse.pl" @@ -81,7 +81,7 @@ $BR \{ ans_rule(40) \} \( = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $ITEMSEP $ITEM Solve your equation for \( Y(s) \). diff --git a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/03-Partial-fractions/KJ-5-3-06.pg b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/03-Partial-fractions/KJ-5-3-06.pg index 6a3c10c7f9..d5fb570ccc 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/03-Partial-fractions/KJ-5-3-06.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/03-Partial-fractions/KJ-5-3-06.pg @@ -19,12 +19,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "answerHints.pl", "parserAssignment.pl", @@ -50,17 +50,17 @@ $c = random(9,12,1); $mc = new_checkbox_multiple_choice(); $mc -> qa ( -"Select ALL terms below that occur in the general form of the complete partial fraction decomposition of \( F(s) \). The capital letters A, B, C, . . . , L denote constants.", +"Select ALL terms below that occur in the general form of the complete partial fraction decomposition of \( F(s) \). The capital letters A, B, C, . . . , L denote constants.", "\( \displaystyle\frac{Bs+C}{s^2+$b} \) $BR", -"\( \displaystyle\frac{Es+F}{(s^2+$b)^2} \) $BR", -"\( \displaystyle\frac{G}{s+$c} \) $BR", +"\( \displaystyle\frac{Es+F}{(s^2+$b)^2} \) $BR", +"\( \displaystyle\frac{G}{s+$c} \) $BR", "\( \displaystyle\frac{J}{(s+$c)^2} \) $BR" ); $mc -> extra( "\( \displaystyle\frac{A}{s^2+$b} \) $BR", "\( \displaystyle\frac{D}{(s^2+$b)^2} \) $BR", -"\( \displaystyle\frac{Hs+I}{s+$c} \) $BR", +"\( \displaystyle\frac{Hs+I}{s+$c} \) $BR", "\( \displaystyle\frac{Ks+L}{(s+$c)^2} \) $BR" ); diff --git a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/03-Partial-fractions/KJ-5-3-12.pg b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/03-Partial-fractions/KJ-5-3-12.pg index cb31eb6b26..58edcebd7b 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/03-Partial-fractions/KJ-5-3-12.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/03-Partial-fractions/KJ-5-3-12.pg @@ -21,12 +21,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "parserMultiAnswer.pl", "PGcourse.pl" @@ -50,7 +50,7 @@ $aplusb = $a+$b; $C = random(1,5,1); $D = random(1,5,1); -$Fs = Compute("(($C+$D)*s + (-$C*$b - $D*$a))/(s^2 - $aplusb*s + $a*$b)")->reduce; +$Fs = Compute("(($C+$D)*s + (-$C*$b - $D*$a))/(s^2 - $aplusb*s + $a*$b)")->reduce; $fac1 = Compute("$C/(s-$a)"); $fac2 = Compute("$D/(s-$b)"); $ft = Compute("$C*e^($a*t) + $D*e^($b*t)"); @@ -98,10 +98,10 @@ $ITEM Find the inverse Laplace transform of \( \displaystyle F(s) \). $BR $BR \( \displaystyle f(t) = {\mathcal L}^{-1} \left\lbrace F(s) \right\rbrace = \) -\{ - ans_rule(50) +\{ + ans_rule(50) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} \{ EndList('OL', type=>'a') \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/03-Partial-fractions/KJ-5-3-15.pg b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/03-Partial-fractions/KJ-5-3-15.pg index 558d7ae78b..0109a85d99 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/03-Partial-fractions/KJ-5-3-15.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/03-Partial-fractions/KJ-5-3-15.pg @@ -21,12 +21,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "parserMultiAnswer.pl", "parserFunction.pl", @@ -54,7 +54,7 @@ $B = random(1,5,1); do {$C = random(1,5,1); } until ($C != $B); $D = random(1,6,1); -$Fs = Compute("(($B+$D)*s^2 + $C*s + $D*$asqr)/(s^3 + $asqr*s)")->reduce; +$Fs = Compute("(($B+$D)*s^2 + $C*s + $D*$asqr)/(s^3 + $asqr*s)")->reduce; $fac1 = Compute("($B*s+$C)/(s^2+$asqr)"); $fac2 = Compute("$D/s"); $ft = Compute("$B*cos($a*t) + $C/$a*sin($a*t) + $D"); @@ -103,7 +103,7 @@ $BR $BR \( \displaystyle f(t) = {\mathcal L}^{-1} \left\lbrace F(s) \right\rbrace = \) \{ ans_rule(50) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} \{ EndList('OL', type=>'a') \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/03-Partial-fractions/KJ-5-3-17.pg b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/03-Partial-fractions/KJ-5-3-17.pg index a1dc245766..f0252d67e1 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/03-Partial-fractions/KJ-5-3-17.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/03-Partial-fractions/KJ-5-3-17.pg @@ -22,12 +22,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "answerHints.pl", "parserMultiAnswer.pl", @@ -53,7 +53,7 @@ parserFunction("h(t)" => "1"); $B = random(1,4,1); $A = random(5,9,1); -$Fs = Compute("($B*s + ($A - $B))/(s^3 -3*s^2 + 3*s - 1)")->reduce; +$Fs = Compute("($B*s + ($A - $B))/(s^3 -3*s^2 + 3*s - 1)")->reduce; $fac1 = Compute("$A/((s-1)^3)"); $fac2 = Compute("$B/((s-1)^2)"); $ft = Compute("$A/2*e^t*t^2 + $B*e^t*t"); @@ -102,7 +102,7 @@ $BR $BR \( \displaystyle f(t) = {\mathcal L}^{-1} \left\lbrace F(s) \right\rbrace = \) \{ ans_rule(50) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} \{ EndList('OL', type=>'a') \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/03-Partial-fractions/KJ-5-3-20.pg b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/03-Partial-fractions/KJ-5-3-20.pg index e680130f7e..7689897fb8 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/03-Partial-fractions/KJ-5-3-20.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/03-Partial-fractions/KJ-5-3-20.pg @@ -20,12 +20,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "parserFunction.pl", "PGcourse.pl" @@ -75,18 +75,18 @@ Consider the initial value problem \{ BeginList('OL', type=>'a') \} -$ITEM Take the Laplace transform of both sides of the -given differential equation to create the corresponding -algebraic equation. Denote the Laplace transform of -\( y(t) \) by \( Y(s) \). Do not move any terms from -one side of the equation to the other (until you get +$ITEM Take the Laplace transform of both sides of the +given differential equation to create the corresponding +algebraic equation. Denote the Laplace transform of +\( y(t) \) by \( Y(s) \). Do not move any terms from +one side of the equation to the other (until you get to part (b) below). $BR $BR \{ ans_rule(40) \} \( = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $ITEMSEP $ITEM Solve your equation for \( Y(s) \). diff --git a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/03-Partial-fractions/KJ-5-3-23.pg b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/03-Partial-fractions/KJ-5-3-23.pg index 0c7420a4ea..51d9232c3b 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/03-Partial-fractions/KJ-5-3-23.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/03-Partial-fractions/KJ-5-3-23.pg @@ -20,12 +20,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "parserFunction.pl", "PGcourse.pl" @@ -82,7 +82,7 @@ $BR \{ ans_rule(40) \} \( = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $ITEMSEP $ITEM Solve your equation for \( Y(s) \). diff --git a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/03-Partial-fractions/KJ-5-3-24.pg b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/03-Partial-fractions/KJ-5-3-24.pg index 9ce3fb6d11..ee8cba6f53 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/03-Partial-fractions/KJ-5-3-24.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/03-Partial-fractions/KJ-5-3-24.pg @@ -20,12 +20,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "parserFunction.pl", "PGcourse.pl" @@ -79,7 +79,7 @@ $BR \{ ans_rule(40) \} \( = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $ITEMSEP $ITEM Solve your equation for \( Y(s) \). diff --git a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/03-Partial-fractions/KJ-5-3-29.pg b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/03-Partial-fractions/KJ-5-3-29.pg index 34d7dbf2bb..6e3ba77fa2 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/03-Partial-fractions/KJ-5-3-29.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/03-Partial-fractions/KJ-5-3-29.pg @@ -20,12 +20,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "parserFunction.pl", "PGcourse.pl" @@ -46,7 +46,7 @@ s=>"Real" # Redefine the Heaviside function so the answer checker will work on [-1,1]. #parserFunction("h(t)" => "1.5 * cos(e*t) + 5*pi/3 + arctan(t)"); -# Define the Heaviside step function +# Define the Heaviside step function # (reference: http://webwork.maa.org/wiki/StepFunctions) Context()->functions->redefine("step",from=>"LegacyNumeric"); @@ -109,7 +109,7 @@ $BR \{ ans_rule(40) \} \( = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $ITEMSEP $ITEM Solve your equation for \( Y(s) \). @@ -119,7 +119,7 @@ $BR \{ ans_rule(60) \} $ITEMSEP -$ITEM Take the inverse Laplace transform of both sides of the previous equation to solve for \( y(t) \). +$ITEM Take the inverse Laplace transform of both sides of the previous equation to solve for \( y(t) \). $BR If necessary, use \(h(t)\) to denote the Heaviside function \(\displaystyle h(t) = \begin{cases} 0 & \text{if } t < 0 \\ 1 & \text{if } 0 \leq t \end{cases} \). $BR $BR diff --git a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/04-Periodic-functions/KJ-5-4-04.pg b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/04-Periodic-functions/KJ-5-4-04.pg index a18bca8dc0..8071b816e8 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/04-Periodic-functions/KJ-5-4-04.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/04-Periodic-functions/KJ-5-4-04.pg @@ -22,12 +22,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "answerHints.pl", "parserAssignment.pl", @@ -94,7 +94,7 @@ BEGIN_TEXT Find the Laplace transform of the periodic function \( f(t) \) whose graph is given below. $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>200,height=>200,tex_size=>500 ) \} $BR (Click on graph to enlarge) @@ -115,7 +115,7 @@ $BR \( \displaystyle \phantom{F(s) = {\mathcal L}\left\lbrace f(t) \right\rbrace} = \) \{ ans_rule(60) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; @@ -128,17 +128,17 @@ $showPartialCorrectAnswers = 0; ANS( $answerfrac->cmp() ); -ANS( $answera->cmp() +ANS( $answera->cmp() ->withPostFilter(AnswerHints( Formula("$a * e^(-s*t)") => "Don't forget the differential dt" )) ); -ANS( $answerb->cmp() +ANS( $answerb->cmp() ->withPostFilter(AnswerHints( Formula("$b * e^(-s*t)") => "Don't forget the differential dt" )) ); -ANS( $answerc->cmp() +ANS( $answerc->cmp() # ->withPostFilter(AnswerHints( # Formula("0 * e^(-s*t)") => "Don't forget the differential dt" # )) diff --git a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/04-Periodic-functions/KJ-5-4-05.pg b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/04-Periodic-functions/KJ-5-4-05.pg index 8305b72aec..1001566455 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/04-Periodic-functions/KJ-5-4-05.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/04-Periodic-functions/KJ-5-4-05.pg @@ -21,12 +21,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "answerHints.pl", "parserAssignment.pl", @@ -92,7 +92,7 @@ BEGIN_TEXT Find the Laplace transform of the periodic function \( f(t) \) whose graph is given below. $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>200,height=>200,tex_size=>500 ) \} $BR (Click on graph to enlarge) @@ -111,7 +111,7 @@ $BR \( \displaystyle \phantom{F(s) = {\mathcal L}\left\lbrace f(t) \right\rbrace} = \) \{ ans_rule(60) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; @@ -124,12 +124,12 @@ $showPartialCorrectAnswers = 0; ANS( $answerfrac->cmp() ); -ANS( $answera->cmp() +ANS( $answera->cmp() ->withPostFilter(AnswerHints( Formula("$a*t*e^(-s*t)") => "Don't forget the differential dt" )) ); -ANS( $answerb->cmp() +ANS( $answerb->cmp() ->withPostFilter(AnswerHints( Formula("-$a*(t-$p)*e^(-s*t)") => "Don't forget the differential dt" )) diff --git a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/04-Periodic-functions/KJ-5-4-12.pg b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/04-Periodic-functions/KJ-5-4-12.pg index 36d5dabbbd..6e8a911b8f 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/04-Periodic-functions/KJ-5-4-12.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/04-Periodic-functions/KJ-5-4-12.pg @@ -20,12 +20,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "answerHints.pl", "parserAssignment.pl", @@ -89,7 +89,7 @@ $BR \( \displaystyle \phantom{F(s) = {\mathcal L}\left\lbrace f(t) \right\rbrace} = \) \{ ans_rule(60) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; @@ -102,7 +102,7 @@ $showPartialCorrectAnswers = 0; ANS( $answerfrac->cmp() ); -ANS( $answerint->cmp() +ANS( $answerint->cmp() ->withPostFilter(AnswerHints( Formula("$ft * e^(-s*t)") => "Don't forget the differential dt" )) diff --git a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/04-Periodic-functions/KJ-5-4-21.pg b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/04-Periodic-functions/KJ-5-4-21.pg index b6c7f65474..de21366f2a 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/04-Periodic-functions/KJ-5-4-21.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/04-Periodic-functions/KJ-5-4-21.pg @@ -20,12 +20,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "answerHints.pl", "parserAssignment.pl", @@ -96,15 +96,15 @@ if ($displayMode eq 'TeX') { $conc = "\(\displaystyle c_i = \left\lbrace". "\begin{array}{c}". - ans_rule(10). - "\mbox{ \ if \ } 0 \leq t < \frac{1}{2}, \\". - ans_rule(10). + ans_rule(10). + "\mbox{ \ if \ } 0 \leq t < \frac{1}{2}, \\". + ans_rule(10). "\mbox{ \ if \ } \frac{1}{2} \leq t < 1.". "\end{array}". - "\right.". + "\right.". '\)'; } else { - $conc = + $conc = BeginTable(center=>0). Row([ '\( c_i = \displaystyle \Bigg\lbrace \)', @@ -120,8 +120,8 @@ Context()->texStrings; BEGIN_TEXT $BR -where -$conc +where +$conc $BR and \( c_i(t + \) \{ ans_rule(4) \} \( ) = c_i(t) \). @@ -133,7 +133,7 @@ $BR \( \displaystyle Q(s) = {\mathcal L}\left\lbrace q(t) \right\rbrace = \) \{ ans_rule(60) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} \{ EndList('OL', type=>'a') \} END_TEXT @@ -145,14 +145,14 @@ Context()->normalStrings; $showPartialCorrectAnswers = 0; -ANS( $answera->cmp() +ANS( $answera->cmp() ->withPostFilter(AnswerHints( Formula("$a*10^6") => "Express this value in million gallons per day" )) ); ANS( $answerb->cmp() ); ANS( $answerc->cmp() ); -ANS( $answerd->cmp() +ANS( $answerd->cmp() ->withPostFilter(AnswerHints( Formula("$d*10^(-6)") => "Express this value in kg per million gallons" )) diff --git a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/04-Periodic-functions/KJ-5-4-25.pg b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/04-Periodic-functions/KJ-5-4-25.pg index 68465e470e..4304cf76ba 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/04-Periodic-functions/KJ-5-4-25.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/04-Periodic-functions/KJ-5-4-25.pg @@ -22,12 +22,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "answerHints.pl", "parserAssignment.pl", @@ -71,7 +71,7 @@ where \( a, b, c \) are constants and \( f(t) \) is a known function. We can vi $BR $BR -Suppose an input \( f(t) = $ft \), when applied to the linear system above, produces the output \( y(t) = $yt, \ t\geq 0. \) +Suppose an input \( f(t) = $ft \), when applied to the linear system above, produces the output \( y(t) = $yt, \ t\geq 0. \) \{ BeginList('OL', type=>'a') \} @@ -93,7 +93,7 @@ $BR \( \displaystyle \Theta(s) = \) \{ ans_rule(60) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} \{ EndList('OL', type=>'a') \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/04-Periodic-functions/KJ-5-4-26.pg b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/04-Periodic-functions/KJ-5-4-26.pg index 438ea18236..8b3a40e8e7 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/04-Periodic-functions/KJ-5-4-26.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/04-Periodic-functions/KJ-5-4-26.pg @@ -21,12 +21,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "answerHints.pl", "parserAssignment.pl", @@ -76,7 +76,7 @@ where \( a, b, c \) are constants and \( f(t) \) is a known function. We can vi $BR $BR -Suppose an input \( f(t) = $ft \), when applied to the linear system above, produces the output \( y(t) = $yt, \ t\geq 0. \) +Suppose an input \( f(t) = $ft \), when applied to the linear system above, produces the output \( y(t) = $yt, \ t\geq 0. \) \{ BeginList('OL', type=>'a') \} @@ -106,7 +106,7 @@ $BR New \( \displaystyle y(t) = \) \{ ans_rule(60) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} \{ EndList('OL', type=>'a') \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/06-Convolution/KJ-5-6-02.pg b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/06-Convolution/KJ-5-6-02.pg index 5f75e7d390..575c4e6aa6 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/06-Convolution/KJ-5-6-02.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/06-Convolution/KJ-5-6-02.pg @@ -21,12 +21,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "answerHints.pl", "parserAssignment.pl", @@ -78,12 +78,12 @@ $ITEM By computing \( {\mathcal L}^{-1} \left\lbrace F(s)G(s) \right\rbrace \) $BR $BR \( \displaystyle (f \ast g)(t) = {\mathcal L}^{-1} \left\lbrace F(s)G(s) \right\rbrace = {\mathcal L}^{-1} \big\lbrace \) -\{ ans_rule(20) \} +\{ ans_rule(20) \} \( \big\rbrace \) $BR $BR \( \displaystyle \phantom{(f \ast g)(t)} = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} \{ EndList('OL', type=>'a') \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/06-Convolution/KJ-5-6-04.pg b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/06-Convolution/KJ-5-6-04.pg index 22f2176d45..0160d92ed6 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/06-Convolution/KJ-5-6-04.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/06-Convolution/KJ-5-6-04.pg @@ -22,12 +22,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "PGcourse.pl" ); @@ -80,12 +80,12 @@ $ITEM By computing \( {\mathcal L}^{-1} \left\lbrace F(s)G(s) \right\rbrace \) $BR $BR \( \displaystyle (f \ast g)(t) = {\mathcal L}^{-1} \left\lbrace F(s)G(s) \right\rbrace = {\mathcal L}^{-1} \big\lbrace \) -\{ ans_rule(20) \} +\{ ans_rule(20) \} \( \big\rbrace \) $BR $BR \( \displaystyle \phantom{(f \ast g)(t)} = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} \{ EndList('OL', type=>'a') \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/06-Convolution/KJ-5-6-05.pg b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/06-Convolution/KJ-5-6-05.pg index 74a1fe1c7f..6bbc50d0e1 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/06-Convolution/KJ-5-6-05.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/06-Convolution/KJ-5-6-05.pg @@ -21,12 +21,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "answerHints.pl", "parserAssignment.pl", @@ -81,12 +81,12 @@ $ITEM By computing \( {\mathcal L}^{-1} \left\lbrace F(s)G(s) \right\rbrace \) $BR $BR \( \displaystyle (f \ast g)(t) = {\mathcal L}^{-1} \left\lbrace F(s)G(s) \right\rbrace = {\mathcal L}^{-1} \big\lbrace \) -\{ ans_rule(20) \} +\{ ans_rule(20) \} \( \big\rbrace \) $BR $BR \( \displaystyle \phantom{(f \ast g)(t)} = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} \{ EndList('OL', type=>'a') \} END_TEXT diff --git a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/06-Convolution/KJ-5-6-18.pg b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/06-Convolution/KJ-5-6-18.pg index 0741b5a711..a90e503f51 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/06-Convolution/KJ-5-6-18.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/06-Convolution/KJ-5-6-18.pg @@ -20,12 +20,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "answerHints.pl", "parserAssignment.pl", @@ -78,7 +78,7 @@ BEGIN_TEXT Consider the following integral equation, so called because the unknown dependent variable, \( y \), appears within an integral: \[ \int_0^t \sin($a (t-w))\, y(w) \ dw = $b t^2. \] -This equation is defined for \( t \geq 0 \). +This equation is defined for \( t \geq 0 \). \{ BeginList('OL', type=>'a') \} diff --git a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/06-Convolution/KJ-5-6-23.pg b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/06-Convolution/KJ-5-6-23.pg index ea4e41ad1c..0424c807b0 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/06-Convolution/KJ-5-6-23.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/06-Convolution/KJ-5-6-23.pg @@ -22,12 +22,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "answerHints.pl", "parserAssignment.pl", @@ -80,7 +80,7 @@ Context()->texStrings; BEGIN_TEXT In an integro-differential equation, the unknown dependent variable \( y \) appears within an integral, and its derivative \( dy/dt \) also appears. Consider the following initial value problem, defined for \( t \geq 0 \): -\[ \displaystyle\frac{dy}{dt} + $csq \int_0^t y(t-w)\, e^{-$a w} \ dw = $b, \quad \quad y(0) = 0. \] +\[ \displaystyle\frac{dy}{dt} + $csq \int_0^t y(t-w)\, e^{-$a w} \ dw = $b, \quad \quad y(0) = 0. \] \{ BeginList('OL', type=>'a') \} diff --git a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/06-Convolution/KJ-5-6-27.pg b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/06-Convolution/KJ-5-6-27.pg index ed944f6e99..e286fe3b97 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/06-Convolution/KJ-5-6-27.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/06-Convolution/KJ-5-6-27.pg @@ -21,12 +21,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "answerHints.pl", "parserAssignment.pl", @@ -81,7 +81,7 @@ Context()->texStrings; BEGIN_TEXT Consider the following initial value problem, defined for \( t \geq 0 \): -\[ \displaystyle\frac{dy}{dt} = $f1t \ast $f2t, \quad \quad y(0) = $y0. \] +\[ \displaystyle\frac{dy}{dt} = $f1t \ast $f2t, \quad \quad y(0) = $y0. \] \{ BeginList('OL', type=>'a') \} diff --git a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/06-Convolution/KJ-5-6-28.pg b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/06-Convolution/KJ-5-6-28.pg index 86c7b8e065..17808329b4 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/06-Convolution/KJ-5-6-28.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/06-Convolution/KJ-5-6-28.pg @@ -21,12 +21,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "answerHints.pl", "parserAssignment.pl", @@ -77,7 +77,7 @@ Context()->texStrings; BEGIN_TEXT Consider the following initial value problem, defined for \( t \geq 0 \): -\[ y' - $a y = \int_0^t (t-w)\, e^{$a w} \ dw, \quad \quad y(0) = $y0. \] +\[ y' - $a y = \int_0^t (t-w)\, e^{$a w} \ dw, \quad \quad y(0) = $y0. \] \{ BeginList('OL', type=>'a') \} diff --git a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/07-Delta-function/KJ-5-7-01.pg b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/07-Delta-function/KJ-5-7-01.pg index 68f6cbc71e..32de129ec5 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/07-Delta-function/KJ-5-7-01.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/07-Delta-function/KJ-5-7-01.pg @@ -20,12 +20,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "answerHints.pl", "parserAssignment.pl", diff --git a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/07-Delta-function/KJ-5-7-02.pg b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/07-Delta-function/KJ-5-7-02.pg index b873f79dcd..e4c8f792ab 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/07-Delta-function/KJ-5-7-02.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/07-Delta-function/KJ-5-7-02.pg @@ -20,12 +20,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "answerHints.pl", "parserAssignment.pl", diff --git a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/07-Delta-function/KJ-5-7-07.pg b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/07-Delta-function/KJ-5-7-07.pg index 993acd1678..eeefc21071 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/07-Delta-function/KJ-5-7-07.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/07-Delta-function/KJ-5-7-07.pg @@ -20,12 +20,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "answerHints.pl", "parserAssignment.pl", @@ -62,7 +62,7 @@ $answer = Compute("h($c-t) - h($a-t)")->with(test_at=>[[$a-1],[$a-0.5],[$a-0.1], Context()->texStrings; BEGIN_TEXT -Sketch the graph of the function +Sketch the graph of the function \[ k(t) = \int_0^t \left( \delta(w-$a) -\delta(w-$c) \right) dw, \quad 0\leq t < \infty. \] Use the graph to express \( k(t) \) in terms of shifts of the Heaviside step function \( h(t) \). $BR diff --git a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/07-Delta-function/KJ-5-7-10.pg b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/07-Delta-function/KJ-5-7-10.pg index 4df5f2c129..e08b7d938f 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/07-Delta-function/KJ-5-7-10.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/07-Delta-function/KJ-5-7-10.pg @@ -20,12 +20,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "answerHints.pl", "parserAssignment.pl", diff --git a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/07-Delta-function/KJ-5-7-12.pg b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/07-Delta-function/KJ-5-7-12.pg index 586447cfab..2c84f03460 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/07-Delta-function/KJ-5-7-12.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/07-Delta-function/KJ-5-7-12.pg @@ -22,12 +22,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "answerHints.pl", "parserAssignment.pl", @@ -81,7 +81,7 @@ Context()->texStrings; BEGIN_TEXT Consider the following initial value problem, in which an input of large amplitude and short duration has been idealized as a delta function. -\[ y' + y = $a + \delta(t - $b), \quad \quad y(0) = 0. \] +\[ y' + y = $a + \delta(t - $b), \quad \quad y(0) = 0. \] \{ BeginList('OL', type=>'a') \} @@ -130,15 +130,15 @@ if ($displayMode eq 'TeX') { $piecewise = "\(\displaystyle y(t) = \left\lbrace". "\begin{array}{c}". - ans_rule(20). - "\mbox{ \ if \ } 0 \leq t < $b, \\". - ans_rule(20). + ans_rule(20). + "\mbox{ \ if \ } 0 \leq t < $b, \\". + ans_rule(20). "\mbox{ \ if \ } $b \leq t \leq \infty.". "\end{array}". - "\right.". + "\right.". '\)'; } else { - $piecewise = + $piecewise = BeginTable(center=>0). Row([ "\( y(t) =\) ".' \( \displaystyle \Bigg\lbrace \)', diff --git a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/07-Delta-function/KJ-5-7-15.pg b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/07-Delta-function/KJ-5-7-15.pg index 5e64fde2e2..90bd0202c9 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/07-Delta-function/KJ-5-7-15.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/07-Delta-function/KJ-5-7-15.pg @@ -21,12 +21,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "answerHints.pl", "parserAssignment.pl", @@ -82,7 +82,7 @@ Context()->texStrings; BEGIN_TEXT Consider the following initial value problem, in which an input of large amplitude and short duration has been idealized as a delta function. -\[ y'' + $asq \pi^2 y = $a \pi \delta(t - $b), \quad \quad y(0) = 0, \quad y'(0) = 0. \] +\[ y'' + $asq \pi^2 y = $a \pi \delta(t - $b), \quad \quad y(0) = 0, \quad y'(0) = 0. \] \{ BeginList('OL', type=>'a') \} @@ -131,15 +131,15 @@ if ($displayMode eq 'TeX') { $piecewise = "\(\displaystyle y(t) = \left\lbrace". "\begin{array}{c}". - ans_rule(20). - "\mbox{ \ if \ } 0 \leq t < $b, \\". - ans_rule(20). + ans_rule(20). + "\mbox{ \ if \ } 0 \leq t < $b, \\". + ans_rule(20). "\mbox{ \ if \ } $b \leq t \leq \infty.". "\end{array}". - "\right.". + "\right.". '\)'; } else { - $piecewise = + $piecewise = BeginTable(center=>0). Row([ "\( y(t) =\) ".' \( \displaystyle \Bigg\lbrace \)', diff --git a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/07-Delta-function/KJ-5-7-16.pg b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/07-Delta-function/KJ-5-7-16.pg index c25e853156..d0b8779716 100644 --- a/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/07-Delta-function/KJ-5-7-16.pg +++ b/OpenProblemLibrary/FortLewis/DiffEq/4-Laplace-transforms/07-Delta-function/KJ-5-7-16.pg @@ -21,12 +21,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "answerHints.pl", "parserAssignment.pl", @@ -82,7 +82,7 @@ Context()->texStrings; BEGIN_TEXT Consider the following initial value problem, in which an input of large amplitude and short duration has been idealized as a delta function. -\[ y'' - $a y' = \delta(t - $b), \quad \quad y(0) = $y0, \quad y'(0) = 0. \] +\[ y'' - $a y' = \delta(t - $b), \quad \quad y(0) = $y0, \quad y'(0) = 0. \] \{ BeginList('OL', type=>'a') \} @@ -131,15 +131,15 @@ if ($displayMode eq 'TeX') { $piecewise = "\(\displaystyle y(t) = \left\lbrace". "\begin{array}{c}". - ans_rule(20). - "\mbox{ \ if \ } 0 \leq t < $b, \\". - ans_rule(20). + ans_rule(20). + "\mbox{ \ if \ } 0 \leq t < $b, \\". + ans_rule(20). "\mbox{ \ if \ } $b \leq t \leq \infty.". "\end{array}". - "\right.". + "\right.". '\)'; } else { - $piecewise = + $piecewise = BeginTable(center=>0). Row([ "\( y(t) =\) ".' \( \displaystyle \Bigg\lbrace \)', diff --git a/OpenProblemLibrary/Hope/Calc1/00-00-Essays/Related_Rates_01_Oil_Spill.pg b/OpenProblemLibrary/Hope/Calc1/00-00-Essays/Related_Rates_01_Oil_Spill.pg index 0d493a94e6..ccda8a0643 100644 --- a/OpenProblemLibrary/Hope/Calc1/00-00-Essays/Related_Rates_01_Oil_Spill.pg +++ b/OpenProblemLibrary/Hope/Calc1/00-00-Essays/Related_Rates_01_Oil_Spill.pg @@ -16,7 +16,7 @@ ################################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", @@ -24,7 +24,7 @@ loadMacros( "parserNumberWithUnits.pl", "PGessaymacros.pl", "PGunion.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -63,8 +63,8 @@ $areaderiv = FormulaWithUnits("2 * (9857 / $r)","m^2/day"); Context()->texStrings; BEGIN_TEXT -The Deepwater Horizon oil spill in the Gulf of Mexico on April 20, 2010 was ${LQ}an environmental disaster of unprecedented proportions${RQ} and was a ${LQ}devastating blow to the resource-dependent economy of the region${RQ} [1]. -According to the Washington Post, it is estimated that \( 9857 \) cubic meters of oil per day spilled into the Gulf of Mexico on August 2, 2010 [2]. +The Deepwater Horizon oil spill in the Gulf of Mexico on April 20, 2010 was ${LQ}an environmental disaster of unprecedented proportions${RQ} and was a ${LQ}devastating blow to the resource-dependent economy of the region${RQ} [1]. +According to the Washington Post, it is estimated that \( 9857 \) cubic meters of oil per day spilled into the Gulf of Mexico on August 2, 2010 [2]. $BR $BR @@ -76,32 +76,32 @@ $BR $ITEM Find a formula for the volume of oil spilled, in cubic meters, \( t \) days after the start of the oil spill. Include units in your answer. $BR -\( V(t) = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp('units') \} +\( V(t) = \) \{ ans_rule(40) \} +\{ helpLink('units') \} $ITEMSEP $ITEM Find the derivative of your volume formula with respect to time. Include units in your answer. $BR \( \displaystyle \frac{dV}{dt} = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp('units') \} +\{ helpLink('units') \} $ITEMSEP $ITEM When the volume of the oil spill is \( 50,000 \ \mathrm{m^3} \), what is the radius of the hemisphere of oil? Include units in your answer. Give your answer accurate to 3 decimal places. $BR \( r = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp('units') \} +\{ helpLink('units') \} $ITEMSEP $ITEM Find the rate of change of the radius with respect to time when the volume of the oil spill is \( 50,000 \ \mathrm{m^3} \). Include units in your answer. $BR \( \displaystyle \frac{dr}{dt} = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp('units') \} +\{ helpLink('units') \} $ITEMSEP $ITEM Since only the oil that is in contact with seawater can mix with seawater, it is important to know how much of the surface area of the oil spill is in contact with seawater. Find the ${BBOLD}rate of change${EBOLD} of the hemisphere's surface area with respect to time when the volume of the oil spill is \( 50,000 \ \mathrm{m^3} \). Include units in your answer. You should assume that only the top of the hemispherical dome of oil comes in contact with seawater (not the flat bottom, which is incontact with the ocean floor). $BR \( \displaystyle \frac{dA}{dt} = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp('units') \} +\{ helpLink('units') \} $ITEMSEP diff --git a/OpenProblemLibrary/Hope/Calc1/03-04-Rates-of-change/Thomas12-03-04-16a.pg b/OpenProblemLibrary/Hope/Calc1/03-04-Rates-of-change/Thomas12-03-04-16a.pg index 0ba83a1694..c16d20e759 100644 --- a/OpenProblemLibrary/Hope/Calc1/03-04-Rates-of-change/Thomas12-03-04-16a.pg +++ b/OpenProblemLibrary/Hope/Calc1/03-04-Rates-of-change/Thomas12-03-04-16a.pg @@ -26,7 +26,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGgraphmacros.pl", "unionTables.pl", "contextInequalities.pl", @@ -45,7 +45,7 @@ Context("Inequalities")->variables->are(t=>'Real'); Context()->flags->set(formatStudentAnswer=>'parsed'); ################################################ -# +# # The horizontal line plot (image of s) # @@ -73,7 +73,7 @@ $gr[0] -> arrowTo(2.5,0,'blue',3); ################################################## # # Values (t,y) for the piecewise linear function -# +# @t = (0..6); @@ -83,14 +83,14 @@ $y[1] = random(-1,1,2) * random(1,4,1); $y[2] = $y[1]; $t2 = random(2,3,1); $t3 = $t2 + 1; -if ( $t2 == 2 ) { - $y[3] = -1*$y[1]; +if ( $t2 == 2 ) { + $y[3] = -1*$y[1]; $y[4] = $y[3]; $y[5] = $y[3]; -} else { +} else { $y[3] = $y[2]; $y[4] = -1*$y[1]; - $y[5] = $y[4]; + $y[5] = $y[4]; } $y[6] = 0; @@ -165,28 +165,28 @@ $ECENTER. $PAR. "The position of \( P \) as a function of time \( t \) is shown in -figure B. (Note: The graph of +figure B. (Note: The graph of \( s \) shown in figure B is ${BITALIC}not${EITALIC} -the path of the particle; it is a plot of +the path of the particle; it is a plot of the particle's position versus time.) $BR $BR -(a) When is \( P \) moving right? " . +(a) When is \( P \) moving right? " . ans_rule(20).$SPACE. -AnswerFormatHelp("inequalities","help (intervals or inequalities)"). +helpLink("inequalities","help (intervals or inequalities)"). "$BR $BR (b) When is \( P \) standing still? ". ans_rule(20).$SPACE. -AnswerFormatHelp("inequalities","help (intervals or inequalities)"). +helpLink("inequalities","help (intervals or inequalities)"). "$BR $BR (c) When is the velocity of \( P \) negative? ". ans_rule(20).$SPACE. -AnswerFormatHelp("inequalities","help (intervals or inequalities)"). +helpLink("inequalities","help (intervals or inequalities)"). "$BR $BR -(d) On a sheet of paper, graph the particle's velocity and speed +(d) On a sheet of paper, graph the particle's velocity and speed (where defined)." , $BCENTER. diff --git a/OpenProblemLibrary/Hope/Calc1/03-04-Rates-of-change/Thomas12-03-04-16b.pg b/OpenProblemLibrary/Hope/Calc1/03-04-Rates-of-change/Thomas12-03-04-16b.pg index f88da63481..a3abc73843 100644 --- a/OpenProblemLibrary/Hope/Calc1/03-04-Rates-of-change/Thomas12-03-04-16b.pg +++ b/OpenProblemLibrary/Hope/Calc1/03-04-Rates-of-change/Thomas12-03-04-16b.pg @@ -26,7 +26,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGgraphmacros.pl", "unionTables.pl", "contextInequalities.pl", @@ -45,7 +45,7 @@ Context("Inequalities")->variables->are(t=>'Real'); Context()->flags->set(formatStudentAnswer=>'parsed'); ################################################ -# +# # The horizontal line plot (image of s) # @@ -76,7 +76,7 @@ $gr[0] -> arrowTo(0,2.5,'blue',3); ################################################## # # Values (t,y) for the piecewise linear function -# +# @t = (0..6); @@ -86,14 +86,14 @@ $y[1] = random(-1,1,2) * random(1,4,1); $y[2] = $y[1]; $t2 = random(2,3,1); $t3 = $t2 + 1; -if ( $t2 == 2 ) { - $y[3] = -1*$y[1]; +if ( $t2 == 2 ) { + $y[3] = -1*$y[1]; $y[4] = $y[3]; $y[5] = $y[3]; -} else { +} else { $y[3] = $y[2]; $y[4] = -1*$y[1]; - $y[5] = $y[4]; + $y[5] = $y[4]; } $y[6] = 0; @@ -160,28 +160,28 @@ ColumnTable( "A particle \( P \) moves on the number line shown in figure A. The position of \( P \) as a function of time \( t \) is shown in -figure B. (Note: The graph of +figure B. (Note: The graph of \( y = f(t) \) shown in figure B is ${BITALIC}not${EITALIC} -the path of the particle; it is a plot of +the path of the particle; it is a plot of the particle's position versus time.) $BR $BR -(a) When is \( P \) moving up? " . +(a) When is \( P \) moving up? " . ans_rule(20).$SPACE. -AnswerFormatHelp("inequalities","help (intervals or inequalities)"). +helpLink("inequalities","help (intervals or inequalities)"). "$BR $BR (b) When is \( P \) standing still? ". ans_rule(20).$SPACE. -AnswerFormatHelp("inequalities","help (intervals or inequalities)"). +helpLink("inequalities","help (intervals or inequalities)"). "$BR $BR (c) When is the velocity of \( P \) negative? ". ans_rule(20).$SPACE. -AnswerFormatHelp("inequalities","help (intervals or inequalities)"). +helpLink("inequalities","help (intervals or inequalities)"). "$BR $BR -(d) On a sheet of paper, graph the particle's velocity and speed +(d) On a sheet of paper, graph the particle's velocity and speed (where defined)." , BeginTable(). diff --git a/OpenProblemLibrary/Hope/Calc1/03-08-Logs/Logs-01.pg b/OpenProblemLibrary/Hope/Calc1/03-08-Logs/Logs-01.pg index f111b7218d..3756314cab 100644 --- a/OpenProblemLibrary/Hope/Calc1/03-08-Logs/Logs-01.pg +++ b/OpenProblemLibrary/Hope/Calc1/03-08-Logs/Logs-01.pg @@ -27,7 +27,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -58,15 +58,15 @@ Context()->functions->undefine("sqrt"); Context()->texStrings; BEGIN_TEXT -(a) Using laws of logarithms, write the expression -below using sums and/or differences -of logarithmic expressions which do not contain +(a) Using laws of logarithms, write the expression +below using sums and/or differences +of logarithmic expressions which do not contain the logarithms of products, quotients, or powers. $BR $BR -\( \displaystyle $expr = \) +\( \displaystyle $expr = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("logarithms") \} +\{ helpLink("logarithms") \} $BR $BR END_TEXT @@ -85,13 +85,13 @@ Context()->operators->redefine("/"); Context()->texStrings; BEGIN_TEXT -(b) Use your answer from part (a) to evaluate +(b) Use your answer from part (a) to evaluate the derivative. $BR $BR -\( \displaystyle \frac{d}{dx} \left( $expr \right) = \) +\( \displaystyle \frac{d}{dx} \left( $expr \right) = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/Hope/Calc1/03-08-Logs/Logs-02.pg b/OpenProblemLibrary/Hope/Calc1/03-08-Logs/Logs-02.pg index 31c546dc5d..2dc93c9953 100644 --- a/OpenProblemLibrary/Hope/Calc1/03-08-Logs/Logs-02.pg +++ b/OpenProblemLibrary/Hope/Calc1/03-08-Logs/Logs-02.pg @@ -27,7 +27,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", "PGcourse.pl" ); @@ -59,15 +59,15 @@ Context()->functions->undefine("sqrt"); Context()->texStrings; BEGIN_TEXT -(a) Using laws of logarithms, write the expression -below using sums and/or differences -of logarithmic expressions which do not contain +(a) Using laws of logarithms, write the expression +below using sums and/or differences +of logarithmic expressions which do not contain the logarithms of products, quotients, or powers. $BR $BR -\( \displaystyle $expr = \) +\( \displaystyle $expr = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("logarithms") \} +\{ helpLink("logarithms") \} $BR $BR END_TEXT @@ -86,17 +86,17 @@ Context()->operators->redefine("/"); Context()->texStrings; BEGIN_TEXT -(b) Use your answer from part (a) to evaluate +(b) Use your answer from part (a) to evaluate the derivative. $BR $BR -\( \displaystyle \frac{d}{dx} \left( $expr \right) = \) +\( \displaystyle \frac{d}{dx} \left( $expr \right) = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; -ANS( Compute("$a/x")->cmp() ->withPostFilter(AnswerHints( +ANS( Compute("$a/x")->cmp() ->withPostFilter(AnswerHints( Formula("1/$b + $a/x") => "What is the derivative of a constant?", Formula("-1/$b + $a/x") => "What is the derivative of a constant?", )) ); diff --git a/OpenProblemLibrary/Hope/Calc1/03-08-Logs/Logs-03.pg b/OpenProblemLibrary/Hope/Calc1/03-08-Logs/Logs-03.pg index 3724e0bf71..a822056045 100644 --- a/OpenProblemLibrary/Hope/Calc1/03-08-Logs/Logs-03.pg +++ b/OpenProblemLibrary/Hope/Calc1/03-08-Logs/Logs-03.pg @@ -22,7 +22,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", "PGcourse.pl" ); @@ -64,15 +64,15 @@ Context()->functions->undefine("sqrt"); Context()->texStrings; BEGIN_TEXT -(a) Using laws of logarithms, write the expression -below using sums and/or differences -of logarithmic expressions which do not contain +(a) Using laws of logarithms, write the expression +below using sums and/or differences +of logarithmic expressions which do not contain the logarithms of products, quotients, or powers. $BR $BR -\( \displaystyle $expr = \) +\( \displaystyle $expr = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("logarithms") \} +\{ helpLink("logarithms") \} $BR $BR Hint: \( \sqrt{u^2} = |u| \). @@ -87,7 +87,7 @@ Context()->normalStrings; $showPartialCorrectAnswers = 1; -ANS( $answer->cmp() ->withPostFilter(AnswerHints( +ANS( $answer->cmp() ->withPostFilter(AnswerHints( Formula("$b2 ln(x-$a) + $d2 ln($c-x)") => "Hint: sqrt(x^2) = |x|", )) ); @@ -97,17 +97,17 @@ Context()->variables->set(x=>{limits=>[-1,1]}); Context()->texStrings; BEGIN_TEXT -(b) Use your answer from part (a) to evaluate +(b) Use your answer from part (a) to evaluate the derivative. $BR $BR -\( \displaystyle \frac{d}{dx} \left( $expr \right) = \) +\( \displaystyle \frac{d}{dx} \left( $expr \right) = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; -ANS( Compute("$b2 / (x - $a) - $d2 / ($c - x)")->cmp() ->withPostFilter(AnswerHints( +ANS( Compute("$b2 / (x - $a) - $d2 / ($c - x)")->cmp() ->withPostFilter(AnswerHints( Formula("$b2 / (x - $a) + $d2 / ($c - x)") => "Don't forget to apply the chain rule", )) ); diff --git a/OpenProblemLibrary/Hope/Calc1/03-08-Logs/Logs-04.pg b/OpenProblemLibrary/Hope/Calc1/03-08-Logs/Logs-04.pg index 685de23d09..288a7ffb40 100644 --- a/OpenProblemLibrary/Hope/Calc1/03-08-Logs/Logs-04.pg +++ b/OpenProblemLibrary/Hope/Calc1/03-08-Logs/Logs-04.pg @@ -23,7 +23,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", "PGcourse.pl" ); @@ -40,14 +40,14 @@ Context()->variables->set(x=>{limits=>[-3,3]}); do { $a = random(2,9,1); - $c = random(6,9,1); - $e = random(2,3,1); + $c = random(6,9,1); + $e = random(2,3,1); } until ($c != $a && $e != $a && $e != $c && gcd($c,$e) == 1); $b = random(11,19,2); $b = 2 * $b; -do { - $d = random(11,19,2); +do { + $d = random(11,19,2); $d = 2 * $d; } until ($d != $b); @@ -68,15 +68,15 @@ Context()->functions->undefine("sqrt"); Context()->texStrings; BEGIN_TEXT -(a) Using laws of logarithms, write the expression -below using sums and/or differences -of logarithmic expressions which do not contain +(a) Using laws of logarithms, write the expression +below using sums and/or differences +of logarithmic expressions which do not contain the logarithms of products, quotients, or powers. $BR $BR -\( \displaystyle $expr = \) +\( \displaystyle $expr = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("logarithms") \} +\{ helpLink("logarithms") \} $BR $BR Hint: \( \sqrt{u^2} = |u| \). @@ -99,17 +99,17 @@ Context()->variables->set(x=>{limits=>[-1,1]}); Context()->texStrings; BEGIN_TEXT -(b) Use your answer from part (a) to evaluate +(b) Use your answer from part (a) to evaluate the derivative. $BR $BR -\( \displaystyle \frac{d}{dx} \left( $expr \right) = \) +\( \displaystyle \frac{d}{dx} \left( $expr \right) = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; -ANS( Compute("$b2 / (x - $a) - $d2 * $e / ($e x - $c)")->cmp() ->withPostFilter(AnswerHints( +ANS( Compute("$b2 / (x - $a) - $d2 * $e / ($e x - $c)")->cmp() ->withPostFilter(AnswerHints( Formula("$b2 / (x - $a) - $d2 / ($e x - $c)") => "Don't forget to apply the chain rule", )) ); diff --git a/OpenProblemLibrary/Hope/Calc1/03-08-Logs/Logs-05.pg b/OpenProblemLibrary/Hope/Calc1/03-08-Logs/Logs-05.pg index 06e1fa7f8f..92750afe78 100644 --- a/OpenProblemLibrary/Hope/Calc1/03-08-Logs/Logs-05.pg +++ b/OpenProblemLibrary/Hope/Calc1/03-08-Logs/Logs-05.pg @@ -22,7 +22,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", "PGcourse.pl" ); @@ -54,15 +54,15 @@ Context()->functions->undefine("sqrt"); Context()->texStrings; BEGIN_TEXT -(a) Using laws of logarithms, write the expression -below using sums and/or differences -of logarithmic expressions which do not contain +(a) Using laws of logarithms, write the expression +below using sums and/or differences +of logarithmic expressions which do not contain the logarithms of products, quotients, or powers. $BR $BR -\( \displaystyle $expr = \) +\( \displaystyle $expr = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("logarithms") \} +\{ helpLink("logarithms") \} $BR $BR END_TEXT @@ -82,13 +82,13 @@ Context()->operators->redefine("/"); Context()->texStrings; BEGIN_TEXT -(b) Use your answer from part (a) to evaluate +(b) Use your answer from part (a) to evaluate the derivative. $BR $BR -\( \displaystyle \frac{d}{dx} \left( $expr \right) = \) +\( \displaystyle \frac{d}{dx} \left( $expr \right) = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/Hope/Calc1/03-08-Logs/Logs-06.pg b/OpenProblemLibrary/Hope/Calc1/03-08-Logs/Logs-06.pg index 4bc18fa612..c8ebc65671 100644 --- a/OpenProblemLibrary/Hope/Calc1/03-08-Logs/Logs-06.pg +++ b/OpenProblemLibrary/Hope/Calc1/03-08-Logs/Logs-06.pg @@ -22,7 +22,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", "parserFunction.pl", "PGcourse.pl" @@ -60,15 +60,15 @@ Context()->functions->undefine("sqrt"); Context()->texStrings; BEGIN_TEXT -(a) Using laws of logarithms, write the expression -below as a single logarithmic expression which does not contain -the logarithm of a product, quotient, or power. Enter +(a) Using laws of logarithms, write the expression +below as a single logarithmic expression which does not contain +the logarithm of a product, quotient, or power. Enter \(\log_2(x)\) as ${BTT}log2(x)$ETT. $BR $BR -\( \displaystyle $expr = \) +\( \displaystyle $expr = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("logarithms") \} +\{ helpLink("logarithms") \} $BR $BR END_TEXT @@ -88,17 +88,17 @@ Context()->variables->set(x=>{limits=>[-1,1]}); Context()->texStrings; BEGIN_TEXT -(b) Use your answer from part (a) to evaluate +(b) Use your answer from part (a) to evaluate the derivative. $BR $BR -\( \displaystyle \frac{d}{dx} \left( $expr \right) = \) +\( \displaystyle \frac{d}{dx} \left( $expr \right) = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; -ANS( Compute("$n1 / (x ln(2))")->cmp() ->withPostFilter(AnswerHints( +ANS( Compute("$n1 / (x ln(2))")->cmp() ->withPostFilter(AnswerHints( Formula("$n1 / x") => "Hint: log2(x) = ln(x) / ln(2)", )) ); diff --git a/OpenProblemLibrary/Hope/Calc1/03-11-Differentials/Differentials-01.pg b/OpenProblemLibrary/Hope/Calc1/03-11-Differentials/Differentials-01.pg index daad10a853..f160abe743 100644 --- a/OpenProblemLibrary/Hope/Calc1/03-11-Differentials/Differentials-01.pg +++ b/OpenProblemLibrary/Hope/Calc1/03-11-Differentials/Differentials-01.pg @@ -26,7 +26,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", "PGcourse.pl" ); @@ -62,9 +62,9 @@ Your answer will be in terms of x and dx. Enter \( dx \) as ${BTT}dx${ETT}. $BR $BR -\( dy \) = +\( dy \) = \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; @@ -74,10 +74,10 @@ Context()->normalStrings; $showPartialCorrectAnswers = 1; -ANS( $answer->cmp() -> withPostFilter(AnswerHints( +ANS( $answer->cmp() -> withPostFilter(AnswerHints( $fp => "Don't forget dx", - $wrong1 => "Did you remember to use parentheses?", - $wrong2 => "Did you remember to use parentheses?", + $wrong1 => "Did you remember to use parentheses?", + $wrong2 => "Did you remember to use parentheses?", )) ); diff --git a/OpenProblemLibrary/Hope/Calc1/03-11-Differentials/Differentials-02.pg b/OpenProblemLibrary/Hope/Calc1/03-11-Differentials/Differentials-02.pg index 28be3a7adc..4adff188d4 100644 --- a/OpenProblemLibrary/Hope/Calc1/03-11-Differentials/Differentials-02.pg +++ b/OpenProblemLibrary/Hope/Calc1/03-11-Differentials/Differentials-02.pg @@ -26,7 +26,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", "PGcourse.pl" ); @@ -61,9 +61,9 @@ Your answer will be in terms of x, y, and dx. Enter \( dx \) as ${BTT}dx${ETT}. $BR $BR -\( dy \) = +\( dy \) = \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; @@ -73,7 +73,7 @@ Context()->normalStrings; $showPartialCorrectAnswers = 1; -ANS( $answer->cmp() -> withPostFilter(AnswerHints( +ANS( $answer->cmp() -> withPostFilter(AnswerHints( $wrong => "Don't forget dx", )) ); diff --git a/OpenProblemLibrary/Hope/Calc1/03-11-Differentials/Differentials-03.pg b/OpenProblemLibrary/Hope/Calc1/03-11-Differentials/Differentials-03.pg index 787d153331..ab489626c9 100644 --- a/OpenProblemLibrary/Hope/Calc1/03-11-Differentials/Differentials-03.pg +++ b/OpenProblemLibrary/Hope/Calc1/03-11-Differentials/Differentials-03.pg @@ -26,7 +26,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", "PGcourse.pl" ); @@ -60,9 +60,9 @@ Your answer will be in terms of x and dx. Enter \( dx \) as ${BTT}dx${ETT}. $BR $BR -\( dy \) = +\( dy \) = \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; @@ -72,7 +72,7 @@ Context()->normalStrings; $showPartialCorrectAnswers = 1; -ANS( $answer->cmp() -> withPostFilter(AnswerHints( +ANS( $answer->cmp() -> withPostFilter(AnswerHints( $wrong => "Don't forget dx", )) ); diff --git a/OpenProblemLibrary/Hope/Calc1/03-11-Differentials/Differentials-05.pg b/OpenProblemLibrary/Hope/Calc1/03-11-Differentials/Differentials-05.pg index 821faa63b7..0a72ed709f 100644 --- a/OpenProblemLibrary/Hope/Calc1/03-11-Differentials/Differentials-05.pg +++ b/OpenProblemLibrary/Hope/Calc1/03-11-Differentials/Differentials-05.pg @@ -25,7 +25,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", "PGcourse.pl" ); @@ -56,28 +56,28 @@ The volume of a sphere of radius \( r \) is \( \displaystyle V = \frac{4}{3} \pi $BR $BR (a) Write a differential formula that estimates the -change in volume of a sphere when the radius changes from \( r_0 \) +change in volume of a sphere when the radius changes from \( r_0 \) to \( r_0 + dr \). Enter \( r_0 \) as ${BTT}r0${ETT} and \( dr \) as ${BTT}dr${ETT}. $BR -\( dV \) = +\( dV \) = \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR (b) Write a differential formula that estimates the change -in volume of a sphere when the radius changes from +in volume of a sphere when the radius changes from \( $r0 \) to \( $r0 + dr \). $BR -\( dV \) = +\( dV \) = \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR (c) Use a differential to estimate the change in volume of a melting spherical snowball when the radius changes from \( $r0 \ \mathrm{cm} \) to \( $r1 \ \mathrm{cm} \). $BR -\( dV \) = +\( dV \) = \{ ans_rule(30) \} \( \mathrm{cm^3} \) END_TEXT diff --git a/OpenProblemLibrary/Hope/Calc2/APEX_09_05_Polar_area/Q_20.pg b/OpenProblemLibrary/Hope/Calc2/APEX_09_05_Polar_area/Q_20.pg index 54f6bdb3ed..28c49753a9 100644 --- a/OpenProblemLibrary/Hope/Calc2/APEX_09_05_Polar_area/Q_20.pg +++ b/OpenProblemLibrary/Hope/Calc2/APEX_09_05_Polar_area/Q_20.pg @@ -16,13 +16,13 @@ ########################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PGgraphmacros.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "PGML.pl", "PGcourse.pl" @@ -57,7 +57,7 @@ $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); # If the polar curve is r = f(t) = $r0 cos($omega*t), then @@ -79,11 +79,11 @@ $gr->fillRegion([0.5,0.1,'lightred']); $column1 = PGML::Format(< 0, separation => 30, valign => "TOP")); +TEXT(ColumnTable($column1, $column2, indent => 0, separation => 30, valign => "TOP")); COMMENT('Uses PGML.'); diff --git a/OpenProblemLibrary/Hope/Calc2/APEX_09_05_Polar_area/Q_24.pg b/OpenProblemLibrary/Hope/Calc2/APEX_09_05_Polar_area/Q_24.pg index 79cabecfcc..058e2f7003 100644 --- a/OpenProblemLibrary/Hope/Calc2/APEX_09_05_Polar_area/Q_24.pg +++ b/OpenProblemLibrary/Hope/Calc2/APEX_09_05_Polar_area/Q_24.pg @@ -16,13 +16,13 @@ ########################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PGgraphmacros.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "PGML.pl", "PGcourse.pl" @@ -61,7 +61,7 @@ $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); @@ -96,10 +96,10 @@ $column1 = PGML::Format(< 0, separation => 10, valign => "TOP")); +TEXT(ColumnTable($column1, $column2, indent => 0, separation => 10, valign => "TOP")); ############################ diff --git a/OpenProblemLibrary/Hope/Calc2/APEX_09_05_Polar_area/Q_27.pg b/OpenProblemLibrary/Hope/Calc2/APEX_09_05_Polar_area/Q_27.pg index fe919e1cd4..017dcbf5c5 100644 --- a/OpenProblemLibrary/Hope/Calc2/APEX_09_05_Polar_area/Q_27.pg +++ b/OpenProblemLibrary/Hope/Calc2/APEX_09_05_Polar_area/Q_27.pg @@ -16,13 +16,13 @@ ########################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PGgraphmacros.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "PGML.pl", "PGcourse.pl" @@ -61,7 +61,7 @@ $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); @@ -96,7 +96,7 @@ $column1 = PGML::Format(< 0, separation => 10, valign => "TOP")); +TEXT(ColumnTable($column1, $column2, indent => 0, separation => 10, valign => "TOP")); ############################ diff --git a/OpenProblemLibrary/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-01.pg b/OpenProblemLibrary/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-01.pg index 77c04f2f84..c3d12e34f3 100644 --- a/OpenProblemLibrary/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-01.pg +++ b/OpenProblemLibrary/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-01.pg @@ -21,7 +21,7 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", @@ -31,7 +31,7 @@ loadMacros( "contextLimitedVector.pl", "PGessaymacros.pl", "unionTables.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -128,7 +128,7 @@ BEGIN_TEXT ColumnTable( "Are the vectors \( \overrightarrow{AB} \) and \( \overrightarrow{CD} \) in the figure -the same vector? Explain +the same vector? Explain your answer using complete sentences with correct grammar, spelling, and punctuation. $BR diff --git a/OpenProblemLibrary/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-02.pg b/OpenProblemLibrary/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-02.pg index 07efec94cf..d0ff241ab4 100644 --- a/OpenProblemLibrary/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-02.pg +++ b/OpenProblemLibrary/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-02.pg @@ -21,7 +21,7 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", @@ -30,7 +30,7 @@ loadMacros( "PGgraphmacros.pl", "contextLimitedVector.pl", "unionTables.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -115,7 +115,7 @@ $BR $BR \( \overrightarrow{AB} = \) ". ans_rule(20).$SPACE. -AnswerFormatHelp("vectors") +helpLink("vectors") , $BCENTER. image(insertGraph($gr), width=>$pixels, height=>$pixels, tex_size=>700 ). diff --git a/OpenProblemLibrary/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-06/Vectors-06.pg b/OpenProblemLibrary/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-06/Vectors-06.pg index 3019fd935b..bb1b5ae1c8 100644 --- a/OpenProblemLibrary/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-06/Vectors-06.pg +++ b/OpenProblemLibrary/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-06/Vectors-06.pg @@ -21,7 +21,7 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", @@ -29,7 +29,7 @@ loadMacros( "parserVectorUtils.pl", "contextLimitedVector.pl", "unionTables.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -62,13 +62,13 @@ BEGIN_TEXT ColumnTable( "Find the vector \( \overrightarrow{AB} \). Assume that the grids are unit grids, that -both points are on a grid, that point -\( A \) is in a horizontal plane, and that +both points are on a grid, that point +\( A \) is in a horizontal plane, and that point \( B \) is in a vertical plane. $BR -$BR +$BR \( \overrightarrow{AB} = \) ". -ans_rule(20).$SPACE.AnswerFormatHelp("vectors") +ans_rule(20).$SPACE.helpLink("vectors") , $BCENTER. image($file, width=>470, height=>407, tex_size=>900 ). diff --git a/OpenProblemLibrary/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-11.pg b/OpenProblemLibrary/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-11.pg index 2b39b7f026..cb333feb58 100644 --- a/OpenProblemLibrary/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-11.pg +++ b/OpenProblemLibrary/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-11.pg @@ -23,14 +23,14 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "parserVectorUtils.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -53,7 +53,7 @@ $multians = MultiAnswer($A, $B)->with( my ( $correct, $student, $self ) = @_; my ( $Astu, $Bstu ) = @{$student}; my ( $Acor, $Bcor ) = @{$correct}; - if ( $Astu == Point(0,0) || $Bstu == Point(0,0) ) { + if ( $Astu == Point(0,0) || $Bstu == Point(0,0) ) { return 0; } if ( Vector($Bstu - $Astu) == $AB ) { @@ -75,11 +75,11 @@ in \( \mathbb{R}^2 \) by giving appropriate values for the points \( A \) and \( B \) such that neither \( A \) nor \( B \) is the origin. $BR $BR -\( A = \) \{ $multians->ans_rule(20) \} -\{ AnswerFormatHelp("points") \} +\( A = \) \{ $multians->ans_rule(20) \} +\{ helpLink("points") \} $BR -\( B = \) \{ $multians->ans_rule(20) \} -\{ AnswerFormatHelp("points") \} +\( B = \) \{ $multians->ans_rule(20) \} +\{ helpLink("points") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-13.pg b/OpenProblemLibrary/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-13.pg index 5d66a99633..f1cfa96999 100644 --- a/OpenProblemLibrary/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-13.pg +++ b/OpenProblemLibrary/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-13.pg @@ -22,14 +22,14 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "parserVectorUtils.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -52,7 +52,7 @@ $multians = MultiAnswer($A, $B)->with( my ( $correct, $student, $self ) = @_; my ( $Astu, $Bstu ) = @{$student}; my ( $Acor, $Bcor ) = @{$correct}; - if ( $Astu == Point(0,0,0) || $Bstu == Point(0,0,0) ) { + if ( $Astu == Point(0,0,0) || $Bstu == Point(0,0,0) ) { return 0; } if ( Vector($Bstu - $Astu) == $AB ) { @@ -74,11 +74,11 @@ in \( \mathbb{R}^3 \) by giving appropriate values for the points \( A \) and \( B \) such that neither \( A \) nor \( B \) is the origin. $BR $BR -\( A = \) \{ $multians->ans_rule(20) \} -\{ AnswerFormatHelp("points") \} +\( A = \) \{ $multians->ans_rule(20) \} +\{ helpLink("points") \} $BR -\( B = \) \{ $multians->ans_rule(20) \} -\{ AnswerFormatHelp("points") \} +\( B = \) \{ $multians->ans_rule(20) \} +\{ helpLink("points") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-15a.pg b/OpenProblemLibrary/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-15a.pg index 59cbddc069..496f18374c 100644 --- a/OpenProblemLibrary/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-15a.pg +++ b/OpenProblemLibrary/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-15a.pg @@ -22,14 +22,14 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "parserVectorUtils.pl", "contextLimitedPoint.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -60,7 +60,7 @@ Suppose \( A = $A \) and \( \overrightarrow{AB} = $AB \). Then $BR $BR \( B = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("points") \} +\{ helpLink("points") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-15b.pg b/OpenProblemLibrary/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-15b.pg index ca473e80c8..cc15ee13a2 100644 --- a/OpenProblemLibrary/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-15b.pg +++ b/OpenProblemLibrary/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-15b.pg @@ -21,14 +21,14 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "parserVectorUtils.pl", "contextLimitedPoint.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -59,7 +59,7 @@ Suppose \( B = $B \) and \( \overrightarrow{AB} = $AB \). Then $BR $BR \( A = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("points") \} +\{ helpLink("points") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-16a.pg b/OpenProblemLibrary/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-16a.pg index 3ea052d77a..62bb40a071 100644 --- a/OpenProblemLibrary/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-16a.pg +++ b/OpenProblemLibrary/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-16a.pg @@ -22,14 +22,14 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "parserVectorUtils.pl", "contextLimitedPoint.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -60,7 +60,7 @@ Suppose \( A = $A \) and \( \overrightarrow{AB} = $AB \). Then $BR $BR \( B = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("points") \} +\{ helpLink("points") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-16b.pg b/OpenProblemLibrary/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-16b.pg index 5c88723ede..dff936e4bb 100644 --- a/OpenProblemLibrary/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-16b.pg +++ b/OpenProblemLibrary/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-16b.pg @@ -23,14 +23,14 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "parserVectorUtils.pl", "contextLimitedPoint.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -61,7 +61,7 @@ Suppose \( B = $B \) and \( \overrightarrow{AB} = $AB \). Then $BR $BR \( A = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("points") \} +\{ helpLink("points") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-17a.pg b/OpenProblemLibrary/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-17a.pg index 2c357f7c8e..df63043fa9 100644 --- a/OpenProblemLibrary/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-17a.pg +++ b/OpenProblemLibrary/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-17a.pg @@ -22,14 +22,14 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "parserVectorUtils.pl", "contextLimitedVector.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -56,12 +56,12 @@ $AB = Vector("<$Bx - $Ax,$By - $Ay>")->reduce; Context()->texStrings; BEGIN_TEXT -Find the vector in \( \mathbb{R}^2 \) from point +Find the vector in \( \mathbb{R}^2 \) from point \( A = $A \) to \( B = $B \). $BR $BR \( \overrightarrow{AB} = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("vectors") \} +\{ helpLink("vectors") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-17b.pg b/OpenProblemLibrary/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-17b.pg index 8261c209e0..91ffc24833 100644 --- a/OpenProblemLibrary/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-17b.pg +++ b/OpenProblemLibrary/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-17b.pg @@ -22,13 +22,13 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "parserVectorUtils.pl", - "AnswerFormatHelp.pl", + "contextLimitedVector.pl", "PGcourse.pl" ); @@ -53,12 +53,12 @@ $AB = Vector(""); Context()->texStrings; BEGIN_TEXT -Find the vector in \( \mathbb{R}^2 \) from point +Find the vector in \( \mathbb{R}^2 \) from point \( A = $A \) to \( B = $B \). $BR $BR \( \overrightarrow{AB} = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("vectors") \} +\{ helpLink("vectors") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-18a.pg b/OpenProblemLibrary/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-18a.pg index f5a7389046..933b9056ff 100644 --- a/OpenProblemLibrary/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-18a.pg +++ b/OpenProblemLibrary/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-18a.pg @@ -23,14 +23,14 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "parserVectorUtils.pl", "contextLimitedVector.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -57,12 +57,12 @@ $AB = Vector($Bx - $Ax, $By - $Ay, $Bz - $Az)->reduce; Context()->texStrings; BEGIN_TEXT -Find the vector in \( \mathbb{R}^3 \) from point +Find the vector in \( \mathbb{R}^3 \) from point \( A = $A \) to \( B = $B \). $BR $BR \( \overrightarrow{AB} = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("vectors") \} +\{ helpLink("vectors") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-18b.pg b/OpenProblemLibrary/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-18b.pg index f019a70cae..c129d85668 100644 --- a/OpenProblemLibrary/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-18b.pg +++ b/OpenProblemLibrary/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-18b.pg @@ -21,14 +21,14 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "parserVectorUtils.pl", "contextLimitedVector.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -52,12 +52,12 @@ $AB = Vector("<$Bx - x, $By - y, $Bz - z>")->reduce; Context()->texStrings; BEGIN_TEXT -Find the vector in \( \mathbb{R}^3 \) from point +Find the vector in \( \mathbb{R}^3 \) from point \( A = $A \) to \( B = $B \). $BR $BR \( \overrightarrow{AB} = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("vectors") \} +\{ helpLink("vectors") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-20.pg b/OpenProblemLibrary/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-20.pg index aea1e46bf0..6a73362fd1 100644 --- a/OpenProblemLibrary/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-20.pg +++ b/OpenProblemLibrary/Hope/Multi1/01-01-Vectors-in-Rn/Vectors-20.pg @@ -22,14 +22,14 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "parserVectorUtils.pl", "contextLimitedVector.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -54,12 +54,12 @@ $AB = Vector($Bx - $Ax, $By - $Ay, $Bz - $Az)->reduce; Context()->texStrings; BEGIN_TEXT -Find the vector in \( \mathbb{R}^3 \) from point +Find the vector in \( \mathbb{R}^3 \) from point \( A = $A \) to \( B = $B \). $BR $BR \( \overrightarrow{AB} = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("vectors") \} +\{ helpLink("vectors") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/Hope/Multi1/01-02-Vector-operations/Graphical_vector_ops_02.pg b/OpenProblemLibrary/Hope/Multi1/01-02-Vector-operations/Graphical_vector_ops_02.pg index dd447ce1ab..4632926339 100755 --- a/OpenProblemLibrary/Hope/Multi1/01-02-Vector-operations/Graphical_vector_ops_02.pg +++ b/OpenProblemLibrary/Hope/Multi1/01-02-Vector-operations/Graphical_vector_ops_02.pg @@ -19,7 +19,7 @@ loadMacros( "MathObjects.pl", "PGgraphmacros.pl", "contextLimitedVector.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "parserPopUp.pl", "scaffold.pl", @@ -83,25 +83,25 @@ BEGIN_PGML a. Find the coordinate vector for each vector in the figure. - + [`\vec{a}=`] [______________]{$a} [@ AnswerFormatHelp("vectors") @]* - + [`\vec{b}=`] [______________]{$b} [@ AnswerFormatHelp("vectors") @]* - + [`\vec{c}=`] [______________]{$c} [@ AnswerFormatHelp("vectors") @]* + + [`\vec{a}=`] [______________]{$a} [@ helpLink("vectors") @]* + + [`\vec{b}=`] [______________]{$b} [@ helpLink("vectors") @]* + + [`\vec{c}=`] [______________]{$c} [@ helpLink("vectors") @]* b. Using geometric vector addition, draw the vector sum [` \vec{a} + \vec{b} + \vec{c} `]. Then, verify your answer using vector addition operations. - + [` \vec{a} + \vec{b} + \vec{c} = `] [___________________]{"<$Ax+$Bx+$Cx, $Ay+$By+$Cy>"} [@ AnswerFormatHelp("vectors") @]* + + [` \vec{a} + \vec{b} + \vec{c} = `] [___________________]{"<$Ax+$Bx+$Cx, $Ay+$By+$Cy>"} [@ helpLink("vectors") @]* c. Using geometric vector addition, draw the vector sum [` 2\vec{a} + 3\vec{b} - \vec{c} `]. Then, verify your answer using vector addition and scaling operations. - + [` 2\vec{a} + 3\vec{b} - \vec{c} = `] [___________________]{"<2*$Ax+3*$Bx-$Cx, 2*$Ay+3*$By-$Cy>"} [@ AnswerFormatHelp("vectors") @]* + + [` 2\vec{a} + 3\vec{b} - \vec{c} = `] [___________________]{"<2*$Ax+3*$Bx-$Cx, 2*$Ay+3*$By-$Cy>"} [@ helpLink("vectors") @]* d. Find the vector sum [` x_1 \vec{a} + x_2 \vec{b} + x_3 \vec{c} `] when [`x_1 = [$x1] `], [`x_2 = [$x2] `] and [`x_3 = [$x3] `]. You should be able to do this both geometrically and algebraically. - + [` x_1 \vec{a} + x_2\vec{b} + x_3 \vec{c} = `] [___________________]{"<$x1*$Ax+$x2*$Bx+$x3*$Cx, $x1*$Ay+$x2*$By+$x3*$Cy>"} [@ AnswerFormatHelp("vectors") @]* + + [` x_1 \vec{a} + x_2\vec{b} + x_3 \vec{c} = `] [___________________]{"<$x1*$Ax+$x2*$Bx+$x3*$Cx, $x1*$Ay+$x2*$By+$x3*$Cy>"} [@ helpLink("vectors") @]* e. Find a vector [` \vec{d} `] such that [` \vec{a} + \vec{c} + \vec{d} = \vec{0} `]. You should be able to do this both geometrically and algebraically. - + [` \vec{d} = `] [___________________]{"<-($Ax+$Cx), -($Ay+$Cy)>"} [@ AnswerFormatHelp("vectors") @]* + + [` \vec{d} = `] [___________________]{"<-($Ax+$Cx), -($Ay+$Cy)>"} [@ helpLink("vectors") @]* END_PGML diff --git a/OpenProblemLibrary/Hope/Multi1/01-02-Vector-operations/Graphical_vector_ops_03.pg b/OpenProblemLibrary/Hope/Multi1/01-02-Vector-operations/Graphical_vector_ops_03.pg index 2dcc2d1341..c51e571b37 100755 --- a/OpenProblemLibrary/Hope/Multi1/01-02-Vector-operations/Graphical_vector_ops_03.pg +++ b/OpenProblemLibrary/Hope/Multi1/01-02-Vector-operations/Graphical_vector_ops_03.pg @@ -18,7 +18,7 @@ loadMacros( "MathObjects.pl", "PGgraphmacros.pl", "contextLimitedVector.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "parserPopUp.pl", "scaffold.pl", @@ -104,19 +104,19 @@ BEGIN_PGML a. Using geometric vector addition, draw the vector sum [` \vec{a} + \vec{b} + \vec{c} `]. Then, verify your answer using vector addition operations. - + [` \vec{a} + \vec{b} + \vec{c} = `] [___________________]{"<$Ax+$Bx+$Cx, $Ay+$By+$Cy>"} [@ AnswerFormatHelp("vectors") @]* + + [` \vec{a} + \vec{b} + \vec{c} = `] [___________________]{"<$Ax+$Bx+$Cx, $Ay+$By+$Cy>"} [@ helpLink("vectors") @]* b. Using geometric vector addition, what general direction do you expect [` \vec{a} + \vec{b} `] points toward? [_]{$popup[0]} Draw the vector sum [` \vec{a} + \vec{b} `] and then verify your answer using vector addition operations. - + [` \vec{a} + \vec{b} = `] [___________________]{"<$Ax+$Bx, $Ay+$By>"} [@ AnswerFormatHelp("vectors") @]* + + [` \vec{a} + \vec{b} = `] [___________________]{"<$Ax+$Bx, $Ay+$By>"} [@ helpLink("vectors") @]* c. Using geometric vector addition, what general direction do you expect [` \vec{c} - \vec{a} - \vec{b} `] points toward? [_]{$popup[1]} Draw the vector sum [` \vec{c} - \vec{a} - \vec{b} `] and then verify your answer using vector addition operations. - + [` \vec{c} - \vec{a} - \vec{b} = `] [___________________]{"<$Cx-$Ax-$Bx, $Cy-$Ay-$By>"} [@ AnswerFormatHelp("vectors") @]* + + [` \vec{c} - \vec{a} - \vec{b} = `] [___________________]{"<$Cx-$Ax-$Bx, $Cy-$Ay-$By>"} [@ helpLink("vectors") @]* d. Using geometric vector addition, draw the vector sum [` 2\vec{a} - 3\vec{b} + \vec{c} `]. Then, verify your answer using vector addition operations. - + [` 2\vec{a} - 3\vec{b} + \vec{c} = `] [___________________]{"<2*$Ax-3*$Bx+$Cx, 2*$Ay-3*$By+$Cy>"} [@ AnswerFormatHelp("vectors") @]* + + [` 2\vec{a} - 3\vec{b} + \vec{c} = `] [___________________]{"<2*$Ax-3*$Bx+$Cx, 2*$Ay-3*$By+$Cy>"} [@ helpLink("vectors") @]* END_PGML Section::End(); @@ -127,19 +127,19 @@ BEGIN_PGML a. Using geometric vector addition, draw the vector sum [` \vec{a} + \vec{b} + \vec{c} `]. Then, verify your answer using vector addition operations. - + [` \vec{a} + \vec{b} + \vec{c} = `] [___________________]{"<$Ax+$Bx+$Cx, $Ay+$By+$Cy>"} [@ AnswerFormatHelp("vectors") @]* + + [` \vec{a} + \vec{b} + \vec{c} = `] [___________________]{"<$Ax+$Bx+$Cx, $Ay+$By+$Cy>"} [@ helpLink("vectors") @]* b. Using geometric vector addition, what general direction do you expect [` \vec{a} + \vec{b} `] points toward? [_]{$popup[2]} Draw the vector sum [` \vec{a} + \vec{b} `] and then verify your answer using vector addition operations. - + [` \vec{a} + \vec{b} = `] [___________________]{"<$Ax+$Bx, $Ay+$By>"} [@ AnswerFormatHelp("vectors") @]* + + [` \vec{a} + \vec{b} = `] [___________________]{"<$Ax+$Bx, $Ay+$By>"} [@ helpLink("vectors") @]* c. Using geometric vector addition, what general direction do you expect [` \vec{c} - \vec{a} - \vec{b} `] points toward? [_]{$popup[3]} Draw the vector sum [` \vec{c} - \vec{a} - \vec{b} `] and then verify your answer using vector addition operations. - + [` \vec{c} - \vec{a} - \vec{b} = `] [___________________]{"<$Cx-$Ax-$Bx, $Cy-$Ay-$By>"} [@ AnswerFormatHelp("vectors") @]* + + [` \vec{c} - \vec{a} - \vec{b} = `] [___________________]{"<$Cx-$Ax-$Bx, $Cy-$Ay-$By>"} [@ helpLink("vectors") @]* d. Using geometric vector addition, draw the vector sum [` \vec{a} + \vec{b} + \vec{c} `]. Then, verify your answer using vector addition operations. - + [` 2\vec{a} - 3\vec{b} + \vec{c} = `] [___________________]{"<2*$Ax-3*$Bx+$Cx, 2*$Ay-3*$By+$Cy>"} [@ AnswerFormatHelp("vectors") @]* + + [` 2\vec{a} - 3\vec{b} + \vec{c} = `] [___________________]{"<2*$Ax-3*$Bx+$Cx, 2*$Ay-3*$By+$Cy>"} [@ helpLink("vectors") @]* END_PGML Section::End(); diff --git a/OpenProblemLibrary/Hope/Multi1/01-02-Vector-operations/Graphical_vector_ops_04.pg b/OpenProblemLibrary/Hope/Multi1/01-02-Vector-operations/Graphical_vector_ops_04.pg index 59cd2be1dc..e0b0cb4bf1 100755 --- a/OpenProblemLibrary/Hope/Multi1/01-02-Vector-operations/Graphical_vector_ops_04.pg +++ b/OpenProblemLibrary/Hope/Multi1/01-02-Vector-operations/Graphical_vector_ops_04.pg @@ -19,7 +19,7 @@ loadMacros( "MathObjects.pl", "PGgraphmacros.pl", "contextLimitedVector.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "parserPopUp.pl", "scaffold.pl", diff --git a/OpenProblemLibrary/Hope/Multi1/01-02-Vector-operations/Graphical_vector_ops_05.pg b/OpenProblemLibrary/Hope/Multi1/01-02-Vector-operations/Graphical_vector_ops_05.pg index 319aee91fb..326f4588a1 100755 --- a/OpenProblemLibrary/Hope/Multi1/01-02-Vector-operations/Graphical_vector_ops_05.pg +++ b/OpenProblemLibrary/Hope/Multi1/01-02-Vector-operations/Graphical_vector_ops_05.pg @@ -19,7 +19,7 @@ loadMacros( "MathObjects.pl", "PGgraphmacros.pl", "contextLimitedVector.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "scaffold.pl", "PGcourse.pl" @@ -146,7 +146,7 @@ The figure below shows five named points [`A`], [`B`], [`C`], [`D`], and [`O`] ( >> [@ image(insertGraph($gr[1]), width=>$pixels, height=>$pixels, tex_size=>900) @]* << -Find the following coordinate vectors. [@ AnswerFormatHelp("vectors") @]* +Find the following coordinate vectors. [@ helpLink("vectors") @]* + [`\overrightarrow{A} = `] [______]{Vector("<$ax, $ay>")} diff --git a/OpenProblemLibrary/Hope/Multi1/01-02-Vector-operations/Graphical_vector_ops_06.pg b/OpenProblemLibrary/Hope/Multi1/01-02-Vector-operations/Graphical_vector_ops_06.pg index ddaedfa708..e05330f609 100755 --- a/OpenProblemLibrary/Hope/Multi1/01-02-Vector-operations/Graphical_vector_ops_06.pg +++ b/OpenProblemLibrary/Hope/Multi1/01-02-Vector-operations/Graphical_vector_ops_06.pg @@ -19,7 +19,7 @@ loadMacros( "MathObjects.pl", "PGgraphmacros.pl", "contextLimitedVector.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGML.pl", "scaffold.pl", @@ -67,10 +67,10 @@ foreach my $i (0) { # construct points A, B ($ax,$ay) = (non_zero_random(-5,5,1), random(2,5,1)); -do { - ($bx,$by) = (non_zero_random(-5,5,1), random(-5,-2,1)); +do { + ($bx,$by) = (non_zero_random(-5,5,1), random(-5,-2,1)); } until ( - $bx != $ax && + $bx != $ax && $ax * $by != $bx * $ay && # A, B, and origin not collinear abs(($ax - $bx) % 2) == 0 && abs(($ay - $by) % 2) == 1 ); @@ -125,7 +125,7 @@ $multians4 = MultiAnswer(Vector("<$ax - $bx, 0>"), Vector("<0, $ay - $by>"))->wi my ( $correct, $student, $ansHash ) = @_; my ( $a, $b ) = @{$student}; return ( - (Vector("<$ax - $bx, 0>") == $a && Vector("<0, $ay - $by>") == $b) || + (Vector("<$ax - $bx, 0>") == $a && Vector("<0, $ay - $by>") == $b) || (Vector("<$ax - $bx, 0>") == $b && Vector("<0, $ay - $by>") == $a) ); } diff --git a/OpenProblemLibrary/Hope/Multi1/01-02-Vector-operations/Graphical_vector_ops_07.pg b/OpenProblemLibrary/Hope/Multi1/01-02-Vector-operations/Graphical_vector_ops_07.pg index 15e94195aa..8241667094 100755 --- a/OpenProblemLibrary/Hope/Multi1/01-02-Vector-operations/Graphical_vector_ops_07.pg +++ b/OpenProblemLibrary/Hope/Multi1/01-02-Vector-operations/Graphical_vector_ops_07.pg @@ -19,7 +19,7 @@ loadMacros( "MathObjects.pl", "PGgraphmacros.pl", "contextLimitedVector.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGML.pl", "scaffold.pl", @@ -94,16 +94,16 @@ do { ($dx,$dy) = (random(1,5,1), random(-5,-1,1)); } until (($dx + abs($dy)) < $ foreach my $i (0) { # plot points A, B, C, D - $gr[$i]->stamps(closed_circle($Ax, $Ay, 'blue')); + $gr[$i]->stamps(closed_circle($Ax, $Ay, 'blue')); $gr[$i]->lb(new Label($Ax, $Ay+0.25, 'A', 'blue', 'center', 'bottom')); - $gr[$i]->stamps(closed_circle($Bx, $By, 'blue')); + $gr[$i]->stamps(closed_circle($Bx, $By, 'blue')); $gr[$i]->lb(new Label($Bx, $By+0.25, 'B', 'blue', 'center', 'bottom')); - $gr[$i]->stamps(closed_circle($Cx, $Cy, 'blue')); + $gr[$i]->stamps(closed_circle($Cx, $Cy, 'blue')); $gr[$i]->lb(new Label($Cx, $Cy+0.25, 'C', 'blue', 'center', 'bottom')); - $gr[$i]->stamps(closed_circle($Dx, $Dy, 'blue')); + $gr[$i]->stamps(closed_circle($Dx, $Dy, 'blue')); $gr[$i]->lb(new Label($Dx, $Dy+0.25, 'D', 'blue', 'center', 'bottom')); } diff --git a/OpenProblemLibrary/Hope/Multi1/01-02-Vector-operations/Graphical_vector_ops_08.pg b/OpenProblemLibrary/Hope/Multi1/01-02-Vector-operations/Graphical_vector_ops_08.pg index 799dc3adc1..8c1d97a775 100755 --- a/OpenProblemLibrary/Hope/Multi1/01-02-Vector-operations/Graphical_vector_ops_08.pg +++ b/OpenProblemLibrary/Hope/Multi1/01-02-Vector-operations/Graphical_vector_ops_08.pg @@ -19,7 +19,7 @@ loadMacros( "MathObjects.pl", "PGgraphmacros.pl", "contextLimitedVector.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGML.pl", "scaffold.pl", @@ -94,16 +94,16 @@ foreach my $i (0) { foreach my $i (0) { # plot points A, B, C, D - $gr[$i]->stamps(closed_circle($Ax, $Ay, 'blue')); + $gr[$i]->stamps(closed_circle($Ax, $Ay, 'blue')); $gr[$i]->lb(new Label($Ax, $Ay+0.25, 'A', 'blue', 'center', 'bottom')); - $gr[$i]->stamps(closed_circle($Bx, $By, 'blue')); + $gr[$i]->stamps(closed_circle($Bx, $By, 'blue')); $gr[$i]->lb(new Label($Bx, $By+0.25, 'B', 'blue', 'center', 'bottom')); - $gr[$i]->stamps(closed_circle($Cx, $Cy, 'blue')); + $gr[$i]->stamps(closed_circle($Cx, $Cy, 'blue')); $gr[$i]->lb(new Label($Cx, $Cy+0.25, 'C', 'blue', 'center', 'bottom')); - $gr[$i]->stamps(closed_circle($Dx, $Dy, 'blue')); + $gr[$i]->stamps(closed_circle($Dx, $Dy, 'blue')); $gr[$i]->lb(new Label($Dx, $Dy+0.25, 'D', 'blue', 'center', 'bottom')); } diff --git a/OpenProblemLibrary/Hope/Multi1/01-02-Vector-operations/Vectors-10.pg b/OpenProblemLibrary/Hope/Multi1/01-02-Vector-operations/Vectors-10.pg index a8cefd2d98..811f05238d 100644 --- a/OpenProblemLibrary/Hope/Multi1/01-02-Vector-operations/Vectors-10.pg +++ b/OpenProblemLibrary/Hope/Multi1/01-02-Vector-operations/Vectors-10.pg @@ -21,13 +21,13 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "unionLists.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -81,31 +81,31 @@ $BR $ITEM Find the distance between \( A \) and \( B \). $BR \{ ans_rule(40) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $ITEMSEP $ITEM Find the distance between \( C \) and \( D \). $BR \{ ans_rule(40) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $ITEMSEP $ITEM Find the distance between the point \( (x,y,z) \) and \( C \). $BR \{ ans_rule(40) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $ITEMSEP $ITEM Find the length of the vector \( \overrightarrow{CD} \). $BR \{ ans_rule(40) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $ITEMSEP $ITEM Find the length of the vector \( $k \overrightarrow{BA} \). $BR \{ ans_rule(40) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} \{ EndList("OL") \} END_TEXT diff --git a/OpenProblemLibrary/Hope/Multi1/01-02-Vector-operations/Vectors-14.pg b/OpenProblemLibrary/Hope/Multi1/01-02-Vector-operations/Vectors-14.pg index f8238a1e5e..7851a4cd31 100644 --- a/OpenProblemLibrary/Hope/Multi1/01-02-Vector-operations/Vectors-14.pg +++ b/OpenProblemLibrary/Hope/Multi1/01-02-Vector-operations/Vectors-14.pg @@ -21,7 +21,7 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", @@ -29,7 +29,7 @@ loadMacros( "parserVectorUtils.pl", "contextLimitedVector.pl", "unionLists.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -58,13 +58,13 @@ $answer = List( norm($AB), norm($AC), norm($BC) ); Context()->texStrings; BEGIN_TEXT -Find the lengths of the three sides of the triangle \( ABC \) +Find the lengths of the three sides of the triangle \( ABC \) in \( \mathbb{R}^3 \) if \( A = $A \), \( B = $B \) and \( C = $C \). Enter your answers as a comma separated list. $BR $BR \{ ans_rule(50) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/Hope/Multi1/01-02-Vector-operations/Vectors-24.pg b/OpenProblemLibrary/Hope/Multi1/01-02-Vector-operations/Vectors-24.pg index 1abdd8cf6e..b6243397b8 100644 --- a/OpenProblemLibrary/Hope/Multi1/01-02-Vector-operations/Vectors-24.pg +++ b/OpenProblemLibrary/Hope/Multi1/01-02-Vector-operations/Vectors-24.pg @@ -22,7 +22,7 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", @@ -30,7 +30,7 @@ loadMacros( "parserVectorUtils.pl", "contextLimitedVector.pl", "unionLists.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -81,34 +81,34 @@ $BR $ITEM Find the vector \( \overrightarrow{AB} \) in \( \mathbb{R}^4 \). $BR \{ ans_rule(40) \} -\{ AnswerFormatHelp("vectors") \} +\{ helpLink("vectors") \} $ITEMSEP -$ITEM Find a vector in the direction of \( \overrightarrow{AB} \) +$ITEM Find a vector in the direction of \( \overrightarrow{AB} \) that is \( $k \) times as long as \( \overrightarrow{AB} \). $BR \{ ans_rule(40) \} -\{ AnswerFormatHelp("vectors") \} +\{ helpLink("vectors") \} $ITEMSEP -$ITEM Find a vector in the direction opposite \( \overrightarrow{AB} \) +$ITEM Find a vector in the direction opposite \( \overrightarrow{AB} \) that is \( $k \) times as long as \( \overrightarrow{AB} \). $BR \{ ans_rule(40) \} -\{ AnswerFormatHelp("vectors") \} +\{ helpLink("vectors") \} $ITEMSEP $ITEM Find a unit vector in the direction of \( \overrightarrow{AB} \). $BR \{ ans_rule(40) \} -\{ AnswerFormatHelp("vectors") \} +\{ helpLink("vectors") \} $ITEMSEP -$ITEM Find a vector in the direction of \( \overrightarrow{AB} \) +$ITEM Find a vector in the direction of \( \overrightarrow{AB} \) that has length \( $k \). $BR \{ ans_rule(40) \} -\{ AnswerFormatHelp("vectors") \} +\{ helpLink("vectors") \} \{ EndList("OL") \} END_TEXT diff --git a/OpenProblemLibrary/Hope/Multi1/01-02-Vector-operations/Vectors-29a.pg b/OpenProblemLibrary/Hope/Multi1/01-02-Vector-operations/Vectors-29a.pg index c02b361361..b9739f776e 100644 --- a/OpenProblemLibrary/Hope/Multi1/01-02-Vector-operations/Vectors-29a.pg +++ b/OpenProblemLibrary/Hope/Multi1/01-02-Vector-operations/Vectors-29a.pg @@ -21,7 +21,7 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", @@ -29,7 +29,7 @@ loadMacros( "parserVectorUtils.pl", "parserImplicitPlane.pl", "unionLists.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -61,16 +61,16 @@ $answer = ImplicitPlane(" $m * x + $n * y = $c"); Context()->texStrings; BEGIN_TEXT -Find a fully reduced equation for the set of all points in \( \mathbb{R}^2 \) +Find a fully reduced equation for the set of all points in \( \mathbb{R}^2 \) (i.e., the \(xy\)-plane) that are equidistant from the points \( A = $A \) and \( B = $B \). -Recall that a point \( P = (x,y) \) is equidistant from \( A \) and \( B \) +Recall that a point \( P = (x,y) \) is equidistant from \( A \) and \( B \) if \( d(P,A) = d(P,B) \). Plot a graph of this set of points and describe this set geometrically. $BR $BR \{ ans_rule(50) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/Hope/Multi1/01-02-Vector-operations/Vectors-29b.pg b/OpenProblemLibrary/Hope/Multi1/01-02-Vector-operations/Vectors-29b.pg index 621038e05b..1a5d981a01 100644 --- a/OpenProblemLibrary/Hope/Multi1/01-02-Vector-operations/Vectors-29b.pg +++ b/OpenProblemLibrary/Hope/Multi1/01-02-Vector-operations/Vectors-29b.pg @@ -21,7 +21,7 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", @@ -29,7 +29,7 @@ loadMacros( "parserVectorUtils.pl", "parserImplicitPlane.pl", "PGessaymacros.pl", - "AnswerFormatHelp.pl", + "contextLimitedPowers.pl", "PGcourse.pl" ); @@ -66,20 +66,20 @@ $answer = ImplicitPlane(" $m * x + $n * y = $c"); Context()->texStrings; BEGIN_TEXT -Find a fully reduced equation for the set of all points in \( \mathbb{R}^2 \) +Find a fully reduced equation for the set of all points in \( \mathbb{R}^2 \) (i.e., the \(xy\)-plane) that are equidistant from the points \( A = $A \) and \( B = $B \). -Recall that a point \( P = (x,y) \) is equidistant from \( A \) and \( B \) +Recall that a point \( P = (x,y) \) is equidistant from \( A \) and \( B \) if \( d(P,A) = d(P,B) \). $BR $BR \{ ans_rule(50) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} $BR $BR On paper, plot a graph of this set of points. In the box below, describe this set of points geometrically. -Explain your answer using complete sentences with +Explain your answer using complete sentences with correct grammar, spelling and punctuation. $BR \{ essay_box(12,60) \} diff --git a/OpenProblemLibrary/Hope/Multi1/01-02-Vector-operations/Vectors-30a.pg b/OpenProblemLibrary/Hope/Multi1/01-02-Vector-operations/Vectors-30a.pg index b7912ccceb..0e299d806f 100644 --- a/OpenProblemLibrary/Hope/Multi1/01-02-Vector-operations/Vectors-30a.pg +++ b/OpenProblemLibrary/Hope/Multi1/01-02-Vector-operations/Vectors-30a.pg @@ -21,14 +21,14 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "parserVectorUtils.pl", "parserImplicitPlane.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -61,16 +61,16 @@ $answer = ImplicitPlane(" $m * x + $n * y + $p * z = $c"); Context()->texStrings; BEGIN_TEXT -Find a fully reduced equation for the set of all points in \( \mathbb{R}^3 \) +Find a fully reduced equation for the set of all points in \( \mathbb{R}^3 \) (i.e., \(xyz\)-space) that are equidistant from the points \( A = $A \) and \( B = $B \). -Recall that a point \( P = (x,y,z) \) is equidistant from \( A \) and \( B \) +Recall that a point \( P = (x,y,z) \) is equidistant from \( A \) and \( B \) if \( d(P,A) = d(P,B) \). Plot a graph of this set of points and describe this set geometrically. $BR $BR \{ ans_rule(50) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/Hope/Multi1/01-02-Vector-operations/Vectors-30b.pg b/OpenProblemLibrary/Hope/Multi1/01-02-Vector-operations/Vectors-30b.pg index 1598989550..2bfaacef18 100644 --- a/OpenProblemLibrary/Hope/Multi1/01-02-Vector-operations/Vectors-30b.pg +++ b/OpenProblemLibrary/Hope/Multi1/01-02-Vector-operations/Vectors-30b.pg @@ -21,7 +21,7 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", @@ -29,7 +29,7 @@ loadMacros( "parserVectorUtils.pl", "parserImplicitPlane.pl", "PGessaymacros.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -62,20 +62,20 @@ $answer = ImplicitPlane(" $m * x + $n * y + $p * z = $c"); Context()->texStrings; BEGIN_TEXT -Find a fully reduced equation for the set of all points in \( \mathbb{R}^3 \) +Find a fully reduced equation for the set of all points in \( \mathbb{R}^3 \) (i.e., \(xyz\)-space) that are equidistant from the points \( A = $A \) and \( B = $B \). -Recall that a point \( P = (x,y,z) \) is equidistant from \( A \) and \( B \) +Recall that a point \( P = (x,y,z) \) is equidistant from \( A \) and \( B \) if \( d(P,A) = d(P,B) \). $BR $BR \{ ans_rule(50) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} $BR $BR On paper, plot a graph of this set of points. In the box below, describe this set of points geometrically. -Explain your answer using complete sentences with +Explain your answer using complete sentences with correct grammar, spelling and punctuation. $BR \{ essay_box(12,60) \} diff --git a/OpenProblemLibrary/Hope/Multi1/01-02-Vector-operations/Vectors-31a.pg b/OpenProblemLibrary/Hope/Multi1/01-02-Vector-operations/Vectors-31a.pg index b266dd9503..80d15eeedd 100644 --- a/OpenProblemLibrary/Hope/Multi1/01-02-Vector-operations/Vectors-31a.pg +++ b/OpenProblemLibrary/Hope/Multi1/01-02-Vector-operations/Vectors-31a.pg @@ -21,7 +21,7 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", @@ -29,7 +29,7 @@ loadMacros( "parserVectorUtils.pl", "parserImplicitPlane.pl", "unionLists.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -61,18 +61,18 @@ $answer = Formula("( (x - $a)^2 + $bb) / ($b2)"); Context()->texStrings; BEGIN_TEXT -(a) What is the distance from an arbitrary point \( (x,y) \) in \( \mathbb{R}^2 \) +(a) What is the distance from an arbitrary point \( (x,y) \) in \( \mathbb{R}^2 \) to the \( x \)-axis? $BR \{ ans_rule(10) \} $BR $BR -(b) Find a fully simplified equation for the set of all points \( P = (x,y) \) +(b) Find a fully simplified equation for the set of all points \( P = (x,y) \) equidistant from the \( x \)-axis and the point \( $A \). Plot a graph of this set of points and describe this set geometrically. $BR \( y = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/Hope/Multi1/01-02-Vector-operations/Vectors-31b.pg b/OpenProblemLibrary/Hope/Multi1/01-02-Vector-operations/Vectors-31b.pg index eb77625abf..b367c24ec3 100644 --- a/OpenProblemLibrary/Hope/Multi1/01-02-Vector-operations/Vectors-31b.pg +++ b/OpenProblemLibrary/Hope/Multi1/01-02-Vector-operations/Vectors-31b.pg @@ -21,7 +21,7 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", @@ -29,7 +29,7 @@ loadMacros( "parserVectorUtils.pl", "parserImplicitPlane.pl", "PGessaymacros.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -61,23 +61,23 @@ $answer = Formula("( (x - $a)^2 + $bb) / ($b2)"); Context()->texStrings; BEGIN_TEXT -(a) What is the distance from an arbitrary point \( (x,y) \) in \( \mathbb{R}^2 \) +(a) What is the distance from an arbitrary point \( (x,y) \) in \( \mathbb{R}^2 \) to the \( x \)-axis? $BR \{ ans_rule(10) \} $BR $BR -(b) Find a fully simplified equation for the set of all points \( P = (x,y) \) +(b) Find a fully simplified equation for the set of all points \( P = (x,y) \) equidistant from the \( x \)-axis and the point \( $A \). Plot a graph of this set of points and describe this set geometrically. $BR \( y = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR On paper, plot a graph of this set of points. In the box below, describe this set of points geometrically. -Explain your answer using complete sentences with +Explain your answer using complete sentences with correct grammar, spelling and punctuation. $BR \{ essay_box(12,60) \} diff --git a/OpenProblemLibrary/Hope/Multi1/01-05-Lines-planes/Lines_graphical_01.pg b/OpenProblemLibrary/Hope/Multi1/01-05-Lines-planes/Lines_graphical_01.pg index 5a5245de82..4203568999 100755 --- a/OpenProblemLibrary/Hope/Multi1/01-05-Lines-planes/Lines_graphical_01.pg +++ b/OpenProblemLibrary/Hope/Multi1/01-05-Lines-planes/Lines_graphical_01.pg @@ -19,7 +19,7 @@ loadMacros( "MathObjects.pl", "PGgraphmacros.pl", "contextLimitedVector.pl", - "AnswerFormatHelp.pl", + "parserPopUp.pl", "parserMultiAnswer.pl", "parserOneOf.pl", @@ -45,7 +45,7 @@ $a21 = random(1,2,1); $a22 = random(2,3,1); # point P = (a11, a12) # direction vector v = (a12, a22) -$P = OneOf(Vector("<$a11, $a21>"),Point("($a11,$a21)")); +$P = OneOf(Vector("<$a11, $a21>"),Point("($a11,$a21)")); $v = OneOf(Vector("<$a12, $a22>"),Point("($a12,$a22)")); foreach my $i (0) { diff --git a/OpenProblemLibrary/Hope/Multi1/01-05-Lines-planes/Planes_graphical_01.pg b/OpenProblemLibrary/Hope/Multi1/01-05-Lines-planes/Planes_graphical_01.pg index 2881f6b9a4..8ded64f32e 100755 --- a/OpenProblemLibrary/Hope/Multi1/01-05-Lines-planes/Planes_graphical_01.pg +++ b/OpenProblemLibrary/Hope/Multi1/01-05-Lines-planes/Planes_graphical_01.pg @@ -18,7 +18,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedVector.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "parserOneOf.pl", "parserPopUp.pl", @@ -66,7 +66,7 @@ $three_point_cmp = List(Point($a,0,0),Point($a,1,0),Point($a,0,1))->cmp( my $score = 0; # number of correct student answers my @errors = (); # stores error messages my $i, $j; # loop counters - + # # Loop though the student answers ## @@ -111,8 +111,8 @@ $three_point_cmp = List(Point($a,0,0),Point($a,1,0),Point($a,0,1))->cmp( # Check for collinearity my $v1 = Vector($student->[0] - $student->[1]); my $v2 = Vector($student->[0] - $student->[2]); - if (Vector(0,0,0) == $v1->cross($v2)) { - push(@errors,"Your points are collinear"); + if (Vector(0,0,0) == $v1->cross($v2)) { + push(@errors,"Your points are collinear"); $score=0; } diff --git a/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_add_01.pg b/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_add_01.pg index ec52df5995..ab44d73dd3 100644 --- a/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_add_01.pg +++ b/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_add_01.pg @@ -23,11 +23,11 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserPopUp.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); $showPartialCorrectAnswers = 0; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Matrix'); Context()->parens->set("[" => {formMatrix => 1}); @@ -50,22 +50,22 @@ $popup = PopUp(['Choose','True','False'],'True'); Context()->texStrings; BEGIN_TEXT -Let +Let \[ A = $A,\] \[ B = $B.\] -If possible, compute the following. +If possible, compute the following. If an answer does not exist, enter ${BBOLD}DNE${EBOLD}. $BR $BR \( A + B = \) -\{ ans_box(3,30).$SPACE.AnswerFormatHelp('matrices') \} +\{ ans_box(3,30).$SPACE.helpLink('matrices') \} $BR $BR \( B + A = \) -\{ ans_box(3,30).$SPACE.AnswerFormatHelp('matrices') \} +\{ ans_box(3,30).$SPACE.helpLink('matrices') \} $BR $BR -\{ $popup->menu \} True or False: \( A + B = B + A \) for every pair of matrices +\{ $popup->menu \} True or False: \( A + B = B + A \) for every pair of matrices \( A \) and \( B \) of the same size. END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_add_02.pg b/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_add_02.pg index e74c754888..05aadb8477 100644 --- a/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_add_02.pg +++ b/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_add_02.pg @@ -23,11 +23,11 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserPopUp.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); $showPartialCorrectAnswers = 0; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Matrix'); @@ -54,23 +54,23 @@ $popup = PopUp(['Choose','True','False'],'True'); Context()->texStrings; BEGIN_TEXT -Let +Let \[ A = $A,\] \[ B = $B,\] \[ C = $C.\] -If possible, compute the following. +If possible, compute the following. If an answer does not exist, enter ${BBOLD}DNE${EBOLD}. $BR $BR \( (A + B) + C = \) -\{ ans_box(3,30).$SPACE.AnswerFormatHelp('matrices') \} +\{ ans_box(3,30).$SPACE.helpLink('matrices') \} $BR $BR \( A + (B + C) = \) -\{ ans_box(3,30).$SPACE.AnswerFormatHelp('matrices') \} +\{ ans_box(3,30).$SPACE.helpLink('matrices') \} $BR $BR -\{ $popup->menu \} True or False: \( (A + B) + C = A + (B + C) \) for any three matrices +\{ $popup->menu \} True or False: \( (A + B) + C = A + (B + C) \) for any three matrices \( A \), \( B \) and \( C \) of the same size. END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_add_03.pg b/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_add_03.pg index 6d6dcf1abd..fe898cd5c8 100644 --- a/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_add_03.pg +++ b/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_add_03.pg @@ -23,11 +23,11 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserPopUp.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); $showPartialCorrectAnswers = 0; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Matrix'); @@ -53,23 +53,23 @@ $popup = PopUp(['Choose','True','False'],'True'); Context()->texStrings; BEGIN_TEXT -Let +Let \[ A = $A,\] \[ B = $B.\] -If possible, compute the following. +If possible, compute the following. If an answer does not exist, enter ${BBOLD}DNE${EBOLD}. $BR $BR \( $k(A + B) = \) -\{ ans_box(3,30).$SPACE.AnswerFormatHelp('matrices') \} +\{ ans_box(3,30).$SPACE.helpLink('matrices') \} $BR $BR \( $k A + $k B = \) -\{ ans_box(3,30).$SPACE.AnswerFormatHelp('matrices') \} +\{ ans_box(3,30).$SPACE.helpLink('matrices') \} $BR $BR -\{ $popup->menu \} True or False: \( r (A + B) = r A + r B \) for any real -number \( r \) and any two matrices +\{ $popup->menu \} True or False: \( r (A + B) = r A + r B \) for any real +number \( r \) and any two matrices \( A \) and \( B \) of the same size. END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_add_04.pg b/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_add_04.pg index a17f9b4742..7c60190d37 100644 --- a/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_add_04.pg +++ b/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_add_04.pg @@ -23,11 +23,11 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserPopUp.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); $showPartialCorrectAnswers = 0; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Matrix'); @@ -44,21 +44,21 @@ $popup = PopUp(['Choose','True','False'],'True'); Context()->texStrings; BEGIN_TEXT -Let +Let \[ A = $A.\] -If possible, compute the following. +If possible, compute the following. If an answer does not exist, enter ${BBOLD}DNE${EBOLD}. $BR $BR \( $k1 A + $k2 A = \) -\{ ans_box(3,30).$SPACE.AnswerFormatHelp('matrices') \} +\{ ans_box(3,30).$SPACE.helpLink('matrices') \} $BR $BR \( $k A = \) -\{ ans_box(3,30).$SPACE.AnswerFormatHelp('matrices') \} +\{ ans_box(3,30).$SPACE.helpLink('matrices') \} $BR $BR -\{ $popup->menu \} True or False: \( (r_1 + r_2) A = r_1 A + r_2 A \) for any two real +\{ $popup->menu \} True or False: \( (r_1 + r_2) A = r_1 A + r_2 A \) for any two real numbers \( r_1 \) and \( r_2 \) and any matrix \( A \). END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_add_05.pg b/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_add_05.pg index b7519e6d91..15ddcbc647 100644 --- a/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_add_05.pg +++ b/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_add_05.pg @@ -22,11 +22,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); $showPartialCorrectAnswers = 0; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Matrix'); @@ -51,20 +51,20 @@ $C = Matrix([ Context()->texStrings; BEGIN_TEXT -Let +Let \[ A = $A,\] \[ B = $B,\] \[ C = $C.\] -If possible, compute the following. +If possible, compute the following. If an answer does not exist, enter ${BBOLD}DNE${EBOLD}. $BR $BR \( A+B = \) -\{ ans_box(3,30).$SPACE.AnswerFormatHelp('matrices') \} +\{ ans_box(3,30).$SPACE.helpLink('matrices') \} $BR $BR \( A+C = \) -\{ ans_box(3,30).$SPACE.AnswerFormatHelp('matrices') \} +\{ ans_box(3,30).$SPACE.helpLink('matrices') \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_add_06.pg b/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_add_06.pg index e2f05b6dde..fe64539fb3 100644 --- a/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_add_06.pg +++ b/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_add_06.pg @@ -22,11 +22,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); $showPartialCorrectAnswers = 0; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Matrix'); @@ -51,20 +51,20 @@ $k2 = random(2,9,1); Context()->texStrings; BEGIN_TEXT -Let +Let \[ A = $A,\] \[ B = $B,\] \[ C = $C.\] -If possible, compute the following. +If possible, compute the following. If an answer does not exist, enter ${BBOLD}DNE${EBOLD}. $BR $BR \( (-$k1) B = \) -\{ ans_box(3,30).$SPACE.AnswerFormatHelp('matrices') \} +\{ ans_box(3,30).$SPACE.helpLink('matrices') \} $BR $BR \( $k1 A - $k2 C = \) -\{ ans_box(3,30).$SPACE.AnswerFormatHelp('matrices') \} +\{ ans_box(3,30).$SPACE.helpLink('matrices') \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_01.pg b/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_01.pg index 3497a6e120..94a207f597 100644 --- a/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_01.pg +++ b/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_01.pg @@ -23,11 +23,11 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserPopUp.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); $showPartialCorrectAnswers = 0; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Matrix'); @@ -49,22 +49,22 @@ $popup = PopUp(['Choose','True','False'],'False'); Context()->texStrings; BEGIN_TEXT -Let +Let \[ A = $A,\] \[ B = $B.\] -If possible, compute the following. +If possible, compute the following. If an answer does not exist, enter ${BBOLD}DNE${EBOLD}. $BR $BR \( AB = \) -\{ ans_box(3,30).$SPACE.AnswerFormatHelp('matrices') \} +\{ ans_box(3,30).$SPACE.helpLink('matrices') \} $BR $BR \( BA = \) -\{ ans_box(3,30).$SPACE.AnswerFormatHelp('matrices') \} +\{ ans_box(3,30).$SPACE.helpLink('matrices') \} $BR $BR -\{ $popup->menu \} True or False: \( AB = BA \) for every pair of square matrices +\{ $popup->menu \} True or False: \( AB = BA \) for every pair of square matrices \( A \) and \( B \) of the same size. END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_02.pg b/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_02.pg index 1906e5f155..9550a3c86f 100644 --- a/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_02.pg +++ b/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_02.pg @@ -23,11 +23,11 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserPopUp.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); $showPartialCorrectAnswers = 0; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Matrix'); @@ -47,26 +47,26 @@ $popup2 = PopUp(['Choose','True','False'],'False'); Context()->texStrings; BEGIN_TEXT -Let +Let \[ A = $A,\] \[ B = $B.\] -If possible, compute the following. +If possible, compute the following. If an answer does not exist, enter ${BBOLD}DNE${EBOLD}. $BR $BR \( AB = \) -\{ ans_box(3,30).$SPACE.AnswerFormatHelp('matrices') \} +\{ ans_box(3,30).$SPACE.helpLink('matrices') \} $BR $BR \( BA = \) -\{ ans_box(3,30).$SPACE.AnswerFormatHelp('matrices') \} +\{ ans_box(3,30).$SPACE.helpLink('matrices') \} $BR $BR -\{ $popup1->menu \} True or False: The products \( AB \) and \( BA \) -are both defined only when +\{ $popup1->menu \} True or False: The products \( AB \) and \( BA \) +are both defined only when \( A \) and \( B \) are both square matrices of the same size. $BR -\{ $popup2->menu \} True or False: When both of the matrix products \( AB \) and \( BA \) +\{ $popup2->menu \} True or False: When both of the matrix products \( AB \) and \( BA \) exist, \( AB \) and \( BA \) are matrices of the same size. END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_03.pg b/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_03.pg index 28c4b9621d..dc5f1e9c41 100644 --- a/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_03.pg +++ b/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_03.pg @@ -23,11 +23,11 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserPopUp.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); $showPartialCorrectAnswers = 0; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Matrix'); @@ -45,23 +45,23 @@ $popup = PopUp(['Choose','True','False'],'False'); Context()->texStrings; BEGIN_TEXT -Let +Let \[ A = $A,\] \[ B = $B.\] -If possible, compute the following. +If possible, compute the following. If an answer does not exist, enter ${BBOLD}DNE${EBOLD}. $BR $BR \( AB = \) -\{ ans_box(3,30).$SPACE.AnswerFormatHelp('matrices') \} +\{ ans_box(3,30).$SPACE.helpLink('matrices') \} $BR $BR \( BA = \) -\{ ans_box(3,30).$SPACE.AnswerFormatHelp('matrices') \} +\{ ans_box(3,30).$SPACE.helpLink('matrices') \} $BR $BR -\{ $popup->menu \} True or False: For any two matrices -\( A \) and \( B \), both of the products \( AB \) and \( BA \) +\{ $popup->menu \} True or False: For any two matrices +\( A \) and \( B \), both of the products \( AB \) and \( BA \) are always defined. END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_04.pg b/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_04.pg index 372b0e44a3..385ace8648 100644 --- a/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_04.pg +++ b/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_04.pg @@ -22,11 +22,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); $showPartialCorrectAnswers = 0; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Matrix'); @@ -48,20 +48,20 @@ $C = Matrix([ Context()->texStrings; BEGIN_TEXT -Let +Let \[ A = $A,\] \[ B = $B,\] \[ C = $C.\] -If possible, compute the following. +If possible, compute the following. If an answer does not exist, enter ${BBOLD}DNE${EBOLD}. $BR $BR \( AC = \) -\{ ans_box(3,30).$SPACE.AnswerFormatHelp('matrices') \} +\{ ans_box(3,30).$SPACE.helpLink('matrices') \} $BR $BR \( BC = \) -\{ ans_box(3,30).$SPACE.AnswerFormatHelp('matrices') \} +\{ ans_box(3,30).$SPACE.helpLink('matrices') \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_05.pg b/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_05.pg index 9bdb69e266..d33d2ea6d9 100644 --- a/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_05.pg +++ b/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_05.pg @@ -22,11 +22,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); $showPartialCorrectAnswers = 0; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Matrix'); @@ -48,20 +48,20 @@ $C = Matrix([ Context()->texStrings; BEGIN_TEXT -Let +Let \[ A = $A,\] \[ B = $B,\] \[ C = $C.\] -If possible, compute the following. +If possible, compute the following. If an answer does not exist, enter ${BBOLD}DNE${EBOLD}. $BR $BR \( CB-A = \) -\{ ans_box(3,30).$SPACE.AnswerFormatHelp('matrices') \} +\{ ans_box(3,30).$SPACE.helpLink('matrices') \} $BR $BR \( CA = \) -\{ ans_box(3,30).$SPACE.AnswerFormatHelp('matrices') \} +\{ ans_box(3,30).$SPACE.helpLink('matrices') \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_06.pg b/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_06.pg index 3050b972cc..8352cc2587 100644 --- a/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_06.pg +++ b/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_06.pg @@ -22,11 +22,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); $showPartialCorrectAnswers = 0; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Matrix'); @@ -48,20 +48,20 @@ $C = Matrix([ Context()->texStrings; BEGIN_TEXT -Let +Let \[ A = $A,\] \[ B = $B,\] \[ C = $C.\] -If possible, compute the following. +If possible, compute the following. If an answer does not exist, enter ${BBOLD}DNE${EBOLD}. $BR $BR \( ACB = \) -\{ ans_box(3,30).$SPACE.AnswerFormatHelp('matrices') \} +\{ ans_box(3,30).$SPACE.helpLink('matrices') \} $BR $BR \( ABC = \) -\{ ans_box(3,30).$SPACE.AnswerFormatHelp('matrices') \} +\{ ans_box(3,30).$SPACE.helpLink('matrices') \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_07.pg b/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_07.pg index 40b1028118..d87e8f79e0 100644 --- a/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_07.pg +++ b/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_07.pg @@ -22,11 +22,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); $showPartialCorrectAnswers = 0; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Matrix'); @@ -38,19 +38,19 @@ $A = Matrix([ Context()->texStrings; BEGIN_TEXT -Let +Let \[ A = $A.\] -If possible, compute the following. +If possible, compute the following. If an answer does not exist, enter ${BBOLD}DNE${EBOLD}. If an answer is a \( 1 \times 1 \) matrix, enter a number without any brackets. $BR $BR \( A^T A = \) -\{ ans_box(3,30).$SPACE.AnswerFormatHelp('matrices') \} +\{ ans_box(3,30).$SPACE.helpLink('matrices') \} $BR $BR \( A A^T = \) -\{ ans_box(3,30).$SPACE.AnswerFormatHelp('matrices') \} +\{ ans_box(3,30).$SPACE.helpLink('matrices') \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_08.pg b/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_08.pg index 5e40c056f4..476abe0993 100644 --- a/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_08.pg +++ b/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_08.pg @@ -22,11 +22,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); $showPartialCorrectAnswers = 0; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Matrix'); @@ -37,18 +37,18 @@ $A = Matrix([ Context()->texStrings; BEGIN_TEXT -Let +Let \[ A = $A.\] -If possible, compute the following. +If possible, compute the following. If an answer does not exist, enter ${BBOLD}DNE${EBOLD}. $BR $BR \( A^2 = \) -\{ ans_box(3,30).$SPACE.AnswerFormatHelp('matrices') \} +\{ ans_box(3,30).$SPACE.helpLink('matrices') \} $BR $BR \( A^3 = \) -\{ ans_box(3,30).$SPACE.AnswerFormatHelp('matrices') \} +\{ ans_box(3,30).$SPACE.helpLink('matrices') \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_10.pg b/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_10.pg index e0c849ba51..85a4463890 100644 --- a/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_10.pg +++ b/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_10.pg @@ -23,11 +23,11 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); $showPartialCorrectAnswers = 0; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Matrix'); diff --git a/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_11.pg b/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_11.pg index c0806a1a69..70bedef1f9 100644 --- a/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_11.pg +++ b/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_11.pg @@ -23,17 +23,17 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); $showPartialCorrectAnswers = 0; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Matrix'); $A = Matrix([[2,0],[0,1]]); $B = Matrix([[1,0],[0,2]]); -$I = Matrix([[1,0],[0,1]]); +$I = Matrix([[1,0],[0,1]]); $Z = Matrix([[0,0],[0,0]]); $multians = MultiAnswer($A, $B)->with( diff --git a/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_13.pg b/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_13.pg index b1ec6e0489..b8cd0adf44 100644 --- a/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_13.pg +++ b/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_13.pg @@ -23,11 +23,11 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); $showPartialCorrectAnswers = 0; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Matrix'); diff --git a/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_14.pg b/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_14.pg index 305d37a650..9419e0b672 100644 --- a/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_14.pg +++ b/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_mult_14.pg @@ -23,11 +23,11 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); $showPartialCorrectAnswers = 0; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Matrix'); diff --git a/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_type_01.pg b/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_type_01.pg index df9b2c3787..97bb3596ba 100644 --- a/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_type_01.pg +++ b/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_type_01.pg @@ -26,11 +26,11 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); $showPartialCorrectAnswers = 0; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Matrix'); @@ -55,12 +55,12 @@ ANS( $A->cmp( checker => sub { if ($S == $Z) { return 0; } elsif ( - $S->element(1,2) == 0 and - $S->element(1,3) == 0 and + $S->element(1,2) == 0 and + $S->element(1,3) == 0 and $S->element(2,3) == 0 and - $S->element(2,1) == 0 and - $S->element(3,1) == 0 and - $S->element(3,2) == 0 ) + $S->element(2,1) == 0 and + $S->element(3,1) == 0 and + $S->element(3,2) == 0 ) { return 1; } else { diff --git a/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_type_02.pg b/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_type_02.pg index b70405422c..e3f604ab37 100644 --- a/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_type_02.pg +++ b/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_type_02.pg @@ -28,11 +28,11 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); $showPartialCorrectAnswers = 0; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Matrix'); @@ -53,19 +53,19 @@ install_problem_grader(~~&std_problem_grader); ANS( $A->cmp( checker => sub { my ( $correct, $student, $ansHash ) = @_; $S = Matrix($student); - if ( - $S->element(1,2) == 0 and - $S->element(1,3) == 0 and + if ( + $S->element(1,2) == 0 and + $S->element(1,3) == 0 and $S->element(2,3) == 0 and - $S->element(2,1) == 0 and - $S->element(3,1) == 0 and - $S->element(3,2) == 0 ) + $S->element(2,1) == 0 and + $S->element(3,1) == 0 and + $S->element(3,2) == 0 ) { return 0; } elsif ( - $S->element(2,1) == 0 and - $S->element(3,1) == 0 and - $S->element(3,2) == 0 ) + $S->element(2,1) == 0 and + $S->element(3,1) == 0 and + $S->element(3,2) == 0 ) { return 1; } else { diff --git a/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_type_03.pg b/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_type_03.pg index 47a5590982..3e6759001f 100644 --- a/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_type_03.pg +++ b/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_type_03.pg @@ -26,11 +26,11 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); $showPartialCorrectAnswers = 0; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Matrix'); @@ -51,19 +51,19 @@ install_problem_grader(~~&std_problem_grader); ANS( $A->cmp( checker => sub { my ( $correct, $student, $ansHash ) = @_; $S = Matrix($student); - if ( - $S->element(1,2) == 0 and - $S->element(1,3) == 0 and + if ( + $S->element(1,2) == 0 and + $S->element(1,3) == 0 and $S->element(2,3) == 0 and - $S->element(2,1) == 0 and - $S->element(3,1) == 0 and - $S->element(3,2) == 0 ) + $S->element(2,1) == 0 and + $S->element(3,1) == 0 and + $S->element(3,2) == 0 ) { return 0; } elsif ( - $S->element(1,2) == 0 and - $S->element(1,3) == 0 and - $S->element(2,3) == 0 ) + $S->element(1,2) == 0 and + $S->element(1,3) == 0 and + $S->element(2,3) == 0 ) { return 1; } else { diff --git a/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_type_04.pg b/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_type_04.pg index 274df81b4e..d7a2f5feec 100644 --- a/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_type_04.pg +++ b/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_type_04.pg @@ -28,11 +28,11 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); $showPartialCorrectAnswers = 0; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Matrix'); @@ -53,13 +53,13 @@ install_problem_grader(~~&std_problem_grader); ANS( $A->cmp( checker => sub { my ( $correct, $student, $ansHash ) = @_; $S = Matrix($student); - if ( - $S->element(1,2) == 0 and - $S->element(1,3) == 0 and + if ( + $S->element(1,2) == 0 and + $S->element(1,3) == 0 and $S->element(2,3) == 0 and - $S->element(2,1) == 0 and - $S->element(3,1) == 0 and - $S->element(3,2) == 0 ) + $S->element(2,1) == 0 and + $S->element(3,1) == 0 and + $S->element(3,2) == 0 ) { return 0; } else { diff --git a/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_type_05.pg b/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_type_05.pg index 4a33de1e9e..e14847052c 100644 --- a/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_type_05.pg +++ b/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_type_05.pg @@ -27,11 +27,11 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); $showPartialCorrectAnswers = 0; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Matrix'); @@ -52,22 +52,22 @@ install_problem_grader(~~&std_problem_grader); ANS( $A->cmp( checker => sub { my ( $correct, $student, $ansHash ) = @_; $S = Matrix($student); - if ( - $S->element(1,2) == 0 and - $S->element(1,3) == 0 and + if ( + $S->element(1,2) == 0 and + $S->element(1,3) == 0 and $S->element(2,3) == 0 and - $S->element(2,1) == 0 and - $S->element(3,1) == 0 and - $S->element(3,2) == 0 ) + $S->element(2,1) == 0 and + $S->element(3,1) == 0 and + $S->element(3,2) == 0 ) { return 0; } elsif ( - $S->element(1,1) == 0 and - $S->element(2,2) == 0 and + $S->element(1,1) == 0 and + $S->element(2,2) == 0 and $S->element(3,3) == 0 and - $S->element(1,2) == -1*$S->element(2,1) and - $S->element(1,3) == -1*$S->element(3,1) and - $S->element(2,3) == -1*$S->element(3,2) ) + $S->element(1,2) == -1*$S->element(2,1) and + $S->element(1,3) == -1*$S->element(3,1) and + $S->element(2,3) == -1*$S->element(3,2) ) { return 1; } else { diff --git a/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_type_06.pg b/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_type_06.pg index ed61f68c51..9d5e01fa96 100644 --- a/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_type_06.pg +++ b/OpenProblemLibrary/Hope/Multi1/02-01-Matrix-operations/Matrix_type_06.pg @@ -23,11 +23,11 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserPopUp.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); $showPartialCorrectAnswers = 0; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Matrix'); do { @@ -47,7 +47,7 @@ $popup2 = PopUp(['Choose','Lower triangular','Upper triangular','Symmetric','Ske Context()->texStrings; BEGIN_TEXT -Let +Let \[ A = $A.\] Compute the following. $BR @@ -60,16 +60,16 @@ $BR \{ $answer2->ans_array() \} $BR $BR -For any square matrix \( A \), is the matrix \( A+A^T \) lower triangular, upper triangular, +For any square matrix \( A \), is the matrix \( A+A^T \) lower triangular, upper triangular, symmetric, skew-symmetric, or none of these? -$BR -\{ $popup1->menu \} +$BR +\{ $popup1->menu \} $BR $BR -For any square matrix \( A \), is the matrix \( A-A^T \) lower triangular, upper triangular, +For any square matrix \( A \), is the matrix \( A-A^T \) lower triangular, upper triangular, symmetric, skew-symmetric, or none of these? -$BR -\{ $popup2->menu \} +$BR +\{ $popup2->menu \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/Hope/Multi1/02-04-Row-reduction/Graphical_row_reduction_01.pg b/OpenProblemLibrary/Hope/Multi1/02-04-Row-reduction/Graphical_row_reduction_01.pg index aaa0b08366..9ee7540d09 100755 --- a/OpenProblemLibrary/Hope/Multi1/02-04-Row-reduction/Graphical_row_reduction_01.pg +++ b/OpenProblemLibrary/Hope/Multi1/02-04-Row-reduction/Graphical_row_reduction_01.pg @@ -19,7 +19,7 @@ loadMacros( "MathObjects.pl", "PGgraphmacros.pl", "contextLimitedVector.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "scaffold.pl", "unionTables.pl", @@ -190,7 +190,7 @@ $popup[8] = PopUp(['choose','yes','no','cannot be determined'],'no'); ## Answer checkers for vectors parallel to eigenvectors -sub eigvcheck { +sub eigvcheck { my $eigv = shift; sub { my ( $correct, $student, $ansHash ) = @_; @@ -225,7 +225,7 @@ END_PGML Section::Begin("Part 1: Finding eigenvalues using geometry"); BEGIN_PGML -If [`\mathbf{v_1}`] and [`\mathbf{v_2}`] are eigenvectors for [`T`], find their corresponding eigenvalues. If not, enter [|DNE|]. [@ AnswerFormatHelp("numbers") @]* +If [`\mathbf{v_1}`] and [`\mathbf{v_2}`] are eigenvectors for [`T`], find their corresponding eigenvalues. If not, enter [|DNE|]. [@ helpLink("numbers") @]* + [`T(\mathbf{v_1}) = `] [____]{"$k1"} [`\mathbf{v_1}`] + [`T(\mathbf{v_2}) = `] [____]{"$k2"} [`\mathbf{v_2}`] diff --git a/OpenProblemLibrary/Hope/Multi1/03-01-Vector-spaces/Discrete_time_signal_01.pg b/OpenProblemLibrary/Hope/Multi1/03-01-Vector-spaces/Discrete_time_signal_01.pg index 5419ddff6f..21d26acb60 100755 --- a/OpenProblemLibrary/Hope/Multi1/03-01-Vector-spaces/Discrete_time_signal_01.pg +++ b/OpenProblemLibrary/Hope/Multi1/03-01-Vector-spaces/Discrete_time_signal_01.pg @@ -19,7 +19,7 @@ loadMacros( "MathObjects.pl", "PGgraphmacros.pl", "contextLimitedVector.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "unionTables.pl", "scaffold.pl", @@ -113,7 +113,7 @@ $fig[1] = image(insertGraph($gr[1]), width=>$pixels, height=>$pixels, tex_size=> BEGIN_PGML Consider the two discrete time signals [` y = f(t) `] and [` y = g(t) `] graphed below and each sampled 8 times per second for [` 0 \leq t \leq 1 `]. -[@ +[@ BeginTable(). AlignedRow([ $fig[0], $fig[1] ]). TableSpace(5,0). @@ -123,24 +123,24 @@ EndTable() a. Find the coordinate vector representations for the discrete time signals [`f(t)`] and [`g(t)`]. - + [`\vec{f}=`] [_______________________________________]{$F} [@ AnswerFormatHelp("vectors") @]* - + [`\vec{g}=`] [_______________________________________]{$G} [@ AnswerFormatHelp("vectors") @]* + + [`\vec{f}=`] [_______________________________________]{$F} [@ helpLink("vectors") @]* + + [`\vec{g}=`] [_______________________________________]{$G} [@ helpLink("vectors") @]* b. Draw the vector sum [` \vec{f} + \vec{f} `] as a discrete time signal. Then, verify your answer using vector addition operations. - + [` \vec{f} + \vec{g} = `] [_______________________________________]{$FplusG} [@ AnswerFormatHelp("vectors") @]* + + [` \vec{f} + \vec{g} = `] [_______________________________________]{$FplusG} [@ helpLink("vectors") @]* c. Draw the scaled vector [` [$k] \vec{f} `] as a discrete time signal. Then, verify your answer using vector addition operations. - + [` [$k] \vec{f} = `] [_______________________________________]{$kF} [@ AnswerFormatHelp("vectors") @]* + + [` [$k] \vec{f} = `] [_______________________________________]{$kF} [@ helpLink("vectors") @]* d. Find the vector sum [` k_1 \vec{f} + k_2 \vec{g} `] when [`k_1 = [$k1] `] and [`k_2 = [$k2] `]. - + [` k_1 \vec{f} + k_2\vec{g} = `] [_______________________________________]{$k1Fplusk2G} [@ AnswerFormatHelp("vectors") @]* + + [` k_1 \vec{f} + k_2\vec{g} = `] [_______________________________________]{$k1Fplusk2G} [@ helpLink("vectors") @]* e. Find the additive inverse of [`\vec{g}`]. - + [`\vec{g} + `] [_______________________________________]{$negG} [` = \mathbf{0}. `] [@ AnswerFormatHelp("vectors") @]* + + [`\vec{g} + `] [_______________________________________]{$negG} [` = \mathbf{0}. `] [@ helpLink("vectors") @]* END_PGML ENDDOCUMENT(); diff --git a/OpenProblemLibrary/Hope/Multi1/04-02-Kernel-image/Geom_lin_trans_03/Geom_lin_trans_03.pg b/OpenProblemLibrary/Hope/Multi1/04-02-Kernel-image/Geom_lin_trans_03/Geom_lin_trans_03.pg index 9ab7e2d452..d8747e372f 100755 --- a/OpenProblemLibrary/Hope/Multi1/04-02-Kernel-image/Geom_lin_trans_03/Geom_lin_trans_03.pg +++ b/OpenProblemLibrary/Hope/Multi1/04-02-Kernel-image/Geom_lin_trans_03/Geom_lin_trans_03.pg @@ -21,7 +21,7 @@ loadMacros( "parserWordCompletion.pl", "PGML.pl", "PGchoicemacros.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); install_problem_grader(~~&std_problem_grader); diff --git a/OpenProblemLibrary/Hope/Multi1/05-01-Eigenstuff/Eigenvector_definition_01.pg b/OpenProblemLibrary/Hope/Multi1/05-01-Eigenstuff/Eigenvector_definition_01.pg index 6e19e0484d..4bfd07847a 100755 --- a/OpenProblemLibrary/Hope/Multi1/05-01-Eigenstuff/Eigenvector_definition_01.pg +++ b/OpenProblemLibrary/Hope/Multi1/05-01-Eigenstuff/Eigenvector_definition_01.pg @@ -20,7 +20,7 @@ loadMacros( "PGgraphmacros.pl", "contextLimitedVector.pl", "MatrixUnits.pl", - "AnswerFormatHelp.pl", + "PGchoicemacros.pl", "parserPopUp.pl", "PGML.pl", @@ -104,7 +104,7 @@ d. Is the vector [` [$kb1row] `] an eigenvector for [` A `]? [_]{$popup2} If so e. Are the vectors [` [$b1row] `] and [` [$kb1row] `] in the same eigenspace? [_]{$popup3} -f. If the vector [` [$b2incomplete] `] is an eigenvector for [` A `] with eigenvalue [` [$e2] `], then [` k = `] [______]{Real($b2y)} +f. If the vector [` [$b2incomplete] `] is an eigenvector for [` A `] with eigenvalue [` [$e2] `], then [` k = `] [______]{Real($b2y)} g. The linear transformation [`f`] acts like multiplication by [` [$e2] `] in the subspace [` \mathrm{span}\lbrace `] [__________]{$b2row->cmp(parallel => 1)} [`\rbrace`]. Enter your answer as a coordinate vector of the form [| <1,2> |]. diff --git a/OpenProblemLibrary/Hope/Multi1/05-01-Eigenstuff/Eigenvector_geometry_01.pg b/OpenProblemLibrary/Hope/Multi1/05-01-Eigenstuff/Eigenvector_geometry_01.pg index 4c213f46e7..5d9ea12797 100755 --- a/OpenProblemLibrary/Hope/Multi1/05-01-Eigenstuff/Eigenvector_geometry_01.pg +++ b/OpenProblemLibrary/Hope/Multi1/05-01-Eigenstuff/Eigenvector_geometry_01.pg @@ -19,7 +19,7 @@ loadMacros( "MathObjects.pl", "PGgraphmacros.pl", "contextLimitedVector.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "scaffold.pl", "unionTables.pl", @@ -233,7 +233,7 @@ Section::End(); Section::Begin("Part 2: Finding eigenvalues using geometry"); BEGIN_PGML -For each eigenvector from Part 1, find and enter the corresponding eigenvalue. [@ AnswerFormatHelp("numbers") @]* +For each eigenvector from Part 1, find and enter the corresponding eigenvalue. [@ helpLink("numbers") @]* a. [`T(\mathbf{v_1}) = `] [____]{"$k1"} [`\mathbf{v_1}`] b. [`T(\mathbf{v_3}) = `] [____]{"$k2"} [`\mathbf{v_3}`] @@ -244,13 +244,13 @@ Section::End(); Section::Begin("Part 3: Generalizing observations about eigenvectors to eigenspaces"); BEGIN_PGML -a. [@ $mc -> print_q() @]*** +a. [@ $mc -> print_q() @]*** [@ ANS(checkbox_cmp($mc->correct_ans)); $mc -> print_a() @]*** -b. [@ $mc1 -> print_q() @]*** +b. [@ $mc1 -> print_q() @]*** [@ ANS(checkbox_cmp($mc1->correct_ans)); $mc1 -> print_a() @]*** -c. [@ $mc2 -> print_q() @]*** +c. [@ $mc2 -> print_q() @]*** [@ ANS(checkbox_cmp($mc2->correct_ans)); $mc2 -> print_a() @]*** END_PGML Section::End(); diff --git a/OpenProblemLibrary/Hope/Multi1/05-01-Eigenstuff/Eigenvector_geometry_02.pg b/OpenProblemLibrary/Hope/Multi1/05-01-Eigenstuff/Eigenvector_geometry_02.pg index 7ff4d01f53..042ebae6af 100755 --- a/OpenProblemLibrary/Hope/Multi1/05-01-Eigenstuff/Eigenvector_geometry_02.pg +++ b/OpenProblemLibrary/Hope/Multi1/05-01-Eigenstuff/Eigenvector_geometry_02.pg @@ -19,7 +19,7 @@ loadMacros( "MathObjects.pl", "PGgraphmacros.pl", "contextLimitedVector.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "scaffold.pl", "unionTables.pl", @@ -275,10 +275,10 @@ EndTable() For each eigenvector from Part 1, find the corresponding eigenvalue. -+ [`T(\mathbf{v_{ [$i1] }}) = `] [____]{"$k1"} [`\mathbf{v_{ [$i1] }}`] [@ AnswerFormatHelp("numbers") @]* -+ [`T(\mathbf{v_{ [$i2] }}) = `] [____]{"$k2"} [`\mathbf{v_{ [$i2] }}`] [@ AnswerFormatHelp("numbers") @]* -+ [`T(\mathbf{v_{ [$i3] }}) = `] [____]{"$k1"} [`\mathbf{v_{ [$i3] }}`] [@ AnswerFormatHelp("numbers") @]* -+ [`T(\mathbf{v_{ [$i4] }}) = `] [____]{"$k2"} [`\mathbf{v_{ [$i4] }}`] [@ AnswerFormatHelp("numbers") @]* ++ [`T(\mathbf{v_{ [$i1] }}) = `] [____]{"$k1"} [`\mathbf{v_{ [$i1] }}`] [@ helpLink("numbers") @]* ++ [`T(\mathbf{v_{ [$i2] }}) = `] [____]{"$k2"} [`\mathbf{v_{ [$i2] }}`] [@ helpLink("numbers") @]* ++ [`T(\mathbf{v_{ [$i3] }}) = `] [____]{"$k1"} [`\mathbf{v_{ [$i3] }}`] [@ helpLink("numbers") @]* ++ [`T(\mathbf{v_{ [$i4] }}) = `] [____]{"$k2"} [`\mathbf{v_{ [$i4] }}`] [@ helpLink("numbers") @]* END_PGML Section::End(); @@ -288,14 +288,14 @@ a. Is every nonzero vector parallel to [`\mathbf{v_{ [$i1] }}`] an eigenvector f b. Is every eigenvector for [`T`] with eigenvalue [`[$k1]`] a nonzero vector parallel to [`\mathbf{v_{ [$i1] }}`] ? [_]{$popup[1]} -c. [@ $mc1 -> print_q() @]*** +c. [@ $mc1 -> print_q() @]*** [@ ANS(checkbox_cmp($mc1->correct_ans)); $mc1 -> print_a() @]*** d. Is every nonzero vector parallel to [`\mathbf{v_{ [$i2] }}`] an eigenvector for [`T`] with eigenvalue [`[$k2]`]? [_]{$popup[2]} e. Is every eigenvector for [`T`] with eigenvalue [`[$k2]`] a nonzero vector parallel to [`\mathbf{v_{ [$i2] }}`] ? [_]{$popup[3]} -f. [@ $mc2 -> print_q() @]*** +f. [@ $mc2 -> print_q() @]*** [@ ANS(checkbox_cmp($mc2->correct_ans)); $mc2 -> print_a() @]*** END_PGML Section::End(); diff --git a/OpenProblemLibrary/Hope/Multi1/05-01-Eigenstuff/Eigenvector_geometry_10.pg b/OpenProblemLibrary/Hope/Multi1/05-01-Eigenstuff/Eigenvector_geometry_10.pg index 577a8d4b57..9d29f6641c 100755 --- a/OpenProblemLibrary/Hope/Multi1/05-01-Eigenstuff/Eigenvector_geometry_10.pg +++ b/OpenProblemLibrary/Hope/Multi1/05-01-Eigenstuff/Eigenvector_geometry_10.pg @@ -19,7 +19,7 @@ loadMacros( "MathObjects.pl", "PGgraphmacros.pl", "contextLimitedVector.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "scaffold.pl", "unionTables.pl", @@ -110,8 +110,8 @@ foreach my $i (0..1) { # plot vectors in domain @x1 = (random(-2,-1,1), random(3,8,1)); -do { - @y1 = (non_zero_random(1,2,1), random(3,8,1)); +do { + @y1 = (non_zero_random(1,2,1), random(3,8,1)); } until ( $x1[0] * $y1[1] != $x1[1] * $y1[0] ); # until and are not parallel @@ -222,7 +222,7 @@ END_PGML Section::Begin("Part 1: Finding eigenvalues using geometry"); BEGIN_PGML -If [`\mathbf{v_1}`] and [`\mathbf{v_2}`] are eigenvectors for [`T`], find their corresponding eigenvalues. If not, enter [|DNE|]. [@ AnswerFormatHelp("numbers") @]* +If [`\mathbf{v_1}`] and [`\mathbf{v_2}`] are eigenvectors for [`T`], find their corresponding eigenvalues. If not, enter [|DNE|]. [@ helpLink("numbers") @]* + [`T(\mathbf{v_1}) = `] [____]{"$k1"} [`\mathbf{v_1}`] + [`T(\mathbf{v_2}) = `] [____]{"$k2"} [`\mathbf{v_2}`] diff --git a/OpenProblemLibrary/Hope/Multi2/07-04-Variation-of-parameters/Variation-of-parameters-02b.pg b/OpenProblemLibrary/Hope/Multi2/07-04-Variation-of-parameters/Variation-of-parameters-02b.pg index 749d107802..a9a78ab5a9 100644 --- a/OpenProblemLibrary/Hope/Multi2/07-04-Variation-of-parameters/Variation-of-parameters-02b.pg +++ b/OpenProblemLibrary/Hope/Multi2/07-04-Variation-of-parameters/Variation-of-parameters-02b.pg @@ -22,12 +22,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", "unionLists.pl", "PGcourse.pl" @@ -79,16 +79,16 @@ $diffeq. \{ BeginList('OL',type=>'a') \} $ITEMSEP -$ITEM Find the most general solution to the -associated homogeneous differential equation. -Use \( c_1 \) and \( c_2 \) in your answer to denote +$ITEM Find the most general solution to the +associated homogeneous differential equation. +Use \( c_1 \) and \( c_2 \) in your answer to denote arbitrary constants, and enter them as ${BTT}c1${ETT} and ${BTT}c2${ETT}. $BR $BR \( y_h = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; @@ -97,15 +97,15 @@ Context()->normalStrings; ###################### # Answer evaluation -ANS( $yhomogeneous->cmp( +ANS( $yhomogeneous->cmp( checker => sub { my ( $correct, $stu, $answerHash ) = @_; ################################ # Check for arbitrary constants and variables # - Value->Error("Is your answer the most general solution?") - if ( + Value->Error("Is your answer the most general solution?") + if ( $stu->{variables}{'x'} != 1 || $stu->{variables}{'c1'} != 1 || $stu->{variables}{'c2'} != 1 @@ -118,18 +118,18 @@ ANS( $yhomogeneous->cmp( my $a11 = $stu->eval('c1'=>1,'c2'=>0,x=>$x); my $a12 = $stu->eval('c1'=>0,'c2'=>1,x=>$x); - + my $a21 = $stu->D('x')->eval('c1'=>1,'c2'=>0,x=>$x); my $a22 = $stu->D('x')->eval('c1'=>0,'c2'=>1,x=>$x); - Value->Error("Your functions are not linearly independent or your answer is not complete") + Value->Error("Your functions are not linearly independent or your answer is not complete") if ($a11 * $a22 == $a21 * $a12); ######################################################## # Check that the student answer is a solution to the DE # my $stu2 = $stu->D('x','x'); - return $stu2 == -1 * $kk * $stu; + return $stu2 == -1 * $kk * $stu; })); @@ -159,18 +159,18 @@ Context()->texStrings; BEGIN_TEXT $ITEMSEP -$ITEM Find a particular solution to the +$ITEM Find a particular solution to the nonhomogeneous differential equation \( $diffeq \). $BR $BR -\( y_p = \) +\( y_p = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; -ANS( $yparticular->cmp()->withPostFilter(AnswerHints( +ANS( $yparticular->cmp()->withPostFilter(AnswerHints( $yparticular_incorrect => ["Your answer is missing an absolute value",replaceMessage=>1], )) ); @@ -213,29 +213,29 @@ $ygeneral_incorrect_2 = Compute("c2 cos($k x) + c1 sin($k x) + 1/$k x sin($k x) BEGIN_TEXT $ITEMSEP -$ITEM Find the most general solution to the -original nonhomogeneous differential equation. -Use \( c_1 \) and \( c_2 \) in your answer to denote +$ITEM Find the most general solution to the +original nonhomogeneous differential equation. +Use \( c_1 \) and \( c_2 \) in your answer to denote arbitrary constants. $BR $BR \( y = \) \{ ans_box(2,60) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} \{ EndList('OL') \} END_TEXT -ANS($ygeneral->cmp( showDomainErrors => 1, +ANS($ygeneral->cmp( showDomainErrors => 1, checker => sub { my ( $correct, $stu, $ansHash ) = @_; ################################ # Check for arbitrary constants and variables # - Value->Error("Is your answer the most general solution?") - if ( + Value->Error("Is your answer the most general solution?") + if ( $stu->{variables}{'x'} != 1 || $stu->{variables}{'c1'} != 1 || $stu->{variables}{'c2'} != 1 @@ -248,11 +248,11 @@ ANS($ygeneral->cmp( showDomainErrors => 1, my $a11 = $stu->eval('c1'=>1,'c2'=>0,x=>$x); my $a12 = $stu->eval('c1'=>0,'c2'=>1,x=>$x); - + my $a21 = $stu->D('x')->eval('c1'=>1,'c2'=>0,x=>$x); my $a22 = $stu->D('x')->eval('c1'=>0,'c2'=>1,x=>$x); - Value->Error("Your functions are not linearly independent or your answer is not complete") + Value->Error("Your functions are not linearly independent or your answer is not complete") if ($a11 * $a22 == $a21 * $a12); ######################################################## diff --git a/OpenProblemLibrary/Hope/Multi2/07-04-Variation-of-parameters/Variation-of-parameters-02c.pg b/OpenProblemLibrary/Hope/Multi2/07-04-Variation-of-parameters/Variation-of-parameters-02c.pg index 5889c581eb..c2a8ffdf6a 100644 --- a/OpenProblemLibrary/Hope/Multi2/07-04-Variation-of-parameters/Variation-of-parameters-02c.pg +++ b/OpenProblemLibrary/Hope/Multi2/07-04-Variation-of-parameters/Variation-of-parameters-02c.pg @@ -21,12 +21,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", "unionLists.pl", "PGcourse.pl" @@ -77,16 +77,16 @@ $diffeq. \{ BeginList('OL',type=>'a') \} $ITEMSEP -$ITEM Find the most general solution to the -associated homogeneous differential equation. -Use \( c_1 \) and \( c_2 \) in your answer to denote +$ITEM Find the most general solution to the +associated homogeneous differential equation. +Use \( c_1 \) and \( c_2 \) in your answer to denote arbitrary constants, and enter them as ${BTT}c1${ETT} and ${BTT}c2${ETT}. $BR $BR \( y_h = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; @@ -95,15 +95,15 @@ Context()->normalStrings; ###################### # Answer evaluation -ANS( $yhomogeneous->cmp( +ANS( $yhomogeneous->cmp( checker => sub { my ( $correct, $stu, $answerHash ) = @_; ################################ # Check for arbitrary constants # - Value->Error("Is your answer the most general solution?") - if ( + Value->Error("Is your answer the most general solution?") + if ( $stu->{variables}{'x'} != 1 || $stu->{variables}{'c1'} != 1 || $stu->{variables}{'c2'} != 1 @@ -116,11 +116,11 @@ ANS( $yhomogeneous->cmp( my $a11 = $stu->eval('c1'=>1,'c2'=>0,x=>$x); my $a12 = $stu->eval('c1'=>0,'c2'=>1,x=>$x); - + my $a21 = $stu->D('x')->eval('c1'=>1,'c2'=>0,x=>$x); my $a22 = $stu->D('x')->eval('c1'=>0,'c2'=>1,x=>$x); - Value->Error("Your functions are not linearly independent or your answer is not complete") + Value->Error("Your functions are not linearly independent or your answer is not complete") if ($a11 * $a22 == $a21 * $a12); ######################################################## @@ -128,7 +128,7 @@ ANS( $yhomogeneous->cmp( # my $stu1 = Formula($stu->D('x')); my $stu2 = Formula($stu->D('x','x')); - return ($stu2 + $kk * $stu) == (-1 * $k2 * $stu1); + return ($stu2 + $kk * $stu) == (-1 * $k2 * $stu1); })); @@ -158,13 +158,13 @@ Context()->texStrings; BEGIN_TEXT $ITEMSEP -$ITEM Find a particular solution to the +$ITEM Find a particular solution to the nonhomogeneous differential equation \( $diffeq \). $BR $BR -\( y_p = \) +\( y_p = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; @@ -200,29 +200,29 @@ $ygeneral = Compute("c1 e^(-$k x) + c2 x e^(-$k x) + x/$k - 2/$kk"); BEGIN_TEXT $ITEMSEP -$ITEM Find the most general solution to the -original nonhomogeneous differential equation. -Use \( c_1 \) and \( c_2 \) in your answer to denote +$ITEM Find the most general solution to the +original nonhomogeneous differential equation. +Use \( c_1 \) and \( c_2 \) in your answer to denote arbitrary constants. $BR $BR \( y = \) \{ ans_box(2,60) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} \{ EndList('OL') \} END_TEXT -ANS($ygeneral->cmp( +ANS($ygeneral->cmp( checker => sub { my ( $correct, $stu, $answerHash ) = @_; ################################ # Check for arbitrary constants # - Value->Error("Is your answer the most general solution?") - if ( + Value->Error("Is your answer the most general solution?") + if ( $stu->{variables}{'x'} != 1 || $stu->{variables}{'c1'} != 1 || $stu->{variables}{'c2'} != 1 @@ -235,11 +235,11 @@ ANS($ygeneral->cmp( my $a11 = $stu->eval('c1'=>1,'c2'=>0,x=>$x); my $a12 = $stu->eval('c1'=>0,'c2'=>1,x=>$x); - + my $a21 = $stu->D('x')->eval('c1'=>1,'c2'=>0,x=>$x); my $a22 = $stu->D('x')->eval('c1'=>0,'c2'=>1,x=>$x); - Value->Error("Your functions are not linearly independent or your answer is not complete") + Value->Error("Your functions are not linearly independent or your answer is not complete") if ($a11 * $a22 == $a21 * $a12); ######################################################## @@ -249,7 +249,7 @@ ANS($ygeneral->cmp( my $stu2 = Formula($stu->D('x','x')); my $g = Formula("$k x"); - return $g == ($stu2 + $k2 * $stu1 + $kk * $stu); + return $g == ($stu2 + $k2 * $stu1 + $kk * $stu); })); diff --git a/OpenProblemLibrary/Hope/Multi2/09-01-Graphs-images-level-sets/Level-sets-02.pg b/OpenProblemLibrary/Hope/Multi2/09-01-Graphs-images-level-sets/Level-sets-02.pg index a80bb2eda9..43b7904d79 100644 --- a/OpenProblemLibrary/Hope/Multi2/09-01-Graphs-images-level-sets/Level-sets-02.pg +++ b/OpenProblemLibrary/Hope/Multi2/09-01-Graphs-images-level-sets/Level-sets-02.pg @@ -22,12 +22,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserImplicitEquation.pl", "PGcourse.pl" ); @@ -66,21 +66,21 @@ $k = Compute("2"); Context()->texStrings; BEGIN_TEXT Let \( f : \mathbb{R}^2 \to \mathbb{R} \) be defined by -\( f(x,y) = $f \) and set \( z = f(x,y) \). +\( f(x,y) = $f \) and set \( z = f(x,y) \). $BR $BR (a) The level sets of \( f \) are subsets of \( \mathbb{R}^k \) for \( k = \) \{ ans_rule(5) \}. $BR $BR -(b) Find an equation for the level set of \( f \) -at level \( z = $z \). This level set is the set of +(b) Find an equation for the level set of \( f \) +at level \( z = $z \). This level set is the set of all points \( (x,y) \) in \( \mathbb{R}^2 \) that satisfy the equation $BR $BR \{ ans_rule(30) \}. -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/Indiana/Indiana_setLimitsRates6Rates/s1_6_2.pg b/OpenProblemLibrary/Indiana/Indiana_setLimitsRates6Rates/s1_6_2.pg index c4bed8bbce..7fba1f98d1 100644 --- a/OpenProblemLibrary/Indiana/Indiana_setLimitsRates6Rates/s1_6_2.pg +++ b/OpenProblemLibrary/Indiana/Indiana_setLimitsRates6Rates/s1_6_2.pg @@ -34,7 +34,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -73,7 +73,7 @@ $BR$BR $BR$BR -and where +and where $BR$BR @@ -88,14 +88,14 @@ ANS($b->cmp); &SOLUTION(EV3(<<'EOT')); $SOL $BR The slope of the tangent line to a function \( f(x) \) at a point \( (x,y) \) -is given by the derivative of \( f \) at \( x \). Thus, the first step is to -find the derivative of \( f(x) = $f \). Using the rules +is given by the derivative of \( f \) at \( x \). Thus, the first step is to +find the derivative of \( f(x) = $f \). Using the rules for finding the derivatives of polynomials, we get \( f'(x) = 3($a1 x^2) \). Therefore, \( f'($x1) = $m \). $PAR -Now, to find the equation of the tangent line, note that being tangent to -\( f(x) \) at the point \( ($x1, $y1) \) means that the line goes through +Now, to find the equation of the tangent line, note that being tangent to +\( f(x) \) at the point \( ($x1, $y1) \) means that the line goes through this point. We already know that the slope of the line is \( $m \). So using the point-slope form of a line yields \( y-$y1 = $m(x-$x1) \) or \( y = $m x + $b \). diff --git a/OpenProblemLibrary/Indiana/Indiana_setLimitsRates6Rates/s1_6_8.pg b/OpenProblemLibrary/Indiana/Indiana_setLimitsRates6Rates/s1_6_8.pg index b7f4513493..aec9db377b 100644 --- a/OpenProblemLibrary/Indiana/Indiana_setLimitsRates6Rates/s1_6_8.pg +++ b/OpenProblemLibrary/Indiana/Indiana_setLimitsRates6Rates/s1_6_8.pg @@ -19,7 +19,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -77,16 +77,16 @@ ANS($b->cmp); SOLUTION(EV3(<<'EOF')); $SOL $BR The slope of the tangent line to a function \( f(x) \) at a point \( (x,y) \) -is given by the derivative of \( f \) at \( x \). Thus, the first step is to -find the derivative of \( f(x) = $a1 x^2 - $b1 x + $c1 \). Using the rules +is given by the derivative of \( f \) at \( x \). Thus, the first step is to +find the derivative of \( f(x) = $a1 x^2 - $b1 x + $c1 \). Using the rules for finding the derivatives of polynomials, we get \( f'(x) = 2($a1 x) - $b1 \). Therefore, \( f'($x1) = $m1 \). $PAR -Now, to find the equation of the tangent line, note that being tangent to -\( f(x) \) at the point \( ($x1, f($x1)) = ($x1, $y1) \) means that the -line goes through this point. We already know that the slope of the -line is \( $m1 \). So using the point-slope form of a line yields +Now, to find the equation of the tangent line, note that being tangent to +\( f(x) \) at the point \( ($x1, f($x1)) = ($x1, $y1) \) means that the +line goes through this point. We already know that the slope of the +line is \( $m1 \). So using the point-slope form of a line yields \( (y-$y1) = $m1(x-$x1) \) or \( y = $m1 x + $ans \). $PAR diff --git a/OpenProblemLibrary/JFreeman/Vectors/Cross_Product2.pg b/OpenProblemLibrary/JFreeman/Vectors/Cross_Product2.pg index a95d525150..3f1965045d 100644 --- a/OpenProblemLibrary/JFreeman/Vectors/Cross_Product2.pg +++ b/OpenProblemLibrary/JFreeman/Vectors/Cross_Product2.pg @@ -12,7 +12,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGcourse.pl" ); @@ -57,10 +57,10 @@ Context()->texStrings; BEGIN_TEXT Parallelogram \(ABCD\) has vertices \(A($a1,$a2,$a3)\), \(B($b1,$b2,$b3)\), and \(C($c1,$c2,$c3)\). $BR $BR Determine the coordinates of point \(D\): \{ ans_rule(20) \} -\{ AnswerFormatHelp("points") \} $BR $BR +\{ helpLink("points") \} $BR $BR Determine the area of parallelogram \(ABCD\) $BR Area = \{ ans_rule(20)\} -\{ AnswerFormatHelp("points") \} +\{ helpLink("points") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/JFreeman/Vectors/Cross_Product3.pg b/OpenProblemLibrary/JFreeman/Vectors/Cross_Product3.pg index a4ef7dc39e..e84751a066 100644 --- a/OpenProblemLibrary/JFreeman/Vectors/Cross_Product3.pg +++ b/OpenProblemLibrary/JFreeman/Vectors/Cross_Product3.pg @@ -11,7 +11,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "unorderedAnswer.pl", "PGcourse.pl" @@ -69,9 +69,9 @@ $showPartialCorrectAnswers = 1; -UNORDERED_ANS( -num_cmp($c2a), -num_cmp($c2b), +UNORDERED_ANS( +num_cmp($c2a), +num_cmp($c2b), ); diff --git a/OpenProblemLibrary/JFreeman/Vectors/Lines1.pg b/OpenProblemLibrary/JFreeman/Vectors/Lines1.pg index e3d51e9623..27039d6b36 100644 --- a/OpenProblemLibrary/JFreeman/Vectors/Lines1.pg +++ b/OpenProblemLibrary/JFreeman/Vectors/Lines1.pg @@ -6,13 +6,13 @@ ## Level(3) ## MO(1) -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -59,22 +59,22 @@ $multians = MultiAnswer($x, $y, $z)->with( ########################## -# Main Text +# Main Text Context()->texStrings; BEGIN_TEXT -Give a parametric equation of the line which passes through \(A($a1,$a2,$a3)\) and \(B($b1,$b2,$b3)\). Use \( t \) as the +Give a parametric equation of the line which passes through \(A($a1,$a2,$a3)\) and \(B($b1,$b2,$b3)\). Use \( t \) as the parameter for all of your answers. $BR $BR \( x(t) = \) \{$multians->ans_rule(20)\} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR \( y(t) = \) \{$multians->ans_rule(20)\} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR \( z(t) = \) \{$multians->ans_rule(20)\} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap1Sec5/Q22.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap1Sec5/Q22.pg index fe59634a1b..7de005fada 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap1Sec5/Q22.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap1Sec5/Q22.pg @@ -33,7 +33,7 @@ loadMacros( "PGchoicemacros.pl", "PGgraphmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -75,7 +75,7 @@ $BR ${BITALIC}(click on the graph to get a larger version)$EITALIC $ECENTER $PAR -\(P = \) \{ ans_rule(25) \} (\{AnswerFormatHelp('points')\} +\(P = \) \{ ans_rule(25) \} (\{helpLink('points')\} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap1Sec5/Q24.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap1Sec5/Q24.pg index fe9606be66..92346b9f68 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap1Sec5/Q24.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap1Sec5/Q24.pg @@ -33,7 +33,7 @@ loadMacros( "PGchoicemacros.pl", "PGgraphmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -77,7 +77,7 @@ $BR (click on the graph to get a larger version) $ECENTER $BR -\(P = \) \{ ans_rule(25) \} \{AnswerFormatHelp('points')\} +\(P = \) \{ ans_rule(25) \} \{helpLink('points')\} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Review/Q34.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Review/Q34.pg index 08850919a9..2185524ebb 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Review/Q34.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Review/Q34.pg @@ -37,7 +37,7 @@ loadMacros( "parserFunction.pl", "parserMultiAnswer.pl", "parserNumberWithUnits.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -108,7 +108,7 @@ $PAR $PAR (e) Evaluate, including units in your answer: -\( f^{-1}($A) = \) \{ ans_rule(30) \} \{ AnswerFormatHelp("units") \} +\( f^{-1}($A) = \) \{ ans_rule(30) \} \{ helpLink("units") \} $PAR (f) For each of the mathematical expressions below, match one of the diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Review/Q36.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Review/Q36.pg index 13dbafe84b..bd9c734e9c 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Review/Q36.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Review/Q36.pg @@ -36,7 +36,7 @@ loadMacros( "extraAnswerEvaluators.pl", "MathObjects.pl", "contextInequalities.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -121,7 +121,7 @@ the range of \( r(t) \)? $BR range = \{ ans_rule(30) \} (enter your answer in interval notation, or an inequality in \(r\): -\{ AnswerFormatHelp("inequalities") \}) +\{ helpLink("inequalities") \}) END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec1/Connally3-2-1-01-Input-and-output.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec1/Connally3-2-1-01-Input-and-output.pg index 130b89d501..c1c076cbce 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec1/Connally3-2-1-01-Input-and-output.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec1/Connally3-2-1-01-Input-and-output.pg @@ -38,7 +38,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -76,7 +76,7 @@ Without using a calculator, simplify your answer as much as possible. Enter a fraction, not a decimal. $PAR \{ans_rule(20)\} -\{ AnswerFormatHelp("fractions") \} +\{ helpLink("fractions") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec1/Connally3-2-1-03-Input-and-output.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec1/Connally3-2-1-03-Input-and-output.pg index eeb3a76173..a88d497d38 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec1/Connally3-2-1-03-Input-and-output.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec1/Connally3-2-1-03-Input-and-output.pg @@ -37,7 +37,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -70,7 +70,7 @@ $PAR Enter a fraction instead of a decimal. $BR \( y = \) \{ans_rule(20)\} -\{ AnswerFormatHelp("fraction") \} +\{ helpLink("fraction") \} END_TEXT @@ -99,7 +99,7 @@ $PAR $BR \(x = \) \{ans_rule(20)\} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec1/Connally3-2-1-07-Input-and-output.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec1/Connally3-2-1-07-Input-and-output.pg index 1139734f3e..1f71f32470 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec1/Connally3-2-1-07-Input-and-output.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec1/Connally3-2-1-07-Input-and-output.pg @@ -37,7 +37,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -72,12 +72,12 @@ Suppose \( f(x) = $f \). $PAR (a) Find, simplifying your answer as possible: \( f(0) = \) \{ans_rule(20)\} -\{ AnswerFormatHelp("Number") \} +\{ helpLink("Number") \} $PAR (b) Solve \( f(x) = 0 \), simplifying your answer as possible: $BR \( x = \) \{ans_rule(20)\} -\{ AnswerFormatHelp("Number") \} +\{ helpLink("Number") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec1/Connally3-2-1-08-Input-and-output.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec1/Connally3-2-1-08-Input-and-output.pg index ad51a11837..21c7682e86 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec1/Connally3-2-1-08-Input-and-output.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec1/Connally3-2-1-08-Input-and-output.pg @@ -37,7 +37,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -72,12 +72,12 @@ Suppose \( f(t) = $f \). $PAR (a) Find, simplifying your answer as possible: \( f(0) = \) \{ans_rule(20)\} -\{ AnswerFormatHelp("Number") \} +\{ helpLink("Number") \} $PAR (b) Solve \( f(t) = 0 \), simplifying your answer as possible: $BR \( t = \) \{ans_rule(20)\} -\{ AnswerFormatHelp("Number") \} +\{ helpLink("Number") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec1/Connally3-2-1-09-Input-and-output.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec1/Connally3-2-1-09-Input-and-output.pg index d97d2c1471..e5f90a0125 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec1/Connally3-2-1-09-Input-and-output.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec1/Connally3-2-1-09-Input-and-output.pg @@ -37,7 +37,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -75,12 +75,12 @@ $PAR (a) Find, simplifying your answer as possible: \( g(0) = \) \{ans_rule(20)\} -\{ AnswerFormatHelp("Number") \} +\{ helpLink("Number") \} $PAR (b) Solve \( g(t) = 0 \), simplifying your answer as possible: $BR \( t = \) \{ans_rule(20)\} -\{ AnswerFormatHelp("Number") \} +\{ helpLink("Number") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec1/Connally3-2-1-11-Input-and-output.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec1/Connally3-2-1-11-Input-and-output.pg index e198155838..d8accb6bf2 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec1/Connally3-2-1-11-Input-and-output.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec1/Connally3-2-1-11-Input-and-output.pg @@ -37,7 +37,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -67,7 +67,7 @@ Suppose \( \displaystyle f(x) = \frac{$b x}{1 - x^2} \). Find \( f($a) \). Simplify your answer as much as possible. $PAR \{ans_rule(20)\} -\{ AnswerFormatHelp('Reduced-Fraction') \} +\{ helpLink('Reduced-Fraction') \} END_TEXT diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec1/Connally3-2-1-12-Input-and-output.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec1/Connally3-2-1-12-Input-and-output.pg index ee91ce211d..547aa5f733 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec1/Connally3-2-1-12-Input-and-output.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec1/Connally3-2-1-12-Input-and-output.pg @@ -37,7 +37,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -70,7 +70,7 @@ BEGIN_TEXT If \( h(x) = $h \), then \( h(0) = \) \{ans_rule(20)\} -\{ AnswerFormatHelp("Formula") \} +\{ helpLink("Formula") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec1/Connally3-2-1-18-Input-and-output.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec1/Connally3-2-1-18-Input-and-output.pg index 1a4a7786fb..bfb0540565 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec1/Connally3-2-1-18-Input-and-output.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec1/Connally3-2-1-18-Input-and-output.pg @@ -34,7 +34,7 @@ loadMacros( "PGstandard.pl", "PGgraphmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextInequalities.pl", "unionTables.pl", "PGcourse.pl" @@ -87,15 +87,15 @@ ColumnTable( $BR. $BR. "(a) \( f(0) \) = ". -ans_rule(20).$SPACE.AnswerFormatHelp("number"). +ans_rule(20).$SPACE.helpLink("number"). $BR. $BR. "(b) For what x-value(s) is \( f(x) = 0 \)? ". -ans_rule(20).$SPACE.AnswerFormatHelp("number"). +ans_rule(20).$SPACE.helpLink("number"). $BR. $BR. "(c) For what x-value(s) is \( f(x) > 0 \)? ". -ans_rule(20).$SPACE.AnswerFormatHelp("inequalities") +ans_rule(20).$SPACE.helpLink("inequalities") , $BCENTER. image(insertGraph($gr), width=>400, height=>400, tex_size=>600). diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec1/Connally3-2-1-23-Input-and-output.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec1/Connally3-2-1-23-Input-and-output.pg index 94d4a8f5f5..dca775fbd6 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec1/Connally3-2-1-23-Input-and-output.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec1/Connally3-2-1-23-Input-and-output.pg @@ -37,7 +37,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -70,11 +70,11 @@ Suppose \( p(x) = $f \). $PAR (a) Simplify as much as possible: \( p(-1) = \) \{ans_rule(20)\} -\{ AnswerFormatHelp("Number") \} +\{ helpLink("Number") \} $PAR (b) Simplify as much as possible: \( -p(1) = \) \{ans_rule(20)\} -\{ AnswerFormatHelp("Number") \} +\{ helpLink("Number") \} $PAR (c) Are \( p(-1) \) and \( p(1) \) equal? \{ pop_up_list(['?',"Yes","No"]) \} diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec1/Connally3-2-1-24-Input-and-output.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec1/Connally3-2-1-24-Input-and-output.pg index 6c6002ec34..ab6a3e6291 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec1/Connally3-2-1-24-Input-and-output.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec1/Connally3-2-1-24-Input-and-output.pg @@ -37,7 +37,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -80,12 +80,12 @@ $PAR (a) Simplify as much as possible: \( \displaystyle f\left( \frac{1}{$a} \right) = \) \{ans_rule(20)\} -\{ AnswerFormatHelp("fraction") \} +\{ helpLink("fraction") \} $PAR (b) Simplify as much as possible: \( \displaystyle \frac{f(1)}{f($a)} = \) \{ans_rule(20)\} -\{ AnswerFormatHelp("fraction") \} +\{ helpLink("fraction") \} $PAR (c) Are \( \displaystyle f\left( \frac{1}{$a} \right) \) and \( \displaystyle \frac{f(1)}{f($a)} \) equal? diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec1/Connally3-2-1-25-Input-and-output.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec1/Connally3-2-1-25-Input-and-output.pg index 4fa89bea37..40e6dfa961 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec1/Connally3-2-1-25-Input-and-output.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec1/Connally3-2-1-25-Input-and-output.pg @@ -34,7 +34,7 @@ loadMacros( "PGstandard.pl", "PGchoicemacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -139,7 +139,7 @@ $BR (a) Solve \( f(t) = $raina \). $BR \( t = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} $PAR \{ $mca->print_q() \} \{ $mca->print_a() \} @@ -147,7 +147,7 @@ $BR (b) Solve \( f(t) = f($inputb1) \). $BR \( t = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} $PAR \{ $mcb->print_q() \} \{ $mcb->print_a() \} diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec1/Connally3-2-1-27-Input-and-output.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec1/Connally3-2-1-27-Input-and-output.pg index 3af618dc35..31c865f40c 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec1/Connally3-2-1-27-Input-and-output.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec1/Connally3-2-1-27-Input-and-output.pg @@ -37,7 +37,7 @@ loadMacros( "PGstandard.pl", "PGchoicemacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "compoundProblem.pl", "PGcourse.pl" ); @@ -123,16 +123,16 @@ Suppose \( \displaystyle f(x) = $f \). $PAR (a) \( \displaystyle f\left( \frac{$a}{t} \right) = \) \{ans_rule(30)\} -\{ AnswerFormatHelp("Formula") \} +\{ helpLink("Formula") \} $PAR (b) \( \displaystyle f\left( \frac{$a}{t+$a} \right) = \) \{ans_rule(30)\} -\{ AnswerFormatHelp("Formula") \} +\{ helpLink("Formula") \} $PAR (c) Solve \( f(x) = $b \). $BR \( x = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec1/Connally3-2-1-29-Input-and-output.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec1/Connally3-2-1-29-Input-and-output.pg index f7cb891581..3a248e9bc3 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec1/Connally3-2-1-29-Input-and-output.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec1/Connally3-2-1-29-Input-and-output.pg @@ -33,7 +33,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGgraphmacros.pl", "unionTables.pl", "PGcourse.pl" @@ -112,19 +112,19 @@ ColumnTable( $BR. $BR. "\( f(0) \approx \) ". -ans_rule(10).$SPACE.AnswerFormatHelp("number"). +ans_rule(10).$SPACE.helpLink("number"). $BR. "\( f(1) \approx \) ". -ans_rule(10).$SPACE.AnswerFormatHelp("number"). +ans_rule(10).$SPACE.helpLink("number"). $BR. "\( f(b) \approx \) ". -ans_rule(10).$SPACE.AnswerFormatHelp("number"). +ans_rule(10).$SPACE.helpLink("number"). $BR. "\( f(c) \approx \) ". -ans_rule(10).$SPACE.AnswerFormatHelp("number"). +ans_rule(10).$SPACE.helpLink("number"). $BR. "\( f(d) \approx \) ". -ans_rule(10).$SPACE.AnswerFormatHelp("number") +ans_rule(10).$SPACE.helpLink("number") , $BCENTER. image(insertGraph($graph), width=>400, height=>400, tex_size=>700). diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec1/Q04.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec1/Q04.pg index 8112aab908..c8f056521a 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec1/Q04.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec1/Q04.pg @@ -35,7 +35,7 @@ loadMacros( "PGgraphmacros.pl", "extraAnswerEvaluators.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -67,13 +67,13 @@ $PAR Simplify your answer as much as possible. $BR \( y = \) \{ans_rule(20)\} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $PAR (b) Calculate the exact value(s) of \( x \) when \( f(x) = $y1 \). Simplify your answer as much as possible. $BR \(x = \) \{ans_rule(20)\} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec1/Q05.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec1/Q05.pg index 52c053c1be..7c489afd30 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec1/Q05.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec1/Q05.pg @@ -35,7 +35,7 @@ loadMacros( "PGgraphmacros.pl", "extraAnswerEvaluators.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -79,14 +79,14 @@ $PAR Simplify your answer as much as possible. $BR \( y = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp( "numbers" ) \} +\{ helpLink( "numbers" ) \} $PAR (b) Calculate exactly the value(s) of \( x \) when \( f(x) = $y1 \). If there is more than one such value, enter all possible values as a comma separated list of (exact) values. $BR \( x = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp( "numbers" ) \} +\{ helpLink( "numbers" ) \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec1/Q10.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec1/Q10.pg index d95ee40fa9..3f08dd913e 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec1/Q10.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec1/Q10.pg @@ -34,7 +34,7 @@ loadMacros( "PGgraphmacros.pl", "extraAnswerEvaluators.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -58,13 +58,13 @@ $PAR (a) Find \( g(0) \). $BR \( g(0) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers"); \} +\{ helpLink("numbers"); \} $PAR (b) Exactly solve \( g(t) = 0 \). If there is more than one solution, enter all solutions as a comma separated list of (exact) values. $BR \( t = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("numbers"); \} +\{ helpLink("numbers"); \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec1/Q22.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec1/Q22.pg index a2a573b641..88964634fe 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec1/Q22.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec1/Q22.pg @@ -37,7 +37,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -77,23 +77,23 @@ Let \( q(x) = $j - x^2 \). Evaluate and simplify the following: $PAR (a) \( q( $k ) = \) \{ ans_rule(10) \} -\{ #AnswerFormatHelp("number") \} +\{ #helpLink("number") \} $PAR (b) \( q(r) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $PAR (c) \( q( r - $k ) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $PAR (d) \( q(r) - $k = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $PAR (e) \( q(r) - q( $k ) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec1/Q30.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec1/Q30.pg index 889066fd86..c4b8a7bf23 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec1/Q30.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec1/Q30.pg @@ -35,7 +35,7 @@ loadMacros( "PGgraphmacros.pl", "MathObjects.pl", "unionTables.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -90,7 +90,7 @@ BEGIN_TEXT \{ ColumnTable( "Using the graph in the figure for the function \( y = h(x) \), fill in the missing values in the table below. ". -AnswerFormatHelp("numbers"). +helpLink("numbers"). $PAR. $BCENTER. begintable(7). @@ -100,19 +100,19 @@ endtable(). $ECENTER. $BR. "(a) Evaluate \( h( $x_mix[$pick[0]] ) - h( $x_match[$pick[0]] ) = \) ". -ans_rule(10).$SPACE.AnswerFormatHelp("numbers"). +ans_rule(10).$SPACE.helpLink("numbers"). $BR. $BR. "(b) Evaluate \( h( $x_mix[$pick[1]] ) - h( $x_match[$pick[1]] ) = \) ". -ans_rule(10).$SPACE.AnswerFormatHelp("numbers"). +ans_rule(10).$SPACE.helpLink("numbers"). $BR. $BR. "(c) Evaluate \( $m \cdot h( $x[$grab[0]] ) = \) ". -ans_rule(10).$SPACE.AnswerFormatHelp("numbers"). +ans_rule(10).$SPACE.helpLink("numbers"). $BR. $BR. "(d) Evaluate \( h( $x[$grab[1]] ) + $k = \) ". -ans_rule(10).$SPACE.AnswerFormatHelp("numbers") +ans_rule(10).$SPACE.helpLink("numbers") , $BCENTER. image(insertGraph($graph), width => 250, height => 250, tex_size => 700). diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec1/Q32.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec1/Q32.pg index 97b89cde0f..110cb02c69 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec1/Q32.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec1/Q32.pg @@ -35,7 +35,7 @@ loadMacros( "PGgraphmacros.pl", "extraAnswerEvaluators.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -99,12 +99,12 @@ $PAR (a) What are the coordinates of the point \(P\)? $BR \( P = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp('points'); \} +\{ helpLink('points'); \} $PAR (b) What are the coordinates of the point \(Q\)? $BR \( Q = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp('points'); \} +\{ helpLink('points'); \} $PAR (c) Evaluate: $BR diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec1/Q34.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec1/Q34.pg index 4daddada5b..5c5df4d0f7 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec1/Q34.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec1/Q34.pg @@ -34,7 +34,7 @@ loadMacros( "PGgraphmacros.pl", "extraAnswerEvaluators.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserNumberWithUnits.pl", "PGcourse.pl" ); @@ -70,7 +70,7 @@ $PAR (a) What is the initial velocity? $BR initial velocity = \{ ans_rule(10) \} -(include units: \{AnswerFormatHelp("units")\}) +(include units: \{helpLink("units")\}) $PAR (b) When does the object have a velocity of zero? If there is diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec2/Connally3-2-2-03-Domain-range.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec2/Connally3-2-2-03-Domain-range.pg index a3ae0cf03c..da378720a4 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec2/Connally3-2-2-03-Domain-range.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec2/Connally3-2-2-03-Domain-range.pg @@ -32,7 +32,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextInequalities.pl", "PGgraphmacros.pl", "PGcourse.pl" @@ -68,7 +68,7 @@ Use a graph to find the range of the function \( y = f(x) = $f \) on the domain \( -$a \leq x \leq $b \). $PAR Range: \{ ans_rule(20) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec2/Connally3-2-2-09-Domain-range-ineq.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec2/Connally3-2-2-09-Domain-range-ineq.pg index 4924fe354b..351e00dac8 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec2/Connally3-2-2-09-Domain-range-ineq.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec2/Connally3-2-2-09-Domain-range-ineq.pg @@ -23,12 +23,12 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextInequalities.pl", "PGcourse.pl" ); -TEXT(beginproblem()); +TEXT(beginproblem()); $showPartialCorrectAnswers = 1; @@ -49,13 +49,13 @@ $domain = Compute("x > $aa"); Context()->texStrings; BEGIN_TEXT -Find the domain and range of the function +Find the domain and range of the function \( \displaystyle y = f(x) = $f \). Your answers must be inequalities (not intervals). $BR $BR Domain: \{ ans_rule(20) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} $BR END_TEXT @@ -69,7 +69,7 @@ $range = Compute("y > 0"); BEGIN_TEXT Range: $SPACE \{ ans_rule(20) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec2/Connally3-2-2-09-Domain-range.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec2/Connally3-2-2-09-Domain-range.pg index a1251e438e..a6a5a3f2fc 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec2/Connally3-2-2-09-Domain-range.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec2/Connally3-2-2-09-Domain-range.pg @@ -24,7 +24,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextInequalities.pl", "PGcourse.pl" ); @@ -51,15 +51,15 @@ $range = Compute("y >= 0"); Context()->texStrings; BEGIN_TEXT -Find the domain and range of the function +Find the domain and range of the function \( y = f(x) = $f \). $BR $BR Domain: \{ ans_rule(20) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} $BR Range: $SPACE \{ ans_rule(20) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec2/Connally3-2-2-10-Domain-range.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec2/Connally3-2-2-10-Domain-range.pg index 6225a265b8..f642158b63 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec2/Connally3-2-2-10-Domain-range.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec2/Connally3-2-2-10-Domain-range.pg @@ -28,12 +28,12 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextInequalities.pl", "PGcourse.pl" ); -TEXT(beginproblem()); +TEXT(beginproblem()); #################################### # Setup @@ -54,15 +54,15 @@ $range = Compute("y >= 0"); Context()->texStrings; BEGIN_TEXT -Find the domain and range of the function +Find the domain and range of the function \( y = f(x) = $f \). $BR $BR Domain: \{ ans_rule(20) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} $BR Range: $SPACE \{ ans_rule(20) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec2/Connally3-2-2-15-Domain-range.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec2/Connally3-2-2-15-Domain-range.pg index ace4365c16..6477d2ce47 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec2/Connally3-2-2-15-Domain-range.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec2/Connally3-2-2-15-Domain-range.pg @@ -33,7 +33,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextInequalities.pl", "PGcourse.pl" ); @@ -64,10 +64,10 @@ Find the domain and range of the function \( y = f(x) = $f \) algebraically. $PAR Domain: \{ ans_rule(20) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} $BR Range: $SPACE \{ ans_rule(20) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec2/Connally3-2-2-19-Domain-range.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec2/Connally3-2-2-19-Domain-range.pg index e2595e3efa..4e3d4d0a0f 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec2/Connally3-2-2-19-Domain-range.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec2/Connally3-2-2-19-Domain-range.pg @@ -24,12 +24,12 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextInequalities.pl", "PGcourse.pl" ); -TEXT(beginproblem()); +TEXT(beginproblem()); #################################### # Setup @@ -51,15 +51,15 @@ $range = Compute("y <= $a"); Context()->texStrings; BEGIN_TEXT -Find the domain and range of the function +Find the domain and range of the function \( y = f(x) = $f \). $BR $BR Domain: \{ ans_rule(20) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} $BR Range: $SPACE \{ ans_rule(20) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec2/Connally3-2-2-20-Domain-range.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec2/Connally3-2-2-20-Domain-range.pg index df94fd1f87..fbeb4cd12d 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec2/Connally3-2-2-20-Domain-range.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec2/Connally3-2-2-20-Domain-range.pg @@ -23,12 +23,12 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextInequalities.pl", "PGcourse.pl" ); -TEXT(beginproblem()); +TEXT(beginproblem()); #################################### # Setup @@ -50,15 +50,15 @@ $range = Compute("-infinity < y < infinity"); Context()->texStrings; BEGIN_TEXT -Find the domain and range of the function +Find the domain and range of the function \( y = f(x) = \sqrt[3]{x+$a} \). $BR $BR Domain: \{ ans_rule(20) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} $BR Range: $SPACE \{ ans_rule(20) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec2/Connally3-2-2-24-Domain-range-ineq.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec2/Connally3-2-2-24-Domain-range-ineq.pg index c33e8d5691..e4603b54eb 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec2/Connally3-2-2-24-Domain-range-ineq.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec2/Connally3-2-2-24-Domain-range-ineq.pg @@ -24,12 +24,12 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextInequalities.pl", "PGcourse.pl" ); -TEXT(beginproblem()); +TEXT(beginproblem()); $showPartialCorrectAnswers = 1; @@ -50,12 +50,12 @@ $domain = Compute("-infinity < x < infinity"); Context()->texStrings; BEGIN_TEXT -Find the domain and range of the function +Find the domain and range of the function \( y = f(x) = $f \). $BR $BR Domain: \{ ans_rule(20) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} $BR END_TEXT Context()->normalStrings; @@ -72,7 +72,7 @@ $range = Compute("y >= $b"); Context()->texStrings; BEGIN_TEXT Range: $SPACE \{ ans_rule(20) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec2/Connally3-2-2-27-Domain-range-ineq.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec2/Connally3-2-2-27-Domain-range-ineq.pg index 8c285d6d9d..18c7a78d4d 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec2/Connally3-2-2-27-Domain-range-ineq.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec2/Connally3-2-2-27-Domain-range-ineq.pg @@ -28,12 +28,12 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextInequalities.pl", "PGcourse.pl" ); -TEXT(beginproblem()); +TEXT(beginproblem()); $showPartialCorrectAnswers = 1; @@ -53,17 +53,17 @@ $domain = Compute("0 <= t <= 12"); Context()->texStrings; BEGIN_TEXT -A restaurant is open from $b am to $b pm on -Saturday and a maximum of $a people are allowed +A restaurant is open from $b am to $b pm on +Saturday and a maximum of $a people are allowed inside. If \( f(t) \) is the number of -people in the restaurant \( t \) hours +people in the restaurant \( t \) hours after $b am on Saturday, what is a reasonable domain and range for \( y = f(t) \)? Your answers must be inequalities (not intervals). $BR $BR Domain: \{ ans_rule(20) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} $BR END_TEXT Context()->normalStrings; @@ -80,7 +80,7 @@ $range = Compute("0 <= y <= $a"); Context()->texStrings; BEGIN_TEXT Range: $SPACE \{ ans_rule(20) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec2/Connally3-2-2-27-Domain-range.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec2/Connally3-2-2-27-Domain-range.pg index 19f44b6b0c..15800ab872 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec2/Connally3-2-2-27-Domain-range.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec2/Connally3-2-2-27-Domain-range.pg @@ -33,7 +33,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextInequalities.pl", "PGcourse.pl" ); @@ -69,10 +69,10 @@ after $b pm on Saturday, what is a reasonable domain and range for \( y = f(t) \)? $PAR Domain: \{ ans_rule(20) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} $BR Range: $SPACE \{ ans_rule(20) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} END_TEXT Context()->normalStrings; @@ -93,7 +93,7 @@ $PAR Since the restaurant opens at $b pm, \(t=0\), and closes at $b am, \(t=12\), a reasonable domain is \(0\le t\le 12\). $PAR -Since there cannot be fewer than 0 clients in the restaurant and +Since there cannot be fewer than 0 clients in the restaurant and $a can fit inside, the range is \(0\le f(t)\le $a\). END_SOLUTION diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec2/Connally3-2-2-31ab-Domain-range.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec2/Connally3-2-2-31ab-Domain-range.pg index 808fd8b523..40e560ae32 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec2/Connally3-2-2-31ab-Domain-range.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec2/Connally3-2-2-31ab-Domain-range.pg @@ -33,7 +33,7 @@ loadMacros( "PGstandard.pl", "PGchoicemacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -140,7 +140,7 @@ that a person weighing $weight[$wt] pounds uses in $timea[$t] of $activities[$a]. $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} $PAR (b) The table illustrates a relationship between the number of calories used per minute $activities[$a] and a diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec2/Connally3-2-2-31c-Domain-range.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec2/Connally3-2-2-31c-Domain-range.pg index 7d8d71277a..3f59e7b11d 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec2/Connally3-2-2-31c-Domain-range.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec2/Connally3-2-2-31c-Domain-range.pg @@ -35,7 +35,7 @@ loadMacros( "PGstandard.pl", "PGchoicemacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -113,7 +113,7 @@ Find an approximate formula for this equation. $BR \( C = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $PAR (b) \{ $mcb1->print_q() \} @@ -128,7 +128,7 @@ how many calories per minute a person who weighs $wt pounds uses per minute of walking. $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} END_TEXT Context()->normalStrings; @@ -139,7 +139,7 @@ Context()->normalStrings; $showPartialCorrectAnswers = 1; $f = Compute("-.017+.027*w"); # approximate formula obtained from linear regression -ANS($f->cmp(tolerance =>.2, tolType =>"absolute", limits=>[100,220])); +ANS($f->cmp(tolerance =>.2, tolType =>"absolute", limits=>[100,220])); ANS(checkbox_cmp($mcb1->correct_ans)); ANS(checkbox_cmp($mcb2->correct_ans)); @@ -156,20 +156,20 @@ $PAR (a) Since the function is approximately linear, its equation is \(c=b+mw\), where \(c\) is the number of calories and \(w\) is -weight. One can estimate the slope using any pair of values in the table; -because the function is approximately linear the estimates all turn out to be about the same. For example, using the first and last values in the table we obtain the -estimate +weight. One can estimate the slope using any pair of values in the table; +because the function is approximately linear the estimates all turn out to be about the same. For example, using the first and last values in the table we obtain the +estimate \[ m\approx \frac{5.9-2.7}{220-100}=\frac{3.2}{120}\approx 0.027\hbox{ cal/lb.}\] -Then plug in one of the points, say the middle one \((150,4)\), to estimate the C-intercept \(b\) +Then plug in one of the points, say the middle one \((150,4)\), to estimate the C-intercept \(b\) \[\begin{aligned} 4 &\approx b+ 0.027(150)\\ b &\approx -0.05. \end{aligned}\] -which is pretty close to 0. Plugging in the other points we find that all the estimates for \(b\) are approximately zero, so let's just say -\(b \approx 0\), so the equation +which is pretty close to 0. Plugging in the other points we find that all the estimates for \(b\) are approximately zero, so let's just say +\(b \approx 0\), so the equation \(c=0.027w\) is a pretty good approximation of the solution. -Using more advanced methods (linear regression) one can get a "better" estimate \(c \approx -0.017+0.027*w\) but the data aren't precise enough to justify such a +Using more advanced methods (linear regression) one can get a "better" estimate \(c \approx -0.017+0.027*w\) but the data aren't precise enough to justify such a a precise answer. $PAR diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec2/Connally3-2-Piecewise-function-ineq.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec2/Connally3-2-Piecewise-function-ineq.pg index 73c23baf4d..422026e2e6 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec2/Connally3-2-Piecewise-function-ineq.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec2/Connally3-2-Piecewise-function-ineq.pg @@ -19,7 +19,7 @@ ## Problem1('') ## KEYWORDS('functions','piecewise') -#Extra problem for 2.2 with evaluating and solving involving a piecewise #defined function. +#Extra problem for 2.2 with evaluating and solving involving a piecewise #defined function. DOCUMENT(); @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextInequalities.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -67,7 +67,7 @@ BEGIN_TEXT Let \(y = f(x) \) be the piecewise defined function given below. $BR \[ -f(x) = +f(x) = \left\lbrace \begin{array}{lcl} $f1, && \mbox{ if } x \leq -$a, \\ @@ -79,11 +79,11 @@ $f3, && \mbox{ if } x \geq $a. $PAR a. \( f($b) = \) \{ans_rule(10)\} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR $BR b. \( f($a) = \) \{ans_rule(10)\} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR $BR @@ -91,7 +91,7 @@ c. For what values of \(x\) is \(f(x) = $vshift\)? $BR $BR \{ans_rule(20)\} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} $BR $BR d. Find the domain and range of \(f\). $BITALIC (You may find it helpful to graph this function on your own paper to find the domain and range.) $EITALIC @@ -99,7 +99,7 @@ Your answers must be inequalities (not intervals). $BR $BR Domain: \{ans_rule(20)\} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} END_TEXT Context()->normalStrings; @@ -119,7 +119,7 @@ Context()->texStrings; BEGIN_TEXT $BR Range: $SPACE \{ans_rule(20)\} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec2/Q00.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec2/Q00.pg index 7306f6d1ef..5b8c060a5c 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec2/Q00.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec2/Q00.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## WeBWorK Demo +## WeBWorK Demo ## ENDDESCRIPTION ## KEYWORDS('demo') @@ -17,17 +17,17 @@ ## Section1('') ## Problem1('') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "PGchoicemacros.pl", "PGgraphmacros.pl", "extraAnswerEvaluators.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); - + TEXT(beginproblem()); # standard preamble to each problem. @@ -49,7 +49,7 @@ $showPartialCorrectAnswers = 0; # ####################################################################################### -# \{ htmlLink(qq!http://math.arizona.edu/~aspieg/teaching/interval.html!,"click here for help using interval notation") \} +# \{ htmlLink(qq!http://math.arizona.edu/~aspieg/teaching/interval.html!,"click here for help using interval notation") \} BEGIN_TEXT In order to help you enter your answers in interval notation throughout this assignment, note the following: @@ -92,16 +92,16 @@ $BR $BR $HR $BR -Here is an example to practice before moving on to the questions in this assignment. +Here is an example to practice before moving on to the questions in this assignment. $BR $SPACE $BR -Let $SPACE \( f(x) = \frac{1}{(x-2)^2} \) +Let $SPACE \( f(x) = \frac{1}{(x-2)^2} \) $BR $SPACE $BR a) State the domain of $BITALIC f(x) $EITALIC : \{ ans_rule(20) \} $BR -$SPACE $SPACE $SPACE \{ AnswerFormatHelp("intervals") \} +$SPACE $SPACE $SPACE \{ helpLink("intervals") \} $BR $SPACE $BR @@ -116,5 +116,5 @@ END_TEXT ANS(interval_cmp( "(-infinity, 2) U (2, infinity)") ); ANS(interval_cmp( "(0, infinity)" ) ); - + ENDDOCUMENT(); # This should be the last executable line in the problem. diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec2/Q02.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec2/Q02.pg index 7bf141b07a..4d7a0f0890 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec2/Q02.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec2/Q02.pg @@ -36,7 +36,7 @@ loadMacros( "extraAnswerEvaluators.pl", "MathObjects.pl", "contextInequalities.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -67,7 +67,7 @@ its domain and range. $PAR What is the range of \(f(x)\) on this interval? \{ ans_rule(25) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} END_TEXT diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec2/Q04.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec2/Q04.pg index 82e3297109..7c961da07d 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec2/Q04.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec2/Q04.pg @@ -34,7 +34,7 @@ loadMacros( "PGgraphmacros.pl", "extraAnswerEvaluators.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextInequalities.pl", "PGcourse.pl" ); @@ -65,7 +65,7 @@ On a separate piece of paper sketch a graph of \(f(x)\) and determine the domain $PAR What is the range of \(f(x)\) on this interval? \{ ans_rule(25) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} END_TEXT diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec2/Q13.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec2/Q13.pg index 8a17038bd0..076da329ad 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec2/Q13.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec2/Q13.pg @@ -35,7 +35,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextInequalities.pl", "PGgraphmacros.pl", "unionTables.pl", @@ -99,11 +99,11 @@ ColumnTable( $BR. $BR. "(a) What is the domain of \( f(x) \)? ". -ans_rule(25).$SPACE.AnswerFormatHelp("inequality"). +ans_rule(25).$SPACE.helpLink("inequality"). $BR. $BR. "(b) What is the range of \( f(x) \)? ". -ans_rule(25).AnswerFormatHelp("inequality") +ans_rule(25).helpLink("inequality") , $BCENTER. image(insertGraph($graph), width => 400, height => 400, tex_size => 700). diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec2/Q14.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec2/Q14.pg index ac573777a2..2144dbd781 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec2/Q14.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec2/Q14.pg @@ -36,7 +36,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextInequalities.pl", "PGgraphmacros.pl", "unionTables.pl", @@ -110,11 +110,11 @@ ColumnTable( $BR. $BR. "(a) What is the domain of \( f(x) \)? ". -ans_rule(25).$SPACE.AnswerFormatHelp("inequality"). +ans_rule(25).$SPACE.helpLink("inequality"). $BR. $BR. "(b) What is the range of \( f(x) \)? ". -ans_rule(25).$SPACE.AnswerFormatHelp("inequality") +ans_rule(25).$SPACE.helpLink("inequality") , $BCENTER. image(insertGraph($graph), width => 400, height => 400, tex_size => 700). diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec2/Q16.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec2/Q16.pg index f301954b31..cc109934f6 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec2/Q16.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec2/Q16.pg @@ -35,7 +35,7 @@ loadMacros( "PGgraphmacros.pl", "extraAnswerEvaluators.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -59,12 +59,12 @@ Find the domain and range algebraically: $PAR a) What is the domain of \(f(x)\)? \{ ans_rule(25) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} $PAR b) What is the range of \(f(x)\)? \{ ans_rule(25) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} END_TEXT diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec2/Q29.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec2/Q29.pg index 14fb8ecfe3..9c6a434110 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec2/Q29.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec2/Q29.pg @@ -36,7 +36,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextInequalities.pl", "PGchoicemacros.pl", "PGgraphmacros.pl", @@ -212,8 +212,8 @@ $ECENTER $PAR (b) What is the domain of this function? $SPACE \{ ans_rule(20) \} -\{ AnswerFormatHelp("inequality") \} +\{ helpLink("inequality") \} $PAR (c) What is the range of this function? $SPACE \{ ans_rule(20) \} -\{ AnswerFormatHelp("inequality") \} +\{ helpLink("inequality") \} diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec3/Connally3-2-3-05-Piecewise-functions.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec3/Connally3-2-3-05-Piecewise-functions.pg index f255eac099..00b19aca94 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec3/Connally3-2-3-05-Piecewise-functions.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec3/Connally3-2-3-05-Piecewise-functions.pg @@ -34,7 +34,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextInequalities.pl", "PGcourse.pl" ); @@ -74,10 +74,10 @@ $f2, && x \geq -$a. \] $BR Domain: \{ ans_rule(20) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} $BR Range: $SPACE \{ ans_rule(20) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec3/Connally3-2-3-15-Piecewise-functions.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec3/Connally3-2-3-15-Piecewise-functions.pg index fd24e1db54..de09b2d5a2 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec3/Connally3-2-3-15-Piecewise-functions.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec3/Connally3-2-3-15-Piecewise-functions.pg @@ -36,7 +36,7 @@ loadMacros( "PGunion.pl", "PGgraphmacros.pl", "contextInequalities.pl", - "AnswerFormatHelp.pl", + "PGgraders.pl", "PGchoicemacros.pl", "parserPopUp.pl", @@ -171,11 +171,11 @@ Enter your answers as comma separated lists of numbers. $BR Domain: \{ ans_rule(30) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR Range: $SPACE \{ ans_rule(30) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec3/Connally3-2-3-17-Piecewise-functions.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec3/Connally3-2-3-17-Piecewise-functions.pg index 054cc6a597..5422a4fdb1 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec3/Connally3-2-3-17-Piecewise-functions.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec3/Connally3-2-3-17-Piecewise-functions.pg @@ -27,7 +27,7 @@ loadMacros( "MathObjects.pl", "PGgraphmacros.pl", "contextInequalities.pl", - "AnswerFormatHelp.pl", + "weightedGrader.pl", "parserPopUp.pl", "answerHints.pl", @@ -63,7 +63,7 @@ foreach my $i ($lowdomain+1..$highdomain) { $lowrange = $n->eval(L=>$lowdomain)->reduce; -# +# # make graphs # foreach my $i (0..3) { @@ -125,35 +125,35 @@ A contractor purchases gravel one cubic yard at a time. $BR $BR (a) A gravel driveway \( L \) yards long and $width yards -wide is to be poured to a depth of 1 foot. Find a -formula for \( n(L) \), the number of cubic yards of +wide is to be poured to a depth of 1 foot. Find a +formula for \( n(L) \), the number of cubic yards of gravel the contractor buys, assuming that he buys $extra -more cubic yards of gravel than are needed (to be sure +more cubic yards of gravel than are needed (to be sure he'll have enough). $BR \( n(L) = \) \{ ans_rule(30) \} -cubic yards \{ AnswerFormatHelp("formula") \} +cubic yards \{ helpLink("formula") \} $BR $BR -(b) Assuming no driveway is less than $lowdomain -yards long or more than $highdomain yards long, +(b) Assuming no driveway is less than $lowdomain +yards long or more than $highdomain yards long, find the domain and range of \( n(L) \). Enter your answers as comma separated lists of numbers. $BR Domain: \{ ans_rule(30) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR Range: $SPACE \{ ans_rule(30) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR $BR -(c) Assuming that no driveway is less than $lowdomain -yards long or more than $highdomain yards long, -sketch a graph of \( n(L) \). Which graph A-D below most closely matches -the graph you drew? +(c) Assuming that no driveway is less than $lowdomain +yards long or more than $highdomain yards long, +sketch a graph of \( n(L) \). Which graph A-D below most closely matches +the graph you drew? \{ $popup->menu() \} $BR $BR @@ -176,7 +176,7 @@ Context()->normalStrings; $showPartialCorrectAnswers = 1; -WEIGHTED_ANS($n->cmp()->withPostFilter(AnswerHints( +WEIGHTED_ANS($n->cmp()->withPostFilter(AnswerHints( Formula("$width*L+$extra") => "Are all of your units expressed in yards?", )) , 50); diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec3/Q06.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec3/Q06.pg index 97bac5e24e..52774553f4 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec3/Q06.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec3/Q06.pg @@ -35,7 +35,7 @@ loadMacros( "PGgraphmacros.pl", "MathObjects.pl", "PGchoicemacros.pl", - "AnswerFormatHelp.pl", + "contextInequalities.pl", "PGcourse.pl" ); @@ -102,10 +102,10 @@ $funct[$i] Based on your graph, answer the following questions, $PAR (a) What is the domain of \(f(x)\)? \{ ans_rule(25) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} $PAR (b) What is the range of \(f(x)\)? \{ ans_rule(25) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} END_TEXT diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec3/Q07.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec3/Q07.pg index 99ef1f844c..ef5f912b13 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec3/Q07.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec3/Q07.pg @@ -38,7 +38,7 @@ loadMacros( "PGgraphmacros.pl", "MathObjects.pl", "contextInequalities.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "PGcourse.pl" ); @@ -121,16 +121,16 @@ $BR. $BR. "(a) The formula for the left piece of \( f(x) \) is \( f(x) = \) ". -ans_rule(15).$SPACE.AnswerFormatHelp("formula"). +ans_rule(15).$SPACE.helpLink("formula"). " for all \( x \) that satisfy the inequality ". -ans_rule(10).$SPACE.AnswerFormatHelp("inequality"). +ans_rule(10).$SPACE.helpLink("inequality"). $BR. $BR. "(b) The formula for the right piece of \( f(x) \) is \( f(x) = \) ". -ans_rule(15).$SPACE.AnswerFormatHelp("formula"). +ans_rule(15).$SPACE.helpLink("formula"). " for all \( x \) that satisfy the inequality ". -ans_rule(10).$SPACE.AnswerFormatHelp("inequality") +ans_rule(10).$SPACE.helpLink("inequality") , $BCENTER. image(insertGraph($graph), width => 400, height => 400, tex_size => 700). diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec3/Q10.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec3/Q10.pg index 6370f45f5a..590b463819 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec3/Q10.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec3/Q10.pg @@ -39,7 +39,7 @@ loadMacros( "PGgraphmacros.pl", "MathObjects.pl", "contextInequalities.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "unionTables.pl", "PGcourse.pl" @@ -131,16 +131,16 @@ $BR. $BR. "(a) The formula for the left piece of \( f(x) \) is \( f(x) = \) ". -ans_rule(15).$SPACE.AnswerFormatHelp("formula"). +ans_rule(15).$SPACE.helpLink("formula"). " for all \( x \) that satisfy the inequality \( x < \) ". -ans_rule(10).$SPACE.AnswerFormatHelp("number"). +ans_rule(10).$SPACE.helpLink("number"). $BR. $BR. "(b) The formula for the right piece of \( f(x) \) is \( f(x) = \) ". -ans_rule(15).$SPACE.AnswerFormatHelp("formula"). +ans_rule(15).$SPACE.helpLink("formula"). " for all \( x \) that satisfy the inequality ". -ans_rule(20).$SPACE.AnswerFormatHelp("inequality") +ans_rule(20).$SPACE.helpLink("inequality") , $BCENTER. image(insertGraph($graph), width=>400, height=>400, tex_size=>700). diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec3/Q14.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec3/Q14.pg index 79a345784c..8f76313a93 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec3/Q14.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec3/Q14.pg @@ -36,7 +36,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserNumberWithUnits.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -55,7 +55,7 @@ $extra = sprintf("%0.2f", random(0.20,0.50,0.10) ); $cost[0] = Compute("0"); $cost[1] = Compute($charge); for( $i = 2; $i <= 8; $i++ ) { - $cost[$i] = $cost[$i-1] + $extra; + $cost[$i] = $cost[$i-1] + $extra; }; @@ -92,7 +92,7 @@ ${DOLLAR} \{ ans_rule(10) \} $PAR (d) How far could you go for ${DOLLAR}$given? \{ ans_rule(10) \} -(include \{ AnswerFormatHelp("units") \} in your answer) +(include \{ helpLink("units") \} in your answer) END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec3/Q16.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec3/Q16.pg index 4aab67cc50..b2da0bd2cc 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec3/Q16.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec3/Q16.pg @@ -35,7 +35,7 @@ loadMacros( "PGstandard.pl", "PGchoicemacros.pl", "contextInequalities.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "unionTables.pl", @@ -134,13 +134,13 @@ $PAR $BR \( C(x) = \) ${DOLLAR} \{ ans_rule(20) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $PAR (b) Find an equation for the amount \( C \) (in dollars) they will charge to refinish a floor which is \( x \) square feet when \( x > 150. \) $BR \( C(x) = \) ${DOLLAR} \{ ans_rule(20) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $PAR (c) Sketch a graph of the function \( y = C(x) \) on a separate piece of paper. Which of the following graphs (A) - (E) below matches your graph? \{ pop_up_list(["?","A","B","C","D","E"]) \} @@ -163,11 +163,11 @@ $ECENTER $BR (d) Based on your graph and formulas from parts (a) and (b), what is the domain of \( C(x)\)? \{ ans_rule(40) \} -\{ AnswerFormatHelp("inequality") \} +\{ helpLink("inequality") \} $PAR (e) Based on your graph and formulas from parts (a) and (b), what is the range of \( C(x) \)? \{ ans_rule(40) \} -\{ AnswerFormatHelp("inequality") \} +\{ helpLink("inequality") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec4/Connally3-2-4-28-Composition-inverse.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec4/Connally3-2-4-28-Composition-inverse.pg index a90451c9b6..021bd43b96 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec4/Connally3-2-4-28-Composition-inverse.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec4/Connally3-2-4-28-Composition-inverse.pg @@ -34,7 +34,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -68,7 +68,7 @@ Find a formula for the inverse function $PAR \( g^{-1}(C) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec4/Connally3-2-4-31-Composition-inverse.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec4/Connally3-2-4-31-Composition-inverse.pg index 5ebdb549a7..2d56d0f3a6 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec4/Connally3-2-4-31-Composition-inverse.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec4/Connally3-2-4-31-Composition-inverse.pg @@ -33,7 +33,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGchoicemacros.pl", "PGcourse.pl" ); @@ -94,18 +94,18 @@ square of side length \( s \). $BR \( P = f(s) = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $PAR (b) \( f($s) = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} $PAR \{ $mcb->print_q() \} \{ $mcb->print_a() \} $BR (c) \( f^{-1}($p) = \) \{ans_rule(10)\} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} $PAR \{ $mcc->print_q() \} \{ $mcc->print_a() \} @@ -114,7 +114,7 @@ $BR $BR \( f^{-1}(P) = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec4/Connally3-2-4-33-Composition-inverse.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec4/Connally3-2-4-33-Composition-inverse.pg index c3f1f84ddd..64d66f79d3 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec4/Connally3-2-4-33-Composition-inverse.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec4/Connally3-2-4-33-Composition-inverse.pg @@ -33,7 +33,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGchoicemacros.pl", "weightedGrader.pl", "PGcourse.pl" @@ -98,7 +98,7 @@ $PAR $BR \( s = f(A) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $PAR \{ $mca->print_q() \} \{ $mca->print_a() \} @@ -107,7 +107,7 @@ $BR $BR \( g(f(A)) = \) \{ans_rule(20)\} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $PAR \{ $mcb->print_q() \} \{ $mcb->print_a() \} diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec4/Connally3-2-4-36-Composition-inverse.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec4/Connally3-2-4-36-Composition-inverse.pg index 078991101f..1b846d9027 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec4/Connally3-2-4-36-Composition-inverse.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec4/Connally3-2-4-36-Composition-inverse.pg @@ -33,7 +33,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGchoicemacros.pl", "PGcourse.pl" ); @@ -97,7 +97,7 @@ $PAR $BR \( f(s) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $PAR (b) Find a formula for \( C = g(A) \), the cost in dollars of staining an area of \( A \) square @@ -105,13 +105,13 @@ feet. $BR \( C = g(A) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $PAR (c) Find \( C = g(f(s)) \). $BR \( C = g(f(s)) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $PAR \{ $mc->print_q() \} \{ $mc->print_a() \} diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec4/Connally3-2-4-37-Composition-inverse.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec4/Connally3-2-4-37-Composition-inverse.pg index 302dfca383..fe6f2c624c 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec4/Connally3-2-4-37-Composition-inverse.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec4/Connally3-2-4-37-Composition-inverse.pg @@ -32,7 +32,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGchoicemacros.pl", "parserFormulaWithUnits.pl", "PGcourse.pl" @@ -69,9 +69,9 @@ of time. $PAR \( V = f(t) = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} with -\{ AnswerFormatHelp("units") \} +\{ helpLink("units") \} $BR ${BITALIC}(Be sure to include units!)$EITALIC diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec4/Connally3-2-4-40-Composition-inverse.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec4/Connally3-2-4-40-Composition-inverse.pg index d196148835..79a6d44c0c 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec4/Connally3-2-4-40-Composition-inverse.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec4/Connally3-2-4-40-Composition-inverse.pg @@ -33,7 +33,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGchoicemacros.pl", "PGcourse.pl" ); @@ -109,7 +109,7 @@ $BR $BR \( C($randmile) = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} $PAR \{ $mca->print_q() \} \{ $mca->print_a() \} @@ -119,7 +119,7 @@ $BR $BR \( C^{-1}($randcost) = \) \{ans_rule(30)\} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} $PAR \{ $mcb->print_q() \} \{ $mcb->print_a() \} @@ -161,8 +161,8 @@ $PAR \( C^{-1}($randcost) \) is the number of miles you can travel for \( $randcost \) dollars. Traveling one mile costs \( $cost[1] \) dollars. -Between 1 and $nummiles miles the increase in cost is -\( $deltac \) dollars, so beyond one mile the fare +Between 1 and $nummiles miles the increase in cost is +\( $deltac \) dollars, so beyond one mile the fare rate is \( $deltac \) dollars for every \( $deltam \) miles, or \( $b \) dollars per mile. Using point-slope form for an equation for a line through the point \( (1,$cost[1]) \) diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec4/Q22.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec4/Q22.pg index 7fe4391bfb..fd2b62b905 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec4/Q22.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec4/Q22.pg @@ -35,7 +35,7 @@ loadMacros( "MathObjects.pl", "PGgraphmacros.pl", "unionTables.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -63,7 +63,7 @@ plot_functions( $graph, $f, $tick); BEGIN_TEXT \{ ColumnTable( -"Use the graph of \( y = f(x) \) in the figure to fill in the missing values. ".$SPACE.AnswerFormatHelp("numbers"). +"Use the graph of \( y = f(x) \) in the figure to fill in the missing values. ".$SPACE.helpLink("numbers"). $BR. $BR. "(a) \( f(0) = \) ".ans_rule(10). diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec4/Q38.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec4/Q38.pg index 2e05a13adc..4698f0a95f 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec4/Q38.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec4/Q38.pg @@ -34,7 +34,7 @@ loadMacros( "PGchoicemacros.pl", "MathObjects.pl", "parserFormulaWithUnits.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -62,9 +62,9 @@ $PAR Find a formula for \( A = f(t) \), the area of the oil slick as a function of time. $PAR \( A = f(t) = \) \{ ans_rule(35) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} with -\{ AnswerFormatHelp("units") \} +\{ helpLink("units") \} $BR ${BITALIC}(Be sure to include units!)$EITALIC diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec6/Connally3-2-6-01-Quadratic-functions.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec6/Connally3-2-6-01-Quadratic-functions.pg index deb7b6e66e..f602ada399 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec6/Connally3-2-6-01-Quadratic-functions.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec6/Connally3-2-6-01-Quadratic-functions.pg @@ -36,7 +36,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "weightedGrader.pl", "PGcourse.pl" ); @@ -82,7 +82,7 @@ your answer as much as possible. $PAR \( $f = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $PAR Is \( $f \) a constant, linear, quadratic, or cubic function, or none of these? \{ pop_up_list(["?","constant","linear","quadratic","cubic","none of the above"]) \} diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec6/Connally3-2-6-02-Quadratic-functions.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec6/Connally3-2-6-02-Quadratic-functions.pg index 26999b0759..4bd76fa062 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec6/Connally3-2-6-02-Quadratic-functions.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec6/Connally3-2-6-02-Quadratic-functions.pg @@ -36,7 +36,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "weightedGrader.pl", "PGcourse.pl" ); @@ -79,7 +79,7 @@ your answer as much as possible. $PAR \( $f = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $PAR Is \( $f \) a constant, linear, quadratic, or cubic function, or none of these? \{ pop_up_list(["?","constant","linear","quadratic","cubic","none of the above"]) \} diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec6/Connally3-2-6-04-Quadratic-functions.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec6/Connally3-2-6-04-Quadratic-functions.pg index ca7703f6c1..b2ec979185 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec6/Connally3-2-6-04-Quadratic-functions.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec6/Connally3-2-6-04-Quadratic-functions.pg @@ -36,7 +36,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "weightedGrader.pl", "PGcourse.pl" ); @@ -85,7 +85,7 @@ your answer as much as possible. $PAR \( $f = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $PAR Is \( $f \) a constant, linear, quadratic, or cubic function, or none of these? \{ pop_up_list(["?","constant","linear","quadratic","cubic","none of the above"]) \} diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec6/Connally3-2-6-05-Quadratic-functions.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec6/Connally3-2-6-05-Quadratic-functions.pg index 1a2a6e23ec..a10ded812a 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec6/Connally3-2-6-05-Quadratic-functions.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec6/Connally3-2-6-05-Quadratic-functions.pg @@ -36,7 +36,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "weightedGrader.pl", "PGcourse.pl" ); @@ -79,7 +79,7 @@ your answer as much as possible. $PAR \( $f = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $PAR Is \( $f \) a constant, linear, quadratic, or cubic function, or none of these? \{ pop_up_list(["?","constant","linear","quadratic","cubic","none of the above"]) \} diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec6/Connally3-2-6-07-Quadratic-functions.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec6/Connally3-2-6-07-Quadratic-functions.pg index 2e130bd746..0dd0e809b8 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec6/Connally3-2-6-07-Quadratic-functions.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec6/Connally3-2-6-07-Quadratic-functions.pg @@ -36,7 +36,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "weightedGrader.pl", "PGcourse.pl" ); @@ -85,7 +85,7 @@ your answer as much as possible. $PAR \( $f = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $PAR Is \( $f \) a constant, linear, quadratic, or cubic function, or none of these? \{ pop_up_list(["?","constant","linear","quadratic","cubic","none of the above"]) \} diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec6/Connally3-2-6-13-Quadratic-functions.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec6/Connally3-2-6-13-Quadratic-functions.pg index 9a29414023..e097afdd16 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec6/Connally3-2-6-13-Quadratic-functions.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec6/Connally3-2-6-13-Quadratic-functions.pg @@ -36,7 +36,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -73,7 +73,7 @@ If no (real) zeroes exist, enter ${BBOLD}NONE${EBOLD}. $PAR The zeros are \( $x = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec6/Connally3-2-6-14-Quadratic-functions.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec6/Connally3-2-6-14-Quadratic-functions.pg index c40f1754d8..f494954858 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec6/Connally3-2-6-14-Quadratic-functions.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec6/Connally3-2-6-14-Quadratic-functions.pg @@ -36,7 +36,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -75,7 +75,7 @@ If no (real) zeroes exist, enter ${BBOLD}NONE${EBOLD}. $PAR The zeros are \( $x = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec6/Connally3-2-6-15-Quadratic-functions.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec6/Connally3-2-6-15-Quadratic-functions.pg index 19f1e02913..babfc523bc 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec6/Connally3-2-6-15-Quadratic-functions.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec6/Connally3-2-6-15-Quadratic-functions.pg @@ -36,7 +36,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -76,7 +76,7 @@ If no (real) zeroes exist, enter ${BBOLD}NONE${EBOLD}. $PAR The zeros are \( $x = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec6/Connally3-2-6-16-Quadratic-functions.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec6/Connally3-2-6-16-Quadratic-functions.pg index 831a0fafa4..6697c3a7ad 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec6/Connally3-2-6-16-Quadratic-functions.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec6/Connally3-2-6-16-Quadratic-functions.pg @@ -36,7 +36,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -76,7 +76,7 @@ If no (real) zeroes exist, enter ${BBOLD}NONE${EBOLD}. $PAR The zeros are \( $x = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec6/Connally3-2-6-17-Quadratic-functions.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec6/Connally3-2-6-17-Quadratic-functions.pg index 382ced7b56..6de4d6be6f 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec6/Connally3-2-6-17-Quadratic-functions.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec6/Connally3-2-6-17-Quadratic-functions.pg @@ -22,19 +22,19 @@ ################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); ####################################### # Setup - -TEXT(beginproblem()); + +TEXT(beginproblem()); Context("Numeric"); @@ -59,14 +59,14 @@ Context()->texStrings; BEGIN_TEXT Find the zeros of \( $f = $func \). -If there is more than one zero or a zero is repeated, -enter your answers as a comma separated list. +If there is more than one zero or a zero is repeated, +enter your answers as a comma separated list. If no (real) zeroes exist, enter ${BBOLD}NONE${EBOLD}. $BR $BR -The zeros are \( $x = \) +The zeros are \( $x = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec6/Connally3-2-6-18-Quadratic-functions.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec6/Connally3-2-6-18-Quadratic-functions.pg index 18468d1d1a..79c0db7d0f 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec6/Connally3-2-6-18-Quadratic-functions.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec6/Connally3-2-6-18-Quadratic-functions.pg @@ -22,19 +22,19 @@ ################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); ####################################### # Setup - -TEXT(beginproblem()); + +TEXT(beginproblem()); Context("Numeric"); @@ -62,14 +62,14 @@ Context()->texStrings; BEGIN_TEXT Find the zeros of \( $f = $func \). -If there is more than one zero or a zero is repeated, -enter your answers as a comma separated list. +If there is more than one zero or a zero is repeated, +enter your answers as a comma separated list. If no (real) zeroes exist, enter ${BBOLD}NONE${EBOLD}. $BR $BR -The zeros are \( $x = \) +The zeros are \( $x = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec6/Q03.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec6/Q03.pg index e70723a0dd..7b5f4286ea 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec6/Q03.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec6/Q03.pg @@ -35,7 +35,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "weightedGrader.pl", "PGcourse.pl" ); @@ -85,7 +85,7 @@ your answer as much as possible. $PAR \( g(m) = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $PAR Is \( g(m) \) a constant, linear, quadratic, or cubic function, or none of these? \{ pop_up_list(["?","constant","linear","quadratic","cubic","none of the above"]) \} diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec6/Q08.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec6/Q08.pg index cafb3b1580..ce29460984 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec6/Q08.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec6/Q08.pg @@ -34,7 +34,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -75,7 +75,7 @@ If no zeroes exist, enter ${BBOLD}NONE${EBOLD}. $PAR The zeros are \( $x = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec6/Q10.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec6/Q10.pg index c129b606bf..e3dca322cc 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec6/Q10.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec6/Q10.pg @@ -31,7 +31,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -61,7 +61,7 @@ y-axis at \( y = $y \). $PAR \( f(x) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec6/Q30.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec6/Q30.pg index d7963bb0d1..88cb8d4e86 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec6/Q30.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap2Sec6/Q30.pg @@ -34,7 +34,7 @@ loadMacros( "extraAnswerEvaluators.pl", "MathObjects.pl", "parserNumberWithUnits.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -71,9 +71,9 @@ Based on the two equivalent forms of the function \(h(t) = $b t - 16 t^2 = t \cd $PAR a) What is the height of the ball 1 second after it has been thrown? \{ ans_rule(10) \} -(include \{ AnswerFormatHelp("units","units") \} in your answer) +(include \{ helpLink("units","units") \} in your answer) $PAR -b) After how many seconds does the ball hit the ground? \{ ans_rule(10) \} (include \{ AnswerFormatHelp("units","units") \} in your answer) +b) After how many seconds does the ball hit the ground? \{ ans_rule(10) \} (include \{ helpLink("units","units") \} in your answer) $PAR c) At what time(s) is the ball $h_ran feet above the ground? If there is more than one answer, give your answer as a comma separated list of values. Note that you do not have to include units in this answer. $BR @@ -106,7 +106,7 @@ Therefore the ball is on the ground when \(t = 0\) and \(t = $ground\). When \( $PAR c) When the ball is $h_ran feet high, its height is \(h(t) = $h_ran\). We solve for \(t \) \[ -h(t) = $h_ran = $b t - 16 t^2 +h(t) = $h_ran = $b t - 16 t^2 \] \[ -16 t^2 + $b t - $h_ran = 0 diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Chap3Sec1Basic1.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Chap3Sec1Basic1.pg index 1f71f32096..45586b47de 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Chap3Sec1Basic1.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Chap3Sec1Basic1.pg @@ -19,15 +19,15 @@ ## Problem1('') ## KEYWORDS('logarithms','exponentials','log','e','ln','continuous growth rate') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); - + TEXT(beginproblem()); # standard preamble to each problem. Context("Numeric"); @@ -48,10 +48,10 @@ $BR $BR $BR \( a = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR \( b = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT ANS( Real("$e1")->cmp() ); diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Chap3Sec1Basic2.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Chap3Sec1Basic2.pg index 749a1ac8b5..74e6c3a955 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Chap3Sec1Basic2.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Chap3Sec1Basic2.pg @@ -18,15 +18,15 @@ ## Problem1('') ## KEYWORDS('logarithms','exponentials','log','e','ln','continuous growth rate') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); - + TEXT(beginproblem()); # standard preamble to each problem. Context("Numeric"); @@ -47,10 +47,10 @@ $BR $BR $BR \( a = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR \( b = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT ANS( Real("$e1")->cmp() ); diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Connally3-3-1-01-Exponential-functions.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Connally3-3-1-01-Exponential-functions.pg index 7ae4101b22..3d002cb9e8 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Connally3-3-1-01-Exponential-functions.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Connally3-3-1-01-Exponential-functions.pg @@ -33,7 +33,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -60,7 +60,7 @@ per year. Assume that time is measured in years. $PAR \{ ans_rule(10) \} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Connally3-3-1-03-Exponential-functions.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Connally3-3-1-03-Exponential-functions.pg index 3926eebab6..2fd0cf9b05 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Connally3-3-1-03-Exponential-functions.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Connally3-3-1-03-Exponential-functions.pg @@ -33,7 +33,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -62,7 +62,7 @@ per day. Assume that time is measured in days. $PAR \{ ans_rule(10) \} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Connally3-3-1-12-Exponential-functions.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Connally3-3-1-12-Exponential-functions.pg index 65bab93cea..fe855b6575 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Connally3-3-1-12-Exponential-functions.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Connally3-3-1-12-Exponential-functions.pg @@ -33,7 +33,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -66,16 +66,16 @@ growth ${BITALIC}rate${EITALIC} \( r \) if $PAR \( a = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} $BR \( b = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} $BR \( r = \) \{ ans_rule(10) \} ${PERCENT} $SPACE$SPACE$SPACE -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} END_TEXT diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Connally3-3-1-13-Exponential-functions.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Connally3-3-1-13-Exponential-functions.pg index f6e9671b12..8437bfc388 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Connally3-3-1-13-Exponential-functions.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Connally3-3-1-13-Exponential-functions.pg @@ -33,7 +33,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -66,16 +66,16 @@ growth ${BITALIC}rate${EITALIC} \( r \) if $PAR \( a = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} $BR \( b = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} $BR \( r = \) \{ ans_rule(10) \} ${PERCENT} $SPACE$SPACE$SPACE -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} END_TEXT diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Connally3-3-1-19-Exponential-functions.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Connally3-3-1-19-Exponential-functions.pg index 5fa8aa7847..f482d16ba3 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Connally3-3-1-19-Exponential-functions.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Connally3-3-1-19-Exponential-functions.pg @@ -24,7 +24,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -50,16 +50,16 @@ $f = Formula("$a * ($b)**t"); Context()->texStrings; BEGIN_TEXT -Find a formula for \( P = f(t) \), the +Find a formula for \( P = f(t) \), the size of the population that begins in year -\( t = 0 \) with \( $a \) members and +\( t = 0 \) with \( $a \) members and decreases at a \( $rpercentpos \) ${PERCENT} annual rate. Assume that time is measured in years. $BR $BR \( P = f(t) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Connally3-3-1-22-Exponential-functions.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Connally3-3-1-22-Exponential-functions.pg index 23a4a4669f..5dd92e7538 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Connally3-3-1-22-Exponential-functions.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Connally3-3-1-22-Exponential-functions.pg @@ -34,7 +34,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -71,7 +71,7 @@ years after 2010. $PAR \( P = f(t) = \) \{ ans_rule(20) \} million people -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Connally3-3-1-27-Exponential-functions.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Connally3-3-1-27-Exponential-functions.pg index 5ef0c0b01a..def7cfb8d2 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Connally3-3-1-27-Exponential-functions.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Connally3-3-1-27-Exponential-functions.pg @@ -32,7 +32,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -74,13 +74,13 @@ inflation. $BR \( P = f(t) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $PAR (b) According to your formula, how much will a movie ticket cost in \( $t \) years? $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Connally3-3-1-28-Exponential-functions.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Connally3-3-1-28-Exponential-functions.pg index b2f7fcdf7f..3831e44dbd 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Connally3-3-1-28-Exponential-functions.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Connally3-3-1-28-Exponential-functions.pg @@ -38,7 +38,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -86,21 +86,21 @@ millions) \( t \) years after $startyear. $BR \( N = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $PAR (b) How many cruise passengers (in millions) are predicted in the year $endyear? $BR \( N = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} $PAR (c) How many cruise passengers (in millions) were there in the year 2000? $BR \( N = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} $PAR diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Connally3-3-1-34-Exponential-functions.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Connally3-3-1-34-Exponential-functions.pg index f6efdb62d8..96d941f9ed 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Connally3-3-1-34-Exponential-functions.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Connally3-3-1-34-Exponential-functions.pg @@ -33,7 +33,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -84,13 +84,13 @@ how many millions of hectares of forest were lost during the 1990s? $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} $PAR (b) Based on your work in (a), how many million hectares of natural forests existed in the year 2000? $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} $PAR (c) Write an exponential formula approximating the number of million hectares of natural forest @@ -99,7 +99,7 @@ in the world \( t \) years after 1990 if the value in $BR \( P = f(t) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $PAR (d) What was the annual percent decay rate during the 1990s? @@ -107,7 +107,7 @@ $BR \{ ans_rule(10) \} ${PERCENT} (Round to 0.01${PERCENT}) -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Q02.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Q02.pg index 4770e27b6f..8443920a63 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Q02.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Q02.pg @@ -37,7 +37,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -67,7 +67,7 @@ What is the growth/decay factor per decade for a city whose population grows by $PAR The growth/decay factor is \(b = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Q04.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Q04.pg index 9ee011a125..bacf66db6a 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Q04.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Q04.pg @@ -32,7 +32,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -53,7 +53,7 @@ BEGIN_TEXT What is the growth/decay ${BITALIC}factor${EITALIC} per century for a forest which shrinks by $r$PERCENT each century? $PAR The growth/decay factor is \( b = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; @@ -68,11 +68,11 @@ $PAR $BBOLD SOLUTION $EBOLD $PAR -Since the forest ${BITALIC}shrinks${EITALIC} -by $r$PERCENT every century, the decimal -representation of the percent rate of +Since the forest ${BITALIC}shrinks${EITALIC} +by $r$PERCENT every century, the decimal +representation of the percent rate of change is the ${BITALIC}negative${EITALIC} -number \( r = - $decimal \). Thus, the +number \( r = - $decimal \). Thus, the growth factor is \( b = 1 + r = 1 + (-$decimal) = $b \). END_SOLUTION diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Q06.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Q06.pg index 458b04a231..1b2e789ea0 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Q06.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Q06.pg @@ -22,7 +22,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -44,7 +44,7 @@ You start with $q items. How many do you have after a $r${PERCENT} increase? $BR $BR You will have \{ ans_rule(20) \} items. -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT ANS(Real("$amt")->cmp() ); @@ -53,9 +53,9 @@ ANS(Real("$amt")->cmp() ); SOLUTION(EV3(<<'END_SOLUTION')); -$BR $SPACE $BR +$BR $SPACE $BR $BBOLD SOLUTION $EBOLD -$BR +$BR For a $r${PERCENT} increase, the growth factor is $BITALIC b $EITALIC = $b, and you will have \($q ($b) = $amt \) items. $BR diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Q09.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Q09.pg index aa48518979..ade7609a69 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Q09.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Q09.pg @@ -17,15 +17,15 @@ ## Problem1('9') ## KEYWORDS('exponential functions','growth rate','growth factor') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); - + TEXT(beginproblem()); # standard preamble to each problem. Context("Numeric"); @@ -47,7 +47,7 @@ You start with $q items. How many do you have after a $r${PERCENT} increase fol $BR $BR You will have \{ ans_rule(20) \} items. (Do not round your answer) -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT ANS(Real("$amt2")->cmp() ); @@ -56,9 +56,9 @@ ANS(Real("$amt2")->cmp() ); SOLUTION(EV3(<<'END_SOLUTION')); -$BR $SPACE $BR +$BR $SPACE $BR $BBOLD SOLUTION $EBOLD -$BR +$BR For a $r${PERCENT} increase, the growth factor is $BITALIC b $EITALIC = $grow, and you will have \($q ($grow) = $amt1 \) items. $BR $SPACE $BR Then for a $r${PERCENT} decrease, the decay factor is $BITALIC b $EITALIC = $decay, and you will have \($amt1 ($decay) = $amt2 \) items. diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Q11.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Q11.pg index ea7ffad371..0f49b63118 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Q11.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Q11.pg @@ -37,7 +37,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -76,15 +76,15 @@ $PAR $PAR (a) The initial value is \(a = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $PAR (b) The growth factor is \(b = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $PAR (c) The growth rate is \(r = \) \{ ans_rule(10) \} $PERCENT -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR ${BITALIC}(Note that if \(r\) gives a decay rate you should have \(r < 0\).)$EITALIC diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Q14.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Q14.pg index b9e5ec5e85..0a0280a1ff 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Q14.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Q14.pg @@ -36,7 +36,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -74,16 +74,16 @@ $PAR $PAR (a) The initial value is \(a = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $PAR (b) The growth factor is \(b = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} (Retain at least four decimal places.) $PAR (c) The growth rate is \(r = \) \{ ans_rule(10) \} $PERCENT -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} (Ensure your answer is accurate to at least the nearest 0.01${PERCENT}) $BR ${BITALIC}(Note that if \(r\) gives a decay rate you diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Q18.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Q18.pg index 534e300774..1267bd6fac 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Q18.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Q18.pg @@ -31,7 +31,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -51,7 +51,7 @@ BEGIN_TEXT An investment decreases by $r$PERCENT per year for $year years. By what total percent does it decrease after the $year years? $PAR Overall it decreases by \{ ans_rule(10) \} $PERCENT (round your answer to the nearest 0.01${PERCENT}) -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Q24.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Q24.pg index 6100b44e9f..a45d377bf3 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Q24.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Q24.pg @@ -32,7 +32,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -58,7 +58,7 @@ BEGIN_TEXT Every year a lake becomes more polluted, and $r$PERCENT fewer organisms can live in it. If in 2010 there are $number[$i] million organisms, write an equation relating \(N\), the number of organisms (in millions), to time \(t\), in years since 2010. $PAR \( N(t) = \) \{ ans_rule(20) \} millions of organisms. -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR ${BITALIC}(Be sure to enter your formula in terms of millions of organisms. For example if there are 8 million organisms, then \(N = 8\) (not 8,000,000).)$EITALIC diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Q26.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Q26.pg index e2095a7726..dcd7b77ccb 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Q26.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Q26.pg @@ -32,7 +32,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserNumberWithUnits.pl", "PGcourse.pl" ); diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Q29.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Q29.pg index 7f1caebfff..bd92e093f5 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Q29.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Q29.pg @@ -33,7 +33,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -64,7 +64,7 @@ $PAR $BR \( C(t) = \) \{ ans_rule(30) \} mg -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $PAR (b) How much caffeine is in the body after $time hours? \{ ans_rule(20) \} mg (Round your answer to three decimal places.) diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Q33.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Q33.pg index 71eb051656..efb5e0f7d5 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Q33.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec1/Q33.pg @@ -32,7 +32,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -59,7 +59,7 @@ water contains impurities at a level of $a parts per million (ppm). Find a formula for $BITALIC L${EITALIC}, the remaining level of impurities, after the water has been passed through a series of $BITALIC n $EITALIC filters. $PAR \( L(n) = \) \{ ans_rule(30) \} ppm -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Connally3-3-2-03-Exponential-vs-linear.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Connally3-3-2-03-Exponential-vs-linear.pg index 989d0885a2..1a9868eb00 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Connally3-3-2-03-Exponential-vs-linear.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Connally3-3-2-03-Exponential-vs-linear.pg @@ -20,12 +20,12 @@ ## KEYWORDS('exponential functions','annual growth rate','linear growth') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -51,17 +51,17 @@ $Q = Formula("$a * ($b)**t"); Context()->texStrings; BEGIN_TEXT -A population has size $a at time \( t = 0 \), +A population has size $a at time \( t = 0 \), with \( t \) measured in years. $BR $BR -(a) If the population grows by $n people -per year, find a formula for the population, -\( P \), at time \( t \). +(a) If the population grows by $n people +per year, find a formula for the population, +\( P \), at time \( t \). $BR \( P = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $BR $BR (b) If the population grows by $rpercent${PERCENT} @@ -70,7 +70,7 @@ at time \( t \). $BR \( Q = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $BR $BR (c) On a piece of paper, graph both functions diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Connally3-3-2-05-Exponential-vs-linear.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Connally3-3-2-05-Exponential-vs-linear.pg index 087fdb0b17..a1a04da7d1 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Connally3-3-2-05-Exponential-vs-linear.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Connally3-3-2-05-Exponential-vs-linear.pg @@ -19,12 +19,12 @@ ## KEYWORDS('exponential functions','annual growth rate','linear growth') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -49,8 +49,8 @@ foreach $i (1..9) { Context()->texStrings; BEGIN_TEXT -Determine whether function whose values -are given in the table below could be +Determine whether function whose values +are given in the table below could be linear, exponential, or neither linear nor exponential. $BR diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Connally3-3-2-08-Exponential-vs-linear.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Connally3-3-2-08-Exponential-vs-linear.pg index bf7ac21427..f58071bf18 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Connally3-3-2-08-Exponential-vs-linear.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Connally3-3-2-08-Exponential-vs-linear.pg @@ -34,7 +34,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "weightedGrader.pl", "PGcourse.pl" ); @@ -112,7 +112,7 @@ Find a possible formula for this function. $BR \( h(x) = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $PAR (b) Determine whether function whose values are given in the table below could be @@ -131,7 +131,7 @@ Find a possible formula for this function. $BR \( i(x) = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Connally3-3-2-16-Exponential-vs-linear.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Connally3-3-2-16-Exponential-vs-linear.pg index d0375a84af..02e6d97ad7 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Connally3-3-2-16-Exponential-vs-linear.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Connally3-3-2-16-Exponential-vs-linear.pg @@ -20,12 +20,12 @@ ## KEYWORDS('exponential functions','annual growth rate','linear growth') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -52,15 +52,15 @@ $f = Formula("$a * ($b**x)"); Context()->texStrings; BEGIN_TEXT -Find a formula for an exponential function +Find a formula for an exponential function satisfying \( f(1) = $c \) and \( f(3) = d \). -Your answer will be in terms of the +Your answer will be in terms of the parameter \( d \). $BR $BR \( f(x) = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Connally3-3-2-26-Exponential-vs-linear.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Connally3-3-2-26-Exponential-vs-linear.pg index 3afbe1aaa7..fc69af0ce9 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Connally3-3-2-26-Exponential-vs-linear.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Connally3-3-2-26-Exponential-vs-linear.pg @@ -20,12 +20,12 @@ ## KEYWORDS('exponential functions','annual growth rate','linear growth') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "weightedGrader.pl", "PGcourse.pl" ); @@ -60,8 +60,8 @@ foreach $i (0..4) { Context()->texStrings; BEGIN_TEXT -Determine whether function whose values -are given in the table below could be +Determine whether function whose values +are given in the table below could be linear, exponential, or neither. $BR \{ pop_up_list(["?","linear","exponential","neither"]) \} @@ -77,7 +77,7 @@ If it is linear or exponential, find a possible formula for this function. If i $BR \( p(r) = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Connally3-3-2-28-Exponential-vs-linear.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Connally3-3-2-28-Exponential-vs-linear.pg index b3d20abd3a..069d7ce575 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Connally3-3-2-28-Exponential-vs-linear.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Connally3-3-2-28-Exponential-vs-linear.pg @@ -20,12 +20,12 @@ ## KEYWORDS('exponential functions','annual growth rate','linear growth') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "weightedGrader.pl", "PGcourse.pl" ); @@ -54,8 +54,8 @@ foreach $i (0..4) { Context()->texStrings; BEGIN_TEXT -Determine whether function whose values -are given in the table below could be +Determine whether function whose values +are given in the table below could be linear, exponential, or neither. $BR \{ pop_up_list(["?","linear","exponential","neither"]) \} @@ -71,7 +71,7 @@ If it is linear or exponential, find a possible formula for this function. If i $BR \( f(x) = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Connally3-3-2-29-Exponential-vs-linear.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Connally3-3-2-29-Exponential-vs-linear.pg index 92edce597a..db3de51333 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Connally3-3-2-29-Exponential-vs-linear.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Connally3-3-2-29-Exponential-vs-linear.pg @@ -20,12 +20,12 @@ ## KEYWORDS('exponential functions','annual growth rate','linear growth') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "weightedGrader.pl", "PGcourse.pl" ); @@ -55,8 +55,8 @@ foreach $i (0..4) { Context()->texStrings; BEGIN_TEXT -Determine whether function whose values -are given in the table below could be +Determine whether function whose values +are given in the table below could be linear, exponential, or neither. $BR \{ pop_up_list(["?","linear","exponential","neither"]) \} @@ -72,7 +72,7 @@ If it is linear or exponential, find a possible formula for this function. If i $BR \( g(t) = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Connally3-3-2-31-Exponential-vs-linear.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Connally3-3-2-31-Exponential-vs-linear.pg index 545e84ae72..ef15e0b5a7 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Connally3-3-2-31-Exponential-vs-linear.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Connally3-3-2-31-Exponential-vs-linear.pg @@ -20,12 +20,12 @@ ## KEYWORDS('exponential functions','annual growth rate','linear growth') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -65,22 +65,22 @@ in millions, \( t \) years after 1990, with \( P($t1) = $P1 \) and \( P($t2) = $P2 \). $BR $BR -(a) Find a formula for \( P(t) \) assuming -that it is linear. +(a) Find a formula for \( P(t) \) assuming +that it is linear. $BR $BR \( P(t) = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $BR $BR -(b) Find a formula for \( P(t) \) assuming -that it is exponential. +(b) Find a formula for \( P(t) \) assuming +that it is exponential. $BR $BR \( P(t) = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Q02.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Q02.pg index a2d2ab242d..99bc985255 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Q02.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Q02.pg @@ -32,7 +32,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -55,12 +55,12 @@ $PAR (a) If the population decreases by $m people per year, find a formula for the population, \(P\), at time \(t\). $BR \( P(t) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $PAR (b) If the population decreases by $r${PERCENT} per year, find a formula for the population, \(P\), at time \(t\). $BR \( P(t) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Q06.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Q06.pg index c1b90a809f..9838ca1d78 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Q06.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Q06.pg @@ -32,7 +32,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -83,7 +83,7 @@ BEGIN_TEXT The table below contain values from an exponential or a linear function. Decide if the function is linear or exponential, and then find a possible equation for it. You should also practice sketching its graph on a separate piece of paper. $PAR \( f(x) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BCENTER \{ begintable(2) \} diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Q07.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Q07.pg index 22c0f717a6..8d30833e60 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Q07.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Q07.pg @@ -32,7 +32,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -80,7 +80,7 @@ BEGIN_TEXT The table below contain values from an exponential or a linear function. Decide if the function is linear or exponential, and then find a possible equation for it. You should also practice sketching its graph on a separate piece of paper. $PAR \( f(x) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BCENTER \{ begintable(2) \} diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Q11.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Q11.pg index 435bc90e0e..2ee6961c90 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Q11.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Q11.pg @@ -18,15 +18,15 @@ ## Problem1('11') ## KEYWORDS('exponential functions','annual growth rate','linear growth') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); - + TEXT(beginproblem()); # standard preamble to each problem. Context("Numeric"); @@ -40,12 +40,12 @@ $f1 = $f0 * $b1; $ans1 = "$f0($b1)^x"; BEGIN_TEXT -Find a formula for the exponential function that +Find a formula for the exponential function that satisfies \( f(0) = $f0 \) and \( f(1) = $f1 \). $BR $BR \( f(x) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT ANS(Compute("$ans1")->cmp() ); @@ -53,13 +53,13 @@ ANS(Compute("$ans1")->cmp() ); #ANS(fun_cmp($ans1,vars=>'x')); SOLUTION(EV3(<<'END_SOLUTION')); -$BR $SPACE $BR +$BR $SPACE $BR $BBOLD SOLUTION $EBOLD -$BR -Since \( f(x)=ab^x \), \( f(0)=a(b)^0=a(1)=a \). We are given \( f(0)= $f0 \), so \( a = $f0 \). +$BR +Since \( f(x)=ab^x \), \( f(0)=a(b)^0=a(1)=a \). We are given \( f(0)= $f0 \), so \( a = $f0 \). $BR $SPACE $BR If \( f(x)= $f0(b)^x \), then \( f(1)=$f0(b)^1=$f0 b \). But we are told that \( f(1)=$f1 \), so \( $f0 b= $f1 \) and \( b=$b1 \). Therefore $BR -$SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE +$SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE \( f(x)= $f0($b1)^x \). $BR diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Q12.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Q12.pg index ed54d093f4..8ea8dcc202 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Q12.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Q12.pg @@ -19,15 +19,15 @@ ## Problem1('12') ## KEYWORDS('exponential functions','annual growth rate','linear growth') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); - + TEXT(beginproblem()); # standard preamble to each problem. Context("Numeric"); @@ -40,12 +40,12 @@ $g1 = "$g0/$b2"; $ans2 = "$g0(sqrt($b2))^x"; BEGIN_TEXT -Find a formula for the exponential function +Find a formula for the exponential function that satisfies \( g(0) = $g0 \) and \( g(-2) = $g1 \). $BR $BR \( g(x) = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT ANS(Compute("$ans2")->cmp() ); @@ -53,14 +53,14 @@ ANS(Compute("$ans2")->cmp() ); #ANS(fun_cmp($ans2,vars=>'x')); SOLUTION(EV3(<<'END_SOLUTION')); -$BR $SPACE $BR +$BR $SPACE $BR $BBOLD SOLUTION $EBOLD -$BR -Since \( g(x)=ab^x \), \( g(0)=a(b)^0=a(1)=a \). We are given \( g(0)= $g0 \), so \( a = $g0 \). +$BR +Since \( g(x)=ab^x \), \( g(0)=a(b)^0=a(1)=a \). We are given \( g(0)= $g0 \), so \( a = $g0 \). $BR $SPACE $BR -If \( g(x)= $g0(b)^x \), then \( g(-2)=$g0(b)^{-2} \). But we are told that \( g(-2)=$g1 \), so \( $g0 b^{-2} = $g1 \) and +If \( g(x)= $g0(b)^x \), then \( g(-2)=$g0(b)^{-2} \). But we are told that \( g(-2)=$g1 \), so \( $g0 b^{-2} = $g1 \) and $BR -\( b^{-2} = \frac{$g1}{$g0} = \frac{1}{$b2} \) and therefore \( b = \left( \frac{1}{$b2} \right)^{-1/2} = \sqrt{$b2} \) +\( b^{-2} = \frac{$g1}{$g0} = \frac{1}{$b2} \) and therefore \( b = \left( \frac{1}{$b2} \right)^{-1/2} = \sqrt{$b2} \) $BR $SPACE $BR Therefore \( g(x)= $g0(\sqrt{$b2})^x \). diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Q15.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Q15.pg index 415070eaa5..12956f457c 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Q15.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Q15.pg @@ -19,15 +19,15 @@ ## Problem1('15') ## KEYWORDS('exponential functions','annual growth rate','linear growth') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); - + TEXT(beginproblem()); # standard preamble to each problem. Context("Numeric"); @@ -44,13 +44,13 @@ $initial = $h0/$b3**$inc; $ans3 = "$initial($b3)^x"; BEGIN_TEXT -Find a formula for the exponential function -that satisfies \( h($inc) = $h0 \) and +Find a formula for the exponential function +that satisfies \( h($inc) = $h0 \) and \( h($input) = $h1 \) $BR $BR \( h(x) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT ANS(Compute("$ans3")->cmp() ); @@ -60,15 +60,15 @@ ANS(Compute("$ans3")->cmp() ); $power = $b3**$inc; SOLUTION(EV3(<<'END_SOLUTION')); -$BR $SPACE $BR +$BR $SPACE $BR $BBOLD SOLUTION $EBOLD -$BR +$BR Since \( h(x)=ab^x \), \( h($inc)= ab^$inc \) and \( h($input)=ab^$input \). $BR Since we know that \( h($inc)=$h0 \) and \( h($input)=$h1 \), we can say that \( ab^$inc = $h0 \) and \( ab^$input = $h1 \). Forming ratios, we have $BR -$SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE +$SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE \( \frac{ab^$input}{ab^$inc} = \frac{$h1}{$h0} \) $BR $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Q18.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Q18.pg index d017ecab75..155c7d00c4 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Q18.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Q18.pg @@ -23,10 +23,10 @@ loadMacros( "PGstandard.pl", "PGgraphmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); - + TEXT(beginproblem()); $showPartialCorrectAnswers = 1; @@ -54,12 +54,12 @@ plot_functions($graph, $f); BEGIN_TEXT -Find a possible formula for the exponential function through -the points \( ($x0,$y0) \) and \( ($x1,$y1) \) +Find a possible formula for the exponential function through +the points \( ($x0,$y0) \) and \( ($x1,$y1) \) graphed below. $BR \( y = \) \{ ans_rule(35) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR $BCENTER @@ -79,16 +79,16 @@ ANS($answer->cmp() ); $ratio = $y1/$a; SOLUTION(EV3(<<'END_SOLUTION')); -$BR $SPACE $BR +$BR $SPACE $BR $BBOLD SOLUTION $EBOLD -$BR +$BR If the function is exponential, its formula is of the form \( y=ab^x \). Since ($x0,$y0) is on the graph when $BITALIC x $EITALIC = 0, \( y = ab^0 = a = $y0 \). $BR $SPACE $BR Using the other point at ($x1,$y1) we can solve for $BITALIC b${EITALIC}: $BR $SPACE $SPACE $SPACE $SPACE -\( y = ab^x = $a(b)^$x1 = $y1 \) $SPACE so $SPACE +\( y = ab^x = $a(b)^$x1 = $y1 \) $SPACE so $SPACE \( b^$x1 = $y1/$a = $ratio \) $SPACE and $SPACE \( b = ($ratio)^{1/$x1} = $b \) $BR $SPACE $BR The formula is therefore \( y = $a($b)^x \). diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Q22.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Q22.pg index 585f051f26..234ddc48d4 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Q22.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Q22.pg @@ -23,10 +23,10 @@ loadMacros( "PGstandard.pl", "PGgraphmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); - + TEXT(beginproblem()); $showPartialCorrectAnswers = 1; @@ -60,13 +60,13 @@ plot_functions($graph, $f); BEGIN_TEXT -Find a possible formula for the exponential function through +Find a possible formula for the exponential function through the points \( ($x0,$y0r) \) and \( ($x1,$frac1) \) graphed below. $BR $BR \( y = f(x) = \) \{ ans_rule(35) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR $BCENTER @@ -86,32 +86,32 @@ $diff = $x1- $x0; $power = $b**($diff); SOLUTION(EV3(<<'END_SOLUTION')); -$BR $SPACE $BR +$BR $SPACE $BR $BBOLD SOLUTION $EBOLD -$BR +$BR If the function is exponential, its formula is of the form \( y=ab^x \). The points ($x0,$y0r) and ($x1,$frac1) are on the graph so, $BR -$SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE +$SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE \( $y0r = ab^{$x0} \) $BR -$SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE +$SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE \( \frac{$a}{$bot1} = ab^{$x1} \) $BR $SPACE $BR Taking the ratio of the second equation to the first one we have $BR -$SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE +$SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE \( \frac{$a/$bot1}{$y0r} = \frac{ab^$x1}{ab^$x0} \)$BR -$SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE +$SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE \( \frac{1}{$power} = b^$diff \) $BR $BR -$SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE +$SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE \( b = \frac{1}{$b} \). $BR $SPACE $BR Substituting this value of $BITALIC b $EITALIC into the second equation gives $BR -$SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE +$SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE \( \frac{$a}{$bot1} = a \left( \frac{1}{$b} \right)^$x1 \) $BR -$SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE +$SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE \( a = $a \) $BR $SPACE $BR Thus, \( y = $a \left( \frac{1}{$b} \right)^x \). diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Q24.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Q24.pg index 2f12f97f22..0b46abf1b5 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Q24.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Q24.pg @@ -22,10 +22,10 @@ loadMacros( "PGstandard.pl", "PGgraphmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); - + TEXT(beginproblem()); $refreshCachedImages=1; @@ -75,11 +75,11 @@ Find possible formulas for the functions ${BITALIC}f(t),${EITALIC} in blue, and $BR $BR \( f(t) = \) \{ ans_rule(35) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR \( g(t) = \) \{ ans_rule(35) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR $BCENTER @@ -98,9 +98,9 @@ ANS($exp->cmp() ); SOLUTION(EV3(<<'END_SOLUTION')); -$BR $SPACE $BR +$BR $SPACE $BR $BBOLD SOLUTION $EBOLD -$BR +$BR a) Assuming $BITALIC f(t) $EITALIC is linear, we have $BITALIC f(t)=b+mt $EITALIC where \( f($x0)=$y0 \) and \( f($x1)=$y1 \). $SPACE This gives $BR $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Q27.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Q27.pg index af4066cf68..db7d57282e 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Q27.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Q27.pg @@ -19,16 +19,16 @@ ## KEYWORDS('exponential functions','annual growth rate','linear growth') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "parserPopUp.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); - + TEXT(beginproblem()); # standard preamble to each problem. Context("Numeric"); @@ -58,7 +58,7 @@ if ($k == 0){ $y[$i] = $y[$i-1]+$m*($x[$i]-$x[$i-1]); $diff[$i-1] = $y[$i] - $y[$i-1]; $ratio[$i-1] = $y[$i]/$y[$i-1]; - $int = $y[0] - $m*$x[0]; + $int = $y[0] - $m*$x[0]; $ans = "Linear"; $form = "$m x + $int" } } elsif ($k == 1){ for ($i = 1; $i <= 4; $i++){ @@ -83,19 +83,19 @@ $y_wr = round($y[2]*$b*1000)/1000; $b_sq = round($b**2*1000)/1000; @reason = ("Notice that when \( \triangle x = $dx_sm \), \( \triangle f = $diff[0] \) and when \( \triangle x = $dx_lg \), \( \triangle f = $diff[3] \). Although the difference in consecutive function values is not constant, since the difference in consecutive $BITALIC x $EITALIC values is not constant either, this does not imply the function is not linear. When the change in $BITALIC x $EITALIC doubles, the change in consecutive values of the function also doubles. So indeed there is a constant rate of change $BR -$SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE +$SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE \( m = \frac{ \triangle f }{ \triangle x} = $m \). $BR From this we can compute the value for $BITALIC b $EITALIC $BR -$SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE +$SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE \( b = $y[0] - ($m)$x[0] = $int \) $BR Thus the equation for the line is \( f(x) = $m x + $int \).", "Notice that when \( \triangle x = $dx_sm \), the ratio of consecutive values of the function is approximately $b, while when \( \triangle x = $dx_lg \), the ratio of consecutive values of the function is approximately $b_sq. Although the ratio in consecutive function values is not constant, since the difference in consecutive $BITALIC x $EITALIC values is not constant either, this does not imply the function is not exponential. When the change in $BITALIC x $EITALIC doubles, the ratio of consecutive values of the function is squared, \( $b_sq \approx ($b)^2 \). So indeed there is a constant PERCENTAGE rate of change. Using the ratio method along with the points ($x[0], $y[0]) and ($x[1], $y[1]) to compute the growth factor we get: $BR -$SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE +$SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE \( b = \left( \frac{$y[1]}{$y[0]} \right)^{1/$dx_sm} \approx $b_eq \). $BR From this we can compute the value for $BITALIC a $EITALIC $BR -$SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE +$SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE \( a = $y[0] \cdot ($b_eq)^{-$x[0]} \approx $a \) $BR Thus the equation for the exponential function is \( f(x) = $a($b_eq)^x \).", @@ -118,7 +118,7 @@ $BR If the function is linear or exponential, write a formula for it below. If the function is neither, enter ${BTT}NONE${ETT}. $BR \( f(x) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT ANS($popup->cmp() ); @@ -129,9 +129,9 @@ ANS(Compute("$form")->cmp() ); SOLUTION(EV3(<<'END_SOLUTION')); -$BR $SPACE $BR +$BR $SPACE $BR $BBOLD SOLUTION $EBOLD -$BR +$BR If a function is linear, a constant change $BITALIC x $EITALIC will lead to a constant change in $BITALIC y${EITALIC}. If a function is exponential, a constant change $BITALIC x $EITALIC will leads to a constant ratio in successive $BITALIC y${EITALIC} values. You need to be careful in checking the values in this table since the change in $BITALIC x $EITALIC values is not constant. The change in the first three $BITALIC x $EITALIC values is $dx_sm, and then this change doubles to $dx_lg. $BR $SPACE $BR Looking at the DIFFERENCE of consecutive terms we see: @@ -167,7 +167,7 @@ $reason[$k] $BR END_SOLUTION - + ; ENDDOCUMENT(); diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Q32.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Q32.pg index 2c97fd4eca..422da9aefe 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Q32.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Q32.pg @@ -32,7 +32,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -59,12 +59,12 @@ $PAR (a) If the population decreases linearly and the decrease is $r1${PERCENT} in the first year, what will the town's population be in 10 years? $BR \{ ans_rule(30) \} people. (Round to the nearest person and do not include commas in your answer.) -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $PAR (b) If the population decreases exponentially at a rate of $r1${PERCENT} a year, what will the town's population be in 10 years? $BR \{ ans_rule(30) \} people. (Round to the nearest person and do not include commas in your answer.) -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Q34.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Q34.pg index 0deb5e4110..9e77798cc4 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Q34.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Q34.pg @@ -32,7 +32,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -75,22 +75,22 @@ $PAR (a) Write \( N \) as a linear function of \( t \). Use exact values in your formula, not decimal approximations. $BR \( N(t) = \) \{ ans_rule(35) \} million people -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $PAR (b) Write \( N \) as an exponential function of \( t \). Use exact values in your formula, not decimal approximations. $BR \( N(t) = \) \{ ans_rule(35) \} million people -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $PAR (c) How many asthma sufferers are predicted worldwide in the year $year with the linear model? $BR \{ ans_rule(30) \} million people. (Round to the nearest 0.01 million people.) -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $PAR (d) How many asthma sufferers are predicted worldwide in the year $year with the exponential model? $BR \{ ans_rule(30) \} million people. (Round to the nearest 0.01 million people.) -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Q37.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Q37.pg index 5edee72352..e3f95c96dc 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Q37.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Q37.pg @@ -18,16 +18,16 @@ ## Problem1('37') ## KEYWORDS('exponential functions','annual growth rate','linear growth') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "PGgraphmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); - + TEXT(beginproblem()); # standard preamble to each problem. Context("Numeric")->variables->are(t=>"Real"); @@ -53,14 +53,14 @@ $BR tree snakes per square mile on Guam \( t \) years after \( 1940 \). $BR \( N = \) \{ ans_rule(35) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR (b) On average, what was the annual percent increase in the population during -this period? +this period? $BR \{ ans_rule(35) \} ${PERCENT} (Round to nearest 0.01${PERCENT}) -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT ANS(Compute("$eq")->cmp() ); @@ -72,17 +72,17 @@ ANS(Compute("$annual")->cmp() ); $quot = $end/10; SOLUTION(EV3(<<'END_SOLUTION')); -$BR $SPACE $BR +$BR $SPACE $BR $BBOLD SOLUTION $EBOLD -$BR +$BR Since $BITALIC N $EITALIC = 10 when $BITALIC t $EITALIC = 0, we use \( N = 10b^t \) for some base $BITALIC b${EITALIC}. Since $BITALIC N $EITALIC = $end when $BITALIC t $EITALIC = $t, we have $BR -$SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE +$SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE \( N = 10b^t \) $BR -$SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE +$SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE \( $end = 10b^{$t} \) $BR -$SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE +$SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE \( b^{$time} = {{$end} \over {10}} = $quot \) $BR -$SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE +$SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE \( b = ($quot)^{1/$t} \approx $b \). $BR An exponential formula for the brown tree snake population is \( N = 10($b)^t \). diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Q40.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Q40.pg index d172dbdae2..d017b981f5 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Q40.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec2/Q40.pg @@ -17,15 +17,15 @@ ## Problem1(40) ## KEYWORDS('exponential functions','annual growth rate','linear growth') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); - + TEXT(beginproblem()); # standard preamble to each problem. Context("Numeric"); @@ -45,23 +45,23 @@ BEGIN_TEXT On November 27, 1993, the ${BITALIC}New York Times${EITALIC} reported that wildlife biologists have found a direct link between the increase in the human population in Florida and the decline of the local black bear population. From 1953 to 1993, the human population increased, on average, at a rate of 8$PERCENT per year, while the black bear population decreased at a rate of 6$PERCENT per year. In 1953 the black bear population was 11,000. $BR $BR -(a) The 1993 human population of Florida was 13 million. What was the human population in 1953? +(a) The 1993 human population of Florida was 13 million. What was the human population in 1953? $BR \{ ans_rule(30) \} people (Round to nearest whole person. Do not include commas in your answer.) -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR $BR -(b) Find the black bear population for 1993. +(b) Find the black bear population for 1993. $BR \{ ans_rule(30) \} bears (Round to nearest whole bear. Do not include commas in your answer.) -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR $BR (c) Had this trend continued, when would the black bear population have -numbered less than $bear? +numbered less than $bear? $BR In the year \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT ANS(Compute("$ans_a")->cmp(tolerance=>2000,tolType=>"absolute") ); @@ -76,30 +76,30 @@ ANS(Compute("$ans_c")->cmp() ); $quot = round($bear/11000*1000000)/1000000; SOLUTION(EV3(<<'END_SOLUTION')); -$BR $SPACE $BR +$BR $SPACE $BR $BBOLD SOLUTION $EBOLD -$BR +$BR a) Since the human population is growing by a certain percent each year, it can be described by the formula \( P=ab^t \). If $BITALIC t $EITALIC is the number of years since 1953, then $BITALIC a $EITALIC represents the population in 1953. If the growth rate is 8$PERCENT per year, then the growth factor is \( b = 1+.08 =1.08 \). Thus, \( P = a (1.08)^t \). We know that in 1993 ($BITALIC t $EITALIC =40) the population was 13 million, so $BR -$SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE +$SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE \( 13000000 = a(1.08)^{40} \) $BR -$SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE +$SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE \( a = \frac{13000000}{1.08^{40}} \approx 598,402 \). $BR -Therefore in 1953, the population of humans in Florida was about 600,000 people. +Therefore in 1953, the population of humans in Florida was about 600,000 people. $BR $SPACE $BR b) In 1953 ($BITALIC t $EITALIC =0), the bear population was 11,000, so \( a=11,000 \). The population has been decreasing at a rate of 6$PERCENT per year, so the decay factor \( b = 1 - 0.06 = 0.94 \). In 1993, $BITALIC t $EITALIC =40, so the population of black bears is $BR -$SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE +$SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE \( P=(11000)(0.94)^{40} \approx 926 \) $BR $SPACE $BR c) To find the year $BITALIC t $EITALIC when the bear population would be $bear, we set $BITALIC P $EITALIC equal to $bear in the equation found in part (b) and get an equation involving $BITALIC t $EITALIC: $BR -$SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE +$SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE \( P = (11000)(0.94)^t \) $BR -$SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE +$SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE \( $bear = (11000)(0.94)^t \) $BR -$SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE +$SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE \( \frac{$bear}{11000} = (0.94)^t \) $BR -$SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE +$SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE \( $quot \approx (0.94)^t \). $BR By looking at the intersection of the graphs \( P= $quot \) and \( P=(0.94)^t \), or by trial and error, we find that \( t \approx $check \) years. Our model predicts that in $time years from 1953, which is the year $ans_c, the population of black bears would fall below $bear. diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec3/Q14.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec3/Q14.pg index 8ad889a512..e719957a1b 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec3/Q14.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec3/Q14.pg @@ -35,7 +35,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserImplicitPlane.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -77,7 +77,7 @@ $BR$BR Enter ${BTT}NONE${ETT} if there is no horizontal asymptote (that is, if the graph goes to \( \pm \infty \) as $limit[$j]). Otherwise enter an equation for the line that is the horizontal asymptote. $PAR The horizontal asymptote has equation \{ ans_rule(10) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec3/Q33.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec3/Q33.pg index 4f4df61aeb..84e4079b3d 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec3/Q33.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec3/Q33.pg @@ -21,16 +21,16 @@ #################################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); -TEXT(beginproblem()); +TEXT(beginproblem()); ###################################### @@ -60,17 +60,17 @@ BEGIN_TEXT Find the long run behavior of each of the following functions. If the function goes to \( \infty \) or \( - \infty \) enter INFINITY or - INFINITY respectively. $BR $BR -(a) As \(x \longrightarrow \infty\), \(\ \ $a($b)^x \longrightarrow \) -\{ ans_rule(20) \} +(a) As \(x \longrightarrow \infty\), \(\ \ $a($b)^x \longrightarrow \) +\{ ans_rule(20) \} $BR $BR -(b) As \(t \longrightarrow - \infty\), \(\ \ $c($d)^t \longrightarrow \) +(b) As \(t \longrightarrow - \infty\), \(\ \ $c($d)^t \longrightarrow \) \{ ans_rule(20) \} $BR $BR -(c) As \(t \longrightarrow \infty\), \(\ \ $m($p $sign[$i] ($q)^t) \longrightarrow \) +(c) As \(t \longrightarrow \infty\), \(\ \ $m($p $sign[$i] ($q)^t) \longrightarrow \) \{ ans_rule(20) \} END_TEXT @@ -95,9 +95,9 @@ ANS($answerc->cmp() ); # Solution SOLUTION(EV3(<<'END_SOLUTION')); -$BR $SPACE $BR +$BR $SPACE $BR $BBOLD SOLUTION $EBOLD -$BR +$BR a) \( \displaystyle \lim_{x \to \infty} $a($b)^x = 0 \) $BR $SPACE $BR b) \( \displaystyle \lim_{t \to -\infty} $c($d)^t=0 \) @@ -105,7 +105,7 @@ $BR $SPACE $BR c) \( \displaystyle \lim_{t \to \infty} $m ($p $sign[$i] ($q)^t) = $m ($p $sign[$i] 0)= $answerc \) $BR END_SOLUTION - + ; ENDDOCUMENT(); diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec4/Q12.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec4/Q12.pg index 90131f3315..771a7be483 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec4/Q12.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec4/Q12.pg @@ -32,7 +32,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec4/Q13.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec4/Q13.pg index 2bbe30c8a1..a058bd9211 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec4/Q13.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec4/Q13.pg @@ -35,7 +35,7 @@ loadMacros( "PGgraphmacros.pl", "extraAnswerEvaluators.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -58,7 +58,7 @@ BEGIN_TEXT Compute the following limit. If the limit goes to \( \infty \) or \( - \infty \) enter INFINITY or -INFINITY, respectively. $PAR \( \displaystyle \lim_{t \to \infty} \left( $a[1]e^{$r[1] t} + $h[1] \right) = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("limits") \} +\{ helpLink("limits") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec4/Q18.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec4/Q18.pg index 10f5d155b6..cc6c14ee4a 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec4/Q18.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec4/Q18.pg @@ -31,7 +31,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -59,12 +59,12 @@ $PAR (a) an annual growth rate of $r${PERCENT}? \{ ans_rule(10) \} million people ${BITALIC}(Round your answer to the nearest 0.001 million.)$EITALIC -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $PAR (b) a continuous growth rate of $r$PERCENT per year? \{ ans_rule(10) \} million people ${BITALIC}(Round your answer to the nearest 0.001 million.)$EITALIC -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; @@ -85,7 +85,7 @@ $BR a) The population, \( P \), in millions, is given by \( P=$p($year_b)^t \), so a century later \[ P = $p($year_b)^{100} \approx $year_r \mbox{ million people.} \] $PAR -b) The population, \( P \), in millions, is given by \( P = $p e^{$dec t} \), so a century later +b) The population, \( P \), in millions, is given by \( P = $p e^{$dec t} \), so a century later \[ P = $p e^{$dec(100)} \approx $cont_r \mbox{ million people.} \] END_SOLUTION diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec4/Q19.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec4/Q19.pg index 286d90a270..7197b772e0 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec4/Q19.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec4/Q19.pg @@ -32,7 +32,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -59,12 +59,12 @@ $PAR $BR \( P(t) = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $PAR (b) By what percent does the population increase each year? $BR \{ ans_rule(10) \} $PERCENT (round to 0.001${PERCENT}) -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec4/Q20.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec4/Q20.pg index 3d84e75782..bad56d73bc 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec4/Q20.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec4/Q20.pg @@ -33,7 +33,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -58,13 +58,13 @@ $PAR (a) Find a formula for \(P(t)\), the population in \(t\) years. $BR \( P(t) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $PAR (b) By what percent does the population shrink each year? $BR \{ ans_rule(10) \} $PERCENT ${BITALIC}(Round to the nearest 0.001${PERCENT})${EITALIC} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec4/Q22.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec4/Q22.pg index d0ff7f4f49..0e664f7a34 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec4/Q22.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec4/Q22.pg @@ -18,16 +18,16 @@ ## Problem1('22') ## KEYWORDS('exponential functions','continuous growth','natural base','e') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "PGgraphmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); - + TEXT(beginproblem()); # standard preamble to each problem. Context("Numeric")->variables->are(t=>"Real"); @@ -51,14 +51,14 @@ $BR (a) Write a formula for ${BITALIC}W,${EITALIC} the GWP (in trillions of dollars), as a function of years, ${BITALIC}t,${EITALIC} since 2004. $BR \( W(t) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR -(b) Estimate the value of ${BITALIC}t${EITALIC} when the GWP is predicted to reach $amt trillion dollars. +(b) Estimate the value of ${BITALIC}t${EITALIC} when the GWP is predicted to reach $amt trillion dollars. $BR \( t = \) \{ ans_rule(15) \} (Round to the nearest 0.1 years.) -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT ANS(Compute("$ans")->cmp() ); @@ -77,24 +77,24 @@ $graph->lb(new Label(-.2,$amt,$amt,'black','right','bottom')); $graph->lb(new Label($t,$amt,"($t,$amt)",'black','right','bottom')); $point = closed_circle( $t,$amt, black ); $graph -> stamps($point); -plot_functions( $graph, $f, $g); +plot_functions( $graph, $f, $g); $fig = image(insertGraph($graph), width => 200, height => 200, tex_size => 500); SOLUTION(EV3(<<'END_SOLUTION')); -$BR $SPACE $BR +$BR $SPACE $BR $BBOLD SOLUTION $EBOLD -$BR +$BR a) We have \( W = 54.7e^{0.038t} \). $BR $SPACE $BR -b) We see in the figure below that $BITALIC W $EITALIC = $amt at approximately $BITALIC t $EITALIC = $t years. +b) We see in the figure below that $BITALIC W $EITALIC = $amt at approximately $BITALIC t $EITALIC = $t years. $BR $BCENTER $fig $ECENTER $BR END_SOLUTION - + ; ENDDOCUMENT(); diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec4/Q23.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec4/Q23.pg index 057dded181..7bdff43be2 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec4/Q23.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap3Sec4/Q23.pg @@ -33,7 +33,7 @@ loadMacros( "PGstandard.pl", "PGgraphmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -69,17 +69,17 @@ $PAR (a) Write an exponential formula for world poultry production, \(P\), in million tons, as a function of the number of years, \(t\), since 2004. $BR \( P = \) \{ ans_rule(25) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $PAR (b) Use the formula to estimate world poultry production in the year $year. $BR \{ ans_rule(10) \} million tons (Round to the nearest 0.001.) -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $PAR (c) Use a graph to estimate the year in which world poultry production goes over $amt million tons. $BR In the year \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Review/Q35.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Review/Q35.pg index 4c7ced0607..049f0a8a43 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Review/Q35.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Review/Q35.pg @@ -36,7 +36,7 @@ loadMacros( "extraAnswerEvaluators.pl", "MathObjects.pl", "contextInequalities.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -72,7 +72,7 @@ BEGIN_TEXT What is the domain of \( y= \ln{($quad)} \) ? $BR -domain: \{ ans_rule(25) \} \{ AnswerFormatHelp("inequalities") \} +domain: \{ ans_rule(25) \} \{ helpLink("inequalities") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec1/Q02.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec1/Q02.pg index 21d656fd39..59b0512b3c 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec1/Q02.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec1/Q02.pg @@ -31,7 +31,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -51,7 +51,7 @@ $PAR \( \log_{10} $N \approx $p \) is equivalent to: $PAR The base \{ ans_rule(6) \} raised to the power of \{ ans_rule(10) \} approximately equals \{ ans_rule(10) \}. -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec1/Q04.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec1/Q04.pg index 7c9ebf1408..5f58743bad 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec1/Q04.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec1/Q04.pg @@ -31,7 +31,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -49,7 +49,7 @@ $PAR \( \ln(q) = x \) is equivalent to: $PAR The base \{ ans_rule(6) \} raised to the power of \{ ans_rule(10) \} equals \{ ans_rule(10) \}. -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec1/Q07.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec1/Q07.pg index 23faf2c583..ca142553cd 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec1/Q07.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec1/Q07.pg @@ -32,7 +32,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -49,7 +49,7 @@ BEGIN_TEXT Rewrite the following statement using a logarithm. Fill in each blank with the appropriate letter or number. $PAR \( 10^{$p} = $N \) is equivalent to \( \log_{10} \big( \) \{ ans_rule(10) \} \( \big) = \) \{ ans_rule(8) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec1/Q08.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec1/Q08.pg index 15e530a99b..2559620079 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec1/Q08.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec1/Q08.pg @@ -31,7 +31,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -48,7 +48,7 @@ BEGIN_TEXT Rewrite the following statement using a natural logarithm. Fill in each blank with the appropriate letter or number. $PAR \( e^{-$r} \approx $b \) is equivalent to \( \ln \big( \) \{ ans_rule(8) \} \( \big) \approx \) \{ ans_rule(8) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec1/Q10.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec1/Q10.pg index 4b08667145..cb891a9d80 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec1/Q10.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec1/Q10.pg @@ -31,7 +31,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -45,7 +45,7 @@ BEGIN_TEXT Rewrite the following statement using a natural logarithm. Fill in each blank with the appropriate letter or number. $PAR \( e^{a} = b \) is equivalent to \( \ln \big( \) \{ ans_rule(8) \} \( \big) = \) \{ ans_rule(8) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec1/Q12.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec1/Q12.pg index 38f4ec2c97..05779ec99e 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec1/Q12.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec1/Q12.pg @@ -32,7 +32,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -53,7 +53,7 @@ BEGIN_TEXT Find the exact solution to the exponential equation \( ( $b1 )^x = $m1 \). ${BITALIC}(Do not give a decimal approximation.)${EITALIC} $PAR \( x = \) \{ ans_rule(35) \} -\{ AnswerFormatHelp("logarithms") \} +\{ helpLink("logarithms") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec1/Q14.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec1/Q14.pg index 6dcb15c268..151c294965 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec1/Q14.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec1/Q14.pg @@ -31,7 +31,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -57,7 +57,7 @@ BEGIN_TEXT Find the exact solution to the exponential equation \( $m2 = $a2( $b2 )^q \). ${BITALIC}(Do not give a decimal approximation.)${EITALIC} $PAR \( q = \) \{ ans_rule(25) \} -\{ AnswerFormatHelp("logarithms") \} +\{ helpLink("logarithms") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec1/Q18.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec1/Q18.pg index 8bb55fb872..35fee65bc3 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec1/Q18.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec1/Q18.pg @@ -18,15 +18,15 @@ ## Problem1('18') ## KEYWORDS('logarithms','natural log','common log','log','ln','properties of logs') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); - + TEXT(beginproblem()); # standard preamble to each problem. Context("Numeric"); @@ -50,7 +50,7 @@ Find the exact solution to the exponential equation \( $m3 = $a3( $b3 )^{$p x} \ $BR $BR \( x = \) \{ ans_rule(25) \} -\{ AnswerFormatHelp("logarithms") \} +\{ helpLink("logarithms") \} END_TEXT @@ -60,9 +60,9 @@ ANS($ans3->cmp(tolType=>'absolute',tolerance=>'0.000000000001') ); SOLUTION(EV3(<<'END_SOLUTION')); -$BR $SPACE $BR +$BR $SPACE $BR $BBOLD SOLUTION $EBOLD -$BR +$BR We begin by dividing both sides by $a3 to isolate the exponent: $BR \( \ \ \ \ \ \ \ ($b3)^{$p x} = \frac{$m3}{$a3} = $simp \). $BR diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec1/Q24.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec1/Q24.pg index fa1f314135..0ca55eb474 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec1/Q24.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec1/Q24.pg @@ -32,7 +32,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -61,13 +61,13 @@ Rewrite each of the following as an expression of \(x\) which does not involve any logs. $PAR (a) \( \log_{10} ($b1^x) = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $PAR (b) \( $b2^{ \log_{10} (x) } = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $PAR (c) \( \log_{10} ($b3^x) = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec1/Q28.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec1/Q28.pg index dc366c8af4..e3323d6466 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec1/Q28.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec1/Q28.pg @@ -34,7 +34,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -65,22 +65,22 @@ BEGIN_TEXT Suppose that \( x = \ln(A) \) and \( y = \ln(B) \). Write the following expressions in terms of \( x \) and \( y \) $BITALIC(so you cannot have an A or B anywhere in your answers).${EITALIC} $PAR (a) \( \ln(AB) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $PAR (b) \( \ln( A^{$p} \cdot \sqrt{B} ) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $PAR (c) \( \displaystyle \frac{ \ln(A) }{ \ln(B) } = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $PAR (d) \( \displaystyle \ln \left( \frac{A}{B} \right) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $PAR (e) \( AB = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $PAR (f) \( \ln(A-B) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec1/Q32.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec1/Q32.pg index e82f2f96ca..cd37379c60 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec1/Q32.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec1/Q32.pg @@ -32,7 +32,7 @@ loadMacros( "PGstandard.pl", "PGgraphmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "PGcourse.pl" ); @@ -90,21 +90,21 @@ $BR. $BR. "(a) What is the initial value of \( Q \) (when \( t = 0 \))? ". $BR. -"\( Q(0) = \) ".ans_rule(10).$SPACE.AnswerFormatHelp("numbers"). +"\( Q(0) = \) ".ans_rule(10).$SPACE.helpLink("numbers"). $BR. $BR. "(b) This quantity decays at a continuous rate of ".$BR. -ans_rule(10).$PERCENT.$SPACE.AnswerFormatHelp("numbers"). +ans_rule(10).$PERCENT.$SPACE.helpLink("numbers"). $BR. $BR. "(c) Use the graph to estimate the value of \( t \) when \( Q = $Q \). ". $BR. -"\( t \approx \) ".ans_rule(10).$SPACE.AnswerFormatHelp("numbers"). +"\( t \approx \) ".ans_rule(10).$SPACE.helpLink("numbers"). $BR. $BR. "(d) Use logs to find the exact value of \( t \) when \( Q = $Q \). ". $BR. -"\( t = \) ".ans_rule(20).$SPACE.AnswerFormatHelp("logarithms"), +"\( t = \) ".ans_rule(20).$SPACE.helpLink("logarithms"), image(insertGraph($graph), width => 400, height => 400, tex_size => 700). $BR.$BCENTER. "(Click on graph to enlarge)". diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec1/Q32V2.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec1/Q32V2.pg index 8fb4bc2c07..2643d73c34 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec1/Q32V2.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec1/Q32V2.pg @@ -32,7 +32,7 @@ loadMacros( "PGstandard.pl", "PGgraphmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "PGcourse.pl" ); @@ -90,17 +90,17 @@ $BR. $BR. "(a) What is the initial value of \( Q \) (when \( t = 0 \))? ". $BR. -"\( Q(0) = \) ".ans_rule(10).$SPACE.AnswerFormatHelp("numbers"). +"\( Q(0) = \) ".ans_rule(10).$SPACE.helpLink("numbers"). $BR. $BR. "(b) Use the graph to estimate the value of \( t \) when \( Q = $Q \). ". $BR. -"\( t \approx \) ".ans_rule(10).$SPACE.AnswerFormatHelp("numbers"). +"\( t \approx \) ".ans_rule(10).$SPACE.helpLink("numbers"). $BR. $BR. "(c) Use logs to find the exact value of \( t \) when \( Q = $Q \). ". $BR. -"\( t = \) ".ans_rule(20).$SPACE.AnswerFormatHelp("logarithms"), +"\( t = \) ".ans_rule(20).$SPACE.helpLink("logarithms"), image(insertGraph($graph), width => 400, height => 400, tex_size => 700). $BR.$BCENTER. "(Click on graph to enlarge)". diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec1/Q35.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec1/Q35.pg index 1a5d7a429d..61d38edd09 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec1/Q35.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec1/Q35.pg @@ -18,15 +18,15 @@ ## Problem1('35') ## KEYWORDS('logarithms','natural log','common log','log','ln','properties of logs') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); - + TEXT(beginproblem()); # standard preamble to each problem. Context("Numeric"); @@ -42,11 +42,11 @@ BEGIN_TEXT Find the exact solution to the equation below. ${BITALIC}(Do not give a decimal approximation.)${EITALIC} $BR $BR -\( $m1( $b1 )^x = ($b2)^x \) +\( $m1( $b1 )^x = ($b2)^x \) $BR $BR \( x = \) \{ ans_rule(35) \} -\{ AnswerFormatHelp("logarithms") \} +\{ helpLink("logarithms") \} END_TEXT @@ -57,9 +57,9 @@ ANS($ans1->cmp(tolType=>'absolute',tolerance=>'0.000000000001') ); #ANS(num_cmp( $ans1,tol=>0.000000000001 ) ); SOLUTION(EV3(<<'END_SOLUTION')); -$BR $SPACE $BR +$BR $SPACE $BR $BBOLD SOLUTION $EBOLD -$BR +$BR First we isolate the exponent: $BR \( \ \ \ \ \ \ \ \ $m1( $b1 )^x = ($b2)^x \) $BR \( \ \ \ \ \ \ \ \ $m1 = \frac{$b2^x}{$b1^x} \) $BR diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec1/Q36.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec1/Q36.pg index d60795d085..2c0a0ec02e 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec1/Q36.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec1/Q36.pg @@ -19,15 +19,15 @@ ## Problem1('36') ## KEYWORDS('logarithms','natural log','common log','log','ln','properties of logs') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); - + TEXT(beginproblem()); # standard preamble to each problem. Context("Numeric"); @@ -45,11 +45,11 @@ BEGIN_TEXT Find the exact solution to the equation below. ${BITALIC}(Do not give a decimal approximation.)${EITALIC} $BR $BR -\( $k \ln{($m x + $b)} = $c \) +\( $k \ln{($m x + $b)} = $c \) $BR $BR \( x = \) \{ ans_rule(35) \} -\{ AnswerFormatHelp("logarithms") \} +\{ helpLink("logarithms") \} END_TEXT @@ -58,9 +58,9 @@ ANS($ans->cmp(tolType=>'absolute',tolerance=>'0.000000000001') ); #ANS(num_cmp( $ans,tol=>0.000000000001 ) ); SOLUTION(EV3(<<'END_SOLUTION')); -$BR $SPACE $BR +$BR $SPACE $BR $BBOLD SOLUTION $EBOLD -$BR +$BR First we isolate the natural log: $BR \( \ \ \ \ \ \ \ $k \ln{($m x + $b)} = $c \) $BR \( \ \ \ \ \ \ \ \ln{($m x + $b)} = \frac{$c}{$k} \) $BR diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec1/Q42.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec1/Q42.pg index 718197d874..2e1c2e7ab6 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec1/Q42.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec1/Q42.pg @@ -18,15 +18,15 @@ ## Problem1('42') ## KEYWORDS('logarithms','natural log','common log','log','ln','properties of logs') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); - + TEXT(beginproblem()); # standard preamble to each problem. Context("Numeric")->variables->are(P=>"Real",Q=>"Real",a=>"Real",b=>"Real"); @@ -47,11 +47,11 @@ BEGIN_TEXT Find the solution to the equation below. Your answer should involve the parameters ${BITALIC}P, Q, a,${EITALIC} and ${BITALIC}b.${EITALIC} $BR $BR -\( Pa^x = Qb^x \) +\( Pa^x = Qb^x \) $BR $BR \( x = \) \{ ans_rule(35) \} -\{ AnswerFormatHelp("logarithms") \} +\{ helpLink("logarithms") \} END_TEXT @@ -62,9 +62,9 @@ ANS($ans->cmp() ); #ANS(fun_cmp( $ans,vars=>['a','b','P','Q'] ) ); SOLUTION(EV3(<<'END_SOLUTION')); -$BR $SPACE $BR +$BR $SPACE $BR $BBOLD SOLUTION $EBOLD -$BR +$BR Taking logs and using the log rules: $BR \( \ \ \ \ \ \ \log{(Pa^x)} = \log{(Qb^x)} \) $BR \( \ \ \ \ \ \ \log{P} + \log{(a^x)} = \log{Q} + \log{(b^x)} \) $BR diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec1/Q45.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec1/Q45.pg index b07ed60d56..95500937ac 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec1/Q45.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec1/Q45.pg @@ -33,7 +33,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -57,7 +57,7 @@ $PAR \[ $a e^{$m x + $b} = $q. \] $PAR \( x = \) \{ ans_rule(35) \} -\{ AnswerFormatHelp("logarithms") \} +\{ helpLink("logarithms") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec1/Q48.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec1/Q48.pg index 5282eba0ea..d50f16bb45 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec1/Q48.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec1/Q48.pg @@ -33,7 +33,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -57,7 +57,7 @@ $PAR \[ \log($a - x) - \log($b + x) = 2. \] $PAR \( x = \) \{ ans_rule(35) \} -\{ AnswerFormatHelp("Number") \} +\{ helpLink("Number") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q01V2.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q01V2.pg index 084df46df9..2f02724413 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q01V2.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q01V2.pg @@ -35,7 +35,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -57,21 +57,21 @@ BEGIN_TEXT Give the growth factor \(b\), the starting value \(a\), the growth rate \(r\), and the value of \(k\) when \(Q\) is written in the form \(Q = a \, e^{k\,t}\). If there is exponential decay, then your growth rate should be negative. -For help entering logarithms, see \{ AnswerFormatHelp("logarithms") \} +For help entering logarithms, see \{ helpLink("logarithms") \} $PAR \( Q = $a \cdot ($b)^t \) has: $PAR \( b = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR \( a = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR \( r = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR \( k = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q02.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q02.pg index b429307792..fbc7af01cc 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q02.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q02.pg @@ -32,7 +32,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -56,18 +56,18 @@ BEGIN_TEXT Give the starting value \(a\), the growth/decay rate \(r\), and the continuous growth/decay rate \(k\). If there is exponential is decay your growth rates should be negative. -For help entering logarithms, see \{ AnswerFormatHelp("logarithms") \} +For help entering logarithms, see \{ helpLink("logarithms") \} $PAR \( Q = $a \cdot (e^{$lnb})^t \) has: $PAR \( a = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR \( r = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR \( k = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q03.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q03.pg index 8d7ffdb592..d6d9268790 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q03.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q03.pg @@ -32,7 +32,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -54,18 +54,18 @@ BEGIN_TEXT Give the starting value \(a\), the growth/decay rate \(r\), and the continuous growth/decay rate \(k\). If there is exponential decay your growth rates should negative. -For help entering logarithms, see \{ AnswerFormatHelp("logarithms") \} +For help entering logarithms, see \{ helpLink("logarithms") \} $PAR \( Q = $a \cdot ($b)^t \) has: $PAR \( a = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR \( r = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR \( k = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q04.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q04.pg index 47c1dbac38..f8969a9787 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q04.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q04.pg @@ -32,7 +32,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -54,18 +54,18 @@ BEGIN_TEXT Give the starting value \(a\), the growth/decay rate \(r\), and the continuous growth/decay rate \(k\). If there is exponential decay your growth rates should negative. -For help entering logarithms, see \{ AnswerFormatHelp("logarithms") \} +For help entering logarithms, see \{ helpLink("logarithms") \} $PAR \( Q = $a \cdot 2^{t/$d} \) has: $PAR \( a = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR \( r = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR \( k = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q04V2.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q04V2.pg index 51d152cba0..0fabdbfae1 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q04V2.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q04V2.pg @@ -35,7 +35,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -58,21 +58,21 @@ BEGIN_TEXT Give the growth factor \(b\), the starting value \(a\), the growth rate \(r\), and the value of \(k\) when \(Q\) is written in the form \(Q = a \, e^{k\,t}\). If there is exponential decay, then your growth rate should be negative. -For help entering logarithms, see \{ AnswerFormatHelp("logarithms") \} +For help entering logarithms, see \{ helpLink("logarithms") \} $PAR \(\displaystyle Q = \frac{1}{$a1} \cdot \sqrt[3]{$d1^t} \) has: $PAR \( b = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR \( a = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR \( r = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR \( k = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q05.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q05.pg index d2795c84fd..91735a129d 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q05.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q05.pg @@ -32,7 +32,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -56,18 +56,18 @@ BEGIN_TEXT Give the starting value \(a\), the growth/decay rate \(r\), and the continuous growth/decay rate \(k\). If there is exponential decay your growth rates should negative. -For help entering logarithms, see \{ AnswerFormatHelp("logarithms") \} +For help entering logarithms, see \{ helpLink("logarithms") \} $PAR \( Q = $a \cdot 10^{$c t} \) has: $PAR \( a = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR \( r = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR \( k = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q07V2.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q07V2.pg index 148d3ca6aa..12a5a956e0 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q07V2.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q07V2.pg @@ -34,7 +34,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -63,21 +63,21 @@ $dec_k = round(-$c/$d*10000)/10000; Context()->texStrings; BEGIN_TEXT Give the growth factor \(b\), the starting value \(a\), the growth rate \(r\), and the value of \(k\) when \(Q\) is written in the form \(Q = ae^{kt}\). If there is exponential decay your growth rate should negative. -For help entering logarithms, see \{ AnswerFormatHelp("logarithms") \} +For help entering logarithms, see \{ helpLink("logarithms") \} $PAR \( \displaystyle Q = $m e^{($p - \frac{$c t}{$d})} \) has: $PAR \( b = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR \( a = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR \( r = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR \( k = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q08.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q08.pg index 3ae562459c..f80dc86e01 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q08.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q08.pg @@ -32,7 +32,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -61,18 +61,18 @@ BEGIN_TEXT Give the starting value \(a\), the growth/decay rate \(r\), and the continuous growth/decay rate \(k\). If there is exponential decay your growth rates should be negative. -For help entering logarithms, see \{ AnswerFormatHelp("logarithms") \} +For help entering logarithms, see \{ helpLink("logarithms") \} $PAR \( Q = 2^{-(t-$c2)/$d2} \) has: $PAR \( a = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR \( r = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR \( k = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q10.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q10.pg index 5c341e62f1..fa6935d5a4 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q10.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q10.pg @@ -33,7 +33,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -59,10 +59,10 @@ Convert the exponential equation \( Q = $a \cdot $base^{$sign[$i]} \) to the form \( Q = ae^{kt} \) and enter the values of \(a\) and \(k\) below. $PAR \( a = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR \( k = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q10V2.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q10V2.pg index 0c000eea50..98ce883089 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q10V2.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q10V2.pg @@ -34,7 +34,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -56,21 +56,21 @@ BEGIN_TEXT Give the growth factor \(b\), the starting value \(a\), the growth rate \(r\), and the value of \(k\) when \(Q\) is written in the form \(Q = a \, e^{k\,t}\). If there is exponential decay, then your growth rate should be negative. -For help entering logarithms, see \{ AnswerFormatHelp("logarithms") \} +For help entering logarithms, see \{ helpLink("logarithms") \} $PAR \( Q = $a \cdot $base^{-t} \) has: $PAR \( b = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR \( a = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR \( r = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR \( k = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q14.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q14.pg index fc6a7a5788..d48a183196 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q14.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q14.pg @@ -32,7 +32,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -55,10 +55,10 @@ to the form \( Q = ab^{t} \) and enter the values of \(a\) and \(b\) below. $PAR \( a = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR \( b = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q14V2.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q14V2.pg index 5c0387df8a..510d5b5209 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q14V2.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q14V2.pg @@ -34,7 +34,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -55,22 +55,22 @@ Context()->texStrings; BEGIN_TEXT Give the growth factor \(b\), the starting value \(a\), the growth rate \(r\), and the value of \(k\) when \(Q\) is written in the form \(Q = ae^{kt}\). If there is exponential is decay, then your growth rate should negative. -For help entering logarithms, see \{ AnswerFormatHelp("logarithms") \} +For help entering logarithms, see \{ helpLink("logarithms") \} $BR \( Q = $a e^{$k t} \) has: $PAR \( b = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR \( a = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR \( r = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR \( k = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q16.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q16.pg index ee5f20c2f1..6f40e7e03d 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q16.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q16.pg @@ -32,7 +32,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -55,10 +55,10 @@ to the form \( Q = ab^{t} \) and enter the values of \(a\) and \(b\) below. $PAR \( a = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR \( b = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q18.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q18.pg index 878c51fce8..7f75b68b0e 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q18.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q18.pg @@ -34,7 +34,7 @@ loadMacros( "PGstandard.pl", "parserPopUp.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -64,7 +64,7 @@ $PAR accurate to at least four decimal places. $BR \( \ b = \) \{ ans_rule(15) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $PAR If \(t\) is measured in years, indicate whether the exponential diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q18V2.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q18V2.pg index 5c55ce349a..9ddedca127 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q18V2.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q18V2.pg @@ -35,7 +35,7 @@ loadMacros( "PGstandard.pl", "parserPopUp.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -65,7 +65,7 @@ $PAR to at least four decimal places. $BR \( \ b = \) \{ ans_rule(15) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $PAR If \(t\) is measured in years, indicate whether the exponential function is growing or decaying and find the annual growth/decay diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q20.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q20.pg index 07d1169ff8..2d5e9598a8 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q20.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q20.pg @@ -34,7 +34,7 @@ loadMacros( "PGstandard.pl", "parserPopUp.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -63,7 +63,7 @@ $PAR to at least four decimal places. $BR \( \ k = \) \{ ans_rule(15) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $PAR If \(t\) is measured in years, indicate whether the exponential function is growing or decaying and find the annual and continuous diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q20V2.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q20V2.pg index fdd1a9657f..2b15e76cde 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q20V2.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q20V2.pg @@ -35,7 +35,7 @@ loadMacros( "PGstandard.pl", "parserPopUp.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -65,7 +65,7 @@ $PAR to at least four decimal places. $BR \( \ k = \) \{ ans_rule(15) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $PAR If \(t\) is measured in years, indicate whether the exponential function is growing or decaying and find the annual and continuous diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q22.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q22.pg index 93370a0220..7771bec023 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q22.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q22.pg @@ -31,7 +31,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -54,7 +54,7 @@ Find the doubling time for a city whose population is growing by $r$PERCENT per year. $PAR The doubling time is \{ ans_rule(10) \} years. -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q26.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q26.pg index b60c1bf1e3..49bd76efdd 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q26.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q26.pg @@ -31,7 +31,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -52,7 +52,7 @@ BEGIN_TEXT Find the half-life of an element which decays by $r$PERCENT each day. $PAR The half-life is \{ ans_rule(10) \} days. -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q30.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q30.pg index 910522b338..cc1cf6a6da 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q30.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q30.pg @@ -18,15 +18,15 @@ ## Problem1('30') ## KEYWORDS('logarithms','log','ln','half-life','double-time','continuous growth rate') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); - + TEXT(beginproblem()); # standard preamble to each problem. Context("Numeric")->variables->are(t=>"Real"); @@ -45,11 +45,11 @@ $ans = Compute("$a($b)^t"); BEGIN_TEXT -Find a formula for the exponential function \( V=h(t) \) that gives the value of an item initially worth ${DOLLAR}$a that loses half its value every $h years. +Find a formula for the exponential function \( V=h(t) \) that gives the value of an item initially worth ${DOLLAR}$a that loses half its value every $h years. $BR $BR \( h(t) = \) \{ ans_rule(35) \} dollars. -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} ${BITALIC}(Do not enter any commas in your formula.)${EITALIC} END_TEXT @@ -59,9 +59,9 @@ ANS($ans->cmp() ); #ANS(fun_cmp($ans,vars=>'t') ); SOLUTION(EV3(<<'END_SOLUTION')); -$BR $SPACE $BR +$BR $SPACE $BR $BBOLD SOLUTION $EBOLD -$BR +$BR The starting value is $BITALIC a $EITALIC = $a. After $h years, the value halves to ${DOLLAR}$half, so $BR $SPACE $BR \( \ \ \ \ \ \ ($a)(b)^{$h} = $half \) $BR \( \ \ \ \ \ \ b^{$h} = \frac{1}{2} \) $BR diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q32.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q32.pg index d78e5c1e4c..1dd98bfd51 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q32.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q32.pg @@ -31,7 +31,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -57,10 +57,10 @@ A population doubles every $d years. Assuming exponential growth find the following: $PAR (a) The annual growth rate: \{ ans_rule(10) \}$PERCENT -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $PAR (b) The continuous growth rate is \{ ans_rule(10) \}$PERCENT per year $SPACE -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q36.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q36.pg index 2664b139fc..0954ccb283 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q36.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q36.pg @@ -19,15 +19,15 @@ ## Problem1('36') ## KEYWORDS('logarithms','log','ln','half-life','double-time','continuous growth rate') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); - + TEXT(beginproblem()); # standard preamble to each problem. @@ -44,11 +44,11 @@ $ans = Compute("ln($a2/$a1)/ln($b1^$p/$b2)"); BEGIN_TEXT If possible, solve the equation \( $a1($b1)^{$p x} = $a2($b2)^x \). -Give exact answers, not decimals. If there is more than one solution, enter a comma separated list of answers, and enter ${BITALIC}NONE${EITALIC} if there are no solutions. +Give exact answers, not decimals. If there is more than one solution, enter a comma separated list of answers, and enter ${BITALIC}NONE${EITALIC} if there are no solutions. $BR $BR \( x = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("logarithms") \} +\{ helpLink("logarithms") \} END_TEXT @@ -57,9 +57,9 @@ ANS($ans->cmp(tolerance=>0.0000000001,tolType=>"absolute",showTypeWarnings=>0) ) #ANS(num_cmp($ans,tol=>0.0000000001) ); SOLUTION(EV3(<<'END_SOLUTION')); -$BR $SPACE $BR +$BR $SPACE $BR $BBOLD SOLUTION $EBOLD -$BR +$BR We can find an exact solution to this equation. Get all expressions containing $BITALIC x $EITALIC on one side of the equation and everything else on the other side. To do this we divide both sides of the equation by \( $a1 \) and by \( ($b2)^x \). $BR $SPACE $BR \( \ \ \ \ \ \ $a1($b1)^{$p x} = $a2 ($b2)^x \) $BR @@ -69,7 +69,7 @@ $BR $SPACE $BR \( \ \ \ \ \ \ \ln{ \left( \frac{($b1)^{$p}}{$b2} \right)^x } = \ln{ \left( \frac{$a2}{$a1} \right) } \) $BR \( \ \ \ \ \ \ x \ \ln{ \left( \frac{($b1)^{$p}}{$b2} \right)} = \ln{ \left( \frac{$a2}{$a1} \right) } \) $BR \( \ \ \ \ \ \ x = \frac{ \ln{ \left( \frac{$a2}{$a1} \right) }}{ \ln{ \left( \frac{($b1)^{$p}}{$b2} \right)}} \) -$BR +$BR END_SOLUTION ; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q39.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q39.pg index 96e50ca1a7..c653f98dc5 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q39.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q39.pg @@ -17,16 +17,16 @@ ## Problem1('39') ## KEYWORDS('logarithms','log','ln','half-life','double-time','continuous growth rate') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "PGgraphmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); - + TEXT(beginproblem()); # standard preamble to each problem. Context("Numeric")->variables->are(t=>"Real"); @@ -42,11 +42,11 @@ $ans = Compute("NONE"); BEGIN_TEXT If possible, solve the equation \( $a($b)^{t} = t+$k \). -Give exact answers, not decimals. If there is more than one solution, enter a comma separated list of answers, and enter ${BITALIC}NONE${EITALIC} if there are no solutions. +Give exact answers, not decimals. If there is more than one solution, enter a comma separated list of answers, and enter ${BITALIC}NONE${EITALIC} if there are no solutions. $BR $BR \( t = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("logarithms") \} +\{ helpLink("logarithms") \} END_TEXT @@ -61,21 +61,21 @@ $graph = init_graph(-10,-5,10,50,'axes'=>[0,0],'ticks'=>[1,1]); $graph->lb('reset'); $graph->lb(new Label(5,45,"y=$a($b)^t",'blue','right','top')); $graph->lb(new Label(8,15,"y=t+$k",'red','right','top')); -plot_functions( $graph, $f,$g); +plot_functions( $graph, $f,$g); $fig = image(insertGraph($graph), width => 250, height => 250, tex_size => 600); SOLUTION(EV3(<<'END_SOLUTION')); -$BR $SPACE $BR +$BR $SPACE $BR $BBOLD SOLUTION $EBOLD -$BR +$BR Since the variable is both in a power and in a linear expression, we cannot use logarithms to solve this equation. Instead, we graph the two functions and try to find the point(s) of intersection. The graph of the functions \( y=$a($b)^t \) and \( y=t+$k \) (graphed in blue and red respectively) are shown in the figure blue: $BR $SPACE $BR $BCENTER $fig $ECENTER $BR -The figure shows that there is no point of intersection. The concavity of the graphs ensures that there is no point of intersection outside the window shown. Thus, there is no solution. -$BR +The figure shows that there is no point of intersection. The concavity of the graphs ensures that there is no point of intersection outside the window shown. Thus, there is no solution. +$BR END_SOLUTION ; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q44.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q44.pg index c35fe9a6a2..9dd6f4411a 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q44.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q44.pg @@ -17,15 +17,15 @@ ## Problem1('44') ## KEYWORDS('logarithms','log','ln','half-life','double-time','continuous growth rate') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); - + TEXT(beginproblem()); # standard preamble to each problem. Context("Numeric"); @@ -49,15 +49,15 @@ The voltage ${BITALIC}V${EITALIC} across a charged capacitor is given by \( V(t) $BR $BR (a) What is the voltage after $t seconds? \{ ans_rule(10) \} volts (round to the nearest 0.001 volts) -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR $BR (b) When will the voltage be 1? In \{ ans_rule(10) \} seconds (round to the nearest 0.01 sec.) -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR $BR (c) By what percent does the voltage decrease each second? \{ ans_rule(10) \} $PERCENT (round to the nearest 0.001${PERCENT}) -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT @@ -70,11 +70,11 @@ ANS(Real("$r")->cmp(tolerance=>0.0006,tolType=>"absolute") ); #ANS(num_cmp($r,tol=>0.0006) ); SOLUTION(EV3(<<'END_SOLUTION')); -$BR $SPACE $BR +$BR $SPACE $BR $BBOLD SOLUTION $EBOLD -$BR +$BR a) We are looking for $BITALIC V${EITALIC}($t): $BR -\( \ \ \ \ \ \ V($t) = $a e^{$k($t)} = $ae^{$prod} \approx $V \hbox{ volts}. \) +\( \ \ \ \ \ \ V($t) = $a e^{$k($t)} = $ae^{$prod} \approx $V \hbox{ volts}. \) $BR $SPACE $BR b) To find when the voltage is 1, we want the value of $BITALIC t $EITALIC for which $BITALIC V${EITALIC}(${BITALIC}t${EITALIC})=1. Since \( V(t)=$a e^{$k t} \), $BR $SPACE $BR \( \ \ \ \ \ \ $a e^{$k t} = 1 \) $BR diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q46.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q46.pg index c6faf9bed9..339f0fbab2 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q46.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q46.pg @@ -19,15 +19,15 @@ ## KEYWORDS('logarithms','log','ln','half-life','double-time','continuous growth rate') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); - + TEXT(beginproblem()); # standard preamble to each problem. Context("Numeric")->variables->are(t=>"Real"); @@ -45,20 +45,20 @@ BEGIN_TEXT In July 2005, the internet was linked by a global network of about $later million host computers. The number of host computers has been growing approximately exponentially and was about $a million in July 1998. $BR $BR -(a) Find a formula for the number, ${BITALIC}N,${EITALIC} of internet host computers (in millions of computers) as an exponential function of ${BITALIC}t,${EITALIC} the number of years since July 1998, using the continuous exponential model \( N(t) = ae^{kt} \). What are the values of ${BITALIC}a${EITALIC} and ${BITALIC}k${EITALIC} in your model? +(a) Find a formula for the number, ${BITALIC}N,${EITALIC} of internet host computers (in millions of computers) as an exponential function of ${BITALIC}t,${EITALIC} the number of years since July 1998, using the continuous exponential model \( N(t) = ae^{kt} \). What are the values of ${BITALIC}a${EITALIC} and ${BITALIC}k${EITALIC} in your model? $BR \( a = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR -\( k = \) \{ ans_rule(10) \} (Accurate to four decimal places) +\( k = \) \{ ans_rule(10) \} (Accurate to four decimal places) $BR $BR -(b) Based on your equation above, what is the continuous annual percentage growth rate of ${BITALIC}N${EITALIC}? Round your answer to the nearest 0.01${PERCENT}. +(b) Based on your equation above, what is the continuous annual percentage growth rate of ${BITALIC}N${EITALIC}? Round your answer to the nearest 0.01${PERCENT}. $BR -By \{ ans_rule(10) \} $PERCENT +By \{ ans_rule(10) \} $PERCENT $BR $BR -(c) What is the doubling time of ${BITALIC}N${EITALIC}? +(c) What is the doubling time of ${BITALIC}N${EITALIC}? \{ ans_rule(10) \} years (round your answer to the nearest 0.001 years) END_TEXT @@ -76,9 +76,9 @@ ANS(Real("$d")->cmp(tolerance=>0.0006,tolType=>"absolute") ); $dbl_a = 2*$a; SOLUTION(EV3(<<'END_SOLUTION')); -$BR $SPACE $BR +$BR $SPACE $BR $BBOLD SOLUTION $EBOLD -$BR +$BR a) Since $BITALIC N $EITALIC = $a when $BITALIC t $EITALIC = 0, we have \( N = $a e^{kt} \). We use the fact that $BITALIC N $EITALIC = $later when $BITALIC t $EITALIC = 7 to find $BITALIC k${EITALIC}: $BR $SPACE $BR \( \ \ \ \ \ N = $a e^{kt} \) $BR \( \ \ \ \ \ $later = $a e^{k \cdot 7} \) $BR @@ -101,7 +101,7 @@ The number of internet host computers is doubling every $d years. $BR END_SOLUTION - + ; ENDDOCUMENT(); diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q46V2.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q46V2.pg index b357e6f572..295d9090ef 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q46V2.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q46V2.pg @@ -21,15 +21,15 @@ # This problem has been modified by removing continuous growth terminology. # Updated Sept 2010: This version uses exact answers and introduces rounding only in answer checking -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); - + TEXT(beginproblem()); # standard preamble to each problem. Context("Numeric")->variables->are(t=>"Real"); @@ -48,20 +48,20 @@ BEGIN_TEXT In July 2005, the internet was linked by a global network of about $later million host computers. The number of host computers has been growing approximately exponentially and was about $a million in July 1998. $BR $BR -(a) Find a formula for the number, ${BITALIC}N,${EITALIC} of internet host computers (in millions of computers) as an exponential function of ${BITALIC}t,${EITALIC} the number of years since July 1998, using exponential function of the form \( N(t) = ae^{kt} \). What are the values of ${BITALIC}a${EITALIC} and ${BITALIC}k${EITALIC} in your model? +(a) Find a formula for the number, ${BITALIC}N,${EITALIC} of internet host computers (in millions of computers) as an exponential function of ${BITALIC}t,${EITALIC} the number of years since July 1998, using exponential function of the form \( N(t) = ae^{kt} \). What are the values of ${BITALIC}a${EITALIC} and ${BITALIC}k${EITALIC} in your model? $BR \( a = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR -\( k = \) \{ ans_rule(30) \} (Either enter the answer in exact form, or a numerical approximation accurate to four decimal places.) +\( k = \) \{ ans_rule(30) \} (Either enter the answer in exact form, or a numerical approximation accurate to four decimal places.) $BR $BR -(b) Based on your equation above, what is the annual percentage growth rate of ${BITALIC}N${EITALIC}? (Enter your answer in exact form, or a numerical approximation that is accurate to 0.01 ${PERCENT}. Do not use approximations before the final answer.) +(b) Based on your equation above, what is the annual percentage growth rate of ${BITALIC}N${EITALIC}? (Enter your answer in exact form, or a numerical approximation that is accurate to 0.01 ${PERCENT}. Do not use approximations before the final answer.) $BR -By \{ ans_rule(30) \} $PERCENT +By \{ ans_rule(30) \} $PERCENT $BR $BR -(c) What is the doubling time of ${BITALIC}N${EITALIC}? +(c) What is the doubling time of ${BITALIC}N${EITALIC}? \{ ans_rule(20) \} years (round your answer to the nearest 0.001 years) END_TEXT @@ -85,9 +85,9 @@ ANS( Real("7*ln(2)/ln($later/$a)") -> cmp(tolerance=>0.0006,tolType=>"absolute") $dbl_a = 2*$a; SOLUTION(EV3(<<'END_SOLUTION')); -$BR $SPACE $BR +$BR $SPACE $BR $BBOLD SOLUTION $EBOLD -$BR +$BR a) Since $BITALIC N $EITALIC = $a when $BITALIC t $EITALIC = 0, we have \( N = $a e^{kt} \). We use the fact that $BITALIC N $EITALIC = $later when $BITALIC t $EITALIC = 7 to find $BITALIC k${EITALIC}: $BR $SPACE $BR \( \ \ \ \ \ N = $a e^{kt} \) $BR \( \ \ \ \ \ $later = $a e^{k \cdot 7} \) $BR @@ -110,7 +110,7 @@ The number of internet host computers is doubling every $d years. $BR END_SOLUTION - + COMMENT('Uses log = logten.'); ENDDOCUMENT(); diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q50.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q50.pg index 91e8b09d2b..ed17668b02 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q50.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q50.pg @@ -31,7 +31,7 @@ loadMacros( "PGstandard.pl", "PGgraphmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "PGcourse.pl" ); @@ -147,18 +147,18 @@ $BR $ECENTER $PAR (a) Find a formula for \( f(x) = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR (b) Find a formula for \( g(x) = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR (c) Find a formula for \( h(x) = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $PAR (d) Find the exact value(s) of \( x \) such that \( f(x)=g(x) \). If there is more than one solution, enter your answers as a comma separated list. $BR \( x = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q55.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q55.pg index 4465e1440f..5a4cf5a931 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q55.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec2/Q55.pg @@ -17,18 +17,18 @@ ## Section1('4.2') ## Problem1('55') ## KEYWORDS('logarithms','log','ln','half-life','double-time','continuous growth rate') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); Context("Numeric"); Context()->strings->add( 'never' => {} ); - + TEXT(beginproblem()); # standard preamble to each problem. @@ -52,7 +52,7 @@ earns $r2$PERCENT annual interest, compounded continuously. Will your friend's $BR $BR They will be equal in about \{ ans_rule(20) \} years (round to nearest whole year). -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT @@ -61,11 +61,11 @@ ANS(Compute($ans_rd)->with(tolType=>'absolute',tolerance=>0.51)->cmp() ); # ANS(num_cmp($ans_rd,tol=>1) ); SOLUTION(EV3(<<'END_SOLUTION')); -$BR $SPACE $BR +$BR $SPACE $BR $BBOLD SOLUTION $EBOLD -$BR -Setting the balances equal, -\[ $a1($b1)^t = $a2 e^{$k t} \] +$BR +Setting the balances equal, +\[ $a1($b1)^t = $a2 e^{$k t} \] \[ \ln{\left( $a1 ($b1)^t \right)} = \ln{ \left( $a2 e^{$k t} \right) } \] \[ \ln{($a1)} + \ln{\left( ($b1)^t \right) } = \ln{($a2)} + \ln{ \left( e^{$k t} \right) } \] \[ \ln{($a1)} + t \ln{($b1)} = \ln{($a2)} + $k t \] diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec3/Q02.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec3/Q02.pg index 380c9ba0a9..bbfd530bd4 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec3/Q02.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec3/Q02.pg @@ -36,7 +36,7 @@ loadMacros( "PGchoicemacros.pl", "extraAnswerEvaluators.pl", "parserAssignment.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -94,17 +94,17 @@ $PAR (a) $eqn[0] has a \{ pop_up_list(["?","horizontal","vertical","none"]) \} asymptote with equation \{ ans_rule(10) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} $PAR (b) $eqn[1] has a \{ pop_up_list(["?","horizontal","vertical","none"]) \} asymptote with equation \{ ans_rule(10) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} $PAR (c) $eqn[2] has a \{ pop_up_list(["?","horizontal","vertical","none"]) \} asymptote with equation \{ ans_rule(10) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} $PAR $BITALIC(Hint: Recall that a horizontal asymptote is expressed by an equation for a horizontal line of the form \(y = k\) and a vertical diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec3/Q06.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec3/Q06.pg index 23b2477690..133c8bee29 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec3/Q06.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec3/Q06.pg @@ -34,7 +34,7 @@ loadMacros( "PGstandard.pl", "PGchoicemacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec3/Q08.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec3/Q08.pg index 98ccb44980..e3fedd5ae3 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec3/Q08.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec3/Q08.pg @@ -33,7 +33,7 @@ loadMacros( "PGchoicemacros.pl", "PGgraphmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "parserAssignment.pl", "PGcourse.pl" @@ -110,11 +110,11 @@ have that type of asymptote. $BR The graph has a vertical asymptote with equation \{ ans_rule(10) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} $BR The graph has a horizontal asymptote with equation \{ ans_rule(10) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} $PAR (b) Determine whether its graph has an x-intercept or a y-intercept. In each answer blank enter a point \( (a,b) \) including parentheses, @@ -122,11 +122,11 @@ or, enter ${BITALIC}NONE${EITALIC} if its graph does not have that type of inter $BR The graph has an \(x\)-intercept at the point \{ ans_rule(10) \} -\{ AnswerFormatHelp("points") \} +\{ helpLink("points") \} $BR The graph has a \(y\)-intercept at the point \{ ans_rule(10) \} -\{ AnswerFormatHelp("points") \} +\{ helpLink("points") \} $PAR (c) Without using a calculator, sketch the graph of this equation on paper, labeling the features above. $PAR diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec3/Q08a.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec3/Q08a.pg index 5a5e798956..8840b072b3 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec3/Q08a.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec3/Q08a.pg @@ -33,7 +33,7 @@ loadMacros( "PGchoicemacros.pl", "PGgraphmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "parserAssignment.pl", "PGcourse.pl" @@ -110,11 +110,11 @@ have that type of asymptote. $BR The graph has a vertical asymptote with equation \{ ans_rule(10) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} $BR The graph has a horizontal asymptote with equation \{ ans_rule(10) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} $PAR (b) Determine whether its graph has an x-intercept or a y-intercept. In each answer blank enter a point \( (a,b) \) including parentheses, @@ -122,11 +122,11 @@ or, enter ${BITALIC}NONE${EITALIC} if its graph does not have that type of inter $BR The graph has an \(x\)-intercept at the point \{ ans_rule(10) \} -\{ AnswerFormatHelp("points") \} +\{ helpLink("points") \} $BR The graph has a \(y\)-intercept at the point \{ ans_rule(10) \} -\{ AnswerFormatHelp("points") \} +\{ helpLink("points") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec3/Q08b.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec3/Q08b.pg index 62b085868f..2c1b204a07 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec3/Q08b.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec3/Q08b.pg @@ -32,7 +32,7 @@ loadMacros( "PGchoicemacros.pl", "PGgraphmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "PGcourse.pl" ); diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec3/Q10.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec3/Q10.pg index f528160ef1..898cbbb3d3 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec3/Q10.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec3/Q10.pg @@ -33,7 +33,7 @@ loadMacros( "PGchoicemacros.pl", "PGgraphmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "parserAssignment.pl", "PGcourse.pl" @@ -107,11 +107,11 @@ have that type of asymptote. $BR The graph has a vertical asymptote with equation \{ ans_rule(10) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} $BR The graph has a horizontal asymptote with equation \{ ans_rule(10) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} $PAR (b) Determine whether its graph has an \(x\)-intercept or a \(y\)-intercept. In each answer blank enter a point \( (a,b) \) including parentheses, @@ -119,11 +119,11 @@ or, enter ${BITALIC}NONE${EITALIC} if its graph does not have that type of inter $BR The graph has an \(x\)-intercept at the point \{ ans_rule(10) \} -\{ AnswerFormatHelp("points") \} +\{ helpLink("points") \} $BR The graph has a \(y\)-intercept at the point \{ ans_rule(10) \} -\{ AnswerFormatHelp("points") \} +\{ helpLink("points") \} $PAR (c) Without using a calculator, sketch a graph of this equation on paper, labeling the features above. $PAR diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec3/Q12.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec3/Q12.pg index 33f772b16c..66ec21da9a 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec3/Q12.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec3/Q12.pg @@ -36,7 +36,7 @@ loadMacros( "PGchoicemacros.pl", "PGgraphmacros.pl", "extraAnswerEvaluators.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "contextInequalities.pl", "MathObjects.pl", @@ -125,7 +125,7 @@ Consider the logarithmic equation \( y = 1 - \ln{($k-x)} \). $PAR (a) The domain of this function is \{ ans_rule(20) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} $PAR (b) Determine whether its graph has a horizontal asymptote or a vertical asymptote. In each answer blank enter an equation \( x = k \) or \( y = k \) @@ -134,11 +134,11 @@ have that type of asymptote. $BR The graph has a vertical asymptote with equation \{ ans_rule(10) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} $BR The graph has a horizontal asymptote with equation \{ ans_rule(10) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} $PAR (c) Determine whether its graph has an \(x\)-intercept or a \(y\)-intercept. In each answer blank enter a point \( (a,b) \) including parentheses, @@ -147,11 +147,11 @@ Enter ${BBOLD}exact${EBOLD} answers, not decimal approximations. $BR The graph has an \(x\)-intercept at the point \{ ans_rule(10) \} -\{ AnswerFormatHelp("points") \} +\{ helpLink("points") \} $BR The graph has a \(y\)-intercept at the point \{ ans_rule(10) \} -\{ AnswerFormatHelp("points") \} +\{ helpLink("points") \} $PAR (d) Without using a calculator, sketch the graph of this equation on paper, labeling the features above. $PAR diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec3/Q14.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec3/Q14.pg index 40d71803ba..1afd3b4ddf 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec3/Q14.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec3/Q14.pg @@ -32,7 +32,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -56,7 +56,7 @@ BEGIN_TEXT Find the hydrogen ion concentration for $sub[$i], with a pH of $amt[$i]. Hint: \( \mbox{pH} = -\log{ \lbrack H^+ \rbrack } \). $PAR \{ ans_rule(20) \} moles per liter -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec3/Q16.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec3/Q16.pg index e0a0b9a9f0..fec32cf8cf 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec3/Q16.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec3/Q16.pg @@ -33,7 +33,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -57,7 +57,7 @@ Find the hydrogen ion concentration for $sub[$i], with a pH of $amt[$i]. Hint: \( pH = -\log{ \lbrack H^+ \rbrack } \). $PAR \{ ans_rule(20) \} moles per liter -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec3/Q18.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec3/Q18.pg index 3d046854ac..3f2e9bc9bd 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec3/Q18.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec3/Q18.pg @@ -34,7 +34,7 @@ loadMacros( "PGstandard.pl", "PGchoicemacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec3/Q28.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec3/Q28.pg index 0c6ce33aa8..4e4c10b10b 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec3/Q28.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec3/Q28.pg @@ -19,15 +19,15 @@ ## Problem1('28') ## KEYWORDS('logarithms','log','ln','asymptote','graph of logarithms') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "contextInequalities.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); - + TEXT(beginproblem()); # standard preamble to each problem. Context("Inequalities"); @@ -60,8 +60,8 @@ BEGIN_TEXT Find the domain of the function \( h(x) = \ln($in) \). $BR $BR -Domain: \{ ans_rule(20) \} -\{ AnswerFormatHelp("inequalities") \} +Domain: \{ ans_rule(20) \} +\{ helpLink("inequalities") \} END_TEXT @@ -82,6 +82,6 @@ $BR $reason[$pick] $BR END_SOLUTION - + COMMENT('Uses log = logten.'); ENDDOCUMENT(); # This should be the last executable line in the problem. diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec3/Q30.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec3/Q30.pg index d94934d2d2..7c5086f0ad 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec3/Q30.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec3/Q30.pg @@ -18,15 +18,15 @@ ## Problem1('30') ## KEYWORDS('logarithms','log','ln','asymptote','graph of logarithms') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "contextInequalities.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); - + TEXT(beginproblem()); # standard preamble to each problem. Context("Inequalities"); @@ -47,8 +47,8 @@ BEGIN_TEXT Find the domain of the function \( f(x) = $f \). $BR $BR -Domain: \{ ans_rule(20) \} -\{ AnswerFormatHelp("inequalities") \} +Domain: \{ ans_rule(20) \} +\{ helpLink("inequalities") \} END_TEXT @@ -65,5 +65,5 @@ We need \( $mini[$pick] > 0 \), which is true as long as \( x > 1 \), so the dom $BR END_SOLUTION -COMMENT('Uses log = logten.'); +COMMENT('Uses log = logten.'); ENDDOCUMENT(); # This should be the last executable line in the problem. diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec3/Q36.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec3/Q36.pg index b0681f00b0..111434e30a 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec3/Q36.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec3/Q36.pg @@ -31,7 +31,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -70,7 +70,7 @@ in terms of the two intensities \( I \) and \( i \). $BR \( D - d = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("logarithms") \} +\{ helpLink("logarithms") \} (Enter ${BITALIC}log10${EITALIC} or ${BITALIC}logten${EITALIC} for the base 10 logarithm.) $PAR @@ -78,7 +78,7 @@ $PAR decibels louder does the sound become? $BR \{ ans_rule(20) \} decibels -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec3/Q37.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec3/Q37.pg index b4cd28769d..3cf8912235 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec3/Q37.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Sec3/Q37.pg @@ -24,10 +24,10 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); - + TEXT(beginproblem()); Context("Numeric")->variables->are(w=>"Real",W=>"Real"); @@ -42,9 +42,9 @@ BEGIN_TEXT The magnitude of an earthquake is measured relative to the strength of a ${LQ}standard${RQ} -earthquake, whose seismic waves are of size -\( W_0 \). The magnitude, \( M \), of an -earthquake with seismic waves of size \( W \) +earthquake, whose seismic waves are of size +\( W_0 \). The magnitude, \( M \), of an +earthquake with seismic waves of size \( W \) is defined to be \( \displaystyle M = \log_{10} \left( \frac{W}{W_0} \right) \). The value \( M \) is called the Richter scale rating of the strength @@ -52,26 +52,26 @@ of the earthquake. $BR $BR (a) Let \( M \) and \( m \) represent the magnitude -of two earthquakes whose seismic waves are of sizes -\( W \) and \( w \), respectively. Using properties of +of two earthquakes whose seismic waves are of sizes +\( W \) and \( w \), respectively. Using properties of logarithms, find a simplified formula for the -difference \( M - m \), in terms of \( W \) and -\( w \). +difference \( M - m \), in terms of \( W \) and +\( w \). $BR \( M - m = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("logarithms") \} -(Enter ${BITALIC}log10${EITALIC} or ${BITALIC}logten${EITALIC} +\{ helpLink("logarithms") \} +(Enter ${BITALIC}log10${EITALIC} or ${BITALIC}logten${EITALIC} for the base 10 logarithm.) $BR $BR -(b) The 1989 earthquake in California had a rating +(b) The 1989 earthquake in California had a rating of $cali on the Richter scale. How many times larger were the seismic waves in the March 2005 earthquake off the coast of Sumatra, which measured $suma on the Richter scale? $BR -\{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ ans_rule(20) \} +\{ helpLink("numbers") \} END_TEXT @@ -80,7 +80,7 @@ $showPartialCorrectAnswers = 1; ANS($ans1->cmp() ); ANS($ans2->cmp() ); - + ; ENDDOCUMENT(); diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Tools/Connally3-4-Tools-21.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Tools/Connally3-4-Tools-21.pg index 946df04621..3a21a9f347 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Tools/Connally3-4-Tools-21.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Tools/Connally3-4-Tools-21.pg @@ -36,7 +36,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -80,7 +80,7 @@ products, quotients, or powers. $PAR \( $expression1 = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("logarithms") \} +\{ helpLink("logarithms") \} $PAR END_TEXT Context()->normalStrings; @@ -90,11 +90,11 @@ Context()->operators->redefine("*"); BEGIN_TEXT \( $expression2 = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("logarithms") \} +\{ helpLink("logarithms") \} $PAR \( $expression3 = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("logarithms") \} +\{ helpLink("logarithms") \} END_TEXT diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Tools/Connally3-4-Tools-22.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Tools/Connally3-4-Tools-22.pg index 45ffcf24f8..9afc92a69e 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Tools/Connally3-4-Tools-22.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Tools/Connally3-4-Tools-22.pg @@ -22,12 +22,12 @@ #################################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -57,15 +57,15 @@ Context()->functions->undefine("sqrt"); BEGIN_TEXT -Using laws of logarithms, write the expression -below using sums and/or differences -of logarithmic expressions which do not contain +Using laws of logarithms, write the expression +below using sums and/or differences +of logarithmic expressions which do not contain the logarithms of products, quotients, or powers. $BR $BR \( $expression = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("logarithms") \} +\{ helpLink("logarithms") \} END_TEXT diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Tools/Connally3-4-Tools-24.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Tools/Connally3-4-Tools-24.pg index 84e9e08969..e4013e5bcb 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Tools/Connally3-4-Tools-24.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Tools/Connally3-4-Tools-24.pg @@ -36,7 +36,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -72,7 +72,7 @@ the logarithms of products, quotients, or powers. $PAR \( $expression = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("logarithms") \} +\{ helpLink("logarithms") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Tools/Connally3-4-Tools-25.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Tools/Connally3-4-Tools-25.pg index 15f7c096b5..97d5214e50 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Tools/Connally3-4-Tools-25.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Tools/Connally3-4-Tools-25.pg @@ -36,7 +36,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -74,7 +74,7 @@ the logarithms of products, quotients, or powers. $PAR \( $expression = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("logarithms") \} +\{ helpLink("logarithms") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Tools/Connally3-4-Tools-26.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Tools/Connally3-4-Tools-26.pg index 2e58e59371..c6d58f782d 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Tools/Connally3-4-Tools-26.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Tools/Connally3-4-Tools-26.pg @@ -36,7 +36,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -74,7 +74,7 @@ enter 0.5 for 1/2. $PAR \( $expression = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("logarithms") \} +\{ helpLink("logarithms") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Tools/Connally3-4-Tools-28.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Tools/Connally3-4-Tools-28.pg index f62b37495c..40485e7da1 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Tools/Connally3-4-Tools-28.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Tools/Connally3-4-Tools-28.pg @@ -23,12 +23,12 @@ #################################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -61,15 +61,15 @@ Context()->functions->undefine("sqrt"); # Main Text BEGIN_TEXT -Using laws of logarithms, write the expression -below using sums and/or differences -of logarithmic expressions which do not contain +Using laws of logarithms, write the expression +below using sums and/or differences +of logarithmic expressions which do not contain the logarithms of products, quotients, or powers. $BR $BR \( $expression = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("logarithms") \} +\{ helpLink("logarithms") \} END_TEXT diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Tools/Connally3-4-Tools-28b.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Tools/Connally3-4-Tools-28b.pg index 400784f614..5e4551e4a8 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Tools/Connally3-4-Tools-28b.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Tools/Connally3-4-Tools-28b.pg @@ -22,12 +22,12 @@ #################################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -63,15 +63,15 @@ Context()->functions->undefine("sqrt"); BEGIN_TEXT -Using laws of logarithms, write the expression -below using sums and/or differences -of logarithmic expressions which do not contain +Using laws of logarithms, write the expression +below using sums and/or differences +of logarithmic expressions which do not contain the logarithms of products, quotients, or powers. $BR $BR \( $expression = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("logarithms") \} +\{ helpLink("logarithms") \} END_TEXT diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Tools/Connally3-4-Tools-28c.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Tools/Connally3-4-Tools-28c.pg index 832b56042c..ac043c5283 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Tools/Connally3-4-Tools-28c.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Tools/Connally3-4-Tools-28c.pg @@ -22,12 +22,12 @@ #################################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -59,11 +59,11 @@ Context()->functions->undefine("sqrt"); BEGIN_TEXT -Using laws of logarithms, write the expression -below using sums and/or differences -of logarithmic expressions which do not contain +Using laws of logarithms, write the expression +below using sums and/or differences +of logarithmic expressions which do not contain the logarithms of products, quotients, or powers. -Enter the natural logarithm of x as +Enter the natural logarithm of x as ${BITALIC}ln(x)${EITALIC} or ${BITALIC}log(x)${EITALIC}. Use decimals instead of fractions. @@ -71,7 +71,7 @@ $BR $BR \( $expression = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("logarithms") \} +\{ helpLink("logarithms") \} END_TEXT diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Tools/Connally3-4-Tools-29.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Tools/Connally3-4-Tools-29.pg index 900876380e..2f6d21b32b 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Tools/Connally3-4-Tools-29.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Tools/Connally3-4-Tools-29.pg @@ -36,7 +36,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -74,7 +74,7 @@ the logarithms of products, quotients, or powers. $PAR \( $expression = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("logarithms") \} +\{ helpLink("logarithms") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Tools/Connally3-4-Tools-32.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Tools/Connally3-4-Tools-32.pg index be37af8df6..21cf04265e 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Tools/Connally3-4-Tools-32.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Tools/Connally3-4-Tools-32.pg @@ -36,7 +36,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -71,7 +71,7 @@ $PAR \( $expression = $logtype \big( \) \{ ans_rule(10) \} \( \big) \) -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Tools/Connally3-4-Tools-33.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Tools/Connally3-4-Tools-33.pg index 9423b48c93..85ac2b9326 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Tools/Connally3-4-Tools-33.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Tools/Connally3-4-Tools-33.pg @@ -22,13 +22,13 @@ #################################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -62,14 +62,14 @@ $answer = Compute("$cpd * x^$apb"); BEGIN_TEXT -Using laws of logarithms, write the expression +Using laws of logarithms, write the expression below as a single logarithm. $BR $BR \( $expression = $logtype \big( \) \{ ans_rule(10) \} \( \big) \) -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Tools/Connally3-4-Tools-34.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Tools/Connally3-4-Tools-34.pg index 6f4cabd594..809c4ffcd8 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Tools/Connally3-4-Tools-34.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Tools/Connally3-4-Tools-34.pg @@ -37,7 +37,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -73,7 +73,7 @@ $PAR \( $expression = $logtype \big( \) \{ ans_rule(10) \} \( \big) \) -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Tools/Connally3-4-Tools-35.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Tools/Connally3-4-Tools-35.pg index a49ce1e924..d5b5ccaad2 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Tools/Connally3-4-Tools-35.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Tools/Connally3-4-Tools-35.pg @@ -36,7 +36,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -71,7 +71,7 @@ $PAR \( $expression = $logtype \big( \) \{ ans_rule(10) \} \( \big) \) -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Tools/Connally3-4-Tools-36.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Tools/Connally3-4-Tools-36.pg index f5e430884f..2b174f31df 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Tools/Connally3-4-Tools-36.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Tools/Connally3-4-Tools-36.pg @@ -36,7 +36,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -72,7 +72,7 @@ $PAR \( $expression = $logtype \big( \) \{ ans_rule(10) \} \( \big) \) -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Tools/Connally3-4-Tools-37.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Tools/Connally3-4-Tools-37.pg index a5d0df6d87..d4546787ef 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Tools/Connally3-4-Tools-37.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Tools/Connally3-4-Tools-37.pg @@ -22,13 +22,13 @@ #################################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -59,14 +59,14 @@ Context()->functions->disable("All"); BEGIN_TEXT -Using laws of logarithms, write the expression +Using laws of logarithms, write the expression below as a single logarithm. $BR $BR \( $expression = $logtype \big( \) \{ ans_rule(10) \} \( \big) \) -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} END_TEXT diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Tools/Connally3-4-Tools-38.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Tools/Connally3-4-Tools-38.pg index 00015eca98..25908e469e 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Tools/Connally3-4-Tools-38.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Tools/Connally3-4-Tools-38.pg @@ -36,7 +36,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -74,7 +74,7 @@ $PAR \( $expression = $logtype \big( \) \{ ans_rule(20) \} \( \big) \) -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Tools/Connally3-4-Tools-39.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Tools/Connally3-4-Tools-39.pg index 5d15898b69..9e2a928474 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Tools/Connally3-4-Tools-39.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Tools/Connally3-4-Tools-39.pg @@ -36,7 +36,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -72,7 +72,7 @@ $PAR \( $expression = $logtype \big( \) \{ ans_rule(30) \} \( \big) \) -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} END_TEXT diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Tools/Connally3-4-Tools-40.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Tools/Connally3-4-Tools-40.pg index 961998f3b9..3337fff72c 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Tools/Connally3-4-Tools-40.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap4Tools/Connally3-4-Tools-40.pg @@ -37,7 +37,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -74,7 +74,7 @@ $PAR \( $expression = $logtype \big( \) \{ ans_rule(30) \} \( \big) \) -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Review/Q04.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Review/Q04.pg index e5c6bba9f4..6fb7ed344a 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Review/Q04.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Review/Q04.pg @@ -34,7 +34,7 @@ loadMacros( "PGgraphmacros.pl", "extraAnswerEvaluators.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -89,16 +89,16 @@ Give the coordinates of one point which must be on the graph of each of the following functions. $PAR (a) $group1[0] must have the point \{ ans_rule(15) \} -(\{AnswerFormatHelp('points')\}) on its graph. +(\{helpLink('points')\}) on its graph. $PAR (b) $group1[1] must have the point \{ ans_rule(15) \} -(\{AnswerFormatHelp('points')\}) on its graph. +(\{helpLink('points')\}) on its graph. $PAR (c) $group2[0] must have the point \{ ans_rule(15) \} -(\{AnswerFormatHelp('points')\}) on its graph. +(\{helpLink('points')\}) on its graph. $PAR (d) $group2[1] must have the point \{ ans_rule(15) \} -(\{AnswerFormatHelp('points')\}) on its graph. +(\{helpLink('points')\}) on its graph. END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec1/Q06.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec1/Q06.pg index cc8a32a867..0388af5139 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec1/Q06.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec1/Q06.pg @@ -29,7 +29,7 @@ loadMacros( "PGchoicemacros.pl", "parserPopUp.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -58,7 +58,7 @@ BEGIN_TEXT Let \( f(x)=$b^x \), \( g(x)=$b^x $sign[$perm[0]] $a \), and \( h(x)=$b^x $sign[$perm[1]] $c \). What is the relationship between the graph of \( f(x) \ \) and the graphs of \( h(x) \ \) and \( g(x) \)? $PAR -For each part below, fill in the first blank with a positive number that indicates how many units the graph is shifted, then select the correct direction of the shift from the pulldown menu. \{ AnswerFormatHelp("numbers") \} +For each part below, fill in the first blank with a positive number that indicates how many units the graph is shifted, then select the correct direction of the shift from the pulldown menu. \{ helpLink("numbers") \} $PAR (a) For all \(x\), the graph of \(g(x)\) is \{ ans_rule(5) \} units \{ $popup1->menu() \} the graph of \( f(x) \). diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec1/Q09.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec1/Q09.pg index b8e7bd99ee..5b666c5686 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec1/Q09.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec1/Q09.pg @@ -32,7 +32,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserVectorUtils.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -65,13 +65,13 @@ BEGIN_TEXT The graph of \( f(x) \) contains the point \( ($x, $y) \). What point must be on each of the following transformed graphs? Enter points as \( (a,b) \) including the parentheses. $PAR (a) The graph of \( f(x - $a ) \) must contain the point \{ ans_rule(10) \} -\{ AnswerFormatHelp("points") \} +\{ helpLink("points") \} $PAR (b) The graph of \( f(x) - $b \) must contain the point \{ ans_rule(10) \} -\{ AnswerFormatHelp("points") \} +\{ helpLink("points") \} $PAR (c) The graph of \( f(x + $cx ) + $cy \) must contain the point \{ ans_rule(10) \} -\{ AnswerFormatHelp("points") \} +\{ helpLink("points") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec1/Q10.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec1/Q10.pg index b24ed9020b..22bcc821f3 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec1/Q10.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec1/Q10.pg @@ -31,7 +31,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "contextInequalities.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGcourse.pl" ); @@ -57,7 +57,7 @@ Suppose the domain of the function \( g(x) \) is \( $l < x < $h \). What is the domain of the function \( g(x - $c) \)? $PAR \{ ans_rule(20) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec1/Q15.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec1/Q15.pg index 662f632ded..322df1a8e1 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec1/Q15.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec1/Q15.pg @@ -29,7 +29,7 @@ loadMacros( "PGchoicemacros.pl", "PGgraphmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "PGcourse.pl" ); @@ -103,7 +103,7 @@ $PAR (a) Find a formula for \( y = f(x - $a) \) in terms of the variable \( x \). $BR \( y = f(x - $a) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $PAR (b) Sketch a graph of \( y = f(x-$a) \) on paper using graph transformations. $BR @@ -140,7 +140,7 @@ SOLUTION(EV3(<<'END_SOLUTION')); $PAR $BBOLD SOLUTION $EBOLD $PAR -(a) +(a) \[\begin{aligned} y &= f(x - $a) = \frac{1}{$k} (x-$a)^2 \\ &= \frac{1}{$k} (x^2 - $a_b x + $a_c ) diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec1/Q16.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec1/Q16.pg index 0ddf05f0d1..4ee5b3c9c0 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec1/Q16.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec1/Q16.pg @@ -29,7 +29,7 @@ loadMacros( "PGchoicemacros.pl", "PGgraphmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "PGcourse.pl" ); @@ -100,7 +100,7 @@ $PAR (a) Find a formula for \( y = m(n) + $b \) in terms of the variable \( n \). $BR \( y = m(n) + $b = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $PAR (b) Sketch a graph of \( y = m(n) + $b \) on paper using graph transformations. $BR diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec1/Q18.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec1/Q18.pg index 20c735725b..ba433eb2d2 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec1/Q18.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec1/Q18.pg @@ -29,7 +29,7 @@ loadMacros( "PGchoicemacros.pl", "PGgraphmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "PGcourse.pl" ); @@ -111,7 +111,7 @@ $PAR (a) Find a formula for \( y = m(n+ $c1 ) - $c2 \) in terms of the variable \( n \). $BR \( y = m(n+ $c1 ) - $c2 = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $PAR (b) Sketch a graph of \( y = m(n+ $c1 ) - $c2 \) on paper using graph transformations. $BR diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec1/Q20.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec1/Q20.pg index 0d35dd3907..69644a07dc 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec1/Q20.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec1/Q20.pg @@ -29,7 +29,7 @@ loadMacros( "PGchoicemacros.pl", "PGgraphmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "PGcourse.pl" ); @@ -113,7 +113,7 @@ $PAR (a) Find a formula for \( y = k(w) $sign[$pick] $a \) in terms of the variable \( w \). $BR \( y = k(w) $sign[$pick] $a = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $PAR (b) Sketch a graph of \( y = k(w) $sign[$pick] $a \) on paper using graph transformations. $BR diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec1/graph-shifting-01.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec1/graph-shifting-01.pg index 0f8ee1bdba..304af5b0a8 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec1/graph-shifting-01.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec1/graph-shifting-01.pg @@ -27,7 +27,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserPopUp.pl", "unionTables.pl", "PGcourse.pl" @@ -144,8 +144,8 @@ $vshift4_popup = PopUp( Context()->texStrings; BEGIN_TEXT -(a) The graph of \( y = f(x - $hshift1) \) is the graph -of \( y = f(x) \) +(a) The graph of \( y = f(x - $hshift1) \) is the graph +of \( y = f(x) \) \{ BeginTable(center=>0). AlignedRow(['shifted horizontally ', $hshift1_popup->menu().' and '],align => "LEFT", valign=>"BOTTOM"). @@ -154,8 +154,8 @@ EndTable(); \} $BR -(b) The graph of \( y = f(x) + $vshift2 \) is the graph -of \( y = f(x) \) +(b) The graph of \( y = f(x) + $vshift2 \) is the graph +of \( y = f(x) \) \{ BeginTable(center=>0). AlignedRow(['shifted horizontally ', $hshift2_popup->menu().' and '],align => "LEFT", valign=>"BOTTOM"). @@ -164,8 +164,8 @@ EndTable(); \} $BR -(c) The graph of \( y = f(x - $hshift3) + $vshift3 \) is the graph -of \( y = f(x) \) +(c) The graph of \( y = f(x - $hshift3) + $vshift3 \) is the graph +of \( y = f(x) \) \{ BeginTable(center=>0). AlignedRow(['shifted horizontally ', $hshift3_popup->menu().' and '],align => "LEFT", valign=>"BOTTOM"). @@ -174,8 +174,8 @@ EndTable(); \} $BR -(d) The graph of \( y = f(x - $hshift4) + $vshift4 \) is the graph -of \( y = f(x) \) +(d) The graph of \( y = f(x - $hshift4) + $vshift4 \) is the graph +of \( y = f(x) \) \{ BeginTable(center=>0). AlignedRow(['shifted horizontally ', $hshift4_popup->menu().' and '],align => "LEFT", valign=>"BOTTOM"). @@ -205,4 +205,4 @@ ANS( $vshift4_popup->cmp() ); ; -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec1/graph-shifting-02.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec1/graph-shifting-02.pg index 283cd96318..88ec552f49 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec1/graph-shifting-02.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec1/graph-shifting-02.pg @@ -27,7 +27,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserPopUp.pl", "unionTables.pl", "PGcourse.pl" @@ -157,8 +157,8 @@ $vshift4_popup = PopUp( Context()->texStrings; BEGIN_TEXT -(a) The graph of \( y = $f1shifted \) is the graph -of \( y = $f1 \) +(a) The graph of \( y = $f1shifted \) is the graph +of \( y = $f1 \) \{ BeginTable(center=>0). AlignedRow(['shifted horizontally ', $hshift1_popup->menu().' and '],align => "LEFT", valign=>"BOTTOM"). @@ -167,8 +167,8 @@ EndTable(); \} $BR -(b) The graph of \( y = $f2shifted \) is the graph -of \( y = $f2 \) +(b) The graph of \( y = $f2shifted \) is the graph +of \( y = $f2 \) \{ BeginTable(center=>0). AlignedRow(['shifted horizontally ', $hshift2_popup->menu().' and '],align => "LEFT", valign=>"BOTTOM"). @@ -177,8 +177,8 @@ EndTable(); \} $BR -(c) The graph of \( y = $f3shifted \) is the graph -of \( y = $f3 \) +(c) The graph of \( y = $f3shifted \) is the graph +of \( y = $f3 \) \{ BeginTable(center=>0). AlignedRow(['shifted horizontally ', $hshift3_popup->menu().' and '],align => "LEFT", valign=>"BOTTOM"). @@ -187,8 +187,8 @@ EndTable(); \} $BR -(d) The graph of \( y = $f4shifted \) is the graph -of \( y = $f4 \) +(d) The graph of \( y = $f4shifted \) is the graph +of \( y = $f4 \) \{ BeginTable(center=>0). AlignedRow(['shifted horizontally ', $hshift4_popup->menu().' and '],align => "LEFT", valign=>"BOTTOM"). @@ -218,4 +218,4 @@ ANS( $vshift4_popup->cmp() ); ; -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec1/graph-shifting-03.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec1/graph-shifting-03.pg index d95a40c5ec..9b6cf37ccd 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec1/graph-shifting-03.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec1/graph-shifting-03.pg @@ -27,7 +27,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserPopUp.pl", "unionTables.pl", "PGcourse.pl" @@ -158,8 +158,8 @@ $vshift4_popup = PopUp( Context()->texStrings; BEGIN_TEXT -(a) The graph of \( y = $f1shifted \) is the graph -of \( y = $f1 \) +(a) The graph of \( y = $f1shifted \) is the graph +of \( y = $f1 \) \{ BeginTable(center=>0). AlignedRow(['shifted horizontally ', $hshift1_popup->menu().' and '],align => "LEFT", valign=>"BOTTOM"). @@ -168,8 +168,8 @@ EndTable(); \} $BR -(b) The graph of \( y = $f2shifted \) is the graph -of \( y = $f2 \) +(b) The graph of \( y = $f2shifted \) is the graph +of \( y = $f2 \) \{ BeginTable(center=>0). AlignedRow(['shifted horizontally ', $hshift2_popup->menu().' and '],align => "LEFT", valign=>"BOTTOM"). @@ -178,8 +178,8 @@ EndTable(); \} $BR -(c) The graph of \( y = $f3shifted \) is the graph -of \( y = $f3 \) +(c) The graph of \( y = $f3shifted \) is the graph +of \( y = $f3 \) \{ BeginTable(center=>0). AlignedRow(['shifted horizontally ', $hshift3_popup->menu().' and '],align => "LEFT", valign=>"BOTTOM"). @@ -188,8 +188,8 @@ EndTable(); \} $BR -(d) The graph of \( y = $f4shifted \) is the graph -of \( y = $f4 \) +(d) The graph of \( y = $f4shifted \) is the graph +of \( y = $f4 \) \{ BeginTable(center=>0). AlignedRow(['shifted horizontally ', $hshift4_popup->menu().' and '],align => "LEFT", valign=>"BOTTOM"). @@ -219,4 +219,4 @@ ANS( $vshift4_popup->cmp() ); ; -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec1/graph-shifting-11.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec1/graph-shifting-11.pg index 8e71e2f6e2..481536f899 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec1/graph-shifting-11.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec1/graph-shifting-11.pg @@ -27,7 +27,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserFunction.pl", "parserAssignment.pl", "PGcourse.pl" @@ -63,35 +63,35 @@ $answerd = Formula("y = (x - $s2 * $h2)^3 - 2 * (x - $s2 * $h2)")->reduce(); Context()->texStrings; BEGIN_TEXT (a) The graph of a function \( y = f(x) \) is shifted to the $hdir1 -\( $h1 \) units. Find an equation for this shifted +\( $h1 \) units. Find an equation for this shifted function in terms of the function \( f(x) \). For example, \( y = 10 f(9x+8) + 7. \) $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} $BR $BR (b) The graph of the function \( y = e^x \) is shifted to the $hdir1 -\( $h1 \) units. Find an equation for this shifted +\( $h1 \) units. Find an equation for this shifted function. $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} $BR $BR (c) The graph of a function \( y = g(x) \) is shifted to the $hdir2 -\( $h2 \) units. Find an equation for this shifted +\( $h2 \) units. Find an equation for this shifted function in terms of the function \( g(x) \). For example, \( y = 10 g(9x+8) + 7. \) $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} $BR $BR (d) The graph of the function \( y = x^3 - 2x \) is shifted to the $hdir2 -\( $h2 \) units. Find an equation for this shifted +\( $h2 \) units. Find an equation for this shifted function. $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} END_TEXT Context()->normalStrings; @@ -110,4 +110,4 @@ ANS( $answerd->cmp() ); ; -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec1/graph-shifting-12.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec1/graph-shifting-12.pg index cb2871d5a6..edbcd7cb9e 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec1/graph-shifting-12.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec1/graph-shifting-12.pg @@ -27,7 +27,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserFunction.pl", "parserAssignment.pl", "PGcourse.pl" @@ -63,35 +63,35 @@ $answerd = Formula("y = 3 x^2 - 5 * x + $s2 * $v2")->reduce(); Context()->texStrings; BEGIN_TEXT (a) The graph of a function \( y = f(x) \) is shifted $vdir1 -\( $v1 \) units. Find an equation for this shifted +\( $v1 \) units. Find an equation for this shifted function in terms of the function \( f(x) \). For example, \( y = 10 f(9x+8) + 7. \) $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} $BR $BR (b) The graph of the function \( y = 2^x \) is shifted $vdir1 -\( $v1 \) units. Find an equation for this shifted +\( $v1 \) units. Find an equation for this shifted function. $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} $BR $BR (c) The graph of a function \( y = g(x) \) is shifted $vdir2 -\( $v2 \) units. Find an equation for this shifted +\( $v2 \) units. Find an equation for this shifted function in terms of the function \( g(x) \). For example, \( y = 10 g(9x+8) + 7. \) $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} $BR $BR (d) The graph of the function \( y = 3x^2 - 5x \) is shifted $vdir2 -\( $v2 \) units. Find an equation for this shifted +\( $v2 \) units. Find an equation for this shifted function. $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} END_TEXT Context()->normalStrings; @@ -110,4 +110,4 @@ ANS( $answerd->cmp() ); ; -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec1/graph-shifting-13.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec1/graph-shifting-13.pg index 107ee2455e..5946459283 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec1/graph-shifting-13.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec1/graph-shifting-13.pg @@ -27,7 +27,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserFunction.pl", "parserAssignment.pl", "PGcourse.pl" @@ -70,40 +70,40 @@ $answerd = Formula("y = -2(x - $s3 * $h2)^3 - 4 * (x - $s3 * $h2) + $s4 * $v2")- Context()->texStrings; BEGIN_TEXT -(a) The graph of a function \( y = f(x) \) is shifted +(a) The graph of a function \( y = f(x) \) is shifted to the $hdir1 \( $h1 \) units and $vdir1 -\( $v1 \) units. Find an equation for this shifted +\( $v1 \) units. Find an equation for this shifted function in terms of the function \( f(x) \). For example, \( y = 10 f(9x+8) + 7. \) $BR \{ ans_rule(30) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} $BR $BR (b) The graph of the function \( y = 2^{x/3} \) is shifted to the $hdir1 \( $h1 \) units and $vdir1 -\( $v1 \) units. Find an equation for this shifted +\( $v1 \) units. Find an equation for this shifted function. $BR \{ ans_rule(30) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} $BR $BR (c) The graph of a function \( y = g(x) \) is shifted to the $hdir2 \( $h2 \) units and $vdir2 -\( $v2 \) units. Find an equation for this shifted +\( $v2 \) units. Find an equation for this shifted function in terms of the function \( g(x) \). For example, \( y = 10 g(9x+8) + 7. \) $BR \{ ans_rule(30) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} $BR $BR -(d) The graph of the function \( y = -2x^3 - 4x \) is shifted +(d) The graph of the function \( y = -2x^3 - 4x \) is shifted to the $hdir2 \( $h2 \) units and $vdir2 -\( $v2 \) units. Find an equation for this shifted +\( $v2 \) units. Find an equation for this shifted function. $BR \{ ans_rule(30) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} END_TEXT Context()->normalStrings; @@ -122,4 +122,4 @@ ANS( $answerd->cmp() ); ; -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec1/graph-shifting-21.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec1/graph-shifting-21.pg index 4a18f16718..69a694961e 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec1/graph-shifting-21.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec1/graph-shifting-21.pg @@ -29,7 +29,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserFunction.pl", "parserAssignment.pl", "PGgraphmacros.pl", @@ -98,7 +98,7 @@ foreach my $i (1..5) { # # Original function y = f(x) -# +# $gr[0] -> lb(new Label ( 0.05,1,'y = f(x)','black','left','bottom')); $gr[0]->moveTo(-1,-1); $gr[0]->lineTo( 0,1,'blue',3); @@ -171,7 +171,7 @@ BEGIN_TEXT Use the two graphs below to answer the following questions. $BR $BR -(a) The graph of \( y = g(x) \) is the graph of \( y = f(x) \) +(a) The graph of \( y = g(x) \) is the graph of \( y = f(x) \) $BR \{ BeginTable(center=>0). @@ -183,10 +183,10 @@ $BR (b) Find an equation for \( g(x) \) in terms of the function \( f(x) \). For example, \( g(x) = 10 f(9 x + 8) + 7 \). $BR \( g(x) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR -\{ +\{ ColumnTable( $BCENTER. image(insertGraph($gr[0]), width=>$pixels, height=>$pixels, tex_size=>700). @@ -202,7 +202,7 @@ $BR. "Graph of \( y = g(x) \)". $ECENTER , -); +); \} END_TEXT Context()->normalStrings; @@ -224,4 +224,4 @@ ANS( $g->cmp() ); ; -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec1/graph-shifting-22.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec1/graph-shifting-22.pg index c2104d5c1c..15062623a9 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec1/graph-shifting-22.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec1/graph-shifting-22.pg @@ -28,7 +28,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserFunction.pl", "parserAssignment.pl", "PGgraphmacros.pl", @@ -97,7 +97,7 @@ foreach my $i (1..5) { # # Original function y = f(x) -# +# add_functions($gr[0], "sqrt(1-(x**2)) for x in <-1,1> using color:blue and weight:3"); $gr[0] -> lb(new Label ( 0.15,1,'y = f(x)','black','left','bottom')); $gr[0]->moveTo(-2,1); @@ -174,7 +174,7 @@ BEGIN_TEXT Use the two graphs below to answer the following questions. $BR $BR -(a) The graph of \( y = g(x) \) is the graph of \( y = f(x) \) +(a) The graph of \( y = g(x) \) is the graph of \( y = f(x) \) $BR \{ BeginTable(center=>0). @@ -183,14 +183,14 @@ AlignedRow(['shifted vertically ', $vshift1_popup->menu().'.'],align => "LEFT", EndTable(); \} $BR -(b) Find an equation for \( g(x) \) in terms of the function \( f(x) \). +(b) Find an equation for \( g(x) \) in terms of the function \( f(x) \). For example, \( g(x) = 10 f(9 x + 8) + 7 \). $BR \( g(x) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR -\{ +\{ ColumnTable( $BCENTER. image(insertGraph($gr[0]), width=>$pixels, height=>$pixels, tex_size=>700). @@ -206,7 +206,7 @@ $BR. "Graph of \( y = g(x) \)". $ECENTER , -); +); \} END_TEXT Context()->normalStrings; @@ -228,4 +228,4 @@ ANS( $g->cmp() ); ; -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec2/Q02.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec2/Q02.pg index 5f4dd94adc..85676a1673 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec2/Q02.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec2/Q02.pg @@ -32,7 +32,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserVectorUtils.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -64,16 +64,16 @@ What point must be on the following graphs? Enter points as \( (a,b) \) including parentheses. $PAR (a) The graph of \( g(-t) \) must contain the point \{ ans_rule(10) \} -\{ AnswerFormatHelp("points") \} +\{ helpLink("points") \} $PAR (b) The graph of \( -g(t) \) must contain the point \{ ans_rule(10) \} -\{ AnswerFormatHelp("points") \} +\{ helpLink("points") \} $PAR (c) If \( g(t) \) is an even function, then graph of \( g(t) \) must also contain the point \{ ans_rule(10) \} -\{ AnswerFormatHelp("points") \} +\{ helpLink("points") \} $PAR (d) If \( g(t) \) is an odd function, then graph of \( g(t) \) must also contain the point \{ ans_rule(10) \} -\{ AnswerFormatHelp("points") \} +\{ helpLink("points") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec2/Q03.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec2/Q03.pg index d7eeb62f90..5a620b8781 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec2/Q03.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec2/Q03.pg @@ -31,7 +31,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -59,7 +59,7 @@ Suppose the graph of \( H(x) \) is symmetric about the $type[$pick]. If \( H($x) = $y \), then \( H($neg_x) = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec2/Q06.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec2/Q06.pg index a1230a4553..1d910bb096 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec2/Q06.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec2/Q06.pg @@ -31,7 +31,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -50,7 +50,7 @@ If \( y = e^x \) is reflected about the \($axis[$i]\)-axis, what is the formula for the resulting function? $PAR \( y = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec2/Q10.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec2/Q10.pg index c3d42ce0b0..310b4248de 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec2/Q10.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec2/Q10.pg @@ -32,7 +32,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -62,7 +62,7 @@ Write a ${BBOLD}simplified${EBOLD} formula \( m(n) = n^2 - $b n + $c \) given below. $PAR \( y = $q1[$i] = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec2/Q12.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec2/Q12.pg index a689bfa69d..1b0019427c 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec2/Q12.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec2/Q12.pg @@ -34,7 +34,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -59,7 +59,7 @@ for the transformation of \( m(n) = n^2 - $b n + $c \) given below. $PAR \( y = -m(-n) = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec2/Q20.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec2/Q20.pg index ece79e4a58..b3813e788b 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec2/Q20.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec2/Q20.pg @@ -33,7 +33,7 @@ loadMacros( "PGchoicemacros.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -79,7 +79,7 @@ BEGIN_TEXT Suppose \( f(x) = $f[$pick] \). $PAR (a) Then \( f(-x) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} You must simplify your answer as much as possible. $PAR (b) diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec2/Q21.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec2/Q21.pg index 3c8f9b69cf..5ab5d23a84 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec2/Q21.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec2/Q21.pg @@ -33,7 +33,7 @@ loadMacros( "PGchoicemacros.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -81,7 +81,7 @@ BEGIN_TEXT Suppose \( f(x) = $f \). $PAR (a) Then \( f(-x) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} You must simplify your answer as much as possible. $PAR (b) diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec2/Q23.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec2/Q23.pg index 82f3f2e4fb..2c47f84a69 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec2/Q23.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec2/Q23.pg @@ -33,7 +33,7 @@ loadMacros( "PGchoicemacros.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -65,7 +65,7 @@ BEGIN_TEXT Suppose \( f(x) = $f \). $PAR (a) Then \( f(-x) = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} You must simplify your answer as much as possible. $PAR (b) diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec2/graph-reflection-11.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec2/graph-reflection-11.pg index 32d3dc1e0e..a509889ebe 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec2/graph-reflection-11.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec2/graph-reflection-11.pg @@ -32,7 +32,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserFunction.pl", "parserAssignment.pl", "PGcourse.pl" @@ -64,38 +64,38 @@ $answerd = Formula("y = -(x/$h2)^3 + 2 * (x/$h2)")->reduce(); Context()->texStrings; BEGIN_TEXT -(a) The graph of a function \( y = f(x) \) is horizontally compressed -by a factor of \( $h1 \) and reflected about the \( y \)-axis. -Find an equation for this compressed and reflected function +(a) The graph of a function \( y = f(x) \) is horizontally compressed +by a factor of \( $h1 \) and reflected about the \( y \)-axis. +Find an equation for this compressed and reflected function in terms of the function \( f(x). \) For example, \( y = 10 f(9x+8) + 7. \) $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} $BR $BR (b) The graph of the function \( y = e^x + 10 \) is horizontally compressed -by a factor of \( $h1 \) and reflected about the \( y \)-axis. +by a factor of \( $h1 \) and reflected about the \( y \)-axis. Find an equation for this compressed and reflected function. $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} $BR $BR (c) The graph of a function \( y = g(x) \) is horizontally expanded -by a factor of \( $h2 \) and reflected about the \( x \)-axis. -Find an equation for this expanded and reflected function +by a factor of \( $h2 \) and reflected about the \( x \)-axis. +Find an equation for this expanded and reflected function in terms of the function \( g(x). \) For example, \( y = 10 g(9x+8) + 7. \) $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} $BR $BR -(d) The graph of the function \( y = x^3 - 2x \) is horizontally expanded -by a factor of \( $h2 \) and reflected about the \( x \)-axis. +(d) The graph of the function \( y = x^3 - 2x \) is horizontally expanded +by a factor of \( $h2 \) and reflected about the \( x \)-axis. Find an equation for this expanded and reflected function. $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} END_TEXT Context()->normalStrings; @@ -114,4 +114,4 @@ ANS( $answerd->cmp() ); COMMENT('Horizontal scaling with reflections about the axes.'); -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec2/graph-reflection-12.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec2/graph-reflection-12.pg index 81637252a6..d31311ace2 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec2/graph-reflection-12.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec2/graph-reflection-12.pg @@ -32,7 +32,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserFunction.pl", "parserAssignment.pl", "PGcourse.pl" @@ -64,39 +64,39 @@ $answerd = Formula("y = ((-x)^3 - 7 * (-x)) / $v2")->reduce(); Context()->texStrings; BEGIN_TEXT -(a) The graph of a function \( y = f(x) \) is vertically expanded -by a factor of \( $v1 \) and reflected about the \( x \)-axis. +(a) The graph of a function \( y = f(x) \) is vertically expanded +by a factor of \( $v1 \) and reflected about the \( x \)-axis. Find an equation for this expanded and reflected -function in terms of the function \( f(x). \) +function in terms of the function \( f(x). \) For example, \( y = 10 f(9x+8) + 7. \) $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} $BR $BR (b) The graph of the function \( y = e^x + 10 \) is vertically expanded -by a factor of \( $v1 \) and reflected about the \( x \)-axis. +by a factor of \( $v1 \) and reflected about the \( x \)-axis. Find an equation for this expanded and reflected function. $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} $BR $BR (c) The graph of a function \( y = g(x) \) is vertically compressed -by a factor of \( $v2 \) and reflected about the \( y \)-axis. -Find an equation for this compressed and reflected function in terms +by a factor of \( $v2 \) and reflected about the \( y \)-axis. +Find an equation for this compressed and reflected function in terms of the function \( g(x). \) For example, \( y = 10 g(9x+8) + 7. \) $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} $BR $BR -(d) The graph of the function \( y = x^3 - 7x \) is vertically compressed -by a factor of \( $v2 \) and reflected about the \( y \)-axis. +(d) The graph of the function \( y = x^3 - 7x \) is vertically compressed +by a factor of \( $v2 \) and reflected about the \( y \)-axis. Find an equation for this compressed and reflected function. $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} END_TEXT Context()->normalStrings; @@ -115,4 +115,4 @@ ANS( $answerd->cmp() ); COMMENT('Vertical scaling with reflections about the axes.'); -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec2/graph-reflection-21.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec2/graph-reflection-21.pg index 693bd08a9a..abb2354333 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec2/graph-reflection-21.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec2/graph-reflection-21.pg @@ -32,7 +32,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserFunction.pl", "PGgraphmacros.pl", "unionTables.pl", @@ -93,7 +93,7 @@ foreach my $i (1..3) { # # Original function y = f(x) -# +# $gr[3]->moveTo(0,1); $gr[3]->lineTo(1,3,'blue',3); $gr[3]->lineTo(2,1,'blue',3); @@ -146,22 +146,22 @@ Context()->texStrings; BEGIN_TEXT \{ ColumnTable( -"(a) Find an equation for \( y = g(x) \) +"(a) Find an equation for \( y = g(x) \) in terms of the function \( y = f(x) \).". $BR. -"\( g(x) = \) ".ans_rule(20).$SPACE.AnswerFormatHelp("formulas"). +"\( g(x) = \) ".ans_rule(20).$SPACE.helpLink("formulas"). $BR. $BR. -"(b) Find an equation for \( y = h(x) \) +"(b) Find an equation for \( y = h(x) \) in terms of the function \( y = f(x) \).". $BR. -"\( h(x) = \) ".ans_rule(20).$SPACE.AnswerFormatHelp("formulas"). +"\( h(x) = \) ".ans_rule(20).$SPACE.helpLink("formulas"). $BR. $BR. -"(c) Find an equation for \( y = j(x) \) +"(c) Find an equation for \( y = j(x) \) in terms of the function \( y = f(x) \).". $BR. -"\( j(x) = \) ".ans_rule(20).$SPACE.AnswerFormatHelp("formulas") +"\( j(x) = \) ".ans_rule(20).$SPACE.helpLink("formulas") , BeginTable(). AlignedRow([$im[3],$im[$perm[0]]]). @@ -192,4 +192,4 @@ ANS( $g[$perm[2]]->cmp() ); COMMENT('Reflection only.'); -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec2/graph-reflection-22.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec2/graph-reflection-22.pg index b84da19a70..f13fa4531f 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec2/graph-reflection-22.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec2/graph-reflection-22.pg @@ -34,7 +34,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserFunction.pl", "parserAssignment.pl", "PGgraphmacros.pl", @@ -109,7 +109,7 @@ foreach my $i (1..6) { # # Original function y = f(x) -# +# $gr[0] -> lb(new Label ( 0.05,1,'y = f(x)','black','left','bottom')); $gr[0]->moveTo(-1,1); $gr[0]->lineTo( 0,1,'blue',3); @@ -136,10 +136,10 @@ Find an equation for \( g(x) \) in terms of the function \( f(x) \). For exampl $BR $BR \( g(x) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR -\{ +\{ ColumnTable( $BCENTER. image(insertGraph($gr[0]), width=>$pixels, height=>$pixels, tex_size=>700). @@ -155,7 +155,7 @@ $BR. "Graph of \( y = g(x) \)". $ECENTER , -); +); \} END_TEXT Context()->normalStrings; @@ -171,4 +171,4 @@ ANS( $g->cmp() ); COMMENT('Expansion and reflection only.'); -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec2/graph-reflection-23.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec2/graph-reflection-23.pg index faa44f3916..41ffce6ae7 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec2/graph-reflection-23.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec2/graph-reflection-23.pg @@ -33,7 +33,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserFunction.pl", "parserAssignment.pl", "PGgraphmacros.pl", @@ -109,7 +109,7 @@ foreach my $i (1..6) { # # Original function y = f(x) -# +# $gr[0] -> lb(new Label ( 0.05,1,'y = f(x)','black','left','bottom')); $gr[0]->moveTo(-1,1); $gr[0]->lineTo( 0,1,'blue',3); @@ -136,10 +136,10 @@ Find an equation for \( g(x) \) in terms of the function \( f(x) \). For exampl $BR $BR \( g(x) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR -\{ +\{ ColumnTable( $BCENTER. image(insertGraph($gr[0]), width=>$pixels, height=>$pixels, tex_size=>700). @@ -155,7 +155,7 @@ $BR. "Graph of \( y = g(x) \)". $ECENTER , -); +); \} END_TEXT Context()->normalStrings; @@ -171,4 +171,4 @@ ANS( $g->cmp() ); COMMENT('Expansion and reflection only.'); -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec2/graph-reflection-24.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec2/graph-reflection-24.pg index 72bafe9417..58da150842 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec2/graph-reflection-24.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec2/graph-reflection-24.pg @@ -33,7 +33,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserFunction.pl", "PGgraphmacros.pl", "unionTables.pl", @@ -105,7 +105,7 @@ foreach my $i (1..6) { # # Original function y = f(x) -# +# $gr[0] -> lb(new Label ( 0.5,4,'y = f(x)','black','left','bottom')); $gr[0]->moveTo(-6,-4); $gr[0]->lineTo( 0,4,'blue',3); @@ -130,10 +130,10 @@ Find an equation for \( g(x) \) in terms of the function \( f(x) \). For exampl $BR $BR \( g(x) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR -\{ +\{ ColumnTable( $BCENTER. image(insertGraph($gr[0]), width=>$pixels, height=>$pixels, tex_size=>700). @@ -149,7 +149,7 @@ $BR. "Graph of \( y = g(x) \)". $ECENTER , -); +); \} END_TEXT Context()->normalStrings; @@ -165,4 +165,4 @@ ANS( $g->cmp() ); COMMENT('Compression and reflection only.'); -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec3/Q14.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec3/Q14.pg index f9c7dc5ba4..e0c6296dcc 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec3/Q14.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec3/Q14.pg @@ -36,7 +36,7 @@ loadMacros( "MathObjects.pl", "parserVectorUtils.pl", "unionTables.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -88,7 +88,7 @@ $PAR Enter your answer as a point \( (a,b) \) including parentheses. $BR \{ ans_rule(10) \} -\{ AnswerFormatHelp("points") \} +\{ helpLink("points") \} $PAR (b) Without a calculator, sketch a graph of $eqn[$pick] and label at least three points on your graph. diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec3/Q18.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec3/Q18.pg index acfb0af465..efb42945ed 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec3/Q18.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec3/Q18.pg @@ -35,7 +35,7 @@ loadMacros( "extraAnswerEvaluators.pl", "parserPopUp.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -68,7 +68,7 @@ BEGIN_TEXT Describe the effect that the transformations \( y = $c[$q] \cdot f(x $sign[$i] $h) $sign[$j] $k \) have on the graph of \( y = f(x) \). Your numerical answers should all be positive. -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $PAR First take the graph of \( y = f(x) \) and perform a horizontal shift \{ $popup1->menu() \} by \{ ans_rule(3) \} units. diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec4/Q01.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec4/Q01.pg index be1da9df35..1b7cdf5359 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec4/Q01.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec4/Q01.pg @@ -34,7 +34,7 @@ loadMacros( "PGgraphmacros.pl", "extraAnswerEvaluators.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserVectorUtils.pl", "PGcourse.pl" ); @@ -67,7 +67,7 @@ What point must be on the graph of $PAR The point \{ ans_rule(10) \} must be on the graph of \( \displaystyle \ y= g \left( $disp[$pick] x \right) \). -\{ AnswerFormatHelp("points") \} +\{ helpLink("points") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec4/Q02.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec4/Q02.pg index e30f1cc417..4f8179bbec 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec4/Q02.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec4/Q02.pg @@ -33,7 +33,7 @@ loadMacros( "parserPopUp.pl", "MathObjects.pl", "parserVectorUtils.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -76,7 +76,7 @@ $PAR by a factor of \{ ans_rule(8) \} and vertically \{ $popup2->menu() \} by a factor of \{ ans_rule(8) \}. Your numerical answers should all be positive. -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $PAR (b) If the point \( ($x, $y) \) is on the graph of \( y=f(x) \), what point must be on the graph of @@ -84,7 +84,7 @@ what point must be on the graph of $BR The point \{ ans_rule(10) \} must be on the new graph. -\{ AnswerFormatHelp("points") \} +\{ helpLink("points") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec4/Q04.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec4/Q04.pg index a298bf48e3..3c5155f8b2 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec4/Q04.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec4/Q04.pg @@ -34,7 +34,7 @@ loadMacros( "PGgraphmacros.pl", "extraAnswerEvaluators.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -80,7 +80,7 @@ Fill in all of the blanks in the table below for which you have sufficient information. If you are unable to determine a value, type ${BBOLD}NONE${EBOLD} in the blank. It may be easier to check your answers if you put something in every answer blank. -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $PAR $BCENTER \{ begintable(8) \} @@ -147,7 +147,7 @@ $PAR The function \( f($c x ) \) is horizontal compression of \( f(x) \) by a factor of 1/$c. Thus for example when \(x= $x[2]\) we can -compute the value of \( f( $c x ) \): +compute the value of \( f( $c x ) \): \[ f \left( $c ($x[2]) \right) = f($x[1]) = $y[1] \] $BR So for a horizontal compression by a factor of 1/$c we know if diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec4/Q12.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec4/Q12.pg index b577031da4..fa04df7072 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec4/Q12.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec4/Q12.pg @@ -33,7 +33,7 @@ loadMacros( "PGchoicemacros.pl", "MathObjects.pl", "contextInequalities.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -66,18 +66,18 @@ $PAR (a) \( \displaystyle y = g \left( \frac{1}{$in} x \right) \) has $PAR Domain: \{ ans_rule(20) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} $BR Range: $SPACE \{ ans_rule(20) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} $PAR (b) \( \displaystyle y = $out g (x) \) has $PAR Domain: \{ ans_rule(20) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} $BR Range: $SPACE \{ ans_rule(20) \} -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec4/Q18.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec4/Q18.pg index 4b2badb0e0..8e5eb05e0d 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec4/Q18.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec4/Q18.pg @@ -33,7 +33,7 @@ loadMacros( "PGchoicemacros.pl", "parserPopUp.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -80,7 +80,7 @@ BEGIN_TEXT Let \( A = f(r) \) be the area of a circle of radius \( r \). $PAR (a) Write a formula for \( f(r) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $PAR (b) \{ $mc->print_q() \} @@ -90,7 +90,7 @@ $BR (c) By what percent does the area increase if the radius is increased by $k${PERCENT}? $BR \{ ans_rule(10) \}$PERCENT (round to the nearest 0.01${PERCENT}) -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec4/graph-scaling-01.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec4/graph-scaling-01.pg index e1f75f1d8c..4dbf9fba10 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec4/graph-scaling-01.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec4/graph-scaling-01.pg @@ -27,7 +27,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserPopUp.pl", "unionTables.pl", "PGcourse.pl" @@ -141,8 +141,8 @@ $vscale4_popup = PopUp( Context()->texStrings; BEGIN_TEXT -(a) The graph of \( y = f($hscale1 x) \) is the graph -of \( y = f(x) \) +(a) The graph of \( y = f($hscale1 x) \) is the graph +of \( y = f(x) \) \{ BeginTable(center=>0). AlignedRow(['scaled horizontally ', $hscale1_popup->menu().' and '],align => "LEFT", valign=>"BOTTOM"). @@ -151,8 +151,8 @@ EndTable(); \} $BR -(b) The graph of \( y = $vscale2 f(x) \) is the graph -of \( y = f(x) \) +(b) The graph of \( y = $vscale2 f(x) \) is the graph +of \( y = f(x) \) \{ BeginTable(center=>0). AlignedRow(['scaled horizontally ', $hscale2_popup->menu().' and '],align => "LEFT", valign=>"BOTTOM"). @@ -161,8 +161,8 @@ EndTable(); \} $BR -(c) The graph of \( y = $vscale3 f($hscale3 x) \) is the graph -of \( y = f(x) \) +(c) The graph of \( y = $vscale3 f($hscale3 x) \) is the graph +of \( y = f(x) \) \{ BeginTable(center=>0). AlignedRow(['scaled horizontally ', $hscale3_popup->menu().' and '],align => "LEFT", valign=>"BOTTOM"). @@ -171,8 +171,8 @@ EndTable(); \} $BR -(d) The graph of \( y = \frac{1}{$vscale4} f\left( \frac{x}{$hscale4} \right) \) is the graph -of \( y = f(x) \) +(d) The graph of \( y = \frac{1}{$vscale4} f\left( \frac{x}{$hscale4} \right) \) is the graph +of \( y = f(x) \) \{ BeginTable(center=>0). AlignedRow(['scaled horizontally ', $hscale4_popup->menu().' and '],align => "LEFT", valign=>"BOTTOM"). @@ -202,4 +202,4 @@ ANS( $vscale4_popup->cmp() ); ; -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec4/graph-scaling-02.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec4/graph-scaling-02.pg index 51a1f95615..386fc85ea6 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec4/graph-scaling-02.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec4/graph-scaling-02.pg @@ -27,7 +27,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserPopUp.pl", "unionTables.pl", "PGcourse.pl" @@ -154,8 +154,8 @@ $vscale4_popup = PopUp( Context()->texStrings; BEGIN_TEXT -(a) The graph of \( y = $f1scaled \) is the graph -of \( y = $f1 \) +(a) The graph of \( y = $f1scaled \) is the graph +of \( y = $f1 \) \{ BeginTable(center=>0). AlignedRow(['scaled horizontally ', $hscale1_popup->menu().' and '],align => "LEFT", valign=>"BOTTOM"). @@ -164,8 +164,8 @@ EndTable(); \} $BR -(b) The graph of \( y = $f2scaled \) is the graph -of \( y = $f2 \) +(b) The graph of \( y = $f2scaled \) is the graph +of \( y = $f2 \) \{ BeginTable(center=>0). AlignedRow(['scaled horizontally ', $hscale2_popup->menu().' and '],align => "LEFT", valign=>"BOTTOM"). @@ -174,8 +174,8 @@ EndTable(); \} $BR -(c) The graph of \( y = $f3scaled \) is the graph -of \( y = $f3 \) +(c) The graph of \( y = $f3scaled \) is the graph +of \( y = $f3 \) \{ BeginTable(center=>0). AlignedRow(['scaled horizontally ', $hscale3_popup->menu().' and '],align => "LEFT", valign=>"BOTTOM"). @@ -184,8 +184,8 @@ EndTable(); \} $BR -(d) The graph of \( \displaystyle y = $f4scaled \) is the graph -of \( y = $f4 \) +(d) The graph of \( \displaystyle y = $f4scaled \) is the graph +of \( y = $f4 \) \{ BeginTable(center=>0). AlignedRow(['scaled horizontally ', $hscale4_popup->menu().' and '],align => "LEFT", valign=>"BOTTOM"). @@ -215,4 +215,4 @@ ANS( $vscale4_popup->cmp() ); ; -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec4/graph-scaling-11.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec4/graph-scaling-11.pg index d401dd4e1d..7897f4b4a4 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec4/graph-scaling-11.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec4/graph-scaling-11.pg @@ -27,7 +27,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserFunction.pl", "parserAssignment.pl", "PGcourse.pl" @@ -59,36 +59,36 @@ $answerd = Formula("y = (x/$h2)^3 - 2 * (x/$h2)")->reduce(); Context()->texStrings; BEGIN_TEXT -(a) The graph of a function \( y = f(x) \) is horizontally compressed -by a factor of \( $h1. \) Find an equation for this compressed +(a) The graph of a function \( y = f(x) \) is horizontally compressed +by a factor of \( $h1. \) Find an equation for this compressed function in terms of the function \( f(x). \) For example, \( y = 10 f(9x+8) + 7. \) $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} $BR $BR (b) The graph of the function \( y = e^x + 10 \) is horizontally compressed -by a factor of \( $h1. \) Find an equation for this compressed +by a factor of \( $h1. \) Find an equation for this compressed function. $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} $BR $BR (c) The graph of a function \( y = g(x) \) is horizontally expanded -by a factor of \( $h2. \) Find an equation for this expanded +by a factor of \( $h2. \) Find an equation for this expanded function in terms of the function \( g(x). \) For example, \( y = 10 g(9x+8) + 7. \) $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} $BR $BR -(d) The graph of the function \( y = x^3 - 2x \) is horizontally expanded -by a factor of \( $h2. \) Find an equation for this expanded +(d) The graph of the function \( y = x^3 - 2x \) is horizontally expanded +by a factor of \( $h2. \) Find an equation for this expanded function. $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} END_TEXT Context()->normalStrings; @@ -107,4 +107,4 @@ ANS( $answerd->cmp() ); COMMENT('Horizontal scaling only.'); -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec4/graph-scaling-12.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec4/graph-scaling-12.pg index d27e80ae73..625a1fdc44 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec4/graph-scaling-12.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec4/graph-scaling-12.pg @@ -27,7 +27,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserFunction.pl", "parserAssignment.pl", "PGcourse.pl" @@ -59,36 +59,36 @@ $answerd = Formula("y = (x^3 - 7 * x) / $v2")->reduce(); Context()->texStrings; BEGIN_TEXT -(a) The graph of a function \( y = f(x) \) is vertically expanded -by a factor of \( $v1. \) Find an equation for this expanded +(a) The graph of a function \( y = f(x) \) is vertically expanded +by a factor of \( $v1. \) Find an equation for this expanded function in terms of the function \( f(x). \) For example, \( y = 10 f(9x+8) + 7. \) $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} $BR $BR (b) The graph of the function \( y = e^x + 10 \) is vertically expanded -by a factor of \( $v1. \) Find an equation for this expanded +by a factor of \( $v1. \) Find an equation for this expanded function. $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} $BR $BR (c) The graph of a function \( y = g(x) \) is vertically compressed -by a factor of \( $v2. \) Find an equation for this compressed +by a factor of \( $v2. \) Find an equation for this compressed function in terms of the function \( g(x). \) For example, \( y = 10 g(9x+8) + 7. \) $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} $BR $BR -(d) The graph of the function \( y = x^3 - 7x \) is vertically compressed +(d) The graph of the function \( y = x^3 - 7x \) is vertically compressed by a factor of \( $v2. \) Find an equation for this compressed function. $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} END_TEXT Context()->normalStrings; @@ -107,4 +107,4 @@ ANS( $answerd->cmp() ); COMMENT('Vertical scaling only.'); -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec4/graph-scaling-13.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec4/graph-scaling-13.pg index 0ca910c92a..70e02d5ab4 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec4/graph-scaling-13.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec4/graph-scaling-13.pg @@ -27,7 +27,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserFunction.pl", "parserAssignment.pl", "PGcourse.pl" @@ -61,44 +61,44 @@ $answerd = Formula("y = (($h2 x)^3 - 7 * ($h2 x)) / $v2")->reduce(); Context()->texStrings; BEGIN_TEXT -(a) The graph of a function \( y = f(x) \) is +(a) The graph of a function \( y = f(x) \) is horizontally expanded by a factor of \( $h1 \) and -vertically expanded by a factor of \( $v1. \) -Find an equation for this expanded -function in terms of the function \( f(x). \) +vertically expanded by a factor of \( $v1. \) +Find an equation for this expanded +function in terms of the function \( f(x). \) For example, \( y = 10 f(9x+8) + 7. \) $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} $BR $BR -(b) The graph of the function \( y = e^x + 10 \) is +(b) The graph of the function \( y = e^x + 10 \) is horizontally expanded by a factor of \( $h1 \) and -vertically expanded by a factor of \( $v1. \) +vertically expanded by a factor of \( $v1. \) Find an equation for this expanded function. $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} $BR $BR -(c) The graph of a function \( y = g(x) \) is +(c) The graph of a function \( y = g(x) \) is horizontally compressed by a factor of \( $h2 \) and -vertically compressed by a factor of \( $v2. \) -Find an equation for this compressed -function in terms of the function \( g(x). \) +vertically compressed by a factor of \( $v2. \) +Find an equation for this compressed +function in terms of the function \( g(x). \) For example, \( y = 10 g(9x+8) + 7. \) $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} $BR $BR -(d) The graph of the function \( y = x^3 - 7x \) is -horizontally compressed by a factor of \( $h2 \) and -vertically compressed by a factor of \( $v2. \) +(d) The graph of the function \( y = x^3 - 7x \) is +horizontally compressed by a factor of \( $h2 \) and +vertically compressed by a factor of \( $v2. \) Find an equation for this compressed function. $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} END_TEXT Context()->normalStrings; @@ -117,4 +117,4 @@ ANS( $answerd->cmp() ); COMMENT('Horizontal and vertical scaling only.'); -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec4/graph-scaling-21.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec4/graph-scaling-21.pg index 205455a644..9e1302741f 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec4/graph-scaling-21.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec4/graph-scaling-21.pg @@ -29,7 +29,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserFunction.pl", "parserAssignment.pl", "PGgraphmacros.pl", @@ -98,7 +98,7 @@ foreach my $i (1..6) { # # Original function y = f(x) -# +# $gr[0] -> lb(new Label ( 0.05,1,'y = f(x)','black','left','bottom')); $gr[0]->moveTo(-1,-1); $gr[0]->lineTo( 0,1,'blue',3); @@ -167,7 +167,7 @@ BEGIN_TEXT Use the two graphs below to answer the following questions. $BR $BR -(a) The graph of \( y = g(x) \) is the graph of \( y = f(x) \) +(a) The graph of \( y = g(x) \) is the graph of \( y = f(x) \) $BR \{ BeginTable(center=>0). @@ -179,10 +179,10 @@ $BR (b) Find an equation for \( g(x) \) in terms of the function \( f(x) \). For example, \( g(x) = 10 f(9 x + 8) + 7. \) $BR \( g(x) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR -\{ +\{ ColumnTable( $BCENTER. image(insertGraph($gr[0]), width=>$pixels, height=>$pixels, tex_size=>700). @@ -198,7 +198,7 @@ $BR. "Graph of \( y = g(x) \)". $ECENTER , -); +); \} END_TEXT Context()->normalStrings; @@ -220,4 +220,4 @@ ANS( $g->cmp() ); COMMENT('Expansion only.'); -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec4/graph-scaling-22.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec4/graph-scaling-22.pg index 669030460d..c33b87e70c 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec4/graph-scaling-22.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec4/graph-scaling-22.pg @@ -27,7 +27,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserFunction.pl", "parserAssignment.pl", "PGgraphmacros.pl", @@ -96,7 +96,7 @@ foreach my $i (1..6) { # # Original function y = f(x) -# +# add_functions($gr[0], "sqrt(1-(x**2)) for x in <-1,1> using color:blue and weight:3"); $gr[0] -> lb(new Label ( 0.5,1,'y = f(x)','black','left','bottom')); $gr[0]->moveTo(-2,1); @@ -168,7 +168,7 @@ BEGIN_TEXT Use the two graphs below to answer the following questions. $BR $BR -(a) The graph of \( y = g(x) \) is the graph of \( y = f(x) \) +(a) The graph of \( y = g(x) \) is the graph of \( y = f(x) \) $BR \{ BeginTable(center=>0). @@ -180,10 +180,10 @@ $BR (b) Find an equation for \( g(x) \) in terms of the function \( f(x) \). For example, \( g(x) = 10 f(9 x + 8) + 7. \) $BR \( g(x) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR -\{ +\{ ColumnTable( $BCENTER. image(insertGraph($gr[0]), width=>$pixels, height=>$pixels, tex_size=>700). @@ -199,7 +199,7 @@ $BR. "Graph of \( y = g(x) \)". $ECENTER , -); +); \} END_TEXT Context()->normalStrings; @@ -221,4 +221,4 @@ ANS( $g->cmp() ); COMMENT('Expansion only.'); -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec4/graph-scaling-23.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec4/graph-scaling-23.pg index 150d3a4a72..2a0d3c9f8c 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec4/graph-scaling-23.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec4/graph-scaling-23.pg @@ -28,7 +28,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserFunction.pl", "parserAssignment.pl", "PGgraphmacros.pl", @@ -98,7 +98,7 @@ foreach my $i (1..6) { # # Original function y = f(x) -# +# $gr[0] -> lb(new Label ( 0.5,4,'y = f(x)','black','left','bottom')); $gr[0]->moveTo(-6,-4); $gr[0]->lineTo( 0,4,'blue',3); @@ -149,7 +149,7 @@ $gr[1]->lineTo(6/($h1),-4/($v1),'blue',3); $choose = "choose the scaling factor"; -if ($h1 == 2) { +if ($h1 == 2) { $horizontal_index = 4; } elsif ($h1 == 3) { $horizontal_index = 3; @@ -162,7 +162,7 @@ $hshift1_popup = PopUp( $horizontal[$horizontal_index], ); -if ($v1 == 2) { +if ($v1 == 2) { $vertical_index = 4; } else { # $h1 = 4 $vertical_index = 2; @@ -182,7 +182,7 @@ BEGIN_TEXT Use the two graphs below to answer the following questions. $BR $BR -(a) The graph of \( y = g(x) \) is the graph of \( y = f(x) \) +(a) The graph of \( y = g(x) \) is the graph of \( y = f(x) \) $BR \{ BeginTable(center=>0). @@ -194,10 +194,10 @@ $BR (b) Find an equation for \( g(x) \) in terms of the function \( f(x) \). For example, \( g(x) = 10 f(9 x + 8) + 7 \). $BR \( g(x) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR -\{ +\{ ColumnTable( $BCENTER. image(insertGraph($gr[0]), width=>$pixels, height=>$pixels, tex_size=>700). @@ -213,7 +213,7 @@ $BR. "Graph of \( y = g(x) \)". $ECENTER , -); +); \} END_TEXT Context()->normalStrings; @@ -235,4 +235,4 @@ ANS( $g->cmp() ); COMMENT('Compression only.'); -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec4/graph-transformation-01.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec4/graph-transformation-01.pg index 2e5f793aa4..3a5df5b931 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec4/graph-transformation-01.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec4/graph-transformation-01.pg @@ -31,7 +31,7 @@ loadMacros( "alignedChoice.pl", "unionTables.pl", "parserFunction.pl", - "AnswerFormatHelp.pl", + "PGgraphmacros.pl", "PGcourse.pl" ); @@ -111,7 +111,7 @@ $applet = JavaApplet( showResetIcon => "true", showToolBar => "false", showAlgebraInput =>"false", - }, + }, ); @@ -161,9 +161,9 @@ $gr -> lb(new Label ( 2,1.2,'d','blue','center','bottom')); TEXT( MODES(HTML=> -"${BBOLD}This question uses an interactive applet.${EBOLD} +"${BBOLD}This question uses an interactive applet.${EBOLD} Please be patient while it loads. If it does not load in -less than one minute or if you receive any errors, +less than one minute or if you receive any errors, try refreshing your browser or clicking the ${BITALIC}'return this question to its initial state button'${EITALIC} below the applet. $BR @@ -177,32 +177,32 @@ BEGIN_TEXT \{ ColumnTable( "Let \( f(x) \) be the function that connects -the points \( a = (-1,1), \)$SPACE \( b = (0,0), \)$SPACE -\( c = (1,1), \) $SPACE and \( d = (2,1) \) by line +the points \( a = (-1,1), \)$SPACE \( b = (0,0), \)$SPACE +\( c = (1,1), \) $SPACE and \( d = (2,1) \) by line segments in alphabetical order, as shown in the graph.". $BR. $BR. -"(a) The transformation \[\textstyle y = $f2 \] +"(a) The transformation \[\textstyle y = $f2 \] takes the points \( a, \)$SPACE -\( b, \)$SPACE \( c \)$SPACE and \( d \) on +\( b, \)$SPACE \( c \)$SPACE and \( d \) on the graph of \( y = f(x) \) to the following points: ". -AnswerFormatHelp("points"). +helpLink("points"). $BR. $al->print_q(). $BR. $BR. -"(b) Without using a calculator, -draw a graph of \( y = $f2 \) on paper -by using your answers from the previous part. -Using the interactive applet to the right, -enter your graph by clicking and draging -the points A, B, C and D to shift and scale the -blue graph (the gray graph is just for reference). -Click the ${BITALIC}Submit Answers${EITALIC} +"(b) Without using a calculator, +draw a graph of \( y = $f2 \) on paper +by using your answers from the previous part. +Using the interactive applet to the right, +enter your graph by clicking and draging +the points A, B, C and D to shift and scale the +blue graph (the gray graph is just for reference). +Click the ${BITALIC}Submit Answers${EITALIC} button to submit your graph for grading." , MODES( - TeX=>image(insertGraph($gr), width=>480, height=>400, tex_size=>900), + TeX=>image(insertGraph($gr), width=>480, height=>400, tex_size=>900), HTML=>$applet->insertAll( debug=>0, includeAnswerBox=>1, @@ -224,7 +224,7 @@ Context()->normalStrings; ########## -# Draw graph in applet -- this must come after the insertAll command which +# Draw graph in applet -- this must come after the insertAll command which # adds the default behavior to the HEADER_TEXT HEADER_TEXT(<List($A,$B,$C,$D)->cmp() ); COMMENT('Note: Uses JavaScript, which might not be executed in the Library Browser. Any graph transformation is possible.'); -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec4/graph-transformation-02.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec4/graph-transformation-02.pg index 72a24f9e09..00390667e6 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec4/graph-transformation-02.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec4/graph-transformation-02.pg @@ -31,7 +31,7 @@ loadMacros( "alignedChoice.pl", "unionTables.pl", "parserFunction.pl", - "AnswerFormatHelp.pl", + "PGgraphmacros.pl", "PGcourse.pl" ); @@ -111,7 +111,7 @@ $applet = JavaApplet( showResetIcon => "true", showToolBar => "false", showAlgebraInput =>"false", - }, + }, ); @@ -162,9 +162,9 @@ $gr -> lb(new Label ( 2,1.2,'d','blue','center','bottom')); TEXT( MODES(HTML=> -"${BBOLD}This question uses an interactive applet.${EBOLD} +"${BBOLD}This question uses an interactive applet.${EBOLD} Please be patient while it loads. If it does not load in -less than one minute or if you receive any errors, +less than one minute or if you receive any errors, try refreshing your browser or clicking the ${BITALIC}'return this question to its initial state button'${EITALIC} below the applet. $BR @@ -178,32 +178,32 @@ BEGIN_TEXT \{ ColumnTable( "Let \( f(x) \) be the function that connects -the points \( a = (-1,0), \)$SPACE \( b = (0,1), \)$SPACE -\( c = (1,0), \) $SPACE and \( d = (2,1) \) by line +the points \( a = (-1,0), \)$SPACE \( b = (0,1), \)$SPACE +\( c = (1,0), \) $SPACE and \( d = (2,1) \) by line segments in alphabetical order, as shown in the graph.". $BR. $BR. -"(a) The transformation \[\textstyle y = $f2 \] +"(a) The transformation \[\textstyle y = $f2 \] takes the points \( a, \)$SPACE -\( b, \)$SPACE \( c \)$SPACE and \( d \) on +\( b, \)$SPACE \( c \)$SPACE and \( d \) on the graph of \( y = f(x) \) to the following points: ". -AnswerFormatHelp("points"). +helpLink("points"). $BR. $al->print_q(). $BR. $BR. -"(b) Without using a calculator, -draw a graph of \( y = $f2 \) on paper -by using your answers from the previous part. -Using the interactive applet to the right, -enter your graph by clicking and draging -the points A, B, C and D to shift and scale the -blue graph (the gray graph is just for reference). -Click the ${BITALIC}Submit Answers${EITALIC} +"(b) Without using a calculator, +draw a graph of \( y = $f2 \) on paper +by using your answers from the previous part. +Using the interactive applet to the right, +enter your graph by clicking and draging +the points A, B, C and D to shift and scale the +blue graph (the gray graph is just for reference). +Click the ${BITALIC}Submit Answers${EITALIC} button to submit your graph for grading." , MODES( - TeX=>image(insertGraph($gr), width=>480, height=>400, tex_size=>900), + TeX=>image(insertGraph($gr), width=>480, height=>400, tex_size=>900), HTML=>$applet->insertAll( debug=>0, includeAnswerBox=>1, @@ -225,7 +225,7 @@ Context()->normalStrings; ########## -# Draw graph in applet -- this must come after the insertAll command which +# Draw graph in applet -- this must come after the insertAll command which # adds the default behavior to the HEADER_TEXT HEADER_TEXT(<List($A,$B,$C,$D)->cmp() ); COMMENT('Note: Uses JavaScript, which might not be executed in the Library Browser. Reflection across y-axis, vertical stretch and vertical shift.'); -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec4/graph-transformation-03.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec4/graph-transformation-03.pg index 96a3ff00ce..7a89b0bb13 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec4/graph-transformation-03.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec4/graph-transformation-03.pg @@ -31,7 +31,7 @@ loadMacros( "alignedChoice.pl", "unionTables.pl", "parserFunction.pl", - "AnswerFormatHelp.pl", + "PGgraphmacros.pl", "PGcourse.pl" ); @@ -111,7 +111,7 @@ $applet = JavaApplet( showResetIcon => "true", showToolBar => "false", showAlgebraInput =>"false", - }, + }, ); @@ -162,9 +162,9 @@ $gr -> lb(new Label ( 2,1.2,'d','blue','center','bottom')); TEXT( MODES(HTML=> -"${BBOLD}This question uses an interactive applet.${EBOLD} +"${BBOLD}This question uses an interactive applet.${EBOLD} Please be patient while it loads. If it does not load in -less than one minute or if you receive any errors, +less than one minute or if you receive any errors, try refreshing your browser or clicking the ${BITALIC}'return this question to its initial state button'${EITALIC} below the applet. $BR @@ -178,32 +178,32 @@ BEGIN_TEXT \{ ColumnTable( "Let \( f(x) \) be the function that connects -the points \( a = (-1,0), \)$SPACE \( b = (0,1), \)$SPACE -\( c = (1,0), \) $SPACE and \( d = (2,1) \) by line +the points \( a = (-1,0), \)$SPACE \( b = (0,1), \)$SPACE +\( c = (1,0), \) $SPACE and \( d = (2,1) \) by line segments in alphabetical order, as shown in the graph.". $BR. $BR. -"(a) The transformation \[\textstyle y = $f2 \] +"(a) The transformation \[\textstyle y = $f2 \] takes the points \( a, \)$SPACE -\( b, \)$SPACE \( c \)$SPACE and \( d \) on +\( b, \)$SPACE \( c \)$SPACE and \( d \) on the graph of \( y = f(x) \) to the following points: ". -AnswerFormatHelp("points"). +helpLink("points"). $BR. $al->print_q(). $BR. $BR. -"(b) Without using a calculator, -draw a graph of \( y = $f2 \) on paper -by using your answers from the previous part. -Using the interactive applet to the right, -enter your graph by clicking and draging -the points A, B, C and D to shift and scale the -blue graph (the gray graph is just for reference). -Click the ${BITALIC}Submit Answers${EITALIC} +"(b) Without using a calculator, +draw a graph of \( y = $f2 \) on paper +by using your answers from the previous part. +Using the interactive applet to the right, +enter your graph by clicking and draging +the points A, B, C and D to shift and scale the +blue graph (the gray graph is just for reference). +Click the ${BITALIC}Submit Answers${EITALIC} button to submit your graph for grading." , MODES( - TeX=>image(insertGraph($gr), width=>480, height=>400, tex_size=>900), + TeX=>image(insertGraph($gr), width=>480, height=>400, tex_size=>900), HTML=>$applet->insertAll( debug=>0, includeAnswerBox=>1, @@ -225,7 +225,7 @@ Context()->normalStrings; ########## -# Draw graph in applet -- this must come after the insertAll command which +# Draw graph in applet -- this must come after the insertAll command which # adds the default behavior to the HEADER_TEXT HEADER_TEXT(<List($A,$B,$C,$D)->cmp() ); COMMENT('Note: Uses JavaScript, which might not be executed in the Library Browser. Horizontal stretch, reflection across x-axis and vertical stretch.'); -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec4/graph-transformation-04.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec4/graph-transformation-04.pg index 35188b28d0..84328053d0 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec4/graph-transformation-04.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec4/graph-transformation-04.pg @@ -32,7 +32,7 @@ loadMacros( "alignedChoice.pl", "unionTables.pl", "parserFunction.pl", - "AnswerFormatHelp.pl", + "PGgraphmacros.pl", "PGcourse.pl" ); @@ -112,7 +112,7 @@ $applet = JavaApplet( showResetIcon => "true", showToolBar => "false", showAlgebraInput =>"false", - }, + }, ); @@ -162,9 +162,9 @@ $gr -> lb(new Label ( 6,1.2,'d','blue','right','bottom')); TEXT( MODES(HTML=> -"${BBOLD}This question uses an interactive applet.${EBOLD} +"${BBOLD}This question uses an interactive applet.${EBOLD} Please be patient while it loads. If it does not load in -less than one minute or if you receive any errors, +less than one minute or if you receive any errors, try refreshing your browser or clicking the ${BITALIC}'return this question to its initial state button'${EITALIC} below the applet. $BR @@ -178,32 +178,32 @@ BEGIN_TEXT \{ ColumnTable( "Let \( f(x) \) be the function that connects -the points \( a = (-3,0), \)$SPACE \( b = (0,1), \)$SPACE -\( c = (3,0), \) $SPACE and \( d = (6,1) \) by line +the points \( a = (-3,0), \)$SPACE \( b = (0,1), \)$SPACE +\( c = (3,0), \) $SPACE and \( d = (6,1) \) by line segments in alphabetical order, as shown in the graph.". $BR. $BR. -"(a) The transformation \[\textstyle y = $f2 \] +"(a) The transformation \[\textstyle y = $f2 \] takes the points \( a, \)$SPACE -\( b, \)$SPACE \( c \)$SPACE and \( d \) on +\( b, \)$SPACE \( c \)$SPACE and \( d \) on the graph of \( y = f(x) \) to the following points: ". -AnswerFormatHelp("points"). +helpLink("points"). $BR. $al->print_q(). $BR. $BR. -"(b) Without using a calculator, -draw a graph of \( y = $f2 \) on paper -by using your answers from the previous part. -Using the interactive applet to the right, -enter your graph by clicking and draging -the points A, B, C and D to shift and scale the -blue graph (the gray graph is just for reference). -Click the ${BITALIC}Submit Answers${EITALIC} +"(b) Without using a calculator, +draw a graph of \( y = $f2 \) on paper +by using your answers from the previous part. +Using the interactive applet to the right, +enter your graph by clicking and draging +the points A, B, C and D to shift and scale the +blue graph (the gray graph is just for reference). +Click the ${BITALIC}Submit Answers${EITALIC} button to submit your graph for grading." , MODES( - TeX=>image(insertGraph($gr), width=>480, height=>400, tex_size=>900), + TeX=>image(insertGraph($gr), width=>480, height=>400, tex_size=>900), HTML=>$applet->insertAll( debug=>0, includeAnswerBox=>1, @@ -225,7 +225,7 @@ Context()->normalStrings; ########## -# Draw graph in applet -- this must come after the insertAll command which +# Draw graph in applet -- this must come after the insertAll command which # adds the default behavior to the HEADER_TEXT HEADER_TEXT(<List($A,$B,$C,$D)->cmp() ); COMMENT('Note: Uses JavaScript, which might not be executed in the Library Browser. Horizontal compression and vertical stretch.'); -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec4/graph-transformation-05.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec4/graph-transformation-05.pg index 1853c01456..266a8b7a90 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec4/graph-transformation-05.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec4/graph-transformation-05.pg @@ -33,7 +33,7 @@ loadMacros( "alignedChoice.pl", "unionTables.pl", "parserFunction.pl", - "AnswerFormatHelp.pl", + "PGgraphmacros.pl", "PGcourse.pl" ); @@ -113,7 +113,7 @@ $applet = JavaApplet( showResetIcon => "true", showToolBar => "false", showAlgebraInput =>"false", - }, + }, ); @@ -163,9 +163,9 @@ $gr -> lb(new Label ( 2,3.2,'d','blue','center','bottom')); TEXT( MODES(HTML=> -"${BBOLD}This question uses an interactive applet.${EBOLD} +"${BBOLD}This question uses an interactive applet.${EBOLD} Please be patient while it loads. If it does not load in -less than one minute or if you receive any errors, +less than one minute or if you receive any errors, try refreshing your browser or clicking the ${BITALIC}'return this question to its initial state button'${EITALIC} below the applet. $BR @@ -179,32 +179,32 @@ BEGIN_TEXT \{ ColumnTable( "Let \( f(x) \) be the function that connects -the points \( a = (-1,0), \)$SPACE \( b = (0,3), \)$SPACE -\( c = (1,0), \) $SPACE and \( d = (2,3) \) by line +the points \( a = (-1,0), \)$SPACE \( b = (0,3), \)$SPACE +\( c = (1,0), \) $SPACE and \( d = (2,3) \) by line segments in alphabetical order, as shown in the graph.". $BR. $BR. -"(a) The transformation \[\textstyle y = $f2 \] +"(a) The transformation \[\textstyle y = $f2 \] takes the points \( a, \)$SPACE -\( b, \)$SPACE \( c \)$SPACE and \( d \) on +\( b, \)$SPACE \( c \)$SPACE and \( d \) on the graph of \( y = f(x) \) to the following points: ". -AnswerFormatHelp("points"). +helpLink("points"). $BR. $al->print_q(). $BR. $BR. -"(b) Without using a calculator, -draw a graph of \( y = $f2 \) on paper -by using your answers from the previous part. -Using the interactive applet to the right, -enter your graph by clicking and draging -the points A, B, C and D to shift and scale the -blue graph (the gray graph is just for reference). -Click the ${BITALIC}Submit Answers${EITALIC} +"(b) Without using a calculator, +draw a graph of \( y = $f2 \) on paper +by using your answers from the previous part. +Using the interactive applet to the right, +enter your graph by clicking and draging +the points A, B, C and D to shift and scale the +blue graph (the gray graph is just for reference). +Click the ${BITALIC}Submit Answers${EITALIC} button to submit your graph for grading." , MODES( - TeX=>image(insertGraph($gr), width=>480, height=>400, tex_size=>900), + TeX=>image(insertGraph($gr), width=>480, height=>400, tex_size=>900), HTML=>$applet->insertAll( debug=>0, includeAnswerBox=>1, @@ -226,7 +226,7 @@ Context()->normalStrings; ########## -# Draw graph in applet -- this must come after the insertAll command which +# Draw graph in applet -- this must come after the insertAll command which # adds the default behavior to the HEADER_TEXT HEADER_TEXT(<List($A,$B,$C,$D)->cmp() ); COMMENT('Note: Uses JavaScript, which might not be executed in the Library Browser. Horizontal stretch and vertical compression.'); -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec4/graph-transformation-06.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec4/graph-transformation-06.pg index 6d51ef31fe..ba568d8a93 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec4/graph-transformation-06.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec4/graph-transformation-06.pg @@ -32,7 +32,7 @@ loadMacros( "alignedChoice.pl", "unionTables.pl", "parserFunction.pl", - "AnswerFormatHelp.pl", + "PGgraphmacros.pl", "PGcourse.pl" ); @@ -112,7 +112,7 @@ $applet = JavaApplet( showResetIcon => "true", showToolBar => "false", showAlgebraInput =>"false", - }, + }, ); @@ -162,9 +162,9 @@ $gr -> lb(new Label ( 2,1.2,'d','blue','center','bottom')); TEXT( MODES(HTML=> -"${BBOLD}This question uses an interactive applet.${EBOLD} +"${BBOLD}This question uses an interactive applet.${EBOLD} Please be patient while it loads. If it does not load in -less than one minute or if you receive any errors, +less than one minute or if you receive any errors, try refreshing your browser or clicking the ${BITALIC}'return this question to its initial state button'${EITALIC} below the applet. $BR @@ -178,32 +178,32 @@ BEGIN_TEXT \{ ColumnTable( "Let \( f(x) \) be the function that connects -the points \( a = (-1,0), \)$SPACE \( b = (0,1), \)$SPACE -\( c = (1,0), \) $SPACE and \( d = (2,1) \) by line +the points \( a = (-1,0), \)$SPACE \( b = (0,1), \)$SPACE +\( c = (1,0), \) $SPACE and \( d = (2,1) \) by line segments in alphabetical order, as shown in the graph.". $BR. $BR. -"(a) The transformation \[\textstyle y = $f2 \] +"(a) The transformation \[\textstyle y = $f2 \] takes the points \( a, \)$SPACE -\( b, \)$SPACE \( c \)$SPACE and \( d \) on +\( b, \)$SPACE \( c \)$SPACE and \( d \) on the graph of \( y = f(x) \) to the following points: ". -AnswerFormatHelp("points"). +helpLink("points"). $BR. $al->print_q(). $BR. $BR. -"(b) Without using a calculator, -draw a graph of \( y = $f2 \) on paper -by using your answers from the previous part. -Using the interactive applet to the right, -enter your graph by clicking and draging -the points A, B, C and D to shift and scale the -blue graph (the gray graph is just for reference). -Click the ${BITALIC}Submit Answers${EITALIC} +"(b) Without using a calculator, +draw a graph of \( y = $f2 \) on paper +by using your answers from the previous part. +Using the interactive applet to the right, +enter your graph by clicking and draging +the points A, B, C and D to shift and scale the +blue graph (the gray graph is just for reference). +Click the ${BITALIC}Submit Answers${EITALIC} button to submit your graph for grading." , MODES( - TeX=>image(insertGraph($gr), width=>480, height=>400, tex_size=>900), + TeX=>image(insertGraph($gr), width=>480, height=>400, tex_size=>900), HTML=>$applet->insertAll( debug=>0, includeAnswerBox=>1, @@ -225,7 +225,7 @@ Context()->normalStrings; ########## -# Draw graph in applet -- this must come after the insertAll command which +# Draw graph in applet -- this must come after the insertAll command which # adds the default behavior to the HEADER_TEXT HEADER_TEXT(<List($A,$B,$C,$D)->cmp() ); COMMENT('Note: Uses JavaScript, which might not be executed in the Library Browser. Horizontal shift and vertical shift.'); -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec4/graph-transformation-07.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec4/graph-transformation-07.pg index 74707a571e..2cb79c037a 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec4/graph-transformation-07.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec4/graph-transformation-07.pg @@ -33,7 +33,7 @@ loadMacros( "alignedChoice.pl", "unionTables.pl", "parserFunction.pl", - "AnswerFormatHelp.pl", + "PGgraphmacros.pl", "PGcourse.pl" ); @@ -113,7 +113,7 @@ $applet = JavaApplet( showResetIcon => "true", showToolBar => "false", showAlgebraInput =>"false", - }, + }, ); @@ -164,9 +164,9 @@ $gr -> lb(new Label ( 2,1.2,'d','blue','center','bottom')); TEXT( MODES(HTML=> -"${BBOLD}This question uses an interactive applet.${EBOLD} +"${BBOLD}This question uses an interactive applet.${EBOLD} Please be patient while it loads. If it does not load in -less than one minute or if you receive any errors, +less than one minute or if you receive any errors, try refreshing your browser or clicking the ${BITALIC}'return this question to its initial state button'${EITALIC} below the applet. $BR @@ -180,32 +180,32 @@ BEGIN_TEXT \{ ColumnTable( "Let \( f(x) \) be the function that connects -the points \( a = (-1,0), \)$SPACE \( b = (0,1), \)$SPACE -\( c = (1,0), \) $SPACE and \( d = (2,1) \) by line +the points \( a = (-1,0), \)$SPACE \( b = (0,1), \)$SPACE +\( c = (1,0), \) $SPACE and \( d = (2,1) \) by line segments in alphabetical order, as shown in the graph.". $BR. $BR. -"(a) The transformation \[\textstyle y = $f2 \] +"(a) The transformation \[\textstyle y = $f2 \] takes the points \( a, \)$SPACE -\( b, \)$SPACE \( c \)$SPACE and \( d \) on +\( b, \)$SPACE \( c \)$SPACE and \( d \) on the graph of \( y = f(x) \) to the following points: ". -AnswerFormatHelp("points"). +helpLink("points"). $BR. $al->print_q(). $BR. $BR. -"(b) Without using a calculator, -draw a graph of \( y = $f2 \) on paper -by using your answers from the previous part. -Using the interactive applet to the right, -enter your graph by clicking and draging -the points A, B, C and D to shift and scale the -blue graph (the gray graph is just for reference). -Click the ${BITALIC}Submit Answers${EITALIC} +"(b) Without using a calculator, +draw a graph of \( y = $f2 \) on paper +by using your answers from the previous part. +Using the interactive applet to the right, +enter your graph by clicking and draging +the points A, B, C and D to shift and scale the +blue graph (the gray graph is just for reference). +Click the ${BITALIC}Submit Answers${EITALIC} button to submit your graph for grading." , MODES( - TeX=>image(insertGraph($gr), width=>480, height=>400, tex_size=>900), + TeX=>image(insertGraph($gr), width=>480, height=>400, tex_size=>900), HTML=>$applet->insertAll( debug=>0, includeAnswerBox=>1, @@ -227,7 +227,7 @@ Context()->normalStrings; ########## -# Draw graph in applet -- this must come after the insertAll command which +# Draw graph in applet -- this must come after the insertAll command which # adds the default behavior to the HEADER_TEXT HEADER_TEXT(<List($A,$B,$C,$D)->cmp() ); COMMENT('Note: Uses JavaScript, which might not be executed in the Library Browser. Horizontal shift and vertical shift.'); -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec5/Q01.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec5/Q01.pg index a58c801d39..4df66baf1d 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec5/Q01.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec5/Q01.pg @@ -34,7 +34,7 @@ loadMacros( "extraAnswerEvaluators.pl", "parserPopUp.pl", "parserImplicitPlane.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -69,12 +69,12 @@ Consider the quadratic equation \( \ f(x) = $f \) $PAR a) What are the coordinates of the vertex? \{ ans_rule(10) \} -\{ AnswerFormatHelp("points") \} +\{ helpLink("points") \} $BR ${BITALIC}(Enter a point as \( (h,k) \) including parentheses.)${EITALIC} $PAR b) What is the axis of symmetry? \{ ans_rule(20) \} -\{ AnswerFormatHelp("equations") \}$BR +\{ helpLink("equations") \}$BR ${BITALIC}(Enter an equation for a vertical line of symmetry, not just a number.)${EITALIC} diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec5/Q04.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec5/Q04.pg index 45161027af..9392e68a89 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec5/Q04.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec5/Q04.pg @@ -33,7 +33,7 @@ loadMacros( "extraAnswerEvaluators.pl", "parserPopUp.pl", "parserImplicitPlane.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -60,12 +60,12 @@ Consider the quadratic equation \( \ v(t) = t^2 + $b t - $c \) $PAR a) What are the coordinates of the vertex? \{ ans_rule(10) \} -\{ AnswerFormatHelp("points") \} +\{ helpLink("points") \} $BR ${BITALIC}(Enter a point as \( (h,k) \) including parentheses.)${EITALIC} $PAR b) What is the axis of symmetry? \{ ans_rule(20) \} -\{ AnswerFormatHelp("equations") \}$BR +\{ helpLink("equations") \}$BR ${BITALIC}(Enter an equation for a vertical line of symmetry, not just a number.)${EITALIC} @@ -82,7 +82,7 @@ $PAR $BBOLD SOLUTION $EBOLD $BR To complete the square, we take one half of the coefficient of \(t\) -and square the result. This gives +and square the result. This gives \[ \left( \frac{1}{2} \cdot $b \right)^2 = $half_sq. \] $PAR Using this number, we can rewrite the formula for \(v(t)\): diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec5/Q05.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec5/Q05.pg index 3087d6f798..ead745d200 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec5/Q05.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec5/Q05.pg @@ -32,7 +32,7 @@ loadMacros( "PGstandard.pl", "parserImplicitPlane.pl", "parserVectorUtils.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -58,12 +58,12 @@ BEGIN_TEXT Consider the quadratic function \( \ w(x) = $a x^2 - $disp_b x + $c \). $PAR (a) The vertex of this parabola is at the point? \{ ans_rule(20) \} -\{ AnswerFormatHelp("points") \} +\{ helpLink("points") \} $BR ${BITALIC}(Enter a point as \( (h,k) \) including parentheses. Give exact coordinates, not approximations.)${EITALIC} $PAR (b) What is the axis of symmetry for this parabola? \{ ans_rule(20) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} $BR ${BITALIC}(Enter your answer in the form of an equation for a vertical line of symmetry, not just a number.)${EITALIC} diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec5/Q07.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec5/Q07.pg index 4340e0226e..56e9d05771 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec5/Q07.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec5/Q07.pg @@ -31,7 +31,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -56,7 +56,7 @@ BEGIN_TEXT Find the value of \( k \) so that the graph of \( $f \) passes through the point \( ($x , $y) \). $PAR \( k = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec5/Q08.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec5/Q08.pg index e59681904a..92c16fb43d 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec5/Q08.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec5/Q08.pg @@ -34,7 +34,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -64,7 +64,7 @@ and passes through the point \( ($x,$y) \). Find its equation. $PAR \( y = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec5/Q10.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec5/Q10.pg index 14b39cb95b..0117bb2a54 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec5/Q10.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec5/Q10.pg @@ -32,7 +32,7 @@ loadMacros( "PGstandard.pl", "PGgraphmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -90,7 +90,7 @@ BEGIN_TEXT Find a formula for the parabola through the points \( ($h,$k) \) and \( ($x,$y) \) whose graph is given below. $PAR \( f(x) = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $PAR $BCENTER $fig diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec5/Q14.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec5/Q14.pg index 2d1f1cd0cb..69fd826165 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec5/Q14.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec5/Q14.pg @@ -32,7 +32,7 @@ loadMacros( "PGstandard.pl", "PGgraphmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -85,7 +85,7 @@ BEGIN_TEXT Find a formula for the parabola through the points \( ($p,0), ($q,0), \) and \( ($x,$y) \) whose graph is given below. $PAR \( f(x) = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $PAR $BCENTER $fig diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec5/Q20.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec5/Q20.pg index f3f1330bdd..35d8f03f31 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec5/Q20.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec5/Q20.pg @@ -31,7 +31,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -58,7 +58,7 @@ BEGIN_TEXT Find a formula for the quadratic function whose graph has its vertex at \( ($h,$k) \) and its \(y\)-intercept at \( y = $y\). $PAR \( f(x) = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec5/Q22.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec5/Q22.pg index 5441d92458..52d5e48ee9 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec5/Q22.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec5/Q22.pg @@ -31,7 +31,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -55,7 +55,7 @@ BEGIN_TEXT Find a formula for the quadratic function whose graph has \(y\)-intercept at \( y = $y \) and zeros at \( x = $p \) and \( x = $q \). $PAR \( f(x) = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec5/Q28.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec5/Q28.pg index d815007774..38a4121c34 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec5/Q28.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec5/Q28.pg @@ -31,7 +31,7 @@ loadMacros( "extraAnswerEvaluators.pl", "parserPopUp.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "contextLimitedPolynomial.pl", "parserVectorUtils.pl", @@ -152,12 +152,12 @@ $PAR (a) Using graph transformations, give the formula for \( g(x) \) in terms of \( f(x) \). Your answer should be of the form \( g(x) = m \ f( n \ x + p) + q \) where \(m\), \(n\), \(p\), and/or \(q\) are constants you determine. $BR \( g(x) = \) \{ ans_rule(35) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $PAR (b) Is \( g(x) \) a quadratic function? If so, find its standard form \( a x^2 + b x + c \). If it is not quadratic, enter ${BITALIC}NONE${EITALIC} in all of the blanks below. $BR \( g(x) = \) \{ ans_rule(35) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $PAR (c) On a piece of paper, sketch a graph of \( g(x) \) labeling all of the important features. $BR @@ -179,14 +179,14 @@ $BR (d) Find the coordinates of the vertex point \( P \) (in red) on the graph you selected above. $BR \( P = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("points") \} +\{ helpLink("points") \} $BR ${BITALIC}Enter a point as \( (a,b) \) including parentheses.$EITALIC $PAR (e) Find the coordinates of the y-intercept point \( Q \) (in black) on the graph you selected above. $BR \( Q = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("points") \} +\{ helpLink("points") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec5/Q32.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec5/Q32.pg index a8d4de8639..dbc7e9f40d 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec5/Q32.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Sec5/Q32.pg @@ -18,17 +18,17 @@ ## Problem1('32') ## KEYWORDS('quadratic','vertex','axis of symmetry','zeros') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "PGchoicemacros.pl", "PGgraphmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); - + TEXT(beginproblem()); # standard preamble to each problem. @@ -52,7 +52,7 @@ $mc1->qa("Which of the two functions below gives a function that has the same $mc1->extra("\( P(x) - $dx \)"); $mc2 = new_multiple_choice(); -$mc2->qa("Which of the two functions below gives gives a function where the +$mc2->qa("Which of the two functions below gives gives a function where the price per cup that produces the maximum profit remains unchanged?", "\( P(x)+$dy \)"); $mc2->extra("\( P(x+$dy) \)"); @@ -63,32 +63,32 @@ An espresso stand finds that its weekly profit is a function of the price, \( x \), it charges per cup. If \( x \) is in dollars, the weekly profit is \( P(x)=$a x^2 + $b x + $c \) dollars. $BR $BR -(a) What is the maximum weekly profit. $DOLLAR \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +(a) What is the maximum weekly profit. $DOLLAR \{ ans_rule(20) \} +\{ helpLink("numbers") \} (Round to the nearest cent and do not include any commas in your answer.) $BR $BR -(b) What price per cup that produces that maximum profit? $DOLLAR \{ ans_rule(10) \} \{ AnswerFormatHelp("numbers") \} +(b) What price per cup that produces that maximum profit? $DOLLAR \{ ans_rule(10) \} \{ helpLink("numbers") \} (Round to the nearest cent.) $BR $BR -(c) +(c) \{ $mc1->print_q() \} \{ $mc1->print_a() \} $BR -(d) Based on the function in your answer to (c) above, what price per cup of produces that maximum profit? +(d) Based on the function in your answer to (c) above, what price per cup of produces that maximum profit? $DOLLAR \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} (Round to the nearest cent.) $BR $BR -(e) +(e) \{ $mc2->print_q() \} \{ $mc2->print_a() \} $BR -(f) Based on the function in your answer to (e) above, what is that maximum weekly profit? -$DOLLAR \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +(f) Based on the function in your answer to (e) above, what is that maximum weekly profit? +$DOLLAR \{ ans_rule(20) \} +\{ helpLink("numbers") \} (Round to the nearest cent.) END_TEXT @@ -117,11 +117,11 @@ $graph->lb(new Label(-.1,1600,"profit",'black','right','top')); $graph->lb(new Label(1.25,1641.25,"($h, $k)",'black','center','bottom')); $point = closed_circle( 1.25,1641.25, black ); $graph -> stamps($point); -plot_functions( $graph, $f); +plot_functions( $graph, $f); $fig = image(insertGraph($graph),width => 200,height => 200,tex_size => 600); SOLUTION(EV3(<<'END_SOLUTION')); -$BR $SPACE $BR +$BR $SPACE $BR $BBOLD SOLUTION $EBOLD $BR Use a graphing calculator or computer to sketch a graph of the @@ -145,7 +145,7 @@ f) The maximum profit is now ${DOLLAR}$k + ${DOLLAR}$dy = ${DOLLAR}$new_P . $BR END_SOLUTION - + ; ENDDOCUMENT(); diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Tools/Connally3-5-Tools-02.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Tools/Connally3-5-Tools-02.pg index 3c257f4bc6..fff028f506 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Tools/Connally3-5-Tools-02.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Tools/Connally3-5-Tools-02.pg @@ -22,12 +22,12 @@ #################################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -57,7 +57,7 @@ $ansb = Formula("-$hh"); Context()->texStrings; BEGIN_TEXT Complete the square by writing \( $expr \) in the form -\( (y-h)^2+k \). Note: the numbers \( h \) and \( k \) +\( (y-h)^2+k \). Note: the numbers \( h \) and \( k \) can be positive or negative. $BR $BR @@ -65,7 +65,7 @@ $BR \{ ans_rule(10) \} \( \big)^2 + \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Tools/Connally3-5-Tools-04.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Tools/Connally3-5-Tools-04.pg index 43eb7017a1..345ce4f355 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Tools/Connally3-5-Tools-04.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Tools/Connally3-5-Tools-04.pg @@ -36,7 +36,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -80,7 +80,7 @@ $PAR \{ ans_rule(10) \} \( \big)^2 + \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Tools/Connally3-5-Tools-05.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Tools/Connally3-5-Tools-05.pg index 80c2352551..322d9a4da2 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Tools/Connally3-5-Tools-05.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Tools/Connally3-5-Tools-05.pg @@ -22,12 +22,12 @@ #################################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -62,7 +62,7 @@ $ansb = Formula("-$hh-$b")->reduce; Context()->texStrings; BEGIN_TEXT Complete the square by writing \( $expr \) in the form -\( ($var-h)^2+k \). Note: the numbers \( h \) and \( k \) +\( ($var-h)^2+k \). Note: the numbers \( h \) and \( k \) can be positive or negative. $BR $BR @@ -70,7 +70,7 @@ $BR \{ ans_rule(10) \} \( \big)^2 + \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Tools/Connally3-5-Tools-06.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Tools/Connally3-5-Tools-06.pg index b6df8d8a8f..84ea44125e 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Tools/Connally3-5-Tools-06.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Tools/Connally3-5-Tools-06.pg @@ -36,7 +36,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -81,7 +81,7 @@ $PAR \{ ans_rule(10) \} \( \big)^2 + \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Tools/Connally3-5-Tools-10.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Tools/Connally3-5-Tools-10.pg index 4d38167e71..7e2ca0fb08 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Tools/Connally3-5-Tools-10.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Tools/Connally3-5-Tools-10.pg @@ -36,7 +36,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -81,7 +81,7 @@ $PAR \{ ans_rule(10) \} \( \big)^2 + \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Tools/Connally3-5-Tools-12.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Tools/Connally3-5-Tools-12.pg index e56f7d4c2d..e004789def 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Tools/Connally3-5-Tools-12.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Tools/Connally3-5-Tools-12.pg @@ -36,7 +36,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -80,7 +80,7 @@ $PAR \{ ans_rule(10) \} \( \big)^2 + \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Tools/Connally3-5-Tools-14.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Tools/Connally3-5-Tools-14.pg index 77df1c04f4..cccf3fed4e 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Tools/Connally3-5-Tools-14.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Tools/Connally3-5-Tools-14.pg @@ -36,7 +36,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -85,7 +85,7 @@ $PAR \{ ans_rule(10) \} \( \big)^2 + \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Tools/Connally3-5-Tools-15.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Tools/Connally3-5-Tools-15.pg index 75db990d69..d3065e0a5a 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Tools/Connally3-5-Tools-15.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Tools/Connally3-5-Tools-15.pg @@ -36,7 +36,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -79,7 +79,7 @@ $PAR \{ ans_rule(10) \} \( \big)^2 + \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Tools/Connally3-5-Tools-18.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Tools/Connally3-5-Tools-18.pg index 1c81043892..200311d0e1 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Tools/Connally3-5-Tools-18.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Tools/Connally3-5-Tools-18.pg @@ -36,7 +36,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserVectorUtils.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -72,7 +72,7 @@ as a point \( (h,k) \) including parentheses. $PAR The vertex is at the point \{ ans_rule(20) \} -\{ AnswerFormatHelp("points") \} +\{ helpLink("points") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Tools/Connally3-5-Tools-22.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Tools/Connally3-5-Tools-22.pg index b2aa59e3e2..9ebd28748e 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Tools/Connally3-5-Tools-22.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Tools/Connally3-5-Tools-22.pg @@ -36,7 +36,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserVectorUtils.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -72,7 +72,7 @@ as a point \( (h,k) \) including parentheses. $PAR The vertex is at the point \{ ans_rule(20) \} -\{ AnswerFormatHelp("points") \} +\{ helpLink("points") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Tools/Connally3-5-Tools-25.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Tools/Connally3-5-Tools-25.pg index ae5adc70e9..baa6a726a4 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Tools/Connally3-5-Tools-25.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Tools/Connally3-5-Tools-25.pg @@ -36,7 +36,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserVectorUtils.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -74,7 +74,7 @@ as a point \( (h,k) \) including parentheses. $PAR The vertex is at the point \{ ans_rule(20) \} -\{ AnswerFormatHelp("points") \} +\{ helpLink("points") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Tools/Connally3-5-Tools-27.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Tools/Connally3-5-Tools-27.pg index fec3f489ea..c9df5a9277 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Tools/Connally3-5-Tools-27.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Tools/Connally3-5-Tools-27.pg @@ -22,12 +22,12 @@ #################################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -61,7 +61,7 @@ Solve \( $eqn \) by completing the square. If there is more than one correct an $BR $BR \( $var = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Tools/Connally3-5-Tools-32.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Tools/Connally3-5-Tools-32.pg index bc755ed34e..95b5e74d7b 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Tools/Connally3-5-Tools-32.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Tools/Connally3-5-Tools-32.pg @@ -36,7 +36,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -66,7 +66,7 @@ BEGIN_TEXT Solve \( $eqn \) by completing the square. If there is more than one correct answer, enter your answers as a comma separated list. If there are no answers, enter ${BITALIC}NONE.${EITALIC} $PAR \( $var = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Tools/Connally3-5-Tools-43.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Tools/Connally3-5-Tools-43.pg index 4025592969..8542ca75bf 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Tools/Connally3-5-Tools-43.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Tools/Connally3-5-Tools-43.pg @@ -35,7 +35,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -72,7 +72,7 @@ BEGIN_TEXT Solve \( $eqn \) by factoring, completing the square, or the quadratic formula. If there is more than one correct answer, enter your answers as a comma separated list. If there are no answers, enter ${BITALIC}NONE.${EITALIC} $PAR \( $var = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Tools/Connally3-5-Tools-44.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Tools/Connally3-5-Tools-44.pg index 0fc6feee1f..5f6189252e 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Tools/Connally3-5-Tools-44.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Tools/Connally3-5-Tools-44.pg @@ -21,12 +21,12 @@ #################################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -63,7 +63,7 @@ Solve \( $eqn \) by factoring, completing the square, or the quadratic formula. $BR $BR \( $var = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Tools/Connally3-5-Tools-48.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Tools/Connally3-5-Tools-48.pg index 80c5848b46..0560aa1464 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Tools/Connally3-5-Tools-48.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap5Tools/Connally3-5-Tools-48.pg @@ -22,12 +22,12 @@ #################################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -59,7 +59,7 @@ Solve \( $eqn \) by completing the square. If there is more than one correct an $BR $BR \( $var = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Review/Q02.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Review/Q02.pg index 47373e8dc8..eb874f9f0e 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Review/Q02.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Review/Q02.pg @@ -34,7 +34,7 @@ loadMacros( "PGgraphmacros.pl", "MathObjects.pl", "PGchoicemacros.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -88,7 +88,7 @@ $BCENTER \{ image(insertGraph($graph[0]),'width'=>400,'height'=>400,'tex_size'=>400) \} $ECENTER $BR -\( Z = \) \{ ans_rule(25) \} \{ AnswerFormatHelp('points') \} +\( Z = \) \{ ans_rule(25) \} \{ helpLink('points') \} $BR (retain at least two decimal places) diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Review/Q55.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Review/Q55.pg index fd13e3a726..516c1e8139 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Review/Q55.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Review/Q55.pg @@ -31,7 +31,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl", "parserNumberWithUnits.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -55,7 +55,7 @@ How many miles on the surface of Mars correspond to $word[$i] of latitude? (The radius of Mars is approximately 2110 miles.) $PAR $word[$i] of latitude = -\{ ans_rule(20) \} (include units: \{ AnswerFormatHelp('units') \}) +\{ ans_rule(20) \} (include units: \{ helpLink('units') \}) END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec1/Q02.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec1/Q02.pg index 5faa759fe6..fb4ed8bb7f 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec1/Q02.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec1/Q02.pg @@ -31,7 +31,7 @@ loadMacros( "PGstandard.pl", "PGgraphmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -73,7 +73,7 @@ If so enter the value of its period in the blank. If the graph does not appear to be periodic enter ${BTT}NONE${ETT}. $PAR The period is \{ ans_rule(10) \} (Enter NONE if not periodic.) -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $PAR $BCENTER $fig diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec1/Q04.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec1/Q04.pg index 8f46654f3d..ff86f39503 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec1/Q04.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec1/Q04.pg @@ -31,7 +31,7 @@ loadMacros( "PGstandard.pl", "PGgraphmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -76,7 +76,7 @@ If so enter the value of its period in the blank. If the graph does not appear to be periodic enter ${BTT}NONE${ETT}. $PAR The period is \{ ans_rule(10) \} (Enter NONE if not periodic.) -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $PAR $BCENTER $fig diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec1/Q06.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec1/Q06.pg index 83865fa155..b53f00fbff 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec1/Q06.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec1/Q06.pg @@ -31,7 +31,7 @@ loadMacros( "PGstandard.pl", "PGgraphmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -80,7 +80,7 @@ If so enter the value of its period in the blank. If the graph does not appear to be periodic enter ${BTT}NONE${ETT}. $PAR The period is \{ ans_rule(10) \} (Enter NONE if not periodic.) -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $PAR $BCENTER $fig diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec1/Q07.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec1/Q07.pg index f417326c57..850f004083 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec1/Q07.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec1/Q07.pg @@ -32,7 +32,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -62,7 +62,7 @@ $BCENTER $ECENTER $PAR The period is \{ ans_rule(10) \} (Enter NONE if not periodic.) -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec1/Q08.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec1/Q08.pg index f7e716d4fa..ad36fe2c18 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec1/Q08.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec1/Q08.pg @@ -30,7 +30,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -66,7 +66,7 @@ $BCENTER $ECENTER $PAR The period is \{ ans_rule(10) \} (Enter NONE if not periodic.) -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec1/Q10.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec1/Q10.pg index a8a987c772..d3684ed30a 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec1/Q10.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec1/Q10.pg @@ -33,7 +33,7 @@ loadMacros( "PGstandard.pl", "PGgraphmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "PGcourse.pl" ); @@ -96,13 +96,13 @@ ColumnTable( "Estimate the period, amplitude, and midline of the graph below.". $BR. $BR. -"(a) The period of the graph is ".ans_rule(10).$SPACE.AnswerFormatHelp("numbers"). +"(a) The period of the graph is ".ans_rule(10).$SPACE.helpLink("numbers"). $BR. $BR. -"(b) The midline of the graph is ".ans_rule(10).$SPACE.AnswerFormatHelp("numbers"). +"(b) The midline of the graph is ".ans_rule(10).$SPACE.helpLink("numbers"). $BR. $BR. -"(c) The amplitude of the graph is ".ans_rule(10).$SPACE.AnswerFormatHelp("numbers") +"(c) The amplitude of the graph is ".ans_rule(10).$SPACE.helpLink("numbers") , $BCENTER. $fig. diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec1/Q12.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec1/Q12.pg index 112b8da775..1c2d2c15d0 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec1/Q12.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec1/Q12.pg @@ -32,7 +32,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -69,13 +69,13 @@ $BCENTER $ECENTER $BR (a) The period of the graph is \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $PAR (b) The midline of the graph is \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $PAR (c) The amplitude of the graph is \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec1/Q16.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec1/Q16.pg index 638de1a944..1007346079 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec1/Q16.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec1/Q16.pg @@ -38,7 +38,7 @@ loadMacros( "unionTables.pl", "MathObjects.pl", "parserNumberWithUnits.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec2/Q02.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec2/Q02.pg index 46df85c6ba..a064a30a60 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec2/Q02.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec2/Q02.pg @@ -32,7 +32,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -52,7 +52,7 @@ BEGIN_TEXT What angle (in degrees) corresponds to $a rotations around the unit circle? $PAR $a rotations is an angle of \{ ans_rule(8) \} degrees. -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec2/Q03.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec2/Q03.pg index deb45dc23d..d5da7659d1 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec2/Q03.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec2/Q03.pg @@ -32,7 +32,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -53,7 +53,7 @@ BEGIN_TEXT What angle (in degrees) corresponds to $b rotations around the unit circle? $PAR $b rotations is an angle of \{ ans_rule(8) \} degrees. -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec2/Q04.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec2/Q04.pg index 1a00520b7e..0bc07ebf5c 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec2/Q04.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec2/Q04.pg @@ -32,7 +32,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -52,7 +52,7 @@ BEGIN_TEXT What angle (in degrees) corresponds to $c rotations around the unit circle? $PAR $c rotations is an angle of \{ ans_rule(8) \} degrees. -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec2/Q12.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec2/Q12.pg index 029dccd466..cfd26d4d3e 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec2/Q12.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec2/Q12.pg @@ -32,7 +32,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserVectorUtils.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -69,7 +69,7 @@ your answers to the three decimal places. Enter a point as \( (a,b) \) including parentheses. $PAR The point \( P \) is \{ ans_rule(20) \} -\{ AnswerFormatHelp("points") \} +\{ helpLink("points") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec2/Q18.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec2/Q18.pg index d252ad28a7..c9bc5406a8 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec2/Q18.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec2/Q18.pg @@ -32,7 +32,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserVectorUtils.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -60,7 +60,7 @@ your answers to the three decimal places. Enter a point as \( (a,b) \) including parentheses. $PAR The point \( P \) is \{ ans_rule(20) \} -\{ AnswerFormatHelp("points") \} +\{ helpLink("points") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec2/Q20.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec2/Q20.pg index 3a379e083f..ce66a189f0 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec2/Q20.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec2/Q20.pg @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserVectorUtils.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -55,7 +55,7 @@ your answers to the three decimal places. Enter a point as \( (a,b) \) including parentheses. $PAR The point \( P \) is \{ ans_rule(20) \} -\{ AnswerFormatHelp("points") \} +\{ helpLink("points") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec2/Q24.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec2/Q24.pg index eefe73bae7..22bff9a63e 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec2/Q24.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec2/Q24.pg @@ -32,7 +32,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserVectorUtils.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -59,7 +59,7 @@ your answers to the three decimal places. Enter a point as \( (a,b) \) including parentheses. $PAR The point \( P \) is \{ ans_rule(20) \} -\{ AnswerFormatHelp("points") \} +\{ helpLink("points") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec2/Q26.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec2/Q26.pg index f7f9a69c89..503c8d1305 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec2/Q26.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec2/Q26.pg @@ -32,7 +32,7 @@ loadMacros( "PGstandard.pl", "PGgraphmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -101,7 +101,7 @@ cosine as \( $angle^{\circ} \). (That is, find \( \theta \) satisfying \( \cos(\theta) = \cos($angle^\circ) \).) $BR \( \theta = \) \{ ans_rule(10) \} degrees. -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $PAR (b) Find another angle \( \theta \) between \( 0^\circ \) and \( 360^\circ \) that has the same @@ -109,7 +109,7 @@ sine as \( $angle^{\circ} \). (That is, find \( \theta \) satisfying \( \sin(\theta) = \sin($angle^\circ) \).) $BR \( \theta = \) \{ ans_rule(10) \} degrees. -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec2/Q27.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec2/Q27.pg index 7929108023..194e06734b 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec2/Q27.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec2/Q27.pg @@ -32,7 +32,7 @@ loadMacros( "PGstandard.pl", "PGgraphmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -99,7 +99,7 @@ cosine as \( $angle^{\circ} \). (That is, find \( \phi \) satisfying \( \cos(\phi) = \cos($angle^\circ) \).) $BR \( \phi = \) \{ ans_rule(10) \} degrees. -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $PAR (b) Find another angle \( \phi \) between \( 0^\circ \) and \( 360^\circ \) that has the same @@ -107,7 +107,7 @@ sine as \( $angle^{\circ} \). (That is, find \( \phi \) satisfying \( \sin(\phi) = \sin($angle^\circ) \).) $BR \( \phi = \) \{ ans_rule(10) \} degrees. -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec3/Q02.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec3/Q02.pg index 2a41ab899b..6d247f6b1c 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec3/Q02.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec3/Q02.pg @@ -32,7 +32,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -63,11 +63,11 @@ Context()->texStrings; BEGIN_TEXT What is the exact radian angle measure for \( $x^{\circ} \) as a fraction of \( \pi \)? \{ ans_rule(10) \} radians -\{ AnswerFormatHelp("angles") \} +\{ helpLink("angles") \} $PAR What is a decimal approximation for the radian angle measure for \( $x^{\circ} \) accurate to three decimal places? \{ ans_rule(10) \} radians -\{ AnswerFormatHelp("decimals") \} +\{ helpLink("decimals") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec3/Q04.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec3/Q04.pg index b65ae48832..09954b0b20 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec3/Q04.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec3/Q04.pg @@ -32,7 +32,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -63,11 +63,11 @@ Context()->texStrings; BEGIN_TEXT What is the exact radian angle measure for \( $x^{\circ} \) as a fraction of \( \pi \)? \{ ans_rule(10) \} radians -\{ AnswerFormatHelp("angles") \} +\{ helpLink("angles") \} $PAR What is a decimal approximation for the radian angle measure for \( $x^{\circ} \) accurate to three decimal places? \{ ans_rule(10) \} radians -\{ AnswerFormatHelp("decimals") \} +\{ helpLink("decimals") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec3/Q07.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec3/Q07.pg index 27f5e302b0..11147d781e 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec3/Q07.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec3/Q07.pg @@ -28,7 +28,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -60,11 +60,11 @@ Context()->texStrings; BEGIN_TEXT What is the exact radian angle measure for \( $x^{\circ} \) as a fraction of \( \pi \)? \{ ans_rule(10) \} radians -\{ AnswerFormatHelp("angles") \} +\{ helpLink("angles") \} $PAR What is a decimal approximation for the radian angle measure for \( $x^{\circ} \) accurate to three decimal places? \{ ans_rule(10) \} radians -\{ AnswerFormatHelp("decimals") \} +\{ helpLink("decimals") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec3/Q08.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec3/Q08.pg index b6d22128f0..f7640e789a 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec3/Q08.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec3/Q08.pg @@ -28,7 +28,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -58,11 +58,11 @@ Context()->texStrings; BEGIN_TEXT What is the exact radian angle measure for \( $x^{\circ} \)? \{ ans_rule(10) \} radians -\{ AnswerFormatHelp("angles") \} +\{ helpLink("angles") \} $PAR What is a decimal approximation for the radian angle measure for \( $x^{\circ} \) accurate to three decimal places? \{ ans_rule(10) \} radians -\{ AnswerFormatHelp("decimals") \} +\{ helpLink("decimals") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec3/Q09.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec3/Q09.pg index 78ae25f6d8..314896fe1a 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec3/Q09.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec3/Q09.pg @@ -32,7 +32,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -52,7 +52,7 @@ $showPartialCorrectAnswers = 1; Context()->texStrings; BEGIN_TEXT An angle of \( \displaystyle $a[$i] \) radians can be converted to an angle of \{ ans_rule(5) \} degrees. -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec3/Q10.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec3/Q10.pg index 8fd9039696..fa7aa14c24 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec3/Q10.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec3/Q10.pg @@ -32,7 +32,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -49,7 +49,7 @@ $showPartialCorrectAnswers = 1; Context()->texStrings; BEGIN_TEXT An angle of \( $x[1] \pi \) radians can be converted to an angle of \{ ans_rule(5) \} degrees. -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec3/Q12.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec3/Q12.pg index b8751a1cc2..2f4be204e5 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec3/Q12.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec3/Q12.pg @@ -33,7 +33,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -52,7 +52,7 @@ $showPartialCorrectAnswers = 1; Context()->texStrings; BEGIN_TEXT An angle of \( $x[2] \) radians can be converted to an angle of \{ ans_rule(15) \} degrees. (Give an exact answer as a fraction, not a decimal approximation.) -\{ AnswerFormatHelp("fractions") \} +\{ helpLink("fractions") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec3/Q18.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec3/Q18.pg index c2f7b4f2dc..15873a8db2 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec3/Q18.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec3/Q18.pg @@ -33,7 +33,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -56,7 +56,7 @@ BEGIN_TEXT What angle (in radians) corresponds to $n[$i] rotations around the unit circle? $PAR \{ ans_rule(15) \} radians (Give an exact answer as a fraction, not a decimal approximation.) -\{ AnswerFormatHelp("angles") \} +\{ helpLink("angles") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec3/Q20.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec3/Q20.pg index 6158e0150c..41c2063956 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec3/Q20.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec3/Q20.pg @@ -32,7 +32,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -61,7 +61,7 @@ BEGIN_TEXT Find the length of an arc on a circle of radius \( $radius \) corresponding to an angle of \( $angle^{\circ} \). $PAR Arc length = \{ ans_rule(20) \} units. (Give an exact answer as a fraction, not a decimal approximation.) -\{ AnswerFormatHelp("fractions") \} +\{ helpLink("fractions") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec3/Q22.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec3/Q22.pg index 53284c263c..2f78379123 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec3/Q22.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec3/Q22.pg @@ -32,7 +32,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -61,7 +61,7 @@ BEGIN_TEXT Find the length of an arc on a circle of radius \( $radius \) corresponding to an angle of \( \displaystyle \left($angle\right)^{\circ} \). $PAR Arc length = \{ ans_rule(20) \} units. (Give an exact answer as a fraction, not a decimal approximation.) -\{ AnswerFormatHelp("fractions") \} +\{ helpLink("fractions") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec3/Q26.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec3/Q26.pg index 4ae117acc6..e857c4b865 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec3/Q26.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec3/Q26.pg @@ -36,7 +36,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl", "parserNumberWithUnits.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -56,7 +56,7 @@ BEGIN_TEXT What is the length of an arc cut off by an angle of $a radians on a circle of radius $length inches? $PAR -\{ ans_rule(18) \} (include units: \{ AnswerFormatHelp("units") \}) +\{ ans_rule(18) \} (include units: \{ helpLink("units") \}) $BR END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec3/Q28.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec3/Q28.pg index c40386b18b..483fc967c5 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec3/Q28.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec3/Q28.pg @@ -34,7 +34,7 @@ loadMacros( "PGgraphmacros.pl", "MathObjects.pl", "PGchoicemacros.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -99,7 +99,7 @@ $PAR \{ ans_rule(10) \} degrees $PAR (d) The point \(P\) is \{ ans_rule(20) \} -\{ AnswerFormatHelp("points") \}. +\{ helpLink("points") \}. END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec3/Q41.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec3/Q41.pg index fdba30997c..ca746abea2 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec3/Q41.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec3/Q41.pg @@ -35,7 +35,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl", "parserNumberWithUnits.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -62,7 +62,7 @@ If a weight hanging on a string of length $len feet swings through through which the weight moves from one high point to the next high point? $PAR \{ ans_rule(20) \} (include units in your answer: -\{ AnswerFormatHelp("units") \}) +\{ helpLink("units") \}) $BR END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec3/Q42.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec3/Q42.pg index 3b1c7f0a42..3db5f2287b 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec3/Q42.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec3/Q42.pg @@ -35,7 +35,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl", "parserNumberWithUnits.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -63,7 +63,7 @@ How far does the tip of the minute hand of a clock move in $time minutes if the hand is $len inches long? $PAR \{ ans_rule(18) \} (include units in your answer: -\{ AnswerFormatHelp("units") \}) +\{ helpLink("units") \}) END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec4/Q02.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec4/Q02.pg index 7669221623..28a7d49f8c 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec4/Q02.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec4/Q02.pg @@ -22,7 +22,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserImplicitPlane.pl", "PGcourse.pl" ); @@ -57,10 +57,10 @@ Find amplitude and midline of the function $f[$i] $BR $BR (a) The midline is the line with equation \{ ans_rule(10) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} $BR (b) The amplitude is \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT ANS(ImplicitPlane("y=$mid")->cmp() ); @@ -70,9 +70,9 @@ ANS(Compute("$amp")->cmp() ); #ANS(num_cmp( $amp ) ); SOLUTION(EV3(<<'END_SOLUTION')); -$BR $SPACE $BR +$BR $SPACE $BR $BBOLD SOLUTION $EBOLD -$BR +$BR Since the maximum value of the $which[$i] function is \( 1 \) and the minimum is \( -1 \), the expression \( $no_mid[$i] \) varies between \( - $amp \) and \( $amp \) in value. The $word of $k means that $f[$i] varies between \( $min \) and \( $max \). @@ -83,7 +83,7 @@ b) The amplitude is the variation from the midline to the maximum or minimum. I END_SOLUTION - + ; ENDDOCUMENT(); diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec4/Q04.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec4/Q04.pg index 049b8bf692..6878a7cf82 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec4/Q04.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec4/Q04.pg @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "PGgraphmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserImplicitPlane.pl", "unionTables.pl", "PGcourse.pl" @@ -96,10 +96,10 @@ ColumnTable( "Find the midline and amplitude of the graph of the blue function.". $BR. $BR. -"(a) The midline of the graph is the line with equation ".ans_rule(10).$SPACE.AnswerFormatHelp("equations"). +"(a) The midline of the graph is the line with equation ".ans_rule(10).$SPACE.helpLink("equations"). $BR. $BR. -"(b) The amplitude of the graph is ".ans_rule(10).$SPACE.AnswerFormatHelp("numbers"), +"(b) The amplitude of the graph is ".ans_rule(10).$SPACE.helpLink("numbers"), image(insertGraph($graph[1]),'width'=>400,'height'=>400,'tex_size'=>700). $BR.$BCENTER."(Click on graph to enlarge)".$ECENTER, indent => 0, separation => 30, valign => "TOP" diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec4/Q08.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec4/Q08.pg index 49afeda1a7..f905a326ba 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec4/Q08.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec4/Q08.pg @@ -31,7 +31,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl", "parserNumberWithUnits.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -53,10 +53,10 @@ minute hand is $a cm long, and the middle of the clock face is $k cm above the ground. $PAR (a) The midline of the graph of \(f(t)\) is \( y = \) \{ ans_rule(10) \} -(include units: \{ AnswerFormatHelp("units") \}) +(include units: \{ helpLink("units") \}) $PAR (b) The amplitude of the graph of \(f(t)\) is \{ ans_rule(10) \} -(include units: \{ AnswerFormatHelp("units") \}) +(include units: \{ helpLink("units") \}) END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec4/Q12.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec4/Q12.pg index c8383579ae..5bb6df2a6f 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec4/Q12.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec4/Q12.pg @@ -23,7 +23,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -91,7 +91,7 @@ Without using a calculator, find the exact value as fraction (not a decimal appr $BR $BR \( \displaystyle $func\left( $anglestex[$i] \right) \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("fractions") \} +\{ helpLink("fractions") \} END_TEXT Context()->normalStrings; @@ -107,9 +107,9 @@ ENDDOCUMENT(); SOLUTION(EV3(<<'END_SOLUTION')); -$BR $SPACE $BR +$BR $SPACE $BR $BBOLD SOLUTION $EBOLD -$BR +$BR The angle \( $angletex[$i] \) is in the first quadrant. The value of the $func in first quadrant will be positive, and it will be equal to the \( $which \) value of the point on the unit circle after a rotation of \( $deg[$a-1]^{\circ} \). Therefore \( $f[1] = $show[2*$a+$i] \). $BR END_SOLUTION @@ -140,7 +140,7 @@ $ga = $g->eval(x=>"$a"); "\frac{\sqrt{2}}{2}","- \frac{\sqrt{2}}{2}", ### F,G - 5,6 "\frac{1}{2}","- \frac{1}{2}"); ### H,I - 7,8 -@deg = ("30","45","60"); +@deg = ("30","45","60"); @ans = ("B","A","D","H","F","F","H","D", "A","B","I","D","G","F","E","H", diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec4/Q13.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec4/Q13.pg index fc52a52b5b..6c39531204 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec4/Q13.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec4/Q13.pg @@ -23,7 +23,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -91,7 +91,7 @@ Without using a calculator, find the exact value as fraction (not a decimal appr $BR $BR \( \displaystyle $func\left( $anglestex[$i] \right) \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("fractions") \} +\{ helpLink("fractions") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec4/Q14.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec4/Q14.pg index 69e2a6a2aa..8d56a3c0b5 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec4/Q14.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec4/Q14.pg @@ -23,7 +23,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -91,7 +91,7 @@ Without using a calculator, find the exact value as fraction (not a decimal appr $BR $BR \( \displaystyle $func\left( $anglestex[$i] \right) \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("fractions") \} +\{ helpLink("fractions") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec4/Q15.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec4/Q15.pg index 7b57f3f041..2b65977377 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec4/Q15.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec4/Q15.pg @@ -23,7 +23,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -91,7 +91,7 @@ Without using a calculator, find the exact value as fraction (not a decimal appr $BR $BR \( \displaystyle $func\left( $anglestex[$i] \right) \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("fractions") \} +\{ helpLink("fractions") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec4/Q18.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec4/Q18.pg index ea366ecfb2..5b0d1c59d5 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec4/Q18.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec4/Q18.pg @@ -25,7 +25,7 @@ loadMacros( "PGgraphmacros.pl", "MathObjects.pl", "PGchoicemacros.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "PGcourse.pl" ); @@ -47,11 +47,11 @@ $graph[0]->lb(new Label(.8,-.05,"A",'black','center','top')); $graph[0]->lb(new Label(2.34159,-.05,"B",'black','center','top')); $graph[0]->lb(new Label(3.14159,-.05,"pi",'black','center','top')); $graph[0]->lb(new Label(2.5,.62,"y = sin(x)",'black','left','bottom')); -$graph[0]->moveTo(.8,-.02); +$graph[0]->moveTo(.8,-.02); $graph[0]->lineTo(.8,$y1,'black'); -$graph[0]->moveTo(2.34159,-.02); +$graph[0]->moveTo(2.34159,-.02); $graph[0]->lineTo(2.34159,$y2,'black'); -$graph[0]->moveTo(pi,.02); +$graph[0]->moveTo(pi,.02); $graph[0]->lineTo(pi,-.02,'black'); plot_functions( $graph[0], $f[0]); $fig = image(insertGraph($graph[0]), width=>400, height=>400, tex_size=>700); @@ -71,10 +71,10 @@ ColumnTable( "Assume that \( \sin{(A)} = \sin{(B)} \) in the figure. Find exact answers for each of the values below, not decimal approximations. All angles are given in radians, and your answers should be in radians.". $BR. $BR. -"(a) If \( \displaystyle A = \frac{\pi}{$bot} \), then \( B = \) ".ans_rule(20).$SPACE.AnswerFormatHelp("numbers"). +"(a) If \( \displaystyle A = \frac{\pi}{$bot} \), then \( B = \) ".ans_rule(20).$SPACE.helpLink("numbers"). $BR. $BR. -"(b) If \( A = $rad \), then \( B = \) ".ans_rule(20).$SPACE.AnswerFormatHelp("numbers"), +"(b) If \( A = $rad \), then \( B = \) ".ans_rule(20).$SPACE.helpLink("numbers"), $fig. $BR.$BCENTER."(Click on graph to enlarge)".$ECENTER, indent => 0, separation => 30, valign => "TOP" @@ -89,9 +89,9 @@ ANS(Compute("$ans2")->cmp(tolerance=>0.00000000000000001,tolType=>"absolute") ); #ANS(num_cmp( $ans2,tol=>0.00000000000000001 ) ); SOLUTION(EV3(<<'END_SOLUTION')); -$BR $SPACE $BR +$BR $SPACE $BR $BBOLD SOLUTION $EBOLD -$BR +$BR a) \( B = \pi - \frac{\pi}{$bot} = \frac{ $top \pi}{$bot} \) $BR $SPACE $BR b) \( B = \pi - $rad \) diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec4/Q25.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec4/Q25.pg index d21d3e783b..3d101179a2 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec4/Q25.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec4/Q25.pg @@ -36,7 +36,7 @@ loadMacros( "PGchoicemacros.pl", "unionTables.pl", "parserVectorUtils.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -128,7 +128,7 @@ ColumnTable( "Find the coordinates of the point \( W \) in the figure. The angle is \( \theta = Q = $degree[$pick]^{\circ} \) and the radius is \( r = $r \). Give an exact answer (using square roots and fractions, if necessary), not a decimal approximation. Enter your answer as a point \( (a,b) \) including parentheses.". $BR. $BR. -"\( W = \) ".ans_rule(30).$SPACE.AnswerFormatHelp("points"), +"\( W = \) ".ans_rule(30).$SPACE.helpLink("points"), $fig. $BR.$BCENTER."(Click on graph to enlarge)".$ECENTER, indent => 0, separation => 30, valign => "TOP" diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec4/Q28.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec4/Q28.pg index 65f28d6c9d..563b438bd3 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec4/Q28.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec4/Q28.pg @@ -33,7 +33,7 @@ loadMacros( "PGgraphmacros.pl", "MathObjects.pl", "unionTables.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -90,7 +90,7 @@ ColumnTable( formula for \( f(q) \), the \( $which[$i] \)-coordinate of the point \( P \) in the figure below (where \( q \) denotes the angle in the figure).". $BR. $BR. -"\( f(q) = \) ".ans_rule(20).$SPACE.AnswerFormatHelp("formulas"). +"\( f(q) = \) ".ans_rule(20).$SPACE.helpLink("formulas"). $BR. "(Use the variable \(q\) for the angle.)", $fig. diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec5/Q02.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec5/Q02.pg index 1c0cc83b16..febcaad78b 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec5/Q02.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec5/Q02.pg @@ -33,7 +33,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserImplicitPlane.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -58,13 +58,13 @@ BEGIN_TEXT Suppose \( $f \). In your answers, enter ${BITALIC}pi${EITALIC} for \( \pi \). $PAR (a) The midline of the graph is the line with equation \{ ans_rule(15) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} $PAR (b) The amplitude of the graph is \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $PAR (c) The period of the graph is \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec5/Q04.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec5/Q04.pg index f03eb7cc18..ec7d0b4c82 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec5/Q04.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec5/Q04.pg @@ -33,7 +33,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserImplicitPlane.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -59,13 +59,13 @@ BEGIN_TEXT Suppose $f. In your answers, enter ${BITALIC}pi${EITALIC} for \( \pi \). $PAR (a) The midline of the graph is the line with equation \{ ans_rule(10) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} $PAR (b) The amplitude of the graph is \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $PAR (c) The period of the graph is \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec5/Q06.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec5/Q06.pg index e24634d41a..ee605749b5 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec5/Q06.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec5/Q06.pg @@ -31,7 +31,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -55,10 +55,10 @@ BEGIN_TEXT Suppose $f. In your answers, enter ${BITALIC}pi${EITALIC} for \( \pi \). $PAR (a) What is the phase shift? \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $PAR (b) What is the horizontal shift? \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec5/Q06b.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec5/Q06b.pg index 5310969130..04a0d50cea 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec5/Q06b.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec5/Q06b.pg @@ -31,7 +31,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -55,7 +55,7 @@ BEGIN_TEXT Suppose $f. In your answers, enter ${BITALIC}pi${EITALIC} for \( \pi \). $PAR What is the horizontal shift? \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec5/Q12.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec5/Q12.pg index c8b6954773..b991266223 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec5/Q12.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec5/Q12.pg @@ -32,7 +32,7 @@ loadMacros( "PGstandard.pl", "PGgraphmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -99,7 +99,7 @@ Find a possible formula for the trigonometric function graphed below. Use \( x \) as the independent variable in your formula. $PAR \( f(x) = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $PAR $BCENTER \{ image(insertGraph($graph[1]),width => 400, height => 400,'tex_size'=>700) \} diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec5/Q14.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec5/Q14.pg index fd3f4cba61..971f9f2fd3 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec5/Q14.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec5/Q14.pg @@ -32,7 +32,7 @@ loadMacros( "PGstandard.pl", "PGgraphmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -94,7 +94,7 @@ Find a formula for the trigonometric function graphed below. Use \( x \) as the independent variable in your formula. $PAR \( f(x) = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $PAR $BCENTER \{ image(insertGraph($graph[1]),width => 400, height => 400,'tex_size'=>700) \} diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec5/Q18.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec5/Q18.pg index 188a12cee0..47c2e277f8 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec5/Q18.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec5/Q18.pg @@ -32,7 +32,7 @@ loadMacros( "PGstandard.pl", "PGgraphmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -80,7 +80,7 @@ Find a formula for the trigonometric function graphed below. Use \( x \) as the independent variable in your formula. $PAR \( f(x) = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $PAR $BCENTER \{ image(insertGraph($graph[1]),width => 400, height => 400,'tex_size'=>700) \} diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec5/Q24.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec5/Q24.pg index f95e8ed638..8d0e2df9dc 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec5/Q24.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec5/Q24.pg @@ -32,7 +32,7 @@ loadMacros( "PGstandard.pl", "PGgraphmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -94,7 +94,7 @@ a horizontal shift of \( y = f(x) \). Find a formula for the function \( g(x) \). $BR \( g(x) = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $PAR $BCENTER $fig diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec5/Q28.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec5/Q28.pg index 34164041b8..0427b951d5 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec5/Q28.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec5/Q28.pg @@ -31,7 +31,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -63,7 +63,7 @@ BEGIN_TEXT A ferris wheel is $diam meters in diameter and boarded at ground level. The wheel makes one full rotation every $B minutes, and at time \( t = 0 \) you are at the $init[$j] o'clock position and $direct[$i]. Let \( f(t) \) denote your height (in meters) above ground at \( t \) minutes. Find a formula for \( f(t) \). $BR \( f(t) = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec5/Q36.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec5/Q36.pg index acdcf506d4..5cec2a5dbb 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec5/Q36.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec5/Q36.pg @@ -31,7 +31,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -75,7 +75,7 @@ $BCENTER $ECENTER $PAR \( g(x) = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec5/Q42.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec5/Q42.pg index 6336e5e18b..499749603e 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec5/Q42.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec5/Q42.pg @@ -31,7 +31,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -57,7 +57,7 @@ $PAR Find a possible formula for the function \( P = f(t) \) described above. $PAR \( f(t) = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec6/Q08.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec6/Q08.pg index 0331c30d33..5d78dbfa06 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec6/Q08.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec6/Q08.pg @@ -32,7 +32,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -81,7 +81,7 @@ Without using a calculator, find the exact value as fraction (not a decimal approximation). $PAR \( \displaystyle $func\left( $anglestex[$i] \right) \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("fractions") \} +\{ helpLink("fractions") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec6/Q09.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec6/Q09.pg index bfca4a7f02..be5788a604 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec6/Q09.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec6/Q09.pg @@ -32,7 +32,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -81,7 +81,7 @@ Without using a calculator, find the exact value as fraction (not a decimal approximation). $PAR \( \displaystyle $func\left( $anglestex[$i] \right) \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("fractions") \} +\{ helpLink("fractions") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec6/Q10.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec6/Q10.pg index 8c37881873..87ca6c8f48 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec6/Q10.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec6/Q10.pg @@ -32,7 +32,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -78,7 +78,7 @@ BEGIN_TEXT Without using a calculator, find the exact value as fraction (not a decimal approximation). $PAR \( \displaystyle $func\left( $anglestex[$i] \right) \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("fractions") \} +\{ helpLink("fractions") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec6/Q11.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec6/Q11.pg index eada8fc746..11c03adb51 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec6/Q11.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec6/Q11.pg @@ -32,7 +32,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -78,7 +78,7 @@ BEGIN_TEXT Without using a calculator, find the exact value as fraction (not a decimal approximation). $PAR \( \displaystyle $func\left( $anglestex[$i] \right) \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("fractions") \} +\{ helpLink("fractions") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec6/Q12.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec6/Q12.pg index cbfbbf475c..ca605fc6f7 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec6/Q12.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec6/Q12.pg @@ -32,7 +32,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -79,7 +79,7 @@ Without using a calculator, find the exact value as fraction (not a decimal approximation). $PAR \( \displaystyle $func\left( $anglestex[$i] \right) \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("fractions") \} +\{ helpLink("fractions") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec6/Q13.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec6/Q13.pg index fadd4d3ef7..d9acc85bc3 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec6/Q13.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec6/Q13.pg @@ -33,7 +33,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -79,7 +79,7 @@ BEGIN_TEXT Without using a calculator, find the exact value as fraction (not a decimal approximation). $PAR \( \displaystyle $func\left( $anglestex[$i] \right) \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("fractions") \} +\{ helpLink("fractions") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec6/Q14.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec6/Q14.pg index 468ebb6ff6..6995cec6f5 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec6/Q14.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec6/Q14.pg @@ -32,7 +32,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -78,7 +78,7 @@ BEGIN_TEXT Without using a calculator, find the exact value as fraction (not a decimal approximation). $PAR \( \displaystyle $func\left( $anglestex[$i] \right) \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("fractions") \} +\{ helpLink("fractions") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec6/Q15.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec6/Q15.pg index 62b161ad13..83504488bc 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec6/Q15.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec6/Q15.pg @@ -32,7 +32,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -78,7 +78,7 @@ BEGIN_TEXT Without using a calculator, find the exact value as fraction (not a decimal approximation). $PAR \( \displaystyle $func\left( $anglestex[$i] \right) \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("fractions") \} +\{ helpLink("fractions") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec6/Q18.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec6/Q18.pg index 822404aae0..5a01c6f813 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec6/Q18.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec6/Q18.pg @@ -31,7 +31,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -57,11 +57,11 @@ Suppose the angle \( \theta \) is in the first quadrant, \( 0 \leq \theta \leq \ $BR $BR (a) \( \csc(\theta) \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("fractions") \} +\{ helpLink("fractions") \} $BR $BR (b) \( \cot(\theta) \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("fractions") \} +\{ helpLink("fractions") \} END_TEXT Context()->normalStrings; @@ -71,24 +71,24 @@ ANS( $answercot->cmp() ); Context()->texStrings; SOLUTION(EV3(<<'END_SOLUTION')); -$BR $SPACE $BR +$BR $SPACE $BR $BBOLD SOLUTION $EBOLD -$BR +$BR (a) Since \( \csc{ ( \theta ) } = \frac{1}{\sin{ ( \theta )}} \), we begin by using the Pythagorean Identity to find \( \sin{ ( \theta ) } \). Since \( \cos^2{ ( \theta )} + \sin^2{ ( \theta ) }=1 \), we have $BR \[ -\begin{array}{rcl} -\left( \frac{1}{$r} \right)^2 + \sin^2{ ( \theta ) } & = & 1 -\\[1ex] -\sin^2{ ( \theta )} & = & 1 - \frac{1}{$sqr} -\\[1ex] +\begin{array}{rcl} +\left( \frac{1}{$r} \right)^2 + \sin^2{ ( \theta ) } & = & 1 +\\[1ex] +\sin^2{ ( \theta )} & = & 1 - \frac{1}{$sqr} +\\[1ex] \sin{ ( \theta ) } & = & \pm \sqrt{ \frac{$disp}{$sqr} }. \end{array} -\] +\] $BR Since \( 0 \le \theta \le \frac{\pi}{2} \), \( \sin{ ( \theta ) } \ge 0 \), so \( \sin{ ( \theta ) } = \sqrt{ \frac{$disp}{$sqr}} \). Thus, -\( \csc{ ( \theta )} = \sqrt{ \frac{$sqr}{$disp}} \). +\( \csc{ ( \theta )} = \sqrt{ \frac{$sqr}{$disp}} \). $BR $BR (b) Since \( \cot{ ( \theta ) }= \frac{ \cos{ ( \theta ) }}{\sin{ ( \theta ) }} \), we have diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec6/Q20.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec6/Q20.pg index 1e04720cd9..211471070b 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec6/Q20.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec6/Q20.pg @@ -32,7 +32,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -54,15 +54,15 @@ $answertan = Compute("-1 / sqrt($r^2 - 1)"); Context()->texStrings; BEGIN_TEXT -Suppose the angle \( \theta \) is in the second quadrant, \( \pi /2 \leq \theta \leq \pi \), and \( \displaystyle \sin(\theta) = \frac{1}{$r} \). Find exact values (as fractions, not decimal approximations) for the following. +Suppose the angle \( \theta \) is in the second quadrant, \( \pi /2 \leq \theta \leq \pi \), and \( \displaystyle \sin(\theta) = \frac{1}{$r} \). Find exact values (as fractions, not decimal approximations) for the following. $BR $BR (a) \( \sec{ \theta } \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("fractions") \} +\{ helpLink("fractions") \} $BR $BR (b) \( \tan{ \theta } \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("fractions") \} +\{ helpLink("fractions") \} END_TEXT Context()->normalStrings; @@ -73,23 +73,23 @@ ANS( $answertan->cmp() ); Context()->texStrings; SOLUTION(EV3(<<'END_SOLUTION')); -$BR $SPACE $BR +$BR $SPACE $BR $BBOLD SOLUTION $EBOLD -$BR +$BR (a) Since \( \sec{ ( \theta ) } = \frac{1}{\cos{ ( \theta )}} \), we begin by using the Pythagorean Identity to find \( \cos{ ( \theta ) } \). Since \( \sin^2{ ( \theta )} + \cos^2{ ( \theta ) }=1 \), we have -\[ +\[ \begin{array}{rcl} -\left( \frac{1}{$r} \right)^2 + \cos^2{ ( \theta ) } & = & 1 +\left( \frac{1}{$r} \right)^2 + \cos^2{ ( \theta ) } & = & 1 +\\[1ex] +\cos^2{ ( \theta )} & = & 1 - \frac{1}{$sqr} \\[1ex] -\cos^2{ ( \theta )} & = & 1 - \frac{1}{$sqr} -\\[1ex] -\cos{ ( \theta ) } & = & \pm \sqrt{ \frac{$disp}{$sqr} }. +\cos{ ( \theta ) } & = & \pm \sqrt{ \frac{$disp}{$sqr} }. \end{array} -\] +\] $BR Since \( \frac{\pi}{2} \le \theta \le \pi \), \( \cos{ ( \theta ) } \le 0 \), so \( \cos{ ( \theta ) } = - \sqrt{ \frac{$disp}{$sqr}} \). Thus, -\( \sec{ ( \theta )} = - \sqrt{ \frac{$sqr}{$disp}} \). +\( \sec{ ( \theta )} = - \sqrt{ \frac{$sqr}{$disp}} \). $BR $BR (b) Since \( \tan{ ( \theta ) }= \frac{ \sin{ ( \theta ) }}{\cos{ ( \theta ) }} \), we have diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec6/Q24a.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec6/Q24a.pg index 5feebd870d..c8ae017493 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec6/Q24a.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec6/Q24a.pg @@ -32,7 +32,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -57,11 +57,11 @@ If \( \cos(\phi) = $cos[0] \) and \( 3 \pi /2 \leq \phi \leq 2 \pi \), approxima $BR $BR (a) \( \sin( \phi ) \) = \{ ans_rule(20) \} (Round to four decimal places.) -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR $BR (b) \( \tan( \phi ) \) = \{ ans_rule(20) \} (Round to four decimal places.) -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT ANS(Compute("$sin[0]")->cmp(tolerance=>0.001,tolType=>"absolute") ); @@ -72,14 +72,14 @@ ANS(Compute("$tan[0]")->cmp(tolerance=>0.001,tolType=>"absolute") ); #ANS(num_cmp( $tan[0],tol=>0.001 ) ); SOLUTION(EV3(<<'END_SOLUTION')); -$BR $SPACE $BR +$BR $SPACE $BR $BBOLD SOLUTION $EBOLD -$BR +$BR a) We begin by using the Pythagorean Identity to find \( \sin{ ( \phi ) } \). Since \( \sin^2{ ( \phi )} + \cos^2{ ( \phi ) } =1 \), we have $BR $SPACE $BR $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE \( \sin^2{ ( \phi ) } + \left( $cos[0] \right)^2 = 1 \) $BR $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE \( \sin^2{ ( \phi ) } = 1 - \left( $cos[0] \right)^2 \) $BR -$SPACE $SPACE $SPACE $SPACE $SPACE $SPACE \( \sin{ ( \phi ) } = \pm \sqrt{$under} \approx \pm $about \) . +$SPACE $SPACE $SPACE $SPACE $SPACE $SPACE \( \sin{ ( \phi ) } = \pm \sqrt{$under} \approx \pm $about \) . $BR $SPACE $BR Since \( 3 \pi /2 \leq \phi \leq 2 \pi \), \( \sin{ ( \phi ) } \) is negative, so \( \sin{ ( \phi ) } \approx - $about \). diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec6/Q24b.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec6/Q24b.pg index 54e6d0cdc9..d012faa28f 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec6/Q24b.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec6/Q24b.pg @@ -32,7 +32,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -57,11 +57,11 @@ If \( \sin( \theta ) = $sin[1] \) and \( \pi \leq \theta \leq 3 \pi /2 \), appro $BR $BR (a) \( \cos( \theta ) \) = \{ ans_rule(20) \} (Round to four decimal places.) -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR $BR (b) \( \tan( \theta ) \) = \{ ans_rule(20) \} (Round to four decimal places.) -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT ANS(Compute("$cos[1]")->cmp(tolerance=>"0.001",tolType=>"absolute") ); @@ -71,14 +71,14 @@ ANS(Compute("$tan[1]")->cmp(tolerance=>"0.001",tolType=>"absolute") ); #ANS(num_cmp( $tan[1],tol=>0.001 ) ); SOLUTION(EV3(<<'END_SOLUTION')); -$BR $SPACE $BR +$BR $SPACE $BR $BBOLD SOLUTION $EBOLD -$BR +$BR a) We begin by using the Pythagorean Identity to find \( \sin{ ( \theta ) } \). Since \( \cos^2{ ( \theta )} + \sin^2{ ( \theta ) } =1 \), we have $BR $SPACE $BR $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE \( \cos^2{ ( \theta ) } + \left( $sin[1] \right)^2 = 1 \) $BR $SPACE $SPACE $SPACE $SPACE $SPACE $SPACE \( \cos^2{ ( \theta ) } = 1 - \left( $sin[1] \right)^2 \) $BR -$SPACE $SPACE $SPACE $SPACE $SPACE $SPACE \( \cos{ ( \theta ) } = \pm \sqrt{$under} \approx \pm $about \) . +$SPACE $SPACE $SPACE $SPACE $SPACE $SPACE \( \cos{ ( \theta ) } = \pm \sqrt{$under} \approx \pm $about \) . $BR $SPACE $BR Since \( \pi \leq \theta \leq 3 \pi /2 \), \( \cos{ ( \theta ) } \) is negative, so \( \cos{ ( \theta ) } \approx - $about \). diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec6/Q28.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec6/Q28.pg index 63582ad54a..aa31ba4172 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec6/Q28.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec6/Q28.pg @@ -33,7 +33,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -54,10 +54,10 @@ Suppose \( \displaystyle \sin{ \theta } = \frac{x}{$k} \) and the angle \( \thet Write algebraic expressions for \( \cos( \theta ) \) and \( \tan( \theta ) \) in terms of \( x \). $PAR (a) \( \cos( \theta ) \) = \{ ans_rule(35) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $PAR (b) \( \tan( \theta ) \) = \{ ans_rule(35) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec6/Q31.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec6/Q31.pg index f843addaec..ff336cfb53 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec6/Q31.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec6/Q31.pg @@ -32,7 +32,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -53,10 +53,10 @@ Suppose \( \displaystyle x = $k \tan( \theta ) \) and the angle \( \theta \) is Write algebraic expressions for \( \sin( \theta ) \) and \( \cos( \theta ) \) in terms of \( x \). $PAR (a) \( \sin( \theta ) \) = \{ ans_rule(35) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $PAR (b) \( \cos( \theta ) \) = \{ ans_rule(35) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec6/Q33.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec6/Q33.pg index f84f917546..fc14320504 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec6/Q33.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec6/Q33.pg @@ -32,7 +32,7 @@ loadMacros( "PGstandard.pl", "PGgraphmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -75,7 +75,7 @@ in terms of the variable \(x\) which may depend on the angle \(Q\) labeled below. (The angle \( Q \) is a parameter.) $PAR \( L = f(x) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} (Your formula is a function of \(x\) that also depends on the value of the parameter \(Q\).) $PAR diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec6/Q36.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec6/Q36.pg index bdd437bd55..ec32f1f164 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec6/Q36.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec6/Q36.pg @@ -32,7 +32,7 @@ loadMacros( "PGstandard.pl", "PGgraphmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "PGcourse.pl" ); @@ -97,13 +97,13 @@ ColumnTable( "Find the exact values for the lengths of the labeled segments \(a\), \(b\) and \(p\) drawn in green, red, and blue, respectively. Note that \( r = $r \) is the radius of the circle, and \( s = $s \) is the arc length from the point \( ($r,0) \) around the circle to the indicated point.". $BR. $BR. -"\( a = \) ".ans_rule(30).$SPACE.AnswerFormatHelp("numbers"). +"\( a = \) ".ans_rule(30).$SPACE.helpLink("numbers"). $BR. $BR. -"\( b = \) ".ans_rule(30).$SPACE.AnswerFormatHelp("numbers"). +"\( b = \) ".ans_rule(30).$SPACE.helpLink("numbers"). $BR. $BR. -"\( p = \) ".ans_rule(30).$SPACE.AnswerFormatHelp("numbers"), +"\( p = \) ".ans_rule(30).$SPACE.helpLink("numbers"), $fig. $BR.$BCENTER."(Click on graph to enlarge)".$ECENTER, indent => 0, separation => 30, valign => "TOP" diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec6/Qtangent4.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec6/Qtangent4.pg index 03733bdde8..48ccff017d 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec6/Qtangent4.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec6/Qtangent4.pg @@ -23,7 +23,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -47,19 +47,19 @@ $answerb = Compute("-$a / ( $b sqrt($num / $den) )"); Context()->texStrings; BEGIN_TEXT -Suppose the angle \( \theta \) is in the fourth quadrant, -\( \frac{3\pi}{2} \leq \theta \leq 2\pi \), and -\( \displaystyle \tan(\theta) = \frac{-$a}{$b}. \) Find -exact values (as fractions, not decimal approximations) +Suppose the angle \( \theta \) is in the fourth quadrant, +\( \frac{3\pi}{2} \leq \theta \leq 2\pi \), and +\( \displaystyle \tan(\theta) = \frac{-$a}{$b}. \) Find +exact values (as fractions, not decimal approximations) for the following. $BR $BR (a) \( \sec(\theta) \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("fractions") \} +\{ helpLink("fractions") \} $BR $BR (b) \( \sin(\theta) \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("fractions") \} +\{ helpLink("fractions") \} END_TEXT Context()->normalStrings; @@ -70,35 +70,35 @@ ANS( $answerb->cmp() ); Context()->texStrings; BEGIN_SOLUTION $BR -$BR +$BR ${BBOLD}SOLUTION${EBOLD} -$BR -(a) We begin by using the identity \( 1 + \tan^2(\theta) = \sec^2(\theta) \) -to find \( \sec(\theta). \) +$BR +(a) We begin by using the identity \( 1 + \tan^2(\theta) = \sec^2(\theta) \) +to find \( \sec(\theta). \) $BR \[ -\begin{array}{rcl} -1 + \tan^2(\theta) & = & \sec^2(\theta) -\\[1ex] -1 + \left( \frac{-$a}{$b} \right)^2 & = & \sec^2(\theta) -\\[1ex] -\pm \sqrt{ \frac{$num}{$den} } & = & \sec(\theta). +\begin{array}{rcl} +1 + \tan^2(\theta) & = & \sec^2(\theta) +\\[1ex] +1 + \left( \frac{-$a}{$b} \right)^2 & = & \sec^2(\theta) +\\[1ex] +\pm \sqrt{ \frac{$num}{$den} } & = & \sec(\theta). \end{array} -\] +\] $BR -Since \( \frac{3\pi}{2} \le \theta \le 2\pi \), +Since \( \frac{3\pi}{2} \le \theta \le 2\pi \), \( \sec(\theta ) = \frac{1}{\cos(\theta)} \ge 0 \), and thus \( \sec(\theta) = \sqrt{ \frac{$num}{$den} } = \frac{\sqrt{$num}}{$b}.\) $BR $BR -(b) Since \( \tan(\theta) = \frac{ \sin(\theta) }{ \cos(\theta) } +(b) Since \( \tan(\theta) = \frac{ \sin(\theta) }{ \cos(\theta) } = \sin(\theta) \sec(\theta) \), we have $BR -\[ -\sin(\theta) -= \frac{ \tan(\theta) }{ \sec(\theta) } -= \frac{ -$a/$b }{ \sqrt{$num} / $b } -= \frac{-$a}{\sqrt{$num}}. +\[ +\sin(\theta) += \frac{ \tan(\theta) }{ \sec(\theta) } += \frac{ -$a/$b }{ \sqrt{$num} / $b } += \frac{-$a}{\sqrt{$num}}. \] END_SOLUTION Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec7/Q02.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec7/Q02.pg index a8f530bb21..4de1d070f9 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec7/Q02.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec7/Q02.pg @@ -32,7 +32,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -56,7 +56,7 @@ If possible, find a solution to \( \displaystyle $eqn \). If no solution exists, enter ${BITALIC}NONE.${EITALIC} $PAR \( \theta = \) \{ ans_rule(20) \} radians -\{ AnswerFormatHelp("angles") \} +\{ helpLink("angles") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec7/Q03.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec7/Q03.pg index 4413822cc8..26cd641d4d 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec7/Q03.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec7/Q03.pg @@ -33,7 +33,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -57,7 +57,7 @@ If possible, find a solution to \( \displaystyle $eqn \). If no solution exists, enter ${BITALIC}NONE.${EITALIC} $PAR \( \theta = \) \{ ans_rule(20) \} radians -\{ AnswerFormatHelp("angles") \} +\{ helpLink("angles") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec7/Q04.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec7/Q04.pg index a046ce337f..ff010360ea 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec7/Q04.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec7/Q04.pg @@ -31,7 +31,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -63,7 +63,7 @@ If possible, find a solution to \( \displaystyle $eqn[2] \). If no solution exists, enter ${BITALIC}NONE.${EITALIC} $PAR \( \theta = \) \{ ans_rule(20) \} radians -\{ AnswerFormatHelp("angles") \} +\{ helpLink("angles") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec7/Q05.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec7/Q05.pg index 9a4b53d072..0bddf4eeef 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec7/Q05.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec7/Q05.pg @@ -33,7 +33,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -56,7 +56,7 @@ If possible, find a solution to \( \displaystyle $eqn \). If no solution exists, enter ${BITALIC}NONE.${EITALIC} $PAR \( \theta = \) \{ ans_rule(20) \} radians -\{ AnswerFormatHelp("angles") \} +\{ helpLink("angles") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec7/Q07.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec7/Q07.pg index 6a9fd431bd..d02c0e3139 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec7/Q07.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec7/Q07.pg @@ -32,7 +32,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -88,7 +88,7 @@ Your answers should be exact values (given as fractions, not decimal approximations). $PAR \( \theta \) = \{ ans_rule(30) \} -\{ AnswerFormatHelp("angles") \} +\{ helpLink("angles") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec7/Q08.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec7/Q08.pg index 189a7263f2..130d527fa9 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec7/Q08.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec7/Q08.pg @@ -32,7 +32,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -88,7 +88,7 @@ Your answers should be exact values (given as fractions, not decimal approximations). $PAR \( \theta \) = \{ ans_rule(30) \} -\{ AnswerFormatHelp("angles") \} +\{ helpLink("angles") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec7/Q09.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec7/Q09.pg index 33b2b27c4e..89b78c62fc 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec7/Q09.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec7/Q09.pg @@ -32,7 +32,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -87,7 +87,7 @@ Your answers should be exact values (given as fractions, not decimal approximations). $PAR \( \theta \) = \{ ans_rule(30) \} -\{ AnswerFormatHelp("angles") \} +\{ helpLink("angles") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec7/Q31.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec7/Q31.pg index 8c68d6fe00..b715979d80 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec7/Q31.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec7/Q31.pg @@ -32,7 +32,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -57,7 +57,7 @@ in the interval \( 0 \leq x \leq 2 \pi \). If there is more than one answer, enter your answers as a comma separated list. $PAR \( x = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec7/Q35.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec7/Q35.pg index 83ea1ae9cc..0c3ff20689 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec7/Q35.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec7/Q35.pg @@ -32,7 +32,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -64,7 +64,7 @@ in the interval \( 0 \leq x \leq 2 \pi \). If there is more than one answer, enter your answers as a comma separated list. $PAR \( x = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec7/Q37.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec7/Q37.pg index ef7dc623ba..dd4a90d922 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec7/Q37.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec7/Q37.pg @@ -33,7 +33,7 @@ loadMacros( "PGstandard.pl", "PGgraphmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -61,7 +61,7 @@ use a graph to find all other solutions to this equation in this interval. Enter your answers as a comma separated list. $PAR \( x = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec7/Q46.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec7/Q46.pg index 3e1f04ab6e..556a4b32ea 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec7/Q46.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec7/Q46.pg @@ -32,7 +32,7 @@ loadMacros( "PGstandard.pl", "PGgraphmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -67,7 +67,7 @@ BEGIN_TEXT Find all solutions to the equation \( \displaystyle \tan(t) = \frac{$k}{\tan(t)} \) in the interval \( 0 \leq t \leq 2 \pi \). First estimate the solutions from a graph, then find ${BBOLD}exact${EBOLD} answers (given as fractions, not decimals). Enter your answers as a comma separated list. $PAR \( t = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("fractions") \} +\{ helpLink("fractions") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec7/Q52.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec7/Q52.pg index b4b39e9fc5..7619ce23bb 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec7/Q52.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec7/Q52.pg @@ -34,7 +34,7 @@ loadMacros( "PGgraphmacros.pl", "MathObjects.pl", "PGchoicemacros.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "PGcourse.pl" ); @@ -149,7 +149,7 @@ $BR. $BR. "(b) Write an equation for the depth \( f(t) \) of the tide (in feet) \( t \) hours after 12:00 noon.". $BR. -"\( f(t) = \) ".ans_rule(30).$SPACE.AnswerFormatHelp("formulas"). +"\( f(t) = \) ".ans_rule(30).$SPACE.helpLink("formulas"). $BR. $BR. "(c) A boat requires a depth of 8 feet to set sail, and is docked at 12:00 noon. What is the $tidetext time in the afternoon it can set sail? Round your answer to the nearest minute. For example, if you find \( f(t) = 8 \) when \( t = 1.25 \), you would answer at 1:15 PM (since this is 1 and a quarter hours after noon).". diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec7/Q58.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec7/Q58.pg index cc638b3e7f..79571b18e2 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec7/Q58.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Sec7/Q58.pg @@ -35,7 +35,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl", "contextInequalities.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -58,7 +58,7 @@ BEGIN_TEXT State the domain and range of each of the following functions: $BR -(Enter your answers as inequalities: \{ AnswerFormatHelp("inequalities") \}. +(Enter your answers as inequalities: \{ helpLink("inequalities") \}. Your domains should be inequalities in \(x\) and ranges, in \(y\). As always, type $BITALIC pi $EITALIC for \( \pi \). If you wish to enter \( \infty \), type ${BITALIC}infinity$EITALIC.) diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Tools/Connally3-6-Tools-02/Connally3-6-Tools-02.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Tools/Connally3-6-Tools-02/Connally3-6-Tools-02.pg index d72dc9a602..26a5f68eb1 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Tools/Connally3-6-Tools-02/Connally3-6-Tools-02.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Tools/Connally3-6-Tools-02/Connally3-6-Tools-02.pg @@ -21,12 +21,12 @@ #################################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "alignedChoice.pl", "unionTables.pl", @@ -53,7 +53,7 @@ Context("Fraction-NoDecimals"); 7,24,25, 24,10,26, 21,20,29, -16,30,34, +16,30,34, 9,40,41 ); @@ -91,7 +91,7 @@ Context()->functions->disable("All"); BEGIN_TEXT \{ ColumnTable( -"Suppose \( x = $x, y = $y \) and \( z = $z \) in the figure, which is not drawn to scale. Find the following. Enter exact answers as fractions, not decimal approximations.".$SPACE.AnswerFormatHelp("fractions"). +"Suppose \( x = $x, y = $y \) and \( z = $z \) in the figure, which is not drawn to scale. Find the following. Enter exact answers as fractions, not decimal approximations.".$SPACE.helpLink("fractions"). $PAR. $al->print_q(), $BCENTER. diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Tools/Connally3-6-Tools-04/Connally3-6-Tools-04.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Tools/Connally3-6-Tools-04/Connally3-6-Tools-04.pg index 017fb0758c..7abe90d7db 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Tools/Connally3-6-Tools-04/Connally3-6-Tools-04.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Tools/Connally3-6-Tools-04/Connally3-6-Tools-04.pg @@ -21,12 +21,12 @@ #################################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "alignedChoice.pl", "unionTables.pl", "PGcourse.pl" @@ -51,7 +51,7 @@ Context("Numeric"); Context()->functions->remove("cos"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub cos { @@ -67,7 +67,7 @@ Context()->functions->add( cos => {class => 'NewFunc', TeX => '\cos'}, ); Context()->functions->remove("sin"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub sin { @@ -83,7 +83,7 @@ Context()->functions->add( sin => {class => 'NewFunc', TeX => '\sin'}, ); Context()->functions->remove("tan"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub tan { @@ -99,7 +99,7 @@ Context()->functions->add( tan => {class => 'NewFunc', TeX => '\tan'}, ); Context()->functions->remove("sec"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub sec { @@ -108,14 +108,14 @@ sub sec { } package main; # Make it work on formulas as well as numbers -sub sec {Parser::Function->call('sec',@_)} +sub sec {Parser::Function->call('sec',@_)} # Add the new functions to the Context Context()->functions->add( sec => {class => 'NewFunc', TeX => '\sec'}, ); Context()->functions->remove("csc"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub csc { @@ -124,14 +124,14 @@ sub csc { } package main; # Make it work on formulas as well as numbers -sub csc {Parser::Function->call('csc',@_)} +sub csc {Parser::Function->call('csc',@_)} # Add the new functions to the Context Context()->functions->add( csc => {class => 'NewFunc', TeX => '\csc'}, ); Context()->functions->remove("cot"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub cot { @@ -156,7 +156,7 @@ Context()->functions->add( cot => {class => 'NewFunc', TeX => '\cot'}, ); Context()->functions->remove("acos"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub acos {CORE::atan2(CORE::sqrt(1-$_[1]*$_[1]),$_[1])*180/3.14159265358979323846264338327950288} @@ -169,7 +169,7 @@ Context()->functions->add( acos => {class => 'NewFunc', TeX => '\arccos'}, ); Context()->functions->remove("asin"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub asin {CORE::atan2($_[1],CORE::sqrt(1-$_[1]*$_[1]))*180/3.14159265358979323846264338327950288} @@ -182,7 +182,7 @@ Context()->functions->add( asin => {class => 'NewFunc', TeX => '\arcsin'}, ); Context()->functions->remove("atan"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub atan {CORE::atan2($_[1],1)*180/3.14159265358979323846264338327950288} @@ -195,7 +195,7 @@ Context()->functions->add( atan => {class => 'NewFunc', TeX => '\arctan'}, ); Context()->functions->remove("asec"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub asec {CORE::atan2($_[1],CORE::sqrt(1-$_[1]*$_[1]))*180/3.14159265358979323846264338327950288} @@ -209,7 +209,7 @@ Context()->functions->add( asec => {class => 'NewFunc', TeX => '\arcsec'}, ); Context()->functions->remove("acsc"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub acsc {CORE::atan2(CORE::sqrt(1-$_[1]*$_[1]),$_[1])*180/3.14159265358979323846264338327950288} @@ -223,7 +223,7 @@ Context()->functions->add( acsc => {class => 'NewFunc', TeX => '\arccsc'}, ); Context()->functions->remove("acot"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub acot {CORE::atan2(1,$_[1])*180/3.14159265358979323846264338327950288} @@ -266,7 +266,7 @@ Context()->normalStrings; BEGIN_TEXT \{ ColumnTable( -"Suppose \( x = $x \), \( \theta = $theta^{\circ} \) and \( \phi = $phi^{\circ} \) in the figure, which is not drawn to scale. Find the following. (All trig functions will be evaluated in degrees.) ".AnswerFormatHelp("numbers"). +"Suppose \( x = $x \), \( \theta = $theta^{\circ} \) and \( \phi = $phi^{\circ} \) in the figure, which is not drawn to scale. Find the following. (All trig functions will be evaluated in degrees.) ".helpLink("numbers"). $PAR. $al->print_q(), $BCENTER. diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Tools/Connally3-6-Tools-06/Connally3-6-Tools-06.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Tools/Connally3-6-Tools-06/Connally3-6-Tools-06.pg index 55051873de..3c691525ce 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Tools/Connally3-6-Tools-06/Connally3-6-Tools-06.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Tools/Connally3-6-Tools-06/Connally3-6-Tools-06.pg @@ -25,12 +25,12 @@ #################################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "alignedChoice.pl", "unionTables.pl", @@ -75,7 +75,7 @@ Context()->functions->enable("sqrt"); BEGIN_TEXT \{ ColumnTable( -"Suppose \( x = $x \) and \( y = $y \) in the figure, which is not drawn to scale. Find the following. Enter exact answers given as fractions, not decimal approximations.".$SPACE.AnswerFormatHelp("fractions"). +"Suppose \( x = $x \) and \( y = $y \) in the figure, which is not drawn to scale. Find the following. Enter exact answers given as fractions, not decimal approximations.".$SPACE.helpLink("fractions"). $PAR. $al->print_q(), $BCENTER. diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Tools/Connally3-6-Tools-08a/Connally3-6-Tools-08a.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Tools/Connally3-6-Tools-08a/Connally3-6-Tools-08a.pg index a62c73a5f1..30aef6d518 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Tools/Connally3-6-Tools-08a/Connally3-6-Tools-08a.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Tools/Connally3-6-Tools-08a/Connally3-6-Tools-08a.pg @@ -35,7 +35,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "alignedChoice.pl", "unionTables.pl", @@ -76,7 +76,7 @@ Context()->functions->enable("sqrt"); BEGIN_TEXT \{ ColumnTable( -"Suppose \( \phi = \theta \) in the figure, which is not drawn to scale. Find the following. Enter exact answers given as fractions, not decimal approximations.".$SPACE.AnswerFormatHelp("fractions"). +"Suppose \( \phi = \theta \) in the figure, which is not drawn to scale. Find the following. Enter exact answers given as fractions, not decimal approximations.".$SPACE.helpLink("fractions"). $PAR. $al->print_q(), $BCENTER. diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Tools/Connally3-6-Tools-08b/Connally3-6-Tools-08b.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Tools/Connally3-6-Tools-08b/Connally3-6-Tools-08b.pg index f3c02324a5..5880b7514f 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Tools/Connally3-6-Tools-08b/Connally3-6-Tools-08b.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Tools/Connally3-6-Tools-08b/Connally3-6-Tools-08b.pg @@ -35,7 +35,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "alignedChoice.pl", "unionTables.pl", @@ -76,7 +76,7 @@ Context()->functions->enable("sqrt"); BEGIN_TEXT \{ ColumnTable( -"Suppose \( \phi = 2\theta \) in the figure, which is not drawn to scale. Find the following. Enter exact answers given as fractions, not decimal approximations.".$SPACE.AnswerFormatHelp("fractions"). +"Suppose \( \phi = 2\theta \) in the figure, which is not drawn to scale. Find the following. Enter exact answers given as fractions, not decimal approximations.".$SPACE.helpLink("fractions"). $PAR. $al->print_q(), $BCENTER. diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Tools/Connally3-6-Tools-12/Connally3-6-Tools-12.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Tools/Connally3-6-Tools-12/Connally3-6-Tools-12.pg index 4177d7bde1..29894bd798 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Tools/Connally3-6-Tools-12/Connally3-6-Tools-12.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Tools/Connally3-6-Tools-12/Connally3-6-Tools-12.pg @@ -25,12 +25,12 @@ #################################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "alignedChoice.pl", "unionTables.pl", "PGcourse.pl" @@ -54,7 +54,7 @@ Context("Numeric"); Context()->functions->remove("cos"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub cos { @@ -70,7 +70,7 @@ Context()->functions->add( cos => {class => 'NewFunc', TeX => '\cos'}, ); Context()->functions->remove("sin"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub sin { @@ -86,7 +86,7 @@ Context()->functions->add( sin => {class => 'NewFunc', TeX => '\sin'}, ); Context()->functions->remove("tan"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub tan { @@ -102,7 +102,7 @@ Context()->functions->add( tan => {class => 'NewFunc', TeX => '\tan'}, ); Context()->functions->remove("sec"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub sec { @@ -111,14 +111,14 @@ sub sec { } package main; # Make it work on formulas as well as numbers -sub sec {Parser::Function->call('sec',@_)} +sub sec {Parser::Function->call('sec',@_)} # Add the new functions to the Context Context()->functions->add( sec => {class => 'NewFunc', TeX => '\sec'}, ); Context()->functions->remove("csc"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub csc { @@ -127,14 +127,14 @@ sub csc { } package main; # Make it work on formulas as well as numbers -sub csc {Parser::Function->call('csc',@_)} +sub csc {Parser::Function->call('csc',@_)} # Add the new functions to the Context Context()->functions->add( csc => {class => 'NewFunc', TeX => '\csc'}, ); Context()->functions->remove("cot"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub cot { @@ -159,7 +159,7 @@ Context()->functions->add( cot => {class => 'NewFunc', TeX => '\cot'}, ); Context()->functions->remove("acos"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub acos {CORE::atan2(CORE::sqrt(1-$_[1]*$_[1]),$_[1])*180/3.14159265358979323846264338327950288} @@ -172,7 +172,7 @@ Context()->functions->add( acos => {class => 'NewFunc', TeX => '\arccos'}, ); Context()->functions->remove("asin"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub asin {CORE::atan2($_[1],CORE::sqrt(1-$_[1]*$_[1]))*180/3.14159265358979323846264338327950288} @@ -185,7 +185,7 @@ Context()->functions->add( asin => {class => 'NewFunc', TeX => '\arcsin'}, ); Context()->functions->remove("atan"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub atan {CORE::atan2($_[1],1)*180/3.14159265358979323846264338327950288} @@ -198,7 +198,7 @@ Context()->functions->add( atan => {class => 'NewFunc', TeX => '\arctan'}, ); Context()->functions->remove("asec"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub asec {CORE::atan2($_[1],CORE::sqrt(1-$_[1]*$_[1]))*180/3.14159265358979323846264338327950288} @@ -212,7 +212,7 @@ Context()->functions->add( asec => {class => 'NewFunc', TeX => '\arcsec'}, ); Context()->functions->remove("acsc"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub acsc {CORE::atan2(CORE::sqrt(1-$_[1]*$_[1]),$_[1])*180/3.14159265358979323846264338327950288} @@ -226,7 +226,7 @@ Context()->functions->add( acsc => {class => 'NewFunc', TeX => '\arccsc'}, ); Context()->functions->remove("acot"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub acot {CORE::atan2(1,$_[1])*180/3.14159265358979323846264338327950288} @@ -266,7 +266,7 @@ Context()->normalStrings; BEGIN_TEXT \{ ColumnTable( -"Suppose \( y = $y \), \( \theta = $theta^{\circ} \) and \( \phi = $phi^{\circ} \) in the figure, which is not drawn to scale. Find the following. (All trig functions will be evaluated in degrees.)".$SPACE.AnswerFormatHelp("numbers"). +"Suppose \( y = $y \), \( \theta = $theta^{\circ} \) and \( \phi = $phi^{\circ} \) in the figure, which is not drawn to scale. Find the following. (All trig functions will be evaluated in degrees.)".$SPACE.helpLink("numbers"). $PAR. $al->print_q(), $BCENTER. diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Tools/Connally3-6-Tools-14/Connally3-6-Tools-14.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Tools/Connally3-6-Tools-14/Connally3-6-Tools-14.pg index 967bf6ccfc..3ea65833b6 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Tools/Connally3-6-Tools-14/Connally3-6-Tools-14.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Tools/Connally3-6-Tools-14/Connally3-6-Tools-14.pg @@ -25,12 +25,12 @@ #################################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "alignedChoice.pl", "unionTables.pl", "PGcourse.pl" @@ -54,7 +54,7 @@ Context("Numeric"); Context()->functions->remove("cos"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub cos { @@ -70,7 +70,7 @@ Context()->functions->add( cos => {class => 'NewFunc', TeX => '\cos'}, ); Context()->functions->remove("sin"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub sin { @@ -86,7 +86,7 @@ Context()->functions->add( sin => {class => 'NewFunc', TeX => '\sin'}, ); Context()->functions->remove("tan"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub tan { @@ -102,7 +102,7 @@ Context()->functions->add( tan => {class => 'NewFunc', TeX => '\tan'}, ); Context()->functions->remove("sec"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub sec { @@ -111,14 +111,14 @@ sub sec { } package main; # Make it work on formulas as well as numbers -sub sec {Parser::Function->call('sec',@_)} +sub sec {Parser::Function->call('sec',@_)} # Add the new functions to the Context Context()->functions->add( sec => {class => 'NewFunc', TeX => '\sec'}, ); Context()->functions->remove("csc"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub csc { @@ -127,14 +127,14 @@ sub csc { } package main; # Make it work on formulas as well as numbers -sub csc {Parser::Function->call('csc',@_)} +sub csc {Parser::Function->call('csc',@_)} # Add the new functions to the Context Context()->functions->add( csc => {class => 'NewFunc', TeX => '\csc'}, ); Context()->functions->remove("cot"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub cot { @@ -159,7 +159,7 @@ Context()->functions->add( cot => {class => 'NewFunc', TeX => '\cot'}, ); Context()->functions->remove("acos"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub acos {CORE::atan2(CORE::sqrt(1-$_[1]*$_[1]),$_[1])*180/3.14159265358979323846264338327950288} @@ -172,7 +172,7 @@ Context()->functions->add( acos => {class => 'NewFunc', TeX => '\arccos'}, ); Context()->functions->remove("asin"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub asin {CORE::atan2($_[1],CORE::sqrt(1-$_[1]*$_[1]))*180/3.14159265358979323846264338327950288} @@ -185,7 +185,7 @@ Context()->functions->add( asin => {class => 'NewFunc', TeX => '\arcsin'}, ); Context()->functions->remove("atan"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub atan {CORE::atan2($_[1],1)*180/3.14159265358979323846264338327950288} @@ -198,7 +198,7 @@ Context()->functions->add( atan => {class => 'NewFunc', TeX => '\arctan'}, ); Context()->functions->remove("asec"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub asec {CORE::atan2($_[1],CORE::sqrt(1-$_[1]*$_[1]))*180/3.14159265358979323846264338327950288} @@ -212,7 +212,7 @@ Context()->functions->add( asec => {class => 'NewFunc', TeX => '\arcsec'}, ); Context()->functions->remove("acsc"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub acsc {CORE::atan2(CORE::sqrt(1-$_[1]*$_[1]),$_[1])*180/3.14159265358979323846264338327950288} @@ -226,7 +226,7 @@ Context()->functions->add( acsc => {class => 'NewFunc', TeX => '\arccsc'}, ); Context()->functions->remove("acot"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub acot {CORE::atan2(1,$_[1])*180/3.14159265358979323846264338327950288} @@ -269,7 +269,7 @@ Context()->normalStrings; BEGIN_TEXT \{ ColumnTable( -"Suppose \( z = $z \), \( \theta = $theta^{\circ} \) and \( \phi = $phi^{\circ} \) in the figure, which is not drawn to scale. Find the following. (All trig functions will be evaluated in degrees.) ".AnswerFormatHelp("numbers"). +"Suppose \( z = $z \), \( \theta = $theta^{\circ} \) and \( \phi = $phi^{\circ} \) in the figure, which is not drawn to scale. Find the following. (All trig functions will be evaluated in degrees.) ".helpLink("numbers"). $PAR. $al->print_q(), $BCENTER. diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Tools/Connally3-6-Tools-18.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Tools/Connally3-6-Tools-18.pg index 81750eb0bc..9371c4de7c 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Tools/Connally3-6-Tools-18.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Tools/Connally3-6-Tools-18.pg @@ -21,12 +21,12 @@ #################################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "PGcourse.pl" ); @@ -49,7 +49,7 @@ Context("Numeric"); Context()->functions->remove("cos"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub cos { @@ -65,7 +65,7 @@ Context()->functions->add( cos => {class => 'NewFunc', TeX => '\cos'}, ); Context()->functions->remove("sin"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub sin { @@ -81,7 +81,7 @@ Context()->functions->add( sin => {class => 'NewFunc', TeX => '\sin'}, ); Context()->functions->remove("tan"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub tan { @@ -97,7 +97,7 @@ Context()->functions->add( tan => {class => 'NewFunc', TeX => '\tan'}, ); Context()->functions->remove("sec"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub sec { @@ -106,14 +106,14 @@ sub sec { } package main; # Make it work on formulas as well as numbers -sub sec {Parser::Function->call('sec',@_)} +sub sec {Parser::Function->call('sec',@_)} # Add the new functions to the Context Context()->functions->add( sec => {class => 'NewFunc', TeX => '\sec'}, ); Context()->functions->remove("csc"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub csc { @@ -122,14 +122,14 @@ sub csc { } package main; # Make it work on formulas as well as numbers -sub csc {Parser::Function->call('csc',@_)} +sub csc {Parser::Function->call('csc',@_)} # Add the new functions to the Context Context()->functions->add( csc => {class => 'NewFunc', TeX => '\csc'}, ); Context()->functions->remove("cot"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub cot { @@ -154,7 +154,7 @@ Context()->functions->add( cot => {class => 'NewFunc', TeX => '\cot'}, ); Context()->functions->remove("acos"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub acos {CORE::atan2(CORE::sqrt(1-$_[1]*$_[1]),$_[1])*180/3.14159265358979323846264338327950288} @@ -167,7 +167,7 @@ Context()->functions->add( acos => {class => 'NewFunc', TeX => '\arccos'}, ); Context()->functions->remove("asin"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub asin {CORE::atan2($_[1],CORE::sqrt(1-$_[1]*$_[1]))*180/3.14159265358979323846264338327950288} @@ -180,7 +180,7 @@ Context()->functions->add( asin => {class => 'NewFunc', TeX => '\arcsin'}, ); Context()->functions->remove("atan"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub atan {CORE::atan2($_[1],1)*180/3.14159265358979323846264338327950288} @@ -193,7 +193,7 @@ Context()->functions->add( atan => {class => 'NewFunc', TeX => '\arctan'}, ); Context()->functions->remove("asec"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub asec {CORE::atan2($_[1],CORE::sqrt(1-$_[1]*$_[1]))*180/3.14159265358979323846264338327950288} @@ -207,7 +207,7 @@ Context()->functions->add( asec => {class => 'NewFunc', TeX => '\arcsec'}, ); Context()->functions->remove("acsc"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub acsc {CORE::atan2(CORE::sqrt(1-$_[1]*$_[1]),$_[1])*180/3.14159265358979323846264338327950288} @@ -221,7 +221,7 @@ Context()->functions->add( acsc => {class => 'NewFunc', TeX => '\arccsc'}, ); Context()->functions->remove("acot"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub acot {CORE::atan2(1,$_[1])*180/3.14159265358979323846264338327950288} @@ -241,10 +241,10 @@ $c = random(22,30,1); $ansb = Compute("sqrt($c^2 - $a^2)"); -#$ansA = Compute("arcsin($a/$c)*180/pi"); +#$ansA = Compute("arcsin($a/$c)*180/pi"); #$ansB = Compute("arccos($a/$c)*180/pi"); -$ansA = Compute("arcsin($a/$c)"); +$ansA = Compute("arcsin($a/$c)"); $ansB = Compute("arccos($a/$c)"); @@ -263,29 +263,29 @@ $ansB = Compute("arccos($a/$c)"); # Main Text BEGIN_TEXT -Suppose that \( a \), \( b\) and \( c \) are -the sides of a right triangle, where side \( a \) -is across from angle \( A \), side \( b \) is across -from angle \( B \), and side \( c \) is across from -the right angle. If \( a = $a \) and \( c = $c \), -find the missing sides and -angles in this right triangle. -All angles should be in degrees (not radians), and -all trig functions entered will be evaluated in degrees +Suppose that \( a \), \( b\) and \( c \) are +the sides of a right triangle, where side \( a \) +is across from angle \( A \), side \( b \) is across +from angle \( B \), and side \( c \) is across from +the right angle. If \( a = $a \) and \( c = $c \), +find the missing sides and +angles in this right triangle. +All angles should be in degrees (not radians), and +all trig functions entered will be evaluated in degrees (not radians). You may enter inverse trig functions -using syntax like \( \arccos(2) \), not \( \cos^{-1}(2) \). +using syntax like \( \arccos(2) \), not \( \cos^{-1}(2) \). $BR $BR (a) Side \( b \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR $BR (b) Angle \( A \) = \{ ans_rule(20) \} degrees -\{ AnswerFormatHelp("angles") \} +\{ helpLink("angles") \} $BR $BR (c) Angle \( B \) = \{ ans_rule(20) \} degrees -\{ AnswerFormatHelp("angles") \} +\{ helpLink("angles") \} END_TEXT ################################### diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Tools/Connally3-6-Tools-19.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Tools/Connally3-6-Tools-19.pg index e007bc9ac1..ee54704b8d 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Tools/Connally3-6-Tools-19.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Tools/Connally3-6-Tools-19.pg @@ -21,12 +21,12 @@ #################################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "PGcourse.pl" ); @@ -47,7 +47,7 @@ Context("Numeric"); Context()->functions->remove("cos"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub cos { @@ -63,7 +63,7 @@ Context()->functions->add( cos => {class => 'NewFunc', TeX => '\cos'}, ); Context()->functions->remove("sin"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub sin { @@ -79,7 +79,7 @@ Context()->functions->add( sin => {class => 'NewFunc', TeX => '\sin'}, ); Context()->functions->remove("tan"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub tan { @@ -95,7 +95,7 @@ Context()->functions->add( tan => {class => 'NewFunc', TeX => '\tan'}, ); Context()->functions->remove("sec"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub sec { @@ -104,14 +104,14 @@ sub sec { } package main; # Make it work on formulas as well as numbers -sub sec {Parser::Function->call('sec',@_)} +sub sec {Parser::Function->call('sec',@_)} # Add the new functions to the Context Context()->functions->add( sec => {class => 'NewFunc', TeX => '\sec'}, ); Context()->functions->remove("csc"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub csc { @@ -120,14 +120,14 @@ sub csc { } package main; # Make it work on formulas as well as numbers -sub csc {Parser::Function->call('csc',@_)} +sub csc {Parser::Function->call('csc',@_)} # Add the new functions to the Context Context()->functions->add( csc => {class => 'NewFunc', TeX => '\csc'}, ); Context()->functions->remove("cot"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub cot { @@ -152,7 +152,7 @@ Context()->functions->add( cot => {class => 'NewFunc', TeX => '\cot'}, ); Context()->functions->remove("acos"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub acos {CORE::atan2(CORE::sqrt(1-$_[1]*$_[1]),$_[1])*180/3.14159265358979323846264338327950288} @@ -165,7 +165,7 @@ Context()->functions->add( acos => {class => 'NewFunc', TeX => '\arccos'}, ); Context()->functions->remove("asin"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub asin {CORE::atan2($_[1],CORE::sqrt(1-$_[1]*$_[1]))*180/3.14159265358979323846264338327950288} @@ -178,7 +178,7 @@ Context()->functions->add( asin => {class => 'NewFunc', TeX => '\arcsin'}, ); Context()->functions->remove("atan"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub atan {CORE::atan2($_[1],1)*180/3.14159265358979323846264338327950288} @@ -191,7 +191,7 @@ Context()->functions->add( atan => {class => 'NewFunc', TeX => '\arctan'}, ); Context()->functions->remove("asec"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub asec {CORE::atan2($_[1],CORE::sqrt(1-$_[1]*$_[1]))*180/3.14159265358979323846264338327950288} @@ -205,7 +205,7 @@ Context()->functions->add( asec => {class => 'NewFunc', TeX => '\arcsec'}, ); Context()->functions->remove("acsc"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub acsc {CORE::atan2(CORE::sqrt(1-$_[1]*$_[1]),$_[1])*180/3.14159265358979323846264338327950288} @@ -219,7 +219,7 @@ Context()->functions->add( acsc => {class => 'NewFunc', TeX => '\arccsc'}, ); Context()->functions->remove("acot"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub acot {CORE::atan2(1,$_[1])*180/3.14159265358979323846264338327950288} @@ -238,7 +238,7 @@ Context()->functions->add( acot => {class => 'NewFunc', TeX => '\arccot'}, ); $c = random(15,21,1); $A = random(25,40,1); -while ($B==30) { $B = random(25,40,1); } +while ($B==30) { $B = random(25,40,1); } #$ansb = Compute("$a tan($B pi/180)"); #$ansc = Compute("$a / cos($B pi/180)"); @@ -246,7 +246,7 @@ while ($B==30) { $B = random(25,40,1); } $ansa = Compute("$c * sin($A)"); $ansb = Compute("$c * cos($A)"); -$ansB = Compute("90-$A"); +$ansB = Compute("90-$A"); @@ -254,28 +254,28 @@ $ansB = Compute("90-$A"); # Main Text BEGIN_TEXT -Suppose that \( a \), \( b\) and \( c \) are -the sides of a right triangle, where side \( a \) -is across from angle \( A \), side \( b \) is across -from angle \( B \), and side \( c \) is across from -the right angle. If \( c = $c \) and \( A = $A^{\circ} \), -find the missing sides and -angles in this right triangle. -All angles should be in degrees (not radians), and -all trig functions entered will be evaluated in degrees -(not radians). +Suppose that \( a \), \( b\) and \( c \) are +the sides of a right triangle, where side \( a \) +is across from angle \( A \), side \( b \) is across +from angle \( B \), and side \( c \) is across from +the right angle. If \( c = $c \) and \( A = $A^{\circ} \), +find the missing sides and +angles in this right triangle. +All angles should be in degrees (not radians), and +all trig functions entered will be evaluated in degrees +(not radians). $BR $BR (a) Side \( a \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR $BR -(b) Side \( b \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +(b) Side \( b \) = \{ ans_rule(20) \} +\{ helpLink("numbers") \} $BR $BR (c) Angle \( B \) = \{ ans_rule(20) \} degrees -\{ AnswerFormatHelp("angles") \} +\{ helpLink("angles") \} END_TEXT ################################### diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Tools/Connally3-6-Tools-20.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Tools/Connally3-6-Tools-20.pg index 1705ddf06c..0aa692c66c 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Tools/Connally3-6-Tools-20.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Tools/Connally3-6-Tools-20.pg @@ -21,12 +21,12 @@ #################################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "PGcourse.pl" ); @@ -47,7 +47,7 @@ Context("Numeric"); Context()->functions->remove("cos"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub cos { @@ -63,7 +63,7 @@ Context()->functions->add( cos => {class => 'NewFunc', TeX => '\cos'}, ); Context()->functions->remove("sin"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub sin { @@ -79,7 +79,7 @@ Context()->functions->add( sin => {class => 'NewFunc', TeX => '\sin'}, ); Context()->functions->remove("tan"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub tan { @@ -95,7 +95,7 @@ Context()->functions->add( tan => {class => 'NewFunc', TeX => '\tan'}, ); Context()->functions->remove("sec"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub sec { @@ -104,14 +104,14 @@ sub sec { } package main; # Make it work on formulas as well as numbers -sub sec {Parser::Function->call('sec',@_)} +sub sec {Parser::Function->call('sec',@_)} # Add the new functions to the Context Context()->functions->add( sec => {class => 'NewFunc', TeX => '\sec'}, ); Context()->functions->remove("csc"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub csc { @@ -120,14 +120,14 @@ sub csc { } package main; # Make it work on formulas as well as numbers -sub csc {Parser::Function->call('csc',@_)} +sub csc {Parser::Function->call('csc',@_)} # Add the new functions to the Context Context()->functions->add( csc => {class => 'NewFunc', TeX => '\csc'}, ); Context()->functions->remove("cot"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub cot { @@ -152,7 +152,7 @@ Context()->functions->add( cot => {class => 'NewFunc', TeX => '\cot'}, ); Context()->functions->remove("acos"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub acos {CORE::atan2(CORE::sqrt(1-$_[1]*$_[1]),$_[1])*180/3.14159265358979323846264338327950288} @@ -165,7 +165,7 @@ Context()->functions->add( acos => {class => 'NewFunc', TeX => '\arccos'}, ); Context()->functions->remove("asin"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub asin {CORE::atan2($_[1],CORE::sqrt(1-$_[1]*$_[1]))*180/3.14159265358979323846264338327950288} @@ -178,7 +178,7 @@ Context()->functions->add( asin => {class => 'NewFunc', TeX => '\arcsin'}, ); Context()->functions->remove("atan"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub atan {CORE::atan2($_[1],1)*180/3.14159265358979323846264338327950288} @@ -191,7 +191,7 @@ Context()->functions->add( atan => {class => 'NewFunc', TeX => '\arctan'}, ); Context()->functions->remove("asec"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub asec {CORE::atan2($_[1],CORE::sqrt(1-$_[1]*$_[1]))*180/3.14159265358979323846264338327950288} @@ -205,7 +205,7 @@ Context()->functions->add( asec => {class => 'NewFunc', TeX => '\arcsec'}, ); Context()->functions->remove("acsc"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub acsc {CORE::atan2(CORE::sqrt(1-$_[1]*$_[1]),$_[1])*180/3.14159265358979323846264338327950288} @@ -219,7 +219,7 @@ Context()->functions->add( acsc => {class => 'NewFunc', TeX => '\arccsc'}, ); Context()->functions->remove("acot"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub acot {CORE::atan2(1,$_[1])*180/3.14159265358979323846264338327950288} @@ -238,7 +238,7 @@ Context()->functions->add( acot => {class => 'NewFunc', TeX => '\arccot'}, ); $a = random(15,21,1); $B = random(25,40,1); -while ($B==30) { $B = random(25,40,1); } +while ($B==30) { $B = random(25,40,1); } #$ansb = Compute("$a tan($B pi/180)"); #$ansc = Compute("$a / cos($B pi/180)"); @@ -246,7 +246,7 @@ while ($B==30) { $B = random(25,40,1); } $ansb = Compute("$a tan($B)"); $ansc = Compute("$a / cos($B)"); -$ansA = Compute("90-$B"); +$ansA = Compute("90-$B"); #Context()->texStrings; #$al = new_aligned_list(ans_rule_len=>20, numbered=>1, tex_spacing=>"3pt"); @@ -263,28 +263,28 @@ $ansA = Compute("90-$B"); # Main Text BEGIN_TEXT -Suppose that \( a \), \( b\) and \( c \) are -the sides of a right triangle, where side \( a \) -is across from angle \( A \), side \( b \) is across -from angle \( B \), and side \( c \) is across from -the right angle. If \( a = $a \) and \( B = $B^{\circ} \), -find the missing sides and -angles in this right triangle. -All angles should be in degrees (not radians), and -all trig functions entered will be evaluated in degrees -(not radians). +Suppose that \( a \), \( b\) and \( c \) are +the sides of a right triangle, where side \( a \) +is across from angle \( A \), side \( b \) is across +from angle \( B \), and side \( c \) is across from +the right angle. If \( a = $a \) and \( B = $B^{\circ} \), +find the missing sides and +angles in this right triangle. +All angles should be in degrees (not radians), and +all trig functions entered will be evaluated in degrees +(not radians). $BR $BR (a) Side \( b \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR $BR -(b) Side \( c \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +(b) Side \( c \) = \{ ans_rule(20) \} +\{ helpLink("numbers") \} $BR $BR (c) Angle \( A \) = \{ ans_rule(20) \} degrees -\{ AnswerFormatHelp("angles") \} +\{ helpLink("angles") \} END_TEXT ################################### diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Tools/Connally3-6-Tools-21/Connally3-6-Tools-21.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Tools/Connally3-6-Tools-21/Connally3-6-Tools-21.pg index 2a8ee95254..ffee0049d6 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Tools/Connally3-6-Tools-21/Connally3-6-Tools-21.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Tools/Connally3-6-Tools-21/Connally3-6-Tools-21.pg @@ -25,12 +25,12 @@ #################################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "alignedChoice.pl", "unionTables.pl", "parserNumberWithUnits.pl", @@ -52,7 +52,7 @@ Context("Numeric"); Context()->functions->remove("cos"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub cos { @@ -68,7 +68,7 @@ Context()->functions->add( cos => {class => 'NewFunc', TeX => '\cos'}, ); Context()->functions->remove("sin"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub sin { @@ -84,7 +84,7 @@ Context()->functions->add( sin => {class => 'NewFunc', TeX => '\sin'}, ); Context()->functions->remove("tan"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub tan { @@ -100,7 +100,7 @@ Context()->functions->add( tan => {class => 'NewFunc', TeX => '\tan'}, ); Context()->functions->remove("sec"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub sec { @@ -109,14 +109,14 @@ sub sec { } package main; # Make it work on formulas as well as numbers -sub sec {Parser::Function->call('sec',@_)} +sub sec {Parser::Function->call('sec',@_)} # Add the new functions to the Context Context()->functions->add( sec => {class => 'NewFunc', TeX => '\sec'}, ); Context()->functions->remove("csc"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub csc { @@ -125,14 +125,14 @@ sub csc { } package main; # Make it work on formulas as well as numbers -sub csc {Parser::Function->call('csc',@_)} +sub csc {Parser::Function->call('csc',@_)} # Add the new functions to the Context Context()->functions->add( csc => {class => 'NewFunc', TeX => '\csc'}, ); Context()->functions->remove("cot"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub cot { @@ -157,7 +157,7 @@ Context()->functions->add( cot => {class => 'NewFunc', TeX => '\cot'}, ); Context()->functions->remove("acos"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub acos {CORE::atan2(CORE::sqrt(1-$_[1]*$_[1]),$_[1])*180/3.14159265358979323846264338327950288} @@ -170,7 +170,7 @@ Context()->functions->add( acos => {class => 'NewFunc', TeX => '\arccos'}, ); Context()->functions->remove("asin"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub asin {CORE::atan2($_[1],CORE::sqrt(1-$_[1]*$_[1]))*180/3.14159265358979323846264338327950288} @@ -183,7 +183,7 @@ Context()->functions->add( asin => {class => 'NewFunc', TeX => '\arcsin'}, ); Context()->functions->remove("atan"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub atan {CORE::atan2($_[1],1)*180/3.14159265358979323846264338327950288} @@ -196,7 +196,7 @@ Context()->functions->add( atan => {class => 'NewFunc', TeX => '\arctan'}, ); Context()->functions->remove("asec"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub asec {CORE::atan2($_[1],CORE::sqrt(1-$_[1]*$_[1]))*180/3.14159265358979323846264338327950288} @@ -210,7 +210,7 @@ Context()->functions->add( asec => {class => 'NewFunc', TeX => '\arcsec'}, ); Context()->functions->remove("acsc"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub acsc {CORE::atan2(CORE::sqrt(1-$_[1]*$_[1]),$_[1])*180/3.14159265358979323846264338327950288} @@ -224,7 +224,7 @@ Context()->functions->add( acsc => {class => 'NewFunc', TeX => '\arccsc'}, ); Context()->functions->remove("acot"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub acot {CORE::atan2(1,$_[1])*180/3.14159265358979323846264338327950288} @@ -275,10 +275,10 @@ Find the height \( y \) and the length \( z \) of the incline. Include units in your answers. All trig functions will be evaluated in degrees.". $BR. $BR. -"Height \( y \) = ".ans_rule(20).$SPACE.AnswerFormatHelp("units"). +"Height \( y \) = ".ans_rule(20).$SPACE.helpLink("units"). $BR. $BR. -"Incline \( z \) = ".ans_rule(20).$SPACE.AnswerFormatHelp("units"), +"Incline \( z \) = ".ans_rule(20).$SPACE.helpLink("units"), $BCENTER. image( "right-triangle.png", width=>290,height=>220,tex_size=>400 ). $BR. diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Tools/Connally3-6-Tools-22.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Tools/Connally3-6-Tools-22.pg index 300b40df65..71a20cfaf6 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Tools/Connally3-6-Tools-22.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Tools/Connally3-6-Tools-22.pg @@ -21,12 +21,12 @@ #################################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "alignedChoice.pl", "unionTables.pl", "parserNumberWithUnits.pl", @@ -50,7 +50,7 @@ Context("Numeric"); Context()->functions->remove("cos"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub cos { @@ -66,7 +66,7 @@ Context()->functions->add( cos => {class => 'NewFunc', TeX => '\cos'}, ); Context()->functions->remove("sin"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub sin { @@ -82,7 +82,7 @@ Context()->functions->add( sin => {class => 'NewFunc', TeX => '\sin'}, ); Context()->functions->remove("tan"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub tan { @@ -98,7 +98,7 @@ Context()->functions->add( tan => {class => 'NewFunc', TeX => '\tan'}, ); Context()->functions->remove("sec"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub sec { @@ -107,14 +107,14 @@ sub sec { } package main; # Make it work on formulas as well as numbers -sub sec {Parser::Function->call('sec',@_)} +sub sec {Parser::Function->call('sec',@_)} # Add the new functions to the Context Context()->functions->add( sec => {class => 'NewFunc', TeX => '\sec'}, ); Context()->functions->remove("csc"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub csc { @@ -123,14 +123,14 @@ sub csc { } package main; # Make it work on formulas as well as numbers -sub csc {Parser::Function->call('csc',@_)} +sub csc {Parser::Function->call('csc',@_)} # Add the new functions to the Context Context()->functions->add( csc => {class => 'NewFunc', TeX => '\csc'}, ); Context()->functions->remove("cot"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub cot { @@ -155,7 +155,7 @@ Context()->functions->add( cot => {class => 'NewFunc', TeX => '\cot'}, ); Context()->functions->remove("acos"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub acos {CORE::atan2(CORE::sqrt(1-$_[1]*$_[1]),$_[1])*180/3.14159265358979323846264338327950288} @@ -168,7 +168,7 @@ Context()->functions->add( acos => {class => 'NewFunc', TeX => '\arccos'}, ); Context()->functions->remove("asin"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub asin {CORE::atan2($_[1],CORE::sqrt(1-$_[1]*$_[1]))*180/3.14159265358979323846264338327950288} @@ -181,7 +181,7 @@ Context()->functions->add( asin => {class => 'NewFunc', TeX => '\arcsin'}, ); Context()->functions->remove("atan"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub atan {CORE::atan2($_[1],1)*180/3.14159265358979323846264338327950288} @@ -194,7 +194,7 @@ Context()->functions->add( atan => {class => 'NewFunc', TeX => '\arctan'}, ); Context()->functions->remove("asec"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub asec {CORE::atan2($_[1],CORE::sqrt(1-$_[1]*$_[1]))*180/3.14159265358979323846264338327950288} @@ -208,7 +208,7 @@ Context()->functions->add( asec => {class => 'NewFunc', TeX => '\arcsec'}, ); Context()->functions->remove("acsc"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub acsc {CORE::atan2(CORE::sqrt(1-$_[1]*$_[1]),$_[1])*180/3.14159265358979323846264338327950288} @@ -222,7 +222,7 @@ Context()->functions->add( acsc => {class => 'NewFunc', TeX => '\arccsc'}, ); Context()->functions->remove("acot"); package NewFunc; -# this next line makes the function a +# this next line makes the function a # function from reals to reals our @ISA = qw(Parser::Function::numeric); sub acot {CORE::atan2(1,$_[1])*180/3.14159265358979323846264338327950288} @@ -257,18 +257,18 @@ $ansy = NumberWithUnits("$z sin($theta)","ft"); # Main Text BEGIN_TEXT -A kite flier wondered how high her kite was flying. -She used a protractor to measure an angle of +A kite flier wondered how high her kite was flying. +She used a protractor to measure an angle of \( $theta^{\circ} \) from level ground to the kite string. If she used a full \( $zyard \) yard spool of string, how high, in feet was the kite? (Disregard the string sag and assume that the string reel was -at ground height.) Include units in your answer. +at ground height.) Include units in your answer. All trig functions will be evaluated in degrees. $BR $BR Height = \{ ans_rule(20) \} -\{ AnswerFormatHelp("units") \} +\{ helpLink("units") \} END_TEXT ################################### diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Tools/Connally3-6-Tools-23.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Tools/Connally3-6-Tools-23.pg index ebc4d4f8a1..192bafa595 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Tools/Connally3-6-Tools-23.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap6Tools/Connally3-6-Tools-23.pg @@ -36,7 +36,7 @@ loadMacros( "PGstandard.pl", "PGgraphmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "alignedChoice.pl", "unionTables.pl", "parserNumberWithUnits.pl", @@ -266,11 +266,11 @@ with the ground. Please include units in your answers. All trig functions will be evaluated in degrees. $PAR How long must each cable be? \{ ans_rule(20) \} -\{ AnswerFormatHelp("units") \} +\{ helpLink("units") \} $PAR How far from the base of the tower should anchors be placed? \{ ans_rule(20) \} -\{ AnswerFormatHelp("units") \} +\{ helpLink("units") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-01-Trig-identities.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-01-Trig-identities.pg index 6e32b6dd9f..5ba106071c 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-01-Trig-identities.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-01-Trig-identities.pg @@ -38,7 +38,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", "PGcourse.pl" ); @@ -76,7 +76,7 @@ BEGIN_TEXT Simplify the expression as much as possible. $PAR \( \tan(x) \cos(x) \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-02-Trig-identities.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-02-Trig-identities.pg index af192e2d1a..45b70b05fc 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-02-Trig-identities.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-02-Trig-identities.pg @@ -37,7 +37,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextString.pl", "parserAutoStrings.pl", "answerHints.pl", @@ -67,7 +67,7 @@ BEGIN_TEXT Simplify the expression as much as possible. $PAR \( \cos^2($a t) + \sin^2($a t) \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-03-Trig-identities.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-03-Trig-identities.pg index 651ec9e945..009a410613 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-03-Trig-identities.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-03-Trig-identities.pg @@ -36,7 +36,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", "PGcourse.pl" ); @@ -74,7 +74,7 @@ BEGIN_TEXT Simplify the expression as much as possible. $PAR \( \displaystyle \frac{ \sin(2x) }{ \cos(x) } \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-04-Trig-identities.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-04-Trig-identities.pg index 0ccde65705..fcae47a6a3 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-04-Trig-identities.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-04-Trig-identities.pg @@ -38,7 +38,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", "PGcourse.pl" ); @@ -76,7 +76,7 @@ BEGIN_TEXT Simplify the expression as much as possible. $PAR \( \displaystyle \frac{ \cos^2(t) - 1 }{ \sin(t) } \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-05-Trig-identities.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-05-Trig-identities.pg index 20f63daca2..49636e72ed 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-05-Trig-identities.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-05-Trig-identities.pg @@ -36,7 +36,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", "PGcourse.pl" ); @@ -74,7 +74,7 @@ BEGIN_TEXT Simplify the expression as much as possible. $PAR \( \displaystyle \frac{ \cos(2t) }{ \cos(t) + \sin(t) } \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-06-Trig-identities.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-06-Trig-identities.pg index c3741df389..48a7e97001 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-06-Trig-identities.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-06-Trig-identities.pg @@ -36,7 +36,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", "PGcourse.pl" ); @@ -74,7 +74,7 @@ BEGIN_TEXT Simplify the expression as much as possible. $PAR \( \displaystyle \frac{1}{1-\sin(t)} + \frac{1}{1+\sin(t)} \) = \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-07-Trig-identities.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-07-Trig-identities.pg index de9e948b4e..adda00b2bc 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-07-Trig-identities.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-07-Trig-identities.pg @@ -37,7 +37,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", "PGcourse.pl" ); @@ -75,7 +75,7 @@ BEGIN_TEXT Simplify the expression as much as possible. $PAR \( \displaystyle \frac{ \cos(t)-1 }{ \sin(t) } + \frac{ \sin(t) }{ \cos(t)+1 } \) = \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-08-Trig-identities.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-08-Trig-identities.pg index fe17811964..818df1423c 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-08-Trig-identities.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-08-Trig-identities.pg @@ -36,7 +36,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", "PGcourse.pl" ); @@ -90,7 +90,7 @@ BEGIN_TEXT Simplify the expression as much as possible. $PAR \( \displaystyle \frac{ 1 }{ \sin(t)\cos(t) } - \frac{ 1 }{ \tan(t) } \) = \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-12-Trig-identities.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-12-Trig-identities.pg index d1455a2e6f..77167435d5 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-12-Trig-identities.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-12-Trig-identities.pg @@ -36,7 +36,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", "PGcourse.pl" ); @@ -88,13 +88,13 @@ $PAR \{ ans_rule(20) \} \( \Big) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $PAR (b) \( \cos(2t) = 2\cos^2(t) - 1 = 2\cos^2(t) - \Big( \) \{ ans_rule(20) \} \( \Big) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-17-Trig-identities.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-17-Trig-identities.pg index 7aefd8ce90..f83b85727b 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-17-Trig-identities.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-17-Trig-identities.pg @@ -34,7 +34,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -70,7 +70,7 @@ exactly for \( 0 \leq \theta < 2\pi \). If there is more than one answer, enter your answers as a comma separated list. $PAR \( \theta \) = \{ ans_rule(30) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-18-Trig-identities.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-18-Trig-identities.pg index 2144f72a3e..374db3b838 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-18-Trig-identities.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-18-Trig-identities.pg @@ -33,7 +33,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -69,7 +69,7 @@ exactly for \( 0 \leq \theta < 2\pi \). If there is more than one answer, enter your answers as a comma separated list. $PAR \( \theta \) = \{ ans_rule(30) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-20-Trig-identities.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-20-Trig-identities.pg index a801f81261..d91d9f37d1 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-20-Trig-identities.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-20-Trig-identities.pg @@ -33,7 +33,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -58,7 +58,7 @@ exactly for \( 0 \leq \theta \leq \pi \). If there is more than one answer, enter your answers as a comma separated list. $PAR \( \theta \) = \{ ans_rule(30) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-26-Trig-identities.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-26-Trig-identities.pg index 25af4347e6..4f1280c0d9 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-26-Trig-identities.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-26-Trig-identities.pg @@ -34,7 +34,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserPopUp.pl", "PGcourse.pl" ); @@ -102,7 +102,7 @@ Find a value of \( x \) for which the equation above is false. $PAR \( x \) = \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT ANS($ans_eval2 ); diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-28-Trig-identities.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-28-Trig-identities.pg index 0245cb10a0..8171969244 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-28-Trig-identities.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-28-Trig-identities.pg @@ -33,7 +33,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserPopUp.pl", "PGcourse.pl" ); @@ -96,7 +96,7 @@ does this equal? $PAR \( \displaystyle \frac{\sin(2x)}{2\sin(x)} \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT ANS($ans_eval2 ); diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-31-Trig-identities.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-31-Trig-identities.pg index d1f2c48ce0..d082aeaf19 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-31-Trig-identities.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-31-Trig-identities.pg @@ -33,7 +33,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserPopUp.pl", "unionTables.pl", "answerHints.pl", diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-36-Trig-identities.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-36-Trig-identities.pg index 7ce5c1affd..df54f3056e 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-36-Trig-identities.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-36-Trig-identities.pg @@ -33,7 +33,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserPopUp.pl", "unionTables.pl", "answerHints.pl", diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-41a-Trig-identities.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-41a-Trig-identities.pg index b9c8c94c8c..4cd23c64a8 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-41a-Trig-identities.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-41a-Trig-identities.pg @@ -34,7 +34,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -70,7 +70,7 @@ exactly for \( 0^\circ \leq \theta < 360^\circ \). If there is more than one answer, enter your answers as a comma separated list. $PAR \( \theta \) = \{ ans_rule(30) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-41b-Trig-identities.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-41b-Trig-identities.pg index f83030d27c..b5e2e2aa3c 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-41b-Trig-identities.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-41b-Trig-identities.pg @@ -34,7 +34,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -70,7 +70,7 @@ exactly for \( 0 \leq \theta < 2\pi \). If there is more than one answer, enter your answers as a comma separated list. $PAR \( \theta \) = \{ ans_rule(30) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-42-Trig-identities/Connally3-7-2-42-Trig-identities.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-42-Trig-identities/Connally3-7-2-42-Trig-identities.pg index bcc239be4f..aca145724a 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-42-Trig-identities/Connally3-7-2-42-Trig-identities.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-42-Trig-identities/Connally3-7-2-42-Trig-identities.pg @@ -35,7 +35,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "alignedChoice.pl", "unionTables.pl", @@ -77,7 +77,7 @@ ColumnTable( "Suppose \( x = $a \) in the figure, which is not drawn to scale. Find the following in terms of \( \theta \).". $BR. $BR. -"Enter \( \theta \) as ${BITALIC}theta.${EITALIC}".$SPACE.AnswerFormatHelp("formulas"). +"Enter \( \theta \) as ${BITALIC}theta.${EITALIC}".$SPACE.helpLink("formulas"). $BR. $al->print_q(), $BCENTER. diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-44-Trig-identities.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-44-Trig-identities.pg index 9639adafe5..4f17a3e25f 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-44-Trig-identities.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-44-Trig-identities.pg @@ -34,7 +34,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -86,19 +86,19 @@ quantities exactly. $PAR (a) \( \cos(\theta) \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $PAR (b) \( \sin(2\theta) \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $PAR (c) \( \cos(2\theta) \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $PAR (d) \( \tan(2\theta) \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-46-Trig-identities.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-46-Trig-identities.pg index cb86a937f2..a4efb5c930 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-46-Trig-identities.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-46-Trig-identities.pg @@ -34,7 +34,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -61,7 +61,7 @@ express \( \cos(2\theta) \) in terms of \( x \). $PAR \( \cos(2\theta) \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-48-Trig-identities.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-48-Trig-identities.pg index 681b482f30..8f4f90c344 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-48-Trig-identities.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec2/Connally3-7-2-48-Trig-identities.pg @@ -36,7 +36,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", "PGcourse.pl" ); @@ -75,7 +75,7 @@ Find an identity for \( \cos(4t) \) in terms of \( \cos(t) \). $PAR \( \cos(4t) \) = \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec3/Connally3-7-3-01-Angle-sum-formulas.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec3/Connally3-7-3-01-Angle-sum-formulas.pg index d16724bacb..372f22ab76 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec3/Connally3-7-3-01-Angle-sum-formulas.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec3/Connally3-7-3-01-Angle-sum-formulas.pg @@ -38,7 +38,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -94,7 +94,7 @@ Write \( $a \sin(t) - $b \cos(t) \) in the form formulas. $PAR \( $a \sin(t) - $b \cos(t) \) = \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec3/Connally3-7-3-02-Angle-sum-formulas.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec3/Connally3-7-3-02-Angle-sum-formulas.pg index 534245d24a..acda83c10f 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec3/Connally3-7-3-02-Angle-sum-formulas.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec3/Connally3-7-3-02-Angle-sum-formulas.pg @@ -37,7 +37,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -94,7 +94,7 @@ Write \( $a \sin(t) + $b \cos(t) \) in the form formulas. $PAR \( $a \sin(t) + $b \cos(t) \) = \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec3/Connally3-7-3-04-Angle-sum-formulas.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec3/Connally3-7-3-04-Angle-sum-formulas.pg index 31ef676be5..0fc11b9889 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec3/Connally3-7-3-04-Angle-sum-formulas.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec3/Connally3-7-3-04-Angle-sum-formulas.pg @@ -37,7 +37,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", "PGcourse.pl" ); @@ -85,7 +85,7 @@ Write \( -$a \sin($b t) + $c \cos($b t) \) in the form formulas. $PAR \( -$a \sin($b t) + $c \cos($b t) \) = \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec3/Connally3-7-3-08-Angle-sum-formulas.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec3/Connally3-7-3-08-Angle-sum-formulas.pg index 930af54a0e..390b2d6963 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec3/Connally3-7-3-08-Angle-sum-formulas.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec3/Connally3-7-3-08-Angle-sum-formulas.pg @@ -37,7 +37,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -105,10 +105,10 @@ your answer in the form \( \displaystyle numbers \( a \) and \( b \). $PAR \( a = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR \( b = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec3/Connally3-7-3-09-Angle-sum-formulas.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec3/Connally3-7-3-09-Angle-sum-formulas.pg index 8f971ef4cf..431f8938f8 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec3/Connally3-7-3-09-Angle-sum-formulas.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec3/Connally3-7-3-09-Angle-sum-formulas.pg @@ -37,7 +37,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -107,10 +107,10 @@ your answer in the form \( \displaystyle numbers \( a \) and \( b \). $PAR \( a = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR \( b = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec3/Connally3-7-3-10-Angle-sum-formulas.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec3/Connally3-7-3-10-Angle-sum-formulas.pg index 830cb9a8ca..ec812cd8ab 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec3/Connally3-7-3-10-Angle-sum-formulas.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec3/Connally3-7-3-10-Angle-sum-formulas.pg @@ -36,7 +36,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -104,10 +104,10 @@ your answer in the form \( \displaystyle numbers \( a \) and \( b \). $PAR \( a = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR \( b = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec3/Connally3-7-3-18-Angle-sum-formulas.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec3/Connally3-7-3-18-Angle-sum-formulas.pg index ffd5883533..9211dbaa70 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec3/Connally3-7-3-18-Angle-sum-formulas.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap7Sec3/Connally3-7-3-18-Angle-sum-formulas.pg @@ -36,7 +36,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -65,7 +65,7 @@ for values of \( x \) in the interval to the left hand side of the equation. $PAR \( x = \) \{ ans_rule(50) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap8Sec2/Q44.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap8Sec2/Q44.pg index 62b06b65b5..49bc15c327 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap8Sec2/Q44.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap8Sec2/Q44.pg @@ -34,7 +34,7 @@ loadMacros( "PGgraphmacros.pl", "extraAnswerEvaluators.pl", "parserNumberWithUnits.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGcourse.pl" ); diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec1/Q01.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec1/Q01.pg index def69fc315..57b81e63be 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec1/Q01.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec1/Q01.pg @@ -32,7 +32,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -61,10 +61,10 @@ BEGIN_TEXT Is the function \( \displaystyle $f[1] \) a power function? If it is, write it in the form \( g(x) = kx^p \) and enter exact values for \( k \) and \( p \). If it is not a power function, enter ${BITALIC}NONE${EITALIC} in both blanks. Do not leave any blanks empty. $PAR \( k = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("fractions") \} +\{ helpLink("fractions") \} $BR \( p = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("fractions") \} +\{ helpLink("fractions") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec1/Q02.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec1/Q02.pg index d28488bc94..5cc41d7426 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec1/Q02.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec1/Q02.pg @@ -32,7 +32,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -58,10 +58,10 @@ BEGIN_TEXT Is the function \( \displaystyle $f[0] \) a power function? If it is, write it in the form \( f(x) = kx^p \) and enter exact values for \( k \) and \( p \). If it is not a power function, enter ${BITALIC}NONE${EITALIC} in both blanks. Do not leave any blanks empty. $PAR \( k = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("fractions") \} +\{ helpLink("fractions") \} $BR \( p = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("fractions") \} +\{ helpLink("fractions") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec1/Q03.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec1/Q03.pg index 622363f1ab..8ac5de2fbd 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec1/Q03.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec1/Q03.pg @@ -23,7 +23,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -48,11 +48,11 @@ BEGIN_TEXT Is the function \( \displaystyle $f[2] \) a power function? If it is, write it in the form \( Q(z) = kz^p \) and enter exact values for \( k \) and \( p \). If it is not a power function, enter ${BITALIC}NONE${EITALIC} in both blanks. Do not leave any blanks empty. $BR $BR -\( k = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("fractions") \} +\( k = \) \{ ans_rule(10) \} +\{ helpLink("fractions") \} $BR \( p = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("fractions") \} +\{ helpLink("fractions") \} END_TEXT ANS(Compute("$k[2]")->cmp() ); @@ -63,9 +63,9 @@ ANS(Compute("$p[2]")->cmp() ); SOLUTION(EV3(<<'END_SOLUTION')); -$BR $SPACE $BR +$BR $SPACE $BR $BBOLD SOLUTION $EBOLD -$BR +$BR Yes. Writing the function as \( Q(z) = \left( \frac{1}{$bot[2] \sqrt{z}} \right)^{$power[2]} = \left( \frac{1}{$bot[2]} z^{-1/2} \right)^{$power[2]} = \frac{1}{$simp[2]} z^{-$power[2]/2} \) $BR $SPACE $BR diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec1/Q04.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec1/Q04.pg index 9dba233623..84866c2dde 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec1/Q04.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec1/Q04.pg @@ -32,7 +32,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -59,10 +59,10 @@ BEGIN_TEXT Is the function \( \displaystyle $f[3] \) a power function? If it is, write it in the form \( H(t) = kt^p \) and enter exact values for \( k \) and \( p \). If it is not a power function, enter ${BITALIC}NONE${EITALIC} in both blanks. Do not leave any blanks empty. $PAR \( k = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("fractions") \} +\{ helpLink("fractions") \} $BR \( p = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("fractions") \} +\{ helpLink("fractions") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec1/Q05.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec1/Q05.pg index 75041c93c4..943803ff7c 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec1/Q05.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec1/Q05.pg @@ -33,7 +33,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -58,10 +58,10 @@ BEGIN_TEXT Is the function \( \displaystyle $f[4] \) a power function? If it is, write it in the form \( T(s) = ks^p \) and enter exact values for \( k \) and \( p \). If it is not a power function, enter ${BITALIC}NONE${EITALIC} in both blanks. Do not leave any blanks empty. $PAR \( k = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("fractions") \} +\{ helpLink("fractions") \} $BR \( p = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("fractions") \} +\{ helpLink("fractions") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec1/Q06.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec1/Q06.pg index ba0951d398..fb6e9abd63 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec1/Q06.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec1/Q06.pg @@ -32,7 +32,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -55,10 +55,10 @@ BEGIN_TEXT Is the function \( \displaystyle $f[5] \) a power function? If it is, write it in the form \( m(x) = kx^p \) and enter exact values for \( k \) and \( p \). If it is not a power function, enter ${BITALIC}NONE${EITALIC} in both blanks. Do not leave any blanks empty. $PAR \( k = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("fractions") \} +\{ helpLink("fractions") \} $BR \( p = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("fractions") \} +\{ helpLink("fractions") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec1/Q12.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec1/Q12.pg index e2692ae70e..8c7bf121be 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec1/Q12.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec1/Q12.pg @@ -24,7 +24,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -47,11 +47,11 @@ $rd_p = round($p*10000)/10000; $ans = "$k x^($p)"; BEGIN_TEXT -Find a power function through the points \( (1 , $y1) \) and \( ($x2 , $y2) \). +Find a power function through the points \( (1 , $y1) \) and \( ($x2 , $y2) \). +$BR $BR -$BR \( f(x) = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT ANS(Compute("$ans")->cmp() ); @@ -60,9 +60,9 @@ ANS(Compute("$ans")->cmp() ); SOLUTION(EV3(<<'END_SOLUTION')); -$BR $SPACE $BR +$BR $SPACE $BR $BBOLD SOLUTION $EBOLD -$BR +$BR We use the form \( y=kx^p \) and solve for \( k \) and \( p \). Using the point \( (1,$y1) \), we have \( $y1 = k 1^p\). Since \( 1^p \) is \( 1 \) for any \( p \), we know that \( k=$y1 \). Using our other point, we see that $BR $SPACE $BR diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec1/Q15.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec1/Q15.pg index 6b148c157c..46f7cd4332 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec1/Q15.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec1/Q15.pg @@ -31,7 +31,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -59,12 +59,12 @@ $PAR $BR \( y = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $PAR (b) Use your formula to find \( x \) when \( y= $y2 \). $BR \( x = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec1/Q20.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec1/Q20.pg index 42b1c71fa6..31d71f5cce 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec1/Q20.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec1/Q20.pg @@ -31,7 +31,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextLimitedPolynomial.pl", "PGcourse.pl" ); @@ -65,7 +65,7 @@ $BCENTER $ECENTER $PAR \( f(x) = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec1/Q23.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec1/Q23.pg index 6186d5022a..0a0fe59d11 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec1/Q23.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec1/Q23.pg @@ -31,7 +31,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec1/Q35.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec1/Q35.pg index 4a05df7a77..21a74e4db8 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec1/Q35.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec1/Q35.pg @@ -23,7 +23,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserPopUp.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -45,30 +45,30 @@ $need = round($k/$q*10)/10; $ans_c = ceil($k/$q); -$popup = PopUp(["Select One", - "Directly proportional", +$popup = PopUp(["Select One", + "Directly proportional", "Inversely proportional"], "Inversely proportional"); BEGIN_TEXT -A group of friends rent a house at the beach for spring break for a total cost of ${DOLLAR}\( $k\). +A group of friends rent a house at the beach for spring break for a total cost of ${DOLLAR}\( $k\). $BR $BR (a) Suppose all the members of the group pay an equal share of the total cost. Is the cost to each person directly or inversely proportional to the number of people sharing the house? Be sure you can explain your reasoning. \{ $popup->menu() \} $BR $BR -(b) Write a formula for the cost \( C \) per person as a function of the number of students who share the house, \( n \). +(b) Write a formula for the cost \( C \) per person as a function of the number of students who share the house, \( n \). $BR -\( C(n) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\( C(n) = \) \{ ans_rule(20) \} +\{ helpLink("formulas") \} $BR $BR -(c) How many people are needed to share the house if each student wants to pay a maximum of ${DOLLAR}\( $q \)? +(c) How many people are needed to share the house if each student wants to pay a maximum of ${DOLLAR}\( $q \)? $BR \{ ans_rule(8) \} students -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT ANS($popup->cmp() ); @@ -82,11 +82,11 @@ ANS(Compute("$ans_c")->cmp() ); SOLUTION(EV3(<<'END_SOLUTION')); -$BR $SPACE $BR +$BR $SPACE $BR $BBOLD SOLUTION $EBOLD -$BR +$BR a) $SPACE The rent is inversely proportional to the number of friends sharing -the house, because as the number, \( n \), of friends increases, the amount each of them pays, \( C \), decreases. +the house, because as the number, \( n \), of friends increases, the amount each of them pays, \( C \), decreases. $BR $SPACE $BR b) $SPACE Substituting the given values into the general formula \( C = \frac{k}{n} \), we get \( $k = \frac{k}{$num[$i]} \), so \( k=$price \) and the formula is \( C = \frac{$k}{n} \). diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec1/Q36.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec1/Q36.pg index 4fa8fd6fbb..000ef4750d 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec1/Q36.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec1/Q36.pg @@ -32,7 +32,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserPopUp.pl", - "AnswerFormatHelp.pl", + "parserNumberWithUnits.pl", "PGcourse.pl" ); @@ -67,11 +67,11 @@ $PAR (b) Write a formula for the proportion that represents the time the drive takes, \( h \) (in hours), as a function of your speed, \( v \) in mi/hr. $BR \( h(v) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $PAR (c) To get to Albany in 3 hours, how fast would you have to drive? $BR -\{ ans_rule(15) \} (Include \{ AnswerFormatHelp("units") \} in your answer and round to three decimal places.) +\{ ans_rule(15) \} (Include \{ helpLink("units") \} in your answer and round to three decimal places.) END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec1/Q42.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec1/Q42.pg index ca026fcf75..33e90dda3a 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec1/Q42.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec1/Q42.pg @@ -31,7 +31,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -62,13 +62,13 @@ $PAR (a) Find \( P \) as a function of \( d \). $BR \( P(d) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $PAR (b) The planet $planet[$i] has an average distance from the sun of \( $mil[$i] \) miles. How many earth days are in a $planet[$i] year -- in other words, what is the period of the planet $planet[$i]? $BR \{ ans_rule(20) \} days (Round to nearest day and do not enter commas in your answer.) -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec2/Q01.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec2/Q01.pg index cf674b075a..67fc77f79c 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec2/Q01.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec2/Q01.pg @@ -32,7 +32,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -50,10 +50,10 @@ BEGIN_TEXT Are the functions below polynomials? If they are, enter their degree. If not, enter ${BITALIC}NONE.${EITALIC} $PAR \( f(x) = $a \) has degree \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $PAR \( g(x) = $b + x \) has degree \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec2/Q02.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec2/Q02.pg index 8dfb9b2fc9..97385c7479 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec2/Q02.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec2/Q02.pg @@ -32,7 +32,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -55,10 +55,10 @@ BEGIN_TEXT Are the functions below polynomials? If they are, enter their degree. If not, enter ${BITALIC}NONE.${EITALIC} $PAR \( f(x) = $eqn[$i] \) has degree \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $PAR \( g(x) = $eqn[$i-1] \) has degree \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec2/Q03.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec2/Q03.pg index 1ad9c2113f..b5410e667b 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec2/Q03.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec2/Q03.pg @@ -32,7 +32,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -60,13 +60,13 @@ BEGIN_TEXT Are the functions below polynomials? If they are, enter their degree. If not, enter ${BITALIC}NONE.${EITALIC} $PAR \( f(x) = $eqn[$i] \) has degree \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $PAR \( g(x) = $eqn[$i-1] \) has degree \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $PAR \( h(x) = $eqn[$i-2] \) has degree \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec2/Q04.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec2/Q04.pg index d5f7d61418..6b4914e3e5 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec2/Q04.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec2/Q04.pg @@ -32,7 +32,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -63,10 +63,10 @@ BEGIN_TEXT Is the function below a polynomial? If it is, enter its degree in the blank. If not, enter ${BITALIC}NONE.${EITALIC} $PAR \( f(x) = $eqn[$i] \ \) has degree \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $PAR \( g(x) = $eqn[$i-1] \ \) has degree \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec2/Q05.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec2/Q05.pg index 54c995f55f..8ff746ad07 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec2/Q05.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec2/Q05.pg @@ -32,7 +32,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -55,10 +55,10 @@ BEGIN_TEXT Are the functions below polynomials? If they are, enter their degree. If not, enter ${BITALIC}NONE.${EITALIC} $PAR \( y = - $a[3] + $a[4] x^{10} - $a[5] \sqrt{x^{$odd}} \) has degree \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $PAR \( y = \sqrt{$a[3]} x^{$d} + $a[1] x^3 \) has degree \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec2/Q06.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec2/Q06.pg index a3d701d9ba..d1d41bf928 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec2/Q06.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec2/Q06.pg @@ -33,7 +33,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -63,10 +63,10 @@ BEGIN_TEXT Is the function below a polynomial? If it is, enter its degree. If not, enter ${BITALIC}NONE.${EITALIC} $PAR \( f(t) = $eqn[$i] \ \) has degree \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $PAR \( g(t) = $eqn[$i-1] \ \) has degree \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec2/Q10.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec2/Q10.pg index bc02cdcad3..97e131e8e3 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec2/Q10.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec2/Q10.pg @@ -33,7 +33,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -73,7 +73,7 @@ $PAR (a) What power function does the function above resemble? $BR \{ ans_rule(10) \} (Enter the entire power function, not just the degree of the power function.) -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $PAR (b) Describe the long-run behavior of the polynomial. Enter ${BITALIC}INFINITY${EITALIC} or ${BITALIC}-INFINITY${EITALIC} to denote \( \infty \) or \( - \infty \). $BR diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec2/Q22.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec2/Q22.pg index fe4c42031d..e1544cb0cc 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec2/Q22.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec2/Q22.pg @@ -35,7 +35,7 @@ loadMacros( "PGgraphmacros.pl", "extraAnswerEvaluators.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextInequalities.pl", "PGcourse.pl" ); @@ -136,10 +136,10 @@ Context()->texStrings; BEGIN_TEXT $BR make a profit? \{ ans_rule(20) \} units -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} $BR lose money? \{ ans_rule(20) \} units -\{ AnswerFormatHelp("inequalities") \} +\{ helpLink("inequalities") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec2/polynomial-01.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec2/polynomial-01.pg index a3ce89c03d..8344cae712 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec2/polynomial-01.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec2/polynomial-01.pg @@ -31,7 +31,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "alignedChoice.pl", "PGcourse.pl" ); @@ -74,8 +74,8 @@ Context()->normalStrings; Context()->texStrings; BEGIN_TEXT -The polynomial \( f(x) = $f \) -has +The polynomial \( f(x) = $f \) +has $BR \{ $al->print_q() \} END_TEXT @@ -96,7 +96,7 @@ BEGIN_SOLUTION $PAR $BBOLD SOLUTION $EBOLD $PAR -Since \( f(x) = $f = $f_expanded \), the degree is \( $mpn \), +Since \( f(x) = $f = $f_expanded \), the degree is \( $mpn \), the leading coefficient is \( -$b \), and the constant coefficient is \( 0 \). END_SOLUTION diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec2/polynomial-02.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec2/polynomial-02.pg index 5ae2aa5f54..25bb908559 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec2/polynomial-02.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec2/polynomial-02.pg @@ -32,7 +32,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -69,23 +69,23 @@ $answer3 = Compute("infinity"); Context()->texStrings; BEGIN_TEXT -Suppose \( f(x) = $f \). +Suppose \( f(x) = $f \). $BR $BR -(a) The roots of \( f(x) \) are -\( x = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +(a) The roots of \( f(x) \) are +\( x = \) \{ ans_rule(20) \} +\{ helpLink("numbers") \} (If a root is repeated, enter it only once.) $BR $BR -(b) As \( x \to \infty \), +(b) As \( x \to \infty \), \( f(x) \to \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR $BR -(b) As \( x \to -\infty \), +(b) As \( x \to -\infty \), \( f(x) \to \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; @@ -107,19 +107,19 @@ $PAR $BBOLD SOLUTION $EBOLD $BR $BR -(a) To find the roots, we solve \( $f = 0 \) for \(x\). +(a) To find the roots, we solve \( $f = 0 \) for \(x\). Either \( x^{$m} = 0 \), in which case \( x = 0 \), or -\( $a - $b x^{$n} = 0 \), in which case +\( $a - $b x^{$n} = 0 \), in which case \( \displaystyle x = \sqrt[$n]{\frac{$a}{$b}} \). $BR $BR (b) Since the leading term is \( -$b x^{$mpn} \) and -\( -$b x^{$mpn} \to -\infty \) as \( x \to \infty \), +\( -$b x^{$mpn} \to -\infty \) as \( x \to \infty \), we have \( $f \to -\infty \) as \( x \to \infty \). $BR $BR (c) Since the leading term is \( -$b x^{$mpn} \) and -\( -$b x^{$mpn} \to \infty \) as \( x \to -\infty \), +\( -$b x^{$mpn} \to \infty \) as \( x \to -\infty \), we have \( $f \to \infty \) as \( x \to -\infty \). END_SOLUTION diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec2/polynomial-03.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec2/polynomial-03.pg index de2e4e2dc6..b65b33abfa 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec2/polynomial-03.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec2/polynomial-03.pg @@ -31,7 +31,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "alignedChoice.pl", "PGcourse.pl" ); @@ -75,8 +75,8 @@ Context()->normalStrings; Context()->texStrings; BEGIN_TEXT -The polynomial \( f(x) = $f \) -has +The polynomial \( f(x) = $f \) +has $BR \{ $al->print_q() \} END_TEXT @@ -97,14 +97,14 @@ BEGIN_SOLUTION $PAR $BBOLD SOLUTION $EBOLD $PAR -Since \( f(x) = $f = $f1 \), by multiplying the highest +Since \( f(x) = $f = $f1 \), by multiplying the highest degree terms in each factor we find the highest degree term to be \( (-$b x)($c x)($c x) = $leading x^3 \), and therefore the degree is \( 3 \) and the leading coefficent is \( $leading \). Similarly, by multiplying the constant terms from each factor of \( $f1 \), we get the constant coefficient -\( ($a) (-$d) (-$d) = $constant \). Therefore, -\( f(x) = $leading x^3 + \cdots + $constant \), where we +\( ($a) (-$d) (-$d) = $constant \). Therefore, +\( f(x) = $leading x^3 + \cdots + $constant \), where we have omitted the degree 1 and 2 terms. END_SOLUTION diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec2/polynomial-04.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec2/polynomial-04.pg index 6747db6dc1..af6df1ec99 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec2/polynomial-04.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec2/polynomial-04.pg @@ -32,7 +32,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "alignedChoice.pl", "PGcourse.pl" ); @@ -71,23 +71,23 @@ $answer3 = Compute("infinity"); Context()->texStrings; BEGIN_TEXT -Suppose \( f(x) = $f \). +Suppose \( f(x) = $f \). $BR $BR -(a) The roots of \( f(x) \) are -\( x = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +(a) The roots of \( f(x) \) are +\( x = \) \{ ans_rule(20) \} +\{ helpLink("numbers") \} (If a root is repeated, enter it only once.) $BR $BR -(b) As \( x \to \infty \), +(b) As \( x \to \infty \), \( f(x) \to \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR $BR -(b) As \( x \to -\infty \), +(b) As \( x \to -\infty \), \( f(x) \to \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; @@ -109,20 +109,20 @@ $PAR $BBOLD SOLUTION $EBOLD $BR $BR -(a) To find the roots, we solve \( $f = 0 \) for \(x\). -Either \( $a - $b x = 0 \), in which case +(a) To find the roots, we solve \( $f = 0 \) for \(x\). +Either \( $a - $b x = 0 \), in which case \( \displaystyle x = \frac{$a}{$b} \), or -\( ($c x - $d)^2 = 0 \), in which case +\( ($c x - $d)^2 = 0 \), in which case \( \displaystyle x = \frac{$d}{$c}} \). $BR $BR (b) Since the leading term is \( $leading x^3 \) and -\( $leading x^3 \to -\infty \) as \( x \to \infty \), +\( $leading x^3 \to -\infty \) as \( x \to \infty \), we have \( $f \to -\infty \) as \( x \to \infty \). $BR $BR (c) Since the leading term is \( $leading x^3 \) and -\( $leading x^3 \to \infty \) as \( x \to -\infty \), +\( $leading x^3 \to \infty \) as \( x \to -\infty \), we have \( $f \to \infty \) as \( x \to -\infty \). END_SOLUTION diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec2/polynomial-05.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec2/polynomial-05.pg index 7fe7a2e0f3..63c879d830 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec2/polynomial-05.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec2/polynomial-05.pg @@ -32,7 +32,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "alignedChoice.pl", "PGcourse.pl" ); @@ -60,7 +60,7 @@ $f1 = Formula("(-x + $a) (x + $b) ($c x + $d) ($c x + $d)"); $degree = 4; -$leading = -1 * $c**2; +$leading = -1 * $c**2; $constant = $a * $b * $d**2; Context()->texStrings; @@ -78,8 +78,8 @@ Context()->normalStrings; Context()->texStrings; BEGIN_TEXT -The polynomial \( f(x) = $f \) -has +The polynomial \( f(x) = $f \) +has $BR \{ $al->print_q() \} END_TEXT @@ -100,14 +100,14 @@ BEGIN_SOLUTION $PAR $BBOLD SOLUTION $EBOLD $PAR -Since \( f(x) = $f = $f1 \), by multiplying the highest +Since \( f(x) = $f = $f1 \), by multiplying the highest degree terms in each factor we find the highest degree term to be \( (-x)(x)($c x)($c x) = $leading x^{$degree} \), and therefore the degree is \( $degree \) and the leading coefficent is \( $leading \). Similarly, by multiplying the constant terms from each factor of \( $f1 \), we get the constant coefficient -\( ($a)($b)($d)($d) = $constant \). Therefore, -\( f(x) = $leading x^{$degree} + \cdots + $constant \), where we +\( ($a)($b)($d)($d) = $constant \). Therefore, +\( f(x) = $leading x^{$degree} + \cdots + $constant \), where we have omitted the degree 1, 2, and 3 terms. END_SOLUTION diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec2/polynomial-06.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec2/polynomial-06.pg index 6e5e951170..0d02f4210b 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec2/polynomial-06.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec2/polynomial-06.pg @@ -32,7 +32,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "alignedChoice.pl", "PGcourse.pl" ); @@ -61,15 +61,15 @@ $f = Formula("$s ( $a - x ) (x + $b) ($c x + $d)^2")->reduce(); $f1 = Formula("$s (-x + $a) (x + $b) ($c x + $d) ($c x + $d)")->reduce(); $degree = 4; -$leading = -1 * $s * $c**2; +$leading = -1 * $s * $c**2; $constant = $s * $a * $b * $d**2; $answer1 = List(Compute("$a"), Compute("-$b"), Compute("-$d / $c")); -if ($s1 == 1) { - $sign = "+"; +if ($s1 == 1) { + $sign = "+"; $answer2 = Formula("infinity"); -} else { - $sign = "-"; +} else { + $sign = "-"; $answer2 = Formula("-infinity"); } $answer3 = $answer2; @@ -80,23 +80,23 @@ $answer3 = $answer2; Context()->texStrings; BEGIN_TEXT -Suppose \( f(x) = $f \). +Suppose \( f(x) = $f \). $BR $BR -(a) The roots of \( f(x) \) are -\( x = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +(a) The roots of \( f(x) \) are +\( x = \) \{ ans_rule(20) \} +\{ helpLink("numbers") \} (If a root is repeated, enter it only once.) $BR $BR -(b) As \( x \to \infty \), +(b) As \( x \to \infty \), \( f(x) \to \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR $BR -(b) As \( x \to -\infty \), +(b) As \( x \to -\infty \), \( f(x) \to \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; @@ -118,20 +118,20 @@ $PAR $BBOLD SOLUTION $EBOLD $BR $BR -(a) To find the roots, we solve \( $f = 0 \) for \(x\). -Either \( $a - x = 0 \), in which case -\( x = $a \), or \( x + $b = 0 \), in which case -\( x = -$b \), or \( ($c x + $d)^2 = 0 \), in which case +(a) To find the roots, we solve \( $f = 0 \) for \(x\). +Either \( $a - x = 0 \), in which case +\( x = $a \), or \( x + $b = 0 \), in which case +\( x = -$b \), or \( ($c x + $d)^2 = 0 \), in which case \( \displaystyle x = -\frac{$d}{$c} \). $BR $BR (b) Since the leading term is \( $leading x^{$degree} \) and -\( $leading x^{$degree} \to $sign\infty \) as \( x \to \infty \), +\( $leading x^{$degree} \to $sign\infty \) as \( x \to \infty \), we have \( $f \to $sign\infty \) as \( x \to \infty \). $BR $BR (c) Since the leading term is \( $leading x^{$degree} \) and -\( $leading x^{$degree} \to $sign \infty \) as \( x \to -\infty \), +\( $leading x^{$degree} \to $sign \infty \) as \( x \to -\infty \), we have \( $f \to $sign\infty \) as \( x \to -\infty \). END_SOLUTION diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec3/Q03.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec3/Q03.pg index 3aa142efde..3cc258e085 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec3/Q03.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec3/Q03.pg @@ -32,7 +32,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -57,7 +57,7 @@ BEGIN_TEXT Find all of the zeros of the function \( f(x) = x^3 + $a[2] x^2 + $a[1] x \). If there is more than one answer, enter your answers as a comma separated list. If there are no zeros, enter ${BITALIC}NONE.${EITALIC} Enter exact answers, not decimal approximations. $PAR \( x = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec3/Q04.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec3/Q04.pg index e0c62a2586..8d415af0e8 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec3/Q04.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec3/Q04.pg @@ -30,7 +30,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -65,7 +65,7 @@ Find all of the zeros of the function \( f(x) = \left( $g \right) \left( $h \rig If there is more than one answer, enter your answers as a comma separated list. If there are no zeros, enter ${BITALIC}NONE.${EITALIC} Enter exact answers, not decimal approximations. $PAR \( x = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec3/Q06.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec3/Q06.pg index 753480f206..d6d594680e 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec3/Q06.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec3/Q06.pg @@ -34,7 +34,7 @@ loadMacros( "PGstandard.pl", "PGgraphmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "PGcourse.pl" ); @@ -93,9 +93,9 @@ ColumnTable( "The function \( f(x) = $func \) can be factored in the form \( f(x) = $sign(x - r_1)(x - r_2)^p \). Using the graph, determine \( r_1 \), \(r_2\), and \( p \).". $BR. $BR. -"\( r_1 = \) ".ans_rule(5).$SPACE.AnswerFormatHelp("numbers").$BR. -"\( r_2 = \) ".ans_rule(5).$SPACE.AnswerFormatHelp("numbers").$BR. -"\( p = \) ".$SPACE.ans_rule(5).$SPACE.AnswerFormatHelp("numbers").$BR, +"\( r_1 = \) ".ans_rule(5).$SPACE.helpLink("numbers").$BR. +"\( r_2 = \) ".ans_rule(5).$SPACE.helpLink("numbers").$BR. +"\( p = \) ".$SPACE.ans_rule(5).$SPACE.helpLink("numbers").$BR, $fig. $BR.$BCENTER."(Click on graph to enlarge)".$ECENTER, indent => 0, separation => 30, valign => "TOP" diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec3/Q17.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec3/Q17.pg index 246dfa6ed8..3691826932 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec3/Q17.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec3/Q17.pg @@ -31,7 +31,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -54,7 +54,7 @@ BEGIN_TEXT Find a possible formula for a polynomial \( f \) that has degree 2 or less, \( f($r)=f($s)=0 \) and \( f($x0)=$y0 \). $PAR \( f(x) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec3/Q24.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec3/Q24.pg index 079c316d7f..193470ecfb 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec3/Q24.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec3/Q24.pg @@ -33,7 +33,7 @@ loadMacros( "PGstandard.pl", "PGgraphmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -77,7 +77,7 @@ Find a formula for the polynomial of least degree that is graphed below. The po \( $r, -$s, $s \) and \(y\)-intercept \( $y0 \). $PAR \( y = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $PAR $BCENTER $fig diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec3/Q28.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec3/Q28.pg index e813a95bce..8bc8b1dfbe 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec3/Q28.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec3/Q28.pg @@ -33,7 +33,7 @@ loadMacros( "PGstandard.pl", "PGgraphmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -88,7 +88,7 @@ Its \(x\)-intercepts are \( 0 \) and \( $s \), and the graph goes through the point \( ($x0,$y0) \). $PAR \( y = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $PAR $BCENTER $fig diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec3/Q33.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec3/Q33.pg index 3bd8cfcfb4..bd8d1949fa 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec3/Q33.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec3/Q33.pg @@ -33,7 +33,7 @@ loadMacros( "PGstandard.pl", "PGgraphmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -100,7 +100,7 @@ The graph has \(x\)-intercepts \( -$s, 0, $s \) and goes through the points \( (-$x0,$h) \) and \( ($x0,$h) \). $PAR \( y = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $PAR $BCENTER $fig diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec3/Q38.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec3/Q38.pg index ccb4dec99c..6fca3dc4b0 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec3/Q38.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec3/Q38.pg @@ -31,7 +31,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -72,7 +72,7 @@ BEGIN_TEXT Find the zeros of the function \( y = $func \). If there is more than one answer, enter your answers as a comma separated list. If there are no real zeros, enter ${BITALIC}NONE.${EITALIC}. Enter exact answers, not decimal approximations. $PAR \( x = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec3/Q43.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec3/Q43.pg index a353ba1849..fd0ee8ef08 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec3/Q43.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec3/Q43.pg @@ -36,7 +36,7 @@ loadMacros( "PGgraphmacros.pl", "extraAnswerEvaluators.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextInequalities.pl", "parserNumberWithUnits.pl", "PGcourse.pl" @@ -117,7 +117,7 @@ Context()->texStrings; BEGIN_TEXT (b) For what values of \( x \) does the formula from part (a) make sense in the context of the problem? $BR -\{ ans_rule(20) \} \{ AnswerFormatHelp('inequalities') \} +\{ ans_rule(20) \} \{ helpLink('inequalities') \} END_TEXT Context()->normalStrings; @@ -132,7 +132,7 @@ $PAR (c) On a separate piece of paper, sketch a graph of the volume function. $PAR (d) What, approximately, is the maximum volume of the box? $BR -\{ ans_rule(20) \} (include units: \{ AnswerFormatHelp('units') \}) +\{ ans_rule(20) \} (include units: \{ helpLink('units') \}) END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec3/polynomial-01.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec3/polynomial-01.pg index 9ff06a5130..81062a0356 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec3/polynomial-01.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec3/polynomial-01.pg @@ -33,11 +33,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGgraphmacros.pl", "PGcourse.pl" ); -# ProblemRandomize(when=>"Always"); +# ProblemRandomize(when=>"Always"); TEXT(beginproblem()); @@ -86,7 +86,7 @@ foreach my $i (1..5) { # # Construct a polynomial through the following points -# +# @x = (); @y = (); @@ -128,8 +128,8 @@ Find a formula for the polynomial of least degree through the points shown in the graph. $BR $BR -\( f(x) = \) -\{ ans_rule(30).$SPACE.AnswerFormatHelp('formulas') \} +\( f(x) = \) +\{ ans_rule(30).$SPACE.helpLink('formulas') \} $BR $BR $BCENTER @@ -149,4 +149,4 @@ ANS( $answer->cmp() ); ; -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec3/polynomial-02.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec3/polynomial-02.pg index 5def30f787..0d6ea962b6 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec3/polynomial-02.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec3/polynomial-02.pg @@ -33,11 +33,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGgraphmacros.pl", "PGcourse.pl" ); -#ProblemRandomize(when=>"Always"); +#ProblemRandomize(when=>"Always"); TEXT(beginproblem()); @@ -86,7 +86,7 @@ foreach my $i (1..5) { # # Construct a polynomial through the following points -# +# @x = (); @y = (); @@ -125,8 +125,8 @@ Find a formula for the polynomial of least degree through the points shown in the graph. $BR $BR -\( f(x) = \) -\{ ans_rule(30).$SPACE.AnswerFormatHelp('formulas') \} +\( f(x) = \) +\{ ans_rule(30).$SPACE.helpLink('formulas') \} $BR $BR $BCENTER @@ -146,4 +146,4 @@ ANS( $answer->cmp() ); ; -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec3/polynomial-03.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec3/polynomial-03.pg index 6ca11e387a..abfb690665 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec3/polynomial-03.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec3/polynomial-03.pg @@ -33,11 +33,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGgraphmacros.pl", "PGcourse.pl" ); -#ProblemRandomize(when=>"Always"); +#ProblemRandomize(when=>"Always"); TEXT(beginproblem()); @@ -86,7 +86,7 @@ foreach my $i (1..5) { # # Construct a polynomial through the following points -# +# @x = (); @y = (); @@ -125,8 +125,8 @@ Find a formula for the polynomial of least degree through the points shown in the graph. $BR $BR -\( f(x) = \) -\{ ans_rule(30).$SPACE.AnswerFormatHelp('formulas') \} +\( f(x) = \) +\{ ans_rule(30).$SPACE.helpLink('formulas') \} $BR $BR $BCENTER @@ -146,4 +146,4 @@ ANS( $answer->cmp() ); ; -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec4/Q01.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec4/Q01.pg index 818886596b..662c5ea0de 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec4/Q01.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec4/Q01.pg @@ -32,7 +32,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "contextLimitedPolynomial.pl", "PGcourse.pl" @@ -81,7 +81,7 @@ if ($displayMode eq 'TeX') { BEGIN_TEXT Is the function below a rational function? If it is, write it in ${BITALIC}reduced${EITALIC} form as a ratio of polynomials \( \displaystyle \frac{p(x)}{q(x)} \). If it is not, enter ${BITALIC}NONE${EITALIC} in both blanks. Do not leave any blanks empty. -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BCENTER $showfraction diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec4/Q02.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec4/Q02.pg index 21e2552750..e4c1a4fee2 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec4/Q02.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec4/Q02.pg @@ -33,7 +33,7 @@ loadMacros( "PGstandard.pl", "PGchoicemacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "PGcourse.pl" ); @@ -80,7 +80,7 @@ if ($displayMode eq 'TeX') { BEGIN_TEXT Is the function below a rational function? If it is, write it in ${BITALIC}reduced${EITALIC} form as a ratio of polynomials \( \displaystyle \frac{p(x)}{q(x)} \). If it is not, enter ${BITALIC}NONE${EITALIC} in both blanks. Do not leave any blanks empty. -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BCENTER $showfraction diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec4/Q03.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec4/Q03.pg index d1311966fa..ebd2238775 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec4/Q03.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec4/Q03.pg @@ -32,7 +32,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "PGcourse.pl" ); @@ -75,7 +75,7 @@ Is the function below a rational function? If it is, write it in ${BITALIC}reduced${EITALIC} form as a ratio of polynomials \( \displaystyle \frac{p(x)}{q(x)} \). If it is not, enter ${BITALIC}NONE${EITALIC} in both blanks. Do not leave any blanks empty. -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BCENTER $showfraction diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec4/Q04.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec4/Q04.pg index 5ea9ef93cf..065774f6bc 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec4/Q04.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec4/Q04.pg @@ -32,7 +32,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "PGcourse.pl" ); @@ -73,7 +73,7 @@ if ($displayMode eq 'TeX') { BEGIN_TEXT Is the function below a rational function? If it is, write it in ${BITALIC}reduced${EITALIC} form as a ratio of polynomials \( \displaystyle \frac{p(x)}{q(x)} \). If it is not, enter ${BITALIC}NONE${EITALIC} in both blanks. Do not leave any blanks empty. -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BCENTER $showfraction diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec4/Q05.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec4/Q05.pg index e3bd1d9af8..6806af183e 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec4/Q05.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec4/Q05.pg @@ -33,7 +33,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "contextLimitedPolynomial.pl", "PGcourse.pl" @@ -86,7 +86,7 @@ if ($displayMode eq 'TeX') { BEGIN_TEXT Is the function below a rational function? If it is, write it in ${BITALIC}reduced${EITALIC} form as a ratio of polynomials \( \displaystyle \frac{p(x)}{q(x)} \). If it is not, enter ${BITALIC}NONE${EITALIC} in both blanks. Do not leave any blanks empty. -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BCENTER $showfraction diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec4/Q08.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec4/Q08.pg index 8433ee4f2f..0b0b1bd3e0 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec4/Q08.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec4/Q08.pg @@ -32,7 +32,7 @@ loadMacros( "PGstandard.pl", "PGchoicemacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -74,10 +74,10 @@ BEGIN_TEXT Find the limits (that is, end behaviors) below. Enter ${BITALIC}INFINITY${EITALIC} and ${BITALIC}-INFINITY${EITALIC} for \( \infty \) and \( -\infty \), respectively. $PAR (a) As \( x \to \infty\), \( \ \ \displaystyle $eqn1 \to \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("limits") \} +\{ helpLink("limits") \} $PAR (b) As \( x\to -\infty\), \( \ \ \displaystyle $eqn2 \to \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("limits") \} +\{ helpLink("limits") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec4/Q10.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec4/Q10.pg index a7ad911d0f..094563a4c6 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec4/Q10.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec4/Q10.pg @@ -32,7 +32,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserImplicitPlane.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -61,7 +61,7 @@ $PAR \( \displaystyle \ g(x) = $eqn \) $PAR The horizontal asymptote has equation \{ ans_rule(20) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec4/Q11.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec4/Q11.pg index a5e0e60fa8..7c79addb0e 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec4/Q11.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec4/Q11.pg @@ -31,7 +31,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserImplicitPlane.pl", "PGcourse.pl" ); @@ -63,7 +63,7 @@ $PAR \( \displaystyle \ h(x) = $eqn \) $PAR The horizontal asymptote has equation \{ ans_rule(20) \} -\{ AnswerFormatHelp("equations") \} +\{ helpLink("equations") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec4/Q12.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec4/Q12.pg index b601d2f6d2..3ccae15bae 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec4/Q12.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec4/Q12.pg @@ -32,7 +32,7 @@ loadMacros( "PGstandard.pl", "PGchoicemacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -75,13 +75,13 @@ $PAR \( \displaystyle f(x) = $eqn[0] \) , \( \displaystyle g(x) = $eqn[1] \) , and \( \displaystyle h(x) = $eqn[2] \) $PAR \( f(x) \) will behave like the function \( y = \) \{ ans_rule(15) \} as \( x \to \pm \infty \). -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $PAR \( g(x) \) will behave like the function \( y = \) \{ ans_rule(15) \} as \( x \to \pm \infty \). -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $PAR \( h(x) \) will behave like the function \( y = \) \{ ans_rule(15) \} as \( x \to \pm \infty \). -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec4/Q13.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec4/Q13.pg index 8ef3f624bf..5d83297f88 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec4/Q13.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec4/Q13.pg @@ -31,7 +31,7 @@ loadMacros( "PGstandard.pl", "PGchoicemacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec4/Q16.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec4/Q16.pg index 03ed9a55ae..f135899fd5 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec4/Q16.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec4/Q16.pg @@ -33,7 +33,7 @@ loadMacros( "PGgraphmacros.pl", "parserPopUp.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -109,7 +109,7 @@ $PAR (c) Approximately how many weeks must pass before the oxygen level returns to \( $per \)$PERCENT of its normal level? $BR \{ ans_rule(15) \} weeks (Round to at least two decimal places.) -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec5/Q02.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec5/Q02.pg index a3bb5b3083..aacb1646ee 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec5/Q02.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec5/Q02.pg @@ -32,7 +32,7 @@ loadMacros( "PGstandard.pl", "PGgraphmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -75,13 +75,13 @@ $PAR If there is more than one answer, enter all such values for each in a comma separated list. If are no solutions, enter ${BITALIC}NONE.${EITALIC} Do not leave a blank empty. $PAR (a) The function has zero(s) at \( x = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $PAR (b) The function has vertical asymptote(s) at \( x = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $PAR (c) The function's long-run behavior is that \( y \to \) \{ ans_rule(5) \} as \( x \to \pm \infty \) -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $PAR (d) On a piece of paper, sketch a graph of this function without using your calculator. END_TEXT diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec5/Q03.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec5/Q03.pg index 9c1dd2bd29..947c5c5d35 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec5/Q03.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec5/Q03.pg @@ -32,7 +32,7 @@ loadMacros( "PGstandard.pl", "PGgraphmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -84,13 +84,13 @@ $PAR If there is more than one answer, enter your answers as a comma separated list. If there is no solution, enter ${BITALIC}NONE.${EITALIC} Do not leave a blank empty. $PAR (a) The function has zero(s) at \( x = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $PAR (b) The function has vertical asymptote(s) at \( x = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $PAR (c) The function's long-run behavior is that \( y \to \) \{ ans_rule(5) \} as \( x \to \pm \infty \). -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $PAR (d) On a piece of paper, sketch a graph of this function without using your calculator. diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec5/Q06.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec5/Q06.pg index feb441874d..5e1361a72d 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec5/Q06.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec5/Q06.pg @@ -31,7 +31,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -68,16 +68,16 @@ $PAR If there is more than one answer, enter your answers as a comma separated list. If there is no solution, enter ${BITALIC}NONE.${EITALIC} Do not leave a blank empty. $PAR (a) The function has x-intercept(s) at \( x = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $PAR (b) The function has y-intercept(s) at \( y = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $PAR (c) The function has vertical asymptote(s) when \( x = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $PAR (d) The function has horizontal asymptote(s) when \( y = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec5/Q07.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec5/Q07.pg index 73067d78b8..3ffa12dc84 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec5/Q07.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec5/Q07.pg @@ -31,7 +31,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -76,16 +76,16 @@ $PAR If there is more than one answer, enter your answers as a comma separated list. If there is no solution, enter ${BITALIC}NONE.${EITALIC} Do not leave a blank empty. $PAR (a) The function has x-intercept(s) at \( x = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $PAR (b) The function has y-intercept(s) at \( y = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $PAR (c) The function has vertical asymptote(s) when \( x = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $PAR (d) The function has horizontal asymptote(s) when \( y = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec5/Q10.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec5/Q10.pg index 2c1844eeb5..032d4f5d26 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec5/Q10.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec5/Q10.pg @@ -32,7 +32,7 @@ loadMacros( "PGstandard.pl", "PGgraphmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -119,10 +119,10 @@ Based on the values in the table, what happens to the values of \( g(x) \) as \( $BR From the left? \( g(x) \to \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("limits") \} +\{ helpLink("limits") \} $BR From the right? \( g(x) \to \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("limits") \} +\{ helpLink("limits") \} $PAR (b) Complete the two tables below to see how \( g(x) \) behaves in the long-run. If a value is undefined, enter ${BITALIC}NONE.${EITALIC} Enter exact answers using fractions instead of long decimal answers. $PAR @@ -144,19 +144,19 @@ Based on the values in your table, what happens to the values of \( g(x) \) $BR As \( x \) takes very large positive values? \( g(x) \to \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("limits") \} +\{ helpLink("limits") \} $BR As \( x \) takes very large negative values? \( g(x) \to \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("limits") \} +\{ helpLink("limits") \} $PAR (c) Without a calculator, graph \( y=g(x) \) on a piece of paper. If there is more than one answer below, enter your answers as a comma separated list. If there are no solutions, enter ${BITALIC}NONE.${EITALIC} $BR What are the vertical asymptote(s)? \( x = \) \{ ans_rule(12) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR What are the horizontal asymptote(s)? \( y = \) \{ ans_rule(12) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec5/Q13.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec5/Q13.pg index ab8e2670b9..f909786912 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec5/Q13.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec5/Q13.pg @@ -34,7 +34,7 @@ loadMacros( "PGgraphmacros.pl", "extraAnswerEvaluators.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -90,10 +90,10 @@ BEGIN_TEXT Let \( \displaystyle f(x) = $eqn \) and estimate the one-sided limits below. If you need to enter \( \infty \) or \( - \infty \), enter INFINITY or -INFINITY. $PAR (a) \( \displaystyle \lim_{x \to $q^+} f(x) = \) \{ ans_rule(12) \} -\{ AnswerFormatHelp("limits") \} +\{ helpLink("limits") \} $PAR (b) \( \displaystyle \lim_{x \to $q^-} f(x) = \) \{ ans_rule(12) \} -\{ AnswerFormatHelp("limits") \} +\{ helpLink("limits") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec5/Q14.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec5/Q14.pg index 5b2312413f..be48d26805 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec5/Q14.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec5/Q14.pg @@ -31,7 +31,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -77,10 +77,10 @@ BEGIN_TEXT Estimate the one-sided limits below. $PAR (a) As \( x \to $b^+ \), \( \displaystyle $eqn \to \) \{ ans_rule(12) \} -\{ AnswerFormatHelp("limits") \} +\{ helpLink("limits") \} $PAR (b) As \( x \to $b^- \), \( \displaystyle $eqn \to \) \{ ans_rule(12) \} -\{ AnswerFormatHelp("limits") \} +\{ helpLink("limits") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec5/Q15.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec5/Q15.pg index 1e0f416c8f..e84ce6f76c 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec5/Q15.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec5/Q15.pg @@ -34,7 +34,7 @@ loadMacros( "PGgraphmacros.pl", "extraAnswerEvaluators.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -89,16 +89,16 @@ $fig $ECENTER $BR (a) \( \displaystyle \lim_{x \to \infty} f(x) = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("limits") \} +\{ helpLink("limits") \} $PAR (b) \( \displaystyle \lim_{x \to - \infty} f(x) = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("limits") \} +\{ helpLink("limits") \} $PAR (c) \( \displaystyle \lim_{x \to $h^+} f(x) = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("limits") \} +\{ helpLink("limits") \} $PAR (d) \( \displaystyle \lim_{x \to $h^-} f(x) = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("limits") \} +\{ helpLink("limits") \} $BR END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec5/Q18.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec5/Q18.pg index a2f8ac2b0a..55ad7be86d 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec5/Q18.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec5/Q18.pg @@ -33,7 +33,7 @@ loadMacros( "PGchoicemacros.pl", "PGgraphmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -102,38 +102,38 @@ Let \( f(x) = x^2 + $a[1] x + $a[0] \) and \( g(x) = x^2 + $b[0] \). In each of $PAR (a) What are the zeros, if any, of \( f \)? \( \ x = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $PAR (b) What are the zeros, if any, of \( g \)? \( \ x = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $PAR (c) Let \( m(x) = f(x)/g(x) \). Using your calculator, find a good window to graph \( m(x) \). $BR What are the zeros, if any, of \( m \)? \( \ x = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR What are the vertical asymptotes, if any, of \( m \)? \( \ x = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR What is its long-run behavior as \( x \rightarrow \pm \infty \)? \( m(x) \to \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $PAR (d) Let \( n(x) = g(x)/f(x) \). Using your calculator, find a good window to graph \( n(x) \). $BR What are the zeros, if any, of \( n \)? \( \ x = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR What are the vertical asymptotes, if any, of \( n \)? \( \ x = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR What is its long-run behavior as \( x \rightarrow \pm \infty \)? \( n(x) \to \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec5/Q24.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec5/Q24.pg index 03b8977f5d..adad74f450 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec5/Q24.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec5/Q24.pg @@ -34,7 +34,7 @@ loadMacros( "PGgraphmacros.pl", "extraAnswerEvaluators.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -113,9 +113,9 @@ $PAR (c) Complete the exact values of the coordinates of the intercepts of the graph. $BR -\(x\)-intercept: \{ ans_rule(10) \} \{AnswerFormatHelp('points')\} +\(x\)-intercept: \{ ans_rule(10) \} \{helpLink('points')\} $BR -\(y\)-intercept: \{ ans_rule(10) \} \{AnswerFormatHelp('points')\} +\(y\)-intercept: \{ ans_rule(10) \} \{helpLink('points')\} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec5/Q34.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec5/Q34.pg index 072261f19c..682ce5f003 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec5/Q34.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec5/Q34.pg @@ -32,7 +32,7 @@ loadMacros( "PGstandard.pl", "PGgraphmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -85,7 +85,7 @@ BEGIN_TEXT Find a possible formula for the function graphed below. The \(x\)-intercept is marked with a point located at \( ($xint, 0) \), and the \(y\)-intercept is marked with a point located at \( (0, $yint) \). The asymptotes are \( y = -1 \) and \( x = $h \). Give your formula as a reduced rational function. $PAR \( f(x) = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $PAR $BCENTER $fig diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec5/Q35.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec5/Q35.pg index c4c89a3053..89603c7d61 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec5/Q35.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec5/Q35.pg @@ -32,7 +32,7 @@ loadMacros( "PGstandard.pl", "PGgraphmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -117,7 +117,7 @@ BEGIN_TEXT Find a possible formula for the function graphed below. The \(x\)-intercepts are marked with points located at \( ($m, 0) \) and \( ($n, 0) \), while the \(y\)-intercept is marked with a point located at \( \left( 0, $disp_yint \right) \). The asymptotes are \( y = $i \), \( x = $s \), and \( x = $r \). Give your formula as a reduced rational function. $PAR \( f(x) = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $PAR $BCENTER $fig diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec5/Q36.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec5/Q36.pg index 651ce2568f..cfb13b1349 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec5/Q36.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec5/Q36.pg @@ -32,7 +32,7 @@ loadMacros( "PGstandard.pl", "PGgraphmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -115,7 +115,7 @@ BEGIN_TEXT Find a possible formula for the function graphed below. Assume the function has only one \(x\)-intercept at the origin, and the point marked on the graph below is located at \( \left( $x0, $disp_y0 \right) \). The asymptotes are \( x = $s \) and \( x = $r \). Give your formula as a reduced rational function. $PAR \( f(x) = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $PAR $BCENTER $fig diff --git a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec7/Q04.pg b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec7/Q04.pg index 733d00336c..e9bda972bd 100644 --- a/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec7/Q04.pg +++ b/OpenProblemLibrary/LoyolaChicago/Precalc/Chap9Sec7/Q04.pg @@ -33,7 +33,7 @@ loadMacros( "extraAnswerEvaluators.pl", "MathObjects.pl", "parserNumberWithUnits.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -142,7 +142,7 @@ Estimate its brain weight. $BR Its brain weighs approximately \{ ans_rule(20) \}. (include units: -\{ AnswerFormatHelp("units") \}) +\{ helpLink("units") \}) END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/MC/PreAlgebra/setPreAlgebraC01S04/IntAbsValues05.pg b/OpenProblemLibrary/MC/PreAlgebra/setPreAlgebraC01S04/IntAbsValues05.pg index 681de867e1..aeedbebcc5 100644 --- a/OpenProblemLibrary/MC/PreAlgebra/setPreAlgebraC01S04/IntAbsValues05.pg +++ b/OpenProblemLibrary/MC/PreAlgebra/setPreAlgebraC01S04/IntAbsValues05.pg @@ -22,12 +22,12 @@ ## Interval graphing taken from problems by Paul Pearson ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGchoicemacros.pl", "PGgraphmacros.pl", "problemRandomize.pl", @@ -109,13 +109,13 @@ ANS( $ans->cmp(ordered=>1) ); #################################### -# Solution +# Solution #Context()->texStrings; #BEGIN_SOLUTION #$PAR -#${BBOLD}Solution:${EBOLD} +#${BBOLD}Solution:${EBOLD} #END_SOLUTION #Context()->normalStrings; diff --git a/OpenProblemLibrary/MC/PreAlgebra/setPreAlgebraC01S04/IntAbsValues06.pg b/OpenProblemLibrary/MC/PreAlgebra/setPreAlgebraC01S04/IntAbsValues06.pg index 4eb23ce141..8b2be1d9cb 100644 --- a/OpenProblemLibrary/MC/PreAlgebra/setPreAlgebraC01S04/IntAbsValues06.pg +++ b/OpenProblemLibrary/MC/PreAlgebra/setPreAlgebraC01S04/IntAbsValues06.pg @@ -23,12 +23,12 @@ ## Interval graphing taken from problems by Paul Pearson ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGchoicemacros.pl", "PGgraphmacros.pl", "problemRandomize.pl", @@ -117,13 +117,13 @@ ANS( $ans->cmp(ordered=>1) ); #################################### -# Solution +# Solution #Context()->texStrings; #BEGIN_SOLUTION #$PAR -#${BBOLD}Solution:${EBOLD} +#${BBOLD}Solution:${EBOLD} #END_SOLUTION #Context()->normalStrings; diff --git a/OpenProblemLibrary/MC/PreAlgebra/setPreAlgebraC01S10/CoordinatePlane02.pg b/OpenProblemLibrary/MC/PreAlgebra/setPreAlgebraC01S10/CoordinatePlane02.pg index 3b97ff5a5e..e149bc2086 100644 --- a/OpenProblemLibrary/MC/PreAlgebra/setPreAlgebraC01S10/CoordinatePlane02.pg +++ b/OpenProblemLibrary/MC/PreAlgebra/setPreAlgebraC01S10/CoordinatePlane02.pg @@ -20,12 +20,12 @@ ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGchoicemacros.pl", "PGgraphmacros.pl", "problemRandomize.pl", @@ -47,7 +47,7 @@ $showPartialCorrectAnswers = 1; # Context("Point"); - + # Create some pointers for shuffling the points @a = NchooseK(7,7); @names = ("A", "B", "C", "D", "E", "F", "G"); @@ -108,7 +108,7 @@ $P7 = Point($p7x,$p7y); $popup[$a[6]] = PopUp(["?", "I", "II", "III", "IV","x-axis", "y-axis"], "y-axis"); ####### Draw the points on a coordinate plane -$gr = init_graph(-15,-15,15,15, +$gr = init_graph(-15,-15,15,15, size=>[300,300], axes=>[0,0], ); @@ -170,7 +170,7 @@ Quadrant III has both x and y negative. $BR Quadrant IV has x positive and y negative. $BR -Any point that has zero for either x or y is on an axis. +Any point that has zero for either x or y is on an axis. END_HINT @@ -189,13 +189,13 @@ ANS( $popup[6]->cmp() ); #################################### -# Solution +# Solution #Context()->texStrings; #BEGIN_SOLUTION #$PAR -#${BBOLD}Solution:${EBOLD} +#${BBOLD}Solution:${EBOLD} #END_SOLUTION #Context()->normalStrings; diff --git a/OpenProblemLibrary/MC/PreAlgebra/setPreAlgebraC02S08/InequalityGraphs01.5.pg b/OpenProblemLibrary/MC/PreAlgebra/setPreAlgebraC02S08/InequalityGraphs01.5.pg index a8e62fcf17..4544b417e6 100644 --- a/OpenProblemLibrary/MC/PreAlgebra/setPreAlgebraC02S08/InequalityGraphs01.5.pg +++ b/OpenProblemLibrary/MC/PreAlgebra/setPreAlgebraC02S08/InequalityGraphs01.5.pg @@ -23,14 +23,14 @@ ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PGgraphmacros.pl", "contextInequalities.pl", - "AnswerFormatHelp.pl", + "problemRandomize.pl", "contextFraction.pl", "PGcourse.pl" @@ -94,7 +94,7 @@ $PAR $BCENTER \{ image(insertGraph($gr), width=>640, height=>100, tex_size=>320); \} $PAR -\{ans_rule(20)\} \{ AnswerFormatHelp("inequalities") \} +\{ans_rule(20)\} \{ helpLink("inequalities") \} $ECENTER $PAR For greater than or equal to, type >= @@ -126,4 +126,4 @@ Look at the endpoint. If it is a solid point, then the endpoint should be inclu END_HINT -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/MC/PreAlgebra/setPreAlgebraC02S08/InequalityGraphs01.pg b/OpenProblemLibrary/MC/PreAlgebra/setPreAlgebraC02S08/InequalityGraphs01.pg index a667739cb3..9d4df1971b 100644 --- a/OpenProblemLibrary/MC/PreAlgebra/setPreAlgebraC02S08/InequalityGraphs01.pg +++ b/OpenProblemLibrary/MC/PreAlgebra/setPreAlgebraC02S08/InequalityGraphs01.pg @@ -23,14 +23,14 @@ ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PGgraphmacros.pl", "contextInequalities.pl", - "AnswerFormatHelp.pl", + "problemRandomize.pl", "PGcourse.pl" ); @@ -93,7 +93,7 @@ $PAR $BCENTER \{ image(insertGraph($gr), width=>640, height=>100, tex_size=>320); \} $PAR -\{ans_rule(20)\} \{ AnswerFormatHelp("inequalities") \} +\{ans_rule(20)\} \{ helpLink("inequalities") \} $ECENTER $PAR For greater than or equal to, type >= @@ -125,4 +125,4 @@ Look at the endpoint. If it is a solid point, then the endpoint should be inclu END_HINT -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/MC/PreAlgebra/setPreAlgebraC02S08/InequalityGraphs02.pg b/OpenProblemLibrary/MC/PreAlgebra/setPreAlgebraC02S08/InequalityGraphs02.pg index 0bf4af9c3b..25101806e9 100644 --- a/OpenProblemLibrary/MC/PreAlgebra/setPreAlgebraC02S08/InequalityGraphs02.pg +++ b/OpenProblemLibrary/MC/PreAlgebra/setPreAlgebraC02S08/InequalityGraphs02.pg @@ -23,14 +23,14 @@ ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PGgraphmacros.pl", "contextInequalities.pl", - "AnswerFormatHelp.pl", + "problemRandomize.pl", "PGcourse.pl" ); @@ -94,7 +94,7 @@ $PAR $BCENTER \{ image(insertGraph($gr), width=>640, height=>100, tex_size=>320); \} $PAR -\{ans_rule(20)\} \{ AnswerFormatHelp("inequalities") \} +\{ans_rule(20)\} \{ helpLink("inequalities") \} $ECENTER $PAR For greater than or equal to, type >= @@ -126,4 +126,4 @@ Look at the endpoint. If it is a solid point, then the endpoint should be inclu END_HINT -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/MC/PreAlgebra/setPreAlgebraC02S08/InequalityGraphs03.pg b/OpenProblemLibrary/MC/PreAlgebra/setPreAlgebraC02S08/InequalityGraphs03.pg index 8a88810984..01170ac346 100644 --- a/OpenProblemLibrary/MC/PreAlgebra/setPreAlgebraC02S08/InequalityGraphs03.pg +++ b/OpenProblemLibrary/MC/PreAlgebra/setPreAlgebraC02S08/InequalityGraphs03.pg @@ -23,14 +23,14 @@ ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PGgraphmacros.pl", "contextInequalities.pl", - "AnswerFormatHelp.pl", + "problemRandomize.pl", "PGcourse.pl" ); @@ -94,7 +94,7 @@ $PAR $BCENTER \{ image(insertGraph($gr), width=>640, height=>100, tex_size=>320); \} $PAR -\{ans_rule(20)\} \{ AnswerFormatHelp("inequalities") \} +\{ans_rule(20)\} \{ helpLink("inequalities") \} $ECENTER $PAR For greater than or equal to, type >= @@ -126,4 +126,4 @@ Look at the endpoint. If it is a solid point, then the endpoint should be inclu END_HINT -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/MC/PreAlgebra/setPreAlgebraC02S08/InequalityGraphs04.pg b/OpenProblemLibrary/MC/PreAlgebra/setPreAlgebraC02S08/InequalityGraphs04.pg index 0fec173f9d..641f7bf7ce 100644 --- a/OpenProblemLibrary/MC/PreAlgebra/setPreAlgebraC02S08/InequalityGraphs04.pg +++ b/OpenProblemLibrary/MC/PreAlgebra/setPreAlgebraC02S08/InequalityGraphs04.pg @@ -23,14 +23,14 @@ ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PGgraphmacros.pl", "contextInequalities.pl", - "AnswerFormatHelp.pl", + "problemRandomize.pl", "PGcourse.pl" ); @@ -94,7 +94,7 @@ $PAR $BCENTER \{ image(insertGraph($gr), width=>640, height=>100, tex_size=>320); \} $PAR -\{ans_rule(20)\} \{ AnswerFormatHelp("inequalities") \} +\{ans_rule(20)\} \{ helpLink("inequalities") \} $ECENTER $PAR For greater than or equal to, type >= @@ -126,4 +126,4 @@ Look at the endpoint. If it is a solid point, then the endpoint should be inclu END_HINT -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/MC/PreAlgebra/setPreAlgebraC02S08/InequalityGraphs05.pg b/OpenProblemLibrary/MC/PreAlgebra/setPreAlgebraC02S08/InequalityGraphs05.pg index 7ef2be4d14..7aa6f1188f 100644 --- a/OpenProblemLibrary/MC/PreAlgebra/setPreAlgebraC02S08/InequalityGraphs05.pg +++ b/OpenProblemLibrary/MC/PreAlgebra/setPreAlgebraC02S08/InequalityGraphs05.pg @@ -24,14 +24,14 @@ ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PGgraphmacros.pl", "contextInequalities.pl", - "AnswerFormatHelp.pl", + "PGchoicemacros.pl", "problemRandomize.pl", "PGcourse.pl" @@ -112,28 +112,28 @@ $gr[3] -> stamps( closed_circle($low2,0.0,'blue') ); BEGIN_TEXT -Express each graph below as an inequality using the variable \( x \). - ( \{ AnswerFormatHelp("inequalities") \} ) +Express each graph below as an inequality using the variable \( x \). + ( \{ helpLink("inequalities") \} ) $PAR $BCENTER \{ image(insertGraph($gr[$r[0]]), width=>640, height=>100, tex_size=>320); \} $BR -1. \{ans_rule(20)\} +1. \{ans_rule(20)\} $PAR $BR \{ image(insertGraph($gr[$r[1]]), width=>640, height=>100, tex_size=>320); \} $BR -2. \{ans_rule(20)\} +2. \{ans_rule(20)\} $PAR $BR \{ image(insertGraph($gr[$r[2]]), width=>640, height=>100, tex_size=>320); \} $BR -3. \{ans_rule(20)\} +3. \{ans_rule(20)\} $PAR $BR \{ image(insertGraph($gr[$r[3]]), width=>640, height=>100, tex_size=>320); \} $BR -4. \{ans_rule(20)\} +4. \{ans_rule(20)\} $PAR $ECENTER @@ -166,4 +166,4 @@ Look at each endpoint. If it is a solid point, then the endpoint should be incl END_HINT -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/MC/PreAlgebra/setPreAlgebraC02S09/SolveIneqAddSubtract01.pg b/OpenProblemLibrary/MC/PreAlgebra/setPreAlgebraC02S09/SolveIneqAddSubtract01.pg index 99d0df71e4..ea2055007c 100644 --- a/OpenProblemLibrary/MC/PreAlgebra/setPreAlgebraC02S09/SolveIneqAddSubtract01.pg +++ b/OpenProblemLibrary/MC/PreAlgebra/setPreAlgebraC02S09/SolveIneqAddSubtract01.pg @@ -23,14 +23,14 @@ ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PGgraphmacros.pl", "contextInequalities.pl", - "AnswerFormatHelp.pl", + "PGchoicemacros.pl", "problemRandomize.pl", "PGcourse.pl" @@ -84,18 +84,18 @@ Context()-texStrings; BEGIN_TEXT -Simplify each inequality. - ( \{ AnswerFormatHelp("inequalities") \} ) +Simplify each inequality. + ( \{ helpLink("inequalities") \} ) $PAR $BCENTER $BR -1. $exp[$r[0]] has the solution \{ans_rule(20)\} +1. $exp[$r[0]] has the solution \{ans_rule(20)\} $PAR -2. $exp[$r[1]] has the solution \{ans_rule(20)\} +2. $exp[$r[1]] has the solution \{ans_rule(20)\} $PAR -3. $exp[$r[2]] has the solution \{ans_rule(20)\} +3. $exp[$r[2]] has the solution \{ans_rule(20)\} $PAR -4. $exp[$r[3]] has the solution \{ans_rule(20)\} +4. $exp[$r[3]] has the solution \{ans_rule(20)\} $PAR $ECENTER @@ -123,4 +123,4 @@ Subtract $a from both sides. How does that affect the inequality? END_HINT -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/MC/PreAlgebra/setPreAlgebraC02S09/SolveIneqAddSubtract02.pg b/OpenProblemLibrary/MC/PreAlgebra/setPreAlgebraC02S09/SolveIneqAddSubtract02.pg index ec8006171a..663e8bc660 100644 --- a/OpenProblemLibrary/MC/PreAlgebra/setPreAlgebraC02S09/SolveIneqAddSubtract02.pg +++ b/OpenProblemLibrary/MC/PreAlgebra/setPreAlgebraC02S09/SolveIneqAddSubtract02.pg @@ -23,14 +23,14 @@ ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PGgraphmacros.pl", "contextInequalities.pl", - "AnswerFormatHelp.pl", + "PGchoicemacros.pl", "problemRandomize.pl", "PGcourse.pl" @@ -84,18 +84,18 @@ Context()-texStrings; BEGIN_TEXT -Simplify each inequality. - ( \{ AnswerFormatHelp("inequalities") \} ) +Simplify each inequality. + ( \{ helpLink("inequalities") \} ) $PAR $BCENTER $BR -1. $exp[$r[0]] has the solution \{ans_rule(20)\} +1. $exp[$r[0]] has the solution \{ans_rule(20)\} $PAR -2. $exp[$r[1]] has the solution \{ans_rule(20)\} +2. $exp[$r[1]] has the solution \{ans_rule(20)\} $PAR -3. $exp[$r[2]] has the solution \{ans_rule(20)\} +3. $exp[$r[2]] has the solution \{ans_rule(20)\} $PAR -4. $exp[$r[3]] has the solution \{ans_rule(20)\} +4. $exp[$r[3]] has the solution \{ans_rule(20)\} $PAR $ECENTER @@ -123,4 +123,4 @@ Subtract $a from both sides. How does that affect the inequality? END_HINT -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/MC/PreAlgebra/setPreAlgebraC02S09/SolveIneqAddSubtract03.pg b/OpenProblemLibrary/MC/PreAlgebra/setPreAlgebraC02S09/SolveIneqAddSubtract03.pg index 5584309aed..2ee105d313 100644 --- a/OpenProblemLibrary/MC/PreAlgebra/setPreAlgebraC02S09/SolveIneqAddSubtract03.pg +++ b/OpenProblemLibrary/MC/PreAlgebra/setPreAlgebraC02S09/SolveIneqAddSubtract03.pg @@ -23,14 +23,14 @@ ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PGgraphmacros.pl", "contextInequalities.pl", - "AnswerFormatHelp.pl", + "PGchoicemacros.pl", "problemRandomize.pl", "PGcourse.pl" @@ -93,18 +93,18 @@ Context()-texStrings; BEGIN_TEXT -Simplify each inequality. - ( \{ AnswerFormatHelp("inequalities") \} ) +Simplify each inequality. + ( \{ helpLink("inequalities") \} ) $PAR $BCENTER $BR -1. $exp[$r[0]] has the solution \{ans_rule(20)\} +1. $exp[$r[0]] has the solution \{ans_rule(20)\} $PAR -2. $exp[$r[1]] has the solution \{ans_rule(20)\} +2. $exp[$r[1]] has the solution \{ans_rule(20)\} $PAR -3. $exp[$r[2]] has the solution \{ans_rule(20)\} +3. $exp[$r[2]] has the solution \{ans_rule(20)\} $PAR -4. $exp[$r[3]] has the solution \{ans_rule(20)\} +4. $exp[$r[3]] has the solution \{ans_rule(20)\} $PAR $ECENTER @@ -132,4 +132,4 @@ Subtract the constant from both sides and simplify. How does that affect each i END_HINT -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/MC/PreAlgebra/setPreAlgebraC02S10/SolveIneqMultDiv01.pg b/OpenProblemLibrary/MC/PreAlgebra/setPreAlgebraC02S10/SolveIneqMultDiv01.pg index 9460408917..2d232741d7 100644 --- a/OpenProblemLibrary/MC/PreAlgebra/setPreAlgebraC02S10/SolveIneqMultDiv01.pg +++ b/OpenProblemLibrary/MC/PreAlgebra/setPreAlgebraC02S10/SolveIneqMultDiv01.pg @@ -23,14 +23,14 @@ ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PGgraphmacros.pl", "contextInequalities.pl", - "AnswerFormatHelp.pl", + "PGchoicemacros.pl", "problemRandomize.pl", "PGcourse.pl" @@ -86,18 +86,18 @@ Context()-texStrings; BEGIN_TEXT -Simplify each inequality. - ( \{ AnswerFormatHelp("inequalities") \} ) +Simplify each inequality. + ( \{ helpLink("inequalities") \} ) $PAR $BCENTER $BR -1. $exp[$r[0]] has the solution \{ans_rule(20)\} +1. $exp[$r[0]] has the solution \{ans_rule(20)\} $PAR -2. $exp[$r[1]] has the solution \{ans_rule(20)\} +2. $exp[$r[1]] has the solution \{ans_rule(20)\} $PAR -3. $exp[$r[2]] has the solution \{ans_rule(20)\} +3. $exp[$r[2]] has the solution \{ans_rule(20)\} $PAR -4. $exp[$r[3]] has the solution \{ans_rule(20)\} +4. $exp[$r[3]] has the solution \{ans_rule(20)\} $PAR $ECENTER @@ -125,4 +125,4 @@ Divide both sides by $a. How does that affect the inequality? END_HINT -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/MC/PreAlgebra/setPreAlgebraC02S10/SolveIneqMultDiv02.pg b/OpenProblemLibrary/MC/PreAlgebra/setPreAlgebraC02S10/SolveIneqMultDiv02.pg index c7cd3f7c42..71dd4406d4 100644 --- a/OpenProblemLibrary/MC/PreAlgebra/setPreAlgebraC02S10/SolveIneqMultDiv02.pg +++ b/OpenProblemLibrary/MC/PreAlgebra/setPreAlgebraC02S10/SolveIneqMultDiv02.pg @@ -24,14 +24,14 @@ ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PGgraphmacros.pl", "contextInequalities.pl", - "AnswerFormatHelp.pl", + "PGchoicemacros.pl", "problemRandomize.pl", "PGcourse.pl" @@ -85,18 +85,18 @@ Context()-texStrings; BEGIN_TEXT -Simplify each inequality. - ( \{ AnswerFormatHelp("inequalities") \} ) +Simplify each inequality. + ( \{ helpLink("inequalities") \} ) $PAR $BCENTER $BR -1. $exp[$r[0]] has the solution \{ans_rule(20)\} +1. $exp[$r[0]] has the solution \{ans_rule(20)\} $PAR -2. $exp[$r[1]] has the solution \{ans_rule(20)\} +2. $exp[$r[1]] has the solution \{ans_rule(20)\} $PAR -3. $exp[$r[2]] has the solution \{ans_rule(20)\} +3. $exp[$r[2]] has the solution \{ans_rule(20)\} $PAR -4. $exp[$r[3]] has the solution \{ans_rule(20)\} +4. $exp[$r[3]] has the solution \{ans_rule(20)\} $PAR $ECENTER @@ -124,4 +124,4 @@ Divide both sides by $a. How does that affect the inequality? END_HINT -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/MC/PreAlgebra/setPreAlgebraC02S10/SolveIneqMultDiv03.pg b/OpenProblemLibrary/MC/PreAlgebra/setPreAlgebraC02S10/SolveIneqMultDiv03.pg index f977e03568..79ad4a75f4 100644 --- a/OpenProblemLibrary/MC/PreAlgebra/setPreAlgebraC02S10/SolveIneqMultDiv03.pg +++ b/OpenProblemLibrary/MC/PreAlgebra/setPreAlgebraC02S10/SolveIneqMultDiv03.pg @@ -25,14 +25,14 @@ ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PGgraphmacros.pl", "contextInequalities.pl", - "AnswerFormatHelp.pl", + "PGchoicemacros.pl", "problemRandomize.pl", "PGcourse.pl" @@ -86,18 +86,18 @@ Context()-texStrings; BEGIN_TEXT -Simplify each inequality. - ( \{ AnswerFormatHelp("inequalities") \} ) +Simplify each inequality. + ( \{ helpLink("inequalities") \} ) $PAR $BCENTER $BR -1. $exp[$r[0]] has the solution \{ans_rule(20)\} +1. $exp[$r[0]] has the solution \{ans_rule(20)\} $PAR -2. $exp[$r[1]] has the solution \{ans_rule(20)\} +2. $exp[$r[1]] has the solution \{ans_rule(20)\} $PAR -3. $exp[$r[2]] has the solution \{ans_rule(20)\} +3. $exp[$r[2]] has the solution \{ans_rule(20)\} $PAR -4. $exp[$r[3]] has the solution \{ans_rule(20)\} +4. $exp[$r[3]] has the solution \{ans_rule(20)\} $PAR $ECENTER @@ -131,4 +131,4 @@ END_HINT -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/MC/PreAlgebra/setPreAlgebraC02S10/SolveIneqMultDiv04.pg b/OpenProblemLibrary/MC/PreAlgebra/setPreAlgebraC02S10/SolveIneqMultDiv04.pg index 7d38d5e756..a1ab4f3b80 100644 --- a/OpenProblemLibrary/MC/PreAlgebra/setPreAlgebraC02S10/SolveIneqMultDiv04.pg +++ b/OpenProblemLibrary/MC/PreAlgebra/setPreAlgebraC02S10/SolveIneqMultDiv04.pg @@ -23,14 +23,14 @@ ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PGgraphmacros.pl", "contextInequalities.pl", - "AnswerFormatHelp.pl", + "PGchoicemacros.pl", "problemRandomize.pl", "PGcourse.pl" @@ -108,17 +108,17 @@ Context()-texStrings; BEGIN_TEXT -Simplify each inequality. - ( \{ AnswerFormatHelp("inequalities") \} ) +Simplify each inequality. + ( \{ helpLink("inequalities") \} ) $PAR $BR -1. $exp[$r[0]] \{ans_rule(20)\} +1. $exp[$r[0]] \{ans_rule(20)\} $PAR -2. $exp[$r[1]] \{ans_rule(20)\} +2. $exp[$r[1]] \{ans_rule(20)\} $PAR -3. $exp[$r[2]] \{ans_rule(20)\} +3. $exp[$r[2]] \{ans_rule(20)\} $PAR -4. $exp[$r[3]] \{ans_rule(20)\} +4. $exp[$r[3]] \{ans_rule(20)\} $PAR @@ -144,4 +144,4 @@ BEGIN_HINT Divide both sides by the coefficient in front of the x value and keep in mind how dividing by a negative might affect the inequality. END_HINT -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/MC/Sage/LinearAlg/Axb_span3d.pg b/OpenProblemLibrary/MC/Sage/LinearAlg/Axb_span3d.pg index 41ca751189..231f0566cb 100644 --- a/OpenProblemLibrary/MC/Sage/LinearAlg/Axb_span3d.pg +++ b/OpenProblemLibrary/MC/Sage/LinearAlg/Axb_span3d.pg @@ -4,7 +4,7 @@ ## ## This problem asks the student to determine experimentally ## the appropriate coefficients (stored in the vector x) so that -## b lies in the span of the columns of A. That is, Ax = b. +## b lies in the span of the columns of A. That is, Ax = b. ## For this problem, A is 3x3 and so vectors are in 3d. ## END_DESCRIPTION @@ -24,7 +24,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "problemRandomize.pl", "sage.pl", "PGcourse.pl" @@ -47,7 +47,7 @@ $a23 = -1; $a31 = random(-3,-1,1/2); $a32 = non_zero_random(-2,5,1/20); $a33 = 2; -$A = Matrix([[$a11,$a12,$a13],[$a21,$a22,$a23],[$a31,$a32,$a33]]); +$A = Matrix([[$a11,$a12,$a13],[$a21,$a22,$a23],[$a31,$a32,$a33]]); $x1 = non_zero_random(-1,2,1/5); $x1ans = Compute("$x1"); @@ -76,7 +76,7 @@ Context()->texStrings; BEGIN_TEXT Solve \(A x= b\) by finding coefficients for the columns of \(A\) which show \(b\) lies in their span. $PAR -When solving \[Ax=b\]the solution \(x\) can be determined by determining the linear combination of the columns of \(A\) which equal \(b\). In the interactive cell below \(A_1\) represents the first column of \(A\), \(A_2\) represents the second column of \(A\) and \(A_3\) represents the third column of \(A\). Determine values of \(x_1\), \(x_2\) and \(x_3\) so that +When solving \[Ax=b\]the solution \(x\) can be determined by determining the linear combination of the columns of \(A\) which equal \(b\). In the interactive cell below \(A_1\) represents the first column of \(A\), \(A_2\) represents the second column of \(A\) and \(A_3\) represents the third column of \(A\). Determine values of \(x_1\), \(x_2\) and \(x_3\) so that \[x_1 A_1 + x_2 A_2 +x_3 A_3 = b \]. $PAR @@ -107,7 +107,7 @@ $X1=$anstuple->extract(1); $X2=$anstuple->extract(2); $X3=$anstuple->extract(3); -# debugging code +# debugging code # TEXT($answer_value, "list version", $anstuple); # TEXT("previous old answers", "|${$inputs_ref}{previous_sageAnswer};|", $PAR); # TEXT("old answers", "|$answer_value|", $PAR ); @@ -129,8 +129,8 @@ At =A.transpose() # so that we can easily slice the matrix by rows instead o # Finding when a vector b is in the span of other vectors in 2-space ~~@interact -def _(x1=slider(-2,2,1/5,$X1), x2=slider(-2,2,1/5,$X2), x3=slider(-2,2,1/5,$X3)): - +def _(x1=slider(-2,2,1/5,$X1), x2=slider(-2,2,1/5,$X2), x3=slider(-2,2,1/5,$X3)): + G = line3d([(0,0,0),x1*At[0]],arrow_head=True,rbgcolor=(1,0,0)) G += line3d([x1*At[0],x1*At[0]+x2*At[1]],arrow_head=True) G += line3d([x1*At[0]+x2*At[1],x1*At[0]+x2*At[1]+x3*At[2]],arrow_head=True) @@ -206,7 +206,7 @@ Context()->texStrings; BEGIN_SOLUTION -Notice that \(($x1) *A_1 + ($x2) *A_2 + ($x3) *A_3 = $b\) +Notice that \(($x1) *A_1 + ($x2) *A_2 + ($x3) *A_3 = $b\) END_SOLUTION Context()->normalStrings; diff --git a/OpenProblemLibrary/MC/Sage/LinearAlg/LinearTransformations.pg b/OpenProblemLibrary/MC/Sage/LinearAlg/LinearTransformations.pg index 9ad2b15c49..2a8a2460e1 100644 --- a/OpenProblemLibrary/MC/Sage/LinearAlg/LinearTransformations.pg +++ b/OpenProblemLibrary/MC/Sage/LinearAlg/LinearTransformations.pg @@ -23,7 +23,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "problemRandomize.pl", "sage.pl", "PGcourse.pl" @@ -41,7 +41,7 @@ ProblemRandomize(when=>"Correct",onlyAfterDue=>0); # The list of possible transformations (in order) # First choice: 'Identity', 'Reflect x-axis', 'Reflect y-axis', 'Rotate Origin' # Second choice: 'Skew to the right if above and to the left if below', -# 'Skew to the left if above and to the right if below', 'Skew out vertically', +# 'Skew to the left if above and to the right if below', 'Skew out vertically', # 'Skew in vertically' # Third choice: 'Horizontal Contraction','Horizontal Expansion', # 'Vertical Contraction','Vertical Expansion' @@ -58,7 +58,7 @@ $c = 5/4; # Choice One if ($t1==1) { - $A1 = Matrix([[1,0],[0,1]]); + $A1 = Matrix([[1,0],[0,1]]); } elsif ($t1==2) { $A1 = Matrix([[1,0],[0,-1]]); @@ -72,7 +72,7 @@ else { # Choice Two if ($t2==5) { - $A2 = Matrix([[1,$a],[0,1]]); + $A2 = Matrix([[1,$a],[0,1]]); } elsif ($t2==6) { $A2 = Matrix([[1,-$a],[0,1]]); @@ -86,7 +86,7 @@ else { #Choice Three if ($t3==9) { - $A3 = Matrix([[$b,0],[0,1]]); + $A3 = Matrix([[$b,0],[0,1]]); } elsif ($t3==10) { $A3 = Matrix([[$c,0],[0,1]]); @@ -139,7 +139,7 @@ $answer_value = ${$inputs_ref}{sageAnswer}; # and from that one cannot recover the state of this interact. # One would have to rewrite the way the information is recorded # in the sageAnswer blank so that the state could be recovered. -# Won't do that now. +# Won't do that now. ## end PRESERVING INTERACT STATE ## @@ -152,12 +152,12 @@ $SageCode = <texStrings; TEXT(MODES(TeX =>"",HTML=>EV3(<<'EOT'))); $PAR -A contour plot for \( z = f(x,y) \) is illustrated. +A contour plot for \( z = f(x,y) \) is illustrated. $PAR -Using the graph, determine the location of all extreme and saddle points. +Using the graph, determine the location of all extreme and saddle points. $PAR $BITALIC Enter various values for \(x\) and \(y\) to move the red dot to test your estimates. You can view your estimate on the 3D surface by checking the 3D box. @@ -104,8 +104,8 @@ Context()->texStrings; $answer_value = ${$inputs_ref}{sageAnswer}; ## As written this interact is not recording its state and there is no sageAnswer -## The interact is just used as a visual aid -## for the student. +## The interact is just used as a visual aid +## for the student. ## end PRESERVING INTERACT STATE ## @@ -123,12 +123,12 @@ r0 = 0.5 # for a zoomed in plot ~~@interact(layout={'top': [['x0','y0']], 'bottom': [['threeD','nojavagraph','zoomin']] }) -def _(x0 =input_box(0,width=5,label="\( x = \)"), +def _(x0 =input_box(0,width=5,label="\( x = \)"), y0=input_box(0,width=5,label="\( y = \)"), - threeD=checkbox(false,label="Show 3D surface?"), + threeD=checkbox(false,label="Show 3D surface?"), nojavagraph=checkbox(default=false,label='Problems with 3D Graph?'), zoomin=checkbox(false)): - + if nojavagraph: view_method = "tachyon" else: @@ -144,11 +144,11 @@ def _(x0 =input_box(0,width=5,label="\( x = \)"), xhigh = r ylow = -r yhigh = r - - picture2d = density_plot(f(x,y),(x,xlow,xhigh),(y,ylow,yhigh),plot_points=50,cmap='Blues') - picture2d += contour_plot(f(x,y),(x,xlow,xhigh),(y,ylow,yhigh),contours=100,plot_points=50,cmap='YlGnBu',fill=false) - picture2d += point((x0,y0),size=50,zorder=2,color="red") + picture2d = density_plot(f(x,y),(x,xlow,xhigh),(y,ylow,yhigh),plot_points=50,cmap='Blues') + picture2d += contour_plot(f(x,y),(x,xlow,xhigh),(y,ylow,yhigh),contours=100,plot_points=50,cmap='YlGnBu',fill=false) + + picture2d += point((x0,y0),size=50,zorder=2,color="red") # These are the exact critical points. The student should determine these by looking at the pictures # They can be determined on the fly via: @@ -156,25 +156,25 @@ def _(x0 =input_box(0,width=5,label="\( x = \)"), # fy = diff(f(x,y),y) # solns = solve([fx,fy],x,y,solution_dict=True) # It would be nice if we could get this Sagelet to solve for these points and then -# send them back out to the pg code. +# send them back out to the pg code. # These are the exact solutions. The first is a saddle. pt1 = (1/10, -1/10); pt2 = (1/10*($c1 - 10*sqrt($c1))/$c1, -1/10*($c2 + 10*sqrt($c2))/$c2); pt3 = (1/10*($c1 + 10*sqrt($c1))/$c1, -1/10*($c2 + 10*sqrt($c2))/$c2); pt4 = (1/10*($c1 - 10*sqrt($c1))/$c1, -1/10*($c2 - 10*sqrt($c2))/$c2); - pt5 = (1/10*($c1 + 10*sqrt($c1))/$c1, -1/10*($c2 - 10*sqrt($c2))/$c2); + pt5 = (1/10*($c1 + 10*sqrt($c1))/$c1, -1/10*($c2 - 10*sqrt($c2))/$c2); if threeD: picture3d = plot3d(f, (x,-r,r),(y,-r,r),opacity=0.5) - picture3d += point3d((x0,y0,f(x0,y0)),size=20,color="red") + picture3d += point3d((x0,y0,f(x0,y0)),size=20,color="red") picture3d.show(frame=False,viewer=view_method) else: # These are the exact solutions...can print them out for students if desired -# picture2d += point(pt1,size=10,zorder=2,color="green") -# picture2d += point(pt2,size=10,zorder=2,color="green") -# picture2d += point(pt3,size=10,zorder=2,color="green") -# picture2d += point(pt4,size=10,zorder=2,color="green") -# picture2d += point(pt5,size=10,zorder=2,color="green") +# picture2d += point(pt1,size=10,zorder=2,color="green") +# picture2d += point(pt2,size=10,zorder=2,color="green") +# picture2d += point(pt3,size=10,zorder=2,color="green") +# picture2d += point(pt4,size=10,zorder=2,color="green") +# picture2d += point(pt5,size=10,zorder=2,color="green") picture2d.show(aspect_ratio=1) SAGE_CODE diff --git a/OpenProblemLibrary/MC/Trigonometry/IdentifyPointsInPlane01.pg b/OpenProblemLibrary/MC/Trigonometry/IdentifyPointsInPlane01.pg index 1d23247837..febdce57a0 100644 --- a/OpenProblemLibrary/MC/Trigonometry/IdentifyPointsInPlane01.pg +++ b/OpenProblemLibrary/MC/Trigonometry/IdentifyPointsInPlane01.pg @@ -24,12 +24,12 @@ ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGchoicemacros.pl", "PGgraphmacros.pl", "problemRandomize.pl", @@ -52,7 +52,7 @@ $showPartialCorrectAnswers = 1; # Context("Point"); - + ## Create a random point in each quadrant $p1x = random(-16,-3,1); $p1y = random(3,16,1); @@ -81,7 +81,7 @@ $P6 = Point($p6x,$p6y); $ans = List("$P1,$P2,$P3,$P4,$P5,$P6"); ####### Draw the points on a coordinate plane -$gr = init_graph(-20,-20,20,20, +$gr = init_graph(-20,-20,20,20, size=>[500,500], axes=>[0,0], grid=>[8,8] diff --git a/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem01.pg b/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem01.pg index 4a1737c37e..c1553645e3 100644 --- a/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem01.pg +++ b/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem01.pg @@ -20,12 +20,12 @@ ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserPopUp.pl", "PGcourse.pl" ); @@ -65,7 +65,7 @@ Determine the order of the given differential equation and state whether the equ \[\displaystyle\ t^{$a}\frac{d^{$b}y}{dt^{$b}}+t\frac{dy}{dt}+2y = \sin(t)\] $BR $BR -(a) The order of this differential equation is \{ ans_rule(10) \}. +(a) The order of this differential equation is \{ ans_rule(10) \}. $BR $BR (b) The equation is \{ $answer[1]->menu() \}. @@ -88,5 +88,5 @@ foreach my $i (0..1) { ; -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem02.pg b/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem02.pg index f67c272cf5..a3edd30c4d 100644 --- a/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem02.pg +++ b/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem02.pg @@ -20,12 +20,12 @@ ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserPopUp.pl", "PGcourse.pl" ); @@ -42,7 +42,7 @@ $showPartialCorrectAnswers = 0; # Setup # # -Context("Numeric"); +Context("Numeric"); ############################################################## @@ -65,7 +65,7 @@ Determine the order of the given differential equation and state whether the equ \[\displaystyle\ (1+y^{$a})\frac{d^{$b}y}{dt^{$b}}+t\frac{dy}{dt}+y = e^{t}\] $BR -(a) The order of this differential equation is \{ ans_rule(10) \}. +(a) The order of this differential equation is \{ ans_rule(10) \}. $BR $BR (b) The equation is \{ $answer[1]->menu() \}. @@ -88,5 +88,5 @@ foreach my $i (0..1) { ; -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem03.pg b/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem03.pg index f018c2b389..78623699b9 100644 --- a/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem03.pg +++ b/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem03.pg @@ -20,12 +20,12 @@ ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserPopUp.pl", "PGcourse.pl" ); @@ -64,7 +64,7 @@ Determine the order of the given differential equation and state whether the equ \[\displaystyle\ \frac{d^{4}y}{dt^{4}}+\frac{d^{3}y}{dt^{3}}+\frac{d^{2}y}{dt^{2}}+\frac{dy}{dt}+y = $a\] $BR -(a) The order of this differential equation is \{ ans_rule(10) \}. +(a) The order of this differential equation is \{ ans_rule(10) \}. $BR $BR (b) The equation is \{ $answer[1]->menu() \}. @@ -87,5 +87,5 @@ foreach my $i (0..1) { ; -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem04.pg b/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem04.pg index ca68d9f28b..3f747a873e 100644 --- a/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem04.pg +++ b/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem04.pg @@ -20,12 +20,12 @@ ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserPopUp.pl", "PGcourse.pl" ); @@ -66,7 +66,7 @@ Determine the order of the given differential equation and state whether the equ \[\displaystyle\ \frac{dy}{dt}+ty^{$a} = 0\] $BR $BR -(a) The order of this differential equation is \{ ans_rule(10) \}. +(a) The order of this differential equation is \{ ans_rule(10) \}. $BR $BR (b) The equation is \{ $answer[1]->menu() \}. @@ -90,5 +90,5 @@ foreach my $i (0..1) { ; -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem05.pg b/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem05.pg index 90ba91cca2..6b337ef45e 100644 --- a/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem05.pg +++ b/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem05.pg @@ -20,12 +20,12 @@ ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserPopUp.pl", "PGcourse.pl" ); @@ -65,7 +65,7 @@ Determine the order of the given differential equation and state whether the equ \[\displaystyle\ \frac{d^{$a}y}{dt^{$a}}+\sin(t+y) = \sin($b t)\] $BR -(a) The order of this differential equation is \{ ans_rule(10) \}. +(a) The order of this differential equation is \{ ans_rule(10) \}. $BR $BR (b) The equation is \{ $answer[1]->menu() \}. @@ -88,5 +88,5 @@ foreach my $i (0..1) { ; -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem06.pg b/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem06.pg index a6ce87d53d..e96baf6528 100644 --- a/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem06.pg +++ b/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem06.pg @@ -20,12 +20,12 @@ ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserPopUp.pl", "PGcourse.pl" ); @@ -65,7 +65,7 @@ Determine the order of the given differential equation and state whether the equ \[\displaystyle\ t\frac{dy}{dt}+ \frac{d^{$a}y}{dt^{$a}}+ (\cos^{2}t)y = t^{$b}\] $BR -(a) The order of this differential equation is \{ ans_rule(10) \}. +(a) The order of this differential equation is \{ ans_rule(10) \}. $BR $BR (b) The equation is \{ $answer[1]->menu() \}. @@ -89,5 +89,5 @@ foreach my $i (0..1) { ; -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem07.pg b/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem07.pg index d6d6d0f926..a4ed70ff59 100644 --- a/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem07.pg +++ b/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem07.pg @@ -21,12 +21,12 @@ ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserPopUp.pl", "PGcourse.pl" ); @@ -66,7 +66,7 @@ Determine the order of the given differential equation and state whether the equ \[\displaystyle\ (1-x)y''-$a xy'+$b y=\cos(x)\] $BR -(a) The order of this differential equation is \{ ans_rule(10) \}. +(a) The order of this differential equation is \{ ans_rule(10) \}. $BR $BR (b) The equation is \{ $answer[1]->menu() \}. @@ -90,5 +90,5 @@ foreach my $i (0..1) { ; -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem08.pg b/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem08.pg index a2d101b1bf..9b8e43d442 100644 --- a/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem08.pg +++ b/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem08.pg @@ -21,12 +21,12 @@ ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserPopUp.pl", "PGcourse.pl" ); @@ -66,7 +66,7 @@ Determine the order of the given differential equation and state whether the equ \[\displaystyle\ x\frac{d^{$a}y}{dx^{$a}} - \left(\frac{dy}{dx}\right)^{$b}+y = 0\] $BR -(a) The order of this differential equation is \{ ans_rule(10) \}. +(a) The order of this differential equation is \{ ans_rule(10) \}. $BR $BR (b) The equation is \{ $answer[1]->menu() \}. @@ -90,5 +90,5 @@ foreach my $i (0..1) { ; -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem09.pg b/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem09.pg index 15949b5ab3..be232afc7f 100644 --- a/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem09.pg +++ b/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem09.pg @@ -21,12 +21,12 @@ ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserPopUp.pl", "PGcourse.pl" ); @@ -66,7 +66,7 @@ Determine the order of the given differential equation and state whether the equ \[\displaystyle\ t^{$b}y^{($a)}-t^{3}y''+6y = 0\] $BR -(a) The order of this differential equation is \{ ans_rule(10) \}. +(a) The order of this differential equation is \{ ans_rule(10) \}. $BR $BR (b) The equation is \{ $answer[1]->menu() \}. @@ -89,5 +89,5 @@ foreach my $i (0..1) { } ; -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem10.pg b/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem10.pg index a6b6df6e2a..9e027d41af 100644 --- a/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem10.pg +++ b/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem10.pg @@ -22,12 +22,12 @@ ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserPopUp.pl", "PGcourse.pl" ); @@ -67,7 +67,7 @@ Determine the order of the given differential equation and state whether the equ \[\displaystyle\ \frac{d^{$a}u}{dr^{$a}}+\frac{du}{dr}+$b u=\cos(r+u)\] $BR -(a) The order of this differential equation is \{ ans_rule(10) \}. +(a) The order of this differential equation is \{ ans_rule(10) \}. $BR $BR (b) The equation is \{ $answer[1]->menu() \}. @@ -91,5 +91,5 @@ foreach my $i (0..1) { ; -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem11.pg b/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem11.pg index 7902a32b3e..dae8002d6d 100644 --- a/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem11.pg +++ b/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem11.pg @@ -21,12 +21,12 @@ ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserPopUp.pl", "PGcourse.pl" ); @@ -66,7 +66,7 @@ Determine the order of the given differential equation and state whether the equ \[\displaystyle\ \frac{d^{2}y}{dx^{2}}=\sqrt{$a+\left(\frac{dy}{dx}\right)^{2}}\] $BR -(a) The order of this differential equation is \{ ans_rule(10) \}. +(a) The order of this differential equation is \{ ans_rule(10) \}. $BR $BR (b) The equation is \{ $answer[1]->menu() \}. @@ -90,5 +90,5 @@ foreach my $i (0..1) { ; -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem12.pg b/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem12.pg index 86e33d0d13..f41d447978 100644 --- a/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem12.pg +++ b/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem12.pg @@ -21,12 +21,12 @@ ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserPopUp.pl", "PGcourse.pl" ); @@ -66,7 +66,7 @@ Determine the order of the given differential equation and state whether the equ \[\displaystyle\ \frac{d^{$a}R}{dt^{$a}}=-\frac{k}{R^{2}}\] $BR -(a) The order of this differential equation is \{ ans_rule(10) \}. +(a) The order of this differential equation is \{ ans_rule(10) \}. $BR $BR (b) The equation is \{ $answer[1]->menu() \}. @@ -89,5 +89,5 @@ foreach my $i (0..1) { } ; -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem13.pg b/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem13.pg index 977571c82b..2d496183e2 100644 --- a/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem13.pg +++ b/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem13.pg @@ -22,12 +22,12 @@ ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserPopUp.pl", "PGcourse.pl" ); @@ -67,7 +67,7 @@ Determine the order of the given differential equation and state whether the equ \[\displaystyle\ (\sin\theta)y'''-(\cos\theta)y'=$a\] $BR -(a) The order of this differential equation is \{ ans_rule(10) \}. +(a) The order of this differential equation is \{ ans_rule(10) \}. $BR $BR (b) The equation is \{ $answer[1]->menu() \}. @@ -90,5 +90,5 @@ foreach my $i (0..1) { } ; -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem14.pg b/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem14.pg index 16f6b85456..6bc8d5ae6c 100644 --- a/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem14.pg +++ b/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem14.pg @@ -21,12 +21,12 @@ ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserPopUp.pl", "PGcourse.pl" ); @@ -66,7 +66,7 @@ Determine the order of the given differential equation and state whether the equ \[\displaystyle\ \ddot{x}-\left($a-\frac{\dot{x}^{2}}{$b}\dot{x}\right)+x = 0\] $BR -(a) The order of this differential equation is \{ ans_rule(10) \}. +(a) The order of this differential equation is \{ ans_rule(10) \}. $BR $BR (b) The equation is \{ $answer[1]->menu() \}. @@ -90,5 +90,5 @@ foreach my $i (0..1) { ; -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem15.pg b/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem15.pg index b1a2bb5eab..8fa1e7b756 100644 --- a/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem15.pg +++ b/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem15.pg @@ -20,12 +20,12 @@ ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -63,9 +63,9 @@ Find all values of \( r \) such that \( y = e^{rx} \) satisfies the differential one correct answer, enter your answers as a comma separated list. $BR $BR -\( r = \) +\( r = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; @@ -80,4 +80,4 @@ ANS( $answer[0]->cmp() ); ; -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem16.pg b/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem16.pg index 51aa29a743..5fe32b93aa 100644 --- a/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem16.pg +++ b/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem16.pg @@ -20,12 +20,12 @@ ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionLists.pl", "parserPrime.pl", "parserPopUp.pl", @@ -68,9 +68,9 @@ Find all values of \( r \) such that \( y = e^{rx} \) satisfies the differential one correct answer, enter your answers as a comma separated list. $BR $BR -\( r = \) +\( r = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; @@ -86,4 +86,4 @@ ANS( $answer[0]->cmp() ); ; -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem17.pg b/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem17.pg index 1af2531cae..c03e89ef66 100644 --- a/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem17.pg +++ b/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem17.pg @@ -20,12 +20,12 @@ ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -65,9 +65,9 @@ Find all values of \( r \) such that \( y = e^{rx} \) satisfies the differential one correct answer, enter your answers as a comma separated list. $BR $BR -\( r = \) +\( r = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; @@ -82,4 +82,4 @@ ANS( $answer[0]->cmp() ); ; -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem18.pg b/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem18.pg index 72b3347462..a043acd612 100644 --- a/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem18.pg +++ b/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem18.pg @@ -19,12 +19,12 @@ ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -66,9 +66,9 @@ Find all values of \( r \) such that \( y = e^{rx} \) satisfies the differential one correct answer, enter your answers as a comma separated list. $BR $BR -\( r = \) +\( r = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; @@ -83,4 +83,4 @@ ANS( $answer[0]->cmp() ); ; -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem19.pg b/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem19.pg index d14fc51953..b9cc8d1dbc 100644 --- a/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem19.pg +++ b/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem19.pg @@ -19,12 +19,12 @@ ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -66,9 +66,9 @@ Find all values of \( r \) such that \( y = t^{r} \) satisfies the differential one correct answer, enter your answers as a comma separated list. $BR $BR -\( r = \) +\( r = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; @@ -82,4 +82,4 @@ $showPartialCorrectAnswers = 0; ANS( $answer[0]->cmp() ); ; -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem20.pg b/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem20.pg index e701cc9595..02be978161 100644 --- a/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem20.pg +++ b/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem20.pg @@ -19,12 +19,12 @@ ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -66,9 +66,9 @@ Find all values of \( r \) such that \( y = t^{r} \) satisfies the differential one correct answer, enter your answers as a comma separated list. $BR $BR -\( r = \) +\( r = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; @@ -83,4 +83,4 @@ ANS( $answer[0]->cmp() ); ; -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem33.pg b/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem33.pg index e5662908cd..cd6f4328e5 100644 --- a/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem33.pg +++ b/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem33.pg @@ -21,12 +21,12 @@ ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -64,9 +64,9 @@ Find all values of \( r \) such that \( y = rx^{2} \) satisfies the differential one correct answer, enter your answers as a comma separated list. $BR $BR -\( r = \) +\( r = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; @@ -81,4 +81,4 @@ ANS( $answer[0]->cmp() ); ; -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem34.pg b/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem34.pg index 51816a2d5f..fd90950dc0 100644 --- a/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem34.pg +++ b/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem34.pg @@ -20,12 +20,12 @@ ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -63,9 +63,9 @@ Find all values of \( r \) such that \( y = $a x^{2} \) satisfies the differenti one correct answer, enter your answers as a comma separated list. $BR $BR -\( r = \) +\( r = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; @@ -80,4 +80,4 @@ ANS( $answer[0]->cmp() ); ; -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem35.pg b/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem35.pg index c353c15307..3cde8d23fb 100644 --- a/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem35.pg +++ b/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem35.pg @@ -19,12 +19,12 @@ ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -63,9 +63,9 @@ Find all values of \( r \) such that \( y = c_{1}\sin(rx)+c_{2}\cos(rx) \) satis one correct answer, enter your answers as a comma separated list. $BR $BR -\( r = \) +\( r = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; @@ -80,4 +80,4 @@ ANS( $answer[0]->cmp() ); ; -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem36.pg b/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem36.pg index 727d9e1c5f..41e538ad75 100644 --- a/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem36.pg +++ b/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem36.pg @@ -21,12 +21,12 @@ ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -65,9 +65,9 @@ Find all values of \( r \) such that \( y = k e^{rx} \) satisfies the differenti one correct answer, enter your answers as a comma separated list. $BR $BR -\( r = \) +\( r = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; @@ -81,4 +81,4 @@ $showPartialCorrectAnswers = 0; ANS( $answer[0]->cmp() ); ; -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem37.pg b/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem37.pg index 7c159e77c5..b0a114a96a 100644 --- a/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem37.pg +++ b/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem37.pg @@ -20,12 +20,12 @@ ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -63,9 +63,9 @@ Find all values of \( r \) such that \( x^2 = ry^{2}\ln y \) satisfies the diffe one correct answer, enter your answers as a comma separated list. $BR $BR -\( r = \) +\( r = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; @@ -80,4 +80,4 @@ ANS( $answer[0]->cmp() ); ; -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem38.pg b/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem38.pg index 4068d28ede..254a7b9415 100644 --- a/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem38.pg +++ b/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem38.pg @@ -21,12 +21,12 @@ ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserFormulaUpToConstant.pl", "PGcourse.pl" ); @@ -57,9 +57,9 @@ Find the general solution of the differential equation (Don't forget +C.) $BR $BR -\( y = \) +\( y = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; @@ -73,4 +73,4 @@ ANS( $answer[0]->cmp() ); ; -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem39.pg b/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem39.pg index d70bcdbb51..3302c5506a 100644 --- a/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem39.pg +++ b/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem39.pg @@ -20,12 +20,12 @@ ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserFormulaUpToConstant.pl", "PGcourse.pl" ); @@ -55,9 +55,9 @@ Find the general solution of the differential equation (Don't forget +C.) $BR $BR -\( y = \) +\( y = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; @@ -70,4 +70,4 @@ $showPartialCorrectAnswers = 0; ANS( $answer[0]->cmp() ); ; -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem40.pg b/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem40.pg index c2f8963ad8..271bed9ed8 100644 --- a/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem40.pg +++ b/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem40.pg @@ -20,12 +20,12 @@ ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserFormulaUpToConstant.pl", "PGcourse.pl" ); @@ -55,9 +55,9 @@ Find the general solution of the differential equation (Don't forget +C.) $BR $BR -\( y = \) +\( y = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; @@ -71,4 +71,4 @@ ANS( $answer[0]->cmp() ); ; -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem41.pg b/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem41.pg index 81312aac5b..9a851b539a 100644 --- a/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem41.pg +++ b/OpenProblemLibrary/MiamiUOhio/DiffEq/Definitions_and_Terminology/Problem41.pg @@ -20,12 +20,12 @@ ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserFormulaUpToConstant.pl", "PGcourse.pl" ); @@ -55,9 +55,9 @@ Find the general solution of the differential equation (Don't forget +C.) $BR $BR -\( y = \) +\( y = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; @@ -72,4 +72,4 @@ ANS( $answer[0]->cmp() ); ; -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem04.pg b/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem04.pg index 39bd433814..83551e172f 100644 --- a/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem04.pg +++ b/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem04.pg @@ -21,12 +21,12 @@ ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -64,17 +64,17 @@ $answer = Compute("5x^(2)/2+$a*xy-2y^(4)"); Context()->texStrings; BEGIN_TEXT -Solve the following differential equation: +Solve the following differential equation: $BR $BR \(\ (5x+$a y)dx+($a x-8y^{3})dy=0\). $BR $BR -\{ ans_rule(30) \} +\{ ans_rule(30) \} = -constant. -\{ AnswerFormatHelp("formulas") \} +constant. +\{ helpLink("formulas") \} @@ -106,4 +106,4 @@ ANS( $answer->cmp(checker => sub { ; -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem05.pg b/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem05.pg index ca77470a8d..1a8a794689 100644 --- a/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem05.pg +++ b/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem05.pg @@ -21,12 +21,12 @@ ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -64,17 +64,17 @@ $answer = Compute("$a*x^(2)y^(2)-3x+4y"); Context()->texStrings; BEGIN_TEXT -Solve the following differential equation: +Solve the following differential equation: $BR $BR \(\ ($a xy^{2}-3)dx+($a x^{2}y+4)dy=0\). $BR $BR -\{ ans_rule(30) \} +\{ ans_rule(30) \} = -constant. -\{ AnswerFormatHelp("formulas") \} +constant. +\{ helpLink("formulas") \} @@ -105,4 +105,4 @@ ANS( $answer->cmp(checker => sub { ; -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem06.pg b/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem06.pg index d68b63f8d7..a161b9c39d 100644 --- a/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem06.pg +++ b/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem06.pg @@ -20,12 +20,12 @@ ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -60,17 +60,17 @@ $answer = Compute("$a xy-2x^{3}-2xe^{x}+2e^{x}"); Context()->texStrings; BEGIN_TEXT -Solve the following differential equation: +Solve the following differential equation: $BR $BR \(\displaystyle $a x\frac{dy}{dx}=2xe^{x}-$a y+6x^{2}\). $BR $BR -\{ ans_rule(30) \} +\{ ans_rule(30) \} = -constant. -\{ AnswerFormatHelp("formulas") \} +constant. +\{ helpLink("formulas") \} @@ -105,4 +105,4 @@ ANS( $answer->cmp(checker => sub { -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem07.pg b/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem07.pg index 002209b038..fb10aa1311 100644 --- a/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem07.pg +++ b/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem07.pg @@ -21,12 +21,12 @@ ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -64,17 +64,17 @@ $answer = Compute("ln(abs(sec(x))) + $a * cos(x) sin(y)"); Context()->texStrings; BEGIN_TEXT -Solve the following differential equation: +Solve the following differential equation: $BR $BR \(\displaystyle (\tan(x)-$a \sin(x)\sin(y))dx+$a \cos(x)\cos(y)dy=0\). $BR $BR -\{ ans_rule(30) \} +\{ ans_rule(30) \} = -constant. -\{ AnswerFormatHelp("formulas") \} +constant. +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; @@ -106,4 +106,4 @@ ANS( $answer->cmp(checker => sub { ; -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem08.pg b/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem08.pg index a10e437b9f..d3fa7defb4 100644 --- a/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem08.pg +++ b/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem08.pg @@ -21,12 +21,12 @@ ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -64,17 +64,17 @@ $answer = Compute("e^(x)+xy+2y+ye^(y)-e^(y)-(1+2*$a +$a*e^($a)- e^($a))")->reduc Context()->texStrings; BEGIN_TEXT -Solve the following initial value problem: +Solve the following initial value problem: $BR $BR \(\displaystyle (e^{x}+y)dx+(2+x+ye^{y})dy=0,\ y(0)=$a\). $BR $BR -\{ ans_rule(30) \} +\{ ans_rule(30) \} = -0. -\{ AnswerFormatHelp("formulas") \} +0. +\{ helpLink("formulas") \} @@ -105,4 +105,4 @@ ANS( $answer->cmp(checker => sub { ; -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem09.pg b/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem09.pg index 48c465d8da..a313722d6c 100644 --- a/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem09.pg +++ b/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem09.pg @@ -22,12 +22,12 @@ ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -63,13 +63,13 @@ $answer = Compute("$a*sqrt((3*$a**2+ sqrt(9*$a**4 - (6*$a**2-1)*t**2))/(6*$a**2 Context()->texStrings; BEGIN_TEXT -Solve the following initial value problem: +Solve the following initial value problem: $PAR -\(\displaystyle \left( \frac{3y^{2}-t^{2}}{y^{5}} \right) +\(\displaystyle \left( \frac{3y^{2}-t^{2}}{y^{5}} \right) \frac{dy}{dt}+\frac{t}{2y^{4}}=0,\ y(1)=$a\). $PAR -\(y(t)\)=\{ ans_rule(60) \} -\{ AnswerFormatHelp("formulas") \} +\(y(t)\)=\{ ans_rule(60) \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; @@ -94,4 +94,4 @@ Context()->normalStrings; ANS($answer->cmp()); -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem10.pg b/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem10.pg index b023f69427..15bb2ca12f 100644 --- a/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem10.pg +++ b/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem10.pg @@ -21,12 +21,12 @@ ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -64,17 +64,17 @@ $answer = Compute("y^(2)sinx-x^(3)y-x^(2)+ylny-y-(e^($a)ln(e^($a))-e^($a))")->re Context()->texStrings; BEGIN_TEXT -Solve the following initial value problem: +Solve the following initial value problem: $BR $BR \(\displaystyle (y^{2}\cos(x)-3x^{2}y-2x)dx+(2y\sin(x)-x^{3}+\ln(y))dy=0,\ y(0)=e^{$a}\). $BR $BR -\{ ans_rule(30) \} +\{ ans_rule(30) \} = -0. -\{ AnswerFormatHelp("formulas") \} +0. +\{ helpLink("formulas") \} END_TEXT @@ -100,4 +100,4 @@ ANS( $answer->cmp(checker => sub { ; -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem11.pg b/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem11.pg index 44babed69f..818998115f 100644 --- a/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem11.pg +++ b/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem11.pg @@ -19,12 +19,12 @@ ## Problem1('21') ## KEYWORDS('Differential equaltion') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserImplicitEquation.pl", "PGcourse.pl" ); @@ -57,17 +57,17 @@ $dy = Formula("2xy+x^{2}-1")->reduce; Context()->texStrings; BEGIN_TEXT -Solve the following initial-value problem: +Solve the following initial-value problem: $BR $BR \(\displaystyle (x+y)^{2}dx+(2xy+x^{2}-1)dy=0, \ y(1)=$a\) $BR $BR -\{ ans_rule(30) \} +\{ ans_rule(30) \} = -0. -\{ AnswerFormatHelp("formulas") \} +0. +\{ helpLink("formulas") \} END_TEXT @@ -97,5 +97,5 @@ ANS( $answer->cmp(checker => sub { ; -ENDDOCUMENT(); - +ENDDOCUMENT(); + diff --git a/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem12.pg b/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem12.pg index f12303e6fb..c146247fdf 100644 --- a/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem12.pg +++ b/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem12.pg @@ -19,12 +19,12 @@ ## Problem1('22') ## KEYWORDS('Differential equaltion') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -52,17 +52,17 @@ $answer = Formula("e^(x)+xy+$a y+ye^(y)-e^(y)+$b")->reduce; Context()->texStrings; BEGIN_TEXT -Solve the following initial-value problem: +Solve the following initial-value problem: $BR $BR \(\displaystyle (e^{x}+y)dx+($a+x+ye^{y})dy=0, \ y(0)=1\) $BR $BR -\{ ans_rule(30) \} +\{ ans_rule(30) \} = -0. -\{ AnswerFormatHelp("formulas") \} +0. +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; @@ -92,5 +92,5 @@ COMMENT(''); -ENDDOCUMENT(); - +ENDDOCUMENT(); + diff --git a/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem13.pg b/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem13.pg index 90fba1bd2e..4c0b9ba491 100644 --- a/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem13.pg +++ b/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem13.pg @@ -22,12 +22,12 @@ ######################################################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionLists.pl", "parserPrime.pl", "parserPopUp.pl", @@ -65,11 +65,11 @@ BEGIN_TEXT Are the following differential equations exact? (You have only one attempt! Submit both answers at the same time) $BR $BR -(a) \{ $answer[0]->menu() \} \((2x+y)dx-(x+6y)dy=0\). +(a) \{ $answer[0]->menu() \} \((2x+y)dx-(x+6y)dy=0\). $BR $BR -(b) \{ $answer[0]->menu() \} \((y^{2}\cos(x)-3x^{2}y-2x)dx+(2y\sin(x)-x^{3}+\ln(y))dy=0\). - +(b) \{ $answer[0]->menu() \} \((y^{2}\cos(x)-3x^{2}y-2x)dx+(2y\sin(x)-x^{3}+\ln(y))dy=0\). + END_TEXT Context()->normalStrings; @@ -84,10 +84,10 @@ foreach my $i (0..1) { ANS( $answer[$i]->cmp( checker=>sub { my ( $correct, $student, $ansHash ) = @_; - if ( ($numOfAttempts < 2) && ($correct == $student) ) { - return 1; + if ( ($numOfAttempts < 2) && ($correct == $student) ) { + return 1; } elsif ( ($numOfAttempts > 1) && ($correct == $student) ) { - Value->Error("Your answer is correct, but your score did not change since you used up the attempts allowed."); + Value->Error("Your answer is correct, but your score did not change since you used up the attempts allowed."); } else { return 0; }; diff --git a/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem14.pg b/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem14.pg index 59780f55e2..4629856bff 100644 --- a/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem14.pg +++ b/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem14.pg @@ -22,12 +22,12 @@ ######################################################################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserPopUp.pl", "PGcourse.pl" ); @@ -61,10 +61,10 @@ BEGIN_TEXT Are the following differential equations exact? (You have only one attempt! Submit both answers at the same time) $BR $BR -(a) \{ $answer[0]->menu() \} \((x^{2}-y^{2})dx+(x^{2}-2xy)dy=0\). +(a) \{ $answer[0]->menu() \} \((x^{2}-y^{2})dx+(x^{2}-2xy)dy=0\). $BR $BR -(b) \{ $answer[1]->menu() \} \((x+y)^{2}dx+(2xy+x^{2}-1)dy=0\). +(b) \{ $answer[1]->menu() \} \((x+y)^{2}dx+(2xy+x^{2}-1)dy=0\). END_TEXT Context()->normalStrings; @@ -79,10 +79,10 @@ foreach my $i (0..1) { ANS( $answer[$i]->cmp( checker=>sub { my ( $correct, $student, $ansHash ) = @_; - if ( ($numOfAttempts < 2) && ($correct == $student) ) { - return 1; + if ( ($numOfAttempts < 2) && ($correct == $student) ) { + return 1; } elsif ( ($numOfAttempts > 1) && ($correct == $student) ) { - Value->Error("Your answer is correct, but your score did not change since you used up the attempts allowed."); + Value->Error("Your answer is correct, but your score did not change since you used up the attempts allowed."); } else { return 0; }; diff --git a/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem15.pg b/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem15.pg index 66907d14e1..2cd086d420 100644 --- a/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem15.pg +++ b/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem15.pg @@ -19,12 +19,12 @@ ## Problem1('1') ## KEYWORDS('Differential equaltion') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -57,17 +57,17 @@ $dy = Formula("$c y+$a")->reduce; Context()->texStrings; BEGIN_TEXT - Solve the following differential equation: + Solve the following differential equation: $BR $BR \(\ ($dx)dx+($dy)dy=0\). $BR $BR -\{ ans_rule(30) \} +\{ ans_rule(30) \} = -constant. -\{ AnswerFormatHelp("formulas") \} +constant. +\{ helpLink("formulas") \} END_TEXT @@ -95,5 +95,5 @@ ANS( $answer->cmp(checker => sub { COMMENT('MathObject version. '); -ENDDOCUMENT(); - +ENDDOCUMENT(); + diff --git a/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem16.pg b/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem16.pg index 622e4ba30f..47ac418578 100644 --- a/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem16.pg +++ b/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem16.pg @@ -19,12 +19,12 @@ ## Problem1('3') ## KEYWORDS('Differential equaltion') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -57,17 +57,17 @@ $dy = Formula("$a x-$c*2 y^{$c-1}")->reduce; Context()->texStrings; BEGIN_TEXT -Solve the following differential equation: +Solve the following differential equation: $BR $BR \(\ ($dx)dx+($dy)dy=0\). $BR $BR -\{ ans_rule(30) \} +\{ ans_rule(30) \} = -constant. -\{ AnswerFormatHelp("formulas") \} +constant. +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; @@ -94,4 +94,4 @@ ANS( $answer->cmp(checker => sub { COMMENT(''); -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem17.pg b/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem17.pg index 80ddc72db8..c6e31622d9 100644 --- a/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem17.pg +++ b/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem17.pg @@ -19,12 +19,12 @@ ## Problem1('5') ## KEYWORDS('Differential equaltion') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -56,17 +56,17 @@ $dy = Formula("2x^(2) y+$b")->reduce; Context()->texStrings; BEGIN_TEXT -Solve the following differential equation: +Solve the following differential equation: $BR $BR \(\ ($dx)dx+($dy)dy=0\). $BR $BR -\{ ans_rule(30) \} +\{ ans_rule(30) \} = -constant. -\{ AnswerFormatHelp("formulas") \} +constant. +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; @@ -94,5 +94,5 @@ ANS( $answer->cmp(checker => sub { ; -ENDDOCUMENT(); - +ENDDOCUMENT(); + diff --git a/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem18.pg b/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem18.pg index 6cf4b18933..9a572ed5fe 100644 --- a/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem18.pg +++ b/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem18.pg @@ -19,12 +19,12 @@ ## Problem1('8') ## KEYWORDS('Differential equaltion') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -57,17 +57,17 @@ $rhs = $rhsArray[$choice]; Context()->texStrings; BEGIN_TEXT -Solve the following differential equation: +Solve the following differential equation: $BR $BR \(\displaystyle \left($lhs\right)dx=\left($rhs\right)dy\). $BR $BR -\{ ans_rule(30) \} +\{ ans_rule(30) \} = -constant. -\{ AnswerFormatHelp("formulas") \} +constant. +\{ helpLink("formulas") \} @@ -104,5 +104,5 @@ ANS( $answer->cmp(checker => sub { -ENDDOCUMENT(); - +ENDDOCUMENT(); + diff --git a/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem19.pg b/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem19.pg index d8129e89e8..b31102033a 100644 --- a/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem19.pg +++ b/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem19.pg @@ -19,12 +19,12 @@ ## Problem1('9') ## KEYWORDS('Differential equaltion') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionLists.pl", "parserPrime.pl", "parserPopUp.pl", @@ -62,17 +62,17 @@ $rhs=Formula("$a xy^($a-1)+$c y^($c-1)cos x")->reduce; Context()->texStrings; BEGIN_TEXT -Solve the following differential equation: +Solve the following differential equation: $BR $BR \(\displaystyle ($lhs)dx=($rhs)dy\). $BR $BR -\{ ans_rule(30) \} +\{ ans_rule(30) \} = -constant. -\{ AnswerFormatHelp("formulas") \} +constant. +\{ helpLink("formulas") \} @@ -102,5 +102,5 @@ ANS( $answer->cmp(checker => sub { ; -ENDDOCUMENT(); - +ENDDOCUMENT(); + diff --git a/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem20.pg b/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem20.pg index 136a57e139..59fff7560d 100644 --- a/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem20.pg +++ b/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem20.pg @@ -19,12 +19,12 @@ ## Problem1('10') ## KEYWORDS('Differential equaltion') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -55,17 +55,17 @@ $answer = Formula("x^($a+1)/($a+1)+xy^($b)")->reduce; Context()->texStrings; BEGIN_TEXT -Solve the following differential equation: +Solve the following differential equation: $BR $BR \(\displaystyle (x^{$a}+y^{$b})dx+$b xy^{$b1}dy=0\). $BR $BR -\{ ans_rule(30) \} +\{ ans_rule(30) \} = -constant. -\{ AnswerFormatHelp("formulas") \} +constant. +\{ helpLink("formulas") \} @@ -99,5 +99,5 @@ ANS( $answer->cmp(checker => sub { -ENDDOCUMENT(); - +ENDDOCUMENT(); + diff --git a/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem21.pg b/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem21.pg index 1409e6f7a5..ed86f9a0ba 100644 --- a/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem21.pg +++ b/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem21.pg @@ -19,12 +19,12 @@ ## Problem1('12') ## KEYWORDS('Differential equaltion') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -57,17 +57,17 @@ $dy = Formula("x^{$a}+xe^{y}-$b y^{$b-1}")->reduce; Context()->texStrings; BEGIN_TEXT -Solve the following differential equation: +Solve the following differential equation: $BR $BR \(\displaystyle ($dx)dx+($dy)dy=0\). $BR $BR -\{ ans_rule(30) \} +\{ ans_rule(30) \} = -constant. -\{ AnswerFormatHelp("formulas") \} +constant. +\{ helpLink("formulas") \} @@ -99,5 +99,5 @@ ANS( $answer->cmp(checker => sub { ; -ENDDOCUMENT(); - +ENDDOCUMENT(); + diff --git a/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem22.pg b/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem22.pg index 5ec0cf7778..2017d35724 100644 --- a/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem22.pg +++ b/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem22.pg @@ -18,12 +18,12 @@ ## Problem1('14') ## KEYWORDS('Differential equaltion') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -55,17 +55,17 @@ $answer = Formula("x+y+xy-$a ln|xy|")->reduce; Context()->texStrings; BEGIN_TEXT -Solve the following differential equation: +Solve the following differential equation: $BR $BR \(\displaystyle\left (1-\frac{$a}{y}+x\right)\frac{dy}{dx}+y=\frac{$a}{x}-1\). $BR $BR -\{ ans_rule(30) \} +\{ ans_rule(30) \} = -constant. -\{ AnswerFormatHelp("formulas") \} +constant. +\{ helpLink("formulas") \} END_TEXT @@ -96,5 +96,5 @@ ANS( $answer->cmp(checker => sub { ; -ENDDOCUMENT(); - +ENDDOCUMENT(); + diff --git a/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem23.pg b/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem23.pg index a501020f5c..9aff70ea13 100644 --- a/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem23.pg +++ b/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem23.pg @@ -19,12 +19,12 @@ ## Problem1('21') ## KEYWORDS('Differential equaltion') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserImplicitEquation.pl", "PGcourse.pl" ); @@ -60,17 +60,17 @@ $dy = Formula("(2xy+x^{2}-$b)")->reduce; Context()->texStrings; BEGIN_TEXT -Solve the following initial-value problems: +Solve the following initial-value problems: $BR $BR \(\displaystyle $dx dx+\left($dy\right) dy=0\).\(\ y(1)=$a\) $BR $BR -\{ ans_rule(30) \} +\{ ans_rule(30) \} = -0. -\{ AnswerFormatHelp("formulas") \} +0. +\{ helpLink("formulas") \} @@ -90,5 +90,5 @@ ANS( $answer->cmp() ); ; -ENDDOCUMENT(); - +ENDDOCUMENT(); + diff --git a/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem24.pg b/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem24.pg index ac1ae417b4..6343d13aeb 100644 --- a/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem24.pg +++ b/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem24.pg @@ -19,12 +19,12 @@ ## Problem1('22') ## KEYWORDS('Differential equaltion') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserImplicitEquation.pl", "PGcourse.pl" ); @@ -59,17 +59,17 @@ $dy = Formula("$b+x+ye^{y}")->reduce; Context()->texStrings; BEGIN_TEXT -Solve the following initial-value problems: +Solve the following initial-value problems: $BR $BR \(\displaystyle ($dx)dx+($dy)dy=0\).\(\ y(0)=$a\) $BR $BR -\{ ans_rule(30) \} +\{ ans_rule(30) \} = -0. -\{ AnswerFormatHelp("formulas") \} +0. +\{ helpLink("formulas") \} @@ -90,5 +90,5 @@ ANS( $answer->cmp() ); -ENDDOCUMENT(); - +ENDDOCUMENT(); + diff --git a/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem25.pg b/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem25.pg index 48b81c08a6..c979428b67 100644 --- a/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem25.pg +++ b/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem25.pg @@ -21,12 +21,12 @@ ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -66,17 +66,17 @@ $dy = Formula("x+y^{$a-1}")->reduce; Context()->texStrings; BEGIN_TEXT -Solve the following differential equation: +Solve the following differential equation: $BR $BR \(\displaystyle ($dx)dx+($dy)dy=0\). $BR $BR -\{ ans_rule(30) \} +\{ ans_rule(30) \} = -constant. -\{ AnswerFormatHelp("formulas") \} +constant. +\{ helpLink("formulas") \} @@ -109,4 +109,4 @@ ANS( $answer->cmp(checker => sub { ; -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem26.pg b/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem26.pg index 1a50c644eb..2d84e02cc0 100644 --- a/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem26.pg +++ b/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem26.pg @@ -20,12 +20,12 @@ ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -68,17 +68,17 @@ $dy = $dyArray[$choice]; Context()->texStrings; BEGIN_TEXT -Solve the following differential equation: +Solve the following differential equation: $BR $BR \(\displaystyle ($dx)dx+($dy)dy=0\). $BR $BR -\{ ans_rule(30) \} +\{ ans_rule(30) \} = -constant. -\{ AnswerFormatHelp("formulas") \} +constant. +\{ helpLink("formulas") \} @@ -114,4 +114,4 @@ ANS( $answer->cmp(checker => sub { -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem27.pg b/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem27.pg index da38703a72..5ddc2bca98 100644 --- a/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem27.pg +++ b/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem27.pg @@ -20,12 +20,12 @@ ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -68,17 +68,17 @@ $dy = Formula("x/(1-x^{2}y^{2})")->reduce; Context()->texStrings; BEGIN_TEXT -Solve the following differential equation: +Solve the following differential equation: $BR $BR \(\displaystyle dx=$dx dx+$dy dy\). $BR $BR -\{ ans_rule(30) \} +\{ ans_rule(30) \} = -constant. -\{ AnswerFormatHelp("formulas") \} +constant. +\{ helpLink("formulas") \} @@ -109,4 +109,4 @@ ANS( $answer->cmp(checker => sub { -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem28.pg b/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem28.pg index 80af2479f2..32676e1357 100644 --- a/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem28.pg +++ b/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem28.pg @@ -20,12 +20,12 @@ ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -67,17 +67,17 @@ $rhs = $rhsArray[$choice]; Context()->texStrings; BEGIN_TEXT -Solve the following differential equation: +Solve the following differential equation: $BR $BR \(\displaystyle ($lhs)dy=($rhs)dx\). $BR $BR -\{ ans_rule(30) \} +\{ ans_rule(30) \} = -constant. -\{ AnswerFormatHelp("formulas") \} +constant. +\{ helpLink("formulas") \} @@ -113,4 +113,4 @@ ANS( $answer->cmp(checker => sub { -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem29.pg b/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem29.pg index 7c4d4dbdef..9ad5b4ce9b 100644 --- a/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem29.pg +++ b/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem29.pg @@ -20,12 +20,12 @@ ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -69,17 +69,17 @@ $dy = Formula("x/(1-x^{2}y^{2})")->reduce; Context()->texStrings; BEGIN_TEXT -Solve the following differential equation: +Solve the following differential equation: $BR $BR \(\displaystyle \frac{ydx+xdy}{1-x^{2}y^{2}}+xdx=0\). $BR $BR -\{ ans_rule(30) \} +\{ ans_rule(30) \} = -constant. -\{ AnswerFormatHelp("formulas") \} +constant. +\{ helpLink("formulas") \} @@ -114,4 +114,4 @@ ANS( $answer->cmp(checker => sub { -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem30.pg b/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem30.pg index f12979769d..e362fe289f 100644 --- a/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem30.pg +++ b/OpenProblemLibrary/MiamiUOhio/DiffEq/First_Order_Exact_Equations/Problem30.pg @@ -20,12 +20,12 @@ ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", "PGcourse.pl" ); @@ -65,17 +65,17 @@ $dy = Formula("ycos(2x)")->reduce; Context()->texStrings; BEGIN_TEXT -Solve the following differential equation: +Solve the following differential equation: $BR $BR \(\displaystyle ($dx)dx-$dy dy=0\). $BR $BR -\{ ans_rule(30) \} +\{ ans_rule(30) \} = -constant. -\{ AnswerFormatHelp("formulas") \} +constant. +\{ helpLink("formulas") \} @@ -112,4 +112,4 @@ ANS( $answer->cmp(checker => sub { -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/Michigan/Chap1Sec8/Q01.pg b/OpenProblemLibrary/Michigan/Chap1Sec8/Q01.pg index ec9dc1a81d..2dcea33d95 100644 --- a/OpenProblemLibrary/Michigan/Chap1Sec8/Q01.pg +++ b/OpenProblemLibrary/Michigan/Chap1Sec8/Q01.pg @@ -36,7 +36,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "PGgraphmacros.pl", "MathObjects.pl", "PGcourse.pl" @@ -163,7 +163,7 @@ $ECENTER ${BBOLD}(a)$EBOLD -\( \lim\limits_{x \rightarrow -$b} f(x) \) = \{ ans_rule(15) \} \{ AnswerFormatHelp("limits") \} +\( \lim\limits_{x \rightarrow -$b} f(x) \) = \{ ans_rule(15) \} \{ helpLink("limits") \} $BR ${BBOLD}(b)$EBOLD \( \lim\limits_{x \rightarrow 0} f(x) \) = \{ ans_rule(15) \} diff --git a/OpenProblemLibrary/Michigan/Chap2Sec1/Q17.pg b/OpenProblemLibrary/Michigan/Chap2Sec1/Q17.pg index 61da28fc65..2553e0af5b 100644 --- a/OpenProblemLibrary/Michigan/Chap2Sec1/Q17.pg +++ b/OpenProblemLibrary/Michigan/Chap2Sec1/Q17.pg @@ -48,7 +48,7 @@ loadMacros( "PGchoicemacros.pl", "MathObjects.pl", "parserNumberWithUnits.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -87,12 +87,12 @@ $PAR Find the average velocity over the interval \(0 \le t \le 0.2\). $BR average velocity = \{ ans_rule(8) \} -\{ AnswerFormatHelp("units") \} +\{ helpLink("units") \} $PAR Estimate the velocity at \(t=0.2\). $BR velocity = \{ ans_rule(8) \} -\{ AnswerFormatHelp("units") \} +\{ helpLink("units") \} END_TEXT Context()->normalStrings; @@ -106,7 +106,7 @@ ANS(NumberWithUnits( $b, "ft/s" )->cmp() ); ANS(NumberWithUnits( $v, "ft/s" )->cmp( checker=>sub { my ( $correct, $student, $ansHash ) = @_; $stu_real = Real($student); - if ( $min <= $stu_real && $stu_real <= $max ){ + if ( $min <= $stu_real && $stu_real <= $max ){ # if ( $student == $correct || $student == $cval || $student == $bval ) { return 1; } else { diff --git a/OpenProblemLibrary/Michigan/Chap2Sec5/Q15.pg b/OpenProblemLibrary/Michigan/Chap2Sec5/Q15.pg index 513551e612..032bb47cdf 100644 --- a/OpenProblemLibrary/Michigan/Chap2Sec5/Q15.pg +++ b/OpenProblemLibrary/Michigan/Chap2Sec5/Q15.pg @@ -45,7 +45,7 @@ loadMacros( "PGchoicemacros.pl", "MathObjects.pl", "parserNumberWithUnits.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -72,10 +72,10 @@ $acc2 = $vel[2]-$vel[1]; Context()->texStrings; BEGIN_TEXT -Suppose that an accelerating car goes from +Suppose that an accelerating car goes from 0 mph to $top_mph mph in five seconds. Its -velocity is given in the following table, converted from -miles per hour to feet per second, so that all time +velocity is given in the following table, converted from +miles per hour to feet per second, so that all time measurements are in seconds. (Note: 1 mph is 22/15 ft/sec.) Find the average acceleration of the car over each of the first two seconds. @@ -86,11 +86,11 @@ $PAR \{ endtable() \} $PAR -average acceleration over the first second = \{ ans_rule(35) \} -\{ AnswerFormatHelp("units") \} +average acceleration over the first second = \{ ans_rule(35) \} +\{ helpLink("units") \} $BR average acceleration over the second second = \{ ans_rule(35) \} -\{ AnswerFormatHelp("units") \} +\{ helpLink("units") \} END_TEXT Context()->normalStrings; @@ -111,12 +111,12 @@ ft/s per second, or ft/s/s, written ft/s\({}^2\). \frac{\mbox{Change in velocity}}{\mbox{Change in time}}, \] so, reading the velocities from the table, we have -\[ +\[ \frac{v(1) - v(0)}{1} = $vel[1] - $vel[0] = $acc1 \mbox{ ft/s}{}^2. \] -Similarly, +Similarly, \[ -\mbox{avg accel for } 1\le t\le 2 = +\mbox{avg accel for } 1\le t\le 2 = \frac{v(2) - v(1)}{2-1} = $vel[2] - $vel[1] = $acc2 \mbox{ ft/s}{}^2. \] diff --git a/OpenProblemLibrary/Michigan/Chap3Sec1/Q05.pg b/OpenProblemLibrary/Michigan/Chap3Sec1/Q05.pg index 803e28d62f..72335dad96 100644 --- a/OpenProblemLibrary/Michigan/Chap3Sec1/Q05.pg +++ b/OpenProblemLibrary/Michigan/Chap3Sec1/Q05.pg @@ -48,7 +48,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); diff --git a/OpenProblemLibrary/Michigan/Chap3Sec1/Q33.pg b/OpenProblemLibrary/Michigan/Chap3Sec1/Q33.pg index 95b999fbcd..edc0489c1e 100644 --- a/OpenProblemLibrary/Michigan/Chap3Sec1/Q33.pg +++ b/OpenProblemLibrary/Michigan/Chap3Sec1/Q33.pg @@ -43,7 +43,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -63,7 +63,7 @@ $df = $f->D; Context()->texStrings; BEGIN_TEXT -Find the derivative of +Find the derivative of \(\displaystyle y = $f \). $BR$BR @@ -86,7 +86,7 @@ Context()->texStrings; SOLUTION(EV3(<<'END_SOLUTION')); $PAR SOLUTION $PAR -Noting that \( \frac{x^{$pow}+$a}{x} = x^{$p1} + $a x^{-1} \), +Noting that \( \frac{x^{$pow}+$a}{x} = x^{$p1} + $a x^{-1} \), \[ {dy\over dx} = $p1 $xp - $a x^{-2}. \] END_SOLUTION diff --git a/OpenProblemLibrary/Michigan/Chap3Sec1/Q35.pg b/OpenProblemLibrary/Michigan/Chap3Sec1/Q35.pg index c03ec41509..45286baa7b 100644 --- a/OpenProblemLibrary/Michigan/Chap3Sec1/Q35.pg +++ b/OpenProblemLibrary/Michigan/Chap3Sec1/Q35.pg @@ -39,7 +39,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -58,7 +58,7 @@ $df = $f->D('t'); Context()->texStrings; BEGIN_TEXT -Find the derivative of +Find the derivative of \(\displaystyle f(t) = $f \). $PAR @@ -75,7 +75,7 @@ Context()->texStrings; SOLUTION(EV3(<<'END_SOLUTION')); $PAR SOLUTION $PAR -Expanding \( f(t) \), we have +Expanding \( f(t) \), we have \( \frac{t^$p1 + t^$p2 - 1}{t^$p3} = t^{-2} + t^{-1} - t^{-$p3} \), so \[ f'(t) = -2 t^{-3} - t^{-2} + $p3 t^{-$p4}. \] diff --git a/OpenProblemLibrary/Michigan/Chap3Sec1/Q53.pg b/OpenProblemLibrary/Michigan/Chap3Sec1/Q53.pg index 14777a8759..48e52f120a 100644 --- a/OpenProblemLibrary/Michigan/Chap3Sec1/Q53.pg +++ b/OpenProblemLibrary/Michigan/Chap3Sec1/Q53.pg @@ -49,7 +49,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -97,7 +97,7 @@ $PAR SOLUTION $PAR Differentiating gives \( f'(x) = $ddf\), so -\( f'($x0) = $m \). Thus the equation of the tangent line is +\( f'($x0) = $m \). Thus the equation of the tangent line is \( y - $y0 = $m ( x - $x0 ) \), or \( y = $y0 + $m (x - $x0 ) \). diff --git a/OpenProblemLibrary/Michigan/precalc/4e/Chap6Sec5/Q03.pg b/OpenProblemLibrary/Michigan/precalc/4e/Chap6Sec5/Q03.pg index 55e7886805..7bb26af113 100644 --- a/OpenProblemLibrary/Michigan/precalc/4e/Chap6Sec5/Q03.pg +++ b/OpenProblemLibrary/Michigan/precalc/4e/Chap6Sec5/Q03.pg @@ -33,7 +33,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -109,16 +109,16 @@ The graph of \( y= $g(x) \) contains the point \( ($x, $y) \). What point must Enter points as \( (a,b) \) including the parentheses. $PAR ${BBOLD}(a)$EBOLD The graph of \( y= $g($hdsfa x)-$vta \) must contain the point \{ ans_rule(20) \} -\{ AnswerFormatHelp("points") \} +\{ helpLink("points") \} $PAR ${BBOLD}(b)$EBOLD The graph of \( y= $vdsfb $g(x)+$vtb \) must contain the point \{ ans_rule(20) \} -\{ AnswerFormatHelp("points") \} +\{ helpLink("points") \} $PAR ${BBOLD}(c)$EBOLD The graph of \( y= -\left($g($hdsfc(x+$htc))-$vtc \right)\) must contain the point \{ ans_rule(20) \} -\{ AnswerFormatHelp("points") \} +\{ helpLink("points") \} $PAR ${BBOLD}(d)$EBOLD The graph of \( y= $vdsfd $g(-$hdsfd x -$htd )-$vtd \) must contain the point \{ ans_rule(20) \} -\{ AnswerFormatHelp("points") \} +\{ helpLink("points") \} $PAR END_TEXT @@ -137,15 +137,15 @@ ANS(Point("($ans_d1,$ans_d2)")->cmp() ); Context()->texStrings; #Compress versus stretch words -if($hpicka >=3){$haword="stretch"; $hawording="stretching"} +if($hpicka >=3){$haword="stretch"; $hawording="stretching"} else{$haword="compress"; $hawording="compressing"}; -if($vpickb <3){$vbworded="stretched"; $vbwording="stretching"} +if($vpickb <3){$vbworded="stretched"; $vbwording="stretching"} else{$vbworded="compressed"; $vbwording="compressing"}; -if($hpickc >=3){$hcword="stretch"} +if($hpickc >=3){$hcword="stretch"} else{$hcword="compress"}; -if($hpickd >=3){$hdword="stretch"} +if($hpickd >=3){$hdword="stretch"} else{$hdword="compress"}; -if($vpickd <3){$vdword="stretch"} +if($vpickd <3){$vdword="stretch"} else{$vdword="compressed"}; SOLUTION(EV3(<<'END_SOLUTION')); @@ -167,7 +167,7 @@ Then, reflect across the \(x\)-axis, taking \( ($ans_c1 , $y) \) to \( ($ans_c Finally, shift the resulting graph up \($vtc \) units, moving \( ($ans_c1 , $oppy)\) to \( ($ans_c1, $oppy + $vtc ) = ($ans_c1, $ans_c2) \). $PAR -${BBOLD}(d)$EBOLD To rewrite \( $vdsfd $g(-$hdsfd x -$htd )-$vtd \) in the form \(A$g(B(x-h))+k\), we factor out \(-$hdsfd \) inside the parentheses. This gives \( $vdsfd $g\left(-$hdsfd ( x +$htfacd )\right)-$vtd \) which is in the form \(A$g(B(x-h))+k\) with \( A = $vdsfd \), \(B = -$hdsfd \), \(h = -$htfacd \), and \(k = -$vtd \). We can thus obtain the graph of +${BBOLD}(d)$EBOLD To rewrite \( $vdsfd $g(-$hdsfd x -$htd )-$vtd \) in the form \(A$g(B(x-h))+k\), we factor out \(-$hdsfd \) inside the parentheses. This gives \( $vdsfd $g\left(-$hdsfd ( x +$htfacd )\right)-$vtd \) which is in the form \(A$g(B(x-h))+k\) with \( A = $vdsfd \), \(B = -$hdsfd \), \(h = -$htfacd \), and \(k = -$vtd \). We can thus obtain the graph of \( y=$vdsfd $g(-$hdsfd x -$htd )-$vtd \) from the graph of \(y=$g (x) \) by applying the following sequence of five transformations. $BR First, horizontally $hdword by a factor of \($hdsfrecd \), taking the point \(($x , $y) \) to the point \( ($hdsfrecd ($x ), $y ) = ($xdivhfd , $y )\). $BR Next, reflect the resulting graph across the \(y\)-axis, sending \(($xdivhfd , $y )\) to \(($oppxdivhfd , $y )\). $BR diff --git a/OpenProblemLibrary/Mizzou/Algebra/eqns_linear/linear_eqns_30_ia_npl.pg b/OpenProblemLibrary/Mizzou/Algebra/eqns_linear/linear_eqns_30_ia_npl.pg index 68f65d45d7..4d0056f51c 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/eqns_linear/linear_eqns_30_ia_npl.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/eqns_linear/linear_eqns_30_ia_npl.pg @@ -1,6 +1,6 @@ ##DESCRIPTION ## Word problem -## +## ##ENDDESCRIPTION ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) @@ -25,7 +25,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "PGcourse.pl" @@ -76,8 +76,8 @@ $multians = MultiAnswer($num, $den)->with( my ( $correct, $student, $self ) = @_; my ( $f1stu, $f2stu ) = @{$student}; my ( $f1, $f2 ) = @{$correct}; - - if ( ( $f1==$f1stu && $f2==$f2stu) || + + if ( ( $f1==$f1stu && $f2==$f2stu) || (-$f1==$f1stu && -$f2==$f2stu) ) { return [1,1]; } elsif ( $f1==$f1stu || -$f1==$f1stu) { diff --git a/OpenProblemLibrary/Mizzou/Algebra/eqns_linear/linear_eqns_31_ia_npl.pg b/OpenProblemLibrary/Mizzou/Algebra/eqns_linear/linear_eqns_31_ia_npl.pg index daa50345c0..518000bb54 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/eqns_linear/linear_eqns_31_ia_npl.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/eqns_linear/linear_eqns_31_ia_npl.pg @@ -1,6 +1,6 @@ ##DESCRIPTION ## Word problem -## +## ##ENDDESCRIPTION ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) @@ -24,7 +24,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "PGcourse.pl" @@ -69,8 +69,8 @@ $multians = MultiAnswer($num, $den)->with( my ( $correct, $student, $self ) = @_; my ( $f1stu, $f2stu ) = @{$student}; my ( $f1, $f2 ) = @{$correct}; - - if ( ( $f1==$f1stu && $f2==$f2stu) || + + if ( ( $f1==$f1stu && $f2==$f2stu) || (-$f1==$f1stu && -$f2==$f2stu) ) { return [1,1]; } elsif ( $f1==$f1stu || -$f1==$f1stu) { diff --git a/OpenProblemLibrary/Mizzou/Algebra/eqns_linear/linear_eqns_33_ia_npl.pg b/OpenProblemLibrary/Mizzou/Algebra/eqns_linear/linear_eqns_33_ia_npl.pg index 5e01e8aae4..ebe22be24d 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/eqns_linear/linear_eqns_33_ia_npl.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/eqns_linear/linear_eqns_33_ia_npl.pg @@ -1,6 +1,6 @@ ##DESCRIPTION ## Word problem -## +## ##ENDDESCRIPTION ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) @@ -24,7 +24,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "PGcourse.pl" @@ -72,8 +72,8 @@ $multians = MultiAnswer($num, $den)->with( my ( $correct, $student, $self ) = @_; my ( $f1stu, $f2stu ) = @{$student}; my ( $f1, $f2 ) = @{$correct}; - - if ( ( $f1==$f1stu && $f2==$f2stu) || + + if ( ( $f1==$f1stu && $f2==$f2stu) || (-$f1==$f1stu && -$f2==$f2stu) ) { return [1,1]; } elsif ( $f1==$f1stu || -$f1==$f1stu) { diff --git a/OpenProblemLibrary/Mizzou/Algebra/eqns_linear/linear_eqns_34_ia_npl.pg b/OpenProblemLibrary/Mizzou/Algebra/eqns_linear/linear_eqns_34_ia_npl.pg index f8e2876ec0..b54a5aa761 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/eqns_linear/linear_eqns_34_ia_npl.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/eqns_linear/linear_eqns_34_ia_npl.pg @@ -1,6 +1,6 @@ ##DESCRIPTION ## Word problem -## +## ##ENDDESCRIPTION ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) @@ -24,7 +24,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "PGcourse.pl" @@ -69,8 +69,8 @@ $multians = MultiAnswer($num, $den)->with( my ( $correct, $student, $self ) = @_; my ( $f1stu, $f2stu ) = @{$student}; my ( $f1, $f2 ) = @{$correct}; - - if ( ( $f1==$f1stu && $f2==$f2stu) || + + if ( ( $f1==$f1stu && $f2==$f2stu) || (-$f1==$f1stu && -$f2==$f2stu) ) { return [1,1]; } elsif ( $f1==$f1stu || -$f1==$f1stu) { diff --git a/OpenProblemLibrary/Mizzou/Algebra/eqns_radical/eqns_rad_07_ia.pg b/OpenProblemLibrary/Mizzou/Algebra/eqns_radical/eqns_rad_07_ia.pg index ec770a4011..400d2c665e 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/eqns_radical/eqns_rad_07_ia.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/eqns_radical/eqns_rad_07_ia.pg @@ -13,13 +13,13 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -29,7 +29,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Fraction-NoDecimals"); Context()->strings->add("no solution"=>{}); @@ -48,7 +48,7 @@ $ans = Fraction("(($d-$c)**3 - $b)/$a"); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -63,14 +63,14 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ans->cmp(studentsMustReduceFractions=>1)); BEGIN_TEXT $PAR - ${BBOLD}Note:$EBOLD Write your answer in exact form using square roots or radical notation if necessary. \{ AnswerFormatHelp("exponents", "Click here for help writing square roots.")\} If there is more than one correct answer, enter your answers as a comma separated list. If the equation has no real solution, write "No Solution." + ${BBOLD}Note:$EBOLD Write your answer in exact form using square roots or radical notation if necessary. \{ helpLink("exponents", "Click here for help writing square roots.")\} If there is more than one correct answer, enter your answers as a comma separated list. If the equation has no real solution, write "No Solution." $BR END_TEXT diff --git a/OpenProblemLibrary/Mizzou/Algebra/eqns_radical/eqns_rad_08_ia.pg b/OpenProblemLibrary/Mizzou/Algebra/eqns_radical/eqns_rad_08_ia.pg index 5c34596760..7ab51b60e6 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/eqns_radical/eqns_rad_08_ia.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/eqns_radical/eqns_rad_08_ia.pg @@ -13,13 +13,13 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -29,7 +29,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Fraction-NoDecimals"); Context()->strings->add("no solution"=>{}); @@ -73,7 +73,7 @@ if ($aq >= 0) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -88,7 +88,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### if (scalar(@ans) > 0) { $ans = List(@ans); @@ -102,7 +102,7 @@ if (scalar(@ans) > 0) { BEGIN_TEXT $PAR - ${BBOLD}Note:$EBOLD Write your answer in exact form using square roots or radical notation if necessary. \{ AnswerFormatHelp("exponents", "Click here for help writing square roots.")\} If there is more than one correct answer, enter your answers as a comma separated list. If the equation has no real solution, write "No Solution." + ${BBOLD}Note:$EBOLD Write your answer in exact form using square roots or radical notation if necessary. \{ helpLink("exponents", "Click here for help writing square roots.")\} If there is more than one correct answer, enter your answers as a comma separated list. If the equation has no real solution, write "No Solution." END_TEXT ENDDOCUMENT(); diff --git a/OpenProblemLibrary/Mizzou/Algebra/eqns_radical/eqns_rad_09_ia.pg b/OpenProblemLibrary/Mizzou/Algebra/eqns_radical/eqns_rad_09_ia.pg index 1172a455c9..5895afd706 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/eqns_radical/eqns_rad_09_ia.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/eqns_radical/eqns_rad_09_ia.pg @@ -13,13 +13,13 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -28,7 +28,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); Context()->strings->add("no solution"=>{}); @@ -42,7 +42,7 @@ $disp = ($p == 2) ? "-\sqrt{$a x} + $b = $c" : "-\sqrt[3]{$a x} + $b = $c"; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -57,13 +57,13 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ans->cmp()); BEGIN_TEXT $PAR - ${BBOLD}Note:$EBOLD Write your answer in exact form using square roots or radical notation if necessary. \{ AnswerFormatHelp("exponents", "Click here for help writing square roots.")\} If there is more than one correct answer, enter your answers as a comma separated list. If the equation has no real solution, write "No Solution." + ${BBOLD}Note:$EBOLD Write your answer in exact form using square roots or radical notation if necessary. \{ helpLink("exponents", "Click here for help writing square roots.")\} If there is more than one correct answer, enter your answers as a comma separated list. If the equation has no real solution, write "No Solution." END_TEXT ENDDOCUMENT(); diff --git a/OpenProblemLibrary/Mizzou/Algebra/eqns_radical/eqns_rad_two_parts_01_ia.pg b/OpenProblemLibrary/Mizzou/Algebra/eqns_radical/eqns_rad_two_parts_01_ia.pg index ddc3a58638..1f1780f8c6 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/eqns_radical/eqns_rad_two_parts_01_ia.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/eqns_radical/eqns_rad_two_parts_01_ia.pg @@ -13,13 +13,13 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -29,7 +29,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Fraction-NoDecimals"); Context()->strings->add("no solution"=>{}); @@ -68,7 +68,7 @@ if ($case2 == 0) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -81,7 +81,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ansa->cmp(studentsMustReduceFractions=>1)); if ($case2 == 0) { @@ -89,12 +89,12 @@ if ($case2 == 0) { } else { $dansb = "\(x = $tmp\)"; ANS($ansb->cmp(studentsMustReduceFractions=>1)); -} +} BEGIN_TEXT $PAR - ${BBOLD}Note:$EBOLD Write your answer in exact form using square roots or radical notation if necessary. \{ AnswerFormatHelp("exponents", "Click here for help writing square roots.")\} If there is more than one correct answer, enter your answers as a comma separated list. If the equation has no real solution, write "No Solution." + ${BBOLD}Note:$EBOLD Write your answer in exact form using square roots or radical notation if necessary. \{ helpLink("exponents", "Click here for help writing square roots.")\} If there is more than one correct answer, enter your answers as a comma separated list. If the equation has no real solution, write "No Solution." $BR END_TEXT diff --git a/OpenProblemLibrary/Mizzou/Algebra/eqns_rational/rational_eqns_12.pg b/OpenProblemLibrary/Mizzou/Algebra/eqns_rational/rational_eqns_12.pg index f7e63656b7..a44a67b8ab 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/eqns_rational/rational_eqns_12.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/eqns_rational/rational_eqns_12.pg @@ -15,12 +15,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGcourse.pl" ); @@ -30,7 +30,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); Context()->variables->are(x=>"Real", y=>"Real", z=>"Real", uc("x")=>"Real", uc("y")=>"Real", uc("z")=>"Real"); @@ -96,11 +96,11 @@ if ($case == 0) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT -Solve the following equation for \($solvefor\): +Solve the following equation for \($solvefor\): $PAR \[ \displaystyle $dispeqn @@ -112,7 +112,7 @@ Context()->normalStrings; ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($ans)->cmp()); diff --git a/OpenProblemLibrary/Mizzou/Algebra/eqns_systems_solving/eqns_systems_graph_01.pg b/OpenProblemLibrary/Mizzou/Algebra/eqns_systems_solving/eqns_systems_graph_01.pg index d0853e1f40..036042caea 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/eqns_systems_solving/eqns_systems_graph_01.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/eqns_systems_solving/eqns_systems_graph_01.pg @@ -12,12 +12,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "contextLimitedPoint.pl", @@ -30,7 +30,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("LimitedPoint"); Context()->strings->add("no solution"=>{}, "no solutions"=>{alias=>"no solution"}, "no soln"=>{alias=>"no solution"}, "no solns"=>{alias=>"no solution"}, "none"=>{alias=>"no solution"}, "infinitely many"=>{}); @@ -113,7 +113,7 @@ if ($y0 == $y2) { $fun2->steps(1500); } # uncomment to put show intersection point on the graph -#$graph->stamps(new Circle($x0, $y0, 6, 'blue', 'blue')); +#$graph->stamps(new Circle($x0, $y0, 6, 'blue', 'blue')); # here in order to write the system in the problem statement $xcoeff1 = $y0-$y1; @@ -144,7 +144,7 @@ if ($ycoeff1 == 0 && $xcoeff2 == 0) { if ($xcoeff1 == 1) {$eqn = $eqn."x"} elsif ($xcoeff1 == -1) {$eqn = $eqn."-x"} else {$eqn = $eqn."$xcoeff1 x"}; $eqn = $eqn." & & & = & $const1\\"; if ($xcoeff2 == 1) {$eqn = $eqn."x"} elsif ($xcoeff2 == -1) {$eqn = $eqn."-x"} else {$eqn = $eqn."$xcoeff2 x"}; - $eqn = $eqn." & $sign2 & "; + $eqn = $eqn." & $sign2 & "; if ($ycoeff2 == 1) {$eqn = $eqn."y"} else {$eqn = $eqn."$ycoeff2 y"}; $eqn = $eqn."& = & $const2 \end{array} \right. \)"; } elsif ($ycoeff1 != 0 && $xcoeff2 == 0) { @@ -165,7 +165,7 @@ if ($ycoeff1 == 0 && $xcoeff2 == 0) { if ($ycoeff1 == 1) {$eqn = $eqn."y"} else {$eqn = $eqn."$ycoeff1 y"}; $eqn = $eqn." & = & $const1\\"; if ($xcoeff2 == 1) {$eqn = $eqn."x"} elsif ($xcoeff2 == -1) {$eqn = $eqn."-x"} else {$eqn = $eqn."$xcoeff2 x"}; - $eqn = $eqn." & $sign2 & "; + $eqn = $eqn." & $sign2 & "; if ($ycoeff2 == 1) {$eqn = $eqn."y"} else {$eqn = $eqn."$ycoeff2 y"}; $eqn = $eqn."& = & $const2 \end{array} \right. \)"; } @@ -173,7 +173,7 @@ $answer = Point("($x0,$y0)"); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -181,15 +181,15 @@ Solve the following system of equations graphically: $eqn $PAR $BCENTER \{ image( insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>800 ) \} -$ECENTER +$ECENTER $PAR -Answer: \{ans_rule(20)\} +Answer: \{ans_rule(20)\} END_TEXT Context()->normalStrings; ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp(tolType => 'absolute', tolerance => 0.2)); diff --git a/OpenProblemLibrary/Mizzou/Algebra/functions_increasing_decreasing/inc_dec_const_dom_range_01.pg b/OpenProblemLibrary/Mizzou/Algebra/functions_increasing_decreasing/inc_dec_const_dom_range_01.pg index 96ad9bd6c7..24f94d13f6 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/functions_increasing_decreasing/inc_dec_const_dom_range_01.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/functions_increasing_decreasing/inc_dec_const_dom_range_01.pg @@ -13,12 +13,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "PGcourse.pl" @@ -30,7 +30,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -73,7 +73,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.7,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.7,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.7,'10', 'black', 'bottom', 'right')); @@ -114,7 +114,7 @@ for ($i = 0; $i < $numx; $i++) { $maxy = $yvals[$i]; } if ($miny > $yvals[$i]) { - $miny = $yvals[$i]; + $miny = $yvals[$i]; } } @@ -188,9 +188,9 @@ if ($rcirc == 1 && $lcirc == 1) { } if ($lclosed == 0 && $rclosed == 0) { $range = Compute("($miny,$maxy)"); -} elsif ($lclosed == 1 && $rclosed == 0) { +} elsif ($lclosed == 1 && $rclosed == 0) { $range = Compute("[$miny,$maxy)"); -} elsif ($lclosed == 0 && $rclosed == 1) { +} elsif ($lclosed == 0 && $rclosed == 1) { $range = Compute("($miny,$maxy]"); } else { $range = Compute("[$miny,$maxy]"); @@ -248,10 +248,10 @@ for ($i = 1; $i < $numx; $i++) { @maxima = ($yvals[$chstr]); @minima = ($yvals[$chstr]); -# follow the convention that endpoints can't be local maxima or minima +# follow the convention that endpoints can't be local maxima or minima for ($i=1; $i < $numx -2; $i++){ - push(@minima, $yvals[$i]) if ( $yvals[$i] <= $yvals[$i-1] && $yvals[$i] <= $yvals[$i+1] ); + push(@minima, $yvals[$i]) if ( $yvals[$i] <= $yvals[$i-1] && $yvals[$i] <= $yvals[$i+1] ); push(@maxima, $yvals[$i]) if ( $yvals[$i] >= $yvals[$i-1] && $yvals[$i] >= $yvals[$i+1] ); } @@ -272,7 +272,7 @@ if (scalar(@minima) == 0) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -280,27 +280,27 @@ BEGIN_TEXT $PAR $BCENTER \{ image(insertGraph($graph), width=>$gsize, height=>$gsize, tex_size=>500 ); \} -$ECENTER +$ECENTER $PAR Given the graph of \(f(x)\) above, find the following. In parts (a)-(e) write your answers using \{helpLink("interval", "interval notation")\}: $BR $PAR (a) Domain: \{ans_rule(20)\} $BR (b) Range: \{ans_rule(20)\} $BR -$PAR +$PAR In parts (c)-(e) do not include endpoints in the intervals. (People disagree on whether or not to call a function "strictly increasing" at an endpoint). In other words, pretend all your intervals are open.$BR (c) Set on which \(f(x)\) is strictly increasing: \{ans_rule(30)\} $BR (d) Set on which \(f(x)\) is strictly decreasing: \{ans_rule(30)\} $BR -(e) Set on which \(f(x)\) is constant: \{ans_rule(30)\} +(e) Set on which \(f(x)\) is constant: \{ans_rule(30)\} $PAR In parts (f),(g) list the \(y\)-coordinates (\(y=f(x)\)) of the local maxima and minima. Use commas to separate distinct values if there are more than one. Enter NONE if there are none. $PAR -(f) Local maxima: \{ans_rule(20)\} $BR +(f) Local maxima: \{ans_rule(20)\} $BR (g) Local minima: \{ans_rule(20)\} END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($domain)->cmp()); ANS(Compute($range)->cmp()); diff --git a/OpenProblemLibrary/Mizzou/Algebra/functions_increasing_decreasing/inc_dec_const_dom_range_02.pg b/OpenProblemLibrary/Mizzou/Algebra/functions_increasing_decreasing/inc_dec_const_dom_range_02.pg index 43c425d55d..6eebe5dbde 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/functions_increasing_decreasing/inc_dec_const_dom_range_02.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/functions_increasing_decreasing/inc_dec_const_dom_range_02.pg @@ -19,12 +19,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "PGcourse.pl" @@ -36,7 +36,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxx = 11; @@ -137,7 +137,7 @@ if ($stop == 1) { $domain = Interval("(-infinity,$x6)"); } else { $domain = Interval("(-infinity,$x6]"); - } + } } else { $domain = Interval("(-infinity,infinity)"); } @@ -184,7 +184,7 @@ if ($stop == 1) { } ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -192,7 +192,7 @@ BEGIN_TEXT $PAR $BCENTER \{ image(insertGraph($graph), width=>$gsize, height=>$gsize, tex_size=>500 ); \} -$ECENTER +$ECENTER $PAR Above is part of the graph of a function \(f(x)\). It's impossible to show the entire graph in a finite region because it is too large. The left side of the graph is the left side of a parabola; use your imagination to imagine the rest of the parabola extending off to the left. The right side of the graph is part of a line; if you can see its right endpoint then you can see the entire right side of the graph; if you can't see its right endpoint then the line extends infinitely far to the right. $PAR @@ -201,20 +201,20 @@ Given this information, find the following. In parts (a)-(e) write your answers $PAR (a) Domain: \{ans_rule(20)\} $BR (b) Range: \{ans_rule(20)\} $BR -$PAR +$PAR In parts (c)-(e) do not include endpoints in the intervals. (People disagree on whether or not to call a function "strictly increasing" at an endpoint). In other words, pretend all your intervals are open.$BR (c) Set on which \(f(x)\) is strictly increasing: \{ans_rule(30)\} $BR (d) Set on which \(f(x)\) is strictly decreasing: \{ans_rule(30)\} $BR -(e) Set on which \(f(x)\) is constant: \{ans_rule(30)\} +(e) Set on which \(f(x)\) is constant: \{ans_rule(30)\} $PAR In parts (f),(g) list the \(y\)-coordinates (\(y=f(x)\)) of the local maxima and minima. Use commas to separate distinct values if there are more than one. Enter NONE if there are none. $PAR -(f) Local maxima: \{ans_rule(20)\} $BR +(f) Local maxima: \{ans_rule(20)\} $BR (g) Local minima: \{ans_rule(20)\} END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($domain)->cmp()); ANS(Compute($range)->cmp()); diff --git a/OpenProblemLibrary/Mizzou/Algebra/functions_increasing_decreasing/inc_dec_const_dom_range_03.pg b/OpenProblemLibrary/Mizzou/Algebra/functions_increasing_decreasing/inc_dec_const_dom_range_03.pg index 19f6071ff7..a17f30fd9d 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/functions_increasing_decreasing/inc_dec_const_dom_range_03.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/functions_increasing_decreasing/inc_dec_const_dom_range_03.pg @@ -19,12 +19,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "PGcourse.pl" @@ -36,7 +36,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxx = 11; @@ -81,7 +81,7 @@ $y1 = non_zero_random(-4,3); $x2 = $x1 - random(1,2); $y2 = $y1 + (1,6); if ($x2 - $x1 == 1) { - $x3 = $x1 + 2; + $x3 = $x1 + 2; } else { $x3 = $x1 + 1; } @@ -171,7 +171,7 @@ $const = Compute("(-inf,$x1)"); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -179,7 +179,7 @@ BEGIN_TEXT $PAR $BCENTER \{ image(insertGraph($graph), width=>$gsize, height=>$gsize, tex_size=>500 ); \} -$ECENTER +$ECENTER $PAR Above is part of the graph of a function \(f(x)\). It's impossible to show the entire graph in a finite region because it is too large. The left side of the graph is the left half of a line; imagine the rest of the line extending off to the left. The right side of the graph is the right half of a diagonal line; imagine the rest of the line extending off to the right. $PAR @@ -188,21 +188,21 @@ Given this information, find the following. In parts (a)-(e) write your answers $PAR (a) Domain: \{ans_rule(20)\} $BR (b) Range: \{ans_rule(20)\} $BR -$PAR +$PAR In parts (c)-(e) do not include endpoints in the intervals. (People disagree on whether or not to call a function "strictly increasing" at an endpoint). In other words, pretend all your intervals are open.$BR (c) Set on which \(f(x)\) is strictly increasing: \{ans_rule(30)\} $BR (d) Set on which \(f(x)\) is strictly decreasing: \{ans_rule(30)\} $BR -(e) Set on which \(f(x)\) is constant: \{ans_rule(30)\} +(e) Set on which \(f(x)\) is constant: \{ans_rule(30)\} $PAR In parts (f),(g) list the \(y\)-coordinates (\(y=f(x)\)) of the local maxima and minima. Use commas to separate distinct values if there are more than one. Enter NONE if there are none. $PAR -(f) Local maxima: \{ans_rule(20)\} $BR +(f) Local maxima: \{ans_rule(20)\} $BR (g) Local minima: \{ans_rule(20)\} END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($domain)->cmp()); ANS(Compute($range)->cmp()); diff --git a/OpenProblemLibrary/Mizzou/Algebra/functions_increasing_decreasing/inc_dec_const_dom_range_04.pg b/OpenProblemLibrary/Mizzou/Algebra/functions_increasing_decreasing/inc_dec_const_dom_range_04.pg index 3f057cdad1..cecbb0aeef 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/functions_increasing_decreasing/inc_dec_const_dom_range_04.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/functions_increasing_decreasing/inc_dec_const_dom_range_04.pg @@ -19,12 +19,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "PGcourse.pl" @@ -36,7 +36,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -79,7 +79,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.7,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.7,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.7,'10', 'black', 'bottom', 'right')); @@ -106,9 +106,9 @@ if ($y[3] - $y[2] < 0) { $y[4] = random($min+1, $y[3]-2); } do {$y[5] = random($min+2,$max-2)} until ($y[5] != $y[4]); -if ($y[4] < $y[5]) { - do {$y[6] = random($min+1,$max-1)} until ($y[6] < $y[5]); # forces -} else { # +if ($y[4] < $y[5]) { + do {$y[6] = random($min+1,$max-1)} until ($y[6] < $y[5]); # forces +} else { # do {$y[6] = random($min+1,$max-1)} until ($y[6] > $y[5]); # V shape } @@ -123,7 +123,7 @@ $graph->lineTo($x[6],$y[6],'blue',3); # draw dots, compute domain and range; $op[0] = random(0,1); # 0 - closed, 1 - open $op[1] = random(0,1); -if ($x[1] == $x[2]) { +if ($x[1] == $x[2]) { $op[2] = 1 - $op[1]; } else { $op[2] = random(0,1); @@ -285,7 +285,7 @@ $const = List(Compute("($x[0],$x[1])")); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -293,27 +293,27 @@ BEGIN_TEXT $PAR $BCENTER \{ image(insertGraph($graph), width=>$gsize, height=>$gsize, tex_size=>500 ); \} -$ECENTER +$ECENTER $PAR Given the graph of \(f(x)\) above, find the following. In parts (a)-(e) write your answers using \{helpLink("interval", "interval notation")\}: $BR $PAR (a) Domain: \{ans_rule(20)\} $BR (b) Range: \{ans_rule(20)\} $BR -$PAR +$PAR In parts (c)-(e) do not include endpoints in the intervals. (People disagree on whether or not to call a function "strictly increasing" at an endpoint). In other words, pretend all your intervals are open.$BR (c) Set on which \(f(x)\) is strictly increasing: \{ans_rule(30)\} $BR (d) Set on which \(f(x)\) is strictly decreasing: \{ans_rule(30)\} $BR -(e) Set on which \(f(x)\) is constant: \{ans_rule(30)\} +(e) Set on which \(f(x)\) is constant: \{ans_rule(30)\} $PAR In parts (f),(g) list the \(y\)-coordinates (\(y=f(x)\)) of the local maxima and minima. Use commas to separate distinct values if there are more than one. Enter NONE if there are none. $PAR -(f) Local maxima: \{ans_rule(20)\} $BR +(f) Local maxima: \{ans_rule(20)\} $BR (g) Local minima: \{ans_rule(20)\} END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($domain)->cmp()); ANS(Compute($range)->cmp()); diff --git a/OpenProblemLibrary/Mizzou/Algebra/functions_increasing_decreasing/inc_dec_const_dom_range_05.pg b/OpenProblemLibrary/Mizzou/Algebra/functions_increasing_decreasing/inc_dec_const_dom_range_05.pg index 0751c6efc9..29890522d7 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/functions_increasing_decreasing/inc_dec_const_dom_range_05.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/functions_increasing_decreasing/inc_dec_const_dom_range_05.pg @@ -15,12 +15,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "PGcourse.pl" @@ -32,7 +32,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxx = 11; @@ -102,7 +102,7 @@ if ($x1 > -6) { } # graph everything -$flipx = 1; # random(0,1); # 0 - no flip, 1 - flip x, +$flipx = 1; # random(0,1); # 0 - no flip, 1 - flip x, $flipy = 0;#random(0,1); # 0 - no flip, 1 - flip y if ($flipx == 1) { @@ -283,7 +283,7 @@ if ($flipy == 0) { $range = Compute("[$y1,$y1]U($y4,$y3]"); } else { $range = Compute("[$y1,$y1]U[$y4,$y3]"); - } + } } if ($flipx == 0) { @@ -324,7 +324,7 @@ if ($flipx == 0) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -332,27 +332,27 @@ BEGIN_TEXT $PAR $BCENTER \{ image(insertGraph($graph), width=>$gsize, height=>$gsize, tex_size=>500 ); \} -$ECENTER +$ECENTER $PAR Given the graph of \(f(x)\) above, find the following. In parts (a)-(e) write your answers using \{helpLink("interval", "interval notation")\}: $BR $PAR (a) Domain: \{ans_rule(20)\} $BR (b) Range: \{ans_rule(20)\} $BR -$PAR +$PAR In parts (c)-(e) do not include endpoints in the intervals. (People disagree on whether or not to call a function "strictly increasing" at an endpoint). In other words, pretend all your intervals are open.$BR (c) Set on which \(f(x)\) is strictly increasing: \{ans_rule(30)\} $BR (d) Set on which \(f(x)\) is strictly decreasing: \{ans_rule(30)\} $BR -(e) Set on which \(f(x)\) is constant: \{ans_rule(30)\} +(e) Set on which \(f(x)\) is constant: \{ans_rule(30)\} $PAR In parts (f),(g) list the \(y\)-coordinates (\(y=f(x)\)) of the local maxima and minima. Use commas to separate distinct values if there are more than one. Enter NONE if there are none. $PAR -(f) Local maxima: \{ans_rule(20)\} $BR +(f) Local maxima: \{ans_rule(20)\} $BR (g) Local minima: \{ans_rule(20)\} END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($domain)->cmp()); ANS(Compute($range)->cmp()); diff --git a/OpenProblemLibrary/Mizzou/Algebra/functions_piecewise/determine_formula_from_graph_01.pg b/OpenProblemLibrary/Mizzou/Algebra/functions_piecewise/determine_formula_from_graph_01.pg index a150b094b1..6739030410 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/functions_piecewise/determine_formula_from_graph_01.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/functions_piecewise/determine_formula_from_graph_01.pg @@ -16,12 +16,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "contextFraction.pl", @@ -36,7 +36,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxx = 16; @@ -190,7 +190,7 @@ if ($b1num < 0) { $tmp3 = -$b1num; if ($b1den == 1) { $dispeq1 = ($dispeq1)."- $tmp3"; - } else { + } else { $dispeq1 = ($dispeq1)."- \frac{$tmp3}{$b1den}"; } } else { @@ -225,7 +225,7 @@ $dispeq2 & \quad & \mbox{for } x $ineq4ans $x2\\ ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -234,7 +234,7 @@ $PAR $BCENTER \{ image(insertGraph($graph), width=>$gsize, height=>$gsize, tex_size=>500 ); \} -$ECENTER +$ECENTER $PAR The graph of a piecewise function, \(f(x)\), is depicted above. Find its equation: @@ -250,7 +250,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($piece1)->cmp()); ANS($ineq1->cmp()); @@ -268,7 +268,7 @@ ANS(Compute("$x2")->cmp()); BEGIN_TEXT $PAR - ${BBOLD}Remarks:${EBOLD} Note that ${LQ}<=${RQ} stands for ${LQ}less than or equal${RQ} and ${LQ}>=${RQ} stands for ${LQ}greater than or equal.${RQ} You must have your browser window expanded wide enough to correctly display the above formula. \{AnswerFormatHelp("formulas","Click here for help entering formulas.") \} + ${BBOLD}Remarks:${EBOLD} Note that ${LQ}<=${RQ} stands for ${LQ}less than or equal${RQ} and ${LQ}>=${RQ} stands for ${LQ}greater than or equal.${RQ} You must have your browser window expanded wide enough to correctly display the above formula. \{helpLink("formulas","Click here for help entering formulas.") \} END_TEXT COMMENT(' diff --git a/OpenProblemLibrary/Mizzou/Algebra/functions_piecewise/determine_formula_from_graph_02.pg b/OpenProblemLibrary/Mizzou/Algebra/functions_piecewise/determine_formula_from_graph_02.pg index dbee6fbd38..83ab19bbdd 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/functions_piecewise/determine_formula_from_graph_02.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/functions_piecewise/determine_formula_from_graph_02.pg @@ -15,12 +15,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "contextFraction.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxx = 16; @@ -195,7 +195,7 @@ if ($b1num < 0) { $tmp3 = -$b1num; if ($b1den == 1) { $dispeq1 = ($dispeq1)."- $tmp3"; - } else { + } else { $dispeq1 = ($dispeq1)."- \frac{$tmp3}{$b1den}"; } } else { @@ -230,7 +230,7 @@ $dispeq2 & \quad & \mbox{for } x $ineq4ans $x3\\ ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -238,7 +238,7 @@ BEGIN_TEXT $PAR $BCENTER \{ image(insertGraph($graph), width=>$gsize, height=>$gsize, tex_size=>500 ); \} -$ECENTER +$ECENTER $PAR The graph of a piecewise function, \(f(x)\), is depicted above. Find its equation: @@ -254,7 +254,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($piece1)->cmp()); ANS($ineq1->cmp()); diff --git a/OpenProblemLibrary/Mizzou/Algebra/functions_piecewise/determine_formula_from_graph_03.pg b/OpenProblemLibrary/Mizzou/Algebra/functions_piecewise/determine_formula_from_graph_03.pg index 6130f3797c..d11ef71e93 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/functions_piecewise/determine_formula_from_graph_03.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/functions_piecewise/determine_formula_from_graph_03.pg @@ -15,12 +15,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "contextFraction.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxx = 16; @@ -189,7 +189,7 @@ if ($b1num < 0) { $tmp3 = -$b1num; if ($b1den == 1) { $dispeq1 = ($dispeq1)."- $tmp3"; - } else { + } else { $dispeq1 = ($dispeq1)."- \frac{$tmp3}{$b1den}"; } } else { @@ -224,7 +224,7 @@ $y32 & \quad & \mbox{for } x $ineq4ans $x3\\ ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -232,7 +232,7 @@ BEGIN_TEXT $PAR $BCENTER \{ image(insertGraph($graph), width=>$gsize, height=>$gsize, tex_size=>500 ); \} -$ECENTER +$ECENTER $PAR The graph of a piecewise function, \(f(x)\), is depicted above. Find its equation: @@ -248,7 +248,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($piece1)->cmp()); ANS($ineq1->cmp()); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_basics/determine_intercepts_graph_01.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_basics/determine_intercepts_graph_01.pg index a48806f85b..be83883112 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_basics/determine_intercepts_graph_01.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_basics/determine_intercepts_graph_01.pg @@ -29,7 +29,7 @@ loadMacros( "PGstandard.pl", "PGgraphmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -90,9 +90,9 @@ $BCENTER \{ image( insertGraph($gr), width=>350, height=>350, tex_size=>400, extra_html_tags=>'alt="Click to enlarge."' ) \} $ECENTER $PAR -\(x\)-intercept: \{ ans_rule(20) \} +\(x\)-intercept: \{ ans_rule(20) \} $PAR -\(y\)-intercept: \{ ans_rule(20) \} +\(y\)-intercept: \{ ans_rule(20) \} END_TEXT diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_basics/determine_intercepts_graph_02.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_basics/determine_intercepts_graph_02.pg index 51c0adde66..c74dac1746 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_basics/determine_intercepts_graph_02.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_basics/determine_intercepts_graph_02.pg @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "PGgraphmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -84,9 +84,9 @@ $BCENTER \{ image( insertGraph($gr), width=>350, height=>350, tex_size=>400, extra_html_tags=>'alt="Click to enlarge."' ) \} $ECENTER $PAR -\(x\)-intercept: \{ ans_rule(20) \} +\(x\)-intercept: \{ ans_rule(20) \} $PAR -\(y\)-intercept: \{ ans_rule(20) \} +\(y\)-intercept: \{ ans_rule(20) \} END_TEXT ################################### diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_basics/match_points_01.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_basics/match_points_01.pg index f0c7dfc855..0b3310c181 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_basics/match_points_01.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_basics/match_points_01.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "PGgraphmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "parserPopUp.pl", "PGcourse.pl" @@ -75,7 +75,7 @@ for ($i = 0; $i < 6; $i++) { if ($yVals[$j] == $yVals[$i]) { do {$yVals[$j] = random(-$gridSize+1,$gridSize-1,1)} while ($yVals[$j] == $yVals[$i]); } - } + } } } @letters = ("A","B","C","D","E"); @@ -83,18 +83,18 @@ for ($i = 0; $i < 5; $i++) { if ($xVals[$i] == 0 && $yVals[$i] == 0) { $pop[$i] = PopUp(["select", "QI", "QII", "QIII", "QIV", "x-axis", "y-axis", "origin"], "origin"); } elsif ($xVals[$i] == 0) { - $pop[$i] = PopUp(["select", "QI", "QII", "QIII", "QIV", "x-axis", "y-axis", "origin"], "y-axis"); + $pop[$i] = PopUp(["select", "QI", "QII", "QIII", "QIV", "x-axis", "y-axis", "origin"], "y-axis"); } elsif ($yVals[$i] == 0) { $pop[$i] = PopUp(["select", "QI", "QII", "QIII", "QIV", "x-axis", "y-axis", "origin"], "x-axis"); } elsif ($xVals[$i] > 0) { if ($yVals[$i] > 0) { - $pop[$i] = PopUp(["select", "QI", "QII", "QIII", "QIV", "x-axis", "y-axis", "origin"], "QI"); + $pop[$i] = PopUp(["select", "QI", "QII", "QIII", "QIV", "x-axis", "y-axis", "origin"], "QI"); } else { $pop[$i] = PopUp(["select", "QI", "QII", "QIII", "QIV", "x-axis", "y-axis", "origin"], "QIV"); } } elsif ($xVals[$i] < 0) { if ($yVals[$i] > 0) { - $pop[$i] = PopUp(["select", "QI", "QII", "QIII", "QIV", "x-axis", "y-axis", "origin"], "QII"); + $pop[$i] = PopUp(["select", "QI", "QII", "QIII", "QIV", "x-axis", "y-axis", "origin"], "QII"); } else { $pop[$i] = PopUp(["select", "QI", "QII", "QIII", "QIV", "x-axis", "y-axis", "origin"], "QIII"); } diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_exponential/determine_eqn_from_graph_01.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_exponential/determine_eqn_from_graph_01.pg index 532b3ddabd..7277efa354 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_exponential/determine_eqn_from_graph_01.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_exponential/determine_eqn_from_graph_01.pg @@ -12,12 +12,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "parserAssignment.pl", @@ -30,7 +30,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @bases = (2..10); @@ -187,24 +187,24 @@ $fig = image(insertGraph($graph), width=>$gsize, height=>$gsize, tex_size=>500 ) ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT Write an equation that represents the graph below by using transformations from \($dispeqn\). $PAR $BCENTER -\{ +\{ $fig \} -$ECENTER +$ECENTER $PAR Equation: \{ans_rule(25)\} END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($ans)->cmp()); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_01.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_01.pg index 0d09a26c54..23c2a2025b 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_01.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_01.pg @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "contextFraction.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @bases = (2..10); @@ -96,7 +96,7 @@ if ($choice != exp(1) && $choice != 1/exp(1)) { $num = $num*((1/$choice)**(-$a)); } else { $den = $den*(($choice)**(-$a)); - } + } } elsif ($trans[3] != 1 && $a > 0) {# neg exponent if ($choice < 1) { $num = $num*((1/$choice)**($a)); @@ -127,7 +127,7 @@ if ($choice != exp(1) && $choice != 1/exp(1)) { $num = $num*((1/$choice)**(-$a)); } else { $den = $den*(($choice)**(-$a)); - } + } } elsif ($trans[3] != 1 && $a > 0) {# neg exponent if ($choice < 1) { $num = $num*((1/$choice)**($a)); @@ -836,12 +836,12 @@ $ans = $possans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -852,7 +852,7 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR Let \(f\) be the exponential function defined by $PAR @@ -873,7 +873,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($asym->cmp()); ANS(Compute($range)->cmp()); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_02.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_02.pg index 11ceda26d3..b8659196d6 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_02.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_02.pg @@ -12,12 +12,12 @@ ## KEYWORDS('functions', 'exponential', 'graphs') ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "contextFraction.pl", @@ -32,7 +32,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @bases = (2..10); @@ -94,7 +94,7 @@ if ($choice != exp(1) && $choice != 1/exp(1)) { $num = $num*((1/$choice)**(-$a)); } else { $den = $den*(($choice)**(-$a)); - } + } } elsif ($trans[3] != 1 && $a > 0) {# neg exponent if ($choice < 1) { $num = $num*((1/$choice)**($a)); @@ -125,7 +125,7 @@ if ($choice != exp(1) && $choice != 1/exp(1)) { $num = $num*((1/$choice)**(-$a)); } else { $den = $den*(($choice)**(-$a)); - } + } } elsif ($trans[3] != 1 && $a > 0) {# neg exponent if ($choice < 1) { $num = $num*((1/$choice)**($a)); @@ -834,12 +834,12 @@ $ans = $possans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -850,7 +850,7 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR Let \(f\) be the exponential function defined by $PAR @@ -871,7 +871,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($asym->cmp()); ANS(Compute($range)->cmp()); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_03.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_03.pg index aed692ea11..fe03e3e33a 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_03.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_03.pg @@ -12,12 +12,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "contextFraction.pl", @@ -32,7 +32,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @bases = (2..10); @@ -94,7 +94,7 @@ if ($choice != exp(1) && $choice != 1/exp(1)) { $num = $num*((1/$choice)**(-$a)); } else { $den = $den*(($choice)**(-$a)); - } + } } elsif ($trans[3] != 1 && $a > 0) {# neg exponent if ($choice < 1) { $num = $num*((1/$choice)**($a)); @@ -126,7 +126,7 @@ if ($choice != exp(1) && $choice != 1/exp(1)) { $num = $num*((1/$choice)**(-$a)); } else { $den = $den*(($choice)**(-$a)); - } + } } elsif ($trans[3] != 1 && $a > 0) {# neg exponent if ($choice < 1) { $num = $num*((1/$choice)**($a)); @@ -838,12 +838,12 @@ $ans = $possans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -854,7 +854,7 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR Let \(f\) be the exponential function defined by $PAR @@ -875,7 +875,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($asym->cmp()); ANS(Compute($range)->cmp()); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_04.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_04.pg index 96cd99d722..097013a7d7 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_04.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_04.pg @@ -12,12 +12,12 @@ ## KEYWORDS('functions', 'exponential', 'graphs') ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "contextFraction.pl", @@ -32,7 +32,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @bases = (2..10); @@ -94,7 +94,7 @@ if ($choice != exp(1) && $choice != 1/exp(1)) { $num = $num*((1/$choice)**(-$a)); } else { $den = $den*(($choice)**(-$a)); - } + } } elsif ($trans[3] != 1 && $a > 0) {# neg exponent if ($choice < 1) { $num = $num*((1/$choice)**($a)); @@ -116,7 +116,7 @@ if ($choice != exp(1) && $choice != 1/exp(1)) { } # only other case is $a == 0, which is covered already $num = $num + $b*$den; $yintcoord = Fraction($num,$den); - + $dispyint = "\left(0,$yintcoord\right)"; } else { if ($trans[2] == 1) { @@ -127,7 +127,7 @@ if ($choice != exp(1) && $choice != 1/exp(1)) { $num = $num*((1/$choice)**(-$a)); } else { $den = $den*(($choice)**(-$a)); - } + } } elsif ($trans[3] != 1 && $a > 0) {# neg exponent if ($choice < 1) { $num = $num*((1/$choice)**($a)); @@ -839,12 +839,12 @@ $ans = $possans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -855,7 +855,7 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR Let \(f\) be the exponential function defined by $PAR @@ -876,7 +876,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($asym->cmp()); ANS(Compute($range)->cmp()); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_05.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_05.pg index 0e9ca3017e..ed7483923c 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_05.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_05.pg @@ -12,12 +12,12 @@ ## KEYWORDS('functions', 'exponential', 'graphs') ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "contextFraction.pl", @@ -32,7 +32,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @bases = (2..10); @@ -94,7 +94,7 @@ if ($choice != exp(1) && $choice != 1/exp(1)) { $num = $num*((1/$choice)**(-$a)); } else { $den = $den*(($choice)**(-$a)); - } + } } elsif ($trans[3] != 1 && $a > 0) {# neg exponent if ($choice < 1) { $num = $num*((1/$choice)**($a)); @@ -125,7 +125,7 @@ if ($choice != exp(1) && $choice != 1/exp(1)) { $num = $num*((1/$choice)**(-$a)); } else { $den = $den*(($choice)**(-$a)); - } + } } elsif ($trans[3] != 1 && $a > 0) {# neg exponent if ($choice < 1) { $num = $num*((1/$choice)**($a)); @@ -834,12 +834,12 @@ $ans = $possans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -850,7 +850,7 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR Let \(f\) be the exponential function defined by $PAR @@ -871,7 +871,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($asym->cmp()); ANS(Compute($range)->cmp()); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_06.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_06.pg index 1b5cbdde08..74181abe06 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_06.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_06.pg @@ -12,12 +12,12 @@ ## KEYWORDS('functions', 'exponential', 'graphs') ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "contextFraction.pl", @@ -32,7 +32,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @bases = (2..10); @@ -94,7 +94,7 @@ if ($choice != exp(1) && $choice != 1/exp(1)) { $num = $num*((1/$choice)**(-$a)); } else { $den = $den*(($choice)**(-$a)); - } + } } elsif ($trans[3] != 1 && $a > 0) {# neg exponent if ($choice < 1) { $num = $num*((1/$choice)**($a)); @@ -125,7 +125,7 @@ if ($choice != exp(1) && $choice != 1/exp(1)) { $num = $num*((1/$choice)**(-$a)); } else { $den = $den*(($choice)**(-$a)); - } + } } elsif ($trans[3] != 1 && $a > 0) {# neg exponent if ($choice < 1) { $num = $num*((1/$choice)**($a)); @@ -834,12 +834,12 @@ $ans = $possans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -850,7 +850,7 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR Let \(f\) be the exponential function defined by $PAR @@ -871,7 +871,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($asym->cmp()); ANS(Compute($range)->cmp()); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_07.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_07.pg index ccb1561b0f..28cfe2a7c0 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_07.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_07.pg @@ -12,12 +12,12 @@ ## KEYWORDS('functions', 'exponential', 'graphs') ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "contextFraction.pl", @@ -32,7 +32,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @bases = (2..10); @@ -94,7 +94,7 @@ if ($choice != exp(1) && $choice != 1/exp(1)) { $num = $num*((1/$choice)**(-$a)); } else { $den = $den*(($choice)**(-$a)); - } + } } elsif ($trans[3] != 1 && $a > 0) {# neg exponent if ($choice < 1) { $num = $num*((1/$choice)**($a)); @@ -126,7 +126,7 @@ if ($choice != exp(1) && $choice != 1/exp(1)) { $num = $num*((1/$choice)**(-$a)); } else { $den = $den*(($choice)**(-$a)); - } + } } elsif ($trans[3] != 1 && $a > 0) {# neg exponent if ($choice < 1) { $num = $num*((1/$choice)**($a)); @@ -838,12 +838,12 @@ $ans = $possans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -854,7 +854,7 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR Let \(f\) be the exponential function defined by $PAR @@ -875,7 +875,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($asym->cmp()); ANS(Compute($range)->cmp()); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_08.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_08.pg index e03cd7cc96..f2d0407b12 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_08.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_08.pg @@ -12,12 +12,12 @@ ## KEYWORDS('functions', 'exponential', 'graphs') ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "contextFraction.pl", @@ -32,7 +32,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @bases = (2..10); @@ -94,7 +94,7 @@ if ($choice != exp(1) && $choice != 1/exp(1)) { $num = $num*((1/$choice)**(-$a)); } else { $den = $den*(($choice)**(-$a)); - } + } } elsif ($trans[3] != 1 && $a > 0) {# neg exponent if ($choice < 1) { $num = $num*((1/$choice)**($a)); @@ -125,7 +125,7 @@ if ($choice != exp(1) && $choice != 1/exp(1)) { $num = $num*((1/$choice)**(-$a)); } else { $den = $den*(($choice)**(-$a)); - } + } } elsif ($trans[3] != 1 && $a > 0) {# neg exponent if ($choice < 1) { $num = $num*((1/$choice)**($a)); @@ -834,12 +834,12 @@ $ans = $possans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -850,7 +850,7 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR Let \(f\) be the exponential function defined by $PAR @@ -871,7 +871,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($asym->cmp()); ANS(Compute($range)->cmp()); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_10.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_10.pg index 1c39b0f06b..e1f34b95d5 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_10.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_10.pg @@ -12,12 +12,12 @@ ## KEYWORDS('functions', 'exponential', 'graphs') ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "contextFraction.pl", @@ -32,7 +32,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @bases = (2..10); @@ -94,7 +94,7 @@ if ($choice != exp(1) && $choice != 1/exp(1)) { $num = $num*((1/$choice)**(-$a)); } else { $den = $den*(($choice)**(-$a)); - } + } } elsif ($trans[3] != 1 && $a > 0) {# neg exponent if ($choice < 1) { $num = $num*((1/$choice)**($a)); @@ -125,7 +125,7 @@ if ($choice != exp(1) && $choice != 1/exp(1)) { $num = $num*((1/$choice)**(-$a)); } else { $den = $den*(($choice)**(-$a)); - } + } } elsif ($trans[3] != 1 && $a > 0) {# neg exponent if ($choice < 1) { $num = $num*((1/$choice)**($a)); @@ -834,12 +834,12 @@ $ans = $possans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -850,7 +850,7 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR Let \(f\) be the exponential function defined by $PAR @@ -871,7 +871,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($asym->cmp()); ANS(Compute($range)->cmp()); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_11.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_11.pg index 8442d003cd..b921456435 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_11.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_11.pg @@ -12,12 +12,12 @@ ## KEYWORDS('functions', 'exponential', 'graphs') ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "contextFraction.pl", @@ -32,7 +32,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @bases = (2..10); @@ -94,7 +94,7 @@ if ($choice != exp(1) && $choice != 1/exp(1)) { $num = $num*((1/$choice)**(-$a)); } else { $den = $den*(($choice)**(-$a)); - } + } } elsif ($trans[3] != 1 && $a > 0) {# neg exponent if ($choice < 1) { $num = $num*((1/$choice)**($a)); @@ -125,7 +125,7 @@ if ($choice != exp(1) && $choice != 1/exp(1)) { $num = $num*((1/$choice)**(-$a)); } else { $den = $den*(($choice)**(-$a)); - } + } } elsif ($trans[3] != 1 && $a > 0) {# neg exponent if ($choice < 1) { $num = $num*((1/$choice)**($a)); @@ -834,12 +834,12 @@ $ans = $possans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -850,7 +850,7 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR Let \(f\) be the exponential function defined by $PAR @@ -871,7 +871,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($asym->cmp()); ANS(Compute($range)->cmp()); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_12.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_12.pg index 98a94b25bd..15703ba6c0 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_12.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_12.pg @@ -12,12 +12,12 @@ ## KEYWORDS('functions', 'exponential', 'graphs') ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "contextFraction.pl", @@ -32,7 +32,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @bases = (2..10); @@ -95,7 +95,7 @@ if ($choice != exp(1) && $choice != 1/exp(1)) { $num = $num*((1/$choice)**(-$a)); } else { $den = $den*(($choice)**(-$a)); - } + } } elsif ($trans[3] != 1 && $a > 0) {# neg exponent if ($choice < 1) { $num = $num*((1/$choice)**($a)); @@ -126,7 +126,7 @@ if ($choice != exp(1) && $choice != 1/exp(1)) { $num = $num*((1/$choice)**(-$a)); } else { $den = $den*(($choice)**(-$a)); - } + } } elsif ($trans[3] != 1 && $a > 0) {# neg exponent if ($choice < 1) { $num = $num*((1/$choice)**($a)); @@ -835,12 +835,12 @@ $ans = $possans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -851,7 +851,7 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR Let \(f\) be the exponential function defined by $PAR @@ -872,7 +872,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($asym->cmp()); ANS(Compute($range)->cmp()); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_13.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_13.pg index 4a80343fa9..28290a1497 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_13.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_exponential/find_all_info_and_graph_13.pg @@ -12,12 +12,12 @@ ## KEYWORDS('functions', 'exponential', 'graphs') ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "contextFraction.pl", @@ -32,7 +32,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @bases = (2..10); @@ -95,7 +95,7 @@ if ($choice != exp(1) && $choice != 1/exp(1)) { $num = $num*((1/$choice)**(-$a)); } else { $den = $den*(($choice)**(-$a)); - } + } } elsif ($trans[3] != 1 && $a > 0) {# neg exponent if ($choice < 1) { $num = $num*((1/$choice)**($a)); @@ -117,7 +117,7 @@ if ($choice != exp(1) && $choice != 1/exp(1)) { } # only other case is $a == 0, which is covered already $num = $num + $b*$den; $yintcoord = Fraction($num,$den); - + $dispyint = "\left(0,$yintcoord\right)"; } else { if ($trans[2] == 1) { @@ -128,7 +128,7 @@ if ($choice != exp(1) && $choice != 1/exp(1)) { $num = $num*((1/$choice)**(-$a)); } else { $den = $den*(($choice)**(-$a)); - } + } } elsif ($trans[3] != 1 && $a > 0) {# neg exponent if ($choice < 1) { $num = $num*((1/$choice)**($a)); @@ -840,12 +840,12 @@ $ans = $possans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -856,7 +856,7 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR Let \(f\) be the exponential function defined by $PAR @@ -877,7 +877,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($asym->cmp()); ANS(Compute($range)->cmp()); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_linear/determine_eqn_from_graph_01.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_linear/determine_eqn_from_graph_01.pg index d38ae692ea..c607a8800e 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_linear/determine_eqn_from_graph_01.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_linear/determine_eqn_from_graph_01.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Plots a line through arbitrary points and asks the student the give the +# Plots a line through arbitrary points and asks the student the give the # equation of the line passing through these points. # The line is completely arbitrary. # ENDDESCRIPTION @@ -15,12 +15,12 @@ ## KEYWORDS('linear equation','equation','line') ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "contextFraction.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = random(6,10,1); @@ -91,7 +91,7 @@ $line = Compute("y = $yCoordOne")->reduce; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -100,15 +100,15 @@ Write an equation for the line shown. $PAR $BCENTER \{ image( insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>300 ) \} -$ECENTER +$ECENTER $PAR -Equation: \{ans_rule(20)\} +Equation: \{ans_rule(20)\} END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### $texAnswer = "\(y = $yCoordOne\)"; ANS($line->cmp(studentsMustReduceFractions => 1)); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_linear/determine_eqn_from_graph_02.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_linear/determine_eqn_from_graph_02.pg index b77097fae9..3b5f81a312 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_linear/determine_eqn_from_graph_02.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_linear/determine_eqn_from_graph_02.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Plots a line through arbitrary points and asks the student the give the +# Plots a line through arbitrary points and asks the student the give the # equation of the line passing through these points. # The line is always vertical. # ENDDESCRIPTION @@ -14,12 +14,12 @@ ## KEYWORDS('linear equation','equation','line') ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "contextFraction.pl", @@ -33,7 +33,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = random(6,10,1); @@ -86,11 +86,11 @@ $graph->stamps(closed_circle($xCoordTwo, $yCoordTwo, 'blue')); # compute the line, this will be used in answer check Context("Fraction-NoDecimals")->variables->are(x => 'Real', y => 'Real'); parser::Assignment->Allow; -$line = Compute("x = $xCoordOne")->reduce; +$line = Compute("x = $xCoordOne")->reduce; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -99,15 +99,15 @@ Write an equation for the line shown. $PAR $BCENTER \{ image( insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>300 ) \} -$ECENTER +$ECENTER $PAR -Equation: \{ans_rule(20)\} +Equation: \{ans_rule(20)\} END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### $texAnswer = "\(x = $xCoordOne\)"; ANS($line->cmp()); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_linear/determine_eqn_from_graph_03.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_linear/determine_eqn_from_graph_03.pg index 12a7442978..e4b615551d 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_linear/determine_eqn_from_graph_03.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_linear/determine_eqn_from_graph_03.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Plots a line through arbitrary points and asks the student the give the +# Plots a line through arbitrary points and asks the student the give the # equation of the line passing through these points. # The line is completely arbitrary. # ENDDESCRIPTION @@ -14,12 +14,12 @@ ## KEYWORDS('linear equation','equation','line') ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "contextFraction.pl", @@ -33,7 +33,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = random(6,10,1); @@ -135,7 +135,7 @@ $graph->stamps(closed_circle($xCoordTwo, $yCoordTwo, 'blue')); Context("Fraction-NoDecimals")->variables->are(x => 'Real', y => 'Real'); parser::Assignment->Allow; if ($vOrHLine == 1) { - $line = Formula("x = $xCoordOne")->reduce; + $line = Formula("x = $xCoordOne")->reduce; } else { $m = Compute("($yCoordOne - $yCoordTwo)/($xCoordOne - $xCoordTwo)"); $b = $yCoordOne - $m*$xCoordOne; @@ -144,7 +144,7 @@ if ($vOrHLine == 1) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -153,15 +153,15 @@ Write an equation for the line shown. Write your answer in the form \(y=mx+b\). $PAR $BCENTER \{ image( insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>300 ) \} -$ECENTER +$ECENTER $PAR -Equation: \{ans_rule(20)\} +Equation: \{ans_rule(20)\} END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### if ($vOrHLine == 0) { $texAnswer = "\(y = $yCoordOne\)"; @@ -171,18 +171,18 @@ if ($vOrHLine == 0) { ANS($line->cmp()); } else { $texAnswer = "\(y = $m x + $b\)"; - if ($m == 1) { + if ($m == 1) { if ($b == 0) { $texAnswer = "\( y = x \)"; } else { $texAnswer = "\( y = x + $b \)"; - } - } elsif ($m == -1) { + } + } elsif ($m == -1) { if ($b == 0) { $texAnswer = "\( y = -x \)"; } else { $texAnswer = "\( y = -x + $b \)"; - } + } } ANS($line->cmp(studentsMustReduceFractions => 1)); } diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_linear/determine_eqn_from_graph_04.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_linear/determine_eqn_from_graph_04.pg index 50855b5774..2a09cd90bd 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_linear/determine_eqn_from_graph_04.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_linear/determine_eqn_from_graph_04.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Plots a line through arbitrary points and asks the student the give the +# Plots a line through arbitrary points and asks the student the give the # equation of the line passing through these points. # The line is never horizontal nor vertical. # ENDDESCRIPTION @@ -14,12 +14,12 @@ ## KEYWORDS('linear equation','equation','line') ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "contextFraction.pl", @@ -33,7 +33,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = random(6,10,1); @@ -118,7 +118,7 @@ $line = Formula("y = $m x + $b")->reduce; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -127,29 +127,29 @@ Write an equation for the line shown. $PAR $BCENTER \{ image( insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>800 ) \} -$ECENTER +$ECENTER $PAR -Equation: \{ans_rule(20)\} +Equation: \{ans_rule(20)\} END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### $texAnswer = "\(y = $m x + $b\)"; -if ($m == 1) { +if ($m == 1) { if ($b == 0) { $texAnswer = "\( y = x \)"; } else { $texAnswer = "\( y = x + $b \)"; - } -} elsif ($m == -1) { + } +} elsif ($m == -1) { if ($b == 0) { $texAnswer = "\( y = -x \)"; } else { $texAnswer = "\( y = -x + $b \)"; - } + } } ANS($line->cmp(studentsMustReduceFractions => 1)); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_linear/determine_slope_from_graph_01.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_linear/determine_slope_from_graph_01.pg index 501df091fb..a6fd1fdceb 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_linear/determine_slope_from_graph_01.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_linear/determine_slope_from_graph_01.pg @@ -13,12 +13,12 @@ ## KEYWORDS('slope','line') ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "contextFraction.pl", @@ -31,7 +31,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = random(6,10,1); @@ -143,7 +143,7 @@ if ($vOrHLine == 1) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -152,15 +152,15 @@ Find the slope of the line if it exists or write ${BBOLD}undefined${EBOLD} if th $PAR $BCENTER \{ image( insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>300 ) \} -$ECENTER +$ECENTER $PAR -\(m = \) \{ans_rule(20)\} +\(m = \) \{ans_rule(20)\} END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### if ($vOrHLine == 1) { $texAnswer = "The slope is undefined."; diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_linear/determine_slope_from_graph_02.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_linear/determine_slope_from_graph_02.pg index a3029cea2b..eb913242dd 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_linear/determine_slope_from_graph_02.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_linear/determine_slope_from_graph_02.pg @@ -13,12 +13,12 @@ ## KEYWORDS('slope','line') ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "contextFraction.pl", @@ -31,7 +31,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = random(6,10,1); @@ -89,7 +89,7 @@ $m = Compute("0"); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -98,15 +98,15 @@ Find the slope of the line if it exists or write ${BBOLD}undefined${EBOLD} if th $PAR $BCENTER \{ image( insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>300 ) \} -$ECENTER +$ECENTER $PAR -\(m = \) \{ans_rule(20)\} +\(m = \) \{ans_rule(20)\} END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### $texAnswer = "\(m = $m\)"; ANS($m->cmp(studentsMustReduceFractions => 1)); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_linear/determine_slope_from_graph_03.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_linear/determine_slope_from_graph_03.pg index fb08061b05..70d4f2f6c7 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_linear/determine_slope_from_graph_03.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_linear/determine_slope_from_graph_03.pg @@ -13,12 +13,12 @@ ## KEYWORDS('slope','line') ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "contextFraction.pl", @@ -31,7 +31,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = random(6,10,1); @@ -89,7 +89,7 @@ $m = String("undefined"); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -98,15 +98,15 @@ Find the slope of the line if it exists or write ${BBOLD}undefined${EBOLD} if th $PAR $BCENTER \{ image( insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>300 ) \} -$ECENTER +$ECENTER $PAR -\(m = \) \{ans_rule(20)\} +\(m = \) \{ans_rule(20)\} END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### $texAnswer = "The slope is undefined."; ANS($m->cmp($studentsMustReduceFractions => 1)); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_linear/determine_slope_from_graph_05.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_linear/determine_slope_from_graph_05.pg index 081d97af5f..66e97f7f1e 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_linear/determine_slope_from_graph_05.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_linear/determine_slope_from_graph_05.pg @@ -13,12 +13,12 @@ ## KEYWORDS('slope','line') ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "contextFraction.pl", @@ -31,7 +31,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = random(6,10,1); @@ -116,14 +116,14 @@ $pm = Compute("-$den/$num")->reduce; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $PAR $BCENTER \{ image( insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>300 ) \} -$ECENTER +$ECENTER $PAR Determine the slope of the lines that are parallel and perpendicular to the line given in the graph above. $PAR @@ -133,7 +133,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### $texAnswer = "a parallel line has slope \(m = $m\), and a perpendicular line has slope \(m = $pm\)"; ANS($m->cmp(studentsMustReduceFractions => 1)); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_01.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_01.pg index 296bf6373c..0af8e35b11 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_01.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_01.pg @@ -12,12 +12,12 @@ ## KEYWORDS('functions', 'exponential', 'graphs') ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "contextFraction.pl", @@ -32,7 +32,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @bases = (2..10); @@ -604,12 +604,12 @@ $ans = $possans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -620,7 +620,7 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR Let \(f\) be the exponential function defined by $PAR @@ -639,7 +639,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($asym->cmp()); ANS(Compute($domain)->cmp()); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_02.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_02.pg index dba2b8fcac..53e26d7444 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_02.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_02.pg @@ -13,12 +13,12 @@ ## KEYWORDS('functions', 'exponential', 'graphs') ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "contextFraction.pl", @@ -33,7 +33,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @bases = (2..10); @@ -605,12 +605,12 @@ $ans = $possans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -621,7 +621,7 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR Let \(f\) be the exponential function defined by $PAR @@ -640,7 +640,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($asym->cmp()); ANS(Compute($domain)->cmp()); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_03.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_03.pg index 7531927a11..73685226d9 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_03.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_03.pg @@ -12,12 +12,12 @@ ## KEYWORDS('functions', 'exponential', 'graphs') ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "contextFraction.pl", @@ -32,7 +32,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @bases = (2..10); @@ -604,12 +604,12 @@ $ans = $possans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -620,7 +620,7 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR Let \(f\) be the logarithmic function defined by $PAR @@ -639,7 +639,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($asym->cmp()); ANS(Compute($domain)->cmp()); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_04.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_04.pg index e5c6c42b40..e08188a223 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_04.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_04.pg @@ -12,12 +12,12 @@ ## KEYWORDS('functions', 'exponential', 'graphs') ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "contextFraction.pl", @@ -32,7 +32,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @bases = (2..10); @@ -604,12 +604,12 @@ $ans = $possans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -620,7 +620,7 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR Let \(f\) be the logarithmic function defined by $PAR @@ -639,7 +639,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($asym->cmp()); ANS(Compute($domain)->cmp()); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_05.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_05.pg index 8a7fa3d699..cbbf91a53a 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_05.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_05.pg @@ -12,12 +12,12 @@ ## KEYWORDS('functions', 'exponential', 'graphs') ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "contextFraction.pl", @@ -32,7 +32,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @bases = (2..10); @@ -604,12 +604,12 @@ $ans = $possans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -620,7 +620,7 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR Let \(f\) be the exponential function defined by $PAR @@ -639,7 +639,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($asym->cmp()); ANS(Compute($domain)->cmp()); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_06.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_06.pg index 0ef2f62b6d..dd74f61afd 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_06.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_06.pg @@ -12,12 +12,12 @@ ## KEYWORDS('functions', 'exponential', 'graphs') ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "contextFraction.pl", @@ -32,7 +32,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @bases = (2..10); @@ -604,12 +604,12 @@ $ans = $possans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -620,7 +620,7 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR Let \(f\) be the exponential function defined by $PAR @@ -639,7 +639,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($asym->cmp()); ANS(Compute($domain)->cmp()); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_07.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_07.pg index 1c515b3da5..684c47687c 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_07.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_07.pg @@ -11,12 +11,12 @@ ## KEYWORDS('functions', 'exponential', 'graphs') ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "contextFraction.pl", @@ -31,7 +31,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @bases = (2..10); @@ -603,12 +603,12 @@ $ans = $possans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -619,7 +619,7 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR Let \(f\) be the logarithmic function defined by $PAR @@ -638,7 +638,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($asym->cmp()); ANS(Compute($domain)->cmp()); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_08.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_08.pg index 7ee9bde592..ee6af13043 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_08.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_08.pg @@ -12,12 +12,12 @@ ## KEYWORDS('functions', 'exponential', 'graphs') ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "contextFraction.pl", @@ -32,7 +32,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @bases = (2..10); @@ -604,12 +604,12 @@ $ans = $possans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -620,7 +620,7 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR Let \(f\) be the logarithmic function defined by $PAR @@ -639,7 +639,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($asym->cmp()); ANS(Compute($domain)->cmp()); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_09.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_09.pg index f097476383..3ec7fccd80 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_09.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_09.pg @@ -12,12 +12,12 @@ ## KEYWORDS('functions', 'exponential', 'graphs') ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "contextFraction.pl", @@ -32,7 +32,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @bases = (2..10); @@ -604,12 +604,12 @@ $ans = $possans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -620,7 +620,7 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR Let \(f\) be the logarithmic function defined by $PAR @@ -639,7 +639,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($asym->cmp()); ANS(Compute($domain)->cmp()); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_10.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_10.pg index 0158116d83..df231c5479 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_10.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_10.pg @@ -12,12 +12,12 @@ ## KEYWORDS('functions', 'exponential', 'graphs') ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "contextFraction.pl", @@ -32,7 +32,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @bases = (2..10); @@ -604,12 +604,12 @@ $ans = $possans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -620,7 +620,7 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR Let \(f\) be the logarithmic function defined by $PAR @@ -639,7 +639,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($asym->cmp()); ANS(Compute($domain)->cmp()); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_11.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_11.pg index 52f51d6e37..0c1890497b 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_11.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_11.pg @@ -12,12 +12,12 @@ ## KEYWORDS('functions', 'exponential', 'graphs') ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "contextFraction.pl", @@ -32,7 +32,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @bases = (2..10); @@ -604,12 +604,12 @@ $ans = $possans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -620,7 +620,7 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR Let \(f\) be the exponential function defined by $PAR @@ -639,7 +639,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($asym->cmp()); ANS(Compute($domain)->cmp()); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_12.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_12.pg index 3e80e05b20..bf9f549998 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_12.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_12.pg @@ -12,12 +12,12 @@ ## KEYWORDS('functions', 'exponential', 'graphs') ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "contextFraction.pl", @@ -32,7 +32,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @bases = (2..10); @@ -605,12 +605,12 @@ $ans = $possans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -621,7 +621,7 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR Let \(f\) be the logarithmic function defined by $PAR @@ -640,7 +640,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($asym->cmp()); ANS(Compute($domain)->cmp()); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_13.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_13.pg index 699f5009d6..32a5b2f1f2 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_13.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_logarithmic/find_all_info_and_graph_13.pg @@ -12,12 +12,12 @@ ## KEYWORDS('functions', 'exponential', 'graphs') ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "contextFraction.pl", @@ -32,7 +32,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @bases = (2..10); @@ -605,12 +605,12 @@ $ans = $possans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -621,7 +621,7 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR Let \(f\) be the logarithmic function defined by $PAR @@ -640,7 +640,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($asym->cmp()); ANS(Compute($domain)->cmp()); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_quadratic/determine_eqn_from_graph_02.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_quadratic/determine_eqn_from_graph_02.pg index 88e1dc35d9..4bbc6c3c27 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_quadratic/determine_eqn_from_graph_02.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_quadratic/determine_eqn_from_graph_02.pg @@ -13,12 +13,12 @@ ## KEYWORDS('functions', 'quadratic', 'graphs') ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "contextFraction.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @@ -90,7 +90,7 @@ $eqn = Formula("y = (x - $h)**2 + $k")->reduce; $dispeqn = "y = (x - $h)^2+$k"; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -98,7 +98,7 @@ BEGIN_TEXT $PAR $BCENTER \{ image(insertGraph($graph), width=>$gsize, height=>$gsize, tex_size=>500 ); \} -$ECENTER +$ECENTER $PAR Determine the equation of the quadratic function graphed above. Write your answer in standard form. @@ -108,10 +108,10 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($eqn)->cmp()); - + COMMENT('opens up'); ENDDOCUMENT(); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_quadratic/determine_eqn_from_graph_03.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_quadratic/determine_eqn_from_graph_03.pg index b7b7660fe9..be5713a062 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_quadratic/determine_eqn_from_graph_03.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_quadratic/determine_eqn_from_graph_03.pg @@ -13,12 +13,12 @@ ## KEYWORDS('functions', 'quadratic', 'graphs') ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "contextFraction.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @@ -96,7 +96,7 @@ if ($a < 0) { $dispeqn = ($dispeqn)."(x - $h)^2+$k"; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -104,7 +104,7 @@ BEGIN_TEXT $PAR $BCENTER \{ image(insertGraph($graph), width=>$gsize, height=>$gsize, tex_size=>500 ); \} -$ECENTER +$ECENTER $PAR Determine the equation of the quadratic function graphed above. Write your answer in standard form. @@ -114,7 +114,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($eqn)->cmp()); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_rational/find_all_info_and_graph_01.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_rational/find_all_info_and_graph_01.pg index a20a59b6d6..64923ceee5 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_rational/find_all_info_and_graph_01.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_rational/find_all_info_and_graph_01.pg @@ -13,12 +13,12 @@ ## KEYWORDS('functions', 'rational', 'graphs') ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "parserImplicitPlane.pl", @@ -32,7 +32,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $lead = random(-1,1,2); @@ -231,12 +231,12 @@ $letterans = $possletterans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1], $figs[2]]). TableSpace(5,0). @@ -251,10 +251,10 @@ BeginTable(). AlignedRow(["D", "E"]). EndTable(); \} -$ECENTER +$ECENTER $PAR -Determine the following information given that +Determine the following information given that $PAR \[$dispfun\] $PAR @@ -276,7 +276,7 @@ Context()->normalStrings; ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($hori)->cmp()); ANS(List(String("none"))->cmp()); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_rational/find_all_info_and_graph_02.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_rational/find_all_info_and_graph_02.pg index 44636df277..354efadbdd 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_rational/find_all_info_and_graph_02.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_rational/find_all_info_and_graph_02.pg @@ -12,12 +12,12 @@ ## KEYWORDS('functions', 'rational', 'graphs') ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "parserImplicitPlane.pl", @@ -31,7 +31,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $lead = random(-1,1,2); @@ -229,12 +229,12 @@ $letterans = $possletterans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1], $figs[2]]). TableSpace(5,0). @@ -249,10 +249,10 @@ BeginTable(). AlignedRow(["D", "E"]). EndTable(); \} -$ECENTER +$ECENTER $PAR -Determine the following information given that +Determine the following information given that $PAR \[$dispfun\] $PAR @@ -273,7 +273,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($hori)->cmp()); ANS(List(String("none"))->cmp()); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_rational/find_all_info_and_graph_03.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_rational/find_all_info_and_graph_03.pg index 0dab2ad730..6d9d594498 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_rational/find_all_info_and_graph_03.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_rational/find_all_info_and_graph_03.pg @@ -12,12 +12,12 @@ ## KEYWORDS('functions', 'rational', 'graphs') ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "parserImplicitPlane.pl", @@ -31,7 +31,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $a = non_zero_random(-5,5); @@ -225,12 +225,12 @@ $letterans = $possletterans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1], $figs[2]]). TableSpace(5,0). @@ -245,10 +245,10 @@ BeginTable(). AlignedRow(["D", "E"]). EndTable(); \} -$ECENTER +$ECENTER $PAR -Determine the following information given that +Determine the following information given that $PAR \[$dispfun\] $PAR @@ -269,7 +269,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($hori)->cmp()); ANS(List(String("none"))->cmp()); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_rational/find_all_info_and_graph_04.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_rational/find_all_info_and_graph_04.pg index 995b62ae81..e114cb50da 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_rational/find_all_info_and_graph_04.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_rational/find_all_info_and_graph_04.pg @@ -12,12 +12,12 @@ ## KEYWORDS('functions', 'rational', 'graphs') ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "parserImplicitPlane.pl", @@ -31,7 +31,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $a = non_zero_random(-5,5); @@ -215,12 +215,12 @@ $letterans = $possletterans[$pos[0]]; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -235,10 +235,10 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR -Determine the following information given that +Determine the following information given that $PAR \[$dispfun\] $PAR @@ -259,7 +259,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($hori)->cmp()); ANS(List(String("none"))->cmp()); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift.pg index 75068749d3..3ae75926ee 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of an abs value function and asks for the +# Gives the graph of an abs value function and asks for the # correct equation which has this graph. # The graph always has horizontal shift. # The graph has nothing else. @@ -16,12 +16,12 @@ ## KEYWORDS('graph transformations','transformations of functions','abs') ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "parserAssignment.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -77,7 +77,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -176,7 +176,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -185,7 +185,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>250 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -193,7 +193,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vrefl.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vrefl.pg index 84f98ff80e..345221f24b 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vrefl.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vrefl.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of an abs value function and asks for the +# Gives the graph of an abs value function and asks for the # correct equation which has this graph. # The graph always has horizontal shift and vert refl. # The graph has nothing else. @@ -16,12 +16,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "parserAssignment.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -77,7 +77,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -175,7 +175,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -184,7 +184,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -192,7 +192,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vrefl_vshr.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vrefl_vshr.pg index 6b99fbbce2..d3c440c8a3 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vrefl_vshr.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vrefl_vshr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of an abs value function and asks for the +# Gives the graph of an abs value function and asks for the # correct equation which has this graph. # The graph always has horizontal shift, vert refl, vert shr. # The graph has nothing else. @@ -16,12 +16,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "parserAssignment.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -77,7 +77,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -175,7 +175,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -184,7 +184,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -192,13 +192,13 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); -COMMENT('Desc: Find formula of the function that is graphed in blue. -$BR Function Type: abs value +COMMENT('Desc: Find formula of the function that is graphed in blue. +$BR Function Type: abs value $BR Transformations: horiz shift, vert refl, vert shr'); ENDDOCUMENT(); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vrefl_vstr.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vrefl_vstr.pg index ec62ba93bf..b9a94e254c 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vrefl_vstr.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vrefl_vstr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of an abs value function and asks for the +# Gives the graph of an abs value function and asks for the # correct equation which has this graph. # The graph always has horizontal shift, vert refl, vert str. # The graph has nothing else. @@ -16,12 +16,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "parserAssignment.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -77,7 +77,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -178,7 +178,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -187,7 +187,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>250 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -195,14 +195,14 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); -COMMENT('Desc: Find formula of the function that is graphed in blue. -$BR Function Type: abs value +COMMENT('Desc: Find formula of the function that is graphed in blue. +$BR Function Type: abs value $BR Transformations: horiz shift, vert reflect, vert str'); ENDDOCUMENT(); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vshift.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vshift.pg index 40caeadfe8..266635cdb5 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vshift.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vshift.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of an abs value function and asks for the +# Gives the graph of an abs value function and asks for the # correct equation which has this graph. # The graph always has horizontal shift and vert shift. # The graph has nothing else. @@ -16,12 +16,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "parserAssignment.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -77,7 +77,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -175,7 +175,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -184,7 +184,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -192,13 +192,13 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); -COMMENT('Desc: Find formula of the function that is graphed in blue. -$BR Function Type: abs value +COMMENT('Desc: Find formula of the function that is graphed in blue. +$BR Function Type: abs value $BR Transformations: horiz shift, vert shift'); ENDDOCUMENT(); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vshift_vrefl.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vshift_vrefl.pg index 8a9a90bf4f..a8ef2a7ff2 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vshift_vrefl.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vshift_vrefl.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of an abs value function and asks for the +# Gives the graph of an abs value function and asks for the # correct equation which has this graph. # The graph always has horizontal shift, vert shift, vert refl. # The graph has nothing else. @@ -17,12 +17,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "parserAssignment.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -78,7 +78,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -176,7 +176,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -185,7 +185,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -193,13 +193,13 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); -COMMENT('Desc: Find formula of the function that is graphed in blue. -$BR Function Type: abs value +COMMENT('Desc: Find formula of the function that is graphed in blue. +$BR Function Type: abs value $BR Transformations: horiz shift, vshift, vrefl'); ENDDOCUMENT(); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vshift_vrefl_vshr.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vshift_vrefl_vshr.pg index 0e7373c843..1d0952b3dc 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vshift_vrefl_vshr.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vshift_vrefl_vshr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of an abs value function and asks for the +# Gives the graph of an abs value function and asks for the # correct equation which has this graph. # The graph always has horizontal shift, vert shift, vert refl, vert shr. # The graph has nothing else. @@ -16,12 +16,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "parserAssignment.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -77,7 +77,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -175,7 +175,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -184,7 +184,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -192,12 +192,12 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); -COMMENT('Desc: Find formula of the function that is graphed in blue. -$BR Function Type: abs value +COMMENT('Desc: Find formula of the function that is graphed in blue. +$BR Function Type: abs value $BR Transformations: horiz shift, vert shift, vert refl, vert shr'); ENDDOCUMENT(); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vshift_vrefl_vstr.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vshift_vrefl_vstr.pg index f9c65478a4..ab47aba989 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vshift_vrefl_vstr.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vshift_vrefl_vstr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of an abs value function and asks for the +# Gives the graph of an abs value function and asks for the # correct equation which has this graph. # The graph always has horizontal shift, vert shift, vert refl, vert str. # The graph has nothing else. @@ -16,12 +16,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "parserAssignment.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -77,7 +77,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -175,7 +175,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -184,7 +184,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>250 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -192,14 +192,14 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); -COMMENT('Desc: Find formula of the function that is graphed in blue. -$BR Function Type: abs value +COMMENT('Desc: Find formula of the function that is graphed in blue. +$BR Function Type: abs value $BR Transformations: horiz shift, vert shift, vert refl, vert str'); ENDDOCUMENT(); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vshift_vshr.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vshift_vshr.pg index e4dd9cc47b..a02e9848aa 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vshift_vshr.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vshift_vshr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of an abs value function and asks for the +# Gives the graph of an abs value function and asks for the # correct equation which has this graph. # The graph always has horizontal shift, vert shift, vert shr. # The graph has nothing else. @@ -16,12 +16,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "parserAssignment.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -77,7 +77,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -174,7 +174,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -183,7 +183,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -191,14 +191,14 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); -COMMENT('Desc: Find formula of the function that is graphed in blue. -$BR Function Type: abs value +COMMENT('Desc: Find formula of the function that is graphed in blue. +$BR Function Type: abs value $BR Transformations: horiz shift, vert shift, vert shr'); ENDDOCUMENT(); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vshift_vstr.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vshift_vstr.pg index ead5651975..f5b9b8e918 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vshift_vstr.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vshift_vstr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of an abs value function and asks for the +# Gives the graph of an abs value function and asks for the # correct equation which has this graph. # The graph always has horizontal shift, vert shift, vert str. # The graph has nothing else. @@ -16,12 +16,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "parserAssignment.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -77,7 +77,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -175,7 +175,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -184,7 +184,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>250 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -192,13 +192,13 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); -COMMENT('Desc: Find formula of the function that is graphed in blue. -$BR Function Type: abs value +COMMENT('Desc: Find formula of the function that is graphed in blue. +$BR Function Type: abs value $BR Transformations: horiz shift, vert shift, vert str'); ENDDOCUMENT(); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vshr.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vshr.pg index 44dc8204b1..75a8e5c999 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vshr.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vshr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of an abs value function and asks for the +# Gives the graph of an abs value function and asks for the # correct equation which has this graph. # The graph always has horizontal shift and vert shr. # The graph has nothing else. @@ -16,12 +16,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "parserAssignment.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -77,7 +77,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -175,7 +175,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -184,7 +184,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -192,14 +192,14 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); -COMMENT('Desc: Find formula of the function that is graphed in blue. -$BR Function Type: abs value +COMMENT('Desc: Find formula of the function that is graphed in blue. +$BR Function Type: abs value $BR Transformations: horiz shift, vert shr'); ENDDOCUMENT(); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vstr.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vstr.pg index ea6df5aabc..adb57cacd1 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vstr.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_abs_val_hshift_vstr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of an abs value function and asks for the +# Gives the graph of an abs value function and asks for the # correct equation which has this graph. # The graph always has horizontal shift and vert str. # The graph has nothing else. @@ -16,12 +16,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "parserAssignment.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -77,7 +77,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -175,7 +175,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -184,7 +184,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -192,11 +192,11 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); -COMMENT('Desc: Find formula of the function that is graphed in blue. -$BR Function Type: abs value +COMMENT('Desc: Find formula of the function that is graphed in blue. +$BR Function Type: abs value $BR Transformations: horiz shift, vert str'); ENDDOCUMENT(); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift.pg index 10f3b3cf41..f3192da568 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed cubic function and asks for the +# Gives the graph of a transformed cubic function and asks for the # correct equation which has this graph. # The graph always has horizontal shift. # The graph has nothing else. @@ -15,12 +15,12 @@ ## KEYWORDS('graph transformations','transformations of functions','cubic') ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "parserAssignment.pl", @@ -33,7 +33,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -76,7 +76,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -176,7 +176,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -185,7 +185,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -193,13 +193,13 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); -COMMENT('Desc: Find formula of the function that is graphed in blue. +COMMENT('Desc: Find formula of the function that is graphed in blue. $BR Function Type: cubic $BR Transformations: horiz shift'); ENDDOCUMENT(); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vrefl.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vrefl.pg index 8915bf0cf9..6a540103dd 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vrefl.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vrefl.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed cubic function and asks for the +# Gives the graph of a transformed cubic function and asks for the # correct equation which has this graph. # The graph always has horizontal shift and vert refl. # The graph has nothing else. @@ -16,12 +16,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "parserAssignment.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -77,7 +77,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -177,7 +177,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -186,7 +186,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>250 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -194,13 +194,13 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); -COMMENT('Desc: Find formula of the function that is graphed in blue. +COMMENT('Desc: Find formula of the function that is graphed in blue. $BR Function Type: cubic $BR Transformations: horiz shift, vert refl'); ENDDOCUMENT(); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vrefl_vshr.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vrefl_vshr.pg index c4bb5f8c6f..413a0c3192 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vrefl_vshr.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vrefl_vshr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed cubic function and asks for the +# Gives the graph of a transformed cubic function and asks for the # correct equation which has this graph. # The graph always has horizontal shift, vert refl, vert shr. # The graph has nothing else. @@ -16,12 +16,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "parserAssignment.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -77,7 +77,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -177,7 +177,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -186,7 +186,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -194,14 +194,14 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); -COMMENT('Desc: Find formula of the function that is graphed in blue. +COMMENT('Desc: Find formula of the function that is graphed in blue. $BR Function Type: cubic $BR Transformations: horiz shift, vert refl, vert shr'); ENDDOCUMENT(); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vrefl_vstr.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vrefl_vstr.pg index c9fdd2ddc0..4a7a9d0d29 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vrefl_vstr.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vrefl_vstr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed cubic function and asks for the +# Gives the graph of a transformed cubic function and asks for the # correct equation which has this graph. # The graph always has horizontal shift, vert refl, vert str. # The graph has nothing else. @@ -16,12 +16,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "parserAssignment.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -77,7 +77,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -177,7 +177,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -186,7 +186,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>250 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -194,14 +194,14 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); -COMMENT('Desc: Find formula of the function that is graphed in blue. +COMMENT('Desc: Find formula of the function that is graphed in blue. $BR Function Type: cubic $BR Transformations: horiz shift, vert refl, vert str'); ENDDOCUMENT(); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vshift.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vshift.pg index 63cd1847e8..52ce228411 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vshift.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vshift.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed cubic function and asks for the +# Gives the graph of a transformed cubic function and asks for the # correct equation which has this graph. # The graph always has horizontal shift and vert shift. # The graph has nothing else. @@ -16,12 +16,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "parserAssignment.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -77,7 +77,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -177,7 +177,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -186,7 +186,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>250 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -194,14 +194,14 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); -COMMENT('Desc: Find formula of the function that is graphed in blue. +COMMENT('Desc: Find formula of the function that is graphed in blue. $BR Function Type: cubic $BR Transformations: horiz shift, vert shift'); ENDDOCUMENT(); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vshift_vrefl.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vshift_vrefl.pg index d0c2169fd4..d0a73181c9 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vshift_vrefl.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vshift_vrefl.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed cubic function and asks for the +# Gives the graph of a transformed cubic function and asks for the # correct equation which has this graph. # The graph always has horizontal shift, vert shift, vert refl. # The graph has nothing else. @@ -16,12 +16,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "parserAssignment.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -77,7 +77,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -177,7 +177,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -186,7 +186,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -194,14 +194,14 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); -COMMENT('Desc: Find formula of the function that is graphed in blue. +COMMENT('Desc: Find formula of the function that is graphed in blue. $BR Function Type: cubic $BR Transformations: horiz shift, vert shift, vert refl'); ENDDOCUMENT(); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vshift_vrefl_vshr.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vshift_vrefl_vshr.pg index f6a97565d2..ab84314afd 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vshift_vrefl_vshr.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vshift_vrefl_vshr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed cubic function and asks for the +# Gives the graph of a transformed cubic function and asks for the # correct equation which has this graph. # The graph always has horizontal shift, vert shift, refl, vert shr. # The graph has nothing else. @@ -16,12 +16,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "parserAssignment.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -77,7 +77,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -177,7 +177,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -186,7 +186,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -194,14 +194,14 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); -COMMENT('Desc: Find formula of the function that is graphed in blue. +COMMENT('Desc: Find formula of the function that is graphed in blue. $BR Function Type: cubic $BR Transformations: horiz shift, vert shift, vert refl, vert shr'); ENDDOCUMENT(); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vshift_vrefl_vstr.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vshift_vrefl_vstr.pg index 983bf93477..cbb8b78bfd 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vshift_vrefl_vstr.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vshift_vrefl_vstr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed cubic function and asks for the +# Gives the graph of a transformed cubic function and asks for the # correct equation which has this graph. # The graph always has horizontal shift, vert shift, vert refl, vert str. # The graph has nothing else. @@ -16,12 +16,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "parserAssignment.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -77,7 +77,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -177,7 +177,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -186,7 +186,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -194,13 +194,13 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); -COMMENT('Desc: Find formula of the function that is graphed in blue. +COMMENT('Desc: Find formula of the function that is graphed in blue. $BR Function Type: cubic $BR Transformations: horiz shift, vert shift, vert refl, vert str'); ENDDOCUMENT(); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vshift_vshr.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vshift_vshr.pg index 01bee7ec75..d774810f1f 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vshift_vshr.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vshift_vshr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed cubic function and asks for the +# Gives the graph of a transformed cubic function and asks for the # correct equation which has this graph. # The graph always has horizontal shift, vert shift, vert shr. # The graph has nothing else. @@ -16,12 +16,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "parserAssignment.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -77,7 +77,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -177,7 +177,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -186,7 +186,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -194,13 +194,13 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); -COMMENT('Desc: Find formula of the function that is graphed in blue. +COMMENT('Desc: Find formula of the function that is graphed in blue. $BR Function Type: cubic $BR Transformations: horiz shift, vert shift, vert shr'); ENDDOCUMENT(); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vshift_vstr.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vshift_vstr.pg index d15c71bc40..97a340d8bd 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vshift_vstr.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vshift_vstr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed cubic function and asks for the +# Gives the graph of a transformed cubic function and asks for the # correct equation which has this graph. # The graph always has horizontal shift, vert shift, vert str. # The graph has nothing else. @@ -16,12 +16,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "parserAssignment.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -77,7 +77,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -177,7 +177,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -186,7 +186,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -194,14 +194,14 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); -COMMENT('Desc: Find formula of the function that is graphed in blue. +COMMENT('Desc: Find formula of the function that is graphed in blue. $BR Function Type: cubic $BR Transformations: horiz shift, vert shift, vert str'); ENDDOCUMENT(); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vshr.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vshr.pg index bccec62272..efbe629bfd 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vshr.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vshr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed cubic function and asks for the +# Gives the graph of a transformed cubic function and asks for the # correct equation which has this graph. # The graph always has horizontal shift and vert shr. # The graph has nothing else. @@ -16,12 +16,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "parserAssignment.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -77,7 +77,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -177,7 +177,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -186,7 +186,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -194,13 +194,13 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); -COMMENT('Desc: Find formula of the function that is graphed in blue. +COMMENT('Desc: Find formula of the function that is graphed in blue. $BR Function Type: cubic $BR Transformations: horiz shift, vert shr'); ENDDOCUMENT(); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vstr.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vstr.pg index d19fd8f9fa..6129ce11d9 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vstr.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_cubic_hshift_vstr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed cubic function and asks for the +# Gives the graph of a transformed cubic function and asks for the # correct equation which has this graph. # The graph always has horizontal shift and vert str. # The graph has nothing else. @@ -17,12 +17,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "parserAssignment.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -78,7 +78,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -178,7 +178,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -187,7 +187,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -195,14 +195,14 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); -COMMENT('Desc: Find formula of the function that is graphed in blue. +COMMENT('Desc: Find formula of the function that is graphed in blue. $BR Function Type: cubic $BR Transformations: horiz shift, vert str'); ENDDOCUMENT(); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift.pg index 946915745d..f47bd823a2 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed quadratic function and asks for the +# Gives the graph of a transformed quadratic function and asks for the # correct equation which has this graph. # The graph always has horizontal shift. # The graph has nothing else. @@ -16,12 +16,12 @@ ## KEYWORDS('graph transformations','transformations of functions','quadratic') ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "parserAssignment.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -78,7 +78,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -176,7 +176,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -185,7 +185,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -193,12 +193,12 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); -COMMENT('Desc: Find formula of the function that is graphed in blue. +COMMENT('Desc: Find formula of the function that is graphed in blue. $BR Function Type: quadratic $BR Transformations: horiz shift'); ENDDOCUMENT(); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vrefl.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vrefl.pg index 567221a8b9..66df1f255b 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vrefl.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vrefl.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed quadratic function and asks for the +# Gives the graph of a transformed quadratic function and asks for the # correct equation which has this graph. # The graph always has horizontal shift and vertical reflection. # The graph has nothing else. @@ -16,12 +16,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "parserAssignment.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -78,7 +78,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -176,7 +176,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -185,7 +185,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>250 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -193,13 +193,13 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); -COMMENT('Desc: Find formula of the function that is graphed in blue. +COMMENT('Desc: Find formula of the function that is graphed in blue. $BR Function Type: quadratic $BR Transformations: horiz shift, vert refl'); ENDDOCUMENT(); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vrefl_vshr.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vrefl_vshr.pg index 14bd97aa77..01e66998bc 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vrefl_vshr.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vrefl_vshr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed quadratic function and asks for the +# Gives the graph of a transformed quadratic function and asks for the # correct equation which has this graph. # The graph always has horizontal shift, vert refl, vert shr. # The graph has nothing else. @@ -16,12 +16,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "parserAssignment.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -78,7 +78,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -176,7 +176,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -185,7 +185,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>250 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -193,14 +193,14 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); -COMMENT('Desc: Find formula of the function that is graphed in blue. +COMMENT('Desc: Find formula of the function that is graphed in blue. $BR Function Type: quadratic $BR Transformations: horiz shift, vert refl, vert shr'); ENDDOCUMENT(); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vrefl_vstr.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vrefl_vstr.pg index 0eec78d6fa..b2cf3ec156 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vrefl_vstr.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vrefl_vstr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed quadratic function and asks for the +# Gives the graph of a transformed quadratic function and asks for the # correct equation which has this graph. # The graph always has horizontal shift, vert refl, vert str. # The graph has nothing else. @@ -16,12 +16,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "parserAssignment.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -78,7 +78,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -179,7 +179,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -188,7 +188,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>250 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -196,13 +196,13 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); -COMMENT('Desc: Find formula of the function that is graphed in blue. +COMMENT('Desc: Find formula of the function that is graphed in blue. $BR Function Type: quadratic $BR Transformations: horiz shift, vert refl, vert str'); ENDDOCUMENT(); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vshift.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vshift.pg index 036e01d1e7..132198e644 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vshift.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vshift.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed quadratic function and asks for the +# Gives the graph of a transformed quadratic function and asks for the # correct equation which has this graph. # The graph always has horizontal shift and vertical shift. # The graph has nothing else. @@ -17,12 +17,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "parserAssignment.pl", @@ -36,7 +36,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -79,7 +79,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -177,7 +177,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -186,7 +186,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>250 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -194,14 +194,14 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); -COMMENT('Desc: Find formula of the function that is graphed in blue. +COMMENT('Desc: Find formula of the function that is graphed in blue. $BR Function Type: quadratic $BR Transformations: horiz shift, vert shift'); ENDDOCUMENT(); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vshift_vrefl.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vshift_vrefl.pg index f7f5be02d7..8c4b1fbb77 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vshift_vrefl.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vshift_vrefl.pg @@ -1,7 +1,7 @@ # DESCRIPTION -# Gives the graph of a transformed quadratic function and asks for the +# Gives the graph of a transformed quadratic function and asks for the # correct equation which has this graph. -# The graph always has horizontal shift, vert shift, and vert refl. +# The graph always has horizontal shift, vert shift, and vert refl. # The graph has nothing else. # ENDDESCRIPTION @@ -16,12 +16,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "parserAssignment.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -78,7 +78,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -176,7 +176,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -185,7 +185,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -193,13 +193,13 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); -COMMENT('Desc: Find formula of the function that is graphed in blue. +COMMENT('Desc: Find formula of the function that is graphed in blue. $BR Function Type: quadratic $BR Transformations: horiz shift, vert shift, vert refl'); ENDDOCUMENT(); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vshift_vrefl_vshr.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vshift_vrefl_vshr.pg index e3fa6ffc79..9117548e75 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vshift_vrefl_vshr.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vshift_vrefl_vshr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed quadratic function and asks for the +# Gives the graph of a transformed quadratic function and asks for the # correct equation which has this graph. # The graph always has horizontal shift, vert shift, vert refl, vert shr. # The graph has nothing else. @@ -16,12 +16,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "parserAssignment.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -78,7 +78,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -176,7 +176,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -185,7 +185,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -193,13 +193,13 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); -COMMENT('Desc: Find formula of the function that is graphed in blue. +COMMENT('Desc: Find formula of the function that is graphed in blue. $BR Function Type: quadratic $BR Transformations: horiz shift, vert shift, vert refl, vert shr'); ENDDOCUMENT(); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vshift_vrefl_vstr.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vshift_vrefl_vstr.pg index ae6440b591..a7af6963a8 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vshift_vrefl_vstr.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vshift_vrefl_vstr.pg @@ -1,7 +1,7 @@ # DESCRIPTION -# Gives the graph of a transformed quadratic function and asks for the +# Gives the graph of a transformed quadratic function and asks for the # correct equation which has this graph. -# The graph always has horizontal shift, vert shift, vert refl, vert str +# The graph always has horizontal shift, vert shift, vert refl, vert str # The graph has nothing else. # ENDDESCRIPTION @@ -16,12 +16,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "parserAssignment.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -78,7 +78,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -179,7 +179,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -188,7 +188,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -196,13 +196,13 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); -COMMENT('Desc: Find formula of the function that is graphed in blue. +COMMENT('Desc: Find formula of the function that is graphed in blue. $BR Function Type: quadratic $BR Transformations: horiz shift, vert shift, vert refl, vert str'); ENDDOCUMENT(); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vshift_vshr.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vshift_vshr.pg index cba00788e4..ae155ebf95 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vshift_vshr.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vshift_vshr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed quadratic function and asks for the +# Gives the graph of a transformed quadratic function and asks for the # correct equation which has this graph. # The graph always has horizontal shift, vert shift, vert shr. # The graph has nothing else. @@ -16,12 +16,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "parserAssignment.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -78,7 +78,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -176,7 +176,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -185,7 +185,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -193,14 +193,14 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); -COMMENT('Desc: Find formula of the function that is graphed in blue. +COMMENT('Desc: Find formula of the function that is graphed in blue. $BR Function Type: quadratic $BR Transformations: horiz shift, vert shift, vert shr'); ENDDOCUMENT(); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vshift_vstr.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vshift_vstr.pg index 2a399914ad..75efff227e 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vshift_vstr.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vshift_vstr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed quadratic function and asks for the +# Gives the graph of a transformed quadratic function and asks for the # correct equation which has this graph. # The graph always has horizontal shift, vert shift, vert str # The graph has nothing else. @@ -16,12 +16,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "parserAssignment.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -78,7 +78,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -176,7 +176,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -185,7 +185,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -193,13 +193,13 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); -COMMENT('Desc: Find formula of the function that is graphed in blue. +COMMENT('Desc: Find formula of the function that is graphed in blue. $BR Function Type: quadratic $BR Transformations: horiz shift, vert shift, vert str'); ENDDOCUMENT(); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vshr.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vshr.pg index 6acab2ffb0..780a876183 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vshr.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vshr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed quadratic function and asks for the +# Gives the graph of a transformed quadratic function and asks for the # correct equation which has this graph. # The graph always has horizontal shift and vertical shrink. # The graph has nothing else. @@ -16,12 +16,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "parserAssignment.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -78,7 +78,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -176,7 +176,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -185,7 +185,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -193,13 +193,13 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); -COMMENT('Desc: Find formula of the function that is graphed in blue. +COMMENT('Desc: Find formula of the function that is graphed in blue. $BR Function Type: quadratic $BR Transformations: horiz shift, vert shr'); ENDDOCUMENT(); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vstr.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vstr.pg index 7d5ce2f6a7..6c9f867be7 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vstr.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_quad_hshift_vstr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed quadratic function and asks for the +# Gives the graph of a transformed quadratic function and asks for the # correct equation which has this graph. # The graph always has horizontal shift and vertical stretch. # The graph has nothing else. @@ -16,12 +16,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "parserAssignment.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -78,7 +78,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -176,7 +176,7 @@ $funo->color(green); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -185,7 +185,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -193,14 +193,14 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); -COMMENT('Desc: Find formula of the function that is graphed in blue. +COMMENT('Desc: Find formula of the function that is graphed in blue. $BR Function Type: quadratic $BR Transformations: horiz shift, vert str'); ENDDOCUMENT(); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift.pg index 420e9c7dac..2ea0ff769a 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed sqrt function and asks for the +# Gives the graph of a transformed sqrt function and asks for the # correct equation which has this graph. # The graph always has horizontal shift and vert shift. # The graph has nothing else. @@ -16,12 +16,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "parserAssignment.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -77,7 +77,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -146,7 +146,7 @@ if ($HRefl == 0) { $expn = sub { my $x = shift(); return $a*sqrt(-($x-$b))+$c; }; $dstart = -$maxXVal; $dend = $b; - Context()->flags->set(limits=>[$dend-1,$dend]); + Context()->flags->set(limits=>[$dend-1,$dend]); $answer = Formula("y = $a*sqrt(-(x-$b))+$c")->reduce; } $graph->stamps(closed_circle($b,$c,'blue')); @@ -197,7 +197,7 @@ $graph->stamps(closed_circle(0,0,'green')); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -206,7 +206,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -214,14 +214,14 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); -COMMENT('Desc: Find formula of the function that is graphed in blue. +COMMENT('Desc: Find formula of the function that is graphed in blue. $BR Function Type: sqrt $BR Transformations: horiz shift, vert shift'); ENDDOCUMENT(); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_hrefl.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_hrefl.pg index 9ea8b7427f..ca5da9185d 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_hrefl.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_hrefl.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed sqrt function and asks for the +# Gives the graph of a transformed sqrt function and asks for the # correct equation which has this graph. # The graph always has horizontal shift and vert shift. # Also always has hori refl. @@ -17,12 +17,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "parserAssignment.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -78,7 +78,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -147,7 +147,7 @@ if ($HRefl == 0) { $expn = sub { my $x = shift(); return $a*sqrt(-($x-$b))+$c; }; $dstart = -$maxXVal; $dend = $b; - Context()->flags->set(limits=>[$dend-1,$dend]); + Context()->flags->set(limits=>[$dend-1,$dend]); $answer = Formula("y = $a*sqrt(-(x-$b))+$c")->reduce; } $graph->stamps(closed_circle($b,$c,'blue')); @@ -199,7 +199,7 @@ $graph->stamps(closed_circle(0,0,'green')); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -208,7 +208,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>250 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -216,13 +216,13 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); -COMMENT('Desc: Find formula of the function that is graphed in blue. +COMMENT('Desc: Find formula of the function that is graphed in blue. $BR Function Type: sqrt $BR Transformations: horiz shift, vert shift, horiz refl'); ENDDOCUMENT(); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_hrefl_vrefl.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_hrefl_vrefl.pg index 301add456e..460b6ea036 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_hrefl_vrefl.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_hrefl_vrefl.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed sqrt function and asks for the +# Gives the graph of a transformed sqrt function and asks for the # correct equation which has this graph. # The graph always has horizontal shift and vert shift. # Also always has vert and hori refls @@ -17,12 +17,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "parserAssignment.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -78,7 +78,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -147,7 +147,7 @@ if ($HRefl == 0) { $expn = sub { my $x = shift(); return $a*sqrt(-($x-$b))+$c; }; $dstart = -$maxXVal; $dend = $b; - Context()->flags->set(limits=>[$dend-1,$dend]); + Context()->flags->set(limits=>[$dend-1,$dend]); $answer = Formula("y = $a*sqrt(-(x-$b))+$c")->reduce; } $graph->stamps(closed_circle($b,$c,'blue')); @@ -200,7 +200,7 @@ $graph->stamps(closed_circle(0,0,'green')); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -209,7 +209,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>250 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -217,13 +217,13 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); -COMMENT('Desc: Find formula of the function that is graphed in blue. +COMMENT('Desc: Find formula of the function that is graphed in blue. $BR Function Type: sqrt $BR Transformations: horiz shift, vert shift, horiz refl, vert refl'); ENDDOCUMENT(); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_hrefl_vrefl_vshr.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_hrefl_vrefl_vshr.pg index 17b874c0b5..e8cfc3a877 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_hrefl_vrefl_vshr.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_hrefl_vrefl_vshr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed sqrt function and asks for the +# Gives the graph of a transformed sqrt function and asks for the # correct equation which has this graph. # The graph always has horizontal shift and vert shift. # Also always has vert and hori refl, vert shr @@ -17,12 +17,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "parserAssignment.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -78,7 +78,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -147,7 +147,7 @@ if ($HRefl == 0) { $expn = sub { my $x = shift(); return $a*sqrt(-($x-$b))+$c; }; $dstart = -$maxXVal; $dend = $b; - Context()->flags->set(limits=>[$dend-1,$dend]); + Context()->flags->set(limits=>[$dend-1,$dend]); $answer = Formula("y = $a*sqrt(-(x-$b))+$c")->reduce; } $graph->stamps(closed_circle($b,$c,'blue')); @@ -200,7 +200,7 @@ $graph->stamps(closed_circle(0,0,'green')); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -209,7 +209,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -217,14 +217,14 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); -COMMENT('Desc: Find formula of the function that is graphed in blue. +COMMENT('Desc: Find formula of the function that is graphed in blue. $BR Function Type: sqrt $BR Transformations: horiz shift, vert shift, horiz refl, vert refl, vert shr'); ENDDOCUMENT(); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_hrefl_vrefl_vstr.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_hrefl_vrefl_vstr.pg index 6b2e710b4d..a7cfef939f 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_hrefl_vrefl_vstr.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_hrefl_vrefl_vstr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed sqrt function and asks for the +# Gives the graph of a transformed sqrt function and asks for the # correct equation which has this graph. # The graph always has horizontal shift and vert shift. # Also always has vert and hori refl, vert str @@ -17,12 +17,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "parserAssignment.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -78,7 +78,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -147,7 +147,7 @@ if ($HRefl == 0) { $expn = sub { my $x = shift(); return $a*sqrt(-($x-$b))+$c; }; $dstart = -$maxXVal; $dend = $b; - Context()->flags->set(limits=>[$dend-1,$dend]); + Context()->flags->set(limits=>[$dend-1,$dend]); $answer = Formula("y = $a*sqrt(-(x-$b))+$c")->reduce; } $graph->stamps(closed_circle($b,$c,'blue')); @@ -198,7 +198,7 @@ $graph->stamps(closed_circle(0,0,'green')); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -207,7 +207,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -215,14 +215,14 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); -COMMENT('Desc: Find formula of the function that is graphed in blue. +COMMENT('Desc: Find formula of the function that is graphed in blue. $BR Function Type: sqrt $BR Transformations: horiz shift, vert shift, horiz refl, vert refl, vert str'); ENDDOCUMENT(); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_hrefl_vshr.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_hrefl_vshr.pg index f09434dd27..2f76938ae5 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_hrefl_vshr.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_hrefl_vshr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed sqrt function and asks for the +# Gives the graph of a transformed sqrt function and asks for the # correct equation which has this graph. # The graph always has horizontal shift and vert shift. # Also always has hori refl and vert shr @@ -17,12 +17,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "parserAssignment.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -78,7 +78,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -147,7 +147,7 @@ if ($HRefl == 0) { $expn = sub { my $x = shift(); return $a*sqrt(-($x-$b))+$c; }; $dstart = -$maxXVal; $dend = $b; - Context()->flags->set(limits=>[$dend-1,$dend]); + Context()->flags->set(limits=>[$dend-1,$dend]); $answer = Formula("y = $a*sqrt(-(x-$b))+$c")->reduce; } $graph->stamps(closed_circle($b,$c,'blue')); @@ -199,7 +199,7 @@ $graph->stamps(closed_circle(0,0,'green')); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -208,7 +208,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -216,12 +216,12 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); -COMMENT('Desc: Find formula of the function that is graphed in blue. +COMMENT('Desc: Find formula of the function that is graphed in blue. $BR Function Type: cubic $BR Transformations: horiz shift, vert shift, horiz refl, vert shr'); ENDDOCUMENT(); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_hrefl_vstr.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_hrefl_vstr.pg index 10bd4e97ed..75db9fe892 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_hrefl_vstr.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_hrefl_vstr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed sqrt function and asks for the +# Gives the graph of a transformed sqrt function and asks for the # correct equation which has this graph. # The graph always has horizontal shift and vert shift. # Also always has hori refl and vert str @@ -17,12 +17,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "parserAssignment.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -78,7 +78,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -149,7 +149,7 @@ if ($HRefl == 0) { $expn = sub { my $x = shift(); return $a*sqrt(-($x-$b))+$c; }; $dstart = -$maxXVal; $dend = $b; - Context()->flags->set(limits=>[$dend-1,$dend]); + Context()->flags->set(limits=>[$dend-1,$dend]); $answer = Compute("y = $a*sqrt(-(x-$b))+$c")->reduce; $y = $a+$c; # $graph->stamps(closed_circle($b-1,$y,'blue')); @@ -206,7 +206,7 @@ $graph->stamps(closed_circle(0,0,'green')); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -215,7 +215,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -223,13 +223,13 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); -COMMENT('Desc: Find formula of the function that is graphed in blue. +COMMENT('Desc: Find formula of the function that is graphed in blue. $BR Function Type: cubic $BR Transformations: horiz shift, vert shift, horiz refl, vert str'); ENDDOCUMENT(); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_vrefl.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_vrefl.pg index 901ce35f0a..2ea7d10bc8 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_vrefl.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_vrefl.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed sqrt function and asks for the +# Gives the graph of a transformed sqrt function and asks for the # correct equation which has this graph. # The graph always has horizontal shift and vertical shift. # Also always has vert refl. @@ -17,12 +17,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "parserAssignment.pl", @@ -36,7 +36,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -79,7 +79,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -148,7 +148,7 @@ if ($HRefl == 0) { $expn = sub { my $x = shift(); return $a*sqrt(-($x-$b))+$c; }; $dstart = -$maxXVal; $dend = $b; - Context()->flags->set(limits=>[$dend-1,$dend]); + Context()->flags->set(limits=>[$dend-1,$dend]); $answer = Formula("y = $a*sqrt(-(x-$b))+$c")->reduce; } $graph->stamps(closed_circle($b,$c,'blue')); @@ -201,7 +201,7 @@ $graph->stamps(closed_circle(0,0,'green')); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -210,7 +210,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -218,13 +218,13 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); -COMMENT('Desc: Find formula of the function that is graphed in blue. +COMMENT('Desc: Find formula of the function that is graphed in blue. $BR Function Type: sqrt $BR Transformations: horiz shift, vert shift, vert refl'); ENDDOCUMENT(); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_vrefl_vshr.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_vrefl_vshr.pg index ea83d6dde7..194c247f36 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_vrefl_vshr.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_vrefl_vshr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed sqrt function and asks for the +# Gives the graph of a transformed sqrt function and asks for the # correct equation which has this graph. # The graph always has horizontal shift and vert shift. # Also always has vert shift and shr @@ -17,12 +17,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "parserAssignment.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -78,7 +78,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -147,7 +147,7 @@ if ($HRefl == 0) { $expn = sub { my $x = shift(); return $a*sqrt(-($x-$b))+$c; }; $dstart = -$maxXVal; $dend = $b; - Context()->flags->set(limits=>[$dend-1,$dend]); + Context()->flags->set(limits=>[$dend-1,$dend]); $answer = Formula("y = $a*sqrt(-(x-$b))+$c")->reduce; } $graph->stamps(closed_circle($b,$c,'blue')); @@ -199,7 +199,7 @@ $graph->stamps(closed_circle(0,0,'green')); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -208,7 +208,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -216,14 +216,14 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); -COMMENT('Desc: Find formula of the function that is graphed in blue. +COMMENT('Desc: Find formula of the function that is graphed in blue. $BR Function Type: sqrt $BR Transformations: horiz shift, vert shift, vert refl, vert shr'); ENDDOCUMENT(); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_vrefl_vstr.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_vrefl_vstr.pg index 8d37288c84..095865c373 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_vrefl_vstr.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_vrefl_vstr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed sqrt function and asks for the +# Gives the graph of a transformed sqrt function and asks for the # correct equation which has this graph. # The graph always has horizontal shift and vert shift. # Also always has vert refl and str @@ -17,12 +17,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "parserAssignment.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -78,7 +78,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -149,7 +149,7 @@ if ($HRefl == 0) { $expn = sub { my $x = shift(); return $a*sqrt(-($x-$b))+$c; }; $dstart = -$maxXVal; $dend = $b; - Context()->flags->set(limits=>[$dend-1,$dend]); + Context()->flags->set(limits=>[$dend-1,$dend]); $answer = Formula("y = $a*sqrt(-(x-$b))+$c")->reduce; $y = $a+$c; # $graph->stamps(closed_circle($b-1,$y,'blue')); @@ -202,7 +202,7 @@ $graph->stamps(closed_circle(0,0,'green')); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -211,7 +211,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -219,12 +219,12 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); -COMMENT('Desc: Find formula of the function that is graphed in blue. +COMMENT('Desc: Find formula of the function that is graphed in blue. $BR Function Type: sqrt $BR Transformations: horiz shift, vert shift, vert refl, vert str'); ENDDOCUMENT(); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_vshr.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_vshr.pg index b97a86a13c..b68ad195e5 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_vshr.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_vshr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed sqrt function and asks for the +# Gives the graph of a transformed sqrt function and asks for the # correct equation which has this graph. # The graph always has horizontal shift and vert shift. # Also always has a vert shr @@ -17,12 +17,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "parserAssignment.pl", @@ -36,7 +36,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -79,7 +79,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -148,7 +148,7 @@ if ($HRefl == 0) { $expn = sub { my $x = shift(); return $a*sqrt(-($x-$b))+$c; }; $dstart = -$maxXVal; $dend = $b; - Context()->flags->set(limits=>[$dend-1,$dend]); + Context()->flags->set(limits=>[$dend-1,$dend]); $answer = Formula("y = $a*sqrt(-(x-$b))+$c")->reduce; } $graph->stamps(closed_circle($b,$c,'blue')); @@ -199,7 +199,7 @@ $graph->stamps(closed_circle(0,0,'green')); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -208,7 +208,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -216,13 +216,13 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); -COMMENT('Desc: Find formula of the function that is graphed in blue. +COMMENT('Desc: Find formula of the function that is graphed in blue. $BR Function Type: sqrt $BR Transformations: horiz shift, vert shift, vert shr'); ENDDOCUMENT(); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_vstr.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_vstr.pg index e0ee81c400..786631f5f8 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_vstr.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_hshift_vshift_vstr.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed sqrt function and asks for the +# Gives the graph of a transformed sqrt function and asks for the # correct equation which has this graph. # The graph always has horizontal shift and vert shift. # Also always has vert str. @@ -17,12 +17,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "parserAssignment.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -78,7 +78,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -147,7 +147,7 @@ if ($HRefl == 0) { $expn = sub { my $x = shift(); return $a*sqrt(-($x-$b))+$c; }; $dstart = -$maxXVal; $dend = $b; - Context()->flags->set(limits=>[$dend-1,$dend]); + Context()->flags->set(limits=>[$dend-1,$dend]); $answer = Formula("y = $a*sqrt(-(x-$b))+$c")->reduce; } $graph->stamps(closed_circle($b,$c,'blue')); @@ -199,7 +199,7 @@ $graph->stamps(closed_circle(0,0,'green')); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -208,7 +208,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -216,7 +216,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); @@ -224,7 +224,7 @@ Context()->normalStrings; COMMENT('Edited/Updated in 2013. $BR -Desc: Find formula of the function that is graphed in blue. +Desc: Find formula of the function that is graphed in blue. $BR Function Type: sqrt $BR Transformations: horiz shift, vert shift, vert str'); ENDDOCUMENT(); diff --git a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_vshift_hrefl.pg b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_vshift_hrefl.pg index a3908be611..fe77649562 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_vshift_hrefl.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/graph_transformations/find_eqn_sqrt_vshift_hrefl.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed sqrt function and asks for the +# Gives the graph of a transformed sqrt function and asks for the # correct equation which has this graph. # The graph always has horizontal shift and vert shift. # Also always has hori refl. @@ -17,12 +17,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "parserAssignment.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -78,7 +78,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.5,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.5,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.5,'10', 'black', 'bottom', 'right')); @@ -147,7 +147,7 @@ if ($HRefl == 0) { $expn = sub { my $x = shift(); return $a*sqrt(-($x-$b))+$c; }; $dstart = -$maxXVal; $dend = $b; - Context()->flags->set(limits=>[$dend-1,$dend]); + Context()->flags->set(limits=>[$dend-1,$dend]); $answer = Formula("y = $a*sqrt(-(x-$b))+$c")->reduce; } $graph->stamps(closed_circle($b,$c,'blue')); @@ -199,7 +199,7 @@ $graph->stamps(closed_circle(0,0,'green')); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -208,7 +208,7 @@ Write an equation that represents the function graphed in blue by using transfor $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>250 ); \} -$ECENTER +$ECENTER $BR Equation: \{ans_rule(20)\} @@ -216,12 +216,12 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp()); -COMMENT('Desc: Find formula of the function that is graphed in blue. +COMMENT('Desc: Find formula of the function that is graphed in blue. $BR Function Type: sqrt $BR Transformations: vert shift, horiz refl'); ENDDOCUMENT(); diff --git a/OpenProblemLibrary/Mizzou/Algebra/inequalities_applications/linear_ineq_app_digital_hubs.pg b/OpenProblemLibrary/Mizzou/Algebra/inequalities_applications/linear_ineq_app_digital_hubs.pg index 6e3c5a2915..e30f60f494 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/inequalities_applications/linear_ineq_app_digital_hubs.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/inequalities_applications/linear_ineq_app_digital_hubs.pg @@ -13,12 +13,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "contextInequalities.pl", "PGcourse.pl" @@ -29,7 +29,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Inequalities-Only"); do { @@ -43,7 +43,7 @@ $ans = Compute("x >= $x"); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -54,7 +54,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($ans)->cmp()); @@ -65,7 +65,7 @@ ANS(Compute($ans)->cmp()); ########################################################################### BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("inequalities", "Click here for help entering inequalities.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("inequalities", "Click here for help entering inequalities.")\} $BR END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/Mizzou/Algebra/inequalities_applications/linear_ineq_app_moving_costs.pg b/OpenProblemLibrary/Mizzou/Algebra/inequalities_applications/linear_ineq_app_moving_costs.pg index c150f8fb17..a2353e9095 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/inequalities_applications/linear_ineq_app_moving_costs.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/inequalities_applications/linear_ineq_app_moving_costs.pg @@ -12,12 +12,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "contextInequalities.pl", "PGcourse.pl" @@ -28,7 +28,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Inequalities-Only")->variables->are(t => "Real"); $case = random(0,1); # 0 - less, 1 - more @@ -49,25 +49,25 @@ if ($case == 0) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT -Acme Movers charges $$basecosta plus $$addcosta per hour to move a household across town. Hank's Movers charges $$costb per hour. For what length of time does it cost $cstr to hire Hank's Movers? Write your answer as an inequality involving \(t\). +Acme Movers charges $$basecosta plus $$addcosta per hour to move a household across town. Hank's Movers charges $$costb per hour. For what length of time does it cost $cstr to hire Hank's Movers? Write your answer as an inequality involving \(t\). $PAR Answer: \(t\geq 0 \) and \{ans_rule(8)\} END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($ans)->cmp()); BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("inequalities", "Click here for help entering inequalities.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("inequalities", "Click here for help entering inequalities.")\} $BR END_TEXT diff --git a/OpenProblemLibrary/Mizzou/Algebra/inequalities_applications/test_scores_ia_npl.pg b/OpenProblemLibrary/Mizzou/Algebra/inequalities_applications/test_scores_ia_npl.pg index 519bb6e4db..c25be31ce3 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/inequalities_applications/test_scores_ia_npl.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/inequalities_applications/test_scores_ia_npl.pg @@ -11,12 +11,12 @@ ## Level(5) ## KEYWORDS('Algebra', 'Modeling') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "contextInequalities.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -82,7 +82,7 @@ do { BEGIN_TEXT -Madoka has scores \($a\), \($b\), and \($c\), each out of \($test\) points, on her algebra tests. Use an inequality to find the minimum score she must make on the final exam to pass the course with an average of $percentc percent or higher, given that the final is worth \($final\) points. +Madoka has scores \($a\), \($b\), and \($c\), each out of \($test\) points, on her algebra tests. Use an inequality to find the minimum score she must make on the final exam to pass the course with an average of $percentc percent or higher, given that the final is worth \($final\) points. $PAR Minimum score needed on the final exam: \{ans_rule(20) \} out of \($final\) points END_TEXT diff --git a/OpenProblemLibrary/Mizzou/Algebra/inequalities_compound/comp_ineq_01.pg b/OpenProblemLibrary/Mizzou/Algebra/inequalities_compound/comp_ineq_01.pg index eaf388f33e..d15b3dab70 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/inequalities_compound/comp_ineq_01.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/inequalities_compound/comp_ineq_01.pg @@ -13,13 +13,13 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -29,7 +29,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Fraction-NoDecimals"); @ineqs = ("<", "\leq"); @@ -71,11 +71,11 @@ $dispansrbrack = "$bracks2[$case1]"; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT -Solve the following inequality. Write your answer in interval notation or if no solutions exist write ${BBOLD}no solutions${EBOLD}. +Solve the following inequality. Write your answer in interval notation or if no solutions exist write ${BBOLD}no solutions${EBOLD}. $PAR \[ $dispineq @@ -86,14 +86,14 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ans->cmp(tolerance=>0.000000001, tolType=>"absolute")); BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{ AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.") \} + ${BBOLD}Help:${EBOLD} \{ helpLink("intervals", "Click here for help entering intervals as answers.") \} $BR END_TEXT diff --git a/OpenProblemLibrary/Mizzou/Algebra/inequalities_compound/comp_ineq_02.pg b/OpenProblemLibrary/Mizzou/Algebra/inequalities_compound/comp_ineq_02.pg index 92daef3e91..03807728c5 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/inequalities_compound/comp_ineq_02.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/inequalities_compound/comp_ineq_02.pg @@ -13,13 +13,13 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -29,7 +29,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Fraction-NoDecimals"); @ineqs = ("<", "\leq"); @@ -53,11 +53,11 @@ Context("Interval"); $ans = Compute("$bracks1[$case1] $lep, $rep $bracks2[$case2]"); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT -Solve the following inequality. Write your answer in interval notation or if no solutions exist write ${BBOLD}no solutions${EBOLD}. +Solve the following inequality. Write your answer in interval notation or if no solutions exist write ${BBOLD}no solutions${EBOLD}. $PAR \[ $dispineq @@ -68,14 +68,14 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ans->cmp(tolerance=>0.000000001, tolType=>"absolute")); BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{ AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.") \} + ${BBOLD}Help:${EBOLD} \{ helpLink("intervals", "Click here for help entering intervals as answers.") \} $BR END_TEXT diff --git a/OpenProblemLibrary/Mizzou/Algebra/inequalities_compound/comp_ineq_03.pg b/OpenProblemLibrary/Mizzou/Algebra/inequalities_compound/comp_ineq_03.pg index ff0437bc75..ffcf372531 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/inequalities_compound/comp_ineq_03.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/inequalities_compound/comp_ineq_03.pg @@ -13,13 +13,13 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -29,7 +29,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Fraction-NoDecimals"); @ineqs = ("<", "\leq"); @@ -73,11 +73,11 @@ if ($casex == 0) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT -Solve the following inequality. Write your answer in interval notation or if no solutions exist write ${BBOLD}no solutions${EBOLD}. +Solve the following inequality. Write your answer in interval notation or if no solutions exist write ${BBOLD}no solutions${EBOLD}. $PAR \[ $dispineq @@ -88,14 +88,14 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ans->cmp(tolerance=>0.000000001, tolType=>"absolute")); BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{ AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.") \} + ${BBOLD}Help:${EBOLD} \{ helpLink("intervals", "Click here for help entering intervals as answers.") \} $BR END_TEXT diff --git a/OpenProblemLibrary/Mizzou/Algebra/inequalities_compound/comp_ineq_04_ia_npl.pg b/OpenProblemLibrary/Mizzou/Algebra/inequalities_compound/comp_ineq_04_ia_npl.pg index bbcfc0faf1..071a4f1754 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/inequalities_compound/comp_ineq_04_ia_npl.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/inequalities_compound/comp_ineq_04_ia_npl.pg @@ -1,6 +1,6 @@ ##DESCRIPTION ## Compound Inequalities -## +## ##ENDDESCRIPTION ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) @@ -24,7 +24,7 @@ loadMacros( "PGchoicemacros.pl", "MathObjects.pl", "contextInequalities.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -44,7 +44,7 @@ $f = $n*$b+$d; @inequal = ("x -$c \geq $e","$n x + $d < $f" ); @slice = NchooseK(2,2); - + ###################################### # Main text @@ -60,14 +60,14 @@ END_TEXT Context("Interval")->strings->add("no solutions"=>{}, "no solution"=>{alias=>"no solutions"}); $ans = Compute("[$a,$b)"); -ANS($ans->cmp); - +ANS($ans->cmp); + $showPartialCorrectAnswers = 1; Context()->texStrings; BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT diff --git a/OpenProblemLibrary/Mizzou/Algebra/inequalities_compound/comp_ineq_05_ia_npl.pg b/OpenProblemLibrary/Mizzou/Algebra/inequalities_compound/comp_ineq_05_ia_npl.pg index 12a4f5dd95..a2c2f43e60 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/inequalities_compound/comp_ineq_05_ia_npl.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/inequalities_compound/comp_ineq_05_ia_npl.pg @@ -1,6 +1,6 @@ ##DESCRIPTION ## Compound Inequalities -## +## ##ENDDESCRIPTION ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) @@ -24,7 +24,7 @@ loadMacros( "PGchoicemacros.pl", "MathObjects.pl", "contextInequalities.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -45,7 +45,7 @@ $f = ($b-$d); @inequal = ("$m($c-x) < $e","\displaystyle \frac{x - $d}{$n} \leq \frac{$f}{$n}" ); @slice = NchooseK(2,2); - + ###################################### # Main text @@ -63,13 +63,13 @@ Context()->strings->add("No solution"=>{}); if ($a>$b) {$ans = String("no solutions"); $dispans = "no solutions"} else {$ans = Compute("($a,$b]"); $dispans = "\($ans\)"}; -ANS($ans->cmp); +ANS($ans->cmp); $showPartialCorrectAnswers = 1; BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT diff --git a/OpenProblemLibrary/Mizzou/Algebra/inequalities_compound/comp_ineq_06_ia_npl.pg b/OpenProblemLibrary/Mizzou/Algebra/inequalities_compound/comp_ineq_06_ia_npl.pg index b9ad63f499..6eb4bf2f0b 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/inequalities_compound/comp_ineq_06_ia_npl.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/inequalities_compound/comp_ineq_06_ia_npl.pg @@ -1,6 +1,6 @@ ##DESCRIPTION ## Compound Inequalities -## +## ##ENDDESCRIPTION ## DBsubject(Algebra) ## DBchapter(Algebra of real numbers and simplifying expressions) @@ -23,7 +23,7 @@ loadMacros( "PGstandard.pl", "PGchoicemacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -39,7 +39,7 @@ do {$b = random(1,9,1);} while ($a==$b); @inequal = ("x < $a","x > $b" ); @slice = NchooseK(2,2); - + ###################################### # Main text @@ -55,14 +55,14 @@ END_TEXT Context("Interval")->strings->add("no solutions"=>{}, "no solution"=>{alias=>"no solutions"}); $ans = Compute("(-inf,$a)U($b,inf)")->reduce; -ANS($ans->cmp); +ANS($ans->cmp); Context()->texStrings; $showPartialCorrectAnswers = 1; BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT diff --git a/OpenProblemLibrary/Mizzou/Algebra/inequalities_compound/comp_ineq_08_ia_npl.pg b/OpenProblemLibrary/Mizzou/Algebra/inequalities_compound/comp_ineq_08_ia_npl.pg index 1ca3d4c75b..0cca3c9307 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/inequalities_compound/comp_ineq_08_ia_npl.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/inequalities_compound/comp_ineq_08_ia_npl.pg @@ -1,6 +1,6 @@ ##DESCRIPTION ## Compound Inequalities -## +## ##ENDDESCRIPTION ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) @@ -23,7 +23,7 @@ loadMacros( "PGstandard.pl", "PGchoicemacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -43,7 +43,7 @@ $f = $n*$b+$d; @inequal = ("x ? {$c} \leq $e","$n x ? {$d} > $f" ); @slice = NchooseK(2,2); - + ###################################### # Main text @@ -59,14 +59,14 @@ END_TEXT Context("Interval")->strings->add("no solutions"=>{}, "no solution"=>{alias=>"no solutions"}); $ans = Compute("(-inf,$a] U ($b,inf)")->reduce; -ANS($ans->cmp); +ANS($ans->cmp); $showPartialCorrectAnswers = 1; Context()->texStrings; BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT diff --git a/OpenProblemLibrary/Mizzou/Algebra/inequalities_compound/comp_ineq_09_ia_npl.pg b/OpenProblemLibrary/Mizzou/Algebra/inequalities_compound/comp_ineq_09_ia_npl.pg index 682daf39c1..dd25477a5b 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/inequalities_compound/comp_ineq_09_ia_npl.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/inequalities_compound/comp_ineq_09_ia_npl.pg @@ -1,6 +1,6 @@ ##DESCRIPTION ## Compound Inequalities -## +## ##ENDDESCRIPTION ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) @@ -23,7 +23,7 @@ loadMacros( "PGstandard.pl", "PGchoicemacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -48,7 +48,7 @@ $exp = nicestring([$f,$g],["","x"]); @inequal = ("$c ? {$m} x > $e","$p x ? {$d} > $exp" ); @slice = NchooseK(2,2); - + ###################################### # Main text @@ -64,15 +64,15 @@ END_TEXT Context("Interval")->strings->add("no solutions"=>{}, "no solution"=>{alias=>"no solutions"}); $ans = Compute("(-inf,$a)U($b,inf)"); -ANS($ans->cmp); - +ANS($ans->cmp); + $showPartialCorrectAnswers = 1; Context()->texStrings; BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT diff --git a/OpenProblemLibrary/Mizzou/Algebra/inequalities_compound/comp_ineq_10_ia_npl.pg b/OpenProblemLibrary/Mizzou/Algebra/inequalities_compound/comp_ineq_10_ia_npl.pg index c2c35457c0..6d69a3a2c6 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/inequalities_compound/comp_ineq_10_ia_npl.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/inequalities_compound/comp_ineq_10_ia_npl.pg @@ -1,6 +1,6 @@ ##DESCRIPTION ## Compound Inequalities -## +## ##ENDDESCRIPTION ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) @@ -23,7 +23,7 @@ loadMacros( "PGstandard.pl", "PGchoicemacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -51,7 +51,7 @@ $endpt2 = ($g+$d)/(1-$f); @slice = NchooseK(2,2); for ($i = 0; $i < random(10,50); $i++) { $case = random(0,1,1); -} +} $word = ($case == 0) ? "and" : "or"; if ($case == 0) { $num1 = ($e - $c)/gcd($e-$c,$n); @@ -72,7 +72,7 @@ if ($case == 0) { $dispans = "\($ans\)"; } - + ###################################### # Main text @@ -85,14 +85,14 @@ END_TEXT ###################################### # Answer -ANS($ans->cmp(tolerance=>0.00000001, tolType=>'absolute')); +ANS($ans->cmp(tolerance=>0.00000001, tolType=>'absolute')); $showPartialCorrectAnswers = 1; Context()->texStrings; BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT diff --git a/OpenProblemLibrary/Mizzou/Algebra/inequalities_compound/comp_ineq_two_parts_02.pg b/OpenProblemLibrary/Mizzou/Algebra/inequalities_compound/comp_ineq_two_parts_02.pg index 166267b676..1662f6e12f 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/inequalities_compound/comp_ineq_two_parts_02.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/inequalities_compound/comp_ineq_two_parts_02.pg @@ -13,13 +13,13 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -28,7 +28,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Interval"); Context()->strings->add("no solutions"=>{}, "no solution"=>{alias=>"no solutions"}); @@ -78,7 +78,7 @@ if ($swap == 1) { $tmp2 = $ans1; $ans1 = $ans2; $ans2 = $tmp2; - + $tmp3 = $dispansa; $dispansa = $dispansb; $dispansb = $tmp3; @@ -87,7 +87,7 @@ if ($swap == 1) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -100,7 +100,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ans1->cmp()); ANS($ans2->cmp()); @@ -108,7 +108,7 @@ ANS($ans2->cmp()); BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.") \} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.") \} $BR END_TEXT diff --git a/OpenProblemLibrary/Mizzou/Algebra/inequalities_compound/comp_ineq_two_parts_05.pg b/OpenProblemLibrary/Mizzou/Algebra/inequalities_compound/comp_ineq_two_parts_05.pg index 8ef6200274..74130ad4f5 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/inequalities_compound/comp_ineq_two_parts_05.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/inequalities_compound/comp_ineq_two_parts_05.pg @@ -13,13 +13,13 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -28,7 +28,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Interval"); Context()->strings->add("no solutions"=>{}, "no solution"=>{alias=>"no solutions"}); @@ -199,7 +199,7 @@ if ($swap == 1) { $tmp2 = $ans1; $ans1 = $ans2; $ans2 = $tmp2; - + $tmp3 = $dispansa; $dispansa = $dispansb; $dispansb = $tmp3; @@ -207,7 +207,7 @@ if ($swap == 1) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -220,14 +220,14 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ans1->cmp()); ANS($ans2->cmp()); BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.") \} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.") \} $BR END_TEXT diff --git a/OpenProblemLibrary/Mizzou/Algebra/inequalities_linear/compound_01.pg b/OpenProblemLibrary/Mizzou/Algebra/inequalities_linear/compound_01.pg index 465227d255..16c6169360 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/inequalities_linear/compound_01.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/inequalities_linear/compound_01.pg @@ -31,7 +31,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -71,7 +71,7 @@ elsif($case ==4){ $string1 = '\leq'; $string2 = '\leq'; $ans = Compute( " [$end1,$end2] " );} - + $ineq = "$a $string1 $var + $b $string2 $ac "; $interval = Compute("[1,2)"); @@ -93,7 +93,7 @@ END_TEXT BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT diff --git a/OpenProblemLibrary/Mizzou/Algebra/inequalities_linear/compound_02.pg b/OpenProblemLibrary/Mizzou/Algebra/inequalities_linear/compound_02.pg index 31964a2c19..c42d7fb3c6 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/inequalities_linear/compound_02.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/inequalities_linear/compound_02.pg @@ -31,7 +31,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -82,7 +82,7 @@ elsif($case ==4){ $string1 = '\leq'; $string2 = '\leq'; $ans = Compute( " [$end1,$end2] " );} - + $ineq = "$a $string1 $d $var + $b $string2 $ac "; ANS( Compute($ans)->cmp() ); @@ -105,7 +105,7 @@ END_TEXT BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT diff --git a/OpenProblemLibrary/Mizzou/Algebra/inequalities_linear/compound_05.pg b/OpenProblemLibrary/Mizzou/Algebra/inequalities_linear/compound_05.pg index 50f199d0bf..2e3764a776 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/inequalities_linear/compound_05.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/inequalities_linear/compound_05.pg @@ -31,7 +31,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -82,7 +82,7 @@ elsif($case ==4){ $string1 = '\leq'; $string2 = '\geq'; $ans = Compute( " (-inf,$end1] U [$end2,inf) " );} - + $ineq = "$a $var $string1 $minusb $or $var - $c $string2 $dc "; ANS( Compute("$ans")->cmp() ); @@ -93,7 +93,7 @@ ANS( Compute("$ans")->cmp() ); Context()->texStrings; BEGIN_TEXT -Solve the following inequality. Write your answer in interval notation or if no solutions exist write ${BBOLD}no solutions${EBOLD}. +Solve the following inequality. Write your answer in interval notation or if no solutions exist write ${BBOLD}no solutions${EBOLD}. $PAR \[ $ineq @@ -106,7 +106,7 @@ END_TEXT BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT diff --git a/OpenProblemLibrary/Mizzou/Algebra/inequalities_linear/linear_01.pg b/OpenProblemLibrary/Mizzou/Algebra/inequalities_linear/linear_01.pg index 522d8b3722..f7fca84eff 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/inequalities_linear/linear_01.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/inequalities_linear/linear_01.pg @@ -31,7 +31,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); diff --git a/OpenProblemLibrary/Mizzou/Algebra/inequalities_linear/linear_03.pg b/OpenProblemLibrary/Mizzou/Algebra/inequalities_linear/linear_03.pg index 764c70ac8c..50178fcc2f 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/inequalities_linear/linear_03.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/inequalities_linear/linear_03.pg @@ -31,7 +31,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -76,7 +76,7 @@ elsif($case == 3){ elsif($case ==4){ $string = '\leq'; $ans = Compute( " (-inf,$endpoint] " );} - + $ineq = "$ab $var + $a( $e + $var) $string $c $var + $d"; $interval = Compute("[1,2)"); diff --git a/OpenProblemLibrary/Mizzou/Algebra/inequalities_linear/linear_04.pg b/OpenProblemLibrary/Mizzou/Algebra/inequalities_linear/linear_04.pg index 4a33e36d4b..80fbcfe7e8 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/inequalities_linear/linear_04.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/inequalities_linear/linear_04.pg @@ -30,7 +30,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -78,7 +78,7 @@ elsif($case == 3){ elsif($case ==4){ $string = '\leq'; $ans = Compute( " (-inf,$endpoint] " );} - + $ineq = "$a ($b $var - $d)($var + $e) $string $ab $var ($var - $c)"; $interval = Compute("[1,2)"); @@ -128,7 +128,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { \(\left(-\infty,$endpoint\right]\) $PAR END_TEXT - } + } } else { BEGIN_TEXT $PAR @@ -139,7 +139,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/OpenProblemLibrary/Mizzou/Algebra/inequalities_linear/linear_05.pg b/OpenProblemLibrary/Mizzou/Algebra/inequalities_linear/linear_05.pg index 0d097305fc..db966f6dee 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/inequalities_linear/linear_05.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/inequalities_linear/linear_05.pg @@ -30,7 +30,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -78,7 +78,7 @@ elsif($case == 3){ elsif($case ==4){ $string = '\leq'; $ans = Compute( " (-inf,$endpoint] " );} - + $ineq = "\frac{$e}{$f} $var - \frac{$c}{$d} $string - \frac{$a}{$b} $var"; $interval = Compute("[1,2)"); diff --git a/OpenProblemLibrary/Mizzou/Algebra/inequalities_linear/linear_12_ia.pg b/OpenProblemLibrary/Mizzou/Algebra/inequalities_linear/linear_12_ia.pg index 039464d8cf..9ab8fecbdb 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/inequalities_linear/linear_12_ia.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/inequalities_linear/linear_12_ia.pg @@ -13,13 +13,13 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -28,7 +28,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Interval"); $d1 = random(2,4); @@ -107,7 +107,7 @@ if ($a1 == 1) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->strings->add("no solutions"=>{}, "no solution"=>{alias=>"no solutions"}); Context()->texStrings; @@ -123,7 +123,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ans->cmp()); diff --git a/OpenProblemLibrary/Mizzou/Algebra/inequalities_linear/linear_13_ia_npl.pg b/OpenProblemLibrary/Mizzou/Algebra/inequalities_linear/linear_13_ia_npl.pg index 3b28c83e0e..ad36386fb2 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/inequalities_linear/linear_13_ia_npl.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/inequalities_linear/linear_13_ia_npl.pg @@ -1,6 +1,6 @@ ##DESCRIPTION ## Linear Inequalities -## +## ##ENDDESCRIPTION ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) @@ -24,7 +24,7 @@ loadMacros( "MathObjects.pl", "contextInequalitiesAllowStrings.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); diff --git a/OpenProblemLibrary/Mizzou/Algebra/inequalities_linear/linear_14.pg b/OpenProblemLibrary/Mizzou/Algebra/inequalities_linear/linear_14.pg index bdb7619c98..616381c986 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/inequalities_linear/linear_14.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/inequalities_linear/linear_14.pg @@ -13,13 +13,13 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -28,7 +28,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Interval"); $a = random(1,15); @@ -43,7 +43,7 @@ if ($case == 0) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->strings->add("no solutions"=>{}, "no solution"=>{alias=>"no solutions"}); Context()->texStrings; @@ -59,7 +59,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(String("no solutions")->cmp()); diff --git a/OpenProblemLibrary/Mizzou/Algebra/inequalities_rational/rat_ineq_07.pg b/OpenProblemLibrary/Mizzou/Algebra/inequalities_rational/rat_ineq_07.pg index e524a22693..090157c218 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/inequalities_rational/rat_ineq_07.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/inequalities_rational/rat_ineq_07.pg @@ -29,7 +29,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -87,7 +87,7 @@ $ineq = ($flip == 0) ? "\frac{ $var - $a }{ $var + $b } $string $c" : "$c $strin Context()->texStrings; BEGIN_TEXT -Solve the following inequality. Write your answer using \{ AnswerFormatHelp("intervals","interval notation") \}. +Solve the following inequality. Write your answer using \{ helpLink("intervals","interval notation") \}. $PAR \[ $ineq diff --git a/OpenProblemLibrary/Mizzou/Algebra/inverse_functions_and_relations/determine_f_f_inv_of_a_01.pg b/OpenProblemLibrary/Mizzou/Algebra/inverse_functions_and_relations/determine_f_f_inv_of_a_01.pg index 998a8d92d5..0175b49f22 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/inverse_functions_and_relations/determine_f_f_inv_of_a_01.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/inverse_functions_and_relations/determine_f_f_inv_of_a_01.pg @@ -13,12 +13,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGcourse.pl" ); @@ -28,12 +28,12 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $a = random(-1500,1500); -$choice = random(0,1,1); +$choice = random(0,1,1); if ($choice == 0) { $disp = "f^{-1}\left(f\left($a\right)\right)"; } else { @@ -42,7 +42,7 @@ if ($choice == 0) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -53,7 +53,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($a)->cmp()); diff --git a/OpenProblemLibrary/Mizzou/Algebra/inverse_functions_and_relations/determine_intercepts_02.pg b/OpenProblemLibrary/Mizzou/Algebra/inverse_functions_and_relations/determine_intercepts_02.pg index 7d4275b7f3..6b397f42b2 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/inverse_functions_and_relations/determine_intercepts_02.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/inverse_functions_and_relations/determine_intercepts_02.pg @@ -12,12 +12,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "contextFraction.pl", "parserFunction.pl", @@ -29,7 +29,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Fraction-NoDecimals")->texStrings; $base = list_random(exp(1),10,2,3,4,5,6,7,8,9); @@ -123,7 +123,7 @@ parserFunction("log(b,x)" => "ln(x)/ln(b)"); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -136,7 +136,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS( Compute($xint)->cmp(tolType=>'absolute', tolerance=>0.0000000001) ); if ($yintcoord != "n") { diff --git a/OpenProblemLibrary/Mizzou/Algebra/inverse_functions_and_relations/determine_intercepts_03.pg b/OpenProblemLibrary/Mizzou/Algebra/inverse_functions_and_relations/determine_intercepts_03.pg index 74e1fa4e84..75cb328284 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/inverse_functions_and_relations/determine_intercepts_03.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/inverse_functions_and_relations/determine_intercepts_03.pg @@ -12,12 +12,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "contextFraction.pl", "parserFunction.pl", @@ -29,7 +29,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Fraction-NoDecimals")->texStrings; $base = list_random(exp(1),10,2,3,4,5,6,7,8,9); @@ -122,7 +122,7 @@ parserFunction("log(b,x)" => "ln(x)/ln(b)"); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -135,7 +135,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS( Compute($xint)->cmp(tolType=>'absolute', tolerance=>0.0000000001) ); if ($yintcoord != "n") { diff --git a/OpenProblemLibrary/Mizzou/Algebra/inverse_functions_and_relations/determine_pt_on_graph_01.pg b/OpenProblemLibrary/Mizzou/Algebra/inverse_functions_and_relations/determine_pt_on_graph_01.pg index 5e8c232c92..3a94189bce 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/inverse_functions_and_relations/determine_pt_on_graph_01.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/inverse_functions_and_relations/determine_pt_on_graph_01.pg @@ -13,12 +13,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGcourse.pl" ); @@ -28,13 +28,13 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $a = random(-15,15); do {$b = random(-15,15)} until ($b != $a); -$choice = random(0,1,1); +$choice = random(0,1,1); if ($choice == 0) { Context("Point"); $ans = Compute("($b,$a)"); @@ -45,7 +45,7 @@ if ($choice == 0) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; if ($choice == 0) { @@ -62,7 +62,7 @@ if ($choice == 0) { ########################################################################### -# check the answer +# check the answer ########################################################################### if ($choice == 0) { ANS(Compute($ans)->cmp()); diff --git a/OpenProblemLibrary/Mizzou/Algebra/inverse_functions_and_relations/find_dom_range_inv_graph_01.pg b/OpenProblemLibrary/Mizzou/Algebra/inverse_functions_and_relations/find_dom_range_inv_graph_01.pg index a08861b68a..be6b2de824 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/inverse_functions_and_relations/find_dom_range_inv_graph_01.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/inverse_functions_and_relations/find_dom_range_inv_graph_01.pg @@ -12,12 +12,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "PGcourse.pl" @@ -29,7 +29,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Interval"); $x[0] = random(-8,-3); @@ -123,15 +123,15 @@ $fig = image(insertGraph($graph), width=>$gsize, height=>$gsize, tex_size=>250 ) ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ $fig \} -$ECENTER +$ECENTER $PAR The graph of \(f(x)\) is given above. Determine the domain and range of \(f^{-1}(x)\) using interval notation. $PAR @@ -142,7 +142,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($domain)->cmp()); ANS(Compute($range)->cmp()); diff --git a/OpenProblemLibrary/Mizzou/Algebra/inverse_functions_and_relations/find_inv_fun_formula_09.pg b/OpenProblemLibrary/Mizzou/Algebra/inverse_functions_and_relations/find_inv_fun_formula_09.pg index fb12a228c3..3eafbda21a 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/inverse_functions_and_relations/find_inv_fun_formula_09.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/inverse_functions_and_relations/find_inv_fun_formula_09.pg @@ -18,7 +18,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "contextFraction.pl", "parserFunction.pl", diff --git a/OpenProblemLibrary/Mizzou/Algebra/inverse_functions_and_relations/find_inv_fun_formula_11.pg b/OpenProblemLibrary/Mizzou/Algebra/inverse_functions_and_relations/find_inv_fun_formula_11.pg index d12dc548fc..4b0fb821f7 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/inverse_functions_and_relations/find_inv_fun_formula_11.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/inverse_functions_and_relations/find_inv_fun_formula_11.pg @@ -19,7 +19,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "contextFraction.pl", "parserFunction.pl", diff --git a/OpenProblemLibrary/Mizzou/Algebra/inverse_functions_and_relations/find_inv_fun_formula_base_e_10.pg b/OpenProblemLibrary/Mizzou/Algebra/inverse_functions_and_relations/find_inv_fun_formula_base_e_10.pg index 7c92ebdf95..dcc71f3dc1 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/inverse_functions_and_relations/find_inv_fun_formula_base_e_10.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/inverse_functions_and_relations/find_inv_fun_formula_base_e_10.pg @@ -13,12 +13,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "contextFraction.pl", "parserFunction.pl", @@ -30,7 +30,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Fraction-NoDecimals")->texStrings; $base = exp(1); @@ -83,7 +83,7 @@ parserFunction("log(b,x)" => "ln(x)/ln(b)"); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -94,7 +94,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS( Compute($ans)->cmp() ); diff --git a/OpenProblemLibrary/Mizzou/Algebra/linear_functions_eqns_of_lines/find_eqn_graph_01.pg b/OpenProblemLibrary/Mizzou/Algebra/linear_functions_eqns_of_lines/find_eqn_graph_01.pg index b96a5cafa0..42da2cbec8 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/linear_functions_eqns_of_lines/find_eqn_graph_01.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/linear_functions_eqns_of_lines/find_eqn_graph_01.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Gives the graph of a transformed quadratic function and asks for the +# Gives the graph of a transformed quadratic function and asks for the # correct equation which has this graph. # The graph always has horizontal shift and vertical shrink. # The graph has nothing else. @@ -16,12 +16,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "parserAssignment.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswer = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -78,7 +78,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.8,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.8,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.8,'10', 'black', 'bottom', 'right')); @@ -132,7 +132,7 @@ if ($y2 != 0) { } ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -141,15 +141,15 @@ Determine the equation of the line given in the graph below. $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>250 ); \} -$ECENTER +$ECENTER $BR -Equation: \{ans_rule\} \{ AnswerFormatHelp("equations") \}, +Equation: \{ans_rule\} \{ helpLink("equations") \}, END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($answer->cmp(studentsMustReduceFractions=>1)); diff --git a/OpenProblemLibrary/Mizzou/Algebra/linear_functions_eqns_of_lines/find_eqn_two_points_02.pg b/OpenProblemLibrary/Mizzou/Algebra/linear_functions_eqns_of_lines/find_eqn_two_points_02.pg index 012f103c0e..e5af8e5ba8 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/linear_functions_eqns_of_lines/find_eqn_two_points_02.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/linear_functions_eqns_of_lines/find_eqn_two_points_02.pg @@ -29,7 +29,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PGchoicemacros.pl", "parserAssignment.pl", "PGcourse.pl" diff --git a/OpenProblemLibrary/Mizzou/Algebra/linear_functions_eqns_of_lines/find_eqn_two_points_03.pg b/OpenProblemLibrary/Mizzou/Algebra/linear_functions_eqns_of_lines/find_eqn_two_points_03.pg index f44fe88800..33ecffc270 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/linear_functions_eqns_of_lines/find_eqn_two_points_03.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/linear_functions_eqns_of_lines/find_eqn_two_points_03.pg @@ -29,7 +29,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PGchoicemacros.pl", "parserAssignment.pl", "PGcourse.pl" diff --git a/OpenProblemLibrary/Mizzou/Algebra/linear_functions_eqns_of_lines/parellel_or_perp_find_eqn_02.pg b/OpenProblemLibrary/Mizzou/Algebra/linear_functions_eqns_of_lines/parellel_or_perp_find_eqn_02.pg index 2926e2b20f..7194aabec0 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/linear_functions_eqns_of_lines/parellel_or_perp_find_eqn_02.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/linear_functions_eqns_of_lines/parellel_or_perp_find_eqn_02.pg @@ -30,7 +30,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PGchoicemacros.pl", "parserAssignment.pl", "PGcourse.pl" @@ -67,7 +67,7 @@ $line = Formula("y = $m x + $b "); Context()->texStrings; BEGIN_TEXT -Find the equation of the line though the point \( ($x1, $y1) \) and perpendicular to the line \(y = $m0 x + $b1 \). Write your answer in the form \(y = mx + b\). +Find the equation of the line though the point \( ($x1, $y1) \) and perpendicular to the line \(y = $m0 x + $b1 \). Write your answer in the form \(y = mx + b\). $PAR \{ ans_rule(20) \} END_TEXT diff --git a/OpenProblemLibrary/Mizzou/Algebra/linear_functions_eqns_of_lines/parellel_or_perp_find_eqn_03.pg b/OpenProblemLibrary/Mizzou/Algebra/linear_functions_eqns_of_lines/parellel_or_perp_find_eqn_03.pg index a1c2e3502d..96443f0322 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/linear_functions_eqns_of_lines/parellel_or_perp_find_eqn_03.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/linear_functions_eqns_of_lines/parellel_or_perp_find_eqn_03.pg @@ -29,7 +29,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PGchoicemacros.pl", "parserAssignment.pl", "PGcourse.pl" diff --git a/OpenProblemLibrary/Mizzou/Algebra/linear_functions_slope/find_slope_given_line_01.pg b/OpenProblemLibrary/Mizzou/Algebra/linear_functions_slope/find_slope_given_line_01.pg index d5877d7a12..3c7fc4e61c 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/linear_functions_slope/find_slope_given_line_01.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/linear_functions_slope/find_slope_given_line_01.pg @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PGchoicemacros.pl", "PGcourse.pl" ); diff --git a/OpenProblemLibrary/Mizzou/Algebra/linear_functions_slope/find_slope_two_points_06.pg b/OpenProblemLibrary/Mizzou/Algebra/linear_functions_slope/find_slope_two_points_06.pg index b6c4ade7bb..baeb9d32e7 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/linear_functions_slope/find_slope_two_points_06.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/linear_functions_slope/find_slope_two_points_06.pg @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PGchoicemacros.pl", "PGcourse.pl" ); diff --git a/OpenProblemLibrary/Mizzou/Algebra/log_eqns_change_of_base/cob_04.pg b/OpenProblemLibrary/Mizzou/Algebra/log_eqns_change_of_base/cob_04.pg index 1546853f95..c25c6d3810 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/log_eqns_change_of_base/cob_04.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/log_eqns_change_of_base/cob_04.pg @@ -32,7 +32,7 @@ loadMacros( "PGchoicemacros.pl", "PGunion.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -75,7 +75,7 @@ do {$b = random(2,15,1)} until ($b != 10); Context()->texStrings; BEGIN_TEXT -Using a change of base formula, one can write +Using a change of base formula, one can write $PAR \[ \frac{\log_{$b} ($a1)} {\log_{$b}($a2)} = \log_{m}(p), diff --git a/OpenProblemLibrary/Mizzou/Algebra/log_eqns_properties/determine_domain_01.pg b/OpenProblemLibrary/Mizzou/Algebra/log_eqns_properties/determine_domain_01.pg index 338bde0f5b..e66fbd40d0 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/log_eqns_properties/determine_domain_01.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/log_eqns_properties/determine_domain_01.pg @@ -30,7 +30,7 @@ loadMacros( "PGchoicemacros.pl", "PGunion.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -52,7 +52,7 @@ $ans = Compute(" ($a,inf)"); Context()->texStrings; BEGIN_TEXT -Find the domain of the function \(f(x) = $f\). Write your answer using \{AnswerFormatHelp("interval", "interval notation")\}. +Find the domain of the function \(f(x) = $f\). Write your answer using \{helpLink("interval", "interval notation")\}. $PAR $SPACE The domain of \(f(x)\) is \{ans_rule(20)\}. diff --git a/OpenProblemLibrary/Mizzou/Algebra/log_eqns_properties/determine_domain_02.pg b/OpenProblemLibrary/Mizzou/Algebra/log_eqns_properties/determine_domain_02.pg index 355eb930e7..8367a29530 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/log_eqns_properties/determine_domain_02.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/log_eqns_properties/determine_domain_02.pg @@ -30,7 +30,7 @@ loadMacros( "PGchoicemacros.pl", "PGunion.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "contextFraction.pl", "PGcourse.pl" @@ -69,7 +69,7 @@ $dans = "\(\left($endpt,\infty\right)\)"; Context()->texStrings; BEGIN_TEXT -Find the domain of the function \(f(x) = $f\). Write your answer using \{AnswerFormatHelp("interval", "interval notation")\}. +Find the domain of the function \(f(x) = $f\). Write your answer using \{helpLink("interval", "interval notation")\}. $PAR $SPACE The domain of \(f(x)\) is \{ans_rule(20)\}. diff --git a/OpenProblemLibrary/Mizzou/Algebra/log_eqns_properties/expand_01.pg b/OpenProblemLibrary/Mizzou/Algebra/log_eqns_properties/expand_01.pg index 70f50ad576..9c049ddb39 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/log_eqns_properties/expand_01.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/log_eqns_properties/expand_01.pg @@ -33,7 +33,7 @@ loadMacros( "PGchoicemacros.pl", "PGunion.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); diff --git a/OpenProblemLibrary/Mizzou/Algebra/log_eqns_properties/expand_02.pg b/OpenProblemLibrary/Mizzou/Algebra/log_eqns_properties/expand_02.pg index d72417e03c..f122dacc31 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/log_eqns_properties/expand_02.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/log_eqns_properties/expand_02.pg @@ -31,7 +31,7 @@ loadMacros( "PGchoicemacros.pl", "PGunion.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); diff --git a/OpenProblemLibrary/Mizzou/Algebra/log_eqns_properties/expand_03.pg b/OpenProblemLibrary/Mizzou/Algebra/log_eqns_properties/expand_03.pg index 0635dced2d..3a111275ae 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/log_eqns_properties/expand_03.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/log_eqns_properties/expand_03.pg @@ -31,7 +31,7 @@ loadMacros( "PGchoicemacros.pl", "PGunion.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "contextFraction.pl", "PGcourse.pl" diff --git a/OpenProblemLibrary/Mizzou/Algebra/log_eqns_properties/simplifying_01.pg b/OpenProblemLibrary/Mizzou/Algebra/log_eqns_properties/simplifying_01.pg index b11fd83bd0..860d823425 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/log_eqns_properties/simplifying_01.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/log_eqns_properties/simplifying_01.pg @@ -31,7 +31,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); diff --git a/OpenProblemLibrary/Mizzou/Algebra/polynomials_division/poly_div_02.pg b/OpenProblemLibrary/Mizzou/Algebra/polynomials_division/poly_div_02.pg index 54125cd4cd..500fe5bd73 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/polynomials_division/poly_div_02.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/polynomials_division/poly_div_02.pg @@ -30,7 +30,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGcourse.pl" ); @@ -71,7 +71,7 @@ $r = $c + $d*$b; Context()->texStrings; BEGIN_TEXT -Given the polynomial \(P(x) = $P\) and divisor \(d(x) = $D\), find the quotient \(Q(x)\) and remainder \(R(x)\). +Given the polynomial \(P(x) = $P\) and divisor \(d(x) = $D\), find the quotient \(Q(x)\) and remainder \(R(x)\). $PAR Write your answer in the form \( P(x) = d(x) Q(x) + R(x)\). $PAR diff --git a/OpenProblemLibrary/Mizzou/Algebra/polynomials_division/syn_div_eval_01.pg b/OpenProblemLibrary/Mizzou/Algebra/polynomials_division/syn_div_eval_01.pg index c268cec56d..79741359c4 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/polynomials_division/syn_div_eval_01.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/polynomials_division/syn_div_eval_01.pg @@ -30,7 +30,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGcourse.pl" ); @@ -71,7 +71,7 @@ $ans = $c4* ($a)**4 + $c3* ($a)**3 + $c2* ($a)**2 + $c1*$a + $c0; BEGIN_TEXT -Use the Remainder Theorem to find the function value listed below for the polynomial function \(P(x) = $P\). +Use the Remainder Theorem to find the function value listed below for the polynomial function \(P(x) = $P\). $PAR $SPACE \(P($a) = \) \{ans_rule(10)\} END_TEXT diff --git a/OpenProblemLibrary/Mizzou/Algebra/quadratic_functions_apps/max_area_dim_from_vertex_01.pg b/OpenProblemLibrary/Mizzou/Algebra/quadratic_functions_apps/max_area_dim_from_vertex_01.pg index bfcafeac67..c5e311629b 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/quadratic_functions_apps/max_area_dim_from_vertex_01.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/quadratic_functions_apps/max_area_dim_from_vertex_01.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Asks for the area function, +# Asks for the area function, # ENDDESCRIPTION ## Author1('Rick Lynch') @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "contextInequalities.pl", @@ -33,7 +33,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $secs = random(2,4); @@ -56,7 +56,7 @@ $fig1 = image( "Garden_$secs.png", width=>$gsize, height=>147, tex_size=>500 ); $case = random(0,1,1); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -89,7 +89,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### if ($case == 0) { ANS(Compute($width)->cmp()); diff --git a/OpenProblemLibrary/Mizzou/Algebra/quadratic_functions_apps/three_sided_fencing_problem_01.pg b/OpenProblemLibrary/Mizzou/Algebra/quadratic_functions_apps/three_sided_fencing_problem_01.pg index e3500a8c07..bd844e51ec 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/quadratic_functions_apps/three_sided_fencing_problem_01.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/quadratic_functions_apps/three_sided_fencing_problem_01.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "contextInequalities.pl", @@ -51,10 +51,10 @@ $critical_x = (.25)*($fa+$bl); $max_area = $area_formula->eval(x=>$critical_x); $gsize = 540*2/3; -$fig1 = image( - "three_sided_fencing_problem_var_side_length_01.png", - width=>$gsize, - height=>147, +$fig1 = image( + "three_sided_fencing_problem_var_side_length_01.png", + width=>$gsize, + height=>147, tex_size=>500 ); diff --git a/OpenProblemLibrary/Mizzou/Algebra/quadratic_functions_apps/two_sided_fencing_problem_01.pg b/OpenProblemLibrary/Mizzou/Algebra/quadratic_functions_apps/two_sided_fencing_problem_01.pg index 9d5afe8ba2..14181e2b6b 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/quadratic_functions_apps/two_sided_fencing_problem_01.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/quadratic_functions_apps/two_sided_fencing_problem_01.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "contextInequalities.pl", @@ -70,12 +70,12 @@ $fig1 = image( # (for example, case 1 refers to the image # two_side_fence_diag_01.png # -# 1: no inside dividers +# 1: no inside dividers # 2: 1 vertical divider # 3: 2 vertical dividers # 4: 1 horizontal divider # 5: 1 horizontal and one vertical divider -# 6: 2 horizontal dividers +# 6: 2 horizontal dividers # Here we solve our equation involving fence amount and x for the # variable we call y. y is a second degree polynomial whose @@ -88,27 +88,27 @@ if ($rand_fig == 1) { ($b,$a) = ($fence_amt,-1); } elsif ($rand_fig == 2) { # fa = 2x + y - $y = "$fence_amt - 2*x"; + $y = "$fence_amt - 2*x"; ($b,$a) = ($fence_amt,-2); } elsif ($rand_fig == 3) { # fa = 3x + y - $y = "$fence_amt - 3*x"; + $y = "$fence_amt - 3*x"; ($b,$a) = ($fence_amt,-3); } elsif ($rand_fig == 4) { # fa = 2y+x - $y = "(1/2)*($fence_amt - x)"; + $y = "(1/2)*($fence_amt - x)"; ($b,$a) = ((1/2)*$fence_amt,-1/2); } elsif ($rand_fig == 5) { # fa = 2y+2x - $y = "(1/2)*($fence_amt) - x"; + $y = "(1/2)*($fence_amt) - x"; ($b,$a) = ((1/2)*$fence_amt,-1); } elsif ($rand_fig == 6) { # fa = 3y+x $y = "(1/3)*($fence_amt - x)"; ($b,$a) = ((1/3)*$fence_amt,-1/3); -} +} -$area_formula = Compute("x*($y)"); +$area_formula = Compute("x*($y)"); $critical_x = -$b/(2*$a); $max_area = $area_formula->eval(x=>$critical_x); diff --git a/OpenProblemLibrary/Mizzou/Algebra/radicals_rationalizing/denominator_01.pg b/OpenProblemLibrary/Mizzou/Algebra/radicals_rationalizing/denominator_01.pg index 56925b7f8c..27769bc193 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/radicals_rationalizing/denominator_01.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/radicals_rationalizing/denominator_01.pg @@ -30,7 +30,7 @@ loadMacros( "PGstandard.pl", "PGunion.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -79,7 +79,7 @@ $multians = MultiAnswer($num, $den)->with( my ( $f1stu, $f2stu ) = @{$student}; my ( $f1, $f2 ) = @{$correct}; -if (( $f1==$f1stu && $f2==$f2stu) || (-$f1==$f1stu && -$f2==$f2stu)) {return [1,1];} +if (( $f1==$f1stu && $f2==$f2stu) || (-$f1==$f1stu && -$f2==$f2stu)) {return [1,1];} elsif ( $f1==$f1stu || -$f1==$f1stu) {return [1,0];} elsif ( ($numbogus==$f1stu || -$numbogus==$f1stu) || ($denbogus==$f2stu || -$denbogus==$f2stu) ) { @@ -125,9 +125,9 @@ $BCENTER $displayfrac $ECENTER $BR - Type an exact answer using radical notation if necessary. + Type an exact answer using radical notation if necessary. END_TEXT - BEGIN_TEXT + BEGIN_TEXT $PAR ${BBOLD}Help:${EBOLD} To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to give \(\sqrt{7x}\) as an answer, you would type sqrt(7x). If you mistakenly type sqrt 7x instead, Webwork will take this to mean \(x \sqrt{7}\), not \(\sqrt{7x}\). That is, you MUST put parenthesis around everything that you want to take the square root of. $BR diff --git a/OpenProblemLibrary/Mizzou/Algebra/radicals_simplifying/foiling_05.pg b/OpenProblemLibrary/Mizzou/Algebra/radicals_simplifying/foiling_05.pg index 1fa39c3bfe..66df9c474c 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/radicals_simplifying/foiling_05.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/radicals_simplifying/foiling_05.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# +# # ENDDESCRIPTION ## DBsubject(Algebra) @@ -11,13 +11,13 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -49,7 +49,7 @@ package main; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @vars = ("x","y","z","a","b","c","p","q","r"); @@ -68,34 +68,34 @@ $b = non_zero_random(-9,9); if ($case == 0) { $disp = "\left(\sqrt{$a} + $b $v1\right)^2"; if ($b == 1) { - $disp = "\left(\sqrt{$a} + $v1\right)^2"; + $disp = "\left(\sqrt{$a} + $v1\right)^2"; } elsif ($b == -1) { - $disp = "\left(\sqrt{$a} - $v1\right)^2"; + $disp = "\left(\sqrt{$a} - $v1\right)^2"; } $e1 = ($b)**2; $e2 = abs(2*$b); $ans = Formula("$e1 $v1^2 + $a + $e2 $v1 sqrt($a)"); - if ($b < 0) { + if ($b < 0) { $ans = Formula("$e1 $v1^2 + $a - $e2 $v1 sqrt($a)"); } } else { $disp = "\left(\sqrt{$a $v2} + $b $v1\right)^2"; if ($b == 1) { - $disp = "\left(\sqrt{$a $v2 } + $v1\right)^2"; + $disp = "\left(\sqrt{$a $v2 } + $v1\right)^2"; } elsif ($b == -1) { - $disp = "\left(\sqrt{$a $v2} - $v1\right)^2"; + $disp = "\left(\sqrt{$a $v2} - $v1\right)^2"; } $e1 = ($b)**2; $e2 = abs(2*$b); $ans = Formula("$e1 $v1^2 + $a $v2 + $e2 $v1 sqrt($a $v2)"); - if ($b < 0) { + if ($b < 0) { $ans = Formula("$e1 $v1^2 + $a $v2 - $e2 $v1 sqrt($a $v2)"); } } ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -105,12 +105,12 @@ $BCENTER \($disp =\) \{ans_rule(20)\} $ECENTER $PAR -Write your answer using radical notation if necessary. +Write your answer using radical notation if necessary. END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS( $ans-> cmp( checker => sub { my ($correct,$student,$ans) = @_; @@ -138,8 +138,8 @@ ANS( $ans-> cmp( checker => sub { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} - \{ AnswerFormatHelp("exponents", "Click here for help writing exponents and square roots.") \} + ${BBOLD}Help:${EBOLD} + \{ helpLink("exponents", "Click here for help writing exponents and square roots.") \} $BR END_TEXT diff --git a/OpenProblemLibrary/Mizzou/Algebra/radicals_simplifying/num_add_sub_two_parts_01.pg b/OpenProblemLibrary/Mizzou/Algebra/radicals_simplifying/num_add_sub_two_parts_01.pg index 08659d6265..74b3226881 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/radicals_simplifying/num_add_sub_two_parts_01.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/radicals_simplifying/num_add_sub_two_parts_01.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# +# # ENDDESCRIPTION ## DBsubject(Algebra) @@ -12,7 +12,7 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( @@ -20,7 +20,7 @@ loadMacros( "MathObjects.pl", "contextLimitedPowers.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -52,7 +52,7 @@ package main; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); Context()->functions->set(sqrt=>{class=>'my::Function::numeric'}); @@ -89,7 +89,7 @@ Context()->operators->undefine("**", "^"); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -104,7 +104,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS( $ansa-> cmp( checker => sub { my ($correct,$student,$ans) = @_; @@ -154,8 +154,8 @@ ANS( $ansb-> cmp( checker => sub { BEGIN_TEXT $PAR -${BBOLD}Help:${EBOLD} -\{ AnswerFormatHelp("exponents", "Click here for help writing exponents and square roots.") \} +${BBOLD}Help:${EBOLD} +\{ helpLink("exponents", "Click here for help writing exponents and square roots.") \} $BR END_TEXT diff --git a/OpenProblemLibrary/Mizzou/Algebra/radicals_simplifying/simplify_quadratic_eq_expn.pg b/OpenProblemLibrary/Mizzou/Algebra/radicals_simplifying/simplify_quadratic_eq_expn.pg index a7c0bf010a..9f50c7efe8 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/radicals_simplifying/simplify_quadratic_eq_expn.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/radicals_simplifying/simplify_quadratic_eq_expn.pg @@ -19,7 +19,7 @@ loadMacros( "MathObjects.pl", "contextLimitedPowers.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -98,7 +98,7 @@ ANS( $ans-> cmp(formatStudentAnswer=>"reduced") ); BEGIN_TEXT $PAR ${BBOLD}Help:${EBOLD} -\{ AnswerFormatHelp("exponents", "Click here for help writing exponents and square roots.") \} +\{ helpLink("exponents", "Click here for help writing exponents and square roots.") \} $BR END_TEXT diff --git a/OpenProblemLibrary/Mizzou/Algebra/radicals_simplifying/simplify_radicals_three_parts.pg b/OpenProblemLibrary/Mizzou/Algebra/radicals_simplifying/simplify_radicals_three_parts.pg index 0ab163b59b..8163f793f0 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/radicals_simplifying/simplify_radicals_three_parts.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/radicals_simplifying/simplify_radicals_three_parts.pg @@ -20,7 +20,7 @@ loadMacros( "MathObjects.pl", "contextLimitedPowers.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -189,7 +189,7 @@ ANS( $ansc-> cmp( checker => sub { BEGIN_TEXT $PAR ${BBOLD}Help:${EBOLD} -\{ AnswerFormatHelp("exponents", "Click here for help writing exponents and square roots.") \} +\{ helpLink("exponents", "Click here for help writing exponents and square roots.") \} $BR END_TEXT diff --git a/OpenProblemLibrary/Mizzou/Algebra/radicals_simplifying/single_rad_fractions_02.pg b/OpenProblemLibrary/Mizzou/Algebra/radicals_simplifying/single_rad_fractions_02.pg index 1898f4f055..bcaeacde27 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/radicals_simplifying/single_rad_fractions_02.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/radicals_simplifying/single_rad_fractions_02.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# +# # ENDDESCRIPTION ## DBsubject(Algebra) @@ -11,7 +11,7 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( @@ -20,7 +20,7 @@ loadMacros( "contextLimitedPowers.pl", "parserMultiAnswer.pl", "unionTables.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -29,7 +29,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); LimitedPowers::OnlyPositiveIntegers(); @@ -103,7 +103,7 @@ if ($displayMode eq 'TeX') { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -113,19 +113,19 @@ $BCENTER $displayfrac $ECENTER $BR -Write your answer using radical notation if necessary. +Write your answer using radical notation if necessary. END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($multians->cmp()); BEGIN_TEXT $PAR ${BBOLD}Help:${EBOLD} -\{ AnswerFormatHelp("exponents", "Click here for help writing exponents and square roots.") \} +\{ helpLink("exponents", "Click here for help writing exponents and square roots.") \} $BR END_TEXT diff --git a/OpenProblemLibrary/Mizzou/Algebra/radicals_simplifying/two_rad_fractions_01.pg b/OpenProblemLibrary/Mizzou/Algebra/radicals_simplifying/two_rad_fractions_01.pg index 199edff656..1bb88bed49 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/radicals_simplifying/two_rad_fractions_01.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/radicals_simplifying/two_rad_fractions_01.pg @@ -29,7 +29,7 @@ loadMacros( "PGstandard.pl", "PGunion.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "contextFraction.pl", "PGcourse.pl" @@ -91,8 +91,8 @@ $multians = MultiAnswer($num, $den)->with( my ( $correct, $student, $self ) = @_; my ( $f1stu, $f2stu ) = @{$student}; my ( $f1, $f2 ) = @{$correct}; - - if ( ( $f1==$f1stu && $f2==$f2stu) || + + if ( ( $f1==$f1stu && $f2==$f2stu) || (-$f1==$f1stu && -$f2==$f2stu) ) { return [1,1]; } elsif ( $f1==$f1stu || -$f1==$f1stu) { @@ -138,7 +138,7 @@ $PAR $BCENTER $displayfrac $ECENTER -$BR Write your answer using radical notation if necessary. +$BR Write your answer using radical notation if necessary. END_TEXT @@ -146,7 +146,7 @@ END_TEXT BEGIN_TEXT $PAR ${BBOLD}Help:${EBOLD} -To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to give \(\sqrt{7x}\) as an answer, you would type sqrt(7x). If you mistakenly type sqrt 7x instead, Webwork will take this to mean \(x \sqrt{7}\), not \(\sqrt{7x}\). That is, you MUST put parenthesis around everything that you want to take the square root of. +To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to give \(\sqrt{7x}\) as an answer, you would type sqrt(7x). If you mistakenly type sqrt 7x instead, Webwork will take this to mean \(x \sqrt{7}\), not \(\sqrt{7x}\). That is, you MUST put parenthesis around everything that you want to take the square root of. $BR END_TEXT diff --git a/OpenProblemLibrary/Mizzou/Algebra/radicals_simplifying/two_rad_fractions_03.pg b/OpenProblemLibrary/Mizzou/Algebra/radicals_simplifying/two_rad_fractions_03.pg index d874ca39e7..7b0429463b 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/radicals_simplifying/two_rad_fractions_03.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/radicals_simplifying/two_rad_fractions_03.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# +# # ENDDESCRIPTION ## DBsubject(Algebra) @@ -11,7 +11,7 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( @@ -20,7 +20,7 @@ loadMacros( "contextLimitedPowers.pl", "parserMultiAnswer.pl", "unionTables.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -29,7 +29,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); LimitedPowers::OnlyPositiveIntegers(); @@ -53,7 +53,7 @@ $ar = ($a)**($r+1); $b = $ar*$c; $ap1 = ($p1-$p2) % $r; -$ap2 = floor(($p1 - $p2)/$r); +$ap2 = floor(($p1 - $p2)/$r); $aq1 = ($q1-$q2) % $r; $aq2 = floor(($q1-$q2)/$r); @@ -96,8 +96,8 @@ $multians = MultiAnswer($num, $den)->with( my ( $correct, $student, $self ) = @_; my ( $f1stu, $f2stu ) = @{$student}; my ( $f1, $f2 ) = @{$correct}; - - if ( ( $f1==$f1stu && $f2==$f2stu) || + + if ( ( $f1==$f1stu && $f2==$f2stu) || (-$f1==$f1stu && -$f2==$f2stu) ) { return [1,1]; } elsif ( $f1==$f1stu || -$f1==$f1stu) { @@ -133,7 +133,7 @@ if ($displayMode eq 'TeX') { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -143,12 +143,12 @@ $BCENTER $displayfrac $ECENTER $BR -Write your answer using radical notation if necessary. +Write your answer using radical notation if necessary. END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### # Context()->variables->set(x=>{limits=>[1/9,2]}); ANS($multians->cmp()); @@ -156,7 +156,7 @@ ANS($multians->cmp()); BEGIN_TEXT $PAR ${BBOLD}Help:${EBOLD} -\{ AnswerFormatHelp("exponents", "Click here for help writing exponents and square roots.") \} +\{ helpLink("exponents", "Click here for help writing exponents and square roots.") \} $BR END_TEXT diff --git a/OpenProblemLibrary/Mizzou/Algebra/radicals_simplifying/two_rad_fractions_04.pg b/OpenProblemLibrary/Mizzou/Algebra/radicals_simplifying/two_rad_fractions_04.pg index 00e804b02f..343891eb76 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/radicals_simplifying/two_rad_fractions_04.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/radicals_simplifying/two_rad_fractions_04.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# +# # ENDDESCRIPTION ## DBsubject(Algebra) @@ -11,7 +11,7 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( @@ -20,7 +20,7 @@ loadMacros( "contextLimitedPowers.pl", "parserMultiAnswer.pl", "unionTables.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -29,7 +29,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); LimitedPowers::OnlyPositiveIntegers(); @@ -101,7 +101,7 @@ if ($displayMode eq 'TeX') { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -111,12 +111,12 @@ $BCENTER $displayfrac $ECENTER $BR -Write your answer using radical notation if necessary. +Write your answer using radical notation if necessary. END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($multians->cmp()); @@ -124,7 +124,7 @@ ANS($multians->cmp()); BEGIN_TEXT $PAR ${BBOLD}Help:${EBOLD} -\{ AnswerFormatHelp("exponents", "Click here for help writing exponents and square roots.") \} +\{ helpLink("exponents", "Click here for help writing exponents and square roots.") \} $BR END_TEXT diff --git a/OpenProblemLibrary/Mizzou/Algebra/radicals_simplifying/two_rad_mult_03.pg b/OpenProblemLibrary/Mizzou/Algebra/radicals_simplifying/two_rad_mult_03.pg index bd31fbc2e1..c2aa30d571 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/radicals_simplifying/two_rad_mult_03.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/radicals_simplifying/two_rad_mult_03.pg @@ -30,7 +30,7 @@ loadMacros( "PGstandard.pl", "PGunion.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "contextLimitedPowers.pl", "PGcourse.pl" @@ -113,12 +113,12 @@ $ans = Compute(" $a $var1**{$n1 + $n3} $var2**{$n2 + $n4 + 1} sqrt($b $var1) "); $texanswer = "\($a $var1^{".($n1+$n3)."} $var2^{".($n2+$n4+1)."} \sqrt{$b $var1}\)"; ############################################################## BEGIN_TEXT -Multiply and simplify to a form where the expression under the radical is as simple as possible. Assume that all variables represent positive quantities. For example \(2x\sqrt{x}=\sqrt{4x^3}\) but \(2x\sqrt{x}\) is the simpler form. +Multiply and simplify to a form where the expression under the radical is as simple as possible. Assume that all variables represent positive quantities. For example \(2x\sqrt{x}=\sqrt{4x^3}\) but \(2x\sqrt{x}\) is the simpler form. $PAR $BCENTER \( $expr = \text{ }~\) \{ans_rule(20)\} $ECENTER -$BR Write your answer using radical notation if necessary but do not use fractional exponents. +$BR Write your answer using radical notation if necessary but do not use fractional exponents. END_TEXT @@ -126,7 +126,7 @@ BEGIN_TEXT $PAR ${BBOLD}Help:${EBOLD} -To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to give \(\sqrt{7x}\) as an answer, you would type sqrt(7x). If you mistakenly type sqrt 7x instead, Webwork will take this to mean \(x \sqrt{7}\), not \(\sqrt{7x}\). That is, you MUST put parenthesis around everything that you want to take the square root of. +To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to give \(\sqrt{7x}\) as an answer, you would type sqrt(7x). If you mistakenly type sqrt 7x instead, Webwork will take this to mean \(x \sqrt{7}\), not \(\sqrt{7x}\). That is, you MUST put parenthesis around everything that you want to take the square root of. $BR END_TEXT diff --git a/OpenProblemLibrary/Mizzou/Algebra/rational_expressions_domain/domain_01.pg b/OpenProblemLibrary/Mizzou/Algebra/rational_expressions_domain/domain_01.pg index 1b9345652c..c74e18517c 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/rational_expressions_domain/domain_01.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/rational_expressions_domain/domain_01.pg @@ -29,7 +29,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "PGcourse.pl" @@ -56,21 +56,21 @@ $dom = Compute("(-inf,0) U (0, inf)"); ## Answers ANS( $dom->cmp() ); - + Context("Numeric"); ################################################ # Main text Context()->texStrings; BEGIN_TEXT -Find the domain of +Find the domain of $PAR \[ $f \] -$PAR +$PAR Write your answer in interval notation. $PAR -Domain: \{ans_rule(20)\} $SPACE $SPACE \{ AnswerFormatHelp("inequalities", "Click here for help using interval notation") \}. +Domain: \{ans_rule(20)\} $SPACE $SPACE \{ helpLink("inequalities", "Click here for help using interval notation") \}. END_TEXT ################################################ diff --git a/OpenProblemLibrary/Mizzou/Algebra/rational_expressions_domain/domain_04.pg b/OpenProblemLibrary/Mizzou/Algebra/rational_expressions_domain/domain_04.pg index 9f9a32f6aa..6c5153c75a 100644 --- a/OpenProblemLibrary/Mizzou/Algebra/rational_expressions_domain/domain_04.pg +++ b/OpenProblemLibrary/Mizzou/Algebra/rational_expressions_domain/domain_04.pg @@ -29,7 +29,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "PGcourse.pl" @@ -62,7 +62,7 @@ if ($m < $n) { ## Answers ANS( $dom->cmp() ); - + Context("Numeric"); ################################################ # Main text @@ -76,7 +76,7 @@ $f $BR Write your answer in interval notation. $PAR -Domain: \{ans_rule(20)\} $SPACE $SPACE \{ AnswerFormatHelp("inequalities", "Click here for help using interval notation") \}. +Domain: \{ans_rule(20)\} $SPACE $SPACE \{ helpLink("inequalities", "Click here for help using interval notation") \}. END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Equations_Linear/Distribute6.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Equations_Linear/Distribute6.pg index f5efd511a2..2cee4f05ce 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Equations_Linear/Distribute6.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Equations_Linear/Distribute6.pg @@ -31,7 +31,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Equations_Linear/DistributeEq2.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Equations_Linear/DistributeEq2.pg index 5a172405b6..74a1530292 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Equations_Linear/DistributeEq2.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Equations_Linear/DistributeEq2.pg @@ -29,7 +29,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -68,7 +68,7 @@ $eqn $PAR \( $var = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("fraction") \} +\{ helpLink("fraction") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Equations_Linear/LinearEq2.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Equations_Linear/LinearEq2.pg index fc3894a168..7916f4ed95 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Equations_Linear/LinearEq2.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Equations_Linear/LinearEq2.pg @@ -30,7 +30,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -60,14 +60,14 @@ $answer = Fraction($num,$den); Context()->texStrings; BEGIN_TEXT -Solve the following equation for \($var\): +Solve the following equation for \($var\): $PAR \[ $eqn \] \( $var = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("fraction") \} +\{ helpLink("fraction") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Equations_Linear/Var5.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Equations_Linear/Var5.pg index e1e3622edd..e99c7a504d 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Equations_Linear/Var5.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Equations_Linear/Var5.pg @@ -31,7 +31,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "PGcourse.pl" @@ -64,8 +64,8 @@ $multians = MultiAnswer($num, $den)->with( my ( $correct, $student, $self ) = @_; my ( $f1stu, $f2stu ) = @{$student}; my ( $f1, $f2 ) = @{$correct}; - - if ( ( $f1==$f1stu && $f2==$f2stu) || + + if ( ( $f1==$f1stu && $f2==$f2stu) || (-$f1==$f1stu && -$f2==$f2stu) ) { return [1,1]; } elsif ( $f1==$f1stu || -$f1==$f1stu) { diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Equations_Linear/Var6.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Equations_Linear/Var6.pg index 1bfa797549..9b454c4706 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Equations_Linear/Var6.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Equations_Linear/Var6.pg @@ -30,7 +30,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "PGcourse.pl" @@ -70,8 +70,8 @@ $multians = MultiAnswer($num, $den)->with( my ( $correct, $student, $self ) = @_; my ( $f1stu, $f2stu ) = @{$student}; my ( $f1, $f2 ) = @{$correct}; - - if ( ( $f1==$f1stu && $f2==$f2stu) || + + if ( ( $f1==$f1stu && $f2==$f2stu) || (-$f1==$f1stu && -$f2==$f2stu) ) { return [1,1]; } elsif ( $f1==$f1stu || -$f1==$f1stu) { diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Equations_Linear/Variables1.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Equations_Linear/Variables1.pg index 02147b5fa6..7650e2cf53 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Equations_Linear/Variables1.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Equations_Linear/Variables1.pg @@ -31,7 +31,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Equations_Linear/Variables2.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Equations_Linear/Variables2.pg index a9e7330799..57a1bf98fc 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Equations_Linear/Variables2.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Equations_Linear/Variables2.pg @@ -31,7 +31,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "PGcourse.pl" @@ -71,8 +71,8 @@ $multians = MultiAnswer($num, $den)->with( my ( $correct, $student, $self ) = @_; my ( $f1stu, $f2stu ) = @{$student}; my ( $f1, $f2 ) = @{$correct}; - - if ( ( $f1==$f1stu && $f2==$f2stu) || + + if ( ( $f1==$f1stu && $f2==$f2stu) || (-$f1==$f1stu && -$f2==$f2stu) ) { return [1,1]; } elsif ( $f1==$f1stu || -$f1==$f1stu) { diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Equations_Linear/Variables3.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Equations_Linear/Variables3.pg index a557fd0012..5e68fe6f53 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Equations_Linear/Variables3.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Equations_Linear/Variables3.pg @@ -29,7 +29,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "PGcourse.pl" @@ -65,7 +65,7 @@ if ($case = 0) { $num = Formula("$var2")->reduce; $den = Formula("$a $var3 - $b $var4")->reduce; } else { - $dispexpn = "$var2 + $b $var1 $var3 $var4 = $a $var1"; + $dispexpn = "$var2 + $b $var1 $var3 $var4 = $a $var1"; $num = Formula("$var2")->reduce; $den = Formula("$a - $b $var3 $var4")->reduce; } @@ -77,8 +77,8 @@ $multians = MultiAnswer($num, $den)->with( my ( $correct, $student, $self ) = @_; my ( $f1stu, $f2stu ) = @{$student}; my ( $f1, $f2 ) = @{$correct}; - - if ( ( $f1==$f1stu && $f2==$f2stu) || + + if ( ( $f1==$f1stu && $f2==$f2stu) || (-$f1==$f1stu && -$f2==$f2stu) ) { return [1,1]; } elsif ( $f1==$f1stu || -$f1==$f1stu) { diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Equations_Logarithmic/Log5.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Equations_Logarithmic/Log5.pg index 4e559a6a29..f9b9e30f9b 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Equations_Logarithmic/Log5.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Equations_Logarithmic/Log5.pg @@ -29,7 +29,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -74,7 +74,7 @@ $eqn $PAR \( $var = \) \{ ans_rule(20) \} $PAR -(${BBOLD}Note:$EBOLD Write your answer in exact form using logarithmic and exponential notation if necessary (\{ AnswerFormatHelp("logarithms", "click here for help writing logarithms")\} or \{ AnswerFormatHelp("exponents", "click here for help writing exponents")\}). If there is more than one correct answer, enter your answers as a comma separated list. If the equation has no solution, write "No Solution") +(${BBOLD}Note:$EBOLD Write your answer in exact form using logarithmic and exponential notation if necessary (\{ helpLink("logarithms", "click here for help writing logarithms")\} or \{ helpLink("exponents", "click here for help writing exponents")\}). If there is more than one correct answer, enter your answers as a comma separated list. If the equation has no solution, write "No Solution") END_TEXT diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Equations_Logarithmic/Log7.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Equations_Logarithmic/Log7.pg index ac1ce5cd54..01e741ca73 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Equations_Logarithmic/Log7.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Equations_Logarithmic/Log7.pg @@ -29,7 +29,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -73,7 +73,7 @@ $eqn $PAR \( $var = \) \{ ans_rule(20) \} $PAR -(${BBOLD}Note:$EBOLD Write your answer in exact form using logarithmic and exponential notation if necessary (\{ AnswerFormatHelp("logarithms", "click here for help writing logarithms")\} or \{ AnswerFormatHelp("exponents", "click here for help writing exponents")\}). If there is more than one correct answer, enter your answers as a comma separated list. If the equation has no solution, write "No Solution") +(${BBOLD}Note:$EBOLD Write your answer in exact form using logarithmic and exponential notation if necessary (\{ helpLink("logarithms", "click here for help writing logarithms")\} or \{ helpLink("exponents", "click here for help writing exponents")\}). If there is more than one correct answer, enter your answers as a comma separated list. If the equation has no solution, write "No Solution") END_TEXT diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Exponential_Functions_Applications/ExpDomain1.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Exponential_Functions_Applications/ExpDomain1.pg index be44b6c239..6117b5c35f 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Exponential_Functions_Applications/ExpDomain1.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Exponential_Functions_Applications/ExpDomain1.pg @@ -29,7 +29,7 @@ loadMacros( "PGchoicemacros.pl", "PGunion.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -53,8 +53,8 @@ $ans = Compute(" R - {$a/$b }" ); Context()->texStrings; BEGIN_TEXT -Find the domain of the function \(f(x) = 2^{$exp}\). Write your answer using -\{AnswerFormatHelp("interval", "interval notation")\}. +Find the domain of the function \(f(x) = 2^{$exp}\). Write your answer using +\{helpLink("interval", "interval notation")\}. $PAR $SPACE The domain is \{ans_rule(20)\}. END_TEXT diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Factoring_Substitution/LinearSub2.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Factoring_Substitution/LinearSub2.pg index 664c71ae33..3ad1127f5e 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Factoring_Substitution/LinearSub2.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Factoring_Substitution/LinearSub2.pg @@ -28,7 +28,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -81,7 +81,7 @@ $multians = MultiAnswer($fac1, $fac2)->with( BEGIN_TEXT -Factor the expression $expression. Simplify your +Factor the expression $expression. Simplify your answer as much as possible. $BR $BR @@ -90,7 +90,7 @@ $BR \( \big) \big( \) \{ $multians->ans_rule(10) \} \( \big) \) -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $PAR $BR END_TEXT diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Factoring_Substitution/VarSub2.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Factoring_Substitution/VarSub2.pg index dabd251cf3..4f2aad7cec 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Factoring_Substitution/VarSub2.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Factoring_Substitution/VarSub2.pg @@ -28,7 +28,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -45,7 +45,7 @@ $a = list_random(-10,-9,-8,-7,-6,-5,-4,-3,-2,2,3,4,5,6,7,8,9,10); do {$b = list_random(-10,-9,-8,-7,-6,-5,-4,-3,-2,2,3,4,5,6,7,8,9,10)} until ( gcd($a,$b) == 1); $c = list_random(-10,-9,-8,-7,-6,-5,-4,-3,-2,2,3,4,5,6,7,8,9,10); do {$d = list_random(-10,-9,-8,-7,-6,-5,-4,-3,-2,2,3,4,5,6,7,8,9,10)} until ( gcd($c, $d) == 1); -$e1 = $a *$c;; +$e1 = $a *$c;; $e2 = $a*$c + $b*$d; $e3 = $b * $d; @@ -79,7 +79,7 @@ $multians = MultiAnswer($fac1, $fac2)->with( BEGIN_TEXT -Factor the expression $expression. Simplify your +Factor the expression $expression. Simplify your answer as much as possible. $BR $BR @@ -88,7 +88,7 @@ $BR \( \big) \big( \) \{ $multians->ans_rule(10) \} \( \big) \) -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $PAR $BR END_TEXT diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Factoring_Substitution/VarSub5.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Factoring_Substitution/VarSub5.pg index 6d66186bb0..1ea5da1be3 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Factoring_Substitution/VarSub5.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Factoring_Substitution/VarSub5.pg @@ -27,7 +27,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -44,7 +44,7 @@ $a = list_random(-10,-9,-8,-7,-6,-5,-4,-3,-2,2,3,4,5,6,7,8,9,10); do {$b = list_random(-10,-8,-7,-6,-5,-3,-2,2,3,5,6,7,8,10)} until ( gcd($a,$b) == 1); $c = list_random(-10,-9,-8,-7,-6,-5,-4,-3,-2,2,3,4,5,6,7,8,9,10); do {$d = list_random(-10,-9,-8,-7,-6,-5,-4,-3,-2,2,3,4,5,6,7,8,9,10)} until ( gcd($c, $d) == 1); -$e1 = $a *$c;; +$e1 = $a *$c;; $e2 = $a*$c + $b*$d; $e3 = $b * $d; @@ -78,7 +78,7 @@ $multians = MultiAnswer($fac1, $fac2)->with( BEGIN_TEXT -Factor the expression $expression. Simplify your +Factor the expression $expression. Simplify your answer as much as possible. $BR $BR @@ -87,7 +87,7 @@ $BR \( \big) \big( \) \{ $multians->ans_rule(10) \} \( \big) \) -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $PAR $BR END_TEXT diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Factoring_Substitution/cubic2.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Factoring_Substitution/cubic2.pg index cf4677df90..88a7b90637 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Factoring_Substitution/cubic2.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Factoring_Substitution/cubic2.pg @@ -31,7 +31,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PeriodicRerandomization.pl", "PGcourse.pl" ); @@ -115,7 +115,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Factoring_Substitution/twovar.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Factoring_Substitution/twovar.pg index 25ab4c2134..9ca4fd4e9d 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Factoring_Substitution/twovar.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Factoring_Substitution/twovar.pg @@ -30,7 +30,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -75,11 +75,11 @@ $multians = MultiAnswer($fac1, $fac2)->with( # Main text Context()->texStrings; BEGIN_TEXT -Factor the expression and simplify your +Factor the expression and simplify your answer as much as possible: $PAR ${BCENTER} -$expression \(= \) +$expression \(= \) \( \big( \) \{ $multians->ans_rule(20) \} \( \big) \big( \) @@ -101,7 +101,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { $texanswer $PAR END_TEXT -} +} Context()->normalStrings; diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Factoring_ax2_bx_c/Factoring1.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Factoring_ax2_bx_c/Factoring1.pg index e1dcc68811..0ebb6b7701 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Factoring_ax2_bx_c/Factoring1.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Factoring_ax2_bx_c/Factoring1.pg @@ -28,7 +28,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -56,7 +56,7 @@ $expression = "$a x^2 + $b x + $c"; if ($b == -1) { $expression = "$a x^2 - x + $c"; } elsif ($b == 1) { - $expression = "$a x^2 + x + $c"; + $expression = "$a x^2 + x + $c"; } $multians = MultiAnswer($fac1, $fac2)->with( @@ -65,10 +65,10 @@ $multians = MultiAnswer($fac1, $fac2)->with( my ( $correct, $student, $self ) = @_; my ( $f1stu, $f2stu ) = @{$student}; my ( $f1, $f2 ) = @{$correct}; - - if ( ( $f1==$f1stu && $f2==$f2stu) || + + if ( ( $f1==$f1stu && $f2==$f2stu) || (-$f1==$f1stu && -$f2==$f2stu) || - ( $f1==$f2stu && $f2==$f1stu) || + ( $f1==$f2stu && $f2==$f1stu) || (-$f1==$f2stu && -$f2==$f1stu) ) { return [1,1];} if ( ($f1 == $f1stu && $f2 == $f2stu) || diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Factoring_ax2_bx_c/WithGCD5.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Factoring_ax2_bx_c/WithGCD5.pg index 553f9034fa..4445059de5 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Factoring_ax2_bx_c/WithGCD5.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Factoring_ax2_bx_c/WithGCD5.pg @@ -30,7 +30,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextPolynomialFactors.pl", "contextLimitedPowers.pl", "PGcourse.pl" @@ -67,13 +67,13 @@ $answer = Compute("($gcd p ) ($a x + $b)($c x + $d)"); # Main text BEGIN_TEXT -Factor the expression below. Simplify your +Factor the expression below. Simplify your answer as much as possible, but do not combine like factors. $BR $BR $expression \( = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formula") \} +\{ helpLink("formula") \} $PAR $BR END_TEXT diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoring11.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoring11.pg index 20542195b3..58bfc31090 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoring11.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoring11.pg @@ -28,7 +28,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -83,11 +83,11 @@ $multians = MultiAnswer($fac1, $fac2)->with( # Main text Context()->texStrings; BEGIN_TEXT -Factor the expression and simplify your +Factor the expression and simplify your answer as much as possible: $PAR ${BCENTER} -\($expression = \) +\($expression = \) \( \big( \) \{ $multians->ans_rule(25) \} \( \big) \big( \) diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoring12.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoring12.pg index 958f0a13b5..9919688c90 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoring12.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Factoring_x2_bx_c/Factoring12.pg @@ -28,7 +28,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -83,11 +83,11 @@ $multians = MultiAnswer($fac1, $fac2)->with( # Main text Context()->texStrings; BEGIN_TEXT -Factor the expression and simplify your +Factor the expression and simplify your answer as much as possible: $PAR ${BCENTER} -\($expression = \) +\($expression = \) \( \big( \) \{ $multians->ans_rule(25) \} \( \big) \big( \) diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Factoring_x2_bx_c/WithGCD1.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Factoring_x2_bx_c/WithGCD1.pg index cf7ec03ef4..64d04106c4 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Factoring_x2_bx_c/WithGCD1.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Factoring_x2_bx_c/WithGCD1.pg @@ -31,7 +31,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextPolynomialFactors.pl", "contextLimitedPowers.pl", "PGcourse.pl" @@ -70,7 +70,7 @@ $answer = Compute(" (x + $a)(x + $b)"); # Main text BEGIN_TEXT -Factor out the greatest common factor first and place it in front. +Factor out the greatest common factor first and place it in front. $BR Then factoring the remaining expression as much as possible, and type your result in the second box: $PAR diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Difference_Quotient/Fraction.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Difference_Quotient/Fraction.pg index 55ac281730..70a7c3e34d 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Difference_Quotient/Fraction.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Difference_Quotient/Fraction.pg @@ -30,7 +30,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "PGcourse.pl" @@ -65,8 +65,8 @@ $multians = MultiAnswer($num, $den)->with( my ( $correct, $student, $self ) = @_; my ( $f1stu, $f2stu ) = @{$student}; my ( $f1, $f2 ) = @{$correct}; - - if ( ( $f1==$f1stu && $f2==$f2stu) || + + if ( ( $f1==$f1stu && $f2==$f2stu) || (-$f1==$f1stu && -$f2==$f2stu) ) { return [1,1]; } elsif ( $f1==$f1stu || -$f1==$f1stu) { @@ -92,7 +92,7 @@ ANS($multians->cmp() ); if ($displayMode eq 'TeX') { $displayfrac = - "\[ + "\[ \frac{f(x + h) - f(x)}{h} = ".$multians->ans_rule(10).$multians->ans_rule(10)." \]"; } else { $displayfrac = @@ -104,7 +104,7 @@ if ($displayMode eq 'TeX') { } - + Context("Numeric"); ################################################ diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Difference_Quotient/Fraction2.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Difference_Quotient/Fraction2.pg index 47a8cd1315..5a54981595 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Difference_Quotient/Fraction2.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Difference_Quotient/Fraction2.pg @@ -31,7 +31,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "PGcourse.pl" @@ -59,8 +59,8 @@ $multians = MultiAnswer($num, $den)->with( my ( $correct, $student, $self ) = @_; my ( $f1stu, $f2stu ) = @{$student}; my ( $f1, $f2 ) = @{$correct}; - - if ( ( $f1==$f1stu && $f2==$f2stu) || + + if ( ( $f1==$f1stu && $f2==$f2stu) || (-$f1==$f1stu && -$f2==$f2stu) ) { return [1,1]; } elsif ( $f2==$f2stu || -$f2==$f2stu ) { @@ -86,7 +86,7 @@ ANS($multians->cmp() ); if ($displayMode eq 'TeX') { $displayfrac = - "\[ + "\[ \frac{f(x + h) - f(x)}{h} = ".$multians->ans_rule(10).$multians->ans_rule(10)." \]"; } else { $displayfrac = @@ -98,7 +98,7 @@ if ($displayMode eq 'TeX') { } - + Context("Numeric"); ################################################ diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Difference_Quotient/Linear.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Difference_Quotient/Linear.pg index e97ec0f05a..7d3c8d3257 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Difference_Quotient/Linear.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Difference_Quotient/Linear.pg @@ -30,7 +30,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "PGcourse.pl" @@ -51,7 +51,7 @@ $b = non_zero_random(-10,10,1); $f = "$a x + $b"; $ans1 = $a; - + ANS( Compute($ans1)->cmp()); Context("Numeric"); diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Difference_Quotient/Quadratic.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Difference_Quotient/Quadratic.pg index 8488a43135..81ca8e81b2 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Difference_Quotient/Quadratic.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Difference_Quotient/Quadratic.pg @@ -29,7 +29,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "PGcourse.pl" @@ -50,7 +50,7 @@ do {$b = random(-1,1,2)*random(2,5,1)} until ($b != -2); $f = "$a x + $b"; $ans1 = $a; - + ANS( Compute($ans1)->cmp()); Context("Numeric"); diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Difference_Quotient/cubic.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Difference_Quotient/cubic.pg index ec5590f69a..dd1d961e4e 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Difference_Quotient/cubic.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Difference_Quotient/cubic.pg @@ -30,7 +30,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "PGcourse.pl" @@ -49,10 +49,10 @@ $c = non_zero_random(-5,5,1); $f = "$a x^3"; $ans1 = Compute("$a* (3x^2 + 3 xh + h^2)"); - + ANS( Compute($ans1)->cmp()); $texanswer = "\(".(3*$a)."x^2 + ".(3*$a)."xh + $a h^2 \)"; - + Context("Numeric"); ################################################ diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Domain_Range/DomainAbsValue.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Domain_Range/DomainAbsValue.pg index aa08fb882b..24f8bd44e6 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Domain_Range/DomainAbsValue.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Domain_Range/DomainAbsValue.pg @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "PGcourse.pl" @@ -54,13 +54,13 @@ $dom = Compute("(-inf, inf)"); ## Answers ANS( $dom->cmp() ); - + Context("Numeric"); ################################################ # Main text Context()->texStrings; BEGIN_TEXT -Find the domain of the function +Find the domain of the function $PAR \[ f(x) = $f @@ -68,12 +68,12 @@ f(x) = $f $PAR and write your answer in interval notation. $PAR -Domain: \{ans_rule(20)\} +Domain: \{ans_rule(20)\} END_TEXT BEGIN_TEXT $PAR - ${BBOLD}Help${EBOLD}: \{ AnswerFormatHelp("intervals", "Click here for help entering intervals.") \} + ${BBOLD}Help${EBOLD}: \{ helpLink("intervals", "Click here for help entering intervals.") \} END_TEXT Context()->normalStrings(); diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Domain_Range/DomainFrac2.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Domain_Range/DomainFrac2.pg index 05c6ba29e5..3355a461d7 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Domain_Range/DomainFrac2.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Domain_Range/DomainFrac2.pg @@ -31,7 +31,7 @@ loadMacros( "PeriodicRerandomization.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "PGcourse.pl" @@ -59,13 +59,13 @@ $texanswer = "\( \left(-\infty, \frac{$b}{$c}\right) \cup \left(\frac{$b}{$c},\i ## Answers ANS( $dom->cmp() ); - + Context("Numeric"); ################################################ # Main text Context()->texStrings; BEGIN_TEXT -Find the domain of the function +Find the domain of the function $PAR \[ f(x) = $f @@ -86,14 +86,14 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help${EBOLD}: \{ AnswerFormatHelp("intervals", "Click here for help entering intervals.") \} + ${BBOLD}Help${EBOLD}: \{ helpLink("intervals", "Click here for help entering intervals.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ # Answer evaluation diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Domain_Range/DomainFracQuadratic2.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Domain_Range/DomainFracQuadratic2.pg index 6535117333..86e733e402 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Domain_Range/DomainFracQuadratic2.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Domain_Range/DomainFracQuadratic2.pg @@ -31,7 +31,7 @@ loadMacros( "PeriodicRerandomization.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "PGcourse.pl" @@ -61,14 +61,14 @@ $dom = Compute("(-inf,0)U (0, $b) U ($b, inf)"); ## Answers ANS( $dom->cmp() ); - + Context("Numeric"); ################################################ # Main text Context()->texStrings; BEGIN_TEXT -Find the domain of the function +Find the domain of the function $PAR \[ f(x) = $f @@ -89,14 +89,14 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help${EBOLD}: \{ AnswerFormatHelp("intervals", "Click here for help entering intervals.") \} + ${BBOLD}Help${EBOLD}: \{ helpLink("intervals", "Click here for help entering intervals.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Domain_Range/DomainLinear.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Domain_Range/DomainLinear.pg index 818b9b521d..4f439927bb 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Domain_Range/DomainLinear.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Domain_Range/DomainLinear.pg @@ -30,7 +30,7 @@ loadMacros( "PeriodicRerandomization.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "PGcourse.pl" @@ -57,13 +57,13 @@ $dom = Compute("(-inf, inf)"); ## Answers ANS( $dom->cmp() ); - + Context("Numeric"); ################################################ # Main text Context()->texStrings; BEGIN_TEXT -Find the domain of the function +Find the domain of the function $PAR \[ f(x) = $f @@ -86,14 +86,14 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { BEGIN_TEXT $PAR - ${BBOLD}Help${EBOLD}: \{ AnswerFormatHelp("intervals", "Click here for help entering intervals.") \} + ${BBOLD}Help${EBOLD}: \{ helpLink("intervals", "Click here for help entering intervals.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Domain_Range/Domain_Range_Graph_02.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Domain_Range/Domain_Range_Graph_02.pg index d6dd15b1f1..92e6912a70 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Domain_Range/Domain_Range_Graph_02.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Domain_Range/Domain_Range_Graph_02.pg @@ -17,12 +17,12 @@ ## KEYWORDS('functions', 'piecewise', 'graphs', 'domain', 'range') ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "PGcourse.pl" @@ -34,7 +34,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxx = 11; @@ -111,7 +111,7 @@ if ($oc1 == 0) { $graph->stamps(new Circle($x4,$y4,5,'blue','blue')); $graph->stamps(new Circle($x5,$y5,5,'blue','white')); } - + # set up constant piece 2 $x6 = random($x5+2,$maxx-1); $y6 = $y5; @@ -127,7 +127,7 @@ if ($oc2 == 0) { # set up answers Context("Interval"); Context()->strings->add("none"=>{}); -if ($oc1 == 0) { +if ($oc1 == 0) { if ($oc2 == 0) { $domain = Compute("(-inf,$x4)U[$x5,$x6)"); } else { @@ -157,7 +157,7 @@ if ($flip == 1) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -165,7 +165,7 @@ BEGIN_TEXT $PAR $BCENTER \{ image(insertGraph($graph), width=>$gsize, height=>$gsize, tex_size=>500 ); \} -$ECENTER +$ECENTER $PAR Given the graph of \(f(x)\) above, find the following: @@ -177,7 +177,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($domain)->cmp()); ANS(Compute($range)->cmp()); @@ -185,8 +185,8 @@ ANS(Compute($range)->cmp()); BEGIN_TEXT $PAR - Write your answer using interval notation. - ${BBOLD}Help:${EBOLD} \{ AnswerFormatHelp("intervals","Click here for help entering intervals.") \} + Write your answer using interval notation. + ${BBOLD}Help:${EBOLD} \{ helpLink("intervals","Click here for help entering intervals.") \} $BR END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Domain_Range/Domain_Range_Graph_05.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Domain_Range/Domain_Range_Graph_05.pg index adb984f104..1522b7a123 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Domain_Range/Domain_Range_Graph_05.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Domain_Range/Domain_Range_Graph_05.pg @@ -12,12 +12,12 @@ ## KEYWORDS('domain', 'range', 'functions') ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "PGgraphmacros.pl", @@ -31,7 +31,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -74,7 +74,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.7,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.7,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.7,'10', 'black', 'bottom', 'right')); @@ -97,9 +97,9 @@ do {$y[2] = random($min+1,$max-1)} until ($y[2] != $y[1]); do {$y[3] = random($min+1,$max-1)} until ($y[3] != $y[2]); do {$y[4] = random($min+4,$max-4)} until ($y[4] != $y[3]); do {$y[5] = random($min+2,$max-2)} until ($y[5] != $y[4]); -if ($y[4] < $y[5]) { - do {$y[6] = random($min+1,$max-1)} until ($y[6] < $y[5]); # forces -} else { # +if ($y[4] < $y[5]) { + do {$y[6] = random($min+1,$max-1)} until ($y[6] < $y[5]); # forces +} else { # do {$y[6] = random($min+1,$max-1)} until ($y[6] > $y[5]); # V shape } @@ -114,7 +114,7 @@ $graph->lineTo($x[6],$y[6],'blue',3); # draw dots, compute domain and range; $op[0] = random(0,1); # 0 - closed, 1 - open $op[1] = random(0,1); -if ($x[1] == $x[2]) { +if ($x[1] == $x[2]) { $op[2] = 1 - $op[1]; } else { $op[2] = random(0,1); @@ -250,7 +250,7 @@ $range = Compute("$range1 U $range2 U $range3"); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -258,7 +258,7 @@ BEGIN_TEXT $PAR $BCENTER \{ image(insertGraph($graph), width=>$gridWidth, height=>$gridHeight, tex_size=>500 ); \} -$ECENTER +$ECENTER $PAR Given the graph of \(f(x)\) above, find the following: @@ -270,7 +270,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($domain)->cmp()); ANS(Compute($range)->cmp()); @@ -293,12 +293,12 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - Write your answer using interval notation. ${BBOLD}Help:${EBOLD} \{ AnswerFormatHelp("intervals","Click here for help entering intervals.") \} + Write your answer using interval notation. ${BBOLD}Help:${EBOLD} \{ helpLink("intervals","Click here for help entering intervals.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Domain_Range/FracSqrt.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Domain_Range/FracSqrt.pg index 9c1b838eee..5c6a84ae8b 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Domain_Range/FracSqrt.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Domain_Range/FracSqrt.pg @@ -30,7 +30,7 @@ loadMacros( "PeriodicRerandomization.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "PGcourse.pl" @@ -60,13 +60,13 @@ $dom = Compute("(-inf,$a)"); ## Answers ANS( $dom->cmp() ); - + Context("Numeric"); ################################################ # Main text BEGIN_TEXT -Find the domain of the function +Find the domain of the function $PAR \[ f(x) = $f @@ -88,14 +88,14 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help${EBOLD}: \{ AnswerFormatHelp("intervals", "Click here for help entering intervals.") \} + ${BBOLD}Help${EBOLD}: \{ helpLink("intervals", "Click here for help entering intervals.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Domain_Range/FracSqrt2.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Domain_Range/FracSqrt2.pg index 13e59e6628..c7f4eb0d77 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Domain_Range/FracSqrt2.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Domain_Range/FracSqrt2.pg @@ -29,7 +29,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "PGcourse.pl" @@ -72,17 +72,17 @@ if($a > 0) { ## Answers ANS( $dom->cmp() ); - + Context("Fraction-NoDecimals")->texStrings; ################################################ # Main text BEGIN_TEXT -Find the domain of the function +Find the domain of the function $PAR \[ f(x) = \displaystyle $f -\] +\] $PAR and write your answer in interval notation. $PAR @@ -91,7 +91,7 @@ END_TEXT Context()->texStrings; BEGIN_TEXT $PAR - ${BBOLD}Help${EBOLD}: \{ AnswerFormatHelp("intervals", "Click here for help entering intervals.") \} + ${BBOLD}Help${EBOLD}: \{ helpLink("intervals", "Click here for help entering intervals.") \} $BR END_TEXT diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Domain_Range/Sqrt2.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Domain_Range/Sqrt2.pg index 619fdd47ac..828ee2a177 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Domain_Range/Sqrt2.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Domain_Range/Sqrt2.pg @@ -29,7 +29,7 @@ loadMacros( "PeriodicRerandomization.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "PGcourse.pl" @@ -63,13 +63,13 @@ if($a > 0){ ## Answers ANS( $dom->cmp() ); - + Context("Numeric"); ################################################ # Main text BEGIN_TEXT -Find the domain of the function +Find the domain of the function $PAR \[ f(x) = $f @@ -90,14 +90,14 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { } else { BEGIN_TEXT $PAR - ${BBOLD}Help${EBOLD}: \{ AnswerFormatHelp("intervals", "Click here for help entering intervals.") \} + ${BBOLD}Help${EBOLD}: \{ helpLink("intervals", "Click here for help entering intervals.") \} $BR END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ################################################ diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Even_Odd_Symmetry/Determine_EOO_Abs_Even.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Even_Odd_Symmetry/Determine_EOO_Abs_Even.pg index cadf3a4e56..60870fd8ed 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Even_Odd_Symmetry/Determine_EOO_Abs_Even.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Even_Odd_Symmetry/Determine_EOO_Abs_Even.pg @@ -29,7 +29,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -67,7 +67,7 @@ $PAR \(f(-x) =\) \{ans_rule(20)\} $PAR Even/Odd/Neither: \{ans_rule(20)\} -END_TEXT +END_TEXT ################################################ diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Even_Odd_Symmetry/Determine_EOO_Abs_Neither.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Even_Odd_Symmetry/Determine_EOO_Abs_Neither.pg index 7b44099319..7a8ba593b0 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Even_Odd_Symmetry/Determine_EOO_Abs_Neither.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Even_Odd_Symmetry/Determine_EOO_Abs_Neither.pg @@ -28,7 +28,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Even_Odd_Symmetry/Determine_EOO_Poly_Over_Poly.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Even_Odd_Symmetry/Determine_EOO_Poly_Over_Poly.pg index 6e8a4ce9a6..8944dcbc5c 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Even_Odd_Symmetry/Determine_EOO_Poly_Over_Poly.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Even_Odd_Symmetry/Determine_EOO_Poly_Over_Poly.pg @@ -26,7 +26,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -84,7 +84,7 @@ for ($i = $degt; $i >= 0; $i--) { $dispansfunt = ($dispansfunt)."x^{$i}"; } else { $dispansfunt = ($dispansfunt)."- x^{$i}"; - } + } } elsif ($ct[$i] == -1) { $dispfunt = ($dispfunt)."- x^{$i}"; if ($i % 2 == 0) { @@ -194,7 +194,7 @@ for ($i = $degb; $i >= 0; $i--) { $dispansfunb = ($dispansfunb)."x^{$i}"; } else { $dispansfunb = ($dispansfunb)."- x^{$i}"; - } + } } elsif ($cb[$i] == -1) { $dispfunb = ($dispfunb)."- x^{$i}"; if ($i % 2 == 0) { @@ -277,7 +277,7 @@ if (($eoot+$eoob) % 2 == 0) { # Main text BEGIN_TEXT -Let \(f(x) = \displaystyle $dispfun\). +Let \(f(x) = \displaystyle $dispfun\). $PAR Determine \(f(-x)\) first and then determine whether the function is even, odd, or neither. Write ${BBOLD}even${EBOLD} if the function is even, ${BBOLD}odd${EBOLD} if the function is odd, and ${BBOLD}neither${EBOLD} if the function is neither even nor odd. $PAR diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Even_Odd_Symmetry/Determine_EOO_Polynomial_Random.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Even_Odd_Symmetry/Determine_EOO_Polynomial_Random.pg index 2714e3dfd4..b059774b11 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Even_Odd_Symmetry/Determine_EOO_Polynomial_Random.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Even_Odd_Symmetry/Determine_EOO_Polynomial_Random.pg @@ -26,7 +26,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -82,7 +82,7 @@ for ($i = $deg; $i >= 0; $i--) { $dispansfun = ($dispansfun)."x^{$i}"; } else { $dispansfun = ($dispansfun)."- x^{$i}"; - } + } } elsif ($c[$i] == -1) { $dispfun = ($dispfun)."- x^{$i}"; if ($i % 2 == 0) { @@ -171,7 +171,7 @@ $PAR Even/Odd/Neither: \{ans_rule(20)\} END_TEXT - + ################################################ diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Even_Odd_Symmetry/Determine_EOO_Rational_Neither.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Even_Odd_Symmetry/Determine_EOO_Rational_Neither.pg index 23f5193c26..a96c2b494b 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Even_Odd_Symmetry/Determine_EOO_Rational_Neither.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Even_Odd_Symmetry/Determine_EOO_Rational_Neither.pg @@ -28,7 +28,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -62,7 +62,7 @@ $anseoo = "neither"; # Main text BEGIN_TEXT -Let \($dispfun\). +Let \($dispfun\). $PAR Determine \(f(-x)\) first and then determine whether the function is even, odd, or neither. Write ${BBOLD}even${EBOLD} if the function is even, ${BBOLD}odd${EBOLD} if the function is odd, and ${BBOLD}neither${EBOLD} if the function is neither even nor odd. $PAR diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Even_Odd_Symmetry/Determine_EOO_Rational_Odd.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Even_Odd_Symmetry/Determine_EOO_Rational_Odd.pg index aaacb6266a..a4155a82d2 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Even_Odd_Symmetry/Determine_EOO_Rational_Odd.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Even_Odd_Symmetry/Determine_EOO_Rational_Odd.pg @@ -28,7 +28,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -62,7 +62,7 @@ $anseoo = "odd"; # Main text BEGIN_TEXT -Let \($dispfun\). +Let \($dispfun\). $PAR Determine \(f(-x)\) first and then determine whether the function is even, odd, or neither. Write ${BBOLD}even${EBOLD} if the function is even, ${BBOLD}odd${EBOLD} if the function is odd, and ${BBOLD}neither${EBOLD} if the function is neither even nor odd. $PAR diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Even_Odd_Symmetry/Find_Point_Symmetry.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Even_Odd_Symmetry/Find_Point_Symmetry.pg index 2208c763ea..107e867ffc 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Even_Odd_Symmetry/Find_Point_Symmetry.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Even_Odd_Symmetry/Find_Point_Symmetry.pg @@ -13,12 +13,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGcourse.pl" ); @@ -28,7 +28,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Point"); $x = random(-15,15); @@ -39,7 +39,7 @@ $oans = Point(-$x,-$y); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -54,7 +54,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($xans)->cmp()); ANS(Compute($yans)->cmp()); @@ -62,7 +62,7 @@ ANS(Compute($oans)->cmp()); BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("points","Click here for help entering points.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("points","Click here for help entering points.")\} END_TEXT ENDDOCUMENT(); diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Even_Odd_Symmetry/Graph_Even_Odd_Neither.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Even_Odd_Symmetry/Graph_Even_Odd_Neither.pg index 40fc1702e5..23a49f60e3 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Even_Odd_Symmetry/Graph_Even_Odd_Neither.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Even_Odd_Symmetry/Graph_Even_Odd_Neither.pg @@ -12,12 +12,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "parserImplicitPlane.pl", @@ -31,7 +31,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); Context()->strings->add(A=>{}, B=>{}, C=>{}, D=>{}, E=>{}, "none"=>{}); @@ -317,7 +317,7 @@ for ($j = 0; $j < 4; $j++) { $fun2->domain(0.01,$max); $fun2->steps(1500); } elsif ($eoo == 1) { - $a5 = random(1,2.5,0.5)*random(-1,1,2); + $a5 = random(1,2.5,0.5)*random(-1,1,2); $expns[$pos[$j]] = sub { my $x = shift(); if ($x != 0) {$a5/(($x))} }; push(@oans, $possans[$pos[$j]]); $hasodd = 1; @@ -353,12 +353,12 @@ $oans = List(@oans); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -369,7 +369,7 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR List the letters of the graphs above which represent graphs that are @@ -383,7 +383,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($eans)->cmp()); ANS(Compute($oans)->cmp()); diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Increasing_Decreasing/Box_Volume.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Increasing_Decreasing/Box_Volume.pg index e04ae13cea..bee4f2d9e6 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Increasing_Decreasing/Box_Volume.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Increasing_Decreasing/Box_Volume.pg @@ -15,12 +15,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "contextInequalities.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $a = random(3,12,1); @@ -111,7 +111,7 @@ $anslw = MultiAnswer($width,$length)->with( ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -128,7 +128,7 @@ $ECENTER $PAR A(n) \($a \mbox{ in} \times $b \mbox{ in}\) piece of cardboard has squares cut out of each corner in order to make a box (see Figure 1). Let \(x\) represent the length of a cut-out square (the height of the box). -$PAR +$PAR (a) Find a function \(V(x)\) for the volume of the box in terms of \(x\). $PAR $SPACE $SPACE $SPACE\(V(x) =\) \{ans_rule(20)\} @@ -149,7 +149,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($vol)->cmp()); ANS(Compute($domain)->cmp()); @@ -158,7 +158,7 @@ ANS(Compute($anslw)->cmp(tolType => 'absolute', tolerance => '.000000000001')); BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("formulas", "Click here for help entering formulas")\} or \{AnswerFormatHelp("inequalities", "click here for help entering inequalities")\}. It does not matter which side you choose to be the width or length of the box. + ${BBOLD}Help:${EBOLD} \{helpLink("formulas", "Click here for help entering formulas")\} or \{helpLink("inequalities", "click here for help entering inequalities")\}. It does not matter which side you choose to be the width or length of the box. END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Increasing_Decreasing/Corral.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Increasing_Decreasing/Corral.pg index e07a2d8f7f..46846677a6 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Increasing_Decreasing/Corral.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Increasing_Decreasing/Corral.pg @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "contextInequalities.pl", @@ -33,7 +33,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $secs = random(2,4); @@ -87,7 +87,7 @@ $fig2 = image(insertGraph($graph), width=>$gsize, height=>$gsize, tex_size=>500 ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -104,7 +104,7 @@ $ECENTER $PAR Tessa has $tfence ft of fencing available to construct a fence that will divide her garden into $dispsecs rectangular sections. Her house forms one side of the garden and \(x\) represents the width, as shown in Figure 1. -$PAR +$PAR (a) Express the total area of the $dispsecs sections as a function of x. $PAR $SPACE $SPACE $SPACE\(A(x) =\) \{ans_rule(20)\} @@ -124,7 +124,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($area)->cmp()); ANS(Compute($domain)->cmp()); diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Increasing_Decreasing/Inc_Dec_Const_Dom_Range_01.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Increasing_Decreasing/Inc_Dec_Const_Dom_Range_01.pg index fc1453ad2c..b27dcbebb0 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Increasing_Decreasing/Inc_Dec_Const_Dom_Range_01.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Increasing_Decreasing/Inc_Dec_Const_Dom_Range_01.pg @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "PGcourse.pl" @@ -31,7 +31,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -74,7 +74,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.7,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.7,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.7,'10', 'black', 'bottom', 'right')); @@ -115,7 +115,7 @@ for ($i = 0; $i < $numx; $i++) { $maxy = $yvals[$i]; } if ($miny > $yvals[$i]) { - $miny = $yvals[$i]; + $miny = $yvals[$i]; } } @@ -189,9 +189,9 @@ if ($rcirc == 1 && $lcirc == 1) { } if ($lclosed == 0 && $rclosed == 0) { $range = Compute("($miny,$maxy)"); -} elsif ($lclosed == 1 && $rclosed == 0) { +} elsif ($lclosed == 1 && $rclosed == 0) { $range = Compute("[$miny,$maxy)"); -} elsif ($lclosed == 0 && $rclosed == 1) { +} elsif ($lclosed == 0 && $rclosed == 1) { $range = Compute("($miny,$maxy]"); } else { $range = Compute("[$miny,$maxy]"); @@ -251,8 +251,8 @@ for ($i = 1; $i < $numx - 1; $i++) { push(@minima, $yvals[$i]); } elsif ($yvals[$i] > $yvals[$i-1] && $yvals[$i] > $yvals[$i+1]) { push(@maxima, $yvals[$i]); - } -} + } +} if (scalar(@maxima) == 0) { $maxima = List(String("none")); @@ -268,7 +268,7 @@ if (scalar(@minima) == 0) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -276,7 +276,7 @@ BEGIN_TEXT $PAR $BCENTER \{ image(insertGraph($graph), width=>$gsize, height=>$gsize, tex_size=>500 ); \} -$ECENTER +$ECENTER $PAR Given the graph of \(f(x)\) above, find the following and write your answers using interval notation: @@ -298,7 +298,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($domain)->cmp()); ANS(Compute($range)->cmp()); diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Increasing_Decreasing/Inc_Dec_Const_Dom_Range_02.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Increasing_Decreasing/Inc_Dec_Const_Dom_Range_02.pg index 9eb0a8a954..165cc421ed 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Increasing_Decreasing/Inc_Dec_Const_Dom_Range_02.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Increasing_Decreasing/Inc_Dec_Const_Dom_Range_02.pg @@ -19,12 +19,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "PGcourse.pl" @@ -36,7 +36,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxx = 11; @@ -136,7 +136,7 @@ if ($stop == 1) { $domain = Compute("(-inf,$x6)"); } else { $domain = Compute("(-inf,$x6]"); - } + } } else { $domain = Compute("(-inf,inf)"); } @@ -183,7 +183,7 @@ if ($stop == 1) { } ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -191,7 +191,7 @@ BEGIN_TEXT $PAR $BCENTER \{ image(insertGraph($graph), width=>$gsize, height=>$gsize, tex_size=>500 ); \} -$ECENTER +$ECENTER $PAR Given the graph of \(f(x)\) above, find the following and write your answers using interval notation: @@ -213,7 +213,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($domain)->cmp()); ANS(Compute($range)->cmp()); diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Increasing_Decreasing/Inc_Dec_Const_Dom_Range_03.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Increasing_Decreasing/Inc_Dec_Const_Dom_Range_03.pg index ebe142ed6f..a7158cd3c2 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Increasing_Decreasing/Inc_Dec_Const_Dom_Range_03.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Increasing_Decreasing/Inc_Dec_Const_Dom_Range_03.pg @@ -19,12 +19,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "PGcourse.pl" @@ -36,7 +36,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxx = 11; @@ -81,7 +81,7 @@ $y1 = non_zero_random(-4,3); $x2 = $x1 - random(1,2); $y2 = $y1 + (1,6); if ($x2 - $x1 == 1) { - $x3 = $x1 + 2; + $x3 = $x1 + 2; } else { $x3 = $x1 + 1; } @@ -170,7 +170,7 @@ $const = List(Compute("(-inf,$x1)")); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -178,7 +178,7 @@ BEGIN_TEXT $PAR $BCENTER \{ image(insertGraph($graph), width=>$gsize, height=>$gsize, tex_size=>500 ); \} -$ECENTER +$ECENTER $PAR Given the graph of \(f(x)\) above, find the following and write your answers using interval notation: @@ -200,7 +200,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($domain)->cmp()); ANS(Compute($range)->cmp()); diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Increasing_Decreasing/Inc_Dec_Const_Dom_Range_04.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Increasing_Decreasing/Inc_Dec_Const_Dom_Range_04.pg index fd20b9d032..1059b036cb 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Increasing_Decreasing/Inc_Dec_Const_Dom_Range_04.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Increasing_Decreasing/Inc_Dec_Const_Dom_Range_04.pg @@ -19,12 +19,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "PGcourse.pl" @@ -36,7 +36,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxXVal = 11; @@ -79,7 +79,7 @@ for ($j = 0; $j < 4; $j++) { $graph->lb(new Label(10,-0.1,'10', 'black', 'top','center')); $graph->lb(new Label(-5,-0.1,'-5', 'black', 'top','center')); $graph->lb(new Label(-10,-0.1,'-10', 'black', 'top','center')); - + $graph->lb(new Label(-0.1,0.7,'1', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,4.7,'5', 'black', 'bottom', 'right')); $graph->lb(new Label(-0.1,9.7,'10', 'black', 'bottom', 'right')); @@ -106,9 +106,9 @@ if ($y[3] - $y[2] < 0) { $y[4] = random($min+1, $y[3]-2); } do {$y[5] = random($min+2,$max-2)} until ($y[5] != $y[4]); -if ($y[4] < $y[5]) { - do {$y[6] = random($min+1,$max-1)} until ($y[6] < $y[5]); # forces -} else { # +if ($y[4] < $y[5]) { + do {$y[6] = random($min+1,$max-1)} until ($y[6] < $y[5]); # forces +} else { # do {$y[6] = random($min+1,$max-1)} until ($y[6] > $y[5]); # V shape } @@ -123,7 +123,7 @@ $graph->lineTo($x[6],$y[6],'blue',3); # draw dots, compute domain and range; $op[0] = random(0,1); # 0 - closed, 1 - open $op[1] = random(0,1); -if ($x[1] == $x[2]) { +if ($x[1] == $x[2]) { $op[2] = 1 - $op[1]; } else { $op[2] = random(0,1); @@ -290,7 +290,7 @@ $const = List(Compute("($x[0],$x[1])")); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -298,7 +298,7 @@ BEGIN_TEXT $PAR $BCENTER \{ image(insertGraph($graph), width=>$gsize, height=>$gsize, tex_size=>500 ); \} -$ECENTER +$ECENTER $PAR Given the graph of \(f(x)\) above, find the following and write your answers using interval notation: @@ -320,7 +320,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($domain)->cmp()); ANS(Compute($range)->cmp()); diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Increasing_Decreasing/Inc_Dec_Const_Dom_Range_05.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Increasing_Decreasing/Inc_Dec_Const_Dom_Range_05.pg index 313666fe5f..7708ce6286 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Increasing_Decreasing/Inc_Dec_Const_Dom_Range_05.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Increasing_Decreasing/Inc_Dec_Const_Dom_Range_05.pg @@ -15,12 +15,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "PGcourse.pl" @@ -32,7 +32,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxx = 11; @@ -102,7 +102,7 @@ if ($x1 > -6) { } # graph everything -$flipx = 1; # random(0,1); # 0 - no flip, 1 - flip x, +$flipx = 1; # random(0,1); # 0 - no flip, 1 - flip x, $flipy = 0;#random(0,1); # 0 - no flip, 1 - flip y if ($flipx == 1) { @@ -283,7 +283,7 @@ if ($flipy == 0) { $range = List(Compute("[$y1,$y1]U($y4,$y3]")); } else { $range = List(Compute("[$y1,$y1]U[$y4,$y3]")); - } + } } if ($flipx == 0) { @@ -324,7 +324,7 @@ if ($flipx == 0) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -332,7 +332,7 @@ BEGIN_TEXT $PAR $BCENTER \{ image(insertGraph($graph), width=>$gsize, height=>$gsize, tex_size=>500 ); \} -$ECENTER +$ECENTER $PAR Given the graph of \(f(x)\) above, find the following and write your answers using interval notation: @@ -354,7 +354,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($domain)->cmp()); ANS(Compute($range)->cmp()); diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Piecewise/Three_Lines_Left_Piece_Constant.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Piecewise/Three_Lines_Left_Piece_Constant.pg index f4e01b60bb..4596ad8c01 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Piecewise/Three_Lines_Left_Piece_Constant.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Piecewise/Three_Lines_Left_Piece_Constant.pg @@ -16,13 +16,13 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGgraphmacros.pl", "unionTables.pl", "parserPopUp.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxx = 16; @@ -139,7 +139,7 @@ $showpiecewise = ); $x1=Real($x1); $x2=Real($x2); $x3=Real($x3); -$y11=Real($y11); $y12=Real($y12); $y21=Real($y21); $y22=Real($y22); +$y11=Real($y11); $y12=Real($y12); $y21=Real($y21); $y22=Real($y22); $y3=Real($y3); $m1=($y21 - $y12)/($x2 - $x1); @@ -200,7 +200,7 @@ $piece3=Formula("$m2*(x-$x2)+$y22")->reduce; # $tmp3 = -$b1num; # if ($b1den == 1) { # $dispeq1 = ($dispeq1)."- $tmp3"; -# } else { +# } else { # $dispeq1 = ($dispeq1)."- \frac{$tmp3}{$b1den}"; # } #} else { @@ -235,7 +235,7 @@ $piece3=Formula("$m2*(x-$x2)+$y22")->reduce; # ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -244,7 +244,7 @@ $PAR $BCENTER \{ image(insertGraph($graph), width=>$gsize, height=>$gsize, tex_size=>500 ); \} -$ECENTER +$ECENTER $PAR The graph of a piecewise function, \(f(x)\), is depicted above. Find its equation: @@ -260,7 +260,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($piece1->cmp()); ANS($ineq1->cmp()); diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Piecewise/Three_Lines_Middle_Piece_Constant.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Piecewise/Three_Lines_Middle_Piece_Constant.pg index 38053337e6..c316c82d7f 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Piecewise/Three_Lines_Middle_Piece_Constant.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Piecewise/Three_Lines_Middle_Piece_Constant.pg @@ -15,12 +15,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "contextFraction.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxx = 16; @@ -195,7 +195,7 @@ if ($b1num < 0) { $tmp3 = -$b1num; if ($b1den == 1) { $dispeq1 = ($dispeq1)."- $tmp3"; - } else { + } else { $dispeq1 = ($dispeq1)."- \frac{$tmp3}{$b1den}"; } } else { @@ -230,7 +230,7 @@ $dispeq2 & \quad & \mbox{for } x $ineq4ans $x3\\ ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -238,7 +238,7 @@ BEGIN_TEXT $PAR $BCENTER \{ image(insertGraph($graph), width=>$gsize, height=>$gsize, tex_size=>500 ); \} -$ECENTER +$ECENTER $PAR The graph of a piecewise function, \(f(x)\), is depicted above. Find its equation: @@ -254,7 +254,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($piece1)->cmp()); ANS($ineq1->cmp()); diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Piecewise/Three_Lines_Right_Piece_Constant.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Piecewise/Three_Lines_Right_Piece_Constant.pg index 8aa60ea0cf..1f4f479c02 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Piecewise/Three_Lines_Right_Piece_Constant.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Piecewise/Three_Lines_Right_Piece_Constant.pg @@ -15,12 +15,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "contextFraction.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $maxx = 16; @@ -189,7 +189,7 @@ if ($b1num < 0) { $tmp3 = -$b1num; if ($b1den == 1) { $dispeq1 = ($dispeq1)."- $tmp3"; - } else { + } else { $dispeq1 = ($dispeq1)."- \frac{$tmp3}{$b1den}"; } } else { @@ -224,7 +224,7 @@ $y32 & \quad & \mbox{for } x $ineq4ans $x3\\ ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -232,7 +232,7 @@ BEGIN_TEXT $PAR $BCENTER \{ image(insertGraph($graph), width=>$gsize, height=>$gsize, tex_size=>500 ); \} -$ECENTER +$ECENTER $PAR The graph of a piecewise function, \(f(x)\), is depicted above. Find its equation: @@ -248,7 +248,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($piece1)->cmp()); ANS($ineq1->cmp()); diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Testing/DiscreteAlwaysAFunction.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Testing/DiscreteAlwaysAFunction.pg index 4ce1165fdd..e4a3d315fe 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Testing/DiscreteAlwaysAFunction.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Functions_Testing/DiscreteAlwaysAFunction.pg @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGunion.pl", "PGcourse.pl" @@ -82,7 +82,7 @@ ANS( String("Yes")->cmp() ); ANS( Compute($domain)->cmp() ); ANS( Compute($r)-> cmp() ); - + Context("Numeric"); ################################################ # Main text diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Graphing_Basics/PointGraph.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Graphing_Basics/PointGraph.pg index 3bec62193f..1026a8ffb9 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Graphing_Basics/PointGraph.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Graphing_Basics/PointGraph.pg @@ -27,7 +27,7 @@ loadMacros( "PGstandard.pl", "PGgraphmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "parserPopUp.pl", "PGcourse.pl" @@ -72,7 +72,7 @@ for ($i = 0; $i < 5; $i++) { $tryAgain = 0; # reject if ($xVals[$i],$yVals[$i]) was previously assigned for ($j=0; $j<$i; $j++) { - $tryAgain = 1 if ($xVals[$j]==$xVals[$i] && $yVals[$j]==$yVals[$i]); + $tryAgain = 1 if ($xVals[$j]==$xVals[$i] && $yVals[$j]==$yVals[$i]); } } until ($tryAgain == 0); } @@ -82,18 +82,18 @@ for ($i = 0; $i < 5; $i++) { if ($xVals[$i] == 0 && $yVals[$i] == 0) { $pop[$i] = PopUp(["select", "QI", "QII", "QIII", "QIV", "x-axis", "y-axis", "origin"], "origin"); } elsif ($xVals[$i] == 0) { - $pop[$i] = PopUp(["select", "QI", "QII", "QIII", "QIV", "x-axis", "y-axis", "origin"], "y-axis"); + $pop[$i] = PopUp(["select", "QI", "QII", "QIII", "QIV", "x-axis", "y-axis", "origin"], "y-axis"); } elsif ($yVals[$i] == 0) { $pop[$i] = PopUp(["select", "QI", "QII", "QIII", "QIV", "x-axis", "y-axis", "origin"], "x-axis"); } elsif ($xVals[$i] > 0) { if ($yVals[$i] > 0) { - $pop[$i] = PopUp(["select", "QI", "QII", "QIII", "QIV", "x-axis", "y-axis", "origin"], "QI"); + $pop[$i] = PopUp(["select", "QI", "QII", "QIII", "QIV", "x-axis", "y-axis", "origin"], "QI"); } else { $pop[$i] = PopUp(["select", "QI", "QII", "QIII", "QIV", "x-axis", "y-axis", "origin"], "QIV"); } } elsif ($xVals[$i] < 0) { if ($yVals[$i] > 0) { - $pop[$i] = PopUp(["select", "QI", "QII", "QIII", "QIV", "x-axis", "y-axis", "origin"], "QII"); + $pop[$i] = PopUp(["select", "QI", "QII", "QIII", "QIV", "x-axis", "y-axis", "origin"], "QII"); } else { $pop[$i] = PopUp(["select", "QI", "QII", "QIII", "QIV", "x-axis", "y-axis", "origin"], "QIII"); } diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Graphing_Polynomials/Find_Factored_Form_From_Graph.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Graphing_Polynomials/Find_Factored_Form_From_Graph.pg index e55d9f9687..6328b44aea 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Graphing_Polynomials/Find_Factored_Form_From_Graph.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Graphing_Polynomials/Find_Factored_Form_From_Graph.pg @@ -17,12 +17,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "parserMultiAnswer.pl", @@ -37,7 +37,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $c1 = random(3,5); @@ -212,7 +212,7 @@ if ($c1 == 4) { $z3 = 0; $z4 = 0; } elsif ($c3 == 3) { - # setting $num and $den here solves an issue brought + # setting $num and $den here solves an issue brought # up by a student $a = 1; $z1 = 4; @@ -351,7 +351,7 @@ if ($c1 == 4) { if ($z1 == $z2) { $dispans = ($dispans)."(x-$z1)^2"; } else { - $dispans = ($dispans)."(x-$z1)(x-$z2)"; + $dispans = ($dispans)."(x-$z1)(x-$z2)"; } } elsif ($z4 == 0) { $dispans = ($dispans)."x"; @@ -552,7 +552,7 @@ if ($c1 == 5) { if ($z1 == $z2) { $dispans = ($dispans)."(x-$z1)^2(x-$z3)"; } else { - $dispans = ($dispans)."(x-$z1)(x-$z2)(x-$z3)"; + $dispans = ($dispans)."(x-$z1)(x-$z2)(x-$z3)"; } } elsif ($z5 == 0) { $dispans = ($dispans)."x"; @@ -581,7 +581,7 @@ if ($c1 == 5) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -589,7 +589,7 @@ BEGIN_TEXT $PAR $BCENTER \{ image($imgname, width=>$width*3/5, height=>$height*3/5, tex_size=>300 ); \} -$ECENTER +$ECENTER $PAR Determine the equation of the polynomial, \(f(x)\), of minimum degree whose graph is shown above. Write your answer in factored form. @@ -599,14 +599,14 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($ans)->cmp()); BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("formulas", "Click here for help entering formulas.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("formulas", "Click here for help entering formulas.")\} $BR END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Graphing_Polynomials/Find_Factored_Form_From_Graph_Deg_3.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Graphing_Polynomials/Find_Factored_Form_From_Graph_Deg_3.pg index 3130da5faa..8b3b5ad9d1 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Graphing_Polynomials/Find_Factored_Form_From_Graph_Deg_3.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Graphing_Polynomials/Find_Factored_Form_From_Graph_Deg_3.pg @@ -18,12 +18,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "parserMultiAnswer.pl", @@ -38,7 +38,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $c1 = 3; #random(3,5); @@ -350,7 +350,7 @@ if ($c1 == 4) { if ($z1 == $z2) { $dispans = ($dispans)."(x-$z1)^2"; } else { - $dispans = ($dispans)."(x-$z1)(x-$z2)"; + $dispans = ($dispans)."(x-$z1)(x-$z2)"; } } elsif ($z4 == 0) { $dispans = ($dispans)."x"; @@ -551,7 +551,7 @@ if ($c1 == 5) { if ($z1 == $z2) { $dispans = ($dispans)."(x-$z1)^2(x-$z3)"; } else { - $dispans = ($dispans)."(x-$z1)(x-$z2)(x-$z3)"; + $dispans = ($dispans)."(x-$z1)(x-$z2)(x-$z3)"; } } elsif ($z5 == 0) { $dispans = ($dispans)."x"; @@ -580,7 +580,7 @@ if ($c1 == 5) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -588,7 +588,7 @@ BEGIN_TEXT $PAR $BCENTER \{ image($imgname, width=>$width*3/5, height=>$height*3/5, tex_size=>300 ); \} -$ECENTER +$ECENTER $PAR Determine the equation of the polynomial, \(f(x)\), of minimum degree whose graph is shown above. Write your answer in factored form. @@ -598,14 +598,14 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($ans)->cmp()); BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("formulas", "Click here for help entering formulas.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("formulas", "Click here for help entering formulas.")\} $BR END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Graphing_Polynomials/Find_Factored_Form_From_Graph_Deg_4.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Graphing_Polynomials/Find_Factored_Form_From_Graph_Deg_4.pg index 383cb45f85..01c9e44b54 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Graphing_Polynomials/Find_Factored_Form_From_Graph_Deg_4.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Graphing_Polynomials/Find_Factored_Form_From_Graph_Deg_4.pg @@ -16,12 +16,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "parserMultiAnswer.pl", @@ -36,7 +36,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $c1 = 4; #random(3,5); @@ -349,7 +349,7 @@ if ($c1 == 4) { if ($z1 == $z2) { $dispans = ($dispans)."(x-$z1)^2"; } else { - $dispans = ($dispans)."(x-$z1)(x-$z2)"; + $dispans = ($dispans)."(x-$z1)(x-$z2)"; } } elsif ($z4 == 0) { $dispans = ($dispans)."x"; @@ -550,7 +550,7 @@ if ($c1 == 5) { if ($z1 == $z2) { $dispans = ($dispans)."(x-$z1)^2(x-$z3)"; } else { - $dispans = ($dispans)."(x-$z1)(x-$z2)(x-$z3)"; + $dispans = ($dispans)."(x-$z1)(x-$z2)(x-$z3)"; } } elsif ($z5 == 0) { $dispans = ($dispans)."x"; @@ -579,7 +579,7 @@ if ($c1 == 5) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -587,7 +587,7 @@ BEGIN_TEXT $PAR $BCENTER \{ image($imgname, width=>$width*3/5, height=>$height*3/5, tex_size=>300 ); \} -$ECENTER +$ECENTER $PAR Determine the equation of the polynomial, \(f(x)\), of minimum degree whose graph is shown above. Write your answer in factored form. @@ -597,14 +597,14 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($ans)->cmp()); BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("formulas", "Click here for help entering formulas.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("formulas", "Click here for help entering formulas.")\} $BR END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Graphing_Polynomials/Find_Factored_Form_From_Graph_Deg_5.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Graphing_Polynomials/Find_Factored_Form_From_Graph_Deg_5.pg index 2e09919744..6ab08fb18a 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Graphing_Polynomials/Find_Factored_Form_From_Graph_Deg_5.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Graphing_Polynomials/Find_Factored_Form_From_Graph_Deg_5.pg @@ -15,12 +15,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "parserMultiAnswer.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $c1 = 5; #random(3,5); @@ -347,7 +347,7 @@ if ($c1 == 4) { if ($z1 == $z2) { $dispans = ($dispans)."(x-$z1)^2"; } else { - $dispans = ($dispans)."(x-$z1)(x-$z2)"; + $dispans = ($dispans)."(x-$z1)(x-$z2)"; } } elsif ($z4 == 0) { $dispans = ($dispans)."x"; @@ -548,7 +548,7 @@ if ($c1 == 5) { if ($z1 == $z2) { $dispans = ($dispans)."(x-$z1)^2(x-$z3)"; } else { - $dispans = ($dispans)."(x-$z1)(x-$z2)(x-$z3)"; + $dispans = ($dispans)."(x-$z1)(x-$z2)(x-$z3)"; } } elsif ($z5 == 0) { $dispans = ($dispans)."x"; @@ -577,7 +577,7 @@ if ($c1 == 5) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -585,7 +585,7 @@ BEGIN_TEXT $PAR $BCENTER \{ image($imgname, width=>$width*3/5, height=>$height*3/5, tex_size=>300 ); \} -$ECENTER +$ECENTER $PAR Determine the equation of the polynomial, \(f(x)\), of minimum degree whose graph is shown above. Write your answer in factored form. @@ -595,14 +595,14 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($ans)->cmp()); BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("formulas", "Click here for help entering formulas.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("formulas", "Click here for help entering formulas.")\} $BR END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Graphing_Polynomials/Find_Factored_Form_From_Graph_Random_Deg_4_5.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Graphing_Polynomials/Find_Factored_Form_From_Graph_Random_Deg_4_5.pg index b17c6b29b4..c548049f3d 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Graphing_Polynomials/Find_Factored_Form_From_Graph_Random_Deg_4_5.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Graphing_Polynomials/Find_Factored_Form_From_Graph_Random_Deg_4_5.pg @@ -15,12 +15,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "parserMultiAnswer.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $c1 = random(4,5); @@ -347,7 +347,7 @@ if ($c1 == 4) { if ($z1 == $z2) { $dispans = ($dispans)."(x-$z1)^2"; } else { - $dispans = ($dispans)."(x-$z1)(x-$z2)"; + $dispans = ($dispans)."(x-$z1)(x-$z2)"; } } elsif ($z4 == 0) { $dispans = ($dispans)."x"; @@ -548,7 +548,7 @@ if ($c1 == 5) { if ($z1 == $z2) { $dispans = ($dispans)."(x-$z1)^2(x-$z3)"; } else { - $dispans = ($dispans)."(x-$z1)(x-$z2)(x-$z3)"; + $dispans = ($dispans)."(x-$z1)(x-$z2)(x-$z3)"; } } elsif ($z5 == 0) { $dispans = ($dispans)."x"; @@ -577,7 +577,7 @@ if ($c1 == 5) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -585,7 +585,7 @@ BEGIN_TEXT $PAR $BCENTER \{ image($imgname, width=>$width*3/5, height=>$height*3/5, tex_size=>300 ); \} -$ECENTER +$ECENTER $PAR Determine the equation of the polynomial, \(f(x)\), of minimum degree whose graph is shown above. Write your answer in factored form. @@ -595,14 +595,14 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($ans)->cmp()); BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("formulas", "Click here for help entering formulas.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("formulas", "Click here for help entering formulas.")\} $BR END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Graphing_Polynomials/MC_Find_Graph.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Graphing_Polynomials/MC_Find_Graph.pg index 8306337d66..54601ae9be 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Graphing_Polynomials/MC_Find_Graph.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Graphing_Polynomials/MC_Find_Graph.pg @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "parserMultiAnswer.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $c1 = random(3,5); @@ -352,7 +352,7 @@ if ($c1 == 4) { if ($z1 == $z2) { $dispans = ($dispans)."(x-$z1)^2"; } else { - $dispans = ($dispans)."(x-$z1)(x-$z2)"; + $dispans = ($dispans)."(x-$z1)(x-$z2)"; } } elsif ($z4 == 0) { $dispans = ($dispans)."x"; @@ -552,7 +552,7 @@ if ($c1 == 5) { if ($z1 == $z2) { $dispans = ($dispans)."(x-$z1)^2(x-$z3)"; } else { - $dispans = ($dispans)."(x-$z1)(x-$z2)(x-$z3)"; + $dispans = ($dispans)."(x-$z1)(x-$z2)(x-$z3)"; } } elsif ($z5 == 0) { $dispans = ($dispans)."x"; @@ -579,14 +579,14 @@ if ($c1 == 5) { } ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $PAR $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -597,10 +597,10 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR -Given that +Given that $PAR \[ f(x) = $dispans @@ -614,7 +614,7 @@ Context()->normalStrings; ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($ans)->cmp()); diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Graphing_Polynomials/MC_Find_Graph_Factored_Deg_3.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Graphing_Polynomials/MC_Find_Graph_Factored_Deg_3.pg index e17fda8a71..52a24fc8f1 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Graphing_Polynomials/MC_Find_Graph_Factored_Deg_3.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Graphing_Polynomials/MC_Find_Graph_Factored_Deg_3.pg @@ -15,12 +15,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "parserMultiAnswer.pl", @@ -36,7 +36,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $c1 = 3; #random(3,5); @@ -73,7 +73,7 @@ for ($i = 1; $i < 4; $i++) { for ($j = 0; $j < $i; $j++) { if ($choices[$pos[$j]] == $choices[$pos[$i]]) { $i--; - } + } } } @@ -93,25 +93,25 @@ $ans = $possans[$pos[0]]; if ($c1 == 3) { if ($c2 == 1) { if ($c3 == 1) { - $dispeqn = "f(x) = -2(x+1)(x-1)(x-4)"; + $dispeqn = "f(x) = -2(x+1)(x-1)(x-4)"; } elsif ($c3 == 2) { - $dispeqn = "f(x) = -2(x+1)(x-1)(x+4)"; + $dispeqn = "f(x) = -2(x+1)(x-1)(x+4)"; } elsif ($c3 == 3) { $dispeqn = "f(x) = 2(x+1)(x-1)(x-4)"; } elsif ($c3 == 4) { - $dispeqn = "f(x) = 2(x+1)(x-1)(x+4)"; + $dispeqn = "f(x) = 2(x+1)(x-1)(x+4)"; } elsif ($c3 == 5) { - $dispeqn = "f(x) = -(x-2)(x-1)(x+4)"; + $dispeqn = "f(x) = -(x-2)(x-1)(x+4)"; } elsif ($c3 == 6) { - $dispeqn = "f(x) =-(x+2)(x-1)(x-4)"; + $dispeqn = "f(x) =-(x+2)(x-1)(x-4)"; } elsif ($c3 == 7) { - $dispeqn = "f(x) = -2(x-1)^2(x-4)"; + $dispeqn = "f(x) = -2(x-1)^2(x-4)"; } elsif ($c3 == 8) { - $dispeqn = "f(x) = -2(x-1)^2(x+4)"; + $dispeqn = "f(x) = -2(x-1)^2(x+4)"; } elsif ($c3 == 9) { - $dispeqn = "f(x) = (x-2)(x-1)(x+4)"; + $dispeqn = "f(x) = (x-2)(x-1)(x+4)"; } elsif ($c3 == 10) { - $dispeqn = "f(x) = (x+2)(x-1)(x-4)"; + $dispeqn = "f(x) = (x+2)(x-1)(x-4)"; } } } @@ -119,37 +119,37 @@ if ($c1 == 3) { if ($c1 == 4) { if ($c2 == 1) { if ($c3 == 1) { - $dispeqn = "f(x) = (x+3)(x-3)(x+2)(x-2)"; + $dispeqn = "f(x) = (x+3)(x-3)(x+2)(x-2)"; } elsif ($c3 == 2) { - $dispeqn = "f(x) = (x-3)^2(x+2)^2"; + $dispeqn = "f(x) = (x-3)^2(x+2)^2"; } elsif ($c3 == 3) { $dispeqn = "f(x) = (x+3)^2(x-2)^2"; } elsif ($c3 == 4) { - $dispeqn = "f(x) = x^2(x-3)(x+2)"; + $dispeqn = "f(x) = x^2(x-3)(x+2)"; } elsif ($c3 == 5) { - $dispeqn = "f(x) = x^2(x+3)(x-2)"; + $dispeqn = "f(x) = x^2(x+3)(x-2)"; } elsif ($c3 == 6) { - $dispeqn = "f(x) = x(x+3)(x-3)(x-2)"; + $dispeqn = "f(x) = x(x+3)(x-3)(x-2)"; } elsif ($c3 == 7) { - $dispeqn = "f(x) = x(x+3)(x-3)(x+2)"; + $dispeqn = "f(x) = x(x+3)(x-3)(x+2)"; } elsif ($c3 == 8) { - $dispeqn = "f(x) = x(x-3)(x+2)(x-2)"; + $dispeqn = "f(x) = x(x-3)(x+2)(x-2)"; } elsif ($c3 == 9) { - $dispeqn = "f(x) = x(x+3)(x+2)(x-2)"; + $dispeqn = "f(x) = x(x+3)(x+2)(x-2)"; } } } ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $PAR $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -160,10 +160,10 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR -Given that +Given that $PAR \[ $dispeqn @@ -177,7 +177,7 @@ Context()->normalStrings; ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($ans)->cmp()); diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Graphing_Polynomials/MC_Find_Graph_Factored_Deg_4.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Graphing_Polynomials/MC_Find_Graph_Factored_Deg_4.pg index c3ca5022b4..7b0c22e28d 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Graphing_Polynomials/MC_Find_Graph_Factored_Deg_4.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Graphing_Polynomials/MC_Find_Graph_Factored_Deg_4.pg @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "parserMultiAnswer.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $c1 = 4; #random(3,5); #degree @@ -72,7 +72,7 @@ for ($i = 1; $i < 4; $i++) { for ($j = 0; $j < $i; $j++) { if ($choices[$pos[$j]] == $choices[$pos[$i]]) { $i--; - } + } } } @@ -92,25 +92,25 @@ $ans = $possans[$pos[0]]; if ($c1 == 3) { if ($c2 == 1) { if ($c3 == 1) { - $dispeqn = "f(x) = -2(x+1)(x-1)(x-4)"; + $dispeqn = "f(x) = -2(x+1)(x-1)(x-4)"; } elsif ($c3 == 2) { - $dispeqn = "f(x) = -2(x+1)(x-1)(x+4)"; + $dispeqn = "f(x) = -2(x+1)(x-1)(x+4)"; } elsif ($c3 == 3) { $dispeqn = "f(x) = 2(x+1)(x-1)(x-4)"; } elsif ($c3 == 4) { - $dispeqn = "f(x) = 2(x+1)(x-1)(x+4)"; + $dispeqn = "f(x) = 2(x+1)(x-1)(x+4)"; } elsif ($c3 == 5) { - $dispeqn = "f(x) = -(x-2)(x-1)(x+4)"; + $dispeqn = "f(x) = -(x-2)(x-1)(x+4)"; } elsif ($c3 == 6) { - $dispeqn = "f(x) =-(x+2)(x-1)(x-4)"; + $dispeqn = "f(x) =-(x+2)(x-1)(x-4)"; } elsif ($c3 == 7) { - $dispeqn = "f(x) = -2(x-1)^2(x-4)"; + $dispeqn = "f(x) = -2(x-1)^2(x-4)"; } elsif ($c3 == 8) { - $dispeqn = "f(x) = -2(x-1)^2(x+4)"; + $dispeqn = "f(x) = -2(x-1)^2(x+4)"; } elsif ($c3 == 9) { - $dispeqn = "f(x) = (x-2)(x-1)(x+4)"; + $dispeqn = "f(x) = (x-2)(x-1)(x+4)"; } elsif ($c3 == 10) { - $dispeqn = "f(x) = (x+2)(x-1)(x-4)"; + $dispeqn = "f(x) = (x+2)(x-1)(x-4)"; } } } @@ -118,37 +118,37 @@ if ($c1 == 3) { if ($c1 == 4) { if ($c2 == 1) { if ($c3 == 1) { - $dispeqn = "f(x) = (x+3)(x-3)(x+2)(x-2)"; + $dispeqn = "f(x) = (x+3)(x-3)(x+2)(x-2)"; } elsif ($c3 == 2) { - $dispeqn = "f(x) = (x-3)^2(x+2)^2"; + $dispeqn = "f(x) = (x-3)^2(x+2)^2"; } elsif ($c3 == 3) { $dispeqn = "f(x) = (x+3)^2(x-2)^2"; } elsif ($c3 == 4) { - $dispeqn = "f(x) = x^2(x-3)(x+2)"; + $dispeqn = "f(x) = x^2(x-3)(x+2)"; } elsif ($c3 == 5) { - $dispeqn = "f(x) = x^2(x+3)(x-2)"; + $dispeqn = "f(x) = x^2(x+3)(x-2)"; } elsif ($c3 == 6) { - $dispeqn = "f(x) = x(x+3)(x-3)(x-2)"; + $dispeqn = "f(x) = x(x+3)(x-3)(x-2)"; } elsif ($c3 == 7) { - $dispeqn = "f(x) = x(x+3)(x-3)(x+2)"; + $dispeqn = "f(x) = x(x+3)(x-3)(x+2)"; } elsif ($c3 == 8) { - $dispeqn = "f(x) = x(x-3)(x+2)(x-2)"; + $dispeqn = "f(x) = x(x-3)(x+2)(x-2)"; } elsif ($c3 == 9) { - $dispeqn = "f(x) = x(x+3)(x+2)(x-2)"; + $dispeqn = "f(x) = x(x+3)(x+2)(x-2)"; } } } ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $PAR $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -159,10 +159,10 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR -Given that +Given that $PAR \[ $dispeqn @@ -176,7 +176,7 @@ Context()->normalStrings; ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($ans)->cmp()); diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Graphing_Polynomials/MC_Find_Graph_Factored_Random_Deg_3_4.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Graphing_Polynomials/MC_Find_Graph_Factored_Random_Deg_3_4.pg index a4c2c70c0d..70e1860439 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Graphing_Polynomials/MC_Find_Graph_Factored_Random_Deg_3_4.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Graphing_Polynomials/MC_Find_Graph_Factored_Random_Deg_3_4.pg @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "parserMultiAnswer.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $c1 = random(3,4); #degree @@ -72,7 +72,7 @@ for ($i = 1; $i < 4; $i++) { for ($j = 0; $j < $i; $j++) { if ($choices[$pos[$j]] == $choices[$pos[$i]]) { $i--; - } + } } } @@ -92,25 +92,25 @@ $ans = $possans[$pos[0]]; if ($c1 == 3) { if ($c2 == 1) { if ($c3 == 1) { - $dispeqn = "f(x) = -2(x+1)(x-1)(x-4)"; + $dispeqn = "f(x) = -2(x+1)(x-1)(x-4)"; } elsif ($c3 == 2) { - $dispeqn = "f(x) = -2(x+1)(x-1)(x+4)"; + $dispeqn = "f(x) = -2(x+1)(x-1)(x+4)"; } elsif ($c3 == 3) { $dispeqn = "f(x) = 2(x+1)(x-1)(x-4)"; } elsif ($c3 == 4) { - $dispeqn = "f(x) = 2(x+1)(x-1)(x+4)"; + $dispeqn = "f(x) = 2(x+1)(x-1)(x+4)"; } elsif ($c3 == 5) { - $dispeqn = "f(x) = -(x-2)(x-1)(x+4)"; + $dispeqn = "f(x) = -(x-2)(x-1)(x+4)"; } elsif ($c3 == 6) { - $dispeqn = "f(x) =-(x+2)(x-1)(x-4)"; + $dispeqn = "f(x) =-(x+2)(x-1)(x-4)"; } elsif ($c3 == 7) { - $dispeqn = "f(x) = -2(x-1)^2(x-4)"; + $dispeqn = "f(x) = -2(x-1)^2(x-4)"; } elsif ($c3 == 8) { - $dispeqn = "f(x) = -2(x-1)^2(x+4)"; + $dispeqn = "f(x) = -2(x-1)^2(x+4)"; } elsif ($c3 == 9) { - $dispeqn = "f(x) = (x-2)(x-1)(x+4)"; + $dispeqn = "f(x) = (x-2)(x-1)(x+4)"; } elsif ($c3 == 10) { - $dispeqn = "f(x) = (x+2)(x-1)(x-4)"; + $dispeqn = "f(x) = (x+2)(x-1)(x-4)"; } } } @@ -118,37 +118,37 @@ if ($c1 == 3) { if ($c1 == 4) { if ($c2 == 1) { if ($c3 == 1) { - $dispeqn = "f(x) = (x+3)(x-3)(x+2)(x-2)"; + $dispeqn = "f(x) = (x+3)(x-3)(x+2)(x-2)"; } elsif ($c3 == 2) { - $dispeqn = "f(x) = (x-3)^2(x+2)^2"; + $dispeqn = "f(x) = (x-3)^2(x+2)^2"; } elsif ($c3 == 3) { $dispeqn = "f(x) = (x+3)^2(x-2)^2"; } elsif ($c3 == 4) { - $dispeqn = "f(x) = x^2(x-3)(x+2)"; + $dispeqn = "f(x) = x^2(x-3)(x+2)"; } elsif ($c3 == 5) { - $dispeqn = "f(x) = x^2(x+3)(x-2)"; + $dispeqn = "f(x) = x^2(x+3)(x-2)"; } elsif ($c3 == 6) { - $dispeqn = "f(x) = x(x+3)(x-3)(x-2)"; + $dispeqn = "f(x) = x(x+3)(x-3)(x-2)"; } elsif ($c3 == 7) { - $dispeqn = "f(x) = x(x+3)(x-3)(x+2)"; + $dispeqn = "f(x) = x(x+3)(x-3)(x+2)"; } elsif ($c3 == 8) { - $dispeqn = "f(x) = x(x-3)(x+2)(x-2)"; + $dispeqn = "f(x) = x(x-3)(x+2)(x-2)"; } elsif ($c3 == 9) { - $dispeqn = "f(x) = x(x+3)(x+2)(x-2)"; + $dispeqn = "f(x) = x(x+3)(x+2)(x-2)"; } } } ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $PAR $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -159,10 +159,10 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR -Given that +Given that $PAR \[ $dispeqn @@ -176,7 +176,7 @@ Context()->normalStrings; ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($ans)->cmp()); diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Graphing_Polynomials/MC_Find_Graph_Not_Factored_Deg_3.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Graphing_Polynomials/MC_Find_Graph_Not_Factored_Deg_3.pg index 039b2ebaad..ef6c9263f8 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Graphing_Polynomials/MC_Find_Graph_Not_Factored_Deg_3.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Graphing_Polynomials/MC_Find_Graph_Not_Factored_Deg_3.pg @@ -15,12 +15,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "parserMultiAnswer.pl", @@ -36,7 +36,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $c1 = 3; #random(3,5); @@ -73,7 +73,7 @@ for ($i = 1; $i < 4; $i++) { for ($j = 0; $j < $i; $j++) { if ($choices[$pos[$j]] == $choices[$pos[$i]]) { $i--; - } + } } } @@ -93,13 +93,13 @@ $ans = $possans[$pos[0]]; if ($c1 == 3) { if ($c2 == 1) { if ($c3 == 1) { - $dispeqn = "f(x) = -2x^3+8x^2+2x-8"; + $dispeqn = "f(x) = -2x^3+8x^2+2x-8"; } elsif ($c3 == 2) { - $dispeqn = "f(x) = -2x^3-8x^2+2x+8"; + $dispeqn = "f(x) = -2x^3-8x^2+2x+8"; } elsif ($c3 == 3) { $dispeqn = "f(x) = 2x^3-8x^2-2x+8"; } elsif ($c3 == 4) { - $dispeqn = "f(x) = 2x^3+8x^2-2x-8"; + $dispeqn = "f(x) = 2x^3+8x^2-2x-8"; } } } @@ -107,37 +107,37 @@ if ($c1 == 3) { if ($c1 == 4) { if ($c2 == 1) { if ($c3 == 1) { - $dispeqn = "f(x) = x^4-13x^2+36"; + $dispeqn = "f(x) = x^4-13x^2+36"; } elsif ($c3 == 2) { - $dispeqn = "f(x) = (x^2-x-6)^2"; + $dispeqn = "f(x) = (x^2-x-6)^2"; } elsif ($c3 == 3) { $dispeqn = "f(x) = (x^2+x-6)^2"; } elsif ($c3 == 4) { - $dispeqn = "f(x) = x^4-x^3-6x^2"; + $dispeqn = "f(x) = x^4-x^3-6x^2"; } elsif ($c3 == 5) { - $dispeqn = "f(x) = x^4+x^3-6x^2"; + $dispeqn = "f(x) = x^4+x^3-6x^2"; } elsif ($c3 == 6) { - $dispeqn = "f(x) = x^4-2x^3-9x^2+18x"; + $dispeqn = "f(x) = x^4-2x^3-9x^2+18x"; } elsif ($c3 == 7) { - $dispeqn = "f(x) = x^4+2x^3-9x^2-18x"; + $dispeqn = "f(x) = x^4+2x^3-9x^2-18x"; } elsif ($c3 == 8) { - $dispeqn = "f(x) = x^4-3x^3-4x^2+12x"; + $dispeqn = "f(x) = x^4-3x^3-4x^2+12x"; } elsif ($c3 == 9) { - $dispeqn = "f(x) = x^4+3x^3-4x^2-12x"; + $dispeqn = "f(x) = x^4+3x^3-4x^2-12x"; } } } ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $PAR $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -148,10 +148,10 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR -Given that +Given that $PAR \[ $dispeqn @@ -165,7 +165,7 @@ Context()->normalStrings; ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($ans)->cmp()); diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Graphing_Polynomials/MC_Find_Graph_Not_Factored_Deg_4.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Graphing_Polynomials/MC_Find_Graph_Not_Factored_Deg_4.pg index 4ced258822..4fa5e92848 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Graphing_Polynomials/MC_Find_Graph_Not_Factored_Deg_4.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Graphing_Polynomials/MC_Find_Graph_Not_Factored_Deg_4.pg @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "parserMultiAnswer.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $c1 = 4; #random(3,5); @@ -72,7 +72,7 @@ for ($i = 1; $i < 4; $i++) { for ($j = 0; $j < $i; $j++) { if ($choices[$pos[$j]] == $choices[$pos[$i]]) { $i--; - } + } } } @@ -92,13 +92,13 @@ $ans = $possans[$pos[0]]; if ($c1 == 3) { if ($c2 == 1) { if ($c3 == 1) { - $dispeqn = "f(x) = -2x^3+8x^2+2x-8"; + $dispeqn = "f(x) = -2x^3+8x^2+2x-8"; } elsif ($c3 == 2) { - $dispeqn = "f(x) = -2x^3-8x^2+2x+8"; + $dispeqn = "f(x) = -2x^3-8x^2+2x+8"; } elsif ($c3 == 3) { $dispeqn = "f(x) = 2x^3-8x^2-2x+8"; } elsif ($c3 == 4) { - $dispeqn = "f(x) = 2x^3+8x^2-2x-8"; + $dispeqn = "f(x) = 2x^3+8x^2-2x-8"; } } } @@ -106,37 +106,37 @@ if ($c1 == 3) { if ($c1 == 4) { if ($c2 == 1) { if ($c3 == 1) { - $dispeqn = "f(x) =x^4-13x^2+36"; + $dispeqn = "f(x) =x^4-13x^2+36"; } elsif ($c3 == 2) { - $dispeqn = "f(x) = (x^2-x-6)^2"; + $dispeqn = "f(x) = (x^2-x-6)^2"; } elsif ($c3 == 3) { $dispeqn = "f(x) = (x^2+x-6)^2"; } elsif ($c3 == 4) { - $dispeqn = "f(x) = x^4-x^3-6x^2"; + $dispeqn = "f(x) = x^4-x^3-6x^2"; } elsif ($c3 == 5) { - $dispeqn = "f(x) = x^4+x^3-6x^2"; + $dispeqn = "f(x) = x^4+x^3-6x^2"; } elsif ($c3 == 6) { - $dispeqn = "f(x) = x^4-2x^3-9x^2+18x"; + $dispeqn = "f(x) = x^4-2x^3-9x^2+18x"; } elsif ($c3 == 7) { - $dispeqn = "f(x) = x^4+2x^3-9x^2-18x"; + $dispeqn = "f(x) = x^4+2x^3-9x^2-18x"; } elsif ($c3 == 8) { - $dispeqn = "f(x) = x^4-3x^3-4x^2+12x"; + $dispeqn = "f(x) = x^4-3x^3-4x^2+12x"; } elsif ($c3 == 9) { - $dispeqn = "f(x) = x^4+3x^3-4x^2-12x"; + $dispeqn = "f(x) = x^4+3x^3-4x^2-12x"; } } } ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $PAR $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -147,10 +147,10 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR -Given that +Given that $PAR \[ $dispeqn @@ -164,7 +164,7 @@ Context()->normalStrings; ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($ans)->cmp()); diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Graphing_Polynomials/MC_Find_Graph_Not_Factored_Random_Deg_3_4.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Graphing_Polynomials/MC_Find_Graph_Not_Factored_Random_Deg_3_4.pg index f65b3c79f0..447707852c 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Graphing_Polynomials/MC_Find_Graph_Not_Factored_Random_Deg_3_4.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Graphing_Polynomials/MC_Find_Graph_Not_Factored_Random_Deg_3_4.pg @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "parserMultiAnswer.pl", @@ -35,7 +35,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); $c1 = random(3,4); @@ -72,7 +72,7 @@ for ($i = 1; $i < 4; $i++) { for ($j = 0; $j < $i; $j++) { if ($choices[$pos[$j]] == $choices[$pos[$i]]) { $i--; - } + } } } @@ -92,13 +92,13 @@ $ans = $possans[$pos[0]]; if ($c1 == 3) { if ($c2 == 1) { if ($c3 == 1) { - $dispeqn = "f(x) = -2x^3+8x^2+2x-8"; + $dispeqn = "f(x) = -2x^3+8x^2+2x-8"; } elsif ($c3 == 2) { - $dispeqn = "f(x) = -2x^3-8x^2+2x+8"; + $dispeqn = "f(x) = -2x^3-8x^2+2x+8"; } elsif ($c3 == 3) { $dispeqn = "f(x) = 2x^3-8x^2-2x+8"; } elsif ($c3 == 4) { - $dispeqn = "f(x) = 2x^3+8x^2-2x-8"; + $dispeqn = "f(x) = 2x^3+8x^2-2x-8"; } } } @@ -106,37 +106,37 @@ if ($c1 == 3) { if ($c1 == 4) { if ($c2 == 1) { if ($c3 == 1) { - $dispeqn = "f(x) =x^4-13x^2+36"; + $dispeqn = "f(x) =x^4-13x^2+36"; } elsif ($c3 == 2) { - $dispeqn = "f(x) = (x^2-x-6)^2"; + $dispeqn = "f(x) = (x^2-x-6)^2"; } elsif ($c3 == 3) { $dispeqn = "f(x) = (x^2+x-6)^2"; } elsif ($c3 == 4) { - $dispeqn = "f(x) = x^4-x^3-6x^2"; + $dispeqn = "f(x) = x^4-x^3-6x^2"; } elsif ($c3 == 5) { - $dispeqn = "f(x) = x^4+x^3-6x^2"; + $dispeqn = "f(x) = x^4+x^3-6x^2"; } elsif ($c3 == 6) { - $dispeqn = "f(x) = x^4-2x^3-9x^2+18x"; + $dispeqn = "f(x) = x^4-2x^3-9x^2+18x"; } elsif ($c3 == 7) { - $dispeqn = "f(x) = x^4+2x^3-9x^2-18x"; + $dispeqn = "f(x) = x^4+2x^3-9x^2-18x"; } elsif ($c3 == 8) { - $dispeqn = "f(x) = x^4-3x^3-4x^2+12x"; + $dispeqn = "f(x) = x^4-3x^3-4x^2+12x"; } elsif ($c3 == 9) { - $dispeqn = "f(x) = x^4+3x^3-4x^2-12x"; + $dispeqn = "f(x) = x^4+3x^3-4x^2-12x"; } } } ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $PAR $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], $figs[1]]). TableSpace(5,0). @@ -147,10 +147,10 @@ BeginTable(). AlignedRow(["C", "D"]). EndTable(); \} -$ECENTER +$ECENTER $PAR -Given that +Given that $PAR \[ $dispeqn @@ -164,7 +164,7 @@ Context()->normalStrings; ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($ans)->cmp()); diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Inequalities_Linear/Income_Plans.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Inequalities_Linear/Income_Plans.pg index a1a672207f..20e990d025 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Inequalities_Linear/Income_Plans.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Inequalities_Linear/Income_Plans.pg @@ -17,12 +17,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PeriodicRerandomization.pl", "contextCurrency.pl", @@ -36,7 +36,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); do { @@ -76,7 +76,7 @@ Context("Inequalities-Only"); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -93,7 +93,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($ans)->cmp()); @@ -114,7 +114,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { END_TEXT } Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); ENDDOCUMENT(); diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Inequalities_Rational/Ratl1.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Inequalities_Rational/Ratl1.pg index 4312e695b6..3a8c96f93c 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Inequalities_Rational/Ratl1.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Inequalities_Rational/Ratl1.pg @@ -29,7 +29,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -82,7 +82,7 @@ $ineq = " \frac{$var - $a}{$var + $b} $string 0 "; Context()->texStrings; BEGIN_TEXT -Solve the following inequality. Write your answer using \{ AnswerFormatHelp("intervals","interval notation") \}. +Solve the following inequality. Write your answer using \{ helpLink("intervals","interval notation") \}. $PAR \[ $ineq diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Inequalities_Rational/Ratl1a.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Inequalities_Rational/Ratl1a.pg index 1906688dd4..89027410d5 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Inequalities_Rational/Ratl1a.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Inequalities_Rational/Ratl1a.pg @@ -29,7 +29,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -81,7 +81,7 @@ $ineq = " \frac{$var}{($var - $b)^2} $string 0 "; Context()->texStrings; BEGIN_TEXT -Solve the following inequality. Write your answer using \{ AnswerFormatHelp("intervals","interval notation") \}. +Solve the following inequality. Write your answer using \{ helpLink("intervals","interval notation") \}. $PAR \[ $ineq diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Inequalities_Rational/Ratl2.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Inequalities_Rational/Ratl2.pg index 1398e80536..46b7df734d 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Inequalities_Rational/Ratl2.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Inequalities_Rational/Ratl2.pg @@ -29,7 +29,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -84,7 +84,7 @@ $ineq = " \frac{$a $var}{($var - $b)($var + $c)} $string 0 "; Context()->texStrings; BEGIN_TEXT -Solve the following inequality. Write your answer using \{ AnswerFormatHelp("intervals","interval notation") \}. +Solve the following inequality. Write your answer using \{ helpLink("intervals","interval notation") \}. $PAR \[ $ineq diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Inequalities_Rational/Ratl3.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Inequalities_Rational/Ratl3.pg index 09b6ad78fc..9addf23eb3 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Inequalities_Rational/Ratl3.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Inequalities_Rational/Ratl3.pg @@ -29,7 +29,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -96,7 +96,7 @@ if ($e1 != 0) { Context()->texStrings; BEGIN_TEXT -Solve the following inequality. Write your answer using \{ AnswerFormatHelp("intervals","interval notation") \}. +Solve the following inequality. Write your answer using \{ helpLink("intervals","interval notation") \}. $PAR \[ $ineq diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Inequalities_Rational/Ratl4.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Inequalities_Rational/Ratl4.pg index 0663948acf..ec0cdde518 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Inequalities_Rational/Ratl4.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Inequalities_Rational/Ratl4.pg @@ -29,7 +29,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -84,7 +84,7 @@ $ineq = " \frac{$a $var}{$var^2 - $b2} $string 0 "; Context()->texStrings; BEGIN_TEXT -Solve the following inequality. Write your answer using \{ AnswerFormatHelp("intervals","interval notation") \}. +Solve the following inequality. Write your answer using \{ helpLink("intervals","interval notation") \}. $PAR \[ $ineq diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Inequalities_Rational/Ratl5.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Inequalities_Rational/Ratl5.pg index f4c9a14bce..2461d6c671 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Inequalities_Rational/Ratl5.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Inequalities_Rational/Ratl5.pg @@ -29,7 +29,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -87,7 +87,7 @@ $ineq = " \frac{ $var + $a }{ $var + $b } - \frac{ $var - $c }{ $var - $b } $str Context()->texStrings; BEGIN_TEXT -Solve the following inequality. Write your answer using \{ AnswerFormatHelp("intervals","interval notation") \}. +Solve the following inequality. Write your answer using \{ helpLink("intervals","interval notation") \}. $PAR \[ $ineq diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Polynomials_End_Behavior/EndBehavior1.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Polynomials_End_Behavior/EndBehavior1.pg index 16d44939aa..def027eee7 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Polynomials_End_Behavior/EndBehavior1.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Polynomials_End_Behavior/EndBehavior1.pg @@ -30,7 +30,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGcourse.pl" ); @@ -113,8 +113,8 @@ $PAR $PAR where: $PAR -\{ image("A.png", width=>100, height=>100) \} -\{ image("B.png", width=>100, height=>100) \} +\{ image("A.png", width=>100, height=>100) \} +\{ image("B.png", width=>100, height=>100) \} \{ image("C.png", width=>100, height=>100) \} \{ image("D.png", width=>100, height=>100) \} END_TEXT diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Polynomials_End_Behavior/EndBehavior2.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Polynomials_End_Behavior/EndBehavior2.pg index cdafef9e13..9e4757545f 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Polynomials_End_Behavior/EndBehavior2.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Polynomials_End_Behavior/EndBehavior2.pg @@ -30,7 +30,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGcourse.pl" ); @@ -94,8 +94,8 @@ $PAR $PAR where: $PAR -\{ image("A.png", width=>100, height=>100) \} -\{ image("B.png", width=>100, height=>100) \} +\{ image("A.png", width=>100, height=>100) \} +\{ image("B.png", width=>100, height=>100) \} \{ image("C.png", width=>100, height=>100) \} \{ image("D.png", width=>100, height=>100) \} END_TEXT diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Polynomials_End_Behavior/FactoredForm.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Polynomials_End_Behavior/FactoredForm.pg index baecb60ad3..ef84cbd1cc 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Polynomials_End_Behavior/FactoredForm.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Polynomials_End_Behavior/FactoredForm.pg @@ -30,7 +30,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGcourse.pl" ); @@ -97,8 +97,8 @@ $PAR $PAR where: $PAR -\{ image("A.png", width=>100, height=>100) \} -\{ image("B.png", width=>100, height=>100) \} +\{ image("A.png", width=>100, height=>100) \} +\{ image("B.png", width=>100, height=>100) \} \{ image("C.png", width=>100, height=>100) \} \{ image("D.png", width=>100, height=>100) \} END_TEXT diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Polynomials_End_Behavior/FactoredForm2.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Polynomials_End_Behavior/FactoredForm2.pg index b3df597d65..4787645fe1 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Polynomials_End_Behavior/FactoredForm2.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Polynomials_End_Behavior/FactoredForm2.pg @@ -30,7 +30,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGcourse.pl" ); @@ -94,8 +94,8 @@ $PAR $PAR where: $PAR -\{ image("A.png", width=>100, height=>100) \} -\{ image("B.png", width=>100, height=>100) \} +\{ image("A.png", width=>100, height=>100) \} +\{ image("B.png", width=>100, height=>100) \} \{ image("C.png", width=>100, height=>100) \} \{ image("D.png", width=>100, height=>100) \} END_TEXT diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Polynomials_End_Behavior/FactoredForm3.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Polynomials_End_Behavior/FactoredForm3.pg index 08c0c167c0..b5392069cd 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Polynomials_End_Behavior/FactoredForm3.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Polynomials_End_Behavior/FactoredForm3.pg @@ -30,7 +30,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGcourse.pl" ); @@ -88,8 +88,8 @@ $PAR $PAR where: $PAR -\{ image("A.png", width=>100, height=>100) \} -\{ image("B.png", width=>100, height=>100) \} +\{ image("A.png", width=>100, height=>100) \} +\{ image("B.png", width=>100, height=>100) \} \{ image("C.png", width=>100, height=>100) \} \{ image("D.png", width=>100, height=>100) \} END_TEXT diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Polynomials_End_Behavior/StraightForward.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Polynomials_End_Behavior/StraightForward.pg index 1158b95485..5a614a99c2 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Polynomials_End_Behavior/StraightForward.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Polynomials_End_Behavior/StraightForward.pg @@ -30,7 +30,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGcourse.pl" ); @@ -95,8 +95,8 @@ $PAR $PAR where: $PAR -\{ image("A.png", width=>100, height=>100) \} -\{ image("B.png", width=>100, height=>100) \} +\{ image("A.png", width=>100, height=>100) \} +\{ image("B.png", width=>100, height=>100) \} \{ image("C.png", width=>100, height=>100) \} \{ image("D.png", width=>100, height=>100) \} END_TEXT diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Polynomials_Long_Division/Cubic2.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Polynomials_Long_Division/Cubic2.pg index 3bd4dcd6fa..4f9669f2c6 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Polynomials_Long_Division/Cubic2.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Polynomials_Long_Division/Cubic2.pg @@ -30,7 +30,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGcourse.pl" ); @@ -77,7 +77,7 @@ $P = "$c3 x^3 + $c2 x^2 + $c1 x + $c0"; Context()->texStrings; BEGIN_TEXT -Given the polynomial \(P(x) = $P\) and divisor \(d(x) = $D\), find the quotient \(Q(x)\) and remainder \(R(x)\). +Given the polynomial \(P(x) = $P\) and divisor \(d(x) = $D\), find the quotient \(Q(x)\) and remainder \(R(x)\). $PAR Write your answer in the form \( P(x) = d(x) Q(x) + R(x)\). $PAR diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Polynomials_Long_Division/Root.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Polynomials_Long_Division/Root.pg index 1f121cdf7d..867e39f35e 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Polynomials_Long_Division/Root.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Polynomials_Long_Division/Root.pg @@ -29,7 +29,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "parserRadioButtons.pl", "contextFraction.pl", "PGcourse.pl" diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Polynomials_Long_Division/ZeroesTheorem.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Polynomials_Long_Division/ZeroesTheorem.pg index 4a6ca711cf..0ec1bb982f 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Polynomials_Long_Division/ZeroesTheorem.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Polynomials_Long_Division/ZeroesTheorem.pg @@ -29,7 +29,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGcourse.pl" ); diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Rationalizing/Rationalize2.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Rationalizing/Rationalize2.pg index 9e0b5b810f..89e34eeb5d 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Rationalizing/Rationalize2.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Rationalizing/Rationalize2.pg @@ -29,7 +29,7 @@ loadMacros( "PGstandard.pl", "PGunion.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -82,7 +82,7 @@ $multians = MultiAnswer($num, $den)->with( my ( $f1stu, $f2stu ) = @{$student}; my ( $f1, $f2 ) = @{$correct}; -if (( $f1==$f1stu && $f2==$f2stu) || (-$f1==$f1stu && -$f2==$f2stu)) {return [1,1];} +if (( $f1==$f1stu && $f2==$f2stu) || (-$f1==$f1stu && -$f2==$f2stu)) {return [1,1];} elsif ( $f1==$f1stu || -$f1==$f1stu) {return [1,0];} elsif ( ($numbogus==$f1stu || -$numbogus==$f1stu) || ($denbogus==$f2stu || -$denbogus==$f2stu) ) { @@ -128,7 +128,7 @@ $BCENTER $displayfrac $ECENTER $BR - Type an exact answer using radical notation if necessary. + Type an exact answer using radical notation if necessary. END_TEXT if ($attempts_modp == 0 && $actualAttempts != 0) { @@ -139,7 +139,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { $PAR END_TEXT } else { - BEGIN_TEXT + BEGIN_TEXT $PAR ${BBOLD}Help:${EBOLD} To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to give \(\sqrt{7x}\) as an answer, you would type sqrt(7x). If you mistakenly type sqrt 7x instead, Webwork will take this to mean \(x \sqrt{7}\), not \(\sqrt{7x}\). That is, you MUST put parenthesis around everything that you want to take the square root of. $BR @@ -148,7 +148,7 @@ To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Rationalizing/Rationalize3.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Rationalizing/Rationalize3.pg index 71188da816..63f49358bf 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Rationalizing/Rationalize3.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Rationalizing/Rationalize3.pg @@ -29,7 +29,7 @@ loadMacros( "PGstandard.pl", "PGunion.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -78,7 +78,7 @@ $multians = MultiAnswer($num, $den)->with( my ( $f1stu, $f2stu ) = @{$student}; my ( $f1, $f2 ) = @{$correct}; -if (( $f1==$f1stu && $f2==$f2stu) || (-$f1==$f1stu && -$f2==$f2stu)) {return [1,1];} +if (( $f1==$f1stu && $f2==$f2stu) || (-$f1==$f1stu && -$f2==$f2stu)) {return [1,1];} elsif ( $f1==$f1stu || -$f1==$f1stu) {return [1,0];} elsif ( ($numbogus==$f1stu || -$numbogus==$f1stu) || ($denbogus==$f2stu || -$denbogus==$f2stu) ) { @@ -124,7 +124,7 @@ $BCENTER $displayfrac $ECENTER $BR - Type an exact answer using radical notation if necessary. + Type an exact answer using radical notation if necessary. END_TEXT if ($attempts_modp == 0 && $actualAttempts != 0) { @@ -135,7 +135,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { $PAR END_TEXT } else { - BEGIN_TEXT + BEGIN_TEXT $PAR ${BBOLD}Help:${EBOLD} To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to give \(\sqrt{7x}\) as an answer, you would type sqrt(7x). If you mistakenly type sqrt 7x instead, Webwork will take this to mean \(x \sqrt{7}\), not \(\sqrt{7x}\). That is, you MUST put parenthesis around everything that you want to take the square root of. $BR @@ -144,7 +144,7 @@ To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Rationalizing/Rationalize4.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Rationalizing/Rationalize4.pg index 5f3491dc13..cb05b6379f 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Rationalizing/Rationalize4.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Rationalizing/Rationalize4.pg @@ -30,7 +30,7 @@ loadMacros( "PGstandard.pl", "PGunion.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PeriodicRerandomization.pl", "PGcourse.pl" @@ -79,7 +79,7 @@ $multians = MultiAnswer($num, $den)->with( my ( $correct, $student, $self ) = @_; my ( $f1stu, $f2stu ) = @{$student}; my ( $f1, $f2 ) = @{$correct}; - + if ( ( $f1==$f1stu && $f2==$f2stu) ) { return [1,1]; } elsif ( $f1==$f1stu ) { @@ -123,7 +123,7 @@ $BCENTER $displayfrac $ECENTER $BR - Type an exact answer using radical notation if necessary. + Type an exact answer using radical notation if necessary. END_TEXT if ($attempts_modp == 0 && $actualAttempts != 0) { @@ -134,7 +134,7 @@ if ($attempts_modp == 0 && $actualAttempts != 0) { $PAR END_TEXT } else { - BEGIN_TEXT + BEGIN_TEXT $PAR ${BBOLD}Help:${EBOLD} To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to give \(\sqrt{7x}\) as an answer, you would type sqrt(7x). If you mistakenly type sqrt 7x instead, Webwork will take this to mean \(x \sqrt{7}\), not \(\sqrt{7x}\). That is, you MUST put parenthesis around everything that you want to take the square root of. $BR @@ -143,7 +143,7 @@ To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to Context()->normalStrings; -PeriodicStatus(); +PeriodicStatus(); diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Diff_of_Squares_Sqrt_01.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Diff_of_Squares_Sqrt_01.pg index 7ab86e68d2..6b38e923ea 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Diff_of_Squares_Sqrt_01.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Diff_of_Squares_Sqrt_01.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# +# # ENDDESCRIPTION ## DBsubject(Algebra) @@ -12,13 +12,13 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -50,7 +50,7 @@ package main; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @vars = ("x","y","z","a","b","c","p","q","r"); @@ -72,7 +72,7 @@ $ans = Formula("$a $v - $b2")->reduce; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -82,12 +82,12 @@ $BCENTER \($disp =\) \{ans_rule(20)\} $ECENTER $PAR -Write your answer using radical notation if necessary. +Write your answer using radical notation if necessary. END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS( $ans-> cmp( checker => sub { my ($correct,$student,$ans) = @_; @@ -114,8 +114,8 @@ ANS( $ans-> cmp( checker => sub { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} - \{ AnswerFormatHelp("exponents", "Click here for help writing exponents and square roots.") \} + ${BBOLD}Help:${EBOLD} + \{ helpLink("exponents", "Click here for help writing exponents and square roots.") \} $BR END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/FractionofRadical.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/FractionofRadical.pg index 2766708344..00f3418b44 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/FractionofRadical.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/FractionofRadical.pg @@ -30,7 +30,7 @@ loadMacros( "PGstandard.pl", "PGunion.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -83,7 +83,7 @@ $multians = MultiAnswer($num, $den)->with( my ( $f1stu, $f2stu ) = @{$student}; my ( $f1, $f2 ) = @{$correct}; -if (( $f1==$f1stu && $f2==$f2stu) || (-$f1==$f1stu && -$f2==$f2stu)) {return [1,1];} +if (( $f1==$f1stu && $f2==$f2stu) || (-$f1==$f1stu && -$f2==$f2stu)) {return [1,1];} elsif ( $f1==$f1stu || -$f1==$f1stu) {return [1,0];} elsif ( ($numbogus==$f1stu || -$numbogus==$f1stu) || ($denbogus==$f2stu || -$denbogus==$f2stu) ) { @@ -128,7 +128,7 @@ $BCENTER $displayfrac $ECENTER $BR - Write your answer using radical notation if necessary. + Write your answer using radical notation if necessary. END_TEXT @@ -136,7 +136,7 @@ END_TEXT BEGIN_TEXT $PAR ${BBOLD}Help:${EBOLD} -To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to give \(\sqrt{7x}\) as an answer, you would type sqrt(7x). If you mistakenly type sqrt 7x instead, Webwork will take this to mean \(x \sqrt{7}\), not \(\sqrt{7x}\). That is, you MUST put parenthesis around everything that you want to take the square root of. +To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to give \(\sqrt{7x}\) as an answer, you would type sqrt(7x). If you mistakenly type sqrt 7x instead, Webwork will take this to mean \(x \sqrt{7}\), not \(\sqrt{7x}\). That is, you MUST put parenthesis around everything that you want to take the square root of. $BR END_TEXT diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/MultiplyRadicals.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/MultiplyRadicals.pg index 6bce78228e..edb4894e27 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/MultiplyRadicals.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/MultiplyRadicals.pg @@ -30,7 +30,7 @@ loadMacros( "PGstandard.pl", "PGunion.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -77,15 +77,15 @@ $PAR $BCENTER \( \sqrt[$n]{($var + $a)^{$exp1}} \sqrt[$n]{($var + $a)^{$exp2}} = \text{ }\) \{ANS_RULE(10)\} $ECENTER -$BR Write your answer using radical notation if necessary. +$BR Write your answer using radical notation if necessary. END_TEXT BEGIN_TEXT $PAR ${BBOLD}Help:${EBOLD} - -To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to give \(\sqrt{7x}\) as an answer, you would type sqrt(7x). If you mistakenly type sqrt 7x instead, Webwork will take this to mean \(x \sqrt{7}\), not \(\sqrt{7x}\). That is, you MUST put parenthesis around everything that you want to take the square root of. + +To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to give \(\sqrt{7x}\) as an answer, you would type sqrt(7x). If you mistakenly type sqrt 7x instead, Webwork will take this to mean \(x \sqrt{7}\), not \(\sqrt{7x}\). That is, you MUST put parenthesis around everything that you want to take the square root of. $BR END_TEXT diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Radical.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Radical.pg index 90ff82af16..0177d134c2 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Radical.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Radical.pg @@ -32,7 +32,7 @@ loadMacros( "MathObjects.pl", "parserMultiAnswer.pl", "contextLimitedPowers.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -117,7 +117,7 @@ $BCENTER \( $expr = \) \{ans_rule(20)\} $ECENTER $BR - Write your answer using radical notation if necessary. + Write your answer using radical notation if necessary. END_TEXT BEGIN_TEXT diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Radical2.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Radical2.pg index cd3f047050..35f4aa91c1 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Radical2.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Radical2.pg @@ -31,7 +31,7 @@ loadMacros( "PGunion.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "contextLimitedPowers.pl", "PGcourse.pl" ); @@ -126,7 +126,7 @@ $BCENTER \( $expr = \text{ }~\) \{ans_rule(20)\} $ECENTER $BR -Write your answer using radical notation if necessary. +Write your answer using radical notation if necessary. END_TEXT ############################################################## @@ -134,7 +134,7 @@ END_TEXT BEGIN_TEXT $PAR ${BBOLD}Help:${EBOLD} -To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to give \(\sqrt{7x}\) as an answer, you would type sqrt(7x). If you mistakenly type sqrt 7x instead, Webwork will take this to mean \(x \sqrt{7}\), not \(\sqrt{7x}\). That is, you MUST put parenthesis around everything that you want to take the square root of. +To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to give \(\sqrt{7x}\) as an answer, you would type sqrt(7x). If you mistakenly type sqrt 7x instead, Webwork will take this to mean \(x \sqrt{7}\), not \(\sqrt{7x}\). That is, you MUST put parenthesis around everything that you want to take the square root of. $BR END_TEXT diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Simplify_Fractional_Radical_03.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Simplify_Fractional_Radical_03.pg index 5d792adac9..fc2d1598f4 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Simplify_Fractional_Radical_03.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Simplify_Fractional_Radical_03.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# +# # ENDDESCRIPTION ## DBsubject(Algebra) @@ -11,7 +11,7 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( @@ -20,7 +20,7 @@ loadMacros( "contextLimitedPowers.pl", "parserMultiAnswer.pl", "unionTables.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -29,7 +29,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); LimitedPowers::OnlyPositiveIntegers(); @@ -69,8 +69,8 @@ $multians = MultiAnswer($num, $den)->with( my ( $correct, $student, $self ) = @_; my ( $f1stu, $f2stu ) = @{$student}; my ( $f1, $f2 ) = @{$correct}; - - if ( ( $f1==$f1stu && $f2==$f2stu) || + + if ( ( $f1==$f1stu && $f2==$f2stu) || (-$f1==$f1stu && -$f2==$f2stu) ) { return [1,1]; } elsif ( $f1==$f1stu || -$f1==$f1stu) { @@ -106,7 +106,7 @@ if ($displayMode eq 'TeX') { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -116,19 +116,19 @@ $BCENTER $displayfrac $ECENTER $BR -Write your answer using radical notation if necessary. +Write your answer using radical notation if necessary. END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($multians->cmp()); BEGIN_TEXT $PAR ${BBOLD}Help:${EBOLD} - \{ AnswerFormatHelp("exponents", "Click here for help writing exponents and square roots.") \} + \{ helpLink("exponents", "Click here for help writing exponents and square roots.") \} $BR END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Simplify_Fractional_Radical_Numbers_01.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Simplify_Fractional_Radical_Numbers_01.pg index ab9397ed5b..c55bbbf1e1 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Simplify_Fractional_Radical_Numbers_01.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Simplify_Fractional_Radical_Numbers_01.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# +# # ENDDESCRIPTION ## DBsubject(Algebra) @@ -11,7 +11,7 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( @@ -19,7 +19,7 @@ loadMacros( "MathObjects.pl", "contextLimitedPowers.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -51,7 +51,7 @@ package main; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); Context()->functions->set(sqrt=>{class=>'my::Function::numeric'}); @@ -91,7 +91,7 @@ Context()->operators->undefine("**", "^"); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -106,7 +106,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS( $ansa-> cmp( checker => sub { my ($correct,$student,$ans) = @_; @@ -156,8 +156,8 @@ ANS( $ansb-> cmp( checker => sub { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} - \{ AnswerFormatHelp("exponents", "Click here for help writing exponents and square roots.") \} + ${BBOLD}Help:${EBOLD} + \{ helpLink("exponents", "Click here for help writing exponents and square roots.") \} $BR END_TEXT diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Sqrt_Squared_01.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Sqrt_Squared_01.pg index 4dbc77dc96..749d3d82f2 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Sqrt_Squared_01.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Sqrt_Squared_01.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# +# # ENDDESCRIPTION ## DBsubject(Algebra) @@ -12,14 +12,14 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PeriodicRerandomization.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -51,7 +51,7 @@ package main; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @vars = ("x","y","z","a","b","c","p","q","r"); @@ -81,7 +81,7 @@ if ($a == 1) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -91,12 +91,12 @@ $BCENTER \($disp =\) \{ans_rule(20)\} $ECENTER $PAR -Write your answer using radical notation if necessary. +Write your answer using radical notation if necessary. END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS( $ans-> cmp( checker => sub { my ($correct,$student,$ans) = @_; @@ -123,8 +123,8 @@ ANS( $ans-> cmp( checker => sub { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} - \{ AnswerFormatHelp("exponents", "Click here for help writing exponents and square roots.") \} + ${BBOLD}Help:${EBOLD} + \{ helpLink("exponents", "Click here for help writing exponents and square roots.") \} $BR END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/SumOfRadicals.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/SumOfRadicals.pg index 4c1ff6e99c..6848d3398b 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/SumOfRadicals.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/SumOfRadicals.pg @@ -31,7 +31,7 @@ loadMacros( "PGunion.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "contextLimitedPowers.pl", "PGcourse.pl" ); @@ -123,14 +123,14 @@ $PAR $BCENTER \( $expr = \text{ }~\) \{ans_rule(20)\} $ECENTER -$BR Write your answer using radical notation if necessary. +$BR Write your answer using radical notation if necessary. END_TEXT BEGIN_TEXT $PAR ${BBOLD}Help:${EBOLD} - -To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to give \(\sqrt{7x}\) as an answer, you would type sqrt(7x). If you mistakenly type sqrt 7x instead, Webwork will take this to mean \(x \sqrt{7}\), not \(\sqrt{7x}\). That is, you MUST put parenthesis around everything that you want to take the square root of. + +To enter the square root of a number use ${BBOLD}sqrt()${EBOLD}. For example, to give \(\sqrt{7x}\) as an answer, you would type sqrt(7x). If you mistakenly type sqrt 7x instead, Webwork will take this to mean \(x \sqrt{7}\), not \(\sqrt{7x}\). That is, you MUST put parenthesis around everything that you want to take the square root of. $BR END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Three_Parts_01.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Three_Parts_01.pg index 8aebe6af05..48072602d2 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Three_Parts_01.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Three_Parts_01.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# +# # ENDDESCRIPTION ## DBsubject(Algebra) @@ -12,13 +12,13 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -50,7 +50,7 @@ package main; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @vars = ("x","y","z","a","b","c","p","q","r"); @@ -105,7 +105,7 @@ if ($case3 == 0) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -117,12 +117,12 @@ $PAR $PAR (c) \($disp3 = \) \{ans_rule(20)\} $PAR -Write your answer using radical notation if necessary. +Write your answer using radical notation if necessary. END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS( $ansa-> cmp( checker => sub { my ($correct,$student,$ans) = @_; @@ -195,8 +195,8 @@ ANS( $ansc-> cmp( checker => sub { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} - \{ AnswerFormatHelp("exponents", "Click here for help writing exponents and square roots.") \} + ${BBOLD}Help:${EBOLD} + \{ helpLink("exponents", "Click here for help writing exponents and square roots.") \} $BR END_TEXT diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Three_Terms.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Three_Terms.pg index 6d92dc8c9b..26b3de6820 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Three_Terms.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Three_Terms.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# +# # ENDDESCRIPTION ## DBsubject(Algebra) @@ -12,7 +12,7 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( @@ -20,7 +20,7 @@ loadMacros( "MathObjects.pl", "contextLimitedPowers.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -52,7 +52,7 @@ package main; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); Context()->functions->set(sqrt=>{class=>'my::Function::numeric'}); @@ -96,7 +96,7 @@ if ($c2 < 0) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -109,7 +109,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS( $ans-> cmp( checker => sub { my ($correct,$student,$ans) = @_; @@ -136,8 +136,8 @@ ANS( $ans-> cmp( checker => sub { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} - \{ AnswerFormatHelp("exponents", "Click here for help writing exponents and square roots.") \} + ${BBOLD}Help:${EBOLD} + \{ helpLink("exponents", "Click here for help writing exponents and square roots.") \} $BR END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Two_Factors_Sqrt_Var_01.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Two_Factors_Sqrt_Var_01.pg index 421228f482..55be0f7478 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Two_Factors_Sqrt_Var_01.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Two_Factors_Sqrt_Var_01.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# +# # ENDDESCRIPTION ## DBsubject(Algebra) @@ -12,13 +12,13 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -50,7 +50,7 @@ package main; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @vars = ("x","y","z","a","b","c","p","q","r"); @@ -78,7 +78,7 @@ $ans = Formula("$e1 $v + $e2 sqrt($v) + $e3")->reduce; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -88,12 +88,12 @@ $BCENTER \($disp =\) \{ans_rule(20)\} $ECENTER $PAR -Write your answer using radical notation if necessary. +Write your answer using radical notation if necessary. END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS( $ans-> cmp( checker => sub { my ($correct,$student,$ans) = @_; @@ -120,8 +120,8 @@ ANS( $ans-> cmp( checker => sub { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} - \{ AnswerFormatHelp("exponents", "Click here for help writing exponents and square roots.") \} + ${BBOLD}Help:${EBOLD} + \{ helpLink("exponents", "Click here for help writing exponents and square roots.") \} $BR END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Two_Terms_With_Vars_Frac_01.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Two_Terms_With_Vars_Frac_01.pg index 5435409183..7777427b37 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Two_Terms_With_Vars_Frac_01.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/Two_Terms_With_Vars_Frac_01.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# +# # ENDDESCRIPTION ## DBsubject(Algebra) @@ -12,13 +12,13 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -50,7 +50,7 @@ package main; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @vars = ("x","y","z","a","b","c","p","q","r"); @@ -115,7 +115,7 @@ Context()->operators->undefine("+", "-"); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -125,12 +125,12 @@ $BCENTER \($disp = \) \{ans_rule(15)\} $ECENTER $BR -Write your answer using radical notation if necessary. +Write your answer using radical notation if necessary. END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS( $ans-> cmp( checker => sub { my ($correct,$student,$ans) = @_; @@ -157,8 +157,8 @@ ANS( $ans-> cmp( checker => sub { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} - \{ AnswerFormatHelp("exponents", "Click here for help writing exponents and square roots.") \} + ${BBOLD}Help:${EBOLD} + \{ helpLink("exponents", "Click here for help writing exponents and square roots.") \} $BR END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Rational_Exponents/RealProduct1.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Rational_Exponents/RealProduct1.pg index ad9e1ca821..636a0a6d64 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Rational_Exponents/RealProduct1.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Rational_and_Radical_Exponents_Simplifying_Rational_Exponents/RealProduct1.pg @@ -29,7 +29,7 @@ loadMacros( "PGunion.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "contextLimitedPowers.pl", "PGcourse.pl" ); @@ -122,8 +122,8 @@ $BCENTER \( $expr = \text{ }~\) \{ans_rule(20)\} $ECENTER $PAR -Write an exact answer using radical notation if necessary. -\{ AnswerFormatHelp("exponents", "Click here for help writing exponents and square roots.") \} +Write an exact answer using radical notation if necessary. +\{ helpLink("exponents", "Click here for help writing exponents and square roots.") \} END_TEXT ############################################################## diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Real_Numbers/Interval_Notation/Convert_To_Interval_Notation_All.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Real_Numbers/Interval_Notation/Convert_To_Interval_Notation_All.pg index ec5b24e73b..1fd0b221e2 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Real_Numbers/Interval_Notation/Convert_To_Interval_Notation_All.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Real_Numbers/Interval_Notation/Convert_To_Interval_Notation_All.pg @@ -15,12 +15,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGcourse.pl" ); @@ -30,7 +30,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Interval"); $a = random(-100,-15,1); @@ -76,7 +76,7 @@ if ($case == 1) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -87,7 +87,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ans->cmp()); diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Real_Numbers/Interval_Notation/Convert_To_Interval_Notation_Infinity.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Real_Numbers/Interval_Notation/Convert_To_Interval_Notation_Infinity.pg index 2f14d8749e..494fb2c7d2 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Real_Numbers/Interval_Notation/Convert_To_Interval_Notation_Infinity.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Real_Numbers/Interval_Notation/Convert_To_Interval_Notation_Infinity.pg @@ -15,12 +15,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGcourse.pl" ); @@ -30,7 +30,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Interval"); $a = random(-100,100,1); @@ -51,7 +51,7 @@ if ($case == 1) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -62,13 +62,13 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ans->cmp()); BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Real_Numbers/Interval_Notation/Convert_To_Interval_Notation_Intersection.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Real_Numbers/Interval_Notation/Convert_To_Interval_Notation_Intersection.pg index cbafddec5a..59fc20ee44 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Real_Numbers/Interval_Notation/Convert_To_Interval_Notation_Intersection.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Real_Numbers/Interval_Notation/Convert_To_Interval_Notation_Intersection.pg @@ -15,12 +15,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGcourse.pl" ); @@ -30,7 +30,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Interval"); $a = random(-100,-15,1); @@ -52,7 +52,7 @@ if ($case == 1) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -63,13 +63,13 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ans->cmp()); BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Real_Numbers/Interval_Notation/Convert_To_Interval_Notation_Union.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Real_Numbers/Interval_Notation/Convert_To_Interval_Notation_Union.pg index 09f88a6cc4..fcb8fc2613 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Real_Numbers/Interval_Notation/Convert_To_Interval_Notation_Union.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Real_Numbers/Interval_Notation/Convert_To_Interval_Notation_Union.pg @@ -15,12 +15,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGcourse.pl" ); @@ -30,7 +30,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Interval"); $a = random(-100,-15,1); @@ -52,7 +52,7 @@ if ($case == 1) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -63,14 +63,14 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ans->cmp()); BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Real_Numbers/Interval_Notation/Convert_To_Interval_Notation_Union_Intersection.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Real_Numbers/Interval_Notation/Convert_To_Interval_Notation_Union_Intersection.pg index bfda42971d..2c0db297bb 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Real_Numbers/Interval_Notation/Convert_To_Interval_Notation_Union_Intersection.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Real_Numbers/Interval_Notation/Convert_To_Interval_Notation_Union_Intersection.pg @@ -16,12 +16,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGcourse.pl" ); @@ -31,7 +31,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Interval"); $a = random(-100,-15,1); @@ -78,11 +78,11 @@ if ($showfirst == 1) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT -Write in interval notation: +Write in interval notation: $PAR (a) \(${LBRACE} x \mbox{ }|\mbox{ } $dispineq1 ${RBRACE}\): \{ans_rule(20)\} $PAR @@ -91,14 +91,14 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ans1->cmp()); ANS($ans2->cmp()); BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Real_Numbers/Interval_Notation/Graph_One_Interval_All.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Real_Numbers/Interval_Notation/Graph_One_Interval_All.pg index d39f96812e..9ee6a533e9 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Real_Numbers/Interval_Notation/Graph_One_Interval_All.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Real_Numbers/Interval_Notation/Graph_One_Interval_All.pg @@ -13,12 +13,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "PGcourse.pl" @@ -30,7 +30,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Interval"); $gwidth = 600; @@ -93,11 +93,11 @@ if ($caseb == 0) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT -Write interval notation for the given graph: +Write interval notation for the given graph: $PAR $BCENTER \{image(insertGraph($gr), width=>$gwidth, height=>$gheight, tex_size=>500)\} @@ -108,13 +108,13 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ans->cmp()); BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Real_Numbers/Interval_Notation/Graph_One_Interval_Finite_Endpts.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Real_Numbers/Interval_Notation/Graph_One_Interval_Finite_Endpts.pg index dcb8ddc675..329a29ee1c 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Real_Numbers/Interval_Notation/Graph_One_Interval_Finite_Endpts.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Real_Numbers/Interval_Notation/Graph_One_Interval_Finite_Endpts.pg @@ -13,12 +13,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "PGcourse.pl" @@ -30,7 +30,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Interval"); $gwidth = 600; @@ -77,11 +77,11 @@ if ($caseb == 0) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT -Write interval notation for the given graph: +Write interval notation for the given graph: $PAR $BCENTER \{image(insertGraph($gr), width=>$gwidth, height=>$gheight, tex_size=>500)\} @@ -92,13 +92,13 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ans->cmp()); BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Real_Numbers/Interval_Notation/Graph_One_Interval_Left_Inf.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Real_Numbers/Interval_Notation/Graph_One_Interval_Left_Inf.pg index a41f6aa367..69353444ad 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Real_Numbers/Interval_Notation/Graph_One_Interval_Left_Inf.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Real_Numbers/Interval_Notation/Graph_One_Interval_Left_Inf.pg @@ -13,12 +13,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "PGcourse.pl" @@ -30,7 +30,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Interval"); $gwidth = 600; @@ -60,11 +60,11 @@ $gr->arrowTo(-11,0,'blue','3'); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT -Write interval notation for the given graph: +Write interval notation for the given graph: $PAR $BCENTER \{image(insertGraph($gr), width=>$gwidth, height=>$gheight, tex_size=>500)\} @@ -75,13 +75,13 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ans->cmp()); BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Real_Numbers/Interval_Notation/Graph_One_Interval_Right_Inf.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Real_Numbers/Interval_Notation/Graph_One_Interval_Right_Inf.pg index e0e3208db5..33b4a38388 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Real_Numbers/Interval_Notation/Graph_One_Interval_Right_Inf.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Real_Numbers/Interval_Notation/Graph_One_Interval_Right_Inf.pg @@ -13,12 +13,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "PGcourse.pl" @@ -30,7 +30,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Interval"); $gwidth = 600; @@ -60,11 +60,11 @@ $gr->arrowTo(11,0,'blue','3'); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT -Write interval notation for the given graph: +Write interval notation for the given graph: $PAR $BCENTER \{image(insertGraph($gr), width=>$gwidth, height=>$gheight, tex_size=>500)\} @@ -75,13 +75,13 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ans->cmp()); BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/Real_Numbers/Interval_Notation/Graph_Two_Intervals_Union.pg b/OpenProblemLibrary/Mizzou/College_Algebra/Real_Numbers/Interval_Notation/Graph_Two_Intervals_Union.pg index 9a0a9175f6..8ee0bc1650 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/Real_Numbers/Interval_Notation/Graph_Two_Intervals_Union.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/Real_Numbers/Interval_Notation/Graph_Two_Intervals_Union.pg @@ -14,12 +14,12 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "PGcourse.pl" @@ -31,7 +31,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Interval"); $gwidth = 600; @@ -129,11 +129,11 @@ $ans = Compute($int); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT -Write interval notation for the given graph: +Write interval notation for the given graph: $PAR $BCENTER \{image(insertGraph($gr), width=>$gwidth, height=>$gheight, tex_size=>500)\} @@ -144,7 +144,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ans->cmp()); diff --git a/OpenProblemLibrary/Mizzou/College_Algebra/online/functions_even_odd_symmetry/even01.pg b/OpenProblemLibrary/Mizzou/College_Algebra/online/functions_even_odd_symmetry/even01.pg index ec12a8cc5b..0464cc3857 100644 --- a/OpenProblemLibrary/Mizzou/College_Algebra/online/functions_even_odd_symmetry/even01.pg +++ b/OpenProblemLibrary/Mizzou/College_Algebra/online/functions_even_odd_symmetry/even01.pg @@ -28,7 +28,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserPopUp.pl", "PGcourse.pl" ); @@ -73,7 +73,7 @@ $popup = PopUp(["Select","even","odd","neither"],$anseoo); # Main text BEGIN_TEXT -Let \($dispfun\). +Let \($dispfun\). $PAR Determine \(f(-x)\) first and then determine whether the function is even, odd, or neither. $PAR diff --git a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Compound_Inequalities/P_01.pg b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Compound_Inequalities/P_01.pg index ee94c30173..87c607dfb6 100644 --- a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Compound_Inequalities/P_01.pg +++ b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Compound_Inequalities/P_01.pg @@ -13,13 +13,13 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -28,7 +28,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Interval"); Context()->strings->add("no solutions"=>{}, "no solution"=>{alias=>"no solutions"}); @@ -76,7 +76,7 @@ if ($swap == 1) { $tmp2 = $ans1; $ans1 = $ans2; $ans2 = $tmp2; - + $tmp3 = $dispansa; $dispansa = $dispansb; $dispansb = $tmp3; @@ -85,7 +85,7 @@ if ($swap == 1) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -98,14 +98,14 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ans1->cmp()); ANS($ans2->cmp()); BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.") \} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.") \} $BR END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Compound_Inequalities/P_01_02_03_04_Arbitrary.pg b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Compound_Inequalities/P_01_02_03_04_Arbitrary.pg index 2dfe0f0cba..3d27275a34 100644 --- a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Compound_Inequalities/P_01_02_03_04_Arbitrary.pg +++ b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Compound_Inequalities/P_01_02_03_04_Arbitrary.pg @@ -13,13 +13,13 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -28,7 +28,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Interval"); Context()->strings->add("no solutions"=>{}, "no solution"=>{alias=>"no solutions"}); @@ -199,7 +199,7 @@ if ($swap == 1) { $tmp2 = $ans1; $ans1 = $ans2; $ans2 = $tmp2; - + $tmp3 = $dispansa; $dispansa = $dispansb; $dispansb = $tmp3; @@ -207,7 +207,7 @@ if ($swap == 1) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -220,14 +220,14 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ans1->cmp()); ANS($ans2->cmp()); BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.") \} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.") \} $BR END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Compound_Inequalities/P_02.pg b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Compound_Inequalities/P_02.pg index b57982d633..cf4b45dc7b 100644 --- a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Compound_Inequalities/P_02.pg +++ b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Compound_Inequalities/P_02.pg @@ -14,13 +14,13 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -29,7 +29,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Interval"); Context()->strings->add("no solutions"=>{}, "no solution"=>{alias=>"no solutions"}); @@ -75,7 +75,7 @@ if ($swap == 1) { $tmp2 = $ans1; $ans1 = $ans2; $ans2 = $tmp2; - + $tmp3 = $dispansa; $dispansa = $dispansb; $dispansb = $tmp3; @@ -84,7 +84,7 @@ if ($swap == 1) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -97,14 +97,14 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ans1->cmp()); ANS($ans2->cmp()); BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.") \} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.") \} $BR END_TEXT diff --git a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Compound_Inequalities/P_03.pg b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Compound_Inequalities/P_03.pg index 36a4ed48fc..8df7b20097 100644 --- a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Compound_Inequalities/P_03.pg +++ b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Compound_Inequalities/P_03.pg @@ -13,13 +13,13 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -28,7 +28,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Interval"); Context()->strings->add("no solutions"=>{}, "no solution"=>{alias=>"no solutions"}); @@ -78,7 +78,7 @@ if ($swap == 1) { $tmp2 = $ans1; $ans1 = $ans2; $ans2 = $tmp2; - + $tmp3 = $dispansa; $dispansa = $dispansb; $dispansb = $tmp3; @@ -87,7 +87,7 @@ if ($swap == 1) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -100,14 +100,14 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ans1->cmp()); ANS($ans2->cmp()); BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.") \} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.") \} $BR END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Compound_Inequalities/P_04.pg b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Compound_Inequalities/P_04.pg index 54ec9f719e..38a09df3ab 100644 --- a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Compound_Inequalities/P_04.pg +++ b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Compound_Inequalities/P_04.pg @@ -13,13 +13,13 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -28,7 +28,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Interval"); Context()->strings->add("no solutions"=>{}, "no solution"=>{alias=>"no solutions"}); @@ -74,7 +74,7 @@ if ($swap == 1) { $tmp2 = $ans1; $ans1 = $ans2; $ans2 = $tmp2; - + $tmp3 = $dispansa; $dispansa = $dispansb; $dispansb = $tmp3; @@ -83,7 +83,7 @@ if ($swap == 1) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -96,14 +96,14 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ans1->cmp()); ANS($ans2->cmp()); BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.") \} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.") \} $BR END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Equations_Linear/Distribute7.pg b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Equations_Linear/Distribute7.pg index 1bc224818b..8a1c4a6b99 100644 --- a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Equations_Linear/Distribute7.pg +++ b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Equations_Linear/Distribute7.pg @@ -29,7 +29,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -85,7 +85,7 @@ Context()->texStrings; BEGIN_TEXT $PAR -${BBOLD}Note:${EBOLD} Write ${BBOLD}no solutions${EBOLD} if no solutions exist or ${BBOLD}infinitely many${EBOLD} if there are infinitely many solutions. +${BBOLD}Note:${EBOLD} Write ${BBOLD}no solutions${EBOLD} if no solutions exist or ${BBOLD}infinitely many${EBOLD} if there are infinitely many solutions. $BR END_TEXT diff --git a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Equations_Radical/Prob_01.pg b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Equations_Radical/Prob_01.pg index c09c8d62b6..ff6d82dc94 100644 --- a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Equations_Radical/Prob_01.pg +++ b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Equations_Radical/Prob_01.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# +# # ENDDESCRIPTION ## DBsubject(Algebra) @@ -11,13 +11,13 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -27,7 +27,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Fraction-NoDecimals"); Context()->strings->add("no solution"=>{}); @@ -66,7 +66,7 @@ if ($case2 == 0) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -79,7 +79,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ansa->cmp(studentsMustReduceFractions=>1)); if ($case2 == 0) { @@ -87,12 +87,12 @@ if ($case2 == 0) { } else { $dansb = "\(x = $tmp\)"; ANS($ansb->cmp(studentsMustReduceFractions=>1)); -} +} BEGIN_TEXT $PAR - ${BBOLD}Note:$EBOLD Write your answer in exact form using square roots or radical notation if necessary. \{ AnswerFormatHelp("exponents", "Click here for help writing square roots.")\} If there is more than one correct answer, enter your answers as a comma separated list. If the equation has no real solution, write "No Solution." + ${BBOLD}Note:$EBOLD Write your answer in exact form using square roots or radical notation if necessary. \{ helpLink("exponents", "Click here for help writing square roots.")\} If there is more than one correct answer, enter your answers as a comma separated list. If the equation has no real solution, write "No Solution." $BR END_TEXT diff --git a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Equations_Radical/Prob_03.pg b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Equations_Radical/Prob_03.pg index 31882caa0b..2f9dd3d6ec 100644 --- a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Equations_Radical/Prob_03.pg +++ b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Equations_Radical/Prob_03.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# +# # ENDDESCRIPTION ## DBsubject(Algebra) @@ -11,13 +11,13 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -27,7 +27,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Fraction-NoDecimals"); Context()->strings->add("no solution"=>{}); @@ -71,7 +71,7 @@ if ($aq >= 0) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -86,7 +86,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### if (scalar(@ans) > 0) { $ans = List(@ans); @@ -100,7 +100,7 @@ if (scalar(@ans) > 0) { BEGIN_TEXT $PAR - ${BBOLD}Note:$EBOLD Write your answer in exact form using square roots or radical notation if necessary. \{ AnswerFormatHelp("exponents", "Click here for help writing square roots.")\} If there is more than one correct answer, enter your answers as a comma separated list. If the equation has no real solution, write "No Solution." + ${BBOLD}Note:$EBOLD Write your answer in exact form using square roots or radical notation if necessary. \{ helpLink("exponents", "Click here for help writing square roots.")\} If there is more than one correct answer, enter your answers as a comma separated list. If the equation has no real solution, write "No Solution." $BR END_TEXT diff --git a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Equations_Radical/Prob_04.pg b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Equations_Radical/Prob_04.pg index 47a399632e..3f380174da 100644 --- a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Equations_Radical/Prob_04.pg +++ b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Equations_Radical/Prob_04.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# +# # ENDDESCRIPTION ## DBsubject(Algebra) @@ -11,13 +11,13 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -26,7 +26,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); Context()->strings->add("no solution"=>{}); @@ -40,7 +40,7 @@ $disp = ($p == 2) ? "-\sqrt{$a x} + $b = $c" : "-\sqrt[3]{$a x} + $b = $c"; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -55,14 +55,14 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ans->cmp()); BEGIN_TEXT $PAR - ${BBOLD}Note:$EBOLD Write your answer in exact form using square roots or radical notation if necessary. \{ AnswerFormatHelp("exponents", "Click here for help writing square roots.")\} If there is more than one correct answer, enter your answers as a comma separated list. If the equation has no real solution, write "No Solution." + ${BBOLD}Note:$EBOLD Write your answer in exact form using square roots or radical notation if necessary. \{ helpLink("exponents", "Click here for help writing square roots.")\} If there is more than one correct answer, enter your answers as a comma separated list. If the equation has no real solution, write "No Solution." $BR END_TEXT diff --git a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Equations_Rational/8.pg b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Equations_Rational/8.pg index e11d945ddd..1892951637 100644 --- a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Equations_Rational/8.pg +++ b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Equations_Rational/8.pg @@ -30,7 +30,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); diff --git a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Equations_Rational/AlwaysHasSolution11.pg b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Equations_Rational/AlwaysHasSolution11.pg index 4b9c03c29b..16dc63c0c8 100644 --- a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Equations_Rational/AlwaysHasSolution11.pg +++ b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Equations_Rational/AlwaysHasSolution11.pg @@ -30,7 +30,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); diff --git a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Equations_Rational/Eq1.pg b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Equations_Rational/Eq1.pg index 11138fd6e5..c19406a654 100644 --- a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Equations_Rational/Eq1.pg +++ b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Equations_Rational/Eq1.pg @@ -30,7 +30,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); diff --git a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Equations_Rational/Eq2.pg b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Equations_Rational/Eq2.pg index 6a2b1bcd9c..67fb7ab4a8 100644 --- a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Equations_Rational/Eq2.pg +++ b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Equations_Rational/Eq2.pg @@ -30,7 +30,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); diff --git a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Equations_Rational/Eq3.pg b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Equations_Rational/Eq3.pg index 615c0d3909..5831fe0521 100644 --- a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Equations_Rational/Eq3.pg +++ b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Equations_Rational/Eq3.pg @@ -29,7 +29,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); diff --git a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Equations_Rational/Eq4.pg b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Equations_Rational/Eq4.pg index d643a7695e..5ea176557b 100644 --- a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Equations_Rational/Eq4.pg +++ b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Equations_Rational/Eq4.pg @@ -30,7 +30,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); diff --git a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Equations_Rational/Eq5.pg b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Equations_Rational/Eq5.pg index 4e52bbf391..d6133f1c1e 100644 --- a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Equations_Rational/Eq5.pg +++ b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Equations_Rational/Eq5.pg @@ -30,7 +30,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); diff --git a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Equations_Rational/alwaysHasSolution10.pg b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Equations_Rational/alwaysHasSolution10.pg index 9349855530..730e637663 100644 --- a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Equations_Rational/alwaysHasSolution10.pg +++ b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Equations_Rational/alwaysHasSolution10.pg @@ -30,7 +30,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); diff --git a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Exponent_Laws/Neg_One_Power.pg b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Exponent_Laws/Neg_One_Power.pg index a9b106e93b..62dcfb24e2 100644 --- a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Exponent_Laws/Neg_One_Power.pg +++ b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Exponent_Laws/Neg_One_Power.pg @@ -12,13 +12,13 @@ ## MLT(Algebra_PropExp_PropExp) ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextLimitedPowers.pl", "PGcourse.pl" ); @@ -28,7 +28,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); @vars = ("x","y","z","s","t"); @@ -51,7 +51,7 @@ Context()->operators->undefine("^","**"); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -64,14 +64,14 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ansa->cmp()); ANS($ansb->cmp()); BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("formulas", "Click here for help entering formulas as answers.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("formulas", "Click here for help entering formulas as answers.")\} $BR END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Factoring_Substitution/LinearSub1.pg b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Factoring_Substitution/LinearSub1.pg index d2095bbf72..fa30adc717 100644 --- a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Factoring_Substitution/LinearSub1.pg +++ b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Factoring_Substitution/LinearSub1.pg @@ -28,7 +28,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "contextLimitedPolynomial.pl", "PGcourse.pl" @@ -89,11 +89,11 @@ $multians = MultiAnswer($fac1, $fac2)->with( # Main text Context()->texStrings; BEGIN_TEXT -Factor the expression and simplify your +Factor the expression and simplify your answer as much as possible: $PAR ${BCENTER} -$expression \(= \) +$expression \(= \) \( \big( \) \{ $multians->ans_rule(20) \} \( \big) \big( \) diff --git a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Linear_Inequalities/Basic_01.pg b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Linear_Inequalities/Basic_01.pg index e1224bd249..4b80dfb9f8 100644 --- a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Linear_Inequalities/Basic_01.pg +++ b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Linear_Inequalities/Basic_01.pg @@ -12,13 +12,13 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -27,7 +27,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Interval"); $a = random(2,15); @@ -70,7 +70,7 @@ if ($case == 0) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -85,14 +85,14 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ans->cmp()); BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT diff --git a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Linear_Inequalities/Basic_04.pg b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Linear_Inequalities/Basic_04.pg index c849606718..a52b1f0d6c 100644 --- a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Linear_Inequalities/Basic_04.pg +++ b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Linear_Inequalities/Basic_04.pg @@ -13,13 +13,13 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -28,7 +28,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Interval"); $a1 = random(2,7); @@ -39,7 +39,7 @@ do {$d1 = random(2,5)*random(-1,1,2)} until ($d1 != -$a1*$b1); $a2 = random(2,7); $b2 = random(-1,1,2)*random(2,5); $c2 = random(2,6); -do {$d2 = non_zero_random(-7,7)} until (gcd($d2,$c2) == 1); +do {$d2 = non_zero_random(-7,7)} until (gcd($d2,$c2) == 1); do {$e2 = non_zero_random(-7,7)} until ($a1*$b1 + $d1 != $b2*$c2 + $e2 && $e2 != -$b2*$c2); for ($i = 0; $i < random(10,50); $i++) { @@ -108,7 +108,7 @@ if ($e2 == 1) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -123,14 +123,14 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($ans->cmp()); BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT diff --git a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_04_CompoundIneq.pg b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_04_CompoundIneq.pg index e71a2f0621..32e366e5fd 100644 --- a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_04_CompoundIneq.pg +++ b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_04_CompoundIneq.pg @@ -1,6 +1,6 @@ ##DESCRIPTION ## Compound Inequalities -## +## ##ENDDESCRIPTION ## DBsubject(Algebra) ## DBchapter(Algebra of real numbers and simplifying expressions) @@ -25,7 +25,7 @@ loadMacros( "MathObjects.pl", "PGgraphmacros.pl", "PGnauGraphics.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -35,7 +35,7 @@ $refreshCachedImages = 1; ###################################### # Setup -$a = random(1,4,1); +$a = random(1,4,1); $b = random(-4,0,1); @interval = ("<-6,$a]","($b,6>","<-6,$a)","[$b,6>"); @@ -73,7 +73,7 @@ do { } until ($i > 5); add_functions( $graph,$f,$g); - + ###################################### # Main text @@ -108,7 +108,7 @@ $showPartialCorrectAnswers = 1; Context()->texStrings; BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} Type ${BBOLD}no solutions${EBOLD} if no such interval exists. \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} Type ${BBOLD}no solutions${EBOLD} if no such interval exists. \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_05_CompoundIneq.pg b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_05_CompoundIneq.pg index 5d43b65615..817f19036f 100644 --- a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_05_CompoundIneq.pg +++ b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_05_CompoundIneq.pg @@ -1,6 +1,6 @@ ##DESCRIPTION ## Compound Inequalities -## +## ##ENDDESCRIPTION ## DBsubject(Algebra) ## DBchapter(Algebra of real numbers and simplifying expressions) @@ -25,7 +25,7 @@ loadMacros( "MathObjects.pl", "PGgraphmacros.pl", "PGnauGraphics.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -72,7 +72,7 @@ do { } until ($i > 5); add_functions( $graph,$f,$g); - + ###################################### # Main text @@ -101,7 +101,7 @@ ANS($ansa->cmp()); @ans_b = ("(-infinity,$a]","[$b,infinity)"); $ansb = Interval($ans_b[$choose/2]); -ANS($ansb->cmp); +ANS($ansb->cmp); $showPartialCorrectAnswers = 1; diff --git a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_07_CompoundIneq.pg b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_07_CompoundIneq.pg index 3225d72233..e27d2e5d5f 100644 --- a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_07_CompoundIneq.pg +++ b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_07_CompoundIneq.pg @@ -1,6 +1,6 @@ ##DESCRIPTION ## Compound Inequalities -## +## ##ENDDESCRIPTION ## DBsubject(Algebra) ## DBchapter(Algebra of real numbers and simplifying expressions) @@ -25,7 +25,7 @@ loadMacros( "MathObjects.pl", "PGgraphmacros.pl", "PGnauGraphics.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -72,7 +72,7 @@ do { } until ($i > 5); add_functions( $graph,$f,$g); - + ###################################### # Main text @@ -96,17 +96,17 @@ Context("Interval"); Context()->strings->add(empty=>{}, "no solutions"=>{}, "no solution"=>{alias=>"no solutions"}); $ans_a = Union(Interval("(-infinity,$a]"),Interval("[$b,infinity)")); -ANS($ans_a->cmp); +ANS($ans_a->cmp); $ans_b = String("no solutions"); -ANS($ans_b->cmp); +ANS($ans_b->cmp); $showPartialCorrectAnswers = 1; Context()->texStrings; BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} Type ${BBOLD}no solutions${EBOLD} if no such interval exists. \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} Type ${BBOLD}no solutions${EBOLD} if no such interval exists. \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_12_CompoundIneq.pg b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_12_CompoundIneq.pg index d79ffaff02..2d30e70ffd 100644 --- a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_12_CompoundIneq.pg +++ b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_12_CompoundIneq.pg @@ -1,6 +1,6 @@ ##DESCRIPTION ## Compound Inequalities -## +## ##ENDDESCRIPTION ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) @@ -24,7 +24,7 @@ loadMacros( "PGchoicemacros.pl", "MathObjects.pl", "contextInequalities.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -44,7 +44,7 @@ $f = $n*$b+$d; @inequal = ("x -$c \geq $e","$n x + $d < $f" ); @slice = NchooseK(2,2); - + ###################################### # Main text @@ -60,7 +60,7 @@ END_TEXT Context("Interval")->strings->add("no solutions"=>{}, "no solution"=>{alias=>"no solutions"}); $ans = Compute("[$a,$b)"); -ANS($ans->cmp); - +ANS($ans->cmp); + $showPartialCorrectAnswers = 1; ENDDOCUMENT(); diff --git a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_13_CompoundIneq.pg b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_13_CompoundIneq.pg index 7c1f100118..4835a09593 100644 --- a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_13_CompoundIneq.pg +++ b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_13_CompoundIneq.pg @@ -1,6 +1,6 @@ ##DESCRIPTION ## Compound Inequalities -## +## ##ENDDESCRIPTION ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) @@ -24,7 +24,7 @@ loadMacros( "PGchoicemacros.pl", "MathObjects.pl", "contextInequalities.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -45,7 +45,7 @@ $f = ($b-$d); @inequal = ("$m($c-x) < $e","\displaystyle \frac{x - $d}{$n} \leq \frac{$f}{$n}" ); @slice = NchooseK(2,2); - + ###################################### # Main text @@ -63,7 +63,7 @@ Context()->strings->add("No solution"=>{}); if ($a>$b) {$ans = String("no solutions"); $dispans = "no solutions"} else {$ans = Compute("($a,$b]"); $dispans = "\($ans\)"}; -ANS($ans->cmp); +ANS($ans->cmp); $showPartialCorrectAnswers = 1; diff --git a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_21_CompoundIneq.pg b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_21_CompoundIneq.pg index 5be29ea986..f59be4847d 100644 --- a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_21_CompoundIneq.pg +++ b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_21_CompoundIneq.pg @@ -1,6 +1,6 @@ ##DESCRIPTION ## Compound Inequalities -## +## ##ENDDESCRIPTION ## DBsubject(Algebra) ## DBchapter(Algebra of real numbers and simplifying expressions) @@ -23,7 +23,7 @@ loadMacros( "PGstandard.pl", "PGchoicemacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -39,7 +39,7 @@ do {$b = random(1,9,1);} while ($a==$b); @inequal = ("x < $a","x > $b" ); @slice = NchooseK(2,2); - + ###################################### # Main text @@ -55,13 +55,13 @@ END_TEXT Context("Interval")->strings->add("no solutions"=>{}, "no solution"=>{alias=>"no solutions"}); $ans = Compute("(-inf,$a)U($b,inf)")->reduce; -ANS($ans->cmp); +ANS($ans->cmp); Context()->texStrings; $showPartialCorrectAnswers = 1; BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_22_CompoundIneq.pg b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_22_CompoundIneq.pg index 10df78385e..54f6fc3ca7 100644 --- a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_22_CompoundIneq.pg +++ b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_22_CompoundIneq.pg @@ -1,6 +1,6 @@ ##DESCRIPTION ## Compound Inequalities -## +## ##ENDDESCRIPTION ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) @@ -24,7 +24,7 @@ loadMacros( "PGchoicemacros.pl", "MathObjects.pl", "contextInequalities.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -43,7 +43,7 @@ $bd = $b*$d; @inequal = ("$c x < $ac","$d x > $bd" ); @slice = NchooseK(2,2); - + ###################################### # Main text @@ -60,15 +60,15 @@ END_TEXT Context("Interval")->strings->add("no solutions"=>{}, "no solution"=>{alias=>"no solutions"}); -$ans = Compute("(-inf,$a)"); +$ans = Compute("(-inf,$a)"); if ($a<$b) {$ans = Compute("(-inf,$b)");} -ANS($ans->cmp); +ANS($ans->cmp); $showPartialCorrectAnswers = 1; Context()->texStrings; BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_23_CompoundIneq.pg b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_23_CompoundIneq.pg index 08bffda762..160adfe4f8 100644 --- a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_23_CompoundIneq.pg +++ b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_23_CompoundIneq.pg @@ -1,6 +1,6 @@ ##DESCRIPTION ## Compound Inequalities -## +## ##ENDDESCRIPTION ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) @@ -23,7 +23,7 @@ loadMacros( "PGstandard.pl", "PGchoicemacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -43,7 +43,7 @@ $f = $n*$b+$d; @inequal = ("x ? {$c} \leq $e","$n x ? {$d} > $f" ); @slice = NchooseK(2,2); - + ###################################### # Main text @@ -59,14 +59,14 @@ END_TEXT Context("Interval")->strings->add("no solutions"=>{}, "no solution"=>{alias=>"no solutions"}); $ans = Compute("(-inf,$a] U ($b,inf)")->reduce; -ANS($ans->cmp); +ANS($ans->cmp); $showPartialCorrectAnswers = 1; Context()->texStrings; BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_24_CompoundIneq.pg b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_24_CompoundIneq.pg index fa3571d8e6..9450de1ec1 100644 --- a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_24_CompoundIneq.pg +++ b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_24_CompoundIneq.pg @@ -1,6 +1,6 @@ ##DESCRIPTION ## Compound Inequalities -## +## ##ENDDESCRIPTION ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) @@ -23,7 +23,7 @@ loadMacros( "PGstandard.pl", "PGchoicemacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -48,7 +48,7 @@ $exp = nicestring([$f,$g],["","x"]); @inequal = ("$c ? {$m} x > $e","$p x ? {$d} > $exp" ); @slice = NchooseK(2,2); - + ###################################### # Main text @@ -64,14 +64,14 @@ END_TEXT Context("Interval")->strings->add("no solutions"=>{}, "no solution"=>{alias=>"no solutions"}); $ans = Compute("(-inf,$a)U($b,inf)"); -ANS($ans->cmp); - +ANS($ans->cmp); + $showPartialCorrectAnswers = 1; Context()->texStrings; BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{AnswerFormatHelp("intervals", "Click here for help entering intervals as answers.")\} + ${BBOLD}Help:${EBOLD} \{helpLink("intervals", "Click here for help entering intervals as answers.")\} $BR END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_25_CompoundIneq.pg b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_25_CompoundIneq.pg index 44bb4db1f5..aef94b84dc 100644 --- a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_25_CompoundIneq.pg +++ b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/NPL_Files/Compound_Inequalities/42IntAlg_25_CompoundIneq.pg @@ -1,6 +1,6 @@ ##DESCRIPTION ## Compound Inequalities -## +## ##ENDDESCRIPTION ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) @@ -23,7 +23,7 @@ loadMacros( "PGstandard.pl", "PGchoicemacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -51,7 +51,7 @@ $endpt2 = ($g+$d)/(1-$f); @slice = NchooseK(2,2); for ($i = 0; $i < random(10,50); $i++) { $case = random(0,1,1); -} +} $word = ($case == 0) ? "and" : "or"; if ($case == 0) { $num1 = ($e - $c)/gcd($e-$c,$n); @@ -72,7 +72,7 @@ if ($case == 0) { $dispans = "\($ans\)"; } - + ###################################### # Main text @@ -85,7 +85,7 @@ END_TEXT ###################################### # Answer -ANS($ans->cmp(tolerance=>0.00000001, tolType=>'absolute')); +ANS($ans->cmp(tolerance=>0.00000001, tolType=>'absolute')); $showPartialCorrectAnswers = 1; diff --git a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/NPL_Files/Inequalities/41IntAlg_22_LinearIneq.pg b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/NPL_Files/Inequalities/41IntAlg_22_LinearIneq.pg index eb288aa649..aaa8bac1ad 100644 --- a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/NPL_Files/Inequalities/41IntAlg_22_LinearIneq.pg +++ b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/NPL_Files/Inequalities/41IntAlg_22_LinearIneq.pg @@ -1,6 +1,6 @@ ##DESCRIPTION ## Linear Inequalities -## +## ##ENDDESCRIPTION ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "contextInequalitiesAllowStrings.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -79,7 +79,7 @@ Context()->{error}{msg}{"Unexpected character '>'"} = "You must use interval not Context()->texStrings; BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} \{ AnswerFormatHelp("intervals","Click here for help entering intervals as answers.") \} + ${BBOLD}Help:${EBOLD} \{ helpLink("intervals","Click here for help entering intervals as answers.") \} $BR END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Radicals/Evaluate_Function_Sqrt.pg b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Radicals/Evaluate_Function_Sqrt.pg index 94c8447116..d9c8fd83c4 100644 --- a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Radicals/Evaluate_Function_Sqrt.pg +++ b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Radicals/Evaluate_Function_Sqrt.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# +# # ENDDESCRIPTION ## DBsubject(Algebra) @@ -12,7 +12,7 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( @@ -20,7 +20,7 @@ loadMacros( "MathObjects.pl", "contextLimitedPowers.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -52,7 +52,7 @@ package main; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); Context()->functions->set(sqrt=>{class=>'my::Function::numeric'}); @@ -92,7 +92,7 @@ $ans3 = Formula("$ins3"); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -109,7 +109,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS( $ans0-> cmp( checker => sub { my ($correct,$student,$ans) = @_; @@ -206,8 +206,8 @@ ANS( $ans3-> cmp( checker => sub { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} - \{ AnswerFormatHelp("exponents", "Click here for help writing exponents and square roots.") \} + ${BBOLD}Help:${EBOLD} + \{ helpLink("exponents", "Click here for help writing exponents and square roots.") \} $BR END_TEXT diff --git a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Radicals/Roots_Numbers.pg b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Radicals/Roots_Numbers.pg index 6380aa98ec..a4950bc987 100644 --- a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Radicals/Roots_Numbers.pg +++ b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Radicals/Roots_Numbers.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# +# # ENDDESCRIPTION ## DBsubject(Arithmetic) @@ -11,7 +11,7 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( @@ -19,7 +19,7 @@ loadMacros( "MathObjects.pl", "contextLimitedPowers.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -51,7 +51,7 @@ package main; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); Context()->functions->set(sqrt=>{class=>'my::Function::numeric'}); @@ -100,7 +100,7 @@ $ans2 = Formula("$b1/$b2"); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -115,7 +115,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS( $ans1-> cmp( checker => sub { my ($correct,$student,$ans) = @_; @@ -167,8 +167,8 @@ ANS( $ans2-> cmp( checker => sub { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} - \{ AnswerFormatHelp("exponents", "Click here for help writing exponents and square roots.") \} + ${BBOLD}Help:${EBOLD} + \{ helpLink("exponents", "Click here for help writing exponents and square roots.") \} $BR END_TEXT diff --git a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Radicals/Roots_Numbers_Neg.pg b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Radicals/Roots_Numbers_Neg.pg index 0e7f66a3b6..0c1a3f60ac 100644 --- a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Radicals/Roots_Numbers_Neg.pg +++ b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Radicals/Roots_Numbers_Neg.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# +# # ENDDESCRIPTION ## DBsubject(Arithmetic) @@ -11,7 +11,7 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( @@ -19,7 +19,7 @@ loadMacros( "MathObjects.pl", "contextLimitedPowers.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -51,7 +51,7 @@ package main; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); Context()->functions->set(sqrt=>{class=>'my::Function::numeric'}); @@ -97,7 +97,7 @@ if ($r2 == 2) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -112,7 +112,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### if (($case == 0 && $r1 % 2 != 0) || $case == 1) { $ans1 = Formula("-$a1"); @@ -177,8 +177,8 @@ ANS( $ans2-> cmp( checker => sub { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} - \{ AnswerFormatHelp("exponents", "Click here for help writing exponents and square roots.") \} + ${BBOLD}Help:${EBOLD} + \{ helpLink("exponents", "Click here for help writing exponents and square roots.") \} $BR END_TEXT diff --git a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Radicals/Roots_Numbers_Neg_Variables.pg b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Radicals/Roots_Numbers_Neg_Variables.pg index 253332246e..4f6f8837e8 100644 --- a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Radicals/Roots_Numbers_Neg_Variables.pg +++ b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Radicals/Roots_Numbers_Neg_Variables.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# +# # ENDDESCRIPTION ## DBsubject(Algebra) @@ -12,7 +12,7 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( @@ -20,7 +20,7 @@ loadMacros( "MathObjects.pl", "contextLimitedPowers.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -52,7 +52,7 @@ package main; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); Context()->functions->set(sqrt=>{class=>'my::Function::numeric'}); @@ -83,7 +83,7 @@ do { $k12 = $p12/$r1; $p21 = random(2,13)*$r2; - do {$p22 = random(2,13)*$r2} until ($p22 != $p21); + do {$p22 = random(2,13)*$r2} until ($p22 != $p21); $k21 = $p21/$r2; $k22 = $p22/$r2; } until ($k21 != $k11 && $k22 != $k12); @@ -105,7 +105,7 @@ $ans2 = Formula("$b x^{$k21} y^{$k22}"); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -120,7 +120,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS( $ans1-> cmp( checker => sub { my ($correct,$student,$ans) = @_; @@ -171,8 +171,8 @@ ANS( $ans2-> cmp( checker => sub { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} - \{ AnswerFormatHelp("exponents", "Click here for help writing exponents and square roots.") \} + ${BBOLD}Help:${EBOLD} + \{ helpLink("exponents", "Click here for help writing exponents and square roots.") \} $BR END_TEXT diff --git a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Radicals/Roots_Variables_Fraction_Const_Bot.pg b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Radicals/Roots_Variables_Fraction_Const_Bot.pg index 9cea240d1f..dc54db7720 100644 --- a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Radicals/Roots_Variables_Fraction_Const_Bot.pg +++ b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Radicals/Roots_Variables_Fraction_Const_Bot.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# +# # ENDDESCRIPTION ## DBsubject(Algebra) @@ -12,7 +12,7 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( @@ -20,7 +20,7 @@ loadMacros( "MathObjects.pl", "contextLimitedPowers.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -52,7 +52,7 @@ package main; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); Context()->functions->set(sqrt=>{class=>'my::Function::numeric'}); @@ -64,7 +64,7 @@ for ($i = 0; $i < random(20,50); $i++) { ## more random?? $case1 == random(0,1,1); # 0 - make negative, 1 - not $case2 == random(0,1,1); # nothing if root is not odd root, if odd 0 - neg inside, 1 - neg out $r2 = random(2,5,1); -} +} if ($r2 == 2) { $b = list_random(3,4,5,6,7,8,9,10,11,12,13,14,15,20); @@ -77,7 +77,7 @@ $br = ($b)**$r2; $p21 = random(2,13)*$r2; -do {$p22 = random(2,13)*$r2} until ($p22 != $p21); +do {$p22 = random(2,13)*$r2} until ($p22 != $p21); $k21 = $p21/$r2; $k22 = $p22/$r2; @@ -113,7 +113,7 @@ if ($r2 == 2) { ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -126,7 +126,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS( $ans1-> cmp( checker => sub { my ($correct,$student,$ans) = @_; @@ -154,8 +154,8 @@ ANS( $ans1-> cmp( checker => sub { BEGIN_TEXT $PAR - ${BBOLD}Help:${EBOLD} - \{ AnswerFormatHelp("exponents", "Click here for help writing exponents and square roots.") \} + ${BBOLD}Help:${EBOLD} + \{ helpLink("exponents", "Click here for help writing exponents and square roots.") \} $BR END_TEXT diff --git a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/MultiplyRadicals.pg b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/MultiplyRadicals.pg index d35f4cab67..17808fa585 100644 --- a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/MultiplyRadicals.pg +++ b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Rational_and_Radical_Exponents_Simplifying_Radicals/MultiplyRadicals.pg @@ -30,7 +30,7 @@ loadMacros( "PGstandard.pl", "PGunion.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserMultiAnswer.pl", "PGcourse.pl" ); @@ -77,10 +77,10 @@ $PAR $BCENTER \( \sqrt[$n]{$var^{$exp1}} \sqrt[$n]{$var^{$exp2}} = \) \{ANS_RULE(10)\} $ECENTER -$BR Write your answer using radical notation if necessary. +$BR Write your answer using radical notation if necessary. $BR ${BBOLD}Help:${EBOLD} -\{ AnswerFormatHelp("exponents", "Click here for help writing exponents and square roots.") \} +\{ helpLink("exponents", "Click here for help writing exponents and square roots.") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Word_Problems/Bicycle_Rental_Inequality.pg b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Word_Problems/Bicycle_Rental_Inequality.pg index 731defedc4..15133e216a 100644 --- a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Word_Problems/Bicycle_Rental_Inequality.pg +++ b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Word_Problems/Bicycle_Rental_Inequality.pg @@ -13,14 +13,14 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "contextInequalities.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -29,7 +29,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Inequalities-Only"); $a = random(9,16,1); @@ -42,7 +42,7 @@ $b = sprintf("%0.2f", $b ); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -53,7 +53,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($hours)->cmp()); diff --git a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Word_Problems/Car_Rental_Inequality.pg b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Word_Problems/Car_Rental_Inequality.pg index 0444ad7528..8546b8336e 100644 --- a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Word_Problems/Car_Rental_Inequality.pg +++ b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Word_Problems/Car_Rental_Inequality.pg @@ -12,14 +12,14 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "contextInequalities.pl", - "AnswerFormatHelp.pl", + "parserPopUp.pl", "PGcourse.pl" ); @@ -29,7 +29,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Inequalities-Only")->variables->are(x=>"Real"); for ($i = 0; $i < random(10,50); $i++) { @@ -52,7 +52,7 @@ $ans = $p; ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -62,14 +62,14 @@ Plan A: ${DOLLAR}$a per day and unlimited mileage $BR Plan B: ${DOLLAR}$b per day plus ${DOLLAR}0.$cents per mile $PAR -Use an inequality to find the number of daily miles for which plan B costs $word than plan A. +Use an inequality to find the number of daily miles for which plan B costs $word than plan A. $PAR Answer: \{$pop->menu\} \{ans_rule(20)\} miles END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS($pop->cmp()); ANS(Compute($ans)->cmp()); diff --git a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Word_Problems/Truck_Beams_Inequality.pg b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Word_Problems/Truck_Beams_Inequality.pg index 4bfaa59e15..77c90849f2 100644 --- a/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Word_Problems/Truck_Beams_Inequality.pg +++ b/OpenProblemLibrary/Mizzou/Intermediate_Algebra/Word_Problems/Truck_Beams_Inequality.pg @@ -13,13 +13,13 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextInequalities.pl", "PGcourse.pl" ); @@ -29,7 +29,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Inequalities-Only"); $truckw = random(3500,4500,100); @@ -39,7 +39,7 @@ $ans = floor(($bridgew - $truckw)/$beamw); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT @@ -50,7 +50,7 @@ END_TEXT ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute($ans)->cmp()); diff --git a/OpenProblemLibrary/NAU/setActuarial/setExamFM118.pg b/OpenProblemLibrary/NAU/setActuarial/setExamFM118.pg index df988a8db4..2bddb06124 100644 --- a/OpenProblemLibrary/NAU/setActuarial/setExamFM118.pg +++ b/OpenProblemLibrary/NAU/setActuarial/setExamFM118.pg @@ -14,7 +14,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -34,7 +34,7 @@ $ans= Compute("$t1-$t2"); BEGIN_TEXT -Allan borrowed $DOLLAR $amt on January 1, 1976, which was to be repaid in 360 level monthly installments at a nominal annual interest rate of $i $PERCENT convertible monthly. The first monthly payment was due February 1, 1976. +Allan borrowed $DOLLAR $amt on January 1, 1976, which was to be repaid in 360 level monthly installments at a nominal annual interest rate of $i $PERCENT convertible monthly. The first monthly payment was due February 1, 1976. Allan missed the first payment, but began making payments on March 1, 1976, and he made 359 payments. Determine how much Allan owed on the loan after making his 359-th payment. $BR $BR diff --git a/OpenProblemLibrary/NAU/setCalcI/quadraticTanLine.pg b/OpenProblemLibrary/NAU/setCalcI/quadraticTanLine.pg index 64ad5e65d5..5b50fd47e7 100644 --- a/OpenProblemLibrary/NAU/setCalcI/quadraticTanLine.pg +++ b/OpenProblemLibrary/NAU/setCalcI/quadraticTanLine.pg @@ -19,7 +19,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -50,7 +50,7 @@ ANS($df->cmp); &SOLUTION(EV3(<<'EOT')); $SOL $BR -In general the derivative of \( x^n \) is \( nx^{n-1} \). Using this (and the +In general the derivative of \( x^n \) is \( nx^{n-1} \). Using this (and the basic sum and constant multiple rules) we find the derivative of $BR \(${a}x^2 + ${b}x +$c1 \quad \) is $BR \( 2${a}x + $b \).$BR $BR EOT @@ -66,7 +66,7 @@ ANS($tanLine->cmp); &SOLUTION(EV3(<<'EOT')); $SOL $BR -To find the derivative we just have to evaluate \( f'( x ) \) at +To find the derivative we just have to evaluate \( f'( x ) \) at \( x = $x1) \), i.e. \( 2${a}\cdot$x1 - $b1 \) or $ans. EOT diff --git a/OpenProblemLibrary/NAU/setCalcI/quadraticTanLine_a.pg b/OpenProblemLibrary/NAU/setCalcI/quadraticTanLine_a.pg index c0d72d8a68..cd3f509684 100644 --- a/OpenProblemLibrary/NAU/setCalcI/quadraticTanLine_a.pg +++ b/OpenProblemLibrary/NAU/setCalcI/quadraticTanLine_a.pg @@ -18,7 +18,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); diff --git a/OpenProblemLibrary/NAU/setCalcIII/Jacobian3.pg b/OpenProblemLibrary/NAU/setCalcIII/Jacobian3.pg index 34d80a1095..ed972dafbb 100644 --- a/OpenProblemLibrary/NAU/setCalcIII/Jacobian3.pg +++ b/OpenProblemLibrary/NAU/setCalcIII/Jacobian3.pg @@ -16,12 +16,12 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGchoicemacros.pl", "PGcourse.pl" ); $showPartialCorrectAnswers = 1; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Matrix'); # Context()->variables->add(x => ['Real']); @@ -55,7 +55,7 @@ $BR Find the derivative of \( f:\mathbb{R}^3\to\mathbb{R}^2\) defined by \( f(x,y,z)=($a x^2 y, e^{$b y+$c z}) \). The derivative \( f':\mathbb{R}^3\to\mathbb{R}^{2\times 3}\) is defined by $BR -\( f'(x,y,z) = \) +\( f'(x,y,z) = \) \{ $Df->ans_array(10)\} END_TEXT diff --git a/OpenProblemLibrary/NAU/setCalcIII/Jacobian5.pg b/OpenProblemLibrary/NAU/setCalcIII/Jacobian5.pg index a0b52989cf..5111a866d1 100644 --- a/OpenProblemLibrary/NAU/setCalcIII/Jacobian5.pg +++ b/OpenProblemLibrary/NAU/setCalcIII/Jacobian5.pg @@ -16,12 +16,12 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGchoicemacros.pl", "PGcourse.pl" ); $showPartialCorrectAnswers = 1; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Matrix'); Context()->variables->add(t => ['Real']); @@ -45,7 +45,7 @@ Context()->texStrings; BEGIN_TEXT Find the derivative of \( f:\mathbb{R}\to\mathbb{R}^2\) defined by \( f(t)=($a t^2,\sin($b t) \). The derivative \( f':\mathbb{R}\to\mathbb{R}^{2\times 1}\) is defined by $BR -\( f'(t) = \) +\( f'(t) = \) \{ $Df->ans_array(10)\} END_TEXT diff --git a/OpenProblemLibrary/NAU/setCalcIII/chain.pg b/OpenProblemLibrary/NAU/setCalcIII/chain.pg index e3761fd7e5..b94434a43f 100644 --- a/OpenProblemLibrary/NAU/setCalcIII/chain.pg +++ b/OpenProblemLibrary/NAU/setCalcIII/chain.pg @@ -16,12 +16,12 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGchoicemacros.pl", "PGcourse.pl" ); $showPartialCorrectAnswers = 1; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Matrix'); { @@ -58,7 +58,7 @@ BEGIN_TEXT Let \(h=f\circ g \) where \( f:\mathbb{R}^2\to\mathbb{R}\) and \( g:\mathbb{R}^2\to\mathbb{R}^2\) is defined by \( g(x,y)=($g1,$g2) \). Find the derivative \( h'($x0,$y0) \) if \(f_x($g1out,$g2out)= $f_x \) and \(f_y($g1out,$g2out)= $f_y \). $BR -\( h'($x0,$y0) = \) +\( h'($x0,$y0) = \) \{ $ans->ans_array(10)\} $BR Find the following: diff --git a/OpenProblemLibrary/NAU/setGraphTheory/Adjacency.pg b/OpenProblemLibrary/NAU/setGraphTheory/Adjacency.pg index 98a617a558..5e6e991fdd 100644 --- a/OpenProblemLibrary/NAU/setGraphTheory/Adjacency.pg +++ b/OpenProblemLibrary/NAU/setGraphTheory/Adjacency.pg @@ -12,13 +12,13 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + # "MatrixReduce.pl", "PGcourse.pl", "parserPopUp.pl", ); $showPartialCorrectAnswers = 1; -TEXT(beginproblem()); +TEXT(beginproblem()); Context("Matrix"); # Context("Fraction"); diff --git a/OpenProblemLibrary/NAU/setGraphTheory/AdjacencyDirected.pg b/OpenProblemLibrary/NAU/setGraphTheory/AdjacencyDirected.pg index 64720c6d1d..59c40352ec 100644 --- a/OpenProblemLibrary/NAU/setGraphTheory/AdjacencyDirected.pg +++ b/OpenProblemLibrary/NAU/setGraphTheory/AdjacencyDirected.pg @@ -12,13 +12,13 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + # "MatrixReduce.pl", "PGcourse.pl", "parserPopUp.pl", ); $showPartialCorrectAnswers = 1; -TEXT(beginproblem()); +TEXT(beginproblem()); Context("Matrix"); # Context("Fraction"); @@ -66,7 +66,7 @@ answer = \{ $ans2->ans_rule(10) \} $PAR -3.What is the in-degree of vertex \( v_3 \)? +3.What is the in-degree of vertex \( v_3 \)? $BR in-degree = \{ $ans3->ans_rule(10) \} @@ -80,14 +80,14 @@ out-degree = \{ $ans4->ans_rule(10) \} $PAR -5. What is the in-degree of vertex \( v_5 \)? +5. What is the in-degree of vertex \( v_5 \)? $BR in-degree = \{ $ans5->ans_rule(10) \} $PAR -6. What is the out-degree of vertex \( v_5 \)? +6. What is the out-degree of vertex \( v_5 \)? $BR out-degree = \{ $ans5->ans_rule(10) \} diff --git a/OpenProblemLibrary/NAU/setGraphTheory/DegreSequences.pg b/OpenProblemLibrary/NAU/setGraphTheory/DegreSequences.pg index 944fd8aecf..f8fe6f76c0 100644 --- a/OpenProblemLibrary/NAU/setGraphTheory/DegreSequences.pg +++ b/OpenProblemLibrary/NAU/setGraphTheory/DegreSequences.pg @@ -15,7 +15,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); diff --git a/OpenProblemLibrary/NAU/setLinearAlgebra/ABA.pg b/OpenProblemLibrary/NAU/setLinearAlgebra/ABA.pg index 66173d6f4c..10a043ac06 100644 --- a/OpenProblemLibrary/NAU/setLinearAlgebra/ABA.pg +++ b/OpenProblemLibrary/NAU/setLinearAlgebra/ABA.pg @@ -13,12 +13,12 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "MatrixReduce.pl", "PGcourse.pl" ); $showPartialCorrectAnswers = 1; -TEXT(beginproblem()); +TEXT(beginproblem()); Context("Matrix"); # Context("Fraction"); @@ -51,7 +51,7 @@ $B=$B->inverse; sub mycheck { my ($correct, $student, $ansHash) = @_; return ( $A*$student*$A == $A ); -# the requirement ($A*$student*$A == $A && $student*$A*$student == $student) is also possible +# the requirement ($A*$student*$A == $A && $student*$A*$student == $student) is also possible } diff --git a/OpenProblemLibrary/NAU/setLinearAlgebra/ABAhard.pg b/OpenProblemLibrary/NAU/setLinearAlgebra/ABAhard.pg index 1400e451df..dca866613a 100644 --- a/OpenProblemLibrary/NAU/setLinearAlgebra/ABAhard.pg +++ b/OpenProblemLibrary/NAU/setLinearAlgebra/ABAhard.pg @@ -13,12 +13,12 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "MatrixReduce.pl", "PGcourse.pl" ); $showPartialCorrectAnswers = 1; -TEXT(beginproblem()); +TEXT(beginproblem()); Context("Matrix"); # Context("Fraction"); diff --git a/OpenProblemLibrary/NAU/setLinearAlgebra/HomLinEq.pg b/OpenProblemLibrary/NAU/setLinearAlgebra/HomLinEq.pg index 44a7b71231..258d894342 100644 --- a/OpenProblemLibrary/NAU/setLinearAlgebra/HomLinEq.pg +++ b/OpenProblemLibrary/NAU/setLinearAlgebra/HomLinEq.pg @@ -15,14 +15,14 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "MatrixReduce.pl", "rank.pl", "PGcourse.pl" ); $showPartialCorrectAnswers = 1; -TEXT(beginproblem()); +TEXT(beginproblem()); Context("Fraction"); Context() -> parens -> set ("[" => {formMatrix => 1}); @@ -41,13 +41,13 @@ my ( $correct, $student, $self ) = @_; Context("Fraction"); my @s = @{$student}; my @c = @{$correct}; -my $s0 = Matrix($s[0]); +my $s0 = Matrix($s[0]); my $s1 = Matrix($s[1]); my $M1=Matrix( [$s0->element(1,1),$s0->element(2,1),$s0->element(3,1)], [$b,- $a,0], - [$c,0,- $a] + [$c,0,- $a] ); if (rank($M1)!=2) { @@ -58,7 +58,7 @@ if (rank($M1)!=2) { my $M2=Matrix( [$s1->element(1,1),$s1->element(2,1),$s1->element(3,1)], [$b,- $a,0], - [$c,0,- $a] + [$c,0,- $a] ); if (rank($M2)!=2) { @@ -83,16 +83,16 @@ return 1; Context()->texStrings; BEGIN_TEXT -Solve the equation \[ $a x + $b y + $c z = 0 \] +Solve the equation \[ $a x + $b y + $c z = 0 \] $BR -\( -\left[ +\( +\left[ \begin{array}{c} x \\ y \\ z -\end{array} -\right] +\end{array} +\right] = s \) \{ $multians->ans_array(3) \} diff --git a/OpenProblemLibrary/NAU/setLinearAlgebra/JordanBlockSizes.pg b/OpenProblemLibrary/NAU/setLinearAlgebra/JordanBlockSizes.pg index b43774b251..4992aacde9 100644 --- a/OpenProblemLibrary/NAU/setLinearAlgebra/JordanBlockSizes.pg +++ b/OpenProblemLibrary/NAU/setLinearAlgebra/JordanBlockSizes.pg @@ -17,14 +17,14 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGchoicemacros.pl", "MatrixReduce.pl", "rank.pl", "PGcourse.pl" ); $showPartialCorrectAnswers = 1; -TEXT(beginproblem()); +TEXT(beginproblem()); Context("Numeric"); @@ -53,7 +53,7 @@ $table_end = endtable(); Context()->texStrings; BEGIN_TEXT -Let \( \lambda \) be an eigenvalue of the linear operator \( L \) and define \( L_\lambda := L - \lambda I \). +Let \( \lambda \) be an eigenvalue of the linear operator \( L \) and define \( L_\lambda := L - \lambda I \). The following table lists the nullities of the powers of \( L_\lambda \). $BCENTER $table_start @@ -61,7 +61,7 @@ $table_row1 $table_row2 $table_end $ECENTER -Find the sizes of the Jordan blocks corresponding to \( \lambda \) of the Jordan form of the matrix of \( L \) as a list of integers. +Find the sizes of the Jordan blocks corresponding to \( \lambda \) of the Jordan form of the matrix of \( L \) as a list of integers. $BR Sizes: \{ ans_rule(20) \} diff --git a/OpenProblemLibrary/NAU/setLinearAlgebra/JordanForm.pg b/OpenProblemLibrary/NAU/setLinearAlgebra/JordanForm.pg index 95dce49169..ddef861990 100644 --- a/OpenProblemLibrary/NAU/setLinearAlgebra/JordanForm.pg +++ b/OpenProblemLibrary/NAU/setLinearAlgebra/JordanForm.pg @@ -13,11 +13,11 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); $showPartialCorrectAnswers = 1; -TEXT(beginproblem()); +TEXT(beginproblem()); Context("Matrix"); @@ -52,27 +52,27 @@ my ($s1,$s2) = @{$student}; my $sP=Matrix($s1); if ($sP->det == 0) { $self->setMessage(1,"Not invertible."); - return 0; -} + return 0; +} my $sD=Matrix($s2); if ($sD != $D) { $self->setMessage(2,"Incorrect Jordan form."); - return 0; -} + return 0; +} if ($sP*$D != $A * $sP) { - return 0; -} + return 0; +} return 1; } ); Context()->texStrings; BEGIN_TEXT -Let \[ A=$A. \] Find a matrix \( P \) such that \( D=P^{-1} A P \) is the Jordan canonical form of \( A \). +Let \[ A=$A. \] Find a matrix \( P \) such that \( D=P^{-1} A P \) is the Jordan canonical form of \( A \). The Jordan form is upper triangular. The blocks are ordered increasingly by eigenvalue and then by block size. $BR \( P = \) -\{ $multians->ans_array(3) \}, +\{ $multians->ans_array(3) \}, \( D = \) \{ $multians->ans_array(3) \} diff --git a/OpenProblemLibrary/NAU/setLinearAlgebra/JordanForm2.pg b/OpenProblemLibrary/NAU/setLinearAlgebra/JordanForm2.pg index affc341256..0ff275f1fe 100644 --- a/OpenProblemLibrary/NAU/setLinearAlgebra/JordanForm2.pg +++ b/OpenProblemLibrary/NAU/setLinearAlgebra/JordanForm2.pg @@ -13,11 +13,11 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); $showPartialCorrectAnswers = 1; -TEXT(beginproblem()); +TEXT(beginproblem()); Context("Matrix"); @@ -52,27 +52,27 @@ my ($s1,$s2) = @{$student}; my $sP=Matrix($s1); if ($sP->det == 0) { $self->setMessage(1,"Not invertible."); - return 0; -} + return 0; +} my $sD=Matrix($s2); if ($sD != $D) { $self->setMessage(2,"Incorrect Jordan form."); - return 0; -} + return 0; +} if ($sP*$D != $A * $sP) { - return 0; -} + return 0; +} return 1; } ); Context()->texStrings; BEGIN_TEXT -Let \[ A=$A. \] Find a matrix \( P \) such that \( D=P^{-1} A P \) is the Jordan canonical form of \( A \). +Let \[ A=$A. \] Find a matrix \( P \) such that \( D=P^{-1} A P \) is the Jordan canonical form of \( A \). The Jordan form is upper triangular. The blocks are ordered increasingly by eigenvalue and then by block size. $BR \( P = \) -\{ $multians->ans_array(3) \}, +\{ $multians->ans_array(3) \}, \( D = \) \{ $multians->ans_array(3) \} diff --git a/OpenProblemLibrary/NAU/setLinearAlgebra/LinTransImage.pg b/OpenProblemLibrary/NAU/setLinearAlgebra/LinTransImage.pg index 3fc23579b2..eacbf9a6c3 100644 --- a/OpenProblemLibrary/NAU/setLinearAlgebra/LinTransImage.pg +++ b/OpenProblemLibrary/NAU/setLinearAlgebra/LinTransImage.pg @@ -13,13 +13,13 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "MatrixReduce.pl", "rank.pl", "PGcourse.pl" ); $showPartialCorrectAnswers = 1; -TEXT(beginproblem()); +TEXT(beginproblem()); Context("Fraction"); Context() -> parens -> set ("[" => {formMatrix => 1}); @@ -140,7 +140,7 @@ BEGIN_TEXT Let \(V=\mathbb{R}^{2\times 2}\) be the vector space of \( 2\times 2\) matrices and let \( L :V\to V\) be defined by \( L(X) = $A X \). Hint: The image of a spanning set is a spanning set for the image. $BR -a. Find \(L($B)=\) +a. Find \(L($B)=\) \{ $LB->ans_array(3) \} $BR diff --git a/OpenProblemLibrary/NAU/setLinearAlgebra/P2BasisTrans.pg b/OpenProblemLibrary/NAU/setLinearAlgebra/P2BasisTrans.pg index a0d2faefdf..e9e3764d73 100644 --- a/OpenProblemLibrary/NAU/setLinearAlgebra/P2BasisTrans.pg +++ b/OpenProblemLibrary/NAU/setLinearAlgebra/P2BasisTrans.pg @@ -18,12 +18,12 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGchoicemacros.pl", "PGcourse.pl" ); $showPartialCorrectAnswers = 1; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Matrix'); @@ -65,7 +65,7 @@ $q_B = $CB*$q_C; Context()->texStrings; BEGIN_TEXT -Consider the ordered bases \( B=($b1,$b2)\) and \( C=($c1,$c2)\) +Consider the ordered bases \( B=($b1,$b2)\) and \( C=($c1,$c2)\) for the vector space \({\mathbb P}_2[x] \). $BR a. Find the transition matrix from \( C \) to the standard ordered basis \( E=(1,x) \). @@ -89,7 +89,7 @@ $BR \( [p(x)]_B = \) \{ $p_B->ans_array(3) \} $BR f. Find the coordinates of \( q(x) \) in the ordered basis \( B \) -if the coordinate vector of \( q(x) \) in \( C \) is \( +if the coordinate vector of \( q(x) \) in \( C \) is \( [q(x)]_C = ($q1,$q2) \). $BR \( [q(x)]_B = \) \{ $q_B->ans_array(3) \} diff --git a/OpenProblemLibrary/NAU/setLinearAlgebra/P3kernelBasis.pg b/OpenProblemLibrary/NAU/setLinearAlgebra/P3kernelBasis.pg index 25b115fb35..fc037d5fbb 100644 --- a/OpenProblemLibrary/NAU/setLinearAlgebra/P3kernelBasis.pg +++ b/OpenProblemLibrary/NAU/setLinearAlgebra/P3kernelBasis.pg @@ -13,13 +13,13 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "MatrixReduce.pl", "rank.pl", "PGcourse.pl" ); $showPartialCorrectAnswers = 1; -TEXT(beginproblem()); +TEXT(beginproblem()); Context("Numeric"); @@ -40,21 +40,21 @@ my $s1DD=$s1D->D('x'); my $s2DD=$s1D->D('x'); if ($s1D->eval(x=>$l) != $s1->eval(x=>1)) { $self->setMessage(1,"Not in kernel."); - return 0; -} + return 0; +} if ($s2D->eval(x=>$l) != $s2->eval(x=>1)) { $self->setMessage(2,"Not in kernel."); - return 0; + return 0; } my $s1DDD=$s1DD->D('x'); my $s2DDD=$s1DD->D('x'); if ($s1DDD != Formula("0")) { $self->setMessage(1,"Not in kernel."); - return 0; + return 0; } if ($s2DDD != Formula("0")) { $self->setMessage(2,"Not in kernel."); - return 0; + return 0; } my $a1=$s1->eval(x=>0); my $b1=$s1D->eval(x=>0); @@ -73,12 +73,12 @@ return 0; Context()->texStrings; BEGIN_TEXT -Find a basis \( \lbrace p(x), q(x) \rbrace \) for the kernel of the linear transformation -\( L:{\mathbb P}_3[x]\to {\mathbb R} \) defined by \( L(f(x)) = f'($l)-f(1) \) +Find a basis \( \lbrace p(x), q(x) \rbrace \) for the kernel of the linear transformation +\( L:{\mathbb P}_3[x]\to {\mathbb R} \) defined by \( L(f(x)) = f'($l)-f(1) \) where \({\mathbb P}_3[x]\) is the vector space of polynomials in \(x\) with degree less than 3. $BR \( p(x) = \) -\{ $multians->ans_rule(15) \}, +\{ $multians->ans_rule(15) \}, \( q(x) = \) \{ $multians->ans_rule(15) \} diff --git a/OpenProblemLibrary/NAU/setLinearAlgebra/P3span.pg b/OpenProblemLibrary/NAU/setLinearAlgebra/P3span.pg index 03d5e15fd5..62abf86ac9 100644 --- a/OpenProblemLibrary/NAU/setLinearAlgebra/P3span.pg +++ b/OpenProblemLibrary/NAU/setLinearAlgebra/P3span.pg @@ -15,13 +15,13 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "MatrixReduce.pl", "rank.pl", "PGcourse.pl" ); $showPartialCorrectAnswers = 1; -TEXT(beginproblem()); +TEXT(beginproblem()); Context("Numeric"); @@ -62,14 +62,14 @@ sub mycheck { my $studentDDD=$studentDD->D('x'); if ($studentDDD!= Formula("0")) { # $self->setMessage(1,"Not in the subspace."); - return 0 - } + return 0 + } my $a=$student->eval(x=>0); my $b=$studentD->eval(x=>0); my $c=$studentDD->eval(x=>0)/2; - if ( $a == 0 and $b==0 and $c==0 ){ - return 0; - } + if ( $a == 0 and $b==0 and $c==0 ){ + return 0; + } Context('Matrix'); if (rank(Matrix([$a11,$a12,$a22],[$b11,$b12,$b22],[$a,$b,$c]))==2) { return 1; @@ -86,8 +86,8 @@ sub mycheck2 { my $studentDDD=$studentDD->D('x'); if ($studentDDD!= Formula("0")) { # $self->setMessage(1,"Not in the subspace."); - return 0 - } + return 0 + } my $a=$student->eval(x=>0); my $b=$studentD->eval(x=>0); my $c=$studentDD->eval(x=>0)/2; @@ -103,7 +103,7 @@ sub mycheck2 { Context()->texStrings; BEGIN_TEXT -Let \(V\) be the vector space \({\mathbb P}_3[x] \) of polynomials in \(x\) with degree less than 3 and +Let \(V\) be the vector space \({\mathbb P}_3[x] \) of polynomials in \(x\) with degree less than 3 and \(W\) be the subspace \[W=\text{span} \lbrace $A,$B \rbrace .\] $BR a. Find a nonzero polynomial \(p(x)\) in \( W \). diff --git a/OpenProblemLibrary/NAU/setLinearAlgebra/P3subspaceBasis.pg b/OpenProblemLibrary/NAU/setLinearAlgebra/P3subspaceBasis.pg index 317294eb58..956559400c 100644 --- a/OpenProblemLibrary/NAU/setLinearAlgebra/P3subspaceBasis.pg +++ b/OpenProblemLibrary/NAU/setLinearAlgebra/P3subspaceBasis.pg @@ -14,13 +14,13 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "MatrixReduce.pl", "rank.pl", "PGcourse.pl" ); $showPartialCorrectAnswers = 1; -TEXT(beginproblem()); +TEXT(beginproblem()); Context("Numeric"); @@ -41,22 +41,22 @@ my $s1DD=$s1D->D('x'); my $s2DD=$s2D->D('x'); if ($s1D->eval(x=>$l) != $s1->eval(x=>1)) { $self->setMessage(1,"Not in the subspace."); - return 0 -} + return 0 +} if ($s2D->eval(x=>$l) != $s2->eval(x=>1)) { $self->setMessage(2,"Not in the subspace."); - return 0 -} + return 0 +} my $s1DDD=$s1DD->D('x'); my $s2DDD=$s2DD->D('x'); if ($s1DDD != Formula("0")) { $self->setMessage(1,"Not in the subspace."); - return 0 -} + return 0 +} if ($s2DDD != Formula("0")) { $self->setMessage(2,"Not in the subspace."); - return 0 -} + return 0 +} my $a1=$s1->eval(x=>0); my $b1=$s1D->eval(x=>0); my $c1=$s1DD->eval(x=>0)/2; @@ -74,12 +74,12 @@ return 0; Context()->texStrings; BEGIN_TEXT -Find a basis \( \lbrace p(x), q(x) \rbrace \) for the vector space -\(\lbrace f(x)\in{\mathbb P}_3[x] \mid f'($l)=f(1) \rbrace\) +Find a basis \( \lbrace p(x), q(x) \rbrace \) for the vector space +\(\lbrace f(x)\in{\mathbb P}_3[x] \mid f'($l)=f(1) \rbrace\) where \({\mathbb P}_3[x]\) is the vector space of polynomials in \(x\) with degree less than 3. $BR \( p(x) = \) -\{ $multians->ans_rule(15) \}, +\{ $multians->ans_rule(15) \}, \( q(x) = \) \{ $multians->ans_rule(15) \} diff --git a/OpenProblemLibrary/NAU/setLinearAlgebra/R2BasisTrans.pg b/OpenProblemLibrary/NAU/setLinearAlgebra/R2BasisTrans.pg index eb8cfc09be..5b43f9efdc 100644 --- a/OpenProblemLibrary/NAU/setLinearAlgebra/R2BasisTrans.pg +++ b/OpenProblemLibrary/NAU/setLinearAlgebra/R2BasisTrans.pg @@ -18,12 +18,12 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGchoicemacros.pl", "PGcourse.pl" ); $showPartialCorrectAnswers = 1; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Matrix'); @@ -60,7 +60,7 @@ $q_B = $CB*$q_C; Context()->texStrings; BEGIN_TEXT -Consider the ordered bases \( B=(($b11,$b12),($b21,$b22))\) and \( C=(($c11,$c12),($c21,$c22))\) +Consider the ordered bases \( B=(($b11,$b12),($b21,$b22))\) and \( C=(($c11,$c12),($c21,$c22))\) for the vector space \({\mathbb R}^2 \). $BR a. Find the transition matrix from \( C \) to the standard ordered basis \( E=((1,0),(0,1)) \). @@ -84,7 +84,7 @@ $BR \( [u]_B = \) \{ $p_B->ans_array(3) \} $BR f. Find the coordinates of \( v \) in the ordered basis \( B \) -if the coordinate vector of \( v \) in \( C \) is \( +if the coordinate vector of \( v \) in \( C \) is \( [v]_C = ($q1,$q2) \). $BR \( [v]_B = \) \{ $q_B->ans_array(3) \} diff --git a/OpenProblemLibrary/NAU/setLinearAlgebra/RieszRep.pg b/OpenProblemLibrary/NAU/setLinearAlgebra/RieszRep.pg index 0a0504dfb4..06b619a782 100644 --- a/OpenProblemLibrary/NAU/setLinearAlgebra/RieszRep.pg +++ b/OpenProblemLibrary/NAU/setLinearAlgebra/RieszRep.pg @@ -17,12 +17,12 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGchoicemacros.pl", "PGcourse.pl" ); $showPartialCorrectAnswers = 1; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Numeric'); { @@ -40,8 +40,8 @@ $ans=Formula("$u+$v*x"); Context()->texStrings; BEGIN_TEXT -Consider the inner product \( \langle p(x),q(x)\rangle:=\int_0^1 p(x)q(x) dx \) on the vector space \( V \) of real polynomials with degree less than 2. -The linear functional \( f:V\to \mathbb {R} \) is defined by \( f(p(x))=p'($alpha)+$beta p($gamma) \). According to the Riesz Representation Theorem, +Consider the inner product \( \langle p(x),q(x)\rangle:=\int_0^1 p(x)q(x) dx \) on the vector space \( V \) of real polynomials with degree less than 2. +The linear functional \( f:V\to \mathbb {R} \) is defined by \( f(p(x))=p'($alpha)+$beta p($gamma) \). According to the Riesz Representation Theorem, there is an \( r(x) \in V \) such that \( f(p(x)=\langle p(x),r(x) \rangle \) for all \( p(x)\in V \). Find this \( r(x) \). $BR \( r(x) = \) \{ $ans->ans_rule(15) \} diff --git a/OpenProblemLibrary/NAU/setLinearAlgebra/Trace0BasisTrans.pg b/OpenProblemLibrary/NAU/setLinearAlgebra/Trace0BasisTrans.pg index 7942e6b464..513bb04a07 100644 --- a/OpenProblemLibrary/NAU/setLinearAlgebra/Trace0BasisTrans.pg +++ b/OpenProblemLibrary/NAU/setLinearAlgebra/Trace0BasisTrans.pg @@ -20,12 +20,12 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGchoicemacros.pl", "PGcourse.pl" ); $showPartialCorrectAnswers = 1; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Matrix'); @@ -57,7 +57,7 @@ $M = $p1*$C1+$p2*$C2; Context()->texStrings; BEGIN_TEXT -Consider the ordered bases \( B=($B1,$B2)\) and \( C=($C1,$C2)\) +Consider the ordered bases \( B=($B1,$B2)\) and \( C=($C1,$C2)\) for the vector space \( V \) of lower triangular \( 2\times 2\) matrices with zero trace. $BR @@ -66,7 +66,7 @@ $BR \( T_C^B = \) \{ $C2B->ans_array(3) \} $BR b. Find the coordinates of \( M \) in the ordered basis \( B \) -if the coordinate vector of \( M \) in \( C \) is \( +if the coordinate vector of \( M \) in \( C \) is \( [M]_C = $M_C \). $BR \( [M]_B = \) \{ $M_B->ans_array(3) \} diff --git a/OpenProblemLibrary/NAU/setLinearAlgebra/Trace0BasisTransHarder.pg b/OpenProblemLibrary/NAU/setLinearAlgebra/Trace0BasisTransHarder.pg index ab2ef6f834..36c9e612b3 100644 --- a/OpenProblemLibrary/NAU/setLinearAlgebra/Trace0BasisTransHarder.pg +++ b/OpenProblemLibrary/NAU/setLinearAlgebra/Trace0BasisTransHarder.pg @@ -19,12 +19,12 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGchoicemacros.pl", "PGcourse.pl" ); $showPartialCorrectAnswers = 1; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Matrix'); @@ -65,7 +65,7 @@ $M = $p1*$C1+$p2*$C2; Context()->texStrings; BEGIN_TEXT -Consider the ordered bases \( B=($B1,$B2)\) and \( C=($C1,$C2)\) +Consider the ordered bases \( B=($B1,$B2)\) and \( C=($C1,$C2)\) for the vector space \( V \) of lower triangular \( 2\times 2\) matrices with zero trace. @@ -75,7 +75,7 @@ $BR \( T_C^B = \) \{ $C2B->ans_array(3) \} $BR b. Find the coordinates of \( M \) in the ordered basis \( B \) -if the coordinate vector of \( M \) in \( C \) is \( +if the coordinate vector of \( M \) in \( C \) is \( [M]_C = $M_C \). $BR \( [M]_B = \) \{ $M_B->ans_array(3) \} diff --git a/OpenProblemLibrary/NAU/setLinearAlgebra/UpperMatrixBasisTrans.pg b/OpenProblemLibrary/NAU/setLinearAlgebra/UpperMatrixBasisTrans.pg index 0b00d7a255..b29e2d7429 100644 --- a/OpenProblemLibrary/NAU/setLinearAlgebra/UpperMatrixBasisTrans.pg +++ b/OpenProblemLibrary/NAU/setLinearAlgebra/UpperMatrixBasisTrans.pg @@ -18,12 +18,12 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGchoicemacros.pl", "PGcourse.pl" ); $showPartialCorrectAnswers = 1; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Matrix'); @@ -71,7 +71,7 @@ $M = $p1*$C1+$p2*$C2+$p3*$C3; Context()->texStrings; BEGIN_TEXT -Consider the ordered bases \( B=($B1,$B2,$B3)\) and \( C=($C1,$C2,$C3)\) +Consider the ordered bases \( B=($B1,$B2,$B3)\) and \( C=($C1,$C2,$C3)\) for the vector space \( V \) of upper triangular \( 2\times 2\) matrices. $BR a. Find the transition matrix from \( C \) to \( B \). @@ -79,7 +79,7 @@ $BR \( T_C^B = \) \{ $C2B->ans_array(3) \} $BR b. Find the coordinates of \( M \) in the ordered basis \( B \) -if the coordinate vector of \( M \) in \( C \) is \( +if the coordinate vector of \( M \) in \( C \) is \( [M]_C = $M_C \). $BR \( [M]_B = \) \{ $M_B->ans_array(3) \} diff --git a/OpenProblemLibrary/NAU/setLinearAlgebra/adjoint.pg b/OpenProblemLibrary/NAU/setLinearAlgebra/adjoint.pg index b5bd496195..70a6f785ab 100644 --- a/OpenProblemLibrary/NAU/setLinearAlgebra/adjoint.pg +++ b/OpenProblemLibrary/NAU/setLinearAlgebra/adjoint.pg @@ -17,12 +17,12 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGchoicemacros.pl", "PGcourse.pl" ); $showPartialCorrectAnswers = 1; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Numeric'); Context()->variables->add(a => ['Real']); @@ -38,8 +38,8 @@ $ans2=Formula("12*$alpha*a + (6*$alpha + $beta)*b")->reduce; Context()->texStrings; BEGIN_TEXT -Consider the inner product \( \langle p(x),q(x)\rangle:=\int_0^1 p(x)q(x) dx \) on the vector space \( V \) of real polynomials with degree less than 2. -The linear operator \( L:V \to V \) is defined by \( L(p(x))=$alpha p'(x)+$beta p(x) \). Find the adjoint \( L^* \) of \( L \). +Consider the inner product \( \langle p(x),q(x)\rangle:=\int_0^1 p(x)q(x) dx \) on the vector space \( V \) of real polynomials with degree less than 2. +The linear operator \( L:V \to V \) is defined by \( L(p(x))=$alpha p'(x)+$beta p(x) \). Find the adjoint \( L^* \) of \( L \). $BR \( L^*(a+bx) = \) \{ $ans1->ans_rule(20) \} + \{ $ans2->ans_rule(20) \} \( x \) diff --git a/OpenProblemLibrary/NAU/setLinearAlgebra/adjoint2.pg b/OpenProblemLibrary/NAU/setLinearAlgebra/adjoint2.pg index dd71c0595c..d794eb09ea 100644 --- a/OpenProblemLibrary/NAU/setLinearAlgebra/adjoint2.pg +++ b/OpenProblemLibrary/NAU/setLinearAlgebra/adjoint2.pg @@ -17,12 +17,12 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGchoicemacros.pl", "PGcourse.pl" ); $showPartialCorrectAnswers = 1; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Matrix'); Context()->variables->add(a => ['Real']); @@ -47,10 +47,10 @@ $adj=Matrix([[$ans1,$ans3],[$ans2,$ans4]]); Context()->texStrings; BEGIN_TEXT $BR -Consider the inner product \( \langle X,Y \rangle:= \text{trace}(X^T Y) \) on the vector space \( V=\mathbb{R}^{2\times 2} \). -The linear operator \( L:V \to V \) is defined by \( L(X)= $A X \). Find the adjoint \( L^* \) of \( L \). +Consider the inner product \( \langle X,Y \rangle:= \text{trace}(X^T Y) \) on the vector space \( V=\mathbb{R}^{2\times 2} \). +The linear operator \( L:V \to V \) is defined by \( L(X)= $A X \). Find the adjoint \( L^* \) of \( L \). $BR -\( L^*(\left[\matrix {a & b \\ c & d}\right]) = \) +\( L^*(\left[\matrix {a & b \\ c & d}\right]) = \) \{ $adj->ans_array(10)\} END_TEXT diff --git a/OpenProblemLibrary/NAU/setLinearAlgebra/basisHalfMagic.pg b/OpenProblemLibrary/NAU/setLinearAlgebra/basisHalfMagic.pg index f3457661b2..948e149ff9 100644 --- a/OpenProblemLibrary/NAU/setLinearAlgebra/basisHalfMagic.pg +++ b/OpenProblemLibrary/NAU/setLinearAlgebra/basisHalfMagic.pg @@ -18,13 +18,13 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "MatrixReduce.pl", "rank.pl", "PGcourse.pl" ); $showPartialCorrectAnswers = 0; -TEXT(beginproblem()); +TEXT(beginproblem()); Context("Fraction"); Context() -> parens -> set ("[" => {formMatrix => 1}); @@ -34,12 +34,12 @@ $B = Matrix([[0,1],[1,0]]); sub magic { my ($m) = @_; -my $s1=$m->element(1,1)+$m->element(1,2); -my $s2=$m->element(2,1)+$m->element(2,2); +my $s1=$m->element(1,1)+$m->element(1,2); +my $s2=$m->element(2,1)+$m->element(2,2); return 0 if ($s2 != $s1); -my $s4=$m->element(1,1)+$m->element(2,1); +my $s4=$m->element(1,1)+$m->element(2,1); return 0 if ($s4 != $s1); -my $s5=$m->element(1,2)+$m->element(2,2); +my $s5=$m->element(1,2)+$m->element(2,2); return 0 if ($s5 != $s1); return 1; } @@ -51,7 +51,7 @@ checker => sub { my ( $correct, $student, $self ) = @_; my @s = @{$student}; my @c = @{$correct}; -$s0 = Matrix($s[0]); +$s0 = Matrix($s[0]); $s1 = Matrix($s[1]); if (! magic($s0)) { @@ -78,14 +78,14 @@ return 0; Context()->texStrings; BEGIN_TEXT -A square matrix is half-magic if the sum of the numbers in each row and column is the same. -Find a basis \( B \) for the vector space of \( 2\times 2\) half-magic squares. +A square matrix is half-magic if the sum of the numbers in each row and column is the same. +Find a basis \( B \) for the vector space of \( 2\times 2\) half-magic squares. $BR $BR \( B = \lbrace \) \{ $multians->ans_array(3) \}, -\{ $multians->ans_array(3) \} +\{ $multians->ans_array(3) \} \(\rbrace \). diff --git a/OpenProblemLibrary/NAU/setLinearAlgebra/basisMagic.pg b/OpenProblemLibrary/NAU/setLinearAlgebra/basisMagic.pg index a0b9db2460..39b07babaa 100644 --- a/OpenProblemLibrary/NAU/setLinearAlgebra/basisMagic.pg +++ b/OpenProblemLibrary/NAU/setLinearAlgebra/basisMagic.pg @@ -18,13 +18,13 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "MatrixReduce.pl", "rank.pl", "PGcourse.pl" ); $showPartialCorrectAnswers = 0; -TEXT(beginproblem()); +TEXT(beginproblem()); Context("Fraction"); Context() -> parens -> set ("[" => {formMatrix => 1}); @@ -36,20 +36,20 @@ $C = Matrix([[2,2,-1],[-2,1,4],[3,0,0]]); sub magic { my ($m) = @_; -my $s1=$m->element(1,1)+$m->element(1,2)+$m->element(1,3); -my $s2=$m->element(2,1)+$m->element(2,2)+$m->element(2,3); +my $s1=$m->element(1,1)+$m->element(1,2)+$m->element(1,3); +my $s2=$m->element(2,1)+$m->element(2,2)+$m->element(2,3); return 0 if ($s2 != $s1); -my $s3=$m->element(3,1)+$m->element(3,2)+$m->element(3,3); +my $s3=$m->element(3,1)+$m->element(3,2)+$m->element(3,3); return 0 if ($s3 != $s1); -my $s4=$m->element(1,1)+$m->element(2,1)+$m->element(3,1); +my $s4=$m->element(1,1)+$m->element(2,1)+$m->element(3,1); return 0 if ($s4 != $s1); -my $s5=$m->element(1,2)+$m->element(2,2)+$m->element(3,2); +my $s5=$m->element(1,2)+$m->element(2,2)+$m->element(3,2); return 0 if ($s5 != $s1); -my $s6=$m->element(1,3)+$m->element(2,3)+$m->element(3,3); +my $s6=$m->element(1,3)+$m->element(2,3)+$m->element(3,3); return 0 if ($s6 != $s1); -my $s7=$m->element(1,1)+$m->element(2,2)+$m->element(3,3); +my $s7=$m->element(1,1)+$m->element(2,2)+$m->element(3,3); return 0 if ($s7 != $s1); -my $s8=$m->element(1,3)+$m->element(2,2)+$m->element(3,1); +my $s8=$m->element(1,3)+$m->element(2,2)+$m->element(3,1); return 0 if ($s8 != $s1); return 1; } @@ -60,22 +60,22 @@ checker => sub { my ( $correct, $student, $self ) = @_; my @s = @{$student}; my @c = @{$correct}; -$s0 = Matrix($s[0]); +$s0 = Matrix($s[0]); $s1 = Matrix($s[1]); $s2 = Matrix($s[2]); if (! magic($s0)) { $self->setMessage(1,"Not magic."); return 0; -} +} if (! magic($s1)) { $self->setMessage(2,"Not magic."); return 0; -} +} if (! magic($s2)) { $self->setMessage(3,"Not magic."); return 0; -} +} if (rank(Matrix( [$s0->element(1,1),$s0->element(1,2),$s0->element(1,3), $s0->element(2,1),$s0->element(2,2),$s0->element(2,3), @@ -98,7 +98,7 @@ return 0; Context()->texStrings; BEGIN_TEXT -Find a basis \( B \) for the vector space of \( 3\times 3\) magic squares. +Find a basis \( B \) for the vector space of \( 3\times 3\) magic squares. A square matrix is magic if the sum of the numbers in each row, column, and diagonal is the same. $BR @@ -106,7 +106,7 @@ $BR \( B = \lbrace \) \{ $multians->ans_array(3) \}, \{ $multians->ans_array(3) \}, -\{ $multians->ans_array(3) \} +\{ $multians->ans_array(3) \} \(\rbrace \). diff --git a/OpenProblemLibrary/NAU/setLinearAlgebra/basisTrace0.pg b/OpenProblemLibrary/NAU/setLinearAlgebra/basisTrace0.pg index 50149f998e..f081afde83 100644 --- a/OpenProblemLibrary/NAU/setLinearAlgebra/basisTrace0.pg +++ b/OpenProblemLibrary/NAU/setLinearAlgebra/basisTrace0.pg @@ -18,13 +18,13 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "MatrixReduce.pl", "rank.pl", "PGcourse.pl" ); $showPartialCorrectAnswers = 0; -TEXT(beginproblem()); +TEXT(beginproblem()); Context("Fraction"); Context() -> parens -> set ("[" => {formMatrix => 1}); @@ -40,21 +40,21 @@ checker => sub { my ( $correct, $student, $self ) = @_; my @s = @{$student}; my @c = @{$correct}; -$s0 = Matrix($s[0]); +$s0 = Matrix($s[0]); $s1 = Matrix($s[1]); $s2 = Matrix($s[2]); if (0 != $s0->trace) { $self->setMessage(1,"Trace not zero."); - return 0; -} + return 0; +} if (0 != $s1->trace) { $self->setMessage(2,"Trace not zero."); - return 0; -} + return 0; +} if (0 != $s2->trace) { $self->setMessage(3,"Trace not zero."); - return 0; -} + return 0; +} if (rank(Matrix( [$s0->element(1,1),$s0->element(1,2),$s0->element(2,1)], [$s1->element(1,1),$s1->element(1,2),$s1->element(2,1)], @@ -70,8 +70,8 @@ return 0; Context()->texStrings; BEGIN_TEXT -Find a basis for the vector space -\( \lbrace A\in {\mathbb R}^{2\times 2} \mid \text{tr}(A)=0\rbrace\) +Find a basis for the vector space +\( \lbrace A\in {\mathbb R}^{2\times 2} \mid \text{tr}(A)=0\rbrace\) of \(2\times 2\) matrices with trace 0. $BR diff --git a/OpenProblemLibrary/NAU/setLinearAlgebra/charpoly.pg b/OpenProblemLibrary/NAU/setLinearAlgebra/charpoly.pg index 32adb506bd..2fb7ad8133 100644 --- a/OpenProblemLibrary/NAU/setLinearAlgebra/charpoly.pg +++ b/OpenProblemLibrary/NAU/setLinearAlgebra/charpoly.pg @@ -18,17 +18,17 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGchoicemacros.pl", "PGcourse.pl" ); $showPartialCorrectAnswers = 1; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Matrix'); { -$P=Matrix([[random(-2,2,1),random(-2,2,1),non_zero_random(-2,2,1)],[random(-2,2,1),random(-2,2,1),random(-2,2,1)],[non_zero_random(-2,2,1),random(-2,2,1),random(-2,2,1)]]); +$P=Matrix([[random(-2,2,1),random(-2,2,1),non_zero_random(-2,2,1)],[random(-2,2,1),random(-2,2,1),random(-2,2,1)],[non_zero_random(-2,2,1),random(-2,2,1),random(-2,2,1)]]); redo if (abs($P->det) != 1); redo if ($P == Matrix([[1,0,0],[0,1,0],[0,0,1]])); } diff --git a/OpenProblemLibrary/NAU/setLinearAlgebra/charpolyQuotient.pg b/OpenProblemLibrary/NAU/setLinearAlgebra/charpolyQuotient.pg index 687c886257..740b0afa1f 100644 --- a/OpenProblemLibrary/NAU/setLinearAlgebra/charpolyQuotient.pg +++ b/OpenProblemLibrary/NAU/setLinearAlgebra/charpolyQuotient.pg @@ -18,12 +18,12 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGchoicemacros.pl", "PGcourse.pl" ); $showPartialCorrectAnswers = 1; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Numeric'); @@ -38,9 +38,9 @@ $ans=Formula("($b-t)*($b-t)"); Context()->texStrings; BEGIN_TEXT -Let \( V \) be the vector space of real polynomials with degree less than 4. Let \( W \) be the subspace of polynomials with degree less than 2. +Let \( V \) be the vector space of real polynomials with degree less than 4. Let \( W \) be the subspace of polynomials with degree less than 2. Consider the linear operator \( L:V\to V \) defined by \( L(p(x)):=$a p'(x)+$b p(x) \). It is easy to see that \( W \) is invariant under \( L \). -Define the linear operator \( K \) on the quotient space \( V/W \) by \( K(p(x)+W):= L(p(x))+W \). +Define the linear operator \( K \) on the quotient space \( V/W \) by \( K(p(x)+W):= L(p(x))+W \). Find the characteristic polynomial \( f(t) \) of \( K \). $BR \( f(t) = \) \{ $ans->ans_rule(15) \} diff --git a/OpenProblemLibrary/NAU/setLinearAlgebra/charpolyQuotientHard.pg b/OpenProblemLibrary/NAU/setLinearAlgebra/charpolyQuotientHard.pg index 9601dfa45e..b00fd7c8f2 100644 --- a/OpenProblemLibrary/NAU/setLinearAlgebra/charpolyQuotientHard.pg +++ b/OpenProblemLibrary/NAU/setLinearAlgebra/charpolyQuotientHard.pg @@ -17,11 +17,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); $showPartialCorrectAnswers = 1; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Matrix'); @@ -30,7 +30,7 @@ $P=Matrix([[random(-1,1,1),random(-2,2,1),random(-2,2,1),random(-1,1,1)], [random(-2,2,1),random(-2,2,1),random(-2,2,1),random(-2,2,1)], [random(-1,1,1),random(-2,2,1),random(-1,1,1),random(-2,2,1)], [random(-2,2,1),random(-2,2,1),random(-2,2,1),random(-2,2,1)] -]); +]); redo if (abs($P->det) != 1); redo if ($P == Matrix([[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]])); } @@ -60,7 +60,7 @@ $ans=Formula("($a-t)($d-t)-$b*$c")->reduce; Context()->texStrings; BEGIN_TEXT Consider the multiplication operator \( L_A:\mathbb{R}^4\to\mathbb{R}^4 \) where \[ A=$A. \] -Let \( W \) be the subspace of \( V=\mathbb{R}^4 \) generated by \( $LBRACE $b1,$b2 \} \). +Let \( W \) be the subspace of \( V=\mathbb{R}^4 \) generated by \( $LBRACE $b1,$b2 \} \). It is easy to see that \( W \) is invariant under \( L_A \). Define the linear operator \( K \) on the quotient space \( V/W \) by \( K(u+W):= L_A(u)+W \). Find the characteristic polynomial \( f(t) \) of \( K \). diff --git a/OpenProblemLibrary/NAU/setLinearAlgebra/chocolate.pg b/OpenProblemLibrary/NAU/setLinearAlgebra/chocolate.pg index e0e15b9d1a..fde86dc356 100644 --- a/OpenProblemLibrary/NAU/setLinearAlgebra/chocolate.pg +++ b/OpenProblemLibrary/NAU/setLinearAlgebra/chocolate.pg @@ -15,7 +15,7 @@ loadMacros( "PGstandard.pl", "PGgraphmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -30,7 +30,7 @@ foreach my $i (0..3) { # $gr[$i]->lb( new Label(0.2,4.7,"$i",'black','center','middle')); $gr[$i]->new_color("lightblue", 214,230,244); # RGB $gr[$i]->new_color("darkblue", 100,100,255); - $gr[$i]->new_color("lightgreen",156,215,151); + $gr[$i]->new_color("lightgreen",156,215,151); $gr[$i]->new_color("darkgreen", 0, 86, 34); $gr[$i]->new_color("lightred", 245,234,229); # light red-purple $gr[$i]->new_color("darkred", 159, 64, 16); # red-brown @@ -41,7 +41,7 @@ foreach my $i (0..3) { # $gr[3]->lb( new Label(0.2,4.7,"$i",'black','center','middle')); $gr[3]->new_color("lightblue", 214,230,244); # RGB $gr[3]->new_color("darkblue", 100,100,255); - $gr[3]->new_color("lightgreen",156,215,151); + $gr[3]->new_color("lightgreen",156,215,151); $gr[3]->new_color("darkgreen", 0, 86, 34); $gr[3]->new_color("lightred", 245,234,229); # light red-purple $gr[3]->new_color("darkred", 159, 64, 16); # red-brown @@ -49,115 +49,115 @@ foreach my $i (0..3) { $gr[0]->moveTo(1,1); -$gr[0]->lineTo(2,1,"darkgreen",2); -$gr[0]->lineTo(2,2,"darkgreen",2); -$gr[0]->lineTo(1,2,"darkgreen",2); -$gr[0]->lineTo(1,1,"darkgreen",2); +$gr[0]->lineTo(2,1,"darkgreen",2); +$gr[0]->lineTo(2,2,"darkgreen",2); +$gr[0]->lineTo(1,2,"darkgreen",2); +$gr[0]->lineTo(1,1,"darkgreen",2); $gr[0]->fillRegion([1.5,1.5,"lightgreen"]); $x=0; $y=1.5; $gr[0]->moveTo($x+1,$y+1); -$gr[0]->lineTo($x+2,$y+1,"darkgreen",2); -$gr[0]->lineTo($x+2,$y+2,"darkgreen",2); -$gr[0]->lineTo($x+1,$y+2,"darkgreen",2); -$gr[0]->lineTo($x+1,$y+1,"darkgreen",2); +$gr[0]->lineTo($x+2,$y+1,"darkgreen",2); +$gr[0]->lineTo($x+2,$y+2,"darkgreen",2); +$gr[0]->lineTo($x+1,$y+2,"darkgreen",2); +$gr[0]->lineTo($x+1,$y+1,"darkgreen",2); $gr[0]->fillRegion([$x+1.5,$y+1.5,"lightgreen"]); $x=1.5; $y=0; $gr[0]->moveTo($x+1,$y+1); -$gr[0]->lineTo($x+2,$y+1,"darkblue",2); -$gr[0]->lineTo($x+1.5,$y+2,"darkblue",2); -$gr[0]->lineTo($x+1,$y+1,"darkblue",2); +$gr[0]->lineTo($x+2,$y+1,"darkblue",2); +$gr[0]->lineTo($x+1.5,$y+2,"darkblue",2); +$gr[0]->lineTo($x+1,$y+1,"darkblue",2); $gr[0]->fillRegion([$x+1.5,$y+1.5,"lightblue"]); $x=1.5; $y=1.5; $gr[0]->moveTo($x+1,$y+1); -$gr[0]->lineTo($x+2,$y+1,"darkred",2); -$gr[0]->lineTo($x+1.8,$y+1.5,"darkred",2); -$gr[0]->lineTo($x+2,$y+2,"darkred",2); -$gr[0]->lineTo($x+1,$y+2,"darkred",2); -$gr[0]->lineTo($x+1.2,$y+1.5,"darkred",2); -$gr[0]->lineTo($x+1,$y+1,"darkred",2); +$gr[0]->lineTo($x+2,$y+1,"darkred",2); +$gr[0]->lineTo($x+1.8,$y+1.5,"darkred",2); +$gr[0]->lineTo($x+2,$y+2,"darkred",2); +$gr[0]->lineTo($x+1,$y+2,"darkred",2); +$gr[0]->lineTo($x+1.2,$y+1.5,"darkred",2); +$gr[0]->lineTo($x+1,$y+1,"darkred",2); $gr[0]->fillRegion([$x+1.5,$y+1.5,"lightred"]); ########################################################## $gr[1]->moveTo(1,1); -$gr[1]->lineTo(2,1,"darkgreen",2); -$gr[1]->lineTo(2,2,"darkgreen",2); -$gr[1]->lineTo(1,2,"darkgreen",2); -$gr[1]->lineTo(1,1,"darkgreen",2); +$gr[1]->lineTo(2,1,"darkgreen",2); +$gr[1]->lineTo(2,2,"darkgreen",2); +$gr[1]->lineTo(1,2,"darkgreen",2); +$gr[1]->lineTo(1,1,"darkgreen",2); $gr[1]->fillRegion([1.5,1.5,"lightgreen"]); $x=0; $y=1.5; $gr[1]->moveTo($x+1,$y+1); -$gr[1]->lineTo($x+2,$y+1,"darkblue",2); -$gr[1]->lineTo($x+1.5,$y+2,"darkblue",2); -$gr[1]->lineTo($x+1,$y+1,"darkblue",2); +$gr[1]->lineTo($x+2,$y+1,"darkblue",2); +$gr[1]->lineTo($x+1.5,$y+2,"darkblue",2); +$gr[1]->lineTo($x+1,$y+1,"darkblue",2); $gr[1]->fillRegion([$x+1.5,$y+1.5,"lightblue"]); $x=1.5; $y=0; $gr[1]->moveTo($x+1,$y+1); -$gr[1]->lineTo($x+2,$y+1,"darkred",2); -$gr[1]->lineTo($x+1.8,$y+1.5,"darkred",2); -$gr[1]->lineTo($x+2,$y+2,"darkred",2); -$gr[1]->lineTo($x+1,$y+2,"darkred",2); -$gr[1]->lineTo($x+1.2,$y+1.5,"darkred",2); -$gr[1]->lineTo($x+1,$y+1,"darkred",2); +$gr[1]->lineTo($x+2,$y+1,"darkred",2); +$gr[1]->lineTo($x+1.8,$y+1.5,"darkred",2); +$gr[1]->lineTo($x+2,$y+2,"darkred",2); +$gr[1]->lineTo($x+1,$y+2,"darkred",2); +$gr[1]->lineTo($x+1.2,$y+1.5,"darkred",2); +$gr[1]->lineTo($x+1,$y+1,"darkred",2); $gr[1]->fillRegion([$x+1.5,$y+1.5,"lightred"]); $x=1.5; $y=1.5; $gr[1]->moveTo($x+1,$y+1); -$gr[1]->lineTo($x+2,$y+1,"darkred",2); -$gr[1]->lineTo($x+1.8,$y+1.5,"darkred",2); -$gr[1]->lineTo($x+2,$y+2,"darkred",2); -$gr[1]->lineTo($x+1,$y+2,"darkred",2); -$gr[1]->lineTo($x+1.2,$y+1.5,"darkred",2); -$gr[1]->lineTo($x+1,$y+1,"darkred",2); +$gr[1]->lineTo($x+2,$y+1,"darkred",2); +$gr[1]->lineTo($x+1.8,$y+1.5,"darkred",2); +$gr[1]->lineTo($x+2,$y+2,"darkred",2); +$gr[1]->lineTo($x+1,$y+2,"darkred",2); +$gr[1]->lineTo($x+1.2,$y+1.5,"darkred",2); +$gr[1]->lineTo($x+1,$y+1,"darkred",2); $gr[1]->fillRegion([$x+1.5,$y+1.5,"lightred"]); ########################################################## $gr[2]->moveTo(1,1); -$gr[2]->lineTo(2,1,"darkgreen",2); -$gr[2]->lineTo(2,2,"darkgreen",2); -$gr[2]->lineTo(1,2,"darkgreen",2); -$gr[2]->lineTo(1,1,"darkgreen",2); +$gr[2]->lineTo(2,1,"darkgreen",2); +$gr[2]->lineTo(2,2,"darkgreen",2); +$gr[2]->lineTo(1,2,"darkgreen",2); +$gr[2]->lineTo(1,1,"darkgreen",2); $gr[2]->fillRegion([1.5,1.5,"lightgreen"]); $x=0; $y=1.5; $gr[2]->moveTo($x+1,$y+1); -$gr[2]->lineTo($x+2,$y+1,"darkblue",2); -$gr[2]->lineTo($x+1.5,$y+2,"darkblue",2); -$gr[2]->lineTo($x+1,$y+1,"darkblue",2); +$gr[2]->lineTo($x+2,$y+1,"darkblue",2); +$gr[2]->lineTo($x+1.5,$y+2,"darkblue",2); +$gr[2]->lineTo($x+1,$y+1,"darkblue",2); $gr[2]->fillRegion([$x+1.5,$y+1.5,"lightblue"]); $x=1.5; $y=0; $gr[2]->moveTo($x+1,$y+1); -$gr[2]->lineTo($x+2,$y+1,"darkblue",2); -$gr[2]->lineTo($x+1.5,$y+2,"darkblue",2); -$gr[2]->lineTo($x+1,$y+1,"darkblue",2); +$gr[2]->lineTo($x+2,$y+1,"darkblue",2); +$gr[2]->lineTo($x+1.5,$y+2,"darkblue",2); +$gr[2]->lineTo($x+1,$y+1,"darkblue",2); $gr[2]->fillRegion([$x+1.5,$y+1.5,"lightblue"]); $x=1.5; $y=1.5; $gr[2]->moveTo($x+1,$y+1); -$gr[2]->lineTo($x+2,$y+1,"darkgreen",2); -$gr[2]->lineTo($x+2,$y+2,"darkgreen",2); -$gr[2]->lineTo($x+1,$y+2,"darkgreen",2); -$gr[2]->lineTo($x+1,$y+1,"darkgreen",2); +$gr[2]->lineTo($x+2,$y+1,"darkgreen",2); +$gr[2]->lineTo($x+2,$y+2,"darkgreen",2); +$gr[2]->lineTo($x+1,$y+2,"darkgreen",2); +$gr[2]->lineTo($x+1,$y+1,"darkgreen",2); $gr[2]->fillRegion([$x+1.5,$y+1.5,"lightgreen"]); ########################################################## @@ -165,61 +165,61 @@ $gr[2]->fillRegion([$x+1.5,$y+1.5,"lightgreen"]); $x=0; $y=0; $gr[3]->moveTo($x+1,$y+1); -$gr[3]->lineTo($x+2,$y+1,"darkred",2); -$gr[3]->lineTo($x+1.8,$y+1.5,"darkred",2); -$gr[3]->lineTo($x+2,$y+2,"darkred",2); -$gr[3]->lineTo($x+1,$y+2,"darkred",2); -$gr[3]->lineTo($x+1.2,$y+1.5,"darkred",2); -$gr[3]->lineTo($x+1,$y+1,"darkred",2); +$gr[3]->lineTo($x+2,$y+1,"darkred",2); +$gr[3]->lineTo($x+1.8,$y+1.5,"darkred",2); +$gr[3]->lineTo($x+2,$y+2,"darkred",2); +$gr[3]->lineTo($x+1,$y+2,"darkred",2); +$gr[3]->lineTo($x+1.2,$y+1.5,"darkred",2); +$gr[3]->lineTo($x+1,$y+1,"darkred",2); $gr[3]->fillRegion([$x+1.5,$y+1.5,"lightred"]); $x=0; $y=1.5; $gr[3]->moveTo($x+1,$y+1); -$gr[3]->lineTo($x+2,$y+1,"darkgreen",2); -$gr[3]->lineTo($x+2,$y+2,"darkgreen",2); -$gr[3]->lineTo($x+1,$y+2,"darkgreen",2); -$gr[3]->lineTo($x+1,$y+1,"darkgreen",2); +$gr[3]->lineTo($x+2,$y+1,"darkgreen",2); +$gr[3]->lineTo($x+2,$y+2,"darkgreen",2); +$gr[3]->lineTo($x+1,$y+2,"darkgreen",2); +$gr[3]->lineTo($x+1,$y+1,"darkgreen",2); $gr[3]->fillRegion([$x+1.5,$y+1.5,"lightgreen"]); $x=1.5; $y=0; $gr[3]->moveTo($x+1,$y+1); -$gr[3]->lineTo($x+2,$y+1,"darkblue",2); -$gr[3]->lineTo($x+1.5,$y+2,"darkblue",2); -$gr[3]->lineTo($x+1,$y+1,"darkblue",2); +$gr[3]->lineTo($x+2,$y+1,"darkblue",2); +$gr[3]->lineTo($x+1.5,$y+2,"darkblue",2); +$gr[3]->lineTo($x+1,$y+1,"darkblue",2); $gr[3]->fillRegion([$x+1.5,$y+1.5,"lightblue"]); $x=1.5; $y=1.5; $gr[3]->moveTo($x+1,$y+1); -$gr[3]->lineTo($x+2,$y+1,"darkred",2); -$gr[3]->lineTo($x+1.8,$y+1.5,"darkred",2); -$gr[3]->lineTo($x+2,$y+2,"darkred",2); -$gr[3]->lineTo($x+1,$y+2,"darkred",2); -$gr[3]->lineTo($x+1.2,$y+1.5,"darkred",2); -$gr[3]->lineTo($x+1,$y+1,"darkred",2); +$gr[3]->lineTo($x+2,$y+1,"darkred",2); +$gr[3]->lineTo($x+1.8,$y+1.5,"darkred",2); +$gr[3]->lineTo($x+2,$y+2,"darkred",2); +$gr[3]->lineTo($x+1,$y+2,"darkred",2); +$gr[3]->lineTo($x+1.2,$y+1.5,"darkred",2); +$gr[3]->lineTo($x+1,$y+1,"darkred",2); $gr[3]->fillRegion([$x+1.5,$y+1.5,"lightred"]); $x=3; $y=0; $gr[3]->moveTo($x+1,$y+1); -$gr[3]->lineTo($x+2,$y+1,"darkred",2); -$gr[3]->lineTo($x+1.8,$y+1.5,"darkred",2); -$gr[3]->lineTo($x+2,$y+2,"darkred",2); -$gr[3]->lineTo($x+1,$y+2,"darkred",2); -$gr[3]->lineTo($x+1.2,$y+1.5,"darkred",2); -$gr[3]->lineTo($x+1,$y+1,"darkred",2); +$gr[3]->lineTo($x+2,$y+1,"darkred",2); +$gr[3]->lineTo($x+1.8,$y+1.5,"darkred",2); +$gr[3]->lineTo($x+2,$y+2,"darkred",2); +$gr[3]->lineTo($x+1,$y+2,"darkred",2); +$gr[3]->lineTo($x+1.2,$y+1.5,"darkred",2); +$gr[3]->lineTo($x+1,$y+1,"darkred",2); $gr[3]->fillRegion([$x+1.5,$y+1.5,"lightred"]); $x=3; $y=1.5; $gr[3]->moveTo($x+1,$y+1); -$gr[3]->lineTo($x+2,$y+1,"darkgreen",2); -$gr[3]->lineTo($x+2,$y+2,"darkgreen",2); -$gr[3]->lineTo($x+1,$y+2,"darkgreen",2); -$gr[3]->lineTo($x+1,$y+1,"darkgreen",2); +$gr[3]->lineTo($x+2,$y+1,"darkgreen",2); +$gr[3]->lineTo($x+2,$y+2,"darkgreen",2); +$gr[3]->lineTo($x+1,$y+2,"darkgreen",2); +$gr[3]->lineTo($x+1,$y+1,"darkgreen",2); $gr[3]->fillRegion([$x+1.5,$y+1.5,"lightgreen"]); @@ -236,7 +236,7 @@ $ans = Formula("2*$sq + $tr + 3*$hg"); # $ans = Compute("2*$sq + $tr + 3*$hg"); BEGIN_TEXT -Charlie is selling three different types of chocolate boxes: +Charlie is selling three different types of chocolate boxes: $PAR \{ image( insertGraph($gr[0]), height=>100, width=>100, tex_size=>300 ) \} Price: $$p1 diff --git a/OpenProblemLibrary/NAU/setLinearAlgebra/coordinatesHalfMagix.pg b/OpenProblemLibrary/NAU/setLinearAlgebra/coordinatesHalfMagix.pg index 2459a8e1ea..1500f1266c 100644 --- a/OpenProblemLibrary/NAU/setLinearAlgebra/coordinatesHalfMagix.pg +++ b/OpenProblemLibrary/NAU/setLinearAlgebra/coordinatesHalfMagix.pg @@ -18,13 +18,13 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "MatrixReduce.pl", "rank.pl", "PGcourse.pl" ); $showPartialCorrectAnswers = 1; -TEXT(beginproblem()); +TEXT(beginproblem()); Context("Fraction"); Context() -> parens -> set ("[" => {formMatrix => 1}); @@ -39,12 +39,12 @@ $MB = Matrix([[$a],[$b]]); sub magic { my ($m) = @_; -my $s1=$m->element(1,1)+$m->element(1,2); -my $s2=$m->element(2,1)+$m->element(2,2); +my $s1=$m->element(1,1)+$m->element(1,2); +my $s2=$m->element(2,1)+$m->element(2,2); return 0 if ($s2 != $s1); -my $s4=$m->element(1,1)+$m->element(2,1); +my $s4=$m->element(1,1)+$m->element(2,1); return 0 if ($s4 != $s1); -my $s5=$m->element(1,2)+$m->element(2,2); +my $s5=$m->element(1,2)+$m->element(2,2); return 0 if ($s5 != $s1); return 1; } @@ -56,18 +56,18 @@ checker => sub { my ( $correct, $student, $self ) = @_; my @s = @{$student}; my @c = @{$correct}; -my $s0 = Matrix($s[0]); +my $s0 = Matrix($s[0]); my $s1 = Matrix($s[1]); my $coo = Matrix($s[2]); if (! magic($s0)) { $self->setMessage(1,"Not half-magic."); return 0 ; -} +} if (! magic($s1)) { $self->setMessage(2,"Not half-magic."); return 0 ; -} +} if (rank(Matrix( [$s0->element(1,1),$s0->element(1,2), $s0->element(2,1),$s0->element(2,2)], @@ -90,21 +90,21 @@ return 1; Context()->texStrings; BEGIN_TEXT -A square matrix \( A \) is called $BITALIC half-magic $EITALIC -if the sum of the numbers in each row and column is the same. -The common sum in each row and column is denoted by \( s(A) \) +A square matrix \( A \) is called $BITALIC half-magic $EITALIC +if the sum of the numbers in each row and column is the same. +The common sum in each row and column is denoted by \( s(A) \) and is called the $BITALIC magic sum $EITALIC of the matrix \(A\). -Let \( V \) be the vector space of \( 2\times 2\) half-magic squares. +Let \( V \) be the vector space of \( 2\times 2\) half-magic squares. -$BR +$BR -(a) Find an ordered basis \( B \) for \( V \). +(a) Find an ordered basis \( B \) for \( V \). $BR \( B = ( \) \{ $multians->ans_array(3) \}, -\{ $multians->ans_array(3) \} +\{ $multians->ans_array(3) \} \( ) \). $BR diff --git a/OpenProblemLibrary/NAU/setLinearAlgebra/detDiagNotdiag.pg b/OpenProblemLibrary/NAU/setLinearAlgebra/detDiagNotdiag.pg index f792da0952..3931d51178 100644 --- a/OpenProblemLibrary/NAU/setLinearAlgebra/detDiagNotdiag.pg +++ b/OpenProblemLibrary/NAU/setLinearAlgebra/detDiagNotdiag.pg @@ -18,12 +18,12 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGchoicemacros.pl", "PGcourse.pl" ); $showPartialCorrectAnswers = 1; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Numeric'); @@ -36,8 +36,8 @@ $ans = Formula("($a+($n-1)*$b)($a-$b)^($n-1)"); Context()->texStrings; BEGIN_TEXT Find the determinant of the matrix -\[ A=\left [ \matrix { -$a & $b & & \cdots & $b \\ +\[ A=\left [ \matrix { +$a & $b & & \cdots & $b \\ $b & $a & $b & \cdots & $b \\ & & \ddots & & \\ $b & \cdots & $b & $a & $b \\ diff --git a/OpenProblemLibrary/NAU/setLinearAlgebra/detElementary.pg b/OpenProblemLibrary/NAU/setLinearAlgebra/detElementary.pg index 0087ebaa10..8d2df76df8 100644 --- a/OpenProblemLibrary/NAU/setLinearAlgebra/detElementary.pg +++ b/OpenProblemLibrary/NAU/setLinearAlgebra/detElementary.pg @@ -18,12 +18,12 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGchoicemacros.pl", "PGcourse.pl" ); $showPartialCorrectAnswers = 1; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Matrix'); diff --git a/OpenProblemLibrary/NAU/setLinearAlgebra/diag2x2.pg b/OpenProblemLibrary/NAU/setLinearAlgebra/diag2x2.pg index e1ab8a1fa5..d2a4c914a2 100644 --- a/OpenProblemLibrary/NAU/setLinearAlgebra/diag2x2.pg +++ b/OpenProblemLibrary/NAU/setLinearAlgebra/diag2x2.pg @@ -14,13 +14,13 @@ ##ENDDESCRIPTION -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -64,8 +64,8 @@ if ($sP->det == 0) { $sPI = $sP->inverse; $sD = Matrix($s[1]); -if ($sD->element(1,2)!=0 or - $sD->element(2,1)!=0 +if ($sD->element(1,2)!=0 or + $sD->element(2,1)!=0 ) { $self->setMessage(2,"Not diagonal."); return 0; @@ -86,5 +86,5 @@ END_TEXT ANS($multians->cmp()); COMMENT('Eigenvalues are small integers, lambda1 != lambda2 '); -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/NAU/setLinearAlgebra/diag3x3.pg b/OpenProblemLibrary/NAU/setLinearAlgebra/diag3x3.pg index 7f3648bcaa..24a5c31f7c 100644 --- a/OpenProblemLibrary/NAU/setLinearAlgebra/diag3x3.pg +++ b/OpenProblemLibrary/NAU/setLinearAlgebra/diag3x3.pg @@ -15,13 +15,13 @@ ##ENDDESCRIPTION -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -73,8 +73,8 @@ if ($sP->det == 0) { $sPI = $sP->inverse; $sD = Matrix($s[1]); -if ($sD->element(1,2)!=0 or - $sD->element(1,3)!=0 or +if ($sD->element(1,2)!=0 or + $sD->element(1,3)!=0 or $sD->element(2,1)!=0 or $sD->element(2,3)!=0 or $sD->element(3,1)!=0 or @@ -100,5 +100,5 @@ END_TEXT ANS($multians->cmp()); COMMENT('Eigenvalues are small integers, lambda1 != lambda2 = lambda3 '); -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/NAU/setLinearAlgebra/diag3x3ortho.pg b/OpenProblemLibrary/NAU/setLinearAlgebra/diag3x3ortho.pg index 91dd40c06e..4569641ecb 100644 --- a/OpenProblemLibrary/NAU/setLinearAlgebra/diag3x3ortho.pg +++ b/OpenProblemLibrary/NAU/setLinearAlgebra/diag3x3ortho.pg @@ -10,13 +10,13 @@ ##ENDDESCRIPTION -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "MatrixReduce.pl", "PGchoicemacros.pl", "PGcourse.pl" @@ -63,8 +63,8 @@ if ($sP*$sPT != $I) { } $sD = Matrix($s[1]); -if ($sD->element(1,2)!=0 or - $sD->element(1,3)!=0 or +if ($sD->element(1,2)!=0 or + $sD->element(1,3)!=0 or $sD->element(2,1)!=0 or $sD->element(2,3)!=0 or $sD->element(3,1)!=0 or @@ -88,5 +88,5 @@ END_TEXT ANS($multians->cmp()); COMMENT('Eigenvalues are small integers, lambda1 != lambda2 = lambda3 '); -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/NAU/setLinearAlgebra/expandBasis.pg b/OpenProblemLibrary/NAU/setLinearAlgebra/expandBasis.pg index 05717c9fc4..d272a1c910 100644 --- a/OpenProblemLibrary/NAU/setLinearAlgebra/expandBasis.pg +++ b/OpenProblemLibrary/NAU/setLinearAlgebra/expandBasis.pg @@ -12,13 +12,13 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "MatrixReduce.pl", "rank.pl", "PGcourse.pl" ); $showPartialCorrectAnswers = 1; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Fraction'); Context() -> parens -> set ("[" => {formMatrix => 1}); @@ -41,11 +41,11 @@ redo if (rank(Matrix([Vector($a1),Vector($a2),Vector($a3)])) != 3); sub mycheck { my ($correct, $student, $ansHash) = @_; - if ( rank(Matrix([Vector($Bas->column(1)),Vector($Bas->column(2)),Vector($student)])) != 3 ) { - return 0; - } - if (rank(Matrix([Vector($a1),Vector($a2),Vector($a3),Vector($student)])) != 3) { - return 0; + if ( rank(Matrix([Vector($Bas->column(1)),Vector($Bas->column(2)),Vector($student)])) != 3 ) { + return 0; + } + if (rank(Matrix([Vector($a1),Vector($a2),Vector($a3),Vector($student)])) != 3) { + return 0; } return 1; } diff --git a/OpenProblemLibrary/NAU/setLinearAlgebra/factor.pg b/OpenProblemLibrary/NAU/setLinearAlgebra/factor.pg index ebeb90423a..6b088730a2 100644 --- a/OpenProblemLibrary/NAU/setLinearAlgebra/factor.pg +++ b/OpenProblemLibrary/NAU/setLinearAlgebra/factor.pg @@ -19,11 +19,11 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); $showPartialCorrectAnswers = 0; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Matrix'); @@ -43,9 +43,9 @@ checker => sub { my ( $correct, $student, $self ) = @_; my @s = @{$student}; my @c = @{$correct}; -$s0 = Matrix($s[0]); +$s0 = Matrix($s[0]); $s1 = Matrix($s[1]); -return 0 if ($s0 == $I); +return 0 if ($s0 == $I); return 0 if ($s1 == $I); return ($s0 * $s1) == $X; } diff --git a/OpenProblemLibrary/NAU/setLinearAlgebra/factorElementary.pg b/OpenProblemLibrary/NAU/setLinearAlgebra/factorElementary.pg index 42ce19a870..1e74b17799 100644 --- a/OpenProblemLibrary/NAU/setLinearAlgebra/factorElementary.pg +++ b/OpenProblemLibrary/NAU/setLinearAlgebra/factorElementary.pg @@ -18,11 +18,11 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); $showPartialCorrectAnswers = 0; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Matrix'); @@ -65,21 +65,21 @@ checker => sub { my ( $correct, $student, $self ) = @_; my @s = @{$student}; my @c = @{$correct}; -$s0 = Matrix($s[0]); +$s0 = Matrix($s[0]); $s1 = Matrix($s[1]); $s2 = Matrix($s[2]); if (! elementary $s0) { $self->setMessage(1,"Not elementary."); - return 0; -} + return 0; +} if (! elementary $s1) { $self->setMessage(2,"Not elementary."); - return 0; -} + return 0; +} if (! elementary $s2) { $self->setMessage(3,"Not elementary."); - return 0; -} + return 0; +} return ($s0 * $s1 * $s2) == $X; } ); diff --git a/OpenProblemLibrary/NAU/setLinearAlgebra/geomMultiplicity.pg b/OpenProblemLibrary/NAU/setLinearAlgebra/geomMultiplicity.pg index b34631ee55..6fd388deff 100644 --- a/OpenProblemLibrary/NAU/setLinearAlgebra/geomMultiplicity.pg +++ b/OpenProblemLibrary/NAU/setLinearAlgebra/geomMultiplicity.pg @@ -17,12 +17,12 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGchoicemacros.pl", "PGcourse.pl" ); $showPartialCorrectAnswers = 1; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Matrix'); @@ -39,11 +39,11 @@ $A=Matrix(Matrix([[$a,1,0,0,0],[0,$a,0,0,0],[0,0,$a,0,0],[0,0,0,$b,0],[0,0,0,0,$ Context()->texStrings; BEGIN_TEXT Let \(A=$A \). -$BR +$BR Find the geometric multiplicity \( d_{$a} \) of the eigenspace \(E_{$a} \) of \( A \). $BR \( d_{$a} = \) \{ $ans1->ans_rule(15) \} -$BR +$BR Find the geometric multiplicity \( d_{$b} \) of the eigenspace \(E_{$b} \) of \( A \). $BR \( d_{$b} = \) \{ $ans2->ans_rule(15) \} diff --git a/OpenProblemLibrary/NAU/setLinearAlgebra/invariantComplex.pg b/OpenProblemLibrary/NAU/setLinearAlgebra/invariantComplex.pg index f959ae216e..8cd3a27db7 100644 --- a/OpenProblemLibrary/NAU/setLinearAlgebra/invariantComplex.pg +++ b/OpenProblemLibrary/NAU/setLinearAlgebra/invariantComplex.pg @@ -17,14 +17,14 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGchoicemacros.pl", "MatrixReduce.pl", "rank.pl", "PGcourse.pl" ); $showPartialCorrectAnswers = 1; -TEXT(beginproblem()); +TEXT(beginproblem()); Context("Complex-Matrix"); # Context()-> parens -> set ("[" => {formMatrix => 1}); @@ -33,7 +33,7 @@ Context("Complex-Matrix"); { $P=Matrix([[random(-1,1,1),random(-2,2,1)], [random(-2,2,1),random(-2,2,1)] -]); +]); redo if (abs($P->det) != 1); redo if ($P == Matrix([[1,0],[0,1]])); } @@ -73,9 +73,9 @@ sub mycheck { Context()->texStrings; BEGIN_TEXT Consider the multiplication operator \( L_A:\mathbb{C}^2\to\mathbb{C}^2 \) where \[ A=$A. \] -Find a basis \( B \) for a one dimensional \( L_A \)-invariant subspace. +Find a basis \( B \) for a one dimensional \( L_A \)-invariant subspace. $BR -\( B = $LBRACE \) \{ $ans->ans_array(5) \} \( \} \) +\( B = $LBRACE \) \{ $ans->ans_array(5) \} \( \} \) END_TEXT diff --git a/OpenProblemLibrary/NAU/setLinearAlgebra/invariantSmallest.pg b/OpenProblemLibrary/NAU/setLinearAlgebra/invariantSmallest.pg index 0dddd4fb72..ebed662817 100644 --- a/OpenProblemLibrary/NAU/setLinearAlgebra/invariantSmallest.pg +++ b/OpenProblemLibrary/NAU/setLinearAlgebra/invariantSmallest.pg @@ -17,14 +17,14 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGchoicemacros.pl", "MatrixReduce.pl", "rank.pl", "PGcourse.pl" ); $showPartialCorrectAnswers = 1; -TEXT(beginproblem()); +TEXT(beginproblem()); Context("Fraction"); Context()-> parens -> set ("[" => {formMatrix => 1}); @@ -35,7 +35,7 @@ $P=Matrix([[random(-1,1,1),random(-2,2,1),random(-2,2,1),random(-1,1,1)], [random(-2,2,1),random(-2,2,1),random(-2,2,1),random(-2,2,1)], [random(-1,1,1),random(-2,2,1),random(-1,1,1),random(-2,2,1)], [random(-2,2,1),random(-2,2,1),random(-2,2,1),random(-2,2,1)] -]); +]); redo if (abs($P->det) != 1); redo if ($P == Matrix([[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]])); } @@ -75,9 +75,9 @@ sub mycheck { Context()->texStrings; BEGIN_TEXT Consider the multiplication operator \( L_A:\mathbb{R}^4\to\mathbb{R}^4 \) where \[ A=$A. \] -Find a matrix \( B \) whose row space is smallest \( L_A \)-invariant subspace that contains the vector \( $b1 \). +Find a matrix \( B \) whose row space is smallest \( L_A \)-invariant subspace that contains the vector \( $b1 \). $BR -\( B = \) \{ $answer->ans_array(5) \} +\( B = \) \{ $answer->ans_array(5) \} END_TEXT diff --git a/OpenProblemLibrary/NAU/setLinearAlgebra/minpoly.pg b/OpenProblemLibrary/NAU/setLinearAlgebra/minpoly.pg index 3c3d8b1d40..688a0d8235 100644 --- a/OpenProblemLibrary/NAU/setLinearAlgebra/minpoly.pg +++ b/OpenProblemLibrary/NAU/setLinearAlgebra/minpoly.pg @@ -17,12 +17,12 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGchoicemacros.pl", "PGcourse.pl" ); $showPartialCorrectAnswers = 1; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Matrix'); @@ -31,7 +31,7 @@ $P=Matrix([[random(-1,1,1),random(-2,2,1),random(-2,2,1),random(-1,1,1)], [random(-2,2,1),random(-2,2,1),random(-2,2,1),random(-2,2,1)], [random(-1,1,1),random(-2,2,1),random(-1,1,1),random(-2,2,1)], [random(-2,2,1),random(-2,2,1),random(-2,2,1),random(-2,2,1)] -]); +]); redo if (abs($P->det) != 1); redo if ($P == Matrix([[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]])); } diff --git a/OpenProblemLibrary/NAU/setLinearAlgebra/minpoly2.pg b/OpenProblemLibrary/NAU/setLinearAlgebra/minpoly2.pg index 12869bc930..b69e0044de 100644 --- a/OpenProblemLibrary/NAU/setLinearAlgebra/minpoly2.pg +++ b/OpenProblemLibrary/NAU/setLinearAlgebra/minpoly2.pg @@ -17,12 +17,12 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGchoicemacros.pl", "PGcourse.pl" ); $showPartialCorrectAnswers = 1; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Numeric'); Context()->variables->are(t => ['Real']); @@ -38,7 +38,7 @@ $ans3=Formula("-$b+t"); Context()->texStrings; BEGIN_TEXT -Let \(V={\mathbb P}_3[x]\) be the vector space of real polynomials in \(x\) with degree less than 3. +Let \(V={\mathbb P}_3[x]\) be the vector space of real polynomials in \(x\) with degree less than 3. Let \( L:V\to V \) be defined by \( L(p(x))=$a p''(x) + $b p(x) \). $BR a. Find the characteristic polynomial \( f(t) \) of \( L \). diff --git a/OpenProblemLibrary/NAU/setLinearAlgebra/minpolyFromJ.pg b/OpenProblemLibrary/NAU/setLinearAlgebra/minpolyFromJ.pg index 6f503b9c82..08bf606d6b 100644 --- a/OpenProblemLibrary/NAU/setLinearAlgebra/minpolyFromJ.pg +++ b/OpenProblemLibrary/NAU/setLinearAlgebra/minpolyFromJ.pg @@ -17,12 +17,12 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGchoicemacros.pl", "PGcourse.pl" ); $showPartialCorrectAnswers = 1; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Matrix'); diff --git a/OpenProblemLibrary/NAU/setLinearAlgebra/minpolyRel.pg b/OpenProblemLibrary/NAU/setLinearAlgebra/minpolyRel.pg index 3188e63c91..b3deaba572 100644 --- a/OpenProblemLibrary/NAU/setLinearAlgebra/minpolyRel.pg +++ b/OpenProblemLibrary/NAU/setLinearAlgebra/minpolyRel.pg @@ -17,13 +17,13 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGchoicemacros.pl", "contextPolynomialFactors.pl", "PGcourse.pl" ); $showPartialCorrectAnswers = 1; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Matrix'); @@ -32,7 +32,7 @@ $P=Matrix([[random(-1,1,1),random(-2,2,1),random(-2,2,1),random(-1,1,1)], [random(-2,2,1),random(-2,2,1),random(-2,2,1),random(-2,2,1)], [random(-1,1,1),random(-2,2,1),random(-1,1,1),random(-2,2,1)], [random(-2,2,1),random(-2,2,1),random(-2,2,1),random(-2,2,1)] -]); +]); redo if (abs($P->det) != 1); redo if ($P == Matrix([[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]])); } @@ -60,7 +60,7 @@ $ans2=Formula("$l-t"); Context()->texStrings; BEGIN_TEXT Consider the multiplication operator \( L_A:\mathbb{R}^4\to\mathbb{R}^4 \) where \[ A=$A. \] -Let \( W \) be the invariant subspace generated by \( L_A \) and the vector \( $x \). +Let \( W \) be the invariant subspace generated by \( L_A \) and the vector \( $x \). $BR a. Find the characteristic polynomial \( g(t) \) of the restriction \( L_A | W \). $BR diff --git a/OpenProblemLibrary/NAU/setLinearAlgebra/powers.pg b/OpenProblemLibrary/NAU/setLinearAlgebra/powers.pg index 363abae02f..5008eef159 100644 --- a/OpenProblemLibrary/NAU/setLinearAlgebra/powers.pg +++ b/OpenProblemLibrary/NAU/setLinearAlgebra/powers.pg @@ -17,14 +17,14 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGchoicemacros.pl", "MatrixReduce.pl", "rank.pl", "PGcourse.pl" ); $showPartialCorrectAnswers = 1; -TEXT(beginproblem()); +TEXT(beginproblem()); Context("Fraction"); Context() -> parens -> set ("[" => {formMatrix => 1}); @@ -91,7 +91,7 @@ $k=Formula("2"); Context()->texStrings; BEGIN_TEXT $BR -Consider the multiplication operator \( L_A:\mathbb{R}^4\to\mathbb{R}^4 \) defined by \( L_A(x)=Ax\), where \(A=$A\). +Consider the multiplication operator \( L_A:\mathbb{R}^4\to\mathbb{R}^4 \) defined by \( L_A(x)=Ax\), where \(A=$A\). $BR a. Find the smallest nonnegative \( k \) such that the ranks of \( L_A^k \) and \( L_A^{k+1} \) are the same. $BR @@ -133,9 +133,9 @@ ENDDOCUMENT(); $PAR --------------------------------- -A \( $A \) -B \( $B \) -P \( $P \) +A \( $A \) +B \( $B \) +P \( $P \) \( $b1 \) \( $b2 \) \( $b3 \) diff --git a/OpenProblemLibrary/NAU/setLinearAlgebra/recurrence.pg b/OpenProblemLibrary/NAU/setLinearAlgebra/recurrence.pg index 3641a745ec..042e230f8b 100644 --- a/OpenProblemLibrary/NAU/setLinearAlgebra/recurrence.pg +++ b/OpenProblemLibrary/NAU/setLinearAlgebra/recurrence.pg @@ -18,12 +18,12 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); $showPartialCorrectAnswers = 1; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Matrix'); Context()->variables->add(n=>"Real"); @@ -69,10 +69,10 @@ checker => sub { my ( $correct, $student, $self ) = @_; my @s = @{$student}; my @c = @{$correct}; -$sD = Matrix($s[0]); +$sD = Matrix($s[0]); $sP = Matrix($s[1]); -return 0 if ($sD != $sP->inverse*$mat*$sP); -return 0 if ($sD->element(1,2)!=0); +return 0 if ($sD != $sP->inverse*$mat*$sP); +return 0 if ($sD->element(1,2)!=0); return 0 if ($sD->element(2,1)!=0); return 1; } @@ -89,43 +89,43 @@ sub mycheck { Context()->texStrings; # $dt M= \( $mat \) P=\( $P \) D= \( $D \) Pinv=\( $Pinv \) PR=\( $PR \) BEGIN_TEXT -Consider the sequence defined recursively by \(a_1=$a1\), \(a_2=$a2\), \(a_{n+1}=$la a_{n-1}+$mu a_n\). +Consider the sequence defined recursively by \(a_1=$a1\), \(a_2=$a2\), \(a_{n+1}=$la a_{n-1}+$mu a_n\). We can use matrix diagonalization to find an explicit formula for \( a_n \). $BR a. Find a matrix that satisfies -\( -\left[ +\( +\left[ \begin{array}{c} a_n \\ -a_{n+1} -\end{array} -\right] = M -\left[ +a_{n+1} +\end{array} +\right] = M +\left[ \begin{array}{c} a_{n-1} \\ -a_n -\end{array} -\right] +a_n +\end{array} +\right] \) $BR \( M= \) \{ $mat->ans_array(5) \} $BR -b. Find the appropriate exponent \( k \) such that +b. Find the appropriate exponent \( k \) such that $BR -\( -\left[ +\( +\left[ \begin{array}{c} a_n \\ -a_{n+1} -\end{array} -\right] = M ^ { k } -\left[ +a_{n+1} +\end{array} +\right] = M ^ { k } +\left[ \begin{array}{c} a_1 \\ -a_2 -\end{array} -\right] +a_2 +\end{array} +\right] \) $BR \( k= \) \{ans_rule(5)\} @@ -134,7 +134,7 @@ $BR $BR c. Find a diagonal matrix \( D \) and an invertible matrix \( P \) such that \( M = P D P^{-1} \). $BR -\( D = \) \{ $multians2->ans_array(3) \}, +\( D = \) \{ $multians2->ans_array(3) \}, \( P = \) \{ $multians2->ans_array(3) \}, $BR diff --git a/OpenProblemLibrary/NAU/setLinearAlgebra/recurrence2.pg b/OpenProblemLibrary/NAU/setLinearAlgebra/recurrence2.pg index 00e48651f7..924b05ddba 100644 --- a/OpenProblemLibrary/NAU/setLinearAlgebra/recurrence2.pg +++ b/OpenProblemLibrary/NAU/setLinearAlgebra/recurrence2.pg @@ -18,12 +18,12 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); $showPartialCorrectAnswers = 1; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Matrix'); Context()->variables->add(n=>"Real"); @@ -78,10 +78,10 @@ checker => sub { my ( $correct, $student, $self ) = @_; my @s = @{$student}; my @c = @{$correct}; -$sD = Matrix($s[0]); +$sD = Matrix($s[0]); $sP = Matrix($s[1]); -return 0 if ($sD != $sP->inverse*$mat*$sP); -return 0 if ($sD->element(1,2)!=0); +return 0 if ($sD != $sP->inverse*$mat*$sP); +return 0 if ($sD->element(1,2)!=0); return 0 if ($sD->element(2,1)!=0); return 1; } @@ -98,43 +98,43 @@ sub mycheck { Context()->texStrings; # $dt M= \( $mat \) P=\( $P \) D= \( $D \) Pinv=\( $Pinv \) PR=\( $PR \) BEGIN_TEXT -Consider the sequence defined recursively by \(a_1=$a1\), \(a_2=$a2\), \(a_{n+1}=$la a_{n-1}+$mu a_n\). +Consider the sequence defined recursively by \(a_1=$a1\), \(a_2=$a2\), \(a_{n+1}=$la a_{n-1}+$mu a_n\). We can use matrix diagonalization to find an explicit formula for \( a_n \). $BR a. Find a matrix that satisfies -\( -\left[ +\( +\left[ \begin{array}{c} a_n \\ -a_{n+1} -\end{array} -\right] = M -\left[ +a_{n+1} +\end{array} +\right] = M +\left[ \begin{array}{c} a_{n-1} \\ -a_n -\end{array} -\right] +a_n +\end{array} +\right] \) $BR \( M= \) \{ $mat->ans_array(5) \} $BR -b. Find the appropriate exponent \( k \) such that +b. Find the appropriate exponent \( k \) such that $BR -\( -\left[ +\( +\left[ \begin{array}{c} a_n \\ -a_{n+1} -\end{array} -\right] = M ^ { k } -\left[ +a_{n+1} +\end{array} +\right] = M ^ { k } +\left[ \begin{array}{c} a_1 \\ -a_2 -\end{array} -\right] +a_2 +\end{array} +\right] \) $BR \( k= \) \{ans_rule(5)\} @@ -143,7 +143,7 @@ $BR $BR c. Find a diagonal matrix \( D \) and an invertible matrix \( P \) such that \( M = P D P^{-1} \). $BR -\( D = \) \{ $multians2->ans_array(3) \}, +\( D = \) \{ $multians2->ans_array(3) \}, \( P = \) \{ $multians2->ans_array(3) \}, $BR diff --git a/OpenProblemLibrary/NAU/setLinearAlgebra/reductionElementary.pg b/OpenProblemLibrary/NAU/setLinearAlgebra/reductionElementary.pg index 2446b393e9..843c3c032f 100644 --- a/OpenProblemLibrary/NAU/setLinearAlgebra/reductionElementary.pg +++ b/OpenProblemLibrary/NAU/setLinearAlgebra/reductionElementary.pg @@ -18,12 +18,12 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGchoicemacros.pl", "PGcourse.pl" ); $showPartialCorrectAnswers = 1; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Matrix'); @@ -63,10 +63,10 @@ $A4 = $I; Context()->texStrings; BEGIN_TEXT Consider the following Gauss-Jordan reduction: $BR -\[ \underbrace{$A}_A \to - \underbrace{$A1}_{E_1 A} \to - \underbrace{$A2}_{E_2E_1 A} \to - \underbrace{$A3}_{E_3E_2E_1 A} \to +\[ \underbrace{$A}_A \to + \underbrace{$A1}_{E_1 A} \to + \underbrace{$A2}_{E_2E_1 A} \to + \underbrace{$A3}_{E_3E_2E_1 A} \to \underbrace{$A4}_{E_4E_3E_2E_1 A}=I \] $BR diff --git a/OpenProblemLibrary/NAU/setLinearAlgebra/reflPlane.pg b/OpenProblemLibrary/NAU/setLinearAlgebra/reflPlane.pg index dd800f0212..807626ea5e 100644 --- a/OpenProblemLibrary/NAU/setLinearAlgebra/reflPlane.pg +++ b/OpenProblemLibrary/NAU/setLinearAlgebra/reflPlane.pg @@ -17,12 +17,12 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGchoicemacros.pl", "PGcourse.pl" ); $showPartialCorrectAnswers = 1; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Matrix'); @@ -56,7 +56,7 @@ $ans = Compute("1/$d*$anss"); Context()->texStrings; BEGIN_TEXT Let \( L:{\mathbb R}^3 \to {\mathbb R}^3\) be the reflection with respect to the plane -spanned by \( \lbrace $c1,$c2 \rbrace \). Find the matrix of \( L \). +spanned by \( \lbrace $c1,$c2 \rbrace \). Find the matrix of \( L \). Hint: First find the matrix \( [L]_B^B \) in a basis that contains the two given vectors and their crossed product. diff --git a/OpenProblemLibrary/NAU/setLinearAlgebra/similar.pg b/OpenProblemLibrary/NAU/setLinearAlgebra/similar.pg index 3b06fb7ab5..eae9927d0b 100644 --- a/OpenProblemLibrary/NAU/setLinearAlgebra/similar.pg +++ b/OpenProblemLibrary/NAU/setLinearAlgebra/similar.pg @@ -14,11 +14,11 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); $showPartialCorrectAnswers = 1; -TEXT(beginproblem()); +TEXT(beginproblem()); Context("Matrix"); @@ -53,7 +53,7 @@ if ($sP->inverse != $sPi) { return 0 } -return 0 if ($sPi*$B*$sP != $A); +return 0 if ($sPi*$B*$sP != $A); return 1; } ); @@ -64,7 +64,7 @@ Show that \( A=$A \) and \( B=$B \) are similar matrices by finding an invertibl satisfying \( A=P^{-1} B P\). $BR \( P^{-1} = \) -\{ $multians->ans_array(3) \}, +\{ $multians->ans_array(3) \}, \( P = \) \{ $multians->ans_array(3) \} diff --git a/OpenProblemLibrary/NAU/setLinearAlgebra/similar2.pg b/OpenProblemLibrary/NAU/setLinearAlgebra/similar2.pg index 60d010b4ad..1335a200b5 100644 --- a/OpenProblemLibrary/NAU/setLinearAlgebra/similar2.pg +++ b/OpenProblemLibrary/NAU/setLinearAlgebra/similar2.pg @@ -14,11 +14,11 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); $showPartialCorrectAnswers = 1; -TEXT(beginproblem()); +TEXT(beginproblem()); Context("Matrix"); @@ -46,22 +46,22 @@ my ($s1,$s2) = @{$student}; my $sb1=Matrix($s1); my $sb2=Matrix($s2); my $sP=Matrix([[$sb1->element(1,1),$sb2->element(1,1)],[$sb1->element(2,1),$sb2->element(2,1)]]); -return 0 if ($sP->det == 0); +return 0 if ($sP->det == 0); my $sPi=$sP->inverse; -return 0 if ($sPi*$A*$sP != $X); +return 0 if ($sPi*$A*$sP != $X); return 1; } ); Context()->texStrings; BEGIN_TEXT -Consider the multiplication operator \( L_A:{\mathbb R}^2\to {\mathbb R}^2 \) +Consider the multiplication operator \( L_A:{\mathbb R}^2\to {\mathbb R}^2 \) defined by \( L_A(x)=Ax \) where \( A=$A \). Find an ordered basis \( B=(b_1,b_2) \) for \( {\mathbb R}^2 \) such that \( [L_A]_B^B=$X \). Hint: \( [L_A]_E^E=A \) where \( E \) is the standard basis. $BR \( b_1 = \) -\{ $multians->ans_array(3) \}, +\{ $multians->ans_array(3) \}, \( b_2 = \) \{ $multians->ans_array(3) \} diff --git a/OpenProblemLibrary/NAU/setLinearAlgebra/similar3.pg b/OpenProblemLibrary/NAU/setLinearAlgebra/similar3.pg index 0742e72e5a..a6232cd961 100644 --- a/OpenProblemLibrary/NAU/setLinearAlgebra/similar3.pg +++ b/OpenProblemLibrary/NAU/setLinearAlgebra/similar3.pg @@ -13,11 +13,11 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); $showPartialCorrectAnswers = 1; -TEXT(beginproblem()); +TEXT(beginproblem()); Context("Matrix"); @@ -62,7 +62,7 @@ sub mycheck2 { sub mycheck3 { my ($correct, $student, $ansHash) = @_; my $sR=Matrix($student); - my $sRi=$sR->inverse; + my $sRi=$sR->inverse; return 1 if ($sRi*$C*$sR == $A); return 0; } @@ -78,13 +78,13 @@ $BR \( T = \) \{ $I->ans_array(3) \} $BR -We know that \( A \) and \( B=$B \) are similar since \( A = P^{-1} B P \) where \( P = $P\). +We know that \( A \) and \( B=$B \) are similar since \( A = P^{-1} B P \) where \( P = $P\). Verify that \( B\sim A\) by finding an \( S \) such that \( B = S^{-1} A S \). $BR \( S = \) \{ $Pi->ans_array(3) \} $BR -We also know that \(B \) and \( C=$C \) are similar since \( B = Q^{-1} C Q \) where \( Q = $Q\). +We also know that \(B \) and \( C=$C \) are similar since \( B = Q^{-1} C Q \) where \( Q = $Q\). Verify that \( A\sim C\) by finding an \( R \) such that \( A = R^{-1} C R \). $BR \( R = \) diff --git a/OpenProblemLibrary/NAU/setLinearAlgebra/similarB.pg b/OpenProblemLibrary/NAU/setLinearAlgebra/similarB.pg index ae42a16fce..f1c6141b3e 100644 --- a/OpenProblemLibrary/NAU/setLinearAlgebra/similarB.pg +++ b/OpenProblemLibrary/NAU/setLinearAlgebra/similarB.pg @@ -14,11 +14,11 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); $showPartialCorrectAnswers = 1; -TEXT(beginproblem()); +TEXT(beginproblem()); Context("Matrix"); @@ -52,18 +52,18 @@ my ($s1,$s2) = @{$student}; my $sPi=Matrix($s1); if ($sPi->det == 0) { $self->setMessage(1,"Not invertible."); - return 0 -} + return 0 +} my $sP=Matrix($s2); if ($sP->det == 0) { $self->setMessage(2,"Not invertible."); - return 0 -} + return 0 +} if ($sP->inverse != $sPi) { $self->setMessage(2,"Not the inverse."); - return 0 -} -return 0 if ($sPi*$B*$sP != $A); + return 0 +} +return 0 if ($sPi*$B*$sP != $A); return 1; } ); @@ -74,7 +74,7 @@ Show that \( A=$A \) and \( B=$B \) are similar matrices by finding an invertibl satisfying \( A=P^{-1} B P\). $BR \( P^{-1} = \) -\{ $multians->ans_array(3) \}, +\{ $multians->ans_array(3) \}, \( P = \) \{ $multians->ans_array(3) \} diff --git a/OpenProblemLibrary/NAU/setLinearAlgebra/span.pg b/OpenProblemLibrary/NAU/setLinearAlgebra/span.pg index 09039a76ef..b98c79f601 100644 --- a/OpenProblemLibrary/NAU/setLinearAlgebra/span.pg +++ b/OpenProblemLibrary/NAU/setLinearAlgebra/span.pg @@ -13,13 +13,13 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "MatrixReduce.pl", "rank.pl", "PGcourse.pl" ); $showPartialCorrectAnswers = 1; -TEXT(beginproblem()); +TEXT(beginproblem()); Context("Fraction"); Context() -> parens -> set ("[" => {formMatrix => 1}); @@ -51,9 +51,9 @@ redo if (rank(Matrix([$a11,$a12,$a22],[$b11,$b12,$b22], sub mycheck { my ($correct, $student, $ansHash) = @_; if ( ! $student->is_symmetric ) - { return 0; } + { return 0; } if ( rank(Matrix($student)) == 0 ) - { return 0; } + { return 0; } if (rank(Matrix([$a11,$a12,$a22],[$b11,$b12,$b22], [$student->element(1,1),$student->element(1,2),$student->element(2,2)])) == 2) { return 1; @@ -64,7 +64,7 @@ sub mycheck { sub mycheck2 { my ($correct, $student, $ansHash) = @_; if ( ! $student->is_symmetric ) - { return 0; } + { return 0; } if (rank(Matrix([$a11,$a12,$a22],[$b11,$b12,$b22], [$student->element(1,1),$student->element(1,2),$student->element(2,2)]))==3) { return 1; @@ -75,10 +75,10 @@ sub mycheck2 { Context()->texStrings; BEGIN_TEXT -Let \(V\) be the vector space of symmetric \(2\times 2\) matrices and +Let \(V\) be the vector space of symmetric \(2\times 2\) matrices and \(W\) be the subspace \[W=\text{span} \lbrace $A,$B \rbrace .\] -a. Find a nonzero element \(X\) in \( W \). +a. Find a nonzero element \(X\) in \( W \). $BR \( X = \) \{ $answer->ans_array(5) \} diff --git a/OpenProblemLibrary/NAU/setLinearAlgebra/spanCAPspan.pg b/OpenProblemLibrary/NAU/setLinearAlgebra/spanCAPspan.pg index 20a7ecf650..5a9292809b 100644 --- a/OpenProblemLibrary/NAU/setLinearAlgebra/spanCAPspan.pg +++ b/OpenProblemLibrary/NAU/setLinearAlgebra/spanCAPspan.pg @@ -12,13 +12,13 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "MatrixReduce.pl", "rank.pl", "PGcourse.pl" ); $showPartialCorrectAnswers = 1; -TEXT(beginproblem()); +TEXT(beginproblem()); Context("Fraction"); Context() -> parens -> set ("[" => {formMatrix => 1}); @@ -38,7 +38,7 @@ $BB = random(1,2,1)*$B+random(1,3,1)*$Sol; sub mycheck { my ($correct, $student, $ansHash) = @_; if ( rank(Matrix($student->row(1),[0,0,0],[0,0,0])) == 0 ) - { return 0; } + { return 0; } if (rank(Matrix([$student->row(1),$Sol->row(1),[0,0,0]])) ==1) { return 1; } @@ -52,7 +52,7 @@ Consider the subspaces and \[W=\text{span} \lbrace $B,$BB \rbrace \] $BR -of \(V={\mathbb R}^{1\times 3}\). Find a matrix \(X\in V\) such that +of \(V={\mathbb R}^{1\times 3}\). Find a matrix \(X\in V\) such that \(U\cap W = \text{span} \lbrace X \rbrace \). $BR diff --git a/OpenProblemLibrary/NAU/setLinearAlgebra/systemEquivalent.pg b/OpenProblemLibrary/NAU/setLinearAlgebra/systemEquivalent.pg index d950e50d98..9cd989492e 100644 --- a/OpenProblemLibrary/NAU/setLinearAlgebra/systemEquivalent.pg +++ b/OpenProblemLibrary/NAU/setLinearAlgebra/systemEquivalent.pg @@ -12,13 +12,13 @@ ## MO(1) ## KEYWORDS('linear algebra','matrix','trace') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGnauGraphics.pl", "PGgraphmacros.pl", "PGcourse.pl" @@ -51,7 +51,7 @@ redo if ($x==$y); $XX=Matrix([[Formula("x")],[Formula("y")]]); $X=Matrix([[$x],[$y]]); $Y=Matrix($A*$X); -$Ycopy = $Y->copy; # Y appears twice as an answer; keep them separate. +$Ycopy = $Y->copy; # Y appears twice as an answer; keep them separate. $p=$Y->element(1,1); $q=$Y->element(2,1); @@ -71,18 +71,18 @@ $Aug=Matrix([[$a,$b,$p],[$c,$d,$q]]); $dom=10; @opts = (-$dom, -$dom, $dom, $dom, axes=>[0,0], grid=>[$dom, $dom], size=>[250,250]); $grapho = init_graph(@opts); - + $grapho->new_color('red',200,0,0); $grapho->new_color('green',0,200,0); $grapho->new_color('blue',0,0,200); - + $grapho->moveTo(-10,($p-$a*(-10))/$b); $grapho->lineTo(11,($p-$a*(11))/$b,'red'); $grapho->moveTo(-10,($q-$c*(-10))/$d); $grapho->lineTo(11,($q-$c*(11))/$d,'green'); - + $labela = new Label($x,$y, 'P', 'blue' , 'center', 'center'); $grapho->lb($labela); @@ -121,7 +121,7 @@ $BR \( x \) \{ $A1C->ans_array(3) \} \( + y \) \{ $A2C->ans_array(3) \} = \{$Ycopy->ans_array(3) \} $BR -e. The graph below shows the lines determined by the two equations in our system: +e. The graph below shows the lines determined by the two equations in our system: $BR \{ Plot($grapho) \} $BR @@ -153,5 +153,5 @@ ANS(Formula("$y")->cmp); ANS(Formula("$p/$b")->cmp); ANS(Formula("$q/$c")->cmp); -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/NAU/setLinearAlgebra/transposeMagic.pg b/OpenProblemLibrary/NAU/setLinearAlgebra/transposeMagic.pg index d651ccd0a2..ad526450eb 100644 --- a/OpenProblemLibrary/NAU/setLinearAlgebra/transposeMagic.pg +++ b/OpenProblemLibrary/NAU/setLinearAlgebra/transposeMagic.pg @@ -18,13 +18,13 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "MatrixReduce.pl", "rank.pl", "PGcourse.pl" ); $showPartialCorrectAnswers = 1; -TEXT(beginproblem()); +TEXT(beginproblem()); #Context('Matrix'); Context("Fraction"); @@ -37,20 +37,20 @@ $C = Matrix([[2,2,-1],[-2,1,4],[3,0,0]]); sub magic { my ($m) = @_; -my $s1=$m->element(1,1)+$m->element(1,2)+$m->element(1,3); -my $s2=$m->element(2,1)+$m->element(2,2)+$m->element(2,3); +my $s1=$m->element(1,1)+$m->element(1,2)+$m->element(1,3); +my $s2=$m->element(2,1)+$m->element(2,2)+$m->element(2,3); return 0 if ($s2 != $s1); -my $s3=$m->element(3,1)+$m->element(3,2)+$m->element(3,3); +my $s3=$m->element(3,1)+$m->element(3,2)+$m->element(3,3); return 0 if ($s3 != $s1); -my $s4=$m->element(1,1)+$m->element(2,1)+$m->element(3,1); +my $s4=$m->element(1,1)+$m->element(2,1)+$m->element(3,1); return 0 if ($s4 != $s1); -my $s5=$m->element(1,2)+$m->element(2,2)+$m->element(3,2); +my $s5=$m->element(1,2)+$m->element(2,2)+$m->element(3,2); return 0 if ($s5 != $s1); -my $s6=$m->element(1,3)+$m->element(2,3)+$m->element(3,3); +my $s6=$m->element(1,3)+$m->element(2,3)+$m->element(3,3); return 0 if ($s6 != $s1); -my $s7=$m->element(1,1)+$m->element(2,2)+$m->element(3,3); +my $s7=$m->element(1,1)+$m->element(2,2)+$m->element(3,3); return 0 if ($s7 != $s1); -my $s8=$m->element(1,3)+$m->element(2,2)+$m->element(3,1); +my $s8=$m->element(1,3)+$m->element(2,2)+$m->element(3,1); return 0 if ($s8 != $s1); return 1; } @@ -61,7 +61,7 @@ checker => sub { my ( $correct, $student, $self ) = @_; my @s = @{$student}; my @c = @{$correct}; -$s0 = Matrix($s[0]); +$s0 = Matrix($s[0]); $s1 = Matrix($s[1]); $s2 = Matrix($s[2]); @@ -122,15 +122,15 @@ checker => sub { my ( $correct, $student, $self ) = @_; my @s = @{$student}; my @c = @{$correct}; -$sD = Matrix($s[0]); +$sD = Matrix($s[0]); $sP = Matrix($s[1]); -return 0 if ($sD != $sP->inverse*$sLB*$sP); -return 0 if ($sD->element(1,2)!=0); +return 0 if ($sD != $sP->inverse*$sLB*$sP); +return 0 if ($sD->element(1,2)!=0); return 0 if ($sD->element(1,3)!=0); return 0 if ($sD->element(2,1)!=0); return 0 if ($sD->element(2,3)!=0); return 0 if ($sD->element(3,1)!=0); -return 0 if ($sD->element(3,2)!=0); +return 0 if ($sD->element(3,2)!=0); return 1; } ); @@ -144,12 +144,12 @@ BEGIN_TEXT A square matrix is magic if the sum of the numbers in each row, column, and diagonal is the same. $BR -a. Find an ordered basis \( B \) for the vector space \( V \) of \( 3\times 3\) magic squares. +a. Find an ordered basis \( B \) for the vector space \( V \) of \( 3\times 3\) magic squares. $BR \( B = ( \) \{ $multians->ans_array(3) \}, \{ $multians->ans_array(3) \}, -\{ $multians->ans_array(3) \} +\{ $multians->ans_array(3) \} \( ) \). $BR @@ -178,8 +178,8 @@ Context()->normalStrings; ANS( $multians->cmp() ); ANS( $LB->cmp( checker=>~~&mycheck ) ); -ANS( $det->cmp() ); -ANS( $charpol->cmp() ); +ANS( $det->cmp() ); +ANS( $charpol->cmp() ); ANS( $multians2->cmp() ); COMMENT('This problem is a bit difficult. CAS may be useful'); diff --git a/OpenProblemLibrary/NAU/setTrigHalfDouble/CosineHalf.pg b/OpenProblemLibrary/NAU/setTrigHalfDouble/CosineHalf.pg index 2a49bed80e..73e87a350a 100644 --- a/OpenProblemLibrary/NAU/setTrigHalfDouble/CosineHalf.pg +++ b/OpenProblemLibrary/NAU/setTrigHalfDouble/CosineHalf.pg @@ -12,12 +12,12 @@ # Location: Northern Arizona University # Course: MAT 125 -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -36,19 +36,19 @@ do { } until (gcd($a,$b)==1); ## signs of cosine in 1,2,3,4 quadrants -@signs=('','-','-',''); - +@signs=('','-','-',''); + ## sign values of cosine(half) in 1,2,3,4 quadrants -@halfsigns=(1,1,-1,-1); +@halfsigns=(1,1,-1,-1); ## sign values of cosine in 1,2,3,4 quadrants @signcos=(1,-1,-1,1); - + ## randomize quadrant and quadrant type (I or 0cmp() ); -ENDDOCUMENT(); +ENDDOCUMENT(); The original version used these: # Nandor "PG.pl", "PGbasicmacros.pl", "PGchoicemacros.pl", "PGanswermacros.pl", -"PGauxiliaryFunctions.pl", +"PGauxiliaryFunctions.pl", "PGgraphmacros.pl", "PGasu.pl", diff --git a/OpenProblemLibrary/NAU/setTrigHalfDouble/TanHalf.pg b/OpenProblemLibrary/NAU/setTrigHalfDouble/TanHalf.pg index a7fffef3bb..5c2597b8c1 100644 --- a/OpenProblemLibrary/NAU/setTrigHalfDouble/TanHalf.pg +++ b/OpenProblemLibrary/NAU/setTrigHalfDouble/TanHalf.pg @@ -12,12 +12,12 @@ # Location: Northern Arizona University # Course: MAT 125 -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -37,18 +37,18 @@ do { $c=$b*$b-$a*$a; ## signs of tangent in 1,2,3,4 quadrants -@signs=('','-','','-'); - +@signs=('','-','','-'); + ## sign values of sine/cosine in 1,2,3,4 quadrants @sign2=([1,1,-1,-1], [1,-1,-1,1] ); - + ## randomize quadrant and quadrant type (I or 0cmp() ); -ENDDOCUMENT(); +ENDDOCUMENT(); "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", ANS(exact_no_trig($ans) ); diff --git a/OpenProblemLibrary/OKState/FourierSeries/evenoddext1.pg b/OpenProblemLibrary/OKState/FourierSeries/evenoddext1.pg index 54e12c12df..a39053c71e 100644 --- a/OpenProblemLibrary/OKState/FourierSeries/evenoddext1.pg +++ b/OpenProblemLibrary/OKState/FourierSeries/evenoddext1.pg @@ -27,7 +27,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -102,7 +102,7 @@ $BR \(F_{\text{even}}(-$conepointfive) = {} \) \{ ans_rule(20) \} $BR $BR -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/OKState/FourierSeries/finite-fourier1.pg b/OpenProblemLibrary/OKState/FourierSeries/finite-fourier1.pg index 7400b18194..79b43139a0 100644 --- a/OpenProblemLibrary/OKState/FourierSeries/finite-fourier1.pg +++ b/OpenProblemLibrary/OKState/FourierSeries/finite-fourier1.pg @@ -27,12 +27,12 @@ ########################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -89,7 +89,7 @@ $BR \(b_4 = {}\) \{ ans_rule(10) \} $BR $BR -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; @@ -106,4 +106,4 @@ ANS($b2->cmp); ANS($b3->cmp); ANS($b4->cmp); -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/OKState/FourierSeries/fourier-antider1.pg b/OpenProblemLibrary/OKState/FourierSeries/fourier-antider1.pg index a30c9f0ca1..89619df993 100644 --- a/OpenProblemLibrary/OKState/FourierSeries/fourier-antider1.pg +++ b/OpenProblemLibrary/OKState/FourierSeries/fourier-antider1.pg @@ -27,7 +27,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -72,7 +72,7 @@ $BR \( b_n = {} \) \{ ans_rule(40) \} $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/OKState/FourierSeries/fourier-differ1.pg b/OpenProblemLibrary/OKState/FourierSeries/fourier-differ1.pg index a1eb6b8130..14159d6da4 100644 --- a/OpenProblemLibrary/OKState/FourierSeries/fourier-differ1.pg +++ b/OpenProblemLibrary/OKState/FourierSeries/fourier-differ1.pg @@ -27,7 +27,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -65,7 +65,7 @@ $BR \( b_n = {} \) \{ ans_rule(40) \} $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/OKState/FourierSeries/periodicext1.pg b/OpenProblemLibrary/OKState/FourierSeries/periodicext1.pg index 6bbc7f26ca..4f59be5498 100644 --- a/OpenProblemLibrary/OKState/FourierSeries/periodicext1.pg +++ b/OpenProblemLibrary/OKState/FourierSeries/periodicext1.pg @@ -27,7 +27,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); TEXT(beginproblem()); @@ -77,7 +77,7 @@ $BR \(f($t5) = {}\) \{ ans_rule(40); \} $BR $BR -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/OKState/ODE/boundaryvalue/dirich-fourier-nonhomog.pg b/OpenProblemLibrary/OKState/ODE/boundaryvalue/dirich-fourier-nonhomog.pg index dc1c54958b..708f87f606 100755 --- a/OpenProblemLibrary/OKState/ODE/boundaryvalue/dirich-fourier-nonhomog.pg +++ b/OpenProblemLibrary/OKState/ODE/boundaryvalue/dirich-fourier-nonhomog.pg @@ -27,7 +27,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -72,7 +72,7 @@ $BR \{ ans_rule(50) \} $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/OKState/ODE/boundaryvalue/neumann-fourier-nonhomog.pg b/OpenProblemLibrary/OKState/ODE/boundaryvalue/neumann-fourier-nonhomog.pg index ece15dd6d1..3975c1b14c 100755 --- a/OpenProblemLibrary/OKState/ODE/boundaryvalue/neumann-fourier-nonhomog.pg +++ b/OpenProblemLibrary/OKState/ODE/boundaryvalue/neumann-fourier-nonhomog.pg @@ -27,7 +27,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -64,7 +64,7 @@ $BR \( x(t) = {} \) \{ ans_rule(50) \} $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/OKState/ODE/boundaryvalue/stringpop1.pg b/OpenProblemLibrary/OKState/ODE/boundaryvalue/stringpop1.pg index 2bee054478..9794534c02 100755 --- a/OpenProblemLibrary/OKState/ODE/boundaryvalue/stringpop1.pg +++ b/OpenProblemLibrary/OKState/ODE/boundaryvalue/stringpop1.pg @@ -28,7 +28,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); TEXT(beginproblem()); @@ -63,7 +63,7 @@ $BR Angular velocity: \{ ans_rule(40); \} $BR $BR -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/OKState/ODE/boundaryvalue/stringpop2.pg b/OpenProblemLibrary/OKState/ODE/boundaryvalue/stringpop2.pg index 670c54f50d..581bec9e54 100755 --- a/OpenProblemLibrary/OKState/ODE/boundaryvalue/stringpop2.pg +++ b/OpenProblemLibrary/OKState/ODE/boundaryvalue/stringpop2.pg @@ -28,7 +28,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); TEXT(beginproblem()); @@ -65,7 +65,7 @@ $BR Tension: \{ ans_rule(40); \} $BR $BR -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/OKState/ODE/boundaryvalue/stringpop3.pg b/OpenProblemLibrary/OKState/ODE/boundaryvalue/stringpop3.pg index bc9a0289b1..dfc6d0ba97 100755 --- a/OpenProblemLibrary/OKState/ODE/boundaryvalue/stringpop3.pg +++ b/OpenProblemLibrary/OKState/ODE/boundaryvalue/stringpop3.pg @@ -28,7 +28,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserOneOf.pl", "PGcourse.pl", ); @@ -54,7 +54,7 @@ $ans = OneOf("$c*sin(k*(pi/$a)*x)", "-$c*sin(k*(pi/$a)*x)"); Context()->texStrings; BEGIN_TEXT -Suppose we have a whirling string (spinning around its axis) of length \( $a \) meters. +Suppose we have a whirling string (spinning around its axis) of length \( $a \) meters. Suppose it is popped out using the \(k\)-th eigenvalue of the underlying eigenvalue problem, that is, it crosses the axis \(k-1\) times. Further suppose that the maximum displacement from the axis @@ -63,7 +63,7 @@ $BR \( y = {} \) \{ ans_rule(40); \} $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/OKState/ODE/nonlin-systems/critical-points-curve1.pg b/OpenProblemLibrary/OKState/ODE/nonlin-systems/critical-points-curve1.pg index 6abadd8b7e..b5ff2b8be4 100755 --- a/OpenProblemLibrary/OKState/ODE/nonlin-systems/critical-points-curve1.pg +++ b/OpenProblemLibrary/OKState/ODE/nonlin-systems/critical-points-curve1.pg @@ -29,7 +29,7 @@ loadMacros( "MathObjects.pl", "MatrixCheckers.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); TEXT(beginproblem()); @@ -60,7 +60,7 @@ $BR \( y = {} \) \{ ans_rule(40); \} $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/OKState/ODE/secondorder-systems/forced-vibrations.pg b/OpenProblemLibrary/OKState/ODE/secondorder-systems/forced-vibrations.pg index b67e947b76..74f8b24b92 100644 --- a/OpenProblemLibrary/OKState/ODE/secondorder-systems/forced-vibrations.pg +++ b/OpenProblemLibrary/OKState/ODE/secondorder-systems/forced-vibrations.pg @@ -27,7 +27,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl", ); @@ -59,7 +59,7 @@ do { $denom = ($Ma*$Md+$Cf*$Cf*$Md-$Mb*$Mc+$Cf*$Cf*$Ma+$Cf*$Cf*$Cf*$Cf); # make sure the forcing frequency is not a natural frequency } until ($denom != 0); - + #make sure the denominators don't became huge } until ($denom*$m1 < 1000 && $denom*$m2 < 1000); @@ -77,13 +77,13 @@ $answer2 = Compute("$v2*cos($Cf*t)")->reduce; Context()->texStrings; BEGIN_TEXT -Take the system +Take the system \[ {\vec{x}\,}'' = \begin{bmatrix} $Ma & $Mb \\ $Mc & $Md \end{bmatrix} -\vec{x} + +\vec{x} + \begin{bmatrix} $Cc \cos($Cf t) \\ 0 \end{bmatrix} @@ -101,7 +101,7 @@ $BR \{ ans_rule(40) \} $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/OKState/ODE/secondorder-systems/positive-eigenvalues-second-order.pg b/OpenProblemLibrary/OKState/ODE/secondorder-systems/positive-eigenvalues-second-order.pg index dd3f7de383..90a61b5c48 100644 --- a/OpenProblemLibrary/OKState/ODE/secondorder-systems/positive-eigenvalues-second-order.pg +++ b/OpenProblemLibrary/OKState/ODE/secondorder-systems/positive-eigenvalues-second-order.pg @@ -27,7 +27,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl", ); @@ -67,7 +67,7 @@ BEGIN_TEXT While often the eigenvalues for the second order linear systems end up being negative in applications, the technique works just as well with positive eigenvalues. -Take the system +Take the system \[ {\vec{x}\,}'' = \begin{bmatrix} @@ -88,7 +88,7 @@ $BR \{ ans_rule(40) \} $BR $BR -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR $BR Guess a solution of the form \( \vec{x} = \vec{v} e^{\omega t} \), @@ -118,7 +118,7 @@ $BR \{ ans_rule(40) \} $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; @@ -149,7 +149,7 @@ Plugging in \( \vec{x} = \vec{v} e^{ \omega t } \) into \( {\vec{x}\,}' = A \vec{x} \) gives us \[ - \omega^2 \vec{v} e^{\omega t} = + \omega^2 \vec{v} e^{\omega t} = {\vec{x}\,}' = A \vec{x} = A \vec{v} e^{ \omega t } \] So @@ -160,9 +160,9 @@ c_1 \vec{v}_1 e^{$e1 t}+c_2 \vec{v}_1 e^{-$e1 t} + c_3 \vec{v}_2 e^{$e2 t}+c_4 \vec{v}_2 e^{-$e2 t} \] Plugging in the two initial conditions we find that -\(c_1 = 1\), -\(c_2 = -1\), -\(c_3 = \frac{$e1}{$e2}\), +\(c_1 = 1\), +\(c_2 = -1\), +\(c_3 = \frac{$e1}{$e2}\), \(c_4 = \frac{-$e1}{$e2}\) which gives us \[ \vec{x}_1 = $answer3 diff --git a/OpenProblemLibrary/OKState/PDE/firstorder/characteristics4.pg b/OpenProblemLibrary/OKState/PDE/firstorder/characteristics4.pg index ede54de27d..03b8d21784 100644 --- a/OpenProblemLibrary/OKState/PDE/firstorder/characteristics4.pg +++ b/OpenProblemLibrary/OKState/PDE/firstorder/characteristics4.pg @@ -27,7 +27,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -97,7 +97,7 @@ $BR \(u = {} \) \{ ans_rule(40) \} $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/OKState/PDE/heat/heat-convection.pg b/OpenProblemLibrary/OKState/PDE/heat/heat-convection.pg index 56181395b9..b001c4fdb0 100644 --- a/OpenProblemLibrary/OKState/PDE/heat/heat-convection.pg +++ b/OpenProblemLibrary/OKState/PDE/heat/heat-convection.pg @@ -27,7 +27,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -66,7 +66,7 @@ $BR \{ ans_rule(80) \} $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/OKState/PDE/heat/heat-dimensionless1.pg b/OpenProblemLibrary/OKState/PDE/heat/heat-dimensionless1.pg index 6cebf1f44d..d9b672e43e 100644 --- a/OpenProblemLibrary/OKState/PDE/heat/heat-dimensionless1.pg +++ b/OpenProblemLibrary/OKState/PDE/heat/heat-dimensionless1.pg @@ -28,7 +28,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -67,15 +67,15 @@ Transform the problem $BR PDE: \( \quad u_{t} = $asq u_{xx} , \qquad 0 < x < $b , \quad t > 0 \) $BR -BC: \( \quad u(0,t) = $c \quad u($b,t) = $d \) +BC: \( \quad u(0,t) = $c \quad u($b,t) = $d \) $BR -IC: \( \quad u(x,0) = x^2 \) +IC: \( \quad u(x,0) = x^2 \) $BR into a dimensionless problem: $BR PDE: \( \quad U_{\tau} = U_{\xi\xi} , \qquad 0 < \xi < 1 , \quad \tau > 0 \) $BR -BC: \( \quad U(0,\tau) = 0 \quad u(1,\tau) = 1 \) +BC: \( \quad U(0,\tau) = 0 \quad u(1,\tau) = 1 \) $BR IC: \( \quad U(\xi,0) = {} \) \{ ans_rule(40) \} $BR @@ -97,7 +97,7 @@ $BR \(\tau = {} \) \{ ans_rule(40) \} $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/OKState/PDE/heat/heat-dimensionless2.pg b/OpenProblemLibrary/OKState/PDE/heat/heat-dimensionless2.pg index bb1679df47..791f986e5f 100644 --- a/OpenProblemLibrary/OKState/PDE/heat/heat-dimensionless2.pg +++ b/OpenProblemLibrary/OKState/PDE/heat/heat-dimensionless2.pg @@ -27,7 +27,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -59,16 +59,16 @@ Transform the problem $BR PDE: \( \quad u_{t} = $asq u_{xx} , \qquad 0 < x < 1 , \quad t > $b \) $BR -BC: \( \quad u(0,t) = 0 \quad u(1,t) = 0 \) +BC: \( \quad u(0,t) = 0 \quad u(1,t) = 0 \) $BR -IC: \( \quad u(x,$b) = f(x) \) +IC: \( \quad u(x,$b) = f(x) \) $BR into a dimensionless problem. Assume \(x\) and \(u\) already do not have units, so you only change time. You wish to arrive at $BR PDE: \( \quad u_{\tau} = u_{xx} , \qquad 0 < x < 1 , \quad \tau > 0 \) $BR -BC: \( \quad u(0,\tau) = 0 \quad u(1,\tau) = 0 \) +BC: \( \quad u(0,\tau) = 0 \quad u(1,\tau) = 0 \) $BR IC: \( \quad u(x,0) = f(x) \) $BR @@ -78,7 +78,7 @@ $BR \(\tau = {} \) \{ ans_rule(40) \} $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/OKState/PDE/heat/heat-dimensionless3.pg b/OpenProblemLibrary/OKState/PDE/heat/heat-dimensionless3.pg index 76b241ece5..1455b77ad9 100644 --- a/OpenProblemLibrary/OKState/PDE/heat/heat-dimensionless3.pg +++ b/OpenProblemLibrary/OKState/PDE/heat/heat-dimensionless3.pg @@ -27,7 +27,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "PGcourse.pl", ); @@ -67,15 +67,15 @@ We want to solve the problem $BR PDE: \( \quad u_{t} = $asq u_{xx} , \qquad 0 < x < $b , \quad t > 0 \) $BR -BC: \( \quad u(0,t) = $c \quad u($b,t) = $d \) +BC: \( \quad u(0,t) = $c \quad u($b,t) = $d \) $BR -IC: \( \quad u(x,0) = 0 \) +IC: \( \quad u(x,0) = 0 \) $BR And we have the solution of the problem $BR PDE: \( \quad v_{\tau} = v_{\xi\xi} , \qquad 0 < \xi < 1 , \quad \tau > 0 \) $BR -BC: \( \quad v(0,\tau) = 0 \quad v(1,\tau) = 1 \) +BC: \( \quad v(0,\tau) = 0 \quad v(1,\tau) = 1 \) $BR IC: \( \quad v(\xi,0) = 0 \) $BR @@ -85,7 +85,7 @@ $BR \(u(x,t) = {} \) \{ ans_rule(40) \} $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/OKState/PDE/heat/heat-find-max.pg b/OpenProblemLibrary/OKState/PDE/heat/heat-find-max.pg index 24c3ed05b7..8442e232d7 100644 --- a/OpenProblemLibrary/OKState/PDE/heat/heat-find-max.pg +++ b/OpenProblemLibrary/OKState/PDE/heat/heat-find-max.pg @@ -32,7 +32,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -69,7 +69,7 @@ $BR What is the maximum temperature in the rod at any particular time. That is, $BR \( M(t) = {} \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("functions") \} +\{ helpLink("functions") \} $BR where \(M(t)\) is the maximum temperature at time \(t\). Use your intuition. diff --git a/OpenProblemLibrary/OKState/PDE/heat/heat-inhomog.pg b/OpenProblemLibrary/OKState/PDE/heat/heat-inhomog.pg index 6da7d9a725..81e342e077 100644 --- a/OpenProblemLibrary/OKState/PDE/heat/heat-inhomog.pg +++ b/OpenProblemLibrary/OKState/PDE/heat/heat-inhomog.pg @@ -27,7 +27,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -102,7 +102,7 @@ $BR where \( f_n(t) = {} \) \{ ans_rule(40) \} $BR -You find that +You find that $BR \( \displaystyle U(x,t) = \sum_{j=1}^\infty T_n(t) X_n(x) \) , $BR @@ -116,7 +116,7 @@ $BR Then \( u(x,t) = S(x,t) + U(x,t) \) $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/OKState/PDE/heat/heat-loss.pg b/OpenProblemLibrary/OKState/PDE/heat/heat-loss.pg index fc1a06a31d..9368231674 100644 --- a/OpenProblemLibrary/OKState/PDE/heat/heat-loss.pg +++ b/OpenProblemLibrary/OKState/PDE/heat/heat-loss.pg @@ -27,7 +27,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -81,7 +81,7 @@ $BR \{ ans_rule(40) \} $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/OKState/PDE/heat/heat-nonhomogeqandbc.pg b/OpenProblemLibrary/OKState/PDE/heat/heat-nonhomogeqandbc.pg index eeb37c2fbf..db630d2405 100644 --- a/OpenProblemLibrary/OKState/PDE/heat/heat-nonhomogeqandbc.pg +++ b/OpenProblemLibrary/OKState/PDE/heat/heat-nonhomogeqandbc.pg @@ -27,7 +27,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -72,7 +72,7 @@ Solve: \(u(x,t) = {} \) \{ ans_rule(40) \} $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/OKState/PDE/heat/heat-plugin-values.pg b/OpenProblemLibrary/OKState/PDE/heat/heat-plugin-values.pg index fffec2b581..565832b16b 100644 --- a/OpenProblemLibrary/OKState/PDE/heat/heat-plugin-values.pg +++ b/OpenProblemLibrary/OKState/PDE/heat/heat-plugin-values.pg @@ -32,7 +32,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -75,7 +75,7 @@ $BR $BR \( \displaystyle u\Big(\frac{1}{2},t\Big) = {} \) \{ ans_rule(20) \} $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/OKState/PDE/heat/heat-setup1.pg b/OpenProblemLibrary/OKState/PDE/heat/heat-setup1.pg index 31d84b43a8..34e15fb77a 100644 --- a/OpenProblemLibrary/OKState/PDE/heat/heat-setup1.pg +++ b/OpenProblemLibrary/OKState/PDE/heat/heat-setup1.pg @@ -24,13 +24,13 @@ ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "parserRadioButtons.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -87,7 +87,7 @@ $BR \(u(x,0) = {} \) \{ ans_rule(5) \} $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/OKState/PDE/heat/heat-ss-transform.pg b/OpenProblemLibrary/OKState/PDE/heat/heat-ss-transform.pg index a2d3b1e012..752eae3385 100644 --- a/OpenProblemLibrary/OKState/PDE/heat/heat-ss-transform.pg +++ b/OpenProblemLibrary/OKState/PDE/heat/heat-ss-transform.pg @@ -26,7 +26,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -82,7 +82,7 @@ $BR solves the original problem above. $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/OKState/PDE/heat/heat-steadystate1.pg b/OpenProblemLibrary/OKState/PDE/heat/heat-steadystate1.pg index 5d5ed6c1bb..3264ff3bd3 100644 --- a/OpenProblemLibrary/OKState/PDE/heat/heat-steadystate1.pg +++ b/OpenProblemLibrary/OKState/PDE/heat/heat-steadystate1.pg @@ -27,7 +27,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -52,14 +52,14 @@ Context()->texStrings; BEGIN_TEXT Consider the equation \( u_t = u_{xx} + $a \), \( 0 < x < 1 \), \( t > 0 \), that is, there is uniform heat source. Suppose further that -ends are kept as \( u(0,t) = 0 , u(1,t) = $b \). What is the +ends are kept as \( u(0,t) = 0 , u(1,t) = $b \). What is the steady state solution \(U(x)\), if it exists? That is, a solution after a very long time. $BR Hint: a steady-state solution does not depend on time. -$BR +$BR \( U(x) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; @@ -83,7 +83,7 @@ for \(U(x)\) as \( 0 = U'' + $a \) with boundary conditions \(U(0)=0\) and \(U(1)=$b\). The solution to the equation is \( U(x) = A + Bx - \frac{$a}{2} x^2 \). Plugging in the boundary conditions we find that \( A = 0 \) -and \(B=$b\) so +and \(B=$b\) so \( U(x) = $answer \). END_SOLUTION Context()->normalStrings; diff --git a/OpenProblemLibrary/OKState/PDE/heat/heat-steadystate2.pg b/OpenProblemLibrary/OKState/PDE/heat/heat-steadystate2.pg index 893f845ac3..bf672c4c57 100644 --- a/OpenProblemLibrary/OKState/PDE/heat/heat-steadystate2.pg +++ b/OpenProblemLibrary/OKState/PDE/heat/heat-steadystate2.pg @@ -27,7 +27,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -53,14 +53,14 @@ BEGIN_TEXT Consider the equation \( u_t = u_{xx} - $asq u \), \( 0 < x < 1 \), \( t > 0 \), that is, there is a lateral heat loss. Suppose further that ends are kept as \( u(0,t) = 0 , u(1,t) = $b (e^{$a}-e^{-$a}) \). -What is the +What is the steady state solution \(U(x)\), if it exists? That is, a solution after a very long time. $BR Hint: a steady-state solution does not depend on time. -$BR +$BR \( U(x) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; @@ -86,7 +86,7 @@ and \(U(1)=$b(e^{$a}-e^{-$a})\). The general solution to the equation is Plugging in the boundary condition \(U(0)=0\) we find that \( C_1 = -C_2 \), and plugging in the second boundary condition \(U(1)=$b(e^{$a}-e^{-$a})\), we find that \(C_1 = $b\). -So +So \( U(x) = $answer \). END_SOLUTION Context()->normalStrings; diff --git a/OpenProblemLibrary/OKState/PDE/heat/heat-steadystate3.pg b/OpenProblemLibrary/OKState/PDE/heat/heat-steadystate3.pg index 07794adaf7..bedaeb1da9 100644 --- a/OpenProblemLibrary/OKState/PDE/heat/heat-steadystate3.pg +++ b/OpenProblemLibrary/OKState/PDE/heat/heat-steadystate3.pg @@ -33,7 +33,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -66,10 +66,10 @@ $BR What were the boundary values? $BR \( u(0,t) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR \( u(1,t) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; @@ -89,7 +89,7 @@ Context()->texStrings; BEGIN_SOLUTION We evaluate the steady state at \( x = 0 \) and \( x = 1 \), -to obtain that +to obtain that \( u(0,t) = $b \) and \( u(1,t) = $c \). END_SOLUTION diff --git a/OpenProblemLibrary/OKState/PDE/heat/heat-superpos.pg b/OpenProblemLibrary/OKState/PDE/heat/heat-superpos.pg index 4d4b5c993d..af1529c61b 100644 --- a/OpenProblemLibrary/OKState/PDE/heat/heat-superpos.pg +++ b/OpenProblemLibrary/OKState/PDE/heat/heat-superpos.pg @@ -29,7 +29,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -122,7 +122,7 @@ $BR \(u(x,t) = {} \) \{ ans_rule(40) \} $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/OKState/PDE/heat/heat-units.pg b/OpenProblemLibrary/OKState/PDE/heat/heat-units.pg index 962f80e591..dc58cd7408 100644 --- a/OpenProblemLibrary/OKState/PDE/heat/heat-units.pg +++ b/OpenProblemLibrary/OKState/PDE/heat/heat-units.pg @@ -24,12 +24,12 @@ ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "parserRadioButtons.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -78,7 +78,7 @@ $unts2 = RadioButtons( BEGIN_TEXT -Suppose +Suppose \(u\) has units degree Celsius (\({}^\circ\)C), time \(t\) is in seconds (s), \(x\) is in centemeters (cm). We have the equation \(u_t = \alpha^2 u_{xx} - \nu u_x\) $BR diff --git a/OpenProblemLibrary/OKState/PDE/heat/heat-useformula1.pg b/OpenProblemLibrary/OKState/PDE/heat/heat-useformula1.pg index b6654f096c..6f58781c2f 100644 --- a/OpenProblemLibrary/OKState/PDE/heat/heat-useformula1.pg +++ b/OpenProblemLibrary/OKState/PDE/heat/heat-useformula1.pg @@ -33,7 +33,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -65,7 +65,7 @@ Suppose \( u(0,t) = 0 , u(1,t) = 0 \). Suppose $BR \( u(x,0) = -$a1 \sin(\pi x) + +$a1 \sin(\pi x) + $a2 \sin(2 \pi x) + $a3 \sin(3 \pi x) + $a4 \sin(4 \pi x) \) @@ -79,7 +79,7 @@ $BR \{ ans_rule(5) \} \( e^{-(3\pi)^2t} \sin(3 \pi x) + {} \) \{ ans_rule(5) \} \( e^{-(4\pi)^2t} \sin(4 \pi x) \) $BR -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/OKState/PDE/heat/heat-useformula2.pg b/OpenProblemLibrary/OKState/PDE/heat/heat-useformula2.pg index fec9cf4007..7b109c6b4b 100644 --- a/OpenProblemLibrary/OKState/PDE/heat/heat-useformula2.pg +++ b/OpenProblemLibrary/OKState/PDE/heat/heat-useformula2.pg @@ -38,7 +38,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -92,7 +92,7 @@ what is \(\lim_{t\to \infty} u(x,t) = {} \) \{ ans_rule(40) \} $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/OKState/PDE/heat/heat-useformula3.pg b/OpenProblemLibrary/OKState/PDE/heat/heat-useformula3.pg index 894c424d0b..6c128a1ec7 100644 --- a/OpenProblemLibrary/OKState/PDE/heat/heat-useformula3.pg +++ b/OpenProblemLibrary/OKState/PDE/heat/heat-useformula3.pg @@ -33,7 +33,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -73,7 +73,7 @@ $BR \( \displaystyle u(x,t) = \sum_{n=1}^\infty \) \{ ans_rule(20) \} \( e^{-(n\pi)^2t} \sin(n\pi x) \) $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/OKState/PDE/heat/solve-heat-convect1.pg b/OpenProblemLibrary/OKState/PDE/heat/solve-heat-convect1.pg index cb8af99801..bc7bc12a32 100644 --- a/OpenProblemLibrary/OKState/PDE/heat/solve-heat-convect1.pg +++ b/OpenProblemLibrary/OKState/PDE/heat/solve-heat-convect1.pg @@ -27,7 +27,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -62,7 +62,7 @@ We wish to solve the problem $BR PDE: \( \quad u_t = $asq u_{xx} - $b u_x , \qquad -\infty < x < \infty , \quad t > 0 \) $BR -IC: \( \quad u(x,0) = $c \sin( x ) \) +IC: \( \quad u(x,0) = $c \sin( x ) \) $BR $BR First we change variables to \(\xi = x- $b t, \tau = t\). The solution in @@ -76,7 +76,7 @@ $BR \(u = {} \) \{ ans_rule(40) \} $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/OKState/PDE/heat/solve-heat-convect2.pg b/OpenProblemLibrary/OKState/PDE/heat/solve-heat-convect2.pg index d959225830..8b11a5f983 100644 --- a/OpenProblemLibrary/OKState/PDE/heat/solve-heat-convect2.pg +++ b/OpenProblemLibrary/OKState/PDE/heat/solve-heat-convect2.pg @@ -28,7 +28,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -63,7 +63,7 @@ We wish to solve the problem $BR PDE: \( \quad u_t = $asq u_{xx} - $b u_x , \qquad -\infty < x < \infty , \quad t > 0 \) $BR -IC: \( \quad u(x,0) = $d + $c \cos( x ) + \sin(\pi x) \) +IC: \( \quad u(x,0) = $d + $c \cos( x ) + \sin(\pi x) \) $BR $BR First we change variables to \(\xi = x- $b t, \tau = t\). The solution in @@ -77,7 +77,7 @@ $BR \(u = {} \) \{ ans_rule(40) \} $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/OKState/PDE/heat/solve-heat-convect3.pg b/OpenProblemLibrary/OKState/PDE/heat/solve-heat-convect3.pg index 79272a32bb..3df183391d 100644 --- a/OpenProblemLibrary/OKState/PDE/heat/solve-heat-convect3.pg +++ b/OpenProblemLibrary/OKState/PDE/heat/solve-heat-convect3.pg @@ -27,7 +27,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -56,7 +56,7 @@ Solve the problem $BR PDE: \( \quad u_t = u_{xx} - $b u_x , \qquad -\infty < x < \infty , \quad t > 0 \) $BR -IC: \( \quad u(x,0) = $a e^{-(x^2)/4} \) +IC: \( \quad u(x,0) = $a e^{-(x^2)/4} \) $BR $BR First, get rid of the convection term by changing variables, then use the Fourier transform. @@ -64,7 +64,7 @@ $BR \(u = {} \) \{ ans_rule(40) \} $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/OKState/PDE/heat/solve-heat-laplace.pg b/OpenProblemLibrary/OKState/PDE/heat/solve-heat-laplace.pg index 04cc29a6f4..cd62de32a9 100644 --- a/OpenProblemLibrary/OKState/PDE/heat/solve-heat-laplace.pg +++ b/OpenProblemLibrary/OKState/PDE/heat/solve-heat-laplace.pg @@ -27,7 +27,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -61,7 +61,7 @@ We wish to solve the problem $BR PDE: \( \quad w_t = $a^2 w_{xx} , \qquad -\infty < x < \infty , \quad t > 0 \) $BR -IC: \( \quad w(x,0) = $c \sin( $b x ) \) +IC: \( \quad w(x,0) = $c \sin( $b x ) \) $BR using the Laplace transform. $BR @@ -73,10 +73,10 @@ $BR $BR $BR The solution then is -\( w(x,t) = {} \) \{ ans_rule(60) \} +\( w(x,t) = {} \) \{ ans_rule(60) \} $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/OKState/PDE/heat/solving-inf-heat-delta.pg b/OpenProblemLibrary/OKState/PDE/heat/solving-inf-heat-delta.pg index 1594968530..e0bd2a1d01 100644 --- a/OpenProblemLibrary/OKState/PDE/heat/solving-inf-heat-delta.pg +++ b/OpenProblemLibrary/OKState/PDE/heat/solving-inf-heat-delta.pg @@ -27,7 +27,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -69,7 +69,7 @@ u(x,t) = {} \) \{ ans_rule(60) \} $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/OKState/PDE/heat/solving-inf-heat-gauss.pg b/OpenProblemLibrary/OKState/PDE/heat/solving-inf-heat-gauss.pg index c77312ea9b..4c008db991 100644 --- a/OpenProblemLibrary/OKState/PDE/heat/solving-inf-heat-gauss.pg +++ b/OpenProblemLibrary/OKState/PDE/heat/solving-inf-heat-gauss.pg @@ -27,7 +27,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -69,7 +69,7 @@ u(x,t) = {} \) \{ ans_rule(60) \} $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/OKState/PDE/laplace/dirichcirc1.pg b/OpenProblemLibrary/OKState/PDE/laplace/dirichcirc1.pg index ff439bee37..6040a7099c 100644 --- a/OpenProblemLibrary/OKState/PDE/laplace/dirichcirc1.pg +++ b/OpenProblemLibrary/OKState/PDE/laplace/dirichcirc1.pg @@ -32,7 +32,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -79,7 +79,7 @@ $BR (Write theta for \(\theta\)) $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/OKState/PDE/laplace/dirichcirc2.pg b/OpenProblemLibrary/OKState/PDE/laplace/dirichcirc2.pg index 50acf3817e..493a9ac269 100644 --- a/OpenProblemLibrary/OKState/PDE/laplace/dirichcirc2.pg +++ b/OpenProblemLibrary/OKState/PDE/laplace/dirichcirc2.pg @@ -32,7 +32,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -79,7 +79,7 @@ $BR (Write theta for \(\theta\)) $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/OKState/PDE/laplace/dirichpoiss1.pg b/OpenProblemLibrary/OKState/PDE/laplace/dirichpoiss1.pg index 60e992aedc..d4ecbe1e9c 100644 --- a/OpenProblemLibrary/OKState/PDE/laplace/dirichpoiss1.pg +++ b/OpenProblemLibrary/OKState/PDE/laplace/dirichpoiss1.pg @@ -32,7 +32,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -63,7 +63,7 @@ Suppose \(u\) is a solution of $BR \( \nabla^2 u = 0 \) $BR -inside the unit circle +inside the unit circle for the boundary condition that \(u\) is equal to $a for a quarter of the circle, and $b for the remaining 3 quarters of the circle. Find \(u\) at the origin: $BR @@ -74,7 +74,7 @@ $BR Use what you know about the Poisson formula and your intuition. $BR $BR -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/OKState/PDE/wave/frequencies1.pg b/OpenProblemLibrary/OKState/PDE/wave/frequencies1.pg index 7df759b6f3..d4d2a97ea1 100644 --- a/OpenProblemLibrary/OKState/PDE/wave/frequencies1.pg +++ b/OpenProblemLibrary/OKState/PDE/wave/frequencies1.pg @@ -34,7 +34,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -64,7 +64,7 @@ Take the vibrating string satisfying $BR PDE: \( \quad u_{tt} = \alpha^2 u_{xx} , \qquad 0 < x < L , \quad t > 0 \) $BR -BC: \( \quad u(0,t) = u(L,t)= 0 \) +BC: \( \quad u(0,t) = u(L,t)= 0 \) $BR The constant \(\alpha^2 = \frac{T}{\rho} \) where \(T\) is tension and \(\rho\) is linear density of the string. @@ -83,7 +83,7 @@ the frequency \(\omega\) gets multiplied by \{ ans_rule(20) \}. $BR $BR -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/OKState/PDE/wave/planar1.pg b/OpenProblemLibrary/OKState/PDE/wave/planar1.pg index a06f3ec793..11ae75e1e9 100644 --- a/OpenProblemLibrary/OKState/PDE/wave/planar1.pg +++ b/OpenProblemLibrary/OKState/PDE/wave/planar1.pg @@ -27,7 +27,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -106,7 +106,7 @@ $BR \(u(x,y,z,t) = {} \) \{ ans_rule(40) \} $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/OKState/PDE/wave/planar2.pg b/OpenProblemLibrary/OKState/PDE/wave/planar2.pg index 210d7207ac..94576ee4bb 100644 --- a/OpenProblemLibrary/OKState/PDE/wave/planar2.pg +++ b/OpenProblemLibrary/OKState/PDE/wave/planar2.pg @@ -27,7 +27,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -83,7 +83,7 @@ solution, the constants may be somewhat different that you first think. $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/OKState/PDE/wave/solve-finite-string-dal1.pg b/OpenProblemLibrary/OKState/PDE/wave/solve-finite-string-dal1.pg index 006b997fc9..38d492ed09 100644 --- a/OpenProblemLibrary/OKState/PDE/wave/solve-finite-string-dal1.pg +++ b/OpenProblemLibrary/OKState/PDE/wave/solve-finite-string-dal1.pg @@ -33,7 +33,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -80,9 +80,9 @@ Take the problem $BR PDE: \( \quad u_{tt} = $asq u_{xx} , \qquad 0 < x < $b , \quad t > 0 \) $BR -BC: \( \quad u(0,t) = u($b,t)= 0 \) +BC: \( \quad u(0,t) = u($b,t)= 0 \) $BR -IC: \( \quad u(x,0) = x($b-x), \qquad u_t(x,0) = 0 \) +IC: \( \quad u(x,0) = x($b-x), \qquad u_t(x,0) = 0 \) $BR $BR Use the D'Alembert solution (remember to make the function odd and periodic) to find @@ -96,7 +96,7 @@ $BR \(u($bhalf,10) = {} \) \{ ans_rule(20) \} $BR $BR -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; @@ -124,7 +124,7 @@ which equals \(f(\xi)\) for \( 0 \leq \xi \leq $b \). That is, \(F(\xi) = F(\xi+2 \cdot $b)\) can be used to only consider \(\xi\) between \(-$b\) and \($b\). After this, if \(\xi \geq 0\), then \(F(\xi) = f(\xi)\), -and +and if \(\xi < 0\), then \(F(\xi) = -f(-\xi)\). The solution is \(u(x,t) = \frac{1}{2} \bigl( F(x-$a t) + F(x+$a t) \bigr)\). Therefore, diff --git a/OpenProblemLibrary/OKState/PDE/wave/solve-finite-string-simple1.pg b/OpenProblemLibrary/OKState/PDE/wave/solve-finite-string-simple1.pg index dbd08acc9d..03c2d9c90b 100644 --- a/OpenProblemLibrary/OKState/PDE/wave/solve-finite-string-simple1.pg +++ b/OpenProblemLibrary/OKState/PDE/wave/solve-finite-string-simple1.pg @@ -30,7 +30,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -62,15 +62,15 @@ Solve the problem $BR PDE: \( \quad u_{tt} = $asq u_{xx} , \qquad 0 < x < 1 , \quad t > 0 \) $BR -BC: \( \quad u(0,t) = u(1,t) = 0 \) +BC: \( \quad u(0,t) = u(1,t) = 0 \) $BR -IC: \( \quad u(x,0) = $b \sin( 2 \pi x) , \qquad u_t(x,0) = $c \sin( 3 \pi x) \) +IC: \( \quad u(x,0) = $b \sin( 2 \pi x) , \qquad u_t(x,0) = $c \sin( 3 \pi x) \) $BR $BR \(u(x,t) = {} \) \{ ans_rule(40) \} $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/OKState/PDE/wave/solve-wave-dal1.pg b/OpenProblemLibrary/OKState/PDE/wave/solve-wave-dal1.pg index cca5890ac4..cc8fbf91e8 100644 --- a/OpenProblemLibrary/OKState/PDE/wave/solve-wave-dal1.pg +++ b/OpenProblemLibrary/OKState/PDE/wave/solve-wave-dal1.pg @@ -28,7 +28,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -59,12 +59,12 @@ Solve the problem $BR PDE: \( \quad u_{tt} = $asq u_{xx} , \qquad -\infty < x < \infty , \quad t > 0 \) $BR -IC: \( \quad u(x,0) = $b e^{-x^2}, \qquad u_t(x,0) = 0 \) +IC: \( \quad u(x,0) = $b e^{-x^2}, \qquad u_t(x,0) = 0 \) $BR \(u = {} \) \{ ans_rule(40) \} $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/OKState/PDE/wave/solve-wave-dal2.pg b/OpenProblemLibrary/OKState/PDE/wave/solve-wave-dal2.pg index ff1969c403..cdfa6b788a 100644 --- a/OpenProblemLibrary/OKState/PDE/wave/solve-wave-dal2.pg +++ b/OpenProblemLibrary/OKState/PDE/wave/solve-wave-dal2.pg @@ -28,7 +28,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -64,7 +64,7 @@ $BR \(u = {} \) \{ ans_rule(40) \} $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/OKState/PDE/wave/solve-wave-dal3.pg b/OpenProblemLibrary/OKState/PDE/wave/solve-wave-dal3.pg index bae3f74650..60168865bb 100644 --- a/OpenProblemLibrary/OKState/PDE/wave/solve-wave-dal3.pg +++ b/OpenProblemLibrary/OKState/PDE/wave/solve-wave-dal3.pg @@ -28,7 +28,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -71,7 +71,7 @@ $BR \(B = {} \) \{ ans_rule(20) \} $BR $BR -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/OKState/PDE/wave/solve-wave-guess1.pg b/OpenProblemLibrary/OKState/PDE/wave/solve-wave-guess1.pg index 40c48f70d7..6809cb9d66 100644 --- a/OpenProblemLibrary/OKState/PDE/wave/solve-wave-guess1.pg +++ b/OpenProblemLibrary/OKState/PDE/wave/solve-wave-guess1.pg @@ -28,7 +28,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -75,7 +75,7 @@ $BR \(u = {} \) \{ ans_rule(40) \} $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/OKState/PDE/wave/wave-dimensionless.pg b/OpenProblemLibrary/OKState/PDE/wave/wave-dimensionless.pg index 7a09a7403e..31dde56172 100644 --- a/OpenProblemLibrary/OKState/PDE/wave/wave-dimensionless.pg +++ b/OpenProblemLibrary/OKState/PDE/wave/wave-dimensionless.pg @@ -28,7 +28,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -68,15 +68,15 @@ Transform the problem $BR PDE: \( \quad u_{tt} = $asq u_{xx} , \qquad 0 < x < $b , \quad t > 0 \) $BR -BC: \( \quad u(0,t) = $c \quad u($b,t) = $d \) +BC: \( \quad u(0,t) = $c \quad u($b,t) = $d \) $BR -IC: \( \quad u(x,0) = x^2, \quad u_t(x,0) = x^3\) +IC: \( \quad u(x,0) = x^2, \quad u_t(x,0) = x^3\) $BR into a dimensionless problem: $BR PDE: \( \quad U_{\tau\tau} = U_{\xi\xi} , \qquad 0 < \xi < 1 , \quad \tau > 0 \) $BR -BC: \( \quad U(0,\tau) = 0 \quad u(1,\tau) = 1 \) +BC: \( \quad U(0,\tau) = 0 \quad u(1,\tau) = 1 \) $BR IC: \( \quad U(\xi,0) = {} \) \{ ans_rule(40) \} $BR @@ -100,7 +100,7 @@ $BR \(\tau = {} \) \{ ans_rule(40) \} $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/OKState/PDE/wave/wavefront1.pg b/OpenProblemLibrary/OKState/PDE/wave/wavefront1.pg index 54aac64bd3..6dae590869 100644 --- a/OpenProblemLibrary/OKState/PDE/wave/wavefront1.pg +++ b/OpenProblemLibrary/OKState/PDE/wave/wavefront1.pg @@ -28,7 +28,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -81,7 +81,7 @@ nonzero. $BR \(t = {}\) \{ ans_rule(20) \} $BR -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/OSU/high_school_apcalc/dchmwk2/prob9.pg b/OpenProblemLibrary/OSU/high_school_apcalc/dchmwk2/prob9.pg index d646455dfe..7bef3ea6ce 100644 --- a/OpenProblemLibrary/OSU/high_school_apcalc/dchmwk2/prob9.pg +++ b/OpenProblemLibrary/OSU/high_school_apcalc/dchmwk2/prob9.pg @@ -24,7 +24,7 @@ loadMacros( "PGstandard.pl", "PGchoicemacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -49,7 +49,7 @@ Find the one-sided limit. \[ \lim_{x\to $a^-}\frac{x^2 + $lin x + $const}{x^2 - $a2 x + $aa} \] $BR -Answer: \{ans_rule(30)\} \{ AnswerFormatHelp("limits") \} +Answer: \{ans_rule(30)\} \{ helpLink("limits") \} END_TEXT diff --git a/OpenProblemLibrary/OSU/high_school_apcalc/dchmwk4/prob15.pg b/OpenProblemLibrary/OSU/high_school_apcalc/dchmwk4/prob15.pg index 768f6b5345..22c0701aba 100644 --- a/OpenProblemLibrary/OSU/high_school_apcalc/dchmwk4/prob15.pg +++ b/OpenProblemLibrary/OSU/high_school_apcalc/dchmwk4/prob15.pg @@ -32,7 +32,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -57,7 +57,7 @@ TEXT(beginproblem()); BEGIN_TEXT The line \(y = $m x + $bb\) is tangent to the graph of \[y = 2 x^3 + $quad x^2 + $lin x + $c\] -at the point \{ans_rule(20)\}. \{ AnswerFormatHelp("points") \} +at the point \{ans_rule(20)\}. \{ helpLink("points") \} END_TEXT ANS($p->cmp); diff --git a/OpenProblemLibrary/OSU/high_school_apcalc/dchmwk4/prob16.pg b/OpenProblemLibrary/OSU/high_school_apcalc/dchmwk4/prob16.pg index 0109eaadc3..b3cf24d625 100644 --- a/OpenProblemLibrary/OSU/high_school_apcalc/dchmwk4/prob16.pg +++ b/OpenProblemLibrary/OSU/high_school_apcalc/dchmwk4/prob16.pg @@ -33,7 +33,7 @@ loadMacros( "PGchoicemacros.pl", "PGgraders.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -54,7 +54,7 @@ BEGIN_TEXT The line \(y = $m x + $bb\) is tangent to the graph of \[y = \frac{$a}{x + $b}\] at the point \{ans_rule(10)\} -\{ AnswerFormatHelp("points") \} +\{ helpLink("points") \} END_TEXT $ans=Compute("($x0,$y0)"); diff --git a/OpenProblemLibrary/PCC/BasicAlgebra/Exponents/exponentsMultiplication55.pg b/OpenProblemLibrary/PCC/BasicAlgebra/Exponents/exponentsMultiplication55.pg index 62ee42608f..f076680278 100644 --- a/OpenProblemLibrary/PCC/BasicAlgebra/Exponents/exponentsMultiplication55.pg +++ b/OpenProblemLibrary/PCC/BasicAlgebra/Exponents/exponentsMultiplication55.pg @@ -1,9 +1,9 @@ ####################################### -### Generated from PreTeXt source -### on 2017-11-29T13:56:31-08:00 -### -### http://mathbook.pugetsound.edu -### +### Generated from PreTeXt source +### on 2017-11-29T13:56:31-08:00 +### +### http://mathbook.pugetsound.edu +### ####################################### ## DBsubject(Algebra) ## DBchapter(Algebra of real numbers and simplifying expressions) @@ -25,7 +25,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "contextLimitedPolynomial.pl", "answerHints.pl", "PCCmacros.pl", diff --git a/OpenProblemLibrary/Rochester/instructiveProblems/dickLaneExample.pg b/OpenProblemLibrary/Rochester/instructiveProblems/dickLaneExample.pg index a722efcfcd..e75c5b45cb 100644 --- a/OpenProblemLibrary/Rochester/instructiveProblems/dickLaneExample.pg +++ b/OpenProblemLibrary/Rochester/instructiveProblems/dickLaneExample.pg @@ -10,7 +10,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserVectorUtils.pl", "PGcourse.pl" ); @@ -41,9 +41,9 @@ BEGIN_TEXT If \( {\mathbf v} = $v \), then its associated unit vector $SPACE \( {\mathbf e_v } \) $SPACE is \{ ans_rule() \} - \{ AnswerFormatHelp('vector') \} + \{ helpLink('vector') \} END_TEXT - + $showHint = 3 ; #### default value is 1 BEGIN_HINT \(\displaystyle {\mathbf @@ -65,7 +65,7 @@ sub fixCorrectAnswer { -ANS( $ev -> cmp()->withPostFilter( +ANS( $ev -> cmp()->withPostFilter( fixCorrectAnswer("\left<\frac{$a}{$norm}, \frac{$b}{\sqrt{$a^2+$b^2}}\right>") ) ); @@ -73,7 +73,7 @@ ANS( $ev -> cmp()->withPostFilter( -# sub { my $ans_hash=shift; +# sub { my $ans_hash=shift; # $ans_hash->{correct_ans_latex_string}= # "\left<\frac{$a}{$norm}, \frac{$b}{\sqrt($a^2 +$b^2}\right>"; # $ans_hash; diff --git a/OpenProblemLibrary/Rochester/setAlgebra16FunctionGraphs/c1s1p2.pg b/OpenProblemLibrary/Rochester/setAlgebra16FunctionGraphs/c1s1p2.pg index d48d88ea67..d7d32a1b51 100644 --- a/OpenProblemLibrary/Rochester/setAlgebra16FunctionGraphs/c1s1p2.pg +++ b/OpenProblemLibrary/Rochester/setAlgebra16FunctionGraphs/c1s1p2.pg @@ -17,7 +17,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); diff --git a/OpenProblemLibrary/Rochester/setDerivatives0Theory/S02.09.DerivativesAsFunction.PTP01.pg b/OpenProblemLibrary/Rochester/setDerivatives0Theory/S02.09.DerivativesAsFunction.PTP01.pg index 919e4d4863..335d0775da 100644 --- a/OpenProblemLibrary/Rochester/setDerivatives0Theory/S02.09.DerivativesAsFunction.PTP01.pg +++ b/OpenProblemLibrary/Rochester/setDerivatives0Theory/S02.09.DerivativesAsFunction.PTP01.pg @@ -19,7 +19,7 @@ ## Problem1('37 38') ## KEYWORDS('calculus', 'continuity') -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", @@ -27,7 +27,7 @@ loadMacros( "PGgraphmacros.pl", "extraAnswerEvaluators.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -68,13 +68,13 @@ TEXT(image( insertGraph($graph) , height=>200, width=>200)); BEGIN_TEXT $BR $BR - + Indicate where \( f(x) \) is differentiable. You may click on the graph to make it larger. $BR$BR -Answer: \{ans_rule(40)\} \{ AnswerFormatHelp("equations") \} +Answer: \{ans_rule(40)\} \{ helpLink("equations") \} END_TEXT Context("Interval"); ANS(Compute("(-2,-1)U(-1,0)U(0,1)U(1,3)U(3,4)")->cmp) ; -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/OpenProblemLibrary/Rochester/setDerivatives1/s2_1_20_mo.pg b/OpenProblemLibrary/Rochester/setDerivatives1/s2_1_20_mo.pg index 10507685f7..0484593c7e 100644 --- a/OpenProblemLibrary/Rochester/setDerivatives1/s2_1_20_mo.pg +++ b/OpenProblemLibrary/Rochester/setDerivatives1/s2_1_20_mo.pg @@ -1,4 +1,4 @@ -## DESCRIPTION +## DESCRIPTION ## Calculus ## ENDDESCRIPTION @@ -35,7 +35,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -60,7 +60,7 @@ Context()->texStrings; BEGIN_TEXT If \( f(x) = $f \), $PAR -then \( f'( $x1 ) = \) \{ans_rule(10) \}. \{ AnswerFormatHelp("formulas") \} +then \( f'( $x1 ) = \) \{ans_rule(10) \}. \{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/Rochester/setDerivatives21LHospital/ur_dr_21_1.pg b/OpenProblemLibrary/Rochester/setDerivatives21LHospital/ur_dr_21_1.pg index 074b974dfc..85de1f7f75 100644 --- a/OpenProblemLibrary/Rochester/setDerivatives21LHospital/ur_dr_21_1.pg +++ b/OpenProblemLibrary/Rochester/setDerivatives21LHospital/ur_dr_21_1.pg @@ -28,7 +28,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -43,7 +43,7 @@ if ($c == $b) { $c=10; } BEGIN_TEXT Evaluate the limit using L'Hopital's rule. $BR \(\displaystyle \lim_{ x \rightarrow \infty } \frac{$a x^$b}{e^{$c x}} = \) -\{ans_rule(10) \}\{AnswerFormatHelp("limits")\} +\{ans_rule(10) \}\{helpLink("limits")\} END_TEXT Context("Numeric"); diff --git a/OpenProblemLibrary/Rochester/setDerivatives2Formulas/s2_2_1.pg b/OpenProblemLibrary/Rochester/setDerivatives2Formulas/s2_2_1.pg index c4cc683546..6e688c9810 100644 --- a/OpenProblemLibrary/Rochester/setDerivatives2Formulas/s2_2_1.pg +++ b/OpenProblemLibrary/Rochester/setDerivatives2Formulas/s2_2_1.pg @@ -49,7 +49,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -70,7 +70,7 @@ $df = $f->D; Context()->texStrings; BEGIN_TEXT If \( f(x) = $f \), find \( f'( x ) \). -$BR $BR +$BR $BR \(f'(x) = \) \{ans_rule(48) \} END_TEXT @@ -79,8 +79,8 @@ ANS($df->cmp); &SOLUTION(EV3(<<'EOT')); $BR -$SOL -In general the derivative of \( x^n \) is \( nx^{n-1} \). Using this (and the +$SOL +In general the derivative of \( x^n \) is \( nx^{n-1} \). Using this (and the basic sum and constant multiple rules) we find the derivative of $BR \($f \) is \( $df \).$BR $BR EOT @@ -96,7 +96,7 @@ ANS($dfx->cmp); &SOLUTION(EV3(<<'EOT')); $SOL $BR -To find the derivative we just have to evaluate \( f'( x ) \) at +To find the derivative we just have to evaluate \( f'( x ) \) at \( x = $x1 \), i.e. \( $dfx \). EOT diff --git a/OpenProblemLibrary/Rochester/setDerivatives2Formulas/ur_dr_2_5.pg b/OpenProblemLibrary/Rochester/setDerivatives2Formulas/ur_dr_2_5.pg index 20dfeb78df..6950052c05 100644 --- a/OpenProblemLibrary/Rochester/setDerivatives2Formulas/ur_dr_2_5.pg +++ b/OpenProblemLibrary/Rochester/setDerivatives2Formulas/ur_dr_2_5.pg @@ -23,7 +23,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -50,7 +50,7 @@ Then \( f'($x)= \)\{ans_rule(30)\}. $BR $BR And after simplifying \( f'(x)= \)\{ans_rule(30)\}. -END_TEXT +END_TEXT ANS($dfx->cmp); diff --git a/OpenProblemLibrary/Rochester/setDerivatives2Formulas/ur_dr_2_7.pg b/OpenProblemLibrary/Rochester/setDerivatives2Formulas/ur_dr_2_7.pg index 605a146fa7..625fe97b0a 100644 --- a/OpenProblemLibrary/Rochester/setDerivatives2Formulas/ur_dr_2_7.pg +++ b/OpenProblemLibrary/Rochester/setDerivatives2Formulas/ur_dr_2_7.pg @@ -23,7 +23,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -48,7 +48,7 @@ Then \( f'(x)= \)\{ans_rule(30)\}, $BR $BR and \( f'($x)= \)\{ans_rule(30)\}. -END_TEXT +END_TEXT ANS($df->cmp); ANS($dfx->cmp); diff --git a/OpenProblemLibrary/Rochester/setDerivatives7Log/mec12.pg b/OpenProblemLibrary/Rochester/setDerivatives7Log/mec12.pg index 7b1fb31f81..c7f9eed809 100644 --- a/OpenProblemLibrary/Rochester/setDerivatives7Log/mec12.pg +++ b/OpenProblemLibrary/Rochester/setDerivatives7Log/mec12.pg @@ -46,7 +46,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -66,21 +66,21 @@ BEGIN_TEXT Let \[ f(x) = $a^x \log_{$b} (x) \] $BR \( f'( x ) = \) \{ans_rule(40) \} -\{ AnswerFormatHelp("logarithms") \} +\{ helpLink("logarithms") \} END_TEXT ANS($funct->cmp); BEGIN_SOLUTION -Recall that \( (a^x)'=\ln(a) a^x\) and +Recall that \( (a^x)'=\ln(a) a^x\) and \( \displaystyle (\log_a(x))'=\frac{1}{\ln(a)x} \). $BR -We will also need to use the identity +We will also need to use the identity \(\displaystyle \log_a(x)=\frac{\ln(x)}{\ln(b)}\) because we can't enter \(\log_a(x)\) in WeBWorK. $BR $BR Using the product rule we have -$BR -\(\displaystyle f'(x) = \ln($a) $a^x \log_{$b}(x) + $a^x\frac{1}{\ln($b)x} = +$BR +\(\displaystyle f'(x) = \ln($a) $a^x \log_{$b}(x) + $a^x\frac{1}{\ln($b)x} = \frac{\ln($a) $a^x \ln(x)}{\ln($b)} + \frac{$a^x}{\ln($b)x} \). END_SOLUTION diff --git a/OpenProblemLibrary/Rochester/setLimitsRates1_5Graphs/ur_lr_1-5_1_mo.pg b/OpenProblemLibrary/Rochester/setLimitsRates1_5Graphs/ur_lr_1-5_1_mo.pg index feadef0383..7ad2bc3468 100644 --- a/OpenProblemLibrary/Rochester/setLimitsRates1_5Graphs/ur_lr_1-5_1_mo.pg +++ b/OpenProblemLibrary/Rochester/setLimitsRates1_5Graphs/ur_lr_1-5_1_mo.pg @@ -16,7 +16,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl", "PGgraphmacros.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -82,7 +82,7 @@ $BR Evaluate each of the following expressions: $PAR -a) \( \displaystyle \lim_{x \to -1^-} F(x) \) = \{ans_rule(4)\} \{ AnswerFormatHelp("limits") \} +a) \( \displaystyle \lim_{x \to -1^-} F(x) \) = \{ans_rule(4)\} \{ helpLink("limits") \} $PAR b) \( \displaystyle \lim_{x \to -1^+} F(x) \) = \{ans_rule(4)\} diff --git a/OpenProblemLibrary/Rochester/setLimitsRates1_5Graphs/ur_lr_1-5_3.pg b/OpenProblemLibrary/Rochester/setLimitsRates1_5Graphs/ur_lr_1-5_3.pg index 67ef3579e2..10088837cd 100644 --- a/OpenProblemLibrary/Rochester/setLimitsRates1_5Graphs/ur_lr_1-5_3.pg +++ b/OpenProblemLibrary/Rochester/setLimitsRates1_5Graphs/ur_lr_1-5_3.pg @@ -24,7 +24,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "PGchoicemacros.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGgraphmacros.pl", "PGcourse.pl" @@ -50,7 +50,7 @@ foreach my $i (1..5) { @ySlice2 = NchooseK(4,4); } while ($ySlice1[0] == $ySlice2[0] or $ySlice1[1] == $ySlice2[1] or $ySlice1[2] == $ySlice2[2] or $ySlice1[3] == $ySlice2[3]); $f1y[$i] = $ySlice2[0]; - $f2y[$i] = $ySlice2[1]; + $f2y[$i] = $ySlice2[1]; $g1y[$i] = $ySlice2[2]; $g2y[$i] = $ySlice2[3]; @ySlice1 = @ySlice2; @@ -185,7 +185,7 @@ sub rnd { $places = 0 unless defined($places); my $sign = ($x <0 ) ? -1 : 1; $x = abs($x); - + $x = int( $x*10 **(-$places) +.5) *10 **($places); $sign*$x; } diff --git a/OpenProblemLibrary/UCSB/Stewart5_2_2/Stewart5_2_2_25.pg b/OpenProblemLibrary/UCSB/Stewart5_2_2/Stewart5_2_2_25.pg index 667c04424f..03c8a3b067 100644 --- a/OpenProblemLibrary/UCSB/Stewart5_2_2/Stewart5_2_2_25.pg +++ b/OpenProblemLibrary/UCSB/Stewart5_2_2/Stewart5_2_2_25.pg @@ -18,7 +18,7 @@ loadMacros( "PGstandard.pl", "PGchoicemacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -35,13 +35,13 @@ BEGIN_TEXT Determine the limit. $BR - + \(\displaystyle \lim_{x \to 1} \frac{$a-x}{(x-1)^2}\) $PAR -Limit = \{ans_rule(15)\} \{ AnswerFormatHelp("limits") \} +Limit = \{ans_rule(15)\} \{ helpLink("limits") \} END_TEXT diff --git a/OpenProblemLibrary/UCSB/Stewart5_2_2/Stewart5_2_2_28.pg b/OpenProblemLibrary/UCSB/Stewart5_2_2/Stewart5_2_2_28.pg index c80e71857e..0a5c468b2c 100644 --- a/OpenProblemLibrary/UCSB/Stewart5_2_2/Stewart5_2_2_28.pg +++ b/OpenProblemLibrary/UCSB/Stewart5_2_2/Stewart5_2_2_28.pg @@ -18,7 +18,7 @@ loadMacros( "PGstandard.pl", "PGchoicemacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -41,7 +41,7 @@ Determine the limit. $BR $PAR -\{ans_rule(20)\} \{ AnswerFormatHelp("limits") \} +\{ans_rule(20)\} \{ helpLink("limits") \} END_TEXT diff --git a/OpenProblemLibrary/UCSB/Stewart5_2_2/Stewart5_2_2_29.pg b/OpenProblemLibrary/UCSB/Stewart5_2_2/Stewart5_2_2_29.pg index e68c4f82f3..a2a9cb28d9 100644 --- a/OpenProblemLibrary/UCSB/Stewart5_2_2/Stewart5_2_2_29.pg +++ b/OpenProblemLibrary/UCSB/Stewart5_2_2/Stewart5_2_2_29.pg @@ -18,7 +18,7 @@ loadMacros( "PGstandard.pl", "PGchoicemacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -34,14 +34,14 @@ Context()->texStrings; BEGIN_TEXT -Determine the infinite limit. $BR +Determine the infinite limit. $BR $PAR \(\displaystyle \lim_{x \to (\frac{$b}{2})^-} \sec{x}\) $PAR -\{ans_rule(20)\} \{ AnswerFormatHelp("limits") \} +\{ans_rule(20)\} \{ helpLink("limits") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/UCSB/Stewart5_2_2/Stewart5_2_2_31.pg b/OpenProblemLibrary/UCSB/Stewart5_2_2/Stewart5_2_2_31.pg index 0775971980..e1a0c9aca3 100644 --- a/OpenProblemLibrary/UCSB/Stewart5_2_2/Stewart5_2_2_31.pg +++ b/OpenProblemLibrary/UCSB/Stewart5_2_2/Stewart5_2_2_31.pg @@ -18,7 +18,7 @@ loadMacros( "PGstandard.pl", "PGchoicemacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -40,11 +40,11 @@ Determine (a) \(\displaystyle \lim_{x \to $a^-} \frac{1}{x^3-$a3}\) and (b) \(\displaystyle \lim_{x \to $a^+} \frac{1}{x^3-$a3}\). $PAR - + $PAR -(a) \{ans_rule(15)\} \{ AnswerFormatHelp("limits") \}$BR -(b) \{ans_rule(15)\} \{ AnswerFormatHelp("limits") \} +(a) \{ans_rule(15)\} \{ helpLink("limits") \}$BR +(b) \{ans_rule(15)\} \{ helpLink("limits") \} END_TEXT diff --git a/OpenProblemLibrary/UCSB/Stewart5_2_2/Stewart5_2_2_4/Stewart5_2_2_4.pg b/OpenProblemLibrary/UCSB/Stewart5_2_2/Stewart5_2_2_4/Stewart5_2_2_4.pg index bc460fa0ce..5f03bd37be 100644 --- a/OpenProblemLibrary/UCSB/Stewart5_2_2/Stewart5_2_2_4/Stewart5_2_2_4.pg +++ b/OpenProblemLibrary/UCSB/Stewart5_2_2/Stewart5_2_2_4/Stewart5_2_2_4.pg @@ -15,7 +15,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGcourse.pl" ); @@ -40,7 +40,7 @@ For the function \(f\) whose graph is given, state the value of the given quanti $PAR -(a) \(\displaystyle \lim_{x \to 0} f(x)\) \{ans_rule(10)\} \{ AnswerFormatHelp("limits") \} $BR +(a) \(\displaystyle \lim_{x \to 0} f(x)\) \{ans_rule(10)\} \{ helpLink("limits") \} $BR (b) \(\displaystyle \lim_{x \to 3^-} f(x)\) \{ans_rule(10)\} $BR (c) \(\displaystyle \lim_{x \to 3^+} f(x)\) \{ans_rule(10)\} $BR (d) \(\displaystyle \lim_{x \to 3} f(x)\) \{ans_rule(10)\} $BR diff --git a/OpenProblemLibrary/UCSB/Stewart5_2_2/Stewart5_2_2_5/Stewart5_2_2_5.pg b/OpenProblemLibrary/UCSB/Stewart5_2_2/Stewart5_2_2_5/Stewart5_2_2_5.pg index 43734e7b7c..a329bee4d6 100644 --- a/OpenProblemLibrary/UCSB/Stewart5_2_2/Stewart5_2_2_5/Stewart5_2_2_5.pg +++ b/OpenProblemLibrary/UCSB/Stewart5_2_2/Stewart5_2_2_5/Stewart5_2_2_5.pg @@ -15,7 +15,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGcourse.pl" ); @@ -39,7 +39,7 @@ For the function \(f\) whose graph is given, state the value of the given quanti $PAR -(a) \(\displaystyle \lim_{x \to 1^-} f(x)\) \{ans_rule(10)\} \{ AnswerFormatHelp("limits") \}$BR +(a) \(\displaystyle \lim_{x \to 1^-} f(x)\) \{ans_rule(10)\} \{ helpLink("limits") \}$BR (b) \(\displaystyle \lim_{x \to 1^+} f(x)\) \{ans_rule(10)\} $BR (c) \(\displaystyle \lim_{x \to 1} f(x)\) \{ans_rule(10)\} $BR (d) \(\displaystyle \lim_{x \to 5} f(x)\) \{ans_rule(10)\} $BR diff --git a/OpenProblemLibrary/UCSB/Stewart5_2_2/Stewart5_2_2_7/Stewart5_2_2_7.pg b/OpenProblemLibrary/UCSB/Stewart5_2_2/Stewart5_2_2_7/Stewart5_2_2_7.pg index df7e7b6b5c..2ea4bd92f4 100644 --- a/OpenProblemLibrary/UCSB/Stewart5_2_2/Stewart5_2_2_7/Stewart5_2_2_7.pg +++ b/OpenProblemLibrary/UCSB/Stewart5_2_2/Stewart5_2_2_7/Stewart5_2_2_7.pg @@ -15,7 +15,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGcourse.pl" ); @@ -40,7 +40,7 @@ For the function \(g\) whose graph is given, state the value of the given quanti $PAR -(a) \(\displaystyle \lim_{t \to 0^-} g(t)\) \{ans_rule(10)\} \{ AnswerFormatHelp("limits") \}$BR +(a) \(\displaystyle \lim_{t \to 0^-} g(t)\) \{ans_rule(10)\} \{ helpLink("limits") \}$BR (b) \(\displaystyle \lim_{t \to 0^+} g(t)\) \{ans_rule(10)\} $BR (c) \(\displaystyle \lim_{t \to 0} g(t)\) \{ans_rule(10)\} $BR (d) \(\displaystyle \lim_{t \to 2^-} g(t)\) \{ans_rule(10)\} $BR diff --git a/OpenProblemLibrary/UCSB/Stewart5_2_2/Stewart5_2_2_8/Stewart5_2_2_8.pg b/OpenProblemLibrary/UCSB/Stewart5_2_2/Stewart5_2_2_8/Stewart5_2_2_8.pg index c7fcb5e520..b141dda92d 100644 --- a/OpenProblemLibrary/UCSB/Stewart5_2_2/Stewart5_2_2_8/Stewart5_2_2_8.pg +++ b/OpenProblemLibrary/UCSB/Stewart5_2_2/Stewart5_2_2_8/Stewart5_2_2_8.pg @@ -18,7 +18,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "PGgraphmacros.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGcourse.pl" ); @@ -42,11 +42,11 @@ For the function \(R\) whose graph is given, state the following: $BR $PAR -(a) \(\displaystyle \lim_{x \to 2} R(x)\) \{ans_rule(10)\} \{ AnswerFormatHelp("limits") \}$BR +(a) \(\displaystyle \lim_{x \to 2} R(x)\) \{ans_rule(10)\} \{ helpLink("limits") \}$BR (b) \(\displaystyle \lim_{x \to 5} R(x)\) \{ans_rule(10)\} $BR (c) \(\displaystyle \lim_{x \to -3^-} R(x)\) \{ans_rule(10)\} $BR (d) \(\displaystyle \lim_{x \to -3^+} R(x)\) \{ans_rule(10)\} $BR -(e) The equations of the vertical asymptotes. List in increasing order below.$BR +(e) The equations of the vertical asymptotes. List in increasing order below.$BR \(x=\)\{ans_rule(10)\} $BR \(x=\)\{ans_rule(10)\} $BR \(x=\)\{ans_rule(10)\} diff --git a/OpenProblemLibrary/UCSB/Stewart5_2_2/Stewart5_2_2_9/Stewart5_2_2_9.pg b/OpenProblemLibrary/UCSB/Stewart5_2_2/Stewart5_2_2_9/Stewart5_2_2_9.pg index 075efdc99d..0eb0f6ac5e 100644 --- a/OpenProblemLibrary/UCSB/Stewart5_2_2/Stewart5_2_2_9/Stewart5_2_2_9.pg +++ b/OpenProblemLibrary/UCSB/Stewart5_2_2/Stewart5_2_2_9/Stewart5_2_2_9.pg @@ -15,7 +15,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGcourse.pl" ); @@ -38,7 +38,7 @@ For the function \(f\) whose graph is given, state the following: $BR $PAR -(a) \(\displaystyle \lim_{x \to -7} f(x)\) \{ans_rule(10)\} \{ AnswerFormatHelp("limits") \}$BR +(a) \(\displaystyle \lim_{x \to -7} f(x)\) \{ans_rule(10)\} \{ helpLink("limits") \}$BR (b) \(\displaystyle \lim_{x \to -3} f(x)\) \{ans_rule(10)\} $BR (c) \(\displaystyle \lim_{x \to 0} f(x)\) \{ans_rule(10)\} $BR (d) \(\displaystyle \lim_{x \to 6^-} f(x)\) \{ans_rule(10)\} $BR @@ -47,7 +47,7 @@ $PAR \(x=\)\{ans_rule(10)\} $BR \(x=\)\{ans_rule(10)\} $BR \(x=\)\{ans_rule(10)\} $BR -\(x=\)\{ans_rule(10)\} +\(x=\)\{ans_rule(10)\} END_TEXT diff --git a/OpenProblemLibrary/UCSB/Stewart5_2_3/Stewart5_2_3_1.pg b/OpenProblemLibrary/UCSB/Stewart5_2_3/Stewart5_2_3_1.pg index e630233345..9a577cf733 100644 --- a/OpenProblemLibrary/UCSB/Stewart5_2_3/Stewart5_2_3_1.pg +++ b/OpenProblemLibrary/UCSB/Stewart5_2_3/Stewart5_2_3_1.pg @@ -18,7 +18,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -48,22 +48,22 @@ $BR Given that \(\displaystyle \lim_{x \to a} f(x)=$a\), \(\displaystyle \lim_{x \to a} g(x)=0\), and \(\displaystyle \lim_{x \to a} h(x)=$b\), find the limits that exist. Enter DNE if the limit doesn't exist. $BR $BR -(a) \(\displaystyle \lim_{x \to a} [f(x)+h(x)]=\)\{ans_rule(10)\} -\{ AnswerFormatHelp("limits") \}$BR +(a) \(\displaystyle \lim_{x \to a} [f(x)+h(x)]=\)\{ans_rule(10)\} +\{ helpLink("limits") \}$BR (b) \(\displaystyle \lim_{x \to a} [f(x)]^2=\) \{ans_rule(10)\} -\{ AnswerFormatHelp("limits") \} $BR -(c) \(\displaystyle \lim_{x \to a} \sqrt[3]{h(x)}=\)\{ans_rule(10)\} -\{ AnswerFormatHelp("limits") \}$BR +\{ helpLink("limits") \} $BR +(c) \(\displaystyle \lim_{x \to a} \sqrt[3]{h(x)}=\)\{ans_rule(10)\} +\{ helpLink("limits") \}$BR (d) \(\displaystyle \lim_{x \to a} \frac{1}{f(x)}=\)\{ans_rule(10)\} -\{ AnswerFormatHelp("limits") \} $BR +\{ helpLink("limits") \} $BR (e) \(\displaystyle \lim_{x \to a} \frac{f(x)}{h(x)}=\)\{ans_rule(10)\} -\{ AnswerFormatHelp("limits") \} $BR +\{ helpLink("limits") \} $BR (f) \(\displaystyle \lim_{x \to a} \frac{g(x)}{f(x)}=\) \{ans_rule(10)\} -\{ AnswerFormatHelp("limits") \} $BR +\{ helpLink("limits") \} $BR (g) \(\displaystyle \lim_{x \to a} \frac{f(x)}{g(x)}=\)\{ans_rule(10)\} -\{ AnswerFormatHelp("limits") \} $BR +\{ helpLink("limits") \} $BR (h) \(\displaystyle \lim_{x \to a} \frac{2f(x)}{h(x)-f(x)}=\)\{ans_rule(10)\} -\{ AnswerFormatHelp("limits") \} +\{ helpLink("limits") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/UCSB/Stewart5_2_3/Stewart5_2_3_23.pg b/OpenProblemLibrary/UCSB/Stewart5_2_3/Stewart5_2_3_23.pg index bba1c5bbcf..53c78abef0 100644 --- a/OpenProblemLibrary/UCSB/Stewart5_2_3/Stewart5_2_3_23.pg +++ b/OpenProblemLibrary/UCSB/Stewart5_2_3/Stewart5_2_3_23.pg @@ -15,7 +15,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -28,7 +28,7 @@ $m = $a**2-$b; BEGIN_TEXT Evaluate the limit, if it exists. If not, enter DNE.$PAR -\(\displaystyle \lim_{x \to $b} \frac{\sqrt{x+$m}-$a}{x-$b} = \) \{ans_rule(10)\}\{AnswerFormatHelp("limits")\} +\(\displaystyle \lim_{x \to $b} \frac{\sqrt{x+$m}-$a}{x-$b} = \) \{ans_rule(10)\}\{helpLink("limits")\} END_TEXT Context("Numeric"); diff --git a/OpenProblemLibrary/UCSB/Stewart5_2_3/Stewart5_2_3_58.pg b/OpenProblemLibrary/UCSB/Stewart5_2_3/Stewart5_2_3_58.pg index 53d5fcb887..fad5c94e9e 100644 --- a/OpenProblemLibrary/UCSB/Stewart5_2_3/Stewart5_2_3_58.pg +++ b/OpenProblemLibrary/UCSB/Stewart5_2_3/Stewart5_2_3_58.pg @@ -16,7 +16,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -35,7 +35,7 @@ $n = $a**2 + $c; BEGIN_TEXT Evaluate:$BR -\(\displaystyle \lim_{x \to $c}\frac{\sqrt{$m-x}-$b}{\sqrt{$n-x}-$a} = \) \{ans_rule(10)\}\{AnswerFormatHelp("limits")\} +\(\displaystyle \lim_{x \to $c}\frac{\sqrt{$m-x}-$b}{\sqrt{$n-x}-$a} = \) \{ans_rule(10)\}\{helpLink("limits")\} END_TEXT $g = gcd($a,$b); diff --git a/OpenProblemLibrary/UCSB/Stewart5_2_6/Stewart5_2_6_3/Stewart5_2_6_3.pg b/OpenProblemLibrary/UCSB/Stewart5_2_6/Stewart5_2_6_3/Stewart5_2_6_3.pg index 8e2d24039c..713c46d2ea 100644 --- a/OpenProblemLibrary/UCSB/Stewart5_2_6/Stewart5_2_6_3/Stewart5_2_6_3.pg +++ b/OpenProblemLibrary/UCSB/Stewart5_2_6/Stewart5_2_6_3/Stewart5_2_6_3.pg @@ -15,7 +15,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGcourse.pl" ); @@ -34,10 +34,10 @@ $PAR For the function \(f\) whose graph is given, state the following: $PAR \(\begin{array}{lll} (a) \displaystyle\lim_{x \to 2}f(x)& -(b) \displaystyle\lim_{x \to -1^-}f(x)& +(b) \displaystyle\lim_{x \to -1^-}f(x)& (c) \displaystyle\lim_{x \to -1^+}f(x) \\ -(d) \displaystyle\lim_{x \to \infty}f(x) & -(e) \displaystyle\lim_{x \to -\infty}f(x) +(d) \displaystyle\lim_{x \to \infty}f(x) & +(e) \displaystyle\lim_{x \to -\infty}f(x) \end{array}\) $BR \((f)\) The equations of the asymptotes (in increasing order). @@ -47,7 +47,7 @@ $PAR (b) \{ans_rule(10)\} $SPACE $SPACE (c) \{ans_rule(10)\} $BR (d) \{ans_rule(10)\} $SPACE $SPACE -(e) \{ans_rule(10)\} \{ AnswerFormatHelp("limits") \}$BR +(e) \{ans_rule(10)\} \{ helpLink("limits") \}$BR (f) \(x=\ \) \{ans_rule(10)\} and \(x=\ \) \{ans_rule(10)\} $BR \(\ \ y=\ \) \{ans_rule(10)\} and \(y=\ \) \{ans_rule(10)\} $PAR diff --git a/OpenProblemLibrary/UCSB/Stewart5_2_6/Stewart5_2_6_34.pg b/OpenProblemLibrary/UCSB/Stewart5_2_6/Stewart5_2_6_34.pg index cd225b39a5..5a7f5b2086 100644 --- a/OpenProblemLibrary/UCSB/Stewart5_2_6/Stewart5_2_6_34.pg +++ b/OpenProblemLibrary/UCSB/Stewart5_2_6/Stewart5_2_6_34.pg @@ -17,7 +17,7 @@ loadMacros( "PGstandard.pl", "PGchoicemacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -36,7 +36,7 @@ Evaluate the following limit. \[\displaystyle\lim_{x \to (\pi/2)^{$b}} e^{\tan{x}}\] $PAR -Limit = \{ans_rule(20)\}\{ AnswerFormatHelp("limits") \} +Limit = \{ans_rule(20)\}\{ helpLink("limits") \} END_TEXT diff --git a/OpenProblemLibrary/UCSB/Stewart5_2_7/Stewart5_2_7_12.pg b/OpenProblemLibrary/UCSB/Stewart5_2_7/Stewart5_2_7_12.pg index 2823a0b93a..aaa11f3bc3 100644 --- a/OpenProblemLibrary/UCSB/Stewart5_2_7/Stewart5_2_7_12.pg +++ b/OpenProblemLibrary/UCSB/Stewart5_2_7/Stewart5_2_7_12.pg @@ -17,7 +17,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -45,7 +45,7 @@ BEGIN_TEXT $PAR -(a) Find the slope of the tangent line to the curve \(y=$f\) at the point where \(x=a\). +(a) Find the slope of the tangent line to the curve \(y=$f\) at the point where \(x=a\). $BR$BR diff --git a/OpenProblemLibrary/UCSB/Stewart5_2_7/Stewart5_2_7_13.pg b/OpenProblemLibrary/UCSB/Stewart5_2_7/Stewart5_2_7_13.pg index 6de85c6657..50bd9f282e 100644 --- a/OpenProblemLibrary/UCSB/Stewart5_2_7/Stewart5_2_7_13.pg +++ b/OpenProblemLibrary/UCSB/Stewart5_2_7/Stewart5_2_7_13.pg @@ -17,7 +17,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -52,7 +52,7 @@ BEGIN_TEXT (a) Find the slope of the tangent line to the curve \(y=$f\) at the point where \(x=a\). $BR$BR (b,c) Find the equations of the tangent lines at the points $BR$BR -$SPACE (b) \(($a, $ya)\) and (c) \(($b, $yb)\). +$SPACE (b) \(($a, $ya)\) and (c) \(($b, $yb)\). $BR$BR diff --git a/OpenProblemLibrary/UCSB/Stewart5_2_7/Stewart5_2_7_5.pg b/OpenProblemLibrary/UCSB/Stewart5_2_7/Stewart5_2_7_5.pg index f2bd7edf22..e748193d6b 100644 --- a/OpenProblemLibrary/UCSB/Stewart5_2_7/Stewart5_2_7_5.pg +++ b/OpenProblemLibrary/UCSB/Stewart5_2_7/Stewart5_2_7_5.pg @@ -17,7 +17,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); diff --git a/OpenProblemLibrary/UCSB/Stewart5_2_7/Stewart5_2_7_6.pg b/OpenProblemLibrary/UCSB/Stewart5_2_7/Stewart5_2_7_6.pg index 8fac390566..c694bc1c08 100644 --- a/OpenProblemLibrary/UCSB/Stewart5_2_7/Stewart5_2_7_6.pg +++ b/OpenProblemLibrary/UCSB/Stewart5_2_7/Stewart5_2_7_6.pg @@ -18,7 +18,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); diff --git a/OpenProblemLibrary/UCSB/Stewart5_2_7/Stewart5_2_7_7.pg b/OpenProblemLibrary/UCSB/Stewart5_2_7/Stewart5_2_7_7.pg index d3a2fd7f55..9e58c0f7f3 100644 --- a/OpenProblemLibrary/UCSB/Stewart5_2_7/Stewart5_2_7_7.pg +++ b/OpenProblemLibrary/UCSB/Stewart5_2_7/Stewart5_2_7_7.pg @@ -18,7 +18,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); diff --git a/OpenProblemLibrary/UCSB/Stewart5_2_8/Stewart5_2_8_14.pg b/OpenProblemLibrary/UCSB/Stewart5_2_8/Stewart5_2_8_14.pg index 9c49df844a..a0a52e4bb4 100644 --- a/OpenProblemLibrary/UCSB/Stewart5_2_8/Stewart5_2_8_14.pg +++ b/OpenProblemLibrary/UCSB/Stewart5_2_8/Stewart5_2_8_14.pg @@ -17,7 +17,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); diff --git a/OpenProblemLibrary/UCSB/Stewart5_2_8/Stewart5_2_8_9.pg b/OpenProblemLibrary/UCSB/Stewart5_2_8/Stewart5_2_8_9.pg index 8ab02055db..1ec46cea95 100644 --- a/OpenProblemLibrary/UCSB/Stewart5_2_8/Stewart5_2_8_9.pg +++ b/OpenProblemLibrary/UCSB/Stewart5_2_8/Stewart5_2_8_9.pg @@ -17,7 +17,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); diff --git a/OpenProblemLibrary/UCSB/Stewart5_3_1/Stewart5_3_1_15.pg b/OpenProblemLibrary/UCSB/Stewart5_3_1/Stewart5_3_1_15.pg index 8b4c74e287..7e30e03ca7 100644 --- a/OpenProblemLibrary/UCSB/Stewart5_3_1/Stewart5_3_1_15.pg +++ b/OpenProblemLibrary/UCSB/Stewart5_3_1/Stewart5_3_1_15.pg @@ -17,7 +17,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -41,7 +41,7 @@ Differentiate the following function: \[ \displaystyle Y(t) = $f \] -\(Y'(t)=\) \{ans_rule(20)\} \{ AnswerFormatHelp("equations") \} +\(Y'(t)=\) \{ans_rule(20)\} \{ helpLink("equations") \} END_TEXT diff --git a/OpenProblemLibrary/UCSB/Stewart5_3_1/Stewart5_3_1_23.pg b/OpenProblemLibrary/UCSB/Stewart5_3_1/Stewart5_3_1_23.pg index 275cf3ef22..837ed9b5bc 100644 --- a/OpenProblemLibrary/UCSB/Stewart5_3_1/Stewart5_3_1_23.pg +++ b/OpenProblemLibrary/UCSB/Stewart5_3_1/Stewart5_3_1_23.pg @@ -17,7 +17,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); diff --git a/OpenProblemLibrary/UCSB/Stewart5_3_1/Stewart5_3_1_24.pg b/OpenProblemLibrary/UCSB/Stewart5_3_1/Stewart5_3_1_24.pg index 9a95437561..92ab18feff 100644 --- a/OpenProblemLibrary/UCSB/Stewart5_3_1/Stewart5_3_1_24.pg +++ b/OpenProblemLibrary/UCSB/Stewart5_3_1/Stewart5_3_1_24.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); diff --git a/OpenProblemLibrary/UCSB/Stewart5_3_1/Stewart5_3_1_25.pg b/OpenProblemLibrary/UCSB/Stewart5_3_1/Stewart5_3_1_25.pg index 4a5abea589..9ab4a42cb7 100644 --- a/OpenProblemLibrary/UCSB/Stewart5_3_1/Stewart5_3_1_25.pg +++ b/OpenProblemLibrary/UCSB/Stewart5_3_1/Stewart5_3_1_25.pg @@ -17,7 +17,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); diff --git a/OpenProblemLibrary/UCSB/Stewart5_3_1/Stewart5_3_1_27.pg b/OpenProblemLibrary/UCSB/Stewart5_3_1/Stewart5_3_1_27.pg index dafb519966..363070185e 100644 --- a/OpenProblemLibrary/UCSB/Stewart5_3_1/Stewart5_3_1_27.pg +++ b/OpenProblemLibrary/UCSB/Stewart5_3_1/Stewart5_3_1_27.pg @@ -18,7 +18,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); diff --git a/OpenProblemLibrary/UCSB/Stewart5_3_1/Stewart5_3_1_28.pg b/OpenProblemLibrary/UCSB/Stewart5_3_1/Stewart5_3_1_28.pg index 852d873e13..20d5164766 100644 --- a/OpenProblemLibrary/UCSB/Stewart5_3_1/Stewart5_3_1_28.pg +++ b/OpenProblemLibrary/UCSB/Stewart5_3_1/Stewart5_3_1_28.pg @@ -17,7 +17,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); diff --git a/OpenProblemLibrary/UCSB/Stewart5_3_1/Stewart5_3_1_3.pg b/OpenProblemLibrary/UCSB/Stewart5_3_1/Stewart5_3_1_3.pg index d96a9af874..509c8e868b 100644 --- a/OpenProblemLibrary/UCSB/Stewart5_3_1/Stewart5_3_1_3.pg +++ b/OpenProblemLibrary/UCSB/Stewart5_3_1/Stewart5_3_1_3.pg @@ -16,7 +16,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); diff --git a/OpenProblemLibrary/UCSB/Stewart5_3_1/Stewart5_3_1_41.pg b/OpenProblemLibrary/UCSB/Stewart5_3_1/Stewart5_3_1_41.pg index 46b5eadb53..a7f354106b 100644 --- a/OpenProblemLibrary/UCSB/Stewart5_3_1/Stewart5_3_1_41.pg +++ b/OpenProblemLibrary/UCSB/Stewart5_3_1/Stewart5_3_1_41.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); diff --git a/OpenProblemLibrary/UCSB/Stewart5_3_1/Stewart5_3_1_45.pg b/OpenProblemLibrary/UCSB/Stewart5_3_1/Stewart5_3_1_45.pg index 12a3a45394..776d80a818 100644 --- a/OpenProblemLibrary/UCSB/Stewart5_3_1/Stewart5_3_1_45.pg +++ b/OpenProblemLibrary/UCSB/Stewart5_3_1/Stewart5_3_1_45.pg @@ -17,7 +17,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); diff --git a/OpenProblemLibrary/UCSB/Stewart5_3_1/Stewart5_3_1_46.pg b/OpenProblemLibrary/UCSB/Stewart5_3_1/Stewart5_3_1_46.pg index 8a96869b9a..04b426b8b2 100644 --- a/OpenProblemLibrary/UCSB/Stewart5_3_1/Stewart5_3_1_46.pg +++ b/OpenProblemLibrary/UCSB/Stewart5_3_1/Stewart5_3_1_46.pg @@ -17,7 +17,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -39,7 +39,7 @@ For which value of x does the graph of \(f(x)=$f\) have a horizontal tangent? $BR$BR -List these x-coordinates below. If there are multiple values, separate them with commas. +List these x-coordinates below. If there are multiple values, separate them with commas. $BR$BR \(x=\) \{ans_rule(10)\} diff --git a/OpenProblemLibrary/UCSB/Stewart5_3_1/Stewart5_3_1_47.pg b/OpenProblemLibrary/UCSB/Stewart5_3_1/Stewart5_3_1_47.pg index e294644ab7..52dc561804 100644 --- a/OpenProblemLibrary/UCSB/Stewart5_3_1/Stewart5_3_1_47.pg +++ b/OpenProblemLibrary/UCSB/Stewart5_3_1/Stewart5_3_1_47.pg @@ -18,7 +18,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserPopUp.pl", "PGcourse.pl" ); diff --git a/OpenProblemLibrary/UCSB/Stewart5_3_1/Stewart5_3_1_51.pg b/OpenProblemLibrary/UCSB/Stewart5_3_1/Stewart5_3_1_51.pg index b1717712d0..5d50176d0f 100644 --- a/OpenProblemLibrary/UCSB/Stewart5_3_1/Stewart5_3_1_51.pg +++ b/OpenProblemLibrary/UCSB/Stewart5_3_1/Stewart5_3_1_51.pg @@ -17,7 +17,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); diff --git a/OpenProblemLibrary/UCSB/Stewart5_3_1/Stewart5_3_1_52.pg b/OpenProblemLibrary/UCSB/Stewart5_3_1/Stewart5_3_1_52.pg index 7b9b5a49b1..414db56207 100644 --- a/OpenProblemLibrary/UCSB/Stewart5_3_1/Stewart5_3_1_52.pg +++ b/OpenProblemLibrary/UCSB/Stewart5_3_1/Stewart5_3_1_52.pg @@ -17,7 +17,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); diff --git a/OpenProblemLibrary/UCSB/Stewart5_3_1/Stewart5_3_1_54.pg b/OpenProblemLibrary/UCSB/Stewart5_3_1/Stewart5_3_1_54.pg index 6de3f4ed81..419129bbbe 100644 --- a/OpenProblemLibrary/UCSB/Stewart5_3_1/Stewart5_3_1_54.pg +++ b/OpenProblemLibrary/UCSB/Stewart5_3_1/Stewart5_3_1_54.pg @@ -17,7 +17,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); diff --git a/OpenProblemLibrary/UCSB/Stewart5_3_1/Stewart5_3_1_59.pg b/OpenProblemLibrary/UCSB/Stewart5_3_1/Stewart5_3_1_59.pg index ca254a3601..c92e2b33e7 100644 --- a/OpenProblemLibrary/UCSB/Stewart5_3_1/Stewart5_3_1_59.pg +++ b/OpenProblemLibrary/UCSB/Stewart5_3_1/Stewart5_3_1_59.pg @@ -17,7 +17,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); diff --git a/OpenProblemLibrary/UCSB/Stewart5_3_8/Stewart5_3_8_14.pg b/OpenProblemLibrary/UCSB/Stewart5_3_8/Stewart5_3_8_14.pg index 496e578906..1fac52234a 100644 --- a/OpenProblemLibrary/UCSB/Stewart5_3_8/Stewart5_3_8_14.pg +++ b/OpenProblemLibrary/UCSB/Stewart5_3_8/Stewart5_3_8_14.pg @@ -17,7 +17,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); diff --git a/OpenProblemLibrary/UCSB/Stewart5_4_4/Stewart5_4_4_61.pg b/OpenProblemLibrary/UCSB/Stewart5_4_4/Stewart5_4_4_61.pg index 5ae8fd4d06..8c5368be05 100644 --- a/OpenProblemLibrary/UCSB/Stewart5_4_4/Stewart5_4_4_61.pg +++ b/OpenProblemLibrary/UCSB/Stewart5_4_4/Stewart5_4_4_61.pg @@ -18,7 +18,7 @@ loadMacros( "PGstandard.pl", "PGchoicemacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -31,7 +31,7 @@ if($b==$a) {$a++}; BEGIN_TEXT Find the limit. Use l'Hospital's Rule if appropriate. $PAR -\(\lim\limits_{x\rightarrow 0} (\cos($a x))^{$b/x^2} =\) \{ans_rule(20)\}\{AnswerFormatHelp("limits")\} +\(\lim\limits_{x\rightarrow 0} (\cos($a x))^{$b/x^2} =\) \{ans_rule(20)\}\{helpLink("limits")\} END_TEXT Context("Numeric"); diff --git a/OpenProblemLibrary/UMN/calculusStewartCCC/s_2_2_3.pg b/OpenProblemLibrary/UMN/calculusStewartCCC/s_2_2_3.pg index c015d6c348..3896b576a8 100644 --- a/OpenProblemLibrary/UMN/calculusStewartCCC/s_2_2_3.pg +++ b/OpenProblemLibrary/UMN/calculusStewartCCC/s_2_2_3.pg @@ -21,7 +21,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "PGgraphmacros.pl", "MathObjects.pl", "PGcourse.pl" @@ -74,7 +74,7 @@ $BCENTER \{image(insertGraph($graph1),width=>$w,height=>$w,tex_size=>$tw)\} $ECENTER $PAR $HR -$BBOLD 1. $EBOLD \(\displaystyle \lim_{x \to 1^{-}}f(x) = \) \{ans_rule(20)\} \{ AnswerFormatHelp("limits") \} +$BBOLD 1. $EBOLD \(\displaystyle \lim_{x \to 1^{-}}f(x) = \) \{ans_rule(20)\} \{ helpLink("limits") \} $PAR $BBOLD 2. $EBOLD \(\displaystyle \lim_{x \to 1^{+}}f(x) = \) \{ans_rule(20)\} $PAR diff --git a/OpenProblemLibrary/UMN/calculusStewartCCC/s_2_2_5.pg b/OpenProblemLibrary/UMN/calculusStewartCCC/s_2_2_5.pg index 989c54528f..288e3d64b4 100644 --- a/OpenProblemLibrary/UMN/calculusStewartCCC/s_2_2_5.pg +++ b/OpenProblemLibrary/UMN/calculusStewartCCC/s_2_2_5.pg @@ -24,7 +24,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "PGgraphmacros.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGcourse.pl" ); @@ -74,7 +74,7 @@ $BCENTER \{image(insertGraph($graph1),width=>$w,height=>$w,tex_size=>$tw)\} $ECENTER $PAR $HR -$BBOLD 1. $EBOLD \(\displaystyle \lim_{x \to 2^{-}}g(x) = \) \{ans_rule(20)\}\{ AnswerFormatHelp("limits") \} +$BBOLD 1. $EBOLD \(\displaystyle \lim_{x \to 2^{-}}g(x) = \) \{ans_rule(20)\}\{ helpLink("limits") \} $PAR $BBOLD 2. $EBOLD \(\displaystyle \lim_{x \to 2^{+}}g(x) = \) \{ans_rule(20)\} $PAR diff --git a/OpenProblemLibrary/UMN/calculusStewartCCC/s_2_3_2.pg b/OpenProblemLibrary/UMN/calculusStewartCCC/s_2_3_2.pg index 4c642957b7..4cdd5a215f 100644 --- a/OpenProblemLibrary/UMN/calculusStewartCCC/s_2_3_2.pg +++ b/OpenProblemLibrary/UMN/calculusStewartCCC/s_2_3_2.pg @@ -23,7 +23,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", - "AnswerFormatHelp.pl", + "PGgraphmacros.pl", "MathObjects.pl", "PGcourse.pl" @@ -82,11 +82,11 @@ BEGIN_TEXT Use the given graphs of the function \(f\) (left, in blue) and \(g\) (right, in red) to find the following limits: $PAR $BCENTER -\{image(insertGraph($graph1),width=>$w,height=>$w,tex_size=>$tw)\} +\{image(insertGraph($graph1),width=>$w,height=>$w,tex_size=>$tw)\} \{image(insertGraph($graph2),width=>$w,height=>$w,tex_size=>$tw)\} $ECENTER $PAR $HR -$BBOLD 1. $EBOLD \(\displaystyle \lim_{x \to 1}[f(x)+g(x)] = \) \{ans_rule(20)\} \{ AnswerFormatHelp("limits") \} +$BBOLD 1. $EBOLD \(\displaystyle \lim_{x \to 1}[f(x)+g(x)] = \) \{ans_rule(20)\} \{ helpLink("limits") \} $PAR $BBOLD 2. $EBOLD \(\displaystyle \lim_{x \to 2}[f(x)+g(x)] = \) \{ans_rule(20)\} $PAR diff --git a/OpenProblemLibrary/UMN/calculusStewartCCC/s_2_5_16.pg b/OpenProblemLibrary/UMN/calculusStewartCCC/s_2_5_16.pg index 7844876617..0d2a679426 100644 --- a/OpenProblemLibrary/UMN/calculusStewartCCC/s_2_5_16.pg +++ b/OpenProblemLibrary/UMN/calculusStewartCCC/s_2_5_16.pg @@ -25,7 +25,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); ##################################################################### @@ -45,12 +45,12 @@ $ans = Compute("Infinity"); Context()->texStrings; BEGIN_TEXT -Find the following limit. +Find the following limit. \[ \lim_{x \to -$a^{-}} \frac{x+$b}{x+$a} \] -Limit: \{ans_rule(20)\} \{ AnswerFormatHelp("limits") \} +Limit: \{ans_rule(20)\} \{ helpLink("limits") \} END_TEXT diff --git a/OpenProblemLibrary/UMN/calculusStewartCCC/s_2_5_18.pg b/OpenProblemLibrary/UMN/calculusStewartCCC/s_2_5_18.pg index 1f2e6dafd1..9ff56d7ab5 100644 --- a/OpenProblemLibrary/UMN/calculusStewartCCC/s_2_5_18.pg +++ b/OpenProblemLibrary/UMN/calculusStewartCCC/s_2_5_18.pg @@ -27,7 +27,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); ##################################################################### @@ -46,11 +46,11 @@ $ans = Compute("-Infinity"); Context()->texStrings; BEGIN_TEXT -Find the following limit. +Find the following limit. \[ \lim_{x \to \frac{\pi}{$a}^{-}} \cot ($a x) \] -Limit: \{ans_rule(20)\} \{ AnswerFormatHelp("limits") \} +Limit: \{ans_rule(20)\} \{ helpLink("limits") \} END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/UMN/calculusStewartCCC/s_2_5_3.pg b/OpenProblemLibrary/UMN/calculusStewartCCC/s_2_5_3.pg index 529c3770d6..4543a82ce9 100644 --- a/OpenProblemLibrary/UMN/calculusStewartCCC/s_2_5_3.pg +++ b/OpenProblemLibrary/UMN/calculusStewartCCC/s_2_5_3.pg @@ -26,7 +26,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "PGgraphmacros.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGcourse.pl" ); @@ -80,13 +80,13 @@ plot_functions($graph1,$p1,$p2,$p3,$p4,$p5); Context()->texStrings; BEGIN_TEXT -For the function \(f\) graphed below, find the following limits: +For the function \(f\) graphed below, find the following limits: $PAR $BCENTER \{image(insertGraph($graph1),width=>$w,height=>$h,tex_size=>$tw)\} $ECENTER $PAR $HR -$BBOLD 1. $EBOLD \(\displaystyle \lim_{x \to $a7^{-}}f(x) = \) \{ans_rule(20)\}\{ AnswerFormatHelp("limits") \} +$BBOLD 1. $EBOLD \(\displaystyle \lim_{x \to $a7^{-}}f(x) = \) \{ans_rule(20)\}\{ helpLink("limits") \} $PAR $BBOLD 2. $EBOLD \(\displaystyle \lim_{x \to $a7^{+}}f(x) = \) \{ans_rule(20)\} $PAR diff --git a/OpenProblemLibrary/UMN/calculusStewartCCC/s_2_5_4.pg b/OpenProblemLibrary/UMN/calculusStewartCCC/s_2_5_4.pg index 0574aba085..9ac72c8848 100644 --- a/OpenProblemLibrary/UMN/calculusStewartCCC/s_2_5_4.pg +++ b/OpenProblemLibrary/UMN/calculusStewartCCC/s_2_5_4.pg @@ -26,7 +26,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "PGgraphmacros.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGcourse.pl" ); @@ -84,13 +84,13 @@ plot_functions($graph1,$p1,$p2,$p3,$p4,$p5,$p6); Context()->texStrings; BEGIN_TEXT -For the function \(f\) graphed below, find the following limits: +For the function \(f\) graphed below, find the following limits: $PAR $BCENTER \{image(insertGraph($graph1),width=>$w,height=>$h,tex_size=>$tw)\} $ECENTER $PAR $HR -$BBOLD 1. $EBOLD \(\displaystyle \lim_{x \to $a^{-}}f(x) = \) \{ans_rule(20)\}\{ AnswerFormatHelp("limits") \} +$BBOLD 1. $EBOLD \(\displaystyle \lim_{x \to $a^{-}}f(x) = \) \{ans_rule(20)\}\{ helpLink("limits") \} $PAR $BBOLD 2. $EBOLD \(\displaystyle \lim_{x \to $a^{+}}f(x) = \) \{ans_rule(20)\} $PAR diff --git a/OpenProblemLibrary/UMN/calculusStewartET/s_12_2_26.pg b/OpenProblemLibrary/UMN/calculusStewartET/s_12_2_26.pg index 57c47a1d7e..d08bd0050c 100644 --- a/OpenProblemLibrary/UMN/calculusStewartET/s_12_2_26.pg +++ b/OpenProblemLibrary/UMN/calculusStewartET/s_12_2_26.pg @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserVectorUtils.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); ######################################################################## @@ -57,7 +57,7 @@ $ans = Compute("$an"); Context()->texStrings; BEGIN_TEXT Find a vector \(\mathbf{a}\) that has the same direction as \( \langle -$a, $b, $a \rangle\) but has length \($c\). $PAR -Answer: \( \mathbf{a} = \) \{ ans_rule(20) \} \{ AnswerFormatHelp("vectors") \}$PAR +Answer: \( \mathbf{a} = \) \{ ans_rule(20) \} \{ helpLink("vectors") \}$PAR END_TEXT Context()->normalStrings; @@ -74,13 +74,13 @@ $c3=$c*$a; BEGIN_SOLUTION $PAR SOLUTION $PAR The given vector has length \( \left| \langle -$a, $b, $a \rangle \right| -= \sqrt{(-$a)^2+$b^2+$a^2}= \sqrt{$m2} \), so a unit vector in the direction of -\( \langle -$a, $b, $a \rangle \) is -\(\mathbf u = \frac{1}{\sqrt{$m2}}\langle -$a, $b, $a \rangle \). += \sqrt{(-$a)^2+$b^2+$a^2}= \sqrt{$m2} \), so a unit vector in the direction of +\( \langle -$a, $b, $a \rangle \) is +\(\mathbf u = \frac{1}{\sqrt{$m2}}\langle -$a, $b, $a \rangle \). $BR -A vector in the same direction but with length \( $c \) is +A vector in the same direction but with length \( $c \) is $BR -\( \displaystyle $c \mathbf u = \frac{$c}{\sqrt{$m2}} \langle -$a, $b, $a \rangle +\( \displaystyle $c \mathbf u = \frac{$c}{\sqrt{$m2}} \langle -$a, $b, $a \rangle = \left \langle \frac{$c1}{\sqrt{$m2}} , \frac{$c2}{\sqrt{$m2}}, \frac{$c3}{\sqrt{$m2}} \right \rangle \). END_SOLUTION diff --git a/OpenProblemLibrary/UVA-Stew5e/setUVA-Stew5e-C02S02-Limits/2-2-21.pg b/OpenProblemLibrary/UVA-Stew5e/setUVA-Stew5e-C02S02-Limits/2-2-21.pg index 9f43ef1d7e..0b461088e0 100644 --- a/OpenProblemLibrary/UVA-Stew5e/setUVA-Stew5e-C02S02-Limits/2-2-21.pg +++ b/OpenProblemLibrary/UVA-Stew5e/setUVA-Stew5e-C02S02-Limits/2-2-21.pg @@ -32,7 +32,7 @@ loadMacros( "PGstandard.pl", "PGchoicemacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -58,7 +58,7 @@ Evaluate $BR$BR -Limit = \{ans_rule(20)\} \{ AnswerFormatHelp("limits") \} +Limit = \{ans_rule(20)\} \{ helpLink("limits") \} $BR END_TEXT diff --git a/OpenProblemLibrary/UVA-Stew5e/setUVA-Stew5e-C02S02-Limits/2-2-22.pg b/OpenProblemLibrary/UVA-Stew5e/setUVA-Stew5e-C02S02-Limits/2-2-22.pg index 8bd5822262..ae50359951 100644 --- a/OpenProblemLibrary/UVA-Stew5e/setUVA-Stew5e-C02S02-Limits/2-2-22.pg +++ b/OpenProblemLibrary/UVA-Stew5e/setUVA-Stew5e-C02S02-Limits/2-2-22.pg @@ -32,7 +32,7 @@ loadMacros( "PGstandard.pl", "PGchoicemacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -59,7 +59,7 @@ Evaluate $BR$BR -Limit = \{ans_rule(20)\} \{ AnswerFormatHelp("limits") \} +Limit = \{ans_rule(20)\} \{ helpLink("limits") \} $BR END_TEXT diff --git a/OpenProblemLibrary/UVA-Stew5e/setUVA-Stew5e-C02S02-Limits/2-2-24.pg b/OpenProblemLibrary/UVA-Stew5e/setUVA-Stew5e-C02S02-Limits/2-2-24.pg index cf2144c5d5..5e3e9b556b 100644 --- a/OpenProblemLibrary/UVA-Stew5e/setUVA-Stew5e-C02S02-Limits/2-2-24.pg +++ b/OpenProblemLibrary/UVA-Stew5e/setUVA-Stew5e-C02S02-Limits/2-2-24.pg @@ -34,7 +34,7 @@ loadMacros( "PGstandard.pl", "PGchoicemacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -64,7 +64,7 @@ Evaluate $BR$BR -Limit = \{ans_rule(20)\} \{ AnswerFormatHelp("limits") \} +Limit = \{ans_rule(20)\} \{ helpLink("limits") \} END_TEXT diff --git a/OpenProblemLibrary/UVA-Stew5e/setUVA-Stew5e-C02S02-Limits/2-2-25.pg b/OpenProblemLibrary/UVA-Stew5e/setUVA-Stew5e-C02S02-Limits/2-2-25.pg index 8127afc673..1e900c6e98 100644 --- a/OpenProblemLibrary/UVA-Stew5e/setUVA-Stew5e-C02S02-Limits/2-2-25.pg +++ b/OpenProblemLibrary/UVA-Stew5e/setUVA-Stew5e-C02S02-Limits/2-2-25.pg @@ -33,7 +33,7 @@ loadMacros( "PGstandard.pl", "PGchoicemacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -69,7 +69,7 @@ Evaluate $BR$BR -Limit = \{ans_rule(20)\} \{ AnswerFormatHelp("limits") \} +Limit = \{ans_rule(20)\} \{ helpLink("limits") \} $BR END_TEXT diff --git a/OpenProblemLibrary/UVA-Stew5e/setUVA-Stew5e-C02S03-CalcLimits/2-3-23.pg b/OpenProblemLibrary/UVA-Stew5e/setUVA-Stew5e-C02S03-CalcLimits/2-3-23.pg index adfcbceef8..d2898aa3e8 100644 --- a/OpenProblemLibrary/UVA-Stew5e/setUVA-Stew5e-C02S03-CalcLimits/2-3-23.pg +++ b/OpenProblemLibrary/UVA-Stew5e/setUVA-Stew5e-C02S03-CalcLimits/2-3-23.pg @@ -30,7 +30,7 @@ loadMacros( "PGstandard.pl", "PGchoicemacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -45,7 +45,7 @@ $b=2*$d*2*$a; BEGIN_TEXT Evaluate the limit: \(\displaystyle \lim_{ x \rightarrow $d } \frac{x^2 - $c}{\sqrt{x} - $a} = \) \{ans_rule(25) \} -\{ AnswerFormatHelp("limits") \} +\{ helpLink("limits") \} END_TEXT Context("Numeric"); diff --git a/OpenProblemLibrary/UVA-Stew5e/setUVA-Stew5e-C02S03-CalcLimits/2-3-25.pg b/OpenProblemLibrary/UVA-Stew5e/setUVA-Stew5e-C02S03-CalcLimits/2-3-25.pg index ee6b28477a..e008597f4a 100644 --- a/OpenProblemLibrary/UVA-Stew5e/setUVA-Stew5e-C02S03-CalcLimits/2-3-25.pg +++ b/OpenProblemLibrary/UVA-Stew5e/setUVA-Stew5e-C02S03-CalcLimits/2-3-25.pg @@ -32,7 +32,7 @@ loadMacros( "PGstandard.pl", "PGchoicemacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -45,7 +45,7 @@ $a2 = $a**2; BEGIN_TEXT Evaluate the limit:$BR \( \displaystyle \lim_{ t \rightarrow 0 } \left(\frac{$a}{t \sqrt{$a2+t}}- \frac{1}{t}\right) = \) \{ans_rule(25) \} -\{ AnswerFormatHelp("limits") \} +\{ helpLink("limits") \} END_TEXT $twoa2 = 2*$a2; diff --git a/OpenProblemLibrary/UVA-Stew5e/setUVA-Stew5e-C02S07-TansVelsRates/2-7-09.pg b/OpenProblemLibrary/UVA-Stew5e/setUVA-Stew5e-C02S07-TansVelsRates/2-7-09.pg index 1c844af83e..163d08363b 100644 --- a/OpenProblemLibrary/UVA-Stew5e/setUVA-Stew5e-C02S07-TansVelsRates/2-7-09.pg +++ b/OpenProblemLibrary/UVA-Stew5e/setUVA-Stew5e-C02S07-TansVelsRates/2-7-09.pg @@ -31,7 +31,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); diff --git a/OpenProblemLibrary/UVA-Stew5e/setUVA-Stew5e-C02S08-Derivatives/2-8-13.pg b/OpenProblemLibrary/UVA-Stew5e/setUVA-Stew5e-C02S08-Derivatives/2-8-13.pg index ee3f93a220..d296c9e3d2 100644 --- a/OpenProblemLibrary/UVA-Stew5e/setUVA-Stew5e-C02S08-Derivatives/2-8-13.pg +++ b/OpenProblemLibrary/UVA-Stew5e/setUVA-Stew5e-C02S08-Derivatives/2-8-13.pg @@ -31,7 +31,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); diff --git a/OpenProblemLibrary/UVA-Stew5e/setUVA-Stew5e-C02S08-Derivatives/2-8-14.pg b/OpenProblemLibrary/UVA-Stew5e/setUVA-Stew5e-C02S08-Derivatives/2-8-14.pg index 10319228d4..4629a2a941 100644 --- a/OpenProblemLibrary/UVA-Stew5e/setUVA-Stew5e-C02S08-Derivatives/2-8-14.pg +++ b/OpenProblemLibrary/UVA-Stew5e/setUVA-Stew5e-C02S08-Derivatives/2-8-14.pg @@ -31,7 +31,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); diff --git a/OpenProblemLibrary/UVA-Stew5e/setUVA-Stew5e-C03S01-DerivPolyExps/3-1-07a.pg b/OpenProblemLibrary/UVA-Stew5e/setUVA-Stew5e-C03S01-DerivPolyExps/3-1-07a.pg index 0c8145a487..05245edd74 100644 --- a/OpenProblemLibrary/UVA-Stew5e/setUVA-Stew5e-C03S01-DerivPolyExps/3-1-07a.pg +++ b/OpenProblemLibrary/UVA-Stew5e/setUVA-Stew5e-C03S01-DerivPolyExps/3-1-07a.pg @@ -32,7 +32,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); diff --git a/OpenProblemLibrary/UVA-Stew5e/setUVA-Stew5e-C03S01-DerivPolyExps/3-1-17.pg b/OpenProblemLibrary/UVA-Stew5e/setUVA-Stew5e-C03S01-DerivPolyExps/3-1-17.pg index 2d4d13329c..ee23a55dbf 100644 --- a/OpenProblemLibrary/UVA-Stew5e/setUVA-Stew5e-C03S01-DerivPolyExps/3-1-17.pg +++ b/OpenProblemLibrary/UVA-Stew5e/setUVA-Stew5e-C03S01-DerivPolyExps/3-1-17.pg @@ -31,7 +31,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -72,10 +72,10 @@ $A3= Compute("-$c/2"); Context()->texStrings; BEGIN_SOLUTION -$PAR SOLUTION $PAR +$PAR SOLUTION $PAR We first rewrite the function in terms of powers of \(x\): \[ f(x) = $f = -$a \frac{x^2}{x^{1/2}} + $b \frac{x}{x^{1/2}} + \frac{$c}{x^{1/2}} +$a \frac{x^2}{x^{1/2}} + $b \frac{x}{x^{1/2}} + \frac{$c}{x^{1/2}} = $a x^{3/2} + $b x^{1/2} + $c x^{-1/2} \] The power rule then gives: \[ \begin{array}{rcl} f'(x) &=&\displaystyle $a \cdot \frac{3}{2} x^{3/2-1} + $b \cdot \frac{1}{2} x^{1/2-1} diff --git a/OpenProblemLibrary/UVA-Stew5e/setUVA-Stew5e-C03S01-DerivPolyExps/3-1-18.pg b/OpenProblemLibrary/UVA-Stew5e/setUVA-Stew5e-C03S01-DerivPolyExps/3-1-18.pg index 80e08952a9..b304f0f05a 100644 --- a/OpenProblemLibrary/UVA-Stew5e/setUVA-Stew5e-C03S01-DerivPolyExps/3-1-18.pg +++ b/OpenProblemLibrary/UVA-Stew5e/setUVA-Stew5e-C03S01-DerivPolyExps/3-1-18.pg @@ -31,7 +31,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); diff --git a/OpenProblemLibrary/UVA-Stew5e/setUVA-Stew5e-C03S01-DerivPolyExps/3-1-43.pg b/OpenProblemLibrary/UVA-Stew5e/setUVA-Stew5e-C03S01-DerivPolyExps/3-1-43.pg index f587ac57b4..c69f68de88 100644 --- a/OpenProblemLibrary/UVA-Stew5e/setUVA-Stew5e-C03S01-DerivPolyExps/3-1-43.pg +++ b/OpenProblemLibrary/UVA-Stew5e/setUVA-Stew5e-C03S01-DerivPolyExps/3-1-43.pg @@ -31,7 +31,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl" ); @@ -62,7 +62,7 @@ Context()->texStrings; BEGIN_TEXT Find the points on the curve \( y = $frac$pol \) -where the tangent is horizontal. List the x-values of these points. +where the tangent is horizontal. List the x-values of these points. $BR$BR diff --git a/OpenProblemLibrary/UVA-Stew5e/setUVA-Stew5e-C03S01-DerivPolyExps/3-1-44.pg b/OpenProblemLibrary/UVA-Stew5e/setUVA-Stew5e-C03S01-DerivPolyExps/3-1-44.pg index e0ab44c180..f778f86b76 100644 --- a/OpenProblemLibrary/UVA-Stew5e/setUVA-Stew5e-C03S01-DerivPolyExps/3-1-44.pg +++ b/OpenProblemLibrary/UVA-Stew5e/setUVA-Stew5e-C03S01-DerivPolyExps/3-1-44.pg @@ -33,7 +33,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -52,10 +52,10 @@ $ans = List("-1 * $a1, $b1"); Context()->texStrings; BEGIN_TEXT -Find the points on the graph of \( f(x) = $f\) -where the tangent is horizontal. +Find the points on the graph of \( f(x) = $f\) +where the tangent is horizontal. $BR$BR -List the \(x\)-values of these points. +List the \(x\)-values of these points. $BR$BR \( x \) value(s) = \{ans_rule(30) \} $BR$BR @@ -67,7 +67,7 @@ ANS($ans->cmp); $c12=2*$c1; BEGIN_SOLUTION -$PAR SOLUTION $PAR +$PAR SOLUTION $PAR Horizontal tangent occurs when the derivative is zero. We have \[f'(x) = 6 x^2 +$c12 x - $d1 = 6 (x+$a1)(x-$b1 ) \] Thus \( f'(x)=0 \) if \(x = -$a1 \) or \( x = $b1\). diff --git a/OpenProblemLibrary/UVA-Stew5e/setUVA-Stew5e-C03S01-DerivPolyExps/3-1-55.pg b/OpenProblemLibrary/UVA-Stew5e/setUVA-Stew5e-C03S01-DerivPolyExps/3-1-55.pg index b8580521a9..c42a99b542 100644 --- a/OpenProblemLibrary/UVA-Stew5e/setUVA-Stew5e-C03S01-DerivPolyExps/3-1-55.pg +++ b/OpenProblemLibrary/UVA-Stew5e/setUVA-Stew5e-C03S01-DerivPolyExps/3-1-55.pg @@ -33,7 +33,7 @@ loadMacros( "PGchoicemacros.pl", "extraAnswerEvaluators.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -63,7 +63,7 @@ $BR$BR Find the set of values of \(x\) where \( f \) is differentiable. $BR$BR -Answer \{ans_rule(25)\} \{ AnswerFormatHelp("intervals") \} +Answer \{ans_rule(25)\} \{ helpLink("intervals") \} $PAR $PAR END_TEXT diff --git a/OpenProblemLibrary/UVA-Stew5e/setUVA-Stew5e-C03S01-DerivPolyExps/3-1-56.pg b/OpenProblemLibrary/UVA-Stew5e/setUVA-Stew5e-C03S01-DerivPolyExps/3-1-56.pg index df3c18782d..cf1796a2fc 100644 --- a/OpenProblemLibrary/UVA-Stew5e/setUVA-Stew5e-C03S01-DerivPolyExps/3-1-56.pg +++ b/OpenProblemLibrary/UVA-Stew5e/setUVA-Stew5e-C03S01-DerivPolyExps/3-1-56.pg @@ -33,7 +33,7 @@ loadMacros( "PGchoicemacros.pl", "extraAnswerEvaluators.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -56,7 +56,7 @@ $BR$BR Find the set of values of \(x\) where \( f \) is differentiable. $BR$BR -Answer \{ans_rule(25)\} \{ AnswerFormatHelp("intervals") \} +Answer \{ans_rule(25)\} \{ helpLink("intervals") \} $PAR $PAR END_TEXT diff --git a/OpenProblemLibrary/UVA-Stew5e/setUVA-Stew5e-C05S03-FundThmCalc/5-3-05.pg b/OpenProblemLibrary/UVA-Stew5e/setUVA-Stew5e-C05S03-FundThmCalc/5-3-05.pg index d4810dc326..4b55714f4f 100644 --- a/OpenProblemLibrary/UVA-Stew5e/setUVA-Stew5e-C05S03-FundThmCalc/5-3-05.pg +++ b/OpenProblemLibrary/UVA-Stew5e/setUVA-Stew5e-C05S03-FundThmCalc/5-3-05.pg @@ -31,7 +31,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -46,7 +46,7 @@ Use part I of the Fundamental Theorem of Calculus to find the derivative of \[ f(x) = \int_{-$a}^{x} \sqrt{t^3+\{$a**3\}}\, dt \] $BR \( f'(x) \) = \{ans_rule( 20)\} $BR -${BBOLD}NOTE:$EBOLD Enter a function as your answer. \{AnswerFormatHelp("formulas")\} +${BBOLD}NOTE:$EBOLD Enter a function as your answer. \{helpLink("formulas")\} END_TEXT $aaa=$a**3; diff --git a/OpenProblemLibrary/UVA-Stew5e/setUVA-Stew5e-C05S03-FundThmCalc/5-3-49.pg b/OpenProblemLibrary/UVA-Stew5e/setUVA-Stew5e-C05S03-FundThmCalc/5-3-49.pg index 28fc44be0a..ad6bc89225 100644 --- a/OpenProblemLibrary/UVA-Stew5e/setUVA-Stew5e-C05S03-FundThmCalc/5-3-49.pg +++ b/OpenProblemLibrary/UVA-Stew5e/setUVA-Stew5e-C05S03-FundThmCalc/5-3-49.pg @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "PGcourse.pl", "MathObjects.pl", - "AnswerFormatHelp.pl" + "helpLink.pl" ); TEXT(beginproblem()); @@ -47,7 +47,7 @@ Find the derivative of the function: \[ y = \int_{\sqrt{x}}^{x^$p1} {\sqrt{t} \sin t^{$p2}} dt \] $BR \( \displaystyle{\frac{dy}{dx}} \) = \{ans_rule(80)\} $BR -${BBOLD}NOTE:$EBOLD Enter a function as your answer. \{AnswerFormatHelp("formulas")\} +${BBOLD}NOTE:$EBOLD Enter a function as your answer. \{helpLink("formulas")\} END_TEXT $p1p2 = $p1*$p2; diff --git a/OpenProblemLibrary/Union/setMVvectors/an12_2_17.pg b/OpenProblemLibrary/Union/setMVvectors/an12_2_17.pg index fbba13f8cf..b9cf816dd0 100644 --- a/OpenProblemLibrary/Union/setMVvectors/an12_2_17.pg +++ b/OpenProblemLibrary/Union/setMVvectors/an12_2_17.pg @@ -32,7 +32,7 @@ loadMacros( "PGunion.pl", "MathObjects.pl", "parserVectorUtils.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -65,7 +65,7 @@ $PAR $ITEM The unit vector in the same direction as \($U\) is \{ans_rule(30)\}. -\{ AnswerFormatHelp("vectors") \} +\{ helpLink("vectors") \} $ITEMSEP $ITEM diff --git a/OpenProblemLibrary/Utah/AP_Calculus_I/set2_Derivatives_and_Limits/1210s3p19.pg b/OpenProblemLibrary/Utah/AP_Calculus_I/set2_Derivatives_and_Limits/1210s3p19.pg index 3a6df23424..b989193f7e 100644 --- a/OpenProblemLibrary/Utah/AP_Calculus_I/set2_Derivatives_and_Limits/1210s3p19.pg +++ b/OpenProblemLibrary/Utah/AP_Calculus_I/set2_Derivatives_and_Limits/1210s3p19.pg @@ -23,7 +23,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -46,11 +46,11 @@ Context()->texStrings; BEGIN_TEXT Let \[f(x) = $f.\] -Then \(f'(x) = \) \{ ans_rule(20) \}. +Then \(f'(x) = \) \{ ans_rule(20) \}. -The tangent to the graph of \(f\) through the point \(($x, $y)\) -has the slope \{ ans_rule(20) \} and -\(y\)-intercept \{ ans_rule(20) \}. +The tangent to the graph of \(f\) through the point \(($x, $y)\) +has the slope \{ ans_rule(20) \} and +\(y\)-intercept \{ ans_rule(20) \}. $BR$BR It intercepts the \(x\)-axis at \(x=\) \{ ans_rule(20) \}. END_TEXT diff --git a/OpenProblemLibrary/Utah/AP_Calculus_I/set2_Derivatives_and_Limits/1210s3p20.pg b/OpenProblemLibrary/Utah/AP_Calculus_I/set2_Derivatives_and_Limits/1210s3p20.pg index f4c9985d14..ab4e6fbbc5 100644 --- a/OpenProblemLibrary/Utah/AP_Calculus_I/set2_Derivatives_and_Limits/1210s3p20.pg +++ b/OpenProblemLibrary/Utah/AP_Calculus_I/set2_Derivatives_and_Limits/1210s3p20.pg @@ -32,7 +32,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); diff --git a/OpenProblemLibrary/Utah/Calculus_I/set6_Applications_of_the_Derivative/1210s6p3.pg b/OpenProblemLibrary/Utah/Calculus_I/set6_Applications_of_the_Derivative/1210s6p3.pg index 13da297ab9..cb2bc2aa5d 100644 --- a/OpenProblemLibrary/Utah/Calculus_I/set6_Applications_of_the_Derivative/1210s6p3.pg +++ b/OpenProblemLibrary/Utah/Calculus_I/set6_Applications_of_the_Derivative/1210s6p3.pg @@ -25,7 +25,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -40,7 +40,7 @@ Context()->texStrings; BEGIN_TEXT -\(\frac{d}{d x}\left( $f \right) = \) \{&ans_rule(40)\}. \{ AnswerFormatHelp("equations") \} +\(\frac{d}{d x}\left( $f \right) = \) \{&ans_rule(40)\}. \{ helpLink("equations") \} END_TEXT diff --git a/OpenProblemLibrary/Utah/Calculus_I/set6_Applications_of_the_Derivative/1210s6p7.pg b/OpenProblemLibrary/Utah/Calculus_I/set6_Applications_of_the_Derivative/1210s6p7.pg index e782550b7b..c7e5d69823 100644 --- a/OpenProblemLibrary/Utah/Calculus_I/set6_Applications_of_the_Derivative/1210s6p7.pg +++ b/OpenProblemLibrary/Utah/Calculus_I/set6_Applications_of_the_Derivative/1210s6p7.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -48,7 +48,7 @@ For what value(s) of x does the graph of \[ f(x)=$cubic \] have a horizontal tangent? $PAR -\( x = \) \{ &ans_rule() \} \{ AnswerFormatHelp('Number') \} +\( x = \) \{ &ans_rule() \} \{ helpLink('Number') \} END_TEXT Context() -> normalStrings; diff --git a/OpenProblemLibrary/Utah/Calculus_II/set6_Indeterminate_Forms_and_Improper_Integrals/set6_pr3.pg b/OpenProblemLibrary/Utah/Calculus_II/set6_Indeterminate_Forms_and_Improper_Integrals/set6_pr3.pg index 90abade164..ad7b947380 100644 --- a/OpenProblemLibrary/Utah/Calculus_II/set6_Indeterminate_Forms_and_Improper_Integrals/set6_pr3.pg +++ b/OpenProblemLibrary/Utah/Calculus_II/set6_Indeterminate_Forms_and_Improper_Integrals/set6_pr3.pg @@ -20,7 +20,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -33,7 +33,7 @@ $ans = Compute("infinity"); BEGIN_PGML Find the following limit using l'Hopital's Rule: -[`` \lim_{x \rightarrow 0^{+}} \dfrac{\int_{0}^{x} \sqrt{t}\,\cos t\; dt}{x^{2}} = ``][_]{$ans} [@ AnswerFormatHelp('limits')@]* +[`` \lim_{x \rightarrow 0^{+}} \dfrac{\int_{0}^{x} \sqrt{t}\,\cos t\; dt}{x^{2}} = ``][_]{$ans} [@ helpLink('limits')@]* END_PGML ENDDOCUMENT(); # This should be the last executable line in the problem. diff --git a/OpenProblemLibrary/WHFreeman/Holt_linear_algebra/Chaps_1-4/4.2.19.pg b/OpenProblemLibrary/WHFreeman/Holt_linear_algebra/Chaps_1-4/4.2.19.pg index fd05714864..ffd222fcd1 100644 --- a/OpenProblemLibrary/WHFreeman/Holt_linear_algebra/Chaps_1-4/4.2.19.pg +++ b/OpenProblemLibrary/WHFreeman/Holt_linear_algebra/Chaps_1-4/4.2.19.pg @@ -34,16 +34,16 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserPopUp.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); TEXT(beginproblem()); Context("Matrix"); -#answer is any nonzero multiple of +#answer is any nonzero multiple of @a=(1,1,1); -$v=ColumnVector(@a); +$v=ColumnVector(@a); #columns of matrix $mult0 = Real(random(1,3,1)); @@ -58,7 +58,7 @@ BEGIN_TEXT A vector space \(V\) is spanned by a given set of vectors.$BR \(V\)= span of the set\($LBRACE $col0, $col1, $col2 $RBRACE\). $BR Find a basis for \(V\) by deleting linearly dependent vectors. -$PAR +$PAR The set \($LBRACE\) \{$col0->ans_array\} \($RBRACE\) is a basis for \(V\). END_TEXT diff --git a/OpenProblemLibrary/WHFreeman/Holt_linear_algebra/Chaps_1-4/4.2.23.pg b/OpenProblemLibrary/WHFreeman/Holt_linear_algebra/Chaps_1-4/4.2.23.pg index ba480caba5..efe12f0949 100644 --- a/OpenProblemLibrary/WHFreeman/Holt_linear_algebra/Chaps_1-4/4.2.23.pg +++ b/OpenProblemLibrary/WHFreeman/Holt_linear_algebra/Chaps_1-4/4.2.23.pg @@ -28,7 +28,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -41,18 +41,18 @@ $a21 = random(-5,-2,1); $v=Vector($a11, $a21); $v_col = ColumnVector($v); -$ans=ColumnVector(1,0); +$ans=ColumnVector(1,0); Context()->texStrings; BEGIN_TEXT Expand the set below to form a basis for \(\mathbb{R}^2\) by adding a vector to the set. $BR -\(\Bigg $LBRACE $v_col \Bigg $RBRACE\) +\(\Bigg $LBRACE $v_col \Bigg $RBRACE\) $BR Adding the vector \{ans_rule(10) \} to the set will make it a basis. $PAR -Click \{ AnswerFormatHelp("vectors") \} for help with entering vectors. +Click \{ helpLink("vectors") \} for help with entering vectors. END_TEXT Context()->normalStrings; @@ -65,9 +65,9 @@ ANS( $ans->cmp( return 0; } if ( $v->isParallel($stu) ){ - + } - else { + else { return 1; } } diff --git a/OpenProblemLibrary/WHFreeman/Rogawski_Calculus_Early_Transcendentals_Second_Edition/12_Vector_Geometry/12.2_Vectors_in_Three_Dimensions/12.2.11.pg b/OpenProblemLibrary/WHFreeman/Rogawski_Calculus_Early_Transcendentals_Second_Edition/12_Vector_Geometry/12.2_Vectors_in_Three_Dimensions/12.2.11.pg index a42249dc08..06958a3c43 100644 --- a/OpenProblemLibrary/WHFreeman/Rogawski_Calculus_Early_Transcendentals_Second_Edition/12_Vector_Geometry/12.2_Vectors_in_Three_Dimensions/12.2.11.pg +++ b/OpenProblemLibrary/WHFreeman/Rogawski_Calculus_Early_Transcendentals_Second_Edition/12_Vector_Geometry/12.2_Vectors_in_Three_Dimensions/12.2.11.pg @@ -19,7 +19,7 @@ loadMacros( "PGchoicemacros.pl", "Parser.pl", "freemanMacros.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -56,7 +56,7 @@ Find the point P such that \( \mathbf{v} = \overrightarrow{PQ} \) has the compon $PAR \( Q = $q \) $PAR -\( P \) = \{ans_rule()\} \{ AnswerFormatHelp("points") \}. +\( P \) = \{ans_rule()\} \{ helpLink("points") \}. END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/WHFreeman/Rogawski_Calculus_Early_Transcendentals_Second_Edition/2_Limits/2.2_Limits-_A_Numerical_and_Graphical_Approach/2.2.5.pg b/OpenProblemLibrary/WHFreeman/Rogawski_Calculus_Early_Transcendentals_Second_Edition/2_Limits/2.2_Limits-_A_Numerical_and_Graphical_Approach/2.2.5.pg index 6bf417612a..c4d906b3d2 100644 --- a/OpenProblemLibrary/WHFreeman/Rogawski_Calculus_Early_Transcendentals_Second_Edition/2_Limits/2.2_Limits-_A_Numerical_and_Graphical_Approach/2.2.5.pg +++ b/OpenProblemLibrary/WHFreeman/Rogawski_Calculus_Early_Transcendentals_Second_Edition/2_Limits/2.2_Limits-_A_Numerical_and_Graphical_Approach/2.2.5.pg @@ -18,7 +18,7 @@ loadMacros( "PGstandard.pl", "PGgraphmacros.pl", "freemanMacros.pl", - "AnswerFormatHelp.pl", + "MathObjects.pl", "PGcourse.pl" ); @@ -41,14 +41,14 @@ BEGIN_TEXT Determine \( \lim\limits_{x \to $to} f(x) \) for the function \(f(x)\) shown in the figure below $PAR -\{ image(insertGraph($graphObject), 'width'=>300,'height'=>300) \} +\{ image(insertGraph($graphObject), 'width'=>300,'height'=>300) \} $PAR -The limit as \(x \to $to\) is \{ ans_rule(5) \} \{ AnswerFormatHelp("limits") \} +The limit as \(x \to $to\) is \{ ans_rule(5) \} \{ helpLink("limits") \} END_TEXT SOLUTION(EV3(<<'END_SOLUTION')); -$BR$BBOLD Solution:$EBOLD +$BR$BBOLD Solution:$EBOLD $PAR The graph suggests that \(f(x) \to $lim\) as \(x \to $to\) END_SOLUTION diff --git a/OpenProblemLibrary/WHFreeman/Rogawski_Calculus_Early_Transcendentals_Second_Edition/3_Differentiation/3.2_The_Derivative_as_a_Function/3.2.25.pg b/OpenProblemLibrary/WHFreeman/Rogawski_Calculus_Early_Transcendentals_Second_Edition/3_Differentiation/3.2_The_Derivative_as_a_Function/3.2.25.pg index c168fd33ac..41ff9d4332 100644 --- a/OpenProblemLibrary/WHFreeman/Rogawski_Calculus_Early_Transcendentals_Second_Edition/3_Differentiation/3.2_The_Derivative_as_a_Function/3.2.25.pg +++ b/OpenProblemLibrary/WHFreeman/Rogawski_Calculus_Early_Transcendentals_Second_Edition/3_Differentiation/3.2_The_Derivative_as_a_Function/3.2.25.pg @@ -19,7 +19,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -39,7 +39,7 @@ Find the derivative of the function \( f(x)= $f\). $BR$BR -\( f'(x)= \) \{ ans_rule() \} +\( f'(x)= \) \{ ans_rule() \} END_TEXT diff --git a/OpenProblemLibrary/WHFreeman/Rogawski_Calculus_Early_Transcendentals_Second_Edition/3_Differentiation/3.2_The_Derivative_as_a_Function/3.2.52.pg b/OpenProblemLibrary/WHFreeman/Rogawski_Calculus_Early_Transcendentals_Second_Edition/3_Differentiation/3.2_The_Derivative_as_a_Function/3.2.52.pg index 81f925adb9..5c3dc06a78 100644 --- a/OpenProblemLibrary/WHFreeman/Rogawski_Calculus_Early_Transcendentals_Second_Edition/3_Differentiation/3.2_The_Derivative_as_a_Function/3.2.52.pg +++ b/OpenProblemLibrary/WHFreeman/Rogawski_Calculus_Early_Transcendentals_Second_Edition/3_Differentiation/3.2_The_Derivative_as_a_Function/3.2.52.pg @@ -16,7 +16,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); diff --git a/OpenProblemLibrary/WHFreeman/Rogawski_Calculus_Early_Transcendentals_Second_Edition/3_Differentiation/3.2_The_Derivative_as_a_Function/3.2.53.pg b/OpenProblemLibrary/WHFreeman/Rogawski_Calculus_Early_Transcendentals_Second_Edition/3_Differentiation/3.2_The_Derivative_as_a_Function/3.2.53.pg index f2abaf0900..98bea3dfc4 100644 --- a/OpenProblemLibrary/WHFreeman/Rogawski_Calculus_Early_Transcendentals_Second_Edition/3_Differentiation/3.2_The_Derivative_as_a_Function/3.2.53.pg +++ b/OpenProblemLibrary/WHFreeman/Rogawski_Calculus_Early_Transcendentals_Second_Edition/3_Differentiation/3.2_The_Derivative_as_a_Function/3.2.53.pg @@ -18,7 +18,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "freemanMacros.pl", "PGcourse.pl" ); diff --git a/OpenProblemLibrary/WHFreeman/Rogawski_Calculus_Early_Transcendentals_Second_Edition/3_Differentiation/3.2_The_Derivative_as_a_Function/3.2.7.pg b/OpenProblemLibrary/WHFreeman/Rogawski_Calculus_Early_Transcendentals_Second_Edition/3_Differentiation/3.2_The_Derivative_as_a_Function/3.2.7.pg index 72b2cbc1c7..a32855df28 100644 --- a/OpenProblemLibrary/WHFreeman/Rogawski_Calculus_Early_Transcendentals_Second_Edition/3_Differentiation/3.2_The_Derivative_as_a_Function/3.2.7.pg +++ b/OpenProblemLibrary/WHFreeman/Rogawski_Calculus_Early_Transcendentals_Second_Edition/3_Differentiation/3.2_The_Derivative_as_a_Function/3.2.7.pg @@ -3,7 +3,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "freemanMacros.pl", "PGcourse.pl" ); @@ -36,7 +36,7 @@ $derivf=Compute("4*$a**3"); BEGIN_TEXT Use the Power Rule to compute the derivative: $BR$BR -\( \frac{d}{dx}x^4\big|_{x=$a}= \) \{ ans_rule() \} +\( \frac{d}{dx}x^4\big|_{x=$a}= \) \{ ans_rule() \} END_TEXT SOLUTION(EV3(<<'END_SOLUTION')); diff --git a/OpenProblemLibrary/Westmont/EoDM3/Inquiry_3_1/iprob3_3.pg b/OpenProblemLibrary/Westmont/EoDM3/Inquiry_3_1/iprob3_3.pg index 898072d569..ec8f8d5b12 100644 --- a/OpenProblemLibrary/Westmont/EoDM3/Inquiry_3_1/iprob3_3.pg +++ b/OpenProblemLibrary/Westmont/EoDM3/Inquiry_3_1/iprob3_3.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -37,7 +37,7 @@ $answer = join(", ",@seq); $answer = Compute("$answer"); BEGIN_TEXT - The $BITALIC odd numbers $EITALIC are the numbers in the sequence \(1, 3, 5, 7, 9, \ldots\). Define the sequence of $BITALIC S-numbers $EITALIC as follows: $PAR + The $BITALIC odd numbers $EITALIC are the numbers in the sequence \(1, 3, 5, 7, 9, \ldots\). Define the sequence of $BITALIC S-numbers $EITALIC as follows: $PAR The first S-number is 1. $BR The second S-number is the sum of the first S-number and the second odd number.$BR The third S-number is the sum of the second S-number and the third odd number.$BR @@ -46,7 +46,7 @@ BEGIN_TEXT etc., \(\ldots\) $PAR Compute the first seven S-numbers. Make a note of any patterns you notice. Enter the first seven S-numbers as a comma-separated list: $PAR -First seven S-numbers = \{ans_rule(20)\} \{ AnswerFormatHelp("numbers") \} +First seven S-numbers = \{ans_rule(20)\} \{ helpLink("numbers") \} $PAR END_TEXT Context()->normalStrings; diff --git a/OpenProblemLibrary/WinonaState/StewartCalcEarlyTran7ed/Chap11Section05/SCalcET7-11-5-ex2.pg b/OpenProblemLibrary/WinonaState/StewartCalcEarlyTran7ed/Chap11Section05/SCalcET7-11-5-ex2.pg index 98f7c42bcc..3072d8406d 100644 --- a/OpenProblemLibrary/WinonaState/StewartCalcEarlyTran7ed/Chap11Section05/SCalcET7-11-5-ex2.pg +++ b/OpenProblemLibrary/WinonaState/StewartCalcEarlyTran7ed/Chap11Section05/SCalcET7-11-5-ex2.pg @@ -34,7 +34,7 @@ loadMacros( "PGstandard.pl", "parserPopUp.pl", "scaffold.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -68,9 +68,9 @@ END_TEXT ########################################### # The scaffold Scaffold::Begin( can_open => "when_previous_correct", - is_open => "correct_or_first_incorrect"); + is_open => "correct_or_first_incorrect"); -#only the active section is open, but students can open previous sections if they want. +#only the active section is open, but students can open previous sections if they want. ########################################### Section::Begin("Part 1: Divergence Test"); @@ -149,7 +149,7 @@ value=>escapeSolutionHTML(EV3P(" First use a reduction formula to get \\[\\sum_{n=1}^\\infty \\frac{(-1)^n\\sin^2(\ $a n)}{n} = \\sum_{n=1}^\\infty \\frac{(-1)^n}{2n} - \\sum_{n=1}^\\infty \\frac{(-1)^n\\cos(\ $a2 n)}{2n}.\\] The first series converges (by simple Alternating Series Test). For \\(\\sum_{n=1}^\\infty \\frac{(-1)^n\\cos(\ $a2 n)}{2n}\\) use the Abel Transformation (i.e. the series version of integration by parts) which gives \\[\\sum_{n=1}^\\infty \\left(\\frac{1}{2n}\\right)(-1)^n\\cos(\ $a2 n) = 0 - \\sum_{n=1}^\\infty \\left(\\sum_{k=1}^n(-1)^k\\cos(\ $a2 k) \\right)\\left(\\frac{1}{2(n+1)}-\\frac{1}{2n}\\right). \\] Then use Lagrange's trig identity: \\[\\displaystyle \\sum_{k=1}^n(-1)^k\\cos(\ $a2 k) = \\frac{-1}{2}+\\frac{(-1)^n \\cos(\ $a2 n + \ $a)}{2\\cos(\ $a )}.\\] -Thus \\[\\sum_{n=1}^\\infty \\frac{(-1)^n\\cos(\ $a2 n)}{2n} = \\sum_{n=1}^\\infty \\left(\\frac{-1}{2}+\\frac{(-1)^n \\cos(\ $a2 n + \ $a)}{2\\cos(\ $a )} \\right) \\left(\\frac{1}{2(n^2+n)}\\right) = -\\sum_{n=1}^\\infty \\frac{1}{4(n^2+n)}+\\sum_{n=1}^\\infty \\frac{(-1)^n \\cos(\ $a2 n + \ $a)}{4\\cos(\ $a )(n^2+n)}\\] and both of these converge absolutely by comparison to \\(\\sum \\frac{1}{n^2}\\). Hence the original alternating series converges. +Thus \\[\\sum_{n=1}^\\infty \\frac{(-1)^n\\cos(\ $a2 n)}{2n} = \\sum_{n=1}^\\infty \\left(\\frac{-1}{2}+\\frac{(-1)^n \\cos(\ $a2 n + \ $a)}{2\\cos(\ $a )} \\right) \\left(\\frac{1}{2(n^2+n)}\\right) = -\\sum_{n=1}^\\infty \\frac{1}{4(n^2+n)}+\\sum_{n=1}^\\infty \\frac{(-1)^n \\cos(\ $a2 n + \ $a)}{4\\cos(\ $a )(n^2+n)}\\] and both of these converge absolutely by comparison to \\(\\sum \\frac{1}{n^2}\\). Hence the original alternating series converges. Furthermore, computational software gives \\(\\sum_{n=1}^\\infty \\frac{(-1)^n\\sin^2(\ $a n)}{n} = \\frac{1}{2} \\ln |\\cos (\ $a)|\\). ")), base64=>1); diff --git a/OpenProblemLibrary/ma112DB/set8/sw5_2_27.pg b/OpenProblemLibrary/ma112DB/set8/sw5_2_27.pg index 22213bccc5..a4f80b7005 100644 --- a/OpenProblemLibrary/ma112DB/set8/sw5_2_27.pg +++ b/OpenProblemLibrary/ma112DB/set8/sw5_2_27.pg @@ -32,7 +32,7 @@ loadMacros( "MathObjects.pl", "PGcourse.pl", "PGML.pl", -"AnswerFormatHelp.pl", + ); TEXT(beginproblem()); @@ -64,7 +64,7 @@ Use synthetic division and the Remainder Theorem to evaluate [:P(c):], where >>[``P(x)=[$p], \quad c=2``]<< ----- -* The quotient is [_________________________]{$ans1} [@ AnswerFormatHelp("formulas") @]* +* The quotient is [_________________________]{$ans1} [@ helpLink("formulas") @]* * The remainder is [__________]{$ans2} diff --git a/OpenProblemLibrary/ma112DB/set8/sw5_2_31.pg b/OpenProblemLibrary/ma112DB/set8/sw5_2_31.pg index 6504977078..3410d751e3 100644 --- a/OpenProblemLibrary/ma112DB/set8/sw5_2_31.pg +++ b/OpenProblemLibrary/ma112DB/set8/sw5_2_31.pg @@ -31,7 +31,7 @@ loadMacros( "MathObjects.pl", "PGcourse.pl", "PGML.pl", - "AnswerFormatHelp.pl", + ); TEXT(beginproblem()); @@ -66,7 +66,7 @@ Use synthetic division and the Remainder Theorem to evaluate [:P(c):], where >>[``P(x)=[$p], \quad c=-7``]<< ----- -* The quotient is [_________________________]{$ans1} [@ AnswerFormatHelp("formulas") @]* +* The quotient is [_________________________]{$ans1} [@ helpLink("formulas") @]* * The remainder is [__________]{$ans2} diff --git a/OpenProblemLibrary/ma122DB/set2/s2_7_7.pg b/OpenProblemLibrary/ma122DB/set2/s2_7_7.pg index 40b5304a24..ac79db210b 100644 --- a/OpenProblemLibrary/ma122DB/set2/s2_7_7.pg +++ b/OpenProblemLibrary/ma122DB/set2/s2_7_7.pg @@ -31,7 +31,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); diff --git a/OpenProblemLibrary/ma122DB/set3/s2_8_13.pg b/OpenProblemLibrary/ma122DB/set3/s2_8_13.pg index 04fd7bc04e..6d03a5aa83 100644 --- a/OpenProblemLibrary/ma122DB/set3/s2_8_13.pg +++ b/OpenProblemLibrary/ma122DB/set3/s2_8_13.pg @@ -24,7 +24,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -55,13 +55,13 @@ ANS($deriv1->cmp); $a12=2*$a1; BEGIN_SOLUTION -$PAR SOLUTION $PAR +$PAR SOLUTION $PAR \[ \begin{array}{rcl}f'(a)& =& \displaystyle \lim_{h \to 0 }\frac{f (a+h) - f(a)}{h} \\ & =& \displaystyle \lim_{h \to 0 }\frac{ \left( $a1(a+h)^2 - $b1 (a +h) - $c1 \right) - \left( $a1 a^2 - $b1 a - $c1 \right)}{h} \\ & =& \displaystyle \lim_{h \to 0 }\frac{ $a1 a^2 +$a12 a h+$a1 h^2 - $b1 a - $b1 h - $c1 - $a1 a^2 + $b1 a + $c1 }{h} \\ & =& \displaystyle \lim_{h \to 0 }\frac{ $a12 a h+$a1 h^2 - $b1 h }{h} \\ & =& \displaystyle \lim_{h \to 0 }\left( $a12 a +$a1 h - $b1 \right) -\\ & =& \displaystyle $a12 a - $b1 +\\ & =& \displaystyle $a12 a - $b1 \end{array} diff --git a/OpenProblemLibrary/ma122DB/set3/s2_8_7.pg b/OpenProblemLibrary/ma122DB/set3/s2_8_7.pg index 3d96b0ae07..eb58d9015b 100644 --- a/OpenProblemLibrary/ma122DB/set3/s2_8_7.pg +++ b/OpenProblemLibrary/ma122DB/set3/s2_8_7.pg @@ -30,7 +30,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); diff --git a/OpenProblemLibrary/ma122DB/set3/s3_1_17.pg b/OpenProblemLibrary/ma122DB/set3/s3_1_17.pg index 831b90c97e..4bcf8fb393 100644 --- a/OpenProblemLibrary/ma122DB/set3/s3_1_17.pg +++ b/OpenProblemLibrary/ma122DB/set3/s3_1_17.pg @@ -27,7 +27,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); diff --git a/OpenProblemLibrary/ma122DB/set3/s3_1_27.pg b/OpenProblemLibrary/ma122DB/set3/s3_1_27.pg index 9109fecf2b..c5bbc9a463 100644 --- a/OpenProblemLibrary/ma122DB/set3/s3_1_27.pg +++ b/OpenProblemLibrary/ma122DB/set3/s3_1_27.pg @@ -26,7 +26,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); diff --git a/OpenProblemLibrary/ma122DB/set3/s3_1_39.pg b/OpenProblemLibrary/ma122DB/set3/s3_1_39.pg index 86fdb2d95f..b771a516b8 100644 --- a/OpenProblemLibrary/ma122DB/set3/s3_1_39.pg +++ b/OpenProblemLibrary/ma122DB/set3/s3_1_39.pg @@ -28,7 +28,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -49,7 +49,7 @@ until( $d != $x1 && $c !=0 && $d != 0) { $df = $f->D; $d = $df->eval(x=>$x1); } - + $x2 = Compute("-($b+$c*$x1 +1/$d)/$c"); # the other root $y2 = $f->eval(x=>$x2); @@ -65,11 +65,11 @@ At what point does the normal to \( y= $f \) at \( ($x1, $y1 ) \) intersect the $BR$BR -Answer: \{ans_rule(20) \} +Answer: \{ans_rule(20) \} $BR$BR -$BBOLD Note: $EBOLD You should enter a cartesian coordinate. +$BBOLD Note: $EBOLD You should enter a cartesian coordinate. $BR$BR The normal line is perpendicular to the tangent line. If two lines are diff --git a/OpenProblemLibrary/ma122DB/set3/s3_1_43.pg b/OpenProblemLibrary/ma122DB/set3/s3_1_43.pg index 673ab328c8..79559603cc 100644 --- a/OpenProblemLibrary/ma122DB/set3/s3_1_43.pg +++ b/OpenProblemLibrary/ma122DB/set3/s3_1_43.pg @@ -37,7 +37,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -53,7 +53,7 @@ Context()->flags->set( ); $r1= random(-4,4,1); -do { $r2= random(-4,4,1);} until ($r2 != $r1); +do { $r2= random(-4,4,1);} until ($r2 != $r1); $d = random(1,5,1); $c = random(-4,4,1); @a=(); diff --git a/OpenProblemLibrary/ma122DB/set3/s3_1_5.pg b/OpenProblemLibrary/ma122DB/set3/s3_1_5.pg index a457628a62..418b3ad978 100644 --- a/OpenProblemLibrary/ma122DB/set3/s3_1_5.pg +++ b/OpenProblemLibrary/ma122DB/set3/s3_1_5.pg @@ -36,7 +36,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -58,7 +58,7 @@ $dfx = $df->eval(x=>$x1); Context()->texStrings; BEGIN_TEXT Let \( f(x) = $f \), find \( f'( x ) \). -$BR$BR +$BR$BR Answer: \{ans_rule(50) \} @@ -66,7 +66,7 @@ $BR$BR Find \( f'( $x1 ) \). -$BR$BR +$BR$BR Answer: \{ans_rule(48) \} END_TEXT diff --git a/OpenProblemLibrary/maCalcDB/setAlgebra13Inequalities/Inequality.pg b/OpenProblemLibrary/maCalcDB/setAlgebra13Inequalities/Inequality.pg index 91462d33d2..54fd33a83f 100644 --- a/OpenProblemLibrary/maCalcDB/setAlgebra13Inequalities/Inequality.pg +++ b/OpenProblemLibrary/maCalcDB/setAlgebra13Inequalities/Inequality.pg @@ -19,7 +19,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -34,9 +34,9 @@ $c = random($b+1,$b**2,1); BEGIN_TEXT Solve the inequality \[\frac{(x-$a)^4 (x-$b)^{13}}{x-$c}\geq 0\] -Give your answer in interval notation. +Give your answer in interval notation. $BR -\(x \in \) \{ans_rule(20)\} \{AnswerFormatHelp("interval")\} +\(x \in \) \{ans_rule(20)\} \{helpLink("interval")\} END_TEXT $ans1=Compute("(-inf,$b] U ($c,inf)"); diff --git a/OpenProblemLibrary/maCalcDB/setDerivatives2Formulas/ur_dr_2_3.pg b/OpenProblemLibrary/maCalcDB/setDerivatives2Formulas/ur_dr_2_3.pg index 52b299eb22..35dbd174ae 100644 --- a/OpenProblemLibrary/maCalcDB/setDerivatives2Formulas/ur_dr_2_3.pg +++ b/OpenProblemLibrary/maCalcDB/setDerivatives2Formulas/ur_dr_2_3.pg @@ -20,7 +20,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -38,11 +38,11 @@ BEGIN_TEXT $BR Let \(f(x) = $a \). $BR $BR -Then \( f'($x)= \) \{ans_rule(30)\}. \{ AnswerFormatHelp("formulas") \} +Then \( f'($x)= \) \{ans_rule(30)\}. \{ helpLink("formulas") \} $BR $BR -And after simplifying \( f'(x)= \) \{ans_rule(30)\}. \{ AnswerFormatHelp("formulas") \} +And after simplifying \( f'(x)= \) \{ans_rule(30)\}. \{ helpLink("formulas") \} $BR -END_TEXT +END_TEXT ANS($ans->cmp); ANS($ans->cmp); diff --git a/OpenProblemLibrary/maCalcDB/setDerivatives2Formulas/ur_dr_2_4.pg b/OpenProblemLibrary/maCalcDB/setDerivatives2Formulas/ur_dr_2_4.pg index a591978ccf..e237a57fa6 100644 --- a/OpenProblemLibrary/maCalcDB/setDerivatives2Formulas/ur_dr_2_4.pg +++ b/OpenProblemLibrary/maCalcDB/setDerivatives2Formulas/ur_dr_2_4.pg @@ -20,7 +20,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -42,8 +42,8 @@ Let \(f(x) = -$a x + $b \). $BR$BR Then \( f'($x)= \)\{ans_rule(30)\}. $BR$BR -And after simplifying \( f'(x)= \)\{ans_rule(30)\}. -END_TEXT +And after simplifying \( f'(x)= \)\{ans_rule(30)\}. +END_TEXT ANS($dfx->cmp); ANS($df->cmp); diff --git a/OpenProblemLibrary/maCalcDB/setLimitsRates3Infinite/ur_lr_3_16_mo.pg b/OpenProblemLibrary/maCalcDB/setLimitsRates3Infinite/ur_lr_3_16_mo.pg index a040a31453..1c6f22812e 100644 --- a/OpenProblemLibrary/maCalcDB/setLimitsRates3Infinite/ur_lr_3_16_mo.pg +++ b/OpenProblemLibrary/maCalcDB/setLimitsRates3Infinite/ur_lr_3_16_mo.pg @@ -26,7 +26,7 @@ loadMacros( "PGstandard.pl", "PGchoicemacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "PGcourse.pl" ); @@ -67,23 +67,23 @@ $sl = 2;# = random(0,3,1); # choose one of the 4 questions Context()->texStrings; BEGIN_TEXT $BR -A function is said to have a $BBOLD vertical asymptote $EBOLD +A function is said to have a $BBOLD vertical asymptote $EBOLD wherever the limit on the left or right (or both) is either positive or negative infinity. $BR -For example, the function \( \displaystyle{f(x)=$questions[$sl]} \) has a +For example, the function \( \displaystyle{f(x)=$questions[$sl]} \) has a vertical asymptote at \(x=$xval[$sl]\). $HR Find each of the following limits. $PAR \( \displaystyle{ - \lim_{x\to $xval[$sl]^-}$questions[$sl]= }\)\{ans_rule(20)\} \{ AnswerFormatHelp("limits") \} + \lim_{x\to $xval[$sl]^-}$questions[$sl]= }\)\{ans_rule(20)\} \{ helpLink("limits") \} $PAR \( \displaystyle{ - \lim_{x\to $xval[$sl]^+}$questions[$sl]=}\)\{ans_rule(20)\} \{ AnswerFormatHelp("limits") \} + \lim_{x\to $xval[$sl]^+}$questions[$sl]=}\)\{ans_rule(20)\} \{ helpLink("limits") \} $PAR \( \displaystyle{ - \lim_{x\to $xval[$sl]}$questions[$sl]=}\) \{ans_rule(20)\} \{ AnswerFormatHelp("limits") \} + \lim_{x\to $xval[$sl]}$questions[$sl]=}\) \{ans_rule(20)\} \{ helpLink("limits") \} $PAR END_TEXT Context()->normalStrings; @@ -96,7 +96,7 @@ Context()->normalStrings; # ANS($leftans[$sl]->cmp, $rtans[$sl]->cmp, $ans[$sl]->cmp ); - + ; diff --git a/OpenProblemLibrary/org.sparta/Combining_Functions/AlgofRelations_prb1.pg b/OpenProblemLibrary/org.sparta/Combining_Functions/AlgofRelations_prb1.pg index 32496983e9..185c15ea6a 100644 --- a/OpenProblemLibrary/org.sparta/Combining_Functions/AlgofRelations_prb1.pg +++ b/OpenProblemLibrary/org.sparta/Combining_Functions/AlgofRelations_prb1.pg @@ -1,5 +1,5 @@ ##DESCRIPTION -## Algebra problem: Finding domain when combining functions +## Algebra problem: Finding domain when combining functions ##ENDDESCRIPTION @@ -16,13 +16,13 @@ ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "unionTables.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -95,11 +95,11 @@ if ($a > $b){ Context()->texStrings; BEGIN_TEXT -Given the functions, \( \displaystyle f(x) = \frac{x-$a}{x-$b} \) and \( \displaystyle g(x) = \sqrt{x-$c} \), find the following domains. Use interval notation. \{ AnswerFormatHelp("intervals") \} +Given the functions, \( \displaystyle f(x) = \frac{x-$a}{x-$b} \) and \( \displaystyle g(x) = \sqrt{x-$c} \), find the following domains. Use interval notation. \{ helpLink("intervals") \} $BR $PAR $BR -\{ +\{ BeginTable(border=>1, tex_border=>"12pt", spacing=>12, padding=>4). AlignedRow(["Domain of \( \displaystyle f \)", ans_rule(20)], align=>Center, separation=>0). AlignedRow(["Domain of \( \displaystyle g \)", ans_rule(20)], align=>Center, separation=>0). @@ -129,4 +129,4 @@ ANS($domain_f->cmp, $domain_gof->cmp, ); -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/Pending/BentleyUniversity/MathematicsOfComputerGraphics/setMoCG-Ch5/5-1-ConvertToHomogeneous.pg b/Pending/BentleyUniversity/MathematicsOfComputerGraphics/setMoCG-Ch5/5-1-ConvertToHomogeneous.pg index 3c79d8acc3..72e86298a9 100755 --- a/Pending/BentleyUniversity/MathematicsOfComputerGraphics/setMoCG-Ch5/5-1-ConvertToHomogeneous.pg +++ b/Pending/BentleyUniversity/MathematicsOfComputerGraphics/setMoCG-Ch5/5-1-ConvertToHomogeneous.pg @@ -21,7 +21,7 @@ loadMacros( "MathObjects.pl", "PGML.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + ); Context("Matrix"); @@ -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 ] @@ -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 diff --git a/Pending/CUNY/CityTech/Precalculus/setDifference_Quotient/intro-diff-quot.pg b/Pending/CUNY/CityTech/Precalculus/setDifference_Quotient/intro-diff-quot.pg index 2e32c04c64..22e82d5aff 100644 --- a/Pending/CUNY/CityTech/Precalculus/setDifference_Quotient/intro-diff-quot.pg +++ b/Pending/CUNY/CityTech/Precalculus/setDifference_Quotient/intro-diff-quot.pg @@ -1,5 +1,5 @@ ##DESCRIPTION -## +## ##ENDDESCRIPTION ##KEYWORDS() @@ -15,14 +15,14 @@ ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", # Standard macros for PG language "MathObjects.pl", "PGML.pl", "contextLimitedPolynomial.pl", - "AnswerFormatHelp.pl", + "niceTables.pl" ); @@ -84,7 +84,7 @@ row( "\(\color{red}{\square}\)", "\(f(\color{red}{\square})= 3 \color{red}{(\squ row( "\(\color{red}{\star}\)", "\(f(\color{red}{\star})= 3 \color{red}{(\star)} - 4\)" ,"\(3\star-4\)"). row( "\(\color{red}{a}\)", "\(f(\color{red}{a})= 3 \color{red}{(a)} - 4 \)","\(\color{green}{3a-4}\)" ). row( "\(\color{red}{a+h}\)", "\(\quad f(\color{red}{a+h})= 3 \color{red}{(a+h)} - 4 \quad\)","\(\quad \color{blue}{3a+3h-4}\quad\)" ). -endtable().$ECENTER; +endtable().$ECENTER; @@ -95,11 +95,11 @@ endtable().$ECENTER; # BEGIN_PGML - - + + >> ### The Difference Quotient of a Function ### << -Given a function [`f(x)`], we know how to evaluate an _output_ for whatever _input_ we are given. The input can be numerical and in this case it must be in the domain. But it can be also other things like [`\square`] (for practice), [`a`] and [`a+b`] (for reasons like the one we will see soon). In either case, in order to find the output, we need to substitute _each_ [`x`] in the definition of the function by the input, and then simplify the result algebraically, if possible. +Given a function [`f(x)`], we know how to evaluate an _output_ for whatever _input_ we are given. The input can be numerical and in this case it must be in the domain. But it can be also other things like [`\square`] (for practice), [`a`] and [`a+b`] (for reasons like the one we will see soon). In either case, in order to find the output, we need to substitute _each_ [`x`] in the definition of the function by the input, and then simplify the result algebraically, if possible. It is also important to understand the notation. When you see [`f(9)=5`], it means that: @@ -107,7 +107,7 @@ It is also important to understand the notation. When you see [`f(9)=5`], it mea * the input is [`9`], * the output is denoted by [`f(9)`], and it is [`5`]. -If you have [`p(a+b) = a^2+b`], then +If you have [`p(a+b) = a^2+b`], then * the function is [`p(x)`], * the input is [`a+b`], @@ -134,7 +134,7 @@ Suppose that the function [`f(x)`] is defined by [`f(x) = 3x-4`]. The followin allcellcss=>'padding: 1pt;' ) @]*** -The **difference quotient** of a function [`f(x)`] is defined by +The **difference quotient** of a function [`f(x)`] is defined by >>[`\dfrac{f(a+h)-f(a)}{h}`]<< @@ -203,24 +203,24 @@ END_PGML_HINT BEGIN_PGML_SOLUTION -a. [`f(x)=[$f] \quad\underset{x\rightarrow a}\longrightarrow\quad f(a) = [$fa]`] +a. [`f(x)=[$f] \quad\underset{x\rightarrow a}\longrightarrow\quad f(a) = [$fa]`] -b. [`f(x)=[$f] \quad\underset{x\rightarrow a+h}\longrightarrow\quad f(a+h) = [$fB] (a+h) + [$fC] \quad\longrightarrow\quad [$fah] `] +b. [`f(x)=[$f] \quad\underset{x\rightarrow a+h}\longrightarrow\quad f(a+h) = [$fB] (a+h) + [$fC] \quad\longrightarrow\quad [$fah] `] So [`f(a+h) = [$fah] `]. - -c. [`f(a+h)-f(a) \quad\longrightarrow\quad ([$fah])-([$fa]) \quad\longrightarrow\quad [$fah] - [$fB] a - [$fC] \quad\longrightarrow\quad [$fdqNumer] `] - + +c. [`f(a+h)-f(a) \quad\longrightarrow\quad ([$fah])-([$fa]) \quad\longrightarrow\quad [$fah] - [$fB] a - [$fC] \quad\longrightarrow\quad [$fdqNumer] `] + So [`f(a+h)-f(a) = [$fdqNumer] `]. - -d. [`\displaystyle \frac{f(a+h) - f(a)}{h} \quad\longrightarrow\quad + +d. [`\displaystyle \frac{f(a+h) - f(a)}{h} \quad\longrightarrow\quad \frac{[$fdqNumer]}{h} \quad\longrightarrow\quad [$fdq] `] So [`\dfrac{f(a+h) - f(a)}{h} = [$fdq] `]. - + END_PGML_SOLUTION -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/Pending/NAU/setCalcIII/Jacobian4.pg b/Pending/NAU/setCalcIII/Jacobian4.pg index 2f5c2dadc4..9de07d91d5 100644 --- a/Pending/NAU/setCalcIII/Jacobian4.pg +++ b/Pending/NAU/setCalcIII/Jacobian4.pg @@ -16,12 +16,12 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGchoicemacros.pl", "PGcourse.pl" ); $showPartialCorrectAnswers = 1; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Matrix'); # Context()->variables->add(x => ['Real']); @@ -42,7 +42,7 @@ Context()->texStrings; BEGIN_TEXT Find the derivative of \( f:\mathbb{R}^2\to\mathbb{R}\) defined by \( f(x,y)=$a x^3 y \). The derivative \( f':\mathbb{R}^2\to\mathbb{R}^{1\times 2}\) is defined by $BR -\( f'(x,y) = \) +\( f'(x,y) = \) \{ $Df->ans_array(10)\} END_TEXT diff --git a/Pending/NAU/setCalcIII/Jacobian5.pg b/Pending/NAU/setCalcIII/Jacobian5.pg index 23455d6030..f29a4cf9cc 100644 --- a/Pending/NAU/setCalcIII/Jacobian5.pg +++ b/Pending/NAU/setCalcIII/Jacobian5.pg @@ -16,12 +16,12 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGchoicemacros.pl", "PGcourse.pl" ); $showPartialCorrectAnswers = 1; -TEXT(beginproblem()); +TEXT(beginproblem()); Context('Matrix'); Context()->variables->add(t => ['Real']); @@ -45,7 +45,7 @@ Context()->texStrings; BEGIN_TEXT Find the derivative of \( f:\mathbb{R}\to\mathbb{R}^2\) defined by \( f(t)=($a t^2,\sin($b t) \). The derivative \( f':\mathbb{R}\to\mathbb{R}^{2\times 1}\) is defined by $BR -\( f'(x,y) = \) +\( f'(x,y) = \) \{ $Df->ans_array(10)\} END_TEXT diff --git a/Pending/NAU/setLinearAlgebra/coordinatesZeroMagix.pg b/Pending/NAU/setLinearAlgebra/coordinatesZeroMagix.pg index 920a842ff7..8bd3b07f7c 100644 --- a/Pending/NAU/setLinearAlgebra/coordinatesZeroMagix.pg +++ b/Pending/NAU/setLinearAlgebra/coordinatesZeroMagix.pg @@ -18,13 +18,13 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "MatrixReduce.pl", "rank.pl", "PGcourse.pl" ); $showPartialCorrectAnswers = 1; -TEXT(beginproblem()); +TEXT(beginproblem()); Context("Fraction"); Context() -> parens -> set ("[" => {formMatrix => 1}); @@ -39,9 +39,9 @@ $MB = Matrix([[$a],[$b]]); sub magic { my ($m) = @_; -return 0 if $m->element(1,1)+$m->element(1,2)+$m->element(1,3) !=0; +return 0 if $m->element(1,1)+$m->element(1,2)+$m->element(1,3) !=0; return 0 if $m->element(2,1)+$m->element(2,2)+$m->element(2,3) !=0; -return 0 if $m->element(3,1)+$m->element(3,2)+$m->element(3,3) !=0; +return 0 if $m->element(3,1)+$m->element(3,2)+$m->element(3,3) !=0; return 0 if $m->element(1,1)+$m->element(1,2)+$m->element(1,3) !=0; return 0 if $m->element(2,1)+$m->element(2,2)+$m->element(2,3) !=0; return 0 if $m->element(3,1)+$m->element(3,2)+$m->element(3,3) !=0; @@ -55,18 +55,18 @@ checker => sub { my ( $correct, $student, $self ) = @_; my @s = @{$student}; my @c = @{$correct}; -my $s0 = Matrix($s[0]); +my $s0 = Matrix($s[0]); my $s1 = Matrix($s[1]); my $coo = Matrix($s[2]); if (! magic($s0)) { $self->setMessage(1,"Not half-magic."); return 0 ; -} +} if (! magic($s1)) { $self->setMessage(2,"Not half-magic."); return 0 ; -} +} if (rank(Matrix( [$s0->element(1,1),$s0->element(1,2),$s0->element(1,3), $s0->element(2,1),$s0->element(2,2),$s0->element(2,3), @@ -91,19 +91,19 @@ return 1; Context()->texStrings; BEGIN_TEXT -A square matrix \( A \) is called $BITALIC zero-magic $EITALIC +A square matrix \( A \) is called $BITALIC zero-magic $EITALIC if the sum of the numbers in each row, column, and diagonal is 0. Let \( V \) be the vector space of \( 3\times 3\) zero-magic squares. -$BR +$BR -(a) Find an ordered basis \( B \) for \( V \). +(a) Find an ordered basis \( B \) for \( V \). $BR \( B = ( \) \{ $multians->ans_array(3) \}, -\{ $multians->ans_array(3) \} +\{ $multians->ans_array(3) \} \( ) \). $BR diff --git a/Pending/NCSU/ECE220_Problem_1.21c-f.pg b/Pending/NCSU/ECE220_Problem_1.21c-f.pg index de03604029..c91b31b996 100755 --- a/Pending/NCSU/ECE220_Problem_1.21c-f.pg +++ b/Pending/NCSU/ECE220_Problem_1.21c-f.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "PGchoicemacros.pl", "PGgraphmacros.pl", - "AnswerFormatHelp.pl", + "extraAnswerEvaluators.pl", "unionLists.pl", "parserAssignment.pl", @@ -43,10 +43,10 @@ BEGIN_TEXT This corresponds to Problem 1.21c - f $BR Consider the function \( f(t) = sin(2 \pi $F t) \). $PAR -(c) For what value(s) of t is \( f(t) = 1\)? If there are more than one values, give the three values that are closest to \( t = 0, \) as a comma separated list. +(c) For what value(s) of t is \( f(t) = 1\)? If there are more than one values, give the three values that are closest to \( t = 0, \) as a comma separated list. $BR \{ ans_rule(35)\} $PAR -(d) For what value(s) of t is \( f(t) = 0\)? If there are more than one values, give the three values that are closest to \( t = 0, \) as a comma separated list. +(d) For what value(s) of t is \( f(t) = 0\)? If there are more than one values, give the three values that are closest to \( t = 0, \) as a comma separated list. $BR \{ ans_rule(35)\} $PAR diff --git a/Pending/NCSU/ECE220_Problem_2.52.pg b/Pending/NCSU/ECE220_Problem_2.52.pg index 6b370776c4..962a4d8ef4 100755 --- a/Pending/NCSU/ECE220_Problem_2.52.pg +++ b/Pending/NCSU/ECE220_Problem_2.52.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "PGchoicemacros.pl", "PGgraphmacros.pl", - "AnswerFormatHelp.pl", + "extraAnswerEvaluators.pl", "unionLists.pl", "parserAssignment.pl", @@ -40,7 +40,7 @@ Context("Numeric")->functions->add( }, ); -## define base function and limits on graph +## define base function and limits on graph ## add t to varaibles Context()->variables->add(t=>'Real'); ##Context()->variables->add(x=>'Real',y=>'Real'); @@ -49,7 +49,7 @@ parser::Assignment->Function("s"); parser::Assignment->Function("p"); $eqn = Formula("s(t) = p(t)"); -#$ans = Formula("s(t) = -2 p(t/4+9/4) + p(t) + p(t-2) + 3 p(t/5 - 4/5)"); +#$ans = Formula("s(t) = -2 p(t/4+9/4) + p(t) + p(t-2) + 3 p(t/5 - 4/5)"); $ans = Formula("s(t) = p(t)"); $c1 = -2; $a1 = 1/4; $t1 = -9/4; $c2 = 1; $a2 = 1; $t2 = 0; @@ -113,19 +113,19 @@ $PAR Express \( h(t) \) in terms of the time scaled and shifted versions of the unit pulse, \( p(t) = u(t) - u(t-1) \). While there are many correct ways to do this, the answer we want is one that uses four (4) pulses that are NOT overlapping. The answer has the form $BR \( h(t) = c_1 p(a_1 t - t_1) + c_2 p(a_2 t - t_2) + c_3 p(a_3 t - t_3) + c_4 p(a_4 t - t_4) \) -$BR where the numbering starts with the leftmost pulse. Give the values of the amplitudes, scale factors and shifts as a comma separated list. +$BR where the numbering starts with the leftmost pulse. Give the values of the amplitudes, scale factors and shifts as a comma separated list. $BR \( c_1 , a_1, t_1 \)\{ ans_rule(30) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR \( c_2 , a_2, t_2 \)\{ ans_rule(30) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR \( c_3 , a_3, t_3 \)\{ ans_rule(30) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR \( c_4 , a_4, t_4 \)\{ ans_rule(30) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR END_TEXT @@ -158,4 +158,4 @@ END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/Pending/NCSU/ECE220_Problem_3.7.pg b/Pending/NCSU/ECE220_Problem_3.7.pg index c52b4a6a7f..9b48710985 100755 --- a/Pending/NCSU/ECE220_Problem_3.7.pg +++ b/Pending/NCSU/ECE220_Problem_3.7.pg @@ -19,13 +19,13 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "PGchoicemacros.pl", "PGgraphmacros.pl", - "AnswerFormatHelp.pl", + "extraAnswerEvaluators.pl", "unionLists.pl", "parserAssignment.pl", @@ -76,7 +76,7 @@ for ($t = $t_min;$t <= $Tmax;$t = $t+$step) { $fmin = min(@f); $fmax = max(@f); -#minimum of sum is -2.56, maximum is 5.00, set tolerance so +#minimum of sum is -2.56, maximum is 5.00, set tolerance so # range is [-3.0,-2.6] and [5.05,5,45], -2.8 +/- 0.2, and 5.25 +/- 0.2 $fmin = -2.56; $fmax = 5.0; @@ -108,7 +108,7 @@ Compute($upper_lim)->with( tolType => 'absolute', tolerance => $dy)); Context()->texStrings; BEGIN_TEXT -This problem is related to Problem 3.7 in the text. consider reviewing Section 3.2.1.1. +This problem is related to Problem 3.7 in the text. consider reviewing Section 3.2.1.1. $PAR The following MATLAB program plots the function \( @@ -125,26 +125,26 @@ $BR axis([xmin,xmax,ymin,ymax]) $PAR -What is the period of the signal \( v(t) \)? +What is the period of the signal \( v(t) \)? \{ ans_rule(10) \} $PAR Suppose that we want to produce a plot that covers exactly 4 periods and has exactly 20 -samples per period. Determine the appropriate values of +samples per period. Determine the appropriate values of $BR step \{ ans_rule(10) \} $BR -$BR Tmax \{ ans_rule(10) \}. +$BR Tmax \{ ans_rule(10) \}. $PAR -Determine the values of xmin, xmax, ymin, and ymax to give a good visual plot and avoid the function hitting the boundaries of the plot. +Determine the values of xmin, xmax, ymin, and ymax to give a good visual plot and avoid the function hitting the boundaries of the plot. $BR [xmin, xmax] = \{$xlimits_vec->ans_array\} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR [ymin, ymax] = \{$ylimits_vec->ans_array\} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR END_TEXT Context()->normalStrings; @@ -154,7 +154,7 @@ Context()->normalStrings; # \($V\) = \{$V->ans_array\} # END_TEXT # Context()->normalStrings; - + # ANS($V->cmp); # Answers diff --git a/Pending/NCSU/ECE220_Problem_4.50.pg b/Pending/NCSU/ECE220_Problem_4.50.pg index c70cc1a36b..a8a755d954 100755 --- a/Pending/NCSU/ECE220_Problem_4.50.pg +++ b/Pending/NCSU/ECE220_Problem_4.50.pg @@ -19,12 +19,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGgraphmacros.pl", "unionTables.pl", "PGcourse.pl" @@ -60,17 +60,17 @@ $y = Formula("2*a/(a**2 + w**2) "); Context()->texStrings; BEGIN_TEXT -This problem is related to Problem 4.50 in the text. +This problem is related to Problem 4.50 in the text. $PAR -Compute the integral and write it in both Cartesian and polar (exponential) form. Note that it will be a function of \( \omega . \). Use w instead of \( \omega \) when entering the formulas. +Compute the integral and write it in both Cartesian and polar (exponential) form. Note that it will be a function of \( \omega . \). Use w instead of \( \omega \) when entering the formulas. $PAR \( A(w) = \int_{-\infty}^{\infty} e^{-a |t|}e^{-j\omega t} dt \) $PAR Cartesian \( A(w) = \) -\{ ans_rule(15)\} + j\{ ans_rule(15)\} \{ AnswerFormatHelp("formulas") \} +\{ ans_rule(15)\} + j\{ ans_rule(15)\} \{ helpLink("formulas") \} $PAR Polar \( A(w) = \) -\{ ans_rule(15)\} \( \angle \) \{ ans_rule(15)\} \( ^\circ \) \{ AnswerFormatHelp("formulas") \} +\{ ans_rule(15)\} \( \angle \) \{ ans_rule(15)\} \( ^\circ \) \{ helpLink("formulas") \} diff --git a/Pending/NCSU/ECE220_Problem_5.15.pg b/Pending/NCSU/ECE220_Problem_5.15.pg index e834212a34..f364ea1f4e 100755 --- a/Pending/NCSU/ECE220_Problem_5.15.pg +++ b/Pending/NCSU/ECE220_Problem_5.15.pg @@ -20,7 +20,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserMultiAnswer.pl", - "AnswerFormatHelp.pl", + "PGmatrixmacros.pl", "PGcourse.pl" ); @@ -70,12 +70,12 @@ $b[3][3] = $a[0][0]*$a[1][1]*$a[2][2]/$det; Context()->texStrings; BEGIN_TEXT -This problem is related to Problem 5.23 in the text. +This problem is related to Problem 5.23 in the text. $PAR This is a practice problem. You are not required to work it $PAR -If \{ mbox([ '\(A=\)', display_matrix([[$a[0][0], $a[0][1], $a[0][2], $a[0][3]], +If \{ mbox([ '\(A=\)', display_matrix([[$a[0][0], $a[0][1], $a[0][2], $a[0][3]], [$a[1][0], $a[1][1], $a[1][2], $a[1][3]], [$a[2][0], $a[2][1], $a[2][2], $a[2][3]], [$a[3][0], $a[3][1], $a[3][2], $a[3][3]]]) ]) \} $BR diff --git a/Pending/NCSU/ECE220_Problem_7.10-18a.pg b/Pending/NCSU/ECE220_Problem_7.10-18a.pg index 29243fcea9..21a1830c95 100755 --- a/Pending/NCSU/ECE220_Problem_7.10-18a.pg +++ b/Pending/NCSU/ECE220_Problem_7.10-18a.pg @@ -21,12 +21,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionLists.pl", "answerHints.pl", "parserFunction.pl", @@ -62,7 +62,7 @@ $r1 = random(2,9,1); do { $r2 = random(1,9,1); } until ($r2 != $r1); if ($r2 < $r1) {$temp = $r1; $r1 = $r2; $r2 = $temp;}; - + $b = $r1 + $r2; $c = $r1*$r2; @@ -105,34 +105,34 @@ $answer[2] = Formula("($D1 e^(-$r1 t) + $D2 e^(-$r2 t) + $B) u(t) ")->reduce; Context()->texStrings; BEGIN_TEXT -This problem is related to Problems 7.10-7.18 in the text. +This problem is related to Problems 7.10-7.18 in the text. $PAR Instructions for forms of answers in differential equation problems: $BR For second order DEs, the roots of the characteristic equation may be real or complex. If the roots are real, the complementary solution is the weighted sum of real exponentials. Use C1 and C2 for the weights, where C1 is associated with the root with smaller magnitude. If the roots are complex, the complementary solution is the weighted sum of complex conjugate exponentials, which can be written as a constant times a decaying exponential times a cosine with phase. Use C1 for the constant and Phi for the phase. -$PAR All numerical angles(phases) should be given in radian angles (not degrees). +$PAR All numerical angles(phases) should be given in radian angles (not degrees). $BR Remember to use \( u(t) \) in Webwork answers when the solution is for \( t \ge 0\). $PAR -Given the differential equation \( y'' + $b y' + $c y = $A u(t) \) . +Given the differential equation \( y'' + $b y' + $c y = $A u(t) \) . \{ BeginList("OL",type=>"a") \} $ITEM Find the functional form of the complementary solution, \( y_c(t) \). $BR \( y_c(t) = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $ITEMSEP $ITEM Find the particular solution, \( y_p(t) \). $BR \( y_p(t) = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $ITEMSEP $ITEM Find the total solution, \( y(t) \) for the initial conditions \( y(0) = $y0 \) and \( y'(0) = $ydot0 \). $BR \( y(t) = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} @@ -153,7 +153,7 @@ ANS( $answer[2]->cmp() ); COMMENT("MathObject version."); SOLUTION(EV3(<<'END_SOLUTION')); -Let's review the procedure for solving all differential equations: Find the form of the complementary solution, solve for the particular solution, find the coefficients of the complementary solution as part of the total solution from a system of equations determined by the initial conditions. +Let's review the procedure for solving all differential equations: Find the form of the complementary solution, solve for the particular solution, find the coefficients of the complementary solution as part of the total solution from a system of equations determined by the initial conditions. To find the form of the complementary solution, we find the roots of the characteristic equation \( \lambda^2 + $b\lambda + $c = 0\).For this example, the roots are real and are given by \( -$r1 \) and \( -$r2 \). This means the complementary solution has the form \( v_c(t) = C_1 e^{-$r1 t} + C_2 e^{-$r2 t} \). $PAR @@ -162,13 +162,13 @@ $PAR Now, we determine the coefficients of the complementary solution. The total solution has the form, \( v_t(t) = C_1 e^{-$r1 t} + C_2 e^{-$r2 t} + $B \), where we are leaving off the step function, \( u(t) = step(t) \) for now. We differentiate the total solution as needed and substitute into the equations for the initial conditions. This gives $PAR \( C_1 e^{-$r1 t} + C_2 e^{-$r2 t} + $B|_{t=0} = $y0 \), and -\( -$r1*C_1 e^{-$r1 t} - $r2*C_2 e^{-$r2 t}|_{t=0} = $ydot0 \). +\( -$r1*C_1 e^{-$r1 t} - $r2*C_2 e^{-$r2 t}|_{t=0} = $ydot0 \). $PAR So \( C_1 + C_2 = $b1 \) and \( -$r1*C_1 - $r2*C_2 = $b2 \). This is a linear system of equations for \( C_1 \) and \( C_2 \). We can write \( C_2 \) in terms of \( C_1 \) as \( C_2 = $b1 - C_1 \), then substitute \( C_2 \) into the derivative equation, and obtain $PAR \( -$r1*C_1 - $r2*($b1 - C_1) = $b2 \), therefore \( C_1 = $D1 \), and (substituting back into \( C_1 + C_2 = $b1 \) ), \( C_2 = $b1 - $D1 = $D2 \). $PAR -Substituting into the total solution and including the step function, we have +Substituting into the total solution and including the step function, we have $PAR \( ($D1 e^{-$r1 t} + $D2 e^{-$r2 t} + $B)u(t) \) END_SOLUTION diff --git a/Pending/NCSU/ECE220_Problem_7.10-18b.pg b/Pending/NCSU/ECE220_Problem_7.10-18b.pg index 49008f8ba4..fb4b29554f 100755 --- a/Pending/NCSU/ECE220_Problem_7.10-18b.pg +++ b/Pending/NCSU/ECE220_Problem_7.10-18b.pg @@ -21,12 +21,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionLists.pl", "answerHints.pl", "parserFunction.pl", @@ -115,32 +115,32 @@ $answer[2] = Formula("($D1 e^(-$r1 t) + $D2 e^(-$r2 t) + $mag cos($w t + $phase) Context()->texStrings; BEGIN_TEXT -This problem is related to Problems 7.10-7.18 in the text. +This problem is related to Problems 7.10-7.18 in the text. $PAR Instructions for forms of answers in differential equation problems: $BR For second order DEs, the roots of the characteristic equation may be real or complex. If the roots are real, the complementary solution is the weighted sum of real exponentials. Use C1 and C2 for the weights, where C1 is associated with the root with smaller magnitude. If the roots are complex, the complementary solution is the weighted sum of complex conjugate exponentials, which can be written as a constant times a decaying exponential times a cosine with phase. Use C1 for the constant and Phi for the phase. -$PAR All numerical angles(phases) should be given in radian angles (not degrees). +$PAR All numerical angles(phases) should be given in radian angles (not degrees). -Given the differential equation \( y'' + $b y' + $c y = $A cos($w t + $theta) u(t) \) . +Given the differential equation \( y'' + $b y' + $c y = $A cos($w t + $theta) u(t) \) . \{ BeginList("OL",type=>"a") \} $ITEM Find the functional form of the complementary solution, \( y_c(t) \). $BR \( y_c(t) = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $ITEMSEP $ITEM Find the particular solution, \( y_p(t) \). $BR \( y_p(t) = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $ITEMSEP $ITEM Find the total solution, \( y(t) \) for the initial condition \( y(0) = $y0 \) and \( y'(0) = $ydot0 \). $BR \( y(t) = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} @@ -161,14 +161,14 @@ ANS( $answer[2]->cmp() ); COMMENT("MathObject version."); SOLUTION(EV3(<<'END_SOLUTION')); -Let's review the procedure for solving all differential equations: Find the form of the complementary solution, solve for the particular solution, find the coefficients of the complementary solution as part of the total solution from a system of equations determined by the initial conditions. +Let's review the procedure for solving all differential equations: Find the form of the complementary solution, solve for the particular solution, find the coefficients of the complementary solution as part of the total solution from a system of equations determined by the initial conditions. To find the form of the complementary solution, we find the roots of the characteristic equation \( \lambda^2 + $b\lambda + $c = 0\).For this example, the roots are real and are given by \( -$r1 \) and \( -$r2 \). This means the complementary solution has the form \( v_c(t) = C_1 e^{-$r1 t} + C_2 e^{-$r2 t} \). $PAR -To find the particular solution, we know the form of the particular solution is the same as that of the driving function. In this case, the driving force is sinusoidal of the form \( v_s(t) = A \cos(\omega_0 t + \theta) u(t) = $A \cos($w t + $theta) u(t) \), so the particular solution takes the form \( v_p(t) = B \cos(\omega_0 t + \theta + \phi) u(t) = B \cos($w t + $theta + \phi) u(t) \), where +To find the particular solution, we know the form of the particular solution is the same as that of the driving function. In this case, the driving force is sinusoidal of the form \( v_s(t) = A \cos(\omega_0 t + \theta) u(t) = $A \cos($w t + $theta) u(t) \), so the particular solution takes the form \( v_p(t) = B \cos(\omega_0 t + \theta + \phi) u(t) = B \cos($w t + $theta + \phi) u(t) \), where +$PAR +\( B = \frac{A}{\sqrt{(c-\omega_0^2)^2 + (b\omega_0)^2}} = \frac{$A}{\sqrt{($c-$w^2)^2 + ($b*$w)^2}} = $mag \) $PAR -\( B = \frac{A}{\sqrt{(c-\omega_0^2)^2 + (b\omega_0)^2}} = \frac{$A}{\sqrt{($c-$w^2)^2 + ($b*$w)^2}} = $mag \) -$PAR \( \phi = -\arctan(\frac{b*\omega_0}{c - \omega_0^2}) = -\arctan(\frac{$b*$w}{$c - $w^2}) = $phi \) $PAR so @@ -182,7 +182,7 @@ $PAR \( C_1 e^{-$r1 t} + C_2 e^{-$r2 t} + $mag \cos($w t + $phase)|_{t=0} = $y0 \) and for the derivative $PAR \( -$r1*C_1 e^{-$r1 t} - $r2*C_2 e^{-$r2 t} - $w*$mag \sin($w t + $phase)|_{t=0} = $ydot0 \) -Evaluating the functions at \( t = 0\), we have +Evaluating the functions at \( t = 0\), we have $PAR \( C_1 + C_2 + $mag \cos($phase) = $y0 \) and $PAR @@ -192,7 +192,7 @@ So \( C_1 + C_2 = $b1 \) and \( -$r1*C_1 - $r2*C_2 = $b2 \). This is a linear sy $PAR \( -$r1*C_1 - $r2*($b1 - C_1) = $b2 \), therefore \( C_1 = $D1 \), and (substituting back into \( C_1 + C_2 = $b1 \) ), \( C_2 = $b1 - $D1 = $D2 \). $PAR -Substituting into the total solution and including the step function, we have +Substituting into the total solution and including the step function, we have \( ($D1 e^{-$r1 t} + $D2 e^{-$r2 t} + $mag \cos($w t + $phase))u(t) \) END_SOLUTION diff --git a/Pending/NCSU/ECE220_Problem_7.10.pg b/Pending/NCSU/ECE220_Problem_7.10.pg index a90259a11d..5c255704ae 100755 --- a/Pending/NCSU/ECE220_Problem_7.10.pg +++ b/Pending/NCSU/ECE220_Problem_7.10.pg @@ -20,12 +20,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionLists.pl", "answerHints.pl", "parserFunction.pl", @@ -82,7 +82,7 @@ $denom = $r1 - $r2; $D1 = (-$r2*$b1 - $b2)/$denom; $D2 = ($r1*$b1 + $b2)/$denom; -$b3 = ($ydot0 + $a * $b1)/(-$wc*$b1) ; # needed for solution write up +$b3 = ($ydot0 + $a * $b1)/(-$wc*$b1) ; # needed for solution write up $b4 = sqrt($b3**2 + 1); Context()->flags->set( @@ -133,27 +133,27 @@ Instructions for forms of answers in differential equation problems: $BR For second order DEs, the roots of the characteristic equation may be real or complex. If the roots are real, the complementary solution is the weighted sum of real exponentials. Use C1 and C2 for the weights, where C1 is associated with the root with smaller magnitude. If the roots are complex, the complementary solution is the weighted sum of complex conjugate exponentials, which can be written as a constant times a decaying exponential times a cosine with phase. Use C1 for the constant and Phi for the phase. (Note: Some equations in the text give the constant multiplying the decaying exponential as 2C1. This was done for the derivation. The constant for this problem should be C1 alone.) -$PAR All numerical angles(phases) should be given in radian angles (not degrees). +$PAR All numerical angles(phases) should be given in radian angles (not degrees). -Given the differential equation \( y'' + $b y' + $c y = $A u(t) \) . +Given the differential equation \( y'' + $b y' + $c y = $A u(t) \) . \{ BeginList("OL",type=>"a") \} $ITEM Write the functional form of the complementary solution, \( y_c(t) \). $BR \( y_c(t) = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $ITEMSEP $ITEM Find the particular solution, \( y_p(t) \). $BR \( y_p(t) = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $ITEMSEP $ITEM Find the total solution, \( y(t) \) for the initial conditions \( y(0) = $y0 \) and \( y'(0) = $ydot0 \). $BR \( y(t) = \) \{ ans_rule(60) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} @@ -177,40 +177,40 @@ SOLUTION(EV3(<<'END_SOLUTION')); $PAR $BBOLD SOLUTION $EBOLD $PAR -Let's review the procedure for solving all differential equations: Find the form of the complementary solution, solve for the particular solution, find the coefficients of the complementary solution as part of the total solution from a system of equations determined by the initial conditions. +Let's review the procedure for solving all differential equations: Find the form of the complementary solution, solve for the particular solution, find the coefficients of the complementary solution as part of the total solution from a system of equations determined by the initial conditions. -To find the form of the complementary solution, we find the roots of the characteristic equation \( \lambda^2 + $b\lambda + $c = 0\).For this example, the roots are complex and are given by \( -$a \pm j$wc \). This means the complementary solution has the form \( v_c(t) = C_1 e^{(-$a + j$wc)t} + C_2 e^{(-$a - j$wc) t} \). We know that since the solution is real and the roots are complex conjugates that \( C_1 \) and \( C_2 \) are complex conjugates. This means that we can write the complementary solution in the form \( v_c(t) = C_1 e^{-$a t} cos($wc t + \phi) \). +To find the form of the complementary solution, we find the roots of the characteristic equation \( \lambda^2 + $b\lambda + $c = 0\).For this example, the roots are complex and are given by \( -$a \pm j$wc \). This means the complementary solution has the form \( v_c(t) = C_1 e^{(-$a + j$wc)t} + C_2 e^{(-$a - j$wc) t} \). We know that since the solution is real and the roots are complex conjugates that \( C_1 \) and \( C_2 \) are complex conjugates. This means that we can write the complementary solution in the form \( v_c(t) = C_1 e^{-$a t} cos($wc t + \phi) \). $PAR To find the particular solution, we know the form of the particular solution is the same as that of the driving function. In this case, it is a constant, \( v_p(t) = B \). We differentiate the particular solution as needed and substitute into the differential equation. Since \( \dot{v}_p(t) = \ddot{v}_p(t) = 0\), we have the equation, \( $c v_p(t) = $c B = $A.\) We solve for \( B \) to obtain \( B = $A/$c = $B.\) $PAR Now, we determine the coefficients of the complementary solution. The total solution has the form, \( v_t(t) = C_1 e^{-$a t} cos($wc t + \phi) + $B \), where we are leaving off the step function, \( u(t) = step(t) \) for now. We differentiate the total solution as needed and substitute into the equations for the initial conditions. This gives \( C_1 e^{-$a t} cos($wc t + \phi) + $B |_{t=0} = $y0 \) and for the derivative $BR -\( -$a C_1 e^{-$a t} cos($wc t + \phi) - $wc C_1 e^{-$a t} sin($wc t + \phi) |_{t=0} = $ydot0 \). +\( -$a C_1 e^{-$a t} cos($wc t + \phi) - $wc C_1 e^{-$a t} sin($wc t + \phi) |_{t=0} = $ydot0 \). $BR -Evaluating the functions at \( t = 0\), we have +Evaluating the functions at \( t = 0\), we have $BR \( C_1 cos( \phi) = $y0 -$B = $b1\), and $BR \( -$a C_1 cos(\phi) - $wc C_1 sin( \phi) = $ydot0 \). $BR -This is a nonlinear system of equations for \( C_1 \) and \( \phi \). We can write \( C_1 \) in terms of \( cos( \phi) \) as +This is a nonlinear system of equations for \( C_1 \) and \( \phi \). We can write \( C_1 \) in terms of \( cos( \phi) \) as $BR \( C_1 = $b1/cos( \phi) \), then substitute \( C_1 \) into the derivative equation, and obtain $BR \( -$a \cdot ($b1) - $wc \cdot ($b1) tan( \phi) = $ydot0 \). $BR -This gives the formula for \( tan( \phi) \) as +This gives the formula for \( tan( \phi) \) as $BR \( tan( \phi) = [$ydot0 + $a \cdot ($b1)]/[-$wc($b1)] = $b3 .\) $BR We need cosine and sine of \( \phi \), which we can obtain by use trig definitions: the side of the right triangle opposite \( \phi \) is \( $b3\) and the side adjacent is 1. The hypotenuse is \( \sqrt{($b3)^2 + 1} = $b4\), which gives the cosine as $BR -\( cos(\phi) = \frac{1}{$b4} \) which gives +\( cos(\phi) = \frac{1}{$b4} \) which gives $BR \( C_1 = ($b1) \cdot $b4 = $mag \) $BR -Substituting into the total solution and including the step function, we have +Substituting into the total solution and including the step function, we have $BR \( ($mag * e^{-$a t} * cos($wc t + $ph) + $B) u(t) \). diff --git a/Pending/NCSU/ECE220_Problem_7.11.pg b/Pending/NCSU/ECE220_Problem_7.11.pg index d37af8192b..b8e005b921 100755 --- a/Pending/NCSU/ECE220_Problem_7.11.pg +++ b/Pending/NCSU/ECE220_Problem_7.11.pg @@ -20,13 +20,13 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PGchoicemacros.pl", - "AnswerFormatHelp.pl", + "unionLists.pl", "answerHints.pl", "parserFunction.pl", @@ -134,28 +134,28 @@ $PAR Instructions for forms of answers in differential equation problems: $BR For second order DEs, the roots of the characteristic equation may be real or complex. If the roots are real, the complementary solution is the weighted sum of real exponentials. Use C1 and C2 for the weights, where C1 is associated with the root with smaller magnitude. If the roots are complex, the complementary solution is the weighted sum of complex conjugate exponentials, which can be written as a constant times a decaying exponential times a cosine with phase. Use C1 for the constant and Phi for the phase. (Note: Some equations in the text give the constant multiplying the decaying exponential as 2C1. This was done for the derivation. The constant for this problem should be C1 alone.) -$PAR All numerical angles(phases) should be given in radian angles (not degrees). +$PAR All numerical angles(phases) should be given in radian angles (not degrees). $PAR -Given the differential equation \( y'' + $b y' + $c y = $A cos($w t + $theta) u(t) \) . +Given the differential equation \( y'' + $b y' + $c y = $A cos($w t + $theta) u(t) \) . \{ BeginList("OL",type=>"a") \} -$ITEM Write the functional form of the complementary solution, \( y_c(t) \), +$ITEM Write the functional form of the complementary solution, \( y_c(t) \), $BR \( y_c(t) = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $ITEMSEP $ITEM Find the particular solution, \( y_p(t) \). $BR \( y_p(t) = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $ITEMSEP $ITEM Find the total solution, \( y(t) \) for the initial condition \( y(0) = $y0 \) and \( y'(0) = $ydot0 \). $BR \( y(t) = \) \{ ans_rule(60) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} diff --git a/Pending/NCSU/ECE220_Problem_7.25.pg b/Pending/NCSU/ECE220_Problem_7.25.pg index 4fd5ae2e05..fd7f50c4cf 100755 --- a/Pending/NCSU/ECE220_Problem_7.25.pg +++ b/Pending/NCSU/ECE220_Problem_7.25.pg @@ -25,7 +25,7 @@ loadMacros( "PGmatrixmacros.pl", "PGnumericalmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "PGcourse.pl" ); @@ -44,14 +44,14 @@ $w = random(2,9,1); $a[1] = random(2,6,1) * random(-1,1,2); $a[2] = $a[1]; $a[3] = random(2,6,1) * random(-1,1,2); -$a[4] = $a[3]; +$a[4] = $a[3]; $tag = random(1,4,1); $a[$tag] = - $a[$tag]; $m = random(2,5,1); $n = random(2,5,1); -if ($m == $n) {$n = $n+1;} +if ($m == $n) {$n = $n+1;} $p = random(2,9,1); $vd = Formula(" t*cos($w * t^2) "); @@ -71,10 +71,10 @@ $v1h2 = $v1h + $h*(-$c1)*$v1h + $h* $h*cos($w * $h**2); $v1h3 = $v1h2 + $h*(-$c1)*$v1h2+ $h* $h2*cos($w * $h2**2); BEGIN_TEXT -This problem is related to Problem 7.21 in the text. +This problem is related to Problem 7.21 in the text. $PAR Given the differential equation \( v' +$c1 v = $vd u(t)\) -$BR Using Euler's method to compute \( v(t+h) \) from information of the function at time \( t \), i.e., you know \( v(t) \) and initial condition. +$BR Using Euler's method to compute \( v(t+h) \) from information of the function at time \( t \), i.e., you know \( v(t) \) and initial condition. $PAR \( v(t+h)\) = \( v(t)\) + h \{ ans_rule(15)\}\( v(t)\) + h \{ ans_rule(15)\} diff --git a/Pending/NCSU/ECE220_Problem_7.25a.pg b/Pending/NCSU/ECE220_Problem_7.25a.pg index 5fd33794d8..842372d90c 100755 --- a/Pending/NCSU/ECE220_Problem_7.25a.pg +++ b/Pending/NCSU/ECE220_Problem_7.25a.pg @@ -25,7 +25,7 @@ loadMacros( "PGmatrixmacros.pl", "PGnumericalmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "PGcourse.pl" ); @@ -44,26 +44,26 @@ $w = random(2,9,1); $a[1] = random(2,6,1) * random(-1,1,2); $a[2] = $a[1]; $a[3] = random(2,6,1) * random(-1,1,2); -$a[4] = $a[3]; +$a[4] = $a[3]; $tag = random(1,4,1); $a[$tag] = - $a[$tag]; $m = random(2,5,1); $n = random(2,5,1); -if ($m == $n) {$n = $n+1;} +if ($m == $n) {$n = $n+1;} $p = random(2,9,1); #$vd = Formula("sqrt( abs(cos($w * t^2)) ) "); $vd = "sqrt{ cos($w * t^2)) " ; -# det = $a[1] * $a[4] * e^(($m+$n)*t); +# det = $a[1] * $a[4] * e^(($m+$n)*t); BEGIN_TEXT -This problem is related to Problem 7.21 in the text. +This problem is related to Problem 7.21 in the text. $PAR Given the differential equation \(v' + $c1 v = \sqrt{ |cos($w * t^2)| } u(t)\) -$BR Write the equation for using Euler's method to compute \( v(t+h) \) from information of the function at time \( t \), i.e., you know \( v(t) \) and initial conditions. +$BR Write the equation for using Euler's method to compute \( v(t+h) \) from information of the function at time \( t \), i.e., you know \( v(t) \) and initial conditions. $PAR \( v(t+h)\) = \( v(t)\) + h \{ ans_rule(15)\}\( v(t)\) + h \{ ans_rule(15)\} diff --git a/Pending/NCSU/ECE220_Problem_7.26.pg b/Pending/NCSU/ECE220_Problem_7.26.pg index c868c876e4..a070a80427 100755 --- a/Pending/NCSU/ECE220_Problem_7.26.pg +++ b/Pending/NCSU/ECE220_Problem_7.26.pg @@ -24,7 +24,7 @@ loadMacros( "PGmatrixmacros.pl", "PGnumericalmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "parserAssignment.pl", "parserImplicitEquation.pl", @@ -49,26 +49,26 @@ $w = random(10,100,10); $a[1] = random(2,6,1) * random(-1,1,2); $a[2] = $a[1]; $a[3] = random(2,6,1) * random(-1,1,2); -$a[4] = $a[3]; +$a[4] = $a[3]; $tag = random(1,4,1); $a[$tag] = - $a[$tag]; $m = random(2,5,1); $n = random(2,5,1); -if ($m == $n) {$n = $n+1;} +if ($m == $n) {$n = $n+1;} $p = random(2,9,1); $vd = Formula(" $c3 t cos(t) "); $yd = Formula(" $c4 sin($w t)^2 "); -# det = $a[1] * $a[4] * e^(($m+$n)*t); +# det = $a[1] * $a[4] * e^(($m+$n)*t); BEGIN_TEXT -This problem is related to Problem 7.23-24 in the text. +This problem is related to Problem 7.23-24 in the text. $PAR Given the system of differential equations -$PAR +$PAR \( v' + $c1 y = $vd u(t)\) $PAR \( y' + $c2 v = $yd u(t) \) @@ -80,8 +80,8 @@ Define the functions \( x_1 \) and \( x_2 \) in terms of \( v \) and \( y. \) $BR \( x_1 = \)\{ ans_rule(15)\} \( x_2 = \)\{ ans_rule(15)\} $PAR -\{ mbox( display_matrix([["\( \frac{d x_1(t)}{dt}\)"], - ["\( \frac{d x_2(t)}{dt}\) "]]), ' = ' , answer_matrix(2,2,15) , display_matrix([["\( x_1(t)\)"], +\{ mbox( display_matrix([["\( \frac{d x_1(t)}{dt}\)"], + ["\( \frac{d x_2(t)}{dt}\) "]]), ' = ' , answer_matrix(2,2,15) , display_matrix([["\( x_1(t)\)"], ["\( x_2(t)\)"]]) , '+', answer_matrix(2,1,15) ) \} END_TEXT diff --git a/Pending/NCSU/ECE220_Problem_7.26a.pg b/Pending/NCSU/ECE220_Problem_7.26a.pg index a646f24caa..f40a632e72 100755 --- a/Pending/NCSU/ECE220_Problem_7.26a.pg +++ b/Pending/NCSU/ECE220_Problem_7.26a.pg @@ -24,7 +24,7 @@ loadMacros( "PGmatrixmacros.pl", "PGnumericalmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "parserAssignment.pl", "parserImplicitEquation.pl", @@ -49,26 +49,26 @@ $w = random(10,100,10); $a[1] = random(2,6,1) * random(-1,1,2); $a[2] = $a[1]; $a[3] = random(2,6,1) * random(-1,1,2); -$a[4] = $a[3]; +$a[4] = $a[3]; $tag = random(1,4,1); $a[$tag] = - $a[$tag]; $m = random(2,5,1); $n = random(2,5,1); -if ($m == $n) {$n = $n+1;} +if ($m == $n) {$n = $n+1;} $p = random(2,9,1); $vd = Formula(" $c3 t cos(t) "); $yd = Formula(" $c4 sin($w t)^2 "); -# det = $a[1] * $a[4] * e^(($m+$n)*t); +# det = $a[1] * $a[4] * e^(($m+$n)*t); BEGIN_TEXT -This problem is related to Problem 7.23-24 in the text. +This problem is related to Problem 7.23-24 in the text. $PAR Given the system of differential equations -$PAR +$PAR \( v' + $c1 y = $vd u(t)\) $PAR \( y' + $c2 v = $yd u(t) \) @@ -80,9 +80,9 @@ Define the functions \( x_1 \) and \( x_2 \) in terms of \( v \) and \( y. \) $BR \( x_1 = \)\{ ans_rule(15)\} \( x_2 = \)\{ ans_rule(15)\} $PAR -\{ mbox( display_matrix([["\( x_1(t+h)\)"], - ["\( x_2(t+h)\) "]]), ' = ' , display_matrix([["\( x_1(t)\)"], - ["\( x_2(t)\) "]]), "+", "h" , answer_matrix(2,2,15) , display_matrix([["\( x_1(t)\)"], +\{ mbox( display_matrix([["\( x_1(t+h)\)"], + ["\( x_2(t+h)\) "]]), ' = ' , display_matrix([["\( x_1(t)\)"], + ["\( x_2(t)\) "]]), "+", "h" , answer_matrix(2,2,15) , display_matrix([["\( x_1(t)\)"], ["\( x_2(t)\)"]]) , '+', "h" , answer_matrix(2,1,15) ) \} END_TEXT diff --git a/Pending/NCSU/ECE220_Problem_7.26b.pg b/Pending/NCSU/ECE220_Problem_7.26b.pg index 00b1d73132..ad49355563 100755 --- a/Pending/NCSU/ECE220_Problem_7.26b.pg +++ b/Pending/NCSU/ECE220_Problem_7.26b.pg @@ -25,7 +25,7 @@ loadMacros( "PGmatrixmacros.pl", "PGnumericalmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "parserAssignment.pl", "parserImplicitEquation.pl", @@ -56,14 +56,14 @@ $w = random(10,100,10); $a[1] = random(2,6,1) * random(-1,1,2); $a[2] = $a[1]; $a[3] = random(2,6,1) * random(-1,1,2); -$a[4] = $a[3]; +$a[4] = $a[3]; $tag = random(1,4,1); $a[$tag] = - $a[$tag]; $m = random(2,5,1); $n = random(2,5,1); -if ($m == $n) {$n = $n+1;} +if ($m == $n) {$n = $n+1;} $p = random(2,9,1); $vd = Formula(" $c3 t cos(t) "); @@ -93,13 +93,13 @@ $yh2 = $yh + $h*(-$c2)*$vh + $h*$ydh; $vh3 = $vh2 + $h*(-$c1)*$yh2 + $h*$vdh2; $yh3 = $yh2 + $h*(-$c2)*$vh2 + $h*$ydh2; -# det = $a[1] * $a[4] * e^(($m+$n)*t); +# det = $a[1] * $a[4] * e^(($m+$n)*t); BEGIN_TEXT -This problem is related to Problem 7.23-24 in the text. +This problem is related to Problem 7.23-24 in the text. $PAR Given the system of differential equations -$PAR +$PAR \( v' + $c1 y = $vd u(t)\) $PAR \( y' + $c2 v = $yd u(t) \) diff --git a/Pending/NCSU/ECE220_Problem_7.26c.pg b/Pending/NCSU/ECE220_Problem_7.26c.pg index a41f3f53a2..1a24e16c8f 100755 --- a/Pending/NCSU/ECE220_Problem_7.26c.pg +++ b/Pending/NCSU/ECE220_Problem_7.26c.pg @@ -21,7 +21,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -46,7 +46,7 @@ $w = random(10,100,10); $m = random(2,5,1); $n = random(2,5,1); -if ($m == $n) {$n = $n+1;} +if ($m == $n) {$n = $n+1;} $p = random(2,9,1); $vd = Formula(" $c3 t cos(t) "); @@ -79,10 +79,10 @@ $yh3 = $yh2 + $h*(-$c2)*$vh2 + $h*$ydh2; Context()->texStrings; BEGIN_TEXT -This problem is related to Problem 7.23-24 in the text. +This problem is related to Problem 7.23-24 in the text. $PAR Given the system of differential equations -$PAR +$PAR \( v' + $c1 y = $vd u(t)\) $PAR \( y' + $c2 v = $yd u(t) \) diff --git a/Pending/NCSU/ECE220_Problem_7.27.pg b/Pending/NCSU/ECE220_Problem_7.27.pg index fb4affa68b..4fb2687977 100755 --- a/Pending/NCSU/ECE220_Problem_7.27.pg +++ b/Pending/NCSU/ECE220_Problem_7.27.pg @@ -25,7 +25,7 @@ loadMacros( "PGmatrixmacros.pl", "PGnumericalmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "parserAssignment.pl", "parserImplicitEquation.pl", @@ -48,22 +48,22 @@ $w = random(2,9,1); $a[1] = random(2,6,1) * random(-1,1,2); $a[2] = $a[1]; $a[3] = random(2,6,1) * random(-1,1,2); -$a[4] = $a[3]; +$a[4] = $a[3]; $tag = random(1,4,1); $a[$tag] = - $a[$tag]; $m = random(2,5,1); $n = random(2,5,1); -if ($m == $n) {$n = $n+1;} +if ($m == $n) {$n = $n+1;} $p = random(2,9,1); $vd = Formula(" cos($w * t)^3 "); -# det = $a[1] * $a[4] * e^(($m+$n)*t); +# det = $a[1] * $a[4] * e^(($m+$n)*t); BEGIN_TEXT -This problem is related to Problem 7.23-24 in the text. +This problem is related to Problem 7.23-24 in the text. $PAR Given the differential equation \( v'' + $c2 v' +$c1 v = $vd u(t)\) $BR Write the matrix equation for using Euler's method to compute \( v(t+h) \) from information of the function at time \( t \), i.e., you know \( v(t) \) and initial conditions. It is assumed you will use two auxiliary functions, \( v_1 \) and \( v_2. \) @@ -73,8 +73,8 @@ Define the functions \( v_1 \) and \( v_2 \) in terms of \( v \) and \( v'. \) $BR \( v_1 = \)\{ ans_rule(15)\} \( v_2 = \)\{ ans_rule(15)\} $PAR -\{ mbox( display_matrix([["\( \frac{d v_1(t)}{dt}\)"], - ["\( \frac{d v_2(t)}{dt}\) "]]), ' = ' , answer_matrix(2,2,15) , display_matrix([["\( v_1(t)\)"], +\{ mbox( display_matrix([["\( \frac{d v_1(t)}{dt}\)"], + ["\( \frac{d v_2(t)}{dt}\) "]]), ' = ' , answer_matrix(2,2,15) , display_matrix([["\( v_1(t)\)"], ["\( v_2(t)\)"]]) , '+', answer_matrix(2,1,15) ) \} END_TEXT diff --git a/Pending/NCSU/ECE220_Problem_7.27a.pg b/Pending/NCSU/ECE220_Problem_7.27a.pg index 2b811c1f3a..a38189d8de 100755 --- a/Pending/NCSU/ECE220_Problem_7.27a.pg +++ b/Pending/NCSU/ECE220_Problem_7.27a.pg @@ -25,7 +25,7 @@ loadMacros( "PGmatrixmacros.pl", "PGnumericalmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "PGcourse.pl" ); @@ -44,22 +44,22 @@ $w = random(2,9,1); $a[1] = random(2,6,1) * random(-1,1,2); $a[2] = $a[1]; $a[3] = random(2,6,1) * random(-1,1,2); -$a[4] = $a[3]; +$a[4] = $a[3]; $tag = random(1,4,1); $a[$tag] = - $a[$tag]; $m = random(2,5,1); $n = random(2,5,1); -if ($m == $n) {$n = $n+1;} +if ($m == $n) {$n = $n+1;} $p = random(2,9,1); $vd = Formula(" cos($w * t)^3 "); -# det = $a[1] * $a[4] * e^(($m+$n)*t); +# det = $a[1] * $a[4] * e^(($m+$n)*t); BEGIN_TEXT -This problem is related to Problem 7.23-24 in the text. +This problem is related to Problem 7.23-24 in the text. $PAR Given the differential equation \( v'' + $c2 v' +$c1 v = $vd u(t)\) $BR Write the matrix equation for using Euler's method to compute \( v(t+h) \) from information of the function at time \( t \), i.e., you know \( v(t) \) and initial conditions. It is assumed you will use two auxiliary functions, \( v_1(t) \) and \( v_2(t). \) @@ -67,9 +67,9 @@ $BR Write the matrix equation for using Euler's method to compute \( v(t+h) \) f $PAR -\{ mbox( display_matrix([["\( v_1(t+h)\)"], - ["\( v_2(t+h)\) "]]), ' = ' , display_matrix([["\( v_1(t)\)"], - ["\( v_2(t)\) "]]), "+", "h" , answer_matrix(2,2,15) , display_matrix([["\( v_1(t)\)"], +\{ mbox( display_matrix([["\( v_1(t+h)\)"], + ["\( v_2(t+h)\) "]]), ' = ' , display_matrix([["\( v_1(t)\)"], + ["\( v_2(t)\) "]]), "+", "h" , answer_matrix(2,2,15) , display_matrix([["\( v_1(t)\)"], ["\( v_2(t)\)"]]) , '+', "h" , answer_matrix(2,1,15) ) \} END_TEXT diff --git a/Pending/NCSU/ECE220_Problem_7.27b.pg b/Pending/NCSU/ECE220_Problem_7.27b.pg index 9c896ec04c..08d06a73bd 100755 --- a/Pending/NCSU/ECE220_Problem_7.27b.pg +++ b/Pending/NCSU/ECE220_Problem_7.27b.pg @@ -25,7 +25,7 @@ loadMacros( "PGmatrixmacros.pl", "PGnumericalmacros.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionTables.pl", "PGcourse.pl" ); @@ -44,14 +44,14 @@ $w = random(2,9,1); $a[1] = random(2,6,1) * random(-1,1,2); $a[2] = $a[1]; $a[3] = random(2,6,1) * random(-1,1,2); -$a[4] = $a[3]; +$a[4] = $a[3]; $tag = random(1,4,1); $a[$tag] = - $a[$tag]; $m = random(2,5,1); $n = random(2,5,1); -if ($m == $n) {$n = $n+1;} +if ($m == $n) {$n = $n+1;} $p = random(2,9,1); $vd = Formula(" cos($w * t)^3 "); @@ -75,15 +75,15 @@ $v1h3 = $v1h2 + $h*$v2h2; $v2h3 = $v2h2 + $h*(-$c1*$v1h2 -$c2*$v2h2 + cos($w*$h2)**3); BEGIN_TEXT -This problem is related to Problem 7.23-24 in the text. +This problem is related to Problem 7.23-24 in the text. $PAR Given the differential equation \( v'' + $c2 v' +$c1 v = $vd u(t)\) $BR Write the matrix equation for using Euler's method to compute \( v(t+h) \) from information of the function at time \( t \), i.e., you know \( v(t) \) and initial conditions. It is assumed you will use two auxiliary functions, \( v_1(t) \) and \( v_2(t). \) $PAR -\{ mbox( display_matrix([["\( v_1(t+h)\)"], - ["\( v_2(t+h)\) "]]), ' = ' , display_matrix([["\( v_1(t)\)"], - ["\( v_2(t)\) "]]), "+", "h" , answer_matrix(2,2,15) , display_matrix([["\( v_1(t)\)"], +\{ mbox( display_matrix([["\( v_1(t+h)\)"], + ["\( v_2(t+h)\) "]]), ' = ' , display_matrix([["\( v_1(t)\)"], + ["\( v_2(t)\) "]]), "+", "h" , answer_matrix(2,2,15) , display_matrix([["\( v_1(t)\)"], ["\( v_2(t)\)"]]) , '+', "h" , answer_matrix(2,1,15) ) \} $PAR For \( h = $h \), compute the solution for \( t = 0, $h, $h2, $h3 \), when the initial conditions are \( v(0) = $v0 \) and \( v'(0) = $vdot0 \). diff --git a/Pending/NCSU/ECE220_Problem_7.34.pg b/Pending/NCSU/ECE220_Problem_7.34.pg index e76f02ad8d..50c81f7aff 100755 --- a/Pending/NCSU/ECE220_Problem_7.34.pg +++ b/Pending/NCSU/ECE220_Problem_7.34.pg @@ -18,12 +18,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -50,7 +50,7 @@ $A = $c*$D; Context()->texStrings; BEGIN_TEXT -Novel problem not in text. +Novel problem not in text. $PAR The driving function and particular solution that define a second order differential equation \( v'' + b v' + c v = v_s(t) \), are given by $BR \( v_s(t) = ($E e^{-$a t} + $A )u(t) \), @@ -62,12 +62,12 @@ $BR $BR \( b = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR $BR \( c = \) \{ ans_rule(10) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/Pending/NCSU/ECE220_Problem_7.35.pg b/Pending/NCSU/ECE220_Problem_7.35.pg index cb0f94a828..b43e53b87a 100755 --- a/Pending/NCSU/ECE220_Problem_7.35.pg +++ b/Pending/NCSU/ECE220_Problem_7.35.pg @@ -22,12 +22,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionLists.pl", "contextPolynomialFactors.pl", "contextLimitedPowers.pl", @@ -71,7 +71,7 @@ $answer[2] = List(Real(-$r1),Real($r2)); # Main text Context()->texStrings; BEGIN_TEXT -This is a teaching problem. It is not required. It gives an exercise in the steps used to obtain a solution. +This is a teaching problem. It is not required. It gives an exercise in the steps used to obtain a solution. $PAR Let \( y'' + $p1 y' - $p0 y = 0 \). \{ BeginList('OL',type=>'a') \} @@ -81,24 +81,24 @@ for some unknown constant \( r \), by substituting it into the differential equation. $BR \{ ans_rule(30) \} \( = 0 \). -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $ITEMSEP -$ITEM Simplify and factor your equation in the previous part +$ITEM Simplify and factor your equation in the previous part as much as possible. Be sure to divide out any terms guaranteed to be nonzero. $BR -\{ ans_rule(30) \} \( = 0 \). -\{ AnswerFormatHelp("formulas") \} +\{ ans_rule(30) \} \( = 0 \). +\{ helpLink("formulas") \} $ITEMSEP -$ITEM Find all values of \( r \) such that \( y = e^{rx} \) +$ITEM Find all values of \( r \) such that \( y = e^{rx} \) satisfies the differential equation. If there is more than one correct answer, enter your answers as a comma separated list. $BR -\( r = \) +\( r = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} \{ EndList('OL') \} END_TEXT diff --git a/Pending/NCSU/ECE220_Problem_7.7-8a.pg b/Pending/NCSU/ECE220_Problem_7.7-8a.pg index 375c87c8f8..4303f0def6 100755 --- a/Pending/NCSU/ECE220_Problem_7.7-8a.pg +++ b/Pending/NCSU/ECE220_Problem_7.7-8a.pg @@ -21,12 +21,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionLists.pl", "answerHints.pl", "parserFunction.pl", @@ -84,30 +84,30 @@ $answer[2] = Formula("($D e^(-$a t) + $B) u(t) ")->reduce; Context()->texStrings; BEGIN_TEXT -This problem is related to Problems 7.5-7.8 in the text. +This problem is related to Problems 7.5-7.8 in the text. $PAR -Given the differential equation \( y' + $a y = $A u(t) \). +Given the differential equation \( y' + $a y = $A u(t) \). $BR Remember to use \( u(t) \) in Webwork answers when the solution is for \( t \ge 0\). -$BR For differential equations, angles are given in radians. +$BR For differential equations, angles are given in radians. \{ BeginList("OL",type=>"a") \} -$ITEM Find the complementary solution, \( y_c(t) \), with constants denoted C1, +$ITEM Find the complementary solution, \( y_c(t) \), with constants denoted C1, C2, ... $BR \( y_c(t) = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $ITEMSEP $ITEM Find the particular solution, \( y_p(t) \). $BR \( y_p(t) = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $ITEMSEP $ITEM Find the total solution, \( y(t) \) for the initial condition \( y(0) = $y0 \). $BR \( y(t) = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} diff --git a/Pending/NCSU/ECE220_Problem_7.7-8b.pg b/Pending/NCSU/ECE220_Problem_7.7-8b.pg index 76a94c9cd0..1b575621cf 100755 --- a/Pending/NCSU/ECE220_Problem_7.7-8b.pg +++ b/Pending/NCSU/ECE220_Problem_7.7-8b.pg @@ -21,12 +21,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unionLists.pl", "answerHints.pl", "parserFunction.pl", @@ -88,30 +88,30 @@ $answer[2] = Formula("($C e^(-$a t) + $mag cos($w t + $phase)) u(t) "); Context()->texStrings; BEGIN_TEXT -This problem is related to Problems 7.5-7.8 in the text. +This problem is related to Problems 7.5-7.8 in the text. $PAR -Given the differential equation \( y' + $a y = $A cos($w t + $theta) u(t) \). +Given the differential equation \( y' + $a y = $A cos($w t + $theta) u(t) \). $BR Remember to use \( u(t) \) in Webwork answers when the solution is for \( t \ge 0\). -$BR For differential equations, angles are given in radians. +$BR For differential equations, angles are given in radians. \{ BeginList("OL",type=>"a") \} -$ITEM Find the complementary solution, \( y_c(t) \), with constants denoted C1, +$ITEM Find the complementary solution, \( y_c(t) \), with constants denoted C1, C2, ... $BR \( y_c(t) = \) \{ ans_rule(50) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $ITEMSEP $ITEM Find the particular solution, \( y_p(t) \). $BR \( y_p(t) = \) \{ ans_rule(50) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $ITEMSEP $ITEM Find the total solution, \( y(t) \) for the initial condition \( y(0) = $y0 \). $BR \( y(t) = \) \{ ans_rule(50) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} diff --git a/Pending/NCSU/ECE220_Problem_8.13-15a.pg b/Pending/NCSU/ECE220_Problem_8.13-15a.pg index 0028a3000c..d4f36c8ad1 100755 --- a/Pending/NCSU/ECE220_Problem_8.13-15a.pg +++ b/Pending/NCSU/ECE220_Problem_8.13-15a.pg @@ -20,12 +20,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "unorderedAnswer.pl", "parserMultiAnswer.pl", @@ -75,8 +75,8 @@ do {$r3 = -random(1,9,1);} until ($r3 != $r1 & $r3 != $r2); # third root $c1 = non_zero_random(-6,6,1); # constant multiplying real exp. -$c2 = non_zero_random(-6,6,1); # constant multiplying real exp. -$c3 = non_zero_random(-6,6,1); # constant multiplying real exp. +$c2 = non_zero_random(-6,6,1); # constant multiplying real exp. +$c3 = non_zero_random(-6,6,1); # constant multiplying real exp. # combine first two roots into quadratic (a*s - b)/(s^2 - d1*s + d0) $a = $c1 + $c2; @@ -105,12 +105,12 @@ $ft = Formula("($c1*e^($r1*t) + $c2*e^($r2*t) + $c3*e^($r3*t))*u(t)")->reduce; Context()->texStrings; BEGIN_TEXT -This problem is related to Problems 8.9-13 in the text. +This problem is related to Problems 8.9-13 in the text. $PAR Consider the function \( \displaystyle F(s) = $frac \). $PAR -Find the partial fraction decomposition of \( F(s) \). Enter all factors as first order terms in \( s \), that is, all terms should be of the form \( \frac{c}{s-p} \), where \( c \) is a constant and the root \( p \) is a constant. Both \( c \) and \( p \) may be complex. +Find the partial fraction decomposition of \( F(s) \). Enter all factors as first order terms in \( s \), that is, all terms should be of the form \( \frac{c}{s-p} \), where \( c \) is a constant and the root \( p \) is a constant. Both \( c \) and \( p \) may be complex. $BR $BR \( \displaystyle $frac = \) \{ ans_rule(20)\} \(+\) \{ ans_rule(20)\} \(+\) \{ ans_rule(20)\} @@ -120,7 +120,7 @@ $BR $BR \( \displaystyle f(t) = {\mathcal L}^{-1} \left\lbrace F(s) \right\rbrace = \) \{ ans_rule(50) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT @@ -133,7 +133,7 @@ Context()->normalStrings; $showPartialCorrectAnswers = 1; # note that ALL answers in a problem must be unordered!! -# in this case, the terms are unordered and checked as such, but it is +# in this case, the terms are unordered and checked as such, but it is # highly unlikely anyone would enter the last answer in the wrong place # but so what if they did diff --git a/Pending/NCSU/ECE220_Problem_8.13-15b.pg b/Pending/NCSU/ECE220_Problem_8.13-15b.pg index 4a19d5d290..8cb896289a 100755 --- a/Pending/NCSU/ECE220_Problem_8.13-15b.pg +++ b/Pending/NCSU/ECE220_Problem_8.13-15b.pg @@ -20,12 +20,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "unorderedAnswer.pl", "parserMultiAnswer.pl", @@ -72,7 +72,7 @@ $a = -random(1,6,1); $w = random(1,6,1); # root is r = $a+i*$w $b = random(1,6,1); # roots for constant multiplying decaying exponential $d = non_zero_random(-6,6,1); # roots for constant multiplying decaying exp. -$c = non_zero_random(-5,5,1); # constant multiplying real exp. +$c = non_zero_random(-5,5,1); # constant multiplying real exp. $r1 = -random(1,6,1); # rate for real exp. $c2 = $c + 2*$b; @@ -87,13 +87,13 @@ $C0 = $a**2 + $w**2; $frac = Formula(" ($c2*s^2 +$c1*s + $c0 )/[(s-$r1)*(s^2 - 2*$a*s + (($a)**2 + ($w)**2))] ")->reduce; -$Fs = Formula("($c2*s^2 + $c1*s + $c0)/(s^3 + (-$r1-2*$a)*s^2 + (($a)**2 + ($w)**2+2*$r1*$a)*s - $r1*(($a)**2 + ($w)**2))")->reduce; +$Fs = Formula("($c2*s^2 + $c1*s + $c0)/(s^3 + (-$r1-2*$a)*s^2 + (($a)**2 + ($w)**2+2*$r1*$a)*s - $r1*(($a)**2 + ($w)**2))")->reduce; $fac1 = Formula("$c/(s-$r1)")->reduce; $fac2 = Formula("($b+($d * i))/(s-($a+($w*i)))")->reduce; $fac3 = Formula("($b-($d * i))/(s-($a-($w*i)))")->reduce; $B = 2*sqrt($b**2 + $d**2); -$phi = atan($d/$b); # since $b > 0, $phi is always in (-pi/2, pi/2) +$phi = atan($d/$b); # since $b > 0, $phi is always in (-pi/2, pi/2) $ft = Formula("($B*exp($a*t)*cos($w*t + $phi) + $c*exp($r1*t))*u(t)"); @@ -103,12 +103,12 @@ $ft = Formula("($B*exp($a*t)*cos($w*t + $phi) + $c*exp($r1*t))*u(t)"); Context()->texStrings; BEGIN_TEXT -This problem is related to Problems 8.9-11 in the text. +This problem is related to Problems 8.9-11 in the text. $PAR Consider the function \( \displaystyle F(s) = $frac \). $PAR -Find the partial fraction decomposition of \( F(s) \). Enter all factors as first order terms in \( s \), that is, all terms should be of the form \( \frac{c}{s-p} \), where \( c \) is a constant and the root \( p \) is a constant. Both \( c \) and \( p \) may be complex. +Find the partial fraction decomposition of \( F(s) \). Enter all factors as first order terms in \( s \), that is, all terms should be of the form \( \frac{c}{s-p} \), where \( c \) is a constant and the root \( p \) is a constant. Both \( c \) and \( p \) may be complex. $BR \( \displaystyle $Fs = \) \{ ans_rule(20)\} \(+\) \{ ans_rule(20)\} \(+\) \{ ans_rule(20)\} @@ -118,7 +118,7 @@ $BR $BR \( \displaystyle f(t) = {\mathcal L}^{-1} \left\lbrace F(s) \right\rbrace = \) \{ ans_rule(50) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT @@ -131,7 +131,7 @@ Context()->normalStrings; $showPartialCorrectAnswers = 1; # note that ALL answers in a problem must be unordered!! -# in this case, the terms are unordered and checked as such, but it is +# in this case, the terms are unordered and checked as such, but it is # highly unlikely anyone would enter the last answer in the wrong place # but so what if they did diff --git a/Pending/NCSU/ECE220_Problem_8.14.pg b/Pending/NCSU/ECE220_Problem_8.14.pg index 4308c6fd4f..41b42e89c2 100755 --- a/Pending/NCSU/ECE220_Problem_8.14.pg +++ b/Pending/NCSU/ECE220_Problem_8.14.pg @@ -20,12 +20,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "parserMultiAnswer.pl", "PGcourse.pl" @@ -52,7 +52,7 @@ $aplusb = $a+$b; $C = random(1,5,1); $D = random(1,5,1); -$Fs = Compute("(($C+$D)*s + (-$C*$b - $D*$a))/(s^2 - $aplusb*s + $a*$b)")->reduce; +$Fs = Compute("(($C+$D)*s + (-$C*$b - $D*$a))/(s^2 - $aplusb*s + $a*$b)")->reduce; $fac1 = Compute("$C/(s-$a)"); $fac2 = Compute("$D/(s-$b)"); $ft = Compute("$C*e^($a*t) + $D*e^($b*t)"); @@ -85,7 +85,7 @@ $multians = MultiAnswer($fac1, $fac2)->with( Context()->texStrings; BEGIN_TEXT -This problem is a practice problem that is related to Problem 8.9 and 8.10 in the text. +This problem is a practice problem that is related to Problem 8.9 and 8.10 in the text. $PAR Consider the function \( \displaystyle F(s) = $Fs \). @@ -101,10 +101,10 @@ $ITEM Find the inverse Laplace transform of \( \displaystyle F(s) \) for \( t \ $BR $BR \( \displaystyle f(t) = {\mathcal L}^{-1} \left\lbrace F(s) \right\rbrace = \) -\{ - ans_rule(50) +\{ + ans_rule(50) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} \{ EndList('OL', type=>'a') \} END_TEXT diff --git a/Pending/NCSU/ECE220_Problem_8.17a.pg b/Pending/NCSU/ECE220_Problem_8.17a.pg index e1d99bd9a8..81bb5d1aa6 100755 --- a/Pending/NCSU/ECE220_Problem_8.17a.pg +++ b/Pending/NCSU/ECE220_Problem_8.17a.pg @@ -20,12 +20,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "unorderedAnswer.pl", "parserMultiAnswer.pl", @@ -75,8 +75,8 @@ do {$r3 = -random(1,9,1);} until ($r3 != $r1 & $r3 != $r2); # third root $c1 = non_zero_random(-6,6,1); # constant multiplying real exp. -$c2 = non_zero_random(-6,6,1); # constant multiplying real exp. -$c3 = non_zero_random(-6,6,1); # constant multiplying real exp. +$c2 = non_zero_random(-6,6,1); # constant multiplying real exp. +$c3 = non_zero_random(-6,6,1); # constant multiplying real exp. # combine first two roots into quadratic (a*s - b)/(s^2 - d1*s + d0) $a = $c1 + $c2; @@ -90,9 +90,9 @@ $f2 = $a + $c3; $f1 = $b + $a*$r3 + $c3*$d1; $f0 = $b*$r3 + $c3*$d0; -# constants for DiffEq +# constants for DiffEq $a1 = -($r1 + $r2); -$a0 = $r1*$r2; +$a0 = $r1*$r2; # solve for coefficients of diffEq y'' +a1*y'+a0 = A y_s @@ -103,7 +103,7 @@ $a0 = $r1*$r2; # this gives Y(s) = [s^2 * y0 + s*(ydot0 + a1*y0 - r3*y0) + (A -r3*ydot0 - r3*a1*y0) ]/[(s-r3)(s^2+a1*s+a0)] # using s^2*f2 - s*f1 + f0 = s^2 * y0 + s*(ydot0 + a1*y0 - r3*y0) + (A -r3*ydot0 - r3*a1*y0) # we have - this had a sign error and now works - left here for later checking -# $y0 = $f2; +# $y0 = $f2; # $ydot0 = -$f1 -$a1*$y0 + $r3*$y0; # $A = $f0 + $r3*$ydot0 + $r3*$a1*$y0; @@ -111,7 +111,7 @@ $a0 = $r1*$r2; # y(t) = c1*e^(r1*t) + c2*e^(r2*t) + c3*e^(r3*t) $y0 = $c1 + $c2 + $c3; $ydot0 = $r1*$c1 + $r2*$c2 + $r3*$c3; -$A = $c3*(($r3)**2 + $a1*$r3 + $a0); +$A = $c3*(($r3)**2 + $a1*$r3 + $a0); # old calc #$y0 = $c1+$c2+$c3; @@ -137,13 +137,13 @@ BEGIN_TEXT This problem is related to Problems 8.17 in the text. $PAR -Consider the differential equation \( y''(t) + $a1 y'(t) + $a0 y(t) = $A e^{$r3 t} u(t) \), +Consider the differential equation \( y''(t) + $a1 y'(t) + $a0 y(t) = $A e^{$r3 t} u(t) \), $BR with initial conditions \( y(0) = $y0,\) and \(y'(0) = $ydot0. \) $PAR -Find the Laplace transform of the solution \( Y(s). \) Write the solution as a single fraction in \( s \) +Find the Laplace transform of the solution \( Y(s). \) Write the solution as a single fraction in \( s \) $BR -\( Y(s) = \) \{ ans_rule(60)\} \{ AnswerFormatHelp("formulas") \} +\( Y(s) = \) \{ ans_rule(60)\} \{ helpLink("formulas") \} $PAR END_TEXT @@ -151,7 +151,7 @@ END_TEXT ANS( $frac-> cmp()); BEGIN_TEXT -Find the partial fraction decomposition of \( Y(s) \). Enter all factors as first order terms in \( s \), that is, all terms should be of the form \( \frac{c}{s-p} \), where \( c \) is a constant and the root \( p \) is a constant. Both \( c \) and \( p \) may be complex. +Find the partial fraction decomposition of \( Y(s) \). Enter all factors as first order terms in \( s \), that is, all terms should be of the form \( \frac{c}{s-p} \), where \( c \) is a constant and the root \( p \) is a constant. Both \( c \) and \( p \) may be complex. $BR $BR \( \displaystyle Y(s) = \) \{ ans_rule(20)\} \(+\) \{ ans_rule(20)\} \(+\) \{ ans_rule(20)\} @@ -165,7 +165,7 @@ $BR $BR \( \displaystyle y(t) = {\mathcal L}^{-1} \left\lbrace Y(s) \right\rbrace = \) \{ ans_rule(50) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT @@ -178,7 +178,7 @@ Context()->normalStrings; $showPartialCorrectAnswers = 1; # note that ALL answers in a problem must be unordered!! -# in this case, the terms are unordered and checked as such, but it is +# in this case, the terms are unordered and checked as such, but it is # highly unlikely anyone would enter the last answer in the wrong place # but so what if they did diff --git a/Pending/NCSU/ECE220_Problem_8.19-22a.pg b/Pending/NCSU/ECE220_Problem_8.19-22a.pg index df2781a72b..6cd6b1f331 100755 --- a/Pending/NCSU/ECE220_Problem_8.19-22a.pg +++ b/Pending/NCSU/ECE220_Problem_8.19-22a.pg @@ -20,12 +20,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unorderedAnswer.pl", "parserMultiAnswer.pl", "parserFunction.pl", @@ -68,9 +68,9 @@ Context()->flags->set( # create differential equation with roots below # real roots for the input, real for the system- 1st order -# this means swapping r3 and r1 +# this means swapping r3 and r1 # force pure cosine f0r this problem -# PFE of c1/(s+r1) + c2/(s-r2) +# PFE of c1/(s+r1) + c2/(s-r2) $r1 = -random(1,9,1); # root for input @@ -108,11 +108,11 @@ $ft = Compute("($c1*e^($r1*t) + $c3*e^($r3*t))*u(t)"); Context()->texStrings; BEGIN_TEXT -This problem is related to Problems 8.16-21 in the text. -$BR +This problem is related to Problems 8.16-21 in the text. +$BR $PAR -Consider the differential equation \( y'(t) - $r3 y(t) = $A e^{ $r1 t} u(t) \), -$BR with initial condition \( y(0) = $y0,\) +Consider the differential equation \( y'(t) - $r3 y(t) = $A e^{ $r1 t} u(t) \), +$BR with initial condition \( y(0) = $y0,\) $PAR Find the Laplace transform of the solution \( Y(s). \) Write the solution as a single fraction in \( s \) @@ -122,12 +122,12 @@ ANS( $frac-> cmp() ); BEGIN_TEXT -\( Y(s) = \) \{ ans_rule(60)\} \{ AnswerFormatHelp("formulas") \} +\( Y(s) = \) \{ ans_rule(60)\} \{ helpLink("formulas") \} $PAR -Find the partial fraction decomposition of \( Y(s) \). Enter all factors as first order terms in \( s \), that is, all terms should be of the form \( \frac{c}{s-p} \), where \( c \) is a constant and the root \( p \) is a constant. Both \( c \) and \( p \) may be complex. +Find the partial fraction decomposition of \( Y(s) \). Enter all factors as first order terms in \( s \), that is, all terms should be of the form \( \frac{c}{s-p} \), where \( c \) is a constant and the root \( p \) is a constant. Both \( c \) and \( p \) may be complex. $BR $BR -\( \displaystyle Y(s) = \) \{ ans_rule(20)\} \(+\) \{ ans_rule(20)\} +\( \displaystyle Y(s) = \) \{ ans_rule(20)\} \(+\) \{ ans_rule(20)\} END_TEXT UNORDERED_ANS( $fac1->cmp(), $fac3->cmp()); @@ -139,7 +139,7 @@ $BR $BR \( \displaystyle y(t) = {\mathcal L}^{-1} \left\lbrace Y(s) \right\rbrace = \) \{ ans_rule(50) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT diff --git a/Pending/NCSU/ECE220_Problem_8.19-22b.pg b/Pending/NCSU/ECE220_Problem_8.19-22b.pg index dfef4daa68..85f34eee99 100755 --- a/Pending/NCSU/ECE220_Problem_8.19-22b.pg +++ b/Pending/NCSU/ECE220_Problem_8.19-22b.pg @@ -19,12 +19,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unorderedAnswer.pl", "parserMultiAnswer.pl", "parserFunction.pl", @@ -65,7 +65,7 @@ Context()->flags->set( # create differential equation with roots below # complex roots for the input, real for the system- 1st order -# this means swapping r3 and (r1 and r2) +# this means swapping r3 and (r1 and r2) # force pure cosine f0r this problem # PFE of c1/(s+r1) + c2/(s-r2) + c3/(s-r3) @@ -113,7 +113,7 @@ $c2im = -($c2-$c2conj)*i; $c2re = $c2+$c2conj; # compute phi in range [-pi,pi] -if ($c2re > 0 ) {$phi = atan($c2im/$c2re);} +if ($c2re > 0 ) {$phi = atan($c2im/$c2re);} elsif ($c2im > 0) {$phi = atan($c2im/$c2re) + pi;} else {$phi = atan($c2im/$c2re) - pi;} @@ -131,16 +131,16 @@ $ft = Formula("(2*$mag*cos($w*t+$phi) + $c3*e^($r3*t))*u(t)")->reduce; Context()->texStrings; BEGIN_TEXT -This problem is related to Problems 8.16-21 in the text. +This problem is related to Problems 8.16-21 in the text. $PAR -Consider the differential equation \( y'(t) - $r3 y(t) = $A cos( $w t) u(t) \), -$BR with initial condition \( y(0) = $y0,\) +Consider the differential equation \( y'(t) - $r3 y(t) = $A cos( $w t) u(t) \), +$BR with initial condition \( y(0) = $y0,\) $PAR Find the Laplace transform of the solution \( Y(s). \) Write the solution as a single fraction in \( s \) $BR -\( Y(s) = \) \{ ans_rule(60)\} \{ AnswerFormatHelp("formulas") \} +\( Y(s) = \) \{ ans_rule(60)\} \{ helpLink("formulas") \} $PAR END_TEXT @@ -150,7 +150,7 @@ ANS( $frac-> cmp()); BEGIN_TEXT -Find the partial fraction decomposition of \( Y(s) \). Enter all factors as first order terms in \( s \), that is, all terms should be of the form \( \frac{c}{s-p} \), where \( c \) is a constant and the root \( p \) is a constant. Both \( c \) and \( p \) may be complex. +Find the partial fraction decomposition of \( Y(s) \). Enter all factors as first order terms in \( s \), that is, all terms should be of the form \( \frac{c}{s-p} \), where \( c \) is a constant and the root \( p \) is a constant. Both \( c \) and \( p \) may be complex. $BR $BR \( \displaystyle Y(s) = \) \{ ans_rule(20)\} \(+\) \{ ans_rule(20)\} \(+\) \{ ans_rule(20)\} @@ -167,7 +167,7 @@ $BR $BR \( \displaystyle y(t) = {\mathcal L}^{-1} \left\lbrace Y(s) \right\rbrace = \) \{ ans_rule(50) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT @@ -180,7 +180,7 @@ Context()->normalStrings; $showPartialCorrectAnswers = 1; # note that ALL answers in a problem must be unordered!! -# in this case, the terms are unordered and checked as such, but it is +# in this case, the terms are unordered and checked as such, but it is # highly unlikely anyone would enter the last answer in the wrong place # but so what if they did diff --git a/Pending/NCSU/ECE220_Problem_8.19-22c.pg b/Pending/NCSU/ECE220_Problem_8.19-22c.pg index bd68db856d..7072d2c852 100755 --- a/Pending/NCSU/ECE220_Problem_8.19-22c.pg +++ b/Pending/NCSU/ECE220_Problem_8.19-22c.pg @@ -20,12 +20,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "unorderedAnswer.pl", "parserMultiAnswer.pl", "parserFunction.pl", @@ -79,8 +79,8 @@ $r3 = -random(1,9,1); ; # third root $c1r = non_zero_random(-6,6,1); # constant multiplying complex exp. $c1i = non_zero_random(0,6,1); # constant multiplying complex exp. $c1 = $c1r + $c1i*i; -$c2 = $c1r - $c1i*i; -$c3 = non_zero_random(-6,6,1); # constant multiplying real exp. +$c2 = $c1r - $c1i*i; +$c3 = non_zero_random(-6,6,1); # constant multiplying real exp. # combine first two roots into quadratic (a*s - b)/(s^2 - d1*s + d0) $a = $c1 + $c2; @@ -94,9 +94,9 @@ $f2 = $a + $c3; $f1 = $b + $a*$r3 + $c3*$d1; $f0 = $b*$r3 + $c3*$d0; -# constants for DiffEq +# constants for DiffEq $a1 = -($r1 + $r2); -$a0 = $r1*$r2; +$a0 = $r1*$r2; # solve for coefficients of diffEq y'' +a1*y'+a0 = A y_s # where Y_s(s) = A/(s-r3) r3 is real @@ -111,7 +111,7 @@ $A = $r3*($ydot0+$y0*(-$r1-$r2)) + $c1*$r2*$r3 + $c2*$r1*$r3 + $c3*$r2*$r1; # y(t) = c1*e^(r1*t) + c2*e^(r2*t) + c3*e^(r3*t) $y0 = $c1 + $c2 + $c3; $ydot0 = $r1*$c1 + $r2*$c2 + $r3*$c3; -$A = $c3*(($r3)**2 + $a1*$r3 + $a0); +$A = $c3*(($r3)**2 + $a1*$r3 + $a0); $frac = Formula(" ($f2 s^2 - $f1*s + $f0 )/[(s-$r3)*(s^2 - $d1*s + $d0)] ")->reduce; @@ -122,7 +122,7 @@ $fac3 = Formula("$c3/(s-$r3)")->reduce; $mag = abs($c1)*2; # compute phi in range [-pi,pi] -if ($c1r > 0 ) {$phi = atan($c1i/$c1r);} +if ($c1r > 0 ) {$phi = atan($c1i/$c1r);} elsif ($c1i > 0) {$phi = atan($c1i/$c1r) + pi;} else {$phi = atan($c1i/$c1r) - pi;} @@ -137,13 +137,13 @@ BEGIN_TEXT This problem is related to Problems 8.16-21 in the text. $PAR -Consider the differential equation \( y''(t) + $a1 y'(t) + $a0 y(t) = $A e^{$r3 t} u(t) \), +Consider the differential equation \( y''(t) + $a1 y'(t) + $a0 y(t) = $A e^{$r3 t} u(t) \), $BR with initial conditions \( y(0) = $y0,\) and \(y'(0) = $ydot0. \) $PAR Find the Laplace transform of the solution \( Y(s). \) Write the solution as a single fraction in \( s \) $BR -\( Y(s) = \) \{ ans_rule(60)\} \{ AnswerFormatHelp("formulas") \} +\( Y(s) = \) \{ ans_rule(60)\} \{ helpLink("formulas") \} $PAR END_TEXT @@ -151,7 +151,7 @@ ANS( $frac-> cmp()); BEGIN_TEXT -Find the partial fraction decomposition of \( Y(s) \). Enter all factors as first order terms in \( s \), that is, all terms should be of the form \( \frac{c}{s-p} \), where \( c \) is a constant and the root \( p \) is a constant. Both \( c \) and \( p \) may be complex. +Find the partial fraction decomposition of \( Y(s) \). Enter all factors as first order terms in \( s \), that is, all terms should be of the form \( \frac{c}{s-p} \), where \( c \) is a constant and the root \( p \) is a constant. Both \( c \) and \( p \) may be complex. $BR $BR \( \displaystyle Y(s) = \) \{ ans_rule(20)\} \(+\) \{ ans_rule(20)\} \(+\) \{ ans_rule(20)\} @@ -166,7 +166,7 @@ $BR $BR \( \displaystyle y(t) = {\mathcal L}^{-1} \left\lbrace Y(s) \right\rbrace = \) \{ ans_rule(50) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT @@ -179,7 +179,7 @@ Context()->normalStrings; $showPartialCorrectAnswers = 1; # note that ALL answers in a problem must be unordered!! -# in this case, the terms are unordered and checked as such, but it is +# in this case, the terms are unordered and checked as such, but it is # highly unlikely anyone would enter the last answer in the wrong place # but so what if they did diff --git a/Pending/NCSU/ECE220_Problem_8.19-22d.pg b/Pending/NCSU/ECE220_Problem_8.19-22d.pg index e4cfb91fab..d61baf2e07 100755 --- a/Pending/NCSU/ECE220_Problem_8.19-22d.pg +++ b/Pending/NCSU/ECE220_Problem_8.19-22d.pg @@ -21,12 +21,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "parserFunction.pl", "PGcourse.pl" @@ -90,7 +90,7 @@ $BR \{ ans_rule(40) \} \( = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $ITEMSEP $ITEM Solve your equation for \( Y(s) \). diff --git a/Pending/NCSU/ECE220_Problem_8.19-22e.pg b/Pending/NCSU/ECE220_Problem_8.19-22e.pg index a9d11fdf4a..c86481fa11 100755 --- a/Pending/NCSU/ECE220_Problem_8.19-22e.pg +++ b/Pending/NCSU/ECE220_Problem_8.19-22e.pg @@ -20,12 +20,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "parserFunction.pl", "PGcourse.pl" @@ -76,18 +76,18 @@ Consider the initial value problem \{ BeginList('OL', type=>'a') \} -$ITEM Take the Laplace transform of both sides of the -given differential equation to create the corresponding -algebraic equation. Denote the Laplace transform of -\( y(t) \) by \( Y(s) \). Do not move any terms from -one side of the equation to the other (until you get +$ITEM Take the Laplace transform of both sides of the +given differential equation to create the corresponding +algebraic equation. Denote the Laplace transform of +\( y(t) \) by \( Y(s) \). Do not move any terms from +one side of the equation to the other (until you get to part (b) below). $BR $BR \{ ans_rule(40) \} \( = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $ITEMSEP $ITEM Solve your equation for \( Y(s) \). diff --git a/Pending/NCSU/ECE220_Problem_8.21a.pg b/Pending/NCSU/ECE220_Problem_8.21a.pg index 45e4c0e5bc..b2f7f6eac8 100755 --- a/Pending/NCSU/ECE220_Problem_8.21a.pg +++ b/Pending/NCSU/ECE220_Problem_8.21a.pg @@ -20,12 +20,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "parserFunction.pl", "PGcourse.pl" @@ -89,7 +89,7 @@ $BR \{ ans_rule(40) \} \( = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $ITEMSEP $ITEM Solve your equation for \( Y(s) \). diff --git a/Pending/NCSU/ECE220_Problem_8.23-26a.pg b/Pending/NCSU/ECE220_Problem_8.23-26a.pg index 0f261ed9d1..d985a746e1 100755 --- a/Pending/NCSU/ECE220_Problem_8.23-26a.pg +++ b/Pending/NCSU/ECE220_Problem_8.23-26a.pg @@ -18,12 +18,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "unorderedAnswer.pl", "parserMultiAnswer.pl", @@ -73,10 +73,10 @@ do {$r3 = -random(1,9,1);} until ($r3 != $r1 & $r3 != $r2); # third root $c0 = non_zero_random(-6,6,1); # constant multiplying real exp. -$c1 = random(-6,6,1); # constant multiplying real exp. -$c2 = non_zero_random(-6,6,1); # constant multiplying real exp. +$c1 = random(-6,6,1); # constant multiplying real exp. +$c2 = non_zero_random(-6,6,1); # constant multiplying real exp. -# +# @@ -88,16 +88,16 @@ $frac = Formula(" 1/($c2*s^2 + $c1*s + $c0) "); Context()->texStrings; BEGIN_TEXT -This problem is related to Problems 8.23-26 in the text. +This problem is related to Problems 8.23-26 in the text. $PAR -A system is described by the differential equation \( $c2 y''(t) + $c1 y'(t) + $c0 y(t) = y_s(t) \), +A system is described by the differential equation \( $c2 y''(t) + $c1 y'(t) + $c0 y(t) = y_s(t) \), $PAR Find the transfer function associated with this system \( H(s). \) Write the solution as a single fraction in \( s \) $BR -\( H(s) = \) \{ ans_rule(60)\} \{ AnswerFormatHelp("formulas") \} +\( H(s) = \) \{ ans_rule(60)\} \{ helpLink("formulas") \} $PAR @@ -111,7 +111,7 @@ Context()->normalStrings; $showPartialCorrectAnswers = 1; # note that ALL answers in a problem must be unordered!! -# in this case, the terms are unordered and checked as such, but it is +# in this case, the terms are unordered and checked as such, but it is # highly unlikely anyone would enter the last answer in the wrong place # but so what if they did diff --git a/Pending/NCSU/ECE220_Problem_8.23-26b.pg b/Pending/NCSU/ECE220_Problem_8.23-26b.pg index a7a49fe674..840b80c991 100755 --- a/Pending/NCSU/ECE220_Problem_8.23-26b.pg +++ b/Pending/NCSU/ECE220_Problem_8.23-26b.pg @@ -21,12 +21,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "answerHints.pl", "parserAssignment.pl", @@ -71,7 +71,7 @@ where \( a, b, c \) are constants and \( f(t) \) is a known function. We can vi $BR $BR -Suppose an input \( f(t) = $ft \), when applied to the linear system above, produces the output \( y(t) = $yt, \ t\geq 0. \) +Suppose an input \( f(t) = $ft \), when applied to the linear system above, produces the output \( y(t) = $yt, \ t\geq 0. \) \{ BeginList('OL', type=>'a') \} @@ -93,7 +93,7 @@ $BR \( \displaystyle \Theta(s) = \) \{ ans_rule(60) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} \{ EndList('OL', type=>'a') \} END_TEXT diff --git a/Pending/NCSU/ECE220_Problem_8.3.pg b/Pending/NCSU/ECE220_Problem_8.3.pg index 4f0a4738a7..8ef01b0df4 100755 --- a/Pending/NCSU/ECE220_Problem_8.3.pg +++ b/Pending/NCSU/ECE220_Problem_8.3.pg @@ -20,12 +20,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "unorderedAnswer.pl", "parserMultiAnswer.pl", @@ -75,8 +75,8 @@ do {$r3 = -random(1,9,1);} until ($r3 != $r1 & $r3 != $r2); # third root $c1 = non_zero_random(-6,6,1); # constant multiplying real exp. -$c2 = non_zero_random(-6,6,1); # constant multiplying real exp. -$c3 = non_zero_random(-6,6,1); # constant multiplying real exp. +$c2 = non_zero_random(-6,6,1); # constant multiplying real exp. +$c3 = non_zero_random(-6,6,1); # constant multiplying real exp. # combine first two roots into quadratic (a*s - b)/(s^2 - d1*s + d0) $a = $c1 + $c2; @@ -90,9 +90,9 @@ $f2 = $a + $c3; $f1 = $b + $a*$r3 + $c3*$d1; $f0 = $b*$r3 + $c3*$d0; -# constants for DiffEq +# constants for DiffEq $a1 = -($r1 + $r2); -$a0 = $r1*$r2; +$a0 = $r1*$r2; # solve for coefficients of diffEq y'' +a1*y'+a0 = A y_s @@ -103,7 +103,7 @@ $a0 = $r1*$r2; # this gives Y(s) = [s^2 * y0 + s*(ydot0 + a1*y0 - r3*y0) + (A -r3*ydot0 - r3*a1*y0) ]/[(s-r3)(s^2+a1*s+a0)] # using s^2*f2 - s*f1 + f0 = s^2 * y0 + s*(ydot0 + a1*y0 - r3*y0) + (A -r3*ydot0 - r3*a1*y0) # we have - this had a sign error and now works - left here for later checking -# $y0 = $f2; +# $y0 = $f2; # $ydot0 = -$f1 -$a1*$y0 + $r3*$y0; # $A = $f0 + $r3*$ydot0 + $r3*$a1*$y0; @@ -111,7 +111,7 @@ $a0 = $r1*$r2; # y(t) = c1*e^(r1*t) + c2*e^(r2*t) + c3*e^(r3*t) $y0 = $c1 + $c2 + $c3; $ydot0 = $r1*$c1 + $r2*$c2 + $r3*$c3; -$A = $c3*(($r3)**2 + $a1*$r3 + $a0); +$A = $c3*(($r3)**2 + $a1*$r3 + $a0); # old calc #$y0 = $c1+$c2+$c3; @@ -137,13 +137,13 @@ BEGIN_TEXT This problem is related to Problems 8.16-21 in the text. $PAR -Consider the differential equation \( y''(t) + $a1 y'(t) + $a0 y(t) = $A e^{$r3 t} u(t) \), +Consider the differential equation \( y''(t) + $a1 y'(t) + $a0 y(t) = $A e^{$r3 t} u(t) \), $BR with initial conditions \( y(0) = $y0,\) and \(y'(0) = $ydot0. \) $PAR -Find the Laplace transform of the solution \( Y(s). \) Write the solution as a single fraction in \( s \) +Find the Laplace transform of the solution \( Y(s). \) Write the solution as a single fraction in \( s \) $BR -\( Y(s) = \) \{ ans_rule(60)\} \{ AnswerFormatHelp("formulas") \} +\( Y(s) = \) \{ ans_rule(60)\} \{ helpLink("formulas") \} $PAR END_TEXT @@ -151,7 +151,7 @@ END_TEXT ANS( $frac-> cmp()); BEGIN_TEXT -Find the partial fraction decomposition of \( Y(s) \). Enter all factors as first order terms in \( s \), that is, all terms should be of the form \( \frac{c}{s-p} \), where \( c \) is a constant and the root \( p \) is a constant. Both \( c \) and \( p \) may be complex. +Find the partial fraction decomposition of \( Y(s) \). Enter all factors as first order terms in \( s \), that is, all terms should be of the form \( \frac{c}{s-p} \), where \( c \) is a constant and the root \( p \) is a constant. Both \( c \) and \( p \) may be complex. $BR $BR \( \displaystyle Y(s) = \) \{ ans_rule(20)\} \(+\) \{ ans_rule(20)\} \(+\) \{ ans_rule(20)\} @@ -165,7 +165,7 @@ $BR $BR \( \displaystyle y(t) = {\mathcal L}^{-1} \left\lbrace Y(s) \right\rbrace = \) \{ ans_rule(50) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT @@ -178,7 +178,7 @@ Context()->normalStrings; $showPartialCorrectAnswers = 1; # note that ALL answers in a problem must be unordered!! -# in this case, the terms are unordered and checked as such, but it is +# in this case, the terms are unordered and checked as such, but it is # highly unlikely anyone would enter the last answer in the wrong place # but so what if they did diff --git a/Pending/NCSU/ECE220_Problem_8.7.pg b/Pending/NCSU/ECE220_Problem_8.7.pg index 45c3fee28c..909f415622 100755 --- a/Pending/NCSU/ECE220_Problem_8.7.pg +++ b/Pending/NCSU/ECE220_Problem_8.7.pg @@ -19,12 +19,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "answerHints.pl", "parserAssignment.pl", @@ -73,7 +73,7 @@ $diff = $v2 - $v1; $answera = Formula("$v1*u(t-$d1) + $diff*u(t-$d2) - $v2*u(t-$d3)")->reduce; -#$answera->{limits} = [$d2-1,$d3+1]; #[0,$d3+1] is too lax since it selects test point randomly. for a large interval, we miss critical points - +#$answera->{limits} = [$d2-1,$d3+1]; #[0,$d3+1] is too lax since it selects test point randomly. for a large interval, we miss critical points - # better to use test_points below # to use individual test points you MUST give values for ALL variables that are set by the Context()->variables->are(t=>"Real",s=>"Real" command @@ -89,10 +89,10 @@ $answerb = Formula("$v1*e^(-$d1*s)/s + $diff*e^(-$d2*s)/s - $v2*e^(-$d3*s)/s ")- Context()->texStrings; BEGIN_TEXT -This problem is related to Problem 8.3 and 8.4 in the text. +This problem is related to Problem 8.3 and 8.4 in the text. $PAR -Consider the function \[ f(t) = \left\lbrace \begin{array}{ l l } 0 & \mbox{ if } 0\leq t < $d1 \\ $v1 & \mbox{ if } $d1 \leq t < $d2 \\ -$v2 & \mbox{ if } $d2 \leq t < $d3 \\ +Consider the function \[ f(t) = \left\lbrace \begin{array}{ l l } 0 & \mbox{ if } 0\leq t < $d1 \\ $v1 & \mbox{ if } $d1 \leq t < $d2 \\ +$v2 & \mbox{ if } $d2 \leq t < $d3 \\ 0 & \mbox{ if } $d3 \leq t < \infty. \end{array} \right. \] @@ -100,16 +100,16 @@ $v2 & \mbox{ if } $d2 \leq t < $d3 \\ $PAR Use the graph of this function to write it in terms of the step function. Use \( u(t-a) \) for the step function shifted \( a \) units horizontally. $BR $BR -\( f(t) = \) +\( f(t) = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $PAR Find the Laplace transform \( F(s) = {\mathcal L}\left\lbrace f(t) \right\rbrace \) for \( s \neq 0 \). $BR $BR \( \displaystyle F(s) = {\mathcal L}\left\lbrace f(t) \right\rbrace = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT diff --git a/Pending/NCSU/ECE220_Problem_8.7a.pg b/Pending/NCSU/ECE220_Problem_8.7a.pg index 10d7006dc4..009004d101 100755 --- a/Pending/NCSU/ECE220_Problem_8.7a.pg +++ b/Pending/NCSU/ECE220_Problem_8.7a.pg @@ -20,12 +20,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "answerHints.pl", "parserAssignment.pl", @@ -71,14 +71,14 @@ $answer = Compute("e^(-$a*s)*1/(s-$b)")->reduce; Context()->texStrings; BEGIN_TEXT -This is a practice problem that is related to Problems 8.1-4 in the text. +This is a practice problem that is related to Problems 8.1-4 in the text. $PAR Find the Laplace transform \( F(s) = {\mathcal L}\left\lbrace f(t) \right\rbrace \) of the function \( f(t) = $ft \), defined on the interval \( t \geq 0 \). $BR $BR \( \displaystyle F(s) = {\mathcal L}\left\lbrace $ft \right\rbrace = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Pending/NCSU/ECE220_Problem_8.7b.pg b/Pending/NCSU/ECE220_Problem_8.7b.pg index 20f72c76e2..4a5fcde1cf 100755 --- a/Pending/NCSU/ECE220_Problem_8.7b.pg +++ b/Pending/NCSU/ECE220_Problem_8.7b.pg @@ -19,12 +19,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "answerHints.pl", "parserAssignment.pl", @@ -65,7 +65,7 @@ $BR $BR \( \displaystyle F(s) = {\mathcal L}\left\lbrace $ft \right\rbrace = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Pending/NCSU/ECE220_Problem_8.9.pg b/Pending/NCSU/ECE220_Problem_8.9.pg index 965e973ae4..2b1e5caa14 100755 --- a/Pending/NCSU/ECE220_Problem_8.9.pg +++ b/Pending/NCSU/ECE220_Problem_8.9.pg @@ -19,12 +19,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "answerHints.pl", "parserAssignment.pl", @@ -50,17 +50,17 @@ $c = random(9,12,1); $mc = new_checkbox_multiple_choice(); $mc -> qa ( -"Select ALL terms below that occur in the general form of the complete partial fraction decomposition of \( F(s) \). The capital letters A, B, C, . . . , L denote constants.", +"Select ALL terms below that occur in the general form of the complete partial fraction decomposition of \( F(s) \). The capital letters A, B, C, . . . , L denote constants.", "\( \displaystyle\frac{Bs+C}{s^2+$b} \) $BR", -"\( \displaystyle\frac{Es+F}{(s^2+$b)^2} \) $BR", -"\( \displaystyle\frac{G}{s+$c} \) $BR", +"\( \displaystyle\frac{Es+F}{(s^2+$b)^2} \) $BR", +"\( \displaystyle\frac{G}{s+$c} \) $BR", "\( \displaystyle\frac{J}{(s+$c)^2} \) $BR" ); $mc -> extra( "\( \displaystyle\frac{A}{s^2+$b} \) $BR", "\( \displaystyle\frac{D}{(s^2+$b)^2} \) $BR", -"\( \displaystyle\frac{Hs+I}{s+$c} \) $BR", +"\( \displaystyle\frac{Hs+I}{s+$c} \) $BR", "\( \displaystyle\frac{Ks+L}{(s+$c)^2} \) $BR" ); diff --git a/Pending/NCSU/ECE220_Problem_9.11.pg b/Pending/NCSU/ECE220_Problem_9.11.pg index 3986d3ecf1..d9d281c2d0 100755 --- a/Pending/NCSU/ECE220_Problem_9.11.pg +++ b/Pending/NCSU/ECE220_Problem_9.11.pg @@ -21,7 +21,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGunion.pl", "parserMultiAnswer.pl", "parserFunction.pl", @@ -73,13 +73,13 @@ $alpha4p = -$alpha1p; TEXT(EV2(< eval(n=>-2); $alpham1 = $FSeries -> eval(n=>-1); -$alpha0 = Compute(($d1*$a1 + $d2*$a2)/$T); +$alpha0 = Compute(($d1*$a1 + $d2*$a2)/$T); $alphap1 = $FSeries -> eval(n=>1); $alphap2 = $FSeries -> eval(n=>2); @@ -76,12 +76,12 @@ if ($alpha0 < 0) {$alpha0p = pi;} # check back for adding pi for correct quadrant $alphap2r = 0.5*($alphap2 + conj($alphap2)); $alphap2i = (-1)*i*0.5*($alphap2 - conj($alphap2)); -if ($alphap2r > 0 ) {$alphap2p = atan($alphap2i/$alphap2r);} +if ($alphap2r > 0 ) {$alphap2p = atan($alphap2i/$alphap2r);} elsif ($alphap2i > 0) {$alphap2p = atan($alphap2i/$alphap2r) + pi;} else {$alphap2p = atan($alphap2i/$alphap2r) - pi;} $alphap1r = 0.5*($alphap1 + conj($alphap1)); $alphap1i = (-1)*i*0.5*($alphap1 - conj($alphap1)); -if ($alphap1r > 0 ) {$alphap1p = atan($alphap1i/$alphap1r);} +if ($alphap1r > 0 ) {$alphap1p = atan($alphap1i/$alphap1r);} elsif ($alphap1i > 0) {$alphap1p = atan($alphap1i/$alphap1r) + pi;} else {$alphap1p = atan($alphap1i/$alphap1r) - pi;} $alpham1p = -$alphap1p; @@ -94,13 +94,13 @@ $f_approx = Formula(" $alpha0 + 2*$alphap1m*cos($w0*t + $alphap1p) + 2*$alphap2m TEXT(EV2(<reduce; $alpham2 = $FSeries_even -> eval(n=>-2); $alpham1 = i/4; -$alpha0 = $FSeries_even -> eval(n=>0); +$alpha0 = $FSeries_even -> eval(n=>0); $alphap1 = (-1)*i/4; $alphap1m = 1/4; $alphap2 = $FSeries_even -> eval(n=>2); @@ -77,32 +77,32 @@ $f_approx = Formula(" $alpha0 + 2*$alphap1m*cos(2*pi*$F*t - pi/2) + 2*$alphap2*c TEXT(EV2(<reduce; @@ -74,16 +74,16 @@ $Sn = Formula("$alpha0*[$a1*exp((-1)*j*$w0*$t0*n) + $a2*exp((-1)*j*$w0*($t0 + $t TEXT(EV2(<texStrings; BEGIN_TEXT This problem is related to Problems 9.33 - 9.38 in the text. $PAR -We have solved differential equations using the method of undetermined coefficients (Chapter 7) and Laplace transforms (Chapter 8). We can use Fourier series to find the particular solution of an arbitrary order differential equation - as long as the driving function is periodic and can be represented by a Fourier series. +We have solved differential equations using the method of undetermined coefficients (Chapter 7) and Laplace transforms (Chapter 8). We can use Fourier series to find the particular solution of an arbitrary order differential equation - as long as the driving function is periodic and can be represented by a Fourier series. -$PAR In the problem description and answers, all numerical angles(phases) should be given in radian angles (not degrees). +$PAR In the problem description and answers, all numerical angles(phases) should be given in radian angles (not degrees). $PAR -Given the differential equation \( y'' + $b y' + $c y = $A1 cos($w1 t + $theta1) u(t) \) . +Given the differential equation \( y'' + $b y' + $c y = $A1 cos($w1 t + $theta1) u(t) \) . \{ BeginList("OL",type=>"a") \} $ITEM Since there is only one frequency involved for this problem, we can set \( w_0 = $w1 \). Write the transfer function for this system as a function of \( n \). (See page 530 of the text.) $BR \( H(n) = \) \{ ans_rule(50) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $ITEMSEP $ITEM Find the particular solution, \( y_p(t) \). No step function in this answer. $BR -Note the accuracy is 0.01% relative error. If the numbers of small, that means you need more decimal places to get the right answer. +Note the accuracy is 0.01% relative error. If the numbers of small, that means you need more decimal places to get the right answer. $BR \( y_p(t) = \) \{ ans_rule(50) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} diff --git a/Pending/NCSU/ECE220_Problem_9.34-38b.pg b/Pending/NCSU/ECE220_Problem_9.34-38b.pg index c18f23cb56..46bc3d43d3 100755 --- a/Pending/NCSU/ECE220_Problem_9.34-38b.pg +++ b/Pending/NCSU/ECE220_Problem_9.34-38b.pg @@ -20,13 +20,13 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PGchoicemacros.pl", - "AnswerFormatHelp.pl", + "unionLists.pl", "answerHints.pl", "PGcomplexmacros.pl", @@ -128,31 +128,31 @@ Context()->texStrings; BEGIN_TEXT This problem is related to Problems 9.33 - 9.38 in the text. $PAR -We have solved differential equations using the method of undetermined coefficients (Chapter 7) and Laplace transforms (Chapter 8). We can use Fourier series to find the particular solution of an arbitrary order differential equation - as long as the driving function is periodic and can be represented by a Fourier series. +We have solved differential equations using the method of undetermined coefficients (Chapter 7) and Laplace transforms (Chapter 8). We can use Fourier series to find the particular solution of an arbitrary order differential equation - as long as the driving function is periodic and can be represented by a Fourier series. -$PAR In the problem description and answers, all numerical angles(phases) should be given in radian angles (not degrees). +$PAR In the problem description and answers, all numerical angles(phases) should be given in radian angles (not degrees). $PAR -Given the differential equation \( y'' + $b y' + $c y = $A1 cos($w1 t + $theta1) + $A2 cos($w2 t + $theta2) \) . +Given the differential equation \( y'' + $b y' + $c y = $A1 cos($w1 t + $theta1) + $A2 cos($w2 t + $theta2) \) . \{ BeginList("OL",type=>"a") \} -$ITEM Write the fundamental frequency that you will use for this system. +$ITEM Write the fundamental frequency that you will use for this system. $BR \( w_o = \) \{ ans_rule(50) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $ITEMSEP $ITEM Write the transfer function for this system as a function of \( n \). (See page 530 of the text.) $BR \( H(n) = \) \{ ans_rule(50) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $ITEMSEP -$ITEM Find the particular solution, \( y_p(t) \). No step function in this answer. -$BR Note the accuracy is 0.01% relative error. If the numbers of small, that means you need more decimal places to get the right answer. +$ITEM Find the particular solution, \( y_p(t) \). No step function in this answer. +$BR Note the accuracy is 0.01% relative error. If the numbers of small, that means you need more decimal places to get the right answer. $BR \( y_p(t) = \) \{ ans_rule(50) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} diff --git a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_1.13.pg b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_1.13.pg index 22e28ad983..7d9aeec730 100755 --- a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_1.13.pg +++ b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_1.13.pg @@ -23,7 +23,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "unionLists.pl", "answerHints.pl", "parserFunction.pl", @@ -49,13 +49,13 @@ $B_lower = $f/(2.5*10**8); $B_upper = 3*$B_lower; $B_delta = 0.1*$B_lower; $B= Real(random($B_lower,$B_upper,$B_delta )); # wavelength in meters -$lambda = 1/$B; +$lambda = 1/$B; $z0 = Real(random(1.5,3.0,0.1)); # distance from generator in meters $V0 = Real(random(0.1*$A,0.5*$A,0.05*$A)); # $alpha=Real(0.46); # put here to check homework answers from written solution -# debug parameters +# debug parameters # $A = 5; $f = Real(2*10**9); $lambda = Real(0.1); $z0 = 2;$B=10; #$V0 =Real( 2); # answers @@ -72,12 +72,12 @@ The voltage of an electromagnetic wave traveling on a transmmission line is give (a) Find the frequency, wavelength and phase velocity of the wave. $PAR -\(f= \) \{ans_rule(20)\} \(GHz\) \{ AnswerFormatHelp("numbers") \}$BR -\(\lambda = \) \{ans_rule(20)\} \(cm\) \{ AnswerFormatHelp("numbers") \}$BR -\(u_p = \) \{ans_rule(20)\} \(\cdot 10^3 km/s\) \{ AnswerFormatHelp("numbers") \}$PAR +\(f= \) \{ans_rule(20)\} \(GHz\) \{ helpLink("numbers") \}$BR +\(\lambda = \) \{ans_rule(20)\} \(cm\) \{ helpLink("numbers") \}$BR +\(u_p = \) \{ans_rule(20)\} \(\cdot 10^3 km/s\) \{ helpLink("numbers") \}$PAR (b) At \(z = $z0 m\), the amplitude of the wave was measured to be \($V0 V\). Find \(\alpha\).$BR Your answer for part (b) will be validated to \(\pm 0.01\) absolute. $BR -\(\alpha = \) \{ans_rule(20)\} \(Np/m\) \{ AnswerFormatHelp("numbers") \}$BR +\(\alpha = \) \{ans_rule(20)\} \(Np/m\) \{ helpLink("numbers") \}$BR END_TEXT Context()->normalStrings; @@ -94,8 +94,8 @@ ANS( $alpha->cmp( tolerance => 0.01, # Solution Context()->texStrings; BEGIN_SOLUTION -$PAR -Part a). This equation is similar to that of Eq. (1.28) in the textbook with +$PAR +Part a). This equation is similar to that of Eq. (1.28) in the textbook with \(\omega=2 \pi \cdot $f rad/s, \beta=2 \pi \cdot $B rad/m\). From Eq. (1.29a), \(f=\frac{\omega}{2 \pi}=$fg GHz\); from Eq. (1.29b), \(\lambda=\frac{2 \pi}{\beta}=$lambda m \). From Eq. (1.30), \(u_p=\frac{\omega}{\beta}=$u_p \cdot 10^3 km/s\). $PAR diff --git a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_1.16.pg b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_1.16.pg index 555518afd0..42920bc2e5 100755 --- a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_1.16.pg +++ b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_1.16.pg @@ -23,7 +23,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -95,17 +95,17 @@ BEGIN_TEXT $BBOLD This problem is related to Problem 1.16 in the "The Fundamentals of Applied Electromagnetic 7Ed, (Ulaby & Ravaioli)" $EBOLD $BR -Evaluate each of the following complex numbers and express the result in rectangular form, your answers will be validated to \(\pm 0.01\) absolute. +Evaluate each of the following complex numbers and express the result in rectangular form, your answers will be validated to \(\pm 0.01\) absolute. $PAR -(a) \(z_1=$modz1 e^{j \cdot \pi/$angz1inv} \)= \{ans_rule(10)\} + j \{ans_rule(10)\} \{ AnswerFormatHelp("numbers") \} $BR -(b) \(z_2=\sqrt{$z2sqr} \cdot e^{j \cdot \pi \cdot $angz2num/$angz2den} \)= \{ans_rule(10)\} + j \{ans_rule(10)\} \{ AnswerFormatHelp("numbers") \}$BR - -(c) \(z_3=$modz3 \cdot e^{j \cdot \pi/($angz3inv)} \)= \{ans_rule(10)\} + j \{ans_rule(10)\} \{ AnswerFormatHelp("numbers") \}$BR -(d) \(z_4=j^{$z4pwr }\)= \{ans_rule(10)\} + j \{ans_rule(10)\} \{ AnswerFormatHelp("numbers") \}$BR -(e) \(z_5=j^{$z5pwr}\)= \{ans_rule(10)\} + j \{ans_rule(10)\} \{ AnswerFormatHelp("numbers") \}$BR -(f) \(z_6=(1-j)^{$z6pwr} \)= \{ans_rule(10)\} + j \{ans_rule(10)\} \{ AnswerFormatHelp("numbers") \}$BR -(g) \(z_7=(1-j)^{1/$z7pwrinv}\)= \{ans_rule(80)\} \{ AnswerFormatHelp("numbers") \}$BR -Note: There are multiple solutions for (g), please enter your answers in comma separated list. Your answers may be listed in any order. +(a) \(z_1=$modz1 e^{j \cdot \pi/$angz1inv} \)= \{ans_rule(10)\} + j \{ans_rule(10)\} \{ helpLink("numbers") \} $BR +(b) \(z_2=\sqrt{$z2sqr} \cdot e^{j \cdot \pi \cdot $angz2num/$angz2den} \)= \{ans_rule(10)\} + j \{ans_rule(10)\} \{ helpLink("numbers") \}$BR + +(c) \(z_3=$modz3 \cdot e^{j \cdot \pi/($angz3inv)} \)= \{ans_rule(10)\} + j \{ans_rule(10)\} \{ helpLink("numbers") \}$BR +(d) \(z_4=j^{$z4pwr }\)= \{ans_rule(10)\} + j \{ans_rule(10)\} \{ helpLink("numbers") \}$BR +(e) \(z_5=j^{$z5pwr}\)= \{ans_rule(10)\} + j \{ans_rule(10)\} \{ helpLink("numbers") \}$BR +(f) \(z_6=(1-j)^{$z6pwr} \)= \{ans_rule(10)\} + j \{ans_rule(10)\} \{ helpLink("numbers") \}$BR +(g) \(z_7=(1-j)^{1/$z7pwrinv}\)= \{ans_rule(80)\} \{ helpLink("numbers") \}$BR +Note: There are multiple solutions for (g), please enter your answers in comma separated list. Your answers may be listed in any order. END_TEXT Context()->normalStrings; @@ -128,7 +128,7 @@ ANS($L->cmp); # Solution Context()->texStrings; BEGIN_SOLUTION -$PAR +$PAR a) \($rez1+$imz1 j\), b) \($rez2+$imz2 j\), c) \($rez3+$imz3 j\), diff --git a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_1.26.pg b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_1.26.pg index fb9555705d..e9a6faf0d6 100755 --- a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_1.26.pg +++ b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_1.26.pg @@ -23,7 +23,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -75,9 +75,9 @@ $angz5inv2=Real($array2[$indx]); #end solution check -$formula_a = Formula("$modz1*exp(i*pi/$angz1inv)")->reduce; -$formula_b = Formula("$modz2*exp(-pi*(1/2-1/$angz2inv)*i)")->reduce; -$formula_c = Formula("$modz31*exp($modz32*x)*exp(-pi*(1/2-1/$angz3inv)*i)")->reduce; +$formula_a = Formula("$modz1*exp(i*pi/$angz1inv)")->reduce; +$formula_b = Formula("$modz2*exp(-pi*(1/2-1/$angz2inv)*i)")->reduce; +$formula_c = Formula("$modz31*exp($modz32*x)*exp(-pi*(1/2-1/$angz3inv)*i)")->reduce; $modd=abs($modz4); $phd=-(1-$angz4num/$angz4inv)*180; $mode=$modz51+$modz52; @@ -87,22 +87,22 @@ Context()->texStrings; BEGIN_TEXT $BBOLD This problem is related to Problem 1.26 in the "The Fundamentals of Applied Electromagnetic 7Ed, (Ulaby & Ravaioli)" $EBOLD $BR -Evaluate each of the following complex numbers and express the result in phasor form. +Evaluate each of the following complex numbers and express the result in phasor form. $PAR The answers to the first three questions should be expressed in imaginary exponential form with respect to variable \(x\) and/or \(t\). In these three questions, your answers will be validated to \(\pm 0.01\) absolute. $BR (a) \(v(t)=$modz1 cos(\omega t +\frac{\pi}{$angz1inv}) \) \(V\) $BR - \(\tilde{V}=\)\{ans_rule(40)\} \(V\) \{ AnswerFormatHelp("formula") \}$BR + \(\tilde{V}=\)\{ans_rule(40)\} \(V\) \{ helpLink("formula") \}$BR (b) \(v(t)=$modz2 sin(\omega t +\frac{\pi}{$angz2inv}) \) \(V\) $BR - \(\tilde{V}=\) \{ans_rule(40)\} \(V\) \{ AnswerFormatHelp("formula") \}$BR + \(\tilde{V}=\) \{ans_rule(40)\} \(V\) \{ helpLink("formula") \}$BR (c) \(i(x,t)=$modz31 e^{$modz32 x} sin(\omega t +\frac{\pi}{$angz3inv}) \) \(A\) $BR -\(\tilde{I}=\) \{ans_rule(40)\} \(A\) \{ AnswerFormatHelp("formula") \}$PAR +\(\tilde{I}=\) \{ans_rule(40)\} \(A\) \{ helpLink("formula") \}$PAR In the following two questions, the phase angles should be expressed in degrees. In these two questions, your answers will be validated to \(\pm 1%\).$BR -(d) \(i(t)=$modz4 cos(\omega t +\frac{$angz4num \pi}{$angz4inv}) \) \(A\) $BR \(\tilde{I}=\) \{ans_rule(10)\} \(\angle \) \{ans_rule(10)\} \(^{\circ} A\) \{ AnswerFormatHelp("numbers") \} $BR +(d) \(i(t)=$modz4 cos(\omega t +\frac{$angz4num \pi}{$angz4inv}) \) \(A\) $BR \(\tilde{I}=\) \{ans_rule(10)\} \(\angle \) \{ans_rule(10)\} \(^{\circ} A\) \{ helpLink("numbers") \} $BR (e) \(i(t)=$modz51 sin(\omega t +\frac{\pi}{$angz5inv1}) + $modz52 cos(\omega t - \frac{\pi}{$angz5inv2}) \) \(A\) $BR -\(\tilde{I}=\) \{ans_rule(10)\} \(\angle \) \{ans_rule(10)\} \(^{\circ} A\) \{ AnswerFormatHelp("numbers") \}$BR +\(\tilde{I}=\) \{ans_rule(10)\} \(\angle \) \{ans_rule(10)\} \(^{\circ} A\) \{ helpLink("numbers") \}$BR END_TEXT Context()->normalStrings; @@ -122,7 +122,7 @@ tolType => "relative",) ); # Solution Context()->texStrings; BEGIN_SOLUTION -$PAR +$PAR a) \($formula_a V\),$BR b) \(v(t)=$modz2 sin(\omega t +\frac{\pi}{$angz2inv})=$modz2 cos(\frac{\pi}{2}-\omega t +\frac{\pi}{$angz2inv})=$formula_b V\),$BR c) \(v(t)=$modz31 e^{$modz32 x} sin(\omega t +\frac{\pi}{$angz3inv})=$modz31 e^{$modz32 x} cos(\frac{\pi}{2} - \omega t -\frac{\pi}{$angz3inv})=$formula_c A\),$BR diff --git a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_1.28.pg b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_1.28.pg index 7ec0421fb6..81546dea2b 100755 --- a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_1.28.pg +++ b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_1.28.pg @@ -23,12 +23,12 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "unionLists.pl", "answerHints.pl", "parserFunction.pl", @@ -88,25 +88,25 @@ $PAR A series RLC circuit is connected to a generator with a voltage with \( v_s(t) = V_0 cos(\omega t + \pi/3) \) Volts. $PAR -a) Write the voltage loop equation in terms of the current \(i(t)\), using the symbolic values \( R\), \( L\), \( C\), \( v_s(t)\). +a) Write the voltage loop equation in terms of the current \(i(t)\), using the symbolic values \( R\), \( L\), \( C\), \( v_s(t)\). $BR -\(\Large{ v_s(t) = }\) \{ ans_rule(10) \}\( \Large{ \frac{di(t)}{dt} } \) + \{ ans_rule(10) \}\( \Large{ \int i(t) dt } \) + \{ ans_rule(10) \}\( \Large{ i(t) } \) -\{ AnswerFormatHelp("formulas") \} +\(\Large{ v_s(t) = }\) \{ ans_rule(10) \}\( \Large{ \frac{di(t)}{dt} } \) + \{ ans_rule(10) \}\( \Large{ \int i(t) dt } \) + \{ ans_rule(10) \}\( \Large{ i(t) } \) +\{ helpLink("formulas") \} -$PAR +$PAR b) Write the corresponding phasor-domain equation. In addition to the variables specified in Part a), use upper case \(I\) for the phasor current \(\tilde{I}\) and \(w\) for the frequency \(\omega\).$BR \(\tilde{V}_s = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} -$PAR +$PAR c) Solve the equation to obtain an expression for the phasor current \(\tilde{ I }\). $BR \( \tilde{I} = \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_1.9.pg b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_1.9.pg index 3ca3c385a6..13db2742ef 100755 --- a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_1.9.pg +++ b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_1.9.pg @@ -23,7 +23,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "unionLists.pl", "answerHints.pl", "parserFunction.pl", @@ -78,15 +78,15 @@ The form of the solution is \( y(x,t) = A \cos(2\pi f t+ \beta x + \phi) \) with (a) \(y(x,0) = 0\) at \(x = $x0\) cm $BR There are two phases, \(\phi_1\) and \(\phi_2\) that will work for this case. The phases should in the interval \([-\pi,\pi] \).$BR Give the two phases, where \(\phi_1 > \phi_2 \): $BR -\(\phi_1 = \) \{ans_rule(20)\} and \(\phi_2 = \) \{ans_rule(20)\} radians \{ AnswerFormatHelp("numbers") \}$BR - \(y(x,t) = \) \{ans_rule(30)\} (cm) for phase 1 \{ AnswerFormatHelp("formulas") \}$BR - \(y(x,t) = \) \{ans_rule(30)\} (cm) for phase 2 \{ AnswerFormatHelp("formulas") \} $PAR +\(\phi_1 = \) \{ans_rule(20)\} and \(\phi_2 = \) \{ans_rule(20)\} radians \{ helpLink("numbers") \}$BR + \(y(x,t) = \) \{ans_rule(30)\} (cm) for phase 1 \{ helpLink("formulas") \}$BR + \(y(x,t) = \) \{ans_rule(30)\} (cm) for phase 2 \{ helpLink("formulas") \} $PAR (b) \(y(x,0) = 0\) at \(x = $x1\) cm$BR There are two phases, \(\phi_1\) and \(\phi_2\) that will work for this case. The phases should in the interval \([-\pi,\pi] \).$BR Give the two phases, where \(\phi_1 > \phi_2 \): $BR -\(\phi_1 = \) \{ans_rule(20)\} and \(\phi_2 = \) \{ans_rule(20)\} radians \{ AnswerFormatHelp("numbers") \}$BR - \(y(x,t) = \) \{ans_rule(30)\} (cm) for phase 1 \{ AnswerFormatHelp("formulas") \}$BR - \(y(x,t) = \) \{ans_rule(30)\} (cm) for phase 2 \{ AnswerFormatHelp("formulas") \}$BR +\(\phi_1 = \) \{ans_rule(20)\} and \(\phi_2 = \) \{ans_rule(20)\} radians \{ helpLink("numbers") \}$BR + \(y(x,t) = \) \{ans_rule(30)\} (cm) for phase 1 \{ helpLink("formulas") \}$BR + \(y(x,t) = \) \{ans_rule(30)\} (cm) for phase 2 \{ helpLink("formulas") \}$BR END_TEXT Context()->normalStrings; @@ -110,7 +110,7 @@ ANS($yxt4->cmp( tolerance => 0.1, # Solution Context()->texStrings; BEGIN_SOLUTION -$PAR +$PAR For a wave travelling in the negative \(x\)-direction, we use Eq. (1.17) in the textbook with \(\omega=2 \pi f =$omega rad/s, \beta=\frac{2\pi} {\lambda}=$beta rad/s, A=$A cm,\) and \(x\) assigned a positive sign: $BR \(y(x,t)=$A cos($omega \cdot t + $beta x+\phi_0) cm,\) with \(x\) in meters. $PAR diff --git a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.1.pg b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.1.pg index 8dcccc3451..e608e0d83f 100755 --- a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.1.pg +++ b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.1.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Problem for 'NCSU ECE303 Ulaby 7Ed P2.1'. +# Problem for 'NCSU ECE303 Ulaby 7Ed P2.1'. # WeBWorK problem written by H. J. Trussell, # ENDDESCRIPTION @@ -16,14 +16,14 @@ ## Section1('.') ## Problem1('2 1') ## KEYWORDS('waves','frequency') -## Resources() +## Resources() DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGchoicemacros.pl", "PGanswermacros.pl", "parserPopUp.pl", @@ -66,7 +66,7 @@ $delta_4 = 5*$l4_min; $l4 = random($l4_min,$l4_max,$delta_l4); -# debug parameters - +# debug parameters - # use print out of l*f/c and compare to 0.01 # answers @@ -98,7 +98,7 @@ $PAR $PAR (b) \( l = $l2 m, f = $f2 Hz \) \{ $popup2->menu() \} $PAR -(c) \( l = $l3 m, f = $f3 Hz \) \{ $popup3->menu() \} +(c) \( l = $l3 m, f = $f3 Hz \) \{ $popup3->menu() \} $PAR (d) \( l = $l4 m, f = $f4 Hz \) \{ $popup4->menu() \}$BR @@ -116,7 +116,7 @@ ANS( $popup4->cmp() ); # Solution Context()->texStrings; BEGIN_SOLUTION -$PAR +$PAR a) \(\frac{l}{\lambda}=\frac{l f}{u_p}=\frac{$l1 \cdot $f1}{3 \cdot 10^8}<0.01\) (negligible) $BR b) \(\frac{l}{\lambda}=\frac{l f}{u_p}=\frac{$l2 \cdot $f2}{3 \cdot 10^8}=0.01\) (borderline) $BR c) \(\frac{l}{\lambda}=\frac{l f}{u_p}=\frac{$l3 \cdot $f3}{3 \cdot 10^8}>0.01\) (nonnegligible) $BR diff --git a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.18.pg b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.18.pg index 8693f55170..d906686289 100755 --- a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.18.pg +++ b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.18.pg @@ -1,11 +1,11 @@ # DESCRIPTION -# Problem for 'NCSU ECE303 Ulaby 7Ed P2.18'. +# Problem for 'NCSU ECE303 Ulaby 7Ed P2.18'. # WeBWorK problem written by H. J. Trussell, # ENDDESCRIPTION ## Autho(H. J. Trussell) -## Problem('2.18') -## Keywords('polyethylene','insulating material', 'coaxial line') +## Problem('2.18') +## Keywords('polyethylene','insulating material', 'coaxial line') ## DBsubject(Electrical Engineering) ## DBchapter(CHAPTER 2 Transmission Lines) ## DBsection(Section 2-2: Lumped-Element Model) @@ -17,14 +17,14 @@ ## Section1('.') ## Problem1('') ## KEYWORDS('polyethylene','insulating material', 'coaxial line') -## Resources() +## Resources() DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "unionLists.pl", "answerHints.pl", "parserFunction.pl", @@ -47,7 +47,7 @@ Context()->flags->set( $ir = Real(random(0.8,2.0,0.1)*10**(-3)); # width mm but formula is in meters $Z_0= Real(random( 25,75,5)); # characteristic impedance -$epsilon_r = Real(random(2.1,2.9.0.1)); # dielectric +$epsilon_r = Real(random(2.1,2.9.0.1)); # dielectric $epsilon_0 = Compute((10**(-9))/(36*pi)); $mu_0 = Real(4*pi*10**(-7)); @@ -61,7 +61,7 @@ $c = Real(3*10**8); # m/s #$ir = Real(1.2*10**(-3)); # width mm but formula is in meters #$Z_0= Real(50); # characteristic impedance -#$epsilon_r = Real(2.25); # dielectric +#$epsilon_r = Real(2.25); # dielectric #end debug @@ -82,8 +82,8 @@ $PAR A special polyethylene with \(\varepsilon_r = $epsilon_r\) is used as the insulating material in a lossless coaxial line with characteristic impedance of \($Z_0 \Omega\). The radius of the inner conductor is \($ir_mm mm\). Find the following: $PAR -outer radius of the conductor is: \{ans_rule(20)\} \(mm\) \{ AnswerFormatHelp("numbers") \}$BR -\(u_p = \) \{ans_rule(20)\} \(m/s\) \{ AnswerFormatHelp("numbers") \}$BR +outer radius of the conductor is: \{ans_rule(20)\} \(mm\) \{ helpLink("numbers") \}$BR +\(u_p = \) \{ans_rule(20)\} \(m/s\) \{ helpLink("numbers") \}$BR END_TEXT @@ -99,8 +99,8 @@ Context()->texStrings; BEGIN_SOLUTION -$PAR -Given a lossless coaxial line, +$PAR +Given a lossless coaxial line, \(Z_0 = $Z_0 \Omega \), \(\varepsilon_r = $epsilon_r \), \(a = $ir_mm mm\):$BR $PAR (a) From Table 2-2, \( Z_0 = (60 / \sqrt{\varepsilon_r}) ln(b / a) \) which can be rearranged to give $BR diff --git a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.19.pg b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.19.pg index 952b5a89e8..55e47ae002 100755 --- a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.19.pg +++ b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.19.pg @@ -23,7 +23,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "unionLists.pl", "answerHints.pl", "parserFunction.pl", @@ -77,10 +77,10 @@ A $Z_0 \(\Omega\) lossless transmission line is terminated in a load with impeda Note: Your answers are validated to \(\pm \)0.01 absolute. $BR -(a) The reflection coefficient at the load: \{ans_rule(20)\} \(\angle \) \{ans_rule(20)\} \(^{\circ} \) \{ AnswerFormatHelp("numbers") \}$BR -(b) the standing wave ratio on the line: \{ans_rule(20)\} \{ AnswerFormatHelp("numbers") \}$BR -(c) the position of the voltage maximum nearest the load: \{ans_rule(20)\} \(cm\) \{ AnswerFormatHelp("numbers") \}$BR -(d) the position of the current maximum nearest the load: \{ans_rule(20)\} \(cm\) \{ AnswerFormatHelp("numbers") \}$BR +(a) The reflection coefficient at the load: \{ans_rule(20)\} \(\angle \) \{ans_rule(20)\} \(^{\circ} \) \{ helpLink("numbers") \}$BR +(b) the standing wave ratio on the line: \{ans_rule(20)\} \{ helpLink("numbers") \}$BR +(c) the position of the voltage maximum nearest the load: \{ans_rule(20)\} \(cm\) \{ helpLink("numbers") \}$BR +(d) the position of the current maximum nearest the load: \{ans_rule(20)\} \(cm\) \{ helpLink("numbers") \}$BR END_TEXT Context()->normalStrings; @@ -96,20 +96,20 @@ Context()->texStrings; BEGIN_SOLUTION -$PAR +$PAR Given: $BR -a) +a) \(Z_L= R+j \omega L =$Z_L \Omega \), $BR \(\Gamma=\large{\frac{Z_L-Z_0}{Z_L+Z_0}}=\frac{$Z_L-$Z_0}{$Z_L+$Z_0}=$mag e ^{$ang_deg^{\circ}}\). $PAR b) \(S=\large{\frac{1+|\Gamma|}{1-|\Gamma|}}=\frac{1+$reflec}{1-$reflec}=$S\). $PAR -c) \(d_{max}=\Large{ \frac{\theta_r \lambda}{4 \pi}+\frac{n \lambda}{2}}=\frac{$ang_deg ^{\circ} \pi}{180 ^ {\circ}}\frac{60}{4 \pi} + \frac{$lambda \cdot n }{2}=$d_max_0+\frac{$lambda \cdot n }{2}=$d_max m\). $PAR +c) \(d_{max}=\Large{ \frac{\theta_r \lambda}{4 \pi}+\frac{n \lambda}{2}}=\frac{$ang_deg ^{\circ} \pi}{180 ^ {\circ}}\frac{60}{4 \pi} + \frac{$lambda \cdot n }{2}=$d_max_0+\frac{$lambda \cdot n }{2}=$d_max m\). $PAR d) The locations of current maxima correspond to voltage minima and vice versa. Hence the location of the current maximum nearest the load is the same as location of voltage minimum nearest the load. Thus $BR -\(d_{min}=d_{max}+\frac{\lambda}{4} =$d_max-$lambda/4=$d_min m \). +\(d_{min}=d_{max}+\frac{\lambda}{4} =$d_max-$lambda/4=$d_min m \). END_SOLUTION diff --git a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.20.pg b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.20.pg index 9cc73c50bc..d3b6b4c452 100755 --- a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.20.pg +++ b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.20.pg @@ -28,7 +28,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "unionLists.pl", "answerHints.pl", "parserFunction.pl", @@ -63,7 +63,7 @@ $fourpi = Real(2*$twopi); $Z_LmH = $Z_Li*10**3; # indcutance in mH $w = $f*2*pi; # radian freq -$f_MHz = $f*10**(-6); +$f_MHz = $f*10**(-6); $Z_L = $Z_Lr + j*$twopi*$f*$Z_Li; $Gamma = ($Z_L-$Z_0)/($Z_L+$Z_0); $lambda = 3*10**8/$f; @@ -91,10 +91,10 @@ Note: Your answers are validated to \(\pm \)0.01 absolute. $BR -(a) The reflection coefficient, \(\Gamma\) = \{ans_rule(20)\} \(\angle \) \{ans_rule(20)\} \(^{\circ} \) \{ AnswerFormatHelp("numbers") \}$BR -(b) the standing wave ratio on the line, \(S\): \{ans_rule(20)\} \{ AnswerFormatHelp("numbers") \}$BR -(c) the position of the voltage maximum nearest the load: \{ans_rule(20)\} \(m\) \{ AnswerFormatHelp("numbers") \}$BR -(d) the position of the current maximum nearest the load: \{ans_rule(20)\} \(m\) \{ AnswerFormatHelp("numbers") \}$BR +(a) The reflection coefficient, \(\Gamma\) = \{ans_rule(20)\} \(\angle \) \{ans_rule(20)\} \(^{\circ} \) \{ helpLink("numbers") \}$BR +(b) the standing wave ratio on the line, \(S\): \{ans_rule(20)\} \{ helpLink("numbers") \}$BR +(c) the position of the voltage maximum nearest the load: \{ans_rule(20)\} \(m\) \{ helpLink("numbers") \}$BR +(d) the position of the current maximum nearest the load: \{ans_rule(20)\} \(m\) \{ helpLink("numbers") \}$BR END_TEXT Context()->normalStrings; @@ -110,7 +110,7 @@ Context()->texStrings; BEGIN_SOLUTION -$PAR +$PAR Given: $BR @@ -120,12 +120,12 @@ a) \(\omega=2 \pi \cdot $f rad/s\) $BR b) \(S=\large{\frac{1+|\Gamma|}{1-|\Gamma|}}=\frac{1+$Gamma}{1-$Gamma}=$S\). $PAR -c) \(l_{max}=\large{\frac{\theta_r \lambda}{4 \pi}}=\frac{$ang_deg ^{\circ} \pi}{180 ^ {\circ}}\frac{60}{4 \pi} \), +c) \(l_{max}=\large{\frac{\theta_r \lambda}{4 \pi}}=\frac{$ang_deg ^{\circ} \pi}{180 ^ {\circ}}\frac{60}{4 \pi} \), \( (\lambda=\frac{3 \cdot 10^8}{5 \cdot 10^6}=$lambda m) \) $BR \(=$d_max m\) $PAR d) The locations of current maxima correspond to voltage minima and vice versa. Hence the location of the current maximum nearest the load is the same as location of voltage minimum nearest the load. Thus $BR -\(l_{min}=l_{max}+\frac{\lambda}{4} =$d_max+$lambda/4=$d_min m \), as \(l_{max}<\frac{$lambda}{4}\). +\(l_{min}=l_{max}+\frac{\lambda}{4} =$d_max+$lambda/4=$d_min m \), as \(l_{max}<\frac{$lambda}{4}\). END_SOLUTION diff --git a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.22.pg b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.22.pg index d6951b0f9d..0e9b1ecfa8 100755 --- a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.22.pg +++ b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.22.pg @@ -1,9 +1,9 @@ # DESCRIPTION -# Problem for 'NCSU ECE303 Ulaby 7Ed P2.22'. # +# Problem for 'NCSU ECE303 Ulaby 7Ed P2.22'. # # WeBWorK problem written by H. J. Trussell, # ENDDESCRIPTION -## DBsection(Section 2-6: THE LOSSLESS TRANSMISSION LINE: GENERAL CONSIDERATIONS) # +## DBsection(Section 2-6: THE LOSSLESS TRANSMISSION LINE: GENERAL CONSIDERATIONS) # ## Autho(H. J. Trussell) ## Keywords('slotted line','lossless', 'load impedance') # ## DBsubject(Electrical Engineering) @@ -16,14 +16,14 @@ ## Section1('.') ## Problem1('2 22') ## KEYWORDS('slotted line','lossless', 'load impedance') -## Resources() +## Resources() DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "unionLists.pl", "answerHints.pl", "parserFunction.pl", @@ -83,14 +83,14 @@ $BBOLD This problem is related to Problem 2.22 in the "The Fundamentals of Appli $PAR -Using a slotted line, the following results were obtained: -distance of first minimum from the load \(d_{min(0)} = $d0_min cm\) ; -distance of second minimum from the load \(d_{min(1)} = $d1_min cm\); +Using a slotted line, the following results were obtained: +distance of first minimum from the load \(d_{min(0)} = $d0_min cm\) ; +distance of second minimum from the load \(d_{min(1)} = $d1_min cm\); voltage standingwave ratio \(S = $S \). $BR $PAR If the line is lossless and \(Z_0 = $Z0 \Omega \), find the load impedance: $BR $PAR -\(Z_L = \) \{ans_rule(20)\} \(\Omega\) \{ AnswerFormatHelp("numbers") \}$BR +\(Z_L = \) \{ans_rule(20)\} \(\Omega\) \{ helpLink("numbers") \}$BR $PAR $BBOLD Note: You can use either a+bj or A*exp(jB) (the angle B should be in radians) to represent the complex number. $EBOLD diff --git a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.24.pg b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.24.pg index e678c35bfd..35fbb61964 100755 --- a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.24.pg +++ b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.24.pg @@ -1,9 +1,9 @@ # DESCRIPTION -# Problem for 'NCSU ECE303 Ulaby 7Ed P2.24'. # +# Problem for 'NCSU ECE303 Ulaby 7Ed P2.24'. # # WeBWorK problem written by H. J. Trussell, # ENDDESCRIPTION -## DBsection(Section 2-6: THE LOSSLESS TRANSMISSION LINE: GENERAL CONSIDERATIONS) # +## DBsection(Section 2-6: THE LOSSLESS TRANSMISSION LINE: GENERAL CONSIDERATIONS) # ## Autho(H. J. Trussell) ## Keywords('lossless', 'load impedance') # ## DBsubject(Electrical Engineering) @@ -16,14 +16,14 @@ ## Section1('.') ## Problem1('2 24') ## KEYWORDS('lossless', 'load impedance') -## Resources() +## Resources() DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "unionLists.pl", "answerHints.pl", "parserFunction.pl", @@ -39,7 +39,7 @@ Context()->variables->are( t=>"Real"); Context()->flags->set( tolerance => 0.01, - tolType => "relative", # + tolType => "relative", # ); $S = Real(random(1, 5, 0.5)); # voltage standing-wave ratio @@ -86,13 +86,13 @@ $BBOLD This problem is related to Problem 2.24 in the "The Fundamentals of Appli $PAR -A \(Z_0 = $Z0 \Omega \) lossless line terminated in a purely resistive load has a voltage standing-wave ratio of \(S = $S\). $BR +A \(Z_0 = $Z0 \Omega \) lossless line terminated in a purely resistive load has a voltage standing-wave ratio of \(S = $S\). $BR $PAR Find all possible values of \(Z_L\). $BR Note: Please enter your answers in comma separated list. Your answers may be listed in any order. $BR $PAR -\(Z_{L} = \) \{ans_rule(30)\} \(\Omega\) \{ AnswerFormatHelp("numbers") \} +\(Z_{L} = \) \{ans_rule(30)\} \(\Omega\) \{ helpLink("numbers") \} $PAR $BBOLD Note: You can use either a+bj or A*exp(jB) (the angle B should be in radians) to represent the complex number if necessary. $EBOLD $BR diff --git a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.27.pg b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.27.pg index 4b597b22c1..e84cdffb3f 100755 --- a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.27.pg +++ b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.27.pg @@ -1,9 +1,9 @@ # DESCRIPTION -# Problem for 'NCSU ECE303 Ulaby 7Ed P2.27'. # +# Problem for 'NCSU ECE303 Ulaby 7Ed P2.27'. # # WeBWorK problem written by H. J. Trussell, # ENDDESCRIPTION -## DBsection(Section 2-7: WAVE IMPEDANCE OF THE LOSSLESS LINE) # +## DBsection(Section 2-7: WAVE IMPEDANCE OF THE LOSSLESS LINE) # ## Autho(H. J. Trussell) ## Keywords('lossless', 'input impedance') # ## DBsubject(Electrical Engineering) @@ -16,14 +16,14 @@ ## Section1('.') ## Problem1('2 27') ## KEYWORDS('lossless', 'input impedance') -## Resources() +## Resources() DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "unionLists.pl", "answerHints.pl", "parserFunction.pl", @@ -39,7 +39,7 @@ Context()->variables->are( t=>"Real"); Context()->flags->set( tolerance => 0.01, - tolType => "relative", # + tolType => "relative", # ); $f = Real(random(100, 500, 50)); # operating frequency MHz @@ -83,11 +83,11 @@ BEGIN_TEXT $PAR -At an operating frequency of \(f = $f MHz\), a lossless \(Z_0 = $Z0 \Omega\) +At an operating frequency of \(f = $f MHz\), a lossless \(Z_0 = $Z0 \Omega\) air-spaced transmission line \(l = $l m \) in length is terminated with an impedance \(Z_L = $ZL_Re + j $ZL_Im \Omega\). $BR Find the input impedance: $BR $PAR -\(Z_{in} = \) \{ans_rule(20)\} \(\Omega\) \{ AnswerFormatHelp("numbers") \}$BR +\(Z_{in} = \) \{ans_rule(20)\} \(\Omega\) \{ helpLink("numbers") \}$BR $PAR $BBOLD Note: You can use either a+bj or A*exp(jB) (the angle B should be in radians) to represent the complex number. $EBOLD diff --git a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.28.pg b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.28.pg index 887c927fa3..99ef39830a 100755 --- a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.28.pg +++ b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.28.pg @@ -1,9 +1,9 @@ # DESCRIPTION -# Problem for 'NCSU ECE303 Ulaby 7Ed P2.28'. # +# Problem for 'NCSU ECE303 Ulaby 7Ed P2.28'. # # WeBWorK problem written by H. J. Trussell, # ENDDESCRIPTION -## DBsection(Section 2-7: WAVE IMPEDANCE OF THE LOSSLESS LINE) # +## DBsection(Section 2-7: WAVE IMPEDANCE OF THE LOSSLESS LINE) # ## Autho(H. J. Trussell) ## Keywords('lossless', 'load impedance') # ## DBsubject(Electrical Engineering) @@ -16,14 +16,14 @@ ## Section1('.') ## Problem1('2 28') ## KEYWORDS('lossless', 'load impedance') -## Resources() +## Resources() DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "unionLists.pl", "answerHints.pl", "parserFunction.pl", @@ -75,7 +75,7 @@ $gamm_Im = Im($gamma); $S = (1 + $gamma_abs) / (1 - $gamma_abs); -$beta = 2*pi / $lambda; +$beta = 2*pi / $lambda; $beta_lth = $beta * $lth * $lambda; $beta_lth_pi = $beta_lth / pi; $beta_lth_deg = $beta_lth * 180 / pi; @@ -97,14 +97,14 @@ Given \(Z_0 = $Z0 \Omega \) and \(Z_L = ($ZL_Re + j $ZL_Im ) \Omega \), find \(\ \{image("ECE303_Ulaby_Ed7_2_28.png",height=>150, width=>250)\} $BR $PAR -(a) -\(\Gamma = \) \{ans_rule(20)\} \{ AnswerFormatHelp("numbers") \}$BR +(a) +\(\Gamma = \) \{ans_rule(20)\} \{ helpLink("numbers") \}$BR $PAR -(b) -\(S = \) \{ans_rule(20)\} \{ AnswerFormatHelp("numbers") \}$BR +(b) +\(S = \) \{ans_rule(20)\} \{ helpLink("numbers") \}$BR $PAR -(c) -\(Z_{in} = \) \{ans_rule(20)\} \(\Omega\) \{ AnswerFormatHelp("numbers") \}$BR +(c) +\(Z_{in} = \) \{ans_rule(20)\} \(\Omega\) \{ helpLink("numbers") \}$BR $PAR $BBOLD Note: Your answers will be validated to \(\pm 0.01\) absolute. You can use either a+bj or A*exp(jB) (the angle B should be in radians) to represent the complex number. $EBOLD $BR diff --git a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.2a.pg b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.2a.pg index 51bd783848..356d8122dc 100755 --- a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.2a.pg +++ b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.2a.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# Problem for 'NCSU ECE303 Ulaby 7Ed P2.2'. +# Problem for 'NCSU ECE303 Ulaby 7Ed P2.2'. # WeBWorK problem written by H. J. Trussell, # ENDDESCRIPTION @@ -16,14 +16,14 @@ ## Section1('.') ## Problem1('2 2') ## KEYWORDS('waves','frequency') -## Resources() +## Resources() DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "unionLists.pl", "answerHints.pl", "parserFunction.pl", @@ -46,7 +46,7 @@ $f = Real(random(1.5,2.5,0.1)*10**9); # GHz $d = Real(random(1.5,2.5,0.5)*10**(-3)); # diameter in mm, formula uses meters $D = Real(random(3,5,0.5)*10**(-2)); # cm but formula is in meters $sigma_c = Real(5.8*10**(7)); # S/m for copper, constant -$epsilon = Real(random(2.0,4.0,0.1)); # dielectric +$epsilon = Real(random(2.0,4.0,0.1)); # dielectric $sigma = Real(2*10**(-6)); # S/m , constant $mu_0 = Real(4*pi*10**(-7)); $mu_c = $mu_0; @@ -57,7 +57,7 @@ $epsilon_0 = Real(8.854*10**(-12)); #$f = 2*10**9; # Hz #$d = 2*10**(-3); # diameter m, formula uses meters #$D = 3*10**(-2); # in meters -#$epsilon = 2.6; # dielectric +#$epsilon = 2.6; # dielectric #end debug @@ -65,7 +65,7 @@ $epsilon_0 = Real(8.854*10**(-12)); # change the unit $f_GHz = $f*10**(-9); -$d_mm = $d*10**3; +$d_mm = $d*10**3; $D_cm = $D*10**2; $R_s = sqrt(pi*$f*$mu_c/$sigma_c) ; @@ -84,15 +84,15 @@ BEGIN_TEXT $BBOLD This problem is related to Problem 2.2 in the "The Fundamentals of Applied Electromagnetic 7Ed, (Ulaby & Ravaioli)" $EBOLD $PAR -A two-wire copper transmission line is embedded in a dielectric material with \( \varepsilon_r = $epsilon\) and \(\sigma = $sigma S/m\).$BR +A two-wire copper transmission line is embedded in a dielectric material with \( \varepsilon_r = $epsilon\) and \(\sigma = $sigma S/m\).$BR Its wires are separated by \($D_cm cm\) and their diameters are \($d_mm mm\) each. $PAR Calculate the line parameters, \(R'\), \(L'\), \(G'\) and \(C'\) at \($f_GHz GHz\). $PAR -\(R' = \) \{ans_rule(20)\} \(\Omega/m\) \{ AnswerFormatHelp("numbers") \}$BR -\(L' = \) \{ans_rule(20)\} \(\mu H/m\) \{ AnswerFormatHelp("numbers") \}$BR -\(G' = \) \{ans_rule(20)\} \(\mu S/m\) \{ AnswerFormatHelp("numbers") \}$BR -\(C' = \) \{ans_rule(20)\} \( pF/m\) \{ AnswerFormatHelp("numbers") \}$BR +\(R' = \) \{ans_rule(20)\} \(\Omega/m\) \{ helpLink("numbers") \}$BR +\(L' = \) \{ans_rule(20)\} \(\mu H/m\) \{ helpLink("numbers") \}$BR +\(G' = \) \{ans_rule(20)\} \(\mu S/m\) \{ helpLink("numbers") \}$BR +\(C' = \) \{ans_rule(20)\} \( pF/m\) \{ helpLink("numbers") \}$BR END_TEXT Context()->normalStrings; @@ -106,7 +106,7 @@ ANS( $C_pp->cmp() ); # Solution Context()->texStrings; BEGIN_SOLUTION -$PAR +$PAR From Table 2-1: $BR \(R_s = \sqrt{\pi f\mu_0 / \sigma_c}\) \( = \sqrt{\pi \cdot $f \cdot $mu_0 / ($sigma_c)}\) diff --git a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.33.pg b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.33.pg index 8cb7729604..cc58007699 100755 --- a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.33.pg +++ b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.33.pg @@ -1,9 +1,9 @@ # DESCRIPTION -# Problem for 'NCSU ECE303 Ulaby 7Ed P2.33'. # +# Problem for 'NCSU ECE303 Ulaby 7Ed P2.33'. # # WeBWorK problem written by H. J. Trussell, # ENDDESCRIPTION -## DBsection(Section 2-8: SPECIAL CASES OF THE LOSSLESS LINE) # +## DBsection(Section 2-8: SPECIAL CASES OF THE LOSSLESS LINE) # ## Autho(H. J. Trussell) ## Keywords('lossless', 'dipole antennas') # ## DBsubject(Electrical Engineering) @@ -17,14 +17,14 @@ ## Problem1('2 33') ## KEYWORDS('lossless', 'dipole antennas') ## RESOURCES('ECE303_Ulaby_Ed7_2_33.png') -## Resources('ECE303_Ulaby_Ed7_2_33.png') +## Resources('ECE303_Ulaby_Ed7_2_33.png') DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "unionLists.pl", "answerHints.pl", "parserFunction.pl", @@ -99,21 +99,21 @@ $BBOLD This problem is related to Problem 2.33 in the "The Fundamentals of Appli $PAR -Two half-wave dipole antennas, each with an impedance of \(Z_L = $ZL \Omega \), -are connected in parallel through a pair of transmissionlines, and the combination is connected to a feed transmission line, as shown in Fig. P2.33. +Two half-wave dipole antennas, each with an impedance of \(Z_L = $ZL \Omega \), +are connected in parallel through a pair of transmissionlines, and the combination is connected to a feed transmission line, as shown in Fig. P2.33. Given: \(l_0 = $l0 \lambda \), \(l_1 = $l1 \lambda\) (\(\lambda\) represents the wavelength of the microwave).$BR All lines are lossless with impedance \(Z_0 = $Z0 \Omega \). $BR \{image("ECE303_Ulaby_Ed7_2_33.png",height=>270, width=>360)\} $BR $PAR (a) Calculate \(Z_{in1}\) , the input impedance of the antennaterminatedline, at the parallel juncture. $BR -\(Z_{in1} = \) \{ans_rule(20)\} \(\Omega\) \{ AnswerFormatHelp("numbers") \}$BR +\(Z_{in1} = \) \{ans_rule(20)\} \(\Omega\) \{ helpLink("numbers") \}$BR $PAR (b) Combine \(Z_{in1}\) and \(Z_{in2}\) in parallel to obtain \(Z'_L\), the effective load impedance of the feedline. $BR -\(Z'_L = \) \{ans_rule(20)\} \(\Omega\) \{ AnswerFormatHelp("numbers") \}$BR +\(Z'_L = \) \{ans_rule(20)\} \(\Omega\) \{ helpLink("numbers") \}$BR $PAR (c) Calculate \(Z_{in}\) of the feedline. $BR -\(Z_{in} = \) \{ans_rule(20)\} \(\Omega\) \{ AnswerFormatHelp("numbers") \}$BR +\(Z_{in} = \) \{ans_rule(20)\} \(\Omega\) \{ helpLink("numbers") \}$BR $PAR $BBOLD Notes: You can use either a+bj or A*exp(jB) (the angle B should be in radians) to represent the complex number. $EBOLD diff --git a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.35.pg b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.35.pg index d6e6f051e4..308c09226d 100755 --- a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.35.pg +++ b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.35.pg @@ -1,9 +1,9 @@ # DESCRIPTION -# Problem for 'NCSU ECE303 Ulaby 7Ed P2.35'. # +# Problem for 'NCSU ECE303 Ulaby 7Ed P2.35'. # # WeBWorK problem written by H. J. Trussell, # ENDDESCRIPTION -## DBsection(Section 2-7: WAVE IMPEDANCE OF THE LOSSLESS LINE) # +## DBsection(Section 2-7: WAVE IMPEDANCE OF THE LOSSLESS LINE) # ## Autho(H. J. Trussell) ## Keywords('lossless', 'lumped-element', 'insulating layer') # ## DBsubject(Electrical Engineering) @@ -17,14 +17,14 @@ ## Problem1('2 35') ## KEYWORDS('lossless', 'lumped-element', 'insulating layer') ## RESOURCES('ECE303_Ulaby_Ed7_2_35.png') -## Resources('ECE303_Ulaby_Ed7_2_35.png') +## Resources('ECE303_Ulaby_Ed7_2_35.png') DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "unionLists.pl", "answerHints.pl", "parserFunction.pl", @@ -40,7 +40,7 @@ Context()->variables->are( t=>"Real"); Context()->flags->set( tolerance => 0.01, - tolType => "relative", # + tolType => "relative", # ); @@ -71,7 +71,7 @@ $f_Hz = $f * 10**6; # Hz # calculation $up = $c; $lambda = $up / $f_Hz / sqrt($epsilon); -$beta = 2*pi / $lambda; +$beta = 2*pi / $lambda; $beta_l = $beta * $l; # \beta * l $beta_l_pi = $beta_l / pi; @@ -96,7 +96,7 @@ $BBOLD This problem is related to Problem 2.35 in the "The Fundamentals of Appli $PAR -For the lossless transmission line circuit shown in Fig. P2.35, +For the lossless transmission line circuit shown in Fig. P2.35, determine the equivalent series lumped-element circuit at \(f = $f MHz\) at the input to the line. The line has a characteristic impedance of \(Z_0 = $Z0 \Omega \), the insulating layer has \(\epsilon_r = $epsilon\). Further in the diagram below, \(Z_L=$ZL \Omega\) and \(l= $l m\).$BR Notes: The system can be thought of as an equivalent \(RL\) (lumped) circuit.$BR @@ -105,14 +105,14 @@ Notes: The system can be thought of as an equivalent \(RL\) (lumped) circuit.$BR Notes: \(u_p = c = $c m/s \). $PAR (a) Determine the input impedance \(Z_{in}\). $BR -\(Z_{in} = \) \{ans_rule(20)\} \(\Omega\) \{ AnswerFormatHelp("numbers") \}$BR +\(Z_{in} = \) \{ans_rule(20)\} \(\Omega\) \{ helpLink("numbers") \}$BR $PAR $BBOLD Notes: You can use either a+bj or A*exp(jB) (the angle B should be in radians) to represent the complex number. $EBOLD $PAR (b) Let \(Z_{in}\) is equivalent to a series RL circuit, then determine the the inductance \(L\). $BR -\(L = \) \{ans_rule(20)\} \(nH\) \{ AnswerFormatHelp("numbers") \}$BR +\(L = \) \{ans_rule(20)\} \(nH\) \{ helpLink("numbers") \}$BR END_TEXT Context()->normalStrings; diff --git a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.36.pg b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.36.pg index 539214c3af..cbcd3ca7d0 100755 --- a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.36.pg +++ b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.36.pg @@ -1,9 +1,9 @@ # DESCRIPTION -# Problem for 'NCSU ECE303 Ulaby 7Ed P2.36'. # +# Problem for 'NCSU ECE303 Ulaby 7Ed P2.36'. # # WeBWorK problem written by H. J. Trussell, # ENDDESCRIPTION -## DBsection(Section 2-8: SPECIAL CASES OF THE LOSSLESS LINE) # +## DBsection(Section 2-8: SPECIAL CASES OF THE LOSSLESS LINE) # ## Autho(H. J. Trussell) ## Keywords('lossless', 'input impedance') # ## DBsubject(Electrical Engineering) @@ -16,14 +16,14 @@ ## Section1('.') ## Problem1('2 36') ## KEYWORDS('lossless', 'input impedance') -## Resources() +## Resources() DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "unionLists.pl", "answerHints.pl", "parserFunction.pl", @@ -80,15 +80,15 @@ $BBOLD This problem is related to Problem 2.36 in the "The Fundamentals of Appli $PAR -At an operating frequency of \(f = $f MHz\), +At an operating frequency of \(f = $f MHz\), it is desired to use a section of a lossless \(Z_0 = $Z0 \Omega \) transmission line terminated -in a short circuit to construct an equivalent load with reactance\(X = 40 \Omega \). -If the phase velocity of the line is \(u_p = $up c\) \((c = $c m/s)\), +in a short circuit to construct an equivalent load with reactance\(X = 40 \Omega \). +If the phase velocity of the line is \(u_p = $up c\) \((c = $c m/s)\), determine the shortest possible line length \(l_{min}\) that would exhibit the desired reactance at its input. $BR $PAR -\(l_{min} = \) \{ans_rule(20)\} \(cm\) \{ AnswerFormatHelp("numbers") \}$BR +\(l_{min} = \) \{ans_rule(20)\} \(cm\) \{ helpLink("numbers") \}$BR END_TEXT Context()->normalStrings; diff --git a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.4.pg b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.4.pg index d4e88968ef..8bdcdef43a 100755 --- a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.4.pg +++ b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.4.pg @@ -1,11 +1,11 @@ # DESCRIPTION -# Problem for 'NCSU ECE303 Ulaby 7Ed P2.4'. +# Problem for 'NCSU ECE303 Ulaby 7Ed P2.4'. # WeBWorK problem written by H. J. Trussell, # ENDDESCRIPTION ## Autho(H. J. Trussell) -## Problem('2.4') -## Keywords('waves', 'frequency') +## Problem('2.4') +## Keywords('waves', 'frequency') ## DBsubject(Electrical Engineering) ## DBchapter(CHAPTER 2 Transmission Lines) ## DBsection(Section 2-2: Lumped-Element Model) @@ -17,14 +17,14 @@ ## Section1('.') ## Problem1('') ## KEYWORDS('waves', 'frequency') -## Resources() +## Resources() DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "unionLists.pl", "answerHints.pl", "parserFunction.pl", @@ -58,7 +58,7 @@ $mu = $mu_0; # $alpha=Real(0.46); # put here to check homework answers from written solution -# debug parameters +# debug parameters #$f = Real(1*10**9); #Hz #$w = Real(1.2*10**(-2)); # meters #$d = Real(1.5*10**(-3)); # meters @@ -94,23 +94,23 @@ BEGIN_TEXT $BBOLD This problem is related to Problem 2.4 in the "The Fundamentals of Applied Electromagnetic 7Ed, (Ulaby & Ravaioli)". $EBOLD $PAR -A \($f_GHz GHz\) parallel-plate transmission line consists of \($w_cm cm\) wide copper strips, separated by a \($d_cm cm\) thick layer of polystyrene.$BR +A \($f_GHz GHz\) parallel-plate transmission line consists of \($w_cm cm\) wide copper strips, separated by a \($d_cm cm\) thick layer of polystyrene.$BR Appendix B gives \( \mu_c = \mu_0 = 4 \pi \times 10^{-7} (H/m)\) and \(\sigma_c = $sigma_c (S/m)\) for copper, and \(\varepsilon_r = 2.6\) for polystyrene. Use Table 2-1 to determine the line parameters of the transmission line.$BR Assume \(\mu = \mu_0\) and \(\sigma \approx 0\) for polystyrene. $PAR (a)Calculate the line parameters, \(R'\), \(L'\), \(G'\) and \(C'\) at \($f_GHz GHz\). $PAR -\(R' = \) \{ans_rule(20)\} \(\Omega /m\) \{ AnswerFormatHelp("numbers") \}$BR -\(L' = \) \{ans_rule(20)\} \(\mu H/m\) \{ AnswerFormatHelp("numbers") \}$BR -\(G' = \) \{ans_rule(20)\} \(\mu S/m\) \{ AnswerFormatHelp("numbers") \}$BR -\(C' = \) \{ans_rule(20)\} \(pF/m\) \{ AnswerFormatHelp("numbers") \}$PAR +\(R' = \) \{ans_rule(20)\} \(\Omega /m\) \{ helpLink("numbers") \}$BR +\(L' = \) \{ans_rule(20)\} \(\mu H/m\) \{ helpLink("numbers") \}$BR +\(G' = \) \{ans_rule(20)\} \(\mu S/m\) \{ helpLink("numbers") \}$BR +\(C' = \) \{ans_rule(20)\} \(pF/m\) \{ helpLink("numbers") \}$PAR (b)Using the values obtained above and the equations in Table 2-2 from the textbook , find the following parameters: $PAR -\(\alpha = \) \{ans_rule(20)\} \(Np /m\) \{ AnswerFormatHelp("numbers") \}$BR -\(\beta = \) \{ans_rule(20)\} \(m/s\) \{ AnswerFormatHelp("numbers") \}$BR -\(u_p = \) \{ans_rule(20)\} \(S/m\) \{ AnswerFormatHelp("numbers") \}$BR -\(Z_0 = \) \{ans_rule(20)\} \(\Omega\) \{ AnswerFormatHelp("numbers") \}$BR +\(\alpha = \) \{ans_rule(20)\} \(Np /m\) \{ helpLink("numbers") \}$BR +\(\beta = \) \{ans_rule(20)\} \(m/s\) \{ helpLink("numbers") \}$BR +\(u_p = \) \{ans_rule(20)\} \(S/m\) \{ helpLink("numbers") \}$BR +\(Z_0 = \) \{ans_rule(20)\} \(\Omega\) \{ helpLink("numbers") \}$BR END_TEXT @@ -133,7 +133,7 @@ Context()->texStrings; BEGIN_SOLUTION -$PAR +$PAR (a) $BR \(R_s = \sqrt{\pi f \mu_0 / \sigma_c}\) \( = \sqrt{\pi \times $f \times $mu_0 / $sigma_c}\) @@ -162,7 +162,7 @@ $PAR $PAR \(\gamma = \sqrt{(R' + j w L') \times (G' + j w C')}\) $BR \(\gamma = \sqrt{($R_p + j \times $omega \times $L_p) \ times ($G_p + j \times $omega \times $C_p)}\) -\( = $gamma \)$BR +\( = $gamma \)$BR $PAR \(\alpha = Re(\gamma)\) \( = $alpha N_p/s\) $BR diff --git a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.42.pg b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.42.pg index 993ba75d95..1a3be48e40 100755 --- a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.42.pg +++ b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.42.pg @@ -1,9 +1,9 @@ # DESCRIPTION -# Problem for 'NCSU ECE303 Ulaby 7Ed P2.42'. # +# Problem for 'NCSU ECE303 Ulaby 7Ed P2.42'. # # WeBWorK problem written by H. J. Trussell, # ENDDESCRIPTION -## DBsection(Section 2-7: WAVE IMPEDANCE OF THE LOSSLESS LINE) # +## DBsection(Section 2-7: WAVE IMPEDANCE OF THE LOSSLESS LINE) # ## Autho(H. J. Trussell) ## Keywords('lossless line', 'generator circuit', 'time-average power') # ## DBsubject(Electrical Engineering) @@ -17,7 +17,7 @@ ## Problem1('2 42') ## KEYWORDS('lossless line', 'generator circuit', 'time-average power') ## RESOURCES('ECE303_Ulaby_Ed7_2_42.png') -## Resources('ECE303_Ulaby_Ed7_2_42.png') +## Resources('ECE303_Ulaby_Ed7_2_42.png') DOCUMENT(); # This should be the first executable line in the problem. @@ -32,7 +32,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -72,7 +72,7 @@ $lth = Real(0.15); # length # calculation # (a) -$beta = 2*pi / $lambda; +$beta = 2*pi / $lambda; $beta_lth = $beta * $lth * $lambda; # \beta * lth $theta = $beta_lth; # define the angle $theta_deg = $theta*180/pi; @@ -134,29 +134,29 @@ You can use either a+bj or A*exp(jB) (the angle B should be in radians) to repre $PAR (a) Compute \(Z_{in} \), the input impedance of the line at the generator end. $BR -\(Z_{in1} = \) \{ans_rule(20)\} \(\Omega\) \{ AnswerFormatHelp("numbers") \}$BR +\(Z_{in1} = \) \{ans_rule(20)\} \(\Omega\) \{ helpLink("numbers") \}$BR (b) Compute \(\tilde{I_i} \) and \(\tilde{V_i} \). $BR -\(\tilde{I_i} = \) \{ans_rule(20)\} \( A \) \{ AnswerFormatHelp("numbers") \}$BR +\(\tilde{I_i} = \) \{ans_rule(20)\} \( A \) \{ helpLink("numbers") \}$BR -\(\tilde{V_i} = \) \{ans_rule(20)\} \( V \) \{ AnswerFormatHelp("numbers") \}$BR +\(\tilde{V_i} = \) \{ans_rule(20)\} \( V \) \{ helpLink("numbers") \}$BR (c) Compute the time-average power delivered to the line, \(P_{in} = 0.5 * Re(\tilde {V_i} \tilde {I_i^*})\). $BR -\(P_{in} = \) \{ans_rule(20)\} \(W \) \{ AnswerFormatHelp("numbers") \}$BR +\(P_{in} = \) \{ans_rule(20)\} \(W \) \{ helpLink("numbers") \}$BR (d) Compute \(\tilde {V_L^*}\), \(\tilde {I_L^*}\) and the time-average power delivered to the load, \(P_L = 0.5 * Re(\tilde {V_L} \tilde {I_L^*})\). $BR -\(\tilde{I_L} = \) \{ans_rule(20)\} \( A \) \{ AnswerFormatHelp("numbers") \}$BR -\(\tilde{V_L} = \) \{ans_rule(20)\} \( V \) \{ AnswerFormatHelp("numbers") \}$BR -\(P_L = \) \{ans_rule(20)\} \(W \) \{ AnswerFormatHelp("numbers") \}$BR +\(\tilde{I_L} = \) \{ans_rule(20)\} \( A \) \{ helpLink("numbers") \}$BR +\(\tilde{V_L} = \) \{ans_rule(20)\} \( V \) \{ helpLink("numbers") \}$BR +\(P_L = \) \{ans_rule(20)\} \(W \) \{ helpLink("numbers") \}$BR Be prepared to relate \(P_{in}\) to \(P_L\). Is \(P_L\) \{ $PL_Pin ->menu() \} \(P_{in}\)? $BR Be able to explain why you would expect that result. $BR (e) Compute the time-average power delivered by the generator, \(P_g\), and the timeaverage power \({P_Z}_g\)dissipated in \(Z_g\). $BR -\(P_g = \) \{ans_rule(20)\} \(W \) \{ AnswerFormatHelp("numbers") \}$BR -\({P_Z}_g = \) \{ans_rule(20)\} \(W \) \{ AnswerFormatHelp("numbers") \}$BR +\(P_g = \) \{ans_rule(20)\} \(W \) \{ helpLink("numbers") \}$BR +\({P_Z}_g = \) \{ans_rule(20)\} \(W \) \{ helpLink("numbers") \}$BR For the conservation of power in this system, is \(P_g\) \{ $Pg_Pout ->menu() \} \( (P_{Z_g} + P_{in})\)? $BR diff --git a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.46.pg b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.46.pg index ee4cac0187..c85c233bb6 100755 --- a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.46.pg +++ b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.46.pg @@ -1,9 +1,9 @@ # DESCRIPTION -# Problem for 'NCSU ECE303 Ulaby 7Ed P2.46'. # +# Problem for 'NCSU ECE303 Ulaby 7Ed P2.46'. # # WeBWorK problem written by H. J. Trussell, # ENDDESCRIPTION -## DBsection(Section 2-11: IMPEDANCE MATCHING) # +## DBsection(Section 2-11: IMPEDANCE MATCHING) # ## Autho(H. J. Trussell) ## Keywords('lossless line', 'matched conditions', 'impedance matching') # ## DBsubject(Electrical Engineering) @@ -17,14 +17,14 @@ ## Problem1('2 46') ## KEYWORDS('lossless line', 'matched conditions', 'impedance matching') ## RESOURCES('ECE303_Ulaby_Ed7_2_46.png') -## Resources('ECE303_Ulaby_Ed7_2_46.png') +## Resources('ECE303_Ulaby_Ed7_2_46.png') DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "unionLists.pl", "answerHints.pl", "parserFunction.pl", @@ -40,7 +40,7 @@ Context()->variables->are( t=>"Real"); Context()->flags->set( tolerance => 0.01, - tolType => "relative", # + tolType => "relative", # ); @@ -75,16 +75,16 @@ BEGIN_TEXT $BBOLD This problem is related to Problem 2.46 in the "The Fundamentals of Applied Electromagnetic 7Ed, (Ulaby & Ravaioli)" $EBOLD $PAR -An antenna with a load impedance \(Z_L = ($ZL_Re + j $ZL_Im) \Omega \) +An antenna with a load impedance \(Z_L = ($ZL_Re + j $ZL_Im) \Omega \) is connected to a transmitter through a \(Z_0 = $Z0 \Omega \) lossless transmission line. $BR \{image("ECE303_Ulaby_Ed7_2_46.png",height=>320, width=>400)\} $BR $PAR -Under the matched conditions ( \($Z0 \Omega \) load) that the transmitter can deliver \(P_L = $PL W \) to the load and \(Z_g = Z_0\), +Under the matched conditions ( \($Z0 \Omega \) load) that the transmitter can deliver \(P_L = $PL W \) to the load and \(Z_g = Z_0\), determine power \(P_{av}\) delivered to the antenna. $BR $PAR -\(P_{av} = \) \{ans_rule(20)\} \(W \) \{ AnswerFormatHelp("numbers") \}$BR +\(P_{av} = \) \{ans_rule(20)\} \(W \) \{ helpLink("numbers") \}$BR END_TEXT @@ -100,14 +100,14 @@ BEGIN_SOLUTION $PAR From Eqs. (2.82) and (2.76), $BR -\(V_0^+ = (\tilde{V_g} Z_{in} / (Z_g + Z_{in})) / ( e^{j\beta l} + \Gamma e^{-j \beta l} )\).$BR -\( = \Large \frac{ \tilde{V_g} Z_0 [1+\Gamma e^{-j 2 \beta l} ] / [1-\Gamma e^{-j 2 \beta l} ] }{Z_0 + Z_0 [1+\Gamma e^{-j 2 \beta l} ] / [1-\Gamma e^{-j 2 \beta l} ]} * \frac{e^{-j \beta l}}{1+\Gamma e^{-j 2 \beta l}}\).$BR -\( = \Large \frac{ \tilde{V_g} e^{-j \beta l} }{ (1-\Gamma e^{-j 2 \beta l}) + (1+\Gamma e^{-j 2 \beta l}) } \).$BR -\( = 0.5 \tilde{V_g} e^{-j \beta l} \).$BR +\(V_0^+ = (\tilde{V_g} Z_{in} / (Z_g + Z_{in})) / ( e^{j\beta l} + \Gamma e^{-j \beta l} )\).$BR +\( = \Large \frac{ \tilde{V_g} Z_0 [1+\Gamma e^{-j 2 \beta l} ] / [1-\Gamma e^{-j 2 \beta l} ] }{Z_0 + Z_0 [1+\Gamma e^{-j 2 \beta l} ] / [1-\Gamma e^{-j 2 \beta l} ]} * \frac{e^{-j \beta l}}{1+\Gamma e^{-j 2 \beta l}}\).$BR +\( = \Large \frac{ \tilde{V_g} e^{-j \beta l} }{ (1-\Gamma e^{-j 2 \beta l}) + (1+\Gamma e^{-j 2 \beta l}) } \).$BR +\( = 0.5 \tilde{V_g} e^{-j \beta l} \).$BR Thus, in Eq. (2.106), $BR -\(P_{av} = ( |V_0^+|^{2} / (2 Z_0) * (1 - |\Gamma|^{2}) \) -\( = |\tilde{V_g}|^{2} / (8 Z_0) * (1 - |\Gamma|^{2}) \).$BR +\(P_{av} = ( |V_0^+|^{2} / (2 Z_0) * (1 - |\Gamma|^{2}) \) +\( = |\tilde{V_g}|^{2} / (8 Z_0) * (1 - |\Gamma|^{2}) \).$BR Under the matched condition, \(|\Gamma| = 0 \) and \( P_L = $PL W \), so, $BR \( ( |\tilde{V_g}|^{2} / (8 Z_0) = $PL W \).$BR diff --git a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.6.pg b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.6.pg index aee152fd2c..e8d24faaf1 100755 --- a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.6.pg +++ b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.6.pg @@ -24,7 +24,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "unionLists.pl", "answerHints.pl", "parserFunction.pl", @@ -49,9 +49,9 @@ $do_lower = $di*10**2 + 0.1; $do_upper = $do_lower + 1; $do_delta = 0.1; $do = Real(random( $do_lower, $do_upper,$do_delta)*10**(-2)); # outer diameter in cm, formula uses meters -$sigma = Real(random(1,2,0.1)*10**(-3)); # S/m +$sigma = Real(random(1,2,0.1)*10**(-3)); # S/m $sigma_c = Real(5.8*10**(7)); # S/m for copper -$epsilon_r = Real(random(3.8,5.0,.1)); # +$epsilon_r = Real(random(3.8,5.0,.1)); # $epsilon_0 = Compute((10**(-9))/(36*pi)); $mu_0 = Real(4*pi*10**(-7)); $mu_c = $mu_0; @@ -63,13 +63,13 @@ $mu = $mu_0; #$f = Real(1*10**9); # GHz #$di = Real(0.5*10**(-2)); # inner diameter cm but formula is in meters #$do = Real(1*10**(-2)); # outer diameter in cm, formula uses meters -#$sigma = Real(1*10**(-3)); # S/m +#$sigma = Real(1*10**(-3)); # S/m #$sigma_c = Real(5.8*10**(7)); # S/m for copper -#$epsilon_r = Real(4.5); # +#$epsilon_r = Real(4.5); # #$epsilon_0 = Compute((10**(-9))/(36*pi)); #$mu_0 = Real(4*pi*10**(-7)); #$mu_c = $mu_0; -#$mu = $mu_0; +#$mu = $mu_0; # answers @@ -111,17 +111,17 @@ The conductors are made of copper (\(\sigma_c=5.8 \times 10^7 S/m \)). Assume \( Pay attention to the units requested for each parameter. $PAR -\(R' = \) \{ans_rule(20)\} \(\Omega /m\) \{ AnswerFormatHelp("numbers") \}$BR -\(L' = \) \{ans_rule(20)\} \(nH/m\) \{ AnswerFormatHelp("numbers") \}$BR -\(G' = \) \{ans_rule(20)\} \(mS/m\) \{ AnswerFormatHelp("numbers") \}$BR -\(C' = \) \{ans_rule(20)\} \(pF/m\) \{ AnswerFormatHelp("numbers") \}$BR +\(R' = \) \{ans_rule(20)\} \(\Omega /m\) \{ helpLink("numbers") \}$BR +\(L' = \) \{ans_rule(20)\} \(nH/m\) \{ helpLink("numbers") \}$BR +\(G' = \) \{ans_rule(20)\} \(mS/m\) \{ helpLink("numbers") \}$BR +\(C' = \) \{ans_rule(20)\} \(pF/m\) \{ helpLink("numbers") \}$BR $PAR (b) Using the values obtained above and Table 2-2, find the following parameters: $PAR -\(\alpha = \) \{ans_rule(20)\} \(Np /m\) \{ AnswerFormatHelp("numbers") \}$BR -\(\beta = \) \{ans_rule(20)\} \(m/s\) \{ AnswerFormatHelp("numbers") \}$BR -\(u_p = \) \{ans_rule(20)\} \(S/m\) \{ AnswerFormatHelp("numbers") \}$BR -\(Z_0 = \) \{ans_rule(20)\} \(\Omega\) \{ AnswerFormatHelp("numbers") \}$BR +\(\alpha = \) \{ans_rule(20)\} \(Np /m\) \{ helpLink("numbers") \}$BR +\(\beta = \) \{ans_rule(20)\} \(m/s\) \{ helpLink("numbers") \}$BR +\(u_p = \) \{ans_rule(20)\} \(S/m\) \{ helpLink("numbers") \}$BR +\(Z_0 = \) \{ans_rule(20)\} \(\Omega\) \{ helpLink("numbers") \}$BR END_TEXT Context()->normalStrings; @@ -144,7 +144,7 @@ Context()->texStrings; BEGIN_SOLUTION -$PAR +$PAR (a) Given: $BR \(a = d_{in} / 2 cm\) \( = $di_cm cm\) $BR @@ -181,7 +181,7 @@ $PAR $PAR \(\gamma = \sqrt{(R' + j w L') \times (G' + j w C')}\) \(\gamma = \sqrt{($R_p + j \times $omega \times $L_p) \ times ($G_p + j \times $omega \times $C_p)}\) -\( = $gamma \)$BR +\( = $gamma \)$BR $PAR \(\alpha = Re(\gamma)\) \( = $alpha N_p/s\) $BR diff --git a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.9.pg b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.9.pg index 532024936b..3c0404c03d 100755 --- a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.9.pg +++ b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_2.9.pg @@ -1,11 +1,11 @@ # DESCRIPTION -# Problem for 'NCSU ECE303 Ulaby 7Ed P2.9'. +# Problem for 'NCSU ECE303 Ulaby 7Ed P2.9'. # WeBWorK problem written by H. J. Trussell, # ENDDESCRIPTION ## Autho(H. J. Trussell) -## Problem('2.9') -## Keywords('lossless','microstrip') +## Problem('2.9') +## Keywords('lossless','microstrip') ## DBsubject(Electrical Engineering) ## DBchapter(CHAPTER 2 Transmission Lines) ## DBsection(Section 2-5: The Lossless Microstrip Line) @@ -17,14 +17,14 @@ ## Section1('.') ## Problem1('') ## KEYWORDS('lossless','microstrip') -## Resources() +## Resources() DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "unionLists.pl", "answerHints.pl", "parserFunction.pl", @@ -46,9 +46,9 @@ $f = Real(random(4,12,0.1)*10**9); # GHz $w = Real(random(0.8,2.0,0.1)*10**(-3)); # width cm but formula is in meters $h= Real(random( 1.0,2.0,0.1)*10**(-2)); # thicknessr in mm, formula uses meters -$sigma = Real(2*10**(-6)); # S/m +$sigma = Real(2*10**(-6)); # S/m $sigma_c = Real(5.8*10**(7)); # S/m for copper -$epsilon_r = Real(random(2.1,2.9.0.1)); # dielectric +$epsilon_r = Real(random(2.1,2.9.0.1)); # dielectric $epsilon_0 = Compute((10**(-9))/(36*pi)); $mu_0 = Real(4*pi*10**(-7)); @@ -62,7 +62,7 @@ $c = Real(3*10**8); # m/s #$f = Real(10*10**9); # GHz #$w = Real(1*10**(-3)); # width cm but formula is in meters #$h= Real(1*10**(-2)); # thicknessr in mm, formula uses meters -#$epsilon_r = Real(2.5); # dielectric +#$epsilon_r = Real(2.5); # dielectric # answers @@ -94,10 +94,10 @@ $BBOLD This problem is related to Problem 2.9 in the "The Fundamentals of Applie $PAR A lossless microstrip line uses \($w_mm mm\) wide conducting strip over a \($h_cm cm\) thick substrate with \(\varepsilon _r = $epsilon_r\). Using the equations in the text, determine the line parameters, \(\varepsilon_{eff}\), \(Z_0\) and \(\beta\) at \($f_GHz GHz\). compare your results with those obtained by using CD Module 2.3. $PAR -\(\varepsilon_{eff} = \) \{ans_rule(20)\} \{ AnswerFormatHelp("numbers") \}$BR -\(Z_0 = \) \{ans_rule(20)\} \(\Omega\) \{ AnswerFormatHelp("numbers") \}$BR -\(\beta= \) \{ans_rule(20)\} \(rad/m\) \{ AnswerFormatHelp("numbers") \}$BR -The wavelength on the transmission line \(\lambda=\) \{ans_rule(20)\} \(mm\) \{ AnswerFormatHelp("numbers") \}$BR +\(\varepsilon_{eff} = \) \{ans_rule(20)\} \{ helpLink("numbers") \}$BR +\(Z_0 = \) \{ans_rule(20)\} \(\Omega\) \{ helpLink("numbers") \}$BR +\(\beta= \) \{ans_rule(20)\} \(rad/m\) \{ helpLink("numbers") \}$BR +The wavelength on the transmission line \(\lambda=\) \{ans_rule(20)\} \(mm\) \{ helpLink("numbers") \}$BR END_TEXT Context()->normalStrings; @@ -117,7 +117,7 @@ Context()->texStrings; BEGIN_SOLUTION -$PAR +$PAR Given: $BR \(w = $w m \), \(h = $h m \), @@ -147,7 +147,7 @@ Hence, $BR Also, $BR \(\beta =\Large{ \frac{w}{c} \sqrt{\varepsilon_{eff}}} \) \( = \frac{$w}{$c} \times \sqrt{$eps_eff} \) -\( = $beta rad/m\). $BR +\( = $beta rad/m\). $BR And, $BR \(\lambda = 2 \pi / \beta \) \( = 2 \pi / $beta \) diff --git a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.20a.pg b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.20a.pg index bc297a7f7f..aa998edcfa 100755 --- a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.20a.pg +++ b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.20a.pg @@ -24,7 +24,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -110,17 +110,17 @@ The following figure demonstrates the spatial variation of vector field \(E= $PAR Following the same convention, determine values of the vector field (the vector values of the arrows in vector field plot) for \(- \hat{\textbf{x}} y\) at the following four points: $BR -At \($Vec1\), the vector field value is \{ans_rule(20)\} \{ AnswerFormatHelp("vectors") \} $PAR -At \($Vec2\), the vector field value is \{ans_rule(20)\} \{ AnswerFormatHelp("vectors") \} $PAR -At \($Vec3\), the vector field value is \{ans_rule(20)\} \{ AnswerFormatHelp("vectors") \} $PAR -At \($Vec4\), the vector field value is \{ans_rule(20)\} \{ AnswerFormatHelp("vectors") \} $BR +At \($Vec1\), the vector field value is \{ans_rule(20)\} \{ helpLink("vectors") \} $PAR +At \($Vec2\), the vector field value is \{ans_rule(20)\} \{ helpLink("vectors") \} $PAR +At \($Vec3\), the vector field value is \{ans_rule(20)\} \{ helpLink("vectors") \} $PAR +At \($Vec4\), the vector field value is \{ans_rule(20)\} \{ helpLink("vectors") \} $BR Note: Your answers should be the form of \(\langle x,y \rangle \). $PAR \{ $mc->print_q() \} $BR \{ $mc->print_a() \} $BR -$PAR +$PAR END_TEXT Context()->normalStrings; diff --git a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.20b.pg b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.20b.pg index 9f72e30aa7..50324a5206 100755 --- a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.20b.pg +++ b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.20b.pg @@ -24,7 +24,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -109,17 +109,17 @@ The following figure demonstrates the spatial variation of vector field \(E=\hat $PAR Following the same convention, determine values of the vector field (the vector values of the arrows in vector field plot) for \( \hat{\textbf{y}} x\) at the following four points: $BR -At \($Vec1\), the vector field value is \{ans_rule(20)\} \{ AnswerFormatHelp("vectors") \} $PAR -At \($Vec2\), the vector field value is \{ans_rule(20)\} \{ AnswerFormatHelp("vectors") \} $PAR -At \($Vec3\), the vector field value is \{ans_rule(20)\} \{ AnswerFormatHelp("vectors") \} $PAR -At \($Vec4\), the vector field value is \{ans_rule(20)\} \{ AnswerFormatHelp("vectors") \} $BR +At \($Vec1\), the vector field value is \{ans_rule(20)\} \{ helpLink("vectors") \} $PAR +At \($Vec2\), the vector field value is \{ans_rule(20)\} \{ helpLink("vectors") \} $PAR +At \($Vec3\), the vector field value is \{ans_rule(20)\} \{ helpLink("vectors") \} $PAR +At \($Vec4\), the vector field value is \{ans_rule(20)\} \{ helpLink("vectors") \} $BR Note: Your answers should be in the form of \(\langle x,y \rangle \). $PAR \{ $mc->print_q() \} $BR \{ $mc->print_a() \} $BR -$PAR +$PAR END_TEXT Context()->normalStrings; diff --git a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.20c.pg b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.20c.pg index 1af49de746..2ed802f9b8 100755 --- a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.20c.pg +++ b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.20c.pg @@ -24,7 +24,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -108,17 +108,17 @@ The following figure demonstrates the spatial variation of vector field \(E=\hat $PAR Following the same convention, determine values of the vector field (the vector values of the arrows in vector field plot) for \( \hat x x + \hat y y \) at the following four points: $BR -At \($Vec1\), the vector field value is \{ans_rule(20)\} \{ AnswerFormatHelp("vectors") \} $PAR -At \($Vec2\), the vector field value is \{ans_rule(20)\} \{ AnswerFormatHelp("vectors") \} $PAR -At \($Vec3\), the vector field value is \{ans_rule(20)\} \{ AnswerFormatHelp("vectors") \} $PAR -At \($Vec4\), the vector field value is \{ans_rule(20)\} \{ AnswerFormatHelp("vectors") \} $BR +At \($Vec1\), the vector field value is \{ans_rule(20)\} \{ helpLink("vectors") \} $PAR +At \($Vec2\), the vector field value is \{ans_rule(20)\} \{ helpLink("vectors") \} $PAR +At \($Vec3\), the vector field value is \{ans_rule(20)\} \{ helpLink("vectors") \} $PAR +At \($Vec4\), the vector field value is \{ans_rule(20)\} \{ helpLink("vectors") \} $BR Note: Your answers should be enclosed in \(\langle x,y \rangle \). $PAR \{ $mc->print_q() \} $BR \{ $mc->print_a() \} $BR -$PAR +$PAR END_TEXT Context()->normalStrings; diff --git a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.20d.pg b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.20d.pg index c41fa2b50c..c652c8a33b 100755 --- a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.20d.pg +++ b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.20d.pg @@ -24,7 +24,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -108,17 +108,17 @@ The following figure demonstrates the spatial variation of vector field \(E=\hat $PAR Following the same convention, determine values of the vector field (the vector values of the arrows in vector field plot) for \( \hat x x +2 \hat y y \) at the following four points: $BR -At \($Vec1\), the vector field value is \{ans_rule(20)\} \{ AnswerFormatHelp("vectors") \} $PAR -At \($Vec2\), the vector field value is \{ans_rule(20)\} \{ AnswerFormatHelp("vectors") \} $PAR -At \($Vec3\), the vector field value is \{ans_rule(20)\} \{ AnswerFormatHelp("vectors") \} $PAR -At \($Vec4\), the vector field value is \{ans_rule(20)\} \{ AnswerFormatHelp("vectors") \} $BR +At \($Vec1\), the vector field value is \{ans_rule(20)\} \{ helpLink("vectors") \} $PAR +At \($Vec2\), the vector field value is \{ans_rule(20)\} \{ helpLink("vectors") \} $PAR +At \($Vec3\), the vector field value is \{ans_rule(20)\} \{ helpLink("vectors") \} $PAR +At \($Vec4\), the vector field value is \{ans_rule(20)\} \{ helpLink("vectors") \} $BR Note: Your answers should be enclosed in \(\langle x,y \rangle \). $PAR \{ $mc->print_q() \} $BR \{ $mc->print_a() \} $BR -$PAR +$PAR END_TEXT Context()->normalStrings; diff --git a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.20e.pg b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.20e.pg index bec0e45944..09ba341490 100755 --- a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.20e.pg +++ b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.20e.pg @@ -24,7 +24,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -114,17 +114,17 @@ The following figure demonstrates the spatial variation of vector field \(E=\hat $PAR Following the same convention, determine values of the vector field (the vector values of the arrows in vector field plot) for \(\hat{\bf{\phi}} r \) at the following four points: $BR -At \($Vec1\), the vector field value is \{ans_rule(20)\} \{ AnswerFormatHelp("vectors") \} $PAR -At \($Vec2\), the vector field value is \{ans_rule(20)\} \{ AnswerFormatHelp("vectors") \} $PAR -At \($Vec3\), the vector field value is \{ans_rule(20)\} \{ AnswerFormatHelp("vectors") \} $PAR -At \($Vec4\), the vector field value is \{ans_rule(20)\} \{ AnswerFormatHelp("vectors") \} $BR +At \($Vec1\), the vector field value is \{ans_rule(20)\} \{ helpLink("vectors") \} $PAR +At \($Vec2\), the vector field value is \{ans_rule(20)\} \{ helpLink("vectors") \} $PAR +At \($Vec3\), the vector field value is \{ans_rule(20)\} \{ helpLink("vectors") \} $PAR +At \($Vec4\), the vector field value is \{ans_rule(20)\} \{ helpLink("vectors") \} $BR Note: Your answers should be enclosed in \(\langle x,y \rangle \). $PAR \{ $mc->print_q() \} $BR \{ $mc->print_a() \} $BR -$PAR +$PAR END_TEXT Context()->normalStrings; diff --git a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.20f.pg b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.20f.pg index cf2d190c9c..aadc778884 100755 --- a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.20f.pg +++ b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.20f.pg @@ -24,7 +24,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -113,17 +113,17 @@ The following figure demonstrates the spatial variation of vector field \(E=\hat $PAR Following the same convention, determine values of the vector field (the vector values of the arrows in vector field plot) for \( \hat{\textbf{r}} sin \phi \) at the following four points (Note: your answers will be validated to \(\pm 0.01\) absolute): $BR -At \($Vec1\), the vector field value is \{ans_rule(20)\} \{ AnswerFormatHelp("vectors") \} $PAR -At \($Vec2\), the vector field value is \{ans_rule(20)\} \{ AnswerFormatHelp("vectors") \} $PAR -At \($Vec3\), the vector field value is \{ans_rule(20)\} \{ AnswerFormatHelp("vectors") \} $PAR -At \($Vec4\), the vector field value is \{ans_rule(20)\} \{ AnswerFormatHelp("vectors") \} $BR +At \($Vec1\), the vector field value is \{ans_rule(20)\} \{ helpLink("vectors") \} $PAR +At \($Vec2\), the vector field value is \{ans_rule(20)\} \{ helpLink("vectors") \} $PAR +At \($Vec3\), the vector field value is \{ans_rule(20)\} \{ helpLink("vectors") \} $PAR +At \($Vec4\), the vector field value is \{ans_rule(20)\} \{ helpLink("vectors") \} $BR Note: Your answers should be enclosed in \(\langle x,y \rangle \). $PAR \{ $mc->print_q() \} $BR \{ $mc->print_a() \} $BR -$PAR +$PAR END_TEXT Context()->normalStrings; diff --git a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.22.pg b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.22.pg index 619048292d..662688a5b6 100755 --- a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.22.pg +++ b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.22.pg @@ -23,7 +23,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -107,20 +107,20 @@ $BBOLD \( P_4 \) $EBOLD \(=$Dv \). $BR Note: The coordinates are enclosed in \(\langle \rangle \) in Webwork. Any angular values in the cylindrical and spherical coordinates should be expressed in radians. Your answers will be validated to \(\pm 0.01\) absolute.$PAR In cylindrical coordinates \( \langle r , \theta , z \rangle \), $BR -$BBOLD \(P_1\) $EBOLD =\{ans_rule(30)\} \{ AnswerFormatHelp("vectors") \} $BR -$BBOLD \( P_2 \) $EBOLD=\{ans_rule(30)\} \{ AnswerFormatHelp("vectors") \} +$BBOLD \(P_1\) $EBOLD =\{ans_rule(30)\} \{ helpLink("vectors") \} $BR +$BBOLD \( P_2 \) $EBOLD=\{ans_rule(30)\} \{ helpLink("vectors") \} $BR -$BBOLD \(P_3\) $EBOLD =\{ans_rule(30)\} \{ AnswerFormatHelp("vectors") \} $BR -$BBOLD \( P_4 \) $EBOLD=\{ans_rule(30)\} \{ AnswerFormatHelp("vectors") \} +$BBOLD \(P_3\) $EBOLD =\{ans_rule(30)\} \{ helpLink("vectors") \} $BR +$BBOLD \( P_4 \) $EBOLD=\{ans_rule(30)\} \{ helpLink("vectors") \} $PAR In spherical coordinates \( \langle R , \theta , \phi \rangle \), $BR -$BBOLD \(P_1\) $EBOLD =\{ans_rule(30)\} \{ AnswerFormatHelp("vectors") \} $BR -$BBOLD \( P_2 \) $EBOLD=\{ans_rule(30)\} \{ AnswerFormatHelp("vectors") \} +$BBOLD \(P_1\) $EBOLD =\{ans_rule(30)\} \{ helpLink("vectors") \} $BR +$BBOLD \( P_2 \) $EBOLD=\{ans_rule(30)\} \{ helpLink("vectors") \} $BR -$BBOLD \(P_3\) $EBOLD =\{ans_rule(30)\} \{ AnswerFormatHelp("vectors") \} $BR -$BBOLD \( P_4 \) $EBOLD=\{ans_rule(30)\} \{ AnswerFormatHelp("vectors") \} +$BBOLD \(P_3\) $EBOLD =\{ans_rule(30)\} \{ helpLink("vectors") \} $BR +$BBOLD \( P_4 \) $EBOLD=\{ans_rule(30)\} \{ helpLink("vectors") \} $PAR END_TEXT @@ -138,7 +138,7 @@ ANS( $Sp4->cmp() ); # Solution Context()->texStrings; BEGIN_SOLUTION -$PAR +$PAR In your calculation, ensure the angles are in the correct quadrants. $BR In cylindrical coordinates, $BR \(P_1=\langle \sqrt{$Ax^2+$Ay^2},atan($Ay/$Ax),$Az \rangle =$Cy1\); $BR diff --git a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.25.pg b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.25.pg index c21f0bbc02..1f158b5990 100755 --- a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.25.pg +++ b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.25.pg @@ -23,7 +23,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -81,13 +81,13 @@ $BBOLD This problem is related to Problem 3.25 in the "The Fundamentals of Appli $PAR Use the appropriate expression for the differential surface area \(ds\) to determine the area of each of the following surfaces (denoted as \(A\)): $BR (a) \( $rbmin \le r \le $rbmax\); \( $angbmin \pi \le \phi \le $angbmax \pi \); \(z=$zb\). $BR -\( A \)=\{ans_rule(20)\} \{ AnswerFormatHelp("numbers") \}$PAR +\( A \)=\{ans_rule(20)\} \{ helpLink("numbers") \}$PAR (b) \( R=$rd\); \( 0 \le \theta \le \pi/$thetadinv \); \( 0 \le \phi \le \pi/$phidinv \). $BR -\( A \)=\{ans_rule(20)\} \{ AnswerFormatHelp("numbers") \}$PAR +\( A \)=\{ans_rule(20)\} \{ helpLink("numbers") \}$PAR (c) \( 0 \le R \le $remax\); \( \theta = \pi/$thetaeinv \); \( 0 \le \phi \le $phie \pi \). $BR -\( A \)=\{ans_rule(20)\} \{ AnswerFormatHelp("numbers") \}$PAR +\( A \)=\{ans_rule(20)\} \{ helpLink("numbers") \}$PAR @@ -102,7 +102,7 @@ ANS( $Ae->cmp() ); # Solution Context()->texStrings; BEGIN_SOLUTION -$PAR +$PAR a) \(A=\int_{r=$rbmin}^{$rbmax} \int_{\phi=$angbmin \pi }^{$angbmax \pi} (r)|_{z=0} d \phi dr =$Ab \) $PAR diff --git a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.27.pg b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.27.pg index 73ebebe686..ab2c4fef9b 100755 --- a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.27.pg +++ b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.27.pg @@ -23,7 +23,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -61,8 +61,8 @@ $BBOLD This problem is related to Problem 3.27 in the "The Fundamentals of Appli $PAR A section of a sphere is described by \( 0 \le R \le $R\) (in meters) ; \( \theta = \pi/$thetainv \); \( \pi/$phiinvmin \le \phi \le \pi/$phiinvmax \). $PAR -(a) the surface area of the spherical section is \{ans_rule(20)\} \(m^2\) \{ AnswerFormatHelp("numbers") \}$PAR -(b) the enclosed volume is \{ans_rule(20)\} \(m^3 \) \{ AnswerFormatHelp("numbers") \}$PAR +(a) the surface area of the spherical section is \{ans_rule(20)\} \(m^2\) \{ helpLink("numbers") \}$PAR +(b) the enclosed volume is \{ans_rule(20)\} \(m^3 \) \{ helpLink("numbers") \}$PAR END_TEXT @@ -76,7 +76,7 @@ ANS( $Vv->cmp() ); # Solution Context()->texStrings; BEGIN_SOLUTION -$PAR +$PAR \(A=\int_{\phi=\pi/ $phiinvmin}^{\pi/ $phiinvmax } \int_{\theta=0 }^{ \pi/$thetainv} (R^2 sin \theta)|_{R=$R} d \theta d \phi =$Av m^2 \) $PAR diff --git a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.31.pg b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.31.pg index d13c541f65..0d9e9422c7 100755 --- a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.31.pg +++ b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.31.pg @@ -23,7 +23,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -102,13 +102,13 @@ $BBOLD This problem is related to Problem 3.31 in the "The Fundamentals of Appli $PAR Find the distance between the following pairs of points: $BR (a) \(P_1=($Ax,$Ay,$Az) \) and \(P_2=($Bx,$By,$Bz) \) in Cartesian coordinates. $BR -The distance is =\{ans_rule(20)\} \(m\) \{ AnswerFormatHelp("numbers") \} $PAR - +The distance is =\{ans_rule(20)\} \(m\) \{ helpLink("numbers") \} $PAR + (b) \(P_3=($Abx,\pi / $AngbAinv,$Zba) \) and \(P_4=($Bbx,\pi / $AngbBinv,$Zbb) \) in Cylindrical coordinates. $BR -The distance is =\{ans_rule(20)\} \(m\) \{ AnswerFormatHelp("numbers") \} $PAR +The distance is =\{ans_rule(20)\} \(m\) \{ helpLink("numbers") \} $PAR (c) \(P_5=($Acx,$Thetaca \cdot \pi , $Phica \cdot \pi) \) and \(P_6=($Bcx,$Thetacb \cdot \pi ,$Phicb \cdot \pi ) \) in Spherical coordinates. $BR -The distance is =\{ans_rule(20)\} \(m\) \{ AnswerFormatHelp("numbers") \} $PAR +The distance is =\{ans_rule(20)\} \(m\) \{ helpLink("numbers") \} $PAR Note: distances in meters @@ -123,7 +123,7 @@ ANS( $Dist3->cmp() ); # Solution Context()->texStrings; BEGIN_SOLUTION -$PAR +$PAR a) \(d=[($Ax-$Bx)^2+($Ay - $By)^2 +($Az - $Bz)^2]^{0.5}=$Dist1 m\) $PAR b) \(d=[r_2^2+r_1^2-2r_1r_2 cos(\phi_2 -\phi_1)+(z_2-z_1)^2]^{0.5}\) $PAR diff --git a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.36.pg b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.36.pg index 9b2d70b377..128ea7f3ea 100755 --- a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.36.pg +++ b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.36.pg @@ -32,7 +32,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -53,7 +53,7 @@ Context()->flags->set( ); Context()->variables->are(x=>'Real',y=>'Real',z=>'Real',p=>'Real',t=>'Real',R=>'Real',r=>'Real',); -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; #Initialize element values, to be changed for each question $Px=random(1,4,1); $Py=random(1,4,1); @@ -91,7 +91,7 @@ $PAR $BBOLD This problem is related to Problem 3.36 in the "The Fundamentals of Applied Electromagnetic 7Ed, (Ulaby & Ravaioli)" $EBOLD $PAR Find the gradient of the following scalar functions. In your answers, use \(t\) to represent \(\theta\), \(p\) to represent \(\phi\) and note that \(r\) and \(R\) are not equivalent. $PAR -(a) \(\nabla (x^$Px y^$Py z^$Pz)\)=\{ans_rule(12) \} \(\bf{\hat x}\)+\{ans_rule(12) \} \(\bf{\hat y}\)+ \{ans_rule(12) \} \(\bf{\hat z}\). \{ AnswerFormatHelp("formula") \} +(a) \(\nabla (x^$Px y^$Py z^$Pz)\)=\{ans_rule(12) \} \(\bf{\hat x}\)+\{ans_rule(12) \} \(\bf{\hat y}\)+ \{ans_rule(12) \} \(\bf{\hat z}\). \{ helpLink("formula") \} $PAR (b) \( \nabla (z^$Pz2 cos \phi /(1+r^$Pr))\)= \{ans_rule(12) \} \(\bf{\hat r}\)+\{ans_rule(12) \} \(\bf{\hat{\phi}}\)+ \{ans_rule(12) \} \(\bf{\hat z}\). $PAR (c) \( \nabla (e^{$Cr \cdot R}sin($Ct \cdot \theta)+$Cp \cdot \phi)\)= \{ans_rule(12) \} \(\bf{\hat R}\)+\{ans_rule(12) \} \(\bf{\hat{\theta}}\)+ \{ans_rule(12) \} \(\bf{\hat{\phi}}\). $PAR @@ -138,7 +138,7 @@ From equation 3.72 in the textbook, $BR From equation 3.82 in the textbook, $BR \( \Large \nabla (z^$Pz2 cos \phi /(1+r^$Pr))=$Gr2 \hat{\textbf r}+$Gp2 \hat{\bf{\phi}} + $Gz2 \hat{\textbf z}\). $PAR From equation 3.83 in the textbook, $BR - \( \nabla (e^{$Cr R}sin($Ct \cdot \theta)+$Cp \cdot \phi) =$Gr3 \hat{\textbf R} + $Gt3 \hat{\bf{\theta}} +$Gp3 \hat{\bf{\phi}}\). + \( \nabla (e^{$Cr R}sin($Ct \cdot \theta)+$Cp \cdot \phi) =$Gr3 \hat{\textbf R} + $Gt3 \hat{\bf{\theta}} +$Gp3 \hat{\bf{\phi}}\). END_SOLUTION diff --git a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.36b.pg b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.36b.pg index 4e3a553664..102585e146 100755 --- a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.36b.pg +++ b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.36b.pg @@ -32,7 +32,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -53,7 +53,7 @@ Context()->flags->set( ); Context()->variables->are(x=>'Real',y=>'Real',z=>'Real',a=>'Real',b=>'Real',c=>'Real'); -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; $nabladA=Formula("a*cos(ax)+exp(-b*x)+c*y")->reduce; $nablacAx=Formula("c*z")->reduce; $nablacAy=Formula("0")->reduce; @@ -71,10 +71,10 @@ $PAR $BBOLD This problem is related to Problem 3.36 in the "The Fundamentals of Applied Electromagnetic 7Ed, (Ulaby & Ravaioli)" $EBOLD $PAR Let \(A(x,y,z)=\hat{\textbf{x}} sin(ax) + \hat{\textbf{y}} y e^{-bx} +\hat{\textbf{z}} cyz \) (\(a,b,c\) are random parameters). The variables allowed in your answers are \(a,b,c,x,y,z\). $PAR -a) \(\nabla \cdot \textbf{A}\)= \{ans_rule(12) \} \{ AnswerFormatHelp("formula") \} $PAR +a) \(\nabla \cdot \textbf{A}\)= \{ans_rule(12) \} \{ helpLink("formula") \} $PAR b) \( \nabla \times \textbf{A}\)=\{ans_rule(12) \} \(\hat{\textbf{x}}\)+\{ans_rule(12) \} \(\hat{\textbf{y}}\)+ \{ans_rule(12) \} \(\hat{\textbf{z}}\) $PAR -c) \( \nabla \cdot (\nabla \times \textbf{A}) \)=\{ans_rule(12) \} +c) \( \nabla \cdot (\nabla \times \textbf{A}) \)=\{ans_rule(12) \} diff --git a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.36c.pg b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.36c.pg index 4a338fcc3b..78d2f33db4 100755 --- a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.36c.pg +++ b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.36c.pg @@ -32,7 +32,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -69,7 +69,7 @@ Context()->flags->set( ); Context()->variables->are(x=>'Real',y=>'Real',z=>'Real'); # -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; $nabladA=Formula("$a*cos($a*x)+exp($b*x)+$c*y")->reduce; # should not be a problem since a b c are given $nablacAx=Formula("$c*z")->reduce; @@ -84,10 +84,10 @@ $PAR $BBOLD This problem is related to Problem 3.36 in the "The Fundamentals of Applied Electromagnetic 7Ed, (Ulaby & Ravaioli)" $EBOLD $PAR Let \(A(x,y,z)=\hat{\textbf{x}} sin($a x) + \hat{\textbf{y}} y e^{$b x} +\hat{\textbf{z}} $c yz \) . The variables allowed in your answers are \(x,y,z\). $PAR -a) \(\nabla \cdot \textbf{A}\)= \{ans_rule(12) \} \{ AnswerFormatHelp("formula") \} $PAR +a) \(\nabla \cdot \textbf{A}\)= \{ans_rule(12) \} \{ helpLink("formula") \} $PAR b) \( \nabla \times \textbf{A}\)=\{ans_rule(12) \} \(\hat{\textbf{x}}\)+\{ans_rule(12) \} \(\hat{\textbf{y}}\)+ \{ans_rule(12) \} \(\hat{\textbf{z}}\) $PAR -c) \( \nabla \cdot (\nabla \times \textbf{A}) \)=\{ans_rule(12) \} +c) \( \nabla \cdot (\nabla \times \textbf{A}) \)=\{ans_rule(12) \} diff --git a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.5.pg b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.5.pg index 0a9c0941ac..d686800c0e 100755 --- a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.5.pg +++ b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_3.5.pg @@ -23,7 +23,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -126,32 +126,32 @@ Given \(\bf{C}=$Cv \). $BR Evaluate each of the following vector manipulations following the right hand convention. $BR -NOTE: You may use "x","y" and "z" to represent \( \bf{\hat x}, \bf{\hat y}\) and \(\bf{\hat z}\) respectively in your answer. Your answers will be validated to \(\pm 0.01\) absolute.$PAR +NOTE: You may use "x","y" and "z" to represent \( \bf{\hat x}, \bf{\hat y}\) and \(\bf{\hat z}\) respectively in your answer. Your answers will be validated to \(\pm 0.01\) absolute.$PAR $BBOLD a) $EBOLD $BR -\(|\bf{A}|\)=\{ans_rule(10)\} \{ AnswerFormatHelp("numbers") \} $BR -\( \bf{\hat a} \)=\{ans_rule(20)\} (The unit vector in \(\bf{A}\) direction) \{ AnswerFormatHelp("vectors") \}$PAR +\(|\bf{A}|\)=\{ans_rule(10)\} \{ helpLink("numbers") \} $BR +\( \bf{\hat a} \)=\{ans_rule(20)\} (The unit vector in \(\bf{A}\) direction) \{ helpLink("vectors") \}$PAR $BBOLD b) $EBOLD $BR -The component of \(\bf{B} \) in \(\bf{C}\) is \{ans_rule(10)\} \{ AnswerFormatHelp("numbers") \}$PAR +The component of \(\bf{B} \) in \(\bf{C}\) is \{ans_rule(10)\} \{ helpLink("numbers") \}$PAR $BBOLD c) $EBOLD $BR - \( \theta_{AC}\)=\{ans_rule(6)\} \(^{\circ} \) \{ AnswerFormatHelp("numbers") \}$PAR + \( \theta_{AC}\)=\{ans_rule(6)\} \(^{\circ} \) \{ helpLink("numbers") \}$PAR $BBOLD d) $EBOLD $BR -\( \bf{A} \times \bf{C}\)=\{ans_rule(20)\} \{ AnswerFormatHelp("vectors") \}$PAR +\( \bf{A} \times \bf{C}\)=\{ans_rule(20)\} \{ helpLink("vectors") \}$PAR $BBOLD e) $EBOLD $BR -\(\bf{A} \cdot (\bf{B} \times \bf{C})\)=\{ans_rule(10)\} \{ AnswerFormatHelp("numbers") \} $PAR +\(\bf{A} \cdot (\bf{B} \times \bf{C})\)=\{ans_rule(10)\} \{ helpLink("numbers") \} $PAR $BBOLD f) $EBOLD $BR -\(\bf{A} \times (\bf{B} \times \bf{C})\)=\{ans_rule(20)\} \{ AnswerFormatHelp("vectors") \}$PAR +\(\bf{A} \times (\bf{B} \times \bf{C})\)=\{ans_rule(20)\} \{ helpLink("vectors") \}$PAR -$BBOLD g) $EBOLD $BR -\(\bf{\hat x} \times \bf{B}\)=\{ans_rule(20)\} \{ AnswerFormatHelp("vectors") \}$PAR +$BBOLD g) $EBOLD $BR +\(\bf{\hat x} \times \bf{B}\)=\{ans_rule(20)\} \{ helpLink("vectors") \}$PAR $BBOLD h) $EBOLD $BR -\((\bf{A} \times \bf{\hat y}) \cdot \bf{\hat z}\)=\{ans_rule(20)\} \{AnswerFormatHelp("numbers") \}$PAR +\((\bf{A} \times \bf{\hat y}) \cdot \bf{\hat z}\)=\{ans_rule(20)\} \{helpLink("numbers") \}$PAR END_TEXT @@ -170,7 +170,7 @@ ANS( $Ayz->cmp() ); # Solution Context()->texStrings; BEGIN_SOLUTION -$PAR +$PAR a) \( $normAv \), \($unitAv \)$BR b) \( $Bc \)$BR c) \( $AngAC \)$BR diff --git a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.14.pg b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.14.pg index 5913ae191f..f5728fa44a 100755 --- a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.14.pg +++ b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.14.pg @@ -23,7 +23,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -76,7 +76,7 @@ A line of charge with uniform density \( \rho_l = $rho (\mu C/m) \) exists in ai NOTE: Your answer should be in the form of "ax+by+cz", where "x", "y" and "z" represent \( \bf{\hat x}, \bf{\hat y}\) and \(\bf{\hat z}\) respectively and "a", "b" and "c" are vector coefficients determined by you. Use \(\varepsilon_0=\frac{10^{-9}}{36 \pi}\). Make sure the unit is consistent. $PAR -\( \bf{E} \)=\{ans_rule(20)\} \((kV/m)\) \{ AnswerFormatHelp("vectors") \} +\( \bf{E} \)=\{ans_rule(20)\} \((kV/m)\) \{ helpLink("vectors") \} END_TEXT Context()->normalStrings; @@ -88,7 +88,7 @@ ANS( $Ev->cmp() ); # Solution Context()->texStrings; BEGIN_SOLUTION -$PAR +$PAR Use of Eq. 4.21c from the textbook for line of charge gives: $BR diff --git a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.15.pg b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.15.pg index cb2e78e50c..36cddbee80 100755 --- a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.15.pg +++ b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.15.pg @@ -23,7 +23,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -98,9 +98,9 @@ Electric charge is distributed along an arc located in the x-y plane and defined NOTE:Your answer should be in the form of "ax+by+cz", where "x", "y" and "z" represent \( \bf{\hat x}, \bf{\hat y}\) and \(\bf{\hat z}\) respectively and "a", "b" and "c" are vector coefficients determined by you. Use \(\varepsilon_0=\frac{10^{-9}}{36 \pi}\). Make sure the unit is consistent. $PAR -a) At \(z=0\), \(\bf{E}\)=\{ans_rule(20)\} \((kV/m)\) \{ AnswerFormatHelp("vectors") \} $BR -b) At \(z=$zb cm\), \(\bf{E}\)=\{ans_rule(20)\} \((kV/m)\) \{ AnswerFormatHelp("vectors") \} $BR -c) At \(z=$zc cm\), \(\bf{E}\)=\{ans_rule(20)\} \((kV/m)\) \{ AnswerFormatHelp("vectors") \} +a) At \(z=0\), \(\bf{E}\)=\{ans_rule(20)\} \((kV/m)\) \{ helpLink("vectors") \} $BR +b) At \(z=$zb cm\), \(\bf{E}\)=\{ans_rule(20)\} \((kV/m)\) \{ helpLink("vectors") \} $BR +c) At \(z=$zc cm\), \(\bf{E}\)=\{ans_rule(20)\} \((kV/m)\) \{ helpLink("vectors") \} END_TEXT @@ -113,7 +113,7 @@ ANS( $Vecc->cmp() ); # Solution Context()->texStrings; BEGIN_SOLUTION -$PAR +$PAR For an arc of charge, \(dl=r d \phi=\frac{$rv}{100} d \phi \), and \( \hat{\bf R}'=-\hat{\bf x} $rv/100 cos \phi -\hat{\bf y} $rv/100 sin \phi + \hat{\bf z} z\). Use of Eq. 4.21c from the textbook for line of charge gives: $BR \(\bf{E}=\Large \frac{1}{4 \pi \varepsilon_0} \int_{l'} \hat{ \bf R}'\frac{\rho_l dl'}{ R'^2} \) $BR \(=\Large \frac{1}{4 \pi \varepsilon_0} \int_{\phi=0}^{\frac{\pi}{$phiinv}} \rho_l \frac{(-\hat{ \bf x} \frac{$rv}{100} cos \phi -\hat{ \bf y} \frac{$rv}{100} sin \phi + \hat{ \bf z} z)}{((\frac{$rv}{100})^2+z^2)^{1.5}} \cdot \frac{$rv}{100} d \phi \) diff --git a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.22.pg b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.22.pg index d388f34e6d..b4e696d16d 100755 --- a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.22.pg +++ b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.22.pg @@ -23,7 +23,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -64,12 +64,12 @@ $Qc=Real($Ff+$Fb+$Fr+$Fl); Context()->texStrings; BEGIN_TEXT Given the electric flux density \(\hat{\bf D}=\hat{\bf x} ($Xx x+$Xy y)+\hat{\bf y} ($Yx x +$Yy y) (C/m^2)\), determine $BR -a) Using Eq. 4.26 in the textbook, \(\rho_v\)=\{ans_rule(20)\} \((C/m^3)\) \{ AnswerFormatHelp("numbers") \}$BR +a) Using Eq. 4.26 in the textbook, \(\rho_v\)=\{ans_rule(20)\} \((C/m^3)\) \{ helpLink("numbers") \}$BR -b) The total charge enclosed in a cube with a side length of \($Len (m)\), located in the first octant with three of its sides coincident with the \(x\)-,\(y\)-, and \(z\)-axes and one of its corners at the origin, \(Q\)=\{ans_rule(20)\} \((C)\) \{ AnswerFormatHelp("numbers") \} +b) The total charge enclosed in a cube with a side length of \($Len (m)\), located in the first octant with three of its sides coincident with the \(x\)-,\(y\)-, and \(z\)-axes and one of its corners at the origin, \(Q\)=\{ans_rule(20)\} \((C)\) \{ helpLink("numbers") \} $BR -c) Apply Eq.4.29 in the textbook, the total charge in the cube, \(Q\)=\{ans_rule(20)\} \((C)\) \{ AnswerFormatHelp("numbers") \} +c) Apply Eq.4.29 in the textbook, the total charge in the cube, \(Q\)=\{ans_rule(20)\} \((C)\) \{ helpLink("numbers") \} @@ -85,7 +85,7 @@ ANS( $Qc->cmp() ); # Solution Context()->texStrings; BEGIN_SOLUTION -$PAR +$PAR a) By appling Eq.4.26 in the textbook, \(\rho_v=\nabla \cdot \hat{\bf D} =\frac{\partial ($Xx x+$Xy y}{\partial x}+\frac{$Yx x+$Yy y}{y}=$rhov C/m^3 \) $BR diff --git a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.24.pg b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.24.pg index 95de39a294..dd1ddd9753 100755 --- a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.24.pg +++ b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.24.pg @@ -23,7 +23,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -39,7 +39,7 @@ tolType => "relative", ); Context()->variables->are(Q1=>'Real',Q2=>'Real',eps=>'Real',R=>'Real'); -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; $fa = Formula("0"); $fb = Formula("(Q1)/(4*pi*R^2*eps)"); @@ -49,13 +49,13 @@ $fc = Formula("((Q1+Q2))/(4*pi*R^2*eps)"); Context()->texStrings; BEGIN_TEXT $PAR -Charge \(Q_1\) is uniformly distributed over a thin spherical shell of radius \( a \), and charge \(Q_2\) is uniformly distributed over a second spherical shell of radius \( b\) , with \(b \gt a \). Apply Gauss's law to find \(\textbf{E}\) in the regions \(R \lt a\), \(a \lt R \lt b\), and \(R \gt b\). Note: you may use "Q1", "Q2", "R", "a", "b", "pi" (\(\pi\)) and "eps" (\(\varepsilon\)). +Charge \(Q_1\) is uniformly distributed over a thin spherical shell of radius \( a \), and charge \(Q_2\) is uniformly distributed over a second spherical shell of radius \( b\) , with \(b \gt a \). Apply Gauss's law to find \(\textbf{E}\) in the regions \(R \lt a\), \(a \lt R \lt b\), and \(R \gt b\). Note: you may use "Q1", "Q2", "R", "a", "b", "pi" (\(\pi\)) and "eps" (\(\varepsilon\)). $PAR -a) For \(R \lt a\), \(\textbf{E}\)=\{ans_rule(30)\} \(\hat{\bf R}\) \( (V/m)\) \{ AnswerFormatHelp("formula") \}$BR +a) For \(R \lt a\), \(\textbf{E}\)=\{ans_rule(30)\} \(\hat{\bf R}\) \( (V/m)\) \{ helpLink("formula") \}$BR -b) For \(a \lt R \lt b\), \(\textbf{E}\)=\{ans_rule(30)\} \(\hat{\bf R}\) \( (V/m)\) \{ AnswerFormatHelp("formula") \} $BR +b) For \(a \lt R \lt b\), \(\textbf{E}\)=\{ans_rule(30)\} \(\hat{\bf R}\) \( (V/m)\) \{ helpLink("formula") \} $BR -c) For \(R \gt b\), \(\textbf{E}\)=\{ans_rule(30)\} \(\hat{\bf R}\) \( (V/m)\) \{ AnswerFormatHelp("formula") \}$BR +c) For \(R \gt b\), \(\textbf{E}\)=\{ans_rule(30)\} \(\hat{\bf R}\) \( (V/m)\) \{ helpLink("formula") \}$BR @@ -73,12 +73,12 @@ ANS( $fc->cmp() ); # Solution Context()->texStrings; BEGIN_SOLUTION -$PAR +$PAR Using symmetry considerations, we know \(\hat{\bf R} =D_R\). From Table 3.1, \(d\textbf{s}=\hat{\bf R} R^2 sin \theta d \theta d \phi \) for an element of a spherical surface. Using Gauss's law integral form Eq.4.29, \(Q=\oint D \cdot d\textbf{s}=Q_{tot}\), where \(Q_{tot}\) is the total charge enclosed in S. $BR For a spherical surface of radius \(R\), \(\int_{\phi=0}^{2 \pi} \int_{\theta=0}^{\pi} \hat{\bf R} D_R \cdot \hat{\bf R} R^2 sin \theta d \theta d \phi = Q_{tot}\). $BR \(D_R R^2 (2 \pi) [-cos \theta]_0^{\pi}=Q_{tot}\). $BR \(D_R=\frac{Q_{tot}}{4 \pi R^2} \). $BR -From Eq.4.15, we know a linear, isotropic material has the consitutive relationship, \(D=\varepsilon E\). +From Eq.4.15, we know a linear, isotropic material has the consitutive relationship, \(D=\varepsilon E\). $PARThus we find \(\textbf{E}\) from \(D\): $BR a) In the region \(R \lt a\), \(Q_{tot}=0\),$BR\(\textbf{E}=\hat{\bf R} E_R =\frac{\hat{\bf R} Q_{tot}}{4 \pi R^2 \varepsilon}=0\) $PAR diff --git a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.24b.pg b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.24b.pg index aacb2d80c2..74c9ea16fb 100755 --- a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.24b.pg +++ b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.24b.pg @@ -23,7 +23,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -51,7 +51,7 @@ tolType => "relative", # ); Context()->variables->are(eps=>'Real',R=>'Real'); # -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; $fa = Formula("0"); $fb = Formula("($Q1)/(4*pi*R^2*eps)"); @@ -62,14 +62,14 @@ $Qt = $Q1+$Q2; Context()->texStrings; BEGIN_TEXT $PAR -Charge \(Q_1 = $Q1 (C)\) is uniformly distributed over a thin spherical shell of radius \( a \), and charge \(Q_2 = $Q2 (C)\) is uniformly distributed over a second spherical shell of radius \( b\) , with \(b \gt a \). -Apply Gauss's law to find \(\textbf{E}\) in the regions \(R \lt a\), \(a \lt R \lt b\), and \(R \gt b\). Note: you may use ""R", "a", "b", "pi" (\(\pi\)) and "eps" (\(\varepsilon\)). +Charge \(Q_1 = $Q1 (C)\) is uniformly distributed over a thin spherical shell of radius \( a \), and charge \(Q_2 = $Q2 (C)\) is uniformly distributed over a second spherical shell of radius \( b\) , with \(b \gt a \). +Apply Gauss's law to find \(\textbf{E}\) in the regions \(R \lt a\), \(a \lt R \lt b\), and \(R \gt b\). Note: you may use ""R", "a", "b", "pi" (\(\pi\)) and "eps" (\(\varepsilon\)). $PAR -a) For \(R \lt a\), \(\textbf{E}\)=\{ans_rule(30)\} \(\hat{\bf R}\) \( (V/m)\) \{ AnswerFormatHelp("formula") \}$BR +a) For \(R \lt a\), \(\textbf{E}\)=\{ans_rule(30)\} \(\hat{\bf R}\) \( (V/m)\) \{ helpLink("formula") \}$BR -b) For \(a \lt R \lt b\), \(\textbf{E}\)=\{ans_rule(30)\} \(\hat{\bf R}\) \( (V/m)\) \{ AnswerFormatHelp("formula") \} $BR +b) For \(a \lt R \lt b\), \(\textbf{E}\)=\{ans_rule(30)\} \(\hat{\bf R}\) \( (V/m)\) \{ helpLink("formula") \} $BR -c) For \(R \gt b\), \(\textbf{E}\)=\{ans_rule(30)\} \(\hat{\bf R}\) \( (V/m)\) \{ AnswerFormatHelp("formula") \}$BR +c) For \(R \gt b\), \(\textbf{E}\)=\{ans_rule(30)\} \(\hat{\bf R}\) \( (V/m)\) \{ helpLink("formula") \}$BR END_TEXT @@ -84,12 +84,12 @@ ANS( $fc->cmp() ); # Solution Context()->texStrings; BEGIN_SOLUTION -$PAR +$PAR Using symmetry considerations, we know \(\hat{\bf R} =D_R\). From Table 3.1, \(d\textbf{s}=\hat{\bf R} R^2 sin \theta d \theta d \phi \) for an element of a spherical surface. Using Gauss's law integral form Eq.4.29, \(Q=\oint D \cdot d\textbf{s}=Q_{tot}\), where \(Q_{tot}\) is the total charge enclosed in S. $BR For a spherical surface of radius \(R\), \(\int_{\phi=0}^{2 \pi} \int_{\theta=0}^{\pi} \hat{\bf R} D_R \cdot \hat{\bf R} R^2 sin \theta d \theta d \phi = Q_{tot}\). $BR \(D_R R^2 (2 \pi) [-cos \theta]_0^{\pi}=Q_{tot}\). $BR \(D_R=\frac{Q_{tot}}{4 \pi R^2} \). $BR -From Eq.4.15, we know a linear, isotropic material has the consitutive relationship, \(D=\varepsilon E\). +From Eq.4.15, we know a linear, isotropic material has the consitutive relationship, \(D=\varepsilon E\). $PARThus we find \(\textbf{E}\) from \(D\): $BR a) In the region \(R \lt a\), \(Q_{tot}=0\),$BR\(\textbf{E}=\hat{\bf R} E_R =\frac{\hat{\bf R} Q_{tot}}{4 \pi R^2 \varepsilon}=0\) $PAR diff --git a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.31.pg b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.31.pg index 205685f975..a498fb4eea 100755 --- a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.31.pg +++ b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.31.pg @@ -24,7 +24,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "parserPopUp.pl", "answerHints.pl", @@ -57,7 +57,7 @@ Context()->constants->set( Context()->variables->are(rhos=>'Real',esp0=>'Real',a=>'Real',zs=>'Real'); -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; $V = Formula("rhos/(2*esp0)*((a^2+zs^2)^(0.5) - zs)"); $Coefz = Formula("rhos/(2*esp0)*(1 - zs/(a^2+zs^2)^(0.5) )"); @@ -75,11 +75,11 @@ $PAR \{image("ECE303_Ulaby_Ed7_4_31.png",height=>300, width=>320)\} $BR $PAR (a) Obtain an expression for the electric potential \(V\) at a point \( P = (0,0, z)\) on the z-axis. $BR -\(V \) = \{ans_rule(30)\} \{ AnswerFormatHelp("formula") \}$BR +\(V \) = \{ans_rule(30)\} \{ helpLink("formula") \}$BR $BBOLD Notes: You may use "rhos"\((\rho_s)\), "eps0"\((\varepsilon_0)\), "a"(\(a)\), "zs"(\(z)\) in your answers. $BR $EBOLD $PAR (b) Use your result to find \(\bf{E} \) and then evaluate it for point P in the diagram above. $BR -\(\bf{E} \) = \{ans_rule(30)\} \{ AnswerFormatHelp("formula") \}$BR +\(\bf{E} \) = \{ans_rule(30)\} \{ helpLink("formula") \}$BR NOTE: Your answer should be in the form of "ax+by+cz", where "x", "y" and "z" represent \( \bf{\hat x}, \bf{\hat y}\) and \(\bf{\hat z}\) respectively and "a", "b" and "c" are vector coefficients determined by you. You should also use "rhos"\((\rho_s)\), "eps0"\((\varepsilon_0)\), "a"(\(a)\), "zs"(\(z)\) in your answers when required. $PAR Does this expression of \(\bf{E} \) comply with the Eq.(4.24) in the textbook? $BR diff --git a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.31b.pg b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.31b.pg index dddd0978db..b6cee63a72 100755 --- a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.31b.pg +++ b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.31b.pg @@ -24,7 +24,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "parserPopUp.pl", "answerHints.pl", @@ -50,7 +50,7 @@ $zs = 3; Context("Vector"); Context()->flags->set( - tolerance => 0.01, + tolerance => 0.01, tolType => "absolute", # formula special case, results < 1 #tolType => "relative", ijk=>1, @@ -71,7 +71,7 @@ Context()->constants->set( Context()->variables->are(rhos=>'Real',esp0=>'Real'); # -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; $V = Formula("rhos/(2*esp0)*(($a^2+$zs^2)^(0.5) - $zs)")->with(limits=>[[0.99,1],[0.99,1]]); @@ -96,13 +96,13 @@ $PAR Note: Your answers are validated to \(\pm \)0.01 absolute for the numbers. $BR -(a) Obtain an expression for the electric potential \(V\) at a point \( P = (0,0, $zs)\) on the z-axis +(a) Obtain an expression for the electric potential \(V\) at a point \( P = (0,0, $zs)\) on the z-axis and for a disk radius of \(a = $a\). $BR -\(V \) = \{ans_rule(30)\} \{ AnswerFormatHelp("formula") \}$BR +\(V \) = \{ans_rule(30)\} \{ helpLink("formula") \}$BR $BBOLD Notes: You may use "rhos"\((\rho_s)\), "eps0"\((\varepsilon_0)\) in your answers. All the values are in SI units. $BR $EBOLD $PAR (b) Use your result \(V \) to find \(\bf{E} \) and then evaluate it for point \( P = (0,0, $zs)\) in the diagram above. $BR -\(\bf{E} \) = \{ans_rule(30)\} \{ AnswerFormatHelp("formula") \}$BR +\(\bf{E} \) = \{ans_rule(30)\} \{ helpLink("formula") \}$BR Note: Your answer should be in the form of "ax+by+cz", where "x", "y" and "z" represent \( \bf{\hat x}, \bf{\hat y}\) and \(\bf{\hat z}\) respectively and "a", "b" and "c" are vector coefficients determined by you. You should also use "rhos"\((\rho_s)\), "eps0"\((\varepsilon_0)\) in your answers when required. $PAR Does this expression of \(\bf{E} \) comply with the Eq.(4.24) in the textbook? $BR diff --git a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.34.pg b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.34.pg index f4e55cb2f3..6fdedc55ad 100755 --- a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.34.pg +++ b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.34.pg @@ -24,7 +24,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "parserPopUp.pl", "answerHints.pl", @@ -41,7 +41,7 @@ tolType => "relative", ); Context()->variables->are(rhol=>'Real',eps=>'Real',l=>'Real',b=>'Real'); -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; $Vb = Formula("rhol/(4*pi*eps)*ln( (l+(l^2+4*b^2)^(0.5)) / (-l+(l^2+4*b^2)^(0.5)) )"); @@ -59,7 +59,7 @@ $PAR \{image("ECE303_Ulaby_Ed7_4_34.png",height=>300, width=>400)\} $BR $PAR -\(V(b) \) = \{ans_rule(30)\} \{ AnswerFormatHelp("formula") \}$BR +\(V(b) \) = \{ans_rule(30)\} \{ helpLink("formula") \}$BR $BBOLD Notes: You may use "rhol"\((\rho_l)\), "eps"\((\varepsilon)\), "l" (\(l)\), "b" (\(b)\) in your answers. $BR $EBOLD diff --git a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.34b.pg b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.34b.pg index 848465727a..433d9864ea 100755 --- a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.34b.pg +++ b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.34b.pg @@ -24,7 +24,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "parserPopUp.pl", "answerHints.pl", @@ -52,7 +52,7 @@ tolType => "absolute", # formula special case, results < 1 ); Context()->variables->are(rhol=>'Real',eps=>'Real'); -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; $Vb = Formula("rhol/(4*pi*eps)*ln( ($l+($l^2+4*$b^2)^(0.5)) / (-$l+($l^2+4*$b^2)^(0.5)) )")->with(limits=>[[0.99,1],[0.99,1]]); @@ -75,7 +75,7 @@ $PAR $PAR Note: Your answers are validated to \(\pm \)0.01 absolute for the numbers. $BR -\(V(b=$b, l=$l) \) = \{ans_rule(30)\} \{ AnswerFormatHelp("formula") \}$BR +\(V(b=$b, l=$l) \) = \{ans_rule(30)\} \{ helpLink("formula") \}$BR $BBOLD Note: You may use "rhol"\((\rho_l)\), "eps"\((\varepsilon)\) in your answers. $BR $EBOLD diff --git a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.36.pg b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.36.pg index 790dd656d3..4cbed042f8 100755 --- a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.36.pg +++ b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.36.pg @@ -34,7 +34,7 @@ loadMacros("PG.pl", # "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + # "answerHints.pl", ); @@ -55,7 +55,7 @@ Context()->flags->set( ); Context()->variables->are(x=>'Real'); -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; #Initialize element values, to be changed for each question $SL01v=random(1,5,1); @@ -110,7 +110,7 @@ $graph0->lb(new Label(0,0,"(0,0)",'black','left','top')); $graph0->lb(new Label(0,$ULM,"$ULM",'black','left','top')); $graph0->lb(new Label(0,$LLM,"$LLM",'black','left','bottom')); $graph0->lb(new Label(0.3 ,$ULM,"V (V)",'black','left','top')); -$fig0 = image(insertGraph($graph0),width => 600,height => 400,tex_size => 1000); #tex_size latex export pdf size +$fig0 = image(insertGraph($graph0),width => 600,height => 400,tex_size => 1000); #tex_size latex export pdf size #Context()->texStrings; BEGIN_TEXT @@ -119,25 +119,25 @@ $PAR Part a) The distribution of the electric potential \(V\) is shown below. Determine the corresponding distribution of \(E\) as a function of \(x\). Note: The grid lines (dashed lines) are exactly 1 unit apart in both \(x\) and \(y\) directions. $BR $fig0 $BR Determine the expression for \( E(x) \). $BR -For \( 0normalStrings; @@ -169,7 +169,7 @@ $PAR This is a differentiator circuit. $BR a) $BR For \( 0normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.36a.pg b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.36a.pg index 37da76dcd1..cf84c05385 100755 --- a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.36a.pg +++ b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.36a.pg @@ -35,20 +35,20 @@ loadMacros("PG.pl", # "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", "AppletObjects.pl", ); TEXT(beginproblem()); $showPartialCorrectAnswers = 1; -Context("Numeric"); +Context("Numeric"); $ans = Compute("1"); $success = 1; ################################### - # Create link to applet + # Create link to applet ################################### $appletName = "ECE303_Ulaby_Ed7_4.36a"; $applet = FlashApplet( @@ -67,7 +67,7 @@ $success = 1; width => '750', bgcolor => '#ffffff', debugMode => 0, - submitActionScript => + submitActionScript => qq{getQE("answerBox").value=getApplet("$appletName").getAnswer() }, ); BEGIN_TEXT @@ -81,7 +81,7 @@ END_TEXT ################################### # Configure applet ################################### - + #Will pass empty xml - applet will generate new problem as a result. $applet->configuration(qq{ }); $applet->initialState(qq{ }); @@ -110,4 +110,4 @@ NAMED_ANS('answerBox'=>$ans->cmp()); COMMENT('This problem requires that Flash be enabled on your device. Click try it to see what students will see.'); -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.36b.pg b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.36b.pg index 0546dce10f..6efcd2e075 100755 --- a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.36b.pg +++ b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.36b.pg @@ -35,20 +35,20 @@ loadMacros("PG.pl", # "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", "AppletObjects.pl", ); TEXT(beginproblem()); $showPartialCorrectAnswers = 1; -Context("Numeric"); +Context("Numeric"); $ans = Compute("1"); $success = 1; ################################### - # Create link to applet + # Create link to applet ################################### $appletName = "ECE303_Ulaby_Ed7_4.36b"; $applet = FlashApplet( @@ -67,7 +67,7 @@ $success = 1; width => '750', bgcolor => '#ffffff', debugMode => 0, - submitActionScript => + submitActionScript => qq{getQE("answerBox").value=getApplet("$appletName").getAnswer() }, ); BEGIN_TEXT @@ -79,7 +79,7 @@ END_TEXT ################################### # Configure applet ################################### - + #Will pass empty xml - applet will generate new problem as a result. $applet->configuration(qq{ }); $applet->initialState(qq{ }); @@ -108,4 +108,4 @@ NAMED_ANS('answerBox'=>$ans->cmp()); COMMENT('This problem requires that Flash be enabled on your device. Click try it to see what students will see.'); -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.36c.pg b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.36c.pg index 28b7544cc0..f8423ef7c3 100755 --- a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.36c.pg +++ b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.36c.pg @@ -35,20 +35,20 @@ loadMacros("PG.pl", # "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", "AppletObjects.pl", ); TEXT(beginproblem()); $showPartialCorrectAnswers = 1; -Context("Numeric"); +Context("Numeric"); $ans = Compute("1"); $success = 1; ################################### - # Create link to applet + # Create link to applet ################################### $appletName = "ECE303_Ulaby_Ed7_4.36c"; $applet = FlashApplet( @@ -67,7 +67,7 @@ $success = 1; width => '750', bgcolor => '#ffffff', debugMode => 0, - submitActionScript => + submitActionScript => qq{getQE("answerBox").value=getApplet("$appletName").getAnswer() }, ); BEGIN_TEXT @@ -81,7 +81,7 @@ END_TEXT ################################### # Configure applet ################################### - + #Will pass empty xml - applet will generate new problem as a result. $applet->configuration(qq{ }); $applet->initialState(qq{ }); @@ -110,4 +110,4 @@ NAMED_ANS('answerBox'=>$ans->cmp()); COMMENT('This problem requires that Flash be enabled on your device. Click try it to see what students will see.'); -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.38.pg b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.38.pg index 54d86b47b5..cac7bfb111 100755 --- a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.38.pg +++ b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.38.pg @@ -25,7 +25,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -54,7 +54,7 @@ $ZB = -4; # =cut # unit change -$VAB = ($E/$ZA + $E/$ZB) *pi / pi; # there was an error +$VAB = ($E/$ZA + $E/$ZB) *pi / pi; # there was an error Context()->texStrings; BEGIN_TEXT @@ -69,7 +69,7 @@ $PAR \{image("ECE303_Ulaby_Ed7_4_38.png",height=>300, width=>240)\} $BR $PAR -\(V_{AB} = \) \{ans_rule(20)\} \( (V) \) \{ AnswerFormatHelp("numbers") \}$BR +\(V_{AB} = \) \{ans_rule(20)\} \( (V) \) \{ helpLink("numbers") \}$BR END_TEXT @@ -81,7 +81,7 @@ ANS( $VAB->cmp() ); ############################## # Solution Context()->texStrings; -BEGIN_SOLUTION +BEGIN_SOLUTION $PAR \[{V_{AB}} = {V_A} - {V_B} = - \int_B^A \textbf{E} \cdot dl.\] diff --git a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.50.pg b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.50.pg index f976b96f6b..2fdb330816 100755 --- a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.50.pg +++ b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.50.pg @@ -23,7 +23,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -35,11 +35,11 @@ loadMacros( Context()->flags->set( tolerance => 0.01, - tolType => "relative", # + tolType => "relative", # ); Context()->variables->are(eps0=>'Real'); -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; $V = random(105, 195, 5); # voltage @@ -65,11 +65,11 @@ BEGIN_TEXT $PAR -If \(\textbf{E}=\hat{\textbf R} $V (V/m)\) at the surface of a conducting sphere centered at the origin with \(r = $r (cm) \), +If \(\textbf{E}=\hat{\textbf R} $V (V/m)\) at the surface of a conducting sphere centered at the origin with \(r = $r (cm) \), what is the total charge \(Q \) on the sphere\('\) s surface? $BR $PAR -\(Q = \) \{ans_rule(20)\} \(\cdot \varepsilon_0 (C) \) \{ AnswerFormatHelp("numbers") \}$BR +\(Q = \) \{ans_rule(20)\} \(\cdot \varepsilon_0 (C) \) \{ helpLink("numbers") \}$BR $BBOLD Notes: \(\varepsilon_0\) represents the electrical permittivity of free space. $BR $EBOLD @@ -82,7 +82,7 @@ ANS( $Q->cmp() ); ############################## # Solution Context()->texStrings; -BEGIN_SOLUTION +BEGIN_SOLUTION $PAR From the Table 4-3 in the textbook, \(\hat{\bf n} \cdot (D_1 - D_2) = \rho_s\). $BR diff --git a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.51.pg b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.51.pg index 493ecdbfe0..4e0a2d59a4 100755 --- a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.51.pg +++ b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.51.pg @@ -24,7 +24,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -36,7 +36,7 @@ loadMacros( Context()->flags->set( tolerance => 0.01, - tolType => "relative", # + tolType => "relative", # ); $th_0_deg = random(25, 45, 5); # theta 0 @@ -81,7 +81,7 @@ Figure P4.51 shows three planar dielectric slabs of equal thickness but with different dielectric constants. If \(E_0\) in air makes an angle of \(\theta_0 = $th_0_deg^{o} \) with respect to the \(Z \) axis, find the angle of \(E\) in each of the other layers. $BR -Labeling the upper air layer as layer 0, the parameters for other layers are \(\varepsilon_1 = $e_1 \varepsilon_0 \), +Labeling the upper air layer as layer 0, the parameters for other layers are \(\varepsilon_1 = $e_1 \varepsilon_0 \), \(\varepsilon_2 = $e_2 \varepsilon_0 \), \(\varepsilon_3 = $e_3 \varepsilon_0 \). $BR In the lower air layer, \(\varepsilon_4 = \varepsilon_0 \).$BR @@ -90,10 +90,10 @@ $PAR $PAR -\(\theta_1 = \) \{ans_rule(20)\} \( ^{o} \) \{ AnswerFormatHelp("numbers") \}$BR -\(\theta_2 = \) \{ans_rule(20)\} \( ^{o} \) \{ AnswerFormatHelp("numbers") \}$BR -\(\theta_3 = \) \{ans_rule(20)\} \( ^{o} \) \{ AnswerFormatHelp("numbers") \}$BR -\(\theta_4 = \) \{ans_rule(20)\} \( ^{o} \) \{ AnswerFormatHelp("numbers") \}$BR +\(\theta_1 = \) \{ans_rule(20)\} \( ^{o} \) \{ helpLink("numbers") \}$BR +\(\theta_2 = \) \{ans_rule(20)\} \( ^{o} \) \{ helpLink("numbers") \}$BR +\(\theta_3 = \) \{ans_rule(20)\} \( ^{o} \) \{ helpLink("numbers") \}$BR +\(\theta_4 = \) \{ans_rule(20)\} \( ^{o} \) \{ helpLink("numbers") \}$BR @@ -110,7 +110,7 @@ ANS( $th_4_deg->cmp() ); ############################## # Solution Context()->texStrings; -BEGIN_SOLUTION +BEGIN_SOLUTION $PAR Labeling the upper air layer as layer 0 and using Eq.(4.99) in the textbook, $BR diff --git a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.56.pg b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.56.pg index 9036274d85..6359327806 100755 --- a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.56.pg +++ b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.56.pg @@ -24,7 +24,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "parserPopUp.pl", "answerHints.pl", @@ -41,7 +41,7 @@ tolType => "relative", ); Context()->variables->are(d=>'Real',V=>'Real',eps1=>'Real',eps2=>'Real', A1=>'Real', A2=>'Real'); -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; $E1 = Formula("V/d"); $E2 = Formula("V/d"); @@ -58,7 +58,7 @@ Context()->texStrings; BEGIN_TEXT $PAR -Figure P4.56(a) depicts a capacitor consisting of two parallel, conducting plates separated by a distance \(d \). +Figure P4.56(a) depicts a capacitor consisting of two parallel, conducting plates separated by a distance \(d \). The space between the plates contains two adjacent dielectrics, one with permittivity \(\varepsilon_1\) and surface area \(A_1 \) and another with \(\varepsilon_2\) and \(A_2 \). $BR @@ -73,19 +73,19 @@ $PAR To this end, proceed as follows: $BR $BBOLD Notes: You may use "V"\((V)\), "d"\((d)\), "eps1" (\(\varepsilon_1)\), , "eps2" (\(\varepsilon_2)\), "A1"\((A_1)\), "A2"\((A_2)\) in your answers. $BR $EBOLD (a) Find the electric fields \(E_1 \) and \(E_2 \) in the two dielectric layers. $BR -\(E_1 \) = \{ans_rule(20)\} \{ AnswerFormatHelp("formula") \}$BR -\(E_2 \) = \{ans_rule(20)\} \{ AnswerFormatHelp("formula") \}$BR +\(E_1 \) = \{ans_rule(20)\} \{ helpLink("formula") \}$BR +\(E_2 \) = \{ans_rule(20)\} \{ helpLink("formula") \}$BR (b) Calculate the energy stored in each section and use the result to calculate \(C_1 \) and \(C_2 \). $BR -\(W_{e_1} \) = \{ans_rule(20)\} \{ AnswerFormatHelp("formula") \}$BR -\(W_{e_2} \) = \{ans_rule(20)\} \{ AnswerFormatHelp("formula") \}$BR +\(W_{e_1} \) = \{ans_rule(20)\} \{ helpLink("formula") \}$BR +\(W_{e_2} \) = \{ans_rule(20)\} \{ helpLink("formula") \}$BR -\(C_1 \) = \{ans_rule(20)\} \{ AnswerFormatHelp("formula") \}$BR -\(C_2 \) = \{ans_rule(20)\} \{ AnswerFormatHelp("formula") \}$BR +\(C_1 \) = \{ans_rule(20)\} \{ helpLink("formula") \}$BR +\(C_2 \) = \{ans_rule(20)\} \{ helpLink("formula") \}$BR (c) Use the total energy stored in the capacitor to obtain an expression for \(C \). $BR -\(C \) = \{ans_rule(20)\} \{ AnswerFormatHelp("formula") \}$BR +\(C \) = \{ans_rule(20)\} \{ helpLink("formula") \}$BR Is \(C \) \{ $Ct ->menu() \} \( (C_1 + C_2) \)? $BR diff --git a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.56b.pg b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.56b.pg index 55b8ccbd41..4451a10c66 100755 --- a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.56b.pg +++ b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.56b.pg @@ -24,7 +24,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "parserPopUp.pl", "answerHints.pl", @@ -56,7 +56,7 @@ tolType => "relative", # ); Context()->variables->are(V=>'Real',eps1=>'Real',eps2=>'Real'); -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; $E1 = Formula("V/$d"); $E2 = Formula("V/$d"); @@ -76,7 +76,7 @@ Context()->texStrings; BEGIN_TEXT $PAR -Figure P4.56(a) depicts a capacitor consisting of two parallel, conducting plates separated by a distance \(d \). +Figure P4.56(a) depicts a capacitor consisting of two parallel, conducting plates separated by a distance \(d \). The space between the plates contains two adjacent dielectrics, one with permittivity \(\varepsilon_1\) and surface area \(A_1 \) and another with \(\varepsilon_2\) and \(A_2 \). $BR @@ -91,19 +91,19 @@ $PAR Given \(d = $d (m), A_1 = $A1 (m^2), A_2 = $A2 (m^2)\), proceed as follows: $BR $BBOLD Note: You may use "V"\((V)\), "eps1" (\(\varepsilon_1)\), , "eps2" (\(\varepsilon_2)\) in your answers. $BR $EBOLD (a) Find the electric fields \(E_1 \) and \(E_2 \) in the two dielectsric layers. $BR -\(E_1 \) = \{ans_rule(20)\} \{ AnswerFormatHelp("formula") \}$BR -\(E_2 \) = \{ans_rule(20)\} \{ AnswerFormatHelp("formula") \}$BR +\(E_1 \) = \{ans_rule(20)\} \{ helpLink("formula") \}$BR +\(E_2 \) = \{ans_rule(20)\} \{ helpLink("formula") \}$BR (b) Calculate the energy stored in each section and use the result to calculate \(C_1 \) and \(C_2 \). $BR -\(W_{e_1} \) = \{ans_rule(20)\} \{ AnswerFormatHelp("formula") \}$BR -\(W_{e_2} \) = \{ans_rule(20)\} \{ AnswerFormatHelp("formula") \}$BR +\(W_{e_1} \) = \{ans_rule(20)\} \{ helpLink("formula") \}$BR +\(W_{e_2} \) = \{ans_rule(20)\} \{ helpLink("formula") \}$BR -\(C_1 \) = \{ans_rule(20)\} \{ AnswerFormatHelp("formula") \}$BR -\(C_2 \) = \{ans_rule(20)\} \{ AnswerFormatHelp("formula") \}$BR +\(C_1 \) = \{ans_rule(20)\} \{ helpLink("formula") \}$BR +\(C_2 \) = \{ans_rule(20)\} \{ helpLink("formula") \}$BR (c) Use the total energy stored in the capacitor to obtain an expression for \(C \). $BR -\(C \) = \{ans_rule(20)\} \{ AnswerFormatHelp("formula") \}$BR +\(C \) = \{ans_rule(20)\} \{ helpLink("formula") \}$BR Is \(C \) \{ $Ct ->menu() \} \( (C_1 + C_2) \)? $BR diff --git a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.6.pg b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.6.pg index 5690bbdfc2..29a0c014e3 100755 --- a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.6.pg +++ b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_4.6.pg @@ -24,7 +24,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -58,7 +58,7 @@ BEGIN_TEXT \{image("ECE303_Ulaby_Ed7_4_6.png",height=>300, width=>320)\} $BR If \(\textbf{J} =\hat{\bf y} 4 x z \, (A/m^2)\), find the current \( I\) flowing through a square with corners at \( \langle 0,0,0 \rangle\),\( \langle $Xmax,0,0 \rangle\), \( \langle $Xmax,0,$Ymax \rangle\), and \( \langle 0,0, $Ymax \rangle\). $PAR -\( I \)=\{ans_rule(20)\} \(A\) \{ AnswerFormatHelp("numbers") \} +\( I \)=\{ans_rule(20)\} \(A\) \{ helpLink("numbers") \} @@ -78,7 +78,7 @@ ANS( $I->cmp() ); # Solution Context()->texStrings; BEGIN_SOLUTION -$PAR +$PAR \(A=\int_{x=0}^{$Xmax} \int_{z=0 }^{$Ymax} \textbf{J}|_{y=0} \cdot (\hat{\bf{ y}}) d z dx = x^2 z^2 |_{z=0}^{$Ymax}|_{x=0}^{$Xmax}=$I A \) $PAR diff --git a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_5.12.pg b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_5.12.pg index 4754b589ea..8f8bcdd96c 100755 --- a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_5.12.pg +++ b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_5.12.pg @@ -24,7 +24,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -72,7 +72,7 @@ Context()->constants->set( # define variables Context()->variables->are(mu0=>'Real'); # -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; $B = Formula("mu0*$I/(2*pi)*(1/$d + 1/($lth-$d))"); $temp = 1/$d + 1/($lth-$d); @@ -91,7 +91,7 @@ $PAR Determine the magnetic flux density at point P in Fig. P5.12, with \(d = $d \rm{m} \) and \(l = $lth \rm{m} \). $BR -\(\bf{B}\)=\{ans_rule(20)\} \( \hat {\boldsymbol \phi} \) \( (\rm{T}) \) \{ AnswerFormatHelp("formula") \} $BR +\(\bf{B}\)=\{ans_rule(20)\} \( \hat {\boldsymbol \phi} \) \( (\rm{T}) \) \{ helpLink("formula") \} $BR Note: You may use "pi" ( \(\pi\) ) and "mu0" ( \(\mu_0\) ) in your answer. $BR @@ -105,7 +105,7 @@ ANS( $B->cmp() ); # Solution Context()->texStrings; BEGIN_SOLUTION -$PAR +$PAR Solution: \[{\bf{B}} = \hat {\boldsymbol \phi} \frac{{{\mu _0}{I_1}}}{{2\pi d}} + \hat {\boldsymbol \phi} \frac{{{\mu _0}{I_2}}}{{2\pi (l - d)}} = \hat {\boldsymbol \phi} \frac{{{\mu _0}I}}{{2\pi }}\left( {\frac{1}{$d} - \frac{1}{{$lth - $d}}} \right) = \hat {\boldsymbol \phi} \frac{{{\mu _0}I}}{{2\pi }} ($temp)\] diff --git a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_5.16.pg b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_5.16.pg index fba0a562f7..067560d15b 100755 --- a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_5.16.pg +++ b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_5.16.pg @@ -24,7 +24,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -91,7 +91,7 @@ Context()->texStrings; BEGIN_TEXT $PAR -The long, straight conductor shown in Fig. P5.16 lies in the plane of the rectangular loop +The long, straight conductor shown in Fig. P5.16 lies in the plane of the rectangular loop at a distance \(d = $d \rm{m} \). The loop has dimensions \(a = $a \rm{m} \) and \(b = $b \rm{m} \), and the currents are \(I_1 = $I1 \rm{A} \) and \(I_2 = $I2 \rm{A} \). $BR @@ -103,10 +103,10 @@ Determine the net magnetic force acting on the loop.$BR Note: Your answers are validated to \(\pm \)0.01 absolute. $BR -\(\vec{F}\)=\{ans_rule(20)\} \( \rm(mN)\) \{ AnswerFormatHelp("vectors") \} $BR +\(\vec{F}\)=\{ans_rule(20)\} \( \rm(mN)\) \{ helpLink("vectors") \} $BR -Note: Your answer should be in the form of "px+qy+rz", where "x", "y" and "z" represent \( \bf{\hat x}, \bf{\hat y}\) and \(\bf{\hat z}\) respectively +Note: Your answer should be in the form of "px+qy+rz", where "x", "y" and "z" represent \( \bf{\hat x}, \bf{\hat y}\) and \(\bf{\hat z}\) respectively and "p", "q" and "r" are vector coefficients determined by you. $PAR END_TEXT @@ -118,7 +118,7 @@ ANS( $F->cmp() ); # Solution Context()->texStrings; BEGIN_SOLUTION -$PAR +$PAR Solution: The net magnetic force on the loop is due to the magnetic field surrounding the wire carrying current \(I_1 \). The magnetic forces on the loop as a whole diff --git a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_5.22.pg b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_5.22.pg index c2ea3f649f..44e5bff602 100755 --- a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_5.22.pg +++ b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_5.22.pg @@ -23,7 +23,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -76,10 +76,10 @@ Obtain the values for the magnetic field \(\bf{\vec H} \) for $BR $PAR (a) \(r = $r1 \rm{m} \) $BR -\(\bf{\vec H}_1 \)=\{ans_rule(20)\} \(\hat {\boldsymbol \phi} \) \( (\rm{A/mm}) \) \{ AnswerFormatHelp("numbers") \} $BR +\(\bf{\vec H}_1 \)=\{ans_rule(20)\} \(\hat {\boldsymbol \phi} \) \( (\rm{A/mm}) \) \{ helpLink("numbers") \} $BR $PAR (b) \(r = $r2 \rm{m} \) $BR -\(\bf{\vec H}_2 \)=\{ans_rule(20)\} \( \hat {\boldsymbol \phi} \) \( (\rm{A/mm}) \) \{ AnswerFormatHelp("numbers") \} $BR +\(\bf{\vec H}_2 \)=\{ans_rule(20)\} \( \hat {\boldsymbol \phi} \) \( (\rm{A/mm}) \) \{ helpLink("numbers") \} $BR END_TEXT @@ -92,7 +92,7 @@ ANS( $H2->cmp() ); # Solution Context()->texStrings; BEGIN_SOLUTION -$PAR +$PAR Solution: This problem is very similar to Example 5-5. $BR (a) For \(0 \le {r_1} \le a\), the total current flowing within the contour \(C_1\) is diff --git a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_5.33.pg b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_5.33.pg index 7f8af63f76..7e1d7c812c 100755 --- a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_5.33.pg +++ b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_5.33.pg @@ -24,7 +24,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -88,9 +88,9 @@ y = 0, the interface between two magnetic media, and \(\bf{H_1} = \hat{\bf z}\) $PAR \{image("ECE303_Ulaby_Ed7_5_33.png",height=>260, width=>300)\} $PAR -\(\bf{H_2} \)=\{ans_rule(20)\} ( \(\rm{A/m} \) ) \{ AnswerFormatHelp("vectors") \} $BR +\(\bf{H_2} \)=\{ans_rule(20)\} ( \(\rm{A/m} \) ) \{ helpLink("vectors") \} $BR -Note:Your answer should be in the form of "ax+by+cz", where "x", "y" and "z" represent \( \bf{\hat x}, \bf{\hat y}\) and \(\bf{\hat z}\) respectively +Note:Your answer should be in the form of "ax+by+cz", where "x", "y" and "z" represent \( \bf{\hat x}, \bf{\hat y}\) and \(\bf{\hat z}\) respectively and "a", "b" and "c" are vector coefficients determined by you. $PAR END_TEXT @@ -102,7 +102,7 @@ ANS( $H2->cmp() ); # Solution Context()->texStrings; BEGIN_SOLUTION -$PAR +$PAR Solution: \[{{\bf{J}}_s} = {\bf{\hat x}}a\;({\rm{A/m}}),\;\;a = $Js,\] diff --git a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_5.34.pg b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_5.34.pg index 3544b66b4f..b2422e11b8 100755 --- a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_5.34.pg +++ b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_5.34.pg @@ -24,7 +24,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -73,7 +73,7 @@ Context()->constants->set( # define variables Context()->variables->are(mu1=>'Real', mu2=>'Real'); # -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; $B2n_x = -($b-$a)/2; $B2n_y = ($b-$a)/2; @@ -102,7 +102,7 @@ BEGIN_TEXT $PAR -In Fig. P5.34, the plane defined by \(x\)-\(y\)=1 separates medium 1 of permeability \(\mu_1\) from medium 2 of permeability \(\mu_2\). +In Fig. P5.34, the plane defined by \(x\)-\(y\)=1 separates medium 1 of permeability \(\mu_1\) from medium 2 of permeability \(\mu_2\). If no surface current exists on the boundary and \[\textbf{B}_1 = \hat{\bf{x}} \rm{$a} + \hat{\bf{y}} \rm{$b} \;\;\; ({\rm{T}}) \] @@ -113,10 +113,10 @@ $PAR \{image("ECE303_Ulaby_Ed7_5_34.png",height=>280, width=>340)\} $PAR -\(\textbf{B}_2 (\mu_1, \mu_2)\) =\{ans_rule(20)\} \( (\rm{T}) \) \{ AnswerFormatHelp("vectors") \} $BR -\(\textbf{B}_2 (\mu_1 = $k \mu_2)\) =\{ans_rule(20)\} \( (\rm{T}) \) \{ AnswerFormatHelp("vectors") \} $BR +\(\textbf{B}_2 (\mu_1, \mu_2)\) =\{ans_rule(20)\} \( (\rm{T}) \) \{ helpLink("vectors") \} $BR +\(\textbf{B}_2 (\mu_1 = $k \mu_2)\) =\{ans_rule(20)\} \( (\rm{T}) \) \{ helpLink("vectors") \} $BR -Note: Your answer should be in the form of "ax+by+cz", where "x", "y" and "z" represent \( \bf{\hat x}, \bf{\hat y}\) and \(\bf{\hat z}\) respectively +Note: Your answer should be in the form of "ax+by+cz", where "x", "y" and "z" represent \( \bf{\hat x}, \bf{\hat y}\) and \(\bf{\hat z}\) respectively and "a", "b" and "c" are vector coefficients determined by you. You may use "mu1" ( \(\mu_1\) ) and "mu2" ( \(\mu_2\) ) in your answer. $BR $BR END_TEXT @@ -129,7 +129,7 @@ ANS( $B2_test->cmp() ); # Solution Context()->texStrings; BEGIN_SOLUTION -$PAR +$PAR Solution: We need to find \({{{\bf{\hat n}}}_2}\). To do so, we start by finding any two vectors in the plane x-y = 1, and to do that, we need three non-collinear points in that plane. We choose (0,-1,0), (1,0,0), and (1,0,1). @@ -144,7 +144,7 @@ given plane, from medium 2 to medium 1, Suppose: \[{{\bf{B}}_1} = {\bf{\hat x}}a + {\bf{\hat y}}b ,\;where\;a =$a,\;\;b =$b\] -In medium 1, normal component is +In medium 1, normal component is \[{B_{1n}} = {{{\bf{\hat n}}}_2} \cdot {{\bf{B}}_1} = \left( {\frac{{{\bf{\hat y}}}}{{\sqrt 2 }} - \frac{{{\bf{\hat x}}}}{{\sqrt 2 }}} \right) \cdot \left( {{\bf{\hat x}}a + {\bf{\hat y}}b} \right) = \frac{{b - a}}{{\sqrt 2 }},\] diff --git a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_5.37.pg b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_5.37.pg index bdf2394047..1621fcd5d4 100755 --- a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_5.37.pg +++ b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_5.37.pg @@ -24,7 +24,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -75,12 +75,12 @@ Context()->constants->set( # define variables Context()->variables->are(I=>'Real', l=>'Real'); # -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; # calculation # (a) B1 and B2 -$B1_y_uT = Formula("$mu*I/(2*$x)"); -## $B1_y_uT = Formula("$mu*I/(2*pi*$x)"); +$B1_y_uT = Formula("$mu*I/(2*$x)"); +## $B1_y_uT = Formula("$mu*I/(2*pi*$x)"); $B2_y_uT = Formula("$mu*I/(2*($d-$x) )"); $B1 = Vector(0, $B1_y_uT, 0); @@ -100,9 +100,9 @@ BEGIN_TEXT $PAR -Obtain an expression for the self-inductance per unit length \( (L_{pu}) \) for the parallel wire transmission line of Fig. 5.37 +Obtain an expression for the self-inductance per unit length \( (L_{pu}) \) for the parallel wire transmission line of Fig. 5.37 in terms of \(\mu \), where \(\mu= 4 \pi \times {10^{-7}} \rm{(H/ m)} \) is the permeability of the medium in which they reside. Before getting that expression, you are -required to obtain the expression for magnetic fields \((\vec B_1\) and \(\vec B_2 )\) and magnetic flux \( (\Phi) \) first.$BR +required to obtain the expression for magnetic fields \((\vec B_1\) and \(\vec B_2 )\) and magnetic flux \( (\Phi) \) first.$BR Parameter \(a = $a \rm{m} \) is the radius of the wires and \(d = $d \rm{m} \) is the axis-to-axis distance between the wires. $BR @@ -111,23 +111,23 @@ $PAR $PAR (a) Find an expression for magnetic fields\(\vec B_1\) and \(\vec B_2\) generated by each wire at point \(P = ($x, 0, z)\). $BR -\(\vec B_1\)=\{ans_rule(20)\} \(({\rm{nT}})\) \{ AnswerFormatHelp("vectors") \} $BR -\(\vec B_2\)=\{ans_rule(20)\} \(({\rm{nT}})\) \{ AnswerFormatHelp("vectors") \} $BR +\(\vec B_1\)=\{ans_rule(20)\} \(({\rm{nT}})\) \{ helpLink("vectors") \} $BR +\(\vec B_2\)=\{ans_rule(20)\} \(({\rm{nT}})\) \{ helpLink("vectors") \} $BR -Note: Your answer should be in the form of "ax+by+cz", where "x", "y" and "z" represent \( \bf{\hat x}, \bf{\hat y}\) and \(\bf{\hat z}\) respectively -and "a", "b" and "c" are vector coefficients determined by you. -You may use "mu" ( \(\mu \) ), "I" ( \(I \) ), and "l" ( \(l\) ) in your answer for (a) and (b). +Note: Your answer should be in the form of "ax+by+cz", where "x", "y" and "z" represent \( \bf{\hat x}, \bf{\hat y}\) and \(\bf{\hat z}\) respectively +and "a", "b" and "c" are vector coefficients determined by you. +You may use "mu" ( \(\mu \) ), "I" ( \(I \) ), and "l" ( \(l\) ) in your answer for (a) and (b). Be careful about the current "I" ( \(I \) ) and length "l" ( \(l\) ) since they are similar in this font. $BR (b) Find the magnetic flux crossing the surface area between the wires over a length \(l \) of the wire structure. $BR -\(\Phi\)=\{ans_rule(20)\} \(({\rm{nH}} \cdot {\rm{A}})\) \{ AnswerFormatHelp("formula") \} $BR +\(\Phi\)=\{ans_rule(20)\} \(({\rm{nH}} \cdot {\rm{A}})\) \{ helpLink("formula") \} $BR (c) The inductance per unit length is: $BR -\(L_{pu} \) =\{ans_rule(20)\} \(({\rm{n H/m}})\) \{ AnswerFormatHelp("formula") \} $BR +\(L_{pu} \) =\{ans_rule(20)\} \(({\rm{n H/m}})\) \{ helpLink("formula") \} $BR END_TEXT Context()->normalStrings; @@ -141,7 +141,7 @@ ANS( $Lpu_u->cmp() ); # Solution Context()->texStrings; BEGIN_SOLUTION -(a) $PAR +(a) $PAR Let us place the two wires in the x-z plane and orient the current in one of them to be along the+z-direction and the current in the other one to be along the -z-direction, as shown in Fig. P5.37. From Eq. (5.30), the magnetic field at point \( P = (x=$x,0, z)\) due to wire 1 is @@ -156,7 +156,7 @@ Given that the current in wire 2 is opposite that in wire 1, the magnetic field by wire 2 at point \( P = (x=$x,0, z)\) is in the same direction as that created by wire 1, and it is given by \[{{\vec B}_2} = {\bf{\hat y}}\frac{{\mu I}}{{2\pi (d - x)}} ({\rm{T}}) \] -$BBOLD Note: Be careful on converting the units: \({\rm{nT}}\;{\rm{ = }}\;{\rm{1}}{{\rm{0}}^{ - 9}}\;{\rm{T}}\). $EBOLD $BR +$BBOLD Note: Be careful on converting the units: \({\rm{nT}}\;{\rm{ = }}\;{\rm{1}}{{\rm{0}}^{ - 9}}\;{\rm{T}}\). $EBOLD $BR (b) $PAR Based on the results from (a), the total magnetic field in the region between the wires is @@ -170,7 +170,7 @@ of the wire structure is \[\Phi = \left. {\frac{{\mu Ild}}{{2\pi }}\left( {\frac{1}{d}\ln \left( {\frac{x}{{d - x}}} \right)} \right)} \right|_{x = a}^{d - a}\] \[\Phi = \frac{{\mu Il}}{{2\pi }}\left( {\ln \left( {\frac{{d - a}}{a}} \right) - \ln \left( {\frac{a}{{d - a}}} \right)} \right)\] \[\Phi = \frac{{\mu Il}}{{2\pi }} \times 2\ln \left( {\frac{{d - a}}{a}} \right) = \frac{{\mu Il}}{\pi }\ln \left( {\frac{{d - a}}{a}} \right) ({\rm{H}} \cdot {\rm{A}}) \] -$BBOLD Note: Be careful on converting the units: \({\rm{nH}}\;{\rm{ = }}\;{\rm{1}}{{\rm{0}}^{ - 9}}\;{\rm{H}}\). $EBOLD $BR +$BBOLD Note: Be careful on converting the units: \({\rm{nH}}\;{\rm{ = }}\;{\rm{1}}{{\rm{0}}^{ - 9}}\;{\rm{H}}\). $EBOLD $BR (c) $PAR Since the number of turns in this structure is 1, Eq. (5.93) states that the flux linkage is the same as magnetic flux: \(\Lambda = \Phi \). Then Eq. (5.94) gives a total inductance over @@ -178,7 +178,7 @@ the length \(l \) as \[L = \frac{\Lambda }{I} = \frac{\Phi }{I} = \frac{{\mu l}}{\pi }\ln \left( {\frac{{d - a}}{a}} \right)\;\;({\rm{H}}).\] Therefore, the inductance per unit length is \[{L_{pu}} = \frac{L}{l} = \frac{\mu }{\pi }\ln \left( {\frac{{d - a}}{a}} \right) \approx \frac{\mu }{\pi }\ln \left( {\frac{d}{a}} \right)\;\;({\rm{H/m}}),\] -$BBOLD Note: Be careful on converting the units: \({\rm{nH}}\;{\rm{ = }}\;{\rm{1}}{{\rm{0}}^{ - 9}}\;{\rm{H}}\). $EBOLD $BR +$BBOLD Note: Be careful on converting the units: \({\rm{nH}}\;{\rm{ = }}\;{\rm{1}}{{\rm{0}}^{ - 9}}\;{\rm{H}}\). $EBOLD $BR where the last approximation recognizes that the wires are thin compared to the separation distance (i.e., that \(d \gg a\) ). This has been an implied condition from the beginning of this analysis, where the flux passing through the wires themselves have diff --git a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_5.6.pg b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_5.6.pg index 12d9b08355..c59ca87ad4 100755 --- a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_5.6.pg +++ b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_5.6.pg @@ -24,7 +24,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -134,21 +134,21 @@ Note: Your answers are validated to \(\pm \)0.01 absolute. $BR \[\textbf{B} = 2 \times {10^{ - 2}}(\hat{\bf{x}} + \hat{\bf{y}} \rm{$b}) \;\;\; ({\rm{T}}) \] and the angle \(\phi = {$phi_a_deg^o}\), determine the torque acting on the coil. $BR -\(\bf{T}\)=\{ans_rule(20)\} \( \rm(N \cdot m)\) \{ AnswerFormatHelp("vectors") \} $BR +\(\bf{T}\)=\{ans_rule(20)\} \( \rm(N \cdot m)\) \{ helpLink("vectors") \} $BR -Note: Your answer should be in the form of "ax+by+cz", where "x", "y" and "z" represent \( \bf{\hat x}, \bf{\hat y}\) and \(\bf{\hat z}\) respectively +Note: Your answer should be in the form of "ax+by+cz", where "x", "y" and "z" represent \( \bf{\hat x}, \bf{\hat y}\) and \(\bf{\hat z}\) respectively and "a", "b" and "c" are vector coefficients determined by you. $PAR (b) At what angle \(\phi \) (in degree) is the torque zero? $BR -\(\bf{\phi_0}\)=\{ans_rule(20)\} \(^{o}\) \{ AnswerFormatHelp("numbers") \} $BR -Note: There are multiple solutions for the angles here, please enter your answers in comma separated list. +\(\bf{\phi_0}\)=\{ans_rule(20)\} \(^{o}\) \{ helpLink("numbers") \} $BR +Note: There are multiple solutions for the angles here, please enter your answers in comma separated list. Give ALL angles in \([-\pi, \pi]\) that satisfy the conditions. Your answers may be listed in any order. $BR (c) At what angle \(\phi \) (in degree) is the torque maximum? Determine the maximal torque \(\bf{T_{max}} \).$BR -\(\bf{\phi}_{max}\)=\{ans_rule(20)\} \(^{o}\) \{ AnswerFormatHelp("numbers") \} $BR -\(\bf{T_{max}}\)=\{ans_rule(20)\} \( \rm(N \cdot m)\) \{ AnswerFormatHelp("vectors") \} $BR +\(\bf{\phi}_{max}\)=\{ans_rule(20)\} \(^{o}\) \{ helpLink("numbers") \} $BR +\(\bf{T_{max}}\)=\{ans_rule(20)\} \( \rm(N \cdot m)\) \{ helpLink("vectors") \} $BR -Note: There are multiple solutions for the angles here, please enter your answers in comma separated list. +Note: There are multiple solutions for the angles here, please enter your answers in comma separated list. Give ALL angles in \([-\pi, \pi]\) that satisfy the conditions. Your answers may be listed in any order. $BR END_TEXT @@ -162,7 +162,7 @@ ANS( $T_max->cmp() ); # Solution Context()->texStrings; BEGIN_SOLUTION -$PAR +$PAR Solution: (a) The magnetic field is in direction ( \({\bf{\hat x}}a + {\bf{\hat y}}b,\;a = $a,\;b = $b \) ), which makes an angle \[{\phi_{B0}} = atan(b/a) = {$phi_B0_deg^ \circ }.\] @@ -192,11 +192,11 @@ equating it to zero to find the values of f at which \(\left| {\bf{T}} \right|\) \[\frac{{\partial {\rm{T}}}}{{\partial \phi }} = \frac{\partial }{{\partial \phi }}\left( {$k0(b\cos \phi - a\sin \phi )} \right) = 0\] -or +or \[ - b\sin \phi - a\cos \phi = 0,\] -which gives \(\tan \phi = - ($a/$b)\), or +which gives \(\tan \phi = - ($a/$b)\), or \[\phi = {$phi_max_1_deg^ \circ }\;or\;{$phi_max_2_deg^ \circ }.\] diff --git a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_5.7.pg b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_5.7.pg index af25826ddf..c635913a64 100755 --- a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_5.7.pg +++ b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_5.7.pg @@ -24,7 +24,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -57,7 +57,7 @@ Context()->constants->set( Context()->{format}{number} = "%.4e"; # constant -$mu = 4*pi*10**(-7); +$mu = 4*pi*10**(-7); # randomized parameters @@ -76,7 +76,7 @@ $I = 50; # unit change $a = $a_cm*10**(-2); # cm to m -$b = $b_cm*10**(-2); +$b = $b_cm*10**(-2); @@ -103,7 +103,7 @@ BEGIN_TEXT $PAR An \(a \times b = $a_cm \rm{cm} \times $b_cm \rm{cm} \) rectangular loop of wire is situated in the x-y plane with -the center of the loop at the origin and its long sides parallel to the x-axis. +the center of the loop at the origin and its long sides parallel to the x-axis. The loop has a current of \(I = $I \rm{A} \) flowing clockwise (when viewed from above). $BR $PAR @@ -113,9 +113,9 @@ $PAR Determine the magnetic field at the center of the loop. $BR Note: Your answers are validated to \(\pm \)0.01 absolute. $BR -\(\bf{B}\)=\{ans_rule(20)\} \( (\rm{mT}) \) \{ AnswerFormatHelp("vectors") \} $BR +\(\bf{B}\)=\{ans_rule(20)\} \( (\rm{mT}) \) \{ helpLink("vectors") \} $BR -Note:Your answer should be in the form of "ax+by+cz", where "x", "y" and "z" represent \( \bf{\hat x}, \bf{\hat y}\) and \(\bf{\hat z}\) respectively +Note:Your answer should be in the form of "ax+by+cz", where "x", "y" and "z" represent \( \bf{\hat x}, \bf{\hat y}\) and \(\bf{\hat z}\) respectively and "a", "b" and "c" are vector coefficients determined by you. $PAR @@ -128,7 +128,7 @@ ANS( $B_mT->cmp() ); # Solution Context()->texStrings; BEGIN_SOLUTION -$PAR +$PAR Solution: The total magnetic field is the vector sum of the individual fields of each of the four wire segments: \(\vec B = {\vec B_1} + {\vec B_2} + {\vec B_3} + {\vec B_4}\). An expression for the magnetic field from a wire segment is given by Eq. (5.29). For all segments shown in Fig. P5.7, the combination of the direction of the current and the right-hand rule gives the direction diff --git a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_6.2.pg b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_6.2.pg index 52fa091632..f12922211f 100755 --- a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_6.2.pg +++ b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_6.2.pg @@ -24,7 +24,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -76,8 +76,8 @@ ANS( $popup4->cmp() ); # Solution Context()->texStrings; BEGIN_SOLUTION -$PAR -\(I=V_{emf}/R\). Since the single-turn loop is not moving or changing shape with time, \(V_{emf}^m=0 V\) and \(V_{emf}=V_{emf}^{tr}\). Therefore, from Eq.(6.8), +$PAR +\(I=V_{emf}/R\). Since the single-turn loop is not moving or changing shape with time, \(V_{emf}^m=0 V\) and \(V_{emf}=V_{emf}^{tr}\). Therefore, from Eq.(6.8), \(I=V_{emf}^{tr}/R=\frac{-1}{R}\int_S \frac{\partial \vec{\textbf {x}} }{\partial t} \cdot d \vec{\textbf{s}}\) $BR If we take surface normal to be \(+\hat{\textbf{z}}\), then the right hand rule gives positive flowing current to be in \(+ \hat{\boldsymbol \phi }\) direction. $BR \(I=\frac{A}{R}\frac{\partial}{\partial t}B_0 sin (\omega t) =\frac{-AB_0 \omega}{R}cos (\omega t) \ (A) \), $BR diff --git a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_6.3.pg b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_6.3.pg index 03f28646ad..553ae70059 100755 --- a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_6.3.pg +++ b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_6.3.pg @@ -23,7 +23,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -38,7 +38,7 @@ Context()->flags->set( tolerance => 0.01, tolType => "relative", ); -Context()->variables->are(t=>'Real'); +Context()->variables->are(t=>'Real'); $Turn=random(100,120,5); $side=random(0.25,0.35,0.05); @@ -60,13 +60,13 @@ BEGIN_TEXT A coil consists of \($Turn\) turns of wire wrapped around a square frame of sides \($side\) m. The coil is centered at the origin with each of its sides parallel to the \(x\)- or \(y\)-axis. Find the induced emf across the open-circuited ends of the coil as a function of "t" if the magnetic field is given by $PAR (a) \(\hat{\textbf{B}} = \hat{\textbf{z}} $Amp e^{-3t} (T) \) $BR -\(emf\)=\{ans_rule(30)\} \((V) \) \{ AnswerFormatHelp("formula") \} $BR +\(emf\)=\{ans_rule(30)\} \((V) \) \{ helpLink("formula") \} $BR (b) \(\hat{\textbf{B}} = \hat{\textbf{z}} $Amp cos(x) cos(10^3t) (T)\) $BR -\(emf\)=\{ans_rule(30)\} \((kV) \) \{ AnswerFormatHelp("formula") \} $BR +\(emf\)=\{ans_rule(30)\} \((kV) \) \{ helpLink("formula") \} $BR (c) \(\hat{\textbf{B}} = \hat{\textbf{z}} $Amp cos(x) sin(2y) cos(10^3t) (T)\) $BR -\(emf\)=\{ans_rule(30)\} \((V) \) \{ AnswerFormatHelp("formula") \} $BR +\(emf\)=\{ans_rule(30)\} \((V) \) \{ helpLink("formula") \} $BR Note: Ensure your unit is consistent. @@ -80,10 +80,10 @@ ANS( $emfc->cmp() ); # Solution Context()->texStrings; BEGIN_SOLUTION -$PAR -Since the single-turn loop is not moving or changing shape with time, \(V_{emf}^m=0 V\) and \(V_{emf}=V_{emf}^{tr}\). Therefore, from Eq.(6.6), +$PAR +Since the single-turn loop is not moving or changing shape with time, \(V_{emf}^m=0 V\) and \(V_{emf}=V_{emf}^{tr}\). Therefore, from Eq.(6.6), \(V_{emf}=-N\frac{d}{dt} \int_S \vec{\textbf {B}} \cdot d \vec{\textbf{s}} = -N\frac{d}{dt} \int_{-$side/2}^{$side/2} \int_{-$side/2}^{$side/2} \vec{\textbf {B}} \cdot (\vec{\textbf{z}} dx dy) \), $BR -where N=$Turn and the surface normal was chosen to be in the \(+\hat{\textbf{z}}\). +where N=$Turn and the surface normal was chosen to be in the \(+\hat{\textbf{z}}\). $PAR (a) For \(\vec{\textbf{B}}=\hat{\textbf{z}} $Amp e^{-3t} (T)\), $BR diff --git a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_6.6.pg b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_6.6.pg index 5da17e9779..e56f16c84f 100755 --- a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_6.6.pg +++ b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_6.6.pg @@ -24,7 +24,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -39,7 +39,7 @@ Context()->flags->set( tolerance => 0.01, tolType => "relative", ); -Context()->variables->are(t=>'Real'); +Context()->variables->are(t=>'Real'); $mu0=4*pi/10000000; @@ -70,11 +70,11 @@ carrying a current \(I(t)=$Amp cos(2 \pi \cdot $t t) (A)\), \(a=$a (cm)\), and \(b=$b (cm).\)$BR Note: Ensure your unit is consistent. $PAR -(a) The emf induced across a small gap created in the loop is \{ans_rule(30)\} \(( mV) \) \{ AnswerFormatHelp("formula") \} $BR +(a) The emf induced across a small gap created in the loop is \{ans_rule(30)\} \(( mV) \) \{ helpLink("formula") \} $BR (b) Determine the current that would flow through a \($R1-\Omega\) resistor connected across the gap, The loop has an internal resistance of \($R2-\Omega\).$BR -\(I(t)\)=\{ans_rule(30)\} \((mA) \) \{ AnswerFormatHelp("formula") \} $BR -Note: Your current function should follow the convention that when looking into the \(-\hat{\textbf{x}}\) direction as shown in the diagram above, the current is positive when it is flowing counter clockwise which can also be described as following the right hand rule along the \(\hat{\textbf{x}}\) direction . +\(I(t)\)=\{ans_rule(30)\} \((mA) \) \{ helpLink("formula") \} $BR +Note: Your current function should follow the convention that when looking into the \(-\hat{\textbf{x}}\) direction as shown in the diagram above, the current is positive when it is flowing counter clockwise which can also be described as following the right hand rule along the \(\hat{\textbf{x}}\) direction . END_TEXT @@ -86,14 +86,14 @@ ANS( $Lin->cmp() ); # Solution Context()->texStrings; BEGIN_SOLUTION -$PAR +$PAR (a) The magnetic field due to the wire is $BR \(\textbf {B}=\hat{\boldsymbol \phi}\frac{\mu_0 l}{2 \pi r}=-\hat{\bf x}\frac{\mu_0 l}{2 \pi y}\), $BR where in the plane of the loop, \(\hat{\boldsymbol \phi}=-\hat{\bf x}\) and \(r=y\). The flux passing through the loop is $BR \(\Phi= \int_S \vec{\textbf {B}} \cdot s= \int_{$a cm}^{($a+$b) cm} - \hat{\textbf {x}} \frac{\mu_0 I}{2 \pi y} \cdot [ - \hat{\textbf {x}} $b (cm)] dy\) $BR \(= \frac{4 \pi 10^{-7} \cdot $Amp cos(2 \pi \cdot $t t) \cdot $b/10}{2 \pi} \cdot ln \frac{$b+$a}{$a} \) $BR -\(=$phi \mu Wb\) Note the unit here. $PAR +\(=$phi \mu Wb\) Note the unit here. $PAR \(V_{emf}=-\frac{d \Phi}{dt}=\Phi \cdot 2 \pi \cdot $t sin(2 \pi \cdot $t t) (V) \) $BR \(=$emf (mV)\) Note the unit here. $PAR diff --git a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_6.8.pg b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_6.8.pg index d81fd56cda..1461f3fee4 100755 --- a/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_6.8.pg +++ b/Pending/NCSU/Electromagnetics/ECE303_Ulaby_Ed7_6.8.pg @@ -24,7 +24,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -39,7 +39,7 @@ Context()->flags->set( tolerance => 0.01, tolType => "relative", ); -Context()->variables->are(t=>'Real'); +Context()->variables->are(t=>'Real'); $mu0=4*pi/10000000; @@ -67,7 +67,7 @@ the z-axis carrying a current \(I = I_0 cos(\omega t)\), coupling magnetic energ coil situated in the \(x-y\) plane and centered at the origin. The toroidal core uses iron material with relative permeability \(\mu_r=$mu\), around which \($Turn\) turns of a tightly wound coil serves to induce a voltage \(V_{emf}\), as shown in the figure. Calculate \(V_{emf}\) for \(f=$Hz Hz, a=$a cm, b = $b cm, c= $c cm\), and \(I_0 = $I0 A\).$BR -\(V_{emf}\)= \{ans_rule(30)\} \(( V) \) \{ AnswerFormatHelp("formula") \} $BR +\(V_{emf}\)= \{ans_rule(30)\} \(( V) \) \{ helpLink("formula") \} $BR @@ -80,7 +80,7 @@ ANS( $emf->cmp() ); # Solution Context()->texStrings; BEGIN_SOLUTION -$PAR +$PAR Refer to the figure above, the magnetic flux through the coil \(\Phi\) is given by: $BR \(\Phi= \int_S \vec{\textbf {B}} \cdot s= \int_{a}^{b} \hat{\textbf {x}} \frac{\mu I}{2 \pi r} \cdot [ \hat{\textbf {x}} c] dr=\frac{\mu c I}{2 \pi} ln \frac{b}{a}\) $BR \(V_{emf}=-N\frac{d \Phi}{dt}=-\frac{\mu cN }{2 \pi }ln \frac{b}{a} \frac{dI}{dt} =\frac{\mu c N \omega I_0}{2 \pi}ln \frac{b}{a} sin(\omega t) (V) \) $BR diff --git a/Pending/NCSU/Power/ECE305_HW2_P01_White.pg b/Pending/NCSU/Power/ECE305_HW2_P01_White.pg index cd132a27ba..f815b77d9f 100755 --- a/Pending/NCSU/Power/ECE305_HW2_P01_White.pg +++ b/Pending/NCSU/Power/ECE305_HW2_P01_White.pg @@ -32,7 +32,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -46,7 +46,7 @@ tolType => "absolute", ); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; #Initialize element values, to be changed for each question $Fv=random(50,60,10); @@ -115,7 +115,7 @@ $grapha->lb(new Label($Pvax/2,0,"B",'blue','right','top')); $grapha->lb(new Label($Pvax,$Pvay/2,"A",'blue','right','bottom')); $grapha->lb(new Label($Tmax,0,"R",'black','right','bottom')); $grapha->lb(new Label(0 ,$ULMa,"i",'black','left','top')); -$figa = image(insertGraph($grapha),width => 400,height => 250,tex_size => 200); +$figa = image(insertGraph($grapha),width => 400,height => 250,tex_size => 200); $popupia = PopUp(["?", "Active", "Reactive", "Apparent"], "Reactive"); $popupib = PopUp(["?", "Active", "Reactive", "Apparent"], "Active"); $popupic = PopUp(["?", "Active", "Reactive", "Apparent"], "Apparent"); @@ -152,14 +152,14 @@ Determine power values for all the labelled current and voltage:$BR $PAR -$BBOLD b). $EBOLD +$BBOLD b). $EBOLD $PAR The phasor diagram below represents the power triangle diagram, please answer the following questions: $BR $figa $BR $PAR -Vector \( A \) represents \{ $popupia ->menu() \} $BR +Vector \( A \) represents \{ $popupia ->menu() \} $BR Vector \( B \) represents \{ $popupib ->menu() \} $BR -Vector \( C \) represents \{ $popupic ->menu() \} $BR +Vector \( C \) represents \{ $popupic ->menu() \} $BR $PAR END_TEXT @@ -212,4 +212,4 @@ Vector C corresponds to \( P_{apparent} \) $BR END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/NCSU/Power/ECE305_HW2_P02_White.pg b/Pending/NCSU/Power/ECE305_HW2_P02_White.pg index 4b3666d361..5cb61dcca7 100755 --- a/Pending/NCSU/Power/ECE305_HW2_P02_White.pg +++ b/Pending/NCSU/Power/ECE305_HW2_P02_White.pg @@ -32,7 +32,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -42,7 +42,7 @@ TEXT(beginproblem()); Context("Complex"); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.5f#"; +Context()->{format}{number} = "%.5f#"; #Initialize element values, to be changed for each question $Iv=random(15,20,1); @@ -69,8 +69,8 @@ $C=Real($Qadd/2/pi/$Fv/$Vv/$Vv*1000000000); BEGIN_TEXT A single phase motor draws a line current of $Iv Amp at $PF pf, lagging, when operated from a $Vv Volt, $Fv Hz source. Determine the following:$BR 1. The phase angle of the current with respect to the voltage $BR \(\phi=\)\{ans_rule(10)\} \(^{\circ} \). $BR -2. The real power drawn by the motor $BR \( P_{active, motor} = \) \{ans_rule(10)\} \( kW \) \{AnswerFormatHelp("numbers") \}. $BR -3. The reactive power drawn by the motor $BR \( Q_{motor} = \) \{ans_rule(10)\} \( kVAR\) \{AnswerFormatHelp("numbers") \}.$BR +2. The real power drawn by the motor $BR \( P_{active, motor} = \) \{ans_rule(10)\} \( kW \) \{helpLink("numbers") \}. $BR +3. The reactive power drawn by the motor $BR \( Q_{motor} = \) \{ans_rule(10)\} \( kVAR\) \{helpLink("numbers") \}.$BR 4. \{ans_rule(10)\} \( kVAR \) addition impedance will be required to improve the power factor to 0.9, lagging, while keeping the real power constant. (Use the absolute impedance to answer this question). $BR 5. \( C_{compensate} = \) \{ans_rule(10)\} \( uF\) is needed to accomplish the goal of Part 4 above. @@ -122,4 +122,4 @@ For a new PF= $PF2, END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/NCSU/Power/ECE305_HW2_P03_White.pg b/Pending/NCSU/Power/ECE305_HW2_P03_White.pg index 2962b3448f..23507314da 100755 --- a/Pending/NCSU/Power/ECE305_HW2_P03_White.pg +++ b/Pending/NCSU/Power/ECE305_HW2_P03_White.pg @@ -32,7 +32,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -42,7 +42,7 @@ TEXT(beginproblem()); Context("Complex"); Context()->variables->are(t=>'Real',w=>'Real',Phi=>'Real',Vmax=>'Real',Imax=>'Real'); -Context()->{format}{number} = "%.5f#"; +Context()->{format}{number} = "%.5f#"; $Vt_formula=Formula("Vmax*sin(w*t)"); $It_formula=Formula("Imax*sin(w*t+Phi)"); @@ -52,7 +52,7 @@ BEGIN_TEXT Given that the voltage and current through an impedance are the following values: $BR \(v(t)=V_{max} sin (\omega t)\); $BR \(i(t)=I_{max} sin (\omega t+ \phi)\); $BR -\( P_{ave} = \) \{ans_rule(20)\} (Use 'Imax', 'Vmax','Phi', and 'w' in your answer). \{ AnswerFormatHelp("formula") \} +\( P_{ave} = \) \{ans_rule(20)\} (Use 'Imax', 'Vmax','Phi', and 'w' in your answer). \{ helpLink("formula") \} END_TEXT Context()->normalStrings; @@ -84,4 +84,4 @@ Thus$BR END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/NCSU/Power/ECE305_HW2_P04_White.pg b/Pending/NCSU/Power/ECE305_HW2_P04_White.pg index f8766bd3a1..ed290a358f 100755 --- a/Pending/NCSU/Power/ECE305_HW2_P04_White.pg +++ b/Pending/NCSU/Power/ECE305_HW2_P04_White.pg @@ -30,7 +30,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -44,7 +44,7 @@ tolType => "absolute", ); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; #Initialize element values, to be changed for each question $Van=Real(random(250,300,5)); @@ -109,7 +109,7 @@ $grapha->lb(new Label($modVbc*cos($argVbc/180*pi), $modVbc*sin($argVbc/180*pi)," $grapha->lb(new Label($modVca*cos($argVca/180*pi), $modVca*sin($argVca/180*pi),"X",'blue','left','top')); -$figa = image(insertGraph($grapha),width => 400,height => 400,tex_size => 200); +$figa = image(insertGraph($grapha),width => 400,height => 400,tex_size => 200); $popupU = PopUp(["?", "Vbn", "Vcn", "Vab","Vbc","Vca","none"], "Vcn"); @@ -135,13 +135,13 @@ A balanced three-phase, wye-connected load is connected to an acb sequence gener 2. The following is the voltage phasor diagram with \(V_{an}\) as the reference. Answer the questions about the phasor diagram. $BR $figa $BR $PAR -Vector \( U \) represents \{ $popupU ->menu() \} $BR +Vector \( U \) represents \{ $popupU ->menu() \} $BR Vector \( W \) represents \{ $popupW ->menu() \} $BR -Vector \( X \) represents \{ $popupX ->menu() \} $BR +Vector \( X \) represents \{ $popupX ->menu() \} $BR Vector \( Y \) represents \{ $popupY ->menu() \} $BR -Vector \( Z \) represents \{ $popupZ ->menu() \} $BR +Vector \( Z \) represents \{ $popupZ ->menu() \} $BR -Note: Make sure you can draw the phasor diagram yourself during the exam. +Note: Make sure you can draw the phasor diagram yourself during the exam. $PAR END_TEXT @@ -218,4 +218,4 @@ Vector Z is \(V_{bc}\) END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/NCSU/Power/ECE305_HW2_P05_White.pg b/Pending/NCSU/Power/ECE305_HW2_P05_White.pg index be62acaddf..8a377e1642 100755 --- a/Pending/NCSU/Power/ECE305_HW2_P05_White.pg +++ b/Pending/NCSU/Power/ECE305_HW2_P05_White.pg @@ -31,7 +31,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -45,7 +45,7 @@ tolType => "absolute", ); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; #Initialize element values, to be changed for each question $Vab=Real(random(200,240,10)); @@ -113,7 +113,7 @@ $grapha->lb(new Label($modVbc*cos($argVbc/180*pi), $modVbc*sin($argVbc/180*pi)," $grapha->lb(new Label($modVca*cos($argVca/180*pi), $modVca*sin($argVca/180*pi),"X",'blue','right','bottom')); -$figa = image(insertGraph($grapha),width => 400,height => 400,tex_size => 200); +$figa = image(insertGraph($grapha),width => 400,height => 400,tex_size => 200); $popupV = PopUp(["?", "Van","Vbn", "Vcn", "Vab","Vbc","Vca","none"], "Van"); $popupU = PopUp(["?", "Vbn", "Vcn", "Vab","Vbc","Vca","none"], "Vcn"); @@ -139,10 +139,10 @@ A balanced three-phase, wye-connected load is supplied by a delta-connected abc 2. The following is the voltage phasor diagram with \(V_{an}\) as the reference. Answer the questions about the phasor diagram. $BR $figa $BR $PAR -Vector \( U \) represents \{ $popupU ->menu() \} $BR -Vector \( V \) represents \{ $popupV ->menu() \} $BR +Vector \( U \) represents \{ $popupU ->menu() \} $BR +Vector \( V \) represents \{ $popupV ->menu() \} $BR Vector \( W \) represents \{ $popupW ->menu() \} $BR -Vector \( X \) represents \{ $popupX ->menu() \} $BR +Vector \( X \) represents \{ $popupX ->menu() \} $BR Vector \( Y \) represents \{ $popupY ->menu() \} $BR Note: Make sure you can draw the phasor diagram yourself during the exam. $BR @@ -229,4 +229,4 @@ $PAR END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/NCSU/Power/ECE305_HW2_P06_White.pg b/Pending/NCSU/Power/ECE305_HW2_P06_White.pg index 54696c56f5..fe77f6424b 100755 --- a/Pending/NCSU/Power/ECE305_HW2_P06_White.pg +++ b/Pending/NCSU/Power/ECE305_HW2_P06_White.pg @@ -32,7 +32,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -46,7 +46,7 @@ tolType => "absolute", ); Context()->variables->are(Vp=>'Real'); -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; #Initialize element values, to be changed for each question $Z1=random(0.5,1,0.1)+random(1.8,2.3,0.1)*i; @@ -141,7 +141,7 @@ $grapha->lb(new Label($isxv/2,$isyv/2,"Is",'blue','right','top')); $grapha->lb(new Label($Tmax,0,"Ref",'black','right','bottom')); $grapha->lb(new Label(0 ,$ULMa,"Imag",'black','left','top')); -$figa = image(insertGraph($grapha),width => 400,height => 400,tex_size => 200); +$figa = image(insertGraph($grapha),width => 400,height => 400,tex_size => 200); $popupia = PopUp(["?", "Active", "Reactive", "Apparent"], "Reactive"); $popupib = PopUp(["?", "Active", "Reactive", "Apparent"], "Active"); $popupic = PopUp(["?", "Active", "Reactive", "Apparent"], "Apparent"); @@ -166,12 +166,12 @@ $PAR In the rest of the question, consider \(V_p\) as the magnitude of \(\tilde{ V_p}\), which should be considered as a common factor. $PAR -$BBOLD b). $EBOLD +$BBOLD b). $EBOLD Find the load voltages and currents of the WYE-connected load. $BR \(\tilde{ V}_C= \) \{ans_rule(10)\} \(\cdot V_p\) \( \angle \) \{ans_rule(10)\} \( ^{ \circ } V \)$BR \(\tilde{ I}_C= \) \{ans_rule(10)\} \(\cdot V_p\) \( \angle \) \{ans_rule(10)\} \( ^{ \circ } A \)$PAR -$BBOLD c). $EBOLD +$BBOLD c). $EBOLD Find the real and reactive power and power factor of the WYE-connected load. $BR \(P_{C}= \) \{ans_rule(10)\} \(\cdot V_p^2 W \) $BR \(Q_{C}= \) \{ans_rule(10)\} \(\cdot V_p^2 VAR \) $BR (Use the absolute value for \(Q_C\))$BR @@ -189,7 +189,7 @@ The power factor is \{ans_rule(10)\} \{ $popupQb ->menu() \} for the DELTA-conne $BBOLD f). $EBOLD The source line currents in the per-phase circuit is: $BR \(\tilde{I}_{s,eq}= \) \{ans_rule(10)\} \(\cdot V_p\) \( \angle \) \{ans_rule(10)\} \( ^{ \circ } A \)$BR -The magnitude of the actual line current through each voltage source \(V_s\) is: $BR +The magnitude of the actual line current through each voltage source \(V_s\) is: $BR \(|\tilde{I}|_{s}= \) \{ans_rule(10)\} \( A \)$PAR $BBOLD g). $EBOLD Find the total real and reactive power of the source. @@ -202,7 +202,7 @@ $figa $BR $PAR Vector \( A \) represents total active power, vector \( B \) represents total reactive power. $BR -Then vector \( C \) represents the total apparent power drawn by the load. $BR +Then vector \( C \) represents the total apparent power drawn by the load. $BR Its value |S| is \{ans_rule(10)\}\(\cdot V_p^2\) \( VA \), $BR In the per-phase equivalent circuit, the phase angle for the total load apparent power is \{ans_rule(10)\} \( ^{ \circ } \)$BR @@ -355,4 +355,4 @@ In the per-phase equivalent circuit, apparently the phase angle of S will be det END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/NCSU/Power/ECE305_HW3_P01_White.pg b/Pending/NCSU/Power/ECE305_HW3_P01_White.pg index 1d91fd4fca..f450b984fd 100755 --- a/Pending/NCSU/Power/ECE305_HW3_P01_White.pg +++ b/Pending/NCSU/Power/ECE305_HW3_P01_White.pg @@ -32,7 +32,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -40,7 +40,7 @@ TEXT(beginproblem()); Context("Complex"); -Context()->{format}{number} = "%.5f#"; +Context()->{format}{number} = "%.5f#"; #Initialize element values, to be changed for each question $CS=random(35,45,1);#cm^2 @@ -61,7 +61,7 @@ $I=($H*$Ln+$Lg/4/pi*10000000)/$N; BEGIN_TEXT A silicon-steel core has a uniform cross-section area of \($CS cm^2 \), a mean path length of \($Len cm\), and $BR a gap length of \($Gap mm\). $BR -A. The current in the \($N \) turn coil that will result in an air gap flux density of \(1 Wb/m^2\) is \{ans_rule(10)\} \(A\) \{AnswerFormatHelp("numbers") \} $BR +A. The current in the \($N \) turn coil that will result in an air gap flux density of \(1 Wb/m^2\) is \{ans_rule(10)\} \(A\) \{helpLink("numbers") \} $BR B. What is the maximum air gap flux density that can occur with this physical arrangement? END_TEXT @@ -94,4 +94,4 @@ For Gap:$BR END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/NCSU/Power/ECE305_HW3_P02_03_White.pg b/Pending/NCSU/Power/ECE305_HW3_P02_03_White.pg index 9db3d69197..9b566fc1dc 100755 --- a/Pending/NCSU/Power/ECE305_HW3_P02_03_White.pg +++ b/Pending/NCSU/Power/ECE305_HW3_P02_03_White.pg @@ -31,7 +31,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -42,7 +42,7 @@ Context("Complex"); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.5f#"; +Context()->{format}{number} = "%.5f#"; #Initialize element values, to be changed for each question $CS=random(35,45,1);#cm @@ -112,22 +112,22 @@ $PAR \{image("ECE305_HW3_2_White_P1.png",height=>400, width=>500)\} $BR $PAR -The electromagnet shown above has a cross-section area of \($CS cm^2\); the area is uniform throughout the structure. On one leg there is a $N1 turn coil; the other leg has a $N2 turn coil. The coils are connected such that the MMF from the individual coils will add. The mean magnetic path length of the top section is \($Lnt cm\); the mean length of the bottom section is \($Lnb cm\). Note that the materials of the two sections are different. $BR +The electromagnet shown above has a cross-section area of \($CS cm^2\); the area is uniform throughout the structure. On one leg there is a $N1 turn coil; the other leg has a $N2 turn coil. The coils are connected such that the MMF from the individual coils will add. The mean magnetic path length of the top section is \($Lnt cm\); the mean length of the bottom section is \($Lnb cm\). Note that the materials of the two sections are different. $BR $BR -A. The current that will estabalish a flux of \($Phi mWb\) in each of the \($Lg cm\) air gaps is \{ans_rule(10)\} A. \{AnswerFormatHelp("numbers") \} $PAR +A. The current that will estabalish a flux of \($Phi mWb\) in each of the \($Lg cm\) air gaps is \{ans_rule(10)\} A. \{helpLink("numbers") \} $PAR B. Find the self inductances of and mutual inductances, in Henries, of the coils.$BR -\(L_{11}=\) \{ans_rule(10)\} \(H\) \{AnswerFormatHelp("numbers") \} $BR -\(L_{22}=\) \{ans_rule(10)\} \(H\) \{AnswerFormatHelp("numbers") \} $BR -\(L_{12}=\) \{ans_rule(10)\} \(H\) \{AnswerFormatHelp("numbers") \} $BR -\(L_{21}=\) \{ans_rule(10)\} \(H\) \{AnswerFormatHelp("numbers") \} $PAR +\(L_{11}=\) \{ans_rule(10)\} \(H\) \{helpLink("numbers") \} $BR +\(L_{22}=\) \{ans_rule(10)\} \(H\) \{helpLink("numbers") \} $BR +\(L_{12}=\) \{ans_rule(10)\} \(H\) \{helpLink("numbers") \} $BR +\(L_{21}=\) \{ans_rule(10)\} \(H\) \{helpLink("numbers") \} $PAR C. The energy stored in the field of each coil.$BR -\(W_{1}=\) \{ans_rule(10)\} \(J\) \{AnswerFormatHelp("numbers") \} $BR -\(W_{2}=\) \{ans_rule(10)\} \(J\) \{AnswerFormatHelp("numbers") \} $PAR +\(W_{1}=\) \{ans_rule(10)\} \(J\) \{helpLink("numbers") \} $BR +\(W_{2}=\) \{ans_rule(10)\} \(J\) \{helpLink("numbers") \} $PAR D. The total energy stored in the completed assembly.$BR -\(W_{total}=\) \{ans_rule(10)\} \(J\) \{AnswerFormatHelp("numbers") \} $PAR +\(W_{total}=\) \{ans_rule(10)\} \(J\) \{helpLink("numbers") \} $PAR E. If the current through both coils is \(i=$I1 sin($Omg t) A\). What are the individual coil emfs? $BR -\(emf_{1}=\) \{ans_rule(30)\} \(V\) \{AnswerFormatHelp("formula") \} $BR -\(emf_{2}=\) \{ans_rule(30)\} \(V\) \{AnswerFormatHelp("formula") \} $BR +\(emf_{1}=\) \{ans_rule(30)\} \(V\) \{helpLink("formula") \} $BR +\(emf_{2}=\) \{ans_rule(30)\} \(V\) \{helpLink("formula") \} $BR $PAR @@ -215,7 +215,7 @@ Part b) $BR Part c) $BR Energy in the coils: $BR \(W_1=\frac{1}{2}L_{11}I^2=$W1 J\) $BR -\(W_2=\frac{1}{2}L_{22}I^2=$W2 J\) $BR +\(W_2=\frac{1}{2}L_{22}I^2=$W2 J\) $BR Note I was found in Part a). $PAR Part d) $BR @@ -235,4 +235,4 @@ Part e) $BR END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/NCSU/Power/ECE305_HW3_P04_White.pg b/Pending/NCSU/Power/ECE305_HW3_P04_White.pg index 8476ad91b8..29fa6b90b9 100755 --- a/Pending/NCSU/Power/ECE305_HW3_P04_White.pg +++ b/Pending/NCSU/Power/ECE305_HW3_P04_White.pg @@ -32,7 +32,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", "scaffold.pl", ); @@ -44,7 +44,7 @@ Context("Complex"); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.5f#"; +Context()->{format}{number} = "%.5f#"; #Initialize element values, to be changed for each question $CS=random(12,18,1);#cm^2 @@ -78,9 +78,9 @@ BEGIN_TEXT \{image("ECE305_HW3_4_White_P1.png",height=>150, width=>200)\} $BR $PAR The silicon steel core shown above has a uniform cross-section area of \($CS cm^2\) , a mean path length of \($Len cm\), and a gap length of \($Gap mm\). If the $N turn coil carries \($I A\). Neglect air gap fringing. Firstly, determine the air gap magnetic flux density assuming all the flux is across the air gap. $BR -\(B_g=\) \{ans_rule(10)\} \(Wb/m^2\). \{AnswerFormatHelp("numbers") \}$BR +\(B_g=\) \{ans_rule(10)\} \(Wb/m^2\). \{helpLink("numbers") \}$BR From the B-H curve, approximate \(H_{core}\). $BR -\(H_{core}=\)\{ans_rule(10)\} \(A \cdot t/m\). \{AnswerFormatHelp("numbers") \}$BR +\(H_{core}=\)\{ans_rule(10)\} \(A \cdot t/m\). \{helpLink("numbers") \}$BR $PAR END_TEXT @@ -95,7 +95,7 @@ Section::Begin("Part 2: Refine Bg"); BEGIN_TEXT Now given \(H_{core}=125 A \cdot t/m \). Refine the value for \(B_g\) taking into the account of core loss. $BR -\(B_g=\) \{ans_rule(10)\} \(Wb/m^2\). \{AnswerFormatHelp("numbers") \}$BR +\(B_g=\) \{ans_rule(10)\} \(Wb/m^2\). \{helpLink("numbers") \}$BR END_TEXT $B1t=(abs($B1)>=1?"relative":"absolute"); ANS($B1->cmp(tolerance => 0.01,tolType => $B1t)); @@ -137,4 +137,4 @@ Now the refined \(B_g=\frac{4 \pi \cdot 10^{-7} \cdot $N1\cdot $I}{$Lg}=$B1 Wb/m END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/NCSU/Power/ECE305_HW3_P05_White.pg b/Pending/NCSU/Power/ECE305_HW3_P05_White.pg index ceac76d241..d166d0bd03 100755 --- a/Pending/NCSU/Power/ECE305_HW3_P05_White.pg +++ b/Pending/NCSU/Power/ECE305_HW3_P05_White.pg @@ -30,7 +30,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -41,7 +41,7 @@ Context("Complex"); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.5f#"; +Context()->{format}{number} = "%.5f#"; #Initialize element values, to be changed for each question $L11=random(0.9,1.2,0.1); @@ -57,7 +57,7 @@ $k=Real($L12/sqrt($L11*$L22)); BEGIN_TEXT Two identical coils have the values \(L_{11} =$L11 H; L_{22} =$L22 H; L_{12} = $L12 H\) What is the coefficient of coupling? $BR -\(k =\) \{ans_rule(10)\}. \{AnswerFormatHelp("numbers") \}$BR +\(k =\) \{ans_rule(10)\}. \{helpLink("numbers") \}$BR END_TEXT Context()->normalStrings; @@ -78,4 +78,4 @@ $BBOLD SOLUTION $EBOLD END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/NCSU/Power/ECE305_HW3_P06_White.pg b/Pending/NCSU/Power/ECE305_HW3_P06_White.pg index 171057b605..06a10d291a 100755 --- a/Pending/NCSU/Power/ECE305_HW3_P06_White.pg +++ b/Pending/NCSU/Power/ECE305_HW3_P06_White.pg @@ -30,7 +30,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -41,7 +41,7 @@ Context("Complex"); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.5f#"; +Context()->{format}{number} = "%.5f#"; #Initialize element values, to be changed for each question $CS=random(35,45,1);#cm @@ -79,20 +79,20 @@ Three coils are wound on a core with infinite permeability. There is an air gap a gap length of \($Lg m\) and an area of \($Ac m^2\). Coil N1 has $N1 turns, coil N2 has $N2 turns, and coil N3 has $N3 turns. The coils are connected such that the fluxes add; a current of \($I A\) flows through all coils.$PAR A. Find the self inductances of and mutual inductances, in Henries, of the coils.$BR -\(L_{11}=\) \{ans_rule(10)\} \(H\) \{AnswerFormatHelp("numbers") \} $BR -\(L_{22}=\) \{ans_rule(10)\} \(H\) \{AnswerFormatHelp("numbers") \} $BR -\(L_{33}=\) \{ans_rule(10)\} \(H\) \{AnswerFormatHelp("numbers") \} $BR -\(L_{12}=L_{21}=\) \{ans_rule(10)\} \(H\) \{AnswerFormatHelp("numbers") \} $BR -\(L_{13}=L_{31}=\) \{ans_rule(10)\} \(H\) \{AnswerFormatHelp("numbers") \} +\(L_{11}=\) \{ans_rule(10)\} \(H\) \{helpLink("numbers") \} $BR +\(L_{22}=\) \{ans_rule(10)\} \(H\) \{helpLink("numbers") \} $BR +\(L_{33}=\) \{ans_rule(10)\} \(H\) \{helpLink("numbers") \} $BR +\(L_{12}=L_{21}=\) \{ans_rule(10)\} \(H\) \{helpLink("numbers") \} $BR +\(L_{13}=L_{31}=\) \{ans_rule(10)\} \(H\) \{helpLink("numbers") \} $BR -\(L_{23}=L_{32}=\) \{ans_rule(10)\} \(H\) \{AnswerFormatHelp("numbers") \} $PAR +\(L_{23}=L_{32}=\) \{ans_rule(10)\} \(H\) \{helpLink("numbers") \} $PAR B. The total energy stored in the magnetic field.$BR -\(W_{total}=\) \{ans_rule(10)\} \(J\) \{AnswerFormatHelp("numbers") \} $PAR +\(W_{total}=\) \{ans_rule(10)\} \(J\) \{helpLink("numbers") \} $PAR C. If the current through both coils is \(i=$I1 sin($Omg t) A\). What are the voltages across individual coils? $BR -\(emf_{1}=\) \{ans_rule(30)\} \(V\) \{AnswerFormatHelp("formula") \} $BR -\(emf_{2}=\) \{ans_rule(30)\} \(V\) \{AnswerFormatHelp("formula") \} $BR -\(emf_{3}=\) \{ans_rule(30)\} \(V\) \{AnswerFormatHelp("formula") \} $BR +\(emf_{1}=\) \{ans_rule(30)\} \(V\) \{helpLink("formula") \} $BR +\(emf_{2}=\) \{ans_rule(30)\} \(V\) \{helpLink("formula") \} $BR +\(emf_{3}=\) \{ans_rule(30)\} \(V\) \{helpLink("formula") \} $BR @@ -161,8 +161,8 @@ Since the permeability is infinite for the core, we only need to consider the pe Part b) $BR Energy in the coils: $BR \(W_1=\frac{1}{2}L_{11}I^2=$W1 J\) $BR -\(W_2=\frac{1}{2}L_{22}I^2=$W2 J\) $BR -\(W_3=\frac{1}{2}L_{33}I^2=$W2 J\) $BR +\(W_2=\frac{1}{2}L_{22}I^2=$W2 J\) $BR +\(W_3=\frac{1}{2}L_{33}I^2=$W2 J\) $BR \(W_{12}=\frac{1}{2}L_{12}I_1 I_2 \) $BR \(W_{21}=\frac{1}{2}L_{21}I_2 I_1 \) $BR @@ -191,4 +191,4 @@ Part c) $BR END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/NCSU/Power/ECE305_HW4_P01_White.pg b/Pending/NCSU/Power/ECE305_HW4_P01_White.pg index e37d7ba2ff..46c4736ae6 100755 --- a/Pending/NCSU/Power/ECE305_HW4_P01_White.pg +++ b/Pending/NCSU/Power/ECE305_HW4_P01_White.pg @@ -30,7 +30,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -41,7 +41,7 @@ Context("Complex"); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.5f#"; +Context()->{format}{number} = "%.5f#"; #Initialize element values, to be changed for each question $NP=Real(random(350,500,50)); @@ -71,17 +71,17 @@ BEGIN_TEXT A generator supplies an ideal transformer that has $NP turns on the primary and $NS turns on the secondary. The load voltage is \( $Vld V (RMS)\); the load impedance is \($modZld \angle $argZld ^{\circ}\). $BR Part a) $BR -\(V_{primary} =\) \{ans_rule(10)\} \(\angle\) \{ans_rule(10)\} \(^{\circ} V_{rms}\) \{AnswerFormatHelp("numbers") \}$BR +\(V_{primary} =\) \{ans_rule(10)\} \(\angle\) \{ans_rule(10)\} \(^{\circ} V_{rms}\) \{helpLink("numbers") \}$BR -\(V_{secondary} =\) \{ans_rule(10)\} \(\angle\) \{ans_rule(10)\} \(^{\circ} V_{rms}\) \{AnswerFormatHelp("numbers") \}$PAR +\(V_{secondary} =\) \{ans_rule(10)\} \(\angle\) \{ans_rule(10)\} \(^{\circ} V_{rms}\) \{helpLink("numbers") \}$PAR Part b) $BR -\(I_{primary} =\) \{ans_rule(10)\} \(\angle\) \{ans_rule(10)\} \(^{\circ} A_{rms}\) \{AnswerFormatHelp("numbers") \}$BR +\(I_{primary} =\) \{ans_rule(10)\} \(\angle\) \{ans_rule(10)\} \(^{\circ} A_{rms}\) \{helpLink("numbers") \}$BR -\(I_{secondary} =\) \{ans_rule(10)\} \(\angle\) \{ans_rule(10)\} \(^{\circ} A_{rms}\) \{AnswerFormatHelp("numbers") \}$PAR +\(I_{secondary} =\) \{ans_rule(10)\} \(\angle\) \{ans_rule(10)\} \(^{\circ} A_{rms}\) \{helpLink("numbers") \}$PAR Part c) $BR -\(Z_{primary} =\) \{ans_rule(10)\} \(\angle\) \{ans_rule(10)\} \(^{\circ} \Omega \) \{AnswerFormatHelp("numbers") \}$BR +\(Z_{primary} =\) \{ans_rule(10)\} \(\angle\) \{ans_rule(10)\} \(^{\circ} \Omega \) \{helpLink("numbers") \}$BR $PAR @@ -131,8 +131,8 @@ $PAR \(Z_{primary}=Z_{secondary} \frac{$NP^2}{$NS^2}=$modZldp \angle $argZldp ^{\circ} \Omega \) $BR -$BR +$BR END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/NCSU/Power/ECE305_HW4_P02_White.pg b/Pending/NCSU/Power/ECE305_HW4_P02_White.pg index cfbf501d5e..fb8c49433c 100755 --- a/Pending/NCSU/Power/ECE305_HW4_P02_White.pg +++ b/Pending/NCSU/Power/ECE305_HW4_P02_White.pg @@ -32,7 +32,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -42,11 +42,11 @@ TEXT(beginproblem()); Context("Complex"); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.5f#"; +Context()->{format}{number} = "%.5f#"; #Initialize element values, to be changed for each question -$Pva =random(5,15,1); #kVA -$Vpr=1000; +$Pva =random(5,15,1); #kVA +$Vpr=1000; $Vsec=500; $Freq=60; $R1=random(1.5,3,0.1); @@ -108,7 +108,7 @@ $grapha->arrowTo($i1x,$i1y,"blue",1); $grapha->lb('reset'); $grapha->lb(new Label($i1x,$i1y,"Vector A",'blue','left','top')); $grapha->lb(new Label($i2x,$i2y,"Vector B",'blue','right','bottom')); -$figa = image(insertGraph($grapha),width => 400,height => 250,tex_size => 400); +$figa = image(insertGraph($grapha),width => 400,height => 250,tex_size => 400); $popupAa = PopUp(["?", "i1", "i2","V1", "V2","iC", "im"], "V1"); $popupAb = PopUp(["?", "i1", "i2","V1", "V2","iC", "im"], "i1"); $popupAc = PopUp(["?", "i1", "i2","V1", "V2","iC", "im"], "i2"); @@ -119,30 +119,30 @@ BEGIN_TEXT $PAR A transformer is rated \( $Pva kVA\), \($Vpr-$Vsec V \), \($Freq Hz \). The equivalent circuit parameters are found to be: $BR -The primary impedance is \( R_1 =$R1 \Omega; X_1=$X1 \Omega \); $BR +The primary impedance is \( R_1 =$R1 \Omega; X_1=$X1 \Omega \); $BR The secondary impedance is \( R_2 =$R2 \Omega; X_2=$X2 \Omega \); $BR The exciting admittance is \( G_c =$Gc \mu S; B_m=$Bm \mu S \); $PAR -Use the approximate nonideal model ("cantilever" model) discussed in class to solve this problem. Draw your own equivalent circuit diagram on a piece of paper following the labelling convention used in class, and be sure that you can draw the equivalent diagram in the exams. +Use the approximate nonideal model ("cantilever" model) discussed in class to solve this problem. Draw your own equivalent circuit diagram on a piece of paper following the labelling convention used in class, and be sure that you can draw the equivalent diagram in the exams. $PAR a) What is the primary voltage if the transformer delivers rated kVA, \($pf \) P.F. leading, at rated voltage to a load. $BR -\(\tilde{V}_{1} =\) \{ans_rule(10)\} \(\angle\) \{ans_rule(10)\} \(^{\circ} V\). \{AnswerFormatHelp("numbers") \}$PAR +\(\tilde{V}_{1} =\) \{ans_rule(10)\} \(\angle\) \{ans_rule(10)\} \(^{\circ} V\). \{helpLink("numbers") \}$PAR b)The plot below represents the phaser diagram for the circuit with horizontal axis as the reference for voltage \( \tilde{V}_2 \).$BR \{image("ECE305_HW4_2_White_P1.png",height=>250, width=>300)\} $BR $BR Note that the phasers in the diagram are not in scale but the relative phase and magnitude relationship between the phasers are maintained. Denote \( \tilde{V}_1 \) as "V1", \( \tilde{i}_1 \) as "i1", and \( \tilde{i}_m \) as "im" etc.. Answer the following questions about the phasor diagram. $BR -Vector \( A \) represents \{ $popupAa ->menu() \}. $BR +Vector \( A \) represents \{ $popupAa ->menu() \}. $BR Vector \( B \) represents \{ $popupAb ->menu() \}. $BR Vector \( C \) represents \{ $popupAc ->menu() \}. $BR Vector \( D \) represents \{ $popupAd ->menu() \}. $BR Be sure you can draw the phaser diagram if required in the exam. $PAR c) Calculate the net hysteresis and eddy-current loss $PAR -\(P_{loss} =\) \{ans_rule(10)\} \( W\). \{AnswerFormatHelp("numbers") \} $BR +\(P_{loss} =\) \{ans_rule(10)\} \( W\). \{helpLink("numbers") \} $BR d) Calculate the vars required to setup the core field $PAR -\(Q_{mag} =\) \{ans_rule(10)\} \( VAr\). \{AnswerFormatHelp("numbers") \} $BR +\(Q_{mag} =\) \{ans_rule(10)\} \( VAr\). \{helpLink("numbers") \} $BR e) Calculate the vars required to setup the leakage field $PAR -\(Q_{leak} =\) \{ans_rule(10)\} \(VAr\). \{AnswerFormatHelp("numbers") \} $PAR +\(Q_{leak} =\) \{ans_rule(10)\} \(VAr\). \{helpLink("numbers") \} $PAR f) Calculate the efficiency of the transformer at rated kVA, \($pf \) P.F. leading. $BR -\( \eta =\) \{ans_rule(10)\} \(%\). \{AnswerFormatHelp("numbers") \} $BR +\( \eta =\) \{ans_rule(10)\} \(%\). \{helpLink("numbers") \} $BR $PAR @@ -197,4 +197,4 @@ Based on the phase relationship, it is obvious that Vector A is \( \tilde{V}_2\) END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/NCSU/Power/ECE305_HW4_P03_White.pg b/Pending/NCSU/Power/ECE305_HW4_P03_White.pg index 8204ba07c6..489027c786 100755 --- a/Pending/NCSU/Power/ECE305_HW4_P03_White.pg +++ b/Pending/NCSU/Power/ECE305_HW4_P03_White.pg @@ -30,7 +30,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -41,7 +41,7 @@ Context("Complex"); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.5f#"; +Context()->{format}{number} = "%.5f#"; #Initialize element values, to be changed for each question $Voc=random(3,5,0.5); #kV @@ -99,10 +99,10 @@ $PAR A $VA kVA, $Vp:$Vs kV, $Fv Hz transformer has the following open-circuit/short-circuit ratings: $BR OC: $Voc kV, $Ioc A, $Poc kW $BR SC: $Vsc V, $Isc A, $Psc kW. $BR -A. The \{ $popupOC->menu() \} side of the transformer is open-circuited for the open-circuit test. $BR -B. The \{ $popupSC->menu() \} side of the transformer is short-circuited for the short-circuit test. $BR -C. The primary voltage if the transformer delivers rated kVA, rated voltage, at $PF PF lagging is \{ans_rule(10)\} \(\angle\) \{ans_rule(10)\} \(^{\circ} kV\) \{AnswerFormatHelp("numbers") \}$BR -D. At the above load, the efficiency of the transformer is \{ans_rule(10)\} \(%\) and the voltage regulation is \{ans_rule(10)\} \(%\). \{AnswerFormatHelp("numbers") \} +A. The \{ $popupOC->menu() \} side of the transformer is open-circuited for the open-circuit test. $BR +B. The \{ $popupSC->menu() \} side of the transformer is short-circuited for the short-circuit test. $BR +C. The primary voltage if the transformer delivers rated kVA, rated voltage, at $PF PF lagging is \{ans_rule(10)\} \(\angle\) \{ans_rule(10)\} \(^{\circ} kV\) \{helpLink("numbers") \}$BR +D. At the above load, the efficiency of the transformer is \{ans_rule(10)\} \(%\) and the voltage regulation is \{ans_rule(10)\} \(%\). \{helpLink("numbers") \} END_TEXT Context()->normalStrings; @@ -170,8 +170,8 @@ By on KVL: $BR -$BR +$BR END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/NCSU/Power/ECE305_HW4_P04_White.pg b/Pending/NCSU/Power/ECE305_HW4_P04_White.pg index 4c410c92f6..d8a9ccc6d3 100755 --- a/Pending/NCSU/Power/ECE305_HW4_P04_White.pg +++ b/Pending/NCSU/Power/ECE305_HW4_P04_White.pg @@ -31,7 +31,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -42,11 +42,11 @@ Context("Complex"); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.5f#"; +Context()->{format}{number} = "%.5f#"; #Initialize element values, to be changed for each question -$Pva =random(800,1500,100); #VA -$Vpr=240; +$Pva =random(800,1500,100); #VA +$Vpr=240; $Vsec=120; $Voc=$Vsec; $ioc=random(0.15,0.3,0.01); #A @@ -57,7 +57,7 @@ $Psc=random(9,15,0.1); #W $pf=random(0.75,0.85,0.01); #W ## Debugging Code Parameters From Textbook -#$Pva =1000;$ioc=0.2;$Poc=5.2;$Vsc=10.8; $isc=4.15;$Psc=11.8;$pf=0.8; +#$Pva =1000;$ioc=0.2;$Poc=5.2;$Vsc=10.8; $isc=4.15;$Psc=11.8;$pf=0.8; # Answer calculation #Part a) @@ -110,22 +110,22 @@ A \($Pva\)-kVA, \($Vpr/$Vsec\)-V transformer has been tested to determine its eq Draw your own equivalent circuit diagram on a piece of paper following the labelling convention used in class, and be sure that you can draw the equivalent diagram in the exams. $PAR (a) Find the equivalent circuit parameters for this transformer referred to the low-voltage side of the transformer: $BR - \( R_c=\)\{ans_rule(10)\} \(k \Omega\). \{AnswerFormatHelp("numbers") \} $BR - \( X_m=\)\{ans_rule(10)\} \(k \Omega\). \{AnswerFormatHelp("numbers") \}$BR - \( R=\)\{ans_rule(10)\} \(\Omega\). \{AnswerFormatHelp("numbers") \}$BR - \( X=\)\{ans_rule(10)\} \(\Omega\). \{AnswerFormatHelp("numbers") \}$BR + \( R_c=\)\{ans_rule(10)\} \(k \Omega\). \{helpLink("numbers") \} $BR + \( X_m=\)\{ans_rule(10)\} \(k \Omega\). \{helpLink("numbers") \}$BR + \( R=\)\{ans_rule(10)\} \(\Omega\). \{helpLink("numbers") \}$BR + \( X=\)\{ans_rule(10)\} \(\Omega\). \{helpLink("numbers") \}$BR $PAR (b) Find the equivalent circuit for this transformer in per-unit: $BR - \( R_{c,pu}=\)\{ans_rule(10)\} \(P.U.\)\{AnswerFormatHelp("numbers") \} $BR - \( X_{m,pu}=\)\{ans_rule(10)\}\(P.U.\) \{AnswerFormatHelp("numbers") \}$BR - \( R_{pu}=\)\{ans_rule(10)\}\(P.U.\) \{AnswerFormatHelp("numbers") \}$BR - \( X_{pu}=\)\{ans_rule(10)\}\(P.U.\) \{AnswerFormatHelp("numbers") \}$BR + \( R_{c,pu}=\)\{ans_rule(10)\} \(P.U.\)\{helpLink("numbers") \} $BR + \( X_{m,pu}=\)\{ans_rule(10)\}\(P.U.\) \{helpLink("numbers") \}$BR + \( R_{pu}=\)\{ans_rule(10)\}\(P.U.\) \{helpLink("numbers") \}$BR + \( X_{pu}=\)\{ans_rule(10)\}\(P.U.\) \{helpLink("numbers") \}$BR $PAR (c) Calculate the voltage regulation at rated load conditions for (i) \($pf\) PF leading and (ii) \($pf\) PF lagging. Do this using per unit calculations: $BR -\( V.R._{$pf leading} =\)\{ans_rule(10)\}. \{AnswerFormatHelp("numbers") \}$BR -\( V.R._{$pf lagging} =\)\{ans_rule(10)\}. \{AnswerFormatHelp("numbers") \}$PAR +\( V.R._{$pf leading} =\)\{ans_rule(10)\}. \{helpLink("numbers") \}$BR +\( V.R._{$pf lagging} =\)\{ans_rule(10)\}. \{helpLink("numbers") \}$PAR (d) Determine the transformer's efficiency at rated load conditions at \($pf\) PF lagging $BR -\( \eta =\)\{ans_rule(10)\} \(%\). \{AnswerFormatHelp("numbers") \}$BR +\( \eta =\)\{ans_rule(10)\} \(%\). \{helpLink("numbers") \}$BR $R2test END_TEXT Context()->normalStrings; @@ -192,4 +192,4 @@ $PAR END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/NCSU/Power/ECE305_HW4_P06_White.pg b/Pending/NCSU/Power/ECE305_HW4_P06_White.pg index ddeac72af1..8a6fc3782d 100755 --- a/Pending/NCSU/Power/ECE305_HW4_P06_White.pg +++ b/Pending/NCSU/Power/ECE305_HW4_P06_White.pg @@ -31,7 +31,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -41,10 +41,10 @@ TEXT(beginproblem()); Context("Complex"); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.5f#"; +Context()->{format}{number} = "%.5f#"; #Initialize element values, to be changed for each question -$Pva =random(45,60,1); #kVA +$Pva =random(45,60,1); #kVA $Vp=7200; $Vs=240; $Z=random(2,3,0.1); @@ -76,11 +76,11 @@ X/R: $Ratio $BR Determine the following: $BR Note in this question, you may use either 'i' or 'j' to express \(\sqrt{-1}\) $PAR -A. Transformer complex impedance looking into the primary side is \{ans_rule(10)\} \( \Omega \). \{AnswerFormatHelp("numbers") \} $BR +A. Transformer complex impedance looking into the primary side is \{ans_rule(10)\} \( \Omega \). \{helpLink("numbers") \} $BR + +B. Transformer complex impedance looking into the secondary side is \{ans_rule(10)\} \( m \Omega \). \{helpLink("numbers") \} $BR -B. Transformer complex impedance looking into the secondary side is \{ans_rule(10)\} \( m \Omega \). \{AnswerFormatHelp("numbers") \} $BR - -C. The maximum current the transformer can deliver under short-circuit conditions assuming an infinite bus on the primary side is \{ans_rule(10)\} \( kA \). \{AnswerFormatHelp("numbers") \} $BR +C. The maximum current the transformer can deliver under short-circuit conditions assuming an infinite bus on the primary side is \{ans_rule(10)\} \( kA \). \{helpLink("numbers") \} $BR END_TEXT Context()->normalStrings; @@ -115,4 +115,4 @@ $PAR END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/NCSU/Power/ECE305_HW5_P01_02_White.pg b/Pending/NCSU/Power/ECE305_HW5_P01_02_White.pg index 84941a7661..e02162a84d 100755 --- a/Pending/NCSU/Power/ECE305_HW5_P01_02_White.pg +++ b/Pending/NCSU/Power/ECE305_HW5_P01_02_White.pg @@ -29,7 +29,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", "scaffold.pl", ); @@ -40,7 +40,7 @@ TEXT(beginproblem()); Context("Complex"); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.5f#"; +Context()->{format}{number} = "%.5f#"; #Initialize element values, to be changed for each question $V1=random(10,14,0.5); #kV @@ -195,46 +195,46 @@ A delta (high)-delta (low) three-phase transformer bank consists of three-indivi $V1 - $V2 kV $BR $S1 kVA $BR Req2 = \( $Req2 \Omega\) ; Xeq2 = \($Xeq2 \Omega \) [referred to the low side] $PAR -(a) Determine the three-phase bank power and voltage ratings. $BR -\(S_{rat} =\) \{ans_rule(10)\} \( kVA\). \{AnswerFormatHelp("numbers") \} $BR -\(V_{pri} =\)\{ans_rule(10)\} \( kV\). \{AnswerFormatHelp("numbers") \} $BR -\(V_{sec} =\)\{ans_rule(10)\} \( kV\). \{AnswerFormatHelp("numbers") \} $PAR +(a) Determine the three-phase bank power and voltage ratings. $BR +\(S_{rat} =\) \{ans_rule(10)\} \( kVA\). \{helpLink("numbers") \} $BR +\(V_{pri} =\)\{ans_rule(10)\} \( kV\). \{helpLink("numbers") \} $BR +\(V_{sec} =\)\{ans_rule(10)\} \( kV\). \{helpLink("numbers") \} $PAR (b) Sketch the per-phase equivalent circuit to the high-voltage side on a piece of paper and find the numerical values according to the labelling convention used in class $BR -\(R_{eq,pri} =\) \{ans_rule(10)\} \( \Omega \). \{AnswerFormatHelp("numbers") \} $BR -\(X_{eq,pri} =\)\{ans_rule(10)\} \(\Omega\). \{AnswerFormatHelp("numbers") \} $BR +\(R_{eq,pri} =\) \{ans_rule(10)\} \( \Omega \). \{helpLink("numbers") \} $BR +\(X_{eq,pri} =\)\{ans_rule(10)\} \(\Omega\). \{helpLink("numbers") \} $BR Make sure you can sketch the circuit in the exam $PAR (c) Sketch the per-phase equivalent circuit to the low-voltage side on a piece of paper and find the numerical values according to the labelling convention used in class $BR -\(R_{eq,sec} =\) \{ans_rule(10)\} \( \Omega \). \{AnswerFormatHelp("numbers") \} $BR -\(X_{eq,sec} =\)\{ans_rule(10)\} \(\Omega\). \{AnswerFormatHelp("numbers") \} $BR +\(R_{eq,sec} =\) \{ans_rule(10)\} \( \Omega \). \{helpLink("numbers") \} $BR +\(X_{eq,sec} =\)\{ans_rule(10)\} \(\Omega\). \{helpLink("numbers") \} $BR Make sure you can sketch the circuit in the exam $PAR (d) The transformer bank is delivering rated kVA, rated voltage, at a power factor of $pf lagging. $BR -\(|V_{in,line}| = \) \{ans_rule(10)\} \( kV \) \{AnswerFormatHelp("numbers") \} +\(|V_{in,line}| = \) \{ans_rule(10)\} \( kV \) \{helpLink("numbers") \} $PAR -(e) In the condition described in (d), the per-phase load impedance as seen from the high voltage side is \{ans_rule(10)\} \(\angle\) \{ans_rule(10)\} \( ^{\circ} \Omega \) \{AnswerFormatHelp("numbers") \} $PAR +(e) In the condition described in (d), the per-phase load impedance as seen from the high voltage side is \{ans_rule(10)\} \(\angle\) \{ans_rule(10)\} \( ^{\circ} \Omega \) \{helpLink("numbers") \} $PAR (f) The transformer bank efficiency in the condition described in (d) is : $BR -\(\eta = \) \{ans_rule(10)\} \( % \) \{AnswerFormatHelp("numbers") \} $PAR +\(\eta = \) \{ans_rule(10)\} \( % \) \{helpLink("numbers") \} $PAR (g) Determine the voltage regulation assuming a power factor of $pf lagging $BR -\(V.R. = \) \{ans_rule(10)\} \( %\) \{AnswerFormatHelp("numbers") \} $PAR +\(V.R. = \) \{ans_rule(10)\} \( %\) \{helpLink("numbers") \} $PAR -(h) Assume that the load is changed to a leading power factor with all other values unchanged, the load impedance as seem from the high voltage side is \{ans_rule(10)\} \(\angle\) \{ans_rule(10)\} \( ^{\circ} \Omega \) \{AnswerFormatHelp("numbers") \} $PAR +(h) Assume that the load is changed to a leading power factor with all other values unchanged, the load impedance as seem from the high voltage side is \{ans_rule(10)\} \(\angle\) \{ans_rule(10)\} \( ^{\circ} \Omega \) \{helpLink("numbers") \} $PAR (i) The transformer bank efficiency in the condition described in (h) is : $BR -\(\eta = \) \{ans_rule(10)\} \( % \) \{AnswerFormatHelp("numbers") \} $PAR +\(\eta = \) \{ans_rule(10)\} \( % \) \{helpLink("numbers") \} $PAR (j) Under the conditions in Part H above, what is the voltage regulation? $BR -\(V.R. = \) \{ans_rule(10)\} \( %\) \{AnswerFormatHelp("numbers") \} $PAR +\(V.R. = \) \{ans_rule(10)\} \( %\) \{helpLink("numbers") \} $PAR (k) What is the transformer bank impedance in per-unit? $BR -\(Z_{pu} =\)\{ans_rule(10)\} \(%\). \{AnswerFormatHelp("numbers") \} $PAR +\(Z_{pu} =\)\{ans_rule(10)\} \(%\). \{helpLink("numbers") \} $PAR + - END_TEXT @@ -310,45 +310,45 @@ $V1 - $V2 kV $BR $S1 kVA $BR Pcore = $Pc kW; Qcore = $Qc kVARs [obtained from open circuit test at rated voltage] $BR Req2 = \( $Req2 \Omega\) ; Xeq2 = \($Xeq2 \Omega \) [referred to the low side] $PAR -(a) Determine the three-phase bank power and voltage ratings. $BR -\(S_{rat} =\) \{ans_rule(10)\} \( kVA\). \{AnswerFormatHelp("numbers") \} $BR -\(V_{pri} =\)\{ans_rule(10)\} \( kV\). \{AnswerFormatHelp("numbers") \} $BR -\(V_{sec} =\)\{ans_rule(10)\} \( kV\). \{AnswerFormatHelp("numbers") \} $PAR +(a) Determine the three-phase bank power and voltage ratings. $BR +\(S_{rat} =\) \{ans_rule(10)\} \( kVA\). \{helpLink("numbers") \} $BR +\(V_{pri} =\)\{ans_rule(10)\} \( kV\). \{helpLink("numbers") \} $BR +\(V_{sec} =\)\{ans_rule(10)\} \( kV\). \{helpLink("numbers") \} $PAR (b) Sketch the per-phase equivalent circuit to the high-voltage side on a piece of paper and find the numerical values according to the labelling convention used in class $BR -\(R_{eq,pri} =\) \{ans_rule(10)\} \( \Omega \). \{AnswerFormatHelp("numbers") \} $BR -\(X_{eq,pri} =\)\{ans_rule(10)\} \(\Omega\). \{AnswerFormatHelp("numbers") \} $BR +\(R_{eq,pri} =\) \{ans_rule(10)\} \( \Omega \). \{helpLink("numbers") \} $BR +\(X_{eq,pri} =\)\{ans_rule(10)\} \(\Omega\). \{helpLink("numbers") \} $BR Make sure you can sketch the circuit in the exam $PAR (c) Sketch the per-phase equivalent circuit to the low-voltage side on a piece of paper and find the numerical values according to the labelling convention used in class $BR -\(R_{eq,sec} =\) \{ans_rule(10)\} \( \Omega \). \{AnswerFormatHelp("numbers") \} $BR -\(X_{eq,sec} =\)\{ans_rule(10)\} \(\Omega\). \{AnswerFormatHelp("numbers") \} $BR +\(R_{eq,sec} =\) \{ans_rule(10)\} \( \Omega \). \{helpLink("numbers") \} $BR +\(X_{eq,sec} =\)\{ans_rule(10)\} \(\Omega\). \{helpLink("numbers") \} $BR Make sure you can sketch the circuit in the exam $PAR (d) The transformer bank is delivering rated kVA, rated voltage, at a power factor of $pf lagging. $BR -\(|V_{in,line}| = \) \{ans_rule(10)\} \( kV \) \{AnswerFormatHelp("numbers") \} +\(|V_{in,line}| = \) \{ans_rule(10)\} \( kV \) \{helpLink("numbers") \} $PAR -(e) In the condition described in (d), the per-phase load impedance as seen from the high voltage side is \{ans_rule(10)\} \(\angle\) \{ans_rule(10)\} \( ^{\circ} \Omega \) \{AnswerFormatHelp("numbers") \} $PAR +(e) In the condition described in (d), the per-phase load impedance as seen from the high voltage side is \{ans_rule(10)\} \(\angle\) \{ans_rule(10)\} \( ^{\circ} \Omega \) \{helpLink("numbers") \} $PAR (f) The transformer bank efficiency in the condition described in (d) is : $BR -\(\eta = \) \{ans_rule(10)\} \( % \) \{AnswerFormatHelp("numbers") \} $PAR +\(\eta = \) \{ans_rule(10)\} \( % \) \{helpLink("numbers") \} $PAR (g) Determine the voltage regulation assuming a power factor of $pf lagging $BR -\(V.R. = \) \{ans_rule(10)\} \( %\) \{AnswerFormatHelp("numbers") \} $BR +\(V.R. = \) \{ans_rule(10)\} \( %\) \{helpLink("numbers") \} $BR $PAR -(h) Assume that the load is changed to a leading power factor with all other values unchanged, the load impedance as seem from the high voltage side is \{ans_rule(10)\} \(\angle\) \{ans_rule(10)\} \( ^{\circ} \Omega \) \{AnswerFormatHelp("numbers") \} $PAR +(h) Assume that the load is changed to a leading power factor with all other values unchanged, the load impedance as seem from the high voltage side is \{ans_rule(10)\} \(\angle\) \{ans_rule(10)\} \( ^{\circ} \Omega \) \{helpLink("numbers") \} $PAR (i) The transformer bank efficiency in the condition described in (h) is : $BR -\(\eta = \) \{ans_rule(10)\} \( % \) \{AnswerFormatHelp("numbers") \} $PAR +\(\eta = \) \{ans_rule(10)\} \( % \) \{helpLink("numbers") \} $PAR (j) Under the conditions in Part H above, what is the voltage regulation? $BR -\(V.R. = \) \{ans_rule(10)\} \( %\) \{AnswerFormatHelp("numbers") \} $PAR +\(V.R. = \) \{ans_rule(10)\} \( %\) \{helpLink("numbers") \} $PAR (k) What is the transformer bank impedance in per-unit? $BR -\(Z_{pu} =\)\{ans_rule(10)\} \(%\). \{AnswerFormatHelp("numbers") \} $PAR +\(Z_{pu} =\)\{ans_rule(10)\} \(%\). \{helpLink("numbers") \} $PAR Lastly compare the results between the two types of configurations. END_TEXT @@ -447,4 +447,4 @@ Part e) $BR END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/NCSU/Power/ECE305_HW6_P01_White.pg b/Pending/NCSU/Power/ECE305_HW6_P01_White.pg index b92ad845e4..2fe0d2cee9 100755 --- a/Pending/NCSU/Power/ECE305_HW6_P01_White.pg +++ b/Pending/NCSU/Power/ECE305_HW6_P01_White.pg @@ -31,7 +31,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -45,7 +45,7 @@ tolType => "absolute", ); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; #Initialize element values, to be changed for each question $R=random(0.2,0.8,0.1); @@ -78,14 +78,14 @@ A simple conductor with a resistance between the end points of \($R \Omega\) is \{image("ECE305_HW6_1_White_P1.png",height=>150, width=>300)\} $BR $PAR -a)\(F_{Lorentz}=\)\{ans_rule(10)\} \(N \) \{AnswerFormatHelp("numbers") \} $BR +a)\(F_{Lorentz}=\)\{ans_rule(10)\} \(N \) \{helpLink("numbers") \} $BR b)The direction of the Lorentz force is \{ $popupB ->menu() \} $BR -c)The Faraday emf is \{ans_rule(10)\} \(V \) \{AnswerFormatHelp("numbers") \} $BR -d)The direction of the Faraday emf is \{ $popupD ->menu() \} $BR +c)The Faraday emf is \{ans_rule(10)\} \(V \) \{helpLink("numbers") \} $BR +d)The direction of the Faraday emf is \{ $popupD ->menu() \} $BR e)This machine is a \{ $popupE ->menu() \} $BR -f) The electrical power involved in this process is \{ans_rule(10)\} \(W \) \{AnswerFormatHelp("numbers") \} $BR -g)This power is \{ $popupG ->menu() \} by the machine $BR -h)The mechanical power involved in this process is \{ans_rule(10)\} \(W \) \{AnswerFormatHelp("numbers") \} $BR +f) The electrical power involved in this process is \{ans_rule(10)\} \(W \) \{helpLink("numbers") \} $BR +g)This power is \{ $popupG ->menu() \} by the machine $BR +h)The mechanical power involved in this process is \{ans_rule(10)\} \(W \) \{helpLink("numbers") \} $BR i)The machine is \{ $popupI ->menu() \} the mechanical power $BR END_TEXT @@ -130,4 +130,4 @@ As a motor, the mechanical power is supplied by the machine. END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/NCSU/Power/ECE305_HW6_P02_White.pg b/Pending/NCSU/Power/ECE305_HW6_P02_White.pg index 6be8aceb26..d570eb9d7f 100755 --- a/Pending/NCSU/Power/ECE305_HW6_P02_White.pg +++ b/Pending/NCSU/Power/ECE305_HW6_P02_White.pg @@ -30,7 +30,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -41,7 +41,7 @@ Context("Complex"); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.5f#"; +Context()->{format}{number} = "%.5f#"; #Initialize element values, to be changed for each question $Vs=random(20,50,5); @@ -63,11 +63,11 @@ $PAR The voltage induced in conductor moving in a uniform magnetic field is $Vs Volts when the velocity of the conductor is $Vel cm/s. Calculate the induced EMF when:$BR A. The field flux is increased by 15 percent. $BR -\(EMF =\) \{ans_rule(10)\} \(V\) \{AnswerFormatHelp("numbers") \}$BR +\(EMF =\) \{ans_rule(10)\} \(V\) \{helpLink("numbers") \}$BR B. The velocity is reduced by 30 percent. $BR -\(EMF =\) \{ans_rule(10)\} \(V\) \{AnswerFormatHelp("numbers") \}$BR +\(EMF =\) \{ans_rule(10)\} \(V\) \{helpLink("numbers") \}$BR C. The velocity is increased by 20 percent and the flux is reduced by 10 percent. $BR -\(EMF =\) \{ans_rule(10)\} \(V\) \{AnswerFormatHelp("numbers") \}$BR +\(EMF =\) \{ans_rule(10)\} \(V\) \{helpLink("numbers") \}$BR $PAR END_TEXT @@ -100,4 +100,4 @@ Part a) $emfa V $BR Part b) $emfb V $BR Part c) $emfc V END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/NCSU/Power/ECE305_HW6_P03_White.pg b/Pending/NCSU/Power/ECE305_HW6_P03_White.pg index dcbf52d79b..d5e414a44b 100755 --- a/Pending/NCSU/Power/ECE305_HW6_P03_White.pg +++ b/Pending/NCSU/Power/ECE305_HW6_P03_White.pg @@ -30,7 +30,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -41,7 +41,7 @@ Context("Complex"); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.5f#"; +Context()->{format}{number} = "%.5f#"; #Initialize element values, to be changed for each question $Len=random(0.8,1.5,0.1); @@ -59,7 +59,7 @@ BEGIN_TEXT $PAR A single conductor $Len m long moves perpendicular to a uniform magnetic field of $Gau Gauss at a uniform velocity of $Vs m/s. What is the EMF inducted in the conductor? -\(EMF =\) \{ans_rule(10)\} \(V\) \{AnswerFormatHelp("numbers") \}$BR +\(EMF =\) \{ans_rule(10)\} \(V\) \{helpLink("numbers") \}$BR $PAR @@ -86,8 +86,8 @@ $BBOLD SOLUTION $EBOLD $PAR Gauss is the CGS units for flux density, in MKS it is Tesla, or \(1 Gauss= 10^{-4} Wb/m^2 (T) \). $BR Then \(emf=BLv=$Gau/10000 \cdot $Len \cdot $Vs=$emf V\) -$BR +$BR END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/NCSU/Power/ECE305_HW6_P05_White.pg b/Pending/NCSU/Power/ECE305_HW6_P05_White.pg index 3339b925f0..1319554a63 100755 --- a/Pending/NCSU/Power/ECE305_HW6_P05_White.pg +++ b/Pending/NCSU/Power/ECE305_HW6_P05_White.pg @@ -31,7 +31,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -45,7 +45,7 @@ tolType => "absolute", ); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; #Initialize element values, to be changed for each question $R=random(0.2,0.8,0.1); @@ -80,27 +80,27 @@ A horizontal copper bar slides up and down along two perfectly conducting, frict \{image("ECE305_HW6_5_White_P1.png",height=>200, width=>150)\} $BR $PAR -A uniform flux density \(B=$B Wb/m^2 \), is directed into the screen. The length, resistance, and weight of the bar are given as: \(L=$Len m, R=$R \Omega, W=mg=$W N \). $BR +A uniform flux density \(B=$B Wb/m^2 \), is directed into the screen. The length, resistance, and weight of the bar are given as: \(L=$Len m, R=$R \Omega, W=mg=$W N \). $BR Answer the following questions about this system: $BR a) If the bar is to move upward at a constant velocity of 10.0 m/s,$BR - \(V\)=\{ans_rule(10)\} \(V \) \{AnswerFormatHelp("numbers") \} $BR - \(I\)=\{ans_rule(10)\} \(A \) \{AnswerFormatHelp("numbers") \} $BR - + \(V\)=\{ans_rule(10)\} \(V \) \{helpLink("numbers") \} $BR + \(I\)=\{ans_rule(10)\} \(A \) \{helpLink("numbers") \} $BR + b) How much energy does the battery supply in moving the bar up 1.0 m, $BR - \(W\)=\{ans_rule(10)\} \(J \) \{AnswerFormatHelp("numbers") \} $BR + \(W\)=\{ans_rule(10)\} \(J \) \{helpLink("numbers") \} $BR c) The following is the power diagram showing all powers in the system. $BR \{image("ECE305_HW6_5_White_P2.png",height=>200, width=>400)\} $BR Calculate the quantities of all power terms in the diagram. $PAR - \(P_{IN}\)=\{ans_rule(10)\} \(W \) \{AnswerFormatHelp("numbers") \} $BR - \(P_{Cu}\)=\{ans_rule(10)\} \(W \) \{AnswerFormatHelp("numbers") \} $BR - \(P_{E}\)=\{ans_rule(10)\} \(W \) \{AnswerFormatHelp("numbers") \} $BR - \(P_{Core}\)=\{ans_rule(10)\} \(W \) \{AnswerFormatHelp("numbers") \} $BR - \(P_{M}\)=\{ans_rule(10)\} \(W \) \{AnswerFormatHelp("numbers") \} $BR - \(P_{F,WI}\)=\{ans_rule(10)\} \(W \) \{AnswerFormatHelp("numbers") \} $BR - \(P_{OUT}\)=\{ans_rule(10)\} \(W \) \{AnswerFormatHelp("numbers") \} $BR - + \(P_{IN}\)=\{ans_rule(10)\} \(W \) \{helpLink("numbers") \} $BR + \(P_{Cu}\)=\{ans_rule(10)\} \(W \) \{helpLink("numbers") \} $BR + \(P_{E}\)=\{ans_rule(10)\} \(W \) \{helpLink("numbers") \} $BR + \(P_{Core}\)=\{ans_rule(10)\} \(W \) \{helpLink("numbers") \} $BR + \(P_{M}\)=\{ans_rule(10)\} \(W \) \{helpLink("numbers") \} $BR + \(P_{F,WI}\)=\{ans_rule(10)\} \(W \) \{helpLink("numbers") \} $BR + \(P_{OUT}\)=\{ans_rule(10)\} \(W \) \{helpLink("numbers") \} $BR + @@ -168,4 +168,4 @@ By inspecting the power diagram, the student should be able to identify the mean END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/NCSU/Power/ECE305_HW6_P06_White.pg b/Pending/NCSU/Power/ECE305_HW6_P06_White.pg index 6fa6bcab18..367f4a4b13 100755 --- a/Pending/NCSU/Power/ECE305_HW6_P06_White.pg +++ b/Pending/NCSU/Power/ECE305_HW6_P06_White.pg @@ -30,7 +30,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -41,18 +41,18 @@ Context("Complex"); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.5f#"; +Context()->{format}{number} = "%.5f#"; #Initialize element values, to be changed for each question -$B=random(0.5,1.5,0.1); -$Ts=random(0.1,0.5,0.1); +$B=random(0.5,1.5,0.1); +$Ts=random(0.1,0.5,0.1); #calculation $ans=Real(0); BEGIN_TEXT -A single turn loop of wire is linked to a magnetic flux of $B \(Wb/m^2 [T]\). If the flux decays linearly to zero in $Ts ms determine the average EMF induced in the loop is \{ans_rule(10)\} V. \{AnswerFormatHelp("numbers") \}$BR +A single turn loop of wire is linked to a magnetic flux of $B \(Wb/m^2 [T]\). If the flux decays linearly to zero in $Ts ms determine the average EMF induced in the loop is \{ans_rule(10)\} V. \{helpLink("numbers") \}$BR END_TEXT @@ -78,8 +78,8 @@ $PAR \{image("ECE305_HW6_6_White_P1.png",height=>300, width=>300)\} $BR -$BR +$BR END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/NCSU/Power/ECE305_HW7_White_P1.pg b/Pending/NCSU/Power/ECE305_HW7_White_P1.pg index 267a5b7199..7943e6b72c 100755 --- a/Pending/NCSU/Power/ECE305_HW7_White_P1.pg +++ b/Pending/NCSU/Power/ECE305_HW7_White_P1.pg @@ -30,7 +30,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -44,7 +44,7 @@ tolType => "absolute", ); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; #Initialize element values, to be changed for each question $Freq1=60; @@ -104,4 +104,4 @@ c) $BR END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/NCSU/Power/ECE305_HW7_White_P2.pg b/Pending/NCSU/Power/ECE305_HW7_White_P2.pg index 48407f8191..ae2527867c 100755 --- a/Pending/NCSU/Power/ECE305_HW7_White_P2.pg +++ b/Pending/NCSU/Power/ECE305_HW7_White_P2.pg @@ -30,7 +30,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -44,7 +44,7 @@ tolType => "absolute", ); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; #Initialize element values, to be changed for each question $Freq1=60; @@ -59,7 +59,7 @@ $RPM=Real(120*$Freq1/$NP); BEGIN_TEXT -A synchronous generator with a rating of 988 kVA at 4160 Volts, $Freq1 Hz, delta connected, is +A synchronous generator with a rating of 988 kVA at 4160 Volts, $Freq1 Hz, delta connected, is driven by a small hydroelectric plant. The shaft speed of the generator is $RPM RPM. The generator has \{ans_rule(10)\} poles. END_TEXT @@ -86,4 +86,4 @@ $PAR END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/NCSU/Power/ECE305_HW7_White_P3.pg b/Pending/NCSU/Power/ECE305_HW7_White_P3.pg index c67de17990..c7a61f1865 100755 --- a/Pending/NCSU/Power/ECE305_HW7_White_P3.pg +++ b/Pending/NCSU/Power/ECE305_HW7_White_P3.pg @@ -30,7 +30,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -44,7 +44,7 @@ tolType => "absolute", ); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; #Initialize element values, to be changed for each question $Freq1=60; @@ -141,4 +141,4 @@ Note: Positive \(\delta\) is used as cos function obscures the sign, draw the p END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/NCSU/Power/ECE305_HW7_White_P4.pg b/Pending/NCSU/Power/ECE305_HW7_White_P4.pg index da405e8a5b..61539d8876 100755 --- a/Pending/NCSU/Power/ECE305_HW7_White_P4.pg +++ b/Pending/NCSU/Power/ECE305_HW7_White_P4.pg @@ -30,7 +30,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -44,7 +44,7 @@ tolType => "absolute", ); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; #Initialize element values, to be changed for each question $Fv=random(50,60,10); @@ -106,7 +106,7 @@ $grapha->lb(new Label($xVt/2,$yVt/2,"Vt",'blue','left','bottom')); $grapha->lb(new Label($xIL,$yIL,"A",'blue','left','bottom')); $grapha->lb(new Label($xEf/2,$yEf/2,"B",'blue','right','top')); $grapha->lb(new Label($xEf/2+$xVt/2,$yEf/2+$yVt/2,"C",'blue','right','bottom')); -$figa = image(insertGraph($grapha),width => 400,height => 250,tex_size => 200); +$figa = image(insertGraph($grapha),width => 400,height => 250,tex_size => 200); $popupia = PopUp(["?", "IL", "Ef","Neither"], "IL"); $popupib = PopUp(["?", "IL", "Ef", "Neither"], "Ef"); $popupic = PopUp(["?", "IL", "Ef", "Neither"], "Neither"); @@ -131,11 +131,11 @@ Vector \( C \) represents \{ $popupic ->menu() \} $BR And Vector C = \{ans_rule(10)\} \( \angle \) \{ans_rule(10)\} \( ^{ \circ } \) $PAR Note: The units should be in A or V in the answers. $PAR -B. If the mechanical loading in part 'A' is kept constant, and the rotor field excitation is changed, what is the minimum line current that can be draw? +B. If the mechanical loading in part 'A' is kept constant, and the rotor field excitation is changed, what is the minimum line current that can be draw? $BR - \( I_{a,min}= \) \{ans_rule(10)\} \( \angle \) \{ans_rule(10)\} \( ^{ \circ } A \) + \( I_{a,min}= \) \{ans_rule(10)\} \( \angle \) \{ans_rule(10)\} \( ^{ \circ } A \) $PAR -C. For the condition described in part 'B', \(I_{a,min}\) is in the direction of \{ $popupc ->menu() \} +C. For the condition described in part 'B', \(I_{a,min}\) is in the direction of \{ $popupc ->menu() \} END_TEXT Context()->normalStrings; @@ -189,7 +189,7 @@ Angle is \(\phi=-cos^{-1}($pf)=$phi^{\circ}\). Negative sign due to lagging $BR \(\tilde{I}_L=$modIL \angle $phi ^{\circ} A\) $BR Based on the energy flow of a motor, $BR \(-V_t \angle 0^{\circ}+\tilde{I}_L \cdot X_sj+ \tilde{E}_f=0\)$BR -\(E_f \angle \delta= V_t \angle 0^{\circ} - \tilde{I}_L \cdot X_s j=$Vtp \angle 0^{\circ}-$modIL \angle $phi ^{\circ} \cdot $Xs j=$modEf \angle $delta^{\circ} V\) +\(E_f \angle \delta= V_t \angle 0^{\circ} - \tilde{I}_L \cdot X_s j=$Vtp \angle 0^{\circ}-$modIL \angle $phi ^{\circ} \cdot $Xs j=$modEf \angle $delta^{\circ} V\) \(I_L \cdot X_s j=$modVC \angle $argVC^{\circ}\) @@ -209,4 +209,4 @@ This also indicates that \(\tilde{I}_{a,min} \) is in the direction of \(\tilde{ END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/NCSU/Power/ECE305_HW7_White_P5.pg b/Pending/NCSU/Power/ECE305_HW7_White_P5.pg index 1c574dd10d..87018bce45 100755 --- a/Pending/NCSU/Power/ECE305_HW7_White_P5.pg +++ b/Pending/NCSU/Power/ECE305_HW7_White_P5.pg @@ -30,7 +30,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", "niceTables.pl", ); @@ -45,7 +45,7 @@ tolType => "absolute", ); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; #Initialize element values, to be changed for each question $Fv=random(50,60,10); @@ -107,7 +107,7 @@ $grapha->lb(new Label($xVt/2,$yVt/2,"Vt",'blue','left','bottom')); $grapha->lb(new Label($xIL,$yIL,"A",'blue','left','bottom')); $grapha->lb(new Label($xEf/2,$yEf/2,"B",'blue','right','top')); $grapha->lb(new Label($xEf/2+$xVt/2,$yEf/2+$yVt/2,"C",'blue','right','bottom')); -$figa = image(insertGraph($grapha),width => 400,height => 250,tex_size => 200); +$figa = image(insertGraph($grapha),width => 400,height => 250,tex_size => 200); $popupia = PopUp(["?", "IL", "Ef","Neither"], "IL"); $popupib = PopUp(["?", "IL", "Ef", "Neither"], "Ef"); $popupic = PopUp(["?", "IL", "Ef", "Neither"], "Neither"); @@ -142,14 +142,14 @@ Note: The units should be in A or V in the answers. $PAR |Pie |- |Butter -|Ice cream +|Ice cream |} -B. If the mechanical loading in part 'A' is kept constant, and the rotor field excitation is changed, what is the minimum line current that can be draw? +B. If the mechanical loading in part 'A' is kept constant, and the rotor field excitation is changed, what is the minimum line current that can be draw? $BR - \( I_{a,min}= \) \{ans_rule(10)\} \( \angle \) \{ans_rule(10)\} \( ^{ \circ } A \) + \( I_{a,min}= \) \{ans_rule(10)\} \( \angle \) \{ans_rule(10)\} \( ^{ \circ } A \) $PAR -C. For the condition described in part 'B', \(I_{a,min}\) is in the direction of \{ $popupc ->menu() \} +C. For the condition described in part 'B', \(I_{a,min}\) is in the direction of \{ $popupc ->menu() \} END_TEXT Context()->normalStrings; @@ -203,7 +203,7 @@ Angle is \(\phi=-cos^{-1}($pf)=$phi^{\circ}\). Negative sign due to lagging $BR \(\tilde{I}_L=$modIL \angle $phi ^{\circ} A\) $BR Based on the energy flow of a motor, $BR \(-V_t \angle 0^{\circ}+\tilde{I}_L \cdot X_sj+ \tilde{E}_f=0\)$BR -\(E_f \angle \delta= V_t \angle 0^{\circ} - \tilde{I}_L \cdot X_s j=$Vtp \angle 0^{\circ}-$modIL \angle $phi ^{\circ} \cdot $Xs j=$modEf \angle $delta^{\circ} V\) +\(E_f \angle \delta= V_t \angle 0^{\circ} - \tilde{I}_L \cdot X_s j=$Vtp \angle 0^{\circ}-$modIL \angle $phi ^{\circ} \cdot $Xs j=$modEf \angle $delta^{\circ} V\) \(I_L \cdot X_s j=$modVC \angle $argVC^{\circ}\) @@ -223,4 +223,4 @@ This also indicates that \(\tilde{I}_{a,min} \) is in the direction of \(\tilde{ END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/NCSU/Power/ECE305_HW_01_Spr16_P01a.pg b/Pending/NCSU/Power/ECE305_HW_01_Spr16_P01a.pg index 1f4bc071ca..076162f4af 100755 --- a/Pending/NCSU/Power/ECE305_HW_01_Spr16_P01a.pg +++ b/Pending/NCSU/Power/ECE305_HW_01_Spr16_P01a.pg @@ -27,7 +27,7 @@ loadMacros( "PGgraphmacros.pl", "extraAnswerEvaluators.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", "PGcourse.pl" ); @@ -49,7 +49,7 @@ Context()->flags->set( ); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.5f#"; +Context()->{format}{number} = "%.5f#"; #Initialize element values, to be changed for each question $T1v=random(2400,7200,800);#uS $SL01v=random(0.1,1,0.1); @@ -82,7 +82,7 @@ $grapha->lb(new Label(0,0,"(0,0)",'black','left','top')); $grapha->lb(new Label(0,$Pt1v,"$Pt1v",'black','left','top')); $grapha->lb(new Label(0,$LLM,"$LLM",'black','left','bottom')); $grapha->lb(new Label(0.1*$T1v ,$ULM,"f(t)",'black','left','top')); -$figa = image(insertGraph($grapha),width => 400,height => 250,tex_size => 200); +$figa = image(insertGraph($grapha),width => 400,height => 250,tex_size => 200); $Aavg=Real($Pt1v/2); $Arms=Real($Pt1v/sqrt(3)); @@ -102,10 +102,10 @@ For the waveform shown below, compute the following. Note that there are no unit $PAR $figa $BR $PAR -Average = \{ans_rule(10)\} \{ AnswerFormatHelp("numbers") \} $BR -RMS = \{ans_rule(10)\} \{ AnswerFormatHelp("numbers") \} $BR -Period = \{ans_rule(10)\} \( ms \) \{ AnswerFormatHelp("numbers") \} $BR -Frequency = \{ans_rule(10)\} \( kHz \) \{ AnswerFormatHelp("numbers") \} $BR +Average = \{ans_rule(10)\} \{ helpLink("numbers") \} $BR +RMS = \{ans_rule(10)\} \{ helpLink("numbers") \} $BR +Period = \{ans_rule(10)\} \( ms \) \{ helpLink("numbers") \} $BR +Frequency = \{ans_rule(10)\} \( kHz \) \{ helpLink("numbers") \} $BR END_TEXT Context()->normalStrings; @@ -140,4 +140,4 @@ The RMS value is defined as $BR END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/Pending/NCSU/Power/ECE305_HW_01_Spr16_P01b.pg b/Pending/NCSU/Power/ECE305_HW_01_Spr16_P01b.pg index e34faecd3b..8e0d995976 100755 --- a/Pending/NCSU/Power/ECE305_HW_01_Spr16_P01b.pg +++ b/Pending/NCSU/Power/ECE305_HW_01_Spr16_P01b.pg @@ -27,7 +27,7 @@ loadMacros( "PGgraphmacros.pl", "extraAnswerEvaluators.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -48,7 +48,7 @@ Context()->flags->set( ); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.5f#"; +Context()->{format}{number} = "%.5f#"; #Initialize element values, to be changed for each question $T2v=random(2400,7200,800);#uS $SL02v=random(0.1,1,0.1); @@ -81,7 +81,7 @@ $graphb->lb(new Label(0,0,"(0,0)",'black','left','top')); $graphb->lb(new Label(0,$Pt2v,"$Pt2v",'black','left','top')); $graphb->lb(new Label(0,$LLM,"$LLM",'black','left','bottom')); $graphb->lb(new Label(0.1*$T2v ,$ULM,"f(t)",'black','left','top')); -$figb = image(insertGraph($graphb),width => 400,height => 250,tex_size => 200); +$figb = image(insertGraph($graphb),width => 400,height => 250,tex_size => 200); $Bavg=Real($Pt2v/2); @@ -108,10 +108,10 @@ For the waveform shown below, compute the following. Note that there are no unit $PAR $figb $BR $PAR -Average = \{ans_rule(10)\} \{ AnswerFormatHelp("numbers") \} $BR -RMS = \{ans_rule(10)\} \{ AnswerFormatHelp("numbers") \} $BR -Period = \{ans_rule(10)\} \( s \) \{ AnswerFormatHelp("numbers") \} $BR -Frequency = \{ans_rule(10)\} \( Hz \) \{ AnswerFormatHelp("numbers") \} $BR +Average = \{ans_rule(10)\} \{ helpLink("numbers") \} $BR +RMS = \{ans_rule(10)\} \{ helpLink("numbers") \} $BR +Period = \{ans_rule(10)\} \( s \) \{ helpLink("numbers") \} $BR +Frequency = \{ans_rule(10)\} \( Hz \) \{ helpLink("numbers") \} $BR @@ -155,4 +155,4 @@ The RMS value is defined as $BR END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/Pending/NCSU/Power/ECE305_HW_01_Spr16_P01c.pg b/Pending/NCSU/Power/ECE305_HW_01_Spr16_P01c.pg index e463df4be2..82b34c99e6 100755 --- a/Pending/NCSU/Power/ECE305_HW_01_Spr16_P01c.pg +++ b/Pending/NCSU/Power/ECE305_HW_01_Spr16_P01c.pg @@ -27,7 +27,7 @@ loadMacros( "PGgraphmacros.pl", "extraAnswerEvaluators.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -48,7 +48,7 @@ Context()->flags->set( ); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.5f#"; +Context()->{format}{number} = "%.5f#"; #Initialize element values, to be changed for each question $T3v=random(0.024,0.064,0.008);#S $Amp3v=random(50,200,10); @@ -77,7 +77,7 @@ $graphc->lb(new Label(0.1*$T3v ,$ULM,"f(t)",'black','left','top')); ($f3) = plot_functions( $graphc, $g3); $f3->steps(200); -$figc = image(insertGraph($graphc),width => 400,height => 250,tex_size => 200); +$figc = image(insertGraph($graphc),width => 400,height => 250,tex_size => 200); $Cavg=Real(-$Amp3v/pi/2*$T3hv*(cos(pi)-cos(0))/($T3v/4)); $Crms=Real($Amp3v/sqrt(2)); $Cperiod=Real($T3v/4);#mS @@ -94,10 +94,10 @@ For the waveform shown below, compute the following. Note that there are no unit $PAR $figc $BR $PAR -Average = \{ans_rule(10)\} \{ AnswerFormatHelp("numbers") \} $BR -RMS = \{ans_rule(10)\} \{ AnswerFormatHelp("numbers") \} $BR -Period = \{ans_rule(10)\} \( s \) \{ AnswerFormatHelp("numbers") \} $BR -Frequency = \{ans_rule(10)\} \( Hz \) \{ AnswerFormatHelp("numbers") \} $BR +Average = \{ans_rule(10)\} \{ helpLink("numbers") \} $BR +RMS = \{ans_rule(10)\} \{ helpLink("numbers") \} $BR +Period = \{ans_rule(10)\} \( s \) \{ helpLink("numbers") \} $BR +Frequency = \{ans_rule(10)\} \( Hz \) \{ helpLink("numbers") \} $BR END_TEXT Context()->normalStrings; @@ -136,4 +136,4 @@ The RMS value is defined as $BR END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/Pending/NCSU/Power/ECE305_HW_01_Spr16_P01d.pg b/Pending/NCSU/Power/ECE305_HW_01_Spr16_P01d.pg index d70db47c7f..939f727fd3 100755 --- a/Pending/NCSU/Power/ECE305_HW_01_Spr16_P01d.pg +++ b/Pending/NCSU/Power/ECE305_HW_01_Spr16_P01d.pg @@ -27,7 +27,7 @@ loadMacros( "PGgraphmacros.pl", "extraAnswerEvaluators.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -48,7 +48,7 @@ Context()->flags->set( ); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.5f#"; +Context()->{format}{number} = "%.5f#"; #Initialize element values, to be changed for each question $T4v=random(0.024,0.064,0.008);#S $Amp4v=random(50,200,10); @@ -82,7 +82,7 @@ $graphd->lb(new Label(0.1*$T4v ,$ULM,"f(t)",'black','left','top')); #($f42) = plot_functions( $graphd, $g42); $f4->steps(200); #$f42->steps(200); -$figd = image(insertGraph($graphd),width => 400,height => 250,tex_size => 200); +$figd = image(insertGraph($graphd),width => 400,height => 250,tex_size => 200); $Davg=Real(-$Amp4v/pi/2*$T4hv*(cos(pi)-cos(0))/($T4v/2)); $Drms=Real($Amp4v/2); $Dperiod=Real($T4v/2);#S @@ -100,10 +100,10 @@ For the waveform shown below, compute the following. Note that there are no unit $PAR $figd $BR $PAR -Average = \{ans_rule(10)\} \{ AnswerFormatHelp("numbers") \} $BR -RMS = \{ans_rule(10)\} \{ AnswerFormatHelp("numbers") \} $BR -Period = \{ans_rule(10)\} \( s \) \{ AnswerFormatHelp("numbers") \} $BR -Frequency = \{ans_rule(10)\} \( Hz \) \{ AnswerFormatHelp("numbers") \} $BR +Average = \{ans_rule(10)\} \{ helpLink("numbers") \} $BR +RMS = \{ans_rule(10)\} \{ helpLink("numbers") \} $BR +Period = \{ans_rule(10)\} \( s \) \{ helpLink("numbers") \} $BR +Frequency = \{ans_rule(10)\} \( Hz \) \{ helpLink("numbers") \} $BR END_TEXT @@ -142,4 +142,4 @@ The RMS value is defined as $BR END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/Pending/NCSU/Power/ECE305_HW_01_Spr16_P02.pg b/Pending/NCSU/Power/ECE305_HW_01_Spr16_P02.pg index 85bca5a21e..343d87a56d 100755 --- a/Pending/NCSU/Power/ECE305_HW_01_Spr16_P02.pg +++ b/Pending/NCSU/Power/ECE305_HW_01_Spr16_P02.pg @@ -23,7 +23,7 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl" @@ -36,10 +36,10 @@ Context()->flags->set( tolerance => 0.01, tolType => "absolute", ); -Context()->{format}{number} = "%.5f#"; -Context()->variables->are(t => "Real"), +Context()->{format}{number} = "%.5f#"; +Context()->variables->are(t => "Real"), -# note that we use v to indicate a value. Sometimes we may want to use +# note that we use v to indicate a value. Sometimes we may want to use # the non-v variable as a function or variable in a formula $Abs1av=random(1,30,1); $Arg1av=random(30,150,5); @@ -107,19 +107,19 @@ $PAR Convert the following values to rectangular format.$BR $PAR -\( $Abs1av \angle $Arg1av ^{ \circ } = \) \{ans_rule(10)\} \( + j \cdot ( \) \{ans_rule(10)\} \( ) \) \{ AnswerFormatHelp("numbers") \} $BR +\( $Abs1av \angle $Arg1av ^{ \circ } = \) \{ans_rule(10)\} \( + j \cdot ( \) \{ans_rule(10)\} \( ) \) \{ helpLink("numbers") \} $BR -\( ( $Rl1bv+j \cdot $Im1bv ) + $Abs2bv \angle $Arg2bv ^{ \circ } = \) \{ans_rule(10)\} \( + j \cdot ( \) \{ans_rule(10)\} \( ) \) \{ AnswerFormatHelp("numbers") \} $BR +\( ( $Rl1bv+j \cdot $Im1bv ) + $Abs2bv \angle $Arg2bv ^{ \circ } = \) \{ans_rule(10)\} \( + j \cdot ( \) \{ans_rule(10)\} \( ) \) \{ helpLink("numbers") \} $BR -\( $Abs1cv \angle $Arg1cv ^{ \circ } - $Abs2cv \angle $Arg2cv ^{ \circ } = \) \{ans_rule(10)\} \( + j \cdot ( \) \{ans_rule(10)\} \( ) \) \{ AnswerFormatHelp("numbers") \} $BR +\( $Abs1cv \angle $Arg1cv ^{ \circ } - $Abs2cv \angle $Arg2cv ^{ \circ } = \) \{ans_rule(10)\} \( + j \cdot ( \) \{ans_rule(10)\} \( ) \) \{ helpLink("numbers") \} $BR -\($Abs1dv \angle $Arg1dv ^{ \circ } + ( $Rl2dv+j \cdot $Im2dv ) = \) \{ans_rule(10)\} \( + j \cdot ( \) \{ans_rule(10)\} \( ) \) \{ AnswerFormatHelp("numbers") \} $BR +\($Abs1dv \angle $Arg1dv ^{ \circ } + ( $Rl2dv+j \cdot $Im2dv ) = \) \{ans_rule(10)\} \( + j \cdot ( \) \{ans_rule(10)\} \( ) \) \{ helpLink("numbers") \} $BR -\( $Abs1ev e^{j \cdot $Arg1evR} = \) \{ans_rule(10)\} \( + j \cdot ( \) \{ans_rule(10)\} \( ) \) \{ AnswerFormatHelp("numbers") \} $BR +\( $Abs1ev e^{j \cdot $Arg1evR} = \) \{ans_rule(10)\} \( + j \cdot ( \) \{ans_rule(10)\} \( ) \) \{ helpLink("numbers") \} $BR -\( \frac{$Abs1fv \angle $Arg1fv ^{ \circ } }{ ( $Rl2fv+j \cdot $Im2fv ) } = \) \{ans_rule(10)\} \( + j \cdot ( \) \{ans_rule(10)\} \( ) \) \{ AnswerFormatHelp("numbers") \} $BR +\( \frac{$Abs1fv \angle $Arg1fv ^{ \circ } }{ ( $Rl2fv+j \cdot $Im2fv ) } = \) \{ans_rule(10)\} \( + j \cdot ( \) \{ans_rule(10)\} \( ) \) \{ helpLink("numbers") \} $BR END_TEXT @@ -146,7 +146,7 @@ ANS( $Imfout-> cmp() ); # Solution Context()->texStrings; BEGIN_SOLUTION -$PAR +$PAR \( $Abs1av \angle $Arg1av ^{ \circ } = $Rlaout+j \cdot ($Imaout) \) $BR \( ( $Rl1bv+j \cdot $Im1bv ) + $Abs2bv \angle $Arg2bv ^{ \circ } = $Rlbout+j \cdot ($Imbout) \) $BR \( $Abs1cv \angle $Arg1cv ^{ \circ } - $Abs2cv \angle $Arg2cv ^{ \circ } = $Rlcout+j \cdot ($Imcout) \) $BR diff --git a/Pending/NCSU/Power/ECE305_HW_01_Spr16_P03_04a.pg b/Pending/NCSU/Power/ECE305_HW_01_Spr16_P03_04a.pg index 0fe5d76f95..f8b4b8bcab 100755 --- a/Pending/NCSU/Power/ECE305_HW_01_Spr16_P03_04a.pg +++ b/Pending/NCSU/Power/ECE305_HW_01_Spr16_P03_04a.pg @@ -29,7 +29,7 @@ loadMacros( "extraAnswerEvaluators.pl", "parserPopUp.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", "PGcourse.pl" ); @@ -46,7 +46,7 @@ tolType => "absolute", Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; #Initialize element values, to be changed for each question $Tv=random(0.01,0.03,0.02); @@ -101,7 +101,7 @@ $grapha->lb(new Label($Ampv/2,0,"Vector C",'blue','right','bottom')); $grapha->lb(new Label(($Vraxv+$Ampv)/2,$Vrayv/2,"Vector B",'blue','left','top')); $grapha->lb(new Label($Tav,0,"R",'black','right','bottom')); $grapha->lb(new Label(0.05*$Tav ,$ULMa,"i",'black','left','top')); -$figa = image(insertGraph($grapha),width => 400,height => 250,tex_size => 200); +$figa = image(insertGraph($grapha),width => 400,height => 250,tex_size => 200); $popupAa = PopUp(["?", "VL", "VR"], "VR"); $popupAb = PopUp(["?", "VL", "VR"], "VL"); $popupAc = PopUp(["?", "A", "B", "C", "None"], "A"); @@ -111,14 +111,14 @@ BEGIN_TEXT \{image("ECE305_hw1_spr16_3a.png",height=>150, width=>200)\} $BR $PAR \( R = $Rav \Omega, L = $Lav mH. \)$BR -\( i(t)= \) \{ans_rule(30)\} \( A \) \{AnswerFormatHelp("formula") \} $BR +\( i(t)= \) \{ans_rule(30)\} \( A \) \{helpLink("formula") \} $BR $PAR The plot below represents the voltage phasor diagram for the circuit with horizontal axis as the reference for voltage \( v(t) \).$BR $figa $BR $PAR Denote voltage across inductor \( \bar{V}_L \) as "VL" and voltage across resistor \( \bar{V}_R \) as "VR" etc.. Answer the following questions about the phasor diagram. $BR -Vector \( A \) represents \{ $popupAa ->menu() \} and equals to \{ans_rule(10)\} \( \angle \) \{ans_rule(10)\} \( ^{ \circ } V \). \{AnswerFormatHelp("numbers") \}$BR -Vector \( B \) represents \{ $popupAb ->menu() \} and equals to \{ans_rule(10)\} \( \angle \) \{ans_rule(10)\} \( ^{ \circ } V \). \{AnswerFormatHelp("numbers") \}$BR +Vector \( A \) represents \{ $popupAa ->menu() \} and equals to \{ans_rule(10)\} \( \angle \) \{ans_rule(10)\} \( ^{ \circ } V \). \{helpLink("numbers") \}$BR +Vector \( B \) represents \{ $popupAb ->menu() \} and equals to \{ans_rule(10)\} \( \angle \) \{ans_rule(10)\} \( ^{ \circ } V \). \{helpLink("numbers") \}$BR Current \( \bar{i} \) through the circuit is in the direction of vector \{ $popupAc ->menu() \}. $BR If \( \bar{i} \) is not in the direction of any of the vectors, select "None".$BR @@ -165,10 +165,10 @@ $PAR Vector A is \( \bar{V}_R \) $BR Vector B is \( \bar{V}_L \) $BR -The current vector \( \bar{i} \) is in the same direction as vector \( \bar{V}_R \) based on the phasor angle +The current vector \( \bar{i} \) is in the same direction as vector \( \bar{V}_R \) based on the phasor angle END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/Pending/NCSU/Power/ECE305_HW_01_Spr16_P03_04b.pg b/Pending/NCSU/Power/ECE305_HW_01_Spr16_P03_04b.pg index 6fddbb1f35..423ad7efb4 100755 --- a/Pending/NCSU/Power/ECE305_HW_01_Spr16_P03_04b.pg +++ b/Pending/NCSU/Power/ECE305_HW_01_Spr16_P03_04b.pg @@ -30,7 +30,7 @@ loadMacros( "extraAnswerEvaluators.pl", "parserPopUp.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", "PGcourse.pl" ); @@ -45,12 +45,12 @@ tolType => "absolute", ); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; #Initialize element values, to be changed for each question $Tv=random(0.01,0.05,0.02); $Ampv0=random(100,500,5); -$Rcbvabs=random(1,5,0.5); +$Rcbvabs=random(1,5,0.5); $Rcbv=-1*i*$Rcbvabs; #Ohm $Rbv=random(3,8,0.5); #Ohm @@ -100,7 +100,7 @@ $graphb->lb(new Label($Ampv/2,0,"Vector C",'blue','right','bottom')); $graphb->lb(new Label(($Vrbxv+$Ampv)/2,$Vrbyv/2,"Vector B",'blue','left','bottom')); $graphb->lb(new Label($Tbv,0,"R",'black','right','bottom')); $graphb->lb(new Label(0.05*$Tbv ,$ULMb,"i",'black','left','top')); -$figb = image(insertGraph($graphb),width => 400,height => 250,tex_size => 200); +$figb = image(insertGraph($graphb),width => 400,height => 250,tex_size => 200); $popupBa = PopUp(["?", "VC", "VR"], "VR"); $popupBb = PopUp(["?", "VC", "VR"], "VC"); $popupBc = PopUp(["?", "A", "B", "C", "None"], "A"); @@ -111,14 +111,14 @@ BEGIN_TEXT \{image("ECE305_hw1_spr16_3b.png",height=>150, width=>200)\} $BR $PAR \( R = $Rbv \Omega, R_c = -j \cdot $Rcbvabs \Omega. \)$BR -\( i(t)= \) \{ans_rule(30)\} \( A \) \{AnswerFormatHelp("formula") \} $BR +\( i(t)= \) \{ans_rule(30)\} \( A \) \{helpLink("formula") \} $BR $PAR The plot below represents the voltage phasor diagram for the circuit with horizontal axis as the reference for voltage \( v(t) \):$BR $figb $BR $PAR Denote the voltage across capacitor \( \bar{V}_C \) as "VC" and voltage across resistor \( \bar{V}_R \) as "VR" etc.. Answer following questions about the phasor diagram. $BR -Vector \( A \) represents \{ $popupBa ->menu() \} and equals to \{ans_rule(10)\} \( \angle \) \{ans_rule(10)\} \( ^{ \circ } V \). \{AnswerFormatHelp("numbers") \}$BR -Vector \( B \) represents \{ $popupBb ->menu() \} and equals to \{ans_rule(10)\} \( \angle \) \{ans_rule(10)\} \( ^{ \circ } V \). \{AnswerFormatHelp("numbers") \}$BR +Vector \( A \) represents \{ $popupBa ->menu() \} and equals to \{ans_rule(10)\} \( \angle \) \{ans_rule(10)\} \( ^{ \circ } V \). \{helpLink("numbers") \}$BR +Vector \( B \) represents \{ $popupBb ->menu() \} and equals to \{ans_rule(10)\} \( \angle \) \{ans_rule(10)\} \( ^{ \circ } V \). \{helpLink("numbers") \}$BR Current \( \bar{i} \) through the circuit is in the direction of vector \{ $popupBc->menu() \}. $BR Note: If \( \bar{i} \) is not in the direction of any of the vectors, select "None".$BR $PAR @@ -155,8 +155,8 @@ $PAR \( \bar{V}= R_C \cdot \bar{i} =$modvcbv \angle $argvcbdv^{ \circ } V \) $BR Vector A is \( \bar{V}_R \) $BR Vector B is \( \bar{V}_C \) $BR -The current vector \( \bar{i} \) is in the same direction as vector \( V_R \) based on the phasor angle +The current vector \( \bar{i} \) is in the same direction as vector \( V_R \) based on the phasor angle END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/Pending/NCSU/Power/ECE305_HW_01_Spr16_P03_04c.pg b/Pending/NCSU/Power/ECE305_HW_01_Spr16_P03_04c.pg index 1713a5a98a..3ace44ab06 100755 --- a/Pending/NCSU/Power/ECE305_HW_01_Spr16_P03_04c.pg +++ b/Pending/NCSU/Power/ECE305_HW_01_Spr16_P03_04c.pg @@ -30,7 +30,7 @@ loadMacros( "extraAnswerEvaluators.pl", "parserPopUp.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", "PGcourse.pl" ); @@ -45,7 +45,7 @@ tolType => "absolute", ); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; #Initialize element values, to be changed for each question $Tv=random(0.01,0.05,0.01); @@ -117,7 +117,7 @@ $graphc->lb(new Label($Ampv/2,0,"Vector C",'blue','right','bottom')); $graphc->lb(new Label(($Vrcxv+$Ampv)/2,$Vrcyv/2,"Vector B",'blue','left','bottom')); $graphc->lb(new Label($Tcv,0,"R",'black','right','bottom')); $graphc->lb(new Label(0.05*$Tcv ,$ULMc,"i",'black','left','top')); -$figc = image(insertGraph($graphc),width => 400,height => 250,tex_size => 200); +$figc = image(insertGraph($graphc),width => 400,height => 250,tex_size => 200); $popupCa = PopUp(["?", "VL", "VR", "VC"], "VR"); $popupCb = PopUp(["?", "VL", "VR", "VC"], "VC"); $popupCc = PopUp(["?", "VL", "VR", "VC"], "VL"); @@ -141,7 +141,7 @@ $popupCd = PopUp(["?", "A", "B", "C", "None"], "None"); #$graphc2->lb(new Label(($icxv)/2,($icyv)/2,"Vector C",'blue','left','top')); #$graphc2->lb(new Label($Tcv2,0,"R",'black','right','bottom')); #$graphc2->lb(new Label(0.05*$Tcv2 ,$ULMc2,"i",'black','left','top')); -#$figc2 = image(insertGraph($graphc2),width => 400,height => 250,tex_size => 200); +#$figc2 = image(insertGraph($graphc2),width => 400,height => 250,tex_size => 200); #$popupCa2 = PopUp(["?", "VL", "VR", "VC"], "VR"); #$popupCb2 = PopUp(["?", "VL", "VR", "VC"], "VC"); #$popupCc2 = PopUp(["?", "VL", "VR", "VC"], "VL"); @@ -154,7 +154,7 @@ BEGIN_TEXT \{image("ECE305_hw1_spr16_3c.png",height=>150, width=>200)\} $BR $PAR \( R = $Rcv \Omega, R_c = -j \cdot $Rccvabs \Omega, L = $Lcv mH. \)$BR -\( i(t)= \) \{ans_rule(30)\} \( A \) \{AnswerFormatHelp("formula") \} $BR +\( i(t)= \) \{ans_rule(30)\} \( A \) \{helpLink("formula") \} $BR $PAR The plot below represents the voltage phasor diagram for the circuit with horizontal axis as the reference for voltage \( v(t) \): $BR @@ -163,13 +163,13 @@ $PAR Denote the voltage across capacitor \( \bar{V}_C \) as "VC" and voltage across resistor \( \bar{V}_R \) as "VR" etc.. Answer following questions about the phasor diagram. $BR -Vector \( A \) represents \{ $popupCa ->menu() \} and equals to \{ans_rule(10)\} \( \angle \) \{ans_rule(10)\} \( ^{ \circ } V \). \{AnswerFormatHelp("numbers") \}$BR -Vector \( B \) represents \{ $popupCb ->menu() \} and equals to \{ans_rule(10)\} \( \angle \) \{ans_rule(10)\} \( ^{ \circ } V \). \{AnswerFormatHelp("numbers") \}$BR -Vector \( C \) represents \{ $popupCc ->menu() \} and equals to \{ans_rule(10)\} \( \angle \) \{ans_rule(10)\} \( ^{ \circ } V \). \{AnswerFormatHelp("numbers") \}$BR +Vector \( A \) represents \{ $popupCa ->menu() \} and equals to \{ans_rule(10)\} \( \angle \) \{ans_rule(10)\} \( ^{ \circ } V \). \{helpLink("numbers") \}$BR +Vector \( B \) represents \{ $popupCb ->menu() \} and equals to \{ans_rule(10)\} \( \angle \) \{ans_rule(10)\} \( ^{ \circ } V \). \{helpLink("numbers") \}$BR +Vector \( C \) represents \{ $popupCc ->menu() \} and equals to \{ans_rule(10)\} \( \angle \) \{ans_rule(10)\} \( ^{ \circ } V \). \{helpLink("numbers") \}$BR $PAR Determine the following currents in phasor form: $BR -\(\bar{ i }_{RC}= \) \{ans_rule(10)\} \( \angle \) \{ans_rule(10)\} \( ^{ \circ } A \). \{AnswerFormatHelp("numbers") \}$BR -\( \bar{ i}_{L}= \) \{ans_rule(10)\} \( \angle \) \{ans_rule(10)\} \( ^{ \circ } A \). \{AnswerFormatHelp("numbers") \}$BR +\(\bar{ i }_{RC}= \) \{ans_rule(10)\} \( \angle \) \{ans_rule(10)\} \( ^{ \circ } A \). \{helpLink("numbers") \}$BR +\( \bar{ i}_{L}= \) \{ans_rule(10)\} \( \angle \) \{ans_rule(10)\} \( ^{ \circ } A \). \{helpLink("numbers") \}$BR $PAR By considering the configuration of the circuit in general without taking into the account of numerical values , current \( \bar{i} \) through the whole circuit should be in the direction of vector \{ $popupCd ->menu() \}. $BR Note: If \( \bar{i} \) is not in the direction of any of the vectors, select "None".$BR @@ -221,9 +221,9 @@ Vector C is \( \bar{V}_L \) which is \( $modvcv \angle $argvcdv^{ \circ } V \) Current through the capacitor and the resistor \( \bar{i}_{RC} = $modirccv \angle $argirccdv^{ \circ } A \) $BR Current through the inductor \( \bar{i}_{L} = $modilcv \angle $argilcdv^{ \circ } A \) $BR $PAR -In general situation, the current vector \( \bar{i} \) is not in the direction of vector \( \bar{V}_R \), \( \bar{V}_{C} \) or \( \bar{V}_{L} \) as the current is the sum of two parallel circuits. $BR +In general situation, the current vector \( \bar{i} \) is not in the direction of vector \( \bar{V}_R \), \( \bar{V}_{C} \) or \( \bar{V}_{L} \) as the current is the sum of two parallel circuits. $BR END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/Pending/NCSU/Power/ECE305_HW_01_Spr16_P03_04d.pg b/Pending/NCSU/Power/ECE305_HW_01_Spr16_P03_04d.pg index dc1d46bc4d..d221859624 100755 --- a/Pending/NCSU/Power/ECE305_HW_01_Spr16_P03_04d.pg +++ b/Pending/NCSU/Power/ECE305_HW_01_Spr16_P03_04d.pg @@ -30,7 +30,7 @@ loadMacros( "extraAnswerEvaluators.pl", "parserPopUp.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", "PGcourse.pl" ); @@ -45,12 +45,12 @@ tolType => "absolute", ); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; #Initialize element values, to be changed for each question $Tv=random(0.01,0.05,0.01); $Ampv0=random(100,500,5); -$Rldvabs=random(10,15,0.5); +$Rldvabs=random(10,15,0.5); $Rldv=i*$Rldvabs; $Rcdvabs=random(2,5,0.5); $Rcdv=-1*i*$Rcdvabs; #Ohm @@ -139,7 +139,7 @@ $graphd->lb(new Label(($Pt2xv+$Pt3xv)/2,($Pt2yv+$Pt3yv)/2,"C",'blue','right','bo $graphd->lb(new Label(($Pt3xv+0)/2,($Pt3yv)/2,"D",'blue','right','bottom')); $graphd->lb(new Label($Tdmaxv ,0,"R",'black','right','bottom')); $graphd->lb(new Label(0 ,$ULMd,"i",'black','left','top')); -$figd = image(insertGraph($graphd),width => 400,height => 250,tex_size => 200); +$figd = image(insertGraph($graphd),width => 400,height => 250,tex_size => 200); $popupDa = PopUp(["?", "VL", "VR", "VC"], "VC"); $popupDb = PopUp(["?", "VL", "VR", "VC"], "VR"); $popupDc = PopUp(["?", "VL", "VR", "VC"], "VL"); @@ -153,16 +153,16 @@ BEGIN_TEXT \{image("ECE305_hw1_spr16_3d.png",height=>150, width=>200)\} $BR $PAR \( R = $Rdv \Omega, R_c = -j \cdot $Rcdvabs \Omega, R_L = j \cdot $Rldvabs \Omega. \)$BR -\( i(t)= \) \{ans_rule(30)\} \( A \) \{AnswerFormatHelp("formula") \} $BR -\( v_{in}(t)= \) \{ans_rule(30)\} \( V \) \{AnswerFormatHelp("formula") \} +\( i(t)= \) \{ans_rule(30)\} \( A \) \{helpLink("formula") \} $BR +\( v_{in}(t)= \) \{ans_rule(30)\} \( V \) \{helpLink("formula") \} $PAR The plot below represents the voltage phasor diagram for the circuit with the horizontal axis as the reference for \( \bar{V}_{in} \):$BR $figd $BR Denote the voltage across capacitor \( \bar{V}_C \) as "VC" and voltage across resistor \( \bar{V}_R \) as "VR" etc.. Answer following questions about the phasor diagram. $BR -Vector \( A \) represents \{ $popupDa ->menu() \} and equals to \{ans_rule(10)\} \( \angle \) \{ans_rule(10)\} \( ^{ \circ } V \). \{AnswerFormatHelp("numbers") \}$BR -Vector \( B \) represents \{ $popupDb ->menu() \} and equals to \{ans_rule(10)\} \( \angle \) \{ans_rule(10)\} \( ^{ \circ } V \). \{AnswerFormatHelp("numbers") \}$BR -Vector \( C \) represents \{ $popupDc ->menu() \} and equals to \{ans_rule(10)\} \( \angle \) \{ans_rule(10)\} \( ^{ \circ } V \). \{AnswerFormatHelp("numbers") \}$BR +Vector \( A \) represents \{ $popupDa ->menu() \} and equals to \{ans_rule(10)\} \( \angle \) \{ans_rule(10)\} \( ^{ \circ } V \). \{helpLink("numbers") \}$BR +Vector \( B \) represents \{ $popupDb ->menu() \} and equals to \{ans_rule(10)\} \( \angle \) \{ans_rule(10)\} \( ^{ \circ } V \). \{helpLink("numbers") \}$BR +Vector \( C \) represents \{ $popupDc ->menu() \} and equals to \{ans_rule(10)\} \( \angle \) \{ans_rule(10)\} \( ^{ \circ } V \). \{helpLink("numbers") \}$BR Current \( \bar{i} \) through the circuit is in the direction of vector \{ $popupDd ->menu() \}. $BR $PAR END_TEXT @@ -208,10 +208,10 @@ Vector A is \( \bar{V}_C \) $BR Vector B is \( \bar{V}_R \) $BR Vector C is \( \bar{V}_L \) $BR -The current vector \( \bar{i} \) is in the direction of vector \( \bar{V}_R \). $BR +The current vector \( \bar{i} \) is in the direction of vector \( \bar{V}_R \). $BR END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/Pending/NCSU/Power/ECE305_HW_01_Spr16_P05.pg b/Pending/NCSU/Power/ECE305_HW_01_Spr16_P05.pg index fda0264154..d4db58712e 100755 --- a/Pending/NCSU/Power/ECE305_HW_01_Spr16_P05.pg +++ b/Pending/NCSU/Power/ECE305_HW_01_Spr16_P05.pg @@ -30,7 +30,7 @@ loadMacros( "extraAnswerEvaluators.pl", "parserPopUp.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", "PGcourse.pl" ); @@ -45,7 +45,7 @@ tolType => "absolute", ); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.5f#"; +Context()->{format}{number} = "%.5f#"; #Initialize element values, to be changed for each question $Fv=random(50,60,10); @@ -140,7 +140,7 @@ $grapha->lb(new Label($isxv/2,$isyv/2,"C",'blue','right','top')); $grapha->lb(new Label(($i1xv+$isxv)/2,($i1yv+$isyv)/2,"B",'blue','right','bottom')); $grapha->lb(new Label($Tmax,0,"R",'black','right','bottom')); $grapha->lb(new Label(0 ,$ULMa,"i",'black','left','top')); -$figa = image(insertGraph($grapha),width => 400,height => 250,tex_size => 200); +$figa = image(insertGraph($grapha),width => 400,height => 250,tex_size => 200); $popupia = PopUp(["?", "is", "i1", "i2"], "i1"); $popupib = PopUp(["?", "is", "i1", "i2"], "i2"); $popupic = PopUp(["?", "is", "i1", "i2"], "is"); @@ -168,7 +168,7 @@ $graphb->lb(new Label($Vsxv/2,$Vsyv/2,"C",'blue','right','top')); $graphb->lb(new Label(($Vl2xv+$Vsxv)/2,($Vl2yv+$Vsyv)/2,"B",'blue','right','bottom')); $graphb->lb(new Label($Tmax,0,"R",'black','right','bottom')); $graphb->lb(new Label(0 ,$ULMb,"i",'black','left','top')); -$figb = image(insertGraph($graphb),width => 400,height => 250,tex_size => 200); +$figb = image(insertGraph($graphb),width => 400,height => 250,tex_size => 200); $popupv = PopUp(["?", "R-L1", "C-L2"], "C-L2"); BEGIN_TEXT @@ -196,9 +196,9 @@ $PAR The plot below represents the current phasor diagram: $BR $figa $BR $PAR -Vector \( A \) represents \{ $popupia ->menu() \} $BR +Vector \( A \) represents \{ $popupia ->menu() \} $BR Vector \( B \) represents \{ $popupib ->menu() \} $BR -Vector \( C \) represents \{ $popupic ->menu() \} $BR +Vector \( C \) represents \{ $popupic ->menu() \} $BR $PAR The plot below represents the voltage phasor diagram for the \{ $popupv ->menu() \} branch of the circuit $BR $figb $BR @@ -263,4 +263,4 @@ the phasor diagram corresponds to the L2-C circuit. END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/Pending/NCSU/Power/ECE305_HW_02_Sum16_P01_Boxuan.pg b/Pending/NCSU/Power/ECE305_HW_02_Sum16_P01_Boxuan.pg index 9a2376f829..f9e11c26fd 100755 --- a/Pending/NCSU/Power/ECE305_HW_02_Sum16_P01_Boxuan.pg +++ b/Pending/NCSU/Power/ECE305_HW_02_Sum16_P01_Boxuan.pg @@ -25,7 +25,7 @@ loadMacros("PG.pl", "PGauxiliaryFunctions.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -35,7 +35,7 @@ TEXT(beginproblem()); Context("Complex"); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.5f#"; +Context()->{format}{number} = "%.5f#"; #Initialize element values, to be changed for each question $zm=random(20,30,2); @@ -45,7 +45,7 @@ $Vab=208; ## Debugging purpose #$zm=24;$zd=30; $Rc=1; -## Answer will be 2.78 -28.9 4.82 -58.9 200.7 121.15 1453 1523.6614 +## Answer will be 2.78 -28.9 4.82 -58.9 200.7 121.15 1453 1523.6614 $van=$Vab/sqrt(3)*exp(-1*pi/6*i); @@ -61,7 +61,7 @@ $iabd = arg($iab)*180/pi; $vadn=$Z*$ia; -$vcdn = mod($vadn)*(cos(arg($vadn)+120/180*pi)+ i*sin(arg($vadn)+120/180*pi)); +$vcdn = mod($vadn)*(cos(arg($vadn)+120/180*pi)+ i*sin(arg($vadn)+120/180*pi)); $vdca = $vcdn-$vadn; $vdcam = mod($vdca); $vdcad = arg($vdca)*180/pi; @@ -77,9 +77,9 @@ A balanced three-phase delta-connected source is connected by a cable \{image("ECE305_HW2_p1.png",height=>150, width=>300)\} $BR Calculate the following phasor voltages and currents which are marked in the figure below, supplying both the magnitude and angle:$BR -\( I_{ab} = \) \{ans_rule(10)\} \( \angle \) \{ans_rule(10)\} \(^{ \circ } A \) \{AnswerFormatHelp("numbers") \} $BR -\( I_{a} = \) \{ans_rule(10)\} \( \angle \) \{ans_rule(10)\} \(^{ \circ } A \) \{AnswerFormatHelp("numbers") \} $BR -\( V_{c'a'} = \) \{ans_rule(10)\} \( \angle \) \{ans_rule(10)\} \(^{ \circ } V \) \{AnswerFormatHelp("numbers") \} $BR +\( I_{ab} = \) \{ans_rule(10)\} \( \angle \) \{ans_rule(10)\} \(^{ \circ } A \) \{helpLink("numbers") \} $BR +\( I_{a} = \) \{ans_rule(10)\} \( \angle \) \{ans_rule(10)\} \(^{ \circ } A \) \{helpLink("numbers") \} $BR +\( V_{c'a'} = \) \{ans_rule(10)\} \( \angle \) \{ans_rule(10)\} \(^{ \circ } V \) \{helpLink("numbers") \} $BR Also determine the following: $BR Total three-phase real power consumed by the delta-connected load. $BR \(P_{load} = \) \{ans_rule(10)\} kW $BR @@ -131,9 +131,9 @@ The per-phase equivalent circuit:$BR \(\bar{V}_{a'n} = Z*\bar{I}_{a}= $vadnm \angle $vadnd^{\circ} \) V $BR \(\bar{V}_{c'n} = $vcdnm \angle $vcdnd^{\circ}\) V $BR \(\bar{V}_{c'a'} = \bar{V}_{c'n}\sqrt{3}exp(j\frac{\pi}{6}) = $vdcam \angle $vdcad^{\circ}\) V $BR -\(P_{load} = real(3\bar{V}_{a'n} \bar{I}_{a}^*) = $pl\) kW $BR -\(P_{source} = real(3\bar{V}_{an} \bar{I}_{a}^*) = $ps\) kW $BR +\(P_{load} = real(3\bar{V}_{a'n} \bar{I}_{a}^*) = $pl\) kW $BR +\(P_{source} = real(3\bar{V}_{an} \bar{I}_{a}^*) = $ps\) kW $BR END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/NCSU/Power/ECE305_HW_02_Sum16_P02_Boxuan.pg b/Pending/NCSU/Power/ECE305_HW_02_Sum16_P02_Boxuan.pg index 2aafb86dd9..55be0582d8 100755 --- a/Pending/NCSU/Power/ECE305_HW_02_Sum16_P02_Boxuan.pg +++ b/Pending/NCSU/Power/ECE305_HW_02_Sum16_P02_Boxuan.pg @@ -25,7 +25,7 @@ loadMacros("PG.pl", "PGauxiliaryFunctions.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -35,7 +35,7 @@ TEXT(beginproblem()); Context("Complex"); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.5f#"; +Context()->{format}{number} = "%.5f#"; #Initialize element values, to be changed for each question $ia=Real(random(8,20,2)); @@ -74,21 +74,21 @@ Suppose that you are taking measurements at an industrial site using a three-pha \{image("ECE305_HW2_p2.png",height=>150, width=>300)\} $BR a)Initially Switch A is closed and Switch B and C are opened. If the analyzer measures 208 V, $ia A and $pa W, then determine the power factor for motor A. $BR -\( power factor = \) \{ans_rule(10)\} \{AnswerFormatHelp("numbers") \} $BR +\( power factor = \) \{ans_rule(10)\} \{helpLink("numbers") \} $BR b)Next, Switch A is opened and Switch B is closed. If the analyzer measures 208 V, $ib A and $pb W, then determine the three-phase reactive power used by motor B. $BR -\(Q_B = \) \{ans_rule(10)\} VAr \{AnswerFormatHelp("numbers") \} $BR +\(Q_B = \) \{ans_rule(10)\} VAr \{helpLink("numbers") \} $BR c)Now both Switch A and Switch B are closed (with Switch C opened), if the line voltage is still 208 V, then what should the total line current and the apparent power as measured by the analyzer set-up be? $BR -Apparent power \(S_{source} = \) \{ans_rule(10)\} VA \{AnswerFormatHelp("numbers") \} $BR -Total line current \(I_L = \) \{ans_rule(10)\} A \{AnswerFormatHelp("numbers") \} $BR +Apparent power \(S_{source} = \) \{ans_rule(10)\} VA \{helpLink("numbers") \} $BR +Total line current \(I_L = \) \{ans_rule(10)\} A \{helpLink("numbers") \} $BR d)Finally Switch C is closed, adding the $var VAR capacitor bank to the circuit. If the line voltage is still 208 V, then what should the total line current and the apparent power as measured by the analyzer set-up be?$BR -Apparent power \(S_{source} = \) \{ans_rule(10)\} VA \{AnswerFormatHelp("numbers") \} $BR -Total line current \(I_L = \) \{ans_rule(10)\} A \{AnswerFormatHelp("numbers") \} $BR +Apparent power \(S_{source} = \) \{ans_rule(10)\} VA \{helpLink("numbers") \} $BR +Total line current \(I_L = \) \{ans_rule(10)\} A \{helpLink("numbers") \} $BR e)What is the capacitance of each of the three identical Y-connected capacitors?$BR -\(C = \) \{ans_rule(10)\} \(\mu F\) \{AnswerFormatHelp("numbers") \} $BR +\(C = \) \{ans_rule(10)\} \(\mu F\) \{helpLink("numbers") \} $BR $PAR END_TEXT @@ -146,4 +146,4 @@ So \(C = $C \mu F\)$BR END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/NCSU/Power/ECE305_HW_02_Sum16_P03_YZHOU26.pg b/Pending/NCSU/Power/ECE305_HW_02_Sum16_P03_YZHOU26.pg index eff71150c1..848869b835 100755 --- a/Pending/NCSU/Power/ECE305_HW_02_Sum16_P03_YZHOU26.pg +++ b/Pending/NCSU/Power/ECE305_HW_02_Sum16_P03_YZHOU26.pg @@ -29,7 +29,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -39,7 +39,7 @@ TEXT(beginproblem()); Context("Complex"); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.5f#"; +Context()->{format}{number} = "%.5f#"; #Initialize element values, to be changed for each question $Fv=random(50,60,10); @@ -115,36 +115,36 @@ $BBOLD a). $EBOLD The following is the per-phase equivalent circuit for this problem. Determine the equivalent \( \tilde{V}_{sp} \). Further assume the motor can be modelled by a constant series impedance, determine the equivalent impedance for the feeder cable and the motor. $BR \{image("ECE305_hw2_1a.png",height=>150, width=>250)\} $BR -\( \tilde{V}_{sp} = \) \{ans_rule(10)\} \(\angle 0 ^{\circ} V_{rms} \) \{AnswerFormatHelp("numbers") \} $BR +\( \tilde{V}_{sp} = \) \{ans_rule(10)\} \(\angle 0 ^{\circ} V_{rms} \) \{helpLink("numbers") \} $BR Note: For convenience, the phase angle for \( \tilde{V}_{sp} \) is set as the reference. $PAR -\( R_{feeder} = \) \{ans_rule(10)\} \( \Omega \) \{AnswerFormatHelp("numbers") \} $BR -\( R_{motor} = \) \{ans_rule(10)\} \( \Omega \) \{AnswerFormatHelp("numbers") \} $BR -\( L_{feeder} = \) \{ans_rule(10)\} \( mH \) \{AnswerFormatHelp("numbers") \} $BR -\( L_{motor} = \) \{ans_rule(10)\} \( mH \) \{AnswerFormatHelp("numbers") \} $BR +\( R_{feeder} = \) \{ans_rule(10)\} \( \Omega \) \{helpLink("numbers") \} $BR +\( R_{motor} = \) \{ans_rule(10)\} \( \Omega \) \{helpLink("numbers") \} $BR +\( L_{feeder} = \) \{ans_rule(10)\} \( mH \) \{helpLink("numbers") \} $BR +\( L_{motor} = \) \{ans_rule(10)\} \( mH \) \{helpLink("numbers") \} $BR $PAR $BBOLD b). $EBOLD Calculate the motor load line voltage and line current. $BR -\( \tilde{I}_{feeder} = \) \{ans_rule(10)\} \(\angle\) \{ans_rule(10)\} \(^{\circ} A \) \{AnswerFormatHelp("numbers") \}$BR -\( \tilde{V}_{load,motor} = \) \{ans_rule(10)\} \(\angle\) \{ans_rule(10)\} \(^{\circ} V_{rms} \) \{AnswerFormatHelp("numbers") \} $BR +\( \tilde{I}_{feeder} = \) \{ans_rule(10)\} \(\angle\) \{ans_rule(10)\} \(^{\circ} A \) \{helpLink("numbers") \}$BR +\( \tilde{V}_{load,motor} = \) \{ans_rule(10)\} \(\angle\) \{ans_rule(10)\} \(^{\circ} V_{rms} \) \{helpLink("numbers") \} $BR $PAR $BBOLD c). $EBOLD Calculate the apparent power (VA) supplied by the voltage source and the feeder line loss.$BR -\( S_{source} = \) \{ans_rule(10)\} \( kVA \) \{AnswerFormatHelp("numbers") \} $BR -\( P_{loss,feeder} = \) \{ans_rule(10)\} \( kW \) \{AnswerFormatHelp("numbers") \} $BR +\( S_{source} = \) \{ans_rule(10)\} \( kVA \) \{helpLink("numbers") \} $BR +\( P_{loss,feeder} = \) \{ans_rule(10)\} \( kW \) \{helpLink("numbers") \} $BR $PAR $BBOLD d). $EBOLD A shunt capacitor is introduced at the load to correct the load power factor to $pfmv2 lagging power factor. Determine the size of the capacitor and reactive power (kVAR) at the shunt capacitor. $BR -\( Q_{shunt} = \) \{ans_rule(10)\} \( kVAR \) \{AnswerFormatHelp("numbers") \} $BR -\( C_{shunt} = \) \{ans_rule(10)\} \( uF \) \{AnswerFormatHelp("numbers") \} $BR +\( Q_{shunt} = \) \{ans_rule(10)\} \( kVAR \) \{helpLink("numbers") \} $BR +\( C_{shunt} = \) \{ans_rule(10)\} \( uF \) \{helpLink("numbers") \} $BR $PAR $BBOLD e). $EBOLD Now considering the feeder system, re-compute the motor load line voltage, source apparent power (VA) and the line loss (W) with the shunt capacitor added in parallel to the load. $BR -\( \tilde{V}_{load,motor} = \) \{ans_rule(10)\} \(\angle\) \{ans_rule(10)\} \(^{\circ} V_{rms} \) \{AnswerFormatHelp("numbers") \} $BR -\( S_{source} = \) \{ans_rule(10)\} \( kVA \) \{AnswerFormatHelp("numbers") \} $BR -\( P_{loss,feeder} = \) \{ans_rule(10)\} \( kW \) \{AnswerFormatHelp("numbers") \} $BR +\( \tilde{V}_{load,motor} = \) \{ans_rule(10)\} \(\angle\) \{ans_rule(10)\} \(^{\circ} V_{rms} \) \{helpLink("numbers") \} $BR +\( S_{source} = \) \{ans_rule(10)\} \( kVA \) \{helpLink("numbers") \} $BR +\( P_{loss,feeder} = \) \{ans_rule(10)\} \( kW \) \{helpLink("numbers") \} $BR @@ -258,4 +258,4 @@ Part e). $BR END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/NCSU/Power/ECE305_HW_03_Fall16_P01_YZHOU26.pg b/Pending/NCSU/Power/ECE305_HW_03_Fall16_P01_YZHOU26.pg index 224130f019..48651dc6fa 100755 --- a/Pending/NCSU/Power/ECE305_HW_03_Fall16_P01_YZHOU26.pg +++ b/Pending/NCSU/Power/ECE305_HW_03_Fall16_P01_YZHOU26.pg @@ -28,7 +28,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -38,10 +38,10 @@ TEXT(beginproblem()); Context("Complex"); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.5f#"; +Context()->{format}{number} = "%.5f#"; #Initialize element values, to be changed for each question -$N=random(500,1500,100); +$N=random(500,1500,100); $g=random(0.5,2,0.1); #cm $Ac=random(1000,3000,100);#cm^2 $lc=random(30,50,5);#cm @@ -71,13 +71,13 @@ The magnetic structure of a synchronous machine is shown in the figure. If the a \( N=$N turns, g=$g cm, A_c=$Ac cm^2, l_c=$lc cm, l_{c1}=$lc1 cm \).$PAR a) Find the current. $BR -\(i =\) \{ans_rule(10)\} \( A\). \{AnswerFormatHelp("numbers") \}$PAR +\(i =\) \{ans_rule(10)\} \( A\). \{helpLink("numbers") \}$PAR b) What is the coil inductance. $BR -\(L =\) \{ans_rule(10)\} \( H\). \{AnswerFormatHelp("numbers") \}$PAR +\(L =\) \{ans_rule(10)\} \( H\). \{helpLink("numbers") \}$PAR c) What is the energy stored in the field. $BR -\( W_f=\) \{ans_rule(10)\} \( J\). \{AnswerFormatHelp("numbers") \}$PAR +\( W_f=\) \{ans_rule(10)\} \( J\). \{helpLink("numbers") \}$PAR $PAR @@ -124,4 +124,4 @@ As the core permeability is infinity, \(R_1=R_2=R_3=0\) in the top circuit diagr END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/NCSU/Power/ECE305_HW_03_Fall16_P02_Bzhong2.pg b/Pending/NCSU/Power/ECE305_HW_03_Fall16_P02_Bzhong2.pg index 23a397e096..e08341c02b 100755 --- a/Pending/NCSU/Power/ECE305_HW_03_Fall16_P02_Bzhong2.pg +++ b/Pending/NCSU/Power/ECE305_HW_03_Fall16_P02_Bzhong2.pg @@ -28,7 +28,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -39,13 +39,13 @@ Context("Complex"); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.5f#"; +Context()->{format}{number} = "%.5f#"; #Initialize element values, to be changed for each question $ac=random(2,4,0.1); $lc=random(10,30,5); $N=random(50,100,5); -$mu=random(1000,3500,100); +$mu=random(1000,3500,100); $h=random(4,8,0.5); #mH ## Debugging Code Parameters From Textbook @@ -62,7 +62,7 @@ $PAR $PAR An inductor of the form shown in the figure below has dimensions: Cross-sectional area \(A_c = $ac cm^2\), Mean core length \(l_c = $lc cm, N = $N\) turns. Assuming a core permeability of \(\mu= $mu \mu_0\) and neglecting the effects of leakage flux and fringing fields, calculate the air-gap length required to achieve an inductance of $h mH. -The air-gap length \(g =\) \{ans_rule(10)\} mm. \{AnswerFormatHelp("numbers") \}$BR +The air-gap length \(g =\) \{ans_rule(10)\} mm. \{helpLink("numbers") \}$BR $PAR @@ -87,9 +87,9 @@ BEGIN_SOLUTION; $PAR $BBOLD SOLUTION $EBOLD $PAR -\(L = \frac{\lambda}{I} = \frac{N*\phi}{I} = \frac{N*\mathcal{F}}{I(R_c + R_g)} = \frac{\mu_0 A_c N^2}{g+\frac{l_c}{\mu_r}}\) $BR -So air-gap length \(g = \frac{\mu_0 A_c N^2}{L} - \frac{l_c}{\mu_r} = $g mm\)$BR +\(L = \frac{\lambda}{I} = \frac{N*\phi}{I} = \frac{N*\mathcal{F}}{I(R_c + R_g)} = \frac{\mu_0 A_c N^2}{g+\frac{l_c}{\mu_r}}\) $BR +So air-gap length \(g = \frac{\mu_0 A_c N^2}{L} - \frac{l_c}{\mu_r} = $g mm\)$BR END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/NCSU/Power/ECE305_HW_03_Fall16_P03_Bzhong2.pg b/Pending/NCSU/Power/ECE305_HW_03_Fall16_P03_Bzhong2.pg index 0f232d8135..f31d827a0a 100755 --- a/Pending/NCSU/Power/ECE305_HW_03_Fall16_P03_Bzhong2.pg +++ b/Pending/NCSU/Power/ECE305_HW_03_Fall16_P03_Bzhong2.pg @@ -24,7 +24,7 @@ loadMacros("PG.pl", "PGauxiliaryFunctions.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + ); TEXT(beginproblem()); @@ -70,39 +70,39 @@ The magnetic circuit in the figure below has two windings and two air gaps. The \(\mu_0 = 4 \cdot \pi \cdot 10^{-7}\) $BR a) Assuming coil 1 to be carrying a current I1 and the current in coil 2 to be zero, calculate $BR (i) The magnetic flux density in each of the air gaps : $BR -\(B_{g1} = \) \{ans_rule(10)\} \{AnswerFormatHelp("numbers") \}$BR -\(B_{g2} = \) \{ans_rule(10)\} \{AnswerFormatHelp("numbers") \}$BR +\(B_{g1} = \) \{ans_rule(10)\} \{helpLink("numbers") \}$BR +\(B_{g2} = \) \{ans_rule(10)\} \{helpLink("numbers") \}$BR (ii) The flux linkage of winding l $BR -\(\lambda_1 = \) \{ans_rule(10)\} \{AnswerFormatHelp("numbers") \}$BR +\(\lambda_1 = \) \{ans_rule(10)\} \{helpLink("numbers") \}$BR (iii)The flux linkage of winding 2$BR -\(\lambda_2 = \) \{ans_rule(10)\} \{AnswerFormatHelp("numbers") \}$BR +\(\lambda_2 = \) \{ans_rule(10)\} \{helpLink("numbers") \}$BR $PAR b) Assuming zero current in winding 1 and a current I2 in winding 2, calculate $BR (i) The magnetic flux density in each of the air gaps : $BR -\(B_{g1} = \) \{ans_rule(10)\} \{AnswerFormatHelp("numbers") \}$BR -\(B_{g2} = \) \{ans_rule(10)\} \{AnswerFormatHelp("numbers") \}$BR +\(B_{g1} = \) \{ans_rule(10)\} \{helpLink("numbers") \}$BR +\(B_{g2} = \) \{ans_rule(10)\} \{helpLink("numbers") \}$BR (ii) The flux linkage of winding l $BR -\(\lambda_1 = \) \{ans_rule(10)\} \{AnswerFormatHelp("numbers") \}$BR +\(\lambda_1 = \) \{ans_rule(10)\} \{helpLink("numbers") \}$BR (iii)The flux linkage of winding 2$BR -\(\lambda_2 = \) \{ans_rule(10)\} \{AnswerFormatHelp("numbers") \}$BR +\(\lambda_2 = \) \{ans_rule(10)\} \{helpLink("numbers") \}$BR $PAR c)Assuming the current in winding 1 to be I1 and the current in winding 2 to be I2, calculate $BR (i) The magnetic flux density in each of the air gaps : $BR -\(B_{g1} = \) \{ans_rule(10)\} \{AnswerFormatHelp("numbers") \}$BR -\(B_{g2} = \) \{ans_rule(10)\} \{AnswerFormatHelp("numbers") \}$BR +\(B_{g1} = \) \{ans_rule(10)\} \{helpLink("numbers") \}$BR +\(B_{g2} = \) \{ans_rule(10)\} \{helpLink("numbers") \}$BR (ii) The flux linkage of winding l $BR -\(\lambda_1 = \) \{ans_rule(10)\} \{AnswerFormatHelp("numbers") \}$BR +\(\lambda_1 = \) \{ans_rule(10)\} \{helpLink("numbers") \}$BR (iii)The flux linkage of winding 2$BR -\(\lambda_2 = \) \{ans_rule(10)\} \{AnswerFormatHelp("numbers") \}$BR +\(\lambda_2 = \) \{ans_rule(10)\} \{helpLink("numbers") \}$BR $PAR -d)Find the self-inductances of windings 1 and 2 and the mutual inductance between the windings. $BR -\(L_{11} = \) \{ans_rule(10)\} H \{AnswerFormatHelp("numbers") \}$BR -\(L_{22} = \) \{ans_rule(10)\} H \{AnswerFormatHelp("numbers") \}$BR -\(L_{12} = \) \{ans_rule(10)\} H \{AnswerFormatHelp("numbers") \}$BR -\(L_{21} = \) \{ans_rule(10)\} H \{AnswerFormatHelp("numbers") \}$BR +d)Find the self-inductances of windings 1 and 2 and the mutual inductance between the windings. $BR +\(L_{11} = \) \{ans_rule(10)\} H \{helpLink("numbers") \}$BR +\(L_{22} = \) \{ans_rule(10)\} H \{helpLink("numbers") \}$BR +\(L_{12} = \) \{ans_rule(10)\} H \{helpLink("numbers") \}$BR +\(L_{21} = \) \{ans_rule(10)\} H \{helpLink("numbers") \}$BR END_TEXT Context()->normalStrings; @@ -157,39 +157,39 @@ $PAR $BBOLD SOLUTION $EBOLD a) Assuming coil 1 to be carrying a current I1 and the current in coil 2 to be zero, calculate $BR (i) The magnetic flux density in each of the air gaps : $BR -\(B_{g1} = \) $bg1a $BR -\(B_{g2} = \) $bg2a $BR +\(B_{g1} = \) $bg1a $BR +\(B_{g2} = \) $bg2a $BR (ii) The flux linkage of winding l $BR -\(\lambda_1 = \) $lambda1a $BR +\(\lambda_1 = \) $lambda1a $BR (iii)The flux linkage of winding 2$BR -\(\lambda_2 = \) $lambda2a $BR +\(\lambda_2 = \) $lambda2a $BR $PAR b) Assuming zero current in winding 1 and a current I2 in winding 2, calculate $BR (i) The magnetic flux density in each of the air gaps : $BR -\(B_{g1} = \) $bg1b $BR -\(B_{g2} = \) $bg2b $BR +\(B_{g1} = \) $bg1b $BR +\(B_{g2} = \) $bg2b $BR (ii) The flux linkage of winding l $BR -\(\lambda_1 = \) $lambda1b $BR +\(\lambda_1 = \) $lambda1b $BR (iii)The flux linkage of winding 2$BR -\(\lambda_2 = \) $lambda2b $BR +\(\lambda_2 = \) $lambda2b $BR $PAR c)Assuming the current in winding 1 to be I1 and the current in winding 2 to be I2, calculate $BR (i) The magnetic flux density in each of the air gaps : $BR -\(B_{g1} = \) $bg1c $BR -\(B_{g2} = \) $bg2c $BR +\(B_{g1} = \) $bg1c $BR +\(B_{g2} = \) $bg2c $BR (ii) The flux linkage of winding l $BR -\(\lambda_1 = \) $lambda1c $BR +\(\lambda_1 = \) $lambda1c $BR (iii)The flux linkage of winding 2$BR -\(\lambda_2 = \) $lambda2c $BR +\(\lambda_2 = \) $lambda2c $BR $PAR -d)Find the self-inductances of windings 1 and 2 and the mutual inductance between the windings. $BR -\(L_{11} = \) $L11 H $BR -\(L_{22} = \) $L22 H $BR -\(L_{12} = \) $L12 H $BR -\(L_{21} = \) $L12 H $BR +d)Find the self-inductances of windings 1 and 2 and the mutual inductance between the windings. $BR +\(L_{11} = \) $L11 H $BR +\(L_{22} = \) $L22 H $BR +\(L_{12} = \) $L12 H $BR +\(L_{21} = \) $L12 H $BR END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/NCSU/Power/ECE305_HW_04_Fall16_P01.pg b/Pending/NCSU/Power/ECE305_HW_04_Fall16_P01.pg index 0ae0596e7c..20af2f7fc2 100755 --- a/Pending/NCSU/Power/ECE305_HW_04_Fall16_P01.pg +++ b/Pending/NCSU/Power/ECE305_HW_04_Fall16_P01.pg @@ -30,7 +30,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -40,11 +40,11 @@ TEXT(beginproblem()); Context("Complex"); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.5f#"; +Context()->{format}{number} = "%.5f#"; #Initialize element values, to be changed for each question -$Pva =random(5,15,1); #kVA -$Vpr=1000; +$Pva =random(5,15,1); #kVA +$Vpr=1000; $Vsec=500; $Freq=60; $R1=random(1.5,3,0.1); @@ -106,7 +106,7 @@ $grapha->arrowTo($i1x,$i1y,"blue",1); $grapha->lb('reset'); $grapha->lb(new Label($i1x,$i1y,"Vector A",'blue','left','top')); $grapha->lb(new Label($i2x,$i2y,"Vector B",'blue','right','bottom')); -$figa = image(insertGraph($grapha),width => 400,height => 250,tex_size => 400); +$figa = image(insertGraph($grapha),width => 400,height => 250,tex_size => 400); $popupAa = PopUp(["?", "i1", "i2","V1", "V2","iC", "im"], "V1"); $popupAb = PopUp(["?", "i1", "i2","V1", "V2","iC", "im"], "i1"); $popupAc = PopUp(["?", "i1", "i2","V1", "V2","iC", "im"], "i2"); @@ -117,30 +117,30 @@ BEGIN_TEXT $PAR A transformer is rated \( $Pva kVA\), \($Vpr-$Vsec V \), \($Freq Hz \). The equivalent circuit parameters are found to be: $BR -The primary impedance is \( R_1 =$R1 \Omega; X_1=$X1 \Omega \); $BR +The primary impedance is \( R_1 =$R1 \Omega; X_1=$X1 \Omega \); $BR The secondary impedance is \( R_2 =$R2 \Omega; X_2=$X2 \Omega \); $BR The exciting admittance is \( G_c =$Gc \mu S; B_m=$Bm \mu S \); $PAR -Use the approximate nonideal model ("cantilever" model) discussed in class to solve this problem. Draw your own equivalent circuit diagram on a piece of paper following the labelling convention used in class, and be sure that you can draw the equivalent diagram in the exams. +Use the approximate nonideal model ("cantilever" model) discussed in class to solve this problem. Draw your own equivalent circuit diagram on a piece of paper following the labelling convention used in class, and be sure that you can draw the equivalent diagram in the exams. $PAR a) What is the primary voltage if the transformer delivers rated kVA, \($pf \) P.F. leading, at rated voltage to a load. $BR -\(\tilde{V}_{1} =\) \{ans_rule(10)\} \(\angle\) \{ans_rule(10)\} \(^{\circ} V\). \{AnswerFormatHelp("numbers") \}$PAR +\(\tilde{V}_{1} =\) \{ans_rule(10)\} \(\angle\) \{ans_rule(10)\} \(^{\circ} V\). \{helpLink("numbers") \}$PAR b)The plot below represents the phaser diagram for the circuit with horizontal axis as the reference for voltage \( \tilde{V}_2 \).$BR \{image("ECE305_hw4_1.png",height=>200, width=>300)\} $BR $BR Note that the phasers in the diagram are not in scale but the relative phase and magnitude relationship between the phasers are maintained. Denote \( \tilde{V}_1 \) as "V1", \( \tilde{i}_1 \) as "i1", and \( \tilde{i}_m \) as "im" etc.. Answer the following questions about the phasor diagram. $BR -Vector \( A \) represents \{ $popupAa ->menu() \}. $BR +Vector \( A \) represents \{ $popupAa ->menu() \}. $BR Vector \( B \) represents \{ $popupAb ->menu() \}. $BR Vector \( C \) represents \{ $popupAc ->menu() \}. $BR Vector \( D \) represents \{ $popupAd ->menu() \}. $BR Be sure you can draw the phaser diagram if required in the exam. $PAR c) Calculate the net hysteresis and eddy-current loss $PAR -\(P_{loss} =\) \{ans_rule(10)\} \( W\). \{AnswerFormatHelp("numbers") \} $BR +\(P_{loss} =\) \{ans_rule(10)\} \( W\). \{helpLink("numbers") \} $BR d) Calculate the vars required to setup the core field $PAR -\(Q_{mag} =\) \{ans_rule(10)\} \( VAr\). \{AnswerFormatHelp("numbers") \} $BR +\(Q_{mag} =\) \{ans_rule(10)\} \( VAr\). \{helpLink("numbers") \} $BR e) Calculate the vars required to setup the leakage field $PAR -\(Q_{leak} =\) \{ans_rule(10)\} \(VAr\). \{AnswerFormatHelp("numbers") \} $PAR +\(Q_{leak} =\) \{ans_rule(10)\} \(VAr\). \{helpLink("numbers") \} $PAR f) Calculate the efficiency of the transformer at rated kVA, \($pf \) P.F. leading. $BR -\( \eta =\) \{ans_rule(10)\} \(%\). \{AnswerFormatHelp("numbers") \} $BR +\( \eta =\) \{ans_rule(10)\} \(%\). \{helpLink("numbers") \} $BR $PAR @@ -195,4 +195,4 @@ Based on the phase relationship, it is obvious that Vector A is \( \tilde{V}_2\) END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/NCSU/Power/ECE305_HW_04_Fall16_P02.pg b/Pending/NCSU/Power/ECE305_HW_04_Fall16_P02.pg index f51e27f438..e0b8e8fc76 100755 --- a/Pending/NCSU/Power/ECE305_HW_04_Fall16_P02.pg +++ b/Pending/NCSU/Power/ECE305_HW_04_Fall16_P02.pg @@ -29,7 +29,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -39,11 +39,11 @@ TEXT(beginproblem()); Context("Complex"); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.5f#"; +Context()->{format}{number} = "%.5f#"; #Initialize element values, to be changed for each question -$Pva =random(5,15,1); #kVA -$Vpr=2300; +$Pva =random(5,15,1); #kVA +$Vpr=2300; $Vsec=230; $R1=random(3,5,0.1); $X1=random(5,8,0.1); @@ -88,12 +88,12 @@ Consider that the secondary of the transformer is not connected to a load (open- Draw your own equivalent circuit diagram on a piece of paper following the labelling convention in class, and be sure that you can draw the equivalent diagram in the exams. $PAR (a) Find the transformer primary side current magnitude \( | I_1| \) (This is the excitation current) : $BR - \( | \tilde{I}_1| =\)\{ans_rule(10)\} \(A\). \{AnswerFormatHelp("numbers") \}$PAR + \( | \tilde{I}_1| =\)\{ans_rule(10)\} \(A\). \{helpLink("numbers") \}$PAR Now a load of value \($Zld \Omega \) is connected to the secondary side. With the load in the circuit, calculate: $BR (b) The transformer secondary side voltage magnitude |V2| : $BR - \( | \tilde{V}_2| =\)\{ans_rule(10)\} \(V\). \{AnswerFormatHelp("numbers") \}$PAR + \( | \tilde{V}_2| =\)\{ans_rule(10)\} \(V\). \{helpLink("numbers") \}$PAR (c) The total transformer losses (core and winding) in Watts for this load condition: $BR -\( P_{loss} =\)\{ans_rule(10)\} \(W\). \{AnswerFormatHelp("numbers") \}$BR +\( P_{loss} =\)\{ans_rule(10)\} \(W\). \{helpLink("numbers") \}$BR END_TEXT Context()->normalStrings; @@ -130,8 +130,8 @@ b) When the load of \($Zld \Omega \) is connected, where $BR \( R+jX=R2+\frac{X2}{a^2}+R1+\frac{X1}{a^2}\) $BR Substituting in the values: -\( |\tilde{V}_2|=$modV2 V \) $BR -c) +\( |\tilde{V}_2|=$modV2 V \) $BR +c) \(|I_2|=| \frac{V_2}{Z_{load}} |=$modI2 A\) $BR The total transformer loss is $BR @@ -143,4 +143,4 @@ The total transformer loss is $BR END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/NCSU/Power/ECE305_HW_04_Fall16_P03.pg b/Pending/NCSU/Power/ECE305_HW_04_Fall16_P03.pg index 49d3ab509f..ef38afc466 100755 --- a/Pending/NCSU/Power/ECE305_HW_04_Fall16_P03.pg +++ b/Pending/NCSU/Power/ECE305_HW_04_Fall16_P03.pg @@ -29,7 +29,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -40,11 +40,11 @@ Context("Complex"); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.5f#"; +Context()->{format}{number} = "%.5f#"; #Initialize element values, to be changed for each question -$Pva =random(800,1500,100); #VA -$Vpr=240; +$Pva =random(800,1500,100); #VA +$Vpr=240; $Vsec=120; $Voc=$Vsec; $ioc=random(0.15,0.3,0.01); #A @@ -55,7 +55,7 @@ $Psc=random(9,15,0.1); #W $pf=random(0.75,0.85,0.01); #W ## Debugging Code Parameters From Textbook -#$Pva =1000;$ioc=0.2;$Poc=5.2;$Vsc=10.8; $isc=4.15;$Psc=11.8;$pf=0.8; +#$Pva =1000;$ioc=0.2;$Poc=5.2;$Vsc=10.8; $isc=4.15;$Psc=11.8;$pf=0.8; # Answer calculation #Part a) @@ -108,22 +108,22 @@ A \($Pva\)-kVA, \($Vpr/$Vsec\)-V transformer has been tested to determine its eq Draw your own equivalent circuit diagram on a piece of paper following the labelling convention used in class, and be sure that you can draw the equivalent diagram in the exams. $PAR (a) Find the equivalent circuit parameters for this transformer referred to the low-voltage side of the transformer: $BR - \( R_c=\)\{ans_rule(10)\} \(k \Omega\). \{AnswerFormatHelp("numbers") \} $BR - \( X_m=\)\{ans_rule(10)\} \(k \Omega\). \{AnswerFormatHelp("numbers") \}$BR - \( R=\)\{ans_rule(10)\} \(\Omega\). \{AnswerFormatHelp("numbers") \}$BR - \( X=\)\{ans_rule(10)\} \(\Omega\). \{AnswerFormatHelp("numbers") \}$BR + \( R_c=\)\{ans_rule(10)\} \(k \Omega\). \{helpLink("numbers") \} $BR + \( X_m=\)\{ans_rule(10)\} \(k \Omega\). \{helpLink("numbers") \}$BR + \( R=\)\{ans_rule(10)\} \(\Omega\). \{helpLink("numbers") \}$BR + \( X=\)\{ans_rule(10)\} \(\Omega\). \{helpLink("numbers") \}$BR $PAR (b) Find the equivalent circuit for this transformer in per-unit: $BR - \( R_{c,pu}=\)\{ans_rule(10)\} \(P.U.\)\{AnswerFormatHelp("numbers") \} $BR - \( X_{m,pu}=\)\{ans_rule(10)\}\(P.U.\) \{AnswerFormatHelp("numbers") \}$BR - \( R_{pu}=\)\{ans_rule(10)\}\(P.U.\) \{AnswerFormatHelp("numbers") \}$BR - \( X_{pu}=\)\{ans_rule(10)\}\(P.U.\) \{AnswerFormatHelp("numbers") \}$BR + \( R_{c,pu}=\)\{ans_rule(10)\} \(P.U.\)\{helpLink("numbers") \} $BR + \( X_{m,pu}=\)\{ans_rule(10)\}\(P.U.\) \{helpLink("numbers") \}$BR + \( R_{pu}=\)\{ans_rule(10)\}\(P.U.\) \{helpLink("numbers") \}$BR + \( X_{pu}=\)\{ans_rule(10)\}\(P.U.\) \{helpLink("numbers") \}$BR $PAR (c) Calculate the voltage regulation at rated load conditions for (i) \($pf\) PF leading and (ii) \($pf\) PF lagging. Do this using per unit calculations: $BR -\( V.R._{$pf leading} =\)\{ans_rule(10)\}. \{AnswerFormatHelp("numbers") \}$BR -\( V.R._{$pf lagging} =\)\{ans_rule(10)\}. \{AnswerFormatHelp("numbers") \}$PAR +\( V.R._{$pf leading} =\)\{ans_rule(10)\}. \{helpLink("numbers") \}$BR +\( V.R._{$pf lagging} =\)\{ans_rule(10)\}. \{helpLink("numbers") \}$PAR (d) Determine the transformer's efficiency at rated load conditions at \($pf\) PF lagging $BR -\( \eta =\)\{ans_rule(10)\} \(%\). \{AnswerFormatHelp("numbers") \}$BR +\( \eta =\)\{ans_rule(10)\} \(%\). \{helpLink("numbers") \}$BR $R2test END_TEXT Context()->normalStrings; @@ -190,4 +190,4 @@ $PAR END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/NCSU/Power/ECE305_HW_05_Fall16_P01.pg b/Pending/NCSU/Power/ECE305_HW_05_Fall16_P01.pg index 6435988062..9e9a3545db 100755 --- a/Pending/NCSU/Power/ECE305_HW_05_Fall16_P01.pg +++ b/Pending/NCSU/Power/ECE305_HW_05_Fall16_P01.pg @@ -32,7 +32,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -42,13 +42,13 @@ TEXT(beginproblem()); Context("Complex"); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.5f#"; +Context()->{format}{number} = "%.5f#"; #Initialize element values, to be changed for each question -$Vpr=random(6.4,7.6,0.1); #kV +$Vpr=random(6.4,7.6,0.1); #kV $Vse=random(180,230,1); #V $Sr=random(300,350,1);#kVA -$Vprd=random(10,16,1); #kV +$Vprd=random(10,16,1); #kV ## Debugging Code Parameters From Textbook $Vpr=7.2; $Vse=208; $Sr=333; $Vprd=13; @@ -145,4 +145,4 @@ $PAR END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/NCSU/Power/ECE305_HW_05_Fall16_P02.pg b/Pending/NCSU/Power/ECE305_HW_05_Fall16_P02.pg index b5818d5a67..963ae866e2 100755 --- a/Pending/NCSU/Power/ECE305_HW_05_Fall16_P02.pg +++ b/Pending/NCSU/Power/ECE305_HW_05_Fall16_P02.pg @@ -29,7 +29,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -39,7 +39,7 @@ TEXT(beginproblem()); Context("Complex"); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.5f#"; +Context()->{format}{number} = "%.5f#"; #Initialize element values, to be changed for each question $V1=random(10,14,0.5); #kV @@ -92,27 +92,27 @@ $V1 - $V2 kV $BR $S1 kVA $BR Pcore = $Pc kW; Qcore = $Qc kVARs [obtained from open circuit test at rated voltage] $BR Req2 = \( $Req2 \Omega\) ; Xeq2 = \($Xeq2 \Omega \) [referred to the low side] $PAR -(a) Determine the three-phase bank power and voltage ratings. $BR -\(S_{rat} =\) \{ans_rule(10)\} \( kVA\). \{AnswerFormatHelp("numbers") \} $BR -\(V_{pri} =\)\{ans_rule(10)\} \( kV\). \{AnswerFormatHelp("numbers") \} $BR -\(V_{sec} =\)\{ans_rule(10)\} \( kV\). \{AnswerFormatHelp("numbers") \} $PAR +(a) Determine the three-phase bank power and voltage ratings. $BR +\(S_{rat} =\) \{ans_rule(10)\} \( kVA\). \{helpLink("numbers") \} $BR +\(V_{pri} =\)\{ans_rule(10)\} \( kV\). \{helpLink("numbers") \} $BR +\(V_{sec} =\)\{ans_rule(10)\} \( kV\). \{helpLink("numbers") \} $PAR (b) Sketch the per-phase equivalent circuit to the high-voltage side on a piece of paper and find the numerical values according to the labelling convention used in class $BR -\(R_{eq,pri} =\) \{ans_rule(10)\} \( \Omega \). \{AnswerFormatHelp("numbers") \} $BR -\(X_{eq,pri} =\)\{ans_rule(10)\} \(\Omega\). \{AnswerFormatHelp("numbers") \} $BR -\(R_{c,pri} =\)\{ans_rule(10)\} \( k \Omega \). \{AnswerFormatHelp("numbers") \} $BR -\(X_{m,pri} =\)\{ans_rule(10)\} \( k \Omega \). \{AnswerFormatHelp("numbers") \} $PAR +\(R_{eq,pri} =\) \{ans_rule(10)\} \( \Omega \). \{helpLink("numbers") \} $BR +\(X_{eq,pri} =\)\{ans_rule(10)\} \(\Omega\). \{helpLink("numbers") \} $BR +\(R_{c,pri} =\)\{ans_rule(10)\} \( k \Omega \). \{helpLink("numbers") \} $BR +\(X_{m,pri} =\)\{ans_rule(10)\} \( k \Omega \). \{helpLink("numbers") \} $PAR (c) Sketch the per-phase equivalent circuit to the low-voltage side on a piece of paper and find the numerical values according to the labelling convention used in class $BR -\(R_{c,sec} =\) \{ans_rule(10)\} \( k \Omega \). \{AnswerFormatHelp("numbers") \} $BR -\(X_{m,sec} =\)\{ans_rule(10)\} \( k \Omega \). \{AnswerFormatHelp("numbers") \} $PAR +\(R_{c,sec} =\) \{ans_rule(10)\} \( k \Omega \). \{helpLink("numbers") \} $BR +\(X_{m,sec} =\)\{ans_rule(10)\} \( k \Omega \). \{helpLink("numbers") \} $PAR (d) Determine the three-phase bank efficiency at rated load and rated voltage, $pf power factor lagging $BR -\(\eta = \) \{ans_rule(10)\} \( % \) \{AnswerFormatHelp("numbers") \} $PAR +\(\eta = \) \{ans_rule(10)\} \( % \) \{helpLink("numbers") \} $PAR (e) Determine the voltage regulation assuming a power factor of $pf lagging $BR -\(V.R. = \) \{ans_rule(10)\} \( %\) \{AnswerFormatHelp("numbers") \} $BR +\(V.R. = \) \{ans_rule(10)\} \( %\) \{helpLink("numbers") \} $BR $PAR END_TEXT @@ -191,4 +191,4 @@ Part e) $BR END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/NCSU/Power/ECE305_HW_05_Fall16_P03.pg b/Pending/NCSU/Power/ECE305_HW_05_Fall16_P03.pg index 37cc30ae3e..d2279a671e 100755 --- a/Pending/NCSU/Power/ECE305_HW_05_Fall16_P03.pg +++ b/Pending/NCSU/Power/ECE305_HW_05_Fall16_P03.pg @@ -29,7 +29,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -39,7 +39,7 @@ TEXT(beginproblem()); Context("Complex"); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.5f#"; +Context()->{format}{number} = "%.5f#"; #Initialize element values, to be changed for each question $S1=random(80,120,5); #kVA @@ -83,11 +83,11 @@ $PAR Three single-phase, $S1 kVA, $V1/$V2 V, $freq Hz transformers are connected to form a three-phase, $V1/$V2 V transformer bank. The equivalent impedance of each transformer referred to its low voltage side is \( $R2+$X2 \cdot j m \Omega \). The transformer is connected to a three-phase source through three-phase feeders, the impedance of each feeder being \($Rl+$Xl \cdot j \Omega\). The transformer delivers full load at \( $V2 V \)and \($pf \) pf (lagging). $PAR a) The transformer should be connected in a \{ $popupA ->menu() \} - \{ $popupB ->menu() \} configuration. $PAR b) Sketch the per-phase Wye equivalent circuit on a piece of paper, and determine the element values. Represent the load as the equivalent impedance. $BR -\(Z_{line,primary} =\) \{ans_rule(10)\} \( \Omega \). \{AnswerFormatHelp("numbers") \} $BR -\(Z_{transformer,secondary} =\)\{ans_rule(10)\} \( \Omega \). \{AnswerFormatHelp("numbers") \} $BR -\(Z_{load,secondary} =\)\{ans_rule(10)\} \( \Omega \). \{AnswerFormatHelp("numbers") \} $PAR +\(Z_{line,primary} =\) \{ans_rule(10)\} \( \Omega \). \{helpLink("numbers") \} $BR +\(Z_{transformer,secondary} =\)\{ans_rule(10)\} \( \Omega \). \{helpLink("numbers") \} $BR +\(Z_{load,secondary} =\)\{ans_rule(10)\} \( \Omega \). \{helpLink("numbers") \} $PAR c) Determine the high voltage side line voltage of the three-phase source (rms). $BR -\(V_{1,L} =\)\{ans_rule(10)\} \(\angle\) \{ans_rule(10)\} \( ^{\circ} kV \). \{AnswerFormatHelp("numbers") \} $PAR +\(V_{1,L} =\)\{ans_rule(10)\} \(\angle\) \{ans_rule(10)\} \( ^{\circ} kV \). \{helpLink("numbers") \} $PAR END_TEXT Context()->normalStrings; @@ -142,4 +142,4 @@ This is a Delta-Delta transformer. $BR END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/NCSU/Power/ECE305_HW_05_Fall16_P04.pg b/Pending/NCSU/Power/ECE305_HW_05_Fall16_P04.pg index 7df053e130..342a5f7955 100755 --- a/Pending/NCSU/Power/ECE305_HW_05_Fall16_P04.pg +++ b/Pending/NCSU/Power/ECE305_HW_05_Fall16_P04.pg @@ -31,7 +31,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -41,10 +41,10 @@ TEXT(beginproblem()); Context("Complex"); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.5f#"; +Context()->{format}{number} = "%.5f#"; #Initialize element values, to be changed for each question -$Vpr=random(1500,2000,1); #V +$Vpr=random(1500,2000,1); #V $Vse=random(400,600,1); #V $Freq=random(50,60); #Hz $Sr=random(20,40,1);#kVA @@ -78,14 +78,14 @@ BEGIN_TEXT $PAR A three-phase \( Y- \Delta \) step down transformer is rated at $Sr kVA, $Vpr:$Vse V, $Freq Hz. The transformer impedance referred to the high side is shown in the diagram below. The magnetizing branch has been ignored. $BR \{image("ECE305_hw5_4.png",height=>200, width=>400)\} $BR - -A synchronous motor rated at $Sr kVA, $Vse V is connected to the secondary of the transformer. The motor operates at the motor rated voltage and power, power factor $pf lagging. Calculate + +A synchronous motor rated at $Sr kVA, $Vse V is connected to the secondary of the transformer. The motor operates at the motor rated voltage and power, power factor $pf lagging. Calculate (a) rms values V1 and I1, and V2. $BR -\(V_{1,rms} =\) \{ans_rule(10)\} \(\angle \) \{ans_rule(10)\} \(^{\circ} kV\) \{AnswerFormatHelp("numbers") \} $BR -\(I_{1,rms} =\)\{ans_rule(10)\} \(\angle \) \{ans_rule(10)\} \(^{\circ} A\) \{AnswerFormatHelp("numbers") \} $BR -\(V_{2,rms} =\)\{ans_rule(10)\} \(\angle \) \{ans_rule(10)\} \(^{\circ} V\) \{AnswerFormatHelp("numbers") \} $BR +\(V_{1,rms} =\) \{ans_rule(10)\} \(\angle \) \{ans_rule(10)\} \(^{\circ} kV\) \{helpLink("numbers") \} $BR +\(I_{1,rms} =\)\{ans_rule(10)\} \(\angle \) \{ans_rule(10)\} \(^{\circ} A\) \{helpLink("numbers") \} $BR +\(V_{2,rms} =\)\{ans_rule(10)\} \(\angle \) \{ans_rule(10)\} \(^{\circ} V\) \{helpLink("numbers") \} $BR (b) the input power factor (i.e. power factor at the three-phase source determined by the phase angle between I1 and V1).$BR -\(P.F._{input} \)=\{ans_rule(10)\} \{AnswerFormatHelp("numbers") \} $BR +\(P.F._{input} \)=\{ans_rule(10)\} \{helpLink("numbers") \} $BR $PAR @@ -129,4 +129,4 @@ The input power factor is $pf1. END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/NCSU/Power/ECE305_HW_06_Fall16_P01.pg b/Pending/NCSU/Power/ECE305_HW_06_Fall16_P01.pg index c747e803ee..ae6adc85ab 100755 --- a/Pending/NCSU/Power/ECE305_HW_06_Fall16_P01.pg +++ b/Pending/NCSU/Power/ECE305_HW_06_Fall16_P01.pg @@ -31,7 +31,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -45,7 +45,7 @@ tolType => "absolute", ); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; #Initialize element values, to be changed for each question $R=random(0.2,0.8,0.1); @@ -78,14 +78,14 @@ A simple conductor with a resistance between the end points of \($R \Omega\) is \{image("ECE305_hw6_1.png",height=>150, width=>300)\} $BR $PAR -a)\(F_{Lorentz}=\)\{ans_rule(10)\} \(N \) \{AnswerFormatHelp("numbers") \} $BR +a)\(F_{Lorentz}=\)\{ans_rule(10)\} \(N \) \{helpLink("numbers") \} $BR b)The direction of the Lorentz force is \{ $popupB ->menu() \} $BR -c)The Faraday emf is \{ans_rule(10)\} \(V \) \{AnswerFormatHelp("numbers") \} $BR -d)The direction of the Faraday emf is \{ $popupD ->menu() \} $BR +c)The Faraday emf is \{ans_rule(10)\} \(V \) \{helpLink("numbers") \} $BR +d)The direction of the Faraday emf is \{ $popupD ->menu() \} $BR e)This machine is a \{ $popupE ->menu() \} $BR -f) The electrical power involved in this process is \{ans_rule(10)\} \(W \) \{AnswerFormatHelp("numbers") \} $BR -g)This power is \{ $popupG ->menu() \} by the machine $BR -h)The mechanical power involved in this process is \{ans_rule(10)\} \(W \) \{AnswerFormatHelp("numbers") \} $BR +f) The electrical power involved in this process is \{ans_rule(10)\} \(W \) \{helpLink("numbers") \} $BR +g)This power is \{ $popupG ->menu() \} by the machine $BR +h)The mechanical power involved in this process is \{ans_rule(10)\} \(W \) \{helpLink("numbers") \} $BR i)The machine is \{ $popupI ->menu() \} the mechanical power $BR END_TEXT @@ -130,4 +130,4 @@ As a motor, the mechanical power is supplied by the machine. END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/NCSU/Power/ECE305_HW_06_Fall16_P02.pg b/Pending/NCSU/Power/ECE305_HW_06_Fall16_P02.pg index 95c9a83ae0..168866a77c 100755 --- a/Pending/NCSU/Power/ECE305_HW_06_Fall16_P02.pg +++ b/Pending/NCSU/Power/ECE305_HW_06_Fall16_P02.pg @@ -36,7 +36,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -50,7 +50,7 @@ tolType => "absolute", ); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; #Initialize element values, to be changed for each question $R=random(0.2,0.8,0.1); @@ -79,10 +79,10 @@ BEGIN_TEXT \{image("ECE305_hw6_2.png",height=>150, width=>200)\} $BR The linear machine illustrated in the figure above has a magnetic flux density of \(B=$B T \), a conductor resistance of \($R \Omega\) and a conductor bar length of \($Len m \). The battery is represented by the voltage source symbol. The lines of the magnetic flux density B are perpendicular to the conductor. For the circuit shown above operating in a motor mode, you want to move the bar at \(u=$u m/s \) and drive a mechanical load force of \(f_{load}=$F N \). Windage and friction force can be neglected. Determine: $BR -a) The voltage source required is \{ans_rule(10)\} \(V \) \{AnswerFormatHelp("numbers") \} $BR -b) The power delivered by the source in steady-state is \{ans_rule(10)\} \(W \) \{AnswerFormatHelp("numbers") \} $BR -c) The starting current for the voltage calculated in part a) is \{ans_rule(10)\} \(A \) \{AnswerFormatHelp("numbers") \} $BR -d) For the voltage calculated in part a) and a mechanical load of \(f_{load}=$F N\), if the air gap flux density B is cut in half, the new steady-state speed of the bar \(v_1\) is \{ans_rule(10)\} \(m/s \) \{AnswerFormatHelp("numbers") \} $BR +a) The voltage source required is \{ans_rule(10)\} \(V \) \{helpLink("numbers") \} $BR +b) The power delivered by the source in steady-state is \{ans_rule(10)\} \(W \) \{helpLink("numbers") \} $BR +c) The starting current for the voltage calculated in part a) is \{ans_rule(10)\} \(A \) \{helpLink("numbers") \} $BR +d) For the voltage calculated in part a) and a mechanical load of \(f_{load}=$F N\), if the air gap flux density B is cut in half, the new steady-state speed of the bar \(v_1\) is \{ans_rule(10)\} \(m/s \) \{helpLink("numbers") \} $BR END_TEXT Context()->normalStrings; @@ -128,4 +128,4 @@ Repeat the similar process for \( \frac{B}{2}\), $BR END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/NCSU/Power/ECE305_HW_06_Fall16_P03.pg b/Pending/NCSU/Power/ECE305_HW_06_Fall16_P03.pg index 32712d0e27..81c226eb7d 100755 --- a/Pending/NCSU/Power/ECE305_HW_06_Fall16_P03.pg +++ b/Pending/NCSU/Power/ECE305_HW_06_Fall16_P03.pg @@ -31,7 +31,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -45,7 +45,7 @@ tolType => "absolute", ); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; #Initialize element values, to be changed for each question $R=random(0.2,0.8,0.1); @@ -80,27 +80,27 @@ A horizontal copper bar slides up and down along two perfectly conducting, frict \{image("ECE305_hw6_3.png",height=>200, width=>150)\} $BR $PAR -A uniform flux density \(B=$B Wb/m^2 \), is directed into the screen. The length, resistance, and weight of the bar are given as: \(L=$Len m, R=$R \Omega, W=mg=$W N \). $BR +A uniform flux density \(B=$B Wb/m^2 \), is directed into the screen. The length, resistance, and weight of the bar are given as: \(L=$Len m, R=$R \Omega, W=mg=$W N \). $BR Answer the following questions about this system: $BR a) If the bar is to move upward at a constant velocity of 10.0 m/s,$BR - \(V\)=\{ans_rule(10)\} \(V \) \{AnswerFormatHelp("numbers") \} $BR - \(I\)=\{ans_rule(10)\} \(A \) \{AnswerFormatHelp("numbers") \} $BR - + \(V\)=\{ans_rule(10)\} \(V \) \{helpLink("numbers") \} $BR + \(I\)=\{ans_rule(10)\} \(A \) \{helpLink("numbers") \} $BR + b) How much energy does the battery supply in moving the bar up 1.0 m, $BR - \(W\)=\{ans_rule(10)\} \(J \) \{AnswerFormatHelp("numbers") \} $BR + \(W\)=\{ans_rule(10)\} \(J \) \{helpLink("numbers") \} $BR c) The following is the power diagram showing all powers in the system. $BR \{image("ECE305_hw6_3c.png",height=>200, width=>400)\} $BR Calculate the quantities of all power terms in the diagram. $PAR - \(P_{IN}\)=\{ans_rule(10)\} \(W \) \{AnswerFormatHelp("numbers") \} $BR - \(P_{Cu}\)=\{ans_rule(10)\} \(W \) \{AnswerFormatHelp("numbers") \} $BR - \(P_{E}\)=\{ans_rule(10)\} \(W \) \{AnswerFormatHelp("numbers") \} $BR - \(P_{Core}\)=\{ans_rule(10)\} \(W \) \{AnswerFormatHelp("numbers") \} $BR - \(P_{M}\)=\{ans_rule(10)\} \(W \) \{AnswerFormatHelp("numbers") \} $BR - \(P_{F,WI}\)=\{ans_rule(10)\} \(W \) \{AnswerFormatHelp("numbers") \} $BR - \(P_{OUT}\)=\{ans_rule(10)\} \(W \) \{AnswerFormatHelp("numbers") \} $BR - + \(P_{IN}\)=\{ans_rule(10)\} \(W \) \{helpLink("numbers") \} $BR + \(P_{Cu}\)=\{ans_rule(10)\} \(W \) \{helpLink("numbers") \} $BR + \(P_{E}\)=\{ans_rule(10)\} \(W \) \{helpLink("numbers") \} $BR + \(P_{Core}\)=\{ans_rule(10)\} \(W \) \{helpLink("numbers") \} $BR + \(P_{M}\)=\{ans_rule(10)\} \(W \) \{helpLink("numbers") \} $BR + \(P_{F,WI}\)=\{ans_rule(10)\} \(W \) \{helpLink("numbers") \} $BR + \(P_{OUT}\)=\{ans_rule(10)\} \(W \) \{helpLink("numbers") \} $BR + @@ -168,4 +168,4 @@ By inspecting the power diagram, the student should be able to identify the mean END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/NCSU/Power/ECE305_HW_07_Fall16_P01.pg b/Pending/NCSU/Power/ECE305_HW_07_Fall16_P01.pg index ba4e857495..c7a0ce9e9c 100755 --- a/Pending/NCSU/Power/ECE305_HW_07_Fall16_P01.pg +++ b/Pending/NCSU/Power/ECE305_HW_07_Fall16_P01.pg @@ -30,7 +30,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -44,7 +44,7 @@ tolType => "absolute", ); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; #Initialize element values, to be changed for each question $Ra=random(2,5,0.5); @@ -81,12 +81,12 @@ $omga=Real($Eca/$k/$Iac); BEGIN_TEXT Consider a series DC motor with armature resistance of \($Ra \Omega\) and field resistance of \($Rf \Omega\) excited by a \($V V DC \) supply. $PAR -a) The motor produces an armature current of \($ia A\) at \($omg rad/sec\) at steady state. The starting torque when the \($V V DC\) supply is applied to the terminals (ignore the motor inductance) is \{ans_rule(10)\} \(k Nm \) \{AnswerFormatHelp("numbers") \} $BR +a) The motor produces an armature current of \($ia A\) at \($omg rad/sec\) at steady state. The starting torque when the \($V V DC\) supply is applied to the terminals (ignore the motor inductance) is \{ans_rule(10)\} \(k Nm \) \{helpLink("numbers") \} $BR + +b) To ensure the amature current never exceeds $ib A, the necessary resistance that would have to be added to the armature circuit is \{ans_rule(10)\} \(\Omega \) \{helpLink("numbers") \} $BR -b) To ensure the amature current never exceeds $ib A, the necessary resistance that would have to be added to the armature circuit is \{ans_rule(10)\} \(\Omega \) \{AnswerFormatHelp("numbers") \} $BR - -c) Assume that a constant torque load of TI= $Tc Nm is connected to the motor, without the additional armature resistance of part (b), the speed of the motor in steady state is \{ans_rule(10)\} \(rad/s \) \{AnswerFormatHelp("numbers") \} $BR -Now with the additional armature resistance of part (b), the speed of motor in steady state is \{ans_rule(10)\} \(rad/s \) \{AnswerFormatHelp("numbers") \} $BR +c) Assume that a constant torque load of TI= $Tc Nm is connected to the motor, without the additional armature resistance of part (b), the speed of the motor in steady state is \{ans_rule(10)\} \(rad/s \) \{helpLink("numbers") \} $BR +Now with the additional armature resistance of part (b), the speed of motor in steady state is \{ans_rule(10)\} \(rad/s \) \{helpLink("numbers") \} $BR END_TEXT Context()->normalStrings; @@ -114,14 +114,14 @@ BEGIN_SOLUTION; $PAR $BBOLD SOLUTION $EBOLD $PAR -a) +a) \(\omega_1= $omg V\) $BR \(I_{a,1}=$Ia A\) $BR \(E_{a,1}=V_a-(R_a+R_f)I_{a,1}=$Ea V \) $BR \(k=\frac{E_{a,1}}{\omega_1 I_a}=$k Vs/(A \cdot rad) \) $BR \(\omega=0 => E_a=0 => V_a=(R_a+R_f)I_{a,ST} => I_{a,ST}=\frac{V_a}{R_a+R_f}=$iast A\) $BR \(T_{st}=kI^2_{a,ST}=$k \cdot $iast^2=$Ta kNm\) $BR -b) +b) \(\omega=0 => E_a=0 => V_a=(R_a+R_f+R_{add})I_{a,ST,1} => R_{add}=\frac{$V}{$iast}-$Ra-$Rf=$Rb \Omega \) $BR c)\(I_a=\sqrt{\frac{T}{k}}=$Iac A\) $BR \(E_a(R_{add}=0)=$V-($Ra+$Rf) \cdot $Iac=$Ec0 V\) $BR @@ -131,4 +131,4 @@ c)\(I_a=\sqrt{\frac{T}{k}}=$Iac A\) $BR END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/NCSU/Power/ECE305_HW_07_Fall16_P02.pg b/Pending/NCSU/Power/ECE305_HW_07_Fall16_P02.pg index ed28f3fd24..48764a79de 100755 --- a/Pending/NCSU/Power/ECE305_HW_07_Fall16_P02.pg +++ b/Pending/NCSU/Power/ECE305_HW_07_Fall16_P02.pg @@ -34,7 +34,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -48,7 +48,7 @@ tolType => "absolute", ); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; #Initialize element values, to be changed for each question $P=random(20,30,1); @@ -69,7 +69,7 @@ $nfl=Real($RPM*$Eafl/$Eanl); BEGIN_TEXT -A \($P-kW, $V-V\) shunt motor has an armature resistance of \($Ra \Omega\) and a field resistance of \($Rf \Omega\). At no load and rated voltage, the speed is \($RPM r/min\) and the armature current is \($ia A\). At full load and rated voltage, the armature current is \($iaf A\). The full-load speed is \{ans_rule(10)\} \(rpm \) \{AnswerFormatHelp("numbers") \} $BR +A \($P-kW, $V-V\) shunt motor has an armature resistance of \($Ra \Omega\) and a field resistance of \($Rf \Omega\). At no load and rated voltage, the speed is \($RPM r/min\) and the armature current is \($ia A\). At full load and rated voltage, the armature current is \($iaf A\). The full-load speed is \{ans_rule(10)\} \(rpm \) \{helpLink("numbers") \} $BR END_TEXT @@ -96,4 +96,4 @@ $PAR END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/NCSU/Power/ECE305_HW_07_Fall16_P03.pg b/Pending/NCSU/Power/ECE305_HW_07_Fall16_P03.pg index dd1fd3ec93..1cd89617da 100755 --- a/Pending/NCSU/Power/ECE305_HW_07_Fall16_P03.pg +++ b/Pending/NCSU/Power/ECE305_HW_07_Fall16_P03.pg @@ -35,7 +35,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -49,7 +49,7 @@ tolType => "absolute", ); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; #Initialize element values, to be changed for each question $P=random(18,25,1);#kW @@ -77,10 +77,10 @@ $eta=Real($P*1000/($Pm+$Prl)*100); BEGIN_TEXT A \($P kW, $V V \), self-excited dc shunt generator is driven at its rated speed of \($RPM rpm\) and it is delivering rated power at rated terminal voltage. Its armature-circuit resistance is \($Ra \Omega\), and the field current is \($if A\). If its rotational loss is given as \($Prl W\), determine the following:$BR -a) The internal generated voltage is \{ans_rule(10)\} \(V\) \{AnswerFormatHelp("numbers") \} $BR +a) The internal generated voltage is \{ans_rule(10)\} \(V\) \{helpLink("numbers") \} $BR -b) The developed torque is \{ans_rule(10)\} \(Nm\) \{AnswerFormatHelp("numbers") \} $BR -c) The percent efficiency of the generator is \{ans_rule(10)\} \(%\) \{AnswerFormatHelp("numbers") \} $BR +b) The developed torque is \{ans_rule(10)\} \(Nm\) \{helpLink("numbers") \} $BR +c) The percent efficiency of the generator is \{ans_rule(10)\} \(%\) \{helpLink("numbers") \} $BR @@ -110,7 +110,7 @@ BEGIN_SOLUTION; $PAR $BBOLD SOLUTION $EBOLD $PAR -a) +a) \(I_{out}=\frac{P_{out}}{V_a}=\frac{$P k}{$V}=$Iout A\) $BR \(I_{a}=I_{a}+I_{out}=$Ia A\) $BR \(E_{a}=R_aI_{a}+$V=$Ea V\) $BR @@ -126,4 +126,4 @@ c) END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/NCSU/Power/ECE305_HW_08_Fall16_P01.pg b/Pending/NCSU/Power/ECE305_HW_08_Fall16_P01.pg index 89e72e62c5..4ec0e5566c 100755 --- a/Pending/NCSU/Power/ECE305_HW_08_Fall16_P01.pg +++ b/Pending/NCSU/Power/ECE305_HW_08_Fall16_P01.pg @@ -30,7 +30,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -44,7 +44,7 @@ tolType => "absolute", ); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; #Initialize element values, to be changed for each question $Vr=random(430,460,10); @@ -81,11 +81,11 @@ BEGIN_TEXT A $Vr-V, $Pr-kW, $Freq-Hz, three-phase synchronous motor has a synchronous reactance of Xs = $Xs \(\Omega\) /phase. The motor is operating at rated terminal voltage and an output power of $Pa kW. $BR a) If the motor is operating at $pf power factor lagging, $BR -the line to neutral generated voltage \(E_f\) = \{ans_rule(10)\}\(\angle\) \{ans_rule(10)\} \(^{\circ} V \) \{AnswerFormatHelp("numbers") \} $PAR +the line to neutral generated voltage \(E_f\) = \{ans_rule(10)\}\(\angle\) \{ans_rule(10)\} \(^{\circ} V \) \{helpLink("numbers") \} $PAR b) If the motor is operating at $pf power factor leading, $BR -the line to neutral generated voltage \(E_f\) = \{ans_rule(10)\}\(\angle\) \{ans_rule(10)\} \(^{\circ} V \) \{AnswerFormatHelp("numbers") \} $BR +the line to neutral generated voltage \(E_f\) = \{ans_rule(10)\}\(\angle\) \{ans_rule(10)\} \(^{\circ} V \) \{helpLink("numbers") \} $BR END_TEXT Context()->normalStrings; @@ -130,4 +130,4 @@ b) $BR END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/NCSU/Power/ECE305_HW_08_Fall16_P02.pg b/Pending/NCSU/Power/ECE305_HW_08_Fall16_P02.pg index c9943a0cdd..c32cfa41bc 100755 --- a/Pending/NCSU/Power/ECE305_HW_08_Fall16_P02.pg +++ b/Pending/NCSU/Power/ECE305_HW_08_Fall16_P02.pg @@ -30,7 +30,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -44,7 +44,7 @@ tolType => "absolute", ); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; #Initialize element values, to be changed for each question $Vr=random(200,220,2); @@ -73,10 +73,10 @@ $Q=3*$Vt/$Xs*($modEfa*cos($del/180*pi)-$Vt)/1000; BEGIN_TEXT A 3-phase, 60 Hz, $NP-pole, $Pr kVA, $Vr V, Y-connected synchronous generator, with a reactance, Xs = $Xs \(\Omega\)/phase, is connected to a $Vr-volt, infinite bus.$BR -a) If the generator delivers $Pr kVA, $pf pf lagging, to the bus, the excitation emf \(E_f\)= \{ans_rule(10)\}\(\angle\) \{ans_rule(10)\} \(^{\circ} V \) \{AnswerFormatHelp("numbers") \} $PAR +a) If the generator delivers $Pr kVA, $pf pf lagging, to the bus, the excitation emf \(E_f\)= \{ans_rule(10)\}\(\angle\) \{ans_rule(10)\} \(^{\circ} V \) \{helpLink("numbers") \} $PAR b) With constant field current, if the prime mover torque is adjusted so that the machine is delivering $Pw kW. $BR -The new torque angle \(\delta\)=\{ans_rule(10)\} \(^{\circ} \) \{AnswerFormatHelp("numbers") \} $BR -The reactive power delivered to the bus \(Q\)=\{ans_rule(10)\} \(kVAR \) \{AnswerFormatHelp("numbers") \} $BR +The new torque angle \(\delta\)=\{ans_rule(10)\} \(^{\circ} \) \{helpLink("numbers") \} $BR +The reactive power delivered to the bus \(Q\)=\{ans_rule(10)\} \(kVAR \) \{helpLink("numbers") \} $BR END_TEXT Context()->normalStrings; @@ -123,4 +123,4 @@ Now \(P=$Pw kW, E_f=$modEfa \angle $argEfa^{\circ} V_{L-N} \) $BR END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/NCSU/Power/ECE305_HW_08_Fall16_P03.pg b/Pending/NCSU/Power/ECE305_HW_08_Fall16_P03.pg index 00979e031c..d695037ada 100755 --- a/Pending/NCSU/Power/ECE305_HW_08_Fall16_P03.pg +++ b/Pending/NCSU/Power/ECE305_HW_08_Fall16_P03.pg @@ -30,7 +30,7 @@ loadMacros("PG.pl", "parserPopUp.pl", "MathObjects.pl", "PGcourse.pl", - "AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -44,7 +44,7 @@ tolType => "absolute", ); Context()->variables->are(t=>'Real'); -Context()->{format}{number} = "%.4f#"; +Context()->{format}{number} = "%.4f#"; #Initialize element values, to be changed for each question $NP=random(4,8,2); @@ -86,23 +86,23 @@ A gas-driven turbine is used to drive a small synchronous generator. The machine a) Suppose that the generator is initially delivering $Pvai MVA at a power factor of $pf lagging. Calculate:$BR i. the three-phase real and reactive power delivered to the electrical load,$BR -\(P\)=\{ans_rule(10)\} \( MW \) \{AnswerFormatHelp("numbers") \} $BR -\(Q\)=\{ans_rule(10)\} \( MVAR \) \{AnswerFormatHelp("numbers") \} $BR -ii. the line current,$BR -\(I_a\)=\{ans_rule(10)\} \(\angle\) \{ans_rule(10)\}\(^{\circ} kA\) \{AnswerFormatHelp("numbers") \} $BR +\(P\)=\{ans_rule(10)\} \( MW \) \{helpLink("numbers") \} $BR +\(Q\)=\{ans_rule(10)\} \( MVAR \) \{helpLink("numbers") \} $BR +ii. the line current,$BR +\(I_a\)=\{ans_rule(10)\} \(\angle\) \{ans_rule(10)\}\(^{\circ} kA\) \{helpLink("numbers") \} $BR iii. the internal voltage,$BR -\(E_f\)=\{ans_rule(10)\} \(\angle\) \{ans_rule(10)\}\(^{\circ}kV_{L-N} \) \{AnswerFormatHelp("numbers") \} $BR +\(E_f\)=\{ans_rule(10)\} \(\angle\) \{ans_rule(10)\}\(^{\circ}kV_{L-N} \) \{helpLink("numbers") \} $BR iv. the developed torque, $BR -\(T\)=\{ans_rule(10)\} \(kNm \) \{AnswerFormatHelp("numbers") \} $PAR +\(T\)=\{ans_rule(10)\} \(kNm \) \{helpLink("numbers") \} $PAR b) Suppose that a fault develops in the excitation circuit which drops the field current to 50% from the original condition described in part (a). The prime mover torque and power input to the machine stays constant. Assume that the internal voltage magnitude is linearly related to the field current and recalculate:$BR i. the three-phase real and reactive power delivered to the utility system,$BR -\(P\)=\{ans_rule(10)\} \( MW \) \{AnswerFormatHelp("numbers") \} $BR -\(Q\)=\{ans_rule(10)\} \( MVAR \) \{AnswerFormatHelp("numbers") \} $BR +\(P\)=\{ans_rule(10)\} \( MW \) \{helpLink("numbers") \} $BR +\(Q\)=\{ans_rule(10)\} \( MVAR \) \{helpLink("numbers") \} $BR ii. the line current,$BR -\(I_a\)=\{ans_rule(10)\} \(\angle\) \{ans_rule(10)\}\(^{\circ} kA\) \{AnswerFormatHelp("numbers") \} $BR +\(I_a\)=\{ans_rule(10)\} \(\angle\) \{ans_rule(10)\}\(^{\circ} kA\) \{helpLink("numbers") \} $BR iii. the internal voltage, $BR -\(E_f\)=\{ans_rule(10)\} \(\angle\) \{ans_rule(10)\}\(^{\circ}kV_{L-N} \) \{AnswerFormatHelp("numbers") \} $BR +\(E_f\)=\{ans_rule(10)\} \(\angle\) \{ans_rule(10)\}\(^{\circ}kV_{L-N} \) \{helpLink("numbers") \} $BR END_TEXT Context()->normalStrings; @@ -173,4 +173,4 @@ b) $BR END_SOLUTION Context()->normalStrings; -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/OKState/DiffForms/diffforms-convert-to-standard1.pg b/Pending/OKState/DiffForms/diffforms-convert-to-standard1.pg index d46a7bc64e..177cfec4f3 100644 --- a/Pending/OKState/DiffForms/diffforms-convert-to-standard1.pg +++ b/Pending/OKState/DiffForms/diffforms-convert-to-standard1.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserFunction.pl", "PGcourse.pl", ); @@ -78,7 +78,7 @@ $PAR c) \( dy \wedge \bigl( $a \sin(x) \, dz \wedge dx + $b y^2 dx \wedge dy \bigr) = {} \) \{ ans_rule(20) \} \( dx \wedge dy \wedge dz \) $PAR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Pending/OKState/DiffForms/diffforms-cylindrical1.pg b/Pending/OKState/DiffForms/diffforms-cylindrical1.pg index 7c449d2464..5008c734ed 100644 --- a/Pending/OKState/DiffForms/diffforms-cylindrical1.pg +++ b/Pending/OKState/DiffForms/diffforms-cylindrical1.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -53,11 +53,11 @@ Let [`\omega = [$a] xy \, dx + [$b] z\, dy + [$c] y\,dz`]. Write the form in cylindrical coordinates. Type "r", "theta", and "z" for the variables [`r`], [`\theta`], and [`z`]. -[`\omega ={}`][____________]{"$a r^2 (cos(theta))^2 sin(theta) + $b z sin(theta)"}{30}[`dr + {}`] -[`\phantom{\omega ={}}`][____________]{"-$a r^3 cos(theta) (sin(theta))^2 + $b r z cos(theta)"}{30}[`d\theta + {}`] +[`\omega ={}`][____________]{"$a r^2 (cos(theta))^2 sin(theta) + $b z sin(theta)"}{30}[`dr + {}`] +[`\phantom{\omega ={}}`][____________]{"-$a r^3 cos(theta) (sin(theta))^2 + $b r z cos(theta)"}{30}[`d\theta + {}`] [`\phantom{\omega ={}}`][____________]{"$c r sin(theta)"}{30}[`dz`] -[@ AnswerFormatHelp("formulas") @]* +[@ helpLink("formulas") @]* END_PGML ENDDOCUMENT(); diff --git a/Pending/OKState/DiffForms/diffforms-d-of-oneform1.pg b/Pending/OKState/DiffForms/diffforms-d-of-oneform1.pg index 9f481b2ed2..6c0d95738d 100644 --- a/Pending/OKState/DiffForms/diffforms-d-of-oneform1.pg +++ b/Pending/OKState/DiffForms/diffforms-d-of-oneform1.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -57,7 +57,7 @@ Compute [____________]{"$a*x*y"}{10} [`dz \wedge dx + {}`] [____________]{"-$a*x*z"}{10} [`dx \wedge dy`] -[@ AnswerFormatHelp("formulas") @]* +[@ helpLink("formulas") @]* END_PGML ENDDOCUMENT(); diff --git a/Pending/OKState/DiffForms/diffforms-d-of-twoform1.pg b/Pending/OKState/DiffForms/diffforms-d-of-twoform1.pg index 01f4451f94..a2f14a9aca 100644 --- a/Pending/OKState/DiffForms/diffforms-d-of-twoform1.pg +++ b/Pending/OKState/DiffForms/diffforms-d-of-twoform1.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -54,14 +54,14 @@ Let [`\omega = ([$a]x+[$b]y+[$c]z) \, dy \wedge dz + xe^{[$d] y} \, dz \wedge d [`d \omega ={}`] [____________]{"$a+$d*x*e^($d y)+x*y"}{30} [`dx \wedge dy \wedge dz \quad`] -[@ AnswerFormatHelp("formulas") @]* +[@ helpLink("formulas") @]* Let [`\eta = ([$a]x^2+[$b]y^2+[$c]z^2) \, dx \wedge dz + [$d] x^2 \, dx \wedge dy`]. Compute [`d \eta ={}`] [____________]{"-2*$b*y"}{30} [`dx \wedge dy \wedge dz \quad`] -[@ AnswerFormatHelp("formulas") @]* +[@ helpLink("formulas") @]* Let [`\alpha = yz^{[$a]} \, dy \wedge dz + @@ -71,7 +71,7 @@ xy^{[$c]} \, dx \wedge dy`]. Compute [`d \alpha ={}`] [____________]{"0"}{30} [`dx \wedge dy \wedge dz \quad`] -[@ AnswerFormatHelp("formulas") @]* +[@ helpLink("formulas") @]* END_PGML diff --git a/Pending/OKState/DiffForms/diffforms-oneform-fundthm1.pg b/Pending/OKState/DiffForms/diffforms-oneform-fundthm1.pg index b59d7207c5..b4cec285a0 100644 --- a/Pending/OKState/DiffForms/diffforms-oneform-fundthm1.pg +++ b/Pending/OKState/DiffForms/diffforms-oneform-fundthm1.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -58,11 +58,11 @@ Compute [____________]{"$a*x"}{10} [`dy + {}`] [____________]{"2z"}{10} [`dz`] -[@ AnswerFormatHelp("formulas") @]* +[@ helpLink("formulas") @]* If [`C`] is a path from [`(1,1,0)`] to [`([$b],[$c],[$d])`], compute: -[`\int_C df = {}`] [____________]{"$a*$b*$c + ($d)^2 - ($a)"}{30} [@ AnswerFormatHelp("numbers") @]* +[`\int_C df = {}`] [____________]{"$a*$b*$c + ($d)^2 - ($a)"}{30} [@ helpLink("numbers") @]* END_PGML ENDDOCUMENT(); diff --git a/Pending/OKState/DiffForms/diffforms-oneform-integral1.pg b/Pending/OKState/DiffForms/diffforms-oneform-integral1.pg index efdfbd005e..2ab5810895 100644 --- a/Pending/OKState/DiffForms/diffforms-oneform-integral1.pg +++ b/Pending/OKState/DiffForms/diffforms-oneform-integral1.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -53,7 +53,7 @@ Let [`\omega = [$a] x \, dx + y \, dz`] be a 1-form. Let Evaluate: [`\int_C \omega ={}`] [____________]{"($c*$d+$a*($b)^2)/2"}{25} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* END_PGML ENDDOCUMENT(); diff --git a/Pending/OKState/DiffForms/diffforms-oneform-integrals1.pg b/Pending/OKState/DiffForms/diffforms-oneform-integrals1.pg index 83c0b2f245..eec46b381b 100644 --- a/Pending/OKState/DiffForms/diffforms-oneform-integrals1.pg +++ b/Pending/OKState/DiffForms/diffforms-oneform-integrals1.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -57,7 +57,7 @@ $PAR ={} \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BRBR where \(L\) is the straight line from the point \((0,$d,1)\) to the point \((1,$d,1)\). $PAR @@ -66,7 +66,7 @@ $PAR ={} \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BRBR where \(I\) is the straight line from the point \((0,0,0)\) to the point \(($a,$b,$c)\). $PAR @@ -75,7 +75,7 @@ $PAR ={} \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BRBR where \(C\) is the graph of \(y = $d x^2 \) in the plane for \( 0 \leq x \leq 1 \) END_TEXT @@ -96,14 +96,14 @@ ANS( $answer3->cmp() ); Context()->texStrings; BEGIN_SOLUTION -\( +\( \displaystyle \int_L $a x^2 z \, dx + $b e^z \,dy + $c \cos(xyz) \, dz = \int_0^1 $a x^2 (1) \, dx = $answer1 \) $PAR -\( +\( \displaystyle \int_I xz \, dx + z^2 \,dy + yz \, dz = @@ -111,7 +111,7 @@ $PAR = $answer2 \) $PAR -\( +\( \displaystyle \int_C $a xy \, dx + $b x^{$c} \,dy = diff --git a/Pending/OKState/DiffForms/diffforms-stokes-threeform1.pg b/Pending/OKState/DiffForms/diffforms-stokes-threeform1.pg index 06f45dbe33..1f024d9025 100644 --- a/Pending/OKState/DiffForms/diffforms-stokes-threeform1.pg +++ b/Pending/OKState/DiffForms/diffforms-stokes-threeform1.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -57,12 +57,12 @@ First apply the theorem ([`B`] is the inside of the unit sphere): [``\int_S \omega = \int_B ``] [____________]{"$a"}{15} [`dx \wedge dy \wedge dz \quad`] -[@ AnswerFormatHelp("formulas") @]* +[@ helpLink("formulas") @]* Now compute the integral: [``\int_S \omega ={}``] [____________]{"$a*(4/3)*pi"}{25} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* _*Hint:* The volume of the inside of the unit sphere is [`\frac{4}{3}\pi.`]_ END_PGML diff --git a/Pending/OKState/DiffForms/diffforms-stokes-twoform1.pg b/Pending/OKState/DiffForms/diffforms-stokes-twoform1.pg index 7502b575c5..af5428b739 100644 --- a/Pending/OKState/DiffForms/diffforms-stokes-twoform1.pg +++ b/Pending/OKState/DiffForms/diffforms-stokes-twoform1.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -59,8 +59,8 @@ First apply the theorem: [``\int_C \omega = \int_S``] [____________]{"0"}{10} [`dy \wedge dz + {}`] [____________]{"0"}{10} [`dz \wedge dx + {}`] -[____________]{"-$a"}{10} [`dx \wedge dy`] -[@ AnswerFormatHelp("formulas") @]* +[____________]{"-$a"}{10} [`dx \wedge dy`] +[@ helpLink("formulas") @]* Above, [`S`] is the unit disc in the [`xy`]-plane (the inside of the unit circle). @@ -69,7 +69,7 @@ Now compute the integral: [``\int_C \omega ={}``] [____________]{"-$a*pi"}{25} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* END_PGML ############################ diff --git a/Pending/OKState/DiffForms/diffforms-threeform-integrals1.pg b/Pending/OKState/DiffForms/diffforms-threeform-integrals1.pg index ec8ecfdd19..344e32eb0e 100644 --- a/Pending/OKState/DiffForms/diffforms-threeform-integrals1.pg +++ b/Pending/OKState/DiffForms/diffforms-threeform-integrals1.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -55,7 +55,7 @@ $PAR \) = \{ ans_rule(30) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BRBR where \(R\) is the region \( 0 \leq x \leq 1 \), \( 0 \leq y \leq 1\), \( 0 \leq z \leq 1 \). $PAR @@ -64,7 +64,7 @@ $PAR \) = \{ ans_rule(30) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BRBR where \(R\) is the same region as above. END_TEXT @@ -83,7 +83,7 @@ ANS( $answer2->cmp() ); Context()->texStrings; BEGIN_SOLUTION -\( +\( \displaystyle \int_R ($a xy^2 z^3 + $b) \, dx \wedge dy \wedge dz = @@ -93,7 +93,7 @@ dx \, dy \, dz = $answer1 \) $PAR -\( +\( \displaystyle \int_R ($a xy^2 z^3 + $b) \, dy \wedge dx \wedge dz = diff --git a/Pending/OKState/DiffForms/diffforms-twoform-integrals1.pg b/Pending/OKState/DiffForms/diffforms-twoform-integrals1.pg index 4bfe11ca80..6c0f927f10 100644 --- a/Pending/OKState/DiffForms/diffforms-twoform-integrals1.pg +++ b/Pending/OKState/DiffForms/diffforms-twoform-integrals1.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -56,11 +56,11 @@ $PAR = {} \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BRBR where \(S\) is the surface given by \(z=x^2-y^2\), \( 0 \leq x \leq 1 \), \( 0 \leq y \leq 1\), oriented in the standard way, -that is with the unit normal going upwards. +that is with the unit normal going upwards. $PAR \(\displaystyle \int_T @@ -70,7 +70,7 @@ $c x \,dx \wedge dy = {} \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BRBR where \(T\) is the surface parametrized by \(u,v\) as \( x = u+v^2 \), @@ -94,7 +94,7 @@ ANS( $answer2->cmp() ); Context()->texStrings; BEGIN_SOLUTION -\( +\( \displaystyle \int_S $a xy \, dy \wedge dz + $b y z \,dx \wedge dy = @@ -115,7 +115,7 @@ $b y (x^2-y^2) \, (1) = $answer1 \) $PAR -\( +\( \displaystyle \int_T $a z \, dy \wedge dz + diff --git a/Pending/OKState/DiffForms/diffforms-wedge-oneforms1.pg b/Pending/OKState/DiffForms/diffforms-wedge-oneforms1.pg index 9cc3819ca2..20317bfba5 100644 --- a/Pending/OKState/DiffForms/diffforms-wedge-oneforms1.pg +++ b/Pending/OKState/DiffForms/diffforms-wedge-oneforms1.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -58,7 +58,7 @@ Compute [____________]{"$d*$a*y"}{10} [`dz \wedge dx + {}`] [____________]{"$b*x^2-($c*$a*z)"}{10} [`dx \wedge dy`] -[@ AnswerFormatHelp("formulas") @]* +[@ helpLink("formulas") @]* END_PGML ENDDOCUMENT(); diff --git a/Pending/OKState/DiffForms/diffforms-zeroform-integrals1.pg b/Pending/OKState/DiffForms/diffforms-zeroform-integrals1.pg index ea62a28d6d..b460147a88 100644 --- a/Pending/OKState/DiffForms/diffforms-zeroform-integrals1.pg +++ b/Pending/OKState/DiffForms/diffforms-zeroform-integrals1.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,13 +51,13 @@ BEGIN_PGML Let [`f=[$a]xy+z^2`] be a 0-form. Let [`P=([$b],[$c],[$d])`] and [`Q=(0,0,1)`] be positively oriented. Evaluate: [`\int_P f ={}`] [____________]{"$a*$b*$c + ($d)^2"}{25} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* [`\int_{-P} f ={}`] [____________]{"-($a*$b*$c + ($d)^2)"}{25} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* [`\int_{P-Q} f ={}`] [____________]{"$a*$b*$c + ($d)^2 - 1"}{25} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* END_PGML ENDDOCUMENT(); diff --git a/Pending/OKState/FourierSeries/expected-ders1.pg b/Pending/OKState/FourierSeries/expected-ders1.pg index 5c72f18ac7..61f9ba5ebf 100644 --- a/Pending/OKState/FourierSeries/expected-ders1.pg +++ b/Pending/OKState/FourierSeries/expected-ders1.pg @@ -26,7 +26,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl" ); diff --git a/Pending/OKState/FourierSeries/finite-fourier2.pg b/Pending/OKState/FourierSeries/finite-fourier2.pg index 506c1196e8..5a9096a6ea 100644 --- a/Pending/OKState/FourierSeries/finite-fourier2.pg +++ b/Pending/OKState/FourierSeries/finite-fourier2.pg @@ -27,12 +27,12 @@ ########################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -90,7 +90,7 @@ $BR \(b_4 = {}\) \{ ans_rule(10) \} $BR $BR -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; @@ -107,4 +107,4 @@ ANS($b2->cmp); ANS($b3->cmp); ANS($b4->cmp); -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/Pending/OKState/FourierSeries/finite-fourier3.pg b/Pending/OKState/FourierSeries/finite-fourier3.pg index 00636e972c..8ec384ec1c 100644 --- a/Pending/OKState/FourierSeries/finite-fourier3.pg +++ b/Pending/OKState/FourierSeries/finite-fourier3.pg @@ -28,7 +28,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -59,7 +59,7 @@ and \[ \int_{-\pi}^\pi f(t) \sin( n t) \, dt = 0, \] -for all \(n\), and +for all \(n\), and \[ \int_{-\pi}^\pi f(t) \cos( n t) \, dt = 0 \] @@ -71,7 +71,7 @@ What is \(f(t)\) for \(t\) between \(-\pi\) and \(\pi\). $PAR \(f(t)=\) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Pending/OKState/FourierSeries/fourier-series1.pg b/Pending/OKState/FourierSeries/fourier-series1.pg index 8b39763585..e157a421b8 100644 --- a/Pending/OKState/FourierSeries/fourier-series1.pg +++ b/Pending/OKState/FourierSeries/fourier-series1.pg @@ -28,7 +28,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGchoicemacros.pl", "PGcourse.pl" ); @@ -67,7 +67,7 @@ $SPACE $SPACE $SPACE \(\displaystyle \sum_{n=1}^{\infty} \) \{ ans_rule(25) \} \(\cos(n t) + {}\) \{ ans_rule(25) \} \(\sin(n t)\). $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Pending/OKState/LinearAlgebra/eigenvectors1.pg b/Pending/OKState/LinearAlgebra/eigenvectors1.pg index a9de8c2112..5735f26046 100644 --- a/Pending/OKState/LinearAlgebra/eigenvectors1.pg +++ b/Pending/OKState/LinearAlgebra/eigenvectors1.pg @@ -23,7 +23,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -72,7 +72,7 @@ Context()->texStrings; BEGIN_TEXT The matrix \($A\) has eigenvalues -\( \lambda_1 = $lambda1 \) and \( \lambda_2 = $lambda2 \). +\( \lambda_1 = $lambda1 \) and \( \lambda_2 = $lambda2 \). Find the corresponding eigenvectors. $PAR @@ -81,7 +81,7 @@ $PAR and \( \ {\vec{v}_2} = \) \{ $v2->ans_array(5) \} -\{ AnswerFormatHelp("matrices") \} +\{ helpLink("matrices") \} END_TEXT Context()->normalStrings; @@ -104,4 +104,4 @@ ANS($v2->cmp( COMMENT('Given distinct real eigenvalues, find eigenvectors.'); -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/Pending/OKState/ODE/first-order/autonomous1.pg b/Pending/OKState/ODE/first-order/autonomous1.pg index 5df4e9e356..9a329ddd96 100644 --- a/Pending/OKState/ODE/first-order/autonomous1.pg +++ b/Pending/OKState/ODE/first-order/autonomous1.pg @@ -24,7 +24,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -72,20 +72,20 @@ if ($func->eval(x=>$avg3) > 0) { ############################################################## BEGIN_PGML -A function [:x(t):] satisfies the differential equation +A function [:x(t):] satisfies the differential equation >>[`` \frac{dx}{dt} = [$func]. ``]<< Compute the following limits. You can use words like "Infinity" and "DNE" if you need to. If [:x(0) = [$avg1]:], then -[``\lim_{t\to\infty} x(t) = ``] [___________]{"$lim1"} [@ AnswerFormatHelp("numbers") @]* +[``\lim_{t\to\infty} x(t) = ``] [___________]{"$lim1"} [@ helpLink("numbers") @]* If [:x(0) = [$avg2]:], then -[``\lim_{t\to\infty} x(t) = ``] [___________]{"$lim2"} [@ AnswerFormatHelp("numbers") @]* +[``\lim_{t\to\infty} x(t) = ``] [___________]{"$lim2"} [@ helpLink("numbers") @]* If [:x(0) = [$avg3]:], then -[``\lim_{t\to\infty} x(t) = ``] [___________]{"$lim3"} [@ AnswerFormatHelp("numbers") @]* +[``\lim_{t\to\infty} x(t) = ``] [___________]{"$lim3"} [@ helpLink("numbers") @]* END_PGML ############################################################## diff --git a/Pending/OKState/ODE/first-order/autonomous2.pg b/Pending/OKState/ODE/first-order/autonomous2.pg index fbdb647d3d..223028bafd 100644 --- a/Pending/OKState/ODE/first-order/autonomous2.pg +++ b/Pending/OKState/ODE/first-order/autonomous2.pg @@ -24,7 +24,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -67,7 +67,7 @@ Let [:x(t):] be the solution to [:x'=f(x):] and [:x(0) = [$limini]:]. Compute: [``\lim_{t\to\infty} x(t) = ``] -[______________]{"$lim"} [@ AnswerFormatHelp("numbers") @]* +[______________]{"$lim"} [@ helpLink("numbers") @]* END_PGML ############################################################## diff --git a/Pending/OKState/ODE/first-order/substitution1.pg b/Pending/OKState/ODE/first-order/substitution1.pg index 7f28b5eff6..fe9fe20e38 100644 --- a/Pending/OKState/ODE/first-order/substitution1.pg +++ b/Pending/OKState/ODE/first-order/substitution1.pg @@ -18,12 +18,12 @@ ############################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -54,9 +54,9 @@ x y' = $a y + $b x , \] $PAR -\( y = \) +\( y = \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Pending/OKState/ODE/first-order/substitution2.pg b/Pending/OKState/ODE/first-order/substitution2.pg index d96b9a387d..c9ee503550 100644 --- a/Pending/OKState/ODE/first-order/substitution2.pg +++ b/Pending/OKState/ODE/first-order/substitution2.pg @@ -18,12 +18,12 @@ ############################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -53,9 +53,9 @@ e^y y' = e^y + $a x , \] $PAR -\( y = \) +\( y = \) \{ ans_rule(50) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Pending/OKState/ODE/lin-systems/matrixexponential4.pg b/Pending/OKState/ODE/lin-systems/matrixexponential4.pg index b4d205b109..e4e486669b 100644 --- a/Pending/OKState/ODE/lin-systems/matrixexponential4.pg +++ b/Pending/OKState/ODE/lin-systems/matrixexponential4.pg @@ -26,7 +26,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGmatrixmacros.pl", "PGcourse.pl" ); @@ -87,14 +87,14 @@ Compute the matrix exponential $PAR \{ mbox("\( e^{tA} = \)", $matrix_exp->ans_array(20), - AnswerFormatHelp("formulas").$BR.AnswerFormatHelp("matrices")) + helpLink("formulas").$BR.helpLink("matrices")) \} $PAR Next, use the exponential to find the solution to \(\vec{x}' = A \vec{x}\) with initial condition \(\vec{x}(0) = $v \): $PAR \{ mbox("\( \vec{x}(t) = \)", $sol->ans_array(40), - AnswerFormatHelp("formulas").$BR.AnswerFormatHelp("matrices")) + helpLink("formulas").$BR.helpLink("matrices")) \} END_TEXT Context()->normalStrings; diff --git a/Pending/OKState/ODE/lin-systems/matrixexponential5.pg b/Pending/OKState/ODE/lin-systems/matrixexponential5.pg index 3a4f9d0073..f4636e2795 100644 --- a/Pending/OKState/ODE/lin-systems/matrixexponential5.pg +++ b/Pending/OKState/ODE/lin-systems/matrixexponential5.pg @@ -27,7 +27,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGmatrixmacros.pl", "PGcourse.pl" ); @@ -92,14 +92,14 @@ the term with \(t^2\)) of $PAR \{ mbox("\( e^{tA} \approx \)", $approxetA->ans_array(20), - AnswerFormatHelp("formulas").$BR.AnswerFormatHelp("matrices")) + helpLink("formulas").$BR.helpLink("matrices")) \} $PAR Next, use the above approximation to the exponential to find an approximation (for small \(t\)) of the solution to \(\vec{x}' = A \vec{x}\) with initial condition \(\vec{x}(0) = $v \): $PAR \{ mbox("\( \vec{x}(t) \approx \)", $approxsol->ans_array(40), - AnswerFormatHelp("formulas").$BR.AnswerFormatHelp("matrices")) + helpLink("formulas").$BR.helpLink("matrices")) \} END_TEXT Context()->normalStrings; @@ -119,7 +119,7 @@ The Taylor series up to second order is \[ e^{tA} \approx I + tA + \frac{t^2}{2}A^2 = -$id + t $A + t^2 $halfAsq +$id + t $A + t^2 $halfAsq = $approxetA \] diff --git a/Pending/OKState/ODE/lin-systems/matrixexponential6.pg b/Pending/OKState/ODE/lin-systems/matrixexponential6.pg index 413e0cafbd..b2835f23b4 100644 --- a/Pending/OKState/ODE/lin-systems/matrixexponential6.pg +++ b/Pending/OKState/ODE/lin-systems/matrixexponential6.pg @@ -27,7 +27,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGmatrixmacros.pl", "PGcourse.pl" ); @@ -88,7 +88,7 @@ Compute the matrix exponential $PAR \{ mbox("\( e^{tA} = \)", $matrix_exp->ans_array(20), - AnswerFormatHelp("formulas").$BR.AnswerFormatHelp("matrices")) + helpLink("formulas").$BR.helpLink("matrices")) \} END_TEXT Context()->normalStrings; diff --git a/Pending/OKState/ODE/lin-systems/rewrite-second-order-to-sys1.pg b/Pending/OKState/ODE/lin-systems/rewrite-second-order-to-sys1.pg index 026c95ef20..05540a5119 100644 --- a/Pending/OKState/ODE/lin-systems/rewrite-second-order-to-sys1.pg +++ b/Pending/OKState/ODE/lin-systems/rewrite-second-order-to-sys1.pg @@ -28,7 +28,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -72,14 +72,14 @@ $PAR \( x' = {} \) \{ ans_rule(5) \} \( x + {} \) \{ ans_rule(5) \} \( y + {} \) -\{ ans_rule(5) \} -\{ AnswerFormatHelp("numbers") \} +\{ ans_rule(5) \} +\{ helpLink("numbers") \} $PAR \( y' = {} \) \{ ans_rule(5) \} \( x + {} \) \{ ans_rule(5) \} \( y + {} \) -\{ ans_rule(5) \} -\{ AnswerFormatHelp("numbers") \} +\{ ans_rule(5) \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; @@ -105,7 +105,7 @@ BEGIN_SOLUTION As \( x'=y \), that is the first equation. $PAR For the second equation, substitute \( x'' = y' \) and \( x' = y\) into -\( x'' + $a x' + $b x + $c = 0\) so +\( x'' + $a x' + $b x + $c = 0\) so \( y' + $a y + $b x + $c = 0\). Now solve for \(y'\), that is, \( y' = - $b x - $a y - $c \). diff --git a/Pending/OKState/ODE/lin-systems/rewrite-second-order-to-sys2.pg b/Pending/OKState/ODE/lin-systems/rewrite-second-order-to-sys2.pg index f95da6e310..25e64bb0d6 100644 --- a/Pending/OKState/ODE/lin-systems/rewrite-second-order-to-sys2.pg +++ b/Pending/OKState/ODE/lin-systems/rewrite-second-order-to-sys2.pg @@ -28,7 +28,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -69,11 +69,11 @@ what \(x'\) and \(y'\) are in terms of \(x\) and \(y\): $PAR \( x' = {} \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $PAR \( y' = {} \) \{ ans_rule(30) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; @@ -95,7 +95,7 @@ BEGIN_SOLUTION As \( x'=y \), that is the first equation. $PAR For the second equation, substitute \( x'' = y' \) and \( x' = y\) into -\( x'' = \sin($a t) x' + $b t x \) so +\( x'' = \sin($a t) x' + $b t x \) so \( y' = \sin($a t) y + $b t x \). END_SOLUTION Context()->normalStrings; diff --git a/Pending/OKState/ODE/nonlin-systems/convert-equation-to-1st-ord-sys-1.pg b/Pending/OKState/ODE/nonlin-systems/convert-equation-to-1st-ord-sys-1.pg index 3ac31fc84e..57ac5ca72e 100644 --- a/Pending/OKState/ODE/nonlin-systems/convert-equation-to-1st-ord-sys-1.pg +++ b/Pending/OKState/ODE/nonlin-systems/convert-equation-to-1st-ord-sys-1.pg @@ -26,7 +26,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -61,11 +61,11 @@ to a nonlinear first order system in \(x\) and \(y\) where \(y\) is the derivati $PAR \(x' = \) \{ ans_rule(50); \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $PAR \(y' = \) \{ ans_rule(50); \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Pending/OKState/ODE/nonlin-systems/find-crit-points-list-1.pg b/Pending/OKState/ODE/nonlin-systems/find-crit-points-list-1.pg index 357edc92c6..6cbbd9881d 100644 --- a/Pending/OKState/ODE/nonlin-systems/find-crit-points-list-1.pg +++ b/Pending/OKState/ODE/nonlin-systems/find-crit-points-list-1.pg @@ -26,7 +26,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGcourse.pl", ); @@ -74,7 +74,7 @@ y' & = $funy. Enter the points as a comma separated list: $PAR \{ ans_rule(70); \} -\{ AnswerFormatHelp("points") \} +\{ helpLink("points") \} END_TEXT Context()->normalStrings; diff --git a/Pending/OKState/ODE/nonlin-systems/linearization-only-1.pg b/Pending/OKState/ODE/nonlin-systems/linearization-only-1.pg index f21a9f3be2..6a526d441d 100644 --- a/Pending/OKState/ODE/nonlin-systems/linearization-only-1.pg +++ b/Pending/OKState/ODE/nonlin-systems/linearization-only-1.pg @@ -26,7 +26,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGcourse.pl", ); @@ -94,7 +94,7 @@ u \\ v \end{bmatrix} \) $SPACE $SPACE -\{ AnswerFormatHelp("matrices") \} +\{ helpLink("matrices") \} END_TEXT Context()->normalStrings; diff --git a/Pending/OKState/ODE/nonlin-systems/pendulum1.pg b/Pending/OKState/ODE/nonlin-systems/pendulum1.pg index ed8589af20..15ca3f1235 100644 --- a/Pending/OKState/ODE/nonlin-systems/pendulum1.pg +++ b/Pending/OKState/ODE/nonlin-systems/pendulum1.pg @@ -24,7 +24,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserPopUp.pl", "PGML.pl", "PGcourse.pl", @@ -91,24 +91,24 @@ We write the equation as a system [` \theta' = \omega `] -[` \omega' = `] [_____________]{"-mu*omega-($g/$L)*sin(theta)"}{50} [@ AnswerFormatHelp("formulas") @]* +[` \omega' = `] [_____________]{"-mu*omega-($g/$L)*sin(theta)"}{50} [@ helpLink("formulas") @]* There are infinitely many critical points [`(\theta,\omega)`] and they are all of the form ([`k`] is an integer): -[`\Bigl( `] [_______]{"pi"} [` k , \ 0 \Bigr) `] [@ $SPACE @]* [@ AnswerFormatHelp("numbers") @]* +[`\Bigl( `] [_______]{"pi"} [` k , \ 0 \Bigr) `] [@ $SPACE @]* [@ helpLink("numbers") @]* The Jacobian matrix is [____________________]*{$jac} [@ $BR @]* -[@ AnswerFormatHelp("formulas") @]* -[@ AnswerFormatHelp("matrices") @]* +[@ helpLink("formulas") @]* +[@ helpLink("matrices") @]* At a critical point for an odd [`k`], as function of [`\mu`], the two eigenvalues are [_________]{$lambdasodd}{50} -[@ AnswerFormatHelp("formulas") @]* +[@ helpLink("formulas") @]* At a critical point for an even [`k`], as function of [`\mu`], the two eigenvalues are [_________]{$lambdaseven}{50} -[@ AnswerFormatHelp("formulas") @]* +[@ helpLink("formulas") @]* Suppose that [` \mu^2 < \frac{4g}{L} = \frac{4([$g])}{[$L]} `], that is, the friction is small. diff --git a/Pending/OKState/ODE/nonlin-systems/pendulum2.pg b/Pending/OKState/ODE/nonlin-systems/pendulum2.pg index 74f21f3d2b..521ae6050b 100644 --- a/Pending/OKState/ODE/nonlin-systems/pendulum2.pg +++ b/Pending/OKState/ODE/nonlin-systems/pendulum2.pg @@ -24,7 +24,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserPopUp.pl", "PGML.pl", "PGcourse.pl", @@ -61,7 +61,7 @@ if (-(2*9.8/$L) + ($omega0)**2 - (2*9.8/$L)*cos($theta0) >= 0) { BEGIN_PGML Consider the nonlinear pendulum equation [` \theta'' + \left( \frac{g}{L} \right) \sin \theta = 0 . `] -The [`g`] denotes the gravitational acceleration +The [`g`] denotes the gravitational acceleration and [`L`] denotes length. Suppose gravity [`g`] is 9.8 meters per second squared, and the length of the pendulum is @@ -73,12 +73,12 @@ Find the formula for the trajectory of the pendulum. _Write "theta" for [`\theta`]._ [`\omega^2 = `] [_________________________________]{"(2*9.8/$L)cos(theta) + ($omega0)^2 - (2*9.8/$L)cos($theta0)"} -[@ AnswerFormatHelp("formulas") @]* +[@ helpLink("formulas") @]* Now find the maximum angular velocity of the pendulum given these initial conditions. [`\omega_{\text{max}} = `] [_________________________________]{"sqrt((2*9.8/$L) + ($omega0)^2 - (2*9.8/$L)cos($theta0))"} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* Does the pendulum swing back and forth or keep rotating around its axis? [@ $popup->menu() @]* diff --git a/Pending/OKState/ODE/nonlin-systems/pendulum3.pg b/Pending/OKState/ODE/nonlin-systems/pendulum3.pg index d99646c804..38dff180e2 100644 --- a/Pending/OKState/ODE/nonlin-systems/pendulum3.pg +++ b/Pending/OKState/ODE/nonlin-systems/pendulum3.pg @@ -24,7 +24,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -47,7 +47,7 @@ $L = random(2,10,1); BEGIN_PGML Consider the nonlinear pendulum equation [` \theta'' + \left( \frac{g}{L} \right) \sin \theta = 0 . `] -The [`g`] denotes the gravitational acceleration +The [`g`] denotes the gravitational acceleration and [`L`] denotes length. Suppose gravity [`g`] is 9.8 meters per second squared, and the length of the pendulum is @@ -59,12 +59,12 @@ Find the formula for the trajectory of the pendulum. _Write "theta" for [`\theta`]._ [`\omega^2 = `] [_________________________________]{"(2*9.8/$L)cos(theta) + ($omega0)^2 - (2*9.8/$L)cos($theta0)"} -[@ AnswerFormatHelp("formulas") @]* +[@ helpLink("formulas") @]* Now find the maximum angule that the pendulum attains given these initial conditions. [`\theta_{\text{max}} = `] [_________________________________]{"arccos( - ($L/(2*9.8)) ($omega0)^2 + cos($theta0))"} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* END_PGML diff --git a/Pending/OKState/ODE/numerical/euler1.pg b/Pending/OKState/ODE/numerical/euler1.pg index 6be51c8d3c..7ced6f5a8a 100644 --- a/Pending/OKState/ODE/numerical/euler1.pg +++ b/Pending/OKState/ODE/numerical/euler1.pg @@ -23,7 +23,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -32,7 +32,7 @@ loadMacros( TEXT(beginproblem()); $showPartialCorrectAnswers = 1; - + Context("Numeric"); $a = non_zero_random(2,5,1); @@ -76,11 +76,11 @@ $error4 = Compute("|$realans-$yy4|"); ###################################################### BEGIN_PGML -Consider the differential equation [` y' = [$a] y `] +Consider the differential equation [` y' = [$a] y `] with initial condition [` y(0) = [$y0] `]. The actual solution is [` y(1) = {} `] [_________]{"$realans"}{10} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* We wish to analyze what happens to the error when estimating [` y(1) `] @@ -89,33 +89,33 @@ via Euler's method. Start with step size [`h=1`] (1 step). Compute [`y(1) \approx {}`] [_________]{"$yy1"}{10} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* [`\text{Error} \approx {}`] [_________]{"$error1"}{10} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* _*Note:* Remember that the error is the absolute value!_ Let us half the step size to [`h=0.5`] (2 steps). Compute [`y(1) \approx {}`] [_________]{"$yy2"}{10} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* [`\text{Error} \approx {}`] [_________]{"$error2"}{10} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* The error went down by the factor: [`\dfrac{\text{Error}}{\text{Previous error}} \approx {}`] [_________]{"$error2/$error1"}{10} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* Let us half the step size to [`h=0.25`] (4 steps). Compute [`y(1) \approx {}`] [_________]{"$yy4"}{10} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* [`\text{Error} \approx {}`] [_________]{"$error4"}{10} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* The error went down by the factor: [`\dfrac{\text{Error}}{\text{Previous error}} \approx {}`] [_________]{"$error4/$error2"}{10} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* _Euler's method is a first order method so we expect the error to go down by a factor of 0.5 each halving. Of course, that's only very approximate, so the numbers you get above are not exactly 0.5._ diff --git a/Pending/OKState/ODE/numerical/rungekutta1.pg b/Pending/OKState/ODE/numerical/rungekutta1.pg index 3da35ead29..de5e0bcdc8 100644 --- a/Pending/OKState/ODE/numerical/rungekutta1.pg +++ b/Pending/OKState/ODE/numerical/rungekutta1.pg @@ -24,7 +24,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -33,7 +33,7 @@ loadMacros( TEXT(beginproblem()); $showPartialCorrectAnswers = 1; - + Context("Numeric"); $a = non_zero_random(2,5,1); @@ -70,7 +70,7 @@ $y2 = $y; ###################################################### BEGIN_PGML -Consider the differential equation [` y' = [$a] xy `] +Consider the differential equation [` y' = [$a] xy `] with initial condition [` y(0) = [$y0] `]. Recall that Runge-Kutta method has the following formula @@ -92,11 +92,11 @@ Using Runge-Kutta step size [:h = [$step]:]: Estimate [` y([$step]) \approx {} `] [_________]{"$y1"}{10} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* Estimate [` y([$twostep]) \approx {} `] [_________]{"$y2"}{10} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* END_PGML ###################################################### diff --git a/Pending/OKState/ODE/power-series/recenter-series-1.pg b/Pending/OKState/ODE/power-series/recenter-series-1.pg index 8645d7577f..b7a7918684 100644 --- a/Pending/OKState/ODE/power-series/recenter-series-1.pg +++ b/Pending/OKState/ODE/power-series/recenter-series-1.pg @@ -23,7 +23,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -58,7 +58,7 @@ Expand [:f(x) = [$c2] x^2 + [$c1] x + [$c0] :] as a power series around [: [$x0] [___________]{"$a1"}{15} [` (x-[$x0]) + `] [___________]{"$a0"}{15} -[`\quad`] [@ AnswerFormatHelp("numbers") @]* +[`\quad`] [@ helpLink("numbers") @]* END_PGML ################################################# diff --git a/Pending/OKState/ODE/power-series/recurrence1.pg b/Pending/OKState/ODE/power-series/recurrence1.pg index d335a00bd4..5722c34c0c 100644 --- a/Pending/OKState/ODE/power-series/recurrence1.pg +++ b/Pending/OKState/ODE/power-series/recurrence1.pg @@ -23,7 +23,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl" ); @@ -65,13 +65,13 @@ For \( k \geq 0\), $PAR \( a_{k+2} = \) \{ $r1->ans_rule \} \(a_{k+1} + \) \{ $r2->ans_rule \} \(a_k\) . $SPACE -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $PAR -We also have +We also have $PAR \( a_{1} = \) \{ $r0->ans_rule \} \(a_{0}\) . $SPACE -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $PAR Therefore, write the first few terms of a solution where \(y(0) = $y0 \) $PAR @@ -87,7 +87,7 @@ $PAR \(\phantom{y = }\) \{ $a4->ans_rule \} \( x^4 + \cdots \) $SPACE -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/Pending/OKState/ODE/second-order-linear/affine-solution-to-nonhomog-2ndorder.pg b/Pending/OKState/ODE/second-order-linear/affine-solution-to-nonhomog-2ndorder.pg index 86b49e294e..b38e6b9dfc 100644 --- a/Pending/OKState/ODE/second-order-linear/affine-solution-to-nonhomog-2ndorder.pg +++ b/Pending/OKState/ODE/second-order-linear/affine-solution-to-nonhomog-2ndorder.pg @@ -29,7 +29,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "PGcourse.pl", ); @@ -61,19 +61,19 @@ $answer2 = Formula("($b/$a)x + ($c-$b/$a)/($a)"); Context()->texStrings; BEGIN_TEXT Guess an (affine) linear solution -(affine linear is of the form \(ax+b\)) to +(affine linear is of the form \(ax+b\)) to \( y'' + $a y = $b x + $c \). $PAR \( y = {} \) \{ ans_rule(20) \} $PAR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $PAR -Guess an (affine) linear solution to +Guess an (affine) linear solution to \( y'' + y' + $a y = $b x + $c \). $PAR \( y = {} \) \{ ans_rule(20) \} $PAR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Pending/OKState/ODE/second-order-linear/check-linear-indep-two-1.pg b/Pending/OKState/ODE/second-order-linear/check-linear-indep-two-1.pg index d2020643ef..80c2b3404c 100644 --- a/Pending/OKState/ODE/second-order-linear/check-linear-indep-two-1.pg +++ b/Pending/OKState/ODE/second-order-linear/check-linear-indep-two-1.pg @@ -28,7 +28,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "parserPopUp.pl", "PGcourse.pl", @@ -65,7 +65,7 @@ $PAR Solve for \(A\) in \( f(x) = A g(x) \) $BR \( A = {} \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $PAR Is \( A \) constant? \{ $answer2->menu() \} $PAR diff --git a/Pending/OKState/ODE/second-order-linear/check-linear-indep-two-2.pg b/Pending/OKState/ODE/second-order-linear/check-linear-indep-two-2.pg index a50ce87f70..655cbde79c 100644 --- a/Pending/OKState/ODE/second-order-linear/check-linear-indep-two-2.pg +++ b/Pending/OKState/ODE/second-order-linear/check-linear-indep-two-2.pg @@ -28,7 +28,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "parserPopUp.pl", "PGcourse.pl", @@ -65,7 +65,7 @@ $PAR Solve for \(A\) in \( f(x) = A g(x) \) $BR \( A = {} \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $PAR Is \( A \) constant? \{ $answer2->menu() \} $PAR diff --git a/Pending/OKState/ODE/second-order-linear/linear-dependence-1.pg b/Pending/OKState/ODE/second-order-linear/linear-dependence-1.pg index 532a431a9b..1a7d191aa2 100644 --- a/Pending/OKState/ODE/second-order-linear/linear-dependence-1.pg +++ b/Pending/OKState/ODE/second-order-linear/linear-dependence-1.pg @@ -23,7 +23,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -67,15 +67,15 @@ The two functions [:f(x):] and [:g(x):] are linearly dependent. Fill in the mis [:f([$xb]) = [$fb]:] -[:g([$xb]) = :] [___________]{"$gb"} [@ AnswerFormatHelp("numbers") @]* +[:g([$xb]) = :] [___________]{"$gb"} [@ helpLink("numbers") @]* [:f([$xc]) = [$fc]:] -[:g([$xc]) = :] [___________]{"$gc"} [@ AnswerFormatHelp("numbers") @]* +[:g([$xc]) = :] [___________]{"$gc"} [@ helpLink("numbers") @]* [:f([$xd]) = [$fd]:] -[:g([$xd]) = :] [___________]{"$gd"} [@ AnswerFormatHelp("numbers") @]* +[:g([$xd]) = :] [___________]{"$gd"} [@ helpLink("numbers") @]* END_PGML ############################################################## diff --git a/Pending/OKState/ODE/second-order-linear/mass-spring-1.pg b/Pending/OKState/ODE/second-order-linear/mass-spring-1.pg index cd0930cf15..33a747e53a 100644 --- a/Pending/OKState/ODE/second-order-linear/mass-spring-1.pg +++ b/Pending/OKState/ODE/second-order-linear/mass-spring-1.pg @@ -23,7 +23,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl" ); @@ -69,7 +69,7 @@ A [$mass] kg railcar hits a bumper (a spring) at [$speed] m/s, and the spring compresses by [$compress] m. Assume no damping. Find [:k=:] [____________]{"$k"}{25} N/m -[@ $SPACE @]* [@ AnswerFormatHelp("numbers") @]* +[@ $SPACE @]* [@ helpLink("numbers") @]* _*Hint:* Solve the differential equation leaving [:k:] as unknown. The compression of the spring is the maximum displacement. @@ -80,21 +80,21 @@ How far does the spring compress when a [$mass2] kg railcar hits the spring at the same speed? [____________]{"$compress2"}{25} m -[@ $SPACE @]* [@ AnswerFormatHelp("numbers") @]* +[@ $SPACE @]* [@ helpLink("numbers") @]* If the spring would break if it compresses further than [$compresscrit] m, what is the maximum mass of a railcar that can hit it at [$speed] m/s? [____________]{"$masscrit"}{25} kg -[@ $SPACE @]* [@ AnswerFormatHelp("numbers") @]* +[@ $SPACE @]* [@ helpLink("numbers") @]* What is the maximum mass of a railcar that can hit the spring without breaking at [$dspeed] m/s? [____________]{"$masscritdouble"}{25} kg -[@ $SPACE @]* [@ AnswerFormatHelp("numbers") @]* +[@ $SPACE @]* [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/OKState/ODE/second-order-linear/steady-state-periodic-1.pg b/Pending/OKState/ODE/second-order-linear/steady-state-periodic-1.pg index 00c3b55355..0f60c62639 100644 --- a/Pending/OKState/ODE/second-order-linear/steady-state-periodic-1.pg +++ b/Pending/OKState/ODE/second-order-linear/steady-state-periodic-1.pg @@ -26,7 +26,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -57,7 +57,7 @@ Let \(F(t) = $a \sin($b\pi t) + $c \cos($d \pi t)\). Find the steady periodic solution to \(x'' + \sqrt{2}\, x = F(t)\). $PAR \( x(t) = {} \) \{ ans_rule(50) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Pending/OKState/ODE/second-order-linear/steady-state-periodic-2.pg b/Pending/OKState/ODE/second-order-linear/steady-state-periodic-2.pg index e8a53a9bde..d5a24e170b 100644 --- a/Pending/OKState/ODE/second-order-linear/steady-state-periodic-2.pg +++ b/Pending/OKState/ODE/second-order-linear/steady-state-periodic-2.pg @@ -26,7 +26,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -65,7 +65,7 @@ $PAR \{ ans_rule(25) \} \( \sin(n t) \Bigr]\) $SPACE -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Pending/OKState/ODE/second-order-linear/steady-state-periodic-3.pg b/Pending/OKState/ODE/second-order-linear/steady-state-periodic-3.pg index b40b6bca1e..db788f848f 100644 --- a/Pending/OKState/ODE/second-order-linear/steady-state-periodic-3.pg +++ b/Pending/OKState/ODE/second-order-linear/steady-state-periodic-3.pg @@ -26,7 +26,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -57,7 +57,7 @@ Let \(F(t) = $a \sin($b t) + $c \cos($d t)\). Find the steady periodic solution to \(x'' + $bsq \, x = F(t)\). $PAR \( x(t) = {} \) \{ ans_rule(50) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Pending/OKState/ODE/second-order-linear/superposition1.pg b/Pending/OKState/ODE/second-order-linear/superposition1.pg index 4eef7c053d..02154b8bb3 100644 --- a/Pending/OKState/ODE/second-order-linear/superposition1.pg +++ b/Pending/OKState/ODE/second-order-linear/superposition1.pg @@ -28,7 +28,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "PGcourse.pl", ); @@ -70,14 +70,14 @@ Find the solution to $PAR \( y = {} \) \{ ans_rule(40) \} $PAR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $PAR Now find the solution to \( y'' + f(x) y' + g(x) y = $b \sin($a x) + $c e^x \). $PAR \( y = {} \) \{ ans_rule(40) \} $PAR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Pending/OKState/ODE/secondorder-systems/natural-freqs.pg b/Pending/OKState/ODE/secondorder-systems/natural-freqs.pg index c15f03ecac..aab03d50cf 100755 --- a/Pending/OKState/ODE/secondorder-systems/natural-freqs.pg +++ b/Pending/OKState/ODE/secondorder-systems/natural-freqs.pg @@ -27,7 +27,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "unorderedAnswer.pl", "PGcourse.pl", @@ -70,7 +70,7 @@ $answer2 = Compute("sqrt(-$eig2)")->reduce; Context()->texStrings; BEGIN_TEXT -Take the system +Take the system \[ {\vec{x}\,}'' = \begin{bmatrix} @@ -91,7 +91,7 @@ $BR \{ ans_rule(40) \} $BR $BR -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/Pending/OKState/PDE/classify/canon1.pg b/Pending/OKState/PDE/classify/canon1.pg index b6322d0d2c..a2daf195ab 100755 --- a/Pending/OKState/PDE/classify/canon1.pg +++ b/Pending/OKState/PDE/classify/canon1.pg @@ -28,7 +28,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -71,7 +71,7 @@ $BR \( u_{xx} + $aplusb u_{xy} + $atimesb u_{yy} + $c u_x + $d u_y + $e u = 0 \) $BR into characteristic coordinates \(\xi, \eta\), that is the equation should become -\( u_{\xi\eta} + \text{lower order terms} = 0 \). +\( u_{\xi\eta} + \text{lower order terms} = 0 \). $BR The change of coordinates should be linear of the form \( \xi = y+ \cdots \) and \(\eta = y+\cdots \) @@ -89,7 +89,7 @@ $BR \( u_{\xi\eta} + {} \) \{ ans_rule(40) \} \( {} = 0 \) $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Pending/OKState/PDE/classify/canon2.pg b/Pending/OKState/PDE/classify/canon2.pg index aef368df45..373244b22b 100755 --- a/Pending/OKState/PDE/classify/canon2.pg +++ b/Pending/OKState/PDE/classify/canon2.pg @@ -29,7 +29,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "PGcourse.pl", ); @@ -96,7 +96,7 @@ $BR \( u(x,y) = {} \) \{ ans_rule(40) \} $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Pending/OKState/PDE/firstorder/characteristics1.pg b/Pending/OKState/PDE/firstorder/characteristics1.pg index 2cf8c1e66a..da18181e04 100755 --- a/Pending/OKState/PDE/firstorder/characteristics1.pg +++ b/Pending/OKState/PDE/firstorder/characteristics1.pg @@ -28,7 +28,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -87,7 +87,7 @@ $BR \(u = {} \) \{ ans_rule(40) \} $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Pending/OKState/PDE/firstorder/characteristics2.pg b/Pending/OKState/PDE/firstorder/characteristics2.pg index 26cc2003a8..aecbc10a3d 100755 --- a/Pending/OKState/PDE/firstorder/characteristics2.pg +++ b/Pending/OKState/PDE/firstorder/characteristics2.pg @@ -28,7 +28,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -94,7 +94,7 @@ $BR \(u = {} \) \{ ans_rule(40) \} $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Pending/OKState/PDE/firstorder/characteristics3.pg b/Pending/OKState/PDE/firstorder/characteristics3.pg index 5fbf5477b2..12e3d37fd0 100755 --- a/Pending/OKState/PDE/firstorder/characteristics3.pg +++ b/Pending/OKState/PDE/firstorder/characteristics3.pg @@ -28,7 +28,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -85,7 +85,7 @@ picked so that when \(s=t=0\) then \(\xi = x\), and that the equation becomes an ODE in \(s\): $BR \(u_s + {} \) \{ ans_rule(40) \} \( {} = {} \) -\{ ans_rule(40) \} +\{ ans_rule(40) \} $BR with initial condition \(u|_{s=0} = {} \) \{ ans_rule(40) \} @@ -101,7 +101,7 @@ $BR \(u = {} \) \{ ans_rule(40) \} $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Pending/OKState/PDE/firstorder/solve-convect-only1.pg b/Pending/OKState/PDE/firstorder/solve-convect-only1.pg index fc0bf732bd..77b7e2c000 100755 --- a/Pending/OKState/PDE/firstorder/solve-convect-only1.pg +++ b/Pending/OKState/PDE/firstorder/solve-convect-only1.pg @@ -33,7 +33,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -64,13 +64,13 @@ Solve $BR PDE: \( \quad u_t = - $b u_x , \qquad -\infty < x < \infty , \quad t > 0 \) $BR -IC: \( \quad u(x,0) = $c \sin( $a x ) \) +IC: \( \quad u(x,0) = $c \sin( $a x ) \) $BR $BR \(u(x,t) = {} \) \{ ans_rule(40) \} $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Pending/OKState/PDE/firstorder/solve-convect-only2.pg b/Pending/OKState/PDE/firstorder/solve-convect-only2.pg index fb097b828b..1e1258b6bd 100755 --- a/Pending/OKState/PDE/firstorder/solve-convect-only2.pg +++ b/Pending/OKState/PDE/firstorder/solve-convect-only2.pg @@ -32,7 +32,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -66,7 +66,7 @@ $BR $BR And suppose you know that for some fixed time \( t= t_0 \) $BR - \( u(x,t_0) = $c\sin($a x) \) + \( u(x,t_0) = $c\sin($a x) \) $BR $BR Then (write "t0" for \(t_0\)) @@ -74,7 +74,7 @@ $BR \(u(x,0) = {} \) \{ ans_rule(40) \} $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Pending/OKState/PDE/firstorder/traffic1.pg b/Pending/OKState/PDE/firstorder/traffic1.pg index 70d0d8bf8b..1c8ad94548 100755 --- a/Pending/OKState/PDE/firstorder/traffic1.pg +++ b/Pending/OKState/PDE/firstorder/traffic1.pg @@ -26,7 +26,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -92,7 +92,7 @@ $BR \( t = {} \) \{ ans_rule(40) \} $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Pending/OKState/PDE/laplace/dirichpoiss2.pg b/Pending/OKState/PDE/laplace/dirichpoiss2.pg index 416b245792..6bcddf4998 100644 --- a/Pending/OKState/PDE/laplace/dirichpoiss2.pg +++ b/Pending/OKState/PDE/laplace/dirichpoiss2.pg @@ -32,7 +32,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -76,7 +76,7 @@ $a & \text{if } 0 < \theta < \pi \\ \) $PAR \( \displaystyle u(r,\theta) = \frac{1}{2\pi} \int_0^{\pi} \) \{ ans_rule(45) \} \( d \alpha \) -$SPACE \{ AnswerFormatHelp("formulas") \} +$SPACE \{ helpLink("formulas") \} $PAR $BITALIC $BBOLD Note:$EBOLD Use ${LQ}theta${RQ} for \(\theta\) and ${LQ}alpha${RQ} for \(\alpha\), the variable of integration. $EITALIC $PAR @@ -88,7 +88,7 @@ $PAR w(1,\theta) = \theta^2 , \quad -\pi < \theta \leq \pi \) $PAR \( \displaystyle w(r,\theta) = \frac{1}{2\pi} \int_{-\pi}^{\pi} \) \{ ans_rule(45) \} \( d \alpha \) -$SPACE \{ AnswerFormatHelp("formulas") \} +$SPACE \{ helpLink("formulas") \} $PAR $BITALIC $BBOLD Note:$EBOLD Use ${LQ}theta${RQ} for \(\theta\) and ${LQ}alpha${RQ} for \(\alpha\), the variable of integration. $EITALIC END_TEXT diff --git a/Pending/OKState/PDE/laplace/laplace-3d-strip-1.pg b/Pending/OKState/PDE/laplace/laplace-3d-strip-1.pg index a06cc428b1..2e449321d6 100644 --- a/Pending/OKState/PDE/laplace/laplace-3d-strip-1.pg +++ b/Pending/OKState/PDE/laplace/laplace-3d-strip-1.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -57,12 +57,12 @@ BEGIN_TEXT We wish to solve \( \nabla^2 \psi = 0 \) in the region in 3-space given by \( -$a < z < $b \) and \(-\infty < x,y < \infty\). -Suppose that when \( z =-$a \), then \(\psi = $c \) and +Suppose that when \( z =-$a \), then \(\psi = $c \) and when \( z =$b \), then \(\psi = $d \). Suppose that \(\psi\) depends neither on \(x\) nor on \(y\). $PAR \(\psi = {} \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Pending/OKState/PDE/laplace/laplace-annulus1.pg b/Pending/OKState/PDE/laplace/laplace-annulus1.pg index 5071b6bc50..5dd6ba02ff 100644 --- a/Pending/OKState/PDE/laplace/laplace-annulus1.pg +++ b/Pending/OKState/PDE/laplace/laplace-annulus1.pg @@ -24,7 +24,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -70,7 +70,7 @@ that is, \(u\) is a function of \(r\) alone. Write down the Laplacian in this case and solve. $PAR \(u = {} \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Pending/OKState/PDE/laplace/laplace-rect-1.pg b/Pending/OKState/PDE/laplace/laplace-rect-1.pg index bdbf7cd6ea..227d930dde 100644 --- a/Pending/OKState/PDE/laplace/laplace-rect-1.pg +++ b/Pending/OKState/PDE/laplace/laplace-rect-1.pg @@ -24,7 +24,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -56,14 +56,14 @@ Solve the partial differential equation problem $PAR \( \quad u_{xx} + u_{xx} = 0 , \qquad 0 < x < 1 , \quad 0 < y < 1 \) $PAR -\( \quad +\( \quad u(x,0) = $a \sin(\pi x) + $b \sin($c \pi x) , \quad u(x,1) = 0, \quad u(0,y) = 0, \quad u(1,y) = 0. \) $PAR \(u(x,y) = {} \) \{ ans_rule(60) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Pending/OKState/PDE/laplace/laplace-rect-2.pg b/Pending/OKState/PDE/laplace/laplace-rect-2.pg index c5a2244b32..de7aa2ef56 100644 --- a/Pending/OKState/PDE/laplace/laplace-rect-2.pg +++ b/Pending/OKState/PDE/laplace/laplace-rect-2.pg @@ -24,7 +24,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -55,14 +55,14 @@ Solve the partial differential equation problem $PAR \( \quad u_{xx} + u_{xx} = 0 , \qquad 0 < x < 1 , \quad 0 < y < 1 \) $PAR -\( \quad +\( \quad u(x,0) = 0, \quad u(x,1) = $a \sin($b \pi x), \quad u(0,y) = 0, \quad u(1,y) = 0. \) $PAR \(u(x,y) = {} \) \{ ans_rule(60) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Pending/OKState/PDE/laplace/laplace-rect-3.pg b/Pending/OKState/PDE/laplace/laplace-rect-3.pg index 8ce9d4c831..b74689e79b 100644 --- a/Pending/OKState/PDE/laplace/laplace-rect-3.pg +++ b/Pending/OKState/PDE/laplace/laplace-rect-3.pg @@ -24,7 +24,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -55,14 +55,14 @@ Solve the partial differential equation problem $PAR \( \quad u_{xx} + u_{xx} = 0 , \qquad 0 < x < 1 , \quad 0 < y < 1 \) $PAR -\( \quad +\( \quad u(x,0) = 0, \quad u(x,1) = 0, \quad u(0,y) = $a \sin($b \pi x), \quad u(1,y) = 0. \) $PAR \(u(x,y) = {} \) \{ ans_rule(60) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Pending/OKState/PDE/laplace/laplace-rect-4.pg b/Pending/OKState/PDE/laplace/laplace-rect-4.pg index 1c6a0de360..1a252a81b8 100644 --- a/Pending/OKState/PDE/laplace/laplace-rect-4.pg +++ b/Pending/OKState/PDE/laplace/laplace-rect-4.pg @@ -24,7 +24,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -56,14 +56,14 @@ Solve the partial differential equation problem $PAR \( \quad u_{xx} + u_{xx} = 0 , \qquad 0 < x < 1 , \quad 0 < y < 1 \) $PAR -\( \quad +\( \quad u(x,0) = 0 , \quad u(x,1) = $a \sin(\pi x), \quad u(0,y) = $b \sin($c \pi y), \quad u(1,y) = 0. \) $PAR \(u(x,y) = {} \) \{ ans_rule(60) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Pending/OKState/PDE/laplace/laplace-rect-5.pg b/Pending/OKState/PDE/laplace/laplace-rect-5.pg index b85dde7927..84548322e7 100644 --- a/Pending/OKState/PDE/laplace/laplace-rect-5.pg +++ b/Pending/OKState/PDE/laplace/laplace-rect-5.pg @@ -24,7 +24,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -57,14 +57,14 @@ Solve the partial differential equation problem $PAR \( \quad u_{xx} + u_{xx} = 0 , \qquad 0 < x < $a , \quad 0 < y < $b \) $PAR -\( \quad +\( \quad u(x,0) = $c \sin\left( \frac{$d \pi}{$a} x\right) , \quad u(x,$b) = 0, \quad u(0,y) = 0, \quad u($a,y) = 0. \) $PAR \(u(x,y) = {} \) \{ ans_rule(60) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Pending/OKState/PDE/laplace/laplace-rect-6.pg b/Pending/OKState/PDE/laplace/laplace-rect-6.pg index 3067c2623f..00346f452a 100644 --- a/Pending/OKState/PDE/laplace/laplace-rect-6.pg +++ b/Pending/OKState/PDE/laplace/laplace-rect-6.pg @@ -24,7 +24,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -52,14 +52,14 @@ Solve the partial differential equation problem $PAR \( \quad u_{xx} + u_{xx} = 0 , \qquad 0 < x < 1 , \quad 0 < y < 1 \) $PAR -\( \quad +\( \quad u(x,0) = $a , \quad u(x,1) = $a, \quad u(0,y) = $a, \quad u(1,y) = $a. \) $PAR \(u(x,y) = {} \) \{ ans_rule(60) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $PAR Think about it before jumping headlong into a long computation, the answer is really simple if you think about what it would mean if it was the steady state diff --git a/Pending/OKState/PDE/laplace/laplace-strip-1.pg b/Pending/OKState/PDE/laplace/laplace-strip-1.pg index 2c0bfbb13c..e447ab0921 100644 --- a/Pending/OKState/PDE/laplace/laplace-strip-1.pg +++ b/Pending/OKState/PDE/laplace/laplace-strip-1.pg @@ -26,7 +26,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -60,12 +60,12 @@ Context()->texStrings; BEGIN_TEXT We wish to solve \( \nabla^2 \psi = \psi_{xx} + \psi_{yy} = 0 \) in the region in the plane given by \( -$a < x < $b \) and \(-\infty < y < \infty\). Suppose that -when \( x =-$a \), then \(\psi = $c \) and +when \( x =-$a \), then \(\psi = $c \) and when \( x =$b \), then \(\psi = $d \). Suppose that \(\psi\) does not depend on \(y\). $PAR \(\psi = {} \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Pending/OKState/PDE/transforms/fourier-derivatives.pg b/Pending/OKState/PDE/transforms/fourier-derivatives.pg index 6e63d5fe24..39d3f7b334 100755 --- a/Pending/OKState/PDE/transforms/fourier-derivatives.pg +++ b/Pending/OKState/PDE/transforms/fourier-derivatives.pg @@ -27,7 +27,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -61,7 +61,7 @@ $BR $BR \( \displaystyle -\mathcal{F}[f'''(x)] +\mathcal{F}[f'''(x)] = {} \) \{ ans_rule(40) \} @@ -70,7 +70,7 @@ $BR $BR \( \displaystyle -\mathcal{F}[f^{(4)}(x)] +\mathcal{F}[f^{(4)}(x)] = {} \) \{ ans_rule(40) \} @@ -79,14 +79,14 @@ $BR $BR \( \displaystyle -\mathcal{F}[$a f(x) + $b f'(x) + $c f''(x)] -= ( +\mathcal{F}[$a f(x) + $b f'(x) + $c f''(x)] += ( \) \{ ans_rule(40) \} \( ) \, \hat{f}(\xi) \) $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; @@ -112,14 +112,14 @@ $BR $BR \( \displaystyle -\mathcal{F}[f'''(x)] = +\mathcal{F}[f'''(x)] = -i\xi^3 \hat{f}(\xi) \) $BR $BR \( \displaystyle -\mathcal{F}[f^{(4)}(x)] = +\mathcal{F}[f^{(4)}(x)] = \xi^4 \hat{f}(\xi) \) $BR diff --git a/Pending/OKState/PDE/transforms/fourier-exp.pg b/Pending/OKState/PDE/transforms/fourier-exp.pg index faa8b5f4bd..cf03a64527 100755 --- a/Pending/OKState/PDE/transforms/fourier-exp.pg +++ b/Pending/OKState/PDE/transforms/fourier-exp.pg @@ -27,7 +27,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -57,18 +57,18 @@ Compute the Fourier transform of the following functions in the exponential form. Use "xi" for the transformed variable name. That is, we wish to compute \[ -\mathcal{F}[f(x)] = \hat{f}(\xi) = \frac{1}{\sqrt{2\pi}} \int_{-\infty}^\infty f(x) e^{-i\xi x} \, dx +\mathcal{F}[f(x)] = \hat{f}(\xi) = \frac{1}{\sqrt{2\pi}} \int_{-\infty}^\infty f(x) e^{-i\xi x} \, dx \] $BR $BR -\(\displaystyle +\(\displaystyle \mathcal{F}[e^{-$a|x|}] = {} \) \{ ans_rule(40) \} $BR $BR -\(\displaystyle +\(\displaystyle \mathcal{F}[f(x)] = {} \) @@ -77,7 +77,7 @@ $BR where \(f(x)\) is 0 for all \(x\) except \( 0 \leq x \leq $b \) where \(f(x) = $a \) $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Pending/OKState/PDE/transforms/fourier-sin-cos.pg b/Pending/OKState/PDE/transforms/fourier-sin-cos.pg index 8708f4368c..7dab4203a4 100755 --- a/Pending/OKState/PDE/transforms/fourier-sin-cos.pg +++ b/Pending/OKState/PDE/transforms/fourier-sin-cos.pg @@ -27,7 +27,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -59,21 +59,21 @@ f(x) = \int_0^\infty a(\xi) \cos(\xi x) d\xi + \int_0^\infty b(\xi) \sin(\xi x) \] $BR $BR -\(\displaystyle +\(\displaystyle a(\xi) = {} \) \{ ans_rule(40) \} $BR $BR -\(\displaystyle +\(\displaystyle b(\xi) = {} \) \{ ans_rule(40) \} $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; diff --git a/Pending/OKState/PDE/transforms/sin-trans.pg b/Pending/OKState/PDE/transforms/sin-trans.pg index 9615634641..c0d0c4288f 100755 --- a/Pending/OKState/PDE/transforms/sin-trans.pg +++ b/Pending/OKState/PDE/transforms/sin-trans.pg @@ -28,7 +28,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -59,14 +59,14 @@ remind you, the definition is \] $BR $BR -\(\displaystyle +\(\displaystyle \mathcal{F}_s [ e^{-$a x} ] = {} \) \{ ans_rule(40) \} $BR $BR -\(\displaystyle +\(\displaystyle \mathcal{F}_s [ H($a-x) ] = {} \) @@ -77,7 +77,7 @@ where \( H(x) \) is the Heaviside function, which is 0 for negative numbers and for positive numbers. $BR $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; @@ -97,13 +97,13 @@ ANS( $answer2->cmp() ); Context()->texStrings; BEGIN_SOLUTION ${PAR}SOLUTION:$PAR -\(\displaystyle +\(\displaystyle \mathcal{F}_s [ e^{-$a x} ] = $answer1 \) $BR $BR -\(\displaystyle +\(\displaystyle \mathcal{F}_s [ H($a-x) ] = $answer2 \) diff --git a/Pending/OKState/PDE/wave/one-dim-wave-propagation-speed.pg b/Pending/OKState/PDE/wave/one-dim-wave-propagation-speed.pg index 1b3445b018..958e38ef32 100644 --- a/Pending/OKState/PDE/wave/one-dim-wave-propagation-speed.pg +++ b/Pending/OKState/PDE/wave/one-dim-wave-propagation-speed.pg @@ -26,7 +26,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -55,13 +55,13 @@ Suppose the equation for a particular channel is where as usual [`x`] is the position along the channel and [`t`] is time (let us not worry about the units). Suppose the channel is very very long so that we don't have to worry about its ends. -At time [`t=0`] the water is completely quiet with no waves at all, when suddenly a large boulder +At time [`t=0`] the water is completely quiet with no waves at all, when suddenly a large boulder falls into the channel and makes a wave at the position [`x=0.`] At what time will Bob standing at position [`x=[$b]`] see the wave? [`t={}`] [________]{"$b/$a"} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* END_PGML ##################### diff --git a/Pending/OKState/PDE/wave/setup-guitar-2.pg b/Pending/OKState/PDE/wave/setup-guitar-2.pg index 77e2cc19db..143d1c3bff 100644 --- a/Pending/OKState/PDE/wave/setup-guitar-2.pg +++ b/Pending/OKState/PDE/wave/setup-guitar-2.pg @@ -18,12 +18,12 @@ ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGcourse.pl" ); @@ -76,8 +76,8 @@ $PAR $PAR \(u_t(x,0) = {} \) \{ ans_rule(5) \} $PAR -\{ AnswerFormatHelp("numbers") \} $SPACE -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("numbers") \} $SPACE +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; @@ -100,4 +100,4 @@ ANS( $azero->cmp() ); ANS( $ainit->cmp() ); ANS( $atinit->cmp() ); -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/Pending/OKState/PDE/wave/solve-wave-dal4.pg b/Pending/OKState/PDE/wave/solve-wave-dal4.pg index a1e0a01e34..b0022cf585 100644 --- a/Pending/OKState/PDE/wave/solve-wave-dal4.pg +++ b/Pending/OKState/PDE/wave/solve-wave-dal4.pg @@ -26,7 +26,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -55,14 +55,14 @@ Take the problem $PAR \( \quad u_{tt} = $asq u_{xx} , \qquad 0 < x < $b , \quad t > 0 \) $PAR -\( \quad u(0,t) = u($b,t)= 0 \) +\( \quad u(0,t) = u($b,t)= 0 \) $PAR -\( \quad u(x,0) = $c \sin^{$ex}\bigl(\frac{\pi}{$b} x\bigr), \qquad u_t(x,0) = 0 \) +\( \quad u(x,0) = $c \sin^{$ex}\bigl(\frac{\pi}{$b} x\bigr), \qquad u_t(x,0) = 0 \) $PAR Use the d'Alembert solution (notice that something above is odd and periodic): $PAR \(u(x,t) = {} \) \{ ans_rule(50) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} END_TEXT Context()->normalStrings; diff --git a/Pending/OKState/PDE/wave/wave-speed-zero.pg b/Pending/OKState/PDE/wave/wave-speed-zero.pg index fe4cecd0f8..437ab68b13 100644 --- a/Pending/OKState/PDE/wave/wave-speed-zero.pg +++ b/Pending/OKState/PDE/wave/wave-speed-zero.pg @@ -26,7 +26,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserPopUp.pl", "PGML.pl", "PGcourse.pl", @@ -71,13 +71,13 @@ In the wave equation suppose we let [`a`] go to zero. -As [`a`] becomes smaller the frequency of oscillation +As [`a`] becomes smaller the frequency of oscillation [__________]{$freqpop} and the length (in time) of one cycle [__________]{$cyclepop} When [`a=0,`] then the frequency is [__________]{"0"} -([@ AnswerFormatHelp("numbers") @]*) +([@ helpLink("numbers") @]*) and the length of the cycle is [__________]{$zerocyclepop} diff --git a/Pending/OKState/VectorCalculus/cyl-div-1.pg b/Pending/OKState/VectorCalculus/cyl-div-1.pg index b0940fd3e9..29853ba5bb 100644 --- a/Pending/OKState/VectorCalculus/cyl-div-1.pg +++ b/Pending/OKState/VectorCalculus/cyl-div-1.pg @@ -17,12 +17,12 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", ); Context("Numeric"); - + $showPartialCorrectAnswers = 1; $a = random(2,9,1); @@ -54,7 +54,7 @@ $SPACE $SPACE \{ans_rule(40)\} \(\hat{e}_r + {}\) $BR $SPACE $SPACE \{ans_rule(40)\} \(\hat{e}_{\theta} + {}\) $BR $SPACE $SPACE \{ans_rule(40)\} \( \hat{k} \). $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $PAR $BITALIC $BBOLD Note: $EBOLD \(\hat{e}_r\) is the unit vector in the direction of \(r\) and \(\hat{e}_{\theta}\) is the unit vector in the direction of \(\theta\). $EITALIC @@ -64,7 +64,7 @@ Compute the divergence in polar coordinates (as a function of \((r,\theta,z)\). $PAR \(\nabla \cdot \vec{F} = {} \) \{ans_rule(40)\} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; @@ -82,12 +82,12 @@ Context()->texStrings; BEGIN_SOLUTION a) \( -\vec{F} = $answer1_1 \, \hat{e}_r + $answer1_2 \, \hat{e}_{\theta} + $answer1_3 \, \hat{k} +\vec{F} = $answer1_1 \, \hat{e}_r + $answer1_2 \, \hat{e}_{\theta} + $answer1_3 \, \hat{k} \). $PAR b) \( -\nabla \cdot \vec{F} = $answer2 +\nabla \cdot \vec{F} = $answer2 \). END_SOLUTION Context()->normalStrings; diff --git a/Pending/OKState/VectorCalculus/flux-integral-additivity1.pg b/Pending/OKState/VectorCalculus/flux-integral-additivity1.pg index 1675b42915..089aaa357e 100644 --- a/Pending/OKState/VectorCalculus/flux-integral-additivity1.pg +++ b/Pending/OKState/VectorCalculus/flux-integral-additivity1.pg @@ -14,12 +14,12 @@ ########################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -41,11 +41,11 @@ and Then [``\iint_S \vec{F} \cdot \hat{n} \, dS = ``][_________________]{"$a+$b"} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* END_PGML ########################### COMMENT("Check that the student understands that additivity of integrals still works for surface integrals"); -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/Pending/OKState/VectorCalculus/flux-integral1.pg b/Pending/OKState/VectorCalculus/flux-integral1.pg index 86455e30c4..f717a0338d 100644 --- a/Pending/OKState/VectorCalculus/flux-integral1.pg +++ b/Pending/OKState/VectorCalculus/flux-integral1.pg @@ -14,12 +14,12 @@ ########################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -40,7 +40,7 @@ and [`0 \leq y \leq 1`], and the unit normal [`\hat{n}`] points upward. Let [`\ Compute [``\iint_S \vec{F} \cdot \hat{n} \, dS = ``][_________________]{"-(4*$a*$c-3*$b-6*$a)/12"} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* END_PGML ########################### diff --git a/Pending/OKState/VectorCalculus/hessian3d.pg b/Pending/OKState/VectorCalculus/hessian3d.pg index 26e9749f44..cb26d239f3 100644 --- a/Pending/OKState/VectorCalculus/hessian3d.pg +++ b/Pending/OKState/VectorCalculus/hessian3d.pg @@ -19,7 +19,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "parserPopUp.pl", "PGML.pl", "PGcourse.pl", @@ -90,13 +90,13 @@ Compute the Hessian at the origin: [`H_f|_{(0,0,0)} = {}`] [_________]*{$hessian} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* Now compute and check the signs of [``\frac{\partial^2 f}{\partial x^2}\Big|_{(0,0,0)} = {}``] [_________]{"$hd1"} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* [``\det \begin{bmatrix} \frac{\partial^2 f}{\partial x^2}\Big|_{(0,0,0)} & @@ -105,11 +105,11 @@ Now compute and check the signs of \frac{\partial^2 f}{\partial y^2}\Big|_{(0,0,0)} \end{bmatrix} = {} ``] [_________]{"$hd2"} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* [``\det H_f\big|_{(0,0,0)} = {} ``] [_________]{"$hd3"} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* So the critical point is a [_______]{$popup} END_PGML diff --git a/Pending/OKState/VectorCalculus/laplace-operator1.pg b/Pending/OKState/VectorCalculus/laplace-operator1.pg index 31dd94deaf..6de8583974 100644 --- a/Pending/OKState/VectorCalculus/laplace-operator1.pg +++ b/Pending/OKState/VectorCalculus/laplace-operator1.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", ); @@ -59,16 +59,16 @@ BEGIN_TEXT Compute $PAR \(\nabla^2 \bigl( $a x^2 - y^2 + $b z + $c x \bigr) = {} \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $PAR \(\nabla^2 \bigl( $b xy + $a x + $c y + e^x \cos(y) \bigr) = {} \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $PAR \(\nabla^2 \bigl( $c e^x y z\bigl) = {} \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $PAR \(\nabla^2 \bigl( $d \ln (x^2+y^2+z^2) \bigr) = {} \) \{ ans_rule(40) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $PAR $BITALIC $BBOLD Note: $EBOLD diff --git a/Pending/OKState/VectorCalculus/line-integrals-lines1.pg b/Pending/OKState/VectorCalculus/line-integrals-lines1.pg index 34874da708..0ba486ae74 100644 --- a/Pending/OKState/VectorCalculus/line-integrals-lines1.pg +++ b/Pending/OKState/VectorCalculus/line-integrals-lines1.pg @@ -19,7 +19,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -49,25 +49,25 @@ BEGIN_PGML Compute the following integrals: a) If [:C:] is a -straight line from [`(0,0)`] to [`([$a],[$b])`], compute +straight line from [`(0,0)`] to [`([$a],[$b])`], compute [``\int_C [$c] x \, dx + [$d] y \, dy ={}``] [_______________]{"($b^2*$d+$a^2*$c)/2"}{40} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* b) If [:C:] is a -straight line from [`([$e],[$f])`] to [`(1,0)`], compute +straight line from [`([$e],[$f])`] to [`(1,0)`], compute [``\int_C [$g] x^{2}y \, dx + [$h] xy^{3} \, dy ={}``] [_______________]{"-((12*$e+3)*$f^4*$h+(15*$e^3-5*$e^2-5*$e-5)*$f*$g)/60"}{40} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* c) If [:C:] is a straight line from [`(1,0)`] to [`(0,1)`], [`\vec{F} = \langle [$a] \pi \cos(\pi y), \pi \sin (\pi x) + [$b] y \rangle`], and [`\hat{t}`] the unit tangent vector, -compute +compute [``\int_C \vec{F} \cdot \hat{t} \, ds ={}``] [_______________]{"($b+4)/2"}{40} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* d) If [:C:] is a straight line from [`(0,0,0)`] to [`([$a],[$b],[$c])`], @@ -77,10 +77,10 @@ straight line from [`(0,0,0)`] to [`([$a],[$b],[$c])`], [$b] x + [$c] y + [$d] z \rangle`], and [`\hat{t}`] the unit tangent vector, -compute +compute [``\int_C \vec{F} \cdot \hat{t} \, ds ={}``] [_______________]{"($b^2*$h+$a*$b*$g+$a*$c*$f+$a*$b*$e+($c^2+$a^2)*$d+$b*$c^2+2*$a*$b*$c)/2"}{40} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* END_PGML ##################### diff --git a/Pending/OKState/VectorCalculus/line-integrals-lines2.pg b/Pending/OKState/VectorCalculus/line-integrals-lines2.pg index 5b1fe502cf..c13ed1fd9d 100644 --- a/Pending/OKState/VectorCalculus/line-integrals-lines2.pg +++ b/Pending/OKState/VectorCalculus/line-integrals-lines2.pg @@ -19,7 +19,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,17 +48,17 @@ BEGIN_PGML Compute the following integrals: a) If [:C:] is a -straight line from [`(0,0)`] to [`([$a],[$b])`], compute +straight line from [`(0,0)`] to [`([$a],[$b])`], compute [``\int_C ( [$c] x^2 + [$d] y^2 + [$e] x) \, ds ={}``] [_______________]{"(sqrt($b^2+$a^2)*(3*$a*$e+2*$b^2*$d+2*$a^2*$c))/6"}{40} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* b) If [:C:] is a straight line from [`(1,-1,0)`] to [`([$a],[$b],[$c])`] -compute +compute [``\int_C ([$d] xy + [$e] z^2) \, ds ={}``] [_______________]{"(sqrt($c^2+($b+1)^2+($a-1)^2)*(2*$c^2*$e+((2*$a+1)*$b-$a-2)*$d))/6"}{40} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* END_PGML ##################### diff --git a/Pending/OKState/VectorCalculus/surface-integral1.pg b/Pending/OKState/VectorCalculus/surface-integral1.pg index ae5ef7bf4a..d300274032 100644 --- a/Pending/OKState/VectorCalculus/surface-integral1.pg +++ b/Pending/OKState/VectorCalculus/surface-integral1.pg @@ -14,12 +14,12 @@ ########################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -40,7 +40,7 @@ and [`0 \leq y \leq [$b]`]. Compute [``\iint_S [$c] z\sqrt{1+4x^2+4y^2} \, dS = ``][_________________]{"-((12*$a*$b^5+5*$a*$b^3+(-12*$a^5-5*$a^3)*$b)*$c)/15"} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* END_PGML ########################### diff --git a/Pending/OKState/VectorCalculus/surface-integral2.pg b/Pending/OKState/VectorCalculus/surface-integral2.pg index 5c798b7118..8e4b615c5e 100644 --- a/Pending/OKState/VectorCalculus/surface-integral2.pg +++ b/Pending/OKState/VectorCalculus/surface-integral2.pg @@ -14,12 +14,12 @@ ########################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -40,7 +40,7 @@ and [`0 \leq y \leq 1`]. Compute [``\iint_S [$c]xz^2 \, dS = ``][_________________]{"(sqrt($b^2+$a^2+1)*(2*$b^2+4*$a*$b+3*$a^2)*$c)/12"} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* END_PGML ########################### diff --git a/Pending/OKState/VectorCalculus/surface-normals1.pg b/Pending/OKState/VectorCalculus/surface-normals1.pg index 37278e909d..e130db8687 100644 --- a/Pending/OKState/VectorCalculus/surface-normals1.pg +++ b/Pending/OKState/VectorCalculus/surface-normals1.pg @@ -18,12 +18,12 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGcourse.pl", ); Context("Numeric"); - + $showPartialCorrectAnswers = 1; $a = random(2,9,1); @@ -59,7 +59,7 @@ $BR $BR \( \qquad + \) \{ans_rule(40)\} \( \hat{k} \). $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $PAR b) For the surface given by \(z = e^{$b x}-$c y \), find the unit normal (the one pointing roughly upwards) @@ -73,7 +73,7 @@ $BR \(\qquad + \) \{ans_rule(40)\} \( \hat{k} \). $BR -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} END_TEXT Context()->normalStrings; @@ -95,12 +95,12 @@ Context()->texStrings; BEGIN_SOLUTION a) \( -$answer1_1 \hat{\imath} + $answer1_2 \hat{\jmath} + $answer1_3 \hat{k} +$answer1_1 \hat{\imath} + $answer1_2 \hat{\jmath} + $answer1_3 \hat{k} \). $PAR b) \( -$answer2_1 \hat{\imath} + $answer2_2 \hat{\jmath} + $answer2_3 \hat{k} +$answer2_1 \hat{\imath} + $answer2_2 \hat{\jmath} + $answer2_3 \hat{k} \). END_SOLUTION Context()->normalStrings; diff --git a/Pending/OKState/VectorCalculus/surfacearea1.pg b/Pending/OKState/VectorCalculus/surfacearea1.pg index 35a5c2fd6c..314d77cea7 100644 --- a/Pending/OKState/VectorCalculus/surfacearea1.pg +++ b/Pending/OKState/VectorCalculus/surfacearea1.pg @@ -14,12 +14,12 @@ ########################### # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -37,7 +37,7 @@ Let [`S`] be a surface with surface area [$a]. Compute the following. If not possible, write "impossible". [``\iint_S [$b] \, dS = ``][_________________]{"$a*$b"} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* END_PGML ########################### diff --git a/Pending/PCC/BasicAlgebra/AbsoluteValue/absoluteValueInequalityByGraph10.pg b/Pending/PCC/BasicAlgebra/AbsoluteValue/absoluteValueInequalityByGraph10.pg index 7f678990fc..cbbdb2daee 100644 --- a/Pending/PCC/BasicAlgebra/AbsoluteValue/absoluteValueInequalityByGraph10.pg +++ b/Pending/PCC/BasicAlgebra/AbsoluteValue/absoluteValueInequalityByGraph10.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGgraphmacros.pl", "PCCmacros.pl", "PGcourse.pl", @@ -45,14 +45,14 @@ do { $x2 = max(-$b+$e,-$b-$e); $y1 = $func->eval(x=>$x1); $y2 = $func->eval(x=>$x2); -} until +} until abs($x1) < $boundary && abs($x2) < $boundary && int($y1) == $y1 && int($y2) == $y2 && abs($y1) < $boundary && abs($y2) < $boundary; - + @signs = ('\gt','\ge','\lt','\le'); $index1 = random(0,3,1); if ($index1 <= 1) { diff --git a/Pending/PCC/BasicAlgebra/AbsoluteValue/absoluteValueInequalityByGraph20.pg b/Pending/PCC/BasicAlgebra/AbsoluteValue/absoluteValueInequalityByGraph20.pg index b24589bbd5..992448cef0 100644 --- a/Pending/PCC/BasicAlgebra/AbsoluteValue/absoluteValueInequalityByGraph20.pg +++ b/Pending/PCC/BasicAlgebra/AbsoluteValue/absoluteValueInequalityByGraph20.pg @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGgraphmacros.pl", "PCCmacros.pl", "PGcourse.pl", @@ -45,14 +45,14 @@ do { $x2 = max(-$b+$e,-$b-$e); $y1 = $func->eval(x=>$x1); $y2 = $func->eval(x=>$x2); -} until +} until abs($x1) < $boundary && abs($x2) < $boundary && int($y1) == $y1 && int($y2) == $y2 && abs($y1) < $boundary && abs($y2) < $boundary; - + @signs = ('\gt','\ge','\lt','\le'); $index1 = random(0,3,1); if ($index1 <= 1) { diff --git a/Pending/PCC/BasicAlgebra/Calculator/DesmosIntersection30.pg b/Pending/PCC/BasicAlgebra/Calculator/DesmosIntersection30.pg index 9d7166435c..5505768363 100644 --- a/Pending/PCC/BasicAlgebra/Calculator/DesmosIntersection30.pg +++ b/Pending/PCC/BasicAlgebra/Calculator/DesmosIntersection30.pg @@ -29,7 +29,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "parserPopUp.pl", "PCCgraphMacros.pl", "PCCmacros.pl", diff --git a/Pending/PCC/BasicAlgebra/Calculator/DesmosIntersection40.pg b/Pending/PCC/BasicAlgebra/Calculator/DesmosIntersection40.pg index 3d71e43603..219a0ece13 100644 --- a/Pending/PCC/BasicAlgebra/Calculator/DesmosIntersection40.pg +++ b/Pending/PCC/BasicAlgebra/Calculator/DesmosIntersection40.pg @@ -29,7 +29,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "parserPopUp.pl", "PCCgraphMacros.pl", "PCCmacros.pl", diff --git a/Pending/PCC/BasicAlgebra/Calculator/DesmosQuadraticFunction100.pg b/Pending/PCC/BasicAlgebra/Calculator/DesmosQuadraticFunction100.pg index 0829302a22..fda0e11500 100644 --- a/Pending/PCC/BasicAlgebra/Calculator/DesmosQuadraticFunction100.pg +++ b/Pending/PCC/BasicAlgebra/Calculator/DesmosQuadraticFunction100.pg @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "parserPopUp.pl", "PCCgraphMacros.pl", "PCCmacros.pl", @@ -93,7 +93,7 @@ for my $i (0..2) { if (Real($j) == 0) {next;} $gr[$i]->lb( new Label(-$marksep[0]/8, $j, $j,'black','right','middle')); } - + add_functions($gr[$i], "$f for x in <$min[0],$max[0]> using color:blue and weight:2"); add_functions($gr[$i], "$g for x in <$min[0],$max[0]> using color:blue and weight:2"); $lor0 = $x0<$x1 ? 'left' : 'right'; diff --git a/Pending/PCC/BasicAlgebra/Calculator/DesmosQuadraticFunction110.pg b/Pending/PCC/BasicAlgebra/Calculator/DesmosQuadraticFunction110.pg index 2085e98a84..ded1379455 100644 --- a/Pending/PCC/BasicAlgebra/Calculator/DesmosQuadraticFunction110.pg +++ b/Pending/PCC/BasicAlgebra/Calculator/DesmosQuadraticFunction110.pg @@ -29,7 +29,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "contextFiniteSolutionSets.pl", "PCCmacros.pl", "PCCgraphMacros.pl", diff --git a/Pending/PCC/BasicAlgebra/Calculator/DesmosQuadraticFunction70.pg b/Pending/PCC/BasicAlgebra/Calculator/DesmosQuadraticFunction70.pg index 10c1f4a24c..defb07b9bb 100644 --- a/Pending/PCC/BasicAlgebra/Calculator/DesmosQuadraticFunction70.pg +++ b/Pending/PCC/BasicAlgebra/Calculator/DesmosQuadraticFunction70.pg @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PCCmacros.pl", "PGgraphmacros.pl", "PCCgraphMacros.pl", diff --git a/Pending/PCC/BasicAlgebra/Calculator/DesmosQuadraticFunction80.pg b/Pending/PCC/BasicAlgebra/Calculator/DesmosQuadraticFunction80.pg index 528c64debb..b65395c6b8 100644 --- a/Pending/PCC/BasicAlgebra/Calculator/DesmosQuadraticFunction80.pg +++ b/Pending/PCC/BasicAlgebra/Calculator/DesmosQuadraticFunction80.pg @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PCCmacros.pl", "PGgraphmacros.pl", "PCCgraphMacros.pl", diff --git a/Pending/PCC/BasicAlgebra/Calculator/DesmosQuadraticFunction90.pg b/Pending/PCC/BasicAlgebra/Calculator/DesmosQuadraticFunction90.pg index 86a9e598fa..b4d39c603d 100644 --- a/Pending/PCC/BasicAlgebra/Calculator/DesmosQuadraticFunction90.pg +++ b/Pending/PCC/BasicAlgebra/Calculator/DesmosQuadraticFunction90.pg @@ -29,7 +29,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "contextFiniteSolutionSets.pl", "PCCmacros.pl", "PCCgraphMacros.pl", diff --git a/Pending/PCC/BasicAlgebra/Calculator/DesmosSolvingCubicEquation10.pg b/Pending/PCC/BasicAlgebra/Calculator/DesmosSolvingCubicEquation10.pg index 1b29d615c1..8d61ef6333 100644 --- a/Pending/PCC/BasicAlgebra/Calculator/DesmosSolvingCubicEquation10.pg +++ b/Pending/PCC/BasicAlgebra/Calculator/DesmosSolvingCubicEquation10.pg @@ -30,7 +30,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "contextFiniteSolutionSets.pl", "PCCmacros.pl", "PGgraphmacros.pl", @@ -86,7 +86,7 @@ $rightb = $max[0]+1; if (Real($j) == 0) {next;} $gr->lb( new Label(-$marksep[0]/8, $j, $j,'black','right','middle')); } - + add_functions($gr, "$func0 for $var in <$leftb,$rightb> using color:blue and weight:2"); add_functions($gr, "$func1 for $var in <$leftb,$rightb> using color:blue and weight:2"); $gr->stamps( closed_circle($x0,$y0,'red') ); diff --git a/Pending/PCC/BasicAlgebra/Calculator/DesmosSolvingInequality30.pg b/Pending/PCC/BasicAlgebra/Calculator/DesmosSolvingInequality30.pg index fbd87e0c65..46ca05bb59 100644 --- a/Pending/PCC/BasicAlgebra/Calculator/DesmosSolvingInequality30.pg +++ b/Pending/PCC/BasicAlgebra/Calculator/DesmosSolvingInequality30.pg @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PCCmacros.pl", "PCCgraphMacros.pl", "PGgraphmacros.pl", @@ -154,9 +154,9 @@ if ($a>0) { BEGIN_PGML -Use technology to solve the following inequalities. +Use technology to solve the following inequalities. -* Enter *inf* to represent infinity. +* Enter *inf* to represent infinity. * Enter capitalized "U" to represent the union symbol, if needed. 1. Solve [`[$f] [$symbol0] [$g]\text{.}`] diff --git a/Pending/PCC/BasicAlgebra/Calculator/DesmosSolvingInequality40.pg b/Pending/PCC/BasicAlgebra/Calculator/DesmosSolvingInequality40.pg index d16eee1c3b..37aeeaba12 100644 --- a/Pending/PCC/BasicAlgebra/Calculator/DesmosSolvingInequality40.pg +++ b/Pending/PCC/BasicAlgebra/Calculator/DesmosSolvingInequality40.pg @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "parserPopUp.pl", "PCCgraphMacros.pl", "PCCmacros.pl", @@ -93,7 +93,7 @@ for my $i (0..2) { if (Real($j) == 0) {next;} $gr[$i]->lb( new Label(-$marksep[0]/8, $j, $j,'black','right','middle')); } - + add_functions($gr[$i], "$f for x in <$min[0],$max[0]> using color:blue and weight:2"); add_functions($gr[$i], "$g for x in <$min[0],$max[0]> using color:blue and weight:2"); $lor0 = $x0<$x1 ? 'left' : 'right'; @@ -170,7 +170,7 @@ BEGIN_PGML Use technology to solve the following inequalities. -* Enter *inf* to represent infinity. +* Enter *inf* to represent infinity. * Use capitalized 'U' to represent the union symbol, if needed. 1. Solve [`[$g] [$symbol0] [$f] \text{.}`] diff --git a/Pending/PCC/BasicAlgebra/Calculator/DesmosSolvingQuadraticEquation10.pg b/Pending/PCC/BasicAlgebra/Calculator/DesmosSolvingQuadraticEquation10.pg index 122f4b8eef..acb19365d3 100644 --- a/Pending/PCC/BasicAlgebra/Calculator/DesmosSolvingQuadraticEquation10.pg +++ b/Pending/PCC/BasicAlgebra/Calculator/DesmosSolvingQuadraticEquation10.pg @@ -30,7 +30,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "contextFiniteSolutionSets.pl", "PCCmacros.pl", "PGgraphmacros.pl", @@ -87,7 +87,7 @@ $x1Show = Round($x1,3); if (Real($j) == 0) {next;} $gr->lb( new Label(-$marksep[0]/8, $j, $j,'black','right','middle')); } - + add_functions($gr, "$func for $var in <$min[0],$max[0]> using color:blue and weight:2"); add_functions($gr, "$e for $var in <$min[0],$max[0]> using color:blue and weight:2"); $lor0 = $x0<$x1 ? 'left' : 'right'; diff --git a/Pending/PCC/BasicAlgebra/Calculator/DesmosTable10.pg b/Pending/PCC/BasicAlgebra/Calculator/DesmosTable10.pg index 2ccc3a865a..b5432edcd3 100644 --- a/Pending/PCC/BasicAlgebra/Calculator/DesmosTable10.pg +++ b/Pending/PCC/BasicAlgebra/Calculator/DesmosTable10.pg @@ -1,9 +1,9 @@ ####################################### -### Generated from PreTeXt source -### on 2018-08-20T01:24:28-07:00 -### -### http://mathbook.pugetsound.edu -### +### Generated from PreTeXt source +### on 2018-08-20T01:24:28-07:00 +### +### http://mathbook.pugetsound.edu +### ####################################### ## DBsubject() ## DBchapter() @@ -29,7 +29,7 @@ loadMacros( "MathObjects.pl", "PGML.pl", "niceTables.pl", - "AnswerFormatHelp.pl", + "PCCmacros.pl", "parserMultiAnswer.pl", "PGcourse.pl", diff --git a/Pending/PCC/BasicAlgebra/Calculator/DesmosTable20.pg b/Pending/PCC/BasicAlgebra/Calculator/DesmosTable20.pg index 408b1ee6ed..e061a842e9 100644 --- a/Pending/PCC/BasicAlgebra/Calculator/DesmosTable20.pg +++ b/Pending/PCC/BasicAlgebra/Calculator/DesmosTable20.pg @@ -1,9 +1,9 @@ ####################################### -### Generated from PreTeXt source -### on 2018-08-20T01:24:28-07:00 -### -### http://mathbook.pugetsound.edu -### +### Generated from PreTeXt source +### on 2018-08-20T01:24:28-07:00 +### +### http://mathbook.pugetsound.edu +### ####################################### ## DBsubject() ## DBchapter() @@ -29,7 +29,7 @@ loadMacros( "MathObjects.pl", "PGML.pl", "niceTables.pl", - "AnswerFormatHelp.pl", + "PCCmacros.pl", "parserMultiAnswer.pl", "PGcourse.pl", diff --git a/Pending/PCC/BasicAlgebra/Calculator/DesmosWindowView10.pg b/Pending/PCC/BasicAlgebra/Calculator/DesmosWindowView10.pg index b1bb016a04..c2a0776f11 100644 --- a/Pending/PCC/BasicAlgebra/Calculator/DesmosWindowView10.pg +++ b/Pending/PCC/BasicAlgebra/Calculator/DesmosWindowView10.pg @@ -1,9 +1,9 @@ ####################################### -### Generated from PreTeXt source -### on 2018-08-20T01:24:29-07:00 -### -### http://mathbook.pugetsound.edu -### +### Generated from PreTeXt source +### on 2018-08-20T01:24:29-07:00 +### +### http://mathbook.pugetsound.edu +### ####################################### ## DBsubject() ## DBchapter() @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PCCmacros.pl", "parserMultiAnswer.pl", "PGgraphmacros.pl", @@ -103,7 +103,7 @@ $multians = MultiAnswer($x, $y)->with( my ($xmin,$xmax) = $xstu->value; my ($ymin,$ymax) = $ystu->value; #check end points are not infinite - if ($xmin->type eq 'Infinity' or $xmax->type eq 'Infinity' or $ymin->type eq 'Infinity' or $ymax->type eq 'Infinity') + if ($xmin->type eq 'Infinity' or $xmax->type eq 'Infinity' or $ymin->type eq 'Infinity' or $ymax->type eq 'Infinity') {Value::Error("The dimensions of a viewing window cannot be infinite.");} my @errors; #Check important points are all present; diff --git a/Pending/PCC/BasicAlgebra/Calculator/DesmosWindowView20.pg b/Pending/PCC/BasicAlgebra/Calculator/DesmosWindowView20.pg index edafd9a7ac..d7d61ddc22 100644 --- a/Pending/PCC/BasicAlgebra/Calculator/DesmosWindowView20.pg +++ b/Pending/PCC/BasicAlgebra/Calculator/DesmosWindowView20.pg @@ -1,9 +1,9 @@ ####################################### -### Generated from PreTeXt source -### on 2018-08-20T01:24:29-07:00 -### -### http://mathbook.pugetsound.edu -### +### Generated from PreTeXt source +### on 2018-08-20T01:24:29-07:00 +### +### http://mathbook.pugetsound.edu +### ####################################### ## DBsubject() ## DBchapter() @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PCCmacros.pl", "parserMultiAnswer.pl", "PGgraphmacros.pl", diff --git a/Pending/PCC/BasicAlgebra/Geometry/Trapezoid10.pg b/Pending/PCC/BasicAlgebra/Geometry/Trapezoid10.pg index 49fd949e0b..5ba0194801 100644 --- a/Pending/PCC/BasicAlgebra/Geometry/Trapezoid10.pg +++ b/Pending/PCC/BasicAlgebra/Geometry/Trapezoid10.pg @@ -1,9 +1,9 @@ ####################################### -### Generated from PreTeXt source -### on 2017-10-02T18:11:53-07:00 -### -### http://mathbook.pugetsound.edu -### +### Generated from PreTeXt source +### on 2017-10-02T18:11:53-07:00 +### +### http://mathbook.pugetsound.edu +### ####################################### ## DBsubject() ## DBchapter() @@ -28,7 +28,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", - "AnswerFormatHelp.pl", + "PGgraphmacros.pl", "parserNumberWithUnits.pl", "PGcourse.pl", @@ -75,11 +75,11 @@ $picture->lb( new Label(($x[1]+$x[2])/2, $y[1]+0.5,"$base2U",'black','center','m $picture->lb( new Label($x[1]+0.5,($y[0]+$y[1])/2,"$heightU",'black','left','middle')); $picture->new_color("lightblue", 200,200,255); # RGB -$picture->new_color("darkblue", 100,100,255); +$picture->new_color("darkblue", 100,100,255); $picture->moveTo($x[0],$y[0]); $picture->lineTo($x[3],$y[0], darkblue,3); -$picture->lineTo($x[2],$y[1], darkblue,3); +$picture->lineTo($x[2],$y[1], darkblue,3); $picture->lineTo($x[1],$y[1], darkblue,3); $picture->lineTo($x[0],$y[0], darkblue,3); diff --git a/Pending/PCC/Math95/AbsValueEquations/MCH1-3-3-12-Absolute-value.pg b/Pending/PCC/Math95/AbsValueEquations/MCH1-3-3-12-Absolute-value.pg index 9c429bc743..d5d32b5670 100644 --- a/Pending/PCC/Math95/AbsValueEquations/MCH1-3-3-12-Absolute-value.pg +++ b/Pending/PCC/Math95/AbsValueEquations/MCH1-3-3-12-Absolute-value.pg @@ -31,7 +31,7 @@ loadMacros( "MathObjects.pl", "parserMultiAnswer.pl", "parserImplicitPlane.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PCCmacros.pl", "PGcourse.pl" @@ -98,7 +98,7 @@ Context()->{error}{convert} = sub { BEGIN_PGML a. Write the equation [`[$eqn]`] as two separate equations. Neither of your equations should use absolute value. - [__]{$multians}{width=>30} + [__]{$multians}{width=>30} [__]{$multians}{width=>30} a. Solve both equations above. [@KeyboardInstructions('Enter your solutions as a comma-separated list.')@]** diff --git a/Pending/PCC/Math95/AbsValueEquations/MCH1-3-3-14-Absolute-value.pg b/Pending/PCC/Math95/AbsValueEquations/MCH1-3-3-14-Absolute-value.pg index dbcffbc599..865212fd57 100644 --- a/Pending/PCC/Math95/AbsValueEquations/MCH1-3-3-14-Absolute-value.pg +++ b/Pending/PCC/Math95/AbsValueEquations/MCH1-3-3-14-Absolute-value.pg @@ -31,7 +31,7 @@ loadMacros( "MathObjects.pl", "parserMultiAnswer.pl", "parserImplicitPlane.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PCCmacros.pl", "parserImplicitEquation.pl", diff --git a/Pending/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_11.pg b/Pending/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_11.pg index d01353f7f5..62cf6aaaf5 100644 --- a/Pending/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_11.pg +++ b/Pending/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_11.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -65,11 +65,11 @@ $ans = List( Point("($a,$b)")); # Main text BEGIN_PGML -Solve the system ->>[` [$f] = [$d] `]<< +Solve the system +>>[` [$f] = [$d] `]<< >>[` [$g] = [$p] `]<< -Solution: [_______________]{$ans} [@ AnswerFormatHelp("points") @]* +Solution: [_______________]{$ans} [@ helpLink("points") @]* If there is one solution, enter the solution as an ordered pair, [` (a,b) `], including the parentheses. If there are no solutions, enter NONE. If there are infinitely many solutions, enter solutions as [`(x,f(x))`] where [`y=f(x)`]. diff --git a/Pending/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_12.pg b/Pending/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_12.pg index 38b397597c..21abeb19f2 100644 --- a/Pending/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_12.pg +++ b/Pending/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_12.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -66,11 +66,11 @@ $ans = List( Point("($a,$b)")); # Main text BEGIN_PGML -Solve the system ->>[` [$f] = [$d] `]<< +Solve the system +>>[` [$f] = [$d] `]<< >>[` [$g] = [$p] `]<< -Solution: [_______________]{$ans} [@ AnswerFormatHelp("points") @]* +Solution: [_______________]{$ans} [@ helpLink("points") @]* If there is one solution, enter the solution as an ordered pair, [` (a,b) `], including the parentheses. If there are no solutions, enter NONE. If there are infinitely many solutions, enter solutions as [`(x,f(x))`] where [`y=f(x)`]. diff --git a/Pending/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_15.pg b/Pending/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_15.pg index 5a4e58b60a..71d9c14efa 100644 --- a/Pending/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_15.pg +++ b/Pending/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_15.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -66,11 +66,11 @@ $ans = List( Point("($a,$b)")); # Main text BEGIN_PGML -Solve the system ->>[` [$f] = [$d] `]<< +Solve the system +>>[` [$f] = [$d] `]<< >>[` [$g] = [$p] `]<< -Solution: [_______________]{$ans} [@ AnswerFormatHelp("points") @]* +Solution: [_______________]{$ans} [@ helpLink("points") @]* If there is one solution, enter the solution as an ordered pair, [` (a,b) `], including the parentheses. If there are no solutions, enter NONE. If there are infinitely many solutions, enter solutions as [`(x,f(x))`] where [`y=f(x)`]. diff --git a/Pending/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_17.pg b/Pending/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_17.pg index 7aa68a024e..089c314e5d 100644 --- a/Pending/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_17.pg +++ b/Pending/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_17.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -55,11 +55,11 @@ $h = Formula("x")->reduce; # Main text BEGIN_PGML -Solve the system ->>[` [$f] = [$c] `]<< +Solve the system +>>[` [$f] = [$c] `]<< >>[` [$g] = [$multc] `]<< -Solution: [_______________]{"NONE"} [@ AnswerFormatHelp("points") @]* +Solution: [_______________]{"NONE"} [@ helpLink("points") @]* If there is one solution, enter the solution as an ordered pair, [` (a,b) `], including the parentheses. If there are no solutions, enter NONE. If there are infinitely many solutions, enter solutions as [`(x,f(x))`] where [`y=f(x)`]. diff --git a/Pending/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_21.pg b/Pending/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_21.pg index 089597dfe3..6dbcfcfc2d 100644 --- a/Pending/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_21.pg +++ b/Pending/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_21.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -67,11 +67,11 @@ $ans = List( Point("($a,$b)")); # Main text BEGIN_PGML -Solve the system ->>[` [$f] = [$d] `]<< +Solve the system +>>[` [$f] = [$d] `]<< >>[` [$g] = [$p] `]<< -Solution: [_______________]{$ans} [@ AnswerFormatHelp("points") @]* +Solution: [_______________]{$ans} [@ helpLink("points") @]* If there is one solution, enter the solution as an ordered pair, [` (a,b) `], including the parentheses. If there are no solutions, enter NONE. If there are infinitely many solutions, enter solutions as [`(x,f(x))`] where [`y=f(x)`]. diff --git a/Pending/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_24.pg b/Pending/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_24.pg index b095625cec..a0ee20bdd4 100644 --- a/Pending/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_24.pg +++ b/Pending/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_24.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -55,11 +55,11 @@ $ans = List( Point("($xans,$yans)")); # Main text BEGIN_PGML -Solve the system ->>[` [$f] = [$b] `]<< +Solve the system +>>[` [$f] = [$b] `]<< >>[` [$g] = [$m] `]<< -Solution: [_______________]{$ans} [@ AnswerFormatHelp("points") @]* +Solution: [_______________]{$ans} [@ helpLink("points") @]* If there is one solution, enter the solution as an ordered pair, [` (a,b) `], including the parentheses. If there are no solutions, enter NONE. If there are infinitely many solutions, enter solutions as [`(x,f(x))`] where [`y=f(x)`]. diff --git a/Pending/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_26.pg b/Pending/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_26.pg index a767f40bf4..bbba63825f 100644 --- a/Pending/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_26.pg +++ b/Pending/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_26.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -57,11 +57,11 @@ $ans = List( Point("(x,$h)")); # Main text BEGIN_PGML -Solve the system ->>[` [$f] = [$c] `]<< +Solve the system +>>[` [$f] = [$c] `]<< >>[` [$g] = [$dc] `]<< -Solution: [_______________]{$ans} [@ AnswerFormatHelp("points") @]* +Solution: [_______________]{$ans} [@ helpLink("points") @]* If there is one solution, enter the solution as an ordered pair, [` (a,b) `], including the parentheses. If there are no solutions, enter NONE. If there are infinitely many solutions, enter solutions as [`(x,f(x))`] where [`y=f(x)`]. diff --git a/Pending/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_29.pg b/Pending/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_29.pg index a8c6bdf27a..494e213e50 100644 --- a/Pending/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_29.pg +++ b/Pending/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_29.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -65,11 +65,11 @@ $ans = List( Point("($a,$b)")); # Main text BEGIN_PGML -Solve the system ->>[` [$f] = [$d] `]<< +Solve the system +>>[` [$f] = [$d] `]<< >>[` [$g] = [$p] `]<< -Solution: [_______________]{$ans} [@ AnswerFormatHelp("points") @]* +Solution: [_______________]{$ans} [@ helpLink("points") @]* If there is one solution, enter the solution as an ordered pair, [` (a,b) `], including the parentheses. If there are no solutions, enter NONE. If there are infinitely many solutions, enter solutions as [`(x,f(x))`] where [`y=f(x)`]. diff --git a/Pending/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_31.pg b/Pending/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_31.pg index a8c6bdf27a..494e213e50 100644 --- a/Pending/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_31.pg +++ b/Pending/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_31.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -65,11 +65,11 @@ $ans = List( Point("($a,$b)")); # Main text BEGIN_PGML -Solve the system ->>[` [$f] = [$d] `]<< +Solve the system +>>[` [$f] = [$d] `]<< >>[` [$g] = [$p] `]<< -Solution: [_______________]{$ans} [@ AnswerFormatHelp("points") @]* +Solution: [_______________]{$ans} [@ helpLink("points") @]* If there is one solution, enter the solution as an ordered pair, [` (a,b) `], including the parentheses. If there are no solutions, enter NONE. If there are infinitely many solutions, enter solutions as [`(x,f(x))`] where [`y=f(x)`]. diff --git a/Pending/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_37.pg b/Pending/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_37.pg index 4f8b8614e0..65983de972 100644 --- a/Pending/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_37.pg +++ b/Pending/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_37.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -58,12 +58,12 @@ $ans = List( Point("(x,$h)")); # Main text BEGIN_PGML -Solve the system ->>[`` \frac{[$a]}{2}x-\frac{[$b]}{2}y = [$c2] ``]<< +Solve the system +>>[`` \frac{[$a]}{2}x-\frac{[$b]}{2}y = [$c2] ``]<< >>[`` -\frac{[$da]}{4}x+\frac{[$db]}{4}y = -[$dc] ``]<< -Solution: [_______________]{$ans} [@ AnswerFormatHelp("points") @]* +Solution: [_______________]{$ans} [@ helpLink("points") @]* If there is one solution, enter the solution as an ordered pair, [` (a,b) `], including the parentheses. If there are no solutions, enter NONE. If there are infinitely many solutions, enter solutions as [`(x,f(x))`] where [`y=f(x)`]. diff --git a/Pending/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_38.pg b/Pending/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_38.pg index dbfda0c82c..3b5acf4125 100644 --- a/Pending/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_38.pg +++ b/Pending/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_38.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -61,12 +61,12 @@ $ans = List( Point("($a,$b)")); # Main text BEGIN_PGML -Solve the system ->>[`` \frac{[$r]}{3}x+\frac{[$c]}{3}y = [$d] ``]<< +Solve the system +>>[`` \frac{[$r]}{3}x+\frac{[$c]}{3}y = [$d] ``]<< >>[`` \frac{[$m]}{5}x+\frac{[$n]}{5}y = [$p] ``]<< -Solution: [_______________]{$ans} [@ AnswerFormatHelp("points") @]* +Solution: [_______________]{$ans} [@ helpLink("points") @]* If there is one solution, enter the solution as an ordered pair, [` (a,b) `], including the parentheses. If there are no solutions, enter NONE. If there are infinitely many solutions, enter solutions as [`(x,f(x))`] where [`y=f(x)`]. diff --git a/Pending/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_43.pg b/Pending/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_43.pg index 4e975fb902..619c5f47d4 100644 --- a/Pending/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_43.pg +++ b/Pending/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_43.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -65,11 +65,11 @@ $ans = List( Point("($a,$b)")); # Main text BEGIN_PGML -Solve the system ->>[` [$f] = [$d] `]<< +Solve the system +>>[` [$f] = [$d] `]<< >>[` [$g] = [$p] `]<< -Solution: [_______________]{$ans} [@ AnswerFormatHelp("points") @]* +Solution: [_______________]{$ans} [@ helpLink("points") @]* If there is one solution, enter the solution as an ordered pair, [` (a,b) `], including the parentheses. If there are no solutions, enter NONE. If there are infinitely many solutions, enter solutions as [`(x,f(x))`] where [`y=f(x)`]. diff --git a/Pending/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_57.pg b/Pending/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_57.pg index a194a1c7e5..8444c4f7cc 100644 --- a/Pending/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_57.pg +++ b/Pending/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_57.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -54,7 +54,7 @@ $ans1 = $b/($m-$a); BEGIN_PGML A fast-food restaurant has a cost production of [`C(x)=[$C] `] and a revenue function of [`R(x)=[$R] `], where [`x`] represents the number of milkshakes they make. When does the company start to turn a profit? -[`x=`] [_______________]{$ans1} milkshakes [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_______________]{$ans1} milkshakes [@ helpLink("numbers") @]* diff --git a/Pending/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_61.pg b/Pending/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_61.pg index 462b74cb7d..7211a4dca2 100644 --- a/Pending/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_61.pg +++ b/Pending/RRCC/College_Algebra/MAT121/11.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_1_61.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -45,9 +45,9 @@ $ans1 = List(($a+$b)/2,($a-$b)/2); # Main text BEGIN_PGML -Find two numbers whose sum is [`[$a]`] and difference is [`[$b]`]. Enter the numbers as a comma separated list. +Find two numbers whose sum is [`[$a]`] and difference is [`[$b]`]. Enter the numbers as a comma separated list. -Numbers: [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +Numbers: [_______________]{$ans1} [@ helpLink("numbers") @]* diff --git a/Pending/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_11.pg b/Pending/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_11.pg index 81394e2618..b52e96589a 100644 --- a/Pending/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_11.pg +++ b/Pending/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_11.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -77,13 +77,13 @@ $ans = List( Point("($a,$b,$c)")); BEGIN_PGML Solve the system by substitution. ->>[` [$f] = [$l] `]<< +>>[` [$f] = [$l] `]<< >>[` [$g] = [$q] `]<< >>[` [$h] = [$u] `]<< -Solution: [_______________]{$ans} [@ AnswerFormatHelp("points") @]* +Solution: [_______________]{$ans} [@ helpLink("points") @]* If there is one solution, enter the solution as an ordered triple, [` (a,b,c) `], including the parentheses. If there are no solutions, enter NONE. If there are infinitely many solutions, enter solutions as [`(f(z),g(z),z)`] where [`x=f(z), y=g(z)`]. diff --git a/Pending/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_13.pg b/Pending/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_13.pg index da074ef2fb..652505fe8b 100644 --- a/Pending/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_13.pg +++ b/Pending/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_13.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -77,13 +77,13 @@ $ans = List( Point("($a,$b,$c)")); BEGIN_PGML Solve the system by substitution. ->>[` [$f] = [$l] `]<< +>>[` [$f] = [$l] `]<< >>[` [$g] = [$q] `]<< >>[` [$h] = [$u] `]<< -Solution: [_______________]{$ans} [@ AnswerFormatHelp("points") @]* +Solution: [_______________]{$ans} [@ helpLink("points") @]* If there is one solution, enter the solution as an ordered triple, [` (a,b,c) `], including the parentheses. If there are no solutions, enter NONE. If there are infinitely many solutions, enter solutions as [`(f(z),g(z),z)`] where [`x=f(z), y=g(z)`]. diff --git a/Pending/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_15.pg b/Pending/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_15.pg index e33311266e..652505fe8b 100644 --- a/Pending/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_15.pg +++ b/Pending/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_15.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -76,14 +76,14 @@ $ans = List( Point("($a,$b,$c)")); # Main text BEGIN_PGML -Solve the system by substitution. ->>[` [$f] = [$l] `]<< +Solve the system by substitution. +>>[` [$f] = [$l] `]<< >>[` [$g] = [$q] `]<< >>[` [$h] = [$u] `]<< -Solution: [_______________]{$ans} [@ AnswerFormatHelp("points") @]* +Solution: [_______________]{$ans} [@ helpLink("points") @]* If there is one solution, enter the solution as an ordered triple, [` (a,b,c) `], including the parentheses. If there are no solutions, enter NONE. If there are infinitely many solutions, enter solutions as [`(f(z),g(z),z)`] where [`x=f(z), y=g(z)`]. diff --git a/Pending/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_17.pg b/Pending/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_17.pg index b51566803b..b11e4af6fd 100644 --- a/Pending/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_17.pg +++ b/Pending/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_17.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "AppletObjects.pl", "unionTables.pl", @@ -85,21 +85,21 @@ Context("Numeric"); # Main text BEGIN_TEXT -Solve the system by Gaussian elimination using the technology at this -\{ htmlLink( "javascript:windowpopup();", "link" ) \}. +Solve the system by Gaussian elimination using the technology at this +\{ htmlLink( "javascript:windowpopup();", "link" ) \}. END_TEXT BEGIN_PGML ->>[` [$f] = [$l] `]<< +>>[` [$f] = [$l] `]<< >>[` [$g] = [$q] `]<< >>[` [$h] = [$u] `]<< -Solution: [_______________]{"NONE"} [@ AnswerFormatHelp("points") @]* +Solution: [_______________]{"NONE"} [@ helpLink("points") @]* If there is one solution, enter the solution as an ordered triple, [` (a,b,c) `], -including the parentheses. If there are no solutions, enter NONE. If there are infinitely many solutions, enter solutions as [`(f(z),g(z),z)`] where [`x=f(z), y=g(z)`]. +including the parentheses. If there are no solutions, enter NONE. If there are infinitely many solutions, enter solutions as [`(f(z),g(z),z)`] where [`x=f(z), y=g(z)`]. END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_21.pg b/Pending/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_21.pg index 78d4267fad..313adc6ece 100644 --- a/Pending/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_21.pg +++ b/Pending/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_21.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "AppletObjects.pl", "unionTables.pl", "parserNumberWithUnits.pl", @@ -91,22 +91,22 @@ $ans = List( Point("($a,$b,$c)")); ########################### # Main text BEGIN_TEXT -Solve the system by Gaussian elimination using the technology at this -\{ htmlLink( "javascript:windowpopup();", "link" ) \}. +Solve the system by Gaussian elimination using the technology at this +\{ htmlLink( "javascript:windowpopup();", "link" ) \}. END_TEXT BEGIN_PGML ->>[` [$f] = [$l] `]<< +>>[` [$f] = [$l] `]<< >>[` [$g] = [$q] `]<< >>[` [$h] = [$u] `]<< -Solution: [_______________]{$ans} [@ AnswerFormatHelp("points") @]* +Solution: [_______________]{$ans} [@ helpLink("points") @]* If there is one solution, enter the solution as an ordered triple, [` (a,b,c) `], -including the parentheses. If there are no solutions, enter NONE. If there are infinitely many solutions, enter solutions as [`(f(z),g(z),z)`] where [`x=f(z), y=g(z)`]. +including the parentheses. If there are no solutions, enter NONE. If there are infinitely many solutions, enter solutions as [`(f(z),g(z),z)`] where [`x=f(z), y=g(z)`]. END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_25.pg b/Pending/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_25.pg index 67fb504a9d..4b99a3d960 100644 --- a/Pending/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_25.pg +++ b/Pending/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_25.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "AppletObjects.pl", "unionTables.pl", @@ -93,22 +93,22 @@ $ans = List( Point("($xz,$yz,z)")); ########################### # Main text BEGIN_TEXT -Solve the system by Gaussian elimination using the technology at this -\{ htmlLink( "javascript:windowpopup();", "link" ) \}. +Solve the system by Gaussian elimination using the technology at this +\{ htmlLink( "javascript:windowpopup();", "link" ) \}. END_TEXT BEGIN_PGML - ->>[` [$f] = [$l] `]<< + +>>[` [$f] = [$l] `]<< >>[` [$g] = [$q] `]<< >>[` [$h] = [$u] `]<< -Solution: [________________________]{$ans} [@ AnswerFormatHelp("points") @]* +Solution: [________________________]{$ans} [@ helpLink("points") @]* If there is one solution, enter the solution as an ordered triple, [` (a,b,c) `], -including the parentheses. If there are no solutions, enter NONE. If there are infinitely many solutions, enter solutions as [`(f(z),g(z),z)`] where [`x=f(z), y=g(z)`]. +including the parentheses. If there are no solutions, enter NONE. If there are infinitely many solutions, enter solutions as [`(f(z),g(z),z)`] where [`x=f(z), y=g(z)`]. END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_28.pg b/Pending/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_28.pg index 128822db62..9fdfaa73e5 100644 --- a/Pending/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_28.pg +++ b/Pending/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_28.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "AppletObjects.pl", "unionTables.pl", @@ -91,22 +91,22 @@ $ans = List( Point("($a,$b,$c)")); ########################### # Main text BEGIN_TEXT -Solve the system by Gaussian elimination using the technology at this -\{ htmlLink( "javascript:windowpopup();", "link" ) \}. +Solve the system by Gaussian elimination using the technology at this +\{ htmlLink( "javascript:windowpopup();", "link" ) \}. END_TEXT BEGIN_PGML - ->>[` [$f] = [$l] `]<< + +>>[` [$f] = [$l] `]<< >>[` [$g] = [$q] `]<< >>[` [$h] = [$u] `]<< -Solution: [_______________]{$ans} [@ AnswerFormatHelp("points") @]* +Solution: [_______________]{$ans} [@ helpLink("points") @]* If there is one solution, enter the solution as an ordered triple, [` (a,b,c) `], -including the parentheses. If there are no solutions, enter NONE. If there are infinitely many solutions, enter solutions as [`(f(z),g(z),z)`] where [`x=f(z), y=g(z)`]. +including the parentheses. If there are no solutions, enter NONE. If there are infinitely many solutions, enter solutions as [`(f(z),g(z),z)`] where [`x=f(z), y=g(z)`]. END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_39.pg b/Pending/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_39.pg index 897d68a3e9..8e837261c4 100644 --- a/Pending/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_39.pg +++ b/Pending/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_39.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -76,14 +76,14 @@ $ans = List( Point("($a,$b,$c)")); # Main text BEGIN_PGML -Solve the system ->>[` [$f] = [$l] `]<< +Solve the system +>>[` [$f] = [$l] `]<< >>[` [$g] = [$q] `]<< >>[` [$h] = [$u] `]<< -Solution: [_______________]{$ans} [@ AnswerFormatHelp("points") @]* +Solution: [_______________]{$ans} [@ helpLink("points") @]* If there is one solution, enter the solution as an ordered triple, [` (a,b,c) `], including the parentheses. If there are no solutions, enter NONE. If there are infinitely many solutions, enter solutions as [`(x,f(x),g(x))`] where [`y=f(x), z=g(x)`]. diff --git a/Pending/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_47.pg b/Pending/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_47.pg index 37705c4997..8e1c314515 100644 --- a/Pending/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_47.pg +++ b/Pending/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_47.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -77,14 +77,14 @@ $ans = List( Point("($a,$b,$c)")); # Main text BEGIN_PGML -Solve the system ->>[` [$f] = [$l] `]<< +Solve the system +>>[` [$f] = [$l] `]<< >>[` [$g] = [$q] `]<< >>[` [$h] = [$u] `]<< -Solution: [_______________]{$ans} [@ AnswerFormatHelp("points") @]* +Solution: [_______________]{$ans} [@ helpLink("points") @]* If there is one solution, enter the solution as an ordered triple, [` (a,b,c) `], including the parentheses. If there are no solutions, enter NONE. If there are infinitely many solutions, enter solutions as [`(x,f(x),g(x))`] where [`y=f(x), z=g(x)`]. diff --git a/Pending/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_51.pg b/Pending/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_51.pg index 93b5909281..cae411a472 100644 --- a/Pending/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_51.pg +++ b/Pending/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_51.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -44,9 +44,9 @@ $ans = List("(4/9)*$a,(2/9)*$a,(1/3)*$a"); # Main text BEGIN_PGML -Three even numbers sum up to [`[$a]`]. The smallest is half the largest and the middle number is 3/4 the largest. What are the three numbers? Enter as a comma separated list. +Three even numbers sum up to [`[$a]`]. The smallest is half the largest and the middle number is 3/4 the largest. What are the three numbers? Enter as a comma separated list. -Solution: [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +Solution: [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_54.pg b/Pending/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_54.pg index 79092e4eb8..dbd5bab194 100644 --- a/Pending/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_54.pg +++ b/Pending/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_54.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -47,13 +47,13 @@ $r = (1/5)*$a; # Main text BEGIN_PGML -An animal shelter has a total of [`[$a]`] animals comprised of cats, dogs, and rabbits. If the number of rabbits is 5 less than one-half the number of cats, and there are 20 more cats than dogs, how many of each animal are at the shelter? +An animal shelter has a total of [`[$a]`] animals comprised of cats, dogs, and rabbits. If the number of rabbits is 5 less than one-half the number of cats, and there are 20 more cats than dogs, how many of each animal are at the shelter? -cats: [_______________]{$c} [@ AnswerFormatHelp("numbers") @]* +cats: [_______________]{$c} [@ helpLink("numbers") @]* -dogs: [_______________]{$d} [@ AnswerFormatHelp("numbers") @]* +dogs: [_______________]{$d} [@ helpLink("numbers") @]* -rabbits: [_______________]{$r} [@ AnswerFormatHelp("numbers") @]* +rabbits: [_______________]{$r} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_7.pg b/Pending/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_7.pg index a28ea73c05..a3053e90ba 100644 --- a/Pending/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_7.pg +++ b/Pending/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_7.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -73,14 +73,14 @@ $ans = List( Point("($a,$b,$c)")); Context("ArbitraryString"); BEGIN_PGML -Is [` [$ans] `] a solution to, ->>[` [$f] = [$l] `]<< +Is [` [$ans] `] a solution to, +>>[` [$f] = [$l] `]<< >>[` [$g] = [$q] `]<< >>[` [$h] = [$u] `]<< -Enter yes or no: [____________]{"yes"} +Enter yes or no: [____________]{"yes"} END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_9.pg b/Pending/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_9.pg index dd5ae87957..60a8979b2b 100644 --- a/Pending/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_9.pg +++ b/Pending/RRCC/College_Algebra/MAT121/11.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_2_9.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -73,14 +73,14 @@ $ans = List( Point("($a+1,$b,$c)")); Context("ArbitraryString"); BEGIN_PGML -Is [` [$ans] `] a solution to, ->>[` [$f] = [$l] `]<< +Is [` [$ans] `] a solution to, +>>[` [$f] = [$l] `]<< >>[` [$g] = [$q] `]<< >>[` [$h] = [$u] `]<< -Enter yes or no: [____________]{"no"} +Enter yes or no: [____________]{"no"} END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_10.pg b/Pending/RRCC/College_Algebra/MAT121/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_10.pg index 3444f799e1..6753fa82e7 100644 --- a/Pending/RRCC/College_Algebra/MAT121/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_10.pg +++ b/Pending/RRCC/College_Algebra/MAT121/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_10.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -45,10 +45,10 @@ $ans = List( Point("($a,$c)"), Point("($a,-$c)") ); BEGIN_PGML What is the solution (are the solutions) to the following system of nonlinear equations? ->>[` x = [$a] `]<< +>>[` x = [$a] `]<< >>[` x^2+y^2 = [$b] `]<< - -Solution(s): [_______________]{$ans} [@ AnswerFormatHelp("points") @]* + +Solution(s): [_______________]{$ans} [@ helpLink("points") @]* Enter the solution as an ordered pair, [` (a,b) `], or solutions as a comma separated list of ordered pairs, [` (a,b), (c,d) `], including the parentheses. diff --git a/Pending/RRCC/College_Algebra/MAT121/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_16.pg b/Pending/RRCC/College_Algebra/MAT121/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_16.pg index 98497fcf78..777b008601 100644 --- a/Pending/RRCC/College_Algebra/MAT121/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_16.pg +++ b/Pending/RRCC/College_Algebra/MAT121/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_16.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -55,10 +55,10 @@ $ans = List( Point("($a,$ya)"), Point("($b,$yb)") ); BEGIN_PGML What is the solution (are the solutions) to the following system of nonlinear equations? ->>[` [$f] = [$d] `]<< +>>[` [$f] = [$d] `]<< >>[` [$h] = [$n] `]<< - -Solution(s): [_______________]{$ans} [@ AnswerFormatHelp("points") @]* + +Solution(s): [_______________]{$ans} [@ helpLink("points") @]* Enter the solution as an ordered pair, [` (a,b) `], or solutions as a comma separated list of ordered pairs, [` (a,b), (c,d) `], including the parentheses. diff --git a/Pending/RRCC/College_Algebra/MAT121/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_17.pg b/Pending/RRCC/College_Algebra/MAT121/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_17.pg index dac8d0c58d..56a1a3c3b9 100644 --- a/Pending/RRCC/College_Algebra/MAT121/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_17.pg +++ b/Pending/RRCC/College_Algebra/MAT121/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_17.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -54,10 +54,10 @@ $ans = List( Point("($a,$ya)"), Point("($b,$yb)") ); BEGIN_PGML What is the solution (are the solutions) to the following system of nonlinear equations? ->>[` [$f] = [$d] `]<< +>>[` [$f] = [$d] `]<< >>[` [$m] x + y = [$n] `]<< - -Solution(s): [_______________]{$ans} [@ AnswerFormatHelp("points") @]* + +Solution(s): [_______________]{$ans} [@ helpLink("points") @]* Enter the solution as an ordered pair, [` (a,b) `], or solutions as a comma separated list of ordered pairs, [` (a,b), (c,d) `], including the parentheses. diff --git a/Pending/RRCC/College_Algebra/MAT121/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_29.pg b/Pending/RRCC/College_Algebra/MAT121/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_29.pg index 2532db9116..11faf6189b 100644 --- a/Pending/RRCC/College_Algebra/MAT121/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_29.pg +++ b/Pending/RRCC/College_Algebra/MAT121/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_29.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -53,10 +53,10 @@ $ans = List( Point("($a,$ya)"), Point("($b,$yb)") ); BEGIN_PGML What is the solution (are the solutions) to the following system of nonlinear equations? ->>[` [$f] = [$d] `]<< +>>[` [$f] = [$d] `]<< >>[` 2 y = [$n] x `]<< - -Solution(s): [_______________]{$ans} [@ AnswerFormatHelp("points") @]* + +Solution(s): [_______________]{$ans} [@ helpLink("points") @]* Enter the solution as an ordered pair, [` (a,b) `], or solutions as a comma separated list of ordered pairs, [` (a,b), (c,d) `], including the parentheses. diff --git a/Pending/RRCC/College_Algebra/MAT121/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_31.pg b/Pending/RRCC/College_Algebra/MAT121/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_31.pg index 2e1dccfcec..cc19aaf795 100644 --- a/Pending/RRCC/College_Algebra/MAT121/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_31.pg +++ b/Pending/RRCC/College_Algebra/MAT121/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_31.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -45,10 +45,10 @@ Context(Point); BEGIN_PGML What is the solution (are the solutions) to the following system of nonlinear equations? ->>[` x^2+y^2 = [$r2] `]<< +>>[` x^2+y^2 = [$r2] `]<< >>[` y^2 = x^2 `]<< - -Solution(s): [___________________________]{"($a,$a),($a,-$a),(-$a,-$a),(-$a,$a)"} [@ AnswerFormatHelp("points") @]* + +Solution(s): [___________________________]{"($a,$a),($a,-$a),(-$a,-$a),(-$a,$a)"} [@ helpLink("points") @]* Enter the solution as an ordered pair, [` (a,b) `], or solutions as a comma separated list of ordered pairs, [` (a,b), (c,d), (m,n), (p,q) `], including the parentheses. diff --git a/Pending/RRCC/College_Algebra/MAT121/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_6.pg b/Pending/RRCC/College_Algebra/MAT121/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_6.pg index 8698674ae1..68a7884310 100644 --- a/Pending/RRCC/College_Algebra/MAT121/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_6.pg +++ b/Pending/RRCC/College_Algebra/MAT121/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_6.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -47,10 +47,10 @@ $ans = List( Point("($b,$c-$b)"), Point("(($c-$b),$b)") ); BEGIN_PGML What is the solution (are the solutions) to the following system of nonlinear equations? ->>[` x+y = [$c] `]<< +>>[` x+y = [$c] `]<< >>[` x^2+y^2 = [$r2] `]<< - -Solution(s): [_______________]{$ans} [@ AnswerFormatHelp("points") @]* + +Solution(s): [_______________]{$ans} [@ helpLink("points") @]* Enter the solution as an ordered pair, [` (a,b) `], or solutions as a comma separated list of ordered pairs, [` (a,b), (c,d) `], including the parentheses. diff --git a/Pending/RRCC/College_Algebra/MAT121/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_7.pg b/Pending/RRCC/College_Algebra/MAT121/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_7.pg index 100684fbeb..d0c13b9fac 100644 --- a/Pending/RRCC/College_Algebra/MAT121/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_7.pg +++ b/Pending/RRCC/College_Algebra/MAT121/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_7.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -47,10 +47,10 @@ $ans = List( Point("($a,-$b)"), Point("($b,-$a)") ); BEGIN_PGML What is the solution (are the solutions) to the following system of nonlinear equations? ->>[` y = x - [$c] `]<< +>>[` y = x - [$c] `]<< >>[` x^2+y^2 = [$r2] `]<< - -Solution(s): [_______________]{$ans} [@ AnswerFormatHelp("points") @]* + +Solution(s): [_______________]{$ans} [@ helpLink("points") @]* Enter the solution as an ordered pair, [` (a,b) `], or solutions as a comma separated list of ordered pairs, [` (a,b), (c,d) `], including the parentheses. diff --git a/Pending/RRCC/College_Algebra/MAT121/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_8.pg b/Pending/RRCC/College_Algebra/MAT121/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_8.pg index 1bb074eec5..b9108af5d3 100644 --- a/Pending/RRCC/College_Algebra/MAT121/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_8.pg +++ b/Pending/RRCC/College_Algebra/MAT121/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_8.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -45,10 +45,10 @@ Context(Point); BEGIN_PGML What is the solution (are the solutions) to the following system of nonlinear equations? ->>[` y = x `]<< +>>[` y = x `]<< >>[` x^2+y^2 = [$r2] `]<< - -Solution(s): [_______________________________]{"(sqrt($m),sqrt($m)), (- sqrt($m),- sqrt($m))"} [@ AnswerFormatHelp("points") @]* + +Solution(s): [_______________________________]{"(sqrt($m),sqrt($m)), (- sqrt($m),- sqrt($m))"} [@ helpLink("points") @]* Enter the solution as an ordered pair, [` (a,b) `], or solutions as a comma separated list of ordered pairs, [` (a,b), (c,d) `], including the parentheses. diff --git a/Pending/RRCC/College_Algebra/MAT121/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_9.pg b/Pending/RRCC/College_Algebra/MAT121/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_9.pg index dd62f7fb98..8fd53d772b 100644 --- a/Pending/RRCC/College_Algebra/MAT121/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_9.pg +++ b/Pending/RRCC/College_Algebra/MAT121/11.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_3_9.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -45,10 +45,10 @@ Context(Point); BEGIN_PGML What is the solution (are the solutions) to the following system of nonlinear equations? ->>[` y = -x `]<< +>>[` y = -x `]<< >>[` x^2+y^2 = [$r2] `]<< - -Solution(s): [_____________________________________]{"(sqrt($m),-sqrt($m)), (- sqrt($m),sqrt($m))"} [@ AnswerFormatHelp("points") @]* + +Solution(s): [_____________________________________]{"(sqrt($m),-sqrt($m)), (- sqrt($m),sqrt($m))"} [@ helpLink("points") @]* Enter the solution as an ordered pair, [` (a,b) `], or solutions as a comma separated list of ordered pairs, [` (a,b), (c,d) `], including the parentheses. diff --git a/Pending/RRCC/College_Algebra/MAT121/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_12.pg b/Pending/RRCC/College_Algebra/MAT121/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_12.pg index e8d8a01f60..ec85f8094d 100644 --- a/Pending/RRCC/College_Algebra/MAT121/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_12.pg +++ b/Pending/RRCC/College_Algebra/MAT121/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_12.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -49,11 +49,11 @@ $answer = $k*$A ; BEGIN_PGML Suppose ->> [``A = [$A] ``] << +>> [``A = [$A] ``] << Perform the scalar multiplication [` [$k]A`]. -[` [$k]A = `][_____]*{$answer} [@ AnswerFormatHelp("matrices") @]* +[` [$k]A = `][_____]*{$answer} [@ helpLink("matrices") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_18.pg b/Pending/RRCC/College_Algebra/MAT121/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_18.pg index c385188d6e..63859bd0b3 100644 --- a/Pending/RRCC/College_Algebra/MAT121/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_18.pg +++ b/Pending/RRCC/College_Algebra/MAT121/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_18.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -56,7 +56,7 @@ Suppose Find the product [`AB`]. -[` AB = `][_____]*{$answer} [@ AnswerFormatHelp("matrices") @]* +[` AB = `][_____]*{$answer} [@ helpLink("matrices") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_19.pg b/Pending/RRCC/College_Algebra/MAT121/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_19.pg index 48b042b8ff..825efdb6ec 100644 --- a/Pending/RRCC/College_Algebra/MAT121/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_19.pg +++ b/Pending/RRCC/College_Algebra/MAT121/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_19.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -56,7 +56,7 @@ Suppose Find the product [`AB`]. -[` AB = `][_____]*{$answer} [@ AnswerFormatHelp("matrices") @]* +[` AB = `][_____]*{$answer} [@ helpLink("matrices") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_30.pg b/Pending/RRCC/College_Algebra/MAT121/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_30.pg index a82dbb0e5b..58cf18dd4d 100644 --- a/Pending/RRCC/College_Algebra/MAT121/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_30.pg +++ b/Pending/RRCC/College_Algebra/MAT121/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_30.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "AppletObjects.pl", "unionTables.pl", "parserNumberWithUnits.pl", @@ -74,17 +74,17 @@ END_PGML BEGIN_TEXT $BR -Find the product \(AB\) using technology at this -\{ htmlLink( "javascript:windowpopup();", "link" ) \}. +Find the product \(AB\) using technology at this +\{ htmlLink( "javascript:windowpopup();", "link" ) \}. END_TEXT BEGIN_PGML -[` AB = `][_____]*{$answer1} [@ AnswerFormatHelp("matrices") @]* - - +[` AB = `][_____]*{$answer1} [@ helpLink("matrices") @]* + + Find the product [`BA`] using technology. -[` BA = `][_____]*{$answer2} [@ AnswerFormatHelp("matrices") @]* +[` BA = `][_____]*{$answer2} [@ helpLink("matrices") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_32.pg b/Pending/RRCC/College_Algebra/MAT121/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_32.pg index 579bccd7a0..d5c0f4766c 100644 --- a/Pending/RRCC/College_Algebra/MAT121/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_32.pg +++ b/Pending/RRCC/College_Algebra/MAT121/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_32.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "AppletObjects.pl", "unionTables.pl", "parserNumberWithUnits.pl", @@ -73,12 +73,12 @@ END_PGML BEGIN_TEXT $BR -Find the product \(BA\) using technology at this -\{ htmlLink( "javascript:windowpopup();", "link" ) \}. +Find the product \(BA\) using technology at this +\{ htmlLink( "javascript:windowpopup();", "link" ) \}. END_TEXT BEGIN_PGML -[` BA = `][_____]*{$answer} [@ AnswerFormatHelp("matrices") @]* +[` BA = `][_____]*{$answer} [@ helpLink("matrices") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_50.pg b/Pending/RRCC/College_Algebra/MAT121/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_50.pg index e876a0a173..7e58a0ae6c 100644 --- a/Pending/RRCC/College_Algebra/MAT121/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_50.pg +++ b/Pending/RRCC/College_Algebra/MAT121/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_50.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "AppletObjects.pl", "unionTables.pl", "parserNumberWithUnits.pl", @@ -75,18 +75,18 @@ END_PGML BEGIN_TEXT $BR -Find the product \(AB\) using technology at this -\{ htmlLink( "javascript:windowpopup();", "link" ) \}. +Find the product \(AB\) using technology at this +\{ htmlLink( "javascript:windowpopup();", "link" ) \}. END_TEXT BEGIN_PGML -[` AB = `][_____]*{$answer1} [@ AnswerFormatHelp("matrices") @]* +[` AB = `][_____]*{$answer1} [@ helpLink("matrices") @]* + + - - Find the product [`BA`] using technology. -[` BA = `][_____]*{$answer2} [@ AnswerFormatHelp("matrices") @]* +[` BA = `][_____]*{$answer2} [@ helpLink("matrices") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_7.pg b/Pending/RRCC/College_Algebra/MAT121/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_7.pg index 2fb31313d9..0251d996c0 100644 --- a/Pending/RRCC/College_Algebra/MAT121/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_7.pg +++ b/Pending/RRCC/College_Algebra/MAT121/11.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_5_7.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -56,7 +56,7 @@ Suppose Find the sum [`A+B`]. -[` A + B = `][_____]*{$answer} [@ AnswerFormatHelp("matrices") @]* +[` A + B = `][_____]*{$answer} [@ helpLink("matrices") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_10.pg b/Pending/RRCC/College_Algebra/MAT121/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_10.pg index c6e9d38b2a..44408f84b8 100644 --- a/Pending/RRCC/College_Algebra/MAT121/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_10.pg +++ b/Pending/RRCC/College_Algebra/MAT121/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_10.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -67,13 +67,13 @@ $answer = $A; # Main text BEGIN_PGML ->>[` [$eqn1]=[$d] `]<< ->>[` [$eqn2] = [$b] `]<< +>>[` [$eqn1]=[$d] `]<< +>>[` [$eqn2] = [$b] `]<< >>[` [$eqn3] = [$a] `]<< Find the augmented matrix for this system. -Augmented matrix: [_____]*{$answer} [@ AnswerFormatHelp("matrices") @]* +Augmented matrix: [_____]*{$answer} [@ helpLink("matrices") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_11.pg b/Pending/RRCC/College_Algebra/MAT121/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_11.pg index a8a8b43e4e..821e6c49d6 100644 --- a/Pending/RRCC/College_Algebra/MAT121/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_11.pg +++ b/Pending/RRCC/College_Algebra/MAT121/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_11.pg @@ -19,7 +19,7 @@ DOCUMENT(); loadMacros( "MathObjects.pl", "PGstandard.pl", - "AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -29,7 +29,7 @@ $showPartialCorrectAnswers = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Matrix"); @@ -41,7 +41,7 @@ $e=random(-5,5); $f=random(-5,5); ##### -#commented out because I couldn't figure out how to get the vertical line in an augmented matrix into PGML +#commented out because I couldn't figure out how to get the vertical line in an augmented matrix into PGML #$A = Matrix([ #[$a,$b,$c], #[$d,$e,$f], @@ -62,7 +62,7 @@ $rhs2 = Formula("$f"); BEGIN_TEXT -Convert the augmented matrix to the equivalent linear system. +Convert the augmented matrix to the equivalent linear system. $PAR \[ \left[ \begin{array} {rr} @@ -80,14 +80,14 @@ Use the variables `x` and `y`. END_TEXT ##### -#Convert the augmented matrix to the equivalent linear system. -#>> [``A=[$A]``] << +#Convert the augmented matrix to the equivalent linear system. +#>> [``A=[$A]``] << #Use the variables x and y. ##### BEGIN_PGML -[__________]*{$lhs1} = [____]*{$rhs1} +[__________]*{$lhs1} = [____]*{$rhs1} [__________]*{$lhs2} = [____]*{$rhs2} END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_16.pg b/Pending/RRCC/College_Algebra/MAT121/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_16.pg index 3719718e91..48276e903f 100644 --- a/Pending/RRCC/College_Algebra/MAT121/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_16.pg +++ b/Pending/RRCC/College_Algebra/MAT121/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_16.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -63,7 +63,7 @@ BEGIN_PGML -Solution: [_______________]{$ans} [@ AnswerFormatHelp("points") @]* +Solution: [_______________]{$ans} [@ helpLink("points") @]* Enter the solution as an ordered pair, [` (a,b) `], including the parentheses. diff --git a/Pending/RRCC/College_Algebra/MAT121/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_19.pg b/Pending/RRCC/College_Algebra/MAT121/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_19.pg index bd43b7036d..06da2cdbd6 100644 --- a/Pending/RRCC/College_Algebra/MAT121/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_19.pg +++ b/Pending/RRCC/College_Algebra/MAT121/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_19.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -68,7 +68,7 @@ BEGIN_PGML -Solution: [_______________]{$ans} [@ AnswerFormatHelp("points") @]* +Solution: [_______________]{$ans} [@ helpLink("points") @]* Enter the solution as an ordered pair, [` (a,b) `], including the parentheses. diff --git a/Pending/RRCC/College_Algebra/MAT121/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_22.pg b/Pending/RRCC/College_Algebra/MAT121/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_22.pg index 48d0b18a76..65871cc10e 100644 --- a/Pending/RRCC/College_Algebra/MAT121/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_22.pg +++ b/Pending/RRCC/College_Algebra/MAT121/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_22.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "AppletObjects.pl", "unionTables.pl", "parserNumberWithUnits.pl", @@ -71,16 +71,16 @@ $ans = Point("($xans,$yans)"); ################## # Main text BEGIN_TEXT -Solve the system by Gaussian elimination using the technology at this -\{ htmlLink( "javascript:windowpopup();", "link" ) \}. +Solve the system by Gaussian elimination using the technology at this +\{ htmlLink( "javascript:windowpopup();", "link" ) \}. END_TEXT BEGIN_PGML ->>[` [$eqn1]=[$c] `]<< +>>[` [$eqn1]=[$c] `]<< >>[` [$eqn2] = [$d] `]<< -Solution: [_______________]{$ans} [@ AnswerFormatHelp("points") @]* +Solution: [_______________]{$ans} [@ helpLink("points") @]* Enter the solution as an ordered pair, [` (a,b) `], including the parentheses. diff --git a/Pending/RRCC/College_Algebra/MAT121/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_30.pg b/Pending/RRCC/College_Algebra/MAT121/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_30.pg index 26b6684cbe..39741f28e6 100644 --- a/Pending/RRCC/College_Algebra/MAT121/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_30.pg +++ b/Pending/RRCC/College_Algebra/MAT121/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_30.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "AppletObjects.pl", "unionTables.pl", "parserNumberWithUnits.pl", @@ -73,16 +73,16 @@ $ans = Point("($xans,$yans)"); ################## # Main text BEGIN_TEXT -Solve the system by Gaussian elimination using the technology at this -\{ htmlLink( "javascript:windowpopup();", "link" ) \}. +Solve the system by Gaussian elimination using the technology at this +\{ htmlLink( "javascript:windowpopup();", "link" ) \}. END_TEXT BEGIN_PGML ->>[` [$eqn1]=[$c] `]<< +>>[` [$eqn1]=[$c] `]<< >>[` [$eqn2] = [$d] `]<< -Solution: [_______________]{$ans} [@ AnswerFormatHelp("points") @]* +Solution: [_______________]{$ans} [@ helpLink("points") @]* Enter the solution as an ordered pair, [` (a,b) `], including the parentheses. diff --git a/Pending/RRCC/College_Algebra/MAT121/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_40.pg b/Pending/RRCC/College_Algebra/MAT121/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_40.pg index 6933e03be2..2bf472f288 100644 --- a/Pending/RRCC/College_Algebra/MAT121/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_40.pg +++ b/Pending/RRCC/College_Algebra/MAT121/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_40.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "AppletObjects.pl", "unionTables.pl", "parserNumberWithUnits.pl", @@ -74,17 +74,17 @@ $ans = Point("($xans,$yans, $zans)"); ################## # Main text BEGIN_TEXT -Solve the system by Gaussian elimination using the technology at this -\{ htmlLink( "javascript:windowpopup();", "link" ) \}. +Solve the system by Gaussian elimination using the technology at this +\{ htmlLink( "javascript:windowpopup();", "link" ) \}. END_TEXT BEGIN_PGML ->>[` [$eqn1] = [$c] `]<< ->>[` [$eqn2] = [$c] `]<< +>>[` [$eqn1] = [$c] `]<< +>>[` [$eqn2] = [$c] `]<< >>[` [$eqn3] = [$e] `]<< -Solution: [_______________]{$ans} [@ AnswerFormatHelp("points") @]* +Solution: [_______________]{$ans} [@ helpLink("points") @]* Enter the solution as an ordered triple, [` (a,b,c) `], including the parentheses. diff --git a/Pending/RRCC/College_Algebra/MAT121/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_52.pg b/Pending/RRCC/College_Algebra/MAT121/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_52.pg index 3cfdc3b1c4..f24685608e 100644 --- a/Pending/RRCC/College_Algebra/MAT121/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_52.pg +++ b/Pending/RRCC/College_Algebra/MAT121/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_52.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,9 +48,9 @@ BEGIN_PGML Every day, a cupcake store sells [$b] cupcakes in chocolate and vanilla flavors. If the chocolate flavor is [$c] times as popular as the vanilla flavor, how many of each cupcake is sold per day? -Vanilla cupcakes: [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +Vanilla cupcakes: [_______________]{$ans1} [@ helpLink("numbers") @]* -Chocolate cupcakes: [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +Chocolate cupcakes: [_______________]{$ans2} [@ helpLink("numbers") @]* diff --git a/Pending/RRCC/College_Algebra/MAT121/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_6.pg b/Pending/RRCC/College_Algebra/MAT121/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_6.pg index 6ce10bb0ea..3c7076f6bb 100644 --- a/Pending/RRCC/College_Algebra/MAT121/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_6.pg +++ b/Pending/RRCC/College_Algebra/MAT121/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_6.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -61,12 +61,12 @@ BEGIN_PGML Find the augmented matrix for this system. ->>[` [$eqn1]=[$c] `]<< +>>[` [$eqn1]=[$c] `]<< >>[` [$eqn2] = [$f] `]<< -Augmented matrix: [_____]*{$answer} [@ AnswerFormatHelp("matrices") @]* +Augmented matrix: [_____]*{$answer} [@ helpLink("matrices") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_60.pg b/Pending/RRCC/College_Algebra/MAT121/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_60.pg index 8227fdb4f1..b4a3919379 100644 --- a/Pending/RRCC/College_Algebra/MAT121/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_60.pg +++ b/Pending/RRCC/College_Algebra/MAT121/11.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_11_6_60.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -52,11 +52,11 @@ BEGIN_PGML A bag of mixed nuts contains cashews, pistachios, and almonds. There are [$size] total nuts in the bag, and there are [$less] fewer almonds than pistachios. Each cashew weighs [$a] g, each pistachio weighs [$a+1] g, and each almond weighs [$a+3] g. If the bag weighs [$d/10] kg, find out how many of each type of nut is in the bag. -Cashews: [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +Cashews: [_______________]{$ans1} [@ helpLink("numbers") @]* -Pistachios: [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +Pistachios: [_______________]{$ans2} [@ helpLink("numbers") @]* -Almonds: [_______________]{$ans3} [@ AnswerFormatHelp("numbers") @]* +Almonds: [_______________]{$ans3} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_13.pg b/Pending/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_13.pg index ccd2102077..918f9ea9b5 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_13.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_13.pg @@ -23,8 +23,8 @@ loadMacros( "MathObjects.pl", "parserAssignment.pl", "parserImplicitEquation.pl", -"contextFraction.pl", -"AnswerFormatHelp.pl", +"contextFraction.pl", + "PGML.pl", "PGcourse.pl", ); @@ -57,9 +57,9 @@ $ans = Formula("-$a/$b*x+$c/$b"); BEGIN_PGML -Solve the equation [` [$f]=[$g] `] for [` y `] in terms of [`x`]. +Solve the equation [` [$f]=[$g] `] for [` y `] in terms of [`x`]. -[`y=`] [_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`y=`] [_______________]{$ans} [@ helpLink("formulas") @]* diff --git a/Pending/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_17.pg b/Pending/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_17.pg index 6c0de988ff..3699d63bc8 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_17.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_17.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "contextLimitedPowers.pl", "PGML.pl", @@ -53,9 +53,9 @@ $ans=Compute(sqrt(($a-$c)**2+($b-$d)**2)); # Main text BEGIN_PGML -Find the distance between [` [$pt1] `] and [` [$pt2] `]. +Find the distance between [` [$pt1] `] and [` [$pt2] `]. - [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* + [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_19.pg b/Pending/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_19.pg index aeb389c206..064bb4ae53 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_19.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_19.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -53,9 +53,9 @@ $ans=Compute(sqrt(($a-$c)**2+($b-$d)**2)); # Main text BEGIN_PGML -Find the distance between [` [$pt1] `] and [` [$pt2] `]. +Find the distance between [` [$pt1] `] and [` [$pt2] `]. -[_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans} [@ helpLink("numbers") @]* diff --git a/Pending/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_23.pg b/Pending/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_23.pg index ad5abf9a9c..1feacd2e62 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_23.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_23.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -50,12 +50,12 @@ $midpt = List( Point("(($a+$c)/2,($b+$d)/2)")); # Main text BEGIN_PGML -Find the coordinates of the midpoint of the line segment that joins the two points [` [$pt1] `] and [` [$pt2] `]. +Find the coordinates of the midpoint of the line segment that joins the two points [` [$pt1] `] and [` [$pt2] `]. Enter a point as [` (a,b) `], -including the parentheses. +including the parentheses. -midpoint: [_______________]{$midpt} [@ AnswerFormatHelp("points") @]* +midpoint: [_______________]{$midpt} [@ helpLink("points") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_25.pg b/Pending/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_25.pg index 25f2e9023c..dc303487e9 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_25.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_25.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -49,11 +49,11 @@ $midpt = List( Point("(($a+$c)/2,($b+$d)/2)")); # Main text BEGIN_PGML -Find the coordinates of the midpoint of the line segment that joins the two points [` [$pt1] `] and [` [$pt2] `]. +Find the coordinates of the midpoint of the line segment that joins the two points [` [$pt1] `] and [` [$pt2] `]. -Enter a point as [` (a,b) `], including the parentheses. +Enter a point as [` (a,b) `], including the parentheses. -midpoint: [_______________]{$midpt} [@ AnswerFormatHelp("points") @]* +midpoint: [_______________]{$midpt} [@ helpLink("points") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_27.pg b/Pending/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_27.pg index 0d50f5ca9b..fda366e12e 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_27.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_27.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -41,11 +41,11 @@ $origin = List( Point("(0,0)")); # Main text BEGIN_PGML -What are the coordinates of the origin? +What are the coordinates of the origin? -Enter a point as [` (a,b) `], including the parentheses. +Enter a point as [` (a,b) `], including the parentheses. - [_______________]{$origin} [@ AnswerFormatHelp("points") @]* + [_______________]{$origin} [@ helpLink("points") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_28.pg b/Pending/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_28.pg index da0eb1284f..a908e4c84e 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_28.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_28.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -43,7 +43,7 @@ $ans=Compute(0); BEGIN_PGML If a point is located on the y-axis, what is the x-coordinate? - [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* + [_______________]{$ans} [@ helpLink("numbers") @]* diff --git a/Pending/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_29.pg b/Pending/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_29.pg index f62ad9669b..e07573e9ec 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_29.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_29.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -43,7 +43,7 @@ $ans=Compute(0); BEGIN_PGML If a point is located on the x-axis, what is the y-coordinate? -[_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_30.pg b/Pending/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_30.pg index b1f0bfee84..bfdb5ff9ce 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_30.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_30.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserPopUp.pl", "unionTables.pl", @@ -93,7 +93,7 @@ Context()->texStrings; BEGIN_TEXT Match the following points A, B, and C with their coordinates. $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>400,height=>400,tex_size=>800 ) \} $BR (Click on graph to enlarge) diff --git a/Pending/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_34.pg b/Pending/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_34.pg index efe4d968cf..11d8efc57c 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_34.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_34.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "PGchoicemacros.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserPopUp.pl", "PGML.pl", @@ -107,21 +107,21 @@ BEGIN_PGML Name the quadrant, or axis, in which the following points are located. -1. ([$a],[$b]): [_________________]{$popup1} +1. ([$a],[$b]): [_________________]{$popup1} -2. ([$c],[$d]): [_________________]{$popup2} +2. ([$c],[$d]): [_________________]{$popup2} -3. ([$e],[$f]): [_________________]{$popup3} +3. ([$e],[$f]): [_________________]{$popup3} -4. ([$g],[$h]): [_________________]{$popup4} +4. ([$g],[$h]): [_________________]{$popup4} -5. ([$j],[$i]): [_________________]{$popup5} +5. ([$j],[$i]): [_________________]{$popup5} -6. ([$j],[$g]): [_________________]{$popup6} +6. ([$j],[$g]): [_________________]{$popup6} -7. ([$m],[$n]): [_________________]{$popup7} +7. ([$m],[$n]): [_________________]{$popup7} -8. ([$o],[$p]): [_________________]{$popup8} +8. ([$o],[$p]): [_________________]{$popup8} END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_43.pg b/Pending/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_43.pg index a89f136189..1611391137 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_43.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_43.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGgraphmacros.pl", "PGstandard.pl", -"AnswerFormatHelp.pl", + "MathObjects.pl", "contextLimitedPoint.pl", "PGML.pl", @@ -87,9 +87,9 @@ BEGIN_PGML -Find the distance between the two endpoints for the line segment shown in the graph. +Find the distance between the two endpoints for the line segment shown in the graph. -[_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans} [@ helpLink("numbers") @]* diff --git a/Pending/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_44.pg b/Pending/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_44.pg index bf6c24dec8..56ff2d1444 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_44.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_44.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGgraphmacros.pl", "PGstandard.pl", -"AnswerFormatHelp.pl", + "MathObjects.pl", "contextLimitedPoint.pl", "PGML.pl", @@ -82,10 +82,10 @@ BEGIN_PGML -Find the midpoint between the two endpoints for the line segment shown in the graph. Enter a point as [` (a,b) `], +Find the midpoint between the two endpoints for the line segment shown in the graph. Enter a point as [` (a,b) `], including the parentheses. -[_______________]{$midpt} [@ AnswerFormatHelp("points") @]* +[_______________]{$midpt} [@ helpLink("points") @]* diff --git a/Pending/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_45.pg b/Pending/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_45.pg index 6757038d3b..3821fe90b0 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_45.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_45.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGgraphmacros.pl", "PGstandard.pl", -"AnswerFormatHelp.pl", + "MathObjects.pl", "contextLimitedPoint.pl", "PGML.pl", @@ -79,9 +79,9 @@ BEGIN_PGML -Find the distance between the point [` [$pt1] `] and the origin. +Find the distance between the point [` [$pt1] `] and the origin. -[_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans} [@ helpLink("numbers") @]* diff --git a/Pending/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_5.pg b/Pending/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_5.pg index c50b1080f8..f7929fe1d0 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_5.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_5.pg @@ -21,9 +21,9 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", - "contextFraction.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", ); @@ -57,13 +57,13 @@ $yint = List( Point("(0,$b)") ); BEGIN_PGML Find the x-intercept and y-intercept -of [` y = [$f] `]. +of [` y = [$f] `]. Enter a point as [` (a,b) `], -including the parentheses. +including the parentheses. -x-intercept: [__________________]{$xint} [@ AnswerFormatHelp("points") @]* -y-intercept: [__________________]{$yint} [@ AnswerFormatHelp("points") @]* +x-intercept: [__________________]{$xint} [@ helpLink("points") @]* +y-intercept: [__________________]{$yint} [@ helpLink("points") @]* diff --git a/Pending/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_54.pg b/Pending/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_54.pg index fca7bb063e..a433e230b4 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_54.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_54.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGgraphmacros.pl", "PGstandard.pl", -"AnswerFormatHelp.pl", + "MathObjects.pl", "contextLimitedPoint.pl", "PGML.pl", @@ -56,11 +56,11 @@ BEGIN_PGML A man drove [` [$a] `] miles directly east from his home, made a left turn at an intersection, and then traveled [` [$b] `] miles due north to his place of work. If a road was made directly from his home to his place of work, what would its distance be? -[_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans1} [@ helpLink("numbers") @]* If the road was made as described above, how much shorter would the man's one-way trip be every day? -[_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans2} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_9.pg b/Pending/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_9.pg index fe53d3846e..eef4408a67 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_9.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_1_9.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserImplicitEquation.pl", "PGML.pl", @@ -59,15 +59,15 @@ $yint = List( Point("(0,$c/$b)") ); Context()->texStrings; BEGIN_PGML Enter the x-intercept(s) and y-intercept(s) -of [` [$f]=[$g] `]. +of [` [$f]=[$g] `]. Enter a point as [` (a,b) `], -including the parentheses. If there is more -than one correct answer, enter a comma +including the parentheses. If there is more +than one correct answer, enter a comma separated list of points. -x-intercept(s): [_______________]{$xint} [@ AnswerFormatHelp("points") @]* -y-intercept(s): [_______________]{$yint} [@ AnswerFormatHelp("points") @]* +x-intercept(s): [_______________]{$xint} [@ helpLink("points") @]* +y-intercept(s): [_______________]{$yint} [@ helpLink("points") @]* diff --git a/Pending/RRCC/College_Algebra/MAT121/2.1/RRCC_CCCS_Circles_1.pg b/Pending/RRCC/College_Algebra/MAT121/2.1/RRCC_CCCS_Circles_1.pg index ccbafd5c1a..c376231c5b 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.1/RRCC_CCCS_Circles_1.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.1/RRCC_CCCS_Circles_1.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -52,12 +52,12 @@ $cen = Point("($h,$k)"); # Main text BEGIN_PGML -Find the center and radius of the following circle. Enter the center as an ordered pair. +Find the center and radius of the following circle. Enter the center as an ordered pair. >>[`` [$f]=[$r2] ``]<< -+ center: [______]{$cen} [@ AnswerFormatHelp("points") @]* ++ center: [______]{$cen} [@ helpLink("points") @]* -+ radius: [___]{$r} [@ AnswerFormatHelp("numbers") @]* ++ radius: [___]{$r} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/2.1/RRCC_CCCS_Circles_2.pg b/Pending/RRCC/College_Algebra/MAT121/2.1/RRCC_CCCS_Circles_2.pg index 6b5c69b683..90d93458d1 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.1/RRCC_CCCS_Circles_2.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.1/RRCC_CCCS_Circles_2.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -51,12 +51,12 @@ $cen = Point("(0,$k)"); # Main text BEGIN_PGML -Find the center and radius of the following circle. Enter the center as an ordered pair. +Find the center and radius of the following circle. Enter the center as an ordered pair. >>[`` [$f]=[$r2] ``]<< -+ center: [______]{$cen} [@ AnswerFormatHelp("points") @]* ++ center: [______]{$cen} [@ helpLink("points") @]* -+ radius: [___]{$r} [@ AnswerFormatHelp("numbers") @]* ++ radius: [___]{$r} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/2.1/RRCC_CCCS_Circles_3.pg b/Pending/RRCC/College_Algebra/MAT121/2.1/RRCC_CCCS_Circles_3.pg index 353c3674cb..02b96d1c6e 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.1/RRCC_CCCS_Circles_3.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.1/RRCC_CCCS_Circles_3.pg @@ -2,7 +2,7 @@ ## College Algebra ## ENDDESCRIPTION - + ## DBsubject(Algebra) ## DBchapter(Cartesian coordinate system) ## DBsection(Circles) @@ -12,7 +12,7 @@ ## MO(1) ## KEYWORDS('college algebra') - + ########################### # Initialization @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -47,23 +47,23 @@ $r2 = ($r)**2; # The two sides of the correct answer $ans1=Formula("(x-$h)^2+(y-$k)^2")->reduce; $ans2=Formula("$r2"); - + ########################### # Main text BEGIN_PGML -Find the equation for the circle with center [` ([$h],[$k]) `] and radius of length [` [$r] `]. - - [____________][`=`] [__________] [@ AnswerFormatHelp("numbers") @]* +Find the equation for the circle with center [` ([$h],[$k]) `] and radius of length [` [$r] `]. + + [____________][`=`] [__________] [@ helpLink("numbers") @]* END_PGML - - + + ############################ #Answers @@ -71,9 +71,9 @@ $showPartialCorrectAnswers = 0; install_problem_grader(~~&std_problem_grader); -UNORDERED_ANS( -$ans1->cmp(), -$ans2->cmp(), +UNORDERED_ANS( +$ans1->cmp(), +$ans2->cmp(), ); # Solution diff --git a/Pending/RRCC/College_Algebra/MAT121/2.1/RRCC_CCCS_Circles_4.pg b/Pending/RRCC/College_Algebra/MAT121/2.1/RRCC_CCCS_Circles_4.pg index 68332e5b32..2a34898143 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.1/RRCC_CCCS_Circles_4.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.1/RRCC_CCCS_Circles_4.pg @@ -2,7 +2,7 @@ ## College Algebra ## ENDDESCRIPTION - + ## DBsubject(Algebra) ## DBchapter(Cartesian coordinate system) ## DBsection(Circles) @@ -12,7 +12,7 @@ ## MO(1) ## KEYWORDS('college algebra') - + ########################### # Initialization @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "unorderedAnswer.pl", @@ -47,24 +47,24 @@ $r2 = ($r/2)**2; $ans1=Formula("(x-$h)^2+(y-$k)^2")->reduce; $ans2=Formula("$r2"); - - + + ########################### # Main text BEGIN_PGML -Find the equation for the circle with center [` ([$h],[$k]) `] and diameter of length [` [$r] `]. - - [______________] [`=`] [____________] [@ AnswerFormatHelp("numbers") @]* +Find the equation for the circle with center [` ([$h],[$k]) `] and diameter of length [` [$r] `]. + + [______________] [`=`] [____________] [@ helpLink("numbers") @]* END_PGML - - + + ############################ #Answers @@ -72,9 +72,9 @@ $showPartialCorrectAnswers = 0; install_problem_grader(~~&std_problem_grader); -UNORDERED_ANS( -$ans1->cmp(), -$ans2->cmp(), +UNORDERED_ANS( +$ans1->cmp(), +$ans2->cmp(), ); diff --git a/Pending/RRCC/College_Algebra/MAT121/2.1/RRCC_CCCS_Circles_5.pg b/Pending/RRCC/College_Algebra/MAT121/2.1/RRCC_CCCS_Circles_5.pg index 2b385d12ba..c72e63c6d1 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.1/RRCC_CCCS_Circles_5.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.1/RRCC_CCCS_Circles_5.pg @@ -6,17 +6,17 @@ ## Author(Brenda Forland; EDIT: James Morski 8/30/17) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -24,10 +24,10 @@ loadMacros( "PGML.pl", "PGcourse.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -45,26 +45,26 @@ $r2 = Compute("($a-$h)**2+($b-$k)**2"); # The two sides of the correct answer $ans1=Formula("(x-$h)^2+(y-$k)^2")->reduce; $ans2=Formula("$r2"); - - - + + + ########################### # Main text - + BEGIN_PGML -Find the equation for the circle with center [` ([$h],[$k]) `] and and passes through [` ([$a],[$b]) `]. - - [_______________] [`=`] [_____________][@ AnswerFormatHelp("numbers") @]* - +Find the equation for the circle with center [` ([$h],[$k]) `] and and passes through [` ([$a],[$b]) `]. + + [_______________] [`=`] [_____________][@ helpLink("numbers") @]* + + - END_PGML - - - + + + ############################ #Answers @@ -72,20 +72,20 @@ $showPartialCorrectAnswers = 0; install_problem_grader(~~&std_problem_grader); -UNORDERED_ANS( -$ans1->cmp(), -$ans2->cmp(), +UNORDERED_ANS( +$ans1->cmp(), +$ans2->cmp(), ); # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); diff --git a/Pending/RRCC/College_Algebra/MAT121/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_10.pg b/Pending/RRCC/College_Algebra/MAT121/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_10.pg index c815bc46b8..236cc72f30 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_10.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_10.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -53,11 +53,11 @@ if ($sign == 1) { $solution = (-$d*$a - $b*$e)/($c*$b); BEGIN_PGML -Solve the following equation for [`x`]: +Solve the following equation for [`x`]: [``- \dfrac{[$a]}{[$b]} - \dfrac{[$c]}{[$d]}x = \dfrac{[$e]}{[$d]}``] -[` x = `] [_______________]{$solution} [@ AnswerFormatHelp("numbers") @]* +[` x = `] [_______________]{$solution} [@ helpLink("numbers") @]* END_PGML @@ -68,11 +68,11 @@ else { $solution = (-$d*$a + $b*$e)/($c*$b); BEGIN_PGML -Solve the following equation for [`x`]: +Solve the following equation for [`x`]: [``- \dfrac{[$a]}{[$b]} - \dfrac{[$c]}{[$d]}x = -\dfrac{[$e]}{[$d]}``] -[`x=`][_______________]{$solution} [@ AnswerFormatHelp("numbers") @]* +[`x=`][_______________]{$solution} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_36.pg b/Pending/RRCC/College_Algebra/MAT121/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_36.pg index af7af0d4e0..6575309d2f 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_36.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_36.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -36,7 +36,7 @@ $showPartialCorrectAnswers = 1; $a=non_zero_random(1,3); # choose parallel, perpendicular, or neither as answer -# used to generate slopes +# used to generate slopes $b=list_random(3,5,7,9); $c=list_random(2,4,6,8); @@ -60,13 +60,13 @@ if ($a == 1) { # parallel lines BEGIN_PGML -Describe the following pair of lines as parallel, perpendicular, or neither. +Describe the following pair of lines as parallel, perpendicular, or neither. [`` y = \dfrac{{[$b]}}{{[$c]}} x + {[$d]}``] [`` y = \dfrac{{[$b*$f]}}{{[$c*$f]}} x - {[$e]} ``] -[_______________]{$radio} +[_______________]{$radio} END_PGML @@ -78,12 +78,12 @@ END_PGML BEGIN_PGML -Describe the following pair of lines as parallel, perpendicular, or neither. +Describe the following pair of lines as parallel, perpendicular, or neither. [`` y = \dfrac{{[$c*$f]}}{{[$b*$f]}} x + {[$d]} \\ y = - \dfrac{{[$b]}}{{[$c]}} x - {[$e]} ``] -[_______________]{$radio} +[_______________]{$radio} @@ -97,11 +97,11 @@ END_PGML BEGIN_PGML -Describe the following pair of lines as parallel, perpendicular, or neither. +Describe the following pair of lines as parallel, perpendicular, or neither. [`` y = \dfrac{{[$c*$f]}}{{[$b*$f]}} x + {[$d]} \\ y = - \dfrac{{[$c]}}{{[$b]}} x - {[$e]} ``] -[_______________]{$radio} +[_______________]{$radio} END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_36b.pg b/Pending/RRCC/College_Algebra/MAT121/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_36b.pg index bf508ae7af..18323511f8 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_36b.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_36b.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -36,7 +36,7 @@ $showPartialCorrectAnswers = 1; $a=non_zero_random(1,3); # choose parallel, perpendicular, or neither as answer -# used to generate slopes +# used to generate slopes $b=list_random(3,5,7,9); $c=list_random(2,4,6,8); @@ -60,13 +60,13 @@ if ($a == 1) { # parallel lines BEGIN_PGML -Describe the following pair of lines as parallel, perpendicular, or neither. +Describe the following pair of lines as parallel, perpendicular, or neither. [``{[$b*$f]} x - {[$c*$f]} y = \dfrac{{[$d]}}{{[$e]}}``] [`` -{[$b]} x + {[$c]} y = -\dfrac{{[$e]}}{{[$d]}} ``] -[_______________]{$radio} +[_______________]{$radio} END_PGML @@ -78,11 +78,11 @@ END_PGML BEGIN_PGML -Describe the following pair of lines as parallel, perpendicular, or neither. +Describe the following pair of lines as parallel, perpendicular, or neither. [``-{[$b*$f]} x - {[$c*$f]} y = \dfrac{{[$d]}}{{[$e]}} \\ -{[$c]} x + {[$b]} y = \dfrac{{[$d]}}{{[$e]}} ``] -[_______________]{$radio} +[_______________]{$radio} @@ -96,11 +96,11 @@ END_PGML BEGIN_PGML -Describe the following pair of lines as parallel, perpendicular, or neither. +Describe the following pair of lines as parallel, perpendicular, or neither. [``{[$b*$f]} x + {[$c*$f]} y = \dfrac{{[$d]}}{{[$e]}} \\ -{[$b]} x + {[$c]} y = -\dfrac{{[$e]}}{{[$d]}} ``] -[_______________]{$radio} +[_______________]{$radio} END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_37.pg b/Pending/RRCC/College_Algebra/MAT121/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_37.pg index 5300b93496..e0f6e60dad 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_37.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_37.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -58,13 +58,13 @@ if ($a == 1) { # parallel lines BEGIN_PGML -Describe the following pair of lines as parallel, perpendicular, or neither. +Describe the following pair of lines as parallel, perpendicular, or neither. [`` {[$c]}x - {[$b]}y = {[$e]} ``] [`` {[$b * $d]}y - {[$c * $d]}x = {[$f]} ``] -[_______________]{$radio} +[_______________]{$radio} END_PGML @@ -76,11 +76,11 @@ END_PGML BEGIN_PGML -Describe the following pair of lines as parallel, perpendicular, or neither. +Describe the following pair of lines as parallel, perpendicular, or neither. [`` {[$c]}x - {[$b]}y = {[$e]} \\ {[$c * $d]}y + {[$b * $d]}x = {[$f]} ``] -[_______________]{$radio} +[_______________]{$radio} @@ -94,11 +94,11 @@ END_PGML BEGIN_PGML -Describe the following pair of lines as parallel, perpendicular, or neither. +Describe the following pair of lines as parallel, perpendicular, or neither. [`` {[$c]}x - {[$e]} = {[$b]}y \\ {[$b * $d]}y + {[$c * $d]}x = {[$f]} ``] -[_______________]{$radio} +[_______________]{$radio} END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_39.pg b/Pending/RRCC/College_Algebra/MAT121/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_39.pg index 56177121b7..21f94bf445 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_39.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_39.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -56,13 +56,13 @@ if ($a == 1) { # parallel lines BEGIN_PGML -Describe the following pair of lines as parallel, perpendicular, or neither. +Describe the following pair of lines as parallel, perpendicular, or neither. [`` x = \dfrac{{[$b]}}{{[$c]}}``] [`` x = -\dfrac{{[$c]}}{{[$b]}} ``] -[_______________]{$radio} +[_______________]{$radio} END_PGML @@ -74,11 +74,11 @@ END_PGML BEGIN_PGML -Describe the following pair of lines as parallel, perpendicular, or neither. +Describe the following pair of lines as parallel, perpendicular, or neither. [`` x = \dfrac{{[$b]}}{{[$c]}} \\ y = \dfrac{{[$b]}}{{[$c]}} ``] -[_______________]{$radio} +[_______________]{$radio} @@ -92,11 +92,11 @@ END_PGML BEGIN_PGML -Describe the following pair of lines as parallel, perpendicular, or neither. +Describe the following pair of lines as parallel, perpendicular, or neither. [`` x = \dfrac{{[$b]}}{{[$c]}} \\ x + y = - \dfrac{{[$c]}}{{[$b]}} ``] -[_______________]{$radio} +[_______________]{$radio} END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_41.pg b/Pending/RRCC/College_Algebra/MAT121/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_41.pg index 74ff92daa5..1957564c7f 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_41.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_41.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -52,9 +52,9 @@ $ans = (2 * $y1 - 1) / (2 * $x1 - 1); BEGIN_PGML Find the slope of the line between the points [` \left( {[$x1]}, {[$y1]} \right) `] and -[` \left( {[$x2]}, {[$y2]} \right) `]. +[` \left( {[$x2]}, {[$y2]} \right) `]. - [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* + [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_45.pg b/Pending/RRCC/College_Algebra/MAT121/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_45.pg index 3057f02e0d..ba06add9ac 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_45.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_45.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "parserRadioButtons.pl", @@ -36,7 +36,7 @@ $showPartialCorrectAnswers = 1; $u=non_zero_random(1,3); if ($u == 1) { - # Setup parameters + # Setup parameters $a=non_zero_random(2,7); $b=non_zero_random(1,3); @@ -64,12 +64,12 @@ if ($u == 1) { ); BEGIN_PGML - Find the slope of the line passing between each pair of points, and then determine if the - lines are parallel, perpendicular, or neither. + Find the slope of the line passing between each pair of points, and then determine if the + lines are parallel, perpendicular, or neither. [`` \left( {[$x1]}, {[$y1]} \right) \text{ and } \left( {[$x2]}, {[$y2]} \right) ``] - -[`` \left( {[$x3]} , {[$y3]} \right) \text{ and } \left( {[$x4]}, {[$y4]} \right) ``] + +[`` \left( {[$x3]} , {[$y3]} \right) \text{ and } \left( {[$x4]}, {[$y4]} \right) ``] [_______________]{$radio} @@ -85,7 +85,7 @@ if ($u == 1) { #END_PGML_SOLUTION } elsif ($u == 2) { # perpendicular lines - # Setup parameters + # Setup parameters $a=non_zero_random(2,7); $b=non_zero_random(1,3); @@ -113,11 +113,11 @@ if ($u == 1) { ); BEGIN_PGML - Find the slope of the line passing between each pair of points, and then determine if the - lines are parallel, perpendicular, or neither. + Find the slope of the line passing between each pair of points, and then determine if the + lines are parallel, perpendicular, or neither. - [`` \left( {[$x1]}, {[$y1]} \right) \text{ and } \left( {[$x2]}, {[$y2]} \right) \\ - \left( {[$x3]} , {[$y3]} \right) \text{ and } \left( {[$x4]}, {[$y4]} \right) ``] + [`` \left( {[$x1]}, {[$y1]} \right) \text{ and } \left( {[$x2]}, {[$y2]} \right) \\ + \left( {[$x3]} , {[$y3]} \right) \text{ and } \left( {[$x4]}, {[$y4]} \right) ``] [_______________]{$radio} @@ -131,7 +131,7 @@ if ($u == 1) { #Solution explanation goes here. #END_PGML_SOLUTION } else { # neither parallel or perpendicular - # Setup parameters + # Setup parameters $a=non_zero_random(2,7); $b=non_zero_random(1,3); @@ -159,11 +159,11 @@ if ($u == 1) { ); BEGIN_PGML - Find the slope of the line passing between each pair of points, and then determine if the - lines are parallel, perpendicular, or neither. + Find the slope of the line passing between each pair of points, and then determine if the + lines are parallel, perpendicular, or neither. - [`` \left( {[$x1]}, {[$y1]} \right) \text{ and } \left( {[$x2]}, {[$y2]} \right) \\ - \left( {[$x3]} , {[$y3]} \right) \text{ and } \left( {[$x4]}, {[$y4]} \right) ``] + [`` \left( {[$x1]}, {[$y1]} \right) \text{ and } \left( {[$x2]}, {[$y2]} \right) \\ + \left( {[$x3]} , {[$y3]} \right) \text{ and } \left( {[$x4]}, {[$y4]} \right) ``] [_______________]{$radio} diff --git a/Pending/RRCC/College_Algebra/MAT121/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_50.pg b/Pending/RRCC/College_Algebra/MAT121/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_50.pg index 787aae078e..8539049012 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_50.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_50.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -44,12 +44,12 @@ Context()->variables->add(m => 'Real'); BEGIN_PGML Start with the point-slope formula for a line -[`` y - y_1 = m \left( x - x_1 \right) ``] +[`` y - y_1 = m \left( x - x_1 \right) ``] and solve to find [`x`] in terms of [` m, x_1, y, `] and [`y_1`]. In order to enter a subscript, type x1 to get `x_1`. -[`x =`] [_______________]{Compute("(y - y1)/m + x1")->cmp()} -[@ AnswerFormatHelp("formulas") @]* +[`x =`] [_______________]{Compute("(y - y1)/m + x1")->cmp()} +[@ helpLink("formulas") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_57.pg b/Pending/RRCC/College_Algebra/MAT121/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_57.pg index 9b5097672e..496c6963ed 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_57.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_57.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "scaffold.pl", @@ -32,9 +32,9 @@ $showPartialCorrectAnswers = 1; ########################### -# Setup +# Setup $u=non_zero_random(1,3); # three possibilities for the details of the rental car contract -if ($u == 1) { +if ($u == 1) { $m = 0.15; $b = 65; } elsif ($u == 2) { @@ -61,7 +61,7 @@ $ans3 = round(($cost2 - $b) / $m); # Main text Scaffold::Begin(); - + Section::Begin("Part 1"); BEGIN_PGML @@ -72,20 +72,20 @@ Suppose that the cost of a rental car is $[`{[$b]}`] for a week plus $[`{[$m]}`] where [`x`] is the number of miles driven. What is the total cost of the car if you travel [`{[$mileage]}`] miles? - [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* + [_______________]{$ans1} [@ helpLink("numbers") @]* END_PGML Section::End(); - + Section::Begin("Part 2"); BEGIN_PGML -If the total cost of your rental for one week is $[`{[$cost]}`], how many miles did you travel? +If the total cost of your rental for one week is $[`{[$cost]}`], how many miles did you travel? - [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* + [_______________]{$ans2} [@ helpLink("numbers") @]* END_PGML @@ -96,12 +96,12 @@ Section::Begin("Part 3"); BEGIN_PGML Suppose that you have a maximum of $[`{[$cost2]}`] to spend on a car rental. What is the maximum number of miles that you can travel? Round your answer to the nearest whole number. - [_______________]{$ans3} [@ AnswerFormatHelp("numbers") @]* + [_______________]{$ans3} [@ helpLink("numbers") @]* END_PGML Section::End(); - + Scaffold::End(); ############################ diff --git a/Pending/RRCC/College_Algebra/MAT121/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_13.pg b/Pending/RRCC/College_Algebra/MAT121/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_13.pg index 1ebf97ad62..71c4f25eaa 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_13.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_13.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -47,11 +47,11 @@ $answer1 = ($e+$a*$c)/($a*$b+1-$d); # Main text BEGIN_PGML -Solve the following equation for [`x`]: +Solve the following equation for [`x`]: [`` [$a]([$b]x-[$c])+x = [$d]x+[$e]``] -[`x =`][_______________]{$answer1} [@ AnswerFormatHelp("numbers") @]* +[`x =`][_______________]{$answer1} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_22.pg b/Pending/RRCC/College_Algebra/MAT121/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_22.pg index 51db3112e6..bd2dbebbaf 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_22.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_22.pg @@ -22,7 +22,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,9 +50,9 @@ $eqn = Formula("-$c/$d*x+($b+($a*$c)/$d)")->reduce; BEGIN_PGML -Find the equation of the line that contains point [`([$a],[$b])`] with a slope of [` -\dfrac{[$c]}{[$d]} `]. +Find the equation of the line that contains point [`([$a],[$b])`] with a slope of [` -\dfrac{[$c]}{[$d]} `]. -[`y=`] [___________]{$eqn} [@ AnswerFormatHelp("equation") @]* +[`y=`] [___________]{$eqn} [@ helpLink("equation") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_23.pg b/Pending/RRCC/College_Algebra/MAT121/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_23.pg index 67c62f7de2..78503d51a9 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_23.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_23.pg @@ -22,7 +22,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -54,9 +54,9 @@ $eqn = Formula("($c/$d)*x+($b-($a*$c)/$d)")->reduce; BEGIN_PGML -Find the equation of the line that contains the point [`([$a],[$b])`] and has a slope of [` \dfrac{[$c]}{[$d]} `]. +Find the equation of the line that contains the point [`([$a],[$b])`] and has a slope of [` \dfrac{[$c]}{[$d]} `]. -[`y=`][___________]{$eqn} [@ AnswerFormatHelp("formulas") @]* +[`y=`][___________]{$eqn} [@ helpLink("formulas") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_29.pg b/Pending/RRCC/College_Algebra/MAT121/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_29.pg index 529edfad22..1342f5a8bf 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_29.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_29.pg @@ -22,7 +22,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,10 +50,10 @@ $ans = Formula("-$c*x+($a*$c+$b)")->reduce; BEGIN_PGML -Find an equation of the line perpendicular to [` [$c]*y=x-[$d] `] that passes through the point [`([$a],[$b])`]. +Find an equation of the line perpendicular to [` [$c]*y=x-[$d] `] that passes through the point [`([$a],[$b])`]. -[`y=`] [___________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`y=`] [___________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_30.pg b/Pending/RRCC/College_Algebra/MAT121/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_30.pg index d44fe51f52..f6aa88bf00 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_30.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_30.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,11 +51,11 @@ $ans = Formula("$slope*x+$intercept")->reduce; BEGIN_PGML Find the equation of the line passing through the points [` ([$a] ,[$b] ) `] and -[` ( [$c], [$d]) . `] +[` ( [$c], [$d]) . `] -[`y=`] [_______________]{$ans} -[@ AnswerFormatHelp("formulas") @]* +[`y=`] [_______________]{$ans} +[@ helpLink("formulas") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_6.pg b/Pending/RRCC/College_Algebra/MAT121/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_6.pg index e9d91b88c7..bd6588ea8a 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_6.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_6.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -46,11 +46,11 @@ $answer1 =($d-$b)/($a-$c); # Main text BEGIN_PGML -Solve the following equation for [`x`]: +Solve the following equation for [`x`]: [`[$a]x+[$b]=[$c]x+[$d]`] -[` x = `][_______________]{$answer1} [@ AnswerFormatHelp("numbers") @]* +[` x = `][_______________]{$answer1} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_8.pg b/Pending/RRCC/College_Algebra/MAT121/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_8.pg index 561a58821c..d165641035 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_8.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_2_8.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -52,11 +52,11 @@ $answer1 = ($c*$e-$b-$a*$d)/($a-$c); # Main text BEGIN_PGML -Solve the following equation for [`x`]: +Solve the following equation for [`x`]: [`[$f]=[$g]`] -[` x = `][_______________]{$answer1} [@ AnswerFormatHelp("numbers") @]* +[` x = `][_______________]{$answer1} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/2.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_21.pg b/Pending/RRCC/College_Algebra/MAT121/2.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_21.pg index d920e21efb..c361faf5fb 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_21.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_21.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,9 +48,9 @@ $x1 = $z * $w; # Main text BEGIN_PGML -Evaluate [` ([$z]) ([$w]) `] and express as a simplified complex number. +Evaluate [` ([$z]) ([$w]) `] and express as a simplified complex number. - [_______________]{$x1} [@ AnswerFormatHelp("numbers") @]* + [_______________]{$x1} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/2.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_49.pg b/Pending/RRCC/College_Algebra/MAT121/2.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_49.pg index 9d27f1d302..fd213958a2 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_49.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_49.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,9 +48,9 @@ $i=Complex(0,1); # Main text BEGIN_PGML -Evaluate [` i^{[$a]} ( 1 + i^{[$b]} ) `] and express the answer as a simplified complex number. +Evaluate [` i^{[$a]} ( 1 + i^{[$b]} ) `] and express the answer as a simplified complex number. - [_______________]{$i**$a * (1 + $i**$b)} [@ AnswerFormatHelp("numbers") @]* + [_______________]{$i**$a * (1 + $i**$b)} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/2.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_50.pg b/Pending/RRCC/College_Algebra/MAT121/2.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_50.pg index ffc09500e7..3b3a48abbf 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_50.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_50.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,9 +48,9 @@ $i=Complex(0,1); # Main text BEGIN_PGML -Evaluate [` i^{-[$a]} + [$b] \, i^{[$c]} `] and express the answer as a simplified complex number. +Evaluate [` i^{-[$a]} + [$b] \, i^{[$c]} `] and express the answer as a simplified complex number. - [_______________]{$i**(-1*$a) + $b * $i**$c} [@ AnswerFormatHelp("numbers") @]* + [_______________]{$i**(-1*$a) + $b * $i**$c} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_16.pg b/Pending/RRCC/College_Algebra/MAT121/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_16.pg index b06079de80..652276729b 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_16.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_16.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,9 +50,9 @@ $w=Complex($c,$d); # Main text BEGIN_PGML -Evaluate [` ([$z]) + ([$w]) `] and express as a simplified complex number. +Evaluate [` ([$z]) + ([$w]) `] and express as a simplified complex number. - [_______________]{$z+$w} [@ AnswerFormatHelp("numbers") @]* + [_______________]{$z+$w} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_17.pg b/Pending/RRCC/College_Algebra/MAT121/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_17.pg index 6005e1c09d..14d2b6c2b2 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_17.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_17.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,9 +50,9 @@ $w=Complex($c,$d); # Main text BEGIN_PGML -Evaluate [` ([$z]) - ([$w]) `] and express as a simplified complex number. +Evaluate [` ([$z]) - ([$w]) `] and express as a simplified complex number. - [_______________]{$z-$w} [@ AnswerFormatHelp("numbers") @]* + [_______________]{$z-$w} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_25.pg b/Pending/RRCC/College_Algebra/MAT121/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_25.pg index b5b822b710..65a4ba1635 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_25.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_25.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,9 +50,9 @@ $w=Complex($c,$d); # Main text BEGIN_PGML -Evaluate [` ([$z])([$w]) `] and express as a simplified complex number. +Evaluate [` ([$z])([$w]) `] and express as a simplified complex number. - [_______________]{$z*$w} [@ AnswerFormatHelp("numbers") @]* + [_______________]{$z*$w} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_33.pg b/Pending/RRCC/College_Algebra/MAT121/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_33.pg index 087e6213e6..b7894a0e2e 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_33.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_33.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,9 +50,9 @@ $ans=$z/$w; # Main text BEGIN_PGML -Evaluate [`` \frac{[$z]}{[$w]} ``] and express as a simplified complex number. +Evaluate [`` \frac{[$z]}{[$w]} ``] and express as a simplified complex number. - [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* + [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_40a.pg b/Pending/RRCC/College_Algebra/MAT121/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_40a.pg index 06bb028ce6..63339a18d0 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_40a.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_40a.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -43,9 +43,9 @@ $ans=Complex(0,-1); # Main text BEGIN_PGML -Simplify [`` i^{[$a]} ``]. +Simplify [`` i^{[$a]} ``]. - [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* + [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_40b.pg b/Pending/RRCC/College_Algebra/MAT121/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_40b.pg index fa65c2b266..04fbf23383 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_40b.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_4_40b.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -43,9 +43,9 @@ $ans=Complex(1,0); # Main text BEGIN_PGML -Simplify [`` i^{[$a]} ``]. +Simplify [`` i^{[$a]} ``]. - [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* + [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_12.pg b/Pending/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_12.pg index 4cd364f840..b0012746bc 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_12.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_12.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -49,11 +49,11 @@ $ans = List( -$c, -$b/$a ); # Main text BEGIN_PGML -Solve [`[$f]=0 `] by factoring. If there is more -than one correct answer, enter a comma +Solve [`[$f]=0 `] by factoring. If there is more +than one correct answer, enter a comma separated list. -[`x=`] [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_________________]{$ans} [@ helpLink("numbers") @]* diff --git a/Pending/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_19.pg b/Pending/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_19.pg index 5bb02d8c24..dfafb40486 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_19.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_19.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -47,11 +47,11 @@ $ans = List( $a, -$a ); # Main text BEGIN_PGML -Solve [`[$f]=[$a2] `] by using the square root property. If there is more -than one correct answer, enter a comma +Solve [`[$f]=[$a2] `] by using the square root property. If there is more +than one correct answer, enter a comma separated list. -[`x=`] [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_________________]{$ans} [@ helpLink("numbers") @]* diff --git a/Pending/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_21.pg b/Pending/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_21.pg index d493712d3a..7c483977e7 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_21.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_21.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,11 +48,11 @@ $ans = List( $b+$a, $b-$a ); # Main text BEGIN_PGML -Solve [`[$f]=[$a2] `] by using the square root property. If there is more -than one correct answer, enter a comma +Solve [`[$f]=[$a2] `] by using the square root property. If there is more +than one correct answer, enter a comma separated list. -[`x=`] [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_25.pg b/Pending/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_25.pg index 61ac046b6d..4485e9eaf5 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_25.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_25.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "contextLimitedRadical.pl", "PGML.pl", @@ -41,51 +41,51 @@ Context("Numeric"); $chooser=random(1,5,1); if ( $chooser ==1) {$eqn1=Formula("x^2-10x-22"); -} +} elsif ( $chooser ==2) {$eqn1=Formula("x^2+2x-5"); -} +} elsif ( $chooser ==3) {$eqn1=Formula("x^2+6x+7"); -} +} elsif ( $chooser ==4) {$eqn1=Formula("x^2-4x-1"); -} +} if ( $chooser ==5) {$eqn1=Formula("x^2-6x-5"); -} +} if ( $chooser ==1) {$eqn2=0; -} +} elsif ( $chooser ==2) {$eqn2=0; -} +} elsif ( $chooser ==3) {$eqn2=0; -} +} elsif ( $chooser ==4) {$eqn2=0; -} +} if ( $chooser ==5) {$eqn2=0; -} +} elsif ( $chooser ==1) {$ans=List("5-sqrt47, 5+sqrt47"); -} +} if ( $chooser ==2) {$ans=List("-1+sqrt6, -1-sqrt6"); -} +} elsif ( $chooser ==3) {$ans=List("-3-sqrt2, -3+sqrt2"); -} +} elsif ( $chooser ==4) {$ans=List("2+sqrt5, 2-sqrt5"); -} +} if ( $chooser ==5) {$ans=List("3+sqrt14, 3-sqrt14"); -} +} @@ -93,11 +93,11 @@ if ( $chooser ==5) {$ans=List("3+sqrt14, 3-sqrt14"); # Main text BEGIN_PGML -Solve [`[$eqn1]=[$eqn2] `] by completing the square. If there is more -than one correct answer, enter a comma -separated list. +Solve [`[$eqn1]=[$eqn2] `] by completing the square. If there is more +than one correct answer, enter a comma +separated list. -[`x=`] [_________________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_________________________]{$ans} [@ helpLink("numbers") @]* diff --git a/Pending/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_26.pg b/Pending/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_26.pg index 7762493721..1219413e01 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_26.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_26.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -40,52 +40,52 @@ Context("Numeric"); $chooser=random(1,5,1); if ( $chooser ==1) {$eqn1=Formula("x^2-3x-1"); -} +} elsif ( $chooser ==2) {$eqn1=Formula("x^2-x-3"); -} +} elsif ( $chooser ==3) {$eqn1=Formula("x^2-5x-7"); -} +} elsif ( $chooser ==4) {$eqn1=Formula("x^2+3x-9"); -} +} if ( $chooser ==5) {$eqn1=Formula("x^2+3x-5"); -} +} if ( $chooser ==1) {$eqn2=0; -} +} elsif ( $chooser ==2) {$eqn2=0; -} +} elsif ( $chooser ==3) {$eqn2=0; -} +} elsif ( $chooser ==4) {$eqn2=0; -} +} if ( $chooser ==5) {$eqn2=0; -} +} elsif ( $chooser ==1) {$ans=List("(3-sqrt13)/2,(3+sqrt13)/2"); -} +} if ( $chooser ==2) {$ans=List("(1-sqrt13)/2,(1+sqrt13)/2"); -} +} elsif ( $chooser ==3) {$ans=List("(5+sqrt53)/2, (5-sqrt53)/2"); -} +} elsif ( $chooser ==4) {$ans=List("(-3+3sqrt5)/2,(-3-3sqrt5)/2"); -} +} if ( $chooser ==5) {$ans=List("(-3-sqrt29)/2,(-3+sqrt29)/2"); -} +} @@ -93,11 +93,11 @@ if ( $chooser ==5) {$ans=List("(-3-sqrt29)/2,(-3+sqrt29)/2"); # Main text BEGIN_PGML -Solve [`[$eqn1]=[$eqn2] `] by completing the square. If there is more -than one correct answer, enter a comma -separated list. +Solve [`[$eqn1]=[$eqn2] `] by completing the square. If there is more +than one correct answer, enter a comma +separated list. -[`x=`] [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_________________]{$ans} [@ helpLink("numbers") @]* diff --git a/Pending/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_32.pg b/Pending/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_32.pg index aca0ff605a..25d1f224d6 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_32.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_32.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserPopUp.pl", "PGML.pl", "PGcourse.pl", @@ -67,11 +67,11 @@ elsif ($ans==0) {$popup = PopUp( # Main text BEGIN_PGML -Determine the discriminant for [`[$f]=0`] -[_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +Determine the discriminant for [`[$f]=0`] +[_________________]{$ans} [@ helpLink("numbers") @]* -Based on the discriminant, what is the nature of the solution(s) for the equation? -[_________________]{$popup} +Based on the discriminant, what is the nature of the solution(s) for the equation? +[_________________]{$popup} END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_35.pg b/Pending/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_35.pg index ea0a1eee28..9b38388355 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_35.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_35.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserPopUp.pl", "PGML.pl", "PGcourse.pl", @@ -53,11 +53,11 @@ $popup = PopUp( # Main text BEGIN_PGML -Determine the discriminant for [`[$f]=0`] -[_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +Determine the discriminant for [`[$f]=0`] +[_________________]{$ans} [@ helpLink("numbers") @]* -Based on the discriminant, what is the nature of the solution(s) for the equation? -[_________________]{$popup} +Based on the discriminant, what is the nature of the solution(s) for the equation? +[_________________]{$popup} diff --git a/Pending/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_38.pg b/Pending/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_38.pg index a4d607dc98..eae47f6ba0 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_38.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_38.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -54,11 +54,11 @@ $ans = List( $ans1, $ans2); BEGIN_PGML -Solve [`[$f]=0 `] by using the quadratic formula. If there is more -than one correct answer, enter a comma -separated list. +Solve [`[$f]=0 `] by using the quadratic formula. If there is more +than one correct answer, enter a comma +separated list. -[`x=`] [______________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [______________________]{$ans} [@ helpLink("numbers") @]* diff --git a/Pending/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_39.pg b/Pending/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_39.pg index d9265ee92e..735efa1e5d 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_39.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_39.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -49,11 +49,11 @@ $ans = List( (-1+sqrt(1-4*$c))/2, (-1-sqrt(1-4*$c))/2 ); BEGIN_PGML -Solve [`[$f]=0 `] by using the quadratic formula. If there is more -than one correct answer, enter a comma -separated list. +Solve [`[$f]=0 `] by using the quadratic formula. If there is more +than one correct answer, enter a comma +separated list. -[`x=`] [__________________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [__________________________]{$ans} [@ helpLink("numbers") @]* diff --git a/Pending/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_41.pg b/Pending/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_41.pg index 8ef268882d..e4384e6137 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_41.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_41.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -52,11 +52,11 @@ $ans = List( -$b/(2*$a) ); BEGIN_PGML -Solve [`[$f]=0 `] by using the quadratic formula. If there is more -than one correct answer, enter a comma -separated list. +Solve [`[$f]=0 `] by using the quadratic formula. If there is more +than one correct answer, enter a comma +separated list. -[`x=`] [________________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [________________________]{$ans} [@ helpLink("numbers") @]* diff --git a/Pending/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_56.pg b/Pending/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_56.pg index a7bb0c6fd2..2a5c626b07 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_56.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_56.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -46,11 +46,11 @@ $ans=Compute((-$b+sqrt(($b)**2-4*$a*(-$c)))/(2*$a)); # Main text BEGIN_PGML -A falling object travels a distance given by the formula [` d=[$d]`], where [`d`] is measured in feet and [`t`] is measured in seconds. How many seconds will it take for the object to travel [`[$c]`] feet? +A falling object travels a distance given by the formula [` d=[$d]`], where [`d`] is measured in feet and [`t`] is measured in seconds. How many seconds will it take for the object to travel [`[$c]`] feet? [_______________]{$ans} seconds -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_57.pg b/Pending/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_57.pg index be0d880c47..95672b745f 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_57.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_57.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -45,7 +45,7 @@ $ans=Compute((-54+sqrt(2916-(16*(180-$a))))/8); BEGIN_TEXT $BR $BCENTER -\{ image( "garden.png", width=>250, height=>250, +\{ image( "garden.png", width=>250, height=>250, tex_size=>700, extra_html_tags=>'alt="Square garden with uniform width x all the way around."' ) \} $ECENTER $BR @@ -59,7 +59,7 @@ A vacant lot is being converted into a community garden. The garden and and a w [_______________]{$ans}Feet -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_6.pg b/Pending/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_6.pg index 059acfafc5..422a4d71fc 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_6.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_6.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -47,11 +47,11 @@ $ans = List( $a, $b ); # Main text BEGIN_PGML -Solve the quadratic equation [`[$f]=0 `] by factoring. If there is more -than one correct answer, enter a comma +Solve the quadratic equation [`[$f]=0 `] by factoring. If there is more +than one correct answer, enter a comma separated list. -[`x=`] [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_________________]{$ans} [@ helpLink("numbers") @]* diff --git a/Pending/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_7.pg b/Pending/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_7.pg index 5bf76ad3b5..b45842e69c 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_7.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_7.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -47,11 +47,11 @@ $ans = List( $a, $b ); # Main text BEGIN_PGML -Solve the quadratic equation [`[$f]=0 `] by factoring. If there is more -than one correct answer, enter a comma +Solve the quadratic equation [`[$f]=0 `] by factoring. If there is more +than one correct answer, enter a comma separated list. -[`x=`] [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_8.pg b/Pending/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_8.pg index 07676d5812..9b53dcbbcd 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_8.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_5_8.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -47,11 +47,11 @@ $ans = -1*$a; # Main text BEGIN_PGML -Solve the quadratic equation [`[$f]=0 `] by factoring. If there is more -than one correct answer, enter a comma +Solve the quadratic equation [`[$f]=0 `] by factoring. If there is more +than one correct answer, enter a comma separated list. -[`x=`] [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_37.pg b/Pending/RRCC/College_Algebra/MAT121/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_37.pg index 72890d5b1f..5867565496 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_37.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_37.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -40,13 +40,13 @@ $b=random(3,6); # Main text BEGIN_PGML -Solve the equation by identifying the quadratic form. Use a substitute variable and find all real solutions by factoring. +Solve the equation by identifying the quadratic form. Use a substitute variable and find all real solutions by factoring. If you find more than one solution, give your answer as a comma-separated list. [`` x^4 - [$a**2 + $b**2] x^2 + [$a**2 * $b**2] = 0 ``] -[`x=`] [_______________]{List($a,-$a,$b,-$b)} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_______________]{List($a,-$a,$b,-$b)} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_38.pg b/Pending/RRCC/College_Algebra/MAT121/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_38.pg index 38f2cdfa28..3882e9c354 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_38.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_38.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -46,7 +46,7 @@ $neg_c = (-1) * $p * $r; # Value subtracted from t $u = random(1,5); - + # Solutions of quadratic equation with substitution $x1 = -$p/$q; $x2 = -$r/$s; @@ -56,7 +56,7 @@ $ans = List($x1 + $u,$x2 + $u); ########################### # Main text -if ($b == 0) { +if ($b == 0) { # no linear term on LHS BEGIN_PGML @@ -66,7 +66,7 @@ If you find more than one solution, give your answer as a comma-separated list. [` {[$a]} \left( t - {[$u]} \right)^2 = {[$neg_c]} `] -[`t=`] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`t=`] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML @@ -81,7 +81,7 @@ If you find more than one solution, give your answer as a comma-separated list. [` {[$a]} \left( t - {[$u]} \right)^2 + {[$b]} \left( t - {[$u]} \right) = {[$neg_c]} `] -[`t=`] [_______________]{List($ans)} [@ AnswerFormatHelp("numbers") @]* +[`t=`] [_______________]{List($ans)} [@ helpLink("numbers") @]* @@ -101,7 +101,7 @@ Solve the equation by identifying the quadratic form. Use a substitute variable If you find more than one solution, give your answer as a comma-separated list. -[`t=`] [_______________]{List($ans)} [@ AnswerFormatHelp("numbers") @]* +[`t=`] [_______________]{List($ans)} [@ helpLink("numbers") @]* diff --git a/Pending/RRCC/College_Algebra/MAT121/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_40.pg b/Pending/RRCC/College_Algebra/MAT121/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_40.pg index 86625bfc80..7532c98203 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_40.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_40.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -55,7 +55,7 @@ If you find more than one solution, give your answer as a comma-separated list. [` \left( x + {[$w]} \right)^2 - {[$b]} \left( x + {[$w]} \right) - {[$c]} = 0 `] -[`x=`] [_______________]{List($x1, $x2)} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_______________]{List($x1, $x2)} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_7.pg b/Pending/RRCC/College_Algebra/MAT121/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_7.pg index a874a6a091..ea85c53632 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_7.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_7.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -58,7 +58,7 @@ If you find more than one solution, give your answer as a comma-separated list. [` x^{[$b-1]/[$b]} = [$c] `]. -[`x=`] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_9.pg b/Pending/RRCC/College_Algebra/MAT121/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_9.pg index 66f27b28cb..af80975323 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_9.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_9.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -57,7 +57,7 @@ Solve [` \left( x - [$d] \right)^{[$b-1]/[$b]} = [$c] `]. If you find more than one solution, give your answer as a comma-separated list. -[`x=`] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_______________]{$ans} [@ helpLink("numbers") @]* diff --git a/Pending/RRCC/College_Algebra/MAT121/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_21.pg b/Pending/RRCC/College_Algebra/MAT121/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_21.pg index 607936e076..47f835cd52 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_21.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_21.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -44,13 +44,13 @@ $ans=Compute($b**2+$a); # Main text BEGIN_PGML -Solve the radical equation. Be sure to check for extraneous solutions. +Solve the radical equation. Be sure to check for extraneous solutions. If you find more than one solution, give your answer as a comma-separated list. [` \sqrt{x-[$a]}=[$b] `]. -[`x=`] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_22.pg b/Pending/RRCC/College_Algebra/MAT121/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_22.pg index 1e2c78d505..e01a05813c 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_22.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_22.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -33,7 +33,7 @@ $showPartialCorrectAnswers = 1; # Setup #note that $a-$b/2>0 for both solutions to work so forcing that with selection of $a and $b. -$a=random(5,10); +$a=random(5,10); do {$b=random(2,8,2); } until ($a != $b); $c=$b**2/4-$a*$b; @@ -46,13 +46,13 @@ $ans = List($a, $b ); # Main text BEGIN_PGML -Solve the radical equation. Be sure to check for extraneous solutions. +Solve the radical equation. Be sure to check for extraneous solutions. If you find more than one solution, give your answer as a comma-separated list. [` \sqrt{[$f]}=[$g] `]. -[`x=`] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_24.pg b/Pending/RRCC/College_Algebra/MAT121/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_24.pg index 095043244f..7eb0faa531 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_24.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_24.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -45,13 +45,13 @@ $ans=Compute(($c-$b)**2+$a); # Main text BEGIN_PGML -Solve the radical equation. Be sure to check for extraneous solutions. +Solve the radical equation. Be sure to check for extraneous solutions. If you find more than one solution, give your answer as a comma-separated list. [` \sqrt{x-[$a]}+[$b]=[$c] `]. -[`x= `] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x= `] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_28.pg b/Pending/RRCC/College_Algebra/MAT121/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_28.pg index f395042f06..4aed6f409e 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_28.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_28.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -37,13 +37,13 @@ $showPartialCorrectAnswers = 1; # Main text BEGIN_PGML -Solve the radical equation. Be sure to check for extraneous solutions. +Solve the radical equation. Be sure to check for extraneous solutions. If you find more than one solution, give your answer as a comma-separated list. [` \sqrt{3x+7}+\sqrt{x+2}=1 `]. -[`x = `] [_______________]{-2} [@ AnswerFormatHelp("numbers") @]* +[`x = `] [_______________]{-2} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_29.pg b/Pending/RRCC/College_Algebra/MAT121/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_29.pg index 27da232fd8..73be7cef72 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_29.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_29.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -49,7 +49,7 @@ If you find more than one solution, give your answer as a comma-separated list. [` |x-[$a]|=[$b] `]. -[`x= `][_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x= `][_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_31.pg b/Pending/RRCC/College_Algebra/MAT121/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_31.pg index ec62a69e3e..6e0d226ce9 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_31.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_31.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,7 +50,7 @@ If you find more than one solution, give your answer as a comma-separated list. [` |x-[$a]|-[$b]=[$c] `]. -[`x=`] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_35.pg b/Pending/RRCC/College_Algebra/MAT121/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_35.pg index a0eddce356..64c7122a6c 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_35.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_6_35.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -43,14 +43,14 @@ $ans=List($a); # Main text BEGIN_PGML -Solve the equation involving absolute value. +Solve the equation involving absolute value. If you find more than one solution, give your answer as a comma-separated list. [` |x-[$a]|=0 `]. -[`x=`] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/2.6/checking_fraction_answers.pg b/Pending/RRCC/College_Algebra/MAT121/2.6/checking_fraction_answers.pg index 32b15cd1d3..c1d0d400af 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.6/checking_fraction_answers.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.6/checking_fraction_answers.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -47,8 +47,8 @@ $neg_c = (-1) * $q * $s; # Coefficient subtracted from t $u = non_zero_random(1,5); - -# Solutions + +# Solutions Context("LimitedFraction"); $x1 = Compute("1/2"); $x2 = Compute("-1/2"); @@ -56,12 +56,12 @@ $x2 = Compute("-1/2"); ########################### # Main text -if ($b == 0) { +if ($b == 0) { # no linear term on LHS BEGIN_PGML Solve [` {[$a]} \left( t - {[$u]} \right)^2 = {[$neg_c]} `]. Begin by using a substitution to simplify the equation. - [_______________]{List($x1,$x2)} [@ AnswerFormatHelp("numbers") @]* + [_______________]{List($x1,$x2)} [@ helpLink("numbers") @]* For more questions like this, go to section 2.6 numbers 37-41. @@ -71,7 +71,7 @@ END_PGML BEGIN_PGML Solve [` {[$a]} \left( t - {[$u]} \right)^2 + {[$b]} \left( t - {[$u]} \right) = {[$neg_c]} `]. Begin by using a substitution to simplify the equation. - [_______________]{List(-1,1,-3,3)} [@ AnswerFormatHelp("numbers") @]* + [_______________]{List(-1,1,-3,3)} [@ helpLink("numbers") @]* For more questions like this, go to section 2.6 numbers 37-41. @@ -83,7 +83,7 @@ $b = -$b; BEGIN_PGML Solve [` {[$a]} \left( t - {[$u]} \right)^2 - {[$b]} \left( t - {[$u]} \right) = {[$neg_c]} `]. Begin by using a substitution to simplify the equation. - [_______________]{List(1/2,-1/2)} [@ AnswerFormatHelp("numbers") @]* + [_______________]{List(1/2,-1/2)} [@ helpLink("numbers") @]* For more questions like this, go to section 2.6 numbers 37-41. diff --git a/Pending/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_10.pg b/Pending/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_10.pg index efab6aa271..1335db3eee 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_10.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_10.pg @@ -11,7 +11,7 @@ ## Author(James Morski) ## MO(1) ## KEYWORDS('college algebra', 'linear inequality') - + ############################################## DOCUMENT(); @@ -20,7 +20,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "contextInequalitySetBuilder.pl", "parserOneOf.pl", @@ -53,11 +53,11 @@ TEXT(beginproblem()); BEGIN_PGML -Solve the following inequality for [`x`]. Enter your answer in interval notation. +Solve the following inequality for [`x`]. Enter your answer in interval notation. [`-\dfrac{[$a]}{2}x \leq - \dfrac{[$c]}{[$d]}+\dfrac{[$e]}{8}x `] -[_______________]{$intans} [@ AnswerFormatHelp("intervals") @]* +[_______________]{$intans} [@ helpLink("intervals") @]* diff --git a/Pending/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_11.pg b/Pending/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_11.pg index 99af39e536..286a842964 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_11.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_11.pg @@ -11,7 +11,7 @@ ## Author(James Morski) ## MO(1) ## KEYWORDS('college algebra', 'linear inequality') - + ############################################## DOCUMENT(); @@ -20,7 +20,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "contextInequalitySetBuilder.pl", "parserOneOf.pl", @@ -51,11 +51,11 @@ TEXT(beginproblem()); BEGIN_PGML -Solve the following inequality for [`x`]. Enter your answer in interval notation. +Solve the following inequality for [`x`]. Enter your answer in interval notation. [`[$a](x+[$b])+[$c] > [$d]x+[$e]+[$f]x`] -[_______________]{$intans} [@ AnswerFormatHelp("intervals") @]* +[_______________]{$intans} [@ helpLink("intervals") @]* END_PGML ############################ diff --git a/Pending/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_15.pg b/Pending/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_15.pg index fb0dc503b8..4dda8267d7 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_15.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_15.pg @@ -20,7 +20,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "contextInequalitySetBuilder.pl", "parserOneOf.pl", @@ -47,11 +47,11 @@ TEXT(beginproblem()); BEGIN_PGML -Solve the following inequality involving absolute value. Enter the answer in interval notation. +Solve the following inequality involving absolute value. Enter the answer in interval notation. [`[$f] > [$b] `] -[____________________]{$intans} [@ AnswerFormatHelp("intervals") @]* +[____________________]{$intans} [@ helpLink("intervals") @]* diff --git a/Pending/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_17.pg b/Pending/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_17.pg index 381795ccd4..52f4dedd47 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_17.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_17.pg @@ -11,7 +11,7 @@ ## Author(James Morski) ## MO(1) ## KEYWORDS('college algebra', 'absolute value linear inequality') - + ############################################## DOCUMENT(); @@ -21,7 +21,7 @@ loadMacros( "MathObjects.pl", "PGML.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "contextInequalitySetBuilder.pl", "parserOneOf.pl", "PGcourse.pl", @@ -52,11 +52,11 @@ TEXT(beginproblem()); BEGIN_PGML -Solve the following inequality involving absolute value. Enter your answer in interval notation. +Solve the following inequality involving absolute value. Enter your answer in interval notation. [` [$f]> [$c]`] -[_______________]{$intans} [@ AnswerFormatHelp("intervals") @]* +[_______________]{$intans} [@ helpLink("intervals") @]* diff --git a/Pending/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_19.pg b/Pending/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_19.pg index a00336476e..b42619d998 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_19.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_19.pg @@ -11,7 +11,7 @@ ## Author(James Morski) ## MO(1) ## KEYWORDS('college algebra', 'absolute value linear inequality') - + ############################################## DOCUMENT(); @@ -21,7 +21,7 @@ loadMacros( "MathObjects.pl", "PGML.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "contextInequalitySetBuilder.pl", "parserOneOf.pl", "PGcourse.pl", @@ -50,11 +50,11 @@ TEXT(beginproblem()); BEGIN_PGML -Solve the following inequality involving absolute value. Enter your answer in interval notation. +Solve the following inequality involving absolute value. Enter your answer in interval notation. [` [$f] + [$c] > [$d] `] - -[_______________]{$intans}[@ AnswerFormatHelp("intervals") @]* + +[_______________]{$intans}[@ helpLink("intervals") @]* diff --git a/Pending/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_21.pg b/Pending/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_21.pg index 7e85912c58..157f7491e6 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_21.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_21.pg @@ -11,7 +11,7 @@ ## Author(James Morski) ## MO(1) ## KEYWORDS('college algebra', 'absolute value linear inequality') - + ############################################## DOCUMENT(); @@ -19,7 +19,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "contextInequalitySetBuilder.pl", @@ -49,11 +49,11 @@ TEXT(beginproblem()); BEGIN_PGML -Solve the following inequality involving absolute value. Enter your answer in interval notation. +Solve the following inequality involving absolute value. Enter your answer in interval notation. [` [$f] \geq [$d] `] -[_______________]{$intans} [@ AnswerFormatHelp("intervals") @]* +[_______________]{$intans} [@ helpLink("intervals") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_28.pg b/Pending/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_28.pg index 9ee492ea22..933fb9f4a8 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_28.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_28.pg @@ -11,7 +11,7 @@ ## Author(James Morski) ## MO(1) ## KEYWORDS('college algebra', 'compound linear inequality') - + ############################################## DOCUMENT(); @@ -19,7 +19,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "contextInequalities.pl", "contextFraction.pl", @@ -56,7 +56,7 @@ Solve the following inequality for [`x`]. Enter your answer in interval notatio [` [$a]<[$b]x+[$c] \leq [$d]`] -[_______________]{$intans} [@ AnswerFormatHelp("intervals") @]* +[_______________]{$intans} [@ helpLink("intervals") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_6.pg b/Pending/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_6.pg index 09aa8be9bc..e1816f8abb 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_6.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_6.pg @@ -11,7 +11,7 @@ ## Author(James Morski) ## MO(1) ## KEYWORDS('college algebra', 'linear inequality') - + ############################################## DOCUMENT(); @@ -22,7 +22,7 @@ loadMacros( "PGML.pl", "contextFraction.pl", "contextInequalitySetBuilder.pl", -"AnswerFormatHelp.pl", + "parserOneOf.pl", "PGcourse.pl", ); @@ -53,11 +53,11 @@ TEXT(beginproblem()); BEGIN_PGML -Solve the following inequality for [`x`]. Enter your answer in interval notation. +Solve the following inequality for [`x`]. Enter your answer in interval notation. [` [$a]x-[$b] \leq [$c]`] -[_______________]{$intans} [@ AnswerFormatHelp("intervals") @]* +[_______________]{$intans} [@ helpLink("intervals") @]* diff --git a/Pending/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_7.pg b/Pending/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_7.pg index a21531d590..54874709ce 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_7.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_2_7_7.pg @@ -11,7 +11,7 @@ ## Author(James Morski) ## MO(1) ## KEYWORDS('college algebra', 'linear inequality') - + ############################################## DOCUMENT(); @@ -21,7 +21,7 @@ loadMacros( "MathObjects.pl", "PGML.pl", "contextFraction.pl", - "AnswerFormatHelp.pl", + "contextInequalitySetBuilder.pl", "parserOneOf.pl", "PGcourse.pl", @@ -53,13 +53,13 @@ TEXT(beginproblem()); BEGIN_PGML -Solve the following inequality for [`x`]. Enter your answer in interval notation. +Solve the following inequality for [`x`]. Enter your answer in interval notation. [` [$a]x+[$b] \geq [$c]x-[$d]`] -[_______________]{$intans} [@ AnswerFormatHelp("intervals") @]* +[_______________]{$intans} [@ helpLink("intervals") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_2_7_440.pg b/Pending/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_2_7_440.pg index a068b60786..9af608ba64 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_2_7_440.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_2_7_440.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -56,7 +56,7 @@ Solve the absolute value equation. If there is more than one correct answer, en [`|[$a]y-[$b]|+[$c]=[$d]`] -[`y =`] [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`y =`] [_________________]{$ans} [@ helpLink("numbers") @]* diff --git a/Pending/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_2_7_442.pg b/Pending/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_2_7_442.pg index cf81b5a813..d7b740368d 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_2_7_442.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_2_7_442.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -56,7 +56,7 @@ Solve the absolute value equation. If there is more than one correct answer, en [`2\mid x+[$b]\mid-[$c]=[$d]`] -[`x =`] [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x =`] [_________________]{$ans} [@ helpLink("numbers") @]* diff --git a/Pending/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_2_7_443.pg b/Pending/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_2_7_443.pg index 58c9fcddad..edf8af729c 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_2_7_443.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_2_7_443.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -53,7 +53,7 @@ Solve the absolute value equation. If there is more than one correct answer, en [`3|x+[$a]|+[$c]=[$d]`] -[`x =`][_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x =`][_________________]{$ans} [@ helpLink("numbers") @]* diff --git a/Pending/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_2_7_447.pg b/Pending/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_2_7_447.pg index 93795e5ead..978e4e1873 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_2_7_447.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_2_7_447.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -55,7 +55,7 @@ Solve the absolute value equation. If there is more than one correct answer, en [`[$a]|[$b]+z|+[$c]=[$d]`] -[`z=`] [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`z=`] [_________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_2_7_449.pg b/Pending/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_2_7_449.pg index 6990b0d4db..dff818c06f 100644 --- a/Pending/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_2_7_449.pg +++ b/Pending/RRCC/College_Algebra/MAT121/2.7/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_2_7_449.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -53,7 +53,7 @@ Solve the absolute value equation. If there is more than one correct answer, en [`\left|\dfrac{[$a]}{[$b]}t-[$c]\right|+[$d]=[$e]`] -[`t =`][_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`t =`][_________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_15.pg b/Pending/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_15.pg index ca5da475dd..fb5e89c592 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_15.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_15.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserPopUp.pl", "parserImplicitEquation.pl", "PGML.pl", @@ -88,9 +88,9 @@ BEGIN_PGML Do the following relations represent [`y`] as a function of [`x`]? -+ [`` y=[$f1] ``] [___________]{$popup1} ++ [`` y=[$f1] ``] [___________]{$popup1} -+ [`` y=[$f2]``] [___________]{$popup2} ++ [`` y=[$f2]``] [___________]{$popup2} + [`` x=[$f3]``] [___________]{$popup3} diff --git a/Pending/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_27.pg b/Pending/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_27.pg index 932bf6f4a9..2eedd308b4 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_27.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_27.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -61,17 +61,17 @@ $ans6=Compute("-$b*a-$c"); BEGIN_PGML Evaluate [`f(x)=[$f]`] at the following values: -+ [`f([$d])=`] [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* ++ [`f([$d])=`] [_______________]{$ans1} [@ helpLink("numbers") @]* -+ [`f([$e])=`] [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* ++ [`f([$e])=`] [_______________]{$ans2} [@ helpLink("numbers") @]* -+ [`f(a)=`] [_______________]{$ans3} [@ AnswerFormatHelp("formulas") @]* ++ [`f(a)=`] [_______________]{$ans3} [@ helpLink("formulas") @]* -+ [`f(a+h)=`] [_______________]{$ans4} [@ AnswerFormatHelp("formulas") @]* ++ [`f(a+h)=`] [_______________]{$ans4} [@ helpLink("formulas") @]* -+ [`f(-a)=`] [_______________]{$ans5} [@ AnswerFormatHelp("formulas") @]* ++ [`f(-a)=`] [_______________]{$ans5} [@ helpLink("formulas") @]* -+ [`-f(a)=`] [_______________]{$ans6} [@ AnswerFormatHelp("formulas") @]* ++ [`-f(a)=`] [_______________]{$ans6} [@ helpLink("formulas") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_28.pg b/Pending/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_28.pg index 1500648276..334f869eb2 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_28.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_28.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -61,17 +61,17 @@ $ans6=Formula("-$g*(a)**2-$b*(a)-$c")->reduce; BEGIN_PGML Evaluate [`f(x)=[$f]`] at the following values: -+ [`f([$d])=`] [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* ++ [`f([$d])=`] [_______________]{$ans1} [@ helpLink("numbers") @]* -+ [`f([$e])=`] [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* ++ [`f([$e])=`] [_______________]{$ans2} [@ helpLink("numbers") @]* -+ [`f(a)=`] [_______________]{$ans3} [@ AnswerFormatHelp("formulas") @]* ++ [`f(a)=`] [_______________]{$ans3} [@ helpLink("formulas") @]* -+ [`f(a+h)=`] [________________________________]{$ans4} [@ AnswerFormatHelp("formulas") @]* ++ [`f(a+h)=`] [________________________________]{$ans4} [@ helpLink("formulas") @]* -+ [`f(-a)=`] [_______________]{$ans5} [@ AnswerFormatHelp("formulas") @]* ++ [`f(-a)=`] [_______________]{$ans5} [@ helpLink("formulas") @]* -+ [`-f(a)=`] [_______________]{$ans6} [@ AnswerFormatHelp("formulas") @]* ++ [`-f(a)=`] [_______________]{$ans6} [@ helpLink("formulas") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_29.pg b/Pending/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_29.pg index d96753318e..9b9605f6f5 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_29.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_29.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -57,17 +57,17 @@ $ans6=Formula("-sqrt($b - a) - $c")->reduce; BEGIN_PGML Evaluate [`f(x)=[$f]`] at the following values: -+ [`f([$d])=`] [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* ++ [`f([$d])=`] [_______________]{$ans1} [@ helpLink("numbers") @]* -+ [`f([$b])=`] [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* ++ [`f([$b])=`] [_______________]{$ans2} [@ helpLink("numbers") @]* -+ [`f(a)=`] [_______________]{$ans3} [@ AnswerFormatHelp("formulas") @]* ++ [`f(a)=`] [_______________]{$ans3} [@ helpLink("formulas") @]* -+ [`f(a+h)=`] [_______________]{$ans4} [@ AnswerFormatHelp("formulas") @]* ++ [`f(a+h)=`] [_______________]{$ans4} [@ helpLink("formulas") @]* -+ [`f(-a)=`] [_______________]{$ans5} [@ AnswerFormatHelp("formulas") @]* ++ [`f(-a)=`] [_______________]{$ans5} [@ helpLink("formulas") @]* -+ [`-f(a)=`] [_______________]{$ans6} [@ AnswerFormatHelp("formulas") @]* ++ [`-f(a)=`] [_______________]{$ans6} [@ helpLink("formulas") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_30.pg b/Pending/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_30.pg index 9d911f9fa8..2e9475513b 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_30.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_30.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -63,17 +63,17 @@ $ans6=Formula("-($b*a+$c)/($d*a+$e)")->reduce; BEGIN_PGML Evaluate [``f(x)=[$f]``] at the following values: -+ [`f([$m])=`] [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* ++ [`f([$m])=`] [_______________]{$ans1} [@ helpLink("numbers") @]* -+ [`f([$n])=`] [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* ++ [`f([$n])=`] [_______________]{$ans2} [@ helpLink("numbers") @]* -+ [`f(a)=`] [_______________]{$ans3} [@ AnswerFormatHelp("formulas") @]* ++ [`f(a)=`] [_______________]{$ans3} [@ helpLink("formulas") @]* -+ [`f(a+h)=`] [_______________]{$ans4} [@ AnswerFormatHelp("formulas") @]* ++ [`f(a+h)=`] [_______________]{$ans4} [@ helpLink("formulas") @]* -+ [`f(-a)=`] [_______________]{$ans5} [@ AnswerFormatHelp("formulas") @]* ++ [`f(-a)=`] [_______________]{$ans5} [@ helpLink("formulas") @]* -+ [`-f(a)=`] [_______________]{$ans6} [@ AnswerFormatHelp("formulas") @]* ++ [`-f(a)=`] [_______________]{$ans6} [@ helpLink("formulas") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_31.pg b/Pending/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_31.pg index f3a8e4321b..3a6d6a0925 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_31.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_31.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -58,17 +58,17 @@ $ans6=Formula("-abs(a - $b) + abs(a + $c)")->reduce; BEGIN_PGML Evaluate [`f(x)=[$f]`] at the following values: -+ [`f([$d])=`] [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* ++ [`f([$d])=`] [_______________]{$ans1} [@ helpLink("numbers") @]* -+ [`f([$e])=`] [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* ++ [`f([$e])=`] [_______________]{$ans2} [@ helpLink("numbers") @]* -+ [`f(a)=`] [_______________]{$ans3} [@ AnswerFormatHelp("formulas") @]* ++ [`f(a)=`] [_______________]{$ans3} [@ helpLink("formulas") @]* -+ [`f(a+h)=`] [_______________]{$ans4} [@ AnswerFormatHelp("formulas") @]* ++ [`f(a+h)=`] [_______________]{$ans4} [@ helpLink("formulas") @]* -+ [`f(-a)=`] [_______________]{$ans5} [@ AnswerFormatHelp("formulas") @]* ++ [`f(-a)=`] [_______________]{$ans5} [@ helpLink("formulas") @]* -+ [`-f(a)=`] [_______________]{$ans6} [@ AnswerFormatHelp("formulas") @]* ++ [`-f(a)=`] [_______________]{$ans6} [@ helpLink("formulas") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_35.pg b/Pending/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_35.pg index e80d224784..94a2ef5f05 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_35.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_35.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -55,10 +55,10 @@ $ans2 = $g; BEGIN_PGML Let [` f(x) = [$f] `]. -+ Evaluate [`f([$c])=`] [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* ++ Evaluate [`f([$c])=`] [_______________]{$ans1} [@ helpLink("numbers") @]* -+ Solve [`f(x)=[$d]`]. -[`x=`] [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* ++ Solve [`f(x)=[$d]`]. +[`x=`] [_______________]{$ans2} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_37.pg b/Pending/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_37.pg index b37ca85a1d..51d6b7e290 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_37.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_37.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,10 +51,10 @@ $ans2=List(-$b/2); BEGIN_PGML Let [` f(x) = [$f] `]. -+ Evaluate [`f([$c])=`] [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* ++ Evaluate [`f([$c])=`] [_______________]{$ans1} [@ helpLink("numbers") @]* -+ Solve [`f(x)=[$d]`]. -[`x=`][_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* ++ Solve [`f(x)=[$d]`]. +[`x=`][_______________]{$ans2} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_41.pg b/Pending/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_41.pg index 7956ea889e..4987cbb2ca 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_41.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_41.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserPopUp.pl", "PGML.pl", @@ -70,7 +70,7 @@ Use the vertical line test to determine whether the following graph shows a rela $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>300,height=>300,tex_size=>800 ) \} $BR (Click on graph to enlarge) @@ -82,7 +82,7 @@ Context()->normalStrings; BEGIN_PGML -[___________]{$popup} +[___________]{$popup} END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_43.pg b/Pending/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_43.pg index a7a1e2a992..ccf8f71e58 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_43.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_43.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserPopUp.pl", "PGML.pl", @@ -52,7 +52,7 @@ $gr->lb( new Label(-.25,5.75,'y', $gr->lb( new Label(5.75,0.25,'x', 'red','center','middle')); -$refreshCachedImages = 1; +$refreshCachedImages = 1; Context("Interval"); $ans1=Interval("(-infinity,infinity)"); @@ -73,7 +73,7 @@ Use the vertical line test to determine whether the following graph shows a rela $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>300,height=>300,tex_size=>800 ) \} $BR (Click on graph to enlarge) @@ -85,7 +85,7 @@ Context()->normalStrings; BEGIN_PGML -[___________]{$popup} +[___________]{$popup} END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_45.pg b/Pending/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_45.pg index c2e7a18e2d..798201e6f5 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_45.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_45.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserPopUp.pl", "PGML.pl", @@ -72,7 +72,7 @@ Use the vertical line test to determine whether the following graph shows a rela $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>300,height=>300,tex_size=>800 ) \} $BR (Click on graph to enlarge) @@ -84,7 +84,7 @@ Context()->normalStrings; BEGIN_PGML -[___________]{$popup} +[___________]{$popup} END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_47.pg b/Pending/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_47.pg index b965121330..9c0a7d4953 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_47.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_47.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserPopUp.pl", "PGML.pl", @@ -72,7 +72,7 @@ Use the vertical line test to determine whether the following graph shows a rela $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>300,height=>300,tex_size=>800 ) \} $BR (Click on graph to enlarge) @@ -84,7 +84,7 @@ Context()->normalStrings; BEGIN_PGML -[___________]{$popup} +[___________]{$popup} END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_53.pg b/Pending/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_53.pg index e00709b785..f78b1555c7 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_53.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_53.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserPopUp.pl", "PGML.pl", @@ -72,7 +72,7 @@ BEGIN_TEXT $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>400,height=>400,tex_size=>800 ) \} $BR (Click on graph to enlarge) @@ -85,13 +85,13 @@ Context()->normalStrings; BEGIN_PGML Evaluate [`f(0)`], and solve for [`f(x) = [$min]`]. If part b has more than one answer, input the larger number in the second field. Otherwise leave the second field blank. -(a) [`f(0) = `] [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +(a) [`f(0) = `] [_______________]{$ans1} [@ helpLink("numbers") @]* -(b) [`f(`] [_]{$ans2} [`) = [$min]`] [@ AnswerFormatHelp("numbers") @]* +(b) [`f(`] [_]{$ans2} [`) = [$min]`] [@ helpLink("numbers") @]* -[`f(`] [_]{$ans3} [`) = [$min]`] [@ AnswerFormatHelp("numbers") @]* +[`f(`] [_]{$ans3} [`) = [$min]`] [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_63.pg b/Pending/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_63.pg index 1ea7f16a84..51fc2fe9b3 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_63.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_63.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserPopUp.pl", "niceTables.pl", "PGML.pl", @@ -61,7 +61,7 @@ LayoutTable( [ ['\(x\)' , '$x1' ,'$x2', '$x3'], ['\(y\)' , '$y1' ,'$y2', '$y3'], - ], + ], midrules => 1, align => '| c | c | c | c |', center => 0, @@ -76,7 +76,7 @@ BEGIN_PGML Does the relation represented in table form above represent [`y`] as a function of [`x`]? - [___________]{$popup} + [___________]{$popup} END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_65.pg b/Pending/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_65.pg index f9abf9eade..90fc20ea22 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_65.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_65.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserPopUp.pl", "niceTables.pl", "PGML.pl", @@ -61,7 +61,7 @@ LayoutTable( [ ['\(x\)' , '$x1' ,'$x2', '$x3'], ['\(y\)' , '$y1' ,'$y2', '$y3'], - ], + ], midrules => 1, align => '| c | c | c | c |', center => 0, @@ -76,7 +76,7 @@ BEGIN_PGML Does the relation represented in table form above represent [`y`] as a function of [`x`]? -[___________]{$popup} +[___________]{$popup} END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_66.pg b/Pending/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_66.pg index 7a1f08fc79..25ad11bf49 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_66.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_66.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserPopUp.pl", "niceTables.pl", "PGML.pl", @@ -69,7 +69,7 @@ LayoutTable( [ ['\(x\)' , '0', '1' ,'2' ,'3' ,'4' ,'5' ,'6','7','8','9'], ['\(y\)' , '$y0', $y1 ,$y2 ,$y3 ,$y4 ,$y5 ,$y6, $y7, $y8, $y9], - ], + ], midrules => 1, align => '| c | c | c | c | c | c | c | c | c | c | c |', center => 0, @@ -84,9 +84,9 @@ BEGIN_PGML Evaluate [`f([$ax])`], and solve for [`f(x) = [$by]`]: -+ [`f([$ax]) = `] [_____]{$ay} [@ AnswerFormatHelp("numbers") @]* ++ [`f([$ax]) = `] [_____]{$ay} [@ helpLink("numbers") @]* -+ The [`x`] value such that [`f(x) = [$by]`] is [`x=`] [_____]{$bx} [@ AnswerFormatHelp("numbers") @]* ++ The [`x`] value such that [`f(x) = [$by]`] is [`x=`] [_____]{$bx} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_7.pg b/Pending/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_7.pg index d7c77d8da4..f00351500a 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_7.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_7.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserPopUp.pl", "parserImplicitEquation.pl", "PGML.pl", @@ -77,9 +77,9 @@ BEGIN_PGML Does each of the following relations represent a function? -+ [` \{([$i1],[$d1]),([$i2],[$d2]),([$i3],[$d3])\} `] [___________]{$popup1} ++ [` \{([$i1],[$d1]),([$i2],[$d2]),([$i3],[$d3])\} `] [___________]{$popup1} -+ [` \{([$ck1],[$cf1]),([$ck2],[$cf2]),([$ck3],[$cf3])\} `] [___________]{$popup1} ++ [` \{([$ck1],[$cf1]),([$ck2],[$cf2]),([$ck3],[$cf3])\} `] [___________]{$popup1} END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_71.pg b/Pending/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_71.pg index 03eac6162f..e166c1e0a4 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_71.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_71.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -53,15 +53,15 @@ $ans5=$f->eval(x=>$g); BEGIN_PGML Evaluate [`f(x)=[$f]`] at the following values: -+ [`f([$b])=`] [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* ++ [`f([$b])=`] [_______________]{$ans1} [@ helpLink("numbers") @]* -+ [`f([$c])=`] [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* ++ [`f([$c])=`] [_______________]{$ans2} [@ helpLink("numbers") @]* -+ [`f([$d])=`] [_______________]{$ans3} [@ AnswerFormatHelp("numbers") @]* ++ [`f([$d])=`] [_______________]{$ans3} [@ helpLink("numbers") @]* -+ [`f([$e])=`] [_______________]{$ans4} [@ AnswerFormatHelp("numbers") @]* ++ [`f([$e])=`] [_______________]{$ans4} [@ helpLink("numbers") @]* -+ [`f([$g])=`] [_______________]{$ans5} [@ AnswerFormatHelp("numbers") @]* ++ [`f([$g])=`] [_______________]{$ans5} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_75.pg b/Pending/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_75.pg index 5491b35ead..f00534056a 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_75.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_75.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -55,9 +55,9 @@ $ans1=Formula("$ansf - $ansh")->reduce; # Main text BEGIN_PGML -Given the functions [`f(x)=[$f]`] and [`h(x)=[$h]`], evaluate the expression: +Given the functions [`f(x)=[$f]`] and [`h(x)=[$h]`], evaluate the expression: -[`f(7/[$i])-h([$j])=`] [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +[`f(7/[$i])-h([$j])=`] [_______________]{$ans1} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_9.pg b/Pending/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_9.pg index acf522102d..680762b395 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_9.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_1_9.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserPopUp.pl", "parserImplicitEquation.pl", "PGML.pl", @@ -91,9 +91,9 @@ BEGIN_PGML Do the following relations represent [`y`] as a function of [`x`]? -+ [` y=[$f1] `] [___________]{$popup1} ++ [` y=[$f1] `] [___________]{$popup1} -+ [`[$f2]+y=[$c]`] [___________]{$popup2} ++ [`[$f2]+y=[$c]`] [___________]{$popup2} + [`[$f3]+[$f32]=[$e]`] [___________]{$popup3} diff --git a/Pending/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_10.pg b/Pending/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_10.pg index abbb125522..f6415c53b0 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_10.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_10.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,7 +50,7 @@ BEGIN_PGML Find the domain of [` f(x)=[$f] `]. Enter your solution in interval notation. -[_______________]{$ans} [@ AnswerFormatHelp("intervals") @]* +[_______________]{$ans} [@ helpLink("intervals") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_15.pg b/Pending/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_15.pg index 26dbc6726b..17fcb720ad 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_15.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_15.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -52,7 +52,7 @@ BEGIN_PGML Find the domain of [`` f(x)=[$f] ``]. Enter your solution in interval notation. -[_______________]{$ans} [@ AnswerFormatHelp("intervals") @]* +[_______________]{$ans} [@ helpLink("intervals") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_17.pg b/Pending/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_17.pg index 4f65ab8726..bd3a4037b0 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_17.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_17.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,7 +50,7 @@ BEGIN_PGML Find the domain of [`` f(x)=[$f] ``]. Enter your solution in interval notation. -[_______________________]{$ans} [@ AnswerFormatHelp("intervals") @]* +[_______________________]{$ans} [@ helpLink("intervals") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_27.pg b/Pending/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_27.pg index d24d6a5ee0..61d7b2589f 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_27.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_27.pg @@ -23,7 +23,7 @@ loadMacros( "PGnumericalmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -60,18 +60,18 @@ Find the domain and range of \( y=f(x) \) whose graph is given below. $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>300,height=>300,tex_size=>800 ) \} $BR (Click on graph to enlarge) $BR $BR Domain: \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR $BR Range: \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR $BR $ECENTER diff --git a/Pending/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_31.pg b/Pending/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_31.pg index 82e24f77aa..e0c8fef62b 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_31.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_31.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -62,22 +62,22 @@ $ans2=Interval("[-$a,1/$c*($e-$b)**2-$a]"); Context()->texStrings; BEGIN_TEXT $BR -Find the domain and range of \( y=f(x) \) whose graph is given below. +Find the domain and range of \( y=f(x) \) whose graph is given below. $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>300,height=>300,tex_size=>800 ) \} $BR (Click on graph to enlarge) $BR $BR Domain: \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR $BR Range: \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR $BR $ECENTER diff --git a/Pending/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_32.pg b/Pending/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_32.pg index 14b2f6a7ba..489b33af1d 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_32.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_32.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -63,18 +63,18 @@ Find the domain and range of \( y=f(x) \) whose graph is given below. $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>300,height=>300,tex_size=>800 ) \} $BR (Click on graph to enlarge) $BR $BR Domain: \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR $BR Range: \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR $BR $ECENTER diff --git a/Pending/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_33.pg b/Pending/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_33.pg index 94e606810d..905e6b66c4 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_33.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_33.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -32,10 +32,10 @@ TEXT(beginproblem()); ########################### # Setup -$a=random(2,5); -$b=non_zero_random(0,5); +$a=random(2,5); +$b=non_zero_random(0,5); + - $gr = init_graph(-6,-6,6,6, axes=>[0,0], grid=>[12,12], @@ -65,7 +65,7 @@ Find the domain and range of the transformed square root function whose graph is $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>300,height=>300,tex_size=>800 ) \} $BR (Click on graph to enlarge) @@ -73,11 +73,11 @@ $BR $BR $BR Domain: \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR $BR Range: \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR $BR $ECENTER diff --git a/Pending/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_39.pg b/Pending/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_39.pg index e1154e3773..0748c508f6 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_39.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_39.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "contextPiecewiseFunction.pl", @@ -46,7 +46,7 @@ $range = "(-infinity, -$d]U($f,infinity)"; Context("PiecewiseFunction"); Context()->noreduce("(-x)-y"); -$fun = PiecewiseFunction("$c*x-$d if x <= 0 else $e*x+$f if x > 0")->reduce; +$fun = PiecewiseFunction("$c*x-$d if x <= 0 else $e*x+$f if x > 0")->reduce; @@ -56,13 +56,13 @@ $fun = PiecewiseFunction("$c*x-$d if x <= 0 else $e*x+$f if x > 0")->reduce; BEGIN_PGML -Graph the piecewise function to find the domain and range +Graph the piecewise function to find the domain and range [` f(x)=[$fun] `]. - Domain: [_________________]{$domain} [@ AnswerFormatHelp("intervals") @]* + Domain: [_________________]{$domain} [@ helpLink("intervals") @]* - Range: [_________________]{$range} [@ AnswerFormatHelp("intervals") @]* + Range: [_________________]{$range} [@ helpLink("intervals") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_41.pg b/Pending/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_41.pg index 3cd68dcf3a..cdfe5f6111 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_41.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_41.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "contextPiecewiseFunction.pl", "PGML.pl", @@ -45,7 +45,7 @@ $range = Interval("[0,infinity)"); Context("PiecewiseFunction"); Context()->noreduce("(-x)-y"); -$fun = PiecewiseFunction("$d if x < -$a else x**2 if x >= -$a")->reduce; +$fun = PiecewiseFunction("$d if x < -$a else x**2 if x >= -$a")->reduce; ############################################## @@ -57,9 +57,9 @@ Graph the function to find the domain and range. [` f(x)=[$fun] `]. - Domain: [_________________]{$domain} [@ AnswerFormatHelp("intervals") @]* + Domain: [_________________]{$domain} [@ helpLink("intervals") @]* - Range: [_________________]{$range} [@ AnswerFormatHelp("intervals") @]* + Range: [_________________]{$range} [@ helpLink("intervals") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_44.pg b/Pending/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_44.pg index f5f47eaf65..d82745ad96 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_44.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_44.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -50,7 +50,7 @@ $domain = Interval("(-infinity,infinity)"); if ($d+$a*$c > $f-$a*$e) { $range = Interval("(-infinity, $d+$a*$c)"); -} else { +} else { $range = Interval("(-infinity, $f-$a*$e]"); } @@ -65,7 +65,7 @@ $BR Graph the piecewise function to find its domain and range. $max $BR \[ -f(x) = +f(x) = \left\lbrace \begin{array}{lcl} $f1, && \mbox{ if } x < $a, \\ @@ -81,10 +81,10 @@ $BR $BR Domain: \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR Range: \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR diff --git a/Pending/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_45.pg b/Pending/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_45.pg index 598855e6b9..e98fc0c713 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_45.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_45.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "contextPiecewiseFunction.pl", "PGML.pl", @@ -53,20 +53,20 @@ $range = Interval("(-infinity, -$d-$c*$b)U(sqrt($a),infinity)"); Context("PiecewiseFunction"); Context()->noreduce("(-x)-y"); -$fun = PiecewiseFunction("$c*x-$d if x < -$b else sqrt(x) if x > $a")->reduce; +$fun = PiecewiseFunction("$c*x-$d if x < -$b else sqrt(x) if x > $a")->reduce; ############################################## # Main text BEGIN_PGML -Graph the piecewise function to find its domain and range. +Graph the piecewise function to find its domain and range. [` f(x)=[$fun] `]. - Domain: [_________________]{$domain} [@ AnswerFormatHelp("intervals") @]* + Domain: [_________________]{$domain} [@ helpLink("intervals") @]* - Range: [_________________]{$range} [@ AnswerFormatHelp("intervals") @]* + Range: [_________________]{$range} [@ helpLink("intervals") @]* diff --git a/Pending/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_47.pg b/Pending/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_47.pg index 0299da5848..011a5971a8 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_47.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_47.pg @@ -17,7 +17,7 @@ # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PG.pl", @@ -28,7 +28,7 @@ loadMacros( "PGgraphmacros.pl", "extraAnswerEvaluators.pl", "contextPiecewiseFunction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,7 +48,7 @@ Context()->noreduce("(-x)-y"); $f1=Formula("$a"); $f2=Formula("$b"); -$fun = PiecewiseFunction("$f1 if x < 0 else $f2 if x >= 0")->reduce; +$fun = PiecewiseFunction("$f1 if x < 0 else $f2 if x >= 0")->reduce; Context("Numeric"); @@ -59,13 +59,13 @@ Given the piecewise function, find the function values. [` f(x)=[$fun] `]. - [`f([$c])=`] [_________________]{if ($c<0) {$f1->eval(x=>$c)} else{$f2->eval(x=>$c)}} [@ AnswerFormatHelp("numbers") @]* + [`f([$c])=`] [_________________]{if ($c<0) {$f1->eval(x=>$c)} else{$f2->eval(x=>$c)}} [@ helpLink("numbers") @]* - [`f(0)=`] [_________________]{if (0<0) {$f1->eval(x=>0)} else{$f2->eval(x=>0)}}[@ AnswerFormatHelp("numbers") @]* + [`f(0)=`] [_________________]{if (0<0) {$f1->eval(x=>0)} else{$f2->eval(x=>0)}}[@ helpLink("numbers") @]* - [`f([$d])=`] [_________________]{if ($d<0) {$f1->eval(x=>$d)} else{$f2->eval(x=>$d)}} [@ AnswerFormatHelp("numbers") @]* + [`f([$d])=`] [_________________]{if ($d<0) {$f1->eval(x=>$d)} else{$f2->eval(x=>$d)}} [@ helpLink("numbers") @]* - [`f([$e])=`] [_________________]{if ($e<0) {$f1->eval(x=>$e)} else{$f2->eval(x=>$e)}} [@ AnswerFormatHelp("numbers") @]* + [`f([$e])=`] [_________________]{if ($e<0) {$f1->eval(x=>$e)} else{$f2->eval(x=>$e)}} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_49.pg b/Pending/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_49.pg index dade77da91..e24ed48a50 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_49.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_49.pg @@ -17,7 +17,7 @@ # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PG.pl", @@ -28,7 +28,7 @@ loadMacros( "PGgraphmacros.pl", "extraAnswerEvaluators.pl", "contextPiecewiseFunction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,7 +51,7 @@ Context()->noreduce("(-x)-y"); $f1=Formula("$a*x+$f"); $f2=Formula("$b*x+$g"); -$fun = PiecewiseFunction("$f1 if x < $h else $f2 if x >= $h")->reduce; +$fun = PiecewiseFunction("$f1 if x < $h else $f2 if x >= $h")->reduce; Context("Numeric"); @@ -62,13 +62,13 @@ Given the piecewise function, find the function values. [` f(x)=[$fun] `]. - [`f([$c])=`] [_________________]{if ($c<$h) {$f1->eval(x=>$c)} else{$f2->eval(x=>$c)}} [@ AnswerFormatHelp("numbers") @]* + [`f([$c])=`] [_________________]{if ($c<$h) {$f1->eval(x=>$c)} else{$f2->eval(x=>$c)}} [@ helpLink("numbers") @]* - [`f(0)=`] [_________________]{if (0<$h) {$f1->eval(x=>0)} else{$f2->eval(x=>0)}}[@ AnswerFormatHelp("numbers") @]* + [`f(0)=`] [_________________]{if (0<$h) {$f1->eval(x=>0)} else{$f2->eval(x=>0)}}[@ helpLink("numbers") @]* - [`f([$d])=`] [_________________]{if ($d<$h) {$f1->eval(x=>$d)} else{$f2->eval(x=>$d)}} [@ AnswerFormatHelp("numbers") @]* + [`f([$d])=`] [_________________]{if ($d<$h) {$f1->eval(x=>$d)} else{$f2->eval(x=>$d)}} [@ helpLink("numbers") @]* - [`f([$e])=`] [_________________]{if ($e<$h) {$f1->eval(x=>$e)} else{$f2->eval(x=>$e)}} [@ AnswerFormatHelp("numbers") @]* + [`f([$e])=`] [_________________]{if ($e<$h) {$f1->eval(x=>$e)} else{$f2->eval(x=>$e)}} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_51.pg b/Pending/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_51.pg index 6527f3ece2..c8e58fd623 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_51.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_51.pg @@ -17,7 +17,7 @@ # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PG.pl", @@ -28,7 +28,7 @@ loadMacros( "PGgraphmacros.pl", "extraAnswerEvaluators.pl", "contextPiecewiseFunction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -54,7 +54,7 @@ $f1=Formula("$a*x+$f"); $f2=Formula("$e"); $f3=Formula("$b*x+$g"); -$fun = PiecewiseFunction("$f1 if x < $h else $f2 if $h <= x < $i else $f3 if x>=$i")->reduce; +$fun = PiecewiseFunction("$f1 if x < $h else $f2 if $h <= x < $i else $f3 if x>=$i")->reduce; Context("Numeric"); @@ -65,13 +65,13 @@ Graph the function to find the function values. [` f(x)=[$fun] `]. - [`f([$c])=`] [_________________]{if ($c<$h) {$f1->eval(x=>$c)} elsif ($c>=$i) {$f3->eval(x=>$c)} else{$f2->eval(x=>$c)}} [@ AnswerFormatHelp("numbers") @]* + [`f([$c])=`] [_________________]{if ($c<$h) {$f1->eval(x=>$c)} elsif ($c>=$i) {$f3->eval(x=>$c)} else{$f2->eval(x=>$c)}} [@ helpLink("numbers") @]* - [`f(0)=`] [_________________]{if (0<$h) {$f1->eval(x=>0)} elsif (0>=$i) {$f3->eval(x=>0)} else{$f2->eval(x=>0)}}[@ AnswerFormatHelp("numbers") @]* + [`f(0)=`] [_________________]{if (0<$h) {$f1->eval(x=>0)} elsif (0>=$i) {$f3->eval(x=>0)} else{$f2->eval(x=>0)}}[@ helpLink("numbers") @]* - [`f([$d])=`] [_________________]{if ($d<$h) {$f1->eval(x=>$d)} elsif ($d>=$i) {$f3->eval(x=>$d)} else{$f2->eval(x=>$d)}} [@ AnswerFormatHelp("numbers") @]* + [`f([$d])=`] [_________________]{if ($d<$h) {$f1->eval(x=>$d)} elsif ($d>=$i) {$f3->eval(x=>$d)} else{$f2->eval(x=>$d)}} [@ helpLink("numbers") @]* - [`f([$e])=`] [_________________]{if ($e<$h) {$f1->eval(x=>$e)} elsif ($e>=$i) {$f3->eval(x=>$e)} else{$f2->eval(x=>$e)}} [@ AnswerFormatHelp("numbers") @]* + [`f([$e])=`] [_________________]{if ($e<$h) {$f1->eval(x=>$e)} elsif ($e>=$i) {$f3->eval(x=>$e)} else{$f2->eval(x=>$e)}} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_6.pg b/Pending/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_6.pg index 892d163a87..a2dba67ace 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_6.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_6.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,7 +50,7 @@ BEGIN_PGML Find the domain of [` f(x)=[$f] `]. Enter your solution in interval notation. -[_______________]{$ans} [@ AnswerFormatHelp("intervals") @]* +[_______________]{$ans} [@ helpLink("intervals") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_8.pg b/Pending/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_8.pg index 6fdf09ac7c..48fd0fa4b1 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_8.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_8.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -49,7 +49,7 @@ BEGIN_PGML Find the domain of [` f(x)=[$f] `]. Enter your solution in interval notation. -[_______________]{$ans} [@ AnswerFormatHelp("intervals") @]* +[_______________]{$ans} [@ helpLink("intervals") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_StepPractice.pg b/Pending/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_StepPractice.pg index a1897d1981..d035df54fd 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_StepPractice.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_StepPractice.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -68,7 +68,7 @@ Find the domain and range of \( y=f(x) \) whose graph is given below. $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>200,height=>200,tex_size=>800 ) \} $BR (Click on graph to enlarge) @@ -76,11 +76,11 @@ $BCENTER $BR $BR Domain: \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR $BR Range: \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR $BR diff --git a/Pending/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_VIDEO.pg b/Pending/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_VIDEO.pg index b5283bd391..27b792d76d 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_VIDEO.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_VIDEO.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -62,7 +62,7 @@ $BR Graph the piecewise function to find its domain and range. $BR \[ -f(x) = +f(x) = \left\lbrace \begin{array}{lcl} $f1, && \mbox{ if } x < -$a, \\ @@ -78,10 +78,10 @@ $BR $BR Domain: \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR Range: \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR diff --git a/Pending/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_VIDEO_1.pg b/Pending/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_VIDEO_1.pg index 5bd553ba65..37ad549f63 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_VIDEO_1.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_VIDEO_1.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "contextPiecewiseFunction.pl", @@ -45,21 +45,21 @@ $f = random(3,10,1); Context("PiecewiseFunction"); Context()->noreduce("(-x)-y"); -$fun = PiecewiseFunction("$c*x+$d if x < 1 else -$e*x+$f if x >= 1")->reduce; +$fun = PiecewiseFunction("$c*x+$d if x < 1 else -$e*x+$f if x >= 1")->reduce; $domain = Interval("(-infinity,infinity)"); if ($d+$c > $f-$e) { $range = Interval("(-infinity, $d+$c)"); -} else { +} else { $range = Interval("(-infinity, $f-$e]"); } Context("Interval"); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -71,16 +71,16 @@ BEGIN_PGML >> [$video]* << ->> YouTube video of Craig Faulhaber, mathemagician, embedded using an iframe. << +>> YouTube video of Craig Faulhaber, mathemagician, embedded using an iframe. << >> If the video does not work, [@ htmlLink("https://youtu.be/RxnkI19AFb4","click here to go to YouTube directly.") @]* << -Graph the piecewise function to find the domain and range +Graph the piecewise function to find the domain and range [` f(x)=[$fun] `]. - Domain: [_______________]{$domain} [@ AnswerFormatHelp("intervals") @]* + Domain: [_______________]{$domain} [@ helpLink("intervals") @]* - Range: [_______________]{$range} [@ AnswerFormatHelp("intervals") @]* + Range: [_______________]{$range} [@ helpLink("intervals") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_11.pg b/Pending/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_11.pg index c68a31ce91..b6c05e988f 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_11.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_11.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,7 +50,7 @@ $ans=Compute("-1/(($b+$a)*($b+h+$a))")->reduce; BEGIN_PGML Find the average rate of change for [``f(t)=[$f]``] over the interval [`[[$b],[$b]+h] `]. -[_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_16.pg b/Pending/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_16.pg index 6e0c8f2944..b120392bda 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_16.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_16.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -65,14 +65,14 @@ Let the graph of \( y=f(x) \) be given below. $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>200,height=>200,tex_size=>800 ) \} $BR (Click on graph to enlarge) $BR $BR Estimate the average rate of change for the graph above from \(x=1\) to \(x=4\). \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $ECENTER END_TEXT Context()->normalStrings; diff --git a/Pending/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_17.pg b/Pending/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_17.pg index 79afde4f09..61f912078a 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_17.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_17.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -65,7 +65,7 @@ Let the graph of \( y=f(x) \) be given below. $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>200,height=>200,tex_size=>800 ) \} $BR (Click on graph to enlarge) @@ -73,7 +73,7 @@ $BR $BR $BR Estimate the average rate of change for the graph above from \(x=2\) to \(x=3\). \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $ECENTER END_TEXT Context()->normalStrings; diff --git a/Pending/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_18.pg b/Pending/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_18.pg index 74d4c0b537..725fb389a3 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_18.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_18.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -63,22 +63,22 @@ Find the intervals where the function \( y=f(x) \), whose graph is given below, $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>200,height=>200,tex_size=>800 ) \} $BR (Click on graph to enlarge) $BR $BR Increasing: \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR $BR Decreasing: \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR $BR Absolute minimum y = \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $ECENTER END_TEXT Context()->normalStrings; diff --git a/Pending/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_22.pg b/Pending/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_22.pg index c956c63318..9acfe56027 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_22.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_22.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -68,7 +68,7 @@ Find the intervals where the function \( y=f(x) \), whose graph is given below, $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>200,height=>200,tex_size=>800 ) \} $BR (Click on graph to enlarge) @@ -76,19 +76,19 @@ $BR $BR $BR Increasing: \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR $BR Decreasing: \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR $BR Local maximum y = \{ ans_rule(20) \} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} $BR $BR Local minimum y = \{ ans_rule(20) \} -\{ AnswerFormatHelp("number") \} +\{ helpLink("number") \} $BR $BR $ECENTER diff --git a/Pending/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_23.pg b/Pending/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_23.pg index 9d48005bf3..2787bfb08d 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_23.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_23.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserPopUp.pl", "contextLimitedPoint.pl", "PGML.pl", @@ -78,7 +78,7 @@ Find the intervals where the function \( y=f(x) \), whose graph is given below, $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>200,height=>200,tex_size=>800 ) \} $BR (Click on graph to enlarge) @@ -88,13 +88,13 @@ Context()->normalStrings; BEGIN_PGML ->>Increasing: [______]{$ans1}[@ AnswerFormatHelp("intervals") @]*<< +>>Increasing: [______]{$ans1}[@ helpLink("intervals") @]*<< ->>Decreasing: [______]{$ans2}[@ AnswerFormatHelp("intervals") @]*<< +>>Decreasing: [______]{$ans2}[@ helpLink("intervals") @]*<< ->>Local maximum: [______]{$popup1} [` = `] [______]{$ans3}[@ AnswerFormatHelp("numbers") @]*<< +>>Local maximum: [______]{$popup1} [` = `] [______]{$ans3}[@ helpLink("numbers") @]*<< ->>Local minimum: [______]{$popup1} [` = `] [______]{$ans4}[@ AnswerFormatHelp("numbers") @]*<< +>>Local minimum: [______]{$popup1} [` = `] [______]{$ans4}[@ helpLink("numbers") @]*<< END_PGML ############################ diff --git a/Pending/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_24.pg b/Pending/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_24.pg index ac562feaf9..d286f763bc 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_24.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_24.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserPopUp.pl", "contextLimitedPoint.pl", "PGML.pl", @@ -70,7 +70,7 @@ Find the intervals where the function \( y=f(x) \), whose graph is given below, $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>200,height=>200,tex_size=>800 ) \} $BR (Click on graph to enlarge) @@ -80,11 +80,11 @@ Context()->normalStrings; BEGIN_PGML ->>Increasing: [______]{$ans1}[@ AnswerFormatHelp("intervals") @]*<< +>>Increasing: [______]{$ans1}[@ helpLink("intervals") @]*<< ->>Decreasing: [______]{$ans2}[@ AnswerFormatHelp("intervals") @]*<< +>>Decreasing: [______]{$ans2}[@ helpLink("intervals") @]*<< ->>Absolute minimum: [______]{$popup1} [` = `] [______]{$ans3}[@ AnswerFormatHelp("numbers") @]*<< +>>Absolute minimum: [______]{$popup1} [` = `] [______]{$ans3}[@ helpLink("numbers") @]*<< END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_25.pg b/Pending/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_25.pg index 86620119d4..5712dd4a36 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_25.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_25.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserPopUp.pl", "contextLimitedPoint.pl", "PGML.pl", @@ -71,7 +71,7 @@ Find the intervals where the function \( y=f(x) \), whose graph is given below, $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>200,height=>200,tex_size=>800 ) \} $BR (Click on graph to enlarge) @@ -82,11 +82,11 @@ Context()->normalStrings; BEGIN_PGML ->>Increasing: [______]{$ans1}[@ AnswerFormatHelp("intervals") @]*<< +>>Increasing: [______]{$ans1}[@ helpLink("intervals") @]*<< ->>Decreasing: [______]{$ans2}[@ AnswerFormatHelp("intervals") @]*<< +>>Decreasing: [______]{$ans2}[@ helpLink("intervals") @]*<< ->>Absolute maximum: [______]{$popup1} [` = `] [______]{$ans3}[@ AnswerFormatHelp("numbers") @]*<< +>>Absolute maximum: [______]{$popup1} [` = `] [______]{$ans3}[@ helpLink("numbers") @]*<< END_PGML ############################ diff --git a/Pending/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_26.pg b/Pending/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_26.pg index 6db95da20f..1428c8158d 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_26.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_26.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "niceTables.pl", "PGML.pl", "PGcourse.pl", @@ -60,7 +60,7 @@ LayoutTable( [ ['Year' , '1998' ,'1999' ,'2000' ,'2001' ,'2002' ,'2003','2004','2005','2006'], ['Sales (millions of dollars)' , '201' ,'219' ,'233' ,$a ,$b ,'251',$c,'243','233'], - ], + ], midrules => 1, align => '| c | c | c | c | c | c | c | c | c | c |', center => 0, diff --git a/Pending/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_44.pg b/Pending/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_44.pg index e5dce9d4c9..08b38c2b32 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_44.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_44.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "niceTables.pl", "PGML.pl", "PGcourse.pl", diff --git a/Pending/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_45.pg b/Pending/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_45.pg index 4e8bb116d6..1770feb8e7 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_45.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_45.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "niceTables.pl", "PGML.pl", "PGcourse.pl", diff --git a/Pending/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_7.pg b/Pending/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_7.pg index 472dca9219..201645ccfb 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_7.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_7.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,7 +50,7 @@ $ans= $a; BEGIN_PGML Find the average rate of change for [``f(x)=[$f]``] over the interval [`[[$x1],[$x2]] `]. You must simplify your answer. -[_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_9.pg b/Pending/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_9.pg index 5e3d3a2da0..b1253be32f 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_9.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_9.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,7 +50,7 @@ $ans=Compute("2*$a*x+$a*h")->reduce; BEGIN_PGML Find the average rate of change for [``f(x)=[$f]``] over the interval [`[x,x+h] `]. You must simplify your answer. -[_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[_______________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup1.pg b/Pending/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup1.pg index db84c87cf6..b4c919979d 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup1.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup1.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,7 +50,7 @@ Context()->operators->remove('^','**','/'); BEGIN_PGML Find and simplify the difference quotient for [``f(x)=[$f]``]. Your answer must be simplified for it to be counted correct. -[`` \frac{f(x+h)-f(x)}{h}=``] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`` \frac{f(x+h)-f(x)}{h}=``] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup2.pg b/Pending/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup2.pg index 9a164ff6b6..ad8c760505 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup2.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup2.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,7 +51,7 @@ Context()->operators->remove('^','**','/'); BEGIN_PGML Find and simplify the difference quotient for [``f(x)=[$f]``]. Your answer must be simplified for it to be counted correct. -[`` \frac{f(x+h)-f(x)}{h}=``] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`` \frac{f(x+h)-f(x)}{h}=``] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup3.pg b/Pending/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup3.pg index 3d6266bdcc..7a27787a8a 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup3.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup3.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -49,7 +49,7 @@ Context()->operators->remove('^','**','/'); BEGIN_PGML Find and simplify the difference quotient for [``f(x)=[$f]``]. Your answer must be simplified for it to be counted correct. -[`` \frac{f(x+h)-f(x)}{h}=``] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`` \frac{f(x+h)-f(x)}{h}=``] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup4.pg b/Pending/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup4.pg index e3e61a8a66..c6495d7dc3 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup4.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup4.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,7 +48,7 @@ $ans=Compute("-$a/(x*(x+h))")->reduce; BEGIN_PGML Find and simplify the difference quotient for [``f(x)=[$f]``]. Your answer must be simplified for it to be counted correct. -[`` \frac{f(x+h)-f(x)}{h}=``] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`` \frac{f(x+h)-f(x)}{h}=``] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup5.pg b/Pending/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup5.pg index 96d5decdd0..e828606016 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup5.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup5.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -49,7 +49,7 @@ Context()->operators->remove('/'); BEGIN_PGML Find and simplify the difference quotient for [``f(x)=[$f]``]. Your answer must be simplified for it to be counted correct. -[`` \frac{f(x+h)-f(x)}{h}=``] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`` \frac{f(x+h)-f(x)}{h}=``] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup6.pg b/Pending/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup6.pg index 92d1be118c..eb93761235 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup6.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_3_sup6.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,7 +48,7 @@ $ans=Compute("(-2*$a*x-$a*h)/(x^2*(x+h)^2)")->reduce; BEGIN_PGML Find and simplify the difference quotient for [``f(x)=[$f]``]. Your answer must be simplified for it to be counted correct. -[`` \frac{f(x+h)-f(x)}{h}=``] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`` \frac{f(x+h)-f(x)}{h}=``] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/3.4/Openstax_AlgTrig_AT-1-001-AS_3_4_43.pg b/Pending/RRCC/College_Algebra/MAT121/3.4/Openstax_AlgTrig_AT-1-001-AS_3_4_43.pg index 19d9451de4..7114e36278 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.4/Openstax_AlgTrig_AT-1-001-AS_3_4_43.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.4/Openstax_AlgTrig_AT-1-001-AS_3_4_43.pg @@ -13,14 +13,14 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "MathObjects.pl", "PGstandard.pl", "PGgraphmacros.pl", - "AnswerFormatHelp.pl", + "PGchoicemacros.pl", "unionTables.pl", ); @@ -31,7 +31,7 @@ $refreshCachedImages = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); do { @@ -89,32 +89,32 @@ Context()->strings->add("undefined"=>{}); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], "$SPACE $SPACE $SPACE $SPACE", $figs[1]]). TableSpace(5,25). AlignedRow(["\(y = f(x)\)", "$SPACE $SPACE $SPACE $SPACE", "\(y = g(x)\)"]). EndTable(); \} -$ECENTER +$ECENTER $PAR -Use the graphs of \(y = f(x)\) and \(y = g(x)\) above to the find the function value. +Use the graphs of \(y = f(x)\) and \(y = g(x)\) above to the find the function value. $PAR -$SPACE $SPACE (a) \(g(f($a)) = \) \{ans_rule(5)\} \{ AnswerFormatHelp("numbers") \} +$SPACE $SPACE (a) \(g(f($a)) = \) \{ans_rule(5)\} \{ helpLink("numbers") \} $BR $BR -$SPACE $SPACE (b) \(g(g($b)) = \) \{ans_rule(5)\} \{ AnswerFormatHelp("numbers") \} +$SPACE $SPACE (b) \(g(g($b)) = \) \{ans_rule(5)\} \{ helpLink("numbers") \} END_TEXT Context()->normalStrings; ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute("$answer1")->cmp()); ANS(Compute("$answer2")->cmp()); diff --git a/Pending/RRCC/College_Algebra/MAT121/3.4/Openstax_AlgTrig_AT-1-001-AS_3_4_45.pg b/Pending/RRCC/College_Algebra/MAT121/3.4/Openstax_AlgTrig_AT-1-001-AS_3_4_45.pg index 19d9451de4..7114e36278 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.4/Openstax_AlgTrig_AT-1-001-AS_3_4_45.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.4/Openstax_AlgTrig_AT-1-001-AS_3_4_45.pg @@ -13,14 +13,14 @@ ########################################################################### -# initialization +# initialization ########################################################################### DOCUMENT(); loadMacros( "MathObjects.pl", "PGstandard.pl", "PGgraphmacros.pl", - "AnswerFormatHelp.pl", + "PGchoicemacros.pl", "unionTables.pl", ); @@ -31,7 +31,7 @@ $refreshCachedImages = 1; ########################################################################### -# setup contexts and variables +# setup contexts and variables ########################################################################### Context("Numeric"); do { @@ -89,32 +89,32 @@ Context()->strings->add("undefined"=>{}); ########################################################################### -# state the problem +# state the problem ########################################################################### Context()->texStrings; BEGIN_TEXT $BCENTER -\{ +\{ BeginTable(). AlignedRow([$figs[0], "$SPACE $SPACE $SPACE $SPACE", $figs[1]]). TableSpace(5,25). AlignedRow(["\(y = f(x)\)", "$SPACE $SPACE $SPACE $SPACE", "\(y = g(x)\)"]). EndTable(); \} -$ECENTER +$ECENTER $PAR -Use the graphs of \(y = f(x)\) and \(y = g(x)\) above to the find the function value. +Use the graphs of \(y = f(x)\) and \(y = g(x)\) above to the find the function value. $PAR -$SPACE $SPACE (a) \(g(f($a)) = \) \{ans_rule(5)\} \{ AnswerFormatHelp("numbers") \} +$SPACE $SPACE (a) \(g(f($a)) = \) \{ans_rule(5)\} \{ helpLink("numbers") \} $BR $BR -$SPACE $SPACE (b) \(g(g($b)) = \) \{ans_rule(5)\} \{ AnswerFormatHelp("numbers") \} +$SPACE $SPACE (b) \(g(g($b)) = \) \{ans_rule(5)\} \{ helpLink("numbers") \} END_TEXT Context()->normalStrings; ########################################################################### -# check the answer +# check the answer ########################################################################### ANS(Compute("$answer1")->cmp()); ANS(Compute("$answer2")->cmp()); diff --git a/Pending/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_11.pg b/Pending/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_11.pg index 7bfdb0d6a9..beffe9f541 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_11.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_11.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -55,14 +55,14 @@ $ans3 = Formula("$a*($c*$m+$d)^2+$b")->reduce(); # Main text BEGIN_PGML -Let [`f(x) = [$f]`] and [`g(x) = [$g]`]. +Let [`f(x) = [$f]`] and [`g(x) = [$g]`]. + ++ [` f(g(x)) = `] [_______________]{$ans1} [@ helpLink("formulas") @]* -+ [` f(g(x)) = `] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* ++ [` g(f(x)) = `] [_______________]{$ans2} [@ helpLink("formulas") @]* -+ [` g(f(x)) = `] [_______________]{$ans2} [@ AnswerFormatHelp("formulas") @]* ++ [` f(g([$m])) = `] [_______________]{$ans3} [@ helpLink("numbers") @]* -+ [` f(g([$m])) = `] [_______________]{$ans3} [@ AnswerFormatHelp("numbers") @]* - END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_13.pg b/Pending/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_13.pg index 03c8596680..9073bd428a 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_13.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_13.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,11 +50,11 @@ $ans2 = Compute("(sqrt(x)+$a)^2+$b")->reduce(); # Main text BEGIN_PGML -Let [`f(x) = [$f]`] and [`g(x) = [$g]`]. +Let [`f(x) = [$f]`] and [`g(x) = [$g]`]. -+ [` (f\circ g)(x) = `] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* ++ [` (f\circ g)(x) = `] [_______________]{$ans1} [@ helpLink("formulas") @]* -+ [` (g \circ f)(x) = `] [_______________]{$ans2} [@ AnswerFormatHelp("formulas") @]* ++ [` (g \circ f)(x) = `] [_______________]{$ans2} [@ helpLink("formulas") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_16.pg b/Pending/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_16.pg index 7aca99ec41..2ba40b6454 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_16.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_16.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,11 +51,11 @@ $ans2 = Formula("$b*x+($c-$a*$b)")->reduce(); # Main text BEGIN_PGML -Let [``f(x) = [$f]``] and [``g(x) = [$g]``]. +Let [``f(x) = [$f]``] and [``g(x) = [$g]``]. -+ [`` f(g(x)) = ``] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* ++ [`` f(g(x)) = ``] [_______________]{$ans1} [@ helpLink("formulas") @]* -+ [`` g(f(x)) = ``] [_______________]{$ans2} [@ AnswerFormatHelp("formulas") @]* ++ [`` g(f(x)) = ``] [_______________]{$ans2} [@ helpLink("formulas") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_17.pg b/Pending/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_17.pg index 9b56e69601..1868108b6f 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_17.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_17.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -52,11 +52,11 @@ $ans2 = Formula("$b*x+($c-$a*$b)")->reduce(); # Main text BEGIN_PGML -Let [``f(x) = [$f]``] and [``g(x) = [$g]``]. +Let [``f(x) = [$f]``] and [``g(x) = [$g]``]. -+ [` (f \circ g)(x) = `] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* ++ [` (f \circ g)(x) = `] [_______________]{$ans1} [@ helpLink("formulas") @]* -+ [` (g \circ f)(x) = `] [_______________]{$ans2} [@ AnswerFormatHelp("formulas") @]* ++ [` (g \circ f)(x) = `] [_______________]{$ans2} [@ helpLink("formulas") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_27.pg b/Pending/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_27.pg index 6cb08a7ca0..c97539a05c 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_27.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_27.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,9 +51,9 @@ $ans1 = Compute("x**$b")->reduce(); BEGIN_PGML Let [`h(x) = f(g(x)) = [$h] `]. Find [`f(x)`] given [`g(x)=x-[$a] `]. - [` f(x) = `] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* + [` f(x) = `] [_______________]{$ans1} [@ helpLink("formulas") @]* + - END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_29.pg b/Pending/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_29.pg index 9b80c406d9..e69c4b3690 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_29.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_29.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,7 +51,7 @@ $ans1 = Compute("4/x**$b")->reduce(); BEGIN_PGML Let [``h(x) = (f \circ g)(x) = [$h] ``]. Find [`f(x)`] given [``g(x)=x+[$a] ``]. - [` f(x) = `] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* + [` f(x) = `] [_______________]{$ans1} [@ helpLink("formulas") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_39.pg b/Pending/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_39.pg index 51958f1603..0a14bf6481 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_39.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_39.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,7 +51,7 @@ $ans1 = Compute("1/x**$b")->reduce(); BEGIN_PGML Let [``h(x) = f(g(x)) = [$h] ``]. Find [`f(x)`] given [``g(x)=x-[$a] ``]. - [` f(x) = `] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* + [` f(x) = `] [_______________]{$ans1} [@ helpLink("formulas") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_5.pg b/Pending/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_5.pg index 3bd7e0e153..c5bd36cbc8 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_5.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_5.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -58,25 +58,25 @@ $ans8 = Compute("(-infinity,-sqrt($b))U(-sqrt($b),sqrt($b))U(sqrt($b),infinity)" # Main text BEGIN_PGML -Let [`f(x) = [$f]`] and [`g(x) = [$g]`]. +Let [`f(x) = [$f]`] and [`g(x) = [$g]`]. + ++ [` (f + g)(x) = `] [_______________]{$ans1} [@ helpLink("formulas") @]* -+ [` (f + g)(x) = `] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* ++ [` (f - g)(x) = `] [_______________]{$ans2} [@ helpLink("formulas") @]* -+ [` (f - g)(x) = `] [_______________]{$ans2} [@ AnswerFormatHelp("formulas") @]* ++ [` (fg)(x) = `] [_______________]{$ans3} [@ helpLink("formulas") @]* -+ [` (fg)(x) = `] [_______________]{$ans3} [@ AnswerFormatHelp("formulas") @]* ++ [` \left(\frac{f}{g}\right)(x) = `] [_______________]{$ans4} [@ helpLink("formulas") @]* -+ [` \left(\frac{f}{g}\right)(x) = `] [_______________]{$ans4} [@ AnswerFormatHelp("formulas") @]* ++ The domain of [` (f + g)(x) `] is: [_______________]{$ans5} [@ helpLink("intervals") @]* -+ The domain of [` (f + g)(x) `] is: [_______________]{$ans5} [@ AnswerFormatHelp("intervals") @]* ++ The domain of [` (f - g)(x) `] is: [_______________]{$ans6} [@ helpLink("intervals") @]* -+ The domain of [` (f - g)(x) `] is: [_______________]{$ans6} [@ AnswerFormatHelp("intervals") @]* ++ The domain of [` (fg)(x) `] is: [_______________]{$ans7} [@ helpLink("intervals") @]* -+ The domain of [` (fg)(x) `] is: [_______________]{$ans7} [@ AnswerFormatHelp("intervals") @]* ++ The domain of [` \left(\frac{f}{g}\right)(x) `] is: [_______________]{$ans8} [@ helpLink("intervals") @]* -+ The domain of [` \left(\frac{f}{g}\right)(x) `] is: [_______________]{$ans8} [@ AnswerFormatHelp("intervals") @]* - END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_59.pg b/Pending/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_59.pg index 902746208b..09653260cd 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_59.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_59.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "niceTables.pl", "PGML.pl", "PGcourse.pl", @@ -241,7 +241,7 @@ LayoutTable( ['\(x\)' , '1' ,'2' ,'3' ,'4' ,'5' ,'6','7','8','9'], ['\(f(x)\)' , $f1 ,$f2 ,$f3 ,$f4 ,$f5 ,$f6, $f7, $f8, $f9], ['\(g(x)\)' , $g1,$g2 ,$g3 ,$g4,$g5,$g6,$g7,$g8,$g9], - ], + ], midrules => 1, align => '| c | c | c | c | c | c | c | c | c | c |', center => 0, @@ -251,7 +251,7 @@ LayoutTable( $BR Use the table to evaluate the expression, $BR -\(f(g($s))=\) \{ans_rule(20)\} \{ AnswerFormatHelp("numbers") \} +\(f(g($s))=\) \{ans_rule(20)\} \{ helpLink("numbers") \} $ECENTER END_TEXT diff --git a/Pending/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_61.pg b/Pending/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_61.pg index 55ccad7918..7eaf8c4a5c 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_61.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_61.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "niceTables.pl", "PGML.pl", "PGcourse.pl", @@ -241,7 +241,7 @@ LayoutTable( ['\(x\)' , '1' ,'2' ,'3' ,'4' ,'5' ,'6','7','8','9'], ['\(f(x)\)' , $f1 ,$f2 ,$f3 ,$f4 ,$f5 ,$f6, $f7, $f8, $f9], ['\(g(x)\)' , $g1,$g2 ,$g3 ,$g4,$g5,$g6,$g7,$g8,$g9], - ], + ], midrules => 1, align => '| c | c | c | c | c | c | c | c | c | c |', center => 0, @@ -251,7 +251,7 @@ LayoutTable( $BR Use the table to evaluate the expression, $BR -\( (g \circ f)($s)= \) \{ans_rule(20)\} \{ AnswerFormatHelp("numbers") \} +\( (g \circ f)($s)= \) \{ans_rule(20)\} \{ helpLink("numbers") \} $ECENTER END_TEXT diff --git a/Pending/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_73.pg b/Pending/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_73.pg index e4a48f0072..6e45fc7ce5 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_73.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_73.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -45,7 +45,7 @@ $m = random(-3,3,1); $f = Formula("$a*x+$b")->reduce; $g = Formula("$c+$d*x^2")->reduce; -$hold = $g->eval(x=>$m); +$hold = $g->eval(x=>$m); $ans1 = $f->eval(x=>$hold); @@ -53,10 +53,10 @@ $ans1 = $f->eval(x=>$hold); # Main text BEGIN_PGML -Let [`f(x) = [$f]`] and [`g(x) = [$g]`]. +Let [`f(x) = [$f]`] and [`g(x) = [$g]`]. -+ [` f(g([$m])) = `] [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* ++ [` f(g([$m])) = `] [_______________]{$ans1} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_77.pg b/Pending/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_77.pg index 2d8f39ad84..52628d6db8 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_77.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_77.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,10 +50,10 @@ $ans1 = Compute("$a*($d*x + $c)**$e-$b")->reduce; # Main text BEGIN_PGML -Let [`f(x) = [$f]`] and [`g(x) = [$g]`]. +Let [`f(x) = [$f]`] and [`g(x) = [$g]`]. + ++ [` (f \circ g)(x) = `] [_______________]{$ans1} [@ helpLink("formulas") @]* -+ [` (f \circ g)(x) = `] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* - END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_9.pg b/Pending/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_9.pg index 26f9a446fa..b10a648f6d 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_9.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_4_9.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -60,23 +60,23 @@ $ans8 = Compute("($b,infinity)"); # Main text BEGIN_PGML -Let [`f(x) = [$f]`] and [`g(x) = [$g]`]. +Let [`f(x) = [$f]`] and [`g(x) = [$g]`]. -+ [` (f + g)(x) = `] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* ++ [` (f + g)(x) = `] [_______________]{$ans1} [@ helpLink("formulas") @]* -+ [` (f - g)(x) = `] [_______________]{$ans2} [@ AnswerFormatHelp("formulas") @]* ++ [` (f - g)(x) = `] [_______________]{$ans2} [@ helpLink("formulas") @]* -+ [` (fg)(x) = `] [_______________]{$ans3} [@ AnswerFormatHelp("formulas") @]* ++ [` (fg)(x) = `] [_______________]{$ans3} [@ helpLink("formulas") @]* -+ [` \left(\frac{f}{g}\right)(x) = `] [_______________]{$ans4} [@ AnswerFormatHelp("formulas") @]* ++ [` \left(\frac{f}{g}\right)(x) = `] [_______________]{$ans4} [@ helpLink("formulas") @]* -+ The domain of [` (f + g)(x) `] is: [_______________]{$ans5} [@ AnswerFormatHelp("intervals") @]* ++ The domain of [` (f + g)(x) `] is: [_______________]{$ans5} [@ helpLink("intervals") @]* -+ The domain of [` (f - g)(x) `] is: [_______________]{$ans6} [@ AnswerFormatHelp("intervals") @]* ++ The domain of [` (f - g)(x) `] is: [_______________]{$ans6} [@ helpLink("intervals") @]* -+ The domain of [` (fg)(x) `] is: [_______________]{$ans7} [@ AnswerFormatHelp("intervals") @]* ++ The domain of [` (fg)(x) `] is: [_______________]{$ans7} [@ helpLink("intervals") @]* -+ The domain of [` \left(\frac{f}{g}\right)(x) `] is: [_______________]{$ans8} [@ AnswerFormatHelp("intervals") @]* ++ The domain of [` \left(\frac{f}{g}\right)(x) `] is: [_______________]{$ans8} [@ helpLink("intervals") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_21.pg b/Pending/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_21.pg index 55c4f9d812..f428cc6ef8 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_21.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_21.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -53,9 +53,9 @@ $ansdecr = Compute("(-infinity,$bound)"); BEGIN_PGML Determine the interval(s) on which [`f(x) = [$g][$f]`] is increasing and decreasing. -+ Increasing: [_______________]{$ansincr} [@ AnswerFormatHelp("intervals") @]* ++ Increasing: [_______________]{$ansincr} [@ helpLink("intervals") @]* -+ Decreasing: [_______________]{$ansdecr} [@ AnswerFormatHelp("intervals") @]* ++ Decreasing: [_______________]{$ansdecr} [@ helpLink("intervals") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_31.pg b/Pending/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_31.pg index 01dbc80d2d..eeb14b3a27 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_31.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_31.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -34,7 +34,7 @@ $showPartialCorrectAnswers = 1; # Setup Context("LimitedPoint"); -Context()->noreduce("(-x)-y"); +Context()->noreduce("(-x)-y"); $a=random(-13,13); $b=random(-5,5); @@ -49,10 +49,10 @@ $ans = Point("(($a,$c*$b+$d))"); # Main text BEGIN_PGML -Suppose [` [$pt1] `] is a point on the graph of [`y=f(x)`]. What is a point that will be on the graph of [`y=[$c]*f(x)+[$d] `]? +Suppose [` [$pt1] `] is a point on the graph of [`y=f(x)`]. What is a point that will be on the graph of [`y=[$c]*f(x)+[$d] `]? -[_______________]{$ans} [@ AnswerFormatHelp("points") @]* -Enter a point as [` (a,b) `], including the parentheses. +[_______________]{$ans} [@ helpLink("points") @]* +Enter a point as [` (a,b) `], including the parentheses. END_PGML ############################ diff --git a/Pending/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_32.pg b/Pending/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_32.pg index 43964de307..8839dee6fc 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_32.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_32.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -49,10 +49,10 @@ $ans = Point("(($a/$c,$b+$d))"); # Main text BEGIN_PGML -Suppose [` [$pt1] `] is a point on the graph of [`y=f(x)`]. What is a point that will be on the graph of [`y = f([$c]x) + [$d]`]? +Suppose [` [$pt1] `] is a point on the graph of [`y=f(x)`]. What is a point that will be on the graph of [`y = f([$c]x) + [$d]`]? -[_______________]{$ans} [@ AnswerFormatHelp("points") @]* -Enter a point as [` (a,b) `], including the parentheses. +[_______________]{$ans} [@ helpLink("points") @]* +Enter a point as [` (a,b) `], including the parentheses. END_PGML ############################ diff --git a/Pending/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_32b.pg b/Pending/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_32b.pg index fee3e9375c..c51d89497e 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_32b.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_32b.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -48,10 +48,10 @@ $ans = Point("(($a+$c,-$b))"); # Main text BEGIN_PGML -Suppose [` [$pt1] `] is a point on the graph of [`y=f(x)`]. What is a point that will be on the graph of [`y = -f(x-[$c])`]? +Suppose [` [$pt1] `] is a point on the graph of [`y=f(x)`]. What is a point that will be on the graph of [`y = -f(x-[$c])`]? -[_______________]{$ans} [@ AnswerFormatHelp("points") @]* -Enter a point as [` (a,b) `], including the parentheses. +[_______________]{$ans} [@ helpLink("points") @]* +Enter a point as [` (a,b) `], including the parentheses. END_PGML ############################ diff --git a/Pending/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_35.pg b/Pending/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_35.pg index 50cc2a5150..c7fab54d53 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_35.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_35.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -59,7 +59,7 @@ Write an equation for the graphed function by using transformations of the graph $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>300,height=>300,tex_size=>800 ) \} $BR $BR @@ -69,7 +69,7 @@ $BR $BR $BR y = \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR $ECENTER diff --git a/Pending/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_37.pg b/Pending/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_37.pg index f3056cfd12..7bcb78ce41 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_37.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_37.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -43,7 +43,7 @@ size=>[400,400] add_functions($gr, "(x+$a)^2+$b for x in <-6,6> using color:blue and weight:2"); -($gr->fn)[0]->steps(300); +($gr->fn)[0]->steps(300); $refreshCachedImages=1; @@ -61,7 +61,7 @@ Find an equation for the graphed function below by using transformations of the $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>300,height=>300,tex_size=>800 ) \} $BR (Click on graph to enlarge) @@ -69,7 +69,7 @@ $BR $BR $BR \( y= \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR $ECENTER diff --git a/Pending/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_39.pg b/Pending/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_39.pg index 1a1f5cd6ba..ed83fc1856 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_39.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_39.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -43,7 +43,7 @@ size=>[400,400] add_functions($gr, "abs{x+$a}+$b for x in <-6,6> using color:blue and weight:2"); -($gr->fn)[0]->steps(300); +($gr->fn)[0]->steps(300); $refreshCachedImages=1; @@ -61,7 +61,7 @@ Find an equation for the graphed function below by using transformations of the $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>300,height=>300,tex_size=>800 ) \} $BR (Click on graph to enlarge) @@ -69,7 +69,7 @@ $BR $BR $BR \( y= \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR $ECENTER diff --git a/Pending/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_47.pg b/Pending/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_47.pg index f24e2818eb..adf591d4b3 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_47.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_47.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserPopUp.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -54,9 +54,9 @@ $popup = PopUp( BEGIN_PGML Let [``f(x) = [$f]``]. Find [``f(-x)``] and [``-f(x)``]. Use them to determine whether or not [``f(x)``] is even, odd, or neither. -[` f(-x) = `] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* +[` f(-x) = `] [_______________]{$ans1} [@ helpLink("formulas") @]* -[` -f(x) = `] [_______________]{$ans2} [@ AnswerFormatHelp("formulas") @]* +[` -f(x) = `] [_______________]{$ans2} [@ helpLink("formulas") @]* Is [``f(x)``] odd, even, or neither? [@ $popup->menu() @]* diff --git a/Pending/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_49.pg b/Pending/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_49.pg index a6a9ea66d6..b8175a3708 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_49.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_49.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserPopUp.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -53,9 +53,9 @@ $popup = PopUp( BEGIN_PGML Let [``f(x) = [$f]``]. Find [``f(-x)``] and [``-f(x)``]. Use them to determine whether or not [``f(x)``] is even, odd, or neither. -[` f(-x) = `] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* +[` f(-x) = `] [_______________]{$ans1} [@ helpLink("formulas") @]* -[` -f(x) = `] [_______________]{$ans2} [@ AnswerFormatHelp("formulas") @]* +[` -f(x) = `] [_______________]{$ans2} [@ helpLink("formulas") @]* Is [``f(x)``] odd, even, or neither? [@ $popup->menu() @]* diff --git a/Pending/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_50.pg b/Pending/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_50.pg index 3853810899..c7db09c020 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_50.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_50.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -21,7 +21,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserPopUp.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -55,9 +55,9 @@ $popup = PopUp( BEGIN_PGML Let [``f(x) = [$f]``]. Find [``f(-x)``] and [``-f(x)``]. Use them to determine whether or not [``f(x)``] is even, odd, or neither. -[` f(-x) = `] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* +[` f(-x) = `] [_______________]{$ans1} [@ helpLink("formulas") @]* -[` -f(x) = `] [_______________]{$ans2} [@ AnswerFormatHelp("formulas") @]* +[` -f(x) = `] [_______________]{$ans2} [@ helpLink("formulas") @]* Is [``f(x)``] odd, even, or neither? [@ $popup->menu() @]* diff --git a/Pending/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_6.pg b/Pending/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_6.pg index 26754c5742..0c7ba12268 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_6.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_6.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -46,9 +46,9 @@ $ans1 = Compute("sqrt{x+$b}+$a")->reduce(); # Main text BEGIN_PGML -Let [`f(x) = \sqrt{x}`]. Find [`g(x)`], the function that is [`f(x)`] shifted up [`[$a]`] units and left [`[$b]`] units. +Let [`f(x) = \sqrt{x}`]. Find [`g(x)`], the function that is [`f(x)`] shifted up [`[$a]`] units and left [`[$b]`] units. - [` g(x) = `] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* + [` g(x) = `] [_______________]{$ans1} [@ helpLink("formulas") @]* diff --git a/Pending/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_64.pg b/Pending/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_64.pg index 7187c9a2e7..67e43cca4b 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_64.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_64.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -44,9 +44,9 @@ Context()->variables->set(x=>{limits=>[$a+1,$a+5]}); # Main text BEGIN_PGML -Let [``f(x) = \sqrt{x}``]. Find [`g(x)`], the function that is [`f(x)`] reflected over the [`x`]-axis and horizontally stretched by a factor of [`[$a]`]. +Let [``f(x) = \sqrt{x}``]. Find [`g(x)`], the function that is [`f(x)`] reflected over the [`x`]-axis and horizontally stretched by a factor of [`[$a]`]. - [` g(x) = `] [_______________]{"-sqrt{1/$a*x}"} [@ AnswerFormatHelp("formulas") @]* + [` g(x) = `] [_______________]{"-sqrt{1/$a*x}"} [@ helpLink("formulas") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_8.pg b/Pending/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_8.pg index 598eab82fd..a1c03350a4 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_8.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_5_8.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -46,9 +46,9 @@ $ans1 = Compute("(1)/(x-$b)-$a")->reduce(); # Main text BEGIN_PGML -Let [``f(x) = \frac{1}{x}``]. Find [`g(x)`], the function that is [`f(x)`] shifted down [`[$a]`] units and right [`[$b]`] units. +Let [``f(x) = \frac{1}{x}``]. Find [`g(x)`], the function that is [`f(x)`] shifted down [`[$a]`] units and right [`[$b]`] units. - [` g(x) = `] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* + [` g(x) = `] [_______________]{$ans1} [@ helpLink("formulas") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_11.pg b/Pending/RRCC/College_Algebra/MAT121/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_11.pg index a2657e61e4..597e0308ff 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_11.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_11.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -50,15 +50,15 @@ $yint = List( Point("(0,$a|$b|-$c)") ); BEGIN_PGML Find the x-intercept(s) and y-intercept(s) -of [` y = [$f] `]. +of [` y = [$f] `]. Enter a point as [` (a,b) `], -including the parentheses. If there is more -than one correct answer, enter a comma +including the parentheses. If there is more +than one correct answer, enter a comma separated list of points. -x-intercept(s): [_______________]{"($b+$c/$a,0),($b-$c/$a,0)"} [@ AnswerFormatHelp("points") @]* -y-intercept(s): [_______________]{$yint} [@ AnswerFormatHelp("points") @]* +x-intercept(s): [_______________]{"($b+$c/$a,0),($b-$c/$a,0)"} [@ helpLink("points") @]* +y-intercept(s): [_______________]{$yint} [@ helpLink("points") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_40.pg b/Pending/RRCC/College_Algebra/MAT121/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_40.pg index c6cf38f2f9..ebd41532ec 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_40.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_40.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -17,12 +17,12 @@ # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGchoicemacros.pl", "PGcourse.pl", @@ -39,8 +39,8 @@ $ans1=Interval("[$b-$a, $b+$a]"); $mc = new_checkbox_multiple_choice(); $mc -> qa ( -"In absolute value notation, where \( x \) represents the score on the test, this is:", -"\( |x-$b| \leq $a \)$BR", +"In absolute value notation, where \( x \) represents the score on the test, this is:", +"\( |x-$b| \leq $a \)$BR", ); $mc -> extra( "\( |x-$b| \geq $a \)$BR", @@ -54,11 +54,11 @@ $mc -> makeLast("None of the above"); # Main text BEGIN_TEXT -A patient needs to keep their blood sugar levels within \( $a \) milligrams per deciliter of \( $b \) milligrams per deciliter. What blood sugar levels are okay for that patient? Enter solution as an interval or union of intervals. (Note: this is a hypothetical situation.) +A patient needs to keep their blood sugar levels within \( $a \) milligrams per deciliter of \( $b \) milligrams per deciliter. What blood sugar levels are okay for that patient? Enter solution as an interval or union of intervals. (Note: this is a hypothetical situation.) $BR $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR $BR \{ $mc -> print_q() \} diff --git a/Pending/RRCC/College_Algebra/MAT121/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_41.pg b/Pending/RRCC/College_Algebra/MAT121/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_41.pg index 604ca2ae40..4b02def7ca 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_41.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_41.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -17,12 +17,12 @@ # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGchoicemacros.pl", "PGcourse.pl", @@ -39,8 +39,8 @@ $ans1=Interval("[$b-$a, $b+$a]"); $mc = new_checkbox_multiple_choice(); $mc -> qa ( -"In absolute value notation, where \( x \) represents the machined diameter, this is:", -"\( |x-$b| \leq $a \)$BR", +"In absolute value notation, where \( x \) represents the machined diameter, this is:", +"\( |x-$b| \leq $a \)$BR", ); $mc -> extra( "\( |x-$b| \geq $a \)$BR", @@ -54,11 +54,11 @@ $mc -> makeLast("None of the above"); # Main text BEGIN_TEXT -A machinist must produce a bearing that is within \( $a \) inches of the correct diameter of \( $b \) inches. What are the possible diameters that will work? Enter solution as an interval or union of intervals. +A machinist must produce a bearing that is within \( $a \) inches of the correct diameter of \( $b \) inches. What are the possible diameters that will work? Enter solution as an interval or union of intervals. $BR $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR $BR \{ $mc -> print_q() \} diff --git a/Pending/RRCC/College_Algebra/MAT121/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_5.pg b/Pending/RRCC/College_Algebra/MAT121/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_5.pg index c24d1b77d3..629625217b 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_5.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_5.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -17,12 +17,12 @@ # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGchoicemacros.pl", "PGcourse.pl", @@ -39,8 +39,8 @@ $ans1=List("$b-$a, $b+$a"); $mc = new_checkbox_multiple_choice(); $mc -> qa ( -"In absolute value notation, where \( x \) represents the numbers, this is:", -"\( |x-$b|=$a \)$BR", +"In absolute value notation, where \( x \) represents the numbers, this is:", +"\( |x-$b|=$a \)$BR", ); $mc -> extra( "\( |x+$b|=$a \)$BR", @@ -54,11 +54,11 @@ $mc -> makeLast("None of the above"); # Main text BEGIN_TEXT -List all numbers that are a distance of \( $a \) from the number \( $b \). Enter as a comma separated list. +List all numbers that are a distance of \( $a \) from the number \( $b \). Enter as a comma separated list. $BR $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR $BR \{ $mc -> print_q() \} diff --git a/Pending/RRCC/College_Algebra/MAT121/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_7.pg b/Pending/RRCC/College_Algebra/MAT121/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_7.pg index a3d16aa756..c19efc4a28 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_7.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_7.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -17,12 +17,12 @@ # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGchoicemacros.pl", "PGcourse.pl", @@ -39,8 +39,8 @@ $ans1=Interval("(-infinity,$b-$a]U[$b+$a,infinity)"); $mc = new_checkbox_multiple_choice(); $mc -> qa ( -"In absolute value notation, where \( x \) represents the numbers, this is:", -"\( |x-$b| \geq $a \)$BR", +"In absolute value notation, where \( x \) represents the numbers, this is:", +"\( |x-$b| \geq $a \)$BR", ); $mc -> extra( "\( |x-$b|\leq$a \)$BR", @@ -54,11 +54,11 @@ $mc -> makeLast("None of the above"); # Main text BEGIN_TEXT -Find the interval(s) of numbers that are at least a distance of \( $a \) from \( $b \). Enter solution as an interval or union of intervals. +Find the interval(s) of numbers that are at least a distance of \( $a \) from \( $b \). Enter solution as an interval or union of intervals. $BR $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR $BR \{ $mc -> print_q() \} diff --git a/Pending/RRCC/College_Algebra/MAT121/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_8.pg b/Pending/RRCC/College_Algebra/MAT121/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_8.pg index 28f2d0775f..5e86b9bad2 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_8.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_8.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -17,12 +17,12 @@ # Initialization -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGchoicemacros.pl", "PGcourse.pl", @@ -39,8 +39,8 @@ $ans1=Interval("($b-$a, $b+$a)"); $mc = new_checkbox_multiple_choice(); $mc -> qa ( -"In absolute value notation, where \( x \) represents the numbers, this is:", -"\( |x-$b| < $a \)$BR", +"In absolute value notation, where \( x \) represents the numbers, this is:", +"\( |x-$b| < $a \)$BR", ); $mc -> extra( "\( |x-$b| > $a \)$BR", @@ -54,11 +54,11 @@ $mc -> makeLast("None of the above"); # Main text BEGIN_TEXT -Find the interval(s) of numbers that are less than a distance of \( $a \) from \( $b \). Enter solution as an interval or union of intervals. +Find the interval(s) of numbers that are less than a distance of \( $a \) from \( $b \). Enter solution as an interval or union of intervals. $BR $BR \{ ans_rule(20) \} -\{ AnswerFormatHelp("intervals") \} +\{ helpLink("intervals") \} $BR $BR \{ $mc -> print_q() \} diff --git a/Pending/RRCC/College_Algebra/MAT121/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_9.pg b/Pending/RRCC/College_Algebra/MAT121/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_9.pg index a2657e61e4..597e0308ff 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_9.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_6_9.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -50,15 +50,15 @@ $yint = List( Point("(0,$a|$b|-$c)") ); BEGIN_PGML Find the x-intercept(s) and y-intercept(s) -of [` y = [$f] `]. +of [` y = [$f] `]. Enter a point as [` (a,b) `], -including the parentheses. If there is more -than one correct answer, enter a comma +including the parentheses. If there is more +than one correct answer, enter a comma separated list of points. -x-intercept(s): [_______________]{"($b+$c/$a,0),($b-$c/$a,0)"} [@ AnswerFormatHelp("points") @]* -y-intercept(s): [_______________]{$yint} [@ AnswerFormatHelp("points") @]* +x-intercept(s): [_______________]{"($b+$c/$a,0),($b-$c/$a,0)"} [@ helpLink("points") @]* +y-intercept(s): [_______________]{$yint} [@ helpLink("points") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_11.pg b/Pending/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_11.pg index 5376ed8bd7..4d3a06cc0b 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_11.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_11.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,7 +50,7 @@ $ans1 = Formula("(-$b*x)/(x-$a)")->reduce(); BEGIN_PGML Let [``f(x) = [$f]``]. Find [` f^{-1}(x) `]. - [` f^{-1}(x) = `] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* + [` f^{-1}(x) = `] [_______________]{$ans1} [@ helpLink("formulas") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_12.pg b/Pending/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_12.pg index 489e0c14ae..34f1917917 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_12.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_12.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -52,7 +52,7 @@ $ans1 = Formula("($b-$d*x)/($c*x-$a)")->reduce(); BEGIN_PGML Let [``f(x) = [$f]``]. Find [` f^{-1}(x) `]. - [` f^{-1}(x) = `] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* + [` f^{-1}(x) = `] [_______________]{$ans1} [@ helpLink("formulas") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_13.pg b/Pending/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_13.pg index 75a74ea6f0..9e7990dbb4 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_13.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_13.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "contextPiecewiseFunction.pl", @@ -41,7 +41,7 @@ Context("Interval"); $domain = Interval("[$b,$a]"); Context("Numeric"); -$fun = Formula("(x-$b)^2 ")->reduce; +$fun = Formula("(x-$b)^2 ")->reduce; $inv = Formula("sqrt(x) + $b"); @@ -54,15 +54,15 @@ $g = $fun->eval(x => 0); BEGIN_PGML -Find the largest domain for [` f(x)=[$fun] `], with upper [`x`] bound [$a], such that the function [`f`] is one-to one and non-decreasing . +Find the largest domain for [` f(x)=[$fun] `], with upper [`x`] bound [$a], such that the function [`f`] is one-to one and non-decreasing . - One-to-one domain: [_________________]{$domain} [@ AnswerFormatHelp("intervals") @]* + One-to-one domain: [_________________]{$domain} [@ helpLink("intervals") @]* Your answers must be in interval notation. Find the inverse of [`f`] restricted to that domain. - [`f^{-1}(x) = `] [___________________]{$inv} [@ AnswerFormatHelp("formulas") @]* + [`f^{-1}(x) = `] [___________________]{$inv} [@ helpLink("formulas") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_15.pg b/Pending/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_15.pg index 0c47ccad35..b0effc815e 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_15.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_15.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "contextPiecewiseFunction.pl", @@ -41,7 +41,7 @@ Context("Interval"); $domain = Interval("[0,$a]"); Context("Numeric"); -$fun = Formula("(x^2-$b)")->reduce; +$fun = Formula("(x^2-$b)")->reduce; $inv = Formula("sqrt(x+$b)"); @@ -54,15 +54,15 @@ $g = $fun->eval(x => 0); BEGIN_PGML -Find the largest domain for [` f(x)=[$fun] `], with upper [`x`] bound [$a], such that the function [`f`] is one-to one and non-decreasing . +Find the largest domain for [` f(x)=[$fun] `], with upper [`x`] bound [$a], such that the function [`f`] is one-to one and non-decreasing . - One-to-one domain: [_________________]{$domain} [@ AnswerFormatHelp("intervals") @]* + One-to-one domain: [_________________]{$domain} [@ helpLink("intervals") @]* Your answers must be in interval notation. Find the inverse of [`f`] restricted to that domain. - [`f^{-1}(x) = `] [___________________]{$inv} [@ AnswerFormatHelp("formulas") @]* + [`f^{-1}(x) = `] [___________________]{$inv} [@ helpLink("formulas") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_25.pg b/Pending/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_25.pg index 05a727d7cb..c57c86090d 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_25.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_25.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -59,7 +59,7 @@ Let the graph of \( f(x) \) be given below. Find the following. $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>300,height=>300,tex_size=>800 ) \} $BR $BR @@ -69,11 +69,11 @@ $BR $BR $BR \( f(0) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR $BR \( f^{-1}(0) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("numbers") \} +\{ helpLink("numbers") \} $BR $BR $ECENTER diff --git a/Pending/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_37.pg b/Pending/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_37.pg index 147a1d81b7..d9843dcd5d 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_37.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_37.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "niceTables.pl", "PGML.pl", "PGcourse.pl", @@ -35,14 +35,14 @@ $showPartialCorrectAnswers = 1; # Setup #future thought, build these using a permutation of-10 through 10 and grab first 9 -$f1 = list_random(1,-9,-13); -$f2 = list_random(2,-8,12); +$f1 = list_random(1,-9,-13); +$f2 = list_random(2,-8,12); $f3 = list_random(3,-7,-11); -$f4 = list_random(4,-6,10); -$f5 = list_random(5,-5,0); +$f4 = list_random(4,-6,10); +$f5 = list_random(5,-5,0); $f6 = list_random(6,-4,-10); -$f7 = list_random(7,-3,11); -$f8 = list_random(8,-2,-12); +$f7 = list_random(7,-3,11); +$f8 = list_random(8,-2,-12); $f9 = list_random(9,-1,13); $s = random(1,9,1); @@ -106,7 +106,7 @@ LayoutTable( [ ['\(x\)' , '1' ,'2' ,'3' ,'4' ,'5' ,'6','7','8','9'], ['\(f(x)\)' , $f1 ,$f2 ,$f3 ,$f4 ,$f5 ,$f6, $f7, $f8, $f9], - ], + ], midrules => 1, align => '| c | c | c | c | c | c | c | c | c | c |', center => 0, @@ -117,16 +117,16 @@ $BR Use the table to evaluate the expressions: $BR $BR -\(f($s)=\) \{ans_rule(20)\} \{ AnswerFormatHelp("numbers") \} +\(f($s)=\) \{ans_rule(20)\} \{ helpLink("numbers") \} $BR $BR -\(f($t)=\) \{ans_rule(20)\} \{ AnswerFormatHelp("numbers") \} +\(f($t)=\) \{ans_rule(20)\} \{ helpLink("numbers") \} $BR $BR -\(f^{-1}($u)=\) \{ans_rule(20)\} \{ AnswerFormatHelp("numbers") \} +\(f^{-1}($u)=\) \{ans_rule(20)\} \{ helpLink("numbers") \} $BR $BR -\(f^{-1}($v)=\) \{ans_rule(20)\} \{ AnswerFormatHelp("numbers") \} +\(f^{-1}($v)=\) \{ans_rule(20)\} \{ helpLink("numbers") \} $ECENTER END_TEXT diff --git a/Pending/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_45.pg b/Pending/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_45.pg index 349c96fa7c..16138b65d0 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_45.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_45.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "niceTables.pl", "PGML.pl", "PGcourse.pl", @@ -46,7 +46,7 @@ $ans1 = Formula("5/9*x - 5/9*32"); BEGIN_PGML To convert from x degrees Celsius to y degrees Fahrenheit, we use the formula [`` f(x) = \frac{9}{5} x + 32 ``]. Find the inverse function, if it exists, and be sure you could explain its meaning. -[`f^{-1}(x)=`] [___________________________]{"5/9*x-160/9"} [@ AnswerFormatHelp("formulas") @]* +[`f^{-1}(x)=`] [___________________________]{"5/9*x-160/9"} [@ helpLink("formulas") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_7.pg b/Pending/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_7.pg index 8cbe0780e1..651bc1eb8a 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_7.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_7.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,7 +50,7 @@ $ans1 = Formula("(x-$b)/$a")->reduce(); BEGIN_PGML Let [`f(x) = [$f]`]. Find [` f^{-1}(x) `]. - [` f^{-1}(x) = `] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* + [` f^{-1}(x) = `] [_______________]{$ans1} [@ helpLink("formulas") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_7_box.pg b/Pending/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_7_box.pg index ec08a949af..cbd9cdc532 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_7_box.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_7_7_box.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGchoicemacros.pl", "PGML.pl", "PGcourse.pl", @@ -36,8 +36,8 @@ $showPartialCorrectAnswers = 1; $mc = new_checkbox_multiple_choice(); $mc -> qa ( -"", -"\( f^{-1}(x) \)$BR", +"", +"\( f^{-1}(x) \)$BR", ); $mc -> extra( "\( f(x) \)$BR", @@ -63,7 +63,7 @@ $ans1 = Formula("(x-$b)/$a")->reduce(); BEGIN_PGML Let [`f(x) = [$f]`]. Find and enter the inverse of [`f(x)`] -[_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* +[_______________]{$ans1} [@ helpLink("formulas") @]* Select the correct notation for the inverse of [`f(x)`]. END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_7_16.pg b/Pending/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_7_16.pg index b1388a314e..ed157b59e1 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_7_16.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_7_16.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "niceTables.pl", "PGML.pl", "PGcourse.pl", diff --git a/Pending/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_7_18.pg b/Pending/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_7_18.pg index 689645e361..7a802b6370 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_7_18.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_7_18.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "niceTables.pl", "PGML.pl", "PGcourse.pl", diff --git a/Pending/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_7_21.pg b/Pending/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_7_21.pg index 31fba32895..dfe0182028 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_7_21.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_7_21.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "niceTables.pl", "PGML.pl", "PGcourse.pl", diff --git a/Pending/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_7_57.pg b/Pending/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_7_57.pg index 0bcc51295a..e7fe647fe7 100644 --- a/Pending/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_7_57.pg +++ b/Pending/RRCC/College_Algebra/MAT121/3.7/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_7_57.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "niceTables.pl", "PGML.pl", "PGcourse.pl", diff --git a/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_01.pg b/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_01.pg index 5a029c5ae6..28e664e9fb 100644 --- a/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_01.pg +++ b/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_01.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) ## DBsection(Applications and models) @@ -11,17 +11,17 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,7 +29,7 @@ loadMacros( "PGcourse.pl", "parserPopUp.pl", ); - + TEXT(beginproblem()); $showPartialCorrectAnswers = 0; @@ -40,41 +40,41 @@ Context("Numeric"); $start=random(2000,4000,200); $speed=random(40,80,5); -# Adding the two letters as variables +# Adding the two letters as variables Context()->variables->add(t => "Real"); $popupTime = PopUp(["?", "hour", "minute", "second", "day"], "second"); -$popupDist = PopUp(["?", "meters", "feet", "inches"], "feet"); +$popupDist = PopUp(["?", "meters", "feet", "inches"], "feet"); + + - - ########################### # Main text - + BEGIN_PGML Terry is skiing down a steep hill. Terry's elevation, [`E(t)`], in feet after [`t`] seconds is given by the equation - [`E(t)=[$start]-[$speed]t `]. + [`E(t)=[$start]-[$speed]t `]. + +Complete the following sentence describing Terry's starting elevation and how it is changing over time. + -Complete the following sentence describing Terry's starting elevation and how it is changing over time. - - - He is starting from a height of [____]{$start} feet and is skiing downhill at a speed of [____]{$speed} [_____]{$popupDist} per [_____]{$popupTime} [@ AnswerFormatHelp("numbers") @]* + He is starting from a height of [____]{$start} feet and is skiing downhill at a speed of [____]{$speed} [_____]{$popupDist} per [_____]{$popupTime} [@ helpLink("numbers") @]* Note: to get the problem correct, you must provide the correct answer to every part - + END_PGML - - + + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_02.pg b/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_02.pg index f2be99d239..f4d8c2541e 100644 --- a/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_02.pg +++ b/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_02.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) ## DBsection(Applications and models) @@ -11,17 +11,17 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,10 +29,10 @@ loadMacros( "PGcourse.pl", "parserPopUp.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -50,32 +50,32 @@ $endDist=non_zero_random(0,2,0.2); $speed= Formula(($startDist-$endDist)/(($endTime-$startTime)/60)); - + ########################### # Main text - + BEGIN_PGML Fernando is walking home from a friend\'s house at a constant speed. After [$startTime] minutes he is [$startDist] miles from home. [$endTime] minutes after leaving, he is [$endDist] miles -from home. +from home. What is his rate in *miles per hour* (mph)? -[_____]{$speed} mph. [@ AnswerFormatHelp("numbers") @]* +[_____]{$speed} mph. [@ helpLink("numbers") @]* + - END_PGML - - + + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_03.pg b/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_03.pg index 512b9514fb..95a957067a 100644 --- a/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_03.pg +++ b/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_03.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) ## DBsection(Applications and models) @@ -11,37 +11,37 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", "PGML.pl", "PGcourse.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); - + $distance=non_zero_random(40,200,20); $speed = random(10,30,2); -# Adding the two letters as variables +# Adding the two letters as variables Context()->variables->add(t => "Real"); Context()->variables->add(d => "Real"); @@ -49,7 +49,7 @@ Context()->variables->add(d => "Real"); # The two sides of the correct answer $ans1=d; $ans2=Formula("$distance- t*$speed"); - + # Allows for the correct equation to be given in either order $multians = MultiAnswer($ans1, $ans2)->with( @@ -60,38 +60,38 @@ $multians = MultiAnswer($ans1, $ans2)->with( my ( $f1, $f2) = @{$correct}; if ( ( $f1 == $stu1 && $f2 == $stu2) || ( $f1 == $stu2 && $f2 == $stu1) ) -{return [1,1];} - +{return [1,1];} + else { return [0,0]; } - + } ); - - + + ########################### # Main text - + BEGIN_PGML -A boat is [$distance] miles away from the marina, sailing directly toward it at [$speed] miles per hour. +A boat is [$distance] miles away from the marina, sailing directly toward it at [$speed] miles per hour. + +Write an equation for the distance of the boat from the marina, [`d`], after [`t`] hours. + + [____]{$multians} [`=`] [____]{$multians} [@ helpLink("numbers") @]* + -Write an equation for the distance of the boat from the marina, [`d`], after [`t`] hours. - - [____]{$multians} [`=`] [____]{$multians} [@ AnswerFormatHelp("numbers") @]* - - END_PGML - - - + + + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_04.pg b/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_04.pg index 226d6335d9..59790107ef 100644 --- a/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_04.pg +++ b/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_04.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) ## DBsection(Parallel and perpendicular lines) @@ -11,17 +11,17 @@ ## Author(Michael Sulock, Edited: Steven Wray 7/22/17) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,48 +29,48 @@ loadMacros( "PGcourse.pl", "parserPopUp.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Fraction"); - -# Do we want a negative numerator? + +# Do we want a negative numerator? $numerator=non_zero_random(-20,20,1); $denominator=random(1,20,1); -# Adding the two letters as variables +# Adding the two letters as variables Context()->variables->add(t => "Real"); $slope = Fraction($numerator,$denominator); $answer = Compute("-$denominator/$numerator"); - - + + ########################### # Main text - + BEGIN_PGML -Given a linear equation with a slope of [`\displaystyle[$slope]`], determine the slope of a line that is perpendicular. +Given a linear equation with a slope of [`\displaystyle[$slope]`], determine the slope of a line that is perpendicular. + +[____]{$answer} [@ helpLink("numbers") @]* -[____]{$answer} [@ AnswerFormatHelp("numbers") @]* - END_PGML - - + + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_05.pg b/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_05.pg index 304e9724fa..2257aa9a4b 100644 --- a/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_05.pg +++ b/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_05.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) ## DBsection(Parallel and perpendicular lines) @@ -11,17 +11,17 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,45 +29,45 @@ loadMacros( "PGcourse.pl", "parserPopUp.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Point"); - + $letterN=random(0,10,1); @letter = qw/ a b c d e f g h j k m/; $var = $letter[$letterN]; -# Adding the two letters as variables +# Adding the two letters as variables Context()->variables->add($var => "Real"); $answer = Point("($var, $var)"); - - + + ########################### # Main text - + BEGIN_PGML -If a horizontal line has the equation [`f(x) = [$var]`] and a vertical line has the equation [`x = [$var]`], what is the point of their intersection? +If a horizontal line has the equation [`f(x) = [$var]`] and a vertical line has the equation [`x = [$var]`], what is the point of their intersection? + +[____]{$answer} [@ helpLink("points") @]* -[____]{$answer} [@ AnswerFormatHelp("points") @]* - END_PGML - - + + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_07.pg b/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_07.pg index 3e7f2907ba..1cd99c6f3a 100644 --- a/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_07.pg +++ b/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_07.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) ## DBsection(Linear functions) @@ -11,17 +11,17 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,10 +29,10 @@ loadMacros( "PGcourse.pl", "parserPopUp.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup @@ -58,27 +58,27 @@ if ( $chooser == 0) { $popup = PopUp(["?","yes", "no"], "yes"); } - + ########################### # Main text - + BEGIN_PGML -Determine whether the following equation can be written as a linear function. +Determine whether the following equation can be written as a linear function. [`y = [$equation]`] -[____]{$popup} - +[____]{$popup} + END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_09.pg b/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_09.pg index 7ca2973114..ddda5b1460 100644 --- a/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_09.pg +++ b/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_09.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) ## DBsection(Linear functions) @@ -11,17 +11,17 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,10 +29,10 @@ loadMacros( "PGcourse.pl", "parserPopUp.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -64,27 +64,27 @@ if ( $chooser == 0) { $popup = PopUp(["?", "yes", "no"], "yes"); } - + ########################### # Main text - + BEGIN_PGML -Determine whether the following equation can be written as a linear function. +Determine whether the following equation can be written as a linear function. [` [$equation] = [$rightSide]`] -[____]{$popup} - +[____]{$popup} + END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_11.pg b/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_11.pg index ee60c4c0dd..69e84da5d9 100644 --- a/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_11.pg +++ b/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_11.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) ## DBsection(Linear functions) @@ -11,17 +11,17 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,10 +29,10 @@ loadMacros( "PGcourse.pl", "parserPopUp.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -64,27 +64,27 @@ if ( $chooser == 0) { $popup = PopUp(["?","yes", "no"], "no"); } - + ########################### # Main text - + BEGIN_PGML -Determine whether the following equation can be written as a linear function. +Determine whether the following equation can be written as a linear function. [` [$equation] = [$rightSide]`] -[____]{$popup} - +[____]{$popup} + END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_13.pg b/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_13.pg index ab7a92ccfc..6e92bde6b9 100644 --- a/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_13.pg +++ b/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_13.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) ## DBsection(Linear functions) @@ -11,17 +11,17 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,10 +29,10 @@ loadMacros( "PGcourse.pl", "parserPopUp.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -66,27 +66,27 @@ if ( $chooser == 0) { $popup = PopUp(["?","yes", "no"], "yes"); } - + ########################### # Main text - + BEGIN_PGML -Determine whether the following equation can be written as a linear function. +Determine whether the following equation can be written as a linear function. [` \displaystyle[$equation] = [$rightSide]*y`] -[____]{$popup} - +[____]{$popup} + END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_15.pg b/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_15.pg index 10c51d2c30..ad6b2d293f 100644 --- a/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_15.pg +++ b/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_15.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) ## DBsection(Linear functions) @@ -11,17 +11,17 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,10 +29,10 @@ loadMacros( "PGcourse.pl", "parserPopUp.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -67,27 +67,27 @@ if ( $chooser == 0) { $popup = PopUp(["?","increasing", "decreasing"], "increasing"); } - + ########################### # Main text - + BEGIN_PGML Determine whether the following function is increasing or decreasing. [` g(x) = [$equation]`] -[____]{$popup} - +[____]{$popup} + END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_17.pg b/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_17.pg index ad8743e031..1ffbea8e90 100644 --- a/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_17.pg +++ b/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_17.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) ## DBsection(Linear functions) @@ -11,17 +11,17 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,10 +29,10 @@ loadMacros( "PGcourse.pl", "parserPopUp.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -67,27 +67,27 @@ if ( $chooser == 0) { $popup = PopUp(["?","increasing", "decreasing"], "increasing"); } - + ########################### # Main text - + BEGIN_PGML -Determine whether the following function is increasing or decreasing. +Determine whether the following function is increasing or decreasing. [` g(x) = [$equation]`] -[____]{$popup} - +[____]{$popup} + END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_19.pg b/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_19.pg index dffcbf35f0..f11b0f52c7 100644 --- a/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_19.pg +++ b/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_19.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) ## DBsection(Linear functions) @@ -11,17 +11,17 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,10 +29,10 @@ loadMacros( "PGcourse.pl", "parserPopUp.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -68,27 +68,27 @@ if ( $chooser == 0) { $popup = PopUp(["?","increasing", "decreasing"], "increasing"); } - + ########################### # Main text - + BEGIN_PGML -Determine whether the following function is increasing or decreasing. +Determine whether the following function is increasing or decreasing. [` g(x) = [$equation]`] -[____]{$popup} - +[____]{$popup} + END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_21.pg b/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_21.pg index 7cfc680562..c34b68d523 100644 --- a/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_21.pg +++ b/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_21.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) ## DBsection(Linear functions) @@ -11,17 +11,17 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,10 +29,10 @@ loadMacros( "PGcourse.pl", "parserPopUp.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Fraction"); @@ -68,27 +68,27 @@ if ( $chooser == 0) { $popup = PopUp(["?","increasing", "decreasing"], "increasing"); } - + ########################### # Main text - + BEGIN_PGML -Determine whether the following function is increasing or decreasing. +Determine whether the following function is increasing or decreasing. [` g(x) = [$equation]`] -[____]{$popup} - +[____]{$popup} + END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_23.pg b/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_23.pg index 0f6c9bc30a..ac646986c4 100644 --- a/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_23.pg +++ b/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_23.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) ## DBsection(Linear functions) @@ -10,17 +10,17 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -28,10 +28,10 @@ loadMacros( "PGcourse.pl", "parserPopUp.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Fraction"); @@ -63,27 +63,27 @@ if ( $chooser == 0) { $popup = PopUp(["?","increasing", "decreasing"], "decreasing"); } - + ########################### # Main text - + BEGIN_PGML -Determine whether the following function is increasing or decreasing. +Determine whether the following function is increasing or decreasing. [` g(x) = [$equation]`] -[____]{$popup} - +[____]{$popup} + END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_25.pg b/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_25.pg index 004d06d2e7..903cebc50a 100644 --- a/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_25.pg +++ b/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_25.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) ## DBsection(Finding the slope) @@ -11,17 +11,17 @@ ## Author(Michael Sulock, Edited: Steven Wray, 7/22/17) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,10 +29,10 @@ loadMacros( "PGcourse.pl", "parserPopUp.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -48,30 +48,30 @@ $y2 = non_zero_random (-10,10,1); $ans = Formula("($y1-$y2)/($x1-$x2)"); - + ########################### # Main text - + BEGIN_PGML Find the slope of the line that passes through the following points -[` ([$x1],[$y1])`] and [` ([$x2],[$y2])`] +[` ([$x1],[$y1])`] and [` ([$x2],[$y2])`] + +[____]{$ans} [@ helpLink("numbers") @]* -[____]{$ans} [@ AnswerFormatHelp("numbers") @]* - END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - -COMMENT('MathObject version. Uses PGML.'); - + +COMMENT('MathObject version. Uses PGML.'); + ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_27.pg b/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_27.pg index f03a793d79..07ebb9fae9 100644 --- a/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_27.pg +++ b/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_27.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) ## DBsection(Finding the slope) @@ -11,17 +11,17 @@ ## Author(Michael Sulock, Edited: Steven Wray 7/22/17) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,10 +29,10 @@ loadMacros( "PGcourse.pl", "parserPopUp.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -48,32 +48,32 @@ $y2 = non_zero_random (-20,10,1); $ans = Formula("($y1-$y2)/($x1-$x2)"); - + ########################### # Main text - + BEGIN_PGML Find the slope of the line that passes through the following points -[` ([$x1],[$y1])`] and [` ([$x2],[$y2])`] +[` ([$x1],[$y1])`] and [` ([$x2],[$y2])`] + +[____]{$ans} [@ helpLink("numbers") @]* -[____]{$ans} [@ AnswerFormatHelp("numbers") @]* - END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_29.pg b/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_29.pg index 795bb59541..ce21f10c93 100644 --- a/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_29.pg +++ b/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_29.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) ## DBsection(Equations of lines: slope-intercept form) @@ -11,17 +11,17 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -30,10 +30,10 @@ loadMacros( "parserPopUp.pl", "parserAssignment.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric")->variables->are(x=>"Real"); @@ -50,29 +50,29 @@ $y2 = Formula($slope*$x2+$yint); $ans =Formula("$slope(x)+$yint"); - + ########################### # Main text - + BEGIN_PGML Find a linear equation satisfying the following [`f([$x1]) = [$y1]`] and [`f([$x2]) = [$y2]`] -[`f(x) = `][____]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`f(x) = `][____]{$ans} [@ helpLink("formulas") @]* + - END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_31.pg b/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_31.pg index c45048c5f7..df6da20a1e 100644 --- a/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_31.pg +++ b/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_31.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) ## DBsection(Equations of lines: slope-intercept form) @@ -11,17 +11,17 @@ ## Author(Michael Sulock, Edited: Steven Wray, 7/22/17) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -30,10 +30,10 @@ loadMacros( "parserPopUp.pl", "parserAssignment.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric")->variables->are(x=>"Real"); @@ -50,29 +50,29 @@ $y2 = Formula($slope*$x2+$yint); $ans =Formula("$slope(x)+$yint"); - + ########################### # Main text - + BEGIN_PGML Find a linear equation satisfying the following conditions: Passes through the points [`([$x1],[$y1])`] and [`([$x2],[$y2])`] -[`f(x) = `][____]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`f(x) = `][____]{$ans} [@ helpLink("formulas") @]* + - END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_33.pg b/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_33.pg index 6924860922..0d483a627a 100644 --- a/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_33.pg +++ b/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_33.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) ## DBsection(Equations of lines: slope-intercept form) @@ -11,17 +11,17 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -30,10 +30,10 @@ loadMacros( "parserPopUp.pl", "parserAssignment.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric")->variables->are(x=>"Real"); @@ -50,29 +50,29 @@ $y2 = Formula($slope*$x2+$yint); $ans =Formula("$slope(x)+$yint"); - + ########################### # Main text - + BEGIN_PGML Find a linear equation satisfying the following conditions: Passes through the points [`([$x1],[$y1])`] and [`([$x2],[$y2])`] -[`f(x) = `][____]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`f(x) = `][____]{$ans} [@ helpLink("formulas") @]* + - END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_35.pg b/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_35.pg index 4ef205b621..0f35200133 100644 --- a/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_35.pg +++ b/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_35.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) ## DBsection(Equations of lines: slope-intercept form) @@ -11,17 +11,17 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -30,10 +30,10 @@ loadMacros( "parserPopUp.pl", "parserAssignment.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -51,29 +51,29 @@ $ans =Formula("$slope(x)+$yint"); #[-\frac{[$yint]}{[$slope]}] - + ########################### # Main text - + BEGIN_PGML Find a linear equation satisfying the following conditions: x-Intercept at [`(\displaystyle[$xint], 0)`] and y-intercept at [`(0,[$yint])`] -[`f(x) = `][____]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`f(x) = `][____]{$ans} [@ helpLink("formulas") @]* + - END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_37.pg b/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_37.pg index d256a14f97..ef8fe1ac6a 100644 --- a/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_37.pg +++ b/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_37.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) ## DBsection(Parallel and perpendicular lines) @@ -11,17 +11,17 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,10 +29,10 @@ loadMacros( "PGcourse.pl", "parserPopUp.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -75,30 +75,30 @@ if ( $chooser == 0) { $popup = PopUp(["?","parallel", "perpendicular", "neither"], "neither"); } - + ########################### # Main text - + BEGIN_PGML -Determine whether the following equations are parallel, perpendicular, or neither. +Determine whether the following equations are parallel, perpendicular, or neither. [` [$equation1] = [$rightSide1]`] [` [$equation2] = [$rightSide2]`] -[____]{$popup} - +[____]{$popup} + END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_39.pg b/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_39.pg index f11ed495ab..056091faa1 100644 --- a/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_39.pg +++ b/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_39.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) ## DBsection(Parallel and perpendicular lines) @@ -11,17 +11,17 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,10 +29,10 @@ loadMacros( "PGcourse.pl", "parserPopUp.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -56,7 +56,7 @@ do {$f = random(2,9,1);} until ($f*$mult != $c); # Creates 4 equations and the corresponding correct answer # in a dropdown menu if ( $chooser == 0) { - + $e= $b*$mult; $d = $a*$mult; @@ -68,37 +68,37 @@ if ( $chooser == 0) { $popup = PopUp(["?","parallel", "perpendicular", "neither"], "perpendicular"); } else { - + $e = $a+1; $d = $b+$mult; $popup = PopUp(["?","parallel", "perpendicular", "neither"], "neither"); -} - +} + ########################### # Main text - + BEGIN_PGML -Determine whether the following equations are parallel, perpendicular, or neither. +Determine whether the following equations are parallel, perpendicular, or neither. [` [$a]y-[$b]x = [$c]`] [` [$d]y = [$e]x+[$f]`] -[____]{$popup} - +[____]{$popup} + END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_41.pg b/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_41.pg index 7e026c63d1..44762c68c5 100644 --- a/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_41.pg +++ b/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_41.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) ## DBsection(Graphs of lines) @@ -11,17 +11,17 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,10 +29,10 @@ loadMacros( "PGcourse.pl", "parserPopUp.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Point"); @@ -49,30 +49,30 @@ $yintP = Point(0, $yint); $xintP = Point($xint, 0); - + ########################### # Main text - + BEGIN_PGML Find the x and y intercepts of the following equation [`h(x) = [$slope]x+[$yint]`] -x intercept is [______]{$xintP} [@ AnswerFormatHelp("points") @]* +x intercept is [______]{$xintP} [@ helpLink("points") @]* + +y intercept is [______]{$yintP} [@ helpLink("points") @]* -y intercept is [______]{$yintP} [@ AnswerFormatHelp("points") @]* - END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_43.pg b/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_43.pg index 742bf4e1bd..1b1a058d01 100644 --- a/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_43.pg +++ b/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_43.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) ## DBsection(Graphs of lines) @@ -11,17 +11,17 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,10 +29,10 @@ loadMacros( "PGcourse.pl", "parserPopUp.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Point"); @@ -49,30 +49,30 @@ $yintP = Point(0, $yint); $xintP = Point($xint, 0); - + ########################### # Main text - + BEGIN_PGML Find the x and y intercepts of the following equation [`g(x) = [$slope]x+[$yint]`] -x intercept is [______]{$xintP} [@ AnswerFormatHelp("points") @]* +x intercept is [______]{$xintP} [@ helpLink("points") @]* + +y intercept is [______]{$yintP} [@ helpLink("points") @]* -y intercept is [______]{$yintP} [@ AnswerFormatHelp("points") @]* - END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_45.pg b/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_45.pg index d90202f809..f61d4f123b 100644 --- a/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_45.pg +++ b/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_45.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) ## DBsection(Graphs of lines) @@ -11,17 +11,17 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,10 +29,10 @@ loadMacros( "PGcourse.pl", "parserPopUp.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Point"); @@ -51,30 +51,30 @@ $yintP = Point(0, $yint); $xintP = Point($xint, 0); - + ########################### # Main text - + BEGIN_PGML Find the x and y intercepts of the following equation [`[$coeffX]x+[$coeffY]y = [$rightSide]`] -x intercept is [______]{$xintP} [@ AnswerFormatHelp("points") @]* +x intercept is [______]{$xintP} [@ helpLink("points") @]* + +y intercept is [______]{$yintP} [@ helpLink("points") @]* -y intercept is [______]{$yintP} [@ AnswerFormatHelp("points") @]* - END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_53.pg b/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_53.pg index a61ee02a9d..49f5f45425 100644 --- a/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_53.pg +++ b/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_53.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) ## DBsection(Parallel and perpendicular lines) @@ -11,17 +11,17 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,10 +29,10 @@ loadMacros( "PGcourse.pl", "parserPopUp.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -49,26 +49,26 @@ $ansYint = ($yCord-$slope*($xCord)); $ans = Formula("$slope(x)+$ansYint")-> reduce; - + ########################### # Main text - + BEGIN_PGML Write an equation for the line parallel to [`g(x) = [$slope]x+[$intercept]`] and passing through the point [`([$xCord], [$yCord])`]. - -[`P(x) = `] [______]{$ans} [@ AnswerFormatHelp("formulas") @]* + +[`P(x) = `] [______]{$ans} [@ helpLink("formulas") @]* END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_55.pg b/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_55.pg index 2a23d616d6..e83e3c33d9 100644 --- a/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_55.pg +++ b/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_55.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) ## DBsection(Parallel and perpendicular lines) @@ -11,17 +11,17 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,10 +29,10 @@ loadMacros( "PGcourse.pl", "parserPopUp.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup @@ -51,23 +51,23 @@ $ans = Formula("$ansSlope(x)+$ansYint")->reduce; ########################### # Main text - + BEGIN_PGML Write an equation for the line perpendicular to [`g(x) = [$slope]x+[$intercept]`] and passing through the point [`([$xCord], [$yCord])`] -[`P(x) = `] [______]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`P(x) = `] [______]{$ans} [@ helpLink("formulas") @]* END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_57.pg b/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_57.pg index b91ded6bfc..81ffe82c47 100644 --- a/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_57.pg +++ b/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_57.pg @@ -1,7 +1,7 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - + ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) ## DBsection(Finding the slope) @@ -10,33 +10,33 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", "PGcourse.pl", "contextLimitedPoint.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup -# +# $limit = 5; @@ -52,31 +52,31 @@ texsize=>300, ); -add_functions($gr, "($slope(x)+$intercept) for x in <-$limit,$limit>" . +add_functions($gr, "($slope(x)+$intercept) for x in <-$limit,$limit>" . " using color:blue and weight:2"); ########################### # Main text - + BEGIN_PGML -Find the slope of the graphed line. +Find the slope of the graphed line. >> [@ image(insertGraph($gr), tex_size=>16000, width=>400, height=>400), @]* << -The slope is [______]{$slope} [@ AnswerFormatHelp("numbers") @]* +The slope is [______]{$slope} [@ helpLink("numbers") @]* END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_59.pg b/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_59.pg index c9e0692b28..0d110d8eb8 100644 --- a/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_59.pg +++ b/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_59.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) ## DBsection(Equations of lines: slope-intercept form) @@ -11,33 +11,33 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", "PGcourse.pl", "contextLimitedPoint.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup -# +# $limit = 5; @@ -53,7 +53,7 @@ texsize=>300, ); -add_functions($gr, "($slope(x)+$intercept) for x in <-$limit,$limit>" . +add_functions($gr, "($slope(x)+$intercept) for x in <-$limit,$limit>" . " using color:blue and weight:2"); Context("Numeric"); @@ -62,23 +62,23 @@ $ans = Formula(" $slope(x) +$intercept")->reduce; ########################### # Main text - + BEGIN_PGML -Find the equation of the graphed line. +Find the equation of the graphed line. >> [@ image(insertGraph($gr), tex_size=>16000, width=>400, height=>400), @]* << -[`f(x) = `] [______]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`f(x) = `] [______]{$ans} [@ helpLink("formulas") @]* END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_61.pg b/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_61.pg index b8285a89ef..b5acfc6e20 100644 --- a/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_61.pg +++ b/Pending/RRCC/College_Algebra/MAT121/4.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_4_1_61.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Linear equations and functions) ## DBsection(Equations of lines: slope-intercept form) @@ -11,33 +11,33 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", "PGcourse.pl", "contextLimitedPoint.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup -# +# $limit = 5; @@ -53,7 +53,7 @@ texsize=>300, ); -add_functions($gr, "($slope(x)+$intercept) for x in <-$limit,$limit>" . +add_functions($gr, "($slope(x)+$intercept) for x in <-$limit,$limit>" . " using color:blue and weight:2"); Context("Numeric"); @@ -62,23 +62,23 @@ $ans = Formula(" $slope(x) +$intercept")->reduce; ########################### # Main text - + BEGIN_PGML -Find the equation of the graphed line. +Find the equation of the graphed line. >> [@ image(insertGraph($gr), tex_size=>16000, width=>400, height=>400), @]* << -[`f(x) = `] [______]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`f(x) = `] [______]{$ans} [@ helpLink("numbers") @]* END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_10.pg b/Pending/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_10.pg index d2b73b77e6..970a660bae 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_10.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_10.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -55,9 +55,9 @@ $ans3=Point("($h,$k)"); BEGIN_PGML Rewrite the quadratic function [`f(x)=[$f]`] in standard form, [`f(x)=a(x-h)^2+k`], and give the vertex. -[` f(x) = `][_]{$a}[`(x-`][_]{$ans1}[`)^2+`] [_]{$ans2} [@ AnswerFormatHelp("numbers") @]* +[` f(x) = `][_]{$a}[`(x-`][_]{$ans1}[`)^2+`] [_]{$ans2} [@ helpLink("numbers") @]* -+ Vertex: [_________]{$ans3} [@ AnswerFormatHelp("points") @]* ++ Vertex: [_________]{$ans3} [@ helpLink("points") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_14.pg b/Pending/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_14.pg index 4a5919c63f..3da9b3b1b7 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_14.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_14.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", @@ -62,14 +62,14 @@ Determine whether \( \displaystyle f(x)= $f \) has a minimum or maximum value. F $BR $BR \( f(x) \) has a : -$BR +$BR \{ $radio->buttons() \} $BR $BR -The value of the minimum or maximum is: \{ ans_rule(20) \} \{ AnswerFormatHelp("numbers") \} +The value of the minimum or maximum is: \{ ans_rule(20) \} \{ helpLink("numbers") \} $BR $BR -The axis of symmetry for \( f(x) \) is given by \( x=\) \{ ans_rule(20) \} \{ AnswerFormatHelp("numbers") \} +The axis of symmetry for \( f(x) \) is given by \( x=\) \{ ans_rule(20) \} \{ helpLink("numbers") \} $BR $BR END_TEXT diff --git a/Pending/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_16.pg b/Pending/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_16.pg index dcb1e4869c..350b15b903 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_16.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_16.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", @@ -64,14 +64,14 @@ Determine whether \( \displaystyle f(x)= $f \) has a minimum or maximum value. F $BR $BR \( f(x) \) has a : -$BR +$BR \{ $radio->buttons() \} $BR $BR -The value of the minimum or maximum is: \{ ans_rule(20) \} \{ AnswerFormatHelp("numbers") \} +The value of the minimum or maximum is: \{ ans_rule(20) \} \{ helpLink("numbers") \} $BR $BR -The axis of symmetry for \( f(x) \) is given by \( x=\) \{ ans_rule(20) \} \{ AnswerFormatHelp("numbers") \} +The axis of symmetry for \( f(x) \) is given by \( x=\) \{ ans_rule(20) \} \{ helpLink("numbers") \} $BR $BR END_TEXT diff --git a/Pending/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_21.pg b/Pending/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_21.pg index 888787704b..f3de87de23 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_21.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_21.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,9 +51,9 @@ BEGIN_PGML Determine the domain and range of [` f(x)= [$g][$f] `]. Enter your solution in interval notation. -+ Domain: [_______________]{$ans1} [@ AnswerFormatHelp("intervals") @]* ++ Domain: [_______________]{$ans1} [@ helpLink("intervals") @]* -+ Range: [_______________]{$ans2} [@ AnswerFormatHelp("intervals") @]* ++ Range: [_______________]{$ans2} [@ helpLink("intervals") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_23.pg b/Pending/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_23.pg index 35a667c31d..a0935da5ea 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_23.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_23.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -55,9 +55,9 @@ BEGIN_PGML Determine the domain and range of [` f(x)=[$f] `]. Enter your solution in interval notation. -+ Domain: [_______________]{$ans1} [@ AnswerFormatHelp("intervals") @]* ++ Domain: [_______________]{$ans1} [@ helpLink("intervals") @]* -+ Range: [_______________]{$ans2} [@ AnswerFormatHelp("intervals") @]* ++ Range: [_______________]{$ans2} [@ helpLink("intervals") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_27.pg b/Pending/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_27.pg index b674698151..5f21f67b90 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_27.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_27.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -61,7 +61,7 @@ $BR $BR \( f(x) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR $ECENTER diff --git a/Pending/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_29.pg b/Pending/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_29.pg index 0a94394b0c..fb849ba8a1 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_29.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_29.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -62,7 +62,7 @@ $BR $BR \( f(x) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR $ECENTER diff --git a/Pending/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_35.pg b/Pending/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_35.pg index 1e6f8a23ae..c83c34069e 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_35.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_35.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -59,11 +59,11 @@ $den = 2*$a; BEGIN_PGML For the quadratic equation [`f(x)=[$f]`], find the vertex, the axis of symmetry, and the x-intercept(s). Express the vertex as a coordinate pair and intercepts as a comma separated list of points if there is more than one. -+ Vertex: [_______________]{$vertex} [@ AnswerFormatHelp("points") @]* ++ Vertex: [_______________]{$vertex} [@ helpLink("points") @]* -+ Axis, x = [_______________]{$vx} [@ AnswerFormatHelp("numbers") @]* ++ Axis, x = [_______________]{$vx} [@ helpLink("numbers") @]* -+ [`x`]-Intercept(s): [___________________________]{"((-$b - sqrt($sqrt))/($den),0),((-$b + sqrt($sqrt))/($den),0)"} [@ AnswerFormatHelp("points") @]* ++ [`x`]-Intercept(s): [___________________________]{"((-$b - sqrt($sqrt))/($den),0),((-$b + sqrt($sqrt))/($den),0)"} [@ helpLink("points") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_39.pg b/Pending/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_39.pg index d56e04e843..9040306488 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_39.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_39.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -59,11 +59,11 @@ $den = 2*$a; BEGIN_PGML For the quadratic equation [`f(x)=[$f]`], find the vertex, the axis of symmetry, and the x-intercept(s). Express the vertex as a coordinate pair and intercepts as a comma separated list of points if there is more than one. -+ Vertex: [_______________]{$vertex} [@ AnswerFormatHelp("points") @]* ++ Vertex: [_______________]{$vertex} [@ helpLink("points") @]* -+ Axis, x = [_______________]{$vx} [@ AnswerFormatHelp("numbers") @]* ++ Axis, x = [_______________]{$vx} [@ helpLink("numbers") @]* -+ [`x`]-Intercept(s): [_______________________________]{"((-$b+sqrt($sqrt))/$den,0),((-$b-sqrt($sqrt))/$den,0)"} [@ AnswerFormatHelp("points") @]* ++ [`x`]-Intercept(s): [_______________________________]{"((-$b+sqrt($sqrt))/$den,0),((-$b-sqrt($sqrt))/$den,0)"} [@ helpLink("points") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_41.pg b/Pending/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_41.pg index a3e6f808a3..3edfcfb7e9 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_41.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_41.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -58,7 +58,7 @@ Write the equation for the graphed function. $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>400,height=>400,tex_size=>800 ) \} $BR $BR @@ -68,7 +68,7 @@ $BR $BR $BR \( f(x) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR $ECENTER diff --git a/Pending/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_43.pg b/Pending/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_43.pg index 8d3299ad76..e62eff1023 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_43.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_43.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -58,7 +58,7 @@ Write the equation for the graphed function. $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>400,height=>400,tex_size=>800 ) \} $BR $BR @@ -68,7 +68,7 @@ $BR $BR $BR \( f(x) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR $ECENTER diff --git a/Pending/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_56.pg b/Pending/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_56.pg index f4dd97a026..f25732b0da 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_56.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_56.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -53,11 +53,11 @@ $d = Compute("(-infinity,infinity)"); # Main text BEGIN_PGML -Find the domain and range for a quadratic function with the vertex [`([$vx],[$vy])`] if the graph opens [`[$concavity]`]. +Find the domain and range for a quadratic function with the vertex [`([$vx],[$vy])`] if the graph opens [`[$concavity]`]. -+ Domain: [_______________]{$d} [@ AnswerFormatHelp("intervals") @]* ++ Domain: [_______________]{$d} [@ helpLink("intervals") @]* -+ Range: [_______________]{$r} [@ AnswerFormatHelp("intervals") @]* ++ Range: [_______________]{$r} [@ helpLink("intervals") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_6.pg b/Pending/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_6.pg index eef90cbfc8..94b8c94893 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_6.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_6.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -55,9 +55,9 @@ $ans3=Point("($h,$k)"); BEGIN_PGML Rewrite the quadratic function [`f(x)=[$f]`] in standard form, [`f(x)=a(x-h)^2+k`], and give the vertex. -[` f(x) = `][_]{$a}[`(x-`][_]{$ans1}[`)^2+`] [_]{$ans2} [@ AnswerFormatHelp("numbers") @]* +[` f(x) = `][_]{$a}[`(x-`][_]{$ans1}[`)^2+`] [_]{$ans2} [@ helpLink("numbers") @]* -+ Vertex: [_________]{$ans3} [@ AnswerFormatHelp("points") @]* ++ Vertex: [_________]{$ans3} [@ helpLink("points") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_67.pg b/Pending/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_67.pg index c3accb145b..59ab6ee7e2 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_67.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_67.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -46,11 +46,11 @@ $ans = List( $x, $y ); # Main text BEGIN_PGML - + Find the dimensions of a rectangular corral split into 2 pens of the same size producing the greatest possible enclosed area given [`[$a]`] feet of fencing. Enter the dimensions as a comma separated list. ->>[_______________]{$ans} [@ AnswerFormatHelp("numbers") @]*<< +>>[_______________]{$ans} [@ helpLink("numbers") @]*<< END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_73.pg b/Pending/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_73.pg index e414dfc0b5..f1c06f64f3 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_73.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.1/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_1_73.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -49,7 +49,7 @@ $t=$v0/$g; BEGIN_PGML A ball is thrown in the air from the top of a building. Its height, in meters above ground, as a function of time, in seconds, is given by [`h(t)=[$h]`]. How long does it take to reach maximum height? -+ [`t=`] [_______________]{$t} [@ AnswerFormatHelp("numbers") @]* ++ [`t=`] [_______________]{$t} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_12.pg b/Pending/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_12.pg index ed9d7da0f3..001cfab717 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_12.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_12.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -53,9 +53,9 @@ $ans2=Compute($b); BEGIN_PGML Find the degree and leading coefficient for [`y=[$f]`]. -+ Degree: [___]{$ans1} [@ AnswerFormatHelp("numbers") @]* ++ Degree: [___]{$ans1} [@ helpLink("numbers") @]* -+ Leading Coefficient: [____]{$ans2} [@ AnswerFormatHelp("numbers") @]* ++ Leading Coefficient: [____]{$ans2} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_13.pg b/Pending/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_13.pg index 6ec6f941a7..107180df56 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_13.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_13.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -49,9 +49,9 @@ $ans2=Compute($a); BEGIN_PGML Find the degree and leading coefficient for [`y=[$f]`]. -+ Degree: [___]{$ans1} [@ AnswerFormatHelp("numbers") @]* ++ Degree: [___]{$ans1} [@ helpLink("numbers") @]* -+ Leading Coefficient: [____]{$ans2} [@ AnswerFormatHelp("numbers") @]* ++ Leading Coefficient: [____]{$ans2} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_14.pg b/Pending/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_14.pg index 32b8e22df5..ffa47d6264 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_14.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_14.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -51,9 +51,9 @@ $ans2=Compute($a); BEGIN_PGML Find the degree and leading coefficient for [`y=[$f]`]. -+ Degree: [___]{$ans1} [@ AnswerFormatHelp("numbers") @]* ++ Degree: [___]{$ans1} [@ helpLink("numbers") @]* -+ Leading Coefficient: [____]{$ans2} [@ AnswerFormatHelp("numbers") @]* ++ Leading Coefficient: [____]{$ans2} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_17.pg b/Pending/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_17.pg index b6adfec837..8a3b64be64 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_17.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_17.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -46,9 +46,9 @@ $f=Formula("$a*x^4")->reduce; BEGIN_PGML Determine the end behavior for [`y=[$f]`]. -+ As [`x \to -\infty `], [`y \to `] [___]{"infinity"} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to -\infty `], [`y \to `] [___]{"infinity"} [@ helpLink("numbers") @]* -+ As [`x \to \infty `], [`y \to `] [____]{"infinity"} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to \infty `], [`y \to `] [____]{"infinity"} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_20.pg b/Pending/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_20.pg index 5585364ace..69ea7c6c4d 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_20.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_20.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -50,9 +50,9 @@ $f=$g+$h+$j; BEGIN_PGML Determine the end behavior for [`y=[$f]`]. -+ As [`x \to -\infty `], [`y \to `] [___]{"infinity"} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to -\infty `], [`y \to `] [___]{"infinity"} [@ helpLink("numbers") @]* -+ As [`x \to \infty `], [`y \to `] [____]{"-infinity"} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to \infty `], [`y \to `] [____]{"-infinity"} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_22.pg b/Pending/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_22.pg index 2adca94080..b91be11691 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_22.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_22.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -51,9 +51,9 @@ $f=$g+$h+$j; BEGIN_PGML Determine the end behavior for [`y=[$f]`]. -+ As [`x \to -\infty `], [`y \to `] [___]{"infinity"} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to -\infty `], [`y \to `] [___]{"infinity"} [@ helpLink("numbers") @]* -+ As [`x \to \infty `], [`y \to `] [____]{"-infinity"} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to \infty `], [`y \to `] [____]{"-infinity"} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_23.pg b/Pending/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_23.pg index 1638fd7196..08895dc68c 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_23.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_23.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -51,9 +51,9 @@ $f=$g*($h+$j); BEGIN_PGML Determine the end behavior for [`y=[$f]`]. -+ As [`x \to -\infty `], [`y \to `] [___]{"-infinity"} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to -\infty `], [`y \to `] [___]{"-infinity"} [@ helpLink("numbers") @]* -+ As [`x \to \infty `], [`y \to `] [____]{"infinity"} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to \infty `], [`y \to `] [____]{"infinity"} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_24.pg b/Pending/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_24.pg index 19950eb383..087b1e1f91 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_24.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_24.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -48,9 +48,9 @@ $f= Formula("(x + $b)^2") -> reduce; BEGIN_PGML Determine the end behavior for [`y=[$f]`]. -+ As [`x \to -\infty `], [`y \to `] [___]{"infinity"} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to -\infty `], [`y \to `] [___]{"infinity"} [@ helpLink("numbers") @]* -+ As [`x \to \infty `], [`y \to `] [____]{"infinity"} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to \infty `], [`y \to `] [____]{"infinity"} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_25.pg b/Pending/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_25.pg index 6d47b5e317..94baec7605 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_25.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_25.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -54,9 +54,9 @@ $xint = List( Point("($b,0)"),Point("($c,0)"),Point("($d,0)")); BEGIN_PGML Find the intercepts of [`f(x)=[$f]`]. Enter intercepts as points. If you have more than one point, enter them as a comma separated list. -+ [`y`]-intercept: [_________]{$yint} [@ AnswerFormatHelp("points") @]* ++ [`y`]-intercept: [_________]{$yint} [@ helpLink("points") @]* -+ [`x`]-intercept(s) [_________________]{$xint} [@ AnswerFormatHelp("points") @]* ++ [`x`]-intercept(s) [_________________]{$xint} [@ helpLink("points") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_28.pg b/Pending/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_28.pg index 56baa6fa5f..4c810682a0 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_28.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_28.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -52,9 +52,9 @@ $xint = List( Point("(-$a,0)")); BEGIN_PGML Find the intercepts of [`f(x)=[$f]`]. Enter intercepts as points. If you have more than one point, enter them as a comma separated list. -+ [`y`]-intercept: [___]{$yint} [@ AnswerFormatHelp("points") @]* ++ [`y`]-intercept: [___]{$yint} [@ helpLink("points") @]* -+ [`x`]-intercept(s) [____]{$xint} [@ AnswerFormatHelp("points") @]* ++ [`x`]-intercept(s) [____]{$xint} [@ helpLink("points") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_31.pg b/Pending/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_31.pg index 430245dd20..f676a9e8bf 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_31.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_31.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "PGgraphmacros.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -75,7 +75,7 @@ Determine the least possible degree of the polynomial function shown. $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>300,height=>300,tex_size=>800 ) \} $BR (Click on graph to enlarge) diff --git a/Pending/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_33.pg b/Pending/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_33.pg index f43ce9f0a1..9ba66d4504 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_33.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_33.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "PGgraphmacros.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -75,7 +75,7 @@ Determine the least possible degree of the polynomial function shown. $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>300,height=>300,tex_size=>800 ) \} $BR (Click on graph to enlarge) diff --git a/Pending/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_34.pg b/Pending/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_34.pg index 8806144117..efe32fc026 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_34.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_34.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "PGgraphmacros.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -78,7 +78,7 @@ Determine the least possible degree of the polynomial function shown. $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>200,height=>200,tex_size=>800 ) \} $BR (Click on graph to enlarge) diff --git a/Pending/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_36.pg b/Pending/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_36.pg index a349bcf96a..98a346bd09 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_36.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_36.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "PGgraphmacros.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -78,7 +78,7 @@ Determine the least possible degree of the polynomial function shown. $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>200,height=>200,tex_size=>800 ) \} $BR (Click on graph to enlarge) diff --git a/Pending/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_37.pg b/Pending/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_37.pg index 59476fcc98..840417d2c3 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_37.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_37.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "PGgraphmacros.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -79,7 +79,7 @@ Determine the least possible degree of the polynomial function shown. $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>200,height=>200,tex_size=>800 ) \} $BR (Click on graph to enlarge) diff --git a/Pending/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_51.pg b/Pending/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_51.pg index b5ef8b7dc3..4edc5ed302 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_51.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_2_51.pg @@ -21,7 +21,7 @@ loadMacros( "AppletObjects.pl", "unionTables.pl", "parserNumberWithUnits.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGcourse.pl", "contextLimitedPoint.pl", @@ -43,7 +43,7 @@ HEADER_TEXT(MODES( )); $desmos_div = MODES( - HTML=>qq(
), + HTML=>qq(
), TeX=>'Interactive graph best viewed online' ); @@ -75,11 +75,11 @@ BEGIN_PGML For [` f(x) = [$f] `], Determine the [`x`]-intercepts and the end behavior. Enter intercepts as a comma separated list of points. The Desmos graphing tool below may help investigate the function. -[`x`]-Intercepts : [__________]{$xint} [@ AnswerFormatHelp("points") @]* +[`x`]-Intercepts : [__________]{$xint} [@ helpLink("points") @]* -+ As [`x \to -\infty `], [`f \to `] [___]{"infinity"} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to -\infty `], [`f \to `] [___]{"infinity"} [@ helpLink("numbers") @]* -+ As [`x \to \infty `], [`f \to `] [____]{"infinity"} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to \infty `], [`f \to `] [____]{"infinity"} [@ helpLink("numbers") @]* END_PGML @@ -108,10 +108,10 @@ TEXT( MODES(TeX=>'', HTML=><qq(
), + HTML=>qq(
), TeX=>'Interactive graph best viewed online' ); @@ -66,13 +66,13 @@ Context("Numeric"); BEGIN_PGML For [` f(x) = [$f] `], Determine the [`x`]-intercepts -and the end behavior. Enter intercepts as a comma separated list of points. The Desmos graphing tool below may help investigate the function. +and the end behavior. Enter intercepts as a comma separated list of points. The Desmos graphing tool below may help investigate the function. -[`x`]-Intercepts : [__________]{$xint} [@ AnswerFormatHelp("points") @]* +[`x`]-Intercepts : [__________]{$xint} [@ helpLink("points") @]* -+ As [`x \to -\infty `], [`f \to `] [___]{"infinity"} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to -\infty `], [`f \to `] [___]{"infinity"} [@ helpLink("numbers") @]* -+ As [`x \to \infty `], [`f \to `] [____]{"infinity"} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to \infty `], [`f \to `] [____]{"infinity"} [@ helpLink("numbers") @]* END_PGML @@ -101,10 +101,10 @@ TEXT( MODES(TeX=>'', HTML=><qq(
), + HTML=>qq(
), TeX=>'Interactive graph best viewed online' ); @@ -72,11 +72,11 @@ BEGIN_PGML For [` f(x) = [$f] `], Determine the [`x`]-intercepts and the end behavior. Enter intercepts as a comma separated list of points. The Desmos graphing tool below may help investigate the function. -[`x`]-Intercepts : [_____________________________]{$xint} [@ AnswerFormatHelp("points") @]* +[`x`]-Intercepts : [_____________________________]{$xint} [@ helpLink("points") @]* -+ As [`x \to -\infty `], [`f \to `] [___]{"-infinity"} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to -\infty `], [`f \to `] [___]{"-infinity"} [@ helpLink("numbers") @]* -+ As [`x \to \infty `], [`f \to `] [____]{"-infinity"} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to \infty `], [`f \to `] [____]{"-infinity"} [@ helpLink("numbers") @]* END_PGML @@ -104,10 +104,10 @@ TEXT( MODES(TeX=>'', HTML=><qq(
), + HTML=>qq(
), TeX=>'Interactive graph best viewed online' ); @@ -64,13 +64,13 @@ Context("Numeric"); BEGIN_PGML For [` f(x) = [$f] `], Determine the [`x`]-intercepts -and the end behavior. Enter intercepts as a comma separated list of points. The Desmos graphing tool below may help investigate the function. +and the end behavior. Enter intercepts as a comma separated list of points. The Desmos graphing tool below may help investigate the function. -[`x`]-Intercepts : [__________]{$xint} [@ AnswerFormatHelp("points") @]* +[`x`]-Intercepts : [__________]{$xint} [@ helpLink("points") @]* -+ As [`x \to -\infty `], [`f \to `] [___]{"-infinity"} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to -\infty `], [`f \to `] [___]{"-infinity"} [@ helpLink("numbers") @]* -+ As [`x \to \infty `], [`f \to `] [____]{"infinity"} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to \infty `], [`f \to `] [____]{"infinity"} [@ helpLink("numbers") @]* END_PGML @@ -98,10 +98,10 @@ TEXT( MODES(TeX=>'', HTML=><qq(
), + HTML=>qq(
), TeX=>'Interactive graph best viewed online' ); @@ -72,11 +72,11 @@ BEGIN_PGML For [` f(x) = [$f] `], Determine the [`x`]-intercepts and the end behavior. Enter intercepts as a comma separated list of points. The Desmos graphing tool below may help investigate the function. -[`x`]-Intercepts : [__________]{$xint} [@ AnswerFormatHelp("points") @]* +[`x`]-Intercepts : [__________]{$xint} [@ helpLink("points") @]* -+ As [`x \to -\infty `], [`f \to `] [___]{"infinity"} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to -\infty `], [`f \to `] [___]{"infinity"} [@ helpLink("numbers") @]* -+ As [`x \to \infty `], [`f \to `] [____]{"infinity"} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to \infty `], [`f \to `] [____]{"infinity"} [@ helpLink("numbers") @]* END_PGML @@ -104,10 +104,10 @@ TEXT( MODES(TeX=>'', HTML=><with( my ( $correct, $student, $self ) = @_; my ( $stu1, $stu2, $stu3, $stu4) = @{$student}; my ( $a1, $a2, $a3, $a4) = @{$correct}; - if ( + if ( ( ($stu1 == $a1 && $stu2 == $a2) && ($stu3 == $a3 && $stu4 == $a4) || ( $stu1 == $a3 && $stu2 == $a4) && ($stu3 == $a1 && $stu4 == $a2 ) ) ) -{return [1,1,1,1];} +{return [1,1,1,1];} -else { return [0,0,0,0]; } +else { return [0,0,0,0]; } } ); @@ -68,13 +68,13 @@ else { return [0,0,0,0]; } # Main text BEGIN_PGML -Find the zeros and give the multiplicity of each for [`f(x)=[$f]`]. +Find the zeros and give the multiplicity of each for [`f(x)=[$f]`]. Note: to get the problem correct, you must get all answers correct. -+ One zero is [`x=`][____]{$multians} and its multiplicity is: [____]{$multians} [@ AnswerFormatHelp("numbers") @]* ++ One zero is [`x=`][____]{$multians} and its multiplicity is: [____]{$multians} [@ helpLink("numbers") @]* -+ The other zero is [`x=`][____]{$multians} and its multiplicity is: [____]{$multians} [@ AnswerFormatHelp("numbers") @]* ++ The other zero is [`x=`][____]{$multians} and its multiplicity is: [____]{$multians} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_32.pg b/Pending/RRCC/College_Algebra/MAT121/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_32.pg index c28bed59e7..a99bfa88a1 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_32.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_32.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserMultiAnswer.pl", "PGML.pl", @@ -55,7 +55,7 @@ $multians = MultiAnswer($a, $m2, 0, $m1, $b, $m3)->with( my ( $correct, $student, $self ) = @_; my ( $stu1, $stu2, $stu3, $stu4, $stu5, $stu6) = @{$student}; my ( $a1, $a2, $a3, $a4, $a5, $a6) = @{$correct}; - if ( + if ( ( (($stu1 == $a1 && $stu2 == $a2 ) && ($stu3 == $a3 && $stu4 == $a4) && ($stu5 == $a5 && $stu6 == $a6)) || ( ($stu1 == $a3 && $stu2 == $a4) && ($stu3 == $a1 && $stu4 == $a2 ) && ($stu5 == $a5 && $stu6 == $a6)) || ( ($stu1 == $a3 && $stu2 == $a4) && ($stu3 == $a5 && $stu4 == $a6 ) && ($stu5 == $a1 && $stu6 == $a2)) || @@ -64,9 +64,9 @@ $multians = MultiAnswer($a, $m2, 0, $m1, $b, $m3)->with( (($stu1 == $a5 && $stu2 == $a6 ) && ($stu3 == $a1 && $stu4 == $a2) && ($stu5 == $a3 && $stu6 == $a4)) ) ) -{return [1,1,1,1,1,1];} +{return [1,1,1,1,1,1];} -else { return [0,0,0,0,0,0]; } +else { return [0,0,0,0,0,0]; } } ); @@ -75,17 +75,17 @@ else { return [0,0,0,0,0,0]; } # Main text BEGIN_PGML -Find the zeros and give the multiplicity of each for [`f(x)=[$f]`]. +Find the zeros and give the multiplicity of each for [`f(x)=[$f]`]. Note: to be counted as correct, you must get all answers correct. -+ One zero is [`x=`][____]{$multians} and has a multiplicity of [____]{$multians} [@ AnswerFormatHelp("numbers") @]* ++ One zero is [`x=`][____]{$multians} and has a multiplicity of [____]{$multians} [@ helpLink("numbers") @]* -+ Another zero is [`x=`][____]{$multians} and has a multiplicity of: [____]{$multians} [@ AnswerFormatHelp("numbers") @]* ++ Another zero is [`x=`][____]{$multians} and has a multiplicity of: [____]{$multians} [@ helpLink("numbers") @]* -+ The last zero is [`x=`][____]{$multians} and has a multiplicity of: [____]{$multians} [@ AnswerFormatHelp("numbers") @]* ++ The last zero is [`x=`][____]{$multians} and has a multiplicity of: [____]{$multians} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_37.pg b/Pending/RRCC/College_Algebra/MAT121/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_37.pg index 6d935b7124..f2cd89fb1c 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_37.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_37.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserMultiAnswer.pl", "PGML.pl", @@ -49,7 +49,7 @@ $multians = MultiAnswer(0, $m, $a, 1, $b, 1)->with( my ( $correct, $student, $self ) = @_; my ( $stu1, $stu2, $stu3, $stu4, $stu5, $stu6) = @{$student}; my ( $a1, $a2, $a3, $a4, $a5, $a6) = @{$correct}; - if ( + if ( ( (($stu1 == $a1 && $stu2 == $a2 ) && ($stu3 == $a3 && $stu4 == $a4) && ($stu5 == $a5 && $stu6 == $a6)) || ( ($stu1 == $a3 && $stu2 == $a4) && ($stu3 == $a1 && $stu4 == $a2 ) && ($stu5 == $a5 && $stu6 == $a6)) || ( ($stu1 == $a3 && $stu2 == $a4) && ($stu3 == $a5 && $stu4 == $a6 ) && ($stu5 == $a1 && $stu6 == $a2)) || @@ -57,9 +57,9 @@ $multians = MultiAnswer(0, $m, $a, 1, $b, 1)->with( (($stu1 == $a5 && $stu2 == $a6 ) && ($stu3 == $a3 && $stu4 == $a4) && ($stu5 == $a1 && $stu6 == $a2)) || (($stu1 == $a5 && $stu2 == $a6 ) && ($stu3 == $a1 && $stu4 == $a2) && ($stu5 == $a3 && $stu6 == $a4)) ) ) -{return [1,1,1,1,1,1];} +{return [1,1,1,1,1,1];} -else { return [0,0,0,0,0,0]; } +else { return [0,0,0,0,0,0]; } } ); @@ -68,17 +68,17 @@ else { return [0,0,0,0,0,0]; } # Main text BEGIN_PGML -Find the zeros and give the multiplicity of each for [`f(x)=[$f]`]. +Find the zeros and give the multiplicity of each for [`f(x)=[$f]`]. Note: to be counted as correct, you must get all answers correct. -+ One zero is [`x=`][____]{$multians} and has a multiplicity of [____]{$multians} [@ AnswerFormatHelp("numbers") @]* ++ One zero is [`x=`][____]{$multians} and has a multiplicity of [____]{$multians} [@ helpLink("numbers") @]* -+ Another zero is [`x=`][____]{$multians} and has a multiplicity of: [____]{$multians} [@ AnswerFormatHelp("numbers") @]* ++ Another zero is [`x=`][____]{$multians} and has a multiplicity of: [____]{$multians} [@ helpLink("numbers") @]* -+ The last zero is [`x=`][____]{$multians} and has a multiplicity of: [____]{$multians} [@ AnswerFormatHelp("numbers") @]* ++ The last zero is [`x=`][____]{$multians} and has a multiplicity of: [____]{$multians} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_46.pg b/Pending/RRCC/College_Algebra/MAT121/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_46.pg index a22a740b11..a59bf42c63 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_46.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_46.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -53,13 +53,13 @@ Context("Numeric"); BEGIN_PGML Graph the polynomial [`y=[$f]`]. Note [`x`]-intercept(s), [`y`]-intercept, and end behavior below, and draw the graph by hand on paper for your own reference. -+ [`x`]-intercept(s): [____________]{$xint} [@ AnswerFormatHelp("points") @]* ++ [`x`]-intercept(s): [____________]{$xint} [@ helpLink("points") @]* -+ [`y`]-intercept: [____]{$yint} [@ AnswerFormatHelp("points") @]* ++ [`y`]-intercept: [____]{$yint} [@ helpLink("points") @]* -+ As [`x \to -\infty `], [`y \to `] [___]{"infinity"} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to -\infty `], [`y \to `] [___]{"infinity"} [@ helpLink("numbers") @]* -+ As [`x \to \infty `], [`y \to `] [____]{"-infinity"} [@ AnswerFormatHelp("numbers") @]* ++ As [`x \to \infty `], [`y \to `] [____]{"-infinity"} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_48.pg b/Pending/RRCC/College_Algebra/MAT121/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_48.pg index 4940c15d3b..64075eb64f 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_48.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_48.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -59,7 +59,7 @@ Let the graph of \( f(x) \) be given below. Find the formula of \( f(x) \), a po $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>300,height=>300,tex_size=>800 ) \} $BR $BR @@ -69,7 +69,7 @@ $BR $BR $BR \( f(x) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR $ECENTER diff --git a/Pending/RRCC/College_Algebra/MAT121/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_51.pg b/Pending/RRCC/College_Algebra/MAT121/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_51.pg index 47543b65f3..0a1d973174 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_51.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_51.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -39,7 +39,7 @@ size=>[400,400] ); $a = list_random(-4,4); -$b = non_zero_random(-2,2); +$b = non_zero_random(-2,2); add_functions($gr, "1/4*(x-$a)*(x-$b)^2 for x in <-5,5> using color:blue and weight:2"); @@ -57,7 +57,7 @@ Let the graph of \( f(x) \) be given below. Find the formula of \( f(x) \), a po $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>300,height=>300,tex_size=>800 ) \} $BR $BR @@ -67,7 +67,7 @@ $BR $BR $BR \( f(x) = \) \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR $ECENTER diff --git a/Pending/RRCC/College_Algebra/MAT121/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_57.pg b/Pending/RRCC/College_Algebra/MAT121/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_57.pg index 20206126b1..629b176e79 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_57.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_57.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -38,7 +38,7 @@ Context("Numeric"); $a = non_zero_random(-4,4); do { $b = non_zero_random(-4,4); } until ( $b != $a ); do { $c = non_zero_random(-4,4); } until (( $c != $a ) and ( $c != $b ) ); -$yint = random(4,12,4); +$yint = random(4,12,4); $g=Formula("(x-$a)*(x-$b)*(x-$c)")->reduce; $d=$g->eval(x=>0); @@ -51,7 +51,7 @@ $ans1=Formula("$yfactor*(x-$a)*(x-$b)*(x-$c)")->reduce; # Main text BEGIN_PGML -Find the equation for a polynomial [`f(x)`] that satisfies the following: +Find the equation for a polynomial [`f(x)`] that satisfies the following: + Degree [`3`] + Zero at [`x=[$a]`] + Zero at [`x=[$b]`] @@ -59,10 +59,10 @@ Find the equation for a polynomial [`f(x)`] that satisfies the following: + [`y`]-intercept of [`(0,[$yint])`] - [` f(x) = `] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* + [` f(x) = `] [_______________]{$ans1} [@ helpLink("formulas") @]* + - END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_60.pg b/Pending/RRCC/College_Algebra/MAT121/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_60.pg index bd4469ecbc..edee796027 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_60.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_60.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -64,9 +64,9 @@ Find the equation for a polynomial [`f(x)`] that satisfies the following: + [`y`]-intercept of [`(0,[$yint])`] - [` f(x) = `] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* + [` f(x) = `] [_______________]{$ans1} [@ helpLink("formulas") @]* + - END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_75.pg b/Pending/RRCC/College_Algebra/MAT121/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_75.pg index 2686ef4dc6..ca0ffdfb8f 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_75.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_75.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -36,7 +36,7 @@ $showPartialCorrectAnswers = 1; Context("Numeric"); $a = non_zero_random(10,20, 2); -$b = non_zero_random(4,8); +$b = non_zero_random(4,8); $ans1=Formula("x*($a-2x)*($b-2x)")->reduce; @@ -48,10 +48,10 @@ BEGIN_PGML A rectangle has a length of [$a] units and a width of [$b] units. Squares of x by x units are cut out of each corner, and then the sides are folded up to create an open box. Express the volume of the box as a polynomial function in terms of x. - [` f(x) = `] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* + [` f(x) = `] [_______________]{$ans1} [@ helpLink("formulas") @]* + - END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_79.pg b/Pending/RRCC/College_Algebra/MAT121/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_79.pg index 1e03f8f699..d0b60f3378 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_79.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_79.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -52,10 +52,10 @@ BEGIN_PGML A right circular cone has a radius of [`[$f]`] and a height [`[$c]`] units less than its radius. Express the volume of the cone as a polynomial function. The volume of a cone is [`V = 1/3 \pi r^2 h`] for radius r and height h. Enter [`\pi`] as pi. - [` V(x) = `] [____________________]{"(1/3)*$ans"} [@ AnswerFormatHelp("formulas") @]* + [` V(x) = `] [____________________]{"(1/3)*$ans"} [@ helpLink("formulas") @]* + - END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_8.pg b/Pending/RRCC/College_Algebra/MAT121/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_8.pg index e197d33000..18eb5dc07f 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_8.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_3_8.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -52,7 +52,7 @@ $xint = List(Point("(0,0)"), Point("($b,0)"),Point("($c,0)")); BEGIN_PGML Find the [`x`]-intercept(s) of [`f(x)=[$f][$g]`]. Enter intercept(s) as points. If there is more than one point, enter them as a comma separated list. -+ [`x`]-intercept(s): [_______________]{$xint} [@ AnswerFormatHelp("points") @]* ++ [`x`]-intercept(s): [_______________]{$xint} [@ helpLink("points") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_14.pg b/Pending/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_14.pg index 6dbfc5d253..be0e3e2a97 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_14.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_14.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,9 +51,9 @@ $ans1 = Formula("$a*x^2+($b+$a*$m)*x+($m*($b+$a*$m)+$c)")->reduce(); # Main text BEGIN_PGML -Use synthetic division to find the quotient of [`([$f])/(x-[$m])`]. +Use synthetic division to find the quotient of [`([$f])/(x-[$m])`]. -+ Quotient: [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* ++ Quotient: [_______________]{$ans1} [@ helpLink("formulas") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_15.pg b/Pending/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_15.pg index 0db6275d41..59c34feef3 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_15.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_15.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,9 +51,9 @@ $ans1 = Formula("$a*x^2+($b+$a*$m)*x+($m*($b+$a*$m)+$c)")->reduce(); # Main text BEGIN_PGML -Use synthetic division to find the quotient of [`([$f])/(x-[$m])`]. +Use synthetic division to find the quotient of [`([$f])/(x-[$m])`]. -+ Quotient: [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* ++ Quotient: [_______________]{$ans1} [@ helpLink("formulas") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_27.pg b/Pending/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_27.pg index 6a13044860..0a72ea68ed 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_27.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_27.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,9 +51,9 @@ $ans1 = Formula("$a*x^2+$a*$m*x+($a*($m)^2+$c)")->reduce; # Main text BEGIN_PGML -Use synthetic division to find the quotient of [`([$f])/(x-[$m])`]. +Use synthetic division to find the quotient of [`([$f])/(x-[$m])`]. -+ Quotient: [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* ++ Quotient: [_______________]{$ans1} [@ helpLink("formulas") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_3.pg b/Pending/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_3.pg index 07130dd9d5..de15a77eef 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_3.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_3.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -49,11 +49,11 @@ $ans2= $c+$a*($b+$a); # Main text BEGIN_PGML -Use long division to perform the division [`([$f])/(x-[$a])`]. Find the quotient and remainder. +Use long division to perform the division [`([$f])/(x-[$a])`]. Find the quotient and remainder. -+ Quotient: [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* ++ Quotient: [_______________]{$ans1} [@ helpLink("formulas") @]* -+ Remainder: [_______________]{$ans2} [@ AnswerFormatHelp("formulas") @]* ++ Remainder: [_______________]{$ans2} [@ helpLink("formulas") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_38.pg b/Pending/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_38.pg index b83e6df884..e50f79d04a 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_38.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_38.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -55,18 +55,18 @@ if($fac==$m){$remain = Compute("0");} else{$remain=($c-$b*$m)*$fac+($b-$a*$m+$a*$fac)*(($fac)**2)-$c*$m;} Context()->strings->add(Yes => {}, No => {}); -if($remain == 0){$ans="Yes";} +if($remain == 0){$ans="Yes";} else{$ans="No";} ########################### # Main text BEGIN_PGML -Use synthetic division to determine whether or not [`(x-[$fac])`] is a factor of [` ([$f]) `]. +Use synthetic division to determine whether or not [`(x-[$fac])`] is a factor of [` ([$f]) `]. -+ Quotient: [_______________]{$quot} [@ AnswerFormatHelp("formulas") @]* ++ Quotient: [_______________]{$quot} [@ helpLink("formulas") @]* -+ Remainder: [_______________]{$remain} [@ AnswerFormatHelp("numbers") @]* ++ Remainder: [_______________]{$remain} [@ helpLink("numbers") @]* + Is it a factor? [_______________]{$ans} (enter Yes or No) diff --git a/Pending/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_39.pg b/Pending/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_39.pg index 26fb9d0da1..b1667cdb82 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_39.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_39.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -55,18 +55,18 @@ if($fac==$m){$remain = Compute("0");} else{$remain=($c-$b*$m)*$fac+($b-$a*$m+$a*$fac)*($fac)**2-$c*$m;} Context()->strings->add(Yes => {}, No => {}); -if($remain == 0){$ans="Yes";} +if($remain == 0){$ans="Yes";} else{$ans="No";} ########################### # Main text BEGIN_PGML -Use synthetic division to determine whether or not [`(x-[$fac])`] is a factor of [` ([$f]) `]. +Use synthetic division to determine whether or not [`(x-[$fac])`] is a factor of [` ([$f]) `]. -+ Quotient: [_______________]{$quot} [@ AnswerFormatHelp("formulas") @]* ++ Quotient: [_______________]{$quot} [@ helpLink("formulas") @]* -+ Remainder: [_______________]{$remain} [@ AnswerFormatHelp("numbers") @]* ++ Remainder: [_______________]{$remain} [@ helpLink("numbers") @]* + Is it a factor? [_______________]{$ans} (enter Yes or No) diff --git a/Pending/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_44.pg b/Pending/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_44.pg index ed9542c42e..0caef87472 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_44.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_44.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -61,7 +61,7 @@ Use the graph of \( f(x) \) below, and the fact that \( $f \) is a factor of \( $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>300,height=>300,tex_size=>800 ) \} $BR $BR @@ -71,7 +71,7 @@ $BR $BR $BR \( f(x) \) = \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR $ECENTER diff --git a/Pending/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_49.pg b/Pending/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_49.pg index ff79723a82..77b13ea3db 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_49.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_49.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -49,11 +49,11 @@ $ans2= $b+$a*($c)**3; # Main text BEGIN_PGML -Use synthetic division to find the quotient and remainder of [``[$f]``]. +Use synthetic division to find the quotient and remainder of [``[$f]``]. -+ Quotient: [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* ++ Quotient: [_______________]{$ans1} [@ helpLink("formulas") @]* -+ Remainder: [_______________]{$ans2} [@ AnswerFormatHelp("formulas") @]* ++ Remainder: [_______________]{$ans2} [@ helpLink("formulas") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_51.pg b/Pending/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_51.pg index 119a459d0b..8b6042443f 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_51.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_51.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,11 +50,11 @@ $ans2= $c+$b*$d+$a*($d)**3; # Main text BEGIN_PGML -Use synthetic division to find the quotient and remainder of [``[$f]``]. +Use synthetic division to find the quotient and remainder of [``[$f]``]. -+ Quotient: [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* ++ Quotient: [_______________]{$ans1} [@ helpLink("formulas") @]* -+ Remainder: [_______________]{$ans2} [@ AnswerFormatHelp("formulas") @]* ++ Remainder: [_______________]{$ans2} [@ helpLink("formulas") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_65.pg b/Pending/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_65.pg index 80f5dd9c1c..2144c577ba 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_65.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_65.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,9 +51,9 @@ $ans1 = Formula("$a*x^2+$b*x+$c")->reduce(); # Main text BEGIN_PGML -Suppose the area of a rectangle is [`[$area]`] and the length is [`[$len]`]. What is the width of the rectangle? +Suppose the area of a rectangle is [`[$area]`] and the length is [`[$len]`]. What is the width of the rectangle? -+ Width: [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* ++ Width: [_______________]{$ans1} [@ helpLink("formulas") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_7.pg b/Pending/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_7.pg index 1a0efc33e9..3b94a5bcbe 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_7.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_7.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,11 +50,11 @@ $ans2= $c+$d*($b+$a*$d); # Main text BEGIN_PGML -Use long division to perform the division [`([$f])/(x-[$d])`]. Find the quotient and remainder. +Use long division to perform the division [`([$f])/(x-[$d])`]. Find the quotient and remainder. -+ Quotient: [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* ++ Quotient: [_______________]{$ans1} [@ helpLink("formulas") @]* -+ Remainder: [_______________]{$ans2} [@ AnswerFormatHelp("formulas") @]* ++ Remainder: [_______________]{$ans2} [@ helpLink("formulas") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_9.pg b/Pending/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_9.pg index 05f0d90ea9..b4a6d3273d 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_9.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_4_9.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,11 +50,11 @@ $ans2= $c+$d*($b+$a*$d); # Main text BEGIN_PGML -Use long division to perform the division [`([$f])/(x-[$d])`]. Find the quotient and remainder. +Use long division to perform the division [`([$f])/(x-[$d])`]. Find the quotient and remainder. -+ Quotient: [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* ++ Quotient: [_______________]{$ans1} [@ helpLink("formulas") @]* -+ Remainder: [_______________]{$ans2} [@ AnswerFormatHelp("formulas") @]* ++ Remainder: [_______________]{$ans2} [@ helpLink("formulas") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_14.pg b/Pending/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_14.pg index ea3eb2303a..a005885fb5 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_14.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_14.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,7 +51,7 @@ BEGIN_PGML Use the Factor Theorem to find all the zeros of [`f(x)=[$f]`] given that [`(x-[$m])`] is a factor. Enter all the zeros as a comma separated list. -+ Zeros: [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* ++ Zeros: [_______________]{$ans1} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_16.pg b/Pending/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_16.pg index b2be8cc2df..0b5333216a 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_16.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_16.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,7 +51,7 @@ BEGIN_PGML Use the Factor Theorem to find all the zeros of [`f(x)=[$f]`] given that [`(x-[$m])`] is a factor. Enter all the zeros as a comma separated list. -+ Zeros: [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* ++ Zeros: [_______________]{$ans1} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_17.pg b/Pending/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_17.pg index 8979e9df24..96b5ee4cf4 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_17.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_17.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,7 +51,7 @@ BEGIN_PGML Use the Factor Theorem to find all the zeros of [`f(x)=[$f]`] given that [`(x-[$b])`] is a factor. Enter all the zeros as a comma separated list. -+ Zeros: [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* ++ Zeros: [_______________]{$ans1} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_23.pg b/Pending/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_23.pg index 00d3e13993..648eeade70 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_23.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_23.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -52,7 +52,7 @@ BEGIN_PGML Use the Rational Zero Theorem to find all the zeros of [`f(x)=[$f]`]. Enter all the zeros as a comma separated list. -+ Zeros: [_______________]{"$a,$b,1/$c"} [@ AnswerFormatHelp("numbers") @]* ++ Zeros: [_______________]{"$a,$b,1/$c"} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_25.pg b/Pending/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_25.pg index 9f28ec417d..41c6b42f5f 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_25.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_25.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -52,7 +52,7 @@ BEGIN_PGML Use the Rational Zero Theorem to find all the zeros of [`f(x)=[$f]`]. Enter all the zeros as a comma separated list. -+ Zeros: [_______________]{"$a,$b,1/$c"} [@ AnswerFormatHelp("numbers") @]* ++ Zeros: [_______________]{"$a,$b,1/$c"} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_27.pg b/Pending/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_27.pg index 783c18e4d0..5bd0dff812 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_27.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_27.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -52,7 +52,7 @@ BEGIN_PGML Use the Rational Zero Theorem to find all the zeros of [`f(x)=[$f]`]. Enter all the zeros as a comma separated list. -+ Zeros: [_______________]{"$a,$b,1/$c"} [@ AnswerFormatHelp("numbers") @]* ++ Zeros: [_______________]{"$a,$b,1/$c"} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_29.pg b/Pending/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_29.pg index 769cec3c78..c0c3fcde20 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_29.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_29.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -52,7 +52,7 @@ BEGIN_PGML Use the Rational Zero Theorem to find all the zeros of [`f(x)=[$f]`]. Enter all the zeros as a comma separated list. -+ Zeros: [_______________]{"$a,$b,1/$c"} [@ AnswerFormatHelp("numbers") @]* ++ Zeros: [_______________]{"$a,$b,1/$c"} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_31.pg b/Pending/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_31.pg index 769cec3c78..c0c3fcde20 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_31.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_31.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -52,7 +52,7 @@ BEGIN_PGML Use the Rational Zero Theorem to find all the zeros of [`f(x)=[$f]`]. Enter all the zeros as a comma separated list. -+ Zeros: [_______________]{"$a,$b,1/$c"} [@ AnswerFormatHelp("numbers") @]* ++ Zeros: [_______________]{"$a,$b,1/$c"} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_33.pg b/Pending/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_33.pg index ea1ece4f45..170feefd7d 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_33.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_33.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -52,7 +52,7 @@ BEGIN_PGML Use the Rational Zero Theorem to find all the zeros of [`f(x)=[$f]`]. Enter all the zeros as a comma separated list. -+ Zeros: [_______________]{"$a,$b/2,1/$c"} [@ AnswerFormatHelp("numbers") @]* ++ Zeros: [_______________]{"$a,$b/2,1/$c"} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_35.pg b/Pending/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_35.pg index 69f5f9d2dc..89d30cdf65 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_35.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_35.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -52,7 +52,7 @@ BEGIN_PGML Use the Rational Zero Theorem to find all the zeros of [`f(x)=[$f]`]. Enter all the zeros as a comma separated list. -+ Zeros: [_______________]{"$a,$b/2,1/$c"} [@ AnswerFormatHelp("numbers") @]* ++ Zeros: [_______________]{"$a,$b/2,1/$c"} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_41.pg b/Pending/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_41.pg index b4b983df4b..d00ac04d8d 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_41.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_41.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -38,7 +38,7 @@ Context()->noreduce('(-x)-y','(-x)+y'); Context()->variables->add(i => "Real"); $a=non_zero_random(1,4,1); -$b = non_zero_random(-4,4,1); +$b = non_zero_random(-4,4,1); #f=(x^2+a^2)(x-b) expanded $f=Formula("x^3-$b*x^2+($a)^2*x-($a)^2*$b")->reduce; @@ -54,7 +54,7 @@ BEGIN_PGML Find all the zeros of [`f(x)=[$f]`]. Enter all the zeros as a comma separated list. -+ Zeros: [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* ++ Zeros: [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_43.pg b/Pending/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_43.pg index d4e66c9bb2..6b4b29d247 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_43.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_43.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -38,7 +38,7 @@ Context()->noreduce('(-x)-y','(-x)+y'); Context()->variables->add(i => "Real"); $a=non_zero_random(1,4,1); -$b = non_zero_random(-4,4,1); +$b = non_zero_random(-4,4,1); $d = list_random(-2,-1,2); #f=$d(x^2+a^2)(x-b) expanded @@ -55,7 +55,7 @@ BEGIN_PGML Use the Rational Zero Theorem to find all the zeros of [`f(x)=[$f]`]. Enter all the zeros as a comma separated list. -+ Zeros: [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* ++ Zeros: [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_45.pg b/Pending/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_45.pg index 528ca4e107..0d6fd81e03 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_45.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_45.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -38,7 +38,7 @@ Context()->noreduce('(-x)-y','(-x)+y'); Context()->variables->add(i => "Real"); $a=non_zero_random(1,4,1); -$b = non_zero_random(-4,4,1); +$b = non_zero_random(-4,4,1); $c = non_zero_random(-4,4,1); #f=(x-(a+bi))(x-(a-bi))(x-c) expanded @@ -54,7 +54,7 @@ BEGIN_PGML Use the Rational Zero Theorem to find all the zeros of [`f(x)=[$f]`]. Enter all the zeros as a comma separated list. -+ Zeros: [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* ++ Zeros: [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_7.pg b/Pending/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_7.pg index 86de4e650d..fc305ea914 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_7.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_7.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,7 +51,7 @@ BEGIN_PGML Use the Remainder Theorem to find [`f([$m])`] for [`f(x)=[$f]`]. -+ [`f([$m])=`] [_______________]{$n} [@ AnswerFormatHelp("numbers") @]* ++ [`f([$m])=`] [_______________]{$n} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_8.pg b/Pending/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_8.pg index 22899d7171..29b9313477 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_8.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_8.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -52,7 +52,7 @@ BEGIN_PGML Use the Remainder Theorem to find [`f([$m])`] for [`f(x)=[$f]`]. -+ [`f([$m])=`] [_______________]{$n} [@ AnswerFormatHelp("numbers") @]* ++ [`f([$m])=`] [_______________]{$n} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_9.pg b/Pending/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_9.pg index 23f5245a98..0f982f70d4 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_9.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.5/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_5_9.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,10 +48,10 @@ $f=Formula("$a*x^3+($b-$a*$m)*x^2+($c-$b*$m)*x+(-$c*$m+$n)")->reduce; # Main text BEGIN_PGML -Use the Remainder Theorem to find [`f([$m])`] for [`f(x)=[$f]`]. +Use the Remainder Theorem to find [`f([$m])`] for [`f(x)=[$f]`]. -+ [`f([$m])=`] [_______________]{$n} [@ AnswerFormatHelp("numbers") @]* ++ [`f([$m])=`] [_______________]{$n} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_10.pg b/Pending/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_10.pg index ba2d8004db..cd913e343c 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_10.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_10.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,13 +51,13 @@ $ans3=Compute("0"); BEGIN_PGML -Let [`` f(x)=[$f] ``]. Find the domain, vertical asymptote(s), and horizontal asymptote. +Let [`` f(x)=[$f] ``]. Find the domain, vertical asymptote(s), and horizontal asymptote. -+ Domain: [_______________]{$ans1} [@ AnswerFormatHelp("intervals") @]* ++ Domain: [_______________]{$ans1} [@ helpLink("intervals") @]* -+ Vertical Asymptote(s): [`x=`] [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* (Enter as a comma separated list if more than one) ++ Vertical Asymptote(s): [`x=`] [_______________]{$ans2} [@ helpLink("numbers") @]* (Enter as a comma separated list if more than one) -+ Horizontal Asymptote: [`y=`] [_______________]{$ans3} [@ AnswerFormatHelp("numbers") @]* ++ Horizontal Asymptote: [`y=`] [_______________]{$ans3} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_13.pg b/Pending/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_13.pg index 6dcda9f271..b25c4744a5 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_13.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_13.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -55,13 +55,13 @@ $ans3=Compute("1"); BEGIN_PGML -Let [`` f(x)=[$f] ``]. Find the domain, vertical asymptote(s), and horizontal asymptote. +Let [`` f(x)=[$f] ``]. Find the domain, vertical asymptote(s), and horizontal asymptote. -+ Domain: [______________________]{$ans1} [@ AnswerFormatHelp("intervals") @]* ++ Domain: [______________________]{$ans1} [@ helpLink("intervals") @]* -+ Vertical Asymptote(s): [`x=`] [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* (Enter values as a comma separated list if more than one) ++ Vertical Asymptote(s): [`x=`] [_______________]{$ans2} [@ helpLink("numbers") @]* (Enter values as a comma separated list if more than one) -+ Horizontal Asymptote: [`y=`] [_______________]{$ans3} [@ AnswerFormatHelp("numbers") @]* ++ Horizontal Asymptote: [`y=`] [_______________]{$ans3} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_15.pg b/Pending/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_15.pg index 20255aec48..516b80cda9 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_15.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_15.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -53,13 +53,13 @@ $ans3=Compute("0"); BEGIN_PGML -Let [`` f(x)=[$f] ``]. Find the domain, vertical asymptote(s), and horizontal asymptote. +Let [`` f(x)=[$f] ``]. Find the domain, vertical asymptote(s), and horizontal asymptote. -+ Domain: [______________________]{$ans1} [@ AnswerFormatHelp("intervals") @]* ++ Domain: [______________________]{$ans1} [@ helpLink("intervals") @]* -+ Vertical Asymptote(s): [`x=`] [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* (Enter values as a comma separated list if more than one) ++ Vertical Asymptote(s): [`x=`] [_______________]{$ans2} [@ helpLink("numbers") @]* (Enter values as a comma separated list if more than one) -+ Horizontal Asymptote: [`y=`] [_______________]{$ans3} [@ AnswerFormatHelp("numbers") @]* ++ Horizontal Asymptote: [`y=`] [_______________]{$ans3} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_17.pg b/Pending/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_17.pg index 8b394d63b4..0108f7f91e 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_17.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_17.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,13 +50,13 @@ $ans3=Compute("0"); BEGIN_PGML -Let [`` f(x)=[$f] ``]. Find the domain, vertical asymptote(s), and horizontal asymptote. +Let [`` f(x)=[$f] ``]. Find the domain, vertical asymptote(s), and horizontal asymptote. -+ Domain: [______________________]{$ans1} [@ AnswerFormatHelp("intervals") @]* ++ Domain: [______________________]{$ans1} [@ helpLink("intervals") @]* -+ Vertical Asymptote(s): [`x=`] [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* (Enter values as a comma separated list if more than one) ++ Vertical Asymptote(s): [`x=`] [_______________]{$ans2} [@ helpLink("numbers") @]* (Enter values as a comma separated list if more than one) -+ Horizontal Asymptote: [`y=`] [_______________]{$ans3} [@ AnswerFormatHelp("numbers") @]* ++ Horizontal Asymptote: [`y=`] [_______________]{$ans3} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_19.pg b/Pending/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_19.pg index 1d99519710..6367640379 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_19.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_19.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -54,13 +54,13 @@ $ans3=Formula("$a/$c")->reduce; BEGIN_PGML -Let [`` f(x)=[$f] ``]. Find the domain, vertical asymptote(s), and horizontal asymptote. +Let [`` f(x)=[$f] ``]. Find the domain, vertical asymptote(s), and horizontal asymptote. -+ Domain: [______________________]{$ans1} [@ AnswerFormatHelp("intervals") @]* ++ Domain: [______________________]{$ans1} [@ helpLink("intervals") @]* -+ Vertical Asymptote(s): [`x=`] [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* (Enter values as a comma separated list if more than one) ++ Vertical Asymptote(s): [`x=`] [_______________]{$ans2} [@ helpLink("numbers") @]* (Enter values as a comma separated list if more than one) -+ Horizontal Asymptote: [`y=`] [_______________]{$ans3} [@ AnswerFormatHelp("numbers") @]* ++ Horizontal Asymptote: [`y=`] [_______________]{$ans3} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_20.pg b/Pending/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_20.pg index 5204d30206..84a452d0ca 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_20.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_20.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -51,9 +51,9 @@ BEGIN_PGML Find the [`x`] and [`y`]-intercepts for [`` f(x)=[$f] ``]. If there is more than one, enter them as a comma separated list. -+ [`x`]-intercept(s): [______________________]{$xint} [@ AnswerFormatHelp("points") @]* ++ [`x`]-intercept(s): [______________________]{$xint} [@ helpLink("points") @]* -+ [`y`]-intercept: [_______________]{$yint} [@ AnswerFormatHelp("points") @]* ++ [`y`]-intercept: [_______________]{$yint} [@ helpLink("points") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_39.pg b/Pending/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_39.pg index 1cd271ca3e..4ff4232246 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_39.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_39.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -58,17 +58,17 @@ $ans5=Compute("$c"); BEGIN_PGML -Let [`` f(x)=[$f] ``]. Find the domain, vertical asymptote, behavior of the vertical asymptote, and horizontal asymptote. +Let [`` f(x)=[$f] ``]. Find the domain, vertical asymptote, behavior of the vertical asymptote, and horizontal asymptote. -+ Domain: [_______________]{$ans1} [@ AnswerFormatHelp("intervals") @]* ++ Domain: [_______________]{$ans1} [@ helpLink("intervals") @]* -+ Vertical Asymptote: [`x=`] [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* ++ Vertical Asymptote: [`x=`] [_______________]{$ans2} [@ helpLink("numbers") @]* -+ As [`x \to [$b]^-`], [`f(x) \to`] [_______________]{$ans3} [@ AnswerFormatHelp("numbers") @]* (enter infinity or -infinity) ++ As [`x \to [$b]^-`], [`f(x) \to`] [_______________]{$ans3} [@ helpLink("numbers") @]* (enter infinity or -infinity) -+ As [`x \to [$b]^+`], [`f(x) \to`] [_______________]{$ans4} [@ AnswerFormatHelp("numbers") @]* (enter infinity or -infinity) ++ As [`x \to [$b]^+`], [`f(x) \to`] [_______________]{$ans4} [@ helpLink("numbers") @]* (enter infinity or -infinity) -+ Horizontal Asymptote: [`y=`] [_______________]{$ans5} [@ AnswerFormatHelp("numbers") @]* ++ Horizontal Asymptote: [`y=`] [_______________]{$ans5} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_40.pg b/Pending/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_40.pg index 80defd8058..3cd57524a5 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_40.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_40.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -62,17 +62,17 @@ $asymp=-$d; BEGIN_PGML -Let [`` f(x)=[$f] ``]. Find the domain, vertical asymptote, behavior of the vertical asymptote, and horizontal asymptote. +Let [`` f(x)=[$f] ``]. Find the domain, vertical asymptote, behavior of the vertical asymptote, and horizontal asymptote. -+ Domain: [_______________]{$ans1} [@ AnswerFormatHelp("intervals") @]* ++ Domain: [_______________]{$ans1} [@ helpLink("intervals") @]* -+ Vertical Asymptote: [`x=`] [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* ++ Vertical Asymptote: [`x=`] [_______________]{$ans2} [@ helpLink("numbers") @]* -+ As [`x \to [$asymp]^-`], [`f(x) \to`] [_______________]{$ans3} [@ AnswerFormatHelp("numbers") @]* (enter infinity or -infinity) ++ As [`x \to [$asymp]^-`], [`f(x) \to`] [_______________]{$ans3} [@ helpLink("numbers") @]* (enter infinity or -infinity) -+ As [`x \to [$asymp]^+`], [`f(x) \to`] [_______________]{$ans4} [@ AnswerFormatHelp("numbers") @]* (enter infinity or -infinity) ++ As [`x \to [$asymp]^+`], [`f(x) \to`] [_______________]{$ans4} [@ helpLink("numbers") @]* (enter infinity or -infinity) -+ Horizontal Asymptote: [`y=`] [_______________]{$ans5} [@ AnswerFormatHelp("numbers") @]* ++ Horizontal Asymptote: [`y=`] [_______________]{$ans5} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_43.pg b/Pending/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_43.pg index fdc7f80c4d..13a84d2b60 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_43.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_43.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -70,21 +70,21 @@ $ans7=Formula("$a/$m")->reduce(); BEGIN_PGML -Let [`` f(x)=[$f] ``]. Find the domain, vertical asymptotes, behavior of the vertical asymptotes, and horizontal asymptote. +Let [`` f(x)=[$f] ``]. Find the domain, vertical asymptotes, behavior of the vertical asymptotes, and horizontal asymptote. -+ Domain: [____________________]{$ans1} [@ AnswerFormatHelp("intervals") @]* ++ Domain: [____________________]{$ans1} [@ helpLink("intervals") @]* -+ Vertical Asymptotes: [`x=`] [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* (Enter values as a comma separated list) ++ Vertical Asymptotes: [`x=`] [_______________]{$ans2} [@ helpLink("numbers") @]* (Enter values as a comma separated list) -+ As [`x \to [$l]^-`], [`f(x) \to`] [_______________]{$ans3} [@ AnswerFormatHelp("numbers") @]* (enter infinity or -infinity) ++ As [`x \to [$l]^-`], [`f(x) \to`] [_______________]{$ans3} [@ helpLink("numbers") @]* (enter infinity or -infinity) -+ As [`x \to [$l]^+`], [`f(x) \to`] [_______________]{$ans4} [@ AnswerFormatHelp("numbers") @]* (enter infinity or -infinity) ++ As [`x \to [$l]^+`], [`f(x) \to`] [_______________]{$ans4} [@ helpLink("numbers") @]* (enter infinity or -infinity) -+ As [`x \to [$r]^-`], [`f(x) \to`] [_______________]{$ans5} [@ AnswerFormatHelp("numbers") @]* (enter infinity or -infinity) ++ As [`x \to [$r]^-`], [`f(x) \to`] [_______________]{$ans5} [@ helpLink("numbers") @]* (enter infinity or -infinity) -+ As [`x \to [$r]^+`], [`f(x) \to`] [_______________]{$ans6} [@ AnswerFormatHelp("numbers") @]* (enter infinity or -infinity) ++ As [`x \to [$r]^+`], [`f(x) \to`] [_______________]{$ans6} [@ helpLink("numbers") @]* (enter infinity or -infinity) -+ Horizontal Asymptote: [`y=`] [_______________]{$ans7} [@ AnswerFormatHelp("numbers") @]* ++ Horizontal Asymptote: [`y=`] [_______________]{$ans7} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_45.pg b/Pending/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_45.pg index e42f0ca646..7a514f128e 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_45.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_45.pg @@ -1,5 +1,5 @@ # DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -19,7 +19,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "PGchoicemacros.pl", -"AnswerFormatHelp.pl", + "PGgraphmacros.pl", "unionTables.pl", "parserPopUp.pl", @@ -86,7 +86,7 @@ $gr[3]->lb(new Label(0.25,9.75,'y','black','center','middle')); @perm = shuffle(4); for $i (0..3) { - plot_functions( $gr[$perm[$i]], $f[$perm[$i]]); + plot_functions( $gr[$perm[$i]], $f[$perm[$i]]); ($gr[$perm[$i]]->fn)[0]->steps(4000); $fig[$i]=image(insertGraph($gr[$perm[$i]]), width=>200,height=>200,tex_size=>450); @@ -111,18 +111,18 @@ $popup = PopUp(["?","A","B","C","D"], $letter[$k]); BEGIN_PGML Let [``f(x)=[$f]``]. Find the domain, vertical asymptotes, horizontal asymptote, and select the correct graph. -+ Domain: [____________________]{$ans1} [@ AnswerFormatHelp("intervals") @]* ++ Domain: [____________________]{$ans1} [@ helpLink("intervals") @]* -+ Vertical Asymptotes: [`x=`] [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* (Enter values as a comma separated list) ++ Vertical Asymptotes: [`x=`] [_______________]{$ans2} [@ helpLink("numbers") @]* (Enter values as a comma separated list) -+ Horizontal Asymptote: [`y=`] [_______________]{$ans3} [@ AnswerFormatHelp("numbers") @]* ++ Horizontal Asymptote: [`y=`] [_______________]{$ans3} [@ helpLink("numbers") @]* END_PGML BEGIN_TEXT $BR $BR -Which of the following is the graph of \( f(x) \)? +Which of the following is the graph of \( f(x) \)? \{ $popup->menu() \} $BR (Note, window is from [-10,10] so some of graph may be off the window) diff --git a/Pending/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_48.pg b/Pending/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_48.pg index 6ff17399a7..371439b9f3 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_48.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_48.pg @@ -1,5 +1,5 @@ # DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -19,7 +19,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "PGchoicemacros.pl", -"AnswerFormatHelp.pl", + "PGgraphmacros.pl", "unionTables.pl", "parserPopUp.pl", @@ -84,7 +84,7 @@ $gr[3]->lb(new Label(0.25,9.75,'y','black','center','middle')); @perm = shuffle(4); for $i (0..3) { - plot_functions( $gr[$perm[$i]], $f[$perm[$i]]); + plot_functions( $gr[$perm[$i]], $f[$perm[$i]]); ($gr[$perm[$i]]->fn)[0]->steps(4000); $fig[$i]=image(insertGraph($gr[$perm[$i]]), width=>200,height=>200,tex_size=>450); @@ -109,18 +109,18 @@ $popup = PopUp(["?","A","B","C","D"], $letter[$k]); BEGIN_PGML Let [``f(x)=[$f]``]. Find the domain, vertical asymptotes, slant asymptote, and select the correct graph. -+ Domain: [____________________]{$ans1} [@ AnswerFormatHelp("intervals") @]* ++ Domain: [____________________]{$ans1} [@ helpLink("intervals") @]* -+ Vertical Asymptotes: [`x=`] [_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* ++ Vertical Asymptotes: [`x=`] [_______________]{$ans2} [@ helpLink("numbers") @]* -+ Slant Asymptote: [`y=`] [_______________]{$ans3} [@ AnswerFormatHelp("formulas") @]* ++ Slant Asymptote: [`y=`] [_______________]{$ans3} [@ helpLink("formulas") @]* END_PGML BEGIN_TEXT $BR $BR -Which of the following is the graph of \( f(x) \)? +Which of the following is the graph of \( f(x) \)? \{ $popup->menu() \} $BR (Note, window is from [-10,10] so some of graph may be off the window) diff --git a/Pending/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_51.pg b/Pending/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_51.pg index 6842bb61d4..f4a121c74b 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_51.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_51.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -67,7 +67,7 @@ Find an equation, [`f(x)`], for a rational function that satisfies the following + [`y`]-intercept at [`(0,[$yint])`] -[`f(x)=`] [_________________________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`f(x)=`] [_________________________]{$ans} [@ helpLink("formulas") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_57.pg b/Pending/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_57.pg index f4476675f0..033d397f52 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_57.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_57.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -65,7 +65,7 @@ Write an equation for the graphed function. $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>200,height=>200,tex_size=>800 ) \} $BR $BR @@ -75,7 +75,7 @@ $BR $BR $BR y = \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR $ECENTER diff --git a/Pending/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_6.pg b/Pending/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_6.pg index b1404704a4..782b250f02 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_6.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_6.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,7 +50,7 @@ BEGIN_PGML Find the domain of [`` f(x)=[$f] ``]. Enter your solution in interval notation. -[_______________]{$ans} [@ AnswerFormatHelp("intervals") @]* +[_______________]{$ans} [@ helpLink("intervals") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_61.pg b/Pending/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_61.pg index 60593911f9..77b8ac10dc 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_61.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_61.pg @@ -22,7 +22,7 @@ loadMacros( "PGgraphmacros.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -65,7 +65,7 @@ Write an equation for the graphed function. $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>200,height=>200,tex_size=>800 ) \} $BR $BR @@ -75,7 +75,7 @@ $BR $BR $BR y = \{ ans_rule(20) \} -\{ AnswerFormatHelp("formulas") \} +\{ helpLink("formulas") \} $BR $BR $ECENTER diff --git a/Pending/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_71.pg b/Pending/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_71.pg index d6659f6dbd..a0d5e6e702 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_71.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_6_71.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "AppletObjects.pl", "unionTables.pl", @@ -43,7 +43,7 @@ HEADER_TEXT(MODES( )); $desmos_div = MODES( - HTML=>qq(
), + HTML=>qq(
), TeX=>'Interactive graph best viewed online' ); @@ -70,11 +70,11 @@ if($sign>0){$ans=Compute("($endpt,infinity)");}else{$ans=Compute("(-infinity,$en BEGIN_PGML -Use Desmos graphing tool below to graph [`` f(x)=[$f] ``]. +Use Desmos graphing tool below to graph [`` f(x)=[$f] ``]. Use the graph to solve [`f(x)>0`]. Enter the solution as an interval of [`x`] values that make the inequality true. -[_______________________]{$ans} [@ AnswerFormatHelp("intervals") @]* +[_______________________]{$ans} [@ helpLink("intervals") @]* END_PGML @@ -103,10 +103,10 @@ TEXT( MODES(TeX=>'', HTML=><qq(
), + HTML=>qq(
), TeX=>'Interactive graph best viewed online' ); @@ -68,11 +68,11 @@ $ans=Compute("($b,$a)U($c,infinity)"); BEGIN_PGML -Use Desmos graphing tool below to graph [`` f(x)=[$f] ``]. +Use Desmos graphing tool below to graph [`` f(x)=[$f] ``]. Use the graph to solve [`f(x)>0`]. Enter the solution as an interval of [`x`] values that make the inequality true. -[_______________________]{$ans} [@ AnswerFormatHelp("intervals") @]* +[_______________________]{$ans} [@ helpLink("intervals") @]* END_PGML @@ -101,10 +101,10 @@ TEXT( MODES(TeX=>'', HTML=><qq(
), + HTML=>qq(
), TeX=>'Interactive graph best viewed online' ); @@ -69,10 +69,10 @@ $ans=Compute("sqrt($c/$b)"); BEGIN_PGML -The concentration [`C`] of a drug in a patient's bloodstream [`t`] hours after injection is given by [`` C(t)=[$f] ``]. Use Desmos graphing tool below to approximate the time when the concentration is highest. +The concentration [`C`] of a drug in a patient's bloodstream [`t`] hours after injection is given by [`` C(t)=[$f] ``]. Use Desmos graphing tool below to approximate the time when the concentration is highest. - [`t=`] [_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* + [`t=`] [_______________]{$ans} [@ helpLink("numbers") @]* END_PGML @@ -101,10 +101,10 @@ TEXT( MODES(TeX=>'', HTML=><qq(
), + HTML=>qq(
), TeX=>'Interactive graph best viewed online' ); @@ -72,18 +72,18 @@ BEGIN_PGML A right circular cylinder has a volume of [`[$a]`] cubic inches. Find the radius and height that will yield minimum surface area. To do so, answer the following: -+ volume of a right circular cylinder with radius [`r`] and height [`h`]: ++ volume of a right circular cylinder with radius [`r`] and height [`h`]: [`V=`][_______________]{$ans1} (should be in terms of [`r`] and [`h`], enter [`\pi`] as pi) -+ surface area of a right circular cylinder with radius [`r`] and height [`h`]: ++ surface area of a right circular cylinder with radius [`r`] and height [`h`]: [`SA=`] [_______________]{$ans2} (should be in terms of [`r`] and [`h`]) -+ surface area of this right circular cylinder in terms of only [`r`]: ++ surface area of this right circular cylinder in terms of only [`r`]: [`SA=`][_______________]{$ans3} (should be in terms of just [`r`], no [`h`]) -+ Use technology below to find the [`r`] and [`h`] that minimize the surface area. - [`r=`] [_______________]{$ans4} - [`h=`] [_______________]{$ans5} ++ Use technology below to find the [`r`] and [`h`] that minimize the surface area. + [`r=`] [_______________]{$ans4} + [`h=`] [_______________]{$ans5} END_PGML @@ -111,10 +111,10 @@ TEXT( MODES(TeX=>'', HTML=><reduce(); # Main text BEGIN_PGML -Write an equation that describes the following relationship: [`y`] varies inversely as the fourth power of [`x`] and when [`x=[$x0]`], [`y=[$y0]`]. +Write an equation that describes the following relationship: [`y`] varies inversely as the fourth power of [`x`] and when [`x=[$x0]`], [`y=[$y0]`]. -[`y=`] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* +[`y=`] [_______________]{$ans1} [@ helpLink("formulas") @]* diff --git a/Pending/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_15.pg b/Pending/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_15.pg index 9b9da535db..9f7a7bbb4f 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_15.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_15.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -46,9 +46,9 @@ $k=$y0*$x0**(1/3); # Main text BEGIN_PGML -Write an equation that describes the following relationship: [`y`] varies inversely as the cube root of [`x`] and when [`x=[$x0]`], [`y=[$y0]`]. +Write an equation that describes the following relationship: [`y`] varies inversely as the cube root of [`x`] and when [`x=[$x0]`], [`y=[$y0]`]. -[`y=`] [_______________]{"$k/x^(1/3)"} [@ AnswerFormatHelp("formulas") @]* +[`y=`] [_______________]{"$k/x^(1/3)"} [@ helpLink("formulas") @]* diff --git a/Pending/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_17.pg b/Pending/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_17.pg index 1e0a6dd898..2475eeb7bf 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_17.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_17.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,9 +51,9 @@ $ans1 = Formula("$k*x*z*w")->reduce(); # Main text BEGIN_PGML -Write an equation that describes the following relationship: [`y`] varies jointly as [`x`], [`z`], and [`w`] and when [`x=[$x0]`], [`z=[$z0]`], [`w=[$w0]`], then [`y=[$y0]`]. +Write an equation that describes the following relationship: [`y`] varies jointly as [`x`], [`z`], and [`w`] and when [`x=[$x0]`], [`z=[$z0]`], [`w=[$w0]`], then [`y=[$y0]`]. -[`y=`] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* +[`y=`] [_______________]{$ans1} [@ helpLink("formulas") @]* diff --git a/Pending/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_19.pg b/Pending/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_19.pg index 518aa46aca..280cd62723 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_19.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_19.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,9 +50,9 @@ $ans1 = Formula("$k*x*sqrt(z)")->reduce(); # Main text BEGIN_PGML -Write an equation that describes the following relationship: [`y`] varies jointly as [`x`] and the square root of [`z`], and when [`x=[$x0]`] and [`z=[$z0]`], then [`y=[$y0]`]. +Write an equation that describes the following relationship: [`y`] varies jointly as [`x`] and the square root of [`z`], and when [`x=[$x0]`] and [`z=[$z0]`], then [`y=[$y0]`]. -[`y=`] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* +[`y=`] [_______________]{$ans1} [@ helpLink("formulas") @]* diff --git a/Pending/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_25.pg b/Pending/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_25.pg index bb1437d129..3dd65f3bb2 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_25.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_25.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,10 +48,10 @@ $ans1 = $f->eval(x=>$x1); # Main text BEGIN_PGML -Use the given information to find the unknown value: -[`y`] varies directly as the square of [`x`]. When [`x=[$x0]`], then [`y=[$y0]`]. Find [`y`] when [`x=[$x1]`]. +Use the given information to find the unknown value: +[`y`] varies directly as the square of [`x`]. When [`x=[$x0]`], then [`y=[$y0]`]. Find [`y`] when [`x=[$x1]`]. -[`y=`] [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +[`y=`] [_______________]{$ans1} [@ helpLink("numbers") @]* diff --git a/Pending/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_26.pg b/Pending/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_26.pg index 7cc6f8f985..c2be3be25d 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_26.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_26.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,10 +48,10 @@ $ans1 = $f->eval(x=>$x1); # Main text BEGIN_PGML -Use the given information to find the unknown value: -[`y`] varies directly as the cube of [`x`]. When [`x=[$x0]`], then [`y=[$y0]`]. Find [`y`] when [`x=[$x1]`]. +Use the given information to find the unknown value: +[`y`] varies directly as the cube of [`x`]. When [`x=[$x0]`], then [`y=[$y0]`]. Find [`y`] when [`x=[$x1]`]. -[`y=`] [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +[`y=`] [_______________]{$ans1} [@ helpLink("numbers") @]* diff --git a/Pending/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_29.pg b/Pending/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_29.pg index 1425bbd0c9..875a6c1e87 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_29.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_29.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,10 +48,10 @@ $ans1 = $f->eval(x=>$x1); # Main text BEGIN_PGML -Use the given information to find the unknown value: -[`y`] varies inversely with [`x`]. When [`x=[$x0]`], then [`y=[$y0]`]. Find [`y`] when [`x=[$x1]`]. +Use the given information to find the unknown value: +[`y`] varies inversely with [`x`]. When [`x=[$x0]`], then [`y=[$y0]`]. Find [`y`] when [`x=[$x1]`]. -[`y=`] [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +[`y=`] [_______________]{$ans1} [@ helpLink("numbers") @]* diff --git a/Pending/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_35.pg b/Pending/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_35.pg index e93dfe0506..3cda3be74c 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_35.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_35.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -54,10 +54,10 @@ $ans1 = $f->eval(x=>$x1,z=>$z1,w=>$w1); # Main text BEGIN_PGML -Use the given information to find the unknown value: -[`y`] varies jointly as [`x`], [`z`], and [`w`]. When [`x=[$x0]`], [`z=[$z0]`], and [`w=[$w0]`], then [`y=[$y0]`]. Find [`y`] when [`x=[$x1]`], [`z=[$z1]`], and [`w=[$w1]`]. +Use the given information to find the unknown value: +[`y`] varies jointly as [`x`], [`z`], and [`w`]. When [`x=[$x0]`], [`z=[$z0]`], and [`w=[$w0]`], then [`y=[$y0]`]. Find [`y`] when [`x=[$x1]`], [`z=[$z1]`], and [`w=[$w1]`]. -[`y=`] [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +[`y=`] [_______________]{$ans1} [@ helpLink("numbers") @]* diff --git a/Pending/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_37.pg b/Pending/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_37.pg index c535809fa9..28537f9a3c 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_37.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_37.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,10 +51,10 @@ $ans1 = $f->eval(x=>$x1,z=>$z1); # Main text BEGIN_PGML -Use the given information to find the unknown value: -[`y`] varies jointly as the square of [`x`] and the square root of [`z`]. When [`x=[$x0]`] and [`z=[$z0]`], then [`y=[$y0]`]. Find [`y`] when [`x=[$x1]`] and [`z=[$z1]`]. +Use the given information to find the unknown value: +[`y`] varies jointly as the square of [`x`] and the square root of [`z`]. When [`x=[$x0]`] and [`z=[$z0]`], then [`y=[$y0]`]. Find [`y`] when [`x=[$x1]`] and [`z=[$z1]`]. -[`y=`] [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +[`y=`] [_______________]{$ans1} [@ helpLink("numbers") @]* diff --git a/Pending/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_5.pg b/Pending/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_5.pg index bd82dbd882..68da48a71d 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_5.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_5.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -46,9 +46,9 @@ $ans1 = Formula("$k*x^2")->reduce(); # Main text BEGIN_PGML -Write an equation that describes the following relationship: [`y`] varies directly as the square of [`x`] and when [`x=[$x0]`], [`y=[$y0]`]. +Write an equation that describes the following relationship: [`y`] varies directly as the square of [`x`] and when [`x=[$x0]`], [`y=[$y0]`]. -[`y=`] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* +[`y=`] [_______________]{$ans1} [@ helpLink("formulas") @]* diff --git a/Pending/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_51.pg b/Pending/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_51.pg index 95f88a30a5..4a0380ebf1 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_51.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_51.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -49,9 +49,9 @@ $ans1 = $f->eval(s=>$s1); # Main text BEGIN_PGML -The distance [`s`] that an object falls varies directly with the square of the time, [`t`], of the fall. If an object falls [`[$s0]`] feet in one second, how long will it take for it to fall [`[$s1]`] feet? +The distance [`s`] that an object falls varies directly with the square of the time, [`t`], of the fall. If an object falls [`[$s0]`] feet in one second, how long will it take for it to fall [`[$s1]`] feet? -[`t=`] [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +[`t=`] [_______________]{$ans1} [@ helpLink("numbers") @]* diff --git a/Pending/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_57.pg b/Pending/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_57.pg index 8b2b1ee61e..650f454e07 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_57.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_57.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -52,7 +52,7 @@ $ans1 = $f->eval(r=>$r1); BEGIN_PGML The current in a circuit varies inversely with its resistance measured in ohms. When the current in a circuit is [`[$c0]`] amperes, the resistance is [`[$r0]`] ohms. Find the current if the resistance is [`[$r1]`] ohms. -Current [`=`] [_______________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +Current [`=`] [_______________]{$ans1} [@ helpLink("numbers") @]* diff --git a/Pending/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_9.pg b/Pending/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_9.pg index 354bb841c4..f077482f14 100644 --- a/Pending/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_9.pg +++ b/Pending/RRCC/College_Algebra/MAT121/5.8/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_5_8_9.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## DBsubject(Algebra) @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -46,9 +46,9 @@ $ans1 = Formula("$k*x^4")->reduce(); # Main text BEGIN_PGML -Write an equation that describes the following relationship: [`y`] varies directly as the fourth power of [`x`] and when [`x=[$x0]`], [`y=[$y0]`]. +Write an equation that describes the following relationship: [`y`] varies directly as the fourth power of [`x`] and when [`x=[$x0]`], [`y=[$y0]`]. -[`y=`] [_______________]{$ans1} [@ AnswerFormatHelp("formulas") @]* +[`y=`] [_______________]{$ans1} [@ helpLink("formulas") @]* diff --git a/Pending/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_18.pg b/Pending/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_18.pg index f34cf3b9c9..39ef7a1d74 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_18.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_18.pg @@ -23,7 +23,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "parserPopUp.pl", "PGcourse.pl", @@ -60,7 +60,7 @@ $fun = Formula("y=$h($n^x)"); BEGIN_PGML Find the formula for an exponential equation that passes through the points, ([$a],[$b]) and ([$c],[$d]). The exponential equation should be of the form [`y=ab^x`]. -[___________________]{$fun} [@ AnswerFormatHelp("equation") @]* +[___________________]{$fun} [@ helpLink("equation") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_21.pg b/Pending/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_21.pg index 72c7a267f2..2530df1285 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_21.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_21.pg @@ -23,7 +23,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "parserPopUp.pl", @@ -65,9 +65,9 @@ $fun = Formula("y=$h($n^x)"); # Main text BEGIN_PGML -Find the formula for an exponential equation that passes through the points ([$a],[$b]) and ([$c],[$d]). The exponential equation should be of the form [`y=ab^x`]. +Find the formula for an exponential equation that passes through the points ([$a],[$b]) and ([$c],[$d]). The exponential equation should be of the form [`y=ab^x`]. -[____________________]{$fun} [@ AnswerFormatHelp("equation") @]* +[____________________]{$fun} [@ helpLink("equation") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_23.pg b/Pending/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_23.pg index ec8807c620..f59256717a 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_23.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_23.pg @@ -24,7 +24,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "niceTables.pl", "parserPopUp.pl", @@ -74,9 +74,9 @@ END_TEXT BEGIN_PGML -[_________________]{$popup1} +[_________________]{$popup1} -[` f(x) `] =[___________________________]{$ans} [@ AnswerFormatHelp("formula") @]* +[` f(x) `] =[___________________________]{$ans} [@ helpLink("formula") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_24.pg b/Pending/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_24.pg index fcd7561ae8..238a26db3e 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_24.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_24.pg @@ -24,7 +24,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "niceTables.pl", "parserPopUp.pl", @@ -71,9 +71,9 @@ END_TEXT BEGIN_PGML -[_________________]{$popup} +[_________________]{$popup} -[` f(x) `] =[_________________________]{$ans} [@ AnswerFormatHelp("formula") @]* +[` f(x) `] =[_________________________]{$ans} [@ helpLink("formula") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_25.pg b/Pending/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_25.pg index fe21cae237..75578c5170 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_25.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_25.pg @@ -24,7 +24,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "niceTables.pl", "parserPopUp.pl", @@ -71,9 +71,9 @@ END_TEXT BEGIN_PGML -[_________________]{$popup} +[_________________]{$popup} -[` f(x) `] =[________________________]{$ans} [@ AnswerFormatHelp("formula") @]* +[` f(x) `] =[________________________]{$ans} [@ helpLink("formula") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_26.pg b/Pending/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_26.pg index bda124031a..89de47c3ca 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_26.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_26.pg @@ -24,7 +24,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "niceTables.pl", "parserPopUp.pl", @@ -71,9 +71,9 @@ END_TEXT BEGIN_PGML -[_________________]{$popup} +[_________________]{$popup} -[` f(x) `] =[_________________________]{$ans} [@ AnswerFormatHelp("formula") @]* +[` f(x) `] =[_________________________]{$ans} [@ helpLink("formula") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_28.pg b/Pending/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_28.pg index b4bbbf6a35..a68469230c 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_28.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_28.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -60,17 +60,17 @@ $answer3 = Compute($rate); BEGIN_PGML How much money is in an investment account at time [`t = [$t]`] (in years) if the account is represented by the formula, -[``A(t) = [$p]\left(1+\frac{[$r]}{12}\right)^{12t} ``] +[``A(t) = [$p]\left(1+\frac{[$r]}{12}\right)^{12t} ``] -[________________]{$answer1} [@ AnswerFormatHelp("number") @]* +[________________]{$answer1} [@ helpLink("number") @]* What is the principal value of the account? In other words, what is [`A(0)`]? -[____________]{$answer2} [@ AnswerFormatHelp("number") @]* +[____________]{$answer2} [@ helpLink("number") @]* What is the interest rate for the account? Enter your answer as a percentage. -[____________]{$answer3} [@ AnswerFormatHelp("number") @]* +[____________]{$answer3} [@ helpLink("number") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_4.pg b/Pending/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_4.pg index f43920b3f2..25399248c2 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_4.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_4.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "PGchoicemacros.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserRadioButtons.pl", "PGML.pl", "PGcourse.pl", @@ -38,12 +38,12 @@ TEXT(beginproblem()); $radio1 = RadioButtons( ["exponential function","linear function"], - "exponential function" + "exponential function" ); $radio2 = RadioButtons( ["exponential function","linear function"], - "linear function" + "linear function" ); # Main text @@ -52,27 +52,27 @@ BEGIN_PGML Determine whether the following statements represent an exponential function or a linear function. -+ The average annual population of a pack of wolves increases each year by 25 wolves. ++ The average annual population of a pack of wolves increases each year by 25 wolves. - [_______________]{$radio2} + [_______________]{$radio2} -+ The value of a coin collection has increased by 3.25% annually over the last 20 years. ++ The value of a coin collection has increased by 3.25% annually over the last 20 years. - [_______________]{$radio1} + [_______________]{$radio1} -+ A population of bacteria decreases by a factor of [`\frac{1}{4}`] every 24 hours. ++ A population of bacteria decreases by a factor of [`\frac{1}{4}`] every 24 hours. - [_______________]{$radio1} + [_______________]{$radio1} -+ For each training session, a personal trainer charges his clients $5 less than the previous training session. ++ For each training session, a personal trainer charges his clients $5 less than the previous training session. [______________]{$radio2} -+ The population of a certain country at time `t` is represented by the function [`f(t)=50000(1.02)^{.25t}`]. ++ The population of a certain country at time `t` is represented by the function [`f(t)=50000(1.02)^{.25t}`]. [______________]{$radio1} diff --git a/Pending/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_44.pg b/Pending/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_44.pg index 4d38ffc78d..4fc7a5e518 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_44.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_44.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -53,10 +53,10 @@ $ans=Compute("$answer"); BEGIN_PGML -For the function [`f(x)= [$a]([$b])^x`], find [`f([$c])`]. +For the function [`f(x)= [$a]([$b])^x`], find [`f([$c])`]. -[`f([$c])=`][_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`f([$c])=`][_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_45.pg b/Pending/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_45.pg index ac202bde0b..7f7977a80e 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_45.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_45.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -55,10 +55,10 @@ $answer = Compute("$calc")->reduce; BEGIN_PGML -For the function [`f(x)= [$f]`], find [`f([$d])`]. +For the function [`f(x)= [$f]`], find [`f([$d])`]. [`f([$d])=`] [_______________]{$answer} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* diff --git a/Pending/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_48.pg b/Pending/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_48.pg index 7bf35005b1..fdc5b01ba4 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_48.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_48.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -49,9 +49,9 @@ $ans = $f; # Main text BEGIN_PGML -For the function [`f(x)= [$a]([$b])^{-x+1}+[$c]`], find [`f([$d])`]. +For the function [`f(x)= [$a]([$b])^{-x+1}+[$c]`], find [`f([$d])`]. -[`f([$d])=`] [__________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`f([$d])=`] [__________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_61.pg b/Pending/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_61.pg index 7b52f2059a..e75987c00f 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_61.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_61.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -52,16 +52,16 @@ $ans2 = Compute("$b*e^($a*.08)"); BEGIN_PGML -The fox population in a certain region has an annual growth rate of [$a]% per year. In the year 2012, there were [$b] fox counted in the area. +The fox population in a certain region has an annual growth rate of [$a]% per year. In the year 2012, there were [$b] fox counted in the area. Write a function, [`f(t)`], that models the number of fox in the population at [`t`] years after 2012. Assume a continuous growth rate. -[`f(t)`]=[_______________]{$ans1} [@ AnswerFormatHelp("formula") @]* +[`f(t)`]=[_______________]{$ans1} [@ helpLink("formula") @]* What is the fox population predicted to be in 2020? -[_______________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans2} [@ helpLink("numbers") @]* diff --git a/Pending/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_65.pg b/Pending/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_65.pg index 86e443a369..5e4bf580ec 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_65.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_65.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextCurrency.pl", @@ -59,9 +59,9 @@ $ans=Compute("$c/(1+(($a*.01)/365))^(365*$b)"); BEGIN_PGML -[$name] wants to save $[$c] for a down payment on a home. How much will [$pronoun] need to invest in an account with [$a]% APR, compounding daily, in order to reach [$poss] goal in [$b] years? +[$name] wants to save $[$c] for a down payment on a home. How much will [$pronoun] need to invest in an account with [$a]% APR, compounding daily, in order to reach [$poss] goal in [$b] years? -$[_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +$[_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_11.pg b/Pending/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_11.pg index db0f37dbf4..a2cadea8aa 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_11.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_11.pg @@ -24,7 +24,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -66,22 +66,22 @@ $gr1->lb( new Label(5,8,'F', 'red','center','middle')); -add_functions($gr1, "2(0.69)^x for x in <-10,10>" . +add_functions($gr1, "2(0.69)^x for x in <-10,10>" . " using color:blue and weight:2"); -add_functions($gr1, "2(1.28)^x for x in <-10,10>" . +add_functions($gr1, "2(1.28)^x for x in <-10,10>" . " using color:red and weight:2"); -add_functions($gr1, "2(0.81)^x for x in <-10,10>" . +add_functions($gr1, "2(0.81)^x for x in <-10,10>" . " using color:red and weight:2"); -add_functions($gr1, "4(1.28)^x for x in <-10,10>" . +add_functions($gr1, "4(1.28)^x for x in <-10,10>" . " using color:orange and weight:2"); -add_functions($gr1, "2(1.59)^x for x in <-10,10>" . +add_functions($gr1, "2(1.59)^x for x in <-10,10>" . " using color:blue and weight:2"); -add_functions($gr1, "4(0.69)^x for x in <-10,10>" . +add_functions($gr1, "4(0.69)^x for x in <-10,10>" . " using color:black and weight:2"); $popup1 = PopUp(["?", "A","B", "C", "D", "E", "F"], diff --git a/Pending/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_19.pg b/Pending/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_19.pg index e68e4591af..7efe758aee 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_19.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_19.pg @@ -24,7 +24,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -65,22 +65,22 @@ $gr1->lb( new Label(7,8,'F', 'black','center','middle')); -add_functions($gr1, "5(.9)^x for x in <-10,10>" . +add_functions($gr1, "5(.9)^x for x in <-10,10>" . " using color:blue and weight:2"); -add_functions($gr1, "8(.7)^x for x in <-10,10>" . +add_functions($gr1, "8(.7)^x for x in <-10,10>" . " using color:red and weight:2"); -add_functions($gr1, "4(.5)^x for x in <-10,10>" . +add_functions($gr1, "4(.5)^x for x in <-10,10>" . " using color:black and weight:2"); -add_functions($gr1, "3(3)^x for x in <-10,10>" . +add_functions($gr1, "3(3)^x for x in <-10,10>" . " using color:orange and weight:2"); -add_functions($gr1, "2.2(1.8)^x for x in <-10,10>" . +add_functions($gr1, "2.2(1.8)^x for x in <-10,10>" . " using color:blue and weight:2"); -add_functions($gr1, "2(1.2)^x for x in <-10,10>" . +add_functions($gr1, "2(1.2)^x for x in <-10,10>" . " using color:black and weight:2"); $popup1 = PopUp(["?", "A","B", "C", "D", "E", "F"], diff --git a/Pending/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_27.pg b/Pending/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_27.pg index e95bc0971d..4db7d6b1c0 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_27.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_27.pg @@ -24,7 +24,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -74,16 +74,16 @@ size=>[600,600] ); -add_functions($grA, "$a^(x-$b) for x in <-6,6>" . +add_functions($grA, "$a^(x-$b) for x in <-6,6>" . " using color:blue and weight:2"); -add_functions($grB, "$a^(x+.5*$b) for x in <-6,6>" . +add_functions($grB, "$a^(x+.5*$b) for x in <-6,6>" . " using color:blue and weight:2"); -add_functions($grC, "$a^x+$b for x in <-6,6>" . +add_functions($grC, "$a^x+$b for x in <-6,6>" . " using color:blue and weight:2"); -add_functions($grD, "$a^x-$b for x in <-6,6>" . +add_functions($grD, "$a^x-$b for x in <-6,6>" . " using color:blue and weight:2"); @@ -119,7 +119,7 @@ $ans8 = List( Point("(0,$b+1)")); BEGIN_PGML -Consider the graph of [`f(x)=[$fun]`]. +Consider the graph of [`f(x)=[$fun]`]. Which of the following shows the related graph [`h(x)=[$transfun]`]? [_____________]{$popup1} @@ -129,21 +129,21 @@ Which of the following shows the related graph [`h(x)=[$transfun]`]? [_________ >>C. [@ image(insertGraph($grC), width=>300, height=>300), @]* D. [@ image(insertGraph($grD), width=>300, height=>300), @]*<< -What is the horizontal asymptote of [`f(x)`]? [_____________]{$popup2}=[_____________]{$ans1} [@ AnswerFormatHelp("equations") @]* +What is the horizontal asymptote of [`f(x)`]? [_____________]{$popup2}=[_____________]{$ans1} [@ helpLink("equations") @]* + +What is the domain of [`f(x)`]? [_____________]{$ans2} [@ helpLink("intervals") @]* -What is the domain of [`f(x)`]? [_____________]{$ans2} [@ AnswerFormatHelp("intervals") @]* +What is the range of [`f(x)`]? [_____________]{$ans3} [@ helpLink("intervals") @]* -What is the range of [`f(x)`]? [_____________]{$ans3} [@ AnswerFormatHelp("intervals") @]* +What is the [`y`]-intercept of [`f(x)`]? [_____________]{$ans4} [@ helpLink("points") @]* -What is the [`y`]-intercept of [`f(x)`]? [_____________]{$ans4} [@ AnswerFormatHelp("points") @]* - -What is the horizontal asymptote of [`h(x)`]? [_____________]{$popup2}=[_____________]{$ans5} [@ AnswerFormatHelp("equations") @]* +What is the horizontal asymptote of [`h(x)`]? [_____________]{$popup2}=[_____________]{$ans5} [@ helpLink("equations") @]* -What is the domain of [`h(x)`]? [_____________]{$ans6} [@ AnswerFormatHelp("intervals") @]* +What is the domain of [`h(x)`]? [_____________]{$ans6} [@ helpLink("intervals") @]* -What is the range of [`h(x)`]? [_____________]{$ans7} [@ AnswerFormatHelp("intervals") @]* +What is the range of [`h(x)`]? [_____________]{$ans7} [@ helpLink("intervals") @]* -What is the [`y`]-intercept of [`h(x)`]? [_____________]{$ans8} [@ AnswerFormatHelp("points") @]* +What is the [`y`]-intercept of [`h(x)`]? [_____________]{$ans8} [@ helpLink("points") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_28.pg b/Pending/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_28.pg index 7002aae72a..27456353bf 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_28.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_28.pg @@ -24,7 +24,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -75,22 +75,22 @@ size=>[600,600] -add_functions($grA, "$a^(x-$b) for x in <-6,6>" . +add_functions($grA, "$a^(x-$b) for x in <-6,6>" . " using color:blue and weight:2"); ($grA->fn)[0]->steps(2000); -add_functions($grB, "$a^(x+$b) for x in <-6,6>" . +add_functions($grB, "$a^(x+$b) for x in <-6,6>" . " using color:blue and weight:2"); ($grB->fn)[0]->steps(2000); -add_functions($grC, "$a^x+$b for x in <-6,6>" . +add_functions($grC, "$a^x+$b for x in <-6,6>" . " using color:blue and weight:2"); ($grC->fn)[0]->steps(2000); -add_functions($grD, "$a^x-$b for x in <-6,6>" . +add_functions($grD, "$a^x-$b for x in <-6,6>" . " using color:blue and weight:2"); ($grD->fn)[0]->steps(2000); @@ -127,7 +127,7 @@ $ans8 = List( Point("(0,$hint)")); BEGIN_PGML -Consider the graph of [`f(x)=[$fun]`]. +Consider the graph of [`f(x)=[$fun]`]. Which of the following shows the related graph [`h(x)=[$transfun]`]? [_____________]{$popup1} @@ -137,21 +137,21 @@ Which of the following shows the related graph [`h(x)=[$transfun]`]? [_________ >>C. [@ image(insertGraph($grC), width=>300, height=>300), @]* D. [@ image(insertGraph($grD), width=>300, height=>300), @]*<< -What is the horizontal asymptote of [`f(x)`]? [_____________]{$popup2}=[_____________]{$ans1} [@ AnswerFormatHelp("equations") @]* +What is the horizontal asymptote of [`f(x)`]? [_____________]{$popup2}=[_____________]{$ans1} [@ helpLink("equations") @]* + +What is the domain of [`f(x)`]? [_____________]{$ans2} [@ helpLink("intervals") @]* -What is the domain of [`f(x)`]? [_____________]{$ans2} [@ AnswerFormatHelp("intervals") @]* +What is the range of [`f(x)`]? [_____________]{$ans3} [@ helpLink("intervals") @]* -What is the range of [`f(x)`]? [_____________]{$ans3} [@ AnswerFormatHelp("intervals") @]* +What is the [`y`]-intercept of [`f(x)`]? [_____________]{$ans4} [@ helpLink("points") @]* -What is the [`y`]-intercept of [`f(x)`]? [_____________]{$ans4} [@ AnswerFormatHelp("points") @]* - -What is the horizontal asymptote of [`h(x)`]? [_____________]{$popup2}=[_____________]{$ans5} [@ AnswerFormatHelp("equations") @]* +What is the horizontal asymptote of [`h(x)`]? [_____________]{$popup2}=[_____________]{$ans5} [@ helpLink("equations") @]* -What is the domain of [`h(x)`]? [_____________]{$ans6} [@ AnswerFormatHelp("intervals") @]* +What is the domain of [`h(x)`]? [_____________]{$ans6} [@ helpLink("intervals") @]* -What is the range of [`h(x)`]? [_____________]{$ans7} [@ AnswerFormatHelp("intervals") @]* +What is the range of [`h(x)`]? [_____________]{$ans7} [@ helpLink("intervals") @]* -What is the [`y`]-intercept of [`h(x)`]? [_____________]{$ans8} [@ AnswerFormatHelp("points") @]* +What is the [`y`]-intercept of [`h(x)`]? [_____________]{$ans8} [@ helpLink("points") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_32.pg b/Pending/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_32.pg index 5cb5eafb3f..be1f3f1528 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_32.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_32.pg @@ -25,7 +25,7 @@ loadMacros( "PGML.pl", "MathObjects.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + ); TEXT(beginproblem()); @@ -51,17 +51,17 @@ BEGIN_PGML For the following exercises, start with the graph of [`f(x)=[$fun]`]. Then write a function, [`g(x)`], that results from the given transformation. -Shift [`f(x)`] [`[$b]`] units upward: [`g(x)`]=[_________________]{$ans1}[@ AnswerFormatHelp("formula") @]* +Shift [`f(x)`] [`[$b]`] units upward: [`g(x)`]=[_________________]{$ans1}[@ helpLink("formula") @]* -Shift [`f(x)`] [`[$c]`] units downward: [`g(x)`]=[_________________]{$ans2}[@ AnswerFormatHelp("formula") @]* +Shift [`f(x)`] [`[$c]`] units downward: [`g(x)`]=[_________________]{$ans2}[@ helpLink("formula") @]* -Shift [`f(x)`] [`[$d]`] units left: [`g(x)`]=[_________________]{$ans3}[@ AnswerFormatHelp("formula") @]* +Shift [`f(x)`] [`[$d]`] units left: [`g(x)`]=[_________________]{$ans3}[@ helpLink("formula") @]* -Shift [`f(x)`] [`[$e]`] units right: [`g(x)`]=[_________________]{$ans4}[@ AnswerFormatHelp("formula") @]* +Shift [`f(x)`] [`[$e]`] units right: [`g(x)`]=[_________________]{$ans4}[@ helpLink("formula") @]* -Reflect [`f(x)`] about the [`x`]-axis: [`g(x)`]=[_________________]{$ans5}[@ AnswerFormatHelp("formula") @]* +Reflect [`f(x)`] about the [`x`]-axis: [`g(x)`]=[_________________]{$ans5}[@ helpLink("formula") @]* -Reflect [`f(x)`] about the [`y`]-axis: [`g(x)`]=[_________________]{$ans6}[@ AnswerFormatHelp("formula") @]* +Reflect [`f(x)`] about the [`y`]-axis: [`g(x)`]=[_________________]{$ans6}[@ helpLink("formula") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_43.pg b/Pending/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_43.pg index 322102d366..caad712836 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_43.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_43.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -55,7 +55,7 @@ $ans=Compute("$calc"); BEGIN_PGML -For the exponential function [``g(x)=\frac{1}{[$a]}[$fun]``], find [`g([$d])`]. +For the exponential function [``g(x)=\frac{1}{[$a]}[$fun]``], find [`g([$d])`]. [`g([$d])=`][_______________]{$ans} diff --git a/Pending/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_44.pg b/Pending/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_44.pg index 819ae42284..8ac21946a3 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_44.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_44.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); diff --git a/Pending/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_45.pg b/Pending/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_45.pg index 18e532c00d..83e80f9a43 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_45.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_45.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -54,7 +54,7 @@ $ans = Compute("$calc"); BEGIN_PGML Evaluate the exponential function `h(x)=[$fun]` for `h([$c])`. Round to 4 decimal places, if necessary. -`h([$c])` = [_______________]{$ans} [@ AnswerFormatHelp("formula") @]* +`h([$c])` = [_______________]{$ans} [@ helpLink("formula") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_7.pg b/Pending/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_7.pg index 09e0b531e7..65802bd50d 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_7.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_7.pg @@ -25,7 +25,7 @@ loadMacros( "PGchoicemacros.pl", "contextLimitedPoint.pl", "parserAssignment.pl", -"AnswerFormatHelp.pl", + "contextInequalitySetBuilder.pl", "PGML.pl", "niceTables.pl", @@ -65,15 +65,15 @@ $ans4 = Compute("(-inf,-$a)"); BEGIN_PGML -The graph of [`f(x)=[$fun]`] is reflected across the [`x`]-axis, shifted downward [$a] units, and then shifted left [$b] units. +The graph of [`f(x)=[$fun]`] is reflected across the [`x`]-axis, shifted downward [$a] units, and then shifted left [$b] units. -Let [`g(x)`] represent the new function. What is an equation for this function? [`g(x)`] = [_________________]{$ans1} [@ AnswerFormatHelp("formula") @]* +Let [`g(x)`] represent the new function. What is an equation for this function? [`g(x)`] = [_________________]{$ans1} [@ helpLink("formula") @]* -What is the y-intercept of [`g(x)`]? Enter the answer as an ordered pair. [_________________]{$ans2} [@ AnswerFormatHelp("points") @]* +What is the y-intercept of [`g(x)`]? Enter the answer as an ordered pair. [_________________]{$ans2} [@ helpLink("points") @]* -What is the domain of [`g(x)`]? Enter the answer as an interval. [_________________]{$ans3} [@ AnswerFormatHelp("intervals") @]* +What is the domain of [`g(x)`]? Enter the answer as an interval. [_________________]{$ans3} [@ helpLink("intervals") @]* -What is the range of [`g(x)`]? Enter the answer as an interval. [_________________]{$ans4} [@ AnswerFormatHelp("intervals") @]* +What is the range of [`g(x)`]? Enter the answer as an interval. [_________________]{$ans4} [@ helpLink("intervals") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_9.pg b/Pending/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_9.pg index 76222200a3..2fe5d4efcc 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_9.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_9.pg @@ -24,7 +24,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -74,19 +74,19 @@ grid=>[10,10], size=>[600,600] ); -add_functions($gr, "$a($b)^x for x in <-6,10>" . +add_functions($gr, "$a($b)^x for x in <-6,10>" . " using color:blue and weight:2"); -add_functions($gr1, "$a($b)^-x for x in <-10,6>" . +add_functions($gr1, "$a($b)^-x for x in <-10,6>" . " using color:blue and weight:2"); -add_functions($gr2, "-$a($b)^(x) for x in <-6,10>" . +add_functions($gr2, "-$a($b)^(x) for x in <-6,10>" . " using color:blue and weight:2"); -add_functions($gr3, "-$a($b)^(-x) for x in <-10,8>" . +add_functions($gr3, "-$a($b)^(-x) for x in <-10,8>" . " using color:blue and weight:2"); -add_functions($gr4, "-$a(3*$b)^(x) for x in <-10,10>" . +add_functions($gr4, "-$a(3*$b)^(x) for x in <-10,10>" . " using color:blue and weight:2"); Context("Numeric"); @@ -118,16 +118,16 @@ The graph of [`f(x)=[$fun]`] is given below (click on graph to enlarge): -Let [`g(x)`] be the reflection of [`f(x)`] across the [`x`]-axis. Which of the following graphs represents the graph of [`g(x)`]? [_________________]{$popup1} +Let [`g(x)`] be the reflection of [`f(x)`] across the [`x`]-axis. Which of the following graphs represents the graph of [`g(x)`]? [_________________]{$popup1} ->>A. [@ image(insertGraph($gr1), width=>200, height=>200), @]* B. [@ image(insertGraph($gr2), width=>200, height=>200), @]* << +>>A. [@ image(insertGraph($gr1), width=>200, height=>200), @]* B. [@ image(insertGraph($gr2), width=>200, height=>200), @]* << >>C. [@ image(insertGraph($gr3), width=>200, height=>200), @]* D. [@ image(insertGraph($gr4), width=>200, height=>200), @]* << -What is the equation for [`g(x)`]? [`g(x)`]= [_________________]{$ans1} [@ AnswerFormatHelp("formulas") @]* +What is the equation for [`g(x)`]? [`g(x)`]= [_________________]{$ans1} [@ helpLink("formulas") @]* -What is the [`y`]-intercept of [`g(x)`]? Enter an ordered pair for the intercept. [_________________]{$ans2} [@ AnswerFormatHelp("points") @]* +What is the [`y`]-intercept of [`g(x)`]? Enter an ordered pair for the intercept. [_________________]{$ans2} [@ helpLink("points") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_9a.pg b/Pending/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_9a.pg index 0d22319533..b49bf42e74 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_9a.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.2/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_2_9a.pg @@ -24,7 +24,7 @@ loadMacros( "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -77,27 +77,27 @@ grid=>[8,8], size=>[600,600] ); -add_functions($gr, "($a*$b^x) for x in <-8,8>" . +add_functions($gr, "($a*$b^x) for x in <-8,8>" . " using color:blue and weight:2"); ($gr->fn)[0]->steps(2000); -add_functions($gr1, "($a*$b^(x+$c)-$d) for x in <-8,8>" . +add_functions($gr1, "($a*$b^(x+$c)-$d) for x in <-8,8>" . " using color:blue and weight:2"); ($gr1->fn)[0]->steps(2000); -add_functions($gr2, "(-$a*$b^(x)-$c) for x in <-8,8>" . +add_functions($gr2, "(-$a*$b^(x)-$c) for x in <-8,8>" . " using color:blue and weight:2"); ($gr2->fn)[0]->steps(2000); -add_functions($gr3, "($a*$b^(x-$d)-$c) for x in <-8,8>" . +add_functions($gr3, "($a*$b^(x-$d)-$c) for x in <-8,8>" . " using color:blue and weight:2"); ($gr3->fn)[0]->steps(2000); -add_functions($gr4, "($a*$b^(x+$d)+$c) for x in <-8,8>" . +add_functions($gr4, "($a*$b^(x+$d)+$c) for x in <-8,8>" . " using color:blue and weight:2"); ($gr4->fn)[0]->steps(2000); @@ -136,11 +136,11 @@ The graph of [`f(x)=[$fun]`] is given below (click on graph to enlarge): Let [`g(x)`] be the transformation of [`f(x)`] up [`[$c]`] units and left [`[$d]`] units. Which of the following graphs represents the graph of [`g(x)`]? [_________________]{$popup1} ->>A. [@ image(insertGraph($gr1), width=>200, height=>200), @]* B. [@ image(insertGraph($gr2), width=>200, height=>200), @]* << +>>A. [@ image(insertGraph($gr1), width=>200, height=>200), @]* B. [@ image(insertGraph($gr2), width=>200, height=>200), @]* << >>C. [@ image(insertGraph($gr4), width=>200, height=>200), @]* D. [@ image(insertGraph($gr3), width=>200, height=>200), @]* << -What is the equation for [`g(x)`]? [`g(x)`]= [_________________]{$ans1} [@ AnswerFormatHelp("formulas") @]* +What is the equation for [`g(x)`]? [`g(x)`]= [_________________]{$ans1} [@ helpLink("formulas") @]* What is the horizontal asymptote of [`g(x)`]? Enter the equation of a line. [_________________]{$popup2} = [_________________]{$ans2} diff --git a/Pending/RRCC/College_Algebra/MAT121/6.2/VideoH.pg b/Pending/RRCC/College_Algebra/MAT121/6.2/VideoH.pg index b4d1b97367..88112836f4 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.2/VideoH.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.2/VideoH.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## KEYWORDS() @@ -25,7 +25,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -48,8 +48,8 @@ $dom=Interval("(-infinity,infinity)"); $ran=Interval("($b,infinity)"); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -61,18 +61,18 @@ BEGIN_PGML >> [$video]* << ->> YouTube video of David Johnson, internet mathemagician, embedded using an iframe. << +>> YouTube video of David Johnson, internet mathemagician, embedded using an iframe. << >> If the video does not work, [@ htmlLink("https://youtu.be/sR7fNt0uoB8","click here to go to YouTube directly.") @]* << #Video Quiz: Find the equation for the graph of [` [$c]^x`] shifted right by [`[$a]`] and up by [`[$b]`]. -+ [`f(x)=`] [_______________]{$f} [@ AnswerFormatHelp("formulas") @]* ++ [`f(x)=`] [_______________]{$f} [@ helpLink("formulas") @]* -+ The domain of [`f(x)`] is: [_______________]{$dom} [@ AnswerFormatHelp("intervals") @]* ++ The domain of [`f(x)`] is: [_______________]{$dom} [@ helpLink("intervals") @]* -+ The range of [`f(x)`] is: [_______________]{$ran} [@ AnswerFormatHelp("intervals") @]* ++ The range of [`f(x)`] is: [_______________]{$ran} [@ helpLink("intervals") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_09.pg b/Pending/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_09.pg index dc4dddbe9b..0e82ec1357 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_09.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_09.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Exponential and logarithmic equations) @@ -11,32 +11,32 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", "PGML.pl", "PGcourse.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); install_problem_grader(~~&std_problem_grader); - + # A random integer $a=non_zero_random(2,8,1); @@ -53,7 +53,7 @@ do {$n2 = random(0,10,1);} until ($n2!= $n1); $var1 = $letter[$n1] ; $var2=$letter[$n2] ; -# Adding the two letters as variables +# Adding the two letters as variables Context()->variables->add($var1 => "Real"); Context()->variables->set($var1=>{limits=>[1,5]}); Context()->variables->add($var2 => "Real"); @@ -62,7 +62,7 @@ Context()->variables->set($var2=>{limits=>[1,5]}); # The two sides of the correct answer $ans1=Formula("$a"); $ans2=Formula("$var1^$var2"); - + # Allows for the correct equation to be given in either order @@ -91,33 +91,33 @@ $multians = MultiAnswer($ans1, $ans2)->with( - - + + ########################### # Main text - + BEGIN_PGML -Rewrite the following equation in exponential form. +Rewrite the following equation in exponential form. + +[`\log_[$var1]([$a])=[$var2] `] + + [____]{$multians} [`=`] [____]{$multians} [@ helpLink("numbers") @]* + -[`\log_[$var1]([$a])=[$var2] `] - - [____]{$multians} [`=`] [____]{$multians} [@ AnswerFormatHelp("numbers") @]* - - END_PGML - - - + + + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_11.pg b/Pending/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_11.pg index 71b7397a07..51657ad4c6 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_11.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_11.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Exponential and logarithmic equations) @@ -11,17 +11,17 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -30,16 +30,16 @@ loadMacros( ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); install_problem_grader(~~&std_problem_grader); - -# A random integer + +# A random integer $a=non_zero_random(2,8,1); # Two random integer to grab letters @@ -53,7 +53,7 @@ do {$n2 = random(0,10,1);} until ($n2!= $n1); $var1 =$letter[$n1] ; $var2=$letter[$n2] ; -# Adding the two letters as variables +# Adding the two letters as variables Context()->variables->add($var1 => "Real"); Context()->variables->set($var1=>{limits=>[1,5]}); Context()->variables->add($var2 => "Real"); @@ -62,7 +62,7 @@ Context()->variables->set($var2=>{limits=>[1,5]}); # The two sides of the correct answer $ans1=Formula("$a"); $ans2=Formula("$var1^$var2"); - + # Allows for the correct equation to be given in either order @@ -86,31 +86,31 @@ $multians = MultiAnswer($ans1, $ans2)->with( } } ); - - + + ########################### # Main text - + BEGIN_PGML -Rewrite the following equation in exponential form. +Rewrite the following equation in exponential form. + +[`\log_[$var1]([$a])=[$var2] `] + +[____]{$multians} [`=`] [____]{$multians} [@ helpLink("numbers") @]* -[`\log_[$var1]([$a])=[$var2] `] - -[____]{$multians} [`=`] [____]{$multians} [@ AnswerFormatHelp("numbers") @]* - END_PGML - - + + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_17.pg b/Pending/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_17.pg index f958a20dc3..dffdacf890 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_17.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_17.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject() ## DBchapter() ## DBsection() @@ -11,31 +11,31 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", "PGML.pl", "PGcourse.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); - + # Two random integer to grab letters $n1=random(0,10,1); $n2=random(0,10,1); @@ -47,14 +47,14 @@ $n2=random(0,10,1); $var1 = $letter[$n1] ; $var2=$letter[$n2] ; -# Adding the two letters as variables +# Adding the two letters as variables Context()->variables->add($var1 => "Real"); Context()->variables->add($var2 => "Real"); # The two sides of the correct answer $ans1=Formula("$var1"); $ans2=Formula("log($var2)"); - + # Allows for the correct equation to be given in either order $multians = MultiAnswer($ans1, $ans2)->with( @@ -65,36 +65,36 @@ $multians = MultiAnswer($ans1, $ans2)->with( my ( $f1, $f2) = @{$correct}; if ( ( $f1 == $stu1 && $f2 == $stu2) || ( $f1 == $stu2 && $f2 == $stu1) ) -{return [1,1];} - +{return [1,1];} + else { return [0,0]; } - + } ); - - + + ########################### # Main text - + BEGIN_PGML Rewrite the following equation in logarithmic form. -[`10^{[$var1]}=[$var2] `] - - [____]{$multians} [`=`] [____]{$multians} [@ AnswerFormatHelp("logarithms") @]* - +[`10^{[$var1]}=[$var2] `] + + [____]{$multians} [`=`] [____]{$multians} [@ helpLink("logarithms") @]* + END_PGML - - + + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_19.pg b/Pending/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_19.pg index 55dbe9eb19..59a2416c51 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_19.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_19.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Exponential and logarithmic equations) @@ -11,32 +11,32 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", "PGML.pl", "PGcourse.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); install_problem_grader(~~&std_problem_grader); - + # Two random integer to grab letters $n1=random(0,10,1); do {$n2 = random(0,10,1);} until ($n2!= $n1); @@ -49,7 +49,7 @@ do {$n2 = random(0,10,1);} until ($n2!= $n1); $var1 = $letter[$n1] ; $var2=$letter[$n2] ; -# Adding the letters as variables +# Adding the letters as variables Context()->variables->add($var1 => "Real"); Context()->variables->add($var2 => "Real"); Context()->variables->set($var2=>{limits=>[5,10]}); @@ -58,7 +58,7 @@ Context()->variables->add(e => "Real"); # The two sides of the correct answer $ans1=Formula("$var1"); $ans2=Formula("ln($var2)"); - + # Allows for the correct equation to be given in either order @@ -82,31 +82,31 @@ $multians = MultiAnswer($ans1, $ans2)->with( } } ); - - + + ########################### # Main text - + BEGIN_PGML -Rewrite the following equation in logarithmic form. +Rewrite the following equation in logarithmic form. + +[`e^{[$var1]}=[$var2] `] + + [____]{$multians} [`=`] [____]{$multians} [@ helpLink("logarithms") @]* -[`e^{[$var1]}=[$var2] `] - - [____]{$multians} [`=`] [____]{$multians} [@ AnswerFormatHelp("logarithms") @]* - END_PGML - - + + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_21.pg b/Pending/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_21.pg index 7ec5f461b1..f6629b9b53 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_21.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_21.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject() ## DBchapter() ## DBsection() @@ -11,31 +11,31 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", "PGML.pl", "PGcourse.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); - + $var1=non_zero_random(0,5,1); $var2=Formula("10^$var1") ; @@ -43,7 +43,7 @@ $var2=Formula("10^$var1") ; # The two sides of the correct answer $ans1=Formula("log($var2)"); $ans2=Formula("$var1"); - + # Allows for the correct equation to be given in either order $multians = MultiAnswer($ans1, $ans2)->with( @@ -54,39 +54,39 @@ $multians = MultiAnswer($ans1, $ans2)->with( my ( $f1, $f2) = @{$correct}; if ( ( $f1 == $stu1 && $f2 == $stu2) || ( $f1 == $stu2 && $f2 == $stu1) ) -{return [1,1];} - +{return [1,1];} + else { return [0,0]; } - + } ); - - + + ########################### # Main text - + BEGIN_PGML -Rewrite the following equation in logarithmic form. +Rewrite the following equation in logarithmic form. + +[`10^{[$var1]}=[$var2] `] + + + [________]{$multians} [`=`] [__________]{$multians} [@ helpLink("logarithms") @]* -[`10^{[$var1]}=[$var2] `] - - [________]{$multians} [`=`] [__________]{$multians} [@ AnswerFormatHelp("logarithms") @]* - - END_PGML - - - + + + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_23.pg b/Pending/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_23.pg index 7706d87c34..ce1c353b43 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_23.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_23.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Exponential and logarithmic equations) @@ -11,32 +11,32 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - + ### Currently this problem DOES NOT require the fraction to be simplified ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", "PGML.pl", "PGcourse.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); install_problem_grader(~~&std_problem_grader); - + $numerator=non_zero_random(1,100,1); $denominator=non_zero_random(1,100,1); @@ -81,33 +81,33 @@ $multians = MultiAnswer($ans1, $ans2)->with( } } ); - - + + ########################### # Main text - + BEGIN_PGML -Rewrite the following equation in logarithmic form. +Rewrite the following equation in logarithmic form. + +[`e^{[$var1]}=\frac{[$numerator]}{[$denominator]} `] + + + [____]{$multians} [`=`] [____]{$multians} [@ helpLink("logarithms") @]* -[`e^{[$var1]}=\frac{[$numerator]}{[$denominator]} `] - - [____]{$multians} [`=`] [____]{$multians} [@ AnswerFormatHelp("logarithms") @]* - - END_PGML - - - + + + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_25.pg b/Pending/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_25.pg index dddd227bef..6164a55511 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_25.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_25.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Exponential and logarithmic equations) @@ -11,32 +11,32 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", "PGML.pl", "PGcourse.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); install_problem_grader(~~&std_problem_grader); - + # Two random integer to grab letters $n1=random(0,10,1); do {$n2 = random(0,10,1);} until ($n2!= $n1); @@ -48,7 +48,7 @@ do {$n2 = random(0,10,1);} until ($n2!= $n1); $var1 = $letter[$n1] ; $var2=$letter[$n2] ; -# Adding the two letters as variables +# Adding the two letters as variables Context()->variables->add($var1 => "Real"); Context()->variables->add($var2 => "Real"); Context()->variables->set($var2=>{limits=>[5,10]}); @@ -56,7 +56,7 @@ Context()->variables->set($var2=>{limits=>[5,10]}); # The two sides of the correct answer $ans1=Formula("$var1"); $ans2=Formula("log($var2)"); - + # Allows for the correct equation to be given in either order @@ -80,31 +80,31 @@ $multians = MultiAnswer($ans1, $ans2)->with( } } ); - - + + ########################### # Main text - + BEGIN_PGML -Rewrite the following equation in logarithmic form. +Rewrite the following equation in logarithmic form. + +[`[$var2] = 10^{[$var1]} `] + +[____]{$multians} `=` [____]{$multians} [@ helpLink("logarithms") @]* -[`[$var2] = 10^{[$var1]} `] - -[____]{$multians} `=` [____]{$multians} [@ AnswerFormatHelp("logarithms") @]* - END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_27.pg b/Pending/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_27.pg index 657bbb715e..516868045c 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_27.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_27.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Exponential and logarithmic equations) @@ -11,61 +11,61 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", "PGML.pl", "PGcourse.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); $base = random(2, 8, 1); $exponent = non_zero_random(-8, -2, 1); - + # The two sides of the correct answer $ans=Formula("$base^$exponent"); - - + + ########################### # Main text - + BEGIN_PGML -Solve for [`x`] by converting the logarithmic equation to exponential form. +Solve for [`x`] by converting the logarithmic equation to exponential form. + +[`\log_{[$base]}(x) = [$exponent] `] + +[`x =`] [____]{$ans} [@ helpLink("numbers") @]* -[`\log_{[$base]}(x) = [$exponent] `] - -[`x =`] [____]{$ans} [@ AnswerFormatHelp("numbers") @]* - END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_29.pg b/Pending/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_29.pg index 67d889e1fd..1d952997ef 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_29.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_29.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Exponential and logarithmic equations) @@ -11,27 +11,27 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", "PGML.pl", "PGcourse.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -45,39 +45,39 @@ $n1=random(0,10,1); # Grabbing a letter $base = $letter[$n1] ; -# Adding the letters as variables +# Adding the letters as variables Context()->variables->add($base => "Real"); Context()->variables->set($base=>{limits=>[1,5]}); $exponent = non_zero_random(2, 6, 1); - + # The two sides of the correct answer $ans=Formula("$base^$exponent"); - - + + ########################### # Main text - + BEGIN_PGML -Solve for [`x`] by converting the logarithmic equation to exponential form +Solve for [`x`] by converting the logarithmic equation to exponential form + + [`\log_{[$base]}(x) = [$exponent] `] + + [`x =`] [____]{$ans} [@ helpLink("numbers") @]* - [`\log_{[$base]}(x) = [$exponent] `] - - [`x =`] [____]{$ans} [@ AnswerFormatHelp("numbers") @]* - END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_35.pg b/Pending/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_35.pg index 8b3d174f6c..af518b6cd7 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_35.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_35.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Exponential and logarithmic equations) @@ -11,61 +11,61 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", "PGML.pl", "PGcourse.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); $exponent = non_zero_random(2, 8, 1); - + # The two sides of the correct answer $ans=Formula("e^$exponent"); - - + + ########################### # Main text - + BEGIN_PGML -Solve for [`x`] by converting the logarithmic equation to exponential form. +Solve for [`x`] by converting the logarithmic equation to exponential form. + + [`\ln(x) = [$exponent] `] + + [`x =`] [____]{$ans} [@ helpLink("numbers") @]* - [`\ln(x) = [$exponent] `] - - [`x =`] [____]{$ans} [@ AnswerFormatHelp("numbers") @]* - END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_41.pg b/Pending/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_41.pg index bb3b1d59a5..2e376f1b94 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_41.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_41.pg @@ -1,7 +1,7 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Properties of logarithms) @@ -10,27 +10,27 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", "PGML.pl", "PGcourse.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -38,34 +38,34 @@ Context("Numeric"); $var1 = non_zero_random(2, 8, 0.01); $var2 = non_zero_random(2, 8, 1); - + # The two sides of the correct answer $ans=Formula("$var1+$var2"); - - + + ########################### # Main text - + BEGIN_PGML Use the definition of common and natural logarithms to simplify. -[`e^{\ln([$var1])} + [$var2] `] +[`e^{\ln([$var1])} + [$var2] `] + +[____]{$ans} [@ helpLink("numbers") @]* -[____]{$ans} [@ AnswerFormatHelp("numbers") @]* - END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_47.pg b/Pending/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_47.pg index 94c6957316..e10c595d3d 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_47.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_47.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject() ## DBchapter() ## DBsection() @@ -11,17 +11,17 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", @@ -29,10 +29,10 @@ loadMacros( "PGcourse.pl", "contextFraction.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -40,39 +40,39 @@ Context("Numeric"); $var1 = random(-5, 0, 1); -#This is not behaving correct. If va1=-2, var2 = 1/8. I don't get it. +#This is not behaving correct. If va1=-2, var2 = 1/8. I don't get it. Context("Fraction"); $var2 = Fraction(1,10^abs($var1)); - + Context("Numeric"); # The correct answer $ans=$var1; - - + + ########################### # Main text - + BEGIN_PGML Evaluate the common logarithmic expression without using a calculator. - [`\log\left([$var2]\right) `] - - [____]{$ans} [@ AnswerFormatHelp("numbers") @]* + [`\log\left([$var2]\right) `] + + [____]{$ans} [@ helpLink("numbers") @]* END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_49.pg b/Pending/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_49.pg index c380ae376d..c2df771b8c 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_49.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_49.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Properties of logarithms) @@ -11,27 +11,27 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", "PGML.pl", "PGcourse.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -41,34 +41,34 @@ $var1 = random(-5, 0, 1); $var2 = non_zero_random(2, 8, 1); $var3 = list_random(10, 100, 1000, 10000); - + # The correct answer $ans=$var2*$var1*(log10($var3)); - - + + ########################### # Main text - + BEGIN_PGML Evaluate the common logarithmic expression without using a calculator. - [`[$var2]\log([$var3]^{[$var1]}) `] - - [_____________]{$ans} [@ AnswerFormatHelp("numbers") @]* - + [`[$var2]\log([$var3]^{[$var1]}) `] + + [_____________]{$ans} [@ helpLink("numbers") @]* + END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_53.pg b/Pending/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_53.pg index c380ae376d..c2df771b8c 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_53.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_53.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Properties of logarithms) @@ -11,27 +11,27 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", "PGML.pl", "PGcourse.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -41,34 +41,34 @@ $var1 = random(-5, 0, 1); $var2 = non_zero_random(2, 8, 1); $var3 = list_random(10, 100, 1000, 10000); - + # The correct answer $ans=$var2*$var1*(log10($var3)); - - + + ########################### # Main text - + BEGIN_PGML Evaluate the common logarithmic expression without using a calculator. - [`[$var2]\log([$var3]^{[$var1]}) `] - - [_____________]{$ans} [@ AnswerFormatHelp("numbers") @]* - + [`[$var2]\log([$var3]^{[$var1]}) `] + + [_____________]{$ans} [@ helpLink("numbers") @]* + END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/RRCC/College_Algebra/MAT121/6.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_36.pg b/Pending/RRCC/College_Algebra/MAT121/6.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_36.pg index 5f77eee43a..1872449635 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_36.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_36.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -45,11 +45,11 @@ Context()->functions->disable("log","log10","ln"); # Main text BEGIN_PGML -Use the definition of logarithms to completely simplify. +Use the definition of logarithms to completely simplify. -[`\log([$m]^[$p])`] +[`\log([$m]^[$p])`] -[_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/6.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_39.pg b/Pending/RRCC/College_Algebra/MAT121/6.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_39.pg index 00387dc471..d9e4c60e4d 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_39.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_39.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -42,11 +42,11 @@ Context()->functions->disable("log","log10","ln"); # Main text BEGIN_PGML -Use the definition of logarithms to completely simplify. +Use the definition of logarithms to completely simplify. -[``e^{\ln([$m])}``] +[``e^{\ln([$m])}``] -[_______________]{$m} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$m} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/6.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_43.pg b/Pending/RRCC/College_Algebra/MAT121/6.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_43.pg index 634e8f35cb..11e70485f6 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_43.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_43.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -43,11 +43,11 @@ Context()->functions->disable("log","log10","ln"); # Main text BEGIN_PGML -Use the definition of logarithms to completely simplify. +Use the definition of logarithms to completely simplify. -[`\log_{[$b]}(\sqrt{[$b]})`] +[`\log_{[$b]}(\sqrt{[$b]})`] -[_______________]{"1/2"} [@ AnswerFormatHelp("numbers") @]* +[_______________]{"1/2"} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/6.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_44.pg b/Pending/RRCC/College_Algebra/MAT121/6.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_44.pg index d9b2629c02..8013da83d3 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_44.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_44.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -49,9 +49,9 @@ Context()->functions->disable("log","log10","ln"); BEGIN_PGML Evaluate the following without using a calculator. Simplify completely. -[`\log_{[$b]}\left(\frac{1}{[$denom]}\right)+[$k]`] +[`\log_{[$b]}\left(\frac{1}{[$denom]}\right)+[$k]`] -[_______________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/6.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_51.pg b/Pending/RRCC/College_Algebra/MAT121/6.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_51.pg index 7ac2beb4a5..af65448a83 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_51.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.3/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_51.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -43,17 +43,17 @@ BEGIN_PGML Evaluate the following without using a calculator. Simplify completely. -[`\ln(1)=`] [_______________]{"0"} [@ AnswerFormatHelp("numbers") @]* +[`\ln(1)=`] [_______________]{"0"} [@ helpLink("numbers") @]* + +[`\log(1)=`] [_______________]{"0"} [@ helpLink("numbers") @]* -[`\log(1)=`] [_______________]{"0"} [@ AnswerFormatHelp("numbers") @]* +[`\log_b(1)=`] [_______________]{"0"} [@ helpLink("numbers") @]* -[`\log_b(1)=`] [_______________]{"0"} [@ AnswerFormatHelp("numbers") @]* +[`\log(10)=`] [_______________]{"1"} [@ helpLink("numbers") @]* -[`\log(10)=`] [_______________]{"1"} [@ AnswerFormatHelp("numbers") @]* +[`\ln(e)=`] [_______________]{"1"} [@ helpLink("numbers") @]* -[`\ln(e)=`] [_______________]{"1"} [@ AnswerFormatHelp("numbers") @]* - END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_15.pg b/Pending/RRCC/College_Algebra/MAT121/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_15.pg index 92ec03ee0e..0475332993 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_15.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_15.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "parserPopUp.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -58,9 +58,9 @@ BEGIN_PGML Find the domain and vertical asymptote of [`` f(x)=[$f] ``]. Enter your solutions in interval notation. -Domain: [_______________]{$ans1} [@ AnswerFormatHelp("intervals") @]* +Domain: [_______________]{$ans1} [@ helpLink("intervals") @]* -Vertical asymptote: [________]{$popup} [________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +Vertical asymptote: [________]{$popup} [________]{$ans2} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_39.pg b/Pending/RRCC/College_Algebra/MAT121/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_39.pg index 81594bc7e7..4a90b8aeab 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_39.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_39.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject() ## DBchapter() ## DBsection() @@ -11,29 +11,29 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", "PGcourse.pl", "contextLimitedPoint.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup @@ -99,7 +99,7 @@ Context("Numeric"); if ( $chooser == 1) { - + $popup1 = PopUp( ["?","Green","Red", "Blue", "Black"], "Green", ); @@ -111,10 +111,10 @@ $popup2 = PopUp( $popup3 = PopUp( ["?","Green","Red", "Blue", "Black"], "Blue", ); -} +} elsif ( $chooser == 2 ) { - + $popup1 = PopUp( ["?","Green","Red", "Blue", "Black"], "Black", ); @@ -138,7 +138,7 @@ $popup2 = PopUp( $popup3 = PopUp( ["?","Green","Red", "Blue", "Black"], "Green", ); -} +} else { @@ -163,7 +163,7 @@ $popup3 = PopUp( ########################### # Main text - + BEGIN_PGML >>Match each equation with its graph. << @@ -177,14 +177,14 @@ BEGIN_PGML [$chooser] END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/RRCC/College_Algebra/MAT121/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_41.pg b/Pending/RRCC/College_Algebra/MAT121/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_41.pg index 5e1359bd45..d75dd5b8cd 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_41.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_41.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Graphs) @@ -11,29 +11,29 @@ ## Author(Michael Sulock; EDIT: James Morski 10/19/2017) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", "PGcourse.pl", "contextLimitedPoint.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup @@ -157,7 +157,7 @@ $popup = PopUp( ########################### # Main text - + BEGIN_PGML >>Which of the following is the graph of [`f(x)=\log_{2}(x+[$constant])`] << @@ -167,14 +167,14 @@ BEGIN_PGML END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/RRCC/College_Algebra/MAT121/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_43.pg b/Pending/RRCC/College_Algebra/MAT121/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_43.pg index 3bc64f3777..1e2699b28f 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_43.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_43.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Graphs) @@ -11,29 +11,29 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", "PGcourse.pl", "contextLimitedPoint.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup @@ -83,7 +83,7 @@ $popup = PopUp( ########################### # Main text - + BEGIN_PGML >>Which of the following displays the graph of [`f(x)=\ln(-x)`] << @@ -94,14 +94,14 @@ BEGIN_PGML END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/RRCC/College_Algebra/MAT121/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_45.pg b/Pending/RRCC/College_Algebra/MAT121/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_45.pg index e6d4506b93..46b5a5f324 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_45.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.4/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_45.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Graphs) @@ -11,29 +11,29 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", "PGcourse.pl", "contextLimitedPoint.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup @@ -103,7 +103,7 @@ $popup = PopUp( ########################### # Main text - + BEGIN_PGML >>Which of the following displays the graph of [`f(x)=\log([$shiftIn]+x)`] << @@ -114,14 +114,14 @@ BEGIN_PGML END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/RRCC/College_Algebra/MAT121/6.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_13.pg b/Pending/RRCC/College_Algebra/MAT121/6.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_13.pg index f0228b3863..f3857b3fa5 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_13.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_13.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserPopUp.pl", "PGML.pl", "PGcourse.pl", @@ -57,9 +57,9 @@ BEGIN_PGML Find the domain and vertical asymptote of [`` f(x)=[$f] ``]. Enter your solutions in interval notation. -Domain: [_______________]{$ans1} [@ AnswerFormatHelp("intervals") @]* +Domain: [_______________]{$ans1} [@ helpLink("intervals") @]* -Vertical asymptote: [_________________]{$popup}[________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +Vertical asymptote: [_________________]{$popup}[________]{$ans2} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/6.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_17.pg b/Pending/RRCC/College_Algebra/MAT121/6.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_17.pg index 848657e1d2..08c5f03d1f 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_17.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_17.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserPopUp.pl", "PGML.pl", "PGcourse.pl", @@ -54,9 +54,9 @@ BEGIN_PGML Find the domain and vertical asymptote of [`` f(x)=[$f] ``]. Enter your solutions in interval notation. -Domain: [_______________]{$ans1} [@ AnswerFormatHelp("intervals") @]* +Domain: [_______________]{$ans1} [@ helpLink("intervals") @]* -Vertical asymptote [_________________]{$popup} [________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +Vertical asymptote [_________________]{$popup} [________]{$ans2} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/6.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_26.pg b/Pending/RRCC/College_Algebra/MAT121/6.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_26.pg index 6e1507526a..67a9aedb62 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_26.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_26.pg @@ -27,7 +27,7 @@ loadMacros( "MathObjects.pl", "parserPopUp.pl", "parserMultiAnswer.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", ); @@ -81,7 +81,7 @@ Match each function with one of the graphs. $BR $BR $BCENTER -\{ image( insertGraph($gr), +\{ image( insertGraph($gr), width=>400,height=>400,tex_size=>800 ) \} $BR (Click on graph to enlarge) diff --git a/Pending/RRCC/College_Algebra/MAT121/6.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_52.pg b/Pending/RRCC/College_Algebra/MAT121/6.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_52.pg index 12f8458835..03896fa9f4 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_52.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.4/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_4_52.pg @@ -24,7 +24,7 @@ loadMacros( "AppletObjects.pl", "unionTables.pl", "parserNumberWithUnits.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -43,7 +43,7 @@ HEADER_TEXT(MODES( )); $desmos_div = MODES( - HTML=>qq(
), + HTML=>qq(
), TeX=>'Interactive graph best viewed online' ); @@ -71,9 +71,9 @@ $ans=Formula("(10^(($c-$d)/2)+$a)/$b")->reduce; BEGIN_PGML -Use the Desmos graphing technology below to find approximate solutions of [` [$f]=[$g]`]. +Use the Desmos graphing technology below to find approximate solutions of [` [$f]=[$g]`]. -[`x=`] [________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [________]{$ans} [@ helpLink("numbers") @]* END_PGML @@ -101,10 +101,10 @@ TEXT( MODES(TeX=>'', HTML=><operators->undefine("/"); @@ -46,7 +46,7 @@ $ans = ("ln($numerator)-ln(x)"); ########################### # Main text - + BEGIN_PGML Expand the following logarithm as much as possible. Rewrite as a sum, difference, or product of logs. @@ -59,14 +59,14 @@ Expand the following logarithm as much as possible. Rewrite as a sum, differenc END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/RRCC/College_Algebra/MAT121/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_12.pg b/Pending/RRCC/College_Algebra/MAT121/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_12.pg index 8c811c6e46..d5bb7fafdd 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_12.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_12.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -42,9 +42,9 @@ Context()->variables->set(c=>{limits=>[1,5]}); # Main text BEGIN_PGML -Condense into a single logarithm. +Condense into a single logarithm. ->>[`\log(a)-\log(b)-\log(c)=\log(`] [_______________]{"a/(bc)"} [`)`] [@ AnswerFormatHelp("formulas") @]*<< +>>[`\log(a)-\log(b)-\log(c)=\log(`] [_______________]{"a/(bc)"} [`)`] [@ helpLink("formulas") @]*<< END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_13.pg b/Pending/RRCC/College_Algebra/MAT121/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_13.pg index d4d1e0b733..7868547445 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_13.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_13.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Properties of logarithms) @@ -11,42 +11,42 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", "PGcourse.pl", "contextLimitedPoint.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context()->operators->undefine("/"); Context()->variables->set(x => {limits => [10,25]}); -$denominator = random(1,20,1); +$denominator = random(1,20,1); $ans = Formula("log(x)"); ########################### # Main text - + BEGIN_PGML Expand the following logarithm as much as possible. Rewrite as a sum, difference, or product of logs. @@ -55,14 +55,14 @@ Expand the following logarithm as much as possible. Rewrite as a sum, difference [___________]{$ans} END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/RRCC/College_Algebra/MAT121/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_15.pg b/Pending/RRCC/College_Algebra/MAT121/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_15.pg index ba1bc52fd5..c18411f652 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_15.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_15.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Properties of logarithms) @@ -11,29 +11,29 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", "PGcourse.pl", "contextLimitedPoint.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -43,9 +43,9 @@ Context()->operators->undefine("/", "^"); Context()->variables->add(y => 'Real'); Context()->variables->add(z => 'Real'); -$expX = random(3,9,1); -$expY = random(5,7,1); -$expZ = random(3,9,1); +$expX = random(3,9,1); +$expY = random(5,7,1); +$expZ = random(3,9,1); @@ -55,7 +55,7 @@ $ans->{test_points} = [[1,1,1], [2,2,2]]; ########################### # Main text - + BEGIN_PGML Use the properties of logarithms to expand the following logarithm as much as possible. Rewrite as a sum, difference, or product of logs. @@ -65,14 +65,14 @@ Use the properties of logarithms to expand the following logarithm as much as po END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/RRCC/College_Algebra/MAT121/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_19.pg b/Pending/RRCC/College_Algebra/MAT121/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_19.pg index 7152717d85..ffa2e1f3dd 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_19.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_19.pg @@ -1,8 +1,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Properties of logarithms) @@ -11,29 +11,29 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", "PGcourse.pl", "contextLimitedPoint.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -42,10 +42,10 @@ Context()->operators->undefine("^"); Context()->variables->add(y => 'Real'); Context()->variables->add(z => 'Real'); -$expX = random(3,9,1); -$expY = random(5,7,1); -$expX2 = random(3,9,1); -$expY2 = random(5,7,1); +$expX = random(3,9,1); +$expY = random(5,7,1); +$expX2 = random(3,9,1); +$expY2 = random(5,7,1); $root = random(3,9,1); @@ -60,7 +60,7 @@ $ans->{test_points} = [[1,1,1], [2,2,2]]; ########################### # Main text - + BEGIN_PGML Use the properties of logarithms to expand the following logarithm as much as possible. Rewrite as a sum, difference, or product of logs. @@ -70,14 +70,14 @@ Use the properties of logarithms to expand the following logarithm as much as po END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/RRCC/College_Algebra/MAT121/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_21.pg b/Pending/RRCC/College_Algebra/MAT121/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_21.pg index bce544a5ca..0f81a4d65d 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_21.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_21.pg @@ -4,8 +4,8 @@ ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Properties of logarithms) @@ -14,19 +14,19 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -34,10 +34,10 @@ loadMacros( "contextLimitedPoint.pl", "contextFraction.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -45,11 +45,11 @@ Context("Numeric"); Context()->variables->add(y => 'Real'); -$coeffX = random(3,9,1); +$coeffX = random(3,9,1); do {$coeffX2 = random(5,7,1); } until ($coeffX2 != $coeffX); -$expX = random(3,9,1); +$expX = random(3,9,1); do {$expX2 = random(5,7,1); } until ($expX2 != $expX); $numerator = Formula("$coeffX*x^{$expX}"); @@ -65,7 +65,7 @@ $ans = Formula("ln($inside)"); ########################### # Main text - + BEGIN_PGML >>Condense the following expression to a single logarithm using the properties of logarithms.<< @@ -78,14 +78,14 @@ BEGIN_PGML [$ans]; %] END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/RRCC/College_Algebra/MAT121/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_23.pg b/Pending/RRCC/College_Algebra/MAT121/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_23.pg index 50ffc0c879..763dab8305 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_23.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_23.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -53,7 +53,7 @@ Condense the left-hand side into a single logarithm. Then solve the resulting >>[`\log(x)-\frac{1}{[$b]}\log(y)+[$a]\log(z)=\log(A)`] << >>[`A=`] [_______________]{"(x*z^($a))/y^(1/$b)"} - [@ AnswerFormatHelp("formulas") @]*<< + [@ helpLink("formulas") @]*<< END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_27.pg b/Pending/RRCC/College_Algebra/MAT121/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_27.pg index cdf5c3c468..ed8ce93225 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_27.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_27.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,10 +48,10 @@ Context()->variables->add(a => 'Real', b => 'Real'); BEGIN_PGML Suppose [` \log_{[$p]}([$m])=a`] and [` \log_{[$p]}([$n])=b`]. Use the change of base formula along with properties of logarithms to rewrite the following in terms of [`a`] and [`b`]. -+ [`\log_{[$n]}([$p])=`] [_______________]{"1/b"} [@ AnswerFormatHelp("formulas") @]* ++ [`\log_{[$n]}([$p])=`] [_______________]{"1/b"} [@ helpLink("formulas") @]* + ++ [`\log_{[$n]}\left(\frac{[$m]}{[$n]}\right)=`] [_______________]{"a/b-1"} [@ helpLink("formulas") @]* -+ [`\log_{[$n]}\left(\frac{[$m]}{[$n]}\right)=`] [_______________]{"a/b-1"} [@ AnswerFormatHelp("formulas") @]* - END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_29.pg b/Pending/RRCC/College_Algebra/MAT121/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_29.pg index fb32983645..3cd4d76258 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_29.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_29.pg @@ -1,11 +1,11 @@ -#### This problem is incomplete +#### This problem is incomplete ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Properties of logarithms) @@ -14,19 +14,19 @@ ## Author(Michael Sulock) ## MO(1) ## KEYWORDS('college algebra') - - + + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -34,10 +34,10 @@ loadMacros( "contextLimitedPoint.pl", "contextFraction.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -59,7 +59,7 @@ $ans = Formula("$exp*a-1"); ########################### # Main text - + BEGIN_PGML >>suppose [`\log_{[$base]}([$a]) = a`] and [`\log_{[$base]}(11) = b.`] Use the change-of-base formula along with properties of logarithms to rewrite the following expression in terms of a and b.<< @@ -69,14 +69,14 @@ BEGIN_PGML END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/RRCC/College_Algebra/MAT121/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_31.pg b/Pending/RRCC/College_Algebra/MAT121/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_31.pg index 23344fc716..b44e455f4f 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_31.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_31.pg @@ -1,11 +1,11 @@ -#### This problem is incomplete +#### This problem is incomplete ## DESCRIPTION ## College Algebra ## ENDDESCRIPTION - - + + ## DBsubject(Algebra) ## DBchapter(Exponential and logarithmic expressions and functions) ## DBsection(Properties of logarithms) @@ -15,18 +15,18 @@ ## MO(1) ## KEYWORDS('college algebra') - + ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", "PGchoicemacros.pl",, "parserAssignment.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGgraphmacros.pl", "parserPopUp.pl", @@ -34,10 +34,10 @@ loadMacros( "contextLimitedPoint.pl", "contextFraction.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); @@ -60,7 +60,7 @@ $ans = Formula("$const1+$exp1/($const2*$exp2)"); ########################### # Main text - + BEGIN_PGML >>Use properties of logarithms to evaluate without using a calculator<< @@ -71,14 +71,14 @@ BEGIN_PGML END_PGML - + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/RRCC/College_Algebra/MAT121/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_9.pg b/Pending/RRCC/College_Algebra/MAT121/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_9.pg index 0e39faae5e..72a4148721 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_9.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.5/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_5_9.pg @@ -20,7 +20,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,10 +48,10 @@ Context()->variables->set(x=>{limits=>[2,5]}); BEGIN_PGML Condense into a single logarithm. ->>[`\log([$a])+\log(x)+\log(y)=\log( `] [_________]{"$a*xy"} [`)`] [@ AnswerFormatHelp("formulas") @]* << +>>[`\log([$a])+\log(x)+\log(y)=\log( `] [_________]{"$a*xy"} [`)`] [@ helpLink("formulas") @]* << + - END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/6.5/VideoI.pg b/Pending/RRCC/College_Algebra/MAT121/6.5/VideoI.pg index 57668a1c13..a5bc1e4d5b 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.5/VideoI.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.5/VideoI.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## KEYWORDS() @@ -25,7 +25,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -38,8 +38,8 @@ TEXT(beginproblem()); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -51,12 +51,12 @@ BEGIN_PGML >> [$video]* << ->> YouTube video of Craig Faulhaber, internet mathemagician, embedded using an iframe. << +>> YouTube video of Craig Faulhaber, internet mathemagician, embedded using an iframe. << >> If the video does not work, [@ htmlLink("https://youtu.be/nUnOs9h3hlE?list=PLIOf9vAXVvjBi7zgxRihNg0OcW74-svu6","click here to go to YouTube directly.") @]* << #Video Quiz: -Evaluate [` \log_{2}(64)=`] [_______________]{6} [@ AnswerFormatHelp("formulas") @]* +Evaluate [` \log_{2}(64)=`] [_______________]{6} [@ helpLink("formulas") @]* diff --git a/Pending/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_13.pg b/Pending/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_13.pg index 6d02041844..1892ac8a94 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_13.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_13.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## College Algebra, solve an exponential equation +## College Algebra, solve an exponential equation ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -52,13 +52,13 @@ Context()->strings->add( BEGIN_PGML -Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". +Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". If there is more than one solution, enter the answers as a comma-separated list. -[` e^{r + {[$u]}} - {[$v]} = - {[$w]} `] +[` e^{r + {[$u]}} - {[$v]} = - {[$w]} `] -[_______________]{$x1} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$x1} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_15.pg b/Pending/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_15.pg index df49e86813..789f7adb74 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_15.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_15.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## College Algebra, solve an exponential equation +## College Algebra, solve an exponential equation ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -62,13 +62,13 @@ Context()->strings->add( BEGIN_PGML -Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". +Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". If there is more than one solution, enter the answers as a comma-separated list. -[` -{[$v]} \cdot {[$b]}^{\, p + {[$u]}} - {[$w]} = -{[$x]} `] +[` -{[$v]} \cdot {[$b]}^{\, p + {[$u]}} - {[$w]} = -{[$x]} `] -[_______________]{$x1} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$x1} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_17.pg b/Pending/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_17.pg index dec04d8982..08650531ca 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_17.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_17.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -34,9 +34,9 @@ $showPartialCorrectAnswers = 1; # Setup # Parameters -$u = random(2,9); -$v = random(1,9); -$w = random(36,54); +$u = random(2,9); +$v = random(1,9); +$w = random(36,54); # Solution if (($w - $v) <= 0) { @@ -58,13 +58,13 @@ Context()->strings->add( BEGIN_PGML -Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". +Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". If there is more than one solution, enter the answers as a comma-separated list. -[` e^{\, -{[$u]} k} + {[$v]} = {[$w]} `] +[` e^{\, -{[$u]} k} + {[$v]} = {[$w]} `] -[_______________]{$x1} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$x1} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_19.pg b/Pending/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_19.pg index 413c39f51e..8172171219 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_19.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_19.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -35,9 +35,9 @@ $showPartialCorrectAnswers = 1; # Setup # Parameters -$u = random(6,9); -$v = random(2,9); -$w = random(1,9); +$u = random(6,9); +$v = random(2,9); +$w = random(1,9); $x = random(1,10); $y = random(66,84); @@ -61,13 +61,13 @@ Context()->strings->add( BEGIN_PGML -Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". +Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". If there is more than one solution, enter the answers as a comma-separated list. -[` -{[$u]} e^{\, {[$v]} k + {[$w]}} + {[$x]} = -{[$y]} `] +[` -{[$u]} e^{\, {[$v]} k + {[$w]}} + {[$x]} = -{[$y]} `] -[_______________]{$x1} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$x1} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_21.pg b/Pending/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_21.pg index 7c23448d45..cc21c1ab37 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_21.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_21.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -36,10 +36,10 @@ $showPartialCorrectAnswers = 1; # Parameters -$u = random(2,10); +$u = random(2,10); do { $v = random(2, 10); } until ($v != $u); -$w = random(1,5); +$w = random(1,5); $x = 2; Context()->noreduce('(-x)-y','(-x)+y'); @@ -61,26 +61,26 @@ if($u > $v) { if($w == 1) { BEGIN_PGML -Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". +Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". If there is more than one solution, enter the answers as a comma-separated list. -[` [$f] = 0 `] +[` [$f] = 0 `] -[_______________]{$x1} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$x1} [@ helpLink("numbers") @]* END_PGML } else { BEGIN_PGML -Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". +Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". If you find more than one solution, enter your answer as a comma-separated list. -[` e^{ {[$x *$w]} x} - {[$u - $v]} e^{ {[$w]} x} - {[$u * $v]} = 0 `] +[` e^{ {[$x *$w]} x} - {[$u - $v]} e^{ {[$w]} x} - {[$u * $v]} = 0 `] -[_______________]{$x1} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$x1} [@ helpLink("numbers") @]* END_PGML } @@ -89,26 +89,26 @@ else { if (w == 1) { BEGIN_PGML -Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". +Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". If you find more than one solution, enter your answer as a comma-separated list. -[` e^{2x} + {[$v - $u]} e^x - {[$u * $v]} = 0 `] +[` e^{2x} + {[$v - $u]} e^x - {[$u * $v]} = 0 `] -[_______________]{$x1} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$x1} [@ helpLink("numbers") @]* END_PGML } else { BEGIN_PGML -Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". +Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". If you find more than one solution, enter your answer as a comma-separated list. -[` e^{ {[$x *$w]} x} + {[$v - $u]} e^{ {[$w]} x} - {[$u * $v]} = 0 `] +[` e^{ {[$x *$w]} x} + {[$v - $u]} e^{ {[$w]} x} - {[$u * $v]} = 0 `] -[_______________]{$x1} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$x1} [@ helpLink("numbers") @]* END_PGML } diff --git a/Pending/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_23.pg b/Pending/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_23.pg index 9a29b3881c..bf590189c7 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_23.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_23.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## College Algebra, work with an exponential equation +## College Algebra, work with an exponential equation ## ENDDESCRIPTION @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -35,9 +35,9 @@ $showPartialCorrectAnswers = 1; # Setup # Parameters -$u = random(8,12); -$v = random(4,8); -$w = random(1,3); +$u = random(8,12); +$v = random(4,8); +$w = random(1,3); $x = random(1,4); $y = random(7,13); @@ -61,13 +61,13 @@ Context()->strings->add( BEGIN_PGML -Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". +Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". If there is more than one solution, enter the answers as a comma-separated list. -[` {[$u]} e^{\, {[$v]} k + {[$w]}} + {[$x]} = {[$y]} `] +[` {[$u]} e^{\, {[$v]} k + {[$w]}} + {[$x]} = {[$y]} `] -[_______________]{$x1} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$x1} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_25.pg b/Pending/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_25.pg index 9c8e6824fc..4dce474a1b 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_25.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_25.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -35,9 +35,9 @@ $showPartialCorrectAnswers = 1; # Setup # Parameters -$u = random(8,12); -$v = random(4,8); -$w = random(1,3); +$u = random(8,12); +$v = random(4,8); +$w = random(1,3); $x = random(1,4); $y = random(71,96); @@ -61,13 +61,13 @@ Context()->strings->add( BEGIN_PGML -Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". +Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". If there is more than one solution, enter the answers as a comma-separated list. -[` {[$u]} e^{\, -{[$v]} k - {[$w]}} - {[$x]} = -{[$y]} `] +[` {[$u]} e^{\, -{[$v]} k - {[$w]}} - {[$x]} = -{[$y]} `] -[_______________]{$x1} [@ AnswerFormatHelp("numbers") @]* +[_______________]{$x1} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_29.pg b/Pending/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_29.pg index 7f0599883d..e30ee263d2 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_29.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_29.pg @@ -15,28 +15,28 @@ ########################### # Initialization - + DOCUMENT(); - + loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "parserOneOf.pl", "parserMultiAnswer.pl", "PGML.pl", "PGcourse.pl", ); - + TEXT(beginproblem()); - + ########################### # Setup Context("Numeric"); install_problem_grader(~~&std_problem_grader); - + # A random integer $a=non_zero_random(2,5,1); $b = non_zero_random(-3,-2,1); @@ -47,7 +47,7 @@ $d = $a**$abs; # The two sides of the correct answer $ans1=Compute("$a**$b"); $ans2=Compute("1/$d"); - + # Allows for the correct equation to be given in either order @@ -76,33 +76,33 @@ $multians = MultiAnswer($ans1, $ans2)->with( - - + + ########################### # Main text - + BEGIN_PGML -Rewrite the following equation in exponential form. +Rewrite the following equation in exponential form. + +[``\log_[$a]\left(\frac{1}{[$d]}\right)=[$b] ``] + + [____]{$multians} [`=`] [____]{$multians} [@ helpLink("numbers") @]* + -[``\log_[$a]\left(\frac{1}{[$d]}\right)=[$b] ``] - - [____]{$multians} [`=`] [____]{$multians} [@ AnswerFormatHelp("numbers") @]* - - END_PGML - - - + + + ############################ # Solution - + #BEGIN_PGML_SOLUTION #Solution explanation goes here. #END_PGML_SOLUTION - + COMMENT('MathObject version. Uses PGML.'); - + ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_39.pg b/Pending/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_39.pg index f6f4985ad2..7d3769824d 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_39.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_39.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -37,8 +37,8 @@ $showPartialCorrectAnswers = 1; # Parameters $a = random(1,3); # different variations of problem -$u = random(2,5); -$v = random(6,10); +$u = random(2,5); +$v = random(6,10); $w = random(1,7); # Solution @@ -56,7 +56,7 @@ else{ $x1 = $v + $u; if (($x1^2 - $v*$x1 + $w) <= 0) { $x1 = List(0); - } + } else { $x1 = List(0, $x1); } @@ -73,27 +73,27 @@ Context()->strings->add( if ($a == 1) { BEGIN_PGML -Give all solutions to the equation, or state that there are no solutions by entering "NONE". +Give all solutions to the equation, or state that there are no solutions by entering "NONE". If there is more than one solution, enter the answers as a comma-separated list. -[` \ln \left( - {[$u]} x \right) = \ln \left( x^2 - {[$v]} x \right) `] +[` \ln \left( - {[$u]} x \right) = \ln \left( x^2 - {[$v]} x \right) `] -[`x =`] [_______________]{$x1} [@ AnswerFormatHelp("numbers") @]* +[`x =`] [_______________]{$x1} [@ helpLink("numbers") @]* END_PGML } elsif ($a == 2) { BEGIN_PGML -Give all solutions to the equation, or state that there are no solutions by entering "NONE". +Give all solutions to the equation, or state that there are no solutions by entering "NONE". If there is more than one solution, enter the answers as a comma-separated list. -[` \ln \left( {[$u]} x \right) = \ln \left( x^2 - {[$v]} x \right) `] +[` \ln \left( {[$u]} x \right) = \ln \left( x^2 - {[$v]} x \right) `] -[`x =`] [_______________]{$x1} [@ AnswerFormatHelp("numbers") @]* +[`x =`] [_______________]{$x1} [@ helpLink("numbers") @]* END_PGML } @@ -104,9 +104,9 @@ Give all solutions to the equation, or state that there are no solutions by ente If there is more than one solution, enter the answers as a comma-separated list. -[` \ln \left( {[$u]} x + {[$w]} \right) = \ln \left( x^2 - {[$v]} x + {[$w]} \right) `] +[` \ln \left( {[$u]} x + {[$w]} \right) = \ln \left( x^2 - {[$v]} x + {[$w]} \right) `] -[`x =`] [_______________]{$x1} [@ AnswerFormatHelp("numbers") @]* +[`x =`] [_______________]{$x1} [@ helpLink("numbers") @]* END_PGML } diff --git a/Pending/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_41.pg b/Pending/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_41.pg index 366900b2f4..064ce61cbd 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_41.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_41.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -44,8 +44,8 @@ $a = random(1,2); # Parameters -$u = random(2,10); -$v = random(45,55); +$u = random(2,10); +$v = random(45,55); # Solution if ($a == 1) { @@ -61,27 +61,27 @@ else { if ($a == 1) { BEGIN_PGML -Give all solutions to the equation, or state that there are no solutions by entering "NONE". +Give all solutions to the equation, or state that there are no solutions by entering "NONE". If there is more than one solution, enter the answers as a comma-separated list. -[` \ln \left( x - {[$u]} \right) - \ln \left( x \right) = \ln \left( {[$v]} \right) `] +[` \ln \left( x - {[$u]} \right) - \ln \left( x \right) = \ln \left( {[$v]} \right) `] -[`x =`] [_______________]{$x1} [@ AnswerFormatHelp("numbers") @]* +[`x =`] [_______________]{$x1} [@ helpLink("numbers") @]* END_PGML } else { BEGIN_PGML -Give all solutions to the equation, or state that there are no solutions by entering "NONE". +Give all solutions to the equation, or state that there are no solutions by entering "NONE". If there is more than one solution, enter the answers as a comma-separated list. -[` \ln \left( x + {[$u]} \right) - \ln \left( x \right) = \ln \left( {[$v]} \right) `] +[` \ln \left( x + {[$u]} \right) - \ln \left( x \right) = \ln \left( {[$v]} \right) `] -[`x =`] [_______________]{$x1} [@ AnswerFormatHelp("numbers") @]* +[`x =`] [_______________]{$x1} [@ helpLink("numbers") @]* END_PGML } diff --git a/Pending/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_43.pg b/Pending/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_43.pg index 2424edb287..a6e9217e01 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_43.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_43.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -63,14 +63,14 @@ else { BEGIN_PGML -Give all solutions to the equation, or state that there are no solutions by entering "NONE". +Give all solutions to the equation, or state that there are no solutions by entering "NONE". If there is more than one solution, enter the answers as a comma-separated list. [`` \ln \left( x^2 - {[$x]} \right) + \ln \left( {[$t]} \right) = \ln \left( {[$k]} \right) ``] -[`x=`] [_____________________]{$x1} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [_____________________]{$x1} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_47.pg b/Pending/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_47.pg index 3152d4b61c..85ec54c13b 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_47.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_47.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -68,14 +68,14 @@ Context()->strings->add( BEGIN_PGML -Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". +Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". If there is more than one solution, enter the answers as a comma-separated list. [`` \ln \left( {[$u]} \right) + \ln \left( {[$v]} - {[$w]} x^2 \right) = \ln \left( {[$C]} \right) ``] -[`x =`] [____________________]{$x1} [@ AnswerFormatHelp("numbers") @]* +[`x =`] [____________________]{$x1} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_49.pg b/Pending/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_49.pg index e20639a39b..e4c94a888d 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_49.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_49.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -66,14 +66,14 @@ if ($u - $v * $x1 <= 0) { BEGIN_PGML -Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". +Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". If there is more than one solution, enter the answers as a comma-separated list. [`` \ln \left( {[$t]} \right) - \ln \left( {[$u]} - {[$v]} x \right) = \ln \left( {[$w]} \right) ``] -[`x =`] [____________________]{$x1} [@ AnswerFormatHelp("numbers") @]* +[`x =`] [____________________]{$x1} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_5.pg b/Pending/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_5.pg index 777e58db4e..cea84b2a02 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_5.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_5.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -46,7 +46,7 @@ BEGIN_PGML Use like bases to solve the exponential equation [`[$c] \cdot [$a]^{[$d]x} = [$b]`]. -[`x=`] [________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_57.pg b/Pending/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_57.pg index c419914caa..f5b5cfb53f 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_57.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_57.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -58,14 +58,14 @@ $x1 = (exp($v - $w) + $u) / $t; BEGIN_PGML -Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". +Give all solutions to the equation, or state that the equation has no solutions by entering "NONE". If there is more than one solution, enter the answers as a comma-separated list. [`` \ln \left( {[$t]} x - {[$u]} \right) - {[$v]} = - {[$w]} ``] -[`x =`] [____________________]{$x1} [@ AnswerFormatHelp("numbers") @]* +[`x =`] [____________________]{$x1} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_67.pg b/Pending/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_67.pg index c2a6924696..f89383b9cc 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_67.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_67.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -63,12 +63,12 @@ Let [`P(t)`] be the population of a certain city in Colorado. Suppose that this [``P(t) = {[$u]} \, e^{ {[$v]} t},``] -where [`t`] is time in years. In how many years will the city's population reach [`{[$population]} {,} 000`]? +where [`t`] is time in years. In how many years will the city's population reach [`{[$population]} {,} 000`]? [_____________________]{$x1} years -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_8.pg b/Pending/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_8.pg index a5e39f511c..aeb3741c3e 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_8.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.6/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_8.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -46,7 +46,7 @@ BEGIN_PGML Use like bases to solve the exponential equation [`[$c] \cdot [$a]^{[$d]x+[$d]} = [$b]`]. -[`x=`] [________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_11.pg b/Pending/RRCC/College_Algebra/MAT121/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_11.pg index 59e8c655b4..ab32dfadc0 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_11.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_11.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -44,7 +44,7 @@ BEGIN_PGML Use logarithms to solve [` [$b]^{x-[$a]}=1 `]. If there is more than one solution, enter them as a comma separated list. If there is no solution, enter "NONE". -[`x=`] [________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_12.pg b/Pending/RRCC/College_Algebra/MAT121/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_12.pg index fa2229fdcb..f1afcbaae5 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_12.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_12.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -45,7 +45,7 @@ BEGIN_PGML Use logarithms to solve [` [$a] e^{[$c]*x}=[$b] `]. If there is more than one solution, enter them as a comma separated list. If there is no solution, enter "NONE". -[`x=`] [________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_31.pg b/Pending/RRCC/College_Algebra/MAT121/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_31.pg index eaf3dc8cf5..7f27c3c8da 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_31.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_31.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -45,7 +45,7 @@ BEGIN_PGML Solve [` [$a] \log_{[$b]}(x)=[$c] `]. If there is more than one solution, enter them as a comma separated list. If there is no solution, enter "NONE". -[`x=`] [________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_33.pg b/Pending/RRCC/College_Algebra/MAT121/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_33.pg index a439998044..3a5db7ffc3 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_33.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_33.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -46,7 +46,7 @@ BEGIN_PGML Solve [` [$a] + \log_{[$b]}([$c]*x)=[$d] `]. If there is more than one solution, enter them as a comma separated list. If there is no solution, enter "NONE". -[`x=`] [________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_37.pg b/Pending/RRCC/College_Algebra/MAT121/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_37.pg index b315761535..a21892c5ac 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_37.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_37.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -47,7 +47,7 @@ BEGIN_PGML Solve [` \log_{[$b]}([$a]*x-[$c])= \log_{[$b]}([$d]-[$e]*x) `]. If there is more than one solution, enter them as a comma separated list. If there is no solution, enter "NONE". -[`x=`] [________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_45.pg b/Pending/RRCC/College_Algebra/MAT121/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_45.pg index caf05c4382..bfd90e2dd7 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_45.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_45.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -40,7 +40,7 @@ BEGIN_PGML Solve [` \ln(x)+\ln(x-3)=\ln(7x) `]. If there is more than one solution, enter them as a comma separated list. If there is no solution, enter "NONE". -[`x=`] [________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_7.pg b/Pending/RRCC/College_Algebra/MAT121/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_7.pg index 5ef690791f..9362211c5a 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_7.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_7.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -46,7 +46,7 @@ BEGIN_PGML Use like bases to solve the exponential equation [`\left(\frac{1}{[$b]}\right)^{[$d]*x} \cdot [$c]=[$a]^{[$e]}`]. -[`x=`] [________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x=`] [________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/6.6/VideoJ.pg b/Pending/RRCC/College_Algebra/MAT121/6.6/VideoJ.pg index ae2b377d38..749e472bc9 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.6/VideoJ.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.6/VideoJ.pg @@ -1,5 +1,5 @@ ## DESCRIPTION -## +## ## ENDDESCRIPTION ## KEYWORDS() @@ -25,7 +25,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextLimitedPoint.pl", "PGML.pl", "PGcourse.pl", @@ -38,8 +38,8 @@ TEXT(beginproblem()); $ans=List("2,5"); $video = MODES( -HTML=> -'', +HTML=> +'', TeX => "An embedded YouTube video." ); @@ -51,14 +51,14 @@ BEGIN_PGML >> [$video]* << ->> YouTube video of Adam Forland, internet mathemagician, embedded using an iframe. << +>> YouTube video of Adam Forland, internet mathemagician, embedded using an iframe. << >> If the video does not work, [@ htmlLink("https://youtu.be/VqYBzt0pkPo","click here to go to YouTube directly.") @]* << #Video Quiz: Solve [` \ln(10)-\ln(7-x)=\ln(x)`]. If you have more than one solution, enter them as a comma separated list. -[`x = `] [_______________]{$ans} [@ AnswerFormatHelp("formulas") @]* +[`x = `] [_______________]{$ans} [@ helpLink("formulas") @]* diff --git a/Pending/RRCC/College_Algebra/MAT121/6.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_7_18.pg b/Pending/RRCC/College_Algebra/MAT121/6.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_7_18.pg index c5674cd3f5..8c4da36fba 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_7_18.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_7_18.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "scaffold.pl", @@ -69,13 +69,13 @@ $x5 = (($u + 0.0)/$v); # Main text Scaffold::Begin(); - + BEGIN_PGML Let [`P(t)`] denote the number of fish in a pond. Suppose that it is given by the formula [`` P(t) = \dfrac{ {[$u]} }{ {[$v]} + {[$w]} e^{- {[$x]} t}}, ``] -where [`t`] is time in years. +where [`t`] is time in years. END_PGML @@ -86,7 +86,7 @@ What is the size of the initial population? [_______________]{$initial_population} fish -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* END_PGML @@ -95,18 +95,18 @@ Section::End(); Section::Begin("Part 2"); BEGIN_PGML -What is the doubling time for this population? +What is the doubling time for this population? [_______________]{$x2} years END_PGML Section::End(); - + Section::Begin("Part 3"); BEGIN_PGML -What is the size of the population after [`{[$time]}`] years? +What is the size of the population after [`{[$time]}`] years? [_______________]{$x3} fish @@ -114,11 +114,11 @@ What is the size of the population after [`{[$time]}`] years? END_PGML Section::End(); - + Section::Begin("Part 4"); BEGIN_PGML -How long will it take until the population contains [`{[$size]}`] individuals? +How long will it take until the population contains [`{[$size]}`] individuals? [_______________]{$x4} years @@ -126,18 +126,18 @@ How long will it take until the population contains [`{[$size]}`] individuals? END_PGML Section::End(); - + Section::Begin("Part 5"); BEGIN_PGML -Make a graph of this function, and then use your graph to estimate the carrying capacity of the pond. +Make a graph of this function, and then use your graph to estimate the carrying capacity of the pond. [_______________]{$x5} fish END_PGML Section::End(); - + Scaffold::End(); ############################ diff --git a/Pending/RRCC/College_Algebra/MAT121/6.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_7_24.pg b/Pending/RRCC/College_Algebra/MAT121/6.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_7_24.pg index b5a5131375..f2ef401fa4 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_7_24.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_7_24.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "scaffold.pl", @@ -54,16 +54,16 @@ $ans2=log($u/$w)/((log(.5))/$hl); # Main text Scaffold::Begin(); - + Section::Begin("Part 1"); BEGIN_PGML -A certain radioactive isotope has a half-life of [`{[$hl]}`] minutes. If we initially have +A certain radioactive isotope has a half-life of [`{[$hl]}`] minutes. If we initially have [`{[$w]}`] grams of this substance, how many half-lives will pass until [`{[$u]}`] grams remain? Your answer should be a whole number. -[_______________]{$ans1} +[_______________]{$ans1} -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* END_PGML @@ -73,16 +73,16 @@ Section::Begin("Part 2"); BEGIN_PGML -What length of time is needed for this decay process to occur? +What length of time is needed for this decay process to occur? [_______________]{$ans2} minutes -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* END_PGML Section::End(); - + Scaffold::End(); ############################ diff --git a/Pending/RRCC/College_Algebra/MAT121/6.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_7_29.pg b/Pending/RRCC/College_Algebra/MAT121/6.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_7_29.pg index 2df2a42c40..ea548c741a 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_7_29.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_7_29.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "scaffold.pl", @@ -69,9 +69,9 @@ Section::Begin("Part 1"); BEGIN_PGML -Write an exponential model for the [`A(t)`], the amount of the drug in the patient's system after [`t`] hours have passed. +Write an exponential model for the [`A(t)`], the amount of the drug in the patient's system after [`t`] hours have passed. -[`A(t)=`] [_______________]{$f} [@ AnswerFormatHelp("formula") @]* +[`A(t)=`] [_______________]{$f} [@ helpLink("formula") @]* END_PGML @@ -83,11 +83,11 @@ Context("Numeric"); BEGIN_PGML -Use your formula to find the amount of the drug remaining after [`{[$w]}`] hours have passed. +Use your formula to find the amount of the drug remaining after [`{[$w]}`] hours have passed. [_______________]{$x1} mg -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* END_PGML @@ -97,14 +97,14 @@ Section::Begin("Part 3"); BEGIN_PGML -What is the half-life of this drug? +What is the half-life of this drug? [_______________]{$x2} hours END_PGML Section::End(); - + Scaffold::End(); ############################ diff --git a/Pending/RRCC/College_Algebra/MAT121/6.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_7_51.pg b/Pending/RRCC/College_Algebra/MAT121/6.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_7_51.pg index ddab2555a7..c733f29ce1 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_7_51.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_7_51.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "scaffold.pl", @@ -63,27 +63,27 @@ $x2 = ($u + 0.0)/$v; # Main text Scaffold::Begin(); - + BEGIN_PGML Let [`N(t)`] be the number of people at a school who have heard a certain rumor. Suppose that this can be modeled by the function [`` N(t) = \dfrac{ {[$u]} }{ {[$v]} + {[$w]} e^{- {[$x]} t}}, ``] -where [`t`] is time in days. +where [`t`] is time in days. END_PGML Section::Begin("Part 1"); BEGIN_PGML -How many people have heard the rumor after [`{[$time]}`] days? +How many people have heard the rumor after [`{[$time]}`] days? [_______________]{$x1} people END_PGML Section::End(); - + Section::Begin("Part 2"); BEGIN_PGML @@ -94,7 +94,7 @@ What number of people will have heard the rumor in the long run? A graph is one END_PGML Section::End(); - + Scaffold::End(); ############################ diff --git a/Pending/RRCC/College_Algebra/MAT121/6.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_7_6.pg b/Pending/RRCC/College_Algebra/MAT121/6.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_7_6.pg index 5a96afe563..e001a44d98 100644 --- a/Pending/RRCC/College_Algebra/MAT121/6.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_7_6.pg +++ b/Pending/RRCC/College_Algebra/MAT121/6.7/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_7_6.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -59,12 +59,12 @@ Let [`T(t)`] be the temperature of a piece of metal in degrees Fahrenheit, and s [`` T \left( t \right) = {[$u]} e^{ -{[$v]} t } + {[$w]} ``] -where [`t`] is time in minutes. What is the temperature of the metal after [`1`] hour and [` {[$minutes]} `] minutes? +where [`t`] is time in minutes. What is the temperature of the metal after [`1`] hour and [` {[$minutes]} `] minutes? -[_______________]{$x1} [` {}^{\text{O}}F `] +[_______________]{$x1} [` {}^{\text{O}}F `] -[@ AnswerFormatHelp("numbers") @]* +[@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_197.pg b/Pending/RRCC/College_Algebra/MAT121/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_197.pg index 8106814ca3..160f870be4 100644 --- a/Pending/RRCC/College_Algebra/MAT121/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_197.pg +++ b/Pending/RRCC/College_Algebra/MAT121/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_197.pg @@ -23,7 +23,7 @@ loadMacros( "MathObjects.pl", "parserPopUp.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,7 +48,7 @@ if ($b-$a*$a == 0) {$ans1 = NONE; } elsif ( $ans==($b*$a)/($b-$a*$a)) {$ans1=($b*$a)/($b-$a*$a); -} +} Context("Fraction-NoDecimals"); @@ -64,7 +64,7 @@ Solve the rational equation. Enter the answer as a reduced fraction. If there [`\dfrac{1}{a}+\dfrac{[$a]}{[$b]}=\dfrac{1}{[$a]}`] -[`a`] = [_________________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +[`a`] = [_________________]{$ans2} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_199.pg b/Pending/RRCC/College_Algebra/MAT121/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_199.pg index 23afbdd4d2..6c146c9b2a 100644 --- a/Pending/RRCC/College_Algebra/MAT121/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_199.pg +++ b/Pending/RRCC/College_Algebra/MAT121/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_199.pg @@ -23,7 +23,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,7 +48,7 @@ if ($a*$a+$b== 0) {$ans1 = NONE; } elsif ( $ans=($a*$b*$c)/($a*$a+$b)) {$ans1=($a*$b*$c)/($a*$a+$b); -} +} Context("Fraction-NoDecimals"); @@ -62,9 +62,9 @@ BEGIN_PGML Solve the rational equation. Enter the answer as a reduced fraction. If there is more than one correct answer, enter a comma separated list. If there is no answer, enter "NONE". -[`\dfrac{[$a]}{[$b]}+\dfrac{1}{[$a]}=\dfrac{[$c]}{v}`] +[`\dfrac{[$a]}{[$b]}+\dfrac{1}{[$a]}=\dfrac{[$c]}{v}`] -[`v`] = [_________________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +[`v`] = [_________________]{$ans2} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_203.pg b/Pending/RRCC/College_Algebra/MAT121/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_203.pg index 78952aac83..3bfcc0ee28 100644 --- a/Pending/RRCC/College_Algebra/MAT121/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_203.pg +++ b/Pending/RRCC/College_Algebra/MAT121/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_203.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -51,7 +51,7 @@ Solve the rational equation. If there is more than one correct answer, enter a 1+[`\dfrac{[$c]}{p}=-\dfrac{[$d]}{p^2}`] -[`p`] = [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`p`] = [_________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_209.pg b/Pending/RRCC/College_Algebra/MAT121/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_209.pg index 897df78703..65d5fd1718 100644 --- a/Pending/RRCC/College_Algebra/MAT121/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_209.pg +++ b/Pending/RRCC/College_Algebra/MAT121/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_209.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "contextFraction.pl", "PGML.pl", "PGcourse.pl", @@ -45,7 +45,7 @@ $ans=(5-$a*$c-$b*$c)/($a-$b); if ($ans == -$c) {$ans1 = NONE; -} +} elsif ($ans == $c) {$ans1 = NONE; } @@ -62,12 +62,12 @@ $ans2=Fraction($ans1); BEGIN_PGML -Solve the rational equation. Enter the answer as a reduced fraction. If there is more than one correct answer, enter a comma separated list. If there is no answer, enter "NONE". +Solve the rational equation. Enter the answer as a reduced fraction. If there is more than one correct answer, enter a comma separated list. If there is no answer, enter "NONE". [`\dfrac{[$a]}{z-[$c]}-\dfrac{[$b]}{z+[$c]}=\dfrac{5}{z^2-[$d]}`] -[`z`] = [_________________]{$ans2} [@ AnswerFormatHelp("numbers") @]* +[`z`] = [_________________]{$ans2} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_213.pg b/Pending/RRCC/College_Algebra/MAT121/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_213.pg index 2b28966e06..4cf4ad761b 100644 --- a/Pending/RRCC/College_Algebra/MAT121/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_213.pg +++ b/Pending/RRCC/College_Algebra/MAT121/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_213.pg @@ -22,7 +22,7 @@ loadMacros( "PGstandard.pl", "MathObjects.pl", "contextFraction.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -48,7 +48,7 @@ $g= $b*$c; $ans=($a-$d*$c+$e*$b)/(1-$d+$e); if ($ans == $b) {$ans1 = NONE;} -elsif ($ans == $c) {$ans1 = NONE;} +elsif ($ans == $c) {$ans1 = NONE;} elsif ( $ans ==($a-$d*$c+$e*$b)/(1-$d+$e)) {$ans1=($a-$d*$c+$e*$b)/(1-$d+$e);} ########################### @@ -56,14 +56,14 @@ elsif ( $ans ==($a-$d*$c+$e*$b)/(1-$d+$e)) {$ans1=($a-$d*$c+$e*$b)/(1-$d+$e);} BEGIN_PGML -Solve the rational equation. If there is more than one correct answer, enter a comma separated list. If there is no answer, enter "NONE". +Solve the rational equation. If there is more than one correct answer, enter a comma separated list. If there is no answer, enter "NONE". [`\dfrac{v-[$a]}{v^2-[$f]*v+[$g]} = \dfrac{[$d]}{v-[$b]} - \dfrac{[$e]}{v-[$c]}`] -[`v`] = [_________________]{$ans1} [@ AnswerFormatHelp("numbers") @]* +[`v`] = [_________________]{$ans1} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_217.pg b/Pending/RRCC/College_Algebra/MAT121/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_217.pg index 55552df45a..ece8dceada 100644 --- a/Pending/RRCC/College_Algebra/MAT121/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_217.pg +++ b/Pending/RRCC/College_Algebra/MAT121/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_217.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -49,11 +49,11 @@ BEGIN_PGML Solve the rational equation. If there is more than one correct answer, enter a comma separated list. If there is no answer, enter "NONE". -[`\dfrac{b+[$a]}{[$a]b}+\dfrac{b}{[$c]}=\dfrac{1}{b}`] +[`\dfrac{b+[$a]}{[$a]b}+\dfrac{b}{[$c]}=\dfrac{1}{b}`] -[`b`] = [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`b`] = [_________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_219.pg b/Pending/RRCC/College_Algebra/MAT121/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_219.pg index aad6a23713..b8e149f170 100644 --- a/Pending/RRCC/College_Algebra/MAT121/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_219.pg +++ b/Pending/RRCC/College_Algebra/MAT121/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_219.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -39,35 +39,35 @@ $chooser=random(1,5,1); if ( $chooser ==1) {$eqn=Formula("x/(x+6)-(180)/(x^2-36)-7"); -} +} elsif ( $chooser ==2) {$eqn=Formula("x/(x+3)-(18)/(x^2-9)-4"); -} +} elsif ( $chooser ==3) {$eqn=Formula("x/(x+5)-(50)/(x^2-25)-6"); -} +} elsif ( $chooser ==4) {$eqn=Formula("x/(x+5)+(130)/(x^2-25)-6"); -} +} elsif ( $chooser ==5) {$eqn=Formula("x/(x-4)-(18)/(x^2-16)-3"); -} +} if ( $chooser ==1) {$ans=List(-4,3); -} +} elsif ( $chooser ==2) {$ans=2; -} +} elsif ( $chooser ==3) {$ans=4; -} +} elsif ( $chooser ==4) {$ans=List(7,-8); -} +} elsif ( $chooser ==5) {$ans=List(-3,5); -} +} @@ -82,7 +82,7 @@ Solve the rational equation. If there is more than one correct answer, enter a -[`x`] = [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`x`] = [_________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_235.pg b/Pending/RRCC/College_Algebra/MAT121/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_235.pg index 4b4e6ac1be..9fbdb4b6a0 100644 --- a/Pending/RRCC/College_Algebra/MAT121/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_235.pg +++ b/Pending/RRCC/College_Algebra/MAT121/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_235.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -43,26 +43,26 @@ Context("Numeric"); $chooser=random(1,2,1); if ( $chooser ==1) {$eqn1=Formula("C/r"); -} +} elsif ( $chooser ==2) {$eqn1=Formula("I/r"); -} +} if ( $chooser ==1) {$eqn2=Formula("2*pi"); -} +} elsif ( $chooser ==2) {$eqn2=Formula("P"); -} +} if ( $chooser ==1) {$ans=Formula("C/(2*pi)"); -} +} elsif ( $chooser ==2) {$ans=Formula("I/P"); -} +} @@ -79,7 +79,7 @@ Solve the following equation for [`r`]. -[`r`] = [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`r`] = [_________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_239.pg b/Pending/RRCC/College_Algebra/MAT121/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_239.pg index e662c28d30..e9426b332b 100644 --- a/Pending/RRCC/College_Algebra/MAT121/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_239.pg +++ b/Pending/RRCC/College_Algebra/MAT121/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_239.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "PGcourse.pl", @@ -44,45 +44,45 @@ Context("Numeric"); $chooser=random(1,4,1); if ( $chooser ==1) {$eqn1=Formula("c"); -} +} elsif ( $chooser ==2) {$eqn1=Formula("(b+3)/(w-2)"); -} +} elsif ( $chooser ==3) {$eqn1=Formula("(a+3)/(w-1)"); -} +} elsif ( $chooser ==4) {$eqn1=Formula("(a+5)/(2-w)"); -} +} if ( $chooser ==1) {$eqn2=Formula("w/(2-w)"); -} +} elsif ( $chooser ==2) {$eqn2=Formula("a"); -} +} elsif ( $chooser ==3) {$eqn2=("1/2"); -} +} elsif ( $chooser ==4) {$eqn2=("4/3"); -} +} if ( $chooser ==1) {$ans=Formula("2c/(c+1)"); -} +} elsif ( $chooser ==2) {$ans=Formula("(b+3+2a)/a"); -} +} elsif ( $chooser ==3) {$ans=Formula("2a+7"); -} +} elsif ( $chooser ==4) {$ans=Formula("(3a+7)/-4"); -} +} @@ -99,7 +99,7 @@ Solve the following equation for [`w`]. -[`w`] = [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`w`] = [_________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_241.pg b/Pending/RRCC/College_Algebra/MAT121/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_241.pg index 4cf8f11f9f..097af4fd22 100644 --- a/Pending/RRCC/College_Algebra/MAT121/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_241.pg +++ b/Pending/RRCC/College_Algebra/MAT121/7.4/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_4_241.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "contextFraction.pl", "PGcourse.pl", @@ -40,52 +40,52 @@ Context("Numeric"); $chooser=random(1,5,1); if ( $chooser ==1) {$eqn1=Formula("1/p+2/q"); -} +} elsif ( $chooser ==2) {$eqn1=Formula("3/p+1/q"); -} +} elsif ( $chooser ==3) {$eqn1=("2/q+1/5"); -} +} elsif ( $chooser ==4) {$eqn1=("6/q+2/3"); -} +} elsif ( $chooser ==5) {$eqn1=Formula("(q+3)/(p-2)"); -} +} if ( $chooser ==1) {$eqn2=("4"); -} +} elsif ( $chooser ==2) {$eqn2=("2"); -} +} elsif ( $chooser ==3) {$eqn2=Formula("3/p"); -} +} elsif ( $chooser ==4) {$eqn2=Formula("1/p"); -} +} elsif ( $chooser ==5) {$eqn2=("4/5"); -} +} if ( $chooser ==1) {$ans=Formula("q/(4q-2)"); -} +} elsif ( $chooser ==2) {$ans=Formula("3q/(2q-1)"); -} +} elsif ( $chooser ==3) {$ans=Formula("15q/(10+q)"); -} +} elsif ( $chooser ==4) {$ans=Formula("3q/(18+2q)"); -} +} elsif ( $chooser ==5) {$ans=Formula("(5q+23)/4"); -} +} @@ -101,7 +101,7 @@ Solve the following equation for [`p`]. -[`p`] = [_________________]{$ans} [@ AnswerFormatHelp("numbers") @]* +[`p`] = [_________________]{$ans} [@ helpLink("numbers") @]* END_PGML diff --git a/Pending/RRCC/College_Algebra/MAT121/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_339.pg b/Pending/RRCC/College_Algebra/MAT121/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_339.pg index d23df46f7e..2467adea1f 100644 --- a/Pending/RRCC/College_Algebra/MAT121/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_339.pg +++ b/Pending/RRCC/College_Algebra/MAT121/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_339.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -50,15 +50,15 @@ else { ########################### # Main text -if ($a == 1) +if ($a == 1) { BEGIN_PGML -Solve the rational inequality. Write your answer in interval notation. +Solve the rational inequality. Write your answer in interval notation. [`` \dfrac{x - {[$u]}}{x + {[$v]}} \ge 0 ``] - [_______________]{$x1} [@ AnswerFormatHelp("intervals") @]* + [_______________]{$x1} [@ helpLink("intervals") @]* END_PGML } @@ -67,11 +67,11 @@ else { BEGIN_PGML -Solve the rational inequality. Write your answer in interval notation. +Solve the rational inequality. Write your answer in interval notation. [`` \dfrac{x + {[$u]}}{x - {[$v]}} \ge 0 ``] - [_______________]{$x1} [@ AnswerFormatHelp("intervals") @]* + [_______________]{$x1} [@ helpLink("intervals") @]* END_PGML } diff --git a/Pending/RRCC/College_Algebra/MAT121/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_343.pg b/Pending/RRCC/College_Algebra/MAT121/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_343.pg index 86a78b53bd..df445536eb 100644 --- a/Pending/RRCC/College_Algebra/MAT121/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_343.pg +++ b/Pending/RRCC/College_Algebra/MAT121/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_343.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -60,15 +60,15 @@ else { ########################### # Main text -if ($a == 1) +if ($a == 1) { BEGIN_PGML -Solve the rational inequality. Write your answer in interval notation. +Solve the rational inequality. Write your answer in interval notation. [`` \dfrac{x - {[$u]}}{x - {[$v]}} > 0 ``] - [_______________]{$x1} [@ AnswerFormatHelp("intervals") @]* + [_______________]{$x1} [@ helpLink("intervals") @]* END_PGML } @@ -76,11 +76,11 @@ else { BEGIN_PGML -Solve the rational inequality. Write your answer in interval notation. +Solve the rational inequality. Write your answer in interval notation. [`` \dfrac{x + {[$u]}}{x + {[$v]}} > 0 ``] - [_______________]{$x1} [@ AnswerFormatHelp("numbers") @]* + [_______________]{$x1} [@ helpLink("numbers") @]* END_PGML } diff --git a/Pending/RRCC/College_Algebra/MAT121/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_347.pg b/Pending/RRCC/College_Algebra/MAT121/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_347.pg index 2ae77d58ef..fa13ae6fe9 100644 --- a/Pending/RRCC/College_Algebra/MAT121/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_347.pg +++ b/Pending/RRCC/College_Algebra/MAT121/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_347.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -52,7 +52,7 @@ else { } if ($a == 1) { - # c2 is always less than c1 here + # c2 is always less than c1 here $x1 = Interval("($c2,$c1)"); } else { @@ -70,15 +70,15 @@ else { ########################### # Main text -if ($a == 1) +if ($a == 1) { BEGIN_PGML -Solve the rational inequality. Write your answer in interval notation. +Solve the rational inequality. Write your answer in interval notation. [`` \dfrac{{[$u]}x}{x - {[$v]}} < {[$w]} ``] - [_______________]{$x1} [@ AnswerFormatHelp("numbers") @]* + [_______________]{$x1} [@ helpLink("numbers") @]* END_PGML } @@ -90,7 +90,7 @@ Solve the rational inequality. Write your answer in interval notation. [`` \dfrac{{[$u]}x}{x - {[$v]}} < -{[$w]} ``] - [_______________]{$x1} [@ AnswerFormatHelp("intervals") @]* + [_______________]{$x1} [@ helpLink("intervals") @]* END_PGML } diff --git a/Pending/RRCC/College_Algebra/MAT121/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_349.pg b/Pending/RRCC/College_Algebra/MAT121/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_349.pg index 825fbeddbb..b5883a65ce 100644 --- a/Pending/RRCC/College_Algebra/MAT121/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_349.pg +++ b/Pending/RRCC/College_Algebra/MAT121/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_349.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -62,19 +62,19 @@ else { Context("Interval"); $x1 = Union("(-inf,$min)U($max,inf)"); - + ########################### # Main text -if ($a == 1) +if ($a == 1) { BEGIN_PGML -Solve the rational inequality. Write your answer in interval notation. +Solve the rational inequality. Write your answer in interval notation. [`` \dfrac{{[$u]}x}{x - {[$v]}} > {[$w]} ``] - [_______________]{$x1} [@ AnswerFormatHelp("intervals") @]* + [_______________]{$x1} [@ helpLink("intervals") @]* END_PGML } @@ -82,11 +82,11 @@ else { BEGIN_PGML -Solve the rational inequality. Write your answer in interval notation. +Solve the rational inequality. Write your answer in interval notation. [`` \dfrac{{[$u]}x}{x - {[$v]}} > -{[$w]} ``] - [_______________]{$x1} [@ AnswerFormatHelp("intervals") @]* + [_______________]{$x1} [@ helpLink("intervals") @]* END_PGML } diff --git a/Pending/RRCC/College_Algebra/MAT121/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_352.pg b/Pending/RRCC/College_Algebra/MAT121/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_352.pg index ba5065f545..1915737e8c 100644 --- a/Pending/RRCC/College_Algebra/MAT121/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_352.pg +++ b/Pending/RRCC/College_Algebra/MAT121/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_352.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", ); @@ -60,19 +60,19 @@ if ($c1 < $c2) { else { $x1 = Interval("[$c2,$c1)"); } - + ########################### # Main text -if ($a == 1) +if ($a == 1) { BEGIN_PGML -Solve the rational inequality. Write your answer in interval notation. +Solve the rational inequality. Write your answer in interval notation. [`` \dfrac{{[$t]}x - {[$u]}}{x - {[$v]}} \le {[$w]} ``] - [_______________]{$x1} [@ AnswerFormatHelp("intervals") @]* + [_______________]{$x1} [@ helpLink("intervals") @]* END_PGML } @@ -80,11 +80,11 @@ else { BEGIN_PGML -Solve the rational inequality. Write your answer in interval notation. +Solve the rational inequality. Write your answer in interval notation. [`` \dfrac{{[$t]}x - {[$u]}}{x - {[$v]}} \le -{[$w]} ``] - [_______________]{$x1} [@ AnswerFormatHelp("numbers") @]* + [_______________]{$x1} [@ helpLink("numbers") @]* END_PGML } diff --git a/Pending/RRCC/College_Algebra/MAT121/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_354.pg b/Pending/RRCC/College_Algebra/MAT121/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_354.pg index 2b3f89e3a1..199419b4ad 100644 --- a/Pending/RRCC/College_Algebra/MAT121/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_354.pg +++ b/Pending/RRCC/College_Algebra/MAT121/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_354.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -62,19 +62,19 @@ if ($c1 < $c2) { else { $x1 = Union("(-inf,$c2]U($c1,inf)"); } - + ########################### # Main text -if ($a == 1) +if ($a == 1) { BEGIN_PGML -Solve the rational inequality. Write your answer in interval notation. +Solve the rational inequality. Write your answer in interval notation. [`` \dfrac{{[$t]}x - {[$u]}}{x - {[$v]}} \ge {[$w]} ``] - [_______________]{$x1} [@ AnswerFormatHelp("intervals") @]* + [_______________]{$x1} [@ helpLink("intervals") @]* END_PGML } @@ -82,11 +82,11 @@ else { BEGIN_PGML -Solve the rational inequality. Write your answer in interval notation. +Solve the rational inequality. Write your answer in interval notation. [`` \dfrac{{[$t]}x - {[$u]}}{x - {[$v]}} \ge -{[$w]} ``] - [_______________]{$x1} [@ AnswerFormatHelp("intervals") @]* + [_______________]{$x1} [@ helpLink("intervals") @]* END_PGML } diff --git a/Pending/RRCC/College_Algebra/MAT121/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_357.pg b/Pending/RRCC/College_Algebra/MAT121/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_357.pg index 47dc46bb50..9aef8178ab 100644 --- a/Pending/RRCC/College_Algebra/MAT121/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_357.pg +++ b/Pending/RRCC/College_Algebra/MAT121/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_357.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -39,7 +39,7 @@ $a = random(1,2); # different forms of problem $u = random(1,6); $v = random(1,10); -do{ $w = random(1,10); } until ($w != $v); +do{ $w = random(1,10); } until ($w != $v); # Solutions Context("Interval"); @@ -63,15 +63,15 @@ else { ########################### # Main text -if ($a == 1) +if ($a == 1) { BEGIN_PGML -Solve the rational inequality. Write your answer in interval notation. +Solve the rational inequality. Write your answer in interval notation. [`` \dfrac{{[$u]}} {x^2 - {[$v+$w]} x + {[$v*$w]}} < 0 ``] - [_______________]{$x1} [@ AnswerFormatHelp("interval") @]* + [_______________]{$x1} [@ helpLink("interval") @]* END_PGML } @@ -79,11 +79,11 @@ else { BEGIN_PGML -Solve the rational inequality. Write your answer in interval notation. +Solve the rational inequality. Write your answer in interval notation. [`` \dfrac{{[$u]}} {x^2 + {[$v+$w]} x + {[$v*$w]}} < 0 ``] - [_______________]{$x1} [@ AnswerFormatHelp("interval") @]* + [_______________]{$x1} [@ helpLink("interval") @]* END_PGML } diff --git a/Pending/RRCC/College_Algebra/MAT121/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_365.pg b/Pending/RRCC/College_Algebra/MAT121/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_365.pg index 47746e3c6d..3fd15ad4b4 100644 --- a/Pending/RRCC/College_Algebra/MAT121/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_365.pg +++ b/Pending/RRCC/College_Algebra/MAT121/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_365.pg @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGML.pl", "PGcourse.pl", "contextFraction.pl", @@ -58,15 +58,15 @@ $x1 = Union($i1,$i2); ########################### # Main text -if ($problem_type == 1) +if ($problem_type == 1) { BEGIN_PGML -Solve the rational inequality. Write your answer in interval notation. +Solve the rational inequality. Write your answer in interval notation. [`` \dfrac{1}{{[$w]}} - \dfrac{ {[$a*$b*$w]} }{x^2} \le \dfrac{ {[$a - $b]} }{x} ``] - [_______________]{$x1} [@ AnswerFormatHelp("interval") @]* + [_______________]{$x1} [@ helpLink("interval") @]* END_PGML } @@ -74,11 +74,11 @@ else { BEGIN_PGML -Solve the rational inequality. Write your answer in interval notation. +Solve the rational inequality. Write your answer in interval notation. [`` \dfrac{1}{{[$w]}} - \dfrac{ {[$a*$b*$w]} }{x^2} \le -\dfrac{ {[$b - $a]} }{x} ``] - [_______________]{$x1} [@ AnswerFormatHelp("interval") @]* + [_______________]{$x1} [@ helpLink("interval") @]* END_PGML } diff --git a/Pending/Rochester-SigPrep/M1_ComplexNumbers/M1_Q1.pg b/Pending/Rochester-SigPrep/M1_ComplexNumbers/M1_Q1.pg index a56e138c3c..f4fd3618c9 100644 --- a/Pending/Rochester-SigPrep/M1_ComplexNumbers/M1_Q1.pg +++ b/Pending/Rochester-SigPrep/M1_ComplexNumbers/M1_Q1.pg @@ -12,14 +12,14 @@ ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", # Standard macros for PG language "MathObjects.pl", "answerHints.pl", "parserOneOf.pl", - "AnswerFormatHelp.pl", + #"source.pl", # allows code to be displayed on certain sites. #"PGcourse.pl", # Customization file for the course ); @@ -82,8 +82,8 @@ For the complex number given in Cartesian representation in each of the followin $PAR $BBOLD Hint: Sketching the numbers on the complex plane should allow you to readily figure out the answers for this problem. Additionally, you may find it helpful to look up values of trignometric functions for "special angles" such as \(0, \pm \pi/6, \pm \pi/4, \pm 2\pi/6, \pi \).$EBOLD -$PAR -$BBOLD Note: If would like help in using mathematical operations to enter in your answers, please see: \{ AnswerFormatHelp("formulas") \} $EBOLD +$PAR +$BBOLD Note: If would like help in using mathematical operations to enter in your answers, please see: \{ helpLink("formulas") \} $EBOLD $PAR $PAR @@ -92,11 +92,11 @@ $BBOLD a) $EBOLD \( 4 \) $BR $BR $PAR $BBOLD b) $EBOLD \( -5j \) $BR -\( r = \) \{ans_rule(5)\}, \( \theta = \) \{ans_rule(5)\} \( \pi \) radians $BR +\( r = \) \{ans_rule(5)\}, \( \theta = \) \{ans_rule(5)\} \( \pi \) radians $BR $PAR $BBOLD c) $EBOLD \( $x3 + j \) $BR \( r = \) \{ans_rule(5)\}, \( \theta = \) \{ans_rule(5)\} \( \pi \) radians -$BR +$BR $PAR $BBOLD d) $EBOLD \( -\sqrt{3} + -\sqrt{3}j \) $BR \( r = \) \{ans_rule(5)\}, \( \theta = \) \{ans_rule(5)\} \( \pi \) radians @@ -104,7 +104,7 @@ $BR $PAR $BBOLD e) $EBOLD \( $x5 + \sqrt{3}j \) $BR \( r = \) \{ans_rule(5)\}, \( \theta = \) \{ans_rule(5)\} \( \pi \) radians -$BR +$BR $PAR $BBOLD f) $EBOLD \( -\frac{\sqrt{3}}{2} + \frac{1}{2} j \) $BR \( r = \) \{ans_rule(5)\}, \( \theta = \) \{ans_rule(5)\} \( \pi \) radians @@ -112,7 +112,7 @@ $BR $PAR $BBOLD g) $EBOLD \( \sqrt{12} - 6j \) $BR \( r = \) \{ans_rule(5)\}, \( \theta = \) \{ans_rule(5)\} \( \pi \) radians -$BR +$BR @@ -161,11 +161,11 @@ ANS(num_cmp( $seventh -> theta/pi)); #Enter a value for \(\pi\) if you don't mind are you still the same PLEASE: \{$pi->ans_rule\} #$PAR -#Calculate the following: +#Calculate the following: #$PAR #\( $a + $b \): \{ans_rule(20)\} #ANS($pi->with(tolerance=>.0001)->cmp); #ANS(($a + $b)->cmp()); #--> for complex context -ENDDOCUMENT(); \ No newline at end of file +ENDDOCUMENT(); \ No newline at end of file diff --git a/Pending/Rochester-SigPrep/M1_ComplexNumbers/M1_Q6.pg b/Pending/Rochester-SigPrep/M1_ComplexNumbers/M1_Q6.pg index 0689f1afe1..ce42456c4d 100644 --- a/Pending/Rochester-SigPrep/M1_ComplexNumbers/M1_Q6.pg +++ b/Pending/Rochester-SigPrep/M1_ComplexNumbers/M1_Q6.pg @@ -17,7 +17,7 @@ loadMacros( "MathObjects.pl", "PGcourse.pl", # Customization file for the course "parserFunction.pl", -"AnswerFormatHelp.pl", + "answerHints.pl", ); @@ -42,10 +42,10 @@ $power_a1 = 2; $root_a1 = 2; $root_a1power = $root_a1**$power_a1; $theta_a1 = 0; -$z_a1r = $root_a1**$power_a1*cos($theta_a1); -$z_a1i = $root_a1**$power_a1*sin($theta_a1); +$z_a1r = $root_a1**$power_a1*cos($theta_a1); +$z_a1i = $root_a1**$power_a1*sin($theta_a1); -$z_a1 = $z_a1r + $z_a1i* i; +$z_a1 = $z_a1r + $z_a1i* i; $theta_a1_0 = $theta_a1/$power_a1; $theta_a1_1 = $theta_a1_0 + 2*pi/$power_a1; $sol1 = Compute("$root_a1 (cos($theta_a1_0) + sin($theta_a1_0)j)"); @@ -57,10 +57,10 @@ $power_a2 = 3; $root_a2 = 2; $root_a2power = $root_a2**$power_a2; $theta_a2 = pi; -$z_a2r = $root_a2**$power_a2*cos($theta_a2); -$z_a2i = $root_a2**$power_a2*sin($theta_a2); +$z_a2r = $root_a2**$power_a2*cos($theta_a2); +$z_a2i = $root_a2**$power_a2*sin($theta_a2); -$z_a2 = $z_a2r + $z_a2i* i; +$z_a2 = $z_a2r + $z_a2i* i; $theta_a2_0 = $theta_a2/$power_a2; $theta_a2_1 = $theta_a2_0 + 2*pi/$power_a2; $theta_a2_2 = $theta_a2_0 + 4*pi/$power_a2; @@ -73,10 +73,10 @@ $power_a3 = 4; $root_a3 = 2; $root_a3power = $root_a3**$power_a3; $theta_a3 = pi/2; -$z_a3r = $root_a3**$power_a3*cos($theta_a3); -$z_a3i = $root_a3**$power_a3*sin($theta_a3); +$z_a3r = $root_a3**$power_a3*cos($theta_a3); +$z_a3i = $root_a3**$power_a3*sin($theta_a3); -$z_a3 = $z_a3r + $z_a3i* i; +$z_a3 = $z_a3r + $z_a3i* i; $theta_a3_0 = $theta_a3/$power_a3; $theta_a3_1 = $theta_a3_0 + 2*pi/$power_a3; $theta_a3_2 = $theta_a3_0 + 4*pi/$power_a3; @@ -91,10 +91,10 @@ $power_a4 = 5; $root_a4 = 2; $root_a4power = $root_a4**$power_a4; $theta_a4 = -(pi)/2; -$z_a4r = $root_a4**$power_a4*cos($theta_a4); -$z_a4i = $root_a4**$power_a4*sin($theta_a4); +$z_a4r = $root_a4**$power_a4*cos($theta_a4); +$z_a4i = $root_a4**$power_a4*sin($theta_a4); -$z_a4 = $z_a4r + $z_a4i* i; +$z_a4 = $z_a4r + $z_a4i* i; $theta_a4_0 = $theta_a4/$power_a4; $theta_a4_1 = $theta_a4_0 + 2*pi/$power_a4; $theta_a4_2 = $theta_a4_0 + 4*pi/$power_a4; @@ -118,20 +118,20 @@ $BBOLD Hint: Writing the complex number in polar form as \( z = r e^{j \theta} $EBOLD $PAR -$BBOLD a) $EBOLD \( z^2 = $root_a1power \) -$BR -\(z=\)\{ans_rule(80)\} +$BBOLD a) $EBOLD \( z^2 = $root_a1power \) +$BR +\(z=\)\{ans_rule(80)\} $PAR -$BBOLD b) $EBOLD \( z^3 = -8 \) -$BR +$BBOLD b) $EBOLD \( z^3 = -8 \) +$BR \(z=\)\{ans_rule(80)\} $PAR -$BBOLD c) $EBOLD \( z^4 = 16j \) -$BR +$BBOLD c) $EBOLD \( z^4 = 16j \) +$BR \(z=\)\{ans_rule(80)\} $PAR -$BBOLD d) $EBOLD \( z^5 = -32j \) -$BR +$BBOLD d) $EBOLD \( z^5 = -32j \) +$BR \(z=\)\{ans_rule(80)\} END_TEXT diff --git a/Pending/Rochester-SigPrep/M1_ComplexNumbers/M1_Q7.pg b/Pending/Rochester-SigPrep/M1_ComplexNumbers/M1_Q7.pg index 847339a625..ad40776ace 100644 --- a/Pending/Rochester-SigPrep/M1_ComplexNumbers/M1_Q7.pg +++ b/Pending/Rochester-SigPrep/M1_ComplexNumbers/M1_Q7.pg @@ -16,7 +16,7 @@ loadMacros( "MathObjects.pl", "PGcourse.pl", # Customization file for the course "parserFunction.pl", -"AnswerFormatHelp.pl", + "answerHints.pl", ) ; #sub i (); #make i act like the imaginary unit. @@ -47,12 +47,12 @@ $vi_pow2 = non_zero_random(4,96,4); BEGIN_TEXT $BBOLD Basic algebra with imaginary numbers $EBOLD $PAR -Perform the indicated computation in each part to obtain the final answer as a complex number in Cartesian representation: +Perform the indicated computation in each part to obtain the final answer as a complex number in Cartesian representation: $PAR $BBOLD a) $EBOLD \( $k + $l \) = \{ans_rule(20)\} $PAR $BBOLD b) $EBOLD \( $a $b \) = \{ans_rule(20)\} -$PAR +$PAR $BBOLD c) $EBOLD \( (j^{3} ) $d \) = \{ans_rule(20)\} $PAR $BBOLD d) $EBOLD \( $e (1+j)^{2} \) = \{ans_rule(20)\} @@ -90,15 +90,15 @@ ANS(($e*$f)->cmp()); ANS(($g*$h)->cmp()); ANS(($i*$j)->cmp()); -ENDDOCUMENT() ; +ENDDOCUMENT() ; ################################################## my $XML_INFORMATION = <<'END_OF_XML_TRAILER_INFO'; Webwork Team MTH163 - Differential equations - frac&#123;dy&#125;&#123;dt&#125; - y = a exp(t) + B exp(k t) + Differential equations + frac&#123;dy&#125;&#123;dt&#125; - y = a exp(t) + B exp(k t) setDEFOLinear/12.pg University of Rochester diff --git a/Pending/Rochester-SigPrep/M1_ComplexNumbers/M1_Q8.pg b/Pending/Rochester-SigPrep/M1_ComplexNumbers/M1_Q8.pg index 6e63168a32..0b76ad8986 100644 --- a/Pending/Rochester-SigPrep/M1_ComplexNumbers/M1_Q8.pg +++ b/Pending/Rochester-SigPrep/M1_ComplexNumbers/M1_Q8.pg @@ -16,7 +16,7 @@ loadMacros( "MathObjects.pl", "PGcourse.pl", # Customization file for the course "parserFunction.pl", -"AnswerFormatHelp.pl", + "answerHints.pl", ) ; #sub i (); #make i act like the imaginary unit. @@ -58,30 +58,30 @@ $BBOLD Complex conjugate and division of complex numbers $EBOLD $PAR $BBOLD Note: $EBOLD The operator \( ^{*} \) represents the conjugate of a number, i.e., \( (a + b j)^{*} \) = \( a - b j \) (where \( a\) and \( b \) are real-valued) $PAR -Compute the following in Cartesian format: +Compute the following in Cartesian format: $PAR $BBOLD a) $EBOLD \( ($a)^{*} \) = \{ans_rule(20)\} $PAR $BBOLD b) $EBOLD \( ($b)^{*} \) = \{ans_rule(20)\} $PAR $BBOLD c) $EBOLD \( $c^{*} \) = \{ans_rule(20)\} -$PAR +$PAR $BBOLD d) $EBOLD \( $d^{*} \) = \{ans_rule(20)\} -$PAR +$PAR $BBOLD e) $EBOLD \( $e^{*} \) = \{ans_rule(20)\} -$PAR +$PAR $BBOLD f) $EBOLD \( $f1 $f1^{*} \) = \{ans_rule(20)\} -$PAR +$PAR $BBOLD g) $EBOLD \( $g1 $g1^{*} \) = \{ans_rule(20)\} -$PAR +$PAR $BBOLD h) $EBOLD \( \frac{1}{$h1} \) = \{ans_rule(20)\} + \{ans_rule(20)\}j $PAR $BBOLD i) $EBOLD \( \frac{$i1}{$i2} \) = \{ans_rule(20)\} -$PAR +$PAR $BBOLD j) $EBOLD \( [\frac{$ja1}{$ja2} + \frac{$jb1}{$jb2}]\frac{$jc1}{$jc2} \) = \{ans_rule(20)\} $PAR $BBOLD k) $EBOLD \( [(\frac{1}{2} + \frac{j}{2})^{10}] [(\frac{$kb1}{$kb2})^{2}] (\frac{$kc1}{$kc2})^{*} \) = \{ans_rule(20)\} -$PAR +$PAR END_TEXT @@ -114,15 +114,15 @@ ANS(($i)->cmp()); ANS(($j)->cmp()); ANS(($k)->cmp()); -ENDDOCUMENT() ; +ENDDOCUMENT() ; ################################################## my $XML_INFORMATION = <<'END_OF_XML_TRAILER_INFO'; Webwork Team MTH163 - Differential equations - frac&#123;dy&#125;&#123;dt&#125; - y = a exp(t) + B exp(k t) + Differential equations + frac&#123;dy&#125;&#123;dt&#125; - y = a exp(t) + B exp(k t) setDEFOLinear/12.pg University of Rochester diff --git a/Pending/Rochester-SigPrep/M1_ComplexNumbers/M1_Q9.pg b/Pending/Rochester-SigPrep/M1_ComplexNumbers/M1_Q9.pg index 6275a2dda1..d12d02c0f6 100644 --- a/Pending/Rochester-SigPrep/M1_ComplexNumbers/M1_Q9.pg +++ b/Pending/Rochester-SigPrep/M1_ComplexNumbers/M1_Q9.pg @@ -15,7 +15,7 @@ loadMacros( "MathObjects.pl", "PGcourse.pl", # Customization file for the course "parserFunction.pl", -"AnswerFormatHelp.pl", + ) ; #sub i (); #make i act like the imaginary unit. # TEXT(beginproblem()) ; @@ -88,30 +88,30 @@ $t6 = non_zero_random(-8,10,1); BEGIN_TEXT $BBOLD End of complex numbers module test $EBOLD $PAR -Compute the following in Cartesian format: +Compute the following in Cartesian format: $PAR $BBOLD a) $EBOLD \( {\Large $a + $b + ($cc ) $c} \) = \{ans_rule(20)\} $PAR $BBOLD b) $EBOLD \( {\Large 5 \sqrt 2 e^{\frac{3 \pi}{4} j } + (4 \sqrt -2 ) $mag3 e^{\frac{\pi}{4} j } } \) = \{ans_rule(20)\} $PAR $BBOLD c) $EBOLD \( {\Large $g $h^{*} - [$i $j]^{*} } \) = \{ans_rule(20)\} -$PAR +$PAR $BBOLD d) $EBOLD \( {\Large (1+j)^{2} (1-j)^{3} - $m1^{2} } \) = \{ans_rule(20)\} -$PAR +$PAR $BBOLD e) $EBOLD \( {\Large \frac{$n1}{$n2} } \) = \{ans_rule(20)\} -$PAR +$PAR $BBOLD f) $EBOLD \( {\Large [\frac{$oa1}{$oa2} + \frac{$ob1}{$ob2}]\frac{$oc1}{$oc2} } \) = \{ans_rule(20)\} -$PAR +$PAR $BBOLD g) $EBOLD\( {\Large ( j^{$vii_pow1} + j^{$vii_pow2} )^{2}( j^{$vii_pow3} + j^{$vii_pow4})^{3} } \) = \{ans_rule(20)\} -$PAR +$PAR $BBOLD h) $EBOLD\( {\Large \frac{\sqrt 128 e^{ $viii_pow1 \pi j} }{8 e^{ $viii_pow2 \pi j} } } \) = \{ans_rule(20)\} $PAR $BBOLD i) $EBOLD \( {\Large \frac{ (\sqrt 6 e^{ \frac{3 \pi}{16} j} )^{4} }{ (2 e^{ \frac{\pi}{12} j} )^{3} } } \) = \{ans_rule(20)\} -$PAR +$PAR $BBOLD j) $EBOLD \( {\Large \frac{(\sqrt 32-\sqrt 8)\angle $alpha1^{\circ} - 4\angle $alpha2^{\circ}}{\sqrt 2 \angle $alpha3^{\circ}} } \) = \{ans_rule(20)\} $PAR $BBOLD k) $EBOLD With \( {\Large z^{$s} } \) being a real number, how many possible unique values does \(z\) have? \{ans_rule(20)\} -$PAR +$PAR $BBOLD l) $EBOLD At what angle (in degrees) are the roots of \( {\Large z^{$s} } \) separated from each other on the imaginary plane? \{ans_rule(20)\} $PAR $BBOLD m) $EBOLD What is the internal angle (in degrees) of the convex polygon when you connect all the points representing the roots of the equation @@ -137,15 +137,15 @@ ANS(($s)->cmp()); ANS((360/$s)->cmp()); ANS((180-(360/$t))->cmp()); -ENDDOCUMENT() ; +ENDDOCUMENT() ; ################################################## my $XML_INFORMATION = <<'END_OF_XML_TRAILER_INFO'; Webwork Team MTH163 - Differential equations - frac&#123;dy&#125;&#123;dt&#125; - y = a exp(t) + B exp(k t) + Differential equations + frac&#123;dy&#125;&#123;dt&#125; - y = a exp(t) + B exp(k t) setDEFOLinear/12.pg University of Rochester diff --git a/Pending/Rochester-SigPrep/M2_TrigonometricIdentities/M2_Q1.pg b/Pending/Rochester-SigPrep/M2_TrigonometricIdentities/M2_Q1.pg index 45f832189d..9ca46da543 100644 --- a/Pending/Rochester-SigPrep/M2_TrigonometricIdentities/M2_Q1.pg +++ b/Pending/Rochester-SigPrep/M2_TrigonometricIdentities/M2_Q1.pg @@ -13,7 +13,7 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); # modified to use j for i = sqrt(-1) # $complexJ =1; # 0 => i, 1 => j # $I = ($complexJ)? 'j': 'i'; @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -74,11 +74,11 @@ $BBOLD Basic trigonometric identities $EBOLD $PAR Please enter appropriate coefficients into the bars provided so that the following trigonometric equalities hold: $PAR -$BBOLD Note: $EBOLD You should know the following identities +$BBOLD Note: $EBOLD You should know the following identities $PAR $BBOLD Hint: Plotting the \( cos(t), sin(t) \) on the unit circle helps to answer following questions $EBOLD -$PAR -$BBOLD Note: If you would like to check out how to enter formulas please see: \{ AnswerFormatHelp("formulas") \} $EBOLD +$PAR +$BBOLD Note: If you would like to check out how to enter formulas please see: \{ helpLink("formulas") \} $EBOLD $PAR $BBOLD a) $EBOLD \( {\Large $f1 } =\) \{ ans_rule(5)\} \( {\Large $sin } \) \( + \) \{ ans_rule(5)\} \( {\Large $cos }\) diff --git a/Pending/Rochester-SigPrep/M2_TrigonometricIdentities/M2_Q2.pg b/Pending/Rochester-SigPrep/M2_TrigonometricIdentities/M2_Q2.pg index 7664fccf16..d962fd7e5c 100644 --- a/Pending/Rochester-SigPrep/M2_TrigonometricIdentities/M2_Q2.pg +++ b/Pending/Rochester-SigPrep/M2_TrigonometricIdentities/M2_Q2.pg @@ -15,7 +15,7 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); # modified to use j for i = sqrt(-1) # $complexJ =1; # 0 => i, 1 => j # $I = ($complexJ)? 'j': 'i'; @@ -23,7 +23,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -85,9 +85,9 @@ $BBOLD Basic trigonometric identities $EBOLD $PAR Please enter appropriate coefficients into the bars provided so that the following trigonometric equalities hold: $PAR -$BBOLD Note: $EBOLD You should know the following identities +$BBOLD Note: $EBOLD You should know the following identities $PAR -$BBOLD Hint: Using unit circle and considering the location of points \( ( \sin(\theta), \cos(\theta) ) \) for appropriately chosen values of \(\theta\) should help you to answer following questions $EBOLD +$BBOLD Hint: Using unit circle and considering the location of points \( ( \sin(\theta), \cos(\theta) ) \) for appropriately chosen values of \(\theta\) should help you to answer following questions $EBOLD $PAR $BBOLD a) $EBOLD \( {\Large $f3 } =\) \{ ans_rule(5)\} \( {\Large $sin } \) \( + \) \{ ans_rule(5)\} \( {\Large $cos }\) diff --git a/Pending/Rochester-SigPrep/M2_TrigonometricIdentities/M2_Q3.pg b/Pending/Rochester-SigPrep/M2_TrigonometricIdentities/M2_Q3.pg index b675387e3c..8488193542 100644 --- a/Pending/Rochester-SigPrep/M2_TrigonometricIdentities/M2_Q3.pg +++ b/Pending/Rochester-SigPrep/M2_TrigonometricIdentities/M2_Q3.pg @@ -13,7 +13,7 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); # modified to use j for i = sqrt(-1) # $complexJ =1; # 0 => i, 1 => j # $I = ($complexJ)? 'j': 'i'; @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -82,9 +82,9 @@ $BBOLD Basic trigonometric identities $EBOLD $PAR Please enter appropriate coefficients into the bars provided so that the following trigonometric equalities hold:: $PAR -$BBOLD Note: $EBOLD You should know the following identities +$BBOLD Note: $EBOLD You should know the following identities $PAR -$BBOLD Hint: Using unit circle and considering the location of points \( ( \sin(\theta), \cos(\theta) ) \) for appropriately chosen values of \(\theta\) should help you to answer following questions $EBOLD +$BBOLD Hint: Using unit circle and considering the location of points \( ( \sin(\theta), \cos(\theta) ) \) for appropriately chosen values of \(\theta\) should help you to answer following questions $EBOLD $PAR $BBOLD a) $EBOLD \( {\Large $f7 } =\) \{ ans_rule(5)\} \( {\Large $sin } \) \( + \) \{ ans_rule(5)\} \( {\Large $cos }\) diff --git a/Pending/Rochester-SigPrep/M2_TrigonometricIdentities/M2_Q4.pg b/Pending/Rochester-SigPrep/M2_TrigonometricIdentities/M2_Q4.pg index c5f006db5d..4decaed948 100644 --- a/Pending/Rochester-SigPrep/M2_TrigonometricIdentities/M2_Q4.pg +++ b/Pending/Rochester-SigPrep/M2_TrigonometricIdentities/M2_Q4.pg @@ -13,7 +13,7 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); # modified to use j for i = sqrt(-1) # $complexJ =1; # 0 => i, 1 => j # $I = ($complexJ)? 'j': 'i'; @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -71,7 +71,7 @@ $BBOLD Basic trigonometric identities $EBOLD $PAR Please enter the equivalent of the following trigonometric expressions: $PAR -$BBOLD Note: $EBOLD You should know the following identities +$BBOLD Note: $EBOLD You should know the following identities $PAR $BBOLD Hint: $EBOLD Using unit circle helps to answer following questions $PAR diff --git a/Pending/Rochester-SigPrep/M2_TrigonometricIdentities/M2_Q5.pg b/Pending/Rochester-SigPrep/M2_TrigonometricIdentities/M2_Q5.pg index 177b458d76..6ec46270d0 100644 --- a/Pending/Rochester-SigPrep/M2_TrigonometricIdentities/M2_Q5.pg +++ b/Pending/Rochester-SigPrep/M2_TrigonometricIdentities/M2_Q5.pg @@ -13,7 +13,7 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); # modified to use j for i = sqrt(-1) # $complexJ =1; # 0 => i, 1 => j # $I = ($complexJ)? 'j': 'i'; @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -84,10 +84,10 @@ Please enter appropriate trigonometric functions into the boxes provided so that $PAR Note: You don't have to memorize the following expressions. However, you are expected to be comfortable with using them $PAR -$BBOLD Hint: The answers can be readily figured out using Euler's formula $EBOLD +$BBOLD Hint: The answers can be readily figured out using Euler's formula $EBOLD $PAR -$BBOLD Sum of angles $EBOLD +$BBOLD Sum of angles $EBOLD $PAR $BBOLD a) $EBOLD \( {\Large $f15 } =\) \{ ans_rule(10)\} \( {\Large $cos } \) \( + \) \{ ans_rule(10)\} \( {\Large $sin }\) $PAR diff --git a/Pending/Rochester-SigPrep/M3_Differentiation/M3_Q1.pg b/Pending/Rochester-SigPrep/M3_Differentiation/M3_Q1.pg index 6dbe8c8b6f..a91fbd2650 100644 --- a/Pending/Rochester-SigPrep/M3_Differentiation/M3_Q1.pg +++ b/Pending/Rochester-SigPrep/M3_Differentiation/M3_Q1.pg @@ -14,7 +14,7 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); # modified to use j for i = sqrt(-1) # $complexJ =1; # 0 => i, 1 => j # $I = ($complexJ)? 'j': 'i'; @@ -22,7 +22,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -78,8 +78,8 @@ Please compute the derivative for each of the functions given below: $PAR -$BBOLD Note: If you would like to check out how to enter formulas please see: \{ AnswerFormatHelp("formulas") \} $EBOLD -$PAR +$BBOLD Note: If you would like to check out how to enter formulas please see: \{ helpLink("formulas") \} $EBOLD +$PAR $BBOLD a) $EBOLD\( f_1(w) \) = \( {\Large $f1 } \) $PAR \( \frac{d f_1( w)}{d w } =\) \{ ans_rule(40)\} diff --git a/Pending/Rochester-SigPrep/M3_Differentiation/M3_Q2.pg b/Pending/Rochester-SigPrep/M3_Differentiation/M3_Q2.pg index ff667f4166..1b93f4c917 100644 --- a/Pending/Rochester-SigPrep/M3_Differentiation/M3_Q2.pg +++ b/Pending/Rochester-SigPrep/M3_Differentiation/M3_Q2.pg @@ -13,7 +13,7 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); # modified to use j for i = sqrt(-1) # $complexJ =1; # 0 => i, 1 => j # $I = ($complexJ)? 'j': 'i'; @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -82,11 +82,11 @@ $PAR \( \frac{d f_2( w)}{d w } =\) \{ ans_rule(40)\} $PAR -$BBOLD c) $EBOLD \( f_3(w) \) = \( {\Large $f3 } \) +$BBOLD c) $EBOLD \( f_3(w) \) = \( {\Large $f3 } \) $PAR \( \frac{d f_3( w)}{d w } =\) \{ ans_rule(40)\} -$PAR +$PAR Click \{ htmlLink("https://www.youtube.com/watch?v=TDHI-aieyfk", "here", "TARGET='_blank'") \} to watch derivatives of basic trigonometric and exponential functions video. diff --git a/Pending/Rochester-SigPrep/M3_Differentiation/M3_Q3.pg b/Pending/Rochester-SigPrep/M3_Differentiation/M3_Q3.pg index eb5fa50a0e..347a95b866 100644 --- a/Pending/Rochester-SigPrep/M3_Differentiation/M3_Q3.pg +++ b/Pending/Rochester-SigPrep/M3_Differentiation/M3_Q3.pg @@ -13,7 +13,7 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); # modified to use j for i = sqrt(-1) # $complexJ =1; # 0 => i, 1 => j # $I = ($complexJ)? 'j': 'i'; @@ -21,7 +21,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -65,7 +65,7 @@ $g = non_zero_random(-8,8,1); $f2 = Formula("($e * w + $g)^{3} ")->reduce; $df2 = $f2->D('w'); -$h = non_zero_random(-8,8,1); +$h = non_zero_random(-8,8,1); $f3 = Formula("(e^{j*$h*w}) ")->reduce; $df3 = $f3->D('w'); @@ -87,7 +87,7 @@ $f6 = Formula("(e^{j*sin($m*w) - cos($n*w^{$o} + $p)}) ")->reduce; $df6 = $f6->D('w'); $La1 = -random(1,9,1); # -$Lb1= random(1,6,1); # +$Lb1= random(1,6,1); # $Lc1 = non_zero_random(-6,6,1); # constant multiplying complex exp. $Ld1= non_zero_random(0,6,1); # constant multiplying complex exp. $Lf2 = Formula("($Lc1* j *w +$Ld1)/((j*w)**2 + $La1*j*w + $Lb1) ")->reduce; diff --git a/Pending/Rochester-SigPrep/M4_Series/M4_Q1.pg b/Pending/Rochester-SigPrep/M4_Series/M4_Q1.pg index 72988335ba..71b8c7fca9 100644 --- a/Pending/Rochester-SigPrep/M4_Series/M4_Q1.pg +++ b/Pending/Rochester-SigPrep/M4_Series/M4_Q1.pg @@ -19,7 +19,7 @@ loadMacros( "PGunion.pl", "PGcourse.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + ); ##################################################################### @@ -53,12 +53,12 @@ BEGIN_TEXT $BBOLD Computation of series sums (analytic) $EBOLD $PAR Please enter the analytic closed-form expressions for the following series sums: -$PAR -$BBOLD Note: If you would like to check out how to enter formulas please see: \{ AnswerFormatHelp("formulas") \} $EBOLD +$PAR +$BBOLD Note: If you would like to check out how to enter formulas please see: \{ helpLink("formulas") \} $EBOLD $PAR $BBOLD a) $EBOLD \(\displaystyle \sum_{k=1}^{N}k \) = \{ans_rule(20)\} $PAR $BBOLD b) $EBOLD \(\displaystyle \sum_{k=0}^{N-1}r^{k} \) = \{ans_rule(20)\} $PAR -$BBOLD c) $EBOLD \(\displaystyle \sum_{k=0}^{\infty}r^{k} \), where \( |r| < 1\) = \{ans_rule(20)\} $PAR +$BBOLD c) $EBOLD \(\displaystyle \sum_{k=0}^{\infty}r^{k} \), where \( |r| < 1\) = \{ans_rule(20)\} $PAR END_TEXT @@ -77,9 +77,9 @@ END_HINT ##################################################################### ANS(($ans1)->cmp()); -#ANS(($ans1)->cmp()->withPostFilter(AnswerHints( +#ANS(($ans1)->cmp()->withPostFilter(AnswerHints( # 1 => "HAHAHA you are wrong!!! Watch this: ", -# Compute("N*(N+1)/2")->reduce => "Wow! Einstein", +# Compute("N*(N+1)/2")->reduce => "Wow! Einstein", #))); ANS(($ans2)->cmp()); ANS(($ans3)->cmp()); diff --git a/Pending/Rochester-SigPrep/M5_DifferentialEquations/M5_Q1.pg b/Pending/Rochester-SigPrep/M5_DifferentialEquations/M5_Q1.pg index f4d20e1408..47b71a7a13 100644 --- a/Pending/Rochester-SigPrep/M5_DifferentialEquations/M5_Q1.pg +++ b/Pending/Rochester-SigPrep/M5_DifferentialEquations/M5_Q1.pg @@ -11,14 +11,14 @@ ## Level('') ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "PGchoicemacros.pl", "PGcourse.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + ); # Print problem number and point value (weight) for the problem @@ -34,9 +34,9 @@ $showPartialCorrectAnswers = 0; # Make a new checkbox multiple choice $cmc = new_checkbox_multiple_choice(); $cmc -> qa ( -"Check all that apply to the differential equation \(\frac{dy(t)}{dt}+\sin^2(t)y(t)=\cos^2(t)y(t)\)", -"linear", -"homogeneous", +"Check all that apply to the differential equation \(\frac{dy(t)}{dt}+\sin^2(t)y(t)=\cos^2(t)y(t)\)", +"linear", +"homogeneous", "first order", "Ordinary differential equation", ); @@ -60,7 +60,7 @@ $cmc -> makeLast( BEGIN_TEXT $BBOLD Classification of differential equations $EBOLD $PAR -$BBOLD Note: If you would like to check out how to enter formulas please see: \{ AnswerFormatHelp("formulas") \} $EBOLD +$BBOLD Note: If you would like to check out how to enter formulas please see: \{ helpLink("formulas") \} $EBOLD $PAR @@ -83,6 +83,6 @@ ANS(checkbox_cmp($cmc->correct_ans)); -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/Pending/Rochester-SigPrep/M5_DifferentialEquations/M5_Q5.pg b/Pending/Rochester-SigPrep/M5_DifferentialEquations/M5_Q5.pg index 505ed9ffd2..4c7e599d49 100644 --- a/Pending/Rochester-SigPrep/M5_DifferentialEquations/M5_Q5.pg +++ b/Pending/Rochester-SigPrep/M5_DifferentialEquations/M5_Q5.pg @@ -12,12 +12,12 @@ ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -76,7 +76,7 @@ For part-II click \{ htmlLink("https://www.youtube.com/watch?v=4qgLz0TF8-M","her $PAR For part-III click \{ htmlLink("https://www.youtube.com/watch?v=2NRBn6ZLmDc&t=7s","here", "TARGET='_blank'") \} $PAR -\{ image( "RC_final.png", width=>150, height=>150, +\{ image( "RC_final.png", width=>150, height=>150, tex_size=>700, extra_html_tags=>'alt="Graph of a function."' ) \} $PAR @@ -102,7 +102,7 @@ ANS( $f3-> cmp()); # default tolerance is .01 or one percent. -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/Pending/Rochester-SigPrep/M5_DifferentialEquations/M5_Q6.pg b/Pending/Rochester-SigPrep/M5_DifferentialEquations/M5_Q6.pg index 7626e676c0..3eda8ff4c3 100644 --- a/Pending/Rochester-SigPrep/M5_DifferentialEquations/M5_Q6.pg +++ b/Pending/Rochester-SigPrep/M5_DifferentialEquations/M5_Q6.pg @@ -12,12 +12,12 @@ ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -76,7 +76,7 @@ For the video click \{ htmlLink("https://www.youtube.com/watch?v=_W3p2euSH5Q", " $PAR $PAR -\{ image( "RL_new20.png", width=>150, height=>150, +\{ image( "RL_new20.png", width=>150, height=>150, tex_size=>700, extra_html_tags=>'alt="Graph of a function."' ) \} $PAR @@ -102,6 +102,6 @@ ANS( $f3-> cmp()); # default tolerance is .01 or one percent. -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/Pending/Rochester-SigPrep/M5_DifferentialEquations/M5_Q7.pg b/Pending/Rochester-SigPrep/M5_DifferentialEquations/M5_Q7.pg index 4249ac42c3..131191f205 100644 --- a/Pending/Rochester-SigPrep/M5_DifferentialEquations/M5_Q7.pg +++ b/Pending/Rochester-SigPrep/M5_DifferentialEquations/M5_Q7.pg @@ -12,12 +12,12 @@ ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -84,7 +84,7 @@ $PAR For part-V click \{ htmlLink("https://www.youtube.com/watch?v=51UHJnjUOSs&t=1s","here", "TARGET='_blank'") \} $PAR -\{ image( "LC_final.png", width=>150, height=>150, +\{ image( "LC_final.png", width=>150, height=>150, tex_size=>700, extra_html_tags=>'alt="Graph of a function."' ) \} $PAR @@ -108,5 +108,5 @@ ANS( $f3-> cmp()); # default tolerance is .01 or one percent. -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/Pending/Rochester-SigPrep/M5_DifferentialEquations/M5_Q8.pg b/Pending/Rochester-SigPrep/M5_DifferentialEquations/M5_Q8.pg index 9a5fea724f..b2e8eb6569 100644 --- a/Pending/Rochester-SigPrep/M5_DifferentialEquations/M5_Q8.pg +++ b/Pending/Rochester-SigPrep/M5_DifferentialEquations/M5_Q8.pg @@ -12,12 +12,12 @@ ######################################################################## -DOCUMENT(); +DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl", @@ -70,9 +70,9 @@ $f3 = Formula(" d^2I(t)/(dt^2) + R/LdI(t)/(dt) + 1/(LC)I(t) "); BEGIN_TEXT $BBOLD Differential equation for R-L-C circuit $EBOLD $PAR -Based on the videos you have watched you should be able to answer this question without watching another video. +Based on the videos you have watched you should be able to answer this question without watching another video. $PAR -\{ image( "RLC_final.png", width=>150, height=>150, +\{ image( "RLC_final.png", width=>150, height=>150, tex_size=>700, extra_html_tags=>'alt="Graph of a function."' ) \} $PAR @@ -97,7 +97,7 @@ ANS( $f3-> cmp()); # default tolerance is .01 or one percent. -ENDDOCUMENT(); +ENDDOCUMENT(); diff --git a/Pending/Rochester-SigPrep/M6_Integration/M6_Q1.pg b/Pending/Rochester-SigPrep/M6_Integration/M6_Q1.pg index 20281afdb7..8aa3e56f01 100644 --- a/Pending/Rochester-SigPrep/M6_Integration/M6_Q1.pg +++ b/Pending/Rochester-SigPrep/M6_Integration/M6_Q1.pg @@ -19,7 +19,7 @@ loadMacros( "PGcourse.pl", "PGcomplexmacros.pl", "answerHints.pl", - "AnswerFormatHelp.pl", + ); ################################### @@ -51,8 +51,8 @@ $PAR Calculate the following indefinite integrals: $PAR -$BBOLD Note: If you would like to check out how to enter formulas please see: \{ AnswerFormatHelp("formulas") \} $EBOLD -$PAR +$BBOLD Note: If you would like to check out how to enter formulas please see: \{ helpLink("formulas") \} $EBOLD +$PAR $BBOLD a) $EBOLD \( \displaystyle\int \, dt \) = \{ans_rule(40)\} \( + c\) $PAR diff --git a/Pending/Rochester-SigPrep/M6_Integration/M6_Q7.pg b/Pending/Rochester-SigPrep/M6_Integration/M6_Q7.pg index e980395ce2..710519e365 100644 --- a/Pending/Rochester-SigPrep/M6_Integration/M6_Q7.pg +++ b/Pending/Rochester-SigPrep/M6_Integration/M6_Q7.pg @@ -18,7 +18,7 @@ loadMacros( #"PGauxiliaryFunctions.pl", "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "PGcourse.pl", "answerHints.pl" ); @@ -57,7 +57,7 @@ $liml4 = random(-8,-1,1); $limu4 = -$liml4; BEGIN_TEXT -$BBOLD Definite Integrals of Basic Functions $EBOLD +$BBOLD Definite Integrals of Basic Functions $EBOLD $PAR Calculate the following definite integrals $PAR @@ -90,7 +90,7 @@ $ans2 = (($c**2)/(2*$cc+1))*($limu2**(2*$cc+1) - $liml2**(2*$cc+1)) ((2*$d*$c)/($cc + 1))*($limu2**($cc+1)-$liml2**($cc+1)); #$ans2 = "(($c^2)/(2*$cc+1))*($limu2^(2*$cc+1) - $liml2^(2*$cc+1)) -#+ ($d^2)*($limu2-$liml2) + +#+ ($d^2)*($limu2-$liml2) + #((2*$d*$c)/($cc + 1))*($limu2^($cc+1)-$liml2^($cc+1))"; #$ans2 = "($c^2/(2*$cc+1))*($limu2^(2*$cc+1)) + ($d^2)*$limu2 + (2*$d*$c/($cc #+ 1))*($limu2)^($cc+1) - ($c^2/(2*$cc+1))*($liml2^(2*$cc+1)) - ($d^2)*$liml2 #- (2*$d*$c/($cc + 1))*($liml2)^($cc+1)"; diff --git a/Pending/Rochester-SigPrep/M7_Logic/M7_Q1.pg b/Pending/Rochester-SigPrep/M7_Logic/M7_Q1.pg index c634f5ad0d..53d2f96115 100644 --- a/Pending/Rochester-SigPrep/M7_Logic/M7_Q1.pg +++ b/Pending/Rochester-SigPrep/M7_Logic/M7_Q1.pg @@ -1,5 +1,5 @@ # DESCRIPTION -# +# # # WeBWorK problem written by Warren Esty and Norah Esty # ENDDESCRIPTION @@ -26,7 +26,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", - "AnswerFormatHelp.pl", + "PGchoicemacros.pl", "PGcourse.pl" ); @@ -54,24 +54,24 @@ $b = $a*$a; Context()->texStrings; BEGIN_TEXT -\{$radio1->print_q()\} $BR +\{$radio1->print_q()\} $BR If \( b > $a\), then \(|b| > $a\). -\{$radio1->print_a()\} +\{$radio1->print_a()\} -$BR -\{$radio2->print_q()\} $BR +$BR +\{$radio2->print_q()\} $BR If \( b < $a\), then \(|b| < $a\). -\{$radio2->print_a()\} +\{$radio2->print_a()\} $BR $BR -\{$radio1->print_q()\} $BR +\{$radio1->print_q()\} $BR If \( |b| < $a\), then \( b < $a\). -\{$radio1->print_a()\} +\{$radio1->print_a()\} $BR $BR -\{$radio2->print_q()\} $BR +\{$radio2->print_q()\} $BR If \(|b| > $a\), then \(b > $a\). -\{$radio2->print_a()\} +\{$radio2->print_a()\} END_TEXT diff --git a/Pending/Rochester-SigPrep/M8_SignalManipulation/M8_Q5.pg b/Pending/Rochester-SigPrep/M8_SignalManipulation/M8_Q5.pg index 198e686901..707e6f8dea 100644 --- a/Pending/Rochester-SigPrep/M8_SignalManipulation/M8_Q5.pg +++ b/Pending/Rochester-SigPrep/M8_SignalManipulation/M8_Q5.pg @@ -15,7 +15,7 @@ ############################## # Initialization -DOCUMENT(); +DOCUMENT(); # modified to use j for i = sqrt(-1) # $complexJ =1; # 0 => i, 1 => j # $I = ($complexJ)? 'j': 'i'; @@ -23,7 +23,7 @@ DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", -"AnswerFormatHelp.pl", + "parserFunction.pl", "answerHints.pl", "PGcourse.pl",